<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.9.2">Jekyll</generator><link href="https://da-adams.github.io/feed.xml" rel="self" type="application/atom+xml" /><link href="https://da-adams.github.io/" rel="alternate" type="text/html" /><updated>2022-06-09T04:15:42+00:00</updated><id>https://da-adams.github.io/feed.xml</id><title type="html">David’s PIC16B Blog</title><subtitle>Data, Python, Brain Stuff, Projects</subtitle><entry><title type="html">Final Project</title><link href="https://da-adams.github.io/PIC16B-Final-Project/" rel="alternate" type="text/html" title="Final Project" /><published>2022-06-08T00:00:00+00:00</published><updated>2022-06-08T00:00:00+00:00</updated><id>https://da-adams.github.io/PIC16B-Final-Project</id><content type="html" xml:base="https://da-adams.github.io/PIC16B-Final-Project/">&lt;h1 id=&quot;pic-16b-project-group-submission&quot;&gt;PIC 16B Project Group Submission&lt;/h1&gt;

&lt;h2 id=&quot;1--introduction&quot;&gt;1.  Introduction&lt;/h2&gt;

&lt;p&gt;We wanted to find out whether or not quarterly earnings conferences give any extra insight into how a company is doing financially compared to the raw data.  To this end, we regressed daily price changes with different aspects of earnings reports with linear regression and neural network models, and did a sentiment analysis on earnings conferences to see if either one has any relation, or if one has a stronger relation with future changes in value than the other.  Here is a &lt;a href=&quot;https://github.com/NicholasDelianedis/PIC16BProject&quot;&gt;link&lt;/a&gt; to our GitHub page for the project.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/image4.png&quot; alt=&quot;image4.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Flowchart:&lt;/p&gt;
&lt;h2 id=&quot;21-data-imports-and-organization&quot;&gt;2.1 Data Imports and Organization&lt;/h2&gt;

&lt;p&gt;To build our working dataframe we used the SimFin API to pull the (numeric) financial statements for all available quarterly reports.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Set your SimFin+ API-key for downloading data.
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;set_api_key&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'H9OLpPRQ36sXqfhoOtyBb0Kwv4Dw0q3W'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
 
&lt;span class=&quot;c1&quot;&gt;# Set the local directory where data-files are stored.
# The directory will be created if it does not already exist.
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;set_data_dir&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'~/simfin_data/'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
 
&lt;span class=&quot;c1&quot;&gt;# Download the data from the SimFin server and load into a Pandas DataFrame.
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;quarterly&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;load_income&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;variant&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'quarterly'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;market&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'us'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
 
&lt;span class=&quot;c1&quot;&gt;# Print the first rows of the data.
#print(quarterly.head())
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;quarterly&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;We then repeated the same procedure to build a company df containing SimFinId, company name, and sector info:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; 
&lt;span class=&quot;c1&quot;&gt;# Download the data from the SimFin server and load into a Pandas DataFrame.
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;companies&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;load_companies&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;market&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'us'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;and then the same for a translational dataframe between industry id and industry name&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; 
&lt;span class=&quot;c1&quot;&gt;# Download the data from the SimFin server and load into a Pandas DataFrame.
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;industries&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;load_industries&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;industries&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Sector&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;From here, we needed to build a df of stock price data (open/close price, volume, etc.):&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; 
&lt;span class=&quot;c1&quot;&gt;# Download the data from the SimFin server and load into a Pandas DataFrame.
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;shares&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;load_shareprices&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;variant&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'daily'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;market&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'us'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
 
&lt;span class=&quot;c1&quot;&gt;# Print the first rows of the data.
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;shares&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;())&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#print(shares[&quot;Date&quot;].head())
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;shares&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;columns&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;shares&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;index&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#so date is a part of a multi index, not a column
#lets reset that index to get these as columns for easier bool syntax
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;shares&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;shares&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;reset_index&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#see if that worked
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;shares&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;columns&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#lets examine the types for any future comparison issues
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;shares&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dtypes&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#okay so its a datetime, need to make sure other dates are in this format
#pd.to_numeric(shares.Date) - incase the other isn't, convert to float
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;shares&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;())&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;We then merged these on the appropriate report release dates for each ticker for each report to create a single, unified, working pandas dataframe, from which we calculated our target variable “DeltaPrice” (the difference between close and next day opening price as a measure of after hours price movement in response to a given quarterly report) and populated a new column with it:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Combining databases
&lt;/span&gt; 
&lt;span class=&quot;n&quot;&gt;merge1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;merge&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;quarterly&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;companies_tick&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;how&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'left'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;on&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'SimFinId'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
 
&lt;span class=&quot;n&quot;&gt;alldata&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;merge&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;merge1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;industries&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;how&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'left'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;on&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'IndustryId'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
 
&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;alldata&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;())&lt;/span&gt;
 
&lt;span class=&quot;c1&quot;&gt;#lets see what our types are
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Alldata&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dtypes&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;lambda&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;row&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;row&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;NextDay&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;row&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Close&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;axis&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;From here, all that remains data handling wise, is specific to each application going forward (e.g. dropping unneeded columns or encoding for LR)```&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;shares&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;NextDay&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;shares&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Open&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;shift&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#alldata.rename(columns ={'Publish Date': 'Date'}) - figure out why rename isn't recognizing Publish Date
&lt;/span&gt; 
&lt;span class=&quot;c1&quot;&gt;#hacky short term solution
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;alldata&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Date&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;alldata&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Publish Date&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
 
&lt;span class=&quot;n&quot;&gt;shares2&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;shares&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;SimFinId&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Open&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Close&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Date&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;NextDay&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]]&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;alldata&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;merge&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;alldata&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;shares2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;how&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;left&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;on&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;SimFinId&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Date&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#cool, now we have everything together, I'll clean this up to only be what we need instead of a bulk merge later
&lt;/span&gt; 
 
&lt;span class=&quot;n&quot;&gt;alldata&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;DeltaPrice&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;alldata&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;appl&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h2 id=&quot;22--regression&quot;&gt;2.2  Regression&lt;/h2&gt;

&lt;p&gt;To start with the numerical analysis, we created a linear regression model, which took in the numerical values from the dataset, and regressed them onto our variable ‘DeltaPrice’, which we created by subtracting the close date from the open date of the next day for each datapoint.  We then used sklearn’s LinearRegression model to regress the data, and put all of this, as well as a train-test-split testing mechanism into a function that takes in a subset of our main dataframe to perform the linear regression.  With the whole dataset, the linear regression performed at around 31% accuracy, which we considered to be good, since it is predicting the exact change in price, for which there are many values.  Below is the code for the function:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;lr&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;newdata&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;mlinx&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[]&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;mliny&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[]&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;regx&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;drop&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;DeltaPrice&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;axis&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;DeltaPrice&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]:&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;mliny&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;append&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;round&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;mlinx&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;append&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([])&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;regx&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;columns&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;k&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;j&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;regx&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]:&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;mlinx&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;k&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;append&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;k&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;
  
  &lt;span class=&quot;n&quot;&gt;X2&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;add_constant&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mlinx&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;est&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;OLS&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mliny&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;X2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;est2&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;est&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;est2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;())&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;j&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;regx&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;columns&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;: &quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;j&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;X_train&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;X_test&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y_train&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y_test&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;train_test_split&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mlinx&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;mliny&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;test_size&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;0.2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;random_state&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;42&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;LR&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;LinearRegression&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;X_train&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y_train&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Test score:&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;LR&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;score&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;X_train&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y_train&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;X_train&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y_train&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;For the neural networks, we used a similar format as for the linear regression model, but we changed it so that the user can input which sector they would like to run the regression on, since the model is too big to run on the whole data, and we got better results from running it on just one sector than on the whole dataset, and whether they would like to use the model with or without the LSTM, or long short term memory, layer.  We found that the model works moderately well without the LSTM, but produces meaningless results with the LSTM layer, so the default setting is without the LSTM layer.  Below is the code for the function, and a screenshot of some of the last epochs of the model run without LSTM on the sector ‘Healthcare’, which have a loss of around 20.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;nn&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sector&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Technology&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;rnn&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;False&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;rnndf&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;regdata&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;regdata&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Sector&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sector&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;rnndf&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;rnndf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;drop&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Sector&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Industry&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Date&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;NextDay&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;axis&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;rnndf&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;rnndf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rnndf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Close&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;rnndf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;PctChg&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;rnndf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;apply&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;lambda&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;row&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;round&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1000&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;row&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;DeltaPrice&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;row&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Close&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]))&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;axis&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;rnndf&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;rnndf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rnndf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;PctChg&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;70&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;rnndf&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;rnndf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rnndf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;PctChg&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;70&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;rnnx&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;rnndf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;drop&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;DeltaPrice&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;PctChg&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;axis&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;cmp&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;rnndf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;SimFinId&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
  &lt;span class=&quot;nb&quot;&gt;cmp&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;cmp&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;drop_duplicates&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;ryl&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[]&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;rny&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;rnndf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sort_values&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;NewDate&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;axis&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;rny&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;PctChg&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]:&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;ryl&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;append&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;round&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;rxl&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[]&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;rnx&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;rnnx&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sort_values&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;NewDate&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;rnx&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;NewDate&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]:&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;rxl&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;append&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([])&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;rnx&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;columns&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;k&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;j&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;rnx&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]:&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;rxl&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;k&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;append&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;j&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;k&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;rxa&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;np&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;array&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rxl&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;rya&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;np&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;array&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ryl&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;rnn&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;model&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rxa&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;rya&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;epochs&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;50&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;verbose&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;model1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rxa&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;rya&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;epochs&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;500&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;verbose&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;/images/image5.png&quot; alt=&quot;image5.png&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;23-scraper&quot;&gt;2.3 Scraper&lt;/h2&gt;

&lt;p&gt;To gather transcripts, we used the Financial Modeling Prep API. We first built a function to structure and individual query:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;
&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;call_pull&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ticker&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;year&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;quarter&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;key&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'8dccdfa88c60658c4170dbaa660a6c5c'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
             &lt;span class=&quot;n&quot;&gt;date&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;False&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
   &lt;span class=&quot;n&quot;&gt;transcript&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;requests&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;sa&quot;&gt;f&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'https://financialmodelingprep.com/api/v3/earning_call_transcript/&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ticker&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;?quarter=&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;quarter&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&amp;amp;year=&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;year&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&amp;amp;apikey=&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;si&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;json&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
   &lt;span class=&quot;n&quot;&gt;tran&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;transcript&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;][&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'content'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
   &lt;span class=&quot;n&quot;&gt;date&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;transcript&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;][&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'date'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
   &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;date&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
     &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tran&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;date&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
   &lt;span class=&quot;k&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
     &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tran&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;img src=&quot;/images/image6.png&quot; alt=&quot;image6.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Next we build a function to automate the pulls for each entry in a provided data frame:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;
&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;transcript_fetch&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
 
 &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Fiscal Period&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;slice&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
 
 &lt;span class=&quot;c1&quot;&gt;#make transcript column
&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'Transcript'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;&quot;&lt;/span&gt;
 
 &lt;span class=&quot;c1&quot;&gt;#start a counter
&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;count&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;
 
 &lt;span class=&quot;c1&quot;&gt;# for each company ticker
&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ticker&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Ticker&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]:&lt;/span&gt;
   &lt;span class=&quot;c1&quot;&gt;#for each call date
&lt;/span&gt;   &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;date&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Publish Date&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;][&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Ticker&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ticker&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]:&lt;/span&gt;
     &lt;span class=&quot;c1&quot;&gt;#get quarter from fiscal period
&lt;/span&gt;     &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;period&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tech_sample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Fiscal Period&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;][(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tech_sample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Ticker&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ticker&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tech_sample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Publish Date&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;date&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)]):&lt;/span&gt;   
     &lt;span class=&quot;c1&quot;&gt;#pull numeric value only
&lt;/span&gt;       &lt;span class=&quot;n&quot;&gt;quarter&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;period&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
  
     &lt;span class=&quot;c1&quot;&gt;#pull year
&lt;/span&gt;     &lt;span class=&quot;c1&quot;&gt;#month = date.month
&lt;/span&gt;     &lt;span class=&quot;n&quot;&gt;year&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;date&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;year&lt;/span&gt;
 
     &lt;span class=&quot;n&quot;&gt;count&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;
    
     &lt;span class=&quot;c1&quot;&gt;#pull transcript
&lt;/span&gt;     &lt;span class=&quot;k&quot;&gt;try&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
       &lt;span class=&quot;n&quot;&gt;trans&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;call_pull&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ticker&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;year&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;quarter&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
    
       &lt;span class=&quot;c1&quot;&gt;#convert to string
&lt;/span&gt;       &lt;span class=&quot;n&quot;&gt;trans&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;trans&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
 
     &lt;span class=&quot;c1&quot;&gt;#if pull fails
&lt;/span&gt;     &lt;span class=&quot;k&quot;&gt;except&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
       &lt;span class=&quot;n&quot;&gt;trans&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;np&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;NAN&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#make NAN for later drop
&lt;/span&gt; 
     &lt;span class=&quot;c1&quot;&gt;#add to &quot;Transcript&quot; column
&lt;/span&gt;     &lt;span class=&quot;n&quot;&gt;tech&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;loc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[((&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tech&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Publish Date&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;date&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tech&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Ticker&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ticker&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'Transcript'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;trans&lt;/span&gt;
 
 &lt;span class=&quot;c1&quot;&gt;#return df now with transcript strings
&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Notably, the Fiscal Period returned by the API is actually a not-too-well-documented object, not a string, and so required an uncomfortable amount of hacky syntax to coax say, the numeric only “1”  string out of a Q1 fiscal period OBJ.&lt;/p&gt;

&lt;h2 id=&quot;24-sentiment-analysis&quot;&gt;2.4 Sentiment Analysis&lt;/h2&gt;

&lt;p&gt;From here, largely on account of our late-dropping group member, we had to curtail our pulls to random samples (n=1000 and n=2000). However, we did have nice syntax prepared to tokenize and core the text using our sentiment dictionaries and add these elements as new rows to our dataframe:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;pandas&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;nltk.tokenize&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;WordPunctTokenizer&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;wpt&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;nltk&lt;/span&gt;
 
&lt;span class=&quot;n&quot;&gt;nltk&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;download&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;opinion_lexicon&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
 
&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;nltk.corpus&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;opinion_lexicon&lt;/span&gt;
 
&lt;span class=&quot;n&quot;&gt;pos_list&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;list&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;opinion_lexicon&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;positive&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;())&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;neg_list&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;list&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;opinion_lexicon&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;negative&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;())&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pos_list&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;
&lt;span class=&quot;c1&quot;&gt;#for each transcript
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;transcript&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;final_sample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Transcript&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]:&lt;/span&gt;
 
 &lt;span class=&quot;c1&quot;&gt;# Tokenize the words and convert to lowercase
&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;text&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;transcript&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;split&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
 &lt;span class=&quot;n&quot;&gt;text&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lower&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;text&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;text&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
 
 &lt;span class=&quot;c1&quot;&gt;# Remove the stopwords
&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;text_clean&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;word&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;word&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;text&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;word&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;not&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;stopwords&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
 
 &lt;span class=&quot;n&quot;&gt;words_pos&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;word&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;word&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;text_clean&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;word&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pos_list&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
 &lt;span class=&quot;n&quot;&gt;words_neg&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;word&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;word&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;text_clean&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;word&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;neg_list&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
 
 &lt;span class=&quot;n&quot;&gt;pos_score&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;len&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;words_pos&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
 &lt;span class=&quot;n&quot;&gt;neg_score&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;len&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;words_neg&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
 
 &lt;span class=&quot;n&quot;&gt;tokens&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tokenize&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;transcript&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
 &lt;span class=&quot;n&quot;&gt;score&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lm&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get_score&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tokens&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
 
 &lt;span class=&quot;n&quot;&gt;final_sample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;loc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[((&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;final_sample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Transcript&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;transcript&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'Positive'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pos_score&lt;/span&gt;
 &lt;span class=&quot;n&quot;&gt;final_sample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;loc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[((&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;final_sample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Transcript&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;transcript&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'Negative'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;neg_score&lt;/span&gt;
 &lt;span class=&quot;n&quot;&gt;final_sample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;loc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[((&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;final_sample&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Transcript&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;transcript&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'Ratio'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pos_score&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;neg_score&lt;/span&gt;
 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;We then used seaborn to plot the relationship between positive, negative, and pos/neg ratio scores and our target variable of DeltaPrice:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/image1.png&quot; alt=&quot;image1.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/image3.png&quot; alt=&quot;image3.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/image7.png&quot; alt=&quot;image7.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;We also plotted the technology sector in isolation and noticed a curious group of points where “no bad news” seemed to be more strongly correlated with DeltaPrice than actual positive sentiment or even the ratio of positive to negative sentiment:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/image2.png&quot; alt=&quot;image2.png&quot; /&gt;&lt;/p&gt;

&lt;h2 id=&quot;3-conclusion&quot;&gt;3 Conclusion&lt;/h2&gt;

&lt;p&gt;We found that recurrent neural networks do not work very well on stock data, and that our linear regression model does surprisingly well. On the sentiment side, the plotted results were very much undermined by the lack of time to run full 36,000+ row pulls. The random samples undermined any patterns found within the time series of a particular company for both the sentiment analysis and the neural networks. Ideally, moving forward we would run a complete S&amp;amp;P 500 pull (to avoid potential noise from small-caps), and precluding reports from the period of extreme Fed Quantitative Easing in response to COVID (or isolating and analyzing them separately).  Similarly, we would like to follow through with our original intent to both run a neural network model on  vectorized transcript text and to see the effect of the inclusion of sentiment scores as features within our most successful numeric model.&lt;/p&gt;</content><author><name></name></author><summary type="html">PIC 16B Project Group Submission</summary></entry><entry><title type="html">HW4 - Fake News Classifier</title><link href="https://da-adams.github.io/Fake-News-Classifier/" rel="alternate" type="text/html" title="HW4 - Fake News Classifier" /><published>2022-05-16T00:00:00+00:00</published><updated>2022-05-16T00:00:00+00:00</updated><id>https://da-adams.github.io/Fake-News-Classifier</id><content type="html" xml:base="https://da-adams.github.io/Fake-News-Classifier/">&lt;h2 id=&quot;classifying-misinformation-with-nlp&quot;&gt;Classifying Misinformation with NLP&lt;/h2&gt;

&lt;p&gt;For this assignment we’re going to develop a misinformation (colloqually “fake news”) classifier using TensorFlow.&lt;/p&gt;

&lt;p&gt;Our data for this assignment comes from the following article:&lt;/p&gt;

&lt;ul&gt;
  &lt;li&gt;Ahmed H, Traore I, Saad S. (2017) “Detection of Online Fake News Using N-Gram Analysis and Machine Learning Techniques. In: Traore I., Woungang I., Awad A. (eds) Intelligent, Secure, and Dependable Systems in Distributed and Cloud Environments. ISDDC 2017. Lecture Notes in Computer Science, vol 10618. Springer, Cham (pp. 127-138).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And is found by way of &lt;a href=&quot;https://www.kaggle.com/clmentbisaillon/fake-and-real-news-dataset&quot;&gt;Kaggle&lt;/a&gt;. Here we’re going to use a pre-split version of this data as graceously provided by UCLA Mathmatics Professor, Phil Chodrow, using the link found below.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;train_url&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;https://github.com/PhilChodrow/PIC16b/blob/master/datasets/fake_news_train.csv?raw=true&quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now let’s get the slew of imports handled:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;#import the usual suspects
&lt;/span&gt;&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;pandas&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;numpy&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;np&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;tensorflow&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;#import string + regular expressions...just in case, don't presume base pkgs...
&lt;/span&gt;&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;re&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;string&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;#import keras, layers, loss functions etc 
#ignore the yellow warning, currently a bug even on colab...a google product
&lt;/span&gt;&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;tensorflow.keras&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;tensorflow.keras&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;losses&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;tensorflow&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;#imports for text handling (vectorization etc.)
&lt;/span&gt;&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;tensorflow.keras.layers.experimental.preprocessing&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;TextVectorization&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;tensorflow.keras.layers.experimental.preprocessing&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;StringLookup&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;#for visualizing model layers
&lt;/span&gt;&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;tensorflow.keras&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;utils&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;#imports for encoding and our splits, the sklearn classics
&lt;/span&gt;&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;sklearn.preprocessing&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;LabelEncoder&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#used if you prefer to split at the df rather than ds stage
&lt;/span&gt;&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;sklearn.model_selection&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;train_test_split&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# for simple visualizations (line graphs)
&lt;/span&gt;&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;matplotlib&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pyplot&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;plt&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# for embedding visualizations
&lt;/span&gt;&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;sklearn.decomposition&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;PCA&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;plotly.express&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;px&lt;/span&gt; 
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;plotly.io&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pio&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;pio&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;templates&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;default&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;plotly_white&quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;From here let’s read in the data:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;#csv read in via pandas
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;raw_df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_csv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train_url&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Let’s take a look at what we have:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;raw_df&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div id=&quot;df-ede301d4-5d44-4987-8943-423659dcaeba&quot;&gt;
    &lt;div class=&quot;colab-df-container&quot;&gt;
      &lt;div&gt;
&lt;style scoped=&quot;&quot;&gt;
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }

    .dataframe tbody tr th {
        vertical-align: top;
    }

    .dataframe thead th {
        text-align: right;
    }
&lt;/style&gt;
&lt;table border=&quot;1&quot; class=&quot;dataframe&quot;&gt;
  &lt;thead&gt;
    &lt;tr style=&quot;text-align: right;&quot;&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;Unnamed: 0&lt;/th&gt;
      &lt;th&gt;title&lt;/th&gt;
      &lt;th&gt;text&lt;/th&gt;
      &lt;th&gt;fake&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;th&gt;0&lt;/th&gt;
      &lt;td&gt;17366&lt;/td&gt;
      &lt;td&gt;Merkel: Strong result for Austria's FPO 'big c...&lt;/td&gt;
      &lt;td&gt;German Chancellor Angela Merkel said on Monday...&lt;/td&gt;
      &lt;td&gt;0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1&lt;/th&gt;
      &lt;td&gt;5634&lt;/td&gt;
      &lt;td&gt;Trump says Pence will lead voter fraud panel&lt;/td&gt;
      &lt;td&gt;WEST PALM BEACH, Fla.President Donald Trump sa...&lt;/td&gt;
      &lt;td&gt;0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2&lt;/th&gt;
      &lt;td&gt;17487&lt;/td&gt;
      &lt;td&gt;JUST IN: SUSPECTED LEAKER and “Close Confidant...&lt;/td&gt;
      &lt;td&gt;On December 5, 2017, Circa s Sara Carter warne...&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3&lt;/th&gt;
      &lt;td&gt;12217&lt;/td&gt;
      &lt;td&gt;Thyssenkrupp has offered help to Argentina ove...&lt;/td&gt;
      &lt;td&gt;Germany s Thyssenkrupp, has offered assistance...&lt;/td&gt;
      &lt;td&gt;0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;4&lt;/th&gt;
      &lt;td&gt;5535&lt;/td&gt;
      &lt;td&gt;Trump say appeals court decision on travel ban...&lt;/td&gt;
      &lt;td&gt;President Donald Trump on Thursday called the ...&lt;/td&gt;
      &lt;td&gt;0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;...&lt;/th&gt;
      &lt;td&gt;...&lt;/td&gt;
      &lt;td&gt;...&lt;/td&gt;
      &lt;td&gt;...&lt;/td&gt;
      &lt;td&gt;...&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;22444&lt;/th&gt;
      &lt;td&gt;10709&lt;/td&gt;
      &lt;td&gt;ALARMING: NSA Refuses to Release Clinton-Lynch...&lt;/td&gt;
      &lt;td&gt;If Clinton and Lynch just talked about grandki...&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;22445&lt;/th&gt;
      &lt;td&gt;8731&lt;/td&gt;
      &lt;td&gt;Can Pence's vow not to sling mud survive a Tru...&lt;/td&gt;
      &lt;td&gt;() - In 1990, during a close and bitter congre...&lt;/td&gt;
      &lt;td&gt;0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;22446&lt;/th&gt;
      &lt;td&gt;4733&lt;/td&gt;
      &lt;td&gt;Watch Trump Campaign Try To Spin Their Way Ou...&lt;/td&gt;
      &lt;td&gt;A new ad by the Hillary Clinton SuperPac Prior...&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;22447&lt;/th&gt;
      &lt;td&gt;3993&lt;/td&gt;
      &lt;td&gt;Trump celebrates first 100 days as president, ...&lt;/td&gt;
      &lt;td&gt;HARRISBURG, Pa.U.S. President Donald Trump hit...&lt;/td&gt;
      &lt;td&gt;0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;22448&lt;/th&gt;
      &lt;td&gt;12896&lt;/td&gt;
      &lt;td&gt;TRUMP SUPPORTERS REACT TO DEBATE: “Clinton New...&lt;/td&gt;
      &lt;td&gt;MELBOURNE, FL is a town with a population of 7...&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;22449 rows × 4 columns&lt;/p&gt;
&lt;/div&gt;
      &lt;button class=&quot;colab-df-convert&quot; onclick=&quot;convertToInteractive('df-ede301d4-5d44-4987-8943-423659dcaeba')&quot; title=&quot;Convert this dataframe to an interactive table.&quot; style=&quot;display:none;&quot;&gt;

  &amp;lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; height=&quot;24px&quot;viewBox=&quot;0 0 24 24&quot;
       width=&quot;24px&quot;&amp;gt;
    &lt;path d=&quot;M0 0h24v24H0V0z&quot; fill=&quot;none&quot; /&gt;
    &lt;path d=&quot;M18.56 5.44l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94zm-11 1L8.5 8.5l.94-2.06 2.06-.94-2.06-.94L8.5 2.5l-.94 2.06-2.06.94zm10 10l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94z&quot; /&gt;&lt;path d=&quot;M17.41 7.96l-1.37-1.37c-.4-.4-.92-.59-1.43-.59-.52 0-1.04.2-1.43.59L10.3 9.45l-7.72 7.72c-.78.78-.78 2.05 0 2.83L4 21.41c.39.39.9.59 1.41.59.51 0 1.02-.2 1.41-.59l7.78-7.78 2.81-2.81c.8-.78.8-2.07 0-2.86zM5.41 20L4 18.59l7.72-7.72 1.47 1.35L5.41 20z&quot; /&gt;
  &amp;lt;/svg&amp;gt;
      &lt;/button&gt;

  &lt;style&gt;
    .colab-df-container {
      display:flex;
      flex-wrap:wrap;
      gap: 12px;
    }

    .colab-df-convert {
      background-color: #E8F0FE;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      display: none;
      fill: #1967D2;
      height: 32px;
      padding: 0 0 0 0;
      width: 32px;
    }

    .colab-df-convert:hover {
      background-color: #E2EBFA;
      box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);
      fill: #174EA6;
    }

    [theme=dark] .colab-df-convert {
      background-color: #3B4455;
      fill: #D2E3FC;
    }

    [theme=dark] .colab-df-convert:hover {
      background-color: #434B5C;
      box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
      filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));
      fill: #FFFFFF;
    }
  &lt;/style&gt;

      &lt;script&gt;
        const buttonEl =
          document.querySelector('#df-ede301d4-5d44-4987-8943-423659dcaeba button.colab-df-convert');
        buttonEl.style.display =
          google.colab.kernel.accessAllowed ? 'block' : 'none';

        async function convertToInteractive(key) {
          const element = document.querySelector('#df-ede301d4-5d44-4987-8943-423659dcaeba');
          const dataTable =
            await google.colab.kernel.invokeFunction('convertToInteractive',
                                                     [key], {});
          if (!dataTable) return;

          const docLinkHtml = 'Like what you see? Visit the ' +
            '&lt;a target=&quot;_blank&quot; href=https://colab.research.google.com/notebooks/data_table.ipynb&gt;data table notebook&lt;/a&gt;'
            + ' to learn more about interactive tables.';
          element.innerHTML = '';
          dataTable['output_type'] = 'display_data';
          await google.colab.output.renderOutput(dataTable, element);
          const docLink = document.createElement('div');
          docLink.innerHTML = docLinkHtml;
          element.appendChild(docLink);
        }
      &lt;/script&gt;
    &lt;/div&gt;
  &lt;/div&gt;

&lt;p&gt;Each row of the data corresponds to an article. The title column gives the title of the article, while the text column gives the full article text. The final column, called fake, is 0 if the article is true and 1 if the article contains fake news, as determined by the authors of the paper above.&lt;/p&gt;

&lt;h1 id=&quot;making-the-dataset&quot;&gt;Making the Dataset&lt;/h1&gt;

&lt;p&gt;Next we’re going to write a function called make_dataset that will remove stop words—uninformative words such as “the,” “and,” or “but”—and return a tf.data.Dataset with two inputs and one output. The input will be the title and text, the output will be the fake column (0/1).&lt;/p&gt;

&lt;p&gt;Thankfully, we can just use the stop words from Natural Language Toolkit (NLTK). Often you may want to use a specialized set of stop words for a specific application, but we’re working with very standard, formal English, and NLTK is about as default as it gets, so let’s not make things hard on ourselves.&lt;/p&gt;

&lt;p&gt;The stop word dl/import:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;nltk&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;nltk&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;download&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'stopwords'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;nltk.corpus&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;stopwords&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;[nltk_data] Downloading package stopwords to /root/nltk_data...
[nltk_data]   Unzipping corpora/stopwords.zip.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The function itself:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;make_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;in_df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
  &lt;span class=&quot;s&quot;&gt;&quot;&quot;&quot;
  Function to remove stop words from the provided pandas dataframe of article
  titles and text, then create a  TensorFlow Dataset from this dataframe.

  Parameters
  ----------
  in_df: the supplied pandas dataframe to process.

  Return
  ------
  out_ds: the output TensorFlow Dataset.
  &quot;&quot;&quot;&lt;/span&gt;

  &lt;span class=&quot;c1&quot;&gt;#Pythonic Quibbles - everything is by ref and const isn't a thing so let's not 
&lt;/span&gt;  &lt;span class=&quot;c1&quot;&gt;#presume the argument df is to be modified...our copy will be deleted at the
&lt;/span&gt;  &lt;span class=&quot;c1&quot;&gt;#end of function scope anyway. An original df and a new ds seems more logical
&lt;/span&gt;  &lt;span class=&quot;c1&quot;&gt;#than a new ds and a df unknowingly modified by a blackbox.
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;new_df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;in_df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;copy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;

  &lt;span class=&quot;c1&quot;&gt;#assign our imported stopwords to a handy variable
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;stop&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;stopwords&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;words&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'english'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

  &lt;span class=&quot;c1&quot;&gt;#remove stopwords from article titles and texts  
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;new_df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'title'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'text'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]].&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;apply&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;lambda&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;item&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;item&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; 
                                           &lt;span class=&quot;n&quot;&gt;item&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;not&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;stop&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
  
  &lt;span class=&quot;c1&quot;&gt;#Construct the tf.data.Dataset
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;out_ds&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;from_tensor_slices&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;
    &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;title&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;new_df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;title&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]],&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;text&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;new_df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'text'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;},&lt;/span&gt;&lt;span class=&quot;c1&quot;&gt;#dict to map inputs 
&lt;/span&gt;      &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;fake&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;new_df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;fake&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]]&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;))&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#dict to map output
&lt;/span&gt;
  &lt;span class=&quot;c1&quot;&gt;#shuffle dataset
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;out_ds&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;out_ds&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;shuffle&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;buffer_size&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;len&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;out_ds&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
  
  &lt;span class=&quot;c1&quot;&gt;#batch dataset
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;out_ds&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;out_ds&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;batch&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

  &lt;span class=&quot;c1&quot;&gt;#return finished dataset
&lt;/span&gt;  &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;out_ds&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;#actually make the dataset using our function
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;make_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;raw_df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;validation-data&quot;&gt;Validation Data&lt;/h1&gt;

&lt;p&gt;Next we’ll split off 20% of our training set for validation&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;train_size&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.8&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;len&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt; 
&lt;span class=&quot;n&quot;&gt;val_size&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.2&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;len&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;train&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;take&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train_size&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# data[:train_size]
# data[train_size : train_size + val_size]
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;val&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;skip&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train_size&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;take&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;val_size&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; 

&lt;span class=&quot;nb&quot;&gt;len&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;len&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;val&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;(180, 45)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Cool, so our 22,449 rows (articles) are split into 180 training batches and 45 validation batches.&lt;/p&gt;

&lt;h1 id=&quot;base-rate&quot;&gt;Base Rate&lt;/h1&gt;

&lt;p&gt;There are plently of easy ways find the base rate of fake articles in our original dataframe.&lt;/p&gt;

&lt;p&gt;For instance, take the mean of the “fake” column (0 or 1):&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;raw_df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;fake&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mean&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;0.522963160942581
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Or group by and compare the sizes of the two groups:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;raw_df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;groupby&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;fake&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;fake
0    10709
1    11740
dtype: int64
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;mi&quot;&gt;11740&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;11740&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;10709&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;0.522963160942581
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If we want to do this for our post train/val split dataset it’s a tad more complicated. Our split was performed on a shuffled dataset of over 22,000 articles, so realistically, any random split should not vary much from the fake rate seen in the original, complete dataset. We’re working with large enough numbers that the noise shouldn’t be too drastic. E.g. in an 80/20 random split with n=20, a single article falling on oneside of the line or the other is the difference between a validation set thats 3/4th’s fake vs 2/4th’s fake…we don’t have that problem here with n=22449.&lt;/p&gt;

&lt;p&gt;However, to be properly thorough, let’s take a look:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;#unbatch our train set
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;unbatched&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;train&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;unbatch&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#map our label back to a bool (0/1)
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;unbatched&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;unbatched&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;map&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;lambda&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;label&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;label&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'fake'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;][&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#cast to numpy itr then to list
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;np_data&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;list&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;unbatched&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;as_numpy_iterator&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;())&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#normal math as per before
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;sum&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;np_data&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;len&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;np_data&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;0.5227222222222222
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So as expected, our base rate for the training set is very close to that of the total dataset. If you rerun the split a few cells back and test the difference in the training set rate, you’ll see that it will line up with the original base rate down to the 3rd or 4th decimal place the vast majority of the time.&lt;/p&gt;

&lt;p&gt;If the proprietary-ness of the TensorFlow syntax feels a tad obtuse to you, then take it as another point for doing as much as you can in pandas first. Here, working with a complete data set from the get-go that is of a size to reasonably read into memory all at once, you can certainly get away with performing your splits using sklearn at the pandas dataframe stage prior to the dataset conversion. That said, it’s always good to get practice navigating TensorFlow syntax and the somewhat oddly formatted documentation, since there will eventually be things you’ll heavily lean on prefetching for, where the data isn’t an easy single csv to df read-in.&lt;/p&gt;

&lt;h1 id=&quot;preprocessing-standardization&quot;&gt;Preprocessing: Standardization&lt;/h1&gt;

&lt;p&gt;Next we’ll standardize the text by converting it all to lowercase and removing punctuation.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: Punctuation is often removed when working large corpora and you want to do some specific task like document similarity or classification, but you would likely want to preserve it for an SA model of tweets or reviews…if an exclamation mark is one of only 280 characters, it’s likely pretty important! However, we’re classifying 22,449 articles, so once gain, we’re playing it very by the book and removing punctuation.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;standardization&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;input_data&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
  &lt;span class=&quot;s&quot;&gt;&quot;&quot;&quot;
  Function to standardize text via the conversion to all-lower-case and the 
  removal of punctuation

  Parameters
  ----------
  input_data: a TensorFlow dataset, the text to be standardized

  Return
  ------
  no_punctuation - the dataset w/o punctuation and capitalization
  &quot;&quot;&quot;&lt;/span&gt;

  &lt;span class=&quot;c1&quot;&gt;#convert to lowercase 
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;lowercase&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;strings&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lower&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;input_data&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;c1&quot;&gt;#remove punctuation
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;no_punctuation&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;strings&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;regex_replace&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lowercase&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                                &lt;span class=&quot;s&quot;&gt;'[%s]'&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;%&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;re&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;escape&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;punctuation&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;''&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;no_punctuation&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;vectorization&quot;&gt;Vectorization&lt;/h1&gt;

&lt;p&gt;Next, we’ll need to represent the text as a vector, replacing words with their frequency rank within the dataset.&lt;/p&gt;

&lt;p&gt;First we’ll create a text vectorization layer for our model:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;#preparing a text vectorization layer for tf model
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;size_vocabulary&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2000&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;#title vectorization layer
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;vectorize_layer&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;TextVectorization&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;standardize&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;standardization&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#invoke our standardization function
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;max_tokens&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;size_vocabulary&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# only consider this many words
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;output_mode&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'int'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#get frequency ranking for each word in the training ds
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;output_sequence_length&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;500&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#turn each
&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now we’ll “adapt” our layer to learn to map words based on the two components of our training data (title and text):&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;vectorize_layer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;adapt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;map&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;lambda&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;title&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]))&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;vectorize_layer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;adapt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;map&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;lambda&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;text&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;creating-models&quot;&gt;Creating Models&lt;/h1&gt;

&lt;p&gt;First we need to create two keras.Input’s, one for our titles and one for our text. Both have a shape of (1, )—there’s only a single title or text in each. We also need to specify their type (both are string) and name (same as their dictionary key in the dataset).&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;title_input&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Input&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;shape&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,),&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;title&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# same name as the dictionary key in the dataset
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;dtype&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;string&quot;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;text_input&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Input&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;shape&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,),&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;text&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# same name as the dictionary key in the dataset
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;dtype&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;string&quot;&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;first-model&quot;&gt;First Model&lt;/h1&gt;

&lt;p&gt;Now we’re ready to create our first model, which will only use the title to classify the article as fake or not. We’ll use the functional API to assembly our layers:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;title_features&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;vectorize_layer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;title_input&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#vectorize text input
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;title_features&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Embedding&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;size_vocabulary&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;output_dim&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;embedding&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;title_features&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;title_features&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dropout&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;title_features&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#dropout for overfitting
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;title_features&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;GlobalAveragePooling1D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;title_features&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;title_features&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dropout&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;title_features&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#dropout for overfitting
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;title_features&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dense&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;title_features&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# output layer
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;title_output&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dense&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;fake&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;title_features&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now let’s put it all together and take a look:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Model&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;inputs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;title_input&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;outputs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;title_output&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;model1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Model: &quot;model&quot;
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 title (InputLayer)          [(None, 1)]               0         
                                                                 
 text_vectorization (TextVec  (None, 500)              0         
 torization)                                                     
                                                                 
 embedding (Embedding)       (None, 500, 3)            6000      
                                                                 
 dropout (Dropout)           (None, 500, 3)            0         
                                                                 
 global_average_pooling1d (G  (None, 3)                0         
 lobalAveragePooling1D)                                          
                                                                 
 dropout_1 (Dropout)         (None, 3)                 0         
                                                                 
 dense (Dense)               (None, 32)                128       
                                                                 
 fake (Dense)                (None, 2)                 66        
                                                                 
=================================================================
Total params: 6,194
Trainable params: 6,194
Non-trainable params: 0
_________________________________________________________________
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Or if you want to visualize it:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;utils&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;plot_model&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;model1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;/images/output_38_0.png&quot; alt=&quot;output_38_0.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Now let’s compile it:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;compile&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;optimizer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;adam&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
              &lt;span class=&quot;n&quot;&gt;loss&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;losses&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;SparseCategoricalCrossentropy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;from_logits&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
              &lt;span class=&quot;n&quot;&gt;metrics&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;accuracy&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Train it:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;history1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;model1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                    &lt;span class=&quot;n&quot;&gt;validation_data&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;val&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                    &lt;span class=&quot;n&quot;&gt;epochs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Epoch 1/20


/usr/local/lib/python3.7/dist-packages/keras/engine/functional.py:559: UserWarning: Input dict contained keys ['text'] which did not match any model input. They will be ignored by the model.
  inputs = self._flatten_to_reference_inputs(inputs)


180/180 [==============================] - 5s 7ms/step - loss: 0.6924 - accuracy: 0.5181 - val_loss: 0.6911 - val_accuracy: 0.5354
Epoch 2/20
180/180 [==============================] - 1s 7ms/step - loss: 0.6902 - accuracy: 0.5247 - val_loss: 0.6867 - val_accuracy: 0.5314
Epoch 3/20
180/180 [==============================] - 1s 7ms/step - loss: 0.6729 - accuracy: 0.6078 - val_loss: 0.6432 - val_accuracy: 0.8633
Epoch 4/20
180/180 [==============================] - 1s 7ms/step - loss: 0.5800 - accuracy: 0.7944 - val_loss: 0.4979 - val_accuracy: 0.8523
Epoch 5/20
180/180 [==============================] - 1s 7ms/step - loss: 0.4315 - accuracy: 0.8739 - val_loss: 0.3557 - val_accuracy: 0.9004
Epoch 6/20
180/180 [==============================] - 1s 7ms/step - loss: 0.3383 - accuracy: 0.8834 - val_loss: 0.2889 - val_accuracy: 0.8998
Epoch 7/20
180/180 [==============================] - 1s 7ms/step - loss: 0.2960 - accuracy: 0.8879 - val_loss: 0.2411 - val_accuracy: 0.9155
Epoch 8/20
180/180 [==============================] - 1s 7ms/step - loss: 0.2703 - accuracy: 0.8991 - val_loss: 0.2238 - val_accuracy: 0.9204
Epoch 9/20
180/180 [==============================] - 1s 7ms/step - loss: 0.2506 - accuracy: 0.9027 - val_loss: 0.2052 - val_accuracy: 0.9283
Epoch 10/20
180/180 [==============================] - 1s 7ms/step - loss: 0.2393 - accuracy: 0.9071 - val_loss: 0.2045 - val_accuracy: 0.9204
Epoch 11/20
180/180 [==============================] - 1s 7ms/step - loss: 0.2327 - accuracy: 0.9094 - val_loss: 0.1969 - val_accuracy: 0.9249
Epoch 12/20
180/180 [==============================] - 1s 7ms/step - loss: 0.2245 - accuracy: 0.9117 - val_loss: 0.1900 - val_accuracy: 0.9285
Epoch 13/20
180/180 [==============================] - 1s 6ms/step - loss: 0.2156 - accuracy: 0.9158 - val_loss: 0.1765 - val_accuracy: 0.9314
Epoch 14/20
180/180 [==============================] - 1s 6ms/step - loss: 0.2068 - accuracy: 0.9194 - val_loss: 0.1763 - val_accuracy: 0.9305
Epoch 15/20
180/180 [==============================] - 1s 7ms/step - loss: 0.2068 - accuracy: 0.9204 - val_loss: 0.1746 - val_accuracy: 0.9317
Epoch 16/20
180/180 [==============================] - 1s 6ms/step - loss: 0.2017 - accuracy: 0.9216 - val_loss: 0.1695 - val_accuracy: 0.9373
Epoch 17/20
180/180 [==============================] - 1s 7ms/step - loss: 0.1976 - accuracy: 0.9241 - val_loss: 0.1615 - val_accuracy: 0.9373
Epoch 18/20
180/180 [==============================] - 1s 6ms/step - loss: 0.1939 - accuracy: 0.9244 - val_loss: 0.1612 - val_accuracy: 0.9377
Epoch 19/20
180/180 [==============================] - 1s 6ms/step - loss: 0.1898 - accuracy: 0.9256 - val_loss: 0.1594 - val_accuracy: 0.9386
Epoch 20/20
180/180 [==============================] - 1s 6ms/step - loss: 0.1911 - accuracy: 0.9265 - val_loss: 0.1492 - val_accuracy: 0.9481
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So, we’re hitting &lt;strong&gt;mid 90’s for accuracy on our validation set&lt;/strong&gt; just on title alone!
&lt;strong&gt;Validation performance actually slightly exceed training performance&lt;/strong&gt;…guess we’re not overfitting!&lt;/p&gt;

&lt;h1 id=&quot;second-model&quot;&gt;Second Model&lt;/h1&gt;

&lt;p&gt;For this model we’re going to follow the same proceedure, except using only the article text rather than only the article title.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;text_features&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;vectorize_layer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;text_input&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#vectorize text input
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;text_features&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Embedding&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;size_vocabulary&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;output_dim&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;embedding2&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;text_features&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;text_features&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dropout&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;text_features&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#dropout for overfitting
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;text_features&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;GlobalAveragePooling1D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;text_features&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;text_features&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dropout&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;text_features&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#dropout for overfitting
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;text_features&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dense&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;text_features&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# output layer
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;text_output&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dense&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;fake&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;text_features&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model2&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Model&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;inputs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;text_input&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;outputs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;text_output&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;model2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Model: &quot;model_4&quot;
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 text (InputLayer)           [(None, 1)]               0         
                                                                 
 text_vectorization (TextVec  (None, 500)              0         
 torization)                                                     
                                                                 
 embedding2 (Embedding)      (None, 500, 3)            6000      
                                                                 
 dropout_4 (Dropout)         (None, 500, 3)            0         
                                                                 
 global_average_pooling1d_2   (None, 3)                0         
 (GlobalAveragePooling1D)                                        
                                                                 
 dropout_5 (Dropout)         (None, 3)                 0         
                                                                 
 dense_3 (Dense)             (None, 32)                128       
                                                                 
 fake (Dense)                (None, 2)                 66        
                                                                 
=================================================================
Total params: 6,194
Trainable params: 6,194
Non-trainable params: 0
_________________________________________________________________
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;utils&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;plot_model&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;model2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;/images/output_49_0.png&quot; alt=&quot;output_49_0.png&quot; /&gt;&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;compile&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;optimizer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;adam&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
              &lt;span class=&quot;n&quot;&gt;loss&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;losses&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;SparseCategoricalCrossentropy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;from_logits&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
              &lt;span class=&quot;n&quot;&gt;metrics&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;accuracy&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;history2&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;model2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                    &lt;span class=&quot;n&quot;&gt;validation_data&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;val&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                    &lt;span class=&quot;n&quot;&gt;epochs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Epoch 1/20


/usr/local/lib/python3.7/dist-packages/keras/engine/functional.py:559: UserWarning: Input dict contained keys ['title'] which did not match any model input. They will be ignored by the model.
  inputs = self._flatten_to_reference_inputs(inputs)


180/180 [==============================] - 3s 15ms/step - loss: 0.6566 - accuracy: 0.6387 - val_loss: 0.5718 - val_accuracy: 0.8620
Epoch 2/20
180/180 [==============================] - 3s 14ms/step - loss: 0.4307 - accuracy: 0.8971 - val_loss: 0.2919 - val_accuracy: 0.9445
Epoch 3/20
180/180 [==============================] - 3s 14ms/step - loss: 0.2416 - accuracy: 0.9411 - val_loss: 0.1863 - val_accuracy: 0.9602
Epoch 4/20
180/180 [==============================] - 3s 14ms/step - loss: 0.1755 - accuracy: 0.9562 - val_loss: 0.1436 - val_accuracy: 0.9665
Epoch 5/20
180/180 [==============================] - 3s 14ms/step - loss: 0.1460 - accuracy: 0.9612 - val_loss: 0.1191 - val_accuracy: 0.9751
Epoch 6/20
180/180 [==============================] - 3s 14ms/step - loss: 0.1244 - accuracy: 0.9694 - val_loss: 0.1038 - val_accuracy: 0.9751
Epoch 7/20
180/180 [==============================] - 3s 14ms/step - loss: 0.1117 - accuracy: 0.9718 - val_loss: 0.0898 - val_accuracy: 0.9757
Epoch 8/20
180/180 [==============================] - 3s 14ms/step - loss: 0.1017 - accuracy: 0.9723 - val_loss: 0.0811 - val_accuracy: 0.9809
Epoch 9/20
180/180 [==============================] - 3s 14ms/step - loss: 0.0901 - accuracy: 0.9744 - val_loss: 0.0689 - val_accuracy: 0.9825
Epoch 10/20
180/180 [==============================] - 4s 21ms/step - loss: 0.0846 - accuracy: 0.9761 - val_loss: 0.0719 - val_accuracy: 0.9820
Epoch 11/20
180/180 [==============================] - 5s 25ms/step - loss: 0.0776 - accuracy: 0.9788 - val_loss: 0.0679 - val_accuracy: 0.9809
Epoch 12/20
180/180 [==============================] - 3s 15ms/step - loss: 0.0705 - accuracy: 0.9804 - val_loss: 0.0548 - val_accuracy: 0.9883
Epoch 13/20
180/180 [==============================] - 3s 14ms/step - loss: 0.0687 - accuracy: 0.9797 - val_loss: 0.0527 - val_accuracy: 0.9894
Epoch 14/20
180/180 [==============================] - 3s 15ms/step - loss: 0.0628 - accuracy: 0.9826 - val_loss: 0.0438 - val_accuracy: 0.9892
Epoch 15/20
180/180 [==============================] - 3s 14ms/step - loss: 0.0604 - accuracy: 0.9828 - val_loss: 0.0515 - val_accuracy: 0.9874
Epoch 16/20
180/180 [==============================] - 3s 14ms/step - loss: 0.0601 - accuracy: 0.9829 - val_loss: 0.0464 - val_accuracy: 0.9879
Epoch 17/20
180/180 [==============================] - 3s 14ms/step - loss: 0.0527 - accuracy: 0.9853 - val_loss: 0.0418 - val_accuracy: 0.9899
Epoch 18/20
180/180 [==============================] - 3s 14ms/step - loss: 0.0534 - accuracy: 0.9841 - val_loss: 0.0347 - val_accuracy: 0.9919
Epoch 19/20
180/180 [==============================] - 3s 14ms/step - loss: 0.0527 - accuracy: 0.9833 - val_loss: 0.0330 - val_accuracy: 0.9921
Epoch 20/20
180/180 [==============================] - 3s 14ms/step - loss: 0.0476 - accuracy: 0.9860 - val_loss: 0.0306 - val_accuracy: 0.9917
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Wow, validation accuracy one again exceeds training accuracy, this time consistently hitting &lt;strong&gt;around 99%&lt;/strong&gt;!&lt;/p&gt;

&lt;h1 id=&quot;third-model&quot;&gt;Third Model&lt;/h1&gt;

&lt;p&gt;For this last model we’re going to combine both text and title and will require us to concatinate our prior two pipelines:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;main&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;concatenate&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;title_features&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;text_features&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;axis&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Then add a final dense layer:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;main&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dense&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Finally a new output layer:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;output&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dense&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;fake&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;main&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;From here, it’s the same as before:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model3&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Model&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;inputs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;title_input&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;text_input&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;outputs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;output&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Model: &quot;model_7&quot;
__________________________________________________________________________________________________
 Layer (type)                   Output Shape         Param #     Connected to                     
==================================================================================================
 title (InputLayer)             [(None, 1)]          0           []                               
                                                                                                  
 text (InputLayer)              [(None, 1)]          0           []                               
                                                                                                  
 text_vectorization (TextVector  (None, 500)         0           ['title[0][0]',                  
 ization)                                                         'text[0][0]']                   
                                                                                                  
 embedding (Embedding)          (None, 500, 3)       6000        ['text_vectorization[0][0]']     
                                                                                                  
 embedding2 (Embedding)         (None, 500, 3)       6000        ['text_vectorization[2][0]']     
                                                                                                  
 dropout (Dropout)              (None, 500, 3)       0           ['embedding[0][0]']              
                                                                                                  
 dropout_4 (Dropout)            (None, 500, 3)       0           ['embedding2[0][0]']             
                                                                                                  
 global_average_pooling1d (Glob  (None, 3)           0           ['dropout[0][0]']                
 alAveragePooling1D)                                                                              
                                                                                                  
 global_average_pooling1d_2 (Gl  (None, 3)           0           ['dropout_4[0][0]']              
 obalAveragePooling1D)                                                                            
                                                                                                  
 dropout_1 (Dropout)            (None, 3)            0           ['global_average_pooling1d[0][0]'
                                                                 ]                                
                                                                                                  
 dropout_5 (Dropout)            (None, 3)            0           ['global_average_pooling1d_2[0][0
                                                                 ]']                              
                                                                                                  
 dense (Dense)                  (None, 32)           128         ['dropout_1[0][0]']              
                                                                                                  
 dense_3 (Dense)                (None, 32)           128         ['dropout_5[0][0]']              
                                                                                                  
 concatenate_1 (Concatenate)    (None, 64)           0           ['dense[0][0]',                  
                                                                  'dense_3[0][0]']                
                                                                                                  
 dense_4 (Dense)                (None, 32)           2080        ['concatenate_1[0][0]']          
                                                                                                  
 fake (Dense)                   (None, 2)            66          ['dense_4[0][0]']                
                                                                                                  
==================================================================================================
Total params: 14,402
Trainable params: 14,402
Non-trainable params: 0
__________________________________________________________________________________________________
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;utils&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;plot_model&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;model3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;/images/output_63_0.png&quot; alt=&quot;output_63_0.png&quot; /&gt;&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;compile&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;optimizer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;adam&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
              &lt;span class=&quot;n&quot;&gt;loss&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;losses&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;SparseCategoricalCrossentropy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;from_logits&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
              &lt;span class=&quot;n&quot;&gt;metrics&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;accuracy&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;history3&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;model3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                    &lt;span class=&quot;n&quot;&gt;validation_data&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;val&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                    &lt;span class=&quot;n&quot;&gt;epochs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Epoch 1/20
180/180 [==============================] - 4s 17ms/step - loss: 0.1411 - accuracy: 0.9852 - val_loss: 0.0182 - val_accuracy: 0.9993
Epoch 2/20
180/180 [==============================] - 3s 16ms/step - loss: 0.0196 - accuracy: 0.9964 - val_loss: 0.0079 - val_accuracy: 0.9996
Epoch 3/20
180/180 [==============================] - 3s 16ms/step - loss: 0.0131 - accuracy: 0.9966 - val_loss: 0.0046 - val_accuracy: 0.9996
Epoch 4/20
180/180 [==============================] - 3s 17ms/step - loss: 0.0118 - accuracy: 0.9967 - val_loss: 0.0059 - val_accuracy: 0.9991
Epoch 5/20
180/180 [==============================] - 3s 16ms/step - loss: 0.0095 - accuracy: 0.9974 - val_loss: 0.0052 - val_accuracy: 0.9996
Epoch 6/20
180/180 [==============================] - 3s 16ms/step - loss: 0.0104 - accuracy: 0.9969 - val_loss: 0.0044 - val_accuracy: 0.9996
Epoch 7/20
180/180 [==============================] - 3s 16ms/step - loss: 0.0110 - accuracy: 0.9967 - val_loss: 0.0054 - val_accuracy: 0.9993
Epoch 8/20
180/180 [==============================] - 3s 16ms/step - loss: 0.0095 - accuracy: 0.9972 - val_loss: 0.0031 - val_accuracy: 0.9996
Epoch 9/20
180/180 [==============================] - 3s 16ms/step - loss: 0.0070 - accuracy: 0.9978 - val_loss: 0.0019 - val_accuracy: 0.9998
Epoch 10/20
180/180 [==============================] - 3s 16ms/step - loss: 0.0086 - accuracy: 0.9972 - val_loss: 0.0019 - val_accuracy: 0.9996
Epoch 11/20
180/180 [==============================] - 3s 16ms/step - loss: 0.0094 - accuracy: 0.9972 - val_loss: 0.0076 - val_accuracy: 0.9989
Epoch 12/20
180/180 [==============================] - 3s 16ms/step - loss: 0.0075 - accuracy: 0.9980 - val_loss: 0.0042 - val_accuracy: 0.9993
Epoch 13/20
180/180 [==============================] - 3s 16ms/step - loss: 0.0085 - accuracy: 0.9972 - val_loss: 0.0030 - val_accuracy: 0.9996
Epoch 14/20
180/180 [==============================] - 3s 16ms/step - loss: 0.0084 - accuracy: 0.9970 - val_loss: 8.1322e-04 - val_accuracy: 1.0000
Epoch 15/20
180/180 [==============================] - 3s 16ms/step - loss: 0.0072 - accuracy: 0.9978 - val_loss: 0.0020 - val_accuracy: 0.9991
Epoch 16/20
180/180 [==============================] - 3s 16ms/step - loss: 0.0082 - accuracy: 0.9974 - val_loss: 8.0624e-04 - val_accuracy: 0.9998
Epoch 17/20
180/180 [==============================] - 3s 16ms/step - loss: 0.0088 - accuracy: 0.9974 - val_loss: 0.0060 - val_accuracy: 0.9989
Epoch 18/20
180/180 [==============================] - 3s 16ms/step - loss: 0.0075 - accuracy: 0.9978 - val_loss: 0.0037 - val_accuracy: 0.9996
Epoch 19/20
180/180 [==============================] - 3s 16ms/step - loss: 0.0087 - accuracy: 0.9971 - val_loss: 5.9027e-04 - val_accuracy: 1.0000
Epoch 20/20
180/180 [==============================] - 3s 16ms/step - loss: 0.0059 - accuracy: 0.9984 - val_loss: 0.0028 - val_accuracy: 0.9996
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The combined model achieves &lt;strong&gt;nearly perfect accuracy (over 99%)&lt;/strong&gt;. It fluctates between perfect, and a very fractional percentage off perfect, fairly quickly. You could likely get away with reducing the epochs for this model. Overall, good results.&lt;/p&gt;

&lt;h1 id=&quot;model-evaluation&quot;&gt;Model Evaluation&lt;/h1&gt;

&lt;p&gt;Now let’s see how our best model (the main, combined model) performs on unseen data.&lt;/p&gt;

&lt;p&gt;First let’s read in the test data from a url:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;test_url&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;https://github.com/PhilChodrow/PIC16b/blob/master/datasets/fake_news_test.csv?raw=true&quot;&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;test_df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_csv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;test_url&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;test_df&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div id=&quot;df-aec53dc6-7380-4a17-b104-e703211cf6dc&quot;&gt;
    &lt;div class=&quot;colab-df-container&quot;&gt;
      &lt;div&gt;
&lt;style scoped=&quot;&quot;&gt;
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }

    .dataframe tbody tr th {
        vertical-align: top;
    }

    .dataframe thead th {
        text-align: right;
    }
&lt;/style&gt;
&lt;table border=&quot;1&quot; class=&quot;dataframe&quot;&gt;
  &lt;thead&gt;
    &lt;tr style=&quot;text-align: right;&quot;&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;Unnamed: 0&lt;/th&gt;
      &lt;th&gt;title&lt;/th&gt;
      &lt;th&gt;text&lt;/th&gt;
      &lt;th&gt;fake&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;th&gt;0&lt;/th&gt;
      &lt;td&gt;420&lt;/td&gt;
      &lt;td&gt;CNN And MSNBC Destroy Trump, Black Out His Fa...&lt;/td&gt;
      &lt;td&gt;Donald Trump practically does something to cri...&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1&lt;/th&gt;
      &lt;td&gt;14902&lt;/td&gt;
      &lt;td&gt;Exclusive: Kremlin tells companies to deliver ...&lt;/td&gt;
      &lt;td&gt;The Kremlin wants good news.  The Russian lead...&lt;/td&gt;
      &lt;td&gt;0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2&lt;/th&gt;
      &lt;td&gt;322&lt;/td&gt;
      &lt;td&gt;Golden State Warriors Coach Just WRECKED Trum...&lt;/td&gt;
      &lt;td&gt;On Saturday, the man we re forced to call  Pre...&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3&lt;/th&gt;
      &lt;td&gt;16108&lt;/td&gt;
      &lt;td&gt;Putin opens monument to Stalin's victims, diss...&lt;/td&gt;
      &lt;td&gt;President Vladimir Putin inaugurated a monumen...&lt;/td&gt;
      &lt;td&gt;0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;4&lt;/th&gt;
      &lt;td&gt;10304&lt;/td&gt;
      &lt;td&gt;BREAKING: DNC HACKER FIRED For Bank Fraud…Blam...&lt;/td&gt;
      &lt;td&gt;Apparently breaking the law and scamming the g...&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;...&lt;/th&gt;
      &lt;td&gt;...&lt;/td&gt;
      &lt;td&gt;...&lt;/td&gt;
      &lt;td&gt;...&lt;/td&gt;
      &lt;td&gt;...&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;22444&lt;/th&gt;
      &lt;td&gt;20058&lt;/td&gt;
      &lt;td&gt;U.S. will stand be steadfast ally to Britain a...&lt;/td&gt;
      &lt;td&gt;The United States will stand by Britain as it ...&lt;/td&gt;
      &lt;td&gt;0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;22445&lt;/th&gt;
      &lt;td&gt;21104&lt;/td&gt;
      &lt;td&gt;Trump rebukes South Korea after North Korean b...&lt;/td&gt;
      &lt;td&gt;U.S. President Donald Trump admonished South K...&lt;/td&gt;
      &lt;td&gt;0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;22446&lt;/th&gt;
      &lt;td&gt;2842&lt;/td&gt;
      &lt;td&gt;New rule requires U.S. banks to allow consumer...&lt;/td&gt;
      &lt;td&gt;U.S. banks and credit card companies could be ...&lt;/td&gt;
      &lt;td&gt;0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;22447&lt;/th&gt;
      &lt;td&gt;22298&lt;/td&gt;
      &lt;td&gt;US Middle Class Still Suffering from Rockefell...&lt;/td&gt;
      &lt;td&gt;Dick Eastman The Truth HoundWhen Henry Kissin...&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;22448&lt;/th&gt;
      &lt;td&gt;333&lt;/td&gt;
      &lt;td&gt;Scaramucci TV Appearance Goes Off The Rails A...&lt;/td&gt;
      &lt;td&gt;The most infamous characters from Donald Trump...&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;22449 rows × 4 columns&lt;/p&gt;
&lt;/div&gt;
      &lt;button class=&quot;colab-df-convert&quot; onclick=&quot;convertToInteractive('df-aec53dc6-7380-4a17-b104-e703211cf6dc')&quot; title=&quot;Convert this dataframe to an interactive table.&quot; style=&quot;display:none;&quot;&gt;

  &amp;lt;svg xmlns=&quot;http://www.w3.org/2000/svg&quot; height=&quot;24px&quot;viewBox=&quot;0 0 24 24&quot;
       width=&quot;24px&quot;&amp;gt;
    &lt;path d=&quot;M0 0h24v24H0V0z&quot; fill=&quot;none&quot; /&gt;
    &lt;path d=&quot;M18.56 5.44l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94zm-11 1L8.5 8.5l.94-2.06 2.06-.94-2.06-.94L8.5 2.5l-.94 2.06-2.06.94zm10 10l.94 2.06.94-2.06 2.06-.94-2.06-.94-.94-2.06-.94 2.06-2.06.94z&quot; /&gt;&lt;path d=&quot;M17.41 7.96l-1.37-1.37c-.4-.4-.92-.59-1.43-.59-.52 0-1.04.2-1.43.59L10.3 9.45l-7.72 7.72c-.78.78-.78 2.05 0 2.83L4 21.41c.39.39.9.59 1.41.59.51 0 1.02-.2 1.41-.59l7.78-7.78 2.81-2.81c.8-.78.8-2.07 0-2.86zM5.41 20L4 18.59l7.72-7.72 1.47 1.35L5.41 20z&quot; /&gt;
  &amp;lt;/svg&amp;gt;
      &lt;/button&gt;

  &lt;style&gt;
    .colab-df-container {
      display:flex;
      flex-wrap:wrap;
      gap: 12px;
    }

    .colab-df-convert {
      background-color: #E8F0FE;
      border: none;
      border-radius: 50%;
      cursor: pointer;
      display: none;
      fill: #1967D2;
      height: 32px;
      padding: 0 0 0 0;
      width: 32px;
    }

    .colab-df-convert:hover {
      background-color: #E2EBFA;
      box-shadow: 0px 1px 2px rgba(60, 64, 67, 0.3), 0px 1px 3px 1px rgba(60, 64, 67, 0.15);
      fill: #174EA6;
    }

    [theme=dark] .colab-df-convert {
      background-color: #3B4455;
      fill: #D2E3FC;
    }

    [theme=dark] .colab-df-convert:hover {
      background-color: #434B5C;
      box-shadow: 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
      filter: drop-shadow(0px 1px 2px rgba(0, 0, 0, 0.3));
      fill: #FFFFFF;
    }
  &lt;/style&gt;

      &lt;script&gt;
        const buttonEl =
          document.querySelector('#df-aec53dc6-7380-4a17-b104-e703211cf6dc button.colab-df-convert');
        buttonEl.style.display =
          google.colab.kernel.accessAllowed ? 'block' : 'none';

        async function convertToInteractive(key) {
          const element = document.querySelector('#df-aec53dc6-7380-4a17-b104-e703211cf6dc');
          const dataTable =
            await google.colab.kernel.invokeFunction('convertToInteractive',
                                                     [key], {});
          if (!dataTable) return;

          const docLinkHtml = 'Like what you see? Visit the ' +
            '&lt;a target=&quot;_blank&quot; href=https://colab.research.google.com/notebooks/data_table.ipynb&gt;data table notebook&lt;/a&gt;'
            + ' to learn more about interactive tables.';
          element.innerHTML = '';
          dataTable['output_type'] = 'display_data';
          await google.colab.output.renderOutput(dataTable, element);
          const docLink = document.createElement('div');
          docLink.innerHTML = docLinkHtml;
          element.appendChild(docLink);
        }
      &lt;/script&gt;
    &lt;/div&gt;
  &lt;/div&gt;

&lt;p&gt;Now to run it through our existing preprocessing functions:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;test_ds&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;make_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;test_df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To test it:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;evaluate&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;test_ds&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;225/225 [==============================] - 5s 21ms/step - loss: 0.0446 - accuracy: 0.9900





[0.04461757093667984, 0.9899773001670837]
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Great, it scored &lt;strong&gt;99% accuracy on the unseen dataset&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;#Embedding Visualization&lt;/p&gt;

&lt;p&gt;Finally, let’s make an embedding visualization to examine patterns and associations in the words the model found the most useful in this classification task.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;weights&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;model3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get_layer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'embedding'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get_weights&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# get the weights from the embedding layer
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;vocab&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;vectorize_layer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get_vocabulary&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;                &lt;span class=&quot;c1&quot;&gt;# get the vocabulary from our data prep for later
&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;sklearn.decomposition&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;PCA&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;pca&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;PCA&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;n_components&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;weights&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pca&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fit_transform&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;weights&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;embedding_df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;DataFrame&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;({&lt;/span&gt;
    &lt;span class=&quot;s&quot;&gt;'word'&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;vocab&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
    &lt;span class=&quot;s&quot;&gt;'x0'&lt;/span&gt;   &lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;weights&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[:,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt;
    &lt;span class=&quot;s&quot;&gt;'x1'&lt;/span&gt;   &lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;weights&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[:,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
&lt;span class=&quot;p&quot;&gt;})&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;px&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;scatter&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;embedding_df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                 &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;x0&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                 &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;x1&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                 &lt;span class=&quot;n&quot;&gt;size&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;len&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;embedding_df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
                &lt;span class=&quot;c1&quot;&gt;# size_max = 2,
&lt;/span&gt;                 &lt;span class=&quot;n&quot;&gt;hover_name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;word&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;show&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;html&gt;
&lt;head&gt;&lt;meta charset=&quot;utf-8&quot; /&gt;&lt;/head&gt;
&lt;body&gt;
    &lt;div&gt;                        &lt;script type=&quot;text/javascript&quot;&gt;window.PlotlyConfig = {MathJaxConfig: 'local'};&lt;/script&gt;
        &lt;script type=&quot;text/javascript&quot;&gt;/**
* plotly.js v2.8.3
* Copyright 2012-2021, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
!function(t){if(&quot;object&quot;==typeof exports&amp;&amp;&quot;undefined&quot;!=typeof module)module.exports=t();else if(&quot;function&quot;==typeof define&amp;&amp;define.amd)define([],t);else{(&quot;undefined&quot;!=typeof window?window:&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:this).Plotly=t()}}((function(){return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var l=&quot;function&quot;==typeof require&amp;&amp;require;if(!s&amp;&amp;l)return l(o,!0);if(a)return a(o,!0);var c=new Error(&quot;Cannot find module '&quot;+o+&quot;'&quot;);throw c.code=&quot;MODULE_NOT_FOUND&quot;,c}var u=r[o]={exports:{}};e[o][0].call(u.exports,(function(t){return i(e[o][1][t]||t)}),u,u.exports,t,e,r,n)}return r[o].exports}for(var a=&quot;function&quot;==typeof require&amp;&amp;require,o=0;o&lt;n.length;o++)i(n[o]);return i}({1:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../src/lib&quot;),i={&quot;X,X div&quot;:'direction:ltr;font-family:&quot;Open Sans&quot;,verdana,arial,sans-serif;margin:0;padding:0;',&quot;X input,X button&quot;:'font-family:&quot;Open Sans&quot;,verdana,arial,sans-serif;',&quot;X input:focus,X button:focus&quot;:&quot;outline:none;&quot;,&quot;X a&quot;:&quot;text-decoration:none;&quot;,&quot;X a:hover&quot;:&quot;text-decoration:none;&quot;,&quot;X .crisp&quot;:&quot;shape-rendering:crispEdges;&quot;,&quot;X .user-select-none&quot;:&quot;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;&quot;,&quot;X svg&quot;:&quot;overflow:hidden;&quot;,&quot;X svg a&quot;:&quot;fill:#447adb;&quot;,&quot;X svg a:hover&quot;:&quot;fill:#3c6dc5;&quot;,&quot;X .main-svg&quot;:&quot;position:absolute;top:0;left:0;pointer-events:none;&quot;,&quot;X .main-svg .draglayer&quot;:&quot;pointer-events:all;&quot;,&quot;X .cursor-default&quot;:&quot;cursor:default;&quot;,&quot;X .cursor-pointer&quot;:&quot;cursor:pointer;&quot;,&quot;X .cursor-crosshair&quot;:&quot;cursor:crosshair;&quot;,&quot;X .cursor-move&quot;:&quot;cursor:move;&quot;,&quot;X .cursor-col-resize&quot;:&quot;cursor:col-resize;&quot;,&quot;X .cursor-row-resize&quot;:&quot;cursor:row-resize;&quot;,&quot;X .cursor-ns-resize&quot;:&quot;cursor:ns-resize;&quot;,&quot;X .cursor-ew-resize&quot;:&quot;cursor:ew-resize;&quot;,&quot;X .cursor-sw-resize&quot;:&quot;cursor:sw-resize;&quot;,&quot;X .cursor-s-resize&quot;:&quot;cursor:s-resize;&quot;,&quot;X .cursor-se-resize&quot;:&quot;cursor:se-resize;&quot;,&quot;X .cursor-w-resize&quot;:&quot;cursor:w-resize;&quot;,&quot;X .cursor-e-resize&quot;:&quot;cursor:e-resize;&quot;,&quot;X .cursor-nw-resize&quot;:&quot;cursor:nw-resize;&quot;,&quot;X .cursor-n-resize&quot;:&quot;cursor:n-resize;&quot;,&quot;X .cursor-ne-resize&quot;:&quot;cursor:ne-resize;&quot;,&quot;X .cursor-grab&quot;:&quot;cursor:-webkit-grab;cursor:grab;&quot;,&quot;X .modebar&quot;:&quot;position:absolute;top:2px;right:2px;&quot;,&quot;X .ease-bg&quot;:&quot;-webkit-transition:background-color .3s ease 0s;-moz-transition:background-color .3s ease 0s;-ms-transition:background-color .3s ease 0s;-o-transition:background-color .3s ease 0s;transition:background-color .3s ease 0s;&quot;,&quot;X .modebar--hover&gt;:not(.watermark)&quot;:&quot;opacity:0;-webkit-transition:opacity .3s ease 0s;-moz-transition:opacity .3s ease 0s;-ms-transition:opacity .3s ease 0s;-o-transition:opacity .3s ease 0s;transition:opacity .3s ease 0s;&quot;,&quot;X:hover .modebar--hover .modebar-group&quot;:&quot;opacity:1;&quot;,&quot;X .modebar-group&quot;:&quot;float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;&quot;,&quot;X .modebar-btn&quot;:&quot;position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;&quot;,&quot;X .modebar-btn svg&quot;:&quot;position:relative;top:2px;&quot;,&quot;X .modebar.vertical&quot;:&quot;display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;&quot;,&quot;X .modebar.vertical svg&quot;:&quot;top:-1px;&quot;,&quot;X .modebar.vertical .modebar-group&quot;:&quot;display:block;float:none;padding-left:0px;padding-bottom:8px;&quot;,&quot;X .modebar.vertical .modebar-group .modebar-btn&quot;:&quot;display:block;text-align:center;&quot;,&quot;X [data-title]:before,X [data-title]:after&quot;:&quot;position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;&quot;,&quot;X [data-title]:hover:before,X [data-title]:hover:after&quot;:&quot;display:block;opacity:1;&quot;,&quot;X [data-title]:before&quot;:'content:&quot;&quot;;position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;',&quot;X [data-title]:after&quot;:&quot;content:attr(data-title);background:#69738a;color:#fff;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;&quot;,&quot;X .vertical [data-title]:before,X .vertical [data-title]:after&quot;:&quot;top:0%;right:200%;&quot;,&quot;X .vertical [data-title]:before&quot;:&quot;border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;&quot;,&quot;X .select-outline&quot;:&quot;fill:none;stroke-width:1;shape-rendering:crispEdges;&quot;,&quot;X .select-outline-1&quot;:&quot;stroke:#fff;&quot;,&quot;X .select-outline-2&quot;:&quot;stroke:#000;stroke-dasharray:2px 2px;&quot;,Y:'font-family:&quot;Open Sans&quot;,verdana,arial,sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;',&quot;Y p&quot;:&quot;margin:0;&quot;,&quot;Y .notifier-note&quot;:&quot;min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;&quot;,&quot;Y .notifier-close&quot;:&quot;color:#fff;opacity:.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;&quot;,&quot;Y .notifier-close:hover&quot;:&quot;color:#444;text-decoration:none;cursor:pointer;&quot;};for(var a in i){var o=a.replace(/^,/,&quot; ,&quot;).replace(/X/g,&quot;.js-plotly-plot .plotly&quot;).replace(/Y/g,&quot;.plotly-notifier&quot;);n.addStyleRule(o,i[a])}},{&quot;../src/lib&quot;:503}],2:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/aggregate&quot;)},{&quot;../src/transforms/aggregate&quot;:1114}],3:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/bar&quot;)},{&quot;../src/traces/bar&quot;:656}],4:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/barpolar&quot;)},{&quot;../src/traces/barpolar&quot;:669}],5:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/box&quot;)},{&quot;../src/traces/box&quot;:679}],6:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/components/calendars&quot;)},{&quot;../src/components/calendars&quot;:364}],7:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/candlestick&quot;)},{&quot;../src/traces/candlestick&quot;:688}],8:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/carpet&quot;)},{&quot;../src/traces/carpet&quot;:707}],9:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/choropleth&quot;)},{&quot;../src/traces/choropleth&quot;:721}],10:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/choroplethmapbox&quot;)},{&quot;../src/traces/choroplethmapbox&quot;:728}],11:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/cone&quot;)},{&quot;../src/traces/cone&quot;:734}],12:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/contour&quot;)},{&quot;../src/traces/contour&quot;:749}],13:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/contourcarpet&quot;)},{&quot;../src/traces/contourcarpet&quot;:760}],14:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/core&quot;)},{&quot;../src/core&quot;:481}],15:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/densitymapbox&quot;)},{&quot;../src/traces/densitymapbox&quot;:768}],16:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/filter&quot;)},{&quot;../src/transforms/filter&quot;:1115}],17:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/funnel&quot;)},{&quot;../src/traces/funnel&quot;:778}],18:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/funnelarea&quot;)},{&quot;../src/traces/funnelarea&quot;:787}],19:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/groupby&quot;)},{&quot;../src/transforms/groupby&quot;:1116}],20:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/heatmap&quot;)},{&quot;../src/traces/heatmap&quot;:800}],21:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/heatmapgl&quot;)},{&quot;../src/traces/heatmapgl&quot;:811}],22:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram&quot;)},{&quot;../src/traces/histogram&quot;:823}],23:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram2d&quot;)},{&quot;../src/traces/histogram2d&quot;:829}],24:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram2dcontour&quot;)},{&quot;../src/traces/histogram2dcontour&quot;:833}],25:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/icicle&quot;)},{&quot;../src/traces/icicle&quot;:839}],26:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/image&quot;)},{&quot;../src/traces/image&quot;:852}],27:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./core&quot;);n.register([t(&quot;./bar&quot;),t(&quot;./box&quot;),t(&quot;./heatmap&quot;),t(&quot;./histogram&quot;),t(&quot;./histogram2d&quot;),t(&quot;./histogram2dcontour&quot;),t(&quot;./contour&quot;),t(&quot;./scatterternary&quot;),t(&quot;./violin&quot;),t(&quot;./funnel&quot;),t(&quot;./waterfall&quot;),t(&quot;./image&quot;),t(&quot;./pie&quot;),t(&quot;./sunburst&quot;),t(&quot;./treemap&quot;),t(&quot;./icicle&quot;),t(&quot;./funnelarea&quot;),t(&quot;./scatter3d&quot;),t(&quot;./surface&quot;),t(&quot;./isosurface&quot;),t(&quot;./volume&quot;),t(&quot;./mesh3d&quot;),t(&quot;./cone&quot;),t(&quot;./streamtube&quot;),t(&quot;./scattergeo&quot;),t(&quot;./choropleth&quot;),t(&quot;./scattergl&quot;),t(&quot;./splom&quot;),t(&quot;./pointcloud&quot;),t(&quot;./heatmapgl&quot;),t(&quot;./parcoords&quot;),t(&quot;./parcats&quot;),t(&quot;./scattermapbox&quot;),t(&quot;./choroplethmapbox&quot;),t(&quot;./densitymapbox&quot;),t(&quot;./sankey&quot;),t(&quot;./indicator&quot;),t(&quot;./table&quot;),t(&quot;./carpet&quot;),t(&quot;./scattercarpet&quot;),t(&quot;./contourcarpet&quot;),t(&quot;./ohlc&quot;),t(&quot;./candlestick&quot;),t(&quot;./scatterpolar&quot;),t(&quot;./scatterpolargl&quot;),t(&quot;./barpolar&quot;),t(&quot;./scattersmith&quot;),t(&quot;./aggregate&quot;),t(&quot;./filter&quot;),t(&quot;./groupby&quot;),t(&quot;./sort&quot;),t(&quot;./calendars&quot;)]),e.exports=n},{&quot;./aggregate&quot;:2,&quot;./bar&quot;:3,&quot;./barpolar&quot;:4,&quot;./box&quot;:5,&quot;./calendars&quot;:6,&quot;./candlestick&quot;:7,&quot;./carpet&quot;:8,&quot;./choropleth&quot;:9,&quot;./choroplethmapbox&quot;:10,&quot;./cone&quot;:11,&quot;./contour&quot;:12,&quot;./contourcarpet&quot;:13,&quot;./core&quot;:14,&quot;./densitymapbox&quot;:15,&quot;./filter&quot;:16,&quot;./funnel&quot;:17,&quot;./funnelarea&quot;:18,&quot;./groupby&quot;:19,&quot;./heatmap&quot;:20,&quot;./heatmapgl&quot;:21,&quot;./histogram&quot;:22,&quot;./histogram2d&quot;:23,&quot;./histogram2dcontour&quot;:24,&quot;./icicle&quot;:25,&quot;./image&quot;:26,&quot;./indicator&quot;:28,&quot;./isosurface&quot;:29,&quot;./mesh3d&quot;:30,&quot;./ohlc&quot;:31,&quot;./parcats&quot;:32,&quot;./parcoords&quot;:33,&quot;./pie&quot;:34,&quot;./pointcloud&quot;:35,&quot;./sankey&quot;:36,&quot;./scatter3d&quot;:37,&quot;./scattercarpet&quot;:38,&quot;./scattergeo&quot;:39,&quot;./scattergl&quot;:40,&quot;./scattermapbox&quot;:41,&quot;./scatterpolar&quot;:42,&quot;./scatterpolargl&quot;:43,&quot;./scattersmith&quot;:44,&quot;./scatterternary&quot;:45,&quot;./sort&quot;:46,&quot;./splom&quot;:47,&quot;./streamtube&quot;:48,&quot;./sunburst&quot;:49,&quot;./surface&quot;:50,&quot;./table&quot;:51,&quot;./treemap&quot;:52,&quot;./violin&quot;:53,&quot;./volume&quot;:54,&quot;./waterfall&quot;:55}],28:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/indicator&quot;)},{&quot;../src/traces/indicator&quot;:860}],29:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/isosurface&quot;)},{&quot;../src/traces/isosurface&quot;:866}],30:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/mesh3d&quot;)},{&quot;../src/traces/mesh3d&quot;:871}],31:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/ohlc&quot;)},{&quot;../src/traces/ohlc&quot;:876}],32:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/parcats&quot;)},{&quot;../src/traces/parcats&quot;:885}],33:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/parcoords&quot;)},{&quot;../src/traces/parcoords&quot;:895}],34:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/pie&quot;)},{&quot;../src/traces/pie&quot;:906}],35:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/pointcloud&quot;)},{&quot;../src/traces/pointcloud&quot;:915}],36:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/sankey&quot;)},{&quot;../src/traces/sankey&quot;:921}],37:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatter3d&quot;)},{&quot;../src/traces/scatter3d&quot;:959}],38:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattercarpet&quot;)},{&quot;../src/traces/scattercarpet&quot;:966}],39:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattergeo&quot;)},{&quot;../src/traces/scattergeo&quot;:974}],40:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattergl&quot;)},{&quot;../src/traces/scattergl&quot;:987}],41:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattermapbox&quot;)},{&quot;../src/traces/scattermapbox&quot;:997}],42:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterpolar&quot;)},{&quot;../src/traces/scatterpolar&quot;:1005}],43:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterpolargl&quot;)},{&quot;../src/traces/scatterpolargl&quot;:1012}],44:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattersmith&quot;)},{&quot;../src/traces/scattersmith&quot;:1019}],45:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterternary&quot;)},{&quot;../src/traces/scatterternary&quot;:1027}],46:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/sort&quot;)},{&quot;../src/transforms/sort&quot;:1118}],47:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/splom&quot;)},{&quot;../src/traces/splom&quot;:1036}],48:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/streamtube&quot;)},{&quot;../src/traces/streamtube&quot;:1044}],49:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/sunburst&quot;)},{&quot;../src/traces/sunburst&quot;:1052}],50:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/surface&quot;)},{&quot;../src/traces/surface&quot;:1061}],51:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/table&quot;)},{&quot;../src/traces/table&quot;:1069}],52:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/treemap&quot;)},{&quot;../src/traces/treemap&quot;:1080}],53:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/violin&quot;)},{&quot;../src/traces/violin&quot;:1093}],54:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/volume&quot;)},{&quot;../src/traces/volume&quot;:1101}],55:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/waterfall&quot;)},{&quot;../src/traces/waterfall&quot;:1109}],56:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-array&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-shape&quot;),t(&quot;elementary-circuits-directed-graph&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,null)}(this,(function(t,e,r,n,i){&quot;use strict&quot;;function a(t){return t.target.depth}function o(t,e){return t.sourceLinks.length?t.depth:e-1}function s(t){return function(){return t}}i=i&amp;&amp;i.hasOwnProperty(&quot;default&quot;)?i.default:i;var l=&quot;function&quot;==typeof Symbol&amp;&amp;&quot;symbol&quot;==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;&quot;function&quot;==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?&quot;symbol&quot;:typeof t};function c(t,e){return f(t.source,e.source)||t.index-e.index}function u(t,e){return f(t.target,e.target)||t.index-e.index}function f(t,e){return t.partOfCycle===e.partOfCycle?t.y0-e.y0:&quot;top&quot;===t.circularLinkType||&quot;bottom&quot;===e.circularLinkType?-1:1}function h(t){return t.value}function p(t){return(t.y0+t.y1)/2}function d(t){return p(t.source)}function m(t){return p(t.target)}function g(t){return t.index}function v(t){return t.nodes}function y(t){return t.links}function x(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function b(t,e){return e(t)}function _(t,e,r){var n=0;if(null===r){for(var a=[],o=0;o&lt;t.links.length;o++){var s=t.links[o],l=s.source.index,c=s.target.index;a[l]||(a[l]=[]),a[c]||(a[c]=[]),-1===a[l].indexOf(c)&amp;&amp;a[l].push(c)}var u=i(a);u.sort((function(t,e){return t.length-e.length}));var f={};for(o=0;o&lt;u.length;o++){var h=u[o].slice(-2);f[h[0]]||(f[h[0]]={}),f[h[0]][h[1]]=!0}t.links.forEach((function(t){var e=t.target.index,r=t.source.index;e===r||f[r]&amp;&amp;f[r][e]?(t.circular=!0,t.circularLinkID=n,n+=1):t.circular=!1}))}else t.links.forEach((function(t){t.source[r]&lt;t.target[r]?t.circular=!1:(t.circular=!0,t.circularLinkID=n,n+=1)}))}function w(t,e){var r=0,n=0;t.links.forEach((function(i){i.circular&amp;&amp;(i.source.circularLinkType||i.target.circularLinkType?i.circularLinkType=i.source.circularLinkType?i.source.circularLinkType:i.target.circularLinkType:i.circularLinkType=r&lt;n?&quot;top&quot;:&quot;bottom&quot;,&quot;top&quot;==i.circularLinkType?r+=1:n+=1,t.nodes.forEach((function(t){b(t,e)!=b(i.source,e)&amp;&amp;b(t,e)!=b(i.target,e)||(t.circularLinkType=i.circularLinkType)})))})),t.links.forEach((function(t){t.circular&amp;&amp;(t.source.circularLinkType==t.target.circularLinkType&amp;&amp;(t.circularLinkType=t.source.circularLinkType),q(t,e)&amp;&amp;(t.circularLinkType=t.source.circularLinkType))}))}function T(t){var e=Math.abs(t.y1-t.y0),r=Math.abs(t.target.x0-t.source.x1);return Math.atan(r/e)}function k(t,e){var r=0;t.sourceLinks.forEach((function(t){r=t.circular&amp;&amp;!q(t,e)?r+1:r}));var n=0;return t.targetLinks.forEach((function(t){n=t.circular&amp;&amp;!q(t,e)?n+1:n})),r+n}function A(t){var e=t.source.sourceLinks,r=0;e.forEach((function(t){r=t.circular?r+1:r}));var n=t.target.targetLinks,i=0;return n.forEach((function(t){i=t.circular?i+1:i})),!(r&gt;1||i&gt;1)}function M(t,e,r){return t.sort(E),t.forEach((function(n,i){var a,o,s=0;if(q(n,r)&amp;&amp;A(n))n.circularPathData.verticalBuffer=s+n.width/2;else{for(var l=0;l&lt;i;l++)if(a=t[i],o=t[l],!(a.source.column&lt;o.target.column||a.target.column&gt;o.source.column)){var c=t[l].circularPathData.verticalBuffer+t[l].width/2+e;s=c&gt;s?c:s}n.circularPathData.verticalBuffer=s+n.width/2}})),t}function S(t,r,i,a){var o=e.min(t.links,(function(t){return t.source.y0}));t.links.forEach((function(t){t.circular&amp;&amp;(t.circularPathData={})})),M(t.links.filter((function(t){return&quot;top&quot;==t.circularLinkType})),r,a),M(t.links.filter((function(t){return&quot;bottom&quot;==t.circularLinkType})),r,a),t.links.forEach((function(e){if(e.circular){if(e.circularPathData.arcRadius=e.width+10,e.circularPathData.leftNodeBuffer=5,e.circularPathData.rightNodeBuffer=5,e.circularPathData.sourceWidth=e.source.x1-e.source.x0,e.circularPathData.sourceX=e.source.x0+e.circularPathData.sourceWidth,e.circularPathData.targetX=e.target.x0,e.circularPathData.sourceY=e.y0,e.circularPathData.targetY=e.y1,q(e,a)&amp;&amp;A(e))e.circularPathData.leftSmallArcRadius=10+e.width/2,e.circularPathData.leftLargeArcRadius=10+e.width/2,e.circularPathData.rightSmallArcRadius=10+e.width/2,e.circularPathData.rightLargeArcRadius=10+e.width/2,&quot;bottom&quot;==e.circularLinkType?(e.circularPathData.verticalFullExtent=e.source.y1+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=e.source.y0-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius);else{var s=e.source.column,l=e.circularLinkType,c=t.links.filter((function(t){return t.source.column==s&amp;&amp;t.circularLinkType==l}));&quot;bottom&quot;==e.circularLinkType?c.sort(C):c.sort(L);var u=0;c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&amp;&amp;(e.circularPathData.leftSmallArcRadius=10+e.width/2+u,e.circularPathData.leftLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),s=e.target.column,c=t.links.filter((function(t){return t.target.column==s&amp;&amp;t.circularLinkType==l})),&quot;bottom&quot;==e.circularLinkType?c.sort(I):c.sort(P),u=0,c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&amp;&amp;(e.circularPathData.rightSmallArcRadius=10+e.width/2+u,e.circularPathData.rightLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),&quot;bottom&quot;==e.circularLinkType?(e.circularPathData.verticalFullExtent=Math.max(i,e.source.y1,e.target.y1)+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=o-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius)}e.circularPathData.leftInnerExtent=e.circularPathData.sourceX+e.circularPathData.leftNodeBuffer,e.circularPathData.rightInnerExtent=e.circularPathData.targetX-e.circularPathData.rightNodeBuffer,e.circularPathData.leftFullExtent=e.circularPathData.sourceX+e.circularPathData.leftLargeArcRadius+e.circularPathData.leftNodeBuffer,e.circularPathData.rightFullExtent=e.circularPathData.targetX-e.circularPathData.rightLargeArcRadius-e.circularPathData.rightNodeBuffer}if(e.circular)e.path=function(t){var e=&quot;&quot;;e=&quot;top&quot;==t.circularLinkType?&quot;M&quot;+t.circularPathData.sourceX+&quot; &quot;+t.circularPathData.sourceY+&quot; L&quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.sourceY+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftSmallArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.leftFullExtent+&quot; &quot;+(t.circularPathData.sourceY-t.circularPathData.leftSmallArcRadius)+&quot; L&quot;+t.circularPathData.leftFullExtent+&quot; &quot;+t.circularPathData.verticalLeftInnerExtent+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftLargeArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; L&quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightLargeArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.rightFullExtent+&quot; &quot;+t.circularPathData.verticalRightInnerExtent+&quot; L&quot;+t.circularPathData.rightFullExtent+&quot; &quot;+(t.circularPathData.targetY-t.circularPathData.rightSmallArcRadius)+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightSmallArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.targetY+&quot; L&quot;+t.circularPathData.targetX+&quot; &quot;+t.circularPathData.targetY:&quot;M&quot;+t.circularPathData.sourceX+&quot; &quot;+t.circularPathData.sourceY+&quot; L&quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.sourceY+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftSmallArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.leftFullExtent+&quot; &quot;+(t.circularPathData.sourceY+t.circularPathData.leftSmallArcRadius)+&quot; L&quot;+t.circularPathData.leftFullExtent+&quot; &quot;+t.circularPathData.verticalLeftInnerExtent+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftLargeArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; L&quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightLargeArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.rightFullExtent+&quot; &quot;+t.circularPathData.verticalRightInnerExtent+&quot; L&quot;+t.circularPathData.rightFullExtent+&quot; &quot;+(t.circularPathData.targetY+t.circularPathData.rightSmallArcRadius)+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightSmallArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.targetY+&quot; L&quot;+t.circularPathData.targetX+&quot; &quot;+t.circularPathData.targetY;return e}(e);else{var f=n.linkHorizontal().source((function(t){return[t.source.x0+(t.source.x1-t.source.x0),t.y0]})).target((function(t){return[t.target.x0,t.y1]}));e.path=f(e)}}))}function E(t,e){return O(t)==O(e)?&quot;bottom&quot;==t.circularLinkType?C(t,e):L(t,e):O(e)-O(t)}function L(t,e){return t.y0-e.y0}function C(t,e){return e.y0-t.y0}function P(t,e){return t.y1-e.y1}function I(t,e){return e.y1-t.y1}function O(t){return t.target.column-t.source.column}function z(t){return t.target.x0-t.source.x1}function D(t,e){var r=T(t),n=z(e)/Math.tan(r);return&quot;up&quot;==H(t)?t.y1+n:t.y1-n}function R(t,e){var r=T(t),n=z(e)/Math.tan(r);return&quot;up&quot;==H(t)?t.y1-n:t.y1+n}function F(t,e,r,n){t.links.forEach((function(i){if(!i.circular&amp;&amp;i.target.column-i.source.column&gt;1){var a=i.source.column+1,o=i.target.column-1,s=1,l=o-a+1;for(s=1;a&lt;=o;a++,s++)t.nodes.forEach((function(o){if(o.column==a){var c,u=s/(l+1),f=Math.pow(1-u,3),h=3*u*Math.pow(1-u,2),p=3*Math.pow(u,2)*(1-u),d=Math.pow(u,3),m=f*i.y0+h*i.y0+p*i.y1+d*i.y1,g=m-i.width/2,v=m+i.width/2;g&gt;o.y0&amp;&amp;g&lt;o.y1?(c=o.y1-g+10,c=&quot;bottom&quot;==o.circularLinkType?c:-c,o=N(o,c,e,r),t.nodes.forEach((function(t){b(t,n)!=b(o,n)&amp;&amp;t.column==o.column&amp;&amp;B(o,t)&amp;&amp;N(t,c,e,r)}))):(v&gt;o.y0&amp;&amp;v&lt;o.y1||g&lt;o.y0&amp;&amp;v&gt;o.y1)&amp;&amp;(c=v-o.y0+10,o=N(o,c,e,r),t.nodes.forEach((function(t){b(t,n)!=b(o,n)&amp;&amp;t.column==o.column&amp;&amp;t.y0&lt;o.y1&amp;&amp;t.y1&gt;o.y1&amp;&amp;N(t,c,e,r)})))}}))}}))}function B(t,e){return t.y0&gt;e.y0&amp;&amp;t.y0&lt;e.y1||(t.y1&gt;e.y0&amp;&amp;t.y1&lt;e.y1||t.y0&lt;e.y0&amp;&amp;t.y1&gt;e.y1)}function N(t,e,r,n){return t.y0+e&gt;=r&amp;&amp;t.y1+e&lt;=n&amp;&amp;(t.y0=t.y0+e,t.y1=t.y1+e,t.targetLinks.forEach((function(t){t.y1=t.y1+e})),t.sourceLinks.forEach((function(t){t.y0=t.y0+e}))),t}function j(t,e,r,n){t.nodes.forEach((function(i){n&amp;&amp;i.y+(i.y1-i.y0)&gt;e&amp;&amp;(i.y=i.y-(i.y+(i.y1-i.y0)-e));var a=t.links.filter((function(t){return b(t.source,r)==b(i,r)})),o=a.length;o&gt;1&amp;&amp;a.sort((function(t,e){if(!t.circular&amp;&amp;!e.circular){if(t.target.column==e.target.column)return t.y1-e.y1;if(!V(t,e))return t.y1-e.y1;if(t.target.column&gt;e.target.column){var r=R(e,t);return t.y1-r}if(e.target.column&gt;t.target.column)return R(t,e)-e.y1}return t.circular&amp;&amp;!e.circular?&quot;top&quot;==t.circularLinkType?-1:1:e.circular&amp;&amp;!t.circular?&quot;top&quot;==e.circularLinkType?1:-1:t.circular&amp;&amp;e.circular?t.circularLinkType===e.circularLinkType&amp;&amp;&quot;top&quot;==t.circularLinkType?t.target.column===e.target.column?t.target.y1-e.target.y1:e.target.column-t.target.column:t.circularLinkType===e.circularLinkType&amp;&amp;&quot;bottom&quot;==t.circularLinkType?t.target.column===e.target.column?e.target.y1-t.target.y1:t.target.column-e.target.column:&quot;top&quot;==t.circularLinkType?-1:1:void 0}));var s=i.y0;a.forEach((function(t){t.y0=s+t.width/2,s+=t.width})),a.forEach((function(t,e){if(&quot;bottom&quot;==t.circularLinkType){for(var r=e+1,n=0;r&lt;o;r++)n+=a[r].width;t.y0=i.y1-n-t.width/2}}))}))}function U(t,e,r){t.nodes.forEach((function(e){var n=t.links.filter((function(t){return b(t.target,r)==b(e,r)})),i=n.length;i&gt;1&amp;&amp;n.sort((function(t,e){if(!t.circular&amp;&amp;!e.circular){if(t.source.column==e.source.column)return t.y0-e.y0;if(!V(t,e))return t.y0-e.y0;if(e.source.column&lt;t.source.column){var r=D(e,t);return t.y0-r}if(t.source.column&lt;e.source.column)return D(t,e)-e.y0}return t.circular&amp;&amp;!e.circular?&quot;top&quot;==t.circularLinkType?-1:1:e.circular&amp;&amp;!t.circular?&quot;top&quot;==e.circularLinkType?1:-1:t.circular&amp;&amp;e.circular?t.circularLinkType===e.circularLinkType&amp;&amp;&quot;top&quot;==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:t.source.column-e.source.column:t.circularLinkType===e.circularLinkType&amp;&amp;&quot;bottom&quot;==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:e.source.column-t.source.column:&quot;top&quot;==t.circularLinkType?-1:1:void 0}));var a=e.y0;n.forEach((function(t){t.y1=a+t.width/2,a+=t.width})),n.forEach((function(t,r){if(&quot;bottom&quot;==t.circularLinkType){for(var a=r+1,o=0;a&lt;i;a++)o+=n[a].width;t.y1=e.y1-o-t.width/2}}))}))}function V(t,e){return H(t)==H(e)}function H(t){return t.y0-t.y1&gt;0?&quot;up&quot;:&quot;down&quot;}function q(t,e){return b(t.source,e)==b(t.target,e)}function G(t,r,n){var i=t.nodes,a=t.links,o=!1,s=!1;if(a.forEach((function(t){&quot;top&quot;==t.circularLinkType?o=!0:&quot;bottom&quot;==t.circularLinkType&amp;&amp;(s=!0)})),0==o||0==s){var l=e.min(i,(function(t){return t.y0})),c=(n-r)/(e.max(i,(function(t){return t.y1}))-l);i.forEach((function(t){var e=(t.y1-t.y0)*c;t.y0=(t.y0-l)*c,t.y1=t.y0+e})),a.forEach((function(t){t.y0=(t.y0-l)*c,t.y1=(t.y1-l)*c,t.width=t.width*c}))}}t.sankeyCircular=function(){var t,n,i=0,a=0,b=1,T=1,A=24,M=g,E=o,L=v,C=y,P=32,I=2,O=null;function z(){var t={nodes:L.apply(null,arguments),links:C.apply(null,arguments)};D(t),_(t,M,O),R(t),B(t),w(t,M),N(t,P,M),V(t);for(var e=4,r=0;r&lt;e;r++)j(t,T,M),U(t,T,M),F(t,a,T,M),j(t,T,M),U(t,T,M);return G(t,a,T),S(t,I,T,M),t}function D(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,M);return t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;&quot;object&quot;!==(void 0===n?&quot;undefined&quot;:l(n))&amp;&amp;(n=t.source=x(e,n)),&quot;object&quot;!==(void 0===i?&quot;undefined&quot;:l(i))&amp;&amp;(i=t.target=x(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)})),t}function R(t){t.nodes.forEach((function(t){t.partOfCycle=!1,t.value=Math.max(e.sum(t.sourceLinks,h),e.sum(t.targetLinks,h)),t.sourceLinks.forEach((function(e){e.circular&amp;&amp;(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)})),t.targetLinks.forEach((function(e){e.circular&amp;&amp;(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)}))}))}function B(t){var e,r,n;for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.depth=n,t.sourceLinks.forEach((function(t){r.indexOf(t.target)&lt;0&amp;&amp;!t.circular&amp;&amp;r.push(t.target)}))}));for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.height=n,t.targetLinks.forEach((function(t){r.indexOf(t.source)&lt;0&amp;&amp;!t.circular&amp;&amp;r.push(t.source)}))}));t.nodes.forEach((function(t){t.column=Math.floor(E.call(null,t,n))}))}function N(o,s,l){var c=r.nest().key((function(t){return t.column})).sortKeys(e.ascending).entries(o.nodes).map((function(t){return t.values}));!function(r){if(n){var s=1/0;c.forEach((function(t){var e=T*n/(t.length+1);s=e&lt;s?e:s})),t=s}var l=e.min(c,(function(r){return(T-a-(r.length-1)*t)/e.sum(r,h)}));l*=.3,o.links.forEach((function(t){t.width=t.value*l}));var u=function(t){var r=0,n=0,i=0,a=0,o=e.max(t.nodes,(function(t){return t.column}));return t.links.forEach((function(t){t.circular&amp;&amp;(&quot;top&quot;==t.circularLinkType?r+=t.width:n+=t.width,0==t.target.column&amp;&amp;(a+=t.width),t.source.column==o&amp;&amp;(i+=t.width))})),{top:r=r&gt;0?r+25+10:r,bottom:n=n&gt;0?n+25+10:n,left:a=a&gt;0?a+25+10:a,right:i=i&gt;0?i+25+10:i}}(o),f=function(t,r){var n=e.max(t.nodes,(function(t){return t.column})),o=b-i,s=T-a,l=o/(o+r.right+r.left),c=s/(s+r.top+r.bottom);return i=i*l+r.left,b=0==r.right?b:b*l,a=a*c+r.top,T*=c,t.nodes.forEach((function(t){t.x0=i+t.column*((b-i-A)/n),t.x1=t.x0+A})),c}(o,u);l*=f,o.links.forEach((function(t){t.width=t.value*l})),c.forEach((function(t){var e=t.length;t.forEach((function(t,n){t.depth==c.length-1&amp;&amp;1==e||0==t.depth&amp;&amp;1==e?(t.y0=T/2-t.value*l,t.y1=t.y0+t.value*l):t.partOfCycle?0==k(t,r)?(t.y0=T/2+n,t.y1=t.y0+t.value*l):&quot;top&quot;==t.circularLinkType?(t.y0=a+n,t.y1=t.y0+t.value*l):(t.y0=T-t.value*l-n,t.y1=t.y0+t.value*l):0==u.top||0==u.bottom?(t.y0=(T-a)/e*n,t.y1=t.y0+t.value*l):(t.y0=(T-a)/2-e/2+n,t.y1=t.y0+t.value*l)}))}))}(l),y();for(var u=1,g=s;g&gt;0;--g)v(u*=.99,l),y();function v(t,r){var n=c.length;c.forEach((function(i){var a=i.length,o=i[0].depth;i.forEach((function(i){var s;if(i.sourceLinks.length||i.targetLinks.length)if(i.partOfCycle&amp;&amp;k(i,r)&gt;0);else if(0==o&amp;&amp;1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else if(o==n-1&amp;&amp;1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else{var l=e.mean(i.sourceLinks,m),c=e.mean(i.targetLinks,d),u=((l&amp;&amp;c?(l+c)/2:l||c)-p(i))*t;i.y0+=u,i.y1+=u}}))}))}function y(){c.forEach((function(e){var r,n,i,o=a,s=e.length;for(e.sort(f),i=0;i&lt;s;++i)(n=o-(r=e[i]).y0)&gt;0&amp;&amp;(r.y0+=n,r.y1+=n),o=r.y1+t;if((n=o-t-T)&gt;0)for(o=r.y0-=n,r.y1-=n,i=s-2;i&gt;=0;--i)(n=(r=e[i]).y1+t-o)&gt;0&amp;&amp;(r.y0-=n,r.y1-=n),o=r.y0}))}}function V(t){t.nodes.forEach((function(t){t.sourceLinks.sort(u),t.targetLinks.sort(c)})),t.nodes.forEach((function(t){var e=t.y0,r=e,n=t.y1,i=n;t.sourceLinks.forEach((function(t){t.circular?(t.y0=n-t.width/2,n-=t.width):(t.y0=e+t.width/2,e+=t.width)})),t.targetLinks.forEach((function(t){t.circular?(t.y1=i-t.width/2,i-=t.width):(t.y1=r+t.width/2,r+=t.width)}))}))}return z.nodeId=function(t){return arguments.length?(M=&quot;function&quot;==typeof t?t:s(t),z):M},z.nodeAlign=function(t){return arguments.length?(E=&quot;function&quot;==typeof t?t:s(t),z):E},z.nodeWidth=function(t){return arguments.length?(A=+t,z):A},z.nodePadding=function(e){return arguments.length?(t=+e,z):t},z.nodes=function(t){return arguments.length?(L=&quot;function&quot;==typeof t?t:s(t),z):L},z.links=function(t){return arguments.length?(C=&quot;function&quot;==typeof t?t:s(t),z):C},z.size=function(t){return arguments.length?(i=a=0,b=+t[0],T=+t[1],z):[b-i,T-a]},z.extent=function(t){return arguments.length?(i=+t[0][0],b=+t[1][0],a=+t[0][1],T=+t[1][1],z):[[i,a],[b,T]]},z.iterations=function(t){return arguments.length?(P=+t,z):P},z.circularLinkGap=function(t){return arguments.length?(I=+t,z):I},z.nodePaddingRatio=function(t){return arguments.length?(n=+t,z):n},z.sortNodes=function(t){return arguments.length?(O=t,z):O},z.update=function(t){return w(t,M),V(t),t.links.forEach((function(t){t.circular&amp;&amp;(t.circularLinkType=t.y0+t.y1&lt;T?&quot;top&quot;:&quot;bottom&quot;,t.source.circularLinkType=t.circularLinkType,t.target.circularLinkType=t.circularLinkType)})),j(t,T,M,!1),U(t,T,M),S(t,I,T,M),t},z},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,a)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=o,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:107,&quot;d3-collection&quot;:108,&quot;d3-shape&quot;:119,&quot;elementary-circuits-directed-graph&quot;:130}],57:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-array&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-shape&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3)}(this,(function(t,e,r,n){&quot;use strict&quot;;function i(t){return t.target.depth}function a(t,e){return t.sourceLinks.length?t.depth:e-1}function o(t){return function(){return t}}function s(t,e){return c(t.source,e.source)||t.index-e.index}function l(t,e){return c(t.target,e.target)||t.index-e.index}function c(t,e){return t.y0-e.y0}function u(t){return t.value}function f(t){return(t.y0+t.y1)/2}function h(t){return f(t.source)*t.value}function p(t){return f(t.target)*t.value}function d(t){return t.index}function m(t){return t.nodes}function g(t){return t.links}function v(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function y(t){return[t.source.x1,t.y0]}function x(t){return[t.target.x0,t.y1]}t.sankey=function(){var t=0,n=0,i=1,y=1,x=24,b=8,_=d,w=a,T=m,k=g,A=32;function M(){var t={nodes:T.apply(null,arguments),links:k.apply(null,arguments)};return S(t),E(t),L(t),C(t),P(t),t}function S(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,_);t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;&quot;object&quot;!=typeof n&amp;&amp;(n=t.source=v(e,n)),&quot;object&quot;!=typeof i&amp;&amp;(i=t.target=v(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)}))}function E(t){t.nodes.forEach((function(t){t.value=Math.max(e.sum(t.sourceLinks,u),e.sum(t.targetLinks,u))}))}function L(e){var r,n,a;for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.depth=a,t.sourceLinks.forEach((function(t){n.indexOf(t.target)&lt;0&amp;&amp;n.push(t.target)}))}));for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.height=a,t.targetLinks.forEach((function(t){n.indexOf(t.source)&lt;0&amp;&amp;n.push(t.source)}))}));var o=(i-t-x)/(a-1);e.nodes.forEach((function(e){e.x1=(e.x0=t+Math.max(0,Math.min(a-1,Math.floor(w.call(null,e,a))))*o)+x}))}function C(t){var i=r.nest().key((function(t){return t.x0})).sortKeys(e.ascending).entries(t.nodes).map((function(t){return t.values}));!function(){var r=e.max(i,(function(t){return t.length})),a=2/3*(y-n)/(r-1);b&gt;a&amp;&amp;(b=a);var o=e.min(i,(function(t){return(y-n-(t.length-1)*b)/e.sum(t,u)}));i.forEach((function(t){t.forEach((function(t,e){t.y1=(t.y0=e)+t.value*o}))})),t.links.forEach((function(t){t.width=t.value*o}))}(),d();for(var a=1,o=A;o&gt;0;--o)l(a*=.99),d(),s(a),d();function s(t){i.forEach((function(r){r.forEach((function(r){if(r.targetLinks.length){var n=(e.sum(r.targetLinks,h)/e.sum(r.targetLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function l(t){i.slice().reverse().forEach((function(r){r.forEach((function(r){if(r.sourceLinks.length){var n=(e.sum(r.sourceLinks,p)/e.sum(r.sourceLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function d(){i.forEach((function(t){var e,r,i,a=n,o=t.length;for(t.sort(c),i=0;i&lt;o;++i)(r=a-(e=t[i]).y0)&gt;0&amp;&amp;(e.y0+=r,e.y1+=r),a=e.y1+b;if((r=a-b-y)&gt;0)for(a=e.y0-=r,e.y1-=r,i=o-2;i&gt;=0;--i)(r=(e=t[i]).y1+b-a)&gt;0&amp;&amp;(e.y0-=r,e.y1-=r),a=e.y0}))}}function P(t){t.nodes.forEach((function(t){t.sourceLinks.sort(l),t.targetLinks.sort(s)})),t.nodes.forEach((function(t){var e=t.y0,r=e;t.sourceLinks.forEach((function(t){t.y0=e+t.width/2,e+=t.width})),t.targetLinks.forEach((function(t){t.y1=r+t.width/2,r+=t.width}))}))}return M.update=function(t){return P(t),t},M.nodeId=function(t){return arguments.length?(_=&quot;function&quot;==typeof t?t:o(t),M):_},M.nodeAlign=function(t){return arguments.length?(w=&quot;function&quot;==typeof t?t:o(t),M):w},M.nodeWidth=function(t){return arguments.length?(x=+t,M):x},M.nodePadding=function(t){return arguments.length?(b=+t,M):b},M.nodes=function(t){return arguments.length?(T=&quot;function&quot;==typeof t?t:o(t),M):T},M.links=function(t){return arguments.length?(k=&quot;function&quot;==typeof t?t:o(t),M):k},M.size=function(e){return arguments.length?(t=n=0,i=+e[0],y=+e[1],M):[i-t,y-n]},M.extent=function(e){return arguments.length?(t=+e[0][0],i=+e[1][0],n=+e[0][1],y=+e[1][1],M):[[t,n],[i,y]]},M.iterations=function(t){return arguments.length?(A=+t,M):A},M},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,i)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=a,t.sankeyLinkHorizontal=function(){return n.linkHorizontal().source(y).target(x)},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:107,&quot;d3-collection&quot;:108,&quot;d3-shape&quot;:119}],58:[function(t,e,r){(function(){var t={version:&quot;3.8.0&quot;},r=[].slice,n=function(t){return r.call(t)},i=self.document;function a(t){return t&amp;&amp;(t.ownerDocument||t.document||t).documentElement}function o(t){return t&amp;&amp;(t.ownerDocument&amp;&amp;t.ownerDocument.defaultView||t.document&amp;&amp;t||t.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch(t){n=function(t){for(var e=t.length,r=new Array(e);e--;)r[e]=t[e];return r}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement(&quot;DIV&quot;).style.setProperty(&quot;opacity&quot;,0,&quot;&quot;)}catch(t){var s=this.Element.prototype,l=s.setAttribute,c=s.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;s.setAttribute=function(t,e){l.call(this,t,e+&quot;&quot;)},s.setAttributeNS=function(t,e,r){c.call(this,t,e,r+&quot;&quot;)},u.setProperty=function(t,e,r){f.call(this,t,e+&quot;&quot;,r)}}function h(t,e){return t&lt;e?-1:t&gt;e?1:t&gt;=e?0:NaN}function p(t){return null===t?NaN:+t}function d(t){return!isNaN(t)}function m(t){return{left:function(e,r,n,i){for(arguments.length&lt;3&amp;&amp;(n=0),arguments.length&lt;4&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&lt;0?n=a+1:i=a}return n},right:function(e,r,n,i){for(arguments.length&lt;3&amp;&amp;(n=0),arguments.length&lt;4&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&gt;0?i=a:n=a+1}return n}}}t.ascending=h,t.descending=function(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN},t.min=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i&lt;a;)if(null!=(n=t[i])&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=t[i])&amp;&amp;r&gt;n&amp;&amp;(r=n)}else{for(;++i&lt;a;)if(null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=e.call(t,t[i],i))&amp;&amp;r&gt;n&amp;&amp;(r=n)}return r},t.max=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i&lt;a;)if(null!=(n=t[i])&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=t[i])&amp;&amp;n&gt;r&amp;&amp;(r=n)}else{for(;++i&lt;a;)if(null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;r&amp;&amp;(r=n)}return r},t.extent=function(t,e){var r,n,i,a=-1,o=t.length;if(1===arguments.length){for(;++a&lt;o;)if(null!=(n=t[a])&amp;&amp;n&gt;=n){r=i=n;break}for(;++a&lt;o;)null!=(n=t[a])&amp;&amp;(r&gt;n&amp;&amp;(r=n),i&lt;n&amp;&amp;(i=n))}else{for(;++a&lt;o;)if(null!=(n=e.call(t,t[a],a))&amp;&amp;n&gt;=n){r=i=n;break}for(;++a&lt;o;)null!=(n=e.call(t,t[a],a))&amp;&amp;(r&gt;n&amp;&amp;(r=n),i&lt;n&amp;&amp;(i=n))}return[r,i]},t.sum=function(t,e){var r,n=0,i=t.length,a=-1;if(1===arguments.length)for(;++a&lt;i;)d(r=+t[a])&amp;&amp;(n+=r);else for(;++a&lt;i;)d(r=+e.call(t,t[a],a))&amp;&amp;(n+=r);return n},t.mean=function(t,e){var r,n=0,i=t.length,a=-1,o=i;if(1===arguments.length)for(;++a&lt;i;)d(r=p(t[a]))?n+=r:--o;else for(;++a&lt;i;)d(r=p(e.call(t,t[a],a)))?n+=r:--o;if(o)return n/o},t.quantile=function(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i},t.median=function(e,r){var n,i=[],a=e.length,o=-1;if(1===arguments.length)for(;++o&lt;a;)d(n=p(e[o]))&amp;&amp;i.push(n);else for(;++o&lt;a;)d(n=p(r.call(e,e[o],o)))&amp;&amp;i.push(n);if(i.length)return t.quantile(i.sort(h),.5)},t.variance=function(t,e){var r,n,i=t.length,a=0,o=0,s=-1,l=0;if(1===arguments.length)for(;++s&lt;i;)d(r=p(t[s]))&amp;&amp;(o+=(n=r-a)*(r-(a+=n/++l)));else for(;++s&lt;i;)d(r=p(e.call(t,t[s],s)))&amp;&amp;(o+=(n=r-a)*(r-(a+=n/++l)));if(l&gt;1)return o/(l-1)},t.deviation=function(){var e=t.variance.apply(this,arguments);return e?Math.sqrt(e):e};var g=m(h);function v(t){return t.length}t.bisectLeft=g.left,t.bisect=t.bisectRight=g.right,t.bisector=function(t){return m(1===t.length?function(e,r){return h(t(e),r)}:t)},t.shuffle=function(t,e,r){(a=arguments.length)&lt;3&amp;&amp;(r=t.length,a&lt;2&amp;&amp;(e=0));for(var n,i,a=r-e;a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.pairs=function(t){for(var e=0,r=t.length-1,n=t[0],i=new Array(r&lt;0?0:r);e&lt;r;)i[e]=[n,n=t[++e]];return i},t.transpose=function(e){if(!(a=e.length))return[];for(var r=-1,n=t.min(e,v),i=new Array(n);++r&lt;n;)for(var a,o=-1,s=i[r]=new Array(a);++o&lt;a;)s[o]=e[o][r];return i},t.zip=function(){return t.transpose(arguments)},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a&lt;i;)o+=t[a].length;for(r=new Array(o);--i&gt;=0;)for(e=(n=t[i]).length;--e&gt;=0;)r[--o]=n[e];return r};var y=Math.abs;function x(t){for(var e=1;t*e%1;)e*=10;return e}function b(t,e){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],enumerable:!1})}function _(){this._=Object.create(null)}t.range=function(t,e,r){if(arguments.length&lt;3&amp;&amp;(r=1,arguments.length&lt;2&amp;&amp;(e=t,t=0)),(e-t)/r==1/0)throw new Error(&quot;infinite range&quot;);var n,i=[],a=x(y(r)),o=-1;if(t*=a,e*=a,(r*=a)&lt;0)for(;(n=t+r*++o)&gt;e;)i.push(n/a);else for(;(n=t+r*++o)&lt;e;)i.push(n/a);return i},t.map=function(t,e){var r=new _;if(t instanceof _)t.forEach((function(t,e){r.set(t,e)}));else if(Array.isArray(t)){var n,i=-1,a=t.length;if(1===arguments.length)for(;++i&lt;a;)r.set(i,t[i]);else for(;++i&lt;a;)r.set(e.call(t,n=t[i],i),n)}else for(var o in t)r.set(o,t[o]);return r};function w(t){return&quot;__proto__&quot;==(t+=&quot;&quot;)||&quot;\0&quot;===t[0]?&quot;\0&quot;+t:t}function T(t){return&quot;\0&quot;===(t+=&quot;&quot;)[0]?t.slice(1):t}function k(t){return w(t)in this._}function A(t){return(t=w(t))in this._&amp;&amp;delete this._[t]}function M(){var t=[];for(var e in this._)t.push(T(e));return t}function S(){var t=0;for(var e in this._)++t;return t}function E(){for(var t in this._)return!1;return!0}function L(){this._=Object.create(null)}function C(t){return t}function P(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}function I(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var r=0,n=O.length;r&lt;n;++r){var i=O[r]+e;if(i in t)return i}}b(_,{has:k,get:function(t){return this._[w(t)]},set:function(t,e){return this._[w(t)]=e},remove:A,keys:M,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:T(e),value:this._[e]});return t},size:S,empty:E,forEach:function(t){for(var e in this._)t.call(this,T(e),this._[e])}}),t.nest=function(){var e,r,n={},i=[],a=[];function o(t,a,s){if(s&gt;=i.length)return r?r.call(n,a):e?a.sort(e):a;for(var l,c,u,f,h=-1,p=a.length,d=i[s++],m=new _;++h&lt;p;)(f=m.get(l=d(c=a[h])))?f.push(c):m.set(l,[c]);return t?(c=t(),u=function(e,r){c.set(e,o(t,r,s))}):(c={},u=function(e,r){c[e]=o(t,r,s)}),m.forEach(u),c}return n.map=function(t,e){return o(e,t,0)},n.entries=function(e){return function t(e,r){if(r&gt;=i.length)return e;var n=[],o=a[r++];return e.forEach((function(e,i){n.push({key:e,values:t(i,r)})})),o?n.sort((function(t,e){return o(t.key,e.key)})):n}(o(t.map,e,0),0)},n.key=function(t){return i.push(t),n},n.sortKeys=function(t){return a[i.length-1]=t,n},n.sortValues=function(t){return e=t,n},n.rollup=function(t){return r=t,n},n},t.set=function(t){var e=new L;if(t)for(var r=0,n=t.length;r&lt;n;++r)e.add(t[r]);return e},b(L,{has:k,add:function(t){return this._[w(t+=&quot;&quot;)]=!0,t},remove:A,values:M,size:S,empty:E,forEach:function(t){for(var e in this._)t.call(this,T(e))}}),t.behavior={},t.rebind=function(t,e){for(var r,n=1,i=arguments.length;++n&lt;i;)t[r=arguments[n]]=P(t,e,e[r]);return t};var O=[&quot;webkit&quot;,&quot;ms&quot;,&quot;moz&quot;,&quot;Moz&quot;,&quot;o&quot;,&quot;O&quot;];function z(){}function D(){}function R(t){var e=[],r=new _;function n(){for(var r,n=e,i=-1,a=n.length;++i&lt;a;)(r=n[i].on)&amp;&amp;r.apply(this,arguments);return t}return n.on=function(n,i){var a,o=r.get(n);return arguments.length&lt;2?o&amp;&amp;o.on:(o&amp;&amp;(o.on=null,e=e.slice(0,a=e.indexOf(o)).concat(e.slice(a+1)),r.remove(n)),i&amp;&amp;e.push(r.set(n,{on:i})),t)},n}function F(){t.event.preventDefault()}function B(){for(var e,r=t.event;e=r.sourceEvent;)r=e;return r}function N(e){for(var r=new D,n=0,i=arguments.length;++n&lt;i;)r[arguments[n]]=R(r);return r.of=function(n,i){return function(a){try{var o=a.sourceEvent=t.event;a.target=e,t.event=a,r[a.type].apply(n,i)}finally{t.event=o}}},r}t.dispatch=function(){for(var t=new D,e=-1,r=arguments.length;++e&lt;r;)t[arguments[e]]=R(t);return t},D.prototype.on=function(t,e){var r=t.indexOf(&quot;.&quot;),n=&quot;&quot;;if(r&gt;=0&amp;&amp;(n=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length&lt;2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&amp;&amp;this[t].on(n,null);return this}},t.event=null,t.requote=function(t){return t.replace(j,&quot;\\$&amp;&quot;)};var j=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,U={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)t[r]=e[r]};function V(t){return U(t,Y),t}var H=function(t,e){return e.querySelector(t)},q=function(t,e){return e.querySelectorAll(t)},G=function(t,e){var r=t.matches||t[I(t,&quot;matchesSelector&quot;)];return(G=function(t,e){return r.call(t,e)})(t,e)};&quot;function&quot;==typeof Sizzle&amp;&amp;(H=function(t,e){return Sizzle(t,e)[0]||null},q=Sizzle,G=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Y=t.selection.prototype=[];function W(t){return&quot;function&quot;==typeof t?t:function(){return H(t,this)}}function X(t){return&quot;function&quot;==typeof t?t:function(){return q(t,this)}}Y.select=function(t){var e,r,n,i,a=[];t=W(t);for(var o=-1,s=this.length;++o&lt;s;){a.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var l=-1,c=n.length;++l&lt;c;)(i=n[l])?(e.push(r=t.call(i,i.__data__,l,o)),r&amp;&amp;&quot;__data__&quot;in i&amp;&amp;(r.__data__=i.__data__)):e.push(null)}return V(a)},Y.selectAll=function(t){var e,r,i=[];t=X(t);for(var a=-1,o=this.length;++a&lt;o;)for(var s=this[a],l=-1,c=s.length;++l&lt;c;)(r=s[l])&amp;&amp;(i.push(e=n(t.call(r,r.__data__,l,a))),e.parentNode=r);return V(i)};var Z=&quot;http://www.w3.org/1999/xhtml&quot;,J={svg:&quot;http://www.w3.org/2000/svg&quot;,xhtml:Z,xlink:&quot;http://www.w3.org/1999/xlink&quot;,xml:&quot;http://www.w3.org/XML/1998/namespace&quot;,xmlns:&quot;http://www.w3.org/2000/xmlns/&quot;};function K(e,r){return e=t.ns.qualify(e),null==r?e.local?function(){this.removeAttributeNS(e.space,e.local)}:function(){this.removeAttribute(e)}:&quot;function&quot;==typeof r?e.local?function(){var t=r.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}:function(){var t=r.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}:e.local?function(){this.setAttributeNS(e.space,e.local,r)}:function(){this.setAttribute(e,r)}}function Q(t){return t.trim().replace(/\s+/g,&quot; &quot;)}function $(e){return new RegExp(&quot;(?:^|\\s+)&quot;+t.requote(e)+&quot;(?:\\s+|$)&quot;,&quot;g&quot;)}function tt(t){return(t+&quot;&quot;).trim().split(/^|\s+/)}function et(t,e){var r=(t=tt(t).map(rt)).length;return&quot;function&quot;==typeof e?function(){for(var n=-1,i=e.apply(this,arguments);++n&lt;r;)t[n](this,i)}:function(){for(var n=-1;++n&lt;r;)t[n](this,e)}}function rt(t){var e=$(t);return function(r,n){if(i=r.classList)return n?i.add(t):i.remove(t);var i=r.getAttribute(&quot;class&quot;)||&quot;&quot;;n?(e.lastIndex=0,e.test(i)||r.setAttribute(&quot;class&quot;,Q(i+&quot; &quot;+t))):r.setAttribute(&quot;class&quot;,Q(i.replace(e,&quot; &quot;)))}}function nt(t,e,r){return null==e?function(){this.style.removeProperty(t)}:&quot;function&quot;==typeof e?function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}:function(){this.style.setProperty(t,e,r)}}function it(t,e){return null==e?function(){delete this[t]}:&quot;function&quot;==typeof e?function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}:function(){this[t]=e}}function at(e){return&quot;function&quot;==typeof e?e:(e=t.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Z&amp;&amp;t.documentElement.namespaceURI===Z?t.createElement(e):t.createElementNS(r,e)}}function ot(){var t=this.parentNode;t&amp;&amp;t.removeChild(this)}function st(t){return{__data__:t}}function lt(t){return function(){return G(this,t)}}function ct(t){return arguments.length||(t=h),function(e,r){return e&amp;&amp;r?t(e.__data__,r.__data__):!e-!r}}function ut(t,e){for(var r=0,n=t.length;r&lt;n;r++)for(var i,a=t[r],o=0,s=a.length;o&lt;s;o++)(i=a[o])&amp;&amp;e(i,o,r);return t}function ft(t){return U(t,ht),t}t.ns={prefix:J,qualify:function(t){var e=t.indexOf(&quot;:&quot;),r=t;return e&gt;=0&amp;&amp;&quot;xmlns&quot;!==(r=t.slice(0,e))&amp;&amp;(t=t.slice(e+1)),J.hasOwnProperty(r)?{space:J[r],local:t}:t}},Y.attr=function(e,r){if(arguments.length&lt;2){if(&quot;string&quot;==typeof e){var n=this.node();return(e=t.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(r in e)this.each(K(r,e[r]));return this}return this.each(K(e,r))},Y.classed=function(t,e){if(arguments.length&lt;2){if(&quot;string&quot;==typeof t){var r=this.node(),n=(t=tt(t)).length,i=-1;if(e=r.classList){for(;++i&lt;n;)if(!e.contains(t[i]))return!1}else for(e=r.getAttribute(&quot;class&quot;);++i&lt;n;)if(!$(t[i]).test(e))return!1;return!0}for(e in t)this.each(et(e,t[e]));return this}return this.each(et(t,e))},Y.style=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=&quot;&quot;),t)this.each(nt(r,t[r],e));return this}if(n&lt;2){var i=this.node();return o(i).getComputedStyle(i,null).getPropertyValue(t)}r=&quot;&quot;}return this.each(nt(t,e,r))},Y.property=function(t,e){if(arguments.length&lt;2){if(&quot;string&quot;==typeof t)return this.node()[t];for(e in t)this.each(it(e,t[e]));return this}return this.each(it(t,e))},Y.text=function(t){return arguments.length?this.each(&quot;function&quot;==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?&quot;&quot;:e}:null==t?function(){this.textContent=&quot;&quot;}:function(){this.textContent=t}):this.node().textContent},Y.html=function(t){return arguments.length?this.each(&quot;function&quot;==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?&quot;&quot;:e}:null==t?function(){this.innerHTML=&quot;&quot;}:function(){this.innerHTML=t}):this.node().innerHTML},Y.append=function(t){return t=at(t),this.select((function(){return this.appendChild(t.apply(this,arguments))}))},Y.insert=function(t,e){return t=at(t),e=W(e),this.select((function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)}))},Y.remove=function(){return this.each(ot)},Y.data=function(t,e){var r,n,i=-1,a=this.length;if(!arguments.length){for(t=new Array(a=(r=this[0]).length);++i&lt;a;)(n=r[i])&amp;&amp;(t[i]=n.__data__);return t}function o(t,r){var n,i,a,o=t.length,u=r.length,f=Math.min(o,u),h=new Array(u),p=new Array(u),d=new Array(o);if(e){var m,g=new _,v=new Array(o);for(n=-1;++n&lt;o;)(i=t[n])&amp;&amp;(g.has(m=e.call(i,i.__data__,n))?d[n]=i:g.set(m,i),v[n]=m);for(n=-1;++n&lt;u;)(i=g.get(m=e.call(r,a=r[n],n)))?!0!==i&amp;&amp;(h[n]=i,i.__data__=a):p[n]=st(a),g.set(m,!0);for(n=-1;++n&lt;o;)n in v&amp;&amp;!0!==g.get(v[n])&amp;&amp;(d[n]=t[n])}else{for(n=-1;++n&lt;f;)i=t[n],a=r[n],i?(i.__data__=a,h[n]=i):p[n]=st(a);for(;n&lt;u;++n)p[n]=st(r[n]);for(;n&lt;o;++n)d[n]=t[n]}p.update=h,p.parentNode=h.parentNode=d.parentNode=t.parentNode,s.push(p),l.push(h),c.push(d)}var s=ft([]),l=V([]),c=V([]);if(&quot;function&quot;==typeof t)for(;++i&lt;a;)o(r=this[i],t.call(r,r.parentNode.__data__,i));else for(;++i&lt;a;)o(r=this[i],t);return l.enter=function(){return s},l.exit=function(){return c},l},Y.datum=function(t){return arguments.length?this.property(&quot;__data__&quot;,t):this.property(&quot;__data__&quot;)},Y.filter=function(t){var e,r,n,i=[];&quot;function&quot;!=typeof t&amp;&amp;(t=lt(t));for(var a=0,o=this.length;a&lt;o;a++){i.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var s=0,l=r.length;s&lt;l;s++)(n=r[s])&amp;&amp;t.call(n,n.__data__,s,a)&amp;&amp;e.push(n)}return V(i)},Y.order=function(){for(var t=-1,e=this.length;++t&lt;e;)for(var r,n=this[t],i=n.length-1,a=n[i];--i&gt;=0;)(r=n[i])&amp;&amp;(a&amp;&amp;a!==r.nextSibling&amp;&amp;a.parentNode.insertBefore(r,a),a=r);return this},Y.sort=function(t){t=ct.apply(this,arguments);for(var e=-1,r=this.length;++e&lt;r;)this[e].sort(t);return this.order()},Y.each=function(t){return ut(this,(function(e,r,n){t.call(e,e.__data__,r,n)}))},Y.call=function(t){var e=n(arguments);return t.apply(e[0]=this,e),this},Y.empty=function(){return!this.node()},Y.node=function(){for(var t=0,e=this.length;t&lt;e;t++)for(var r=this[t],n=0,i=r.length;n&lt;i;n++){var a=r[n];if(a)return a}return null},Y.size=function(){var t=0;return ut(this,(function(){++t})),t};var ht=[];function pt(t){var e,r;return function(n,i,a){var o,s=t[a].update,l=s.length;for(a!=r&amp;&amp;(r=a,e=0),i&gt;=e&amp;&amp;(e=i+1);!(o=s[e])&amp;&amp;++e&lt;l;);return o}}function dt(e,r,i){var a=&quot;__on&quot;+e,o=e.indexOf(&quot;.&quot;),s=gt;o&gt;0&amp;&amp;(e=e.slice(0,o));var l=mt.get(e);function c(){var t=this[a];t&amp;&amp;(this.removeEventListener(e,t,t.$),delete this[a])}return l&amp;&amp;(e=l,s=vt),o?r?function(){var t=s(r,n(arguments));c.call(this),this.addEventListener(e,this[a]=t,t.$=i),t._=r}:c:r?z:function(){var r,n=new RegExp(&quot;^__on([^.]+)&quot;+t.requote(e)+&quot;$&quot;);for(var i in this)if(r=i.match(n)){var a=this[i];this.removeEventListener(r[1],a,a.$),delete this[i]}}}t.selection.enter=ft,t.selection.enter.prototype=ht,ht.append=Y.append,ht.empty=Y.empty,ht.node=Y.node,ht.call=Y.call,ht.size=Y.size,ht.select=function(t){for(var e,r,n,i,a,o=[],s=-1,l=this.length;++s&lt;l;){n=(i=this[s]).update,o.push(e=[]),e.parentNode=i.parentNode;for(var c=-1,u=i.length;++c&lt;u;)(a=i[c])?(e.push(n[c]=r=t.call(i.parentNode,a.__data__,c,s)),r.__data__=a.__data__):e.push(null)}return V(o)},ht.insert=function(t,e){return arguments.length&lt;2&amp;&amp;(e=pt(this)),Y.insert.call(this,t,e)},t.select=function(t){var e;return&quot;string&quot;==typeof t?(e=[H(t,i)]).parentNode=i.documentElement:(e=[t]).parentNode=a(t),V([e])},t.selectAll=function(t){var e;return&quot;string&quot;==typeof t?(e=n(q(t,i))).parentNode=i.documentElement:(e=n(t)).parentNode=null,V([e])},Y.on=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=!1),t)this.each(dt(r,t[r],e));return this}if(n&lt;2)return(n=this.node()[&quot;__on&quot;+t])&amp;&amp;n._;r=!1}return this.each(dt(t,e,r))};var mt=t.map({mouseenter:&quot;mouseover&quot;,mouseleave:&quot;mouseout&quot;});function gt(e,r){return function(n){var i=t.event;t.event=n,r[0]=this.__data__;try{e.apply(this,r)}finally{t.event=i}}}function vt(t,e){var r=gt(t,e);return function(t){var e=t.relatedTarget;e&amp;&amp;(e===this||8&amp;e.compareDocumentPosition(this))||r.call(this,t)}}i&amp;&amp;mt.forEach((function(t){&quot;on&quot;+t in i&amp;&amp;mt.remove(t)}));var yt,xt=0;function bt(e){var r=&quot;.dragsuppress-&quot;+ ++xt,n=&quot;click&quot;+r,i=t.select(o(e)).on(&quot;touchmove&quot;+r,F).on(&quot;dragstart&quot;+r,F).on(&quot;selectstart&quot;+r,F);if(null==yt&amp;&amp;(yt=!(&quot;onselectstart&quot;in e)&amp;&amp;I(e.style,&quot;userSelect&quot;)),yt){var s=a(e).style,l=s[yt];s[yt]=&quot;none&quot;}return function(t){if(i.on(r,null),yt&amp;&amp;(s[yt]=l),t){var e=function(){i.on(n,null)};i.on(n,(function(){F(),e()}),!0),setTimeout(e,0)}}}t.mouse=function(t){return wt(t,B())};var _t=this.navigator&amp;&amp;/WebKit/.test(this.navigator.userAgent)?-1:0;function wt(e,r){r.changedTouches&amp;&amp;(r=r.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();if(_t&lt;0){var a=o(e);if(a.scrollX||a.scrollY){var s=(n=t.select(&quot;body&quot;).append(&quot;svg&quot;).style({position:&quot;absolute&quot;,top:0,left:0,margin:0,padding:0,border:&quot;none&quot;},&quot;important&quot;))[0][0].getScreenCTM();_t=!(s.f||s.e),n.remove()}}return _t?(i.x=r.pageX,i.y=r.pageY):(i.x=r.clientX,i.y=r.clientY),[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}var l=e.getBoundingClientRect();return[r.clientX-l.left-e.clientLeft,r.clientY-l.top-e.clientTop]}function Tt(){return t.event.changedTouches[0].identifier}t.touch=function(t,e,r){if(arguments.length&lt;3&amp;&amp;(r=e,e=B().changedTouches),e)for(var n,i=0,a=e.length;i&lt;a;++i)if((n=e[i]).identifier===r)return wt(t,n)},t.behavior.drag=function(){var e=N(a,&quot;drag&quot;,&quot;dragstart&quot;,&quot;dragend&quot;),r=null,n=s(z,t.mouse,o,&quot;mousemove&quot;,&quot;mouseup&quot;),i=s(Tt,t.touch,C,&quot;touchmove&quot;,&quot;touchend&quot;);function a(){this.on(&quot;mousedown.drag&quot;,n).on(&quot;touchstart.drag&quot;,i)}function s(n,i,a,o,s){return function(){var l,c=this,u=t.event.target.correspondingElement||t.event.target,f=c.parentNode,h=e.of(c,arguments),p=0,d=n(),m=&quot;.drag&quot;+(null==d?&quot;&quot;:&quot;-&quot;+d),g=t.select(a(u)).on(o+m,x).on(s+m,b),v=bt(u),y=i(f,d);function x(){var t,e,r=i(f,d);r&amp;&amp;(t=r[0]-y[0],e=r[1]-y[1],p|=t|e,y=r,h({type:&quot;drag&quot;,x:r[0]+l[0],y:r[1]+l[1],dx:t,dy:e}))}function b(){i(f,d)&amp;&amp;(g.on(o+m,null).on(s+m,null),v(p),h({type:&quot;dragend&quot;}))}l=r?[(l=r.apply(c,arguments)).x-y[0],l.y-y[1]]:[0,0],h({type:&quot;dragstart&quot;})}}return a.origin=function(t){return arguments.length?(r=t,a):r},t.rebind(a,e,&quot;on&quot;)},t.touches=function(t,e){return arguments.length&lt;2&amp;&amp;(e=B().touches),e?n(e).map((function(e){var r=wt(t,e);return r.identifier=e.identifier,r})):[]};var kt=1e-6,At=Math.PI,Mt=2*At,St=Mt-kt,Et=At/2,Lt=At/180,Ct=180/At;function Pt(t){return t&gt;1?Et:t&lt;-1?-Et:Math.asin(t)}function It(t){return((t=Math.exp(t))+1/t)/2}var Ot=Math.SQRT2;t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h&lt;1e-12)n=Math.log(c/o)/Ot,r=function(t){return[i+t*u,a+t*f,o*Math.exp(Ot*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),m=(c*c-o*o-4*h)/(2*c*2*p),g=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(m*m+1)-m);n=(v-g)/Ot,r=function(t){var e,r=t*n,s=It(g),l=o/(2*p)*(s*(e=Ot*r+g,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(g));return[i+l*u,a+l*f,o*s/It(Ot*r+g)]}}return r.duration=1e3*n,r},t.behavior.zoom=function(){var e,r,n,a,s,l,c,u,f,h={x:0,y:0,k:1},p=[960,500],d=Rt,m=250,g=0,v=&quot;mousedown.zoom&quot;,y=&quot;mousemove.zoom&quot;,x=&quot;mouseup.zoom&quot;,b=&quot;touchstart.zoom&quot;,_=N(w,&quot;zoomstart&quot;,&quot;zoom&quot;,&quot;zoomend&quot;);function w(t){t.on(v,P).on(Dt+&quot;.zoom&quot;,O).on(&quot;dblclick.zoom&quot;,z).on(b,I)}function T(t){return[(t[0]-h.x)/h.k,(t[1]-h.y)/h.k]}function k(t){h.k=Math.max(d[0],Math.min(d[1],t))}function A(t,e){e=function(t){return[t[0]*h.k+h.x,t[1]*h.k+h.y]}(e),h.x+=t[0]-e[0],h.y+=t[1]-e[1]}function M(e,n,i,a){e.__chart__={x:h.x,y:h.y,k:h.k},k(Math.pow(2,a)),A(r=n,i),e=t.select(e),m&gt;0&amp;&amp;(e=e.transition().duration(m)),e.call(w.event)}function S(){c&amp;&amp;c.domain(l.range().map((function(t){return(t-h.x)/h.k})).map(l.invert)),f&amp;&amp;f.domain(u.range().map((function(t){return(t-h.y)/h.k})).map(u.invert))}function E(t){g++||t({type:&quot;zoomstart&quot;})}function L(t){S(),t({type:&quot;zoom&quot;,scale:h.k,translate:[h.x,h.y]})}function C(t){--g||(t({type:&quot;zoomend&quot;}),r=null)}function P(){var e=this,r=_.of(e,arguments),n=0,i=t.select(o(e)).on(y,l).on(x,c),a=T(t.mouse(e)),s=bt(e);function l(){n=1,A(t.mouse(e),a),L(r)}function c(){i.on(y,null).on(x,null),s(n),C(r)}Di.call(e),E(r)}function I(){var e,r=this,n=_.of(r,arguments),i={},a=0,o=&quot;.zoom-&quot;+t.event.changedTouches[0].identifier,l=&quot;touchmove&quot;+o,c=&quot;touchend&quot;+o,u=[],f=t.select(r),p=bt(r);function d(){var n=t.touches(r);return e=h.k,n.forEach((function(t){t.identifier in i&amp;&amp;(i[t.identifier]=T(t))})),n}function m(){var e=t.event.target;t.select(e).on(l,g).on(c,y),u.push(e);for(var n=t.event.changedTouches,o=0,f=n.length;o&lt;f;++o)i[n[o].identifier]=null;var p=d(),m=Date.now();if(1===p.length){if(m-s&lt;500){var v=p[0];M(r,v,i[v.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),F()}s=m}else if(p.length&gt;1){v=p[0];var x=p[1],b=v[0]-x[0],_=v[1]-x[1];a=b*b+_*_}}function g(){var o,l,c,u,f=t.touches(r);Di.call(r);for(var h=0,p=f.length;h&lt;p;++h,u=null)if(c=f[h],u=i[c.identifier]){if(l)break;o=c,l=u}if(u){var d=(d=c[0]-o[0])*d+(d=c[1]-o[1])*d,m=a&amp;&amp;Math.sqrt(d/a);o=[(o[0]+c[0])/2,(o[1]+c[1])/2],l=[(l[0]+u[0])/2,(l[1]+u[1])/2],k(m*e)}s=null,A(o,l),L(n)}function y(){if(t.event.touches.length){for(var e=t.event.changedTouches,r=0,a=e.length;r&lt;a;++r)delete i[e[r].identifier];for(var s in i)return void d()}t.selectAll(u).on(o,null),f.on(v,P).on(b,I),p(),C(n)}m(),E(n),f.on(v,null).on(b,m)}function O(){var i=_.of(this,arguments);a?clearTimeout(a):(Di.call(this),e=T(r=n||t.mouse(this)),E(i)),a=setTimeout((function(){a=null,C(i)}),50),F(),k(Math.pow(2,.002*zt())*h.k),A(r,e),L(i)}function z(){var e=t.mouse(this),r=Math.log(h.k)/Math.LN2;M(this,e,T(e),t.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)}return Dt||(Dt=&quot;onwheel&quot;in i?(zt=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},&quot;wheel&quot;):&quot;onmousewheel&quot;in i?(zt=function(){return t.event.wheelDelta},&quot;mousewheel&quot;):(zt=function(){return-t.event.detail},&quot;MozMousePixelScroll&quot;)),w.event=function(e){e.each((function(){var e=_.of(this,arguments),n=h;Bi?t.select(this).transition().each(&quot;start.zoom&quot;,(function(){h=this.__chart__||{x:0,y:0,k:1},E(e)})).tween(&quot;zoom:zoom&quot;,(function(){var i=p[0],a=p[1],o=r?r[0]:i/2,s=r?r[1]:a/2,l=t.interpolateZoom([(o-h.x)/h.k,(s-h.y)/h.k,i/h.k],[(o-n.x)/n.k,(s-n.y)/n.k,i/n.k]);return function(t){var r=l(t),n=i/r[2];this.__chart__=h={x:o-r[0]*n,y:s-r[1]*n,k:n},L(e)}})).each(&quot;interrupt.zoom&quot;,(function(){C(e)})).each(&quot;end.zoom&quot;,(function(){C(e)})):(this.__chart__=h,E(e),L(e),C(e))}))},w.translate=function(t){return arguments.length?(h={x:+t[0],y:+t[1],k:h.k},S(),w):[h.x,h.y]},w.scale=function(t){return arguments.length?(h={x:h.x,y:h.y,k:null},k(+t),S(),w):h.k},w.scaleExtent=function(t){return arguments.length?(d=null==t?Rt:[+t[0],+t[1]],w):d},w.center=function(t){return arguments.length?(n=t&amp;&amp;[+t[0],+t[1]],w):n},w.size=function(t){return arguments.length?(p=t&amp;&amp;[+t[0],+t[1]],w):p},w.duration=function(t){return arguments.length?(m=+t,w):m},w.x=function(t){return arguments.length?(c=t,l=t.copy(),h={x:0,y:0,k:1},w):c},w.y=function(t){return arguments.length?(f=t,u=t.copy(),h={x:0,y:0,k:1},w):f},t.rebind(w,_,&quot;on&quot;)};var zt,Dt,Rt=[0,1/0];function Ft(){}function Bt(t,e,r){return this instanceof Bt?(this.h=+t,this.s=+e,void(this.l=+r)):arguments.length&lt;2?t instanceof Bt?new Bt(t.h,t.s,t.l):ne(&quot;&quot;+t,ie,Bt):new Bt(t,e,r)}t.color=Ft,Ft.prototype.toString=function(){return this.rgb()+&quot;&quot;},t.hsl=Bt;var Nt=Bt.prototype=new Ft;function jt(t,e,r){var n,i;function a(t){return Math.round(255*function(t){return t&gt;360?t-=360:t&lt;0&amp;&amp;(t+=360),t&lt;60?n+(i-n)*t/60:t&lt;180?i:t&lt;240?n+(i-n)*(240-t)/60:n}(t))}return t=isNaN(t)?0:(t%=360)&lt;0?t+360:t,e=isNaN(e)||e&lt;0?0:e&gt;1?1:e,n=2*(r=r&lt;0?0:r&gt;1?1:r)-(i=r&lt;=.5?r*(1+e):r+e-r*e),new Qt(a(t+120),a(t),a(t-120))}function Ut(e,r,n){return this instanceof Ut?(this.h=+e,this.c=+r,void(this.l=+n)):arguments.length&lt;2?e instanceof Ut?new Ut(e.h,e.c,e.l):Xt(e instanceof qt?e.l:(e=ae((e=t.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Ut(e,r,n)}Nt.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new Bt(this.h,this.s,this.l/t)},Nt.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Bt(this.h,this.s,t*this.l)},Nt.rgb=function(){return jt(this.h,this.s,this.l)},t.hcl=Ut;var Vt=Ut.prototype=new Ft;function Ht(t,e,r){return isNaN(t)&amp;&amp;(t=0),isNaN(e)&amp;&amp;(e=0),new qt(r,Math.cos(t*=Lt)*e,Math.sin(t)*e)}function qt(t,e,r){return this instanceof qt?(this.l=+t,this.a=+e,void(this.b=+r)):arguments.length&lt;2?t instanceof qt?new qt(t.l,t.a,t.b):t instanceof Ut?Ht(t.h,t.c,t.l):ae((t=Qt(t)).r,t.g,t.b):new qt(t,e,r)}Vt.brighter=function(t){return new Ut(this.h,this.c,Math.min(100,this.l+Gt*(arguments.length?t:1)))},Vt.darker=function(t){return new Ut(this.h,this.c,Math.max(0,this.l-Gt*(arguments.length?t:1)))},Vt.rgb=function(){return Ht(this.h,this.c,this.l).rgb()},t.lab=qt;var Gt=18,Yt=qt.prototype=new Ft;function Wt(t,e,r){var n=(t+16)/116,i=n+e/500,a=n-r/200;return new Qt(Kt(3.2404542*(i=.95047*Zt(i))-1.5371385*(n=1*Zt(n))-.4985314*(a=1.08883*Zt(a))),Kt(-.969266*i+1.8760108*n+.041556*a),Kt(.0556434*i-.2040259*n+1.0572252*a))}function Xt(t,e,r){return t&gt;0?new Ut(Math.atan2(r,e)*Ct,Math.sqrt(e*e+r*r),t):new Ut(NaN,NaN,t)}function Zt(t){return t&gt;.206893034?t*t*t:(t-4/29)/7.787037}function Jt(t){return t&gt;.008856?Math.pow(t,1/3):7.787037*t+4/29}function Kt(t){return Math.round(255*(t&lt;=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function Qt(t,e,r){return this instanceof Qt?(this.r=~~t,this.g=~~e,void(this.b=~~r)):arguments.length&lt;2?t instanceof Qt?new Qt(t.r,t.g,t.b):ne(&quot;&quot;+t,Qt,jt):new Qt(t,e,r)}function $t(t){return new Qt(t&gt;&gt;16,t&gt;&gt;8&amp;255,255&amp;t)}function te(t){return $t(t)+&quot;&quot;}Yt.brighter=function(t){return new qt(Math.min(100,this.l+Gt*(arguments.length?t:1)),this.a,this.b)},Yt.darker=function(t){return new qt(Math.max(0,this.l-Gt*(arguments.length?t:1)),this.a,this.b)},Yt.rgb=function(){return Wt(this.l,this.a,this.b)},t.rgb=Qt;var ee=Qt.prototype=new Ft;function re(t){return t&lt;16?&quot;0&quot;+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function ne(t,e,r){var n,i,a,o=0,s=0,l=0;if(n=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=n[2].split(&quot;,&quot;),n[1]){case&quot;hsl&quot;:return r(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case&quot;rgb&quot;:return e(se(i[0]),se(i[1]),se(i[2]))}return(a=le.get(t))?e(a.r,a.g,a.b):(null==t||&quot;#&quot;!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&amp;a)&gt;&gt;4,o|=o&gt;&gt;4,s=240&amp;a,s|=s&gt;&gt;4,l=15&amp;a,l|=l&lt;&lt;4):7===t.length&amp;&amp;(o=(16711680&amp;a)&gt;&gt;16,s=(65280&amp;a)&gt;&gt;8,l=255&amp;a)),e(o,s,l))}function ie(t,e,r){var n,i,a=Math.min(t/=255,e/=255,r/=255),o=Math.max(t,e,r),s=o-a,l=(o+a)/2;return s?(i=l&lt;.5?s/(o+a):s/(2-o-a),n=t==o?(e-r)/s+(e&lt;r?6:0):e==o?(r-t)/s+2:(t-e)/s+4,n*=60):(n=NaN,i=l&gt;0&amp;&amp;l&lt;1?0:n),new Bt(n,i,l)}function ae(t,e,r){var n=Jt((.4124564*(t=oe(t))+.3575761*(e=oe(e))+.1804375*(r=oe(r)))/.95047),i=Jt((.2126729*t+.7151522*e+.072175*r)/1);return qt(116*i-16,500*(n-i),200*(i-Jt((.0193339*t+.119192*e+.9503041*r)/1.08883)))}function oe(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function se(t){var e=parseFloat(t);return&quot;%&quot;===t.charAt(t.length-1)?Math.round(2.55*e):e}ee.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,r=this.g,n=this.b,i=30;return e||r||n?(e&amp;&amp;e&lt;i&amp;&amp;(e=i),r&amp;&amp;r&lt;i&amp;&amp;(r=i),n&amp;&amp;n&lt;i&amp;&amp;(n=i),new Qt(Math.min(255,e/t),Math.min(255,r/t),Math.min(255,n/t))):new Qt(i,i,i)},ee.darker=function(t){return new Qt((t=Math.pow(.7,arguments.length?t:1))*this.r,t*this.g,t*this.b)},ee.hsl=function(){return ie(this.r,this.g,this.b)},ee.toString=function(){return&quot;#&quot;+re(this.r)+re(this.g)+re(this.b)};var le=t.map({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 ce(t){return&quot;function&quot;==typeof t?t:function(){return t}}function ue(t){return function(e,r,n){return 2===arguments.length&amp;&amp;&quot;function&quot;==typeof r&amp;&amp;(n=r,r=null),fe(e,r,t,n)}}function fe(e,r,i,a){var o={},s=t.dispatch(&quot;beforesend&quot;,&quot;progress&quot;,&quot;load&quot;,&quot;error&quot;),l={},c=new XMLHttpRequest,u=null;function f(){var t,e=c.status;if(!e&amp;&amp;function(t){var e=t.responseType;return e&amp;&amp;&quot;text&quot;!==e?t.response:t.responseText}(c)||e&gt;=200&amp;&amp;e&lt;300||304===e){try{t=i.call(o,c)}catch(t){return void s.error.call(o,t)}s.load.call(o,t)}else s.error.call(o,c)}return self.XDomainRequest&amp;&amp;!(&quot;withCredentials&quot;in c)&amp;&amp;/^(http(s)?:)?\/\//.test(e)&amp;&amp;(c=new XDomainRequest),&quot;onload&quot;in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState&gt;3&amp;&amp;f()},c.onprogress=function(e){var r=t.event;t.event=e;try{s.progress.call(o,c)}finally{t.event=r}},o.header=function(t,e){return t=(t+&quot;&quot;).toLowerCase(),arguments.length&lt;2?l[t]:(null==e?delete l[t]:l[t]=e+&quot;&quot;,o)},o.mimeType=function(t){return arguments.length?(r=null==t?null:t+&quot;&quot;,o):r},o.responseType=function(t){return arguments.length?(u=t,o):u},o.response=function(t){return i=t,o},[&quot;get&quot;,&quot;post&quot;].forEach((function(t){o[t]=function(){return o.send.apply(o,[t].concat(n(arguments)))}})),o.send=function(t,n,i){if(2===arguments.length&amp;&amp;&quot;function&quot;==typeof n&amp;&amp;(i=n,n=null),c.open(t,e,!0),null==r||&quot;accept&quot;in l||(l.accept=r+&quot;,*/*&quot;),c.setRequestHeader)for(var a in l)c.setRequestHeader(a,l[a]);return null!=r&amp;&amp;c.overrideMimeType&amp;&amp;c.overrideMimeType(r),null!=u&amp;&amp;(c.responseType=u),null!=i&amp;&amp;o.on(&quot;error&quot;,i).on(&quot;load&quot;,(function(t){i(null,t)})),s.beforesend.call(o,c),c.send(null==n?null:n),o},o.abort=function(){return c.abort(),o},t.rebind(o,s,&quot;on&quot;),null==a?o:o.get(function(t){return 1===t.length?function(e,r){t(null==e?r:null)}:t}(a))}le.forEach((function(t,e){le.set(t,$t(e))})),t.functor=ce,t.xhr=ue(C),t.dsv=function(t,e){var r=new RegExp('[&quot;'+t+&quot;\n]&quot;),n=t.charCodeAt(0);function i(t,r,n){arguments.length&lt;3&amp;&amp;(n=r,r=null);var i=fe(t,e,null==r?a:o(r),n);return i.row=function(t){return arguments.length?i.response(null==(r=t)?a:o(t)):r},i}function a(t){return i.parse(t.responseText)}function o(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(l).join(t)}function l(t){return r.test(t)?'&quot;'+t.replace(/\&quot;/g,'&quot;&quot;')+'&quot;':t}return i.parse=function(t,e){var r;return i.parseRows(t,(function(t,n){if(r)return r(t,n-1);var i=function(e){for(var r={},n=t.length,i=0;i&lt;n;++i)r[t[i]]=e[i];return r};r=e?function(t,r){return e(i(t),r)}:i}))},i.parseRows=function(t,e){var r,i,a={},o={},s=[],l=t.length,c=0,u=0;function f(){if(c&gt;=l)return o;if(i)return i=!1,a;var e=c;if(34===t.charCodeAt(e)){for(var r=e;r++&lt;l;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return c=r+2,13===(s=t.charCodeAt(r+1))?(i=!0,10===t.charCodeAt(r+2)&amp;&amp;++c):10===s&amp;&amp;(i=!0),t.slice(e+1,r).replace(/&quot;&quot;/g,'&quot;')}for(;c&lt;l;){var s,u=1;if(10===(s=t.charCodeAt(c++)))i=!0;else if(13===s)i=!0,10===t.charCodeAt(c)&amp;&amp;(++c,++u);else if(s!==n)continue;return t.slice(e,c-u)}return t.slice(e)}for(;(r=f())!==o;){for(var h=[];r!==a&amp;&amp;r!==o;)h.push(r),r=f();e&amp;&amp;null==(h=e(h,u++))||s.push(h)}return s},i.format=function(e){if(Array.isArray(e[0]))return i.formatRows(e);var r=new L,n=[];return e.forEach((function(t){for(var e in t)r.has(e)||n.push(r.add(e))})),[n.map(l).join(t)].concat(e.map((function(e){return n.map((function(t){return l(e[t])})).join(t)}))).join(&quot;\n&quot;)},i.formatRows=function(t){return t.map(s).join(&quot;\n&quot;)},i},t.csv=t.dsv(&quot;,&quot;,&quot;text/csv&quot;),t.tsv=t.dsv(&quot;\t&quot;,&quot;text/tab-separated-values&quot;);var he,pe,de,me,ge=this[I(this,&quot;requestAnimationFrame&quot;)]||function(t){setTimeout(t,17)};function ve(t,e,r){var n=arguments.length;n&lt;2&amp;&amp;(e=0),n&lt;3&amp;&amp;(r=Date.now());var i=r+e,a={c:t,t:i,n:null};return pe?pe.n=a:he=a,pe=a,de||(me=clearTimeout(me),de=1,ge(ye)),a}function ye(){var t=xe(),e=be()-t;e&gt;24?(isFinite(e)&amp;&amp;(clearTimeout(me),me=setTimeout(ye,e)),de=0):(de=1,ge(ye))}function xe(){for(var t=Date.now(),e=he;e;)t&gt;=e.t&amp;&amp;e.c(t-e.t)&amp;&amp;(e.c=null),e=e.n;return t}function be(){for(var t,e=he,r=1/0;e;)e.c?(e.t&lt;r&amp;&amp;(r=e.t),e=(t=e).n):e=t?t.n=e.n:he=e.n;return pe=t,r}function _e(t){return t[0]}function we(t){return t[1]}function Te(t){for(var e,r,n,i=t.length,a=[0,1],o=2,s=2;s&lt;i;s++){for(;o&gt;1&amp;&amp;(e=t[a[o-2]],r=t[a[o-1]],n=t[s],(r[0]-e[0])*(n[1]-e[1])-(r[1]-e[1])*(n[0]-e[0])&lt;=0);)--o;a[o++]=s}return a.slice(0,o)}function ke(t,e){return t[0]-e[0]||t[1]-e[1]}t.timer=function(){ve.apply(this,arguments)},t.timer.flush=function(){xe(),be()},t.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)},t.geom={},t.geom.hull=function(t){var e=_e,r=we;if(arguments.length)return n(t);function n(t){if(t.length&lt;3)return[];var n,i=ce(e),a=ce(r),o=t.length,s=[],l=[];for(n=0;n&lt;o;n++)s.push([+i.call(this,t[n],n),+a.call(this,t[n],n),n]);for(s.sort(ke),n=0;n&lt;o;n++)l.push([s[n][0],-s[n][1]]);var c=Te(s),u=Te(l),f=u[0]===c[0],h=u[u.length-1]===c[c.length-1],p=[];for(n=c.length-1;n&gt;=0;--n)p.push(t[s[c[n]][2]]);for(n=+f;n&lt;u.length-h;++n)p.push(t[s[u[n]][2]]);return p}return n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n},t.geom.polygon=function(t){return U(t,Ae),t};var Ae=t.geom.polygon.prototype=[];function Me(t,e,r){return(r[0]-e[0])*(t[1]-e[1])&lt;(r[1]-e[1])*(t[0]-e[0])}function Se(t,e,r,n){var i=t[0],a=r[0],o=e[0]-i,s=n[0]-a,l=t[1],c=r[1],u=e[1]-l,f=n[1]-c,h=(s*(l-c)-f*(i-a))/(f*o-s*u);return[i+h*o,l+h*u]}function Ee(t){var e=t[0],r=t[t.length-1];return!(e[0]-r[0]||e[1]-r[1])}Ae.area=function(){for(var t,e=-1,r=this.length,n=this[r-1],i=0;++e&lt;r;)t=n,n=this[e],i+=t[1]*n[0]-t[0]*n[1];return.5*i},Ae.centroid=function(t){var e,r,n=-1,i=this.length,a=0,o=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++n&lt;i;)e=s,s=this[n],r=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*r,o+=(e[1]+s[1])*r;return[a*t,o*t]},Ae.clip=function(t){for(var e,r,n,i,a,o,s=Ee(t),l=-1,c=this.length-Ee(this),u=this[c-1];++l&lt;c;){for(e=t.slice(),t.length=0,i=this[l],a=e[(n=e.length-s)-1],r=-1;++r&lt;n;)Me(o=e[r],u,i)?(Me(a,u,i)||t.push(Se(a,o,u,i)),t.push(o)):Me(a,u,i)&amp;&amp;t.push(Se(a,o,u,i)),a=o;s&amp;&amp;t.push(t[0]),u=i}return t};var Le,Ce,Pe,Ie,Oe,ze=[],De=[];function Re(){er(this),this.edge=this.site=this.circle=null}function Fe(t){var e=ze.pop()||new Re;return e.site=t,e}function Be(t){We(t),Pe.remove(t),ze.push(t),er(t)}function Ne(t){var e=t.circle,r=e.x,n=e.cy,i={x:r,y:n},a=t.P,o=t.N,s=[t];Be(t);for(var l=a;l.circle&amp;&amp;y(r-l.circle.x)&lt;kt&amp;&amp;y(n-l.circle.cy)&lt;kt;)a=l.P,s.unshift(l),Be(l),l=a;s.unshift(l),We(l);for(var c=o;c.circle&amp;&amp;y(r-c.circle.x)&lt;kt&amp;&amp;y(n-c.circle.cy)&lt;kt;)o=c.N,s.push(c),Be(c),c=o;s.push(c),We(c);var u,f=s.length;for(u=1;u&lt;f;++u)c=s[u],l=s[u-1],Qe(c.edge,l.site,c.site,i);l=s[0],(c=s[f-1]).edge=Je(l.site,c.site,null,i),Ye(l),Ye(c)}function je(t){for(var e,r,n,i,a=t.x,o=t.y,s=Pe._;s;)if((n=Ue(s,o)-a)&gt;kt)s=s.L;else{if(!((i=a-Ve(s,o))&gt;kt)){n&gt;-kt?(e=s.P,r=s):i&gt;-kt?(e=s,r=s.N):e=r=s;break}if(!s.R){e=s;break}s=s.R}var l=Fe(t);if(Pe.insert(e,l),e||r){if(e===r)return We(e),r=Fe(e.site),Pe.insert(l,r),l.edge=r.edge=Je(e.site,l.site),Ye(e),void Ye(r);if(r){We(e),We(r);var c=e.site,u=c.x,f=c.y,h=t.x-u,p=t.y-f,d=r.site,m=d.x-u,g=d.y-f,v=2*(h*g-p*m),y=h*h+p*p,x=m*m+g*g,b={x:(g*y-p*x)/v+u,y:(h*x-m*y)/v+f};Qe(r.edge,c,d,b),l.edge=Je(c,t,null,b),r.edge=Je(t,d,null,b),Ye(e),Ye(r)}else l.edge=Je(e.site,l.site)}}function Ue(t,e){var r=t.site,n=r.x,i=r.y,a=i-e;if(!a)return n;var o=t.P;if(!o)return-1/0;var s=(r=o.site).x,l=r.y,c=l-e;if(!c)return s;var u=s-n,f=1/a-1/c,h=u/c;return f?(-h+Math.sqrt(h*h-2*f*(u*u/(-2*c)-l+c/2+i-a/2)))/f+n:(n+s)/2}function Ve(t,e){var r=t.N;if(r)return Ue(r,e);var n=t.site;return n.y===e?n.x:1/0}function He(t){this.site=t,this.edges=[]}function qe(t,e){return e.angle-t.angle}function Ge(){er(this),this.x=this.y=this.arc=this.site=this.cy=null}function Ye(t){var e=t.P,r=t.N;if(e&amp;&amp;r){var n=e.site,i=t.site,a=r.site;if(n!==a){var o=i.x,s=i.y,l=n.x-o,c=n.y-s,u=a.x-o,f=2*(l*(g=a.y-s)-c*u);if(!(f&gt;=-1e-12)){var h=l*l+c*c,p=u*u+g*g,d=(g*h-c*p)/f,m=(l*p-u*h)/f,g=m+s,v=De.pop()||new Ge;v.arc=t,v.site=i,v.x=d+o,v.y=g+Math.sqrt(d*d+m*m),v.cy=g,t.circle=v;for(var y=null,x=Oe._;x;)if(v.y&lt;x.y||v.y===x.y&amp;&amp;v.x&lt;=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}Oe.insert(y,v),y||(Ie=v)}}}}function We(t){var e=t.circle;e&amp;&amp;(e.P||(Ie=e.N),Oe.remove(e),De.push(e),er(e),t.circle=null)}function Xe(t,e){var r=t.b;if(r)return!0;var n,i,a=t.a,o=e[0][0],s=e[1][0],l=e[0][1],c=e[1][1],u=t.l,f=t.r,h=u.x,p=u.y,d=f.x,m=f.y,g=(h+d)/2,v=(p+m)/2;if(m===p){if(g&lt;o||g&gt;=s)return;if(h&gt;d){if(a){if(a.y&gt;=c)return}else a={x:g,y:l};r={x:g,y:c}}else{if(a){if(a.y&lt;l)return}else a={x:g,y:c};r={x:g,y:l}}}else if(i=v-(n=(h-d)/(m-p))*g,n&lt;-1||n&gt;1)if(h&gt;d){if(a){if(a.y&gt;=c)return}else a={x:(l-i)/n,y:l};r={x:(c-i)/n,y:c}}else{if(a){if(a.y&lt;l)return}else a={x:(c-i)/n,y:c};r={x:(l-i)/n,y:l}}else if(p&lt;m){if(a){if(a.x&gt;=s)return}else a={x:o,y:n*o+i};r={x:s,y:n*s+i}}else{if(a){if(a.x&lt;o)return}else a={x:s,y:n*s+i};r={x:o,y:n*o+i}}return t.a=a,t.b=r,!0}function Ze(t,e){this.l=t,this.r=e,this.a=this.b=null}function Je(t,e,r,n){var i=new Ze(t,e);return Le.push(i),r&amp;&amp;Qe(i,t,e,r),n&amp;&amp;Qe(i,e,t,n),Ce[t.i].edges.push(new $e(i,t,e)),Ce[e.i].edges.push(new $e(i,e,t)),i}function Ke(t,e,r){var n=new Ze(t,null);return n.a=e,n.b=r,Le.push(n),n}function Qe(t,e,r,n){t.a||t.b?t.l===r?t.b=n:t.a=n:(t.a=n,t.l=e,t.r=r)}function $e(t,e,r){var n=t.a,i=t.b;this.edge=t,this.site=e,this.angle=r?Math.atan2(r.y-e.y,r.x-e.x):t.l===e?Math.atan2(i.x-n.x,n.y-i.y):Math.atan2(n.x-i.x,i.y-n.y)}function tr(){this._=null}function er(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function rr(t,e){var r=e,n=e.R,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.R=n.L,r.R&amp;&amp;(r.R.U=r),n.L=r}function nr(t,e){var r=e,n=e.L,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.L=n.R,r.L&amp;&amp;(r.L.U=r),n.R=r}function ir(t){for(;t.L;)t=t.L;return t}function ar(t,e){var r,n,i,a=t.sort(or).pop();for(Le=[],Ce=new Array(t.length),Pe=new tr,Oe=new tr;;)if(i=Ie,a&amp;&amp;(!i||a.y&lt;i.y||a.y===i.y&amp;&amp;a.x&lt;i.x))a.x===r&amp;&amp;a.y===n||(Ce[a.i]=new He(a),je(a),r=a.x,n=a.y),a=t.pop();else{if(!i)break;Ne(i.arc)}e&amp;&amp;(function(t){for(var e,r,n,i,a,o=Le,s=(r=t[0][0],n=t[0][1],i=t[1][0],a=t[1][1],function(t){var e,o=t.a,s=t.b,l=o.x,c=o.y,u=0,f=1,h=s.x-l,p=s.y-c;if(e=r-l,h||!(e&gt;0)){if(e/=h,h&lt;0){if(e&lt;u)return;e&lt;f&amp;&amp;(f=e)}else if(h&gt;0){if(e&gt;f)return;e&gt;u&amp;&amp;(u=e)}if(e=i-l,h||!(e&lt;0)){if(e/=h,h&lt;0){if(e&gt;f)return;e&gt;u&amp;&amp;(u=e)}else if(h&gt;0){if(e&lt;u)return;e&lt;f&amp;&amp;(f=e)}if(e=n-c,p||!(e&gt;0)){if(e/=p,p&lt;0){if(e&lt;u)return;e&lt;f&amp;&amp;(f=e)}else if(p&gt;0){if(e&gt;f)return;e&gt;u&amp;&amp;(u=e)}if(e=a-c,p||!(e&lt;0)){if(e/=p,p&lt;0){if(e&gt;f)return;e&gt;u&amp;&amp;(u=e)}else if(p&gt;0){if(e&lt;u)return;e&lt;f&amp;&amp;(f=e)}return u&gt;0&amp;&amp;(t.a={x:l+u*h,y:c+u*p}),f&lt;1&amp;&amp;(t.b={x:l+f*h,y:c+f*p}),t}}}}}),l=o.length;l--;)(!Xe(e=o[l],t)||!s(e)||y(e.a.x-e.b.x)&lt;kt&amp;&amp;y(e.a.y-e.b.y)&lt;kt)&amp;&amp;(e.a=e.b=null,o.splice(l,1))}(e),function(t){for(var e,r,n,i,a,o,s,l,c,u,f=t[0][0],h=t[1][0],p=t[0][1],d=t[1][1],m=Ce,g=m.length;g--;)if((a=m[g])&amp;&amp;a.prepare())for(l=(s=a.edges).length,o=0;o&lt;l;)n=(u=s[o].end()).x,i=u.y,e=(c=s[++o%l].start()).x,r=c.y,(y(n-e)&gt;kt||y(i-r)&gt;kt)&amp;&amp;(s.splice(o,0,new $e(Ke(a.site,u,y(n-f)&lt;kt&amp;&amp;d-i&gt;kt?{x:f,y:y(e-f)&lt;kt?r:d}:y(i-d)&lt;kt&amp;&amp;h-n&gt;kt?{x:y(r-d)&lt;kt?e:h,y:d}:y(n-h)&lt;kt&amp;&amp;i-p&gt;kt?{x:h,y:y(e-h)&lt;kt?r:p}:y(i-p)&lt;kt&amp;&amp;n-f&gt;kt?{x:y(r-p)&lt;kt?e:f,y:p}:null),a.site,null)),++l)}(e));var o={cells:Ce,edges:Le};return Pe=Oe=Le=Ce=null,o}function or(t,e){return e.y-t.y||e.x-t.x}He.prototype.prepare=function(){for(var t,e=this.edges,r=e.length;r--;)(t=e[r].edge).b&amp;&amp;t.a||e.splice(r,1);return e.sort(qe),e.length},$e.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},tr.prototype={insert:function(t,e){var r,n,i;if(t){if(e.P=t,e.N=t.N,t.N&amp;&amp;(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;r=t}else this._?(t=ir(this._),e.P=null,e.N=t,t.P=t.L=e,r=t):(e.P=e.N=null,this._=e,r=null);for(e.L=e.R=null,e.U=r,e.C=!0,t=e;r&amp;&amp;r.C;)r===(n=r.U).L?(i=n.R)&amp;&amp;i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.R&amp;&amp;(rr(this,r),r=(t=r).U),r.C=!1,n.C=!0,nr(this,n)):(i=n.L)&amp;&amp;i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.L&amp;&amp;(nr(this,r),r=(t=r).U),r.C=!1,n.C=!0,rr(this,n)),r=t.U;this._.C=!1},remove:function(t){t.N&amp;&amp;(t.N.P=t.P),t.P&amp;&amp;(t.P.N=t.N),t.N=t.P=null;var e,r,n,i=t.U,a=t.L,o=t.R;if(r=a?o?ir(o):a:o,i?i.L===t?i.L=r:i.R=r:this._=r,a&amp;&amp;o?(n=r.C,r.C=t.C,r.L=a,a.U=r,r!==o?(i=r.U,r.U=t.U,t=r.R,i.L=t,r.R=o,o.U=r):(r.U=i,i=r,t=r.R)):(n=t.C,t=r),t&amp;&amp;(t.U=i),!n)if(t&amp;&amp;t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&amp;&amp;(e.C=!1,i.C=!0,rr(this,i),e=i.R),e.L&amp;&amp;e.L.C||e.R&amp;&amp;e.R.C){e.R&amp;&amp;e.R.C||(e.L.C=!1,e.C=!0,nr(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,rr(this,i),t=this._;break}}else if((e=i.L).C&amp;&amp;(e.C=!1,i.C=!0,nr(this,i),e=i.L),e.L&amp;&amp;e.L.C||e.R&amp;&amp;e.R.C){e.L&amp;&amp;e.L.C||(e.R.C=!1,e.C=!0,rr(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,nr(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&amp;&amp;(t.C=!1)}}},t.geom.voronoi=function(t){var e=_e,r=we,n=e,i=r,a=sr;if(t)return o(t);function o(t){var e=new Array(t.length),r=a[0][0],n=a[0][1],i=a[1][0],o=a[1][1];return ar(s(t),a).cells.forEach((function(a,s){var l=a.edges,c=a.site;(e[s]=l.length?l.map((function(t){var e=t.start();return[e.x,e.y]})):c.x&gt;=r&amp;&amp;c.x&lt;=i&amp;&amp;c.y&gt;=n&amp;&amp;c.y&lt;=o?[[r,o],[i,o],[i,n],[r,n]]:[]).point=t[s]})),e}function s(t){return t.map((function(t,e){return{x:Math.round(n(t,e)/kt)*kt,y:Math.round(i(t,e)/kt)*kt,i:e}}))}return o.links=function(t){return ar(s(t)).edges.filter((function(t){return t.l&amp;&amp;t.r})).map((function(e){return{source:t[e.l.i],target:t[e.r.i]}}))},o.triangles=function(t){var e=[];return ar(s(t)).cells.forEach((function(r,n){for(var i,a,o,s,l=r.site,c=r.edges.sort(qe),u=-1,f=c.length,h=c[f-1].edge,p=h.l===l?h.r:h.l;++u&lt;f;)h,i=p,p=(h=c[u].edge).l===l?h.r:h.l,n&lt;i.i&amp;&amp;n&lt;p.i&amp;&amp;(o=i,s=p,((a=l).x-s.x)*(o.y-a.y)-(a.x-o.x)*(s.y-a.y)&lt;0)&amp;&amp;e.push([t[n],t[i.i],t[p.i]])})),e},o.x=function(t){return arguments.length?(n=ce(e=t),o):e},o.y=function(t){return arguments.length?(i=ce(r=t),o):r},o.clipExtent=function(t){return arguments.length?(a=null==t?sr:t,o):a===sr?null:a},o.size=function(t){return arguments.length?o.clipExtent(t&amp;&amp;[[0,0],t]):a===sr?null:a&amp;&amp;a[1]},o};var sr=[[-1e6,-1e6],[1e6,1e6]];function lr(t){return t.x}function cr(t){return t.y}function ur(t,e,r,n,i,a){if(!t(e,r,n,i,a)){var o=.5*(r+i),s=.5*(n+a),l=e.nodes;l[0]&amp;&amp;ur(t,l[0],r,n,o,s),l[1]&amp;&amp;ur(t,l[1],o,n,i,s),l[2]&amp;&amp;ur(t,l[2],r,s,o,a),l[3]&amp;&amp;ur(t,l[3],o,s,i,a)}}function fr(t,e,r,n,i,a,o){var s,l=1/0;return function t(c,u,f,h,p){if(!(u&gt;a||f&gt;o||h&lt;n||p&lt;i)){if(d=c.point){var d,m=e-c.x,g=r-c.y,v=m*m+g*g;if(v&lt;l){var y=Math.sqrt(l=v);n=e-y,i=r-y,a=e+y,o=r+y,s=d}}for(var x=c.nodes,b=.5*(u+h),_=.5*(f+p),w=(r&gt;=_)&lt;&lt;1|e&gt;=b,T=w+4;w&lt;T;++w)if(c=x[3&amp;w])switch(3&amp;w){case 0:t(c,u,f,b,_);break;case 1:t(c,b,f,h,_);break;case 2:t(c,u,_,b,p);break;case 3:t(c,b,_,h,p)}}}(t,n,i,a,o),s}function hr(e,r){e=t.rgb(e),r=t.rgb(r);var n=e.r,i=e.g,a=e.b,o=r.r-n,s=r.g-i,l=r.b-a;return function(t){return&quot;#&quot;+re(Math.round(n+o*t))+re(Math.round(i+s*t))+re(Math.round(a+l*t))}}function pr(t,e){var r,n={},i={};for(r in t)r in e?n[r]=yr(t[r],e[r]):i[r]=t[r];for(r in e)r in t||(i[r]=e[r]);return function(t){for(r in n)i[r]=n[r](t);return i}}function dr(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function mr(t,e){var r,n,i,a=gr.lastIndex=vr.lastIndex=0,o=-1,s=[],l=[];for(t+=&quot;&quot;,e+=&quot;&quot;;(r=gr.exec(t))&amp;&amp;(n=vr.exec(e));)(i=n.index)&gt;a&amp;&amp;(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:dr(r,n)})),a=vr.lastIndex;return a&lt;e.length&amp;&amp;(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length&lt;2?l[0]?(e=l[0].x,function(t){return e(t)+&quot;&quot;}):function(){return e}:(e=l.length,function(t){for(var r,n=0;n&lt;e;++n)s[(r=l[n]).i]=r.x(t);return s.join(&quot;&quot;)})}t.geom.delaunay=function(e){return t.geom.voronoi().triangles(e)},t.geom.quadtree=function(t,e,r,n,i){var a,o=_e,s=we;if(a=arguments.length)return o=lr,s=cr,3===a&amp;&amp;(i=r,n=e,r=e=0),l(t);function l(t){var l,c,u,f,h,p,d,m,g,v=ce(o),x=ce(s);if(null!=e)p=e,d=r,m=n,g=i;else if(m=g=-(p=d=1/0),c=[],u=[],h=t.length,a)for(f=0;f&lt;h;++f)(l=t[f]).x&lt;p&amp;&amp;(p=l.x),l.y&lt;d&amp;&amp;(d=l.y),l.x&gt;m&amp;&amp;(m=l.x),l.y&gt;g&amp;&amp;(g=l.y),c.push(l.x),u.push(l.y);else for(f=0;f&lt;h;++f){var b=+v(l=t[f],f),_=+x(l,f);b&lt;p&amp;&amp;(p=b),_&lt;d&amp;&amp;(d=_),b&gt;m&amp;&amp;(m=b),_&gt;g&amp;&amp;(g=_),c.push(b),u.push(_)}var w=m-p,T=g-d;function k(t,e,r,n,i,a,o,s){if(!isNaN(r)&amp;&amp;!isNaN(n))if(t.leaf){var l=t.x,c=t.y;if(null!=l)if(y(l-r)+y(c-n)&lt;.01)A(t,e,r,n,i,a,o,s);else{var u=t.point;t.x=t.y=t.point=null,A(t,u,l,c,i,a,o,s),A(t,e,r,n,i,a,o,s)}else t.x=r,t.y=n,t.point=e}else A(t,e,r,n,i,a,o,s)}function A(t,e,r,n,i,a,o,s){var l=.5*(i+o),c=.5*(a+s),u=r&gt;=l,f=n&gt;=c,h=f&lt;&lt;1|u;t.leaf=!1,u?i=l:o=l,f?a=c:s=c,k(t=t.nodes[h]||(t.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null}),e,r,n,i,a,o,s)}w&gt;T?g=d+w:m=p+T;var M={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){k(M,t,+v(t,++f),+x(t,f),p,d,m,g)},visit:function(t){ur(t,M,p,d,m,g)},find:function(t){return fr(M,t[0],t[1],p,d,m,g)}};if(f=-1,null==e){for(;++f&lt;h;)k(M,t[f],c[f],u[f],p,d,m,g);--f}else t.forEach(M.add);return c=u=t=l=null,M}return l.x=function(t){return arguments.length?(o=t,l):o},l.y=function(t){return arguments.length?(s=t,l):s},l.extent=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=+t[0][0],r=+t[0][1],n=+t[1][0],i=+t[1][1]),l):null==e?null:[[e,r],[n,i]]},l.size=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=r=0,n=+t[0],i=+t[1]),l):null==e?null:[n-e,i-r]},l},t.interpolateRgb=hr,t.interpolateObject=pr,t.interpolateNumber=dr,t.interpolateString=mr;var gr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,vr=new RegExp(gr.source,&quot;g&quot;);function yr(e,r){for(var n,i=t.interpolators.length;--i&gt;=0&amp;&amp;!(n=t.interpolators[i](e,r)););return n}function xr(t,e){var r,n=[],i=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(r=0;r&lt;s;++r)n.push(yr(t[r],e[r]));for(;r&lt;a;++r)i[r]=t[r];for(;r&lt;o;++r)i[r]=e[r];return function(t){for(r=0;r&lt;s;++r)i[r]=n[r](t);return i}}t.interpolate=yr,t.interpolators=[function(t,e){var r=typeof e;return(&quot;string&quot;===r?le.has(e.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(e)?hr:mr:e instanceof Ft?hr:Array.isArray(e)?xr:&quot;object&quot;===r&amp;&amp;isNaN(e)?pr:dr)(t,e)}],t.interpolateArray=xr;var br=function(){return C},_r=t.map({linear:br,poly:function(t){return function(e){return Math.pow(e,t)}},quad:function(){return Mr},cubic:function(){return Sr},sin:function(){return Lr},exp:function(){return Cr},circle:function(){return Pr},elastic:function(t,e){var r;arguments.length&lt;2&amp;&amp;(e=.45);arguments.length?r=e/Mt*Math.asin(1/t):(t=1,r=e/4);return function(n){return 1+t*Math.pow(2,-10*n)*Math.sin((n-r)*Mt/e)}},back:function(t){t||(t=1.70158);return function(e){return e*e*((t+1)*e-t)}},bounce:function(){return Ir}}),wr=t.map({in:C,out:kr,&quot;in-out&quot;:Ar,&quot;out-in&quot;:function(t){return Ar(kr(t))}});function Tr(t){return function(e){return e&lt;=0?0:e&gt;=1?1:t(e)}}function kr(t){return function(e){return 1-t(1-e)}}function Ar(t){return function(e){return.5*(e&lt;.5?t(2*e):2-t(2-2*e))}}function Mr(t){return t*t}function Sr(t){return t*t*t}function Er(t){if(t&lt;=0)return 0;if(t&gt;=1)return 1;var e=t*t,r=e*t;return 4*(t&lt;.5?r:3*(t-e)+r-.75)}function Lr(t){return 1-Math.cos(t*Et)}function Cr(t){return Math.pow(2,10*(t-1))}function Pr(t){return 1-Math.sqrt(1-t*t)}function Ir(t){return t&lt;1/2.75?7.5625*t*t:t&lt;2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t&lt;2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Or(t,e){return e-=t,function(r){return Math.round(t+e*r)}}function zr(t){var e,r,n,i=[t.a,t.b],a=[t.c,t.d],o=Rr(i),s=Dr(i,a),l=Rr(((e=a)[0]+=(n=-s)*(r=i)[0],e[1]+=n*r[1],e))||0;i[0]*a[1]&lt;a[0]*i[1]&amp;&amp;(i[0]*=-1,i[1]*=-1,o*=-1,s*=-1),this.rotate=(o?Math.atan2(i[1],i[0]):Math.atan2(-a[0],a[1]))*Ct,this.translate=[t.e,t.f],this.scale=[o,l],this.skew=l?Math.atan2(s,l)*Ct:0}function Dr(t,e){return t[0]*e[0]+t[1]*e[1]}function Rr(t){var e=Math.sqrt(Dr(t,t));return e&amp;&amp;(t[0]/=e,t[1]/=e),e}t.ease=function(t){var e=t.indexOf(&quot;-&quot;),n=e&gt;=0?t.slice(0,e):t,i=e&gt;=0?t.slice(e+1):&quot;in&quot;;return n=_r.get(n)||br,Tr((i=wr.get(i)||C)(n.apply(null,r.call(arguments,1))))},t.interpolateHcl=function(e,r){e=t.hcl(e),r=t.hcl(r);var n=e.h,i=e.c,a=e.l,o=r.h-n,s=r.c-i,l=r.l-a;isNaN(s)&amp;&amp;(s=0,i=isNaN(i)?r.c:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o&gt;180?o-=360:o&lt;-180&amp;&amp;(o+=360);return function(t){return Ht(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateHsl=function(e,r){e=t.hsl(e),r=t.hsl(r);var n=e.h,i=e.s,a=e.l,o=r.h-n,s=r.s-i,l=r.l-a;isNaN(s)&amp;&amp;(s=0,i=isNaN(i)?r.s:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o&gt;180?o-=360:o&lt;-180&amp;&amp;(o+=360);return function(t){return jt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateLab=function(e,r){e=t.lab(e),r=t.lab(r);var n=e.l,i=e.a,a=e.b,o=r.l-n,s=r.a-i,l=r.b-a;return function(t){return Wt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateRound=Or,t.transform=function(e){var r=i.createElementNS(t.ns.prefix.svg,&quot;g&quot;);return(t.transform=function(t){if(null!=t){r.setAttribute(&quot;transform&quot;,t);var e=r.transform.baseVal.consolidate()}return new zr(e?e.matrix:Fr)})(e)},zr.prototype.toString=function(){return&quot;translate(&quot;+this.translate+&quot;)rotate(&quot;+this.rotate+&quot;)skewX(&quot;+this.skew+&quot;)scale(&quot;+this.scale+&quot;)&quot;};var Fr={a:1,b:0,c:0,d:1,e:0,f:0};function Br(t){return t.length?t.pop()+&quot;,&quot;:&quot;&quot;}function Nr(e,r){var n=[],i=[];return e=t.transform(e),r=t.transform(r),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(&quot;translate(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);n.push({i:i-4,x:dr(t[0],e[0])},{i:i-2,x:dr(t[1],e[1])})}else(e[0]||e[1])&amp;&amp;r.push(&quot;translate(&quot;+e+&quot;)&quot;)}(e.translate,r.translate,n,i),function(t,e,r,n){t!==e?(t-e&gt;180?e+=360:e-t&gt;180&amp;&amp;(t+=360),n.push({i:r.push(Br(r)+&quot;rotate(&quot;,null,&quot;)&quot;)-2,x:dr(t,e)})):e&amp;&amp;r.push(Br(r)+&quot;rotate(&quot;+e+&quot;)&quot;)}(e.rotate,r.rotate,n,i),function(t,e,r,n){t!==e?n.push({i:r.push(Br(r)+&quot;skewX(&quot;,null,&quot;)&quot;)-2,x:dr(t,e)}):e&amp;&amp;r.push(Br(r)+&quot;skewX(&quot;+e+&quot;)&quot;)}(e.skew,r.skew,n,i),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(Br(r)+&quot;scale(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);n.push({i:i-4,x:dr(t[0],e[0])},{i:i-2,x:dr(t[1],e[1])})}else 1===e[0]&amp;&amp;1===e[1]||r.push(Br(r)+&quot;scale(&quot;+e+&quot;)&quot;)}(e.scale,r.scale,n,i),e=r=null,function(t){for(var e,r=-1,a=i.length;++r&lt;a;)n[(e=i[r]).i]=e.x(t);return n.join(&quot;&quot;)}}function jr(t,e){return e=(e-=t=+t)||1/e,function(r){return(r-t)/e}}function Ur(t,e){return e=(e-=t=+t)||1/e,function(r){return Math.max(0,Math.min(1,(r-t)/e))}}function Vr(t){for(var e=t.source,r=t.target,n=function(t,e){if(t===e)return t;var r=Hr(t),n=Hr(e),i=r.pop(),a=n.pop(),o=null;for(;i===a;)o=i,i=r.pop(),a=n.pop();return o}(e,r),i=[e];e!==n;)e=e.parent,i.push(e);for(var a=i.length;r!==n;)i.splice(a,0,r),r=r.parent;return i}function Hr(t){for(var e=[],r=t.parent;null!=r;)e.push(t),t=r,r=r.parent;return e.push(t),e}function qr(t){t.fixed|=2}function Gr(t){t.fixed&amp;=-7}function Yr(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Wr(t){t.fixed&amp;=-5}t.interpolateTransform=Nr,t.layout={},t.layout.bundle=function(){return function(t){for(var e=[],r=-1,n=t.length;++r&lt;n;)e.push(Vr(t[r]));return e}},t.layout.chord=function(){var e,r,n,i,a,o,s,l={},c=0;function u(){var l,u,h,p,d,m={},g=[],v=t.range(i),y=[];for(e=[],r=[],l=0,p=-1;++p&lt;i;){for(u=0,d=-1;++d&lt;i;)u+=n[p][d];g.push(u),y.push(t.range(i)),l+=u}for(a&amp;&amp;v.sort((function(t,e){return a(g[t],g[e])})),o&amp;&amp;y.forEach((function(t,e){t.sort((function(t,r){return o(n[e][t],n[e][r])}))})),l=(Mt-c*i)/l,u=0,p=-1;++p&lt;i;){for(h=u,d=-1;++d&lt;i;){var x=v[p],b=y[x][d],_=n[x][b],w=u,T=u+=_*l;m[x+&quot;-&quot;+b]={index:x,subindex:b,startAngle:w,endAngle:T,value:_}}r[x]={index:x,startAngle:h,endAngle:u,value:g[x]},u+=c}for(p=-1;++p&lt;i;)for(d=p-1;++d&lt;i;){var k=m[p+&quot;-&quot;+d],A=m[d+&quot;-&quot;+p];(k.value||A.value)&amp;&amp;e.push(k.value&lt;A.value?{source:A,target:k}:{source:k,target:A})}s&amp;&amp;f()}function f(){e.sort((function(t,e){return s((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)}))}return l.matrix=function(t){return arguments.length?(i=(n=t)&amp;&amp;n.length,e=r=null,l):n},l.padding=function(t){return arguments.length?(c=t,e=r=null,l):c},l.sortGroups=function(t){return arguments.length?(a=t,e=r=null,l):a},l.sortSubgroups=function(t){return arguments.length?(o=t,e=null,l):o},l.sortChords=function(t){return arguments.length?(s=t,e&amp;&amp;f(),l):s},l.chords=function(){return e||u(),e},l.groups=function(){return r||u(),r},l},t.layout.force=function(){var e,r,n,i,a,o,s={},l=t.dispatch(&quot;start&quot;,&quot;tick&quot;,&quot;end&quot;),c=[1,1],u=.9,f=Xr,h=Zr,p=-30,d=Jr,m=.1,g=.64,v=[],y=[];function x(t){return function(e,r,n,i){if(e.point!==t){var a=e.cx-t.x,o=e.cy-t.y,s=i-r,l=a*a+o*o;if(s*s/g&lt;l){if(l&lt;d){var c=e.charge/l;t.px-=a*c,t.py-=o*c}return!0}if(e.point&amp;&amp;l&amp;&amp;l&lt;d){c=e.pointCharge/l;t.px-=a*c,t.py-=o*c}}return!e.charge}}function b(e){e.px=t.event.x,e.py=t.event.y,s.resume()}return s.tick=function(){if((n*=.99)&lt;.005)return e=null,l.end({type:&quot;end&quot;,alpha:n=0}),!0;var r,s,f,h,d,g,b,_,w,T=v.length,k=y.length;for(s=0;s&lt;k;++s)h=(f=y[s]).source,(g=(_=(d=f.target).x-h.x)*_+(w=d.y-h.y)*w)&amp;&amp;(_*=g=n*a[s]*((g=Math.sqrt(g))-i[s])/g,w*=g,d.x-=_*(b=h.weight+d.weight?h.weight/(h.weight+d.weight):.5),d.y-=w*b,h.x+=_*(b=1-b),h.y+=w*b);if((b=n*m)&amp;&amp;(_=c[0]/2,w=c[1]/2,s=-1,b))for(;++s&lt;T;)(f=v[s]).x+=(_-f.x)*b,f.y+=(w-f.y)*b;if(p)for(!function t(e,r,n){var i=0,a=0;if(e.charge=0,!e.leaf)for(var o,s=e.nodes,l=s.length,c=-1;++c&lt;l;)null!=(o=s[c])&amp;&amp;(t(o,r,n),e.charge+=o.charge,i+=o.charge*o.cx,a+=o.charge*o.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var u=r*n[e.point.index];e.charge+=e.pointCharge=u,i+=u*e.point.x,a+=u*e.point.y}e.cx=i/e.charge,e.cy=a/e.charge}(r=t.geom.quadtree(v),n,o),s=-1;++s&lt;T;)(f=v[s]).fixed||r.visit(x(f));for(s=-1;++s&lt;T;)(f=v[s]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*u,f.y-=(f.py-(f.py=f.y))*u);l.tick({type:&quot;tick&quot;,alpha:n})},s.nodes=function(t){return arguments.length?(v=t,s):v},s.links=function(t){return arguments.length?(y=t,s):y},s.size=function(t){return arguments.length?(c=t,s):c},s.linkDistance=function(t){return arguments.length?(f=&quot;function&quot;==typeof t?t:+t,s):f},s.distance=s.linkDistance,s.linkStrength=function(t){return arguments.length?(h=&quot;function&quot;==typeof t?t:+t,s):h},s.friction=function(t){return arguments.length?(u=+t,s):u},s.charge=function(t){return arguments.length?(p=&quot;function&quot;==typeof t?t:+t,s):p},s.chargeDistance=function(t){return arguments.length?(d=t*t,s):Math.sqrt(d)},s.gravity=function(t){return arguments.length?(m=+t,s):m},s.theta=function(t){return arguments.length?(g=t*t,s):Math.sqrt(g)},s.alpha=function(t){return arguments.length?(t=+t,n?t&gt;0?n=t:(e.c=null,e.t=NaN,e=null,l.end({type:&quot;end&quot;,alpha:n=0})):t&gt;0&amp;&amp;(l.start({type:&quot;start&quot;,alpha:n=t}),e=ve(s.tick)),s):n},s.start=function(){var t,e,r,n=v.length,l=y.length,u=c[0],d=c[1];for(t=0;t&lt;n;++t)(r=v[t]).index=t,r.weight=0;for(t=0;t&lt;l;++t)&quot;number&quot;==typeof(r=y[t]).source&amp;&amp;(r.source=v[r.source]),&quot;number&quot;==typeof r.target&amp;&amp;(r.target=v[r.target]),++r.source.weight,++r.target.weight;for(t=0;t&lt;n;++t)r=v[t],isNaN(r.x)&amp;&amp;(r.x=m(&quot;x&quot;,u)),isNaN(r.y)&amp;&amp;(r.y=m(&quot;y&quot;,d)),isNaN(r.px)&amp;&amp;(r.px=r.x),isNaN(r.py)&amp;&amp;(r.py=r.y);if(i=[],&quot;function&quot;==typeof f)for(t=0;t&lt;l;++t)i[t]=+f.call(this,y[t],t);else for(t=0;t&lt;l;++t)i[t]=f;if(a=[],&quot;function&quot;==typeof h)for(t=0;t&lt;l;++t)a[t]=+h.call(this,y[t],t);else for(t=0;t&lt;l;++t)a[t]=h;if(o=[],&quot;function&quot;==typeof p)for(t=0;t&lt;n;++t)o[t]=+p.call(this,v[t],t);else for(t=0;t&lt;n;++t)o[t]=p;function m(r,i){if(!e){for(e=new Array(n),c=0;c&lt;n;++c)e[c]=[];for(c=0;c&lt;l;++c){var a=y[c];e[a.source.index].push(a.target),e[a.target.index].push(a.source)}}for(var o,s=e[t],c=-1,u=s.length;++c&lt;u;)if(!isNaN(o=s[c][r]))return o;return Math.random()*i}return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){if(r||(r=t.behavior.drag().origin(C).on(&quot;dragstart.force&quot;,qr).on(&quot;drag.force&quot;,b).on(&quot;dragend.force&quot;,Gr)),!arguments.length)return r;this.on(&quot;mouseover.force&quot;,Yr).on(&quot;mouseout.force&quot;,Wr).call(r)},t.rebind(s,l,&quot;on&quot;)};var Xr=20,Zr=1,Jr=1/0;function Kr(e,r){return t.rebind(e,r,&quot;sort&quot;,&quot;children&quot;,&quot;value&quot;),e.nodes=e,e.links=nn,e}function Qr(t,e){for(var r=[t];null!=(t=r.pop());)if(e(t),(i=t.children)&amp;&amp;(n=i.length))for(var n,i;--n&gt;=0;)r.push(i[n])}function $r(t,e){for(var r=[t],n=[];null!=(t=r.pop());)if(n.push(t),(a=t.children)&amp;&amp;(i=a.length))for(var i,a,o=-1;++o&lt;i;)r.push(a[o]);for(;null!=(t=n.pop());)e(t)}function tn(t){return t.children}function en(t){return t.value}function rn(t,e){return e.value-t.value}function nn(e){return t.merge(e.map((function(t){return(t.children||[]).map((function(e){return{source:t,target:e}}))})))}t.layout.hierarchy=function(){var t=rn,e=tn,r=en;function n(i){var a,o=[i],s=[];for(i.depth=0;null!=(a=o.pop());)if(s.push(a),(c=e.call(n,a,a.depth))&amp;&amp;(l=c.length)){for(var l,c,u;--l&gt;=0;)o.push(u=c[l]),u.parent=a,u.depth=a.depth+1;r&amp;&amp;(a.value=0),a.children=c}else r&amp;&amp;(a.value=+r.call(n,a,a.depth)||0),delete a.children;return $r(i,(function(e){var n,i;t&amp;&amp;(n=e.children)&amp;&amp;n.sort(t),r&amp;&amp;(i=e.parent)&amp;&amp;(i.value+=e.value)})),s}return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&amp;&amp;(Qr(t,(function(t){t.children&amp;&amp;(t.value=0)})),$r(t,(function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&amp;&amp;(e.value+=t.value)}))),t},n},t.layout.partition=function(){var e=t.layout.hierarchy(),r=[1,1];function n(t,n){var i=e.call(this,t,n);return function t(e,r,n,i){var a=e.children;if(e.x=r,e.y=e.depth*i,e.dx=n,e.dy=i,a&amp;&amp;(o=a.length)){var o,s,l,c=-1;for(n=e.value?n/e.value:0;++c&lt;o;)t(s=a[c],r,l=s.value*n,i),r+=l}}(i[0],0,r[0],r[1]/function t(e){var r=e.children,n=0;if(r&amp;&amp;(i=r.length))for(var i,a=-1;++a&lt;i;)n=Math.max(n,t(r[a]));return 1+n}(i[0])),i}return n.size=function(t){return arguments.length?(r=t,n):r},Kr(n,e)},t.layout.pie=function(){var e=Number,r=an,n=0,i=Mt,a=0;function o(s){var l,c=s.length,u=s.map((function(t,r){return+e.call(o,t,r)})),f=+(&quot;function&quot;==typeof n?n.apply(this,arguments):n),h=(&quot;function&quot;==typeof i?i.apply(this,arguments):i)-f,p=Math.min(Math.abs(h)/c,+(&quot;function&quot;==typeof a?a.apply(this,arguments):a)),d=p*(h&lt;0?-1:1),m=t.sum(u),g=m?(h-c*d)/m:0,v=t.range(c),y=[];return null!=r&amp;&amp;v.sort(r===an?function(t,e){return u[e]-u[t]}:function(t,e){return r(s[t],s[e])}),v.forEach((function(t){y[t]={data:s[t],value:l=u[t],startAngle:f,endAngle:f+=l*g+d,padAngle:p}})),y}return o.value=function(t){return arguments.length?(e=t,o):e},o.sort=function(t){return arguments.length?(r=t,o):r},o.startAngle=function(t){return arguments.length?(n=t,o):n},o.endAngle=function(t){return arguments.length?(i=t,o):i},o.padAngle=function(t){return arguments.length?(a=t,o):a},o};var an={};function on(t){return t.x}function sn(t){return t.y}function ln(t,e,r){t.y0=e,t.y=r}t.layout.stack=function(){var e=C,r=fn,n=hn,i=ln,a=on,o=sn;function s(l,c){if(!(p=l.length))return l;var u=l.map((function(t,r){return e.call(s,t,r)})),f=u.map((function(t){return t.map((function(t,e){return[a.call(s,t,e),o.call(s,t,e)]}))})),h=r.call(s,f,c);u=t.permute(u,h),f=t.permute(f,h);var p,d,m,g,v=n.call(s,f,c),y=u[0].length;for(m=0;m&lt;y;++m)for(i.call(s,u[0][m],g=v[m],f[0][m][1]),d=1;d&lt;p;++d)i.call(s,u[d][m],g+=f[d-1][m][1],f[d][m][1]);return l}return s.values=function(t){return arguments.length?(e=t,s):e},s.order=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:cn.get(t)||fn,s):r},s.offset=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:un.get(t)||hn,s):n},s.x=function(t){return arguments.length?(a=t,s):a},s.y=function(t){return arguments.length?(o=t,s):o},s.out=function(t){return arguments.length?(i=t,s):i},s};var cn=t.map({&quot;inside-out&quot;:function(e){var r,n,i=e.length,a=e.map(pn),o=e.map(dn),s=t.range(i).sort((function(t,e){return a[t]-a[e]})),l=0,c=0,u=[],f=[];for(r=0;r&lt;i;++r)n=s[r],l&lt;c?(l+=o[n],u.push(n)):(c+=o[n],f.push(n));return f.reverse().concat(u)},reverse:function(e){return t.range(e.length).reverse()},default:fn}),un=t.map({silhouette:function(t){var e,r,n,i=t.length,a=t[0].length,o=[],s=0,l=[];for(r=0;r&lt;a;++r){for(e=0,n=0;e&lt;i;e++)n+=t[e][r][1];n&gt;s&amp;&amp;(s=n),o.push(n)}for(r=0;r&lt;a;++r)l[r]=(s-o[r])/2;return l},wiggle:function(t){var e,r,n,i,a,o,s,l,c,u=t.length,f=t[0],h=f.length,p=[];for(p[0]=l=c=0,r=1;r&lt;h;++r){for(e=0,i=0;e&lt;u;++e)i+=t[e][r][1];for(e=0,a=0,s=f[r][0]-f[r-1][0];e&lt;u;++e){for(n=0,o=(t[e][r][1]-t[e][r-1][1])/(2*s);n&lt;e;++n)o+=(t[n][r][1]-t[n][r-1][1])/s;a+=o*t[e][r][1]}p[r]=l-=i?a/i*s:0,l&lt;c&amp;&amp;(c=l)}for(r=0;r&lt;h;++r)p[r]-=c;return p},expand:function(t){var e,r,n,i=t.length,a=t[0].length,o=1/i,s=[];for(r=0;r&lt;a;++r){for(e=0,n=0;e&lt;i;e++)n+=t[e][r][1];if(n)for(e=0;e&lt;i;e++)t[e][r][1]/=n;else for(e=0;e&lt;i;e++)t[e][r][1]=o}for(r=0;r&lt;a;++r)s[r]=0;return s},zero:hn});function fn(e){return t.range(e.length)}function hn(t){for(var e=-1,r=t[0].length,n=[];++e&lt;r;)n[e]=0;return n}function pn(t){for(var e,r=1,n=0,i=t[0][1],a=t.length;r&lt;a;++r)(e=t[r][1])&gt;i&amp;&amp;(n=r,i=e);return n}function dn(t){return t.reduce(mn,0)}function mn(t,e){return t+e[1]}function gn(t,e){return vn(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function vn(t,e){for(var r=-1,n=+t[0],i=(t[1]-n)/e,a=[];++r&lt;=e;)a[r]=i*r+n;return a}function yn(e){return[t.min(e),t.max(e)]}function xn(t,e){return t.value-e.value}function bn(t,e){var r=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=r,r._pack_prev=e}function _n(t,e){t._pack_next=e,e._pack_prev=t}function wn(t,e){var r=e.x-t.x,n=e.y-t.y,i=t.r+e.r;return.999*i*i&gt;r*r+n*n}function Tn(t){if((e=t.children)&amp;&amp;(l=e.length)){var e,r,n,i,a,o,s,l,c=1/0,u=-1/0,f=1/0,h=-1/0;if(e.forEach(kn),(r=e[0]).x=-r.r,r.y=0,x(r),l&gt;1&amp;&amp;((n=e[1]).x=n.r,n.y=0,x(n),l&gt;2))for(Mn(r,n,i=e[2]),x(i),bn(r,i),r._pack_prev=i,bn(i,n),n=r._pack_next,a=3;a&lt;l;a++){Mn(r,n,i=e[a]);var p=0,d=1,m=1;for(o=n._pack_next;o!==n;o=o._pack_next,d++)if(wn(o,i)){p=1;break}if(1==p)for(s=r._pack_prev;s!==o._pack_prev&amp;&amp;!wn(s,i);s=s._pack_prev,m++);p?(d&lt;m||d==m&amp;&amp;n.r&lt;r.r?_n(r,n=o):_n(r=s,n),a--):(bn(r,i),n=i,x(i))}var g=(c+u)/2,v=(f+h)/2,y=0;for(a=0;a&lt;l;a++)(i=e[a]).x-=g,i.y-=v,y=Math.max(y,i.r+Math.sqrt(i.x*i.x+i.y*i.y));t.r=y,e.forEach(An)}function x(t){c=Math.min(t.x-t.r,c),u=Math.max(t.x+t.r,u),f=Math.min(t.y-t.r,f),h=Math.max(t.y+t.r,h)}}function kn(t){t._pack_next=t._pack_prev=t}function An(t){delete t._pack_next,delete t._pack_prev}function Mn(t,e,r){var n=t.r+r.r,i=e.x-t.x,a=e.y-t.y;if(n&amp;&amp;(i||a)){var o=e.r+r.r,s=i*i+a*a,l=.5+((n*=n)-(o*=o))/(2*s),c=Math.sqrt(Math.max(0,2*o*(n+s)-(n-=s)*n-o*o))/(2*s);r.x=t.x+l*i+c*a,r.y=t.y+l*a-c*i}else r.x=t.x+n,r.y=t.y}function Sn(t,e){return t.parent==e.parent?1:2}function En(t){var e=t.children;return e.length?e[0]:t.t}function Ln(t){var e,r=t.children;return(e=r.length)?r[e-1]:t.t}function Cn(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function Pn(t,e,r){return t.a.parent===e.parent?t.a:r}function In(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function On(t,e){var r=t.x+e[3],n=t.y+e[0],i=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return i&lt;0&amp;&amp;(r+=i/2,i=0),a&lt;0&amp;&amp;(n+=a/2,a=0),{x:r,y:n,dx:i,dy:a}}function zn(t){var e=t[0],r=t[t.length-1];return e&lt;r?[e,r]:[r,e]}function Dn(t){return t.rangeExtent?t.rangeExtent():zn(t.range())}function Rn(t,e,r,n){var i=r(t[0],t[1]),a=n(e[0],e[1]);return function(t){return a(i(t))}}function Fn(t,e){var r,n=0,i=t.length-1,a=t[n],o=t[i];return o&lt;a&amp;&amp;(r=n,n=i,i=r,r=a,a=o,o=r),t[n]=e.floor(a),t[i]=e.ceil(o),t}function Bn(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:Nn}t.layout.histogram=function(){var e=!0,r=Number,n=yn,i=gn;function a(a,o){for(var s,l,c=[],u=a.map(r,this),f=n.call(this,u,o),h=i.call(this,f,u,o),p=(o=-1,u.length),d=h.length-1,m=e?1:1/p;++o&lt;d;)(s=c[o]=[]).dx=h[o+1]-(s.x=h[o]),s.y=0;if(d&gt;0)for(o=-1;++o&lt;p;)(l=u[o])&gt;=f[0]&amp;&amp;l&lt;=f[1]&amp;&amp;((s=c[t.bisect(h,l,1,d)-1]).y+=m,s.push(a[o]));return c}return a.value=function(t){return arguments.length?(r=t,a):r},a.range=function(t){return arguments.length?(n=ce(t),a):n},a.bins=function(t){return arguments.length?(i=&quot;number&quot;==typeof t?function(e){return vn(e,t)}:ce(t),a):i},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},t.layout.pack=function(){var e,r=t.layout.hierarchy().sort(xn),n=0,i=[1,1];function a(t,a){var o=r.call(this,t,a),s=o[0],l=i[0],c=i[1],u=null==e?Math.sqrt:&quot;function&quot;==typeof e?e:function(){return e};if(s.x=s.y=0,$r(s,(function(t){t.r=+u(t.value)})),$r(s,Tn),n){var f=n*(e?1:Math.max(2*s.r/l,2*s.r/c))/2;$r(s,(function(t){t.r+=f})),$r(s,Tn),$r(s,(function(t){t.r-=f}))}return function t(e,r,n,i){var a=e.children;if(e.x=r+=i*e.x,e.y=n+=i*e.y,e.r*=i,a)for(var o=-1,s=a.length;++o&lt;s;)t(a[o],r,n,i)}(s,l/2,c/2,e?1:1/Math.max(2*s.r/l,2*s.r/c)),o}return a.size=function(t){return arguments.length?(i=t,a):i},a.radius=function(t){return arguments.length?(e=null==t||&quot;function&quot;==typeof t?t:+t,a):e},a.padding=function(t){return arguments.length?(n=+t,a):n},Kr(a,r)},t.layout.tree=function(){var e=t.layout.hierarchy().sort(null).value(null),r=Sn,n=[1,1],i=null;function a(t,a){var c=e.call(this,t,a),u=c[0],f=function(t){var e,r={A:null,children:[t]},n=[r];for(;null!=(e=n.pop());)for(var i,a=e.children,o=0,s=a.length;o&lt;s;++o)n.push((a[o]=i={_:a[o],parent:e,children:(i=a[o].children)&amp;&amp;i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return r.children[0]}(u);if($r(f,o),f.parent.m=-f.z,Qr(f,s),i)Qr(u,l);else{var h=u,p=u,d=u;Qr(u,(function(t){t.x&lt;h.x&amp;&amp;(h=t),t.x&gt;p.x&amp;&amp;(p=t),t.depth&gt;d.depth&amp;&amp;(d=t)}));var m=r(h,p)/2-h.x,g=n[0]/(p.x+r(p,h)/2+m),v=n[1]/(d.depth||1);Qr(u,(function(t){t.x=(t.x+m)*g,t.y=t.depth*v}))}return c}function o(t){var e=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(e.length){!function(t){var e,r=0,n=0,i=t.children,a=i.length;for(;--a&gt;=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(t);var a=(e[0].z+e[e.length-1].z)/2;i?(t.z=i.z+r(t._,i._),t.m=t.z-a):t.z=a}else i&amp;&amp;(t.z=i.z+r(t._,i._));t.parent.A=function(t,e,n){if(e){for(var i,a=t,o=t,s=e,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=Ln(s),a=En(a),s&amp;&amp;a;)l=En(l),(o=Ln(o)).a=t,(i=s.z+f-a.z-c+r(s._,a._))&gt;0&amp;&amp;(Cn(Pn(s,t,n),t,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&amp;&amp;!Ln(o)&amp;&amp;(o.t=s,o.m+=f-u),a&amp;&amp;!En(l)&amp;&amp;(l.t=a,l.m+=c-h,n=t)}return n}(t,i,t.parent.A||n[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function l(t){t.x*=n[0],t.y=t.depth*n[1]}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t)?l:null,a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null==(n=t)?null:l,a):i?n:null},Kr(a,e)},t.layout.cluster=function(){var e=t.layout.hierarchy().sort(null).value(null),r=Sn,n=[1,1],i=!1;function a(a,o){var s,l=e.call(this,a,o),c=l[0],u=0;$r(c,(function(e){var n=e.children;n&amp;&amp;n.length?(e.x=function(t){return t.reduce((function(t,e){return t+e.x}),0)/t.length}(n),e.y=function(e){return 1+t.max(e,(function(t){return t.y}))}(n)):(e.x=s?u+=r(e,s):0,e.y=0,s=e)}));var f=function t(e){var r=e.children;return r&amp;&amp;r.length?t(r[0]):e}(c),h=function t(e){var r,n=e.children;return n&amp;&amp;(r=n.length)?t(n[r-1]):e}(c),p=f.x-r(f,h)/2,d=h.x+r(h,f)/2;return $r(c,i?function(t){t.x=(t.x-c.x)*n[0],t.y=(c.y-t.y)*n[1]}:function(t){t.x=(t.x-p)/(d-p)*n[0],t.y=(1-(c.y?t.y/c.y:1))*n[1]}),l}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t),a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null!=(n=t),a):i?n:null},Kr(a,e)},t.layout.treemap=function(){var e,r=t.layout.hierarchy(),n=Math.round,i=[1,1],a=null,o=In,s=!1,l=&quot;squarify&quot;,c=.5*(1+Math.sqrt(5));function u(t,e){for(var r,n,i=-1,a=t.length;++i&lt;a;)n=(r=t[i]).value*(e&lt;0?0:e),r.area=isNaN(n)||n&lt;=0?0:n}function f(t){var e=t.children;if(e&amp;&amp;e.length){var r,n,i,a=o(t),s=[],c=e.slice(),h=1/0,m=&quot;slice&quot;===l?a.dx:&quot;dice&quot;===l?a.dy:&quot;slice-dice&quot;===l?1&amp;t.depth?a.dy:a.dx:Math.min(a.dx,a.dy);for(u(c,a.dx*a.dy/t.value),s.area=0;(i=c.length)&gt;0;)s.push(r=c[i-1]),s.area+=r.area,&quot;squarify&quot;!==l||(n=p(s,m))&lt;=h?(c.pop(),h=n):(s.area-=s.pop().area,d(s,m,a,!1),m=Math.min(a.dx,a.dy),s.length=s.area=0,h=1/0);s.length&amp;&amp;(d(s,m,a,!0),s.length=s.area=0),e.forEach(f)}}function h(t){var e=t.children;if(e&amp;&amp;e.length){var r,n=o(t),i=e.slice(),a=[];for(u(i,n.dx*n.dy/t.value),a.area=0;r=i.pop();)a.push(r),a.area+=r.area,null!=r.z&amp;&amp;(d(a,r.z?n.dx:n.dy,n,!i.length),a.length=a.area=0);e.forEach(h)}}function p(t,e){for(var r,n=t.area,i=0,a=1/0,o=-1,s=t.length;++o&lt;s;)(r=t[o].area)&amp;&amp;(r&lt;a&amp;&amp;(a=r),r&gt;i&amp;&amp;(i=r));return e*=e,(n*=n)?Math.max(e*i*c/n,n/(e*a*c)):1/0}function d(t,e,r,i){var a,o=-1,s=t.length,l=r.x,c=r.y,u=e?n(t.area/e):0;if(e==r.dx){for((i||u&gt;r.dy)&amp;&amp;(u=r.dy);++o&lt;s;)(a=t[o]).x=l,a.y=c,a.dy=u,l+=a.dx=Math.min(r.x+r.dx-l,u?n(a.area/u):0);a.z=!0,a.dx+=r.x+r.dx-l,r.y+=u,r.dy-=u}else{for((i||u&gt;r.dx)&amp;&amp;(u=r.dx);++o&lt;s;)(a=t[o]).x=l,a.y=c,a.dx=u,c+=a.dy=Math.min(r.y+r.dy-c,u?n(a.area/u):0);a.z=!1,a.dy+=r.y+r.dy-c,r.x+=u,r.dx-=u}}function m(t){var n=e||r(t),a=n[0];return a.x=a.y=0,a.value?(a.dx=i[0],a.dy=i[1]):a.dx=a.dy=0,e&amp;&amp;r.revalue(a),u([a],a.dx*a.dy/a.value),(e?h:f)(a),s&amp;&amp;(e=n),n}return m.size=function(t){return arguments.length?(i=t,m):i},m.padding=function(t){if(!arguments.length)return a;function e(e){var r=t.call(m,e,e.depth);return null==r?In(e):On(e,&quot;number&quot;==typeof r?[r,r,r,r]:r)}function r(e){return On(e,t)}var n;return o=null==(a=t)?In:&quot;function&quot;==(n=typeof t)?e:&quot;number&quot;===n?(t=[t,t,t,t],r):r,m},m.round=function(t){return arguments.length?(n=t?Math.round:Number,m):n!=Number},m.sticky=function(t){return arguments.length?(s=t,e=null,m):s},m.ratio=function(t){return arguments.length?(c=t,m):c},m.mode=function(t){return arguments.length?(l=t+&quot;&quot;,m):l},Kr(m,r)},t.random={normal:function(t,e){var r=arguments.length;return r&lt;2&amp;&amp;(e=1),r&lt;1&amp;&amp;(t=0),function(){var r,n,i;do{i=(r=2*Math.random()-1)*r+(n=2*Math.random()-1)*n}while(!i||i&gt;1);return t+e*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=t.random.normal.apply(t,arguments);return function(){return Math.exp(e())}},bates:function(e){var r=t.random.irwinHall(e);return function(){return r()/e}},irwinHall:function(t){return function(){for(var e=0,r=0;r&lt;t;r++)e+=Math.random();return e}}},t.scale={};var Nn={floor:C,ceil:C};function jn(e,r,n,i){var a=[],o=[],s=0,l=Math.min(e.length,r.length)-1;for(e[l]&lt;e[0]&amp;&amp;(e=e.slice().reverse(),r=r.slice().reverse());++s&lt;=l;)a.push(n(e[s-1],e[s])),o.push(i(r[s-1],r[s]));return function(r){var n=t.bisect(e,r,1,l)-1;return o[n](a[n](r))}}function Un(e,r){return t.rebind(e,r,&quot;range&quot;,&quot;rangeRound&quot;,&quot;interpolate&quot;,&quot;clamp&quot;)}function Vn(t,e){return Fn(t,Bn(Hn(t,e)[2])),Fn(t,Bn(Hn(t,e)[2])),t}function Hn(t,e){null==e&amp;&amp;(e=10);var r=zn(t),n=r[1]-r[0],i=Math.pow(10,Math.floor(Math.log(n/e)/Math.LN10)),a=e/n*i;return a&lt;=.15?i*=10:a&lt;=.35?i*=5:a&lt;=.75&amp;&amp;(i*=2),r[0]=Math.ceil(r[0]/i)*i,r[1]=Math.floor(r[1]/i)*i+.5*i,r[2]=i,r}function qn(e,r){return t.range.apply(t,Hn(e,r))}t.scale.linear=function(){return function t(e,r,n,i){var a,o;function s(){var t=Math.min(e.length,r.length)&gt;2?jn:Rn,s=i?Ur:jr;return a=t(e,r,s,n),o=t(r,e,s,yr),l}function l(t){return a(t)}return l.invert=function(t){return o(t)},l.domain=function(t){return arguments.length?(e=t.map(Number),s()):e},l.range=function(t){return arguments.length?(r=t,s()):r},l.rangeRound=function(t){return l.range(t).interpolate(Or)},l.clamp=function(t){return arguments.length?(i=t,s()):i},l.interpolate=function(t){return arguments.length?(n=t,s()):n},l.ticks=function(t){return qn(e,t)},l.tickFormat=function(t,r){return d3_scale_linearTickFormat(e,t,r)},l.nice=function(t){return Vn(e,t),s()},l.copy=function(){return t(e,r,n,i)},s()}([0,1],[0,1],yr,!1)};t.scale.log=function(){return function t(e,r,n,i){function a(t){return(n?Math.log(t&lt;0?0:t):-Math.log(t&gt;0?0:-t))/Math.log(r)}function o(t){return n?Math.pow(r,t):-Math.pow(r,-t)}function s(t){return e(a(t))}return s.invert=function(t){return o(e.invert(t))},s.domain=function(t){return arguments.length?(n=t[0]&gt;=0,e.domain((i=t.map(Number)).map(a)),s):i},s.base=function(t){return arguments.length?(r=+t,e.domain(i.map(a)),s):r},s.nice=function(){var t=Fn(i.map(a),n?Math:Gn);return e.domain(t),i=t.map(o),s},s.ticks=function(){var t=zn(i),e=[],s=t[0],l=t[1],c=Math.floor(a(s)),u=Math.ceil(a(l)),f=r%1?2:r;if(isFinite(u-c)){if(n){for(;c&lt;u;c++)for(var h=1;h&lt;f;h++)e.push(o(c)*h);e.push(o(c))}else for(e.push(o(c));c++&lt;u;)for(h=f-1;h&gt;0;h--)e.push(o(c)*h);for(c=0;e[c]&lt;s;c++);for(u=e.length;e[u-1]&gt;l;u--);e=e.slice(c,u)}return e},s.copy=function(){return t(e.copy(),r,n,i)},Un(s,e)}(t.scale.linear().domain([0,1]),10,!0,[1,10])};var Gn={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function Yn(t){return function(e){return e&lt;0?-Math.pow(-e,t):Math.pow(e,t)}}t.scale.pow=function(){return function t(e,r,n){var i=Yn(r),a=Yn(1/r);function o(t){return e(i(t))}return o.invert=function(t){return a(e.invert(t))},o.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(i)),o):n},o.ticks=function(t){return qn(n,t)},o.tickFormat=function(t,e){return d3_scale_linearTickFormat(n,t,e)},o.nice=function(t){return o.domain(Vn(n,t))},o.exponent=function(t){return arguments.length?(i=Yn(r=t),a=Yn(1/r),e.domain(n.map(i)),o):r},o.copy=function(){return t(e.copy(),r,n)},Un(o,e)}(t.scale.linear(),1,[0,1])},t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return function e(r,n){var i,a,o;function s(t){return a[((i.get(t)||(&quot;range&quot;===n.t?i.set(t,r.push(t)):NaN))-1)%a.length]}function l(e,n){return t.range(r.length).map((function(t){return e+n*t}))}return s.domain=function(t){if(!arguments.length)return r;r=[],i=new _;for(var e,a=-1,o=t.length;++a&lt;o;)i.has(e=t[a])||i.set(e,r.push(e));return s[n.t].apply(s,n.a)},s.range=function(t){return arguments.length?(a=t,o=0,n={t:&quot;range&quot;,a:arguments},s):a},s.rangePoints=function(t,e){arguments.length&lt;2&amp;&amp;(e=0);var i=t[0],c=t[1],u=r.length&lt;2?(i=(i+c)/2,0):(c-i)/(r.length-1+e);return a=l(i+u*e/2,u),o=0,n={t:&quot;rangePoints&quot;,a:arguments},s},s.rangeRoundPoints=function(t,e){arguments.length&lt;2&amp;&amp;(e=0);var i=t[0],c=t[1],u=r.length&lt;2?(i=c=Math.round((i+c)/2),0):(c-i)/(r.length-1+e)|0;return a=l(i+Math.round(u*e/2+(c-i-(r.length-1+e)*u)/2),u),o=0,n={t:&quot;rangeRoundPoints&quot;,a:arguments},s},s.rangeBands=function(t,e,i){arguments.length&lt;2&amp;&amp;(e=0),arguments.length&lt;3&amp;&amp;(i=e);var c=t[1]&lt;t[0],u=t[c-0],f=t[1-c],h=(f-u)/(r.length-e+2*i);return a=l(u+h*i,h),c&amp;&amp;a.reverse(),o=h*(1-e),n={t:&quot;rangeBands&quot;,a:arguments},s},s.rangeRoundBands=function(t,e,i){arguments.length&lt;2&amp;&amp;(e=0),arguments.length&lt;3&amp;&amp;(i=e);var c=t[1]&lt;t[0],u=t[c-0],f=t[1-c],h=Math.floor((f-u)/(r.length-e+2*i));return a=l(u+Math.round((f-u-(r.length-e)*h)/2),h),c&amp;&amp;a.reverse(),o=Math.round(h*(1-e)),n={t:&quot;rangeRoundBands&quot;,a:arguments},s},s.rangeBand=function(){return o},s.rangeExtent=function(){return zn(n.a[0])},s.copy=function(){return e(r,n)},s.domain(r)}([],{t:&quot;range&quot;,a:[[]]})},t.scale.category10=function(){return t.scale.ordinal().range(Wn)},t.scale.category20=function(){return t.scale.ordinal().range(Xn)},t.scale.category20b=function(){return t.scale.ordinal().range(Zn)},t.scale.category20c=function(){return t.scale.ordinal().range(Jn)};var Wn=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(te),Xn=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(te),Zn=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(te),Jn=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(te);function Kn(){return 0}t.scale.quantile=function(){return function e(r,n){var i;function a(){var e=0,a=n.length;for(i=[];++e&lt;a;)i[e-1]=t.quantile(r,e/a);return o}function o(e){if(!isNaN(e=+e))return n[t.bisect(i,e)]}return o.domain=function(t){return arguments.length?(r=t.map(p).filter(d).sort(h),a()):r},o.range=function(t){return arguments.length?(n=t,a()):n},o.quantiles=function(){return i},o.invertExtent=function(t){return(t=n.indexOf(t))&lt;0?[NaN,NaN]:[t&gt;0?i[t-1]:r[0],t&lt;i.length?i[t]:r[r.length-1]]},o.copy=function(){return e(r,n)},a()}([],[])},t.scale.quantize=function(){return function t(e,r,n){var i,a;function o(t){return n[Math.max(0,Math.min(a,Math.floor(i*(t-e))))]}function s(){return i=n.length/(r-e),a=n.length-1,o}return o.domain=function(t){return arguments.length?(e=+t[0],r=+t[t.length-1],s()):[e,r]},o.range=function(t){return arguments.length?(n=t,s()):n},o.invertExtent=function(t){return[t=(t=n.indexOf(t))&lt;0?NaN:t/i+e,t+1/i]},o.copy=function(){return t(e,r,n)},s()}(0,1,[0,1])},t.scale.threshold=function(){return function e(r,n){function i(e){if(e&lt;=e)return n[t.bisect(r,e)]}return i.domain=function(t){return arguments.length?(r=t,i):r},i.range=function(t){return arguments.length?(n=t,i):n},i.invertExtent=function(t){return t=n.indexOf(t),[r[t-1],r[t]]},i.copy=function(){return e(r,n)},i}([.5],[0,1])},t.scale.identity=function(){return function t(e){function r(t){return+t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=t.map(r),r):e},r.ticks=function(t){return qn(e,t)},r.tickFormat=function(t,r){return d3_scale_linearTickFormat(e,t,r)},r.copy=function(){return t(e)},r}([0,1])},t.svg={},t.svg.arc=function(){var t=$n,e=ti,r=Kn,n=Qn,i=ei,a=ri,o=ni;function s(){var s=Math.max(0,+t.apply(this,arguments)),c=Math.max(0,+e.apply(this,arguments)),u=i.apply(this,arguments)-Et,f=a.apply(this,arguments)-Et,h=Math.abs(f-u),p=u&gt;f?0:1;if(c&lt;s&amp;&amp;(d=c,c=s,s=d),h&gt;=St)return l(c,p)+(s?l(s,1-p):&quot;&quot;)+&quot;Z&quot;;var d,m,g,v,y,x,b,_,w,T,k,A,M=0,S=0,E=[];if((v=(+o.apply(this,arguments)||0)/2)&amp;&amp;(g=n===Qn?Math.sqrt(s*s+c*c):+n.apply(this,arguments),p||(S*=-1),c&amp;&amp;(S=Pt(g/c*Math.sin(v))),s&amp;&amp;(M=Pt(g/s*Math.sin(v)))),c){y=c*Math.cos(u+S),x=c*Math.sin(u+S),b=c*Math.cos(f-S),_=c*Math.sin(f-S);var L=Math.abs(f-u-2*S)&lt;=At?0:1;if(S&amp;&amp;ii(y,x,b,_)===p^L){var C=(u+f)/2;y=c*Math.cos(C),x=c*Math.sin(C),b=_=null}}else y=x=0;if(s){w=s*Math.cos(f-M),T=s*Math.sin(f-M),k=s*Math.cos(u+M),A=s*Math.sin(u+M);var P=Math.abs(u-f+2*M)&lt;=At?0:1;if(M&amp;&amp;ii(w,T,k,A)===1-p^P){var I=(u+f)/2;w=s*Math.cos(I),T=s*Math.sin(I),k=A=null}}else w=T=0;if(h&gt;kt&amp;&amp;(d=Math.min(Math.abs(c-s)/2,+r.apply(this,arguments)))&gt;.001){m=s&lt;c^p?0:1;var O=d,z=d;if(h&lt;At){var D=null==k?[w,T]:null==b?[y,x]:Se([y,x],[k,A],[b,_],[w,T]),R=y-D[0],F=x-D[1],B=b-D[0],N=_-D[1],j=1/Math.sin(Math.acos((R*B+F*N)/(Math.sqrt(R*R+F*F)*Math.sqrt(B*B+N*N)))/2),U=Math.sqrt(D[0]*D[0]+D[1]*D[1]);z=Math.min(d,(s-U)/(j-1)),O=Math.min(d,(c-U)/(j+1))}if(null!=b){var V=ai(null==k?[w,T]:[k,A],[y,x],c,O,p),H=ai([b,_],[w,T],c,O,p);d===O?E.push(&quot;M&quot;,V[0],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,m,&quot; &quot;,V[1],&quot;A&quot;,c,&quot;,&quot;,c,&quot; 0 &quot;,1-p^ii(V[1][0],V[1][1],H[1][0],H[1][1]),&quot;,&quot;,p,&quot; &quot;,H[1],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,m,&quot; &quot;,H[0]):E.push(&quot;M&quot;,V[0],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 1,&quot;,m,&quot; &quot;,H[0])}else E.push(&quot;M&quot;,y,&quot;,&quot;,x);if(null!=k){var q=ai([y,x],[k,A],s,-z,p),G=ai([w,T],null==b?[y,x]:[b,_],s,-z,p);d===z?E.push(&quot;L&quot;,G[0],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,m,&quot; &quot;,G[1],&quot;A&quot;,s,&quot;,&quot;,s,&quot; 0 &quot;,p^ii(G[1][0],G[1][1],q[1][0],q[1][1]),&quot;,&quot;,1-p,&quot; &quot;,q[1],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,m,&quot; &quot;,q[0]):E.push(&quot;L&quot;,G[0],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,m,&quot; &quot;,q[0])}else E.push(&quot;L&quot;,w,&quot;,&quot;,T)}else E.push(&quot;M&quot;,y,&quot;,&quot;,x),null!=b&amp;&amp;E.push(&quot;A&quot;,c,&quot;,&quot;,c,&quot; 0 &quot;,L,&quot;,&quot;,p,&quot; &quot;,b,&quot;,&quot;,_),E.push(&quot;L&quot;,w,&quot;,&quot;,T),null!=k&amp;&amp;E.push(&quot;A&quot;,s,&quot;,&quot;,s,&quot; 0 &quot;,P,&quot;,&quot;,1-p,&quot; &quot;,k,&quot;,&quot;,A);return E.push(&quot;Z&quot;),E.join(&quot;&quot;)}function l(t,e){return&quot;M0,&quot;+t+&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 1,&quot;+e+&quot; 0,&quot;+-t+&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 1,&quot;+e+&quot; 0,&quot;+t}return s.innerRadius=function(e){return arguments.length?(t=ce(e),s):t},s.outerRadius=function(t){return arguments.length?(e=ce(t),s):e},s.cornerRadius=function(t){return arguments.length?(r=ce(t),s):r},s.padRadius=function(t){return arguments.length?(n=t==Qn?Qn:ce(t),s):n},s.startAngle=function(t){return arguments.length?(i=ce(t),s):i},s.endAngle=function(t){return arguments.length?(a=ce(t),s):a},s.padAngle=function(t){return arguments.length?(o=ce(t),s):o},s.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Et;return[Math.cos(n)*r,Math.sin(n)*r]},s};var Qn=&quot;auto&quot;;function $n(t){return t.innerRadius}function ti(t){return t.outerRadius}function ei(t){return t.startAngle}function ri(t){return t.endAngle}function ni(t){return t&amp;&amp;t.padAngle}function ii(t,e,r,n){return(t-r)*e-(e-n)*t&gt;0?0:1}function ai(t,e,r,n,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?n:-n)/Math.sqrt(a*a+o*o),l=s*o,c=-s*a,u=t[0]+l,f=t[1]+c,h=e[0]+l,p=e[1]+c,d=(u+h)/2,m=(f+p)/2,g=h-u,v=p-f,y=g*g+v*v,x=r-n,b=u*p-h*f,_=(v&lt;0?-1:1)*Math.sqrt(Math.max(0,x*x*y-b*b)),w=(b*v-g*_)/y,T=(-b*g-v*_)/y,k=(b*v+g*_)/y,A=(-b*g+v*_)/y,M=w-d,S=T-m,E=k-d,L=A-m;return M*M+S*S&gt;E*E+L*L&amp;&amp;(w=k,T=A),[[w-l,T-c],[w*r/x,T*r/x]]}function oi(){return!0}function si(t){var e=_e,r=we,n=oi,i=ci,a=i.key,o=.7;function s(a){var s,l=[],c=[],u=-1,f=a.length,h=ce(e),p=ce(r);function d(){l.push(&quot;M&quot;,i(t(c),o))}for(;++u&lt;f;)n.call(this,s=a[u],u)?c.push([+h.call(this,s,u),+p.call(this,s,u)]):c.length&amp;&amp;(d(),c=[]);return c.length&amp;&amp;d(),l.length?l.join(&quot;&quot;):null}return s.x=function(t){return arguments.length?(e=t,s):e},s.y=function(t){return arguments.length?(r=t,s):r},s.defined=function(t){return arguments.length?(n=t,s):n},s.interpolate=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?i=t:(i=li.get(t)||ci).key,s):a},s.tension=function(t){return arguments.length?(o=t,s):o},s}t.svg.line=function(){return si(C)};var li=t.map({linear:ci,&quot;linear-closed&quot;:ui,step:function(t){var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];for(;++e&lt;r;)i.push(&quot;H&quot;,(n[0]+(n=t[e])[0])/2,&quot;V&quot;,n[1]);r&gt;1&amp;&amp;i.push(&quot;H&quot;,n[0]);return i.join(&quot;&quot;)},&quot;step-before&quot;:fi,&quot;step-after&quot;:hi,basis:mi,&quot;basis-open&quot;:function(t){if(t.length&lt;4)return ci(t);var e,r=[],n=-1,i=t.length,a=[0],o=[0];for(;++n&lt;3;)e=t[n],a.push(e[0]),o.push(e[1]);r.push(gi(xi,a)+&quot;,&quot;+gi(xi,o)),--n;for(;++n&lt;i;)e=t[n],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),bi(r,a,o);return r.join(&quot;&quot;)},&quot;basis-closed&quot;:function(t){var e,r,n=-1,i=t.length,a=i+4,o=[],s=[];for(;++n&lt;4;)r=t[n%i],o.push(r[0]),s.push(r[1]);e=[gi(xi,o),&quot;,&quot;,gi(xi,s)],--n;for(;++n&lt;a;)r=t[n%i],o.shift(),o.push(r[0]),s.shift(),s.push(r[1]),bi(e,o,s);return e.join(&quot;&quot;)},bundle:function(t,e){var r=t.length-1;if(r)for(var n,i,a=t[0][0],o=t[0][1],s=t[r][0]-a,l=t[r][1]-o,c=-1;++c&lt;=r;)n=t[c],i=c/r,n[0]=e*n[0]+(1-e)*(a+i*s),n[1]=e*n[1]+(1-e)*(o+i*l);return mi(t)},cardinal:function(t,e){return t.length&lt;3?ci(t):t[0]+pi(t,di(t,e))},&quot;cardinal-open&quot;:function(t,e){return t.length&lt;4?ci(t):t[1]+pi(t.slice(1,-1),di(t,e))},&quot;cardinal-closed&quot;:function(t,e){return t.length&lt;3?ui(t):t[0]+pi((t.push(t[0]),t),di([t[t.length-2]].concat(t,[t[1]]),e))},monotone:function(t){return t.length&lt;3?ci(t):t[0]+pi(t,function(t){var e,r,n,i,a=[],o=function(t){var e=0,r=t.length-1,n=[],i=t[0],a=t[1],o=n[0]=_i(i,a);for(;++e&lt;r;)n[e]=(o+(o=_i(i=a,a=t[e+1])))/2;return n[e]=o,n}(t),s=-1,l=t.length-1;for(;++s&lt;l;)e=_i(t[s],t[s+1]),y(e)&lt;kt?o[s]=o[s+1]=0:(r=o[s]/e,n=o[s+1]/e,(i=r*r+n*n)&gt;9&amp;&amp;(i=3*e/Math.sqrt(i),o[s]=i*r,o[s+1]=i*n));s=-1;for(;++s&lt;=l;)i=(t[Math.min(l,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}(t))}});function ci(t){return t.length&gt;1?t.join(&quot;L&quot;):t+&quot;Z&quot;}function ui(t){return t.join(&quot;L&quot;)+&quot;Z&quot;}function fi(t){for(var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];++e&lt;r;)i.push(&quot;V&quot;,(n=t[e])[1],&quot;H&quot;,n[0]);return i.join(&quot;&quot;)}function hi(t){for(var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];++e&lt;r;)i.push(&quot;H&quot;,(n=t[e])[0],&quot;V&quot;,n[1]);return i.join(&quot;&quot;)}function pi(t,e){if(e.length&lt;1||t.length!=e.length&amp;&amp;t.length!=e.length+2)return ci(t);var r=t.length!=e.length,n=&quot;&quot;,i=t[0],a=t[1],o=e[0],s=o,l=1;if(r&amp;&amp;(n+=&quot;Q&quot;+(a[0]-2*o[0]/3)+&quot;,&quot;+(a[1]-2*o[1]/3)+&quot;,&quot;+a[0]+&quot;,&quot;+a[1],i=t[1],l=2),e.length&gt;1){s=e[1],a=t[l],l++,n+=&quot;C&quot;+(i[0]+o[0])+&quot;,&quot;+(i[1]+o[1])+&quot;,&quot;+(a[0]-s[0])+&quot;,&quot;+(a[1]-s[1])+&quot;,&quot;+a[0]+&quot;,&quot;+a[1];for(var c=2;c&lt;e.length;c++,l++)a=t[l],s=e[c],n+=&quot;S&quot;+(a[0]-s[0])+&quot;,&quot;+(a[1]-s[1])+&quot;,&quot;+a[0]+&quot;,&quot;+a[1]}if(r){var u=t[l];n+=&quot;Q&quot;+(a[0]+2*s[0]/3)+&quot;,&quot;+(a[1]+2*s[1]/3)+&quot;,&quot;+u[0]+&quot;,&quot;+u[1]}return n}function di(t,e){for(var r,n=[],i=(1-e)/2,a=t[0],o=t[1],s=1,l=t.length;++s&lt;l;)r=a,a=o,o=t[s],n.push([i*(o[0]-r[0]),i*(o[1]-r[1])]);return n}function mi(t){if(t.length&lt;3)return ci(t);var e=1,r=t.length,n=t[0],i=n[0],a=n[1],o=[i,i,i,(n=t[1])[0]],s=[a,a,a,n[1]],l=[i,&quot;,&quot;,a,&quot;L&quot;,gi(xi,o),&quot;,&quot;,gi(xi,s)];for(t.push(t[r-1]);++e&lt;=r;)n=t[e],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),bi(l,o,s);return t.pop(),l.push(&quot;L&quot;,n),l.join(&quot;&quot;)}function gi(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}li.forEach((function(t,e){e.key=t,e.closed=/-closed$/.test(t)}));var vi=[0,2/3,1/3,0],yi=[0,1/3,2/3,0],xi=[0,1/6,2/3,1/6];function bi(t,e,r){t.push(&quot;C&quot;,gi(vi,e),&quot;,&quot;,gi(vi,r),&quot;,&quot;,gi(yi,e),&quot;,&quot;,gi(yi,r),&quot;,&quot;,gi(xi,e),&quot;,&quot;,gi(xi,r))}function _i(t,e){return(e[1]-t[1])/(e[0]-t[0])}function wi(t){for(var e,r,n,i=-1,a=t.length;++i&lt;a;)r=(e=t[i])[0],n=e[1]-Et,e[0]=r*Math.cos(n),e[1]=r*Math.sin(n);return t}function Ti(t){var e=_e,r=_e,n=0,i=we,a=oi,o=ci,s=o.key,l=o,c=&quot;L&quot;,u=.7;function f(s){var f,h,p,d=[],m=[],g=[],v=-1,y=s.length,x=ce(e),b=ce(n),_=e===r?function(){return h}:ce(r),w=n===i?function(){return p}:ce(i);function T(){d.push(&quot;M&quot;,o(t(g),u),c,l(t(m.reverse()),u),&quot;Z&quot;)}for(;++v&lt;y;)a.call(this,f=s[v],v)?(m.push([h=+x.call(this,f,v),p=+b.call(this,f,v)]),g.push([+_.call(this,f,v),+w.call(this,f,v)])):m.length&amp;&amp;(T(),m=[],g=[]);return m.length&amp;&amp;T(),d.length?d.join(&quot;&quot;):null}return f.x=function(t){return arguments.length?(e=r=t,f):r},f.x0=function(t){return arguments.length?(e=t,f):e},f.x1=function(t){return arguments.length?(r=t,f):r},f.y=function(t){return arguments.length?(n=i=t,f):i},f.y0=function(t){return arguments.length?(n=t,f):n},f.y1=function(t){return arguments.length?(i=t,f):i},f.defined=function(t){return arguments.length?(a=t,f):a},f.interpolate=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?o=t:(o=li.get(t)||ci).key,l=o.reverse||o,c=o.closed?&quot;M&quot;:&quot;L&quot;,f):s},f.tension=function(t){return arguments.length?(u=t,f):u},f}function ki(t){return t.source}function Ai(t){return t.target}function Mi(t){return t.radius}function Si(t){return[t.x,t.y]}function Ei(t){return function(){var e=t.apply(this,arguments),r=e[0],n=e[1]-Et;return[r*Math.cos(n),r*Math.sin(n)]}}function Li(){return 64}function Ci(){return&quot;circle&quot;}function Pi(t){var e=Math.sqrt(t/At);return&quot;M0,&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,&quot;+-e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,&quot;+e+&quot;Z&quot;}t.svg.line.radial=function(){var t=si(wi);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},fi.reverse=hi,hi.reverse=fi,t.svg.area=function(){return Ti(C)},t.svg.area.radial=function(){var t=Ti(wi);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},t.svg.chord=function(){var t=ki,e=Ai,r=Mi,n=ei,i=ri;function a(r,n){var i,a,c=o(this,t,r,n),u=o(this,e,r,n);return&quot;M&quot;+c.p0+s(c.r,c.p1,c.a1-c.a0)+(a=u,((i=c).a0==a.a0&amp;&amp;i.a1==a.a1?l(c.r,c.p1,c.r,c.p0):l(c.r,c.p1,u.r,u.p0)+s(u.r,u.p1,u.a1-u.a0)+l(u.r,u.p1,c.r,c.p0))+&quot;Z&quot;)}function o(t,e,a,o){var s=e.call(t,a,o),l=r.call(t,s,o),c=n.call(t,s,o)-Et,u=i.call(t,s,o)-Et;return{r:l,a0:c,a1:u,p0:[l*Math.cos(c),l*Math.sin(c)],p1:[l*Math.cos(u),l*Math.sin(u)]}}function s(t,e,r){return&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 &quot;+ +(r&gt;At)+&quot;,1 &quot;+e}function l(t,e,r,n){return&quot;Q 0,0 &quot;+n}return a.radius=function(t){return arguments.length?(r=ce(t),a):r},a.source=function(e){return arguments.length?(t=ce(e),a):t},a.target=function(t){return arguments.length?(e=ce(t),a):e},a.startAngle=function(t){return arguments.length?(n=ce(t),a):n},a.endAngle=function(t){return arguments.length?(i=ce(t),a):i},a},t.svg.diagonal=function(){var t=ki,e=Ai,r=Si;function n(n,i){var a=t.call(this,n,i),o=e.call(this,n,i),s=(a.y+o.y)/2,l=[a,{x:a.x,y:s},{x:o.x,y:s},o];return&quot;M&quot;+(l=l.map(r))[0]+&quot;C&quot;+l[1]+&quot; &quot;+l[2]+&quot; &quot;+l[3]}return n.source=function(e){return arguments.length?(t=ce(e),n):t},n.target=function(t){return arguments.length?(e=ce(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},t.svg.diagonal.radial=function(){var e=t.svg.diagonal(),r=Si,n=e.projection;return e.projection=function(t){return arguments.length?n(Ei(r=t)):r},e},t.svg.symbol=function(){var t=Ci,e=Li;function r(r,n){return(Ii.get(t.call(this,r,n))||Pi)(e.call(this,r,n))}return r.type=function(e){return arguments.length?(t=ce(e),r):t},r.size=function(t){return arguments.length?(e=ce(t),r):e},r};var Ii=t.map({circle:Pi,cross:function(t){var e=Math.sqrt(t/5)/2;return&quot;M&quot;+-3*e+&quot;,&quot;+-e+&quot;H&quot;+-e+&quot;V&quot;+-3*e+&quot;H&quot;+e+&quot;V&quot;+-e+&quot;H&quot;+3*e+&quot;V&quot;+e+&quot;H&quot;+e+&quot;V&quot;+3*e+&quot;H&quot;+-e+&quot;V&quot;+e+&quot;H&quot;+-3*e+&quot;Z&quot;},diamond:function(t){var e=Math.sqrt(t/(2*zi)),r=e*zi;return&quot;M0,&quot;+-e+&quot;L&quot;+r+&quot;,0 0,&quot;+e+&quot; &quot;+-r+&quot;,0Z&quot;},square:function(t){var e=Math.sqrt(t)/2;return&quot;M&quot;+-e+&quot;,&quot;+-e+&quot;L&quot;+e+&quot;,&quot;+-e+&quot; &quot;+e+&quot;,&quot;+e+&quot; &quot;+-e+&quot;,&quot;+e+&quot;Z&quot;},&quot;triangle-down&quot;:function(t){var e=Math.sqrt(t/Oi),r=e*Oi/2;return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,&quot;+-r+&quot; &quot;+-e+&quot;,&quot;+-r+&quot;Z&quot;},&quot;triangle-up&quot;:function(t){var e=Math.sqrt(t/Oi),r=e*Oi/2;return&quot;M0,&quot;+-r+&quot;L&quot;+e+&quot;,&quot;+r+&quot; &quot;+-e+&quot;,&quot;+r+&quot;Z&quot;}});t.svg.symbolTypes=Ii.keys();var Oi=Math.sqrt(3),zi=Math.tan(30*Lt);Y.transition=function(t){for(var e,r,n=Bi||++Ui,i=qi(t),a=[],o=Ni||{time:Date.now(),ease:Er,delay:0,duration:250},s=-1,l=this.length;++s&lt;l;){a.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u&lt;f;)(r=c[u])&amp;&amp;Gi(r,u,i,n,o),e.push(r)}return Fi(a,i,n)},Y.interrupt=function(t){return this.each(null==t?Di:Ri(qi(t)))};var Di=Ri(qi());function Ri(t){return function(){var e,r,n;(e=this[t])&amp;&amp;(n=e[r=e.active])&amp;&amp;(n.timer.c=null,n.timer.t=NaN,--e.count?delete e[r]:delete this[t],e.active+=.5,n.event&amp;&amp;n.event.interrupt.call(this,this.__data__,n.index))}}function Fi(t,e,r){return U(t,ji),t.namespace=e,t.id=r,t}var Bi,Ni,ji=[],Ui=0;function Vi(t,e,r,n){var i=t.id,a=t.namespace;return ut(t,&quot;function&quot;==typeof r?function(t,o,s){t[a][i].tween.set(e,n(r.call(t,t.__data__,o,s)))}:(r=n(r),function(t){t[a][i].tween.set(e,r)}))}function Hi(t){return null==t&amp;&amp;(t=&quot;&quot;),function(){this.textContent=t}}function qi(t){return null==t?&quot;__transition__&quot;:&quot;__transition_&quot;+t+&quot;__&quot;}function Gi(t,e,r,n,i){var a,o,s,l,c,u=t[r]||(t[r]={active:0,count:0}),f=u[n];function h(r){var i=u.active,h=u[i];for(var d in h&amp;&amp;(h.timer.c=null,h.timer.t=NaN,--u.count,delete u[i],h.event&amp;&amp;h.event.interrupt.call(t,t.__data__,h.index)),u)if(+d&lt;n){var m=u[d];m.timer.c=null,m.timer.t=NaN,--u.count,delete u[d]}o.c=p,ve((function(){return o.c&amp;&amp;p(r||1)&amp;&amp;(o.c=null,o.t=NaN),1}),0,a),u.active=n,f.event&amp;&amp;f.event.start.call(t,t.__data__,e),c=[],f.tween.forEach((function(r,n){(n=n.call(t,t.__data__,e))&amp;&amp;c.push(n)})),l=f.ease,s=f.duration}function p(i){for(var a=i/s,o=l(a),h=c.length;h&gt;0;)c[--h].call(t,o);if(a&gt;=1)return f.event&amp;&amp;f.event.end.call(t,t.__data__,e),--u.count?delete u[n]:delete t[r],1}f||(a=i.time,o=ve((function(t){var e=f.delay;if(o.t=e+a,e&lt;=t)return h(t-e);o.c=h}),0,a),f=u[n]={tween:new _,time:a,timer:o,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++u.count)}ji.call=Y.call,ji.empty=Y.empty,ji.node=Y.node,ji.size=Y.size,t.transition=function(e,r){return e&amp;&amp;e.transition?Bi?e.transition(r):e:t.selection().transition(e)},t.transition.prototype=ji,ji.select=function(t){var e,r,n,i=this.id,a=this.namespace,o=[];t=W(t);for(var s=-1,l=this.length;++s&lt;l;){o.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u&lt;f;)(n=c[u])&amp;&amp;(r=t.call(n,n.__data__,u,s))?(&quot;__data__&quot;in n&amp;&amp;(r.__data__=n.__data__),Gi(r,u,a,i,n[a][i]),e.push(r)):e.push(null)}return Fi(o,a,i)},ji.selectAll=function(t){var e,r,n,i,a,o=this.id,s=this.namespace,l=[];t=X(t);for(var c=-1,u=this.length;++c&lt;u;)for(var f=this[c],h=-1,p=f.length;++h&lt;p;)if(n=f[h]){a=n[s][o],r=t.call(n,n.__data__,h,c),l.push(e=[]);for(var d=-1,m=r.length;++d&lt;m;)(i=r[d])&amp;&amp;Gi(i,d,s,o,a),e.push(i)}return Fi(l,s,o)},ji.filter=function(t){var e,r,n=[];&quot;function&quot;!=typeof t&amp;&amp;(t=lt(t));for(var i=0,a=this.length;i&lt;a;i++){n.push(e=[]);for(var o,s=0,l=(o=this[i]).length;s&lt;l;s++)(r=o[s])&amp;&amp;t.call(r,r.__data__,s,i)&amp;&amp;e.push(r)}return Fi(n,this.namespace,this.id)},ji.tween=function(t,e){var r=this.id,n=this.namespace;return arguments.length&lt;2?this.node()[n][r].tween.get(t):ut(this,null==e?function(e){e[n][r].tween.remove(t)}:function(i){i[n][r].tween.set(t,e)})},ji.attr=function(e,r){if(arguments.length&lt;2){for(r in e)this.attr(r,e[r]);return this}var n=&quot;transform&quot;==e?Nr:yr,i=t.ns.qualify(e);function a(){this.removeAttribute(i)}function o(){this.removeAttributeNS(i.space,i.local)}function s(t){return null==t?a:(t+=&quot;&quot;,function(){var e,r=this.getAttribute(i);return r!==t&amp;&amp;(e=n(r,t),function(t){this.setAttribute(i,e(t))})})}function l(t){return null==t?o:(t+=&quot;&quot;,function(){var e,r=this.getAttributeNS(i.space,i.local);return r!==t&amp;&amp;(e=n(r,t),function(t){this.setAttributeNS(i.space,i.local,e(t))})})}return Vi(this,&quot;attr.&quot;+e,r,i.local?l:s)},ji.attrTween=function(e,r){var n=t.ns.qualify(e);return this.tween(&quot;attr.&quot;+e,n.local?function(t,e){var i=r.call(this,t,e,this.getAttributeNS(n.space,n.local));return i&amp;&amp;function(t){this.setAttributeNS(n.space,n.local,i(t))}}:function(t,e){var i=r.call(this,t,e,this.getAttribute(n));return i&amp;&amp;function(t){this.setAttribute(n,i(t))}})},ji.style=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=&quot;&quot;),t)this.style(r,t[r],e);return this}r=&quot;&quot;}function i(){this.style.removeProperty(t)}function a(e){return null==e?i:(e+=&quot;&quot;,function(){var n,i=o(this).getComputedStyle(this,null).getPropertyValue(t);return i!==e&amp;&amp;(n=yr(i,e),function(e){this.style.setProperty(t,n(e),r)})})}return Vi(this,&quot;style.&quot;+t,e,a)},ji.styleTween=function(t,e,r){function n(n,i){var a=e.call(this,n,i,o(this).getComputedStyle(this,null).getPropertyValue(t));return a&amp;&amp;function(e){this.style.setProperty(t,a(e),r)}}return arguments.length&lt;3&amp;&amp;(r=&quot;&quot;),this.tween(&quot;style.&quot;+t,n)},ji.text=function(t){return Vi(this,&quot;text&quot;,t,Hi)},ji.remove=function(){var t=this.namespace;return this.each(&quot;end.transition&quot;,(function(){var e;this[t].count&lt;2&amp;&amp;(e=this.parentNode)&amp;&amp;e.removeChild(this)}))},ji.ease=function(e){var r=this.id,n=this.namespace;return arguments.length&lt;1?this.node()[n][r].ease:(&quot;function&quot;!=typeof e&amp;&amp;(e=t.ease.apply(t,arguments)),ut(this,(function(t){t[n][r].ease=e})))},ji.delay=function(t){var e=this.id,r=this.namespace;return arguments.length&lt;1?this.node()[r][e].delay:ut(this,&quot;function&quot;==typeof t?function(n,i,a){n[r][e].delay=+t.call(n,n.__data__,i,a)}:(t=+t,function(n){n[r][e].delay=t}))},ji.duration=function(t){var e=this.id,r=this.namespace;return arguments.length&lt;1?this.node()[r][e].duration:ut(this,&quot;function&quot;==typeof t?function(n,i,a){n[r][e].duration=Math.max(1,t.call(n,n.__data__,i,a))}:(t=Math.max(1,t),function(n){n[r][e].duration=t}))},ji.each=function(e,r){var n=this.id,i=this.namespace;if(arguments.length&lt;2){var a=Ni,o=Bi;try{Bi=n,ut(this,(function(t,r,a){Ni=t[i][n],e.call(t,t.__data__,r,a)}))}finally{Ni=a,Bi=o}}else ut(this,(function(a){var o=a[i][n];(o.event||(o.event=t.dispatch(&quot;start&quot;,&quot;end&quot;,&quot;interrupt&quot;))).on(e,r)}));return this},ji.transition=function(){for(var t,e,r,n=this.id,i=++Ui,a=this.namespace,o=[],s=0,l=this.length;s&lt;l;s++){o.push(t=[]);for(var c,u=0,f=(c=this[s]).length;u&lt;f;u++)(e=c[u])&amp;&amp;Gi(e,u,a,i,{time:(r=e[a][n]).time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration}),t.push(e)}return Fi(o,a,i)},t.svg.axis=function(){var e,r=t.scale.linear(),i=Yi,a=6,o=6,s=3,l=[10],c=null;function u(n){n.each((function(){var n,u=t.select(this),f=this.__chart__||r,h=this.__chart__=r.copy(),p=null==c?h.ticks?h.ticks.apply(h,l):h.domain():c,d=null==e?h.tickFormat?h.tickFormat.apply(h,l):C:e,m=u.selectAll(&quot;.tick&quot;).data(p,h),g=m.enter().insert(&quot;g&quot;,&quot;.domain&quot;).attr(&quot;class&quot;,&quot;tick&quot;).style(&quot;opacity&quot;,kt),v=t.transition(m.exit()).style(&quot;opacity&quot;,kt).remove(),y=t.transition(m.order()).style(&quot;opacity&quot;,1),x=Math.max(a,0)+s,b=Dn(h),_=u.selectAll(&quot;.domain&quot;).data([0]),w=(_.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;domain&quot;),t.transition(_));g.append(&quot;line&quot;),g.append(&quot;text&quot;);var T,k,A,M,S=g.select(&quot;line&quot;),E=y.select(&quot;line&quot;),L=m.select(&quot;text&quot;).text(d),P=g.select(&quot;text&quot;),I=y.select(&quot;text&quot;),O=&quot;top&quot;===i||&quot;left&quot;===i?-1:1;if(&quot;bottom&quot;===i||&quot;top&quot;===i?(n=Xi,T=&quot;x&quot;,A=&quot;y&quot;,k=&quot;x2&quot;,M=&quot;y2&quot;,L.attr(&quot;dy&quot;,O&lt;0?&quot;0em&quot;:&quot;.71em&quot;).style(&quot;text-anchor&quot;,&quot;middle&quot;),w.attr(&quot;d&quot;,&quot;M&quot;+b[0]+&quot;,&quot;+O*o+&quot;V0H&quot;+b[1]+&quot;V&quot;+O*o)):(n=Zi,T=&quot;y&quot;,A=&quot;x&quot;,k=&quot;y2&quot;,M=&quot;x2&quot;,L.attr(&quot;dy&quot;,&quot;.32em&quot;).style(&quot;text-anchor&quot;,O&lt;0?&quot;end&quot;:&quot;start&quot;),w.attr(&quot;d&quot;,&quot;M&quot;+O*o+&quot;,&quot;+b[0]+&quot;H0V&quot;+b[1]+&quot;H&quot;+O*o)),S.attr(M,O*a),P.attr(A,O*x),E.attr(k,0).attr(M,O*a),I.attr(T,0).attr(A,O*x),h.rangeBand){var z=h,D=z.rangeBand()/2;f=h=function(t){return z(t)+D}}else f.rangeBand?f=h:v.call(n,h,f);g.call(n,f,h),y.call(n,h,h)}))}return u.scale=function(t){return arguments.length?(r=t,u):r},u.orient=function(t){return arguments.length?(i=t in Wi?t+&quot;&quot;:Yi,u):i},u.ticks=function(){return arguments.length?(l=n(arguments),u):l},u.tickValues=function(t){return arguments.length?(c=t,u):c},u.tickFormat=function(t){return arguments.length?(e=t,u):e},u.tickSize=function(t){var e=arguments.length;return e?(a=+t,o=+arguments[e-1],u):a},u.innerTickSize=function(t){return arguments.length?(a=+t,u):a},u.outerTickSize=function(t){return arguments.length?(o=+t,u):o},u.tickPadding=function(t){return arguments.length?(s=+t,u):s},u.tickSubdivide=function(){return arguments.length&amp;&amp;u},u};var Yi=&quot;bottom&quot;,Wi={top:1,right:1,bottom:1,left:1};function Xi(t,e,r){t.attr(&quot;transform&quot;,(function(t){var n=e(t);return&quot;translate(&quot;+(isFinite(n)?n:r(t))+&quot;,0)&quot;}))}function Zi(t,e,r){t.attr(&quot;transform&quot;,(function(t){var n=e(t);return&quot;translate(0,&quot;+(isFinite(n)?n:r(t))+&quot;)&quot;}))}t.svg.brush=function(){var e,r,n=N(h,&quot;brushstart&quot;,&quot;brush&quot;,&quot;brushend&quot;),i=null,a=null,s=[0,0],l=[0,0],c=!0,u=!0,f=Ki[0];function h(e){e.each((function(){var e=t.select(this).style(&quot;pointer-events&quot;,&quot;all&quot;).style(&quot;-webkit-tap-highlight-color&quot;,&quot;rgba(0,0,0,0)&quot;).on(&quot;mousedown.brush&quot;,g).on(&quot;touchstart.brush&quot;,g),r=e.selectAll(&quot;.background&quot;).data([0]);r.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;background&quot;).style(&quot;visibility&quot;,&quot;hidden&quot;).style(&quot;cursor&quot;,&quot;crosshair&quot;),e.selectAll(&quot;.extent&quot;).data([0]).enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;extent&quot;).style(&quot;cursor&quot;,&quot;move&quot;);var n=e.selectAll(&quot;.resize&quot;).data(f,C);n.exit().remove(),n.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;resize &quot;+t})).style(&quot;cursor&quot;,(function(t){return Ji[t]})).append(&quot;rect&quot;).attr(&quot;x&quot;,(function(t){return/[ew]$/.test(t)?-3:null})).attr(&quot;y&quot;,(function(t){return/^[ns]/.test(t)?-3:null})).attr(&quot;width&quot;,6).attr(&quot;height&quot;,6).style(&quot;visibility&quot;,&quot;hidden&quot;),n.style(&quot;display&quot;,h.empty()?&quot;none&quot;:null);var o,s=t.transition(e),l=t.transition(r);i&amp;&amp;(o=Dn(i),l.attr(&quot;x&quot;,o[0]).attr(&quot;width&quot;,o[1]-o[0]),d(s)),a&amp;&amp;(o=Dn(a),l.attr(&quot;y&quot;,o[0]).attr(&quot;height&quot;,o[1]-o[0]),m(s)),p(s)}))}function p(t){t.selectAll(&quot;.resize&quot;).attr(&quot;transform&quot;,(function(t){return&quot;translate(&quot;+s[+/e$/.test(t)]+&quot;,&quot;+l[+/^s/.test(t)]+&quot;)&quot;}))}function d(t){t.select(&quot;.extent&quot;).attr(&quot;x&quot;,s[0]),t.selectAll(&quot;.extent,.n&gt;rect,.s&gt;rect&quot;).attr(&quot;width&quot;,s[1]-s[0])}function m(t){t.select(&quot;.extent&quot;).attr(&quot;y&quot;,l[0]),t.selectAll(&quot;.extent,.e&gt;rect,.w&gt;rect&quot;).attr(&quot;height&quot;,l[1]-l[0])}function g(){var f,g,v=this,y=t.select(t.event.target),x=n.of(v,arguments),b=t.select(v),_=y.datum(),w=!/^(n|s)$/.test(_)&amp;&amp;i,T=!/^(e|w)$/.test(_)&amp;&amp;a,k=y.classed(&quot;extent&quot;),A=bt(v),M=t.mouse(v),S=t.select(o(v)).on(&quot;keydown.brush&quot;,C).on(&quot;keyup.brush&quot;,P);if(t.event.changedTouches?S.on(&quot;touchmove.brush&quot;,I).on(&quot;touchend.brush&quot;,z):S.on(&quot;mousemove.brush&quot;,I).on(&quot;mouseup.brush&quot;,z),b.interrupt().selectAll(&quot;*&quot;).interrupt(),k)M[0]=s[0]-M[0],M[1]=l[0]-M[1];else if(_){var E=+/w$/.test(_),L=+/^n/.test(_);g=[s[1-E]-M[0],l[1-L]-M[1]],M[0]=s[E],M[1]=l[L]}else t.event.altKey&amp;&amp;(f=M.slice());function C(){32==t.event.keyCode&amp;&amp;(k||(f=null,M[0]-=s[1],M[1]-=l[1],k=2),F())}function P(){32==t.event.keyCode&amp;&amp;2==k&amp;&amp;(M[0]+=s[1],M[1]+=l[1],k=0,F())}function I(){var e=t.mouse(v),r=!1;g&amp;&amp;(e[0]+=g[0],e[1]+=g[1]),k||(t.event.altKey?(f||(f=[(s[0]+s[1])/2,(l[0]+l[1])/2]),M[0]=s[+(e[0]&lt;f[0])],M[1]=l[+(e[1]&lt;f[1])]):f=null),w&amp;&amp;O(e,i,0)&amp;&amp;(d(b),r=!0),T&amp;&amp;O(e,a,1)&amp;&amp;(m(b),r=!0),r&amp;&amp;(p(b),x({type:&quot;brush&quot;,mode:k?&quot;move&quot;:&quot;resize&quot;}))}function O(t,n,i){var a,o,h=Dn(n),p=h[0],d=h[1],m=M[i],g=i?l:s,v=g[1]-g[0];if(k&amp;&amp;(p-=m,d-=v+m),a=(i?u:c)?Math.max(p,Math.min(d,t[i])):t[i],k?o=(a+=m)+v:(f&amp;&amp;(m=Math.max(p,Math.min(d,2*f[i]-a))),m&lt;a?(o=a,a=m):o=m),g[0]!=a||g[1]!=o)return i?r=null:e=null,g[0]=a,g[1]=o,!0}function z(){I(),b.style(&quot;pointer-events&quot;,&quot;all&quot;).selectAll(&quot;.resize&quot;).style(&quot;display&quot;,h.empty()?&quot;none&quot;:null),t.select(&quot;body&quot;).style(&quot;cursor&quot;,null),S.on(&quot;mousemove.brush&quot;,null).on(&quot;mouseup.brush&quot;,null).on(&quot;touchmove.brush&quot;,null).on(&quot;touchend.brush&quot;,null).on(&quot;keydown.brush&quot;,null).on(&quot;keyup.brush&quot;,null),A(),x({type:&quot;brushend&quot;})}b.style(&quot;pointer-events&quot;,&quot;none&quot;).selectAll(&quot;.resize&quot;).style(&quot;display&quot;,null),t.select(&quot;body&quot;).style(&quot;cursor&quot;,y.style(&quot;cursor&quot;)),x({type:&quot;brushstart&quot;}),I()}return h.event=function(i){i.each((function(){var i=n.of(this,arguments),a={x:s,y:l,i:e,j:r},o=this.__chart__||a;this.__chart__=a,Bi?t.select(this).transition().each(&quot;start.brush&quot;,(function(){e=o.i,r=o.j,s=o.x,l=o.y,i({type:&quot;brushstart&quot;})})).tween(&quot;brush:brush&quot;,(function(){var t=xr(s,a.x),n=xr(l,a.y);return e=r=null,function(e){s=a.x=t(e),l=a.y=n(e),i({type:&quot;brush&quot;,mode:&quot;resize&quot;})}})).each(&quot;end.brush&quot;,(function(){e=a.i,r=a.j,i({type:&quot;brush&quot;,mode:&quot;resize&quot;}),i({type:&quot;brushend&quot;})})):(i({type:&quot;brushstart&quot;}),i({type:&quot;brush&quot;,mode:&quot;resize&quot;}),i({type:&quot;brushend&quot;}))}))},h.x=function(t){return arguments.length?(f=Ki[!(i=t)&lt;&lt;1|!a],h):i},h.y=function(t){return arguments.length?(f=Ki[!i&lt;&lt;1|!(a=t)],h):a},h.clamp=function(t){return arguments.length?(i&amp;&amp;a?(c=!!t[0],u=!!t[1]):i?c=!!t:a&amp;&amp;(u=!!t),h):i&amp;&amp;a?[c,u]:i?c:a?u:null},h.extent=function(t){var n,o,c,u,f;return arguments.length?(i&amp;&amp;(n=t[0],o=t[1],a&amp;&amp;(n=n[0],o=o[0]),e=[n,o],i.invert&amp;&amp;(n=i(n),o=i(o)),o&lt;n&amp;&amp;(f=n,n=o,o=f),n==s[0]&amp;&amp;o==s[1]||(s=[n,o])),a&amp;&amp;(c=t[0],u=t[1],i&amp;&amp;(c=c[1],u=u[1]),r=[c,u],a.invert&amp;&amp;(c=a(c),u=a(u)),u&lt;c&amp;&amp;(f=c,c=u,u=f),c==l[0]&amp;&amp;u==l[1]||(l=[c,u])),h):(i&amp;&amp;(e?(n=e[0],o=e[1]):(n=s[0],o=s[1],i.invert&amp;&amp;(n=i.invert(n),o=i.invert(o)),o&lt;n&amp;&amp;(f=n,n=o,o=f))),a&amp;&amp;(r?(c=r[0],u=r[1]):(c=l[0],u=l[1],a.invert&amp;&amp;(c=a.invert(c),u=a.invert(u)),u&lt;c&amp;&amp;(f=c,c=u,u=f))),i&amp;&amp;a?[[n,c],[o,u]]:i?[n,o]:a&amp;&amp;[c,u])},h.clear=function(){return h.empty()||(s=[0,0],l=[0,0],e=r=null),h},h.empty=function(){return!!i&amp;&amp;s[0]==s[1]||!!a&amp;&amp;l[0]==l[1]},t.rebind(h,n,&quot;on&quot;)};var Ji={n:&quot;ns-resize&quot;,e:&quot;ew-resize&quot;,s:&quot;ns-resize&quot;,w:&quot;ew-resize&quot;,nw:&quot;nwse-resize&quot;,ne:&quot;nesw-resize&quot;,se:&quot;nwse-resize&quot;,sw:&quot;nesw-resize&quot;},Ki=[[&quot;n&quot;,&quot;e&quot;,&quot;s&quot;,&quot;w&quot;,&quot;nw&quot;,&quot;ne&quot;,&quot;se&quot;,&quot;sw&quot;],[&quot;e&quot;,&quot;w&quot;],[&quot;n&quot;,&quot;s&quot;],[]];function Qi(t){return JSON.parse(t.responseText)}function $i(t){var e=i.createRange();return e.selectNode(i.body),e.createContextualFragment(t.responseText)}t.text=ue((function(t){return t.responseText})),t.json=function(t,e){return fe(t,&quot;application/json&quot;,Qi,e)},t.html=function(t,e){return fe(t,&quot;text/html&quot;,$i,e)},t.xml=ue((function(t){return t.responseXML})),&quot;object&quot;==typeof e&amp;&amp;e.exports?e.exports=t:this.d3=t}).apply(self)},{}],59:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./quad&quot;)},{&quot;./quad&quot;:60}],60:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;clamp&quot;),a=t(&quot;parse-rect&quot;),o=t(&quot;array-bounds&quot;),s=t(&quot;pick-by-alias&quot;),l=t(&quot;defined&quot;),c=t(&quot;flatten-vertex-data&quot;),u=t(&quot;is-obj&quot;),f=t(&quot;dtype&quot;),h=t(&quot;math-log2&quot;);function p(t,e){for(var r=e[0],n=e[1],a=1/(e[2]-r),o=1/(e[3]-n),s=new Array(t.length),l=0,c=t.length/2;l&lt;c;l++)s[2*l]=i((t[2*l]-r)*a,0,1),s[2*l+1]=i((t[2*l+1]-n)*o,0,1);return s}e.exports=function(t,e){e||(e={}),t=c(t,&quot;float64&quot;),e=s(e,{bounds:&quot;range bounds dataBox databox&quot;,maxDepth:&quot;depth maxDepth maxdepth level maxLevel maxlevel levels&quot;,dtype:&quot;type dtype format out dst output destination&quot;});var r=l(e.maxDepth,255),i=l(e.bounds,o(t,2));i[0]===i[2]&amp;&amp;i[2]++,i[1]===i[3]&amp;&amp;i[3]++;var d,m=p(t,i),g=t.length&gt;&gt;&gt;1;e.dtype||(e.dtype=&quot;array&quot;),&quot;string&quot;==typeof e.dtype?d=new(f(e.dtype))(g):e.dtype&amp;&amp;(d=e.dtype,Array.isArray(d)&amp;&amp;(d.length=g));for(var v=0;v&lt;g;++v)d[v]=v;var y=[],x=[],b=[],_=[];!function t(e,n,i,a,o,s){if(!a.length)return null;var l=y[o]||(y[o]=[]),c=b[o]||(b[o]=[]),u=x[o]||(x[o]=[]),f=l.length;if(++o&gt;r||s&gt;1073741824){for(var h=0;h&lt;a.length;h++)l.push(a[h]),c.push(s),u.push(null,null,null,null);return f}if(l.push(a[0]),c.push(s),a.length&lt;=1)return u.push(null,null,null,null),f;for(var p=.5*i,d=e+p,g=n+p,v=[],_=[],w=[],T=[],k=1,A=a.length;k&lt;A;k++){var M=a[k],S=m[2*M],E=m[2*M+1];S&lt;d?E&lt;g?v.push(M):_.push(M):E&lt;g?w.push(M):T.push(M)}return s&lt;&lt;=2,u.push(t(e,n,p,v,o,s),t(e,g,p,_,o,s+1),t(d,n,p,w,o,s+2),t(d,g,p,T,o,s+3)),f}(0,0,1,d,0,1);for(var w=0,T=0;T&lt;y.length;T++){var k=y[T];if(d.set)d.set(k,w);else for(var A=0,M=k.length;A&lt;M;A++)d[A+w]=k[A];var S=w+y[T].length;_[T]=[w,S],w=S}return d.range=function(){var e,r=[],n=arguments.length;for(;n--;)r[n]=arguments[n];if(u(r[r.length-1])){var o=r.pop();r.length||null==o.x&amp;&amp;null==o.l&amp;&amp;null==o.left||(r=[o],e={}),e=s(o,{level:&quot;level maxLevel&quot;,d:&quot;d diam diameter r radius px pxSize pixel pixelSize maxD size minSize&quot;,lod:&quot;lod details ranges offsets&quot;})}else e={};r.length||(r=i);var c=a.apply(void 0,r),f=[Math.min(c.x,c.x+c.width),Math.min(c.y,c.y+c.height),Math.max(c.x,c.x+c.width),Math.max(c.y,c.y+c.height)],d=f[0],m=f[1],g=f[2],v=f[3],b=p([d,m,g,v],i),_=b[0],w=b[1],T=b[2],k=b[3],A=l(e.level,y.length);if(null!=e.d){var M;&quot;number&quot;==typeof e.d?M=[e.d,e.d]:e.d.length&amp;&amp;(M=e.d),A=Math.min(Math.max(Math.ceil(-h(Math.abs(M[0])/(i[2]-i[0]))),Math.ceil(-h(Math.abs(M[1])/(i[3]-i[1])))),A)}if(A=Math.min(A,y.length),e.lod)return E(_,w,T,k,A);var S=[];function L(e,r,n,i,a,o){if(null!==a&amp;&amp;null!==o&amp;&amp;!(_&gt;e+n||w&gt;r+n||T&lt;e||k&lt;r||i&gt;=A||a===o)){var s=y[i];void 0===o&amp;&amp;(o=s.length);for(var l=a;l&lt;o;l++){var c=s[l],u=t[2*c],f=t[2*c+1];u&gt;=d&amp;&amp;u&lt;=g&amp;&amp;f&gt;=m&amp;&amp;f&lt;=v&amp;&amp;S.push(c)}var h=x[i],p=h[4*a+0],b=h[4*a+1],M=h[4*a+2],E=h[4*a+3],P=C(h,a+1),I=.5*n,O=i+1;L(e,r,I,O,p,b||M||E||P),L(e,r+I,I,O,b,M||E||P),L(e+I,r,I,O,M,E||P),L(e+I,r+I,I,O,E,P)}}function C(t,e){for(var r=null,n=0;null===r;)if(r=t[4*e+n],++n&gt;t.length)return null;return r}return L(0,0,1,0,0,1),S},d;function E(t,e,r,i,a){for(var o=[],s=0;s&lt;a;s++){var l=b[s],c=_[s][0],u=L(t,e,s),f=L(r,i,s),h=n.ge(l,u),p=n.gt(l,f,h,l.length-1);o[s]=[h+c,p+c]}return o}function L(t,e,r){for(var n=1,i=.5,a=.5,o=.5,s=0;s&lt;r;s++)n&lt;&lt;=2,n+=t&lt;i?e&lt;a?0:1:e&lt;a?2:3,o*=.5,i+=t&lt;i?-o:o,a+=e&lt;a?-o:o;return n}}},{&quot;array-bounds&quot;:71,&quot;binary-search-bounds&quot;:80,clamp:86,defined:124,dtype:127,&quot;flatten-vertex-data&quot;:191,&quot;is-obj&quot;:235,&quot;math-log2&quot;:240,&quot;parse-rect&quot;:249,&quot;pick-by-alias&quot;:253}],61:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;);function i(t){var e=0;if(t&amp;&amp;t.length&gt;0){e+=Math.abs(a(t[0]));for(var r=1;r&lt;t.length;r++)e-=Math.abs(a(t[r]))}return e}function a(t){var e,r,n,i,a,s,l=0,c=t.length;if(c&gt;2){for(s=0;s&lt;c;s++)s===c-2?(n=c-2,i=c-1,a=0):s===c-1?(n=c-1,i=0,a=1):(n=s,i=s+1,a=s+2),e=t[n],r=t[i],l+=(o(t[a][0])-o(e[0]))*Math.sin(o(r[1]));l=6378137*l*6378137/2}return l}function o(t){return t*Math.PI/180}r.default=function(t){return n.geomReduce(t,(function(t,e){return t+function(t){var e,r=0;switch(t.type){case&quot;Polygon&quot;:return i(t.coordinates);case&quot;MultiPolygon&quot;:for(e=0;e&lt;t.coordinates.length;e++)r+=i(t.coordinates[e]);return r;case&quot;Point&quot;:case&quot;MultiPoint&quot;:case&quot;LineString&quot;:case&quot;MultiLineString&quot;:return 0}return 0}(e)}),0)}},{&quot;@turf/meta&quot;:63}],62:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){void 0===r&amp;&amp;(r={});var n={type:&quot;Feature&quot;};return(0===r.id||r.id)&amp;&amp;(n.id=r.id),r.bbox&amp;&amp;(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function i(t,e,r){if(void 0===r&amp;&amp;(r={}),!t)throw new Error(&quot;coordinates is required&quot;);if(!Array.isArray(t))throw new Error(&quot;coordinates must be an Array&quot;);if(t.length&lt;2)throw new Error(&quot;coordinates must be at least 2 numbers long&quot;);if(!d(t[0])||!d(t[1]))throw new Error(&quot;coordinates must contain numbers&quot;);return n({type:&quot;Point&quot;,coordinates:t},e,r)}function a(t,e,r){void 0===r&amp;&amp;(r={});for(var i=0,a=t;i&lt;a.length;i++){var o=a[i];if(o.length&lt;4)throw new Error(&quot;Each LinearRing of a Polygon must have 4 or more Positions.&quot;);for(var s=0;s&lt;o[o.length-1].length;s++)if(o[o.length-1][s]!==o[0][s])throw new Error(&quot;First and last Position are not equivalent.&quot;)}return n({type:&quot;Polygon&quot;,coordinates:t},e,r)}function o(t,e,r){if(void 0===r&amp;&amp;(r={}),t.length&lt;2)throw new Error(&quot;coordinates must be an array of two or more positions&quot;);return n({type:&quot;LineString&quot;,coordinates:t},e,r)}function s(t,e){void 0===e&amp;&amp;(e={});var r={type:&quot;FeatureCollection&quot;};return e.id&amp;&amp;(r.id=e.id),e.bbox&amp;&amp;(r.bbox=e.bbox),r.features=t,r}function l(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiLineString&quot;,coordinates:t},e,r)}function c(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPoint&quot;,coordinates:t},e,r)}function u(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPolygon&quot;,coordinates:t},e,r)}function f(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t*n}function h(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t/n}function p(t){return 180*(t%(2*Math.PI))/Math.PI}function d(t){return!isNaN(t)&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)}Object.defineProperty(r,&quot;__esModule&quot;,{value:!0}),r.earthRadius=6371008.8,r.factors={centimeters:100*r.earthRadius,centimetres:100*r.earthRadius,degrees:r.earthRadius/111325,feet:3.28084*r.earthRadius,inches:39.37*r.earthRadius,kilometers:r.earthRadius/1e3,kilometres:r.earthRadius/1e3,meters:r.earthRadius,metres:r.earthRadius,miles:r.earthRadius/1609.344,millimeters:1e3*r.earthRadius,millimetres:1e3*r.earthRadius,nauticalmiles:r.earthRadius/1852,radians:1,yards:1.0936*r.earthRadius},r.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/r.earthRadius,yards:1.0936133},r.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,hectares:1e-4,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},r.feature=n,r.geometry=function(t,e,r){switch(void 0===r&amp;&amp;(r={}),t){case&quot;Point&quot;:return i(e).geometry;case&quot;LineString&quot;:return o(e).geometry;case&quot;Polygon&quot;:return a(e).geometry;case&quot;MultiPoint&quot;:return c(e).geometry;case&quot;MultiLineString&quot;:return l(e).geometry;case&quot;MultiPolygon&quot;:return u(e).geometry;default:throw new Error(t+&quot; is invalid&quot;)}},r.point=i,r.points=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return i(t,e)})),r)},r.polygon=a,r.polygons=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return a(t,e)})),r)},r.lineString=o,r.lineStrings=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return o(t,e)})),r)},r.featureCollection=s,r.multiLineString=l,r.multiPoint=c,r.multiPolygon=u,r.geometryCollection=function(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;GeometryCollection&quot;,geometries:t},e,r)},r.round=function(t,e){if(void 0===e&amp;&amp;(e=0),e&amp;&amp;!(e&gt;=0))throw new Error(&quot;precision must be a positive number&quot;);var r=Math.pow(10,e||0);return Math.round(t*r)/r},r.radiansToLength=f,r.lengthToRadians=h,r.lengthToDegrees=function(t,e){return p(h(t,e))},r.bearingToAzimuth=function(t){var e=t%360;return e&lt;0&amp;&amp;(e+=360),e},r.radiansToDegrees=p,r.degreesToRadians=function(t){return t%360*Math.PI/180},r.convertLength=function(t,e,r){if(void 0===e&amp;&amp;(e=&quot;kilometers&quot;),void 0===r&amp;&amp;(r=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;length must be a positive number&quot;);return f(h(t,e),r)},r.convertArea=function(t,e,n){if(void 0===e&amp;&amp;(e=&quot;meters&quot;),void 0===n&amp;&amp;(n=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;area must be a positive number&quot;);var i=r.areaFactors[e];if(!i)throw new Error(&quot;invalid original units&quot;);var a=r.areaFactors[n];if(!a)throw new Error(&quot;invalid final units&quot;);return t/i*a},r.isNumber=d,r.isObject=function(t){return!!t&amp;&amp;t.constructor===Object},r.validateBBox=function(t){if(!t)throw new Error(&quot;bbox is required&quot;);if(!Array.isArray(t))throw new Error(&quot;bbox must be an Array&quot;);if(4!==t.length&amp;&amp;6!==t.length)throw new Error(&quot;bbox must be an Array of 4 or 6 numbers&quot;);t.forEach((function(t){if(!d(t))throw new Error(&quot;bbox must only contain numbers&quot;)}))},r.validateId=function(t){if(!t)throw new Error(&quot;id is required&quot;);if(-1===[&quot;string&quot;,&quot;number&quot;].indexOf(typeof t))throw new Error(&quot;id must be a number or a string&quot;)}},{}],63:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/helpers&quot;);function i(t,e,r){if(null!==t)for(var n,a,o,s,l,c,u,f,h=0,p=0,d=t.type,m=&quot;FeatureCollection&quot;===d,g=&quot;Feature&quot;===d,v=m?t.features.length:1,y=0;y&lt;v;y++){l=(f=!!(u=m?t.features[y].geometry:g?t.geometry:t)&amp;&amp;&quot;GeometryCollection&quot;===u.type)?u.geometries.length:1;for(var x=0;x&lt;l;x++){var b=0,_=0;if(null!==(s=f?u.geometries[x]:u)){c=s.coordinates;var w=s.type;switch(h=!r||&quot;Polygon&quot;!==w&amp;&amp;&quot;MultiPolygon&quot;!==w?0:1,w){case null:break;case&quot;Point&quot;:if(!1===e(c,p,y,b,_))return!1;p++,b++;break;case&quot;LineString&quot;:case&quot;MultiPoint&quot;:for(n=0;n&lt;c.length;n++){if(!1===e(c[n],p,y,b,_))return!1;p++,&quot;MultiPoint&quot;===w&amp;&amp;b++}&quot;LineString&quot;===w&amp;&amp;b++;break;case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:for(n=0;n&lt;c.length;n++){for(a=0;a&lt;c[n].length-h;a++){if(!1===e(c[n][a],p,y,b,_))return!1;p++}&quot;MultiLineString&quot;===w&amp;&amp;b++,&quot;Polygon&quot;===w&amp;&amp;_++}&quot;Polygon&quot;===w&amp;&amp;b++;break;case&quot;MultiPolygon&quot;:for(n=0;n&lt;c.length;n++){for(_=0,a=0;a&lt;c[n].length;a++){for(o=0;o&lt;c[n][a].length-h;o++){if(!1===e(c[n][a][o],p,y,b,_))return!1;p++}_++}b++}break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;s.geometries.length;n++)if(!1===i(s.geometries[n],e,r))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}}}}}function a(t,e){var r;switch(t.type){case&quot;FeatureCollection&quot;:for(r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r].properties,r);r++);break;case&quot;Feature&quot;:e(t.properties,0)}}function o(t,e){if(&quot;Feature&quot;===t.type)e(t,0);else if(&quot;FeatureCollection&quot;===t.type)for(var r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r],r);r++);}function s(t,e){var r,n,i,a,o,s,l,c,u,f,h=0,p=&quot;FeatureCollection&quot;===t.type,d=&quot;Feature&quot;===t.type,m=p?t.features.length:1;for(r=0;r&lt;m;r++){for(s=p?t.features[r].geometry:d?t.geometry:t,c=p?t.features[r].properties:d?t.properties:{},u=p?t.features[r].bbox:d?t.bbox:void 0,f=p?t.features[r].id:d?t.id:void 0,o=(l=!!s&amp;&amp;&quot;GeometryCollection&quot;===s.type)?s.geometries.length:1,i=0;i&lt;o;i++)if(null!==(a=l?s.geometries[i]:s))switch(a.type){case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;MultiPoint&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:if(!1===e(a,h,c,u,f))return!1;break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;a.geometries.length;n++)if(!1===e(a.geometries[n],h,c,u,f))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}else if(!1===e(null,h,c,u,f))return!1;h++}}function l(t,e){s(t,(function(t,r,i,a,o){var s,l=null===t?null:t.type;switch(l){case null:case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;Polygon&quot;:return!1!==e(n.feature(t,i,{bbox:a,id:o}),r,0)&amp;&amp;void 0}switch(l){case&quot;MultiPoint&quot;:s=&quot;Point&quot;;break;case&quot;MultiLineString&quot;:s=&quot;LineString&quot;;break;case&quot;MultiPolygon&quot;:s=&quot;Polygon&quot;}for(var c=0;c&lt;t.coordinates.length;c++){var u={type:s,coordinates:t.coordinates[c]};if(!1===e(n.feature(u,i),r,c))return!1}}))}function c(t,e){l(t,(function(t,r,a){var o=0;if(t.geometry){var s=t.geometry.type;if(&quot;Point&quot;!==s&amp;&amp;&quot;MultiPoint&quot;!==s){var l,c=0,u=0,f=0;return!1!==i(t,(function(i,s,h,p,d){if(void 0===l||r&gt;c||p&gt;u||d&gt;f)return l=i,c=r,u=p,f=d,void(o=0);var m=n.lineString([l,i],t.properties);if(!1===e(m,r,a,d,o))return!1;o++,l=i}))&amp;&amp;void 0}}}))}function u(t,e){if(!t)throw new Error(&quot;geojson is required&quot;);l(t,(function(t,r,i){if(null!==t.geometry){var a=t.geometry.type,o=t.geometry.coordinates;switch(a){case&quot;LineString&quot;:if(!1===e(t,r,i,0,0))return!1;break;case&quot;Polygon&quot;:for(var s=0;s&lt;o.length;s++)if(!1===e(n.lineString(o[s],t.properties),r,i,s))return!1}}}))}r.coordEach=i,r.coordReduce=function(t,e,r,n){var a=r;return i(t,(function(t,n,i,o,s){a=0===n&amp;&amp;void 0===r?t:e(a,t,n,i,o,s)}),n),a},r.propEach=a,r.propReduce=function(t,e,r){var n=r;return a(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.featureEach=o,r.featureReduce=function(t,e,r){var n=r;return o(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.coordAll=function(t){var e=[];return i(t,(function(t){e.push(t)})),e},r.geomEach=s,r.geomReduce=function(t,e,r){var n=r;return s(t,(function(t,i,a,o,s){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o,s)})),n},r.flattenEach=l,r.flattenReduce=function(t,e,r){var n=r;return l(t,(function(t,i,a){n=0===i&amp;&amp;0===a&amp;&amp;void 0===r?t:e(n,t,i,a)})),n},r.segmentEach=c,r.segmentReduce=function(t,e,r){var n=r,i=!1;return c(t,(function(t,a,o,s,l){n=!1===i&amp;&amp;void 0===r?t:e(n,t,a,o,s,l),i=!0})),n},r.lineEach=u,r.lineReduce=function(t,e,r){var n=r;return u(t,(function(t,i,a,o){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o)})),n},r.findSegment=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.segmentIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s-1),n.lineString([c[s],c[s+1]],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s-1),n.lineString([c[o][s],c[o][s+1]],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s-1),n.lineString([c[a][s],c[a][s+1]],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s-1),n.lineString([c[a][o][s],c[a][o][s+1]],l,e)}throw new Error(&quot;geojson is invalid&quot;)},r.findPoint=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.coordIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:return n.point(c,l,e);case&quot;MultiPoint&quot;:return a&lt;0&amp;&amp;(a=c.length+a),n.point(c[a],l,e);case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s),n.point(c[s],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s),n.point(c[o][s],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s),n.point(c[a][s],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s),n.point(c[a][o][s],l,e)}throw new Error(&quot;geojson is invalid&quot;)}},{&quot;@turf/helpers&quot;:62}],64:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;);function i(t){var e=[1/0,1/0,-1/0,-1/0];return n.coordEach(t,(function(t){e[0]&gt;t[0]&amp;&amp;(e[0]=t[0]),e[1]&gt;t[1]&amp;&amp;(e[1]=t[1]),e[2]&lt;t[0]&amp;&amp;(e[2]=t[0]),e[3]&lt;t[1]&amp;&amp;(e[3]=t[1])})),e}i.default=i,r.default=i},{&quot;@turf/meta&quot;:66}],65:[function(t,e,r){arguments[4][62][0].apply(r,arguments)},{dup:62}],66:[function(t,e,r){arguments[4][63][0].apply(r,arguments)},{&quot;@turf/helpers&quot;:65,dup:63}],67:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;),i=t(&quot;@turf/helpers&quot;);r.default=function(t,e){void 0===e&amp;&amp;(e={});var r=0,a=0,o=0;return n.coordEach(t,(function(t){r+=t[0],a+=t[1],o++})),i.point([r/o,a/o],e.properties)}},{&quot;@turf/helpers&quot;:68,&quot;@turf/meta&quot;:69}],68:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){void 0===r&amp;&amp;(r={});var n={type:&quot;Feature&quot;};return(0===r.id||r.id)&amp;&amp;(n.id=r.id),r.bbox&amp;&amp;(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function i(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;Point&quot;,coordinates:t},e,r)}function a(t,e,r){void 0===r&amp;&amp;(r={});for(var i=0,a=t;i&lt;a.length;i++){var o=a[i];if(o.length&lt;4)throw new Error(&quot;Each LinearRing of a Polygon must have 4 or more Positions.&quot;);for(var s=0;s&lt;o[o.length-1].length;s++)if(o[o.length-1][s]!==o[0][s])throw new Error(&quot;First and last Position are not equivalent.&quot;)}return n({type:&quot;Polygon&quot;,coordinates:t},e,r)}function o(t,e,r){if(void 0===r&amp;&amp;(r={}),t.length&lt;2)throw new Error(&quot;coordinates must be an array of two or more positions&quot;);return n({type:&quot;LineString&quot;,coordinates:t},e,r)}function s(t,e){void 0===e&amp;&amp;(e={});var r={type:&quot;FeatureCollection&quot;};return e.id&amp;&amp;(r.id=e.id),e.bbox&amp;&amp;(r.bbox=e.bbox),r.features=t,r}function l(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiLineString&quot;,coordinates:t},e,r)}function c(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPoint&quot;,coordinates:t},e,r)}function u(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPolygon&quot;,coordinates:t},e,r)}function f(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t*n}function h(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t/n}function p(t){return 180*(t%(2*Math.PI))/Math.PI}function d(t){return!isNaN(t)&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)&amp;&amp;!/^\s*$/.test(t)}Object.defineProperty(r,&quot;__esModule&quot;,{value:!0}),r.earthRadius=6371008.8,r.factors={centimeters:100*r.earthRadius,centimetres:100*r.earthRadius,degrees:r.earthRadius/111325,feet:3.28084*r.earthRadius,inches:39.37*r.earthRadius,kilometers:r.earthRadius/1e3,kilometres:r.earthRadius/1e3,meters:r.earthRadius,metres:r.earthRadius,miles:r.earthRadius/1609.344,millimeters:1e3*r.earthRadius,millimetres:1e3*r.earthRadius,nauticalmiles:r.earthRadius/1852,radians:1,yards:r.earthRadius/1.0936},r.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/r.earthRadius,yards:1/1.0936},r.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},r.feature=n,r.geometry=function(t,e,r){switch(void 0===r&amp;&amp;(r={}),t){case&quot;Point&quot;:return i(e).geometry;case&quot;LineString&quot;:return o(e).geometry;case&quot;Polygon&quot;:return a(e).geometry;case&quot;MultiPoint&quot;:return c(e).geometry;case&quot;MultiLineString&quot;:return l(e).geometry;case&quot;MultiPolygon&quot;:return u(e).geometry;default:throw new Error(t+&quot; is invalid&quot;)}},r.point=i,r.points=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return i(t,e)})),r)},r.polygon=a,r.polygons=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return a(t,e)})),r)},r.lineString=o,r.lineStrings=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return o(t,e)})),r)},r.featureCollection=s,r.multiLineString=l,r.multiPoint=c,r.multiPolygon=u,r.geometryCollection=function(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;GeometryCollection&quot;,geometries:t},e,r)},r.round=function(t,e){if(void 0===e&amp;&amp;(e=0),e&amp;&amp;!(e&gt;=0))throw new Error(&quot;precision must be a positive number&quot;);var r=Math.pow(10,e||0);return Math.round(t*r)/r},r.radiansToLength=f,r.lengthToRadians=h,r.lengthToDegrees=function(t,e){return p(h(t,e))},r.bearingToAzimuth=function(t){var e=t%360;return e&lt;0&amp;&amp;(e+=360),e},r.radiansToDegrees=p,r.degreesToRadians=function(t){return t%360*Math.PI/180},r.convertLength=function(t,e,r){if(void 0===e&amp;&amp;(e=&quot;kilometers&quot;),void 0===r&amp;&amp;(r=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;length must be a positive number&quot;);return f(h(t,e),r)},r.convertArea=function(t,e,n){if(void 0===e&amp;&amp;(e=&quot;meters&quot;),void 0===n&amp;&amp;(n=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;area must be a positive number&quot;);var i=r.areaFactors[e];if(!i)throw new Error(&quot;invalid original units&quot;);var a=r.areaFactors[n];if(!a)throw new Error(&quot;invalid final units&quot;);return t/i*a},r.isNumber=d,r.isObject=function(t){return!!t&amp;&amp;t.constructor===Object},r.validateBBox=function(t){if(!t)throw new Error(&quot;bbox is required&quot;);if(!Array.isArray(t))throw new Error(&quot;bbox must be an Array&quot;);if(4!==t.length&amp;&amp;6!==t.length)throw new Error(&quot;bbox must be an Array of 4 or 6 numbers&quot;);t.forEach((function(t){if(!d(t))throw new Error(&quot;bbox must only contain numbers&quot;)}))},r.validateId=function(t){if(!t)throw new Error(&quot;id is required&quot;);if(-1===[&quot;string&quot;,&quot;number&quot;].indexOf(typeof t))throw new Error(&quot;id must be a number or a string&quot;)},r.radians2degrees=function(){throw new Error(&quot;method has been renamed to `radiansToDegrees`&quot;)},r.degrees2radians=function(){throw new Error(&quot;method has been renamed to `degreesToRadians`&quot;)},r.distanceToDegrees=function(){throw new Error(&quot;method has been renamed to `lengthToDegrees`&quot;)},r.distanceToRadians=function(){throw new Error(&quot;method has been renamed to `lengthToRadians`&quot;)},r.radiansToDistance=function(){throw new Error(&quot;method has been renamed to `radiansToLength`&quot;)},r.bearingToAngle=function(){throw new Error(&quot;method has been renamed to `bearingToAzimuth`&quot;)},r.convertDistance=function(){throw new Error(&quot;method has been renamed to `convertLength`&quot;)}},{}],69:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/helpers&quot;);function i(t,e,r){if(null!==t)for(var n,a,o,s,l,c,u,f,h=0,p=0,d=t.type,m=&quot;FeatureCollection&quot;===d,g=&quot;Feature&quot;===d,v=m?t.features.length:1,y=0;y&lt;v;y++){l=(f=!!(u=m?t.features[y].geometry:g?t.geometry:t)&amp;&amp;&quot;GeometryCollection&quot;===u.type)?u.geometries.length:1;for(var x=0;x&lt;l;x++){var b=0,_=0;if(null!==(s=f?u.geometries[x]:u)){c=s.coordinates;var w=s.type;switch(h=!r||&quot;Polygon&quot;!==w&amp;&amp;&quot;MultiPolygon&quot;!==w?0:1,w){case null:break;case&quot;Point&quot;:if(!1===e(c,p,y,b,_))return!1;p++,b++;break;case&quot;LineString&quot;:case&quot;MultiPoint&quot;:for(n=0;n&lt;c.length;n++){if(!1===e(c[n],p,y,b,_))return!1;p++,&quot;MultiPoint&quot;===w&amp;&amp;b++}&quot;LineString&quot;===w&amp;&amp;b++;break;case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:for(n=0;n&lt;c.length;n++){for(a=0;a&lt;c[n].length-h;a++){if(!1===e(c[n][a],p,y,b,_))return!1;p++}&quot;MultiLineString&quot;===w&amp;&amp;b++,&quot;Polygon&quot;===w&amp;&amp;_++}&quot;Polygon&quot;===w&amp;&amp;b++;break;case&quot;MultiPolygon&quot;:for(n=0;n&lt;c.length;n++){for(_=0,a=0;a&lt;c[n].length;a++){for(o=0;o&lt;c[n][a].length-h;o++){if(!1===e(c[n][a][o],p,y,b,_))return!1;p++}_++}b++}break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;s.geometries.length;n++)if(!1===i(s.geometries[n],e,r))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}}}}}function a(t,e){var r;switch(t.type){case&quot;FeatureCollection&quot;:for(r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r].properties,r);r++);break;case&quot;Feature&quot;:e(t.properties,0)}}function o(t,e){if(&quot;Feature&quot;===t.type)e(t,0);else if(&quot;FeatureCollection&quot;===t.type)for(var r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r],r);r++);}function s(t,e){var r,n,i,a,o,s,l,c,u,f,h=0,p=&quot;FeatureCollection&quot;===t.type,d=&quot;Feature&quot;===t.type,m=p?t.features.length:1;for(r=0;r&lt;m;r++){for(s=p?t.features[r].geometry:d?t.geometry:t,c=p?t.features[r].properties:d?t.properties:{},u=p?t.features[r].bbox:d?t.bbox:void 0,f=p?t.features[r].id:d?t.id:void 0,o=(l=!!s&amp;&amp;&quot;GeometryCollection&quot;===s.type)?s.geometries.length:1,i=0;i&lt;o;i++)if(null!==(a=l?s.geometries[i]:s))switch(a.type){case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;MultiPoint&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:if(!1===e(a,h,c,u,f))return!1;break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;a.geometries.length;n++)if(!1===e(a.geometries[n],h,c,u,f))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}else if(!1===e(null,h,c,u,f))return!1;h++}}function l(t,e){s(t,(function(t,r,i,a,o){var s,l=null===t?null:t.type;switch(l){case null:case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;Polygon&quot;:return!1!==e(n.feature(t,i,{bbox:a,id:o}),r,0)&amp;&amp;void 0}switch(l){case&quot;MultiPoint&quot;:s=&quot;Point&quot;;break;case&quot;MultiLineString&quot;:s=&quot;LineString&quot;;break;case&quot;MultiPolygon&quot;:s=&quot;Polygon&quot;}for(var c=0;c&lt;t.coordinates.length;c++){var u={type:s,coordinates:t.coordinates[c]};if(!1===e(n.feature(u,i),r,c))return!1}}))}function c(t,e){l(t,(function(t,r,a){var o=0;if(t.geometry){var s=t.geometry.type;if(&quot;Point&quot;!==s&amp;&amp;&quot;MultiPoint&quot;!==s){var l,c=0,u=0,f=0;return!1!==i(t,(function(i,s,h,p,d){if(void 0===l||r&gt;c||p&gt;u||d&gt;f)return l=i,c=r,u=p,f=d,void(o=0);var m=n.lineString([l,i],t.properties);if(!1===e(m,r,a,d,o))return!1;o++,l=i}))&amp;&amp;void 0}}}))}function u(t,e){if(!t)throw new Error(&quot;geojson is required&quot;);l(t,(function(t,r,i){if(null!==t.geometry){var a=t.geometry.type,o=t.geometry.coordinates;switch(a){case&quot;LineString&quot;:if(!1===e(t,r,i,0,0))return!1;break;case&quot;Polygon&quot;:for(var s=0;s&lt;o.length;s++)if(!1===e(n.lineString(o[s],t.properties),r,i,s))return!1}}}))}r.coordEach=i,r.coordReduce=function(t,e,r,n){var a=r;return i(t,(function(t,n,i,o,s){a=0===n&amp;&amp;void 0===r?t:e(a,t,n,i,o,s)}),n),a},r.propEach=a,r.propReduce=function(t,e,r){var n=r;return a(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.featureEach=o,r.featureReduce=function(t,e,r){var n=r;return o(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.coordAll=function(t){var e=[];return i(t,(function(t){e.push(t)})),e},r.geomEach=s,r.geomReduce=function(t,e,r){var n=r;return s(t,(function(t,i,a,o,s){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o,s)})),n},r.flattenEach=l,r.flattenReduce=function(t,e,r){var n=r;return l(t,(function(t,i,a){n=0===i&amp;&amp;0===a&amp;&amp;void 0===r?t:e(n,t,i,a)})),n},r.segmentEach=c,r.segmentReduce=function(t,e,r){var n=r,i=!1;return c(t,(function(t,a,o,s,l){n=!1===i&amp;&amp;void 0===r?t:e(n,t,a,o,s,l),i=!0})),n},r.lineEach=u,r.lineReduce=function(t,e,r){var n=r;return u(t,(function(t,i,a,o){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o)})),n},r.findSegment=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.segmentIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s-1),n.lineString([c[s],c[s+1]],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s-1),n.lineString([c[o][s],c[o][s+1]],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s-1),n.lineString([c[a][s],c[a][s+1]],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s-1),n.lineString([c[a][o][s],c[a][o][s+1]],l,e)}throw new Error(&quot;geojson is invalid&quot;)},r.findPoint=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.coordIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:return n.point(c,l,e);case&quot;MultiPoint&quot;:return a&lt;0&amp;&amp;(a=c.length+a),n.point(c[a],l,e);case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s),n.point(c[s],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s),n.point(c[o][s],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s),n.point(c[a][s],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s),n.point(c[a][o][s],l,e)}throw new Error(&quot;geojson is invalid&quot;)}},{&quot;@turf/helpers&quot;:68}],70:[function(t,e,r){e.exports=function(t){var e=0,r=0,n=0,i=0;return t.map((function(t){var a=(t=t.slice())[0],o=a.toUpperCase();if(a!=o)switch(t[0]=o,a){case&quot;a&quot;:t[6]+=n,t[7]+=i;break;case&quot;v&quot;:t[1]+=i;break;case&quot;h&quot;:t[1]+=n;break;default:for(var s=1;s&lt;t.length;)t[s++]+=n,t[s++]+=i}switch(o){case&quot;Z&quot;:n=e,i=r;break;case&quot;H&quot;:n=t[1];break;case&quot;V&quot;:i=t[1];break;case&quot;M&quot;:n=e=t[1],i=r=t[2];break;default:n=t[t.length-2],i=t[t.length-1]}return t}))}},{}],71:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(!t||null==t.length)throw Error(&quot;Argument should be an array&quot;);e=null==e?1:Math.floor(e);for(var r=Array(2*e),n=0;n&lt;e;n++){for(var i=-1/0,a=1/0,o=n,s=t.length;o&lt;s;o+=e)t[o]&gt;i&amp;&amp;(i=t[o]),t[o]&lt;a&amp;&amp;(a=t[o]);r[n]=a,r[e+n]=i}return r}},{}],72:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(&quot;function&quot;==typeof Array.prototype.findIndex)return t.findIndex(e,r);if(&quot;function&quot;!=typeof e)throw new TypeError(&quot;predicate must be a function&quot;);var n=Object(t),i=n.length;if(0===i)return-1;for(var a=0;a&lt;i;a++)if(e.call(r,n[a],a,n))return a;return-1}},{}],73:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;array-bounds&quot;);e.exports=function(t,e,r){if(!t||null==t.length)throw Error(&quot;Argument should be an array&quot;);null==e&amp;&amp;(e=1);null==r&amp;&amp;(r=n(t,e));for(var i=0;i&lt;e;i++){var a=r[e+i],o=r[i],s=i,l=t.length;if(a===1/0&amp;&amp;o===-1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===a?1:t[s]===o?0:.5;else if(a===1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===a?1:0;else if(o===-1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===o?0:1;else{var c=a-o;for(s=i;s&lt;l;s+=e)isNaN(t[s])||(t[s]=0===c?.5:(t[s]-o)/c)}}return t}},{&quot;array-bounds&quot;:71}],74:[function(t,e,r){e.exports=function(t,e){var r=&quot;number&quot;==typeof t,n=&quot;number&quot;==typeof e;r&amp;&amp;!n?(e=t,t=0):r||n||(t=0,e=0);var i=(e|=0)-(t|=0);if(i&lt;0)throw new Error(&quot;array length must be positive&quot;);for(var a=new Array(i),o=0,s=t;o&lt;i;o++,s++)a[o]=s;return a}},{}],75:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;object-assign&quot;);
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh &lt;feross@feross.org&gt; &lt;http://feross.org&gt;
 * @license  MIT
 */function i(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i&lt;a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r&lt;n?-1:n&lt;r?1:0}function a(t){return r.Buffer&amp;&amp;&quot;function&quot;==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var o=t(&quot;util/&quot;),s=Object.prototype.hasOwnProperty,l=Array.prototype.slice,c=&quot;foo&quot;===function(){}.name;function u(t){return Object.prototype.toString.call(t)}function f(t){return!a(t)&amp;&amp;(&quot;function&quot;==typeof r.ArrayBuffer&amp;&amp;(&quot;function&quot;==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&amp;&amp;(t instanceof DataView||!!(t.buffer&amp;&amp;t.buffer instanceof ArrayBuffer))))}var h=e.exports=y,p=/\s*function\s+([^\(\s]*)\s*/;function d(t){if(o.isFunction(t)){if(c)return t.name;var e=t.toString().match(p);return e&amp;&amp;e[1]}}function m(t,e){return&quot;string&quot;==typeof t?t.length&lt;e?t:t.slice(0,e):t}function g(t){if(c||!o.isFunction(t))return o.inspect(t);var e=d(t);return&quot;[Function&quot;+(e?&quot;: &quot;+e:&quot;&quot;)+&quot;]&quot;}function v(t,e,r,n,i){throw new h.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function y(t,e){t||v(t,!0,e,&quot;==&quot;,h.ok)}function x(t,e,r,n){if(t===e)return!0;if(a(t)&amp;&amp;a(e))return 0===i(t,e);if(o.isDate(t)&amp;&amp;o.isDate(e))return t.getTime()===e.getTime();if(o.isRegExp(t)&amp;&amp;o.isRegExp(e))return t.source===e.source&amp;&amp;t.global===e.global&amp;&amp;t.multiline===e.multiline&amp;&amp;t.lastIndex===e.lastIndex&amp;&amp;t.ignoreCase===e.ignoreCase;if(null!==t&amp;&amp;&quot;object&quot;==typeof t||null!==e&amp;&amp;&quot;object&quot;==typeof e){if(f(t)&amp;&amp;f(e)&amp;&amp;u(t)===u(e)&amp;&amp;!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(a(t)!==a(e))return!1;var s=(n=n||{actual:[],expected:[]}).actual.indexOf(t);return-1!==s&amp;&amp;s===n.expected.indexOf(e)||(n.actual.push(t),n.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(o.isPrimitive(t)||o.isPrimitive(e))return t===e;if(r&amp;&amp;Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=b(t),a=b(e);if(i&amp;&amp;!a||!i&amp;&amp;a)return!1;if(i)return t=l.call(t),e=l.call(e),x(t,e,r);var s,c,u=T(t),f=T(e);if(u.length!==f.length)return!1;for(u.sort(),f.sort(),c=u.length-1;c&gt;=0;c--)if(u[c]!==f[c])return!1;for(c=u.length-1;c&gt;=0;c--)if(s=u[c],!x(t[s],e[s],r,n))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function b(t){return&quot;[object Arguments]&quot;==Object.prototype.toString.call(t)}function _(t,e){if(!t||!e)return!1;if(&quot;[object RegExp]&quot;==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&amp;&amp;!0===e.call({},t)}function w(t,e,r,n){var i;if(&quot;function&quot;!=typeof e)throw new TypeError('&quot;block&quot; argument must be a function');&quot;string&quot;==typeof r&amp;&amp;(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&amp;&amp;r.name?&quot; (&quot;+r.name+&quot;).&quot;:&quot;.&quot;)+(n?&quot; &quot;+n:&quot;.&quot;),t&amp;&amp;!i&amp;&amp;v(i,r,&quot;Missing expected exception&quot;+n);var a=&quot;string&quot;==typeof n,s=!t&amp;&amp;i&amp;&amp;!r;if((!t&amp;&amp;o.isError(i)&amp;&amp;a&amp;&amp;_(i,r)||s)&amp;&amp;v(i,r,&quot;Got unwanted exception&quot;+n),t&amp;&amp;i&amp;&amp;r&amp;&amp;!_(i,r)||!t&amp;&amp;i)throw i}h.AssertionError=function(t){this.name=&quot;AssertionError&quot;,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return m(g(t.actual),128)+&quot; &quot;+t.operator+&quot; &quot;+m(g(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=d(e),a=n.indexOf(&quot;\n&quot;+i);if(a&gt;=0){var o=n.indexOf(&quot;\n&quot;,a+1);n=n.substring(o+1)}this.stack=n}}},o.inherits(h.AssertionError,Error),h.fail=v,h.ok=y,h.equal=function(t,e,r){t!=e&amp;&amp;v(t,e,r,&quot;==&quot;,h.equal)},h.notEqual=function(t,e,r){t==e&amp;&amp;v(t,e,r,&quot;!=&quot;,h.notEqual)},h.deepEqual=function(t,e,r){x(t,e,!1)||v(t,e,r,&quot;deepEqual&quot;,h.deepEqual)},h.deepStrictEqual=function(t,e,r){x(t,e,!0)||v(t,e,r,&quot;deepStrictEqual&quot;,h.deepStrictEqual)},h.notDeepEqual=function(t,e,r){x(t,e,!1)&amp;&amp;v(t,e,r,&quot;notDeepEqual&quot;,h.notDeepEqual)},h.notDeepStrictEqual=function t(e,r,n){x(e,r,!0)&amp;&amp;v(e,r,n,&quot;notDeepStrictEqual&quot;,t)},h.strictEqual=function(t,e,r){t!==e&amp;&amp;v(t,e,r,&quot;===&quot;,h.strictEqual)},h.notStrictEqual=function(t,e,r){t===e&amp;&amp;v(t,e,r,&quot;!==&quot;,h.notStrictEqual)},h.throws=function(t,e,r){w(!0,t,e,r)},h.doesNotThrow=function(t,e,r){w(!1,t,e,r)},h.ifError=function(t){if(t)throw t},h.strict=n((function t(e,r){e||v(e,!0,r,&quot;==&quot;,t)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var T=Object.keys||function(t){var e=[];for(var r in t)s.call(t,r)&amp;&amp;e.push(r);return e}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;object-assign&quot;:247,&quot;util/&quot;:78}],76:[function(t,e,r){&quot;function&quot;==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],77:[function(t,e,r){e.exports=function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;&quot;function&quot;==typeof t.copy&amp;&amp;&quot;function&quot;==typeof t.fill&amp;&amp;&quot;function&quot;==typeof t.readUInt8}},{}],78:[function(t,e,r){(function(e,n){(function(){var i=/%[sdj%]/g;r.format=function(t){if(!v(t)){for(var e=[],r=0;r&lt;arguments.length;r++)e.push(s(arguments[r]));return e.join(&quot; &quot;)}r=1;for(var n=arguments,a=n.length,o=String(t).replace(i,(function(t){if(&quot;%%&quot;===t)return&quot;%&quot;;if(r&gt;=a)return t;switch(t){case&quot;%s&quot;:return String(n[r++]);case&quot;%d&quot;:return Number(n[r++]);case&quot;%j&quot;:try{return JSON.stringify(n[r++])}catch(t){return&quot;[Circular]&quot;}default:return t}})),l=n[r];r&lt;a;l=n[++r])m(l)||!b(l)?o+=&quot; &quot;+l:o+=&quot; &quot;+s(l);return o},r.deprecate=function(t,i){if(y(n.process))return function(){return r.deprecate(t,i).apply(this,arguments)};if(!0===e.noDeprecation)return t;var a=!1;return function(){if(!a){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),a=!0}return t.apply(this,arguments)}};var a,o={};function s(t,e){var n={seen:[],stylize:c};return arguments.length&gt;=3&amp;&amp;(n.depth=arguments[2]),arguments.length&gt;=4&amp;&amp;(n.colors=arguments[3]),d(e)?n.showHidden=e:e&amp;&amp;r._extend(n,e),y(n.showHidden)&amp;&amp;(n.showHidden=!1),y(n.depth)&amp;&amp;(n.depth=2),y(n.colors)&amp;&amp;(n.colors=!1),y(n.customInspect)&amp;&amp;(n.customInspect=!0),n.colors&amp;&amp;(n.stylize=l),u(n,t,n.depth)}function l(t,e){var r=s.styles[e];return r?&quot;\x1b[&quot;+s.colors[r][0]+&quot;m&quot;+t+&quot;\x1b[&quot;+s.colors[r][1]+&quot;m&quot;:t}function c(t,e){return t}function u(t,e,n){if(t.customInspect&amp;&amp;e&amp;&amp;T(e.inspect)&amp;&amp;e.inspect!==r.inspect&amp;&amp;(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return v(i)||(i=u(t,i,n)),i}var a=function(t,e){if(y(e))return t.stylize(&quot;undefined&quot;,&quot;undefined&quot;);if(v(e)){var r=&quot;'&quot;+JSON.stringify(e).replace(/^&quot;|&quot;$/g,&quot;&quot;).replace(/'/g,&quot;\\'&quot;).replace(/\\&quot;/g,'&quot;')+&quot;'&quot;;return t.stylize(r,&quot;string&quot;)}if(g(e))return t.stylize(&quot;&quot;+e,&quot;number&quot;);if(d(e))return t.stylize(&quot;&quot;+e,&quot;boolean&quot;);if(m(e))return t.stylize(&quot;null&quot;,&quot;null&quot;)}(t,e);if(a)return a;var o=Object.keys(e),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&amp;&amp;(o=Object.getOwnPropertyNames(e)),w(e)&amp;&amp;(o.indexOf(&quot;message&quot;)&gt;=0||o.indexOf(&quot;description&quot;)&gt;=0))return f(e);if(0===o.length){if(T(e)){var l=e.name?&quot;: &quot;+e.name:&quot;&quot;;return t.stylize(&quot;[Function&quot;+l+&quot;]&quot;,&quot;special&quot;)}if(x(e))return t.stylize(RegExp.prototype.toString.call(e),&quot;regexp&quot;);if(_(e))return t.stylize(Date.prototype.toString.call(e),&quot;date&quot;);if(w(e))return f(e)}var c,b=&quot;&quot;,k=!1,A=[&quot;{&quot;,&quot;}&quot;];(p(e)&amp;&amp;(k=!0,A=[&quot;[&quot;,&quot;]&quot;]),T(e))&amp;&amp;(b=&quot; [Function&quot;+(e.name?&quot;: &quot;+e.name:&quot;&quot;)+&quot;]&quot;);return x(e)&amp;&amp;(b=&quot; &quot;+RegExp.prototype.toString.call(e)),_(e)&amp;&amp;(b=&quot; &quot;+Date.prototype.toUTCString.call(e)),w(e)&amp;&amp;(b=&quot; &quot;+f(e)),0!==o.length||k&amp;&amp;0!=e.length?n&lt;0?x(e)?t.stylize(RegExp.prototype.toString.call(e),&quot;regexp&quot;):t.stylize(&quot;[Object]&quot;,&quot;special&quot;):(t.seen.push(e),c=k?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o&lt;s;++o)E(e,String(o))?a.push(h(t,e,r,n,String(o),!0)):a.push(&quot;&quot;);return i.forEach((function(i){i.match(/^\d+$/)||a.push(h(t,e,r,n,i,!0))})),a}(t,e,n,s,o):o.map((function(r){return h(t,e,n,s,r,k)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf(&quot;\n&quot;)&gt;=0&amp;&amp;0,t+e.replace(/\u001b\[\d\d?m/g,&quot;&quot;).length+1}),0)&gt;60)return r[0]+(&quot;&quot;===e?&quot;&quot;:e+&quot;\n &quot;)+&quot; &quot;+t.join(&quot;,\n  &quot;)+&quot; &quot;+r[1];return r[0]+e+&quot; &quot;+t.join(&quot;, &quot;)+&quot; &quot;+r[1]}(c,b,A)):A[0]+b+A[1]}function f(t){return&quot;[&quot;+Error.prototype.toString.call(t)+&quot;]&quot;}function h(t,e,r,n,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=l.set?t.stylize(&quot;[Getter/Setter]&quot;,&quot;special&quot;):t.stylize(&quot;[Getter]&quot;,&quot;special&quot;):l.set&amp;&amp;(s=t.stylize(&quot;[Setter]&quot;,&quot;special&quot;)),E(n,i)||(o=&quot;[&quot;+i+&quot;]&quot;),s||(t.seen.indexOf(l.value)&lt;0?(s=m(r)?u(t,l.value,null):u(t,l.value,r-1)).indexOf(&quot;\n&quot;)&gt;-1&amp;&amp;(s=a?s.split(&quot;\n&quot;).map((function(t){return&quot;  &quot;+t})).join(&quot;\n&quot;).substr(2):&quot;\n&quot;+s.split(&quot;\n&quot;).map((function(t){return&quot;   &quot;+t})).join(&quot;\n&quot;)):s=t.stylize(&quot;[Circular]&quot;,&quot;special&quot;)),y(o)){if(a&amp;&amp;i.match(/^\d+$/))return s;(o=JSON.stringify(&quot;&quot;+i)).match(/^&quot;([a-zA-Z_][a-zA-Z_0-9]*)&quot;$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,&quot;name&quot;)):(o=o.replace(/'/g,&quot;\\'&quot;).replace(/\\&quot;/g,'&quot;').replace(/(^&quot;|&quot;$)/g,&quot;'&quot;),o=t.stylize(o,&quot;string&quot;))}return o+&quot;: &quot;+s}function p(t){return Array.isArray(t)}function d(t){return&quot;boolean&quot;==typeof t}function m(t){return null===t}function g(t){return&quot;number&quot;==typeof t}function v(t){return&quot;string&quot;==typeof t}function y(t){return void 0===t}function x(t){return b(t)&amp;&amp;&quot;[object RegExp]&quot;===k(t)}function b(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t}function _(t){return b(t)&amp;&amp;&quot;[object Date]&quot;===k(t)}function w(t){return b(t)&amp;&amp;(&quot;[object Error]&quot;===k(t)||t instanceof Error)}function T(t){return&quot;function&quot;==typeof t}function k(t){return Object.prototype.toString.call(t)}function A(t){return t&lt;10?&quot;0&quot;+t.toString(10):t.toString(10)}r.debuglog=function(t){if(y(a)&amp;&amp;(a=e.env.NODE_DEBUG||&quot;&quot;),t=t.toUpperCase(),!o[t])if(new RegExp(&quot;\\b&quot;+t+&quot;\\b&quot;,&quot;i&quot;).test(a)){var n=e.pid;o[t]=function(){var e=r.format.apply(r,arguments);console.error(&quot;%s %d: %s&quot;,t,n,e)}}else o[t]=function(){};return o[t]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:&quot;cyan&quot;,number:&quot;yellow&quot;,boolean:&quot;yellow&quot;,undefined:&quot;grey&quot;,null:&quot;bold&quot;,string:&quot;green&quot;,date:&quot;magenta&quot;,regexp:&quot;red&quot;},r.isArray=p,r.isBoolean=d,r.isNull=m,r.isNullOrUndefined=function(t){return null==t},r.isNumber=g,r.isString=v,r.isSymbol=function(t){return&quot;symbol&quot;==typeof t},r.isUndefined=y,r.isRegExp=x,r.isObject=b,r.isDate=_,r.isError=w,r.isFunction=T,r.isPrimitive=function(t){return null===t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||&quot;symbol&quot;==typeof t||void 0===t},r.isBuffer=t(&quot;./support/isBuffer&quot;);var M=[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;];function S(){var t=new Date,e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(&quot;:&quot;);return[t.getDate(),M[t.getMonth()],e].join(&quot; &quot;)}function E(t,e){return Object.prototype.hasOwnProperty.call(t,e)}r.log=function(){console.log(&quot;%s - %s&quot;,S(),r.format.apply(r,arguments))},r.inherits=t(&quot;inherits&quot;),r._extend=function(t,e){if(!e||!b(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;./support/isBuffer&quot;:77,_process:277,inherits:76}],79:[function(t,e,r){&quot;use strict&quot;;r.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){var e,r,n=c(t),o=n[0],s=n[1],l=new a(function(t,e,r){return 3*(e+r)/4-r}(0,o,s)),u=0,f=s&gt;0?o-4:o;for(r=0;r&lt;f;r+=4)e=i[t.charCodeAt(r)]&lt;&lt;18|i[t.charCodeAt(r+1)]&lt;&lt;12|i[t.charCodeAt(r+2)]&lt;&lt;6|i[t.charCodeAt(r+3)],l[u++]=e&gt;&gt;16&amp;255,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e;2===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;2|i[t.charCodeAt(r+1)]&gt;&gt;4,l[u++]=255&amp;e);1===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;10|i[t.charCodeAt(r+1)]&lt;&lt;4|i[t.charCodeAt(r+2)]&gt;&gt;2,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e);return l},r.fromByteArray=function(t){for(var e,r=t.length,i=r%3,a=[],o=0,s=r-i;o&lt;s;o+=16383)a.push(u(t,o,o+16383&gt;s?s:o+16383));1===i?(e=t[r-1],a.push(n[e&gt;&gt;2]+n[e&lt;&lt;4&amp;63]+&quot;==&quot;)):2===i&amp;&amp;(e=(t[r-2]&lt;&lt;8)+t[r-1],a.push(n[e&gt;&gt;10]+n[e&gt;&gt;4&amp;63]+n[e&lt;&lt;2&amp;63]+&quot;=&quot;));return a.join(&quot;&quot;)};for(var n=[],i=[],a=&quot;undefined&quot;!=typeof Uint8Array?Uint8Array:Array,o=&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/&quot;,s=0,l=o.length;s&lt;l;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4&gt;0)throw new Error(&quot;Invalid string. Length must be a multiple of 4&quot;);var r=t.indexOf(&quot;=&quot;);return-1===r&amp;&amp;(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var i,a,o=[],s=e;s&lt;r;s+=3)i=(t[s]&lt;&lt;16&amp;16711680)+(t[s+1]&lt;&lt;8&amp;65280)+(255&amp;t[s+2]),o.push(n[(a=i)&gt;&gt;18&amp;63]+n[a&gt;&gt;12&amp;63]+n[a&gt;&gt;6&amp;63]+n[63&amp;a]);return o.join(&quot;&quot;)}i[&quot;-&quot;.charCodeAt(0)]=62,i[&quot;_&quot;.charCodeAt(0)]=63},{}],80:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i){for(var a=i+1;n&lt;=i;){var o=n+i&gt;&gt;&gt;1,s=t[o];(void 0!==r?r(s,e):s-e)&gt;=0?(a=o,i=o-1):n=o+1}return a}function i(t,e,r,n,i){for(var a=i+1;n&lt;=i;){var o=n+i&gt;&gt;&gt;1,s=t[o];(void 0!==r?r(s,e):s-e)&gt;0?(a=o,i=o-1):n=o+1}return a}function a(t,e,r,n,i){for(var a=n-1;n&lt;=i;){var o=n+i&gt;&gt;&gt;1,s=t[o];(void 0!==r?r(s,e):s-e)&lt;0?(a=o,n=o+1):i=o-1}return a}function o(t,e,r,n,i){for(var a=n-1;n&lt;=i;){var o=n+i&gt;&gt;&gt;1,s=t[o];(void 0!==r?r(s,e):s-e)&lt;=0?(a=o,n=o+1):i=o-1}return a}function s(t,e,r,n,i){for(;n&lt;=i;){var a=n+i&gt;&gt;&gt;1,o=t[a],s=void 0!==r?r(o,e):o-e;if(0===s)return a;s&lt;=0?n=a+1:i=a-1}return-1}function l(t,e,r,n,i,a){return&quot;function&quot;==typeof r?a(t,e,r,void 0===n?0:0|n,void 0===i?t.length-1:0|i):a(t,e,void 0,void 0===r?0:0|r,void 0===n?t.length-1:0|n)}e.exports={ge:function(t,e,r,i,a){return l(t,e,r,i,a,n)},gt:function(t,e,r,n,a){return l(t,e,r,n,a,i)},lt:function(t,e,r,n,i){return l(t,e,r,n,i,a)},le:function(t,e,r,n,i){return l(t,e,r,n,i,o)},eq:function(t,e,r,n,i){return l(t,e,r,n,i,s)}}},{}],81:[function(t,e,r){&quot;use strict&quot;;function n(t){var e=32;return(t&amp;=-t)&amp;&amp;e--,65535&amp;t&amp;&amp;(e-=16),16711935&amp;t&amp;&amp;(e-=8),252645135&amp;t&amp;&amp;(e-=4),858993459&amp;t&amp;&amp;(e-=2),1431655765&amp;t&amp;&amp;(e-=1),e}r.INT_BITS=32,r.INT_MAX=2147483647,r.INT_MIN=-1&lt;&lt;31,r.sign=function(t){return(t&gt;0)-(t&lt;0)},r.abs=function(t){var e=t&gt;&gt;31;return(t^e)-e},r.min=function(t,e){return e^(t^e)&amp;-(t&lt;e)},r.max=function(t,e){return t^(t^e)&amp;-(t&lt;e)},r.isPow2=function(t){return!(t&amp;t-1||!t)},r.log2=function(t){var e,r;return e=(t&gt;65535)&lt;&lt;4,e|=r=((t&gt;&gt;&gt;=e)&gt;255)&lt;&lt;3,e|=r=((t&gt;&gt;&gt;=r)&gt;15)&lt;&lt;2,(e|=r=((t&gt;&gt;&gt;=r)&gt;3)&lt;&lt;1)|(t&gt;&gt;&gt;=r)&gt;&gt;1},r.log10=function(t){return t&gt;=1e9?9:t&gt;=1e8?8:t&gt;=1e7?7:t&gt;=1e6?6:t&gt;=1e5?5:t&gt;=1e4?4:t&gt;=1e3?3:t&gt;=100?2:t&gt;=10?1:0},r.popCount=function(t){return 16843009*((t=(858993459&amp;(t-=t&gt;&gt;&gt;1&amp;1431655765))+(t&gt;&gt;&gt;2&amp;858993459))+(t&gt;&gt;&gt;4)&amp;252645135)&gt;&gt;&gt;24},r.countTrailingZeros=n,r.nextPow2=function(t){return t+=0===t,--t,t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)+1},r.prevPow2=function(t){return t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)-(t&gt;&gt;&gt;1)},r.parity=function(t){return t^=t&gt;&gt;&gt;16,t^=t&gt;&gt;&gt;8,t^=t&gt;&gt;&gt;4,27030&gt;&gt;&gt;(t&amp;=15)&amp;1};var i=new Array(256);!function(t){for(var e=0;e&lt;256;++e){var r=e,n=e,i=7;for(r&gt;&gt;&gt;=1;r;r&gt;&gt;&gt;=1)n&lt;&lt;=1,n|=1&amp;r,--i;t[e]=n&lt;&lt;i&amp;255}}(i),r.reverse=function(t){return i[255&amp;t]&lt;&lt;24|i[t&gt;&gt;&gt;8&amp;255]&lt;&lt;16|i[t&gt;&gt;&gt;16&amp;255]&lt;&lt;8|i[t&gt;&gt;&gt;24&amp;255]},r.interleave2=function(t,e){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t&amp;=65535)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e&amp;=65535)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1},r.deinterleave2=function(t,e){return(t=65535&amp;((t=16711935&amp;((t=252645135&amp;((t=858993459&amp;((t=t&gt;&gt;&gt;e&amp;1431655765)|t&gt;&gt;&gt;1))|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;16))&lt;&lt;16&gt;&gt;16},r.interleave3=function(t,e,r){return t=1227133513&amp;((t=3272356035&amp;((t=251719695&amp;((t=4278190335&amp;((t&amp;=1023)|t&lt;&lt;16))|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2),(t|=(e=1227133513&amp;((e=3272356035&amp;((e=251719695&amp;((e=4278190335&amp;((e&amp;=1023)|e&lt;&lt;16))|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))&lt;&lt;1)|(r=1227133513&amp;((r=3272356035&amp;((r=251719695&amp;((r=4278190335&amp;((r&amp;=1023)|r&lt;&lt;16))|r&lt;&lt;8))|r&lt;&lt;4))|r&lt;&lt;2))&lt;&lt;2},r.deinterleave3=function(t,e){return(t=1023&amp;((t=4278190335&amp;((t=251719695&amp;((t=3272356035&amp;((t=t&gt;&gt;&gt;e&amp;1227133513)|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;8))|t&gt;&gt;&gt;16))&lt;&lt;22&gt;&gt;22},r.nextCombination=function(t){var e=t|t-1;return e+1|(~e&amp;-~e)-1&gt;&gt;&gt;n(t)+1}},{}],82:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;clamp&quot;);e.exports=function(t,e){e||(e={});var r,o,s,l,c,u,f,h,p,d,m,g=null==e.cutoff?.25:e.cutoff,v=null==e.radius?8:e.radius,y=e.channel||0;if(ArrayBuffer.isView(t)||Array.isArray(t)){if(!e.width||!e.height)throw Error(&quot;For raw data width and height should be provided by options&quot;);r=e.width,o=e.height,l=t,u=e.stride?e.stride:Math.floor(t.length/r/o)}else window.HTMLCanvasElement&amp;&amp;t instanceof window.HTMLCanvasElement?(f=(h=t).getContext(&quot;2d&quot;),r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.CanvasRenderingContext2D&amp;&amp;t instanceof window.CanvasRenderingContext2D?(h=t.canvas,f=t,r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.ImageData&amp;&amp;t instanceof window.ImageData&amp;&amp;(p=t,r=t.width,o=t.height,l=p.data,u=4);if(s=Math.max(r,o),window.Uint8ClampedArray&amp;&amp;l instanceof window.Uint8ClampedArray||window.Uint8Array&amp;&amp;l instanceof window.Uint8Array)for(c=l,l=Array(r*o),d=0,m=c.length;d&lt;m;d++)l[d]=c[d*u+y]/255;else if(1!==u)throw Error(&quot;Raw data can have only 1 value per pixel&quot;);var x=Array(r*o),b=Array(r*o),_=Array(s),w=Array(s),T=Array(s+1),k=Array(s);for(d=0,m=r*o;d&lt;m;d++){var A=l[d];x[d]=1===A?0:0===A?i:Math.pow(Math.max(0,.5-A),2),b[d]=1===A?i:0===A?0:Math.pow(Math.max(0,A-.5),2)}a(x,r,o,_,w,k,T),a(b,r,o,_,w,k,T);var M=window.Float32Array?new Float32Array(r*o):new Array(r*o);for(d=0,m=r*o;d&lt;m;d++)M[d]=n(1-((x[d]-b[d])/v+g),0,1);return M};var i=1e20;function a(t,e,r,n,i,a,s){for(var l=0;l&lt;e;l++){for(var c=0;c&lt;r;c++)n[c]=t[c*e+l];for(o(n,i,a,s,r),c=0;c&lt;r;c++)t[c*e+l]=i[c]}for(c=0;c&lt;r;c++){for(l=0;l&lt;e;l++)n[l]=t[c*e+l];for(o(n,i,a,s,e),l=0;l&lt;e;l++)t[c*e+l]=Math.sqrt(i[l])}}function o(t,e,r,n,a){r[0]=0,n[0]=-i,n[1]=+i;for(var o=1,s=0;o&lt;a;o++){for(var l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);l&lt;=n[s];)s--,l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);r[++s]=o,n[s]=l,n[s+1]=+i}for(o=0,s=0;o&lt;a;o++){for(;n[s+1]&lt;o;)s++;e[o]=(o-r[s])*(o-r[s])+t[r[s]]}}},{clamp:86}],83:[function(t,e,r){},{}],84:[function(t,e,r){&quot;use strict&quot;;var n,i=&quot;object&quot;==typeof Reflect?Reflect:null,a=i&amp;&amp;&quot;function&quot;==typeof i.apply?i.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=i&amp;&amp;&quot;function&quot;==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(t,e){return new Promise((function(r,n){function i(){void 0!==a&amp;&amp;t.removeListener(&quot;error&quot;,a),r([].slice.call(arguments))}var a;&quot;error&quot;!==e&amp;&amp;(a=function(r){t.removeListener(e,i),n(r)},t.once(&quot;error&quot;,a)),t.once(e,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(t){if(&quot;function&quot;!=typeof t)throw new TypeError('The &quot;listener&quot; argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function f(t,e,r,n){var i,a,o,s;if(c(r),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&amp;&amp;(t.emit(&quot;newListener&quot;,e,r.listener?r.listener:r),a=t._events),o=a[e]),void 0===o)o=a[e]=r,++t._eventsCount;else if(&quot;function&quot;==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=u(t))&gt;0&amp;&amp;o.length&gt;i&amp;&amp;!o.warned){o.warned=!0;var l=new Error(&quot;Possible EventEmitter memory leak detected. &quot;+o.length+&quot; &quot;+String(e)+&quot; listeners added. Use emitter.setMaxListeners() to increase limit&quot;);l.name=&quot;MaxListenersExceededWarning&quot;,l.emitter=t,l.type=e,l.count=o.length,s=l,console&amp;&amp;console.warn&amp;&amp;console.warn(s)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function d(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:&quot;function&quot;==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r&lt;e.length;++r)e[r]=t[r].listener||t[r];return e}(i):g(i,i.length)}function m(t){var e=this._events;if(void 0!==e){var r=e[t];if(&quot;function&quot;==typeof r)return 1;if(void 0!==r)return r.length}return 0}function g(t,e){for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n];return r}Object.defineProperty(s,&quot;defaultMaxListeners&quot;,{enumerable:!0,get:function(){return l},set:function(t){if(&quot;number&quot;!=typeof t||t&lt;0||o(t))throw new RangeError('The value of &quot;defaultMaxListeners&quot; is out of range. It must be a non-negative number. Received '+t+&quot;.&quot;);l=t}}),s.init=function(){void 0!==this._events&amp;&amp;this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(t){if(&quot;number&quot;!=typeof t||t&lt;0||o(t))throw new RangeError('The value of &quot;n&quot; is out of range. It must be a non-negative number. Received '+t+&quot;.&quot;);return this._maxListeners=t,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(t){for(var e=[],r=1;r&lt;arguments.length;r++)e.push(arguments[r]);var n=&quot;error&quot;===t,i=this._events;if(void 0!==i)n=n&amp;&amp;void 0===i.error;else if(!n)return!1;if(n){var o;if(e.length&gt;0&amp;&amp;(o=e[0]),o instanceof Error)throw o;var s=new Error(&quot;Unhandled error.&quot;+(o?&quot; (&quot;+o.message+&quot;)&quot;:&quot;&quot;));throw s.context=o,s}var l=i[t];if(void 0===l)return!1;if(&quot;function&quot;==typeof l)a(l,this,e);else{var c=l.length,u=g(l,c);for(r=0;r&lt;c;++r)a(u[r],this,e)}return!0},s.prototype.addListener=function(t,e){return f(this,t,e,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(t,e){return f(this,t,e,!0)},s.prototype.once=function(t,e){return c(e),this.on(t,p(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,p(this,t,e)),this},s.prototype.removeListener=function(t,e){var r,n,i,a,o;if(c(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,t,r.listener||e));else if(&quot;function&quot;!=typeof r){for(i=-1,a=r.length-1;a&gt;=0;a--)if(r[a]===e||r[a].listener===e){o=r[a].listener,i=a;break}if(i&lt;0)return this;0===i?r.shift():function(t,e){for(;e+1&lt;t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&amp;&amp;(n[t]=r[0]),void 0!==n.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,t,o||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&amp;&amp;(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,a=Object.keys(r);for(n=0;n&lt;a.length;++n)&quot;removeListener&quot;!==(i=a[n])&amp;&amp;this.removeAllListeners(i);return this.removeAllListeners(&quot;removeListener&quot;),this._events=Object.create(null),this._eventsCount=0,this}if(&quot;function&quot;==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n&gt;=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return&quot;function&quot;==typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount&gt;0?n(this._events):[]}},{}],85:[function(t,e,r){(function(e){(function(){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh &lt;https://feross.org&gt;
 * @license  MIT
 */
&quot;use strict&quot;;var e=t(&quot;base64-js&quot;),n=t(&quot;ieee754&quot;);r.Buffer=a,r.SlowBuffer=function(t){+t!=t&amp;&amp;(t=0);return a.alloc(+t)},r.INSPECT_MAX_BYTES=50;function i(t){if(t&gt;2147483647)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;');var e=new Uint8Array(t);return e.__proto__=a.prototype,e}function a(t,e,r){if(&quot;number&quot;==typeof t){if(&quot;string&quot;==typeof e)throw new TypeError('The &quot;string&quot; argument must be of type string. Received type number');return l(t)}return o(t,e,r)}function o(t,e,r){if(&quot;string&quot;==typeof t)return function(t,e){&quot;string&quot;==typeof e&amp;&amp;&quot;&quot;!==e||(e=&quot;utf8&quot;);if(!a.isEncoding(e))throw new TypeError(&quot;Unknown encoding: &quot;+e);var r=0|f(t,e),n=i(r),o=n.write(t,e);o!==r&amp;&amp;(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t);if(B(t,ArrayBuffer)||t&amp;&amp;B(t.buffer,ArrayBuffer))return function(t,e,r){if(e&lt;0||t.byteLength&lt;e)throw new RangeError('&quot;offset&quot; is outside of buffer bounds');if(t.byteLength&lt;e+(r||0))throw new RangeError('&quot;length&quot; is outside of buffer bounds');var n;n=void 0===e&amp;&amp;void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return n.__proto__=a.prototype,n}(t,e,r);if(&quot;number&quot;==typeof t)throw new TypeError('The &quot;value&quot; argument must not be of type number. Received type number');var n=t.valueOf&amp;&amp;t.valueOf();if(null!=n&amp;&amp;n!==t)return a.from(n,e,r);var o=function(t){if(a.isBuffer(t)){var e=0|u(t.length),r=i(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return&quot;number&quot;!=typeof t.length||N(t.length)?i(0):c(t);if(&quot;Buffer&quot;===t.type&amp;&amp;Array.isArray(t.data))return c(t.data)}(t);if(o)return o;if(&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.toPrimitive&amp;&amp;&quot;function&quot;==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive](&quot;string&quot;),e,r);throw new TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t)}function s(t){if(&quot;number&quot;!=typeof t)throw new TypeError('&quot;size&quot; argument must be of type number');if(t&lt;0)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;')}function l(t){return s(t),i(t&lt;0?0:0|u(t))}function c(t){for(var e=t.length&lt;0?0:0|u(t.length),r=i(e),n=0;n&lt;e;n+=1)r[n]=255&amp;t[n];return r}function u(t){if(t&gt;=2147483647)throw new RangeError(&quot;Attempt to allocate Buffer larger than maximum size: 0x&quot;+2147483647..toString(16)+&quot; bytes&quot;);return 0|t}function f(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||B(t,ArrayBuffer))return t.byteLength;if(&quot;string&quot;!=typeof t)throw new TypeError('The &quot;string&quot; argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length&gt;2&amp;&amp;!0===arguments[2];if(!n&amp;&amp;0===r)return 0;for(var i=!1;;)switch(e){case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:return r;case&quot;utf8&quot;:case&quot;utf-8&quot;:return D(t).length;case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return 2*r;case&quot;hex&quot;:return r&gt;&gt;&gt;1;case&quot;base64&quot;:return R(t).length;default:if(i)return n?-1:D(t).length;e=(&quot;&quot;+e).toLowerCase(),i=!0}}function h(t,e,r){var n=!1;if((void 0===e||e&lt;0)&amp;&amp;(e=0),e&gt;this.length)return&quot;&quot;;if((void 0===r||r&gt;this.length)&amp;&amp;(r=this.length),r&lt;=0)return&quot;&quot;;if((r&gt;&gt;&gt;=0)&lt;=(e&gt;&gt;&gt;=0))return&quot;&quot;;for(t||(t=&quot;utf8&quot;);;)switch(t){case&quot;hex&quot;:return M(this,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return T(this,e,r);case&quot;ascii&quot;:return k(this,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return A(this,e,r);case&quot;base64&quot;:return w(this,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return S(this,e,r);default:if(n)throw new TypeError(&quot;Unknown encoding: &quot;+t);t=(t+&quot;&quot;).toLowerCase(),n=!0}}function p(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,i){if(0===t.length)return-1;if(&quot;string&quot;==typeof r?(n=r,r=0):r&gt;2147483647?r=2147483647:r&lt;-2147483648&amp;&amp;(r=-2147483648),N(r=+r)&amp;&amp;(r=i?0:t.length-1),r&lt;0&amp;&amp;(r=t.length+r),r&gt;=t.length){if(i)return-1;r=t.length-1}else if(r&lt;0){if(!i)return-1;r=0}if(&quot;string&quot;==typeof e&amp;&amp;(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,i);if(&quot;number&quot;==typeof e)return e&amp;=255,&quot;function&quot;==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,i);throw new TypeError(&quot;val must be string, number or Buffer&quot;)}function m(t,e,r,n,i){var a,o=1,s=t.length,l=e.length;if(void 0!==n&amp;&amp;(&quot;ucs2&quot;===(n=String(n).toLowerCase())||&quot;ucs-2&quot;===n||&quot;utf16le&quot;===n||&quot;utf-16le&quot;===n)){if(t.length&lt;2||e.length&lt;2)return-1;o=2,s/=2,l/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var u=-1;for(a=r;a&lt;s;a++)if(c(t,a)===c(e,-1===u?0:a-u)){if(-1===u&amp;&amp;(u=a),a-u+1===l)return u*o}else-1!==u&amp;&amp;(a-=a-u),u=-1}else for(r+l&gt;s&amp;&amp;(r=s-l),a=r;a&gt;=0;a--){for(var f=!0,h=0;h&lt;l;h++)if(c(t,a+h)!==c(e,h)){f=!1;break}if(f)return a}return-1}function g(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))&gt;i&amp;&amp;(n=i):n=i;var a=e.length;n&gt;a/2&amp;&amp;(n=a/2);for(var o=0;o&lt;n;++o){var s=parseInt(e.substr(2*o,2),16);if(N(s))return o;t[r+o]=s}return o}function v(t,e,r,n){return F(D(e,t.length-r),t,r,n)}function y(t,e,r,n){return F(function(t){for(var e=[],r=0;r&lt;t.length;++r)e.push(255&amp;t.charCodeAt(r));return e}(e),t,r,n)}function x(t,e,r,n){return y(t,e,r,n)}function b(t,e,r,n){return F(R(e),t,r,n)}function _(t,e,r,n){return F(function(t,e){for(var r,n,i,a=[],o=0;o&lt;t.length&amp;&amp;!((e-=2)&lt;0);++o)r=t.charCodeAt(o),n=r&gt;&gt;8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function w(t,r,n){return 0===r&amp;&amp;n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function T(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i&lt;r;){var a,o,s,l,c=t[i],u=null,f=c&gt;239?4:c&gt;223?3:c&gt;191?2:1;if(i+f&lt;=r)switch(f){case 1:c&lt;128&amp;&amp;(u=c);break;case 2:128==(192&amp;(a=t[i+1]))&amp;&amp;(l=(31&amp;c)&lt;&lt;6|63&amp;a)&gt;127&amp;&amp;(u=l);break;case 3:a=t[i+1],o=t[i+2],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;(l=(15&amp;c)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;o)&gt;2047&amp;&amp;(l&lt;55296||l&gt;57343)&amp;&amp;(u=l);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;128==(192&amp;s)&amp;&amp;(l=(15&amp;c)&lt;&lt;18|(63&amp;a)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;s)&gt;65535&amp;&amp;l&lt;1114112&amp;&amp;(u=l)}null===u?(u=65533,f=1):u&gt;65535&amp;&amp;(u-=65536,n.push(u&gt;&gt;&gt;10&amp;1023|55296),u=56320|1023&amp;u),n.push(u),i+=f}return function(t){var e=t.length;if(e&lt;=4096)return String.fromCharCode.apply(String,t);var r=&quot;&quot;,n=0;for(;n&lt;e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}r.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||&quot;undefined&quot;==typeof console||&quot;function&quot;!=typeof console.error||console.error(&quot;This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.&quot;),Object.defineProperty(a.prototype,&quot;parent&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,&quot;offset&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.species&amp;&amp;a[Symbol.species]===a&amp;&amp;Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(t,e,r){return o(t,e,r)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(t,e,r){return function(t,e,r){return s(t),t&lt;=0?i(t):void 0!==e?&quot;string&quot;==typeof r?i(t).fill(e,r):i(t).fill(e):i(t)}(t,e,r)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&amp;&amp;!0===t._isBuffer&amp;&amp;t!==a.prototype},a.compare=function(t,e){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),B(e,Uint8Array)&amp;&amp;(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError('The &quot;buf1&quot;, &quot;buf2&quot; arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i&lt;o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r&lt;n?-1:n&lt;r?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case&quot;hex&quot;:case&quot;utf8&quot;:case&quot;utf-8&quot;:case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:case&quot;base64&quot;:case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return!0;default:return!1}},a.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);var r;if(void 0===e)for(e=0,r=0;r&lt;t.length;++r)e+=t[r].length;var n=a.allocUnsafe(e),i=0;for(r=0;r&lt;t.length;++r){var o=t[r];if(B(o,Uint8Array)&amp;&amp;(o=a.from(o)),!a.isBuffer(o))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(&quot;Buffer size must be a multiple of 16-bits&quot;);for(var e=0;e&lt;t;e+=2)p(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(&quot;Buffer size must be a multiple of 32-bits&quot;);for(var e=0;e&lt;t;e+=4)p(this,e,e+3),p(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(&quot;Buffer size must be a multiple of 64-bits&quot;);for(var e=0;e&lt;t;e+=8)p(this,e,e+7),p(this,e+1,e+6),p(this,e+2,e+5),p(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?&quot;&quot;:0===arguments.length?T(this,0,t):h.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError(&quot;Argument must be a Buffer&quot;);return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t=&quot;&quot;,e=r.INSPECT_MAX_BYTES;return t=this.toString(&quot;hex&quot;,0,e).replace(/(.{2})/g,&quot;$1 &quot;).trim(),this.length&gt;e&amp;&amp;(t+=&quot; ... &quot;),&quot;&lt;Buffer &quot;+t+&quot;&gt;&quot;},a.prototype.compare=function(t,e,r,n,i){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The &quot;target&quot; argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&amp;&amp;(e=0),void 0===r&amp;&amp;(r=t?t.length:0),void 0===n&amp;&amp;(n=0),void 0===i&amp;&amp;(i=this.length),e&lt;0||r&gt;t.length||n&lt;0||i&gt;this.length)throw new RangeError(&quot;out of range index&quot;);if(n&gt;=i&amp;&amp;e&gt;=r)return 0;if(n&gt;=i)return-1;if(e&gt;=r)return 1;if(this===t)return 0;for(var o=(i&gt;&gt;&gt;=0)-(n&gt;&gt;&gt;=0),s=(r&gt;&gt;&gt;=0)-(e&gt;&gt;&gt;=0),l=Math.min(o,s),c=this.slice(n,i),u=t.slice(e,r),f=0;f&lt;l;++f)if(c[f]!==u[f]){o=c[f],s=u[f];break}return o&lt;s?-1:s&lt;o?1:0},a.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return d(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return d(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){if(void 0===e)n=&quot;utf8&quot;,r=this.length,e=0;else if(void 0===r&amp;&amp;&quot;string&quot;==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error(&quot;Buffer.write(string, encoding, offset[, length]) is no longer supported&quot;);e&gt;&gt;&gt;=0,isFinite(r)?(r&gt;&gt;&gt;=0,void 0===n&amp;&amp;(n=&quot;utf8&quot;)):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r&gt;i)&amp;&amp;(r=i),t.length&gt;0&amp;&amp;(r&lt;0||e&lt;0)||e&gt;this.length)throw new RangeError(&quot;Attempt to write outside buffer bounds&quot;);n||(n=&quot;utf8&quot;);for(var a=!1;;)switch(n){case&quot;hex&quot;:return g(this,t,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return v(this,t,e,r);case&quot;ascii&quot;:return y(this,t,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return x(this,t,e,r);case&quot;base64&quot;:return b(this,t,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return _(this,t,e,r);default:if(a)throw new TypeError(&quot;Unknown encoding: &quot;+n);n=(&quot;&quot;+n).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:&quot;Buffer&quot;,data:Array.prototype.slice.call(this._arr||this,0)}};function k(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(127&amp;t[i]);return n}function A(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(t[i]);return n}function M(t,e,r){var n=t.length;(!e||e&lt;0)&amp;&amp;(e=0),(!r||r&lt;0||r&gt;n)&amp;&amp;(r=n);for(var i=&quot;&quot;,a=e;a&lt;r;++a)i+=z(t[a]);return i}function S(t,e,r){for(var n=t.slice(e,r),i=&quot;&quot;,a=0;a&lt;n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function E(t,e,r){if(t%1!=0||t&lt;0)throw new RangeError(&quot;offset is not uint&quot;);if(t+e&gt;r)throw new RangeError(&quot;Trying to access beyond buffer length&quot;)}function L(t,e,r,n,i,o){if(!a.isBuffer(t))throw new TypeError('&quot;buffer&quot; argument must be a Buffer instance');if(e&gt;i||e&lt;o)throw new RangeError('&quot;value&quot; argument is out of bounds');if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;)}function C(t,e,r,n,i,a){if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;);if(r&lt;0)throw new RangeError(&quot;Index out of range&quot;)}function P(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||C(t,0,r,4),n.write(t,e,r,i,23,4),r+4}function I(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||C(t,0,r,8),n.write(t,e,r,i,52,8),r+8}a.prototype.slice=function(t,e){var r=this.length;(t=~~t)&lt;0?(t+=r)&lt;0&amp;&amp;(t=0):t&gt;r&amp;&amp;(t=r),(e=void 0===e?r:~~e)&lt;0?(e+=r)&lt;0&amp;&amp;(e=0):e&gt;r&amp;&amp;(e=r),e&lt;t&amp;&amp;(e=t);var n=this.subarray(t,e);return n.__proto__=a.prototype,n},a.prototype.readUIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n},a.prototype.readUIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t+--e],i=1;e&gt;0&amp;&amp;(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]|this[t+1]&lt;&lt;8},a.prototype.readUInt16BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]&lt;&lt;8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),(this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),16777216*this[t]+(this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n&gt;=(i*=128)&amp;&amp;(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n&gt;0&amp;&amp;(i*=256);)a+=this[t+--n]*i;return a&gt;=(i*=128)&amp;&amp;(a-=Math.pow(2,8*e)),a},a.prototype.readInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),128&amp;this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t]|this[t+1]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t+1]|this[t]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16|this[t+3]&lt;&lt;24},a.prototype.readInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]&lt;&lt;24|this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(i*=256);)this[e+a]=t/i&amp;255;return e+r},a.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&amp;t;--i&gt;=0&amp;&amp;(a*=256);)this[e+i]=t/a&amp;255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,1,255,0),this[e]=255&amp;t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,2,65535,0),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,2,65535,0),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,4,4294967295,0),this[e+3]=t&gt;&gt;&gt;24,this[e+2]=t&gt;&gt;&gt;16,this[e+1]=t&gt;&gt;&gt;8,this[e]=255&amp;t,e+4},a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,4,4294967295,0),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a-1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&amp;t;--a&gt;=0&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a+1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,1,127,-128),t&lt;0&amp;&amp;(t=255+t+1),this[e]=255&amp;t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,2,32767,-32768),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,2,32767,-32768),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,4,2147483647,-2147483648),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,this[e+2]=t&gt;&gt;&gt;16,this[e+3]=t&gt;&gt;&gt;24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,4,2147483647,-2147483648),t&lt;0&amp;&amp;(t=4294967295+t+1),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeFloatLE=function(t,e,r){return P(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return P(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return I(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return I(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw new TypeError(&quot;argument should be a Buffer&quot;);if(r||(r=0),n||0===n||(n=this.length),e&gt;=t.length&amp;&amp;(e=t.length),e||(e=0),n&gt;0&amp;&amp;n&lt;r&amp;&amp;(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e&lt;0)throw new RangeError(&quot;targetStart out of bounds&quot;);if(r&lt;0||r&gt;=this.length)throw new RangeError(&quot;Index out of range&quot;);if(n&lt;0)throw new RangeError(&quot;sourceEnd out of bounds&quot;);n&gt;this.length&amp;&amp;(n=this.length),t.length-e&lt;n-r&amp;&amp;(n=t.length-e+r);var i=n-r;if(this===t&amp;&amp;&quot;function&quot;==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&amp;&amp;r&lt;e&amp;&amp;e&lt;n)for(var o=i-1;o&gt;=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},a.prototype.fill=function(t,e,r,n){if(&quot;string&quot;==typeof t){if(&quot;string&quot;==typeof e?(n=e,e=0,r=this.length):&quot;string&quot;==typeof r&amp;&amp;(n=r,r=this.length),void 0!==n&amp;&amp;&quot;string&quot;!=typeof n)throw new TypeError(&quot;encoding must be a string&quot;);if(&quot;string&quot;==typeof n&amp;&amp;!a.isEncoding(n))throw new TypeError(&quot;Unknown encoding: &quot;+n);if(1===t.length){var i=t.charCodeAt(0);(&quot;utf8&quot;===n&amp;&amp;i&lt;128||&quot;latin1&quot;===n)&amp;&amp;(t=i)}}else&quot;number&quot;==typeof t&amp;&amp;(t&amp;=255);if(e&lt;0||this.length&lt;e||this.length&lt;r)throw new RangeError(&quot;Out of range index&quot;);if(r&lt;=e)return this;var o;if(e&gt;&gt;&gt;=0,r=void 0===r?this.length:r&gt;&gt;&gt;0,t||(t=0),&quot;number&quot;==typeof t)for(o=e;o&lt;r;++o)this[o]=t;else{var s=a.isBuffer(t)?t:a.from(t,n),l=s.length;if(0===l)throw new TypeError('The value &quot;'+t+'&quot; is invalid for argument &quot;value&quot;');for(o=0;o&lt;r-e;++o)this[o+e]=s[o%l]}return this};var O=/[^+/0-9A-Za-z-_]/g;function z(t){return t&lt;16?&quot;0&quot;+t.toString(16):t.toString(16)}function D(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o&lt;n;++o){if((r=t.charCodeAt(o))&gt;55295&amp;&amp;r&lt;57344){if(!i){if(r&gt;56319){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}if(o+1===n){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}i=r;continue}if(r&lt;56320){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189),i=r;continue}r=65536+(i-55296&lt;&lt;10|r-56320)}else i&amp;&amp;(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);if(i=null,r&lt;128){if((e-=1)&lt;0)break;a.push(r)}else if(r&lt;2048){if((e-=2)&lt;0)break;a.push(r&gt;&gt;6|192,63&amp;r|128)}else if(r&lt;65536){if((e-=3)&lt;0)break;a.push(r&gt;&gt;12|224,r&gt;&gt;6&amp;63|128,63&amp;r|128)}else{if(!(r&lt;1114112))throw new Error(&quot;Invalid code point&quot;);if((e-=4)&lt;0)break;a.push(r&gt;&gt;18|240,r&gt;&gt;12&amp;63|128,r&gt;&gt;6&amp;63|128,63&amp;r|128)}}return a}function R(t){return e.toByteArray(function(t){if((t=(t=t.split(&quot;=&quot;)[0]).trim().replace(O,&quot;&quot;)).length&lt;2)return&quot;&quot;;for(;t.length%4!=0;)t+=&quot;=&quot;;return t}(t))}function F(t,e,r,n){for(var i=0;i&lt;n&amp;&amp;!(i+r&gt;=e.length||i&gt;=t.length);++i)e[i+r]=t[i];return i}function B(t,e){return t instanceof e||null!=t&amp;&amp;null!=t.constructor&amp;&amp;null!=t.constructor.name&amp;&amp;t.constructor.name===e.name}function N(t){return t!=t}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;base64-js&quot;:79,buffer:85,ieee754:230}],86:[function(t,e,r){e.exports=function(t,e,r){return e&lt;r?t&lt;e?e:t&gt;r?r:t:t&lt;r?r:t&gt;e?e:t}},{}],87:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;clamp&quot;);function i(t,e){null==e&amp;&amp;(e=!0);var r=t[0],i=t[1],a=t[2],o=t[3];return null==o&amp;&amp;(o=e?1:255),e&amp;&amp;(r*=255,i*=255,a*=255,o*=255),16777216*(r=255&amp;n(r,0,255))+((i=255&amp;n(i,0,255))&lt;&lt;16)+((a=255&amp;n(a,0,255))&lt;&lt;8)+(o=255&amp;n(o,0,255))}e.exports=i,e.exports.to=i,e.exports.from=function(t,e){var r=(t=+t)&gt;&gt;&gt;24,n=(16711680&amp;t)&gt;&gt;&gt;16,i=(65280&amp;t)&gt;&gt;&gt;8,a=255&amp;t;return!1===e?[r,n,i,a]:[r/255,n/255,i/255,a/255]}},{clamp:86}],88:[function(t,e,r){&quot;use strict&quot;;e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],89:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-rgba&quot;),i=t(&quot;clamp&quot;),a=t(&quot;dtype&quot;);e.exports=function(t,e){&quot;float&quot;!==e&amp;&amp;e||(e=&quot;array&quot;),&quot;uint&quot;===e&amp;&amp;(e=&quot;uint8&quot;),&quot;uint_clamped&quot;===e&amp;&amp;(e=&quot;uint8_clamped&quot;);var r=new(a(e))(4),o=&quot;uint8&quot;!==e&amp;&amp;&quot;uint8_clamped&quot;!==e;return t.length&amp;&amp;&quot;string&quot;!=typeof t||((t=n(t))[0]/=255,t[1]/=255,t[2]/=255),function(t){return t instanceof Uint8Array||t instanceof Uint8ClampedArray||!!(Array.isArray(t)&amp;&amp;(t[0]&gt;1||0===t[0])&amp;&amp;(t[1]&gt;1||0===t[1])&amp;&amp;(t[2]&gt;1||0===t[2])&amp;&amp;(!t[3]||t[3]&gt;1))}(t)?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:255,o&amp;&amp;(r[0]/=255,r[1]/=255,r[2]/=255,r[3]/=255),r):(o?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:1):(r[0]=i(Math.floor(255*t[0]),0,255),r[1]=i(Math.floor(255*t[1]),0,255),r[2]=i(Math.floor(255*t[2]),0,255),r[3]=null==t[3]?255:i(Math.floor(255*t[3]),0,255)),r)}},{clamp:86,&quot;color-rgba&quot;:91,dtype:127}],90:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;color-name&quot;),i=t(&quot;is-plain-obj&quot;),a=t(&quot;defined&quot;);e.exports=function(t){var e,s,l=[],c=1;if(&quot;string&quot;==typeof t)if(n[t])l=n[t].slice(),s=&quot;rgb&quot;;else if(&quot;transparent&quot;===t)c=0,s=&quot;rgb&quot;,l=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var u=(p=t.slice(1)).length;c=1,u&lt;=4?(l=[parseInt(p[0]+p[0],16),parseInt(p[1]+p[1],16),parseInt(p[2]+p[2],16)],4===u&amp;&amp;(c=parseInt(p[3]+p[3],16)/255)):(l=[parseInt(p[0]+p[1],16),parseInt(p[2]+p[3],16),parseInt(p[4]+p[5],16)],8===u&amp;&amp;(c=parseInt(p[6]+p[7],16)/255)),l[0]||(l[0]=0),l[1]||(l[1]=0),l[2]||(l[2]=0),s=&quot;rgb&quot;}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(t)){var f=e[1],h=&quot;rgb&quot;===f,p=f.replace(/a$/,&quot;&quot;);s=p;u=&quot;cmyk&quot;===p?4:&quot;gray&quot;===p?1:3;l=e[2].trim().split(/\s*,\s*/).map((function(t,e){if(/%$/.test(t))return e===u?parseFloat(t)/100:&quot;rgb&quot;===p?255*parseFloat(t)/100:parseFloat(t);if(&quot;h&quot;===p[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==o[t])return o[t]}return parseFloat(t)})),f===p&amp;&amp;l.push(1),c=h||void 0===l[u]?1:l[u],l=l.slice(0,u)}else t.length&gt;10&amp;&amp;/[0-9](?:\s|\/)/.test(t)&amp;&amp;(l=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),s=t.match(/([a-z])/gi).join(&quot;&quot;).toLowerCase());else if(isNaN(t))if(i(t)){var d=a(t.r,t.red,t.R,null);null!==d?(s=&quot;rgb&quot;,l=[d,a(t.g,t.green,t.G),a(t.b,t.blue,t.B)]):(s=&quot;hsl&quot;,l=[a(t.h,t.hue,t.H),a(t.s,t.saturation,t.S),a(t.l,t.lightness,t.L,t.b,t.brightness)]),c=a(t.a,t.alpha,t.opacity,1),null!=t.opacity&amp;&amp;(c/=100)}else(Array.isArray(t)||r.ArrayBuffer&amp;&amp;ArrayBuffer.isView&amp;&amp;ArrayBuffer.isView(t))&amp;&amp;(l=[t[0],t[1],t[2]],s=&quot;rgb&quot;,c=4===t.length?t[3]:1);else s=&quot;rgb&quot;,l=[t&gt;&gt;&gt;16,(65280&amp;t)&gt;&gt;&gt;8,255&amp;t];return{space:s,values:l,alpha:c}};var o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;color-name&quot;:88,defined:124,&quot;is-plain-obj&quot;:236}],91:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-parse&quot;),i=t(&quot;color-space/hsl&quot;),a=t(&quot;clamp&quot;);e.exports=function(t){var e,r=n(t);return r.space?((e=Array(3))[0]=a(r.values[0],0,255),e[1]=a(r.values[1],0,255),e[2]=a(r.values[2],0,255),&quot;h&quot;===r.space[0]&amp;&amp;(e=i.rgb(e)),e.push(a(r.alpha,0,1)),e):[]}},{clamp:86,&quot;color-parse&quot;:90,&quot;color-space/hsl&quot;:92}],92:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./rgb&quot;);e.exports={name:&quot;hsl&quot;,min:[0,0,0],max:[360,100,100],channel:[&quot;hue&quot;,&quot;saturation&quot;,&quot;lightness&quot;],alias:[&quot;HSL&quot;],rgb:function(t){var e,r,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[a=255*l,a,a];e=2*l-(r=l&lt;.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c&lt;3;c++)(n=o+1/3*-(c-1))&lt;0?n++:n&gt;1&amp;&amp;n--,a=6*n&lt;1?e+6*(r-e)*n:2*n&lt;1?r:3*n&lt;2?e+(r-e)*(2/3-n)*6:e,i[c]=255*a;return i}},n.hsl=function(t){var e,r,n=t[0]/255,i=t[1]/255,a=t[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o;return s===o?e=0:n===s?e=(i-a)/l:i===s?e=2+(a-n)/l:a===s&amp;&amp;(e=4+(n-i)/l),(e=Math.min(60*e,360))&lt;0&amp;&amp;(e+=360),r=(o+s)/2,[e,100*(s===o?0:r&lt;=.5?l/(s+o):l/(2-s-o)),100*r]}},{&quot;./rgb&quot;:93}],93:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;rgb&quot;,min:[0,0,0],max:[255,255,255],channel:[&quot;red&quot;,&quot;green&quot;,&quot;blue&quot;],alias:[&quot;RGB&quot;]}},{}],94:[function(t,e,r){e.exports={AFG:&quot;afghan&quot;,ALA:&quot;\\b\\wland&quot;,ALB:&quot;albania&quot;,DZA:&quot;algeria&quot;,ASM:&quot;^(?=.*americ).*samoa&quot;,AND:&quot;andorra&quot;,AGO:&quot;angola&quot;,AIA:&quot;anguill?a&quot;,ATA:&quot;antarctica&quot;,ATG:&quot;antigua&quot;,ARG:&quot;argentin&quot;,ARM:&quot;armenia&quot;,ABW:&quot;^(?!.*bonaire).*\\baruba&quot;,AUS:&quot;australia&quot;,AUT:&quot;^(?!.*hungary).*austria|\\baustri.*\\bemp&quot;,AZE:&quot;azerbaijan&quot;,BHS:&quot;bahamas&quot;,BHR:&quot;bahrain&quot;,BGD:&quot;bangladesh|^(?=.*east).*paki?stan&quot;,BRB:&quot;barbados&quot;,BLR:&quot;belarus|byelo&quot;,BEL:&quot;^(?!.*luxem).*belgium&quot;,BLZ:&quot;belize|^(?=.*british).*honduras&quot;,BEN:&quot;benin|dahome&quot;,BMU:&quot;bermuda&quot;,BTN:&quot;bhutan&quot;,BOL:&quot;bolivia&quot;,BES:&quot;^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands&quot;,BIH:&quot;herzegovina|bosnia&quot;,BWA:&quot;botswana|bechuana&quot;,BVT:&quot;bouvet&quot;,BRA:&quot;brazil&quot;,IOT:&quot;british.?indian.?ocean&quot;,BRN:&quot;brunei&quot;,BGR:&quot;bulgaria&quot;,BFA:&quot;burkina|\\bfaso|upper.?volta&quot;,BDI:&quot;burundi&quot;,CPV:&quot;verde&quot;,KHM:&quot;cambodia|kampuchea|khmer&quot;,CMR:&quot;cameroon&quot;,CAN:&quot;canada&quot;,CYM:&quot;cayman&quot;,CAF:&quot;\\bcentral.african.republic&quot;,TCD:&quot;\\bchad&quot;,CHL:&quot;\\bchile&quot;,CHN:&quot;^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china&quot;,CXR:&quot;christmas&quot;,CCK:&quot;\\bcocos|keeling&quot;,COL:&quot;colombia&quot;,COM:&quot;comoro&quot;,COG:&quot;^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo&quot;,COK:&quot;\\bcook&quot;,CRI:&quot;costa.?rica&quot;,CIV:&quot;ivoire|ivory&quot;,HRV:&quot;croatia&quot;,CUB:&quot;\\bcuba&quot;,CUW:&quot;^(?!.*bonaire).*\\bcura(c|\xe7)ao&quot;,CYP:&quot;cyprus&quot;,CSK:&quot;czechoslovakia&quot;,CZE:&quot;^(?=.*rep).*czech|czechia|bohemia&quot;,COD:&quot;\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc&quot;,DNK:&quot;denmark&quot;,DJI:&quot;djibouti&quot;,DMA:&quot;dominica(?!n)&quot;,DOM:&quot;dominican.rep&quot;,ECU:&quot;ecuador&quot;,EGY:&quot;egypt&quot;,SLV:&quot;el.?salvador&quot;,GNQ:&quot;guine.*eq|eq.*guine|^(?=.*span).*guinea&quot;,ERI:&quot;eritrea&quot;,EST:&quot;estonia&quot;,ETH:&quot;ethiopia|abyssinia&quot;,FLK:&quot;falkland|malvinas&quot;,FRO:&quot;faroe|faeroe&quot;,FJI:&quot;fiji&quot;,FIN:&quot;finland&quot;,FRA:&quot;^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul&quot;,GUF:&quot;^(?=.*french).*guiana&quot;,PYF:&quot;french.?polynesia|tahiti&quot;,ATF:&quot;french.?southern&quot;,GAB:&quot;gabon&quot;,GMB:&quot;gambia&quot;,GEO:&quot;^(?!.*south).*georgia&quot;,DDR:&quot;german.?democratic.?republic|democratic.?republic.*germany|east.germany&quot;,DEU:&quot;^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german&quot;,GHA:&quot;ghana|gold.?coast&quot;,GIB:&quot;gibraltar&quot;,GRC:&quot;greece|hellenic|hellas&quot;,GRL:&quot;greenland&quot;,GRD:&quot;grenada&quot;,GLP:&quot;guadeloupe&quot;,GUM:&quot;\\bguam&quot;,GTM:&quot;guatemala&quot;,GGY:&quot;guernsey&quot;,GIN:&quot;^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea&quot;,GNB:&quot;bissau|^(?=.*portu).*guinea&quot;,GUY:&quot;guyana|british.?guiana&quot;,HTI:&quot;haiti&quot;,HMD:&quot;heard.*mcdonald&quot;,VAT:&quot;holy.?see|vatican|papal.?st&quot;,HND:&quot;^(?!.*brit).*honduras&quot;,HKG:&quot;hong.?kong&quot;,HUN:&quot;^(?!.*austr).*hungary&quot;,ISL:&quot;iceland&quot;,IND:&quot;india(?!.*ocea)&quot;,IDN:&quot;indonesia&quot;,IRN:&quot;\\biran|persia&quot;,IRQ:&quot;\\biraq|mesopotamia&quot;,IRL:&quot;(^ireland)|(^republic.*ireland)&quot;,IMN:&quot;^(?=.*isle).*\\bman&quot;,ISR:&quot;israel&quot;,ITA:&quot;italy&quot;,JAM:&quot;jamaica&quot;,JPN:&quot;japan&quot;,JEY:&quot;jersey&quot;,JOR:&quot;jordan&quot;,KAZ:&quot;kazak&quot;,KEN:&quot;kenya|british.?east.?africa|east.?africa.?prot&quot;,KIR:&quot;kiribati&quot;,PRK:&quot;^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)&quot;,KWT:&quot;kuwait&quot;,KGZ:&quot;kyrgyz|kirghiz&quot;,LAO:&quot;\\blaos?\\b&quot;,LVA:&quot;latvia&quot;,LBN:&quot;lebanon&quot;,LSO:&quot;lesotho|basuto&quot;,LBR:&quot;liberia&quot;,LBY:&quot;libya&quot;,LIE:&quot;liechtenstein&quot;,LTU:&quot;lithuania&quot;,LUX:&quot;^(?!.*belg).*luxem&quot;,MAC:&quot;maca(o|u)&quot;,MDG:&quot;madagascar|malagasy&quot;,MWI:&quot;malawi|nyasa&quot;,MYS:&quot;malaysia&quot;,MDV:&quot;maldive&quot;,MLI:&quot;\\bmali\\b&quot;,MLT:&quot;\\bmalta&quot;,MHL:&quot;marshall&quot;,MTQ:&quot;martinique&quot;,MRT:&quot;mauritania&quot;,MUS:&quot;mauritius&quot;,MYT:&quot;\\bmayotte&quot;,MEX:&quot;\\bmexic&quot;,FSM:&quot;fed.*micronesia|micronesia.*fed&quot;,MCO:&quot;monaco&quot;,MNG:&quot;mongolia&quot;,MNE:&quot;^(?!.*serbia).*montenegro&quot;,MSR:&quot;montserrat&quot;,MAR:&quot;morocco|\\bmaroc&quot;,MOZ:&quot;mozambique&quot;,MMR:&quot;myanmar|burma&quot;,NAM:&quot;namibia&quot;,NRU:&quot;nauru&quot;,NPL:&quot;nepal&quot;,NLD:&quot;^(?!.*\\bant)(?!.*\\bcarib).*netherlands&quot;,ANT:&quot;^(?=.*\\bant).*(nether|dutch)&quot;,NCL:&quot;new.?caledonia&quot;,NZL:&quot;new.?zealand&quot;,NIC:&quot;nicaragua&quot;,NER:&quot;\\bniger(?!ia)&quot;,NGA:&quot;nigeria&quot;,NIU:&quot;niue&quot;,NFK:&quot;norfolk&quot;,MNP:&quot;mariana&quot;,NOR:&quot;norway&quot;,OMN:&quot;\\boman|trucial&quot;,PAK:&quot;^(?!.*east).*paki?stan&quot;,PLW:&quot;palau&quot;,PSE:&quot;palestin|\\bgaza|west.?bank&quot;,PAN:&quot;panama&quot;,PNG:&quot;papua|new.?guinea&quot;,PRY:&quot;paraguay&quot;,PER:&quot;peru&quot;,PHL:&quot;philippines&quot;,PCN:&quot;pitcairn&quot;,POL:&quot;poland&quot;,PRT:&quot;portugal&quot;,PRI:&quot;puerto.?rico&quot;,QAT:&quot;qatar&quot;,KOR:&quot;^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)&quot;,MDA:&quot;moldov|b(a|e)ssarabia&quot;,REU:&quot;r(e|\xe9)union&quot;,ROU:&quot;r(o|u|ou)mania&quot;,RUS:&quot;\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics&quot;,RWA:&quot;rwanda&quot;,BLM:&quot;barth(e|\xe9)lemy&quot;,SHN:&quot;helena&quot;,KNA:&quot;kitts|\\bnevis&quot;,LCA:&quot;\\blucia&quot;,MAF:&quot;^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)&quot;,SPM:&quot;miquelon&quot;,VCT:&quot;vincent&quot;,WSM:&quot;^(?!.*amer).*samoa&quot;,SMR:&quot;san.?marino&quot;,STP:&quot;\\bs(a|\xe3)o.?tom(e|\xe9)&quot;,SAU:&quot;\\bsa\\w*.?arabia&quot;,SEN:&quot;senegal&quot;,SRB:&quot;^(?!.*monte).*serbia&quot;,SYC:&quot;seychell&quot;,SLE:&quot;sierra&quot;,SGP:&quot;singapore&quot;,SXM:&quot;^(?!.*martin)(?!.*saba).*maarten&quot;,SVK:&quot;^(?!.*cze).*slovak&quot;,SVN:&quot;slovenia&quot;,SLB:&quot;solomon&quot;,SOM:&quot;somali&quot;,ZAF:&quot;south.africa|s\\\\..?africa&quot;,SGS:&quot;south.?georgia|sandwich&quot;,SSD:&quot;\\bs\\w*.?sudan&quot;,ESP:&quot;spain&quot;,LKA:&quot;sri.?lanka|ceylon&quot;,SDN:&quot;^(?!.*\\bs(?!u)).*sudan&quot;,SUR:&quot;surinam|dutch.?guiana&quot;,SJM:&quot;svalbard&quot;,SWZ:&quot;swaziland&quot;,SWE:&quot;sweden&quot;,CHE:&quot;switz|swiss&quot;,SYR:&quot;syria&quot;,TWN:&quot;taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china&quot;,TJK:&quot;tajik&quot;,THA:&quot;thailand|\\bsiam&quot;,MKD:&quot;macedonia|fyrom&quot;,TLS:&quot;^(?=.*leste).*timor|^(?=.*east).*timor&quot;,TGO:&quot;togo&quot;,TKL:&quot;tokelau&quot;,TON:&quot;tonga&quot;,TTO:&quot;trinidad|tobago&quot;,TUN:&quot;tunisia&quot;,TUR:&quot;turkey&quot;,TKM:&quot;turkmen&quot;,TCA:&quot;turks&quot;,TUV:&quot;tuvalu&quot;,UGA:&quot;uganda&quot;,UKR:&quot;ukrain&quot;,ARE:&quot;emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em&quot;,GBR:&quot;united.?kingdom|britain|^u\\.?k\\.?$&quot;,TZA:&quot;tanzania&quot;,USA:&quot;united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)&quot;,UMI:&quot;minor.?outlying.?is&quot;,URY:&quot;uruguay&quot;,UZB:&quot;uzbek&quot;,VUT:&quot;vanuatu|new.?hebrides&quot;,VEN:&quot;venezuela&quot;,VNM:&quot;^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam&quot;,VGB:&quot;^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin&quot;,VIR:&quot;^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin&quot;,WLF:&quot;futuna|wallis&quot;,ESH:&quot;western.sahara&quot;,YEM:&quot;^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen&quot;,YMD:&quot;^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen&quot;,YUG:&quot;yugoslavia&quot;,ZMB:&quot;zambia|northern.?rhodesia&quot;,EAZ:&quot;zanzibar&quot;,ZWE:&quot;zimbabwe|^(?!.*northern).*rhodesia&quot;}},{}],95:[function(t,e,r){e.exports=[&quot;xx-small&quot;,&quot;x-small&quot;,&quot;small&quot;,&quot;medium&quot;,&quot;large&quot;,&quot;x-large&quot;,&quot;xx-large&quot;,&quot;larger&quot;,&quot;smaller&quot;]},{}],96:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;condensed&quot;,&quot;semi-condensed&quot;,&quot;extra-condensed&quot;,&quot;ultra-condensed&quot;,&quot;expanded&quot;,&quot;semi-expanded&quot;,&quot;extra-expanded&quot;,&quot;ultra-expanded&quot;]},{}],97:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;italic&quot;,&quot;oblique&quot;]},{}],98:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;bold&quot;,&quot;bolder&quot;,&quot;lighter&quot;,&quot;100&quot;,&quot;200&quot;,&quot;300&quot;,&quot;400&quot;,&quot;500&quot;,&quot;600&quot;,&quot;700&quot;,&quot;800&quot;,&quot;900&quot;]},{}],99:[function(t,e,r){&quot;use strict&quot;;e.exports={parse:t(&quot;./parse&quot;),stringify:t(&quot;./stringify&quot;)}},{&quot;./parse&quot;:101,&quot;./stringify&quot;:102}],100:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font-size-keywords&quot;);e.exports={isSize:function(t){return/^[\d\.]/.test(t)||-1!==t.indexOf(&quot;/&quot;)||-1!==n.indexOf(t)}}},{&quot;css-font-size-keywords&quot;:95}],101:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;unquote&quot;),i=t(&quot;css-global-keywords&quot;),a=t(&quot;css-system-font-keywords&quot;),o=t(&quot;css-font-weight-keywords&quot;),s=t(&quot;css-font-style-keywords&quot;),l=t(&quot;css-font-stretch-keywords&quot;),c=t(&quot;string-split-by&quot;),u=t(&quot;./lib/util&quot;).isSize;e.exports=h;var f=h.cache={};function h(t){if(&quot;string&quot;!=typeof t)throw new Error(&quot;Font argument must be a string.&quot;);if(f[t])return f[t];if(&quot;&quot;===t)throw new Error(&quot;Cannot parse an empty string.&quot;);if(-1!==a.indexOf(t))return f[t]={system:t};for(var e,r={style:&quot;normal&quot;,variant:&quot;normal&quot;,weight:&quot;normal&quot;,stretch:&quot;normal&quot;,lineHeight:&quot;normal&quot;,size:&quot;1rem&quot;,family:[&quot;serif&quot;]},h=c(t,/\s+/);e=h.shift();){if(-1!==i.indexOf(e))return[&quot;style&quot;,&quot;variant&quot;,&quot;weight&quot;,&quot;stretch&quot;].forEach((function(t){r[t]=e})),f[t]=r;if(-1===s.indexOf(e))if(&quot;normal&quot;!==e&amp;&amp;&quot;small-caps&quot;!==e)if(-1===l.indexOf(e)){if(-1===o.indexOf(e)){if(u(e)){var d=c(e,&quot;/&quot;);if(r.size=d[0],null!=d[1]?r.lineHeight=p(d[1]):&quot;/&quot;===h[0]&amp;&amp;(h.shift(),r.lineHeight=p(h.shift())),!h.length)throw new Error(&quot;Missing required font-family.&quot;);return r.family=c(h.join(&quot; &quot;),/\s*,\s*/).map(n),f[t]=r}throw new Error(&quot;Unknown or unsupported font token: &quot;+e)}r.weight=e}else r.stretch=e;else r.variant=e;else r.style=e}throw new Error(&quot;Missing required font-size.&quot;)}function p(t){var e=parseFloat(t);return e.toString()===t?e:t}},{&quot;./lib/util&quot;:100,&quot;css-font-stretch-keywords&quot;:96,&quot;css-font-style-keywords&quot;:97,&quot;css-font-weight-keywords&quot;:98,&quot;css-global-keywords&quot;:103,&quot;css-system-font-keywords&quot;:104,&quot;string-split-by&quot;:305,unquote:328}],102:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;),i=t(&quot;./lib/util&quot;).isSize,a=m(t(&quot;css-global-keywords&quot;)),o=m(t(&quot;css-system-font-keywords&quot;)),s=m(t(&quot;css-font-weight-keywords&quot;)),l=m(t(&quot;css-font-style-keywords&quot;)),c=m(t(&quot;css-font-stretch-keywords&quot;)),u={normal:1,&quot;small-caps&quot;:1},f={serif:1,&quot;sans-serif&quot;:1,monospace:1,cursive:1,fantasy:1,&quot;system-ui&quot;:1},h=&quot;1rem&quot;,p=&quot;serif&quot;;function d(t,e){if(t&amp;&amp;!e[t]&amp;&amp;!a[t])throw Error(&quot;Unknown keyword `&quot;+t+&quot;`&quot;);return t}function m(t){for(var e={},r=0;r&lt;t.length;r++)e[t[r]]=1;return e}e.exports=function(t){if((t=n(t,{style:&quot;style fontstyle fontStyle font-style slope distinction&quot;,variant:&quot;variant font-variant fontVariant fontvariant var capitalization&quot;,weight:&quot;weight w font-weight fontWeight fontweight&quot;,stretch:&quot;stretch font-stretch fontStretch fontstretch width&quot;,size:&quot;size s font-size fontSize fontsize height em emSize&quot;,lineHeight:&quot;lh line-height lineHeight lineheight leading&quot;,family:&quot;font family fontFamily font-family fontfamily type typeface face&quot;,system:&quot;system reserved default global&quot;})).system)return t.system&amp;&amp;d(t.system,o),t.system;if(d(t.style,l),d(t.variant,u),d(t.weight,s),d(t.stretch,c),null==t.size&amp;&amp;(t.size=h),&quot;number&quot;==typeof t.size&amp;&amp;(t.size+=&quot;px&quot;),!i)throw Error(&quot;Bad size value `&quot;+t.size+&quot;`&quot;);t.family||(t.family=p),Array.isArray(t.family)&amp;&amp;(t.family.length||(t.family=[p]),t.family=t.family.map((function(t){return f[t]?t:'&quot;'+t+'&quot;'})).join(&quot;, &quot;));var e=[];return e.push(t.style),t.variant!==t.style&amp;&amp;e.push(t.variant),t.weight!==t.variant&amp;&amp;t.weight!==t.style&amp;&amp;e.push(t.weight),t.stretch!==t.weight&amp;&amp;t.stretch!==t.variant&amp;&amp;t.stretch!==t.style&amp;&amp;e.push(t.stretch),e.push(t.size+(null==t.lineHeight||&quot;normal&quot;===t.lineHeight||t.lineHeight+&quot;&quot;==&quot;1&quot;?&quot;&quot;:&quot;/&quot;+t.lineHeight)),e.push(t.family),e.filter(Boolean).join(&quot; &quot;)}},{&quot;./lib/util&quot;:100,&quot;css-font-stretch-keywords&quot;:96,&quot;css-font-style-keywords&quot;:97,&quot;css-font-weight-keywords&quot;:98,&quot;css-global-keywords&quot;:103,&quot;css-system-font-keywords&quot;:104,&quot;pick-by-alias&quot;:253}],103:[function(t,e,r){e.exports=[&quot;inherit&quot;,&quot;initial&quot;,&quot;unset&quot;]},{}],104:[function(t,e,r){e.exports=[&quot;caption&quot;,&quot;icon&quot;,&quot;menu&quot;,&quot;message-box&quot;,&quot;small-caption&quot;,&quot;status-bar&quot;]},{}],105:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;type/value/is&quot;),a=t(&quot;type/value/ensure&quot;),o=t(&quot;type/plain-function/ensure&quot;),s=t(&quot;es5-ext/object/copy&quot;),l=t(&quot;es5-ext/object/normalize-options&quot;),c=t(&quot;es5-ext/object/map&quot;),u=Function.prototype.bind,f=Object.defineProperty,h=Object.prototype.hasOwnProperty;n=function(t,e,r){var n,i=a(e)&amp;&amp;o(e.value);return delete(n=s(e)).writable,delete n.value,n.get=function(){return!r.overwriteDefinition&amp;&amp;h.call(this,t)?i:(e.value=u.call(i,r.resolveContext?r.resolveContext(this):this),f(this,t,e),this[t])},n},e.exports=function(t){var e=l(arguments[1]);return i(e.resolveContext)&amp;&amp;o(e.resolveContext),c(t,(function(t,r){return n(r,t,e)}))}},{&quot;es5-ext/object/copy&quot;:147,&quot;es5-ext/object/map&quot;:155,&quot;es5-ext/object/normalize-options&quot;:156,&quot;type/plain-function/ensure&quot;:321,&quot;type/value/ensure&quot;:325,&quot;type/value/is&quot;:326}],106:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;type/value/is&quot;),i=t(&quot;type/plain-function/is&quot;),a=t(&quot;es5-ext/object/assign&quot;),o=t(&quot;es5-ext/object/normalize-options&quot;),s=t(&quot;es5-ext/string/#/contains&quot;);(e.exports=function(t,e){var r,i,l,c,u;return arguments.length&lt;2||&quot;string&quot;!=typeof t?(c=e,e=t,t=null):c=arguments[2],n(t)?(r=s.call(t,&quot;c&quot;),i=s.call(t,&quot;e&quot;),l=s.call(t,&quot;w&quot;)):(r=l=!0,i=!1),u={value:e,configurable:r,enumerable:i,writable:l},c?a(o(c),u):u}).gs=function(t,e,r){var l,c,u,f;return&quot;string&quot;!=typeof t?(u=r,r=e,e=t,t=null):u=arguments[3],n(e)?i(e)?n(r)?i(r)||(u=r,r=void 0):r=void 0:(u=e,e=r=void 0):e=void 0,n(t)?(l=s.call(t,&quot;c&quot;),c=s.call(t,&quot;e&quot;)):(l=!0,c=!1),f={get:e,set:r,configurable:l,enumerable:c},u?a(o(u),f):f}},{&quot;es5-ext/object/assign&quot;:144,&quot;es5-ext/object/normalize-options&quot;:156,&quot;es5-ext/string/#/contains&quot;:163,&quot;type/plain-function/is&quot;:322,&quot;type/value/is&quot;:326}],107:[function(t,e,r){!function(t,n){n(&quot;object&quot;==typeof r&amp;&amp;void 0!==e?r:t.d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){return t&lt;e?-1:t&gt;e?1:t&gt;=e?0:NaN}function r(t){var r;return 1===t.length&amp;&amp;(r=t,t=function(t,n){return e(r(t),n)}),{left:function(e,r,n,i){for(null==n&amp;&amp;(n=0),null==i&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&lt;0?n=a+1:i=a}return n},right:function(e,r,n,i){for(null==n&amp;&amp;(n=0),null==i&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&gt;0?i=a:n=a+1}return n}}}var n=r(e),i=n.right,a=n.left;function o(t,e){return[t,e]}function s(t){return null===t?NaN:+t}function l(t,e){var r,n,i=t.length,a=0,o=-1,l=0,c=0;if(null==e)for(;++o&lt;i;)isNaN(r=s(t[o]))||(c+=(n=r-l)*(r-(l+=n/++a)));else for(;++o&lt;i;)isNaN(r=s(e(t[o],o,t)))||(c+=(n=r-l)*(r-(l+=n/++a)));if(a&gt;1)return c/(a-1)}function c(t,e){var r=l(t,e);return r?Math.sqrt(r):r}function u(t,e){var r,n,i,a=t.length,o=-1;if(null==e){for(;++o&lt;a;)if(null!=(r=t[o])&amp;&amp;r&gt;=r)for(n=i=r;++o&lt;a;)null!=(r=t[o])&amp;&amp;(n&gt;r&amp;&amp;(n=r),i&lt;r&amp;&amp;(i=r))}else for(;++o&lt;a;)if(null!=(r=e(t[o],o,t))&amp;&amp;r&gt;=r)for(n=i=r;++o&lt;a;)null!=(r=e(t[o],o,t))&amp;&amp;(n&gt;r&amp;&amp;(n=r),i&lt;r&amp;&amp;(i=r));return[n,i]}var f=Array.prototype,h=f.slice,p=f.map;function d(t){return function(){return t}}function m(t){return t}function g(t,e,r){t=+t,e=+e,r=(i=arguments.length)&lt;2?(e=t,t=0,1):i&lt;3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),a=new Array(i);++n&lt;i;)a[n]=t+n*r;return a}var v=Math.sqrt(50),y=Math.sqrt(10),x=Math.sqrt(2);function b(t,e,r){var n=(e-t)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),a=n/Math.pow(10,i);return i&gt;=0?(a&gt;=v?10:a&gt;=y?5:a&gt;=x?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a&gt;=v?10:a&gt;=y?5:a&gt;=x?2:1)}function _(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/i;return a&gt;=v?i*=10:a&gt;=y?i*=5:a&gt;=x&amp;&amp;(i*=2),e&lt;t?-i:i}function w(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function T(t,e,r){if(null==r&amp;&amp;(r=s),n=t.length){if((e=+e)&lt;=0||n&lt;2)return+r(t[0],0,t);if(e&gt;=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t);return o+(+r(t[a+1],a+1,t)-o)*(i-a)}}function k(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a&lt;i;)if(null!=(r=t[a])&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=t[a])&amp;&amp;n&gt;r&amp;&amp;(n=r)}else for(;++a&lt;i;)if(null!=(r=e(t[a],a,t))&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=e(t[a],a,t))&amp;&amp;n&gt;r&amp;&amp;(n=r);return n}function A(t){if(!(i=t.length))return[];for(var e=-1,r=k(t,M),n=new Array(r);++e&lt;r;)for(var i,a=-1,o=n[e]=new Array(i);++a&lt;i;)o[a]=t[a][e];return n}function M(t){return t.length}t.bisect=i,t.bisectRight=i,t.bisectLeft=a,t.ascending=e,t.bisector=r,t.cross=function(t,e,r){var n,i,a,s,l=t.length,c=e.length,u=new Array(l*c);for(null==r&amp;&amp;(r=o),n=a=0;n&lt;l;++n)for(s=t[n],i=0;i&lt;c;++i,++a)u[a]=r(s,e[i]);return u},t.descending=function(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN},t.deviation=c,t.extent=u,t.histogram=function(){var t=m,e=u,r=w;function n(n){var a,o,s=n.length,l=new Array(s);for(a=0;a&lt;s;++a)l[a]=t(n[a],a,n);var c=e(l),u=c[0],f=c[1],h=r(l,u,f);Array.isArray(h)||(h=_(u,f,h),h=g(Math.ceil(u/h)*h,f,h));for(var p=h.length;h[0]&lt;=u;)h.shift(),--p;for(;h[p-1]&gt;f;)h.pop(),--p;var d,m=new Array(p+1);for(a=0;a&lt;=p;++a)(d=m[a]=[]).x0=a&gt;0?h[a-1]:u,d.x1=a&lt;p?h[a]:f;for(a=0;a&lt;s;++a)u&lt;=(o=l[a])&amp;&amp;o&lt;=f&amp;&amp;m[i(h,o,0,p)].push(n[a]);return m}return n.value=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:d(e),n):t},n.domain=function(t){return arguments.length?(e=&quot;function&quot;==typeof t?t:d([t[0],t[1]]),n):e},n.thresholds=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:Array.isArray(t)?d(h.call(t)):d(t),n):r},n},t.thresholdFreedmanDiaconis=function(t,r,n){return t=p.call(t,s).sort(e),Math.ceil((n-r)/(2*(T(t,.75)-T(t,.25))*Math.pow(t.length,-1/3)))},t.thresholdScott=function(t,e,r){return Math.ceil((r-e)/(3.5*c(t)*Math.pow(t.length,-1/3)))},t.thresholdSturges=w,t.max=function(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a&lt;i;)if(null!=(r=t[a])&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=t[a])&amp;&amp;r&gt;n&amp;&amp;(n=r)}else for(;++a&lt;i;)if(null!=(r=e(t[a],a,t))&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=e(t[a],a,t))&amp;&amp;r&gt;n&amp;&amp;(n=r);return n},t.mean=function(t,e){var r,n=t.length,i=n,a=-1,o=0;if(null==e)for(;++a&lt;n;)isNaN(r=s(t[a]))?--i:o+=r;else for(;++a&lt;n;)isNaN(r=s(e(t[a],a,t)))?--i:o+=r;if(i)return o/i},t.median=function(t,r){var n,i=t.length,a=-1,o=[];if(null==r)for(;++a&lt;i;)isNaN(n=s(t[a]))||o.push(n);else for(;++a&lt;i;)isNaN(n=s(r(t[a],a,t)))||o.push(n);return T(o.sort(e),.5)},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a&lt;i;)o+=t[a].length;for(r=new Array(o);--i&gt;=0;)for(e=(n=t[i]).length;--e&gt;=0;)r[--o]=n[e];return r},t.min=k,t.pairs=function(t,e){null==e&amp;&amp;(e=o);for(var r=0,n=t.length-1,i=t[0],a=new Array(n&lt;0?0:n);r&lt;n;)a[r]=e(i,i=t[++r]);return a},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.quantile=T,t.range=g,t.scan=function(t,r){if(n=t.length){var n,i,a=0,o=0,s=t[o];for(null==r&amp;&amp;(r=e);++a&lt;n;)(r(i=t[a],s)&lt;0||0!==r(s,s))&amp;&amp;(s=i,o=a);return 0===r(s,s)?o:void 0}},t.shuffle=function(t,e,r){for(var n,i,a=(null==r?t.length:r)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.sum=function(t,e){var r,n=t.length,i=-1,a=0;if(null==e)for(;++i&lt;n;)(r=+t[i])&amp;&amp;(a+=r);else for(;++i&lt;n;)(r=+e(t[i],i,t))&amp;&amp;(a+=r);return a},t.ticks=function(t,e,r){var n,i,a,o,s=-1;if(r=+r,(t=+t)===(e=+e)&amp;&amp;r&gt;0)return[t];if((n=e&lt;t)&amp;&amp;(i=t,t=e,e=i),0===(o=b(t,e,r))||!isFinite(o))return[];if(o&gt;0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s&lt;i;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++s&lt;i;)a[s]=(t-s)/o;return n&amp;&amp;a.reverse(),a},t.tickIncrement=b,t.tickStep=_,t.transpose=A,t.variance=l,t.zip=function(){return A(arguments)},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],108:[function(t,e,r){!function(t,n){n(&quot;object&quot;==typeof r&amp;&amp;void 0!==e?r:t.d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(){}function r(t,r){var n=new e;if(t instanceof e)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var i,a=-1,o=t.length;if(null==r)for(;++a&lt;o;)n.set(a,t[a]);else for(;++a&lt;o;)n.set(r(i=t[a],a,t),i)}else if(t)for(var s in t)n.set(s,t[s]);return n}function n(){return{}}function i(t,e,r){t[e]=r}function a(){return r()}function o(t,e,r){t.set(e,r)}function s(){}e.prototype=r.prototype={constructor:e,has:function(t){return&quot;$&quot;+t in this},get:function(t){return this[&quot;$&quot;+t]},set:function(t,e){return this[&quot;$&quot;+t]=e,this},remove:function(t){var e=&quot;$&quot;+t;return e in this&amp;&amp;delete this[e]},clear:function(){for(var t in this)&quot;$&quot;===t[0]&amp;&amp;delete this[t]},keys:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)&quot;$&quot;===e[0]&amp;&amp;++t;return t},empty:function(){for(var t in this)if(&quot;$&quot;===t[0])return!1;return!0},each:function(t){for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t(this[e],e.slice(1),this)}};var l=r.prototype;function c(t,e){var r=new s;if(t instanceof s)t.each((function(t){r.add(t)}));else if(t){var n=-1,i=t.length;if(null==e)for(;++n&lt;i;)r.add(t[n]);else for(;++n&lt;i;)r.add(e(t[n],n,t))}return r}s.prototype=c.prototype={constructor:s,has:l.has,add:function(t){return this[&quot;$&quot;+(t+=&quot;&quot;)]=t,this},remove:l.remove,clear:l.clear,values:l.keys,size:l.size,empty:l.empty,each:l.each},t.nest=function(){var t,e,s,l=[],c=[];function u(n,i,a,o){if(i&gt;=l.length)return null!=t&amp;&amp;n.sort(t),null!=e?e(n):n;for(var s,c,f,h=-1,p=n.length,d=l[i++],m=r(),g=a();++h&lt;p;)(f=m.get(s=d(c=n[h])+&quot;&quot;))?f.push(c):m.set(s,[c]);return m.each((function(t,e){o(g,e,u(t,i,a,o))})),g}return s={object:function(t){return u(t,0,n,i)},map:function(t){return u(t,0,a,o)},entries:function(t){return function t(r,n){if(++n&gt;l.length)return r;var i,a=c[n-1];return null!=e&amp;&amp;n&gt;=l.length?i=r.entries():(i=[],r.each((function(e,r){i.push({key:r,values:t(e,n)})}))),null!=a?i.sort((function(t,e){return a(t.key,e.key)})):i}(u(t,0,a,o),0)},key:function(t){return l.push(t),s},sortKeys:function(t){return c[l.length-1]=t,s},sortValues:function(e){return t=e,s},rollup:function(t){return e=t,s}}},t.set=c,t.map=r,t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],109:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function r(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function n(){}var i=&quot;\\s*([+-]?\\d+)\\s*&quot;,a=&quot;\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*&quot;,o=&quot;\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*&quot;,s=/^#([0-9a-f]{3,8})$/,l=new RegExp(&quot;^rgb\\(&quot;+[i,i,i]+&quot;\\)$&quot;),c=new RegExp(&quot;^rgb\\(&quot;+[o,o,o]+&quot;\\)$&quot;),u=new RegExp(&quot;^rgba\\(&quot;+[i,i,i,a]+&quot;\\)$&quot;),f=new RegExp(&quot;^rgba\\(&quot;+[o,o,o,a]+&quot;\\)$&quot;),h=new RegExp(&quot;^hsl\\(&quot;+[a,o,o]+&quot;\\)$&quot;),p=new RegExp(&quot;^hsla\\(&quot;+[a,o,o,a]+&quot;\\)$&quot;),d={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 m(){return this.rgb().formatHex()}function g(){return this.rgb().formatRgb()}function v(t){var e,r;return t=(t+&quot;&quot;).trim().toLowerCase(),(e=s.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?y(e):3===r?new w(e&gt;&gt;8&amp;15|e&gt;&gt;4&amp;240,e&gt;&gt;4&amp;15|240&amp;e,(15&amp;e)&lt;&lt;4|15&amp;e,1):8===r?x(e&gt;&gt;24&amp;255,e&gt;&gt;16&amp;255,e&gt;&gt;8&amp;255,(255&amp;e)/255):4===r?x(e&gt;&gt;12&amp;15|e&gt;&gt;8&amp;240,e&gt;&gt;8&amp;15|e&gt;&gt;4&amp;240,e&gt;&gt;4&amp;15|240&amp;e,((15&amp;e)&lt;&lt;4|15&amp;e)/255):null):(e=l.exec(t))?new w(e[1],e[2],e[3],1):(e=c.exec(t))?new w(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=u.exec(t))?x(e[1],e[2],e[3],e[4]):(e=f.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=h.exec(t))?M(e[1],e[2]/100,e[3]/100,1):(e=p.exec(t))?M(e[1],e[2]/100,e[3]/100,e[4]):d.hasOwnProperty(t)?y(d[t]):&quot;transparent&quot;===t?new w(NaN,NaN,NaN,0):null}function y(t){return new w(t&gt;&gt;16&amp;255,t&gt;&gt;8&amp;255,255&amp;t,1)}function x(t,e,r,n){return n&lt;=0&amp;&amp;(t=e=r=NaN),new w(t,e,r,n)}function b(t){return t instanceof n||(t=v(t)),t?new w((t=t.rgb()).r,t.g,t.b,t.opacity):new w}function _(t,e,r,n){return 1===arguments.length?b(t):new w(t,e,r,null==n?1:n)}function w(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function T(){return&quot;#&quot;+A(this.r)+A(this.g)+A(this.b)}function k(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?&quot;rgb(&quot;:&quot;rgba(&quot;)+Math.max(0,Math.min(255,Math.round(this.r)||0))+&quot;, &quot;+Math.max(0,Math.min(255,Math.round(this.g)||0))+&quot;, &quot;+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?&quot;)&quot;:&quot;, &quot;+t+&quot;)&quot;)}function A(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))&lt;16?&quot;0&quot;:&quot;&quot;)+t.toString(16)}function M(t,e,r,n){return n&lt;=0?t=e=r=NaN:r&lt;=0||r&gt;=1?t=e=NaN:e&lt;=0&amp;&amp;(t=NaN),new L(t,e,r,n)}function S(t){if(t instanceof L)return new L(t.h,t.s,t.l,t.opacity);if(t instanceof n||(t=v(t)),!t)return new L;if(t instanceof L)return t;var e=(t=t.rgb()).r/255,r=t.g/255,i=t.b/255,a=Math.min(e,r,i),o=Math.max(e,r,i),s=NaN,l=o-a,c=(o+a)/2;return l?(s=e===o?(r-i)/l+6*(r&lt;i):r===o?(i-e)/l+2:(e-r)/l+4,l/=c&lt;.5?o+a:2-o-a,s*=60):l=c&gt;0&amp;&amp;c&lt;1?0:s,new L(s,l,c,t.opacity)}function E(t,e,r,n){return 1===arguments.length?S(t):new L(t,e,r,null==n?1:n)}function L(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function C(t,e,r){return 255*(t&lt;60?e+(r-e)*t/60:t&lt;180?r:t&lt;240?e+(r-e)*(240-t)/60:e)}e(n,v,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:m,formatHex:m,formatHsl:function(){return S(this).formatHsl()},formatRgb:g,toString:g}),e(w,_,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5&lt;=this.r&amp;&amp;this.r&lt;255.5&amp;&amp;-.5&lt;=this.g&amp;&amp;this.g&lt;255.5&amp;&amp;-.5&lt;=this.b&amp;&amp;this.b&lt;255.5&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},hex:T,formatHex:T,formatRgb:k,toString:k})),e(L,E,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new L(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new L(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h&lt;0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r&lt;.5?r:1-r)*e,i=2*r-n;return new w(C(t&gt;=240?t-240:t+120,i,n),C(t,i,n),C(t&lt;120?t+240:t-120,i,n),this.opacity)},displayable:function(){return(0&lt;=this.s&amp;&amp;this.s&lt;=1||isNaN(this.s))&amp;&amp;0&lt;=this.l&amp;&amp;this.l&lt;=1&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?&quot;hsl(&quot;:&quot;hsla(&quot;)+(this.h||0)+&quot;, &quot;+100*(this.s||0)+&quot;%, &quot;+100*(this.l||0)+&quot;%&quot;+(1===t?&quot;)&quot;:&quot;, &quot;+t+&quot;)&quot;)}}));var P=Math.PI/180,I=180/Math.PI,O=6/29,z=3*O*O;function D(t){if(t instanceof F)return new F(t.l,t.a,t.b,t.opacity);if(t instanceof q)return G(t);t instanceof w||(t=b(t));var e,r,n=U(t.r),i=U(t.g),a=U(t.b),o=B((.2225045*n+.7168786*i+.0606169*a)/1);return n===i&amp;&amp;i===a?e=r=o:(e=B((.4360747*n+.3850649*i+.1430804*a)/.96422),r=B((.0139322*n+.0971045*i+.7141733*a)/.82521)),new F(116*o-16,500*(e-o),200*(o-r),t.opacity)}function R(t,e,r,n){return 1===arguments.length?D(t):new F(t,e,r,null==n?1:n)}function F(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function B(t){return t&gt;.008856451679035631?Math.pow(t,1/3):t/z+4/29}function N(t){return t&gt;O?t*t*t:z*(t-4/29)}function j(t){return 255*(t&lt;=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function U(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function V(t){if(t instanceof q)return new q(t.h,t.c,t.l,t.opacity);if(t instanceof F||(t=D(t)),0===t.a&amp;&amp;0===t.b)return new q(NaN,0&lt;t.l&amp;&amp;t.l&lt;100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*I;return new q(e&lt;0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function H(t,e,r,n){return 1===arguments.length?V(t):new q(t,e,r,null==n?1:n)}function q(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function G(t){if(isNaN(t.h))return new F(t.l,0,0,t.opacity);var e=t.h*P;return new F(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}e(F,R,r(n,{brighter:function(t){return new F(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new F(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new w(j(3.1338561*(e=.96422*N(e))-1.6168667*(t=1*N(t))-.4906146*(r=.82521*N(r))),j(-.9787684*e+1.9161415*t+.033454*r),j(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),e(q,H,r(n,{brighter:function(t){return new q(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new q(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return G(this).rgb()}}));var Y=-.14861,W=1.78277,X=-.29227,Z=-.90649,J=1.97294,K=J*Z,Q=J*W,$=W*X-Z*Y;function tt(t){if(t instanceof rt)return new rt(t.h,t.s,t.l,t.opacity);t instanceof w||(t=b(t));var e=t.r/255,r=t.g/255,n=t.b/255,i=($*n+K*e-Q*r)/($+K-Q),a=n-i,o=(J*(r-i)-X*a)/Z,s=Math.sqrt(o*o+a*a)/(J*i*(1-i)),l=s?Math.atan2(o,a)*I-120:NaN;return new rt(l&lt;0?l+360:l,s,i,t.opacity)}function et(t,e,r,n){return 1===arguments.length?tt(t):new rt(t,e,r,null==n?1:n)}function rt(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}e(rt,et,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*P,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),i=Math.sin(t);return new w(255*(e+r*(Y*n+W*i)),255*(e+r*(X*n+Z*i)),255*(e+r*(J*n)),this.opacity)}})),t.color=v,t.cubehelix=et,t.gray=function(t,e){return new F(t,0,0,null==e?1:e)},t.hcl=H,t.hsl=E,t.lab=R,t.lch=function(t,e,r,n){return 1===arguments.length?V(t):new q(r,e,t,null==n?1:n)},t.rgb=_,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],110:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e={value:function(){}};function r(){for(var t,e=0,r=arguments.length,i={};e&lt;r;++e){if(!(t=arguments[e]+&quot;&quot;)||t in i||/[\s.]/.test(t))throw new Error(&quot;illegal type: &quot;+t);i[t]=[]}return new n(i)}function n(t){this._=t}function i(t,e){return t.trim().split(/^|\s+/).map((function(t){var r=&quot;&quot;,n=t.indexOf(&quot;.&quot;);if(n&gt;=0&amp;&amp;(r=t.slice(n+1),t=t.slice(0,n)),t&amp;&amp;!e.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);return{type:t,name:r}}))}function a(t,e){for(var r,n=0,i=t.length;n&lt;i;++n)if((r=t[n]).name===e)return r.value}function o(t,r,n){for(var i=0,a=t.length;i&lt;a;++i)if(t[i].name===r){t[i]=e,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&amp;&amp;t.push({name:r,value:n}),t}n.prototype=r.prototype={constructor:n,on:function(t,e){var r,n=this._,s=i(t+&quot;&quot;,n),l=-1,c=s.length;if(!(arguments.length&lt;2)){if(null!=e&amp;&amp;&quot;function&quot;!=typeof e)throw new Error(&quot;invalid callback: &quot;+e);for(;++l&lt;c;)if(r=(t=s[l]).type)n[r]=o(n[r],t.name,e);else if(null==e)for(r in n)n[r]=o(n[r],t.name,null);return this}for(;++l&lt;c;)if((r=(t=s[l]).type)&amp;&amp;(r=a(n[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new n(t)},call:function(t,e){if((r=arguments.length-2)&gt;0)for(var r,n,i=new Array(r),a=0;a&lt;r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);for(a=0,r=(n=this._[t]).length;a&lt;r;++a)n[a].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);for(var n=this._[t],i=0,a=n.length;i&lt;a;++i)n[i].value.apply(e,r)}},t.dispatch=r,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],111:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-quadtree&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-dispatch&quot;),t(&quot;d3-timer&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,n.d3)}(this,(function(t,e,r,n,i){&quot;use strict&quot;;function a(t){return function(){return t}}function o(){return 1e-6*(Math.random()-.5)}function s(t){return t.x+t.vx}function l(t){return t.y+t.vy}function c(t){return t.index}function u(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function f(t){return t.x}function h(t){return t.y}var p=Math.PI*(3-Math.sqrt(5));t.forceCenter=function(t,e){var r;function n(){var n,i,a=r.length,o=0,s=0;for(n=0;n&lt;a;++n)o+=(i=r[n]).x,s+=i.y;for(o=o/a-t,s=s/a-e,n=0;n&lt;a;++n)(i=r[n]).x-=o,i.y-=s}return null==t&amp;&amp;(t=0),null==e&amp;&amp;(e=0),n.initialize=function(t){r=t},n.x=function(e){return arguments.length?(t=+e,n):t},n.y=function(t){return arguments.length?(e=+t,n):e},n},t.forceCollide=function(t){var r,n,i=1,c=1;function u(){for(var t,a,u,h,p,d,m,g=r.length,v=0;v&lt;c;++v)for(a=e.quadtree(r,s,l).visitAfter(f),t=0;t&lt;g;++t)u=r[t],d=n[u.index],m=d*d,h=u.x+u.vx,p=u.y+u.vy,a.visit(y);function y(t,e,r,n,a){var s=t.data,l=t.r,c=d+l;if(!s)return e&gt;h+c||n&lt;h-c||r&gt;p+c||a&lt;p-c;if(s.index&gt;u.index){var f=h-s.x-s.vx,g=p-s.y-s.vy,v=f*f+g*g;v&lt;c*c&amp;&amp;(0===f&amp;&amp;(v+=(f=o())*f),0===g&amp;&amp;(v+=(g=o())*g),v=(c-(v=Math.sqrt(v)))/v*i,u.vx+=(f*=v)*(c=(l*=l)/(m+l)),u.vy+=(g*=v)*c,s.vx-=f*(c=1-c),s.vy-=g*c)}}}function f(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e&lt;4;++e)t[e]&amp;&amp;t[e].r&gt;t.r&amp;&amp;(t.r=t[e].r)}function h(){if(r){var e,i,a=r.length;for(n=new Array(a),e=0;e&lt;a;++e)i=r[e],n[i.index]=+t(i,e,r)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?1:+t)),u.initialize=function(t){r=t,h()},u.iterations=function(t){return arguments.length?(c=+t,u):c},u.strength=function(t){return arguments.length?(i=+t,u):i},u.radius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),h(),u):t},u},t.forceLink=function(t){var e,n,i,s,l,f=c,h=function(t){return 1/Math.min(s[t.source.index],s[t.target.index])},p=a(30),d=1;function m(r){for(var i=0,a=t.length;i&lt;d;++i)for(var s,c,u,f,h,p,m,g=0;g&lt;a;++g)c=(s=t[g]).source,f=(u=s.target).x+u.vx-c.x-c.vx||o(),h=u.y+u.vy-c.y-c.vy||o(),f*=p=((p=Math.sqrt(f*f+h*h))-n[g])/p*r*e[g],h*=p,u.vx-=f*(m=l[g]),u.vy-=h*m,c.vx+=f*(m=1-m),c.vy+=h*m}function g(){if(i){var a,o,c=i.length,h=t.length,p=r.map(i,f);for(a=0,s=new Array(c);a&lt;h;++a)(o=t[a]).index=a,&quot;object&quot;!=typeof o.source&amp;&amp;(o.source=u(p,o.source)),&quot;object&quot;!=typeof o.target&amp;&amp;(o.target=u(p,o.target)),s[o.source.index]=(s[o.source.index]||0)+1,s[o.target.index]=(s[o.target.index]||0)+1;for(a=0,l=new Array(h);a&lt;h;++a)o=t[a],l[a]=s[o.source.index]/(s[o.source.index]+s[o.target.index]);e=new Array(h),v(),n=new Array(h),y()}}function v(){if(i)for(var r=0,n=t.length;r&lt;n;++r)e[r]=+h(t[r],r,t)}function y(){if(i)for(var e=0,r=t.length;e&lt;r;++e)n[e]=+p(t[e],e,t)}return null==t&amp;&amp;(t=[]),m.initialize=function(t){i=t,g()},m.links=function(e){return arguments.length?(t=e,g(),m):t},m.id=function(t){return arguments.length?(f=t,m):f},m.iterations=function(t){return arguments.length?(d=+t,m):d},m.strength=function(t){return arguments.length?(h=&quot;function&quot;==typeof t?t:a(+t),v(),m):h},m.distance=function(t){return arguments.length?(p=&quot;function&quot;==typeof t?t:a(+t),y(),m):p},m},t.forceManyBody=function(){var t,r,n,i,s=a(-30),l=1,c=1/0,u=.81;function p(i){var a,o=t.length,s=e.quadtree(t,f,h).visitAfter(m);for(n=i,a=0;a&lt;o;++a)r=t[a],s.visit(g)}function d(){if(t){var e,r,n=t.length;for(i=new Array(n),e=0;e&lt;n;++e)r=t[e],i[r.index]=+s(r,e,t)}}function m(t){var e,r,n,a,o,s=0,l=0;if(t.length){for(n=a=o=0;o&lt;4;++o)(e=t[o])&amp;&amp;(r=Math.abs(e.value))&amp;&amp;(s+=e.value,l+=r,n+=r*e.x,a+=r*e.y);t.x=n/l,t.y=a/l}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=i[e.data.index]}while(e=e.next)}t.value=s}function g(t,e,a,s){if(!t.value)return!0;var f=t.x-r.x,h=t.y-r.y,p=s-e,d=f*f+h*h;if(p*p/u&lt;d)return d&lt;c&amp;&amp;(0===f&amp;&amp;(d+=(f=o())*f),0===h&amp;&amp;(d+=(h=o())*h),d&lt;l&amp;&amp;(d=Math.sqrt(l*d)),r.vx+=f*t.value*n/d,r.vy+=h*t.value*n/d),!0;if(!(t.length||d&gt;=c)){(t.data!==r||t.next)&amp;&amp;(0===f&amp;&amp;(d+=(f=o())*f),0===h&amp;&amp;(d+=(h=o())*h),d&lt;l&amp;&amp;(d=Math.sqrt(l*d)));do{t.data!==r&amp;&amp;(p=i[t.data.index]*n/d,r.vx+=f*p,r.vy+=h*p)}while(t=t.next)}}return p.initialize=function(e){t=e,d()},p.strength=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:a(+t),d(),p):s},p.distanceMin=function(t){return arguments.length?(l=t*t,p):Math.sqrt(l)},p.distanceMax=function(t){return arguments.length?(c=t*t,p):Math.sqrt(c)},p.theta=function(t){return arguments.length?(u=t*t,p):Math.sqrt(u)},p},t.forceRadial=function(t,e,r){var n,i,o,s=a(.1);function l(t){for(var a=0,s=n.length;a&lt;s;++a){var l=n[a],c=l.x-e||1e-6,u=l.y-r||1e-6,f=Math.sqrt(c*c+u*u),h=(o[a]-f)*i[a]*t/f;l.vx+=c*h,l.vy+=u*h}}function c(){if(n){var e,r=n.length;for(i=new Array(r),o=new Array(r),e=0;e&lt;r;++e)o[e]=+t(n[e],e,n),i[e]=isNaN(o[e])?0:+s(n[e],e,n)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(+t)),null==e&amp;&amp;(e=0),null==r&amp;&amp;(r=0),l.initialize=function(t){n=t,c()},l.strength=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:a(+t),c(),l):s},l.radius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),c(),l):t},l.x=function(t){return arguments.length?(e=+t,l):e},l.y=function(t){return arguments.length?(r=+t,l):r},l},t.forceSimulation=function(t){var e,a=1,o=.001,s=1-Math.pow(o,1/300),l=0,c=.6,u=r.map(),f=i.timer(d),h=n.dispatch(&quot;tick&quot;,&quot;end&quot;);function d(){m(),h.call(&quot;tick&quot;,e),a&lt;o&amp;&amp;(f.stop(),h.call(&quot;end&quot;,e))}function m(r){var n,i,o=t.length;void 0===r&amp;&amp;(r=1);for(var f=0;f&lt;r;++f)for(a+=(l-a)*s,u.each((function(t){t(a)})),n=0;n&lt;o;++n)null==(i=t[n]).fx?i.x+=i.vx*=c:(i.x=i.fx,i.vx=0),null==i.fy?i.y+=i.vy*=c:(i.y=i.fy,i.vy=0);return e}function g(){for(var e,r=0,n=t.length;r&lt;n;++r){if((e=t[r]).index=r,null!=e.fx&amp;&amp;(e.x=e.fx),null!=e.fy&amp;&amp;(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(r),a=r*p;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&amp;&amp;(e.vx=e.vy=0)}}function v(e){return e.initialize&amp;&amp;e.initialize(t),e}return null==t&amp;&amp;(t=[]),g(),e={tick:m,restart:function(){return f.restart(d),e},stop:function(){return f.stop(),e},nodes:function(r){return arguments.length?(t=r,g(),u.each(v),e):t},alpha:function(t){return arguments.length?(a=+t,e):a},alphaMin:function(t){return arguments.length?(o=+t,e):o},alphaDecay:function(t){return arguments.length?(s=+t,e):+s},alphaTarget:function(t){return arguments.length?(l=+t,e):l},velocityDecay:function(t){return arguments.length?(c=1-t,e):1-c},force:function(t,r){return arguments.length&gt;1?(null==r?u.remove(t):u.set(t,v(r)),e):u.get(t)},find:function(e,r,n){var i,a,o,s,l,c=0,u=t.length;for(null==n?n=1/0:n*=n,c=0;c&lt;u;++c)(o=(i=e-(s=t[c]).x)*i+(a=r-s.y)*a)&lt;n&amp;&amp;(l=s,n=o);return l},on:function(t,r){return arguments.length&gt;1?(h.on(t,r),e):h.on(t)}}},t.forceX=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a&lt;o;++a)(i=e[a]).vx+=(n[a]-i.x)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a&lt;o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:a(+t),s(),o):i},o.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),s(),o):t},o},t.forceY=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a&lt;o;++a)(i=e[a]).vy+=(n[a]-i.y)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a&lt;o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:a(+t),s(),o):i},o.y=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),s(),o):t},o},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-collection&quot;:108,&quot;d3-dispatch&quot;:110,&quot;d3-quadtree&quot;:118,&quot;d3-timer&quot;:123}],112:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=&quot;undefined&quot;!=typeof globalThis?globalThis:t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf(&quot;e&quot;))&lt;0)return null;var r,n=t.slice(0,r);return[n.length&gt;1?n[0]+n.slice(2):n,+t.slice(r+1)]}function r(t){return(t=e(Math.abs(t)))?t[1]:NaN}var n,i=/^(?:(.)?([&lt;&gt;=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function a(t){if(!(e=i.exec(t)))throw new Error(&quot;invalid format: &quot;+t);var e;return new o({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&amp;&amp;e[8].slice(1),trim:e[9],type:e[10]})}function o(t){this.fill=void 0===t.fill?&quot; &quot;:t.fill+&quot;&quot;,this.align=void 0===t.align?&quot;&gt;&quot;:t.align+&quot;&quot;,this.sign=void 0===t.sign?&quot;-&quot;:t.sign+&quot;&quot;,this.symbol=void 0===t.symbol?&quot;&quot;:t.symbol+&quot;&quot;,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?&quot;&quot;:t.type+&quot;&quot;}function s(t,r){var n=e(t,r);if(!n)return t+&quot;&quot;;var i=n[0],a=n[1];return a&lt;0?&quot;0.&quot;+new Array(-a).join(&quot;0&quot;)+i:i.length&gt;a+1?i.slice(0,a+1)+&quot;.&quot;+i.slice(a+1):i+new Array(a-i.length+2).join(&quot;0&quot;)}a.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?&quot;0&quot;:&quot;&quot;)+(void 0===this.width?&quot;&quot;:Math.max(1,0|this.width))+(this.comma?&quot;,&quot;:&quot;&quot;)+(void 0===this.precision?&quot;&quot;:&quot;.&quot;+Math.max(0,0|this.precision))+(this.trim?&quot;~&quot;:&quot;&quot;)+this.type};var l={&quot;%&quot;:function(t,e){return(100*t).toFixed(e)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+&quot;&quot;},d:function(t){return Math.abs(t=Math.round(t))&gt;=1e21?t.toLocaleString(&quot;en&quot;).replace(/,/g,&quot;&quot;):t.toString(10)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},g:function(t,e){return t.toPrecision(e)},o:function(t){return Math.round(t).toString(8)},p:function(t,e){return s(100*t,e)},r:s,s:function(t,r){var i=e(t,r);if(!i)return t+&quot;&quot;;var a=i[0],o=i[1],s=o-(n=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,l=a.length;return s===l?a:s&gt;l?a+new Array(s-l+1).join(&quot;0&quot;):s&gt;0?a.slice(0,s)+&quot;.&quot;+a.slice(s):&quot;0.&quot;+new Array(1-s).join(&quot;0&quot;)+e(t,Math.max(0,r+s-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function c(t){return t}var u,f=Array.prototype.map,h=[&quot;y&quot;,&quot;z&quot;,&quot;a&quot;,&quot;f&quot;,&quot;p&quot;,&quot;n&quot;,&quot;\xb5&quot;,&quot;m&quot;,&quot;&quot;,&quot;k&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;,&quot;P&quot;,&quot;E&quot;,&quot;Z&quot;,&quot;Y&quot;];function p(t){var e,i,o=void 0===t.grouping||void 0===t.thousands?c:(e=f.call(t.grouping,Number),i=t.thousands+&quot;&quot;,function(t,r){for(var n=t.length,a=[],o=0,s=e[0],l=0;n&gt;0&amp;&amp;s&gt;0&amp;&amp;(l+s+1&gt;r&amp;&amp;(s=Math.max(1,r-l)),a.push(t.substring(n-=s,n+s)),!((l+=s+1)&gt;r));)s=e[o=(o+1)%e.length];return a.reverse().join(i)}),s=void 0===t.currency?&quot;&quot;:t.currency[0]+&quot;&quot;,u=void 0===t.currency?&quot;&quot;:t.currency[1]+&quot;&quot;,p=void 0===t.decimal?&quot;.&quot;:t.decimal+&quot;&quot;,d=void 0===t.numerals?c:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(f.call(t.numerals,String)),m=void 0===t.percent?&quot;%&quot;:t.percent+&quot;&quot;,g=void 0===t.minus?&quot;-&quot;:t.minus+&quot;&quot;,v=void 0===t.nan?&quot;NaN&quot;:t.nan+&quot;&quot;;function y(t){var e=(t=a(t)).fill,r=t.align,i=t.sign,c=t.symbol,f=t.zero,y=t.width,x=t.comma,b=t.precision,_=t.trim,w=t.type;&quot;n&quot;===w?(x=!0,w=&quot;g&quot;):l[w]||(void 0===b&amp;&amp;(b=12),_=!0,w=&quot;g&quot;),(f||&quot;0&quot;===e&amp;&amp;&quot;=&quot;===r)&amp;&amp;(f=!0,e=&quot;0&quot;,r=&quot;=&quot;);var T=&quot;$&quot;===c?s:&quot;#&quot;===c&amp;&amp;/[boxX]/.test(w)?&quot;0&quot;+w.toLowerCase():&quot;&quot;,k=&quot;$&quot;===c?u:/[%p]/.test(w)?m:&quot;&quot;,A=l[w],M=/[defgprs%]/.test(w);function S(t){var a,s,l,c=T,u=k;if(&quot;c&quot;===w)u=A(t)+u,t=&quot;&quot;;else{var m=(t=+t)&lt;0||1/t&lt;0;if(t=isNaN(t)?v:A(Math.abs(t),b),_&amp;&amp;(t=function(t){t:for(var e,r=t.length,n=1,i=-1;n&lt;r;++n)switch(t[n]){case&quot;.&quot;:i=e=n;break;case&quot;0&quot;:0===i&amp;&amp;(i=n),e=n;break;default:if(!+t[n])break t;i&gt;0&amp;&amp;(i=0)}return i&gt;0?t.slice(0,i)+t.slice(e+1):t}(t)),m&amp;&amp;0==+t&amp;&amp;&quot;+&quot;!==i&amp;&amp;(m=!1),c=(m?&quot;(&quot;===i?i:g:&quot;-&quot;===i||&quot;(&quot;===i?&quot;&quot;:i)+c,u=(&quot;s&quot;===w?h[8+n/3]:&quot;&quot;)+u+(m&amp;&amp;&quot;(&quot;===i?&quot;)&quot;:&quot;&quot;),M)for(a=-1,s=t.length;++a&lt;s;)if(48&gt;(l=t.charCodeAt(a))||l&gt;57){u=(46===l?p+t.slice(a+1):t.slice(a))+u,t=t.slice(0,a);break}}x&amp;&amp;!f&amp;&amp;(t=o(t,1/0));var S=c.length+t.length+u.length,E=S&lt;y?new Array(y-S+1).join(e):&quot;&quot;;switch(x&amp;&amp;f&amp;&amp;(t=o(E+t,E.length?y-u.length:1/0),E=&quot;&quot;),r){case&quot;&lt;&quot;:t=c+t+u+E;break;case&quot;=&quot;:t=c+E+t+u;break;case&quot;^&quot;:t=E.slice(0,S=E.length&gt;&gt;1)+c+t+u+E.slice(S);break;default:t=E+c+t+u}return d(t)}return b=void 0===b?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b)),S.toString=function(){return t+&quot;&quot;},S}return{format:y,formatPrefix:function(t,e){var n=y(((t=a(t)).type=&quot;f&quot;,t)),i=3*Math.max(-8,Math.min(8,Math.floor(r(e)/3))),o=Math.pow(10,-i),s=h[8+i/3];return function(t){return n(o*t)+s}}}}function d(e){return u=p(e),t.format=u.format,t.formatPrefix=u.formatPrefix,u}d({decimal:&quot;.&quot;,thousands:&quot;,&quot;,grouping:[3],currency:[&quot;$&quot;,&quot;&quot;],minus:&quot;-&quot;}),t.FormatSpecifier=o,t.formatDefaultLocale=d,t.formatLocale=p,t.formatSpecifier=a,t.precisionFixed=function(t){return Math.max(0,-r(Math.abs(t)))},t.precisionPrefix=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(r(e)/3)))-r(Math.abs(t)))},t.precisionRound=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,r(e)-r(t))+1},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],113:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-geo&quot;),t(&quot;d3-array&quot;)):i(n.d3=n.d3||{},n.d3,n.d3)}(this,(function(t,e,r){&quot;use strict&quot;;var n=Math.abs,i=Math.atan,a=Math.atan2,o=Math.cos,s=Math.exp,l=Math.floor,c=Math.log,u=Math.max,f=Math.min,h=Math.pow,p=Math.round,d=Math.sign||function(t){return t&gt;0?1:t&lt;0?-1:0},m=Math.sin,g=Math.tan,v=1e-6,y=Math.PI,x=y/2,b=y/4,_=Math.SQRT1_2,w=L(2),T=L(y),k=2*y,A=180/y,M=y/180;function S(t){return t&gt;1?x:t&lt;-1?-x:Math.asin(t)}function E(t){return t&gt;1?0:t&lt;-1?y:Math.acos(t)}function L(t){return t&gt;0?Math.sqrt(t):0}function C(t){return(s(t)-s(-t))/2}function P(t){return(s(t)+s(-t))/2}function I(t){var e=g(t/2),r=2*c(o(t/2))/(e*e);function i(t,e){var n=o(t),i=o(e),a=m(e),s=i*n,l=-((1-s?c((1+s)/2)/(1-s):-.5)+r/(1+s));return[l*i*m(t),l*a]}return i.invert=function(e,i){var s,l=L(e*e+i*i),u=-t/2,f=50;if(!l)return[0,0];do{var h=u/2,p=o(h),d=m(h),g=d/p,y=-c(n(p));u-=s=(2/g*y-r*g-l)/(-y/(d*d)+1-r/(2*p*p))*(p&lt;0?.7:1)}while(n(s)&gt;v&amp;&amp;--f&gt;0);var x=m(u);return[a(e*x,l*o(u)),S(i*x/l)]},i}function O(t,e){var r=o(e),n=function(t){return t?t/Math.sin(t):1}(E(r*o(t/=2)));return[2*r*m(t)*n,m(e)*n]}function z(t){var e=m(t),r=o(t),i=t&gt;=0?1:-1,s=g(i*t),l=(1+e-r)/2;function c(t,n){var c=o(n),u=o(t/=2);return[(1+c)*m(t),(i*n&gt;-a(u,s)-.001?0:10*-i)+l+m(n)*r-(1+c)*e*u]}return c.invert=function(t,c){var u=0,f=0,h=50;do{var p=o(u),d=m(u),g=o(f),y=m(f),x=1+g,b=x*d-t,_=l+y*r-x*e*p-c,w=x*p/2,T=-d*y,k=e*x*d/2,A=r*g+e*p*y,M=T*k-A*w,S=(_*T-b*A)/M/2,E=(b*k-_*w)/M;n(E)&gt;2&amp;&amp;(E/=2),u-=S,f-=E}while((n(S)&gt;v||n(E)&gt;v)&amp;&amp;--h&gt;0);return i*f&gt;-a(o(u),s)-.001?[2*u,f]:null},c}function D(t,e){var r=g(e/2),n=L(1-r*r),i=1+n*o(t/=2),a=m(t)*n/i,s=r/i,l=a*a,c=s*s;return[4/3*a*(3+l-3*c),4/3*s*(3+3*l-c)]}O.invert=function(t,e){if(!(t*t+4*e*e&gt;y*y+v)){var r=t,i=e,a=25;do{var s,l=m(r),c=m(r/2),u=o(r/2),f=m(i),h=o(i),p=m(2*i),d=f*f,g=h*h,x=c*c,b=1-g*u*u,_=b?E(h*u)*L(s=1/b):s=0,w=2*_*h*c-t,T=_*f-e,k=s*(g*x+_*h*u*d),A=s*(.5*l*p-2*_*f*c),M=.25*s*(p*c-_*f*g*l),S=s*(d*u+_*x*h),C=A*M-S*k;if(!C)break;var P=(T*A-w*S)/C,I=(w*M-T*k)/C;r-=P,i-=I}while((n(P)&gt;v||n(I)&gt;v)&amp;&amp;--a&gt;0);return[r,i]}},D.invert=function(t,e){if(e*=3/8,!(t*=3/8)&amp;&amp;n(e)&gt;1)return null;var r=1+t*t+e*e,i=L((r-L(r*r-4*e*e))/2),s=S(i)/3,l=i?function(t){return c(t+L(t*t-1))}(n(e/i))/3:function(t){return c(t+L(t*t+1))}(n(t))/3,u=o(s),f=P(l),h=f*f-u*u;return[2*d(t)*a(C(l)*u,.25-h),2*d(e)*a(f*m(s),.25+h)]};var R=L(8),F=c(1+w);function B(t,e){var r=n(e);return r&lt;b?[t,c(g(b+e/2))]:[t*o(r)*(2*w-1/m(r)),d(e)*(2*w*(r-b)-c(g(r/2)))]}function N(t){var r=2*y/t;function s(t,i){var s=e.geoAzimuthalEquidistantRaw(t,i);if(n(t)&gt;x){var l=a(s[1],s[0]),c=L(s[0]*s[0]+s[1]*s[1]),u=r*p((l-x)/r)+x,f=a(m(l-=u),2-o(l));l=u+S(y/c*m(f))-f,s[0]=c*o(l),s[1]=c*m(l)}return s}return s.invert=function(t,n){var s=L(t*t+n*n);if(s&gt;x){var l=a(n,t),c=r*p((l-x)/r)+x,u=l&gt;c?-1:1,f=s*o(c-l),h=1/g(u*E((f-y)/L(y*(y-2*f)+s*s)));l=c+2*i((h+u*L(h*h-3))/3),t=s*o(l),n=s*m(l)}return e.geoAzimuthalEquidistantRaw.invert(t,n)},s}function j(t,r){if(arguments.length&lt;2&amp;&amp;(r=t),1===r)return e.geoAzimuthalEqualAreaRaw;if(r===1/0)return U;function n(n,i){var a=e.geoAzimuthalEqualAreaRaw(n/r,i);return a[0]*=t,a}return n.invert=function(n,i){var a=e.geoAzimuthalEqualAreaRaw.invert(n/t,i);return a[0]*=r,a},n}function U(t,e){return[t*o(e)/o(e/=2),2*m(e)]}function V(t,e,r){var i,a,o,s=100;r=void 0===r?0:+r,e=+e;do{(a=t(r))===(o=t(r+v))&amp;&amp;(o=a+v),r-=i=-1*v*(a-e)/(a-o)}while(s-- &gt;0&amp;&amp;n(i)&gt;v);return s&lt;0?NaN:r}function H(t,e,r){return void 0===e&amp;&amp;(e=40),void 0===r&amp;&amp;(r=1e-12),function(i,a,o,s){var l,c,u;o=void 0===o?0:+o,s=void 0===s?0:+s;for(var f=0;f&lt;e;f++){var h=t(o,s),p=h[0]-i,d=h[1]-a;if(n(p)&lt;r&amp;&amp;n(d)&lt;r)break;var m=p*p+d*d;if(m&gt;l)o-=c/=2,s-=u/=2;else{l=m;var g=(o&gt;0?-1:1)*r,v=(s&gt;0?-1:1)*r,y=t(o+g,s),x=t(o,s+v),b=(y[0]-h[0])/g,_=(y[1]-h[1])/g,w=(x[0]-h[0])/v,T=(x[1]-h[1])/v,k=T*b-_*w,A=(n(k)&lt;.5?.5:1)/k;if(o+=c=(d*w-p*T)*A,s+=u=(p*_-d*b)*A,n(c)&lt;r&amp;&amp;n(u)&lt;r)break}}return[o,s]}}function q(){var t=j(1.68,2);function e(e,r){if(e+r&lt;-1.4){var n=(e-r+1.6)*(e+r+1.4)/8;e+=n,r-=.8*n*m(r+y/2)}var i=t(e,r),a=(1-o(e*r))/12;return i[1]&lt;0&amp;&amp;(i[0]*=1+a),i[1]&gt;0&amp;&amp;(i[1]*=1+a/1.5*i[0]*i[0]),i}return e.invert=H(e),e}function G(t,e){var r,i=t*m(e),a=30;do{e-=r=(e+m(e)-i)/(1+o(e))}while(n(r)&gt;v&amp;&amp;--a&gt;0);return e/2}function Y(t,e,r){function n(n,i){return[t*n*o(i=G(r,i)),e*m(i)]}return n.invert=function(n,i){return i=S(i/e),[n/(t*o(i)),S((2*i+m(2*i))/r)]},n}B.invert=function(t,e){if((a=n(e))&lt;F)return[t,2*i(s(e))-x];var r,a,l=b,u=25;do{var f=o(l/2),h=g(l/2);l-=r=(R*(l-b)-c(h)-a)/(R-f*f/(2*h))}while(n(r)&gt;1e-12&amp;&amp;--u&gt;0);return[t/(o(l)*(R-1/m(l))),d(e)*l]},U.invert=function(t,e){var r=2*S(e/2);return[t*o(r/2)/o(r),r]};var W=Y(w/x,w,y);var X=2.00276,Z=1.11072;function J(t,e){var r=G(y,e);return[X*t/(1/o(e)+Z/o(r)),(e+w*m(r))/X]}function K(t){var r=0,n=e.geoProjectionMutator(t),i=n(r);return i.parallel=function(t){return arguments.length?n(r=t*M):r*A},i}function Q(t,e){return[t*o(e),e]}function $(t){if(!t)return Q;var e=1/g(t);function r(r,n){var i=e+t-n,a=i?r*o(n)/i:i;return[i*m(a),e-i*o(a)]}return r.invert=function(r,n){var i=L(r*r+(n=e-n)*n),s=e+t-i;return[i/o(s)*a(r,n),s]},r}function tt(t){function e(e,r){var n=x-r,i=n?e*t*m(n)/n:n;return[n*m(i)/t,x-n*o(i)]}return e.invert=function(e,r){var n=e*t,i=x-r,o=L(n*n+i*i),s=a(n,i);return[(o?o/m(o):1)*s/t,x-o]},e}J.invert=function(t,e){var r,i,a=X*e,s=e&lt;0?-b:b,l=25;do{i=a-w*m(s),s-=r=(m(2*s)+2*s-y*m(i))/(2*o(2*s)+2+y*o(i)*w*o(s))}while(n(r)&gt;v&amp;&amp;--l&gt;0);return i=a-w*m(s),[t*(1/o(i)+Z/o(s))/X,i]},Q.invert=function(t,e){return[t/o(e),e]};var et=Y(1,4/y,y);function rt(t,e,r,i,s,l){var c,u=o(l);if(n(t)&gt;1||n(l)&gt;1)c=E(r*s+e*i*u);else{var f=m(t/2),h=m(l/2);c=2*S(L(f*f+e*i*h*h))}return n(c)&gt;v?[c,a(i*m(l),e*s-r*i*u)]:[0,0]}function nt(t,e,r){return E((t*t+e*e-r*r)/(2*t*e))}function it(t){return t-2*y*l((t+y)/(2*y))}function at(t,e,r){for(var n,i=[[t[0],t[1],m(t[1]),o(t[1])],[e[0],e[1],m(e[1]),o(e[1])],[r[0],r[1],m(r[1]),o(r[1])]],a=i[2],s=0;s&lt;3;++s,a=n)n=i[s],a.v=rt(n[1]-a[1],a[3],a[2],n[3],n[2],n[0]-a[0]),a.point=[0,0];var l=nt(i[0].v[0],i[2].v[0],i[1].v[0]),c=nt(i[0].v[0],i[1].v[0],i[2].v[0]),u=y-l;i[2].point[1]=0,i[0].point[0]=-(i[1].point[0]=i[0].v[0]/2);var f=[i[2].point[0]=i[0].point[0]+i[2].v[0]*o(l),2*(i[0].point[1]=i[1].point[1]=i[2].v[0]*m(l))];return function(t,e){var r,n=m(e),a=o(e),s=new Array(3);for(r=0;r&lt;3;++r){var l=i[r];if(s[r]=rt(e-l[1],l[3],l[2],a,n,t-l[0]),!s[r][0])return l.point;s[r][1]=it(s[r][1]-l.v[1])}var h=f.slice();for(r=0;r&lt;3;++r){var p=2==r?0:r+1,d=nt(i[r].v[0],s[r][0],s[p][0]);s[r][1]&lt;0&amp;&amp;(d=-d),r?1==r?(d=c-d,h[0]-=s[r][0]*o(d),h[1]-=s[r][0]*m(d)):(d=u-d,h[0]+=s[r][0]*o(d),h[1]+=s[r][0]*m(d)):(h[0]+=s[r][0]*o(d),h[1]-=s[r][0]*m(d))}return h[0]/=3,h[1]/=3,h}}function ot(t){return t[0]*=M,t[1]*=M,t}function st(t,r,n){var i=e.geoCentroid({type:&quot;MultiPoint&quot;,coordinates:[t,r,n]}),a=[-i[0],-i[1]],o=e.geoRotation(a),s=at(ot(o(t)),ot(o(r)),ot(o(n)));s.invert=H(s);var l=e.geoProjection(s).rotate(a),c=l.center;return delete l.rotate,l.center=function(t){return arguments.length?c(o(t)):o.invert(c())},l.clipAngle(90)}function lt(t,e){var r=L(1-m(e));return[2/T*t*r,T*(1-r)]}function ct(t){var e=g(t);function r(t,r){return[t,(t?t/m(t):1)*(m(r)*o(t)-e*o(r))]}return r.invert=e?function(t,r){t&amp;&amp;(r*=m(t)/t);var n=o(t);return[t,2*a(L(n*n+e*e-r*r)-n,e-r)]}:function(t,e){return[t,S(t?e*g(t)/t:e)]},r}lt.invert=function(t,e){var r=(r=e/T-1)*r;return[r&gt;0?t*L(y/r)/2:0,S(1-r)]};var ut=L(3);function ft(t,e){return[ut*t*(2*o(2*e/3)-1)/T,ut*T*m(e/3)]}function ht(t){var e=o(t);function r(t,r){return[t*e,m(r)/e]}return r.invert=function(t,r){return[t/e,S(r*e)]},r}function pt(t){var e=o(t);function r(t,r){return[t*e,(1+e)*g(r/2)]}return r.invert=function(t,r){return[t/e,2*i(r/(1+e))]},r}function dt(t,e){var r=L(8/(3*y));return[r*t*(1-n(e)/y),r*e]}function mt(t,e){var r=L(4-3*m(n(e)));return[2/L(6*y)*t*r,d(e)*L(2*y/3)*(2-r)]}function gt(t,e){var r=L(y*(4+y));return[2/r*t*(1+L(1-4*e*e/(y*y))),4/r*e]}function vt(t,e){var r=(2+x)*m(e);e/=2;for(var i=0,a=1/0;i&lt;10&amp;&amp;n(a)&gt;v;i++){var s=o(e);e-=a=(e+m(e)*(s+2)-r)/(2*s*(1+s))}return[2/L(y*(4+y))*t*(1+o(e)),2*L(y/(4+y))*m(e)]}function yt(t,e){return[t*(1+o(e))/L(2+y),2*e/L(2+y)]}function xt(t,e){for(var r=(1+x)*m(e),i=0,a=1/0;i&lt;10&amp;&amp;n(a)&gt;v;i++)e-=a=(e+m(e)-r)/(1+o(e));return r=L(2+y),[t*(1+o(e))/r,2*e/r]}ft.invert=function(t,e){var r=3*S(e/(ut*T));return[T*t/(ut*(2*o(2*r/3)-1)),r]},dt.invert=function(t,e){var r=L(8/(3*y)),i=e/r;return[t/(r*(1-n(i)/y)),i]},mt.invert=function(t,e){var r=2-n(e)/L(2*y/3);return[t*L(6*y)/(2*r),d(e)*S((4-r*r)/3)]},gt.invert=function(t,e){var r=L(y*(4+y))/2;return[t*r/(1+L(1-e*e*(4+y)/(4*y))),e*r/2]},vt.invert=function(t,e){var r=e*L((4+y)/y)/2,n=S(r),i=o(n);return[t/(2/L(y*(4+y))*(1+i)),S((n+r*(i+2))/(2+x))]},yt.invert=function(t,e){var r=L(2+y),n=e*r/2;return[r*t/(1+o(n)),n]},xt.invert=function(t,e){var r=1+x,n=L(r/2);return[2*t*n/(1+o(e*=n)),S((e+m(e))/r)]};var bt=3+2*w;function _t(t,e){var r=m(t/=2),n=o(t),a=L(o(e)),s=o(e/=2),l=m(e)/(s+w*n*a),u=L(2/(1+l*l)),f=L((w*s+(n+r)*a)/(w*s+(n-r)*a));return[bt*(u*(f-1/f)-2*c(f)),bt*(u*l*(f+1/f)-2*i(l))]}_t.invert=function(t,e){if(!(r=D.invert(t/1.2,1.065*e)))return null;var r,a=r[0],s=r[1],l=20;t/=bt,e/=bt;do{var h=a/2,p=s/2,d=m(h),g=o(h),y=m(p),b=o(p),T=o(s),k=L(T),A=y/(b+w*g*k),M=A*A,S=L(2/(1+M)),E=(w*b+(g+d)*k)/(w*b+(g-d)*k),C=L(E),P=C-1/C,I=C+1/C,O=S*P-2*c(C)-t,z=S*A*I-2*i(A)-e,R=y&amp;&amp;_*k*d*M/y,F=(w*g*b+k)/(2*(b+w*g*k)*(b+w*g*k)*k),B=-.5*A*S*S*S,N=B*R,j=B*F,U=(U=2*b+w*k*(g-d))*U*C,V=(w*g*b*k+T)/U,H=-w*d*y/(k*U),q=P*N-2*V/C+S*(V+V/E),G=P*j-2*H/C+S*(H+H/E),Y=A*I*N-2*R/(1+M)+S*I*R+S*A*(V-V/E),W=A*I*j-2*F/(1+M)+S*I*F+S*A*(H-H/E),X=G*Y-W*q;if(!X)break;var Z=(z*G-O*W)/X,J=(O*Y-z*q)/X;a-=Z,s=u(-x,f(x,s-J))}while((n(Z)&gt;v||n(J)&gt;v)&amp;&amp;--l&gt;0);return n(n(s)-x)&lt;v?[0,s]:l&amp;&amp;[a,s]};var wt=o(35*M);function Tt(t,e){var r=g(e/2);return[t*wt*L(1-r*r),(1+wt)*r]}function kt(t,e){var r=e/2,n=o(r);return[2*t/T*o(e)*n*n,T*g(r)]}function At(t){var e=1-t,r=i(y,0)[0]-i(-y,0)[0],n=L(2*(i(0,x)[1]-i(0,-x)[1])/r);function i(r,n){var i=o(n),a=m(n);return[i/(e+t*i)*r,e*n+t*a]}function a(t,e){var r=i(t,e);return[r[0]*n,r[1]/n]}function s(t){return a(0,t)[1]}return a.invert=function(r,i){var a=V(s,i);return[r/n*(t+e/o(a)),a]},a}function Mt(t){return[t[0]/2,S(g(t[1]/2*M))*A]}function St(t){return[2*t[0],2*i(m(t[1]*M))*A]}function Et(t,r){var i=2*y/r,s=t*t;function l(r,l){var c=e.geoAzimuthalEquidistantRaw(r,l),u=c[0],f=c[1],h=u*u+f*f;if(h&gt;s){var d=L(h),g=a(f,u),b=i*p(g/i),_=g-b,w=t*o(_),T=(t*m(_)-_*m(w))/(x-w),k=Lt(_,T),A=(y-t)/Ct(k,w,y);u=d;var M,S=50;do{u-=M=(t+Ct(k,w,u)*A-d)/(k(u)*A)}while(n(M)&gt;v&amp;&amp;--S&gt;0);f=_*m(u),u&lt;x&amp;&amp;(f-=T*(u-x));var E=m(b),C=o(b);c[0]=u*C-f*E,c[1]=u*E+f*C}return c}return l.invert=function(r,l){var c=r*r+l*l;if(c&gt;s){var u=L(c),f=a(l,r),h=i*p(f/i),d=f-h;r=u*o(d),l=u*m(d);for(var g=r-x,v=m(r),b=l/v,_=r&lt;x?1/0:0,w=10;;){var T=t*m(b),k=t*o(b),A=m(k),M=x-k,S=(T-b*A)/M,E=Lt(b,S);if(n(_)&lt;1e-12||!--w)break;b-=_=(b*v-S*g-l)/(v-2*g*(M*(k+b*T*o(k)-A)-T*(T-b*A))/(M*M))}r=(u=t+Ct(E,k,r)*(y-t)/Ct(E,k,y))*o(f=h+b),l=u*m(f)}return e.geoAzimuthalEquidistantRaw.invert(r,l)},l}function Lt(t,e){return function(r){var n=t*o(r);return r&lt;x&amp;&amp;(n-=e),L(1+n*n)}}function Ct(t,e,r){for(var n=(r-e)/50,i=t(e)+t(r),a=1,o=e;a&lt;50;++a)i+=2*t(o+=n);return.5*i*n}function Pt(t,e,r,i,a,s,l,c){function u(n,u){if(!u)return[t*n/y,0];var f=u*u,h=t+f*(e+f*(r+f*i)),p=u*(a-1+f*(s-c+f*l)),d=(h*h+p*p)/(2*p),g=n*S(h/d)/y;return[d*m(g),u*(1+f*c)+d*(1-o(g))]}return arguments.length&lt;8&amp;&amp;(c=0),u.invert=function(u,f){var h,p,d=y*u/t,g=f,x=50;do{var b=g*g,_=t+b*(e+b*(r+b*i)),w=g*(a-1+b*(s-c+b*l)),T=_*_+w*w,k=2*w,A=T/k,M=A*A,E=S(_/A)/y,C=d*E,P=_*_,I=(2*e+b*(4*r+6*b*i))*g,O=a+b*(3*s+5*b*l),z=(2*(_*I+w*(O-1))*k-T*(2*(O-1)))/(k*k),D=o(C),R=m(C),F=A*D,B=A*R,N=d/y*(1/L(1-P/M))*(I*A-_*z)/M,j=B-u,U=g*(1+b*c)+A-F-f,V=z*R+F*N,H=F*E,q=1+z-(z*D-B*N),G=B*E,Y=V*G-q*H;if(!Y)break;d-=h=(U*V-j*q)/Y,g-=p=(j*G-U*H)/Y}while((n(h)&gt;v||n(p)&gt;v)&amp;&amp;--x&gt;0);return[d,g]},u}Tt.invert=function(t,e){var r=e/(1+wt);return[t&amp;&amp;t/(wt*L(1-r*r)),2*i(r)]},kt.invert=function(t,e){var r=i(e/T),n=o(r),a=2*r;return[t*T/2/(o(a)*n*n),a]};var It=Pt(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);var Ot=Pt(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);var zt=Pt(5/6*y,-.62636,-.0344,0,1.3493,-.05524,0,.045);function Dt(t,e){var r=t*t,n=e*e;return[t*(1-.162388*n)*(.87-952426e-9*r*r),e*(1+n/12)]}Dt.invert=function(t,e){var r,i=t,a=e,o=50;do{var s=a*a;a-=r=(a*(1+s/12)-e)/(1+s/4)}while(n(r)&gt;v&amp;&amp;--o&gt;0);o=50,t/=1-.162388*s;do{var l=(l=i*i)*l;i-=r=(i*(.87-952426e-9*l)-t)/(.87-.00476213*l)}while(n(r)&gt;v&amp;&amp;--o&gt;0);return[i,a]};var Rt=Pt(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function Ft(t){var e=t(x,0)[0]-t(-x,0)[0];function r(r,n){var i=r&gt;0?-.5:.5,a=t(r+i*y,n);return a[0]-=i*e,a}return t.invert&amp;&amp;(r.invert=function(r,n){var i=r&gt;0?-.5:.5,a=t.invert(r+i*e,n),o=a[0]-i*y;return o&lt;-y?o+=2*y:o&gt;y&amp;&amp;(o-=2*y),a[0]=o,a}),r}function Bt(t,e){var r=d(t),i=d(e),s=o(e),l=o(t)*s,c=m(t)*s,u=m(i*e);t=n(a(c,u)),e=S(l),n(t-x)&gt;v&amp;&amp;(t%=x);var f=function(t,e){if(e===x)return[0,0];var r,i,a=m(e),s=a*a,l=s*s,c=1+l,u=1+3*l,f=1-l,h=S(1/L(c)),p=f+s*c*h,d=(1-a)/p,g=L(d),b=d*c,_=L(b),w=g*f;if(0===t)return[0,-(w+s*_)];var T,k=o(e),A=1/k,M=2*a*k,E=(-p*k-(-3*s+h*u)*M*(1-a))/(p*p),C=-A*M,P=-A*(s*c*E+d*u*M),I=-2*A*(f*(.5*E/g)-2*s*g*M),O=4*t/y;if(t&gt;.222*y||e&lt;y/4&amp;&amp;t&gt;.175*y){if(r=(w+s*L(b*(1+l)-w*w))/(1+l),t&gt;y/4)return[r,r];var z=r,D=.5*r;r=.5*(D+z),i=50;do{var R=L(b-r*r),F=r*(I+C*R)+P*S(r/_)-O;if(!F)break;F&lt;0?D=r:z=r,r=.5*(D+z)}while(n(z-D)&gt;v&amp;&amp;--i&gt;0)}else{r=v,i=25;do{var B=r*r,N=L(b-B),j=I+C*N,U=r*j+P*S(r/_)-O,V=j+(P-C*B)/N;r-=T=N?U/V:0}while(n(T)&gt;v&amp;&amp;--i&gt;0)}return[r,-w-s*L(b-r*r)]}(t&gt;y/4?x-t:t,e);return t&gt;y/4&amp;&amp;(u=f[0],f[0]=-f[1],f[1]=-u),f[0]*=r,f[1]*=-i,f}function Nt(t,e){var r,a,l,c,u,f;if(e&lt;v)return[(c=m(t))-(r=e*(t-c*(a=o(t)))/4)*a,a+r*c,1-e*c*c/2,t-r];if(e&gt;=1-v)return r=(1-e)/4,l=1/(a=P(t)),[(c=((f=s(2*(f=t)))-1)/(f+1))+r*((u=a*C(t))-t)/(a*a),l-r*c*l*(u-t),l+r*c*l*(u+t),2*i(s(t))-x+r*(u-t)/a];var h=[1,0,0,0,0,0,0,0,0],p=[L(e),0,0,0,0,0,0,0,0],d=0;for(a=L(1-e),u=1;n(p[d]/h[d])&gt;v&amp;&amp;d&lt;8;)r=h[d++],p[d]=(r-a)/2,h[d]=(r+a)/2,a=L(r*a),u*=2;l=u*h[d]*t;do{l=(S(c=p[d]*m(a=l)/h[d])+l)/2}while(--d);return[m(l),c=o(l),c/o(l-a),l]}function jt(t,e){if(!e)return t;if(1===e)return c(g(t/2+b));for(var r=1,a=L(1-e),o=L(e),s=0;n(o)&gt;v;s++){if(t%y){var l=i(a*g(t)/r);l&lt;0&amp;&amp;(l+=y),t+=l+~~(t/y)*y}else t+=t;o=(r+a)/2,a=L(r*a),o=((r=o)-a)/2}return t/(h(2,s)*r)}function Ut(t,e){var r=(w-1)/(w+1),l=L(1-r*r),u=jt(x,l*l),f=c(g(y/4+n(e)/2)),h=s(-1*f)/L(r),p=function(t,e){var r=t*t,n=e+1,i=1-r-e*e;return[.5*((t&gt;=0?x:-x)-a(i,2*t)),-.25*c(i*i+4*r)+.5*c(n*n+r)]}(h*o(-1*t),h*m(-1*t)),v=function(t,e,r){var a=n(t),o=C(n(e));if(a){var s=1/m(a),l=1/(g(a)*g(a)),c=-(l+r*(o*o*s*s)-1+r),u=(-c+L(c*c-4*((r-1)*l)))/2;return[jt(i(1/L(u)),r)*d(t),jt(i(L((u/l-1)/r)),1-r)*d(e)]}return[0,jt(i(o),1-r)*d(e)]}(p[0],p[1],l*l);return[-v[1],(e&gt;=0?1:-1)*(.5*u-v[0])]}function Vt(t){var e=m(t),r=o(t),i=Ht(t);function s(t,a){var s=i(t,a);t=s[0],a=s[1];var l=m(a),c=o(a),u=o(t),f=E(e*l+r*c*u),h=m(f),p=n(h)&gt;v?f/h:1;return[p*r*m(t),(n(t)&gt;x?p:-p)*(e*c-r*l*u)]}return i.invert=Ht(-t),s.invert=function(t,r){var n=L(t*t+r*r),s=-m(n),l=o(n),c=n*l,u=-r*s,f=n*e,h=L(c*c+u*u-f*f),p=a(c*f+u*h,u*f-c*h),d=(n&gt;x?-1:1)*a(t*s,n*o(p)*l+r*m(p)*s);return i.invert(d,p)},s}function Ht(t){var e=m(t),r=o(t);return function(t,n){var i=o(n),s=o(t)*i,l=m(t)*i,c=m(n);return[a(l,s*r-c*e),S(c*r+s*e)]}}Bt.invert=function(t,e){n(t)&gt;1&amp;&amp;(t=2*d(t)-t),n(e)&gt;1&amp;&amp;(e=2*d(e)-e);var r=d(t),i=d(e),s=-r*t,l=-i*e,c=l/s&lt;1,u=function(t,e){var r=0,i=1,a=.5,s=50;for(;;){var l=a*a,c=L(a),u=S(1/L(1+l)),f=1-l+a*(1+l)*u,h=(1-c)/f,p=L(h),d=h*(1+l),m=p*(1-l),g=L(d-t*t),v=e+m+a*g;if(n(i-r)&lt;1e-12||0==--s||0===v)break;v&gt;0?r=a:i=a,a=.5*(r+i)}if(!s)return null;var x=S(c),b=o(x),_=1/b,w=2*c*b,T=(-f*b-(-3*a+u*(1+3*l))*w*(1-c))/(f*f);return[y/4*(t*(-2*_*(.5*T/p*(1-l)-2*a*p*w)+-_*w*g)+-_*(a*(1+l)*T+h*(1+3*l)*w)*S(t/L(d))),x]}(c?l:s,c?s:l),f=u[0],h=u[1],p=o(h);return c&amp;&amp;(f=-x-f),[r*(a(m(f)*p,-m(h))+y),i*S(o(f)*p)]},Ut.invert=function(t,e){var r,n,o,l,u,f,h=(w-1)/(w+1),p=L(1-h*h),d=jt(x,p*p),m=(n=-t,o=p*p,(r=.5*d-e)?(l=Nt(r,o),n?(f=(u=Nt(n,1-o))[1]*u[1]+o*l[0]*l[0]*u[0]*u[0],[[l[0]*u[2]/f,l[1]*l[2]*u[0]*u[1]/f],[l[1]*u[1]/f,-l[0]*l[2]*u[0]*u[2]/f],[l[2]*u[1]*u[2]/f,-o*l[0]*l[1]*u[0]/f]]):[[l[0],0],[l[1],0],[l[2],0]]):[[0,(u=Nt(n,1-o))[0]/u[1]],[1/u[1],0],[u[2]/u[1],0]]),g=function(t,e){var r=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/r,(t[1]*e[0]-t[0]*e[1])/r]}(m[0],m[1]);return[a(g[1],g[0])/-1,2*i(s(-.5*c(h*g[0]*g[0]+h*g[1]*g[1])))-x]};var qt=S(1-1/3)*A,Gt=ht(0);function Yt(t){var e=qt*M,r=lt(y,e)[0]-lt(-y,e)[0],i=Gt(0,e)[1],a=lt(0,e)[1],o=T-a,s=k/t,c=4/k,h=i+o*o*4/k;function p(p,d){var m,g=n(d);if(g&gt;e){var v=f(t-1,u(0,l((p+y)/s)));(m=lt(p+=y*(t-1)/t-v*s,g))[0]=m[0]*k/r-k*(t-1)/(2*t)+v*k/t,m[1]=i+4*(m[1]-a)*o/k,d&lt;0&amp;&amp;(m[1]=-m[1])}else m=Gt(p,d);return m[0]*=c,m[1]/=h,m}return p.invert=function(e,p){e/=c;var d=n(p*=h);if(d&gt;i){var m=f(t-1,u(0,l((e+y)/s)));e=(e+y*(t-1)/t-m*s)*r/k;var g=lt.invert(e,.25*(d-i)*k/o+a);return g[0]-=y*(t-1)/t-m*s,p&lt;0&amp;&amp;(g[1]=-g[1]),g}return Gt.invert(e,p)},p}function Wt(t,e){return[t,1&amp;e?90-v:qt]}function Xt(t,e){return[t,1&amp;e?-90+v:-qt]}function Zt(t){return[t[0]*(1-v),t[1]]}function Jt(t){var e,r=1+t,i=S(m(1/r)),s=2*L(y/(e=y+4*i*r)),l=.5*s*(r+L(t*(2+t))),c=t*t,u=r*r;function f(f,h){var p,d,g=1-m(h);if(g&amp;&amp;g&lt;2){var v,b=x-h,_=25;do{var w=m(b),T=o(b),k=i+a(w,r-T),A=1+u-2*r*T;b-=v=(b-c*i-r*w+A*k-.5*g*e)/(2*r*w*k)}while(n(v)&gt;1e-12&amp;&amp;--_&gt;0);p=s*L(A),d=f*k/y}else p=s*(t+g),d=f*i/y;return[p*m(d),l-p*o(d)]}return f.invert=function(t,n){var o=t*t+(n-=l)*n,f=(1+u-o/(s*s))/(2*r),h=E(f),p=m(h),d=i+a(p,r-f);return[S(t/L(o))*y/d,S(1-2*(h-c*i-r*p+(1+u-2*r*f)*d)/e)]},f}function Kt(t,e){return e&gt;-.7109889596207567?((t=W(t,e))[1]+=.0528035274542,t):Q(t,e)}function Qt(t,e){return n(e)&gt;.7109889596207567?((t=W(t,e))[1]-=e&gt;0?.0528035274542:-.0528035274542,t):Q(t,e)}function $t(t,e,r,n){var i=L(4*y/(2*r+(1+t-e/2)*m(2*r)+(t+e)/2*m(4*r)+e/2*m(6*r))),a=L(n*m(r)*L((1+t*o(2*r)+e*o(4*r))/(1+t+e))),s=r*c(1);function l(r){return L(1+t*o(2*r)+e*o(4*r))}function c(n){var i=n*r;return(2*i+(1+t-e/2)*m(2*i)+(t+e)/2*m(4*i)+e/2*m(6*i))/r}function u(t){return l(t)*m(t)}var f=function(t,e){var n=r*V(c,s*m(e)/r,e/y);isNaN(n)&amp;&amp;(n=r*d(e));var u=i*l(n);return[u*a*t/y*o(n),u/a*m(n)]};return f.invert=function(t,e){var n=V(u,e*a/i);return[t*y/(o(n)*i*a*l(n)),S(r*c(n/r)/s)]},0===r&amp;&amp;(i=L(n/y),(f=function(t,e){return[t*i,m(e)/i]}).invert=function(t,e){return[t/i,S(e*i)]}),f}function te(t,e,r,n,i){void 0===n&amp;&amp;(n=1e-8),void 0===i&amp;&amp;(i=20);var a=t(e),o=t(.5*(e+r)),s=t(r);return function t(e,r,n,i,a,o,s,l,c,u,f){if(f.nanEncountered)return NaN;var h,p,d,m,g,v,y,x,b,_;if(p=e(r+.25*(h=n-r)),d=e(n-.25*h),isNaN(p))f.nanEncountered=!0;else{if(!isNaN(d))return _=((v=(m=h*(i+4*p+a)/12)+(g=h*(a+4*d+o)/12))-s)/15,u&gt;c?(f.maxDepthCount++,v+_):Math.abs(_)&lt;l?v+_:(x=t(e,r,y=r+.5*h,i,p,a,m,.5*l,c,u+1,f),isNaN(x)?(f.nanEncountered=!0,NaN):(b=t(e,y,n,a,d,o,g,.5*l,c,u+1,f),isNaN(b)?(f.nanEncountered=!0,NaN):x+b));f.nanEncountered=!0}}(t,e,r,a,o,s,(a+4*o+s)*(r-e)/6,n,i,1,{maxDepthCount:0,nanEncountered:!1})}function ee(t,e,r){function i(r){return t+(1-t)*h(1-h(r,e),1/e)}function a(t){return te(i,0,t,1e-4)}for(var o=1/a(1),s=1e3,l=(1+1e-8)*o,c=[],u=0;u&lt;=s;u++)c.push(a(u/s)*l);function f(t){var e=0,r=s,n=500;do{c[n]&gt;t?r=n:e=n,n=e+r&gt;&gt;1}while(n&gt;e);var i=c[n+1]-c[n];return i&amp;&amp;(i=(t-c[n+1])/i),(n+1+i)/s}var p=2*f(1)/y*o/r,g=function(t,e){var r=f(n(m(e))),a=i(r)*t;return r/=p,[a,e&gt;=0?r:-r]};return g.invert=function(t,e){var r;return n(e*=p)&lt;1&amp;&amp;(r=d(e)*S(a(n(e))*o)),[t/i(n(e)),r]},g}function re(t,e){return n(t[0]-e[0])&lt;v&amp;&amp;n(t[1]-e[1])&lt;v}function ne(t,e){for(var r,n,i,a=-1,o=t.length,s=t[0],l=[];++a&lt;o;){n=((r=t[a])[0]-s[0])/e,i=(r[1]-s[1])/e;for(var c=0;c&lt;e;++c)l.push([s[0]+c*n,s[1]+c*i]);s=r}return l.push(r),l}function ie(t){var e,n,i,a,o,s,l,c=[],u=t[0].length;for(l=0;l&lt;u;++l)n=(e=t[0][l])[0][0],i=e[0][1],a=e[1][1],o=e[2][0],s=e[2][1],c.push(ne([[n+v,i+v],[n+v,a-v],[o-v,a-v],[o-v,s+v]],30));for(l=t[1].length-1;l&gt;=0;--l)n=(e=t[1][l])[0][0],i=e[0][1],a=e[1][1],o=e[2][0],s=e[2][1],c.push(ne([[o-v,s-v],[o-v,a+v],[n+v,a+v],[n+v,i-v]],30));return{type:&quot;Polygon&quot;,coordinates:[r.merge(c)]}}function ae(t,r,n){var i,a;function o(e,n){for(var i=n&lt;0?-1:1,a=r[+(n&lt;0)],o=0,s=a.length-1;o&lt;s&amp;&amp;e&gt;a[o][2][0];++o);var l=t(e-a[o][1][0],n);return l[0]+=t(a[o][1][0],i*n&gt;i*a[o][0][1]?a[o][0][1]:n)[0],l}n?o.invert=n(o):t.invert&amp;&amp;(o.invert=function(e,n){for(var i=a[+(n&lt;0)],s=r[+(n&lt;0)],l=0,c=i.length;l&lt;c;++l){var u=i[l];if(u[0][0]&lt;=e&amp;&amp;e&lt;u[1][0]&amp;&amp;u[0][1]&lt;=n&amp;&amp;n&lt;u[1][1]){var f=t.invert(e-t(s[l][1][0],0)[0],n);return f[0]+=s[l][1][0],re(o(f[0],f[1]),[e,n])?f:null}}});var s=e.geoProjection(o),l=s.stream;return s.stream=function(t){var r=s.rotate(),n=l(t),a=(s.rotate([0,0]),l(t));return s.rotate(r),n.sphere=function(){e.geoStream(i,a)},n},s.lobes=function(e){return arguments.length?(i=ie(e),r=e.map((function(t){return t.map((function(t){return[[t[0][0]*M,t[0][1]*M],[t[1][0]*M,t[1][1]*M],[t[2][0]*M,t[2][1]*M]]}))})),a=r.map((function(e){return e.map((function(e){var r,n=t(e[0][0],e[0][1])[0],i=t(e[2][0],e[2][1])[0],a=t(e[1][0],e[0][1])[1],o=t(e[1][0],e[1][1])[1];return a&gt;o&amp;&amp;(r=a,a=o,o=r),[[n,a],[i,o]]}))})),s):r.map((function(t){return t.map((function(t){return[[t[0][0]*A,t[0][1]*A],[t[1][0]*A,t[1][1]*A],[t[2][0]*A,t[2][1]*A]]}))}))},null!=r&amp;&amp;s.lobes(r),s}Kt.invert=function(t,e){return e&gt;-.7109889596207567?W.invert(t,e-.0528035274542):Q.invert(t,e)},Qt.invert=function(t,e){return n(e)&gt;.7109889596207567?W.invert(t,e+(e&gt;0?.0528035274542:-.0528035274542)):Q.invert(t,e)};var oe=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];var se=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];var le=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];var ce=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];var ue=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];var fe=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function he(t,e){return[3/k*t*L(y*y/3-e*e),e]}function pe(t){function e(e,r){if(n(n(r)-x)&lt;v)return[0,r&lt;0?-2:2];var i=m(r),a=h((1+i)/(1-i),t/2),s=.5*(a+1/a)+o(e*=t);return[2*m(e)/s,(a-1/a)/s]}return e.invert=function(e,r){var i=n(r);if(n(i-2)&lt;v)return e?null:[0,d(r)*x];if(i&gt;2)return null;var o=(e/=2)*e,s=(r/=2)*r,l=2*r/(1+o+s);return l=h((1+l)/(1-l),1/t),[a(2*e,1-o-s)/t,S((l-1)/(l+1))]},e}he.invert=function(t,e){return[k/3*t/L(y*y/3-e*e),e]};var de=y/w;function me(t,e){return[t*(1+L(o(e)))/2,e/(o(e/2)*o(t/6))]}function ge(t,e){var r=t*t,n=e*e;return[t*(.975534+n*(-.0143059*r-.119161+-.0547009*n)),e*(1.00384+r*(.0802894+-.02855*n+199025e-9*r)+n*(.0998909+-.0491032*n))]}function ve(t,e){return[m(t)/o(e),g(e)*o(t)]}function ye(t){var e=o(t),r=g(b+t/2);function i(i,a){var o=a-t,s=n(o)&lt;v?i*e:n(s=b+a/2)&lt;v||n(n(s)-x)&lt;v?0:i*o/c(g(s)/r);return[s,o]}return i.invert=function(i,a){var o,s=a+t;return[n(a)&lt;v?i/e:n(o=b+s/2)&lt;v||n(n(o)-x)&lt;v?0:i*c(g(o)/r)/a,s]},i}function xe(t,e){return[t,1.25*c(g(b+.4*e))]}function be(t){var e=t.length-1;function r(r,n){for(var i,a=o(n),s=2/(1+a*o(r)),l=s*a*m(r),c=s*m(n),u=e,f=t[u],h=f[0],p=f[1];--u&gt;=0;)h=(f=t[u])[0]+l*(i=h)-c*p,p=f[1]+l*p+c*i;return[h=l*(i=h)-c*p,p=l*p+c*i]}return r.invert=function(r,s){var l=20,c=r,u=s;do{for(var f,h=e,p=t[h],d=p[0],g=p[1],v=0,y=0;--h&gt;=0;)v=d+c*(f=v)-u*y,y=g+c*y+u*f,d=(p=t[h])[0]+c*(f=d)-u*g,g=p[1]+c*g+u*f;var x,b,_=(v=d+c*(f=v)-u*y)*v+(y=g+c*y+u*f)*y;c-=x=((d=c*(f=d)-u*g-r)*v+(g=c*g+u*f-s)*y)/_,u-=b=(g*v-d*y)/_}while(n(x)+n(b)&gt;1e-12&amp;&amp;--l&gt;0);if(l){var w=L(c*c+u*u),T=2*i(.5*w),k=m(T);return[a(c*k,w*o(T)),w?S(u*k/w):0]}},r}me.invert=function(t,e){var r=n(t),i=n(e),a=v,s=x;i&lt;de?s*=i/de:a+=6*E(de/i);for(var l=0;l&lt;25;l++){var c=m(s),u=L(o(s)),f=m(s/2),h=o(s/2),p=m(a/6),d=o(a/6),g=.5*a*(1+u)-r,y=s/(h*d)-i,b=u?-.25*a*c/u:0,_=.5*(1+u),w=(1+.5*s*f/h)/(h*d),T=s/h*(p/6)/(d*d),k=b*T-w*_,A=(g*T-y*_)/k,M=(y*b-g*w)/k;if(s-=A,a-=M,n(A)&lt;v&amp;&amp;n(M)&lt;v)break}return[t&lt;0?-a:a,e&lt;0?-s:s]},ge.invert=function(t,e){var r=d(t)*y,i=e/2,a=50;do{var o=r*r,s=i*i,l=r*i,c=r*(.975534+s*(-.0143059*o-.119161+-.0547009*s))-t,u=i*(1.00384+o*(.0802894+-.02855*s+199025e-9*o)+s*(.0998909+-.0491032*s))-e,f=.975534-s*(.119161+3*o*.0143059+.0547009*s),h=-l*(.238322+.2188036*s+.0286118*o),p=l*(.1605788+7961e-7*o+-.0571*s),m=1.00384+o*(.0802894+199025e-9*o)+s*(3*(.0998909-.02855*o)-.245516*s),g=h*p-m*f,x=(u*h-c*m)/g,b=(c*p-u*f)/g;r-=x,i-=b}while((n(x)&gt;v||n(b)&gt;v)&amp;&amp;--a&gt;0);return a&amp;&amp;[r,i]},ve.invert=function(t,e){var r=t*t,n=e*e+1,i=r+n,a=t?_*L((i-L(i*i-4*r))/r):1/L(n);return[S(t*a),d(e)*E(a)]},xe.invert=function(t,e){return[t,2.5*i(s(.8*e))-.625*y]};var _e=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],we=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],Te=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],ke=[[.9245,0],[0,0],[.01943,0]],Ae=[[.721316,0],[0,0],[-.00881625,-.00617325]];function Me(t,r){var n=e.geoProjection(be(t)).rotate(r).clipAngle(90),i=e.geoRotation(r),a=n.center;return delete n.rotate,n.center=function(t){return arguments.length?a(i(t)):i.invert(a())},n}var Se=L(6),Ee=L(7);function Le(t,e){var r=S(7*m(e)/(3*Se));return[Se*t*(2*o(2*r/3)-1)/Ee,9*m(r/3)/Ee]}function Ce(t,e){for(var r,i=(1+_)*m(e),a=e,s=0;s&lt;25&amp;&amp;(a-=r=(m(a/2)+m(a)-i)/(.5*o(a/2)+o(a)),!(n(r)&lt;v));s++);return[t*(1+2*o(a)/o(a/2))/(3*w),2*L(3)*m(a/2)/L(2+w)]}function Pe(t,e){for(var r,i=L(6/(4+y)),a=(1+y/4)*m(e),s=e/2,l=0;l&lt;25&amp;&amp;(s-=r=(s/2+m(s)-a)/(.5+o(s)),!(n(r)&lt;v));l++);return[i*(.5+o(s))*t/1.5,i*s]}function Ie(t,e){var r=e*e,n=r*r,i=r*n;return[t*(.84719-.13063*r+i*i*(.05494*r-.04515-.02326*n+.00331*i)),e*(1.01183+n*n*(.01926*r-.02625-.00396*n))]}function Oe(t,e){return[t*(1+o(e))/2,2*(e-g(e/2))]}Le.invert=function(t,e){var r=3*S(e*Ee/9);return[t*Ee/(Se*(2*o(2*r/3)-1)),S(3*m(r)*Se/7)]},Ce.invert=function(t,e){var r=e*L(2+w)/(2*L(3)),n=2*S(r);return[3*w*t/(1+2*o(n)/o(n/2)),S((r+m(n))/(1+_))]},Pe.invert=function(t,e){var r=L(6/(4+y)),i=e/r;return n(n(i)-x)&lt;v&amp;&amp;(i=i&lt;0?-x:x),[1.5*t/(r*(.5+o(i))),S((i/2+m(i))/(1+y/4))]},Ie.invert=function(t,e){var r,i,a,o,s=e,l=25;do{s-=r=(s*(1.01183+(a=(i=s*s)*i)*a*(.01926*i-.02625-.00396*a))-e)/(1.01183+a*a*(.21186*i-.23625+-.05148*a))}while(n(r)&gt;1e-12&amp;&amp;--l&gt;0);return[t/(.84719-.13063*(i=s*s)+(o=i*(a=i*i))*o*(.05494*i-.04515-.02326*a+.00331*o)),s]},Oe.invert=function(t,e){for(var r=e/2,i=0,a=1/0;i&lt;10&amp;&amp;n(a)&gt;v;++i){var s=o(e/2);e-=a=(e-g(e/2)-r)/(1-.5/(s*s))}return[2*t/(1+o(e)),e]};var ze=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function De(t,e){var r=m(e),i=o(e),a=d(t);if(0===t||n(e)===x)return[0,e];if(0===e)return[t,0];if(n(t)===x)return[t*i,x*r];var s=y/(2*t)-2*t/y,l=2*e/y,c=(1-l*l)/(r-l),u=s*s,f=c*c,h=1+u/f,p=1+f/u,g=(s*r/c-s/2)/h,v=(f*r/u+c/2)/p,b=v*v-(f*r*r/u+c*r-1)/p;return[x*(g+L(g*g+i*i/h)*a),x*(v+L(b&lt;0?0:b)*d(-e*s)*a)]}De.invert=function(t,e){var r=(t/=x)*t,n=r+(e/=x)*e,i=y*y;return[t?(n-1+L((1-n)*(1-n)+4*r))/(2*t)*x:0,V((function(t){return n*(y*m(t)-2*t)*y+4*t*t*(e-m(t))+2*y*t-i*e}),0)]};function Re(t,e){var r=e*e;return[t,e*(1.0148+r*r*(.23185+r*(.02406*r-.14499)))]}function Fe(t,e){if(n(e)&lt;v)return[t,0];var r=g(e),i=t*m(e);return[m(i)/r,e+(1-o(i))/r]}function Be(t,e){var r=je(t[1],t[0]),n=je(e[1],e[0]),i=function(t,e){return a(t[0]*e[1]-t[1]*e[0],t[0]*e[0]+t[1]*e[1])}(r,n),s=Ue(r)/Ue(n);return Ne([1,0,t[0][0],0,1,t[0][1]],Ne([s,0,0,0,s,0],Ne([o(i),m(i),0,-m(i),o(i),0],[1,0,-e[0][0],0,1,-e[0][1]])))}function Ne(t,e){return[t[0]*e[0]+t[1]*e[3],t[0]*e[1]+t[1]*e[4],t[0]*e[2]+t[1]*e[5]+t[2],t[3]*e[0]+t[4]*e[3],t[3]*e[1]+t[4]*e[4],t[3]*e[2]+t[4]*e[5]+t[5]]}function je(t,e){return[t[0]-e[0],t[1]-e[1]]}function Ue(t){return L(t[0]*t[0]+t[1]*t[1])}function Ve(t,r,i){function a(t,e){var n,i=r(t,e),a=i.project([t*A,e*A]);return(n=i.transform)?[n[0]*a[0]+n[1]*a[1]+n[2],-(n[3]*a[0]+n[4]*a[1]+n[5])]:(a[1]=-a[1],a)}!function t(e,r){if(e.edges=function(t){for(var e=t.length,r=[],n=t[e-1],i=0;i&lt;e;++i)r.push([n,n=t[i]]);return r}(e.face),r.face){var n=e.shared=function(t,e){for(var r,n,i=t.length,a=null,o=0;o&lt;i;++o){r=t[o];for(var s=e.length;--s&gt;=0;)if(n=e[s],r[0]===n[0]&amp;&amp;r[1]===n[1]){if(a)return[a,r];a=r}}}(e.face,r.face),i=Be(n.map(r.project),n.map(e.project));e.transform=r.transform?Ne(r.transform,i):i;for(var a=r.edges,o=0,s=a.length;o&lt;s;++o)He(n[0],a[o][1])&amp;&amp;He(n[1],a[o][0])&amp;&amp;(a[o]=e),He(n[0],a[o][0])&amp;&amp;He(n[1],a[o][1])&amp;&amp;(a[o]=e);for(a=e.edges,o=0,s=a.length;o&lt;s;++o)He(n[0],a[o][0])&amp;&amp;He(n[1],a[o][1])&amp;&amp;(a[o]=r),He(n[0],a[o][1])&amp;&amp;He(n[1],a[o][0])&amp;&amp;(a[o]=r)}else e.transform=r.transform;e.children&amp;&amp;e.children.forEach((function(r){t(r,e)}));return e}(t,{transform:null}),qe(t)&amp;&amp;(a.invert=function(e,n){var i=function t(e,n){var i=e.project.invert,a=e.transform,o=n;a&amp;&amp;(a=function(t){var e=1/(t[0]*t[4]-t[1]*t[3]);return[e*t[4],-e*t[1],e*(t[1]*t[5]-t[2]*t[4]),-e*t[3],e*t[0],e*(t[2]*t[3]-t[0]*t[5])]}(a),o=[a[0]*o[0]+a[1]*o[1]+a[2],a[3]*o[0]+a[4]*o[1]+a[5]]);if(i&amp;&amp;e===function(t){return r(t[0]*M,t[1]*M)}(s=i(o)))return s;for(var s,l=e.children,c=0,u=l&amp;&amp;l.length;c&lt;u;++c)if(s=t(l[c],n))return s}(t,[e,-n]);return i&amp;&amp;(i[0]*=M,i[1]*=M,i)});var o=e.geoProjection(a),s=o.stream;return o.stream=function(r){var i=o.rotate(),a=s(r),l=(o.rotate([0,0]),s(r));return o.rotate(i),a.sphere=function(){l.polygonStart(),l.lineStart(),function t(r,i,a){var o,s,l=i.edges,c=l.length,u={type:&quot;MultiPoint&quot;,coordinates:i.face},f=i.face.filter((function(t){return 90!==n(t[1])})),h=e.geoBounds({type:&quot;MultiPoint&quot;,coordinates:f}),p=!1,d=-1,m=h[1][0]-h[0][0],g=180===m||360===m?[(h[0][0]+h[1][0])/2,(h[0][1]+h[1][1])/2]:e.geoCentroid(u);if(a)for(;++d&lt;c&amp;&amp;l[d]!==a;);++d;for(var y=0;y&lt;c;++y)s=l[(y+d)%c],Array.isArray(s)?(p||(r.point((o=e.geoInterpolate(s[0],g)(v))[0],o[1]),p=!0),r.point((o=e.geoInterpolate(s[1],g)(v))[0],o[1])):(p=!1,s!==a&amp;&amp;t(r,s,i))}(l,t),l.lineEnd(),l.polygonEnd()},a},o.angle(null==i?-30:i*A)}function He(t,e){return t&amp;&amp;e&amp;&amp;t[0]===e[0]&amp;&amp;t[1]===e[1]}function qe(t){return t.project.invert||t.children&amp;&amp;t.children.some(qe)}Re.invert=function(t,e){e&gt;1.790857183?e=1.790857183:e&lt;-1.790857183&amp;&amp;(e=-1.790857183);var r,i=e;do{var a=i*i;i-=r=(i*(1.0148+a*a*(.23185+a*(.02406*a-.14499)))-e)/(1.0148+a*a*(5*.23185+a*(.21654*a-1.01493)))}while(n(r)&gt;v);return[t,i]},Fe.invert=function(t,e){if(n(e)&lt;v)return[t,0];var r,i=t*t+e*e,a=.5*e,s=10;do{var l=g(a),c=1/o(a),u=i-2*e*a+a*a;a-=r=(l*u+2*(a-e))/(2+u*c*c+2*(a-e)*l)}while(n(r)&gt;v&amp;&amp;--s&gt;0);return l=g(a),[(n(e)&lt;n(a+1/l)?S(t*l):d(e)*d(t)*(E(n(t*l))+x))/m(a),a]};var Ge=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]],Ye=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map((function(t){return t.map((function(t){return Ge[t]}))}));var We=2/L(3);function Xe(t,e){var r=lt(t,e);return[r[0]*We,r[1]]}function Ze(t,e){for(var r=0,n=t.length,i=0;r&lt;n;++r)i+=t[r]*e[r];return i}function Je(t){return[a(t[1],t[0])*A,S(u(-1,f(1,t[2])))*A]}function Ke(t){var e=t[0]*M,r=t[1]*M,n=o(r);return[n*o(e),n*m(e),m(r)]}function Qe(){}function $e(t,e){return{type:&quot;FeatureCollection&quot;,features:t.features.map((function(t){return tr(t,e)}))}}function tr(t,e){return{type:&quot;Feature&quot;,id:t.id,properties:t.properties,geometry:er(t.geometry,e)}}function er(t,r){if(!t)return null;if(&quot;GeometryCollection&quot;===t.type)return function(t,e){return{type:&quot;GeometryCollection&quot;,geometries:t.geometries.map((function(t){return er(t,e)}))}}(t,r);var n;switch(t.type){case&quot;Point&quot;:case&quot;MultiPoint&quot;:n=ir;break;case&quot;LineString&quot;:case&quot;MultiLineString&quot;:n=ar;break;case&quot;Polygon&quot;:case&quot;MultiPolygon&quot;:case&quot;Sphere&quot;:n=or;break;default:return null}return e.geoStream(t,r(n)),n.result()}Xe.invert=function(t,e){return lt.invert(t/We,e)};var rr=[],nr=[],ir={point:function(t,e){rr.push([t,e])},result:function(){var t=rr.length?rr.length&lt;2?{type:&quot;Point&quot;,coordinates:rr[0]}:{type:&quot;MultiPoint&quot;,coordinates:rr}:null;return rr=[],t}},ar={lineStart:Qe,point:function(t,e){rr.push([t,e])},lineEnd:function(){rr.length&amp;&amp;(nr.push(rr),rr=[])},result:function(){var t=nr.length?nr.length&lt;2?{type:&quot;LineString&quot;,coordinates:nr[0]}:{type:&quot;MultiLineString&quot;,coordinates:nr}:null;return nr=[],t}},or={polygonStart:Qe,lineStart:Qe,point:function(t,e){rr.push([t,e])},lineEnd:function(){var t=rr.length;if(t){do{rr.push(rr[0].slice())}while(++t&lt;4);nr.push(rr),rr=[]}},polygonEnd:Qe,result:function(){if(!nr.length)return null;var t=[],e=[];return nr.forEach((function(r){!function(t){if((e=t.length)&lt;4)return!1;for(var e,r=0,n=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];++r&lt;e;)n+=t[r-1][1]*t[r][0]-t[r-1][0]*t[r][1];return n&lt;=0}(r)?e.push(r):t.push([r])})),e.forEach((function(e){var r=e[0];t.some((function(t){if(function(t,e){for(var r=e[0],n=e[1],i=!1,a=0,o=t.length,s=o-1;a&lt;o;s=a++){var l=t[a],c=l[0],u=l[1],f=t[s],h=f[0],p=f[1];u&gt;n^p&gt;n&amp;&amp;r&lt;(h-c)*(n-u)/(p-u)+c&amp;&amp;(i=!i)}return i}(t[0],r))return t.push(e),!0}))||t.push([e])})),nr=[],t.length?t.length&gt;1?{type:&quot;MultiPolygon&quot;,coordinates:t}:{type:&quot;Polygon&quot;,coordinates:t[0]}:null}};function sr(t){var r=t(x,0)[0]-t(-x,0)[0];function i(e,i){var a=n(e)&lt;x,o=t(a?e:e&gt;0?e-y:e+y,i),s=(o[0]-o[1])*_,l=(o[0]+o[1])*_;if(a)return[s,l];var c=r*_,u=s&gt;0^l&gt;0?-1:1;return[u*s-d(l)*c,u*l-d(s)*c]}return t.invert&amp;&amp;(i.invert=function(e,i){var a=(e+i)*_,o=(i-e)*_,s=n(a)&lt;.5*r&amp;&amp;n(o)&lt;.5*r;if(!s){var l=r*_,c=a&gt;0^o&gt;0?-1:1,u=-c*e+(o&gt;0?1:-1)*l,f=-c*i+(a&gt;0?1:-1)*l;a=(-u-f)*_,o=(u-f)*_}var h=t.invert(a,o);return s||(h[0]+=a&gt;0?y:-y),h}),e.geoProjection(i).rotate([-90,-90,45]).clipAngle(179.999)}function lr(){return sr(Ut).scale(111.48)}function cr(t){var e=m(t);function r(r,n){var a=e?g(r*e/2)/e:r/2;if(!n)return[2*a,-t];var s=2*i(a*m(n)),l=1/g(n);return[m(s)*l,n+(1-o(s))*l-t]}return r.invert=function(r,a){if(n(a+=t)&lt;v)return[e?2*i(e*r/2)/e:r,0];var s,l=r*r+a*a,c=0,u=10;do{var f=g(c),h=1/o(c),p=l-2*a*c+c*c;c-=s=(f*p+2*(c-a))/(2+p*h*h+2*(c-a)*f)}while(n(s)&gt;v&amp;&amp;--u&gt;0);var d=r*(f=g(c)),x=g(n(a)&lt;n(c+1/f)?.5*S(d):.5*E(d)+y/4)/m(c);return[e?2*i(e*x)/e:2*x,c]},r}var ur=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function fr(t,e){var r,i=f(18,36*n(e)/y),a=l(i),o=i-a,s=(r=ur[a])[0],c=r[1],u=(r=ur[++a])[0],h=r[1],p=(r=ur[f(19,++a)])[0],d=r[1];return[t*(u+o*(p-s)/2+o*o*(p-2*u+s)/2),(e&gt;0?x:-x)*(h+o*(d-c)/2+o*o*(d-2*h+c)/2)]}function hr(t,e){var r=function(t){function e(e,r){var n=o(r),i=(t-1)/(t-n*o(e));return[i*n*m(e),i*m(r)]}return e.invert=function(e,r){var n=e*e+r*r,i=L(n),o=(t-L(1-n*(t+1)/(t-1)))/((t-1)/i+i/(t-1));return[a(e*o,i*L(1-o*o)),i?S(r*o/i):0]},e}(t);if(!e)return r;var n=o(e),i=m(e);function s(e,a){var o=r(e,a),s=o[1],l=s*i/(t-1)+n;return[o[0]*n/l,s/l]}return s.invert=function(e,a){var o=(t-1)/(t-1-a*i);return r.invert(o*e,o*a*n)},s}ur.forEach((function(t){t[1]*=1.0144})),fr.invert=function(t,e){var r=e/x,i=90*r,a=f(18,n(i/5)),o=u(0,l(a));do{var s=ur[o][1],c=ur[o+1][1],h=ur[f(19,o+2)][1],p=h-s,d=h-2*c+s,m=2*(n(r)-c)/p,g=d/p,v=m*(1-g*m*(1-2*g*m));if(v&gt;=0||1===o){i=(e&gt;=0?5:-5)*(v+a);var y,b=50;do{v=(a=f(18,n(i)/5))-(o=l(a)),s=ur[o][1],c=ur[o+1][1],h=ur[f(19,o+2)][1],i-=(y=(e&gt;=0?x:-x)*(c+v*(h-s)/2+v*v*(h-2*c+s)/2)-e)*A}while(n(y)&gt;1e-12&amp;&amp;--b&gt;0);break}}while(--o&gt;=0);var _=ur[o][0],w=ur[o+1][0],T=ur[f(19,o+2)][0];return[t/(w+v*(T-_)/2+v*v*(T-2*w+_)/2),i*M]};var pr=-179.9999,dr=179.9999,mr=-89.9999;function gr(t){return t.length&gt;0}function vr(t){return-90===t||90===t?[0,t]:[-180,(e=t,Math.floor(1e4*e)/1e4)];var e}function yr(t){var e=t[0],r=t[1],n=!1;return e&lt;=pr?(e=-180,n=!0):e&gt;=dr&amp;&amp;(e=180,n=!0),r&lt;=mr?(r=-90,n=!0):r&gt;=89.9999&amp;&amp;(r=90,n=!0),n?[e,r]:t}function xr(t){return t.map(yr)}function br(t,e,r){for(var n=0,i=t.length;n&lt;i;++n){var a=t[n].slice();r.push({index:-1,polygon:e,ring:a});for(var o=0,s=a.length;o&lt;s;++o){var l=a[o],c=l[0],u=l[1];if(c&lt;=pr||c&gt;=dr||u&lt;=mr||u&gt;=89.9999){a[o]=yr(l);for(var f=o+1;f&lt;s;++f){var h=a[f],p=h[0],d=h[1];if(p&gt;pr&amp;&amp;p&lt;dr&amp;&amp;d&gt;mr&amp;&amp;d&lt;89.9999)break}if(f===o+1)continue;if(o){var m={index:-1,polygon:e,ring:a.slice(0,o+1)};m.ring[m.ring.length-1]=vr(u),r[r.length-1]=m}else r.pop();if(f&gt;=s)break;r.push({index:-1,polygon:e,ring:a=a.slice(f-1)}),a[0]=vr(a[0][1]),o=-1,s=a.length}}}}function _r(t){var e,r,n,i,a,o,s=t.length,l={},c={};for(e=0;e&lt;s;++e)n=(r=t[e]).ring[0],a=r.ring[r.ring.length-1],n[0]!==a[0]||n[1]!==a[1]?(r.index=e,l[n]=c[a]=r):(r.polygon.push(r.ring),t[e]=null);for(e=0;e&lt;s;++e)if(r=t[e]){if(n=r.ring[0],a=r.ring[r.ring.length-1],i=c[n],o=l[a],delete l[n],delete c[a],n[0]===a[0]&amp;&amp;n[1]===a[1]){r.polygon.push(r.ring);continue}i?(delete c[n],delete l[i.ring[0]],i.ring.pop(),t[i.index]=null,r={index:-1,polygon:i.polygon,ring:i.ring.concat(r.ring)},i===o?r.polygon.push(r.ring):(r.index=s++,t.push(l[r.ring[0]]=c[r.ring[r.ring.length-1]]=r))):o?(delete l[a],delete c[o.ring[o.ring.length-1]],r.ring.pop(),r={index:s++,polygon:o.polygon,ring:r.ring.concat(o.ring)},t[o.index]=null,t.push(l[r.ring[0]]=c[r.ring[r.ring.length-1]]=r)):(r.ring.push(r.ring[0]),r.polygon.push(r.ring))}}function wr(t){var e={type:&quot;Feature&quot;,geometry:Tr(t.geometry)};return null!=t.id&amp;&amp;(e.id=t.id),null!=t.bbox&amp;&amp;(e.bbox=t.bbox),null!=t.properties&amp;&amp;(e.properties=t.properties),e}function Tr(t){if(null==t)return t;var e,r,n,i;switch(t.type){case&quot;GeometryCollection&quot;:e={type:&quot;GeometryCollection&quot;,geometries:t.geometries.map(Tr)};break;case&quot;Point&quot;:e={type:&quot;Point&quot;,coordinates:yr(t.coordinates)};break;case&quot;MultiPoint&quot;:case&quot;LineString&quot;:e={type:t.type,coordinates:xr(t.coordinates)};break;case&quot;MultiLineString&quot;:e={type:&quot;MultiLineString&quot;,coordinates:t.coordinates.map(xr)};break;case&quot;Polygon&quot;:var a=[];br(t.coordinates,a,r=[]),_r(r),e={type:&quot;Polygon&quot;,coordinates:a};break;case&quot;MultiPolygon&quot;:r=[],n=-1,i=t.coordinates.length;for(var o=new Array(i);++n&lt;i;)br(t.coordinates[n],o[n]=[],r);_r(r),e={type:&quot;MultiPolygon&quot;,coordinates:o.filter(gr)};break;default:return t}return null!=t.bbox&amp;&amp;(e.bbox=t.bbox),e}function kr(t,e){var r=g(e/2),n=m(b*r);return[t*(.74482-.34588*n*n),1.70711*r]}function Ar(t,r,n){var i=e.geoInterpolate(r,n),a=i(.5),o=e.geoRotation([-a[0],-a[1]])(r),s=i.distance/2,l=-S(m(o[1]*M)/m(s)),c=[-a[0],-a[1],-(o[0]&gt;0?y-l:l)*A],u=e.geoProjection(t(s)).rotate(c),f=e.geoRotation(c),h=u.center;return delete u.rotate,u.center=function(t){return arguments.length?h(f(t)):f.invert(h())},u.clipAngle(90)}function Mr(t){var r=o(t);function n(t,n){var i=e.geoGnomonicRaw(t,n);return i[0]*=r,i}return n.invert=function(t,n){return e.geoGnomonicRaw.invert(t/r,n)},n}function Sr(t,e){return Ar(Mr,t,e)}function Er(t){if(!(t*=2))return e.geoAzimuthalEquidistantRaw;var r=-t/2,n=-r,i=t*t,s=g(n),l=.5/m(n);function c(e,a){var s=E(o(a)*o(e-r)),l=E(o(a)*o(e-n));return[((s*=s)-(l*=l))/(2*t),(a&lt;0?-1:1)*L(4*i*l-(i-s+l)*(i-s+l))/(2*t)]}return c.invert=function(t,e){var i,c,u=e*e,f=o(L(u+(i=t+r)*i)),h=o(L(u+(i=t+n)*i));return[a(c=f-h,i=(f+h)*s),(e&lt;0?-1:1)*E(L(i*i+c*c)*l)]},c}function Lr(t,e){return Ar(Er,t,e)}function Cr(t,e){if(n(e)&lt;v)return[t,0];var r=n(e/x),i=S(r);if(n(t)&lt;v||n(n(e)-x)&lt;v)return[0,d(e)*y*g(i/2)];var a=o(i),s=n(y/t-t/y)/2,l=s*s,c=a/(r+a-1),u=c*(2/r-1),f=u*u,h=f+l,p=c-f,m=l+c;return[d(t)*y*(s*p+L(l*p*p-h*(c*c-f)))/h,d(e)*y*(u*m-s*L((l+1)*h-m*m))/h]}function Pr(t,e){if(n(e)&lt;v)return[t,0];var r=n(e/x),i=S(r);if(n(t)&lt;v||n(n(e)-x)&lt;v)return[0,d(e)*y*g(i/2)];var a=o(i),s=n(y/t-t/y)/2,l=s*s,c=a*(L(1+l)-s*a)/(1+l*r*r);return[d(t)*y*c,d(e)*y*L(1-c*(2*s+c))]}function Ir(t,e){if(n(e)&lt;v)return[t,0];var r=e/x,i=S(r);if(n(t)&lt;v||n(n(e)-x)&lt;v)return[0,y*g(i/2)];var a=(y/t-t/y)/2,s=r/(1+o(i));return[y*(d(t)*L(a*a+1-s*s)-a),y*s]}function Or(t,e){if(!e)return[t,0];var r=n(e);if(!t||r===x)return[0,e];var i=r/x,a=i*i,o=(8*i-a*(a+2)-5)/(2*a*(i-1)),s=o*o,l=i*o,c=a+s+2*l,u=i+3*o,f=t/x,h=f+1/f,p=d(n(t)-x)*L(h*h-4),m=p*p,g=(p*(c+s-1)+2*L(c*(a+s*m-1)+(1-a)*(a*(u*u+4*s)+12*l*s+4*s*s)))/(4*c+m);return[d(t)*x*g,d(e)*x*L(1+p*n(g)-g*g)]}function zr(t,e,r,n){var i=y/3;t=u(t,v),e=u(e,v),t=f(t,x),e=f(e,y-v),r=u(r,0),r=f(r,100-v);var s=(n=u(n,v))/100,l=E((r/100+1)*o(i))/i,c=m(t)/m(l*x),h=e/y,p=L(s*m(t/2)/m(e/2));return function(t,e,r,n,i){function s(a,s){var l=r*m(n*s),c=L(1-l*l),u=L(2/(1+c*o(a*=i)));return[t*c*u*m(a),e*l*u]}return s.invert=function(o,s){var l=o/t,c=s/e,u=L(l*l+c*c),f=2*S(u/2);return[a(o*g(f),t*u)/i,u&amp;&amp;S(s*m(f)/(e*r*u))/n]},s}(p/L(h*c*l),1/(p*L(h*c*l)),c,l,h)}function Dr(){var t=65*M,r=60*M,n=20,i=200,a=e.geoProjectionMutator(zr),o=a(t,r,n,i);return o.poleline=function(e){return arguments.length?a(t=+e*M,r,n,i):t*A},o.parallels=function(e){return arguments.length?a(t,r=+e*M,n,i):r*A},o.inflation=function(e){return arguments.length?a(t,r,n=+e,i):n},o.ratio=function(e){return arguments.length?a(t,r,n,i=+e):i},o.scale(163.775)}kr.invert=function(t,e){var r=e/1.70711,n=m(b*r);return[t/(.74482-.34588*n*n),2*i(r)]},Cr.invert=function(t,e){if(n(e)&lt;v)return[t,0];if(n(t)&lt;v)return[0,x*m(2*i(e/y))];var r=(t/=y)*t,a=(e/=y)*e,s=r+a,l=s*s,c=-n(e)*(1+s),u=c-2*a+r,f=-2*c+1+2*a+l,h=a/f+(2*u*u*u/(f*f*f)-9*c*u/(f*f))/27,p=(c-u*u/(3*f))/f,g=2*L(-p/3),b=E(3*h/(p*g))/3;return[y*(s-1+L(1+2*(r-a)+l))/(2*t),d(e)*y*(-g*o(b+y/3)-u/(3*f))]},Pr.invert=function(t,e){if(!t)return[0,x*m(2*i(e/y))];var r=n(t/y),o=(1-r*r-(e/=y)*e)/(2*r),s=L(o*o+1);return[d(t)*y*(s-o),d(e)*x*m(2*a(L((1-2*o*r)*(o+s)-r),L(s+o+r)))]},Ir.invert=function(t,e){if(!e)return[t,0];var r=e/y,n=(y*y*(1-r*r)-t*t)/(2*y*t);return[t?y*(d(t)*L(n*n+1)-n):0,x*m(2*i(r))]},Or.invert=function(t,e){var r;if(!t||!e)return[t,e];e/=y;var i=d(t)*t/x,a=(i*i-1+4*e*e)/n(i),o=a*a,s=2*e,l=50;do{var c=s*s,u=(8*s-c*(c+2)-5)/(2*c*(s-1)),f=(3*s-c*s-10)/(2*c*s),h=u*u,p=s*u,m=s+u,g=m*m,b=s+3*u,_=-2*m*(4*p*h+(1-4*c+3*c*c)*(1+f)+h*(14*c-6-o+(8*c-8-2*o)*f)+p*(12*c-8+(10*c-10-o)*f)),w=L(g*(c+h*o-1)+(1-c)*(c*(b*b+4*h)+h*(12*p+4*h)));s-=r=(a*(g+h-1)+2*w-i*(4*g+o))/(a*(2*u*f+2*m*(1+f))+_/w-8*m*(a*(-1+h+g)+2*w)*(1+f)/(o+4*g))}while(r&gt;v&amp;&amp;--l&gt;0);return[d(t)*(L(a*a+4)+a)*y/4,x*s]};var Rr=4*y+3*L(3),Fr=2*L(2*y*L(3)/Rr),Br=Y(Fr*L(3)/y,Fr,Rr/6);function Nr(t,e){return[t*L(1-3*e*e/(y*y)),e]}function jr(t,e){var r=o(e),n=o(t)*r,i=1-n,s=o(t=a(m(t)*r,-m(e))),l=m(t);return[l*(r=L(1-n*n))-s*i,-s*r-l*i]}function Ur(t,e){var r=O(t,e);return[(r[0]+t/x)/2,(r[1]+e)/2]}Nr.invert=function(t,e){return[t/L(1-3*e*e/(y*y)),e]},jr.invert=function(t,e){var r=(t*t+e*e)/-2,n=L(-r*(2+r)),i=e*r+t*n,o=t*r-e*n,s=L(o*o+i*i);return[a(n*i,s*(1+r)),s?-S(n*o/s):0]},Ur.invert=function(t,e){var r=t,i=e,a=25;do{var s,l=o(i),c=m(i),u=m(2*i),f=c*c,h=l*l,p=m(r),d=o(r/2),g=m(r/2),y=g*g,b=1-h*d*d,_=b?E(l*d)*L(s=1/b):s=0,w=.5*(2*_*l*g+r/x)-t,T=.5*(_*c+i)-e,k=.5*s*(h*y+_*l*d*f)+.5/x,A=s*(p*u/4-_*c*g),M=.125*s*(u*g-_*c*h*p),S=.5*s*(f*d+_*y*l)+.5,C=A*M-S*k,P=(T*A-w*S)/C,I=(w*M-T*k)/C;r-=P,i-=I}while((n(P)&gt;v||n(I)&gt;v)&amp;&amp;--a&gt;0);return[r,i]},t.geoNaturalEarth=e.geoNaturalEarth1,t.geoNaturalEarthRaw=e.geoNaturalEarth1Raw,t.geoAiry=function(){var t=x,r=e.geoProjectionMutator(I),n=r(t);return n.radius=function(e){return arguments.length?r(t=e*M):t*A},n.scale(179.976).clipAngle(147)},t.geoAiryRaw=I,t.geoAitoff=function(){return e.geoProjection(O).scale(152.63)},t.geoAitoffRaw=O,t.geoArmadillo=function(){var t=20*M,r=t&gt;=0?1:-1,n=g(r*t),i=e.geoProjectionMutator(z),s=i(t),l=s.stream;return s.parallel=function(e){return arguments.length?(n=g((r=(t=e*M)&gt;=0?1:-1)*t),i(t)):t*A},s.stream=function(e){var i=s.rotate(),c=l(e),u=(s.rotate([0,0]),l(e)),f=s.precision();return s.rotate(i),c.sphere=function(){u.polygonStart(),u.lineStart();for(var e=-180*r;r*e&lt;180;e+=90*r)u.point(e,90*r);if(t)for(;r*(e-=3*r*f)&gt;=-180;)u.point(e,r*-a(o(e*M/2),n)*A);u.lineEnd(),u.polygonEnd()},c},s.scale(218.695).center([0,28.0974])},t.geoArmadilloRaw=z,t.geoAugust=function(){return e.geoProjection(D).scale(66.1603)},t.geoAugustRaw=D,t.geoBaker=function(){return e.geoProjection(B).scale(112.314)},t.geoBakerRaw=B,t.geoBerghaus=function(){var t=5,r=e.geoProjectionMutator(N),n=r(t),i=n.stream,s=-o(.01*M),l=m(.01*M);return n.lobes=function(e){return arguments.length?r(t=+e):t},n.stream=function(e){var r=n.rotate(),c=i(e),u=(n.rotate([0,0]),i(e));return n.rotate(r),c.sphere=function(){u.polygonStart(),u.lineStart();for(var e=0,r=360/t,n=2*y/t,i=90-180/t,c=x;e&lt;t;++e,i-=r,c-=n)u.point(a(l*o(c),s)*A,S(l*m(c))*A),i&lt;-90?(u.point(-90,-180-i-.01),u.point(-90,-180-i+.01)):(u.point(90,i+.01),u.point(90,i-.01));u.lineEnd(),u.polygonEnd()},c},n.scale(87.8076).center([0,17.1875]).clipAngle(179.999)},t.geoBerghausRaw=N,t.geoBertin1953=function(){return e.geoProjection(q()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])},t.geoBertin1953Raw=q,t.geoBoggs=function(){return e.geoProjection(J).scale(160.857)},t.geoBoggsRaw=J,t.geoBonne=function(){return K($).scale(123.082).center([0,26.1441]).parallel(45)},t.geoBonneRaw=$,t.geoBottomley=function(){var t=.5,r=e.geoProjectionMutator(tt),n=r(t);return n.fraction=function(e){return arguments.length?r(t=+e):t},n.scale(158.837)},t.geoBottomleyRaw=tt,t.geoBromley=function(){return e.geoProjection(et).scale(152.63)},t.geoBromleyRaw=et,t.geoChamberlin=st,t.geoChamberlinRaw=at,t.geoChamberlinAfrica=function(){return st([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])},t.geoCollignon=function(){return e.geoProjection(lt).scale(95.6464).center([0,30])},t.geoCollignonRaw=lt,t.geoCraig=function(){return K(ct).scale(249.828).clipAngle(90)},t.geoCraigRaw=ct,t.geoCraster=function(){return e.geoProjection(ft).scale(156.19)},t.geoCrasterRaw=ft,t.geoCylindricalEqualArea=function(){return K(ht).parallel(38.58).scale(195.044)},t.geoCylindricalEqualAreaRaw=ht,t.geoCylindricalStereographic=function(){return K(pt).scale(124.75)},t.geoCylindricalStereographicRaw=pt,t.geoEckert1=function(){return e.geoProjection(dt).scale(165.664)},t.geoEckert1Raw=dt,t.geoEckert2=function(){return e.geoProjection(mt).scale(165.664)},t.geoEckert2Raw=mt,t.geoEckert3=function(){return e.geoProjection(gt).scale(180.739)},t.geoEckert3Raw=gt,t.geoEckert4=function(){return e.geoProjection(vt).scale(180.739)},t.geoEckert4Raw=vt,t.geoEckert5=function(){return e.geoProjection(yt).scale(173.044)},t.geoEckert5Raw=yt,t.geoEckert6=function(){return e.geoProjection(xt).scale(173.044)},t.geoEckert6Raw=xt,t.geoEisenlohr=function(){return e.geoProjection(_t).scale(62.5271)},t.geoEisenlohrRaw=_t,t.geoFahey=function(){return e.geoProjection(Tt).scale(137.152)},t.geoFaheyRaw=Tt,t.geoFoucaut=function(){return e.geoProjection(kt).scale(135.264)},t.geoFoucautRaw=kt,t.geoFoucautSinusoidal=function(){var t=.5,r=e.geoProjectionMutator(At),n=r(t);return n.alpha=function(e){return arguments.length?r(t=+e):t},n.scale(168.725)},t.geoFoucautSinusoidalRaw=At,t.geoGilbert=function(t){null==t&amp;&amp;(t=e.geoOrthographic);var r=t(),n=e.geoEquirectangular().scale(A).precision(0).clipAngle(null).translate([0,0]);function i(t){return r(Mt(t))}function a(t){i[t]=function(){return arguments.length?(r[t].apply(r,arguments),i):r[t]()}}return r.invert&amp;&amp;(i.invert=function(t){return St(r.invert(t))}),i.stream=function(t){var e=r.stream(t),i=n.stream({point:function(t,r){e.point(t/2,S(g(-r/2*M))*A)},lineStart:function(){e.lineStart()},lineEnd:function(){e.lineEnd()},polygonStart:function(){e.polygonStart()},polygonEnd:function(){e.polygonEnd()}});return i.sphere=e.sphere,i},i.rotate=function(t){return arguments.length?(n.rotate(t),i):n.rotate()},i.center=function(t){return arguments.length?(r.center(Mt(t)),i):St(r.center())},a(&quot;angle&quot;),a(&quot;clipAngle&quot;),a(&quot;clipExtent&quot;),a(&quot;fitExtent&quot;),a(&quot;fitHeight&quot;),a(&quot;fitSize&quot;),a(&quot;fitWidth&quot;),a(&quot;scale&quot;),a(&quot;translate&quot;),a(&quot;precision&quot;),i.scale(249.5)},t.geoGingery=function(){var t=6,r=30*M,n=o(r),i=m(r),s=e.geoProjectionMutator(Et),l=s(r,t),c=l.stream,u=-o(.01*M),f=m(.01*M);return l.radius=function(e){return arguments.length?(n=o(r=e*M),i=m(r),s(r,t)):r*A},l.lobes=function(e){return arguments.length?s(r,t=+e):t},l.stream=function(e){var r=l.rotate(),s=c(e),h=(l.rotate([0,0]),c(e));return l.rotate(r),s.sphere=function(){h.polygonStart(),h.lineStart();for(var e=0,r=2*y/t,s=0;e&lt;t;++e,s-=r)h.point(a(f*o(s),u)*A,S(f*m(s))*A),h.point(a(i*o(s-r/2),n)*A,S(i*m(s-r/2))*A);h.lineEnd(),h.polygonEnd()},s},l.rotate([90,-40]).scale(91.7095).clipAngle(179.999)},t.geoGingeryRaw=Et,t.geoGinzburg4=function(){return e.geoProjection(It).scale(149.995)},t.geoGinzburg4Raw=It,t.geoGinzburg5=function(){return e.geoProjection(Ot).scale(153.93)},t.geoGinzburg5Raw=Ot,t.geoGinzburg6=function(){return e.geoProjection(zt).scale(130.945)},t.geoGinzburg6Raw=zt,t.geoGinzburg8=function(){return e.geoProjection(Dt).scale(131.747)},t.geoGinzburg8Raw=Dt,t.geoGinzburg9=function(){return e.geoProjection(Rt).scale(131.087)},t.geoGinzburg9Raw=Rt,t.geoGringorten=function(){return e.geoProjection(Ft(Bt)).scale(239.75)},t.geoGringortenRaw=Bt,t.geoGuyou=function(){return e.geoProjection(Ft(Ut)).scale(151.496)},t.geoGuyouRaw=Ut,t.geoHammer=function(){var t=2,r=e.geoProjectionMutator(j),n=r(t);return n.coefficient=function(e){return arguments.length?r(t=+e):t},n.scale(169.529)},t.geoHammerRaw=j,t.geoHammerRetroazimuthal=function(){var t=0,r=e.geoProjectionMutator(Vt),n=r(t),i=n.rotate,a=n.stream,o=e.geoCircle();return n.parallel=function(e){if(!arguments.length)return t*A;var i=n.rotate();return r(t=e*M).rotate(i)},n.rotate=function(e){return arguments.length?(i.call(n,[e[0],e[1]-t*A]),o.center([-e[0],-e[1]]),n):((e=i.call(n))[1]+=t*A,e)},n.stream=function(t){return(t=a(t)).sphere=function(){t.polygonStart();var e,r=o.radius(89.99)().coordinates[0],n=r.length-1,i=-1;for(t.lineStart();++i&lt;n;)t.point((e=r[i])[0],e[1]);for(t.lineEnd(),n=(r=o.radius(90.01)().coordinates[0]).length-1,t.lineStart();--i&gt;=0;)t.point((e=r[i])[0],e[1]);t.lineEnd(),t.polygonEnd()},t},n.scale(79.4187).parallel(45).clipAngle(179.999)},t.geoHammerRetroazimuthalRaw=Vt,t.geoHealpix=function(){var t=4,n=e.geoProjectionMutator(Yt),i=n(t),a=i.stream;return i.lobes=function(e){return arguments.length?n(t=+e):t},i.stream=function(n){var o=i.rotate(),s=a(n),l=(i.rotate([0,0]),a(n));return i.rotate(o),s.sphere=function(){var n,i;e.geoStream((n=180/t,i=[].concat(r.range(-180,180+n/2,n).map(Wt),r.range(180,-180-n/2,-n).map(Xt)),{type:&quot;Polygon&quot;,coordinates:[180===n?i.map(Zt):i]}),l)},s},i.scale(239.75)},t.geoHealpixRaw=Yt,t.geoHill=function(){var t=1,r=e.geoProjectionMutator(Jt),n=r(t);return n.ratio=function(e){return arguments.length?r(t=+e):t},n.scale(167.774).center([0,18.67])},t.geoHillRaw=Jt,t.geoHomolosine=function(){return e.geoProjection(Qt).scale(152.63)},t.geoHomolosineRaw=Qt,t.geoHufnagel=function(){var t=1,r=0,n=45*M,i=2,a=e.geoProjectionMutator($t),o=a(t,r,n,i);return o.a=function(e){return arguments.length?a(t=+e,r,n,i):t},o.b=function(e){return arguments.length?a(t,r=+e,n,i):r},o.psiMax=function(e){return arguments.length?a(t,r,n=+e*M,i):n*A},o.ratio=function(e){return arguments.length?a(t,r,n,i=+e):i},o.scale(180.739)},t.geoHufnagelRaw=$t,t.geoHyperelliptical=function(){var t=0,r=2.5,n=1.183136,i=e.geoProjectionMutator(ee),a=i(t,r,n);return a.alpha=function(e){return arguments.length?i(t=+e,r,n):t},a.k=function(e){return arguments.length?i(t,r=+e,n):r},a.gamma=function(e){return arguments.length?i(t,r,n=+e):n},a.scale(152.63)},t.geoHyperellipticalRaw=ee,t.geoInterrupt=ae,t.geoInterruptedBoggs=function(){return ae(J,oe).scale(160.857)},t.geoInterruptedHomolosine=function(){return ae(Qt,se).scale(152.63)},t.geoInterruptedMollweide=function(){return ae(W,le).scale(169.529)},t.geoInterruptedMollweideHemispheres=function(){return ae(W,ce).scale(169.529).rotate([20,0])},t.geoInterruptedSinuMollweide=function(){return ae(Kt,ue,H).rotate([-20,-55]).scale(164.263).center([0,-5.4036])},t.geoInterruptedSinusoidal=function(){return ae(Q,fe).scale(152.63).rotate([-20,0])},t.geoKavrayskiy7=function(){return e.geoProjection(he).scale(158.837)},t.geoKavrayskiy7Raw=he,t.geoLagrange=function(){var t=.5,r=e.geoProjectionMutator(pe),n=r(t);return n.spacing=function(e){return arguments.length?r(t=+e):t},n.scale(124.75)},t.geoLagrangeRaw=pe,t.geoLarrivee=function(){return e.geoProjection(me).scale(97.2672)},t.geoLarriveeRaw=me,t.geoLaskowski=function(){return e.geoProjection(ge).scale(139.98)},t.geoLaskowskiRaw=ge,t.geoLittrow=function(){return e.geoProjection(ve).scale(144.049).clipAngle(89.999)},t.geoLittrowRaw=ve,t.geoLoximuthal=function(){return K(ye).parallel(40).scale(158.837)},t.geoLoximuthalRaw=ye,t.geoMiller=function(){return e.geoProjection(xe).scale(108.318)},t.geoMillerRaw=xe,t.geoModifiedStereographic=Me,t.geoModifiedStereographicRaw=be,t.geoModifiedStereographicAlaska=function(){return Me(_e,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)},t.geoModifiedStereographicGs48=function(){return Me(we,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])},t.geoModifiedStereographicGs50=function(){return Me(Te,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])},t.geoModifiedStereographicMiller=function(){return Me(ke,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)},t.geoModifiedStereographicLee=function(){return Me(Ae,[165,10]).scale(250).clipAngle(130).center([-165,-10])},t.geoMollweide=function(){return e.geoProjection(W).scale(169.529)},t.geoMollweideRaw=W,t.geoMtFlatPolarParabolic=function(){return e.geoProjection(Le).scale(164.859)},t.geoMtFlatPolarParabolicRaw=Le,t.geoMtFlatPolarQuartic=function(){return e.geoProjection(Ce).scale(188.209)},t.geoMtFlatPolarQuarticRaw=Ce,t.geoMtFlatPolarSinusoidal=function(){return e.geoProjection(Pe).scale(166.518)},t.geoMtFlatPolarSinusoidalRaw=Pe,t.geoNaturalEarth2=function(){return e.geoProjection(Ie).scale(175.295)},t.geoNaturalEarth2Raw=Ie,t.geoNellHammer=function(){return e.geoProjection(Oe).scale(152.63)},t.geoNellHammerRaw=Oe,t.geoInterruptedQuarticAuthalic=function(){return ae(j(1/0),ze).rotate([20,0]).scale(152.63)},t.geoNicolosi=function(){return e.geoProjection(De).scale(127.267)},t.geoNicolosiRaw=De,t.geoPatterson=function(){return e.geoProjection(Re).scale(139.319)},t.geoPattersonRaw=Re,t.geoPolyconic=function(){return e.geoProjection(Fe).scale(103.74)},t.geoPolyconicRaw=Fe,t.geoPolyhedral=Ve,t.geoPolyhedralButterfly=function(t){t=t||function(t){var r=e.geoCentroid({type:&quot;MultiPoint&quot;,coordinates:t});return e.geoGnomonic().scale(1).translate([0,0]).rotate([-r[0],-r[1]])};var r=Ye.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,e){var n=r[t];n&amp;&amp;(n.children||(n.children=[])).push(r[e])})),Ve(r[0],(function(t,e){return r[t&lt;-y/2?e&lt;0?6:4:t&lt;0?e&lt;0?2:0:t&lt;y/2?e&lt;0?3:1:e&lt;0?7:5]})).angle(-30).scale(101.858).center([0,45])},t.geoPolyhedralCollignon=function(t){t=t||function(t){var r=e.geoCentroid({type:&quot;MultiPoint&quot;,coordinates:t});return e.geoProjection(Xe).translate([0,0]).scale(1).rotate(r[1]&gt;0?[-r[0],0]:[180-r[0],180])};var r=Ye.map((function(e){return{face:e,project:t(e)}}));return[-1,0,0,1,0,1,4,5].forEach((function(t,e){var n=r[t];n&amp;&amp;(n.children||(n.children=[])).push(r[e])})),Ve(r[0],(function(t,e){return r[t&lt;-y/2?e&lt;0?6:4:t&lt;0?e&lt;0?2:0:t&lt;y/2?e&lt;0?3:1:e&lt;0?7:5]})).angle(-30).scale(121.906).center([0,48.5904])},t.geoPolyhedralWaterman=function(t){t=t||function(t){var r=6===t.length?e.geoCentroid({type:&quot;MultiPoint&quot;,coordinates:t}):t[0];return e.geoGnomonic().scale(1).translate([0,0]).rotate([-r[0],-r[1]])};var r=Ye.map((function(t){for(var e,r=t.map(Ke),n=r.length,i=r[n-1],a=[],o=0;o&lt;n;++o)e=r[o],a.push(Je([.9486832980505138*i[0]+.31622776601683794*e[0],.9486832980505138*i[1]+.31622776601683794*e[1],.9486832980505138*i[2]+.31622776601683794*e[2]]),Je([.9486832980505138*e[0]+.31622776601683794*i[0],.9486832980505138*e[1]+.31622776601683794*i[1],.9486832980505138*e[2]+.31622776601683794*i[2]])),i=e;return a})),n=[],i=[-1,0,0,1,0,1,4,5];r.forEach((function(t,e){for(var a,o,s=Ye[e],l=s.length,c=n[e]=[],u=0;u&lt;l;++u)r.push([s[u],t[(2*u+2)%(2*l)],t[(2*u+1)%(2*l)]]),i.push(e),c.push((a=Ke(t[(2*u+2)%(2*l)]),o=Ke(t[(2*u+1)%(2*l)]),[a[1]*o[2]-a[2]*o[1],a[2]*o[0]-a[0]*o[2],a[0]*o[1]-a[1]*o[0]]))}));var a=r.map((function(e){return{project:t(e),face:e}}));return i.forEach((function(t,e){var r=a[t];r&amp;&amp;(r.children||(r.children=[])).push(a[e])})),Ve(a[0],(function(t,e){var r=o(e),i=[r*o(t),r*m(t),m(e)],s=t&lt;-y/2?e&lt;0?6:4:t&lt;0?e&lt;0?2:0:t&lt;y/2?e&lt;0?3:1:e&lt;0?7:5,l=n[s];return a[Ze(l[0],i)&lt;0?8+3*s:Ze(l[1],i)&lt;0?8+3*s+1:Ze(l[2],i)&lt;0?8+3*s+2:s]})).angle(-30).scale(110.625).center([0,45])},t.geoProject=function(t,e){var r,n=e.stream;if(!n)throw new Error(&quot;invalid projection&quot;);switch(t&amp;&amp;t.type){case&quot;Feature&quot;:r=tr;break;case&quot;FeatureCollection&quot;:r=$e;break;default:r=er}return r(t,n)},t.geoGringortenQuincuncial=function(){return sr(Bt).scale(176.423)},t.geoPeirceQuincuncial=lr,t.geoPierceQuincuncial=lr,t.geoQuantize=function(t,e){if(!(0&lt;=(e=+e)&amp;&amp;e&lt;=20))throw new Error(&quot;invalid digits&quot;);function r(t){var r=t.length,n=2,i=new Array(r);for(i[0]=+t[0].toFixed(e),i[1]=+t[1].toFixed(e);n&lt;r;)i[n]=t[n],++n;return i}function n(t){return t.map(r)}function i(t){for(var e=r(t[0]),n=[e],i=1;i&lt;t.length;i++){var a=r(t[i]);(a.length&gt;2||a[0]!=e[0]||a[1]!=e[1])&amp;&amp;(n.push(a),e=a)}return 1===n.length&amp;&amp;t.length&gt;1&amp;&amp;n.push(r(t[t.length-1])),n}function a(t){return t.map(i)}function o(t){if(null==t)return t;var e;switch(t.type){case&quot;GeometryCollection&quot;:e={type:&quot;GeometryCollection&quot;,geometries:t.geometries.map(o)};break;case&quot;Point&quot;:e={type:&quot;Point&quot;,coordinates:r(t.coordinates)};break;case&quot;MultiPoint&quot;:e={type:t.type,coordinates:n(t.coordinates)};break;case&quot;LineString&quot;:e={type:t.type,coordinates:i(t.coordinates)};break;case&quot;MultiLineString&quot;:case&quot;Polygon&quot;:e={type:t.type,coordinates:a(t.coordinates)};break;case&quot;MultiPolygon&quot;:e={type:&quot;MultiPolygon&quot;,coordinates:t.coordinates.map(a)};break;default:return t}return null!=t.bbox&amp;&amp;(e.bbox=t.bbox),e}function s(t){var e={type:&quot;Feature&quot;,properties:t.properties,geometry:o(t.geometry)};return null!=t.id&amp;&amp;(e.id=t.id),null!=t.bbox&amp;&amp;(e.bbox=t.bbox),e}if(null!=t)switch(t.type){case&quot;Feature&quot;:return s(t);case&quot;FeatureCollection&quot;:var l={type:&quot;FeatureCollection&quot;,features:t.features.map(s)};return null!=t.bbox&amp;&amp;(l.bbox=t.bbox),l;default:return o(t)}return t},t.geoQuincuncial=sr,t.geoRectangularPolyconic=function(){return K(cr).scale(131.215)},t.geoRectangularPolyconicRaw=cr,t.geoRobinson=function(){return e.geoProjection(fr).scale(152.63)},t.geoRobinsonRaw=fr,t.geoSatellite=function(){var t=2,r=0,n=e.geoProjectionMutator(hr),i=n(t,r);return i.distance=function(e){return arguments.length?n(t=+e,r):t},i.tilt=function(e){return arguments.length?n(t,r=e*M):r*A},i.scale(432.147).clipAngle(E(1/t)*A-1e-6)},t.geoSatelliteRaw=hr,t.geoSinuMollweide=function(){return e.geoProjection(Kt).rotate([-20,-55]).scale(164.263).center([0,-5.4036])},t.geoSinuMollweideRaw=Kt,t.geoSinusoidal=function(){return e.geoProjection(Q).scale(152.63)},t.geoSinusoidalRaw=Q,t.geoStitch=function(t){if(null==t)return t;switch(t.type){case&quot;Feature&quot;:return wr(t);case&quot;FeatureCollection&quot;:var e={type:&quot;FeatureCollection&quot;,features:t.features.map(wr)};return null!=t.bbox&amp;&amp;(e.bbox=t.bbox),e;default:return Tr(t)}},t.geoTimes=function(){return e.geoProjection(kr).scale(146.153)},t.geoTimesRaw=kr,t.geoTwoPointAzimuthal=Sr,t.geoTwoPointAzimuthalRaw=Mr,t.geoTwoPointAzimuthalUsa=function(){return Sr([-158,21.5],[-77,39]).clipAngle(60).scale(400)},t.geoTwoPointEquidistant=Lr,t.geoTwoPointEquidistantRaw=Er,t.geoTwoPointEquidistantUsa=function(){return Lr([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)},t.geoVanDerGrinten=function(){return e.geoProjection(Cr).scale(79.4183)},t.geoVanDerGrintenRaw=Cr,t.geoVanDerGrinten2=function(){return e.geoProjection(Pr).scale(79.4183)},t.geoVanDerGrinten2Raw=Pr,t.geoVanDerGrinten3=function(){return e.geoProjection(Ir).scale(79.4183)},t.geoVanDerGrinten3Raw=Ir,t.geoVanDerGrinten4=function(){return e.geoProjection(Or).scale(127.16)},t.geoVanDerGrinten4Raw=Or,t.geoWagner=Dr,t.geoWagner7=function(){return Dr().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)},t.geoWagnerRaw=zr,t.geoWagner4=function(){return e.geoProjection(Br).scale(176.84)},t.geoWagner4Raw=Br,t.geoWagner6=function(){return e.geoProjection(Nr).scale(152.63)},t.geoWagner6Raw=Nr,t.geoWiechel=function(){return e.geoProjection(jr).rotate([0,-90,45]).scale(124.75).clipAngle(179.999)},t.geoWiechelRaw=jr,t.geoWinkel3=function(){return e.geoProjection(Ur).scale(158.837)},t.geoWinkel3Raw=Ur,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:107,&quot;d3-geo&quot;:114}],114:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-array&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(){return new n}function n(){this.reset()}n.prototype={constructor:n,reset:function(){this.s=this.t=0},add:function(t){a(i,t,this.t),a(this,i.s,this.s),this.s?this.t+=i.t:this.s=i.t},valueOf:function(){return this.s}};var i=new n;function a(t,e,r){var n=t.s=e+r,i=n-e,a=n-i;t.t=e-a+(r-i)}var o=1e-6,s=Math.PI,l=s/2,c=s/4,u=2*s,f=180/s,h=s/180,p=Math.abs,d=Math.atan,m=Math.atan2,g=Math.cos,v=Math.ceil,y=Math.exp,x=Math.log,b=Math.pow,_=Math.sin,w=Math.sign||function(t){return t&gt;0?1:t&lt;0?-1:0},T=Math.sqrt,k=Math.tan;function A(t){return t&gt;1?0:t&lt;-1?s:Math.acos(t)}function M(t){return t&gt;1?l:t&lt;-1?-l:Math.asin(t)}function S(t){return(t=_(t/2))*t}function E(){}function L(t,e){t&amp;&amp;P.hasOwnProperty(t.type)&amp;&amp;P[t.type](t,e)}var C={Feature:function(t,e){L(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n&lt;i;)L(r[n].geometry,e)}},P={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)t=r[n],e.point(t[0],t[1],t[2])},LineString:function(t,e){I(t.coordinates,e,0)},MultiLineString:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)I(r[n],e,0)},Polygon:function(t,e){O(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)O(r[n],e)},GeometryCollection:function(t,e){for(var r=t.geometries,n=-1,i=r.length;++n&lt;i;)L(r[n],e)}};function I(t,e,r){var n,i=-1,a=t.length-r;for(e.lineStart();++i&lt;a;)n=t[i],e.point(n[0],n[1],n[2]);e.lineEnd()}function O(t,e){var r=-1,n=t.length;for(e.polygonStart();++r&lt;n;)I(t[r],e,1);e.polygonEnd()}function z(t,e){t&amp;&amp;C.hasOwnProperty(t.type)?C[t.type](t,e):L(t,e)}var D,R,F,B,N,j=r(),U=r(),V={point:E,lineStart:E,lineEnd:E,polygonStart:function(){j.reset(),V.lineStart=H,V.lineEnd=q},polygonEnd:function(){var t=+j;U.add(t&lt;0?u+t:t),this.lineStart=this.lineEnd=this.point=E},sphere:function(){U.add(u)}};function H(){V.point=G}function q(){Y(D,R)}function G(t,e){V.point=Y,D=t,R=e,F=t*=h,B=g(e=(e*=h)/2+c),N=_(e)}function Y(t,e){var r=(t*=h)-F,n=r&gt;=0?1:-1,i=n*r,a=g(e=(e*=h)/2+c),o=_(e),s=N*o,l=B*a+s*g(i),u=s*n*_(i);j.add(m(u,l)),F=t,B=a,N=o}function W(t){return[m(t[1],t[0]),M(t[2])]}function X(t){var e=t[0],r=t[1],n=g(r);return[n*g(e),n*_(e),_(r)]}function Z(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function J(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function K(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Q(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function $(t){var e=T(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var tt,et,rt,nt,it,at,ot,st,lt,ct,ut,ft,ht,pt,dt,mt,gt,vt,yt,xt,bt,_t,wt,Tt,kt,At,Mt=r(),St={point:Et,lineStart:Ct,lineEnd:Pt,polygonStart:function(){St.point=It,St.lineStart=Ot,St.lineEnd=zt,Mt.reset(),V.polygonStart()},polygonEnd:function(){V.polygonEnd(),St.point=Et,St.lineStart=Ct,St.lineEnd=Pt,j&lt;0?(tt=-(rt=180),et=-(nt=90)):Mt&gt;o?nt=90:Mt&lt;-o&amp;&amp;(et=-90),ct[0]=tt,ct[1]=rt},sphere:function(){tt=-(rt=180),et=-(nt=90)}};function Et(t,e){lt.push(ct=[tt=t,rt=t]),e&lt;et&amp;&amp;(et=e),e&gt;nt&amp;&amp;(nt=e)}function Lt(t,e){var r=X([t*h,e*h]);if(st){var n=J(st,r),i=J([n[1],-n[0],0],n);$(i),i=W(i);var a,o=t-it,s=o&gt;0?1:-1,l=i[0]*f*s,c=p(o)&gt;180;c^(s*it&lt;l&amp;&amp;l&lt;s*t)?(a=i[1]*f)&gt;nt&amp;&amp;(nt=a):c^(s*it&lt;(l=(l+360)%360-180)&amp;&amp;l&lt;s*t)?(a=-i[1]*f)&lt;et&amp;&amp;(et=a):(e&lt;et&amp;&amp;(et=e),e&gt;nt&amp;&amp;(nt=e)),c?t&lt;it?Dt(tt,t)&gt;Dt(tt,rt)&amp;&amp;(rt=t):Dt(t,rt)&gt;Dt(tt,rt)&amp;&amp;(tt=t):rt&gt;=tt?(t&lt;tt&amp;&amp;(tt=t),t&gt;rt&amp;&amp;(rt=t)):t&gt;it?Dt(tt,t)&gt;Dt(tt,rt)&amp;&amp;(rt=t):Dt(t,rt)&gt;Dt(tt,rt)&amp;&amp;(tt=t)}else lt.push(ct=[tt=t,rt=t]);e&lt;et&amp;&amp;(et=e),e&gt;nt&amp;&amp;(nt=e),st=r,it=t}function Ct(){St.point=Lt}function Pt(){ct[0]=tt,ct[1]=rt,St.point=Et,st=null}function It(t,e){if(st){var r=t-it;Mt.add(p(r)&gt;180?r+(r&gt;0?360:-360):r)}else at=t,ot=e;V.point(t,e),Lt(t,e)}function Ot(){V.lineStart()}function zt(){It(at,ot),V.lineEnd(),p(Mt)&gt;o&amp;&amp;(tt=-(rt=180)),ct[0]=tt,ct[1]=rt,st=null}function Dt(t,e){return(e-=t)&lt;0?e+360:e}function Rt(t,e){return t[0]-e[0]}function Ft(t,e){return t[0]&lt;=t[1]?t[0]&lt;=e&amp;&amp;e&lt;=t[1]:e&lt;t[0]||t[1]&lt;e}var Bt={sphere:E,point:Nt,lineStart:Ut,lineEnd:qt,polygonStart:function(){Bt.lineStart=Gt,Bt.lineEnd=Yt},polygonEnd:function(){Bt.lineStart=Ut,Bt.lineEnd=qt}};function Nt(t,e){t*=h;var r=g(e*=h);jt(r*g(t),r*_(t),_(e))}function jt(t,e,r){++ut,ht+=(t-ht)/ut,pt+=(e-pt)/ut,dt+=(r-dt)/ut}function Ut(){Bt.point=Vt}function Vt(t,e){t*=h;var r=g(e*=h);Tt=r*g(t),kt=r*_(t),At=_(e),Bt.point=Ht,jt(Tt,kt,At)}function Ht(t,e){t*=h;var r=g(e*=h),n=r*g(t),i=r*_(t),a=_(e),o=m(T((o=kt*a-At*i)*o+(o=At*n-Tt*a)*o+(o=Tt*i-kt*n)*o),Tt*n+kt*i+At*a);ft+=o,mt+=o*(Tt+(Tt=n)),gt+=o*(kt+(kt=i)),vt+=o*(At+(At=a)),jt(Tt,kt,At)}function qt(){Bt.point=Nt}function Gt(){Bt.point=Wt}function Yt(){Xt(_t,wt),Bt.point=Nt}function Wt(t,e){_t=t,wt=e,t*=h,e*=h,Bt.point=Xt;var r=g(e);Tt=r*g(t),kt=r*_(t),At=_(e),jt(Tt,kt,At)}function Xt(t,e){t*=h;var r=g(e*=h),n=r*g(t),i=r*_(t),a=_(e),o=kt*a-At*i,s=At*n-Tt*a,l=Tt*i-kt*n,c=T(o*o+s*s+l*l),u=M(c),f=c&amp;&amp;-u/c;yt+=f*o,xt+=f*s,bt+=f*l,ft+=u,mt+=u*(Tt+(Tt=n)),gt+=u*(kt+(kt=i)),vt+=u*(At+(At=a)),jt(Tt,kt,At)}function Zt(t){return function(){return t}}function Jt(t,e){function r(r,n){return r=t(r,n),e(r[0],r[1])}return t.invert&amp;&amp;e.invert&amp;&amp;(r.invert=function(r,n){return(r=e.invert(r,n))&amp;&amp;t.invert(r[0],r[1])}),r}function Kt(t,e){return[p(t)&gt;s?t+Math.round(-t/u)*u:t,e]}function Qt(t,e,r){return(t%=u)?e||r?Jt(te(t),ee(e,r)):te(t):e||r?ee(e,r):Kt}function $t(t){return function(e,r){return[(e+=t)&gt;s?e-u:e&lt;-s?e+u:e,r]}}function te(t){var e=$t(t);return e.invert=$t(-t),e}function ee(t,e){var r=g(t),n=_(t),i=g(e),a=_(e);function o(t,e){var o=g(e),s=g(t)*o,l=_(t)*o,c=_(e),u=c*r+s*n;return[m(l*i-u*a,s*r-c*n),M(u*i+l*a)]}return o.invert=function(t,e){var o=g(e),s=g(t)*o,l=_(t)*o,c=_(e),u=c*i-l*a;return[m(l*i+c*a,s*r+u*n),M(u*r-s*n)]},o}function re(t){function e(e){return(e=t(e[0]*h,e[1]*h))[0]*=f,e[1]*=f,e}return t=Qt(t[0]*h,t[1]*h,t.length&gt;2?t[2]*h:0),e.invert=function(e){return(e=t.invert(e[0]*h,e[1]*h))[0]*=f,e[1]*=f,e},e}function ne(t,e,r,n,i,a){if(r){var o=g(e),s=_(e),l=n*r;null==i?(i=e+n*u,a=e-l/2):(i=ie(o,i),a=ie(o,a),(n&gt;0?i&lt;a:i&gt;a)&amp;&amp;(i+=n*u));for(var c,f=i;n&gt;0?f&gt;a:f&lt;a;f-=l)c=W([o,-s*g(f),-s*_(f)]),t.point(c[0],c[1])}}function ie(t,e){(e=X(e))[0]-=t,$(e);var r=A(-e[1]);return((-e[2]&lt;0?-r:r)+u-o)%u}function ae(){var t,e=[];return{point:function(e,r,n){t.push([e,r,n])},lineStart:function(){e.push(t=[])},lineEnd:E,rejoin:function(){e.length&gt;1&amp;&amp;e.push(e.pop().concat(e.shift()))},result:function(){var r=e;return e=[],t=null,r}}}function oe(t,e){return p(t[0]-e[0])&lt;o&amp;&amp;p(t[1]-e[1])&lt;o}function se(t,e,r,n){this.x=t,this.z=e,this.o=r,this.e=n,this.v=!1,this.n=this.p=null}function le(t,e,r,n,i){var a,s,l=[],c=[];if(t.forEach((function(t){if(!((e=t.length-1)&lt;=0)){var e,r,n=t[0],s=t[e];if(oe(n,s)){if(!n[2]&amp;&amp;!s[2]){for(i.lineStart(),a=0;a&lt;e;++a)i.point((n=t[a])[0],n[1]);return void i.lineEnd()}s[0]+=2*o}l.push(r=new se(n,t,null,!0)),c.push(r.o=new se(n,null,r,!1)),l.push(r=new se(s,t,null,!1)),c.push(r.o=new se(s,null,r,!0))}})),l.length){for(c.sort(e),ce(l),ce(c),a=0,s=c.length;a&lt;s;++a)c[a].e=r=!r;for(var u,f,h=l[0];;){for(var p=h,d=!0;p.v;)if((p=p.n)===h)return;u=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(a=0,s=u.length;a&lt;s;++a)i.point((f=u[a])[0],f[1]);else n(p.x,p.n.x,1,i);p=p.n}else{if(d)for(u=p.p.z,a=u.length-1;a&gt;=0;--a)i.point((f=u[a])[0],f[1]);else n(p.x,p.p.x,-1,i);p=p.p}u=(p=p.o).z,d=!d}while(!p.v);i.lineEnd()}}}function ce(t){if(e=t.length){for(var e,r,n=0,i=t[0];++n&lt;e;)i.n=r=t[n],r.p=i,i=r;i.n=r=t[0],r.p=i}}Kt.invert=Kt;var ue=r();function fe(t){return p(t[0])&lt;=s?t[0]:w(t[0])*((p(t[0])+s)%u-s)}function he(t,e){var r=fe(e),n=e[1],i=_(n),a=[_(r),-g(r),0],f=0,h=0;ue.reset(),1===i?n=l+o:-1===i&amp;&amp;(n=-l-o);for(var p=0,d=t.length;p&lt;d;++p)if(y=(v=t[p]).length)for(var v,y,x=v[y-1],b=fe(x),w=x[1]/2+c,T=_(w),k=g(w),A=0;A&lt;y;++A,b=E,T=C,k=P,x=S){var S=v[A],E=fe(S),L=S[1]/2+c,C=_(L),P=g(L),I=E-b,O=I&gt;=0?1:-1,z=O*I,D=z&gt;s,R=T*C;if(ue.add(m(R*O*_(z),k*P+R*g(z))),f+=D?I+O*u:I,D^b&gt;=r^E&gt;=r){var F=J(X(x),X(S));$(F);var B=J(a,F);$(B);var N=(D^I&gt;=0?-1:1)*M(B[2]);(n&gt;N||n===N&amp;&amp;(F[0]||F[1]))&amp;&amp;(h+=D^I&gt;=0?1:-1)}}return(f&lt;-o||f&lt;o&amp;&amp;ue&lt;-o)^1&amp;h}function pe(t,r,n,i){return function(a){var o,s,l,c=r(a),u=ae(),f=r(u),h=!1,p={point:d,lineStart:g,lineEnd:v,polygonStart:function(){p.point=y,p.lineStart=x,p.lineEnd=b,s=[],o=[]},polygonEnd:function(){p.point=d,p.lineStart=g,p.lineEnd=v,s=e.merge(s);var t=he(o,i);s.length?(h||(a.polygonStart(),h=!0),le(s,me,t,n,a)):t&amp;&amp;(h||(a.polygonStart(),h=!0),a.lineStart(),n(null,null,1,a),a.lineEnd()),h&amp;&amp;(a.polygonEnd(),h=!1),s=o=null},sphere:function(){a.polygonStart(),a.lineStart(),n(null,null,1,a),a.lineEnd(),a.polygonEnd()}};function d(e,r){t(e,r)&amp;&amp;a.point(e,r)}function m(t,e){c.point(t,e)}function g(){p.point=m,c.lineStart()}function v(){p.point=d,c.lineEnd()}function y(t,e){l.push([t,e]),f.point(t,e)}function x(){f.lineStart(),l=[]}function b(){y(l[0][0],l[0][1]),f.lineEnd();var t,e,r,n,i=f.clean(),c=u.result(),p=c.length;if(l.pop(),o.push(l),l=null,p)if(1&amp;i){if((e=(r=c[0]).length-1)&gt;0){for(h||(a.polygonStart(),h=!0),a.lineStart(),t=0;t&lt;e;++t)a.point((n=r[t])[0],n[1]);a.lineEnd()}}else p&gt;1&amp;&amp;2&amp;i&amp;&amp;c.push(c.pop().concat(c.shift())),s.push(c.filter(de))}return p}}function de(t){return t.length&gt;1}function me(t,e){return((t=t.x)[0]&lt;0?t[1]-l-o:l-t[1])-((e=e.x)[0]&lt;0?e[1]-l-o:l-e[1])}var ge=pe((function(){return!0}),(function(t){var e,r=NaN,n=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,c){var u=a&gt;0?s:-s,f=p(a-r);p(f-s)&lt;o?(t.point(r,n=(n+c)/2&gt;0?l:-l),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(u,n),t.point(a,n),e=0):i!==u&amp;&amp;f&gt;=s&amp;&amp;(p(r-i)&lt;o&amp;&amp;(r-=i*o),p(a-u)&lt;o&amp;&amp;(a-=u*o),n=function(t,e,r,n){var i,a,s=_(t-r);return p(s)&gt;o?d((_(e)*(a=g(n))*_(r)-_(n)*(i=g(e))*_(t))/(i*a*s)):(e+n)/2}(r,n,a,c),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(u,n),e=0),t.point(r=a,n=c),i=u},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}}),(function(t,e,r,n){var i;if(null==t)i=r*l,n.point(-s,i),n.point(0,i),n.point(s,i),n.point(s,0),n.point(s,-i),n.point(0,-i),n.point(-s,-i),n.point(-s,0),n.point(-s,i);else if(p(t[0]-e[0])&gt;o){var a=t[0]&lt;e[0]?s:-s;i=r*a/2,n.point(-a,i),n.point(0,i),n.point(a,i)}else n.point(e[0],e[1])}),[-s,-l]);function ve(t){var e=g(t),r=6*h,n=e&gt;0,i=p(e)&gt;o;function a(t,r){return g(t)*g(r)&gt;e}function l(t,r,n){var i=[1,0,0],a=J(X(t),X(r)),l=Z(a,a),c=a[0],u=l-c*c;if(!u)return!n&amp;&amp;t;var f=e*l/u,h=-e*c/u,d=J(i,a),m=Q(i,f);K(m,Q(a,h));var g=d,v=Z(m,g),y=Z(g,g),x=v*v-y*(Z(m,m)-1);if(!(x&lt;0)){var b=T(x),_=Q(g,(-v-b)/y);if(K(_,m),_=W(_),!n)return _;var w,k=t[0],A=r[0],M=t[1],S=r[1];A&lt;k&amp;&amp;(w=k,k=A,A=w);var E=A-k,L=p(E-s)&lt;o;if(!L&amp;&amp;S&lt;M&amp;&amp;(w=M,M=S,S=w),L||E&lt;o?L?M+S&gt;0^_[1]&lt;(p(_[0]-k)&lt;o?M:S):M&lt;=_[1]&amp;&amp;_[1]&lt;=S:E&gt;s^(k&lt;=_[0]&amp;&amp;_[0]&lt;=A)){var C=Q(g,(-v+b)/y);return K(C,m),[_,W(C)]}}}function c(e,r){var i=n?t:s-t,a=0;return e&lt;-i?a|=1:e&gt;i&amp;&amp;(a|=2),r&lt;-i?a|=4:r&gt;i&amp;&amp;(a|=8),a}return pe(a,(function(t){var e,r,o,u,f;return{lineStart:function(){u=o=!1,f=1},point:function(h,p){var d,m=[h,p],g=a(h,p),v=n?g?0:c(h,p):g?c(h+(h&lt;0?s:-s),p):0;if(!e&amp;&amp;(u=o=g)&amp;&amp;t.lineStart(),g!==o&amp;&amp;(!(d=l(e,m))||oe(e,d)||oe(m,d))&amp;&amp;(m[2]=1),g!==o)f=0,g?(t.lineStart(),d=l(m,e),t.point(d[0],d[1])):(d=l(e,m),t.point(d[0],d[1],2),t.lineEnd()),e=d;else if(i&amp;&amp;e&amp;&amp;n^g){var y;v&amp;r||!(y=l(m,e,!0))||(f=0,n?(t.lineStart(),t.point(y[0][0],y[0][1]),t.point(y[1][0],y[1][1]),t.lineEnd()):(t.point(y[1][0],y[1][1]),t.lineEnd(),t.lineStart(),t.point(y[0][0],y[0][1],3)))}!g||e&amp;&amp;oe(e,m)||t.point(m[0],m[1]),e=m,o=g,r=v},lineEnd:function(){o&amp;&amp;t.lineEnd(),e=null},clean:function(){return f|(u&amp;&amp;o)&lt;&lt;1}}}),(function(e,n,i,a){ne(a,t,r,i,e,n)}),n?[0,-t]:[-s,t-s])}function ye(t,r,n,i){function a(e,a){return t&lt;=e&amp;&amp;e&lt;=n&amp;&amp;r&lt;=a&amp;&amp;a&lt;=i}function s(e,a,o,s){var c=0,f=0;if(null==e||(c=l(e,o))!==(f=l(a,o))||u(e,a)&lt;0^o&gt;0)do{s.point(0===c||3===c?t:n,c&gt;1?i:r)}while((c=(c+o+4)%4)!==f);else s.point(a[0],a[1])}function l(e,i){return p(e[0]-t)&lt;o?i&gt;0?0:3:p(e[0]-n)&lt;o?i&gt;0?2:1:p(e[1]-r)&lt;o?i&gt;0?1:0:i&gt;0?3:2}function c(t,e){return u(t.x,e.x)}function u(t,e){var r=l(t,1),n=l(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}return function(o){var l,u,f,h,p,d,m,g,v,y,x,b=o,_=ae(),w={point:T,lineStart:function(){w.point=k,u&amp;&amp;u.push(f=[]);y=!0,v=!1,m=g=NaN},lineEnd:function(){l&amp;&amp;(k(h,p),d&amp;&amp;v&amp;&amp;_.rejoin(),l.push(_.result()));w.point=T,v&amp;&amp;b.lineEnd()},polygonStart:function(){b=_,l=[],u=[],x=!0},polygonEnd:function(){var r=function(){for(var e=0,r=0,n=u.length;r&lt;n;++r)for(var a,o,s=u[r],l=1,c=s.length,f=s[0],h=f[0],p=f[1];l&lt;c;++l)a=h,o=p,f=s[l],h=f[0],p=f[1],o&lt;=i?p&gt;i&amp;&amp;(h-a)*(i-o)&gt;(p-o)*(t-a)&amp;&amp;++e:p&lt;=i&amp;&amp;(h-a)*(i-o)&lt;(p-o)*(t-a)&amp;&amp;--e;return e}(),n=x&amp;&amp;r,a=(l=e.merge(l)).length;(n||a)&amp;&amp;(o.polygonStart(),n&amp;&amp;(o.lineStart(),s(null,null,1,o),o.lineEnd()),a&amp;&amp;le(l,c,r,s,o),o.polygonEnd());b=o,l=u=f=null}};function T(t,e){a(t,e)&amp;&amp;b.point(t,e)}function k(e,o){var s=a(e,o);if(u&amp;&amp;f.push([e,o]),y)h=e,p=o,d=s,y=!1,s&amp;&amp;(b.lineStart(),b.point(e,o));else if(s&amp;&amp;v)b.point(e,o);else{var l=[m=Math.max(-1e9,Math.min(1e9,m)),g=Math.max(-1e9,Math.min(1e9,g))],c=[e=Math.max(-1e9,Math.min(1e9,e)),o=Math.max(-1e9,Math.min(1e9,o))];!function(t,e,r,n,i,a){var o,s=t[0],l=t[1],c=0,u=1,f=e[0]-s,h=e[1]-l;if(o=r-s,f||!(o&gt;0)){if(o/=f,f&lt;0){if(o&lt;c)return;o&lt;u&amp;&amp;(u=o)}else if(f&gt;0){if(o&gt;u)return;o&gt;c&amp;&amp;(c=o)}if(o=i-s,f||!(o&lt;0)){if(o/=f,f&lt;0){if(o&gt;u)return;o&gt;c&amp;&amp;(c=o)}else if(f&gt;0){if(o&lt;c)return;o&lt;u&amp;&amp;(u=o)}if(o=n-l,h||!(o&gt;0)){if(o/=h,h&lt;0){if(o&lt;c)return;o&lt;u&amp;&amp;(u=o)}else if(h&gt;0){if(o&gt;u)return;o&gt;c&amp;&amp;(c=o)}if(o=a-l,h||!(o&lt;0)){if(o/=h,h&lt;0){if(o&gt;u)return;o&gt;c&amp;&amp;(c=o)}else if(h&gt;0){if(o&lt;c)return;o&lt;u&amp;&amp;(u=o)}return c&gt;0&amp;&amp;(t[0]=s+c*f,t[1]=l+c*h),u&lt;1&amp;&amp;(e[0]=s+u*f,e[1]=l+u*h),!0}}}}}(l,c,t,r,n,i)?s&amp;&amp;(b.lineStart(),b.point(e,o),x=!1):(v||(b.lineStart(),b.point(l[0],l[1])),b.point(c[0],c[1]),s||b.lineEnd(),x=!1)}m=e,g=o,v=s}return w}}var xe,be,_e,we=r(),Te={sphere:E,point:E,lineStart:function(){Te.point=Ae,Te.lineEnd=ke},lineEnd:E,polygonStart:E,polygonEnd:E};function ke(){Te.point=Te.lineEnd=E}function Ae(t,e){xe=t*=h,be=_(e*=h),_e=g(e),Te.point=Me}function Me(t,e){t*=h;var r=_(e*=h),n=g(e),i=p(t-xe),a=g(i),o=n*_(i),s=_e*r-be*n*a,l=be*r+_e*n*a;we.add(m(T(o*o+s*s),l)),xe=t,be=r,_e=n}function Se(t){return we.reset(),z(t,Te),+we}var Ee=[null,null],Le={type:&quot;LineString&quot;,coordinates:Ee};function Ce(t,e){return Ee[0]=t,Ee[1]=e,Se(Le)}var Pe={Feature:function(t,e){return Oe(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n&lt;i;)if(Oe(r[n].geometry,e))return!0;return!1}},Ie={Sphere:function(){return!0},Point:function(t,e){return ze(t.coordinates,e)},MultiPoint:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)if(ze(r[n],e))return!0;return!1},LineString:function(t,e){return De(t.coordinates,e)},MultiLineString:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)if(De(r[n],e))return!0;return!1},Polygon:function(t,e){return Re(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)if(Re(r[n],e))return!0;return!1},GeometryCollection:function(t,e){for(var r=t.geometries,n=-1,i=r.length;++n&lt;i;)if(Oe(r[n],e))return!0;return!1}};function Oe(t,e){return!(!t||!Ie.hasOwnProperty(t.type))&amp;&amp;Ie[t.type](t,e)}function ze(t,e){return 0===Ce(t,e)}function De(t,e){for(var r,n,i,a=0,o=t.length;a&lt;o;a++){if(0===(n=Ce(t[a],e)))return!0;if(a&gt;0&amp;&amp;(i=Ce(t[a],t[a-1]))&gt;0&amp;&amp;r&lt;=i&amp;&amp;n&lt;=i&amp;&amp;(r+n-i)*(1-Math.pow((r-n)/i,2))&lt;1e-12*i)return!0;r=n}return!1}function Re(t,e){return!!he(t.map(Fe),Be(e))}function Fe(t){return(t=t.map(Be)).pop(),t}function Be(t){return[t[0]*h,t[1]*h]}function Ne(t,r,n){var i=e.range(t,r-o,n).concat(r);return function(t){return i.map((function(e){return[t,e]}))}}function je(t,r,n){var i=e.range(t,r-o,n).concat(r);return function(t){return i.map((function(e){return[e,t]}))}}function Ue(){var t,r,n,i,a,s,l,c,u,f,h,d,m=10,g=m,y=90,x=360,b=2.5;function _(){return{type:&quot;MultiLineString&quot;,coordinates:w()}}function w(){return e.range(v(i/y)*y,n,y).map(h).concat(e.range(v(c/x)*x,l,x).map(d)).concat(e.range(v(r/m)*m,t,m).filter((function(t){return p(t%y)&gt;o})).map(u)).concat(e.range(v(s/g)*g,a,g).filter((function(t){return p(t%x)&gt;o})).map(f))}return _.lines=function(){return w().map((function(t){return{type:&quot;LineString&quot;,coordinates:t}}))},_.outline=function(){return{type:&quot;Polygon&quot;,coordinates:[h(i).concat(d(l).slice(1),h(n).reverse().slice(1),d(c).reverse().slice(1))]}},_.extent=function(t){return arguments.length?_.extentMajor(t).extentMinor(t):_.extentMinor()},_.extentMajor=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],c=+t[0][1],l=+t[1][1],i&gt;n&amp;&amp;(t=i,i=n,n=t),c&gt;l&amp;&amp;(t=c,c=l,l=t),_.precision(b)):[[i,c],[n,l]]},_.extentMinor=function(e){return arguments.length?(r=+e[0][0],t=+e[1][0],s=+e[0][1],a=+e[1][1],r&gt;t&amp;&amp;(e=r,r=t,t=e),s&gt;a&amp;&amp;(e=s,s=a,a=e),_.precision(b)):[[r,s],[t,a]]},_.step=function(t){return arguments.length?_.stepMajor(t).stepMinor(t):_.stepMinor()},_.stepMajor=function(t){return arguments.length?(y=+t[0],x=+t[1],_):[y,x]},_.stepMinor=function(t){return arguments.length?(m=+t[0],g=+t[1],_):[m,g]},_.precision=function(e){return arguments.length?(b=+e,u=Ne(s,a,90),f=je(r,t,b),h=Ne(c,l,90),d=je(i,n,b),_):b},_.extentMajor([[-180,-90+o],[180,90-o]]).extentMinor([[-180,-80-o],[180,80+o]])}function Ve(t){return t}var He,qe,Ge,Ye,We=r(),Xe=r(),Ze={point:E,lineStart:E,lineEnd:E,polygonStart:function(){Ze.lineStart=Je,Ze.lineEnd=$e},polygonEnd:function(){Ze.lineStart=Ze.lineEnd=Ze.point=E,We.add(p(Xe)),Xe.reset()},result:function(){var t=We/2;return We.reset(),t}};function Je(){Ze.point=Ke}function Ke(t,e){Ze.point=Qe,He=Ge=t,qe=Ye=e}function Qe(t,e){Xe.add(Ye*t-Ge*e),Ge=t,Ye=e}function $e(){Qe(He,qe)}var tr=1/0,er=tr,rr=-tr,nr=rr,ir={point:function(t,e){t&lt;tr&amp;&amp;(tr=t);t&gt;rr&amp;&amp;(rr=t);e&lt;er&amp;&amp;(er=e);e&gt;nr&amp;&amp;(nr=e)},lineStart:E,lineEnd:E,polygonStart:E,polygonEnd:E,result:function(){var t=[[tr,er],[rr,nr]];return rr=nr=-(er=tr=1/0),t}};var ar,or,sr,lr,cr=0,ur=0,fr=0,hr=0,pr=0,dr=0,mr=0,gr=0,vr=0,yr={point:xr,lineStart:br,lineEnd:Tr,polygonStart:function(){yr.lineStart=kr,yr.lineEnd=Ar},polygonEnd:function(){yr.point=xr,yr.lineStart=br,yr.lineEnd=Tr},result:function(){var t=vr?[mr/vr,gr/vr]:dr?[hr/dr,pr/dr]:fr?[cr/fr,ur/fr]:[NaN,NaN];return cr=ur=fr=hr=pr=dr=mr=gr=vr=0,t}};function xr(t,e){cr+=t,ur+=e,++fr}function br(){yr.point=_r}function _r(t,e){yr.point=wr,xr(sr=t,lr=e)}function wr(t,e){var r=t-sr,n=e-lr,i=T(r*r+n*n);hr+=i*(sr+t)/2,pr+=i*(lr+e)/2,dr+=i,xr(sr=t,lr=e)}function Tr(){yr.point=xr}function kr(){yr.point=Mr}function Ar(){Sr(ar,or)}function Mr(t,e){yr.point=Sr,xr(ar=sr=t,or=lr=e)}function Sr(t,e){var r=t-sr,n=e-lr,i=T(r*r+n*n);hr+=i*(sr+t)/2,pr+=i*(lr+e)/2,dr+=i,mr+=(i=lr*t-sr*e)*(sr+t),gr+=i*(lr+e),vr+=3*i,xr(sr=t,lr=e)}function Er(t){this._context=t}Er.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&amp;&amp;this._context.closePath(),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._context.moveTo(t,e),this._point=1;break;case 1:this._context.lineTo(t,e);break;default:this._context.moveTo(t+this._radius,e),this._context.arc(t,e,this._radius,0,u)}},result:E};var Lr,Cr,Pr,Ir,Or,zr=r(),Dr={point:E,lineStart:function(){Dr.point=Rr},lineEnd:function(){Lr&amp;&amp;Fr(Cr,Pr),Dr.point=E},polygonStart:function(){Lr=!0},polygonEnd:function(){Lr=null},result:function(){var t=+zr;return zr.reset(),t}};function Rr(t,e){Dr.point=Fr,Cr=Ir=t,Pr=Or=e}function Fr(t,e){Ir-=t,Or-=e,zr.add(T(Ir*Ir+Or*Or)),Ir=t,Or=e}function Br(){this._string=[]}function Nr(t){return&quot;m0,&quot;+t+&quot;a&quot;+t+&quot;,&quot;+t+&quot; 0 1,1 0,&quot;+-2*t+&quot;a&quot;+t+&quot;,&quot;+t+&quot; 0 1,1 0,&quot;+2*t+&quot;z&quot;}function jr(t){return function(e){var r=new Ur;for(var n in t)r[n]=t[n];return r.stream=e,r}}function Ur(){}function Vr(t,e,r){var n=t.clipExtent&amp;&amp;t.clipExtent();return t.scale(150).translate([0,0]),null!=n&amp;&amp;t.clipExtent(null),z(r,t.stream(ir)),e(ir.result()),null!=n&amp;&amp;t.clipExtent(n),t}function Hr(t,e,r){return Vr(t,(function(r){var n=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=Math.min(n/(r[1][0]-r[0][0]),i/(r[1][1]-r[0][1])),o=+e[0][0]+(n-a*(r[1][0]+r[0][0]))/2,s=+e[0][1]+(i-a*(r[1][1]+r[0][1]))/2;t.scale(150*a).translate([o,s])}),r)}function qr(t,e,r){return Hr(t,[[0,0],e],r)}function Gr(t,e,r){return Vr(t,(function(r){var n=+e,i=n/(r[1][0]-r[0][0]),a=(n-i*(r[1][0]+r[0][0]))/2,o=-i*r[0][1];t.scale(150*i).translate([a,o])}),r)}function Yr(t,e,r){return Vr(t,(function(r){var n=+e,i=n/(r[1][1]-r[0][1]),a=-i*r[0][0],o=(n-i*(r[1][1]+r[0][1]))/2;t.scale(150*i).translate([a,o])}),r)}Br.prototype={_radius:4.5,_circle:Nr(4.5),pointRadius:function(t){return(t=+t)!==this._radius&amp;&amp;(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&amp;&amp;this._string.push(&quot;Z&quot;),this._point=NaN},point:function(t,e){switch(this._point){case 0:this._string.push(&quot;M&quot;,t,&quot;,&quot;,e),this._point=1;break;case 1:this._string.push(&quot;L&quot;,t,&quot;,&quot;,e);break;default:null==this._circle&amp;&amp;(this._circle=Nr(this._radius)),this._string.push(&quot;M&quot;,t,&quot;,&quot;,e,this._circle)}},result:function(){if(this._string.length){var t=this._string.join(&quot;&quot;);return this._string=[],t}return null}},Ur.prototype={constructor:Ur,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Wr=g(30*h);function Xr(t,e){return+e?function(t,e){function r(n,i,a,s,l,c,u,f,h,d,g,v,y,x){var b=u-n,_=f-i,w=b*b+_*_;if(w&gt;4*e&amp;&amp;y--){var k=s+d,A=l+g,S=c+v,E=T(k*k+A*A+S*S),L=M(S/=E),C=p(p(S)-1)&lt;o||p(a-h)&lt;o?(a+h)/2:m(A,k),P=t(C,L),I=P[0],O=P[1],z=I-n,D=O-i,R=_*z-b*D;(R*R/w&gt;e||p((b*z+_*D)/w-.5)&gt;.3||s*d+l*g+c*v&lt;Wr)&amp;&amp;(r(n,i,a,s,l,c,I,O,C,k/=E,A/=E,S,y,x),x.point(I,O),r(I,O,C,k,A,S,u,f,h,d,g,v,y,x))}}return function(e){var n,i,a,o,s,l,c,u,f,h,p,d,m={point:g,lineStart:v,lineEnd:x,polygonStart:function(){e.polygonStart(),m.lineStart=b},polygonEnd:function(){e.polygonEnd(),m.lineStart=v}};function g(r,n){r=t(r,n),e.point(r[0],r[1])}function v(){u=NaN,m.point=y,e.lineStart()}function y(n,i){var a=X([n,i]),o=t(n,i);r(u,f,c,h,p,d,u=o[0],f=o[1],c=n,h=a[0],p=a[1],d=a[2],16,e),e.point(u,f)}function x(){m.point=g,e.lineEnd()}function b(){v(),m.point=_,m.lineEnd=w}function _(t,e){y(n=t,e),i=u,a=f,o=h,s=p,l=d,m.point=y}function w(){r(u,f,c,h,p,d,i,a,n,o,s,l,16,e),m.lineEnd=x,x()}return m}}(t,e):function(t){return jr({point:function(e,r){e=t(e,r),this.stream.point(e[0],e[1])}})}(t)}var Zr=jr({point:function(t,e){this.stream.point(t*h,e*h)}});function Jr(t,e,r,n,i){function a(a,o){return[e+t*(a*=n),r-t*(o*=i)]}return a.invert=function(a,o){return[(a-e)/t*n,(r-o)/t*i]},a}function Kr(t,e,r,n,i,a){var o=g(a),s=_(a),l=o*t,c=s*t,u=o/t,f=s/t,h=(s*r-o*e)/t,p=(s*e+o*r)/t;function d(t,a){return[l*(t*=n)-c*(a*=i)+e,r-c*t-l*a]}return d.invert=function(t,e){return[n*(u*t-f*e+h),i*(p-f*t-u*e)]},d}function Qr(t){return $r((function(){return t}))()}function $r(t){var e,r,n,i,a,o,s,l,c,u,p=150,d=480,m=250,g=0,v=0,y=0,x=0,b=0,_=0,w=1,k=1,A=null,M=ge,S=null,E=Ve,L=.5;function C(t){return l(t[0]*h,t[1]*h)}function P(t){return(t=l.invert(t[0],t[1]))&amp;&amp;[t[0]*f,t[1]*f]}function I(){var t=Kr(p,0,0,w,k,_).apply(null,e(g,v)),n=(_?Kr:Jr)(p,d-t[0],m-t[1],w,k,_);return r=Qt(y,x,b),s=Jt(e,n),l=Jt(r,s),o=Xr(s,L),O()}function O(){return c=u=null,C}return C.stream=function(t){return c&amp;&amp;u===t?c:c=Zr(function(t){return jr({point:function(e,r){var n=t(e,r);return this.stream.point(n[0],n[1])}})}(r)(M(o(E(u=t)))))},C.preclip=function(t){return arguments.length?(M=t,A=void 0,O()):M},C.postclip=function(t){return arguments.length?(E=t,S=n=i=a=null,O()):E},C.clipAngle=function(t){return arguments.length?(M=+t?ve(A=t*h):(A=null,ge),O()):A*f},C.clipExtent=function(t){return arguments.length?(E=null==t?(S=n=i=a=null,Ve):ye(S=+t[0][0],n=+t[0][1],i=+t[1][0],a=+t[1][1]),O()):null==S?null:[[S,n],[i,a]]},C.scale=function(t){return arguments.length?(p=+t,I()):p},C.translate=function(t){return arguments.length?(d=+t[0],m=+t[1],I()):[d,m]},C.center=function(t){return arguments.length?(g=t[0]%360*h,v=t[1]%360*h,I()):[g*f,v*f]},C.rotate=function(t){return arguments.length?(y=t[0]%360*h,x=t[1]%360*h,b=t.length&gt;2?t[2]%360*h:0,I()):[y*f,x*f,b*f]},C.angle=function(t){return arguments.length?(_=t%360*h,I()):_*f},C.reflectX=function(t){return arguments.length?(w=t?-1:1,I()):w&lt;0},C.reflectY=function(t){return arguments.length?(k=t?-1:1,I()):k&lt;0},C.precision=function(t){return arguments.length?(o=Xr(s,L=t*t),O()):T(L)},C.fitExtent=function(t,e){return Hr(C,t,e)},C.fitSize=function(t,e){return qr(C,t,e)},C.fitWidth=function(t,e){return Gr(C,t,e)},C.fitHeight=function(t,e){return Yr(C,t,e)},function(){return e=t.apply(this,arguments),C.invert=e.invert&amp;&amp;P,I()}}function tn(t){var e=0,r=s/3,n=$r(t),i=n(e,r);return i.parallels=function(t){return arguments.length?n(e=t[0]*h,r=t[1]*h):[e*f,r*f]},i}function en(t,e){var r=_(t),n=(r+_(e))/2;if(p(n)&lt;o)return function(t){var e=g(t);function r(t,r){return[t*e,_(r)/e]}return r.invert=function(t,r){return[t/e,M(r*e)]},r}(t);var i=1+r*(2*n-r),a=T(i)/n;function l(t,e){var r=T(i-2*n*_(e))/n;return[r*_(t*=n),a-r*g(t)]}return l.invert=function(t,e){var r=a-e,o=m(t,p(r))*w(r);return r*n&lt;0&amp;&amp;(o-=s*w(t)*w(r)),[o/n,M((i-(t*t+r*r)*n*n)/(2*n))]},l}function rn(){return tn(en).scale(155.424).center([0,33.6442])}function nn(){return rn().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function an(t){return function(e,r){var n=g(e),i=g(r),a=t(n*i);return[a*i*_(e),a*_(r)]}}function on(t){return function(e,r){var n=T(e*e+r*r),i=t(n),a=_(i),o=g(i);return[m(e*a,n*o),M(n&amp;&amp;r*a/n)]}}var sn=an((function(t){return T(2/(1+t))}));sn.invert=on((function(t){return 2*M(t/2)}));var ln=an((function(t){return(t=A(t))&amp;&amp;t/_(t)}));function cn(t,e){return[t,x(k((l+e)/2))]}function un(t){var e,r,n,i=Qr(t),a=i.center,o=i.scale,l=i.translate,c=i.clipExtent,u=null;function f(){var a=s*o(),l=i(re(i.rotate()).invert([0,0]));return c(null==u?[[l[0]-a,l[1]-a],[l[0]+a,l[1]+a]]:t===cn?[[Math.max(l[0]-a,u),e],[Math.min(l[0]+a,r),n]]:[[u,Math.max(l[1]-a,e)],[r,Math.min(l[1]+a,n)]])}return i.scale=function(t){return arguments.length?(o(t),f()):o()},i.translate=function(t){return arguments.length?(l(t),f()):l()},i.center=function(t){return arguments.length?(a(t),f()):a()},i.clipExtent=function(t){return arguments.length?(null==t?u=e=r=n=null:(u=+t[0][0],e=+t[0][1],r=+t[1][0],n=+t[1][1]),f()):null==u?null:[[u,e],[r,n]]},f()}function fn(t){return k((l+t)/2)}function hn(t,e){var r=g(t),n=t===e?_(t):x(r/g(e))/x(fn(e)/fn(t)),i=r*b(fn(t),n)/n;if(!n)return cn;function a(t,e){i&gt;0?e&lt;-l+o&amp;&amp;(e=-l+o):e&gt;l-o&amp;&amp;(e=l-o);var r=i/b(fn(e),n);return[r*_(n*t),i-r*g(n*t)]}return a.invert=function(t,e){var r=i-e,a=w(n)*T(t*t+r*r),o=m(t,p(r))*w(r);return r*n&lt;0&amp;&amp;(o-=s*w(t)*w(r)),[o/n,2*d(b(i/a,1/n))-l]},a}function pn(t,e){return[t,e]}function dn(t,e){var r=g(t),n=t===e?_(t):(r-g(e))/(e-t),i=r/n+t;if(p(n)&lt;o)return pn;function a(t,e){var r=i-e,a=n*t;return[r*_(a),i-r*g(a)]}return a.invert=function(t,e){var r=i-e,a=m(t,p(r))*w(r);return r*n&lt;0&amp;&amp;(a-=s*w(t)*w(r)),[a/n,i-w(n)*T(t*t+r*r)]},a}ln.invert=on((function(t){return t})),cn.invert=function(t,e){return[t,2*d(y(e))-l]},pn.invert=pn;var mn=1.340264,gn=-.081106,vn=893e-6,yn=.003796,xn=T(3)/2;function bn(t,e){var r=M(xn*_(e)),n=r*r,i=n*n*n;return[t*g(r)/(xn*(mn+3*gn*n+i*(7*vn+9*yn*n))),r*(mn+gn*n+i*(vn+yn*n))]}function _n(t,e){var r=g(e),n=g(t)*r;return[r*_(t)/n,_(e)/n]}function wn(t,e){var r=e*e,n=r*r;return[t*(.8707-.131979*r+n*(n*(.003971*r-.001529*n)-.013791)),e*(1.007226+r*(.015085+n*(.028874*r-.044475-.005916*n)))]}function Tn(t,e){return[g(e)*_(t),_(e)]}function kn(t,e){var r=g(e),n=1+g(t)*r;return[r*_(t)/n,_(e)/n]}function An(t,e){return[x(k((l+e)/2)),-t]}bn.invert=function(t,e){for(var r,n=e,i=n*n,a=i*i*i,o=0;o&lt;12&amp;&amp;(a=(i=(n-=r=(n*(mn+gn*i+a*(vn+yn*i))-e)/(mn+3*gn*i+a*(7*vn+9*yn*i)))*n)*i*i,!(p(r)&lt;1e-12));++o);return[xn*t*(mn+3*gn*i+a*(7*vn+9*yn*i))/g(n),M(_(n)/xn)]},_n.invert=on(d),wn.invert=function(t,e){var r,n=e,i=25;do{var a=n*n,s=a*a;n-=r=(n*(1.007226+a*(.015085+s*(.028874*a-.044475-.005916*s)))-e)/(1.007226+a*(.045255+s*(.259866*a-.311325-.005916*11*s)))}while(p(r)&gt;o&amp;&amp;--i&gt;0);return[t/(.8707+(a=n*n)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),n]},Tn.invert=on(M),kn.invert=on((function(t){return 2*d(t)})),An.invert=function(t,e){return[-e,2*d(y(t))-l]},t.geoAlbers=nn,t.geoAlbersUsa=function(){var t,e,r,n,i,a,s=nn(),l=rn().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=rn().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u={point:function(t,e){a=[t,e]}};function f(t){var e=t[0],o=t[1];return a=null,r.point(e,o),a||(n.point(e,o),a)||(i.point(e,o),a)}function h(){return t=e=null,f}return f.invert=function(t){var e=s.scale(),r=s.translate(),n=(t[0]-r[0])/e,i=(t[1]-r[1])/e;return(i&gt;=.12&amp;&amp;i&lt;.234&amp;&amp;n&gt;=-.425&amp;&amp;n&lt;-.214?l:i&gt;=.166&amp;&amp;i&lt;.234&amp;&amp;n&gt;=-.214&amp;&amp;n&lt;-.115?c:s).invert(t)},f.stream=function(r){return t&amp;&amp;e===r?t:(n=[s.stream(e=r),l.stream(r),c.stream(r)],i=n.length,t={point:function(t,e){for(var r=-1;++r&lt;i;)n[r].point(t,e)},sphere:function(){for(var t=-1;++t&lt;i;)n[t].sphere()},lineStart:function(){for(var t=-1;++t&lt;i;)n[t].lineStart()},lineEnd:function(){for(var t=-1;++t&lt;i;)n[t].lineEnd()},polygonStart:function(){for(var t=-1;++t&lt;i;)n[t].polygonStart()},polygonEnd:function(){for(var t=-1;++t&lt;i;)n[t].polygonEnd()}});var n,i},f.precision=function(t){return arguments.length?(s.precision(t),l.precision(t),c.precision(t),h()):s.precision()},f.scale=function(t){return arguments.length?(s.scale(t),l.scale(.35*t),c.scale(t),f.translate(s.translate())):s.scale()},f.translate=function(t){if(!arguments.length)return s.translate();var e=s.scale(),a=+t[0],f=+t[1];return r=s.translate(t).clipExtent([[a-.455*e,f-.238*e],[a+.455*e,f+.238*e]]).stream(u),n=l.translate([a-.307*e,f+.201*e]).clipExtent([[a-.425*e+o,f+.12*e+o],[a-.214*e-o,f+.234*e-o]]).stream(u),i=c.translate([a-.205*e,f+.212*e]).clipExtent([[a-.214*e+o,f+.166*e+o],[a-.115*e-o,f+.234*e-o]]).stream(u),h()},f.fitExtent=function(t,e){return Hr(f,t,e)},f.fitSize=function(t,e){return qr(f,t,e)},f.fitWidth=function(t,e){return Gr(f,t,e)},f.fitHeight=function(t,e){return Yr(f,t,e)},f.scale(1070)},t.geoArea=function(t){return U.reset(),z(t,V),2*U},t.geoAzimuthalEqualArea=function(){return Qr(sn).scale(124.75).clipAngle(179.999)},t.geoAzimuthalEqualAreaRaw=sn,t.geoAzimuthalEquidistant=function(){return Qr(ln).scale(79.4188).clipAngle(179.999)},t.geoAzimuthalEquidistantRaw=ln,t.geoBounds=function(t){var e,r,n,i,a,o,s;if(nt=rt=-(tt=et=1/0),lt=[],z(t,St),r=lt.length){for(lt.sort(Rt),e=1,a=[n=lt[0]];e&lt;r;++e)Ft(n,(i=lt[e])[0])||Ft(n,i[1])?(Dt(n[0],i[1])&gt;Dt(n[0],n[1])&amp;&amp;(n[1]=i[1]),Dt(i[0],n[1])&gt;Dt(n[0],n[1])&amp;&amp;(n[0]=i[0])):a.push(n=i);for(o=-1/0,e=0,n=a[r=a.length-1];e&lt;=r;n=i,++e)i=a[e],(s=Dt(n[1],i[0]))&gt;o&amp;&amp;(o=s,tt=i[0],rt=n[1])}return lt=ct=null,tt===1/0||et===1/0?[[NaN,NaN],[NaN,NaN]]:[[tt,et],[rt,nt]]},t.geoCentroid=function(t){ut=ft=ht=pt=dt=mt=gt=vt=yt=xt=bt=0,z(t,Bt);var e=yt,r=xt,n=bt,i=e*e+r*r+n*n;return i&lt;1e-12&amp;&amp;(e=mt,r=gt,n=vt,ft&lt;o&amp;&amp;(e=ht,r=pt,n=dt),(i=e*e+r*r+n*n)&lt;1e-12)?[NaN,NaN]:[m(r,e)*f,M(n/T(i))*f]},t.geoCircle=function(){var t,e,r=Zt([0,0]),n=Zt(90),i=Zt(6),a={point:function(r,n){t.push(r=e(r,n)),r[0]*=f,r[1]*=f}};function o(){var o=r.apply(this,arguments),s=n.apply(this,arguments)*h,l=i.apply(this,arguments)*h;return t=[],e=Qt(-o[0]*h,-o[1]*h,0).invert,ne(a,s,l,1),o={type:&quot;Polygon&quot;,coordinates:[t]},t=e=null,o}return o.center=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:Zt([+t[0],+t[1]]),o):r},o.radius=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:Zt(+t),o):n},o.precision=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:Zt(+t),o):i},o},t.geoClipAntimeridian=ge,t.geoClipCircle=ve,t.geoClipExtent=function(){var t,e,r,n=0,i=0,a=960,o=500;return r={stream:function(r){return t&amp;&amp;e===r?t:t=ye(n,i,a,o)(e=r)},extent:function(s){return arguments.length?(n=+s[0][0],i=+s[0][1],a=+s[1][0],o=+s[1][1],t=e=null,r):[[n,i],[a,o]]}}},t.geoClipRectangle=ye,t.geoConicConformal=function(){return tn(hn).scale(109.5).parallels([30,30])},t.geoConicConformalRaw=hn,t.geoConicEqualArea=rn,t.geoConicEqualAreaRaw=en,t.geoConicEquidistant=function(){return tn(dn).scale(131.154).center([0,13.9389])},t.geoConicEquidistantRaw=dn,t.geoContains=function(t,e){return(t&amp;&amp;Pe.hasOwnProperty(t.type)?Pe[t.type]:Oe)(t,e)},t.geoDistance=Ce,t.geoEqualEarth=function(){return Qr(bn).scale(177.158)},t.geoEqualEarthRaw=bn,t.geoEquirectangular=function(){return Qr(pn).scale(152.63)},t.geoEquirectangularRaw=pn,t.geoGnomonic=function(){return Qr(_n).scale(144.049).clipAngle(60)},t.geoGnomonicRaw=_n,t.geoGraticule=Ue,t.geoGraticule10=function(){return Ue()()},t.geoIdentity=function(){var t,e,r,n,i,a,o,s=1,l=0,c=0,u=1,p=1,d=0,m=null,v=1,y=1,x=jr({point:function(t,e){var r=T([t,e]);this.stream.point(r[0],r[1])}}),b=Ve;function w(){return v=s*u,y=s*p,a=o=null,T}function T(r){var n=r[0]*v,i=r[1]*y;if(d){var a=i*t-n*e;n=n*t+i*e,i=a}return[n+l,i+c]}return T.invert=function(r){var n=r[0]-l,i=r[1]-c;if(d){var a=i*t+n*e;n=n*t-i*e,i=a}return[n/v,i/y]},T.stream=function(t){return a&amp;&amp;o===t?a:a=x(b(o=t))},T.postclip=function(t){return arguments.length?(b=t,m=r=n=i=null,w()):b},T.clipExtent=function(t){return arguments.length?(b=null==t?(m=r=n=i=null,Ve):ye(m=+t[0][0],r=+t[0][1],n=+t[1][0],i=+t[1][1]),w()):null==m?null:[[m,r],[n,i]]},T.scale=function(t){return arguments.length?(s=+t,w()):s},T.translate=function(t){return arguments.length?(l=+t[0],c=+t[1],w()):[l,c]},T.angle=function(r){return arguments.length?(e=_(d=r%360*h),t=g(d),w()):d*f},T.reflectX=function(t){return arguments.length?(u=t?-1:1,w()):u&lt;0},T.reflectY=function(t){return arguments.length?(p=t?-1:1,w()):p&lt;0},T.fitExtent=function(t,e){return Hr(T,t,e)},T.fitSize=function(t,e){return qr(T,t,e)},T.fitWidth=function(t,e){return Gr(T,t,e)},T.fitHeight=function(t,e){return Yr(T,t,e)},T},t.geoInterpolate=function(t,e){var r=t[0]*h,n=t[1]*h,i=e[0]*h,a=e[1]*h,o=g(n),s=_(n),l=g(a),c=_(a),u=o*g(r),p=o*_(r),d=l*g(i),v=l*_(i),y=2*M(T(S(a-n)+o*l*S(i-r))),x=_(y),b=y?function(t){var e=_(t*=y)/x,r=_(y-t)/x,n=r*u+e*d,i=r*p+e*v,a=r*s+e*c;return[m(i,n)*f,m(a,T(n*n+i*i))*f]}:function(){return[r*f,n*f]};return b.distance=y,b},t.geoLength=Se,t.geoMercator=function(){return un(cn).scale(961/u)},t.geoMercatorRaw=cn,t.geoNaturalEarth1=function(){return Qr(wn).scale(175.295)},t.geoNaturalEarth1Raw=wn,t.geoOrthographic=function(){return Qr(Tn).scale(249.5).clipAngle(90+o)},t.geoOrthographicRaw=Tn,t.geoPath=function(t,e){var r,n,i=4.5;function a(t){return t&amp;&amp;(&quot;function&quot;==typeof i&amp;&amp;n.pointRadius(+i.apply(this,arguments)),z(t,r(n))),n.result()}return a.area=function(t){return z(t,r(Ze)),Ze.result()},a.measure=function(t){return z(t,r(Dr)),Dr.result()},a.bounds=function(t){return z(t,r(ir)),ir.result()},a.centroid=function(t){return z(t,r(yr)),yr.result()},a.projection=function(e){return arguments.length?(r=null==e?(t=null,Ve):(t=e).stream,a):t},a.context=function(t){return arguments.length?(n=null==t?(e=null,new Br):new Er(e=t),&quot;function&quot;!=typeof i&amp;&amp;n.pointRadius(i),a):e},a.pointRadius=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:(n.pointRadius(+t),+t),a):i},a.projection(t).context(e)},t.geoProjection=Qr,t.geoProjectionMutator=$r,t.geoRotation=re,t.geoStereographic=function(){return Qr(kn).scale(250).clipAngle(142)},t.geoStereographicRaw=kn,t.geoStream=z,t.geoTransform=function(t){return{stream:jr(t)}},t.geoTransverseMercator=function(){var t=un(An),e=t.center,r=t.rotate;return t.center=function(t){return arguments.length?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return arguments.length?r([t[0],t[1],t.length&gt;2?t[2]+90:90]):[(t=r())[0],t[1],t[2]-90]},r([0,0,90]).scale(159.155)},t.geoTransverseMercatorRaw=An,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:107}],115:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){return t.parent===e.parent?1:2}function r(t,e){return t+e.x}function n(t,e){return Math.max(t,e.y)}function i(t){var e=0,r=t.children,n=r&amp;&amp;r.length;if(n)for(;--n&gt;=0;)e+=r[n].value;else e=1;t.value=e}function a(t,e){var r,n,i,a,s,u=new c(t),f=+t.value&amp;&amp;(u.value=t.value),h=[u];for(null==e&amp;&amp;(e=o);r=h.pop();)if(f&amp;&amp;(r.value=+r.data.value),(i=e(r.data))&amp;&amp;(s=i.length))for(r.children=new Array(s),a=s-1;a&gt;=0;--a)h.push(n=r.children[a]=new c(i[a])),n.parent=r,n.depth=r.depth+1;return u.eachBefore(l)}function o(t){return t.children}function s(t){t.data=t.data.data}function l(t){var e=0;do{t.height=e}while((t=t.parent)&amp;&amp;t.height&lt;++e)}function c(t){this.data=t,this.depth=this.height=0,this.parent=null}c.prototype=a.prototype={constructor:c,count:function(){return this.eachAfter(i)},each:function(t){var e,r,n,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),r=a.children)for(n=0,i=r.length;n&lt;i;++n)o.push(r[n])}while(o.length);return this},eachAfter:function(t){for(var e,r,n,i=this,a=[i],o=[];i=a.pop();)if(o.push(i),e=i.children)for(r=0,n=e.length;r&lt;n;++r)a.push(e[r]);for(;i=o.pop();)t(i);return this},eachBefore:function(t){for(var e,r,n=this,i=[n];n=i.pop();)if(t(n),e=n.children)for(r=e.length-1;r&gt;=0;--r)i.push(e[r]);return this},sum:function(t){return this.eachAfter((function(e){for(var r=+t(e.data)||0,n=e.children,i=n&amp;&amp;n.length;--i&gt;=0;)r+=n[i].value;e.value=r}))},sort:function(t){return this.eachBefore((function(e){e.children&amp;&amp;e.children.sort(t)}))},path:function(t){for(var e=this,r=function(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;t=r.pop(),e=n.pop();for(;t===e;)i=t,t=r.pop(),e=n.pop();return i}(e,t),n=[e];e!==r;)e=e.parent,n.push(e);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(r){r!==t&amp;&amp;e.push({source:r.parent,target:r})})),e},copy:function(){return a(this).eachBefore(s)}};var u=Array.prototype.slice;function f(t){for(var e,r,n=0,i=(t=function(t){for(var e,r,n=t.length;n;)r=Math.random()*n--|0,e=t[n],t[n]=t[r],t[r]=e;return t}(u.call(t))).length,a=[];n&lt;i;)e=t[n],r&amp;&amp;d(r,e)?++n:(r=g(a=h(a,e)),n=0);return r}function h(t,e){var r,n;if(m(e,t))return[e];for(r=0;r&lt;t.length;++r)if(p(e,t[r])&amp;&amp;m(v(t[r],e),t))return[t[r],e];for(r=0;r&lt;t.length-1;++r)for(n=r+1;n&lt;t.length;++n)if(p(v(t[r],t[n]),e)&amp;&amp;p(v(t[r],e),t[n])&amp;&amp;p(v(t[n],e),t[r])&amp;&amp;m(y(t[r],t[n],e),t))return[t[r],t[n],e];throw new Error}function p(t,e){var r=t.r-e.r,n=e.x-t.x,i=e.y-t.y;return r&lt;0||r*r&lt;n*n+i*i}function d(t,e){var r=t.r-e.r+1e-6,n=e.x-t.x,i=e.y-t.y;return r&gt;0&amp;&amp;r*r&gt;n*n+i*i}function m(t,e){for(var r=0;r&lt;e.length;++r)if(!d(t,e[r]))return!1;return!0}function g(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return v(t[0],t[1]);case 3:return y(t[0],t[1],t[2])}var e}function v(t,e){var r=t.x,n=t.y,i=t.r,a=e.x,o=e.y,s=e.r,l=a-r,c=o-n,u=s-i,f=Math.sqrt(l*l+c*c);return{x:(r+a+l/f*u)/2,y:(n+o+c/f*u)/2,r:(f+i+s)/2}}function y(t,e,r){var n=t.x,i=t.y,a=t.r,o=e.x,s=e.y,l=e.r,c=r.x,u=r.y,f=r.r,h=n-o,p=n-c,d=i-s,m=i-u,g=l-a,v=f-a,y=n*n+i*i-a*a,x=y-o*o-s*s+l*l,b=y-c*c-u*u+f*f,_=p*d-h*m,w=(d*b-m*x)/(2*_)-n,T=(m*g-d*v)/_,k=(p*x-h*b)/(2*_)-i,A=(h*v-p*g)/_,M=T*T+A*A-1,S=2*(a+w*T+k*A),E=w*w+k*k-a*a,L=-(M?(S+Math.sqrt(S*S-4*M*E))/(2*M):E/S);return{x:n+w+T*L,y:i+k+A*L,r:L}}function x(t,e,r){var n,i,a,o,s=t.x-e.x,l=t.y-e.y,c=s*s+l*l;c?(i=e.r+r.r,i*=i,o=t.r+r.r,i&gt;(o*=o)?(n=(c+o-i)/(2*c),a=Math.sqrt(Math.max(0,o/c-n*n)),r.x=t.x-n*s-a*l,r.y=t.y-n*l+a*s):(n=(c+i-o)/(2*c),a=Math.sqrt(Math.max(0,i/c-n*n)),r.x=e.x+n*s-a*l,r.y=e.y+n*l+a*s)):(r.x=e.x+r.r,r.y=e.y)}function b(t,e){var r=t.r+e.r-1e-6,n=e.x-t.x,i=e.y-t.y;return r&gt;0&amp;&amp;r*r&gt;n*n+i*i}function _(t){var e=t._,r=t.next._,n=e.r+r.r,i=(e.x*r.r+r.x*e.r)/n,a=(e.y*r.r+r.y*e.r)/n;return i*i+a*a}function w(t){this._=t,this.next=null,this.previous=null}function T(t){if(!(i=t.length))return 0;var e,r,n,i,a,o,s,l,c,u,h;if((e=t[0]).x=0,e.y=0,!(i&gt;1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(i&gt;2))return e.r+r.r;x(r,e,n=t[2]),e=new w(e),r=new w(r),n=new w(n),e.next=n.previous=r,r.next=e.previous=n,n.next=r.previous=e;t:for(s=3;s&lt;i;++s){x(e._,r._,n=t[s]),n=new w(n),l=r.next,c=e.previous,u=r._.r,h=e._.r;do{if(u&lt;=h){if(b(l._,n._)){r=l,e.next=r,r.previous=e,--s;continue t}u+=l._.r,l=l.next}else{if(b(c._,n._)){(e=c).next=r,r.previous=e,--s;continue t}h+=c._.r,c=c.previous}}while(l!==c.next);for(n.previous=e,n.next=r,e.next=r.previous=r=n,a=_(e);(n=n.next)!==r;)(o=_(n))&lt;a&amp;&amp;(e=n,a=o);r=e.next}for(e=[r._],n=r;(n=n.next)!==r;)e.push(n._);for(n=f(e),s=0;s&lt;i;++s)(e=t[s]).x-=n.x,e.y-=n.y;return n.r}function k(t){return null==t?null:A(t)}function A(t){if(&quot;function&quot;!=typeof t)throw new Error;return t}function M(){return 0}function S(t){return function(){return t}}function E(t){return Math.sqrt(t.value)}function L(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function C(t,e){return function(r){if(n=r.children){var n,i,a,o=n.length,s=t(r)*e||0;if(s)for(i=0;i&lt;o;++i)n[i].r+=s;if(a=T(n),s)for(i=0;i&lt;o;++i)n[i].r-=s;r.r=a+s}}}function P(t){return function(e){var r=e.parent;e.r*=t,r&amp;&amp;(e.x=r.x+t*e.x,e.y=r.y+t*e.y)}}function I(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function O(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&amp;&amp;(n-e)/t.value;++s&lt;l;)(a=o[s]).y0=r,a.y1=i,a.x0=e,a.x1=e+=a.value*c}var z={depth:-1},D={};function R(t){return t.id}function F(t){return t.parentId}function B(t,e){return t.parent===e.parent?1:2}function N(t){var e=t.children;return e?e[0]:t.t}function j(t){var e=t.children;return e?e[e.length-1]:t.t}function U(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function V(t,e,r){return t.a.parent===e.parent?t.a:r}function H(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function q(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&amp;&amp;(i-r)/t.value;++s&lt;l;)(a=o[s]).x0=e,a.x1=n,a.y0=r,a.y1=r+=a.value*c}H.prototype=Object.create(c.prototype);var G=(1+Math.sqrt(5))/2;function Y(t,e,r,n,i,a){for(var o,s,l,c,u,f,h,p,d,m,g,v=[],y=e.children,x=0,b=0,_=y.length,w=e.value;x&lt;_;){l=i-r,c=a-n;do{u=y[b++].value}while(!u&amp;&amp;b&lt;_);for(f=h=u,g=u*u*(m=Math.max(c/l,l/c)/(w*t)),d=Math.max(h/g,g/f);b&lt;_;++b){if(u+=s=y[b].value,s&lt;f&amp;&amp;(f=s),s&gt;h&amp;&amp;(h=s),g=u*u*m,(p=Math.max(h/g,g/f))&gt;d){u-=s;break}d=p}v.push(o={value:u,dice:l&lt;c,children:y.slice(x,b)}),o.dice?O(o,r,n,i,w?n+=c*u/w:a):q(o,r,n,w?r+=l*u/w:i,a),w-=u,x=b}return v}var W=function t(e){function r(t,r,n,i,a){Y(e,t,r,n,i,a)}return r.ratio=function(e){return t((e=+e)&gt;1?e:1)},r}(G);var X=function t(e){function r(t,r,n,i,a){if((o=t._squarify)&amp;&amp;o.ratio===e)for(var o,s,l,c,u,f=-1,h=o.length,p=t.value;++f&lt;h;){for(l=(s=o[f]).children,c=s.value=0,u=l.length;c&lt;u;++c)s.value+=l[c].value;s.dice?O(s,r,n,i,n+=(a-n)*s.value/p):q(s,r,n,r+=(i-r)*s.value/p,a),p-=s.value}else t._squarify=o=Y(e,t,r,n,i,a),o.ratio=e}return r.ratio=function(e){return t((e=+e)&gt;1?e:1)},r}(G);t.cluster=function(){var t=e,i=1,a=1,o=!1;function s(e){var s,l=0;e.eachAfter((function(e){var i=e.children;i?(e.x=function(t){return t.reduce(r,0)/t.length}(i),e.y=function(t){return 1+t.reduce(n,0)}(i)):(e.x=s?l+=t(e,s):0,e.y=0,s=e)}));var c=function(t){for(var e;e=t.children;)t=e[0];return t}(e),u=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(e),f=c.x-t(c,u)/2,h=u.x+t(u,c)/2;return e.eachAfter(o?function(t){t.x=(t.x-e.x)*i,t.y=(e.y-t.y)*a}:function(t){t.x=(t.x-f)/(h-f)*i,t.y=(1-(e.y?t.y/e.y:1))*a})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(o=!1,i=+t[0],a=+t[1],s):o?null:[i,a]},s.nodeSize=function(t){return arguments.length?(o=!0,i=+t[0],a=+t[1],s):o?[i,a]:null},s},t.hierarchy=a,t.pack=function(){var t=null,e=1,r=1,n=M;function i(i){return i.x=e/2,i.y=r/2,t?i.eachBefore(L(t)).eachAfter(C(n,.5)).eachBefore(P(1)):i.eachBefore(L(E)).eachAfter(C(M,1)).eachAfter(C(n,i.r/Math.min(e,r))).eachBefore(P(Math.min(e,r)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=k(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],r=+t[1],i):[e,r]},i.padding=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:S(+t),i):n},i},t.packEnclose=f,t.packSiblings=function(t){return T(t),t},t.partition=function(){var t=1,e=1,r=0,n=!1;function i(i){var a=i.height+1;return i.x0=i.y0=r,i.x1=t,i.y1=e/a,i.eachBefore(function(t,e){return function(n){n.children&amp;&amp;O(n,n.x0,t*(n.depth+1)/e,n.x1,t*(n.depth+2)/e);var i=n.x0,a=n.y0,o=n.x1-r,s=n.y1-r;o&lt;i&amp;&amp;(i=o=(i+o)/2),s&lt;a&amp;&amp;(a=s=(a+s)/2),n.x0=i,n.y0=a,n.x1=o,n.y1=s}}(e,a)),n&amp;&amp;i.eachBefore(I),i}return i.round=function(t){return arguments.length?(n=!!t,i):n},i.size=function(r){return arguments.length?(t=+r[0],e=+r[1],i):[t,e]},i.padding=function(t){return arguments.length?(r=+t,i):r},i},t.stratify=function(){var t=R,e=F;function r(r){var n,i,a,o,s,u,f,h=r.length,p=new Array(h),d={};for(i=0;i&lt;h;++i)n=r[i],s=p[i]=new c(n),null!=(u=t(n,i,r))&amp;&amp;(u+=&quot;&quot;)&amp;&amp;(d[f=&quot;$&quot;+(s.id=u)]=f in d?D:s);for(i=0;i&lt;h;++i)if(s=p[i],null!=(u=e(r[i],i,r))&amp;&amp;(u+=&quot;&quot;)){if(!(o=d[&quot;$&quot;+u]))throw new Error(&quot;missing: &quot;+u);if(o===D)throw new Error(&quot;ambiguous: &quot;+u);o.children?o.children.push(s):o.children=[s],s.parent=o}else{if(a)throw new Error(&quot;multiple roots&quot;);a=s}if(!a)throw new Error(&quot;no root&quot;);if(a.parent=z,a.eachBefore((function(t){t.depth=t.parent.depth+1,--h})).eachBefore(l),a.parent=null,h&gt;0)throw new Error(&quot;cycle&quot;);return a}return r.id=function(e){return arguments.length?(t=A(e),r):t},r.parentId=function(t){return arguments.length?(e=A(t),r):e},r},t.tree=function(){var t=B,e=1,r=1,n=null;function i(i){var l=function(t){for(var e,r,n,i,a,o=new H(t,0),s=[o];e=s.pop();)if(n=e._.children)for(e.children=new Array(a=n.length),i=a-1;i&gt;=0;--i)s.push(r=e.children[i]=new H(n[i],i)),r.parent=e;return(o.parent=new H(null,0)).children=[o],o}(i);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(o),n)i.eachBefore(s);else{var c=i,u=i,f=i;i.eachBefore((function(t){t.x&lt;c.x&amp;&amp;(c=t),t.x&gt;u.x&amp;&amp;(u=t),t.depth&gt;f.depth&amp;&amp;(f=t)}));var h=c===u?1:t(c,u)/2,p=h-c.x,d=e/(u.x+h+p),m=r/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*m}))}return i}function a(e){var r=e.children,n=e.parent.children,i=e.i?n[e.i-1]:null;if(r){!function(t){for(var e,r=0,n=0,i=t.children,a=i.length;--a&gt;=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(e);var a=(r[0].z+r[r.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&amp;&amp;(e.z=i.z+t(e._,i._));e.parent.A=function(e,r,n){if(r){for(var i,a=e,o=e,s=r,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=j(s),a=N(a),s&amp;&amp;a;)l=N(l),(o=j(o)).a=e,(i=s.z+f-a.z-c+t(s._,a._))&gt;0&amp;&amp;(U(V(s,e,n),e,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&amp;&amp;!j(o)&amp;&amp;(o.t=s,o.m+=f-u),a&amp;&amp;!N(l)&amp;&amp;(l.t=a,l.m+=c-h,n=e)}return n}(e,i,e.parent.A||n[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*r}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(n=!1,e=+t[0],r=+t[1],i):n?null:[e,r]},i.nodeSize=function(t){return arguments.length?(n=!0,e=+t[0],r=+t[1],i):n?[e,r]:null},i},t.treemap=function(){var t=W,e=!1,r=1,n=1,i=[0],a=M,o=M,s=M,l=M,c=M;function u(t){return t.x0=t.y0=0,t.x1=r,t.y1=n,t.eachBefore(f),i=[0],e&amp;&amp;t.eachBefore(I),t}function f(e){var r=i[e.depth],n=e.x0+r,u=e.y0+r,f=e.x1-r,h=e.y1-r;f&lt;n&amp;&amp;(n=f=(n+f)/2),h&lt;u&amp;&amp;(u=h=(u+h)/2),e.x0=n,e.y0=u,e.x1=f,e.y1=h,e.children&amp;&amp;(r=i[e.depth+1]=a(e)/2,n+=c(e)-r,u+=o(e)-r,(f-=s(e)-r)&lt;n&amp;&amp;(n=f=(n+f)/2),(h-=l(e)-r)&lt;u&amp;&amp;(u=h=(u+h)/2),t(e,n,u,f,h))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(r=+t[0],n=+t[1],u):[r,n]},u.tile=function(e){return arguments.length?(t=A(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:S(+t),u):a},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:S(+t),u):o},u.paddingRight=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:S(+t),u):s},u.paddingBottom=function(t){return arguments.length?(l=&quot;function&quot;==typeof t?t:S(+t),u):l},u.paddingLeft=function(t){return arguments.length?(c=&quot;function&quot;==typeof t?t:S(+t),u):c},u},t.treemapBinary=function(t,e,r,n,i){var a,o,s=t.children,l=s.length,c=new Array(l+1);for(c[0]=o=a=0;a&lt;l;++a)c[a+1]=o+=s[a].value;!function t(e,r,n,i,a,o,l){if(e&gt;=r-1){var u=s[e];return u.x0=i,u.y0=a,u.x1=o,void(u.y1=l)}var f=c[e],h=n/2+f,p=e+1,d=r-1;for(;p&lt;d;){var m=p+d&gt;&gt;&gt;1;c[m]&lt;h?p=m+1:d=m}h-c[p-1]&lt;c[p]-h&amp;&amp;e+1&lt;p&amp;&amp;--p;var g=c[p]-f,v=n-g;if(o-i&gt;l-a){var y=(i*v+o*g)/n;t(e,p,g,i,a,y,l),t(p,r,v,y,a,o,l)}else{var x=(a*v+l*g)/n;t(e,p,g,i,a,o,x),t(p,r,v,i,x,o,l)}}(0,l,t.value,e,r,n,i)},t.treemapDice=O,t.treemapResquarify=X,t.treemapSlice=q,t.treemapSliceDice=function(t,e,r,n,i){(1&amp;t.depth?q:O)(t,e,r,n,i)},t.treemapSquarify=W,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],116:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-color&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}function n(t){var e=t.length-1;return function(n){var i=n&lt;=0?n=0:n&gt;=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i&gt;0?t[i-1]:2*a-o,l=i&lt;e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,l)}}function i(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)&lt;0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],l=t[(i+2)%e];return r((n-i/e)*e,a,o,s,l)}}function a(t){return function(){return t}}function o(t,e){return function(r){return t+r*e}}function s(t,e){var r=e-t;return r?o(t,r&gt;180||r&lt;-180?r-360*Math.round(r/360):r):a(isNaN(t)?e:t)}function l(t){return 1==(t=+t)?c:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):a(isNaN(e)?r:e)}}function c(t,e){var r=e-t;return r?o(t,r):a(isNaN(t)?e:t)}var u=function t(r){var n=l(r);function i(t,r){var i=n((t=e.rgb(t)).r,(r=e.rgb(r)).r),a=n(t.g,r.g),o=n(t.b,r.b),s=c(t.opacity,r.opacity);return function(e){return t.r=i(e),t.g=a(e),t.b=o(e),t.opacity=s(e),t+&quot;&quot;}}return i.gamma=t,i}(1);function f(t){return function(r){var n,i,a=r.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;n&lt;a;++n)i=e.rgb(r[n]),o[n]=i.r||0,s[n]=i.g||0,l[n]=i.b||0;return o=t(o),s=t(s),l=t(l),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=l(t),i+&quot;&quot;}}}var h=f(n),p=f(i);function d(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(r=0;r&lt;n;++r)i[r]=t[r]*(1-a)+e[r]*a;return i}}function m(t){return ArrayBuffer.isView(t)&amp;&amp;!(t instanceof DataView)}function g(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,a=new Array(i),o=new Array(n);for(r=0;r&lt;i;++r)a[r]=T(t[r],e[r]);for(;r&lt;n;++r)o[r]=e[r];return function(t){for(r=0;r&lt;i;++r)o[r]=a[r](t);return o}}function v(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function y(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function x(t,e){var r,n={},i={};for(r in null!==t&amp;&amp;&quot;object&quot;==typeof t||(t={}),null!==e&amp;&amp;&quot;object&quot;==typeof e||(e={}),e)r in t?n[r]=T(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var b=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(b.source,&quot;g&quot;);function w(t,e){var r,n,i,a=b.lastIndex=_.lastIndex=0,o=-1,s=[],l=[];for(t+=&quot;&quot;,e+=&quot;&quot;;(r=b.exec(t))&amp;&amp;(n=_.exec(e));)(i=n.index)&gt;a&amp;&amp;(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:y(r,n)})),a=_.lastIndex;return a&lt;e.length&amp;&amp;(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length&lt;2?l[0]?function(t){return function(e){return t(e)+&quot;&quot;}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var r,n=0;n&lt;e;++n)s[(r=l[n]).i]=r.x(t);return s.join(&quot;&quot;)})}function T(t,r){var n,i=typeof r;return null==r||&quot;boolean&quot;===i?a(r):(&quot;number&quot;===i?y:&quot;string&quot;===i?(n=e.color(r))?(r=n,u):w:r instanceof e.color?u:r instanceof Date?v:m(r)?d:Array.isArray(r)?g:&quot;function&quot;!=typeof r.valueOf&amp;&amp;&quot;function&quot;!=typeof r.toString||isNaN(r)?x:y)(t,r)}var k,A,M,S,E=180/Math.PI,L={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function C(t,e,r,n,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&amp;&amp;(t/=o,e/=o),(l=t*r+e*n)&amp;&amp;(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&amp;&amp;(r/=s,n/=s,l/=s),t*n&lt;e*r&amp;&amp;(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*E,skewX:Math.atan(l)*E,scaleX:o,scaleY:s}}function P(t,e,r,n){function i(t){return t.length?t.pop()+&quot; &quot;:&quot;&quot;}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,n,i,a,o,s){if(t!==i||n!==a){var l=o.push(&quot;translate(&quot;,null,e,null,r);s.push({i:l-4,x:y(t,i)},{i:l-2,x:y(n,a)})}else(i||a)&amp;&amp;o.push(&quot;translate(&quot;+i+e+a+r)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,r,a){t!==e?(t-e&gt;180?e+=360:e-t&gt;180&amp;&amp;(t+=360),a.push({i:r.push(i(r)+&quot;rotate(&quot;,null,n)-2,x:y(t,e)})):e&amp;&amp;r.push(i(r)+&quot;rotate(&quot;+e+n)}(a.rotate,o.rotate,s,l),function(t,e,r,a){t!==e?a.push({i:r.push(i(r)+&quot;skewX(&quot;,null,n)-2,x:y(t,e)}):e&amp;&amp;r.push(i(r)+&quot;skewX(&quot;+e+n)}(a.skewX,o.skewX,s,l),function(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+&quot;scale(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);o.push({i:s-4,x:y(t,r)},{i:s-2,x:y(e,n)})}else 1===r&amp;&amp;1===n||a.push(i(a)+&quot;scale(&quot;+r+&quot;,&quot;+n+&quot;)&quot;)}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,r=-1,n=l.length;++r&lt;n;)s[(e=l[r]).i]=e.x(t);return s.join(&quot;&quot;)}}}var I=P((function(t){return&quot;none&quot;===t?L:(k||(k=document.createElement(&quot;DIV&quot;),A=document.documentElement,M=document.defaultView),k.style.transform=t,t=M.getComputedStyle(A.appendChild(k),null).getPropertyValue(&quot;transform&quot;),A.removeChild(k),C(+(t=t.slice(7,-1).split(&quot;,&quot;))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),&quot;px, &quot;,&quot;px)&quot;,&quot;deg)&quot;),O=P((function(t){return null==t?L:(S||(S=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;)),S.setAttribute(&quot;transform&quot;,t),(t=S.transform.baseVal.consolidate())?C((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):L)}),&quot;, &quot;,&quot;)&quot;,&quot;)&quot;),z=Math.SQRT2;function D(t){return((t=Math.exp(t))+1/t)/2}function R(t){return function(r,n){var i=t((r=e.hsl(r)).h,(n=e.hsl(n)).h),a=c(r.s,n.s),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.s=a(t),r.l=o(t),r.opacity=s(t),r+&quot;&quot;}}}var F=R(s),B=R(c);function N(t){return function(r,n){var i=t((r=e.hcl(r)).h,(n=e.hcl(n)).h),a=c(r.c,n.c),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.c=a(t),r.l=o(t),r.opacity=s(t),r+&quot;&quot;}}}var j=N(s),U=N(c);function V(t){return function r(n){function i(r,i){var a=t((r=e.cubehelix(r)).h,(i=e.cubehelix(i)).h),o=c(r.s,i.s),s=c(r.l,i.l),l=c(r.opacity,i.opacity);return function(t){return r.h=a(t),r.s=o(t),r.l=s(Math.pow(t,n)),r.opacity=l(t),r+&quot;&quot;}}return n=+n,i.gamma=r,i}(1)}var H=V(s),q=V(c);t.interpolate=T,t.interpolateArray=function(t,e){return(m(e)?d:g)(t,e)},t.interpolateBasis=n,t.interpolateBasisClosed=i,t.interpolateCubehelix=H,t.interpolateCubehelixLong=q,t.interpolateDate=v,t.interpolateDiscrete=function(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}},t.interpolateHcl=j,t.interpolateHclLong=U,t.interpolateHsl=F,t.interpolateHslLong=B,t.interpolateHue=function(t,e){var r=s(+t,+e);return function(t){var e=r(t);return e-360*Math.floor(e/360)}},t.interpolateLab=function(t,r){var n=c((t=e.lab(t)).l,(r=e.lab(r)).l),i=c(t.a,r.a),a=c(t.b,r.b),o=c(t.opacity,r.opacity);return function(e){return t.l=n(e),t.a=i(e),t.b=a(e),t.opacity=o(e),t+&quot;&quot;}},t.interpolateNumber=y,t.interpolateNumberArray=d,t.interpolateObject=x,t.interpolateRgb=u,t.interpolateRgbBasis=h,t.interpolateRgbBasisClosed=p,t.interpolateRound=function(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}},t.interpolateString=w,t.interpolateTransformCss=I,t.interpolateTransformSvg=O,t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h&lt;1e-12)n=Math.log(c/o)/z,r=function(t){return[i+t*u,a+t*f,o*Math.exp(z*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),m=(c*c-o*o-4*h)/(2*c*2*p),g=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(m*m+1)-m);n=(v-g)/z,r=function(t){var e,r=t*n,s=D(g),l=o/(2*p)*(s*(e=z*r+g,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(g));return[i+l*u,a+l*f,o*s/D(z*r+g)]}}return r.duration=1e3*n,r},t.piecewise=function(t,e){for(var r=0,n=e.length-1,i=e[0],a=new Array(n&lt;0?0:n);r&lt;n;)a[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return a[e](t-e)}},t.quantize=function(t,e){for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=t(n/(e-1));return r},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-color&quot;:109}],117:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e=Math.PI,r=2*e,n=r-1e-6;function i(){this._x0=this._y0=this._x1=this._y1=null,this._=&quot;&quot;}function a(){return new i}i.prototype=a.prototype={constructor:i,moveTo:function(t,e){this._+=&quot;M&quot;+(this._x0=this._x1=+t)+&quot;,&quot;+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&amp;&amp;(this._x1=this._x0,this._y1=this._y0,this._+=&quot;Z&quot;)},lineTo:function(t,e){this._+=&quot;L&quot;+(this._x1=+t)+&quot;,&quot;+(this._y1=+e)},quadraticCurveTo:function(t,e,r,n){this._+=&quot;Q&quot;+ +t+&quot;,&quot;+ +e+&quot;,&quot;+(this._x1=+r)+&quot;,&quot;+(this._y1=+n)},bezierCurveTo:function(t,e,r,n,i,a){this._+=&quot;C&quot;+ +t+&quot;,&quot;+ +e+&quot;,&quot;+ +r+&quot;,&quot;+ +n+&quot;,&quot;+(this._x1=+i)+&quot;,&quot;+(this._y1=+a)},arcTo:function(t,r,n,i,a){t=+t,r=+r,n=+n,i=+i,a=+a;var o=this._x1,s=this._y1,l=n-t,c=i-r,u=o-t,f=s-r,h=u*u+f*f;if(a&lt;0)throw new Error(&quot;negative radius: &quot;+a);if(null===this._x1)this._+=&quot;M&quot;+(this._x1=t)+&quot;,&quot;+(this._y1=r);else if(h&gt;1e-6)if(Math.abs(f*l-c*u)&gt;1e-6&amp;&amp;a){var p=n-o,d=i-s,m=l*l+c*c,g=p*p+d*d,v=Math.sqrt(m),y=Math.sqrt(h),x=a*Math.tan((e-Math.acos((m+h-g)/(2*v*y)))/2),b=x/y,_=x/v;Math.abs(b-1)&gt;1e-6&amp;&amp;(this._+=&quot;L&quot;+(t+b*u)+&quot;,&quot;+(r+b*f)),this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,0,&quot;+ +(f*p&gt;u*d)+&quot;,&quot;+(this._x1=t+_*l)+&quot;,&quot;+(this._y1=r+_*c)}else this._+=&quot;L&quot;+(this._x1=t)+&quot;,&quot;+(this._y1=r);else;},arc:function(t,i,a,o,s,l){t=+t,i=+i,l=!!l;var c=(a=+a)*Math.cos(o),u=a*Math.sin(o),f=t+c,h=i+u,p=1^l,d=l?o-s:s-o;if(a&lt;0)throw new Error(&quot;negative radius: &quot;+a);null===this._x1?this._+=&quot;M&quot;+f+&quot;,&quot;+h:(Math.abs(this._x1-f)&gt;1e-6||Math.abs(this._y1-h)&gt;1e-6)&amp;&amp;(this._+=&quot;L&quot;+f+&quot;,&quot;+h),a&amp;&amp;(d&lt;0&amp;&amp;(d=d%r+r),d&gt;n?this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,1,&quot;+p+&quot;,&quot;+(t-c)+&quot;,&quot;+(i-u)+&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,1,&quot;+p+&quot;,&quot;+(this._x1=f)+&quot;,&quot;+(this._y1=h):d&gt;1e-6&amp;&amp;(this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,&quot;+ +(d&gt;=e)+&quot;,&quot;+p+&quot;,&quot;+(this._x1=t+a*Math.cos(s))+&quot;,&quot;+(this._y1=i+a*Math.sin(s))))},rect:function(t,e,r,n){this._+=&quot;M&quot;+(this._x0=this._x1=+t)+&quot;,&quot;+(this._y0=this._y1=+e)+&quot;h&quot;+ +r+&quot;v&quot;+ +n+&quot;h&quot;+-r+&quot;Z&quot;},toString:function(){return this._}},t.path=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],118:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var i,a,o,s,l,c,u,f,h,p=t._root,d={data:n},m=t._x0,g=t._y0,v=t._x1,y=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((c=e&gt;=(a=(m+v)/2))?m=a:v=a,(u=r&gt;=(o=(g+y)/2))?g=o:y=o,i=p,!(p=p[f=u&lt;&lt;1|c]))return i[f]=d,t;if(s=+t._x.call(null,p.data),l=+t._y.call(null,p.data),e===s&amp;&amp;r===l)return d.next=p,i?i[f]=d:t._root=d,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(c=e&gt;=(a=(m+v)/2))?m=a:v=a,(u=r&gt;=(o=(g+y)/2))?g=o:y=o}while((f=u&lt;&lt;1|c)==(h=(l&gt;=o)&lt;&lt;1|s&gt;=a));return i[h]=p,i[f]=d,t}function r(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i}function n(t){return t[0]}function i(t){return t[1]}function a(t,e,r){var a=new o(null==e?n:e,null==r?i:r,NaN,NaN,NaN,NaN);return null==t?a:a.addAll(t)}function o(t,e,r,n,i,a){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function s(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var l=a.prototype=o.prototype;l.copy=function(){var t,e,r=new o(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=s(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var i=0;i&lt;4;++i)(e=n.source[i])&amp;&amp;(e.length?t.push({source:e,target:n.target[i]=new Array(4)}):n.target[i]=s(e));return r},l.add=function(t){var r=+this._x.call(null,t),n=+this._y.call(null,t);return e(this.cover(r,n),r,n,t)},l.addAll=function(t){var r,n,i,a,o=t.length,s=new Array(o),l=new Array(o),c=1/0,u=1/0,f=-1/0,h=-1/0;for(n=0;n&lt;o;++n)isNaN(i=+this._x.call(null,r=t[n]))||isNaN(a=+this._y.call(null,r))||(s[n]=i,l[n]=a,i&lt;c&amp;&amp;(c=i),i&gt;f&amp;&amp;(f=i),a&lt;u&amp;&amp;(u=a),a&gt;h&amp;&amp;(h=a));if(c&gt;f||u&gt;h)return this;for(this.cover(c,u).cover(f,h),n=0;n&lt;o;++n)e(this,s[n],l[n],t[n]);return this},l.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,n=this._y0,i=this._x1,a=this._y1;if(isNaN(r))i=(r=Math.floor(t))+1,a=(n=Math.floor(e))+1;else{for(var o,s,l=i-r,c=this._root;r&gt;t||t&gt;=i||n&gt;e||e&gt;=a;)switch(s=(e&lt;n)&lt;&lt;1|t&lt;r,(o=new Array(4))[s]=c,c=o,l*=2,s){case 0:i=r+l,a=n+l;break;case 1:r=i-l,a=n+l;break;case 2:i=r+l,n=a-l;break;case 3:r=i-l,n=a-l}this._root&amp;&amp;this._root.length&amp;&amp;(this._root=c)}return this._x0=r,this._y0=n,this._x1=i,this._y1=a,this},l.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},l.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},l.find=function(t,e,n){var i,a,o,s,l,c,u,f=this._x0,h=this._y0,p=this._x1,d=this._y1,m=[],g=this._root;for(g&amp;&amp;m.push(new r(g,f,h,p,d)),null==n?n=1/0:(f=t-n,h=e-n,p=t+n,d=e+n,n*=n);c=m.pop();)if(!(!(g=c.node)||(a=c.x0)&gt;p||(o=c.y0)&gt;d||(s=c.x1)&lt;f||(l=c.y1)&lt;h))if(g.length){var v=(a+s)/2,y=(o+l)/2;m.push(new r(g[3],v,y,s,l),new r(g[2],a,y,v,l),new r(g[1],v,o,s,y),new r(g[0],a,o,v,y)),(u=(e&gt;=y)&lt;&lt;1|t&gt;=v)&amp;&amp;(c=m[m.length-1],m[m.length-1]=m[m.length-1-u],m[m.length-1-u]=c)}else{var x=t-+this._x.call(null,g.data),b=e-+this._y.call(null,g.data),_=x*x+b*b;if(_&lt;n){var w=Math.sqrt(n=_);f=t-w,h=e-w,p=t+w,d=e+w,i=g.data}}return i},l.remove=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,r,n,i,a,o,s,l,c,u,f,h,p=this._root,d=this._x0,m=this._y0,g=this._x1,v=this._y1;if(!p)return this;if(p.length)for(;;){if((c=a&gt;=(s=(d+g)/2))?d=s:g=s,(u=o&gt;=(l=(m+v)/2))?m=l:v=l,e=p,!(p=p[f=u&lt;&lt;1|c]))return this;if(!p.length)break;(e[f+1&amp;3]||e[f+2&amp;3]||e[f+3&amp;3])&amp;&amp;(r=e,h=f)}for(;p.data!==t;)if(n=p,!(p=p.next))return this;return(i=p.next)&amp;&amp;delete p.next,n?(i?n.next=i:delete n.next,this):e?(i?e[f]=i:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&amp;&amp;p===(e[3]||e[2]||e[1]||e[0])&amp;&amp;!p.length&amp;&amp;(r?r[h]=p:this._root=p),this):(this._root=i,this)},l.removeAll=function(t){for(var e=0,r=t.length;e&lt;r;++e)this.remove(t[e]);return this},l.root=function(){return this._root},l.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},l.visit=function(t){var e,n,i,a,o,s,l=[],c=this._root;for(c&amp;&amp;l.push(new r(c,this._x0,this._y0,this._x1,this._y1));e=l.pop();)if(!t(c=e.node,i=e.x0,a=e.y0,o=e.x1,s=e.y1)&amp;&amp;c.length){var u=(i+o)/2,f=(a+s)/2;(n=c[3])&amp;&amp;l.push(new r(n,u,f,o,s)),(n=c[2])&amp;&amp;l.push(new r(n,i,f,u,s)),(n=c[1])&amp;&amp;l.push(new r(n,u,a,o,f)),(n=c[0])&amp;&amp;l.push(new r(n,i,a,u,f))}return this},l.visitAfter=function(t){var e,n=[],i=[];for(this._root&amp;&amp;n.push(new r(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var a=e.node;if(a.length){var o,s=e.x0,l=e.y0,c=e.x1,u=e.y1,f=(s+c)/2,h=(l+u)/2;(o=a[0])&amp;&amp;n.push(new r(o,s,l,f,h)),(o=a[1])&amp;&amp;n.push(new r(o,f,l,c,h)),(o=a[2])&amp;&amp;n.push(new r(o,s,h,f,u)),(o=a[3])&amp;&amp;n.push(new r(o,f,h,c,u))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},l.x=function(t){return arguments.length?(this._x=t,this):this._x},l.y=function(t){return arguments.length?(this._y=t,this):this._y},t.quadtree=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],119:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-path&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t){return function(){return t}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,c=Math.sqrt,u=Math.PI,f=u/2,h=2*u;function p(t){return t&gt;1?0:t&lt;-1?u:Math.acos(t)}function d(t){return t&gt;=1?f:t&lt;=-1?-f:Math.asin(t)}function m(t){return t.innerRadius}function g(t){return t.outerRadius}function v(t){return t.startAngle}function y(t){return t.endAngle}function x(t){return t&amp;&amp;t.padAngle}function b(t,e,r,n,i,a,o,s){var l=r-t,c=n-e,u=o-i,f=s-a,h=f*l-u*c;if(!(h*h&lt;1e-12))return[t+(h=(u*(e-a)-f*(t-i))/h)*l,e+h*c]}function _(t,e,r,n,i,a,s){var l=t-r,u=e-n,f=(s?a:-a)/c(l*l+u*u),h=f*u,p=-f*l,d=t+h,m=e+p,g=r+h,v=n+p,y=(d+g)/2,x=(m+v)/2,b=g-d,_=v-m,w=b*b+_*_,T=i-a,k=d*v-g*m,A=(_&lt;0?-1:1)*c(o(0,T*T*w-k*k)),M=(k*_-b*A)/w,S=(-k*b-_*A)/w,E=(k*_+b*A)/w,L=(-k*b+_*A)/w,C=M-y,P=S-x,I=E-y,O=L-x;return C*C+P*P&gt;I*I+O*O&amp;&amp;(M=E,S=L),{cx:M,cy:S,x01:-h,y01:-p,x11:M*(i/T-1),y11:S*(i/T-1)}}function w(t){this._context=t}function T(t){return new w(t)}function k(t){return t[0]}function A(t){return t[1]}function M(){var t=k,n=A,i=r(!0),a=null,o=T,s=null;function l(r){var l,c,u,f=r.length,h=!1;for(null==a&amp;&amp;(s=o(u=e.path())),l=0;l&lt;=f;++l)!(l&lt;f&amp;&amp;i(c=r[l],l,r))===h&amp;&amp;((h=!h)?s.lineStart():s.lineEnd()),h&amp;&amp;s.point(+t(c,l,r),+n(c,l,r));if(u)return s=null,u+&quot;&quot;||null}return l.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),l):t},l.y=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:r(+t),l):n},l.defined=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(!!t),l):i},l.curve=function(t){return arguments.length?(o=t,null!=a&amp;&amp;(s=o(a)),l):o},l.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),l):a},l}function S(){var t=k,n=null,i=r(0),a=A,o=r(!0),s=null,l=T,c=null;function u(r){var u,f,h,p,d,m=r.length,g=!1,v=new Array(m),y=new Array(m);for(null==s&amp;&amp;(c=l(d=e.path())),u=0;u&lt;=m;++u){if(!(u&lt;m&amp;&amp;o(p=r[u],u,r))===g)if(g=!g)f=u,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),h=u-1;h&gt;=f;--h)c.point(v[h],y[h]);c.lineEnd(),c.areaEnd()}g&amp;&amp;(v[u]=+t(p,u,r),y[u]=+i(p,u,r),c.point(n?+n(p,u,r):v[u],a?+a(p,u,r):y[u]))}if(d)return c=null,d+&quot;&quot;||null}function f(){return M().defined(o).curve(l).context(s)}return u.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),n=null,u):t},u.x0=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),u):t},u.x1=function(t){return arguments.length?(n=null==t?null:&quot;function&quot;==typeof t?t:r(+t),u):n},u.y=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),a=null,u):i},u.y0=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),u):i},u.y1=function(t){return arguments.length?(a=null==t?null:&quot;function&quot;==typeof t?t:r(+t),u):a},u.lineX0=u.lineY0=function(){return f().x(t).y(i)},u.lineY1=function(){return f().x(t).y(a)},u.lineX1=function(){return f().x(n).y(i)},u.defined=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(!!t),u):o},u.curve=function(t){return arguments.length?(l=t,null!=s&amp;&amp;(c=l(s)),u):l},u.context=function(t){return arguments.length?(null==t?s=c=null:c=l(s=t),u):s},u}function E(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN}function L(t){return t}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var C=I(T);function P(t){this._curve=t}function I(t){function e(e){return new P(t(e))}return e._curve=t,e}function O(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(I(t)):e()._curve},t}function z(){return O(M().curve(C))}function D(){var t=S().curve(C),e=t.curve,r=t.lineX0,n=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return O(r())},delete t.lineX0,t.lineEndAngle=function(){return O(n())},delete t.lineX1,t.lineInnerRadius=function(){return O(i())},delete t.lineY0,t.lineOuterRadius=function(){return O(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(I(t)):e()._curve},t}function R(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}P.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var F=Array.prototype.slice;function B(t){return t.source}function N(t){return t.target}function j(t){var n=B,i=N,a=k,o=A,s=null;function l(){var r,l=F.call(arguments),c=n.apply(this,l),u=i.apply(this,l);if(s||(s=r=e.path()),t(s,+a.apply(this,(l[0]=c,l)),+o.apply(this,l),+a.apply(this,(l[0]=u,l)),+o.apply(this,l)),r)return s=null,r+&quot;&quot;||null}return l.source=function(t){return arguments.length?(n=t,l):n},l.target=function(t){return arguments.length?(i=t,l):i},l.x=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:r(+t),l):a},l.y=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),l):o},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function U(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,i,n,i)}function V(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e,r=(r+i)/2,n,r,n,i)}function H(t,e,r,n,i){var a=R(e,r),o=R(e,r=(r+i)/2),s=R(n,r),l=R(n,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}var q={draw:function(t,e){var r=Math.sqrt(e/u);t.moveTo(r,0),t.arc(0,0,r,0,h)}},G={draw:function(t,e){var r=Math.sqrt(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Y=Math.sqrt(1/3),W=2*Y,X={draw:function(t,e){var r=Math.sqrt(e/W),n=r*Y;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Z=Math.sin(u/10)/Math.sin(7*u/10),J=Math.sin(h/10)*Z,K=-Math.cos(h/10)*Z,Q={draw:function(t,e){var r=Math.sqrt(.8908130915292852*e),n=J*r,i=K*r;t.moveTo(0,-r),t.lineTo(n,i);for(var a=1;a&lt;5;++a){var o=h*a/5,s=Math.cos(o),l=Math.sin(o);t.lineTo(l*r,-s*r),t.lineTo(s*n-l*i,l*n+s*i)}t.closePath()}},$={draw:function(t,e){var r=Math.sqrt(e),n=-r/2;t.rect(n,n,r,r)}},tt=Math.sqrt(3),et={draw:function(t,e){var r=-Math.sqrt(e/(3*tt));t.moveTo(0,2*r),t.lineTo(-tt*r,-r),t.lineTo(tt*r,-r),t.closePath()}},rt=-.5,nt=Math.sqrt(3)/2,it=1/Math.sqrt(12),at=3*(it/2+1),ot={draw:function(t,e){var r=Math.sqrt(e/at),n=r/2,i=r*it,a=n,o=r*it+r,s=-a,l=o;t.moveTo(n,i),t.lineTo(a,o),t.lineTo(s,l),t.lineTo(rt*n-nt*i,nt*n+rt*i),t.lineTo(rt*a-nt*o,nt*a+rt*o),t.lineTo(rt*s-nt*l,nt*s+rt*l),t.lineTo(rt*n+nt*i,rt*i-nt*n),t.lineTo(rt*a+nt*o,rt*o-nt*a),t.lineTo(rt*s+nt*l,rt*l-nt*s),t.closePath()}},st=[q,G,X,$,Q,et,ot];function lt(){}function ct(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function ut(t){this._context=t}function ft(t){this._context=t}function ht(t){this._context=t}function pt(t,e){this._basis=new ut(t),this._beta=e}ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ct(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ft.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},pt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r&gt;0)for(var n,i=t[0],a=e[0],o=t[r]-i,s=e[r]-a,l=-1;++l&lt;=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+n*o),this._beta*e[l]+(1-this._beta)*(a+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var dt=function t(e){function r(t){return 1===e?new ut(t):new pt(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function mt(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function gt(t,e){this._context=t,this._k=(1-e)/6}gt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:mt(this,this._x1,this._y1)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:mt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var vt=function t(e){function r(t){return new gt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function yt(t,e){this._context=t,this._k=(1-e)/6}yt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:mt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var xt=function t(e){function r(t){return new yt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function bt(t,e){this._context=t,this._k=(1-e)/6}bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:mt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var _t=function t(e){function r(t){return new bt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function wt(t,e,r){var n=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a&gt;1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a&gt;1e-12){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(n,i,a,o,t._x2,t._y2)}function Tt(t,e){this._context=t,this._alpha=e}Tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var kt=function t(e){function r(t){return e?new Tt(t,e):new gt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function At(t,e){this._context=t,this._alpha=e}At.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Mt=function t(e){function r(t){return e?new At(t,e):new yt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function St(t,e){this._context=t,this._alpha=e}St.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Et=function t(e){function r(t){return e?new St(t,e):new bt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Lt(t){this._context=t}function Ct(t){return t&lt;0?-1:1}function Pt(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i&lt;0&amp;&amp;-0),o=(r-t._y1)/(i||n&lt;0&amp;&amp;-0),s=(a*i+o*n)/(n+i);return(Ct(a)+Ct(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function It(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function Ot(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-n)/3;t._context.bezierCurveTo(n+s,i+s*e,a-s,o-s*r,a,o)}function zt(t){this._context=t}function Dt(t){this._context=new Rt(t)}function Rt(t){this._context=t}function Ft(t){this._context=t}function Bt(t){var e,r,n=t.length-1,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e&lt;n-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e&lt;n;++e)r=i[e]/a[e-1],a[e]-=r,o[e]-=r*o[e-1];for(i[n-1]=o[n-1]/a[n-1],e=n-2;e&gt;=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[n-1]=(t[n]+i[n-1])/2,e=0;e&lt;n-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function Nt(t,e){this._context=t,this._t=e}function jt(t,e){if((i=t.length)&gt;1)for(var r,n,i,a=1,o=t[e[0]],s=o.length;a&lt;i;++a)for(n=o,o=t[e[a]],r=0;r&lt;s;++r)o[r][1]+=o[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Ut(t){for(var e=t.length,r=new Array(e);--e&gt;=0;)r[e]=e;return r}function Vt(t,e){return t[e]}function Ht(t){var e=t.map(qt);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function qt(t){for(var e,r=-1,n=0,i=t.length,a=-1/0;++r&lt;i;)(e=+t[r][1])&gt;a&amp;&amp;(a=e,n=r);return n}function Gt(t){var e=t.map(Yt);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function Yt(t){for(var e,r=0,n=-1,i=t.length;++n&lt;i;)(e=+t[n][1])&amp;&amp;(r+=e);return r}Lt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._point=0},lineEnd:function(){this._point&amp;&amp;this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},zt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ot(this,this._t0,It(this,this._t0))}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Ot(this,It(this,r=Pt(this,t,e)),r);break;default:Ot(this,this._t0,r=Pt(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Dt.prototype=Object.create(zt.prototype)).point=function(t,e){zt.prototype.point.call(this,e,t)},Rt.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}},Ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=Bt(t),i=Bt(e),a=0,o=1;o&lt;r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&amp;&amp;1===r)&amp;&amp;this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Nt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0&lt;this._t&amp;&amp;this._t&lt;1&amp;&amp;2===this._point&amp;&amp;this._context.lineTo(this._x,this._y),(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line&gt;=0&amp;&amp;(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t&lt;=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},t.arc=function(){var t=m,o=g,w=r(0),T=null,k=v,A=y,M=x,S=null;function E(){var r,m,g=+t.apply(this,arguments),v=+o.apply(this,arguments),y=k.apply(this,arguments)-f,x=A.apply(this,arguments)-f,E=n(x-y),L=x&gt;y;if(S||(S=r=e.path()),v&lt;g&amp;&amp;(m=v,v=g,g=m),v&gt;1e-12)if(E&gt;h-1e-12)S.moveTo(v*a(y),v*l(y)),S.arc(0,0,v,y,x,!L),g&gt;1e-12&amp;&amp;(S.moveTo(g*a(x),g*l(x)),S.arc(0,0,g,x,y,L));else{var C,P,I=y,O=x,z=y,D=x,R=E,F=E,B=M.apply(this,arguments)/2,N=B&gt;1e-12&amp;&amp;(T?+T.apply(this,arguments):c(g*g+v*v)),j=s(n(v-g)/2,+w.apply(this,arguments)),U=j,V=j;if(N&gt;1e-12){var H=d(N/g*l(B)),q=d(N/v*l(B));(R-=2*H)&gt;1e-12?(z+=H*=L?1:-1,D-=H):(R=0,z=D=(y+x)/2),(F-=2*q)&gt;1e-12?(I+=q*=L?1:-1,O-=q):(F=0,I=O=(y+x)/2)}var G=v*a(I),Y=v*l(I),W=g*a(D),X=g*l(D);if(j&gt;1e-12){var Z,J=v*a(O),K=v*l(O),Q=g*a(z),$=g*l(z);if(E&lt;u&amp;&amp;(Z=b(G,Y,Q,$,J,K,W,X))){var tt=G-Z[0],et=Y-Z[1],rt=J-Z[0],nt=K-Z[1],it=1/l(p((tt*rt+et*nt)/(c(tt*tt+et*et)*c(rt*rt+nt*nt)))/2),at=c(Z[0]*Z[0]+Z[1]*Z[1]);U=s(j,(g-at)/(it-1)),V=s(j,(v-at)/(it+1))}}F&gt;1e-12?V&gt;1e-12?(C=_(Q,$,G,Y,v,V,L),P=_(J,K,W,X,v,V,L),S.moveTo(C.cx+C.x01,C.cy+C.y01),V&lt;j?S.arc(C.cx,C.cy,V,i(C.y01,C.x01),i(P.y01,P.x01),!L):(S.arc(C.cx,C.cy,V,i(C.y01,C.x01),i(C.y11,C.x11),!L),S.arc(0,0,v,i(C.cy+C.y11,C.cx+C.x11),i(P.cy+P.y11,P.cx+P.x11),!L),S.arc(P.cx,P.cy,V,i(P.y11,P.x11),i(P.y01,P.x01),!L))):(S.moveTo(G,Y),S.arc(0,0,v,I,O,!L)):S.moveTo(G,Y),g&gt;1e-12&amp;&amp;R&gt;1e-12?U&gt;1e-12?(C=_(W,X,J,K,g,-U,L),P=_(G,Y,Q,$,g,-U,L),S.lineTo(C.cx+C.x01,C.cy+C.y01),U&lt;j?S.arc(C.cx,C.cy,U,i(C.y01,C.x01),i(P.y01,P.x01),!L):(S.arc(C.cx,C.cy,U,i(C.y01,C.x01),i(C.y11,C.x11),!L),S.arc(0,0,g,i(C.cy+C.y11,C.cx+C.x11),i(P.cy+P.y11,P.cx+P.x11),L),S.arc(P.cx,P.cy,U,i(P.y11,P.x11),i(P.y01,P.x01),!L))):S.arc(0,0,g,D,z,L):S.lineTo(W,X)}else S.moveTo(0,0);if(S.closePath(),r)return S=null,r+&quot;&quot;||null}return E.centroid=function(){var e=(+t.apply(this,arguments)+ +o.apply(this,arguments))/2,r=(+k.apply(this,arguments)+ +A.apply(this,arguments))/2-u/2;return[a(r)*e,l(r)*e]},E.innerRadius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),E):t},E.outerRadius=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),E):o},E.cornerRadius=function(t){return arguments.length?(w=&quot;function&quot;==typeof t?t:r(+t),E):w},E.padRadius=function(t){return arguments.length?(T=null==t?null:&quot;function&quot;==typeof t?t:r(+t),E):T},E.startAngle=function(t){return arguments.length?(k=&quot;function&quot;==typeof t?t:r(+t),E):k},E.endAngle=function(t){return arguments.length?(A=&quot;function&quot;==typeof t?t:r(+t),E):A},E.padAngle=function(t){return arguments.length?(M=&quot;function&quot;==typeof t?t:r(+t),E):M},E.context=function(t){return arguments.length?(S=null==t?null:t,E):S},E},t.area=S,t.areaRadial=D,t.curveBasis=function(t){return new ut(t)},t.curveBasisClosed=function(t){return new ft(t)},t.curveBasisOpen=function(t){return new ht(t)},t.curveBundle=dt,t.curveCardinal=vt,t.curveCardinalClosed=xt,t.curveCardinalOpen=_t,t.curveCatmullRom=kt,t.curveCatmullRomClosed=Mt,t.curveCatmullRomOpen=Et,t.curveLinear=T,t.curveLinearClosed=function(t){return new Lt(t)},t.curveMonotoneX=function(t){return new zt(t)},t.curveMonotoneY=function(t){return new Dt(t)},t.curveNatural=function(t){return new Ft(t)},t.curveStep=function(t){return new Nt(t,.5)},t.curveStepAfter=function(t){return new Nt(t,1)},t.curveStepBefore=function(t){return new Nt(t,0)},t.line=M,t.lineRadial=z,t.linkHorizontal=function(){return j(U)},t.linkRadial=function(){var t=j(H);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},t.linkVertical=function(){return j(V)},t.pie=function(){var t=L,e=E,n=null,i=r(0),a=r(h),o=r(0);function s(r){var s,l,c,u,f,p=r.length,d=0,m=new Array(p),g=new Array(p),v=+i.apply(this,arguments),y=Math.min(h,Math.max(-h,a.apply(this,arguments)-v)),x=Math.min(Math.abs(y)/p,o.apply(this,arguments)),b=x*(y&lt;0?-1:1);for(s=0;s&lt;p;++s)(f=g[m[s]=s]=+t(r[s],s,r))&gt;0&amp;&amp;(d+=f);for(null!=e?m.sort((function(t,r){return e(g[t],g[r])})):null!=n&amp;&amp;m.sort((function(t,e){return n(r[t],r[e])})),s=0,c=d?(y-p*b)/d:0;s&lt;p;++s,v=u)l=m[s],u=v+((f=g[l])&gt;0?f*c:0)+b,g[l]={data:r[l],index:s,value:f,startAngle:v,endAngle:u,padAngle:x};return g}return s.value=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),s):i},s.endAngle=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:r(+t),s):a},s.padAngle=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),s):o},s},t.pointRadial=R,t.radialArea=D,t.radialLine=z,t.stack=function(){var t=r([]),e=Ut,n=jt,i=Vt;function a(r){var a,o,s=t.apply(this,arguments),l=r.length,c=s.length,u=new Array(c);for(a=0;a&lt;c;++a){for(var f,h=s[a],p=u[a]=new Array(l),d=0;d&lt;l;++d)p[d]=f=[0,+i(r[d],h,d,r)],f.data=r[d];p.key=h}for(a=0,o=e(u);a&lt;c;++a)u[o[a]].index=a;return n(u,o),u}return a.keys=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(F.call(e)),a):t},a.value=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),a):i},a.order=function(t){return arguments.length?(e=null==t?Ut:&quot;function&quot;==typeof t?t:r(F.call(t)),a):e},a.offset=function(t){return arguments.length?(n=null==t?jt:t,a):n},a},t.stackOffsetDiverging=function(t,e){if((s=t.length)&gt;0)for(var r,n,i,a,o,s,l=0,c=t[e[0]].length;l&lt;c;++l)for(a=o=0,r=0;r&lt;s;++r)(i=(n=t[e[r]][l])[1]-n[0])&gt;0?(n[0]=a,n[1]=a+=i):i&lt;0?(n[1]=o,n[0]=o+=i):(n[0]=0,n[1]=i)},t.stackOffsetExpand=function(t,e){if((n=t.length)&gt;0){for(var r,n,i,a=0,o=t[0].length;a&lt;o;++a){for(i=r=0;r&lt;n;++r)i+=t[r][a][1]||0;if(i)for(r=0;r&lt;n;++r)t[r][a][1]/=i}jt(t,e)}},t.stackOffsetNone=jt,t.stackOffsetSilhouette=function(t,e){if((r=t.length)&gt;0){for(var r,n=0,i=t[e[0]],a=i.length;n&lt;a;++n){for(var o=0,s=0;o&lt;r;++o)s+=t[o][n][1]||0;i[n][1]+=i[n][0]=-s/2}jt(t,e)}},t.stackOffsetWiggle=function(t,e){if((i=t.length)&gt;0&amp;&amp;(n=(r=t[e[0]]).length)&gt;0){for(var r,n,i,a=0,o=1;o&lt;n;++o){for(var s=0,l=0,c=0;s&lt;i;++s){for(var u=t[e[s]],f=u[o][1]||0,h=(f-(u[o-1][1]||0))/2,p=0;p&lt;s;++p){var d=t[e[p]];h+=(d[o][1]||0)-(d[o-1][1]||0)}l+=f,c+=h*f}r[o-1][1]+=r[o-1][0]=a,l&amp;&amp;(a-=c/l)}r[o-1][1]+=r[o-1][0]=a,jt(t,e)}},t.stackOrderAppearance=Ht,t.stackOrderAscending=Gt,t.stackOrderDescending=function(t){return Gt(t).reverse()},t.stackOrderInsideOut=function(t){var e,r,n=t.length,i=t.map(Yt),a=Ht(t),o=0,s=0,l=[],c=[];for(e=0;e&lt;n;++e)r=a[e],o&lt;s?(o+=i[r],l.push(r)):(s+=i[r],c.push(r));return c.reverse().concat(l)},t.stackOrderNone=Ut,t.stackOrderReverse=function(t){return Ut(t).reverse()},t.symbol=function(){var t=r(q),n=r(64),i=null;function a(){var r;if(i||(i=r=e.path()),t.apply(this,arguments).draw(i,+n.apply(this,arguments)),r)return i=null,r+&quot;&quot;||null}return a.type=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(e),a):t},a.size=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:r(+t),a):n},a.context=function(t){return arguments.length?(i=null==t?null:t,a):i},a},t.symbolCircle=q,t.symbolCross=G,t.symbolDiamond=X,t.symbolSquare=$,t.symbolStar=Q,t.symbolTriangle=et,t.symbolWye=ot,t.symbols=st,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-path&quot;:117}],120:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?i(r,t(&quot;d3-time&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t){if(0&lt;=t.y&amp;&amp;t.y&lt;100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function n(t){if(0&lt;=t.y&amp;&amp;t.y&lt;100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function i(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function a(t){var a=t.dateTime,o=t.date,l=t.time,c=t.periods,u=t.days,f=t.shortDays,h=t.months,yt=t.shortMonths,xt=p(c),bt=d(c),_t=p(u),wt=d(u),Tt=p(f),kt=d(f),At=p(h),Mt=d(h),St=p(yt),Et=d(yt),Lt={a:function(t){return f[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return yt[t.getMonth()]},B:function(t){return h[t.getMonth()]},c:null,d:D,e:D,f:j,H:R,I:F,j:B,L:N,m:U,M:V,p:function(t){return c[+(t.getHours()&gt;=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:gt,s:vt,S:H,u:q,U:G,V:Y,w:W,W:X,x:null,X:null,y:Z,Y:J,Z:K,&quot;%&quot;:mt},Ct={a:function(t){return f[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return yt[t.getUTCMonth()]},B:function(t){return h[t.getUTCMonth()]},c:null,d:Q,e:Q,f:nt,H:$,I:tt,j:et,L:rt,m:it,M:at,p:function(t){return c[+(t.getUTCHours()&gt;=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:gt,s:vt,S:ot,u:st,U:lt,V:ct,w:ut,W:ft,x:null,X:null,y:ht,Y:pt,Z:dt,&quot;%&quot;:mt},Pt={a:function(t,e,r){var n=Tt.exec(e.slice(r));return n?(t.w=kt[n[0].toLowerCase()],r+n[0].length):-1},A:function(t,e,r){var n=_t.exec(e.slice(r));return n?(t.w=wt[n[0].toLowerCase()],r+n[0].length):-1},b:function(t,e,r){var n=St.exec(e.slice(r));return n?(t.m=Et[n[0].toLowerCase()],r+n[0].length):-1},B:function(t,e,r){var n=At.exec(e.slice(r));return n?(t.m=Mt[n[0].toLowerCase()],r+n[0].length):-1},c:function(t,e,r){return zt(t,a,e,r)},d:A,e:A,f:P,H:S,I:S,j:M,L:C,m:k,M:E,p:function(t,e,r){var n=xt.exec(e.slice(r));return n?(t.p=bt[n[0].toLowerCase()],r+n[0].length):-1},q:T,Q:O,s:z,S:L,u:g,U:v,V:y,w:m,W:x,x:function(t,e,r){return zt(t,o,e,r)},X:function(t,e,r){return zt(t,l,e,r)},y:_,Y:b,Z:w,&quot;%&quot;:I};function It(t,e){return function(r){var n,i,a,o=[],l=-1,c=0,u=t.length;for(r instanceof Date||(r=new Date(+r));++l&lt;u;)37===t.charCodeAt(l)&amp;&amp;(o.push(t.slice(c,l)),null!=(i=s[n=t.charAt(++l)])?n=t.charAt(++l):i=&quot;e&quot;===n?&quot; &quot;:&quot;0&quot;,(a=e[n])&amp;&amp;(n=a(r,i)),o.push(n),c=l+1);return o.push(t.slice(c,l)),o.join(&quot;&quot;)}}function Ot(t,a){return function(o){var s,l,c=i(1900,void 0,1);if(zt(c,t,o+=&quot;&quot;,0)!=o.length)return null;if(&quot;Q&quot;in c)return new Date(c.Q);if(&quot;s&quot;in c)return new Date(1e3*c.s+(&quot;L&quot;in c?c.L:0));if(a&amp;&amp;!(&quot;Z&quot;in c)&amp;&amp;(c.Z=0),&quot;p&quot;in c&amp;&amp;(c.H=c.H%12+12*c.p),void 0===c.m&amp;&amp;(c.m=&quot;q&quot;in c?c.q:0),&quot;V&quot;in c){if(c.V&lt;1||c.V&gt;53)return null;&quot;w&quot;in c||(c.w=1),&quot;Z&quot;in c?(l=(s=n(i(c.y,0,1))).getUTCDay(),s=l&gt;4||0===l?e.utcMonday.ceil(s):e.utcMonday(s),s=e.utcDay.offset(s,7*(c.V-1)),c.y=s.getUTCFullYear(),c.m=s.getUTCMonth(),c.d=s.getUTCDate()+(c.w+6)%7):(l=(s=r(i(c.y,0,1))).getDay(),s=l&gt;4||0===l?e.timeMonday.ceil(s):e.timeMonday(s),s=e.timeDay.offset(s,7*(c.V-1)),c.y=s.getFullYear(),c.m=s.getMonth(),c.d=s.getDate()+(c.w+6)%7)}else(&quot;W&quot;in c||&quot;U&quot;in c)&amp;&amp;(&quot;w&quot;in c||(c.w=&quot;u&quot;in c?c.u%7:&quot;W&quot;in c?1:0),l=&quot;Z&quot;in c?n(i(c.y,0,1)).getUTCDay():r(i(c.y,0,1)).getDay(),c.m=0,c.d=&quot;W&quot;in c?(c.w+6)%7+7*c.W-(l+5)%7:c.w+7*c.U-(l+6)%7);return&quot;Z&quot;in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,n(c)):r(c)}}function zt(t,e,r,n){for(var i,a,o=0,l=e.length,c=r.length;o&lt;l;){if(n&gt;=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=Pt[i in s?e.charAt(o++):i])||(n=a(t,r,n))&lt;0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return Lt.x=It(o,Lt),Lt.X=It(l,Lt),Lt.c=It(a,Lt),Ct.x=It(o,Ct),Ct.X=It(l,Ct),Ct.c=It(a,Ct),{format:function(t){var e=It(t+=&quot;&quot;,Lt);return e.toString=function(){return t},e},parse:function(t){var e=Ot(t+=&quot;&quot;,!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=It(t+=&quot;&quot;,Ct);return e.toString=function(){return t},e},utcParse:function(t){var e=Ot(t+=&quot;&quot;,!0);return e.toString=function(){return t},e}}}var o,s={&quot;-&quot;:&quot;&quot;,_:&quot; &quot;,0:&quot;0&quot;},l=/^\s*\d+/,c=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(t,e,r){var n=t&lt;0?&quot;-&quot;:&quot;&quot;,i=(n?-t:t)+&quot;&quot;,a=i.length;return n+(a&lt;r?new Array(r-a+1).join(e)+i:i)}function h(t){return t.replace(u,&quot;\\$&amp;&quot;)}function p(t){return new RegExp(&quot;^(?:&quot;+t.map(h).join(&quot;|&quot;)+&quot;)&quot;,&quot;i&quot;)}function d(t){for(var e={},r=-1,n=t.length;++r&lt;n;)e[t[r].toLowerCase()]=r;return e}function m(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function g(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function v(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function y(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function x(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function b(t,e,r){var n=l.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function _(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]&gt;68?1900:2e3),r+n[0].length):-1}function w(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||&quot;00&quot;)),r+n[0].length):-1}function T(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function k(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function A(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function M(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function S(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function E(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function L(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function C(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function P(t,e,r){var n=l.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function I(t,e,r){var n=c.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function O(t,e,r){var n=l.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function z(t,e,r){var n=l.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function D(t,e){return f(t.getDate(),e,2)}function R(t,e){return f(t.getHours(),e,2)}function F(t,e){return f(t.getHours()%12||12,e,2)}function B(t,r){return f(1+e.timeDay.count(e.timeYear(t),t),r,3)}function N(t,e){return f(t.getMilliseconds(),e,3)}function j(t,e){return N(t,e)+&quot;000&quot;}function U(t,e){return f(t.getMonth()+1,e,2)}function V(t,e){return f(t.getMinutes(),e,2)}function H(t,e){return f(t.getSeconds(),e,2)}function q(t){var e=t.getDay();return 0===e?7:e}function G(t,r){return f(e.timeSunday.count(e.timeYear(t)-1,t),r,2)}function Y(t,r){var n=t.getDay();return t=n&gt;=4||0===n?e.timeThursday(t):e.timeThursday.ceil(t),f(e.timeThursday.count(e.timeYear(t),t)+(4===e.timeYear(t).getDay()),r,2)}function W(t){return t.getDay()}function X(t,r){return f(e.timeMonday.count(e.timeYear(t)-1,t),r,2)}function Z(t,e){return f(t.getFullYear()%100,e,2)}function J(t,e){return f(t.getFullYear()%1e4,e,4)}function K(t){var e=t.getTimezoneOffset();return(e&gt;0?&quot;-&quot;:(e*=-1,&quot;+&quot;))+f(e/60|0,&quot;0&quot;,2)+f(e%60,&quot;0&quot;,2)}function Q(t,e){return f(t.getUTCDate(),e,2)}function $(t,e){return f(t.getUTCHours(),e,2)}function tt(t,e){return f(t.getUTCHours()%12||12,e,2)}function et(t,r){return f(1+e.utcDay.count(e.utcYear(t),t),r,3)}function rt(t,e){return f(t.getUTCMilliseconds(),e,3)}function nt(t,e){return rt(t,e)+&quot;000&quot;}function it(t,e){return f(t.getUTCMonth()+1,e,2)}function at(t,e){return f(t.getUTCMinutes(),e,2)}function ot(t,e){return f(t.getUTCSeconds(),e,2)}function st(t){var e=t.getUTCDay();return 0===e?7:e}function lt(t,r){return f(e.utcSunday.count(e.utcYear(t)-1,t),r,2)}function ct(t,r){var n=t.getUTCDay();return t=n&gt;=4||0===n?e.utcThursday(t):e.utcThursday.ceil(t),f(e.utcThursday.count(e.utcYear(t),t)+(4===e.utcYear(t).getUTCDay()),r,2)}function ut(t){return t.getUTCDay()}function ft(t,r){return f(e.utcMonday.count(e.utcYear(t)-1,t),r,2)}function ht(t,e){return f(t.getUTCFullYear()%100,e,2)}function pt(t,e){return f(t.getUTCFullYear()%1e4,e,4)}function dt(){return&quot;+0000&quot;}function mt(){return&quot;%&quot;}function gt(t){return+t}function vt(t){return Math.floor(+t/1e3)}function yt(e){return o=a(e),t.timeFormat=o.format,t.timeParse=o.parse,t.utcFormat=o.utcFormat,t.utcParse=o.utcParse,o}yt({dateTime:&quot;%x, %X&quot;,date:&quot;%-m/%-d/%Y&quot;,time:&quot;%-I:%M:%S %p&quot;,periods:[&quot;AM&quot;,&quot;PM&quot;],days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;]});var xt=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);var bt=+new Date(&quot;2000-01-01T00:00:00.000Z&quot;)?function(t){var e=new Date(t);return isNaN(e)?null:e}:t.utcParse(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);t.isoFormat=xt,t.isoParse=bt,t.timeFormatDefaultLocale=yt,t.timeFormatLocale=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-time&quot;:121}],121:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e=new Date,r=new Date;function n(t,i,a,o){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),i(e,1),t(e),e},s.round=function(t){var e=s(t),r=s.ceil(t);return t-e&lt;r-t?e:r},s.offset=function(t,e){return i(t=new Date(+t),null==e?1:Math.floor(e)),t},s.range=function(e,r,n){var a,o=[];if(e=s.ceil(e),n=null==n?1:Math.floor(n),!(e&lt;r&amp;&amp;n&gt;0))return o;do{o.push(a=new Date(+e)),i(e,n),t(e)}while(a&lt;e&amp;&amp;e&lt;r);return o},s.filter=function(e){return n((function(r){if(r&gt;=r)for(;t(r),!e(r);)r.setTime(r-1)}),(function(t,r){if(t&gt;=t)if(r&lt;0)for(;++r&lt;=0;)for(;i(t,-1),!e(t););else for(;--r&gt;=0;)for(;i(t,1),!e(t););}))},a&amp;&amp;(s.count=function(n,i){return e.setTime(+n),r.setTime(+i),t(e),t(r),Math.floor(a(e,r))},s.every=function(t){return t=Math.floor(t),isFinite(t)&amp;&amp;t&gt;0?t&gt;1?s.filter(o?function(e){return o(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}var i=n((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));i.every=function(t){return t=Math.floor(t),isFinite(t)&amp;&amp;t&gt;0?t&gt;1?n((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,r){e.setTime(+e+r*t)}),(function(e,r){return(r-e)/t})):i:null};var a=i.range,o=n((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()})),s=o.range,l=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()})),c=l.range,u=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()})),f=u.range,h=n((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1})),p=h.range;function d(t){return n((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var m=d(0),g=d(1),v=d(2),y=d(3),x=d(4),b=d(5),_=d(6),w=m.range,T=g.range,k=v.range,A=y.range,M=x.range,S=b.range,E=_.range,L=n((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),C=L.range,P=n((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));P.every=function(t){return isFinite(t=Math.floor(t))&amp;&amp;t&gt;0?n((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,r){e.setFullYear(e.getFullYear()+r*t)})):null};var I=P.range,O=n((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getUTCMinutes()})),z=O.range,D=n((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()})),R=D.range,F=n((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1})),B=F.range;function N(t){return n((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}var j=N(0),U=N(1),V=N(2),H=N(3),q=N(4),G=N(5),Y=N(6),W=j.range,X=U.range,Z=V.range,J=H.range,K=q.range,Q=G.range,$=Y.range,tt=n((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),et=tt.range,rt=n((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));rt.every=function(t){return isFinite(t=Math.floor(t))&amp;&amp;t&gt;0?n((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null};var nt=rt.range;t.timeDay=h,t.timeDays=p,t.timeFriday=b,t.timeFridays=S,t.timeHour=u,t.timeHours=f,t.timeInterval=n,t.timeMillisecond=i,t.timeMilliseconds=a,t.timeMinute=l,t.timeMinutes=c,t.timeMonday=g,t.timeMondays=T,t.timeMonth=L,t.timeMonths=C,t.timeSaturday=_,t.timeSaturdays=E,t.timeSecond=o,t.timeSeconds=s,t.timeSunday=m,t.timeSundays=w,t.timeThursday=x,t.timeThursdays=M,t.timeTuesday=v,t.timeTuesdays=k,t.timeWednesday=y,t.timeWednesdays=A,t.timeWeek=m,t.timeWeeks=w,t.timeYear=P,t.timeYears=I,t.utcDay=F,t.utcDays=B,t.utcFriday=G,t.utcFridays=Q,t.utcHour=D,t.utcHours=R,t.utcMillisecond=i,t.utcMilliseconds=a,t.utcMinute=O,t.utcMinutes=z,t.utcMonday=U,t.utcMondays=X,t.utcMonth=tt,t.utcMonths=et,t.utcSaturday=Y,t.utcSaturdays=$,t.utcSecond=o,t.utcSeconds=s,t.utcSunday=j,t.utcSundays=W,t.utcThursday=q,t.utcThursdays=K,t.utcTuesday=V,t.utcTuesdays=Z,t.utcWednesday=H,t.utcWednesdays=J,t.utcWeek=j,t.utcWeeks=W,t.utcYear=rt,t.utcYears=nt,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],122:[function(t,e,r){arguments[4][121][0].apply(r,arguments)},{dup:121}],123:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e,r,n=0,i=0,a=0,o=0,s=0,l=0,c=&quot;object&quot;==typeof performance&amp;&amp;performance.now?performance:Date,u=&quot;object&quot;==typeof window&amp;&amp;window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function f(){return s||(u(h),s=c.now()+l)}function h(){s=0}function p(){this._call=this._time=this._next=null}function d(t,e,r){var n=new p;return n.restart(t,e,r),n}function m(){f(),++n;for(var t,r=e;r;)(t=s-r._time)&gt;=0&amp;&amp;r._call.call(null,t),r=r._next;--n}function g(){s=(o=c.now())+l,n=i=0;try{m()}finally{n=0,function(){var t,n,i=e,a=1/0;for(;i;)i._call?(a&gt;i._time&amp;&amp;(a=i._time),t=i,i=i._next):(n=i._next,i._next=null,i=t?t._next=n:e=n);r=t,y(a)}(),s=0}}function v(){var t=c.now(),e=t-o;e&gt;1e3&amp;&amp;(l-=e,o=t)}function y(t){n||(i&amp;&amp;(i=clearTimeout(i)),t-s&gt;24?(t&lt;1/0&amp;&amp;(i=setTimeout(g,t-c.now()-l)),a&amp;&amp;(a=clearInterval(a))):(a||(o=c.now(),a=setInterval(v,1e3)),n=1,u(g)))}p.prototype=d.prototype={constructor:p,restart:function(t,n,i){if(&quot;function&quot;!=typeof t)throw new TypeError(&quot;callback is not a function&quot;);i=(null==i?f():+i)+(null==n?0:+n),this._next||r===this||(r?r._next=this:e=this,r=this),this._call=t,this._time=i,y()},stop:function(){this._call&amp;&amp;(this._call=null,this._time=1/0,y())}},t.interval=function(t,e,r){var n=new p,i=e;return null==e?(n.restart(t,e,r),n):(e=+e,r=null==r?f():+r,n.restart((function a(o){o+=i,n.restart(a,i+=e,r),t(o)}),e,r),n)},t.now=f,t.timeout=function(t,e,r){var n=new p;return e=null==e?0:+e,n.restart((function(r){n.stop(),t(r+e)}),e,r),n},t.timer=d,t.timerFlush=m,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],124:[function(t,e,r){e.exports=function(){for(var t=0;t&lt;arguments.length;t++)if(void 0!==arguments[t])return arguments[t]}},{}],125:[function(t,e,r){&quot;use strict&quot;;e.exports=a;var n=(a.canvas=document.createElement(&quot;canvas&quot;)).getContext(&quot;2d&quot;),i=o([32,126]);function a(t,e){Array.isArray(t)&amp;&amp;(t=t.join(&quot;, &quot;));var r,a={},s=16,l=.05;e&amp;&amp;(2===e.length&amp;&amp;&quot;number&quot;==typeof e[0]?r=o(e):Array.isArray(e)?r=e:(e.o?r=o(e.o):e.pairs&amp;&amp;(r=e.pairs),e.fontSize&amp;&amp;(s=e.fontSize),null!=e.threshold&amp;&amp;(l=e.threshold))),r||(r=i),n.font=s+&quot;px &quot;+t;for(var c=0;c&lt;r.length;c++){var u=r[c],f=n.measureText(u[0]).width+n.measureText(u[1]).width,h=n.measureText(u).width;if(Math.abs(f-h)&gt;s*l){var p=(h-f)/s;a[u]=1e3*p}}return a}function o(t){for(var e=[],r=t[0];r&lt;=t[1];r++)for(var n=String.fromCharCode(r),i=t[0];i&lt;t[1];i++){var a=n+String.fromCharCode(i);e.push(a)}return e}a.createPairs=o,a.ascii=i},{}],126:[function(t,e,r){var n=t(&quot;abs-svg-path&quot;),i=t(&quot;normalize-svg-path&quot;),a={M:&quot;moveTo&quot;,C:&quot;bezierCurveTo&quot;};e.exports=function(t,e){t.beginPath(),i(n(e)).forEach((function(e){var r=e[0],n=e.slice(1);t[a[r]].apply(t,n)})),t.closePath()}},{&quot;abs-svg-path&quot;:70,&quot;normalize-svg-path&quot;:246}],127:[function(t,e,r){e.exports=function(t){switch(t){case&quot;int8&quot;:return Int8Array;case&quot;int16&quot;:return Int16Array;case&quot;int32&quot;:return Int32Array;case&quot;uint8&quot;:return Uint8Array;case&quot;uint16&quot;:return Uint16Array;case&quot;uint32&quot;:return Uint32Array;case&quot;float32&quot;:return Float32Array;case&quot;float64&quot;:return Float64Array;case&quot;array&quot;:return Array;case&quot;uint8_clamped&quot;:return Uint8ClampedArray}}},{}],128:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){switch(void 0===e&amp;&amp;(e=0),typeof t){case&quot;number&quot;:if(t&gt;0)return function(t,e){var r,n;for(r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}(0|t,e);break;case&quot;object&quot;:if(&quot;number&quot;==typeof t.length)return function t(e,r,n){var i=0|e[n];if(i&lt;=0)return[];var a,o=new Array(i);if(n===e.length-1)for(a=0;a&lt;i;++a)o[a]=r;else for(a=0;a&lt;i;++a)o[a]=t(e,r,n+1);return o}(t,e,0)}return[]}},{}],129:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){r=r||2;var n,s,l,c,u,p,d,g=e&amp;&amp;e.length,v=g?e[0]*r:t.length,y=i(t,0,v,r,!0),x=[];if(!y||y.next===y.prev)return x;if(g&amp;&amp;(y=function(t,e,r,n){var o,s,l,c,u,p=[];for(o=0,s=e.length;o&lt;s;o++)l=e[o]*n,c=o&lt;s-1?e[o+1]*n:t.length,(u=i(t,l,c,n,!1))===u.next&amp;&amp;(u.steiner=!0),p.push(m(u));for(p.sort(f),o=0;o&lt;p.length;o++)h(p[o],r),r=a(r,r.next);return r}(t,e,y,r)),t.length&gt;80*r){n=l=t[0],s=c=t[1];for(var b=r;b&lt;v;b+=r)(u=t[b])&lt;n&amp;&amp;(n=u),(p=t[b+1])&lt;s&amp;&amp;(s=p),u&gt;l&amp;&amp;(l=u),p&gt;c&amp;&amp;(c=p);d=0!==(d=Math.max(l-n,c-s))?1/d:0}return o(y,x,r,n,s,d),x}function i(t,e,r,n,i){var a,o;if(i===E(t,e,r,n)&gt;0)for(a=e;a&lt;r;a+=n)o=A(a,t[a],t[a+1],o);else for(a=r-n;a&gt;=e;a-=n)o=A(a,t[a],t[a+1],o);return o&amp;&amp;x(o,o.next)&amp;&amp;(M(o),o=o.next),o}function a(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!x(n,n.next)&amp;&amp;0!==y(n.prev,n,n.next))n=n.next;else{if(M(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function o(t,e,r,n,i,f,h){if(t){!h&amp;&amp;f&amp;&amp;function(t,e,r,n){var i=t;do{null===i.z&amp;&amp;(i.z=d(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e&lt;c&amp;&amp;(s++,n=n.nextZ);e++);for(l=c;s&gt;0||l&gt;0&amp;&amp;n;)0!==s&amp;&amp;(0===l||!n||r.z&lt;=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o&gt;1)}(i)}(t,n,i,f);for(var p,m,g=t;t.prev!==t.next;)if(p=t.prev,m=t.next,f?l(t,n,i,f):s(t))e.push(p.i/r),e.push(t.i/r),e.push(m.i/r),M(t),t=m.next,g=m.next;else if((t=m)===g){h?1===h?o(t=c(a(t),e,r),e,r,n,i,f,2):2===h&amp;&amp;u(t,e,r,n,i,f):o(a(t),e,r,n,i,f,1);break}}}function s(t){var e=t.prev,r=t,n=t.next;if(y(e,r,n)&gt;=0)return!1;for(var i=t.next.next;i!==t.prev;){if(g(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&amp;&amp;y(i.prev,i,i.next)&gt;=0)return!1;i=i.next}return!0}function l(t,e,r,n){var i=t.prev,a=t,o=t.next;if(y(i,a,o)&gt;=0)return!1;for(var s=i.x&lt;a.x?i.x&lt;o.x?i.x:o.x:a.x&lt;o.x?a.x:o.x,l=i.y&lt;a.y?i.y&lt;o.y?i.y:o.y:a.y&lt;o.y?a.y:o.y,c=i.x&gt;a.x?i.x&gt;o.x?i.x:o.x:a.x&gt;o.x?a.x:o.x,u=i.y&gt;a.y?i.y&gt;o.y?i.y:o.y:a.y&gt;o.y?a.y:o.y,f=d(s,l,e,r,n),h=d(c,u,e,r,n),p=t.prevZ,m=t.nextZ;p&amp;&amp;p.z&gt;=f&amp;&amp;m&amp;&amp;m.z&lt;=h;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;g(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;y(p.prev,p,p.next)&gt;=0)return!1;if(p=p.prevZ,m!==t.prev&amp;&amp;m!==t.next&amp;&amp;g(i.x,i.y,a.x,a.y,o.x,o.y,m.x,m.y)&amp;&amp;y(m.prev,m,m.next)&gt;=0)return!1;m=m.nextZ}for(;p&amp;&amp;p.z&gt;=f;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;g(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;y(p.prev,p,p.next)&gt;=0)return!1;p=p.prevZ}for(;m&amp;&amp;m.z&lt;=h;){if(m!==t.prev&amp;&amp;m!==t.next&amp;&amp;g(i.x,i.y,a.x,a.y,o.x,o.y,m.x,m.y)&amp;&amp;y(m.prev,m,m.next)&gt;=0)return!1;m=m.nextZ}return!0}function c(t,e,r){var n=t;do{var i=n.prev,o=n.next.next;!x(i,o)&amp;&amp;b(i,n,n.next,o)&amp;&amp;T(i,o)&amp;&amp;T(o,i)&amp;&amp;(e.push(i.i/r),e.push(n.i/r),e.push(o.i/r),M(n),M(n.next),n=t=o),n=n.next}while(n!==t);return a(n)}function u(t,e,r,n,i,s){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&amp;&amp;v(l,c)){var u=k(l,c);return l=a(l,l.next),u=a(u,u.next),o(l,e,r,n,i,s),void o(u,e,r,n,i,s)}c=c.next}l=l.next}while(l!==t)}function f(t,e){return t.x-e.x}function h(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a&lt;=n.y&amp;&amp;a&gt;=n.next.y&amp;&amp;n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s&lt;=i&amp;&amp;s&gt;o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x&lt;n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,h=1/0;n=r;do{i&gt;=n.x&amp;&amp;n.x&gt;=u&amp;&amp;i!==n.x&amp;&amp;g(a&lt;f?i:o,a,u,f,a&lt;f?o:i,a,n.x,n.y)&amp;&amp;(l=Math.abs(a-n.y)/(i-n.x),T(n,t)&amp;&amp;(l&lt;h||l===h&amp;&amp;(n.x&gt;r.x||n.x===r.x&amp;&amp;p(r,n)))&amp;&amp;(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e)){var r=k(e,t);a(e,e.next),a(r,r.next)}}function p(t,e){return y(t.prev,t,e.prev)&lt;0&amp;&amp;y(e.next,t,t.next)&lt;0}function d(t,e,r,n,i){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t=32767*(t-r)*i)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e=32767*(e-n)*i)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1}function m(t){var e=t,r=t;do{(e.x&lt;r.x||e.x===r.x&amp;&amp;e.y&lt;r.y)&amp;&amp;(r=e),e=e.next}while(e!==t);return r}function g(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)&gt;=0&amp;&amp;(t-o)*(n-s)-(r-o)*(e-s)&gt;=0&amp;&amp;(r-o)*(a-s)-(i-o)*(n-s)&gt;=0}function v(t,e){return t.next.i!==e.i&amp;&amp;t.prev.i!==e.i&amp;&amp;!function(t,e){var r=t;do{if(r.i!==t.i&amp;&amp;r.next.i!==t.i&amp;&amp;r.i!==e.i&amp;&amp;r.next.i!==e.i&amp;&amp;b(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&amp;&amp;(T(t,e)&amp;&amp;T(e,t)&amp;&amp;function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y&gt;a!=r.next.y&gt;a&amp;&amp;r.next.y!==r.y&amp;&amp;i&lt;(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&amp;&amp;(n=!n),r=r.next}while(r!==t);return n}(t,e)&amp;&amp;(y(t.prev,t,e.prev)||y(t,e.prev,e))||x(t,e)&amp;&amp;y(t.prev,t,t.next)&gt;0&amp;&amp;y(e.prev,e,e.next)&gt;0)}function y(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function x(t,e){return t.x===e.x&amp;&amp;t.y===e.y}function b(t,e,r,n){var i=w(y(t,e,r)),a=w(y(t,e,n)),o=w(y(r,n,t)),s=w(y(r,n,e));return i!==a&amp;&amp;o!==s||(!(0!==i||!_(t,r,e))||(!(0!==a||!_(t,n,e))||(!(0!==o||!_(r,t,n))||!(0!==s||!_(r,e,n)))))}function _(t,e,r){return e.x&lt;=Math.max(t.x,r.x)&amp;&amp;e.x&gt;=Math.min(t.x,r.x)&amp;&amp;e.y&lt;=Math.max(t.y,r.y)&amp;&amp;e.y&gt;=Math.min(t.y,r.y)}function w(t){return t&gt;0?1:t&lt;0?-1:0}function T(t,e){return y(t.prev,t,t.next)&lt;0?y(t,e,t.next)&gt;=0&amp;&amp;y(t,t.prev,e)&gt;=0:y(t,e,t.prev)&lt;0||y(t,t.next,e)&lt;0}function k(t,e){var r=new S(t.i,t.x,t.y),n=new S(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function A(t,e,r,n){var i=new S(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function M(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&amp;&amp;(t.prevZ.nextZ=t.nextZ),t.nextZ&amp;&amp;(t.nextZ.prevZ=t.prevZ)}function S(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function E(t,e,r,n){for(var i=0,a=e,o=r-n;a&lt;r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}e.exports=n,e.exports.default=n,n.deviation=function(t,e,r,n){var i=e&amp;&amp;e.length,a=i?e[0]*r:t.length,o=Math.abs(E(t,0,a,r));if(i)for(var s=0,l=e.length;s&lt;l;s++){var c=e[s]*r,u=s&lt;l-1?e[s+1]*r:t.length;o-=Math.abs(E(t,c,u,r))}var f=0;for(s=0;s&lt;n.length;s+=3){var h=n[s]*r,p=n[s+1]*r,d=n[s+2]*r;f+=Math.abs((t[h]-t[d])*(t[p+1]-t[h+1])-(t[h]-t[p])*(t[d+1]-t[h+1]))}return 0===o&amp;&amp;0===f?0:Math.abs((f-o)/o)},n.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i&lt;t.length;i++){for(var a=0;a&lt;t[i].length;a++)for(var o=0;o&lt;e;o++)r.vertices.push(t[i][a][o]);i&gt;0&amp;&amp;(n+=t[i-1].length,r.holes.push(n))}return r}},{}],130:[function(t,e,r){var n=t(&quot;strongly-connected-components&quot;);e.exports=function(t,e){var r,i=[],a=[],o=[],s={},l=[];function c(t){var e,n,i=!1;for(a.push(t),o[t]=!0,e=0;e&lt;l[t].length;e++)(n=l[t][e])===r?(u(r,a),i=!0):o[n]||(i=c(n));if(i)!function t(e){o[e]=!1,s.hasOwnProperty(e)&amp;&amp;Object.keys(s[e]).forEach((function(r){delete s[e][r],o[r]&amp;&amp;t(r)}))}(t);else for(e=0;e&lt;l[t].length;e++){n=l[t][e];var f=s[n];f||(f={},s[n]=f),f[n]=!0}return a.pop(),i}function u(t,r){var n=[].concat(r).concat(t);e?e(c):i.push(n)}function f(e){!function(e){for(var r=0;r&lt;t.length;r++)r&lt;e&amp;&amp;(t[r]=[]),t[r]=t[r].filter((function(t){return t&gt;=e}))}(e);for(var r,i=n(t).components.filter((function(t){return t.length&gt;1})),a=1/0,o=0;o&lt;i.length;o++)for(var s=0;s&lt;i[o].length;s++)i[o][s]&lt;a&amp;&amp;(a=i[o][s],r=o);var l=i[r];return!!l&amp;&amp;{leastVertex:a,adjList:t.map((function(t,e){return-1===l.indexOf(e)?[]:t.filter((function(t){return-1!==l.indexOf(t)}))}))}}r=0;for(var h=t.length;r&lt;h;){var p=f(r);if(r=p.leastVertex,l=p.adjList){for(var d=0;d&lt;l.length;d++)for(var m=0;m&lt;l[d].length;m++){var g=l[d][m];o[+g]=!1,s[g]={}}c(r),r+=1}else r=h}return e?void 0:i}},{&quot;strongly-connected-components&quot;:306}],131:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../object/valid-value&quot;);e.exports=function(){return n(this).length=0,this}},{&quot;../../object/valid-value&quot;:162}],132:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Array.from:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:133,&quot;./shim&quot;:134}],133:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e,r=Array.from;return&quot;function&quot;==typeof r&amp;&amp;(e=r(t=[&quot;raz&quot;,&quot;dwa&quot;]),Boolean(e&amp;&amp;e!==t&amp;&amp;&quot;dwa&quot;===e[1]))}},{}],134:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es6-symbol&quot;).iterator,i=t(&quot;../../function/is-arguments&quot;),a=t(&quot;../../function/is-function&quot;),o=t(&quot;../../number/to-pos-integer&quot;),s=t(&quot;../../object/valid-callable&quot;),l=t(&quot;../../object/valid-value&quot;),c=t(&quot;../../object/is-value&quot;),u=t(&quot;../../string/is-string&quot;),f=Array.isArray,h=Function.prototype.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},d=Object.defineProperty;e.exports=function(t){var e,r,m,g,v,y,x,b,_,w,T=arguments[1],k=arguments[2];if(t=Object(l(t)),c(T)&amp;&amp;s(T),this&amp;&amp;this!==Array&amp;&amp;a(this))e=this;else{if(!T){if(i(t))return 1!==(v=t.length)?Array.apply(null,t):((g=new Array(1))[0]=t[0],g);if(f(t)){for(g=new Array(v=t.length),r=0;r&lt;v;++r)g[r]=t[r];return g}}g=[]}if(!f(t))if(void 0!==(_=t[n])){for(x=s(_).call(t),e&amp;&amp;(g=new e),b=x.next(),r=0;!b.done;)w=T?h.call(T,k,b.value,r):b.value,e?(p.value=w,d(g,r,p)):g[r]=w,b=x.next(),++r;v=r}else if(u(t)){for(v=t.length,e&amp;&amp;(g=new e),r=0,m=0;r&lt;v;++r)w=t[r],r+1&lt;v&amp;&amp;(y=w.charCodeAt(0))&gt;=55296&amp;&amp;y&lt;=56319&amp;&amp;(w+=t[++r]),w=T?h.call(T,k,w,m):w,e?(p.value=w,d(g,m,p)):g[m]=w,++m;v=m}if(void 0===v)for(v=o(t.length),e&amp;&amp;(g=new e(v)),r=0;r&lt;v;++r)w=T?h.call(T,k,t[r],r):t[r],e?(p.value=w,d(g,r,p)):g[r]=w;return e&amp;&amp;(p.value=null,g.length=v),g}},{&quot;../../function/is-arguments&quot;:135,&quot;../../function/is-function&quot;:136,&quot;../../number/to-pos-integer&quot;:142,&quot;../../object/is-value&quot;:151,&quot;../../object/valid-callable&quot;:160,&quot;../../object/valid-value&quot;:162,&quot;../../string/is-string&quot;:166,&quot;es6-symbol&quot;:175}],135:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=n.call(function(){return arguments}());e.exports=function(t){return n.call(t)===i}},{}],136:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);e.exports=function(t){return&quot;function&quot;==typeof t&amp;&amp;i(n.call(t))}},{}],137:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){}},{}],138:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Math.sign:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:139,&quot;./shim&quot;:140}],139:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t=Math.sign;return&quot;function&quot;==typeof t&amp;&amp;(1===t(10)&amp;&amp;-1===t(-20))}},{}],140:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t=Number(t),isNaN(t)||0===t?t:t&gt;0?1:-1}},{}],141:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../math/sign&quot;),i=Math.abs,a=Math.floor;e.exports=function(t){return isNaN(t)?0:0!==(t=Number(t))&amp;&amp;isFinite(t)?n(t)*a(i(t)):t}},{&quot;../math/sign&quot;:138}],142:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./to-integer&quot;),i=Math.max;e.exports=function(t){return i(0,n(t))}},{&quot;./to-integer&quot;:141}],143:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./valid-callable&quot;),i=t(&quot;./valid-value&quot;),a=Function.prototype.bind,o=Function.prototype.call,s=Object.keys,l=Object.prototype.propertyIsEnumerable;e.exports=function(t,e){return function(r,c){var u,f=arguments[2],h=arguments[3];return r=Object(i(r)),n(c),u=s(r),h&amp;&amp;u.sort(&quot;function&quot;==typeof h?a.call(h,r):void 0),&quot;function&quot;!=typeof t&amp;&amp;(t=u[t]),o.call(t,u,(function(t,n){return l.call(r,t)?o.call(c,f,r[t],t,r,n):e}))}}},{&quot;./valid-callable&quot;:160,&quot;./valid-value&quot;:162}],144:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.assign:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:145,&quot;./shim&quot;:146}],145:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e=Object.assign;return&quot;function&quot;==typeof e&amp;&amp;(e(t={foo:&quot;raz&quot;},{bar:&quot;dwa&quot;},{trzy:&quot;trzy&quot;}),t.foo+t.bar+t.trzy===&quot;razdwatrzy&quot;)}},{}],146:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../keys&quot;),i=t(&quot;../valid-value&quot;),a=Math.max;e.exports=function(t,e){var r,o,s,l=a(arguments.length,2);for(t=Object(i(t)),s=function(n){try{t[n]=e[n]}catch(t){r||(r=t)}},o=1;o&lt;l;++o)n(e=arguments[o]).forEach(s);if(void 0!==r)throw r;return t}},{&quot;../keys&quot;:152,&quot;../valid-value&quot;:162}],147:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../array/from&quot;),i=t(&quot;./assign&quot;),a=t(&quot;./valid-value&quot;);e.exports=function(t){var e=Object(a(t)),r=arguments[1],o=Object(arguments[2]);if(e!==t&amp;&amp;!r)return e;var s={};return r?n(r,(function(e){(o.ensure||e in t)&amp;&amp;(s[e]=t[e])})):i(s,t),s}},{&quot;../array/from&quot;:132,&quot;./assign&quot;:144,&quot;./valid-value&quot;:162}],148:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o,s=Object.create;t(&quot;./set-prototype-of/is-implemented&quot;)()||(n=t(&quot;./set-prototype-of/shim&quot;)),e.exports=n?1!==n.level?s:(i={},a={},o={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach((function(t){a[t]=&quot;__proto__&quot;!==t?o:{configurable:!0,enumerable:!1,writable:!0,value:void 0}})),Object.defineProperties(i,a),Object.defineProperty(n,&quot;nullPolyfill&quot;,{configurable:!1,enumerable:!1,writable:!1,value:i}),function(t,e){return s(null===t?i:t,e)}):s},{&quot;./set-prototype-of/is-implemented&quot;:158,&quot;./set-prototype-of/shim&quot;:159}],149:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./_iterate&quot;)(&quot;forEach&quot;)},{&quot;./_iterate&quot;:143}],150:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;),i={function:!0,object:!0};e.exports=function(t){return n(t)&amp;&amp;i[typeof t]||!1}},{&quot;./is-value&quot;:151}],151:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../function/noop&quot;)();e.exports=function(t){return t!==n&amp;&amp;null!==t}},{&quot;../function/noop&quot;:137}],152:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.keys:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:153,&quot;./shim&quot;:154}],153:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){try{return Object.keys(&quot;primitive&quot;),!0}catch(t){return!1}}},{}],154:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../is-value&quot;),i=Object.keys;e.exports=function(t){return i(n(t)?Object(t):t)}},{&quot;../is-value&quot;:151}],155:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./valid-callable&quot;),i=t(&quot;./for-each&quot;),a=Function.prototype.call;e.exports=function(t,e){var r={},o=arguments[2];return n(e),i(t,(function(t,n,i,s){r[n]=a.call(e,o,t,n,i,s)})),r}},{&quot;./for-each&quot;:149,&quot;./valid-callable&quot;:160}],156:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;),i=Array.prototype.forEach,a=Object.create,o=function(t,e){var r;for(r in t)e[r]=t[r]};e.exports=function(t){var e=a(null);return i.call(arguments,(function(t){n(t)&amp;&amp;o(Object(t),e)})),e}},{&quot;./is-value&quot;:151}],157:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.setPrototypeOf:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:158,&quot;./shim&quot;:159}],158:[function(t,e,r){&quot;use strict&quot;;var n=Object.create,i=Object.getPrototypeOf,a={};e.exports=function(){var t=Object.setPrototypeOf,e=arguments[0]||n;return&quot;function&quot;==typeof t&amp;&amp;i(t(e(null),a))===a}},{}],159:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;../is-object&quot;),a=t(&quot;../valid-value&quot;),o=Object.prototype.isPrototypeOf,s=Object.defineProperty,l={configurable:!0,enumerable:!1,writable:!0,value:void 0};n=function(t,e){if(a(t),null===e||i(e))return t;throw new TypeError(&quot;Prototype must be null or an object&quot;)},e.exports=function(t){var e,r;return t?(2===t.level?t.set?(r=t.set,e=function(t,e){return r.call(n(t,e),e),t}):e=function(t,e){return n(t,e).__proto__=e,t}:e=function t(e,r){var i;return n(e,r),(i=o.call(t.nullPolyfill,e))&amp;&amp;delete t.nullPolyfill.__proto__,null===r&amp;&amp;(r=t.nullPolyfill),e.__proto__=r,i&amp;&amp;s(t.nullPolyfill,&quot;__proto__&quot;,l),e},Object.defineProperty(e,&quot;level&quot;,{configurable:!1,enumerable:!1,writable:!1,value:t.level})):null}(function(){var t,e=Object.create(null),r={},n=Object.getOwnPropertyDescriptor(Object.prototype,&quot;__proto__&quot;);if(n){try{(t=n.set).call(e,r)}catch(t){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:((e={}).__proto__=r,Object.getPrototypeOf(e)===r&amp;&amp;{level:1})}()),t(&quot;../create&quot;)},{&quot;../create&quot;:148,&quot;../is-object&quot;:150,&quot;../valid-value&quot;:162}],160:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){if(&quot;function&quot;!=typeof t)throw new TypeError(t+&quot; is not a function&quot;);return t}},{}],161:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-object&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not an Object&quot;);return t}},{&quot;./is-object&quot;:150}],162:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;);e.exports=function(t){if(!n(t))throw new TypeError(&quot;Cannot use null or undefined&quot;);return t}},{&quot;./is-value&quot;:151}],163:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?String.prototype.contains:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:164,&quot;./shim&quot;:165}],164:[function(t,e,r){&quot;use strict&quot;;var n=&quot;razdwatrzy&quot;;e.exports=function(){return&quot;function&quot;==typeof n.contains&amp;&amp;(!0===n.contains(&quot;dwa&quot;)&amp;&amp;!1===n.contains(&quot;foo&quot;))}},{}],165:[function(t,e,r){&quot;use strict&quot;;var n=String.prototype.indexOf;e.exports=function(t){return n.call(this,t,arguments[1])&gt;-1}},{}],166:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=n.call(&quot;&quot;);e.exports=function(t){return&quot;string&quot;==typeof t||t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;(t instanceof String||n.call(t)===i)||!1}},{}],167:[function(t,e,r){&quot;use strict&quot;;var n=Object.create(null),i=Math.random;e.exports=function(){var t;do{t=i().toString(36).slice(2)}while(n[t]);return t}},{}],168:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/set-prototype-of&quot;),a=t(&quot;es5-ext/string/#/contains&quot;),o=t(&quot;d&quot;),s=t(&quot;es6-symbol&quot;),l=t(&quot;./&quot;),c=Object.defineProperty;n=e.exports=function(t,e){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);l.call(this,t),e=e?a.call(e,&quot;key+value&quot;)?&quot;key+value&quot;:a.call(e,&quot;key&quot;)?&quot;key&quot;:&quot;value&quot;:&quot;value&quot;,c(this,&quot;__kind__&quot;,o(&quot;&quot;,e))},i&amp;&amp;i(n,l),delete n.prototype.constructor,n.prototype=Object.create(l.prototype,{_resolve:o((function(t){return&quot;value&quot;===this.__kind__?this.__list__[t]:&quot;key+value&quot;===this.__kind__?[t,this.__list__[t]]:t}))}),c(n.prototype,s.toStringTag,o(&quot;c&quot;,&quot;Array Iterator&quot;))},{&quot;./&quot;:171,d:106,&quot;es5-ext/object/set-prototype-of&quot;:157,&quot;es5-ext/string/#/contains&quot;:163,&quot;es6-symbol&quot;:175}],169:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/object/valid-callable&quot;),a=t(&quot;es5-ext/string/is-string&quot;),o=t(&quot;./get&quot;),s=Array.isArray,l=Function.prototype.call,c=Array.prototype.some;e.exports=function(t,e){var r,u,f,h,p,d,m,g,v=arguments[2];if(s(t)||n(t)?r=&quot;array&quot;:a(t)?r=&quot;string&quot;:t=o(t),i(e),f=function(){h=!0},&quot;array&quot;!==r)if(&quot;string&quot;!==r)for(u=t.next();!u.done;){if(l.call(e,v,u.value,f),h)return;u=t.next()}else for(d=t.length,p=0;p&lt;d&amp;&amp;(m=t[p],p+1&lt;d&amp;&amp;(g=m.charCodeAt(0))&gt;=55296&amp;&amp;g&lt;=56319&amp;&amp;(m+=t[++p]),l.call(e,v,m,f),!h);++p);else c.call(t,(function(t){return l.call(e,v,t,f),h}))}},{&quot;./get&quot;:170,&quot;es5-ext/function/is-arguments&quot;:135,&quot;es5-ext/object/valid-callable&quot;:160,&quot;es5-ext/string/is-string&quot;:166}],170:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/string/is-string&quot;),a=t(&quot;./array&quot;),o=t(&quot;./string&quot;),s=t(&quot;./valid-iterable&quot;),l=t(&quot;es6-symbol&quot;).iterator;e.exports=function(t){return&quot;function&quot;==typeof s(t)[l]?t[l]():n(t)?new a(t):i(t)?new o(t):new a(t)}},{&quot;./array&quot;:168,&quot;./string&quot;:173,&quot;./valid-iterable&quot;:174,&quot;es5-ext/function/is-arguments&quot;:135,&quot;es5-ext/string/is-string&quot;:166,&quot;es6-symbol&quot;:175}],171:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/array/#/clear&quot;),a=t(&quot;es5-ext/object/assign&quot;),o=t(&quot;es5-ext/object/valid-callable&quot;),s=t(&quot;es5-ext/object/valid-value&quot;),l=t(&quot;d&quot;),c=t(&quot;d/auto-bind&quot;),u=t(&quot;es6-symbol&quot;),f=Object.defineProperty,h=Object.defineProperties;e.exports=n=function(t,e){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);h(this,{__list__:l(&quot;w&quot;,s(t)),__context__:l(&quot;w&quot;,e),__nextIndex__:l(&quot;w&quot;,0)}),e&amp;&amp;(o(e.on),e.on(&quot;_add&quot;,this._onAdd),e.on(&quot;_delete&quot;,this._onDelete),e.on(&quot;_clear&quot;,this._onClear))},delete n.prototype.constructor,h(n.prototype,a({_next:l((function(){var t;if(this.__list__)return this.__redo__&amp;&amp;void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__&lt;this.__list__.length?this.__nextIndex__++:void this._unBind()})),next:l((function(){return this._createResult(this._next())})),_createResult:l((function(t){return void 0===t?{done:!0,value:void 0}:{done:!1,value:this._resolve(t)}})),_resolve:l((function(t){return this.__list__[t]})),_unBind:l((function(){this.__list__=null,delete this.__redo__,this.__context__&amp;&amp;(this.__context__.off(&quot;_add&quot;,this._onAdd),this.__context__.off(&quot;_delete&quot;,this._onDelete),this.__context__.off(&quot;_clear&quot;,this._onClear),this.__context__=null)})),toString:l((function(){return&quot;[object &quot;+(this[u.toStringTag]||&quot;Object&quot;)+&quot;]&quot;}))},c({_onAdd:l((function(t){t&gt;=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach((function(e,r){e&gt;=t&amp;&amp;(this.__redo__[r]=++e)}),this),this.__redo__.push(t)):f(this,&quot;__redo__&quot;,l(&quot;c&quot;,[t])))})),_onDelete:l((function(t){var e;t&gt;=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&amp;&amp;(-1!==(e=this.__redo__.indexOf(t))&amp;&amp;this.__redo__.splice(e,1),this.__redo__.forEach((function(e,r){e&gt;t&amp;&amp;(this.__redo__[r]=--e)}),this)))})),_onClear:l((function(){this.__redo__&amp;&amp;i.call(this.__redo__),this.__nextIndex__=0}))}))),f(n.prototype,u.iterator,l((function(){return this})))},{d:106,&quot;d/auto-bind&quot;:105,&quot;es5-ext/array/#/clear&quot;:131,&quot;es5-ext/object/assign&quot;:144,&quot;es5-ext/object/valid-callable&quot;:160,&quot;es5-ext/object/valid-value&quot;:162,&quot;es6-symbol&quot;:175}],172:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/object/is-value&quot;),a=t(&quot;es5-ext/string/is-string&quot;),o=t(&quot;es6-symbol&quot;).iterator,s=Array.isArray;e.exports=function(t){return!!i(t)&amp;&amp;(!!s(t)||(!!a(t)||(!!n(t)||&quot;function&quot;==typeof t[o])))}},{&quot;es5-ext/function/is-arguments&quot;:135,&quot;es5-ext/object/is-value&quot;:151,&quot;es5-ext/string/is-string&quot;:166,&quot;es6-symbol&quot;:175}],173:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/set-prototype-of&quot;),a=t(&quot;d&quot;),o=t(&quot;es6-symbol&quot;),s=t(&quot;./&quot;),l=Object.defineProperty;n=e.exports=function(t){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);t=String(t),s.call(this,t),l(this,&quot;__length__&quot;,a(&quot;&quot;,t.length))},i&amp;&amp;i(n,s),delete n.prototype.constructor,n.prototype=Object.create(s.prototype,{_next:a((function(){if(this.__list__)return this.__nextIndex__&lt;this.__length__?this.__nextIndex__++:void this._unBind()})),_resolve:a((function(t){var e,r=this.__list__[t];return this.__nextIndex__===this.__length__?r:(e=r.charCodeAt(0))&gt;=55296&amp;&amp;e&lt;=56319?r+this.__list__[this.__nextIndex__++]:r}))}),l(n.prototype,o.toStringTag,a(&quot;c&quot;,&quot;String Iterator&quot;))},{&quot;./&quot;:171,d:106,&quot;es5-ext/object/set-prototype-of&quot;:157,&quot;es6-symbol&quot;:175}],174:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-iterable&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not iterable&quot;);return t}},{&quot;./is-iterable&quot;:172}],175:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?t(&quot;ext/global-this&quot;).Symbol:t(&quot;./polyfill&quot;)},{&quot;./is-implemented&quot;:176,&quot;./polyfill&quot;:181,&quot;ext/global-this&quot;:188}],176:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ext/global-this&quot;),i={object:!0,symbol:!0};e.exports=function(){var t,e=n.Symbol;if(&quot;function&quot;!=typeof e)return!1;t=e(&quot;test symbol&quot;);try{String(t)}catch(t){return!1}return!!i[typeof e.iterator]&amp;&amp;(!!i[typeof e.toPrimitive]&amp;&amp;!!i[typeof e.toStringTag])}},{&quot;ext/global-this&quot;:188}],177:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return!!t&amp;&amp;(&quot;symbol&quot;==typeof t||!!t.constructor&amp;&amp;(&quot;Symbol&quot;===t.constructor.name&amp;&amp;&quot;Symbol&quot;===t[t.constructor.toStringTag]))}},{}],178:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=Object.create,a=Object.defineProperty,o=Object.prototype,s=i(null);e.exports=function(t){for(var e,r,i=0;s[t+(i||&quot;&quot;)];)++i;return s[t+=i||&quot;&quot;]=!0,a(o,e=&quot;@@&quot;+t,n.gs(null,(function(t){r||(r=!0,a(this,e,n(t)),r=!1)}))),e}},{d:106}],179:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=t(&quot;ext/global-this&quot;).Symbol;e.exports=function(t){return Object.defineProperties(t,{hasInstance:n(&quot;&quot;,i&amp;&amp;i.hasInstance||t(&quot;hasInstance&quot;)),isConcatSpreadable:n(&quot;&quot;,i&amp;&amp;i.isConcatSpreadable||t(&quot;isConcatSpreadable&quot;)),iterator:n(&quot;&quot;,i&amp;&amp;i.iterator||t(&quot;iterator&quot;)),match:n(&quot;&quot;,i&amp;&amp;i.match||t(&quot;match&quot;)),replace:n(&quot;&quot;,i&amp;&amp;i.replace||t(&quot;replace&quot;)),search:n(&quot;&quot;,i&amp;&amp;i.search||t(&quot;search&quot;)),species:n(&quot;&quot;,i&amp;&amp;i.species||t(&quot;species&quot;)),split:n(&quot;&quot;,i&amp;&amp;i.split||t(&quot;split&quot;)),toPrimitive:n(&quot;&quot;,i&amp;&amp;i.toPrimitive||t(&quot;toPrimitive&quot;)),toStringTag:n(&quot;&quot;,i&amp;&amp;i.toStringTag||t(&quot;toStringTag&quot;)),unscopables:n(&quot;&quot;,i&amp;&amp;i.unscopables||t(&quot;unscopables&quot;))})}},{d:106,&quot;ext/global-this&quot;:188}],180:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=t(&quot;../../../validate-symbol&quot;),a=Object.create(null);e.exports=function(t){return Object.defineProperties(t,{for:n((function(e){return a[e]?a[e]:a[e]=t(String(e))})),keyFor:n((function(t){var e;for(e in i(t),a)if(a[e]===t)return e}))})}},{&quot;../../../validate-symbol&quot;:182,d:106}],181:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o=t(&quot;d&quot;),s=t(&quot;./validate-symbol&quot;),l=t(&quot;ext/global-this&quot;).Symbol,c=t(&quot;./lib/private/generate-name&quot;),u=t(&quot;./lib/private/setup/standard-symbols&quot;),f=t(&quot;./lib/private/setup/symbol-registry&quot;),h=Object.create,p=Object.defineProperties,d=Object.defineProperty;if(&quot;function&quot;==typeof l)try{String(l()),a=!0}catch(t){}else l=null;i=function(t){if(this instanceof i)throw new TypeError(&quot;Symbol is not a constructor&quot;);return n(t)},e.exports=n=function t(e){var r;if(this instanceof t)throw new TypeError(&quot;Symbol is not a constructor&quot;);return a?l(e):(r=h(i.prototype),e=void 0===e?&quot;&quot;:String(e),p(r,{__description__:o(&quot;&quot;,e),__name__:o(&quot;&quot;,c(e))}))},u(n),f(n),p(i.prototype,{constructor:o(n),toString:o(&quot;&quot;,(function(){return this.__name__}))}),p(n.prototype,{toString:o((function(){return&quot;Symbol (&quot;+s(this).__description__+&quot;)&quot;})),valueOf:o((function(){return s(this)}))}),d(n.prototype,n.toPrimitive,o(&quot;&quot;,(function(){var t=s(this);return&quot;symbol&quot;==typeof t?t:t.toString()}))),d(n.prototype,n.toStringTag,o(&quot;c&quot;,&quot;Symbol&quot;)),d(i.prototype,n.toStringTag,o(&quot;c&quot;,n.prototype[n.toStringTag])),d(i.prototype,n.toPrimitive,o(&quot;c&quot;,n.prototype[n.toPrimitive]))},{&quot;./lib/private/generate-name&quot;:178,&quot;./lib/private/setup/standard-symbols&quot;:179,&quot;./lib/private/setup/symbol-registry&quot;:180,&quot;./validate-symbol&quot;:182,d:106,&quot;ext/global-this&quot;:188}],182:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-symbol&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not a symbol&quot;);return t}},{&quot;./is-symbol&quot;:177}],183:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?WeakMap:t(&quot;./polyfill&quot;)},{&quot;./is-implemented&quot;:184,&quot;./polyfill&quot;:186}],184:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e;if(&quot;function&quot;!=typeof WeakMap)return!1;try{t=new WeakMap([[e={},&quot;one&quot;],[{},&quot;two&quot;],[{},&quot;three&quot;]])}catch(t){return!1}return&quot;[object WeakMap]&quot;===String(t)&amp;&amp;(&quot;function&quot;==typeof t.set&amp;&amp;(t.set({},1)===t&amp;&amp;(&quot;function&quot;==typeof t.delete&amp;&amp;(&quot;function&quot;==typeof t.has&amp;&amp;&quot;one&quot;===t.get(e)))))}},{}],185:[function(t,e,r){&quot;use strict&quot;;e.exports=&quot;function&quot;==typeof WeakMap&amp;&amp;&quot;[object WeakMap]&quot;===Object.prototype.toString.call(new WeakMap)},{}],186:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/is-value&quot;),a=t(&quot;es5-ext/object/set-prototype-of&quot;),o=t(&quot;es5-ext/object/valid-object&quot;),s=t(&quot;es5-ext/object/valid-value&quot;),l=t(&quot;es5-ext/string/random-uniq&quot;),c=t(&quot;d&quot;),u=t(&quot;es6-iterator/get&quot;),f=t(&quot;es6-iterator/for-of&quot;),h=t(&quot;es6-symbol&quot;).toStringTag,p=t(&quot;./is-native-implemented&quot;),d=Array.isArray,m=Object.defineProperty,g=Object.prototype.hasOwnProperty,v=Object.getPrototypeOf;e.exports=n=function(){var t,e=arguments[0];if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);return t=p&amp;&amp;a&amp;&amp;WeakMap!==n?a(new WeakMap,v(this)):this,i(e)&amp;&amp;(d(e)||(e=u(e))),m(t,&quot;__weakMapData__&quot;,c(&quot;c&quot;,&quot;$weakMap$&quot;+l())),e?(f(e,(function(e){s(e),t.set(e[0],e[1])})),t):t},p&amp;&amp;(a&amp;&amp;a(n,WeakMap),n.prototype=Object.create(WeakMap.prototype,{constructor:c(n)})),Object.defineProperties(n.prototype,{delete:c((function(t){return!!g.call(o(t),this.__weakMapData__)&amp;&amp;(delete t[this.__weakMapData__],!0)})),get:c((function(t){if(g.call(o(t),this.__weakMapData__))return t[this.__weakMapData__]})),has:c((function(t){return g.call(o(t),this.__weakMapData__)})),set:c((function(t,e){return m(o(t),this.__weakMapData__,c(&quot;c&quot;,e)),this})),toString:c((function(){return&quot;[object WeakMap]&quot;}))}),m(n.prototype,h,c(&quot;c&quot;,&quot;WeakMap&quot;))},{&quot;./is-native-implemented&quot;:185,d:106,&quot;es5-ext/object/is-value&quot;:151,&quot;es5-ext/object/set-prototype-of&quot;:157,&quot;es5-ext/object/valid-object&quot;:161,&quot;es5-ext/object/valid-value&quot;:162,&quot;es5-ext/string/random-uniq&quot;:167,&quot;es6-iterator/for-of&quot;:169,&quot;es6-iterator/get&quot;:170,&quot;es6-symbol&quot;:175}],187:[function(t,e,r){var n=function(){if(&quot;object&quot;==typeof self&amp;&amp;self)return self;if(&quot;object&quot;==typeof window&amp;&amp;window)return window;throw new Error(&quot;Unable to resolve global `this`&quot;)};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,&quot;__global__&quot;,{get:function(){return this},configurable:!0})}catch(t){return n()}try{return __global__||n()}finally{delete Object.prototype.__global__}}()},{}],188:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?globalThis:t(&quot;./implementation&quot;)},{&quot;./implementation&quot;:187,&quot;./is-implemented&quot;:189}],189:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){return&quot;object&quot;==typeof globalThis&amp;&amp;(!!globalThis&amp;&amp;globalThis.Array===Array)}},{}],190:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-string-blank&quot;);e.exports=function(t){var e=typeof t;if(&quot;string&quot;===e){var r=t;if(0===(t=+t)&amp;&amp;n(r))return!1}else if(&quot;number&quot;!==e)return!1;return t-t&lt;1}},{&quot;is-string-blank&quot;:237}],191:[function(t,e,r){var n=t(&quot;dtype&quot;);e.exports=function(t,e,r){if(!t)throw new TypeError(&quot;must specify data as first parameter&quot;);if(r=0|+(r||0),Array.isArray(t)&amp;&amp;t[0]&amp;&amp;&quot;number&quot;==typeof t[0][0]){var i,a,o,s,l=t[0].length,c=t.length*l;e&amp;&amp;&quot;string&quot;!=typeof e||(e=new(n(e||&quot;float32&quot;))(c+r));var u=e.length-r;if(c!==u)throw new Error(&quot;source length &quot;+c+&quot; (&quot;+l+&quot;x&quot;+t.length+&quot;) does not match destination length &quot;+u);for(i=0,o=r;i&lt;t.length;i++)for(a=0;a&lt;l;a++)e[o++]=null===t[i][a]?NaN:t[i][a]}else if(e&amp;&amp;&quot;string&quot;!=typeof e)e.set(t,r);else{var f=n(e||&quot;float32&quot;);if(Array.isArray(t)||&quot;array&quot;===e)for(e=new f(t.length+r),i=0,o=r,s=e.length;o&lt;s;o++,i++)e[o]=null===t[i]?NaN:t[i];else 0===r?e=new f(t):(e=new f(t.length+r)).set(t,r)}return e}},{dtype:127}],192:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font/stringify&quot;),i=[32,126];e.exports=function(t){var e=(t=t||{}).shape?t.shape:t.canvas?[t.canvas.width,t.canvas.height]:[512,512],r=t.canvas||document.createElement(&quot;canvas&quot;),a=t.font,o=&quot;number&quot;==typeof t.step?[t.step,t.step]:t.step||[32,32],s=t.chars||i;a&amp;&amp;&quot;string&quot;!=typeof a&amp;&amp;(a=n(a));if(Array.isArray(s)){if(2===s.length&amp;&amp;&quot;number&quot;==typeof s[0]&amp;&amp;&quot;number&quot;==typeof s[1]){for(var l=[],c=s[0],u=0;c&lt;=s[1];c++)l[u++]=String.fromCharCode(c);s=l}}else s=String(s).split(&quot;&quot;);e=e.slice(),r.width=e[0],r.height=e[1];var f=r.getContext(&quot;2d&quot;);f.fillStyle=&quot;#000&quot;,f.fillRect(0,0,r.width,r.height),f.font=a,f.textAlign=&quot;center&quot;,f.textBaseline=&quot;middle&quot;,f.fillStyle=&quot;#fff&quot;;var h=o[0]/2,p=o[1]/2;for(c=0;c&lt;s.length;c++)f.fillText(s[c],h,p),(h+=o[0])&gt;e[0]-o[0]/2&amp;&amp;(h=o[0]/2,p+=o[1]);return r}},{&quot;css-font/stringify&quot;:102}],193:[function(t,e,r){&quot;use strict&quot;;function n(t,e){e||(e={}),(&quot;string&quot;==typeof t||Array.isArray(t))&amp;&amp;(e.family=t);var r=Array.isArray(e.family)?e.family.join(&quot;, &quot;):e.family;if(!r)throw Error(&quot;`family` must be defined&quot;);var s=e.size||e.fontSize||e.em||48,l=e.weight||e.fontWeight||&quot;&quot;,c=(t=[e.style||e.fontStyle||&quot;&quot;,l,s].join(&quot; &quot;)+&quot;px &quot;+r,e.origin||&quot;top&quot;);if(n.cache[r]&amp;&amp;s&lt;=n.cache[r].em)return i(n.cache[r],c);var u=e.canvas||n.canvas,f=u.getContext(&quot;2d&quot;),h={upper:void 0!==e.upper?e.upper:&quot;H&quot;,lower:void 0!==e.lower?e.lower:&quot;x&quot;,descent:void 0!==e.descent?e.descent:&quot;p&quot;,ascent:void 0!==e.ascent?e.ascent:&quot;h&quot;,tittle:void 0!==e.tittle?e.tittle:&quot;i&quot;,overshoot:void 0!==e.overshoot?e.overshoot:&quot;O&quot;},p=Math.ceil(1.5*s);u.height=p,u.width=.5*p,f.font=t;var d={top:0};f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillStyle=&quot;black&quot;,f.fillText(&quot;H&quot;,0,0);var m=a(f.getImageData(0,0,p,p));f.clearRect(0,0,p,p),f.textBaseline=&quot;bottom&quot;,f.fillText(&quot;H&quot;,0,p);var g=a(f.getImageData(0,0,p,p));d.lineHeight=d.bottom=p-g+m,f.clearRect(0,0,p,p),f.textBaseline=&quot;alphabetic&quot;,f.fillText(&quot;H&quot;,0,p);var v=p-a(f.getImageData(0,0,p,p))-1+m;d.baseline=d.alphabetic=v,f.clearRect(0,0,p,p),f.textBaseline=&quot;middle&quot;,f.fillText(&quot;H&quot;,0,.5*p);var y=a(f.getImageData(0,0,p,p));d.median=d.middle=p-y-1+m-.5*p,f.clearRect(0,0,p,p),f.textBaseline=&quot;hanging&quot;,f.fillText(&quot;H&quot;,0,.5*p);var x=a(f.getImageData(0,0,p,p));d.hanging=p-x-1+m-.5*p,f.clearRect(0,0,p,p),f.textBaseline=&quot;ideographic&quot;,f.fillText(&quot;H&quot;,0,p);var b=a(f.getImageData(0,0,p,p));if(d.ideographic=p-b-1+m,h.upper&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.upper,0,0),d.upper=a(f.getImageData(0,0,p,p)),d.capHeight=d.baseline-d.upper),h.lower&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.lower,0,0),d.lower=a(f.getImageData(0,0,p,p)),d.xHeight=d.baseline-d.lower),h.tittle&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.tittle,0,0),d.tittle=a(f.getImageData(0,0,p,p))),h.ascent&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.ascent,0,0),d.ascent=a(f.getImageData(0,0,p,p))),h.descent&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.descent,0,0),d.descent=o(f.getImageData(0,0,p,p))),h.overshoot){f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.overshoot,0,0);var _=o(f.getImageData(0,0,p,p));d.overshoot=_-v}for(var w in d)d[w]/=s;return d.em=s,n.cache[r]=d,i(d,c)}function i(t,e){var r={};for(var n in&quot;string&quot;==typeof e&amp;&amp;(e=t[e]),t)&quot;em&quot;!==n&amp;&amp;(r[n]=t[n]-e);return r}function a(t){for(var e=t.height,r=t.data,n=3;n&lt;r.length;n+=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}function o(t){for(var e=t.height,r=t.data,n=r.length-1;n&gt;0;n-=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}e.exports=n,n.canvas=document.createElement(&quot;canvas&quot;),n.cache={}},{}],194:[function(t,e,r){e.exports=function(t,e){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;must specify type string&quot;);if(e=e||{},&quot;undefined&quot;==typeof document&amp;&amp;!e.canvas)return null;var r=e.canvas||document.createElement(&quot;canvas&quot;);&quot;number&quot;==typeof e.width&amp;&amp;(r.width=e.width);&quot;number&quot;==typeof e.height&amp;&amp;(r.height=e.height);var n,i=e;try{var a=[t];0===t.indexOf(&quot;webgl&quot;)&amp;&amp;a.push(&quot;experimental-&quot;+t);for(var o=0;o&lt;a.length;o++)if(n=r.getContext(a[o],i))return n}catch(t){n=null}return n||null}},{}],195:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],m=e[13],g=e[14],v=e[15];return t[0]=s*(h*v-p*g)-f*(l*v-c*g)+m*(l*p-c*h),t[1]=-(n*(h*v-p*g)-f*(i*v-a*g)+m*(i*p-a*h)),t[2]=n*(l*v-c*g)-s*(i*v-a*g)+m*(i*c-a*l),t[3]=-(n*(l*p-c*h)-s*(i*p-a*h)+f*(i*c-a*l)),t[4]=-(o*(h*v-p*g)-u*(l*v-c*g)+d*(l*p-c*h)),t[5]=r*(h*v-p*g)-u*(i*v-a*g)+d*(i*p-a*h),t[6]=-(r*(l*v-c*g)-o*(i*v-a*g)+d*(i*c-a*l)),t[7]=r*(l*p-c*h)-o*(i*p-a*h)+u*(i*c-a*l),t[8]=o*(f*v-p*m)-u*(s*v-c*m)+d*(s*p-c*f),t[9]=-(r*(f*v-p*m)-u*(n*v-a*m)+d*(n*p-a*f)),t[10]=r*(s*v-c*m)-o*(n*v-a*m)+d*(n*c-a*s),t[11]=-(r*(s*p-c*f)-o*(n*p-a*f)+u*(n*c-a*s)),t[12]=-(o*(f*g-h*m)-u*(s*g-l*m)+d*(s*h-l*f)),t[13]=r*(f*g-h*m)-u*(n*g-i*m)+d*(n*h-i*f),t[14]=-(r*(s*g-l*m)-o*(n*g-i*m)+d*(n*l-i*s)),t[15]=r*(s*h-l*f)-o*(n*h-i*f)+u*(n*l-i*s),t}},{}],196:[function(t,e,r){e.exports=function(t){var e=new Float32Array(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},{}],197:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],198:[function(t,e,r){e.exports=function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],199:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],f=t[10],h=t[11],p=t[12],d=t[13],m=t[14],g=t[15];return(e*o-r*a)*(f*g-h*m)-(e*s-n*a)*(u*g-h*d)+(e*l-i*a)*(u*m-f*d)+(r*s-n*o)*(c*g-h*p)-(r*l-i*o)*(c*m-f*p)+(n*l-i*s)*(c*d-u*p)}},{}],200:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,c=r*o,u=n*o,f=n*s,h=i*o,p=i*s,d=i*l,m=a*o,g=a*s,v=a*l;return t[0]=1-f-d,t[1]=u+v,t[2]=h-g,t[3]=0,t[4]=u-v,t[5]=1-c-d,t[6]=p+m,t[7]=0,t[8]=h+g,t[9]=p-m,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],201:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o=r[0],s=r[1],l=r[2],c=Math.sqrt(o*o+s*s+l*l);if(Math.abs(c)&lt;1e-6)return null;return o*=c=1/c,s*=c,l*=c,n=Math.sin(e),i=Math.cos(e),a=1-i,t[0]=o*o*a+i,t[1]=s*o*a+l*n,t[2]=l*o*a-s*n,t[3]=0,t[4]=o*s*a-l*n,t[5]=s*s*a+i,t[6]=l*s*a+o*n,t[7]=0,t[8]=o*l*a+s*n,t[9]=s*l*a-o*n,t[10]=l*l*a+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],202:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=n+n,l=i+i,c=a+a,u=n*s,f=n*l,h=n*c,p=i*l,d=i*c,m=a*c,g=o*s,v=o*l,y=o*c;return t[0]=1-(p+m),t[1]=f+y,t[2]=h-v,t[3]=0,t[4]=f-y,t[5]=1-(u+m),t[6]=d+g,t[7]=0,t[8]=h+v,t[9]=d-g,t[10]=1-(u+p),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}},{}],203:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],204:[function(t,e,r){e.exports=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}},{}],205:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],206:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],207:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],208:[function(t,e,r){e.exports=function(t,e,r,n,i,a,o){var s=1/(r-e),l=1/(i-n),c=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(i+n)*l,t[10]=(o+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*c,t[15]=0,t}},{}],209:[function(t,e,r){e.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],210:[function(t,e,r){e.exports={create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),copy:t(&quot;./copy&quot;),identity:t(&quot;./identity&quot;),transpose:t(&quot;./transpose&quot;),invert:t(&quot;./invert&quot;),adjoint:t(&quot;./adjoint&quot;),determinant:t(&quot;./determinant&quot;),multiply:t(&quot;./multiply&quot;),translate:t(&quot;./translate&quot;),scale:t(&quot;./scale&quot;),rotate:t(&quot;./rotate&quot;),rotateX:t(&quot;./rotateX&quot;),rotateY:t(&quot;./rotateY&quot;),rotateZ:t(&quot;./rotateZ&quot;),fromRotation:t(&quot;./fromRotation&quot;),fromRotationTranslation:t(&quot;./fromRotationTranslation&quot;),fromScaling:t(&quot;./fromScaling&quot;),fromTranslation:t(&quot;./fromTranslation&quot;),fromXRotation:t(&quot;./fromXRotation&quot;),fromYRotation:t(&quot;./fromYRotation&quot;),fromZRotation:t(&quot;./fromZRotation&quot;),fromQuat:t(&quot;./fromQuat&quot;),frustum:t(&quot;./frustum&quot;),perspective:t(&quot;./perspective&quot;),perspectiveFromFieldOfView:t(&quot;./perspectiveFromFieldOfView&quot;),ortho:t(&quot;./ortho&quot;),lookAt:t(&quot;./lookAt&quot;),str:t(&quot;./str&quot;)}},{&quot;./adjoint&quot;:195,&quot;./clone&quot;:196,&quot;./copy&quot;:197,&quot;./create&quot;:198,&quot;./determinant&quot;:199,&quot;./fromQuat&quot;:200,&quot;./fromRotation&quot;:201,&quot;./fromRotationTranslation&quot;:202,&quot;./fromScaling&quot;:203,&quot;./fromTranslation&quot;:204,&quot;./fromXRotation&quot;:205,&quot;./fromYRotation&quot;:206,&quot;./fromZRotation&quot;:207,&quot;./frustum&quot;:208,&quot;./identity&quot;:209,&quot;./invert&quot;:211,&quot;./lookAt&quot;:212,&quot;./multiply&quot;:213,&quot;./ortho&quot;:214,&quot;./perspective&quot;:215,&quot;./perspectiveFromFieldOfView&quot;:216,&quot;./rotate&quot;:217,&quot;./rotateX&quot;:218,&quot;./rotateY&quot;:219,&quot;./rotateZ&quot;:220,&quot;./scale&quot;:221,&quot;./str&quot;:222,&quot;./translate&quot;:223,&quot;./transpose&quot;:224}],211:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],m=e[13],g=e[14],v=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*m-f*d,A=u*g-h*d,M=u*v-p*d,S=f*g-h*m,E=f*v-p*m,L=h*v-p*g,C=y*L-x*E+b*S+_*M-w*A+T*k;if(!C)return null;return C=1/C,t[0]=(s*L-l*E+c*S)*C,t[1]=(i*E-n*L-a*S)*C,t[2]=(m*T-g*w+v*_)*C,t[3]=(h*w-f*T-p*_)*C,t[4]=(l*M-o*L-c*A)*C,t[5]=(r*L-i*M+a*A)*C,t[6]=(g*b-d*T-v*x)*C,t[7]=(u*T-h*b+p*x)*C,t[8]=(o*E-s*M+c*k)*C,t[9]=(n*M-r*E-a*k)*C,t[10]=(d*w-m*b+v*y)*C,t[11]=(f*b-u*w-p*y)*C,t[12]=(s*A-o*S-l*k)*C,t[13]=(r*S-n*A+i*k)*C,t[14]=(m*x-d*_-g*y)*C,t[15]=(u*_-f*x+h*y)*C,t}},{}],212:[function(t,e,r){var n=t(&quot;./identity&quot;);e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,m=e[0],g=e[1],v=e[2],y=i[0],x=i[1],b=i[2],_=r[0],w=r[1],T=r[2];if(Math.abs(m-_)&lt;1e-6&amp;&amp;Math.abs(g-w)&lt;1e-6&amp;&amp;Math.abs(v-T)&lt;1e-6)return n(t);f=m-_,h=g-w,p=v-T,d=1/Math.sqrt(f*f+h*h+p*p),a=x*(p*=d)-b*(h*=d),o=b*(f*=d)-y*p,s=y*h-x*f,(d=Math.sqrt(a*a+o*o+s*s))?(a*=d=1/d,o*=d,s*=d):(a=0,o=0,s=0);l=h*s-p*o,c=p*a-f*s,u=f*o-h*a,(d=Math.sqrt(l*l+c*c+u*u))?(l*=d=1/d,c*=d,u*=d):(l=0,c=0,u=0);return t[0]=a,t[1]=l,t[2]=f,t[3]=0,t[4]=o,t[5]=c,t[6]=h,t[7]=0,t[8]=s,t[9]=u,t[10]=p,t[11]=0,t[12]=-(a*m+o*g+s*v),t[13]=-(l*m+c*g+u*v),t[14]=-(f*m+h*g+p*v),t[15]=1,t}},{&quot;./identity&quot;:209}],213:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],m=e[12],g=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*m,t[1]=x*i+b*l+_*h+w*g,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,x=r[4],b=r[5],_=r[6],w=r[7],t[4]=x*n+b*s+_*f+w*m,t[5]=x*i+b*l+_*h+w*g,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,x=r[8],b=r[9],_=r[10],w=r[11],t[8]=x*n+b*s+_*f+w*m,t[9]=x*i+b*l+_*h+w*g,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,x=r[12],b=r[13],_=r[14],w=r[15],t[12]=x*n+b*s+_*f+w*m,t[13]=x*i+b*l+_*h+w*g,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}},{}],214:[function(t,e,r){e.exports=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t}},{}],215:[function(t,e,r){e.exports=function(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t}},{}],216:[function(t,e,r){e.exports=function(t,e,r,n){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),c=2/(i+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(i-a)*c*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t}},{}],217:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c,u,f,h,p,d,m,g,v,y,x,b,_,w,T,k,A,M,S,E=n[0],L=n[1],C=n[2],P=Math.sqrt(E*E+L*L+C*C);if(Math.abs(P)&lt;1e-6)return null;E*=P=1/P,L*=P,C*=P,i=Math.sin(r),a=Math.cos(r),o=1-a,s=e[0],l=e[1],c=e[2],u=e[3],f=e[4],h=e[5],p=e[6],d=e[7],m=e[8],g=e[9],v=e[10],y=e[11],x=E*E*o+a,b=L*E*o+C*i,_=C*E*o-L*i,w=E*L*o-C*i,T=L*L*o+a,k=C*L*o+E*i,A=E*C*o+L*i,M=L*C*o-E*i,S=C*C*o+a,t[0]=s*x+f*b+m*_,t[1]=l*x+h*b+g*_,t[2]=c*x+p*b+v*_,t[3]=u*x+d*b+y*_,t[4]=s*w+f*T+m*k,t[5]=l*w+h*T+g*k,t[6]=c*w+p*T+v*k,t[7]=u*w+d*T+y*k,t[8]=s*A+f*M+m*S,t[9]=l*A+h*M+g*S,t[10]=c*A+p*M+v*S,t[11]=u*A+d*M+y*S,e!==t&amp;&amp;(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t}},{}],218:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t}},{}],219:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i-c*n,t[1]=o*i-u*n,t[2]=s*i-f*n,t[3]=l*i-h*n,t[8]=a*n+c*i,t[9]=o*n+u*i,t[10]=s*n+f*i,t[11]=l*n+h*i,t}},{}],220:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t}},{}],221:[function(t,e,r){e.exports=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],222:[function(t,e,r){e.exports=function(t){return&quot;mat4(&quot;+t[0]+&quot;, &quot;+t[1]+&quot;, &quot;+t[2]+&quot;, &quot;+t[3]+&quot;, &quot;+t[4]+&quot;, &quot;+t[5]+&quot;, &quot;+t[6]+&quot;, &quot;+t[7]+&quot;, &quot;+t[8]+&quot;, &quot;+t[9]+&quot;, &quot;+t[10]+&quot;, &quot;+t[11]+&quot;, &quot;+t[12]+&quot;, &quot;+t[13]+&quot;, &quot;+t[14]+&quot;, &quot;+t[15]+&quot;)&quot;}},{}],223:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,m=r[0],g=r[1],v=r[2];e===t?(t[12]=e[0]*m+e[4]*g+e[8]*v+e[12],t[13]=e[1]*m+e[5]*g+e[9]*v+e[13],t[14]=e[2]*m+e[6]*g+e[10]*v+e[14],t[15]=e[3]*m+e[7]*g+e[11]*v+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*m+s*g+f*v+e[12],t[13]=i*m+l*g+h*v+e[13],t[14]=a*m+c*g+p*v+e[14],t[15]=o*m+u*g+d*v+e[15]);return t}},{}],224:[function(t,e,r){e.exports=function(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}},{}],225:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font&quot;),i=t(&quot;pick-by-alias&quot;),a=t(&quot;regl&quot;),o=t(&quot;gl-util/context&quot;),s=t(&quot;es6-weak-map&quot;),l=t(&quot;color-normalize&quot;),c=t(&quot;font-atlas&quot;),u=t(&quot;typedarray-pool&quot;),f=t(&quot;parse-rect&quot;),h=t(&quot;is-plain-obj&quot;),p=t(&quot;parse-unit&quot;),d=t(&quot;to-px&quot;),m=t(&quot;detect-kerning&quot;),g=t(&quot;object-assign&quot;),v=t(&quot;font-measure&quot;),y=t(&quot;flatten-vertex-data&quot;),x=t(&quot;bit-twiddle&quot;).nextPow2,b=new s,_=!1;if(document.body){var w=document.body.appendChild(document.createElement(&quot;div&quot;));w.style.font=&quot;italic small-caps bold condensed 16px/2 cursive&quot;,getComputedStyle(w).fontStretch&amp;&amp;(_=!0),document.body.removeChild(w)}var T=function(t){!function(t){return&quot;function&quot;==typeof t&amp;&amp;t._gl&amp;&amp;t.prop&amp;&amp;t.texture&amp;&amp;t.buffer}(t)?this.gl=o(t):(t={regl:t},this.gl=t.regl._gl),this.shader=b.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||a({gl:this.gl}),this.charBuffer=this.regl.buffer({type:&quot;uint8&quot;,usage:&quot;stream&quot;}),this.sizeBuffer=this.regl.buffer({type:&quot;float&quot;,usage:&quot;stream&quot;}),this.shader||(this.shader=this.createShader(),b.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(t)?t:{})};T.prototype.createShader=function(){var t=this.regl,e=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},stencil:{enable:!1},depth:{enable:!1},count:t.prop(&quot;count&quot;),offset:t.prop(&quot;offset&quot;),attributes:{charOffset:{offset:4,stride:8,buffer:t.this(&quot;sizeBuffer&quot;)},width:{offset:0,stride:8,buffer:t.this(&quot;sizeBuffer&quot;)},char:t.this(&quot;charBuffer&quot;),position:t.this(&quot;position&quot;)},uniforms:{atlasSize:function(t,e){return[e.atlas.width,e.atlas.height]},atlasDim:function(t,e){return[e.atlas.cols,e.atlas.rows]},atlas:function(t,e){return e.atlas.texture},charStep:function(t,e){return e.atlas.step},em:function(t,e){return e.atlas.em},color:t.prop(&quot;color&quot;),opacity:t.prop(&quot;opacity&quot;),viewport:t.this(&quot;viewportArray&quot;),scale:t.this(&quot;scale&quot;),align:t.prop(&quot;align&quot;),baseline:t.prop(&quot;baseline&quot;),translate:t.this(&quot;translate&quot;),positionOffset:t.prop(&quot;positionOffset&quot;)},primitive:&quot;points&quot;,viewport:t.this(&quot;viewport&quot;),vert:&quot;\n\t\t\tprecision highp float;\n\t\t\tattribute float width, charOffset, char;\n\t\t\tattribute vec2 position;\n\t\t\tuniform float fontSize, charStep, em, align, baseline;\n\t\t\tuniform vec4 viewport;\n\t\t\tuniform vec4 color;\n\t\t\tuniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvoid main () {\n\t\t\t\tvec2 offset = floor(em * (vec2(align + charOffset, baseline)\n\t\t\t\t\t+ vec2(positionOffset.x, -positionOffset.y)))\n\t\t\t\t\t/ (viewport.zw * scale.xy);\n\n\t\t\t\tvec2 position = (position + translate) * scale;\n\t\t\t\tposition += offset * scale;\n\n\t\t\t\tcharCoord = position * viewport.zw + viewport.xy;\n\n\t\t\t\tgl_Position = vec4(position * 2. - 1., 0, 1);\n\n\t\t\t\tgl_PointSize = charStep;\n\n\t\t\t\tcharId.x = mod(char, atlasDim.x);\n\t\t\t\tcharId.y = floor(char / atlasDim.x);\n\n\t\t\t\tcharWidth = width * em;\n\n\t\t\t\tfontColor = color / 255.;\n\t\t\t}&quot;,frag:&quot;\n\t\t\tprecision highp float;\n\t\t\tuniform float fontSize, charStep, opacity;\n\t\t\tuniform vec2 atlasSize;\n\t\t\tuniform vec4 viewport;\n\t\t\tuniform sampler2D atlas;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\n\t\t\tfloat lightness(vec4 color) {\n\t\t\t\treturn color.r * 0.299 + color.g * 0.587 + color.b * 0.114;\n\t\t\t}\n\n\t\t\tvoid main () {\n\t\t\t\tvec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;\n\t\t\t\tfloat halfCharStep = floor(charStep * .5 + .5);\n\n\t\t\t\t// invert y and shift by 1px (FF expecially needs that)\n\t\t\t\tuv.y = charStep - uv.y;\n\n\t\t\t\t// ignore points outside of character bounding box\n\t\t\t\tfloat halfCharWidth = ceil(charWidth * .5);\n\t\t\t\tif (floor(uv.x) &gt; halfCharStep + halfCharWidth ||\n\t\t\t\t\tfloor(uv.x) &lt; halfCharStep - halfCharWidth) return;\n\n\t\t\t\tuv += charId * charStep;\n\t\t\t\tuv = uv / atlasSize;\n\n\t\t\t\tvec4 color = fontColor;\n\t\t\t\tvec4 mask = texture2D(atlas, uv);\n\n\t\t\t\tfloat maskY = lightness(mask);\n\t\t\t\t// float colorY = lightness(color);\n\t\t\t\tcolor.a *= maskY;\n\t\t\t\tcolor.a *= opacity;\n\n\t\t\t\t// color.a += .1;\n\n\t\t\t\t// antialiasing, see yiq color space y-channel formula\n\t\t\t\t// color.rgb += (1. - color.rgb) * (1. - mask.rgb);\n\n\t\t\t\tgl_FragColor = color;\n\t\t\t}&quot;});return{regl:t,draw:e,atlas:{}}},T.prototype.update=function(t){var e=this;if(&quot;string&quot;==typeof t)t={text:t};else if(!t)return;null!=(t=i(t,{position:&quot;position positions coord coords coordinates&quot;,font:&quot;font fontFace fontface typeface cssFont css-font family fontFamily&quot;,fontSize:&quot;fontSize fontsize size font-size&quot;,text:&quot;text texts chars characters value values symbols&quot;,align:&quot;align alignment textAlign textbaseline&quot;,baseline:&quot;baseline textBaseline textbaseline&quot;,direction:&quot;dir direction textDirection&quot;,color:&quot;color colour fill fill-color fillColor textColor textcolor&quot;,kerning:&quot;kerning kern&quot;,range:&quot;range dataBox&quot;,viewport:&quot;vp viewport viewBox viewbox viewPort&quot;,opacity:&quot;opacity alpha transparency visible visibility opaque&quot;,offset:&quot;offset positionOffset padding shift indent indentation&quot;},!0)).opacity&amp;&amp;(Array.isArray(t.opacity)?this.opacity=t.opacity.map((function(t){return parseFloat(t)})):this.opacity=parseFloat(t.opacity)),null!=t.viewport&amp;&amp;(this.viewport=f(t.viewport),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null==this.viewport&amp;&amp;(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null!=t.kerning&amp;&amp;(this.kerning=t.kerning),null!=t.offset&amp;&amp;(&quot;number&quot;==typeof t.offset&amp;&amp;(t.offset=[t.offset,0]),this.positionOffset=y(t.offset)),t.direction&amp;&amp;(this.direction=t.direction),t.range&amp;&amp;(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&amp;&amp;(this.scale=t.scale),t.translate&amp;&amp;(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),this.font.length||t.font||(t.font=T.baseFontSize+&quot;px sans-serif&quot;);var r,a=!1,o=!1;if(t.font&amp;&amp;(Array.isArray(t.font)?t.font:[t.font]).forEach((function(t,r){if(&quot;string&quot;==typeof t)try{t=n.parse(t)}catch(e){t=n.parse(T.baseFontSize+&quot;px &quot;+t)}else t=n.parse(n.stringify(t));var i=n.stringify({size:T.baseFontSize,family:t.family,stretch:_?t.stretch:void 0,variant:t.variant,weight:t.weight,style:t.style}),s=p(t.size),l=Math.round(s[0]*d(s[1]));if(l!==e.fontSize[r]&amp;&amp;(o=!0,e.fontSize[r]=l),!(e.font[r]&amp;&amp;i==e.font[r].baseString||(a=!0,e.font[r]=T.fonts[i],e.font[r]))){var c=t.family.join(&quot;, &quot;),u=[t.style];t.style!=t.variant&amp;&amp;u.push(t.variant),t.variant!=t.weight&amp;&amp;u.push(t.weight),_&amp;&amp;t.weight!=t.stretch&amp;&amp;u.push(t.stretch),e.font[r]={baseString:i,family:c,weight:t.weight,stretch:t.stretch,style:t.style,variant:t.variant,width:{},kerning:{},metrics:v(c,{origin:&quot;top&quot;,fontSize:T.baseFontSize,fontStyle:u.join(&quot; &quot;)})},T.fonts[i]=e.font[r]}})),(a||o)&amp;&amp;this.font.forEach((function(r,i){var a=n.stringify({size:e.fontSize[i],family:r.family,stretch:_?r.stretch:void 0,variant:r.variant,weight:r.weight,style:r.style});if(e.fontAtlas[i]=e.shader.atlas[a],!e.fontAtlas[i]){var o=r.metrics;e.shader.atlas[a]=e.fontAtlas[i]={fontString:a,step:2*Math.ceil(e.fontSize[i]*o.bottom*.5),em:e.fontSize[i],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:e.regl.texture()}}null==t.text&amp;&amp;(t.text=e.text)})),&quot;string&quot;==typeof t.text&amp;&amp;t.position&amp;&amp;t.position.length&gt;2){for(var s=Array(.5*t.position.length),h=0;h&lt;s.length;h++)s[h]=t.text;t.text=s}if(null!=t.text||a){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var b=1;b&lt;t.text.length;b++)this.textOffsets[b]=this.textOffsets[b-1]+t.text[b-1].length,this.count+=t.text[b].length,this.counts.push(t.text[b].length);this.text=t.text.join(&quot;&quot;)}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];r=[],this.font.forEach((function(t,n){T.atlasContext.font=t.baseString;for(var i=e.fontAtlas[n],a=0;a&lt;e.text.length;a++){var o=e.text.charAt(a);if(null==i.ids[o]&amp;&amp;(i.ids[o]=i.chars.length,i.chars.push(o),r.push(o)),null==t.width[o]&amp;&amp;(t.width[o]=T.atlasContext.measureText(o).width/T.baseFontSize,e.kerning)){var s=[];for(var l in t.width)s.push(l+o,o+l);g(t.kerning,m(t.family,{pairs:s}))}}}))}if(t.position)if(t.position.length&gt;2){for(var w=!t.position[0].length,k=u.mallocFloat(2*this.count),A=0,M=0;A&lt;this.counts.length;A++){var S=this.counts[A];if(w)for(var E=0;E&lt;S;E++)k[M++]=t.position[2*A],k[M++]=t.position[2*A+1];else for(var L=0;L&lt;S;L++)k[M++]=t.position[A][0],k[M++]=t.position[A][1]}this.position.call?this.position({type:&quot;float&quot;,data:k}):this.position=this.regl.buffer({type:&quot;float&quot;,data:k}),u.freeFloat(k)}else this.position.destroy&amp;&amp;this.position.destroy(),this.position={constant:t.position};if(t.text||a){var C=u.mallocUint8(this.count),P=u.mallocFloat(2*this.count);this.textWidth=[];for(var I=0,O=0;I&lt;this.counts.length;I++){for(var z=this.counts[I],D=this.font[I]||this.font[0],R=this.fontAtlas[I]||this.fontAtlas[0],F=0;F&lt;z;F++){var B=this.text.charAt(O),N=this.text.charAt(O-1);if(C[O]=R.ids[B],P[2*O]=D.width[B],F){var j=P[2*O-2],U=P[2*O],V=P[2*O-1]+.5*j+.5*U;if(this.kerning){var H=D.kerning[N+B];H&amp;&amp;(V+=.001*H)}P[2*O+1]=V}else P[2*O+1]=.5*P[2*O];O++}this.textWidth.push(P.length?.5*P[2*O-2]+P[2*O-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:C,type:&quot;uint8&quot;,usage:&quot;stream&quot;}),this.sizeBuffer({data:P,type:&quot;float&quot;,usage:&quot;stream&quot;}),u.freeUint8(C),u.freeFloat(P),r.length&amp;&amp;this.font.forEach((function(t,r){var n=e.fontAtlas[r],i=n.step,a=Math.floor(T.maxAtlasSize/i),o=Math.min(a,n.chars.length),s=Math.ceil(n.chars.length/o),l=x(o*i),u=x(s*i);n.width=l,n.height=u,n.rows=s,n.cols=o,n.em&amp;&amp;n.texture({data:c({canvas:T.atlasCanvas,font:n.fontString,chars:n.chars,shape:[l,u],step:[i,i]})})}))}if(t.align&amp;&amp;(this.align=t.align,this.alignOffset=this.textWidth.map((function(t,r){var n=Array.isArray(e.align)?e.align.length&gt;1?e.align[r]:e.align[0]:e.align;if(&quot;number&quot;==typeof n)return n;switch(n){case&quot;right&quot;:case&quot;end&quot;:return-t;case&quot;center&quot;:case&quot;centre&quot;:case&quot;middle&quot;:return.5*-t}return 0}))),null==this.baseline&amp;&amp;null==t.baseline&amp;&amp;(t.baseline=0),null!=t.baseline&amp;&amp;(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map((function(t,r){var n=(e.font[r]||e.font[0]).metrics,i=0;return i+=.5*n.bottom,i+=&quot;number&quot;==typeof t?t-n.baseline:-n[t],i*=-1}))),null!=t.color)if(t.color||(t.color=&quot;transparent&quot;),&quot;string&quot;!=typeof t.color&amp;&amp;isNaN(t.color)){var q;if(&quot;number&quot;==typeof t.color[0]&amp;&amp;t.color.length&gt;this.counts.length){var G=t.color.length;q=u.mallocUint8(G);for(var Y=(t.color.subarray||t.color.slice).bind(t.color),W=0;W&lt;G;W+=4)q.set(l(Y(W,W+4),&quot;uint8&quot;),W)}else{var X=t.color.length;q=u.mallocUint8(4*X);for(var Z=0;Z&lt;X;Z++)q.set(l(t.color[Z]||0,&quot;uint8&quot;),4*Z)}this.color=q}else this.color=l(t.color,&quot;uint8&quot;);if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity)if(this.color.length&gt;4||this.baselineOffset.length&gt;1||this.align&amp;&amp;this.align.length&gt;1||this.fontAtlas.length&gt;1||this.positionOffset.length&gt;2){var J=Math.max(.5*this.position.length||0,.25*this.color.length||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,.5*this.positionOffset.length||0);this.batch=Array(J);for(var K=0;K&lt;this.batch.length;K++)this.batch[K]={count:this.counts.length&gt;1?this.counts[K]:this.counts[0],offset:this.textOffsets.length&gt;1?this.textOffsets[K]:this.textOffsets[0],color:this.color?this.color.length&lt;=4?this.color:this.color.subarray(4*K,4*K+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[K]:this.opacity,baseline:null!=this.baselineOffset[K]?this.baselineOffset[K]:this.baselineOffset[0],align:this.align?null!=this.alignOffset[K]?this.alignOffset[K]:this.alignOffset[0]:0,atlas:this.fontAtlas[K]||this.fontAtlas[0],positionOffset:this.positionOffset.length&gt;2?this.positionOffset.subarray(2*K,2*K+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]},T.prototype.destroy=function(){},T.prototype.kerning=!0,T.prototype.position={constant:new Float32Array(2)},T.prototype.translate=null,T.prototype.scale=null,T.prototype.font=null,T.prototype.text=&quot;&quot;,T.prototype.positionOffset=[0,0],T.prototype.opacity=1,T.prototype.color=new Uint8Array([0,0,0,255]),T.prototype.alignOffset=[0,0],T.maxAtlasSize=1024,T.atlasCanvas=document.createElement(&quot;canvas&quot;),T.atlasContext=T.atlasCanvas.getContext(&quot;2d&quot;,{alpha:!1}),T.baseFontSize=64,T.fonts={},e.exports=T},{&quot;bit-twiddle&quot;:81,&quot;color-normalize&quot;:89,&quot;css-font&quot;:99,&quot;detect-kerning&quot;:125,&quot;es6-weak-map&quot;:183,&quot;flatten-vertex-data&quot;:191,&quot;font-atlas&quot;:192,&quot;font-measure&quot;:193,&quot;gl-util/context&quot;:226,&quot;is-plain-obj&quot;:236,&quot;object-assign&quot;:247,&quot;parse-rect&quot;:249,&quot;parse-unit&quot;:251,&quot;pick-by-alias&quot;:253,regl:283,&quot;to-px&quot;:314,&quot;typedarray-pool&quot;:327}],226:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;);function i(t){if(t.container)if(t.container==document.body)document.body.style.width||(t.canvas.width=t.width||t.pixelRatio*r.innerWidth),document.body.style.height||(t.canvas.height=t.height||t.pixelRatio*r.innerHeight);else{var e=t.container.getBoundingClientRect();t.canvas.width=t.width||e.right-e.left,t.canvas.height=t.height||e.bottom-e.top}}function a(t){return&quot;function&quot;==typeof t.getContext&amp;&amp;&quot;width&quot;in t&amp;&amp;&quot;height&quot;in t}function o(){var t=document.createElement(&quot;canvas&quot;);return t.style.position=&quot;absolute&quot;,t.style.top=0,t.style.left=0,t}e.exports=function(t){var e;if(t?&quot;string&quot;==typeof t&amp;&amp;(t={container:t}):t={},a(t)?t={container:t}:t=&quot;string&quot;==typeof(e=t).nodeName&amp;&amp;&quot;function&quot;==typeof e.appendChild&amp;&amp;&quot;function&quot;==typeof e.getBoundingClientRect?{container:t}:function(t){return&quot;function&quot;==typeof t.drawArrays||&quot;function&quot;==typeof t.drawElements}(t)?{gl:t}:n(t,{container:&quot;container target element el canvas holder parent parentNode wrapper use ref root node&quot;,gl:&quot;gl context webgl glContext&quot;,attrs:&quot;attributes attrs contextAttributes&quot;,pixelRatio:&quot;pixelRatio pxRatio px ratio pxratio pixelratio&quot;,width:&quot;w width&quot;,height:&quot;h height&quot;},!0),t.pixelRatio||(t.pixelRatio=r.pixelRatio||1),t.gl)return t.gl;if(t.canvas&amp;&amp;(t.container=t.canvas.parentNode),t.container){if(&quot;string&quot;==typeof t.container){var s=document.querySelector(t.container);if(!s)throw Error(&quot;Element &quot;+t.container+&quot; is not found&quot;);t.container=s}a(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=o(),t.container.appendChild(t.canvas),i(t))}else if(!t.canvas){if(&quot;undefined&quot;==typeof document)throw Error(&quot;Not DOM environment. Use headless-gl.&quot;);t.container=document.body||document.documentElement,t.canvas=o(),t.container.appendChild(t.canvas),i(t)}return t.gl||[&quot;webgl&quot;,&quot;experimental-webgl&quot;,&quot;webgl-experimental&quot;].some((function(e){try{t.gl=t.canvas.getContext(e,t.attrs)}catch(t){}return t.gl})),t.gl}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;pick-by-alias&quot;:253}],227:[function(t,e,r){e.exports=function(t){&quot;string&quot;==typeof t&amp;&amp;(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n&lt;t.length-1;n++)r.push(t[n],e[n]||&quot;&quot;);return r.push(t[n]),r.join(&quot;&quot;)}},{}],228:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n,i=t(&quot;is-browser&quot;);n=&quot;function&quot;==typeof r.matchMedia?!r.matchMedia(&quot;(hover: none)&quot;).matches:i,e.exports=n}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;is-browser&quot;:232}],229:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-browser&quot;);e.exports=n&amp;&amp;function(){var t=!1;try{var e=Object.defineProperty({},&quot;passive&quot;,{get:function(){t=!0}});window.addEventListener(&quot;test&quot;,null,e),window.removeEventListener(&quot;test&quot;,null,e)}catch(e){t=!1}return t}()},{&quot;is-browser&quot;:232}],230:[function(t,e,r){r.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1&lt;&lt;s)-1,c=l&gt;&gt;1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&amp;(1&lt;&lt;-u)-1,p&gt;&gt;=-u,u+=s;u&gt;0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&amp;(1&lt;&lt;-u)-1,a&gt;&gt;=-u,u+=n;u&gt;0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1&lt;&lt;c)-1,f=u&gt;&gt;1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,m=e&lt;0||0===e&amp;&amp;1/e&lt;0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))&lt;1&amp;&amp;(o--,l*=2),(e+=o+f&gt;=1?h/l:h*Math.pow(2,1-f))*l&gt;=2&amp;&amp;(o++,l/=2),o+f&gt;=u?(s=0,o=u):o+f&gt;=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i&gt;=8;t[r+p]=255&amp;s,p+=d,s/=256,i-=8);for(o=o&lt;&lt;i|s,c+=i;c&gt;0;t[r+p]=255&amp;o,p+=d,o/=256,c-=8);t[r+p-d]|=128*m}},{}],231:[function(t,e,r){&quot;function&quot;==typeof Object.create?e.exports=function(t,e){e&amp;&amp;(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},{}],232:[function(t,e,r){e.exports=!0},{}],233:[function(t,e,r){&quot;use strict&quot;;e.exports=&quot;undefined&quot;!=typeof navigator&amp;&amp;(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))},{}],234:[function(t,e,r){&quot;use strict&quot;;e.exports=a,e.exports.isMobile=a,e.exports.default=a;var n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function a(t){t||(t={});var e=t.ua;if(e||&quot;undefined&quot;==typeof navigator||(e=navigator.userAgent),e&amp;&amp;e.headers&amp;&amp;&quot;string&quot;==typeof e.headers[&quot;user-agent&quot;]&amp;&amp;(e=e.headers[&quot;user-agent&quot;]),&quot;string&quot;!=typeof e)return!1;var r=t.tablet?i.test(e):n.test(e);return!r&amp;&amp;t.tablet&amp;&amp;t.featureDetect&amp;&amp;navigator&amp;&amp;navigator.maxTouchPoints&gt;1&amp;&amp;-1!==e.indexOf(&quot;Macintosh&quot;)&amp;&amp;-1!==e.indexOf(&quot;Safari&quot;)&amp;&amp;(r=!0),r}},{}],235:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=typeof t;return null!==t&amp;&amp;(&quot;object&quot;===e||&quot;function&quot;===e)}},{}],236:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString;e.exports=function(t){var e;return&quot;[object Object]&quot;===n.call(t)&amp;&amp;(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))}},{}],237:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e,r=t.length,n=0;n&lt;r;n++)if(((e=t.charCodeAt(n))&lt;9||e&gt;13)&amp;&amp;32!==e&amp;&amp;133!==e&amp;&amp;160!==e&amp;&amp;5760!==e&amp;&amp;6158!==e&amp;&amp;(e&lt;8192||e&gt;8205)&amp;&amp;8232!==e&amp;&amp;8233!==e&amp;&amp;8239!==e&amp;&amp;8287!==e&amp;&amp;8288!==e&amp;&amp;12288!==e&amp;&amp;65279!==e)return!1;return!0}},{}],238:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return&quot;string&quot;==typeof t&amp;&amp;(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&amp;&amp;/[\dz]$/i.test(t)&amp;&amp;t.length&gt;4))}},{}],239:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?e.exports=n():(t=t||self).mapboxgl=n()}(this,(function(){&quot;use strict&quot;;var t,e,r;function n(n,i){if(t)if(e){var a=&quot;var sharedChunk = {}; (&quot;+t+&quot;)(sharedChunk); (&quot;+e+&quot;)(sharedChunk);&quot;,o={};t(o),(r=i(o)).workerUrl=window.URL.createObjectURL(new Blob([a],{type:&quot;text/javascript&quot;}))}else e=i;else t=i}return n(0,(function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r=n;function n(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}n.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},n.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},n.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},n.prototype.solveCurveX=function(t,e){var r,n,i,a,o;for(void 0===e&amp;&amp;(e=1e-6),i=t,o=0;o&lt;8;o++){if(a=this.sampleCurveX(i)-t,Math.abs(a)&lt;e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)&lt;1e-6)break;i-=a/s}if((i=t)&lt;(r=0))return r;if(i&gt;(n=1))return n;for(;r&lt;n;){if(a=this.sampleCurveX(i),Math.abs(a-t)&lt;e)return i;t&gt;a?r=i:n=i,i=.5*(n-r)+r}return i},n.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var i=a;function a(t,e){this.x=t,this.y=e}function o(t,e,n,i){var a=new r(t,e,n,i);return function(t){return a.solve(t)}}a.prototype={clone:function(){return new a(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&amp;&amp;this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[0]*this.x+t[1]*this.y,r=t[2]*this.x+t[3]*this.y;return this.x=e,this.y=r,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=e*this.x-r*this.y,i=r*this.x+e*this.y;return this.x=n,this.y=i,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),i=e.x+r*(this.x-e.x)-n*(this.y-e.y),a=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=i,this.y=a,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},a.convert=function(t){return t instanceof a?t:Array.isArray(t)?new a(t[0],t[1]):t};var s=o(.25,.1,.25,1);function l(t,e,r){return Math.min(r,Math.max(e,t))}function c(t,e,r){var n=r-e,i=((t-e)%n+n)%n+e;return i===e?r:i}function u(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}var f=1;function h(){return f++}function p(){return function t(e){return e?(e^16*Math.random()&gt;&gt;e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function d(t){return!!t&amp;&amp;/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function m(t,e){t.forEach((function(t){e[t]&amp;&amp;(e[t]=e[t].bind(e))}))}function g(t,e){return-1!==t.indexOf(e,t.length-e.length)}function v(t,e,r){var n={};for(var i in t)n[i]=e.call(r||this,t[i],i,t);return n}function y(t,e,r){var n={};for(var i in t)e.call(r||this,t[i],i,t)&amp;&amp;(n[i]=t[i]);return n}function x(t){return Array.isArray(t)?t.map(x):&quot;object&quot;==typeof t&amp;&amp;t?v(t,x):t}var b={};function _(t){b[t]||(&quot;undefined&quot;!=typeof console&amp;&amp;console.warn(t),b[t]=!0)}function w(t,e,r){return(r.y-t.y)*(e.x-t.x)&gt;(e.y-t.y)*(r.x-t.x)}function T(t){for(var e=0,r=0,n=t.length,i=n-1,a=void 0,o=void 0;r&lt;n;i=r++)a=t[r],e+=((o=t[i]).x-a.x)*(a.y+o.y);return e}function k(){return&quot;undefined&quot;!=typeof WorkerGlobalScope&amp;&amp;&quot;undefined&quot;!=typeof self&amp;&amp;self instanceof WorkerGlobalScope}function A(t){var e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)&lt;&gt;@\,;\:\\&quot;\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)&lt;&gt;@\,;\:\\&quot;\/\[\]\?\=\{\}\x7F]+)|(?:\&quot;((?:[^&quot;\\]|\\.)*)\&quot;)))?/g,(function(t,r,n,i){var a=n||i;return e[r]=!a||a.toLowerCase(),&quot;&quot;})),e[&quot;max-age&quot;]){var r=parseInt(e[&quot;max-age&quot;],10);isNaN(r)?delete e[&quot;max-age&quot;]:e[&quot;max-age&quot;]=r}return e}var M=null;function S(t){if(null==M){var e=t.navigator?t.navigator.userAgent:null;M=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match(&quot;Safari&quot;)&amp;&amp;!e.match(&quot;Chrome&quot;)))}return M}function E(t){try{var e=self[t];return e.setItem(&quot;_mapbox_test_&quot;,1),e.removeItem(&quot;_mapbox_test_&quot;),!0}catch(t){return!1}}var L,C,P,I,O=self.performance&amp;&amp;self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),z=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,D=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,R={now:O,frame:function(t){var e=z(t);return{cancel:function(){return D(e)}}},getImageData:function(t,e){void 0===e&amp;&amp;(e=0);var r=self.document.createElement(&quot;canvas&quot;),n=r.getContext(&quot;2d&quot;);if(!n)throw new Error(&quot;failed to create canvas 2d context&quot;);return r.width=t.width,r.height=t.height,n.drawImage(t,0,0,t.width,t.height),n.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return L||(L=self.document.createElement(&quot;a&quot;)),L.href=t,L.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&amp;&amp;(null==C&amp;&amp;(C=self.matchMedia(&quot;(prefers-reduced-motion: reduce)&quot;)),C.matches)}},F={API_URL:&quot;https://api.mapbox.com&quot;,get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf(&quot;https://api.mapbox.cn&quot;)?&quot;https://events.mapbox.cn/events/v2&quot;:0===this.API_URL.indexOf(&quot;https://api.mapbox.com&quot;)?&quot;https://events.mapbox.com/events/v2&quot;:null:null},FEEDBACK_URL:&quot;https://apps.mapbox.com/feedback&quot;,REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},B={supported:!1,testSupport:function(t){if(N||!I)return;j?U(t):P=t}},N=!1,j=!1;function U(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,I),t.isContextLost())return;B.supported=!0}catch(t){}t.deleteTexture(e),N=!0}self.document&amp;&amp;((I=self.document.createElement(&quot;img&quot;)).onload=function(){P&amp;&amp;U(P),P=null,j=!0},I.onerror=function(){N=!0,P=null},I.src=&quot;data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=&quot;);var V=&quot;01&quot;;var H=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function q(t){return 0===t.indexOf(&quot;mapbox:&quot;)}H.prototype._createSkuToken=function(){var t=function(){for(var t=&quot;&quot;,e=0;e&lt;10;e++)t+=&quot;0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ&quot;[Math.floor(62*Math.random())];return{token:[&quot;1&quot;,V,t].join(&quot;&quot;),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},H.prototype._isSkuTokenExpired=function(){return Date.now()&gt;this._skuTokenExpiresAt},H.prototype.transformRequest=function(t,e){return this._transformRequestFn&amp;&amp;this._transformRequestFn(t,e)||{url:t}},H.prototype.normalizeStyleURL=function(t,e){if(!q(t))return t;var r=X(t);return r.path=&quot;/styles/v1&quot;+r.path,this._makeAPIURL(r,this._customAccessToken||e)},H.prototype.normalizeGlyphsURL=function(t,e){if(!q(t))return t;var r=X(t);return r.path=&quot;/fonts/v1&quot;+r.path,this._makeAPIURL(r,this._customAccessToken||e)},H.prototype.normalizeSourceURL=function(t,e){if(!q(t))return t;var r=X(t);return r.path=&quot;/v4/&quot;+r.authority+&quot;.json&quot;,r.params.push(&quot;secure&quot;),this._makeAPIURL(r,this._customAccessToken||e)},H.prototype.normalizeSpriteURL=function(t,e,r,n){var i=X(t);return q(t)?(i.path=&quot;/styles/v1&quot;+i.path+&quot;/sprite&quot;+e+r,this._makeAPIURL(i,this._customAccessToken||n)):(i.path+=&quot;&quot;+e+r,Z(i))},H.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&amp;&amp;this._createSkuToken(),t&amp;&amp;!q(t))return t;var r=X(t),n=R.devicePixelRatio&gt;=2||512===e?&quot;@2x&quot;:&quot;&quot;,i=B.supported?&quot;.webp&quot;:&quot;$1&quot;;r.path=r.path.replace(/(\.(png|jpg)\d*)(?=$)/,&quot;&quot;+n+i),r.path=r.path.replace(/^.+\/v4\//,&quot;/&quot;),r.path=&quot;/v4&quot;+r.path;var a=this._customAccessToken||function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var n=r[e].match(/^access_token=(.*)$/);if(n)return n[1]}return null}(r.params)||F.ACCESS_TOKEN;return F.REQUIRE_ACCESS_TOKEN&amp;&amp;a&amp;&amp;this._skuToken&amp;&amp;r.params.push(&quot;sku=&quot;+this._skuToken),this._makeAPIURL(r,a)},H.prototype.canonicalizeTileURL=function(t,e){var r=X(t);if(!r.path.match(/(^\/v4\/)/)||!r.path.match(/\.[\w]+$/))return t;var n=&quot;mapbox://tiles/&quot;;n+=r.path.replace(&quot;/v4/&quot;,&quot;&quot;);var i=r.params;return e&amp;&amp;(i=i.filter((function(t){return!t.match(/^access_token=/)}))),i.length&amp;&amp;(n+=&quot;?&quot;+i.join(&quot;&amp;&quot;)),n},H.prototype.canonicalizeTileset=function(t,e){for(var r=!!e&amp;&amp;q(e),n=[],i=0,a=t.tiles||[];i&lt;a.length;i+=1){var o=a[i];Y(o)?n.push(this.canonicalizeTileURL(o,r)):n.push(o)}return n},H.prototype._makeAPIURL=function(t,e){var r=&quot;See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes&quot;,n=X(F.API_URL);if(t.protocol=n.protocol,t.authority=n.authority,&quot;/&quot;!==n.path&amp;&amp;(t.path=&quot;&quot;+n.path+t.path),!F.REQUIRE_ACCESS_TOKEN)return Z(t);if(!(e=e||F.ACCESS_TOKEN))throw new Error(&quot;An API access token is required to use Mapbox GL. &quot;+r);if(&quot;s&quot;===e[0])throw new Error(&quot;Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). &quot;+r);return t.params=t.params.filter((function(t){return-1===t.indexOf(&quot;access_token&quot;)})),t.params.push(&quot;access_token=&quot;+e),Z(t)};var G=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Y(t){return G.test(t)}var W=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function X(t){var e=t.match(W);if(!e)throw new Error(&quot;Unable to parse URL object&quot;);return{protocol:e[1],authority:e[2],path:e[3]||&quot;/&quot;,params:e[4]?e[4].split(&quot;&amp;&quot;):[]}}function Z(t){var e=t.params.length?&quot;?&quot;+t.params.join(&quot;&amp;&quot;):&quot;&quot;;return t.protocol+&quot;://&quot;+t.authority+t.path+e}function J(t){if(!t)return null;var e,r=t.split(&quot;.&quot;);if(!r||3!==r.length)return null;try{return JSON.parse((e=r[1],decodeURIComponent(self.atob(e).split(&quot;&quot;).map((function(t){return&quot;%&quot;+(&quot;00&quot;+t.charCodeAt(0).toString(16)).slice(-2)})).join(&quot;&quot;))))}catch(t){return null}}var K=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};K.prototype.getStorageKey=function(t){var e,r=J(F.ACCESS_TOKEN),n=&quot;&quot;;return r&amp;&amp;r.u?(e=r.u,n=self.btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(Number(&quot;0x&quot;+e))})))):n=F.ACCESS_TOKEN||&quot;&quot;,t?&quot;mapbox.eventData.&quot;+t+&quot;:&quot;+n:&quot;mapbox.eventData:&quot;+n},K.prototype.fetchEventData=function(){var t=E(&quot;localStorage&quot;),e=this.getStorageKey(),r=this.getStorageKey(&quot;uuid&quot;);if(t)try{var n=self.localStorage.getItem(e);n&amp;&amp;(this.eventData=JSON.parse(n));var i=self.localStorage.getItem(r);i&amp;&amp;(this.anonId=i)}catch(t){_(&quot;Unable to read from LocalStorage&quot;)}},K.prototype.saveEventData=function(){var t=E(&quot;localStorage&quot;),e=this.getStorageKey(),r=this.getStorageKey(&quot;uuid&quot;);if(t)try{self.localStorage.setItem(r,this.anonId),Object.keys(this.eventData).length&gt;=1&amp;&amp;self.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){_(&quot;Unable to write to LocalStorage&quot;)}},K.prototype.processRequests=function(t){},K.prototype.postEvent=function(t,e,r,n){var i=this;if(F.EVENTS_URL){var a=X(F.EVENTS_URL);a.params.push(&quot;access_token=&quot;+(n||F.ACCESS_TOKEN||&quot;&quot;));var o={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:&quot;mapbox-gl-js&quot;,sdkVersion:&quot;1.10.1&quot;,skuId:V,userId:this.anonId},s=e?u(o,e):o,l={url:Z(a),headers:{&quot;Content-Type&quot;:&quot;text/plain&quot;},body:JSON.stringify([s])};this.pendingRequest=bt(l,(function(t){i.pendingRequest=null,r(t),i.saveEventData(),i.processRequests(n)}))}},K.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var Q,$,tt=function(t){function e(){t.call(this,&quot;map.load&quot;),this.success={},this.skuToken=&quot;&quot;}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.postMapLoadEvent=function(t,e,r,n){this.skuToken=r,(F.EVENTS_URL&amp;&amp;n||F.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return q(t)||Y(t)})))&amp;&amp;this.queueRequest({id:e,timestamp:Date.now()},n)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){var r=this.queue.shift(),n=r.id,i=r.timestamp;n&amp;&amp;this.success[n]||(this.anonId||this.fetchEventData(),d(this.anonId)||(this.anonId=p()),this.postEvent(i,{skuToken:this.skuToken},(function(t){t||n&amp;&amp;(e.success[n]=!0)}),t))}},e}(K),et=new(function(t){function e(e){t.call(this,&quot;appUserTurnstile&quot;),this._customAccessToken=e}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.postTurnstileEvent=function(t,e){F.EVENTS_URL&amp;&amp;F.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return q(t)||Y(t)}))&amp;&amp;this.queueRequest(Date.now(),e)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){this.anonId&amp;&amp;this.eventData.lastSuccess&amp;&amp;this.eventData.tokenU||this.fetchEventData();var r=J(F.ACCESS_TOKEN),n=r?r.u:F.ACCESS_TOKEN,i=n!==this.eventData.tokenU;d(this.anonId)||(this.anonId=p(),i=!0);var a=this.queue.shift();if(this.eventData.lastSuccess){var o=new Date(this.eventData.lastSuccess),s=new Date(a),l=(a-this.eventData.lastSuccess)/864e5;i=i||l&gt;=1||l&lt;-1||o.getDate()!==s.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(a,{&quot;enabled.telemetry&quot;:!1},(function(t){t||(e.eventData.lastSuccess=a,e.eventData.tokenU=n)}),t)}},e}(K)),rt=et.postTurnstileEvent.bind(et),nt=new tt,it=nt.postMapLoadEvent.bind(nt),at=500,ot=50;function st(){self.caches&amp;&amp;!Q&amp;&amp;(Q=self.caches.open(&quot;mapbox-tiles&quot;))}function lt(t,e,r){if(st(),Q){var n={status:e.status,statusText:e.statusText,headers:new self.Headers};e.headers.forEach((function(t,e){return n.headers.set(e,t)}));var i=A(e.headers.get(&quot;Cache-Control&quot;)||&quot;&quot;);if(!i[&quot;no-store&quot;])i[&quot;max-age&quot;]&amp;&amp;n.headers.set(&quot;Expires&quot;,new Date(r+1e3*i[&quot;max-age&quot;]).toUTCString()),new Date(n.headers.get(&quot;Expires&quot;)).getTime()-r&lt;42e4||function(t,e){if(void 0===$)try{new Response(new ReadableStream),$=!0}catch(t){$=!1}$?e(t.body):t.blob().then(e)}(e,(function(e){var r=new self.Response(e,n);st(),Q&amp;&amp;Q.then((function(e){return e.put(ct(t.url),r)})).catch((function(t){return _(t.message)}))}))}}function ct(t){var e=t.indexOf(&quot;?&quot;);return e&lt;0?t:t.slice(0,e)}function ut(t,e){if(st(),!Q)return e(null);var r=ct(t.url);Q.then((function(t){t.match(r).then((function(n){var i=function(t){if(!t)return!1;var e=new Date(t.headers.get(&quot;Expires&quot;)||0),r=A(t.headers.get(&quot;Cache-Control&quot;)||&quot;&quot;);return e&gt;Date.now()&amp;&amp;!r[&quot;no-cache&quot;]}(n);t.delete(r),i&amp;&amp;t.put(r,n.clone()),e(null,n,i)})).catch(e)})).catch(e)}var ft,ht=1/0;function pt(){return null==ft&amp;&amp;(ft=self.OffscreenCanvas&amp;&amp;new self.OffscreenCanvas(1,1).getContext(&quot;2d&quot;)&amp;&amp;&quot;function&quot;==typeof self.createImageBitmap),ft}var dt={Unknown:&quot;Unknown&quot;,Style:&quot;Style&quot;,Source:&quot;Source&quot;,Tile:&quot;Tile&quot;,Glyphs:&quot;Glyphs&quot;,SpriteImage:&quot;SpriteImage&quot;,SpriteJSON:&quot;SpriteJSON&quot;,Image:&quot;Image&quot;};&quot;function&quot;==typeof Object.freeze&amp;&amp;Object.freeze(dt);var mt=function(t){function e(e,r,n){401===r&amp;&amp;Y(n)&amp;&amp;(e+=&quot;: you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes&quot;),t.call(this,e),this.status=r,this.url=n,this.name=this.constructor.name,this.message=e}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.toString=function(){return this.name+&quot;: &quot;+this.message+&quot; (&quot;+this.status+&quot;): &quot;+this.url},e}(Error),gt=k()?function(){return self.worker&amp;&amp;self.worker.referrer}:function(){return(&quot;blob:&quot;===self.location.protocol?self.parent:self).location.href};function vt(t,e){var r,n=new self.AbortController,i=new self.Request(t.url,{method:t.method||&quot;GET&quot;,body:t.body,credentials:t.credentials,headers:t.headers,referrer:gt(),signal:n.signal}),a=!1,o=!1,s=(r=i.url).indexOf(&quot;sku=&quot;)&gt;0&amp;&amp;Y(r);&quot;json&quot;===t.type&amp;&amp;i.headers.set(&quot;Accept&quot;,&quot;application/json&quot;);var l=function(r,n,a){if(!o){if(r&amp;&amp;&quot;SecurityError&quot;!==r.message&amp;&amp;_(r),n&amp;&amp;a)return c(n);var l=Date.now();self.fetch(i).then((function(r){if(r.ok){var n=s?r.clone():null;return c(r,n,l)}return e(new mt(r.statusText,r.status,t.url))})).catch((function(t){20!==t.code&amp;&amp;e(new Error(t.message))}))}},c=function(r,n,s){(&quot;arrayBuffer&quot;===t.type?r.arrayBuffer():&quot;json&quot;===t.type?r.json():r.text()).then((function(t){o||(n&amp;&amp;s&amp;&amp;lt(i,n,s),a=!0,e(null,t,r.headers.get(&quot;Cache-Control&quot;),r.headers.get(&quot;Expires&quot;)))})).catch((function(t){o||e(new Error(t.message))}))};return s?ut(i,l):l(null,null),{cancel:function(){o=!0,a||n.abort()}}}var yt=function(t,e){if(r=t.url,!(/^file:/.test(r)||/^file:/.test(gt())&amp;&amp;!/^\w+:/.test(r))){if(self.fetch&amp;&amp;self.Request&amp;&amp;self.AbortController&amp;&amp;self.Request.prototype.hasOwnProperty(&quot;signal&quot;))return vt(t,e);if(k()&amp;&amp;self.worker&amp;&amp;self.worker.actor){return self.worker.actor.send(&quot;getResource&quot;,t,e,void 0,!0)}}var r;return function(t,e){var r=new self.XMLHttpRequest;for(var n in r.open(t.method||&quot;GET&quot;,t.url,!0),&quot;arrayBuffer&quot;===t.type&amp;&amp;(r.responseType=&quot;arraybuffer&quot;),t.headers)r.setRequestHeader(n,t.headers[n]);return&quot;json&quot;===t.type&amp;&amp;(r.responseType=&quot;text&quot;,r.setRequestHeader(&quot;Accept&quot;,&quot;application/json&quot;)),r.withCredentials=&quot;include&quot;===t.credentials,r.onerror=function(){e(new Error(r.statusText))},r.onload=function(){if((r.status&gt;=200&amp;&amp;r.status&lt;300||0===r.status)&amp;&amp;null!==r.response){var n=r.response;if(&quot;json&quot;===t.type)try{n=JSON.parse(r.response)}catch(t){return e(t)}e(null,n,r.getResponseHeader(&quot;Cache-Control&quot;),r.getResponseHeader(&quot;Expires&quot;))}else e(new mt(r.statusText,r.status,t.url))},r.send(t.body),{cancel:function(){return r.abort()}}}(t,e)},xt=function(t,e){return yt(u(t,{type:&quot;arrayBuffer&quot;}),e)},bt=function(t,e){return yt(u(t,{method:&quot;POST&quot;}),e)};var _t,wt;_t=[],wt=0;var Tt=function(t,e){if(B.supported&amp;&amp;(t.headers||(t.headers={}),t.headers.accept=&quot;image/webp,*/*&quot;),wt&gt;=F.MAX_PARALLEL_IMAGE_REQUESTS){var r={requestParameters:t,callback:e,cancelled:!1,cancel:function(){this.cancelled=!0}};return _t.push(r),r}wt++;var n=!1,i=function(){if(!n)for(n=!0,wt--;_t.length&amp;&amp;wt&lt;F.MAX_PARALLEL_IMAGE_REQUESTS;){var t=_t.shift(),e=t.requestParameters,r=t.callback;t.cancelled||(t.cancel=Tt(e,r).cancel)}},a=xt(t,(function(t,r,n,a){i(),t?e(t):r&amp;&amp;(pt()?function(t,e){var r=new self.Blob([new Uint8Array(t)],{type:&quot;image/png&quot;});self.createImageBitmap(r).then((function(t){e(null,t)})).catch((function(t){e(new Error(&quot;Could not load image because of &quot;+t.message+&quot;. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.&quot;))}))}(r,e):function(t,e,r,n){var i=new self.Image,a=self.URL;i.onload=function(){e(null,i),a.revokeObjectURL(i.src)},i.onerror=function(){return e(new Error(&quot;Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.&quot;))};var o=new self.Blob([new Uint8Array(t)],{type:&quot;image/png&quot;});i.cacheControl=r,i.expires=n,i.src=t.byteLength?a.createObjectURL(o):&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=&quot;}(r,e,n,a))}));return{cancel:function(){a.cancel(),i()}}};function kt(t,e,r){r[t]&amp;&amp;-1!==r[t].indexOf(e)||(r[t]=r[t]||[],r[t].push(e))}function At(t,e,r){if(r&amp;&amp;r[t]){var n=r[t].indexOf(e);-1!==n&amp;&amp;r[t].splice(n,1)}}var Mt=function(t,e){void 0===e&amp;&amp;(e={}),u(this,e),this.type=t},St=function(t){function e(e,r){void 0===r&amp;&amp;(r={}),t.call(this,&quot;error&quot;,u({error:e},r))}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(Mt),Et=function(){};Et.prototype.on=function(t,e){return this._listeners=this._listeners||{},kt(t,e,this._listeners),this},Et.prototype.off=function(t,e){return At(t,e,this._listeners),At(t,e,this._oneTimeListeners),this},Et.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},kt(t,e,this._oneTimeListeners),this},Et.prototype.fire=function(t,e){&quot;string&quot;==typeof t&amp;&amp;(t=new Mt(t,e||{}));var r=t.type;if(this.listens(r)){t.target=this;for(var n=0,i=this._listeners&amp;&amp;this._listeners[r]?this._listeners[r].slice():[];n&lt;i.length;n+=1){i[n].call(this,t)}for(var a=0,o=this._oneTimeListeners&amp;&amp;this._oneTimeListeners[r]?this._oneTimeListeners[r].slice():[];a&lt;o.length;a+=1){var s=o[a];At(r,s,this._oneTimeListeners),s.call(this,t)}var l=this._eventedParent;l&amp;&amp;(u(t,&quot;function&quot;==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),l.fire(t))}else t instanceof St&amp;&amp;console.error(t.error);return this},Et.prototype.listens=function(t){return this._listeners&amp;&amp;this._listeners[t]&amp;&amp;this._listeners[t].length&gt;0||this._oneTimeListeners&amp;&amp;this._oneTimeListeners[t]&amp;&amp;this._oneTimeListeners[t].length&gt;0||this._eventedParent&amp;&amp;this._eventedParent.listens(t)},Et.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var Lt={$version:8,$root:{version:{required:!0,type:&quot;enum&quot;,values:[8]},name:{type:&quot;string&quot;},metadata:{type:&quot;*&quot;},center:{type:&quot;array&quot;,value:&quot;number&quot;},zoom:{type:&quot;number&quot;},bearing:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;},pitch:{type:&quot;number&quot;,default:0,units:&quot;degrees&quot;},light:{type:&quot;light&quot;},sources:{required:!0,type:&quot;sources&quot;},sprite:{type:&quot;string&quot;},glyphs:{type:&quot;string&quot;},transition:{type:&quot;transition&quot;},layers:{required:!0,type:&quot;array&quot;,value:&quot;layer&quot;}},sources:{&quot;*&quot;:{type:&quot;source&quot;}},source:[&quot;source_vector&quot;,&quot;source_raster&quot;,&quot;source_raster_dem&quot;,&quot;source_geojson&quot;,&quot;source_video&quot;,&quot;source_image&quot;],source_vector:{type:{required:!0,type:&quot;enum&quot;,values:{vector:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:&quot;enum&quot;,values:{xyz:{},tms:{}},default:&quot;xyz&quot;},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},attribution:{type:&quot;string&quot;},promoteId:{type:&quot;promoteId&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_raster:{type:{required:!0,type:&quot;enum&quot;,values:{raster:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},tileSize:{type:&quot;number&quot;,default:512,units:&quot;pixels&quot;},scheme:{type:&quot;enum&quot;,values:{xyz:{},tms:{}},default:&quot;xyz&quot;},attribution:{type:&quot;string&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_raster_dem:{type:{required:!0,type:&quot;enum&quot;,values:{&quot;raster-dem&quot;:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},tileSize:{type:&quot;number&quot;,default:512,units:&quot;pixels&quot;},attribution:{type:&quot;string&quot;},encoding:{type:&quot;enum&quot;,values:{terrarium:{},mapbox:{}},default:&quot;mapbox&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_geojson:{type:{required:!0,type:&quot;enum&quot;,values:{geojson:{}}},data:{type:&quot;*&quot;},maxzoom:{type:&quot;number&quot;,default:18},attribution:{type:&quot;string&quot;},buffer:{type:&quot;number&quot;,default:128,maximum:512,minimum:0},tolerance:{type:&quot;number&quot;,default:.375},cluster:{type:&quot;boolean&quot;,default:!1},clusterRadius:{type:&quot;number&quot;,default:50,minimum:0},clusterMaxZoom:{type:&quot;number&quot;},clusterProperties:{type:&quot;*&quot;},lineMetrics:{type:&quot;boolean&quot;,default:!1},generateId:{type:&quot;boolean&quot;,default:!1},promoteId:{type:&quot;promoteId&quot;}},source_video:{type:{required:!0,type:&quot;enum&quot;,values:{video:{}}},urls:{required:!0,type:&quot;array&quot;,value:&quot;string&quot;},coordinates:{required:!0,type:&quot;array&quot;,length:4,value:{type:&quot;array&quot;,length:2,value:&quot;number&quot;}}},source_image:{type:{required:!0,type:&quot;enum&quot;,values:{image:{}}},url:{required:!0,type:&quot;string&quot;},coordinates:{required:!0,type:&quot;array&quot;,length:4,value:{type:&quot;array&quot;,length:2,value:&quot;number&quot;}}},layer:{id:{type:&quot;string&quot;,required:!0},type:{type:&quot;enum&quot;,values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},&quot;fill-extrusion&quot;:{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:&quot;*&quot;},source:{type:&quot;string&quot;},&quot;source-layer&quot;:{type:&quot;string&quot;},minzoom:{type:&quot;number&quot;,minimum:0,maximum:24},maxzoom:{type:&quot;number&quot;,minimum:0,maximum:24},filter:{type:&quot;filter&quot;},layout:{type:&quot;layout&quot;},paint:{type:&quot;paint&quot;}},layout:[&quot;layout_fill&quot;,&quot;layout_line&quot;,&quot;layout_circle&quot;,&quot;layout_heatmap&quot;,&quot;layout_fill-extrusion&quot;,&quot;layout_symbol&quot;,&quot;layout_raster&quot;,&quot;layout_hillshade&quot;,&quot;layout_background&quot;],layout_background:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_fill:{&quot;fill-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_circle:{&quot;circle-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_heatmap:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},&quot;layout_fill-extrusion&quot;:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_line:{&quot;line-cap&quot;:{type:&quot;enum&quot;,values:{butt:{},round:{},square:{}},default:&quot;butt&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-join&quot;:{type:&quot;enum&quot;,values:{bevel:{},round:{},miter:{}},default:&quot;miter&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-miter-limit&quot;:{type:&quot;number&quot;,default:2,requires:[{&quot;line-join&quot;:&quot;miter&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-round-limit&quot;:{type:&quot;number&quot;,default:1.05,requires:[{&quot;line-join&quot;:&quot;round&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_symbol:{&quot;symbol-placement&quot;:{type:&quot;enum&quot;,values:{point:{},line:{},&quot;line-center&quot;:{}},default:&quot;point&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-spacing&quot;:{type:&quot;number&quot;,default:250,minimum:1,units:&quot;pixels&quot;,requires:[{&quot;symbol-placement&quot;:&quot;line&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-avoid-edges&quot;:{type:&quot;boolean&quot;,default:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;symbol-z-order&quot;:{type:&quot;enum&quot;,values:{auto:{},&quot;viewport-y&quot;:{},source:{}},default:&quot;auto&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-allow-overlap&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-ignore-placement&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-optional&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;,&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-rotation-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-size&quot;:{type:&quot;number&quot;,default:1,minimum:0,units:&quot;factor of the original icon size&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-text-fit&quot;:{type:&quot;enum&quot;,values:{none:{},width:{},height:{},both:{}},default:&quot;none&quot;,requires:[&quot;icon-image&quot;,&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-text-fit-padding&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[0,0,0,0],units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;,&quot;text-field&quot;,{&quot;icon-text-fit&quot;:[&quot;both&quot;,&quot;width&quot;,&quot;height&quot;]}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-image&quot;:{type:&quot;resolvedImage&quot;,tokens:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-padding&quot;:{type:&quot;number&quot;,default:2,minimum:0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-keep-upright&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;,{&quot;icon-rotation-alignment&quot;:&quot;map&quot;},{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-offset&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-anchor&quot;:{type:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},default:&quot;center&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-rotation-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-field&quot;:{type:&quot;formatted&quot;,default:&quot;&quot;,tokens:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-font&quot;:{type:&quot;array&quot;,value:&quot;string&quot;,default:[&quot;Open Sans Regular&quot;,&quot;Arial Unicode MS Regular&quot;],requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-size&quot;:{type:&quot;number&quot;,default:16,minimum:0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-max-width&quot;:{type:&quot;number&quot;,default:10,minimum:0,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-line-height&quot;:{type:&quot;number&quot;,default:1.2,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-letter-spacing&quot;:{type:&quot;number&quot;,default:0,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-justify&quot;:{type:&quot;enum&quot;,values:{auto:{},left:{},center:{},right:{}},default:&quot;center&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-radial-offset&quot;:{type:&quot;number&quot;,units:&quot;ems&quot;,default:0,requires:[&quot;text-field&quot;],&quot;property-type&quot;:&quot;data-driven&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]}},&quot;text-variable-anchor&quot;:{type:&quot;array&quot;,value:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;point&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-anchor&quot;:{type:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},default:&quot;center&quot;,requires:[&quot;text-field&quot;,{&quot;!&quot;:&quot;text-variable-anchor&quot;}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-max-angle&quot;:{type:&quot;number&quot;,default:45,units:&quot;degrees&quot;,requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-writing-mode&quot;:{type:&quot;array&quot;,value:&quot;enum&quot;,values:{horizontal:{},vertical:{}},requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;point&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-padding&quot;:{type:&quot;number&quot;,default:2,minimum:0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-keep-upright&quot;:{type:&quot;boolean&quot;,default:!0,requires:[&quot;text-field&quot;,{&quot;text-rotation-alignment&quot;:&quot;map&quot;},{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-transform&quot;:{type:&quot;enum&quot;,values:{none:{},uppercase:{},lowercase:{}},default:&quot;none&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-offset&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,units:&quot;ems&quot;,length:2,default:[0,0],requires:[&quot;text-field&quot;,{&quot;!&quot;:&quot;text-radial-offset&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-allow-overlap&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-ignore-placement&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-optional&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;,&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_raster:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_hillshade:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},filter:{type:&quot;array&quot;,value:&quot;*&quot;},filter_operator:{type:&quot;enum&quot;,values:{&quot;==&quot;:{},&quot;!=&quot;:{},&quot;&gt;&quot;:{},&quot;&gt;=&quot;:{},&quot;&lt;&quot;:{},&quot;&lt;=&quot;:{},in:{},&quot;!in&quot;:{},all:{},any:{},none:{},has:{},&quot;!has&quot;:{},within:{}}},geometry_type:{type:&quot;enum&quot;,values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:&quot;expression&quot;},stops:{type:&quot;array&quot;,value:&quot;function_stop&quot;},base:{type:&quot;number&quot;,default:1,minimum:0},property:{type:&quot;string&quot;,default:&quot;$zoom&quot;},type:{type:&quot;enum&quot;,values:{identity:{},exponential:{},interval:{},categorical:{}},default:&quot;exponential&quot;},colorSpace:{type:&quot;enum&quot;,values:{rgb:{},lab:{},hcl:{}},default:&quot;rgb&quot;},default:{type:&quot;*&quot;,required:!1}},function_stop:{type:&quot;array&quot;,minimum:0,maximum:24,value:[&quot;number&quot;,&quot;color&quot;],length:2},expression:{type:&quot;array&quot;,value:&quot;*&quot;,minimum:1},expression_name:{type:&quot;enum&quot;,values:{let:{group:&quot;Variable binding&quot;},var:{group:&quot;Variable binding&quot;},literal:{group:&quot;Types&quot;},array:{group:&quot;Types&quot;},at:{group:&quot;Lookup&quot;},in:{group:&quot;Lookup&quot;},&quot;index-of&quot;:{group:&quot;Lookup&quot;},slice:{group:&quot;Lookup&quot;},case:{group:&quot;Decision&quot;},match:{group:&quot;Decision&quot;},coalesce:{group:&quot;Decision&quot;},step:{group:&quot;Ramps, scales, curves&quot;},interpolate:{group:&quot;Ramps, scales, curves&quot;},&quot;interpolate-hcl&quot;:{group:&quot;Ramps, scales, curves&quot;},&quot;interpolate-lab&quot;:{group:&quot;Ramps, scales, curves&quot;},ln2:{group:&quot;Math&quot;},pi:{group:&quot;Math&quot;},e:{group:&quot;Math&quot;},typeof:{group:&quot;Types&quot;},string:{group:&quot;Types&quot;},number:{group:&quot;Types&quot;},boolean:{group:&quot;Types&quot;},object:{group:&quot;Types&quot;},collator:{group:&quot;Types&quot;},format:{group:&quot;Types&quot;},image:{group:&quot;Types&quot;},&quot;number-format&quot;:{group:&quot;Types&quot;},&quot;to-string&quot;:{group:&quot;Types&quot;},&quot;to-number&quot;:{group:&quot;Types&quot;},&quot;to-boolean&quot;:{group:&quot;Types&quot;},&quot;to-rgba&quot;:{group:&quot;Color&quot;},&quot;to-color&quot;:{group:&quot;Types&quot;},rgb:{group:&quot;Color&quot;},rgba:{group:&quot;Color&quot;},get:{group:&quot;Lookup&quot;},has:{group:&quot;Lookup&quot;},length:{group:&quot;Lookup&quot;},properties:{group:&quot;Feature data&quot;},&quot;feature-state&quot;:{group:&quot;Feature data&quot;},&quot;geometry-type&quot;:{group:&quot;Feature data&quot;},id:{group:&quot;Feature data&quot;},zoom:{group:&quot;Zoom&quot;},&quot;heatmap-density&quot;:{group:&quot;Heatmap&quot;},&quot;line-progress&quot;:{group:&quot;Feature data&quot;},accumulated:{group:&quot;Feature data&quot;},&quot;+&quot;:{group:&quot;Math&quot;},&quot;*&quot;:{group:&quot;Math&quot;},&quot;-&quot;:{group:&quot;Math&quot;},&quot;/&quot;:{group:&quot;Math&quot;},&quot;%&quot;:{group:&quot;Math&quot;},&quot;^&quot;:{group:&quot;Math&quot;},sqrt:{group:&quot;Math&quot;},log10:{group:&quot;Math&quot;},ln:{group:&quot;Math&quot;},log2:{group:&quot;Math&quot;},sin:{group:&quot;Math&quot;},cos:{group:&quot;Math&quot;},tan:{group:&quot;Math&quot;},asin:{group:&quot;Math&quot;},acos:{group:&quot;Math&quot;},atan:{group:&quot;Math&quot;},min:{group:&quot;Math&quot;},max:{group:&quot;Math&quot;},round:{group:&quot;Math&quot;},abs:{group:&quot;Math&quot;},ceil:{group:&quot;Math&quot;},floor:{group:&quot;Math&quot;},distance:{group:&quot;Math&quot;},&quot;==&quot;:{group:&quot;Decision&quot;},&quot;!=&quot;:{group:&quot;Decision&quot;},&quot;&gt;&quot;:{group:&quot;Decision&quot;},&quot;&lt;&quot;:{group:&quot;Decision&quot;},&quot;&gt;=&quot;:{group:&quot;Decision&quot;},&quot;&lt;=&quot;:{group:&quot;Decision&quot;},all:{group:&quot;Decision&quot;},any:{group:&quot;Decision&quot;},&quot;!&quot;:{group:&quot;Decision&quot;},within:{group:&quot;Decision&quot;},&quot;is-supported-script&quot;:{group:&quot;String&quot;},upcase:{group:&quot;String&quot;},downcase:{group:&quot;String&quot;},concat:{group:&quot;String&quot;},&quot;resolved-locale&quot;:{group:&quot;String&quot;}}},light:{anchor:{type:&quot;enum&quot;,default:&quot;viewport&quot;,values:{map:{},viewport:{}},&quot;property-type&quot;:&quot;data-constant&quot;,transition:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]}},position:{type:&quot;array&quot;,default:[1.15,210,30],length:3,value:&quot;number&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]}},color:{type:&quot;color&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,default:&quot;#ffffff&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},transition:!0},intensity:{type:&quot;number&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},transition:!0}},paint:[&quot;paint_fill&quot;,&quot;paint_line&quot;,&quot;paint_circle&quot;,&quot;paint_heatmap&quot;,&quot;paint_fill-extrusion&quot;,&quot;paint_symbol&quot;,&quot;paint_raster&quot;,&quot;paint_hillshade&quot;,&quot;paint_background&quot;],paint_fill:{&quot;fill-antialias&quot;:{type:&quot;boolean&quot;,default:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-outline-color&quot;:{type:&quot;color&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-pattern&quot;},{&quot;fill-antialias&quot;:!0}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;fill-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;}},&quot;paint_fill-extrusion&quot;:{&quot;fill-extrusion-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-extrusion-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;fill-extrusion-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;},&quot;fill-extrusion-height&quot;:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;meters&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-base&quot;:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;meters&quot;,transition:!0,requires:[&quot;fill-extrusion-height&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-vertical-gradient&quot;:{type:&quot;boolean&quot;,default:!0,transition:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_line:{&quot;line-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;line-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;line-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-width&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-gap-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-offset&quot;:{type:&quot;number&quot;,default:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-dasharray&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,minimum:0,transition:!0,units:&quot;line widths&quot;,requires:[{&quot;!&quot;:&quot;line-pattern&quot;}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;cross-faded&quot;},&quot;line-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;},&quot;line-gradient&quot;:{type:&quot;color&quot;,transition:!1,requires:[{&quot;!&quot;:&quot;line-dasharray&quot;},{&quot;!&quot;:&quot;line-pattern&quot;},{source:&quot;geojson&quot;,has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:[&quot;line-progress&quot;]},&quot;property-type&quot;:&quot;color-ramp&quot;}},paint_circle:{&quot;circle-radius&quot;:{type:&quot;number&quot;,default:5,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-blur&quot;:{type:&quot;number&quot;,default:0,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;circle-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-pitch-scale&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;viewport&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-stroke-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-stroke-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-stroke-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;}},paint_heatmap:{&quot;heatmap-radius&quot;:{type:&quot;number&quot;,default:30,minimum:1,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;heatmap-weight&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;heatmap-intensity&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;heatmap-color&quot;:{type:&quot;color&quot;,default:[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;heatmap-density&quot;],0,&quot;rgba(0, 0, 255, 0)&quot;,.1,&quot;royalblue&quot;,.3,&quot;cyan&quot;,.5,&quot;lime&quot;,.7,&quot;yellow&quot;,1,&quot;red&quot;],transition:!1,expression:{interpolated:!0,parameters:[&quot;heatmap-density&quot;]},&quot;property-type&quot;:&quot;color-ramp&quot;},&quot;heatmap-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_symbol:{&quot;icon-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-color&quot;:{type:&quot;color&quot;,default:&quot;rgba(0, 0, 0, 0)&quot;,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;icon-image&quot;,&quot;icon-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,overridable:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-color&quot;:{type:&quot;color&quot;,default:&quot;rgba(0, 0, 0, 0)&quot;,transition:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;text-field&quot;,&quot;text-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_raster:{&quot;raster-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-hue-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,transition:!0,units:&quot;degrees&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-brightness-min&quot;:{type:&quot;number&quot;,default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-brightness-max&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-saturation&quot;:{type:&quot;number&quot;,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-contrast&quot;:{type:&quot;number&quot;,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-resampling&quot;:{type:&quot;enum&quot;,values:{linear:{},nearest:{}},default:&quot;linear&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-fade-duration&quot;:{type:&quot;number&quot;,default:300,minimum:0,transition:!1,units:&quot;milliseconds&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_hillshade:{&quot;hillshade-illumination-direction&quot;:{type:&quot;number&quot;,default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-illumination-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;viewport&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-exaggeration&quot;:{type:&quot;number&quot;,default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-shadow-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-highlight-color&quot;:{type:&quot;color&quot;,default:&quot;#FFFFFF&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-accent-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_background:{&quot;background-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;background-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;background-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;cross-faded&quot;},&quot;background-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},transition:{duration:{type:&quot;number&quot;,default:300,minimum:0,units:&quot;milliseconds&quot;},delay:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;milliseconds&quot;}},&quot;property-type&quot;:{&quot;data-driven&quot;:{type:&quot;property-type&quot;},&quot;cross-faded&quot;:{type:&quot;property-type&quot;},&quot;cross-faded-data-driven&quot;:{type:&quot;property-type&quot;},&quot;color-ramp&quot;:{type:&quot;property-type&quot;},&quot;data-constant&quot;:{type:&quot;property-type&quot;},constant:{type:&quot;property-type&quot;}},promoteId:{&quot;*&quot;:{type:&quot;string&quot;}}},Ct=function(t,e,r,n){this.message=(t?t+&quot;: &quot;:&quot;&quot;)+r,n&amp;&amp;(this.identifier=n),null!=e&amp;&amp;e.__line__&amp;&amp;(this.line=e.__line__)};function Pt(t){var e=t.key,r=t.value;return r?[new Ct(e,r,&quot;constants have been deprecated as of v8&quot;)]:[]}function It(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}function Ot(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function zt(t){if(Array.isArray(t))return t.map(zt);if(t instanceof Object&amp;&amp;!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var r in t)e[r]=zt(t[r]);return e}return Ot(t)}var Dt=function(t){function e(e,r){t.call(this,r),this.message=r,this.key=e}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(Error),Rt=function(t,e){void 0===e&amp;&amp;(e=[]),this.parent=t,this.bindings={};for(var r=0,n=e;r&lt;n.length;r+=1){var i=n[r],a=i[0],o=i[1];this.bindings[a]=o}};Rt.prototype.concat=function(t){return new Rt(this,t)},Rt.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+&quot; not found in scope.&quot;)},Rt.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&amp;&amp;this.parent.has(t)};var Ft={kind:&quot;null&quot;},Bt={kind:&quot;number&quot;},Nt={kind:&quot;string&quot;},jt={kind:&quot;boolean&quot;},Ut={kind:&quot;color&quot;},Vt={kind:&quot;object&quot;},Ht={kind:&quot;value&quot;},qt={kind:&quot;collator&quot;},Gt={kind:&quot;formatted&quot;},Yt={kind:&quot;resolvedImage&quot;};function Wt(t,e){return{kind:&quot;array&quot;,itemType:t,N:e}}function Xt(t){if(&quot;array&quot;===t.kind){var e=Xt(t.itemType);return&quot;number&quot;==typeof t.N?&quot;array&lt;&quot;+e+&quot;, &quot;+t.N+&quot;&gt;&quot;:&quot;value&quot;===t.itemType.kind?&quot;array&quot;:&quot;array&lt;&quot;+e+&quot;&gt;&quot;}return t.kind}var Zt=[Ft,Bt,Nt,jt,Ut,Gt,Vt,Wt(Ht),Yt];function Jt(t,e){if(&quot;error&quot;===e.kind)return null;if(&quot;array&quot;===t.kind){if(&quot;array&quot;===e.kind&amp;&amp;(0===e.N&amp;&amp;&quot;value&quot;===e.itemType.kind||!Jt(t.itemType,e.itemType))&amp;&amp;(&quot;number&quot;!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(&quot;value&quot;===t.kind)for(var r=0,n=Zt;r&lt;n.length;r+=1){if(!Jt(n[r],e))return null}}return&quot;Expected &quot;+Xt(t)+&quot; but found &quot;+Xt(e)+&quot; instead.&quot;}function Kt(t,e){return e.some((function(e){return e.kind===t.kind}))}function Qt(t,e){return e.some((function(e){return&quot;null&quot;===e?null===t:&quot;array&quot;===e?Array.isArray(t):&quot;object&quot;===e?t&amp;&amp;!Array.isArray(t)&amp;&amp;&quot;object&quot;==typeof t:e===typeof t}))}var $t=e((function(t,e){var r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function n(t){return(t=Math.round(t))&lt;0?0:t&gt;255?255:t}function i(t){return t&lt;0?0:t&gt;1?1:t}function a(t){return&quot;%&quot;===t[t.length-1]?n(parseFloat(t)/100*255):n(parseInt(t))}function o(t){return&quot;%&quot;===t[t.length-1]?i(parseFloat(t)/100):i(parseFloat(t))}function s(t,e,r){return r&lt;0?r+=1:r&gt;1&amp;&amp;(r-=1),6*r&lt;1?t+(e-t)*r*6:2*r&lt;1?e:3*r&lt;2?t+(e-t)*(2/3-r)*6:t}try{e.parseCSSColor=function(t){var e,i=t.replace(/ /g,&quot;&quot;).toLowerCase();if(i in r)return r[i].slice();if(&quot;#&quot;===i[0])return 4===i.length?(e=parseInt(i.substr(1),16))&gt;=0&amp;&amp;e&lt;=4095?[(3840&amp;e)&gt;&gt;4|(3840&amp;e)&gt;&gt;8,240&amp;e|(240&amp;e)&gt;&gt;4,15&amp;e|(15&amp;e)&lt;&lt;4,1]:null:7===i.length&amp;&amp;(e=parseInt(i.substr(1),16))&gt;=0&amp;&amp;e&lt;=16777215?[(16711680&amp;e)&gt;&gt;16,(65280&amp;e)&gt;&gt;8,255&amp;e,1]:null;var l=i.indexOf(&quot;(&quot;),c=i.indexOf(&quot;)&quot;);if(-1!==l&amp;&amp;c+1===i.length){var u=i.substr(0,l),f=i.substr(l+1,c-(l+1)).split(&quot;,&quot;),h=1;switch(u){case&quot;rgba&quot;:if(4!==f.length)return null;h=o(f.pop());case&quot;rgb&quot;:return 3!==f.length?null:[a(f[0]),a(f[1]),a(f[2]),h];case&quot;hsla&quot;:if(4!==f.length)return null;h=o(f.pop());case&quot;hsl&quot;:if(3!==f.length)return null;var p=(parseFloat(f[0])%360+360)%360/360,d=o(f[1]),m=o(f[2]),g=m&lt;=.5?m*(d+1):m+d-m*d,v=2*m-g;return[n(255*s(v,g,p+1/3)),n(255*s(v,g,p)),n(255*s(v,g,p-1/3)),h];default:return null}}return null}}catch(t){}})).parseCSSColor,te=function(t,e,r,n){void 0===n&amp;&amp;(n=1),this.r=t,this.g=e,this.b=r,this.a=n};te.parse=function(t){if(t){if(t instanceof te)return t;if(&quot;string&quot;==typeof t){var e=$t(t);if(e)return new te(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},te.prototype.toString=function(){var t=this.toArray(),e=t[0],r=t[1],n=t[2],i=t[3];return&quot;rgba(&quot;+Math.round(e)+&quot;,&quot;+Math.round(r)+&quot;,&quot;+Math.round(n)+&quot;,&quot;+i+&quot;)&quot;},te.prototype.toArray=function(){var t=this.r,e=this.g,r=this.b,n=this.a;return 0===n?[0,0,0,0]:[255*t/n,255*e/n,255*r/n,n]},te.black=new te(0,0,0,1),te.white=new te(1,1,1,1),te.transparent=new te(0,0,0,0),te.red=new te(1,0,0,1);var ee=function(t,e,r){this.sensitivity=t?e?&quot;variant&quot;:&quot;case&quot;:e?&quot;accent&quot;:&quot;base&quot;,this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:&quot;search&quot;})};ee.prototype.compare=function(t,e){return this.collator.compare(t,e)},ee.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var re=function(t,e,r,n,i){this.text=t,this.image=e,this.scale=r,this.fontStack=n,this.textColor=i},ne=function(t){this.sections=t};ne.fromString=function(t){return new ne([new re(t,null,null,null,null)])},ne.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&amp;&amp;0!==t.image.name.length}))},ne.factory=function(t){return t instanceof ne?t:ne.fromString(t)},ne.prototype.toString=function(){return 0===this.sections.length?&quot;&quot;:this.sections.map((function(t){return t.text})).join(&quot;&quot;)},ne.prototype.serialize=function(){for(var t=[&quot;format&quot;],e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];if(n.image)t.push([&quot;image&quot;,n.image.name]);else{t.push(n.text);var i={};n.fontStack&amp;&amp;(i[&quot;text-font&quot;]=[&quot;literal&quot;,n.fontStack.split(&quot;,&quot;)]),n.scale&amp;&amp;(i[&quot;font-scale&quot;]=n.scale),n.textColor&amp;&amp;(i[&quot;text-color&quot;]=[&quot;rgba&quot;].concat(n.textColor.toArray())),t.push(i)}}return t};var ie=function(t){this.name=t.name,this.available=t.available};function ae(t,e,r,n){return&quot;number&quot;==typeof t&amp;&amp;t&gt;=0&amp;&amp;t&lt;=255&amp;&amp;&quot;number&quot;==typeof e&amp;&amp;e&gt;=0&amp;&amp;e&lt;=255&amp;&amp;&quot;number&quot;==typeof r&amp;&amp;r&gt;=0&amp;&amp;r&lt;=255?void 0===n||&quot;number&quot;==typeof n&amp;&amp;n&gt;=0&amp;&amp;n&lt;=1?null:&quot;Invalid rgba value [&quot;+[t,e,r,n].join(&quot;, &quot;)+&quot;]: 'a' must be between 0 and 1.&quot;:&quot;Invalid rgba value [&quot;+(&quot;number&quot;==typeof n?[t,e,r,n]:[t,e,r]).join(&quot;, &quot;)+&quot;]: 'r', 'g', and 'b' must be between 0 and 255.&quot;}function oe(t){if(null===t)return!0;if(&quot;string&quot;==typeof t)return!0;if(&quot;boolean&quot;==typeof t)return!0;if(&quot;number&quot;==typeof t)return!0;if(t instanceof te)return!0;if(t instanceof ee)return!0;if(t instanceof ne)return!0;if(t instanceof ie)return!0;if(Array.isArray(t)){for(var e=0,r=t;e&lt;r.length;e+=1){if(!oe(r[e]))return!1}return!0}if(&quot;object&quot;==typeof t){for(var n in t)if(!oe(t[n]))return!1;return!0}return!1}function se(t){if(null===t)return Ft;if(&quot;string&quot;==typeof t)return Nt;if(&quot;boolean&quot;==typeof t)return jt;if(&quot;number&quot;==typeof t)return Bt;if(t instanceof te)return Ut;if(t instanceof ee)return qt;if(t instanceof ne)return Gt;if(t instanceof ie)return Yt;if(Array.isArray(t)){for(var e,r=t.length,n=0,i=t;n&lt;i.length;n+=1){var a=se(i[n]);if(e){if(e===a)continue;e=Ht;break}e=a}return Wt(e||Ht,r)}return Vt}function le(t){var e=typeof t;return null===t?&quot;&quot;:&quot;string&quot;===e||&quot;number&quot;===e||&quot;boolean&quot;===e?String(t):t instanceof te||t instanceof ne||t instanceof ie?t.toString():JSON.stringify(t)}ie.prototype.toString=function(){return this.name},ie.fromString=function(t){return t?new ie({name:t,available:!1}):null},ie.prototype.serialize=function(){return[&quot;image&quot;,this.name]};var ce=function(t,e){this.type=t,this.value=e};ce.parse=function(t,e){if(2!==t.length)return e.error(&quot;'literal' expression requires exactly one argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);if(!oe(t[1]))return e.error(&quot;invalid value&quot;);var r=t[1],n=se(r),i=e.expectedType;return&quot;array&quot;!==n.kind||0!==n.N||!i||&quot;array&quot;!==i.kind||&quot;number&quot;==typeof i.N&amp;&amp;0!==i.N||(n=i),new ce(n,r)},ce.prototype.evaluate=function(){return this.value},ce.prototype.eachChild=function(){},ce.prototype.outputDefined=function(){return!0},ce.prototype.serialize=function(){return&quot;array&quot;===this.type.kind||&quot;object&quot;===this.type.kind?[&quot;literal&quot;,this.value]:this.value instanceof te?[&quot;rgba&quot;].concat(this.value.toArray()):this.value instanceof ne?this.value.serialize():this.value};var ue=function(t){this.name=&quot;ExpressionEvaluationError&quot;,this.message=t};ue.prototype.toJSON=function(){return this.message};var fe={string:Nt,number:Bt,boolean:jt,object:Vt},he=function(t,e){this.type=t,this.args=e};he.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r,n=1,i=t[0];if(&quot;array&quot;===i){var a,o;if(t.length&gt;2){var s=t[1];if(&quot;string&quot;!=typeof s||!(s in fe)||&quot;object&quot;===s)return e.error('The item type argument of &quot;array&quot; must be one of string, number, boolean',1);a=fe[s],n++}else a=Ht;if(t.length&gt;3){if(null!==t[2]&amp;&amp;(&quot;number&quot;!=typeof t[2]||t[2]&lt;0||t[2]!==Math.floor(t[2])))return e.error('The length argument to &quot;array&quot; must be a positive integer literal',2);o=t[2],n++}r=Wt(a,o)}else r=fe[i];for(var l=[];n&lt;t.length;n++){var c=e.parse(t[n],n,Ht);if(!c)return null;l.push(c)}return new he(r,l)},he.prototype.evaluate=function(t){for(var e=0;e&lt;this.args.length;e++){var r=this.args[e].evaluate(t);if(!Jt(this.type,se(r)))return r;if(e===this.args.length-1)throw new ue(&quot;Expected value to be of type &quot;+Xt(this.type)+&quot;, but found &quot;+Xt(se(r))+&quot; instead.&quot;)}return null},he.prototype.eachChild=function(t){this.args.forEach(t)},he.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},he.prototype.serialize=function(){var t=this.type,e=[t.kind];if(&quot;array&quot;===t.kind){var r=t.itemType;if(&quot;string&quot;===r.kind||&quot;number&quot;===r.kind||&quot;boolean&quot;===r.kind){e.push(r.kind);var n=t.N;(&quot;number&quot;==typeof n||this.args.length&gt;1)&amp;&amp;e.push(n)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var pe=function(t){this.type=Gt,this.sections=t};pe.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r=t[1];if(!Array.isArray(r)&amp;&amp;&quot;object&quot;==typeof r)return e.error(&quot;First argument must be an image or text section.&quot;);for(var n=[],i=!1,a=1;a&lt;=t.length-1;++a){var o=t[a];if(i&amp;&amp;&quot;object&quot;==typeof o&amp;&amp;!Array.isArray(o)){i=!1;var s=null;if(o[&quot;font-scale&quot;]&amp;&amp;!(s=e.parse(o[&quot;font-scale&quot;],1,Bt)))return null;var l=null;if(o[&quot;text-font&quot;]&amp;&amp;!(l=e.parse(o[&quot;text-font&quot;],1,Wt(Nt))))return null;var c=null;if(o[&quot;text-color&quot;]&amp;&amp;!(c=e.parse(o[&quot;text-color&quot;],1,Ut)))return null;var u=n[n.length-1];u.scale=s,u.font=l,u.textColor=c}else{var f=e.parse(t[a],1,Ht);if(!f)return null;var h=f.type.kind;if(&quot;string&quot;!==h&amp;&amp;&quot;value&quot;!==h&amp;&amp;&quot;null&quot;!==h&amp;&amp;&quot;resolvedImage&quot;!==h)return e.error(&quot;Formatted text type must be 'string', 'value', 'image' or 'null'.&quot;);i=!0,n.push({content:f,scale:null,font:null,textColor:null})}}return new pe(n)},pe.prototype.evaluate=function(t){return new ne(this.sections.map((function(e){var r=e.content.evaluate(t);return se(r)===Yt?new re(&quot;&quot;,r,null,null,null):new re(le(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(&quot;,&quot;):null,e.textColor?e.textColor.evaluate(t):null)})))},pe.prototype.eachChild=function(t){for(var e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];t(n.content),n.scale&amp;&amp;t(n.scale),n.font&amp;&amp;t(n.font),n.textColor&amp;&amp;t(n.textColor)}},pe.prototype.outputDefined=function(){return!1},pe.prototype.serialize=function(){for(var t=[&quot;format&quot;],e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];t.push(n.content.serialize());var i={};n.scale&amp;&amp;(i[&quot;font-scale&quot;]=n.scale.serialize()),n.font&amp;&amp;(i[&quot;text-font&quot;]=n.font.serialize()),n.textColor&amp;&amp;(i[&quot;text-color&quot;]=n.textColor.serialize()),t.push(i)}return t};var de=function(t){this.type=Yt,this.input=t};de.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected two arguments.&quot;);var r=e.parse(t[1],1,Nt);return r?new de(r):e.error(&quot;No image name provided.&quot;)},de.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=ie.fromString(e);return r&amp;&amp;t.availableImages&amp;&amp;(r.available=t.availableImages.indexOf(e)&gt;-1),r},de.prototype.eachChild=function(t){t(this.input)},de.prototype.outputDefined=function(){return!1},de.prototype.serialize=function(){return[&quot;image&quot;,this.input.serialize()]};var me={&quot;to-boolean&quot;:jt,&quot;to-color&quot;:Ut,&quot;to-number&quot;:Bt,&quot;to-string&quot;:Nt},ge=function(t,e){this.type=t,this.args=e};ge.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r=t[0];if((&quot;to-boolean&quot;===r||&quot;to-string&quot;===r)&amp;&amp;2!==t.length)return e.error(&quot;Expected one argument.&quot;);for(var n=me[r],i=[],a=1;a&lt;t.length;a++){var o=e.parse(t[a],a,Ht);if(!o)return null;i.push(o)}return new ge(n,i)},ge.prototype.evaluate=function(t){if(&quot;boolean&quot;===this.type.kind)return Boolean(this.args[0].evaluate(t));if(&quot;color&quot;===this.type.kind){for(var e,r,n=0,i=this.args;n&lt;i.length;n+=1){if(r=null,(e=i[n].evaluate(t))instanceof te)return e;if(&quot;string&quot;==typeof e){var a=t.parseColor(e);if(a)return a}else if(Array.isArray(e)&amp;&amp;!(r=e.length&lt;3||e.length&gt;4?&quot;Invalid rbga value &quot;+JSON.stringify(e)+&quot;: expected an array containing either three or four numeric values.&quot;:ae(e[0],e[1],e[2],e[3])))return new te(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new ue(r||&quot;Could not parse color from value '&quot;+(&quot;string&quot;==typeof e?e:String(JSON.stringify(e)))+&quot;'&quot;)}if(&quot;number&quot;===this.type.kind){for(var o=null,s=0,l=this.args;s&lt;l.length;s+=1){if(null===(o=l[s].evaluate(t)))return 0;var c=Number(o);if(!isNaN(c))return c}throw new ue(&quot;Could not convert &quot;+JSON.stringify(o)+&quot; to number.&quot;)}return&quot;formatted&quot;===this.type.kind?ne.fromString(le(this.args[0].evaluate(t))):&quot;resolvedImage&quot;===this.type.kind?ie.fromString(le(this.args[0].evaluate(t))):le(this.args[0].evaluate(t))},ge.prototype.eachChild=function(t){this.args.forEach(t)},ge.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ge.prototype.serialize=function(){if(&quot;formatted&quot;===this.type.kind)return new pe([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(&quot;resolvedImage&quot;===this.type.kind)return new de(this.args[0]).serialize();var t=[&quot;to-&quot;+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};var ve=[&quot;Unknown&quot;,&quot;Point&quot;,&quot;LineString&quot;,&quot;Polygon&quot;],ye=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};ye.prototype.id=function(){return this.feature&amp;&amp;&quot;id&quot;in this.feature?this.feature.id:null},ye.prototype.geometryType=function(){return this.feature?&quot;number&quot;==typeof this.feature.type?ve[this.feature.type]:this.feature.type:null},ye.prototype.geometry=function(){return this.feature&amp;&amp;&quot;geometry&quot;in this.feature?this.feature.geometry:null},ye.prototype.canonicalID=function(){return this.canonical},ye.prototype.properties=function(){return this.feature&amp;&amp;this.feature.properties||{}},ye.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=te.parse(t)),e};var xe=function(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n};xe.prototype.evaluate=function(t){return this._evaluate(t,this.args)},xe.prototype.eachChild=function(t){this.args.forEach(t)},xe.prototype.outputDefined=function(){return!1},xe.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},xe.parse=function(t,e){var r,n=t[0],i=xe.definitions[n];if(!i)return e.error('Unknown expression &quot;'+n+'&quot;. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0);for(var a=Array.isArray(i)?i[0]:i.type,o=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=o.filter((function(e){var r=e[0];return!Array.isArray(r)||r.length===t.length-1})),l=null,c=0,u=s;c&lt;u.length;c+=1){var f=u[c],h=f[0],p=f[1];l=new Ue(e.registry,e.path,null,e.scope);for(var d=[],m=!1,g=1;g&lt;t.length;g++){var v=t[g],y=Array.isArray(h)?h[g-1]:h.type,x=l.parse(v,1+d.length,y);if(!x){m=!0;break}d.push(x)}if(!m)if(Array.isArray(h)&amp;&amp;h.length!==d.length)l.error(&quot;Expected &quot;+h.length+&quot; arguments, but found &quot;+d.length+&quot; instead.&quot;);else{for(var b=0;b&lt;d.length;b++){var _=Array.isArray(h)?h[b]:h.type,w=d[b];l.concat(b+1).checkSubtype(_,w.type)}if(0===l.errors.length)return new xe(n,a,p,d)}}if(1===s.length)(r=e.errors).push.apply(r,l.errors);else{for(var T=(s.length?s:o).map((function(t){var e,r=t[0];return e=r,Array.isArray(e)?&quot;(&quot;+e.map(Xt).join(&quot;, &quot;)+&quot;)&quot;:&quot;(&quot;+Xt(e.type)+&quot;...)&quot;})).join(&quot; | &quot;),k=[],A=1;A&lt;t.length;A++){var M=e.parse(t[A],1+k.length);if(!M)return null;k.push(Xt(M.type))}e.error(&quot;Expected arguments of type &quot;+T+&quot;, but found (&quot;+k.join(&quot;, &quot;)+&quot;) instead.&quot;)}return null},xe.register=function(t,e){for(var r in xe.definitions=e,e)t[r]=xe};var be=function(t,e,r){this.type=qt,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};be.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected one argument.&quot;);var r=t[1];if(&quot;object&quot;!=typeof r||Array.isArray(r))return e.error(&quot;Collator options argument must be an object.&quot;);var n=e.parse(void 0!==r[&quot;case-sensitive&quot;]&amp;&amp;r[&quot;case-sensitive&quot;],1,jt);if(!n)return null;var i=e.parse(void 0!==r[&quot;diacritic-sensitive&quot;]&amp;&amp;r[&quot;diacritic-sensitive&quot;],1,jt);if(!i)return null;var a=null;return r.locale&amp;&amp;!(a=e.parse(r.locale,1,Nt))?null:new be(n,i,a)},be.prototype.evaluate=function(t){return new ee(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},be.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&amp;&amp;t(this.locale)},be.prototype.outputDefined=function(){return!1},be.prototype.serialize=function(){var t={};return t[&quot;case-sensitive&quot;]=this.caseSensitive.serialize(),t[&quot;diacritic-sensitive&quot;]=this.diacriticSensitive.serialize(),this.locale&amp;&amp;(t.locale=this.locale.serialize()),[&quot;collator&quot;,t]};function _e(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function we(t,e){return!(t[0]&lt;=e[0])&amp;&amp;(!(t[2]&gt;=e[2])&amp;&amp;(!(t[1]&lt;=e[1])&amp;&amp;!(t[3]&gt;=e[3])))}function Te(t,e){var r,n=(180+t[0])/360,i=(r=t[1],(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+r*Math.PI/360)))/360),a=Math.pow(2,e.z);return[Math.round(n*a*8192),Math.round(i*a*8192)]}function ke(t,e,r){return e[1]&gt;t[1]!=r[1]&gt;t[1]&amp;&amp;t[0]&lt;(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function Ae(t,e){for(var r,n,i,a,o,s,l,c=!1,u=0,f=e.length;u&lt;f;u++)for(var h=e[u],p=0,d=h.length;p&lt;d-1;p++){if(r=t,n=h[p],i=h[p+1],a=void 0,o=void 0,s=void 0,l=void 0,a=r[0]-n[0],o=r[1]-n[1],s=r[0]-i[0],l=r[1]-i[1],a*l-s*o==0&amp;&amp;a*s&lt;=0&amp;&amp;o*l&lt;=0)return!1;ke(t,h[p],h[p+1])&amp;&amp;(c=!c)}return c}function Me(t,e){for(var r=0;r&lt;e.length;r++)if(Ae(t,e[r]))return!0;return!1}function Se(t,e,r,n){var i=t[0]-r[0],a=t[1]-r[1],o=e[0]-r[0],s=e[1]-r[1],l=n[0]-r[0],c=n[1]-r[1],u=i*c-l*a,f=o*c-l*s;return u&gt;0&amp;&amp;f&lt;0||u&lt;0&amp;&amp;f&gt;0}function Ee(t,e,r){for(var n=0,i=r;n&lt;i.length;n+=1)for(var a=i[n],o=0;o&lt;a.length-1;++o)if(s=t,l=e,c=a[o],u=a[o+1],f=void 0,h=void 0,p=void 0,d=void 0,p=[l[0]-s[0],l[1]-s[1]],d=[u[0]-c[0],u[1]-c[1]],0!=(f=d)[0]*(h=p)[1]-f[1]*h[0]&amp;&amp;Se(s,l,c,u)&amp;&amp;Se(c,u,s,l))return!0;var s,l,c,u,f,h,p,d;return!1}function Le(t,e){for(var r=0;r&lt;t.length;++r)if(!Ae(t[r],e))return!1;for(var n=0;n&lt;t.length-1;++n)if(Ee(t[n],t[n+1],e))return!1;return!0}function Ce(t,e){for(var r=0;r&lt;e.length;r++)if(Le(t,e[r]))return!0;return!1}function Pe(t,e,r){for(var n=[],i=0;i&lt;t.length;i++){for(var a=[],o=0;o&lt;t[i].length;o++){var s=Te(t[i][o],r);_e(e,s),a.push(s)}n.push(a)}return n}function Ie(t,e,r){for(var n=[],i=0;i&lt;t.length;i++){var a=Pe(t[i],e,r);n.push(a)}return n}function Oe(t,e,r,n){if(t[0]&lt;r[0]||t[0]&gt;r[2]){var i=.5*n,a=t[0]-r[0]&gt;i?-n:r[0]-t[0]&gt;i?n:0;0===a&amp;&amp;(a=t[0]-r[2]&gt;i?-n:r[2]-t[0]&gt;i?n:0),t[0]+=a}_e(e,t)}function ze(t,e,r,n){for(var i=8192*Math.pow(2,n.z),a=[8192*n.x,8192*n.y],o=[],s=0,l=t;s&lt;l.length;s+=1)for(var c=0,u=l[s];c&lt;u.length;c+=1){var f=u[c],h=[f.x+a[0],f.y+a[1]];Oe(h,e,r,i),o.push(h)}return o}function De(t,e,r,n){for(var i,a=8192*Math.pow(2,n.z),o=[8192*n.x,8192*n.y],s=[],l=0,c=t;l&lt;c.length;l+=1){for(var u=[],f=0,h=c[l];f&lt;h.length;f+=1){var p=h[f],d=[p.x+o[0],p.y+o[1]];_e(e,d),u.push(d)}s.push(u)}if(e[2]-e[0]&lt;=a/2){(i=e)[0]=i[1]=1/0,i[2]=i[3]=-1/0;for(var m=0,g=s;m&lt;g.length;m+=1)for(var v=0,y=g[m];v&lt;y.length;v+=1){Oe(y[v],e,r,a)}}return s}var Re=function(t,e){this.type=jt,this.geojson=t,this.geometries=e};function Fe(t){if(t instanceof xe){if(&quot;get&quot;===t.name&amp;&amp;1===t.args.length)return!1;if(&quot;feature-state&quot;===t.name)return!1;if(&quot;has&quot;===t.name&amp;&amp;1===t.args.length)return!1;if(&quot;properties&quot;===t.name||&quot;geometry-type&quot;===t.name||&quot;id&quot;===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof Re)return!1;var e=!0;return t.eachChild((function(t){e&amp;&amp;!Fe(t)&amp;&amp;(e=!1)})),e}function Be(t){if(t instanceof xe&amp;&amp;&quot;feature-state&quot;===t.name)return!1;var e=!0;return t.eachChild((function(t){e&amp;&amp;!Be(t)&amp;&amp;(e=!1)})),e}function Ne(t,e){if(t instanceof xe&amp;&amp;e.indexOf(t.name)&gt;=0)return!1;var r=!0;return t.eachChild((function(t){r&amp;&amp;!Ne(t,e)&amp;&amp;(r=!1)})),r}Re.parse=function(t,e){if(2!==t.length)return e.error(&quot;'within' expression requires exactly one argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);if(oe(t[1])){var r=t[1];if(&quot;FeatureCollection&quot;===r.type)for(var n=0;n&lt;r.features.length;++n){var i=r.features[n].geometry.type;if(&quot;Polygon&quot;===i||&quot;MultiPolygon&quot;===i)return new Re(r,r.features[n].geometry)}else if(&quot;Feature&quot;===r.type){var a=r.geometry.type;if(&quot;Polygon&quot;===a||&quot;MultiPolygon&quot;===a)return new Re(r,r.geometry)}else if(&quot;Polygon&quot;===r.type||&quot;MultiPolygon&quot;===r.type)return new Re(r,r)}return e.error(&quot;'within' expression requires valid geojson object that contains polygon geometry type.&quot;)},Re.prototype.evaluate=function(t){if(null!=t.geometry()&amp;&amp;null!=t.canonicalID()){if(&quot;Point&quot;===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(&quot;Polygon&quot;===e.type){var a=Pe(e.coordinates,n,i),o=ze(t.geometry(),r,n,i);if(!we(r,n))return!1;for(var s=0,l=o;s&lt;l.length;s+=1){if(!Ae(l[s],a))return!1}}if(&quot;MultiPolygon&quot;===e.type){var c=Ie(e.coordinates,n,i),u=ze(t.geometry(),r,n,i);if(!we(r,n))return!1;for(var f=0,h=u;f&lt;h.length;f+=1){if(!Me(h[f],c))return!1}}return!0}(t,this.geometries);if(&quot;LineString&quot;===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(&quot;Polygon&quot;===e.type){var a=Pe(e.coordinates,n,i),o=De(t.geometry(),r,n,i);if(!we(r,n))return!1;for(var s=0,l=o;s&lt;l.length;s+=1){if(!Le(l[s],a))return!1}}if(&quot;MultiPolygon&quot;===e.type){var c=Ie(e.coordinates,n,i),u=De(t.geometry(),r,n,i);if(!we(r,n))return!1;for(var f=0,h=u;f&lt;h.length;f+=1){if(!Ce(h[f],c))return!1}}return!0}(t,this.geometries)}return!1},Re.prototype.eachChild=function(){},Re.prototype.outputDefined=function(){return!0},Re.prototype.serialize=function(){return[&quot;within&quot;,this.geojson]};var je=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};je.parse=function(t,e){if(2!==t.length||&quot;string&quot;!=typeof t[1])return e.error(&quot;'var' expression requires exactly one string literal argument.&quot;);var r=t[1];return e.scope.has(r)?new je(r,e.scope.get(r)):e.error('Unknown variable &quot;'+r+'&quot;. Make sure &quot;'+r+'&quot; has been bound in an enclosing &quot;let&quot; expression before using it.',1)},je.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},je.prototype.eachChild=function(){},je.prototype.outputDefined=function(){return!1},je.prototype.serialize=function(){return[&quot;var&quot;,this.name]};var Ue=function(t,e,r,n,i){void 0===e&amp;&amp;(e=[]),void 0===n&amp;&amp;(n=new Rt),void 0===i&amp;&amp;(i=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return&quot;[&quot;+t+&quot;]&quot;})).join(&quot;&quot;),this.scope=n,this.errors=i,this.expectedType=r};function Ve(t,e){for(var r,n,i=t.length-1,a=0,o=i,s=0;a&lt;=o;)if(r=t[s=Math.floor((a+o)/2)],n=t[s+1],r&lt;=e){if(s===i||e&lt;n)return s;a=s+1}else{if(!(r&gt;e))throw new ue(&quot;Input is not a number.&quot;);o=s-1}return 0}Ue.prototype.parse=function(t,e,r,n,i){return void 0===i&amp;&amp;(i={}),e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)},Ue.prototype._parse=function(t,e){function r(t,e,r){return&quot;assert&quot;===r?new he(e,[t]):&quot;coerce&quot;===r?new ge(e,[t]):t}if(null!==t&amp;&amp;&quot;string&quot;!=typeof t&amp;&amp;&quot;boolean&quot;!=typeof t&amp;&amp;&quot;number&quot;!=typeof t||(t=[&quot;literal&quot;,t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use [&quot;literal&quot;, []].');var n=t[0];if(&quot;string&quot;!=typeof n)return this.error(&quot;Expression name must be a string, but found &quot;+typeof n+' instead. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0),null;var i=this.registry[n];if(i){var a=i.parse(t,this);if(!a)return null;if(this.expectedType){var o=this.expectedType,s=a.type;if(&quot;string&quot;!==o.kind&amp;&amp;&quot;number&quot;!==o.kind&amp;&amp;&quot;boolean&quot;!==o.kind&amp;&amp;&quot;object&quot;!==o.kind&amp;&amp;&quot;array&quot;!==o.kind||&quot;value&quot;!==s.kind)if(&quot;color&quot;!==o.kind&amp;&amp;&quot;formatted&quot;!==o.kind&amp;&amp;&quot;resolvedImage&quot;!==o.kind||&quot;value&quot;!==s.kind&amp;&amp;&quot;string&quot;!==s.kind){if(this.checkSubtype(o,s))return null}else a=r(a,o,e.typeAnnotation||&quot;coerce&quot;);else a=r(a,o,e.typeAnnotation||&quot;assert&quot;)}if(!(a instanceof ce)&amp;&amp;&quot;resolvedImage&quot;!==a.type.kind&amp;&amp;function t(e){if(e instanceof je)return t(e.boundExpression);if(e instanceof xe&amp;&amp;&quot;error&quot;===e.name)return!1;if(e instanceof be)return!1;if(e instanceof Re)return!1;var r=e instanceof ge||e instanceof he,n=!0;if(e.eachChild((function(e){n=r?n&amp;&amp;t(e):n&amp;&amp;e instanceof ce})),!n)return!1;return Fe(e)&amp;&amp;Ne(e,[&quot;zoom&quot;,&quot;heatmap-density&quot;,&quot;line-progress&quot;,&quot;accumulated&quot;,&quot;is-supported-script&quot;])}(a)){var l=new ye;try{a=new ce(a.type,a.evaluate(l))}catch(t){return this.error(t.message),null}}return a}return this.error('Unknown expression &quot;'+n+'&quot;. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0)}return void 0===t?this.error(&quot;'undefined' value invalid. Use null instead.&quot;):&quot;object&quot;==typeof t?this.error('Bare objects invalid. Use [&quot;literal&quot;, {...}] instead.'):this.error(&quot;Expected an array, but found &quot;+typeof t+&quot; instead.&quot;)},Ue.prototype.concat=function(t,e,r){var n=&quot;number&quot;==typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new Ue(this.registry,n,e||null,i,this.errors)},Ue.prototype.error=function(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];var n=&quot;&quot;+this.key+e.map((function(t){return&quot;[&quot;+t+&quot;]&quot;})).join(&quot;&quot;);this.errors.push(new Dt(n,t))},Ue.prototype.checkSubtype=function(t,e){var r=Jt(t,e);return r&amp;&amp;this.error(r),r};var He=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,i=r;n&lt;i.length;n+=1){var a=i[n],o=a[0],s=a[1];this.labels.push(o),this.outputs.push(s)}};function qe(t,e,r){return t*(1-r)+e*r}He.parse=function(t,e){if(t.length-1&lt;4)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if((t.length-1)%2!=0)return e.error(&quot;Expected an even number of arguments.&quot;);var r=e.parse(t[1],1,Bt);if(!r)return null;var n=[],i=null;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(i=e.expectedType);for(var a=1;a&lt;t.length;a+=2){var o=1===a?-1/0:t[a],s=t[a+1],l=a,c=a+1;if(&quot;number&quot;!=typeof o)return e.error('Input/output pairs for &quot;step&quot; expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(n.length&amp;&amp;n[n.length-1][0]&gt;=o)return e.error('Input/output pairs for &quot;step&quot; expressions must be arranged with input values in strictly ascending order.',l);var u=e.parse(s,c,i);if(!u)return null;i=i||u.type,n.push([o,u])}return new He(i,r,n)},He.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n&lt;=e[0])return r[0].evaluate(t);var i=e.length;return n&gt;=e[i-1]?r[i-1].evaluate(t):r[Ve(e,n)].evaluate(t)},He.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1){t(r[e])}},He.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},He.prototype.serialize=function(){for(var t=[&quot;step&quot;,this.input.serialize()],e=0;e&lt;this.labels.length;e++)e&gt;0&amp;&amp;t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var Ge=Object.freeze({__proto__:null,number:qe,color:function(t,e,r){return new te(qe(t.r,e.r,r),qe(t.g,e.g,r),qe(t.b,e.b,r),qe(t.a,e.a,r))},array:function(t,e,r){return t.map((function(t,n){return qe(t,e[n],r)}))}}),Ye=6/29,We=3*Ye*Ye,Xe=Math.PI/180,Ze=180/Math.PI;function Je(t){return t&gt;.008856451679035631?Math.pow(t,1/3):t/We+4/29}function Ke(t){return t&gt;Ye?t*t*t:We*(t-4/29)}function Qe(t){return 255*(t&lt;=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function $e(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function tr(t){var e=$e(t.r),r=$e(t.g),n=$e(t.b),i=Je((.4124564*e+.3575761*r+.1804375*n)/.95047),a=Je((.2126729*e+.7151522*r+.072175*n)/1);return{l:116*a-16,a:500*(i-a),b:200*(a-Je((.0193339*e+.119192*r+.9503041*n)/1.08883)),alpha:t.a}}function er(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=1*Ke(e),r=.95047*Ke(r),n=1.08883*Ke(n),new te(Qe(3.2404542*r-1.5371385*e-.4985314*n),Qe(-.969266*r+1.8760108*e+.041556*n),Qe(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function rr(t,e,r){var n=e-t;return t+r*(n&gt;180||n&lt;-180?n-360*Math.round(n/360):n)}var nr={forward:tr,reverse:er,interpolate:function(t,e,r){return{l:qe(t.l,e.l,r),a:qe(t.a,e.a,r),b:qe(t.b,e.b,r),alpha:qe(t.alpha,e.alpha,r)}}},ir={forward:function(t){var e=tr(t),r=e.l,n=e.a,i=e.b,a=Math.atan2(i,n)*Ze;return{h:a&lt;0?a+360:a,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}},reverse:function(t){var e=t.h*Xe,r=t.c;return er({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:rr(t.h,e.h,r),c:qe(t.c,e.c,r),l:qe(t.l,e.l,r),alpha:qe(t.alpha,e.alpha,r)}}},ar=Object.freeze({__proto__:null,lab:nr,hcl:ir}),or=function(t,e,r,n,i){this.type=t,this.operator=e,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var a=0,o=i;a&lt;o.length;a+=1){var s=o[a],l=s[0],c=s[1];this.labels.push(l),this.outputs.push(c)}};function sr(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}or.interpolationFactor=function(t,e,n,i){var a=0;if(&quot;exponential&quot;===t.name)a=sr(e,t.base,n,i);else if(&quot;linear&quot;===t.name)a=sr(e,1,n,i);else if(&quot;cubic-bezier&quot;===t.name){var o=t.controlPoints;a=new r(o[0],o[1],o[2],o[3]).solve(sr(e,1,n,i))}return a},or.parse=function(t,e){var r=t[0],n=t[1],i=t[2],a=t.slice(3);if(!Array.isArray(n)||0===n.length)return e.error(&quot;Expected an interpolation type expression.&quot;,1);if(&quot;linear&quot;===n[0])n={name:&quot;linear&quot;};else if(&quot;exponential&quot;===n[0]){var o=n[1];if(&quot;number&quot;!=typeof o)return e.error(&quot;Exponential interpolation requires a numeric base.&quot;,1,1);n={name:&quot;exponential&quot;,base:o}}else{if(&quot;cubic-bezier&quot;!==n[0])return e.error(&quot;Unknown interpolation type &quot;+String(n[0]),1,0);var s=n.slice(1);if(4!==s.length||s.some((function(t){return&quot;number&quot;!=typeof t||t&lt;0||t&gt;1})))return e.error(&quot;Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.&quot;,1);n={name:&quot;cubic-bezier&quot;,controlPoints:s}}if(t.length-1&lt;4)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if((t.length-1)%2!=0)return e.error(&quot;Expected an even number of arguments.&quot;);if(!(i=e.parse(i,2,Bt)))return null;var l=[],c=null;&quot;interpolate-hcl&quot;===r||&quot;interpolate-lab&quot;===r?c=Ut:e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(c=e.expectedType);for(var u=0;u&lt;a.length;u+=2){var f=a[u],h=a[u+1],p=u+3,d=u+4;if(&quot;number&quot;!=typeof f)return e.error('Input/output pairs for &quot;interpolate&quot; expressions must be defined using literal numeric values (not computed expressions) for the input values.',p);if(l.length&amp;&amp;l[l.length-1][0]&gt;=f)return e.error('Input/output pairs for &quot;interpolate&quot; expressions must be arranged with input values in strictly ascending order.',p);var m=e.parse(h,d,c);if(!m)return null;c=c||m.type,l.push([f,m])}return&quot;number&quot;===c.kind||&quot;color&quot;===c.kind||&quot;array&quot;===c.kind&amp;&amp;&quot;number&quot;===c.itemType.kind&amp;&amp;&quot;number&quot;==typeof c.N?new or(c,r,n,i,l):e.error(&quot;Type &quot;+Xt(c)+&quot; is not interpolatable.&quot;)},or.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n&lt;=e[0])return r[0].evaluate(t);var i=e.length;if(n&gt;=e[i-1])return r[i-1].evaluate(t);var a=Ve(e,n),o=e[a],s=e[a+1],l=or.interpolationFactor(this.interpolation,n,o,s),c=r[a].evaluate(t),u=r[a+1].evaluate(t);return&quot;interpolate&quot;===this.operator?Ge[this.type.kind.toLowerCase()](c,u,l):&quot;interpolate-hcl&quot;===this.operator?ir.reverse(ir.interpolate(ir.forward(c),ir.forward(u),l)):nr.reverse(nr.interpolate(nr.forward(c),nr.forward(u),l))},or.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1){t(r[e])}},or.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},or.prototype.serialize=function(){var t;t=&quot;linear&quot;===this.interpolation.name?[&quot;linear&quot;]:&quot;exponential&quot;===this.interpolation.name?1===this.interpolation.base?[&quot;linear&quot;]:[&quot;exponential&quot;,this.interpolation.base]:[&quot;cubic-bezier&quot;].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],r=0;r&lt;this.labels.length;r++)e.push(this.labels[r],this.outputs[r].serialize());return e};var lr=function(t,e){this.type=t,this.args=e};lr.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expectected at least one argument.&quot;);var r=null,n=e.expectedType;n&amp;&amp;&quot;value&quot;!==n.kind&amp;&amp;(r=n);for(var i=[],a=0,o=t.slice(1);a&lt;o.length;a+=1){var s=o[a],l=e.parse(s,1+i.length,r,void 0,{typeAnnotation:&quot;omit&quot;});if(!l)return null;r=r||l.type,i.push(l)}var c=n&amp;&amp;i.some((function(t){return Jt(n,t.type)}));return new lr(c?Ht:r,i)},lr.prototype.evaluate=function(t){for(var e,r=null,n=0,i=0,a=this.args;i&lt;a.length;i+=1){if(n++,(r=a[i].evaluate(t))&amp;&amp;r instanceof ie&amp;&amp;!r.available&amp;&amp;(e||(e=r.name),r=null,n===this.args.length&amp;&amp;(r=e)),null!==r)break}return r},lr.prototype.eachChild=function(t){this.args.forEach(t)},lr.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},lr.prototype.serialize=function(){var t=[&quot;coalesce&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var cr=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};cr.prototype.evaluate=function(t){return this.result.evaluate(t)},cr.prototype.eachChild=function(t){for(var e=0,r=this.bindings;e&lt;r.length;e+=1){t(r[e][1])}t(this.result)},cr.parse=function(t,e){if(t.length&lt;4)return e.error(&quot;Expected at least 3 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);for(var r=[],n=1;n&lt;t.length-1;n+=2){var i=t[n];if(&quot;string&quot;!=typeof i)return e.error(&quot;Expected string, but found &quot;+typeof i+&quot; instead.&quot;,n);if(/[^a-zA-Z0-9_]/.test(i))return e.error(&quot;Variable names must contain only alphanumeric characters or '_'.&quot;,n);var a=e.parse(t[n+1],n+1);if(!a)return null;r.push([i,a])}var o=e.parse(t[t.length-1],t.length-1,e.expectedType,r);return o?new cr(r,o):null},cr.prototype.outputDefined=function(){return this.result.outputDefined()},cr.prototype.serialize=function(){for(var t=[&quot;let&quot;],e=0,r=this.bindings;e&lt;r.length;e+=1){var n=r[e],i=n[0],a=n[1];t.push(i,a.serialize())}return t.push(this.result.serialize()),t};var ur=function(t,e,r){this.type=t,this.index=e,this.input=r};ur.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected 2 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,Bt),n=e.parse(t[2],2,Wt(e.expectedType||Ht));if(!r||!n)return null;var i=n.type;return new ur(i.itemType,r,n)},ur.prototype.evaluate=function(t){var e=this.index.evaluate(t),r=this.input.evaluate(t);if(e&lt;0)throw new ue(&quot;Array index out of bounds: &quot;+e+&quot; &lt; 0.&quot;);if(e&gt;=r.length)throw new ue(&quot;Array index out of bounds: &quot;+e+&quot; &gt; &quot;+(r.length-1)+&quot;.&quot;);if(e!==Math.floor(e))throw new ue(&quot;Array index must be an integer, but found &quot;+e+&quot; instead.&quot;);return r[e]},ur.prototype.eachChild=function(t){t(this.index),t(this.input)},ur.prototype.outputDefined=function(){return!1},ur.prototype.serialize=function(){return[&quot;at&quot;,this.index.serialize(),this.input.serialize()]};var fr=function(t,e){this.type=jt,this.needle=t,this.haystack=e};fr.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected 2 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,Ht),n=e.parse(t[2],2,Ht);return r&amp;&amp;n?Kt(r.type,[jt,Nt,Bt,Ft,Ht])?new fr(r,n):e.error(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Xt(r.type)+&quot; instead&quot;):null},fr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!r)return!1;if(!Qt(e,[&quot;boolean&quot;,&quot;string&quot;,&quot;number&quot;,&quot;null&quot;]))throw new ue(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Xt(se(e))+&quot; instead.&quot;);if(!Qt(r,[&quot;string&quot;,&quot;array&quot;]))throw new ue(&quot;Expected second argument to be of type array or string, but found &quot;+Xt(se(r))+&quot; instead.&quot;);return r.indexOf(e)&gt;=0},fr.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},fr.prototype.outputDefined=function(){return!0},fr.prototype.serialize=function(){return[&quot;in&quot;,this.needle.serialize(),this.haystack.serialize()]};var hr=function(t,e,r){this.type=Bt,this.needle=t,this.haystack=e,this.fromIndex=r};hr.parse=function(t,e){if(t.length&lt;=2||t.length&gt;=5)return e.error(&quot;Expected 3 or 4 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,Ht),n=e.parse(t[2],2,Ht);if(!r||!n)return null;if(!Kt(r.type,[jt,Nt,Bt,Ft,Ht]))return e.error(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Xt(r.type)+&quot; instead&quot;);if(4===t.length){var i=e.parse(t[3],3,Bt);return i?new hr(r,n,i):null}return new hr(r,n)},hr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!Qt(e,[&quot;boolean&quot;,&quot;string&quot;,&quot;number&quot;,&quot;null&quot;]))throw new ue(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Xt(se(e))+&quot; instead.&quot;);if(!Qt(r,[&quot;string&quot;,&quot;array&quot;]))throw new ue(&quot;Expected second argument to be of type array or string, but found &quot;+Xt(se(r))+&quot; instead.&quot;);if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},hr.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&amp;&amp;t(this.fromIndex)},hr.prototype.outputDefined=function(){return!1},hr.prototype.serialize=function(){if(null!=this.fromIndex&amp;&amp;void 0!==this.fromIndex){var t=this.fromIndex.serialize();return[&quot;index-of&quot;,this.needle.serialize(),this.haystack.serialize(),t]}return[&quot;index-of&quot;,this.needle.serialize(),this.haystack.serialize()]};var pr=function(t,e,r,n,i,a){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=a};pr.parse=function(t,e){if(t.length&lt;5)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if(t.length%2!=1)return e.error(&quot;Expected an even number of arguments.&quot;);var r,n;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(n=e.expectedType);for(var i={},a=[],o=2;o&lt;t.length-1;o+=2){var s=t[o],l=t[o+1];Array.isArray(s)||(s=[s]);var c=e.concat(o);if(0===s.length)return c.error(&quot;Expected at least one branch label.&quot;);for(var u=0,f=s;u&lt;f.length;u+=1){var h=f[u];if(&quot;number&quot;!=typeof h&amp;&amp;&quot;string&quot;!=typeof h)return c.error(&quot;Branch labels must be numbers or strings.&quot;);if(&quot;number&quot;==typeof h&amp;&amp;Math.abs(h)&gt;Number.MAX_SAFE_INTEGER)return c.error(&quot;Branch labels must be integers no larger than &quot;+Number.MAX_SAFE_INTEGER+&quot;.&quot;);if(&quot;number&quot;==typeof h&amp;&amp;Math.floor(h)!==h)return c.error(&quot;Numeric branch labels must be integer values.&quot;);if(r){if(c.checkSubtype(r,se(h)))return null}else r=se(h);if(void 0!==i[String(h)])return c.error(&quot;Branch labels must be unique.&quot;);i[String(h)]=a.length}var p=e.parse(l,o,n);if(!p)return null;n=n||p.type,a.push(p)}var d=e.parse(t[1],1,Ht);if(!d)return null;var m=e.parse(t[t.length-1],t.length-1,n);return m?&quot;value&quot;!==d.type.kind&amp;&amp;e.concat(1).checkSubtype(r,d.type)?null:new pr(r,n,d,i,a,m):null},pr.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(se(e)===this.inputType&amp;&amp;this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},pr.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},pr.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&amp;&amp;this.otherwise.outputDefined()},pr.prototype.serialize=function(){for(var t=this,e=[&quot;match&quot;,this.input.serialize()],r=[],n={},i=0,a=Object.keys(this.cases).sort();i&lt;a.length;i+=1){var o=a[i];void 0===(f=n[this.cases[o]])?(n[this.cases[o]]=r.length,r.push([this.cases[o],[o]])):r[f][1].push(o)}for(var s=function(e){return&quot;number&quot;===t.inputType.kind?Number(e):e},l=0,c=r;l&lt;c.length;l+=1){var u=c[l],f=u[0],h=u[1];1===h.length?e.push(s(h[0])):e.push(h.map(s)),e.push(this.outputs[outputIndex$1].serialize())}return e.push(this.otherwise.serialize()),e};var dr=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};dr.parse=function(t,e){if(t.length&lt;4)return e.error(&quot;Expected at least 3 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if(t.length%2!=0)return e.error(&quot;Expected an odd number of arguments.&quot;);var r;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(r=e.expectedType);for(var n=[],i=1;i&lt;t.length-1;i+=2){var a=e.parse(t[i],i,jt);if(!a)return null;var o=e.parse(t[i+1],i+1,r);if(!o)return null;n.push([a,o]),r=r||o.type}var s=e.parse(t[t.length-1],t.length-1,r);return s?new dr(r,n,s):null},dr.prototype.evaluate=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var n=r[e],i=n[0],a=n[1];if(i.evaluate(t))return a.evaluate(t)}return this.otherwise.evaluate(t)},dr.prototype.eachChild=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var n=r[e],i=n[0],a=n[1];t(i),t(a)}t(this.otherwise)},dr.prototype.outputDefined=function(){return this.branches.every((function(t){t[0];return t[1].outputDefined()}))&amp;&amp;this.otherwise.outputDefined()},dr.prototype.serialize=function(){var t=[&quot;case&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var mr=function(t,e,r,n){this.type=t,this.input=e,this.beginIndex=r,this.endIndex=n};function gr(t,e){return&quot;==&quot;===t||&quot;!=&quot;===t?&quot;boolean&quot;===e.kind||&quot;string&quot;===e.kind||&quot;number&quot;===e.kind||&quot;null&quot;===e.kind||&quot;value&quot;===e.kind:&quot;string&quot;===e.kind||&quot;number&quot;===e.kind||&quot;value&quot;===e.kind}function vr(t,e,r,n){return 0===n.compare(e,r)}function yr(t,e,r){var n=&quot;==&quot;!==t&amp;&amp;&quot;!=&quot;!==t;return function(){function i(t,e,r){this.type=jt,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument=&quot;value&quot;===t.type.kind||&quot;value&quot;===e.type.kind}return i.parse=function(t,e){if(3!==t.length&amp;&amp;4!==t.length)return e.error(&quot;Expected two or three arguments.&quot;);var r=t[0],a=e.parse(t[1],1,Ht);if(!a)return null;if(!gr(r,a.type))return e.concat(1).error('&quot;'+r+&quot;\&quot; comparisons are not supported for type '&quot;+Xt(a.type)+&quot;'.&quot;);var o=e.parse(t[2],2,Ht);if(!o)return null;if(!gr(r,o.type))return e.concat(2).error('&quot;'+r+&quot;\&quot; comparisons are not supported for type '&quot;+Xt(o.type)+&quot;'.&quot;);if(a.type.kind!==o.type.kind&amp;&amp;&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind)return e.error(&quot;Cannot compare types '&quot;+Xt(a.type)+&quot;' and '&quot;+Xt(o.type)+&quot;'.&quot;);n&amp;&amp;(&quot;value&quot;===a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind?a=new he(o.type,[a]):&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;===o.type.kind&amp;&amp;(o=new he(a.type,[o])));var s=null;if(4===t.length){if(&quot;string&quot;!==a.type.kind&amp;&amp;&quot;string&quot;!==o.type.kind&amp;&amp;&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind)return e.error(&quot;Cannot use collator to compare non-string types.&quot;);if(!(s=e.parse(t[3],3,qt)))return null}return new i(a,o,s)},i.prototype.evaluate=function(i){var a=this.lhs.evaluate(i),o=this.rhs.evaluate(i);if(n&amp;&amp;this.hasUntypedArgument){var s=se(a),l=se(o);if(s.kind!==l.kind||&quot;string&quot;!==s.kind&amp;&amp;&quot;number&quot;!==s.kind)throw new ue('Expected arguments for &quot;'+t+'&quot; to be (string, string) or (number, number), but found ('+s.kind+&quot;, &quot;+l.kind+&quot;) instead.&quot;)}if(this.collator&amp;&amp;!n&amp;&amp;this.hasUntypedArgument){var c=se(a),u=se(o);if(&quot;string&quot;!==c.kind||&quot;string&quot;!==u.kind)return e(i,a,o)}return this.collator?r(i,a,o,this.collator.evaluate(i)):e(i,a,o)},i.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&amp;&amp;t(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},i}()}mr.parse=function(t,e){if(t.length&lt;=2||t.length&gt;=5)return e.error(&quot;Expected 3 or 4 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,Ht),n=e.parse(t[2],2,Bt);if(!r||!n)return null;if(!Kt(r.type,[Wt(Ht),Nt,Ht]))return e.error(&quot;Expected first argument to be of type array or string, but found &quot;+Xt(r.type)+&quot; instead&quot;);if(4===t.length){var i=e.parse(t[3],3,Bt);return i?new mr(r.type,r,n,i):null}return new mr(r.type,r,n)},mr.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!Qt(e,[&quot;string&quot;,&quot;array&quot;]))throw new ue(&quot;Expected first argument to be of type array or string, but found &quot;+Xt(se(e))+&quot; instead.&quot;);if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},mr.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&amp;&amp;t(this.endIndex)},mr.prototype.outputDefined=function(){return!1},mr.prototype.serialize=function(){if(null!=this.endIndex&amp;&amp;void 0!==this.endIndex){var t=this.endIndex.serialize();return[&quot;slice&quot;,this.input.serialize(),this.beginIndex.serialize(),t]}return[&quot;slice&quot;,this.input.serialize(),this.beginIndex.serialize()]};var xr=yr(&quot;==&quot;,(function(t,e,r){return e===r}),vr),br=yr(&quot;!=&quot;,(function(t,e,r){return e!==r}),(function(t,e,r,n){return!vr(0,e,r,n)})),_r=yr(&quot;&lt;&quot;,(function(t,e,r){return e&lt;r}),(function(t,e,r,n){return n.compare(e,r)&lt;0})),wr=yr(&quot;&gt;&quot;,(function(t,e,r){return e&gt;r}),(function(t,e,r,n){return n.compare(e,r)&gt;0})),Tr=yr(&quot;&lt;=&quot;,(function(t,e,r){return e&lt;=r}),(function(t,e,r,n){return n.compare(e,r)&lt;=0})),kr=yr(&quot;&gt;=&quot;,(function(t,e,r){return e&gt;=r}),(function(t,e,r,n){return n.compare(e,r)&gt;=0})),Ar=function(t,e,r,n,i){this.type=Nt,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};Ar.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected two arguments.&quot;);var r=e.parse(t[1],1,Bt);if(!r)return null;var n=t[2];if(&quot;object&quot;!=typeof n||Array.isArray(n))return e.error(&quot;NumberFormat options argument must be an object.&quot;);var i=null;if(n.locale&amp;&amp;!(i=e.parse(n.locale,1,Nt)))return null;var a=null;if(n.currency&amp;&amp;!(a=e.parse(n.currency,1,Nt)))return null;var o=null;if(n[&quot;min-fraction-digits&quot;]&amp;&amp;!(o=e.parse(n[&quot;min-fraction-digits&quot;],1,Bt)))return null;var s=null;return n[&quot;max-fraction-digits&quot;]&amp;&amp;!(s=e.parse(n[&quot;max-fraction-digits&quot;],1,Bt))?null:new Ar(r,i,a,o,s)},Ar.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?&quot;currency&quot;:&quot;decimal&quot;,currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},Ar.prototype.eachChild=function(t){t(this.number),this.locale&amp;&amp;t(this.locale),this.currency&amp;&amp;t(this.currency),this.minFractionDigits&amp;&amp;t(this.minFractionDigits),this.maxFractionDigits&amp;&amp;t(this.maxFractionDigits)},Ar.prototype.outputDefined=function(){return!1},Ar.prototype.serialize=function(){var t={};return this.locale&amp;&amp;(t.locale=this.locale.serialize()),this.currency&amp;&amp;(t.currency=this.currency.serialize()),this.minFractionDigits&amp;&amp;(t[&quot;min-fraction-digits&quot;]=this.minFractionDigits.serialize()),this.maxFractionDigits&amp;&amp;(t[&quot;max-fraction-digits&quot;]=this.maxFractionDigits.serialize()),[&quot;number-format&quot;,this.number.serialize(),t]};var Mr=function(t){this.type=Bt,this.input=t};Mr.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected 1 argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1);return r?&quot;array&quot;!==r.type.kind&amp;&amp;&quot;string&quot;!==r.type.kind&amp;&amp;&quot;value&quot;!==r.type.kind?e.error(&quot;Expected argument of type string or array, but found &quot;+Xt(r.type)+&quot; instead.&quot;):new Mr(r):null},Mr.prototype.evaluate=function(t){var e=this.input.evaluate(t);if(&quot;string&quot;==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new ue(&quot;Expected value to be of type string or array, but found &quot;+Xt(se(e))+&quot; instead.&quot;)},Mr.prototype.eachChild=function(t){t(this.input)},Mr.prototype.outputDefined=function(){return!1},Mr.prototype.serialize=function(){var t=[&quot;length&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var Sr={&quot;==&quot;:xr,&quot;!=&quot;:br,&quot;&gt;&quot;:wr,&quot;&lt;&quot;:_r,&quot;&gt;=&quot;:kr,&quot;&lt;=&quot;:Tr,array:he,at:ur,boolean:he,case:dr,coalesce:lr,collator:be,format:pe,image:de,in:fr,&quot;index-of&quot;:hr,interpolate:or,&quot;interpolate-hcl&quot;:or,&quot;interpolate-lab&quot;:or,length:Mr,let:cr,literal:ce,match:pr,number:he,&quot;number-format&quot;:Ar,object:he,slice:mr,step:He,string:he,&quot;to-boolean&quot;:ge,&quot;to-color&quot;:ge,&quot;to-number&quot;:ge,&quot;to-string&quot;:ge,var:je,within:Re};function Er(t,e){var r=e[0],n=e[1],i=e[2],a=e[3];r=r.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);var o=a?a.evaluate(t):1,s=ae(r,n,i,o);if(s)throw new ue(s);return new te(r/255*o,n/255*o,i/255*o,o)}function Lr(t,e){return t in e}function Cr(t,e){var r=e[t];return void 0===r?null:r}function Pr(t){return{type:t}}function Ir(t){return{result:&quot;success&quot;,value:t}}function Or(t){return{result:&quot;error&quot;,value:t}}function zr(t){return&quot;data-driven&quot;===t[&quot;property-type&quot;]||&quot;cross-faded-data-driven&quot;===t[&quot;property-type&quot;]}function Dr(t){return!!t.expression&amp;&amp;t.expression.parameters.indexOf(&quot;zoom&quot;)&gt;-1}function Rr(t){return!!t.expression&amp;&amp;t.expression.interpolated}function Fr(t){return t instanceof Number?&quot;number&quot;:t instanceof String?&quot;string&quot;:t instanceof Boolean?&quot;boolean&quot;:Array.isArray(t)?&quot;array&quot;:null===t?&quot;null&quot;:typeof t}function Br(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)}function Nr(t){return t}function jr(t,e,r){return void 0!==t?t:void 0!==e?e:void 0!==r?r:void 0}function Ur(t,e,r,n,i){return jr(typeof r===i?n[r]:void 0,t.default,e.default)}function Vr(t,e,r){if(&quot;number&quot;!==Fr(r))return jr(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[n-1][0])return t.stops[n-1][1];var i=Ve(t.stops.map((function(t){return t[0]})),r);return t.stops[i][1]}function Hr(t,e,r){var n=void 0!==t.base?t.base:1;if(&quot;number&quot;!==Fr(r))return jr(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[i-1][0])return t.stops[i-1][1];var a=Ve(t.stops.map((function(t){return t[0]})),r),o=function(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}(r,n,t.stops[a][0],t.stops[a+1][0]),s=t.stops[a][1],l=t.stops[a+1][1],c=Ge[e.type]||Nr;if(t.colorSpace&amp;&amp;&quot;rgb&quot;!==t.colorSpace){var u=ar[t.colorSpace];c=function(t,e){return u.reverse(u.interpolate(u.forward(t),u.forward(e),o))}}return&quot;function&quot;==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=s.evaluate.apply(void 0,t),n=l.evaluate.apply(void 0,t);if(void 0!==r&amp;&amp;void 0!==n)return c(r,n,o)}}:c(s,l,o)}function qr(t,e,r){return&quot;color&quot;===e.type?r=te.parse(r):&quot;formatted&quot;===e.type?r=ne.fromString(r.toString()):&quot;resolvedImage&quot;===e.type?r=ie.fromString(r.toString()):Fr(r)===e.type||&quot;enum&quot;===e.type&amp;&amp;e.values[r]||(r=void 0),jr(r,t.default,e.default)}xe.register(Sr,{error:[{kind:&quot;error&quot;},[Nt],function(t,e){var r=e[0];throw new ue(r.evaluate(t))}],typeof:[Nt,[Ht],function(t,e){return Xt(se(e[0].evaluate(t)))}],&quot;to-rgba&quot;:[Wt(Bt,4),[Ut],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Ut,[Bt,Bt,Bt],Er],rgba:[Ut,[Bt,Bt,Bt,Bt],Er],has:{type:jt,overloads:[[[Nt],function(t,e){return Lr(e[0].evaluate(t),t.properties())}],[[Nt,Vt],function(t,e){var r=e[0],n=e[1];return Lr(r.evaluate(t),n.evaluate(t))}]]},get:{type:Ht,overloads:[[[Nt],function(t,e){return Cr(e[0].evaluate(t),t.properties())}],[[Nt,Vt],function(t,e){var r=e[0],n=e[1];return Cr(r.evaluate(t),n.evaluate(t))}]]},&quot;feature-state&quot;:[Ht,[Nt],function(t,e){return Cr(e[0].evaluate(t),t.featureState||{})}],properties:[Vt,[],function(t){return t.properties()}],&quot;geometry-type&quot;:[Nt,[],function(t){return t.geometryType()}],id:[Ht,[],function(t){return t.id()}],zoom:[Bt,[],function(t){return t.globals.zoom}],&quot;heatmap-density&quot;:[Bt,[],function(t){return t.globals.heatmapDensity||0}],&quot;line-progress&quot;:[Bt,[],function(t){return t.globals.lineProgress||0}],accumulated:[Ht,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],&quot;+&quot;:[Bt,Pr(Bt),function(t,e){for(var r=0,n=0,i=e;n&lt;i.length;n+=1){r+=i[n].evaluate(t)}return r}],&quot;*&quot;:[Bt,Pr(Bt),function(t,e){for(var r=1,n=0,i=e;n&lt;i.length;n+=1){r*=i[n].evaluate(t)}return r}],&quot;-&quot;:{type:Bt,overloads:[[[Bt,Bt],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)-n.evaluate(t)}],[[Bt],function(t,e){return-e[0].evaluate(t)}]]},&quot;/&quot;:[Bt,[Bt,Bt],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)/n.evaluate(t)}],&quot;%&quot;:[Bt,[Bt,Bt],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)%n.evaluate(t)}],ln2:[Bt,[],function(){return Math.LN2}],pi:[Bt,[],function(){return Math.PI}],e:[Bt,[],function(){return Math.E}],&quot;^&quot;:[Bt,[Bt,Bt],function(t,e){var r=e[0],n=e[1];return Math.pow(r.evaluate(t),n.evaluate(t))}],sqrt:[Bt,[Bt],function(t,e){var r=e[0];return Math.sqrt(r.evaluate(t))}],log10:[Bt,[Bt],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN10}],ln:[Bt,[Bt],function(t,e){var r=e[0];return Math.log(r.evaluate(t))}],log2:[Bt,[Bt],function(t,e){var r=e[0];return Math.log(r.evaluate(t))/Math.LN2}],sin:[Bt,[Bt],function(t,e){var r=e[0];return Math.sin(r.evaluate(t))}],cos:[Bt,[Bt],function(t,e){var r=e[0];return Math.cos(r.evaluate(t))}],tan:[Bt,[Bt],function(t,e){var r=e[0];return Math.tan(r.evaluate(t))}],asin:[Bt,[Bt],function(t,e){var r=e[0];return Math.asin(r.evaluate(t))}],acos:[Bt,[Bt],function(t,e){var r=e[0];return Math.acos(r.evaluate(t))}],atan:[Bt,[Bt],function(t,e){var r=e[0];return Math.atan(r.evaluate(t))}],min:[Bt,Pr(Bt),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[Bt,Pr(Bt),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[Bt,[Bt],function(t,e){var r=e[0];return Math.abs(r.evaluate(t))}],round:[Bt,[Bt],function(t,e){var r=e[0].evaluate(t);return r&lt;0?-Math.round(-r):Math.round(r)}],floor:[Bt,[Bt],function(t,e){var r=e[0];return Math.floor(r.evaluate(t))}],ceil:[Bt,[Bt],function(t,e){var r=e[0];return Math.ceil(r.evaluate(t))}],&quot;filter-==&quot;:[jt,[Nt,Ht],function(t,e){var r=e[0],n=e[1];return t.properties()[r.value]===n.value}],&quot;filter-id-==&quot;:[jt,[Ht],function(t,e){var r=e[0];return t.id()===r.value}],&quot;filter-type-==&quot;:[jt,[Nt],function(t,e){var r=e[0];return t.geometryType()===r.value}],&quot;filter-&lt;&quot;:[jt,[Nt,Ht],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&lt;a}],&quot;filter-id-&lt;&quot;:[jt,[Ht],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&lt;i}],&quot;filter-&gt;&quot;:[jt,[Nt,Ht],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&gt;a}],&quot;filter-id-&gt;&quot;:[jt,[Ht],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&gt;i}],&quot;filter-&lt;=&quot;:[jt,[Nt,Ht],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&lt;=a}],&quot;filter-id-&lt;=&quot;:[jt,[Ht],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&lt;=i}],&quot;filter-&gt;=&quot;:[jt,[Nt,Ht],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&gt;=a}],&quot;filter-id-&gt;=&quot;:[jt,[Ht],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&gt;=i}],&quot;filter-has&quot;:[jt,[Ht],function(t,e){return e[0].value in t.properties()}],&quot;filter-has-id&quot;:[jt,[],function(t){return null!==t.id()&amp;&amp;void 0!==t.id()}],&quot;filter-type-in&quot;:[jt,[Wt(Nt)],function(t,e){return e[0].value.indexOf(t.geometryType())&gt;=0}],&quot;filter-id-in&quot;:[jt,[Wt(Ht)],function(t,e){return e[0].value.indexOf(t.id())&gt;=0}],&quot;filter-in-small&quot;:[jt,[Nt,Wt(Ht)],function(t,e){var r=e[0];return e[1].value.indexOf(t.properties()[r.value])&gt;=0}],&quot;filter-in-large&quot;:[jt,[Nt,Wt(Ht)],function(t,e){var r=e[0],n=e[1];return function(t,e,r,n){for(;r&lt;=n;){var i=r+n&gt;&gt;1;if(e[i]===t)return!0;e[i]&gt;t?n=i-1:r=i+1}return!1}(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:jt,overloads:[[[jt,jt],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)&amp;&amp;n.evaluate(t)}],[Pr(jt),function(t,e){for(var r=0,n=e;r&lt;n.length;r+=1){if(!n[r].evaluate(t))return!1}return!0}]]},any:{type:jt,overloads:[[[jt,jt],function(t,e){var r=e[0],n=e[1];return r.evaluate(t)||n.evaluate(t)}],[Pr(jt),function(t,e){for(var r=0,n=e;r&lt;n.length;r+=1){if(n[r].evaluate(t))return!0}return!1}]]},&quot;!&quot;:[jt,[jt],function(t,e){return!e[0].evaluate(t)}],&quot;is-supported-script&quot;:[jt,[Nt],function(t,e){var r=e[0],n=t.globals&amp;&amp;t.globals.isSupportedScript;return!n||n(r.evaluate(t))}],upcase:[Nt,[Nt],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[Nt,[Nt],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[Nt,Pr(Ht),function(t,e){return e.map((function(e){return le(e.evaluate(t))})).join(&quot;&quot;)}],&quot;resolved-locale&quot;:[Nt,[qt],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var Gr=function(t,e){this.expression=t,this._warningHistory={},this._evaluator=new ye,this._defaultValue=e?function(t){return&quot;color&quot;===t.type&amp;&amp;Br(t.default)?new te(0,0,0,0):&quot;color&quot;===t.type?te.parse(t.default)||null:void 0===t.default?null:t.default}(e):null,this._enumValues=e&amp;&amp;&quot;enum&quot;===e.type?e.values:null};function Yr(t){return Array.isArray(t)&amp;&amp;t.length&gt;0&amp;&amp;&quot;string&quot;==typeof t[0]&amp;&amp;t[0]in Sr}function Wr(t,e){var r=new Ue(Sr,[],e?function(t){var e={color:Ut,string:Nt,number:Bt,enum:Nt,boolean:jt,formatted:Gt,resolvedImage:Yt};if(&quot;array&quot;===t.type)return Wt(e[t.value]||Ht,t.length);return e[t.type]}(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&amp;&amp;&quot;string&quot;===e.type?{typeAnnotation:&quot;coerce&quot;}:void 0);return n?Ir(new Gr(n,e)):Or(r.errors)}Gr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)},Gr.prototype.evaluate=function(t,e,r,n,i,a){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a||null;try{var o=this.expression.evaluate(this._evaluator);if(null==o||&quot;number&quot;==typeof o&amp;&amp;o!=o)return this._defaultValue;if(this._enumValues&amp;&amp;!(o in this._enumValues))throw new ue(&quot;Expected value to be one of &quot;+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(&quot;, &quot;)+&quot;, but found &quot;+JSON.stringify(o)+&quot; instead.&quot;);return o}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,&quot;undefined&quot;!=typeof console&amp;&amp;console.warn(t.message)),this._defaultValue}};var Xr=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent=&quot;constant&quot;!==t&amp;&amp;!Be(e.expression)};Xr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},Xr.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)};var Zr=function(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent=&quot;camera&quot;!==t&amp;&amp;!Be(e.expression),this.interpolationType=n};function Jr(t,e){if(&quot;error&quot;===(t=Wr(t,e)).result)return t;var r=t.value.expression,n=Fe(r);if(!n&amp;&amp;!zr(e))return Or([new Dt(&quot;&quot;,&quot;data expressions not supported&quot;)]);var i=Ne(r,[&quot;zoom&quot;]);if(!i&amp;&amp;!Dr(e))return Or([new Dt(&quot;&quot;,&quot;zoom expressions not supported&quot;)]);var a=function t(e){var r=null;if(e instanceof cr)r=t(e.result);else if(e instanceof lr)for(var n=0,i=e.args;n&lt;i.length;n+=1){var a=i[n];if(r=t(a))break}else(e instanceof He||e instanceof or)&amp;&amp;e.input instanceof xe&amp;&amp;&quot;zoom&quot;===e.input.name&amp;&amp;(r=e);if(r instanceof Dt)return r;return e.eachChild((function(e){var n=t(e);n instanceof Dt?r=n:!r&amp;&amp;n?r=new Dt(&quot;&quot;,'&quot;zoom&quot; expression may only be used as input to a top-level &quot;step&quot; or &quot;interpolate&quot; expression.'):r&amp;&amp;n&amp;&amp;r!==n&amp;&amp;(r=new Dt(&quot;&quot;,'Only one zoom-based &quot;step&quot; or &quot;interpolate&quot; subexpression may be used in an expression.'))})),r}(r);if(!a&amp;&amp;!i)return Or([new Dt(&quot;&quot;,'&quot;zoom&quot; expression may only be used as input to a top-level &quot;step&quot; or &quot;interpolate&quot; expression.')]);if(a instanceof Dt)return Or([a]);if(a instanceof or&amp;&amp;!Rr(e))return Or([new Dt(&quot;&quot;,'&quot;interpolate&quot; expressions cannot be used with this property')]);if(!a)return Ir(new Xr(n?&quot;constant&quot;:&quot;source&quot;,t.value));var o=a instanceof or?a.interpolation:void 0;return Ir(new Zr(n?&quot;camera&quot;:&quot;composite&quot;,t.value,a.labels,o))}Zr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},Zr.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)},Zr.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?or.interpolationFactor(this.interpolationType,t,e,r):0};var Kr=function(t,e){this._parameters=t,this._specification=e,It(this,function t(e,r){var n,i,a,o=&quot;color&quot;===r.type,s=e.stops&amp;&amp;&quot;object&quot;==typeof e.stops[0][0],l=s||void 0!==e.property,c=s||!l,u=e.type||(Rr(r)?&quot;exponential&quot;:&quot;interval&quot;);if(o&amp;&amp;((e=It({},e)).stops&amp;&amp;(e.stops=e.stops.map((function(t){return[t[0],te.parse(t[1])]}))),e.default?e.default=te.parse(e.default):e.default=te.parse(r.default)),e.colorSpace&amp;&amp;&quot;rgb&quot;!==e.colorSpace&amp;&amp;!ar[e.colorSpace])throw new Error(&quot;Unknown color space: &quot;+e.colorSpace);if(&quot;exponential&quot;===u)n=Hr;else if(&quot;interval&quot;===u)n=Vr;else if(&quot;categorical&quot;===u){n=Ur,i=Object.create(null);for(var f=0,h=e.stops;f&lt;h.length;f+=1){var p=h[f];i[p[0]]=p[1]}a=typeof e.stops[0][0]}else{if(&quot;identity&quot;!==u)throw new Error('Unknown function type &quot;'+u+'&quot;');n=qr}if(s){for(var d={},m=[],g=0;g&lt;e.stops.length;g++){var v=e.stops[g],y=v[0].zoom;void 0===d[y]&amp;&amp;(d[y]={zoom:y,type:e.type,property:e.property,default:e.default,stops:[]},m.push(y)),d[y].stops.push([v[0].value,v[1]])}for(var x=[],b=0,_=m;b&lt;_.length;b+=1){var w=_[b];x.push([d[w].zoom,t(d[w],r)])}var T={name:&quot;linear&quot;};return{kind:&quot;composite&quot;,interpolationType:T,interpolationFactor:or.interpolationFactor.bind(void 0,T),zoomStops:x.map((function(t){return t[0]})),evaluate:function(t,n){var i=t.zoom;return Hr({stops:x,base:e.base},r,i).evaluate(i,n)}}}if(c){var k=&quot;exponential&quot;===u?{name:&quot;exponential&quot;,base:void 0!==e.base?e.base:1}:null;return{kind:&quot;camera&quot;,interpolationType:k,interpolationFactor:or.interpolationFactor.bind(void 0,k),zoomStops:e.stops.map((function(t){return t[0]})),evaluate:function(t){var o=t.zoom;return n(e,r,o,i,a)}}}return{kind:&quot;source&quot;,evaluate:function(t,o){var s=o&amp;&amp;o.properties?o.properties[e.property]:void 0;return void 0===s?jr(e.default,r.default):n(e,r,s,i,a)}}}(this._parameters,this._specification))};function Qr(t){var e=t.key,r=t.value,n=t.valueSpec||{},i=t.objectElementValidators||{},a=t.style,o=t.styleSpec,s=[],l=Fr(r);if(&quot;object&quot;!==l)return[new Ct(e,r,&quot;object expected, &quot;+l+&quot; found&quot;)];for(var c in r){var u=c.split(&quot;.&quot;)[0],f=n[u]||n[&quot;*&quot;],h=void 0;if(i[u])h=i[u];else if(n[u])h=kn;else if(i[&quot;*&quot;])h=i[&quot;*&quot;];else{if(!n[&quot;*&quot;]){s.push(new Ct(e,r[c],'unknown property &quot;'+c+'&quot;'));continue}h=kn}s=s.concat(h({key:(e?e+&quot;.&quot;:e)+c,value:r[c],valueSpec:f,style:a,styleSpec:o,object:r,objectKey:c},r))}for(var p in n)i[p]||n[p].required&amp;&amp;void 0===n[p].default&amp;&amp;void 0===r[p]&amp;&amp;s.push(new Ct(e,r,'missing required property &quot;'+p+'&quot;'));return s}function $r(t){var e=t.value,r=t.valueSpec,n=t.style,i=t.styleSpec,a=t.key,o=t.arrayElementValidator||kn;if(&quot;array&quot;!==Fr(e))return[new Ct(a,e,&quot;array expected, &quot;+Fr(e)+&quot; found&quot;)];if(r.length&amp;&amp;e.length!==r.length)return[new Ct(a,e,&quot;array length &quot;+r.length+&quot; expected, length &quot;+e.length+&quot; found&quot;)];if(r[&quot;min-length&quot;]&amp;&amp;e.length&lt;r[&quot;min-length&quot;])return[new Ct(a,e,&quot;array length at least &quot;+r[&quot;min-length&quot;]+&quot; expected, length &quot;+e.length+&quot; found&quot;)];var s={type:r.value,values:r.values};i.$version&lt;7&amp;&amp;(s.function=r.function),&quot;object&quot;===Fr(r.value)&amp;&amp;(s=r.value);for(var l=[],c=0;c&lt;e.length;c++)l=l.concat(o({array:e,arrayIndex:c,value:e[c],valueSpec:s,style:n,styleSpec:i,key:a+&quot;[&quot;+c+&quot;]&quot;}));return l}function tn(t){var e=t.key,r=t.value,n=t.valueSpec,i=Fr(r);return&quot;number&quot;===i&amp;&amp;r!=r&amp;&amp;(i=&quot;NaN&quot;),&quot;number&quot;!==i?[new Ct(e,r,&quot;number expected, &quot;+i+&quot; found&quot;)]:&quot;minimum&quot;in n&amp;&amp;r&lt;n.minimum?[new Ct(e,r,r+&quot; is less than the minimum value &quot;+n.minimum)]:&quot;maximum&quot;in n&amp;&amp;r&gt;n.maximum?[new Ct(e,r,r+&quot; is greater than the maximum value &quot;+n.maximum)]:[]}function en(t){var e,r,n,i=t.valueSpec,a=Ot(t.value.type),o={},s=&quot;categorical&quot;!==a&amp;&amp;void 0===t.value.property,l=!s,c=&quot;array&quot;===Fr(t.value.stops)&amp;&amp;&quot;array&quot;===Fr(t.value.stops[0])&amp;&amp;&quot;object&quot;===Fr(t.value.stops[0][0]),u=Qr({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if(&quot;identity&quot;===a)return[new Ct(t.key,t.value,'identity function may not have a &quot;stops&quot; property')];var e=[],r=t.value;e=e.concat($r({key:t.key,value:r,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:f})),&quot;array&quot;===Fr(r)&amp;&amp;0===r.length&amp;&amp;e.push(new Ct(t.key,r,&quot;array must have at least one stop&quot;));return e},default:function(t){return kn({key:t.key,value:t.value,valueSpec:i,style:t.style,styleSpec:t.styleSpec})}}});return&quot;identity&quot;===a&amp;&amp;s&amp;&amp;u.push(new Ct(t.key,t.value,'missing required property &quot;property&quot;')),&quot;identity&quot;===a||t.value.stops||u.push(new Ct(t.key,t.value,'missing required property &quot;stops&quot;')),&quot;exponential&quot;===a&amp;&amp;t.valueSpec.expression&amp;&amp;!Rr(t.valueSpec)&amp;&amp;u.push(new Ct(t.key,t.value,&quot;exponential functions not supported&quot;)),t.styleSpec.$version&gt;=8&amp;&amp;(l&amp;&amp;!zr(t.valueSpec)?u.push(new Ct(t.key,t.value,&quot;property functions not supported&quot;)):s&amp;&amp;!Dr(t.valueSpec)&amp;&amp;u.push(new Ct(t.key,t.value,&quot;zoom functions not supported&quot;))),&quot;categorical&quot;!==a&amp;&amp;!c||void 0!==t.value.property||u.push(new Ct(t.key,t.value,'&quot;property&quot; property is required')),u;function f(t){var e=[],a=t.value,s=t.key;if(&quot;array&quot;!==Fr(a))return[new Ct(s,a,&quot;array expected, &quot;+Fr(a)+&quot; found&quot;)];if(2!==a.length)return[new Ct(s,a,&quot;array length 2 expected, length &quot;+a.length+&quot; found&quot;)];if(c){if(&quot;object&quot;!==Fr(a[0]))return[new Ct(s,a,&quot;object expected, &quot;+Fr(a[0])+&quot; found&quot;)];if(void 0===a[0].zoom)return[new Ct(s,a,&quot;object stop key must have zoom&quot;)];if(void 0===a[0].value)return[new Ct(s,a,&quot;object stop key must have value&quot;)];if(n&amp;&amp;n&gt;Ot(a[0].zoom))return[new Ct(s,a[0].zoom,&quot;stop zoom values must appear in ascending order&quot;)];Ot(a[0].zoom)!==n&amp;&amp;(n=Ot(a[0].zoom),r=void 0,o={}),e=e.concat(Qr({key:s+&quot;[0]&quot;,value:a[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:tn,value:h}}))}else e=e.concat(h({key:s+&quot;[0]&quot;,value:a[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},a));return Yr(zt(a[1]))?e.concat([new Ct(s+&quot;[1]&quot;,a[1],&quot;expressions are not allowed in function stops.&quot;)]):e.concat(kn({key:s+&quot;[1]&quot;,value:a[1],valueSpec:i,style:t.style,styleSpec:t.styleSpec}))}function h(t,n){var s=Fr(t.value),l=Ot(t.value),c=null!==t.value?t.value:n;if(e){if(s!==e)return[new Ct(t.key,c,s+&quot; stop domain type must match previous stop domain type &quot;+e)]}else e=s;if(&quot;number&quot;!==s&amp;&amp;&quot;string&quot;!==s&amp;&amp;&quot;boolean&quot;!==s)return[new Ct(t.key,c,&quot;stop domain value must be a number, string, or boolean&quot;)];if(&quot;number&quot;!==s&amp;&amp;&quot;categorical&quot;!==a){var u=&quot;number expected, &quot;+s+&quot; found&quot;;return zr(i)&amp;&amp;void 0===a&amp;&amp;(u+='\nIf you intended to use a categorical function, specify `&quot;type&quot;: &quot;categorical&quot;`.'),[new Ct(t.key,c,u)]}return&quot;categorical&quot;!==a||&quot;number&quot;!==s||isFinite(l)&amp;&amp;Math.floor(l)===l?&quot;categorical&quot;!==a&amp;&amp;&quot;number&quot;===s&amp;&amp;void 0!==r&amp;&amp;l&lt;r?[new Ct(t.key,c,&quot;stop domain values must appear in ascending order&quot;)]:(r=l,&quot;categorical&quot;===a&amp;&amp;l in o?[new Ct(t.key,c,&quot;stop domain values must be unique&quot;)]:(o[l]=!0,[])):[new Ct(t.key,c,&quot;integer expected, found &quot;+l)]}}function rn(t){var e=(&quot;property&quot;===t.expressionContext?Jr:Wr)(zt(t.value),t.valueSpec);if(&quot;error&quot;===e.result)return e.value.map((function(e){return new Ct(&quot;&quot;+t.key+e.key,t.value,e.message)}));var r=e.value.expression||e.value._styleExpression.expression;if(&quot;property&quot;===t.expressionContext&amp;&amp;&quot;text-font&quot;===t.propertyKey&amp;&amp;!r.outputDefined())return[new Ct(t.key,t.value,'Invalid data expression for &quot;'+t.propertyKey+'&quot;. Output values must be contained as literals within the expression.')];if(&quot;property&quot;===t.expressionContext&amp;&amp;&quot;layout&quot;===t.propertyType&amp;&amp;!Be(r))return[new Ct(t.key,t.value,'&quot;feature-state&quot; data expressions are not supported with layout properties.')];if(&quot;filter&quot;===t.expressionContext&amp;&amp;!Be(r))return[new Ct(t.key,t.value,'&quot;feature-state&quot; data expressions are not supported with filters.')];if(t.expressionContext&amp;&amp;0===t.expressionContext.indexOf(&quot;cluster&quot;)){if(!Ne(r,[&quot;zoom&quot;,&quot;feature-state&quot;]))return[new Ct(t.key,t.value,'&quot;zoom&quot; and &quot;feature-state&quot; expressions are not supported with cluster properties.')];if(&quot;cluster-initial&quot;===t.expressionContext&amp;&amp;!Fe(r))return[new Ct(t.key,t.value,&quot;Feature data expressions are not supported with initial expression part of cluster properties.&quot;)]}return[]}function nn(t){var e=t.key,r=t.value,n=t.valueSpec,i=[];return Array.isArray(n.values)?-1===n.values.indexOf(Ot(r))&amp;&amp;i.push(new Ct(e,r,&quot;expected one of [&quot;+n.values.join(&quot;, &quot;)+&quot;], &quot;+JSON.stringify(r)+&quot; found&quot;)):-1===Object.keys(n.values).indexOf(Ot(r))&amp;&amp;i.push(new Ct(e,r,&quot;expected one of [&quot;+Object.keys(n.values).join(&quot;, &quot;)+&quot;], &quot;+JSON.stringify(r)+&quot; found&quot;)),i}function an(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case&quot;has&quot;:return t.length&gt;=2&amp;&amp;&quot;$id&quot;!==t[1]&amp;&amp;&quot;$type&quot;!==t[1];case&quot;in&quot;:return t.length&gt;=3&amp;&amp;(&quot;string&quot;!=typeof t[1]||Array.isArray(t[2]));case&quot;!in&quot;:case&quot;!has&quot;:case&quot;none&quot;:return!1;case&quot;==&quot;:case&quot;!=&quot;:case&quot;&gt;&quot;:case&quot;&gt;=&quot;:case&quot;&lt;&quot;:case&quot;&lt;=&quot;:return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case&quot;any&quot;:case&quot;all&quot;:for(var e=0,r=t.slice(1);e&lt;r.length;e+=1){var n=r[e];if(!an(n)&amp;&amp;&quot;boolean&quot;!=typeof n)return!1}return!0;default:return!0}}Kr.deserialize=function(t){return new Kr(t._parameters,t._specification)},Kr.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var on={type:&quot;boolean&quot;,default:!1,transition:!1,&quot;property-type&quot;:&quot;data-driven&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]}};function sn(t){if(null==t)return{filter:function(){return!0},needGeometry:!1};an(t)||(t=cn(t));var e=Wr(t,on);if(&quot;error&quot;===e.result)throw new Error(e.value.map((function(t){return t.key+&quot;: &quot;+t.message})).join(&quot;, &quot;));return{filter:function(t,r,n){return e.value.evaluate(t,r,{},n)},needGeometry:function t(e){if(!Array.isArray(e))return!1;if(&quot;within&quot;===e[0])return!0;for(var r=1;r&lt;e.length;r++)if(t(e[r]))return!0;return!1}(t)}}function ln(t,e){return t&lt;e?-1:t&gt;e?1:0}function cn(t){if(!t)return!0;var e,r=t[0];return t.length&lt;=1?&quot;any&quot;!==r:&quot;==&quot;===r?un(t[1],t[2],&quot;==&quot;):&quot;!=&quot;===r?pn(un(t[1],t[2],&quot;==&quot;)):&quot;&lt;&quot;===r||&quot;&gt;&quot;===r||&quot;&lt;=&quot;===r||&quot;&gt;=&quot;===r?un(t[1],t[2],r):&quot;any&quot;===r?(e=t.slice(1),[&quot;any&quot;].concat(e.map(cn))):&quot;all&quot;===r?[&quot;all&quot;].concat(t.slice(1).map(cn)):&quot;none&quot;===r?[&quot;all&quot;].concat(t.slice(1).map(cn).map(pn)):&quot;in&quot;===r?fn(t[1],t.slice(2)):&quot;!in&quot;===r?pn(fn(t[1],t.slice(2))):&quot;has&quot;===r?hn(t[1]):&quot;!has&quot;===r?pn(hn(t[1])):&quot;within&quot;!==r||t}function un(t,e,r){switch(t){case&quot;$type&quot;:return[&quot;filter-type-&quot;+r,e];case&quot;$id&quot;:return[&quot;filter-id-&quot;+r,e];default:return[&quot;filter-&quot;+r,t,e]}}function fn(t,e){if(0===e.length)return!1;switch(t){case&quot;$type&quot;:return[&quot;filter-type-in&quot;,[&quot;literal&quot;,e]];case&quot;$id&quot;:return[&quot;filter-id-in&quot;,[&quot;literal&quot;,e]];default:return e.length&gt;200&amp;&amp;!e.some((function(t){return typeof t!=typeof e[0]}))?[&quot;filter-in-large&quot;,t,[&quot;literal&quot;,e.sort(ln)]]:[&quot;filter-in-small&quot;,t,[&quot;literal&quot;,e]]}}function hn(t){switch(t){case&quot;$type&quot;:return!0;case&quot;$id&quot;:return[&quot;filter-has-id&quot;];default:return[&quot;filter-has&quot;,t]}}function pn(t){return[&quot;!&quot;,t]}function dn(t){return an(zt(t.value))?rn(It({},t,{expressionContext:&quot;filter&quot;,valueSpec:{value:&quot;boolean&quot;}})):function t(e){var r=e.value,n=e.key;if(&quot;array&quot;!==Fr(r))return[new Ct(n,r,&quot;array expected, &quot;+Fr(r)+&quot; found&quot;)];var i,a=e.styleSpec,o=[];if(r.length&lt;1)return[new Ct(n,r,&quot;filter array must have at least 1 element&quot;)];switch(o=o.concat(nn({key:n+&quot;[0]&quot;,value:r[0],valueSpec:a.filter_operator,style:e.style,styleSpec:e.styleSpec})),Ot(r[0])){case&quot;&lt;&quot;:case&quot;&lt;=&quot;:case&quot;&gt;&quot;:case&quot;&gt;=&quot;:r.length&gt;=2&amp;&amp;&quot;$type&quot;===Ot(r[1])&amp;&amp;o.push(new Ct(n,r,'&quot;$type&quot; cannot be use with operator &quot;'+r[0]+'&quot;'));case&quot;==&quot;:case&quot;!=&quot;:3!==r.length&amp;&amp;o.push(new Ct(n,r,'filter array for operator &quot;'+r[0]+'&quot; must have 3 elements'));case&quot;in&quot;:case&quot;!in&quot;:r.length&gt;=2&amp;&amp;&quot;string&quot;!==(i=Fr(r[1]))&amp;&amp;o.push(new Ct(n+&quot;[1]&quot;,r[1],&quot;string expected, &quot;+i+&quot; found&quot;));for(var s=2;s&lt;r.length;s++)i=Fr(r[s]),&quot;$type&quot;===Ot(r[1])?o=o.concat(nn({key:n+&quot;[&quot;+s+&quot;]&quot;,value:r[s],valueSpec:a.geometry_type,style:e.style,styleSpec:e.styleSpec})):&quot;string&quot;!==i&amp;&amp;&quot;number&quot;!==i&amp;&amp;&quot;boolean&quot;!==i&amp;&amp;o.push(new Ct(n+&quot;[&quot;+s+&quot;]&quot;,r[s],&quot;string, number, or boolean expected, &quot;+i+&quot; found&quot;));break;case&quot;any&quot;:case&quot;all&quot;:case&quot;none&quot;:for(var l=1;l&lt;r.length;l++)o=o.concat(t({key:n+&quot;[&quot;+l+&quot;]&quot;,value:r[l],style:e.style,styleSpec:e.styleSpec}));break;case&quot;has&quot;:case&quot;!has&quot;:i=Fr(r[1]),2!==r.length?o.push(new Ct(n,r,'filter array for &quot;'+r[0]+'&quot; operator must have 2 elements')):&quot;string&quot;!==i&amp;&amp;o.push(new Ct(n+&quot;[1]&quot;,r[1],&quot;string expected, &quot;+i+&quot; found&quot;));break;case&quot;within&quot;:i=Fr(r[1]),2!==r.length?o.push(new Ct(n,r,'filter array for &quot;'+r[0]+'&quot; operator must have 2 elements')):&quot;object&quot;!==i&amp;&amp;o.push(new Ct(n+&quot;[1]&quot;,r[1],&quot;object expected, &quot;+i+&quot; found&quot;))}return o}(t)}function mn(t,e){var r=t.key,n=t.style,i=t.styleSpec,a=t.value,o=t.objectKey,s=i[e+&quot;_&quot;+t.layerType];if(!s)return[];var l=o.match(/^(.*)-transition$/);if(&quot;paint&quot;===e&amp;&amp;l&amp;&amp;s[l[1]]&amp;&amp;s[l[1]].transition)return kn({key:r,value:a,valueSpec:i.transition,style:n,styleSpec:i});var c,u=t.valueSpec||s[o];if(!u)return[new Ct(r,a,'unknown property &quot;'+o+'&quot;')];if(&quot;string&quot;===Fr(a)&amp;&amp;zr(u)&amp;&amp;!u.tokens&amp;&amp;(c=/^{([^}]+)}$/.exec(a)))return[new Ct(r,a,'&quot;'+o+'&quot; does not support interpolation syntax\nUse an identity property function instead: `{ &quot;type&quot;: &quot;identity&quot;, &quot;property&quot;: '+JSON.stringify(c[1])+&quot; }`.&quot;)];var f=[];return&quot;symbol&quot;===t.layerType&amp;&amp;(&quot;text-field&quot;===o&amp;&amp;n&amp;&amp;!n.glyphs&amp;&amp;f.push(new Ct(r,a,'use of &quot;text-field&quot; requires a style &quot;glyphs&quot; property')),&quot;text-font&quot;===o&amp;&amp;Br(zt(a))&amp;&amp;&quot;identity&quot;===Ot(a.type)&amp;&amp;f.push(new Ct(r,a,'&quot;text-font&quot; does not support identity functions'))),f.concat(kn({key:t.key,value:a,valueSpec:u,style:n,styleSpec:i,expressionContext:&quot;property&quot;,propertyType:e,propertyKey:o}))}function gn(t){return mn(t,&quot;paint&quot;)}function vn(t){return mn(t,&quot;layout&quot;)}function yn(t){var e=[],r=t.value,n=t.key,i=t.style,a=t.styleSpec;r.type||r.ref||e.push(new Ct(n,r,'either &quot;type&quot; or &quot;ref&quot; is required'));var o,s=Ot(r.type),l=Ot(r.ref);if(r.id)for(var c=Ot(r.id),u=0;u&lt;t.arrayIndex;u++){var f=i.layers[u];Ot(f.id)===c&amp;&amp;e.push(new Ct(n,r.id,'duplicate layer id &quot;'+r.id+'&quot;, previously used at line '+f.id.__line__))}if(&quot;ref&quot;in r)[&quot;type&quot;,&quot;source&quot;,&quot;source-layer&quot;,&quot;filter&quot;,&quot;layout&quot;].forEach((function(t){t in r&amp;&amp;e.push(new Ct(n,r[t],'&quot;'+t+'&quot; is prohibited for ref layers'))})),i.layers.forEach((function(t){Ot(t.id)===l&amp;&amp;(o=t)})),o?o.ref?e.push(new Ct(n,r.ref,&quot;ref cannot reference another ref layer&quot;)):s=Ot(o.type):e.push(new Ct(n,r.ref,'ref layer &quot;'+l+'&quot; not found'));else if(&quot;background&quot;!==s)if(r.source){var h=i.sources&amp;&amp;i.sources[r.source],p=h&amp;&amp;Ot(h.type);h?&quot;vector&quot;===p&amp;&amp;&quot;raster&quot;===s?e.push(new Ct(n,r.source,'layer &quot;'+r.id+'&quot; requires a raster source')):&quot;raster&quot;===p&amp;&amp;&quot;raster&quot;!==s?e.push(new Ct(n,r.source,'layer &quot;'+r.id+'&quot; requires a vector source')):&quot;vector&quot;!==p||r[&quot;source-layer&quot;]?&quot;raster-dem&quot;===p&amp;&amp;&quot;hillshade&quot;!==s?e.push(new Ct(n,r.source,&quot;raster-dem source can only be used with layer type 'hillshade'.&quot;)):&quot;line&quot;!==s||!r.paint||!r.paint[&quot;line-gradient&quot;]||&quot;geojson&quot;===p&amp;&amp;h.lineMetrics||e.push(new Ct(n,r,'layer &quot;'+r.id+'&quot; specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new Ct(n,r,'layer &quot;'+r.id+'&quot; must specify a &quot;source-layer&quot;')):e.push(new Ct(n,r.source,'source &quot;'+r.source+'&quot; not found'))}else e.push(new Ct(n,r,'missing required property &quot;source&quot;'));return e=e.concat(Qr({key:n,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(){return[]},type:function(){return kn({key:n+&quot;.type&quot;,value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,object:r,objectKey:&quot;type&quot;})},filter:dn,layout:function(t){return Qr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(t){return vn(It({layerType:s},t))}}})},paint:function(t){return Qr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(t){return gn(It({layerType:s},t))}}})}}}))}function xn(t){var e=t.value,r=t.key,n=Fr(e);return&quot;string&quot;!==n?[new Ct(r,e,&quot;string expected, &quot;+n+&quot; found&quot;)]:[]}var bn={promoteId:function(t){var e=t.key,r=t.value;if(&quot;string&quot;===Fr(r))return xn({key:e,value:r});var n=[];for(var i in r)n.push.apply(n,xn({key:e+&quot;.&quot;+i,value:r[i]}));return n}};function _n(t){var e=t.value,r=t.key,n=t.styleSpec,i=t.style;if(!e.type)return[new Ct(r,e,'&quot;type&quot; is required')];var a,o=Ot(e.type);switch(o){case&quot;vector&quot;:case&quot;raster&quot;:case&quot;raster-dem&quot;:return a=Qr({key:r,value:e,valueSpec:n[&quot;source_&quot;+o.replace(&quot;-&quot;,&quot;_&quot;)],style:t.style,styleSpec:n,objectElementValidators:bn});case&quot;geojson&quot;:if(a=Qr({key:r,value:e,valueSpec:n.source_geojson,style:i,styleSpec:n,objectElementValidators:bn}),e.cluster)for(var s in e.clusterProperties){var l=e.clusterProperties[s],c=l[0],u=l[1],f=&quot;string&quot;==typeof c?[c,[&quot;accumulated&quot;],[&quot;get&quot;,s]]:c;a.push.apply(a,rn({key:r+&quot;.&quot;+s+&quot;.map&quot;,value:u,expressionContext:&quot;cluster-map&quot;})),a.push.apply(a,rn({key:r+&quot;.&quot;+s+&quot;.reduce&quot;,value:f,expressionContext:&quot;cluster-reduce&quot;}))}return a;case&quot;video&quot;:return Qr({key:r,value:e,valueSpec:n.source_video,style:i,styleSpec:n});case&quot;image&quot;:return Qr({key:r,value:e,valueSpec:n.source_image,style:i,styleSpec:n});case&quot;canvas&quot;:return[new Ct(r,null,&quot;Please use runtime APIs to add canvas sources, rather than including them in stylesheets.&quot;,&quot;source.canvas&quot;)];default:return nn({key:r+&quot;.type&quot;,value:e.type,valueSpec:{values:[&quot;vector&quot;,&quot;raster&quot;,&quot;raster-dem&quot;,&quot;geojson&quot;,&quot;video&quot;,&quot;image&quot;]},style:i,styleSpec:n})}}function wn(t){var e=t.value,r=t.styleSpec,n=r.light,i=t.style,a=[],o=Fr(e);if(void 0===e)return a;if(&quot;object&quot;!==o)return a=a.concat([new Ct(&quot;light&quot;,e,&quot;object expected, &quot;+o+&quot; found&quot;)]);for(var s in e){var l=s.match(/^(.*)-transition$/);a=l&amp;&amp;n[l[1]]&amp;&amp;n[l[1]].transition?a.concat(kn({key:s,value:e[s],valueSpec:r.transition,style:i,styleSpec:r})):n[s]?a.concat(kn({key:s,value:e[s],valueSpec:n[s],style:i,styleSpec:r})):a.concat([new Ct(s,e[s],'unknown property &quot;'+s+'&quot;')])}return a}var Tn={&quot;*&quot;:function(){return[]},array:$r,boolean:function(t){var e=t.value,r=t.key,n=Fr(e);return&quot;boolean&quot;!==n?[new Ct(r,e,&quot;boolean expected, &quot;+n+&quot; found&quot;)]:[]},number:tn,color:function(t){var e=t.key,r=t.value,n=Fr(r);return&quot;string&quot;!==n?[new Ct(e,r,&quot;color expected, &quot;+n+&quot; found&quot;)]:null===$t(r)?[new Ct(e,r,'color expected, &quot;'+r+'&quot; found')]:[]},constants:Pt,enum:nn,filter:dn,function:en,layer:yn,object:Qr,source:_n,light:wn,string:xn,formatted:function(t){return 0===xn(t).length?[]:rn(t)},resolvedImage:function(t){return 0===xn(t).length?[]:rn(t)}};function kn(t){var e=t.value,r=t.valueSpec,n=t.styleSpec;return r.expression&amp;&amp;Br(Ot(e))?en(t):r.expression&amp;&amp;Yr(zt(e))?rn(t):r.type&amp;&amp;Tn[r.type]?Tn[r.type](t):Qr(It({},t,{valueSpec:r.type?n[r.type]:r}))}function An(t){var e=t.value,r=t.key,n=xn(t);return n.length||(-1===e.indexOf(&quot;{fontstack}&quot;)&amp;&amp;n.push(new Ct(r,e,'&quot;glyphs&quot; url must include a &quot;{fontstack}&quot; token')),-1===e.indexOf(&quot;{range}&quot;)&amp;&amp;n.push(new Ct(r,e,'&quot;glyphs&quot; url must include a &quot;{range}&quot; token'))),n}function Mn(t,e){void 0===e&amp;&amp;(e=Lt);var r=[];return r=r.concat(kn({key:&quot;&quot;,value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:An,&quot;*&quot;:function(){return[]}}})),t.constants&amp;&amp;(r=r.concat(Pt({key:&quot;constants&quot;,value:t.constants,style:t,styleSpec:e}))),Sn(r)}function Sn(t){return[].concat(t).sort((function(t,e){return t.line-e.line}))}function En(t){return function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return Sn(t.apply(this,e))}}Mn.source=En(_n),Mn.light=En(wn),Mn.layer=En(yn),Mn.filter=En(dn),Mn.paintProperty=En(gn),Mn.layoutProperty=En(vn);var Ln=Mn,Cn=Ln.light,Pn=Ln.paintProperty,In=Ln.layoutProperty;function On(t,e){var r=!1;if(e&amp;&amp;e.length)for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];t.fire(new St(new Error(a.message))),r=!0}return r}var zn=Dn;function Dn(t,e,r){var n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var i=new Int32Array(this.arrayBuffer);t=i[0],e=i[1],r=i[2],this.d=e+2*r;for(var a=0;a&lt;this.d*this.d;a++){var o=i[3+a],s=i[3+a+1];n.push(o===s?null:i.subarray(o,s))}var l=i[3+n.length],c=i[3+n.length+1];this.keys=i.subarray(l,c),this.bboxes=i.subarray(c),this.insert=this._insertReadonly}else{this.d=e+2*r;for(var u=0;u&lt;this.d*this.d;u++)n.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=r,this.scale=e/t,this.uid=0;var f=r/e*t;this.min=-f,this.max=t+f}Dn.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},Dn.prototype._insertReadonly=function(){throw&quot;Cannot insert into a GridIndex created from an ArrayBuffer.&quot;},Dn.prototype._insertCell=function(t,e,r,n,i,a){this.cells[i].push(a)},Dn.prototype.query=function(t,e,r,n,i){var a=this.min,o=this.max;if(t&lt;=a&amp;&amp;e&lt;=a&amp;&amp;o&lt;=r&amp;&amp;o&lt;=n&amp;&amp;!i)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(t,e,r,n,this._queryCell,s,{},i),s},Dn.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=this.cells[i];if(null!==l)for(var c=this.keys,u=this.bboxes,f=0;f&lt;l.length;f++){var h=l[f];if(void 0===o[h]){var p=4*h;(s?s(u[p+0],u[p+1],u[p+2],u[p+3]):t&lt;=u[p+2]&amp;&amp;e&lt;=u[p+3]&amp;&amp;r&gt;=u[p+0]&amp;&amp;n&gt;=u[p+1])?(o[h]=!0,a.push(c[h])):o[h]=!1}}},Dn.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToCellCoord(t),c=this._convertToCellCoord(e),u=this._convertToCellCoord(r),f=this._convertToCellCoord(n),h=l;h&lt;=u;h++)for(var p=c;p&lt;=f;p++){var d=this.d*p+h;if((!s||s(this._convertFromCellCoord(h),this._convertFromCellCoord(p),this._convertFromCellCoord(h+1),this._convertFromCellCoord(p+1)))&amp;&amp;i.call(this,t,e,r,n,d,a,o,s))return}},Dn.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},Dn.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},Dn.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,r=0,n=0;n&lt;this.cells.length;n++)r+=this.cells[n].length;var i=new Int32Array(e+r+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var a=e,o=0;o&lt;t.length;o++){var s=t[o];i[3+o]=a,i.set(s,a),a+=s.length}return i[3+t.length]=a,i.set(this.keys,a),a+=this.keys.length,i[3+t.length+1]=a,i.set(this.bboxes,a),a+=this.bboxes.length,i.buffer};var Rn=self.ImageData,Fn=self.ImageBitmap,Bn={};function Nn(t,e,r){void 0===r&amp;&amp;(r={}),Object.defineProperty(e,&quot;_classRegistryKey&quot;,{value:t,writeable:!1}),Bn[t]={klass:e,omit:r.omit||[],shallow:r.shallow||[]}}for(var jn in Nn(&quot;Object&quot;,Object),zn.serialize=function(t,e){var r=t.toArrayBuffer();return e&amp;&amp;e.push(r),{buffer:r}},zn.deserialize=function(t){return new zn(t.buffer)},Nn(&quot;Grid&quot;,zn),Nn(&quot;Color&quot;,te),Nn(&quot;Error&quot;,Error),Nn(&quot;ResolvedImage&quot;,ie),Nn(&quot;StylePropertyFunction&quot;,Kr),Nn(&quot;StyleExpression&quot;,Gr,{omit:[&quot;_evaluator&quot;]}),Nn(&quot;ZoomDependentExpression&quot;,Zr),Nn(&quot;ZoomConstantExpression&quot;,Xr),Nn(&quot;CompoundExpression&quot;,xe,{omit:[&quot;_evaluate&quot;]}),Sr)Sr[jn]._classRegistryKey||Nn(&quot;Expression_&quot;+jn,Sr[jn]);function Un(t){return t&amp;&amp;&quot;undefined&quot;!=typeof ArrayBuffer&amp;&amp;(t instanceof ArrayBuffer||t.constructor&amp;&amp;&quot;ArrayBuffer&quot;===t.constructor.name)}function Vn(t){return Fn&amp;&amp;t instanceof Fn}function Hn(t,e){if(null==t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(Un(t)||Vn(t))return e&amp;&amp;e.push(t),t;if(ArrayBuffer.isView(t)){var r=t;return e&amp;&amp;e.push(r.buffer),r}if(t instanceof Rn)return e&amp;&amp;e.push(t.data.buffer),t;if(Array.isArray(t)){for(var n=[],i=0,a=t;i&lt;a.length;i+=1){var o=a[i];n.push(Hn(o,e))}return n}if(&quot;object&quot;==typeof t){var s=t.constructor,l=s._classRegistryKey;if(!l)throw new Error(&quot;can't serialize object of unregistered class&quot;);var c=s.serialize?s.serialize(t,e):{};if(!s.serialize){for(var u in t)if(t.hasOwnProperty(u)&amp;&amp;!(Bn[l].omit.indexOf(u)&gt;=0)){var f=t[u];c[u]=Bn[l].shallow.indexOf(u)&gt;=0?f:Hn(f,e)}t instanceof Error&amp;&amp;(c.message=t.message)}if(c.$name)throw new Error(&quot;$name property is reserved for worker serialization logic.&quot;);return&quot;Object&quot;!==l&amp;&amp;(c.$name=l),c}throw new Error(&quot;can't serialize object of type &quot;+typeof t)}function qn(t){if(null==t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||Un(t)||Vn(t)||ArrayBuffer.isView(t)||t instanceof Rn)return t;if(Array.isArray(t))return t.map(qn);if(&quot;object&quot;==typeof t){var e=t.$name||&quot;Object&quot;,r=Bn[e].klass;if(!r)throw new Error(&quot;can't deserialize unregistered class &quot;+e);if(r.deserialize)return r.deserialize(t);for(var n=Object.create(r.prototype),i=0,a=Object.keys(t);i&lt;a.length;i+=1){var o=a[i];if(&quot;$name&quot;!==o){var s=t[o];n[o]=Bn[e].shallow.indexOf(o)&gt;=0?s:qn(s)}}return n}throw new Error(&quot;can't deserialize object of type &quot;+typeof t)}var Gn=function(){this.first=!0};Gn.prototype.update=function(t,e){var r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom&gt;r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoom&lt;r&amp;&amp;(this.lastIntegerZoom=r,this.lastIntegerZoomTime=e),t!==this.lastZoom&amp;&amp;(this.lastZoom=t,this.lastFloorZoom=r,!0))};var Yn={&quot;Latin-1 Supplement&quot;:function(t){return t&gt;=128&amp;&amp;t&lt;=255},Arabic:function(t){return t&gt;=1536&amp;&amp;t&lt;=1791},&quot;Arabic Supplement&quot;:function(t){return t&gt;=1872&amp;&amp;t&lt;=1919},&quot;Arabic Extended-A&quot;:function(t){return t&gt;=2208&amp;&amp;t&lt;=2303},&quot;Hangul Jamo&quot;:function(t){return t&gt;=4352&amp;&amp;t&lt;=4607},&quot;Unified Canadian Aboriginal Syllabics&quot;:function(t){return t&gt;=5120&amp;&amp;t&lt;=5759},Khmer:function(t){return t&gt;=6016&amp;&amp;t&lt;=6143},&quot;Unified Canadian Aboriginal Syllabics Extended&quot;:function(t){return t&gt;=6320&amp;&amp;t&lt;=6399},&quot;General Punctuation&quot;:function(t){return t&gt;=8192&amp;&amp;t&lt;=8303},&quot;Letterlike Symbols&quot;:function(t){return t&gt;=8448&amp;&amp;t&lt;=8527},&quot;Number Forms&quot;:function(t){return t&gt;=8528&amp;&amp;t&lt;=8591},&quot;Miscellaneous Technical&quot;:function(t){return t&gt;=8960&amp;&amp;t&lt;=9215},&quot;Control Pictures&quot;:function(t){return t&gt;=9216&amp;&amp;t&lt;=9279},&quot;Optical Character Recognition&quot;:function(t){return t&gt;=9280&amp;&amp;t&lt;=9311},&quot;Enclosed Alphanumerics&quot;:function(t){return t&gt;=9312&amp;&amp;t&lt;=9471},&quot;Geometric Shapes&quot;:function(t){return t&gt;=9632&amp;&amp;t&lt;=9727},&quot;Miscellaneous Symbols&quot;:function(t){return t&gt;=9728&amp;&amp;t&lt;=9983},&quot;Miscellaneous Symbols and Arrows&quot;:function(t){return t&gt;=11008&amp;&amp;t&lt;=11263},&quot;CJK Radicals Supplement&quot;:function(t){return t&gt;=11904&amp;&amp;t&lt;=12031},&quot;Kangxi Radicals&quot;:function(t){return t&gt;=12032&amp;&amp;t&lt;=12255},&quot;Ideographic Description Characters&quot;:function(t){return t&gt;=12272&amp;&amp;t&lt;=12287},&quot;CJK Symbols and Punctuation&quot;:function(t){return t&gt;=12288&amp;&amp;t&lt;=12351},Hiragana:function(t){return t&gt;=12352&amp;&amp;t&lt;=12447},Katakana:function(t){return t&gt;=12448&amp;&amp;t&lt;=12543},Bopomofo:function(t){return t&gt;=12544&amp;&amp;t&lt;=12591},&quot;Hangul Compatibility Jamo&quot;:function(t){return t&gt;=12592&amp;&amp;t&lt;=12687},Kanbun:function(t){return t&gt;=12688&amp;&amp;t&lt;=12703},&quot;Bopomofo Extended&quot;:function(t){return t&gt;=12704&amp;&amp;t&lt;=12735},&quot;CJK Strokes&quot;:function(t){return t&gt;=12736&amp;&amp;t&lt;=12783},&quot;Katakana Phonetic Extensions&quot;:function(t){return t&gt;=12784&amp;&amp;t&lt;=12799},&quot;Enclosed CJK Letters and Months&quot;:function(t){return t&gt;=12800&amp;&amp;t&lt;=13055},&quot;CJK Compatibility&quot;:function(t){return t&gt;=13056&amp;&amp;t&lt;=13311},&quot;CJK Unified Ideographs Extension A&quot;:function(t){return t&gt;=13312&amp;&amp;t&lt;=19903},&quot;Yijing Hexagram Symbols&quot;:function(t){return t&gt;=19904&amp;&amp;t&lt;=19967},&quot;CJK Unified Ideographs&quot;:function(t){return t&gt;=19968&amp;&amp;t&lt;=40959},&quot;Yi Syllables&quot;:function(t){return t&gt;=40960&amp;&amp;t&lt;=42127},&quot;Yi Radicals&quot;:function(t){return t&gt;=42128&amp;&amp;t&lt;=42191},&quot;Hangul Jamo Extended-A&quot;:function(t){return t&gt;=43360&amp;&amp;t&lt;=43391},&quot;Hangul Syllables&quot;:function(t){return t&gt;=44032&amp;&amp;t&lt;=55215},&quot;Hangul Jamo Extended-B&quot;:function(t){return t&gt;=55216&amp;&amp;t&lt;=55295},&quot;Private Use Area&quot;:function(t){return t&gt;=57344&amp;&amp;t&lt;=63743},&quot;CJK Compatibility Ideographs&quot;:function(t){return t&gt;=63744&amp;&amp;t&lt;=64255},&quot;Arabic Presentation Forms-A&quot;:function(t){return t&gt;=64336&amp;&amp;t&lt;=65023},&quot;Vertical Forms&quot;:function(t){return t&gt;=65040&amp;&amp;t&lt;=65055},&quot;CJK Compatibility Forms&quot;:function(t){return t&gt;=65072&amp;&amp;t&lt;=65103},&quot;Small Form Variants&quot;:function(t){return t&gt;=65104&amp;&amp;t&lt;=65135},&quot;Arabic Presentation Forms-B&quot;:function(t){return t&gt;=65136&amp;&amp;t&lt;=65279},&quot;Halfwidth and Fullwidth Forms&quot;:function(t){return t&gt;=65280&amp;&amp;t&lt;=65519}};function Wn(t){for(var e=0,r=t;e&lt;r.length;e+=1){if(Zn(r[e].charCodeAt(0)))return!0}return!1}function Xn(t){return!Yn.Arabic(t)&amp;&amp;(!Yn[&quot;Arabic Supplement&quot;](t)&amp;&amp;(!Yn[&quot;Arabic Extended-A&quot;](t)&amp;&amp;(!Yn[&quot;Arabic Presentation Forms-A&quot;](t)&amp;&amp;!Yn[&quot;Arabic Presentation Forms-B&quot;](t))))}function Zn(t){return 746===t||747===t||!(t&lt;4352)&amp;&amp;(!!Yn[&quot;Bopomofo Extended&quot;](t)||(!!Yn.Bopomofo(t)||(!(!Yn[&quot;CJK Compatibility Forms&quot;](t)||t&gt;=65097&amp;&amp;t&lt;=65103)||(!!Yn[&quot;CJK Compatibility Ideographs&quot;](t)||(!!Yn[&quot;CJK Compatibility&quot;](t)||(!!Yn[&quot;CJK Radicals Supplement&quot;](t)||(!!Yn[&quot;CJK Strokes&quot;](t)||(!(!Yn[&quot;CJK Symbols and Punctuation&quot;](t)||t&gt;=12296&amp;&amp;t&lt;=12305||t&gt;=12308&amp;&amp;t&lt;=12319||12336===t)||(!!Yn[&quot;CJK Unified Ideographs Extension A&quot;](t)||(!!Yn[&quot;CJK Unified Ideographs&quot;](t)||(!!Yn[&quot;Enclosed CJK Letters and Months&quot;](t)||(!!Yn[&quot;Hangul Compatibility Jamo&quot;](t)||(!!Yn[&quot;Hangul Jamo Extended-A&quot;](t)||(!!Yn[&quot;Hangul Jamo Extended-B&quot;](t)||(!!Yn[&quot;Hangul Jamo&quot;](t)||(!!Yn[&quot;Hangul Syllables&quot;](t)||(!!Yn.Hiragana(t)||(!!Yn[&quot;Ideographic Description Characters&quot;](t)||(!!Yn.Kanbun(t)||(!!Yn[&quot;Kangxi Radicals&quot;](t)||(!!Yn[&quot;Katakana Phonetic Extensions&quot;](t)||(!(!Yn.Katakana(t)||12540===t)||(!(!Yn[&quot;Halfwidth and Fullwidth Forms&quot;](t)||65288===t||65289===t||65293===t||t&gt;=65306&amp;&amp;t&lt;=65310||65339===t||65341===t||65343===t||t&gt;=65371&amp;&amp;t&lt;=65503||65507===t||t&gt;=65512&amp;&amp;t&lt;=65519)||(!(!Yn[&quot;Small Form Variants&quot;](t)||t&gt;=65112&amp;&amp;t&lt;=65118||t&gt;=65123&amp;&amp;t&lt;=65126)||(!!Yn[&quot;Unified Canadian Aboriginal Syllabics&quot;](t)||(!!Yn[&quot;Unified Canadian Aboriginal Syllabics Extended&quot;](t)||(!!Yn[&quot;Vertical Forms&quot;](t)||(!!Yn[&quot;Yijing Hexagram Symbols&quot;](t)||(!!Yn[&quot;Yi Syllables&quot;](t)||!!Yn[&quot;Yi Radicals&quot;](t))))))))))))))))))))))))))))))}function Jn(t){return!(Zn(t)||function(t){return!(!Yn[&quot;Latin-1 Supplement&quot;](t)||167!==t&amp;&amp;169!==t&amp;&amp;174!==t&amp;&amp;177!==t&amp;&amp;188!==t&amp;&amp;189!==t&amp;&amp;190!==t&amp;&amp;215!==t&amp;&amp;247!==t)||(!(!Yn[&quot;General Punctuation&quot;](t)||8214!==t&amp;&amp;8224!==t&amp;&amp;8225!==t&amp;&amp;8240!==t&amp;&amp;8241!==t&amp;&amp;8251!==t&amp;&amp;8252!==t&amp;&amp;8258!==t&amp;&amp;8263!==t&amp;&amp;8264!==t&amp;&amp;8265!==t&amp;&amp;8273!==t)||(!!Yn[&quot;Letterlike Symbols&quot;](t)||(!!Yn[&quot;Number Forms&quot;](t)||(!(!Yn[&quot;Miscellaneous Technical&quot;](t)||!(t&gt;=8960&amp;&amp;t&lt;=8967||t&gt;=8972&amp;&amp;t&lt;=8991||t&gt;=8996&amp;&amp;t&lt;=9e3||9003===t||t&gt;=9085&amp;&amp;t&lt;=9114||t&gt;=9150&amp;&amp;t&lt;=9165||9167===t||t&gt;=9169&amp;&amp;t&lt;=9179||t&gt;=9186&amp;&amp;t&lt;=9215))||(!(!Yn[&quot;Control Pictures&quot;](t)||9251===t)||(!!Yn[&quot;Optical Character Recognition&quot;](t)||(!!Yn[&quot;Enclosed Alphanumerics&quot;](t)||(!!Yn[&quot;Geometric Shapes&quot;](t)||(!(!Yn[&quot;Miscellaneous Symbols&quot;](t)||t&gt;=9754&amp;&amp;t&lt;=9759)||(!(!Yn[&quot;Miscellaneous Symbols and Arrows&quot;](t)||!(t&gt;=11026&amp;&amp;t&lt;=11055||t&gt;=11088&amp;&amp;t&lt;=11097||t&gt;=11192&amp;&amp;t&lt;=11243))||(!!Yn[&quot;CJK Symbols and Punctuation&quot;](t)||(!!Yn.Katakana(t)||(!!Yn[&quot;Private Use Area&quot;](t)||(!!Yn[&quot;CJK Compatibility Forms&quot;](t)||(!!Yn[&quot;Small Form Variants&quot;](t)||(!!Yn[&quot;Halfwidth and Fullwidth Forms&quot;](t)||(8734===t||8756===t||8757===t||t&gt;=9984&amp;&amp;t&lt;=10087||t&gt;=10102&amp;&amp;t&lt;=10131||65532===t||65533===t)))))))))))))))))}(t))}function Kn(t){return t&gt;=1424&amp;&amp;t&lt;=2303||Yn[&quot;Arabic Presentation Forms-A&quot;](t)||Yn[&quot;Arabic Presentation Forms-B&quot;](t)}function Qn(t,e){return!(!e&amp;&amp;Kn(t))&amp;&amp;!(t&gt;=2304&amp;&amp;t&lt;=3583||t&gt;=3840&amp;&amp;t&lt;=4255||Yn.Khmer(t))}function $n(t){for(var e=0,r=t;e&lt;r.length;e+=1){if(Kn(r[e].charCodeAt(0)))return!0}return!1}var ti=&quot;deferred&quot;,ei=&quot;loading&quot;,ri=&quot;loaded&quot;,ni=&quot;error&quot;,ii=null,ai=&quot;unavailable&quot;,oi=null,si=function(t){t&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;t.indexOf(&quot;NetworkError&quot;)&gt;-1&amp;&amp;(ai=ni),ii&amp;&amp;ii(t)};function li(){ci.fire(new Mt(&quot;pluginStateChange&quot;,{pluginStatus:ai,pluginURL:oi}))}var ci=new Et,ui=function(){return ai},fi=function(){if(ai!==ti||!oi)throw new Error(&quot;rtl-text-plugin cannot be downloaded unless a pluginURL is specified&quot;);ai=ei,li(),oi&amp;&amp;xt({url:oi},(function(t){t?si(t):(ai=ri,li())}))},hi={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return ai===ri||null!=hi.applyArabicShaping},isLoading:function(){return ai===ei},setState:function(t){ai=t.pluginStatus,oi=t.pluginURL},isParsed:function(){return null!=hi.applyArabicShaping&amp;&amp;null!=hi.processBidirectionalText&amp;&amp;null!=hi.processStyledBidirectionalText},getPluginURL:function(){return oi}},pi=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Gn,this.transition={})};pi.prototype.isSupportedScript=function(t){return function(t,e){for(var r=0,n=t;r&lt;n.length;r+=1){if(!Qn(n[r].charCodeAt(0),e))return!1}return!0}(t,hi.isLoaded())},pi.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},pi.prototype.getCrossfadeParameters=function(){var t=this.zoom,e=t-Math.floor(t),r=this.crossFadingFactor();return t&gt;this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}};var di=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(Br(t))return new Kr(t,e);if(Yr(t)){var r=Jr(t,e);if(&quot;error&quot;===r.result)throw new Error(r.value.map((function(t){return t.key+&quot;: &quot;+t.message})).join(&quot;, &quot;));return r.value}var n=t;return&quot;string&quot;==typeof t&amp;&amp;&quot;color&quot;===e.type&amp;&amp;(n=te.parse(t)),{kind:&quot;constant&quot;,evaluate:function(){return n}}}(void 0===e?t.specification.default:e,t.specification)};di.prototype.isDataDriven=function(){return&quot;source&quot;===this.expression.kind||&quot;composite&quot;===this.expression.kind},di.prototype.possiblyEvaluate=function(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)};var mi=function(t){this.property=t,this.value=new di(t,void 0)};mi.prototype.transitioned=function(t,e){return new vi(this.property,this.value,e,u({},t.transition,this.transition),t.now)},mi.prototype.untransitioned=function(){return new vi(this.property,this.value,null,{},0)};var gi=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};gi.prototype.getValue=function(t){return x(this._values[t].value.value)},gi.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new mi(this._values[t].property)),this._values[t].value=new di(this._values[t].property,null===e?void 0:x(e))},gi.prototype.getTransition=function(t){return x(this._values[t].transition)},gi.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new mi(this._values[t].property)),this._values[t].transition=x(e)||void 0},gi.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&amp;&amp;(t[n]=i);var a=this.getTransition(n);void 0!==a&amp;&amp;(t[n+&quot;-transition&quot;]=a)}return t},gi.prototype.transitioned=function(t,e){for(var r=new yi(this._properties),n=0,i=Object.keys(this._values);n&lt;i.length;n+=1){var a=i[n];r._values[a]=this._values[a].transitioned(t,e._values[a])}return r},gi.prototype.untransitioned=function(){for(var t=new yi(this._properties),e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e];t._values[n]=this._values[n].untransitioned()}return t};var vi=function(t,e,r,n,i){this.property=t,this.value=e,this.begin=i+n.delay||0,this.end=this.begin+n.duration||0,t.specification.transition&amp;&amp;(n.delay||n.duration)&amp;&amp;(this.prior=r)};vi.prototype.possiblyEvaluate=function(t,e,r){var n=t.now||0,i=this.value.possiblyEvaluate(t,e,r),a=this.prior;if(a){if(n&gt;this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(n&lt;this.begin)return a.possiblyEvaluate(t,e,r);var o=(n-this.begin)/(this.end-this.begin);return this.property.interpolate(a.possiblyEvaluate(t,e,r),i,function(t){if(t&lt;=0)return 0;if(t&gt;=1)return 1;var e=t*t,r=e*t;return 4*(t&lt;.5?r:3*(t-e)+r-.75)}(o))}return i};var yi=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};yi.prototype.possiblyEvaluate=function(t,e,r){for(var n=new _i(this._properties),i=0,a=Object.keys(this._values);i&lt;a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n},yi.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t&lt;e.length;t+=1){var r=e[t];if(this._values[r].prior)return!0}return!1};var xi=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};xi.prototype.getValue=function(t){return x(this._values[t].value)},xi.prototype.setValue=function(t,e){this._values[t]=new di(this._values[t].property,null===e?void 0:x(e))},xi.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&amp;&amp;(t[n]=i)}return t},xi.prototype.possiblyEvaluate=function(t,e,r){for(var n=new _i(this._properties),i=0,a=Object.keys(this._values);i&lt;a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n};var bi=function(t,e,r){this.property=t,this.value=e,this.parameters=r};bi.prototype.isConstant=function(){return&quot;constant&quot;===this.value.kind},bi.prototype.constantOr=function(t){return&quot;constant&quot;===this.value.kind?this.value.value:t},bi.prototype.evaluate=function(t,e,r,n){return this.property.evaluate(this.value,this.parameters,t,e,r,n)};var _i=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};_i.prototype.get=function(t){return this._values[t]};var wi=function(t){this.specification=t};wi.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},wi.prototype.interpolate=function(t,e,r){var n=Ge[this.specification.type];return n?n(t,e,r):t};var Ti=function(t,e){this.specification=t,this.overrides=e};Ti.prototype.possiblyEvaluate=function(t,e,r,n){return&quot;constant&quot;===t.expression.kind||&quot;camera&quot;===t.expression.kind?new bi(this,{kind:&quot;constant&quot;,value:t.expression.evaluate(e,null,{},r,n)},e):new bi(this,t.expression,e)},Ti.prototype.interpolate=function(t,e,r){if(&quot;constant&quot;!==t.value.kind||&quot;constant&quot;!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new bi(this,{kind:&quot;constant&quot;,value:void 0},t.parameters);var n=Ge[this.specification.type];return n?new bi(this,{kind:&quot;constant&quot;,value:n(t.value.value,e.value.value,r)},t.parameters):t},Ti.prototype.evaluate=function(t,e,r,n,i,a){return&quot;constant&quot;===t.kind?t.value:t.evaluate(e,r,n,i,a)};var ki=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0===t.value)return new bi(this,{kind:&quot;constant&quot;,value:void 0},e);if(&quot;constant&quot;===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n),a=&quot;resolvedImage&quot;===t.property.specification.type&amp;&amp;&quot;string&quot;!=typeof i?i.name:i,o=this._calculate(a,a,a,e);return new bi(this,{kind:&quot;constant&quot;,value:o},e)}if(&quot;camera&quot;===t.expression.kind){var s=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new bi(this,{kind:&quot;constant&quot;,value:s},e)}return new bi(this,t.expression,e)},e.prototype.evaluate=function(t,e,r,n,i,a){if(&quot;source&quot;===t.kind){var o=t.evaluate(e,r,n,i,a);return this._calculate(o,o,o,e)}return&quot;composite&quot;===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},r,n),t.evaluate({zoom:Math.floor(e.zoom)},r,n),t.evaluate({zoom:Math.floor(e.zoom)+1},r,n),e):t.value},e.prototype._calculate=function(t,e,r,n){return n.zoom&gt;n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},e.prototype.interpolate=function(t){return t},e}(Ti),Ai=function(t){this.specification=t};Ai.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0!==t.value){if(&quot;constant&quot;===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n);return this._calculate(i,i,i,e)}return this._calculate(t.expression.evaluate(new pi(Math.floor(e.zoom-1),e)),t.expression.evaluate(new pi(Math.floor(e.zoom),e)),t.expression.evaluate(new pi(Math.floor(e.zoom+1),e)),e)}},Ai.prototype._calculate=function(t,e,r,n){return n.zoom&gt;n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},Ai.prototype.interpolate=function(t){return t};var Mi=function(t){this.specification=t};Mi.prototype.possiblyEvaluate=function(t,e,r,n){return!!t.expression.evaluate(e,null,{},r,n)},Mi.prototype.interpolate=function(){return!1};var Si=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var r=t[e];r.specification.overridable&amp;&amp;this.overridableProperties.push(e);var n=this.defaultPropertyValues[e]=new di(r,void 0),i=this.defaultTransitionablePropertyValues[e]=new mi(r);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=n.possiblyEvaluate({})}};Nn(&quot;DataDrivenProperty&quot;,Ti),Nn(&quot;DataConstantProperty&quot;,wi),Nn(&quot;CrossFadedDataDrivenProperty&quot;,ki),Nn(&quot;CrossFadedProperty&quot;,Ai),Nn(&quot;ColorRampProperty&quot;,Mi);var Ei=function(t){function e(e,r){if(t.call(this),this.id=e.id,this.type=e.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},&quot;custom&quot;!==e.type&amp;&amp;(e=e,this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,&quot;background&quot;!==e.type&amp;&amp;(this.source=e.source,this.sourceLayer=e[&quot;source-layer&quot;],this.filter=e.filter),r.layout&amp;&amp;(this._unevaluatedLayout=new xi(r.layout)),r.paint)){for(var n in this._transitionablePaint=new gi(r.paint),e.paint)this.setPaintProperty(n,e.paint[n],{validate:!1});for(var i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new _i(r.paint)}}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return&quot;visibility&quot;===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,r){if(void 0===r&amp;&amp;(r={}),null!=e){var n=&quot;layers.&quot;+this.id+&quot;.layout.&quot;+t;if(this._validate(In,n,t,e,r))return}&quot;visibility&quot;!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e},e.prototype.getPaintProperty=function(t){return g(t,&quot;-transition&quot;)?this._transitionablePaint.getTransition(t.slice(0,-&quot;-transition&quot;.length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,r){if(void 0===r&amp;&amp;(r={}),null!=e){var n=&quot;layers.&quot;+this.id+&quot;.paint.&quot;+t;if(this._validate(Pn,n,t,e,r))return!1}if(g(t,&quot;-transition&quot;))return this._transitionablePaint.setTransition(t.slice(0,-&quot;-transition&quot;.length),e||void 0),!1;var i=this._transitionablePaint._values[t],a=&quot;cross-faded-data-driven&quot;===i.property.specification[&quot;property-type&quot;],o=i.value.isDataDriven(),s=i.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var l=this._transitionablePaint._values[t].value;return l.isDataDriven()||o||a||this._handleOverridablePaintPropertyUpdate(t,s,l)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype._handleOverridablePaintPropertyUpdate=function(t,e,r){return!1},e.prototype.isHidden=function(t){return!!(this.minzoom&amp;&amp;t&lt;this.minzoom)||(!!(this.maxzoom&amp;&amp;t&gt;=this.maxzoom)||&quot;none&quot;===this.visibility)},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t,e){t.getCrossfadeParameters&amp;&amp;(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&amp;&amp;(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,&quot;source-layer&quot;:this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&amp;&amp;this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&amp;&amp;this._transitionablePaint.serialize()};return this.visibility&amp;&amp;(t.layout=t.layout||{},t.layout.visibility=this.visibility),y(t,(function(t,e){return!(void 0===t||&quot;layout&quot;===e&amp;&amp;!Object.keys(t).length||&quot;paint&quot;===e&amp;&amp;!Object.keys(t).length)}))},e.prototype._validate=function(t,e,r,n,i){return void 0===i&amp;&amp;(i={}),(!i||!1!==i.validate)&amp;&amp;On(this,t.call(Ln,{key:e,layerType:this.type,objectKey:r,value:n,styleSpec:Lt,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof bi&amp;&amp;zr(e.property.specification)&amp;&amp;((&quot;source&quot;===e.value.kind||&quot;composite&quot;===e.value.kind)&amp;&amp;e.value.isStateDependent))return!0}return!1},e}(Et),Li={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},Ci=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},Pi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Ii(t,e){void 0===e&amp;&amp;(e=1);var r=0,n=0;return{members:t.map((function(t){var i,a=(i=t.type,Li[i].BYTES_PER_ELEMENT),o=r=Oi(r,Math.max(e,a)),s=t.components||1;return n=Math.max(n,a),r+=a*s,{name:t.name,type:t.type,components:s,offset:o}})),size:Oi(r,Math.max(n,e)),alignment:e}}function Oi(t,e){return Math.ceil(t/e)*e}Pi.serialize=function(t,e){return t._trim(),e&amp;&amp;(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},Pi.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},Pi.prototype._trim=function(){this.length!==this.capacity&amp;&amp;(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},Pi.prototype.clear=function(){this.length=0},Pi.prototype.resize=function(t){this.reserve(t),this.length=t},Pi.prototype.reserve=function(t){if(t&gt;this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&amp;&amp;this.uint8.set(e)}},Pi.prototype._refreshViews=function(){throw new Error(&quot;_refreshViews() must be implemented by each concrete StructArray layout&quot;)};var zi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.int16[n+0]=e,this.int16[n+1]=r,t},e}(Pi);zi.prototype.bytesPerElement=4,Nn(&quot;StructArrayLayout2i4&quot;,zi);var Di=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.int16[a+0]=e,this.int16[a+1]=r,this.int16[a+2]=n,this.int16[a+3]=i,t},e}(Pi);Di.prototype.bytesPerElement=8,Nn(&quot;StructArrayLayout4i8&quot;,Di);var Ri=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(Pi);Ri.prototype.bytesPerElement=12,Nn(&quot;StructArrayLayout2i4i12&quot;,Ri);var Fi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=4*t,l=8*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.uint8[l+4]=n,this.uint8[l+5]=i,this.uint8[l+6]=a,this.uint8[l+7]=o,t},e}(Pi);Fi.prototype.bytesPerElement=8,Nn(&quot;StructArrayLayout2i4ub8&quot;,Fi);var Bi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,n,i,a,o,s,l,c)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u){var f=9*t,h=18*t;return this.uint16[f+0]=e,this.uint16[f+1]=r,this.uint16[f+2]=n,this.uint16[f+3]=i,this.uint16[f+4]=a,this.uint16[f+5]=o,this.uint16[f+6]=s,this.uint16[f+7]=l,this.uint8[h+16]=c,this.uint8[h+17]=u,t},e}(Pi);Bi.prototype.bytesPerElement=18,Nn(&quot;StructArrayLayout8ui2ub18&quot;,Bi);var Ni=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f){var h=this.length;return this.resize(h+1),this.emplace(h,t,e,r,n,i,a,o,s,l,c,u,f)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=12*t;return this.int16[p+0]=e,this.int16[p+1]=r,this.int16[p+2]=n,this.int16[p+3]=i,this.uint16[p+4]=a,this.uint16[p+5]=o,this.uint16[p+6]=s,this.uint16[p+7]=l,this.int16[p+8]=c,this.int16[p+9]=u,this.int16[p+10]=f,this.int16[p+11]=h,t},e}(Pi);Ni.prototype.bytesPerElement=24,Nn(&quot;StructArrayLayout4i4ui4i24&quot;,Ni);var ji=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.float32[i+0]=e,this.float32[i+1]=r,this.float32[i+2]=n,t},e}(Pi);ji.prototype.bytesPerElement=12,Nn(&quot;StructArrayLayout3f12&quot;,ji);var Ui=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.uint32[r+0]=e,t},e}(Pi);Ui.prototype.bytesPerElement=4,Nn(&quot;StructArrayLayout1ul4&quot;,Ui);var Vi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,r,n,i,a,o,s,l)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c){var u=10*t,f=5*t;return this.int16[u+0]=e,this.int16[u+1]=r,this.int16[u+2]=n,this.int16[u+3]=i,this.int16[u+4]=a,this.int16[u+5]=o,this.uint32[f+3]=s,this.uint16[u+8]=l,this.uint16[u+9]=c,t},e}(Pi);Vi.prototype.bytesPerElement=20,Nn(&quot;StructArrayLayout6i1ul2ui20&quot;,Vi);var Hi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(Pi);Hi.prototype.bytesPerElement=12,Nn(&quot;StructArrayLayout2i2i2i12&quot;,Hi);var qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,n,i)},e.prototype.emplace=function(t,e,r,n,i,a){var o=4*t,s=8*t;return this.float32[o+0]=e,this.float32[o+1]=r,this.float32[o+2]=n,this.int16[s+6]=i,this.int16[s+7]=a,t},e}(Pi);qi.prototype.bytesPerElement=16,Nn(&quot;StructArrayLayout2f1f2i16&quot;,qi);var Gi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=12*t,o=3*t;return this.uint8[a+0]=e,this.uint8[a+1]=r,this.float32[o+1]=n,this.float32[o+2]=i,t},e}(Pi);Gi.prototype.bytesPerElement=12,Nn(&quot;StructArrayLayout2ub2f12&quot;,Gi);var Yi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.uint16[i+0]=e,this.uint16[i+1]=r,this.uint16[i+2]=n,t},e}(Pi);Yi.prototype.bytesPerElement=6,Nn(&quot;StructArrayLayout3ui6&quot;,Yi);var Wi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,m,g){var v=this.length;return this.resize(v+1),this.emplace(v,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,m,g)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,m,g,v){var y=24*t,x=12*t,b=48*t;return this.int16[y+0]=e,this.int16[y+1]=r,this.uint16[y+2]=n,this.uint16[y+3]=i,this.uint32[x+2]=a,this.uint32[x+3]=o,this.uint32[x+4]=s,this.uint16[y+10]=l,this.uint16[y+11]=c,this.uint16[y+12]=u,this.float32[x+7]=f,this.float32[x+8]=h,this.uint8[b+36]=p,this.uint8[b+37]=d,this.uint8[b+38]=m,this.uint32[x+10]=g,this.int16[y+22]=v,t},e}(Pi);Wi.prototype.bytesPerElement=48,Nn(&quot;StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48&quot;,Wi);var Xi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,m,g,v,y,x,b,_,w,T,k,A,M,S){var E=this.length;return this.resize(E+1),this.emplace(E,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,m,g,v,y,x,b,_,w,T,k,A,M,S)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,m,g,v,y,x,b,_,w,T,k,A,M,S,E){var L=34*t,C=17*t;return this.int16[L+0]=e,this.int16[L+1]=r,this.int16[L+2]=n,this.int16[L+3]=i,this.int16[L+4]=a,this.int16[L+5]=o,this.int16[L+6]=s,this.int16[L+7]=l,this.uint16[L+8]=c,this.uint16[L+9]=u,this.uint16[L+10]=f,this.uint16[L+11]=h,this.uint16[L+12]=p,this.uint16[L+13]=d,this.uint16[L+14]=m,this.uint16[L+15]=g,this.uint16[L+16]=v,this.uint16[L+17]=y,this.uint16[L+18]=x,this.uint16[L+19]=b,this.uint16[L+20]=_,this.uint16[L+21]=w,this.uint16[L+22]=T,this.uint32[C+12]=k,this.float32[C+13]=A,this.float32[C+14]=M,this.float32[C+15]=S,this.float32[C+16]=E,t},e}(Pi);Xi.prototype.bytesPerElement=68,Nn(&quot;StructArrayLayout8i15ui1ul4f68&quot;,Xi);var Zi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.float32[r+0]=e,t},e}(Pi);Zi.prototype.bytesPerElement=4,Nn(&quot;StructArrayLayout1f4&quot;,Zi);var Ji=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.int16[i+0]=e,this.int16[i+1]=r,this.int16[i+2]=n,t},e}(Pi);Ji.prototype.bytesPerElement=6,Nn(&quot;StructArrayLayout3i6&quot;,Ji);var Ki=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=2*t,a=4*t;return this.uint32[i+0]=e,this.uint16[a+2]=r,this.uint16[a+3]=n,t},e}(Pi);Ki.prototype.bytesPerElement=8,Nn(&quot;StructArrayLayout1ul2ui8&quot;,Ki);var Qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.uint16[n+0]=e,this.uint16[n+1]=r,t},e}(Pi);Qi.prototype.bytesPerElement=4,Nn(&quot;StructArrayLayout2ui4&quot;,Qi);var $i=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){var r=1*t;return this.uint16[r+0]=e,t},e}(Pi);$i.prototype.bytesPerElement=2,Nn(&quot;StructArrayLayout1ui2&quot;,$i);var ta=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.float32[n+0]=e,this.float32[n+1]=r,t},e}(Pi);ta.prototype.bytesPerElement=8,Nn(&quot;StructArrayLayout2f8&quot;,ta);var ea=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=n,this.float32[a+3]=i,t},e}(Pi);ea.prototype.bytesPerElement=16,Nn(&quot;StructArrayLayout4f16&quot;,ea);var ra=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return r.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},r.x1.get=function(){return this._structArray.int16[this._pos2+2]},r.y1.get=function(){return this._structArray.int16[this._pos2+3]},r.x2.get=function(){return this._structArray.int16[this._pos2+4]},r.y2.get=function(){return this._structArray.int16[this._pos2+5]},r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.anchorPoint.get=function(){return new i(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,r),e}(Ci);ra.prototype.size=20;var na=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new ra(this,t)},e}(Vi);Nn(&quot;CollisionBoxArray&quot;,na);var ia=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},r.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},r.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},r.segment.get=function(){return this._structArray.uint16[this._pos2+10]},r.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},r.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},r.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},r.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},r.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},r.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},r.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},r.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},r.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},r.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(e.prototype,r),e}(Ci);ia.prototype.size=48;var aa=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new ia(this,t)},e}(Wi);Nn(&quot;PlacedSymbolArray&quot;,aa);var oa=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},r.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},r.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},r.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},r.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},r.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},r.key.get=function(){return this._structArray.uint16[this._pos2+8]},r.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},r.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},r.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},r.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},r.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},r.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},r.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},r.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},r.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},r.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},r.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},r.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},r.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+12]=t},r.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},r.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},r.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},r.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(e.prototype,r),e}(Ci);oa.prototype.size=68;var sa=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new oa(this,t)},e}(Xi);Nn(&quot;SymbolInstanceArray&quot;,sa);var la=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e}(Zi);Nn(&quot;GlyphOffsetArray&quot;,la);var ca=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e}(Ji);Nn(&quot;SymbolLineVertexArray&quot;,ca);var ua=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(e.prototype,r),e}(Ci);ua.prototype.size=8;var fa=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){return new ua(this,t)},e}(Ki);Nn(&quot;FeatureIndexArray&quot;,fa);var ha=Ii([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;}],4).members,pa=function(t){void 0===t&amp;&amp;(t=[]),this.segments=t};function da(t,e){return 256*(t=l(Math.floor(t),0,255))+(e=l(Math.floor(e),0,255))}pa.prototype.prepareSegment=function(t,e,r,n){var i=this.segments[this.segments.length-1];return t&gt;pa.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;_(&quot;Max vertices per segment is &quot;+pa.MAX_VERTEX_ARRAY_LENGTH+&quot;: bucket requested &quot;+t),(!i||i.vertexLength+t&gt;pa.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==n)&amp;&amp;(i={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},void 0!==n&amp;&amp;(i.sortKey=n),this.segments.push(i)),i},pa.prototype.get=function(){return this.segments},pa.prototype.destroy=function(){for(var t=0,e=this.segments;t&lt;e.length;t+=1){var r=e[t];for(var n in r.vaos)r.vaos[n].destroy()}},pa.simpleSegment=function(t,e,r,n){return new pa([{vertexOffset:t,primitiveOffset:e,vertexLength:r,primitiveLength:n,vaos:{},sortKey:0}])},pa.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Nn(&quot;SegmentVector&quot;,pa);var ma=Ii([{name:&quot;a_pattern_from&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pattern_to&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pixel_ratio_from&quot;,components:1,type:&quot;Uint8&quot;},{name:&quot;a_pixel_ratio_to&quot;,components:1,type:&quot;Uint8&quot;}]),ga=e((function(t){t.exports=function(t,e){var r,n,i,a,o,s,l,c;for(r=3&amp;t.length,n=t.length-r,i=e,o=3432918353,s=461845907,c=0;c&lt;n;)l=255&amp;t.charCodeAt(c)|(255&amp;t.charCodeAt(++c))&lt;&lt;8|(255&amp;t.charCodeAt(++c))&lt;&lt;16|(255&amp;t.charCodeAt(++c))&lt;&lt;24,++c,i=27492+(65535&amp;(a=5*(65535&amp;(i=(i^=l=(65535&amp;(l=(l=(65535&amp;l)*o+(((l&gt;&gt;&gt;16)*o&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;13|i&gt;&gt;&gt;19))+((5*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295))+((58964+(a&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16);switch(l=0,r){case 3:l^=(255&amp;t.charCodeAt(c+2))&lt;&lt;16;case 2:l^=(255&amp;t.charCodeAt(c+1))&lt;&lt;8;case 1:i^=l=(65535&amp;(l=(l=(65535&amp;(l^=255&amp;t.charCodeAt(c)))*o+(((l&gt;&gt;&gt;16)*o&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295}return i^=t.length,i=2246822507*(65535&amp;(i^=i&gt;&gt;&gt;16))+((2246822507*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,i=3266489909*(65535&amp;(i^=i&gt;&gt;&gt;13))+((3266489909*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,(i^=i&gt;&gt;&gt;16)&gt;&gt;&gt;0}})),va=e((function(t){t.exports=function(t,e){for(var r,n=t.length,i=e^n,a=0;n&gt;=4;)r=1540483477*(65535&amp;(r=255&amp;t.charCodeAt(a)|(255&amp;t.charCodeAt(++a))&lt;&lt;8|(255&amp;t.charCodeAt(++a))&lt;&lt;16|(255&amp;t.charCodeAt(++a))&lt;&lt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),i=1540483477*(65535&amp;i)+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)^(r=1540483477*(65535&amp;(r^=r&gt;&gt;&gt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)),n-=4,++a;switch(n){case 3:i^=(255&amp;t.charCodeAt(a+2))&lt;&lt;16;case 2:i^=(255&amp;t.charCodeAt(a+1))&lt;&lt;8;case 1:i=1540483477*(65535&amp;(i^=255&amp;t.charCodeAt(a)))+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)}return i=1540483477*(65535&amp;(i^=i&gt;&gt;&gt;13))+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),(i^=i&gt;&gt;&gt;15)&gt;&gt;&gt;0}})),ya=ga,xa=ga,ba=va;ya.murmur3=xa,ya.murmur2=ba;var _a=function(){this.ids=[],this.positions=[],this.indexed=!1};_a.prototype.add=function(t,e,r,n){this.ids.push(Ta(t)),this.positions.push(e,r,n)},_a.prototype.getPositions=function(t){for(var e=Ta(t),r=0,n=this.ids.length-1;r&lt;n;){var i=r+n&gt;&gt;1;this.ids[i]&gt;=e?n=i:r=i+1}for(var a=[];this.ids[r]===e;){var o=this.positions[3*r],s=this.positions[3*r+1],l=this.positions[3*r+2];a.push({index:o,start:s,end:l}),r++}return a},_a.serialize=function(t,e){var r=new Float64Array(t.ids),n=new Uint32Array(t.positions);return function t(e,r,n,i){for(;n&lt;i;){for(var a=e[n+i&gt;&gt;1],o=n-1,s=i+1;;){do{o++}while(e[o]&lt;a);do{s--}while(e[s]&gt;a);if(o&gt;=s)break;ka(e,o,s),ka(r,3*o,3*s),ka(r,3*o+1,3*s+1),ka(r,3*o+2,3*s+2)}s-n&lt;i-s?(t(e,r,n,s),n=s+1):(t(e,r,s+1,i),i=s)}}(r,n,0,r.length-1),e&amp;&amp;e.push(r.buffer,n.buffer),{ids:r,positions:n}},_a.deserialize=function(t){var e=new _a;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e};var wa=Math.pow(2,53)-1;function Ta(t){var e=+t;return!isNaN(e)&amp;&amp;e&lt;=wa?e:ya(String(t))}function ka(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}Nn(&quot;FeaturePositionMap&quot;,_a);var Aa=function(t,e){this.gl=t.gl,this.location=e},Ma=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1i(this.location,t))},e}(Aa),Sa=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1f(this.location,t))},e}(Aa),Ea=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0]}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))},e}(Aa),La=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0]}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))},e}(Aa),Ca=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0,0]}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]&amp;&amp;t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))},e}(Aa),Pa=function(t){function e(e,r){t.call(this,e,r),this.current=te.transparent}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){t.r===this.current.r&amp;&amp;t.g===this.current.g&amp;&amp;t.b===this.current.b&amp;&amp;t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))},e}(Aa),Ia=new Float32Array(16),Oa=function(t){function e(e,r){t.call(this,e,r),this.current=Ia}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(var e=1;e&lt;16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}},e}(Aa);function za(t){return[da(255*t.r,255*t.g),da(255*t.b,255*t.a)]}var Da=function(t,e,r){this.value=t,this.uniformNames=e.map((function(t){return&quot;u_&quot;+t})),this.type=r};Da.prototype.setUniform=function(t,e,r){t.set(r.constantOr(this.value))},Da.prototype.getBinding=function(t,e,r){return&quot;color&quot;===this.type?new Pa(t,e):new Sa(t,e)};var Ra=function(t,e){this.uniformNames=e.map((function(t){return&quot;u_&quot;+t})),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1};Ra.prototype.setConstantPatternPositions=function(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr},Ra.prototype.setUniform=function(t,e,r,n){var i=&quot;u_pattern_to&quot;===n?this.patternTo:&quot;u_pattern_from&quot;===n?this.patternFrom:&quot;u_pixel_ratio_to&quot;===n?this.pixelRatioTo:&quot;u_pixel_ratio_from&quot;===n?this.pixelRatioFrom:null;i&amp;&amp;t.set(i)},Ra.prototype.getBinding=function(t,e,r){return&quot;u_pattern&quot;===r.substr(0,9)?new Ca(t,e):new Sa(t,e)};var Fa=function(t,e,r,n){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:&quot;a_&quot;+t,type:&quot;Float32&quot;,components:&quot;color&quot;===r?2:1,offset:0}})),this.paintVertexArray=new n};Fa.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.paintVertexArray.length,o=this.expression.evaluate(new pi(0),e,{},n,[],i);this.paintVertexArray.resize(t),this._setPaintValue(a,t,o)},Fa.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:0},r,n);this._setPaintValue(t,e,i)},Fa.prototype._setPaintValue=function(t,e,r){if(&quot;color&quot;===this.type)for(var n=za(r),i=t;i&lt;e;i++)this.paintVertexArray.emplace(i,n[0],n[1]);else{for(var a=t;a&lt;e;a++)this.paintVertexArray.emplace(a,r);this.maxValue=Math.max(this.maxValue,Math.abs(r))}},Fa.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Fa.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()};var Ba=function(t,e,r,n,i,a){this.expression=t,this.uniformNames=e.map((function(t){return&quot;u_&quot;+t+&quot;_t&quot;})),this.type=r,this.useIntegerZoom=n,this.zoom=i,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:&quot;a_&quot;+t,type:&quot;Float32&quot;,components:&quot;color&quot;===r?4:2,offset:0}})),this.paintVertexArray=new a};Ba.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.expression.evaluate(new pi(this.zoom),e,{},n,[],i),o=this.expression.evaluate(new pi(this.zoom+1),e,{},n,[],i),s=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(s,t,a,o)},Ba.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:this.zoom},r,n),a=this.expression.evaluate({zoom:this.zoom+1},r,n);this._setPaintValue(t,e,i,a)},Ba.prototype._setPaintValue=function(t,e,r,n){if(&quot;color&quot;===this.type)for(var i=za(r),a=za(n),o=t;o&lt;e;o++)this.paintVertexArray.emplace(o,i[0],i[1],a[0],a[1]);else{for(var s=t;s&lt;e;s++)this.paintVertexArray.emplace(s,r,n);this.maxValue=Math.max(this.maxValue,Math.abs(r),Math.abs(n))}},Ba.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Ba.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()},Ba.prototype.setUniform=function(t,e){var r=this.useIntegerZoom?Math.floor(e.zoom):e.zoom,n=l(this.expression.interpolationFactor(r,this.zoom,this.zoom+1),0,1);t.set(n)},Ba.prototype.getBinding=function(t,e,r){return new Sa(t,e)};var Na=function(t,e,r,n,i,a){this.expression=t,this.type=e,this.useIntegerZoom=r,this.zoom=n,this.layerId=a,this.zoomInPaintVertexArray=new i,this.zoomOutPaintVertexArray=new i};Na.prototype.populatePaintArray=function(t,e,r){var n=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(n,t,e.patterns&amp;&amp;e.patterns[this.layerId],r)},Na.prototype.updatePaintArray=function(t,e,r,n,i){this._setPaintValues(t,e,r.patterns&amp;&amp;r.patterns[this.layerId],i)},Na.prototype._setPaintValues=function(t,e,r,n){if(n&amp;&amp;r){var i=r.min,a=r.mid,o=r.max,s=n[i],l=n[a],c=n[o];if(s&amp;&amp;l&amp;&amp;c)for(var u=t;u&lt;e;u++)this.zoomInPaintVertexArray.emplace(u,l.tl[0],l.tl[1],l.br[0],l.br[1],s.tl[0],s.tl[1],s.br[0],s.br[1],l.pixelRatio,s.pixelRatio),this.zoomOutPaintVertexArray.emplace(u,l.tl[0],l.tl[1],l.br[0],l.br[1],c.tl[0],c.tl[1],c.br[0],c.br[1],l.pixelRatio,c.pixelRatio)}},Na.prototype.upload=function(t){this.zoomInPaintVertexArray&amp;&amp;this.zoomInPaintVertexArray.arrayBuffer&amp;&amp;this.zoomOutPaintVertexArray&amp;&amp;this.zoomOutPaintVertexArray.arrayBuffer&amp;&amp;(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,ma.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,ma.members,this.expression.isStateDependent))},Na.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&amp;&amp;this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&amp;&amp;this.zoomInPaintVertexBuffer.destroy()};var ja=function(t,e,r,n){this.binders={},this.layoutAttributes=n,this._buffers=[];var i=[];for(var a in t.paint._values)if(r(a)){var o=t.paint.get(a);if(o instanceof bi&amp;&amp;zr(o.property.specification)){var s=Va(a,t.type),l=o.value,c=o.property.specification.type,u=o.property.useIntegerZoom,f=o.property.specification[&quot;property-type&quot;],h=&quot;cross-faded&quot;===f||&quot;cross-faded-data-driven&quot;===f;if(&quot;constant&quot;===l.kind)this.binders[a]=h?new Ra(l.value,s):new Da(l.value,s,c),i.push(&quot;/u_&quot;+a);else if(&quot;source&quot;===l.kind||h){var p=Ha(a,c,&quot;source&quot;);this.binders[a]=h?new Na(l,c,u,e,p,t.id):new Fa(l,s,c,p),i.push(&quot;/a_&quot;+a)}else{var d=Ha(a,c,&quot;composite&quot;);this.binders[a]=new Ba(l,s,c,u,e,d),i.push(&quot;/z_&quot;+a)}}}this.cacheKey=i.sort().join(&quot;&quot;)};ja.prototype.getMaxValue=function(t){var e=this.binders[t];return e instanceof Fa||e instanceof Ba?e.maxValue:0},ja.prototype.populatePaintArrays=function(t,e,r,n,i){for(var a in this.binders){var o=this.binders[a];(o instanceof Fa||o instanceof Ba||o instanceof Na)&amp;&amp;o.populatePaintArray(t,e,r,n,i)}},ja.prototype.setConstantPatternPositions=function(t,e){for(var r in this.binders){var n=this.binders[r];n instanceof Ra&amp;&amp;n.setConstantPatternPositions(t,e)}},ja.prototype.updatePaintArrays=function(t,e,r,n,i){var a=!1;for(var o in t)for(var s=0,l=e.getPositions(o);s&lt;l.length;s+=1){var c=l[s],u=r.feature(c.index);for(var f in this.binders){var h=this.binders[f];if((h instanceof Fa||h instanceof Ba||h instanceof Na)&amp;&amp;!0===h.expression.isStateDependent){var p=n.paint.get(f);h.expression=p.value,h.updatePaintArray(c.start,c.end,u,t[o],i),a=!0}}}return a},ja.prototype.defines=function(){var t=[];for(var e in this.binders){var r=this.binders[e];(r instanceof Da||r instanceof Ra)&amp;&amp;t.push.apply(t,r.uniformNames.map((function(t){return&quot;#define HAS_UNIFORM_&quot;+t})))}return t},ja.prototype.getPaintVertexBuffers=function(){return this._buffers},ja.prototype.getUniforms=function(t,e){var r=[];for(var n in this.binders){var i=this.binders[n];if(i instanceof Da||i instanceof Ra||i instanceof Ba)for(var a=0,o=i.uniformNames;a&lt;o.length;a+=1){var s=o[a];if(e[s]){var l=i.getBinding(t,e[s],s);r.push({name:s,property:n,binding:l})}}}return r},ja.prototype.setUniforms=function(t,e,r,n){for(var i=0,a=e;i&lt;a.length;i+=1){var o=a[i],s=o.name,l=o.property,c=o.binding;this.binders[l].setUniform(c,n,r.get(l),s)}},ja.prototype.updatePaintBuffers=function(t){for(var e in this._buffers=[],this.binders){var r=this.binders[e];if(t&amp;&amp;r instanceof Na){var n=2===t.fromScale?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;n&amp;&amp;this._buffers.push(n)}else(r instanceof Fa||r instanceof Ba)&amp;&amp;r.paintVertexBuffer&amp;&amp;this._buffers.push(r.paintVertexBuffer)}},ja.prototype.upload=function(t){for(var e in this.binders){var r=this.binders[e];(r instanceof Fa||r instanceof Ba||r instanceof Na)&amp;&amp;r.upload(t)}this.updatePaintBuffers()},ja.prototype.destroy=function(){for(var t in this.binders){var e=this.binders[t];(e instanceof Fa||e instanceof Ba||e instanceof Na)&amp;&amp;e.destroy()}};var Ua=function(t,e,r,n){void 0===n&amp;&amp;(n=function(){return!0}),this.programConfigurations={};for(var i=0,a=e;i&lt;a.length;i+=1){var o=a[i];this.programConfigurations[o.id]=new ja(o,r,n,t)}this.needsUpload=!1,this._featureMap=new _a,this._bufferOffset=0};function Va(t,e){return{&quot;text-opacity&quot;:[&quot;opacity&quot;],&quot;icon-opacity&quot;:[&quot;opacity&quot;],&quot;text-color&quot;:[&quot;fill_color&quot;],&quot;icon-color&quot;:[&quot;fill_color&quot;],&quot;text-halo-color&quot;:[&quot;halo_color&quot;],&quot;icon-halo-color&quot;:[&quot;halo_color&quot;],&quot;text-halo-blur&quot;:[&quot;halo_blur&quot;],&quot;icon-halo-blur&quot;:[&quot;halo_blur&quot;],&quot;text-halo-width&quot;:[&quot;halo_width&quot;],&quot;icon-halo-width&quot;:[&quot;halo_width&quot;],&quot;line-gap-width&quot;:[&quot;gapwidth&quot;],&quot;line-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;],&quot;fill-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;],&quot;fill-extrusion-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;]}[t]||[t.replace(e+&quot;-&quot;,&quot;&quot;).replace(/-/g,&quot;_&quot;)]}function Ha(t,e,r){var n={color:{source:ta,composite:ea},number:{source:Zi,composite:ta}},i=function(t){return{&quot;line-pattern&quot;:{source:Bi,composite:Bi},&quot;fill-pattern&quot;:{source:Bi,composite:Bi},&quot;fill-extrusion-pattern&quot;:{source:Bi,composite:Bi}}[t]}(t);return i&amp;&amp;i[r]||n[e][r]}Ua.prototype.populatePaintArrays=function(t,e,r,n,i,a){for(var o in this.programConfigurations)this.programConfigurations[o].populatePaintArrays(t,e,n,i,a);void 0!==e.id&amp;&amp;this._featureMap.add(e.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0},Ua.prototype.updatePaintArrays=function(t,e,r,n){for(var i=0,a=r;i&lt;a.length;i+=1){var o=a[i];this.needsUpload=this.programConfigurations[o.id].updatePaintArrays(t,this._featureMap,e,o,n)||this.needsUpload}},Ua.prototype.get=function(t){return this.programConfigurations[t]},Ua.prototype.upload=function(t){if(this.needsUpload){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}},Ua.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},Nn(&quot;ConstantBinder&quot;,Da),Nn(&quot;CrossFadedConstantBinder&quot;,Ra),Nn(&quot;SourceExpressionBinder&quot;,Fa),Nn(&quot;CrossFadedCompositeBinder&quot;,Na),Nn(&quot;CompositeExpressionBinder&quot;,Ba),Nn(&quot;ProgramConfiguration&quot;,ja,{omit:[&quot;_buffers&quot;]}),Nn(&quot;ProgramConfigurationSet&quot;,Ua);var qa,Ga=(qa=15,{min:-1*Math.pow(2,qa-1),max:Math.pow(2,qa-1)-1});function Ya(t){for(var e=8192/t.extent,r=t.loadGeometry(),n=0;n&lt;r.length;n++)for(var i=r[n],a=0;a&lt;i.length;a++){var o=i[a];o.x=Math.round(o.x*e),o.y=Math.round(o.y*e),(o.x&lt;Ga.min||o.x&gt;Ga.max||o.y&lt;Ga.min||o.y&gt;Ga.max)&amp;&amp;(_(&quot;Geometry exceeds allowed extent, reduce your vector tile buffer size&quot;),o.x=l(o.x,Ga.min,Ga.max),o.y=l(o.y,Ga.min,Ga.max))}return r}function Wa(t,e,r,n,i){t.emplaceBack(2*e+(n+1)/2,2*r+(i+1)/2)}var Xa=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new zi,this.indexArray=new Yi,this.segments=new pa,this.programConfigurations=new Ua(ha,t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Za(t,e){for(var r=0;r&lt;t.length;r++)if(io(e,t[r]))return!0;for(var n=0;n&lt;e.length;n++)if(io(t,e[n]))return!0;return!!$a(t,e)}function Ja(t,e,r){return!!io(t,e)||!!eo(e,t,r)}function Ka(t,e){if(1===t.length)return no(e,t[0]);for(var r=0;r&lt;e.length;r++)for(var n=e[r],i=0;i&lt;n.length;i++)if(io(t,n[i]))return!0;for(var a=0;a&lt;t.length;a++)if(no(e,t[a]))return!0;for(var o=0;o&lt;e.length;o++)if($a(t,e[o]))return!0;return!1}function Qa(t,e,r){if(t.length&gt;1){if($a(t,e))return!0;for(var n=0;n&lt;e.length;n++)if(eo(e[n],t,r))return!0}for(var i=0;i&lt;t.length;i++)if(eo(t[i],e,r))return!0;return!1}function $a(t,e){if(0===t.length||0===e.length)return!1;for(var r=0;r&lt;t.length-1;r++)for(var n=t[r],i=t[r+1],a=0;a&lt;e.length-1;a++){if(to(n,i,e[a],e[a+1]))return!0}return!1}function to(t,e,r,n){return w(t,r,n)!==w(e,r,n)&amp;&amp;w(t,e,r)!==w(t,e,n)}function eo(t,e,r){var n=r*r;if(1===e.length)return t.distSqr(e[0])&lt;n;for(var i=1;i&lt;e.length;i++){if(ro(t,e[i-1],e[i])&lt;n)return!0}return!1}function ro(t,e,r){var n=e.distSqr(r);if(0===n)return t.distSqr(e);var i=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;return i&lt;0?t.distSqr(e):i&gt;1?t.distSqr(r):t.distSqr(r.sub(e)._mult(i)._add(e))}function no(t,e){for(var r,n,i,a=!1,o=0;o&lt;t.length;o++)for(var s=0,l=(r=t[o]).length-1;s&lt;r.length;l=s++)n=r[s],i=r[l],n.y&gt;e.y!=i.y&gt;e.y&amp;&amp;e.x&lt;(i.x-n.x)*(e.y-n.y)/(i.y-n.y)+n.x&amp;&amp;(a=!a);return a}function io(t,e){for(var r=!1,n=0,i=t.length-1;n&lt;t.length;i=n++){var a=t[n],o=t[i];a.y&gt;e.y!=o.y&gt;e.y&amp;&amp;e.x&lt;(o.x-a.x)*(e.y-a.y)/(o.y-a.y)+a.x&amp;&amp;(r=!r)}return r}function ao(t,e,r){var n=r[0],i=r[2];if(t.x&lt;n.x&amp;&amp;e.x&lt;n.x||t.x&gt;i.x&amp;&amp;e.x&gt;i.x||t.y&lt;n.y&amp;&amp;e.y&lt;n.y||t.y&gt;i.y&amp;&amp;e.y&gt;i.y)return!1;var a=w(t,e,r[0]);return a!==w(t,e,r[1])||a!==w(t,e,r[2])||a!==w(t,e,r[3])}function oo(t,e,r){var n=e.paint.get(t).value;return&quot;constant&quot;===n.kind?n.value:r.programConfigurations.get(e.id).getMaxValue(t)}function so(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function lo(t,e,r,n,a){if(!e[0]&amp;&amp;!e[1])return t;var o=i.convert(e)._mult(a);&quot;viewport&quot;===r&amp;&amp;o._rotate(-n);for(var s=[],l=0;l&lt;t.length;l++){var c=t[l];s.push(c.sub(o))}return s}Xa.prototype.populate=function(t,e,r){var n=this.layers[0],i=[],a=null;&quot;circle&quot;===n.type&amp;&amp;(a=n.layout.get(&quot;circle-sort-key&quot;));for(var o=0,s=t;o&lt;s.length;o+=1){var l=s[o],c=l.feature,u=l.id,f=l.index,h=l.sourceLayerIndex,p=this.layers[0]._featureFilter.needGeometry,d={type:c.type,id:u,properties:c.properties,geometry:p?Ya(c):[]};if(this.layers[0]._featureFilter.filter(new pi(this.zoom),d,r)){p||(d.geometry=Ya(c));var m=a?a.evaluate(d,{},r):void 0,g={id:u,properties:c.properties,type:c.type,sourceLayerIndex:h,index:f,geometry:d.geometry,patterns:{},sortKey:m};i.push(g)}}a&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var v=0,y=i;v&lt;y.length;v+=1){var x=y[v],b=x,_=b.geometry,w=b.index,T=b.sourceLayerIndex,k=t[w].feature;this.addFeature(x,_,w,r),e.featureIndex.insert(k,_,w,T,this.index)}},Xa.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Xa.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Xa.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Xa.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,ha),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Xa.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Xa.prototype.addFeature=function(t,e,r,n){for(var i=0,a=e;i&lt;a.length;i+=1)for(var o=0,s=a[i];o&lt;s.length;o+=1){var l=s[o],c=l.x,u=l.y;if(!(c&lt;0||c&gt;=8192||u&lt;0||u&gt;=8192)){var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),h=f.vertexLength;Wa(this.layoutVertexArray,c,u,-1,-1),Wa(this.layoutVertexArray,c,u,1,-1),Wa(this.layoutVertexArray,c,u,1,1),Wa(this.layoutVertexArray,c,u,-1,1),this.indexArray.emplaceBack(h,h+1,h+2),this.indexArray.emplaceBack(h,h+3,h+2),f.vertexLength+=4,f.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{},n)},Nn(&quot;CircleBucket&quot;,Xa,{omit:[&quot;layers&quot;]});var co=new Si({&quot;circle-sort-key&quot;:new Ti(Lt.layout_circle[&quot;circle-sort-key&quot;])}),uo={paint:new Si({&quot;circle-radius&quot;:new Ti(Lt.paint_circle[&quot;circle-radius&quot;]),&quot;circle-color&quot;:new Ti(Lt.paint_circle[&quot;circle-color&quot;]),&quot;circle-blur&quot;:new Ti(Lt.paint_circle[&quot;circle-blur&quot;]),&quot;circle-opacity&quot;:new Ti(Lt.paint_circle[&quot;circle-opacity&quot;]),&quot;circle-translate&quot;:new wi(Lt.paint_circle[&quot;circle-translate&quot;]),&quot;circle-translate-anchor&quot;:new wi(Lt.paint_circle[&quot;circle-translate-anchor&quot;]),&quot;circle-pitch-scale&quot;:new wi(Lt.paint_circle[&quot;circle-pitch-scale&quot;]),&quot;circle-pitch-alignment&quot;:new wi(Lt.paint_circle[&quot;circle-pitch-alignment&quot;]),&quot;circle-stroke-width&quot;:new Ti(Lt.paint_circle[&quot;circle-stroke-width&quot;]),&quot;circle-stroke-color&quot;:new Ti(Lt.paint_circle[&quot;circle-stroke-color&quot;]),&quot;circle-stroke-opacity&quot;:new Ti(Lt.paint_circle[&quot;circle-stroke-opacity&quot;])}),layout:co},fo=&quot;undefined&quot;!=typeof Float32Array?Float32Array:Array;function ho(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function po(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],m=e[12],g=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*m,t[1]=x*i+b*l+_*h+w*g,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,x=r[4],b=r[5],_=r[6],w=r[7],t[4]=x*n+b*s+_*f+w*m,t[5]=x*i+b*l+_*h+w*g,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,x=r[8],b=r[9],_=r[10],w=r[11],t[8]=x*n+b*s+_*f+w*m,t[9]=x*i+b*l+_*h+w*g,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,x=r[12],b=r[13],_=r[14],w=r[15],t[12]=x*n+b*s+_*f+w*m,t[13]=x*i+b*l+_*h+w*g,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,r=arguments.length;r--;)e+=t[r]*t[r];return Math.sqrt(e)});var mo=po;var go,vo,yo=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t};go=new fo(3),fo!=Float32Array&amp;&amp;(go[0]=0,go[1]=0,go[2]=0),vo=go;function xo(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}!function(){var t=function(){var t=new fo(4);return fo!=Float32Array&amp;&amp;(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}()}();var bo=function(t){var e=t[0],r=t[1];return e*e+r*r},_o=(function(){var t=function(){var t=new fo(2);return fo!=Float32Array&amp;&amp;(t[0]=0,t[1]=0),t}()}(),function(t){function e(e){t.call(this,e,uo)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new Xa(t)},e.prototype.queryRadius=function(t){var e=t;return oo(&quot;circle-radius&quot;,this,e)+oo(&quot;circle-stroke-width&quot;,this,e)+so(this.paint.get(&quot;circle-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o,s){for(var l=lo(t,this.paint.get(&quot;circle-translate&quot;),this.paint.get(&quot;circle-translate-anchor&quot;),a.angle,o),c=this.paint.get(&quot;circle-radius&quot;).evaluate(e,r)+this.paint.get(&quot;circle-stroke-width&quot;).evaluate(e,r),u=&quot;map&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;),f=u?l:function(t,e){return t.map((function(t){return wo(t,e)}))}(l,s),h=u?c*o:c,p=0,d=n;p&lt;d.length;p+=1)for(var m=0,g=d[p];m&lt;g.length;m+=1){var v=g[m],y=u?v:wo(v,s),x=h,b=xo([],[v.x,v.y,0,1],s);if(&quot;viewport&quot;===this.paint.get(&quot;circle-pitch-scale&quot;)&amp;&amp;&quot;map&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;)?x*=b[3]/a.cameraToCenterDistance:&quot;map&quot;===this.paint.get(&quot;circle-pitch-scale&quot;)&amp;&amp;&quot;viewport&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;)&amp;&amp;(x*=a.cameraToCenterDistance/b[3]),Ja(f,y,x))return!0}return!1},e}(Ei));function wo(t,e){var r=xo([],[t.x,t.y,0,1],e);return new i(r[0]/r[3],r[1]/r[3])}var To=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(Xa);function ko(t,e,r,n){var i=e.width,a=e.height;if(n){if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==i*a*r)throw new RangeError(&quot;mismatched image size&quot;)}else n=new Uint8Array(i*a*r);return t.width=i,t.height=a,t.data=n,t}function Ao(t,e,r){var n=e.width,i=e.height;if(n!==t.width||i!==t.height){var a=ko({},{width:n,height:i},r);Mo(t,a,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,n),height:Math.min(t.height,i)},r),t.width=n,t.height=i,t.data=a.data}}function Mo(t,e,r,n,i,a){if(0===i.width||0===i.height)return e;if(i.width&gt;t.width||i.height&gt;t.height||r.x&gt;t.width-i.width||r.y&gt;t.height-i.height)throw new RangeError(&quot;out of range source coordinates for image copy&quot;);if(i.width&gt;e.width||i.height&gt;e.height||n.x&gt;e.width-i.width||n.y&gt;e.height-i.height)throw new RangeError(&quot;out of range destination coordinates for image copy&quot;);for(var o=t.data,s=e.data,l=0;l&lt;i.height;l++)for(var c=((r.y+l)*t.width+r.x)*a,u=((n.y+l)*e.width+n.x)*a,f=0;f&lt;i.width*a;f++)s[u+f]=o[c+f];return e}Nn(&quot;HeatmapBucket&quot;,To,{omit:[&quot;layers&quot;]});var So=function(t,e){ko(this,t,1,e)};So.prototype.resize=function(t){Ao(this,t,1)},So.prototype.clone=function(){return new So({width:this.width,height:this.height},new Uint8Array(this.data))},So.copy=function(t,e,r,n,i){Mo(t,e,r,n,i,1)};var Eo=function(t,e){ko(this,t,4,e)};Eo.prototype.resize=function(t){Ao(this,t,4)},Eo.prototype.replace=function(t,e){e?this.data.set(t):t instanceof Uint8ClampedArray?this.data=new Uint8Array(t.buffer):this.data=t},Eo.prototype.clone=function(){return new Eo({width:this.width,height:this.height},new Uint8Array(this.data))},Eo.copy=function(t,e,r,n,i){Mo(t,e,r,n,i,4)},Nn(&quot;AlphaImage&quot;,So),Nn(&quot;RGBAImage&quot;,Eo);var Lo={paint:new Si({&quot;heatmap-radius&quot;:new Ti(Lt.paint_heatmap[&quot;heatmap-radius&quot;]),&quot;heatmap-weight&quot;:new Ti(Lt.paint_heatmap[&quot;heatmap-weight&quot;]),&quot;heatmap-intensity&quot;:new wi(Lt.paint_heatmap[&quot;heatmap-intensity&quot;]),&quot;heatmap-color&quot;:new Mi(Lt.paint_heatmap[&quot;heatmap-color&quot;]),&quot;heatmap-opacity&quot;:new wi(Lt.paint_heatmap[&quot;heatmap-opacity&quot;])})};function Co(t,e){for(var r=new Uint8Array(1024),n={},i=0,a=0;i&lt;256;i++,a+=4){n[e]=i/255;var o=t.evaluate(n);r[a+0]=Math.floor(255*o.r/o.a),r[a+1]=Math.floor(255*o.g/o.a),r[a+2]=Math.floor(255*o.b/o.a),r[a+3]=Math.floor(255*o.a)}return new Eo({width:256,height:1},r)}var Po=function(t){function e(e){t.call(this,e,Lo),this._updateColorRamp()}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new To(t)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){&quot;heatmap-color&quot;===t&amp;&amp;this._updateColorRamp()},e.prototype._updateColorRamp=function(){var t=this._transitionablePaint._values[&quot;heatmap-color&quot;].value.expression;this.colorRamp=Co(t,&quot;heatmapDensity&quot;),this.colorRampTexture=null},e.prototype.resize=function(){this.heatmapFbo&amp;&amp;(this.heatmapFbo.destroy(),this.heatmapFbo=null)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(&quot;heatmap-opacity&quot;)&amp;&amp;&quot;none&quot;!==this.visibility},e}(Ei),Io={paint:new Si({&quot;hillshade-illumination-direction&quot;:new wi(Lt.paint_hillshade[&quot;hillshade-illumination-direction&quot;]),&quot;hillshade-illumination-anchor&quot;:new wi(Lt.paint_hillshade[&quot;hillshade-illumination-anchor&quot;]),&quot;hillshade-exaggeration&quot;:new wi(Lt.paint_hillshade[&quot;hillshade-exaggeration&quot;]),&quot;hillshade-shadow-color&quot;:new wi(Lt.paint_hillshade[&quot;hillshade-shadow-color&quot;]),&quot;hillshade-highlight-color&quot;:new wi(Lt.paint_hillshade[&quot;hillshade-highlight-color&quot;]),&quot;hillshade-accent-color&quot;:new wi(Lt.paint_hillshade[&quot;hillshade-accent-color&quot;])})},Oo=function(t){function e(e){t.call(this,e,Io)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(&quot;hillshade-exaggeration&quot;)&amp;&amp;&quot;none&quot;!==this.visibility},e}(Ei),zo=Ii([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;}],4).members,Do=Fo,Ro=Fo;function Fo(t,e,r){r=r||2;var n,i,a,o,s,l,c,u=e&amp;&amp;e.length,f=u?e[0]*r:t.length,h=Bo(t,0,f,r,!0),p=[];if(!h||h.next===h.prev)return p;if(u&amp;&amp;(h=function(t,e,r,n){var i,a,o,s,l,c=[];for(i=0,a=e.length;i&lt;a;i++)o=e[i]*n,s=i&lt;a-1?e[i+1]*n:t.length,(l=Bo(t,o,s,n,!1))===l.next&amp;&amp;(l.steiner=!0),c.push(Zo(l));for(c.sort(Go),i=0;i&lt;c.length;i++)Yo(c[i],r),r=No(r,r.next);return r}(t,e,h,r)),t.length&gt;80*r){n=a=t[0],i=o=t[1];for(var d=r;d&lt;f;d+=r)(s=t[d])&lt;n&amp;&amp;(n=s),(l=t[d+1])&lt;i&amp;&amp;(i=l),s&gt;a&amp;&amp;(a=s),l&gt;o&amp;&amp;(o=l);c=0!==(c=Math.max(a-n,o-i))?1/c:0}return jo(h,p,r,n,i,c),p}function Bo(t,e,r,n,i){var a,o;if(i===ls(t,e,r,n)&gt;0)for(a=e;a&lt;r;a+=n)o=as(a,t[a],t[a+1],o);else for(a=r-n;a&gt;=e;a-=n)o=as(a,t[a],t[a+1],o);return o&amp;&amp;$o(o,o.next)&amp;&amp;(os(o),o=o.next),o}function No(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!$o(n,n.next)&amp;&amp;0!==Qo(n.prev,n,n.next))n=n.next;else{if(os(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function jo(t,e,r,n,i,a,o){if(t){!o&amp;&amp;a&amp;&amp;function(t,e,r,n){var i=t;do{null===i.z&amp;&amp;(i.z=Xo(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e&lt;c&amp;&amp;(s++,n=n.nextZ);e++);for(l=c;s&gt;0||l&gt;0&amp;&amp;n;)0!==s&amp;&amp;(0===l||!n||r.z&lt;=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o&gt;1)}(i)}(t,n,i,a);for(var s,l,c=t;t.prev!==t.next;)if(s=t.prev,l=t.next,a?Vo(t,n,i,a):Uo(t))e.push(s.i/r),e.push(t.i/r),e.push(l.i/r),os(t),t=l.next,c=l.next;else if((t=l)===c){o?1===o?jo(t=Ho(No(t),e,r),e,r,n,i,a,2):2===o&amp;&amp;qo(t,e,r,n,i,a):jo(No(t),e,r,n,i,a,1);break}}}function Uo(t){var e=t.prev,r=t,n=t.next;if(Qo(e,r,n)&gt;=0)return!1;for(var i=t.next.next;i!==t.prev;){if(Jo(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&amp;&amp;Qo(i.prev,i,i.next)&gt;=0)return!1;i=i.next}return!0}function Vo(t,e,r,n){var i=t.prev,a=t,o=t.next;if(Qo(i,a,o)&gt;=0)return!1;for(var s=i.x&lt;a.x?i.x&lt;o.x?i.x:o.x:a.x&lt;o.x?a.x:o.x,l=i.y&lt;a.y?i.y&lt;o.y?i.y:o.y:a.y&lt;o.y?a.y:o.y,c=i.x&gt;a.x?i.x&gt;o.x?i.x:o.x:a.x&gt;o.x?a.x:o.x,u=i.y&gt;a.y?i.y&gt;o.y?i.y:o.y:a.y&gt;o.y?a.y:o.y,f=Xo(s,l,e,r,n),h=Xo(c,u,e,r,n),p=t.prevZ,d=t.nextZ;p&amp;&amp;p.z&gt;=f&amp;&amp;d&amp;&amp;d.z&lt;=h;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;Jo(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;Qo(p.prev,p,p.next)&gt;=0)return!1;if(p=p.prevZ,d!==t.prev&amp;&amp;d!==t.next&amp;&amp;Jo(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&amp;&amp;Qo(d.prev,d,d.next)&gt;=0)return!1;d=d.nextZ}for(;p&amp;&amp;p.z&gt;=f;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;Jo(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;Qo(p.prev,p,p.next)&gt;=0)return!1;p=p.prevZ}for(;d&amp;&amp;d.z&lt;=h;){if(d!==t.prev&amp;&amp;d!==t.next&amp;&amp;Jo(i.x,i.y,a.x,a.y,o.x,o.y,d.x,d.y)&amp;&amp;Qo(d.prev,d,d.next)&gt;=0)return!1;d=d.nextZ}return!0}function Ho(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!$o(i,a)&amp;&amp;ts(i,n,n.next,a)&amp;&amp;ns(i,a)&amp;&amp;ns(a,i)&amp;&amp;(e.push(i.i/r),e.push(n.i/r),e.push(a.i/r),os(n),os(n.next),n=t=a),n=n.next}while(n!==t);return No(n)}function qo(t,e,r,n,i,a){var o=t;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&amp;&amp;Ko(o,s)){var l=is(o,s);return o=No(o,o.next),l=No(l,l.next),jo(o,e,r,n,i,a),void jo(l,e,r,n,i,a)}s=s.next}o=o.next}while(o!==t)}function Go(t,e){return t.x-e.x}function Yo(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a&lt;=n.y&amp;&amp;a&gt;=n.next.y&amp;&amp;n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s&lt;=i&amp;&amp;s&gt;o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x&lt;n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,h=1/0;n=r;do{i&gt;=n.x&amp;&amp;n.x&gt;=u&amp;&amp;i!==n.x&amp;&amp;Jo(a&lt;f?i:o,a,u,f,a&lt;f?o:i,a,n.x,n.y)&amp;&amp;(l=Math.abs(a-n.y)/(i-n.x),ns(n,t)&amp;&amp;(l&lt;h||l===h&amp;&amp;(n.x&gt;r.x||n.x===r.x&amp;&amp;Wo(r,n)))&amp;&amp;(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e)){var r=is(e,t);No(e,e.next),No(r,r.next)}}function Wo(t,e){return Qo(t.prev,t,e.prev)&lt;0&amp;&amp;Qo(e.next,t,t.next)&lt;0}function Xo(t,e,r,n,i){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t=32767*(t-r)*i)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e=32767*(e-n)*i)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1}function Zo(t){var e=t,r=t;do{(e.x&lt;r.x||e.x===r.x&amp;&amp;e.y&lt;r.y)&amp;&amp;(r=e),e=e.next}while(e!==t);return r}function Jo(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)&gt;=0&amp;&amp;(t-o)*(n-s)-(r-o)*(e-s)&gt;=0&amp;&amp;(r-o)*(a-s)-(i-o)*(n-s)&gt;=0}function Ko(t,e){return t.next.i!==e.i&amp;&amp;t.prev.i!==e.i&amp;&amp;!function(t,e){var r=t;do{if(r.i!==t.i&amp;&amp;r.next.i!==t.i&amp;&amp;r.i!==e.i&amp;&amp;r.next.i!==e.i&amp;&amp;ts(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&amp;&amp;(ns(t,e)&amp;&amp;ns(e,t)&amp;&amp;function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y&gt;a!=r.next.y&gt;a&amp;&amp;r.next.y!==r.y&amp;&amp;i&lt;(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&amp;&amp;(n=!n),r=r.next}while(r!==t);return n}(t,e)&amp;&amp;(Qo(t.prev,t,e.prev)||Qo(t,e.prev,e))||$o(t,e)&amp;&amp;Qo(t.prev,t,t.next)&gt;0&amp;&amp;Qo(e.prev,e,e.next)&gt;0)}function Qo(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function $o(t,e){return t.x===e.x&amp;&amp;t.y===e.y}function ts(t,e,r,n){var i=rs(Qo(t,e,r)),a=rs(Qo(t,e,n)),o=rs(Qo(r,n,t)),s=rs(Qo(r,n,e));return i!==a&amp;&amp;o!==s||(!(0!==i||!es(t,r,e))||(!(0!==a||!es(t,n,e))||(!(0!==o||!es(r,t,n))||!(0!==s||!es(r,e,n)))))}function es(t,e,r){return e.x&lt;=Math.max(t.x,r.x)&amp;&amp;e.x&gt;=Math.min(t.x,r.x)&amp;&amp;e.y&lt;=Math.max(t.y,r.y)&amp;&amp;e.y&gt;=Math.min(t.y,r.y)}function rs(t){return t&gt;0?1:t&lt;0?-1:0}function ns(t,e){return Qo(t.prev,t,t.next)&lt;0?Qo(t,e,t.next)&gt;=0&amp;&amp;Qo(t,t.prev,e)&gt;=0:Qo(t,e,t.prev)&lt;0||Qo(t,t.next,e)&lt;0}function is(t,e){var r=new ss(t.i,t.x,t.y),n=new ss(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function as(t,e,r,n){var i=new ss(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function os(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&amp;&amp;(t.prevZ.nextZ=t.nextZ),t.nextZ&amp;&amp;(t.nextZ.prevZ=t.prevZ)}function ss(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function ls(t,e,r,n){for(var i=0,a=e,o=r-n;a&lt;r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}function cs(t,e,r,n,i){!function t(e,r,n,i,a){for(;i&gt;n;){if(i-n&gt;600){var o=i-n+1,s=r-n+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2&lt;0?-1:1),f=Math.max(n,Math.floor(r-s*c/o+u)),h=Math.min(i,Math.floor(r+(o-s)*c/o+u));t(e,r,f,h,a)}var p=e[r],d=n,m=i;for(us(e,n,r),a(e[i],p)&gt;0&amp;&amp;us(e,n,i);d&lt;m;){for(us(e,d,m),d++,m--;a(e[d],p)&lt;0;)d++;for(;a(e[m],p)&gt;0;)m--}0===a(e[n],p)?us(e,n,m):(m++,us(e,m,i)),m&lt;=r&amp;&amp;(n=m+1),r&lt;=m&amp;&amp;(i=m-1)}}(t,e,r||0,n||t.length-1,i||fs)}function us(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function fs(t,e){return t&lt;e?-1:t&gt;e?1:0}function hs(t,e){var r=t.length;if(r&lt;=1)return[t];for(var n,i,a=[],o=0;o&lt;r;o++){var s=T(t[o]);0!==s&amp;&amp;(t[o].area=Math.abs(s),void 0===i&amp;&amp;(i=s&lt;0),i===s&lt;0?(n&amp;&amp;a.push(n),n=[t[o]]):n.push(t[o]))}if(n&amp;&amp;a.push(n),e&gt;1)for(var l=0;l&lt;a.length;l++)a[l].length&lt;=e||(cs(a[l],e,1,a[l].length-1,ps),a[l]=a[l].slice(0,e));return a}function ps(t,e){return e.area-t.area}function ds(t,e,r){for(var n=r.patternDependencies,i=!1,a=0,o=e;a&lt;o.length;a+=1){var s=o[a].paint.get(t+&quot;-pattern&quot;);s.isConstant()||(i=!0);var l=s.constantOr(null);l&amp;&amp;(i=!0,n[l.to]=!0,n[l.from]=!0)}return i}function ms(t,e,r,n,i){for(var a=i.patternDependencies,o=0,s=e;o&lt;s.length;o+=1){var l=s[o],c=l.paint.get(t+&quot;-pattern&quot;).value;if(&quot;constant&quot;!==c.kind){var u=c.evaluate({zoom:n-1},r,{},i.availableImages),f=c.evaluate({zoom:n},r,{},i.availableImages),h=c.evaluate({zoom:n+1},r,{},i.availableImages);u=u&amp;&amp;u.name?u.name:u,f=f&amp;&amp;f.name?f.name:f,h=h&amp;&amp;h.name?h.name:h,a[u]=!0,a[f]=!0,a[h]=!0,r.patterns[l.id]={min:u,mid:f,max:h}}}return r}Fo.deviation=function(t,e,r,n){var i=e&amp;&amp;e.length,a=i?e[0]*r:t.length,o=Math.abs(ls(t,0,a,r));if(i)for(var s=0,l=e.length;s&lt;l;s++){var c=e[s]*r,u=s&lt;l-1?e[s+1]*r:t.length;o-=Math.abs(ls(t,c,u,r))}var f=0;for(s=0;s&lt;n.length;s+=3){var h=n[s]*r,p=n[s+1]*r,d=n[s+2]*r;f+=Math.abs((t[h]-t[d])*(t[p+1]-t[h+1])-(t[h]-t[p])*(t[d+1]-t[h+1]))}return 0===o&amp;&amp;0===f?0:Math.abs((f-o)/o)},Fo.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i&lt;t.length;i++){for(var a=0;a&lt;t[i].length;a++)for(var o=0;o&lt;e;o++)r.vertices.push(t[i][a][o]);i&gt;0&amp;&amp;(n+=t[i-1].length,r.holes.push(n))}return r},Do.default=Ro;var gs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new zi,this.indexArray=new Yi,this.indexArray2=new Qi,this.programConfigurations=new Ua(zo,t.layers,t.zoom),this.segments=new pa,this.segments2=new pa,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};gs.prototype.populate=function(t,e,r){this.hasPattern=ds(&quot;fill&quot;,this.layers,e);for(var n=this.layers[0].layout.get(&quot;fill-sort-key&quot;),i=[],a=0,o=t;a&lt;o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,p={type:l.type,id:c,properties:l.properties,geometry:h?Ya(l):[]};if(this.layers[0]._featureFilter.filter(new pi(this.zoom),p,r)){h||(p.geometry=Ya(l));var d=n?n.evaluate(p,{},r,e.availableImages):void 0,m={id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:p.geometry,patterns:{},sortKey:d};i.push(m)}}n&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var g=0,v=i;g&lt;v.length;g+=1){var y=v[g],x=y,b=x.geometry,_=x.index,w=x.sourceLayerIndex;if(this.hasPattern){var T=ms(&quot;fill&quot;,this.layers,y,this.zoom,e);this.patternFeatures.push(T)}else this.addFeature(y,b,_,r,{});var k=t[_].feature;e.featureIndex.insert(k,b,_,w,this.index)}},gs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},gs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},gs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},gs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},gs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,zo),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0},gs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},gs.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=hs(e,500);a&lt;o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c&lt;u.length;c+=1){l+=u[c].length}for(var f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray),h=f.vertexLength,p=[],d=[],m=0,g=s;m&lt;g.length;m+=1){var v=g[m];if(0!==v.length){v!==s[0]&amp;&amp;d.push(p.length/2);var y=this.segments2.prepareSegment(v.length,this.layoutVertexArray,this.indexArray2),x=y.vertexLength;this.layoutVertexArray.emplaceBack(v[0].x,v[0].y),this.indexArray2.emplaceBack(x+v.length-1,x),p.push(v[0].x),p.push(v[0].y);for(var b=1;b&lt;v.length;b++)this.layoutVertexArray.emplaceBack(v[b].x,v[b].y),this.indexArray2.emplaceBack(x+b-1,x+b),p.push(v[b].x),p.push(v[b].y);y.vertexLength+=v.length,y.primitiveLength+=v.length}}for(var _=Do(p,d),w=0;w&lt;_.length;w+=3)this.indexArray.emplaceBack(h+_[w],h+_[w+1],h+_[w+2]);f.vertexLength+=l,f.primitiveLength+=_.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Nn(&quot;FillBucket&quot;,gs,{omit:[&quot;layers&quot;,&quot;patternFeatures&quot;]});var vs=new Si({&quot;fill-sort-key&quot;:new Ti(Lt.layout_fill[&quot;fill-sort-key&quot;])}),ys={paint:new Si({&quot;fill-antialias&quot;:new wi(Lt.paint_fill[&quot;fill-antialias&quot;]),&quot;fill-opacity&quot;:new Ti(Lt.paint_fill[&quot;fill-opacity&quot;]),&quot;fill-color&quot;:new Ti(Lt.paint_fill[&quot;fill-color&quot;]),&quot;fill-outline-color&quot;:new Ti(Lt.paint_fill[&quot;fill-outline-color&quot;]),&quot;fill-translate&quot;:new wi(Lt.paint_fill[&quot;fill-translate&quot;]),&quot;fill-translate-anchor&quot;:new wi(Lt.paint_fill[&quot;fill-translate-anchor&quot;]),&quot;fill-pattern&quot;:new ki(Lt.paint_fill[&quot;fill-pattern&quot;])}),layout:vs},xs=function(t){function e(e){t.call(this,e,ys)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r);var n=this.paint._values[&quot;fill-outline-color&quot;];&quot;constant&quot;===n.value.kind&amp;&amp;void 0===n.value.value&amp;&amp;(this.paint._values[&quot;fill-outline-color&quot;]=this.paint._values[&quot;fill-color&quot;])},e.prototype.createBucket=function(t){return new gs(t)},e.prototype.queryRadius=function(){return so(this.paint.get(&quot;fill-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o){return Ka(lo(t,this.paint.get(&quot;fill-translate&quot;),this.paint.get(&quot;fill-translate-anchor&quot;),a.angle,o),n)},e.prototype.isTileClipped=function(){return!0},e}(Ei),bs=Ii([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_normal_ed&quot;,components:4,type:&quot;Int16&quot;}],4).members,_s=ws;function ws(t,e,r,n,i){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=i,t.readFields(Ts,this,e)}function Ts(t,e,r){1==t?e.id=r.readVarint():2==t?function(t,e){var r=t.readVarint()+t.pos;for(;t.pos&lt;r;){var n=e._keys[t.readVarint()],i=e._values[t.readVarint()];e.properties[n]=i}}(r,e):3==t?e.type=r.readVarint():4==t&amp;&amp;(e._geometry=r.pos)}function ks(t){for(var e,r,n=0,i=0,a=t.length,o=a-1;i&lt;a;o=i++)e=t[i],n+=((r=t[o]).x-e.x)*(e.y+r.y);return n}ws.types=[&quot;Unknown&quot;,&quot;Point&quot;,&quot;LineString&quot;,&quot;Polygon&quot;],ws.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,r=t.readVarint()+t.pos,n=1,a=0,o=0,s=0,l=[];t.pos&lt;r;){if(a&lt;=0){var c=t.readVarint();n=7&amp;c,a=c&gt;&gt;3}if(a--,1===n||2===n)o+=t.readSVarint(),s+=t.readSVarint(),1===n&amp;&amp;(e&amp;&amp;l.push(e),e=[]),e.push(new i(o,s));else{if(7!==n)throw new Error(&quot;unknown command &quot;+n);e&amp;&amp;e.push(e[0].clone())}}return e&amp;&amp;l.push(e),l},ws.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,i=0,a=0,o=1/0,s=-1/0,l=1/0,c=-1/0;t.pos&lt;e;){if(n&lt;=0){var u=t.readVarint();r=7&amp;u,n=u&gt;&gt;3}if(n--,1===r||2===r)(i+=t.readSVarint())&lt;o&amp;&amp;(o=i),i&gt;s&amp;&amp;(s=i),(a+=t.readSVarint())&lt;l&amp;&amp;(l=a),a&gt;c&amp;&amp;(c=a);else if(7!==r)throw new Error(&quot;unknown command &quot;+r)}return[o,l,s,c]},ws.prototype.toGeoJSON=function(t,e,r){var n,i,a=this.extent*Math.pow(2,r),o=this.extent*t,s=this.extent*e,l=this.loadGeometry(),c=ws.types[this.type];function u(t){for(var e=0;e&lt;t.length;e++){var r=t[e],n=180-360*(r.y+s)/a;t[e]=[360*(r.x+o)/a-180,360/Math.PI*Math.atan(Math.exp(n*Math.PI/180))-90]}}switch(this.type){case 1:var f=[];for(n=0;n&lt;l.length;n++)f[n]=l[n][0];u(l=f);break;case 2:for(n=0;n&lt;l.length;n++)u(l[n]);break;case 3:for(l=function(t){var e=t.length;if(e&lt;=1)return[t];for(var r,n,i=[],a=0;a&lt;e;a++){var o=ks(t[a]);0!==o&amp;&amp;(void 0===n&amp;&amp;(n=o&lt;0),n===o&lt;0?(r&amp;&amp;i.push(r),r=[t[a]]):r.push(t[a]))}r&amp;&amp;i.push(r);return i}(l),n=0;n&lt;l.length;n++)for(i=0;i&lt;l[n].length;i++)u(l[n][i])}1===l.length?l=l[0]:c=&quot;Multi&quot;+c;var h={type:&quot;Feature&quot;,geometry:{type:c,coordinates:l},properties:this.properties};return&quot;id&quot;in this&amp;&amp;(h.id=this.id),h};var As=Ms;function Ms(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(Ss,this,e),this.length=this._features.length}function Ss(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():5===t?e.extent=r.readVarint():2===t?e._features.push(r.pos):3===t?e._keys.push(r.readString()):4===t&amp;&amp;e._values.push(function(t){var e=null,r=t.readVarint()+t.pos;for(;t.pos&lt;r;){var n=t.readVarint()&gt;&gt;3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}(r))}function Es(t,e,r){if(3===t){var n=new As(r,r.readVarint()+r.pos);n.length&amp;&amp;(e[n.name]=n)}}Ms.prototype.feature=function(t){if(t&lt;0||t&gt;=this._features.length)throw new Error(&quot;feature index out of bounds&quot;);this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new _s(this._pbf,e,this.extent,this._keys,this._values)};var Ls={VectorTile:function(t,e){this.layers=t.readFields(Es,{},e)},VectorTileFeature:_s,VectorTileLayer:As},Cs=Ls.VectorTileFeature.types,Ps=Math.pow(2,13);function Is(t,e,r,n,i,a,o,s){t.emplaceBack(e,r,2*Math.floor(n*Ps)+o,i*Ps*2,a*Ps*2,Math.round(s))}var Os=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Ri,this.indexArray=new Yi,this.programConfigurations=new Ua(bs,t.layers,t.zoom),this.segments=new pa,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function zs(t,e){return t.x===e.x&amp;&amp;(t.x&lt;0||t.x&gt;8192)||t.y===e.y&amp;&amp;(t.y&lt;0||t.y&gt;8192)}function Ds(t){return t.every((function(t){return t.x&lt;0}))||t.every((function(t){return t.x&gt;8192}))||t.every((function(t){return t.y&lt;0}))||t.every((function(t){return t.y&gt;8192}))}Os.prototype.populate=function(t,e,r){this.features=[],this.hasPattern=ds(&quot;fill-extrusion&quot;,this.layers,e);for(var n=0,i=t;n&lt;i.length;n+=1){var a=i[n],o=a.feature,s=a.id,l=a.index,c=a.sourceLayerIndex,u=this.layers[0]._featureFilter.needGeometry,f={type:o.type,id:s,properties:o.properties,geometry:u?Ya(o):[]};if(this.layers[0]._featureFilter.filter(new pi(this.zoom),f,r)){var h={id:s,sourceLayerIndex:c,index:l,geometry:u?f.geometry:Ya(o),properties:o.properties,type:o.type,patterns:{}};void 0!==o.id&amp;&amp;(h.id=o.id),this.hasPattern?this.features.push(ms(&quot;fill-extrusion&quot;,this.layers,h,this.zoom,e)):this.addFeature(h,h.geometry,l,r,{}),e.featureIndex.insert(o,h.geometry,l,c,this.index,!0)}}},Os.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.features;n&lt;i.length;n+=1){var a=i[n],o=a.geometry;this.addFeature(a,o,a.index,e,r)}},Os.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Os.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Os.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Os.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,bs),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Os.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Os.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=hs(e,500);a&lt;o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c&lt;u.length;c+=1){l+=u[c].length}for(var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),h=0,p=s;h&lt;p.length;h+=1){var d=p[h];if(0!==d.length&amp;&amp;!Ds(d))for(var m=0,g=0;g&lt;d.length;g++){var v=d[g];if(g&gt;=1){var y=d[g-1];if(!zs(v,y)){f.vertexLength+4&gt;pa.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var x=v.sub(y)._perp()._unit(),b=y.dist(v);m+b&gt;32768&amp;&amp;(m=0),Is(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,0,m),Is(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,1,m),m+=b,Is(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,0,m),Is(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,1,m);var _=f.vertexLength;this.indexArray.emplaceBack(_,_+2,_+1),this.indexArray.emplaceBack(_+1,_+2,_+3),f.vertexLength+=4,f.primitiveLength+=2}}}}if(f.vertexLength+l&gt;pa.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray)),&quot;Polygon&quot;===Cs[t.type]){for(var w=[],T=[],k=f.vertexLength,A=0,M=s;A&lt;M.length;A+=1){var S=M[A];if(0!==S.length){S!==s[0]&amp;&amp;T.push(w.length/2);for(var E=0;E&lt;S.length;E++){var L=S[E];Is(this.layoutVertexArray,L.x,L.y,0,0,1,1,0),w.push(L.x),w.push(L.y)}}}for(var C=Do(w,T),P=0;P&lt;C.length;P+=3)this.indexArray.emplaceBack(k+C[P],k+C[P+2],k+C[P+1]);f.primitiveLength+=C.length/3,f.vertexLength+=l}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Nn(&quot;FillExtrusionBucket&quot;,Os,{omit:[&quot;layers&quot;,&quot;features&quot;]});var Rs={paint:new Si({&quot;fill-extrusion-opacity&quot;:new wi(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-opacity&quot;]),&quot;fill-extrusion-color&quot;:new Ti(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-color&quot;]),&quot;fill-extrusion-translate&quot;:new wi(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-translate&quot;]),&quot;fill-extrusion-translate-anchor&quot;:new wi(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-translate-anchor&quot;]),&quot;fill-extrusion-pattern&quot;:new ki(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-pattern&quot;]),&quot;fill-extrusion-height&quot;:new Ti(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-height&quot;]),&quot;fill-extrusion-base&quot;:new Ti(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-base&quot;]),&quot;fill-extrusion-vertical-gradient&quot;:new wi(Lt[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-vertical-gradient&quot;])})},Fs=function(t){function e(e){t.call(this,e,Rs)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.createBucket=function(t){return new Os(t)},e.prototype.queryRadius=function(){return so(this.paint.get(&quot;fill-extrusion-translate&quot;))},e.prototype.is3D=function(){return!0},e.prototype.queryIntersectsFeature=function(t,e,r,n,a,o,s,l){var c=lo(t,this.paint.get(&quot;fill-extrusion-translate&quot;),this.paint.get(&quot;fill-extrusion-translate-anchor&quot;),o.angle,s),u=this.paint.get(&quot;fill-extrusion-height&quot;).evaluate(e,r),f=this.paint.get(&quot;fill-extrusion-base&quot;).evaluate(e,r),h=function(t,e,r,n){for(var a=[],o=0,s=t;o&lt;s.length;o+=1){var l=s[o],c=[l.x,l.y,n,1];xo(c,c,e),a.push(new i(c[0]/c[3],c[1]/c[3]))}return a}(c,l,0,0),p=function(t,e,r,n){for(var a=[],o=[],s=n[8]*e,l=n[9]*e,c=n[10]*e,u=n[11]*e,f=n[8]*r,h=n[9]*r,p=n[10]*r,d=n[11]*r,m=0,g=t;m&lt;g.length;m+=1){for(var v=g[m],y=[],x=[],b=0,_=v;b&lt;_.length;b+=1){var w=_[b],T=w.x,k=w.y,A=n[0]*T+n[4]*k+n[12],M=n[1]*T+n[5]*k+n[13],S=n[2]*T+n[6]*k+n[14],E=n[3]*T+n[7]*k+n[15],L=S+c,C=E+u,P=A+f,I=M+h,O=S+p,z=E+d,D=new i((A+s)/C,(M+l)/C);D.z=L/C,y.push(D);var R=new i(P/z,I/z);R.z=O/z,x.push(R)}a.push(y),o.push(x)}return[a,o]}(n,f,u,l);return function(t,e,r){var n=1/0;Ka(r,e)&amp;&amp;(n=Ns(r,e[0]));for(var i=0;i&lt;e.length;i++)for(var a=e[i],o=t[i],s=0;s&lt;a.length-1;s++){var l=a[s],c=a[s+1],u=o[s],f=o[s+1],h=[l,c,f,u,l];Za(r,h)&amp;&amp;(n=Math.min(n,Ns(r,h)))}return n!==1/0&amp;&amp;n}(p[0],p[1],h)},e}(Ei);function Bs(t,e){return t.x*e.x+t.y*e.y}function Ns(t,e){if(1===t.length){for(var r,n=0,i=e[n++];!r||i.equals(r);)if(!(r=e[n++]))return 1/0;for(;n&lt;e.length;n++){var a=e[n],o=t[0],s=r.sub(i),l=a.sub(i),c=o.sub(i),u=Bs(s,s),f=Bs(s,l),h=Bs(l,l),p=Bs(c,s),d=Bs(c,l),m=u*h-f*f,g=(h*p-f*d)/m,v=(u*d-f*p)/m,y=1-g-v,x=i.z*y+r.z*g+a.z*v;if(isFinite(x))return x}return 1/0}for(var b=1/0,_=0,w=e;_&lt;w.length;_+=1){var T=w[_];b=Math.min(b,T.z)}return b}var js=Ii([{name:&quot;a_pos_normal&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_data&quot;,components:4,type:&quot;Uint8&quot;}],4).members,Us=Ls.VectorTileFeature.types,Vs=Math.cos(Math.PI/180*37.5),Hs=Math.pow(2,14)/.5,qs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Fi,this.indexArray=new Yi,this.programConfigurations=new Ua(js,t.layers,t.zoom),this.segments=new pa,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};qs.prototype.populate=function(t,e,r){this.hasPattern=ds(&quot;line&quot;,this.layers,e);for(var n=this.layers[0].layout.get(&quot;line-sort-key&quot;),i=[],a=0,o=t;a&lt;o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,p={type:l.type,id:c,properties:l.properties,geometry:h?Ya(l):[]};if(this.layers[0]._featureFilter.filter(new pi(this.zoom),p,r)){h||(p.geometry=Ya(l));var d=n?n.evaluate(p,{},r):void 0,m={id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:p.geometry,patterns:{},sortKey:d};i.push(m)}}n&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var g=0,v=i;g&lt;v.length;g+=1){var y=v[g],x=y,b=x.geometry,_=x.index,w=x.sourceLayerIndex;if(this.hasPattern){var T=ms(&quot;line&quot;,this.layers,y,this.zoom,e);this.patternFeatures.push(T)}else this.addFeature(y,b,_,r,{});var k=t[_].feature;e.featureIndex.insert(k,b,_,w,this.index)}},qs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},qs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},qs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},qs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},qs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,js),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},qs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},qs.prototype.addFeature=function(t,e,r,n,i){for(var a=this.layers[0].layout,o=a.get(&quot;line-join&quot;).evaluate(t,{}),s=a.get(&quot;line-cap&quot;),l=a.get(&quot;line-miter-limit&quot;),c=a.get(&quot;line-round-limit&quot;),u=0,f=e;u&lt;f.length;u+=1){var h=f[u];this.addLine(h,t,o,s,l,c)}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},qs.prototype.addLine=function(t,e,r,n,i,a){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,e.properties&amp;&amp;e.properties.hasOwnProperty(&quot;mapbox_clip_start&quot;)&amp;&amp;e.properties.hasOwnProperty(&quot;mapbox_clip_end&quot;)){this.clipStart=+e.properties.mapbox_clip_start,this.clipEnd=+e.properties.mapbox_clip_end;for(var o=0;o&lt;t.length-1;o++)this.totalDistance+=t[o].dist(t[o+1]);this.updateScaledDistance()}for(var s=&quot;Polygon&quot;===Us[e.type],l=t.length;l&gt;=2&amp;&amp;t[l-1].equals(t[l-2]);)l--;for(var c=0;c&lt;l-1&amp;&amp;t[c].equals(t[c+1]);)c++;if(!(l&lt;(s?3:2))){&quot;bevel&quot;===r&amp;&amp;(i=1.05);var u,f=this.overscaling&lt;=16?122880/(512*this.overscaling):0,h=this.segments.prepareSegment(10*l,this.layoutVertexArray,this.indexArray),p=void 0,d=void 0,m=void 0,g=void 0;this.e1=this.e2=-1,s&amp;&amp;(u=t[l-2],g=t[c].sub(u)._unit()._perp());for(var v=c;v&lt;l;v++)if(!(d=v===l-1?s?t[c+1]:void 0:t[v+1])||!t[v].equals(d)){g&amp;&amp;(m=g),u&amp;&amp;(p=u),u=t[v],g=d?d.sub(u)._unit()._perp():m;var y=(m=m||g).add(g);0===y.x&amp;&amp;0===y.y||y._unit();var x=m.x*g.x+m.y*g.y,b=y.x*g.x+y.y*g.y,_=0!==b?1/b:1/0,w=2*Math.sqrt(2-2*b),T=b&lt;Vs&amp;&amp;p&amp;&amp;d,k=m.x*g.y-m.y*g.x&gt;0;if(T&amp;&amp;v&gt;c){var A=u.dist(p);if(A&gt;2*f){var M=u.sub(u.sub(p)._mult(f/A)._round());this.updateDistance(p,M),this.addCurrentVertex(M,m,0,0,h),p=M}}var S=p&amp;&amp;d,E=S?r:s?&quot;butt&quot;:n;if(S&amp;&amp;&quot;round&quot;===E&amp;&amp;(_&lt;a?E=&quot;miter&quot;:_&lt;=2&amp;&amp;(E=&quot;fakeround&quot;)),&quot;miter&quot;===E&amp;&amp;_&gt;i&amp;&amp;(E=&quot;bevel&quot;),&quot;bevel&quot;===E&amp;&amp;(_&gt;2&amp;&amp;(E=&quot;flipbevel&quot;),_&lt;i&amp;&amp;(E=&quot;miter&quot;)),p&amp;&amp;this.updateDistance(p,u),&quot;miter&quot;===E)y._mult(_),this.addCurrentVertex(u,y,0,0,h);else if(&quot;flipbevel&quot;===E){if(_&gt;100)y=g.mult(-1);else{var L=_*m.add(g).mag()/m.sub(g).mag();y._perp()._mult(L*(k?-1:1))}this.addCurrentVertex(u,y,0,0,h),this.addCurrentVertex(u,y.mult(-1),0,0,h)}else if(&quot;bevel&quot;===E||&quot;fakeround&quot;===E){var C=-Math.sqrt(_*_-1),P=k?C:0,I=k?0:C;if(p&amp;&amp;this.addCurrentVertex(u,m,P,I,h),&quot;fakeround&quot;===E)for(var O=Math.round(180*w/Math.PI/20),z=1;z&lt;O;z++){var D=z/O;if(.5!==D){var R=D-.5;D+=D*R*(D-1)*((1.0904+x*(x*(3.55645-1.43519*x)-3.2452))*R*R+(.848013+x*(.215638*x-1.06021)))}var F=g.sub(m)._mult(D)._add(m)._unit()._mult(k?-1:1);this.addHalfVertex(u,F.x,F.y,!1,k,0,h)}d&amp;&amp;this.addCurrentVertex(u,g,-P,-I,h)}else if(&quot;butt&quot;===E)this.addCurrentVertex(u,y,0,0,h);else if(&quot;square&quot;===E){var B=p?1:-1;this.addCurrentVertex(u,y,B,B,h)}else&quot;round&quot;===E&amp;&amp;(p&amp;&amp;(this.addCurrentVertex(u,m,0,0,h),this.addCurrentVertex(u,m,1,1,h,!0)),d&amp;&amp;(this.addCurrentVertex(u,g,-1,-1,h,!0),this.addCurrentVertex(u,g,0,0,h)));if(T&amp;&amp;v&lt;l-1){var N=u.dist(d);if(N&gt;2*f){var j=u.add(d.sub(u)._mult(f/N)._round());this.updateDistance(u,j),this.addCurrentVertex(j,g,0,0,h),u=j}}}}},qs.prototype.addCurrentVertex=function(t,e,r,n,i,a){void 0===a&amp;&amp;(a=!1);var o=e.x+e.y*r,s=e.y-e.x*r,l=-e.x+e.y*n,c=-e.y-e.x*n;this.addHalfVertex(t,o,s,a,!1,r,i),this.addHalfVertex(t,l,c,a,!0,-n,i),this.distance&gt;Hs/2&amp;&amp;0===this.totalDistance&amp;&amp;(this.distance=0,this.addCurrentVertex(t,e,r,n,i,a))},qs.prototype.addHalfVertex=function(t,e,r,n,i,a,o){var s=t.x,l=t.y,c=.5*this.scaledDistance;this.layoutVertexArray.emplaceBack((s&lt;&lt;1)+(n?1:0),(l&lt;&lt;1)+(i?1:0),Math.round(63*e)+128,Math.round(63*r)+128,1+(0===a?0:a&lt;0?-1:1)|(63&amp;c)&lt;&lt;2,c&gt;&gt;6);var u=o.vertexLength++;this.e1&gt;=0&amp;&amp;this.e2&gt;=0&amp;&amp;(this.indexArray.emplaceBack(this.e1,this.e2,u),o.primitiveLength++),i?this.e2=u:this.e1=u},qs.prototype.updateScaledDistance=function(){this.scaledDistance=this.totalDistance&gt;0?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(Hs-1):this.distance},qs.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},Nn(&quot;LineBucket&quot;,qs,{omit:[&quot;layers&quot;,&quot;patternFeatures&quot;]});var Gs=new Si({&quot;line-cap&quot;:new wi(Lt.layout_line[&quot;line-cap&quot;]),&quot;line-join&quot;:new Ti(Lt.layout_line[&quot;line-join&quot;]),&quot;line-miter-limit&quot;:new wi(Lt.layout_line[&quot;line-miter-limit&quot;]),&quot;line-round-limit&quot;:new wi(Lt.layout_line[&quot;line-round-limit&quot;]),&quot;line-sort-key&quot;:new Ti(Lt.layout_line[&quot;line-sort-key&quot;])}),Ys={paint:new Si({&quot;line-opacity&quot;:new Ti(Lt.paint_line[&quot;line-opacity&quot;]),&quot;line-color&quot;:new Ti(Lt.paint_line[&quot;line-color&quot;]),&quot;line-translate&quot;:new wi(Lt.paint_line[&quot;line-translate&quot;]),&quot;line-translate-anchor&quot;:new wi(Lt.paint_line[&quot;line-translate-anchor&quot;]),&quot;line-width&quot;:new Ti(Lt.paint_line[&quot;line-width&quot;]),&quot;line-gap-width&quot;:new Ti(Lt.paint_line[&quot;line-gap-width&quot;]),&quot;line-offset&quot;:new Ti(Lt.paint_line[&quot;line-offset&quot;]),&quot;line-blur&quot;:new Ti(Lt.paint_line[&quot;line-blur&quot;]),&quot;line-dasharray&quot;:new Ai(Lt.paint_line[&quot;line-dasharray&quot;]),&quot;line-pattern&quot;:new ki(Lt.paint_line[&quot;line-pattern&quot;]),&quot;line-gradient&quot;:new Mi(Lt.paint_line[&quot;line-gradient&quot;])}),layout:Gs},Ws=new(function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.possiblyEvaluate=function(e,r){return r=new pi(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),t.prototype.possiblyEvaluate.call(this,e,r)},e.prototype.evaluate=function(e,r,n,i){return r=u({},r,{zoom:Math.floor(r.zoom)}),t.prototype.evaluate.call(this,e,r,n,i)},e}(Ti))(Ys.paint.properties[&quot;line-width&quot;].specification);Ws.useIntegerZoom=!0;var Xs=function(t){function e(e){t.call(this,e,Ys)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){&quot;line-gradient&quot;===t&amp;&amp;this._updateGradient()},e.prototype._updateGradient=function(){var t=this._transitionablePaint._values[&quot;line-gradient&quot;].value.expression;this.gradient=Co(t,&quot;lineProgress&quot;),this.gradientTexture=null},e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r),this.paint._values[&quot;line-floorwidth&quot;]=Ws.possiblyEvaluate(this._transitioningPaint._values[&quot;line-width&quot;].value,e)},e.prototype.createBucket=function(t){return new qs(t)},e.prototype.queryRadius=function(t){var e=t,r=Zs(oo(&quot;line-width&quot;,this,e),oo(&quot;line-gap-width&quot;,this,e)),n=oo(&quot;line-offset&quot;,this,e);return r/2+Math.abs(n)+so(this.paint.get(&quot;line-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,a,o,s){var l=lo(t,this.paint.get(&quot;line-translate&quot;),this.paint.get(&quot;line-translate-anchor&quot;),o.angle,s),c=s/2*Zs(this.paint.get(&quot;line-width&quot;).evaluate(e,r),this.paint.get(&quot;line-gap-width&quot;).evaluate(e,r)),u=this.paint.get(&quot;line-offset&quot;).evaluate(e,r);return u&amp;&amp;(n=function(t,e){for(var r=[],n=new i(0,0),a=0;a&lt;t.length;a++){for(var o=t[a],s=[],l=0;l&lt;o.length;l++){var c=o[l-1],u=o[l],f=o[l+1],h=0===l?n:u.sub(c)._unit()._perp(),p=l===o.length-1?n:f.sub(u)._unit()._perp(),d=h._add(p)._unit(),m=d.x*p.x+d.y*p.y;d._mult(1/m),s.push(d._mult(e)._add(u))}r.push(s)}return r}(n,u*s)),function(t,e,r){for(var n=0;n&lt;e.length;n++){var i=e[n];if(t.length&gt;=3)for(var a=0;a&lt;i.length;a++)if(io(t,i[a]))return!0;if(Qa(t,i,r))return!0}return!1}(l,n,c)},e.prototype.isTileClipped=function(){return!0},e}(Ei);function Zs(t,e){return e&gt;0?e+2*t:t}var Js=Ii([{name:&quot;a_pos_offset&quot;,components:4,type:&quot;Int16&quot;},{name:&quot;a_data&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pixeloffset&quot;,components:4,type:&quot;Int16&quot;}],4),Ks=Ii([{name:&quot;a_projected_pos&quot;,components:3,type:&quot;Float32&quot;}],4),Qs=(Ii([{name:&quot;a_fade_opacity&quot;,components:1,type:&quot;Uint32&quot;}],4),Ii([{name:&quot;a_placed&quot;,components:2,type:&quot;Uint8&quot;},{name:&quot;a_shift&quot;,components:2,type:&quot;Float32&quot;}])),$s=(Ii([{type:&quot;Int16&quot;,name:&quot;anchorPointX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorPointY&quot;},{type:&quot;Int16&quot;,name:&quot;x1&quot;},{type:&quot;Int16&quot;,name:&quot;y1&quot;},{type:&quot;Int16&quot;,name:&quot;x2&quot;},{type:&quot;Int16&quot;,name:&quot;y2&quot;},{type:&quot;Uint32&quot;,name:&quot;featureIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;sourceLayerIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;bucketIndex&quot;}]),Ii([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_anchor_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_extrude&quot;,components:2,type:&quot;Int16&quot;}],4)),tl=Ii([{name:&quot;a_pos&quot;,components:2,type:&quot;Float32&quot;},{name:&quot;a_radius&quot;,components:1,type:&quot;Float32&quot;},{name:&quot;a_flags&quot;,components:2,type:&quot;Int16&quot;}],4);Ii([{name:&quot;triangle&quot;,components:3,type:&quot;Uint16&quot;}]),Ii([{type:&quot;Int16&quot;,name:&quot;anchorX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorY&quot;},{type:&quot;Uint16&quot;,name:&quot;glyphStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;numGlyphs&quot;},{type:&quot;Uint32&quot;,name:&quot;vertexStartIndex&quot;},{type:&quot;Uint32&quot;,name:&quot;lineStartIndex&quot;},{type:&quot;Uint32&quot;,name:&quot;lineLength&quot;},{type:&quot;Uint16&quot;,name:&quot;segment&quot;},{type:&quot;Uint16&quot;,name:&quot;lowerSize&quot;},{type:&quot;Uint16&quot;,name:&quot;upperSize&quot;},{type:&quot;Float32&quot;,name:&quot;lineOffsetX&quot;},{type:&quot;Float32&quot;,name:&quot;lineOffsetY&quot;},{type:&quot;Uint8&quot;,name:&quot;writingMode&quot;},{type:&quot;Uint8&quot;,name:&quot;placedOrientation&quot;},{type:&quot;Uint8&quot;,name:&quot;hidden&quot;},{type:&quot;Uint32&quot;,name:&quot;crossTileID&quot;},{type:&quot;Int16&quot;,name:&quot;associatedIconIndex&quot;}]),Ii([{type:&quot;Int16&quot;,name:&quot;anchorX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorY&quot;},{type:&quot;Int16&quot;,name:&quot;rightJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;centerJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;leftJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;verticalPlacedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;placedIconSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;verticalPlacedIconSymbolIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;key&quot;},{type:&quot;Uint16&quot;,name:&quot;textBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;textBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalTextBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalTextBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;iconBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;iconBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalIconBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalIconBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;featureIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;numHorizontalGlyphVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numVerticalGlyphVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numIconVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numVerticalIconVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;useRuntimeCollisionCircles&quot;},{type:&quot;Uint32&quot;,name:&quot;crossTileID&quot;},{type:&quot;Float32&quot;,name:&quot;textBoxScale&quot;},{type:&quot;Float32&quot;,components:2,name:&quot;textOffset&quot;},{type:&quot;Float32&quot;,name:&quot;collisionCircleDiameter&quot;}]),Ii([{type:&quot;Float32&quot;,name:&quot;offsetX&quot;}]),Ii([{type:&quot;Int16&quot;,name:&quot;x&quot;},{type:&quot;Int16&quot;,name:&quot;y&quot;},{type:&quot;Int16&quot;,name:&quot;tileUnitDistanceFromAnchor&quot;}]);function el(t,e,r){return t.sections.forEach((function(t){t.text=function(t,e,r){var n=e.layout.get(&quot;text-transform&quot;).evaluate(r,{});return&quot;uppercase&quot;===n?t=t.toLocaleUpperCase():&quot;lowercase&quot;===n&amp;&amp;(t=t.toLocaleLowerCase()),hi.applyArabicShaping&amp;&amp;(t=hi.applyArabicShaping(t)),t}(t.text,e,r)})),t}var rl={&quot;!&quot;:&quot;\ufe15&quot;,&quot;#&quot;:&quot;\uff03&quot;,$:&quot;\uff04&quot;,&quot;%&quot;:&quot;\uff05&quot;,&quot;&amp;&quot;:&quot;\uff06&quot;,&quot;(&quot;:&quot;\ufe35&quot;,&quot;)&quot;:&quot;\ufe36&quot;,&quot;*&quot;:&quot;\uff0a&quot;,&quot;+&quot;:&quot;\uff0b&quot;,&quot;,&quot;:&quot;\ufe10&quot;,&quot;-&quot;:&quot;\ufe32&quot;,&quot;.&quot;:&quot;\u30fb&quot;,&quot;/&quot;:&quot;\uff0f&quot;,&quot;:&quot;:&quot;\ufe13&quot;,&quot;;&quot;:&quot;\ufe14&quot;,&quot;&lt;&quot;:&quot;\ufe3f&quot;,&quot;=&quot;:&quot;\uff1d&quot;,&quot;&gt;&quot;:&quot;\ufe40&quot;,&quot;?&quot;:&quot;\ufe16&quot;,&quot;@&quot;:&quot;\uff20&quot;,&quot;[&quot;:&quot;\ufe47&quot;,&quot;\\&quot;:&quot;\uff3c&quot;,&quot;]&quot;:&quot;\ufe48&quot;,&quot;^&quot;:&quot;\uff3e&quot;,_:&quot;\ufe33&quot;,&quot;`&quot;:&quot;\uff40&quot;,&quot;{&quot;:&quot;\ufe37&quot;,&quot;|&quot;:&quot;\u2015&quot;,&quot;}&quot;:&quot;\ufe38&quot;,&quot;~&quot;:&quot;\uff5e&quot;,&quot;\xa2&quot;:&quot;\uffe0&quot;,&quot;\xa3&quot;:&quot;\uffe1&quot;,&quot;\xa5&quot;:&quot;\uffe5&quot;,&quot;\xa6&quot;:&quot;\uffe4&quot;,&quot;\xac&quot;:&quot;\uffe2&quot;,&quot;\xaf&quot;:&quot;\uffe3&quot;,&quot;\u2013&quot;:&quot;\ufe32&quot;,&quot;\u2014&quot;:&quot;\ufe31&quot;,&quot;\u2018&quot;:&quot;\ufe43&quot;,&quot;\u2019&quot;:&quot;\ufe44&quot;,&quot;\u201c&quot;:&quot;\ufe41&quot;,&quot;\u201d&quot;:&quot;\ufe42&quot;,&quot;\u2026&quot;:&quot;\ufe19&quot;,&quot;\u2027&quot;:&quot;\u30fb&quot;,&quot;\u20a9&quot;:&quot;\uffe6&quot;,&quot;\u3001&quot;:&quot;\ufe11&quot;,&quot;\u3002&quot;:&quot;\ufe12&quot;,&quot;\u3008&quot;:&quot;\ufe3f&quot;,&quot;\u3009&quot;:&quot;\ufe40&quot;,&quot;\u300a&quot;:&quot;\ufe3d&quot;,&quot;\u300b&quot;:&quot;\ufe3e&quot;,&quot;\u300c&quot;:&quot;\ufe41&quot;,&quot;\u300d&quot;:&quot;\ufe42&quot;,&quot;\u300e&quot;:&quot;\ufe43&quot;,&quot;\u300f&quot;:&quot;\ufe44&quot;,&quot;\u3010&quot;:&quot;\ufe3b&quot;,&quot;\u3011&quot;:&quot;\ufe3c&quot;,&quot;\u3014&quot;:&quot;\ufe39&quot;,&quot;\u3015&quot;:&quot;\ufe3a&quot;,&quot;\u3016&quot;:&quot;\ufe17&quot;,&quot;\u3017&quot;:&quot;\ufe18&quot;,&quot;\uff01&quot;:&quot;\ufe15&quot;,&quot;\uff08&quot;:&quot;\ufe35&quot;,&quot;\uff09&quot;:&quot;\ufe36&quot;,&quot;\uff0c&quot;:&quot;\ufe10&quot;,&quot;\uff0d&quot;:&quot;\ufe32&quot;,&quot;\uff0e&quot;:&quot;\u30fb&quot;,&quot;\uff1a&quot;:&quot;\ufe13&quot;,&quot;\uff1b&quot;:&quot;\ufe14&quot;,&quot;\uff1c&quot;:&quot;\ufe3f&quot;,&quot;\uff1e&quot;:&quot;\ufe40&quot;,&quot;\uff1f&quot;:&quot;\ufe16&quot;,&quot;\uff3b&quot;:&quot;\ufe47&quot;,&quot;\uff3d&quot;:&quot;\ufe48&quot;,&quot;\uff3f&quot;:&quot;\ufe33&quot;,&quot;\uff5b&quot;:&quot;\ufe37&quot;,&quot;\uff5c&quot;:&quot;\u2015&quot;,&quot;\uff5d&quot;:&quot;\ufe38&quot;,&quot;\uff5f&quot;:&quot;\ufe35&quot;,&quot;\uff60&quot;:&quot;\ufe36&quot;,&quot;\uff61&quot;:&quot;\ufe12&quot;,&quot;\uff62&quot;:&quot;\ufe41&quot;,&quot;\uff63&quot;:&quot;\ufe42&quot;};var nl=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1&lt;&lt;s)-1,c=l&gt;&gt;1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&amp;(1&lt;&lt;-u)-1,p&gt;&gt;=-u,u+=s;u&gt;0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&amp;(1&lt;&lt;-u)-1,a&gt;&gt;=-u,u+=n;u&gt;0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},il=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1&lt;&lt;c)-1,f=u&gt;&gt;1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,m=e&lt;0||0===e&amp;&amp;1/e&lt;0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))&lt;1&amp;&amp;(o--,l*=2),(e+=o+f&gt;=1?h/l:h*Math.pow(2,1-f))*l&gt;=2&amp;&amp;(o++,l/=2),o+f&gt;=u?(s=0,o=u):o+f&gt;=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i&gt;=8;t[r+p]=255&amp;s,p+=d,s/=256,i-=8);for(o=o&lt;&lt;i|s,c+=i;c&gt;0;t[r+p]=255&amp;o,p+=d,o/=256,c-=8);t[r+p-d]|=128*m},al=ol;function ol(t){this.buf=ArrayBuffer.isView&amp;&amp;ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}ol.Varint=0,ol.Fixed64=1,ol.Bytes=2,ol.Fixed32=5;var sl=&quot;undefined&quot;==typeof TextDecoder?null:new TextDecoder(&quot;utf8&quot;);function ll(t){return t.type===ol.Bytes?t.readVarint()+t.pos:t.pos+1}function cl(t,e,r){return r?4294967296*e+(t&gt;&gt;&gt;0):4294967296*(e&gt;&gt;&gt;0)+(t&gt;&gt;&gt;0)}function ul(t,e,r){var n=e&lt;=16383?1:e&lt;=2097151?2:e&lt;=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i&gt;=t;i--)r.buf[i+n]=r.buf[i]}function fl(t,e){for(var r=0;r&lt;t.length;r++)e.writeVarint(t[r])}function hl(t,e){for(var r=0;r&lt;t.length;r++)e.writeSVarint(t[r])}function pl(t,e){for(var r=0;r&lt;t.length;r++)e.writeFloat(t[r])}function dl(t,e){for(var r=0;r&lt;t.length;r++)e.writeDouble(t[r])}function ml(t,e){for(var r=0;r&lt;t.length;r++)e.writeBoolean(t[r])}function gl(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed32(t[r])}function vl(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed32(t[r])}function yl(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed64(t[r])}function xl(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed64(t[r])}function bl(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+16777216*t[e+3]}function _l(t,e,r){t[r]=e,t[r+1]=e&gt;&gt;&gt;8,t[r+2]=e&gt;&gt;&gt;16,t[r+3]=e&gt;&gt;&gt;24}function wl(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+(t[e+3]&lt;&lt;24)}ol.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos&lt;r;){var n=this.readVarint(),i=n&gt;&gt;3,a=this.pos;this.type=7&amp;n,t(i,e,this),this.pos===a&amp;&amp;this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=bl(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=wl(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=bl(this.buf,this.pos)+4294967296*bl(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=bl(this.buf,this.pos)+4294967296*wl(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=nl(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=nl(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return e=127&amp;(r=n[this.pos++]),r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;7,r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;14,r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;21,r&lt;128?e:function(t,e,r){var n,i,a=r.buf;if(i=a[r.pos++],n=(112&amp;i)&gt;&gt;4,i&lt;128)return cl(t,n,e);if(i=a[r.pos++],n|=(127&amp;i)&lt;&lt;3,i&lt;128)return cl(t,n,e);if(i=a[r.pos++],n|=(127&amp;i)&lt;&lt;10,i&lt;128)return cl(t,n,e);if(i=a[r.pos++],n|=(127&amp;i)&lt;&lt;17,i&lt;128)return cl(t,n,e);if(i=a[r.pos++],n|=(127&amp;i)&lt;&lt;24,i&lt;128)return cl(t,n,e);if(i=a[r.pos++],n|=(1&amp;i)&lt;&lt;31,i&lt;128)return cl(t,n,e);throw new Error(&quot;Expected varint not more than 10 bytes&quot;)}(e|=(15&amp;(r=n[this.pos]))&lt;&lt;28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e&gt;=12&amp;&amp;sl?function(t,e,r){return sl.decode(t.subarray(e,r))}(this.buf,e,t):function(t,e,r){var n=&quot;&quot;,i=e;for(;i&lt;r;){var a,o,s,l=t[i],c=null,u=l&gt;239?4:l&gt;223?3:l&gt;191?2:1;if(i+u&gt;r)break;1===u?l&lt;128&amp;&amp;(c=l):2===u?128==(192&amp;(a=t[i+1]))&amp;&amp;(c=(31&amp;l)&lt;&lt;6|63&amp;a)&lt;=127&amp;&amp;(c=null):3===u?(a=t[i+1],o=t[i+2],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;((c=(15&amp;l)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;o)&lt;=2047||c&gt;=55296&amp;&amp;c&lt;=57343)&amp;&amp;(c=null)):4===u&amp;&amp;(a=t[i+1],o=t[i+2],s=t[i+3],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;128==(192&amp;s)&amp;&amp;((c=(15&amp;l)&lt;&lt;18|(63&amp;a)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;s)&lt;=65535||c&gt;=1114112)&amp;&amp;(c=null)),null===c?(c=65533,u=1):c&gt;65535&amp;&amp;(c-=65536,n+=String.fromCharCode(c&gt;&gt;&gt;10&amp;1023|55296),c=56320|1023&amp;c),n+=String.fromCharCode(c),i+=u}return n}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==ol.Bytes)return t.push(this.readVarint(e));var r=ll(this);for(t=t||[];this.pos&lt;r;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==ol.Bytes)return t.push(this.readSVarint());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==ol.Bytes)return t.push(this.readBoolean());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==ol.Bytes)return t.push(this.readFloat());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==ol.Bytes)return t.push(this.readDouble());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==ol.Bytes)return t.push(this.readFixed32());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==ol.Bytes)return t.push(this.readSFixed32());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==ol.Bytes)return t.push(this.readFixed64());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==ol.Bytes)return t.push(this.readSFixed64());var e=ll(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&amp;t;if(e===ol.Varint)for(;this.buf[this.pos++]&gt;127;);else if(e===ol.Bytes)this.pos=this.readVarint()+this.pos;else if(e===ol.Fixed32)this.pos+=4;else{if(e!==ol.Fixed64)throw new Error(&quot;Unimplemented type: &quot;+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t&lt;&lt;3|e)},realloc:function(t){for(var e=this.length||16;e&lt;this.pos+t;)e*=2;if(e!==this.length){var r=new Uint8Array(e);r.set(this.buf),this.buf=r,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),_l(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),_l(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),_l(this.buf,-1&amp;t,this.pos),_l(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),_l(this.buf,-1&amp;t,this.pos),_l(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)&gt;268435455||t&lt;0?function(t,e){var r,n;t&gt;=0?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,n=n+1|0));if(t&gt;=0x10000000000000000||t&lt;-0x10000000000000000)throw new Error(&quot;Given varint doesn't fit into 10 bytes&quot;);e.realloc(10),function(t,e,r){r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos]=127&amp;t}(r,0,e),function(t,e){var r=(7&amp;t)&lt;&lt;4;if(e.buf[e.pos++]|=r|((t&gt;&gt;&gt;=3)?128:0),!t)return;if(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),!t)return;if(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),!t)return;if(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),!t)return;if(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),!t)return;e.buf[e.pos++]=127&amp;t}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&amp;t|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=t&gt;&gt;&gt;7&amp;127))))},writeSVarint:function(t){this.writeVarint(t&lt;0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,r){for(var n,i,a=0;a&lt;e.length;a++){if((n=e.charCodeAt(a))&gt;55295&amp;&amp;n&lt;57344){if(!i){n&gt;56319||a+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n&lt;56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296&lt;&lt;10|n-56320|65536,i=null}else i&amp;&amp;(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n&lt;128?t[r++]=n:(n&lt;2048?t[r++]=n&gt;&gt;6|192:(n&lt;65536?t[r++]=n&gt;&gt;12|224:(t[r++]=n&gt;&gt;18|240,t[r++]=n&gt;&gt;12&amp;63|128),t[r++]=n&gt;&gt;6&amp;63|128),t[r++]=63&amp;n|128)}return r}(this.buf,t,this.pos);var r=this.pos-e;r&gt;=128&amp;&amp;ul(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),il(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),il(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r&lt;e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var n=this.pos-r;n&gt;=128&amp;&amp;ul(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,ol.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,fl,e)},writePackedSVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,hl,e)},writePackedBoolean:function(t,e){e.length&amp;&amp;this.writeMessage(t,ml,e)},writePackedFloat:function(t,e){e.length&amp;&amp;this.writeMessage(t,pl,e)},writePackedDouble:function(t,e){e.length&amp;&amp;this.writeMessage(t,dl,e)},writePackedFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,gl,e)},writePackedSFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,vl,e)},writePackedFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,yl,e)},writePackedSFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,xl,e)},writeBytesField:function(t,e){this.writeTag(t,ol.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,ol.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,ol.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,ol.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,ol.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,ol.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,ol.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,ol.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,ol.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,ol.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};function Tl(t,e,r){1===t&amp;&amp;r.readMessage(kl,e)}function kl(t,e,r){if(3===t){var n=r.readMessage(Al,{}),i=n.id,a=n.bitmap,o=n.width,s=n.height,l=n.left,c=n.top,u=n.advance;e.push({id:i,bitmap:new So({width:o+6,height:s+6},a),metrics:{width:o,height:s,left:l,top:c,advance:u}})}}function Al(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&amp;&amp;(e.advance=r.readVarint())}function Ml(t){for(var e=0,r=0,n=0,i=t;n&lt;i.length;n+=1){var a=i[n];e+=a.w*a.h,r=Math.max(r,a.w)}t.sort((function(t,e){return e.h-t.h}));for(var o=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}],s=0,l=0,c=0,u=t;c&lt;u.length;c+=1)for(var f=u[c],h=o.length-1;h&gt;=0;h--){var p=o[h];if(!(f.w&gt;p.w||f.h&gt;p.h)){if(f.x=p.x,f.y=p.y,l=Math.max(l,f.y+f.h),s=Math.max(s,f.x+f.w),f.w===p.w&amp;&amp;f.h===p.h){var d=o.pop();h&lt;o.length&amp;&amp;(o[h]=d)}else f.h===p.h?(p.x+=f.w,p.w-=f.w):f.w===p.w?(p.y+=f.h,p.h-=f.h):(o.push({x:p.x+f.w,y:p.y,w:p.w-f.w,h:f.h}),p.y+=f.h,p.h-=f.h);break}}return{w:s,h:l,fill:e/(s*l)||0}}var Sl=function(t,e){var r=e.pixelRatio,n=e.version,i=e.stretchX,a=e.stretchY,o=e.content;this.paddedRect=t,this.pixelRatio=r,this.stretchX=i,this.stretchY=a,this.content=o,this.version=n},El={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};El.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},El.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},El.tlbr.get=function(){return this.tl.concat(this.br)},El.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(Sl.prototype,El);var Ll=function(t,e){var r={},n={};this.haveRenderCallbacks=[];var i=[];this.addImages(t,r,i),this.addImages(e,n,i);var a=Ml(i),o=a.w,s=a.h,l=new Eo({width:o||1,height:s||1});for(var c in t){var u=t[c],f=r[c].paddedRect;Eo.copy(u.data,l,{x:0,y:0},{x:f.x+1,y:f.y+1},u.data)}for(var h in e){var p=e[h],d=n[h].paddedRect,m=d.x+1,g=d.y+1,v=p.data.width,y=p.data.height;Eo.copy(p.data,l,{x:0,y:0},{x:m,y:g},p.data),Eo.copy(p.data,l,{x:0,y:y-1},{x:m,y:g-1},{width:v,height:1}),Eo.copy(p.data,l,{x:0,y:0},{x:m,y:g+y},{width:v,height:1}),Eo.copy(p.data,l,{x:v-1,y:0},{x:m-1,y:g},{width:1,height:y}),Eo.copy(p.data,l,{x:0,y:0},{x:m+v,y:g},{width:1,height:y})}this.image=l,this.iconPositions=r,this.patternPositions=n};Ll.prototype.addImages=function(t,e,r){for(var n in t){var i=t[n],a={x:0,y:0,w:i.data.width+2,h:i.data.height+2};r.push(a),e[n]=new Sl(a,i),i.hasRenderCallback&amp;&amp;this.haveRenderCallbacks.push(n)}},Ll.prototype.patchUpdatedImages=function(t,e){for(var r in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[r],t.getImage(r),e),this.patchUpdatedImage(this.patternPositions[r],t.getImage(r),e)},Ll.prototype.patchUpdatedImage=function(t,e,r){if(t&amp;&amp;e&amp;&amp;t.version!==e.version){t.version=e.version;var n=t.tl,i=n[0],a=n[1];r.update(e.data,void 0,{x:i,y:a})}},Nn(&quot;ImagePosition&quot;,Sl),Nn(&quot;ImageAtlas&quot;,Ll);var Cl={horizontal:1,vertical:2,horizontalOnly:3};var Pl=function(){this.scale=1,this.fontStack=&quot;&quot;,this.imageName=null};Pl.forText=function(t,e){var r=new Pl;return r.scale=t||1,r.fontStack=e,r},Pl.forImage=function(t){var e=new Pl;return e.imageName=t,e};var Il=function(){this.text=&quot;&quot;,this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function Ol(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,m){var g,v=Il.fromFeature(t,i);f===Cl.vertical&amp;&amp;v.verticalizePunctuation();var y=hi.processBidirectionalText,x=hi.processStyledBidirectionalText;if(y&amp;&amp;1===v.sections.length){g=[];for(var b=0,_=y(v.toString(),jl(v,c,a,e,n,p,d));b&lt;_.length;b+=1){var w=_[b],T=new Il;T.text=w,T.sections=v.sections;for(var k=0;k&lt;w.length;k++)T.sectionIndex.push(0);g.push(T)}}else if(x){g=[];for(var A=0,M=x(v.text,v.sectionIndex,jl(v,c,a,e,n,p,d));A&lt;M.length;A+=1){var S=M[A],E=new Il;E.text=S[0],E.sectionIndex=S[1],E.sections=v.sections,g.push(E)}}else g=function(t,e){for(var r=[],n=t.text,i=0,a=0,o=e;a&lt;o.length;a+=1){var s=o[a];r.push(t.substring(i,s)),i=s}return i&lt;n.length&amp;&amp;r.push(t.substring(i,n.length)),r}(v,jl(v,c,a,e,n,p,d));var L=[],C={positionedLines:L,text:v.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:f,iconsInText:!1,verticalizable:!1};return function(t,e,r,n,i,a,o,s,l,c,u,f){for(var h=0,p=-17,d=0,m=0,g=&quot;right&quot;===s?1:&quot;left&quot;===s?0:.5,v=0,y=0,x=i;y&lt;x.length;y+=1){var b=x[y];b.trim();var _=b.getMaxScale(),w=24*(_-1),T={positionedGlyphs:[],lineOffset:0};t.positionedLines[v]=T;var k=T.positionedGlyphs,A=0;if(b.length()){for(var M=0;M&lt;b.length();M++){var S=b.getSection(M),E=b.getSectionIndex(M),L=b.getCharCode(M),C=0,P=null,I=null,O=null,z=24,D=!(l===Cl.horizontal||!u&amp;&amp;!Zn(L)||u&amp;&amp;(zl[L]||(Y=L,Yn.Arabic(Y)||Yn[&quot;Arabic Supplement&quot;](Y)||Yn[&quot;Arabic Extended-A&quot;](Y)||Yn[&quot;Arabic Presentation Forms-A&quot;](Y)||Yn[&quot;Arabic Presentation Forms-B&quot;](Y))));if(S.imageName){var R=n[S.imageName];if(!R)continue;O=S.imageName,t.iconsInText=t.iconsInText||!0,I=R.paddedRect;var F=R.displaySize;S.scale=24*S.scale/f,P={width:F[0],height:F[1],left:1,top:-3,advance:D?F[1]:F[0]};var B=24-F[1]*S.scale;C=w+B,z=P.advance;var N=D?F[0]*S.scale-24*_:F[1]*S.scale-24*_;N&gt;0&amp;&amp;N&gt;A&amp;&amp;(A=N)}else{var j=r[S.fontStack],U=j&amp;&amp;j[L];if(U&amp;&amp;U.rect)I=U.rect,P=U.metrics;else{var V=e[S.fontStack],H=V&amp;&amp;V[L];if(!H)continue;P=H.metrics}C=24*(_-S.scale)}D?(t.verticalizable=!0,k.push({glyph:L,imageName:O,x:h,y:p+C,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:P,rect:I}),h+=z*S.scale+c):(k.push({glyph:L,imageName:O,x:h,y:p+C,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:P,rect:I}),h+=P.advance*S.scale+c)}if(0!==k.length){var q=h-c;d=Math.max(q,d),Vl(k,0,k.length-1,g,A)}h=0;var G=a*_+A;T.lineOffset=Math.max(A,w),p+=G,m=Math.max(G,m),++v}else p+=a,++v}var Y;var W=p- -17,X=Ul(o),Z=X.horizontalAlign,J=X.verticalAlign;(function(t,e,r,n,i,a,o,s,l){var c=(e-r)*i,u=0;u=a!==o?-s*n- -17:(-n*l+.5)*o;for(var f=0,h=t;f&lt;h.length;f+=1)for(var p=h[f],d=0,m=p.positionedGlyphs;d&lt;m.length;d+=1){var g=m[d];g.x+=c,g.y+=u}})(t.positionedLines,g,Z,J,d,m,a,W,i.length),t.top+=-J*W,t.bottom=t.top+W,t.left+=-Z*d,t.right=t.left+d}(C,e,r,n,g,o,s,l,f,c,h,m),!function(t){for(var e=0,r=t;e&lt;r.length;e+=1){if(0!==r[e].positionedGlyphs.length)return!1}return!0}(L)&amp;&amp;C}Il.fromFeature=function(t,e){for(var r=new Il,n=0;n&lt;t.sections.length;n++){var i=t.sections[n];i.image?r.addImageSection(i):r.addTextSection(i,e)}return r},Il.prototype.length=function(){return this.text.length},Il.prototype.getSection=function(t){return this.sections[this.sectionIndex[t]]},Il.prototype.getSectionIndex=function(t){return this.sectionIndex[t]},Il.prototype.getCharCode=function(t){return this.text.charCodeAt(t)},Il.prototype.verticalizePunctuation=function(){this.text=function(t){for(var e=&quot;&quot;,r=0;r&lt;t.length;r++){var n=t.charCodeAt(r+1)||null,i=t.charCodeAt(r-1)||null;(!n||!Jn(n)||rl[t[r+1]])&amp;&amp;(!i||!Jn(i)||rl[t[r-1]])&amp;&amp;rl[t[r]]?e+=rl[t[r]]:e+=t[r]}return e}(this.text)},Il.prototype.trim=function(){for(var t=0,e=0;e&lt;this.text.length&amp;&amp;zl[this.text.charCodeAt(e)];e++)t++;for(var r=this.text.length,n=this.text.length-1;n&gt;=0&amp;&amp;n&gt;=t&amp;&amp;zl[this.text.charCodeAt(n)];n--)r--;this.text=this.text.substring(t,r),this.sectionIndex=this.sectionIndex.slice(t,r)},Il.prototype.substring=function(t,e){var r=new Il;return r.text=this.text.substring(t,e),r.sectionIndex=this.sectionIndex.slice(t,e),r.sections=this.sections,r},Il.prototype.toString=function(){return this.text},Il.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,r){return Math.max(e,t.sections[r].scale)}),0)},Il.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(Pl.forText(t.scale,t.fontStack||e));for(var r=this.sections.length-1,n=0;n&lt;t.text.length;++n)this.sectionIndex.push(r)},Il.prototype.addImageSection=function(t){var e=t.image?t.image.name:&quot;&quot;;if(0!==e.length){var r=this.getNextImageSectionCharCode();r?(this.text+=String.fromCharCode(r),this.sections.push(Pl.forImage(e)),this.sectionIndex.push(this.sections.length-1)):_(&quot;Reached maximum number of images 6401&quot;)}else _(&quot;Can't add FormattedSection with an empty image.&quot;)},Il.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID&gt;=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var zl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},Dl={};function Rl(t,e,r,n,i,a){if(e.imageName){var o=n[e.imageName];return o?o.displaySize[0]*e.scale*24/a+i:0}var s=r[e.fontStack],l=s&amp;&amp;s[t];return l?l.metrics.advance*e.scale+i:0}function Fl(t,e,r,n){var i=Math.pow(t-e,2);return n?t&lt;e?i/2:2*i:i+Math.abs(r)*r}function Bl(t,e,r){var n=0;return 10===t&amp;&amp;(n-=1e4),r&amp;&amp;(n+=150),40!==t&amp;&amp;65288!==t||(n+=50),41!==e&amp;&amp;65289!==e||(n+=50),n}function Nl(t,e,r,n,i,a){for(var o=null,s=Fl(e,r,i,a),l=0,c=n;l&lt;c.length;l+=1){var u=c[l],f=Fl(e-u.x,r,i,a)+u.badness;f&lt;=s&amp;&amp;(o=u,s=f)}return{index:t,x:e,priorBreak:o,badness:s}}function jl(t,e,r,n,i,a,o){if(&quot;point&quot;!==a)return[];if(!t)return[];for(var s,l=[],c=function(t,e,r,n,i,a){for(var o=0,s=0;s&lt;t.length();s++){var l=t.getSection(s);o+=Rl(t.getCharCode(s),l,n,i,e,a)}return o/Math.max(1,Math.ceil(o/r))}(t,e,r,n,i,o),u=t.text.indexOf(&quot;\u200b&quot;)&gt;=0,f=0,h=0;h&lt;t.length();h++){var p=t.getSection(h),d=t.getCharCode(h);if(zl[d]||(f+=Rl(d,p,n,i,e,o)),h&lt;t.length()-1){var m=!!(!((s=d)&lt;11904)&amp;&amp;(Yn[&quot;Bopomofo Extended&quot;](s)||Yn.Bopomofo(s)||Yn[&quot;CJK Compatibility Forms&quot;](s)||Yn[&quot;CJK Compatibility Ideographs&quot;](s)||Yn[&quot;CJK Compatibility&quot;](s)||Yn[&quot;CJK Radicals Supplement&quot;](s)||Yn[&quot;CJK Strokes&quot;](s)||Yn[&quot;CJK Symbols and Punctuation&quot;](s)||Yn[&quot;CJK Unified Ideographs Extension A&quot;](s)||Yn[&quot;CJK Unified Ideographs&quot;](s)||Yn[&quot;Enclosed CJK Letters and Months&quot;](s)||Yn[&quot;Halfwidth and Fullwidth Forms&quot;](s)||Yn.Hiragana(s)||Yn[&quot;Ideographic Description Characters&quot;](s)||Yn[&quot;Kangxi Radicals&quot;](s)||Yn[&quot;Katakana Phonetic Extensions&quot;](s)||Yn.Katakana(s)||Yn[&quot;Vertical Forms&quot;](s)||Yn[&quot;Yi Radicals&quot;](s)||Yn[&quot;Yi Syllables&quot;](s)));(Dl[d]||m||p.imageName)&amp;&amp;l.push(Nl(h+1,f,c,l,Bl(d,t.getCharCode(h+1),m&amp;&amp;u),!1))}}return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(Nl(t.length(),f,c,l,0,!0))}function Ul(t){var e=.5,r=.5;switch(t){case&quot;right&quot;:case&quot;top-right&quot;:case&quot;bottom-right&quot;:e=1;break;case&quot;left&quot;:case&quot;top-left&quot;:case&quot;bottom-left&quot;:e=0}switch(t){case&quot;bottom&quot;:case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:r=1;break;case&quot;top&quot;:case&quot;top-right&quot;:case&quot;top-left&quot;:r=0}return{horizontalAlign:e,verticalAlign:r}}function Vl(t,e,r,n,i){if(n||i)for(var a=t[r],o=a.metrics.advance*a.scale,s=(t[r].x+o)*n,l=e;l&lt;=r;l++)t[l].x-=s,t[l].y+=i}function Hl(t,e,r,n,i,a){var o,s=t.image;if(s.content){var l=s.content,c=s.pixelRatio||1;o=[l[0]/c,l[1]/c,s.displaySize[0]-l[2]/c,s.displaySize[1]-l[3]/c]}var u,f,h,p,d=e.left*a,m=e.right*a;&quot;width&quot;===r||&quot;both&quot;===r?(p=i[0]+d-n[3],f=i[0]+m+n[1]):f=(p=i[0]+(d+m-s.displaySize[0])/2)+s.displaySize[0];var g=e.top*a,v=e.bottom*a;return&quot;height&quot;===r||&quot;both&quot;===r?(u=i[1]+g-n[0],h=i[1]+v+n[2]):h=(u=i[1]+(g+v-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:u,right:f,bottom:h,left:p,collisionPadding:o}}Dl[10]=!0,Dl[32]=!0,Dl[38]=!0,Dl[40]=!0,Dl[41]=!0,Dl[43]=!0,Dl[45]=!0,Dl[47]=!0,Dl[173]=!0,Dl[183]=!0,Dl[8203]=!0,Dl[8208]=!0,Dl[8211]=!0,Dl[8231]=!0;var ql=function(t){function e(e,r,n,i){t.call(this,e,r),this.angle=n,void 0!==i&amp;&amp;(this.segment=i)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.x,this.y,this.angle,this.segment)},e}(i);Nn(&quot;Anchor&quot;,ql);function Gl(t,e){var r=e.expression;if(&quot;constant&quot;===r.kind)return{kind:&quot;constant&quot;,layoutSize:r.evaluate(new pi(t+1))};if(&quot;source&quot;===r.kind)return{kind:&quot;source&quot;};for(var n=r.zoomStops,i=r.interpolationType,a=0;a&lt;n.length&amp;&amp;n[a]&lt;=t;)a++;for(var o=a=Math.max(0,a-1);o&lt;n.length&amp;&amp;n[o]&lt;t+1;)o++;o=Math.min(n.length-1,o);var s=n[a],l=n[o];return&quot;composite&quot;===r.kind?{kind:&quot;composite&quot;,minZoom:s,maxZoom:l,interpolationType:i}:{kind:&quot;camera&quot;,minZoom:s,maxZoom:l,minSize:r.evaluate(new pi(s)),maxSize:r.evaluate(new pi(l)),interpolationType:i}}function Yl(t,e,r){var n=e.uSize,i=e.uSizeT,a=r.lowerSize,o=r.upperSize;return&quot;source&quot;===t.kind?a/128:&quot;composite&quot;===t.kind?qe(a/128,o/128,i):n}function Wl(t,e){var r=0,n=0;if(&quot;constant&quot;===t.kind)n=t.layoutSize;else if(&quot;source&quot;!==t.kind){var i=t.interpolationType,a=t.minZoom,o=t.maxZoom,s=i?l(or.interpolationFactor(i,e,a,o),0,1):0;&quot;camera&quot;===t.kind?n=qe(t.minSize,t.maxSize,s):r=s}return{uSizeT:r,uSize:n}}var Xl=Object.freeze({__proto__:null,getSizeData:Gl,evaluateSizeForFeature:Yl,evaluateSizeForZoom:Wl,SIZE_PACK_FACTOR:128});function Zl(t,e,r,n,i){if(void 0===e.segment)return!0;for(var a=e,o=e.segment+1,s=0;s&gt;-r/2;){if(--o&lt;0)return!1;s-=t[o].dist(a),a=t[o]}s+=t[o].dist(t[o+1]),o++;for(var l=[],c=0;s&lt;r/2;){var u=t[o-1],f=t[o],h=t[o+1];if(!h)return!1;var p=u.angleTo(f)-f.angleTo(h);for(p=Math.abs((p+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:p}),c+=p;s-l[0].distance&gt;n;)c-=l.shift().angleDelta;if(c&gt;i)return!1;o++,s+=f.dist(h)}return!0}function Jl(t){for(var e=0,r=0;r&lt;t.length-1;r++)e+=t[r].dist(t[r+1]);return e}function Kl(t,e,r){return t?.6*e*r:0}function Ql(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function $l(t,e,r,n,i,a){for(var o=Kl(r,i,a),s=Ql(r,n)*a,l=0,c=Jl(t)/2,u=0;u&lt;t.length-1;u++){var f=t[u],h=t[u+1],p=f.dist(h);if(l+p&gt;c){var d=(c-l)/p,m=qe(f.x,h.x,d),g=qe(f.y,h.y,d),v=new ql(m,g,h.angleTo(f),u);return v._round(),!o||Zl(t,v,s,o,e)?v:void 0}l+=p}}function tc(t,e,r,n,i,a,o,s,l){var c=Kl(n,a,o),u=Ql(n,i),f=u*o,h=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-f&lt;e/4&amp;&amp;(e=f+e/4),function t(e,r,n,i,a,o,s,l,c){for(var u=o/2,f=Jl(e),h=0,p=r-n,d=[],m=0;m&lt;e.length-1;m++){for(var g=e[m],v=e[m+1],y=g.dist(v),x=v.angleTo(g);p+n&lt;h+y;){var b=((p+=n)-h)/y,_=qe(g.x,v.x,b),w=qe(g.y,v.y,b);if(_&gt;=0&amp;&amp;_&lt;c&amp;&amp;w&gt;=0&amp;&amp;w&lt;c&amp;&amp;p-u&gt;=0&amp;&amp;p+u&lt;=f){var T=new ql(_,w,x,m);T._round(),i&amp;&amp;!Zl(e,T,o,i,a)||d.push(T)}}h+=y}l||d.length||s||(d=t(e,h/2,n,i,a,o,s,!0,c));return d}(t,h?e/2*s%e:(u/2+2*a)*o*s%e,e,c,r,f,h,!1,l)}function ec(t,e,r,n,a){for(var o=[],s=0;s&lt;t.length;s++)for(var l=t[s],c=void 0,u=0;u&lt;l.length-1;u++){var f=l[u],h=l[u+1];f.x&lt;e&amp;&amp;h.x&lt;e||(f.x&lt;e?f=new i(e,f.y+(h.y-f.y)*((e-f.x)/(h.x-f.x)))._round():h.x&lt;e&amp;&amp;(h=new i(e,f.y+(h.y-f.y)*((e-f.x)/(h.x-f.x)))._round()),f.y&lt;r&amp;&amp;h.y&lt;r||(f.y&lt;r?f=new i(f.x+(h.x-f.x)*((r-f.y)/(h.y-f.y)),r)._round():h.y&lt;r&amp;&amp;(h=new i(f.x+(h.x-f.x)*((r-f.y)/(h.y-f.y)),r)._round()),f.x&gt;=n&amp;&amp;h.x&gt;=n||(f.x&gt;=n?f=new i(n,f.y+(h.y-f.y)*((n-f.x)/(h.x-f.x)))._round():h.x&gt;=n&amp;&amp;(h=new i(n,f.y+(h.y-f.y)*((n-f.x)/(h.x-f.x)))._round()),f.y&gt;=a&amp;&amp;h.y&gt;=a||(f.y&gt;=a?f=new i(f.x+(h.x-f.x)*((a-f.y)/(h.y-f.y)),a)._round():h.y&gt;=a&amp;&amp;(h=new i(f.x+(h.x-f.x)*((a-f.y)/(h.y-f.y)),a)._round()),c&amp;&amp;f.equals(c[c.length-1])||(c=[f],o.push(c)),c.push(h)))))}return o}function rc(t,e,r,n){var a=[],o=t.image,s=o.pixelRatio,l=o.paddedRect.w-2,c=o.paddedRect.h-2,u=t.right-t.left,f=t.bottom-t.top,h=o.stretchX||[[0,l]],p=o.stretchY||[[0,c]],d=function(t,e){return t+e[1]-e[0]},m=h.reduce(d,0),g=p.reduce(d,0),v=l-m,y=c-g,x=0,b=m,_=0,w=g,T=0,k=v,A=0,M=y;if(o.content&amp;&amp;n){var S=o.content;x=nc(h,0,S[0]),_=nc(p,0,S[1]),b=nc(h,S[0],S[2]),w=nc(p,S[1],S[3]),T=S[0]-x,A=S[1]-_,k=S[2]-S[0]-b,M=S[3]-S[1]-w}var E=function(n,a,l,c){var h=ac(n.stretch-x,b,u,t.left),p=oc(n.fixed-T,k,n.stretch,m),d=ac(a.stretch-_,w,f,t.top),v=oc(a.fixed-A,M,a.stretch,g),y=ac(l.stretch-x,b,u,t.left),S=oc(l.fixed-T,k,l.stretch,m),E=ac(c.stretch-_,w,f,t.top),L=oc(c.fixed-A,M,c.stretch,g),C=new i(h,d),P=new i(y,d),I=new i(y,E),O=new i(h,E),z=new i(p/s,v/s),D=new i(S/s,L/s),R=e*Math.PI/180;if(R){var F=Math.sin(R),B=Math.cos(R),N=[B,-F,F,B];C._matMult(N),P._matMult(N),O._matMult(N),I._matMult(N)}var j=n.stretch+n.fixed,U=l.stretch+l.fixed,V=a.stretch+a.fixed,H=c.stretch+c.fixed;return{tl:C,tr:P,bl:O,br:I,tex:{x:o.paddedRect.x+1+j,y:o.paddedRect.y+1+V,w:U-j,h:H-V},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:z,pixelOffsetBR:D,minFontScaleX:k/s/u,minFontScaleY:M/s/f,isSDF:r}};if(n&amp;&amp;(o.stretchX||o.stretchY))for(var L=ic(h,v,m),C=ic(p,y,g),P=0;P&lt;L.length-1;P++)for(var I=L[P],O=L[P+1],z=0;z&lt;C.length-1;z++){var D=C[z],R=C[z+1];a.push(E(I,D,O,R))}else a.push(E({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return a}function nc(t,e,r){for(var n=0,i=0,a=t;i&lt;a.length;i+=1){var o=a[i];n+=Math.max(e,Math.min(r,o[1]))-Math.max(e,Math.min(r,o[0]))}return n}function ic(t,e,r){for(var n=[{fixed:-1,stretch:0}],i=0,a=t;i&lt;a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=n[n.length-1];n.push({fixed:s-c.stretch,stretch:c.stretch}),n.push({fixed:s-c.stretch,stretch:c.stretch+(l-s)})}return n.push({fixed:e+1,stretch:r}),n}function ac(t,e,r,n){return t/e*r+n}function oc(t,e,r,n){return t-e*r/n}var sc=function(t,e,r,n,a,o,s,l,c,u){if(this.boxStartIndex=t.length,c){var f=o.top,h=o.bottom,p=o.collisionPadding;p&amp;&amp;(f-=p[1],h+=p[3]);var d=h-f;d&gt;0&amp;&amp;(d=Math.max(10,d),this.circleDiameter=d)}else{var m=o.top*s-l,g=o.bottom*s+l,v=o.left*s-l,y=o.right*s+l,x=o.collisionPadding;if(x&amp;&amp;(v-=x[0]*s,m-=x[1]*s,y+=x[2]*s,g+=x[3]*s),u){var b=new i(v,m),_=new i(y,m),w=new i(v,g),T=new i(y,g),k=u*Math.PI/180;b._rotate(k),_._rotate(k),w._rotate(k),T._rotate(k),v=Math.min(b.x,_.x,w.x,T.x),y=Math.max(b.x,_.x,w.x,T.x),m=Math.min(b.y,_.y,w.y,T.y),g=Math.max(b.y,_.y,w.y,T.y)}t.emplaceBack(e.x,e.y,v,m,y,g,r,n,a)}this.boxEndIndex=t.length},lc=function(t,e){if(void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e=cc),this.data=t,this.length=this.data.length,this.compare=e,this.length&gt;0)for(var r=(this.length&gt;&gt;1)-1;r&gt;=0;r--)this._down(r)};function cc(t,e){return t&lt;e?-1:t&gt;e?1:0}function uc(t,e,r){void 0===e&amp;&amp;(e=1),void 0===r&amp;&amp;(r=!1);for(var n=1/0,a=1/0,o=-1/0,s=-1/0,l=t[0],c=0;c&lt;l.length;c++){var u=l[c];(!c||u.x&lt;n)&amp;&amp;(n=u.x),(!c||u.y&lt;a)&amp;&amp;(a=u.y),(!c||u.x&gt;o)&amp;&amp;(o=u.x),(!c||u.y&gt;s)&amp;&amp;(s=u.y)}var f=o-n,h=s-a,p=Math.min(f,h),d=p/2,m=new lc([],fc);if(0===p)return new i(n,a);for(var g=n;g&lt;o;g+=p)for(var v=a;v&lt;s;v+=p)m.push(new hc(g+d,v+d,d,t));for(var y=function(t){for(var e=0,r=0,n=0,i=t[0],a=0,o=i.length,s=o-1;a&lt;o;s=a++){var l=i[a],c=i[s],u=l.x*c.y-c.x*l.y;r+=(l.x+c.x)*u,n+=(l.y+c.y)*u,e+=3*u}return new hc(r/e,n/e,0,t)}(t),x=m.length;m.length;){var b=m.pop();(b.d&gt;y.d||!y.d)&amp;&amp;(y=b,r&amp;&amp;console.log(&quot;found best %d after %d probes&quot;,Math.round(1e4*b.d)/1e4,x)),b.max-y.d&lt;=e||(d=b.h/2,m.push(new hc(b.p.x-d,b.p.y-d,d,t)),m.push(new hc(b.p.x+d,b.p.y-d,d,t)),m.push(new hc(b.p.x-d,b.p.y+d,d,t)),m.push(new hc(b.p.x+d,b.p.y+d,d,t)),x+=4)}return r&amp;&amp;(console.log(&quot;num probes: &quot;+x),console.log(&quot;best distance: &quot;+y.d)),y.p}function fc(t,e){return e.max-t.max}function hc(t,e,r,n){this.p=new i(t,e),this.h=r,this.d=function(t,e){for(var r=!1,n=1/0,i=0;i&lt;e.length;i++)for(var a=e[i],o=0,s=a.length,l=s-1;o&lt;s;l=o++){var c=a[o],u=a[l];c.y&gt;t.y!=u.y&gt;t.y&amp;&amp;t.x&lt;(u.x-c.x)*(t.y-c.y)/(u.y-c.y)+c.x&amp;&amp;(r=!r),n=Math.min(n,ro(t,c,u))}return(r?1:-1)*Math.sqrt(n)}(this.p,n),this.max=this.d+this.h*Math.SQRT2}lc.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},lc.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length&gt;0&amp;&amp;(this.data[0]=e,this._down(0)),t}},lc.prototype.peek=function(){return this.data[0]},lc.prototype._up=function(t){for(var e=this.data,r=this.compare,n=e[t];t&gt;0;){var i=t-1&gt;&gt;1,a=e[i];if(r(n,a)&gt;=0)break;e[t]=a,t=i}e[t]=n},lc.prototype._down=function(t){for(var e=this.data,r=this.compare,n=this.length&gt;&gt;1,i=e[t];t&lt;n;){var a=1+(t&lt;&lt;1),o=e[a],s=a+1;if(s&lt;this.length&amp;&amp;r(e[s],o)&lt;0&amp;&amp;(a=s,o=e[s]),r(o,i)&gt;=0)break;e[t]=o,t=a}e[t]=i};var pc=Number.POSITIVE_INFINITY;function dc(t,e){return e[1]!==pc?function(t,e,r){var n=0,i=0;switch(e=Math.abs(e),r=Math.abs(r),t){case&quot;top-right&quot;:case&quot;top-left&quot;:case&quot;top&quot;:i=r-7;break;case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:case&quot;bottom&quot;:i=7-r}switch(t){case&quot;top-right&quot;:case&quot;bottom-right&quot;:case&quot;right&quot;:n=-e;break;case&quot;top-left&quot;:case&quot;bottom-left&quot;:case&quot;left&quot;:n=e}return[n,i]}(t,e[0],e[1]):function(t,e){var r=0,n=0;e&lt;0&amp;&amp;(e=0);var i=e/Math.sqrt(2);switch(t){case&quot;top-right&quot;:case&quot;top-left&quot;:n=i-7;break;case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:n=7-i;break;case&quot;bottom&quot;:n=7-e;break;case&quot;top&quot;:n=e-7}switch(t){case&quot;top-right&quot;:case&quot;bottom-right&quot;:r=-i;break;case&quot;top-left&quot;:case&quot;bottom-left&quot;:r=i;break;case&quot;left&quot;:r=e;break;case&quot;right&quot;:r=-e}return[r,n]}(t,e[0])}function mc(t){switch(t){case&quot;right&quot;:case&quot;top-right&quot;:case&quot;bottom-right&quot;:return&quot;right&quot;;case&quot;left&quot;:case&quot;top-left&quot;:case&quot;bottom-left&quot;:return&quot;left&quot;}return&quot;center&quot;}function gc(t,e,r,n,a,o,s,l,c,u,f,h,p,d,m){var g=function(t,e,r,n,a,o,s,l){for(var c=n.layout.get(&quot;text-rotate&quot;).evaluate(o,{})*Math.PI/180,u=[],f=0,h=e.positionedLines;f&lt;h.length;f+=1)for(var p=h[f],d=0,m=p.positionedGlyphs;d&lt;m.length;d+=1){var g=m[d];if(g.rect){var v=g.rect||{},y=4,x=!0,b=1,_=0,w=(a||l)&amp;&amp;g.vertical,T=g.metrics.advance*g.scale/2;if(l&amp;&amp;e.verticalizable){var k=24*(g.scale-1),A=(24-g.metrics.width*g.scale)/2;_=p.lineOffset/2-(g.imageName?-A:k)}if(g.imageName){var M=s[g.imageName];x=M.sdf,y=1/(b=M.pixelRatio)}var S=a?[g.x+T,g.y]:[0,0],E=a?[0,0]:[g.x+T+r[0],g.y+r[1]-_],L=[0,0];w&amp;&amp;(L=E,E=[0,0]);var C=(g.metrics.left-y)*g.scale-T+E[0],P=(-g.metrics.top-y)*g.scale+E[1],I=C+v.w*g.scale/b,O=P+v.h*g.scale/b,z=new i(C,P),D=new i(I,P),R=new i(C,O),F=new i(I,O);if(w){var B=new i(-T,T- -17),N=-Math.PI/2,j=12-T,U=g.imageName?j:0,V=new i(22-j,-U),H=new(Function.prototype.bind.apply(i,[null].concat(L)));z._rotateAround(N,B)._add(V)._add(H),D._rotateAround(N,B)._add(V)._add(H),R._rotateAround(N,B)._add(V)._add(H),F._rotateAround(N,B)._add(V)._add(H)}if(c){var q=Math.sin(c),G=Math.cos(c),Y=[G,-q,q,G];z._matMult(Y),D._matMult(Y),R._matMult(Y),F._matMult(Y)}var W=new i(0,0),X=new i(0,0);u.push({tl:z,tr:D,bl:R,br:F,tex:v,writingMode:e.writingMode,glyphOffset:S,sectionIndex:g.sectionIndex,isSDF:x,pixelOffsetTL:W,pixelOffsetBR:X,minFontScaleX:0,minFontScaleY:0})}}return u}(0,r,l,a,o,s,n,t.allowVerticalPlacement),v=t.textSizeData,y=null;&quot;source&quot;===v.kind?(y=[128*a.layout.get(&quot;text-size&quot;).evaluate(s,{})])[0]&gt;32640&amp;&amp;_(t.layerIds[0]+': Value for &quot;text-size&quot; is &gt;= 255. Reduce your &quot;text-size&quot;.'):&quot;composite&quot;===v.kind&amp;&amp;((y=[128*d.compositeTextSizes[0].evaluate(s,{},m),128*d.compositeTextSizes[1].evaluate(s,{},m)])[0]&gt;32640||y[1]&gt;32640)&amp;&amp;_(t.layerIds[0]+': Value for &quot;text-size&quot; is &gt;= 255. Reduce your &quot;text-size&quot;.'),t.addSymbols(t.text,g,y,l,o,s,u,e,c.lineStartIndex,c.lineLength,p,m);for(var x=0,b=f;x&lt;b.length;x+=1){h[b[x]]=t.text.placedSymbolArray.length-1}return 4*g.length}function vc(t){for(var e in t)return t[e];return null}function yc(t,e,r,n){var i=t.compareText;if(e in i){for(var a=i[e],o=a.length-1;o&gt;=0;o--)if(n.dist(a[o])&lt;r)return!0}else i[e]=[];return i[e].push(n),!1}var xc=Ls.VectorTileFeature.types,bc=[{name:&quot;a_fade_opacity&quot;,components:1,type:&quot;Uint8&quot;,offset:0}];function _c(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=s?Math.min(32640,Math.round(s[0])):0,d=s?Math.min(32640,Math.round(s[1])):0;t.emplaceBack(e,r,Math.round(32*n),Math.round(32*i),a,o,(p&lt;&lt;1)+(l?1:0),d,16*c,16*u,256*f,256*h)}function wc(t,e,r){t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r)}function Tc(t){for(var e=0,r=t.sections;e&lt;r.length;e+=1){if($n(r[e].text))return!0}return!1}var kc=function(t){this.layoutVertexArray=new Ni,this.indexArray=new Yi,this.programConfigurations=t,this.segments=new pa,this.dynamicLayoutVertexArray=new ji,this.opacityVertexArray=new Ui,this.placedSymbolArray=new aa};kc.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&amp;&amp;0===this.indexArray.length&amp;&amp;0===this.dynamicLayoutVertexArray.length&amp;&amp;0===this.opacityVertexArray.length},kc.prototype.upload=function(t,e,r,n){this.isEmpty()||(r&amp;&amp;(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Js.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,Ks.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,bc,!0),this.opacityVertexBuffer.itemSize=1),(r||n)&amp;&amp;this.programConfigurations.upload(t))},kc.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},Nn(&quot;SymbolBuffers&quot;,kc);var Ac=function(t,e,r){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new r,this.segments=new pa,this.collisionVertexArray=new Gi};Ac.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,Qs.members,!0)},Ac.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},Nn(&quot;CollisionBuffers&quot;,Ac);var Mc=function(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=ho([]),this.placementViewportMatrix=ho([]);var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Gl(this.zoom,e[&quot;text-size&quot;]),this.iconSizeData=Gl(this.zoom,e[&quot;icon-size&quot;]);var r=this.layers[0].layout,n=r.get(&quot;symbol-sort-key&quot;),i=r.get(&quot;symbol-z-order&quot;);this.sortFeaturesByKey=&quot;viewport-y&quot;!==i&amp;&amp;void 0!==n.constantOr(1);var a=&quot;viewport-y&quot;===i||&quot;auto&quot;===i&amp;&amp;!this.sortFeaturesByKey;this.sortFeaturesByY=a&amp;&amp;(r.get(&quot;text-allow-overlap&quot;)||r.get(&quot;icon-allow-overlap&quot;)||r.get(&quot;text-ignore-placement&quot;)||r.get(&quot;icon-ignore-placement&quot;)),&quot;point&quot;===r.get(&quot;symbol-placement&quot;)&amp;&amp;(this.writingModes=r.get(&quot;text-writing-mode&quot;).map((function(t){return Cl[t]}))),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id})),this.sourceID=t.sourceID};Mc.prototype.createArrays=function(){this.text=new kc(new Ua(Js.members,this.layers,this.zoom,(function(t){return/^text/.test(t)}))),this.icon=new kc(new Ua(Js.members,this.layers,this.zoom,(function(t){return/^icon/.test(t)}))),this.glyphOffsetArray=new la,this.lineVertexArray=new ca,this.symbolInstances=new sa},Mc.prototype.calculateGlyphDependencies=function(t,e,r,n,i){for(var a=0;a&lt;t.length;a++)if(e[t.charCodeAt(a)]=!0,(r||n)&amp;&amp;i){var o=rl[t.charAt(a)];o&amp;&amp;(e[o.charCodeAt(0)]=!0)}},Mc.prototype.populate=function(t,e,r){var n=this.layers[0],i=n.layout,a=i.get(&quot;text-font&quot;),o=i.get(&quot;text-field&quot;),s=i.get(&quot;icon-image&quot;),l=(&quot;constant&quot;!==o.value.kind||o.value.value instanceof ne&amp;&amp;!o.value.value.isEmpty()||o.value.value.toString().length&gt;0)&amp;&amp;(&quot;constant&quot;!==a.value.kind||a.value.value.length&gt;0),c=&quot;constant&quot;!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length&gt;0,u=i.get(&quot;symbol-sort-key&quot;);if(this.features=[],l||c){for(var f=e.iconDependencies,h=e.glyphDependencies,p=e.availableImages,d=new pi(this.zoom),m=0,g=t;m&lt;g.length;m+=1){var v=g[m],y=v.feature,x=v.id,b=v.index,_=v.sourceLayerIndex,w=n._featureFilter.needGeometry,T={type:y.type,id:x,properties:y.properties,geometry:w?Ya(y):[]};if(n._featureFilter.filter(d,T,r)){w||(T.geometry=Ya(y));var k=void 0;if(l){var A=n.getValueAndResolveTokens(&quot;text-field&quot;,T,r,p),M=ne.factory(A);Tc(M)&amp;&amp;(this.hasRTLText=!0),(!this.hasRTLText||&quot;unavailable&quot;===ui()||this.hasRTLText&amp;&amp;hi.isParsed())&amp;&amp;(k=el(M,n,T))}var S=void 0;if(c){var E=n.getValueAndResolveTokens(&quot;icon-image&quot;,T,r,p);S=E instanceof ie?E:ie.fromString(E)}if(k||S){var L=this.sortFeaturesByKey?u.evaluate(T,{},r):void 0,C={id:x,text:k,icon:S,index:b,sourceLayerIndex:_,geometry:Ya(y),properties:y.properties,type:xc[y.type],sortKey:L};if(this.features.push(C),S&amp;&amp;(f[S.name]=!0),k){var P=a.evaluate(T,{},r).join(&quot;,&quot;),I=&quot;map&quot;===i.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==i.get(&quot;symbol-placement&quot;);this.allowVerticalPlacement=this.writingModes&amp;&amp;this.writingModes.indexOf(Cl.vertical)&gt;=0;for(var O=0,z=k.sections;O&lt;z.length;O+=1){var D=z[O];if(D.image)f[D.image.name]=!0;else{var R=Wn(k.toString()),F=D.fontStack||P,B=h[F]=h[F]||{};this.calculateGlyphDependencies(D.text,B,I,this.allowVerticalPlacement,R)}}}}}}&quot;line&quot;===i.get(&quot;symbol-placement&quot;)&amp;&amp;(this.features=function(t){var e={},r={},n=[],i=0;function a(e){n.push(t[e]),i++}function o(t,e,i){var a=r[t];return delete r[t],r[e]=a,n[a].geometry[0].pop(),n[a].geometry[0]=n[a].geometry[0].concat(i[0]),a}function s(t,r,i){var a=e[r];return delete e[r],e[t]=a,n[a].geometry[0].shift(),n[a].geometry[0]=i[0].concat(n[a].geometry[0]),a}function l(t,e,r){var n=r?e[0][e[0].length-1]:e[0][0];return t+&quot;:&quot;+n.x+&quot;:&quot;+n.y}for(var c=0;c&lt;t.length;c++){var u=t[c],f=u.geometry,h=u.text?u.text.toString():null;if(h){var p=l(h,f),d=l(h,f,!0);if(p in r&amp;&amp;d in e&amp;&amp;r[p]!==e[d]){var m=s(p,d,f),g=o(p,d,n[m].geometry);delete e[p],delete r[d],r[l(h,n[g].geometry,!0)]=g,n[m].geometry=null}else p in r?o(p,d,f):d in e?s(p,d,f):(a(c),e[p]=i-1,r[d]=i-1)}else a(c)}return n.filter((function(t){return t.geometry}))}(this.features)),this.sortFeaturesByKey&amp;&amp;this.features.sort((function(t,e){return t.sortKey-e.sortKey}))}},Mc.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,r),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,r))},Mc.prototype.isEmpty=function(){return 0===this.symbolInstances.length&amp;&amp;!this.hasRTLText},Mc.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},Mc.prototype.upload=function(t){!this.uploaded&amp;&amp;this.hasDebugData()&amp;&amp;(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},Mc.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},Mc.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&amp;&amp;this.destroyDebugData()},Mc.prototype.addToLineVertexArray=function(t,e){var r=this.lineVertexArray.length;if(void 0!==t.segment){for(var n=t.dist(e[t.segment+1]),i=t.dist(e[t.segment]),a={},o=t.segment+1;o&lt;e.length;o++)a[o]={x:e[o].x,y:e[o].y,tileUnitDistanceFromAnchor:n},o&lt;e.length-1&amp;&amp;(n+=e[o+1].dist(e[o]));for(var s=t.segment||0;s&gt;=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s&gt;0&amp;&amp;(i+=e[s-1].dist(e[s]));for(var l=0;l&lt;e.length;l++){var c=a[l];this.lineVertexArray.emplaceBack(c.x,c.y,c.tileUnitDistanceFromAnchor)}}return{lineStartIndex:r,lineLength:this.lineVertexArray.length-r}},Mc.prototype.addSymbols=function(t,e,r,n,i,a,o,s,l,c,u,f){for(var h=t.indexArray,p=t.layoutVertexArray,d=t.segments.prepareSegment(4*e.length,p,h,a.sortKey),m=this.glyphOffsetArray.length,g=d.vertexLength,v=this.allowVerticalPlacement&amp;&amp;o===Cl.vertical?Math.PI/2:0,y=a.text&amp;&amp;a.text.sections,x=0;x&lt;e.length;x++){var b=e[x],_=b.tl,w=b.tr,T=b.bl,k=b.br,A=b.tex,M=b.pixelOffsetTL,S=b.pixelOffsetBR,E=b.minFontScaleX,L=b.minFontScaleY,C=b.glyphOffset,P=b.isSDF,I=b.sectionIndex,O=d.vertexLength,z=C[1];_c(p,s.x,s.y,_.x,z+_.y,A.x,A.y,r,P,M.x,M.y,E,L),_c(p,s.x,s.y,w.x,z+w.y,A.x+A.w,A.y,r,P,S.x,M.y,E,L),_c(p,s.x,s.y,T.x,z+T.y,A.x,A.y+A.h,r,P,M.x,S.y,E,L),_c(p,s.x,s.y,k.x,z+k.y,A.x+A.w,A.y+A.h,r,P,S.x,S.y,E,L),wc(t.dynamicLayoutVertexArray,s,v),h.emplaceBack(O,O+1,O+2),h.emplaceBack(O+1,O+2,O+3),d.vertexLength+=4,d.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(C[0]),x!==e.length-1&amp;&amp;I===e[x+1].sectionIndex||t.programConfigurations.populatePaintArrays(p.length,a,a.index,{},f,y&amp;&amp;y[I])}t.placedSymbolArray.emplaceBack(s.x,s.y,m,this.glyphOffsetArray.length-m,g,l,c,s.segment,r?r[0]:0,r?r[1]:0,n[0],n[1],o,0,!1,0,u)},Mc.prototype._addCollisionDebugVertex=function(t,e,r,n,i,a){return e.emplaceBack(0,0),t.emplaceBack(r.x,r.y,n,i,Math.round(a.x),Math.round(a.y))},Mc.prototype.addCollisionDebugVertices=function(t,e,r,n,a,o,s){var l=a.segments.prepareSegment(4,a.layoutVertexArray,a.indexArray),c=l.vertexLength,u=a.layoutVertexArray,f=a.collisionVertexArray,h=s.anchorX,p=s.anchorY;this._addCollisionDebugVertex(u,f,o,h,p,new i(t,e)),this._addCollisionDebugVertex(u,f,o,h,p,new i(r,e)),this._addCollisionDebugVertex(u,f,o,h,p,new i(r,n)),this._addCollisionDebugVertex(u,f,o,h,p,new i(t,n)),l.vertexLength+=4;var d=a.indexArray;d.emplaceBack(c,c+1),d.emplaceBack(c+1,c+2),d.emplaceBack(c+2,c+3),d.emplaceBack(c+3,c),l.primitiveLength+=4},Mc.prototype.addDebugCollisionBoxes=function(t,e,r,n){for(var i=t;i&lt;e;i++){var a=this.collisionBoxArray.get(i),o=a.x1,s=a.y1,l=a.x2,c=a.y2;this.addCollisionDebugVertices(o,s,l,c,n?this.textCollisionBox:this.iconCollisionBox,a.anchorPoint,r)}},Mc.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&amp;&amp;this.destroyDebugData(),this.textCollisionBox=new Ac(Hi,$s.members,Qi),this.iconCollisionBox=new Ac(Hi,$s.members,Qi);for(var t=0;t&lt;this.symbolInstances.length;t++){var e=this.symbolInstances.get(t);this.addDebugCollisionBoxes(e.textBoxStartIndex,e.textBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.verticalTextBoxStartIndex,e.verticalTextBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.iconBoxStartIndex,e.iconBoxEndIndex,e,!1),this.addDebugCollisionBoxes(e.verticalIconBoxStartIndex,e.verticalIconBoxEndIndex,e,!1)}},Mc.prototype._deserializeCollisionBoxesForSymbol=function(t,e,r,n,i,a,o,s,l){for(var c={},u=e;u&lt;r;u++){var f=t.get(u);c.textBox={x1:f.x1,y1:f.y1,x2:f.x2,y2:f.y2,anchorPointX:f.anchorPointX,anchorPointY:f.anchorPointY},c.textFeatureIndex=f.featureIndex;break}for(var h=n;h&lt;i;h++){var p=t.get(h);c.verticalTextBox={x1:p.x1,y1:p.y1,x2:p.x2,y2:p.y2,anchorPointX:p.anchorPointX,anchorPointY:p.anchorPointY},c.verticalTextFeatureIndex=p.featureIndex;break}for(var d=a;d&lt;o;d++){var m=t.get(d);c.iconBox={x1:m.x1,y1:m.y1,x2:m.x2,y2:m.y2,anchorPointX:m.anchorPointX,anchorPointY:m.anchorPointY},c.iconFeatureIndex=m.featureIndex;break}for(var g=s;g&lt;l;g++){var v=t.get(g);c.verticalIconBox={x1:v.x1,y1:v.y1,x2:v.x2,y2:v.y2,anchorPointX:v.anchorPointX,anchorPointY:v.anchorPointY},c.verticalIconFeatureIndex=v.featureIndex;break}return c},Mc.prototype.deserializeCollisionBoxes=function(t){this.collisionArrays=[];for(var e=0;e&lt;this.symbolInstances.length;e++){var r=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,r.textBoxStartIndex,r.textBoxEndIndex,r.verticalTextBoxStartIndex,r.verticalTextBoxEndIndex,r.iconBoxStartIndex,r.iconBoxEndIndex,r.verticalIconBoxStartIndex,r.verticalIconBoxEndIndex))}},Mc.prototype.hasTextData=function(){return this.text.segments.get().length&gt;0},Mc.prototype.hasIconData=function(){return this.icon.segments.get().length&gt;0},Mc.prototype.hasDebugData=function(){return this.textCollisionBox&amp;&amp;this.iconCollisionBox},Mc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&amp;&amp;this.textCollisionBox.segments.get().length&gt;0},Mc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&amp;&amp;this.iconCollisionBox.segments.get().length&gt;0},Mc.prototype.addIndicesForPlacedSymbol=function(t,e){for(var r=t.placedSymbolArray.get(e),n=r.vertexStartIndex+4*r.numGlyphs,i=r.vertexStartIndex;i&lt;n;i+=4)t.indexArray.emplaceBack(i,i+1,i+2),t.indexArray.emplaceBack(i+1,i+2,i+3)},Mc.prototype.getSortedSymbolIndexes=function(t){if(this.sortedAngle===t&amp;&amp;void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var e=Math.sin(t),r=Math.cos(t),n=[],i=[],a=[],o=0;o&lt;this.symbolInstances.length;++o){a.push(o);var s=this.symbolInstances.get(o);n.push(0|Math.round(e*s.anchorX+r*s.anchorY)),i.push(s.featureIndex)}return a.sort((function(t,e){return n[t]-n[e]||i[e]-i[t]})),a},Mc.prototype.addToSortKeyRanges=function(t,e){var r=this.sortKeyRanges[this.sortKeyRanges.length-1];r&amp;&amp;r.sortKey===e?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})},Mc.prototype.sortFeatures=function(t){var e=this;if(this.sortFeaturesByY&amp;&amp;this.sortedAngle!==t&amp;&amp;!(this.text.segments.get().length&gt;1||this.icon.segments.get().length&gt;1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var r=0,n=this.symbolInstanceIndexes;r&lt;n.length;r+=1){var i=n[r],a=this.symbolInstances.get(i);this.featureSortOrder.push(a.featureIndex),[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((function(t,r,n){t&gt;=0&amp;&amp;n.indexOf(t)===r&amp;&amp;e.addIndicesForPlacedSymbol(e.text,t)})),a.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.text,a.verticalPlacedTextSymbolIndex),a.placedIconSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.icon,a.placedIconSymbolIndex),a.verticalPlacedIconSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.icon,a.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&amp;&amp;this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&amp;&amp;this.icon.indexBuffer.updateData(this.icon.indexArray)}},Nn(&quot;SymbolBucket&quot;,Mc,{omit:[&quot;layers&quot;,&quot;collisionBoxArray&quot;,&quot;features&quot;,&quot;compareText&quot;]}),Mc.MAX_GLYPHS=65535,Mc.addDynamicAttributes=wc;var Sc=new Si({&quot;symbol-placement&quot;:new wi(Lt.layout_symbol[&quot;symbol-placement&quot;]),&quot;symbol-spacing&quot;:new wi(Lt.layout_symbol[&quot;symbol-spacing&quot;]),&quot;symbol-avoid-edges&quot;:new wi(Lt.layout_symbol[&quot;symbol-avoid-edges&quot;]),&quot;symbol-sort-key&quot;:new Ti(Lt.layout_symbol[&quot;symbol-sort-key&quot;]),&quot;symbol-z-order&quot;:new wi(Lt.layout_symbol[&quot;symbol-z-order&quot;]),&quot;icon-allow-overlap&quot;:new wi(Lt.layout_symbol[&quot;icon-allow-overlap&quot;]),&quot;icon-ignore-placement&quot;:new wi(Lt.layout_symbol[&quot;icon-ignore-placement&quot;]),&quot;icon-optional&quot;:new wi(Lt.layout_symbol[&quot;icon-optional&quot;]),&quot;icon-rotation-alignment&quot;:new wi(Lt.layout_symbol[&quot;icon-rotation-alignment&quot;]),&quot;icon-size&quot;:new Ti(Lt.layout_symbol[&quot;icon-size&quot;]),&quot;icon-text-fit&quot;:new wi(Lt.layout_symbol[&quot;icon-text-fit&quot;]),&quot;icon-text-fit-padding&quot;:new wi(Lt.layout_symbol[&quot;icon-text-fit-padding&quot;]),&quot;icon-image&quot;:new Ti(Lt.layout_symbol[&quot;icon-image&quot;]),&quot;icon-rotate&quot;:new Ti(Lt.layout_symbol[&quot;icon-rotate&quot;]),&quot;icon-padding&quot;:new wi(Lt.layout_symbol[&quot;icon-padding&quot;]),&quot;icon-keep-upright&quot;:new wi(Lt.layout_symbol[&quot;icon-keep-upright&quot;]),&quot;icon-offset&quot;:new Ti(Lt.layout_symbol[&quot;icon-offset&quot;]),&quot;icon-anchor&quot;:new Ti(Lt.layout_symbol[&quot;icon-anchor&quot;]),&quot;icon-pitch-alignment&quot;:new wi(Lt.layout_symbol[&quot;icon-pitch-alignment&quot;]),&quot;text-pitch-alignment&quot;:new wi(Lt.layout_symbol[&quot;text-pitch-alignment&quot;]),&quot;text-rotation-alignment&quot;:new wi(Lt.layout_symbol[&quot;text-rotation-alignment&quot;]),&quot;text-field&quot;:new Ti(Lt.layout_symbol[&quot;text-field&quot;]),&quot;text-font&quot;:new Ti(Lt.layout_symbol[&quot;text-font&quot;]),&quot;text-size&quot;:new Ti(Lt.layout_symbol[&quot;text-size&quot;]),&quot;text-max-width&quot;:new Ti(Lt.layout_symbol[&quot;text-max-width&quot;]),&quot;text-line-height&quot;:new wi(Lt.layout_symbol[&quot;text-line-height&quot;]),&quot;text-letter-spacing&quot;:new Ti(Lt.layout_symbol[&quot;text-letter-spacing&quot;]),&quot;text-justify&quot;:new Ti(Lt.layout_symbol[&quot;text-justify&quot;]),&quot;text-radial-offset&quot;:new Ti(Lt.layout_symbol[&quot;text-radial-offset&quot;]),&quot;text-variable-anchor&quot;:new wi(Lt.layout_symbol[&quot;text-variable-anchor&quot;]),&quot;text-anchor&quot;:new Ti(Lt.layout_symbol[&quot;text-anchor&quot;]),&quot;text-max-angle&quot;:new wi(Lt.layout_symbol[&quot;text-max-angle&quot;]),&quot;text-writing-mode&quot;:new wi(Lt.layout_symbol[&quot;text-writing-mode&quot;]),&quot;text-rotate&quot;:new Ti(Lt.layout_symbol[&quot;text-rotate&quot;]),&quot;text-padding&quot;:new wi(Lt.layout_symbol[&quot;text-padding&quot;]),&quot;text-keep-upright&quot;:new wi(Lt.layout_symbol[&quot;text-keep-upright&quot;]),&quot;text-transform&quot;:new Ti(Lt.layout_symbol[&quot;text-transform&quot;]),&quot;text-offset&quot;:new Ti(Lt.layout_symbol[&quot;text-offset&quot;]),&quot;text-allow-overlap&quot;:new wi(Lt.layout_symbol[&quot;text-allow-overlap&quot;]),&quot;text-ignore-placement&quot;:new wi(Lt.layout_symbol[&quot;text-ignore-placement&quot;]),&quot;text-optional&quot;:new wi(Lt.layout_symbol[&quot;text-optional&quot;])}),Ec={paint:new Si({&quot;icon-opacity&quot;:new Ti(Lt.paint_symbol[&quot;icon-opacity&quot;]),&quot;icon-color&quot;:new Ti(Lt.paint_symbol[&quot;icon-color&quot;]),&quot;icon-halo-color&quot;:new Ti(Lt.paint_symbol[&quot;icon-halo-color&quot;]),&quot;icon-halo-width&quot;:new Ti(Lt.paint_symbol[&quot;icon-halo-width&quot;]),&quot;icon-halo-blur&quot;:new Ti(Lt.paint_symbol[&quot;icon-halo-blur&quot;]),&quot;icon-translate&quot;:new wi(Lt.paint_symbol[&quot;icon-translate&quot;]),&quot;icon-translate-anchor&quot;:new wi(Lt.paint_symbol[&quot;icon-translate-anchor&quot;]),&quot;text-opacity&quot;:new Ti(Lt.paint_symbol[&quot;text-opacity&quot;]),&quot;text-color&quot;:new Ti(Lt.paint_symbol[&quot;text-color&quot;],{runtimeType:Ut,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),&quot;text-halo-color&quot;:new Ti(Lt.paint_symbol[&quot;text-halo-color&quot;]),&quot;text-halo-width&quot;:new Ti(Lt.paint_symbol[&quot;text-halo-width&quot;]),&quot;text-halo-blur&quot;:new Ti(Lt.paint_symbol[&quot;text-halo-blur&quot;]),&quot;text-translate&quot;:new wi(Lt.paint_symbol[&quot;text-translate&quot;]),&quot;text-translate-anchor&quot;:new wi(Lt.paint_symbol[&quot;text-translate-anchor&quot;])}),layout:Sc},Lc=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Ft,this.defaultValue=t};Lc.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&amp;&amp;e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&amp;&amp;t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},Lc.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},Lc.prototype.outputDefined=function(){return!1},Lc.prototype.serialize=function(){return null},Nn(&quot;FormatSectionOverride&quot;,Lc,{omit:[&quot;defaultValue&quot;]});var Cc=function(t){function e(e){t.call(this,e,Ec)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.recalculate=function(e,r){if(t.prototype.recalculate.call(this,e,r),&quot;auto&quot;===this.layout.get(&quot;icon-rotation-alignment&quot;)&amp;&amp;(&quot;point&quot;!==this.layout.get(&quot;symbol-placement&quot;)?this.layout._values[&quot;icon-rotation-alignment&quot;]=&quot;map&quot;:this.layout._values[&quot;icon-rotation-alignment&quot;]=&quot;viewport&quot;),&quot;auto&quot;===this.layout.get(&quot;text-rotation-alignment&quot;)&amp;&amp;(&quot;point&quot;!==this.layout.get(&quot;symbol-placement&quot;)?this.layout._values[&quot;text-rotation-alignment&quot;]=&quot;map&quot;:this.layout._values[&quot;text-rotation-alignment&quot;]=&quot;viewport&quot;),&quot;auto&quot;===this.layout.get(&quot;text-pitch-alignment&quot;)&amp;&amp;(this.layout._values[&quot;text-pitch-alignment&quot;]=this.layout.get(&quot;text-rotation-alignment&quot;)),&quot;auto&quot;===this.layout.get(&quot;icon-pitch-alignment&quot;)&amp;&amp;(this.layout._values[&quot;icon-pitch-alignment&quot;]=this.layout.get(&quot;icon-rotation-alignment&quot;)),&quot;point&quot;===this.layout.get(&quot;symbol-placement&quot;)){var n=this.layout.get(&quot;text-writing-mode&quot;);if(n){for(var i=[],a=0,o=n;a&lt;o.length;a+=1){var s=o[a];i.indexOf(s)&lt;0&amp;&amp;i.push(s)}this.layout._values[&quot;text-writing-mode&quot;]=i}else this.layout._values[&quot;text-writing-mode&quot;]=[&quot;horizontal&quot;]}this._setPaintOverrides()},e.prototype.getValueAndResolveTokens=function(t,e,r,n){var i=this.layout.get(t).evaluate(e,{},r,n),a=this._unevaluatedLayout._values[t];return a.isDataDriven()||Yr(a.value)||!i?i:function(t,e){return e.replace(/{([^{}]+)}/g,(function(e,r){return r in t?String(t[r]):&quot;&quot;}))}(e.properties,i)},e.prototype.createBucket=function(t){return new Mc(t)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype._setPaintOverrides=function(){for(var t=0,r=Ec.paint.overridableProperties;t&lt;r.length;t+=1){var n=r[t];if(e.hasPaintOverride(this.layout,n)){var i=this.paint.get(n),a=new Lc(i),o=new Gr(a,i.property.specification),s=null;s=&quot;constant&quot;===i.value.kind||&quot;source&quot;===i.value.kind?new Xr(&quot;source&quot;,o):new Zr(&quot;composite&quot;,o,i.value.zoomStops,i.value._interpolationType),this.paint._values[n]=new bi(i.property,s,i.parameters)}}},e.prototype._handleOverridablePaintPropertyUpdate=function(t,r,n){return!(!this.layout||r.isDataDriven()||n.isDataDriven())&amp;&amp;e.hasPaintOverride(this.layout,t)},e.hasPaintOverride=function(t,e){var r=t.get(&quot;text-field&quot;),n=Ec.paint.properties[e],i=!1,a=function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var a=r[e];if(n.overrides&amp;&amp;n.overrides.hasOverride(a))return void(i=!0)}};if(&quot;constant&quot;===r.value.kind&amp;&amp;r.value.value instanceof ne)a(r.value.value.sections);else if(&quot;source&quot;===r.value.kind){var o=function(t){if(!i)if(t instanceof ce&amp;&amp;se(t.value)===Gt){var e=t.value;a(e.sections)}else t instanceof pe?a(t.sections):t.eachChild(o)},s=r.value;s._styleExpression&amp;&amp;o(s._styleExpression.expression)}return i},e}(Ei),Pc={paint:new Si({&quot;background-color&quot;:new wi(Lt.paint_background[&quot;background-color&quot;]),&quot;background-pattern&quot;:new Ai(Lt.paint_background[&quot;background-pattern&quot;]),&quot;background-opacity&quot;:new wi(Lt.paint_background[&quot;background-opacity&quot;])})},Ic=function(t){function e(e){t.call(this,e,Pc)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(Ei),Oc={paint:new Si({&quot;raster-opacity&quot;:new wi(Lt.paint_raster[&quot;raster-opacity&quot;]),&quot;raster-hue-rotate&quot;:new wi(Lt.paint_raster[&quot;raster-hue-rotate&quot;]),&quot;raster-brightness-min&quot;:new wi(Lt.paint_raster[&quot;raster-brightness-min&quot;]),&quot;raster-brightness-max&quot;:new wi(Lt.paint_raster[&quot;raster-brightness-max&quot;]),&quot;raster-saturation&quot;:new wi(Lt.paint_raster[&quot;raster-saturation&quot;]),&quot;raster-contrast&quot;:new wi(Lt.paint_raster[&quot;raster-contrast&quot;]),&quot;raster-resampling&quot;:new wi(Lt.paint_raster[&quot;raster-resampling&quot;]),&quot;raster-fade-duration&quot;:new wi(Lt.paint_raster[&quot;raster-fade-duration&quot;])})},zc=function(t){function e(e){t.call(this,e,Oc)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(Ei);var Dc=function(t){function e(e){t.call(this,e,{}),this.implementation=e}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.is3D=function(){return&quot;3d&quot;===this.implementation.renderingMode},e.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},e.prototype.recalculate=function(){},e.prototype.updateTransitions=function(){},e.prototype.hasTransition=function(){},e.prototype.serialize=function(){},e.prototype.onAdd=function(t){this.implementation.onAdd&amp;&amp;this.implementation.onAdd(t,t.painter.context.gl)},e.prototype.onRemove=function(t){this.implementation.onRemove&amp;&amp;this.implementation.onRemove(t,t.painter.context.gl)},e}(Ei),Rc={circle:_o,heatmap:Po,hillshade:Oo,fill:xs,&quot;fill-extrusion&quot;:Fs,line:Xs,symbol:Cc,background:Ic,raster:zc};var Fc=self.HTMLImageElement,Bc=self.HTMLCanvasElement,Nc=self.HTMLVideoElement,jc=self.ImageData,Uc=self.ImageBitmap,Vc=function(t,e,r,n){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this.update(e,n)};Vc.prototype.update=function(t,e,r){var n=t.width,i=t.height,a=!(this.size&amp;&amp;this.size[0]===n&amp;&amp;this.size[1]===i||r),o=this.context,s=o.gl;if(this.useMipmap=Boolean(e&amp;&amp;e.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1),o.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&amp;&amp;(!e||!1!==e.premultiply)),a)this.size=[n,i],t instanceof Fc||t instanceof Bc||t instanceof Nc||t instanceof jc||Uc&amp;&amp;t instanceof Uc?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,t):s.texImage2D(s.TEXTURE_2D,0,this.format,n,i,0,this.format,s.UNSIGNED_BYTE,t.data);else{var l=r||{x:0,y:0},c=l.x,u=l.y;t instanceof Fc||t instanceof Bc||t instanceof Nc||t instanceof jc||Uc&amp;&amp;t instanceof Uc?s.texSubImage2D(s.TEXTURE_2D,0,c,u,s.RGBA,s.UNSIGNED_BYTE,t):s.texSubImage2D(s.TEXTURE_2D,0,c,u,n,i,s.RGBA,s.UNSIGNED_BYTE,t.data)}this.useMipmap&amp;&amp;this.isSizePowerOfTwo()&amp;&amp;s.generateMipmap(s.TEXTURE_2D)},Vc.prototype.bind=function(t,e,r){var n=this.context.gl;n.bindTexture(n.TEXTURE_2D,this.texture),r!==n.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(r=n.LINEAR),t!==this.filter&amp;&amp;(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,r||t),this.filter=t),e!==this.wrap&amp;&amp;(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)},Vc.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&amp;&amp;Math.log(this.size[0])/Math.LN2%1==0},Vc.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var Hc=function(t){var e=this;this._callback=t,this._triggered=!1,&quot;undefined&quot;!=typeof MessageChannel&amp;&amp;(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){e._triggered=!1,e._callback()})};Hc.prototype.trigger=function(){var t=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((function(){t._triggered=!1,t._callback()}),0))},Hc.prototype.remove=function(){delete this._channel,this._callback=function(){}};var qc=function(t,e,r){this.target=t,this.parent=e,this.mapId=r,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},m([&quot;receive&quot;,&quot;process&quot;],this),this.invoker=new Hc(this.process),this.target.addEventListener(&quot;message&quot;,this.receive,!1),this.globalScope=k()?t:self};function Gc(t,e,r){var n=2*Math.PI*6378137/256/Math.pow(2,r);return[t*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}qc.prototype.send=function(t,e,r,n,i){var a=this;void 0===i&amp;&amp;(i=!1);var o=Math.round(1e18*Math.random()).toString(36).substring(0,10);r&amp;&amp;(this.callbacks[o]=r);var s=S(this.globalScope)?void 0:[];return this.target.postMessage({id:o,type:t,hasCallback:!!r,targetMapId:n,mustQueue:i,sourceMapId:this.mapId,data:Hn(e,s)},s),{cancel:function(){r&amp;&amp;delete a.callbacks[o],a.target.postMessage({id:o,type:&quot;&lt;cancel&gt;&quot;,targetMapId:n,sourceMapId:a.mapId})}}},qc.prototype.receive=function(t){var e=t.data,r=e.id;if(r&amp;&amp;(!e.targetMapId||this.mapId===e.targetMapId))if(&quot;&lt;cancel&gt;&quot;===e.type){delete this.tasks[r];var n=this.cancelCallbacks[r];delete this.cancelCallbacks[r],n&amp;&amp;n()}else k()||e.mustQueue?(this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger()):this.processTask(r,e)},qc.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&amp;&amp;this.invoker.trigger(),e&amp;&amp;this.processTask(t,e)}},qc.prototype.processTask=function(t,e){var r=this;if(&quot;&lt;response&gt;&quot;===e.type){var n=this.callbacks[t];delete this.callbacks[t],n&amp;&amp;(e.error?n(qn(e.error)):n(null,qn(e.data)))}else{var i=!1,a=S(this.globalScope)?void 0:[],o=e.hasCallback?function(e,n){i=!0,delete r.cancelCallbacks[t],r.target.postMessage({id:t,type:&quot;&lt;response&gt;&quot;,sourceMapId:r.mapId,error:e?Hn(e):null,data:Hn(n,a)},a)}:function(t){i=!0},s=null,l=qn(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,l,o);else if(this.parent.getWorkerSource){var c=e.type.split(&quot;.&quot;);s=this.parent.getWorkerSource(e.sourceMapId,c[0],l.source)[c[1]](l,o)}else o(new Error(&quot;Could not find function &quot;+e.type));!i&amp;&amp;s&amp;&amp;s.cancel&amp;&amp;(this.cancelCallbacks[t]=s.cancel)}},qc.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener(&quot;message&quot;,this.receive,!1)};var Yc=function(t,e){t&amp;&amp;(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};Yc.prototype.setNorthEast=function(t){return this._ne=t instanceof Wc?new Wc(t.lng,t.lat):Wc.convert(t),this},Yc.prototype.setSouthWest=function(t){return this._sw=t instanceof Wc?new Wc(t.lng,t.lat):Wc.convert(t),this},Yc.prototype.extend=function(t){var e,r,n=this._sw,i=this._ne;if(t instanceof Wc)e=t,r=t;else{if(!(t instanceof Yc)){if(Array.isArray(t)){if(4===t.length||t.every(Array.isArray)){var a=t;return this.extend(Yc.convert(a))}var o=t;return this.extend(Wc.convert(o))}return this}if(e=t._sw,r=t._ne,!e||!r)return this}return n||i?(n.lng=Math.min(e.lng,n.lng),n.lat=Math.min(e.lat,n.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this._sw=new Wc(e.lng,e.lat),this._ne=new Wc(r.lng,r.lat)),this},Yc.prototype.getCenter=function(){return new Wc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Yc.prototype.getSouthWest=function(){return this._sw},Yc.prototype.getNorthEast=function(){return this._ne},Yc.prototype.getNorthWest=function(){return new Wc(this.getWest(),this.getNorth())},Yc.prototype.getSouthEast=function(){return new Wc(this.getEast(),this.getSouth())},Yc.prototype.getWest=function(){return this._sw.lng},Yc.prototype.getSouth=function(){return this._sw.lat},Yc.prototype.getEast=function(){return this._ne.lng},Yc.prototype.getNorth=function(){return this._ne.lat},Yc.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Yc.prototype.toString=function(){return&quot;LngLatBounds(&quot;+this._sw.toString()+&quot;, &quot;+this._ne.toString()+&quot;)&quot;},Yc.prototype.isEmpty=function(){return!(this._sw&amp;&amp;this._ne)},Yc.prototype.contains=function(t){var e=Wc.convert(t),r=e.lng,n=e.lat,i=this._sw.lat&lt;=n&amp;&amp;n&lt;=this._ne.lat,a=this._sw.lng&lt;=r&amp;&amp;r&lt;=this._ne.lng;return this._sw.lng&gt;this._ne.lng&amp;&amp;(a=this._sw.lng&gt;=r&amp;&amp;r&gt;=this._ne.lng),i&amp;&amp;a},Yc.convert=function(t){return!t||t instanceof Yc?t:new Yc(t)};var Wc=function(t,e){if(isNaN(t)||isNaN(e))throw new Error(&quot;Invalid LngLat object: (&quot;+t+&quot;, &quot;+e+&quot;)&quot;);if(this.lng=+t,this.lat=+e,this.lat&gt;90||this.lat&lt;-90)throw new Error(&quot;Invalid LngLat latitude value: must be between -90 and 90&quot;)};Wc.prototype.wrap=function(){return new Wc(c(this.lng,-180,180),this.lat)},Wc.prototype.toArray=function(){return[this.lng,this.lat]},Wc.prototype.toString=function(){return&quot;LngLat(&quot;+this.lng+&quot;, &quot;+this.lat+&quot;)&quot;},Wc.prototype.distanceTo=function(t){var e=Math.PI/180,r=this.lat*e,n=t.lat*e,i=Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos((t.lng-this.lng)*e);return 6371008.8*Math.acos(Math.min(i,1))},Wc.prototype.toBounds=function(t){void 0===t&amp;&amp;(t=0);var e=360*t/40075017,r=e/Math.cos(Math.PI/180*this.lat);return new Yc(new Wc(this.lng-r,this.lat-e),new Wc(this.lng+r,this.lat+e))},Wc.convert=function(t){if(t instanceof Wc)return t;if(Array.isArray(t)&amp;&amp;(2===t.length||3===t.length))return new Wc(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;null!==t)return new Wc(Number(&quot;lng&quot;in t?t.lng:t.lon),Number(t.lat));throw new Error(&quot;`LngLatLike` argument must be specified as a LngLat instance, an object {lng: &lt;lng&gt;, lat: &lt;lat&gt;}, an object {lon: &lt;lng&gt;, lat: &lt;lat&gt;}, or an array of [&lt;lng&gt;, &lt;lat&gt;]&quot;)};var Xc=2*Math.PI*6371008.8;function Zc(t){return Xc*Math.cos(t*Math.PI/180)}function Jc(t){return(180+t)/360}function Kc(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Qc(t,e){return t/Zc(e)}function $c(t){var e=180-360*t;return 360/Math.PI*Math.atan(Math.exp(e*Math.PI/180))-90}var tu=function(t,e,r){void 0===r&amp;&amp;(r=0),this.x=+t,this.y=+e,this.z=+r};tu.fromLngLat=function(t,e){void 0===e&amp;&amp;(e=0);var r=Wc.convert(t);return new tu(Jc(r.lng),Kc(r.lat),Qc(e,r.lat))},tu.prototype.toLngLat=function(){return new Wc(360*this.x-180,$c(this.y))},tu.prototype.toAltitude=function(){return t=this.z,e=this.y,t*Zc($c(e));var t,e},tu.prototype.meterInMercatorCoordinateUnits=function(){return 1/Xc*(t=$c(this.y),1/Math.cos(t*Math.PI/180));var t};var eu=function(t,e,r){this.z=t,this.x=e,this.y=r,this.key=iu(0,t,t,e,r)};eu.prototype.equals=function(t){return this.z===t.z&amp;&amp;this.x===t.x&amp;&amp;this.y===t.y},eu.prototype.url=function(t,e){var r,n,i,a,o,s=(r=this.x,n=this.y,i=this.z,a=Gc(256*r,256*(n=Math.pow(2,i)-n-1),i),o=Gc(256*(r+1),256*(n+1),i),a[0]+&quot;,&quot;+a[1]+&quot;,&quot;+o[0]+&quot;,&quot;+o[1]),l=function(t,e,r){for(var n,i=&quot;&quot;,a=t;a&gt;0;a--)i+=(e&amp;(n=1&lt;&lt;a-1)?1:0)+(r&amp;n?2:0);return i}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(&quot;{prefix}&quot;,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(&quot;{z}&quot;,String(this.z)).replace(&quot;{x}&quot;,String(this.x)).replace(&quot;{y}&quot;,String(&quot;tms&quot;===e?Math.pow(2,this.z)-this.y-1:this.y)).replace(&quot;{quadkey}&quot;,l).replace(&quot;{bbox-epsg-3857}&quot;,s)},eu.prototype.getTilePoint=function(t){var e=Math.pow(2,this.z);return new i(8192*(t.x*e-this.x),8192*(t.y*e-this.y))},eu.prototype.toString=function(){return this.z+&quot;/&quot;+this.x+&quot;/&quot;+this.y};var ru=function(t,e){this.wrap=t,this.canonical=e,this.key=iu(t,e.z,e.z,e.x,e.y)},nu=function(t,e,r,n,i){this.overscaledZ=t,this.wrap=e,this.canonical=new eu(r,+n,+i),this.key=iu(e,t,r,n,i)};function iu(t,e,r,n,i){(t*=2)&lt;0&amp;&amp;(t=-1*t-1);var a=1&lt;&lt;r;return(a*a*t+a*i+n).toString(36)+r.toString(36)+e.toString(36)}nu.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&amp;&amp;this.wrap===t.wrap&amp;&amp;this.canonical.equals(t.canonical)},nu.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t&gt;this.canonical.z?new nu(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new nu(t,this.wrap,t,this.canonical.x&gt;&gt;e,this.canonical.y&gt;&gt;e)},nu.prototype.calculateScaledKey=function(t,e){var r=this.canonical.z-t;return t&gt;this.canonical.z?iu(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):iu(this.wrap*+e,t,t,this.canonical.x&gt;&gt;r,this.canonical.y&gt;&gt;r)},nu.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ&lt;this.overscaledZ&amp;&amp;t.canonical.x===this.canonical.x&gt;&gt;e&amp;&amp;t.canonical.y===this.canonical.y&gt;&gt;e},nu.prototype.children=function(t){if(this.overscaledZ&gt;=t)return[new nu(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,r=2*this.canonical.x,n=2*this.canonical.y;return[new nu(e,this.wrap,e,r,n),new nu(e,this.wrap,e,r+1,n),new nu(e,this.wrap,e,r,n+1),new nu(e,this.wrap,e,r+1,n+1)]},nu.prototype.isLessThan=function(t){return this.wrap&lt;t.wrap||!(this.wrap&gt;t.wrap)&amp;&amp;(this.overscaledZ&lt;t.overscaledZ||!(this.overscaledZ&gt;t.overscaledZ)&amp;&amp;(this.canonical.x&lt;t.canonical.x||!(this.canonical.x&gt;t.canonical.x)&amp;&amp;this.canonical.y&lt;t.canonical.y))},nu.prototype.wrapped=function(){return new nu(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},nu.prototype.unwrapTo=function(t){return new nu(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},nu.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},nu.prototype.toUnwrapped=function(){return new ru(this.wrap,this.canonical)},nu.prototype.toString=function(){return this.overscaledZ+&quot;/&quot;+this.canonical.x+&quot;/&quot;+this.canonical.y},nu.prototype.getTilePoint=function(t){return this.canonical.getTilePoint(new tu(t.x-this.wrap,t.y))},Nn(&quot;CanonicalTileID&quot;,eu),Nn(&quot;OverscaledTileID&quot;,nu,{omit:[&quot;posMatrix&quot;]});var au=function(t,e,r){if(this.uid=t,e.height!==e.width)throw new RangeError(&quot;DEM tiles must be square&quot;);if(r&amp;&amp;&quot;mapbox&quot;!==r&amp;&amp;&quot;terrarium&quot;!==r)return _('&quot;'+r+'&quot; is not a valid encoding type. Valid types include &quot;mapbox&quot; and &quot;terrarium&quot;.');this.stride=e.height;var n=this.dim=e.height-2;this.data=new Uint32Array(e.data.buffer),this.encoding=r||&quot;mapbox&quot;;for(var i=0;i&lt;n;i++)this.data[this._idx(-1,i)]=this.data[this._idx(0,i)],this.data[this._idx(n,i)]=this.data[this._idx(n-1,i)],this.data[this._idx(i,-1)]=this.data[this._idx(i,0)],this.data[this._idx(i,n)]=this.data[this._idx(i,n-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(n,-1)]=this.data[this._idx(n-1,0)],this.data[this._idx(-1,n)]=this.data[this._idx(0,n-1)],this.data[this._idx(n,n)]=this.data[this._idx(n-1,n-1)]};au.prototype.get=function(t,e){var r=new Uint8Array(this.data.buffer),n=4*this._idx(t,e);return(&quot;terrarium&quot;===this.encoding?this._unpackTerrarium:this._unpackMapbox)(r[n],r[n+1],r[n+2])},au.prototype.getUnpackVector=function(){return&quot;terrarium&quot;===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},au.prototype._idx=function(t,e){if(t&lt;-1||t&gt;=this.dim+1||e&lt;-1||e&gt;=this.dim+1)throw new RangeError(&quot;out of range source coordinates for DEM data&quot;);return(e+1)*this.stride+(t+1)},au.prototype._unpackMapbox=function(t,e,r){return(256*t*256+256*e+r)/10-1e4},au.prototype._unpackTerrarium=function(t,e,r){return 256*t+e+r/256-32768},au.prototype.getPixels=function(){return new Eo({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},au.prototype.backfillBorder=function(t,e,r){if(this.dim!==t.dim)throw new Error(&quot;dem dimension mismatch&quot;);var n=e*this.dim,i=e*this.dim+this.dim,a=r*this.dim,o=r*this.dim+this.dim;switch(e){case-1:n=i-1;break;case 1:i=n+1}switch(r){case-1:a=o-1;break;case 1:o=a+1}for(var s=-e*this.dim,l=-r*this.dim,c=a;c&lt;o;c++)for(var u=n;u&lt;i;u++)this.data[this._idx(u,c)]=t.data[this._idx(u+s,c+l)]},Nn(&quot;DEMData&quot;,au);var ou=function(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e&lt;t.length;e++){var r=t[e];this._stringToNumber[r]=e,this._numberToString[e]=r}};ou.prototype.encode=function(t){return this._stringToNumber[t]},ou.prototype.decode=function(t){return this._numberToString[t]};var su=function(t,e,r,n,i){this.type=&quot;Feature&quot;,this._vectorTileFeature=t,t._z=e,t._x=r,t._y=n,this.properties=t.properties,this.id=i},lu={geometry:{configurable:!0}};lu.geometry.get=function(){return void 0===this._geometry&amp;&amp;(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},lu.geometry.set=function(t){this._geometry=t},su.prototype.toJSON=function(){var t={geometry:this.geometry};for(var e in this)&quot;_geometry&quot;!==e&amp;&amp;&quot;_vectorTileFeature&quot;!==e&amp;&amp;(t[e]=this[e]);return t},Object.defineProperties(su.prototype,lu);var cu=function(){this.state={},this.stateChanges={},this.deletedStates={}};cu.prototype.updateState=function(t,e,r){var n=String(e);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][n]=this.stateChanges[t][n]||{},u(this.stateChanges[t][n],r),null===this.deletedStates[t])for(var i in this.deletedStates[t]={},this.state[t])i!==n&amp;&amp;(this.deletedStates[t][i]=null);else if(this.deletedStates[t]&amp;&amp;null===this.deletedStates[t][n])for(var a in this.deletedStates[t][n]={},this.state[t][n])r[a]||(this.deletedStates[t][n][a]=null);else for(var o in r){this.deletedStates[t]&amp;&amp;this.deletedStates[t][n]&amp;&amp;null===this.deletedStates[t][n][o]&amp;&amp;delete this.deletedStates[t][n][o]}},cu.prototype.removeFeatureState=function(t,e,r){if(!(null===this.deletedStates[t])){var n=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},r&amp;&amp;void 0!==e)null!==this.deletedStates[t][n]&amp;&amp;(this.deletedStates[t][n]=this.deletedStates[t][n]||{},this.deletedStates[t][n][r]=null);else if(void 0!==e){if(this.stateChanges[t]&amp;&amp;this.stateChanges[t][n])for(r in this.deletedStates[t][n]={},this.stateChanges[t][n])this.deletedStates[t][n][r]=null;else this.deletedStates[t][n]=null}else this.deletedStates[t]=null}},cu.prototype.getState=function(t,e){var r=String(e),n=this.state[t]||{},i=this.stateChanges[t]||{},a=u({},n[r],i[r]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){var o=this.deletedStates[t][e];if(null===o)return{};for(var s in o)delete a[s]}return a},cu.prototype.initializeTileState=function(t,e){t.setFeatureState(this.state,e)},cu.prototype.coalesceChanges=function(t,e){var r={};for(var n in this.stateChanges){this.state[n]=this.state[n]||{};var i={};for(var a in this.stateChanges[n])this.state[n][a]||(this.state[n][a]={}),u(this.state[n][a],this.stateChanges[n][a]),i[a]=this.state[n][a];r[n]=i}for(var o in this.deletedStates){this.state[o]=this.state[o]||{};var s={};if(null===this.deletedStates[o])for(var l in this.state[o])s[l]={},this.state[o][l]={};else for(var c in this.deletedStates[o]){if(null===this.deletedStates[o][c])this.state[o][c]={};else for(var f=0,h=Object.keys(this.deletedStates[o][c]);f&lt;h.length;f+=1){var p=h[f];delete this.state[o][c][p]}s[c]=this.state[o][c]}r[o]=r[o]||{},u(r[o],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(r).length)for(var d in t){t[d].setFeatureState(r,e)}};var uu=function(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new zn(8192,16,0),this.grid3D=new zn(8192,16,0),this.featureIndexArray=new fa,this.promoteId=e};function fu(t,e,r,n,i){return v(t,(function(t,a){var o=e instanceof _i?e.get(a):null;return o&amp;&amp;o.evaluate?o.evaluate(r,n,i):o}))}function hu(t){for(var e=1/0,r=1/0,n=-1/0,i=-1/0,a=0,o=t;a&lt;o.length;a+=1){var s=o[a];e=Math.min(e,s.x),r=Math.min(r,s.y),n=Math.max(n,s.x),i=Math.max(i,s.y)}return{minX:e,minY:r,maxX:n,maxY:i}}function pu(t,e){return e-t}uu.prototype.insert=function(t,e,r,n,i,a){var o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,n,i);for(var s=a?this.grid3D:this.grid,l=0;l&lt;e.length;l++){for(var c=e[l],u=[1/0,1/0,-1/0,-1/0],f=0;f&lt;c.length;f++){var h=c[f];u[0]=Math.min(u[0],h.x),u[1]=Math.min(u[1],h.y),u[2]=Math.max(u[2],h.x),u[3]=Math.max(u[3],h.y)}u[0]&lt;8192&amp;&amp;u[1]&lt;8192&amp;&amp;u[2]&gt;=0&amp;&amp;u[3]&gt;=0&amp;&amp;s.insert(o,u[0],u[1],u[2],u[3])}},uu.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new Ls.VectorTile(new al(this.rawTileData)).layers,this.sourceLayerCoder=new ou(this.vtLayers?Object.keys(this.vtLayers).sort():[&quot;_geojsonTileLayer&quot;])),this.vtLayers},uu.prototype.query=function(t,e,r,n){var a=this;this.loadVTLayers();for(var o=t.params||{},s=8192/t.tileSize/t.scale,l=sn(o.filter),c=t.queryGeometry,u=t.queryPadding*s,f=hu(c),h=this.grid.query(f.minX-u,f.minY-u,f.maxX+u,f.maxY+u),p=hu(t.cameraQueryGeometry),d=this.grid3D.query(p.minX-u,p.minY-u,p.maxX+u,p.maxY+u,(function(e,r,n,a){return function(t,e,r,n,a){for(var o=0,s=t;o&lt;s.length;o+=1){var l=s[o];if(e&lt;=l.x&amp;&amp;r&lt;=l.y&amp;&amp;n&gt;=l.x&amp;&amp;a&gt;=l.y)return!0}var c=[new i(e,r),new i(e,a),new i(n,a),new i(n,r)];if(t.length&gt;2)for(var u=0,f=c;u&lt;f.length;u+=1){if(io(t,f[u]))return!0}for(var h=0;h&lt;t.length-1;h++){if(ao(t[h],t[h+1],c))return!0}return!1}(t.cameraQueryGeometry,e-u,r-u,n+u,a+u)})),m=0,g=d;m&lt;g.length;m+=1){var v=g[m];h.push(v)}h.sort(pu);for(var y,x={},b=function(i){var u=h[i];if(u!==y){y=u;var f=a.featureIndexArray.get(u),p=null;a.loadMatchingFeature(x,f.bucketIndex,f.sourceLayerIndex,f.featureIndex,l,o.layers,o.availableImages,e,r,n,(function(e,r,n){return p||(p=Ya(e)),r.queryIntersectsFeature(c,e,n,p,a.z,t.transform,s,t.pixelPosMatrix)}))}},_=0;_&lt;h.length;_++)b(_);return x},uu.prototype.loadMatchingFeature=function(t,e,r,n,i,a,o,s,l,c,u){var f=this.bucketLayerIDs[e];if(!a||function(t,e){for(var r=0;r&lt;t.length;r++)if(e.indexOf(t[r])&gt;=0)return!0;return!1}(a,f)){var h=this.sourceLayerCoder.decode(r),p=this.vtLayers[h].feature(n);if(i.filter(new pi(this.tileID.overscaledZ),p))for(var d=this.getId(p,h),m=0;m&lt;f.length;m++){var g=f[m];if(!(a&amp;&amp;a.indexOf(g)&lt;0)){var v=s[g];if(v){var y={};void 0!==d&amp;&amp;c&amp;&amp;(y=c.getState(v.sourceLayer||&quot;_geojsonTileLayer&quot;,d));var x=l[g];x.paint=fu(x.paint,v.paint,p,y,o),x.layout=fu(x.layout,v.layout,p,y,o);var b=!u||u(p,v,y);if(b){var _=new su(p,this.z,this.x,this.y,d);_.layer=x;var w=t[g];void 0===w&amp;&amp;(w=t[g]=[]),w.push({featureIndex:n,feature:_,intersectionZ:b})}}}}}},uu.prototype.lookupSymbolFeatures=function(t,e,r,n,i,a,o,s){var l={};this.loadVTLayers();for(var c=sn(i),u=0,f=t;u&lt;f.length;u+=1){var h=f[u];this.loadMatchingFeature(l,r,n,h,c,a,o,s,e)}return l},uu.prototype.hasLayer=function(t){for(var e=0,r=this.bucketLayerIDs;e&lt;r.length;e+=1)for(var n=0,i=r[e];n&lt;i.length;n+=1){if(t===i[n])return!0}return!1},uu.prototype.getId=function(t,e){var r=t.id;if(this.promoteId){var n=&quot;string&quot;==typeof this.promoteId?this.promoteId:this.promoteId[e];&quot;boolean&quot;==typeof(r=t.properties[n])&amp;&amp;(r=Number(r))}return r},Nn(&quot;FeatureIndex&quot;,uu,{omit:[&quot;rawTileData&quot;,&quot;sourceLayerCoder&quot;]});var du=function(t,e){this.tileID=t,this.uid=h(),this.uses=0,this.tileSize=e,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state=&quot;loading&quot;};du.prototype.registerFadeDuration=function(t){var e=t+this.timeAdded;e&lt;R.now()||this.fadeEndTime&amp;&amp;e&lt;this.fadeEndTime||(this.fadeEndTime=e)},du.prototype.wasRequested=function(){return&quot;errored&quot;===this.state||&quot;loaded&quot;===this.state||&quot;reloading&quot;===this.state},du.prototype.loadVectorData=function(t,e,r){if(this.hasData()&amp;&amp;this.unloadVectorData(),this.state=&quot;loaded&quot;,t){for(var n in t.featureIndex&amp;&amp;(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&amp;&amp;(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,e){var r={};if(!e)return r;for(var n=function(){var t=a[i],n=t.layerIds.map((function(t){return e.getLayer(t)})).filter(Boolean);if(0!==n.length){t.layers=n,t.stateDependentLayerIds&amp;&amp;(t.stateDependentLayers=t.stateDependentLayerIds.map((function(t){return n.filter((function(e){return e.id===t}))[0]})));for(var o=0,s=n;o&lt;s.length;o+=1){var l=s[o];r[l.id]=t}}},i=0,a=t;i&lt;a.length;i+=1)n();return r}(t.buckets,e.style),this.hasSymbolBuckets=!1,this.buckets){var i=this.buckets[n];if(i instanceof Mc){if(this.hasSymbolBuckets=!0,!r)break;i.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(var a in this.buckets){var o=this.buckets[a];if(o instanceof Mc&amp;&amp;o.hasRTLText){this.hasRTLText=!0,hi.isLoading()||hi.isLoaded()||&quot;deferred&quot;!==ui()||fi();break}}for(var s in this.queryPadding=0,this.buckets){var l=this.buckets[s];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(s).queryRadius(l))}t.imageAtlas&amp;&amp;(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&amp;&amp;(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new na},du.prototype.unloadVectorData=function(){for(var t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&amp;&amp;this.imageAtlasTexture.destroy(),this.imageAtlas&amp;&amp;(this.imageAtlas=null),this.glyphAtlasTexture&amp;&amp;this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state=&quot;unloaded&quot;},du.prototype.getBucket=function(t){return this.buckets[t.id]},du.prototype.upload=function(t){for(var e in this.buckets){var r=this.buckets[e];r.uploadPending()&amp;&amp;r.upload(t)}var n=t.gl;this.imageAtlas&amp;&amp;!this.imageAtlas.uploaded&amp;&amp;(this.imageAtlasTexture=new Vc(t,this.imageAtlas.image,n.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&amp;&amp;(this.glyphAtlasTexture=new Vc(t,this.glyphAtlasImage,n.ALPHA),this.glyphAtlasImage=null)},du.prototype.prepare=function(t){this.imageAtlas&amp;&amp;this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)},du.prototype.queryRenderedFeatures=function(t,e,r,n,i,a,o,s,l,c){return this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:n,cameraQueryGeometry:i,scale:a,tileSize:this.tileSize,pixelPosMatrix:c,transform:s,params:o,queryPadding:this.queryPadding*l},t,e,r):{}},du.prototype.querySourceFeatures=function(t,e){var r=this.latestFeatureIndex;if(r&amp;&amp;r.rawTileData){var n=r.loadVTLayers(),i=e?e.sourceLayer:&quot;&quot;,a=n._geojsonTileLayer||n[i];if(a)for(var o=sn(e&amp;&amp;e.filter),s=this.tileID.canonical,l=s.z,c=s.x,u=s.y,f={z:l,x:c,y:u},h=0;h&lt;a.length;h++){var p=a.feature(h);if(o.filter(new pi(this.tileID.overscaledZ),p)){var d=r.getId(p,i),m=new su(p,l,c,u,d);m.tile=f,t.push(m)}}}},du.prototype.hasData=function(){return&quot;loaded&quot;===this.state||&quot;reloading&quot;===this.state||&quot;expired&quot;===this.state},du.prototype.patternsLoaded=function(){return this.imageAtlas&amp;&amp;!!Object.keys(this.imageAtlas.patternPositions).length},du.prototype.setExpiryData=function(t){var e=this.expirationTime;if(t.cacheControl){var r=A(t.cacheControl);r[&quot;max-age&quot;]&amp;&amp;(this.expirationTime=Date.now()+1e3*r[&quot;max-age&quot;])}else t.expires&amp;&amp;(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){var n=Date.now(),i=!1;if(this.expirationTime&gt;n)i=!1;else if(e)if(this.expirationTime&lt;e)i=!0;else{var a=this.expirationTime-e;a?this.expirationTime=n+Math.max(a,3e4):i=!0}else i=!0;i?(this.expiredRequestCount++,this.state=&quot;expired&quot;):this.expiredRequestCount=0}},du.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1&lt;&lt;Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},du.prototype.setFeatureState=function(t,e){if(this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData&amp;&amp;0!==Object.keys(t).length){var r=this.latestFeatureIndex.loadVTLayers();for(var n in this.buckets)if(e.style.hasLayer(n)){var i=this.buckets[n],a=i.layers[0].sourceLayer||&quot;_geojsonTileLayer&quot;,o=r[a],s=t[a];if(o&amp;&amp;s&amp;&amp;0!==Object.keys(s).length){i.update(s,o,this.imageAtlas&amp;&amp;this.imageAtlas.patternPositions||{});var l=e&amp;&amp;e.style&amp;&amp;e.style.getLayer(n);l&amp;&amp;(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(i)))}}}},du.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},du.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil&lt;R.now()},du.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},du.prototype.setHoldDuration=function(t){this.symbolFadeHoldUntil=R.now()+t},du.prototype.setDependencies=function(t,e){for(var r={},n=0,i=e;n&lt;i.length;n+=1){r[i[n]]=!0}this.dependencies[t]=r},du.prototype.hasDependency=function(t,e){for(var r=0,n=t;r&lt;n.length;r+=1){var i=n[r],a=this.dependencies[i];if(a)for(var o=0,s=e;o&lt;s.length;o+=1){if(a[s[o]])return!0}}return!1};var mu=self.performance,gu=function(t){this._marks={start:[t.url,&quot;start&quot;].join(&quot;#&quot;),end:[t.url,&quot;end&quot;].join(&quot;#&quot;),measure:t.url.toString()},mu.mark(this._marks.start)};gu.prototype.finish=function(){mu.mark(this._marks.end);var t=mu.getEntriesByName(this._marks.measure);return 0===t.length&amp;&amp;(mu.measure(this._marks.measure,this._marks.start,this._marks.end),t=mu.getEntriesByName(this._marks.measure),mu.clearMarks(this._marks.start),mu.clearMarks(this._marks.end),mu.clearMeasures(this._marks.measure)),t},t.Actor=qc,t.AlphaImage=So,t.CanonicalTileID=eu,t.CollisionBoxArray=na,t.Color=te,t.DEMData=au,t.DataConstantProperty=wi,t.DictionaryCoder=ou,t.EXTENT=8192,t.ErrorEvent=St,t.EvaluationParameters=pi,t.Event=Mt,t.Evented=Et,t.FeatureIndex=uu,t.FillBucket=gs,t.FillExtrusionBucket=Os,t.ImageAtlas=Ll,t.ImagePosition=Sl,t.LineBucket=qs,t.LngLat=Wc,t.LngLatBounds=Yc,t.MercatorCoordinate=tu,t.ONE_EM=24,t.OverscaledTileID=nu,t.Point=i,t.Point$1=i,t.Properties=Si,t.Protobuf=al,t.RGBAImage=Eo,t.RequestManager=H,t.RequestPerformance=gu,t.ResourceType=dt,t.SegmentVector=pa,t.SourceFeatureState=cu,t.StructArrayLayout1ui2=$i,t.StructArrayLayout2f1f2i16=qi,t.StructArrayLayout2i4=zi,t.StructArrayLayout3ui6=Yi,t.StructArrayLayout4i8=Di,t.SymbolBucket=Mc,t.Texture=Vc,t.Tile=du,t.Transitionable=gi,t.Uniform1f=Sa,t.Uniform1i=Ma,t.Uniform2f=Ea,t.Uniform3f=La,t.Uniform4f=Ca,t.UniformColor=Pa,t.UniformMatrix4f=Oa,t.UnwrappedTileID=ru,t.ValidationError=Ct,t.WritingMode=Cl,t.ZoomHistory=Gn,t.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},t.addDynamicAttributes=wc,t.asyncAll=function(t,e,r){if(!t.length)return r(null,[]);var n=t.length,i=new Array(t.length),a=null;t.forEach((function(t,o){e(t,(function(t,e){t&amp;&amp;(a=t),i[o]=e,0==--n&amp;&amp;r(a,i)}))}))},t.bezier=o,t.bindAll=m,t.browser=R,t.cacheEntryPossiblyAdded=function(t){++ht&gt;ot&amp;&amp;(t.getActor().send(&quot;enforceCacheSizeLimit&quot;,at),ht=0)},t.clamp=l,t.clearTileCache=function(t){var e=self.caches.delete(&quot;mapbox-tiles&quot;);t&amp;&amp;e.catch(t).then((function(){return t()}))},t.clipLine=ec,t.clone=function(t){var e=new fo(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=x,t.clone$2=function(t){var e=new fo(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.collisionCircleLayout=tl,t.config=F,t.create=function(){var t=new fo(16);return fo!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=function(){var t=new fo(9);return fo!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},t.create$2=function(){var t=new fo(4);return fo!=Float32Array&amp;&amp;(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=Wr,t.createLayout=Ii,t.createStyleLayer=function(t){return&quot;custom&quot;===t.type?new Dc(t):new Rc[t.type](t)},t.cross=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t},t.deepEqual=function t(e,r){if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(var n=0;n&lt;e.length;n++)if(!t(e[n],r[n]))return!1;return!0}if(&quot;object&quot;==typeof e&amp;&amp;null!==e&amp;&amp;null!==r){if(&quot;object&quot;!=typeof r)return!1;if(Object.keys(e).length!==Object.keys(r).length)return!1;for(var i in e)if(!t(e[i],r[i]))return!1;return!0}return e===r},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},t.dot$1=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},t.ease=s,t.emitValidationErrors=On,t.endsWith=g,t.enforceCacheSizeLimit=function(t){st(),Q&amp;&amp;Q.then((function(e){e.keys().then((function(r){for(var n=0;n&lt;r.length-t;n++)e.delete(r[n])}))}))},t.evaluateSizeForFeature=Yl,t.evaluateSizeForZoom=Wl,t.evaluateVariableOffset=dc,t.evented=ci,t.extend=u,t.featureFilter=sn,t.filterObject=y,t.fromRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},t.getAnchorAlignment=Ul,t.getAnchorJustification=mc,t.getArrayBuffer=xt,t.getImage=Tt,t.getJSON=function(t,e){return yt(u(t,{type:&quot;json&quot;}),e)},t.getRTLTextPluginStatus=ui,t.getReferrer=gt,t.getVideo=function(t,e){var r,n,i=self.document.createElement(&quot;video&quot;);i.muted=!0,i.onloadstart=function(){e(null,i)};for(var a=0;a&lt;t.length;a++){var o=self.document.createElement(&quot;source&quot;);r=t[a],n=void 0,(n=self.document.createElement(&quot;a&quot;)).href=r,(n.protocol!==self.document.location.protocol||n.host!==self.document.location.host)&amp;&amp;(i.crossOrigin=&quot;Anonymous&quot;),o.src=t[a],i.appendChild(o)}return{cancel:function(){}}},t.identity=ho,t.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],m=e[13],g=e[14],v=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*m-f*d,A=u*g-h*d,M=u*v-p*d,S=f*g-h*m,E=f*v-p*m,L=h*v-p*g,C=y*L-x*E+b*S+_*M-w*A+T*k;return C?(C=1/C,t[0]=(s*L-l*E+c*S)*C,t[1]=(i*E-n*L-a*S)*C,t[2]=(m*T-g*w+v*_)*C,t[3]=(h*w-f*T-p*_)*C,t[4]=(l*M-o*L-c*A)*C,t[5]=(r*L-i*M+a*A)*C,t[6]=(g*b-d*T-v*x)*C,t[7]=(u*T-h*b+p*x)*C,t[8]=(o*E-s*M+c*k)*C,t[9]=(n*M-r*E-a*k)*C,t[10]=(d*w-m*b+v*y)*C,t[11]=(f*b-u*w-p*y)*C,t[12]=(s*A-o*S-l*k)*C,t[13]=(r*S-n*A+i*k)*C,t[14]=(m*x-d*_-g*y)*C,t[15]=(u*_-f*x+h*y)*C,t):null},t.isChar=Yn,t.isMapboxURL=q,t.keysDifference=function(t,e){var r=[];for(var n in t)n in e||r.push(n);return r},t.makeRequest=yt,t.mapObject=v,t.mercatorXfromLng=Jc,t.mercatorYfromLat=Kc,t.mercatorZfromAltitude=Qc,t.mul=mo,t.multiply=po,t.mvt=Ls,t.normalize=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;return a&gt;0&amp;&amp;(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t},t.number=qe,t.offscreenCanvasSupported=pt,t.ortho=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t},t.parseGlyphPBF=function(t){return new al(t).readFields(Tl,[])},t.pbf=al,t.performSymbolLayout=function(t,e,r,n,i,a,o){t.createArrays();var s=512*t.overscaling;t.tilePixelRatio=8192/s,t.compareText={},t.iconsNeedLinear=!1;var l=t.layers[0].layout,c=t.layers[0]._unevaluatedLayout._values,u={};if(&quot;composite&quot;===t.textSizeData.kind){var f=t.textSizeData,h=f.minZoom,p=f.maxZoom;u.compositeTextSizes=[c[&quot;text-size&quot;].possiblyEvaluate(new pi(h),o),c[&quot;text-size&quot;].possiblyEvaluate(new pi(p),o)]}if(&quot;composite&quot;===t.iconSizeData.kind){var d=t.iconSizeData,m=d.minZoom,g=d.maxZoom;u.compositeIconSizes=[c[&quot;icon-size&quot;].possiblyEvaluate(new pi(m),o),c[&quot;icon-size&quot;].possiblyEvaluate(new pi(g),o)]}u.layoutTextSize=c[&quot;text-size&quot;].possiblyEvaluate(new pi(t.zoom+1),o),u.layoutIconSize=c[&quot;icon-size&quot;].possiblyEvaluate(new pi(t.zoom+1),o),u.textMaxSize=c[&quot;text-size&quot;].possiblyEvaluate(new pi(18));for(var v=24*l.get(&quot;text-line-height&quot;),y=&quot;map&quot;===l.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==l.get(&quot;symbol-placement&quot;),x=l.get(&quot;text-keep-upright&quot;),b=l.get(&quot;text-size&quot;),w=function(){var a=k[T],s=l.get(&quot;text-font&quot;).evaluate(a,{},o).join(&quot;,&quot;),c=b.evaluate(a,{},o),f=u.layoutTextSize.evaluate(a,{},o),h=u.layoutIconSize.evaluate(a,{},o),p={horizontal:{},vertical:void 0},d=a.text,m=[0,0];if(d){var g=d.toString(),w=24*l.get(&quot;text-letter-spacing&quot;).evaluate(a,{},o),A=function(t){for(var e=0,r=t;e&lt;r.length;e+=1){if(!Xn(r[e].charCodeAt(0)))return!1}return!0}(g)?w:0,M=l.get(&quot;text-anchor&quot;).evaluate(a,{},o),S=l.get(&quot;text-variable-anchor&quot;);if(!S){var E=l.get(&quot;text-radial-offset&quot;).evaluate(a,{},o);m=E?dc(M,[24*E,pc]):l.get(&quot;text-offset&quot;).evaluate(a,{},o).map((function(t){return 24*t}))}var L=y?&quot;center&quot;:l.get(&quot;text-justify&quot;).evaluate(a,{},o),C=l.get(&quot;symbol-placement&quot;),P=&quot;point&quot;===C?24*l.get(&quot;text-max-width&quot;).evaluate(a,{},o):0,I=function(){t.allowVerticalPlacement&amp;&amp;Wn(g)&amp;&amp;(p.vertical=Ol(d,e,r,i,s,P,v,M,&quot;left&quot;,A,m,Cl.vertical,!0,C,f,c))};if(!y&amp;&amp;S){for(var O=&quot;auto&quot;===L?S.map((function(t){return mc(t)})):[L],z=!1,D=0;D&lt;O.length;D++){var R=O[D];if(!p.horizontal[R])if(z)p.horizontal[R]=p.horizontal[0];else{var F=Ol(d,e,r,i,s,P,v,&quot;center&quot;,R,A,m,Cl.horizontal,!1,C,f,c);F&amp;&amp;(p.horizontal[R]=F,z=1===F.positionedLines.length)}}I()}else{&quot;auto&quot;===L&amp;&amp;(L=mc(M));var B=Ol(d,e,r,i,s,P,v,M,L,A,m,Cl.horizontal,!1,C,f,c);B&amp;&amp;(p.horizontal[L]=B),I(),Wn(g)&amp;&amp;y&amp;&amp;x&amp;&amp;(p.vertical=Ol(d,e,r,i,s,P,v,M,L,A,m,Cl.vertical,!1,C,f,c))}}var N=void 0,j=!1;if(a.icon&amp;&amp;a.icon.name){var U=n[a.icon.name];U&amp;&amp;(N=function(t,e,r){var n=Ul(r),i=n.horizontalAlign,a=n.verticalAlign,o=e[0],s=e[1],l=o-t.displaySize[0]*i,c=l+t.displaySize[0],u=s-t.displaySize[1]*a;return{image:t,top:u,bottom:u+t.displaySize[1],left:l,right:c}}(i[a.icon.name],l.get(&quot;icon-offset&quot;).evaluate(a,{},o),l.get(&quot;icon-anchor&quot;).evaluate(a,{},o)),j=U.sdf,void 0===t.sdfIcons?t.sdfIcons=U.sdf:t.sdfIcons!==U.sdf&amp;&amp;_(&quot;Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer&quot;),(U.pixelRatio!==t.pixelRatio||0!==l.get(&quot;icon-rotate&quot;).constantOr(1))&amp;&amp;(t.iconsNeedLinear=!0))}var V=vc(p.horizontal)||p.vertical;t.iconsInText=!!V&amp;&amp;V.iconsInText,(V||N)&amp;&amp;function(t,e,r,n,i,a,o,s,l,c,u){var f=a.textMaxSize.evaluate(e,{});void 0===f&amp;&amp;(f=o);var h,p=t.layers[0].layout,d=p.get(&quot;icon-offset&quot;).evaluate(e,{},u),m=vc(r.horizontal),g=o/24,v=t.tilePixelRatio*g,y=t.tilePixelRatio*f/24,x=t.tilePixelRatio*s,b=t.tilePixelRatio*p.get(&quot;symbol-spacing&quot;),w=p.get(&quot;text-padding&quot;)*t.tilePixelRatio,T=p.get(&quot;icon-padding&quot;)*t.tilePixelRatio,k=p.get(&quot;text-max-angle&quot;)/180*Math.PI,A=&quot;map&quot;===p.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==p.get(&quot;symbol-placement&quot;),M=&quot;map&quot;===p.get(&quot;icon-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==p.get(&quot;symbol-placement&quot;),S=p.get(&quot;symbol-placement&quot;),E=b/2,L=p.get(&quot;icon-text-fit&quot;);n&amp;&amp;&quot;none&quot;!==L&amp;&amp;(t.allowVerticalPlacement&amp;&amp;r.vertical&amp;&amp;(h=Hl(n,r.vertical,L,p.get(&quot;icon-text-fit-padding&quot;),d,g)),m&amp;&amp;(n=Hl(n,m,L,p.get(&quot;icon-text-fit-padding&quot;),d,g)));var C=function(s,f){f.x&lt;0||f.x&gt;=8192||f.y&lt;0||f.y&gt;=8192||function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,m,g,v,y,x,b,w,T,k,A){var M,S,E,L,C,P=t.addToLineVertexArray(e,r),I=0,O=0,z=0,D=0,R=-1,F=-1,B={},N=ya(&quot;&quot;),j=0,U=0;void 0===s._unevaluatedLayout.getValue(&quot;text-radial-offset&quot;)?(M=s.layout.get(&quot;text-offset&quot;).evaluate(b,{},k).map((function(t){return 24*t})),j=M[0],U=M[1]):(j=24*s.layout.get(&quot;text-radial-offset&quot;).evaluate(b,{},k),U=pc);if(t.allowVerticalPlacement&amp;&amp;n.vertical){var V=s.layout.get(&quot;text-rotate&quot;).evaluate(b,{},k)+90,H=n.vertical;L=new sc(l,e,c,u,f,H,h,p,d,V),o&amp;&amp;(C=new sc(l,e,c,u,f,o,g,v,d,V))}if(i){var q=s.layout.get(&quot;icon-rotate&quot;).evaluate(b,{}),G=&quot;none&quot;!==s.layout.get(&quot;icon-text-fit&quot;),Y=rc(i,q,T,G),W=o?rc(o,q,T,G):void 0;E=new sc(l,e,c,u,f,i,g,v,!1,q),I=4*Y.length;var X=t.iconSizeData,Z=null;&quot;source&quot;===X.kind?(Z=[128*s.layout.get(&quot;icon-size&quot;).evaluate(b,{})])[0]&gt;32640&amp;&amp;_(t.layerIds[0]+': Value for &quot;icon-size&quot; is &gt;= 255. Reduce your &quot;icon-size&quot;.'):&quot;composite&quot;===X.kind&amp;&amp;((Z=[128*w.compositeIconSizes[0].evaluate(b,{},k),128*w.compositeIconSizes[1].evaluate(b,{},k)])[0]&gt;32640||Z[1]&gt;32640)&amp;&amp;_(t.layerIds[0]+': Value for &quot;icon-size&quot; is &gt;= 255. Reduce your &quot;icon-size&quot;.'),t.addSymbols(t.icon,Y,Z,x,y,b,!1,e,P.lineStartIndex,P.lineLength,-1,k),R=t.icon.placedSymbolArray.length-1,W&amp;&amp;(O=4*W.length,t.addSymbols(t.icon,W,Z,x,y,b,Cl.vertical,e,P.lineStartIndex,P.lineLength,-1,k),F=t.icon.placedSymbolArray.length-1)}for(var J in n.horizontal){var K=n.horizontal[J];if(!S){N=ya(K.text);var Q=s.layout.get(&quot;text-rotate&quot;).evaluate(b,{},k);S=new sc(l,e,c,u,f,K,h,p,d,Q)}var $=1===K.positionedLines.length;if(z+=gc(t,e,K,a,s,d,b,m,P,n.vertical?Cl.horizontal:Cl.horizontalOnly,$?Object.keys(n.horizontal):[J],B,R,w,k),$)break}n.vertical&amp;&amp;(D+=gc(t,e,n.vertical,a,s,d,b,m,P,Cl.vertical,[&quot;vertical&quot;],B,F,w,k));var tt=S?S.boxStartIndex:t.collisionBoxArray.length,et=S?S.boxEndIndex:t.collisionBoxArray.length,rt=L?L.boxStartIndex:t.collisionBoxArray.length,nt=L?L.boxEndIndex:t.collisionBoxArray.length,it=E?E.boxStartIndex:t.collisionBoxArray.length,at=E?E.boxEndIndex:t.collisionBoxArray.length,ot=C?C.boxStartIndex:t.collisionBoxArray.length,st=C?C.boxEndIndex:t.collisionBoxArray.length,lt=-1,ct=function(t,e){return t&amp;&amp;t.circleDiameter?Math.max(t.circleDiameter,e):e};lt=ct(S,lt),lt=ct(L,lt),lt=ct(E,lt);var ut=(lt=ct(C,lt))&gt;-1?1:0;ut&amp;&amp;(lt*=A/24);t.glyphOffsetArray.length&gt;=Mc.MAX_GLYPHS&amp;&amp;_(&quot;Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907&quot;);void 0!==b.sortKey&amp;&amp;t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey);t.symbolInstances.emplaceBack(e.x,e.y,B.right&gt;=0?B.right:-1,B.center&gt;=0?B.center:-1,B.left&gt;=0?B.left:-1,B.vertical||-1,R,F,N,tt,et,rt,nt,it,at,ot,st,c,z,D,I,O,ut,0,h,j,U,lt)}(t,f,s,r,n,i,h,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,v,w,A,l,x,T,M,d,e,a,c,u,o)};if(&quot;line&quot;===S)for(var P=0,I=ec(e.geometry,0,0,8192,8192);P&lt;I.length;P+=1)for(var O=I[P],z=tc(O,b,k,r.vertical||m,n,24,y,t.overscaling,8192),D=0,R=z;D&lt;R.length;D+=1){var F=R[D],B=m;B&amp;&amp;yc(t,B.text,E,F)||C(O,F)}else if(&quot;line-center&quot;===S)for(var N=0,j=e.geometry;N&lt;j.length;N+=1){var U=j[N];if(U.length&gt;1){var V=$l(U,k,r.vertical||m,n,24,y);V&amp;&amp;C(U,V)}}else if(&quot;Polygon&quot;===e.type)for(var H=0,q=hs(e.geometry,0);H&lt;q.length;H+=1){var G=q[H],Y=uc(G,16);C(G[0],new ql(Y.x,Y.y,0))}else if(&quot;LineString&quot;===e.type)for(var W=0,X=e.geometry;W&lt;X.length;W+=1){var Z=X[W];C(Z,new ql(Z[0].x,Z[0].y,0))}else if(&quot;Point&quot;===e.type)for(var J=0,K=e.geometry;J&lt;K.length;J+=1)for(var Q=K[J],$=0,tt=Q;$&lt;tt.length;$+=1){var et=tt[$];C([et],new ql(et.x,et.y,0))}}(t,a,p,N,n,u,f,h,m,j,o)},T=0,k=t.features;T&lt;k.length;T+=1)w();a&amp;&amp;t.generateCollisionDebugBuffers()},t.perspective=function(t,e,r,n,i){var a,o=1/Math.tan(e/2);return t[0]=o/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&amp;&amp;i!==1/0?(a=1/(n-i),t[10]=(i+n)*a,t[14]=2*i*n*a):(t[10]=-1,t[14]=-2*n),t},t.pick=function(t,e){for(var r={},n=0;n&lt;e.length;n++){var i=e[n];i in t&amp;&amp;(r[i]=t[i])}return r},t.plugin=hi,t.polygonIntersectsPolygon=Za,t.postMapLoadEvent=it,t.postTurnstileEvent=rt,t.potpack=Ml,t.refProperties=[&quot;type&quot;,&quot;source&quot;,&quot;source-layer&quot;,&quot;minzoom&quot;,&quot;maxzoom&quot;,&quot;filter&quot;,&quot;layout&quot;],t.register=Nn,t.registerForPluginStateChange=function(t){return t({pluginStatus:ai,pluginURL:oi}),ci.on(&quot;pluginStateChange&quot;,t),t},t.rotate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l+a*s,t[1]=i*l+o*s,t[2]=n*-s+a*l,t[3]=i*-s+o*l,t},t.rotateX=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];return e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t},t.rotateZ=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];return e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t},t.scale=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.scale$1=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t},t.scale$2=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t},t.setCacheLimits=function(t,e){at=t,ot=e},t.setRTLTextPlugin=function(t,e,r){if(void 0===r&amp;&amp;(r=!1),ai===ti||ai===ei||ai===ri)throw new Error(&quot;setRTLTextPlugin cannot be called multiple times.&quot;);oi=R.resolveURL(t),ai=ti,ii=e,li(),r||fi()},t.sphericalToCartesian=function(t){var e=t[0],r=t[1],n=t[2];return r+=90,r*=Math.PI/180,n*=Math.PI/180,{x:e*Math.cos(r)*Math.sin(n),y:e*Math.sin(r)*Math.sin(n),z:e*Math.cos(n)}},t.sqrLen=bo,t.styleSpec=Lt,t.sub=yo,t.symbolSize=Xl,t.transformMat3=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t},t.transformMat4=xo,t.translate=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,m=r[0],g=r[1],v=r[2];return e===t?(t[12]=e[0]*m+e[4]*g+e[8]*v+e[12],t[13]=e[1]*m+e[5]*g+e[9]*v+e[13],t[14]=e[2]*m+e[6]*g+e[10]*v+e[14],t[15]=e[3]*m+e[7]*g+e[11]*v+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*m+s*g+f*v+e[12],t[13]=i*m+l*g+h*v+e[13],t[14]=a*m+c*g+p*v+e[14],t[15]=o*m+u*g+d*v+e[15]),t},t.triggerPluginCompletionEvent=si,t.uniqueId=h,t.validateCustomStyleLayer=function(t){var e=[],r=t.id;return void 0===r&amp;&amp;e.push({message:&quot;layers.&quot;+r+': missing required property &quot;id&quot;'}),void 0===t.render&amp;&amp;e.push({message:&quot;layers.&quot;+r+': missing required method &quot;render&quot;'}),t.renderingMode&amp;&amp;&quot;2d&quot;!==t.renderingMode&amp;&amp;&quot;3d&quot;!==t.renderingMode&amp;&amp;e.push({message:&quot;layers.&quot;+r+': property &quot;renderingMode&quot; must be either &quot;2d&quot; or &quot;3d&quot;'}),e},t.validateLight=Cn,t.validateStyle=Ln,t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.vectorTile=Ls,t.version=&quot;1.10.1&quot;,t.warnOnce=_,t.webpSupported=B,t.window=self,t.wrap=c})),n(0,(function(t){function e(t){var r=typeof t;if(&quot;number&quot;===r||&quot;boolean&quot;===r||&quot;string&quot;===r||null==t)return JSON.stringify(t);if(Array.isArray(t)){for(var n=&quot;[&quot;,i=0,a=t;i&lt;a.length;i+=1){n+=e(a[i])+&quot;,&quot;}return n+&quot;]&quot;}for(var o=Object.keys(t).sort(),s=&quot;{&quot;,l=0;l&lt;o.length;l++)s+=JSON.stringify(o[l])+&quot;:&quot;+e(t[o[l]])+&quot;,&quot;;return s+&quot;}&quot;}function r(r){for(var n=&quot;&quot;,i=0,a=t.refProperties;i&lt;a.length;i+=1){n+=&quot;/&quot;+e(r[a[i]])}return n}var n=function(t){this.keyCache={},t&amp;&amp;this.replace(t)};n.prototype.replace=function(t){this._layerConfigs={},this._layers={},this.update(t,[])},n.prototype.update=function(e,n){for(var i=this,a=0,o=e;a&lt;o.length;a+=1){var s=o[a];this._layerConfigs[s.id]=s;var l=this._layers[s.id]=t.createStyleLayer(s);l._featureFilter=t.featureFilter(l.filter),this.keyCache[s.id]&amp;&amp;delete this.keyCache[s.id]}for(var c=0,u=n;c&lt;u.length;c+=1){var f=u[c];delete this.keyCache[f],delete this._layerConfigs[f],delete this._layers[f]}this.familiesBySource={};for(var h=0,p=function(t,e){for(var n={},i=0;i&lt;t.length;i++){var a=e&amp;&amp;e[t[i].id]||r(t[i]);e&amp;&amp;(e[t[i].id]=a);var o=n[a];o||(o=n[a]=[]),o.push(t[i])}var s=[];for(var l in n)s.push(n[l]);return s}(t.values(this._layerConfigs),this.keyCache);h&lt;p.length;h+=1){var d=p[h].map((function(t){return i._layers[t.id]})),m=d[0];if(&quot;none&quot;!==m.visibility){var g=m.source||&quot;&quot;,v=this.familiesBySource[g];v||(v=this.familiesBySource[g]={});var y=m.sourceLayer||&quot;_geojsonTileLayer&quot;,x=v[y];x||(x=v[y]=[]),x.push(d)}}};var i=function(e){var r={},n=[];for(var i in e){var a=e[i],o=r[i]={};for(var s in a){var l=a[+s];if(l&amp;&amp;0!==l.bitmap.width&amp;&amp;0!==l.bitmap.height){var c={x:0,y:0,w:l.bitmap.width+2,h:l.bitmap.height+2};n.push(c),o[s]={rect:c,metrics:l.metrics}}}}var u=t.potpack(n),f=u.w,h=u.h,p=new t.AlphaImage({width:f||1,height:h||1});for(var d in e){var m=e[d];for(var g in m){var v=m[+g];if(v&amp;&amp;0!==v.bitmap.width&amp;&amp;0!==v.bitmap.height){var y=r[d][g].rect;t.AlphaImage.copy(v.bitmap,p,{x:0,y:0},{x:y.x+1,y:y.y+1},v.bitmap)}}}this.image=p,this.positions=r};t.register(&quot;GlyphAtlas&quot;,i);var a=function(e){this.tileID=new t.OverscaledTileID(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId};function o(e,r,n){for(var i=new t.EvaluationParameters(r),a=0,o=e;a&lt;o.length;a+=1){o[a].recalculate(i,n)}}function s(e,r){var n=t.getArrayBuffer(e.request,(function(e,n,i,a){e?r(e):n&amp;&amp;r(null,{vectorTile:new t.vectorTile.VectorTile(new t.pbf(n)),rawData:n,cacheControl:i,expires:a})}));return function(){n.cancel(),r()}}a.prototype.parse=function(e,r,n,a,s){var l=this;this.status=&quot;parsing&quot;,this.data=e,this.collisionBoxArray=new t.CollisionBoxArray;var c=new t.DictionaryCoder(Object.keys(e.layers).sort()),u=new t.FeatureIndex(this.tileID,this.promoteId);u.bucketLayerIDs=[];var f,h,p,d,m={},g={featureIndex:u,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:n},v=r.familiesBySource[this.source];for(var y in v){var x=e.layers[y];if(x){1===x.version&amp;&amp;t.warnOnce('Vector tile source &quot;'+this.source+'&quot; layer &quot;'+y+'&quot; does not use vector tile spec v2 and therefore may have some rendering errors.');for(var b=c.encode(y),_=[],w=0;w&lt;x.length;w++){var T=x.feature(w),k=u.getId(T,y);_.push({feature:T,id:k,index:w,sourceLayerIndex:b})}for(var A=0,M=v[y];A&lt;M.length;A+=1){var S=M[A],E=S[0];if(!(E.minzoom&amp;&amp;this.zoom&lt;Math.floor(E.minzoom)))if(!(E.maxzoom&amp;&amp;this.zoom&gt;=E.maxzoom))if(&quot;none&quot;!==E.visibility)o(S,this.zoom,n),(m[E.id]=E.createBucket({index:u.bucketLayerIDs.length,layers:S,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:b,sourceID:this.source})).populate(_,g,this.tileID.canonical),u.bucketLayerIDs.push(S.map((function(t){return t.id})))}}}var L=t.mapObject(g.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(L).length?a.send(&quot;getGlyphs&quot;,{uid:this.uid,stacks:L},(function(t,e){f||(f=t,h=e,I.call(l))})):h={};var C=Object.keys(g.iconDependencies);C.length?a.send(&quot;getImages&quot;,{icons:C,source:this.source,tileID:this.tileID,type:&quot;icons&quot;},(function(t,e){f||(f=t,p=e,I.call(l))})):p={};var P=Object.keys(g.patternDependencies);function I(){if(f)return s(f);if(h&amp;&amp;p&amp;&amp;d){var e=new i(h),r=new t.ImageAtlas(p,d);for(var a in m){var l=m[a];l instanceof t.SymbolBucket?(o(l.layers,this.zoom,n),t.performSymbolLayout(l,h,e.positions,p,r.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):l.hasPattern&amp;&amp;(l instanceof t.LineBucket||l instanceof t.FillBucket||l instanceof t.FillExtrusionBucket)&amp;&amp;(o(l.layers,this.zoom,n),l.addFeatures(g,this.tileID.canonical,r.patternPositions))}this.status=&quot;done&quot;,s(null,{buckets:t.values(m).filter((function(t){return!t.isEmpty()})),featureIndex:u,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:r,glyphMap:this.returnDependencies?h:null,iconMap:this.returnDependencies?p:null,glyphPositions:this.returnDependencies?e.positions:null})}}P.length?a.send(&quot;getImages&quot;,{icons:P,source:this.source,tileID:this.tileID,type:&quot;patterns&quot;},(function(t,e){f||(f=t,d=e,I.call(l))})):d={},I.call(this)};var l=function(t,e,r,n){this.actor=t,this.layerIndex=e,this.availableImages=r,this.loadVectorData=n||s,this.loading={},this.loaded={}};l.prototype.loadTile=function(e,r){var n=this,i=e.uid;this.loading||(this.loading={});var o=!!(e&amp;&amp;e.request&amp;&amp;e.request.collectResourceTiming)&amp;&amp;new t.RequestPerformance(e.request),s=this.loading[i]=new a(e);s.abort=this.loadVectorData(e,(function(e,a){if(delete n.loading[i],e||!a)return s.status=&quot;done&quot;,n.loaded[i]=s,r(e);var l=a.rawData,c={};a.expires&amp;&amp;(c.expires=a.expires),a.cacheControl&amp;&amp;(c.cacheControl=a.cacheControl);var u={};if(o){var f=o.finish();f&amp;&amp;(u.resourceTiming=JSON.parse(JSON.stringify(f)))}s.vectorTile=a.vectorTile,s.parse(a.vectorTile,n.layerIndex,n.availableImages,n.actor,(function(e,n){if(e||!n)return r(e);r(null,t.extend({rawTileData:l.slice(0)},n,c,u))})),n.loaded=n.loaded||{},n.loaded[i]=s}))},l.prototype.reloadTile=function(t,e){var r=this,n=this.loaded,i=t.uid,a=this;if(n&amp;&amp;n[i]){var o=n[i];o.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,n){var i=o.reloadCallback;i&amp;&amp;(delete o.reloadCallback,o.parse(o.vectorTile,a.layerIndex,r.availableImages,a.actor,i)),e(t,n)};&quot;parsing&quot;===o.status?o.reloadCallback=s:&quot;done&quot;===o.status&amp;&amp;(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},l.prototype.abortTile=function(t,e){var r=this.loading,n=t.uid;r&amp;&amp;r[n]&amp;&amp;r[n].abort&amp;&amp;(r[n].abort(),delete r[n]),e()},l.prototype.removeTile=function(t,e){var r=this.loaded,n=t.uid;r&amp;&amp;r[n]&amp;&amp;delete r[n],e()};var c=t.window.ImageBitmap,u=function(){this.loaded={}};u.prototype.loadTile=function(e,r){var n=e.uid,i=e.encoding,a=e.rawImageData,o=c&amp;&amp;a instanceof c?this.getImageData(a):a,s=new t.DEMData(n,o,i);this.loaded=this.loaded||{},this.loaded[n]=s,r(null,s)},u.prototype.getImageData=function(e){this.offscreenCanvas&amp;&amp;this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext(&quot;2d&quot;)),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);var r=this.offscreenCanvasContext.getImageData(-1,-1,e.width+2,e.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new t.RGBAImage({width:r.width,height:r.height},r.data)},u.prototype.removeTile=function(t){var e=this.loaded,r=t.uid;e&amp;&amp;e[r]&amp;&amp;delete e[r]};var f=function t(e,r){var n,i=e&amp;&amp;e.type;if(&quot;FeatureCollection&quot;===i)for(n=0;n&lt;e.features.length;n++)t(e.features[n],r);else if(&quot;GeometryCollection&quot;===i)for(n=0;n&lt;e.geometries.length;n++)t(e.geometries[n],r);else if(&quot;Feature&quot;===i)t(e.geometry,r);else if(&quot;Polygon&quot;===i)h(e.coordinates,r);else if(&quot;MultiPolygon&quot;===i)for(n=0;n&lt;e.coordinates.length;n++)h(e.coordinates[n],r);return e};function h(t,e){if(0!==t.length){p(t[0],e);for(var r=1;r&lt;t.length;r++)p(t[r],!e)}}function p(t,e){for(var r=0,n=0,i=t.length,a=i-1;n&lt;i;a=n++)r+=(t[n][0]-t[a][0])*(t[a][1]+t[n][1]);r&gt;=0!=!!e&amp;&amp;t.reverse()}var d=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,m=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,&quot;id&quot;in e&amp;&amp;!isNaN(e.id)&amp;&amp;(this.id=parseInt(e.id,10))};m.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],r=0,n=this._feature.geometry;r&lt;n.length;r+=1){var i=n[r];e.push([new t.Point$1(i[0],i[1])])}return e}for(var a=[],o=0,s=this._feature.geometry;o&lt;s.length;o+=1){for(var l=[],c=0,u=s[o];c&lt;u.length;c+=1){var f=u[c];l.push(new t.Point$1(f[0],f[1]))}a.push(l)}return a},m.prototype.toGeoJSON=function(t,e,r){return d.call(this,t,e,r)};var g=function(e){this.layers={_geojsonTileLayer:this},this.name=&quot;_geojsonTileLayer&quot;,this.extent=t.EXTENT,this.length=e.length,this._features=e};g.prototype.feature=function(t){return new m(this._features[t])};var v=t.vectorTile.VectorTileFeature,y=x;function x(t,e){this.options=e||{},this.features=t,this.length=t.length}function b(t,e){this.id=&quot;number&quot;==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}x.prototype.feature=function(t){return new b(this.features[t],this.options.extent)},b.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var r=0;r&lt;e.length;r++){for(var n=e[r],i=[],a=0;a&lt;n.length;a++)i.push(new t.Point$1(n[a][0],n[a][1]));this.geometry.push(i)}return this.geometry},b.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,r=-1/0,n=1/0,i=-1/0,a=0;a&lt;t.length;a++)for(var o=t[a],s=0;s&lt;o.length;s++){var l=o[s];e=Math.min(e,l.x),r=Math.max(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.y)}return[e,n,r,i]},b.prototype.toGeoJSON=v.prototype.toGeoJSON;var _=A,w=A,T=function(t,e){e=e||{};var r={};for(var n in t)r[n]=new y(t[n].features,e),r[n].name=n,r[n].version=e.version,r[n].extent=e.extent;return A({layers:r})},k=y;function A(e){var r=new t.pbf;return function(t,e){for(var r in t.layers)e.writeMessage(3,M,t.layers[r])}(e,r),r.finish()}function M(t,e){var r;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||&quot;&quot;),e.writeVarintField(5,t.extent||4096);var n={keys:[],values:[],keycache:{},valuecache:{}};for(r=0;r&lt;t.length;r++)n.feature=t.feature(r),e.writeMessage(2,S,n);var i=n.keys;for(r=0;r&lt;i.length;r++)e.writeStringField(3,i[r]);var a=n.values;for(r=0;r&lt;a.length;r++)e.writeMessage(4,I,a[r])}function S(t,e){var r=t.feature;void 0!==r.id&amp;&amp;e.writeVarintField(1,r.id),e.writeMessage(2,E,t),e.writeVarintField(3,r.type),e.writeMessage(4,P,r)}function E(t,e){var r=t.feature,n=t.keys,i=t.values,a=t.keycache,o=t.valuecache;for(var s in r.properties){var l=a[s];void 0===l&amp;&amp;(n.push(s),l=n.length-1,a[s]=l),e.writeVarint(l);var c=r.properties[s],u=typeof c;&quot;string&quot;!==u&amp;&amp;&quot;boolean&quot;!==u&amp;&amp;&quot;number&quot;!==u&amp;&amp;(c=JSON.stringify(c));var f=u+&quot;:&quot;+c,h=o[f];void 0===h&amp;&amp;(i.push(c),h=i.length-1,o[f]=h),e.writeVarint(h)}}function L(t,e){return(e&lt;&lt;3)+(7&amp;t)}function C(t){return t&lt;&lt;1^t&gt;&gt;31}function P(t,e){for(var r=t.loadGeometry(),n=t.type,i=0,a=0,o=r.length,s=0;s&lt;o;s++){var l=r[s],c=1;1===n&amp;&amp;(c=l.length),e.writeVarint(L(1,c));for(var u=3===n?l.length-1:l.length,f=0;f&lt;u;f++){1===f&amp;&amp;1!==n&amp;&amp;e.writeVarint(L(2,u-1));var h=l[f].x-i,p=l[f].y-a;e.writeVarint(C(h)),e.writeVarint(C(p)),i+=h,a+=p}3===n&amp;&amp;e.writeVarint(L(7,1))}}function I(t,e){var r=typeof t;&quot;string&quot;===r?e.writeStringField(1,t):&quot;boolean&quot;===r?e.writeBooleanField(7,t):&quot;number&quot;===r&amp;&amp;(t%1!=0?e.writeDoubleField(3,t):t&lt;0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}function O(t,e,r,n,i,a){if(!(i-n&lt;=r)){var o=n+i&gt;&gt;1;!function t(e,r,n,i,a,o){for(;a&gt;i;){if(a-i&gt;600){var s=a-i+1,l=n-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2&lt;0?-1:1),h=Math.max(i,Math.floor(n-l*u/s+f)),p=Math.min(a,Math.floor(n+(s-l)*u/s+f));t(e,r,n,h,p,o)}var d=r[2*n+o],m=i,g=a;for(z(e,r,i,n),r[2*a+o]&gt;d&amp;&amp;z(e,r,i,a);m&lt;g;){for(z(e,r,m,g),m++,g--;r[2*m+o]&lt;d;)m++;for(;r[2*g+o]&gt;d;)g--}r[2*i+o]===d?z(e,r,i,g):(g++,z(e,r,g,a)),g&lt;=n&amp;&amp;(i=g+1),n&lt;=g&amp;&amp;(a=g-1)}}(t,e,o,n,i,a%2),O(t,e,r,n,o-1,a+1),O(t,e,r,o+1,i,a+1)}}function z(t,e,r,n){D(t,r,n),D(e,2*r,2*n),D(e,2*r+1,2*n+1)}function D(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function R(t,e,r,n){var i=t-r,a=e-n;return i*i+a*a}_.fromVectorTileJs=w,_.fromGeojsonVt=T,_.GeoJSONWrapper=k;var F=function(t){return t[0]},B=function(t){return t[1]},N=function(t,e,r,n,i){void 0===e&amp;&amp;(e=F),void 0===r&amp;&amp;(r=B),void 0===n&amp;&amp;(n=64),void 0===i&amp;&amp;(i=Float64Array),this.nodeSize=n,this.points=t;for(var a=t.length&lt;65536?Uint16Array:Uint32Array,o=this.ids=new a(t.length),s=this.coords=new i(2*t.length),l=0;l&lt;t.length;l++)o[l]=l,s[2*l]=e(t[l]),s[2*l+1]=r(t[l]);O(o,s,n,0,o.length-1,0)};N.prototype.range=function(t,e,r,n){return function(t,e,r,n,i,a,o){for(var s,l,c=[0,t.length-1,0],u=[];c.length;){var f=c.pop(),h=c.pop(),p=c.pop();if(h-p&lt;=o)for(var d=p;d&lt;=h;d++)s=e[2*d],l=e[2*d+1],s&gt;=r&amp;&amp;s&lt;=i&amp;&amp;l&gt;=n&amp;&amp;l&lt;=a&amp;&amp;u.push(t[d]);else{var m=Math.floor((p+h)/2);s=e[2*m],l=e[2*m+1],s&gt;=r&amp;&amp;s&lt;=i&amp;&amp;l&gt;=n&amp;&amp;l&lt;=a&amp;&amp;u.push(t[m]);var g=(f+1)%2;(0===f?r&lt;=s:n&lt;=l)&amp;&amp;(c.push(p),c.push(m-1),c.push(g)),(0===f?i&gt;=s:a&gt;=l)&amp;&amp;(c.push(m+1),c.push(h),c.push(g))}}return u}(this.ids,this.coords,t,e,r,n,this.nodeSize)},N.prototype.within=function(t,e,r){return function(t,e,r,n,i,a){for(var o=[0,t.length-1,0],s=[],l=i*i;o.length;){var c=o.pop(),u=o.pop(),f=o.pop();if(u-f&lt;=a)for(var h=f;h&lt;=u;h++)R(e[2*h],e[2*h+1],r,n)&lt;=l&amp;&amp;s.push(t[h]);else{var p=Math.floor((f+u)/2),d=e[2*p],m=e[2*p+1];R(d,m,r,n)&lt;=l&amp;&amp;s.push(t[p]);var g=(c+1)%2;(0===c?r-i&lt;=d:n-i&lt;=m)&amp;&amp;(o.push(f),o.push(p-1),o.push(g)),(0===c?r+i&gt;=d:n+i&gt;=m)&amp;&amp;(o.push(p+1),o.push(u),o.push(g))}}return s}(this.ids,this.coords,t,e,r,this.nodeSize)};var j={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},U=function(t){this.options=X(Object.create(j),t),this.trees=new Array(this.options.maxZoom+1)};function V(t,e,r,n,i){return{x:t,y:e,zoom:1/0,id:r,parentId:-1,numPoints:n,properties:i}}function H(t,e){var r=t.geometry.coordinates,n=r[0],i=r[1];return{x:Y(n),y:W(i),zoom:1/0,index:e,parentId:-1}}function q(t){return{type:&quot;Feature&quot;,id:t.id,properties:G(t),geometry:{type:&quot;Point&quot;,coordinates:[(n=t.x,360*(n-.5)),(e=t.y,r=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(r))/Math.PI-90)]}};var e,r,n}function G(t){var e=t.numPoints,r=e&gt;=1e4?Math.round(e/1e3)+&quot;k&quot;:e&gt;=1e3?Math.round(e/100)/10+&quot;k&quot;:e;return X(X({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function Y(t){return t/360+.5}function W(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function X(t,e){for(var r in e)t[r]=e[r];return t}function Z(t){return t.x}function J(t){return t.y}function K(t,e,r,n,i,a){var o=i-r,s=a-n;if(0!==o||0!==s){var l=((t-r)*o+(e-n)*s)/(o*o+s*s);l&gt;1?(r=i,n=a):l&gt;0&amp;&amp;(r+=o*l,n+=s*l)}return(o=t-r)*o+(s=e-n)*s}function Q(t,e,r,n){var i={id:void 0===t?null:t,type:e,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,r=t.type;if(&quot;Point&quot;===r||&quot;MultiPoint&quot;===r||&quot;LineString&quot;===r)$(t,e);else if(&quot;Polygon&quot;===r||&quot;MultiLineString&quot;===r)for(var n=0;n&lt;e.length;n++)$(t,e[n]);else if(&quot;MultiPolygon&quot;===r)for(n=0;n&lt;e.length;n++)for(var i=0;i&lt;e[n].length;i++)$(t,e[n][i])}(i),i}function $(t,e){for(var r=0;r&lt;e.length;r+=3)t.minX=Math.min(t.minX,e[r]),t.minY=Math.min(t.minY,e[r+1]),t.maxX=Math.max(t.maxX,e[r]),t.maxY=Math.max(t.maxY,e[r+1])}function tt(t,e,r,n){if(e.geometry){var i=e.geometry.coordinates,a=e.geometry.type,o=Math.pow(r.tolerance/((1&lt;&lt;r.maxZoom)*r.extent),2),s=[],l=e.id;if(r.promoteId?l=e.properties[r.promoteId]:r.generateId&amp;&amp;(l=n||0),&quot;Point&quot;===a)et(i,s);else if(&quot;MultiPoint&quot;===a)for(var c=0;c&lt;i.length;c++)et(i[c],s);else if(&quot;LineString&quot;===a)rt(i,s,o,!1);else if(&quot;MultiLineString&quot;===a){if(r.lineMetrics){for(c=0;c&lt;i.length;c++)s=[],rt(i[c],s,o,!1),t.push(Q(l,&quot;LineString&quot;,s,e.properties));return}nt(i,s,o,!1)}else if(&quot;Polygon&quot;===a)nt(i,s,o,!0);else{if(&quot;MultiPolygon&quot;!==a){if(&quot;GeometryCollection&quot;===a){for(c=0;c&lt;e.geometry.geometries.length;c++)tt(t,{id:l,geometry:e.geometry.geometries[c],properties:e.properties},r,n);return}throw new Error(&quot;Input data is not a valid GeoJSON object.&quot;)}for(c=0;c&lt;i.length;c++){var u=[];nt(i[c],u,o,!0),s.push(u)}}t.push(Q(l,a,s,e.properties))}}function et(t,e){e.push(it(t[0])),e.push(at(t[1])),e.push(0)}function rt(t,e,r,n){for(var i,a,o=0,s=0;s&lt;t.length;s++){var l=it(t[s][0]),c=at(t[s][1]);e.push(l),e.push(c),e.push(0),s&gt;0&amp;&amp;(o+=n?(i*c-l*a)/2:Math.sqrt(Math.pow(l-i,2)+Math.pow(c-a,2))),i=l,a=c}var u=e.length-3;e[2]=1,function t(e,r,n,i){for(var a,o=i,s=n-r&gt;&gt;1,l=n-r,c=e[r],u=e[r+1],f=e[n],h=e[n+1],p=r+3;p&lt;n;p+=3){var d=K(e[p],e[p+1],c,u,f,h);if(d&gt;o)a=p,o=d;else if(d===o){var m=Math.abs(p-s);m&lt;l&amp;&amp;(a=p,l=m)}}o&gt;i&amp;&amp;(a-r&gt;3&amp;&amp;t(e,r,a,i),e[a+2]=o,n-a&gt;3&amp;&amp;t(e,a,n,i))}(e,0,u,r),e[u+2]=1,e.size=Math.abs(o),e.start=0,e.end=e.size}function nt(t,e,r,n){for(var i=0;i&lt;t.length;i++){var a=[];rt(t[i],a,r,n),e.push(a)}}function it(t){return t/360+.5}function at(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function ot(t,e,r,n,i,a,o,s){if(n/=e,a&gt;=(r/=e)&amp;&amp;o&lt;n)return t;if(o&lt;r||a&gt;=n)return null;for(var l=[],c=0;c&lt;t.length;c++){var u=t[c],f=u.geometry,h=u.type,p=0===i?u.minX:u.minY,d=0===i?u.maxX:u.maxY;if(p&gt;=r&amp;&amp;d&lt;n)l.push(u);else if(!(d&lt;r||p&gt;=n)){var m=[];if(&quot;Point&quot;===h||&quot;MultiPoint&quot;===h)st(f,m,r,n,i);else if(&quot;LineString&quot;===h)lt(f,m,r,n,i,!1,s.lineMetrics);else if(&quot;MultiLineString&quot;===h)ut(f,m,r,n,i,!1);else if(&quot;Polygon&quot;===h)ut(f,m,r,n,i,!0);else if(&quot;MultiPolygon&quot;===h)for(var g=0;g&lt;f.length;g++){var v=[];ut(f[g],v,r,n,i,!0),v.length&amp;&amp;m.push(v)}if(m.length){if(s.lineMetrics&amp;&amp;&quot;LineString&quot;===h){for(g=0;g&lt;m.length;g++)l.push(Q(u.id,h,m[g],u.tags));continue}&quot;LineString&quot;!==h&amp;&amp;&quot;MultiLineString&quot;!==h||(1===m.length?(h=&quot;LineString&quot;,m=m[0]):h=&quot;MultiLineString&quot;),&quot;Point&quot;!==h&amp;&amp;&quot;MultiPoint&quot;!==h||(h=3===m.length?&quot;Point&quot;:&quot;MultiPoint&quot;),l.push(Q(u.id,h,m,u.tags))}}}return l.length?l:null}function st(t,e,r,n,i){for(var a=0;a&lt;t.length;a+=3){var o=t[a+i];o&gt;=r&amp;&amp;o&lt;=n&amp;&amp;(e.push(t[a]),e.push(t[a+1]),e.push(t[a+2]))}}function lt(t,e,r,n,i,a,o){for(var s,l,c=ct(t),u=0===i?ht:pt,f=t.start,h=0;h&lt;t.length-3;h+=3){var p=t[h],d=t[h+1],m=t[h+2],g=t[h+3],v=t[h+4],y=0===i?p:d,x=0===i?g:v,b=!1;o&amp;&amp;(s=Math.sqrt(Math.pow(p-g,2)+Math.pow(d-v,2))),y&lt;r?x&gt;r&amp;&amp;(l=u(c,p,d,g,v,r),o&amp;&amp;(c.start=f+s*l)):y&gt;n?x&lt;n&amp;&amp;(l=u(c,p,d,g,v,n),o&amp;&amp;(c.start=f+s*l)):ft(c,p,d,m),x&lt;r&amp;&amp;y&gt;=r&amp;&amp;(l=u(c,p,d,g,v,r),b=!0),x&gt;n&amp;&amp;y&lt;=n&amp;&amp;(l=u(c,p,d,g,v,n),b=!0),!a&amp;&amp;b&amp;&amp;(o&amp;&amp;(c.end=f+s*l),e.push(c),c=ct(t)),o&amp;&amp;(f+=s)}var _=t.length-3;p=t[_],d=t[_+1],m=t[_+2],(y=0===i?p:d)&gt;=r&amp;&amp;y&lt;=n&amp;&amp;ft(c,p,d,m),_=c.length-3,a&amp;&amp;_&gt;=3&amp;&amp;(c[_]!==c[0]||c[_+1]!==c[1])&amp;&amp;ft(c,c[0],c[1],c[2]),c.length&amp;&amp;e.push(c)}function ct(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function ut(t,e,r,n,i,a){for(var o=0;o&lt;t.length;o++)lt(t[o],e,r,n,i,a,!1)}function ft(t,e,r,n){t.push(e),t.push(r),t.push(n)}function ht(t,e,r,n,i,a){var o=(a-e)/(n-e);return t.push(a),t.push(r+(i-r)*o),t.push(1),o}function pt(t,e,r,n,i,a){var o=(a-r)/(i-r);return t.push(e+(n-e)*o),t.push(a),t.push(1),o}function dt(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i,a=t[n],o=a.type;if(&quot;Point&quot;===o||&quot;MultiPoint&quot;===o||&quot;LineString&quot;===o)i=mt(a.geometry,e);else if(&quot;MultiLineString&quot;===o||&quot;Polygon&quot;===o){i=[];for(var s=0;s&lt;a.geometry.length;s++)i.push(mt(a.geometry[s],e))}else if(&quot;MultiPolygon&quot;===o)for(i=[],s=0;s&lt;a.geometry.length;s++){for(var l=[],c=0;c&lt;a.geometry[s].length;c++)l.push(mt(a.geometry[s][c],e));i.push(l)}r.push(Q(a.id,o,i,a.tags))}return r}function mt(t,e){var r=[];r.size=t.size,void 0!==t.start&amp;&amp;(r.start=t.start,r.end=t.end);for(var n=0;n&lt;t.length;n+=3)r.push(t[n]+e,t[n+1],t[n+2]);return r}function gt(t,e){if(t.transformed)return t;var r,n,i,a=1&lt;&lt;t.z,o=t.x,s=t.y;for(r=0;r&lt;t.features.length;r++){var l=t.features[r],c=l.geometry,u=l.type;if(l.geometry=[],1===u)for(n=0;n&lt;c.length;n+=2)l.geometry.push(vt(c[n],c[n+1],e,a,o,s));else for(n=0;n&lt;c.length;n++){var f=[];for(i=0;i&lt;c[n].length;i+=2)f.push(vt(c[n][i],c[n][i+1],e,a,o,s));l.geometry.push(f)}}return t.transformed=!0,t}function vt(t,e,r,n,i,a){return[Math.round(r*(t*n-i)),Math.round(r*(e*n-a))]}function yt(t,e,r,n,i){for(var a=e===i.maxZoom?0:i.tolerance/((1&lt;&lt;e)*i.extent),o={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:r,y:n,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s&lt;t.length;s++){o.numFeatures++,xt(o,t[s],a,i);var l=t[s].minX,c=t[s].minY,u=t[s].maxX,f=t[s].maxY;l&lt;o.minX&amp;&amp;(o.minX=l),c&lt;o.minY&amp;&amp;(o.minY=c),u&gt;o.maxX&amp;&amp;(o.maxX=u),f&gt;o.maxY&amp;&amp;(o.maxY=f)}return o}function xt(t,e,r,n){var i=e.geometry,a=e.type,o=[];if(&quot;Point&quot;===a||&quot;MultiPoint&quot;===a)for(var s=0;s&lt;i.length;s+=3)o.push(i[s]),o.push(i[s+1]),t.numPoints++,t.numSimplified++;else if(&quot;LineString&quot;===a)bt(o,i,t,r,!1,!1);else if(&quot;MultiLineString&quot;===a||&quot;Polygon&quot;===a)for(s=0;s&lt;i.length;s++)bt(o,i[s],t,r,&quot;Polygon&quot;===a,0===s);else if(&quot;MultiPolygon&quot;===a)for(var l=0;l&lt;i.length;l++){var c=i[l];for(s=0;s&lt;c.length;s++)bt(o,c[s],t,r,!0,0===s)}if(o.length){var u=e.tags||null;if(&quot;LineString&quot;===a&amp;&amp;n.lineMetrics){for(var f in u={},e.tags)u[f]=e.tags[f];u.mapbox_clip_start=i.start/i.size,u.mapbox_clip_end=i.end/i.size}var h={geometry:o,type:&quot;Polygon&quot;===a||&quot;MultiPolygon&quot;===a?3:&quot;LineString&quot;===a||&quot;MultiLineString&quot;===a?2:1,tags:u};null!==e.id&amp;&amp;(h.id=e.id),t.features.push(h)}}function bt(t,e,r,n,i,a){var o=n*n;if(n&gt;0&amp;&amp;e.size&lt;(i?o:n))r.numPoints+=e.length/3;else{for(var s=[],l=0;l&lt;e.length;l+=3)(0===n||e[l+2]&gt;o)&amp;&amp;(r.numSimplified++,s.push(e[l]),s.push(e[l+1])),r.numPoints++;i&amp;&amp;function(t,e){for(var r=0,n=0,i=t.length,a=i-2;n&lt;i;a=n,n+=2)r+=(t[n]-t[a])*(t[n+1]+t[a+1]);if(r&gt;0===e)for(n=0,i=t.length;n&lt;i/2;n+=2){var o=t[n],s=t[n+1];t[n]=t[i-2-n],t[n+1]=t[i-1-n],t[i-2-n]=o,t[i-1-n]=s}}(s,a),t.push(s)}}function _t(t,e){var r=(e=this.options=function(t,e){for(var r in e)t[r]=e[r];return t}(Object.create(this.options),e)).debug;if(r&amp;&amp;console.time(&quot;preprocess data&quot;),e.maxZoom&lt;0||e.maxZoom&gt;24)throw new Error(&quot;maxZoom should be in the 0-24 range&quot;);if(e.promoteId&amp;&amp;e.generateId)throw new Error(&quot;promoteId and generateId cannot be used together.&quot;);var n=function(t,e){var r=[];if(&quot;FeatureCollection&quot;===t.type)for(var n=0;n&lt;t.features.length;n++)tt(r,t.features[n],e,n);else&quot;Feature&quot;===t.type?tt(r,t,e):tt(r,{geometry:t},e);return r}(t,e);this.tiles={},this.tileCoords=[],r&amp;&amp;(console.timeEnd(&quot;preprocess data&quot;),console.log(&quot;index: maxZoom: %d, maxPoints: %d&quot;,e.indexMaxZoom,e.indexMaxPoints),console.time(&quot;generate tiles&quot;),this.stats={},this.total=0),(n=function(t,e){var r=e.buffer/e.extent,n=t,i=ot(t,1,-1-r,r,0,-1,2,e),a=ot(t,1,1-r,2+r,0,-1,2,e);return(i||a)&amp;&amp;(n=ot(t,1,-r,1+r,0,-1,2,e)||[],i&amp;&amp;(n=dt(i,1).concat(n)),a&amp;&amp;(n=n.concat(dt(a,-1)))),n}(n,e)).length&amp;&amp;this.splitTile(n,0,0,0),r&amp;&amp;(n.length&amp;&amp;console.log(&quot;features: %d, points: %d&quot;,this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd(&quot;generate tiles&quot;),console.log(&quot;tiles generated:&quot;,this.total,JSON.stringify(this.stats)))}function wt(t,e,r){return 32*((1&lt;&lt;t)*r+e)+t}function Tt(t,e){var r=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);var n=this._geoJSONIndex.getTile(r.z,r.x,r.y);if(!n)return e(null,null);var i=new g(n.features),a=_(i);0===a.byteOffset&amp;&amp;a.byteLength===a.buffer.byteLength||(a=new Uint8Array(a)),e(null,{vectorTile:i,rawData:a.buffer})}U.prototype.load=function(t){var e=this.options,r=e.log,n=e.minZoom,i=e.maxZoom,a=e.nodeSize;r&amp;&amp;console.time(&quot;total time&quot;);var o=&quot;prepare &quot;+t.length+&quot; points&quot;;r&amp;&amp;console.time(o),this.points=t;for(var s=[],l=0;l&lt;t.length;l++)t[l].geometry&amp;&amp;s.push(H(t[l],l));this.trees[i+1]=new N(s,Z,J,a,Float32Array),r&amp;&amp;console.timeEnd(o);for(var c=i;c&gt;=n;c--){var u=+Date.now();s=this._cluster(s,c),this.trees[c]=new N(s,Z,J,a,Float32Array),r&amp;&amp;console.log(&quot;z%d: %d clusters in %dms&quot;,c,s.length,+Date.now()-u)}return r&amp;&amp;console.timeEnd(&quot;total time&quot;),this},U.prototype.getClusters=function(t,e){var r=((t[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]&gt;=360)r=-180,i=180;else if(r&gt;i){var o=this.getClusters([r,n,180,a],e),s=this.getClusters([-180,n,i,a],e);return o.concat(s)}for(var l=this.trees[this._limitZoom(e)],c=[],u=0,f=l.range(Y(r),W(a),Y(i),W(n));u&lt;f.length;u+=1){var h=f[u],p=l.points[h];c.push(p.numPoints?q(p):this.points[p.index])}return c},U.prototype.getChildren=function(t){var e=this._getOriginId(t),r=this._getOriginZoom(t),n=&quot;No cluster with the specified id.&quot;,i=this.trees[r];if(!i)throw new Error(n);var a=i.points[e];if(!a)throw new Error(n);for(var o=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=[],l=0,c=i.within(a.x,a.y,o);l&lt;c.length;l+=1){var u=c[l],f=i.points[u];f.parentId===t&amp;&amp;s.push(f.numPoints?q(f):this.points[f.index])}if(0===s.length)throw new Error(n);return s},U.prototype.getLeaves=function(t,e,r){e=e||10,r=r||0;var n=[];return this._appendLeaves(n,t,e,r,0),n},U.prototype.getTile=function(t,e,r){var n=this.trees[this._limitZoom(t)],i=Math.pow(2,t),a=this.options,o=a.extent,s=a.radius/o,l=(r-s)/i,c=(r+1+s)/i,u={features:[]};return this._addTileFeatures(n.range((e-s)/i,l,(e+1+s)/i,c),n.points,e,r,i,u),0===e&amp;&amp;this._addTileFeatures(n.range(1-s/i,l,1,c),n.points,i,r,i,u),e===i-1&amp;&amp;this._addTileFeatures(n.range(0,l,s/i,c),n.points,-1,r,i,u),u.features.length?u:null},U.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e&lt;=this.options.maxZoom;){var r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e},U.prototype._appendLeaves=function(t,e,r,n,i){for(var a=0,o=this.getChildren(e);a&lt;o.length;a+=1){var s=o[a],l=s.properties;if(l&amp;&amp;l.cluster?i+l.point_count&lt;=n?i+=l.point_count:i=this._appendLeaves(t,l.cluster_id,r,n,i):i&lt;n?i++:t.push(s),t.length===r)break}return i},U.prototype._addTileFeatures=function(t,e,r,n,i,a){for(var o=0,s=t;o&lt;s.length;o+=1){var l=e[s[o]],c=l.numPoints,u={type:1,geometry:[[Math.round(this.options.extent*(l.x*i-r)),Math.round(this.options.extent*(l.y*i-n))]],tags:c?G(l):this.points[l.index].properties},f=void 0;c?f=l.id:this.options.generateId?f=l.index:this.points[l.index].id&amp;&amp;(f=this.points[l.index].id),void 0!==f&amp;&amp;(u.id=f),a.features.push(u)}},U.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},U.prototype._cluster=function(t,e){for(var r=[],n=this.options,i=n.radius,a=n.extent,o=n.reduce,s=i/(a*Math.pow(2,e)),l=0;l&lt;t.length;l++){var c=t[l];if(!(c.zoom&lt;=e)){c.zoom=e;for(var u=this.trees[e+1],f=u.within(c.x,c.y,s),h=c.numPoints||1,p=c.x*h,d=c.y*h,m=o&amp;&amp;h&gt;1?this._map(c,!0):null,g=(l&lt;&lt;5)+(e+1)+this.points.length,v=0,y=f;v&lt;y.length;v+=1){var x=y[v],b=u.points[x];if(!(b.zoom&lt;=e)){b.zoom=e;var _=b.numPoints||1;p+=b.x*_,d+=b.y*_,h+=_,b.parentId=g,o&amp;&amp;(m||(m=this._map(c,!0)),o(m,this._map(b)))}}1===h?r.push(c):(c.parentId=g,r.push(V(p/h,d/h,g,h,m)))}}return r},U.prototype._getOriginId=function(t){return t-this.points.length&gt;&gt;5},U.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},U.prototype._map=function(t,e){if(t.numPoints)return e?X({},t.properties):t.properties;var r=this.points[t.index].properties,n=this.options.map(r);return e&amp;&amp;n===r?X({},n):n},_t.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},_t.prototype.splitTile=function(t,e,r,n,i,a,o){for(var s=[t,e,r,n],l=this.options,c=l.debug;s.length;){n=s.pop(),r=s.pop(),e=s.pop(),t=s.pop();var u=1&lt;&lt;e,f=wt(e,r,n),h=this.tiles[f];if(!h&amp;&amp;(c&gt;1&amp;&amp;console.time(&quot;creation&quot;),h=this.tiles[f]=yt(t,e,r,n,l),this.tileCoords.push({z:e,x:r,y:n}),c)){c&gt;1&amp;&amp;(console.log(&quot;tile z%d-%d-%d (features: %d, points: %d, simplified: %d)&quot;,e,r,n,h.numFeatures,h.numPoints,h.numSimplified),console.timeEnd(&quot;creation&quot;));var p=&quot;z&quot;+e;this.stats[p]=(this.stats[p]||0)+1,this.total++}if(h.source=t,i){if(e===l.maxZoom||e===i)continue;var d=1&lt;&lt;i-e;if(r!==Math.floor(a/d)||n!==Math.floor(o/d))continue}else if(e===l.indexMaxZoom||h.numPoints&lt;=l.indexMaxPoints)continue;if(h.source=null,0!==t.length){c&gt;1&amp;&amp;console.time(&quot;clipping&quot;);var m,g,v,y,x,b,_=.5*l.buffer/l.extent,w=.5-_,T=.5+_,k=1+_;m=g=v=y=null,x=ot(t,u,r-_,r+T,0,h.minX,h.maxX,l),b=ot(t,u,r+w,r+k,0,h.minX,h.maxX,l),t=null,x&amp;&amp;(m=ot(x,u,n-_,n+T,1,h.minY,h.maxY,l),g=ot(x,u,n+w,n+k,1,h.minY,h.maxY,l),x=null),b&amp;&amp;(v=ot(b,u,n-_,n+T,1,h.minY,h.maxY,l),y=ot(b,u,n+w,n+k,1,h.minY,h.maxY,l),b=null),c&gt;1&amp;&amp;console.timeEnd(&quot;clipping&quot;),s.push(m||[],e+1,2*r,2*n),s.push(g||[],e+1,2*r,2*n+1),s.push(v||[],e+1,2*r+1,2*n),s.push(y||[],e+1,2*r+1,2*n+1)}}},_t.prototype.getTile=function(t,e,r){var n=this.options,i=n.extent,a=n.debug;if(t&lt;0||t&gt;24)return null;var o=1&lt;&lt;t,s=wt(t,e=(e%o+o)%o,r);if(this.tiles[s])return gt(this.tiles[s],i);a&gt;1&amp;&amp;console.log(&quot;drilling down to z%d-%d-%d&quot;,t,e,r);for(var l,c=t,u=e,f=r;!l&amp;&amp;c&gt;0;)c--,u=Math.floor(u/2),f=Math.floor(f/2),l=this.tiles[wt(c,u,f)];return l&amp;&amp;l.source?(a&gt;1&amp;&amp;console.log(&quot;found parent tile z%d-%d-%d&quot;,c,u,f),a&gt;1&amp;&amp;console.time(&quot;drilling down&quot;),this.splitTile(l.source,c,u,f,t,e,r),a&gt;1&amp;&amp;console.timeEnd(&quot;drilling down&quot;),this.tiles[s]?gt(this.tiles[s],i):null):null};var kt=function(e){function r(t,r,n,i){e.call(this,t,r,n,Tt),i&amp;&amp;(this.loadGeoJSON=i)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.loadData=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&amp;&amp;&quot;Idle&quot;!==this._state?this._state=&quot;NeedsLoadData&quot;:(this._state=&quot;Coalescing&quot;,this._loadData())},r.prototype._loadData=function(){var e=this;if(this._pendingCallback&amp;&amp;this._pendingLoadDataParams){var r=this._pendingCallback,n=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var i=!!(n&amp;&amp;n.request&amp;&amp;n.request.collectResourceTiming)&amp;&amp;new t.RequestPerformance(n.request);this.loadGeoJSON(n,(function(a,o){if(a||!o)return r(a);if(&quot;object&quot;!=typeof o)return r(new Error(&quot;Input data given to '&quot;+n.source+&quot;' is not a valid GeoJSON object.&quot;));f(o,!0);try{e._geoJSONIndex=n.cluster?new U(function(e){var r=e.superclusterOptions,n=e.clusterProperties;if(!n||!r)return r;for(var i={},a={},o={accumulated:null,zoom:0},s={properties:null},l=Object.keys(n),c=0,u=l;c&lt;u.length;c+=1){var f=u[c],h=n[f],p=h[0],d=h[1],m=t.createExpression(d),g=t.createExpression(&quot;string&quot;==typeof p?[p,[&quot;accumulated&quot;],[&quot;get&quot;,f]]:p);i[f]=m.value,a[f]=g.value}return r.map=function(t){s.properties=t;for(var e={},r=0,n=l;r&lt;n.length;r+=1){var a=n[r];e[a]=i[a].evaluate(o,s)}return e},r.reduce=function(t,e){s.properties=e;for(var r=0,n=l;r&lt;n.length;r+=1){var i=n[r];o.accumulated=t[i],t[i]=a[i].evaluate(o,s)}},r}(n)).load(o.features):function(t,e){return new _t(t,e)}(o,n.geojsonVtOptions)}catch(a){return r(a)}e.loaded={};var s={};if(i){var l=i.finish();l&amp;&amp;(s.resourceTiming={},s.resourceTiming[n.source]=JSON.parse(JSON.stringify(l)))}r(null,s)}))}},r.prototype.coalesce=function(){&quot;Coalescing&quot;===this._state?this._state=&quot;Idle&quot;:&quot;NeedsLoadData&quot;===this._state&amp;&amp;(this._state=&quot;Coalescing&quot;,this._loadData())},r.prototype.reloadTile=function(t,r){var n=this.loaded,i=t.uid;return n&amp;&amp;n[i]?e.prototype.reloadTile.call(this,t,r):this.loadTile(t,r)},r.prototype.loadGeoJSON=function(e,r){if(e.request)t.getJSON(e.request,r);else{if(&quot;string&quot;!=typeof e.data)return r(new Error(&quot;Input data given to '&quot;+e.source+&quot;' is not a valid GeoJSON object.&quot;));try{return r(null,JSON.parse(e.data))}catch(t){return r(new Error(&quot;Input data given to '&quot;+e.source+&quot;' is not a valid GeoJSON object.&quot;))}}},r.prototype.removeSource=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),e()},r.prototype.getClusterExpansionZoom=function(t,e){try{e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterChildren=function(t,e){try{e(null,this._geoJSONIndex.getChildren(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterLeaves=function(t,e){try{e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))}catch(t){e(t)}},r}(l);var At=function(e){var r=this;this.self=e,this.actor=new t.Actor(e,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:l,geojson:kt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(r.workerSourceTypes[t])throw new Error('Worker source with name &quot;'+t+'&quot; already registered.');r.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(e){if(t.plugin.isParsed())throw new Error(&quot;RTL text plugin already registered.&quot;);t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText,t.plugin.processStyledBidirectionalText=e.processStyledBidirectionalText}};return At.prototype.setReferrer=function(t,e){this.referrer=e},At.prototype.setImages=function(t,e,r){for(var n in this.availableImages[t]=e,this.workerSources[t]){var i=this.workerSources[t][n];for(var a in i)i[a].availableImages=e}r()},At.prototype.setLayers=function(t,e,r){this.getLayerIndex(t).replace(e),r()},At.prototype.updateLayers=function(t,e,r){this.getLayerIndex(t).update(e.layers,e.removedIds),r()},At.prototype.loadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).loadTile(e,r)},At.prototype.loadDEMTile=function(t,e,r){this.getDEMWorkerSource(t,e.source).loadTile(e,r)},At.prototype.reloadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).reloadTile(e,r)},At.prototype.abortTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).abortTile(e,r)},At.prototype.removeTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).removeTile(e,r)},At.prototype.removeDEMTile=function(t,e){this.getDEMWorkerSource(t,e.source).removeTile(e)},At.prototype.removeSource=function(t,e,r){if(this.workerSources[t]&amp;&amp;this.workerSources[t][e.type]&amp;&amp;this.workerSources[t][e.type][e.source]){var n=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==n.removeSource?n.removeSource(e,r):r()}},At.prototype.loadWorkerSource=function(t,e,r){try{this.self.importScripts(e.url),r()}catch(t){r(t.toString())}},At.prototype.syncRTLPluginState=function(e,r,n){try{t.plugin.setState(r);var i=t.plugin.getPluginURL();if(t.plugin.isLoaded()&amp;&amp;!t.plugin.isParsed()&amp;&amp;null!=i){this.self.importScripts(i);var a=t.plugin.isParsed();n(a?void 0:new Error(&quot;RTL Text Plugin failed to import scripts from &quot;+i),a)}}catch(t){n(t.toString())}},At.prototype.getAvailableImages=function(t){var e=this.availableImages[t];return e||(e=[]),e},At.prototype.getLayerIndex=function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new n),e},At.prototype.getWorkerSource=function(t,e,r){var n=this;if(this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),!this.workerSources[t][e][r]){var i={send:function(e,r,i){n.actor.send(e,r,i,t)}};this.workerSources[t][e][r]=new this.workerSourceTypes[e](i,this.getLayerIndex(t),this.getAvailableImages(t))}return this.workerSources[t][e][r]},At.prototype.getDEMWorkerSource=function(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new u),this.demWorkerSources[t][e]},At.prototype.enforceCacheSizeLimit=function(e,r){t.enforceCacheSizeLimit(r)},&quot;undefined&quot;!=typeof WorkerGlobalScope&amp;&amp;void 0!==t.window&amp;&amp;t.window instanceof WorkerGlobalScope&amp;&amp;(t.window.worker=new At(t.window)),At})),n(0,(function(t){var e=t.createCommonjsModule((function(t){function e(t){return!r(t)}function r(t){return&quot;undefined&quot;==typeof window||&quot;undefined&quot;==typeof document?&quot;not a browser&quot;:Array.prototype&amp;&amp;Array.prototype.every&amp;&amp;Array.prototype.filter&amp;&amp;Array.prototype.forEach&amp;&amp;Array.prototype.indexOf&amp;&amp;Array.prototype.lastIndexOf&amp;&amp;Array.prototype.map&amp;&amp;Array.prototype.some&amp;&amp;Array.prototype.reduce&amp;&amp;Array.prototype.reduceRight&amp;&amp;Array.isArray?Function.prototype&amp;&amp;Function.prototype.bind?Object.keys&amp;&amp;Object.create&amp;&amp;Object.getPrototypeOf&amp;&amp;Object.getOwnPropertyNames&amp;&amp;Object.isSealed&amp;&amp;Object.isFrozen&amp;&amp;Object.isExtensible&amp;&amp;Object.getOwnPropertyDescriptor&amp;&amp;Object.defineProperty&amp;&amp;Object.defineProperties&amp;&amp;Object.seal&amp;&amp;Object.freeze&amp;&amp;Object.preventExtensions?&quot;JSON&quot;in window&amp;&amp;&quot;parse&quot;in JSON&amp;&amp;&quot;stringify&quot;in JSON?function(){if(!(&quot;Worker&quot;in window&amp;&amp;&quot;Blob&quot;in window&amp;&amp;&quot;URL&quot;in window))return!1;var t,e,r=new Blob([&quot;&quot;],{type:&quot;text/javascript&quot;}),n=URL.createObjectURL(r);try{e=new Worker(n),t=!0}catch(e){t=!1}e&amp;&amp;e.terminate();return URL.revokeObjectURL(n),t}()?&quot;Uint8ClampedArray&quot;in window?ArrayBuffer.isView?function(){var t=document.createElement(&quot;canvas&quot;);t.width=t.height=1;var e=t.getContext(&quot;2d&quot;);if(!e)return!1;var r=e.getImageData(0,0,1,1);return r&amp;&amp;r.width===t.width}()?function(t){void 0===n[t]&amp;&amp;(n[t]=function(t){var r=function(t){var r=document.createElement(&quot;canvas&quot;),n=Object.create(e.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=t,r.probablySupportsContext?r.probablySupportsContext(&quot;webgl&quot;,n)||r.probablySupportsContext(&quot;experimental-webgl&quot;,n):r.supportsContext?r.supportsContext(&quot;webgl&quot;,n)||r.supportsContext(&quot;experimental-webgl&quot;,n):r.getContext(&quot;webgl&quot;,n)||r.getContext(&quot;experimental-webgl&quot;,n)}(t);if(!r)return!1;var n=r.createShader(r.VERTEX_SHADER);if(!n||r.isContextLost())return!1;return r.shaderSource(n,&quot;void main() {}&quot;),r.compileShader(n),!0===r.getShaderParameter(n,r.COMPILE_STATUS)}(t));return n[t]}(t&amp;&amp;t.failIfMajorPerformanceCaveat)?void 0:&quot;insufficient WebGL support&quot;:&quot;insufficient Canvas/getImageData support&quot;:&quot;insufficient ArrayBuffer support&quot;:&quot;insufficient Uint8ClampedArray support&quot;:&quot;insufficient worker support&quot;:&quot;insufficient JSON support&quot;:&quot;insufficient Object support&quot;:&quot;insufficient Function support&quot;:&quot;insufficent Array support&quot;}t.exports?t.exports=e:window&amp;&amp;(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=e,window.mapboxgl.notSupportedReason=r);var n={};e.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}})),r={create:function(e,r,n){var i=t.window.document.createElement(e);return void 0!==r&amp;&amp;(i.className=r),n&amp;&amp;n.appendChild(i),i},createNS:function(e,r){return t.window.document.createElementNS(e,r)}},n=t.window.document.documentElement.style;function i(t){if(!n)return t[0];for(var e=0;e&lt;t.length;e++)if(t[e]in n)return t[e];return t[0]}var a,o=i([&quot;userSelect&quot;,&quot;MozUserSelect&quot;,&quot;WebkitUserSelect&quot;,&quot;msUserSelect&quot;]);r.disableDrag=function(){n&amp;&amp;o&amp;&amp;(a=n[o],n[o]=&quot;none&quot;)},r.enableDrag=function(){n&amp;&amp;o&amp;&amp;(n[o]=a)};var s=i([&quot;transform&quot;,&quot;WebkitTransform&quot;]);r.setTransform=function(t,e){t.style[s]=e};var l=!1;try{var c=Object.defineProperty({},&quot;passive&quot;,{get:function(){l=!0}});t.window.addEventListener(&quot;test&quot;,c,c),t.window.removeEventListener(&quot;test&quot;,c,c)}catch(t){l=!1}r.addEventListener=function(t,e,r,n){void 0===n&amp;&amp;(n={}),&quot;passive&quot;in n&amp;&amp;l?t.addEventListener(e,r,n):t.addEventListener(e,r,n.capture)},r.removeEventListener=function(t,e,r,n){void 0===n&amp;&amp;(n={}),&quot;passive&quot;in n&amp;&amp;l?t.removeEventListener(e,r,n):t.removeEventListener(e,r,n.capture)};var u=function(e){e.preventDefault(),e.stopPropagation(),t.window.removeEventListener(&quot;click&quot;,u,!0)};function f(t){var e=t.userImage;if(e&amp;&amp;e.render&amp;&amp;e.render())return t.data.replace(new Uint8Array(e.data.buffer)),!0;return!1}r.suppressClick=function(){t.window.addEventListener(&quot;click&quot;,u,!0),t.window.setTimeout((function(){t.window.removeEventListener(&quot;click&quot;,u,!0)}),0)},r.mousePos=function(e,r){var n=e.getBoundingClientRect();return new t.Point(r.clientX-n.left-e.clientLeft,r.clientY-n.top-e.clientTop)},r.touchPos=function(e,r){for(var n=e.getBoundingClientRect(),i=[],a=0;a&lt;r.length;a++)i.push(new t.Point(r[a].clientX-n.left-e.clientLeft,r[a].clientY-n.top-e.clientTop));return i},r.mouseButton=function(e){return void 0!==t.window.InstallTrigger&amp;&amp;2===e.button&amp;&amp;e.ctrlKey&amp;&amp;t.window.navigator.platform.toUpperCase().indexOf(&quot;MAC&quot;)&gt;=0?0:e.button},r.remove=function(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)};var h=function(e){function r(){e.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.isLoaded=function(){return this.loaded},r.prototype.setLoaded=function(t){if(this.loaded!==t&amp;&amp;(this.loaded=t,t)){for(var e=0,r=this.requestors;e&lt;r.length;e+=1){var n=r[e],i=n.ids,a=n.callback;this._notify(i,a)}this.requestors=[]}},r.prototype.getImage=function(t){return this.images[t]},r.prototype.addImage=function(t,e){this._validate(t,e)&amp;&amp;(this.images[t]=e)},r.prototype._validate=function(e,r){var n=!0;return this._validateStretch(r.stretchX,r.data&amp;&amp;r.data.width)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;stretchX&quot; value'))),n=!1),this._validateStretch(r.stretchY,r.data&amp;&amp;r.data.height)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;stretchY&quot; value'))),n=!1),this._validateContent(r.content,r)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;content&quot; value'))),n=!1),n},r.prototype._validateStretch=function(t,e){if(!t)return!0;for(var r=0,n=0,i=t;n&lt;i.length;n+=1){var a=i[n];if(a[0]&lt;r||a[1]&lt;a[0]||e&lt;a[1])return!1;r=a[1]}return!0},r.prototype._validateContent=function(t,e){return!t||4===t.length&amp;&amp;(!(t[0]&lt;0||e.data.width&lt;t[0])&amp;&amp;(!(t[1]&lt;0||e.data.height&lt;t[1])&amp;&amp;(!(t[2]&lt;0||e.data.width&lt;t[2])&amp;&amp;(!(t[3]&lt;0||e.data.height&lt;t[3])&amp;&amp;(!(t[2]&lt;t[0])&amp;&amp;!(t[3]&lt;t[1]))))))},r.prototype.updateImage=function(t,e){var r=this.images[t];e.version=r.version+1,this.images[t]=e,this.updatedImages[t]=!0},r.prototype.removeImage=function(t){var e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&amp;&amp;e.userImage.onRemove&amp;&amp;e.userImage.onRemove()},r.prototype.listImages=function(){return Object.keys(this.images)},r.prototype.getImages=function(t,e){var r=!0;if(!this.isLoaded())for(var n=0,i=t;n&lt;i.length;n+=1){var a=i[n];this.images[a]||(r=!1)}this.isLoaded()||r?this._notify(t,e):this.requestors.push({ids:t,callback:e})},r.prototype._notify=function(e,r){for(var n={},i=0,a=e;i&lt;a.length;i+=1){var o=a[i];this.images[o]||this.fire(new t.Event(&quot;styleimagemissing&quot;,{id:o}));var s=this.images[o];s?n[o]={data:s.data.clone(),pixelRatio:s.pixelRatio,sdf:s.sdf,version:s.version,stretchX:s.stretchX,stretchY:s.stretchY,content:s.content,hasRenderCallback:Boolean(s.userImage&amp;&amp;s.userImage.render)}:t.warnOnce('Image &quot;'+o+'&quot; could not be loaded. Please make sure you have added the image with map.addImage() or a &quot;sprite&quot; property in your style. You can provide missing images by listening for the &quot;styleimagemissing&quot; map event.')}r(null,n)},r.prototype.getPixelSize=function(){var t=this.atlasImage;return{width:t.width,height:t.height}},r.prototype.getPattern=function(e){var r=this.patterns[e],n=this.getImage(e);if(!n)return null;if(r&amp;&amp;r.position.version===n.version)return r.position;if(r)r.position.version=n.version;else{var i={w:n.data.width+2,h:n.data.height+2,x:0,y:0},a=new t.ImagePosition(i,n);this.patterns[e]={bin:i,position:a}}return this._updatePatternAtlas(),this.patterns[e].position},r.prototype.bind=function(e){var r=e.gl;this.atlasTexture?this.dirty&amp;&amp;(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new t.Texture(e,this.atlasImage,r.RGBA),this.atlasTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)},r.prototype._updatePatternAtlas=function(){var e=[];for(var r in this.patterns)e.push(this.patterns[r].bin);var n=t.potpack(e),i=n.w,a=n.h,o=this.atlasImage;for(var s in o.resize({width:i||1,height:a||1}),this.patterns){var l=this.patterns[s].bin,c=l.x+1,u=l.y+1,f=this.images[s].data,h=f.width,p=f.height;t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u},{width:h,height:p}),t.RGBAImage.copy(f,o,{x:0,y:p-1},{x:c,y:u-1},{width:h,height:1}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u+p},{width:h,height:1}),t.RGBAImage.copy(f,o,{x:h-1,y:0},{x:c-1,y:u},{width:1,height:p}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c+h,y:u},{width:1,height:p})}this.dirty=!0},r.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},r.prototype.dispatchRenderCallbacks=function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var n=r[e];if(!this.callbackDispatchedThisFrame[n]){this.callbackDispatchedThisFrame[n]=!0;var i=this.images[n];f(i)&amp;&amp;this.updateImage(n,i)}}},r}(t.Evented);var p=g,d=g,m=1e20;function g(t,e,r,n,i,a){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=n||.25,this.fontFamily=i||&quot;sans-serif&quot;,this.fontWeight=a||&quot;normal&quot;,this.radius=r||8;var o=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement(&quot;canvas&quot;),this.canvas.width=this.canvas.height=o,this.ctx=this.canvas.getContext(&quot;2d&quot;),this.ctx.font=this.fontWeight+&quot; &quot;+this.fontSize+&quot;px &quot;+this.fontFamily,this.ctx.textBaseline=&quot;middle&quot;,this.ctx.fillStyle=&quot;black&quot;,this.gridOuter=new Float64Array(o*o),this.gridInner=new Float64Array(o*o),this.f=new Float64Array(o),this.d=new Float64Array(o),this.z=new Float64Array(o+1),this.v=new Int16Array(o),this.middle=Math.round(o/2*(navigator.userAgent.indexOf(&quot;Gecko/&quot;)&gt;=0?1.2:1))}function v(t,e,r,n,i,a,o){for(var s=0;s&lt;e;s++){for(var l=0;l&lt;r;l++)n[l]=t[l*e+s];for(y(n,i,a,o,r),l=0;l&lt;r;l++)t[l*e+s]=i[l]}for(l=0;l&lt;r;l++){for(s=0;s&lt;e;s++)n[s]=t[l*e+s];for(y(n,i,a,o,e),s=0;s&lt;e;s++)t[l*e+s]=Math.sqrt(i[s])}}function y(t,e,r,n,i){r[0]=0,n[0]=-m,n[1]=+m;for(var a=1,o=0;a&lt;i;a++){for(var s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);s&lt;=n[o];)o--,s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);r[++o]=a,n[o]=s,n[o+1]=+m}for(a=0,o=0;a&lt;i;a++){for(;n[o+1]&lt;a;)o++;e[a]=(a-r[o])*(a-r[o])+t[r[o]]}}g.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),r=new Uint8ClampedArray(this.size*this.size),n=0;n&lt;this.size*this.size;n++){var i=e.data[4*n+3]/255;this.gridOuter[n]=1===i?0:0===i?m:Math.pow(Math.max(0,.5-i),2),this.gridInner[n]=1===i?m:0===i?0:Math.pow(Math.max(0,i-.5),2)}for(v(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),v(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),n=0;n&lt;this.size*this.size;n++){var a=this.gridOuter[n]-this.gridInner[n];r[n]=Math.max(0,Math.min(255,Math.round(255-255*(a/this.radius+this.cutoff))))}return r},p.default=d;var x=function(t,e){this.requestManager=t,this.localIdeographFontFamily=e,this.entries={}};x.prototype.setURL=function(t){this.url=t},x.prototype.getGlyphs=function(e,r){var n=this,i=[];for(var a in e)for(var o=0,s=e[a];o&lt;s.length;o+=1){var l=s[o];i.push({stack:a,id:l})}t.asyncAll(i,(function(t,e){var r=t.stack,i=t.id,a=n.entries[r];a||(a=n.entries[r]={glyphs:{},requests:{},ranges:{}});var o=a.glyphs[i];if(void 0===o){if(o=n._tinySDF(a,r,i))return a.glyphs[i]=o,void e(null,{stack:r,id:i,glyph:o});var s=Math.floor(i/256);if(256*s&gt;65535)e(new Error(&quot;glyphs &gt; 65535 not supported&quot;));else if(a.ranges[s])e(null,{stack:r,id:i,glyph:o});else{var l=a.requests[s];l||(l=a.requests[s]=[],x.loadGlyphRange(r,s,n.url,n.requestManager,(function(t,e){if(e){for(var r in e)n._doesCharSupportLocalGlyph(+r)||(a.glyphs[+r]=e[+r]);a.ranges[s]=!0}for(var i=0,o=l;i&lt;o.length;i+=1){(0,o[i])(t,e)}delete a.requests[s]}))),l.push((function(t,n){t?e(t):n&amp;&amp;e(null,{stack:r,id:i,glyph:n[i]||null})}))}}else e(null,{stack:r,id:i,glyph:o})}),(function(t,e){if(t)r(t);else if(e){for(var n={},i=0,a=e;i&lt;a.length;i+=1){var o=a[i],s=o.stack,l=o.id,c=o.glyph;(n[s]||(n[s]={}))[l]=c&amp;&amp;{id:c.id,bitmap:c.bitmap.clone(),metrics:c.metrics}}r(null,n)}}))},x.prototype._doesCharSupportLocalGlyph=function(e){return!!this.localIdeographFontFamily&amp;&amp;(t.isChar[&quot;CJK Unified Ideographs&quot;](e)||t.isChar[&quot;Hangul Syllables&quot;](e)||t.isChar.Hiragana(e)||t.isChar.Katakana(e))},x.prototype._tinySDF=function(e,r,n){var i=this.localIdeographFontFamily;if(i&amp;&amp;this._doesCharSupportLocalGlyph(n)){var a=e.tinySDF;if(!a){var o=&quot;400&quot;;/bold/i.test(r)?o=&quot;900&quot;:/medium/i.test(r)?o=&quot;500&quot;:/light/i.test(r)&amp;&amp;(o=&quot;200&quot;),a=e.tinySDF=new x.TinySDF(24,3,8,.25,i,o)}return{id:n,bitmap:new t.AlphaImage({width:30,height:30},a.draw(String.fromCharCode(n))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},x.loadGlyphRange=function(e,r,n,i,a){var o=256*r,s=o+255,l=i.transformRequest(i.normalizeGlyphsURL(n).replace(&quot;{fontstack}&quot;,e).replace(&quot;{range}&quot;,o+&quot;-&quot;+s),t.ResourceType.Glyphs);t.getArrayBuffer(l,(function(e,r){if(e)a(e);else if(r){for(var n={},i=0,o=t.parseGlyphPBF(r);i&lt;o.length;i+=1){var s=o[i];n[s.id]=s}a(null,n)}}))},x.TinySDF=p;var b=function(){this.specification=t.styleSpec.light.position};b.prototype.possiblyEvaluate=function(e,r){return t.sphericalToCartesian(e.expression.evaluate(r))},b.prototype.interpolate=function(e,r,n){return{x:t.number(e.x,r.x,n),y:t.number(e.y,r.y,n),z:t.number(e.z,r.z,n)}};var _=new t.Properties({anchor:new t.DataConstantProperty(t.styleSpec.light.anchor),position:new b,color:new t.DataConstantProperty(t.styleSpec.light.color),intensity:new t.DataConstantProperty(t.styleSpec.light.intensity)}),w=function(e){function r(r){e.call(this),this._transitionable=new t.Transitionable(_),this.setLight(r),this._transitioning=this._transitionable.untransitioned()}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.getLight=function(){return this._transitionable.serialize()},r.prototype.setLight=function(e,r){if(void 0===r&amp;&amp;(r={}),!this._validate(t.validateLight,e,r))for(var n in e){var i=e[n];t.endsWith(n,&quot;-transition&quot;)?this._transitionable.setTransition(n.slice(0,-&quot;-transition&quot;.length),i):this._transitionable.setValue(n,i)}},r.prototype.updateTransitions=function(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)},r.prototype.hasTransition=function(){return this._transitioning.hasTransition()},r.prototype.recalculate=function(t){this.properties=this._transitioning.possiblyEvaluate(t)},r.prototype._validate=function(e,r,n){return(!n||!1!==n.validate)&amp;&amp;t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:r,style:{glyphs:!0,sprite:!0},styleSpec:t.styleSpec})))},r}(t.Evented),T=function(t,e){this.width=t,this.height=e,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}};T.prototype.getDash=function(t,e){var r=t.join(&quot;,&quot;)+String(e);return this.dashEntry[r]||(this.dashEntry[r]=this.addDash(t,e)),this.dashEntry[r]},T.prototype.getDashRanges=function(t,e,r){var n=[],i=t.length%2==1?-t[t.length-1]*r:0,a=t[0]*r,o=!0;n.push({left:i,right:a,isDash:o,zeroLength:0===t[0]});for(var s=t[0],l=1;l&lt;t.length;l++){o=!o;var c=t[l];i=s*r,a=(s+=c)*r,n.push({left:i,right:a,isDash:o,zeroLength:0===c})}return n},T.prototype.addRoundDash=function(t,e,r){for(var n=e/2,i=-r;i&lt;=r;i++)for(var a=this.nextRow+r+i,o=this.width*a,s=0,l=t[s],c=0;c&lt;this.width;c++){c/l.right&gt;1&amp;&amp;(l=t[++s]);var u=Math.abs(c-l.left),f=Math.abs(c-l.right),h=Math.min(u,f),p=void 0,d=i/r*(n+1);if(l.isDash){var m=n-Math.abs(d);p=Math.sqrt(h*h+m*m)}else p=n-Math.sqrt(h*h+d*d);this.data[o+c]=Math.max(0,Math.min(255,p+128))}},T.prototype.addRegularDash=function(t){for(var e=t.length-1;e&gt;=0;--e){var r=t[e],n=t[e+1];r.zeroLength?t.splice(e,1):n&amp;&amp;n.isDash===r.isDash&amp;&amp;(n.left=r.left,t.splice(e,1))}var i=t[0],a=t[t.length-1];i.isDash===a.isDash&amp;&amp;(i.left=a.left-this.width,a.right=i.right+this.width);for(var o=this.width*this.nextRow,s=0,l=t[s],c=0;c&lt;this.width;c++){c/l.right&gt;1&amp;&amp;(l=t[++s]);var u=Math.abs(c-l.left),f=Math.abs(c-l.right),h=Math.min(u,f),p=l.isDash?h:-h;this.data[o+c]=Math.max(0,Math.min(255,p+128))}},T.prototype.addDash=function(e,r){var n=r?7:0,i=2*n+1;if(this.nextRow+i&gt;this.height)return t.warnOnce(&quot;LineAtlas out of space&quot;),null;for(var a=0,o=0;o&lt;e.length;o++)a+=e[o];if(0!==a){var s=this.width/a,l=this.getDashRanges(e,this.width,s);r?this.addRoundDash(l,s,n):this.addRegularDash(l)}var c={y:(this.nextRow+n+.5)/this.height,height:2*n/this.height,width:a};return this.nextRow+=i,this.dirty=!0,c},T.prototype.bind=function(t){var e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&amp;&amp;(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.ALPHA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.ALPHA,this.width,this.height,0,e.ALPHA,e.UNSIGNED_BYTE,this.data))};var k=function e(r,n){this.workerPool=r,this.actors=[],this.currentActor=0,this.id=t.uniqueId();for(var i=this.workerPool.acquire(this.id),a=0;a&lt;i.length;a++){var o=i[a],s=new e.Actor(o,n,this.id);s.name=&quot;Worker &quot;+a,this.actors.push(s)}};function A(e,r,n){var i=function(i,a){if(i)return n(i);if(a){var o=t.pick(t.extend(a,e),[&quot;tiles&quot;,&quot;minzoom&quot;,&quot;maxzoom&quot;,&quot;attribution&quot;,&quot;mapbox_logo&quot;,&quot;bounds&quot;,&quot;scheme&quot;,&quot;tileSize&quot;,&quot;encoding&quot;]);a.vector_layers&amp;&amp;(o.vectorLayers=a.vector_layers,o.vectorLayerIds=o.vectorLayers.map((function(t){return t.id}))),o.tiles=r.canonicalizeTileset(o,e.url),n(null,o)}};return e.url?t.getJSON(r.transformRequest(r.normalizeSourceURL(e.url),t.ResourceType.Source),i):t.browser.frame((function(){return i(null,e)}))}k.prototype.broadcast=function(e,r,n){n=n||function(){},t.asyncAll(this.actors,(function(t,n){t.send(e,r,n)}),n)},k.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},k.prototype.remove=function(){this.actors.forEach((function(t){t.remove()})),this.actors=[],this.workerPool.release(this.id)},k.Actor=t.Actor;var M=function(e,r,n){this.bounds=t.LngLatBounds.convert(this.validateBounds(e)),this.minzoom=r||0,this.maxzoom=n||24};M.prototype.validateBounds=function(t){return Array.isArray(t)&amp;&amp;4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]},M.prototype.contains=function(e){var r=Math.pow(2,e.z),n=Math.floor(t.mercatorXfromLng(this.bounds.getWest())*r),i=Math.floor(t.mercatorYfromLat(this.bounds.getNorth())*r),a=Math.ceil(t.mercatorXfromLng(this.bounds.getEast())*r),o=Math.ceil(t.mercatorYfromLat(this.bounds.getSouth())*r);return e.x&gt;=n&amp;&amp;e.x&lt;a&amp;&amp;e.y&gt;=i&amp;&amp;e.y&lt;o};var S=function(e){function r(r,n,i,a){if(e.call(this),this.id=r,this.dispatcher=i,this.type=&quot;vector&quot;,this.minzoom=0,this.maxzoom=22,this.scheme=&quot;xyz&quot;,this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,t.extend(this,t.pick(n,[&quot;url&quot;,&quot;scheme&quot;,&quot;tileSize&quot;,&quot;promoteId&quot;])),this._options=t.extend({type:&quot;vector&quot;},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error(&quot;vector tile sources must have a tileSize of 512&quot;);this.setEventedParent(a)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._tileJSONRequest=A(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(t.extend(e,n),n.bounds&amp;&amp;(e.tileBounds=new M(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles,e.map._requestManager._customAccessToken),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken,e.map._requestManager._customAccessToken),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme)),i={request:this.map._requestManager.transformRequest(n,t.ResourceType.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function a(n,i){return delete e.request,e.aborted?r(null):n&amp;&amp;404!==n.status?r(n):(i&amp;&amp;i.resourceTiming&amp;&amp;(e.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&amp;&amp;i&amp;&amp;e.setExpiryData(i),e.loadVectorData(i,this.map.painter),t.cacheEntryPossiblyAdded(this.dispatcher),r(null),void(e.reloadCallback&amp;&amp;(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}i.request.collectResourceTiming=this._collectResourceTiming,e.actor&amp;&amp;&quot;expired&quot;!==e.state?&quot;loading&quot;===e.state?e.reloadCallback=r:e.request=e.actor.send(&quot;reloadTile&quot;,i,a.bind(this)):(e.actor=this.dispatcher.getActor(),e.request=e.actor.send(&quot;loadTile&quot;,i,a.bind(this)))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.actor&amp;&amp;t.actor.send(&quot;abortTile&quot;,{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.unloadTile=function(t){t.unloadVectorData(),t.actor&amp;&amp;t.actor.send(&quot;removeTile&quot;,{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.hasTransition=function(){return!1},r}(t.Evented),E=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.dispatcher=i,this.setEventedParent(a),this.type=&quot;raster&quot;,this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme=&quot;xyz&quot;,this.tileSize=512,this._loaded=!1,this._options=t.extend({type:&quot;raster&quot;},n),t.extend(this,t.pick(n,[&quot;url&quot;,&quot;scheme&quot;,&quot;tileSize&quot;]))}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._tileJSONRequest=A(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(t.extend(e,n),n.bounds&amp;&amp;(e.tileBounds=new M(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.loadTile=function(e,r){var n=this,i=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);e.request=t.getImage(this.map._requestManager.transformRequest(i,t.ResourceType.Tile),(function(i,a){if(delete e.request,e.aborted)e.state=&quot;unloaded&quot;,r(null);else if(i)e.state=&quot;errored&quot;,r(i);else if(a){n.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(a),delete a.cacheControl,delete a.expires;var o=n.map.painter.context,s=o.gl;e.texture=n.map.painter.getTileTexture(a.width),e.texture?e.texture.update(a,{useMipmap:!0}):(e.texture=new t.Texture(o,a,s.RGBA,{useMipmap:!0}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),o.extTextureFilterAnisotropic&amp;&amp;s.texParameterf(s.TEXTURE_2D,o.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,o.extTextureFilterAnisotropicMax)),e.state=&quot;loaded&quot;,t.cacheEntryPossiblyAdded(n.dispatcher),r(null)}}))},r.prototype.abortTile=function(t,e){t.request&amp;&amp;(t.request.cancel(),delete t.request),e()},r.prototype.unloadTile=function(t,e){t.texture&amp;&amp;this.map.painter.saveTileTexture(t.texture),e()},r.prototype.hasTransition=function(){return!1},r}(t.Evented),L=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),this.type=&quot;raster-dem&quot;,this.maxzoom=22,this._options=t.extend({type:&quot;raster-dem&quot;},n),this.encoding=n.encoding||&quot;mapbox&quot;}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.serialize=function(){return{type:&quot;raster-dem&quot;,url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);function i(t,n){t&amp;&amp;(e.state=&quot;errored&quot;,r(t)),n&amp;&amp;(e.dem=n,e.needsHillshadePrepare=!0,e.state=&quot;loaded&quot;,r(null))}e.request=t.getImage(this.map._requestManager.transformRequest(n,t.ResourceType.Tile),function(n,a){if(delete e.request,e.aborted)e.state=&quot;unloaded&quot;,r(null);else if(n)e.state=&quot;errored&quot;,r(n);else if(a){this.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(a),delete a.cacheControl,delete a.expires;var o=t.window.ImageBitmap&amp;&amp;a instanceof t.window.ImageBitmap&amp;&amp;t.offscreenCanvasSupported()?a:t.browser.getImageData(a,1),s={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:o,encoding:this.encoding};e.actor&amp;&amp;&quot;expired&quot;!==e.state||(e.actor=this.dispatcher.getActor(),e.actor.send(&quot;loadDEMTile&quot;,s,i.bind(this)))}}.bind(this)),e.neighboringTiles=this._getNeighboringTiles(e.tileID)},r.prototype._getNeighboringTiles=function(e){var r=e.canonical,n=Math.pow(2,r.z),i=(r.x-1+n)%n,a=0===r.x?e.wrap-1:e.wrap,o=(r.x+1+n)%n,s=r.x+1===n?e.wrap+1:e.wrap,l={};return l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y).key]={backfilled:!1},r.y&gt;0&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y-1).key]={backfilled:!1}),r.y+1&lt;n&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y+1).key]={backfilled:!1}),l},r.prototype.unloadTile=function(t){t.demTexture&amp;&amp;this.map.painter.saveTileTexture(t.demTexture),t.fbo&amp;&amp;(t.fbo.destroy(),delete t.fbo),t.dem&amp;&amp;delete t.dem,delete t.neighboringTiles,t.state=&quot;unloaded&quot;,t.actor&amp;&amp;t.actor.send(&quot;removeDEMTile&quot;,{uid:t.uid,source:this.id})},r}(E),C=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.type=&quot;geojson&quot;,this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=i.getActor(),this.setEventedParent(a),this._data=n.data,this._options=t.extend({},n),this._collectResourceTiming=n.collectResourceTiming,this._resourceTiming=[],void 0!==n.maxzoom&amp;&amp;(this.maxzoom=n.maxzoom),n.type&amp;&amp;(this.type=n.type),n.attribution&amp;&amp;(this.attribution=n.attribution),this.promoteId=n.promoteId;var o=t.EXTENT/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*o,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*o,extent:t.EXTENT,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?Math.min(n.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,extent:t.EXTENT,radius:(n.clusterRadius||50)*o,log:!1,generateId:n.generateId||!1},clusterProperties:n.clusterProperties},n.workerOptions)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._updateWorkerData((function(r){if(r)e.fire(new t.ErrorEvent(r));else{var n={dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;};e._collectResourceTiming&amp;&amp;e._resourceTiming&amp;&amp;e._resourceTiming.length&gt;0&amp;&amp;(n.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event(&quot;data&quot;,n))}}))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setData=function(e){var r=this;return this._data=e,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._updateWorkerData((function(e){if(e)r.fire(new t.ErrorEvent(e));else{var n={dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;};r._collectResourceTiming&amp;&amp;r._resourceTiming&amp;&amp;r._resourceTiming.length&gt;0&amp;&amp;(n.resourceTiming=r._resourceTiming,r._resourceTiming=[]),r.fire(new t.Event(&quot;data&quot;,n))}})),this},r.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send(&quot;geojson.getClusterExpansionZoom&quot;,{clusterId:t,source:this.id},e),this},r.prototype.getClusterChildren=function(t,e){return this.actor.send(&quot;geojson.getClusterChildren&quot;,{clusterId:t,source:this.id},e),this},r.prototype.getClusterLeaves=function(t,e,r,n){return this.actor.send(&quot;geojson.getClusterLeaves&quot;,{source:this.id,clusterId:t,limit:e,offset:r},n),this},r.prototype._updateWorkerData=function(e){var r=this;this._loaded=!1;var n=t.extend({},this.workerOptions),i=this._data;&quot;string&quot;==typeof i?(n.request=this.map._requestManager.transformRequest(t.browser.resolveURL(i),t.ResourceType.Source),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(i),this.actor.send(this.type+&quot;.loadData&quot;,n,(function(t,i){r._removed||i&amp;&amp;i.abandoned||(r._loaded=!0,i&amp;&amp;i.resourceTiming&amp;&amp;i.resourceTiming[r.id]&amp;&amp;(r._resourceTiming=i.resourceTiming[r.id].slice(0)),r.actor.send(r.type+&quot;.coalesce&quot;,{source:n.source},null),e(t))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.loadTile=function(e,r){var n=this,i=e.actor?&quot;reloadTile&quot;:&quot;loadTile&quot;;e.actor=this.actor;var a={type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};e.request=this.actor.send(i,a,(function(t,a){return delete e.request,e.unloadVectorData(),e.aborted?r(null):t?r(t):(e.loadVectorData(a,n.map.painter,&quot;reloadTile&quot;===i),r(null))}))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.aborted=!0},r.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send(&quot;removeTile&quot;,{uid:t.uid,type:this.type,source:this.id})},r.prototype.onRemove=function(){this._removed=!0,this.actor.send(&quot;removeSource&quot;,{type:this.type,source:this.id})},r.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},r.prototype.hasTransition=function(){return!1},r}(t.Evented),P=t.createLayout([{name:&quot;a_pos&quot;,type:&quot;Int16&quot;,components:2},{name:&quot;a_texture_pos&quot;,type:&quot;Int16&quot;,components:2}]),I=function(e){function r(t,r,n,i){e.call(this),this.id=t,this.dispatcher=n,this.coordinates=r.coordinates,this.type=&quot;image&quot;,this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=r}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(e,r){var n=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(function(i,a){n._loaded=!0,i?n.fire(new t.ErrorEvent(i)):a&amp;&amp;(n.image=a,e&amp;&amp;(n.coordinates=e),r&amp;&amp;r(),n._finishLoading())}))},r.prototype.loaded=function(){return this._loaded},r.prototype.updateImage=function(t){var e=this;return this.image&amp;&amp;t.url?(this.options.url=t.url,this.load(t.coordinates,(function(){e.texture=null})),this):this},r.prototype._finishLoading=function(){this.map&amp;&amp;(this.setCoordinates(this.coordinates),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setCoordinates=function(e){var r=this;this.coordinates=e;var n=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){for(var r=1/0,n=1/0,i=-1/0,a=-1/0,o=0,s=e;o&lt;s.length;o+=1){var l=s[o];r=Math.min(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.x),a=Math.max(a,l.y)}var c=i-r,u=a-n,f=Math.max(c,u),h=Math.max(0,Math.floor(-Math.log(f)/Math.LN2)),p=Math.pow(2,h);return new t.CanonicalTileID(h,Math.floor((r+i)/2*p),Math.floor((n+a)/2*p))}(n),this.minzoom=this.maxzoom=this.tileID.z;var i=n.map((function(t){return r.tileID.getTilePoint(t)._round()}));return this._boundsArray=new t.StructArrayLayout4i8,this._boundsArray.emplaceBack(i[0].x,i[0].y,0,0),this._boundsArray.emplaceBack(i[1].x,i[1].y,t.EXTENT,0),this._boundsArray.emplaceBack(i[3].x,i[3].y,0,t.EXTENT),this._boundsArray.emplaceBack(i[2].x,i[2].y,t.EXTENT,t.EXTENT),this.boundsBuffer&amp;&amp;(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})),this},r.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&amp;&amp;this.image){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,P.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new t.Texture(e,this.image,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];&quot;loaded&quot;!==i.state&amp;&amp;(i.state=&quot;loaded&quot;,i.texture=this.texture)}}},r.prototype.loadTile=function(t,e){this.tileID&amp;&amp;this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state=&quot;errored&quot;,e(null))},r.prototype.serialize=function(){return{type:&quot;image&quot;,url:this.options.url,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return!1},r}(t.Evented);var O=function(e){function r(t,r,n,i){e.call(this,t,r,n,i),this.roundZoom=!0,this.type=&quot;video&quot;,this.options=r}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1;var r=this.options;this.urls=[];for(var n=0,i=r.urls;n&lt;i.length;n+=1){var a=i[n];this.urls.push(this.map._requestManager.transformRequest(a,t.ResourceType.Source).url)}t.getVideo(this.urls,(function(r,n){e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(e.video=n,e.video.loop=!0,e.video.addEventListener(&quot;playing&quot;,(function(){e.map.triggerRepaint()})),e.map&amp;&amp;e.video.play(),e._finishLoading())}))},r.prototype.pause=function(){this.video&amp;&amp;this.video.pause()},r.prototype.play=function(){this.video&amp;&amp;this.video.play()},r.prototype.seek=function(e){if(this.video){var r=this.video.seekable;e&lt;r.start(0)||e&gt;r.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+this.id,null,&quot;Playback for this video can be set only between the &quot;+r.start(0)+&quot; and &quot;+r.end(0)+&quot;-second mark.&quot;))):this.video.currentTime=e}},r.prototype.getVideo=function(){return this.video},r.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&amp;&amp;(this.video.play(),this.setCoordinates(this.coordinates)))},r.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState&lt;2)){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,P.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];&quot;loaded&quot;!==i.state&amp;&amp;(i.state=&quot;loaded&quot;,i.texture=this.texture)}}},r.prototype.serialize=function(){return{type:&quot;video&quot;,urls:this.urls,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this.video&amp;&amp;!this.video.paused},r}(I),z=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),n.coordinates?Array.isArray(n.coordinates)&amp;&amp;4===n.coordinates.length&amp;&amp;!n.coordinates.some((function(t){return!Array.isArray(t)||2!==t.length||t.some((function(t){return&quot;number&quot;!=typeof t}))}))||this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'&quot;coordinates&quot; property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'missing required property &quot;coordinates&quot;'))),n.animate&amp;&amp;&quot;boolean&quot;!=typeof n.animate&amp;&amp;this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'optional &quot;animate&quot; property must be a boolean value'))),n.canvas?&quot;string&quot;==typeof n.canvas||n.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'&quot;canvas&quot; must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'missing required property &quot;canvas&quot;'))),this.options=n,this.animate=void 0===n.animate||n.animate}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error(&quot;Canvas dimensions cannot be less than or equal to zero.&quot;))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&amp;&amp;(this.prepare(),this._playing=!1)},this._finishLoading())},r.prototype.getCanvas=function(){return this.canvas},r.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&amp;&amp;this.animate&amp;&amp;this.play()},r.prototype.onRemove=function(){this.pause()},r.prototype.prepare=function(){var e=!1;if(this.canvas.width!==this.width&amp;&amp;(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&amp;&amp;(this.height=this.canvas.height,e=!0),!this._hasInvalidDimensions()&amp;&amp;0!==Object.keys(this.tiles).length){var r=this.map.painter.context,n=r.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=r.createVertexBuffer(this._boundsArray,P.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&amp;&amp;this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(r,this.canvas,n.RGBA,{premultiply:!0}),this.tiles){var a=this.tiles[i];&quot;loaded&quot;!==a.state&amp;&amp;(a.state=&quot;loaded&quot;,a.texture=this.texture)}}},r.prototype.serialize=function(){return{type:&quot;canvas&quot;,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this._playing},r.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];t&lt;e.length;t+=1){var r=e[t];if(isNaN(r)||r&lt;=0)return!0}return!1},r}(I),D={vector:S,raster:E,&quot;raster-dem&quot;:L,geojson:C,video:O,image:I,canvas:z};function R(e,r){var n=t.identity([]);return t.translate(n,n,[1,1,0]),t.scale(n,n,[.5*e.width,.5*e.height,1]),t.multiply(n,n,e.calculatePosMatrix(r.toUnwrapped()))}function F(t,e,r,n,i,a){var o=function(t,e,r){if(t)for(var n=0,i=t;n&lt;i.length;n+=1){var a=e[i[n]];if(a&amp;&amp;a.source===r&amp;&amp;&quot;fill-extrusion&quot;===a.type)return!0}else for(var o in e){var s=e[o];if(s.source===r&amp;&amp;&quot;fill-extrusion&quot;===s.type)return!0}return!1}(i&amp;&amp;i.layers,e,t.id),s=a.maxPitchScaleFactor(),l=t.tilesIn(n,s,o);l.sort(B);for(var c=[],u=0,f=l;u&lt;f.length;u+=1){var h=f[u];c.push({wrappedTileID:h.tileID.wrapped().key,queryResults:h.tile.queryRenderedFeatures(e,r,t._state,h.queryGeometry,h.cameraQueryGeometry,h.scale,i,a,s,R(t.transform,h.tileID))})}var p=function(t){for(var e={},r={},n=0,i=t;n&lt;i.length;n+=1){var a=i[n],o=a.queryResults,s=a.wrappedTileID,l=r[s]=r[s]||{};for(var c in o)for(var u=o[c],f=l[c]=l[c]||{},h=e[c]=e[c]||[],p=0,d=u;p&lt;d.length;p+=1){var m=d[p];f[m.featureIndex]||(f[m.featureIndex]=!0,h.push(m))}}return e}(c);for(var d in p)p[d].forEach((function(e){var r=e.feature,n=t.getFeatureState(r.layer[&quot;source-layer&quot;],r.id);r.source=r.layer.source,r.layer[&quot;source-layer&quot;]&amp;&amp;(r.sourceLayer=r.layer[&quot;source-layer&quot;]),r.state=n}));return p}function B(t,e){var r=t.tileID,n=e.tileID;return r.overscaledZ-n.overscaledZ||r.canonical.y-n.canonical.y||r.wrap-n.wrap||r.canonical.x-n.canonical.x}var N=function(t,e){this.max=t,this.onRemove=e,this.reset()};N.prototype.reset=function(){for(var t in this.data)for(var e=0,r=this.data[t];e&lt;r.length;e+=1){var n=r[e];n.timeout&amp;&amp;clearTimeout(n.timeout),this.onRemove(n.value)}return this.data={},this.order=[],this},N.prototype.add=function(t,e,r){var n=this,i=t.wrapped().key;void 0===this.data[i]&amp;&amp;(this.data[i]=[]);var a={value:e,timeout:void 0};if(void 0!==r&amp;&amp;(a.timeout=setTimeout((function(){n.remove(t,a)}),r)),this.data[i].push(a),this.order.push(i),this.order.length&gt;this.max){var o=this._getAndRemoveByKey(this.order[0]);o&amp;&amp;this.onRemove(o)}return this},N.prototype.has=function(t){return t.wrapped().key in this.data},N.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},N.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&amp;&amp;clearTimeout(e.timeout),0===this.data[t].length&amp;&amp;delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},N.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},N.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},N.prototype.remove=function(t,e){if(!this.has(t))return this;var r=t.wrapped().key,n=void 0===e?0:this.data[r].indexOf(e),i=this.data[r][n];return this.data[r].splice(n,1),i.timeout&amp;&amp;clearTimeout(i.timeout),0===this.data[r].length&amp;&amp;delete this.data[r],this.onRemove(i.value),this.order.splice(this.order.indexOf(r),1),this},N.prototype.setMaxSize=function(t){for(this.max=t;this.order.length&gt;this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&amp;&amp;this.onRemove(e)}return this},N.prototype.filter=function(t){var e=[];for(var r in this.data)for(var n=0,i=this.data[r];n&lt;i.length;n+=1){var a=i[n];t(a.value)||e.push(a)}for(var o=0,s=e;o&lt;s.length;o+=1){var l=s[o];this.remove(l.value.tileID,l)}};var j=function(t,e,r){this.context=t;var n=t.gl;this.buffer=n.createBuffer(),this.dynamicDraw=Boolean(r),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),n.bufferData(n.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};j.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},j.prototype.updateData=function(t){var e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)},j.prototype.destroy=function(){var t=this.context.gl;this.buffer&amp;&amp;(t.deleteBuffer(this.buffer),delete this.buffer)};var U={Int8:&quot;BYTE&quot;,Uint8:&quot;UNSIGNED_BYTE&quot;,Int16:&quot;SHORT&quot;,Uint16:&quot;UNSIGNED_SHORT&quot;,Int32:&quot;INT&quot;,Uint32:&quot;UNSIGNED_INT&quot;,Float32:&quot;FLOAT&quot;},V=function(t,e,r,n){this.length=e.length,this.attributes=r,this.itemSize=e.bytesPerElement,this.dynamicDraw=n,this.context=t;var i=t.gl;this.buffer=i.createBuffer(),t.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};V.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},V.prototype.updateData=function(t){var e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)},V.prototype.enableAttributes=function(t,e){for(var r=0;r&lt;this.attributes.length;r++){var n=this.attributes[r],i=e.attributes[n.name];void 0!==i&amp;&amp;t.enableVertexAttribArray(i)}},V.prototype.setVertexAttribPointers=function(t,e,r){for(var n=0;n&lt;this.attributes.length;n++){var i=this.attributes[n],a=e.attributes[i.name];void 0!==a&amp;&amp;t.vertexAttribPointer(a,i.components,t[U[i.type]],!1,this.itemSize,i.offset+this.itemSize*(r||0))}},V.prototype.destroy=function(){var t=this.context.gl;this.buffer&amp;&amp;(t.deleteBuffer(this.buffer),delete this.buffer)};var H=function(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};H.prototype.get=function(){return this.current},H.prototype.set=function(t){},H.prototype.getDefault=function(){return this.default},H.prototype.setDefault=function(){this.set(this.default)};var q=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(H),G=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 1},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearDepth(t),this.current=t,this.dirty=!1)},e}(H),Y=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearStencil(t),this.current=t,this.dirty=!1)},e}(H),W=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return[!0,!0,!0,!0]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(H),X=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthMask(t),this.current=t,this.dirty=!1)},e}(H),Z=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 255},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.stencilMask(t),this.current=t,this.dirty=!1)},e}(H),J=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},e.prototype.set=function(t){var e=this.current;(t.func!==e.func||t.ref!==e.ref||t.mask!==e.mask||this.dirty)&amp;&amp;(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)},e}(H),K=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||this.dirty)&amp;&amp;(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)},e}(H),Q=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}},e}(H),$=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return[0,1]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)},e}(H),tt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}},e}(H),et=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.LESS},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthFunc(t),this.current=t,this.dirty=!1)},e}(H),rt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}},e}(H),nt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.ONE,t.ZERO]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)},e}(H),it=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(H),at=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.FUNC_ADD},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.blendEquation(t),this.current=t,this.dirty=!1)},e}(H),ot=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}},e}(H),st=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.BACK},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.cullFace(t),this.current=t,this.dirty=!1)},e}(H),lt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.CCW},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.frontFace(t),this.current=t,this.dirty=!1)},e}(H),ct=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.useProgram(t),this.current=t,this.dirty=!1)},e}(H),ut=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return this.gl.TEXTURE0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.activeTexture(t),this.current=t,this.dirty=!1)},e}(H),ft=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(H),ht=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}},e}(H),pt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(H),dt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}},e}(H),mt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}},e}(H),gt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1},e}(H),vt=function(t){function e(e){t.call(this,e),this.vao=e.extVertexArrayObject}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){this.vao&amp;&amp;(t!==this.current||this.dirty)&amp;&amp;(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1)},e}(H),yt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return 4},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}},e}(H),xt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}},e}(H),bt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}},e}(H),_t=function(t){function e(e,r){t.call(this,e),this.context=e,this.parent=r}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.getDefault=function(){return null},e}(H),wt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.setDirty=function(){this.dirty=!0},e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},e}(_t),Tt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(_t),kt=function(t,e,r,n){this.context=t,this.width=e,this.height=r;var i=t.gl,a=this.framebuffer=i.createFramebuffer();this.colorAttachment=new wt(t,a),n&amp;&amp;(this.depthAttachment=new Tt(t,a))};kt.prototype.destroy=function(){var t=this.context.gl,e=this.colorAttachment.get();if(e&amp;&amp;t.deleteTexture(e),this.depthAttachment){var r=this.depthAttachment.get();r&amp;&amp;t.deleteRenderbuffer(r)}t.deleteFramebuffer(this.framebuffer)};var At=function(t,e,r){this.func=t,this.mask=e,this.range=r};At.ReadOnly=!1,At.ReadWrite=!0,At.disabled=new At(519,At.ReadOnly,[0,1]);var Mt=function(t,e,r,n,i,a){this.test=t,this.ref=e,this.mask=r,this.fail=n,this.depthFail=i,this.pass=a};Mt.disabled=new Mt({func:519,mask:0},0,0,7680,7680,7680);var St=function(t,e,r){this.blendFunction=t,this.blendColor=e,this.mask=r};St.disabled=new St(St.Replace=[1,0],t.Color.transparent,[!1,!1,!1,!1]),St.unblended=new St(St.Replace,t.Color.transparent,[!0,!0,!0,!0]),St.alphaBlended=new St([1,771],t.Color.transparent,[!0,!0,!0,!0]);var Et=function(t,e,r){this.enable=t,this.mode=e,this.frontFace=r};Et.disabled=new Et(!1,1029,2305),Et.backCCW=new Et(!0,1029,2305);var Lt=function(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension(&quot;OES_vertex_array_object&quot;),this.clearColor=new q(this),this.clearDepth=new G(this),this.clearStencil=new Y(this),this.colorMask=new W(this),this.depthMask=new X(this),this.stencilMask=new Z(this),this.stencilFunc=new J(this),this.stencilOp=new K(this),this.stencilTest=new Q(this),this.depthRange=new $(this),this.depthTest=new tt(this),this.depthFunc=new et(this),this.blend=new rt(this),this.blendFunc=new nt(this),this.blendColor=new it(this),this.blendEquation=new at(this),this.cullFace=new ot(this),this.cullFaceSide=new st(this),this.frontFace=new lt(this),this.program=new ct(this),this.activeTexture=new ut(this),this.viewport=new ft(this),this.bindFramebuffer=new ht(this),this.bindRenderbuffer=new pt(this),this.bindTexture=new dt(this),this.bindVertexBuffer=new mt(this),this.bindElementBuffer=new gt(this),this.bindVertexArrayOES=this.extVertexArrayObject&amp;&amp;new vt(this),this.pixelStoreUnpack=new yt(this),this.pixelStoreUnpackPremultiplyAlpha=new xt(this),this.pixelStoreUnpackFlipY=new bt(this),this.extTextureFilterAnisotropic=t.getExtension(&quot;EXT_texture_filter_anisotropic&quot;)||t.getExtension(&quot;MOZ_EXT_texture_filter_anisotropic&quot;)||t.getExtension(&quot;WEBKIT_EXT_texture_filter_anisotropic&quot;),this.extTextureFilterAnisotropic&amp;&amp;(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension(&quot;OES_texture_half_float&quot;),this.extTextureHalfFloat&amp;&amp;(t.getExtension(&quot;OES_texture_half_float_linear&quot;),this.extRenderToTextureHalfFloat=t.getExtension(&quot;EXT_color_buffer_half_float&quot;)),this.extTimerQuery=t.getExtension(&quot;EXT_disjoint_timer_query&quot;)};Lt.prototype.setDefault=function(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()},Lt.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&amp;&amp;(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},Lt.prototype.createIndexBuffer=function(t,e){return new j(this,t,e)},Lt.prototype.createVertexBuffer=function(t,e,r){return new V(this,t,e,r)},Lt.prototype.createRenderbuffer=function(t,e,r){var n=this.gl,i=n.createRenderbuffer();return this.bindRenderbuffer.set(i),n.renderbufferStorage(n.RENDERBUFFER,t,e,r),this.bindRenderbuffer.set(null),i},Lt.prototype.createFramebuffer=function(t,e,r){return new kt(this,t,e,r)},Lt.prototype.clear=function(t){var e=t.color,r=t.depth,n=this.gl,i=0;e&amp;&amp;(i|=n.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==r&amp;&amp;(i|=n.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(r),this.depthMask.set(!0)),n.clear(i)},Lt.prototype.setCullFace=function(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))},Lt.prototype.setDepthMode=function(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)},Lt.prototype.setStencilMode=function(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)},Lt.prototype.setColorMode=function(e){t.deepEqual(e.blendFunction,St.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)},Lt.prototype.unbindVAO=function(){this.extVertexArrayObject&amp;&amp;this.bindVertexArrayOES.set(null)};var Ct=function(e){function r(r,n,i){var a=this;e.call(this),this.id=r,this.dispatcher=i,this.on(&quot;data&quot;,(function(t){&quot;source&quot;===t.dataType&amp;&amp;&quot;metadata&quot;===t.sourceDataType&amp;&amp;(a._sourceLoaded=!0),a._sourceLoaded&amp;&amp;!a._paused&amp;&amp;&quot;source&quot;===t.dataType&amp;&amp;&quot;content&quot;===t.sourceDataType&amp;&amp;(a.reload(),a.transform&amp;&amp;a.update(a.transform))})),this.on(&quot;error&quot;,(function(){a._sourceErrored=!0})),this._source=function(e,r,n,i){var a=new D[r.type](e,r,n,i);if(a.id!==e)throw new Error(&quot;Expected Source id to be &quot;+e+&quot; instead of &quot;+a.id);return t.bindAll([&quot;load&quot;,&quot;abort&quot;,&quot;unload&quot;,&quot;serialize&quot;,&quot;prepare&quot;],a),a}(r,n,i,this),this._tiles={},this._cache=new N(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new t.SourceFeatureState}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.onAdd=function(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&amp;&amp;this._source.onAdd&amp;&amp;this._source.onAdd(t)},r.prototype.onRemove=function(t){this._source&amp;&amp;this._source.onRemove&amp;&amp;this._source.onRemove(t)},r.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var t in this._tiles){var e=this._tiles[t];if(&quot;loaded&quot;!==e.state&amp;&amp;&quot;errored&quot;!==e.state)return!1}return!0},r.prototype.getSource=function(){return this._source},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){if(this._paused){var t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&amp;&amp;this.reload(),this.transform&amp;&amp;this.update(this.transform)}},r.prototype._loadTile=function(t,e){return this._source.loadTile(t,e)},r.prototype._unloadTile=function(t){if(this._source.unloadTile)return this._source.unloadTile(t,(function(){}))},r.prototype._abortTile=function(t){if(this._source.abortTile)return this._source.abortTile(t,(function(){}))},r.prototype.serialize=function(){return this._source.serialize()},r.prototype.prepare=function(t){for(var e in this._source.prepare&amp;&amp;this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var r=this._tiles[e];r.upload(t),r.prepare(this.map.style.imageManager)}},r.prototype.getIds=function(){return t.values(this._tiles).map((function(t){return t.tileID})).sort(Pt).map((function(t){return t.key}))},r.prototype.getRenderableIds=function(e){var r=this,n=[];for(var i in this._tiles)this._isIdRenderable(i,e)&amp;&amp;n.push(this._tiles[i]);return e?n.sort((function(e,n){var i=e.tileID,a=n.tileID,o=new t.Point(i.canonical.x,i.canonical.y)._rotate(r.transform.angle),s=new t.Point(a.canonical.x,a.canonical.y)._rotate(r.transform.angle);return i.overscaledZ-a.overscaledZ||s.y-o.y||s.x-o.x})).map((function(t){return t.tileID.key})):n.map((function(t){return t.tileID})).sort(Pt).map((function(t){return t.key}))},r.prototype.hasRenderableParent=function(t){var e=this.findLoadedParent(t,0);return!!e&amp;&amp;this._isIdRenderable(e.tileID.key)},r.prototype._isIdRenderable=function(t,e){return this._tiles[t]&amp;&amp;this._tiles[t].hasData()&amp;&amp;!this._coveredTiles[t]&amp;&amp;(e||!this._tiles[t].holdingForFade())},r.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var t in this._cache.reset(),this._tiles)&quot;errored&quot;!==this._tiles[t].state&amp;&amp;this._reloadTile(t,&quot;reloading&quot;)},r.prototype._reloadTile=function(t,e){var r=this._tiles[t];r&amp;&amp;(&quot;loading&quot;!==r.state&amp;&amp;(r.state=e),this._loadTile(r,this._tileLoaded.bind(this,r,t,e)))},r.prototype._tileLoaded=function(e,r,n,i){if(i)return e.state=&quot;errored&quot;,void(404!==i.status?this._source.fire(new t.ErrorEvent(i,{tile:e})):this.update(this.transform));e.timeAdded=t.browser.now(),&quot;expired&quot;===n&amp;&amp;(e.refreshedUponExpiration=!0),this._setTileReloadTimer(r,e),&quot;raster-dem&quot;===this.getSource().type&amp;&amp;e.dem&amp;&amp;this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,tile:e,coord:e.tileID}))},r.prototype._backfillDEM=function(t){for(var e=this.getRenderableIds(),r=0;r&lt;e.length;r++){var n=e[r];if(t.neighboringTiles&amp;&amp;t.neighboringTiles[n]){var i=this.getTileByID(n);a(t,i),a(i,t)}}function a(t,e){t.needsHillshadePrepare=!0;var r=e.tileID.canonical.x-t.tileID.canonical.x,n=e.tileID.canonical.y-t.tileID.canonical.y,i=Math.pow(2,t.tileID.canonical.z),a=e.tileID.key;0===r&amp;&amp;0===n||Math.abs(n)&gt;1||(Math.abs(r)&gt;1&amp;&amp;(1===Math.abs(r+i)?r+=i:1===Math.abs(r-i)&amp;&amp;(r-=i)),e.dem&amp;&amp;t.dem&amp;&amp;(t.dem.backfillBorder(e.dem,r,n),t.neighboringTiles&amp;&amp;t.neighboringTiles[a]&amp;&amp;(t.neighboringTiles[a].backfilled=!0)))}},r.prototype.getTile=function(t){return this.getTileByID(t.key)},r.prototype.getTileByID=function(t){return this._tiles[t]},r.prototype._retainLoadedChildren=function(t,e,r,n){for(var i in this._tiles){var a=this._tiles[i];if(!(n[i]||!a.hasData()||a.tileID.overscaledZ&lt;=e||a.tileID.overscaledZ&gt;r)){for(var o=a.tileID;a&amp;&amp;a.tileID.overscaledZ&gt;e+1;){var s=a.tileID.scaledTo(a.tileID.overscaledZ-1);(a=this._tiles[s.key])&amp;&amp;a.hasData()&amp;&amp;(o=s)}for(var l=o;l.overscaledZ&gt;e;)if(t[(l=l.scaledTo(l.overscaledZ-1)).key]){n[o.key]=o;break}}}},r.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var r=this._loadedParentTiles[t.key];return r&amp;&amp;r.tileID.overscaledZ&gt;=e?r:null}for(var n=t.overscaledZ-1;n&gt;=e;n--){var i=t.scaledTo(n),a=this._getLoadedTile(i);if(a)return a}},r.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&amp;&amp;e.hasData()?e:this._cache.getByKey(t.wrapped().key)},r.prototype.updateCacheSize=function(t){var e=(Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1),r=Math.floor(5*e),n=&quot;number&quot;==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,r):r;this._cache.setMaxSize(n)},r.prototype.handleWrapJump=function(t){var e=(t-(void 0===this._prevLng?t:this._prevLng))/360,r=Math.round(e);if(this._prevLng=t,r){var n={};for(var i in this._tiles){var a=this._tiles[i];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+r),n[a.tileID.key]=a}for(var o in this._tiles=n,this._timers)clearTimeout(this._timers[o]),delete this._timers[o];for(var s in this._tiles){var l=this._tiles[s];this._setTileReloadTimer(s,l)}}},r.prototype.update=function(e){var n=this;if(this.transform=e,this._sourceLoaded&amp;&amp;!this._paused){var i;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)})):(i=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&amp;&amp;(i=i.filter((function(t){return n._source.hasTile(t)})))):i=[];var a=e.coveringZoomLevel(this._source),o=Math.max(a-r.maxOverzooming,this._source.minzoom),s=Math.max(a+r.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(i,a);if(It(this._source.type)){for(var c={},u={},f=0,h=Object.keys(l);f&lt;h.length;f+=1){var p=h[f],d=l[p],m=this._tiles[p];if(m&amp;&amp;!(m.fadeEndTime&amp;&amp;m.fadeEndTime&lt;=t.browser.now())){var g=this.findLoadedParent(d,o);g&amp;&amp;(this._addTile(g.tileID),c[g.tileID.key]=g.tileID),u[p]=d}}for(var v in this._retainLoadedChildren(u,a,s,l),c)l[v]||(this._coveredTiles[v]=!0,l[v]=c[v])}for(var y in l)this._tiles[y].clearFadeHold();for(var x=0,b=t.keysDifference(this._tiles,l);x&lt;b.length;x+=1){var _=b[x],w=this._tiles[_];w.hasSymbolBuckets&amp;&amp;!w.holdingForFade()?w.setHoldDuration(this.map._fadeDuration):w.hasSymbolBuckets&amp;&amp;!w.symbolFadeFinished()||this._removeTile(_)}this._updateLoadedParentTileCache()}},r.prototype.releaseSymbolFadeTiles=function(){for(var t in this._tiles)this._tiles[t].holdingForFade()&amp;&amp;this._removeTile(t)},r.prototype._updateRetainedTiles=function(t,e){for(var n={},i={},a=Math.max(e-r.maxOverzooming,this._source.minzoom),o=Math.max(e+r.maxUnderzooming,this._source.minzoom),s={},l=0,c=t;l&lt;c.length;l+=1){var u=c[l],f=this._addTile(u);n[u.key]=u,f.hasData()||e&lt;this._source.maxzoom&amp;&amp;(s[u.key]=u)}this._retainLoadedChildren(s,e,o,n);for(var h=0,p=t;h&lt;p.length;h+=1){var d=p[h],m=this._tiles[d.key];if(!m.hasData()){if(e+1&gt;this._source.maxzoom){var g=d.children(this._source.maxzoom)[0],v=this.getTile(g);if(v&amp;&amp;v.hasData()){n[g.key]=g;continue}}else{var y=d.children(this._source.maxzoom);if(n[y[0].key]&amp;&amp;n[y[1].key]&amp;&amp;n[y[2].key]&amp;&amp;n[y[3].key])continue}for(var x=m.wasRequested(),b=d.overscaledZ-1;b&gt;=a;--b){var _=d.scaledTo(b);if(i[_.key])break;if(i[_.key]=!0,!(m=this.getTile(_))&amp;&amp;x&amp;&amp;(m=this._addTile(_)),m&amp;&amp;(n[_.key]=_,x=m.wasRequested(),m.hasData()))break}}}return n},r.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],r=void 0,n=this._tiles[t].tileID;n.overscaledZ&gt;0;){if(n.key in this._loadedParentTiles){r=this._loadedParentTiles[n.key];break}e.push(n.key);var i=n.scaledTo(n.overscaledZ-1);if(r=this._getLoadedTile(i))break;n=i}for(var a=0,o=e;a&lt;o.length;a+=1){var s=o[a];this._loadedParentTiles[s]=r}}},r.prototype._addTile=function(e){var r=this._tiles[e.key];if(r)return r;(r=this._cache.getAndRemove(e))&amp;&amp;(this._setTileReloadTimer(e.key,r),r.tileID=e,this._state.initializeTileState(r,this.map?this.map.painter:null),this._cacheTimers[e.key]&amp;&amp;(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,r)));var n=Boolean(r);return n||(r=new t.Tile(e,this._source.tileSize*e.overscaleFactor()),this._loadTile(r,this._tileLoaded.bind(this,r,e.key,r.state))),r?(r.uses++,this._tiles[e.key]=r,n||this._source.fire(new t.Event(&quot;dataloading&quot;,{tile:r,coord:r.tileID,dataType:&quot;source&quot;})),r):null},r.prototype._setTileReloadTimer=function(t,e){var r=this;t in this._timers&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]);var n=e.getExpiryTimeout();n&amp;&amp;(this._timers[t]=setTimeout((function(){r._reloadTile(t,&quot;expired&quot;),delete r._timers[t]}),n))},r.prototype._removeTile=function(t){var e=this._tiles[t];e&amp;&amp;(e.uses--,delete this._tiles[t],this._timers[t]&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses&gt;0||(e.hasData()&amp;&amp;&quot;reloading&quot;!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},r.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},r.prototype.tilesIn=function(e,r,n){var i=this,a=[],o=this.transform;if(!o)return a;for(var s=n?o.getCameraQueryGeometry(e):e,l=e.map((function(t){return o.pointCoordinate(t)})),c=s.map((function(t){return o.pointCoordinate(t)})),u=this.getIds(),f=1/0,h=1/0,p=-1/0,d=-1/0,m=0,g=c;m&lt;g.length;m+=1){var v=g[m];f=Math.min(f,v.x),h=Math.min(h,v.y),p=Math.max(p,v.x),d=Math.max(d,v.y)}for(var y=function(e){var n=i._tiles[u[e]];if(!n.holdingForFade()){var s=n.tileID,m=Math.pow(2,o.zoom-n.tileID.overscaledZ),g=r*n.queryPadding*t.EXTENT/n.tileSize/m,v=[s.getTilePoint(new t.MercatorCoordinate(f,h)),s.getTilePoint(new t.MercatorCoordinate(p,d))];if(v[0].x-g&lt;t.EXTENT&amp;&amp;v[0].y-g&lt;t.EXTENT&amp;&amp;v[1].x+g&gt;=0&amp;&amp;v[1].y+g&gt;=0){var y=l.map((function(t){return s.getTilePoint(t)})),x=c.map((function(t){return s.getTilePoint(t)}));a.push({tile:n,tileID:s,queryGeometry:y,cameraQueryGeometry:x,scale:m})}}},x=0;x&lt;u.length;x++)y(x);return a},r.prototype.getVisibleCoordinates=function(t){for(var e=this,r=this.getRenderableIds(t).map((function(t){return e._tiles[t].tileID})),n=0,i=r;n&lt;i.length;n+=1){var a=i[n];a.posMatrix=this.transform.calculatePosMatrix(a.toUnwrapped())}return r},r.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(It(this._source.type))for(var e in this._tiles){var r=this._tiles[e];if(void 0!==r.fadeEndTime&amp;&amp;r.fadeEndTime&gt;=t.browser.now())return!0}return!1},r.prototype.setFeatureState=function(t,e,r){t=t||&quot;_geojsonTileLayer&quot;,this._state.updateState(t,e,r)},r.prototype.removeFeatureState=function(t,e,r){t=t||&quot;_geojsonTileLayer&quot;,this._state.removeFeatureState(t,e,r)},r.prototype.getFeatureState=function(t,e){return t=t||&quot;_geojsonTileLayer&quot;,this._state.getState(t,e)},r.prototype.setDependencies=function(t,e,r){var n=this._tiles[t];n&amp;&amp;n.setDependencies(e,r)},r.prototype.reloadTilesForDependencies=function(t,e){for(var r in this._tiles){this._tiles[r].hasDependency(t,e)&amp;&amp;this._reloadTile(r,&quot;reloading&quot;)}this._cache.filter((function(r){return!r.hasDependency(t,e)}))},r}(t.Evented);function Pt(t,e){var r=Math.abs(2*t.wrap)-+(t.wrap&lt;0),n=Math.abs(2*e.wrap)-+(e.wrap&lt;0);return t.overscaledZ-e.overscaledZ||n-r||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function It(t){return&quot;raster&quot;===t||&quot;image&quot;===t||&quot;video&quot;===t}function Ot(){return new t.window.Worker(Zi.workerUrl)}Ct.maxOverzooming=10,Ct.maxUnderzooming=3;var zt=&quot;mapboxgl_preloaded_worker_pool&quot;,Dt=function(){this.active={}};Dt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length&lt;Dt.workerCount;)this.workers.push(new Ot);return this.active[t]=!0,this.workers.slice()},Dt.prototype.release=function(t){delete this.active[t],0===this.numActive()&amp;&amp;(this.workers.forEach((function(t){t.terminate()})),this.workers=null)},Dt.prototype.isPreloaded=function(){return!!this.active[zt]},Dt.prototype.numActive=function(){return Object.keys(this.active).length};var Rt,Ft=Math.floor(t.browser.hardwareConcurrency/2);function Bt(){return Rt||(Rt=new Dt),Rt}function Nt(e,r){var n={};for(var i in e)&quot;ref&quot;!==i&amp;&amp;(n[i]=e[i]);return t.refProperties.forEach((function(t){t in r&amp;&amp;(n[t]=r[t])})),n}function jt(t){t=t.slice();for(var e=Object.create(null),r=0;r&lt;t.length;r++)e[t[r].id]=t[r];for(var n=0;n&lt;t.length;n++)&quot;ref&quot;in t[n]&amp;&amp;(t[n]=Nt(t[n],e[t[n].ref]));return t}Dt.workerCount=Math.max(Math.min(Ft,6),1);var Ut={setStyle:&quot;setStyle&quot;,addLayer:&quot;addLayer&quot;,removeLayer:&quot;removeLayer&quot;,setPaintProperty:&quot;setPaintProperty&quot;,setLayoutProperty:&quot;setLayoutProperty&quot;,setFilter:&quot;setFilter&quot;,addSource:&quot;addSource&quot;,removeSource:&quot;removeSource&quot;,setGeoJSONSourceData:&quot;setGeoJSONSourceData&quot;,setLayerZoomRange:&quot;setLayerZoomRange&quot;,setLayerProperty:&quot;setLayerProperty&quot;,setCenter:&quot;setCenter&quot;,setZoom:&quot;setZoom&quot;,setBearing:&quot;setBearing&quot;,setPitch:&quot;setPitch&quot;,setSprite:&quot;setSprite&quot;,setGlyphs:&quot;setGlyphs&quot;,setTransition:&quot;setTransition&quot;,setLight:&quot;setLight&quot;};function Vt(t,e,r){r.push({command:Ut.addSource,args:[t,e[t]]})}function Ht(t,e,r){e.push({command:Ut.removeSource,args:[t]}),r[t]=!0}function qt(t,e,r,n){Ht(t,r,n),Vt(t,e,r)}function Gt(e,r,n){var i;for(i in e[n])if(e[n].hasOwnProperty(i)&amp;&amp;&quot;data&quot;!==i&amp;&amp;!t.deepEqual(e[n][i],r[n][i]))return!1;for(i in r[n])if(r[n].hasOwnProperty(i)&amp;&amp;&quot;data&quot;!==i&amp;&amp;!t.deepEqual(e[n][i],r[n][i]))return!1;return!0}function Yt(e,r,n,i,a,o){var s;for(s in r=r||{},e=e||{})e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}));for(s in r)r.hasOwnProperty(s)&amp;&amp;!e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}))}function Wt(t){return t.id}function Xt(t,e){return t[e.id]=e,t}function Zt(e,r){if(!e)return[{command:Ut.setStyle,args:[r]}];var n=[];try{if(!t.deepEqual(e.version,r.version))return[{command:Ut.setStyle,args:[r]}];t.deepEqual(e.center,r.center)||n.push({command:Ut.setCenter,args:[r.center]}),t.deepEqual(e.zoom,r.zoom)||n.push({command:Ut.setZoom,args:[r.zoom]}),t.deepEqual(e.bearing,r.bearing)||n.push({command:Ut.setBearing,args:[r.bearing]}),t.deepEqual(e.pitch,r.pitch)||n.push({command:Ut.setPitch,args:[r.pitch]}),t.deepEqual(e.sprite,r.sprite)||n.push({command:Ut.setSprite,args:[r.sprite]}),t.deepEqual(e.glyphs,r.glyphs)||n.push({command:Ut.setGlyphs,args:[r.glyphs]}),t.deepEqual(e.transition,r.transition)||n.push({command:Ut.setTransition,args:[r.transition]}),t.deepEqual(e.light,r.light)||n.push({command:Ut.setLight,args:[r.light]});var i={},a=[];!function(e,r,n,i){var a;for(a in r=r||{},e=e||{})e.hasOwnProperty(a)&amp;&amp;(r.hasOwnProperty(a)||Ht(a,n,i));for(a in r)r.hasOwnProperty(a)&amp;&amp;(e.hasOwnProperty(a)?t.deepEqual(e[a],r[a])||(&quot;geojson&quot;===e[a].type&amp;&amp;&quot;geojson&quot;===r[a].type&amp;&amp;Gt(e,r,a)?n.push({command:Ut.setGeoJSONSourceData,args:[a,r[a].data]}):qt(a,r,n,i)):Vt(a,r,n))}(e.sources,r.sources,a,i);var o=[];e.layers&amp;&amp;e.layers.forEach((function(t){i[t.source]?n.push({command:Ut.removeLayer,args:[t.id]}):o.push(t)})),n=n.concat(a),function(e,r,n){r=r||[];var i,a,o,s,l,c,u,f=(e=e||[]).map(Wt),h=r.map(Wt),p=e.reduce(Xt,{}),d=r.reduce(Xt,{}),m=f.slice(),g=Object.create(null);for(i=0,a=0;i&lt;f.length;i++)o=f[i],d.hasOwnProperty(o)?a++:(n.push({command:Ut.removeLayer,args:[o]}),m.splice(m.indexOf(o,a),1));for(i=0,a=0;i&lt;h.length;i++)o=h[h.length-1-i],m[m.length-1-i]!==o&amp;&amp;(p.hasOwnProperty(o)?(n.push({command:Ut.removeLayer,args:[o]}),m.splice(m.lastIndexOf(o,m.length-a),1)):a++,c=m[m.length-i],n.push({command:Ut.addLayer,args:[d[o],c]}),m.splice(m.length-i,0,o),g[o]=!0);for(i=0;i&lt;h.length;i++)if(s=p[o=h[i]],l=d[o],!g[o]&amp;&amp;!t.deepEqual(s,l))if(t.deepEqual(s.source,l.source)&amp;&amp;t.deepEqual(s[&quot;source-layer&quot;],l[&quot;source-layer&quot;])&amp;&amp;t.deepEqual(s.type,l.type)){for(u in Yt(s.layout,l.layout,n,o,null,Ut.setLayoutProperty),Yt(s.paint,l.paint,n,o,null,Ut.setPaintProperty),t.deepEqual(s.filter,l.filter)||n.push({command:Ut.setFilter,args:[o,l.filter]}),t.deepEqual(s.minzoom,l.minzoom)&amp;&amp;t.deepEqual(s.maxzoom,l.maxzoom)||n.push({command:Ut.setLayerZoomRange,args:[o,l.minzoom,l.maxzoom]}),s)s.hasOwnProperty(u)&amp;&amp;&quot;layout&quot;!==u&amp;&amp;&quot;paint&quot;!==u&amp;&amp;&quot;filter&quot;!==u&amp;&amp;&quot;metadata&quot;!==u&amp;&amp;&quot;minzoom&quot;!==u&amp;&amp;&quot;maxzoom&quot;!==u&amp;&amp;(0===u.indexOf(&quot;paint.&quot;)?Yt(s[u],l[u],n,o,u.slice(6),Ut.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:Ut.setLayerProperty,args:[o,u,l[u]]}));for(u in l)l.hasOwnProperty(u)&amp;&amp;!s.hasOwnProperty(u)&amp;&amp;&quot;layout&quot;!==u&amp;&amp;&quot;paint&quot;!==u&amp;&amp;&quot;filter&quot;!==u&amp;&amp;&quot;metadata&quot;!==u&amp;&amp;&quot;minzoom&quot;!==u&amp;&amp;&quot;maxzoom&quot;!==u&amp;&amp;(0===u.indexOf(&quot;paint.&quot;)?Yt(s[u],l[u],n,o,u.slice(6),Ut.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:Ut.setLayerProperty,args:[o,u,l[u]]}))}else n.push({command:Ut.removeLayer,args:[o]}),c=m[m.lastIndexOf(o)+1],n.push({command:Ut.addLayer,args:[l,c]})}(o,r.layers,n)}catch(t){console.warn(&quot;Unable to compute style diff:&quot;,t),n=[{command:Ut.setStyle,args:[r]}]}return n}var Jt=function(t,e){this.reset(t,e)};Jt.prototype.reset=function(t,e){this.points=t||[],this._distances=[0];for(var r=1;r&lt;this.points.length;r++)this._distances[r]=this._distances[r-1]+this.points[r].dist(this.points[r-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(e||0,.5*this.length),this.paddedLength=this.length-2*this.padding},Jt.prototype.lerp=function(e){if(1===this.points.length)return this.points[0];e=t.clamp(e,0,1);for(var r=1,n=this._distances[r],i=e*this.paddedLength+this.padding;n&lt;i&amp;&amp;r&lt;this._distances.length;)n=this._distances[++r];var a=r-1,o=this._distances[a],s=n-o,l=s&gt;0?(i-o)/s:0;return this.points[a].mult(1-l).add(this.points[r].mult(l))};var Kt=function(t,e,r){var n=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(e/r);for(var a=0;a&lt;this.xCellCount*this.yCellCount;a++)n.push([]),i.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0};function Qt(e,r,n,i,a){var o=t.create();return r?(t.scale(o,o,[1/a,1/a,1]),n||t.rotateZ(o,o,i.angle)):t.multiply(o,i.labelPlaneMatrix,e),o}function $t(e,r,n,i,a){if(r){var o=t.clone(e);return t.scale(o,o,[a,a,1]),n||t.rotateZ(o,o,-i.angle),o}return i.glCoordMatrix}function te(e,r){var n=[e.x,e.y,0,1];fe(n,n,r);var i=n[3];return{point:new t.Point(n[0]/i,n[1]/i),signedDistanceFromCamera:i}}function ee(t,e){return.5+t/e*.5}function re(t,e){var r=t[0]/t[3],n=t[1]/t[3];return r&gt;=-e[0]&amp;&amp;r&lt;=e[0]&amp;&amp;n&gt;=-e[1]&amp;&amp;n&lt;=e[1]}function ne(e,r,n,i,a,o,s,l){var c=i?e.textSizeData:e.iconSizeData,u=t.evaluateSizeForZoom(c,n.transform.zoom),f=[256/n.width*2+1,256/n.height*2+1],h=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;h.clear();for(var p=e.lineVertexArray,d=i?e.text.placedSymbolArray:e.icon.placedSymbolArray,m=n.transform.width/n.transform.height,g=!1,v=0;v&lt;d.length;v++){var y=d.get(v);if(y.hidden||y.writingMode===t.WritingMode.vertical&amp;&amp;!g)ue(y.numGlyphs,h);else{g=!1;var x=[y.anchorX,y.anchorY,0,1];if(t.transformMat4(x,x,r),re(x,f)){var b=x[3],_=ee(n.transform.cameraToCenterDistance,b),w=t.evaluateSizeForFeature(c,u,y),T=s?w/_:w*_,k=new t.Point(y.anchorX,y.anchorY),A=te(k,a).point,M={},S=oe(y,T,!1,l,r,a,o,e.glyphOffsetArray,p,h,A,k,M,m);g=S.useVertical,(S.notEnoughRoom||g||S.needsFlipping&amp;&amp;oe(y,T,!0,l,r,a,o,e.glyphOffsetArray,p,h,A,k,M,m).notEnoughRoom)&amp;&amp;ue(y.numGlyphs,h)}else ue(y.numGlyphs,h)}}i?e.text.dynamicLayoutVertexBuffer.updateData(h):e.icon.dynamicLayoutVertexBuffer.updateData(h)}function ie(t,e,r,n,i,a,o,s,l,c,u){var f=s.glyphStartIndex+s.numGlyphs,h=s.lineStartIndex,p=s.lineStartIndex+s.lineLength,d=e.getoffsetX(s.glyphStartIndex),m=e.getoffsetX(f-1),g=le(t*d,r,n,i,a,o,s.segment,h,p,l,c,u);if(!g)return null;var v=le(t*m,r,n,i,a,o,s.segment,h,p,l,c,u);return v?{first:g,last:v}:null}function ae(e,r,n,i){if(e===t.WritingMode.horizontal&amp;&amp;Math.abs(n.y-r.y)&gt;Math.abs(n.x-r.x)*i)return{useVertical:!0};return(e===t.WritingMode.vertical?r.y&lt;n.y:r.x&gt;n.x)?{needsFlipping:!0}:null}function oe(e,r,n,i,a,o,s,l,c,u,f,h,p,d){var m,g=r/24,v=e.lineOffsetX*g,y=e.lineOffsetY*g;if(e.numGlyphs&gt;1){var x=e.glyphStartIndex+e.numGlyphs,b=e.lineStartIndex,_=e.lineStartIndex+e.lineLength,w=ie(g,l,v,y,n,f,h,e,c,o,p);if(!w)return{notEnoughRoom:!0};var T=te(w.first.point,s).point,k=te(w.last.point,s).point;if(i&amp;&amp;!n){var A=ae(e.writingMode,T,k,d);if(A)return A}m=[w.first];for(var M=e.glyphStartIndex+1;M&lt;x-1;M++)m.push(le(g*l.getoffsetX(M),v,y,n,f,h,e.segment,b,_,c,o,p));m.push(w.last)}else{if(i&amp;&amp;!n){var S=te(h,a).point,E=e.lineStartIndex+e.segment+1,L=new t.Point(c.getx(E),c.gety(E)),C=te(L,a),P=C.signedDistanceFromCamera&gt;0?C.point:se(h,L,S,1,a),I=ae(e.writingMode,S,P,d);if(I)return I}var O=le(g*l.getoffsetX(e.glyphStartIndex),v,y,n,f,h,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,c,o,p);if(!O)return{notEnoughRoom:!0};m=[O]}for(var z=0,D=m;z&lt;D.length;z+=1){var R=D[z];t.addDynamicAttributes(u,R.point,R.angle)}return{}}function se(t,e,r,n,i){var a=te(t.add(t.sub(e)._unit()),i).point,o=r.sub(a);return r.add(o._mult(n/o.mag()))}function le(e,r,n,i,a,o,s,l,c,u,f,h){var p=i?e-r:e+r,d=p&gt;0?1:-1,m=0;i&amp;&amp;(d*=-1,m=Math.PI),d&lt;0&amp;&amp;(m+=Math.PI);for(var g=d&gt;0?l+s:l+s+1,v=a,y=a,x=0,b=0,_=Math.abs(p),w=[];x+b&lt;=_;){if((g+=d)&lt;l||g&gt;=c)return null;if(y=v,w.push(v),void 0===(v=h[g])){var T=new t.Point(u.getx(g),u.gety(g)),k=te(T,f);if(k.signedDistanceFromCamera&gt;0)v=h[g]=k.point;else{var A=g-d;v=se(0===x?o:new t.Point(u.getx(A),u.gety(A)),T,y,_-x+1,f)}}x+=b,b=y.dist(v)}var M=(_-x)/b,S=v.sub(y),E=S.mult(M)._add(y);E._add(S._unit()._perp()._mult(n*d));var L=m+Math.atan2(v.y-y.y,v.x-y.x);return w.push(E),{point:E,angle:L,path:w}}Kt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Kt.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},Kt.prototype.insertCircle=function(t,e,r,n){this._forEachCell(e-n,r-n,e+n,r+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(r),this.circles.push(n)},Kt.prototype._insertBoxCell=function(t,e,r,n,i,a){this.boxCells[i].push(a)},Kt.prototype._insertCircleCell=function(t,e,r,n,i,a){this.circleCells[i].push(a)},Kt.prototype._query=function(t,e,r,n,i,a){if(r&lt;0||t&gt;this.width||n&lt;0||e&gt;this.height)return!i&amp;&amp;[];var o=[];if(t&lt;=0&amp;&amp;e&lt;=0&amp;&amp;this.width&lt;=r&amp;&amp;this.height&lt;=n){if(i)return!0;for(var s=0;s&lt;this.boxKeys.length;s++)o.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var l=0;l&lt;this.circleKeys.length;l++){var c=this.circles[3*l],u=this.circles[3*l+1],f=this.circles[3*l+2];o.push({key:this.circleKeys[l],x1:c-f,y1:u-f,x2:c+f,y2:u+f})}return a?o.filter(a):o}var h={hitTest:i,seenUids:{box:{},circle:{}}};return this._forEachCell(t,e,r,n,this._queryCell,o,h,a),i?o.length&gt;0:o},Kt.prototype._queryCircle=function(t,e,r,n,i){var a=t-r,o=t+r,s=e-r,l=e+r;if(o&lt;0||a&gt;this.width||l&lt;0||s&gt;this.height)return!n&amp;&amp;[];var c=[],u={hitTest:n,circle:{x:t,y:e,radius:r},seenUids:{box:{},circle:{}}};return this._forEachCell(a,s,o,l,this._queryCellCircle,c,u,i),n?c.length&gt;0:c},Kt.prototype.query=function(t,e,r,n,i){return this._query(t,e,r,n,!1,i)},Kt.prototype.hitTest=function(t,e,r,n,i){return this._query(t,e,r,n,!0,i)},Kt.prototype.hitTestCircle=function(t,e,r,n){return this._queryCircle(t,e,r,!0,n)},Kt.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=o.seenUids,c=this.boxCells[i];if(null!==c)for(var u=this.bboxes,f=0,h=c;f&lt;h.length;f+=1){var p=h[f];if(!l.box[p]){l.box[p]=!0;var d=4*p;if(t&lt;=u[d+2]&amp;&amp;e&lt;=u[d+3]&amp;&amp;r&gt;=u[d+0]&amp;&amp;n&gt;=u[d+1]&amp;&amp;(!s||s(this.boxKeys[p]))){if(o.hitTest)return a.push(!0),!0;a.push({key:this.boxKeys[p],x1:u[d],y1:u[d+1],x2:u[d+2],y2:u[d+3]})}}}var m=this.circleCells[i];if(null!==m)for(var g=this.circles,v=0,y=m;v&lt;y.length;v+=1){var x=y[v];if(!l.circle[x]){l.circle[x]=!0;var b=3*x;if(this._circleAndRectCollide(g[b],g[b+1],g[b+2],t,e,r,n)&amp;&amp;(!s||s(this.circleKeys[x]))){if(o.hitTest)return a.push(!0),!0;var _=g[b],w=g[b+1],T=g[b+2];a.push({key:this.circleKeys[x],x1:_-T,y1:w-T,x2:_+T,y2:w+T})}}}},Kt.prototype._queryCellCircle=function(t,e,r,n,i,a,o,s){var l=o.circle,c=o.seenUids,u=this.boxCells[i];if(null!==u)for(var f=this.bboxes,h=0,p=u;h&lt;p.length;h+=1){var d=p[h];if(!c.box[d]){c.box[d]=!0;var m=4*d;if(this._circleAndRectCollide(l.x,l.y,l.radius,f[m+0],f[m+1],f[m+2],f[m+3])&amp;&amp;(!s||s(this.boxKeys[d])))return a.push(!0),!0}}var g=this.circleCells[i];if(null!==g)for(var v=this.circles,y=0,x=g;y&lt;x.length;y+=1){var b=x[y];if(!c.circle[b]){c.circle[b]=!0;var _=3*b;if(this._circlesCollide(v[_],v[_+1],v[_+2],l.x,l.y,l.radius)&amp;&amp;(!s||s(this.circleKeys[b])))return a.push(!0),!0}}},Kt.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToXCellCoord(t),c=this._convertToYCellCoord(e),u=this._convertToXCellCoord(r),f=this._convertToYCellCoord(n),h=l;h&lt;=u;h++)for(var p=c;p&lt;=f;p++){var d=this.xCellCount*p+h;if(i.call(this,t,e,r,n,d,a,o,s))return}},Kt.prototype._convertToXCellCoord=function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))},Kt.prototype._convertToYCellCoord=function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))},Kt.prototype._circlesCollide=function(t,e,r,n,i,a){var o=n-t,s=i-e,l=r+a;return l*l&gt;o*o+s*s},Kt.prototype._circleAndRectCollide=function(t,e,r,n,i,a,o){var s=(a-n)/2,l=Math.abs(t-(n+s));if(l&gt;s+r)return!1;var c=(o-i)/2,u=Math.abs(e-(i+c));if(u&gt;c+r)return!1;if(l&lt;=s||u&lt;=c)return!0;var f=l-s,h=u-c;return f*f+h*h&lt;=r*r};var ce=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ue(t,e){for(var r=0;r&lt;t;r++){var n=e.length;e.resize(n+4),e.float32.set(ce,3*n)}}function fe(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[4]*i+r[12],t[1]=r[1]*n+r[5]*i+r[13],t[3]=r[3]*n+r[7]*i+r[15],t}var he=function(t,e,r){void 0===e&amp;&amp;(e=new Kt(t.width+200,t.height+200,25)),void 0===r&amp;&amp;(r=new Kt(t.width+200,t.height+200,25)),this.transform=t,this.grid=e,this.ignoredGrid=r,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200};function pe(e,r,n){return r*(t.EXTENT/(e.tileSize*Math.pow(2,n-e.tileID.overscaledZ)))}he.prototype.placeCollisionBox=function(t,e,r,n,i){var a=this.projectAndGetPerspectiveRatio(n,t.anchorPointX,t.anchorPointY),o=r*a.perspectiveRatio,s=t.x1*o+a.point.x,l=t.y1*o+a.point.y,c=t.x2*o+a.point.x,u=t.y2*o+a.point.y;return!this.isInsideGrid(s,l,c,u)||!e&amp;&amp;this.grid.hitTest(s,l,c,u,i)?{box:[],offscreen:!1}:{box:[s,l,c,u],offscreen:this.isOffscreen(s,l,c,u)}},he.prototype.placeCollisionCircles=function(e,r,n,i,a,o,s,l,c,u,f,h,p){var d=[],m=new t.Point(r.anchorX,r.anchorY),g=te(m,o),v=ee(this.transform.cameraToCenterDistance,g.signedDistanceFromCamera),y=(u?a/v:a*v)/t.ONE_EM,x=te(m,s).point,b=ie(y,i,r.lineOffsetX*y,r.lineOffsetY*y,!1,x,m,r,n,s,{}),_=!1,w=!1,T=!0;if(b){for(var k=.5*h*v+p,A=new t.Point(-100,-100),M=new t.Point(this.screenRightBoundary,this.screenBottomBoundary),S=new Jt,E=b.first,L=b.last,C=[],P=E.path.length-1;P&gt;=1;P--)C.push(E.path[P]);for(var I=1;I&lt;L.path.length;I++)C.push(L.path[I]);var O=2.5*k;if(l){var z=C.map((function(t){return te(t,l)}));C=z.some((function(t){return t.signedDistanceFromCamera&lt;=0}))?[]:z.map((function(t){return t.point}))}var D=[];if(C.length&gt;0){for(var R=C[0].clone(),F=C[0].clone(),B=1;B&lt;C.length;B++)R.x=Math.min(R.x,C[B].x),R.y=Math.min(R.y,C[B].y),F.x=Math.max(F.x,C[B].x),F.y=Math.max(F.y,C[B].y);D=R.x&gt;=A.x&amp;&amp;F.x&lt;=M.x&amp;&amp;R.y&gt;=A.y&amp;&amp;F.y&lt;=M.y?[C]:F.x&lt;A.x||R.x&gt;M.x||F.y&lt;A.y||R.y&gt;M.y?[]:t.clipLine([C],A.x,A.y,M.x,M.y)}for(var N=0,j=D;N&lt;j.length;N+=1){var U=j[N];S.reset(U,.25*k);var V=0;V=S.length&lt;=.5*k?1:Math.ceil(S.paddedLength/O)+1;for(var H=0;H&lt;V;H++){var q=H/Math.max(V-1,1),G=S.lerp(q),Y=G.x+100,W=G.y+100;d.push(Y,W,k,0);var X=Y-k,Z=W-k,J=Y+k,K=W+k;if(T=T&amp;&amp;this.isOffscreen(X,Z,J,K),w=w||this.isInsideGrid(X,Z,J,K),!e&amp;&amp;this.grid.hitTestCircle(Y,W,k,f)&amp;&amp;(_=!0,!c))return{circles:[],offscreen:!1,collisionDetected:_}}}}return{circles:!c&amp;&amp;_||!w?[]:d,offscreen:T,collisionDetected:_}},he.prototype.queryRenderedSymbols=function(e){if(0===e.length||0===this.grid.keysLength()&amp;&amp;0===this.ignoredGrid.keysLength())return{};for(var r=[],n=1/0,i=1/0,a=-1/0,o=-1/0,s=0,l=e;s&lt;l.length;s+=1){var c=l[s],u=new t.Point(c.x+100,c.y+100);n=Math.min(n,u.x),i=Math.min(i,u.y),a=Math.max(a,u.x),o=Math.max(o,u.y),r.push(u)}for(var f={},h={},p=0,d=this.grid.query(n,i,a,o).concat(this.ignoredGrid.query(n,i,a,o));p&lt;d.length;p+=1){var m=d[p],g=m.key;if(void 0===f[g.bucketInstanceId]&amp;&amp;(f[g.bucketInstanceId]={}),!f[g.bucketInstanceId][g.featureIndex]){var v=[new t.Point(m.x1,m.y1),new t.Point(m.x2,m.y1),new t.Point(m.x2,m.y2),new t.Point(m.x1,m.y2)];t.polygonIntersectsPolygon(r,v)&amp;&amp;(f[g.bucketInstanceId][g.featureIndex]=!0,void 0===h[g.bucketInstanceId]&amp;&amp;(h[g.bucketInstanceId]=[]),h[g.bucketInstanceId].push(g.featureIndex))}}return h},he.prototype.insertCollisionBox=function(t,e,r,n,i){var a={bucketInstanceId:r,featureIndex:n,collisionGroupID:i};(e?this.ignoredGrid:this.grid).insert(a,t[0],t[1],t[2],t[3])},he.prototype.insertCollisionCircles=function(t,e,r,n,i){for(var a=e?this.ignoredGrid:this.grid,o={bucketInstanceId:r,featureIndex:n,collisionGroupID:i},s=0;s&lt;t.length;s+=4)a.insertCircle(o,t[s],t[s+1],t[s+2])},he.prototype.projectAndGetPerspectiveRatio=function(e,r,n){var i=[r,n,0,1];return fe(i,i,e),{point:new t.Point((i[0]/i[3]+1)/2*this.transform.width+100,(-i[1]/i[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/i[3]*.5}},he.prototype.isOffscreen=function(t,e,r,n){return r&lt;100||t&gt;=this.screenRightBoundary||n&lt;100||e&gt;this.screenBottomBoundary},he.prototype.isInsideGrid=function(t,e,r,n){return r&gt;=0&amp;&amp;t&lt;this.gridRightBoundary&amp;&amp;n&gt;=0&amp;&amp;e&lt;this.gridBottomBoundary},he.prototype.getViewportMatrix=function(){var e=t.identity([]);return t.translate(e,e,[-100,-100,0]),e};var de=function(t,e,r,n){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):n&amp;&amp;r?1:0,this.placed=r};de.prototype.isHidden=function(){return 0===this.opacity&amp;&amp;!this.placed};var me=function(t,e,r,n,i){this.text=new de(t?t.text:null,e,r,i),this.icon=new de(t?t.icon:null,e,n,i)};me.prototype.isHidden=function(){return this.text.isHidden()&amp;&amp;this.icon.isHidden()};var ge=function(t,e,r){this.text=t,this.icon=e,this.skipFade=r},ve=function(){this.invProjMatrix=t.create(),this.viewportMatrix=t.create(),this.circles=[]},ye=function(t,e,r,n,i){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=r,this.bucketIndex=n,this.tileID=i},xe=function(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}};function be(e,r,n,i,a){var o=t.getAnchorAlignment(e),s=-(o.horizontalAlign-.5)*r,l=-(o.verticalAlign-.5)*n,c=t.evaluateVariableOffset(e,i);return new t.Point(s+c[0]*a,l+c[1]*a)}function _e(e,r,n,i,a,o){var s=e.x1,l=e.x2,c=e.y1,u=e.y2,f=e.anchorPointX,h=e.anchorPointY,p=new t.Point(r,n);return i&amp;&amp;p._rotate(a?o:-o),{x1:s+p.x,y1:c+p.y,x2:l+p.x,y2:u+p.y,anchorPointX:f,anchorPointY:h}}xe.prototype.get=function(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){var e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:function(t){return t.collisionGroupID===e}}}return this.collisionGroups[t]};var we=function(t,e,r,n){this.transform=t.clone(),this.collisionIndex=new he(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new xe(r),this.collisionCircleArrays={},this.prevPlacement=n,n&amp;&amp;(n.prevPlacement=void 0),this.placedOrientations={}};function Te(t,e,r,n,i){t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0)}we.prototype.getBucketParts=function(e,r,n,i){var a=n.getBucket(r),o=n.latestFeatureIndex;if(a&amp;&amp;o&amp;&amp;r.id===a.layerIds[0]){var s=n.collisionBoxArray,l=a.layers[0].layout,c=Math.pow(2,this.transform.zoom-n.tileID.overscaledZ),u=n.tileSize/t.EXTENT,f=this.transform.calculatePosMatrix(n.tileID.toUnwrapped()),h=&quot;map&quot;===l.get(&quot;text-pitch-alignment&quot;),p=&quot;map&quot;===l.get(&quot;text-rotation-alignment&quot;),d=pe(n,1,this.transform.zoom),m=Qt(f,h,p,this.transform,d),g=null;if(h){var v=$t(f,h,p,this.transform,d);g=t.multiply([],this.transform.labelPlaneMatrix,v)}this.retainedQueryData[a.bucketInstanceId]=new ye(a.bucketInstanceId,o,a.sourceLayerIndex,a.index,n.tileID);var y={bucket:a,layout:l,posMatrix:f,textLabelPlaneMatrix:m,labelToScreenMatrix:g,scale:c,textPixelRatio:u,holdingForFade:n.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:t.evaluateSizeForZoom(a.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(a.sourceID)};if(i)for(var x=0,b=a.sortKeyRanges;x&lt;b.length;x+=1){var _=b[x],w=_.sortKey,T=_.symbolInstanceStart,k=_.symbolInstanceEnd;e.push({sortKey:w,symbolInstanceStart:T,symbolInstanceEnd:k,parameters:y})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:a.symbolInstances.length,parameters:y})}},we.prototype.attemptAnchorPlacement=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d){var m,g=[f.textOffset0,f.textOffset1],v=be(t,r,n,g,i),y=this.collisionIndex.placeCollisionBox(_e(e,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate);if(d&amp;&amp;0===this.collisionIndex.placeCollisionBox(_e(d,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate).box.length)return;if(y.box.length&gt;0)return this.prevPlacement&amp;&amp;this.prevPlacement.variableOffsets[f.crossTileID]&amp;&amp;this.prevPlacement.placements[f.crossTileID]&amp;&amp;this.prevPlacement.placements[f.crossTileID].text&amp;&amp;(m=this.prevPlacement.variableOffsets[f.crossTileID].anchor),this.variableOffsets[f.crossTileID]={textOffset:g,width:r,height:n,anchor:t,textBoxScale:i,prevAnchor:m},this.markUsedJustification(h,t,f,p),h.allowVerticalPlacement&amp;&amp;(this.markUsedOrientation(h,p,f),this.placedOrientations[f.crossTileID]=p),{shift:v,placedGlyphBoxes:y}},we.prototype.placeLayerBucketPart=function(e,r,n){var i=this,a=e.parameters,o=a.bucket,s=a.layout,l=a.posMatrix,c=a.textLabelPlaneMatrix,u=a.labelToScreenMatrix,f=a.textPixelRatio,h=a.holdingForFade,p=a.collisionBoxArray,d=a.partiallyEvaluatedTextSize,m=a.collisionGroup,g=s.get(&quot;text-optional&quot;),v=s.get(&quot;icon-optional&quot;),y=s.get(&quot;text-allow-overlap&quot;),x=s.get(&quot;icon-allow-overlap&quot;),b=&quot;map&quot;===s.get(&quot;text-rotation-alignment&quot;),_=&quot;map&quot;===s.get(&quot;text-pitch-alignment&quot;),w=&quot;none&quot;!==s.get(&quot;icon-text-fit&quot;),T=&quot;viewport-y&quot;===s.get(&quot;symbol-z-order&quot;),k=y&amp;&amp;(x||!o.hasIconData()||v),A=x&amp;&amp;(y||!o.hasTextData()||g);!o.collisionArrays&amp;&amp;p&amp;&amp;o.deserializeCollisionBoxes(p);var M=function(e,a){if(!r[e.crossTileID])if(h)i.placements[e.crossTileID]=new ge(!1,!1,!1);else{var p,T=!1,M=!1,S=!0,E=null,L={box:null,offscreen:null},C={box:null,offscreen:null},P=null,I=null,O=0,z=0,D=0;a.textFeatureIndex?O=a.textFeatureIndex:e.useRuntimeCollisionCircles&amp;&amp;(O=e.featureIndex),a.verticalTextFeatureIndex&amp;&amp;(z=a.verticalTextFeatureIndex);var R=a.textBox;if(R){var F=function(r){var n=t.WritingMode.horizontal;if(o.allowVerticalPlacement&amp;&amp;!r&amp;&amp;i.prevPlacement){var a=i.prevPlacement.placedOrientations[e.crossTileID];a&amp;&amp;(i.placedOrientations[e.crossTileID]=a,n=a,i.markUsedOrientation(o,n,e))}return n},B=function(r,n){if(o.allowVerticalPlacement&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;a.verticalTextBox)for(var i=0,s=o.writingModes;i&lt;s.length;i+=1){if(s[i]===t.WritingMode.vertical?(L=n(),C=L):L=r(),L&amp;&amp;L.box&amp;&amp;L.box.length)break}else L=r()};if(s.get(&quot;text-variable-anchor&quot;)){var N=s.get(&quot;text-variable-anchor&quot;);if(i.prevPlacement&amp;&amp;i.prevPlacement.variableOffsets[e.crossTileID]){var j=i.prevPlacement.variableOffsets[e.crossTileID];N.indexOf(j.anchor)&gt;0&amp;&amp;(N=N.filter((function(t){return t!==j.anchor}))).unshift(j.anchor)}var U=function(t,r,n){for(var a=t.x2-t.x1,s=t.y2-t.y1,c=e.textBoxScale,u=w&amp;&amp;!x?r:null,h={box:[],offscreen:!1},p=y?2*N.length:N.length,d=0;d&lt;p;++d){var g=N[d%N.length],v=d&gt;=N.length,k=i.attemptAnchorPlacement(g,t,a,s,c,b,_,f,l,m,v,e,o,n,u);if(k&amp;&amp;(h=k.placedGlyphBoxes)&amp;&amp;h.box&amp;&amp;h.box.length){T=!0,E=k.shift;break}}return h};B((function(){return U(R,a.iconBox,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox,n=L&amp;&amp;L.box&amp;&amp;L.box.length;return o.allowVerticalPlacement&amp;&amp;!n&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;r?U(r,a.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),L&amp;&amp;(T=L.box,S=L.offscreen);var V=F(L&amp;&amp;L.box);if(!T&amp;&amp;i.prevPlacement){var H=i.prevPlacement.variableOffsets[e.crossTileID];H&amp;&amp;(i.variableOffsets[e.crossTileID]=H,i.markUsedJustification(o,H.anchor,e,V))}}else{var q=function(t,r){var n=i.collisionIndex.placeCollisionBox(t,y,f,l,m.predicate);return n&amp;&amp;n.box&amp;&amp;n.box.length&amp;&amp;(i.markUsedOrientation(o,r,e),i.placedOrientations[e.crossTileID]=r),n};B((function(){return q(R,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox;return o.allowVerticalPlacement&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;r?q(r,t.WritingMode.vertical):{box:null,offscreen:null}})),F(L&amp;&amp;L.box&amp;&amp;L.box.length)}}if(T=(p=L)&amp;&amp;p.box&amp;&amp;p.box.length&gt;0,S=p&amp;&amp;p.offscreen,e.useRuntimeCollisionCircles){var G=o.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),Y=t.evaluateSizeForFeature(o.textSizeData,d,G),W=s.get(&quot;text-padding&quot;),X=e.collisionCircleDiameter;P=i.collisionIndex.placeCollisionCircles(y,G,o.lineVertexArray,o.glyphOffsetArray,Y,l,c,u,n,_,m.predicate,X,W),T=y||P.circles.length&gt;0&amp;&amp;!P.collisionDetected,S=S&amp;&amp;P.offscreen}if(a.iconFeatureIndex&amp;&amp;(D=a.iconFeatureIndex),a.iconBox){var Z=function(t){var e=w&amp;&amp;E?_e(t,E.x,E.y,b,_,i.transform.angle):t;return i.collisionIndex.placeCollisionBox(e,x,f,l,m.predicate)};M=C&amp;&amp;C.box&amp;&amp;C.box.length&amp;&amp;a.verticalIconBox?(I=Z(a.verticalIconBox)).box.length&gt;0:(I=Z(a.iconBox)).box.length&gt;0,S=S&amp;&amp;I.offscreen}var J=g||0===e.numHorizontalGlyphVertices&amp;&amp;0===e.numVerticalGlyphVertices,K=v||0===e.numIconVertices;if(J||K?K?J||(M=M&amp;&amp;T):T=M&amp;&amp;T:M=T=M&amp;&amp;T,T&amp;&amp;p&amp;&amp;p.box&amp;&amp;(C&amp;&amp;C.box&amp;&amp;z?i.collisionIndex.insertCollisionBox(p.box,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,z,m.ID):i.collisionIndex.insertCollisionBox(p.box,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,O,m.ID)),M&amp;&amp;I&amp;&amp;i.collisionIndex.insertCollisionBox(I.box,s.get(&quot;icon-ignore-placement&quot;),o.bucketInstanceId,D,m.ID),P&amp;&amp;(T&amp;&amp;i.collisionIndex.insertCollisionCircles(P.circles,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,O,m.ID),n)){var Q=o.bucketInstanceId,$=i.collisionCircleArrays[Q];void 0===$&amp;&amp;($=i.collisionCircleArrays[Q]=new ve);for(var tt=0;tt&lt;P.circles.length;tt+=4)$.circles.push(P.circles[tt+0]),$.circles.push(P.circles[tt+1]),$.circles.push(P.circles[tt+2]),$.circles.push(P.collisionDetected?1:0)}i.placements[e.crossTileID]=new ge(T||k,M||A,S||o.justReloaded),r[e.crossTileID]=!0}};if(T)for(var S=o.getSortedSymbolIndexes(this.transform.angle),E=S.length-1;E&gt;=0;--E){var L=S[E];M(o.symbolInstances.get(L),o.collisionArrays[L])}else for(var C=e.symbolInstanceStart;C&lt;e.symbolInstanceEnd;C++)M(o.symbolInstances.get(C),o.collisionArrays[C]);if(n&amp;&amp;o.bucketInstanceId in this.collisionCircleArrays){var P=this.collisionCircleArrays[o.bucketInstanceId];t.invert(P.invProjMatrix,l),P.viewportMatrix=this.collisionIndex.getViewportMatrix()}o.justReloaded=!1},we.prototype.markUsedJustification=function(e,r,n,i){var a,o={left:n.leftJustifiedTextSymbolIndex,center:n.centerJustifiedTextSymbolIndex,right:n.rightJustifiedTextSymbolIndex};a=i===t.WritingMode.vertical?n.verticalPlacedTextSymbolIndex:o[t.getAnchorJustification(r)];for(var s=0,l=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex,n.verticalPlacedTextSymbolIndex];s&lt;l.length;s+=1){var c=l[s];c&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(c).crossTileID=a&gt;=0&amp;&amp;c!==a?0:n.crossTileID)}},we.prototype.markUsedOrientation=function(e,r,n){for(var i=r===t.WritingMode.horizontal||r===t.WritingMode.horizontalOnly?r:0,a=r===t.WritingMode.vertical?r:0,o=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex];o&lt;s.length;o+=1){var l=s[o];e.text.placedSymbolArray.get(l).placedOrientation=i}n.verticalPlacedTextSymbolIndex&amp;&amp;(e.text.placedSymbolArray.get(n.verticalPlacedTextSymbolIndex).placedOrientation=a)},we.prototype.commit=function(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;var e=this.prevPlacement,r=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;var n=e?e.symbolFadeChange(t):1,i=e?e.opacities:{},a=e?e.variableOffsets:{},o=e?e.placedOrientations:{};for(var s in this.placements){var l=this.placements[s],c=i[s];c?(this.opacities[s]=new me(c,n,l.text,l.icon),r=r||l.text!==c.text.placed||l.icon!==c.icon.placed):(this.opacities[s]=new me(null,n,l.text,l.icon,l.skipFade),r=r||l.text||l.icon)}for(var u in i){var f=i[u];if(!this.opacities[u]){var h=new me(f,n,!1,!1);h.isHidden()||(this.opacities[u]=h,r=r||f.text.placed||f.icon.placed)}}for(var p in a)this.variableOffsets[p]||!this.opacities[p]||this.opacities[p].isHidden()||(this.variableOffsets[p]=a[p]);for(var d in o)this.placedOrientations[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.placedOrientations[d]=o[d]);r?this.lastPlacementChangeTime=t:&quot;number&quot;!=typeof this.lastPlacementChangeTime&amp;&amp;(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)},we.prototype.updateLayerOpacities=function(t,e){for(var r={},n=0,i=e;n&lt;i.length;n+=1){var a=i[n],o=a.getBucket(t);o&amp;&amp;a.latestFeatureIndex&amp;&amp;t.id===o.layerIds[0]&amp;&amp;this.updateBucketOpacities(o,r,a.collisionBoxArray)}},we.prototype.updateBucketOpacities=function(e,r,n){var i=this;e.hasTextData()&amp;&amp;e.text.opacityVertexArray.clear(),e.hasIconData()&amp;&amp;e.icon.opacityVertexArray.clear(),e.hasIconCollisionBoxData()&amp;&amp;e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&amp;&amp;e.textCollisionBox.collisionVertexArray.clear();var a=e.layers[0].layout,o=new me(null,0,!1,!1,!0),s=a.get(&quot;text-allow-overlap&quot;),l=a.get(&quot;icon-allow-overlap&quot;),c=a.get(&quot;text-variable-anchor&quot;),u=&quot;map&quot;===a.get(&quot;text-rotation-alignment&quot;),f=&quot;map&quot;===a.get(&quot;text-pitch-alignment&quot;),h=&quot;none&quot;!==a.get(&quot;icon-text-fit&quot;),p=new me(null,0,s&amp;&amp;(l||!e.hasIconData()||a.get(&quot;icon-optional&quot;)),l&amp;&amp;(s||!e.hasTextData()||a.get(&quot;text-optional&quot;)),!0);!e.collisionArrays&amp;&amp;n&amp;&amp;(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&amp;&amp;e.deserializeCollisionBoxes(n);for(var d=function(t,e,r){for(var n=0;n&lt;e/4;n++)t.opacityVertexArray.emplaceBack(r)},m=function(n){var a=e.symbolInstances.get(n),s=a.numHorizontalGlyphVertices,l=a.numVerticalGlyphVertices,m=a.crossTileID,g=r[m],v=i.opacities[m];g?v=o:v||(v=p,i.opacities[m]=v),r[m]=!0;var y=s&gt;0||l&gt;0,x=a.numIconVertices&gt;0,b=i.placedOrientations[a.crossTileID],_=b===t.WritingMode.vertical,w=b===t.WritingMode.horizontal||b===t.WritingMode.horizontalOnly;if(y){var T=Pe(v.text),k=_?Ie:T;d(e.text,s,k);var A=w?Ie:T;d(e.text,l,A);var M=v.text.isHidden();[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((function(t){t&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(t).hidden=M||_?1:0)})),a.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).hidden=M||w?1:0);var S=i.variableOffsets[a.crossTileID];S&amp;&amp;i.markUsedJustification(e,S.anchor,a,b);var E=i.placedOrientations[a.crossTileID];E&amp;&amp;(i.markUsedJustification(e,&quot;left&quot;,a,E),i.markUsedOrientation(e,E,a))}if(x){var L=Pe(v.icon),C=!(h&amp;&amp;a.verticalPlacedIconSymbolIndex&amp;&amp;_);if(a.placedIconSymbolIndex&gt;=0){var P=C?L:Ie;d(e.icon,a.numIconVertices,P),e.icon.placedSymbolArray.get(a.placedIconSymbolIndex).hidden=v.icon.isHidden()}if(a.verticalPlacedIconSymbolIndex&gt;=0){var I=C?Ie:L;d(e.icon,a.numVerticalIconVertices,I),e.icon.placedSymbolArray.get(a.verticalPlacedIconSymbolIndex).hidden=v.icon.isHidden()}}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){var O=e.collisionArrays[n];if(O){var z=new t.Point(0,0);if(O.textBox||O.verticalTextBox){var D=!0;if(c){var R=i.variableOffsets[m];R?(z=be(R.anchor,R.width,R.height,R.textOffset,R.textBoxScale),u&amp;&amp;z._rotate(f?i.transform.angle:-i.transform.angle)):D=!1}O.textBox&amp;&amp;Te(e.textCollisionBox.collisionVertexArray,v.text.placed,!D||_,z.x,z.y),O.verticalTextBox&amp;&amp;Te(e.textCollisionBox.collisionVertexArray,v.text.placed,!D||w,z.x,z.y)}var F=Boolean(!w&amp;&amp;O.verticalIconBox);O.iconBox&amp;&amp;Te(e.iconCollisionBox.collisionVertexArray,v.icon.placed,F,h?z.x:0,h?z.y:0),O.verticalIconBox&amp;&amp;Te(e.iconCollisionBox.collisionVertexArray,v.icon.placed,!F,h?z.x:0,h?z.y:0)}}},g=0;g&lt;e.symbolInstances.length;g++)m(g);if(e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&amp;&amp;(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&amp;&amp;e.text.opacityVertexBuffer&amp;&amp;e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&amp;&amp;e.icon.opacityVertexBuffer&amp;&amp;e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&amp;&amp;e.iconCollisionBox.collisionVertexBuffer&amp;&amp;e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&amp;&amp;e.textCollisionBox.collisionVertexBuffer&amp;&amp;e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.bucketInstanceId in this.collisionCircleArrays){var v=this.collisionCircleArrays[e.bucketInstanceId];e.placementInvProjMatrix=v.invProjMatrix,e.placementViewportMatrix=v.viewportMatrix,e.collisionCircleArray=v.circles,delete this.collisionCircleArrays[e.bucketInstanceId]}},we.prototype.symbolFadeChange=function(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},we.prototype.zoomAdjustment=function(t){return Math.max(0,(this.transform.zoom-t)/1.5)},we.prototype.hasTransitions=function(t){return this.stale||t-this.lastPlacementChangeTime&lt;this.fadeDuration},we.prototype.stillRecent=function(t,e){var r=this.zoomAtLastRecencyCheck===e?1-this.zoomAdjustment(e):1;return this.zoomAtLastRecencyCheck=e,this.commitTime+this.fadeDuration*r&gt;t},we.prototype.setStale=function(){this.stale=!0};var ke=Math.pow(2,25),Ae=Math.pow(2,24),Me=Math.pow(2,17),Se=Math.pow(2,16),Ee=Math.pow(2,9),Le=Math.pow(2,8),Ce=Math.pow(2,1);function Pe(t){if(0===t.opacity&amp;&amp;!t.placed)return 0;if(1===t.opacity&amp;&amp;t.placed)return 4294967295;var e=t.placed?1:0,r=Math.floor(127*t.opacity);return r*ke+e*Ae+r*Me+e*Se+r*Ee+e*Le+r*Ce+e}var Ie=0,Oe=function(t){this._sortAcrossTiles=&quot;viewport-y&quot;!==t.layout.get(&quot;symbol-z-order&quot;)&amp;&amp;void 0!==t.layout.get(&quot;symbol-sort-key&quot;).constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Oe.prototype.continuePlacement=function(t,e,r,n,i){for(var a=this._bucketParts;this._currentTileIndex&lt;t.length;){var o=t[this._currentTileIndex];if(e.getBucketParts(a,n,o,this._sortAcrossTiles),this._currentTileIndex++,i())return!0}for(this._sortAcrossTiles&amp;&amp;(this._sortAcrossTiles=!1,a.sort((function(t,e){return t.sortKey-e.sortKey})));this._currentPartIndex&lt;a.length;){var s=a[this._currentPartIndex];if(e.placeLayerBucketPart(s,this._seenCrossTileIDs,r),this._currentPartIndex++,i())return!0}return!1};var ze=function(t,e,r,n,i,a,o){this.placement=new we(t,i,a,o),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=n,this._done=!1};ze.prototype.isDone=function(){return this._done},ze.prototype.continuePlacement=function(e,r,n){for(var i=this,a=t.browser.now(),o=function(){var e=t.browser.now()-a;return!i._forceFullPlacement&amp;&amp;e&gt;2};this._currentPlacementIndex&gt;=0;){var s=r[e[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if(&quot;symbol&quot;===s.type&amp;&amp;(!s.minzoom||s.minzoom&lt;=l)&amp;&amp;(!s.maxzoom||s.maxzoom&gt;l)){if(this._inProgressLayer||(this._inProgressLayer=new Oe(s)),this._inProgressLayer.continuePlacement(n[s.source],this.placement,this._showCollisionBoxes,s,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},ze.prototype.commit=function(t){return this.placement.commit(t),this.placement};var De=512/t.EXTENT/2,Re=function(t,e,r){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=r;for(var n=0;n&lt;e.length;n++){var i=e.get(n),a=i.key;this.indexedSymbolInstances[a]||(this.indexedSymbolInstances[a]=[]),this.indexedSymbolInstances[a].push({crossTileID:i.crossTileID,coord:this.getScaledCoordinates(i,t)})}};Re.prototype.getScaledCoordinates=function(e,r){var n=r.canonical.z-this.tileID.canonical.z,i=De/Math.pow(2,n);return{x:Math.floor((r.canonical.x*t.EXTENT+e.anchorX)*i),y:Math.floor((r.canonical.y*t.EXTENT+e.anchorY)*i)}},Re.prototype.findMatches=function(t,e,r){for(var n=this.tileID.canonical.z&lt;e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z),i=0;i&lt;t.length;i++){var a=t.get(i);if(!a.crossTileID){var o=this.indexedSymbolInstances[a.key];if(o)for(var s=this.getScaledCoordinates(a,e),l=0,c=o;l&lt;c.length;l+=1){var u=c[l];if(Math.abs(u.coord.x-s.x)&lt;=n&amp;&amp;Math.abs(u.coord.y-s.y)&lt;=n&amp;&amp;!r[u.crossTileID]){r[u.crossTileID]=!0,a.crossTileID=u.crossTileID;break}}}}};var Fe=function(){this.maxCrossTileID=0};Fe.prototype.generate=function(){return++this.maxCrossTileID};var Be=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};Be.prototype.handleWrapJump=function(t){var e=Math.round((t-this.lng)/360);if(0!==e)for(var r in this.indexes){var n=this.indexes[r],i={};for(var a in n){var o=n[a];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+e),i[o.tileID.key]=o}this.indexes[r]=i}this.lng=t},Be.prototype.addBucket=function(t,e,r){if(this.indexes[t.overscaledZ]&amp;&amp;this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(var n=0;n&lt;e.symbolInstances.length;n++){e.symbolInstances.get(n).crossTileID=0}this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});var i=this.usedCrossTileIDs[t.overscaledZ];for(var a in this.indexes){var o=this.indexes[a];if(Number(a)&gt;t.overscaledZ)for(var s in o){var l=o[s];l.tileID.isChildOf(t)&amp;&amp;l.findMatches(e.symbolInstances,t,i)}else{var c=o[t.scaledTo(Number(a)).key];c&amp;&amp;c.findMatches(e.symbolInstances,t,i)}}for(var u=0;u&lt;e.symbolInstances.length;u++){var f=e.symbolInstances.get(u);f.crossTileID||(f.crossTileID=r.generate(),i[f.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&amp;&amp;(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new Re(t,e.symbolInstances,e.bucketInstanceId),!0},Be.prototype.removeBucketCrossTileIDs=function(t,e){for(var r in e.indexedSymbolInstances)for(var n=0,i=e.indexedSymbolInstances[r];n&lt;i.length;n+=1){var a=i[n];delete this.usedCrossTileIDs[t][a.crossTileID]}},Be.prototype.removeStaleBuckets=function(t){var e=!1;for(var r in this.indexes){var n=this.indexes[r];for(var i in n)t[n[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(r,n[i]),delete n[i],e=!0)}return e};var Ne=function(){this.layerIndexes={},this.crossTileIDs=new Fe,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};Ne.prototype.addLayer=function(t,e,r){var n=this.layerIndexes[t.id];void 0===n&amp;&amp;(n=this.layerIndexes[t.id]=new Be);var i=!1,a={};n.handleWrapJump(r);for(var o=0,s=e;o&lt;s.length;o+=1){var l=s[o],c=l.getBucket(t);c&amp;&amp;t.id===c.layerIds[0]&amp;&amp;(c.bucketInstanceId||(c.bucketInstanceId=++this.maxBucketInstanceId),n.addBucket(l.tileID,c,this.crossTileIDs)&amp;&amp;(i=!0),a[c.bucketInstanceId]=!0)}return n.removeStaleBuckets(a)&amp;&amp;(i=!0),i},Ne.prototype.pruneUnusedLayers=function(t){var e={};for(var r in t.forEach((function(t){e[t]=!0})),this.layerIndexes)e[r]||delete this.layerIndexes[r]};var je=function(e,r){return t.emitValidationErrors(e,r&amp;&amp;r.filter((function(t){return&quot;source.canvas&quot;!==t.identifier})))},Ue=t.pick(Ut,[&quot;addLayer&quot;,&quot;removeLayer&quot;,&quot;setPaintProperty&quot;,&quot;setLayoutProperty&quot;,&quot;setFilter&quot;,&quot;addSource&quot;,&quot;removeSource&quot;,&quot;setLayerZoomRange&quot;,&quot;setLight&quot;,&quot;setTransition&quot;,&quot;setGeoJSONSourceData&quot;]),Ve=t.pick(Ut,[&quot;setCenter&quot;,&quot;setZoom&quot;,&quot;setBearing&quot;,&quot;setPitch&quot;]),He=function(){var e={},r=t.styleSpec.$version;for(var n in t.styleSpec.$root){var i=t.styleSpec.$root[n];if(i.required){var a=null;null!=(a=&quot;version&quot;===n?r:&quot;array&quot;===i.type?[]:{})&amp;&amp;(e[n]=a)}}return e}(),qe=function(e){function r(n,i){var a=this;void 0===i&amp;&amp;(i={}),e.call(this),this.map=n,this.dispatcher=new k(Bt(),this),this.imageManager=new h,this.imageManager.setEventedParent(this),this.glyphManager=new x(n._requestManager,i.localIdeographFontFamily),this.lineAtlas=new T(256,512),this.crossTileSymbolIndex=new Ne,this._layers={},this._serializedLayers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast(&quot;setReferrer&quot;,t.getReferrer());var o=this;this._rtlTextPluginCallback=r.registerForPluginStateChange((function(e){var r={pluginStatus:e.pluginStatus,pluginURL:e.pluginURL};o.dispatcher.broadcast(&quot;syncRTLPluginState&quot;,r,(function(e,r){if((t.triggerPluginCompletionEvent(e),r)&amp;&amp;r.every((function(t){return t})))for(var n in o.sourceCaches)o.sourceCaches[n].reload()}))})),this.on(&quot;data&quot;,(function(t){if(&quot;source&quot;===t.dataType&amp;&amp;&quot;metadata&quot;===t.sourceDataType){var e=a.sourceCaches[t.sourceId];if(e){var r=e.getSource();if(r&amp;&amp;r.vectorLayerIds)for(var n in a._layers){var i=a._layers[n];i.source===r.id&amp;&amp;a._validateLayer(i)}}}}))}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.loadURL=function(e,r){var n=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;}));var i=&quot;boolean&quot;==typeof r.validate?r.validate:!t.isMapboxURL(e);e=this.map._requestManager.normalizeStyleURL(e,r.accessToken);var a=this.map._requestManager.transformRequest(e,t.ResourceType.Style);this._request=t.getJSON(a,(function(e,r){n._request=null,e?n.fire(new t.ErrorEvent(e)):r&amp;&amp;n._load(r,i)}))},r.prototype.loadJSON=function(e,r){var n=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;})),this._request=t.browser.frame((function(){n._request=null,n._load(e,!1!==r.validate)}))},r.prototype.loadEmpty=function(){this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;})),this._load(He,!1)},r.prototype._load=function(e,r){if(!r||!je(this,t.validateStyle(e))){for(var n in this._loaded=!0,this.stylesheet=e,e.sources)this.addSource(n,e.sources[n],{validate:!1});e.sprite?this._loadSprite(e.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(e.glyphs);var i=jt(this.stylesheet.layers);this._order=i.map((function(t){return t.id})),this._layers={},this._serializedLayers={};for(var a=0,o=i;a&lt;o.length;a+=1){var s=o[a];(s=t.createStyleLayer(s)).setEventedParent(this,{layer:{id:s.id}}),this._layers[s.id]=s,this._serializedLayers[s.id]=s.serialize()}this.dispatcher.broadcast(&quot;setLayers&quot;,this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;})),this.fire(new t.Event(&quot;style.load&quot;))}},r.prototype._loadSprite=function(e){var r=this;this._spriteRequest=function(e,r,n){var i,a,o,s=t.browser.devicePixelRatio&gt;1?&quot;@2x&quot;:&quot;&quot;,l=t.getJSON(r.transformRequest(r.normalizeSpriteURL(e,s,&quot;.json&quot;),t.ResourceType.SpriteJSON),(function(t,e){l=null,o||(o=t,i=e,u())})),c=t.getImage(r.transformRequest(r.normalizeSpriteURL(e,s,&quot;.png&quot;),t.ResourceType.SpriteImage),(function(t,e){c=null,o||(o=t,a=e,u())}));function u(){if(o)n(o);else if(i&amp;&amp;a){var e=t.browser.getImageData(a),r={};for(var s in i){var l=i[s],c=l.width,u=l.height,f=l.x,h=l.y,p=l.sdf,d=l.pixelRatio,m=l.stretchX,g=l.stretchY,v=l.content,y=new t.RGBAImage({width:c,height:u});t.RGBAImage.copy(e,y,{x:f,y:h},{x:0,y:0},{width:c,height:u}),r[s]={data:y,pixelRatio:d,sdf:p,stretchX:m,stretchY:g,content:v}}n(null,r)}}return{cancel:function(){l&amp;&amp;(l.cancel(),l=null),c&amp;&amp;(c.cancel(),c=null)}}}(e,this.map._requestManager,(function(e,n){if(r._spriteRequest=null,e)r.fire(new t.ErrorEvent(e));else if(n)for(var i in n)r.imageManager.addImage(i,n[i]);r.imageManager.setLoaded(!0),r._availableImages=r.imageManager.listImages(),r.dispatcher.broadcast(&quot;setImages&quot;,r._availableImages),r.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))}))},r.prototype._validateLayer=function(e){var r=this.sourceCaches[e.source];if(r){var n=e.sourceLayer;if(n){var i=r.getSource();(&quot;geojson&quot;===i.type||i.vectorLayerIds&amp;&amp;-1===i.vectorLayerIds.indexOf(n))&amp;&amp;this.fire(new t.ErrorEvent(new Error('Source layer &quot;'+n+'&quot; does not exist on source &quot;'+i.id+'&quot; as specified by style layer &quot;'+e.id+'&quot;')))}}},r.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},r.prototype._serializeLayers=function(t){for(var e=[],r=0,n=t;r&lt;n.length;r+=1){var i=n[r],a=this._layers[i];&quot;custom&quot;!==a.type&amp;&amp;e.push(a.serialize())}return e},r.prototype.hasTransitions=function(){if(this.light&amp;&amp;this.light.hasTransition())return!0;for(var t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(var e in this._layers)if(this._layers[e].hasTransition())return!0;return!1},r.prototype._checkLoaded=function(){if(!this._loaded)throw new Error(&quot;Style is not done loading&quot;)},r.prototype.update=function(e){if(this._loaded){var r=this._changed;if(this._changed){var n=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);for(var a in(n.length||i.length)&amp;&amp;this._updateWorkerLayers(n,i),this._updatedSources){var o=this._updatedSources[a];&quot;reload&quot;===o?this._reloadSource(a):&quot;clear&quot;===o&amp;&amp;this._clearSource(a)}for(var s in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[s].updateTransitions(e);this.light.updateTransitions(e),this._resetUpdates()}for(var l in this.sourceCaches)this.sourceCaches[l].used=!1;for(var c=0,u=this._order;c&lt;u.length;c+=1){var f=u[c],h=this._layers[f];h.recalculate(e,this._availableImages),!h.isHidden(e.zoom)&amp;&amp;h.source&amp;&amp;(this.sourceCaches[h.source].used=!0)}this.light.recalculate(e),this.z=e.zoom,r&amp;&amp;this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))}},r.prototype._updateTilesForChangedImages=function(){var t=Object.keys(this._changedImages);if(t.length){for(var e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies([&quot;icons&quot;,&quot;patterns&quot;],t);this._changedImages={}}},r.prototype._updateWorkerLayers=function(t,e){this.dispatcher.broadcast(&quot;updateLayers&quot;,{layers:this._serializeLayers(t),removedIds:e})},r.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}},r.prototype.setState=function(e){var r=this;if(this._checkLoaded(),je(this,t.validateStyle(e)))return!1;(e=t.clone$1(e)).layers=jt(e.layers);var n=Zt(this.serialize(),e).filter((function(t){return!(t.command in Ve)}));if(0===n.length)return!1;var i=n.filter((function(t){return!(t.command in Ue)}));if(i.length&gt;0)throw new Error(&quot;Unimplemented: &quot;+i.map((function(t){return t.command})).join(&quot;, &quot;)+&quot;.&quot;);return n.forEach((function(t){&quot;setTransition&quot;!==t.command&amp;&amp;r[t.command].apply(r,t.args)})),this.stylesheet=e,!0},r.prototype.addImage=function(e,r){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error(&quot;An image with this name already exists.&quot;)));this.imageManager.addImage(e,r),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))},r.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},r.prototype.getImage=function(t){return this.imageManager.getImage(t)},r.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error(&quot;No image with this name exists.&quot;)));this.imageManager.removeImage(e),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))},r.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},r.prototype.addSource=function(e,r,n){var i=this;if(void 0===n&amp;&amp;(n={}),this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error(&quot;There is already a source with this ID&quot;);if(!r.type)throw new Error(&quot;The type property must be defined, but the only the following properties were given: &quot;+Object.keys(r).join(&quot;, &quot;)+&quot;.&quot;);if(!([&quot;vector&quot;,&quot;raster&quot;,&quot;geojson&quot;,&quot;video&quot;,&quot;image&quot;].indexOf(r.type)&gt;=0)||!this._validate(t.validateStyle.source,&quot;sources.&quot;+e,r,null,n)){this.map&amp;&amp;this.map._collectResourceTiming&amp;&amp;(r.collectResourceTiming=!0);var a=this.sourceCaches[e]=new Ct(e,r,this.dispatcher);a.style=this,a.setEventedParent(this,(function(){return{isSourceLoaded:i.loaded(),source:a.serialize(),sourceId:e}})),a.onAdd(this.map),this._changed=!0}},r.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error(&quot;There is no source with this ID&quot;);for(var r in this._layers)if(this._layers[r].source===e)return this.fire(new t.ErrorEvent(new Error('Source &quot;'+e+'&quot; cannot be removed while layer &quot;'+r+'&quot; is using it.')));var n=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],n.fire(new t.Event(&quot;data&quot;,{sourceDataType:&quot;metadata&quot;,dataType:&quot;source&quot;,sourceId:e})),n.setEventedParent(null),n.clearTiles(),n.onRemove&amp;&amp;n.onRemove(this.map),this._changed=!0},r.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},r.prototype.getSource=function(t){return this.sourceCaches[t]&amp;&amp;this.sourceCaches[t].getSource()},r.prototype.addLayer=function(e,r,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var i=e.id;if(this.getLayer(i))this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+i+'&quot; already exists on this map')));else{var a;if(&quot;custom&quot;===e.type){if(je(this,t.validateCustomStyleLayer(e)))return;a=t.createStyleLayer(e)}else{if(&quot;object&quot;==typeof e.source&amp;&amp;(this.addSource(i,e.source),e=t.clone$1(e),e=t.extend(e,{source:i})),this._validate(t.validateStyle.layer,&quot;layers.&quot;+i,e,{arrayIndex:-1},n))return;a=t.createStyleLayer(e),this._validateLayer(a),a.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[a.id]=a.serialize()}var o=r?this._order.indexOf(r):this._order.length;if(r&amp;&amp;-1===o)this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+r+'&quot; does not exist on this map.')));else{if(this._order.splice(o,0,i),this._layerOrderChanged=!0,this._layers[i]=a,this._removedLayers[i]&amp;&amp;a.source&amp;&amp;&quot;custom&quot;!==a.type){var s=this._removedLayers[i];delete this._removedLayers[i],s.type!==a.type?this._updatedSources[a.source]=&quot;clear&quot;:(this._updatedSources[a.source]=&quot;reload&quot;,this.sourceCaches[a.source].pause())}this._updateLayer(a),a.onAdd&amp;&amp;a.onAdd(this.map)}}},r.prototype.moveLayer=function(e,r){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==r){var n=this._order.indexOf(e);this._order.splice(n,1);var i=r?this._order.indexOf(r):this._order.length;r&amp;&amp;-1===i?this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+r+'&quot; does not exist on this map.'))):(this._order.splice(i,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be moved.&quot;)))},r.prototype.removeLayer=function(e){this._checkLoaded();var r=this._layers[e];if(r){r.setEventedParent(null);var n=this._order.indexOf(e);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=r,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],r.onRemove&amp;&amp;r.onRemove(this.map)}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be removed.&quot;)))},r.prototype.getLayer=function(t){return this._layers[t]},r.prototype.hasLayer=function(t){return t in this._layers},r.prototype.setLayerZoomRange=function(e,r,n){this._checkLoaded();var i=this.getLayer(e);i?i.minzoom===r&amp;&amp;i.maxzoom===n||(null!=r&amp;&amp;(i.minzoom=r),null!=n&amp;&amp;(i.maxzoom=n),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot have zoom extent.&quot;)))},r.prototype.setFilter=function(e,r,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var i=this.getLayer(e);if(i){if(!t.deepEqual(i.filter,r))return null==r?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(t.validateStyle.filter,&quot;layers.&quot;+i.id+&quot;.filter&quot;,r,null,n)||(i.filter=t.clone$1(r),this._updateLayer(i)))}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be filtered.&quot;)))},r.prototype.getFilter=function(e){return t.clone$1(this.getLayer(e).filter)},r.prototype.setLayoutProperty=function(e,r,n,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getLayoutProperty(r),n)||(a.setLayoutProperty(r,n,i),this._updateLayer(a)):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be styled.&quot;)))},r.prototype.getLayoutProperty=function(e,r){var n=this.getLayer(e);if(n)return n.getLayoutProperty(r);this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style.&quot;)))},r.prototype.setPaintProperty=function(e,r,n,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getPaintProperty(r),n)||(a.setPaintProperty(r,n,i)&amp;&amp;this._updateLayer(a),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be styled.&quot;)))},r.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},r.prototype.setFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=e.sourceLayer,a=this.sourceCaches[n];if(void 0!==a){var o=a.getSource().type;&quot;geojson&quot;===o&amp;&amp;i?this.fire(new t.ErrorEvent(new Error(&quot;GeoJSON sources cannot have a sourceLayer parameter.&quot;))):&quot;vector&quot;!==o||i?(void 0===e.id&amp;&amp;this.fire(new t.ErrorEvent(new Error(&quot;The feature id parameter must be provided.&quot;))),a.setFeatureState(i,e.id,r)):this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+n+&quot;' does not exist in the map's style.&quot;)))},r.prototype.removeFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=this.sourceCaches[n];if(void 0!==i){var a=i.getSource().type,o=&quot;vector&quot;===a?e.sourceLayer:void 0;&quot;vector&quot;!==a||o?r&amp;&amp;&quot;string&quot;!=typeof e.id&amp;&amp;&quot;number&quot;!=typeof e.id?this.fire(new t.ErrorEvent(new Error(&quot;A feature id is requred to remove its specific state property.&quot;))):i.removeFeatureState(o,e.id,r):this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+n+&quot;' does not exist in the map's style.&quot;)))},r.prototype.getFeatureState=function(e){this._checkLoaded();var r=e.source,n=e.sourceLayer,i=this.sourceCaches[r];if(void 0!==i){if(&quot;vector&quot;!==i.getSource().type||n)return void 0===e.id&amp;&amp;this.fire(new t.ErrorEvent(new Error(&quot;The feature id parameter must be provided.&quot;))),i.getFeatureState(n,e.id);this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+r+&quot;' does not exist in the map's style.&quot;)))},r.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&amp;&amp;this.stylesheet.transition)},r.prototype.serialize=function(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,(function(t){return t.serialize()})),layers:this._serializeLayers(this._order)},(function(t){return void 0!==t}))},r.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&amp;&amp;!this._updatedSources[t.source]&amp;&amp;&quot;raster&quot;!==this.sourceCaches[t.source].getSource().type&amp;&amp;(this._updatedSources[t.source]=&quot;reload&quot;,this.sourceCaches[t.source].pause()),this._changed=!0},r.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,r=function(t){return&quot;fill-extrusion&quot;===e._layers[t].type},n={},i=[],a=this._order.length-1;a&gt;=0;a--){var o=this._order[a];if(r(o)){n[o]=a;for(var s=0,l=t;s&lt;l.length;s+=1){var c=l[s][o];if(c)for(var u=0,f=c;u&lt;f.length;u+=1){var h=f[u];i.push(h)}}}}i.sort((function(t,e){return e.intersectionZ-t.intersectionZ}));for(var p=[],d=this._order.length-1;d&gt;=0;d--){var m=this._order[d];if(r(m))for(var g=i.length-1;g&gt;=0;g--){var v=i[g].feature;if(n[v.layer.id]&lt;d)break;p.push(v),i.pop()}else for(var y=0,x=t;y&lt;x.length;y+=1){var b=x[y][m];if(b)for(var _=0,w=b;_&lt;w.length;_+=1){var T=w[_];p.push(T.feature)}}}return p},r.prototype.queryRenderedFeatures=function(e,r,n){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,&quot;queryRenderedFeatures.filter&quot;,r.filter,null,r);var i={};if(r&amp;&amp;r.layers){if(!Array.isArray(r.layers))return this.fire(new t.ErrorEvent(new Error(&quot;parameters.layers must be an Array.&quot;))),[];for(var a=0,o=r.layers;a&lt;o.length;a+=1){var s=o[a],l=this._layers[s];if(!l)return this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+s+&quot;' does not exist in the map's style and cannot be queried for features.&quot;))),[];i[l.source]=!0}}var c=[];for(var u in r.availableImages=this._availableImages,this.sourceCaches)r.layers&amp;&amp;!i[u]||c.push(F(this.sourceCaches[u],this._layers,this._serializedLayers,e,r,n));return this.placement&amp;&amp;c.push(function(t,e,r,n,i,a,o){for(var s={},l=a.queryRenderedSymbols(n),c=[],u=0,f=Object.keys(l).map(Number);u&lt;f.length;u+=1){var h=f[u];c.push(o[h])}c.sort(B);for(var p=function(){var r=m[d],n=r.featureIndex.lookupSymbolFeatures(l[r.bucketInstanceId],e,r.bucketIndex,r.sourceLayerIndex,i.filter,i.layers,i.availableImages,t);for(var a in n){var o=s[a]=s[a]||[],c=n[a];c.sort((function(t,e){var n=r.featureSortOrder;if(n){var i=n.indexOf(t.featureIndex);return n.indexOf(e.featureIndex)-i}return e.featureIndex-t.featureIndex}));for(var u=0,f=c;u&lt;f.length;u+=1){var h=f[u];o.push(h)}}},d=0,m=c;d&lt;m.length;d+=1)p();var g=function(e){s[e].forEach((function(n){var i=n.feature,a=t[e],o=r[a.source].getFeatureState(i.layer[&quot;source-layer&quot;],i.id);i.source=i.layer.source,i.layer[&quot;source-layer&quot;]&amp;&amp;(i.sourceLayer=i.layer[&quot;source-layer&quot;]),i.state=o}))};for(var v in s)g(v);return s}(this._layers,this._serializedLayers,this.sourceCaches,e,r,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(c)},r.prototype.querySourceFeatures=function(e,r){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,&quot;querySourceFeatures.filter&quot;,r.filter,null,r);var n=this.sourceCaches[e];return n?function(t,e){for(var r=t.getRenderableIds().map((function(e){return t.getTileByID(e)})),n=[],i={},a=0;a&lt;r.length;a++){var o=r[a],s=o.tileID.canonical.key;i[s]||(i[s]=!0,o.querySourceFeatures(n,e))}return n}(n,r):[]},r.prototype.addSourceType=function(t,e,n){return r.getSourceType(t)?n(new Error('A source type called &quot;'+t+'&quot; already exists.')):(r.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast(&quot;loadWorkerSource&quot;,{name:t,url:e.workerSourceURL},n):n(null,null))},r.prototype.getLight=function(){return this.light.getLight()},r.prototype.setLight=function(e,r){void 0===r&amp;&amp;(r={}),this._checkLoaded();var n=this.light.getLight(),i=!1;for(var a in e)if(!t.deepEqual(e[a],n[a])){i=!0;break}if(i){var o={now:t.browser.now(),transition:t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,r),this.light.updateTransitions(o)}},r.prototype._validate=function(e,r,n,i,a){return void 0===a&amp;&amp;(a={}),(!a||!1!==a.validate)&amp;&amp;je(this,e.call(t.validateStyle,t.extend({key:r,style:this.serialize(),value:n,styleSpec:t.styleSpec},i)))},r.prototype._remove=function(){for(var e in this._request&amp;&amp;(this._request.cancel(),this._request=null),this._spriteRequest&amp;&amp;(this._spriteRequest.cancel(),this._spriteRequest=null),t.evented.off(&quot;pluginStateChange&quot;,this._rtlTextPluginCallback),this._layers){this._layers[e].setEventedParent(null)}for(var r in this.sourceCaches)this.sourceCaches[r].clearTiles(),this.sourceCaches[r].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()},r.prototype._clearSource=function(t){this.sourceCaches[t].clearTiles()},r.prototype._reloadSource=function(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()},r.prototype._updateSources=function(t){for(var e in this.sourceCaches)this.sourceCaches[e].update(t)},r.prototype._generateCollisionBoxes=function(){for(var t in this.sourceCaches)this._reloadSource(t)},r.prototype._updatePlacement=function(e,r,n,i,a){void 0===a&amp;&amp;(a=!1);for(var o=!1,s=!1,l={},c=0,u=this._order;c&lt;u.length;c+=1){var f=u[c],h=this._layers[f];if(&quot;symbol&quot;===h.type){if(!l[h.source]){var p=this.sourceCaches[h.source];l[h.source]=p.getRenderableIds(!0).map((function(t){return p.getTileByID(t)})).sort((function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)}))}var d=this.crossTileSymbolIndex.addLayer(h,l[h.source],e.center.lng);o=o||d}}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((a=a||this._layerOrderChanged||0===n)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&amp;&amp;!this.placement.stillRecent(t.browser.now(),e.zoom))&amp;&amp;(this.pauseablePlacement=new ze(e,this._order,a,r,n,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&amp;&amp;(this.placement=this.pauseablePlacement.commit(t.browser.now()),s=!0),o&amp;&amp;this.pauseablePlacement.placement.setStale()),s||o)for(var m=0,g=this._order;m&lt;g.length;m+=1){var v=g[m],y=this._layers[v];&quot;symbol&quot;===y.type&amp;&amp;this.placement.updateLayerOpacities(y,l[y.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(t.browser.now())},r.prototype._releaseSymbolFadeTiles=function(){for(var t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()},r.prototype.getImages=function(t,e,r){this.imageManager.getImages(e.icons,r),this._updateTilesForChangedImages();var n=this.sourceCaches[e.source];n&amp;&amp;n.setDependencies(e.tileID.key,e.type,e.icons)},r.prototype.getGlyphs=function(t,e,r){this.glyphManager.getGlyphs(e.stacks,r)},r.prototype.getResource=function(e,r,n){return t.makeRequest(r,n)},r}(t.Evented);qe.getSourceType=function(t){return D[t]},qe.setSourceType=function(t,e){D[t]=e},qe.registerForPluginStateChange=t.registerForPluginStateChange;var Ge=t.createLayout([{name:&quot;a_pos&quot;,type:&quot;Int16&quot;,components:2}]),Ye=yr(&quot;#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif&quot;,&quot;#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}&quot;),We=yr(&quot;uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),Xe=yr(&quot;uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}&quot;),Ze=yr(&quot;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width &lt; 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}&quot;),Je=yr(&quot;void main() {gl_FragColor=vec4(1.0);}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),Ke=yr(&quot;uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}&quot;),Qe=yr(&quot;uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}&quot;),$e=yr(&quot;varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed &gt; 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed &gt; 0.5) {gl_FragColor*=.1;}}&quot;,&quot;attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}&quot;),tr=yr(&quot;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}&quot;,&quot;attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd  =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz  /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx &gt;=2.0)),mix(-1.0,1.0,float(vertexIdx &gt;=1.0 &amp;&amp; vertexIdx &lt;=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}&quot;),er=yr(&quot;uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}&quot;,&quot;attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}&quot;),rr=yr(&quot;#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),nr=yr(&quot;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}&quot;),ir=yr(&quot;uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}&quot;),ar=yr(&quot;uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}&quot;),or=yr(&quot;varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t &gt; 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}&quot;),sr=yr(&quot;uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t &gt; 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 &amp;&amp; normal.y==0.0 &amp;&amp; normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}&quot;),lr=yr(&quot;#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform float u_maxzoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom &lt; 2.0 ? 0.4 : u_zoom &lt; 4.5 ? 0.35 : 0.3;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}&quot;),cr=yr(&quot;uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y &gt; 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}&quot;),ur=yr(&quot;uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}&quot;),fr=yr(&quot;uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define MAX_LINE_DISTANCE 32767.0\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}&quot;),hr=yr(&quot;uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}&quot;),pr=yr(&quot;uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}&quot;),dr=yr(&quot;uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a &gt; 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a &gt; 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}&quot;),mr=yr(&quot;uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}&quot;),gr=yr(&quot;#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}&quot;),vr=yr(&quot;#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}&quot;);function yr(t,e){var r=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,n={};return{fragmentSource:t=t.replace(r,(function(t,e,r,i,a){return n[a]=!0,&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nvarying &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifdef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;})),vertexSource:e=e.replace(r,(function(t,e,r,i,a){var o=&quot;float&quot;===i?&quot;vec2&quot;:&quot;vec4&quot;,s=a.match(/color/)?&quot;color&quot;:o;return n[a]?&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nuniform lowp float u_&quot;+a+&quot;_t;\nattribute &quot;+r+&quot; &quot;+o+&quot; a_&quot;+a+&quot;;\nvarying &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;vec4&quot;===s?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+a+&quot; = a_&quot;+a+&quot;;\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+a+&quot; = unpack_mix_&quot;+s+&quot;(a_&quot;+a+&quot;, u_&quot;+a+&quot;_t);\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nuniform lowp float u_&quot;+a+&quot;_t;\nattribute &quot;+r+&quot; &quot;+o+&quot; a_&quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;vec4&quot;===s?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = a_&quot;+a+&quot;;\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = unpack_mix_&quot;+s+&quot;(a_&quot;+a+&quot;, u_&quot;+a+&quot;_t);\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;}))}}var xr=Object.freeze({__proto__:null,prelude:Ye,background:We,backgroundPattern:Xe,circle:Ze,clippingMask:Je,heatmap:Ke,heatmapTexture:Qe,collisionBox:$e,collisionCircle:tr,debug:er,fill:rr,fillOutline:nr,fillOutlinePattern:ir,fillPattern:ar,fillExtrusion:or,fillExtrusionPattern:sr,hillshadePrepare:lr,hillshade:cr,line:ur,lineGradient:fr,linePattern:hr,lineSDF:pr,raster:dr,symbolIcon:mr,symbolSDF:gr,symbolTextAndIcon:vr}),br=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};br.prototype.bind=function(t,e,r,n,i,a,o,s){this.context=t;for(var l=this.boundPaintVertexBuffers.length!==n.length,c=0;!l&amp;&amp;c&lt;n.length;c++)this.boundPaintVertexBuffers[c]!==n[c]&amp;&amp;(l=!0);var u=!this.vao||this.boundProgram!==e||this.boundLayoutVertexBuffer!==r||l||this.boundIndexBuffer!==i||this.boundVertexOffset!==a||this.boundDynamicVertexBuffer!==o||this.boundDynamicVertexBuffer2!==s;!t.extVertexArrayObject||u?this.freshBind(e,r,n,i,a,o,s):(t.bindVertexArrayOES.set(this.vao),o&amp;&amp;o.bind(),i&amp;&amp;i.dynamicDraw&amp;&amp;i.bind(),s&amp;&amp;s.bind())},br.prototype.freshBind=function(t,e,r,n,i,a,o){var s,l=t.numAttributes,c=this.context,u=c.gl;if(c.extVertexArrayObject)this.vao&amp;&amp;this.destroy(),this.vao=c.extVertexArrayObject.createVertexArrayOES(),c.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=r,this.boundIndexBuffer=n,this.boundVertexOffset=i,this.boundDynamicVertexBuffer=a,this.boundDynamicVertexBuffer2=o;else{s=c.currentNumAttributes||0;for(var f=l;f&lt;s;f++)u.disableVertexAttribArray(f)}e.enableAttributes(u,t);for(var h=0,p=r;h&lt;p.length;h+=1){p[h].enableAttributes(u,t)}a&amp;&amp;a.enableAttributes(u,t),o&amp;&amp;o.enableAttributes(u,t),e.bind(),e.setVertexAttribPointers(u,t,i);for(var d=0,m=r;d&lt;m.length;d+=1){var g=m[d];g.bind(),g.setVertexAttribPointers(u,t,i)}a&amp;&amp;(a.bind(),a.setVertexAttribPointers(u,t,i)),n&amp;&amp;n.bind(),o&amp;&amp;(o.bind(),o.setVertexAttribPointers(u,t,i)),c.currentNumAttributes=l},br.prototype.destroy=function(){this.vao&amp;&amp;(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var _r=function(t,e,r,n,i){var a=t.gl;this.program=a.createProgram();var o=r?r.defines():[];i&amp;&amp;o.push(&quot;#define OVERDRAW_INSPECTOR;&quot;);var s=o.concat(Ye.fragmentSource,e.fragmentSource).join(&quot;\n&quot;),l=o.concat(Ye.vertexSource,e.vertexSource).join(&quot;\n&quot;),c=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(c,s),a.compileShader(c),a.attachShader(this.program,c);var u=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(u,l),a.compileShader(u),a.attachShader(this.program,u);for(var f=r?r.layoutAttributes:[],h=0;h&lt;f.length;h++)a.bindAttribLocation(this.program,h,f[h].name);a.linkProgram(this.program),a.deleteShader(u),a.deleteShader(c),this.numAttributes=a.getProgramParameter(this.program,a.ACTIVE_ATTRIBUTES),this.attributes={};for(var p={},d=0;d&lt;this.numAttributes;d++){var m=a.getActiveAttrib(this.program,d);m&amp;&amp;(this.attributes[m.name]=a.getAttribLocation(this.program,m.name))}for(var g=a.getProgramParameter(this.program,a.ACTIVE_UNIFORMS),v=0;v&lt;g;v++){var y=a.getActiveUniform(this.program,v);y&amp;&amp;(p[y.name]=a.getUniformLocation(this.program,y.name))}this.fixedUniforms=n(t,p),this.binderUniforms=r?r.getUniforms(t,p):[]}}};function wr(t,e,r){var n=1/pe(r,1,e.transform.tileZoom),i=Math.pow(2,r.tileID.overscaledZ),a=r.tileSize*Math.pow(2,e.transform.tileZoom)/i,o=a*(r.tileID.canonical.x+r.tileID.wrap*i),s=a*r.tileID.canonical.y;return{u_image:0,u_texsize:r.imageAtlasTexture.size,u_scale:[n,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[o&gt;&gt;16,s&gt;&gt;16],u_pixel_coord_lower:[65535&amp;o,65535&amp;s]}}_r.prototype.draw=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,m){var g,v=t.gl;if(!this.failedToCreate){for(var y in t.program.set(this.program),t.setDepthMode(r),t.setStencilMode(n),t.setColorMode(i),t.setCullFace(a),this.fixedUniforms)this.fixedUniforms[y].set(o[y]);p&amp;&amp;p.setUniforms(t,this.binderUniforms,f,{zoom:h});for(var x=(g={},g[v.LINES]=2,g[v.TRIANGLES]=3,g[v.LINE_STRIP]=1,g)[e],b=0,_=u.get();b&lt;_.length;b+=1){var w=_[b],T=w.vaos||(w.vaos={});(T[s]||(T[s]=new br)).bind(t,this,l,p?p.getPaintVertexBuffers():[],c,w.vertexOffset,d,m),v.drawElements(e,w.primitiveLength*x,v.UNSIGNED_SHORT,w.primitiveOffset*x*2)}}};var Tr=function(e,r,n,i){var a=r.style.light,o=a.properties.get(&quot;position&quot;),s=[o.x,o.y,o.z],l=t.create$1();&quot;viewport&quot;===a.properties.get(&quot;anchor&quot;)&amp;&amp;t.fromRotation(l,-r.transform.angle),t.transformMat3(s,s,l);var c=a.properties.get(&quot;color&quot;);return{u_matrix:e,u_lightpos:s,u_lightintensity:a.properties.get(&quot;intensity&quot;),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+n,u_opacity:i}},kr=function(e,r,n,i,a,o,s){return t.extend(Tr(e,r,n,i),wr(o,r,s),{u_height_factor:-Math.pow(2,a.overscaledZ)/s.tileSize/8})},Ar=function(t){return{u_matrix:t}},Mr=function(e,r,n,i){return t.extend(Ar(e),wr(n,r,i))},Sr=function(t,e){return{u_matrix:t,u_world:e}},Er=function(e,r,n,i,a){return t.extend(Mr(e,r,n,i),{u_world:a})},Lr=function(e,r,n,i){var a,o,s=e.transform;if(&quot;map&quot;===i.paint.get(&quot;circle-pitch-alignment&quot;)){var l=pe(n,1,s.zoom);a=!0,o=[l,l]}else a=!1,o=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+(&quot;map&quot;===i.paint.get(&quot;circle-pitch-scale&quot;)),u_matrix:e.translatePosMatrix(r.posMatrix,n,i.paint.get(&quot;circle-translate&quot;),i.paint.get(&quot;circle-translate-anchor&quot;)),u_pitch_with_map:+a,u_device_pixel_ratio:t.browser.devicePixelRatio,u_extrude_scale:o}},Cr=function(t,e,r){var n=pe(r,1,e.zoom),i=Math.pow(2,e.zoom-r.tileID.overscaledZ),a=r.tileID.overscaleFactor();return{u_matrix:t,u_camera_to_center_distance:e.cameraToCenterDistance,u_pixels_to_tile_units:n,u_extrude_scale:[e.pixelsToGLUnits[0]/(n*i),e.pixelsToGLUnits[1]/(n*i)],u_overscale_factor:a}},Pr=function(t,e,r){return{u_matrix:t,u_inv_matrix:e,u_camera_to_center_distance:r.cameraToCenterDistance,u_viewport_size:[r.width,r.height]}},Ir=function(t,e,r){return void 0===r&amp;&amp;(r=1),{u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:r}},Or=function(t){return{u_matrix:t}},zr=function(t,e,r,n){return{u_matrix:t,u_extrude_scale:pe(e,1,r),u_intensity:n}};function Dr(e,r){var n=Math.pow(2,r.canonical.z),i=r.canonical.y;return[new t.MercatorCoordinate(0,i/n).toLngLat().lat,new t.MercatorCoordinate(0,(i+1)/n).toLngLat().lat]}var Rr=function(e,r,n){var i=e.transform;return{u_matrix:Ur(e,r,n),u_ratio:1/pe(r,1,i.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},Fr=function(e,r,n){return t.extend(Rr(e,r,n),{u_image:0})},Br=function(e,r,n,i){var a=e.transform,o=jr(r,a);return{u_matrix:Ur(e,r,n),u_texsize:r.imageAtlasTexture.size,u_ratio:1/pe(r,1,a.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_image:0,u_scale:[o,i.fromScale,i.toScale],u_fade:i.t,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]]}},Nr=function(e,r,n,i,a){var o=e.transform,s=e.lineAtlas,l=jr(r,o),c=&quot;round&quot;===n.layout.get(&quot;line-cap&quot;),u=s.getDash(i.from,c),f=s.getDash(i.to,c),h=u.width*a.fromScale,p=f.width*a.toScale;return t.extend(Rr(e,r,n),{u_patternscale_a:[l/h,-u.height/2],u_patternscale_b:[l/p,-f.height/2],u_sdfgamma:s.width/(256*Math.min(h,p)*t.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:u.y,u_tex_y_b:f.y,u_mix:a.t})};function jr(t,e){return 1/pe(t,1,e.tileZoom)}function Ur(t,e,r){return t.translatePosMatrix(e.tileID.posMatrix,e,r.paint.get(&quot;line-translate&quot;),r.paint.get(&quot;line-translate-anchor&quot;))}var Vr=function(t,e,r,n,i){return{u_matrix:t,u_tl_parent:e,u_scale_parent:r,u_buffer_scale:1,u_fade_t:n.mix,u_opacity:n.opacity*i.paint.get(&quot;raster-opacity&quot;),u_image0:0,u_image1:1,u_brightness_low:i.paint.get(&quot;raster-brightness-min&quot;),u_brightness_high:i.paint.get(&quot;raster-brightness-max&quot;),u_saturation_factor:(o=i.paint.get(&quot;raster-saturation&quot;),o&gt;0?1-1/(1.001-o):-o),u_contrast_factor:(a=i.paint.get(&quot;raster-contrast&quot;),a&gt;0?1/(1-a):1+a),u_spin_weights:Hr(i.paint.get(&quot;raster-hue-rotate&quot;))};var a,o};function Hr(t){t*=Math.PI/180;var e=Math.sin(t),r=Math.cos(t);return[(2*r+1)/3,(-Math.sqrt(3)*e-r+1)/3,(Math.sqrt(3)*e-r+1)/3]}var qr,Gr=function(t,e,r,n,i,a,o,s,l,c){var u=i.transform;return{u_is_size_zoom_constant:+(&quot;constant&quot;===t||&quot;source&quot;===t),u_is_size_feature_constant:+(&quot;constant&quot;===t||&quot;camera&quot;===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:u.cameraToCenterDistance,u_pitch:u.pitch/360*2*Math.PI,u_rotate_symbol:+r,u_aspect_ratio:u.width/u.height,u_fade_change:i.options.fadeDuration?i.symbolFadeChange:1,u_matrix:a,u_label_plane_matrix:o,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+n,u_texsize:c,u_texture:0}},Yr=function(e,r,n,i,a,o,s,l,c,u,f){var h=a.transform;return t.extend(Gr(e,r,n,i,a,o,s,l,c,u),{u_gamma_scale:i?Math.cos(h._pitch)*h.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+f})},Wr=function(e,r,n,i,a,o,s,l,c,u){return t.extend(Yr(e,r,n,i,a,o,s,l,!0,c,!0),{u_texsize_icon:u,u_texture_icon:1})},Xr=function(t,e,r){return{u_matrix:t,u_opacity:e,u_color:r}},Zr=function(e,r,n,i,a,o){return t.extend(function(t,e,r,n){var i=r.imageManager.getPattern(t.from.toString()),a=r.imageManager.getPattern(t.to.toString()),o=r.imageManager.getPixelSize(),s=o.width,l=o.height,c=Math.pow(2,n.tileID.overscaledZ),u=n.tileSize*Math.pow(2,r.transform.tileZoom)/c,f=u*(n.tileID.canonical.x+n.tileID.wrap*c),h=u*n.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[s,l],u_mix:e.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/pe(n,1,r.transform.tileZoom),u_pixel_coord_upper:[f&gt;&gt;16,h&gt;&gt;16],u_pixel_coord_lower:[65535&amp;f,65535&amp;h]}}(i,o,n,a),{u_matrix:e,u_opacity:r})},Jr={fillExtrusion:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fillExtrusionPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,r.u_height_factor),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fill:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},fillPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},fillOutline:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world)}},fillOutlinePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},circle:function(e,r){return{u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,r.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},collisionBox:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,r.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,r.u_overscale_factor)}},collisionCircle:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,r.u_inv_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,r.u_viewport_size)}},debug:function(e,r){return{u_color:new t.UniformColor(e,r.u_color),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_overlay:new t.Uniform1i(e,r.u_overlay),u_overlay_scale:new t.Uniform1f(e,r.u_overlay_scale)}},clippingMask:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmap:function(e,r){return{u_extrude_scale:new t.Uniform1f(e,r.u_extrude_scale),u_intensity:new t.Uniform1f(e,r.u_intensity),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmapTexture:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_color_ramp:new t.Uniform1i(e,r.u_color_ramp),u_opacity:new t.Uniform1f(e,r.u_opacity)}},hillshade:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_latrange:new t.Uniform2f(e,r.u_latrange),u_light:new t.Uniform2f(e,r.u_light),u_shadow:new t.UniformColor(e,r.u_shadow),u_highlight:new t.UniformColor(e,r.u_highlight),u_accent:new t.UniformColor(e,r.u_accent)}},hillshadePrepare:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_dimension:new t.Uniform2f(e,r.u_dimension),u_zoom:new t.Uniform1f(e,r.u_zoom),u_maxzoom:new t.Uniform1f(e,r.u_maxzoom),u_unpack:new t.Uniform4f(e,r.u_unpack)}},line:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels)}},lineGradient:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_image:new t.Uniform1i(e,r.u_image)}},linePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_texsize:new t.Uniform2f(e,r.u_texsize),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_image:new t.Uniform1i(e,r.u_image),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},lineSDF:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,r.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,r.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,r.u_sdfgamma),u_image:new t.Uniform1i(e,r.u_image),u_tex_y_a:new t.Uniform1f(e,r.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,r.u_tex_y_b),u_mix:new t.Uniform1f(e,r.u_mix)}},raster:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_tl_parent:new t.Uniform2f(e,r.u_tl_parent),u_scale_parent:new t.Uniform1f(e,r.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,r.u_buffer_scale),u_fade_t:new t.Uniform1f(e,r.u_fade_t),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image0:new t.Uniform1i(e,r.u_image0),u_image1:new t.Uniform1i(e,r.u_image1),u_brightness_low:new t.Uniform1f(e,r.u_brightness_low),u_brightness_high:new t.Uniform1f(e,r.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,r.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,r.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,r.u_spin_weights)}},symbolIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture)}},symbolSDF:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},symbolTextAndIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texsize_icon:new t.Uniform2f(e,r.u_texsize_icon),u_texture:new t.Uniform1i(e,r.u_texture),u_texture_icon:new t.Uniform1i(e,r.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},background:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_color:new t.UniformColor(e,r.u_color)}},backgroundPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image:new t.Uniform1i(e,r.u_image),u_pattern_tl_a:new t.Uniform2f(e,r.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,r.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,r.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,r.u_pattern_br_b),u_texsize:new t.Uniform2f(e,r.u_texsize),u_mix:new t.Uniform1f(e,r.u_mix),u_pattern_size_a:new t.Uniform2f(e,r.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,r.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,r.u_scale_a),u_scale_b:new t.Uniform1f(e,r.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,r.u_tile_units_to_pixels)}}};function Kr(e,r,n,i,a,o,s){for(var l=e.context,c=l.gl,u=e.useProgram(&quot;collisionBox&quot;),f=[],h=0,p=0,d=0;d&lt;i.length;d++){var m=i[d],g=r.getTile(m),v=g.getBucket(n);if(v){var y=m.posMatrix;0===a[0]&amp;&amp;0===a[1]||(y=e.translatePosMatrix(m.posMatrix,g,a,o));var x=s?v.textCollisionBox:v.iconCollisionBox,b=v.collisionCircleArray;if(b.length&gt;0){var _=t.create(),w=y;t.mul(_,v.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul(_,_,v.placementViewportMatrix),f.push({circleArray:b,circleOffset:p,transform:w,invTransform:_}),p=h+=b.length/4}x&amp;&amp;u.draw(l,c.LINES,At.disabled,Mt.disabled,e.colorModeForRenderPass(),Et.disabled,Cr(y,e.transform,g),n.id,x.layoutVertexBuffer,x.indexBuffer,x.segments,null,e.transform.zoom,null,null,x.collisionVertexBuffer)}}if(s&amp;&amp;f.length){var T=e.useProgram(&quot;collisionCircle&quot;),k=new t.StructArrayLayout2f1f2i16;k.resize(4*h),k._trim();for(var A=0,M=0,S=f;M&lt;S.length;M+=1)for(var E=S[M],L=0;L&lt;E.circleArray.length/4;L++){var C=4*L,P=E.circleArray[C+0],I=E.circleArray[C+1],O=E.circleArray[C+2],z=E.circleArray[C+3];k.emplace(A++,P,I,O,z,0),k.emplace(A++,P,I,O,z,1),k.emplace(A++,P,I,O,z,2),k.emplace(A++,P,I,O,z,3)}(!qr||qr.length&lt;2*h)&amp;&amp;(qr=function(e){var r=2*e,n=new t.StructArrayLayout3ui6;n.resize(r),n._trim();for(var i=0;i&lt;r;i++){var a=6*i;n.uint16[a+0]=4*i+0,n.uint16[a+1]=4*i+1,n.uint16[a+2]=4*i+2,n.uint16[a+3]=4*i+2,n.uint16[a+4]=4*i+3,n.uint16[a+5]=4*i+0}return n}(h));for(var D=l.createIndexBuffer(qr,!0),R=l.createVertexBuffer(k,t.collisionCircleLayout.members,!0),F=0,B=f;F&lt;B.length;F+=1){var N=B[F],j=Pr(N.transform,N.invTransform,e.transform);T.draw(l,c.TRIANGLES,At.disabled,Mt.disabled,e.colorModeForRenderPass(),Et.disabled,j,n.id,R,D,t.SegmentVector.simpleSegment(0,2*N.circleOffset,N.circleArray.length,N.circleArray.length/2),null,e.transform.zoom,null,null,null)}R.destroy(),D.destroy()}}var Qr=t.identity(new Float32Array(16));function $r(e,r,n,i,a,o){var s=t.getAnchorAlignment(e),l=-(s.horizontalAlign-.5)*r,c=-(s.verticalAlign-.5)*n,u=t.evaluateVariableOffset(e,i);return new t.Point((l/a+u[0])*o,(c/a+u[1])*o)}function tn(e,r,n,i,a,o,s,l,c,u,f){var h=e.text.placedSymbolArray,p=e.text.dynamicLayoutVertexArray,d=e.icon.dynamicLayoutVertexArray,m={};p.clear();for(var g=0;g&lt;h.length;g++){var v=h.get(g),y=e.allowVerticalPlacement&amp;&amp;!v.placedOrientation,x=v.hidden||!v.crossTileID||y?null:i[v.crossTileID];if(x){var b=new t.Point(v.anchorX,v.anchorY),_=te(b,n?l:s),w=ee(o.cameraToCenterDistance,_.signedDistanceFromCamera),T=a.evaluateSizeForFeature(e.textSizeData,u,v)*w/t.ONE_EM;n&amp;&amp;(T*=e.tilePixelRatio/c);for(var k=x.width,A=x.height,M=$r(x.anchor,k,A,x.textOffset,x.textBoxScale,T),S=n?te(b.add(M),s).point:_.point.add(r?M.rotate(-o.angle):M),E=e.allowVerticalPlacement&amp;&amp;v.placedOrientation===t.WritingMode.vertical?Math.PI/2:0,L=0;L&lt;v.numGlyphs;L++)t.addDynamicAttributes(p,S,E);f&amp;&amp;v.associatedIconIndex&gt;=0&amp;&amp;(m[v.associatedIconIndex]={shiftedAnchor:S,angle:E})}else ue(v.numGlyphs,p)}if(f){d.clear();for(var C=e.icon.placedSymbolArray,P=0;P&lt;C.length;P++){var I=C.get(P);if(I.hidden)ue(I.numGlyphs,d);else{var O=m[P];if(O)for(var z=0;z&lt;I.numGlyphs;z++)t.addDynamicAttributes(d,O.shiftedAnchor,O.angle);else ue(I.numGlyphs,d)}}e.icon.dynamicLayoutVertexBuffer.updateData(d)}e.text.dynamicLayoutVertexBuffer.updateData(p)}function en(t,e,r){return r.iconsInText&amp;&amp;e?&quot;symbolTextAndIcon&quot;:t?&quot;symbolSDF&quot;:&quot;symbolIcon&quot;}function rn(e,r,n,i,a,o,s,l,c,u,f,h){for(var p=e.context,d=p.gl,m=e.transform,g=&quot;map&quot;===l,v=&quot;map&quot;===c,y=g&amp;&amp;&quot;point&quot;!==n.layout.get(&quot;symbol-placement&quot;),x=g&amp;&amp;!v&amp;&amp;!y,b=void 0!==n.layout.get(&quot;symbol-sort-key&quot;).constantOr(1),_=e.depthModeForSublayer(0,At.ReadOnly),w=n.layout.get(&quot;text-variable-anchor&quot;),T=[],k=0,A=i;k&lt;A.length;k+=1){var M=A[k],S=r.getTile(M),E=S.getBucket(n);if(E){var L=a?E.text:E.icon;if(L&amp;&amp;L.segments.get().length){var C=L.programConfigurations.get(n.id),P=a||E.sdfIcons,I=a?E.textSizeData:E.iconSizeData,O=v||0!==m.pitch,z=e.useProgram(en(P,a,E),C),D=t.evaluateSizeForZoom(I,m.zoom),R=void 0,F=[0,0],B=void 0,N=void 0,j=null,U=void 0;if(a){if(B=S.glyphAtlasTexture,N=d.LINEAR,R=S.glyphAtlasTexture.size,E.iconsInText){F=S.imageAtlasTexture.size,j=S.imageAtlasTexture;var V=&quot;composite&quot;===I.kind||&quot;camera&quot;===I.kind;U=O||e.options.rotating||e.options.zooming||V?d.LINEAR:d.NEAREST}}else{var H=1!==n.layout.get(&quot;icon-size&quot;).constantOr(0)||E.iconsNeedLinear;B=S.imageAtlasTexture,N=P||e.options.rotating||e.options.zooming||H||O?d.LINEAR:d.NEAREST,R=S.imageAtlasTexture.size}var q=pe(S,1,e.transform.zoom),G=Qt(M.posMatrix,v,g,e.transform,q),Y=$t(M.posMatrix,v,g,e.transform,q),W=w&amp;&amp;E.hasTextData(),X=&quot;none&quot;!==n.layout.get(&quot;icon-text-fit&quot;)&amp;&amp;W&amp;&amp;E.hasIconData();y&amp;&amp;ne(E,M.posMatrix,e,a,G,Y,v,u);var Z=e.translatePosMatrix(M.posMatrix,S,o,s),J=y||a&amp;&amp;w||X?Qr:G,K=e.translatePosMatrix(Y,S,o,s,!0),Q=P&amp;&amp;0!==n.paint.get(a?&quot;text-halo-width&quot;:&quot;icon-halo-width&quot;).constantOr(1),$={program:z,buffers:L,uniformValues:P?E.iconsInText?Wr(I.kind,D,x,v,e,Z,J,K,R,F):Yr(I.kind,D,x,v,e,Z,J,K,a,R,!0):Gr(I.kind,D,x,v,e,Z,J,K,a,R),atlasTexture:B,atlasTextureIcon:j,atlasInterpolation:N,atlasInterpolationIcon:U,isSDF:P,hasHalo:Q};if(b)for(var tt=0,et=L.segments.get();tt&lt;et.length;tt+=1){var rt=et[tt];T.push({segments:new t.SegmentVector([rt]),sortKey:rt.sortKey,state:$})}else T.push({segments:L.segments,sortKey:0,state:$})}}}b&amp;&amp;T.sort((function(t,e){return t.sortKey-e.sortKey}));for(var nt=0,it=T;nt&lt;it.length;nt+=1){var at=it[nt],ot=at.state;if(p.activeTexture.set(d.TEXTURE0),ot.atlasTexture.bind(ot.atlasInterpolation,d.CLAMP_TO_EDGE),ot.atlasTextureIcon&amp;&amp;(p.activeTexture.set(d.TEXTURE1),ot.atlasTextureIcon&amp;&amp;ot.atlasTextureIcon.bind(ot.atlasInterpolationIcon,d.CLAMP_TO_EDGE)),ot.isSDF){var st=ot.uniformValues;ot.hasHalo&amp;&amp;(st.u_is_halo=1,nn(ot.buffers,at.segments,n,e,ot.program,_,f,h,st)),st.u_is_halo=0}nn(ot.buffers,at.segments,n,e,ot.program,_,f,h,ot.uniformValues)}}function nn(t,e,r,n,i,a,o,s,l){var c=n.context,u=c.gl;i.draw(c,u.TRIANGLES,a,o,s,Et.disabled,l,r.id,t.layoutVertexBuffer,t.indexBuffer,e,r.paint,n.transform.zoom,t.programConfigurations.get(r.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function an(t,e,r,n,i,a,o){var s,l,c,u,f,h=t.context.gl,p=r.paint.get(&quot;fill-pattern&quot;),d=p&amp;&amp;p.constantOr(1),m=r.getCrossfadeParameters();o?(l=d&amp;&amp;!r.getPaintProperty(&quot;fill-outline-color&quot;)?&quot;fillOutlinePattern&quot;:&quot;fillOutline&quot;,s=h.LINES):(l=d?&quot;fillPattern&quot;:&quot;fill&quot;,s=h.TRIANGLES);for(var g=0,v=n;g&lt;v.length;g+=1){var y=v[g],x=e.getTile(y);if(!d||x.patternsLoaded()){var b=x.getBucket(r);if(b){var _=b.programConfigurations.get(r.id),w=t.useProgram(l,_);d&amp;&amp;(t.context.activeTexture.set(h.TEXTURE0),x.imageAtlasTexture.bind(h.LINEAR,h.CLAMP_TO_EDGE),_.updatePaintBuffers(m));var T=p.constantOr(null);if(T&amp;&amp;x.imageAtlas){var k=x.imageAtlas,A=k.patternPositions[T.to.toString()],M=k.patternPositions[T.from.toString()];A&amp;&amp;M&amp;&amp;_.setConstantPatternPositions(A,M)}var S=t.translatePosMatrix(y.posMatrix,x,r.paint.get(&quot;fill-translate&quot;),r.paint.get(&quot;fill-translate-anchor&quot;));if(o){u=b.indexBuffer2,f=b.segments2;var E=[h.drawingBufferWidth,h.drawingBufferHeight];c=&quot;fillOutlinePattern&quot;===l&amp;&amp;d?Er(S,t,m,x,E):Sr(S,E)}else u=b.indexBuffer,f=b.segments,c=d?Mr(S,t,m,x):Ar(S);w.draw(t.context,s,i,t.stencilModeForClipping(y),a,Et.disabled,c,r.id,b.layoutVertexBuffer,u,f,r.paint,t.transform.zoom,_)}}}}function on(t,e,r,n,i,a,o){for(var s=t.context,l=s.gl,c=r.paint.get(&quot;fill-extrusion-pattern&quot;),u=c.constantOr(1),f=r.getCrossfadeParameters(),h=r.paint.get(&quot;fill-extrusion-opacity&quot;),p=0,d=n;p&lt;d.length;p+=1){var m=d[p],g=e.getTile(m),v=g.getBucket(r);if(v){var y=v.programConfigurations.get(r.id),x=t.useProgram(u?&quot;fillExtrusionPattern&quot;:&quot;fillExtrusion&quot;,y);u&amp;&amp;(t.context.activeTexture.set(l.TEXTURE0),g.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),y.updatePaintBuffers(f));var b=c.constantOr(null);if(b&amp;&amp;g.imageAtlas){var _=g.imageAtlas,w=_.patternPositions[b.to.toString()],T=_.patternPositions[b.from.toString()];w&amp;&amp;T&amp;&amp;y.setConstantPatternPositions(w,T)}var k=t.translatePosMatrix(m.posMatrix,g,r.paint.get(&quot;fill-extrusion-translate&quot;),r.paint.get(&quot;fill-extrusion-translate-anchor&quot;)),A=r.paint.get(&quot;fill-extrusion-vertical-gradient&quot;),M=u?kr(k,t,A,h,m,f,g):Tr(k,t,A,h);x.draw(s,s.gl.TRIANGLES,i,a,o,Et.backCCW,M,r.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,r.paint,t.transform.zoom,y)}}}function sn(t,e,r,n,i,a){var o=t.context,s=o.gl,l=e.fbo;if(l){var c=t.useProgram(&quot;hillshade&quot;);o.activeTexture.set(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,l.colorAttachment.get());var u=function(t,e,r){var n=r.paint.get(&quot;hillshade-shadow-color&quot;),i=r.paint.get(&quot;hillshade-highlight-color&quot;),a=r.paint.get(&quot;hillshade-accent-color&quot;),o=r.paint.get(&quot;hillshade-illumination-direction&quot;)*(Math.PI/180);&quot;viewport&quot;===r.paint.get(&quot;hillshade-illumination-anchor&quot;)&amp;&amp;(o-=t.transform.angle);var s=!t.options.moving;return{u_matrix:t.transform.calculatePosMatrix(e.tileID.toUnwrapped(),s),u_image:0,u_latrange:Dr(t,e.tileID),u_light:[r.paint.get(&quot;hillshade-exaggeration&quot;),o],u_shadow:n,u_highlight:i,u_accent:a}}(t,e,r);c.draw(o,s.TRIANGLES,n,i,a,Et.disabled,u,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}}function ln(e,r,n,i,a,o,s){var l=e.context,c=l.gl,u=r.dem;if(u&amp;&amp;u.data){var f=u.dim,h=u.stride,p=u.getPixels();if(l.activeTexture.set(c.TEXTURE1),l.pixelStoreUnpackPremultiplyAlpha.set(!1),r.demTexture=r.demTexture||e.getTileTexture(h),r.demTexture){var d=r.demTexture;d.update(p,{premultiply:!1}),d.bind(c.NEAREST,c.CLAMP_TO_EDGE)}else r.demTexture=new t.Texture(l,p,c.RGBA,{premultiply:!1}),r.demTexture.bind(c.NEAREST,c.CLAMP_TO_EDGE);l.activeTexture.set(c.TEXTURE0);var m=r.fbo;if(!m){var g=new t.Texture(l,{width:f,height:f,data:null},c.RGBA);g.bind(c.LINEAR,c.CLAMP_TO_EDGE),(m=r.fbo=l.createFramebuffer(f,f,!0)).colorAttachment.set(g.texture)}l.bindFramebuffer.set(m.framebuffer),l.viewport.set([0,0,f,f]),e.useProgram(&quot;hillshadePrepare&quot;).draw(l,c.TRIANGLES,a,o,s,Et.disabled,function(e,r,n){var i=r.stride,a=t.create();return t.ortho(a,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(a,a,[0,-t.EXTENT,0]),{u_matrix:a,u_image:1,u_dimension:[i,i],u_zoom:e.overscaledZ,u_maxzoom:n,u_unpack:r.getUnpackVector()}}(r.tileID,u,i),n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),r.needsHillshadePrepare=!1}}function cn(e,r,n,i,a){var o=i.paint.get(&quot;raster-fade-duration&quot;);if(o&gt;0){var s=t.browser.now(),l=(s-e.timeAdded)/o,c=r?(s-r.timeAdded)/o:-1,u=n.getSource(),f=a.coveringZoomLevel({tileSize:u.tileSize,roundZoom:u.roundZoom}),h=!r||Math.abs(r.tileID.overscaledZ-f)&gt;Math.abs(e.tileID.overscaledZ-f),p=h&amp;&amp;e.refreshedUponExpiration?1:t.clamp(h?l:1-c,0,1);return e.refreshedUponExpiration&amp;&amp;l&gt;=1&amp;&amp;(e.refreshedUponExpiration=!1),r?{opacity:1,mix:1-p}:{opacity:p,mix:0}}return{opacity:1,mix:0}}var un=new t.Color(1,0,0,1),fn=new t.Color(0,1,0,1),hn=new t.Color(0,0,1,1),pn=new t.Color(1,0,1,1),dn=new t.Color(0,1,1,1);function mn(t){var e=t.transform.padding;gn(t,t.transform.height-(e.top||0),3,un),gn(t,e.bottom||0,3,fn),vn(t,e.left||0,3,hn),vn(t,t.transform.width-(e.right||0),3,pn);var r=t.transform.centerPoint;!function(t,e,r,n){yn(t,e-1,r-10,2,20,n),yn(t,e-10,r-1,20,2,n)}(t,r.x,t.transform.height-r.y,dn)}function gn(t,e,r,n){yn(t,0,e+r/2,t.transform.width,r,n)}function vn(t,e,r,n){yn(t,e-r/2,0,r,t.transform.height,n)}function yn(e,r,n,i,a,o){var s=e.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(r*t.browser.devicePixelRatio,n*t.browser.devicePixelRatio,i*t.browser.devicePixelRatio,a*t.browser.devicePixelRatio),s.clear({color:o}),l.disable(l.SCISSOR_TEST)}function xn(e,r,n){var i=e.context,a=i.gl,o=n.posMatrix,s=e.useProgram(&quot;debug&quot;),l=At.disabled,c=Mt.disabled,u=e.colorModeForRenderPass();i.activeTexture.set(a.TEXTURE0),e.emptyTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE),s.draw(i,a.LINE_STRIP,l,c,u,Et.disabled,Ir(o,t.Color.red),&quot;$debug&quot;,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);var f=r.getTileByID(n.key).latestRawTileData,h=f&amp;&amp;f.byteLength||0,p=Math.floor(h/1024),d=r.getTile(n).tileSize,m=512/Math.min(d,512)*(n.overscaledZ/e.transform.zoom)*.5,g=n.canonical.toString();n.overscaledZ!==n.canonical.z&amp;&amp;(g+=&quot; =&gt; &quot;+n.overscaledZ),function(t,e){t.initDebugOverlayCanvas();var r=t.debugOverlayCanvas,n=t.context.gl,i=t.debugOverlayCanvas.getContext(&quot;2d&quot;);i.clearRect(0,0,r.width,r.height),i.shadowColor=&quot;white&quot;,i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle=&quot;white&quot;,i.textBaseline=&quot;top&quot;,i.font=&quot;bold 36px Open Sans, sans-serif&quot;,i.fillText(e,5,5),i.strokeText(e,5,5),t.debugOverlayTexture.update(r),t.debugOverlayTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}(e,g+&quot; &quot;+p+&quot;kb&quot;),s.draw(i,a.TRIANGLES,l,c,St.alphaBlended,Et.disabled,Ir(o,t.Color.transparent,m),&quot;$debug&quot;,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments)}var bn={symbol:function(e,r,n,i,a){if(&quot;translucent&quot;===e.renderPass){var o=Mt.disabled,s=e.colorModeForRenderPass();n.layout.get(&quot;text-variable-anchor&quot;)&amp;&amp;function(e,r,n,i,a,o,s){for(var l=r.transform,c=&quot;map&quot;===a,u=&quot;map&quot;===o,f=0,h=e;f&lt;h.length;f+=1){var p=h[f],d=i.getTile(p),m=d.getBucket(n);if(m&amp;&amp;m.text&amp;&amp;m.text.segments.get().length){var g=m.textSizeData,v=t.evaluateSizeForZoom(g,l.zoom),y=pe(d,1,r.transform.zoom),x=Qt(p.posMatrix,u,c,r.transform,y),b=&quot;none&quot;!==n.layout.get(&quot;icon-text-fit&quot;)&amp;&amp;m.hasIconData();if(v){var _=Math.pow(2,l.zoom-d.tileID.overscaledZ);tn(m,c,u,s,t.symbolSize,l,x,p.posMatrix,_,v,b)}}}}(i,e,n,r,n.layout.get(&quot;text-rotation-alignment&quot;),n.layout.get(&quot;text-pitch-alignment&quot;),a),0!==n.paint.get(&quot;icon-opacity&quot;).constantOr(1)&amp;&amp;rn(e,r,n,i,!1,n.paint.get(&quot;icon-translate&quot;),n.paint.get(&quot;icon-translate-anchor&quot;),n.layout.get(&quot;icon-rotation-alignment&quot;),n.layout.get(&quot;icon-pitch-alignment&quot;),n.layout.get(&quot;icon-keep-upright&quot;),o,s),0!==n.paint.get(&quot;text-opacity&quot;).constantOr(1)&amp;&amp;rn(e,r,n,i,!0,n.paint.get(&quot;text-translate&quot;),n.paint.get(&quot;text-translate-anchor&quot;),n.layout.get(&quot;text-rotation-alignment&quot;),n.layout.get(&quot;text-pitch-alignment&quot;),n.layout.get(&quot;text-keep-upright&quot;),o,s),r.map.showCollisionBoxes&amp;&amp;(Kr(e,r,n,i,n.paint.get(&quot;text-translate&quot;),n.paint.get(&quot;text-translate-anchor&quot;),!0),Kr(e,r,n,i,n.paint.get(&quot;icon-translate&quot;),n.paint.get(&quot;icon-translate-anchor&quot;),!1))}},circle:function(e,r,n,i){if(&quot;translucent&quot;===e.renderPass){var a=n.paint.get(&quot;circle-opacity&quot;),o=n.paint.get(&quot;circle-stroke-width&quot;),s=n.paint.get(&quot;circle-stroke-opacity&quot;),l=void 0!==n.layout.get(&quot;circle-sort-key&quot;).constantOr(1);if(0!==a.constantOr(1)||0!==o.constantOr(1)&amp;&amp;0!==s.constantOr(1)){for(var c=e.context,u=c.gl,f=e.depthModeForSublayer(0,At.ReadOnly),h=Mt.disabled,p=e.colorModeForRenderPass(),d=[],m=0;m&lt;i.length;m++){var g=i[m],v=r.getTile(g),y=v.getBucket(n);if(y){var x=y.programConfigurations.get(n.id),b={programConfiguration:x,program:e.useProgram(&quot;circle&quot;,x),layoutVertexBuffer:y.layoutVertexBuffer,indexBuffer:y.indexBuffer,uniformValues:Lr(e,g,v,n)};if(l)for(var _=0,w=y.segments.get();_&lt;w.length;_+=1){var T=w[_];d.push({segments:new t.SegmentVector([T]),sortKey:T.sortKey,state:b})}else d.push({segments:y.segments,sortKey:0,state:b})}}l&amp;&amp;d.sort((function(t,e){return t.sortKey-e.sortKey}));for(var k=0,A=d;k&lt;A.length;k+=1){var M=A[k],S=M.state,E=S.programConfiguration,L=S.program,C=S.layoutVertexBuffer,P=S.indexBuffer,I=S.uniformValues,O=M.segments;L.draw(c,u.TRIANGLES,f,h,p,Et.disabled,I,n.id,C,P,O,n.paint,e.transform.zoom,E)}}}},heatmap:function(e,r,n,i){if(0!==n.paint.get(&quot;heatmap-opacity&quot;))if(&quot;offscreen&quot;===e.renderPass){var a=e.context,o=a.gl,s=Mt.disabled,l=new St([o.ONE,o.ONE],t.Color.transparent,[!0,!0,!0,!0]);!function(t,e,r){var n=t.gl;t.activeTexture.set(n.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);var i=r.heatmapFbo;if(i)n.bindTexture(n.TEXTURE_2D,i.colorAttachment.get()),t.bindFramebuffer.set(i.framebuffer);else{var a=n.createTexture();n.bindTexture(n.TEXTURE_2D,a),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),i=r.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4,!1),function(t,e,r,n){var i=t.gl,a=t.extRenderToTextureHalfFloat?t.extTextureHalfFloat.HALF_FLOAT_OES:i.UNSIGNED_BYTE;i.texImage2D(i.TEXTURE_2D,0,i.RGBA,e.width/4,e.height/4,0,i.RGBA,a,null),n.colorAttachment.set(r)}(t,e,a,i)}}(a,e,n),a.clear({color:t.Color.transparent});for(var c=0;c&lt;i.length;c++){var u=i[c];if(!r.hasRenderableParent(u)){var f=r.getTile(u),h=f.getBucket(n);if(h){var p=h.programConfigurations.get(n.id),d=e.useProgram(&quot;heatmap&quot;,p),m=e.transform.zoom;d.draw(a,o.TRIANGLES,At.disabled,s,l,Et.disabled,zr(u.posMatrix,f,m,n.paint.get(&quot;heatmap-intensity&quot;)),n.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,n.paint,e.transform.zoom,p)}}}a.viewport.set([0,0,e.width,e.height])}else&quot;translucent&quot;===e.renderPass&amp;&amp;(e.context.setColorMode(e.colorModeForRenderPass()),function(e,r){var n=e.context,i=n.gl,a=r.heatmapFbo;if(!a)return;n.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),n.activeTexture.set(i.TEXTURE1);var o=r.colorRampTexture;o||(o=r.colorRampTexture=new t.Texture(n,r.colorRamp,i.RGBA));o.bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram(&quot;heatmapTexture&quot;).draw(n,i.TRIANGLES,At.disabled,Mt.disabled,e.colorModeForRenderPass(),Et.disabled,function(e,r,n,i){var a=t.create();t.ortho(a,0,e.width,e.height,0,0,1);var o=e.context.gl;return{u_matrix:a,u_world:[o.drawingBufferWidth,o.drawingBufferHeight],u_image:n,u_color_ramp:i,u_opacity:r.paint.get(&quot;heatmap-opacity&quot;)}}(e,r,0,1),r.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,r.paint,e.transform.zoom)}(e,n))},line:function(e,r,n,i){if(&quot;translucent&quot;===e.renderPass){var a=n.paint.get(&quot;line-opacity&quot;),o=n.paint.get(&quot;line-width&quot;);if(0!==a.constantOr(1)&amp;&amp;0!==o.constantOr(1)){var s=e.depthModeForSublayer(0,At.ReadOnly),l=e.colorModeForRenderPass(),c=n.paint.get(&quot;line-dasharray&quot;),u=n.paint.get(&quot;line-pattern&quot;),f=u.constantOr(1),h=n.paint.get(&quot;line-gradient&quot;),p=n.getCrossfadeParameters(),d=f?&quot;linePattern&quot;:c?&quot;lineSDF&quot;:h?&quot;lineGradient&quot;:&quot;line&quot;,m=e.context,g=m.gl,v=!0;if(h){m.activeTexture.set(g.TEXTURE0);var y=n.gradientTexture;if(!n.gradient)return;y||(y=n.gradientTexture=new t.Texture(m,n.gradient,g.RGBA)),y.bind(g.LINEAR,g.CLAMP_TO_EDGE)}for(var x=0,b=i;x&lt;b.length;x+=1){var _=b[x],w=r.getTile(_);if(!f||w.patternsLoaded()){var T=w.getBucket(n);if(T){var k=T.programConfigurations.get(n.id),A=e.context.program.get(),M=e.useProgram(d,k),S=v||M.program!==A,E=u.constantOr(null);if(E&amp;&amp;w.imageAtlas){var L=w.imageAtlas,C=L.patternPositions[E.to.toString()],P=L.patternPositions[E.from.toString()];C&amp;&amp;P&amp;&amp;k.setConstantPatternPositions(C,P)}var I=f?Br(e,w,n,p):c?Nr(e,w,n,c,p):h?Fr(e,w,n):Rr(e,w,n);f?(m.activeTexture.set(g.TEXTURE0),w.imageAtlasTexture.bind(g.LINEAR,g.CLAMP_TO_EDGE),k.updatePaintBuffers(p)):c&amp;&amp;(S||e.lineAtlas.dirty)&amp;&amp;(m.activeTexture.set(g.TEXTURE0),e.lineAtlas.bind(m)),M.draw(m,g.TRIANGLES,s,e.stencilModeForClipping(_),l,Et.disabled,I,n.id,T.layoutVertexBuffer,T.indexBuffer,T.segments,n.paint,e.transform.zoom,k),v=!1}}}}}},fill:function(e,r,n,i){var a=n.paint.get(&quot;fill-color&quot;),o=n.paint.get(&quot;fill-opacity&quot;);if(0!==o.constantOr(1)){var s=e.colorModeForRenderPass(),l=n.paint.get(&quot;fill-pattern&quot;),c=e.opaquePassEnabledForLayer()&amp;&amp;!l.constantOr(1)&amp;&amp;1===a.constantOr(t.Color.transparent).a&amp;&amp;1===o.constantOr(0)?&quot;opaque&quot;:&quot;translucent&quot;;if(e.renderPass===c){var u=e.depthModeForSublayer(1,&quot;opaque&quot;===e.renderPass?At.ReadWrite:At.ReadOnly);an(e,r,n,i,u,s,!1)}if(&quot;translucent&quot;===e.renderPass&amp;&amp;n.paint.get(&quot;fill-antialias&quot;)){var f=e.depthModeForSublayer(n.getPaintProperty(&quot;fill-outline-color&quot;)?2:0,At.ReadOnly);an(e,r,n,i,f,s,!0)}}},&quot;fill-extrusion&quot;:function(t,e,r,n){var i=r.paint.get(&quot;fill-extrusion-opacity&quot;);if(0!==i&amp;&amp;&quot;translucent&quot;===t.renderPass){var a=new At(t.context.gl.LEQUAL,At.ReadWrite,t.depthRangeFor3D);if(1!==i||r.paint.get(&quot;fill-extrusion-pattern&quot;).constantOr(1))on(t,e,r,n,a,Mt.disabled,St.disabled),on(t,e,r,n,a,t.stencilModeFor3D(),t.colorModeForRenderPass());else{var o=t.colorModeForRenderPass();on(t,e,r,n,a,Mt.disabled,o)}}},hillshade:function(t,e,r,n){if(&quot;offscreen&quot;===t.renderPass||&quot;translucent&quot;===t.renderPass){for(var i=t.context,a=e.getSource().maxzoom,o=t.depthModeForSublayer(0,At.ReadOnly),s=t.colorModeForRenderPass(),l=&quot;translucent&quot;===t.renderPass?t.stencilConfigForOverlap(n):[{},n],c=l[0],u=0,f=l[1];u&lt;f.length;u+=1){var h=f[u],p=e.getTile(h);p.needsHillshadePrepare&amp;&amp;&quot;offscreen&quot;===t.renderPass?ln(t,p,r,a,o,Mt.disabled,s):&quot;translucent&quot;===t.renderPass&amp;&amp;sn(t,p,r,o,c[h.overscaledZ],s)}i.viewport.set([0,0,t.width,t.height])}},raster:function(t,e,r,n){if(&quot;translucent&quot;===t.renderPass&amp;&amp;0!==r.paint.get(&quot;raster-opacity&quot;)&amp;&amp;n.length)for(var i=t.context,a=i.gl,o=e.getSource(),s=t.useProgram(&quot;raster&quot;),l=t.colorModeForRenderPass(),c=o instanceof I?[{},n]:t.stencilConfigForOverlap(n),u=c[0],f=c[1],h=f[f.length-1].overscaledZ,p=!t.options.moving,d=0,m=f;d&lt;m.length;d+=1){var g=m[d],v=t.depthModeForSublayer(g.overscaledZ-h,1===r.paint.get(&quot;raster-opacity&quot;)?At.ReadWrite:At.ReadOnly,a.LESS),y=e.getTile(g),x=t.transform.calculatePosMatrix(g.toUnwrapped(),p);y.registerFadeDuration(r.paint.get(&quot;raster-fade-duration&quot;));var b=e.findLoadedParent(g,0),_=cn(y,b,e,r,t.transform),w=void 0,T=void 0,k=&quot;nearest&quot;===r.paint.get(&quot;raster-resampling&quot;)?a.NEAREST:a.LINEAR;i.activeTexture.set(a.TEXTURE0),y.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),i.activeTexture.set(a.TEXTURE1),b?(b.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),w=Math.pow(2,b.tileID.overscaledZ-y.tileID.overscaledZ),T=[y.tileID.canonical.x*w%1,y.tileID.canonical.y*w%1]):y.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST);var A=Vr(x,T||[0,0],w||1,_,r);o instanceof I?s.draw(i,a.TRIANGLES,v,Mt.disabled,l,Et.disabled,A,r.id,o.boundsBuffer,t.quadTriangleIndexBuffer,o.boundsSegments):s.draw(i,a.TRIANGLES,v,u[g.overscaledZ],l,Et.disabled,A,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}},background:function(t,e,r){var n=r.paint.get(&quot;background-color&quot;),i=r.paint.get(&quot;background-opacity&quot;);if(0!==i){var a=t.context,o=a.gl,s=t.transform,l=s.tileSize,c=r.paint.get(&quot;background-pattern&quot;);if(!t.isPatternMissing(c)){var u=!c&amp;&amp;1===n.a&amp;&amp;1===i&amp;&amp;t.opaquePassEnabledForLayer()?&quot;opaque&quot;:&quot;translucent&quot;;if(t.renderPass===u){var f=Mt.disabled,h=t.depthModeForSublayer(0,&quot;opaque&quot;===u?At.ReadWrite:At.ReadOnly),p=t.colorModeForRenderPass(),d=t.useProgram(c?&quot;backgroundPattern&quot;:&quot;background&quot;),m=s.coveringTiles({tileSize:l});c&amp;&amp;(a.activeTexture.set(o.TEXTURE0),t.imageManager.bind(t.context));for(var g=r.getCrossfadeParameters(),v=0,y=m;v&lt;y.length;v+=1){var x=y[v],b=t.transform.calculatePosMatrix(x.toUnwrapped()),_=c?Zr(b,i,t,c,{tileID:x,tileSize:l},g):Xr(b,i,n);d.draw(a,o.TRIANGLES,h,f,p,Et.disabled,_,r.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments)}}}}},debug:function(t,e,r){for(var n=0;n&lt;r.length;n++)xn(t,e,r[n])},custom:function(t,e,r){var n=t.context,i=r.implementation;if(&quot;offscreen&quot;===t.renderPass){var a=i.prerender;a&amp;&amp;(t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),a.call(i,n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState())}else if(&quot;translucent&quot;===t.renderPass){t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),n.setStencilMode(Mt.disabled);var o=&quot;3d&quot;===i.renderingMode?new At(t.context.gl.LEQUAL,At.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,At.ReadOnly);n.setDepthMode(o),i.render(n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState(),n.bindFramebuffer.set(null)}}},_n=function(t,e){this.context=new Lt(t),this.transform=e,this._tileTextures={},this.setup(),this.numSublayers=Ct.maxUnderzooming+Ct.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Ne,this.gpuTimers={}};_n.prototype.resize=function(e,r){if(this.width=e*t.browser.devicePixelRatio,this.height=r*t.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var n=0,i=this.style._order;n&lt;i.length;n+=1){var a=i[n];this.style._layers[a].resize()}},_n.prototype.setup=function(){var e=this.context,r=new t.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(t.EXTENT,0),r.emplaceBack(0,t.EXTENT),r.emplaceBack(t.EXTENT,t.EXTENT),this.tileExtentBuffer=e.createVertexBuffer(r,Ge.members),this.tileExtentSegments=t.SegmentVector.simpleSegment(0,0,4,2);var n=new t.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(t.EXTENT,0),n.emplaceBack(0,t.EXTENT),n.emplaceBack(t.EXTENT,t.EXTENT),this.debugBuffer=e.createVertexBuffer(n,Ge.members),this.debugSegments=t.SegmentVector.simpleSegment(0,0,4,5);var i=new t.StructArrayLayout4i8;i.emplaceBack(0,0,0,0),i.emplaceBack(t.EXTENT,0,t.EXTENT,0),i.emplaceBack(0,t.EXTENT,0,t.EXTENT),i.emplaceBack(t.EXTENT,t.EXTENT,t.EXTENT,t.EXTENT),this.rasterBoundsBuffer=e.createVertexBuffer(i,P.members),this.rasterBoundsSegments=t.SegmentVector.simpleSegment(0,0,4,2);var a=new t.StructArrayLayout2i4;a.emplaceBack(0,0),a.emplaceBack(1,0),a.emplaceBack(0,1),a.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(a,Ge.members),this.viewportSegments=t.SegmentVector.simpleSegment(0,0,4,2);var o=new t.StructArrayLayout1ui2;o.emplaceBack(0),o.emplaceBack(1),o.emplaceBack(3),o.emplaceBack(2),o.emplaceBack(0),this.tileBorderIndexBuffer=e.createIndexBuffer(o);var s=new t.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(s),this.emptyTexture=new t.Texture(e,{width:1,height:1,data:new Uint8Array([0,0,0,0])},e.gl.RGBA);var l=this.context.gl;this.stencilClearMode=new Mt({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)},_n.prototype.clearStencil=function(){var e=this.context,r=e.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var n=t.create();t.ortho(n,0,this.width,this.height,0,0,1),t.scale(n,n,[r.drawingBufferWidth,r.drawingBufferHeight,0]),this.useProgram(&quot;clippingMask&quot;).draw(e,r.TRIANGLES,At.disabled,this.stencilClearMode,St.disabled,Et.disabled,Or(n),&quot;$clipping&quot;,this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},_n.prototype._renderTileClippingMasks=function(t,e){if(this.currentStencilSource!==t.source&amp;&amp;t.isTileClipped()&amp;&amp;e&amp;&amp;e.length){this.currentStencilSource=t.source;var r=this.context,n=r.gl;this.nextStencilID+e.length&gt;256&amp;&amp;this.clearStencil(),r.setColorMode(St.disabled),r.setDepthMode(At.disabled);var i=this.useProgram(&quot;clippingMask&quot;);this._tileClippingMaskIDs={};for(var a=0,o=e;a&lt;o.length;a+=1){var s=o[a],l=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;i.draw(r,n.TRIANGLES,At.disabled,new Mt({func:n.ALWAYS,mask:0},l,255,n.KEEP,n.KEEP,n.REPLACE),St.disabled,Et.disabled,Or(s.posMatrix),&quot;$clipping&quot;,this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},_n.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1&gt;256&amp;&amp;this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new Mt({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},_n.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new Mt({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},_n.prototype.stencilConfigForOverlap=function(t){var e,r=this.context.gl,n=t.sort((function(t,e){return e.overscaledZ-t.overscaledZ})),i=n[n.length-1].overscaledZ,a=n[0].overscaledZ-i+1;if(a&gt;1){this.currentStencilSource=void 0,this.nextStencilID+a&gt;256&amp;&amp;this.clearStencil();for(var o={},s=0;s&lt;a;s++)o[s+i]=new Mt({func:r.GEQUAL,mask:255},s+this.nextStencilID,255,r.KEEP,r.KEEP,r.REPLACE);return this.nextStencilID+=a,[o,n]}return[(e={},e[i]=Mt.disabled,e),n]},_n.prototype.colorModeForRenderPass=function(){var e=this.context.gl;if(this._showOverdrawInspector){return new St([e.CONSTANT_COLOR,e.ONE],new t.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0])}return&quot;opaque&quot;===this.renderPass?St.unblended:St.alphaBlended},_n.prototype.depthModeForSublayer=function(t,e,r){if(!this.opaquePassEnabledForLayer())return At.disabled;var n=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new At(r||this.context.gl.LEQUAL,e,[n,n])},_n.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer&lt;this.opaquePassCutoff},_n.prototype.render=function(e,r){var n=this;this.style=e,this.options=r,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(t.browser.now()),this.imageManager.beginFrame();var i=this.style._order,a=this.style.sourceCaches;for(var o in a){var s=a[o];s.used&amp;&amp;s.prepare(this.context)}var l,c,u={},f={},h={};for(var p in a){var d=a[p];u[p]=d.getVisibleCoordinates(),f[p]=u[p].slice().reverse(),h[p]=d.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(var m=0;m&lt;i.length;m++){var g=i[m];if(this.style._layers[g].is3D()){this.opaquePassCutoff=m;break}}this.renderPass=&quot;offscreen&quot;;for(var v=0,y=i;v&lt;y.length;v+=1){var x=y[v],b=this.style._layers[x];if(b.hasOffscreenPass()&amp;&amp;!b.isHidden(this.transform.zoom)){var _=f[b.source];(&quot;custom&quot;===b.type||_.length)&amp;&amp;this.renderLayer(this,a[b.source],b,_)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:r.showOverdrawInspector?t.Color.black:t.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=r.showOverdrawInspector,this.depthRangeFor3D=[0,1-(e._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass=&quot;opaque&quot;,this.currentLayer=i.length-1;this.currentLayer&gt;=0;this.currentLayer--){var w=this.style._layers[i[this.currentLayer]],T=a[w.source],k=u[w.source];this._renderTileClippingMasks(w,k),this.renderLayer(this,T,w,k)}for(this.renderPass=&quot;translucent&quot;,this.currentLayer=0;this.currentLayer&lt;i.length;this.currentLayer++){var A=this.style._layers[i[this.currentLayer]],M=a[A.source],S=(&quot;symbol&quot;===A.type?h:f)[A.source];this._renderTileClippingMasks(A,u[A.source]),this.renderLayer(this,M,A,S)}this.options.showTileBoundaries&amp;&amp;(t.values(this.style._layers).forEach((function(t){t.source&amp;&amp;!t.isHidden(n.transform.zoom)&amp;&amp;(t.source!==(c&amp;&amp;c.id)&amp;&amp;(c=n.style.sourceCaches[t.source]),(!l||l.getSource().maxzoom&lt;c.getSource().maxzoom)&amp;&amp;(l=c))})),l&amp;&amp;bn.debug(this,l,l.getVisibleCoordinates()));this.options.showPadding&amp;&amp;mn(this),this.context.setDefault()},_n.prototype.renderLayer=function(t,e,r,n){r.isHidden(this.transform.zoom)||(&quot;background&quot;===r.type||&quot;custom&quot;===r.type||n.length)&amp;&amp;(this.id=r.id,this.gpuTimingStart(r),bn[r.type](t,e,r,n,this.style.placement.variableOffsets),this.gpuTimingEnd())},_n.prototype.gpuTimingStart=function(t){if(this.options.gpuTiming){var e=this.context.extTimerQuery,r=this.gpuTimers[t.id];r||(r=this.gpuTimers[t.id]={calls:0,cpuTime:0,query:e.createQueryEXT()}),r.calls++,e.beginQueryEXT(e.TIME_ELAPSED_EXT,r.query)}},_n.prototype.gpuTimingEnd=function(){if(this.options.gpuTiming){var t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}},_n.prototype.collectGpuTimers=function(){var t=this.gpuTimers;return this.gpuTimers={},t},_n.prototype.queryGpuTimers=function(t){var e={};for(var r in t){var n=t[r],i=this.context.extTimerQuery,a=i.getQueryObjectEXT(n.query,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(n.query),e[r]=a}return e},_n.prototype.translatePosMatrix=function(e,r,n,i,a){if(!n[0]&amp;&amp;!n[1])return e;var o=a?&quot;map&quot;===i?this.transform.angle:0:&quot;viewport&quot;===i?-this.transform.angle:0;if(o){var s=Math.sin(o),l=Math.cos(o);n=[n[0]*l-n[1]*s,n[0]*s+n[1]*l]}var c=[a?n[0]:pe(r,n[0],this.transform.zoom),a?n[1]:pe(r,n[1],this.transform.zoom),0],u=new Float32Array(16);return t.translate(u,e,c),u},_n.prototype.saveTileTexture=function(t){var e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]},_n.prototype.getTileTexture=function(t){var e=this._tileTextures[t];return e&amp;&amp;e.length&gt;0?e.pop():null},_n.prototype.isPatternMissing=function(t){if(!t)return!1;if(!t.from||!t.to)return!0;var e=this.imageManager.getPattern(t.from.toString()),r=this.imageManager.getPattern(t.to.toString());return!e||!r},_n.prototype.useProgram=function(t,e){this.cache=this.cache||{};var r=&quot;&quot;+t+(e?e.cacheKey:&quot;&quot;)+(this._showOverdrawInspector?&quot;/overdraw&quot;:&quot;&quot;);return this.cache[r]||(this.cache[r]=new _r(this.context,xr[t],e,Jr[t],this._showOverdrawInspector)),this.cache[r]},_n.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},_n.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)},_n.prototype.initDebugOverlayCanvas=function(){if(null==this.debugOverlayCanvas){this.debugOverlayCanvas=t.window.document.createElement(&quot;canvas&quot;),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512;var e=this.context.gl;this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,e.RGBA)}},_n.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&amp;&amp;this.debugOverlayTexture.destroy()};var wn=function(t,e){this.points=t,this.planes=e};wn.fromInvProjectionMatrix=function(e,r,n){var i=Math.pow(2,n),a=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((function(r){return t.transformMat4([],r,e)})).map((function(e){return t.scale$1([],e,1/e[3]/r*i)})),o=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(e){var r=t.sub([],a[e[0]],a[e[1]]),n=t.sub([],a[e[2]],a[e[1]]),i=t.normalize([],t.cross([],r,n)),o=-t.dot(i,a[e[1]]);return i.concat(o)}));return new wn(a,o)};var Tn=function(e,r){this.min=e,this.max=r,this.center=t.scale$2([],t.add([],this.min,this.max),.5)};Tn.prototype.quadrant=function(e){for(var r=[e%2==0,e&lt;2],n=t.clone$2(this.min),i=t.clone$2(this.max),a=0;a&lt;r.length;a++)n[a]=r[a]?this.min[a]:this.center[a],i[a]=r[a]?this.center[a]:this.max[a];return i[2]=this.max[2],new Tn(n,i)},Tn.prototype.distanceX=function(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]},Tn.prototype.distanceY=function(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]},Tn.prototype.intersects=function(e){for(var r=[[this.min[0],this.min[1],0,1],[this.max[0],this.min[1],0,1],[this.max[0],this.max[1],0,1],[this.min[0],this.max[1],0,1]],n=!0,i=0;i&lt;e.planes.length;i++){for(var a=e.planes[i],o=0,s=0;s&lt;r.length;s++)o+=t.dot$1(a,r[s])&gt;=0;if(0===o)return 0;o!==r.length&amp;&amp;(n=!1)}if(n)return 2;for(var l=0;l&lt;3;l++){for(var c=Number.MAX_VALUE,u=-Number.MAX_VALUE,f=0;f&lt;e.points.length;f++){var h=e.points[f][l]-this.min[l];c=Math.min(c,h),u=Math.max(u,h)}if(u&lt;0||c&gt;this.max[l]-this.min[l])return 0}return 1};var kn=function(t,e,r,n){if(void 0===t&amp;&amp;(t=0),void 0===e&amp;&amp;(e=0),void 0===r&amp;&amp;(r=0),void 0===n&amp;&amp;(n=0),isNaN(t)||t&lt;0||isNaN(e)||e&lt;0||isNaN(r)||r&lt;0||isNaN(n)||n&lt;0)throw new Error(&quot;Invalid value for edge-insets, top, bottom, left and right must all be numbers&quot;);this.top=t,this.bottom=e,this.left=r,this.right=n};kn.prototype.interpolate=function(e,r,n){return null!=r.top&amp;&amp;null!=e.top&amp;&amp;(this.top=t.number(e.top,r.top,n)),null!=r.bottom&amp;&amp;null!=e.bottom&amp;&amp;(this.bottom=t.number(e.bottom,r.bottom,n)),null!=r.left&amp;&amp;null!=e.left&amp;&amp;(this.left=t.number(e.left,r.left,n)),null!=r.right&amp;&amp;null!=e.right&amp;&amp;(this.right=t.number(e.right,r.right,n)),this},kn.prototype.getCenter=function(e,r){var n=t.clamp((this.left+e-this.right)/2,0,e),i=t.clamp((this.top+r-this.bottom)/2,0,r);return new t.Point(n,i)},kn.prototype.equals=function(t){return this.top===t.top&amp;&amp;this.bottom===t.bottom&amp;&amp;this.left===t.left&amp;&amp;this.right===t.right},kn.prototype.clone=function(){return new kn(this.top,this.bottom,this.left,this.right)},kn.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var An=function(e,r,n,i,a){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===a||a,this._minZoom=e||0,this._maxZoom=r||22,this._minPitch=null==n?0:n,this._maxPitch=null==i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new kn,this._posMatrixCache={},this._alignedPosMatrixCache={}},Mn={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};An.prototype.clone=function(){var t=new An(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._calcMatrices(),t},Mn.minZoom.get=function(){return this._minZoom},Mn.minZoom.set=function(t){this._minZoom!==t&amp;&amp;(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Mn.maxZoom.get=function(){return this._maxZoom},Mn.maxZoom.set=function(t){this._maxZoom!==t&amp;&amp;(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Mn.minPitch.get=function(){return this._minPitch},Mn.minPitch.set=function(t){this._minPitch!==t&amp;&amp;(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},Mn.maxPitch.get=function(){return this._maxPitch},Mn.maxPitch.set=function(t){this._maxPitch!==t&amp;&amp;(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},Mn.renderWorldCopies.get=function(){return this._renderWorldCopies},Mn.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&amp;&amp;(t=!1),this._renderWorldCopies=t},Mn.worldSize.get=function(){return this.tileSize*this.scale},Mn.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Mn.size.get=function(){return new t.Point(this.width,this.height)},Mn.bearing.get=function(){return-this.angle/Math.PI*180},Mn.bearing.set=function(e){var r=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==r&amp;&amp;(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Mn.pitch.get=function(){return this._pitch/Math.PI*180},Mn.pitch.set=function(e){var r=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==r&amp;&amp;(this._unmodified=!1,this._pitch=r,this._calcMatrices())},Mn.fov.get=function(){return this._fov/Math.PI*180},Mn.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&amp;&amp;(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Mn.zoom.get=function(){return this._zoom},Mn.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&amp;&amp;(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Mn.center.get=function(){return this._center},Mn.center.set=function(t){t.lat===this._center.lat&amp;&amp;t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Mn.padding.get=function(){return this._edgeInsets.toJSON()},Mn.padding.set=function(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())},Mn.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},An.prototype.isPaddingEqual=function(t){return this._edgeInsets.equals(t)},An.prototype.interpolatePadding=function(t,e,r){this._unmodified=!1,this._edgeInsets.interpolate(t,e,r),this._constrain(),this._calcMatrices()},An.prototype.coveringZoomLevel=function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)},An.prototype.getVisibleUnwrappedCoordinates=function(e){var r=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var n=this.pointCoordinate(new t.Point(0,0)),i=this.pointCoordinate(new t.Point(this.width,0)),a=this.pointCoordinate(new t.Point(this.width,this.height)),o=this.pointCoordinate(new t.Point(0,this.height)),s=Math.floor(Math.min(n.x,i.x,a.x,o.x)),l=Math.floor(Math.max(n.x,i.x,a.x,o.x)),c=s-1;c&lt;=l+1;c++)0!==c&amp;&amp;r.push(new t.UnwrappedTileID(c,e));return r},An.prototype.coveringTiles=function(e){var r=this.coveringZoomLevel(e),n=r;if(void 0!==e.minzoom&amp;&amp;r&lt;e.minzoom)return[];void 0!==e.maxzoom&amp;&amp;r&gt;e.maxzoom&amp;&amp;(r=e.maxzoom);var i=t.MercatorCoordinate.fromLngLat(this.center),a=Math.pow(2,r),o=[a*i.x,a*i.y,0],s=wn.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,r),l=e.minzoom||0;this.pitch&lt;=60&amp;&amp;this._edgeInsets.top&lt;.1&amp;&amp;(l=r);var c=function(t){return{aabb:new Tn([t*a,0,0],[(t+1)*a,a,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}},u=[],f=[],h=r,p=e.reparseOverscaled?n:r;if(this._renderWorldCopies)for(var d=1;d&lt;=3;d++)u.push(c(-d)),u.push(c(d));for(u.push(c(0));u.length&gt;0;){var m=u.pop(),g=m.x,v=m.y,y=m.fullyVisible;if(!y){var x=m.aabb.intersects(s);if(0===x)continue;y=2===x}var b=m.aabb.distanceX(o),_=m.aabb.distanceY(o),w=Math.max(Math.abs(b),Math.abs(_)),T=3+(1&lt;&lt;h-m.zoom)-2;if(m.zoom===h||w&gt;T&amp;&amp;m.zoom&gt;=l)f.push({tileID:new t.OverscaledTileID(m.zoom===h?p:m.zoom,m.wrap,m.zoom,g,v),distanceSq:t.sqrLen([o[0]-.5-g,o[1]-.5-v])});else for(var k=0;k&lt;4;k++){var A=(g&lt;&lt;1)+k%2,M=(v&lt;&lt;1)+(k&gt;&gt;1);u.push({aabb:m.aabb.quadrant(k),zoom:m.zoom+1,x:A,y:M,wrap:m.wrap,fullyVisible:y})}}return f.sort((function(t,e){return t.distanceSq-e.distanceSq})).map((function(t){return t.tileID}))},An.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Mn.unmodified.get=function(){return this._unmodified},An.prototype.zoomScale=function(t){return Math.pow(2,t)},An.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},An.prototype.project=function(e){var r=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(r)*this.worldSize)},An.prototype.unproject=function(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()},Mn.point.get=function(){return this.project(this.center)},An.prototype.setLocationAtPoint=function(e,r){var n=this.pointCoordinate(r),i=this.pointCoordinate(this.centerPoint),a=this.locationCoordinate(e),o=new t.MercatorCoordinate(a.x-(n.x-i.x),a.y-(n.y-i.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&amp;&amp;(this.center=this.center.wrap())},An.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},An.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},An.prototype.locationCoordinate=function(e){return t.MercatorCoordinate.fromLngLat(e)},An.prototype.coordinateLocation=function(t){return t.toLngLat()},An.prototype.pointCoordinate=function(e){var r=[e.x,e.y,0,1],n=[e.x,e.y,1,1];t.transformMat4(r,r,this.pixelMatrixInverse),t.transformMat4(n,n,this.pixelMatrixInverse);var i=r[3],a=n[3],o=r[0]/i,s=n[0]/a,l=r[1]/i,c=n[1]/a,u=r[2]/i,f=n[2]/a,h=u===f?0:(0-u)/(f-u);return new t.MercatorCoordinate(t.number(o,s,h)/this.worldSize,t.number(l,c,h)/this.worldSize)},An.prototype.coordinatePoint=function(e){var r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix),new t.Point(r[0]/r[3],r[1]/r[3])},An.prototype.getBounds=function(){return(new t.LngLatBounds).extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},An.prototype.getMaxBounds=function(){return this.latRange&amp;&amp;2===this.latRange.length&amp;&amp;this.lngRange&amp;&amp;2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},An.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},An.prototype.calculatePosMatrix=function(e,r){void 0===r&amp;&amp;(r=!1);var n=e.key,i=r?this._alignedPosMatrixCache:this._posMatrixCache;if(i[n])return i[n];var a=e.canonical,o=this.worldSize/this.zoomScale(a.z),s=a.x+Math.pow(2,a.z)*e.wrap,l=t.identity(new Float64Array(16));return t.translate(l,l,[s*o,a.y*o,0]),t.scale(l,l,[o/t.EXTENT,o/t.EXTENT,1]),t.multiply(l,r?this.alignedProjMatrix:this.projMatrix,l),i[n]=new Float32Array(l),i[n]},An.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},An.prototype._constrain=function(){if(this.center&amp;&amp;this.width&amp;&amp;this.height&amp;&amp;!this._constraining){this._constraining=!0;var e,r,n,i,a=-90,o=90,s=-180,l=180,c=this.size,u=this._unmodified;if(this.latRange){var f=this.latRange;a=t.mercatorYfromLat(f[1])*this.worldSize,e=(o=t.mercatorYfromLat(f[0])*this.worldSize)-a&lt;c.y?c.y/(o-a):0}if(this.lngRange){var h=this.lngRange;s=t.mercatorXfromLng(h[0])*this.worldSize,r=(l=t.mercatorXfromLng(h[1])*this.worldSize)-s&lt;c.x?c.x/(l-s):0}var p=this.point,d=Math.max(r||0,e||0);if(d)return this.center=this.unproject(new t.Point(r?(l+s)/2:p.x,e?(o+a)/2:p.y)),this.zoom+=this.scaleZoom(d),this._unmodified=u,void(this._constraining=!1);if(this.latRange){var m=p.y,g=c.y/2;m-g&lt;a&amp;&amp;(i=a+g),m+g&gt;o&amp;&amp;(i=o-g)}if(this.lngRange){var v=p.x,y=c.x/2;v-y&lt;s&amp;&amp;(n=s+y),v+y&gt;l&amp;&amp;(n=l-y)}void 0===n&amp;&amp;void 0===i||(this.center=this.unproject(new t.Point(void 0!==n?n:p.x,void 0!==i?i:p.y))),this._unmodified=u,this._constraining=!1}},An.prototype._calcMatrices=function(){if(this.height){var e=this._fov/2,r=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(e)*this.height;var n=Math.PI/2+this._pitch,i=this._fov*(.5+r.y/this.height),a=Math.sin(i)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-n-i,.01,Math.PI-.01)),o=this.point,s=o.x,l=o.y,c=1.01*(Math.cos(Math.PI/2-this._pitch)*a+this.cameraToCenterDistance),u=this.height/50,f=new Float64Array(16);t.perspective(f,this._fov,this.width/this.height,u,c),f[8]=2*-r.x/this.width,f[9]=2*r.y/this.height,t.scale(f,f,[1,-1,1]),t.translate(f,f,[0,0,-this.cameraToCenterDistance]),t.rotateX(f,f,this._pitch),t.rotateZ(f,f,this.angle),t.translate(f,f,[-s,-l,0]),this.mercatorMatrix=t.scale([],f,[this.worldSize,this.worldSize,this.worldSize]),t.scale(f,f,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=f,this.invProjMatrix=t.invert([],this.projMatrix);var h=this.width%2/2,p=this.height%2/2,d=Math.cos(this.angle),m=Math.sin(this.angle),g=s-Math.round(s)+d*h+m*p,v=l-Math.round(l)+d*p+m*h,y=new Float64Array(f);if(t.translate(y,y,[g&gt;.5?g-1:g,v&gt;.5?v-1:v,0]),this.alignedProjMatrix=y,f=t.create(),t.scale(f,f,[this.width/2,-this.height/2,1]),t.translate(f,f,[1,-1,0]),this.labelPlaneMatrix=f,f=t.create(),t.scale(f,f,[1,-1,1]),t.translate(f,f,[-1,-1,0]),t.scale(f,f,[2/this.width,2/this.height,1]),this.glCoordMatrix=f,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(f=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error(&quot;failed to invert matrix&quot;);this.pixelMatrixInverse=f,this._posMatrixCache={},this._alignedPosMatrixCache={}}},An.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)),r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance},An.prototype.getCameraPoint=function(){var e=this._pitch,r=Math.tan(e)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,r))},An.prototype.getCameraQueryGeometry=function(e){var r=this.getCameraPoint();if(1===e.length)return[e[0],r];for(var n=r.x,i=r.y,a=r.x,o=r.y,s=0,l=e;s&lt;l.length;s+=1){var c=l[s];n=Math.min(n,c.x),i=Math.min(i,c.y),a=Math.max(a,c.x),o=Math.max(o,c.y)}return[new t.Point(n,i),new t.Point(a,i),new t.Point(a,o),new t.Point(n,o),new t.Point(n,i)]},Object.defineProperties(An.prototype,Mn);var Sn=function(e){var r,n,i,a,o;this._hashName=e&amp;&amp;encodeURIComponent(e),t.bindAll([&quot;_getCurrentHash&quot;,&quot;_onHashChange&quot;,&quot;_updateHash&quot;],this),this._updateHash=(r=this._updateHashUnthrottled.bind(this),n=300,i=!1,a=null,o=function(){a=null,i&amp;&amp;(r(),a=setTimeout(o,n),i=!1)},function(){return i=!0,a||o(),a})};Sn.prototype.addTo=function(e){return this._map=e,t.window.addEventListener(&quot;hashchange&quot;,this._onHashChange,!1),this._map.on(&quot;moveend&quot;,this._updateHash),this},Sn.prototype.remove=function(){return t.window.removeEventListener(&quot;hashchange&quot;,this._onHashChange,!1),this._map.off(&quot;moveend&quot;,this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},Sn.prototype.getHashString=function(e){var r=this._map.getCenter(),n=Math.round(100*this._map.getZoom())/100,i=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),a=Math.pow(10,i),o=Math.round(r.lng*a)/a,s=Math.round(r.lat*a)/a,l=this._map.getBearing(),c=this._map.getPitch(),u=&quot;&quot;;if(u+=e?&quot;/&quot;+o+&quot;/&quot;+s+&quot;/&quot;+n:n+&quot;/&quot;+s+&quot;/&quot;+o,(l||c)&amp;&amp;(u+=&quot;/&quot;+Math.round(10*l)/10),c&amp;&amp;(u+=&quot;/&quot;+Math.round(c)),this._hashName){var f=this._hashName,h=!1,p=t.window.location.hash.slice(1).split(&quot;&amp;&quot;).map((function(t){var e=t.split(&quot;=&quot;)[0];return e===f?(h=!0,e+&quot;=&quot;+u):t})).filter((function(t){return t}));return h||p.push(f+&quot;=&quot;+u),&quot;#&quot;+p.join(&quot;&amp;&quot;)}return&quot;#&quot;+u},Sn.prototype._getCurrentHash=function(){var e,r=this,n=t.window.location.hash.replace(&quot;#&quot;,&quot;&quot;);return this._hashName?(n.split(&quot;&amp;&quot;).map((function(t){return t.split(&quot;=&quot;)})).forEach((function(t){t[0]===r._hashName&amp;&amp;(e=t)})),(e&amp;&amp;e[1]||&quot;&quot;).split(&quot;/&quot;)):n.split(&quot;/&quot;)},Sn.prototype._onHashChange=function(){var t=this._getCurrentHash();if(t.length&gt;=3&amp;&amp;!t.some((function(t){return isNaN(t)}))){var e=this._map.dragRotate.isEnabled()&amp;&amp;this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},Sn.prototype._updateHashUnthrottled=function(){var e=this.getHashString();try{t.window.history.replaceState(t.window.history.state,&quot;&quot;,e)}catch(t){}};var En={linearity:.3,easing:t.bezier(0,0,.3,1)},Ln=t.extend({deceleration:2500,maxSpeed:1400},En),Cn=t.extend({deceleration:20,maxSpeed:1400},En),Pn=t.extend({deceleration:1e3,maxSpeed:360},En),In=t.extend({deceleration:1e3,maxSpeed:90},En),On=function(t){this._map=t,this.clear()};function zn(t,e){(!t.duration||t.duration&lt;e.duration)&amp;&amp;(t.duration=e.duration,t.easing=e.easing)}function Dn(e,r,n){var i=n.maxSpeed,a=n.linearity,o=n.deceleration,s=t.clamp(e*a/(r/1e3),-i,i),l=Math.abs(s)/(o*a);return{easing:n.easing,duration:1e3*l,amount:s*(l/2)}}On.prototype.clear=function(){this._inertiaBuffer=[]},On.prototype.record=function(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:t.browser.now(),settings:e})},On.prototype._drainInertiaBuffer=function(){for(var e=this._inertiaBuffer,r=t.browser.now();e.length&gt;0&amp;&amp;r-e[0].time&gt;160;)e.shift()},On.prototype._onMoveEnd=function(e){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length&lt;2)){for(var r={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0},n=0,i=this._inertiaBuffer;n&lt;i.length;n+=1){var a=i[n].settings;r.zoom+=a.zoomDelta||0,r.bearing+=a.bearingDelta||0,r.pitch+=a.pitchDelta||0,a.panDelta&amp;&amp;r.pan._add(a.panDelta),a.around&amp;&amp;(r.around=a.around),a.pinchAround&amp;&amp;(r.pinchAround=a.pinchAround)}var o=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,s={};if(r.pan.mag()){var l=Dn(r.pan.mag(),o,t.extend({},Ln,e||{}));s.offset=r.pan.mult(l.amount/r.pan.mag()),s.center=this._map.transform.center,zn(s,l)}if(r.zoom){var c=Dn(r.zoom,o,Cn);s.zoom=this._map.transform.zoom+c.amount,zn(s,c)}if(r.bearing){var u=Dn(r.bearing,o,Pn);s.bearing=this._map.transform.bearing+t.clamp(u.amount,-179,179),zn(s,u)}if(r.pitch){var f=Dn(r.pitch,o,In);s.pitch=this._map.transform.pitch+f.amount,zn(s,f)}if(s.zoom||s.bearing){var h=void 0===r.pinchAround?r.around:r.pinchAround;s.around=h?this._map.unproject(h):this._map.getCenter()}return this.clear(),t.extend(s,{noMoveStart:!0})}};var Rn=function(e){function n(n,i,a,o){void 0===o&amp;&amp;(o={});var s=r.mousePos(i.getCanvasContainer(),a),l=i.unproject(s);e.call(this,n,t.extend({point:s,lngLat:l,originalEvent:a},o)),this._defaultPrevented=!1,this.target=i}e&amp;&amp;(n.__proto__=e),n.prototype=Object.create(e&amp;&amp;e.prototype),n.prototype.constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),Fn=function(e){function n(n,i,a){var o=&quot;touchend&quot;===n?a.changedTouches:a.touches,s=r.touchPos(i.getCanvasContainer(),o),l=s.map((function(t){return i.unproject(t)})),c=s.reduce((function(t,e,r,n){return t.add(e.div(n.length))}),new t.Point(0,0)),u=i.unproject(c);e.call(this,n,{points:s,point:c,lngLats:l,lngLat:u,originalEvent:a}),this._defaultPrevented=!1}e&amp;&amp;(n.__proto__=e),n.prototype=Object.create(e&amp;&amp;e.prototype),n.prototype.constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),Bn=function(t){function e(e,r,n){t.call(this,e,{originalEvent:n}),this._defaultPrevented=!1}t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e;var r={defaultPrevented:{configurable:!0}};return e.prototype.preventDefault=function(){this._defaultPrevented=!0},r.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(e.prototype,r),e}(t.Event),Nn=function(t,e){this._map=t,this._clickTolerance=e.clickTolerance};Nn.prototype.reset=function(){delete this._mousedownPos},Nn.prototype.wheel=function(t){return this._firePreventable(new Bn(t.type,this._map,t))},Nn.prototype.mousedown=function(t,e){return this._mousedownPos=e,this._firePreventable(new Rn(t.type,this._map,t))},Nn.prototype.mouseup=function(t){this._map.fire(new Rn(t.type,this._map,t))},Nn.prototype.click=function(t,e){this._mousedownPos&amp;&amp;this._mousedownPos.dist(e)&gt;=this._clickTolerance||this._map.fire(new Rn(t.type,this._map,t))},Nn.prototype.dblclick=function(t){return this._firePreventable(new Rn(t.type,this._map,t))},Nn.prototype.mouseover=function(t){this._map.fire(new Rn(t.type,this._map,t))},Nn.prototype.mouseout=function(t){this._map.fire(new Rn(t.type,this._map,t))},Nn.prototype.touchstart=function(t){return this._firePreventable(new Fn(t.type,this._map,t))},Nn.prototype.touchmove=function(t){this._map.fire(new Fn(t.type,this._map,t))},Nn.prototype.touchend=function(t){this._map.fire(new Fn(t.type,this._map,t))},Nn.prototype.touchcancel=function(t){this._map.fire(new Fn(t.type,this._map,t))},Nn.prototype._firePreventable=function(t){if(this._map.fire(t),t.defaultPrevented)return{}},Nn.prototype.isEnabled=function(){return!0},Nn.prototype.isActive=function(){return!1},Nn.prototype.enable=function(){},Nn.prototype.disable=function(){};var jn=function(t){this._map=t};jn.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},jn.prototype.mousemove=function(t){this._map.fire(new Rn(t.type,this._map,t))},jn.prototype.mousedown=function(){this._delayContextMenu=!0},jn.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&amp;&amp;(this._map.fire(new Rn(&quot;contextmenu&quot;,this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},jn.prototype.contextmenu=function(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new Rn(t.type,this._map,t)),this._map.listens(&quot;contextmenu&quot;)&amp;&amp;t.preventDefault()},jn.prototype.isEnabled=function(){return!0},jn.prototype.isActive=function(){return!1},jn.prototype.enable=function(){},jn.prototype.disable=function(){};var Un=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1};function Vn(t,e){for(var r={},n=0;n&lt;t.length;n++)r[t[n].identifier]=e[n];return r}Un.prototype.isEnabled=function(){return!!this._enabled},Un.prototype.isActive=function(){return!!this._active},Un.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Un.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},Un.prototype.mousedown=function(t,e){this.isEnabled()&amp;&amp;t.shiftKey&amp;&amp;0===t.button&amp;&amp;(r.disableDrag(),this._startPos=this._lastPos=e,this._active=!0)},Un.prototype.mousemoveWindow=function(t,e){if(this._active){var n=e;if(!(this._lastPos.equals(n)||!this._box&amp;&amp;n.dist(this._startPos)&lt;this._clickTolerance)){var i=this._startPos;this._lastPos=n,this._box||(this._box=r.create(&quot;div&quot;,&quot;mapboxgl-boxzoom&quot;,this._container),this._container.classList.add(&quot;mapboxgl-crosshair&quot;),this._fireEvent(&quot;boxzoomstart&quot;,t));var a=Math.min(i.x,n.x),o=Math.max(i.x,n.x),s=Math.min(i.y,n.y),l=Math.max(i.y,n.y);r.setTransform(this._box,&quot;translate(&quot;+a+&quot;px,&quot;+s+&quot;px)&quot;),this._box.style.width=o-a+&quot;px&quot;,this._box.style.height=l-s+&quot;px&quot;}}},Un.prototype.mouseupWindow=function(e,n){var i=this;if(this._active&amp;&amp;0===e.button){var a=this._startPos,o=n;if(this.reset(),r.suppressClick(),a.x!==o.x||a.y!==o.y)return this._map.fire(new t.Event(&quot;boxzoomend&quot;,{originalEvent:e})),{cameraAnimation:function(t){return t.fitScreenCoordinates(a,o,i._map.getBearing(),{linear:!0})}};this._fireEvent(&quot;boxzoomcancel&quot;,e)}},Un.prototype.keydown=function(t){this._active&amp;&amp;27===t.keyCode&amp;&amp;(this.reset(),this._fireEvent(&quot;boxzoomcancel&quot;,t))},Un.prototype.reset=function(){this._active=!1,this._container.classList.remove(&quot;mapboxgl-crosshair&quot;),this._box&amp;&amp;(r.remove(this._box),this._box=null),r.enableDrag(),delete this._startPos,delete this._lastPos},Un.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,{originalEvent:r}))};var Hn=function(t){this.reset(),this.numTouches=t.numTouches};Hn.prototype.reset=function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1},Hn.prototype.touchstart=function(e,r,n){(this.centroid||n.length&gt;this.numTouches)&amp;&amp;(this.aborted=!0),this.aborted||(void 0===this.startTime&amp;&amp;(this.startTime=e.timeStamp),n.length===this.numTouches&amp;&amp;(this.centroid=function(e){for(var r=new t.Point(0,0),n=0,i=e;n&lt;i.length;n+=1){var a=i[n];r._add(a)}return r.div(e.length)}(r),this.touches=Vn(n,r)))},Hn.prototype.touchmove=function(t,e,r){if(!this.aborted&amp;&amp;this.centroid){var n=Vn(r,e);for(var i in this.touches){var a=this.touches[i],o=n[i];(!o||o.dist(a)&gt;30)&amp;&amp;(this.aborted=!0)}}},Hn.prototype.touchend=function(t,e,r){if((!this.centroid||t.timeStamp-this.startTime&gt;500)&amp;&amp;(this.aborted=!0),0===r.length){var n=!this.aborted&amp;&amp;this.centroid;if(this.reset(),n)return n}};var qn=function(t){this.singleTap=new Hn(t),this.numTaps=t.numTaps,this.reset()};qn.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},qn.prototype.touchstart=function(t,e,r){this.singleTap.touchstart(t,e,r)},qn.prototype.touchmove=function(t,e,r){this.singleTap.touchmove(t,e,r)},qn.prototype.touchend=function(t,e,r){var n=this.singleTap.touchend(t,e,r);if(n){var i=t.timeStamp-this.lastTime&lt;500,a=!this.lastTap||this.lastTap.dist(n)&lt;30;if(i&amp;&amp;a||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=n,this.count===this.numTaps)return this.reset(),n}};var Gn=function(){this._zoomIn=new qn({numTouches:1,numTaps:2}),this._zoomOut=new qn({numTouches:2,numTaps:1}),this.reset()};Gn.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Gn.prototype.touchstart=function(t,e,r){this._zoomIn.touchstart(t,e,r),this._zoomOut.touchstart(t,e,r)},Gn.prototype.touchmove=function(t,e,r){this._zoomIn.touchmove(t,e,r),this._zoomOut.touchmove(t,e,r)},Gn.prototype.touchend=function(t,e,r){var n=this,i=this._zoomIn.touchend(t,e,r),a=this._zoomOut.touchend(t,e,r);return i?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(i)},{originalEvent:t})}}):a?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(a)},{originalEvent:t})}}):void 0},Gn.prototype.touchcancel=function(){this.reset()},Gn.prototype.enable=function(){this._enabled=!0},Gn.prototype.disable=function(){this._enabled=!1,this.reset()},Gn.prototype.isEnabled=function(){return this._enabled},Gn.prototype.isActive=function(){return this._active};var Yn=function(t){this.reset(),this._clickTolerance=t.clickTolerance||1};Yn.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},Yn.prototype._correctButton=function(t,e){return!1},Yn.prototype._move=function(t,e){return{}},Yn.prototype.mousedown=function(t,e){if(!this._lastPoint){var n=r.mouseButton(t);this._correctButton(t,n)&amp;&amp;(this._lastPoint=e,this._eventButton=n)}},Yn.prototype.mousemoveWindow=function(t,e){var r=this._lastPoint;if(r&amp;&amp;(t.preventDefault(),this._moved||!(e.dist(r)&lt;this._clickTolerance)))return this._moved=!0,this._lastPoint=e,this._move(r,e)},Yn.prototype.mouseupWindow=function(t){r.mouseButton(t)===this._eventButton&amp;&amp;(this._moved&amp;&amp;r.suppressClick(),this.reset())},Yn.prototype.enable=function(){this._enabled=!0},Yn.prototype.disable=function(){this._enabled=!1,this.reset()},Yn.prototype.isEnabled=function(){return this._enabled},Yn.prototype.isActive=function(){return this._active};var Wn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.mousedown=function(e,r){t.prototype.mousedown.call(this,e,r),this._lastPoint&amp;&amp;(this._active=!0)},e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;!t.ctrlKey},e.prototype._move=function(t,e){return{around:e,panDelta:e.sub(t)}},e}(Yn),Xn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=.8*(e.x-t.x);if(r)return this._active=!0,{bearingDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(Yn),Zn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=-.5*(e.y-t.y);if(r)return this._active=!0,{pitchDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(Yn),Jn=function(t){this._minTouches=1,this._clickTolerance=t.clickTolerance||1,this.reset()};Jn.prototype.reset=function(){this._active=!1,this._touches={},this._sum=new t.Point(0,0)},Jn.prototype.touchstart=function(t,e,r){return this._calculateTransform(t,e,r)},Jn.prototype.touchmove=function(t,e,r){if(this._active)return t.preventDefault(),this._calculateTransform(t,e,r)},Jn.prototype.touchend=function(t,e,r){this._calculateTransform(t,e,r),this._active&amp;&amp;r.length&lt;this._minTouches&amp;&amp;this.reset()},Jn.prototype.touchcancel=function(){this.reset()},Jn.prototype._calculateTransform=function(e,r,n){n.length&gt;0&amp;&amp;(this._active=!0);var i=Vn(n,r),a=new t.Point(0,0),o=new t.Point(0,0),s=0;for(var l in i){var c=i[l],u=this._touches[l];u&amp;&amp;(a._add(c),o._add(c.sub(u)),s++,i[l]=c)}if(this._touches=i,!(s&lt;this._minTouches)&amp;&amp;o.mag()){var f=o.div(s);if(this._sum._add(f),!(this._sum.mag()&lt;this._clickTolerance))return{around:a.div(s),panDelta:f}}},Jn.prototype.enable=function(){this._enabled=!0},Jn.prototype.disable=function(){this._enabled=!1,this.reset()},Jn.prototype.isEnabled=function(){return this._enabled},Jn.prototype.isActive=function(){return this._active};var Kn=function(){this.reset()};function Qn(t,e,r){for(var n=0;n&lt;t.length;n++)if(t[n].identifier===r)return e[n]}Kn.prototype.reset=function(){this._active=!1,delete this._firstTwoTouches},Kn.prototype._start=function(t){},Kn.prototype._move=function(t,e,r){return{}},Kn.prototype.touchstart=function(t,e,r){this._firstTwoTouches||r.length&lt;2||(this._firstTwoTouches=[r[0].identifier,r[1].identifier],this._start([e[0],e[1]]))},Kn.prototype.touchmove=function(t,e,r){if(this._firstTwoTouches){t.preventDefault();var n=this._firstTwoTouches,i=n[0],a=n[1],o=Qn(r,e,i),s=Qn(r,e,a);if(o&amp;&amp;s){var l=this._aroundCenter?null:o.add(s).div(2);return this._move([o,s],l,t)}}},Kn.prototype.touchend=function(t,e,n){if(this._firstTwoTouches){var i=this._firstTwoTouches,a=i[0],o=i[1],s=Qn(n,e,a),l=Qn(n,e,o);s&amp;&amp;l||(this._active&amp;&amp;r.suppressClick(),this.reset())}},Kn.prototype.touchcancel=function(){this.reset()},Kn.prototype.enable=function(t){this._enabled=!0,this._aroundCenter=!!t&amp;&amp;&quot;center&quot;===t.around},Kn.prototype.disable=function(){this._enabled=!1,this.reset()},Kn.prototype.isEnabled=function(){return this._enabled},Kn.prototype.isActive=function(){return this._active};function $n(t,e){return Math.log(t/e)/Math.LN2}var ti=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._distance,delete this._startDistance},e.prototype._start=function(t){this._startDistance=this._distance=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._distance;if(this._distance=t[0].dist(t[1]),this._active||!(Math.abs($n(this._distance,this._startDistance))&lt;.1))return this._active=!0,{zoomDelta:$n(this._distance,r),pinchAround:e}},e}(Kn);function ei(t,e){return 180*t.angleWith(e)/Math.PI}var ri=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._minDiameter,delete this._startVector,delete this._vector},e.prototype._start=function(t){this._startVector=this._vector=t[0].sub(t[1]),this._minDiameter=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._vector;if(this._vector=t[0].sub(t[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:ei(this._vector,r),pinchAround:e}},e.prototype._isBelowThreshold=function(t){this._minDiameter=Math.min(this._minDiameter,t.mag());var e=25/(Math.PI*this._minDiameter)*360,r=ei(t,this._startVector);return Math.abs(r)&lt;e},e}(Kn);function ni(t){return Math.abs(t.y)&gt;Math.abs(t.x)}var ii=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},e.prototype._start=function(t){this._lastPoints=t,ni(t[0].sub(t[1]))&amp;&amp;(this._valid=!1)},e.prototype._move=function(t,e,r){var n=t[0].sub(this._lastPoints[0]),i=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(n,i,r.timeStamp),this._valid){this._lastPoints=t,this._active=!0;return{pitchDelta:-.5*((n.y+i.y)/2)}}},e.prototype.gestureBeginsVertically=function(t,e,r){if(void 0!==this._valid)return this._valid;var n=t.mag()&gt;=2,i=e.mag()&gt;=2;if(n||i){if(!n||!i)return void 0===this._firstMove&amp;&amp;(this._firstMove=r),r-this._firstMove&lt;100&amp;&amp;void 0;var a=t.y&gt;0==e.y&gt;0;return ni(t)&amp;&amp;ni(e)&amp;&amp;a}},e}(Kn),ai={panStep:100,bearingStep:15,pitchStep:10},oi=function(){var t=ai;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep};function si(t){return t*(2-t)}oi.prototype.reset=function(){this._active=!1},oi.prototype.keydown=function(t){var e=this;if(!(t.altKey||t.ctrlKey||t.metaKey)){var r=0,n=0,i=0,a=0,o=0;switch(t.keyCode){case 61:case 107:case 171:case 187:r=1;break;case 189:case 109:case 173:r=-1;break;case 37:t.shiftKey?n=-1:(t.preventDefault(),a=-1);break;case 39:t.shiftKey?n=1:(t.preventDefault(),a=1);break;case 38:t.shiftKey?i=1:(t.preventDefault(),o=-1);break;case 40:t.shiftKey?i=-1:(t.preventDefault(),o=1);break;default:return}return{cameraAnimation:function(s){var l=s.getZoom();s.easeTo({duration:300,easeId:&quot;keyboardHandler&quot;,easing:si,zoom:r?Math.round(l)+r*(t.shiftKey?2:1):l,bearing:s.getBearing()+n*e._bearingStep,pitch:s.getPitch()+i*e._pitchStep,offset:[-a*e._panStep,-o*e._panStep],center:s.getCenter()},{originalEvent:t})}}}},oi.prototype.enable=function(){this._enabled=!0},oi.prototype.disable=function(){this._enabled=!1,this.reset()},oi.prototype.isEnabled=function(){return this._enabled},oi.prototype.isActive=function(){return this._active};var li=function(e,r){this._map=e,this._el=e.getCanvasContainer(),this._handler=r,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,t.bindAll([&quot;_onWheel&quot;,&quot;_onTimeout&quot;,&quot;_onScrollFrame&quot;,&quot;_onScrollFinished&quot;],this)};li.prototype.setZoomRate=function(t){this._defaultZoomRate=t},li.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},li.prototype.isEnabled=function(){return!!this._enabled},li.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},li.prototype.isZooming=function(){return!!this._zooming},li.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&amp;&amp;&quot;center&quot;===t.around)},li.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},li.prototype.wheel=function(e){if(this.isEnabled()){var r=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,n=t.browser.now(),i=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==r&amp;&amp;r%4.000244140625==0?this._type=&quot;wheel&quot;:0!==r&amp;&amp;Math.abs(r)&lt;4?this._type=&quot;trackpad&quot;:i&gt;400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*r)&lt;200?&quot;trackpad&quot;:&quot;wheel&quot;,this._timeout&amp;&amp;(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),e.shiftKey&amp;&amp;r&amp;&amp;(r/=4),this._type&amp;&amp;(this._lastWheelEvent=e,this._delta-=r,this._active||this._start(e)),e.preventDefault()}},li.prototype._onTimeout=function(t){this._type=&quot;wheel&quot;,this._delta-=this._lastValue,this._active||this._start(t)},li.prototype._start=function(e){if(this._delta){this._frameId&amp;&amp;(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&amp;&amp;(clearTimeout(this._finishTimeout),delete this._finishTimeout);var n=r.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(n)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},li.prototype.renderFrame=function(){return this._onScrollFrame()},li.prototype._onScrollFrame=function(){var e=this;if(this._frameId&amp;&amp;(this._frameId=null,this.isActive())){var r=this._map.transform;if(0!==this._delta){var n=&quot;wheel&quot;===this._type&amp;&amp;Math.abs(this._delta)&gt;4.000244140625?this._wheelZoomRate:this._defaultZoomRate,i=2/(1+Math.exp(-Math.abs(this._delta*n)));this._delta&lt;0&amp;&amp;0!==i&amp;&amp;(i=1/i);var a=&quot;number&quot;==typeof this._targetZoom?r.zoomScale(this._targetZoom):r.scale;this._targetZoom=Math.min(r.maxZoom,Math.max(r.minZoom,r.scaleZoom(a*i))),&quot;wheel&quot;===this._type&amp;&amp;(this._startZoom=r.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var o,s=&quot;number&quot;==typeof this._targetZoom?this._targetZoom:r.zoom,l=this._startZoom,c=this._easing,u=!1;if(&quot;wheel&quot;===this._type&amp;&amp;l&amp;&amp;c){var f=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),h=c(f);o=t.number(l,s,h),f&lt;1?this._frameId||(this._frameId=!0):u=!0}else o=s,u=!0;return this._active=!0,u&amp;&amp;(this._active=!1,this._finishTimeout=setTimeout((function(){e._zooming=!1,e._handler._triggerRenderFrame(),delete e._targetZoom,delete e._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!u,zoomDelta:o-r.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},li.prototype._smoothOutEasing=function(e){var r=t.ease;if(this._prevEase){var n=this._prevEase,i=(t.browser.now()-n.start)/n.duration,a=n.easing(i+.01)-n.easing(i),o=.27/Math.sqrt(a*a+1e-4)*.01,s=Math.sqrt(.0729-o*o);r=t.bezier(o,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:r},r},li.prototype.reset=function(){this._active=!1};var ci=function(t,e){this._clickZoom=t,this._tapZoom=e};ci.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},ci.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},ci.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&amp;&amp;this._tapZoom.isEnabled()},ci.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var ui=function(){this.reset()};ui.prototype.reset=function(){this._active=!1},ui.prototype.dblclick=function(t,e){return t.preventDefault(),{cameraAnimation:function(r){r.easeTo({duration:300,zoom:r.getZoom()+(t.shiftKey?-1:1),around:r.unproject(e)},{originalEvent:t})}}},ui.prototype.enable=function(){this._enabled=!0},ui.prototype.disable=function(){this._enabled=!1,this.reset()},ui.prototype.isEnabled=function(){return this._enabled},ui.prototype.isActive=function(){return this._active};var fi=function(){this._tap=new qn({numTouches:1,numTaps:1}),this.reset()};fi.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},fi.prototype.touchstart=function(t,e,r){this._swipePoint||(this._tapTime&amp;&amp;t.timeStamp-this._tapTime&gt;500&amp;&amp;this.reset(),this._tapTime?r.length&gt;0&amp;&amp;(this._swipePoint=e[0],this._swipeTouch=r[0].identifier):this._tap.touchstart(t,e,r))},fi.prototype.touchmove=function(t,e,r){if(this._tapTime){if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;var n=e[0],i=n.y-this._swipePoint.y;return this._swipePoint=n,t.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(t,e,r)},fi.prototype.touchend=function(t,e,r){this._tapTime?this._swipePoint&amp;&amp;0===r.length&amp;&amp;this.reset():this._tap.touchend(t,e,r)&amp;&amp;(this._tapTime=t.timeStamp)},fi.prototype.touchcancel=function(){this.reset()},fi.prototype.enable=function(){this._enabled=!0},fi.prototype.disable=function(){this._enabled=!1,this.reset()},fi.prototype.isEnabled=function(){return this._enabled},fi.prototype.isActive=function(){return this._active};var hi=function(t,e,r){this._el=t,this._mousePan=e,this._touchPan=r};hi.prototype.enable=function(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add(&quot;mapboxgl-touch-drag-pan&quot;)},hi.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove(&quot;mapboxgl-touch-drag-pan&quot;)},hi.prototype.isEnabled=function(){return this._mousePan.isEnabled()&amp;&amp;this._touchPan.isEnabled()},hi.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var pi=function(t,e,r){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=r};pi.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&amp;&amp;this._mousePitch.enable()},pi.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},pi.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&amp;&amp;(!this._pitchWithRotate||this._mousePitch.isEnabled())},pi.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var di=function(t,e,r,n){this._el=t,this._touchZoom=e,this._touchRotate=r,this._tapDragZoom=n,this._rotationDisabled=!1,this._enabled=!0};di.prototype.enable=function(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add(&quot;mapboxgl-touch-zoom-rotate&quot;)},di.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove(&quot;mapboxgl-touch-zoom-rotate&quot;)},di.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&amp;&amp;(this._rotationDisabled||this._touchRotate.isEnabled())&amp;&amp;this._tapDragZoom.isEnabled()},di.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},di.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},di.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&amp;&amp;this._touchRotate.enable()};var mi=function(t){return t.zoom||t.drag||t.pitch||t.rotate},gi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),e.prototype=Object.create(t&amp;&amp;t.prototype),e.prototype.constructor=e,e}(t.Event);function vi(t){return t.panDelta&amp;&amp;t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var yi=function(e,n){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new On(e),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(n),t.bindAll([&quot;handleEvent&quot;,&quot;handleWindowEvent&quot;],this);var i=this._el;this._listeners=[[i,&quot;touchstart&quot;,{passive:!1}],[i,&quot;touchmove&quot;,{passive:!1}],[i,&quot;touchend&quot;,void 0],[i,&quot;touchcancel&quot;,void 0],[i,&quot;mousedown&quot;,void 0],[i,&quot;mousemove&quot;,void 0],[i,&quot;mouseup&quot;,void 0],[t.window.document,&quot;mousemove&quot;,{capture:!0}],[t.window.document,&quot;mouseup&quot;,void 0],[i,&quot;mouseover&quot;,void 0],[i,&quot;mouseout&quot;,void 0],[i,&quot;dblclick&quot;,void 0],[i,&quot;click&quot;,void 0],[i,&quot;keydown&quot;,{capture:!1}],[i,&quot;keyup&quot;,void 0],[i,&quot;wheel&quot;,{passive:!1}],[i,&quot;contextmenu&quot;,void 0],[t.window,&quot;blur&quot;,void 0]];for(var a=0,o=this._listeners;a&lt;o.length;a+=1){var s=o[a],l=s[0],c=s[1],u=s[2];r.addEventListener(l,c,l===t.window.document?this.handleWindowEvent:this.handleEvent,u)}};yi.prototype.destroy=function(){for(var e=0,n=this._listeners;e&lt;n.length;e+=1){var i=n[e],a=i[0],o=i[1],s=i[2];r.removeEventListener(a,o,a===t.window.document?this.handleWindowEvent:this.handleEvent,s)}},yi.prototype._addDefaultHandlers=function(t){var e=this._map,r=e.getCanvasContainer();this._add(&quot;mapEvent&quot;,new Nn(e,t));var n=e.boxZoom=new Un(e,t);this._add(&quot;boxZoom&quot;,n);var i=new Gn,a=new ui;e.doubleClickZoom=new ci(a,i),this._add(&quot;tapZoom&quot;,i),this._add(&quot;clickZoom&quot;,a);var o=new fi;this._add(&quot;tapDragZoom&quot;,o);var s=e.touchPitch=new ii;this._add(&quot;touchPitch&quot;,s);var l=new Xn(t),c=new Zn(t);e.dragRotate=new pi(t,l,c),this._add(&quot;mouseRotate&quot;,l,[&quot;mousePitch&quot;]),this._add(&quot;mousePitch&quot;,c,[&quot;mouseRotate&quot;]);var u=new Wn(t),f=new Jn(t);e.dragPan=new hi(r,u,f),this._add(&quot;mousePan&quot;,u),this._add(&quot;touchPan&quot;,f,[&quot;touchZoom&quot;,&quot;touchRotate&quot;]);var h=new ri,p=new ti;e.touchZoomRotate=new di(r,p,h,o),this._add(&quot;touchRotate&quot;,h,[&quot;touchPan&quot;,&quot;touchZoom&quot;]),this._add(&quot;touchZoom&quot;,p,[&quot;touchPan&quot;,&quot;touchRotate&quot;]);var d=e.scrollZoom=new li(e,this);this._add(&quot;scrollZoom&quot;,d,[&quot;mousePan&quot;]);var m=e.keyboard=new oi;this._add(&quot;keyboard&quot;,m),this._add(&quot;blockableMapEvent&quot;,new jn(e));for(var g=0,v=[&quot;boxZoom&quot;,&quot;doubleClickZoom&quot;,&quot;tapDragZoom&quot;,&quot;touchPitch&quot;,&quot;dragRotate&quot;,&quot;dragPan&quot;,&quot;touchZoomRotate&quot;,&quot;scrollZoom&quot;,&quot;keyboard&quot;];g&lt;v.length;g+=1){var y=v[g];t.interactive&amp;&amp;t[y]&amp;&amp;e[y].enable(t[y])}},yi.prototype._add=function(t,e,r){this._handlers.push({handlerName:t,handler:e,allowed:r}),this._handlersById[t]=e},yi.prototype.stop=function(){if(!this._updatingCamera){for(var t=0,e=this._handlers;t&lt;e.length;t+=1){e[t].handler.reset()}this._inertia.clear(),this._fireEvents({},{}),this._changes=[]}},yi.prototype.isActive=function(){for(var t=0,e=this._handlers;t&lt;e.length;t+=1){if(e[t].handler.isActive())return!0}return!1},yi.prototype.isZooming=function(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()},yi.prototype.isRotating=function(){return!!this._eventsInProgress.rotate},yi.prototype.isMoving=function(){return Boolean(mi(this._eventsInProgress))||this.isZooming()},yi.prototype._blockedByActive=function(t,e,r){for(var n in t)if(n!==r&amp;&amp;(!e||e.indexOf(n)&lt;0))return!0;return!1},yi.prototype.handleWindowEvent=function(t){this.handleEvent(t,t.type+&quot;Window&quot;)},yi.prototype._getMapTouches=function(t){for(var e=[],r=0,n=t;r&lt;n.length;r+=1){var i=n[r],a=i.target;this._el.contains(a)&amp;&amp;e.push(i)}return e},yi.prototype.handleEvent=function(t,e){if(&quot;blur&quot;!==t.type){this._updatingCamera=!0;for(var n=&quot;renderFrame&quot;===t.type?void 0:t,i={needsRenderFrame:!1},a={},o={},s=t.touches?this._getMapTouches(t.touches):void 0,l=s?r.touchPos(this._el,s):r.mousePos(this._el,t),c=0,u=this._handlers;c&lt;u.length;c+=1){var f=u[c],h=f.handlerName,p=f.handler,d=f.allowed;if(p.isEnabled()){var m=void 0;this._blockedByActive(o,d,h)?p.reset():p[e||t.type]&amp;&amp;(m=p[e||t.type](t,l,s),this.mergeHandlerResult(i,a,m,h,n),m&amp;&amp;m.needsRenderFrame&amp;&amp;this._triggerRenderFrame()),(m||p.isActive())&amp;&amp;(o[h]=p)}}var g={};for(var v in this._previousActiveHandlers)o[v]||(g[v]=n);this._previousActiveHandlers=o,(Object.keys(g).length||vi(i))&amp;&amp;(this._changes.push([i,a,g]),this._triggerRenderFrame()),(Object.keys(o).length||vi(i))&amp;&amp;this._map._stop(!0),this._updatingCamera=!1;var y=i.cameraAnimation;y&amp;&amp;(this._inertia.clear(),this._fireEvents({},{}),this._changes=[],y(this._map))}else this.stop()},yi.prototype.mergeHandlerResult=function(e,r,n,i,a){if(n){t.extend(e,n);var o={handlerName:i,originalEvent:n.originalEvent||a};void 0!==n.zoomDelta&amp;&amp;(r.zoom=o),void 0!==n.panDelta&amp;&amp;(r.drag=o),void 0!==n.pitchDelta&amp;&amp;(r.pitch=o),void 0!==n.bearingDelta&amp;&amp;(r.rotate=o)}},yi.prototype._applyChanges=function(){for(var e={},r={},n={},i=0,a=this._changes;i&lt;a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=o[2];s.panDelta&amp;&amp;(e.panDelta=(e.panDelta||new t.Point(0,0))._add(s.panDelta)),s.zoomDelta&amp;&amp;(e.zoomDelta=(e.zoomDelta||0)+s.zoomDelta),s.bearingDelta&amp;&amp;(e.bearingDelta=(e.bearingDelta||0)+s.bearingDelta),s.pitchDelta&amp;&amp;(e.pitchDelta=(e.pitchDelta||0)+s.pitchDelta),void 0!==s.around&amp;&amp;(e.around=s.around),void 0!==s.pinchAround&amp;&amp;(e.pinchAround=s.pinchAround),s.noInertia&amp;&amp;(e.noInertia=s.noInertia),t.extend(r,l),t.extend(n,c)}this._updateMapTransform(e,r,n),this._changes=[]},yi.prototype._updateMapTransform=function(t,e,r){var n=this._map,i=n.transform;if(!vi(t))return this._fireEvents(e,r);var a=t.panDelta,o=t.zoomDelta,s=t.bearingDelta,l=t.pitchDelta,c=t.around,u=t.pinchAround;void 0!==u&amp;&amp;(c=u),n._stop(!0),c=c||n.transform.centerPoint;var f=i.pointLocation(a?c.sub(a):c);s&amp;&amp;(i.bearing+=s),l&amp;&amp;(i.pitch+=l),o&amp;&amp;(i.zoom+=o),i.setLocationAtPoint(f,c),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(e,r)},yi.prototype._fireEvents=function(e,r){var n=this,i=mi(this._eventsInProgress),a=mi(e),o={};for(var s in e){var l=e[s].originalEvent;this._eventsInProgress[s]||(o[s+&quot;start&quot;]=l),this._eventsInProgress[s]=e[s]}for(var c in!i&amp;&amp;a&amp;&amp;this._fireEvent(&quot;movestart&quot;,a.originalEvent),o)this._fireEvent(c,o[c]);for(var u in e.rotate&amp;&amp;(this._bearingChanged=!0),a&amp;&amp;this._fireEvent(&quot;move&quot;,a.originalEvent),e){var f=e[u].originalEvent;this._fireEvent(u,f)}var h,p={};for(var d in this._eventsInProgress){var m=this._eventsInProgress[d],g=m.handlerName,v=m.originalEvent;this._handlersById[g].isActive()||(delete this._eventsInProgress[d],h=r[g]||v,p[d+&quot;end&quot;]=h)}for(var y in p)this._fireEvent(y,p[y]);var x=mi(this._eventsInProgress);if((i||a)&amp;&amp;!x){this._updatingCamera=!0;var b=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),_=function(t){return 0!==t&amp;&amp;-n._bearingSnap&lt;t&amp;&amp;t&lt;n._bearingSnap};b?(_(b.bearing||this._map.getBearing())&amp;&amp;(b.bearing=0),this._map.easeTo(b,{originalEvent:h})):(this._map.fire(new t.Event(&quot;moveend&quot;,{originalEvent:h})),_(this._map.getBearing())&amp;&amp;this._map.resetNorth()),this._bearingChanged=!1,this._updatingCamera=!1}},yi.prototype._fireEvent=function(e,r){this._map.fire(new t.Event(e,r?{originalEvent:r}:{}))},yi.prototype._triggerRenderFrame=function(){var t=this;void 0===this._frameId&amp;&amp;(this._frameId=this._map._requestRenderFrame((function(e){delete t._frameId,t.handleEvent(new gi(&quot;renderFrame&quot;,{timeStamp:e})),t._applyChanges()})))};var xi=function(e){function r(r,n){e.call(this),this._moving=!1,this._zooming=!1,this.transform=r,this._bearingSnap=n.bearingSnap,t.bindAll([&quot;_renderFrameCallback&quot;],this)}return e&amp;&amp;(r.__proto__=e),r.prototype=Object.create(e&amp;&amp;e.prototype),r.prototype.constructor=r,r.prototype.getCenter=function(){return new t.LngLat(this.transform.center.lng,this.transform.center.lat)},r.prototype.setCenter=function(t,e){return this.jumpTo({center:t},e)},r.prototype.panBy=function(e,r,n){return e=t.Point.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},r),n)},r.prototype.panTo=function(e,r,n){return this.easeTo(t.extend({center:e},r),n)},r.prototype.getZoom=function(){return this.transform.zoom},r.prototype.setZoom=function(t,e){return this.jumpTo({zoom:t},e),this},r.prototype.zoomTo=function(e,r,n){return this.easeTo(t.extend({zoom:e},r),n)},r.prototype.zoomIn=function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},r.prototype.zoomOut=function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},r.prototype.getBearing=function(){return this.transform.bearing},r.prototype.setBearing=function(t,e){return this.jumpTo({bearing:t},e),this},r.prototype.getPadding=function(){return this.transform.padding},r.prototype.setPadding=function(t,e){return this.jumpTo({padding:t},e),this},r.prototype.rotateTo=function(e,r,n){return this.easeTo(t.extend({bearing:e},r),n)},r.prototype.resetNorth=function(e,r){return this.rotateTo(0,t.extend({duration:1e3},e),r),this},r.prototype.resetNorthPitch=function(e,r){return this.easeTo(t.extend({bearing:0,pitch:0,duration:1e3},e),r),this},r.prototype.snapToNorth=function(t,e){return Math.abs(this.getBearing())&lt;this._bearingSnap?this.resetNorth(t,e):this},r.prototype.getPitch=function(){return this.transform.pitch},r.prototype.setPitch=function(t,e){return this.jumpTo({pitch:t},e),this},r.prototype.cameraForBounds=function(e,r){return e=t.LngLatBounds.convert(e),this._cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),0,r)},r.prototype._cameraForBoxAndBearing=function(e,r,n,i){var a={top:0,bottom:0,right:0,left:0};if(&quot;number&quot;==typeof(i=t.extend({padding:a,offset:[0,0],maxZoom:this.transform.maxZoom},i)).padding){var o=i.padding;i.padding={top:o,bottom:o,right:o,left:o}}i.padding=t.extend(a,i.padding);var s=this.transform,l=s.padding,c=s.project(t.LngLat.convert(e)),u=s.project(t.LngLat.convert(r)),f=c.rotate(-n*Math.PI/180),h=u.rotate(-n*Math.PI/180),p=new t.Point(Math.max(f.x,h.x),Math.max(f.y,h.y)),d=new t.Point(Math.min(f.x,h.x),Math.min(f.y,h.y)),m=p.sub(d),g=(s.width-(l.left+l.right+i.padding.left+i.padding.right))/m.x,v=(s.height-(l.top+l.bottom+i.padding.top+i.padding.bottom))/m.y;if(!(v&lt;0||g&lt;0)){var y=Math.min(s.scaleZoom(s.scale*Math.min(g,v)),i.maxZoom),x=t.Point.convert(i.offset),b=(i.padding.left-i.padding.right)/2,_=(i.padding.top-i.padding.bottom)/2,w=new t.Point(x.x+b,x.y+_).mult(s.scale/s.zoomScale(y));return{center:s.unproject(c.add(u).div(2).sub(w)),zoom:y,bearing:n}}t.warnOnce(&quot;Map cannot fit within canvas with the given bounds, padding, and/or offset.&quot;)},r.prototype.fitBounds=function(t,e,r){return this._fitInternal(this.cameraForBounds(t,e),e,r)},r.prototype.fitScreenCoordinates=function(e,r,n,i,a){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(t.Point.convert(e)),this.transform.pointLocation(t.Point.convert(r)),n,i),i,a)},r.prototype._fitInternal=function(e,r,n){return e?(delete(r=t.extend(e,r)).padding,r.linear?this.easeTo(r,n):this.flyTo(r,n)):this},r.prototype.jumpTo=function(e,r){this.stop();var n=this.transform,i=!1,a=!1,o=!1;return&quot;zoom&quot;in e&amp;&amp;n.zoom!==+e.zoom&amp;&amp;(i=!0,n.zoom=+e.zoom),void 0!==e.center&amp;&amp;(n.center=t.LngLat.convert(e.center)),&quot;bearing&quot;in e&amp;&amp;n.bearing!==+e.bearing&amp;&amp;(a=!0,n.bearing=+e.bearing),&quot;pitch&quot;in e&amp;&amp;n.pitch!==+e.pitch&amp;&amp;(o=!0,n.pitch=+e.pitch),null==e.padding||n.isPaddingEqual(e.padding)||(n.padding=e.padding),this.fire(new t.Event(&quot;movestart&quot;,r)).fire(new t.Event(&quot;move&quot;,r)),i&amp;&amp;this.fire(new t.Event(&quot;zoomstart&quot;,r)).fire(new t.Event(&quot;zoom&quot;,r)).fire(new t.Event(&quot;zoomend&quot;,r)),a&amp;&amp;this.fire(new t.Event(&quot;rotatestart&quot;,r)).fire(new t.Event(&quot;rotate&quot;,r)).fire(new t.Event(&quot;rotateend&quot;,r)),o&amp;&amp;this.fire(new t.Event(&quot;pitchstart&quot;,r)).fire(new t.Event(&quot;pitch&quot;,r)).fire(new t.Event(&quot;pitchend&quot;,r)),this.fire(new t.Event(&quot;moveend&quot;,r))},r.prototype.easeTo=function(e,r){var n=this;this._stop(!1,e.easeId),(!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate||!e.essential&amp;&amp;t.browser.prefersReducedMotion)&amp;&amp;(e.duration=0);var i=this.transform,a=this.getZoom(),o=this.getBearing(),s=this.getPitch(),l=this.getPadding(),c=&quot;zoom&quot;in e?+e.zoom:a,u=&quot;bearing&quot;in e?this._normalizeBearing(e.bearing,o):o,f=&quot;pitch&quot;in e?+e.pitch:s,h=&quot;padding&quot;in e?e.padding:i.padding,p=t.Point.convert(e.offset),d=i.centerPoint.add(p),m=i.pointLocation(d),g=t.LngLat.convert(e.center||m);this._normalizeCenter(g);var v,y,x=i.project(m),b=i.project(g).sub(x),_=i.zoomScale(c-a);e.around&amp;&amp;(v=t.LngLat.convert(e.around),y=i.locationPoint(v));var w={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||c!==a,this._rotating=this._rotating||o!==u,this._pitching=this._pitching||f!==s,this._padding=!i.isPaddingEqual(h),this._easeId=e.easeId,this._prepareEase(r,e.noMoveStart,w),clearTimeout(this._easeEndTimeoutID),this._ease((function(e){if(n._zooming&amp;&amp;(i.zoom=t.number(a,c,e)),n._rotating&amp;&amp;(i.bearing=t.number(o,u,e)),n._pitching&amp;&amp;(i.pitch=t.number(s,f,e)),n._padding&amp;&amp;(i.interpolatePadding(l,h,e),d=i.centerPoint.add(p)),v)i.setLocationAtPoint(v,y);else{var m=i.zoomScale(i.zoom-a),g=c&gt;a?Math.min(2,_):Math.max(.5,_),w=Math.pow(g,1-e),T=i.unproject(x.add(b.mult(e*w)).mult(m));i.setLocationAtPoint(i.renderWorldCopies?T.wrap():T,d)}n._fireMoveEvents(r)}),(function(t){n._afterEase(r,t)}),e),this},r.prototype._prepareEase=function(e,r,n){void 0===n&amp;&amp;(n={}),this._moving=!0,r||n.moving||this.fire(new t.Event(&quot;movestart&quot;,e)),this._zooming&amp;&amp;!n.zooming&amp;&amp;this.fire(new t.Event(&quot;zoomstart&quot;,e)),this._rotating&amp;&amp;!n.rotating&amp;&amp;this.fire(new t.Event(&quot;rotatestart&quot;,e)),this._pitching&amp;&amp;!n.pitching&amp;&amp;this.fire(new t.Event(&quot;pitchstart&quot;,e))},r.prototype._fireMoveEvents=function(e){this.fire(new t.Event(&quot;move&quot;,e)),this._zooming&amp;&amp;this.fire(new t.Event(&quot;zoom&quot;,e)),this._rotating&amp;&amp;this.fire(new t.Event(&quot;rotate&quot;,e)),this._pitching&amp;&amp;this.fire(new t.Event(&quot;pitch&quot;,e))},r.prototype._afterEase=function(e,r){if(!this._easeId||!r||this._easeId!==r){delete this._easeId;var n=this._zooming,i=this._rotating,a=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&amp;&amp;this.fire(new t.Event(&quot;zoomend&quot;,e)),i&amp;&amp;this.fire(new t.Event(&quot;rotateend&quot;,e)),a&amp;&amp;this.fire(new t.Event(&quot;pitchend&quot;,e)),this.fire(new t.Event(&quot;moveend&quot;,e))}},r.prototype.flyTo=function(e,r){var n=this;if(!e.essential&amp;&amp;t.browser.prefersReducedMotion){var i=t.pick(e,[&quot;center&quot;,&quot;zoom&quot;,&quot;bearing&quot;,&quot;pitch&quot;,&quot;around&quot;]);return this.jumpTo(i,r)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var a=this.transform,o=this.getZoom(),s=this.getBearing(),l=this.getPitch(),c=this.getPadding(),u=&quot;zoom&quot;in e?t.clamp(+e.zoom,a.minZoom,a.maxZoom):o,f=&quot;bearing&quot;in e?this._normalizeBearing(e.bearing,s):s,h=&quot;pitch&quot;in e?+e.pitch:l,p=&quot;padding&quot;in e?e.padding:a.padding,d=a.zoomScale(u-o),m=t.Point.convert(e.offset),g=a.centerPoint.add(m),v=a.pointLocation(g),y=t.LngLat.convert(e.center||v);this._normalizeCenter(y);var x=a.project(v),b=a.project(y).sub(x),_=e.curve,w=Math.max(a.width,a.height),T=w/d,k=b.mag();if(&quot;minZoom&quot;in e){var A=t.clamp(Math.min(e.minZoom,o,u),a.minZoom,a.maxZoom),M=w/a.zoomScale(A-o);_=Math.sqrt(M/k*2)}var S=_*_;function E(t){var e=(T*T-w*w+(t?-1:1)*S*S*k*k)/(2*(t?T:w)*S*k);return Math.log(Math.sqrt(e*e+1)-e)}function L(t){return(Math.exp(t)-Math.exp(-t))/2}function C(t){return(Math.exp(t)+Math.exp(-t))/2}var P=E(0),I=function(t){return C(P)/C(P+_*t)},O=function(t){return w*((C(P)*(L(e=P+_*t)/C(e))-L(P))/S)/k;var e},z=(E(1)-P)/_;if(Math.abs(k)&lt;1e-6||!isFinite(z)){if(Math.abs(w-T)&lt;1e-6)return this.easeTo(e,r);var D=T&lt;w?-1:1;z=Math.abs(Math.log(T/w))/_,O=function(){return 0},I=function(t){return Math.exp(D*_*t)}}if(&quot;duration&quot;in e)e.duration=+e.duration;else{var R=&quot;screenSpeed&quot;in e?+e.screenSpeed/_:+e.speed;e.duration=1e3*z/R}return e.maxDuration&amp;&amp;e.duration&gt;e.maxDuration&amp;&amp;(e.duration=0),this._zooming=!0,this._rotating=s!==f,this._pitching=h!==l,this._padding=!a.isPaddingEqual(p),this._prepareEase(r,!1),this._ease((function(e){var i=e*z,d=1/I(i);a.zoom=1===e?u:o+a.scaleZoom(d),n._rotating&amp;&amp;(a.bearing=t.number(s,f,e)),n._pitching&amp;&amp;(a.pitch=t.number(l,h,e)),n._padding&amp;&amp;(a.interpolatePadding(c,p,e),g=a.centerPoint.add(m));var v=1===e?y:a.unproject(x.add(b.mult(O(i))).mult(d));a.setLocationAtPoint(a.renderWorldCopies?v.wrap():v,g),n._fireMoveEvents(r)}),(function(){return n._afterEase(r)}),e),this},r.prototype.isEasing=function(){return!!this._easeFrameId},r.prototype.stop=function(){return this._stop()},r.prototype._stop=function(t,e){if(this._easeFrameId&amp;&amp;(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,e)}if(!t){var n=this.handlers;n&amp;&amp;n.stop()}return this},r.prototype._ease=function(e,r,n){!1===n.animate||0===n.duration?(e(1),r()):(this._easeStart=t.browser.now(),this._easeOptions=n,this._onEaseFrame=e,this._onEaseEnd=r,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},r.prototype._renderFrameCallback=function(){var e=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e&lt;1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},r.prototype._normalizeBearing=function(e,r){e=t.wrap(e,-180,180);var n=Math.abs(e-r);return Math.abs(e-360-r)&lt;n&amp;&amp;(e-=360),Math.abs(e+360-r)&lt;n&amp;&amp;(e+=360),e},r.prototype._normalizeCenter=function(t){var e=this.transform;if(e.renderWorldCopies&amp;&amp;!e.lngRange){var r=t.lng-e.center.lng;t.lng+=r&gt;180?-360:r&lt;-180?360:0}},r}(t.Evented),bi=function(e){void 0===e&amp;&amp;(e={}),this.options=e,t.bindAll([&quot;_updateEditLink&quot;,&quot;_updateData&quot;,&quot;_updateCompact&quot;],this)};bi.prototype.getDefaultPosition=function(){return&quot;bottom-right&quot;},bi.prototype.onAdd=function(t){var e=this.options&amp;&amp;this.options.compact;return this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-attrib&quot;),this._innerContainer=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl-attrib-inner&quot;,this._container),e&amp;&amp;this._container.classList.add(&quot;mapboxgl-compact&quot;),this._updateAttributions(),this._updateEditLink(),this._map.on(&quot;styledata&quot;,this._updateData),this._map.on(&quot;sourcedata&quot;,this._updateData),this._map.on(&quot;moveend&quot;,this._updateEditLink),void 0===e&amp;&amp;(this._map.on(&quot;resize&quot;,this._updateCompact),this._updateCompact()),this._container},bi.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;styledata&quot;,this._updateData),this._map.off(&quot;sourcedata&quot;,this._updateData),this._map.off(&quot;moveend&quot;,this._updateEditLink),this._map.off(&quot;resize&quot;,this._updateCompact),this._map=void 0,this._attribHTML=void 0},bi.prototype._updateEditLink=function(){var e=this._editLink;e||(e=this._editLink=this._container.querySelector(&quot;.mapbox-improve-map&quot;));var r=[{key:&quot;owner&quot;,value:this.styleOwner},{key:&quot;id&quot;,value:this.styleId},{key:&quot;access_token&quot;,value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if(e){var n=r.reduce((function(t,e,n){return e.value&amp;&amp;(t+=e.key+&quot;=&quot;+e.value+(n&lt;r.length-1?&quot;&amp;&quot;:&quot;&quot;)),t}),&quot;?&quot;);e.href=t.config.FEEDBACK_URL+&quot;/&quot;+n+(this._map._hash?this._map._hash.getHashString(!0):&quot;&quot;),e.rel=&quot;noopener nofollow&quot;}},bi.prototype._updateData=function(t){!t||&quot;metadata&quot;!==t.sourceDataType&amp;&amp;&quot;style&quot;!==t.dataType||(this._updateAttributions(),this._updateEditLink())},bi.prototype._updateAttributions=function(){if(this._map.style){var t=[];if(this.options.customAttribution&amp;&amp;(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map((function(t){return&quot;string&quot;!=typeof t?&quot;&quot;:t}))):&quot;string&quot;==typeof this.options.customAttribution&amp;&amp;t.push(this.options.customAttribution)),this._map.style.stylesheet){var e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}var r=this._map.style.sourceCaches;for(var n in r){var i=r[n];if(i.used){var a=i.getSource();a.attribution&amp;&amp;t.indexOf(a.attribution)&lt;0&amp;&amp;t.push(a.attribution)}}t.sort((function(t,e){return t.length-e.length}));var o=(t=t.filter((function(e,r){for(var n=r+1;n&lt;t.length;n++)if(t[n].indexOf(e)&gt;=0)return!1;return!0}))).join(&quot; | &quot;);o!==this._attribHTML&amp;&amp;(this._attribHTML=o,t.length?(this._innerContainer.innerHTML=o,this._container.classList.remove(&quot;mapboxgl-attrib-empty&quot;)):this._container.classList.add(&quot;mapboxgl-attrib-empty&quot;),this._editLink=null)}},bi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth&lt;=640?this._container.classList.add(&quot;mapboxgl-compact&quot;):this._container.classList.remove(&quot;mapboxgl-compact&quot;)};var _i=function(){t.bindAll([&quot;_updateLogo&quot;],this),t.bindAll([&quot;_updateCompact&quot;],this)};_i.prototype.onAdd=function(t){this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl&quot;);var e=r.create(&quot;a&quot;,&quot;mapboxgl-ctrl-logo&quot;);return e.target=&quot;_blank&quot;,e.rel=&quot;noopener nofollow&quot;,e.href=&quot;https://www.mapbox.com/&quot;,e.setAttribute(&quot;aria-label&quot;,this._map._getUIString(&quot;LogoControl.Title&quot;)),e.setAttribute(&quot;rel&quot;,&quot;noopener nofollow&quot;),this._container.appendChild(e),this._container.style.display=&quot;none&quot;,this._map.on(&quot;sourcedata&quot;,this._updateLogo),this._updateLogo(),this._map.on(&quot;resize&quot;,this._updateCompact),this._updateCompact(),this._container},_i.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;sourcedata&quot;,this._updateLogo),this._map.off(&quot;resize&quot;,this._updateCompact)},_i.prototype.getDefaultPosition=function(){return&quot;bottom-left&quot;},_i.prototype._updateLogo=function(t){t&amp;&amp;&quot;metadata&quot;!==t.sourceDataType||(this._container.style.display=this._logoRequired()?&quot;block&quot;:&quot;none&quot;)},_i.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t){if(t[e].getSource().mapbox_logo)return!0}return!1}},_i.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth&lt;250?e.classList.add(&quot;mapboxgl-compact&quot;):e.classList.remove(&quot;mapboxgl-compact&quot;)}};var wi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};wi.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},wi.prototype.remove=function(t){for(var e=this._currentlyRunning,r=0,n=e?this._queue.concat(e):this._queue;r&lt;n.length;r+=1){var i=n[r];if(i.id===t)return void(i.cancelled=!0)}},wi.prototype.run=function(t){void 0===t&amp;&amp;(t=0);var e=this._currentlyRunning=this._queue;this._queue=[];for(var r=0,n=e;r&lt;n.length;r+=1){var i=n[r];if(!i.cancelled&amp;&amp;(i.callback(t),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},wi.prototype.clear=function(){this._currentlyRunning&amp;&amp;(this._cleared=!0),this._queue=[]};var Ti={&quot;FullscreenControl.Enter&quot;:&quot;Enter fullscreen&quot;,&quot;FullscreenControl.Exit&quot;:&quot;Exit fullscreen&quot;,&quot;GeolocateControl.FindMyLocation&quot;:&quot;Find my location&quot;,&quot;GeolocateControl.LocationNotAvailable&quot;:&quot;Location not available&quot;,&quot;LogoControl.Title&quot;:&quot;Mapbox logo&quot;,&quot;NavigationControl.ResetBearing&quot;:&quot;Reset bearing to north&quot;,&quot;NavigationControl.ZoomIn&quot;:&quot;Zoom in&quot;,&quot;NavigationControl.ZoomOut&quot;:&quot;Zoom out&quot;,&quot;ScaleControl.Feet&quot;:&quot;ft&quot;,&quot;ScaleControl.Meters&quot;:&quot;m&quot;,&quot;ScaleControl.Kilometers&quot;:&quot;km&quot;,&quot;ScaleControl.Miles&quot;:&quot;mi&quot;,&quot;ScaleControl.NauticalMiles&quot;:&quot;nm&quot;},ki=t.window.HTMLImageElement,Ai=t.window.HTMLElement,Mi=t.window.ImageBitmap,Si={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:&quot;sans-serif&quot;,transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Ei=function(n){function i(e){var r=this;if(null!=(e=t.extend({},Si,e)).minZoom&amp;&amp;null!=e.maxZoom&amp;&amp;e.minZoom&gt;e.maxZoom)throw new Error(&quot;maxZoom must be greater than or equal to minZoom&quot;);if(null!=e.minPitch&amp;&amp;null!=e.maxPitch&amp;&amp;e.minPitch&gt;e.maxPitch)throw new Error(&quot;maxPitch must be greater than or equal to minPitch&quot;);if(null!=e.minPitch&amp;&amp;e.minPitch&lt;0)throw new Error(&quot;minPitch must be greater than or equal to 0&quot;);if(null!=e.maxPitch&amp;&amp;e.maxPitch&gt;60)throw new Error(&quot;maxPitch must be less than or equal to 60&quot;);var i=new An(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies);if(n.call(this,i,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new wi,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},Ti,e.locale),this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken),&quot;string&quot;==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error(&quot;Container '&quot;+e.container+&quot;' not found.&quot;)}else{if(!(e.container instanceof Ai))throw new Error(&quot;Invalid type: 'container' must be a String or HTMLElement.&quot;);this._container=e.container}if(e.maxBounds&amp;&amp;this.setMaxBounds(e.maxBounds),t.bindAll([&quot;_onWindowOnline&quot;,&quot;_onWindowResize&quot;,&quot;_contextLost&quot;,&quot;_contextRestored&quot;],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error(&quot;Failed to initialize WebGL.&quot;);this.on(&quot;move&quot;,(function(){return r._update(!1)})),this.on(&quot;moveend&quot;,(function(){return r._update(!1)})),this.on(&quot;zoom&quot;,(function(){return r._update(!0)})),void 0!==t.window&amp;&amp;(t.window.addEventListener(&quot;online&quot;,this._onWindowOnline,!1),t.window.addEventListener(&quot;resize&quot;,this._onWindowResize,!1)),this.handlers=new yi(this,e);var a=&quot;string&quot;==typeof e.hash&amp;&amp;e.hash||void 0;this._hash=e.hash&amp;&amp;new Sn(a).addTo(this),this._hash&amp;&amp;this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&amp;&amp;(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&amp;&amp;this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&amp;&amp;this.addControl(new bi({customAttribution:e.customAttribution})),this.addControl(new _i,e.logoPosition),this.on(&quot;style.load&quot;,(function(){r.transform.unmodified&amp;&amp;r.jumpTo(r.style.stylesheet)})),this.on(&quot;data&quot;,(function(e){r._update(&quot;style&quot;===e.dataType),r.fire(new t.Event(e.dataType+&quot;data&quot;,e))})),this.on(&quot;dataloading&quot;,(function(e){r.fire(new t.Event(e.dataType+&quot;dataloading&quot;,e))}))}n&amp;&amp;(i.__proto__=n),i.prototype=Object.create(n&amp;&amp;n.prototype),i.prototype.constructor=i;var a={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return i.prototype._getMapId=function(){return this._mapId},i.prototype.addControl=function(e,r){if(void 0===r&amp;&amp;e.getDefaultPosition&amp;&amp;(r=e.getDefaultPosition()),void 0===r&amp;&amp;(r=&quot;top-right&quot;),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.&quot;)));var n=e.onAdd(this);this._controls.push(e);var i=this._controlPositions[r];return-1!==r.indexOf(&quot;bottom&quot;)?i.insertBefore(n,i.firstChild):i.appendChild(n),this},i.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.&quot;)));var r=this._controls.indexOf(e);return r&gt;-1&amp;&amp;this._controls.splice(r,1),e.onRemove(this),this},i.prototype.resize=function(e){var r=this._containerDimensions(),n=r[0],i=r[1];this._resizeCanvas(n,i),this.transform.resize(n,i),this.painter.resize(n,i);var a=!this._moving;return a&amp;&amp;(this.stop(),this.fire(new t.Event(&quot;movestart&quot;,e)).fire(new t.Event(&quot;move&quot;,e))),this.fire(new t.Event(&quot;resize&quot;,e)),a&amp;&amp;this.fire(new t.Event(&quot;moveend&quot;,e)),this},i.prototype.getBounds=function(){return this.transform.getBounds()},i.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},i.prototype.setMaxBounds=function(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()},i.prototype.setMinZoom=function(t){if((t=null==t?-2:t)&gt;=-2&amp;&amp;t&lt;=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()&lt;t&amp;&amp;this.setZoom(t),this;throw new Error(&quot;minZoom must be between -2 and the current maxZoom, inclusive&quot;)},i.prototype.getMinZoom=function(){return this.transform.minZoom},i.prototype.setMaxZoom=function(t){if((t=null==t?22:t)&gt;=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()&gt;t&amp;&amp;this.setZoom(t),this;throw new Error(&quot;maxZoom must be greater than the current minZoom&quot;)},i.prototype.getMaxZoom=function(){return this.transform.maxZoom},i.prototype.setMinPitch=function(t){if((t=null==t?0:t)&lt;0)throw new Error(&quot;minPitch must be greater than or equal to 0&quot;);if(t&gt;=0&amp;&amp;t&lt;=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()&lt;t&amp;&amp;this.setPitch(t),this;throw new Error(&quot;minPitch must be between 0 and the current maxPitch, inclusive&quot;)},i.prototype.getMinPitch=function(){return this.transform.minPitch},i.prototype.setMaxPitch=function(t){if((t=null==t?60:t)&gt;60)throw new Error(&quot;maxPitch must be less than or equal to 60&quot;);if(t&gt;=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()&gt;t&amp;&amp;this.setPitch(t),this;throw new Error(&quot;maxPitch must be greater than the current minPitch&quot;)},i.prototype.getMaxPitch=function(){return this.transform.maxPitch},i.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},i.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},i.prototype.project=function(e){return this.transform.locationPoint(t.LngLat.convert(e))},i.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},i.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},i.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},i.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},i.prototype._createDelegatedListener=function(t,e,r){var n,i=this;if(&quot;mouseenter&quot;===t||&quot;mouseover&quot;===t){var a=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){var o=i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[];o.length?a||(a=!0,r.call(i,new Rn(t,i,n.originalEvent,{features:o}))):a=!1},mouseout:function(){a=!1}}}}if(&quot;mouseleave&quot;===t||&quot;mouseout&quot;===t){var o=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){(i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[]).length?o=!0:o&amp;&amp;(o=!1,r.call(i,new Rn(t,i,n.originalEvent)))},mouseout:function(e){o&amp;&amp;(o=!1,r.call(i,new Rn(t,i,e.originalEvent)))}}}}return{layer:e,listener:r,delegates:(n={},n[t]=function(t){var n=i.getLayer(e)?i.queryRenderedFeatures(t.point,{layers:[e]}):[];n.length&amp;&amp;(t.features=n,r.call(i,t),delete t.features)},n)}},i.prototype.on=function(t,e,r){if(void 0===r)return n.prototype.on.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(i),i.delegates)this.on(a,i.delegates[a]);return this},i.prototype.once=function(t,e,r){if(void 0===r)return n.prototype.once.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in i.delegates)this.once(a,i.delegates[a]);return this},i.prototype.off=function(t,e,r){var i=this;if(void 0===r)return n.prototype.off.call(this,t,e);return this._delegatedListeners&amp;&amp;this._delegatedListeners[t]&amp;&amp;function(n){for(var a=n[t],o=0;o&lt;a.length;o++){var s=a[o];if(s.layer===e&amp;&amp;s.listener===r){for(var l in s.delegates)i.off(l,s.delegates[l]);return a.splice(o,1),i}}}(this._delegatedListeners),this},i.prototype.queryRenderedFeatures=function(e,r){if(!this.style)return[];var n;if(void 0!==r||void 0===e||e instanceof t.Point||Array.isArray(e)||(r=e,e=void 0),r=r||{},(e=e||[[0,0],[this.transform.width,this.transform.height]])instanceof t.Point||&quot;number&quot;==typeof e[0])n=[t.Point.convert(e)];else{var i=t.Point.convert(e[0]),a=t.Point.convert(e[1]);n=[i,new t.Point(a.x,i.y),a,new t.Point(i.x,a.y),i]}return this.style.queryRenderedFeatures(n,r,this.transform)},i.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},i.prototype.setStyle=function(e,r){return!1!==(r=t.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},r)).diff&amp;&amp;r.localIdeographFontFamily===this._localIdeographFontFamily&amp;&amp;this.style&amp;&amp;e?(this._diffStyle(e,r),this):(this._localIdeographFontFamily=r.localIdeographFontFamily,this._updateStyle(e,r))},i.prototype._getUIString=function(t){var e=this._locale[t];if(null==e)throw new Error(&quot;Missing UI string '&quot;+t+&quot;'&quot;);return e},i.prototype._updateStyle=function(t,e){return this.style&amp;&amp;(this.style.setEventedParent(null),this.style._remove()),t?(this.style=new qe(this,e||{}),this.style.setEventedParent(this,{style:this.style}),&quot;string&quot;==typeof t?this.style.loadURL(t):this.style.loadJSON(t),this):(delete this.style,this)},i.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new qe(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},i.prototype._diffStyle=function(e,r){var n=this;if(&quot;string&quot;==typeof e){var i=this._requestManager.normalizeStyleURL(e),a=this._requestManager.transformRequest(i,t.ResourceType.Style);t.getJSON(a,(function(e,i){e?n.fire(new t.ErrorEvent(e)):i&amp;&amp;n._updateDiff(i,r)}))}else&quot;object&quot;==typeof e&amp;&amp;this._updateDiff(e,r)},i.prototype._updateDiff=function(e,r){try{this.style.setState(e)&amp;&amp;this._update(!0)}catch(n){t.warnOnce(&quot;Unable to perform style diff: &quot;+(n.message||n.error||n)+&quot;.  Rebuilding the style from scratch.&quot;),this._updateStyle(e,r)}},i.prototype.getStyle=function(){if(this.style)return this.style.serialize()},i.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():t.warnOnce(&quot;There is no style added to the map.&quot;)},i.prototype.addSource=function(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)},i.prototype.isSourceLoaded=function(e){var r=this.style&amp;&amp;this.style.sourceCaches[e];if(void 0!==r)return r.loaded();this.fire(new t.ErrorEvent(new Error(&quot;There is no source with ID '&quot;+e+&quot;'&quot;)))},i.prototype.areTilesLoaded=function(){var t=this.style&amp;&amp;this.style.sourceCaches;for(var e in t){var r=t[e]._tiles;for(var n in r){var i=r[n];if(&quot;loaded&quot;!==i.state&amp;&amp;&quot;errored&quot;!==i.state)return!1}}return!0},i.prototype.addSourceType=function(t,e,r){return this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,r)},i.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0)},i.prototype.getSource=function(t){return this.style.getSource(t)},i.prototype.addImage=function(e,r,n){void 0===n&amp;&amp;(n={});var i=n.pixelRatio;void 0===i&amp;&amp;(i=1);var a=n.sdf;void 0===a&amp;&amp;(a=!1);var o=n.stretchX,s=n.stretchY,l=n.content;this._lazyInitEmptyStyle();if(r instanceof ki||Mi&amp;&amp;r instanceof Mi){var c=t.browser.getImageData(r),u=c.width,f=c.height,h=c.data;this.style.addImage(e,{data:new t.RGBAImage({width:u,height:f},h),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:0})}else{if(void 0===r.width||void 0===r.height)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`&quot;)));var p=r.width,d=r.height,m=r.data,g=r;this.style.addImage(e,{data:new t.RGBAImage({width:p,height:d},new Uint8Array(m)),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:0,userImage:g}),g.onAdd&amp;&amp;g.onAdd(this,e)}},i.prototype.updateImage=function(e,r){var n=this.style.getImage(e);if(!n)return this.fire(new t.ErrorEvent(new Error(&quot;The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.&quot;)));var i=r instanceof ki||Mi&amp;&amp;r instanceof Mi?t.browser.getImageData(r):r,a=i.width,o=i.height,s=i.data;if(void 0===a||void 0===o)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`&quot;)));if(a!==n.data.width||o!==n.data.height)return this.fire(new t.ErrorEvent(new Error(&quot;The width and height of the updated image must be that same as the previous version of the image&quot;)));var l=!(r instanceof ki||Mi&amp;&amp;r instanceof Mi);n.data.replace(s,l),this.style.updateImage(e,n)},i.prototype.hasImage=function(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error(&quot;Missing required image id&quot;))),!1)},i.prototype.removeImage=function(t){this.style.removeImage(t)},i.prototype.loadImage=function(e,r){t.getImage(this._requestManager.transformRequest(e,t.ResourceType.Image),r)},i.prototype.listImages=function(){return this.style.listImages()},i.prototype.addLayer=function(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)},i.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0)},i.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0)},i.prototype.getLayer=function(t){return this.style.getLayer(t)},i.prototype.setLayerZoomRange=function(t,e,r){return this.style.setLayerZoomRange(t,e,r),this._update(!0)},i.prototype.setFilter=function(t,e,r){return void 0===r&amp;&amp;(r={}),this.style.setFilter(t,e,r),this._update(!0)},i.prototype.getFilter=function(t){return this.style.getFilter(t)},i.prototype.setPaintProperty=function(t,e,r,n){return void 0===n&amp;&amp;(n={}),this.style.setPaintProperty(t,e,r,n),this._update(!0)},i.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},i.prototype.setLayoutProperty=function(t,e,r,n){return void 0===n&amp;&amp;(n={}),this.style.setLayoutProperty(t,e,r,n),this._update(!0)},i.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},i.prototype.setLight=function(t,e){return void 0===e&amp;&amp;(e={}),this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)},i.prototype.getLight=function(){return this.style.getLight()},i.prototype.setFeatureState=function(t,e){return this.style.setFeatureState(t,e),this._update()},i.prototype.removeFeatureState=function(t,e){return this.style.removeFeatureState(t,e),this._update()},i.prototype.getFeatureState=function(t){return this.style.getFeatureState(t)},i.prototype.getContainer=function(){return this._container},i.prototype.getCanvasContainer=function(){return this._canvasContainer},i.prototype.getCanvas=function(){return this._canvas},i.prototype._containerDimensions=function(){var t=0,e=0;return this._container&amp;&amp;(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]},i.prototype._detectMissingCSS=function(){&quot;rgb(250, 128, 114)&quot;!==t.window.getComputedStyle(this._missingCSSCanary).getPropertyValue(&quot;background-color&quot;)&amp;&amp;t.warnOnce(&quot;This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.&quot;)},i.prototype._setupContainer=function(){var t=this._container;t.classList.add(&quot;mapboxgl-map&quot;),(this._missingCSSCanary=r.create(&quot;div&quot;,&quot;mapboxgl-canary&quot;,t)).style.visibility=&quot;hidden&quot;,this._detectMissingCSS();var e=this._canvasContainer=r.create(&quot;div&quot;,&quot;mapboxgl-canvas-container&quot;,t);this._interactive&amp;&amp;e.classList.add(&quot;mapboxgl-interactive&quot;),this._canvas=r.create(&quot;canvas&quot;,&quot;mapboxgl-canvas&quot;,e),this._canvas.addEventListener(&quot;webglcontextlost&quot;,this._contextLost,!1),this._canvas.addEventListener(&quot;webglcontextrestored&quot;,this._contextRestored,!1),this._canvas.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),this._canvas.setAttribute(&quot;aria-label&quot;,&quot;Map&quot;);var n=this._containerDimensions();this._resizeCanvas(n[0],n[1]);var i=this._controlContainer=r.create(&quot;div&quot;,&quot;mapboxgl-control-container&quot;,t),a=this._controlPositions={};[&quot;top-left&quot;,&quot;top-right&quot;,&quot;bottom-left&quot;,&quot;bottom-right&quot;].forEach((function(t){a[t]=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl-&quot;+t,i)}))},i.prototype._resizeCanvas=function(e,r){var n=t.browser.devicePixelRatio||1;this._canvas.width=n*e,this._canvas.height=n*r,this._canvas.style.width=e+&quot;px&quot;,this._canvas.style.height=r+&quot;px&quot;},i.prototype._setupPainter=function(){var r=t.extend({},e.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),n=this._canvas.getContext(&quot;webgl&quot;,r)||this._canvas.getContext(&quot;experimental-webgl&quot;,r);n?(this.painter=new _n(n,this.transform),t.webpSupported.testSupport(n)):this.fire(new t.ErrorEvent(new Error(&quot;Failed to initialize WebGL&quot;)))},i.prototype._contextLost=function(e){e.preventDefault(),this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this.fire(new t.Event(&quot;webglcontextlost&quot;,{originalEvent:e}))},i.prototype._contextRestored=function(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event(&quot;webglcontextrestored&quot;,{originalEvent:e}))},i.prototype.loaded=function(){return!this._styleDirty&amp;&amp;!this._sourcesDirty&amp;&amp;!!this.style&amp;&amp;this.style.loaded()},i.prototype._update=function(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this},i.prototype._requestRenderFrame=function(t){return this._update(),this._renderTaskQueue.add(t)},i.prototype._cancelRenderFrame=function(t){this._renderTaskQueue.remove(t)},i.prototype._render=function(e){var r,n=this,i=0,a=this.painter.context.extTimerQuery;if(this.listens(&quot;gpu-timing-frame&quot;)&amp;&amp;(r=a.createQueryEXT(),a.beginQueryEXT(a.TIME_ELAPSED_EXT,r),i=t.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),!this._removed){var o=!1;if(this.style&amp;&amp;this._styleDirty){this._styleDirty=!1;var s=this.transform.zoom,l=t.browser.now();this.style.zoomHistory.update(s,l);var c=new t.EvaluationParameters(s,{now:l,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),u=c.crossFadingFactor();1===u&amp;&amp;u===this._crossFadingFactor||(o=!0,this._crossFadingFactor=u),this.style.update(c)}if(this.style&amp;&amp;this._sourcesDirty&amp;&amp;(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&amp;&amp;this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens(&quot;gpu-timing-layer&quot;)}),this.fire(new t.Event(&quot;render&quot;)),this.loaded()&amp;&amp;!this._loaded&amp;&amp;(this._loaded=!0,this.fire(new t.Event(&quot;load&quot;))),this.style&amp;&amp;(this.style.hasTransitions()||o)&amp;&amp;(this._styleDirty=!0),this.style&amp;&amp;!this._placementDirty&amp;&amp;this.style._releaseSymbolFadeTiles(),this.listens(&quot;gpu-timing-frame&quot;)){var f=t.browser.now()-i;a.endQueryEXT(a.TIME_ELAPSED_EXT,r),setTimeout((function(){var e=a.getQueryObjectEXT(r,a.QUERY_RESULT_EXT)/1e6;a.deleteQueryEXT(r),n.fire(new t.Event(&quot;gpu-timing-frame&quot;,{cpuTime:f,gpuTime:e}))}),50)}if(this.listens(&quot;gpu-timing-layer&quot;)){var h=this.painter.collectGpuTimers();setTimeout((function(){var e=n.painter.queryGpuTimers(h);n.fire(new t.Event(&quot;gpu-timing-layer&quot;,{layerTimes:e}))}),50)}return this._sourcesDirty||this._styleDirty||this._placementDirty||this._repaint?this.triggerRepaint():!this.isMoving()&amp;&amp;this.loaded()&amp;&amp;(this._fullyLoaded||(this._fullyLoaded=!0),this.fire(new t.Event(&quot;idle&quot;))),this}},i.prototype.remove=function(){this._hash&amp;&amp;this._hash.remove();for(var e=0,r=this._controls;e&lt;r.length;e+=1){r[e].onRemove(this)}this._controls=[],this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),void 0!==t.window&amp;&amp;(t.window.removeEventListener(&quot;resize&quot;,this._onWindowResize,!1),t.window.removeEventListener(&quot;online&quot;,this._onWindowOnline,!1));var n=this.painter.context.gl.getExtension(&quot;WEBGL_lose_context&quot;);n&amp;&amp;n.loseContext(),Li(this._canvasContainer),Li(this._controlContainer),Li(this._missingCSSCanary),this._container.classList.remove(&quot;mapboxgl-map&quot;),this._removed=!0,this.fire(new t.Event(&quot;remove&quot;))},i.prototype.triggerRepaint=function(){var e=this;this.style&amp;&amp;!this._frame&amp;&amp;(this._frame=t.browser.frame((function(t){e._frame=null,e._render(t)})))},i.prototype._onWindowOnline=function(){this._update()},i.prototype._onWindowResize=function(t){this._trackResize&amp;&amp;this.resize({originalEvent:t})._update()},a.showTileBoundaries.get=function(){return!!this._showTileBoundaries},a.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&amp;&amp;(this._showTileBoundaries=t,this._update())},a.showPadding.get=function(){return!!this._showPadding},a.showPadding.set=function(t){this._showPadding!==t&amp;&amp;(this._showPadding=t,this._update())},a.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},a.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&amp;&amp;(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())},a.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},a.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&amp;&amp;(this._showOverdrawInspector=t,this._update())},a.repaint.get=function(){return!!this._repaint},a.repaint.set=function(t){this._repaint!==t&amp;&amp;(this._repaint=t,this.triggerRepaint())},a.vertices.get=function(){return!!this._vertices},a.vertices.set=function(t){this._vertices=t,this._update()},i.prototype._setCacheLimits=function(e,r){t.setCacheLimits(e,r)},a.version.get=function(){return t.version},Object.defineProperties(i.prototype,a),i}(xi);function Li(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)}var Ci={showCompass:!0,showZoom:!0,visualizePitch:!1},Pi=function(e){var n=this;this.options=t.extend({},Ci,e),this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),this._container.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault()})),this.options.showZoom&amp;&amp;(t.bindAll([&quot;_setButtonTitle&quot;,&quot;_updateZoomButtons&quot;],this),this._zoomInButton=this._createButton(&quot;mapboxgl-ctrl-zoom-in&quot;,(function(t){return n._map.zoomIn({},{originalEvent:t})})),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._zoomInButton).setAttribute(&quot;aria-hidden&quot;,!0),this._zoomOutButton=this._createButton(&quot;mapboxgl-ctrl-zoom-out&quot;,(function(t){return n._map.zoomOut({},{originalEvent:t})})),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._zoomOutButton).setAttribute(&quot;aria-hidden&quot;,!0)),this.options.showCompass&amp;&amp;(t.bindAll([&quot;_rotateCompassArrow&quot;],this),this._compass=this._createButton(&quot;mapboxgl-ctrl-compass&quot;,(function(t){n.options.visualizePitch?n._map.resetNorthPitch({},{originalEvent:t}):n._map.resetNorth({},{originalEvent:t})})),this._compassIcon=r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._compass),this._compassIcon.setAttribute(&quot;aria-hidden&quot;,!0))};Pi.prototype._updateZoomButtons=function(){var t=this._map.getZoom();this._zoomInButton.disabled=t===this._map.getMaxZoom(),this._zoomOutButton.disabled=t===this._map.getMinZoom()},Pi.prototype._rotateCompassArrow=function(){var t=this.options.visualizePitch?&quot;scale(&quot;+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+&quot;) rotateX(&quot;+this._map.transform.pitch+&quot;deg) rotateZ(&quot;+this._map.transform.angle*(180/Math.PI)+&quot;deg)&quot;:&quot;rotate(&quot;+this._map.transform.angle*(180/Math.PI)+&quot;deg)&quot;;this._compassIcon.style.transform=t},Pi.prototype.onAdd=function(t){return this._map=t,this.options.showZoom&amp;&amp;(this._setButtonTitle(this._zoomInButton,&quot;ZoomIn&quot;),this._setButtonTitle(this._zoomOutButton,&quot;ZoomOut&quot;),this._map.on(&quot;zoom&quot;,this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&amp;&amp;(this._setButtonTitle(this._compass,&quot;ResetBearing&quot;),this.options.visualizePitch&amp;&amp;this._map.on(&quot;pitch&quot;,this._rotateCompassArrow),this._map.on(&quot;rotate&quot;,this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Ii(this._map,this._compass,this.options.visualizePitch)),this._container},Pi.prototype.onRemove=function(){r.remove(this._container),this.options.showZoom&amp;&amp;this._map.off(&quot;zoom&quot;,this._updateZoomButtons),this.options.showCompass&amp;&amp;(this.options.visualizePitch&amp;&amp;this._map.off(&quot;pitch&quot;,this._rotateCompassArrow),this._map.off(&quot;rotate&quot;,this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map},Pi.prototype._createButton=function(t,e){var n=r.create(&quot;button&quot;,t,this._container);return n.type=&quot;button&quot;,n.addEventListener(&quot;click&quot;,e),n},Pi.prototype._setButtonTitle=function(t,e){var r=this._map._getUIString(&quot;NavigationControl.&quot;+e);t.title=r,t.setAttribute(&quot;aria-label&quot;,r)};var Ii=function(e,n,i){void 0===i&amp;&amp;(i=!1),this._clickTolerance=10,this.element=n,this.mouseRotate=new Xn({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,i&amp;&amp;(this.mousePitch=new Zn({clickTolerance:e.dragRotate._mousePitch._clickTolerance})),t.bindAll([&quot;mousedown&quot;,&quot;mousemove&quot;,&quot;mouseup&quot;,&quot;touchstart&quot;,&quot;touchmove&quot;,&quot;touchend&quot;,&quot;reset&quot;],this),r.addEventListener(n,&quot;mousedown&quot;,this.mousedown),r.addEventListener(n,&quot;touchstart&quot;,this.touchstart,{passive:!1}),r.addEventListener(n,&quot;touchmove&quot;,this.touchmove),r.addEventListener(n,&quot;touchend&quot;,this.touchend),r.addEventListener(n,&quot;touchcancel&quot;,this.reset)};function Oi(e,r,n){if(e=new t.LngLat(e.lng,e.lat),r){var i=new t.LngLat(e.lng-360,e.lat),a=new t.LngLat(e.lng+360,e.lat),o=n.locationPoint(e).distSqr(r);n.locationPoint(i).distSqr(r)&lt;o?e=i:n.locationPoint(a).distSqr(r)&lt;o&amp;&amp;(e=a)}for(;Math.abs(e.lng-n.center.lng)&gt;180;){var s=n.locationPoint(e);if(s.x&gt;=0&amp;&amp;s.y&gt;=0&amp;&amp;s.x&lt;=n.width&amp;&amp;s.y&lt;=n.height)break;e.lng&gt;n.center.lng?e.lng-=360:e.lng+=360}return e}Ii.prototype.down=function(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&amp;&amp;this.mousePitch.mousedown(t,e),r.disableDrag()},Ii.prototype.move=function(t,e){var r=this.map,n=this.mouseRotate.mousemoveWindow(t,e);if(n&amp;&amp;n.bearingDelta&amp;&amp;r.setBearing(r.getBearing()+n.bearingDelta),this.mousePitch){var i=this.mousePitch.mousemoveWindow(t,e);i&amp;&amp;i.pitchDelta&amp;&amp;r.setPitch(r.getPitch()+i.pitchDelta)}},Ii.prototype.off=function(){var t=this.element;r.removeEventListener(t,&quot;mousedown&quot;,this.mousedown),r.removeEventListener(t,&quot;touchstart&quot;,this.touchstart,{passive:!1}),r.removeEventListener(t,&quot;touchmove&quot;,this.touchmove),r.removeEventListener(t,&quot;touchend&quot;,this.touchend),r.removeEventListener(t,&quot;touchcancel&quot;,this.reset),this.offTemp()},Ii.prototype.offTemp=function(){r.enableDrag(),r.removeEventListener(t.window,&quot;mousemove&quot;,this.mousemove),r.removeEventListener(t.window,&quot;mouseup&quot;,this.mouseup)},Ii.prototype.mousedown=function(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:function(){return e.preventDefault()}}),r.mousePos(this.element,e)),r.addEventListener(t.window,&quot;mousemove&quot;,this.mousemove),r.addEventListener(t.window,&quot;mouseup&quot;,this.mouseup)},Ii.prototype.mousemove=function(t){this.move(t,r.mousePos(this.element,t))},Ii.prototype.mouseup=function(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&amp;&amp;this.mousePitch.mouseupWindow(t),this.offTemp()},Ii.prototype.touchstart=function(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.down({type:&quot;mousedown&quot;,button:0,ctrlKey:!0,preventDefault:function(){return t.preventDefault()}},this._startPos))},Ii.prototype.touchmove=function(t){1!==t.targetTouches.length?this.reset():(this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:function(){return t.preventDefault()}},this._lastPos))},Ii.prototype.touchend=function(t){0===t.targetTouches.length&amp;&amp;this._startPos&amp;&amp;this._lastPos&amp;&amp;this._startPos.dist(this._lastPos)&lt;this._clickTolerance&amp;&amp;this.element.click(),this.reset()},Ii.prototype.reset=function(){this.mouseRotate.reset(),this.mousePitch&amp;&amp;this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()};var zi={center:&quot;translate(-50%,-50%)&quot;,top:&quot;translate(-50%,0)&quot;,&quot;top-left&quot;:&quot;translate(0,0)&quot;,&quot;top-right&quot;:&quot;translate(-100%,0)&quot;,bottom:&quot;translate(-50%,-100%)&quot;,&quot;bottom-left&quot;:&quot;translate(0,-100%)&quot;,&quot;bottom-right&quot;:&quot;translate(-100%,-100%)&quot;,left:&quot;translate(0,-50%)&quot;,right:&quot;translate(-100%,-50%)&quot;};function Di(t,e,r){var n=t.classList;for(var i in zi)n.remove(&quot;mapboxgl-&quot;+r+&quot;-anchor-&quot;+i);n.add(&quot;mapboxgl-&quot;+r+&quot;-anchor-&quot;+e)}var Ri,Fi=function(e){function n(n,i){var a=this;if(e.call(this),(n instanceof t.window.HTMLElement||i)&amp;&amp;(n=t.extend({element:n},i)),t.bindAll([&quot;_update&quot;,&quot;_onMove&quot;,&quot;_onUp&quot;,&quot;_addDragHandler&quot;,&quot;_onMapClick&quot;,&quot;_onKeyPress&quot;],this),this._anchor=n&amp;&amp;n.anchor||&quot;center&quot;,this._color=n&amp;&amp;n.color||&quot;#3FB1CE&quot;,this._draggable=n&amp;&amp;n.draggable||!1,this._state=&quot;inactive&quot;,this._rotation=n&amp;&amp;n.rotation||0,this._rotationAlignment=n&amp;&amp;n.rotationAlignment||&quot;auto&quot;,this._pitchAlignment=n&amp;&amp;n.pitchAlignment&amp;&amp;&quot;auto&quot;!==n.pitchAlignment?n.pitchAlignment:this._rotationAlignment,n&amp;&amp;n.element)this._element=n.element,this._offset=t.Point.convert(n&amp;&amp;n.offset||[0,0]);else{this._defaultMarker=!0,this._element=r.create(&quot;div&quot;),this._element.setAttribute(&quot;aria-label&quot;,&quot;Map marker&quot;);var o=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);o.setAttributeNS(null,&quot;display&quot;,&quot;block&quot;),o.setAttributeNS(null,&quot;height&quot;,&quot;41px&quot;),o.setAttributeNS(null,&quot;width&quot;,&quot;27px&quot;),o.setAttributeNS(null,&quot;viewBox&quot;,&quot;0 0 27 41&quot;);var s=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);s.setAttributeNS(null,&quot;stroke&quot;,&quot;none&quot;),s.setAttributeNS(null,&quot;stroke-width&quot;,&quot;1&quot;),s.setAttributeNS(null,&quot;fill&quot;,&quot;none&quot;),s.setAttributeNS(null,&quot;fill-rule&quot;,&quot;evenodd&quot;);var l=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);l.setAttributeNS(null,&quot;fill-rule&quot;,&quot;nonzero&quot;);var c=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);c.setAttributeNS(null,&quot;transform&quot;,&quot;translate(3.0, 29.0)&quot;),c.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;);for(var u=0,f=[{rx:&quot;10.5&quot;,ry:&quot;5.25002273&quot;},{rx:&quot;10.5&quot;,ry:&quot;5.25002273&quot;},{rx:&quot;9.5&quot;,ry:&quot;4.77275007&quot;},{rx:&quot;8.5&quot;,ry:&quot;4.29549936&quot;},{rx:&quot;7.5&quot;,ry:&quot;3.81822308&quot;},{rx:&quot;6.5&quot;,ry:&quot;3.34094679&quot;},{rx:&quot;5.5&quot;,ry:&quot;2.86367051&quot;},{rx:&quot;4.5&quot;,ry:&quot;2.38636864&quot;}];u&lt;f.length;u+=1){var h=f[u],p=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;ellipse&quot;);p.setAttributeNS(null,&quot;opacity&quot;,&quot;0.04&quot;),p.setAttributeNS(null,&quot;cx&quot;,&quot;10.5&quot;),p.setAttributeNS(null,&quot;cy&quot;,&quot;5.80029008&quot;),p.setAttributeNS(null,&quot;rx&quot;,h.rx),p.setAttributeNS(null,&quot;ry&quot;,h.ry),c.appendChild(p)}var d=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);d.setAttributeNS(null,&quot;fill&quot;,this._color);var m=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;path&quot;);m.setAttributeNS(null,&quot;d&quot;,&quot;M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z&quot;),d.appendChild(m);var g=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);g.setAttributeNS(null,&quot;opacity&quot;,&quot;0.25&quot;),g.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;);var v=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;path&quot;);v.setAttributeNS(null,&quot;d&quot;,&quot;M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z&quot;),g.appendChild(v);var y=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);y.setAttributeNS(null,&quot;transform&quot;,&quot;translate(6.0, 7.0)&quot;),y.setAttributeNS(null,&quot;fill&quot;,&quot;#FFFFFF&quot;);var x=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);x.setAttributeNS(null,&quot;transform&quot;,&quot;translate(8.0, 8.0)&quot;);var b=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;circle&quot;);b.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;),b.setAttributeNS(null,&quot;opacity&quot;,&quot;0.25&quot;),b.setAttributeNS(null,&quot;cx&quot;,&quot;5.5&quot;),b.setAttributeNS(null,&quot;cy&quot;,&quot;5.5&quot;),b.setAttributeNS(null,&quot;r&quot;,&quot;5.4999962&quot;);var _=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;circle&quot;);_.setAttributeNS(null,&quot;fill&quot;,&quot;#FFFFFF&quot;),_.setAttributeNS(null,&quot;cx&quot;,&quot;5.5&quot;),_.setAttributeNS(null,&quot;cy&quot;,&quot;5.5&quot;),_.setAttributeNS(null,&quot;r&quot;,&quot;5.4999962&quot;),x.appendChild(b),x.appendChild(_),l.appendChild(c),l.appendChild(d),l.appendChild(g),l.appendChild(y),l.appendChild(x),o.appendChild(l),this._element.appendChild(o),this._offset=t.Point.convert(n&amp;&amp;n.offset||[0,-14])}this._element.classList.add(&quot;mapboxgl-marker&quot;),this._element.addEventListener(&quot;dragstart&quot;,(function(t){t.preventDefault()})),this._element.addEventListener(&quot;mousedown&quot;,(function(t){t.preventDefault()})),this._element.addEventListener(&quot;focus&quot;,(function(){var t=a._map.getContainer();t.scrollTop=0,t.scrollLeft=0})),Di(this._element,this._anchor,&quot;marker&quot;),this._popup=null}return e&amp;&amp;(n.__proto__=e),n.prototype=Object.create(e&amp;&amp;e.prototype),n.prototype.constructor=n,n.prototype.addTo=function(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on(&quot;move&quot;,this._update),t.on(&quot;moveend&quot;,this._update),this.setDraggable(this._draggable),this._update(),this._map.on(&quot;click&quot;,this._onMapClick),this},n.prototype.remove=function(){return this._map&amp;&amp;(this._map.off(&quot;click&quot;,this._onMapClick),this._map.off(&quot;move&quot;,this._update),this._map.off(&quot;moveend&quot;,this._update),this._map.off(&quot;mousedown&quot;,this._addDragHandler),this._map.off(&quot;touchstart&quot;,this._addDragHandler),this._map.off(&quot;mouseup&quot;,this._onUp),this._map.off(&quot;touchend&quot;,this._onUp),this._map.off(&quot;mousemove&quot;,this._onMove),this._map.off(&quot;touchmove&quot;,this._onMove),delete this._map),r.remove(this._element),this._popup&amp;&amp;this._popup.remove(),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._popup&amp;&amp;this._popup.setLngLat(this._lngLat),this._update(),this},n.prototype.getElement=function(){return this._element},n.prototype.setPopup=function(t){if(this._popup&amp;&amp;(this._popup.remove(),this._popup=null,this._element.removeEventListener(&quot;keypress&quot;,this._onKeyPress),this._originalTabIndex||this._element.removeAttribute(&quot;tabindex&quot;)),t){if(!(&quot;offset&quot;in t.options)){var e=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],&quot;top-left&quot;:[0,0],&quot;top-right&quot;:[0,0],bottom:[0,-38.1],&quot;bottom-left&quot;:[e,-1*(24.6+e)],&quot;bottom-right&quot;:[-e,-1*(24.6+e)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._lngLat&amp;&amp;this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute(&quot;tabindex&quot;),this._originalTabIndex||this._element.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),this._element.addEventListener(&quot;keypress&quot;,this._onKeyPress)}return this},n.prototype._onKeyPress=function(t){var e=t.code,r=t.charCode||t.keyCode;&quot;Space&quot;!==e&amp;&amp;&quot;Enter&quot;!==e&amp;&amp;32!==r&amp;&amp;13!==r||this.togglePopup()},n.prototype._onMapClick=function(t){var e=t.originalEvent.target,r=this._element;this._popup&amp;&amp;(e===r||r.contains(e))&amp;&amp;this.togglePopup()},n.prototype.getPopup=function(){return this._popup},n.prototype.togglePopup=function(){var t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this},n.prototype._update=function(t){if(this._map){this._map.transform.renderWorldCopies&amp;&amp;(this._lngLat=Oi(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);var e=&quot;&quot;;&quot;viewport&quot;===this._rotationAlignment||&quot;auto&quot;===this._rotationAlignment?e=&quot;rotateZ(&quot;+this._rotation+&quot;deg)&quot;:&quot;map&quot;===this._rotationAlignment&amp;&amp;(e=&quot;rotateZ(&quot;+(this._rotation-this._map.getBearing())+&quot;deg)&quot;);var n=&quot;&quot;;&quot;viewport&quot;===this._pitchAlignment||&quot;auto&quot;===this._pitchAlignment?n=&quot;rotateX(0deg)&quot;:&quot;map&quot;===this._pitchAlignment&amp;&amp;(n=&quot;rotateX(&quot;+this._map.getPitch()+&quot;deg)&quot;),t&amp;&amp;&quot;moveend&quot;!==t.type||(this._pos=this._pos.round()),r.setTransform(this._element,zi[this._anchor]+&quot; translate(&quot;+this._pos.x+&quot;px, &quot;+this._pos.y+&quot;px) &quot;+n+&quot; &quot;+e)}},n.prototype.getOffset=function(){return this._offset},n.prototype.setOffset=function(e){return this._offset=t.Point.convert(e),this._update(),this},n.prototype._onMove=function(e){this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents=&quot;none&quot;,&quot;pending&quot;===this._state&amp;&amp;(this._state=&quot;active&quot;,this.fire(new t.Event(&quot;dragstart&quot;))),this.fire(new t.Event(&quot;drag&quot;))},n.prototype._onUp=function(){this._element.style.pointerEvents=&quot;auto&quot;,this._positionDelta=null,this._map.off(&quot;mousemove&quot;,this._onMove),this._map.off(&quot;touchmove&quot;,this._onMove),&quot;active&quot;===this._state&amp;&amp;this.fire(new t.Event(&quot;dragend&quot;)),this._state=&quot;inactive&quot;},n.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&amp;&amp;(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._state=&quot;pending&quot;,this._map.on(&quot;mousemove&quot;,this._onMove),this._map.on(&quot;touchmove&quot;,this._onMove),this._map.once(&quot;mouseup&quot;,this._onUp),this._map.once(&quot;touchend&quot;,this._onUp))},n.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&amp;&amp;(t?(this._map.on(&quot;mousedown&quot;,this._addDragHandler),this._map.on(&quot;touchstart&quot;,this._addDragHandler)):(this._map.off(&quot;mousedown&quot;,this._addDragHandler),this._map.off(&quot;touchstart&quot;,this._addDragHandler))),this},n.prototype.isDraggable=function(){return this._draggable},n.prototype.setRotation=function(t){return this._rotation=t||0,this._update(),this},n.prototype.getRotation=function(){return this._rotation},n.prototype.setRotationAlignment=function(t){return this._rotationAlignment=t||&quot;auto&quot;,this._update(),this},n.prototype.getRotationAlignment=function(){return this._rotationAlignment},n.prototype.setPitchAlignment=function(t){return this._pitchAlignment=t&amp;&amp;&quot;auto&quot;!==t?t:this._rotationAlignment,this._update(),this},n.prototype.getPitchAlignment=function(){return this._pitchAlignment},n}(t.Evented),Bi={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0};var Ni=0,ji=!1,Ui=function(e){function n(r){e.call(this),this.options=t.extend({},Bi,r),t.bindAll([&quot;_onSuccess&quot;,&quot;_onError&quot;,&quot;_onZoom&quot;,&quot;_finish&quot;,&quot;_setupUI&quot;,&quot;_updateCamera&quot;,&quot;_updateMarker&quot;],this)}return e&amp;&amp;(n.__proto__=e),n.prototype=Object.create(e&amp;&amp;e.prototype),n.prototype.constructor=n,n.prototype.onAdd=function(e){var n;return this._map=e,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),n=this._setupUI,void 0!==Ri?n(Ri):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:&quot;geolocation&quot;}).then((function(t){Ri=&quot;denied&quot;!==t.state,n(Ri)})):(Ri=!!t.window.navigator.geolocation,n(Ri)),this._container},n.prototype.onRemove=function(){void 0!==this._geolocationWatchID&amp;&amp;(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&amp;&amp;this._userLocationDotMarker&amp;&amp;this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&amp;&amp;this._accuracyCircleMarker&amp;&amp;this._accuracyCircleMarker.remove(),r.remove(this._container),this._map.off(&quot;zoom&quot;,this._onZoom),this._map=void 0,Ni=0,ji=!1},n.prototype._isOutOfMapMaxBounds=function(t){var e=this._map.getMaxBounds(),r=t.coords;return e&amp;&amp;(r.longitude&lt;e.getWest()||r.longitude&gt;e.getEast()||r.latitude&lt;e.getSouth()||r.latitude&gt;e.getNorth())},n.prototype._setErrorState=function(){switch(this._watchState){case&quot;WAITING_ACTIVE&quot;:this._watchState=&quot;ACTIVE_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;);break;case&quot;ACTIVE_LOCK&quot;:this._watchState=&quot;ACTIVE_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;);break;case&quot;BACKGROUND&quot;:this._watchState=&quot;BACKGROUND_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;)}},n.prototype._onSuccess=function(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event(&quot;outofmaxbounds&quot;,e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case&quot;WAITING_ACTIVE&quot;:case&quot;ACTIVE_LOCK&quot;:case&quot;ACTIVE_ERROR&quot;:this._watchState=&quot;ACTIVE_LOCK&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;BACKGROUND&quot;:case&quot;BACKGROUND_ERROR&quot;:this._watchState=&quot;BACKGROUND&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;)}this.options.showUserLocation&amp;&amp;&quot;OFF&quot;!==this._watchState&amp;&amp;this._updateMarker(e),this.options.trackUserLocation&amp;&amp;&quot;ACTIVE_LOCK&quot;!==this._watchState||this._updateCamera(e),this.options.showUserLocation&amp;&amp;this._dotElement.classList.remove(&quot;mapboxgl-user-location-dot-stale&quot;),this.fire(new t.Event(&quot;geolocate&quot;,e)),this._finish()}},n.prototype._updateCamera=function(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude),n=e.coords.accuracy,i=this._map.getBearing(),a=t.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(r.toBounds(n),a,{geolocateSource:!0})},n.prototype._updateMarker=function(e){if(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&amp;&amp;this.options.showAccuracyCircle&amp;&amp;this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},n.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),r=this._map.unproject([1,t]),n=e.distanceTo(r),i=Math.ceil(2*this._accuracy/n);this._circleElement.style.width=i+&quot;px&quot;,this._circleElement.style.height=i+&quot;px&quot;},n.prototype._onZoom=function(){this.options.showUserLocation&amp;&amp;this.options.showAccuracyCircle&amp;&amp;this._updateCircleRadius()},n.prototype._onError=function(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState=&quot;OFF&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.disabled=!0;var r=this._map._getUIString(&quot;GeolocateControl.LocationNotAvailable&quot;);this._geolocateButton.title=r,this._geolocateButton.setAttribute(&quot;aria-label&quot;,r),void 0!==this._geolocationWatchID&amp;&amp;this._clearWatch()}else{if(3===e.code&amp;&amp;ji)return;this._setErrorState()}&quot;OFF&quot;!==this._watchState&amp;&amp;this.options.showUserLocation&amp;&amp;this._dotElement.classList.add(&quot;mapboxgl-user-location-dot-stale&quot;),this.fire(new t.Event(&quot;error&quot;,e)),this._finish()}},n.prototype._finish=function(){this._timeoutId&amp;&amp;clearTimeout(this._timeoutId),this._timeoutId=void 0},n.prototype._setupUI=function(e){var n=this;if(this._container.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault()})),this._geolocateButton=r.create(&quot;button&quot;,&quot;mapboxgl-ctrl-geolocate&quot;,this._container),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._geolocateButton).setAttribute(&quot;aria-hidden&quot;,!0),this._geolocateButton.type=&quot;button&quot;,!1===e){t.warnOnce(&quot;Geolocation support is not available so the GeolocateControl will be disabled.&quot;);var i=this._map._getUIString(&quot;GeolocateControl.LocationNotAvailable&quot;);this._geolocateButton.disabled=!0,this._geolocateButton.title=i,this._geolocateButton.setAttribute(&quot;aria-label&quot;,i)}else{var a=this._map._getUIString(&quot;GeolocateControl.FindMyLocation&quot;);this._geolocateButton.title=a,this._geolocateButton.setAttribute(&quot;aria-label&quot;,a)}this.options.trackUserLocation&amp;&amp;(this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;false&quot;),this._watchState=&quot;OFF&quot;),this.options.showUserLocation&amp;&amp;(this._dotElement=r.create(&quot;div&quot;,&quot;mapboxgl-user-location-dot&quot;),this._userLocationDotMarker=new Fi(this._dotElement),this._circleElement=r.create(&quot;div&quot;,&quot;mapboxgl-user-location-accuracy-circle&quot;),this._accuracyCircleMarker=new Fi({element:this._circleElement,pitchAlignment:&quot;map&quot;}),this.options.trackUserLocation&amp;&amp;(this._watchState=&quot;OFF&quot;),this._map.on(&quot;zoom&quot;,this._onZoom)),this._geolocateButton.addEventListener(&quot;click&quot;,this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&amp;&amp;this._map.on(&quot;movestart&quot;,(function(e){var r=e.originalEvent&amp;&amp;&quot;resize&quot;===e.originalEvent.type;e.geolocateSource||&quot;ACTIVE_LOCK&quot;!==n._watchState||r||(n._watchState=&quot;BACKGROUND&quot;,n._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;),n._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),n.fire(new t.Event(&quot;trackuserlocationend&quot;)))}))},n.prototype.trigger=function(){if(!this._setup)return t.warnOnce(&quot;Geolocate control triggered before added to a map&quot;),!1;if(this.options.trackUserLocation){switch(this._watchState){case&quot;OFF&quot;:this._watchState=&quot;WAITING_ACTIVE&quot;,this.fire(new t.Event(&quot;trackuserlocationstart&quot;));break;case&quot;WAITING_ACTIVE&quot;:case&quot;ACTIVE_LOCK&quot;:case&quot;ACTIVE_ERROR&quot;:case&quot;BACKGROUND_ERROR&quot;:Ni--,ji=!1,this._watchState=&quot;OFF&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this.fire(new t.Event(&quot;trackuserlocationend&quot;));break;case&quot;BACKGROUND&quot;:this._watchState=&quot;ACTIVE_LOCK&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._lastKnownPosition&amp;&amp;this._updateCamera(this._lastKnownPosition),this.fire(new t.Event(&quot;trackuserlocationstart&quot;))}switch(this._watchState){case&quot;WAITING_ACTIVE&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;ACTIVE_LOCK&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;ACTIVE_ERROR&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;);break;case&quot;BACKGROUND&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;);break;case&quot;BACKGROUND_ERROR&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background-error&quot;)}if(&quot;OFF&quot;===this._watchState&amp;&amp;void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var e;this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;true&quot;),++Ni&gt;1?(e={maximumAge:6e5,timeout:0},ji=!0):(e=this.options.positionOptions,ji=!1),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},n.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;false&quot;),this.options.showUserLocation&amp;&amp;this._updateMarker(null)},n}(t.Evented),Vi={maxWidth:100,unit:&quot;metric&quot;},Hi=function(e){this.options=t.extend({},Vi,e),t.bindAll([&quot;_onMove&quot;,&quot;setUnit&quot;],this)};function qi(t,e,r){var n=r&amp;&amp;r.maxWidth||100,i=t._container.clientHeight/2,a=t.unproject([0,i]),o=t.unproject([n,i]),s=a.distanceTo(o);if(r&amp;&amp;&quot;imperial&quot;===r.unit){var l=3.2808*s;if(l&gt;5280)Gi(e,n,l/5280,t._getUIString(&quot;ScaleControl.Miles&quot;));else Gi(e,n,l,t._getUIString(&quot;ScaleControl.Feet&quot;))}else if(r&amp;&amp;&quot;nautical&quot;===r.unit){Gi(e,n,s/1852,t._getUIString(&quot;ScaleControl.NauticalMiles&quot;))}else s&gt;=1e3?Gi(e,n,s/1e3,t._getUIString(&quot;ScaleControl.Kilometers&quot;)):Gi(e,n,s,t._getUIString(&quot;ScaleControl.Meters&quot;))}function Gi(t,e,r,n){var i,a,o,s=(i=r,a=Math.pow(10,(&quot;&quot;+Math.floor(i)).length-1),o=(o=i/a)&gt;=10?10:o&gt;=5?5:o&gt;=3?3:o&gt;=2?2:o&gt;=1?1:function(t){var e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(o),a*o),l=s/r;t.style.width=e*l+&quot;px&quot;,t.innerHTML=s+&quot;&amp;nbsp;&quot;+n}Hi.prototype.getDefaultPosition=function(){return&quot;bottom-left&quot;},Hi.prototype._onMove=function(){qi(this._map,this._container,this.options)},Hi.prototype.onAdd=function(t){return this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-scale&quot;,t.getContainer()),this._map.on(&quot;move&quot;,this._onMove),this._onMove(),this._container},Hi.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;move&quot;,this._onMove),this._map=void 0},Hi.prototype.setUnit=function(t){this.options.unit=t,qi(this._map,this._container,this.options)};var Yi=function(e){this._fullscreen=!1,e&amp;&amp;e.container&amp;&amp;(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce(&quot;Full screen control 'container' must be a DOM element.&quot;)),t.bindAll([&quot;_onClickFullscreen&quot;,&quot;_changeIcon&quot;],this),&quot;onfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;fullscreenchange&quot;:&quot;onmozfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;mozfullscreenchange&quot;:&quot;onwebkitfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;webkitfullscreenchange&quot;:&quot;onmsfullscreenchange&quot;in t.window.document&amp;&amp;(this._fullscreenchange=&quot;MSFullscreenChange&quot;)};Yi.prototype.onAdd=function(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display=&quot;none&quot;,t.warnOnce(&quot;This device does not support fullscreen mode.&quot;)),this._controlContainer},Yi.prototype.onRemove=function(){r.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},Yi.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},Yi.prototype._setupUI=function(){var e=this._fullscreenButton=r.create(&quot;button&quot;,&quot;mapboxgl-ctrl-fullscreen&quot;,this._controlContainer);r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,e).setAttribute(&quot;aria-hidden&quot;,!0),e.type=&quot;button&quot;,this._updateTitle(),this._fullscreenButton.addEventListener(&quot;click&quot;,this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},Yi.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute(&quot;aria-label&quot;,t),this._fullscreenButton.title=t},Yi.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?&quot;FullscreenControl.Exit&quot;:&quot;FullscreenControl.Enter&quot;)},Yi.prototype._isFullscreen=function(){return this._fullscreen},Yi.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._container!==this._fullscreen&amp;&amp;(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle(&quot;mapboxgl-ctrl-shrink&quot;),this._fullscreenButton.classList.toggle(&quot;mapboxgl-ctrl-fullscreen&quot;),this._updateTitle())},Yi.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&amp;&amp;t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&amp;&amp;this._container.webkitRequestFullscreen()};var Wi={closeButton:!0,closeOnClick:!0,className:&quot;&quot;,maxWidth:&quot;240px&quot;},Xi=function(e){function n(r){e.call(this),this.options=t.extend(Object.create(Wi),r),t.bindAll([&quot;_update&quot;,&quot;_onClose&quot;,&quot;remove&quot;,&quot;_onMouseMove&quot;,&quot;_onMouseUp&quot;,&quot;_onDrag&quot;],this)}return e&amp;&amp;(n.__proto__=e),n.prototype=Object.create(e&amp;&amp;e.prototype),n.prototype.constructor=n,n.prototype.addTo=function(e){return this._map&amp;&amp;this.remove(),this._map=e,this.options.closeOnClick&amp;&amp;this._map.on(&quot;click&quot;,this._onClose),this.options.closeOnMove&amp;&amp;this._map.on(&quot;move&quot;,this._onClose),this._map.on(&quot;remove&quot;,this.remove),this._update(),this._trackPointer?(this._map.on(&quot;mousemove&quot;,this._onMouseMove),this._map.on(&quot;mouseup&quot;,this._onMouseUp),this._container&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.add(&quot;mapboxgl-track-pointer&quot;)):this._map.on(&quot;move&quot;,this._update),this.fire(new t.Event(&quot;open&quot;)),this},n.prototype.isOpen=function(){return!!this._map},n.prototype.remove=function(){return this._content&amp;&amp;r.remove(this._content),this._container&amp;&amp;(r.remove(this._container),delete this._container),this._map&amp;&amp;(this._map.off(&quot;move&quot;,this._update),this._map.off(&quot;move&quot;,this._onClose),this._map.off(&quot;click&quot;,this._onClose),this._map.off(&quot;remove&quot;,this.remove),this._map.off(&quot;mousemove&quot;,this._onMouseMove),this._map.off(&quot;mouseup&quot;,this._onMouseUp),this._map.off(&quot;drag&quot;,this._onDrag),delete this._map),this.fire(new t.Event(&quot;close&quot;)),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&amp;&amp;(this._map.on(&quot;move&quot;,this._update),this._map.off(&quot;mousemove&quot;,this._onMouseMove),this._container&amp;&amp;this._container.classList.remove(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.remove(&quot;mapboxgl-track-pointer&quot;)),this},n.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&amp;&amp;(this._map.off(&quot;move&quot;,this._update),this._map.on(&quot;mousemove&quot;,this._onMouseMove),this._map.on(&quot;drag&quot;,this._onDrag),this._container&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.add(&quot;mapboxgl-track-pointer&quot;)),this},n.prototype.getElement=function(){return this._container},n.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},n.prototype.setHTML=function(e){var r,n=t.window.document.createDocumentFragment(),i=t.window.document.createElement(&quot;body&quot;);for(i.innerHTML=e;r=i.firstChild;)n.appendChild(r);return this.setDOMContent(n)},n.prototype.getMaxWidth=function(){return this._container&amp;&amp;this._container.style.maxWidth},n.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},n.prototype.setDOMContent=function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},n.prototype.addClassName=function(t){this._container&amp;&amp;this._container.classList.add(t)},n.prototype.removeClassName=function(t){this._container&amp;&amp;this._container.classList.remove(t)},n.prototype.toggleClassName=function(t){if(this._container)return this._container.classList.toggle(t)},n.prototype._createContent=function(){this._content&amp;&amp;r.remove(this._content),this._content=r.create(&quot;div&quot;,&quot;mapboxgl-popup-content&quot;,this._container),this.options.closeButton&amp;&amp;(this._closeButton=r.create(&quot;button&quot;,&quot;mapboxgl-popup-close-button&quot;,this._content),this._closeButton.type=&quot;button&quot;,this._closeButton.setAttribute(&quot;aria-label&quot;,&quot;Close popup&quot;),this._closeButton.innerHTML=&quot;&amp;#215;&quot;,this._closeButton.addEventListener(&quot;click&quot;,this._onClose))},n.prototype._onMouseUp=function(t){this._update(t.point)},n.prototype._onMouseMove=function(t){this._update(t.point)},n.prototype._onDrag=function(t){this._update(t.point)},n.prototype._update=function(e){var n=this,i=this._lngLat||this._trackPointer;if(this._map&amp;&amp;i&amp;&amp;this._content&amp;&amp;(this._container||(this._container=r.create(&quot;div&quot;,&quot;mapboxgl-popup&quot;,this._map.getContainer()),this._tip=r.create(&quot;div&quot;,&quot;mapboxgl-popup-tip&quot;,this._container),this._container.appendChild(this._content),this.options.className&amp;&amp;this.options.className.split(&quot; &quot;).forEach((function(t){return n._container.classList.add(t)})),this._trackPointer&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;)),this.options.maxWidth&amp;&amp;this._container.style.maxWidth!==this.options.maxWidth&amp;&amp;(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&amp;&amp;!this._trackPointer&amp;&amp;(this._lngLat=Oi(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||e)){var a=this._pos=this._trackPointer&amp;&amp;e?e:this._map.project(this._lngLat),o=this.options.anchor,s=function e(r){if(r){if(&quot;number&quot;==typeof r){var n=Math.round(Math.sqrt(.5*Math.pow(r,2)));return{center:new t.Point(0,0),top:new t.Point(0,r),&quot;top-left&quot;:new t.Point(n,n),&quot;top-right&quot;:new t.Point(-n,n),bottom:new t.Point(0,-r),&quot;bottom-left&quot;:new t.Point(n,-n),&quot;bottom-right&quot;:new t.Point(-n,-n),left:new t.Point(r,0),right:new t.Point(-r,0)}}if(r instanceof t.Point||Array.isArray(r)){var i=t.Point.convert(r);return{center:i,top:i,&quot;top-left&quot;:i,&quot;top-right&quot;:i,bottom:i,&quot;bottom-left&quot;:i,&quot;bottom-right&quot;:i,left:i,right:i}}return{center:t.Point.convert(r.center||[0,0]),top:t.Point.convert(r.top||[0,0]),&quot;top-left&quot;:t.Point.convert(r[&quot;top-left&quot;]||[0,0]),&quot;top-right&quot;:t.Point.convert(r[&quot;top-right&quot;]||[0,0]),bottom:t.Point.convert(r.bottom||[0,0]),&quot;bottom-left&quot;:t.Point.convert(r[&quot;bottom-left&quot;]||[0,0]),&quot;bottom-right&quot;:t.Point.convert(r[&quot;bottom-right&quot;]||[0,0]),left:t.Point.convert(r.left||[0,0]),right:t.Point.convert(r.right||[0,0])}}return e(new t.Point(0,0))}(this.options.offset);if(!o){var l,c=this._container.offsetWidth,u=this._container.offsetHeight;l=a.y+s.bottom.y&lt;u?[&quot;top&quot;]:a.y&gt;this._map.transform.height-u?[&quot;bottom&quot;]:[],a.x&lt;c/2?l.push(&quot;left&quot;):a.x&gt;this._map.transform.width-c/2&amp;&amp;l.push(&quot;right&quot;),o=0===l.length?&quot;bottom&quot;:l.join(&quot;-&quot;)}var f=a.add(s[o]).round();r.setTransform(this._container,zi[o]+&quot; translate(&quot;+f.x+&quot;px,&quot;+f.y+&quot;px)&quot;),Di(this._container,o,&quot;popup&quot;)}},n.prototype._onClose=function(){this.remove()},n}(t.Evented);var Zi={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:Ei,NavigationControl:Pi,GeolocateControl:Ui,AttributionControl:bi,ScaleControl:Hi,FullscreenControl:Yi,Popup:Xi,Marker:Fi,Style:qe,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,config:t.config,prewarm:function(){Bt().acquire(zt)},clearPrewarmedResources:function(){var t=Rt;t&amp;&amp;(t.isPreloaded()&amp;&amp;1===t.numActive()?(t.release(zt),Rt=null):console.warn(&quot;Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()&quot;))},get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return Dt.workerCount},set workerCount(t){Dt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage:function(e){t.clearTileCache(e)},workerUrl:&quot;&quot;};return Zi})),r}))},{}],240:[function(t,e,r){&quot;use strict&quot;;e.exports=Math.log2||function(t){return Math.log(t)*Math.LOG2E}},{}],241:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e||(e=t,t=window);var r=0,i=0,a=0,o={shift:!1,alt:!1,control:!1,meta:!1},s=!1;function l(t){var e=!1;return&quot;altKey&quot;in t&amp;&amp;(e=e||t.altKey!==o.alt,o.alt=!!t.altKey),&quot;shiftKey&quot;in t&amp;&amp;(e=e||t.shiftKey!==o.shift,o.shift=!!t.shiftKey),&quot;ctrlKey&quot;in t&amp;&amp;(e=e||t.ctrlKey!==o.control,o.control=!!t.ctrlKey),&quot;metaKey&quot;in t&amp;&amp;(e=e||t.metaKey!==o.meta,o.meta=!!t.metaKey),e}function c(t,s){var c=n.x(s),u=n.y(s);&quot;buttons&quot;in s&amp;&amp;(t=0|s.buttons),(t!==r||c!==i||u!==a||l(s))&amp;&amp;(r=0|t,i=c||0,a=u||0,e&amp;&amp;e(r,i,a,o))}function u(t){c(0,t)}function f(){(r||i||a||o.shift||o.alt||o.meta||o.control)&amp;&amp;(i=a=0,r=0,o.shift=o.alt=o.control=o.meta=!1,e&amp;&amp;e(0,0,0,o))}function h(t){l(t)&amp;&amp;e&amp;&amp;e(r,i,a,o)}function p(t){0===n.buttons(t)?c(0,t):c(r,t)}function d(t){c(r|n.buttons(t),t)}function m(t){c(r&amp;~n.buttons(t),t)}function g(){s||(s=!0,t.addEventListener(&quot;mousemove&quot;,p),t.addEventListener(&quot;mousedown&quot;,d),t.addEventListener(&quot;mouseup&quot;,m),t.addEventListener(&quot;mouseleave&quot;,u),t.addEventListener(&quot;mouseenter&quot;,u),t.addEventListener(&quot;mouseout&quot;,u),t.addEventListener(&quot;mouseover&quot;,u),t.addEventListener(&quot;blur&quot;,f),t.addEventListener(&quot;keyup&quot;,h),t.addEventListener(&quot;keydown&quot;,h),t.addEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.addEventListener(&quot;blur&quot;,f),window.addEventListener(&quot;keyup&quot;,h),window.addEventListener(&quot;keydown&quot;,h),window.addEventListener(&quot;keypress&quot;,h)))}g();var v={element:t};return Object.defineProperties(v,{enabled:{get:function(){return s},set:function(e){e?g():function(){if(!s)return;s=!1,t.removeEventListener(&quot;mousemove&quot;,p),t.removeEventListener(&quot;mousedown&quot;,d),t.removeEventListener(&quot;mouseup&quot;,m),t.removeEventListener(&quot;mouseleave&quot;,u),t.removeEventListener(&quot;mouseenter&quot;,u),t.removeEventListener(&quot;mouseout&quot;,u),t.removeEventListener(&quot;mouseover&quot;,u),t.removeEventListener(&quot;blur&quot;,f),t.removeEventListener(&quot;keyup&quot;,h),t.removeEventListener(&quot;keydown&quot;,h),t.removeEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.removeEventListener(&quot;blur&quot;,f),window.removeEventListener(&quot;keyup&quot;,h),window.removeEventListener(&quot;keydown&quot;,h),window.removeEventListener(&quot;keypress&quot;,h))}()},enumerable:!0},buttons:{get:function(){return r},enumerable:!0},x:{get:function(){return i},enumerable:!0},y:{get:function(){return a},enumerable:!0},mods:{get:function(){return o},enumerable:!0}}),v};var n=t(&quot;mouse-event&quot;)},{&quot;mouse-event&quot;:243}],242:[function(t,e,r){var n={left:0,top:0};e.exports=function(t,e,r){e=e||t.currentTarget||t.srcElement,Array.isArray(r)||(r=[0,0]);var i=t.clientX||0,a=t.clientY||0,o=(s=e,s===window||s===document||s===document.body?n:s.getBoundingClientRect());var s;return r[0]=i-o.left,r[1]=a-o.top,r}},{}],243:[function(t,e,r){&quot;use strict&quot;;function n(t){return t.target||t.srcElement||window}r.buttons=function(t){if(&quot;object&quot;==typeof t){if(&quot;buttons&quot;in t)return t.buttons;if(&quot;which&quot;in t){if(2===(e=t.which))return 4;if(3===e)return 2;if(e&gt;0)return 1&lt;&lt;e-1}else if(&quot;button&quot;in t){var e;if(1===(e=t.button))return 4;if(2===e)return 2;if(e&gt;=0)return 1&lt;&lt;e}}return 0},r.element=n,r.x=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetX&quot;in t)return t.offsetX;var e=n(t).getBoundingClientRect();return t.clientX-e.left}return 0},r.y=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetY&quot;in t)return t.offsetY;var e=n(t).getBoundingClientRect();return t.clientY-e.top}return 0}},{}],244:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;to-px&quot;);e.exports=function(t,e,r){&quot;function&quot;==typeof t&amp;&amp;(r=!!e,e=t,t=window);var i=n(&quot;ex&quot;,t),a=function(t){r&amp;&amp;t.preventDefault();var n=t.deltaX||0,a=t.deltaY||0,o=t.deltaZ||0,s=1;switch(t.deltaMode){case 1:s=i;break;case 2:s=window.innerHeight}if(a*=s,o*=s,(n*=s)||a||o)return e(n,a,o,t)};return t.addEventListener(&quot;wheel&quot;,a),a}},{&quot;to-px&quot;:314}],245:[function(t,e,r){(function(t,r){(function(){
/*! Native Promise Only
    v0.8.1 (c) Kyle Simpson
    MIT License: http://getify.mit-license.org
*/
!function(t,r,n){r[t]=r[t]||n(),void 0!==e&amp;&amp;e.exports&amp;&amp;(e.exports=r[t])}(&quot;Promise&quot;,void 0!==t?t:this,(function(){&quot;use strict&quot;;var t,e,n,i=Object.prototype.toString,a=void 0!==r?function(t){return r(t)}:setTimeout;try{Object.defineProperty({},&quot;x&quot;,{}),t=function(t,e,r,n){return Object.defineProperty(t,e,{value:r,writable:!0,configurable:!1!==n})}}catch(e){t=function(t,e,r){return t[e]=r,t}}function o(t,r){n.add(t,r),e||(e=a(n.drain))}function s(t){var e,r=typeof t;return null==t||&quot;object&quot;!=r&amp;&amp;&quot;function&quot;!=r||(e=t.then),&quot;function&quot;==typeof e&amp;&amp;e}function l(){for(var t=0;t&lt;this.chain.length;t++)c(this,1===this.state?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function c(t,e,r){var n,i;try{!1===e?r.reject(t.msg):(n=!0===e?t.msg:e.call(void 0,t.msg))===r.promise?r.reject(TypeError(&quot;Promise-chain cycle&quot;)):(i=s(n))?i.call(n,r.resolve,r.reject):r.resolve(n)}catch(t){r.reject(t)}}function u(t){var e,r=this;if(!r.triggered){r.triggered=!0,r.def&amp;&amp;(r=r.def);try{(e=s(t))?o((function(){var n=new p(r);try{e.call(t,(function(){u.apply(n,arguments)}),(function(){f.apply(n,arguments)}))}catch(t){f.call(n,t)}})):(r.msg=t,r.state=1,r.chain.length&gt;0&amp;&amp;o(l,r))}catch(t){f.call(new p(r),t)}}}function f(t){var e=this;e.triggered||(e.triggered=!0,e.def&amp;&amp;(e=e.def),e.msg=t,e.state=2,e.chain.length&gt;0&amp;&amp;o(l,e))}function h(t,e,r,n){for(var i=0;i&lt;e.length;i++)!function(i){t.resolve(e[i]).then((function(t){r(i,t)}),n)}(i)}function p(t){this.def=t,this.triggered=!1}function d(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function m(t){if(&quot;function&quot;!=typeof t)throw TypeError(&quot;Not a function&quot;);if(0!==this.__NPO__)throw TypeError(&quot;Not a promise&quot;);this.__NPO__=1;var e=new d(this);this.then=function(t,r){var n={success:&quot;function&quot;!=typeof t||t,failure:&quot;function&quot;==typeof r&amp;&amp;r};return n.promise=new this.constructor((function(t,e){if(&quot;function&quot;!=typeof t||&quot;function&quot;!=typeof e)throw TypeError(&quot;Not a function&quot;);n.resolve=t,n.reject=e})),e.chain.push(n),0!==e.state&amp;&amp;o(l,e),n.promise},this.catch=function(t){return this.then(void 0,t)};try{t.call(void 0,(function(t){u.call(e,t)}),(function(t){f.call(e,t)}))}catch(t){f.call(e,t)}}n=function(){var t,r,n;function i(t,e){this.fn=t,this.self=e,this.next=void 0}return{add:function(e,a){n=new i(e,a),r?r.next=n:t=n,r=n,n=void 0},drain:function(){var n=t;for(t=r=e=void 0;n;)n.fn.call(n.self),n=n.next}}}();var g=t({},&quot;constructor&quot;,m,!1);return m.prototype=g,t(g,&quot;__NPO__&quot;,0,!1),t(m,&quot;resolve&quot;,(function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;1===t.__NPO__?t:new this((function(e,r){if(&quot;function&quot;!=typeof e||&quot;function&quot;!=typeof r)throw TypeError(&quot;Not a function&quot;);e(t)}))})),t(m,&quot;reject&quot;,(function(t){return new this((function(e,r){if(&quot;function&quot;!=typeof e||&quot;function&quot;!=typeof r)throw TypeError(&quot;Not a function&quot;);r(t)}))})),t(m,&quot;all&quot;,(function(t){var e=this;return&quot;[object Array]&quot;!=i.call(t)?e.reject(TypeError(&quot;Not an array&quot;)):0===t.length?e.resolve([]):new e((function(r,n){if(&quot;function&quot;!=typeof r||&quot;function&quot;!=typeof n)throw TypeError(&quot;Not a function&quot;);var i=t.length,a=Array(i),o=0;h(e,t,(function(t,e){a[t]=e,++o===i&amp;&amp;r(a)}),n)}))})),t(m,&quot;race&quot;,(function(t){var e=this;return&quot;[object Array]&quot;!=i.call(t)?e.reject(TypeError(&quot;Not an array&quot;)):new e((function(r,n){if(&quot;function&quot;!=typeof r||&quot;function&quot;!=typeof n)throw TypeError(&quot;Not a function&quot;);h(e,t,(function(t,e){r(e)}),n)}))})),m}))}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{},t(&quot;timers&quot;).setImmediate)},{timers:311}],246:[function(t,e,r){var n=Math.PI,i=c(120);function a(t,e,r,n){return[&quot;C&quot;,t,e,r,n,r,n]}function o(t,e,r,n,i,a){return[&quot;C&quot;,t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function s(t,e,r,a,o,c,u,f,h,p){if(p)T=p[0],k=p[1],_=p[2],w=p[3];else{var d=l(t,e,-o);t=d.x,e=d.y;var m=(t-(f=(d=l(f,h,-o)).x))/2,g=(e-(h=d.y))/2,v=m*m/(r*r)+g*g/(a*a);v&gt;1&amp;&amp;(r*=v=Math.sqrt(v),a*=v);var y=r*r,x=a*a,b=(c==u?-1:1)*Math.sqrt(Math.abs((y*x-y*g*g-x*m*m)/(y*g*g+x*m*m)));b==1/0&amp;&amp;(b=1);var _=b*r*g/a+(t+f)/2,w=b*-a*m/r+(e+h)/2,T=Math.asin(((e-w)/a).toFixed(9)),k=Math.asin(((h-w)/a).toFixed(9));(T=t&lt;_?n-T:T)&lt;0&amp;&amp;(T=2*n+T),(k=f&lt;_?n-k:k)&lt;0&amp;&amp;(k=2*n+k),u&amp;&amp;T&gt;k&amp;&amp;(T-=2*n),!u&amp;&amp;k&gt;T&amp;&amp;(k-=2*n)}if(Math.abs(k-T)&gt;i){var A=k,M=f,S=h;k=T+i*(u&amp;&amp;k&gt;T?1:-1);var E=s(f=_+r*Math.cos(k),h=w+a*Math.sin(k),r,a,o,0,u,M,S,[k,A,_,w])}var L=Math.tan((k-T)/4),C=4/3*r*L,P=4/3*a*L,I=[2*t-(t+C*Math.sin(T)),2*e-(e-P*Math.cos(T)),f+C*Math.sin(k),h-P*Math.cos(k),f,h];if(p)return I;E&amp;&amp;(I=I.concat(E));for(var O=0;O&lt;I.length;){var z=l(I[O],I[O+1],o);I[O++]=z.x,I[O++]=z.y}return I}function l(t,e,r){return{x:t*Math.cos(r)-e*Math.sin(r),y:t*Math.sin(r)+e*Math.cos(r)}}function c(t){return t*(n/180)}e.exports=function(t){for(var e,r=[],n=0,i=0,l=0,u=0,f=null,h=null,p=0,d=0,m=0,g=t.length;m&lt;g;m++){var v=t[m],y=v[0];switch(y){case&quot;M&quot;:l=v[1],u=v[2];break;case&quot;A&quot;:(v=s(p,d,v[1],v[2],c(v[3]),v[4],v[5],v[6],v[7])).unshift(&quot;C&quot;),v.length&gt;7&amp;&amp;(r.push(v.splice(0,7)),v.unshift(&quot;C&quot;));break;case&quot;S&quot;:var x=p,b=d;&quot;C&quot;!=e&amp;&amp;&quot;S&quot;!=e||(x+=x-n,b+=b-i),v=[&quot;C&quot;,x,b,v[1],v[2],v[3],v[4]];break;case&quot;T&quot;:&quot;Q&quot;==e||&quot;T&quot;==e?(f=2*p-f,h=2*d-h):(f=p,h=d),v=o(p,d,f,h,v[1],v[2]);break;case&quot;Q&quot;:f=v[1],h=v[2],v=o(p,d,v[1],v[2],v[3],v[4]);break;case&quot;L&quot;:v=a(p,d,v[1],v[2]);break;case&quot;H&quot;:v=a(p,d,v[1],d);break;case&quot;V&quot;:v=a(p,d,p,v[1]);break;case&quot;Z&quot;:v=a(p,d,l,u)}e=y,p=v[v.length-2],d=v[v.length-1],v.length&gt;4?(n=v[v.length-4],i=v[v.length-3]):(n=p,i=d),r.push(v)}return r}},{}],247:[function(t,e,r){
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
&quot;use strict&quot;;var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError(&quot;Object.assign cannot be called with null or undefined&quot;);return Object(t)}e.exports=function(){try{if(!Object.assign)return!1;var t=new String(&quot;abc&quot;);if(t[5]=&quot;de&quot;,&quot;5&quot;===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r&lt;10;r++)e[&quot;_&quot;+String.fromCharCode(r)]=r;if(&quot;0123456789&quot;!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(&quot;&quot;))return!1;var n={};return&quot;abcdefghijklmnopqrst&quot;.split(&quot;&quot;).forEach((function(t){n[t]=t})),&quot;abcdefghijklmnopqrst&quot;===Object.keys(Object.assign({},n)).join(&quot;&quot;)}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,l=o(t),c=1;c&lt;arguments.length;c++){for(var u in r=Object(arguments[c]))i.call(r,u)&amp;&amp;(l[u]=r[u]);if(n){s=n(r);for(var f=0;f&lt;s.length;f++)a.call(r,s[f])&amp;&amp;(l[s[f]]=r[s[f]])}}return l}},{}],248:[function(t,e,r){&quot;use strict&quot;;function n(t,e){if(&quot;string&quot;!=typeof t)return[t];var r=[t];&quot;string&quot;==typeof e||Array.isArray(e)?e={brackets:e}:e||(e={});var n=e.brackets?Array.isArray(e.brackets)?e.brackets:[e.brackets]:[&quot;{}&quot;,&quot;[]&quot;,&quot;()&quot;],i=e.escape||&quot;___&quot;,a=!!e.flat;n.forEach((function(t){var e=new RegExp([&quot;\\&quot;,t[0],&quot;[^\\&quot;,t[0],&quot;\\&quot;,t[1],&quot;]*\\&quot;,t[1]].join(&quot;&quot;)),n=[];function a(e,a,o){var s=r.push(e.slice(t[0].length,-t[1].length))-1;return n.push(s),i+s+i}r.forEach((function(t,n){for(var i,o=0;t!=i;)if(i=t,t=t.replace(e,a),o++&gt;1e4)throw Error(&quot;References have circular dependency. Please, check them.&quot;);r[n]=t})),n=n.reverse(),r=r.map((function(e){return n.forEach((function(r){e=e.replace(new RegExp(&quot;(\\&quot;+i+r+&quot;\\&quot;+i+&quot;)&quot;,&quot;g&quot;),t[0]+&quot;$1&quot;+t[1])})),e}))}));var o=new RegExp(&quot;\\&quot;+i+&quot;([0-9]+)\\&quot;+i);return a?r:function t(e,r,n){for(var i,a=[],s=0;i=o.exec(e);){if(s++&gt;1e4)throw Error(&quot;Circular references in parenthesis&quot;);a.push(e.slice(0,i.index)),a.push(t(r[i[1]],r)),e=e.slice(i.index+i[0].length)}return a.push(e),a}(r[0],r)}function i(t,e){if(e&amp;&amp;e.flat){var r,n=e&amp;&amp;e.escape||&quot;___&quot;,i=t[0];if(!i)return&quot;&quot;;for(var a=new RegExp(&quot;\\&quot;+n+&quot;([0-9]+)\\&quot;+n),o=0;i!=r;){if(o++&gt;1e4)throw Error(&quot;Circular references in &quot;+t);r=i,i=i.replace(a,s)}return i}return t.reduce((function t(e,r){return Array.isArray(r)&amp;&amp;(r=r.reduce(t,&quot;&quot;)),e+r}),&quot;&quot;);function s(e,r){if(null==t[r])throw Error(&quot;Reference &quot;+r+&quot;is undefined&quot;);return t[r]}}function a(t,e){return Array.isArray(t)?i(t,e):n(t,e)}a.parse=n,a.stringify=i,e.exports=a},{}],249:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;);e.exports=function(t){var e;arguments.length&gt;1&amp;&amp;(t=arguments);&quot;string&quot;==typeof t?t=t.split(/\s/).map(parseFloat):&quot;number&quot;==typeof t&amp;&amp;(t=[t]);t.length&amp;&amp;&quot;number&quot;==typeof t[0]?e=1===t.length?{width:t[0],height:t[0],x:0,y:0}:2===t.length?{width:t[0],height:t[1],x:0,y:0}:{x:t[0],y:t[1],width:t[2]-t[0]||0,height:t[3]-t[1]||0}:t&amp;&amp;(t=n(t,{left:&quot;x l left Left&quot;,top:&quot;y t top Top&quot;,width:&quot;w width W Width&quot;,height:&quot;h height W Width&quot;,bottom:&quot;b bottom Bottom&quot;,right:&quot;r right Right&quot;}),e={x:t.left||0,y:t.top||0},null==t.width?t.right?e.width=t.right-e.x:e.width=0:e.width=t.width,null==t.height?t.bottom?e.height=t.bottom-e.y:e.height=0:e.height=t.height);return e}},{&quot;pick-by-alias&quot;:253}],250:[function(t,e,r){e.exports=function(t){var e=[];return t.replace(i,(function(t,r,i){var o=r.toLowerCase();for(i=function(t){var e=t.match(a);return e?e.map(Number):[]}(i),&quot;m&quot;==o&amp;&amp;i.length&gt;2&amp;&amp;(e.push([r].concat(i.splice(0,2))),o=&quot;l&quot;,r=&quot;m&quot;==r?&quot;l&quot;:&quot;L&quot;);;){if(i.length==n[o])return i.unshift(r),e.push(i);if(i.length&lt;n[o])throw new Error(&quot;malformed path data&quot;);e.push([r].concat(i.splice(0,n[o])))}})),e};var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var a=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},{}],251:[function(t,e,r){e.exports=function(t,e){e||(e=[0,&quot;&quot;]),t=String(t);var r=parseFloat(t,10);return e[0]=r,e[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||&quot;&quot;,e}},{}],252:[function(t,e,r){(function(t){(function(){(function(){var r,n,i,a,o,s;&quot;undefined&quot;!=typeof performance&amp;&amp;null!==performance&amp;&amp;performance.now?e.exports=function(){return performance.now()}:null!=t&amp;&amp;t.hrtime?(e.exports=function(){return(r()-o)/1e6},n=t.hrtime,a=(r=function(){var t;return 1e9*(t=n())[0]+t[1]})(),s=1e9*t.uptime(),o=a-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:277}],253:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n,a,o={};if(&quot;string&quot;==typeof e&amp;&amp;(e=i(e)),Array.isArray(e)){var s={};for(a=0;a&lt;e.length;a++)s[e[a]]=!0;e=s}for(n in e)e[n]=i(e[n]);var l={};for(n in e){var c=e[n];if(Array.isArray(c))for(a=0;a&lt;c.length;a++){var u=c[a];if(r&amp;&amp;(l[u]=!0),u in t){if(o[n]=t[u],r)for(var f=a;f&lt;c.length;f++)l[c[f]]=!0;break}}else n in t&amp;&amp;(e[n]&amp;&amp;(o[n]=t[n]),r&amp;&amp;(l[n]=!0))}if(r)for(n in t)l[n]||(o[n]=t[n]);return o};var n={};function i(t){return n[t]?n[t]:(&quot;string&quot;==typeof t&amp;&amp;(t=n[t]=t.split(/\s*,\s*|\s+/)),t)}},{}],254:[function(t,e,r){
/*
 * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
 * @license MIT
 * @preserve Project Home: https://github.com/voidqk/polybooljs
 */
var n,i=t(&quot;./lib/build-log&quot;),a=t(&quot;./lib/epsilon&quot;),o=t(&quot;./lib/intersecter&quot;),s=t(&quot;./lib/segment-chainer&quot;),l=t(&quot;./lib/segment-selector&quot;),c=t(&quot;./lib/geojson&quot;),u=!1,f=a();function h(t,e,r){var i=n.segments(t),a=n.segments(e),o=r(n.combine(i,a));return n.polygon(o)}n={buildLog:function(t){return!0===t?u=i():!1===t&amp;&amp;(u=!1),!1!==u&amp;&amp;u.list},epsilon:function(t){return f.epsilon(t)},segments:function(t){var e=o(!0,f,u);return t.regions.forEach(e.addRegion),{segments:e.calculate(t.inverted),inverted:t.inverted}},combine:function(t,e){return{combined:o(!1,f,u).calculate(t.segments,t.inverted,e.segments,e.inverted),inverted1:t.inverted,inverted2:e.inverted}},selectUnion:function(t){return{segments:l.union(t.combined,u),inverted:t.inverted1||t.inverted2}},selectIntersect:function(t){return{segments:l.intersect(t.combined,u),inverted:t.inverted1&amp;&amp;t.inverted2}},selectDifference:function(t){return{segments:l.difference(t.combined,u),inverted:t.inverted1&amp;&amp;!t.inverted2}},selectDifferenceRev:function(t){return{segments:l.differenceRev(t.combined,u),inverted:!t.inverted1&amp;&amp;t.inverted2}},selectXor:function(t){return{segments:l.xor(t.combined,u),inverted:t.inverted1!==t.inverted2}},polygon:function(t){return{regions:s(t.segments,f,u),inverted:t.inverted}},polygonFromGeoJSON:function(t){return c.toPolygon(n,t)},polygonToGeoJSON:function(t){return c.fromPolygon(n,f,t)},union:function(t,e){return h(t,e,n.selectUnion)},intersect:function(t,e){return h(t,e,n.selectIntersect)},difference:function(t,e){return h(t,e,n.selectDifference)},differenceRev:function(t,e){return h(t,e,n.selectDifferenceRev)},xor:function(t,e){return h(t,e,n.selectXor)}},&quot;object&quot;==typeof window&amp;&amp;(window.PolyBool=n),e.exports=n},{&quot;./lib/build-log&quot;:255,&quot;./lib/epsilon&quot;:256,&quot;./lib/geojson&quot;:257,&quot;./lib/intersecter&quot;:258,&quot;./lib/segment-chainer&quot;:260,&quot;./lib/segment-selector&quot;:261}],255:[function(t,e,r){e.exports=function(){var t,e=0,r=!1;function n(e,r){return t.list.push({type:e,data:r?JSON.parse(JSON.stringify(r)):void 0}),t}return t={list:[],segmentId:function(){return e++},checkIntersection:function(t,e){return n(&quot;check&quot;,{seg1:t,seg2:e})},segmentChop:function(t,e){return n(&quot;div_seg&quot;,{seg:t,pt:e}),n(&quot;chop&quot;,{seg:t,pt:e})},statusRemove:function(t){return n(&quot;pop_seg&quot;,{seg:t})},segmentUpdate:function(t){return n(&quot;seg_update&quot;,{seg:t})},segmentNew:function(t,e){return n(&quot;new_seg&quot;,{seg:t,primary:e})},segmentRemove:function(t){return n(&quot;rem_seg&quot;,{seg:t})},tempStatus:function(t,e,r){return n(&quot;temp_status&quot;,{seg:t,above:e,below:r})},rewind:function(t){return n(&quot;rewind&quot;,{seg:t})},status:function(t,e,r){return n(&quot;status&quot;,{seg:t,above:e,below:r})},vert:function(e){return e===r?t:(r=e,n(&quot;vert&quot;,{x:e}))},log:function(t){return&quot;string&quot;!=typeof t&amp;&amp;(t=JSON.stringify(t,!1,&quot;  &quot;)),n(&quot;log&quot;,{txt:t})},reset:function(){return n(&quot;reset&quot;)},selected:function(t){return n(&quot;selected&quot;,{segs:t})},chainStart:function(t){return n(&quot;chain_start&quot;,{seg:t})},chainRemoveHead:function(t,e){return n(&quot;chain_rem_head&quot;,{index:t,pt:e})},chainRemoveTail:function(t,e){return n(&quot;chain_rem_tail&quot;,{index:t,pt:e})},chainNew:function(t,e){return n(&quot;chain_new&quot;,{pt1:t,pt2:e})},chainMatch:function(t){return n(&quot;chain_match&quot;,{index:t})},chainClose:function(t){return n(&quot;chain_close&quot;,{index:t})},chainAddHead:function(t,e){return n(&quot;chain_add_head&quot;,{index:t,pt:e})},chainAddTail:function(t,e){return n(&quot;chain_add_tail&quot;,{index:t,pt:e})},chainConnect:function(t,e){return n(&quot;chain_con&quot;,{index1:t,index2:e})},chainReverse:function(t){return n(&quot;chain_rev&quot;,{index:t})},chainJoin:function(t,e){return n(&quot;chain_join&quot;,{index1:t,index2:e})},done:function(){return n(&quot;done&quot;)}}}},{}],256:[function(t,e,r){e.exports=function(t){&quot;number&quot;!=typeof t&amp;&amp;(t=1e-10);var e={epsilon:function(e){return&quot;number&quot;==typeof e&amp;&amp;(t=e),t},pointAboveOrOnLine:function(e,r,n){var i=r[0],a=r[1],o=n[0],s=n[1],l=e[0];return(o-i)*(e[1]-a)-(s-a)*(l-i)&gt;=-t},pointBetween:function(e,r,n){var i=e[1]-r[1],a=n[0]-r[0],o=e[0]-r[0],s=n[1]-r[1],l=o*a+i*s;return!(l&lt;t)&amp;&amp;!(l-(a*a+s*s)&gt;-t)},pointsSameX:function(e,r){return Math.abs(e[0]-r[0])&lt;t},pointsSameY:function(e,r){return Math.abs(e[1]-r[1])&lt;t},pointsSame:function(t,r){return e.pointsSameX(t,r)&amp;&amp;e.pointsSameY(t,r)},pointsCompare:function(t,r){return e.pointsSameX(t,r)?e.pointsSameY(t,r)?0:t[1]&lt;r[1]?-1:1:t[0]&lt;r[0]?-1:1},pointsCollinear:function(e,r,n){var i=e[0]-r[0],a=e[1]-r[1],o=r[0]-n[0],s=r[1]-n[1];return Math.abs(i*s-o*a)&lt;t},linesIntersect:function(e,r,n,i){var a=r[0]-e[0],o=r[1]-e[1],s=i[0]-n[0],l=i[1]-n[1],c=a*l-o*s;if(Math.abs(c)&lt;t)return!1;var u=e[0]-n[0],f=e[1]-n[1],h=(s*f-l*u)/c,p=(a*f-o*u)/c,d={alongA:0,alongB:0,pt:[e[0]+h*a,e[1]+h*o]};return d.alongA=h&lt;=-t?-2:h&lt;t?-1:h-1&lt;=-t?0:h-1&lt;t?1:2,d.alongB=p&lt;=-t?-2:p&lt;t?-1:p-1&lt;=-t?0:p-1&lt;t?1:2,d},pointInsideRegion:function(e,r){for(var n=e[0],i=e[1],a=r[r.length-1][0],o=r[r.length-1][1],s=!1,l=0;l&lt;r.length;l++){var c=r[l][0],u=r[l][1];u-i&gt;t!=o-i&gt;t&amp;&amp;(a-c)*(i-u)/(o-u)+c-n&gt;t&amp;&amp;(s=!s),a=c,o=u}return s}};return e}},{}],257:[function(t,e,r){var n={toPolygon:function(t,e){function r(e){if(e.length&lt;=0)return t.segments({inverted:!1,regions:[]});function r(e){var r=e.slice(0,e.length-1);return t.segments({inverted:!1,regions:[r]})}for(var n=r(e[0]),i=1;i&lt;e.length;i++)n=t.selectDifference(t.combine(n,r(e[i])));return n}if(&quot;Polygon&quot;===e.type)return t.polygon(r(e.coordinates));if(&quot;MultiPolygon&quot;===e.type){for(var n=t.segments({inverted:!1,regions:[]}),i=0;i&lt;e.coordinates.length;i++)n=t.selectUnion(t.combine(n,r(e.coordinates[i])));return t.polygon(n)}throw new Error(&quot;PolyBool: Cannot convert GeoJSON object to PolyBool polygon&quot;)},fromPolygon:function(t,e,r){function n(t,r){return e.pointInsideRegion([.5*(t[0][0]+t[1][0]),.5*(t[0][1]+t[1][1])],r)}function i(t){return{region:t,children:[]}}r=t.polygon(t.segments(r));var a=i(null);function o(t,e){for(var r=0;r&lt;t.children.length;r++){if(n(e,(s=t.children[r]).region))return void o(s,e)}var a=i(e);for(r=0;r&lt;t.children.length;r++){var s;n((s=t.children[r]).region,e)&amp;&amp;(a.children.push(s),t.children.splice(r,1),r--)}t.children.push(a)}for(var s=0;s&lt;r.regions.length;s++){var l=r.regions[s];l.length&lt;3||o(a,l)}function c(t,e){for(var r=0,n=t[t.length-1][0],i=t[t.length-1][1],a=[],o=0;o&lt;t.length;o++){var s=t[o][0],l=t[o][1];a.push([s,l]),r+=l*n-s*i,n=s,i=l}return r&lt;0!==e&amp;&amp;a.reverse(),a.push([a[0][0],a[0][1]]),a}var u=[];function f(t){var e=[c(t.region,!1)];u.push(e);for(var r=0;r&lt;t.children.length;r++)e.push(h(t.children[r]))}function h(t){for(var e=0;e&lt;t.children.length;e++)f(t.children[e]);return c(t.region,!0)}for(s=0;s&lt;a.children.length;s++)f(a.children[s]);return u.length&lt;=0?{type:&quot;Polygon&quot;,coordinates:[]}:1==u.length?{type:&quot;Polygon&quot;,coordinates:u[0]}:{type:&quot;MultiPolygon&quot;,coordinates:u}}};e.exports=n},{}],258:[function(t,e,r){var n=t(&quot;./linked-list&quot;);e.exports=function(t,e,r){function i(t,e,n){return{id:r?r.segmentId():-1,start:t,end:e,myFill:{above:n.myFill.above,below:n.myFill.below},otherFill:null}}var a=n.create();function o(t,r){a.insertBefore(t,(function(n){return function(t,r,n,i,a,o){var s=e.pointsCompare(r,a);return 0!==s?s:e.pointsSame(n,o)?0:t!==i?t?1:-1:e.pointAboveOrOnLine(n,i?a:o,i?o:a)?1:-1}(t.isStart,t.pt,r,n.isStart,n.pt,n.other.pt)&lt;0}))}function s(t,e){var r=function(t,e){var r=n.node({isStart:!0,pt:t.start,seg:t,primary:e,other:null,status:null});return o(r,t.end),r}(t,e);return function(t,e,r){var i=n.node({isStart:!1,pt:e.end,seg:e,primary:r,other:t,status:null});t.other=i,o(i,t.pt)}(r,t,e),r}function l(t,e){var n=i(e,t.seg.end,t.seg);return function(t,e){r&amp;&amp;r.segmentChop(t.seg,e),t.other.remove(),t.seg.end=e,t.other.pt=e,o(t.other,t.pt)}(t,e),s(n,t.primary)}function c(i,o){var s=n.create();function c(t){return s.findTransition((function(r){var n,i,a,o,s,l;return(n=t,i=r.ev,a=n.seg.start,o=n.seg.end,s=i.seg.start,l=i.seg.end,e.pointsCollinear(a,s,l)?e.pointsCollinear(o,s,l)||e.pointAboveOrOnLine(o,s,l)?1:-1:e.pointAboveOrOnLine(a,s,l)?1:-1)&gt;0}))}function u(t,n){var i=t.seg,a=n.seg,o=i.start,s=i.end,c=a.start,u=a.end;r&amp;&amp;r.checkIntersection(i,a);var f=e.linesIntersect(o,s,c,u);if(!1===f){if(!e.pointsCollinear(o,s,c))return!1;if(e.pointsSame(o,u)||e.pointsSame(s,c))return!1;var h=e.pointsSame(o,c),p=e.pointsSame(s,u);if(h&amp;&amp;p)return n;var d=!h&amp;&amp;e.pointBetween(o,c,u),m=!p&amp;&amp;e.pointBetween(s,c,u);if(h)return m?l(n,s):l(t,u),n;d&amp;&amp;(p||(m?l(n,s):l(t,u)),l(n,o))}else 0===f.alongA&amp;&amp;(-1===f.alongB?l(t,c):0===f.alongB?l(t,f.pt):1===f.alongB&amp;&amp;l(t,u)),0===f.alongB&amp;&amp;(-1===f.alongA?l(n,o):0===f.alongA?l(n,f.pt):1===f.alongA&amp;&amp;l(n,s));return!1}for(var f=[];!a.isEmpty();){var h=a.getHead();if(r&amp;&amp;r.vert(h.pt[0]),h.isStart){r&amp;&amp;r.segmentNew(h.seg,h.primary);var p=c(h),d=p.before?p.before.ev:null,m=p.after?p.after.ev:null;function g(){if(d){var t=u(h,d);if(t)return t}return!!m&amp;&amp;u(h,m)}r&amp;&amp;r.tempStatus(h.seg,!!d&amp;&amp;d.seg,!!m&amp;&amp;m.seg);var v,y=g();if(y){var x;if(t)(x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below)&amp;&amp;(y.seg.myFill.above=!y.seg.myFill.above);else y.seg.otherFill=h.seg.myFill;r&amp;&amp;r.segmentUpdate(y.seg),h.other.remove(),h.remove()}if(a.getHead()!==h){r&amp;&amp;r.rewind(h.seg);continue}if(t)x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below,h.seg.myFill.below=m?m.seg.myFill.above:i,h.seg.myFill.above=x?!h.seg.myFill.below:h.seg.myFill.below;else if(null===h.seg.otherFill)v=m?h.primary===m.primary?m.seg.otherFill.above:m.seg.myFill.above:h.primary?o:i,h.seg.otherFill={above:v,below:v};r&amp;&amp;r.status(h.seg,!!d&amp;&amp;d.seg,!!m&amp;&amp;m.seg),h.other.status=p.insert(n.node({ev:h}))}else{var b=h.status;if(null===b)throw new Error(&quot;PolyBool: Zero-length segment detected; your epsilon is probably too small or too large&quot;);if(s.exists(b.prev)&amp;&amp;s.exists(b.next)&amp;&amp;u(b.prev.ev,b.next.ev),r&amp;&amp;r.statusRemove(b.ev.seg),b.remove(),!h.primary){var _=h.seg.myFill;h.seg.myFill=h.seg.otherFill,h.seg.otherFill=_}f.push(h.seg)}a.getHead().remove()}return r&amp;&amp;r.done(),f}return t?{addRegion:function(t){for(var n,i,a,o=t[t.length-1],l=0;l&lt;t.length;l++){n=o,o=t[l];var c=e.pointsCompare(n,o);0!==c&amp;&amp;s((i=c&lt;0?n:o,a=c&lt;0?o:n,{id:r?r.segmentId():-1,start:i,end:a,myFill:{above:null,below:null},otherFill:null}),!0)}},calculate:function(t){return c(t,!1)}}:{calculate:function(t,e,r,n){return t.forEach((function(t){s(i(t.start,t.end,t),!0)})),r.forEach((function(t){s(i(t.start,t.end,t),!1)})),c(e,n)}}}},{&quot;./linked-list&quot;:259}],259:[function(t,e,r){e.exports={create:function(){var t={root:{root:!0,next:null},exists:function(e){return null!==e&amp;&amp;e!==t.root},isEmpty:function(){return null===t.root.next},getHead:function(){return t.root.next},insertBefore:function(e,r){for(var n=t.root,i=t.root.next;null!==i;){if(r(i))return e.prev=i.prev,e.next=i,i.prev.next=e,void(i.prev=e);n=i,i=i.next}n.next=e,e.prev=n,e.next=null},findTransition:function(e){for(var r=t.root,n=t.root.next;null!==n&amp;&amp;!e(n);)r=n,n=n.next;return{before:r===t.root?null:r,after:n,insert:function(t){return t.prev=r,t.next=n,r.next=t,null!==n&amp;&amp;(n.prev=t),t}}}};return t},node:function(t){return t.prev=null,t.next=null,t.remove=function(){t.prev.next=t.next,t.next&amp;&amp;(t.next.prev=t.prev),t.prev=null,t.next=null},t}}},{}],260:[function(t,e,r){e.exports=function(t,e,r){var n=[],i=[];return t.forEach((function(t){var a=t.start,o=t.end;if(e.pointsSame(a,o))console.warn(&quot;PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large&quot;);else{r&amp;&amp;r.chainStart(t);for(var s={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},c=s,u=0;u&lt;n.length;u++){var f=(g=n[u])[0],h=(g[1],g[g.length-1]);g[g.length-2];if(e.pointsSame(f,a)){if(k(u,!0,!0))break}else if(e.pointsSame(f,o)){if(k(u,!0,!1))break}else if(e.pointsSame(h,a)){if(k(u,!1,!0))break}else if(e.pointsSame(h,o)&amp;&amp;k(u,!1,!1))break}if(c===s)return n.push([a,o]),void(r&amp;&amp;r.chainNew(a,o));if(c===l){r&amp;&amp;r.chainMatch(s.index);var p=s.index,d=s.matches_pt1?o:a,m=s.matches_head,g=n[p],v=m?g[0]:g[g.length-1],y=m?g[1]:g[g.length-2],x=m?g[g.length-1]:g[0],b=m?g[g.length-2]:g[1];return e.pointsCollinear(y,v,d)&amp;&amp;(m?(r&amp;&amp;r.chainRemoveHead(s.index,d),g.shift()):(r&amp;&amp;r.chainRemoveTail(s.index,d),g.pop()),v=y),e.pointsSame(x,d)?(n.splice(p,1),e.pointsCollinear(b,x,v)&amp;&amp;(m?(r&amp;&amp;r.chainRemoveTail(s.index,v),g.pop()):(r&amp;&amp;r.chainRemoveHead(s.index,v),g.shift())),r&amp;&amp;r.chainClose(s.index),void i.push(g)):void(m?(r&amp;&amp;r.chainAddHead(s.index,d),g.unshift(d)):(r&amp;&amp;r.chainAddTail(s.index,d),g.push(d)))}var _=s.index,w=l.index;r&amp;&amp;r.chainConnect(_,w);var T=n[_].length&lt;n[w].length;s.matches_head?l.matches_head?T?(A(_),M(_,w)):(A(w),M(w,_)):M(w,_):l.matches_head?M(_,w):T?(A(_),M(w,_)):(A(w),M(_,w))}function k(t,e,r){return c.index=t,c.matches_head=e,c.matches_pt1=r,c===s?(c=l,!1):(c=null,!0)}function A(t){r&amp;&amp;r.chainReverse(t),n[t].reverse()}function M(t,i){var a=n[t],o=n[i],s=a[a.length-1],l=a[a.length-2],c=o[0],u=o[1];e.pointsCollinear(l,s,c)&amp;&amp;(r&amp;&amp;r.chainRemoveTail(t,s),a.pop(),s=l),e.pointsCollinear(s,c,u)&amp;&amp;(r&amp;&amp;r.chainRemoveHead(i,c),o.shift()),r&amp;&amp;r.chainJoin(t,i),n[t]=a.concat(o),n.splice(i,1)}})),i}},{}],261:[function(t,e,r){function n(t,e,r){var n=[];return t.forEach((function(t){var i=(t.myFill.above?8:0)+(t.myFill.below?4:0)+(t.otherFill&amp;&amp;t.otherFill.above?2:0)+(t.otherFill&amp;&amp;t.otherFill.below?1:0);0!==e[i]&amp;&amp;n.push({id:r?r.segmentId():-1,start:t.start,end:t.end,myFill:{above:1===e[i],below:2===e[i]},otherFill:null})})),r&amp;&amp;r.selected(n),n}var i={union:function(t,e){return n(t,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],e)},intersect:function(t,e){return n(t,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],e)},difference:function(t,e){return n(t,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],e)},differenceRev:function(t,e){return n(t,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],e)},xor:function(t,e){return n(t,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],e)}};e.exports=i},{}],262:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;stream&quot;).Transform,i=t(&quot;stream-parser&quot;);function a(){n.call(this,{readableObjectMode:!0})}function o(t,e,r){Error.call(this),Error.captureStackTrace(this,this.constructor),this.name=this.constructor.name,this.message=t,e&amp;&amp;(this.code=e),r&amp;&amp;(this.statusCode=r)}a.prototype=Object.create(n.prototype),a.prototype.constructor=a,i(a.prototype),r.ParserStream=a,r.sliceEq=function(t,e,r){for(var n=e,i=0;i&lt;r.length;)if(t[n++]!==r[i++])return!1;return!0},r.str2arr=function(t,e){var r=[],n=0;if(e&amp;&amp;&quot;hex&quot;===e)for(;n&lt;t.length;)r.push(parseInt(t.slice(n,n+2),16)),n+=2;else for(;n&lt;t.length;n++)r.push(255&amp;t.charCodeAt(n));return r},r.readUInt16LE=function(t,e){return t[e]|t[e+1]&lt;&lt;8},r.readUInt16BE=function(t,e){return t[e+1]|t[e]&lt;&lt;8},r.readUInt32LE=function(t,e){return t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16|16777216*t[e+3]},r.readUInt32BE=function(t,e){return t[e+3]|t[e+2]&lt;&lt;8|t[e+1]&lt;&lt;16|16777216*t[e]},o.prototype=Object.create(Error.prototype),o.prototype.constructor=o,r.ProbeError=o},{stream:285,&quot;stream-parser&quot;:301}],263:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=new Error(t);return r.code=e,r}function i(t){try{return decodeURIComponent(escape(t))}catch(e){return t}}function a(t,e,r){this.input=t.subarray(e,r),this.start=e;var i=String.fromCharCode.apply(null,this.input.subarray(0,4));if(&quot;II*\0&quot;!==i&amp;&amp;&quot;MM\0*&quot;!==i)throw n(&quot;invalid TIFF signature&quot;,&quot;EBADDATA&quot;);this.big_endian=&quot;M&quot;===i[0]}a.prototype.each=function(t){this.aborted=!1;var e=this.read_uint32(4);for(this.ifds_to_read=[{id:0,offset:e}];this.ifds_to_read.length&gt;0&amp;&amp;!this.aborted;){var r=this.ifds_to_read.shift();r.offset&amp;&amp;this.scan_ifd(r.id,r.offset,t)}},a.prototype.read_uint16=function(t){var e=this.input;if(t+2&gt;e.length)throw n(&quot;unexpected EOF&quot;,&quot;EBADDATA&quot;);return this.big_endian?256*e[t]+e[t+1]:e[t]+256*e[t+1]},a.prototype.read_uint32=function(t){var e=this.input;if(t+4&gt;e.length)throw n(&quot;unexpected EOF&quot;,&quot;EBADDATA&quot;);return this.big_endian?16777216*e[t]+65536*e[t+1]+256*e[t+2]+e[t+3]:e[t]+256*e[t+1]+65536*e[t+2]+16777216*e[t+3]},a.prototype.is_subifd_link=function(t,e){return 0===t&amp;&amp;34665===e||0===t&amp;&amp;34853===e||34665===t&amp;&amp;40965===e},a.prototype.exif_format_length=function(t){switch(t){case 1:case 2:case 6:case 7:return 1;case 3:case 8:return 2;case 4:case 9:case 11:return 4;case 5:case 10:case 12:return 8;default:return 0}},a.prototype.exif_format_read=function(t,e){var r;switch(t){case 1:case 2:return r=this.input[e];case 6:return(r=this.input[e])|33554430*(128&amp;r);case 3:return r=this.read_uint16(e);case 8:return(r=this.read_uint16(e))|131070*(32768&amp;r);case 4:return r=this.read_uint32(e);case 9:return 0|(r=this.read_uint32(e));case 5:case 10:case 11:case 12:case 7:default:return null}},a.prototype.scan_ifd=function(t,e,r){var a=this.read_uint16(e);e+=2;for(var o=0;o&lt;a;o++){var s=this.read_uint16(e),l=this.read_uint16(e+2),c=this.read_uint32(e+4),u=this.exif_format_length(l),f=c*u,h=f&lt;=4?e+8:this.read_uint32(e+8),p=!1;if(h+f&gt;this.input.length)throw n(&quot;unexpected EOF&quot;,&quot;EBADDATA&quot;);for(var d=[],m=h,g=0;g&lt;c;g++,m+=u){var v=this.exif_format_read(l,m);if(null===v){d=null;break}d.push(v)}if(Array.isArray(d)&amp;&amp;2===l&amp;&amp;(d=i(String.fromCharCode.apply(null,d)))&amp;&amp;&quot;\0&quot;===d[d.length-1]&amp;&amp;(d=d.slice(0,-1)),this.is_subifd_link(t,s)&amp;&amp;Array.isArray(d)&amp;&amp;Number.isInteger(d[0])&amp;&amp;d[0]&gt;0&amp;&amp;(this.ifds_to_read.push({id:s,offset:d[0]}),p=!0),!1===r({is_big_endian:this.big_endian,ifd:t,tag:s,format:l,count:c,entry_offset:e+this.start,data_length:f,data_offset:h+this.start,value:d,is_subifd_link:p}))return void(this.aborted=!0);e+=12}0===t&amp;&amp;this.ifds_to_read.push({id:1,offset:this.read_uint32(e)})},e.exports.ExifParser=a,e.exports.get_orientation=function(t){var e=0;try{return new a(t,0,t.length).each((function(t){if(0===t.ifd&amp;&amp;274===t.tag&amp;&amp;Array.isArray(t.value))return e=t.value[0],!1})),e}catch(t){return-1}}},{}],264:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./common&quot;).readUInt16BE,i=t(&quot;./common&quot;).readUInt32BE;function a(t,e){if(t.length&lt;4+e)return null;var r=i(t,e);return t.length&lt;r+e||r&lt;8?null:{boxtype:String.fromCharCode.apply(null,t.slice(e+4,e+8)),data:t.slice(e+8,e+r),end:e+r}}function o(t,e){for(var r=0;;){var n=a(t,r);if(!n)break;switch(n.boxtype){case&quot;ispe&quot;:e.sizes.push({width:i(n.data,4),height:i(n.data,8)});break;case&quot;irot&quot;:e.transforms.push({type:&quot;irot&quot;,value:3&amp;n.data[0]});break;case&quot;imir&quot;:e.transforms.push({type:&quot;imir&quot;,value:1&amp;n.data[0]})}r=n.end}}function s(t,e,r){for(var n=0,i=0;i&lt;r;i++)n=256*n+(t[e+i]||0);return n}function l(t,e){for(var r=t[4]&gt;&gt;4&amp;15,i=15&amp;t[4],a=t[5]&gt;&gt;4&amp;15,o=n(t,6),l=8,c=0;c&lt;o;c++){var u=n(t,l),f=n(t,l+=2),h=s(t,l+=2,a),p=n(t,l+=a);if(l+=2,0===f&amp;&amp;1===p){var d=s(t,l,r),m=s(t,l+r,i);e.item_loc[u]={length:m,offset:d+h}}l+=p*(r+i)}}function c(t,e){for(var r=n(t,4),i=6,o=0;o&lt;r;o++){var s=a(t,i);if(!s)break;if(&quot;infe&quot;===s.boxtype){for(var l=n(s.data,4),c=&quot;&quot;,u=8;u&lt;s.data.length&amp;&amp;s.data[u];u++)c+=String.fromCharCode(s.data[u]);e.item_inf[c]=l}i=s.end}}function u(t,e){for(var r=0;;){var n=a(t,r);if(!n)break;&quot;ipco&quot;===n.boxtype&amp;&amp;o(n.data,e),r=n.end}}e.exports.unbox=a,e.exports.readSizeFromMeta=function(t){var e={sizes:[],transforms:[],item_inf:{},item_loc:{}};if(function(t,e){for(var r=4;;){var n=a(t,r);if(!n)break;&quot;iprp&quot;===n.boxtype&amp;&amp;u(n.data,e),&quot;iloc&quot;===n.boxtype&amp;&amp;l(n.data,e),&quot;iinf&quot;===n.boxtype&amp;&amp;c(n.data,e),r=n.end}}(t,e),e.sizes.length){var r,n,i,o=(r=e.sizes,n=r.reduce((function(t,e){return t.width&gt;e.width||t.width===e.width&amp;&amp;t.height&gt;e.height?t:e})),i=r.reduce((function(t,e){return t.height&gt;e.height||t.height===e.height&amp;&amp;t.width&gt;e.width?t:e})),n.width&gt;i.height||n.width===i.height&amp;&amp;n.height&gt;i.width?n:i),s=1;e.transforms.forEach((function(t){var e={1:6,2:5,3:8,4:7,5:4,6:3,7:2,8:1},r={1:4,2:3,3:2,4:1,5:6,6:5,7:8,8:7};if(&quot;imir&quot;===t.type&amp;&amp;(s=0===t.value?r[s]:e[s=e[s=r[s]]]),&quot;irot&quot;===t.type)for(var n=0;n&lt;t.value;n++)s=e[s]}));var f=null;return e.item_inf.Exif&amp;&amp;(f=e.item_loc[e.item_inf.Exif]),{width:o.width,height:o.height,orientation:e.transforms.length?s:null,variants:e.sizes,exif_location:f}}},e.exports.getMimeType=function(t){var e=String.fromCharCode.apply(null,t.slice(0,4)),r={};r[e]=!0;for(var n=8;n&lt;t.length;n+=4)r[String.fromCharCode.apply(null,t.slice(n,n+4))]=!0;if(r.mif1||r.msf1||r.miaf)return&quot;avif&quot;===e||&quot;avis&quot;===e||&quot;avio&quot;===e?{type:&quot;avif&quot;,mime:&quot;image/avif&quot;}:&quot;heic&quot;===e||&quot;heix&quot;===e?{type:&quot;heic&quot;,mime:&quot;image/heic&quot;}:&quot;hevc&quot;===e||&quot;hevx&quot;===e?{type:&quot;heic&quot;,mime:&quot;image/heic-sequence&quot;}:r.avif||r.avis?{type:&quot;avif&quot;,mime:&quot;image/avif&quot;}:r.heic||r.heix||r.hevc||r.hevx||r.heis?r.msf1?{type:&quot;heif&quot;,mime:&quot;image/heif-sequence&quot;}:{type:&quot;heif&quot;,mime:&quot;image/heif&quot;}:{type:&quot;avif&quot;,mime:&quot;image/avif&quot;}}},{&quot;./common&quot;:262}],265:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt32BE,o=t(&quot;../miaf_utils&quot;),s=t(&quot;../exif_utils&quot;),l=n(&quot;ftyp&quot;);e.exports=function(t){if(i(t,4,l)){var e=o.unbox(t,0);if(e){var r=o.getMimeType(e.data);if(r){for(var n,c=e.end;;){var u=o.unbox(t,c);if(!u)break;if(c=u.end,&quot;mdat&quot;===u.boxtype)return;if(&quot;meta&quot;===u.boxtype){n=u.data;break}}if(n){var f=o.readSizeFromMeta(n);if(f){var h={width:f.width,height:f.height,type:r.type,mime:r.mime,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;};if(f.variants.length&gt;1&amp;&amp;(h.variants=f.variants),f.orientation&amp;&amp;(h.orientation=f.orientation),f.exif_location&amp;&amp;f.exif_location.offset+f.exif_location.length&lt;=t.length){var p=a(t,f.exif_location.offset),d=t.slice(f.exif_location.offset+p+4,f.exif_location.offset+f.exif_location.length),m=s.get_orientation(d);m&gt;0&amp;&amp;(h.orientation=m)}return h}}}}}}},{&quot;../common&quot;:262,&quot;../exif_utils&quot;:263,&quot;../miaf_utils&quot;:264}],266:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt16LE,o=n(&quot;BM&quot;);e.exports=function(t){if(!(t.length&lt;26)&amp;&amp;i(t,0,o))return{width:a(t,18),height:a(t,22),type:&quot;bmp&quot;,mime:&quot;image/bmp&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}},{&quot;../common&quot;:262}],267:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt16LE,o=n(&quot;GIF87a&quot;),s=n(&quot;GIF89a&quot;);e.exports=function(t){if(!(t.length&lt;10)&amp;&amp;(i(t,0,o)||i(t,0,s)))return{width:a(t,6),height:a(t,8),type:&quot;gif&quot;,mime:&quot;image/gif&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}},{&quot;../common&quot;:262}],268:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).readUInt16LE;e.exports=function(t){var e=n(t,0),r=n(t,2),i=n(t,4);if(0===e&amp;&amp;1===r&amp;&amp;i){for(var a=[],o={width:0,height:0},s=0;s&lt;i;s++){var l=t[6+16*s]||256,c=t[6+16*s+1]||256,u={width:l,height:c};a.push(u),(l&gt;o.width||c&gt;o.height)&amp;&amp;(o=u)}return{width:o.width,height:o.height,variants:a,type:&quot;ico&quot;,mime:&quot;image/x-icon&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}}},{&quot;../common&quot;:262}],269:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).readUInt16BE,i=t(&quot;../common&quot;).str2arr,a=t(&quot;../common&quot;).sliceEq,o=t(&quot;../exif_utils&quot;),s=i(&quot;Exif\0\0&quot;);e.exports=function(t){if(!(t.length&lt;2)&amp;&amp;255===t[0]&amp;&amp;216===t[1]&amp;&amp;255===t[2])for(var e=2;;){for(;;){if(t.length-e&lt;2)return;if(255===t[e++])break}for(var r,i,l=t[e++];255===l;)l=t[e++];if(208&lt;=l&amp;&amp;l&lt;=217||1===l)r=0;else{if(!(192&lt;=l&amp;&amp;l&lt;=254))return;if(t.length-e&lt;2)return;r=n(t,e)-2,e+=2}if(217===l||218===l)return;if(225===l&amp;&amp;r&gt;=10&amp;&amp;a(t,e,s)&amp;&amp;(i=o.get_orientation(t.slice(e+6,e+r))),r&gt;=5&amp;&amp;192&lt;=l&amp;&amp;l&lt;=207&amp;&amp;196!==l&amp;&amp;200!==l&amp;&amp;204!==l){if(t.length-e&lt;r)return;var c={width:n(t,e+3),height:n(t,e+1),type:&quot;jpg&quot;,mime:&quot;image/jpeg&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;};return i&gt;0&amp;&amp;(c.orientation=i),c}e+=r}}},{&quot;../common&quot;:262,&quot;../exif_utils&quot;:263}],270:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt32BE,o=n(&quot;\x89PNG\r\n\x1a\n&quot;),s=n(&quot;IHDR&quot;);e.exports=function(t){if(!(t.length&lt;24)&amp;&amp;i(t,0,o)&amp;&amp;i(t,12,s))return{width:a(t,16),height:a(t,20),type:&quot;png&quot;,mime:&quot;image/png&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}},{&quot;../common&quot;:262}],271:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt32BE,o=n(&quot;8BPS\0\x01&quot;);e.exports=function(t){if(!(t.length&lt;22)&amp;&amp;i(t,0,o))return{width:a(t,18),height:a(t,14),type:&quot;psd&quot;,mime:&quot;image/vnd.adobe.photoshop&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}},{&quot;../common&quot;:262}],272:[function(t,e,r){&quot;use strict&quot;;function n(t){return&quot;number&quot;==typeof t&amp;&amp;isFinite(t)&amp;&amp;t&gt;0}var i=/&lt;[-_.:a-zA-Z0-9][^&gt;]*&gt;/,a=/^&lt;([-_.:a-zA-Z0-9]+:)?svg\s/,o=/[^-]\bwidth=&quot;([^%]+?)&quot;|[^-]\bwidth='([^%]+?)'/,s=/\bheight=&quot;([^%]+?)&quot;|\bheight='([^%]+?)'/,l=/\bview[bB]ox=&quot;(.+?)&quot;|\bview[bB]ox='(.+?)'/,c=/in$|mm$|cm$|pt$|pc$|px$|em$|ex$/;function u(t){return c.test(t)?t.match(c)[0]:&quot;px&quot;}e.exports=function(t){if(function(t){var e,r=0,n=t.length;for(239===t[0]&amp;&amp;187===t[1]&amp;&amp;191===t[2]&amp;&amp;(r=3);r&lt;n&amp;&amp;(32===(e=t[r])||9===e||13===e||10===e);)r++;return r!==n&amp;&amp;60===t[r]}(t)){for(var e=&quot;&quot;,r=0;r&lt;t.length;r++)e+=String.fromCharCode(t[r]);var c=(e.match(i)||[&quot;&quot;])[0];if(a.test(c)){var f=function(t){var e=t.match(o),r=t.match(s),n=t.match(l);return{width:e&amp;&amp;(e[1]||e[2]),height:r&amp;&amp;(r[1]||r[2]),viewbox:n&amp;&amp;(n[1]||n[2])}}(c),h=parseFloat(f.width),p=parseFloat(f.height);if(f.width&amp;&amp;f.height){if(!n(h)||!n(p))return;return{width:h,height:p,type:&quot;svg&quot;,mime:&quot;image/svg+xml&quot;,wUnits:u(f.width),hUnits:u(f.height)}}var d=(f.viewbox||&quot;&quot;).split(&quot; &quot;),m={width:d[2],height:d[3]},g=parseFloat(m.width),v=parseFloat(m.height);if(n(g)&amp;&amp;n(v)&amp;&amp;u(m.width)===u(m.height)){var y=g/v;if(f.width){if(!n(h))return;return{width:h,height:h/y,type:&quot;svg&quot;,mime:&quot;image/svg+xml&quot;,wUnits:u(f.width),hUnits:u(f.width)}}if(f.height){if(!n(p))return;return{width:p*y,height:p,type:&quot;svg&quot;,mime:&quot;image/svg+xml&quot;,wUnits:u(f.height),hUnits:u(f.height)}}return{width:g,height:v,type:&quot;svg&quot;,mime:&quot;image/svg+xml&quot;,wUnits:u(m.width),hUnits:u(m.height)}}}}}},{}],273:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt16LE,o=t(&quot;../common&quot;).readUInt16BE,s=t(&quot;../common&quot;).readUInt32LE,l=t(&quot;../common&quot;).readUInt32BE,c=n(&quot;II*\0&quot;),u=n(&quot;MM\0*&quot;);function f(t,e,r){return r?o(t,e):a(t,e)}function h(t,e,r){return r?l(t,e):s(t,e)}function p(t,e,r){var n=f(t,e+2,r);return 1!==h(t,e+4,r)||3!==n&amp;&amp;4!==n?null:3===n?f(t,e+8,r):h(t,e+8,r)}e.exports=function(t){if(!(t.length&lt;8)&amp;&amp;(i(t,0,c)||i(t,0,u))){var e=77===t[0],r=h(t,4,e)-8;if(!(r&lt;0)){var n=r+8;if(!(t.length-n&lt;2)){var a=12*f(t,n+0,e);if(!(a&lt;=0||(n+=2,t.length-n&lt;a))){var o,s,l,d;for(o=0;o&lt;a;o+=12)256===(d=f(t,n+o,e))?s=p(t,n+o,e):257===d&amp;&amp;(l=p(t,n+o,e));return s&amp;&amp;l?{width:s,height:l,type:&quot;tiff&quot;,mime:&quot;image/tiff&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}:void 0}}}}}},{&quot;../common&quot;:262}],274:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../common&quot;).str2arr,i=t(&quot;../common&quot;).sliceEq,a=t(&quot;../common&quot;).readUInt16LE,o=t(&quot;../common&quot;).readUInt32LE,s=t(&quot;../exif_utils&quot;),l=n(&quot;RIFF&quot;),c=n(&quot;WEBP&quot;);function u(t,e){if(157===t[e+3]&amp;&amp;1===t[e+4]&amp;&amp;42===t[e+5])return{width:16383&amp;a(t,e+6),height:16383&amp;a(t,e+8),type:&quot;webp&quot;,mime:&quot;image/webp&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}function f(t,e){if(47===t[e]){var r=o(t,e+1);return{width:1+(16383&amp;r),height:1+(r&gt;&gt;14&amp;16383),type:&quot;webp&quot;,mime:&quot;image/webp&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}}function h(t,e){return{width:1+(t[e+6]&lt;&lt;16|t[e+5]&lt;&lt;8|t[e+4]),height:1+(t[e+9]&lt;&lt;e|t[e+8]&lt;&lt;8|t[e+7]),type:&quot;webp&quot;,mime:&quot;image/webp&quot;,wUnits:&quot;px&quot;,hUnits:&quot;px&quot;}}e.exports=function(t){if(!(t.length&lt;16)&amp;&amp;(i(t,0,l)||i(t,8,c))){var e=12,r=null,n=0,a=o(t,4)+8;if(!(a&gt;t.length)){for(;e+8&lt;a;)if(0!==t[e]){var p=String.fromCharCode.apply(null,t.slice(e,e+4)),d=o(t,e+4);&quot;VP8 &quot;===p&amp;&amp;d&gt;=10?r=r||u(t,e+8):&quot;VP8L&quot;===p&amp;&amp;d&gt;=9?r=r||f(t,e+8):&quot;VP8X&quot;===p&amp;&amp;d&gt;=10?r=r||h(t,e+8):&quot;EXIF&quot;===p&amp;&amp;(n=s.get_orientation(t.slice(e+8,e+8+d)),e=1/0),e+=8+d}else e++;if(r)return n&gt;0&amp;&amp;(r.orientation=n),r}}}},{&quot;../common&quot;:262,&quot;../exif_utils&quot;:263}],275:[function(t,e,r){&quot;use strict&quot;;e.exports={avif:t(&quot;./parse_sync/avif&quot;),bmp:t(&quot;./parse_sync/bmp&quot;),gif:t(&quot;./parse_sync/gif&quot;),ico:t(&quot;./parse_sync/ico&quot;),jpeg:t(&quot;./parse_sync/jpeg&quot;),png:t(&quot;./parse_sync/png&quot;),psd:t(&quot;./parse_sync/psd&quot;),svg:t(&quot;./parse_sync/svg&quot;),tiff:t(&quot;./parse_sync/tiff&quot;),webp:t(&quot;./parse_sync/webp&quot;)}},{&quot;./parse_sync/avif&quot;:265,&quot;./parse_sync/bmp&quot;:266,&quot;./parse_sync/gif&quot;:267,&quot;./parse_sync/ico&quot;:268,&quot;./parse_sync/jpeg&quot;:269,&quot;./parse_sync/png&quot;:270,&quot;./parse_sync/psd&quot;:271,&quot;./parse_sync/svg&quot;:272,&quot;./parse_sync/tiff&quot;:273,&quot;./parse_sync/webp&quot;:274}],276:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/parsers_sync&quot;);e.exports=function(t){return function(t){for(var e=Object.keys(n),r=0;r&lt;e.length;r++){var i=n[e[r]](t);if(i)return i}return null}(t)},e.exports.parsers=n},{&quot;./lib/parsers_sync&quot;:275}],277:[function(t,e,r){var n,i,a=e.exports={};function o(){throw new Error(&quot;setTimeout has not been defined&quot;)}function s(){throw new Error(&quot;clearTimeout has not been defined&quot;)}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&amp;&amp;setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n=&quot;function&quot;==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i=&quot;function&quot;==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,u=[],f=!1,h=-1;function p(){f&amp;&amp;c&amp;&amp;(f=!1,c.length?u=c.concat(u):h=-1,u.length&amp;&amp;d())}function d(){if(!f){var t=l(p);f=!0;for(var e=u.length;e;){for(c=u,u=[];++h&lt;e;)c&amp;&amp;c[h].run();h=-1,e=u.length}c=null,f=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&amp;&amp;clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function m(t,e){this.fun=t,this.array=e}function g(){}a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length&gt;1)for(var r=1;r&lt;arguments.length;r++)e[r-1]=arguments[r];u.push(new m(t,e)),1!==u.length||f||l(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},a.title=&quot;browser&quot;,a.browser=!0,a.env={},a.argv=[],a.version=&quot;&quot;,a.versions={},a.on=g,a.addListener=g,a.once=g,a.off=g,a.removeListener=g,a.removeAllListeners=g,a.emit=g,a.prependListener=g,a.prependOnceListener=g,a.listeners=function(t){return[]},a.binding=function(t){throw new Error(&quot;process.binding is not supported&quot;)},a.cwd=function(){return&quot;/&quot;},a.chdir=function(t){throw new Error(&quot;process.chdir is not supported&quot;)},a.umask=function(){return 0}},{}],278:[function(t,e,r){(function(r){(function(){for(var n=t(&quot;performance-now&quot;),i=&quot;undefined&quot;==typeof window?r:window,a=[&quot;moz&quot;,&quot;webkit&quot;],o=&quot;AnimationFrame&quot;,s=i[&quot;request&quot;+o],l=i[&quot;cancel&quot;+o]||i[&quot;cancelRequest&quot;+o],c=0;!s&amp;&amp;c&lt;a.length;c++)s=i[a[c]+&quot;Request&quot;+o],l=i[a[c]+&quot;Cancel&quot;+o]||i[a[c]+&quot;CancelRequest&quot;+o];if(!s||!l){var u=0,f=0,h=[];s=function(t){if(0===h.length){var e=n(),r=Math.max(0,1e3/60-(e-u));u=r+e,setTimeout((function(){var t=h.slice(0);h.length=0;for(var e=0;e&lt;t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(r))}return h.push({handle:++f,callback:t,cancelled:!1}),f},l=function(t){for(var e=0;e&lt;h.length;e++)h[e].handle===t&amp;&amp;(h[e].cancelled=!0)}}e.exports=function(t){return s.call(i,t)},e.exports.cancel=function(){l.apply(i,arguments)},e.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=s,t.cancelAnimationFrame=l}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;performance-now&quot;:252}],279:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;array-bounds&quot;),i=t(&quot;color-normalize&quot;),a=t(&quot;update-diff&quot;),o=t(&quot;pick-by-alias&quot;),s=t(&quot;object-assign&quot;),l=t(&quot;flatten-vertex-data&quot;),c=t(&quot;to-float32&quot;),u=c.float32,f=c.fract32;e.exports=function(t,e){&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):e=t;e.length&amp;&amp;(e.positions=e);if(!(t=e.regl).hasExtension(&quot;ANGLE_instanced_arrays&quot;))throw Error(&quot;regl-error2d: `ANGLE_instanced_arrays` extension should be enabled&quot;);var r,c,p,d,m,g,v=t._gl,y={color:&quot;black&quot;,capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},x=[];return d=t.buffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:new Uint8Array(0)}),c=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),p=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),m=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),g=t.buffer({usage:&quot;static&quot;,type:&quot;float&quot;,data:h}),T(e),r=t({vert:&quot;\n\t\tprecision highp float;\n\n\t\tattribute vec2 position, positionFract;\n\t\tattribute vec4 error;\n\t\tattribute vec4 color;\n\n\t\tattribute vec2 direction, lineOffset, capOffset;\n\n\t\tuniform vec4 viewport;\n\t\tuniform float lineWidth, capSize;\n\t\tuniform vec2 scale, scaleFract, translate, translateFract;\n\n\t\tvarying vec4 fragColor;\n\n\t\tvoid main() {\n\t\t\tfragColor = color / 255.;\n\n\t\t\tvec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;\n\n\t\t\tvec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;\n\n\t\t\tvec2 position = position + dxy;\n\n\t\t\tvec2 pos = (position + translate) * scale\n\t\t\t\t+ (positionFract + translateFract) * scale\n\t\t\t\t+ (position + translate) * scaleFract\n\t\t\t\t+ (positionFract + translateFract) * scaleFract;\n\n\t\t\tpos += pixelOffset / viewport.zw;\n\n\t\t\tgl_Position = vec4(pos * 2. - 1., 0, 1);\n\t\t}\n\t\t&quot;,frag:&quot;\n\t\tprecision highp float;\n\n\t\tvarying vec4 fragColor;\n\n\t\tuniform float opacity;\n\n\t\tvoid main() {\n\t\t\tgl_FragColor = fragColor;\n\t\t\tgl_FragColor.a *= opacity;\n\t\t}\n\t\t&quot;,uniforms:{range:t.prop(&quot;range&quot;),lineWidth:t.prop(&quot;lineWidth&quot;),capSize:t.prop(&quot;capSize&quot;),opacity:t.prop(&quot;opacity&quot;),scale:t.prop(&quot;scale&quot;),translate:t.prop(&quot;translate&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{color:{buffer:d,offset:function(t,e){return 4*e.offset},divisor:1},position:{buffer:c,offset:function(t,e){return 8*e.offset},divisor:1},positionFract:{buffer:p,offset:function(t,e){return 8*e.offset},divisor:1},error:{buffer:m,offset:function(t,e){return 16*e.offset},divisor:1},direction:{buffer:g,stride:24,offset:0},lineOffset:{buffer:g,stride:24,offset:8},capOffset:{buffer:g,stride:24,offset:16}},primitive:&quot;triangles&quot;,blend:{enable:!0,color:[0,0,0,0],equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},depth:{enable:!1},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;),stencil:!1,instances:t.prop(&quot;count&quot;),count:h.length}),s(b,{update:T,draw:_,destroy:k,regl:t,gl:v,canvas:v.canvas,groups:x}),b;function b(t){t?T(t):null===t&amp;&amp;k(),_()}function _(e){if(&quot;number&quot;==typeof e)return w(e);e&amp;&amp;!Array.isArray(e)&amp;&amp;(e=[e]),t._refresh(),x.forEach((function(t,r){t&amp;&amp;(e&amp;&amp;(e[r]?t.draw=!0:t.draw=!1),t.draw?w(r):t.draw=!0)}))}function w(t){&quot;number&quot;==typeof t&amp;&amp;(t=x[t]),null!=t&amp;&amp;t&amp;&amp;t.count&amp;&amp;t.color&amp;&amp;t.opacity&amp;&amp;t.positions&amp;&amp;t.positions.length&gt;1&amp;&amp;(t.scaleRatio=[t.scale[0]*t.viewport.width,t.scale[1]*t.viewport.height],r(t),t.after&amp;&amp;t.after(t))}function T(t){if(t){null!=t.length?&quot;number&quot;==typeof t[0]&amp;&amp;(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var e=0,r=0;if(b.groups=x=t.map((function(t,c){var u=x[c];return t?(&quot;function&quot;==typeof t?t={after:t}:&quot;number&quot;==typeof t[0]&amp;&amp;(t={positions:t}),t=o(t,{color:&quot;color colors fill&quot;,capSize:&quot;capSize cap capsize cap-size&quot;,lineWidth:&quot;lineWidth line-width width line thickness&quot;,opacity:&quot;opacity alpha&quot;,range:&quot;range dataBox&quot;,viewport:&quot;viewport viewBox&quot;,errors:&quot;errors error&quot;,positions:&quot;positions position data points&quot;}),u||(x[c]=u={id:c,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},t=s({},y,t)),a(u,t,[{lineWidth:function(t){return.5*+t},capSize:function(t){return.5*+t},opacity:parseFloat,errors:function(t){return t=l(t),r+=t.length,t},positions:function(t,r){return t=l(t,&quot;float64&quot;),r.count=Math.floor(t.length/2),r.bounds=n(t,2),r.offset=e,e+=r.count,t}},{color:function(t,e){var r=e.count;if(t||(t=&quot;transparent&quot;),!Array.isArray(t)||&quot;number&quot;==typeof t[0]){var n=t;t=Array(r);for(var a=0;a&lt;r;a++)t[a]=n}if(t.length&lt;r)throw Error(&quot;Not enough colors&quot;);for(var o=new Uint8Array(4*r),s=0;s&lt;r;s++){var l=i(t[s],&quot;uint8&quot;);o.set(l,4*s)}return o},range:function(t,e,r){var n=e.bounds;return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=f(e.scale),e.translateFract=f(e.translate),t},viewport:function(t){var e;return Array.isArray(t)?e={x:t[0],y:t[1],width:t[2]-t[0],height:t[3]-t[1]}:t?(e={x:t.x||t.left||0,y:t.y||t.top||0},t.right?e.width=t.right-e.x:e.width=t.w||t.width||0,t.bottom?e.height=t.bottom-e.y:e.height=t.h||t.height||0):e={x:0,y:0,width:v.drawingBufferWidth,height:v.drawingBufferHeight},e}}]),u):u})),e||r){var h=x.reduce((function(t,e,r){return t+(e?e.count:0)}),0),g=new Float64Array(2*h),_=new Uint8Array(4*h),w=new Float32Array(4*h);x.forEach((function(t,e){if(t){var r=t.positions,n=t.count,i=t.offset,a=t.color,o=t.errors;n&amp;&amp;(_.set(a,4*i),w.set(o,4*i),g.set(r,2*i))}}));var T=u(g);c(T);var k=f(g,T);p(k),d(_),m(w)}}}function k(){c.destroy(),p.destroy(),d.destroy(),m.destroy(),g.destroy()}};var h=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]]},{&quot;array-bounds&quot;:71,&quot;color-normalize&quot;:89,&quot;flatten-vertex-data&quot;:191,&quot;object-assign&quot;:247,&quot;pick-by-alias&quot;:253,&quot;to-float32&quot;:313,&quot;update-diff&quot;:329}],280:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-normalize&quot;),i=t(&quot;array-bounds&quot;),a=t(&quot;object-assign&quot;),o=t(&quot;glslify&quot;),s=t(&quot;pick-by-alias&quot;),l=t(&quot;flatten-vertex-data&quot;),c=t(&quot;earcut&quot;),u=t(&quot;array-normalize&quot;),f=t(&quot;to-float32&quot;),h=f.float32,p=f.fract32,d=t(&quot;es6-weak-map&quot;),m=t(&quot;parse-rect&quot;),g=t(&quot;array-find-index&quot;);function v(t,e){if(!(this instanceof v))return new v(t,e);if(&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):e=t,e.length&amp;&amp;(e.positions=e),!(t=e.regl).hasExtension(&quot;ANGLE_instanced_arrays&quot;))throw Error(&quot;regl-error2d: `ANGLE_instanced_arrays` extension should be enabled&quot;);this.gl=t._gl,this.regl=t,this.passes=[],this.shaders=v.shaders.has(t)?v.shaders.get(t):v.shaders.set(t,v.createShaders(t)).get(t),this.update(e)}e.exports=v,v.dashMult=2,v.maxPatternLength=256,v.precisionThreshold=3e6,v.maxPoints=1e4,v.maxLines=2048,v.shaders=new d,v.createShaders=function(t){var e,r=t.buffer({usage:&quot;static&quot;,type:&quot;float&quot;,data:[0,1,0,0,1,1,1,0]}),n={primitive:&quot;triangle strip&quot;,instances:t.prop(&quot;count&quot;),count:4,offset:0,uniforms:{miterMode:function(t,e){return&quot;round&quot;===e.join?2:1},miterLimit:t.prop(&quot;miterLimit&quot;),scale:t.prop(&quot;scale&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),translate:t.prop(&quot;translate&quot;),thickness:t.prop(&quot;thickness&quot;),dashTexture:t.prop(&quot;dashTexture&quot;),opacity:t.prop(&quot;opacity&quot;),pixelRatio:t.context(&quot;pixelRatio&quot;),id:t.prop(&quot;id&quot;),dashLength:t.prop(&quot;dashLength&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]},depth:t.prop(&quot;depth&quot;)},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},depth:{enable:function(t,e){return!e.overlay}},stencil:{enable:!1},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;)},i=t(a({vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;\nattribute vec4 color;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvec2 project(vec2 position, vec2 positionFract, vec2 scale, vec2 scaleFract, vec2 translate, vec2 translateFract) {\n\t// the order is important\n\treturn position * scale + translate\n       + positionFract * scale + translateFract\n       + position * scaleFract\n       + positionFract * scaleFract;\n}\n\nvoid main() {\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineOffset = lineTop * 2. - 1.;\n\n\tvec2 diff = (bCoord + bCoordFract - aCoord - aCoordFract);\n\ttangent = normalize(diff * scale * viewport.zw);\n\tvec2 normal = vec2(-tangent.y, tangent.x);\n\n\tvec2 position = project(aCoord, aCoordFract, scale, scaleFract, translate, translateFract) * lineStart\n\t\t+ project(bCoord, bCoordFract, scale, scaleFract, translate, translateFract) * lineEnd\n\n\t\t+ thickness * normal * .5 * lineOffset / viewport.zw;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform float dashLength, pixelRatio, thickness, opacity, id;\nuniform sampler2D dashTexture;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvoid main() {\n\tfloat alpha = 1.;\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25;\n\tfloat dash = texture2D(dashTexture, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n&quot;]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:16,divisor:1},aCoordFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:8,divisor:1},bCoordFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:16,divisor:1},color:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:0,divisor:1}}},n));try{e=t(a({cull:{enable:!0,face:&quot;back&quot;},vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, nextCoord, prevCoord;\nattribute vec4 aColor, bColor;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, translate;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\nuniform float miterLimit, miterMode;\n\nvarying vec4 fragColor;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 tangent;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nconst float REVERSE_THRESHOLD = -.875;\nconst float MIN_DIFF = 1e-6;\n\n// TODO: possible optimizations: avoid overcalculating all for vertices and calc just one instead\n// TODO: precalculate dot products, normalize things beforehead etc.\n// TODO: refactor to rectangular algorithm\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nbool isNaN( float val ){\n  return ( val &lt; 0.0 || 0.0 &lt; val || val == 0.0 ) ? false : true;\n}\n\nvoid main() {\n\tvec2 aCoord = aCoord, bCoord = bCoord, prevCoord = prevCoord, nextCoord = nextCoord;\n\n  vec2 adjustedScale;\n  adjustedScale.x = (abs(scale.x) &lt; MIN_DIFF) ? MIN_DIFF : scale.x;\n  adjustedScale.y = (abs(scale.y) &lt; MIN_DIFF) ? MIN_DIFF : scale.y;\n\n  vec2 scaleRatio = adjustedScale * viewport.zw;\n\tvec2 normalWidth = thickness / scaleRatio;\n\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineBot = 1. - lineTop;\n\n\tfragColor = (lineStart * aColor + lineEnd * bColor) / 255.;\n\n\tif (isNaN(aCoord.x) || isNaN(aCoord.y) || isNaN(bCoord.x) || isNaN(bCoord.y)) return;\n\n\tif (aCoord == prevCoord) prevCoord = aCoord + normalize(bCoord - aCoord);\n\tif (bCoord == nextCoord) nextCoord = bCoord - normalize(bCoord - aCoord);\n\n\tvec2 prevDiff = aCoord - prevCoord;\n\tvec2 currDiff = bCoord - aCoord;\n\tvec2 nextDiff = nextCoord - bCoord;\n\n\tvec2 prevTangent = normalize(prevDiff * scaleRatio);\n\tvec2 currTangent = normalize(currDiff * scaleRatio);\n\tvec2 nextTangent = normalize(nextDiff * scaleRatio);\n\n\tvec2 prevNormal = vec2(-prevTangent.y, prevTangent.x);\n\tvec2 currNormal = vec2(-currTangent.y, currTangent.x);\n\tvec2 nextNormal = vec2(-nextTangent.y, nextTangent.x);\n\n\tvec2 startJoinDirection = normalize(prevTangent - currTangent);\n\tvec2 endJoinDirection = normalize(currTangent - nextTangent);\n\n\t// collapsed/unidirectional segment cases\n\t// FIXME: there should be more elegant solution\n\tvec2 prevTanDiff = abs(prevTangent - currTangent);\n\tvec2 nextTanDiff = abs(nextTangent - currTangent);\n\tif (max(prevTanDiff.x, prevTanDiff.y) &lt; MIN_DIFF) {\n\t\tstartJoinDirection = currNormal;\n\t}\n\tif (max(nextTanDiff.x, nextTanDiff.y) &lt; MIN_DIFF) {\n\t\tendJoinDirection = currNormal;\n\t}\n\tif (aCoord == bCoord) {\n\t\tendJoinDirection = startJoinDirection;\n\t\tcurrNormal = prevNormal;\n\t\tcurrTangent = prevTangent;\n\t}\n\n\ttangent = currTangent;\n\n\t//calculate join shifts relative to normals\n\tfloat startJoinShift = dot(currNormal, startJoinDirection);\n\tfloat endJoinShift = dot(currNormal, endJoinDirection);\n\n\tfloat startMiterRatio = abs(1. / startJoinShift);\n\tfloat endMiterRatio = abs(1. / endJoinShift);\n\n\tvec2 startJoin = startJoinDirection * startMiterRatio;\n\tvec2 endJoin = endJoinDirection * endMiterRatio;\n\n\tvec2 startTopJoin, startBotJoin, endTopJoin, endBotJoin;\n\tstartTopJoin = sign(startJoinShift) * startJoin * .5;\n\tstartBotJoin = -startTopJoin;\n\n\tendTopJoin = sign(endJoinShift) * endJoin * .5;\n\tendBotJoin = -endTopJoin;\n\n\tvec2 aTopCoord = aCoord + normalWidth * startTopJoin;\n\tvec2 bTopCoord = bCoord + normalWidth * endTopJoin;\n\tvec2 aBotCoord = aCoord + normalWidth * startBotJoin;\n\tvec2 bBotCoord = bCoord + normalWidth * endBotJoin;\n\n\t//miter anti-clipping\n\tfloat baClipping = distToLine(bCoord, aCoord, aBotCoord) / dot(normalize(normalWidth * endBotJoin), normalize(normalWidth.yx * vec2(-startBotJoin.y, startBotJoin.x)));\n\tfloat abClipping = distToLine(aCoord, bCoord, bTopCoord) / dot(normalize(normalWidth * startBotJoin), normalize(normalWidth.yx * vec2(-endBotJoin.y, endBotJoin.x)));\n\n\t//prevent close to reverse direction switch\n\tbool prevReverse = dot(currTangent, prevTangent) &lt;= REVERSE_THRESHOLD &amp;&amp; abs(dot(currTangent, prevNormal)) * min(length(prevDiff), length(currDiff)) &lt;  length(normalWidth * currNormal);\n\tbool nextReverse = dot(currTangent, nextTangent) &lt;= REVERSE_THRESHOLD &amp;&amp; abs(dot(currTangent, nextNormal)) * min(length(nextDiff), length(currDiff)) &lt;  length(normalWidth * currNormal);\n\n\tif (prevReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * startJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / startMiterRatio, 1.);\n\t\taBotCoord = aCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\taTopCoord = aCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!nextReverse &amp;&amp; baClipping &gt; 0. &amp;&amp; baClipping &lt; length(normalWidth * endBotJoin)) {\n\t\t//handle miter clipping\n\t\tbTopCoord -= normalWidth * endTopJoin;\n\t\tbTopCoord += normalize(endTopJoin * normalWidth) * baClipping;\n\t}\n\n\tif (nextReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);\n\t\tbBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\tbTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!prevReverse &amp;&amp; abClipping &gt; 0. &amp;&amp; abClipping &lt; length(normalWidth * startBotJoin)) {\n\t\t//handle miter clipping\n\t\taBotCoord -= normalWidth * startBotJoin;\n\t\taBotCoord += normalize(startBotJoin * normalWidth) * abClipping;\n\t}\n\n\tvec2 aTopPosition = (aTopCoord) * adjustedScale + translate;\n\tvec2 aBotPosition = (aBotCoord) * adjustedScale + translate;\n\n\tvec2 bTopPosition = (bTopCoord) * adjustedScale + translate;\n\tvec2 bBotPosition = (bBotCoord) * adjustedScale + translate;\n\n\t//position is normalized 0..1 coord on the screen\n\tvec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;\n\n\tstartCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\tendCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\n\tgl_Position = vec4(position  * 2.0 - 1.0, depth, 1);\n\n\tenableStartMiter = step(dot(currTangent, prevTangent), .5);\n\tenableEndMiter = step(dot(currTangent, nextTangent), .5);\n\n\t//bevel miter cutoffs\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n\n\t//round miter cutoffs\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform float dashLength, pixelRatio, thickness, opacity, id, miterMode;\nuniform sampler2D dashTexture;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nvoid main() {\n\tfloat alpha = 1., distToStart, distToEnd;\n\tfloat cutoff = thickness * .5;\n\n\t//bevel miter\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart &lt; -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToStart + 1., 0.), 1.);\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd &lt; -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToEnd + 1., 0.), 1.);\n\t\t}\n\t}\n\n\t// round miter\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart &lt; 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - startCoord);\n\n\t\t\t\tif(radius &gt; cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd &lt; 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - endCoord);\n\n\t\t\t\tif(radius &gt; cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\t}\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashLength) * .5 + .25;\n\tfloat dash = texture2D(dashTexture, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n&quot;]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:0,divisor:1},bColor:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:4,divisor:1},prevCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:0,divisor:1},aCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:16,divisor:1},nextCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:24,divisor:1}}},n))}catch(t){e=i}return{fill:t({primitive:&quot;triangle&quot;,elements:function(t,e){return e.triangles},offset:0,vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 position, positionFract;\n\nuniform vec4 color;\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio, id;\nuniform vec4 viewport;\nuniform float opacity;\n\nvarying vec4 fragColor;\n\nconst float MAX_LINES = 256.;\n\nvoid main() {\n\tfloat depth = (MAX_LINES - 4. - id) / (MAX_LINES);\n\n\tvec2 position = position * scale + translate\n       + positionFract * scale + translateFract\n       + position * scaleFract\n       + positionFract * scaleFract;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n\tfragColor.a *= opacity;\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n\tgl_FragColor = fragColor;\n}\n&quot;]),uniforms:{scale:t.prop(&quot;scale&quot;),color:t.prop(&quot;fill&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),translate:t.prop(&quot;translate&quot;),opacity:t.prop(&quot;opacity&quot;),pixelRatio:t.context(&quot;pixelRatio&quot;),id:t.prop(&quot;id&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{position:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8},positionFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:8}},blend:n.blend,depth:{enable:!1},scissor:n.scissor,stencil:n.stencil,viewport:n.viewport}),rect:i,miter:e}},v.defaults={dashes:null,join:&quot;miter&quot;,miterLimit:1,thickness:10,cap:&quot;square&quot;,color:&quot;black&quot;,opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},v.prototype.render=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];e.length&amp;&amp;(t=this).update.apply(t,e),this.draw()},v.prototype.draw=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];return(e.length?e:this.passes).forEach((function(e,r){var n;if(e&amp;&amp;Array.isArray(e))return(n=t).draw.apply(n,e);&quot;number&quot;==typeof e&amp;&amp;(e=t.passes[e]),e&amp;&amp;e.count&gt;1&amp;&amp;e.opacity&amp;&amp;(t.regl._refresh(),e.fill&amp;&amp;e.triangles&amp;&amp;e.triangles.length&gt;2&amp;&amp;t.shaders.fill(e),e.thickness&amp;&amp;(e.scale[0]*e.viewport.width&gt;v.precisionThreshold||e.scale[1]*e.viewport.height&gt;v.precisionThreshold||&quot;rect&quot;===e.join||!e.join&amp;&amp;(e.thickness&lt;=2||e.count&gt;=v.maxPoints)?t.shaders.rect(e):t.shaders.miter(e)))})),this},v.prototype.update=function(t){var e=this;if(t){null!=t.length?&quot;number&quot;==typeof t[0]&amp;&amp;(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var r=this.regl,o=this.gl;if(t.forEach((function(t,f){var d=e.passes[f];if(void 0!==t)if(null!==t){if(&quot;number&quot;==typeof t[0]&amp;&amp;(t={positions:t}),t=s(t,{positions:&quot;positions points data coords&quot;,thickness:&quot;thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth&quot;,join:&quot;lineJoin linejoin join type mode&quot;,miterLimit:&quot;miterlimit miterLimit&quot;,dashes:&quot;dash dashes dasharray dash-array dashArray&quot;,color:&quot;color colour stroke colors colours stroke-color strokeColor&quot;,fill:&quot;fill fill-color fillColor&quot;,opacity:&quot;alpha opacity&quot;,overlay:&quot;overlay crease overlap intersect&quot;,close:&quot;closed close closed-path closePath&quot;,range:&quot;range dataBox&quot;,viewport:&quot;viewport viewBox&quot;,hole:&quot;holes hole hollow&quot;,splitNull:&quot;splitNull&quot;}),d||(e.passes[f]=d={id:f,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:&quot;linear&quot;,min:&quot;linear&quot;}),colorBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:new Uint8Array}),positionBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array}),positionFractBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array})},t=a({},v.defaults,t)),null!=t.thickness&amp;&amp;(d.thickness=parseFloat(t.thickness)),null!=t.opacity&amp;&amp;(d.opacity=parseFloat(t.opacity)),null!=t.miterLimit&amp;&amp;(d.miterLimit=parseFloat(t.miterLimit)),null!=t.overlay&amp;&amp;(d.overlay=!!t.overlay,f&lt;v.maxLines&amp;&amp;(d.depth=2*(v.maxLines-1-f%v.maxLines)/v.maxLines-1)),null!=t.join&amp;&amp;(d.join=t.join),null!=t.hole&amp;&amp;(d.hole=t.hole),null!=t.fill&amp;&amp;(d.fill=t.fill?n(t.fill,&quot;uint8&quot;):null),null!=t.viewport&amp;&amp;(d.viewport=m(t.viewport)),d.viewport||(d.viewport=m([o.drawingBufferWidth,o.drawingBufferHeight])),null!=t.close&amp;&amp;(d.close=t.close),null===t.positions&amp;&amp;(t.positions=[]),t.positions){var y,x;if(t.positions.x&amp;&amp;t.positions.y){var b=t.positions.x,_=t.positions.y;x=d.count=Math.max(b.length,_.length),y=new Float64Array(2*x);for(var w=0;w&lt;x;w++)y[2*w]=b[w],y[2*w+1]=_[w]}else y=l(t.positions,&quot;float64&quot;),x=d.count=Math.floor(y.length/2);var T=d.bounds=i(y,2);if(d.fill){for(var k=[],A={},M=0,S=0,E=0,L=d.count;S&lt;L;S++){var C=y[2*S],P=y[2*S+1];isNaN(C)||isNaN(P)||null==C||null==P?(C=y[2*M],P=y[2*M+1],A[S]=M):M=S,k[E++]=C,k[E++]=P}if(t.splitNull){d.count-1 in A||(A[d.count]=d.count-1);var I=Object.keys(A).map(Number).sort((function(t,e){return t-e})),O=[],z=0,D=null!=d.hole?d.hole[0]:null;if(null!=D){var R=g(I,(function(t){return t&gt;=D}));(I=I.slice(0,R)).push(D)}for(var F=function(t){var e=k.slice(2*z,2*I[t]).concat(D?k.slice(2*D):[]),r=(d.hole||[]).map((function(e){return e-D+(I[t]-z)})),n=c(e,r);n=n.map((function(e){return e+z+(e+z&lt;I[t]?0:D-I[t])})),O.push.apply(O,n),z=I[t]+1},B=0;B&lt;I.length;B++)F(B);for(var N=0,j=O.length;N&lt;j;N++)null!=A[O[N]]&amp;&amp;(O[N]=A[O[N]]);d.triangles=O}else{for(var U=c(k,d.hole||[]),V=0,H=U.length;V&lt;H;V++)null!=A[U[V]]&amp;&amp;(U[V]=A[U[V]]);d.triangles=U}}var q=new Float64Array(y);u(q,2,T);var G=new Float64Array(2*x+6);d.close?y[0]===y[2*x-2]&amp;&amp;y[1]===y[2*x-1]?(G[0]=q[2*x-4],G[1]=q[2*x-3]):(G[0]=q[2*x-2],G[1]=q[2*x-1]):(G[0]=q[0],G[1]=q[1]),G.set(q,2),d.close?y[0]===y[2*x-2]&amp;&amp;y[1]===y[2*x-1]?(G[2*x+2]=q[2],G[2*x+3]=q[3],d.count-=1):(G[2*x+2]=q[0],G[2*x+3]=q[1],G[2*x+4]=q[2],G[2*x+5]=q[3]):(G[2*x+2]=q[2*x-2],G[2*x+3]=q[2*x-1],G[2*x+4]=q[2*x-2],G[2*x+5]=q[2*x-1]);var Y=h(G);d.positionBuffer(Y);var W=p(G,Y);d.positionFractBuffer(W)}if(t.range?d.range=t.range:d.range||(d.range=d.bounds),(t.range||t.positions)&amp;&amp;d.count){var X=d.bounds,Z=X[2]-X[0],J=X[3]-X[1],K=d.range[2]-d.range[0],Q=d.range[3]-d.range[1];d.scale=[Z/K,J/Q],d.translate=[-d.range[0]/K+X[0]/K||0,-d.range[1]/Q+X[1]/Q||0],d.scaleFract=p(d.scale),d.translateFract=p(d.translate)}if(t.dashes){var $,tt=0;if(!t.dashes||t.dashes.length&lt;2)tt=1,$=new Uint8Array([255,255,255,255,255,255,255,255]);else{tt=0;for(var et=0;et&lt;t.dashes.length;++et)tt+=t.dashes[et];$=new Uint8Array(tt*v.dashMult);for(var rt=0,nt=255,it=0;it&lt;2;it++)for(var at=0;at&lt;t.dashes.length;++at){for(var ot=0,st=t.dashes[at]*v.dashMult*.5;ot&lt;st;++ot)$[rt++]=nt;nt^=255}}d.dashLength=tt,d.dashTexture({channels:1,data:$,width:$.length,height:1,mag:&quot;linear&quot;,min:&quot;linear&quot;},0,0)}if(t.color){var lt=d.count,ct=t.color;ct||(ct=&quot;transparent&quot;);var ut=new Uint8Array(4*lt+4);if(Array.isArray(ct)&amp;&amp;&quot;number&quot;!=typeof ct[0]){for(var ft=0;ft&lt;lt;ft++){var ht=n(ct[ft],&quot;uint8&quot;);ut.set(ht,4*ft)}ut.set(n(ct[0],&quot;uint8&quot;),4*lt)}else for(var pt=n(ct,&quot;uint8&quot;),dt=0;dt&lt;lt+1;dt++)ut.set(pt,4*dt);d.colorBuffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:ut})}}else e.passes[f]=null})),t.length&lt;this.passes.length){for(var f=t.length;f&lt;this.passes.length;f++){var d=this.passes[f];d&amp;&amp;(d.colorBuffer.destroy(),d.positionBuffer.destroy(),d.dashTexture.destroy())}this.passes.length=t.length}for(var y=[],x=0;x&lt;this.passes.length;x++)null!==this.passes[x]&amp;&amp;y.push(this.passes[x]);return this.passes=y,this}},v.prototype.destroy=function(){return this.passes.forEach((function(t){t.colorBuffer.destroy(),t.positionBuffer.destroy(),t.dashTexture.destroy()})),this.passes.length=0,this}},{&quot;array-bounds&quot;:71,&quot;array-find-index&quot;:72,&quot;array-normalize&quot;:73,&quot;color-normalize&quot;:89,earcut:129,&quot;es6-weak-map&quot;:183,&quot;flatten-vertex-data&quot;:191,glslify:227,&quot;object-assign&quot;:247,&quot;parse-rect&quot;:249,&quot;pick-by-alias&quot;:253,&quot;to-float32&quot;:313}],281:[function(t,e,r){&quot;use strict&quot;;function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:&quot;undefined&quot;!=typeof Symbol&amp;&amp;t[Symbol.iterator]||t[&quot;@@iterator&quot;];if(null==r)return;var n,i,a=[],o=!0,s=!1;try{for(r=r.call(t);!(o=(n=r.next()).done)&amp;&amp;(a.push(n.value),!e||a.length!==e);o=!0);}catch(t){s=!0,i=t}finally{try{o||null==r.return||r.return()}finally{if(s)throw i}}return a}(t,e)||a(t,e)||function(){throw new TypeError(&quot;Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.&quot;)}()}function i(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if(&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=t[Symbol.iterator]||null!=t[&quot;@@iterator&quot;])return Array.from(t)}(t)||a(t)||function(){throw new TypeError(&quot;Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.&quot;)}()}function a(t,e){if(t){if(&quot;string&quot;==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return&quot;Object&quot;===r&amp;&amp;t.constructor&amp;&amp;(r=t.constructor.name),&quot;Map&quot;===r||&quot;Set&quot;===r?Array.from(t):&quot;Arguments&quot;===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e&gt;t.length)&amp;&amp;(e=t.length);for(var r=0,n=new Array(e);r&lt;e;r++)n[r]=t[r];return n}var s=t(&quot;color-normalize&quot;),l=t(&quot;array-bounds&quot;),c=t(&quot;color-id&quot;),u=t(&quot;@plotly/point-cluster&quot;),f=t(&quot;object-assign&quot;),h=t(&quot;glslify&quot;),p=t(&quot;pick-by-alias&quot;),d=t(&quot;update-diff&quot;),m=t(&quot;flatten-vertex-data&quot;),g=t(&quot;is-iexplorer&quot;),v=t(&quot;to-float32&quot;),y=t(&quot;parse-rect&quot;),x=b;function b(t,e){var r=this;if(!(this instanceof b))return new b(t,e);&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):(e=t,t=null),e&amp;&amp;e.length&amp;&amp;(e.positions=e);var n,i=(t=e.regl)._gl,a=[];this.tooManyColors=g,n=t.texture({data:new Uint8Array(1020),width:255,height:1,type:&quot;uint8&quot;,format:&quot;rgba&quot;,wrapS:&quot;clamp&quot;,wrapT:&quot;clamp&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;}),f(this,{regl:t,gl:i,groups:[],markerCache:[null],markerTextures:[null],palette:a,paletteIds:{},paletteTexture:n,maxColors:255,maxSize:100,canvas:i.canvas}),this.update(e);var o={uniforms:{constPointSize:!!e.constPointSize,opacity:t.prop(&quot;opacity&quot;),paletteSize:function(t,e){return[r.tooManyColors?0:255,n.height]},pixelRatio:t.context(&quot;pixelRatio&quot;),scale:t.prop(&quot;scale&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translate:t.prop(&quot;translate&quot;),translateFract:t.prop(&quot;translateFract&quot;),markerTexture:t.prop(&quot;markerTexture&quot;),paletteTexture:n},attributes:{x:function(t,e){return e.xAttr||{buffer:e.positionBuffer,stride:8,offset:0}},y:function(t,e){return e.yAttr||{buffer:e.positionBuffer,stride:8,offset:4}},xFract:function(t,e){return e.xAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:0}},yFract:function(t,e){return e.yAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:4}},size:function(t,e){return e.size.length?{buffer:e.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(255*e.size/r.maxSize)]}},borderSize:function(t,e){return e.borderSize.length?{buffer:e.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(255*e.borderSize/r.maxSize)]}},colorId:function(t,e){return e.color.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(4*e.color,4*e.color+4):[e.color]}},borderColorId:function(t,e){return e.borderColor.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(4*e.borderColor,4*e.borderColor+4):[e.borderColor]}},isActive:function(t,e){return!0===e.activation?{constant:[1]}:e.activation?e.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;),stencil:{enable:!1},depth:{enable:!1},elements:t.prop(&quot;elements&quot;),count:t.prop(&quot;count&quot;),offset:t.prop(&quot;offset&quot;),primitive:&quot;points&quot;},s=f({},o);s.frag=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform float opacity;\nuniform sampler2D markerTexture;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragWidth, fragBorderColorLevel, fragColorLevel;\n\nfloat smoothStep(float x, float y) {\n  return 1.0 / (1.0 + exp(50.0*(x - y)));\n}\n\nvoid main() {\n  float dist = texture2D(markerTexture, gl_PointCoord).r, delta = fragWidth;\n\n  // max-distance alpha\n  if (dist &lt; 0.003) discard;\n\n  // null-border case\n  if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {\n    float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);\n    gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);\n  }\n  else {\n    float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);\n    float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);\n\n    vec4 color = fragBorderColor;\n    color.a *= borderColorAmt;\n    color = mix(color, fragColor, colorAmt);\n    color.a *= opacity;\n\n    gl_FragColor = color;\n  }\n\n}\n&quot;]),s.vert=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform bool constPointSize;\nuniform float pixelRatio;\nuniform vec2 scale, scaleFract, translate, translateFract, paletteSize;\nuniform sampler2D paletteTexture;\n\nconst float maxSize = 100.;\nconst float borderLevel = .5;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x &lt; 1.);\n\nvec4 getColor(vec4 id) {\n  return isDirect ? id / 255. : texture2D(paletteTexture,\n    vec2(\n      (id.x + .5) / paletteSize.x,\n      (id.y + .5) / paletteSize.y\n    )\n  );\n}\n\nvoid main() {\n  // ignore inactive points\n  if (isActive == 0.) return;\n\n  vec2 position = vec2(x, y);\n  vec2 positionFract = vec2(xFract, yFract);\n\n  vec4 color = getColor(colorId);\n  vec4 borderColor = getColor(borderColorId);\n\n  float size = size * maxSize / 255.;\n  float borderSize = borderSize * maxSize / 255.;\n\n  gl_PointSize = 2. * size * pointSizeScale;\n  fragPointSize = size * pixelRatio;\n\n  vec2 pos = (position + translate) * scale\n      + (positionFract + translateFract) * scale\n      + (position + translate) * scaleFract\n      + (positionFract + translateFract) * scaleFract;\n\n  gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n  fragColor = color;\n  fragBorderColor = borderColor;\n  fragWidth = 1. / gl_PointSize;\n\n  fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);\n  fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);\n}&quot;]),this.drawMarker=t(s);var l=f({},o);l.frag=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nuniform float opacity;\n\nfloat smoothStep(float edge0, float edge1, float x) {\n\tfloat t;\n\tt = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\n\treturn t * t * (3.0 - 2.0 * t);\n}\n\nvoid main() {\n\tfloat radius, alpha = 1.0, delta = fragWidth;\n\n\tradius = length(2.0 * gl_PointCoord.xy - 1.0);\n\n\tif (radius &gt; 1.0 + delta) {\n\t\tdiscard;\n\t}\n\n\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\n\n\tfloat borderRadius = fragBorderRadius;\n\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\n\tvec4 color = mix(fragColor, fragBorderColor, ratio);\n\tcolor.a *= alpha * opacity;\n\tgl_FragColor = color;\n}\n&quot;]),l.vert=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform bool constPointSize;\nuniform float pixelRatio;\nuniform vec2 paletteSize, scale, scaleFract, translate, translateFract;\nuniform sampler2D paletteTexture;\n\nconst float maxSize = 100.;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x &lt; 1.);\n\nvec4 getColor(vec4 id) {\n  return isDirect ? id / 255. : texture2D(paletteTexture,\n    vec2(\n      (id.x + .5) / paletteSize.x,\n      (id.y + .5) / paletteSize.y\n    )\n  );\n}\n\nvoid main() {\n  // ignore inactive points\n  if (isActive == 0.) return;\n\n  vec2 position = vec2(x, y);\n  vec2 positionFract = vec2(xFract, yFract);\n\n  vec4 color = getColor(colorId);\n  vec4 borderColor = getColor(borderColorId);\n\n  float size = size * maxSize / 255.;\n  float borderSize = borderSize * maxSize / 255.;\n\n  gl_PointSize = (size + borderSize) * pointSizeScale;\n\n  vec2 pos = (position + translate) * scale\n      + (positionFract + translateFract) * scale\n      + (position + translate) * scaleFract\n      + (positionFract + translateFract) * scaleFract;\n\n  gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n  fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\n  fragColor = color;\n  fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\n  fragWidth = 1. / gl_PointSize;\n}\n&quot;]),g&amp;&amp;(l.frag=l.frag.replace(&quot;smoothstep&quot;,&quot;smoothStep&quot;),s.frag=s.frag.replace(&quot;smoothstep&quot;,&quot;smoothStep&quot;)),this.drawCircle=t(l)}b.defaults={color:&quot;black&quot;,borderColor:&quot;transparent&quot;,borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},b.prototype.render=function(){return arguments.length&amp;&amp;this.update.apply(this,arguments),this.draw(),this},b.prototype.draw=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n&lt;e;n++)r[n]=arguments[n];var i=this.groups;if(1===r.length&amp;&amp;Array.isArray(r[0])&amp;&amp;(null===r[0][0]||Array.isArray(r[0][0]))&amp;&amp;(r=r[0]),this.regl._refresh(),r.length)for(var a=0;a&lt;r.length;a++)this.drawItem(a,r[a]);else i.forEach((function(e,r){t.drawItem(r)}));return this},b.prototype.drawItem=function(t,e){var r=this.groups,n=r[t];if(&quot;number&quot;==typeof e&amp;&amp;(t=e,n=r[e],e=null),n&amp;&amp;n.count&amp;&amp;n.opacity){n.activation[0]&amp;&amp;this.drawCircle(this.getMarkerDrawOptions(0,n,e));for(var a=[],o=1;o&lt;n.activation.length;o++)n.activation[o]&amp;&amp;(!0===n.activation[o]||n.activation[o].data.length)&amp;&amp;a.push.apply(a,i(this.getMarkerDrawOptions(o,n,e)));a.length&amp;&amp;this.drawMarker(a)}},b.prototype.getMarkerDrawOptions=function(t,e,r){var i=e.range,a=e.tree,o=e.viewport,s=e.activation,l=e.selectionBuffer,c=e.count;this.regl;if(!a)return r?[f({},e,{markerTexture:this.markerTextures[t],activation:s[t],count:r.length,elements:r,offset:0})]:[f({},e,{markerTexture:this.markerTextures[t],activation:s[t],offset:0})];var u=[],h=a.range(i,{lod:!0,px:[(i[2]-i[0])/o.width,(i[3]-i[1])/o.height]});if(r){for(var p=s[t].data,d=new Uint8Array(c),m=0;m&lt;r.length;m++){var g=r[m];d[g]=p?p[g]:1}l.subdata(d)}for(var v=h.length;v--;){var y=n(h[v],2),x=y[0],b=y[1];u.push(f({},e,{markerTexture:this.markerTextures[t],activation:r?l:s[t],offset:x,count:b-x}))}return u},b.prototype.update=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n&lt;e;n++)r[n]=arguments[n];if(r.length){1===r.length&amp;&amp;Array.isArray(r[0])&amp;&amp;(r=r[0]);var i=this.groups,a=this.gl,o=this.regl,s=this.maxSize,c=this.maxColors,h=this.palette;this.groups=i=r.map((function(e,r){var n=i[r];if(void 0===e)return n;null===e?e={positions:null}:&quot;function&quot;==typeof e?e={ondraw:e}:&quot;number&quot;==typeof e[0]&amp;&amp;(e={positions:e}),null===(e=p(e,{positions:&quot;positions data points&quot;,snap:&quot;snap cluster lod tree&quot;,size:&quot;sizes size radius&quot;,borderSize:&quot;borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline&quot;,color:&quot;colors color fill fill-color fillColor&quot;,borderColor:&quot;borderColors borderColor stroke stroke-color strokeColor&quot;,marker:&quot;markers marker shape&quot;,range:&quot;range dataBox databox&quot;,viewport:&quot;viewport viewPort viewBox viewbox&quot;,opacity:&quot;opacity alpha transparency&quot;,bounds:&quot;bound bounds boundaries limits&quot;,tooManyColors:&quot;tooManyColors palette paletteMode optimizePalette enablePalette&quot;})).positions&amp;&amp;(e.positions=[]),null!=e.tooManyColors&amp;&amp;(t.tooManyColors=e.tooManyColors),n||(i[r]=n={id:r,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;stream&quot;,type:&quot;uint8&quot;}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;uint8&quot;}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;uint8&quot;}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;float&quot;}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;float&quot;})},e=f({},b.defaults,e)),e.positions&amp;&amp;!(&quot;marker&quot;in e)&amp;&amp;(e.marker=n.marker,delete n.marker),e.marker&amp;&amp;!(&quot;positions&quot;in e)&amp;&amp;(e.positions=n.positions,delete n.positions);var g=0,x=0;if(d(n,e,[{snap:!0,size:function(t,e){return null==t&amp;&amp;(t=b.defaults.size),g+=t&amp;&amp;t.length?1:0,t},borderSize:function(t,e){return null==t&amp;&amp;(t=b.defaults.borderSize),g+=t&amp;&amp;t.length?1:0,t},opacity:parseFloat,color:function(e,r){return null==e&amp;&amp;(e=b.defaults.color),e=t.updateColor(e),x++,e},borderColor:function(e,r){return null==e&amp;&amp;(e=b.defaults.borderColor),e=t.updateColor(e),x++,e},bounds:function(t,e,r){return&quot;range&quot;in r||(r.range=null),t},positions:function(t,e,r){var n=e.snap,i=e.positionBuffer,a=e.positionFractBuffer,s=e.selectionBuffer;if(t.x||t.y)return t.x.length?e.xAttr={buffer:o.buffer(t.x),offset:0,stride:4,count:t.x.length}:e.xAttr={buffer:t.x.buffer,offset:4*t.x.offset||0,stride:4*(t.x.stride||1),count:t.x.count},t.y.length?e.yAttr={buffer:o.buffer(t.y),offset:0,stride:4,count:t.y.length}:e.yAttr={buffer:t.y.buffer,offset:4*t.y.offset||0,stride:4*(t.y.stride||1),count:t.y.count},e.count=Math.max(e.xAttr.count,e.yAttr.count),t;t=m(t,&quot;float64&quot;);var c=e.count=Math.floor(t.length/2),f=e.bounds=c?l(t,2):null;if(r.range||e.range||(delete e.range,r.range=f),r.marker||e.marker||(delete e.marker,r.marker=null),n&amp;&amp;(!0===n||c&gt;n)?e.tree=u(t,{bounds:f}):n&amp;&amp;n.length&amp;&amp;(e.tree=n),e.tree){var h={primitive:&quot;points&quot;,usage:&quot;static&quot;,data:e.tree,type:&quot;uint32&quot;};e.elements?e.elements(h):e.elements=o.elements(h)}var p=v.float32(t);return i({data:p,usage:&quot;dynamic&quot;}),a({data:v.fract32(t,p),usage:&quot;dynamic&quot;}),s({data:new Uint8Array(c),type:&quot;uint8&quot;,usage:&quot;stream&quot;}),t}},{marker:function(e,r,n){var i=r.activation;if(i.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),i.length=0,e&amp;&amp;&quot;number&quot;!=typeof e[0]){for(var a=[],s=0,l=Math.min(e.length,r.count);s&lt;l;s++){var c=t.addMarker(e[s]);a[c]||(a[c]=new Uint8Array(r.count)),a[c][s]=1}for(var u=0;u&lt;a.length;u++)if(a[u]){var f={data:a[u],type:&quot;uint8&quot;,usage:&quot;static&quot;};i[u]?i[u](f):i[u]=o.buffer(f),i[u].data=a[u]}}else{i[t.addMarker(e)]=!0}return e},range:function(t,e,r){var n=e.bounds;if(n)return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=v.fract(e.scale),e.translateFract=v.fract(e.translate),t},viewport:function(t){return y(t||[a.drawingBufferWidth,a.drawingBufferHeight])}}]),g){var _=n,w=_.count,T=_.size,k=_.borderSize,A=_.sizeBuffer,M=new Uint8Array(2*w);if(T.length||k.length)for(var S=0;S&lt;w;S++)M[2*S]=Math.round(255*(null==T[S]?T:T[S])/s),M[2*S+1]=Math.round(255*(null==k[S]?k:k[S])/s);A({data:M,usage:&quot;dynamic&quot;})}if(x){var E,L=n,C=L.count,P=L.color,I=L.borderColor,O=L.colorBuffer;if(t.tooManyColors){if(P.length||I.length){E=new Uint8Array(8*C);for(var z=0;z&lt;C;z++){var D=P[z];E[8*z]=h[4*D],E[8*z+1]=h[4*D+1],E[8*z+2]=h[4*D+2],E[8*z+3]=h[4*D+3];var R=I[z];E[8*z+4]=h[4*R],E[8*z+5]=h[4*R+1],E[8*z+6]=h[4*R+2],E[8*z+7]=h[4*R+3]}}}else if(P.length||I.length){E=new Uint8Array(4*C+2);for(var F=0;F&lt;C;F++)null!=P[F]&amp;&amp;(E[4*F]=P[F]%c,E[4*F+1]=Math.floor(P[F]/c)),null!=I[F]&amp;&amp;(E[4*F+2]=I[F]%c,E[4*F+3]=Math.floor(I[F]/c))}O({data:E||new Uint8Array(0),type:&quot;uint8&quot;,usage:&quot;dynamic&quot;})}return n}))}},b.prototype.addMarker=function(t){var e,r=this.markerTextures,n=this.regl,i=this.markerCache,a=null==t?0:i.indexOf(t);if(a&gt;=0)return a;if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)e=t;else{e=new Uint8Array(t.length);for(var o=0,s=t.length;o&lt;s;o++)e[o]=255*t[o]}var l=Math.floor(Math.sqrt(e.length));return a=r.length,i.push(t),r.push(n.texture({channels:1,data:e,radius:l,mag:&quot;linear&quot;,min:&quot;linear&quot;})),a},b.prototype.updateColor=function(t){var e=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(t)||(t=[t]);var i=[];if(&quot;number&quot;==typeof t[0]){var a=[];if(Array.isArray(t))for(var o=0;o&lt;t.length;o+=4)a.push(t.slice(o,o+4));else for(var l=0;l&lt;t.length;l+=4)a.push(t.subarray(l,l+4));t=a}for(var u=0;u&lt;t.length;u++){var f=t[u];f=s(f,&quot;uint8&quot;);var h=c(f,!1);if(null==e[h]){var p=r.length;e[h]=Math.floor(p/4),r[p]=f[0],r[p+1]=f[1],r[p+2]=f[2],r[p+3]=f[3]}i[u]=e[h]}return!this.tooManyColors&amp;&amp;r.length&gt;4*n&amp;&amp;(this.tooManyColors=!0),this.updatePalette(r),1===i.length?i[0]:i},b.prototype.updatePalette=function(t){if(!this.tooManyColors){var e=this.maxColors,r=this.paletteTexture,n=Math.ceil(.25*t.length/e);if(n&gt;1)for(var i=.25*(t=t.slice()).length%e;i&lt;n*e;i++)t.push(0,0,0,0);r.height&lt;n&amp;&amp;r.resize(e,n),r.subimage({width:Math.min(.25*t.length,e),height:n,data:t},0,0)}},b.prototype.destroy=function(){return this.groups.forEach((function(t){t.sizeBuffer.destroy(),t.positionBuffer.destroy(),t.positionFractBuffer.destroy(),t.colorBuffer.destroy(),t.activation.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),t.selectionBuffer.destroy(),t.elements&amp;&amp;t.elements.destroy()})),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),this};var _=t(&quot;object-assign&quot;);e.exports=function(t,e){var r=new x(t,e),n=r.render.bind(r);return _(n,{render:n,update:r.update.bind(r),draw:r.draw.bind(r),destroy:r.destroy.bind(r),regl:r.regl,gl:r.gl,canvas:r.gl.canvas,groups:r.groups,markers:r.markerCache,palette:r.palette}),n}},{&quot;@plotly/point-cluster&quot;:59,&quot;array-bounds&quot;:71,&quot;color-id&quot;:87,&quot;color-normalize&quot;:89,&quot;flatten-vertex-data&quot;:191,glslify:227,&quot;is-iexplorer&quot;:233,&quot;object-assign&quot;:247,&quot;parse-rect&quot;:249,&quot;pick-by-alias&quot;:253,&quot;to-float32&quot;:313,&quot;update-diff&quot;:329}],282:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-scatter2d&quot;),i=t(&quot;pick-by-alias&quot;),a=t(&quot;array-bounds&quot;),o=t(&quot;raf&quot;),s=t(&quot;array-range&quot;),l=t(&quot;parse-rect&quot;),c=t(&quot;flatten-vertex-data&quot;);function u(t,e){if(!(this instanceof u))return new u(t,e);this.traces=[],this.passes={},this.regl=t,this.scatter=n(t),this.canvas=this.scatter.canvas}function f(t,e,r){return(null!=t.id?t.id:t)&lt;&lt;16|(255&amp;e)&lt;&lt;8|255&amp;r}function h(t,e,r){var n,i,a,o,s=t[e],l=t[r];return s.length&gt;2?(s[0],s[2],n=s[1],i=s[3]):s.length?(n=s[0],i=s[1]):(s.x,n=s.y,s.x+s.width,i=s.y+s.height),l.length&gt;2?(a=l[0],o=l[2],l[1],l[3]):l.length?(a=l[0],o=l[1]):(a=l.x,l.y,o=l.x+l.width,l.y+l.height),[a,n,o,i]}function p(t){if(&quot;number&quot;==typeof t)return[t,t,t,t];if(2===t.length)return[t[0],t[1],t[0],t[1]];var e=l(t);return[e.x,e.y,e.x+e.width,e.y+e.height]}e.exports=u,u.prototype.render=function(){for(var t,e=this,r=[],n=arguments.length;n--;)r[n]=arguments[n];return r.length&amp;&amp;(t=this).update.apply(t,r),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?null==this.planned&amp;&amp;(this.planned=o((function(){e.draw(),e.dirty=!0,e.planned=null}))):(this.draw(),this.dirty=!0,o((function(){e.dirty=!1}))),this)},u.prototype.update=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=0;n&lt;e.length;n++)this.updateItem(n,e[n]);this.traces=this.traces.filter(Boolean);for(var i=[],a=0,o=0;o&lt;this.traces.length;o++){for(var s=this.traces[o],l=this.traces[o].passes,c=0;c&lt;l.length;c++)i.push(this.passes[l[c]]);s.passOffset=a,a+=s.passes.length}return(t=this.scatter).update.apply(t,i),this}},u.prototype.updateItem=function(t,e){var r=this.regl;if(null===e)return this.traces[t]=null,this;if(!e)return this;var n,o=i(e,{data:&quot;data items columns rows values dimensions samples x&quot;,snap:&quot;snap cluster&quot;,size:&quot;sizes size radius&quot;,color:&quot;colors color fill fill-color fillColor&quot;,opacity:&quot;opacity alpha transparency opaque&quot;,borderSize:&quot;borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline&quot;,borderColor:&quot;borderColors borderColor bordercolor stroke stroke-color strokeColor&quot;,marker:&quot;markers marker shape&quot;,range:&quot;range ranges databox dataBox&quot;,viewport:&quot;viewport viewBox viewbox&quot;,domain:&quot;domain domains area areas&quot;,padding:&quot;pad padding paddings pads margin margins&quot;,transpose:&quot;transpose transposed&quot;,diagonal:&quot;diagonal diag showDiagonal&quot;,upper:&quot;upper up top upperhalf upperHalf showupperhalf showUpper showUpperHalf&quot;,lower:&quot;lower low bottom lowerhalf lowerHalf showlowerhalf showLowerHalf showLower&quot;}),s=this.traces[t]||(this.traces[t]={id:t,buffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array}),color:&quot;black&quot;,marker:null,size:12,borderColor:&quot;transparent&quot;,borderSize:1,viewport:l([r._gl.drawingBufferWidth,r._gl.drawingBufferHeight]),padding:[0,0,0,0],opacity:1,diagonal:!0,upper:!0,lower:!0});if(null!=o.color&amp;&amp;(s.color=o.color),null!=o.size&amp;&amp;(s.size=o.size),null!=o.marker&amp;&amp;(s.marker=o.marker),null!=o.borderColor&amp;&amp;(s.borderColor=o.borderColor),null!=o.borderSize&amp;&amp;(s.borderSize=o.borderSize),null!=o.opacity&amp;&amp;(s.opacity=o.opacity),o.viewport&amp;&amp;(s.viewport=l(o.viewport)),null!=o.diagonal&amp;&amp;(s.diagonal=o.diagonal),null!=o.upper&amp;&amp;(s.upper=o.upper),null!=o.lower&amp;&amp;(s.lower=o.lower),o.data){s.buffer(c(o.data)),s.columns=o.data.length,s.count=o.data[0].length,s.bounds=[];for(var u=0;u&lt;s.columns;u++)s.bounds[u]=a(o.data[u],1)}o.range&amp;&amp;(s.range=o.range,n=s.range&amp;&amp;&quot;number&quot;!=typeof s.range[0]),o.domain&amp;&amp;(s.domain=o.domain);var d=!1;null!=o.padding&amp;&amp;(Array.isArray(o.padding)&amp;&amp;o.padding.length===s.columns&amp;&amp;&quot;number&quot;==typeof o.padding[o.padding.length-1]?(s.padding=o.padding.map(p),d=!0):s.padding=p(o.padding));var m=s.columns,g=s.count,v=s.viewport.width,y=s.viewport.height,x=s.viewport.x,b=s.viewport.y,_=v/m,w=y/m;s.passes=[];for(var T=0;T&lt;m;T++)for(var k=0;k&lt;m;k++)if((s.diagonal||k!==T)&amp;&amp;(s.upper||!(T&gt;k))&amp;&amp;(s.lower||!(T&lt;k))){var A=f(s.id,T,k),M=this.passes[A]||(this.passes[A]={});if(o.data&amp;&amp;(o.transpose?M.positions={x:{buffer:s.buffer,offset:k,count:g,stride:m},y:{buffer:s.buffer,offset:T,count:g,stride:m}}:M.positions={x:{buffer:s.buffer,offset:k*g,count:g},y:{buffer:s.buffer,offset:T*g,count:g}},M.bounds=h(s.bounds,T,k)),o.domain||o.viewport||o.data){var S=d?h(s.padding,T,k):s.padding;if(s.domain){var E=h(s.domain,T,k),L=E[0],C=E[1],P=E[2],I=E[3];M.viewport=[x+L*v+S[0],b+C*y+S[1],x+P*v-S[2],b+I*y-S[3]]}else M.viewport=[x+k*_+_*S[0],b+T*w+w*S[1],x+(k+1)*_-_*S[2],b+(T+1)*w-w*S[3]]}o.color&amp;&amp;(M.color=s.color),o.size&amp;&amp;(M.size=s.size),o.marker&amp;&amp;(M.marker=s.marker),o.borderSize&amp;&amp;(M.borderSize=s.borderSize),o.borderColor&amp;&amp;(M.borderColor=s.borderColor),o.opacity&amp;&amp;(M.opacity=s.opacity),o.range&amp;&amp;(M.range=n?h(s.range,T,k):s.range||M.bounds),s.passes.push(A)}return this},u.prototype.draw=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=[],i=0;i&lt;e.length;i++)if(&quot;number&quot;==typeof e[i]){var a=this.traces[e[i]],o=a.passes,l=a.passOffset;n.push.apply(n,s(l,l+o.length))}else if(e[i].length){var c=e[i],u=this.traces[i],f=u.passes,h=u.passOffset;f=f.map((function(t,e){n[h+e]=c}))}(t=this.scatter).draw.apply(t,n)}else this.scatter.draw();return this},u.prototype.destroy=function(){return this.traces.forEach((function(t){t.buffer&amp;&amp;t.buffer.destroy&amp;&amp;t.buffer.destroy()})),this.traces=null,this.passes=null,this.scatter.destroy(),this}},{&quot;array-bounds&quot;:71,&quot;array-range&quot;:74,&quot;flatten-vertex-data&quot;:191,&quot;parse-rect&quot;:249,&quot;pick-by-alias&quot;:253,raf:278,&quot;regl-scatter2d&quot;:281}],283:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?e.exports=n():t.createREGL=n()}(this,(function(){function t(t,e){this.id=U++,this.type=t,this.data=e}function e(t){return&quot;[&quot;+function t(e){if(0===e.length)return[];var r=e.charAt(0),n=e.charAt(e.length-1);if(1&lt;e.length&amp;&amp;r===n&amp;&amp;('&quot;'===r||&quot;'&quot;===r))return['&quot;'+e.substr(1,e.length-2).replace(/\\/g,&quot;\\\\&quot;).replace(/&quot;/g,'\\&quot;')+'&quot;'];if(r=/\[(false|true|null|\d+|'[^']*'|&quot;[^&quot;]*&quot;)\]/.exec(e))return t(e.substr(0,r.index)).concat(t(r[1])).concat(t(e.substr(r.index+r[0].length)));if(1===(r=e.split(&quot;.&quot;)).length)return['&quot;'+e.replace(/\\/g,&quot;\\\\&quot;).replace(/&quot;/g,'\\&quot;')+'&quot;'];for(e=[],n=0;n&lt;r.length;++n)e=e.concat(t(r[n]));return e}(t).join(&quot;][&quot;)+&quot;]&quot;}function r(t){return&quot;string&quot;==typeof t?t.split():t}function n(t){return&quot;string&quot;==typeof t?document.querySelector(t):t}function i(t){var e,i,a,o,s=t||{};t={};var l=[],c=[],u=&quot;undefined&quot;==typeof window?1:window.devicePixelRatio,f=!1,h=function(t){},p=function(){};if(&quot;string&quot;==typeof s?e=document.querySelector(s):&quot;object&quot;==typeof s&amp;&amp;(&quot;string&quot;==typeof s.nodeName&amp;&amp;&quot;function&quot;==typeof s.appendChild&amp;&amp;&quot;function&quot;==typeof s.getBoundingClientRect?e=s:&quot;function&quot;==typeof s.drawArrays||&quot;function&quot;==typeof s.drawElements?a=(o=s).canvas:(&quot;gl&quot;in s?o=s.gl:&quot;canvas&quot;in s?a=n(s.canvas):&quot;container&quot;in s&amp;&amp;(i=n(s.container)),&quot;attributes&quot;in s&amp;&amp;(t=s.attributes),&quot;extensions&quot;in s&amp;&amp;(l=r(s.extensions)),&quot;optionalExtensions&quot;in s&amp;&amp;(c=r(s.optionalExtensions)),&quot;onDone&quot;in s&amp;&amp;(h=s.onDone),&quot;profile&quot;in s&amp;&amp;(f=!!s.profile),&quot;pixelRatio&quot;in s&amp;&amp;(u=+s.pixelRatio))),e&amp;&amp;(&quot;canvas&quot;===e.nodeName.toLowerCase()?a=e:i=e),!o){if(!a){if(!(e=function(t,e,r){function n(){var e=window.innerWidth,n=window.innerHeight;t!==document.body&amp;&amp;(e=(n=a.getBoundingClientRect()).right-n.left,n=n.bottom-n.top),a.width=r*e,a.height=r*n}var i,a=document.createElement(&quot;canvas&quot;);return j(a.style,{border:0,margin:0,padding:0,top:0,left:0,width:&quot;100%&quot;,height:&quot;100%&quot;}),t.appendChild(a),t===document.body&amp;&amp;(a.style.position=&quot;absolute&quot;,j(t.style,{margin:0,padding:0})),t!==document.body&amp;&amp;&quot;function&quot;==typeof ResizeObserver?(i=new ResizeObserver((function(){setTimeout(n)}))).observe(t):window.addEventListener(&quot;resize&quot;,n,!1),n(),{canvas:a,onDestroy:function(){i?i.disconnect():window.removeEventListener(&quot;resize&quot;,n),t.removeChild(a)}}}(i||document.body,0,u)))return null;a=e.canvas,p=e.onDestroy}void 0===t.premultipliedAlpha&amp;&amp;(t.premultipliedAlpha=!0),o=function(t,e){function r(r){try{return t.getContext(r,e)}catch(t){return null}}return r(&quot;webgl&quot;)||r(&quot;experimental-webgl&quot;)||r(&quot;webgl-experimental&quot;)}(a,t)}return o?{gl:o,canvas:a,container:i,extensions:l,optionalExtensions:c,pixelRatio:u,profile:f,onDone:h,onDestroy:p}:(p(),h(&quot;webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org&quot;),null)}function a(t,e){for(var r=Array(t),n=0;n&lt;t;++n)r[n]=e(n);return r}function o(t){var e,r;return e=(65535&lt;t)&lt;&lt;4,e|=r=(255&lt;(t&gt;&gt;&gt;=e))&lt;&lt;3,(e|=r=(15&lt;(t&gt;&gt;&gt;=r))&lt;&lt;2)|(r=(3&lt;(t&gt;&gt;&gt;=r))&lt;&lt;1)|t&gt;&gt;&gt;r&gt;&gt;1}function s(){function t(t){t:{for(var e=16;268435456&gt;=e;e*=16)if(t&lt;=e){t=e;break t}t=0}return 0&lt;(e=r[o(t)&gt;&gt;2]).length?e.pop():new ArrayBuffer(t)}function e(t){r[o(t.byteLength)&gt;&gt;2].push(t)}var r=a(8,(function(){return[]}));return{alloc:t,free:e,allocType:function(e,r){var n=null;switch(e){case 5120:n=new Int8Array(t(r),0,r);break;case 5121:n=new Uint8Array(t(r),0,r);break;case 5122:n=new Int16Array(t(2*r),0,r);break;case 5123:n=new Uint16Array(t(2*r),0,r);break;case 5124:n=new Int32Array(t(4*r),0,r);break;case 5125:n=new Uint32Array(t(4*r),0,r);break;case 5126:n=new Float32Array(t(4*r),0,r);break;default:return null}return n.length!==r?n.subarray(0,r):n},freeType:function(t){e(t.buffer)}}}function l(t){return!!t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;Array.isArray(t.shape)&amp;&amp;Array.isArray(t.stride)&amp;&amp;&quot;number&quot;==typeof t.offset&amp;&amp;t.shape.length===t.stride.length&amp;&amp;(Array.isArray(t.data)||W(t.data))}function c(t,e,r,n,i,a){for(var o=0;o&lt;e;++o)for(var s=t[o],l=0;l&lt;r;++l)for(var c=s[l],u=0;u&lt;n;++u)i[a++]=c[u]}function u(t){return 0|J[Object.prototype.toString.call(t)]}function f(t,e){for(var r=0;r&lt;e.length;++r)t[r]=e[r]}function h(t,e,r,n,i,a,o){for(var s=0,l=0;l&lt;r;++l)for(var c=0;c&lt;n;++c)t[s++]=e[i*l+a*c+o]}function p(t,e,r,n){function i(e){this.id=c++,this.buffer=t.createBuffer(),this.type=e,this.usage=35044,this.byteLength=0,this.dimension=1,this.dtype=5121,this.persistentData=null,r.profile&amp;&amp;(this.stats={size:0})}function a(e,r,n){e.byteLength=r.byteLength,t.bufferData(e.type,r,n)}function o(t,e,r,n,i,o){if(t.usage=r,Array.isArray(e)){if(t.dtype=n||5126,0&lt;e.length)if(Array.isArray(e[0])){i=tt(e);for(var s=n=1;s&lt;i.length;++s)n*=i[s];t.dimension=n,a(t,e=$(e,i,t.dtype),r),o?t.persistentData=e:G.freeType(e)}else&quot;number&quot;==typeof e[0]?(t.dimension=i,f(i=G.allocType(t.dtype,e.length),e),a(t,i,r),o?t.persistentData=i:G.freeType(i)):W(e[0])&amp;&amp;(t.dimension=e[0].length,t.dtype=n||u(e[0])||5126,a(t,e=$(e,[e.length,e[0].length],t.dtype),r),o?t.persistentData=e:G.freeType(e))}else if(W(e))t.dtype=n||u(e),t.dimension=i,a(t,e,r),o&amp;&amp;(t.persistentData=new Uint8Array(new Uint8Array(e.buffer)));else if(l(e)){i=e.shape;var c=e.stride,p=(s=e.offset,0),d=0,m=0,g=0;1===i.length?(p=i[0],d=1,m=c[0],g=0):2===i.length&amp;&amp;(p=i[0],d=i[1],m=c[0],g=c[1]),t.dtype=n||u(e.data)||5126,t.dimension=d,h(i=G.allocType(t.dtype,p*d),e.data,p,d,m,g,s),a(t,i,r),o?t.persistentData=i:G.freeType(i)}else e instanceof ArrayBuffer&amp;&amp;(t.dtype=5121,t.dimension=i,a(t,e,r),o&amp;&amp;(t.persistentData=new Uint8Array(new Uint8Array(e))))}function s(r){e.bufferCount--,n(r),t.deleteBuffer(r.buffer),r.buffer=null,delete p[r.id]}var c=0,p={};i.prototype.bind=function(){t.bindBuffer(this.type,this.buffer)},i.prototype.destroy=function(){s(this)};var d=[];return r.profile&amp;&amp;(e.getTotalBufferSize=function(){var t=0;return Object.keys(p).forEach((function(e){t+=p[e].stats.size})),t}),{create:function(n,a,c,d){function m(e){var n=35044,i=null,a=0,s=0,c=1;return Array.isArray(e)||W(e)||l(e)||e instanceof ArrayBuffer?i=e:&quot;number&quot;==typeof e?a=0|e:e&amp;&amp;(&quot;data&quot;in e&amp;&amp;(i=e.data),&quot;usage&quot;in e&amp;&amp;(n=Q[e.usage]),&quot;type&quot;in e&amp;&amp;(s=K[e.type]),&quot;dimension&quot;in e&amp;&amp;(c=0|e.dimension),&quot;length&quot;in e&amp;&amp;(a=0|e.length)),g.bind(),i?o(g,i,n,s,c,d):(a&amp;&amp;t.bufferData(g.type,a,n),g.dtype=s||5121,g.usage=n,g.dimension=c,g.byteLength=a),r.profile&amp;&amp;(g.stats.size=g.byteLength*et[g.dtype]),m}e.bufferCount++;var g=new i(a);return p[g.id]=g,c||m(n),m._reglType=&quot;buffer&quot;,m._buffer=g,m.subdata=function(e,r){var n,i=0|(r||0);if(g.bind(),W(e)||e instanceof ArrayBuffer)t.bufferSubData(g.type,i,e);else if(Array.isArray(e)){if(0&lt;e.length)if(&quot;number&quot;==typeof e[0]){var a=G.allocType(g.dtype,e.length);f(a,e),t.bufferSubData(g.type,i,a),G.freeType(a)}else(Array.isArray(e[0])||W(e[0]))&amp;&amp;(n=tt(e),a=$(e,n,g.dtype),t.bufferSubData(g.type,i,a),G.freeType(a))}else if(l(e)){n=e.shape;var o=e.stride,s=a=0,c=0,p=0;1===n.length?(a=n[0],s=1,c=o[0],p=0):2===n.length&amp;&amp;(a=n[0],s=n[1],c=o[0],p=o[1]),n=Array.isArray(e.data)?g.dtype:u(e.data),h(n=G.allocType(n,a*s),e.data,a,s,c,p,e.offset),t.bufferSubData(g.type,i,n),G.freeType(n)}return m},r.profile&amp;&amp;(m.stats=g.stats),m.destroy=function(){s(g)},m},createStream:function(t,e){var r=d.pop();return r||(r=new i(t)),r.bind(),o(r,e,35040,0,1,!1),r},destroyStream:function(t){d.push(t)},clear:function(){X(p).forEach(s),d.forEach(s)},getBuffer:function(t){return t&amp;&amp;t._buffer instanceof i?t._buffer:null},restore:function(){X(p).forEach((function(e){e.buffer=t.createBuffer(),t.bindBuffer(e.type,e.buffer),t.bufferData(e.type,e.persistentData||e.byteLength,e.usage)}))},_initBuffer:o}}function d(t,e,r,n){function i(t){this.id=c++,s[this.id]=this,this.buffer=t,this.primType=4,this.type=this.vertCount=0}function a(n,i,a,o,s,c,u){var f;if(n.buffer.bind(),i?((f=u)||W(i)&amp;&amp;(!l(i)||W(i.data))||(f=e.oes_element_index_uint?5125:5123),r._initBuffer(n.buffer,i,a,f,3)):(t.bufferData(34963,c,a),n.buffer.dtype=f||5121,n.buffer.usage=a,n.buffer.dimension=3,n.buffer.byteLength=c),f=u,!u){switch(n.buffer.dtype){case 5121:case 5120:f=5121;break;case 5123:case 5122:f=5123;break;case 5125:case 5124:f=5125}n.buffer.dtype=f}n.type=f,0&gt;(i=s)&amp;&amp;(i=n.buffer.byteLength,5123===f?i&gt;&gt;=1:5125===f&amp;&amp;(i&gt;&gt;=2)),n.vertCount=i,i=o,0&gt;o&amp;&amp;(i=4,1===(o=n.buffer.dimension)&amp;&amp;(i=0),2===o&amp;&amp;(i=1),3===o&amp;&amp;(i=4)),n.primType=i}function o(t){n.elementsCount--,delete s[t.id],t.buffer.destroy(),t.buffer=null}var s={},c=0,u={uint8:5121,uint16:5123};e.oes_element_index_uint&amp;&amp;(u.uint32=5125),i.prototype.bind=function(){this.buffer.bind()};var f=[];return{create:function(t,e){function s(t){if(t)if(&quot;number&quot;==typeof t)c(t),f.primType=4,f.vertCount=0|t,f.type=5121;else{var e=null,r=35044,n=-1,i=-1,o=0,h=0;Array.isArray(t)||W(t)||l(t)?e=t:(&quot;data&quot;in t&amp;&amp;(e=t.data),&quot;usage&quot;in t&amp;&amp;(r=Q[t.usage]),&quot;primitive&quot;in t&amp;&amp;(n=rt[t.primitive]),&quot;count&quot;in t&amp;&amp;(i=0|t.count),&quot;type&quot;in t&amp;&amp;(h=u[t.type]),&quot;length&quot;in t?o=0|t.length:(o=i,5123===h||5122===h?o*=2:5125!==h&amp;&amp;5124!==h||(o*=4))),a(f,e,r,n,i,o,h)}else c(),f.primType=4,f.vertCount=0,f.type=5121;return s}var c=r.create(null,34963,!0),f=new i(c._buffer);return n.elementsCount++,s(t),s._reglType=&quot;elements&quot;,s._elements=f,s.subdata=function(t,e){return c.subdata(t,e),s},s.destroy=function(){o(f)},s},createStream:function(t){var e=f.pop();return e||(e=new i(r.create(null,34963,!0,!1)._buffer)),a(e,t,35040,-1,-1,0,0),e},destroyStream:function(t){f.push(t)},getElements:function(t){return&quot;function&quot;==typeof t&amp;&amp;t._elements instanceof i?t._elements:null},clear:function(){X(s).forEach(o)}}}function m(t){for(var e=G.allocType(5123,t.length),r=0;r&lt;t.length;++r)if(isNaN(t[r]))e[r]=65535;else if(1/0===t[r])e[r]=31744;else if(-1/0===t[r])e[r]=64512;else{nt[0]=t[r];var n=(a=it[0])&gt;&gt;&gt;31&lt;&lt;15,i=(a&lt;&lt;1&gt;&gt;&gt;24)-127,a=a&gt;&gt;13&amp;1023;e[r]=-24&gt;i?n:-14&gt;i?n+(a+1024&gt;&gt;-14-i):15&lt;i?n+31744:n+(i+15&lt;&lt;10)+a}return e}function g(t){return Array.isArray(t)||W(t)}function v(t){return&quot;[object &quot;+t+&quot;]&quot;}function y(t){return Array.isArray(t)&amp;&amp;(0===t.length||&quot;number&quot;==typeof t[0])}function x(t){return!(!Array.isArray(t)||0===t.length||!g(t[0]))}function b(t){return Object.prototype.toString.call(t)}function _(t){if(!t)return!1;var e=b(t);return 0&lt;=dt.indexOf(e)||(y(t)||x(t)||l(t))}function w(t,e){36193===t.type?(t.data=m(e),G.freeType(e)):t.data=e}function T(t,e,r,n,i,a){if(t=void 0!==gt[t]?gt[t]:st[t]*mt[e],a&amp;&amp;(t*=6),i){for(n=0;1&lt;=r;)n+=t*r*r,r/=2;return n}return t*r*n}function k(t,e,r,n,i,a,o){function s(){this.format=this.internalformat=6408,this.type=5121,this.flipY=this.premultiplyAlpha=this.compressed=!1,this.unpackAlignment=1,this.colorSpace=37444,this.channels=this.height=this.width=0}function c(t,e){t.internalformat=e.internalformat,t.format=e.format,t.type=e.type,t.compressed=e.compressed,t.premultiplyAlpha=e.premultiplyAlpha,t.flipY=e.flipY,t.unpackAlignment=e.unpackAlignment,t.colorSpace=e.colorSpace,t.width=e.width,t.height=e.height,t.channels=e.channels}function u(t,e){if(&quot;object&quot;==typeof e&amp;&amp;e){&quot;premultiplyAlpha&quot;in e&amp;&amp;(t.premultiplyAlpha=e.premultiplyAlpha),&quot;flipY&quot;in e&amp;&amp;(t.flipY=e.flipY),&quot;alignment&quot;in e&amp;&amp;(t.unpackAlignment=e.alignment),&quot;colorSpace&quot;in e&amp;&amp;(t.colorSpace=H[e.colorSpace]),&quot;type&quot;in e&amp;&amp;(t.type=q[e.type]);var r=t.width,n=t.height,i=t.channels,a=!1;&quot;shape&quot;in e?(r=e.shape[0],n=e.shape[1],3===e.shape.length&amp;&amp;(i=e.shape[2],a=!0)):(&quot;radius&quot;in e&amp;&amp;(r=n=e.radius),&quot;width&quot;in e&amp;&amp;(r=e.width),&quot;height&quot;in e&amp;&amp;(n=e.height),&quot;channels&quot;in e&amp;&amp;(i=e.channels,a=!0)),t.width=0|r,t.height=0|n,t.channels=0|i,r=!1,&quot;format&quot;in e&amp;&amp;(r=e.format,n=t.internalformat=Y[r],t.format=dt[n],r in q&amp;&amp;!(&quot;type&quot;in e)&amp;&amp;(t.type=q[r]),r in K&amp;&amp;(t.compressed=!0),r=!0),!a&amp;&amp;r?t.channels=st[t.format]:a&amp;&amp;!r&amp;&amp;t.channels!==ot[t.format]&amp;&amp;(t.format=t.internalformat=ot[t.channels])}}function f(e){t.pixelStorei(37440,e.flipY),t.pixelStorei(37441,e.premultiplyAlpha),t.pixelStorei(37443,e.colorSpace),t.pixelStorei(3317,e.unpackAlignment)}function h(){s.call(this),this.yOffset=this.xOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function p(t,e){var r=null;if(_(e)?r=e:e&amp;&amp;(u(t,e),&quot;x&quot;in e&amp;&amp;(t.xOffset=0|e.x),&quot;y&quot;in e&amp;&amp;(t.yOffset=0|e.y),_(e.data)&amp;&amp;(r=e.data)),e.copy){var n=i.viewportWidth,a=i.viewportHeight;t.width=t.width||n-t.xOffset,t.height=t.height||a-t.yOffset,t.needsCopy=!0}else if(r){if(W(r))t.channels=t.channels||4,t.data=r,&quot;type&quot;in e||5121!==t.type||(t.type=0|J[Object.prototype.toString.call(r)]);else if(y(r)){switch(t.channels=t.channels||4,a=(n=r).length,t.type){case 5121:case 5123:case 5125:case 5126:(a=G.allocType(t.type,a)).set(n),t.data=a;break;case 36193:t.data=m(n)}t.alignment=1,t.needsFree=!0}else if(l(r)){n=r.data,Array.isArray(n)||5121!==t.type||(t.type=0|J[Object.prototype.toString.call(n)]);a=r.shape;var o,s,c,f,h=r.stride;3===a.length?(c=a[2],f=h[2]):f=c=1,o=a[0],s=a[1],a=h[0],h=h[1],t.alignment=1,t.width=o,t.height=s,t.channels=c,t.format=t.internalformat=ot[c],t.needsFree=!0,o=f,r=r.offset,c=t.width,f=t.height,s=t.channels;for(var p=G.allocType(36193===t.type?5126:t.type,c*f*s),d=0,v=0;v&lt;f;++v)for(var T=0;T&lt;c;++T)for(var k=0;k&lt;s;++k)p[d++]=n[a*T+h*v+o*k+r];w(t,p)}else if(b(r)===lt||b(r)===ct||b(r)===ut)b(r)===lt||b(r)===ct?t.element=r:t.element=r.canvas,t.width=t.element.width,t.height=t.element.height,t.channels=4;else if(b(r)===ft)t.element=r,t.width=r.width,t.height=r.height,t.channels=4;else if(b(r)===ht)t.element=r,t.width=r.naturalWidth,t.height=r.naturalHeight,t.channels=4;else if(b(r)===pt)t.element=r,t.width=r.videoWidth,t.height=r.videoHeight,t.channels=4;else if(x(r)){for(n=t.width||r[0].length,a=t.height||r.length,h=t.channels,h=g(r[0][0])?h||r[0][0].length:h||1,o=Z.shape(r),c=1,f=0;f&lt;o.length;++f)c*=o[f];c=G.allocType(36193===t.type?5126:t.type,c),Z.flatten(r,o,&quot;&quot;,c),w(t,c),t.alignment=1,t.width=n,t.height=a,t.channels=h,t.format=t.internalformat=ot[h],t.needsFree=!0}}else t.width=t.width||1,t.height=t.height||1,t.channels=t.channels||4}function d(e,r,i,a,o){var s=e.element,l=e.data,c=e.internalformat,u=e.format,h=e.type,p=e.width,d=e.height;f(e),s?t.texSubImage2D(r,o,i,a,u,h,s):e.compressed?t.compressedTexSubImage2D(r,o,i,a,c,p,d,l):e.needsCopy?(n(),t.copyTexSubImage2D(r,o,i,a,e.xOffset,e.yOffset,p,d)):t.texSubImage2D(r,o,i,a,p,d,u,h,l)}function v(){return mt.pop()||new h}function k(t){t.needsFree&amp;&amp;G.freeType(t.data),h.call(t),mt.push(t)}function A(){s.call(this),this.genMipmaps=!1,this.mipmapHint=4352,this.mipmask=0,this.images=Array(16)}function M(t,e,r){var n=t.images[0]=v();t.mipmask=1,n.width=t.width=e,n.height=t.height=r,n.channels=t.channels=4}function S(t,e){var r=null;if(_(e))c(r=t.images[0]=v(),t),p(r,e),t.mipmask=1;else if(u(t,e),Array.isArray(e.mipmap))for(var n=e.mipmap,i=0;i&lt;n.length;++i)c(r=t.images[i]=v(),t),r.width&gt;&gt;=i,r.height&gt;&gt;=i,p(r,n[i]),t.mipmask|=1&lt;&lt;i;else c(r=t.images[0]=v(),t),p(r,e),t.mipmask=1;c(t,t.images[0])}function E(e,r){for(var i=e.images,a=0;a&lt;i.length&amp;&amp;i[a];++a){var o=i[a],s=r,l=a,c=o.element,u=o.data,h=o.internalformat,p=o.format,d=o.type,m=o.width,g=o.height;f(o),c?t.texImage2D(s,l,p,p,d,c):o.compressed?t.compressedTexImage2D(s,l,h,m,g,0,u):o.needsCopy?(n(),t.copyTexImage2D(s,l,p,o.xOffset,o.yOffset,m,g,0)):t.texImage2D(s,l,p,m,g,0,p,d,u||null)}}function L(){var t=gt.pop()||new A;s.call(t);for(var e=t.mipmask=0;16&gt;e;++e)t.images[e]=null;return t}function C(t){for(var e=t.images,r=0;r&lt;e.length;++r)e[r]&amp;&amp;k(e[r]),e[r]=null;gt.push(t)}function P(){this.magFilter=this.minFilter=9728,this.wrapT=this.wrapS=33071,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=4352}function I(t,e){&quot;min&quot;in e&amp;&amp;(t.minFilter=V[e.min],0&lt;=at.indexOf(t.minFilter)&amp;&amp;!(&quot;faces&quot;in e)&amp;&amp;(t.genMipmaps=!0)),&quot;mag&quot;in e&amp;&amp;(t.magFilter=U[e.mag]);var r=t.wrapS,n=t.wrapT;if(&quot;wrap&quot;in e){var i=e.wrap;&quot;string&quot;==typeof i?r=n=N[i]:Array.isArray(i)&amp;&amp;(r=N[i[0]],n=N[i[1]])}else&quot;wrapS&quot;in e&amp;&amp;(r=N[e.wrapS]),&quot;wrapT&quot;in e&amp;&amp;(n=N[e.wrapT]);if(t.wrapS=r,t.wrapT=n,&quot;anisotropic&quot;in e&amp;&amp;(t.anisotropic=e.anisotropic),&quot;mipmap&quot;in e){switch(r=!1,typeof e.mipmap){case&quot;string&quot;:t.mipmapHint=B[e.mipmap],r=t.genMipmaps=!0;break;case&quot;boolean&quot;:r=t.genMipmaps=e.mipmap;break;case&quot;object&quot;:t.genMipmaps=!1,r=!0}!r||&quot;min&quot;in e||(t.minFilter=9984)}}function O(r,n){t.texParameteri(n,10241,r.minFilter),t.texParameteri(n,10240,r.magFilter),t.texParameteri(n,10242,r.wrapS),t.texParameteri(n,10243,r.wrapT),e.ext_texture_filter_anisotropic&amp;&amp;t.texParameteri(n,34046,r.anisotropic),r.genMipmaps&amp;&amp;(t.hint(33170,r.mipmapHint),t.generateMipmap(n))}function z(e){s.call(this),this.mipmask=0,this.internalformat=6408,this.id=vt++,this.refCount=1,this.target=e,this.texture=t.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new P,o.profile&amp;&amp;(this.stats={size:0})}function D(e){t.activeTexture(33984),t.bindTexture(e.target,e.texture)}function R(){var e=bt[0];e?t.bindTexture(e.target,e.texture):t.bindTexture(3553,null)}function F(e){var r=e.texture,n=e.unit,i=e.target;0&lt;=n&amp;&amp;(t.activeTexture(33984+n),t.bindTexture(i,null),bt[n]=null),t.deleteTexture(r),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete yt[e.id],a.textureCount--}var B={&quot;don't care&quot;:4352,&quot;dont care&quot;:4352,nice:4354,fast:4353},N={repeat:10497,clamp:33071,mirror:33648},U={nearest:9728,linear:9729},V=j({mipmap:9987,&quot;nearest mipmap nearest&quot;:9984,&quot;linear mipmap nearest&quot;:9985,&quot;nearest mipmap linear&quot;:9986,&quot;linear mipmap linear&quot;:9987},U),H={none:0,browser:37444},q={uint8:5121,rgba4:32819,rgb565:33635,&quot;rgb5 a1&quot;:32820},Y={alpha:6406,luminance:6409,&quot;luminance alpha&quot;:6410,rgb:6407,rgba:6408,rgba4:32854,&quot;rgb5 a1&quot;:32855,rgb565:36194},K={};e.ext_srgb&amp;&amp;(Y.srgb=35904,Y.srgba=35906),e.oes_texture_float&amp;&amp;(q.float32=q.float=5126),e.oes_texture_half_float&amp;&amp;(q.float16=q[&quot;half float&quot;]=36193),e.webgl_depth_texture&amp;&amp;(j(Y,{depth:6402,&quot;depth stencil&quot;:34041}),j(q,{uint16:5123,uint32:5125,&quot;depth stencil&quot;:34042})),e.webgl_compressed_texture_s3tc&amp;&amp;j(K,{&quot;rgb s3tc dxt1&quot;:33776,&quot;rgba s3tc dxt1&quot;:33777,&quot;rgba s3tc dxt3&quot;:33778,&quot;rgba s3tc dxt5&quot;:33779}),e.webgl_compressed_texture_atc&amp;&amp;j(K,{&quot;rgb atc&quot;:35986,&quot;rgba atc explicit alpha&quot;:35987,&quot;rgba atc interpolated alpha&quot;:34798}),e.webgl_compressed_texture_pvrtc&amp;&amp;j(K,{&quot;rgb pvrtc 4bppv1&quot;:35840,&quot;rgb pvrtc 2bppv1&quot;:35841,&quot;rgba pvrtc 4bppv1&quot;:35842,&quot;rgba pvrtc 2bppv1&quot;:35843}),e.webgl_compressed_texture_etc1&amp;&amp;(K[&quot;rgb etc1&quot;]=36196);var Q=Array.prototype.slice.call(t.getParameter(34467));Object.keys(K).forEach((function(t){var e=K[t];0&lt;=Q.indexOf(e)&amp;&amp;(Y[t]=e)}));var $=Object.keys(Y);r.textureFormats=$;var tt=[];Object.keys(Y).forEach((function(t){tt[Y[t]]=t}));var et=[];Object.keys(q).forEach((function(t){et[q[t]]=t}));var rt=[];Object.keys(U).forEach((function(t){rt[U[t]]=t}));var nt=[];Object.keys(V).forEach((function(t){nt[V[t]]=t}));var it=[];Object.keys(N).forEach((function(t){it[N[t]]=t}));var dt=$.reduce((function(t,r){var n=Y[r];return 6409===n||6406===n||6409===n||6410===n||6402===n||34041===n||e.ext_srgb&amp;&amp;(35904===n||35906===n)?t[n]=n:32855===n||0&lt;=r.indexOf(&quot;rgba&quot;)?t[n]=6408:t[n]=6407,t}),{}),mt=[],gt=[],vt=0,yt={},xt=r.maxTextureUnits,bt=Array(xt).map((function(){return null}));return j(z.prototype,{bind:function(){this.bindCount+=1;var e=this.unit;if(0&gt;e){for(var r=0;r&lt;xt;++r){var n=bt[r];if(n){if(0&lt;n.bindCount)continue;n.unit=-1}bt[r]=this,e=r;break}o.profile&amp;&amp;a.maxTextureUnits&lt;e+1&amp;&amp;(a.maxTextureUnits=e+1),this.unit=e,t.activeTexture(33984+e),t.bindTexture(this.target,this.texture)}return e},unbind:function(){--this.bindCount},decRef:function(){0&gt;=--this.refCount&amp;&amp;F(this)}}),o.profile&amp;&amp;(a.getTotalTextureSize=function(){var t=0;return Object.keys(yt).forEach((function(e){t+=yt[e].stats.size})),t}),{create2D:function(e,r){function n(t,e){var r=i.texInfo;P.call(r);var a=L();return&quot;number&quot;==typeof t?M(a,0|t,&quot;number&quot;==typeof e?0|e:0|t):t?(I(r,t),S(a,t)):M(a,1,1),r.genMipmaps&amp;&amp;(a.mipmask=(a.width&lt;&lt;1)-1),i.mipmask=a.mipmask,c(i,a),i.internalformat=a.internalformat,n.width=a.width,n.height=a.height,D(i),E(a,3553),O(r,3553),R(),C(a),o.profile&amp;&amp;(i.stats.size=T(i.internalformat,i.type,a.width,a.height,r.genMipmaps,!1)),n.format=tt[i.internalformat],n.type=et[i.type],n.mag=rt[r.magFilter],n.min=nt[r.minFilter],n.wrapS=it[r.wrapS],n.wrapT=it[r.wrapT],n}var i=new z(3553);return yt[i.id]=i,a.textureCount++,n(e,r),n.subimage=function(t,e,r,a){e|=0,r|=0,a|=0;var o=v();return c(o,i),o.width=0,o.height=0,p(o,t),o.width=o.width||(i.width&gt;&gt;a)-e,o.height=o.height||(i.height&gt;&gt;a)-r,D(i),d(o,3553,e,r,a),R(),k(o),n},n.resize=function(e,r){var a=0|e,s=0|r||a;if(a===i.width&amp;&amp;s===i.height)return n;n.width=i.width=a,n.height=i.height=s,D(i);for(var l=0;i.mipmask&gt;&gt;l;++l){var c=a&gt;&gt;l,u=s&gt;&gt;l;if(!c||!u)break;t.texImage2D(3553,l,i.format,c,u,0,i.format,i.type,null)}return R(),o.profile&amp;&amp;(i.stats.size=T(i.internalformat,i.type,a,s,!1,!1)),n},n._reglType=&quot;texture2d&quot;,n._texture=i,o.profile&amp;&amp;(n.stats=i.stats),n.destroy=function(){i.decRef()},n},createCube:function(e,r,n,i,s,l){function f(t,e,r,n,i,a){var s,l=h.texInfo;for(P.call(l),s=0;6&gt;s;++s)m[s]=L();if(&quot;number&quot;!=typeof t&amp;&amp;t){if(&quot;object&quot;==typeof t)if(e)S(m[0],t),S(m[1],e),S(m[2],r),S(m[3],n),S(m[4],i),S(m[5],a);else if(I(l,t),u(h,t),&quot;faces&quot;in t)for(t=t.faces,s=0;6&gt;s;++s)c(m[s],h),S(m[s],t[s]);else for(s=0;6&gt;s;++s)S(m[s],t)}else for(t=0|t||1,s=0;6&gt;s;++s)M(m[s],t,t);for(c(h,m[0]),h.mipmask=l.genMipmaps?(m[0].width&lt;&lt;1)-1:m[0].mipmask,h.internalformat=m[0].internalformat,f.width=m[0].width,f.height=m[0].height,D(h),s=0;6&gt;s;++s)E(m[s],34069+s);for(O(l,34067),R(),o.profile&amp;&amp;(h.stats.size=T(h.internalformat,h.type,f.width,f.height,l.genMipmaps,!0)),f.format=tt[h.internalformat],f.type=et[h.type],f.mag=rt[l.magFilter],f.min=nt[l.minFilter],f.wrapS=it[l.wrapS],f.wrapT=it[l.wrapT],s=0;6&gt;s;++s)C(m[s]);return f}var h=new z(34067);yt[h.id]=h,a.cubeCount++;var m=Array(6);return f(e,r,n,i,s,l),f.subimage=function(t,e,r,n,i){r|=0,n|=0,i|=0;var a=v();return c(a,h),a.width=0,a.height=0,p(a,e),a.width=a.width||(h.width&gt;&gt;i)-r,a.height=a.height||(h.height&gt;&gt;i)-n,D(h),d(a,34069+t,r,n,i),R(),k(a),f},f.resize=function(e){if((e|=0)!==h.width){f.width=h.width=e,f.height=h.height=e,D(h);for(var r=0;6&gt;r;++r)for(var n=0;h.mipmask&gt;&gt;n;++n)t.texImage2D(34069+r,n,h.format,e&gt;&gt;n,e&gt;&gt;n,0,h.format,h.type,null);return R(),o.profile&amp;&amp;(h.stats.size=T(h.internalformat,h.type,f.width,f.height,!1,!0)),f}},f._reglType=&quot;textureCube&quot;,f._texture=h,o.profile&amp;&amp;(f.stats=h.stats),f.destroy=function(){h.decRef()},f},clear:function(){for(var e=0;e&lt;xt;++e)t.activeTexture(33984+e),t.bindTexture(3553,null),bt[e]=null;X(yt).forEach(F),a.cubeCount=0,a.textureCount=0},getTexture:function(t){return null},restore:function(){for(var e=0;e&lt;xt;++e){var r=bt[e];r&amp;&amp;(r.bindCount=0,r.unit=-1,bt[e]=null)}X(yt).forEach((function(e){e.texture=t.createTexture(),t.bindTexture(e.target,e.texture);for(var r=0;32&gt;r;++r)if(0!=(e.mipmask&amp;1&lt;&lt;r))if(3553===e.target)t.texImage2D(3553,r,e.internalformat,e.width&gt;&gt;r,e.height&gt;&gt;r,0,e.internalformat,e.type,null);else for(var n=0;6&gt;n;++n)t.texImage2D(34069+n,r,e.internalformat,e.width&gt;&gt;r,e.height&gt;&gt;r,0,e.internalformat,e.type,null);O(e.texInfo,e.target)}))},refresh:function(){for(var e=0;e&lt;xt;++e){var r=bt[e];r&amp;&amp;(r.bindCount=0,r.unit=-1,bt[e]=null),t.activeTexture(33984+e),t.bindTexture(3553,null),t.bindTexture(34067,null)}}}}function A(t,e,r,n,i,a){function o(t,e,r){this.target=t,this.texture=e,this.renderbuffer=r;var n=t=0;e?(t=e.width,n=e.height):r&amp;&amp;(t=r.width,n=r.height),this.width=t,this.height=n}function s(t){t&amp;&amp;(t.texture&amp;&amp;t.texture._texture.decRef(),t.renderbuffer&amp;&amp;t.renderbuffer._renderbuffer.decRef())}function l(t,e,r){t&amp;&amp;(t.texture?t.texture._texture.refCount+=1:t.renderbuffer._renderbuffer.refCount+=1)}function c(e,r){r&amp;&amp;(r.texture?t.framebufferTexture2D(36160,e,r.target,r.texture._texture.texture,0):t.framebufferRenderbuffer(36160,e,36161,r.renderbuffer._renderbuffer.renderbuffer))}function u(t){var e=3553,r=null,n=null,i=t;return&quot;object&quot;==typeof t&amp;&amp;(i=t.data,&quot;target&quot;in t&amp;&amp;(e=0|t.target)),&quot;texture2d&quot;===(t=i._reglType)||&quot;textureCube&quot;===t?r=i:&quot;renderbuffer&quot;===t&amp;&amp;(n=i,e=36161),new o(e,r,n)}function f(t,e,r,a,s){return r?((t=n.create2D({width:t,height:e,format:a,type:s}))._texture.refCount=0,new o(3553,t,null)):((t=i.create({width:t,height:e,format:a}))._renderbuffer.refCount=0,new o(36161,null,t))}function h(t){return t&amp;&amp;(t.texture||t.renderbuffer)}function p(t,e,r){t&amp;&amp;(t.texture?t.texture.resize(e,r):t.renderbuffer&amp;&amp;t.renderbuffer.resize(e,r),t.width=e,t.height=r)}function d(){this.id=T++,k[this.id]=this,this.framebuffer=t.createFramebuffer(),this.height=this.width=0,this.colorAttachments=[],this.depthStencilAttachment=this.stencilAttachment=this.depthAttachment=null}function m(t){t.colorAttachments.forEach(s),s(t.depthAttachment),s(t.stencilAttachment),s(t.depthStencilAttachment)}function g(e){t.deleteFramebuffer(e.framebuffer),e.framebuffer=null,a.framebufferCount--,delete k[e.id]}function v(e){var n;t.bindFramebuffer(36160,e.framebuffer);var i=e.colorAttachments;for(n=0;n&lt;i.length;++n)c(36064+n,i[n]);for(n=i.length;n&lt;r.maxColorAttachments;++n)t.framebufferTexture2D(36160,36064+n,3553,null,0);t.framebufferTexture2D(36160,33306,3553,null,0),t.framebufferTexture2D(36160,36096,3553,null,0),t.framebufferTexture2D(36160,36128,3553,null,0),c(36096,e.depthAttachment),c(36128,e.stencilAttachment),c(33306,e.depthStencilAttachment),t.checkFramebufferStatus(36160),t.isContextLost(),t.bindFramebuffer(36160,x.next?x.next.framebuffer:null),x.cur=x.next,t.getError()}function y(t,e){function r(t,e){var i,a=0,o=0,s=!0,c=!0;i=null;var p=!0,d=&quot;rgba&quot;,g=&quot;uint8&quot;,y=1,x=null,w=null,T=null,k=!1;&quot;number&quot;==typeof t?(a=0|t,o=0|e||a):t?(&quot;shape&quot;in t?(a=(o=t.shape)[0],o=o[1]):(&quot;radius&quot;in t&amp;&amp;(a=o=t.radius),&quot;width&quot;in t&amp;&amp;(a=t.width),&quot;height&quot;in t&amp;&amp;(o=t.height)),(&quot;color&quot;in t||&quot;colors&quot;in t)&amp;&amp;(i=t.color||t.colors,Array.isArray(i)),i||(&quot;colorCount&quot;in t&amp;&amp;(y=0|t.colorCount),&quot;colorTexture&quot;in t&amp;&amp;(p=!!t.colorTexture,d=&quot;rgba4&quot;),&quot;colorType&quot;in t&amp;&amp;(g=t.colorType,!p)&amp;&amp;(&quot;half float&quot;===g||&quot;float16&quot;===g?d=&quot;rgba16f&quot;:&quot;float&quot;!==g&amp;&amp;&quot;float32&quot;!==g||(d=&quot;rgba32f&quot;)),&quot;colorFormat&quot;in t&amp;&amp;(d=t.colorFormat,0&lt;=b.indexOf(d)?p=!0:0&lt;=_.indexOf(d)&amp;&amp;(p=!1))),(&quot;depthTexture&quot;in t||&quot;depthStencilTexture&quot;in t)&amp;&amp;(k=!(!t.depthTexture&amp;&amp;!t.depthStencilTexture)),&quot;depth&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.depth?s=t.depth:(x=t.depth,c=!1)),&quot;stencil&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.stencil?c=t.stencil:(w=t.stencil,s=!1)),&quot;depthStencil&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.depthStencil?s=c=t.depthStencil:(T=t.depthStencil,c=s=!1))):a=o=1;var A=null,M=null,S=null,E=null;if(Array.isArray(i))A=i.map(u);else if(i)A=[u(i)];else for(A=Array(y),i=0;i&lt;y;++i)A[i]=f(a,o,p,d,g);for(a=a||A[0].width,o=o||A[0].height,x?M=u(x):s&amp;&amp;!c&amp;&amp;(M=f(a,o,k,&quot;depth&quot;,&quot;uint32&quot;)),w?S=u(w):c&amp;&amp;!s&amp;&amp;(S=f(a,o,!1,&quot;stencil&quot;,&quot;uint8&quot;)),T?E=u(T):!x&amp;&amp;!w&amp;&amp;c&amp;&amp;s&amp;&amp;(E=f(a,o,k,&quot;depth stencil&quot;,&quot;depth stencil&quot;)),s=null,i=0;i&lt;A.length;++i)l(A[i]),A[i]&amp;&amp;A[i].texture&amp;&amp;(c=xt[A[i].texture._texture.format]*bt[A[i].texture._texture.type],null===s&amp;&amp;(s=c));return l(M),l(S),l(E),m(n),n.width=a,n.height=o,n.colorAttachments=A,n.depthAttachment=M,n.stencilAttachment=S,n.depthStencilAttachment=E,r.color=A.map(h),r.depth=h(M),r.stencil=h(S),r.depthStencil=h(E),r.width=n.width,r.height=n.height,v(n),r}var n=new d;return a.framebufferCount++,r(t,e),j(r,{resize:function(t,e){var i=Math.max(0|t,1),a=Math.max(0|e||i,1);if(i===n.width&amp;&amp;a===n.height)return r;for(var o=n.colorAttachments,s=0;s&lt;o.length;++s)p(o[s],i,a);return p(n.depthAttachment,i,a),p(n.stencilAttachment,i,a),p(n.depthStencilAttachment,i,a),n.width=r.width=i,n.height=r.height=a,v(n),r},_reglType:&quot;framebuffer&quot;,_framebuffer:n,destroy:function(){g(n),m(n)},use:function(t){x.setFBO({framebuffer:r},t)}})}var x={cur:null,next:null,dirty:!1,setFBO:null},b=[&quot;rgba&quot;],_=[&quot;rgba4&quot;,&quot;rgb565&quot;,&quot;rgb5 a1&quot;];e.ext_srgb&amp;&amp;_.push(&quot;srgba&quot;),e.ext_color_buffer_half_float&amp;&amp;_.push(&quot;rgba16f&quot;,&quot;rgb16f&quot;),e.webgl_color_buffer_float&amp;&amp;_.push(&quot;rgba32f&quot;);var w=[&quot;uint8&quot;];e.oes_texture_half_float&amp;&amp;w.push(&quot;half float&quot;,&quot;float16&quot;),e.oes_texture_float&amp;&amp;w.push(&quot;float&quot;,&quot;float32&quot;);var T=0,k={};return j(x,{getFramebuffer:function(t){return&quot;function&quot;==typeof t&amp;&amp;&quot;framebuffer&quot;===t._reglType&amp;&amp;(t=t._framebuffer)instanceof d?t:null},create:y,createCube:function(t){function e(t){var i,a={color:null},o=0,s=null;i=&quot;rgba&quot;;var l=&quot;uint8&quot;,c=1;if(&quot;number&quot;==typeof t?o=0|t:t?(&quot;shape&quot;in t?o=t.shape[0]:(&quot;radius&quot;in t&amp;&amp;(o=0|t.radius),&quot;width&quot;in t?o=0|t.width:&quot;height&quot;in t&amp;&amp;(o=0|t.height)),(&quot;color&quot;in t||&quot;colors&quot;in t)&amp;&amp;(s=t.color||t.colors,Array.isArray(s)),s||(&quot;colorCount&quot;in t&amp;&amp;(c=0|t.colorCount),&quot;colorType&quot;in t&amp;&amp;(l=t.colorType),&quot;colorFormat&quot;in t&amp;&amp;(i=t.colorFormat)),&quot;depth&quot;in t&amp;&amp;(a.depth=t.depth),&quot;stencil&quot;in t&amp;&amp;(a.stencil=t.stencil),&quot;depthStencil&quot;in t&amp;&amp;(a.depthStencil=t.depthStencil)):o=1,s)if(Array.isArray(s))for(t=[],i=0;i&lt;s.length;++i)t[i]=s[i];else t=[s];else for(t=Array(c),s={radius:o,format:i,type:l},i=0;i&lt;c;++i)t[i]=n.createCube(s);for(a.color=Array(t.length),i=0;i&lt;t.length;++i)c=t[i],o=o||c.width,a.color[i]={target:34069,data:t[i]};for(i=0;6&gt;i;++i){for(c=0;c&lt;t.length;++c)a.color[c].target=34069+i;0&lt;i&amp;&amp;(a.depth=r[0].depth,a.stencil=r[0].stencil,a.depthStencil=r[0].depthStencil),r[i]?r[i](a):r[i]=y(a)}return j(e,{width:o,height:o,color:t})}var r=Array(6);return e(t),j(e,{faces:r,resize:function(t){var n=0|t;if(n===e.width)return e;var i=e.color;for(t=0;t&lt;i.length;++t)i[t].resize(n);for(t=0;6&gt;t;++t)r[t].resize(n);return e.width=e.height=n,e},_reglType:&quot;framebufferCube&quot;,destroy:function(){r.forEach((function(t){t.destroy()}))}})},clear:function(){X(k).forEach(g)},restore:function(){x.cur=null,x.next=null,x.dirty=!0,X(k).forEach((function(e){e.framebuffer=t.createFramebuffer(),v(e)}))}})}function M(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function S(t,e,r,n,i,a,o){function s(){this.id=++f,this.attributes=[],this.elements=null,this.ownsElements=!1,this.offset=this.count=0,this.instances=-1,this.primitive=4;var t=e.oes_vertex_array_object;this.vao=t?t.createVertexArrayOES():null,h[this.id]=this,this.buffers=[]}var c=r.maxAttributes,u=Array(c);for(r=0;r&lt;c;++r)u[r]=new M;var f=0,h={},p={Record:M,scope:{},state:u,currentVAO:null,targetVAO:null,restore:e.oes_vertex_array_object?function(){e.oes_vertex_array_object&amp;&amp;X(h).forEach((function(t){t.refresh()}))}:function(){},createVAO:function(t){function e(t){var n;Array.isArray(t)?(n=t,r.elements&amp;&amp;r.ownsElements&amp;&amp;r.elements.destroy(),r.elements=null,r.ownsElements=!1,r.offset=0,r.count=0,r.instances=-1,r.primitive=4):(t.elements?(n=t.elements,r.ownsElements?(&quot;function&quot;==typeof n&amp;&amp;&quot;elements&quot;===n._reglType?r.elements.destroy():r.elements(n),r.ownsElements=!1):a.getElements(t.elements)?(r.elements=t.elements,r.ownsElements=!1):(r.elements=a.create(t.elements),r.ownsElements=!0)):(r.elements=null,r.ownsElements=!1),n=t.attributes,r.offset=0,r.count=-1,r.instances=-1,r.primitive=4,r.elements&amp;&amp;(r.count=r.elements._elements.vertCount,r.primitive=r.elements._elements.primType),&quot;offset&quot;in t&amp;&amp;(r.offset=0|t.offset),&quot;count&quot;in t&amp;&amp;(r.count=0|t.count),&quot;instances&quot;in t&amp;&amp;(r.instances=0|t.instances),&quot;primitive&quot;in t&amp;&amp;(r.primitive=rt[t.primitive])),t={};var o=r.attributes;o.length=n.length;for(var s=0;s&lt;n.length;++s){var c,u=n[s],f=o[s]=new M,h=u.data||u;if(Array.isArray(h)||W(h)||l(h))r.buffers[s]&amp;&amp;(c=r.buffers[s],W(h)&amp;&amp;c._buffer.byteLength&gt;=h.byteLength?c.subdata(h):(c.destroy(),r.buffers[s]=null)),r.buffers[s]||(c=r.buffers[s]=i.create(u,34962,!1,!0)),f.buffer=i.getBuffer(c),f.size=0|f.buffer.dimension,f.normalized=!1,f.type=f.buffer.dtype,f.offset=0,f.stride=0,f.divisor=0,f.state=1,t[s]=1;else i.getBuffer(u)?(f.buffer=i.getBuffer(u),f.size=0|f.buffer.dimension,f.normalized=!1,f.type=f.buffer.dtype,f.offset=0,f.stride=0,f.divisor=0,f.state=1):i.getBuffer(u.buffer)?(f.buffer=i.getBuffer(u.buffer),f.size=0|(+u.size||f.buffer.dimension),f.normalized=!!u.normalized||!1,f.type=&quot;type&quot;in u?K[u.type]:f.buffer.dtype,f.offset=0|(u.offset||0),f.stride=0|(u.stride||0),f.divisor=0|(u.divisor||0),f.state=1):&quot;x&quot;in u&amp;&amp;(f.x=+u.x||0,f.y=+u.y||0,f.z=+u.z||0,f.w=+u.w||0,f.state=2)}for(c=0;c&lt;r.buffers.length;++c)!t[c]&amp;&amp;r.buffers[c]&amp;&amp;(r.buffers[c].destroy(),r.buffers[c]=null);return r.refresh(),e}var r=new s;return n.vaoCount+=1,e.destroy=function(){for(var t=0;t&lt;r.buffers.length;++t)r.buffers[t]&amp;&amp;r.buffers[t].destroy();r.buffers.length=0,r.ownsElements&amp;&amp;(r.elements.destroy(),r.elements=null,r.ownsElements=!1),r.destroy()},e._vao=r,e._reglType=&quot;vao&quot;,e(t)},getVAO:function(t){return&quot;function&quot;==typeof t&amp;&amp;t._vao?t._vao:null},destroyBuffer:function(e){for(var r=0;r&lt;u.length;++r){var n=u[r];n.buffer===e&amp;&amp;(t.disableVertexAttribArray(r),n.buffer=null)}},setVAO:e.oes_vertex_array_object?function(t){if(t!==p.currentVAO){var r=e.oes_vertex_array_object;t?r.bindVertexArrayOES(t.vao):r.bindVertexArrayOES(null),p.currentVAO=t}}:function(r){if(r!==p.currentVAO){if(r)r.bindAttrs();else{for(var n=e.angle_instanced_arrays,i=0;i&lt;u.length;++i){var a=u[i];a.buffer?(t.enableVertexAttribArray(i),a.buffer.bind(),t.vertexAttribPointer(i,a.size,a.type,a.normalized,a.stride,a.offfset),n&amp;&amp;a.divisor&amp;&amp;n.vertexAttribDivisorANGLE(i,a.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,a.x,a.y,a.z,a.w))}o.elements?t.bindBuffer(34963,o.elements.buffer.buffer):t.bindBuffer(34963,null)}p.currentVAO=r}},clear:e.oes_vertex_array_object?function(){X(h).forEach((function(t){t.destroy()}))}:function(){}};return s.prototype.bindAttrs=function(){for(var r=e.angle_instanced_arrays,n=this.attributes,i=0;i&lt;n.length;++i){var o=n[i];o.buffer?(t.enableVertexAttribArray(i),t.bindBuffer(34962,o.buffer.buffer),t.vertexAttribPointer(i,o.size,o.type,o.normalized,o.stride,o.offset),r&amp;&amp;o.divisor&amp;&amp;r.vertexAttribDivisorANGLE(i,o.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,o.x,o.y,o.z,o.w))}for(r=n.length;r&lt;c;++r)t.disableVertexAttribArray(r);(r=a.getElements(this.elements))?t.bindBuffer(34963,r.buffer.buffer):t.bindBuffer(34963,null)},s.prototype.refresh=function(){var t=e.oes_vertex_array_object;t&amp;&amp;(t.bindVertexArrayOES(this.vao),this.bindAttrs(),p.currentVAO=null,t.bindVertexArrayOES(null))},s.prototype.destroy=function(){if(this.vao){var t=e.oes_vertex_array_object;this===p.currentVAO&amp;&amp;(p.currentVAO=null,t.bindVertexArrayOES(null)),t.deleteVertexArrayOES(this.vao),this.vao=null}this.ownsElements&amp;&amp;(this.elements.destroy(),this.elements=null,this.ownsElements=!1),h[this.id]&amp;&amp;(delete h[this.id],--n.vaoCount)},p}function E(t,e,r,n){function i(t,e,r,n){this.name=t,this.id=e,this.location=r,this.info=n}function a(t,e){for(var r=0;r&lt;t.length;++r)if(t[r].id===e.id)return void(t[r].location=e.location);t.push(e)}function o(r,n,i){if(!(o=(i=35632===r?c:u)[n])){var a=e.str(n),o=t.createShader(r);t.shaderSource(o,a),t.compileShader(o),i[n]=o}return o}function s(t,e){this.id=p++,this.fragId=t,this.vertId=e,this.program=null,this.uniforms=[],this.attributes=[],this.refCount=1,n.profile&amp;&amp;(this.stats={uniformsCount:0,attributesCount:0})}function l(r,s,l){var c;c=o(35632,r.fragId);var u=o(35633,r.vertId);if(s=r.program=t.createProgram(),t.attachShader(s,c),t.attachShader(s,u),l)for(c=0;c&lt;l.length;++c)u=l[c],t.bindAttribLocation(s,u[0],u[1]);t.linkProgram(s),u=t.getProgramParameter(s,35718),n.profile&amp;&amp;(r.stats.uniformsCount=u);var f=r.uniforms;for(c=0;c&lt;u;++c)if(l=t.getActiveUniform(s,c)){if(1&lt;l.size)for(var h=0;h&lt;l.size;++h){var p=l.name.replace(&quot;[0]&quot;,&quot;[&quot;+h+&quot;]&quot;);a(f,new i(p,e.id(p),t.getUniformLocation(s,p),l))}h=l.name,1&lt;l.size&amp;&amp;(h=h.replace(&quot;[0]&quot;,&quot;&quot;)),a(f,new i(h,e.id(h),t.getUniformLocation(s,h),l))}for(u=t.getProgramParameter(s,35721),n.profile&amp;&amp;(r.stats.attributesCount=u),r=r.attributes,c=0;c&lt;u;++c)(l=t.getActiveAttrib(s,c))&amp;&amp;a(r,new i(l.name,e.id(l.name),t.getAttribLocation(s,l.name),l))}var c={},u={},f={},h=[],p=0;return n.profile&amp;&amp;(r.getMaxUniformsCount=function(){var t=0;return h.forEach((function(e){e.stats.uniformsCount&gt;t&amp;&amp;(t=e.stats.uniformsCount)})),t},r.getMaxAttributesCount=function(){var t=0;return h.forEach((function(e){e.stats.attributesCount&gt;t&amp;&amp;(t=e.stats.attributesCount)})),t}),{clear:function(){var e=t.deleteShader.bind(t);X(c).forEach(e),c={},X(u).forEach(e),u={},h.forEach((function(e){t.deleteProgram(e.program)})),h.length=0,f={},r.shaderCount=0},program:function(e,n,i,a){var o=f[n];o||(o=f[n]={});var p=o[e];if(p&amp;&amp;(p.refCount++,!a))return p;var d=new s(n,e);return r.shaderCount++,l(d,i,a),p||(o[e]=d),h.push(d),j(d,{destroy:function(){if(d.refCount--,0&gt;=d.refCount){t.deleteProgram(d.program);var e=h.indexOf(d);h.splice(e,1),r.shaderCount--}0&gt;=o[d.vertId].refCount&amp;&amp;(t.deleteShader(u[d.vertId]),delete u[d.vertId],delete f[d.fragId][d.vertId]),Object.keys(f[d.fragId]).length||(t.deleteShader(c[d.fragId]),delete c[d.fragId],delete f[d.fragId])}})},restore:function(){c={},u={};for(var t=0;t&lt;h.length;++t)l(h[t],null,h[t].attributes.map((function(t){return[t.location,t.name]})))},shader:o,frag:-1,vert:-1}}function L(t,e,r,n,i,a,o){function s(i){var a;a=null===e.next?5121:e.next.colorAttachments[0].texture._texture.type;var o=0,s=0,l=n.framebufferWidth,c=n.framebufferHeight,u=null;return W(i)?u=i:i&amp;&amp;(o=0|i.x,s=0|i.y,l=0|(i.width||n.framebufferWidth-o),c=0|(i.height||n.framebufferHeight-s),u=i.data||null),r(),i=l*c*4,u||(5121===a?u=new Uint8Array(i):5126===a&amp;&amp;(u=u||new Float32Array(i))),t.pixelStorei(3333,4),t.readPixels(o,s,l,c,6408,a,u),u}return function(t){return t&amp;&amp;&quot;framebuffer&quot;in t?function(t){var r;return e.setFBO({framebuffer:t.framebuffer},(function(){r=s(t)})),r}(t):s(t)}}function C(t){return Array.prototype.slice.call(t)}function P(t){return C(t).join(&quot;&quot;)}function I(t){return Array.isArray(t)||W(t)||l(t)}function O(t){return t.sort((function(t,e){return&quot;viewport&quot;===t?-1:&quot;viewport&quot;===e?1:t&lt;e?-1:1}))}function z(t,e,r,n){this.thisDep=t,this.contextDep=e,this.propDep=r,this.append=n}function D(t){return t&amp;&amp;!(t.thisDep||t.contextDep||t.propDep)}function R(t){return new z(!1,!1,!1,t)}function F(t,e){var r=t.type;if(0===r)return new z(!0,1&lt;=(r=t.data.length),2&lt;=r,e);if(4===r)return new z((r=t.data).thisDep,r.contextDep,r.propDep,e);if(5===r)return new z(!1,!1,!1,e);if(6===r){for(var n=r=!1,i=!1,a=0;a&lt;t.data.length;++a){var o=t.data[a];1===o.type?i=!0:2===o.type?n=!0:3===o.type?r=!0:0===o.type?(r=!0,1&lt;=(o=o.data)&amp;&amp;(n=!0),2&lt;=o&amp;&amp;(i=!0)):4===o.type&amp;&amp;(r=r||o.data.thisDep,n=n||o.data.contextDep,i=i||o.data.propDep)}return new z(r,n,i,e)}return new z(3===r,2===r,1===r,e)}function B(t,e,r,n,i,o,s,l,c,u,f,h,p,d,m){function v(t){return t.replace(&quot;.&quot;,&quot;_&quot;)}function y(t,e,r){var n=v(t);ot.push(t),at[n]=it[n]=!!r,st[n]=e}function x(t,e,r){var n=v(t);ot.push(t),Array.isArray(r)?(it[n]=r.slice(),at[n]=r.slice()):it[n]=at[n]=r,lt[n]=e}function b(){var t=function(){function t(){var t=[],e=[];return j((function(){t.push.apply(t,C(arguments))}),{def:function(){var n=&quot;v&quot;+r++;return e.push(n),0&lt;arguments.length&amp;&amp;(t.push(n,&quot;=&quot;),t.push.apply(t,C(arguments)),t.push(&quot;;&quot;)),n},toString:function(){return P([0&lt;e.length?&quot;var &quot;+e.join(&quot;,&quot;)+&quot;;&quot;:&quot;&quot;,P(t)])}})}function e(){function e(t,e){n(t,e,&quot;=&quot;,r.def(t,e),&quot;;&quot;)}var r=t(),n=t(),i=r.toString,a=n.toString;return j((function(){r.apply(r,C(arguments))}),{def:r.def,entry:r,exit:n,save:e,set:function(t,n,i){e(t,n),r(t,n,&quot;=&quot;,i,&quot;;&quot;)},toString:function(){return i()+a()}})}var r=0,n=[],i=[],a=t(),o={};return{global:a,link:function(t){for(var e=0;e&lt;i.length;++e)if(i[e]===t)return n[e];return e=&quot;g&quot;+r++,n.push(e),i.push(t),e},block:t,proc:function(t,r){function n(){var t=&quot;a&quot;+i.length;return i.push(t),t}var i=[];r=r||0;for(var a=0;a&lt;r;++a)n();var s=(a=e()).toString;return o[t]=j(a,{arg:n,toString:function(){return P([&quot;function(&quot;,i.join(),&quot;){&quot;,s(),&quot;}&quot;])}})},scope:e,cond:function(){var t=P(arguments),r=e(),n=e(),i=r.toString,a=n.toString;return j(r,{then:function(){return r.apply(r,C(arguments)),this},else:function(){return n.apply(n,C(arguments)),this},toString:function(){var e=a();return e&amp;&amp;(e=&quot;else{&quot;+e+&quot;}&quot;),P([&quot;if(&quot;,t,&quot;){&quot;,i(),&quot;}&quot;,e])}})},compile:function(){var t=['&quot;use strict&quot;;',a,&quot;return {&quot;];Object.keys(o).forEach((function(e){t.push('&quot;',e,'&quot;:',o[e].toString(),&quot;,&quot;)})),t.push(&quot;}&quot;);var e=P(t).replace(/;/g,&quot;;\n&quot;).replace(/}/g,&quot;}\n&quot;).replace(/{/g,&quot;{\n&quot;);return Function.apply(null,n.concat(e)).apply(null,i)}}}(),r=t.link,n=t.global;t.id=ft++,t.batchId=&quot;0&quot;;var i=r(ct),a=t.shared={props:&quot;a0&quot;};Object.keys(ct).forEach((function(t){a[t]=n.def(i,&quot;.&quot;,t)}));var o=t.next={},s=t.current={};Object.keys(lt).forEach((function(t){Array.isArray(it[t])&amp;&amp;(o[t]=n.def(a.next,&quot;.&quot;,t),s[t]=n.def(a.current,&quot;.&quot;,t))}));var l=t.constants={};Object.keys(ut).forEach((function(t){l[t]=n.def(JSON.stringify(ut[t]))})),t.invoke=function(e,n){switch(n.type){case 0:var i=[&quot;this&quot;,a.context,a.props,t.batchId];return e.def(r(n.data),&quot;.call(&quot;,i.slice(0,Math.max(n.data.length+1,4)),&quot;)&quot;);case 1:return e.def(a.props,n.data);case 2:return e.def(a.context,n.data);case 3:return e.def(&quot;this&quot;,n.data);case 4:return n.data.append(t,e),n.data.ref;case 5:return n.data.toString();case 6:return n.data.map((function(r){return t.invoke(e,r)}))}},t.attribCache={};var c={};return t.scopeAttrib=function(t){if((t=e.id(t))in c)return c[t];var n=u.scope[t];return n||(n=u.scope[t]=new Q),c[t]=r(n)},t}function _(t,e){var r=t.static,n=t.dynamic;if(&quot;framebuffer&quot;in r){var i=r.framebuffer;return i?(i=l.getFramebuffer(i),R((function(t,e){var r=t.link(i),n=t.shared;return e.set(n.framebuffer,&quot;.next&quot;,r),n=n.context,e.set(n,&quot;.framebufferWidth&quot;,r+&quot;.width&quot;),e.set(n,&quot;.framebufferHeight&quot;,r+&quot;.height&quot;),r}))):R((function(t,e){var r=t.shared;return e.set(r.framebuffer,&quot;.next&quot;,&quot;null&quot;),r=r.context,e.set(r,&quot;.framebufferWidth&quot;,r+&quot;.drawingBufferWidth&quot;),e.set(r,&quot;.framebufferHeight&quot;,r+&quot;.drawingBufferHeight&quot;),&quot;null&quot;}))}if(&quot;framebuffer&quot;in n){var a=n.framebuffer;return F(a,(function(t,e){var r=t.invoke(e,a),n=t.shared,i=n.framebuffer;r=e.def(i,&quot;.getFramebuffer(&quot;,r,&quot;)&quot;);return e.set(i,&quot;.next&quot;,r),n=n.context,e.set(n,&quot;.framebufferWidth&quot;,r+&quot;?&quot;+r+&quot;.width:&quot;+n+&quot;.drawingBufferWidth&quot;),e.set(n,&quot;.framebufferHeight&quot;,r+&quot;?&quot;+r+&quot;.height:&quot;+n+&quot;.drawingBufferHeight&quot;),r}))}return null}function w(t,r,n){function i(t){if(t in a){var r=e.id(a[t]);return(t=R((function(){return r}))).id=r,t}if(t in o){var n=o[t];return F(n,(function(t,e){var r=t.invoke(e,n);return e.def(t.shared.strings,&quot;.id(&quot;,r,&quot;)&quot;)}))}return null}var a=t.static,o=t.dynamic,s=i(&quot;frag&quot;),l=i(&quot;vert&quot;),c=null;return D(s)&amp;&amp;D(l)?(c=f.program(l.id,s.id,null,n),t=R((function(t,e){return t.link(c)}))):t=new z(s&amp;&amp;s.thisDep||l&amp;&amp;l.thisDep,s&amp;&amp;s.contextDep||l&amp;&amp;l.contextDep,s&amp;&amp;s.propDep||l&amp;&amp;l.propDep,(function(t,e){var r,n,i=t.shared.shader;return r=s?s.append(t,e):e.def(i,&quot;.&quot;,&quot;frag&quot;),n=l?l.append(t,e):e.def(i,&quot;.&quot;,&quot;vert&quot;),e.def(i+&quot;.program(&quot;+n+&quot;,&quot;+r+&quot;)&quot;)})),{frag:s,vert:l,progVar:t,program:c}}function T(t,e){function r(t,e){if(t in n){var r=0|n[t];return e?a.offset=r:a.instances=r,R((function(t,n){return e&amp;&amp;(t.OFFSET=r),r}))}if(t in i){var o=i[t];return F(o,(function(t,r){var n=t.invoke(r,o);return e&amp;&amp;(t.OFFSET=n),n}))}if(e){if(c)return R((function(t,e){return t.OFFSET=0}));if(s)return new z(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao+&quot;.currentVAO?&quot;+t.shared.vao+&quot;.currentVAO.offset:0&quot;)}))}else if(s)return new z(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao+&quot;.currentVAO?&quot;+t.shared.vao+&quot;.currentVAO.instances:-1&quot;)}));return null}var n=t.static,i=t.dynamic,a={},s=!1,l=function(){if(&quot;vao&quot;in n){var t=n.vao;return null!==t&amp;&amp;null===u.getVAO(t)&amp;&amp;(t=u.createVAO(t)),s=!0,a.vao=t,R((function(e){var r=u.getVAO(t);return r?e.link(r):&quot;null&quot;}))}if(&quot;vao&quot;in i){s=!0;var e=i.vao;return F(e,(function(t,r){var n=t.invoke(r,e);return r.def(t.shared.vao+&quot;.getVAO(&quot;+n+&quot;)&quot;)}))}return null}(),c=!1,f=function(){if(&quot;elements&quot;in n){var t=n.elements;if(a.elements=t,I(t)){var e=a.elements=o.create(t,!0);t=o.getElements(e);c=!0}else t&amp;&amp;(t=o.getElements(t),c=!0);return(e=R((function(e,r){if(t){var n=e.link(t);return e.ELEMENTS=n}return e.ELEMENTS=null}))).value=t,e}if(&quot;elements&quot;in i){c=!0;var r=i.elements;return F(r,(function(t,e){var n=(i=t.shared).isBufferArgs,i=i.elements,a=t.invoke(e,r),o=e.def(&quot;null&quot;);n=e.def(n,&quot;(&quot;,a,&quot;)&quot;),a=t.cond(n).then(o,&quot;=&quot;,i,&quot;.createStream(&quot;,a,&quot;);&quot;).else(o,&quot;=&quot;,i,&quot;.getElements(&quot;,a,&quot;);&quot;);return e.entry(a),e.exit(t.cond(n).then(i,&quot;.destroyStream(&quot;,o,&quot;);&quot;)),t.ELEMENTS=o}))}return s?new z(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao+&quot;.currentVAO?&quot;+t.shared.elements+&quot;.getElements(&quot;+t.shared.vao+&quot;.currentVAO.elements):null&quot;)})):null}(),h=r(&quot;offset&quot;,!0),p=function(){if(&quot;primitive&quot;in n){var t=n.primitive;return a.primitive=t,R((function(e,r){return rt[t]}))}if(&quot;primitive&quot;in i){var e=i.primitive;return F(e,(function(t,r){var n=t.constants.primTypes,i=t.invoke(r,e);return r.def(n,&quot;[&quot;,i,&quot;]&quot;)}))}return c?D(f)?f.value?R((function(t,e){return e.def(t.ELEMENTS,&quot;.primType&quot;)})):R((function(){return 4})):new z(f.thisDep,f.contextDep,f.propDep,(function(t,e){var r=t.ELEMENTS;return e.def(r,&quot;?&quot;,r,&quot;.primType:&quot;,4)})):s?new z(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao+&quot;.currentVAO?&quot;+t.shared.vao+&quot;.currentVAO.primitive:4&quot;)})):null}(),d=function(){if(&quot;count&quot;in n){var t=0|n.count;return a.count=t,R((function(){return t}))}if(&quot;count&quot;in i){var e=i.count;return F(e,(function(t,r){return t.invoke(r,e)}))}return c?D(f)?f?h?new z(h.thisDep,h.contextDep,h.propDep,(function(t,e){return e.def(t.ELEMENTS,&quot;.vertCount-&quot;,t.OFFSET)})):R((function(t,e){return e.def(t.ELEMENTS,&quot;.vertCount&quot;)})):R((function(){return-1})):new z(f.thisDep||h.thisDep,f.contextDep||h.contextDep,f.propDep||h.propDep,(function(t,e){var r=t.ELEMENTS;return t.OFFSET?e.def(r,&quot;?&quot;,r,&quot;.vertCount-&quot;,t.OFFSET,&quot;:-1&quot;):e.def(r,&quot;?&quot;,r,&quot;.vertCount:-1&quot;)})):s?new z(l.thisDep,l.contextDep,l.propDep,(function(t,e){return e.def(t.shared.vao,&quot;.currentVAO?&quot;,t.shared.vao,&quot;.currentVAO.count:-1&quot;)})):null}(),m=r(&quot;instances&quot;,!1);return{elements:f,primitive:p,count:d,instances:m,offset:h,vao:l,vaoActive:s,elementsActive:c,static:a}}function k(t,r){var n=t.static,a=t.dynamic,o={};return Object.keys(n).forEach((function(t){var r=n[t],a=e.id(t),s=new Q;if(I(r))s.state=1,s.buffer=i.getBuffer(i.create(r,34962,!1,!0)),s.type=0;else if(c=i.getBuffer(r))s.state=1,s.buffer=c,s.type=0;else if(&quot;constant&quot;in r){var l=r.constant;s.buffer=&quot;null&quot;,s.state=2,&quot;number&quot;==typeof l?s.x=l:_t.forEach((function(t,e){e&lt;l.length&amp;&amp;(s[t]=l[e])}))}else{var c=I(r.buffer)?i.getBuffer(i.create(r.buffer,34962,!1,!0)):i.getBuffer(r.buffer),u=0|r.offset,f=0|r.stride,h=0|r.size,p=!!r.normalized,d=0;&quot;type&quot;in r&amp;&amp;(d=K[r.type]),r=0|r.divisor,s.buffer=c,s.state=1,s.size=h,s.normalized=p,s.type=d||c.dtype,s.offset=u,s.stride=f,s.divisor=r}o[t]=R((function(t,e){var r=t.attribCache;if(a in r)return r[a];var n={isStream:!1};return Object.keys(s).forEach((function(t){n[t]=s[t]})),s.buffer&amp;&amp;(n.buffer=t.link(s.buffer),n.type=n.type||n.buffer+&quot;.dtype&quot;),r[a]=n}))})),Object.keys(a).forEach((function(t){var e=a[t];o[t]=F(e,(function(t,r){function n(t){r(l[t],&quot;=&quot;,i,&quot;.&quot;,t,&quot;|0;&quot;)}var i=t.invoke(r,e),a=t.shared,o=t.constants,s=a.isBufferArgs,l=(a=a.buffer,{isStream:r.def(!1)}),c=new Q;c.state=1,Object.keys(c).forEach((function(t){l[t]=r.def(&quot;&quot;+c[t])}));var u=l.buffer,f=l.type;return r(&quot;if(&quot;,s,&quot;(&quot;,i,&quot;)){&quot;,l.isStream,&quot;=true;&quot;,u,&quot;=&quot;,a,&quot;.createStream(&quot;,34962,&quot;,&quot;,i,&quot;);&quot;,f,&quot;=&quot;,u,&quot;.dtype;&quot;,&quot;}else{&quot;,u,&quot;=&quot;,a,&quot;.getBuffer(&quot;,i,&quot;);&quot;,&quot;if(&quot;,u,&quot;){&quot;,f,&quot;=&quot;,u,&quot;.dtype;&quot;,'}else if(&quot;constant&quot; in ',i,&quot;){&quot;,l.state,&quot;=&quot;,2,&quot;;&quot;,&quot;if(typeof &quot;+i+'.constant === &quot;number&quot;){',l[_t[0]],&quot;=&quot;,i,&quot;.constant;&quot;,_t.slice(1).map((function(t){return l[t]})).join(&quot;=&quot;),&quot;=0;&quot;,&quot;}else{&quot;,_t.map((function(t,e){return l[t]+&quot;=&quot;+i+&quot;.constant.length&gt;&quot;+e+&quot;?&quot;+i+&quot;.constant[&quot;+e+&quot;]:0;&quot;})).join(&quot;&quot;),&quot;}}else{&quot;,&quot;if(&quot;,s,&quot;(&quot;,i,&quot;.buffer)){&quot;,u,&quot;=&quot;,a,&quot;.createStream(&quot;,34962,&quot;,&quot;,i,&quot;.buffer);&quot;,&quot;}else{&quot;,u,&quot;=&quot;,a,&quot;.getBuffer(&quot;,i,&quot;.buffer);&quot;,&quot;}&quot;,f,'=&quot;type&quot; in ',i,&quot;?&quot;,o.glTypes,&quot;[&quot;,i,&quot;.type]:&quot;,u,&quot;.dtype;&quot;,l.normalized,&quot;=!!&quot;,i,&quot;.normalized;&quot;),n(&quot;size&quot;),n(&quot;offset&quot;),n(&quot;stride&quot;),n(&quot;divisor&quot;),r(&quot;}}&quot;),r.exit(&quot;if(&quot;,l.isStream,&quot;){&quot;,a,&quot;.destroyStream(&quot;,u,&quot;);&quot;,&quot;}&quot;),l}))})),o}function A(t,e,n,i,o){function s(t){var e=c[t];e&amp;&amp;(h[t]=e)}var l=function(t,e){if(&quot;string&quot;==typeof(r=t.static).frag&amp;&amp;&quot;string&quot;==typeof r.vert){if(0&lt;Object.keys(e.dynamic).length)return null;var r=e.static,n=Object.keys(r);if(0&lt;n.length&amp;&amp;&quot;number&quot;==typeof r[n[0]]){for(var i=[],a=0;a&lt;n.length;++a)i.push([0|r[n[a]],n[a]]);return i}}return null}(t,e),c=function(t,e,r){function n(t){if(t in i){var r=i[t];t=!0;var n,o,s=0|r.x,l=0|r.y;return&quot;width&quot;in r?n=0|r.width:t=!1,&quot;height&quot;in r?o=0|r.height:t=!1,new z(!t&amp;&amp;e&amp;&amp;e.thisDep,!t&amp;&amp;e&amp;&amp;e.contextDep,!t&amp;&amp;e&amp;&amp;e.propDep,(function(t,e){var i=t.shared.context,a=n;&quot;width&quot;in r||(a=e.def(i,&quot;.&quot;,&quot;framebufferWidth&quot;,&quot;-&quot;,s));var c=o;return&quot;height&quot;in r||(c=e.def(i,&quot;.&quot;,&quot;framebufferHeight&quot;,&quot;-&quot;,l)),[s,l,a,c]}))}if(t in a){var c=a[t];return t=F(c,(function(t,e){var r=t.invoke(e,c),n=t.shared.context,i=e.def(r,&quot;.x|0&quot;),a=e.def(r,&quot;.y|0&quot;);return[i,a,e.def('&quot;width&quot; in ',r,&quot;?&quot;,r,&quot;.width|0:&quot;,&quot;(&quot;,n,&quot;.&quot;,&quot;framebufferWidth&quot;,&quot;-&quot;,i,&quot;)&quot;),r=e.def('&quot;height&quot; in ',r,&quot;?&quot;,r,&quot;.height|0:&quot;,&quot;(&quot;,n,&quot;.&quot;,&quot;framebufferHeight&quot;,&quot;-&quot;,a,&quot;)&quot;)]})),e&amp;&amp;(t.thisDep=t.thisDep||e.thisDep,t.contextDep=t.contextDep||e.contextDep,t.propDep=t.propDep||e.propDep),t}return e?new z(e.thisDep,e.contextDep,e.propDep,(function(t,e){var r=t.shared.context;return[0,0,e.def(r,&quot;.&quot;,&quot;framebufferWidth&quot;),e.def(r,&quot;.&quot;,&quot;framebufferHeight&quot;)]})):null}var i=t.static,a=t.dynamic;if(t=n(&quot;viewport&quot;)){var o=t;t=new z(t.thisDep,t.contextDep,t.propDep,(function(t,e){var r=o.append(t,e),n=t.shared.context;return e.set(n,&quot;.viewportWidth&quot;,r[2]),e.set(n,&quot;.viewportHeight&quot;,r[3]),r}))}return{viewport:t,scissor_box:n(&quot;scissor.box&quot;)}}(t,d=_(t)),f=T(t),h=function(t,e){var r=t.static,n=t.dynamic,i={};return ot.forEach((function(t){function e(e,a){if(t in r){var s=e(r[t]);i[o]=R((function(){return s}))}else if(t in n){var l=n[t];i[o]=F(l,(function(t,e){return a(t,e,t.invoke(e,l))}))}}var o=v(t);switch(t){case&quot;cull.enable&quot;:case&quot;blend.enable&quot;:case&quot;dither&quot;:case&quot;stencil.enable&quot;:case&quot;depth.enable&quot;:case&quot;scissor.enable&quot;:case&quot;polygonOffset.enable&quot;:case&quot;sample.alpha&quot;:case&quot;sample.enable&quot;:case&quot;depth.mask&quot;:return e((function(t){return t}),(function(t,e,r){return r}));case&quot;depth.func&quot;:return e((function(t){return kt[t]}),(function(t,e,r){return e.def(t.constants.compareFuncs,&quot;[&quot;,r,&quot;]&quot;)}));case&quot;depth.range&quot;:return e((function(t){return t}),(function(t,e,r){return[e.def(&quot;+&quot;,r,&quot;[0]&quot;),e=e.def(&quot;+&quot;,r,&quot;[1]&quot;)]}));case&quot;blend.func&quot;:return e((function(t){return[Tt[&quot;srcRGB&quot;in t?t.srcRGB:t.src],Tt[&quot;dstRGB&quot;in t?t.dstRGB:t.dst],Tt[&quot;srcAlpha&quot;in t?t.srcAlpha:t.src],Tt[&quot;dstAlpha&quot;in t?t.dstAlpha:t.dst]]}),(function(t,e,r){function n(t,n){return e.def('&quot;',t,n,'&quot; in ',r,&quot;?&quot;,r,&quot;.&quot;,t,n,&quot;:&quot;,r,&quot;.&quot;,t)}t=t.constants.blendFuncs;var i=n(&quot;src&quot;,&quot;RGB&quot;),a=n(&quot;dst&quot;,&quot;RGB&quot;),o=(i=e.def(t,&quot;[&quot;,i,&quot;]&quot;),e.def(t,&quot;[&quot;,n(&quot;src&quot;,&quot;Alpha&quot;),&quot;]&quot;));return[i,a=e.def(t,&quot;[&quot;,a,&quot;]&quot;),o,t=e.def(t,&quot;[&quot;,n(&quot;dst&quot;,&quot;Alpha&quot;),&quot;]&quot;)]}));case&quot;blend.equation&quot;:return e((function(t){return&quot;string&quot;==typeof t?[$[t],$[t]]:&quot;object&quot;==typeof t?[$[t.rgb],$[t.alpha]]:void 0}),(function(t,e,r){var n=t.constants.blendEquations,i=e.def(),a=e.def();return(t=t.cond(&quot;typeof &quot;,r,'===&quot;string&quot;')).then(i,&quot;=&quot;,a,&quot;=&quot;,n,&quot;[&quot;,r,&quot;];&quot;),t.else(i,&quot;=&quot;,n,&quot;[&quot;,r,&quot;.rgb];&quot;,a,&quot;=&quot;,n,&quot;[&quot;,r,&quot;.alpha];&quot;),e(t),[i,a]}));case&quot;blend.color&quot;:return e((function(t){return a(4,(function(e){return+t[e]}))}),(function(t,e,r){return a(4,(function(t){return e.def(&quot;+&quot;,r,&quot;[&quot;,t,&quot;]&quot;)}))}));case&quot;stencil.mask&quot;:return e((function(t){return 0|t}),(function(t,e,r){return e.def(r,&quot;|0&quot;)}));case&quot;stencil.func&quot;:return e((function(t){return[kt[t.cmp||&quot;keep&quot;],t.ref||0,&quot;mask&quot;in t?t.mask:-1]}),(function(t,e,r){return[t=e.def('&quot;cmp&quot; in ',r,&quot;?&quot;,t.constants.compareFuncs,&quot;[&quot;,r,&quot;.cmp]&quot;,&quot;:&quot;,7680),e.def(r,&quot;.ref|0&quot;),e=e.def('&quot;mask&quot; in ',r,&quot;?&quot;,r,&quot;.mask|0:-1&quot;)]}));case&quot;stencil.opFront&quot;:case&quot;stencil.opBack&quot;:return e((function(e){return[&quot;stencil.opBack&quot;===t?1029:1028,At[e.fail||&quot;keep&quot;],At[e.zfail||&quot;keep&quot;],At[e.zpass||&quot;keep&quot;]]}),(function(e,r,n){function i(t){return r.def('&quot;',t,'&quot; in ',n,&quot;?&quot;,a,&quot;[&quot;,n,&quot;.&quot;,t,&quot;]:&quot;,7680)}var a=e.constants.stencilOps;return[&quot;stencil.opBack&quot;===t?1029:1028,i(&quot;fail&quot;),i(&quot;zfail&quot;),i(&quot;zpass&quot;)]}));case&quot;polygonOffset.offset&quot;:return e((function(t){return[0|t.factor,0|t.units]}),(function(t,e,r){return[e.def(r,&quot;.factor|0&quot;),e=e.def(r,&quot;.units|0&quot;)]}));case&quot;cull.face&quot;:return e((function(t){var e=0;return&quot;front&quot;===t?e=1028:&quot;back&quot;===t&amp;&amp;(e=1029),e}),(function(t,e,r){return e.def(r,'===&quot;front&quot;?',1028,&quot;:&quot;,1029)}));case&quot;lineWidth&quot;:return e((function(t){return t}),(function(t,e,r){return r}));case&quot;frontFace&quot;:return e((function(t){return Mt[t]}),(function(t,e,r){return e.def(r+'===&quot;cw&quot;?2304:2305')}));case&quot;colorMask&quot;:return e((function(t){return t.map((function(t){return!!t}))}),(function(t,e,r){return a(4,(function(t){return&quot;!!&quot;+r+&quot;[&quot;+t+&quot;]&quot;}))}));case&quot;sample.coverage&quot;:return e((function(t){return[&quot;value&quot;in t?t.value:1,!!t.invert]}),(function(t,e,r){return[e.def('&quot;value&quot; in ',r,&quot;?+&quot;,r,&quot;.value:1&quot;),e=e.def(&quot;!!&quot;,r,&quot;.invert&quot;)]}))}})),i}(t),p=w(t,0,l);s(&quot;viewport&quot;),s(v(&quot;scissor.box&quot;));var d,m=0&lt;Object.keys(h).length;if((d={framebuffer:d,draw:f,shader:p,state:h,dirty:m,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}}).profile=function(t){var e,r=t.static;if(t=t.dynamic,&quot;profile&quot;in r){var n=!!r.profile;(e=R((function(t,e){return n}))).enable=n}else if(&quot;profile&quot;in t){var i=t.profile;e=F(i,(function(t,e){return t.invoke(e,i)}))}return e}(t),d.uniforms=function(t,e){var r=t.static,n=t.dynamic,i={};return Object.keys(r).forEach((function(t){var e,n=r[t];if(&quot;number&quot;==typeof n||&quot;boolean&quot;==typeof n)e=R((function(){return n}));else if(&quot;function&quot;==typeof n){var o=n._reglType;&quot;texture2d&quot;===o||&quot;textureCube&quot;===o?e=R((function(t){return t.link(n)})):&quot;framebuffer&quot;!==o&amp;&amp;&quot;framebufferCube&quot;!==o||(e=R((function(t){return t.link(n.color[0])})))}else g(n)&amp;&amp;(e=R((function(t){return t.global.def(&quot;[&quot;,a(n.length,(function(t){return n[t]})),&quot;]&quot;)})));e.value=n,i[t]=e})),Object.keys(n).forEach((function(t){var e=n[t];i[t]=F(e,(function(t,r){return t.invoke(r,e)}))})),i}(n),d.drawVAO=d.scopeVAO=f.vao,!d.drawVAO&amp;&amp;p.program&amp;&amp;!l&amp;&amp;r.angle_instanced_arrays&amp;&amp;f.static.elements){var y=!0;if(t=p.program.attributes.map((function(t){return t=e.static[t],y=y&amp;&amp;!!t,t})),y&amp;&amp;0&lt;t.length){var x=u.getVAO(u.createVAO({attributes:t,elements:f.static.elements}));d.drawVAO=new z(null,null,null,(function(t,e){return t.link(x)})),d.useVAO=!0}}return l?d.useVAO=!0:d.attributes=k(e),d.context=function(t){var e=t.static,r=t.dynamic,n={};return Object.keys(e).forEach((function(t){var r=e[t];n[t]=R((function(t,e){return&quot;number&quot;==typeof r||&quot;boolean&quot;==typeof r?&quot;&quot;+r:t.link(r)}))})),Object.keys(r).forEach((function(t){var e=r[t];n[t]=F(e,(function(t,r){return t.invoke(r,e)}))})),n}(i),d}function M(t,e,r){var n=t.shared.context,i=t.scope();Object.keys(r).forEach((function(a){e.save(n,&quot;.&quot;+a);var o=r[a].append(t,e);Array.isArray(o)?i(n,&quot;.&quot;,a,&quot;=[&quot;,o.join(),&quot;];&quot;):i(n,&quot;.&quot;,a,&quot;=&quot;,o,&quot;;&quot;)})),e(i)}function S(t,e,r,n){var i,a=(s=t.shared).gl,o=s.framebuffer;et&amp;&amp;(i=e.def(s.extensions,&quot;.webgl_draw_buffers&quot;));var s=(l=t.constants).drawBuffer,l=l.backBuffer;t=r?r.append(t,e):e.def(o,&quot;.next&quot;),n||e(&quot;if(&quot;,t,&quot;!==&quot;,o,&quot;.cur){&quot;),e(&quot;if(&quot;,t,&quot;){&quot;,a,&quot;.bindFramebuffer(&quot;,36160,&quot;,&quot;,t,&quot;.framebuffer);&quot;),et&amp;&amp;e(i,&quot;.drawBuffersWEBGL(&quot;,s,&quot;[&quot;,t,&quot;.colorAttachments.length]);&quot;),e(&quot;}else{&quot;,a,&quot;.bindFramebuffer(&quot;,36160,&quot;,null);&quot;),et&amp;&amp;e(i,&quot;.drawBuffersWEBGL(&quot;,l,&quot;);&quot;),e(&quot;}&quot;,o,&quot;.cur=&quot;,t,&quot;;&quot;),n||e(&quot;}&quot;)}function E(t,e,r){var n=t.shared,i=n.gl,o=t.current,s=t.next,l=n.current,c=n.next,u=t.cond(l,&quot;.dirty&quot;);ot.forEach((function(e){var n,f;if(!((e=v(e))in r.state))if(e in s){n=s[e],f=o[e];var h=a(it[e].length,(function(t){return u.def(n,&quot;[&quot;,t,&quot;]&quot;)}));u(t.cond(h.map((function(t,e){return t+&quot;!==&quot;+f+&quot;[&quot;+e+&quot;]&quot;})).join(&quot;||&quot;)).then(i,&quot;.&quot;,lt[e],&quot;(&quot;,h,&quot;);&quot;,h.map((function(t,e){return f+&quot;[&quot;+e+&quot;]=&quot;+t})).join(&quot;;&quot;),&quot;;&quot;))}else n=u.def(c,&quot;.&quot;,e),h=t.cond(n,&quot;!==&quot;,l,&quot;.&quot;,e),u(h),e in st?h(t.cond(n).then(i,&quot;.enable(&quot;,st[e],&quot;);&quot;).else(i,&quot;.disable(&quot;,st[e],&quot;);&quot;),l,&quot;.&quot;,e,&quot;=&quot;,n,&quot;;&quot;):h(i,&quot;.&quot;,lt[e],&quot;(&quot;,n,&quot;);&quot;,l,&quot;.&quot;,e,&quot;=&quot;,n,&quot;;&quot;)})),0===Object.keys(r.state).length&amp;&amp;u(l,&quot;.dirty=false;&quot;),e(u)}function L(t,e,r,n){var i=t.shared,a=t.current,o=i.current,s=i.gl;O(Object.keys(r)).forEach((function(i){var l=r[i];if(!n||n(l)){var c=l.append(t,e);if(st[i]){var u=st[i];D(l)?e(s,c?&quot;.enable(&quot;:&quot;.disable(&quot;,u,&quot;);&quot;):e(t.cond(c).then(s,&quot;.enable(&quot;,u,&quot;);&quot;).else(s,&quot;.disable(&quot;,u,&quot;);&quot;)),e(o,&quot;.&quot;,i,&quot;=&quot;,c,&quot;;&quot;)}else if(g(c)){var f=a[i];e(s,&quot;.&quot;,lt[i],&quot;(&quot;,c,&quot;);&quot;,c.map((function(t,e){return f+&quot;[&quot;+e+&quot;]=&quot;+t})).join(&quot;;&quot;),&quot;;&quot;)}else e(s,&quot;.&quot;,lt[i],&quot;(&quot;,c,&quot;);&quot;,o,&quot;.&quot;,i,&quot;=&quot;,c,&quot;;&quot;)}}))}function B(t,e){tt&amp;&amp;(t.instancing=e.def(t.shared.extensions,&quot;.angle_instanced_arrays&quot;))}function N(t,e,r,n,i){function a(){return&quot;undefined&quot;==typeof performance?&quot;Date.now()&quot;:&quot;performance.now()&quot;}function o(t){t(c=e.def(),&quot;=&quot;,a(),&quot;;&quot;),&quot;string&quot;==typeof i?t(h,&quot;.count+=&quot;,i,&quot;;&quot;):t(h,&quot;.count++;&quot;),d&amp;&amp;(n?t(u=e.def(),&quot;=&quot;,m,&quot;.getNumPendingQueries();&quot;):t(m,&quot;.beginQuery(&quot;,h,&quot;);&quot;))}function s(t){t(h,&quot;.cpuTime+=&quot;,a(),&quot;-&quot;,c,&quot;;&quot;),d&amp;&amp;(n?t(m,&quot;.pushScopeStats(&quot;,u,&quot;,&quot;,m,&quot;.getNumPendingQueries(),&quot;,h,&quot;);&quot;):t(m,&quot;.endQuery();&quot;))}function l(t){var r=e.def(p,&quot;.profile&quot;);e(p,&quot;.profile=&quot;,t,&quot;;&quot;),e.exit(p,&quot;.profile=&quot;,r,&quot;;&quot;)}var c,u,f=t.shared,h=t.stats,p=f.current,m=f.timer;if(r=r.profile){if(D(r))return void(r.enable?(o(e),s(e.exit),l(&quot;true&quot;)):l(&quot;false&quot;));l(r=r.append(t,e))}else r=e.def(p,&quot;.profile&quot;);o(f=t.block()),e(&quot;if(&quot;,r,&quot;){&quot;,f,&quot;}&quot;),s(t=t.block()),e.exit(&quot;if(&quot;,r,&quot;){&quot;,t,&quot;}&quot;)}function U(t,e,r,n,i){function a(r,n,i){function a(){e(&quot;if(!&quot;,u,&quot;.buffer){&quot;,l,&quot;.enableVertexAttribArray(&quot;,c,&quot;);}&quot;);var r,a=i.type;r=i.size?e.def(i.size,&quot;||&quot;,n):n,e(&quot;if(&quot;,u,&quot;.type!==&quot;,a,&quot;||&quot;,u,&quot;.size!==&quot;,r,&quot;||&quot;,p.map((function(t){return u+&quot;.&quot;+t+&quot;!==&quot;+i[t]})).join(&quot;||&quot;),&quot;){&quot;,l,&quot;.bindBuffer(&quot;,34962,&quot;,&quot;,f,&quot;.buffer);&quot;,l,&quot;.vertexAttribPointer(&quot;,[c,r,a,i.normalized,i.stride,i.offset],&quot;);&quot;,u,&quot;.type=&quot;,a,&quot;;&quot;,u,&quot;.size=&quot;,r,&quot;;&quot;,p.map((function(t){return u+&quot;.&quot;+t+&quot;=&quot;+i[t]+&quot;;&quot;})).join(&quot;&quot;),&quot;}&quot;),tt&amp;&amp;(a=i.divisor,e(&quot;if(&quot;,u,&quot;.divisor!==&quot;,a,&quot;){&quot;,t.instancing,&quot;.vertexAttribDivisorANGLE(&quot;,[c,a],&quot;);&quot;,u,&quot;.divisor=&quot;,a,&quot;;}&quot;))}function s(){e(&quot;if(&quot;,u,&quot;.buffer){&quot;,l,&quot;.disableVertexAttribArray(&quot;,c,&quot;);&quot;,u,&quot;.buffer=null;&quot;,&quot;}if(&quot;,_t.map((function(t,e){return u+&quot;.&quot;+t+&quot;!==&quot;+h[e]})).join(&quot;||&quot;),&quot;){&quot;,l,&quot;.vertexAttrib4f(&quot;,c,&quot;,&quot;,h,&quot;);&quot;,_t.map((function(t,e){return u+&quot;.&quot;+t+&quot;=&quot;+h[e]+&quot;;&quot;})).join(&quot;&quot;),&quot;}&quot;)}var l=o.gl,c=e.def(r,&quot;.location&quot;),u=e.def(o.attributes,&quot;[&quot;,c,&quot;]&quot;);r=i.state;var f=i.buffer,h=[i.x,i.y,i.z,i.w],p=[&quot;buffer&quot;,&quot;normalized&quot;,&quot;offset&quot;,&quot;stride&quot;];1===r?a():2===r?s():(e(&quot;if(&quot;,r,&quot;===&quot;,1,&quot;){&quot;),a(),e(&quot;}else{&quot;),s(),e(&quot;}&quot;))}var o=t.shared;n.forEach((function(n){var o,s=n.name,l=r.attributes[s];if(l){if(!i(l))return;o=l.append(t,e)}else{if(!i(St))return;var c=t.scopeAttrib(s);o={},Object.keys(new Q).forEach((function(t){o[t]=e.def(c,&quot;.&quot;,t)}))}a(t.link(n),function(t){switch(t){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}(n.info.type),o)}))}function H(t,r,n,i,o,s){for(var l,c=t.shared,u=c.gl,f={},h=0;h&lt;i.length;++h){var p=(b=i[h]).name,d=b.info.type,m=b.info.size,v=n.uniforms[p];if(1&lt;m){if(!v)continue;var y=p.replace(&quot;[0]&quot;,&quot;&quot;);if(f[y])continue;f[y]=1}var x,b=t.link(b)+&quot;.location&quot;;if(v){if(!o(v))continue;if(D(v)){if(p=v.value,35678===d||35680===d)r(u,&quot;.uniform1i(&quot;,b,&quot;,&quot;,(d=t.link(p._texture||p.color[0]._texture))+&quot;.bind());&quot;),r.exit(d,&quot;.unbind();&quot;);else if(35674===d||35675===d||35676===d)m=t.global.def(&quot;new Float32Array([&quot;+Array.prototype.slice.call(p)+&quot;])&quot;),p=2,35675===d?p=3:35676===d&amp;&amp;(p=4),r(u,&quot;.uniformMatrix&quot;,p,&quot;fv(&quot;,b,&quot;,false,&quot;,m,&quot;);&quot;);else{switch(d){case 5126:l=&quot;1f&quot;;break;case 35664:l=&quot;2f&quot;;break;case 35665:l=&quot;3f&quot;;break;case 35666:l=&quot;4f&quot;;break;case 35670:case 5124:l=&quot;1i&quot;;break;case 35671:case 35667:l=&quot;2i&quot;;break;case 35672:case 35668:l=&quot;3i&quot;;break;case 35673:l=&quot;4i&quot;;break;case 35669:l=&quot;4i&quot;}1&lt;m?(l+=&quot;v&quot;,p=t.global.def(&quot;[&quot;+Array.prototype.slice.call(p)+&quot;]&quot;)):p=g(p)?Array.prototype.slice.call(p):p,r(u,&quot;.uniform&quot;,l,&quot;(&quot;,b,&quot;,&quot;,p,&quot;);&quot;)}continue}x=v.append(t,r)}else{if(!o(St))continue;x=r.def(c.uniforms,&quot;[&quot;,e.id(p),&quot;]&quot;)}switch(35678===d?r(&quot;if(&quot;,x,&quot;&amp;&amp;&quot;,x,'._reglType===&quot;framebuffer&quot;){',x,&quot;=&quot;,x,&quot;.color[0];&quot;,&quot;}&quot;):35680===d&amp;&amp;r(&quot;if(&quot;,x,&quot;&amp;&amp;&quot;,x,'._reglType===&quot;framebufferCube&quot;){',x,&quot;=&quot;,x,&quot;.color[0];&quot;,&quot;}&quot;),p=1,d){case 35678:case 35680:d=r.def(x,&quot;._texture&quot;),r(u,&quot;.uniform1i(&quot;,b,&quot;,&quot;,d,&quot;.bind());&quot;),r.exit(d,&quot;.unbind();&quot;);continue;case 5124:case 35670:l=&quot;1i&quot;;break;case 35667:case 35671:l=&quot;2i&quot;,p=2;break;case 35668:case 35672:l=&quot;3i&quot;,p=3;break;case 35669:case 35673:l=&quot;4i&quot;,p=4;break;case 5126:l=&quot;1f&quot;;break;case 35664:l=&quot;2f&quot;,p=2;break;case 35665:l=&quot;3f&quot;,p=3;break;case 35666:l=&quot;4f&quot;,p=4;break;case 35674:l=&quot;Matrix2fv&quot;;break;case 35675:l=&quot;Matrix3fv&quot;;break;case 35676:l=&quot;Matrix4fv&quot;}if(-1===l.indexOf(&quot;Matrix&quot;)&amp;&amp;1&lt;m&amp;&amp;(l+=&quot;v&quot;,p=1),&quot;M&quot;===l.charAt(0)){r(u,&quot;.uniform&quot;,l,&quot;(&quot;,b,&quot;,&quot;);b=Math.pow(d-35674+2,2);var _=t.global.def(&quot;new Float32Array(&quot;,b,&quot;)&quot;);Array.isArray(x)?r(&quot;false,(&quot;,a(b,(function(t){return _+&quot;[&quot;+t+&quot;]=&quot;+x[t]})),&quot;,&quot;,_,&quot;)&quot;):r(&quot;false,(Array.isArray(&quot;,x,&quot;)||&quot;,x,&quot; instanceof Float32Array)?&quot;,x,&quot;:(&quot;,a(b,(function(t){return _+&quot;[&quot;+t+&quot;]=&quot;+x+&quot;[&quot;+t+&quot;]&quot;})),&quot;,&quot;,_,&quot;)&quot;),r(&quot;);&quot;)}else{if(1&lt;p){d=[];var w=[];for(m=0;m&lt;p;++m)Array.isArray(x)?w.push(x[m]):w.push(r.def(x+&quot;[&quot;+m+&quot;]&quot;)),s&amp;&amp;d.push(r.def());s&amp;&amp;r(&quot;if(!&quot;,t.batchId,&quot;||&quot;,d.map((function(t,e){return t+&quot;!==&quot;+w[e]})).join(&quot;||&quot;),&quot;){&quot;,d.map((function(t,e){return t+&quot;=&quot;+w[e]+&quot;;&quot;})).join(&quot;&quot;)),r(u,&quot;.uniform&quot;,l,&quot;(&quot;,b,&quot;,&quot;,w.join(&quot;,&quot;),&quot;);&quot;)}else s&amp;&amp;(d=r.def(),r(&quot;if(!&quot;,t.batchId,&quot;||&quot;,d,&quot;!==&quot;,x,&quot;){&quot;,d,&quot;=&quot;,x,&quot;;&quot;)),r(u,&quot;.uniform&quot;,l,&quot;(&quot;,b,&quot;,&quot;,x,&quot;);&quot;);s&amp;&amp;r(&quot;}&quot;)}}}function q(t,e,r,n){function i(i){var a=h[i];return a?a.contextDep&amp;&amp;n.contextDynamic||a.propDep?a.append(t,r):a.append(t,e):e.def(f,&quot;.&quot;,i)}function a(){function t(){r(l,&quot;.drawElementsInstancedANGLE(&quot;,[d,g,v,m+&quot;&lt;&lt;((&quot;+v+&quot;-5121)&gt;&gt;1)&quot;,s],&quot;);&quot;)}function e(){r(l,&quot;.drawArraysInstancedANGLE(&quot;,[d,m,g,s],&quot;);&quot;)}p&amp;&amp;&quot;null&quot;!==p?y?t():(r(&quot;if(&quot;,p,&quot;){&quot;),t(),r(&quot;}else{&quot;),e(),r(&quot;}&quot;)):e()}function o(){function t(){r(u+&quot;.drawElements(&quot;+[d,g,v,m+&quot;&lt;&lt;((&quot;+v+&quot;-5121)&gt;&gt;1)&quot;]+&quot;);&quot;)}function e(){r(u+&quot;.drawArrays(&quot;+[d,m,g]+&quot;);&quot;)}p&amp;&amp;&quot;null&quot;!==p?y?t():(r(&quot;if(&quot;,p,&quot;){&quot;),t(),r(&quot;}else{&quot;),e(),r(&quot;}&quot;)):e()}var s,l,c=t.shared,u=c.gl,f=c.draw,h=n.draw,p=function(){var i=h.elements,a=e;return i?((i.contextDep&amp;&amp;n.contextDynamic||i.propDep)&amp;&amp;(a=r),i=i.append(t,a),h.elementsActive&amp;&amp;a(&quot;if(&quot;+i+&quot;)&quot;+u+&quot;.bindBuffer(34963,&quot;+i+&quot;.buffer.buffer);&quot;)):(i=a.def(),a(i,&quot;=&quot;,f,&quot;.&quot;,&quot;elements&quot;,&quot;;&quot;,&quot;if(&quot;,i,&quot;){&quot;,u,&quot;.bindBuffer(&quot;,34963,&quot;,&quot;,i,&quot;.buffer.buffer);}&quot;,&quot;else if(&quot;,c.vao,&quot;.currentVAO){&quot;,i,&quot;=&quot;,t.shared.elements+&quot;.getElements(&quot;+c.vao,&quot;.currentVAO.elements);&quot;,nt?&quot;&quot;:&quot;if(&quot;+i+&quot;)&quot;+u+&quot;.bindBuffer(34963,&quot;+i+&quot;.buffer.buffer);&quot;,&quot;}&quot;)),i}(),d=i(&quot;primitive&quot;),m=i(&quot;offset&quot;),g=function(){var i=h.count,a=e;return i?((i.contextDep&amp;&amp;n.contextDynamic||i.propDep)&amp;&amp;(a=r),i=i.append(t,a)):i=a.def(f,&quot;.&quot;,&quot;count&quot;),i}();if(&quot;number&quot;==typeof g){if(0===g)return}else r(&quot;if(&quot;,g,&quot;){&quot;),r.exit(&quot;}&quot;);tt&amp;&amp;(s=i(&quot;instances&quot;),l=t.instancing);var v=p+&quot;.type&quot;,y=h.elements&amp;&amp;D(h.elements)&amp;&amp;!h.vaoActive;tt&amp;&amp;(&quot;number&quot;!=typeof s||0&lt;=s)?&quot;string&quot;==typeof s?(r(&quot;if(&quot;,s,&quot;&gt;0){&quot;),a(),r(&quot;}else if(&quot;,s,&quot;&lt;0){&quot;),o(),r(&quot;}&quot;)):a():o()}function G(t,e,r,n,i){return i=(e=b()).proc(&quot;body&quot;,i),tt&amp;&amp;(e.instancing=i.def(e.shared.extensions,&quot;.angle_instanced_arrays&quot;)),t(e,i,r,n),e.compile().body}function Y(t,e,r,n){B(t,e),r.useVAO?r.drawVAO?e(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,e),&quot;);&quot;):e(t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;):(e(t.shared.vao,&quot;.setVAO(null);&quot;),U(t,e,r,n.attributes,(function(){return!0}))),H(t,e,r,n.uniforms,(function(){return!0}),!1),q(t,e,e,r)}function W(t,e,r,n){function i(){return!0}t.batchId=&quot;a1&quot;,B(t,e),U(t,e,r,n.attributes,i),H(t,e,r,n.uniforms,i,!1),q(t,e,e,r)}function X(t,e,r,n){function i(t){return t.contextDep&amp;&amp;o||t.propDep}function a(t){return!i(t)}B(t,e);var o=r.contextDep,s=e.def(),l=e.def();t.shared.props=l,t.batchId=s;var c=t.scope(),u=t.scope();e(c.entry,&quot;for(&quot;,s,&quot;=0;&quot;,s,&quot;&lt;&quot;,&quot;a1&quot;,&quot;;++&quot;,s,&quot;){&quot;,l,&quot;=&quot;,&quot;a0&quot;,&quot;[&quot;,s,&quot;];&quot;,u,&quot;}&quot;,c.exit),r.needsContext&amp;&amp;M(t,u,r.context),r.needsFramebuffer&amp;&amp;S(t,u,r.framebuffer),L(t,u,r.state,i),r.profile&amp;&amp;i(r.profile)&amp;&amp;N(t,u,r,!1,!0),n?(r.useVAO?r.drawVAO?i(r.drawVAO)?u(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,u),&quot;);&quot;):c(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,c),&quot;);&quot;):c(t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;):(c(t.shared.vao,&quot;.setVAO(null);&quot;),U(t,c,r,n.attributes,a),U(t,u,r,n.attributes,i)),H(t,c,r,n.uniforms,a,!1),H(t,u,r,n.uniforms,i,!0),q(t,c,u,r)):(e=t.global.def(&quot;{}&quot;),n=r.shader.progVar.append(t,u),l=u.def(n,&quot;.id&quot;),c=u.def(e,&quot;[&quot;,l,&quot;]&quot;),u(t.shared.gl,&quot;.useProgram(&quot;,n,&quot;.program);&quot;,&quot;if(!&quot;,c,&quot;){&quot;,c,&quot;=&quot;,e,&quot;[&quot;,l,&quot;]=&quot;,t.link((function(e){return G(W,t,r,e,2)})),&quot;(&quot;,n,&quot;);}&quot;,c,&quot;.call(this,a0[&quot;,s,&quot;],&quot;,s,&quot;);&quot;))}function Z(t,r){function n(e){var n=r.shader[e];n&amp;&amp;i.set(a.shader,&quot;.&quot;+e,n.append(t,i))}var i=t.proc(&quot;scope&quot;,3);t.batchId=&quot;a2&quot;;var a=t.shared,o=a.current;M(t,i,r.context),r.framebuffer&amp;&amp;r.framebuffer.append(t,i),O(Object.keys(r.state)).forEach((function(e){var n=r.state[e].append(t,i);g(n)?n.forEach((function(r,n){i.set(t.next[e],&quot;[&quot;+n+&quot;]&quot;,r)})):i.set(a.next,&quot;.&quot;+e,n)})),N(t,i,r,!0,!0),[&quot;elements&quot;,&quot;offset&quot;,&quot;count&quot;,&quot;instances&quot;,&quot;primitive&quot;].forEach((function(e){var n=r.draw[e];n&amp;&amp;i.set(a.draw,&quot;.&quot;+e,&quot;&quot;+n.append(t,i))})),Object.keys(r.uniforms).forEach((function(n){var o=r.uniforms[n].append(t,i);Array.isArray(o)&amp;&amp;(o=&quot;[&quot;+o.join()+&quot;]&quot;),i.set(a.uniforms,&quot;[&quot;+e.id(n)+&quot;]&quot;,o)})),Object.keys(r.attributes).forEach((function(e){var n=r.attributes[e].append(t,i),a=t.scopeAttrib(e);Object.keys(new Q).forEach((function(t){i.set(a,&quot;.&quot;+t,n[t])}))})),r.scopeVAO&amp;&amp;i.set(a.vao,&quot;.targetVAO&quot;,r.scopeVAO.append(t,i)),n(&quot;vert&quot;),n(&quot;frag&quot;),0&lt;Object.keys(r.state).length&amp;&amp;(i(o,&quot;.dirty=true;&quot;),i.exit(o,&quot;.dirty=true;&quot;)),i(&quot;a1(&quot;,t.shared.context,&quot;,a0,&quot;,t.batchId,&quot;);&quot;)}function J(t,e,r){var n=e.static[r];if(n&amp;&amp;function(t){if(&quot;object&quot;==typeof t&amp;&amp;!g(t)){for(var e=Object.keys(t),r=0;r&lt;e.length;++r)if(V.isDynamic(t[e[r]]))return!0;return!1}}(n)){var i=t.global,a=Object.keys(n),o=!1,s=!1,l=!1,c=t.global.def(&quot;{}&quot;);a.forEach((function(e){var r=n[e];if(V.isDynamic(r))&quot;function&quot;==typeof r&amp;&amp;(r=n[e]=V.unbox(r)),e=F(r,null),o=o||e.thisDep,l=l||e.propDep,s=s||e.contextDep;else{switch(i(c,&quot;.&quot;,e,&quot;=&quot;),typeof r){case&quot;number&quot;:i(r);break;case&quot;string&quot;:i('&quot;',r,'&quot;');break;case&quot;object&quot;:Array.isArray(r)&amp;&amp;i(&quot;[&quot;,r.join(),&quot;]&quot;);break;default:i(t.link(r))}i(&quot;;&quot;)}})),e.dynamic[r]=new V.DynamicVariable(4,{thisDep:o,contextDep:s,propDep:l,ref:c,append:function(t,e){a.forEach((function(r){var i=n[r];V.isDynamic(i)&amp;&amp;(i=t.invoke(e,i),e(c,&quot;.&quot;,r,&quot;=&quot;,i,&quot;;&quot;))}))}}),delete e.static[r]}}var Q=u.Record,$={add:32774,subtract:32778,&quot;reverse subtract&quot;:32779};r.ext_blend_minmax&amp;&amp;($.min=32775,$.max=32776);var tt=r.angle_instanced_arrays,et=r.webgl_draw_buffers,nt=r.oes_vertex_array_object,it={dirty:!0,profile:m.profile},at={},ot=[],st={},lt={};y(&quot;dither&quot;,3024),y(&quot;blend.enable&quot;,3042),x(&quot;blend.color&quot;,&quot;blendColor&quot;,[0,0,0,0]),x(&quot;blend.equation&quot;,&quot;blendEquationSeparate&quot;,[32774,32774]),x(&quot;blend.func&quot;,&quot;blendFuncSeparate&quot;,[1,0,1,0]),y(&quot;depth.enable&quot;,2929,!0),x(&quot;depth.func&quot;,&quot;depthFunc&quot;,513),x(&quot;depth.range&quot;,&quot;depthRange&quot;,[0,1]),x(&quot;depth.mask&quot;,&quot;depthMask&quot;,!0),x(&quot;colorMask&quot;,&quot;colorMask&quot;,[!0,!0,!0,!0]),y(&quot;cull.enable&quot;,2884),x(&quot;cull.face&quot;,&quot;cullFace&quot;,1029),x(&quot;frontFace&quot;,&quot;frontFace&quot;,2305),x(&quot;lineWidth&quot;,&quot;lineWidth&quot;,1),y(&quot;polygonOffset.enable&quot;,32823),x(&quot;polygonOffset.offset&quot;,&quot;polygonOffset&quot;,[0,0]),y(&quot;sample.alpha&quot;,32926),y(&quot;sample.enable&quot;,32928),x(&quot;sample.coverage&quot;,&quot;sampleCoverage&quot;,[1,!1]),y(&quot;stencil.enable&quot;,2960),x(&quot;stencil.mask&quot;,&quot;stencilMask&quot;,-1),x(&quot;stencil.func&quot;,&quot;stencilFunc&quot;,[519,0,-1]),x(&quot;stencil.opFront&quot;,&quot;stencilOpSeparate&quot;,[1028,7680,7680,7680]),x(&quot;stencil.opBack&quot;,&quot;stencilOpSeparate&quot;,[1029,7680,7680,7680]),y(&quot;scissor.enable&quot;,3089),x(&quot;scissor.box&quot;,&quot;scissor&quot;,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),x(&quot;viewport&quot;,&quot;viewport&quot;,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var ct={gl:t,context:p,strings:e,next:at,current:it,draw:h,elements:o,buffer:i,shader:f,attributes:u.state,vao:u,uniforms:c,framebuffer:l,extensions:r,timer:d,isBufferArgs:I},ut={primTypes:rt,compareFuncs:kt,blendFuncs:Tt,blendEquations:$,stencilOps:At,glTypes:K,orientationType:Mt};et&amp;&amp;(ut.backBuffer=[1029],ut.drawBuffer=a(n.maxDrawbuffers,(function(t){return 0===t?[0]:a(t,(function(t){return 36064+t}))})));var ft=0;return{next:at,current:it,procs:function(){var t=b(),e=t.proc(&quot;poll&quot;),i=t.proc(&quot;refresh&quot;),o=t.block();e(o),i(o);var s,l=t.shared,c=l.gl,u=l.next,f=l.current;o(f,&quot;.dirty=false;&quot;),S(t,e),S(t,i,null,!0),tt&amp;&amp;(s=t.link(tt)),r.oes_vertex_array_object&amp;&amp;i(t.link(r.oes_vertex_array_object),&quot;.bindVertexArrayOES(null);&quot;);for(var h=0;h&lt;n.maxAttributes;++h){var p=i.def(l.attributes,&quot;[&quot;,h,&quot;]&quot;),d=t.cond(p,&quot;.buffer&quot;);d.then(c,&quot;.enableVertexAttribArray(&quot;,h,&quot;);&quot;,c,&quot;.bindBuffer(&quot;,34962,&quot;,&quot;,p,&quot;.buffer.buffer);&quot;,c,&quot;.vertexAttribPointer(&quot;,h,&quot;,&quot;,p,&quot;.size,&quot;,p,&quot;.type,&quot;,p,&quot;.normalized,&quot;,p,&quot;.stride,&quot;,p,&quot;.offset);&quot;).else(c,&quot;.disableVertexAttribArray(&quot;,h,&quot;);&quot;,c,&quot;.vertexAttrib4f(&quot;,h,&quot;,&quot;,p,&quot;.x,&quot;,p,&quot;.y,&quot;,p,&quot;.z,&quot;,p,&quot;.w);&quot;,p,&quot;.buffer=null;&quot;),i(d),tt&amp;&amp;i(s,&quot;.vertexAttribDivisorANGLE(&quot;,h,&quot;,&quot;,p,&quot;.divisor);&quot;)}return i(t.shared.vao,&quot;.currentVAO=null;&quot;,t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;),Object.keys(st).forEach((function(r){var n=st[r],a=o.def(u,&quot;.&quot;,r),s=t.block();s(&quot;if(&quot;,a,&quot;){&quot;,c,&quot;.enable(&quot;,n,&quot;)}else{&quot;,c,&quot;.disable(&quot;,n,&quot;)}&quot;,f,&quot;.&quot;,r,&quot;=&quot;,a,&quot;;&quot;),i(s),e(&quot;if(&quot;,a,&quot;!==&quot;,f,&quot;.&quot;,r,&quot;){&quot;,s,&quot;}&quot;)})),Object.keys(lt).forEach((function(r){var n,s,l=lt[r],h=it[r],p=t.block();p(c,&quot;.&quot;,l,&quot;(&quot;),g(h)?(l=h.length,n=t.global.def(u,&quot;.&quot;,r),s=t.global.def(f,&quot;.&quot;,r),p(a(l,(function(t){return n+&quot;[&quot;+t+&quot;]&quot;})),&quot;);&quot;,a(l,(function(t){return s+&quot;[&quot;+t+&quot;]=&quot;+n+&quot;[&quot;+t+&quot;];&quot;})).join(&quot;&quot;)),e(&quot;if(&quot;,a(l,(function(t){return n+&quot;[&quot;+t+&quot;]!==&quot;+s+&quot;[&quot;+t+&quot;]&quot;})).join(&quot;||&quot;),&quot;){&quot;,p,&quot;}&quot;)):(n=o.def(u,&quot;.&quot;,r),s=o.def(f,&quot;.&quot;,r),p(n,&quot;);&quot;,f,&quot;.&quot;,r,&quot;=&quot;,n,&quot;;&quot;),e(&quot;if(&quot;,n,&quot;!==&quot;,s,&quot;){&quot;,p,&quot;}&quot;)),i(p)})),t.compile()}(),compile:function(t,e,r,n,i){var a=b();a.stats=a.link(i),Object.keys(e.static).forEach((function(t){J(a,e,t)})),wt.forEach((function(e){J(a,t,e)}));var o=A(t,e,r,n);return function(t,e){var r=t.proc(&quot;draw&quot;,1);B(t,r),M(t,r,e.context),S(t,r,e.framebuffer),E(t,r,e),L(t,r,e.state),N(t,r,e,!1,!0);var n=e.shader.progVar.append(t,r);if(r(t.shared.gl,&quot;.useProgram(&quot;,n,&quot;.program);&quot;),e.shader.program)Y(t,r,e,e.shader.program);else{r(t.shared.vao,&quot;.setVAO(null);&quot;);var i=t.global.def(&quot;{}&quot;),a=r.def(n,&quot;.id&quot;),o=r.def(i,&quot;[&quot;,a,&quot;]&quot;);r(t.cond(o).then(o,&quot;.call(this,a0);&quot;).else(o,&quot;=&quot;,i,&quot;[&quot;,a,&quot;]=&quot;,t.link((function(r){return G(Y,t,e,r,1)})),&quot;(&quot;,n,&quot;);&quot;,o,&quot;.call(this,a0);&quot;))}0&lt;Object.keys(e.state).length&amp;&amp;r(t.shared.current,&quot;.dirty=true;&quot;),t.shared.vao&amp;&amp;r(t.shared.vao,&quot;.setVAO(null);&quot;)}(a,o),Z(a,o),function(t,e){function r(t){return t.contextDep&amp;&amp;i||t.propDep}var n=t.proc(&quot;batch&quot;,2);t.batchId=&quot;0&quot;,B(t,n);var i=!1,a=!0;Object.keys(e.context).forEach((function(t){i=i||e.context[t].propDep})),i||(M(t,n,e.context),a=!1);var o=!1;if((s=e.framebuffer)?(s.propDep?i=o=!0:s.contextDep&amp;&amp;i&amp;&amp;(o=!0),o||S(t,n,s)):S(t,n,null),e.state.viewport&amp;&amp;e.state.viewport.propDep&amp;&amp;(i=!0),E(t,n,e),L(t,n,e.state,(function(t){return!r(t)})),e.profile&amp;&amp;r(e.profile)||N(t,n,e,!1,&quot;a1&quot;),e.contextDep=i,e.needsContext=a,e.needsFramebuffer=o,(a=e.shader.progVar).contextDep&amp;&amp;i||a.propDep)X(t,n,e,null);else if(a=a.append(t,n),n(t.shared.gl,&quot;.useProgram(&quot;,a,&quot;.program);&quot;),e.shader.program)X(t,n,e,e.shader.program);else{n(t.shared.vao,&quot;.setVAO(null);&quot;);var s=t.global.def(&quot;{}&quot;),l=(o=n.def(a,&quot;.id&quot;),n.def(s,&quot;[&quot;,o,&quot;]&quot;));n(t.cond(l).then(l,&quot;.call(this,a0,a1);&quot;).else(l,&quot;=&quot;,s,&quot;[&quot;,o,&quot;]=&quot;,t.link((function(r){return G(X,t,e,r,2)})),&quot;(&quot;,a,&quot;);&quot;,l,&quot;.call(this,a0,a1);&quot;))}0&lt;Object.keys(e.state).length&amp;&amp;n(t.shared.current,&quot;.dirty=true;&quot;),t.shared.vao&amp;&amp;n(t.shared.vao,&quot;.setVAO(null);&quot;)}(a,o),j(a.compile(),{destroy:function(){o.shader.program.destroy()}})}}}function N(t,e){for(var r=0;r&lt;t.length;++r)if(t[r]===e)return r;return-1}var j=function(t,e){for(var r=Object.keys(e),n=0;n&lt;r.length;++n)t[r[n]]=e[r[n]];return t},U=0,V={DynamicVariable:t,define:function(r,n){return new t(r,e(n+&quot;&quot;))},isDynamic:function(e){return&quot;function&quot;==typeof e&amp;&amp;!e._reglType||e instanceof t},unbox:function e(r,n){return&quot;function&quot;==typeof r?new t(0,r):&quot;number&quot;==typeof r||&quot;boolean&quot;==typeof r?new t(5,r):Array.isArray(r)?new t(6,r.map((function(t,r){return e(t,n+&quot;[&quot;+r+&quot;]&quot;)}))):r instanceof t?r:void 0},accessor:e},H={next:&quot;function&quot;==typeof requestAnimationFrame?function(t){return requestAnimationFrame(t)}:function(t){return setTimeout(t,16)},cancel:&quot;function&quot;==typeof cancelAnimationFrame?function(t){return cancelAnimationFrame(t)}:clearTimeout},q=&quot;undefined&quot;!=typeof performance&amp;&amp;performance.now?function(){return performance.now()}:function(){return+new Date},G=s();G.zero=s();var Y=function(t,e){var r=1;e.ext_texture_filter_anisotropic&amp;&amp;(r=t.getParameter(34047));var n=1,i=1;e.webgl_draw_buffers&amp;&amp;(n=t.getParameter(34852),i=t.getParameter(36063));var a=!!e.oes_texture_float;if(a){a=t.createTexture(),t.bindTexture(3553,a),t.texImage2D(3553,0,6408,1,1,0,6408,5126,null);var o=t.createFramebuffer();if(t.bindFramebuffer(36160,o),t.framebufferTexture2D(36160,36064,3553,a,0),t.bindTexture(3553,null),36053!==t.checkFramebufferStatus(36160))a=!1;else{t.viewport(0,0,1,1),t.clearColor(1,0,0,1),t.clear(16384);var s=G.allocType(5126,4);t.readPixels(0,0,1,1,6408,5126,s),t.getError()?a=!1:(t.deleteFramebuffer(o),t.deleteTexture(a),a=1===s[0]),G.freeType(s)}}return s=!0,&quot;undefined&quot;!=typeof navigator&amp;&amp;(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent))||(s=t.createTexture(),o=G.allocType(5121,36),t.activeTexture(33984),t.bindTexture(34067,s),t.texImage2D(34069,0,6408,3,3,0,6408,5121,o),G.freeType(o),t.bindTexture(34067,null),t.deleteTexture(s),s=!t.getError()),{colorBits:[t.getParameter(3410),t.getParameter(3411),t.getParameter(3412),t.getParameter(3413)],depthBits:t.getParameter(3414),stencilBits:t.getParameter(3415),subpixelBits:t.getParameter(3408),extensions:Object.keys(e).filter((function(t){return!!e[t]})),maxAnisotropic:r,maxDrawbuffers:n,maxColorAttachments:i,pointSizeDims:t.getParameter(33901),lineWidthDims:t.getParameter(33902),maxViewportDims:t.getParameter(3386),maxCombinedTextureUnits:t.getParameter(35661),maxCubeMapSize:t.getParameter(34076),maxRenderbufferSize:t.getParameter(34024),maxTextureUnits:t.getParameter(34930),maxTextureSize:t.getParameter(3379),maxAttributes:t.getParameter(34921),maxVertexUniforms:t.getParameter(36347),maxVertexTextureUnits:t.getParameter(35660),maxVaryingVectors:t.getParameter(36348),maxFragmentUniforms:t.getParameter(36349),glsl:t.getParameter(35724),renderer:t.getParameter(7937),vendor:t.getParameter(7936),version:t.getParameter(7938),readFloat:a,npotTextureCube:s}},W=function(t){return t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Float32Array||t instanceof Float64Array||t instanceof Uint8ClampedArray},X=function(t){return Object.keys(t).map((function(e){return t[e]}))},Z={shape:function(t){for(var e=[];t.length;t=t[0])e.push(t.length);return e},flatten:function(t,e,r,n){var i=1;if(e.length)for(var a=0;a&lt;e.length;++a)i*=e[a];else i=0;switch(r=n||G.allocType(r,i),e.length){case 0:break;case 1:for(n=e[0],e=0;e&lt;n;++e)r[e]=t[e];break;case 2:for(n=e[0],e=e[1],a=i=0;a&lt;n;++a)for(var o=t[a],s=0;s&lt;e;++s)r[i++]=o[s];break;case 3:c(t,e[0],e[1],e[2],r,0);break;default:!function t(e,r,n,i,a){for(var o=1,s=n+1;s&lt;r.length;++s)o*=r[s];var l=r[n];if(4==r.length-n){var u=r[n+1],f=r[n+2];for(r=r[n+3],s=0;s&lt;l;++s)c(e[s],u,f,r,i,a),a+=o}else for(s=0;s&lt;l;++s)t(e[s],r,n+1,i,a),a+=o}(t,e,0,r,0)}return r}},J={&quot;[object Int8Array]&quot;:5120,&quot;[object Int16Array]&quot;:5122,&quot;[object Int32Array]&quot;:5124,&quot;[object Uint8Array]&quot;:5121,&quot;[object Uint8ClampedArray]&quot;:5121,&quot;[object Uint16Array]&quot;:5123,&quot;[object Uint32Array]&quot;:5125,&quot;[object Float32Array]&quot;:5126,&quot;[object Float64Array]&quot;:5121,&quot;[object ArrayBuffer]&quot;:5121},K={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},Q={dynamic:35048,stream:35040,static:35044},$=Z.flatten,tt=Z.shape,et=[];et[5120]=1,et[5122]=2,et[5124]=4,et[5121]=1,et[5123]=2,et[5125]=4,et[5126]=4;var rt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,&quot;line loop&quot;:2,&quot;line strip&quot;:3,&quot;triangle strip&quot;:5,&quot;triangle fan&quot;:6},nt=new Float32Array(1),it=new Uint32Array(nt.buffer),at=[9984,9986,9985,9987],ot=[0,6409,6410,6407,6408],st={};st[6409]=st[6406]=st[6402]=1,st[34041]=st[6410]=2,st[6407]=st[35904]=3,st[6408]=st[35906]=4;var lt=v(&quot;HTMLCanvasElement&quot;),ct=v(&quot;OffscreenCanvas&quot;),ut=v(&quot;CanvasRenderingContext2D&quot;),ft=v(&quot;ImageBitmap&quot;),ht=v(&quot;HTMLImageElement&quot;),pt=v(&quot;HTMLVideoElement&quot;),dt=Object.keys(J).concat([lt,ct,ut,ft,ht,pt]),mt=[];mt[5121]=1,mt[5126]=4,mt[36193]=2,mt[5123]=2,mt[5125]=4;var gt=[];gt[32854]=2,gt[32855]=2,gt[36194]=2,gt[34041]=4,gt[33776]=.5,gt[33777]=.5,gt[33778]=1,gt[33779]=1,gt[35986]=.5,gt[35987]=1,gt[34798]=1,gt[35840]=.5,gt[35841]=.25,gt[35842]=.5,gt[35843]=.25,gt[36196]=.5;var vt=[];vt[32854]=2,vt[32855]=2,vt[36194]=2,vt[33189]=2,vt[36168]=1,vt[34041]=4,vt[35907]=4,vt[34836]=16,vt[34842]=8,vt[34843]=6;var yt=function(t,e,r,n,i){function a(t){this.id=c++,this.refCount=1,this.renderbuffer=t,this.format=32854,this.height=this.width=0,i.profile&amp;&amp;(this.stats={size:0})}function o(e){var r=e.renderbuffer;t.bindRenderbuffer(36161,null),t.deleteRenderbuffer(r),e.renderbuffer=null,e.refCount=0,delete u[e.id],n.renderbufferCount--}var s={rgba4:32854,rgb565:36194,&quot;rgb5 a1&quot;:32855,depth:33189,stencil:36168,&quot;depth stencil&quot;:34041};e.ext_srgb&amp;&amp;(s.srgba=35907),e.ext_color_buffer_half_float&amp;&amp;(s.rgba16f=34842,s.rgb16f=34843),e.webgl_color_buffer_float&amp;&amp;(s.rgba32f=34836);var l=[];Object.keys(s).forEach((function(t){l[s[t]]=t}));var c=0,u={};return a.prototype.decRef=function(){0&gt;=--this.refCount&amp;&amp;o(this)},i.profile&amp;&amp;(n.getTotalRenderbufferSize=function(){var t=0;return Object.keys(u).forEach((function(e){t+=u[e].stats.size})),t}),{create:function(e,r){function o(e,r){var n=0,a=0,u=32854;if(&quot;object&quot;==typeof e&amp;&amp;e?(&quot;shape&quot;in e?(n=0|(a=e.shape)[0],a=0|a[1]):(&quot;radius&quot;in e&amp;&amp;(n=a=0|e.radius),&quot;width&quot;in e&amp;&amp;(n=0|e.width),&quot;height&quot;in e&amp;&amp;(a=0|e.height)),&quot;format&quot;in e&amp;&amp;(u=s[e.format])):&quot;number&quot;==typeof e?(n=0|e,a=&quot;number&quot;==typeof r?0|r:n):e||(n=a=1),n!==c.width||a!==c.height||u!==c.format)return o.width=c.width=n,o.height=c.height=a,c.format=u,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,u,n,a),i.profile&amp;&amp;(c.stats.size=vt[c.format]*c.width*c.height),o.format=l[c.format],o}var c=new a(t.createRenderbuffer());return u[c.id]=c,n.renderbufferCount++,o(e,r),o.resize=function(e,r){var n=0|e,a=0|r||n;return n===c.width&amp;&amp;a===c.height||(o.width=c.width=n,o.height=c.height=a,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,c.format,n,a),i.profile&amp;&amp;(c.stats.size=vt[c.format]*c.width*c.height)),o},o._reglType=&quot;renderbuffer&quot;,o._renderbuffer=c,i.profile&amp;&amp;(o.stats=c.stats),o.destroy=function(){c.decRef()},o},clear:function(){X(u).forEach(o)},restore:function(){X(u).forEach((function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,e.renderbuffer),t.renderbufferStorage(36161,e.format,e.width,e.height)})),t.bindRenderbuffer(36161,null)}}},xt=[];xt[6408]=4,xt[6407]=3;var bt=[];bt[5121]=1,bt[5126]=4,bt[36193]=2;var _t=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;w&quot;],wt=&quot;blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset&quot;.split(&quot; &quot;),Tt={0:0,1:1,zero:0,one:1,&quot;src color&quot;:768,&quot;one minus src color&quot;:769,&quot;src alpha&quot;:770,&quot;one minus src alpha&quot;:771,&quot;dst color&quot;:774,&quot;one minus dst color&quot;:775,&quot;dst alpha&quot;:772,&quot;one minus dst alpha&quot;:773,&quot;constant color&quot;:32769,&quot;one minus constant color&quot;:32770,&quot;constant alpha&quot;:32771,&quot;one minus constant alpha&quot;:32772,&quot;src alpha saturate&quot;:776},kt={never:512,less:513,&quot;&lt;&quot;:513,equal:514,&quot;=&quot;:514,&quot;==&quot;:514,&quot;===&quot;:514,lequal:515,&quot;&lt;=&quot;:515,greater:516,&quot;&gt;&quot;:516,notequal:517,&quot;!=&quot;:517,&quot;!==&quot;:517,gequal:518,&quot;&gt;=&quot;:518,always:519},At={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,&quot;increment wrap&quot;:34055,&quot;decrement wrap&quot;:34056,invert:5386},Mt={cw:2304,ccw:2305},St=new z(!1,!1,!1,(function(){}));return function(t){function e(){if(0===J.length)w&amp;&amp;w.update(),tt=null;else{tt=H.next(e),f();for(var t=J.length-1;0&lt;=t;--t){var r=J[t];r&amp;&amp;r(P,null,0)}g.flush(),w&amp;&amp;w.update()}}function r(){!tt&amp;&amp;0&lt;J.length&amp;&amp;(tt=H.next(e))}function n(){tt&amp;&amp;(H.cancel(e),tt=null)}function a(t){t.preventDefault(),n(),K.forEach((function(t){t()}))}function o(t){g.getError(),y.restore(),R.restore(),O.restore(),F.restore(),U.restore(),G.restore(),D.restore(),w&amp;&amp;w.restore(),W.procs.refresh(),r(),Q.forEach((function(t){t()}))}function s(t){function e(t,e){var r={},n={};return Object.keys(t).forEach((function(i){var a=t[i];if(V.isDynamic(a))n[i]=V.unbox(a,i);else{if(e&amp;&amp;Array.isArray(a))for(var o=0;o&lt;a.length;++o)if(V.isDynamic(a[o]))return void(n[i]=V.unbox(a,i));r[i]=a}})),{dynamic:n,static:r}}var r=e(t.context||{},!0),n=e(t.uniforms||{},!0),i=e(t.attributes||{},!1);t=e(function(t){function e(t){if(t in r){var e=r[t];delete r[t],Object.keys(e).forEach((function(n){r[t+&quot;.&quot;+n]=e[n]}))}}var r=j({},t);return delete r.uniforms,delete r.attributes,delete r.context,delete r.vao,&quot;stencil&quot;in r&amp;&amp;r.stencil.op&amp;&amp;(r.stencil.opBack=r.stencil.opFront=r.stencil.op,delete r.stencil.op),e(&quot;blend&quot;),e(&quot;depth&quot;),e(&quot;cull&quot;),e(&quot;stencil&quot;),e(&quot;polygonOffset&quot;),e(&quot;scissor&quot;),e(&quot;sample&quot;),&quot;vao&quot;in t&amp;&amp;(r.vao=t.vao),r}(t),!1);var a={gpuTime:0,cpuTime:0,count:0},o=W.compile(t,i,n,r,a),s=o.draw,l=o.batch,c=o.scope,u=[];return j((function(t,e){var r;if(&quot;function&quot;==typeof t)return c.call(this,null,t,0);if(&quot;function&quot;==typeof e)if(&quot;number&quot;==typeof t)for(r=0;r&lt;t;++r)c.call(this,null,e,r);else{if(!Array.isArray(t))return c.call(this,t,e,0);for(r=0;r&lt;t.length;++r)c.call(this,t[r],e,r)}else if(&quot;number&quot;==typeof t){if(0&lt;t)return l.call(this,function(t){for(;u.length&lt;t;)u.push(null);return u}(0|t),0|t)}else{if(!Array.isArray(t))return s.call(this,t);if(t.length)return l.call(this,t,t.length)}}),{stats:a,destroy:function(){o.destroy()}})}function l(t,e){var r=0;W.procs.poll();var n=e.color;n&amp;&amp;(g.clearColor(+n[0]||0,+n[1]||0,+n[2]||0,+n[3]||0),r|=16384),&quot;depth&quot;in e&amp;&amp;(g.clearDepth(+e.depth),r|=256),&quot;stencil&quot;in e&amp;&amp;(g.clearStencil(0|e.stencil),r|=1024),g.clear(r)}function c(t){return J.push(t),r(),{cancel:function(){var e=N(J,t);J[e]=function t(){var e=N(J,t);J[e]=J[J.length-1],--J.length,0&gt;=J.length&amp;&amp;n()}}}}function u(){var t=X.viewport,e=X.scissor_box;t[0]=t[1]=e[0]=e[1]=0,P.viewportWidth=P.framebufferWidth=P.drawingBufferWidth=t[2]=e[2]=g.drawingBufferWidth,P.viewportHeight=P.framebufferHeight=P.drawingBufferHeight=t[3]=e[3]=g.drawingBufferHeight}function f(){P.tick+=1,P.time=m(),u(),W.procs.poll()}function h(){F.refresh(),u(),W.procs.refresh(),w&amp;&amp;w.update()}function m(){return(q()-T)/1e3}if(!(t=i(t)))return null;var g=t.gl,v=g.getContextAttributes();g.isContextLost();var y=function(t,e){function r(e){var r;e=e.toLowerCase();try{r=n[e]=t.getExtension(e)}catch(t){}return!!r}for(var n={},i=0;i&lt;e.extensions.length;++i){var a=e.extensions[i];if(!r(a))return e.onDestroy(),e.onDone('&quot;'+a+'&quot; extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return e.optionalExtensions.forEach(r),{extensions:n,restore:function(){Object.keys(n).forEach((function(t){if(n[t]&amp;&amp;!r(t))throw Error(&quot;(regl): error restoring extension &quot;+t)}))}}}(g,t);if(!y)return null;var x=function(){var t={&quot;&quot;:0},e=[&quot;&quot;];return{id:function(r){var n=t[r];return n||(n=t[r]=e.length,e.push(r),n)},str:function(t){return e[t]}}}(),b={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},_=y.extensions,w=function(t,e){function r(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function n(t,e,n){var i=o.pop()||new r;i.startQueryIndex=t,i.endQueryIndex=e,i.sum=0,i.stats=n,s.push(i)}if(!e.ext_disjoint_timer_query)return null;var i=[],a=[],o=[],s=[],l=[],c=[];return{beginQuery:function(t){var r=i.pop()||e.ext_disjoint_timer_query.createQueryEXT();e.ext_disjoint_timer_query.beginQueryEXT(35007,r),a.push(r),n(a.length-1,a.length,t)},endQuery:function(){e.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:n,update:function(){var t,r;if(0!==(t=a.length)){c.length=Math.max(c.length,t+1),l.length=Math.max(l.length,t+1),l[0]=0;var n=c[0]=0;for(r=t=0;r&lt;a.length;++r){var u=a[r];e.ext_disjoint_timer_query.getQueryObjectEXT(u,34919)?(n+=e.ext_disjoint_timer_query.getQueryObjectEXT(u,34918),i.push(u)):a[t++]=u,l[r+1]=n,c[r+1]=t}for(a.length=t,r=t=0;r&lt;s.length;++r){var f=(n=s[r]).startQueryIndex;u=n.endQueryIndex;n.sum+=l[u]-l[f],f=c[f],(u=c[u])===f?(n.stats.gpuTime+=n.sum/1e6,o.push(n)):(n.startQueryIndex=f,n.endQueryIndex=u,s[t++]=n)}s.length=t}},getNumPendingQueries:function(){return a.length},clear:function(){i.push.apply(i,a);for(var t=0;t&lt;i.length;t++)e.ext_disjoint_timer_query.deleteQueryEXT(i[t]);a.length=0,i.length=0},restore:function(){a.length=0,i.length=0}}}(0,_),T=q(),M=g.drawingBufferWidth,C=g.drawingBufferHeight,P={tick:0,time:0,viewportWidth:M,viewportHeight:C,framebufferWidth:M,framebufferHeight:C,drawingBufferWidth:M,drawingBufferHeight:C,pixelRatio:t.pixelRatio},I=(M={elements:null,primitive:4,count:-1,offset:0,instances:-1},Y(g,_)),O=p(g,b,t,(function(t){return D.destroyBuffer(t)})),z=d(g,_,O,b),D=S(g,_,I,b,O,z,M),R=E(g,x,b,t),F=k(g,_,I,(function(){W.procs.poll()}),P,b,t),U=yt(g,_,0,b,t),G=A(g,_,I,F,U,b),W=B(g,x,_,I,O,z,0,G,{},D,R,M,P,w,t),X=(x=L(g,G,W.procs.poll,P),W.next),Z=g.canvas,J=[],K=[],Q=[],$=[t.onDestroy],tt=null;Z&amp;&amp;(Z.addEventListener(&quot;webglcontextlost&quot;,a,!1),Z.addEventListener(&quot;webglcontextrestored&quot;,o,!1));var et=G.setFBO=s({framebuffer:V.define.call(null,1,&quot;framebuffer&quot;)});return h(),v=j(s,{clear:function(t){if(&quot;framebuffer&quot;in t)if(t.framebuffer&amp;&amp;&quot;framebufferCube&quot;===t.framebuffer_reglType)for(var e=0;6&gt;e;++e)et(j({framebuffer:t.framebuffer.faces[e]},t),l);else et(t,l);else l(0,t)},prop:V.define.bind(null,1),context:V.define.bind(null,2),this:V.define.bind(null,3),draw:s({}),buffer:function(t){return O.create(t,34962,!1,!1)},elements:function(t){return z.create(t,!1)},texture:F.create2D,cube:F.createCube,renderbuffer:U.create,framebuffer:G.create,framebufferCube:G.createCube,vao:D.createVAO,attributes:v,frame:c,on:function(t,e){var r;switch(t){case&quot;frame&quot;:return c(e);case&quot;lost&quot;:r=K;break;case&quot;restore&quot;:r=Q;break;case&quot;destroy&quot;:r=$}return r.push(e),{cancel:function(){for(var t=0;t&lt;r.length;++t)if(r[t]===e){r[t]=r[r.length-1],r.pop();break}}}},limits:I,hasExtension:function(t){return 0&lt;=I.extensions.indexOf(t.toLowerCase())},read:x,destroy:function(){J.length=0,n(),Z&amp;&amp;(Z.removeEventListener(&quot;webglcontextlost&quot;,a),Z.removeEventListener(&quot;webglcontextrestored&quot;,o)),R.clear(),G.clear(),U.clear(),D.clear(),F.clear(),z.clear(),O.clear(),w&amp;&amp;w.clear(),$.forEach((function(t){t()}))},_gl:g,_refresh:h,poll:function(){f(),w&amp;&amp;w.update()},now:m,stats:b}),t.onDone(null,v),v}}))},{}],284:[function(t,e,r){var n=t(&quot;buffer&quot;),i=n.Buffer;function a(t,e){for(var r in t)e[r]=t[r]}function o(t,e,r){return i(t,e,r)}i.from&amp;&amp;i.alloc&amp;&amp;i.allocUnsafe&amp;&amp;i.allocUnsafeSlow?e.exports=n:(a(n,r),r.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(t,e,r){if(&quot;number&quot;==typeof t)throw new TypeError(&quot;Argument must not be a number&quot;);return i(t,e,r)},o.alloc=function(t,e,r){if(&quot;number&quot;!=typeof t)throw new TypeError(&quot;Argument must be a number&quot;);var n=i(t);return void 0!==e?&quot;string&quot;==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},o.allocUnsafe=function(t){if(&quot;number&quot;!=typeof t)throw new TypeError(&quot;Argument must be a number&quot;);return i(t)},o.allocUnsafeSlow=function(t){if(&quot;number&quot;!=typeof t)throw new TypeError(&quot;Argument must be a number&quot;);return n.SlowBuffer(t)}},{buffer:85}],285:[function(t,e,r){e.exports=i;var n=t(&quot;events&quot;).EventEmitter;function i(){n.call(this)}t(&quot;inherits&quot;)(i,n),i.Readable=t(&quot;readable-stream/lib/_stream_readable.js&quot;),i.Writable=t(&quot;readable-stream/lib/_stream_writable.js&quot;),i.Duplex=t(&quot;readable-stream/lib/_stream_duplex.js&quot;),i.Transform=t(&quot;readable-stream/lib/_stream_transform.js&quot;),i.PassThrough=t(&quot;readable-stream/lib/_stream_passthrough.js&quot;),i.finished=t(&quot;readable-stream/lib/internal/streams/end-of-stream.js&quot;),i.pipeline=t(&quot;readable-stream/lib/internal/streams/pipeline.js&quot;),i.Stream=i,i.prototype.pipe=function(t,e){var r=this;function i(e){t.writable&amp;&amp;!1===t.write(e)&amp;&amp;r.pause&amp;&amp;r.pause()}function a(){r.readable&amp;&amp;r.resume&amp;&amp;r.resume()}r.on(&quot;data&quot;,i),t.on(&quot;drain&quot;,a),t._isStdio||e&amp;&amp;!1===e.end||(r.on(&quot;end&quot;,s),r.on(&quot;close&quot;,l));var o=!1;function s(){o||(o=!0,t.end())}function l(){o||(o=!0,&quot;function&quot;==typeof t.destroy&amp;&amp;t.destroy())}function c(t){if(u(),0===n.listenerCount(this,&quot;error&quot;))throw t}function u(){r.removeListener(&quot;data&quot;,i),t.removeListener(&quot;drain&quot;,a),r.removeListener(&quot;end&quot;,s),r.removeListener(&quot;close&quot;,l),r.removeListener(&quot;error&quot;,c),t.removeListener(&quot;error&quot;,c),r.removeListener(&quot;end&quot;,u),r.removeListener(&quot;close&quot;,u),t.removeListener(&quot;close&quot;,u)}return r.on(&quot;error&quot;,c),t.on(&quot;error&quot;,c),r.on(&quot;end&quot;,u),r.on(&quot;close&quot;,u),t.on(&quot;close&quot;,u),t.emit(&quot;pipe&quot;,r),t}},{events:84,inherits:231,&quot;readable-stream/lib/_stream_duplex.js&quot;:287,&quot;readable-stream/lib/_stream_passthrough.js&quot;:288,&quot;readable-stream/lib/_stream_readable.js&quot;:289,&quot;readable-stream/lib/_stream_transform.js&quot;:290,&quot;readable-stream/lib/_stream_writable.js&quot;:291,&quot;readable-stream/lib/internal/streams/end-of-stream.js&quot;:295,&quot;readable-stream/lib/internal/streams/pipeline.js&quot;:297}],286:[function(t,e,r){&quot;use strict&quot;;var n={};function i(t,e,r){r||(r=Error);var i=function(t){var r,n;function i(r,n,i){return t.call(this,function(t,r,n){return&quot;string&quot;==typeof e?e:e(t,r,n)}(r,n,i))||this}return n=t,(r=i).prototype=Object.create(n.prototype),r.prototype.constructor=r,r.__proto__=n,i}(r);i.prototype.name=r.name,i.prototype.code=t,n[t]=i}function a(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r&gt;2?&quot;one of &quot;.concat(e,&quot; &quot;).concat(t.slice(0,r-1).join(&quot;, &quot;),&quot;, or &quot;)+t[r-1]:2===r?&quot;one of &quot;.concat(e,&quot; &quot;).concat(t[0],&quot; or &quot;).concat(t[1]):&quot;of &quot;.concat(e,&quot; &quot;).concat(t[0])}return&quot;of &quot;.concat(e,&quot; &quot;).concat(String(t))}i(&quot;ERR_INVALID_OPT_VALUE&quot;,(function(t,e){return'The value &quot;'+e+'&quot; is invalid for option &quot;'+t+'&quot;'}),TypeError),i(&quot;ERR_INVALID_ARG_TYPE&quot;,(function(t,e,r){var n,i,o,s;if(&quot;string&quot;==typeof e&amp;&amp;(i=&quot;not &quot;,e.substr(!o||o&lt;0?0:+o,i.length)===i)?(n=&quot;must not be&quot;,e=e.replace(/^not /,&quot;&quot;)):n=&quot;must be&quot;,function(t,e,r){return(void 0===r||r&gt;t.length)&amp;&amp;(r=t.length),t.substring(r-e.length,r)===e}(t,&quot; argument&quot;))s=&quot;The &quot;.concat(t,&quot; &quot;).concat(n,&quot; &quot;).concat(a(e,&quot;type&quot;));else{var l=function(t,e,r){return&quot;number&quot;!=typeof r&amp;&amp;(r=0),!(r+e.length&gt;t.length)&amp;&amp;-1!==t.indexOf(e,r)}(t,&quot;.&quot;)?&quot;property&quot;:&quot;argument&quot;;s='The &quot;'.concat(t,'&quot; ').concat(l,&quot; &quot;).concat(n,&quot; &quot;).concat(a(e,&quot;type&quot;))}return s+=&quot;. Received type &quot;.concat(typeof r)}),TypeError),i(&quot;ERR_STREAM_PUSH_AFTER_EOF&quot;,&quot;stream.push() after EOF&quot;),i(&quot;ERR_METHOD_NOT_IMPLEMENTED&quot;,(function(t){return&quot;The &quot;+t+&quot; method is not implemented&quot;})),i(&quot;ERR_STREAM_PREMATURE_CLOSE&quot;,&quot;Premature close&quot;),i(&quot;ERR_STREAM_DESTROYED&quot;,(function(t){return&quot;Cannot call &quot;+t+&quot; after a stream was destroyed&quot;})),i(&quot;ERR_MULTIPLE_CALLBACK&quot;,&quot;Callback called multiple times&quot;),i(&quot;ERR_STREAM_CANNOT_PIPE&quot;,&quot;Cannot pipe, not readable&quot;),i(&quot;ERR_STREAM_WRITE_AFTER_END&quot;,&quot;write after end&quot;),i(&quot;ERR_STREAM_NULL_VALUES&quot;,&quot;May not write null values to stream&quot;,TypeError),i(&quot;ERR_UNKNOWN_ENCODING&quot;,(function(t){return&quot;Unknown encoding: &quot;+t}),TypeError),i(&quot;ERR_STREAM_UNSHIFT_AFTER_END_EVENT&quot;,&quot;stream.unshift() after end event&quot;),e.exports.codes=n},{}],287:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};e.exports=c;var i=t(&quot;./_stream_readable&quot;),a=t(&quot;./_stream_writable&quot;);t(&quot;inherits&quot;)(c,i);for(var o=n(a.prototype),s=0;s&lt;o.length;s++){var l=o[s];c.prototype[l]||(c.prototype[l]=a.prototype[l])}function c(t){if(!(this instanceof c))return new c(t);i.call(this,t),a.call(this,t),this.allowHalfOpen=!0,t&amp;&amp;(!1===t.readable&amp;&amp;(this.readable=!1),!1===t.writable&amp;&amp;(this.writable=!1),!1===t.allowHalfOpen&amp;&amp;(this.allowHalfOpen=!1,this.once(&quot;end&quot;,u)))}function u(){this._writableState.ended||r.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(c.prototype,&quot;writableHighWaterMark&quot;,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,&quot;writableBuffer&quot;,{enumerable:!1,get:function(){return this._writableState&amp;&amp;this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,&quot;writableLength&quot;,{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.prototype,&quot;destroyed&quot;,{enumerable:!1,get:function(){return void 0!==this._readableState&amp;&amp;void 0!==this._writableState&amp;&amp;(this._readableState.destroyed&amp;&amp;this._writableState.destroyed)},set:function(t){void 0!==this._readableState&amp;&amp;void 0!==this._writableState&amp;&amp;(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./_stream_readable&quot;:289,&quot;./_stream_writable&quot;:291,_process:277,inherits:231}],288:[function(t,e,r){&quot;use strict&quot;;e.exports=i;var n=t(&quot;./_stream_transform&quot;);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}t(&quot;inherits&quot;)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},{&quot;./_stream_transform&quot;:290,inherits:231}],289:[function(t,e,r){(function(r,n){(function(){&quot;use strict&quot;;var i;e.exports=A,A.ReadableState=k;t(&quot;events&quot;).EventEmitter;var a=function(t,e){return t.listeners(e).length},o=t(&quot;./internal/streams/stream&quot;),s=t(&quot;buffer&quot;).Buffer,l=n.Uint8Array||function(){};var c,u=t(&quot;util&quot;);c=u&amp;&amp;u.debuglog?u.debuglog(&quot;stream&quot;):function(){};var f,h,p,d=t(&quot;./internal/streams/buffer_list&quot;),m=t(&quot;./internal/streams/destroy&quot;),g=t(&quot;./internal/streams/state&quot;).getHighWaterMark,v=t(&quot;../errors&quot;).codes,y=v.ERR_INVALID_ARG_TYPE,x=v.ERR_STREAM_PUSH_AFTER_EOF,b=v.ERR_METHOD_NOT_IMPLEMENTED,_=v.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;t(&quot;inherits&quot;)(A,o);var w=m.errorOrDestroy,T=[&quot;error&quot;,&quot;close&quot;,&quot;destroy&quot;,&quot;pause&quot;,&quot;resume&quot;];function k(e,r,n){i=i||t(&quot;./_stream_duplex&quot;),e=e||{},&quot;boolean&quot;!=typeof n&amp;&amp;(n=r instanceof i),this.objectMode=!!e.objectMode,n&amp;&amp;(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,&quot;readableHighWaterMark&quot;,n),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||&quot;utf8&quot;,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&amp;&amp;(f||(f=t(&quot;string_decoder/&quot;).StringDecoder),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function A(e){if(i=i||t(&quot;./_stream_duplex&quot;),!(this instanceof A))return new A(e);var r=this instanceof i;this._readableState=new k(e,this,r),this.readable=!0,e&amp;&amp;(&quot;function&quot;==typeof e.read&amp;&amp;(this._read=e.read),&quot;function&quot;==typeof e.destroy&amp;&amp;(this._destroy=e.destroy)),o.call(this)}function M(t,e,r,n,i){c(&quot;readableAddChunk&quot;,e);var a,o=t._readableState;if(null===e)o.reading=!1,function(t,e){if(c(&quot;onEofChunk&quot;),e.ended)return;if(e.decoder){var r=e.decoder.end();r&amp;&amp;r.length&amp;&amp;(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?L(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,C(t)))}(t,o);else if(i||(a=function(t,e){var r;n=e,s.isBuffer(n)||n instanceof l||&quot;string&quot;==typeof e||void 0===e||t.objectMode||(r=new y(&quot;chunk&quot;,[&quot;string&quot;,&quot;Buffer&quot;,&quot;Uint8Array&quot;],e));var n;return r}(o,e)),a)w(t,a);else if(o.objectMode||e&amp;&amp;e.length&gt;0)if(&quot;string&quot;==typeof e||o.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),n)o.endEmitted?w(t,new _):S(t,o,e,!0);else if(o.ended)w(t,new x);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&amp;&amp;!r?(e=o.decoder.write(e),o.objectMode||0!==e.length?S(t,o,e,!1):P(t,o)):S(t,o,e,!1)}else n||(o.reading=!1,P(t,o));return!o.ended&amp;&amp;(o.length&lt;o.highWaterMark||0===o.length)}function S(t,e,r,n){e.flowing&amp;&amp;0===e.length&amp;&amp;!e.sync?(e.awaitDrain=0,t.emit(&quot;data&quot;,r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&amp;&amp;L(t)),P(t,e)}Object.defineProperty(A.prototype,&quot;destroyed&quot;,{enumerable:!1,get:function(){return void 0!==this._readableState&amp;&amp;this._readableState.destroyed},set:function(t){this._readableState&amp;&amp;(this._readableState.destroyed=t)}}),A.prototype.destroy=m.destroy,A.prototype._undestroy=m.undestroy,A.prototype._destroy=function(t,e){e(t)},A.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:&quot;string&quot;==typeof t&amp;&amp;((e=e||n.defaultEncoding)!==n.encoding&amp;&amp;(t=s.from(t,e),e=&quot;&quot;),r=!0),M(this,t,e,!1,r)},A.prototype.unshift=function(t){return M(this,t,null,!0,!1)},A.prototype.isPaused=function(){return!1===this._readableState.flowing},A.prototype.setEncoding=function(e){f||(f=t(&quot;string_decoder/&quot;).StringDecoder);var r=new f(e);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i=&quot;&quot;;null!==n;)i+=r.write(n.data),n=n.next;return this._readableState.buffer.clear(),&quot;&quot;!==i&amp;&amp;this._readableState.buffer.push(i),this._readableState.length=i.length,this};function E(t,e){return t&lt;=0||0===e.length&amp;&amp;e.ended?0:e.objectMode?1:t!=t?e.flowing&amp;&amp;e.length?e.buffer.head.data.length:e.length:(t&gt;e.highWaterMark&amp;&amp;(e.highWaterMark=function(t){return t&gt;=1073741824?t=1073741824:(t--,t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,t|=t&gt;&gt;&gt;16,t++),t}(t)),t&lt;=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function L(t){var e=t._readableState;c(&quot;emitReadable&quot;,e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(c(&quot;emitReadable&quot;,e.flowing),e.emittedReadable=!0,r.nextTick(C,t))}function C(t){var e=t._readableState;c(&quot;emitReadable_&quot;,e.destroyed,e.length,e.ended),e.destroyed||!e.length&amp;&amp;!e.ended||(t.emit(&quot;readable&quot;),e.emittedReadable=!1),e.needReadable=!e.flowing&amp;&amp;!e.ended&amp;&amp;e.length&lt;=e.highWaterMark,R(t)}function P(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(I,t,e))}function I(t,e){for(;!e.reading&amp;&amp;!e.ended&amp;&amp;(e.length&lt;e.highWaterMark||e.flowing&amp;&amp;0===e.length);){var r=e.length;if(c(&quot;maybeReadMore read 0&quot;),t.read(0),r===e.length)break}e.readingMore=!1}function O(t){var e=t._readableState;e.readableListening=t.listenerCount(&quot;readable&quot;)&gt;0,e.resumeScheduled&amp;&amp;!e.paused?e.flowing=!0:t.listenerCount(&quot;data&quot;)&gt;0&amp;&amp;t.resume()}function z(t){c(&quot;readable nexttick read 0&quot;),t.read(0)}function D(t,e){c(&quot;resume&quot;,e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit(&quot;resume&quot;),R(t),e.flowing&amp;&amp;!e.reading&amp;&amp;t.read(0)}function R(t){var e=t._readableState;for(c(&quot;flow&quot;,e.flowing);e.flowing&amp;&amp;null!==t.read(););}function F(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t&gt;=e.length?(r=e.decoder?e.buffer.join(&quot;&quot;):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function B(t){var e=t._readableState;c(&quot;endReadable&quot;,e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(N,e,t))}function N(t,e){if(c(&quot;endReadableNT&quot;,t.endEmitted,t.length),!t.endEmitted&amp;&amp;0===t.length&amp;&amp;(t.endEmitted=!0,e.readable=!1,e.emit(&quot;end&quot;),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&amp;&amp;r.finished)&amp;&amp;e.destroy()}}function j(t,e){for(var r=0,n=t.length;r&lt;n;r++)if(t[r]===e)return r;return-1}A.prototype.read=function(t){c(&quot;read&quot;,t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&amp;&amp;(e.emittedReadable=!1),0===t&amp;&amp;e.needReadable&amp;&amp;((0!==e.highWaterMark?e.length&gt;=e.highWaterMark:e.length&gt;0)||e.ended))return c(&quot;read: emitReadable&quot;,e.length,e.ended),0===e.length&amp;&amp;e.ended?B(this):L(this),null;if(0===(t=E(t,e))&amp;&amp;e.ended)return 0===e.length&amp;&amp;B(this),null;var n,i=e.needReadable;return c(&quot;need readable&quot;,i),(0===e.length||e.length-t&lt;e.highWaterMark)&amp;&amp;c(&quot;length less than watermark&quot;,i=!0),e.ended||e.reading?c(&quot;reading or ended&quot;,i=!1):i&amp;&amp;(c(&quot;do read&quot;),e.reading=!0,e.sync=!0,0===e.length&amp;&amp;(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=E(r,e))),null===(n=t&gt;0?F(t,e):null)?(e.needReadable=e.length&lt;=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&amp;&amp;(e.ended||(e.needReadable=!0),r!==t&amp;&amp;e.ended&amp;&amp;B(this)),null!==n&amp;&amp;this.emit(&quot;data&quot;,n),n},A.prototype._read=function(t){w(this,new b(&quot;_read()&quot;))},A.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,c(&quot;pipe count=%d opts=%j&quot;,i.pipesCount,e);var o=(!e||!1!==e.end)&amp;&amp;t!==r.stdout&amp;&amp;t!==r.stderr?l:g;function s(e,r){c(&quot;onunpipe&quot;),e===n&amp;&amp;r&amp;&amp;!1===r.hasUnpiped&amp;&amp;(r.hasUnpiped=!0,c(&quot;cleanup&quot;),t.removeListener(&quot;close&quot;,d),t.removeListener(&quot;finish&quot;,m),t.removeListener(&quot;drain&quot;,u),t.removeListener(&quot;error&quot;,p),t.removeListener(&quot;unpipe&quot;,s),n.removeListener(&quot;end&quot;,l),n.removeListener(&quot;end&quot;,g),n.removeListener(&quot;data&quot;,h),f=!0,!i.awaitDrain||t._writableState&amp;&amp;!t._writableState.needDrain||u())}function l(){c(&quot;onend&quot;),t.end()}i.endEmitted?r.nextTick(o):n.once(&quot;end&quot;,o),t.on(&quot;unpipe&quot;,s);var u=function(t){return function(){var e=t._readableState;c(&quot;pipeOnDrain&quot;,e.awaitDrain),e.awaitDrain&amp;&amp;e.awaitDrain--,0===e.awaitDrain&amp;&amp;a(t,&quot;data&quot;)&amp;&amp;(e.flowing=!0,R(t))}}(n);t.on(&quot;drain&quot;,u);var f=!1;function h(e){c(&quot;ondata&quot;);var r=t.write(e);c(&quot;dest.write&quot;,r),!1===r&amp;&amp;((1===i.pipesCount&amp;&amp;i.pipes===t||i.pipesCount&gt;1&amp;&amp;-1!==j(i.pipes,t))&amp;&amp;!f&amp;&amp;(c(&quot;false write response, pause&quot;,i.awaitDrain),i.awaitDrain++),n.pause())}function p(e){c(&quot;onerror&quot;,e),g(),t.removeListener(&quot;error&quot;,p),0===a(t,&quot;error&quot;)&amp;&amp;w(t,e)}function d(){t.removeListener(&quot;finish&quot;,m),g()}function m(){c(&quot;onfinish&quot;),t.removeListener(&quot;close&quot;,d),g()}function g(){c(&quot;unpipe&quot;),n.unpipe(t)}return n.on(&quot;data&quot;,h),function(t,e,r){if(&quot;function&quot;==typeof t.prependListener)return t.prependListener(e,r);t._events&amp;&amp;t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,&quot;error&quot;,p),t.once(&quot;close&quot;,d),t.once(&quot;finish&quot;,m),t.emit(&quot;pipe&quot;,n),i.flowing||(c(&quot;pipe resume&quot;),n.resume()),t},A.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&amp;&amp;t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&amp;&amp;t.emit(&quot;unpipe&quot;,this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var a=0;a&lt;i;a++)n[a].emit(&quot;unpipe&quot;,this,{hasUnpiped:!1});return this}var o=j(e.pipes,t);return-1===o||(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&amp;&amp;(e.pipes=e.pipes[0]),t.emit(&quot;unpipe&quot;,this,r)),this},A.prototype.on=function(t,e){var n=o.prototype.on.call(this,t,e),i=this._readableState;return&quot;data&quot;===t?(i.readableListening=this.listenerCount(&quot;readable&quot;)&gt;0,!1!==i.flowing&amp;&amp;this.resume()):&quot;readable&quot;===t&amp;&amp;(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,c(&quot;on readable&quot;,i.length,i.reading),i.length?L(this):i.reading||r.nextTick(z,this))),n},A.prototype.addListener=A.prototype.on,A.prototype.removeListener=function(t,e){var n=o.prototype.removeListener.call(this,t,e);return&quot;readable&quot;===t&amp;&amp;r.nextTick(O,this),n},A.prototype.removeAllListeners=function(t){var e=o.prototype.removeAllListeners.apply(this,arguments);return&quot;readable&quot;!==t&amp;&amp;void 0!==t||r.nextTick(O,this),e},A.prototype.resume=function(){var t=this._readableState;return t.flowing||(c(&quot;resume&quot;),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(D,t,e))}(this,t)),t.paused=!1,this},A.prototype.pause=function(){return c(&quot;call pause flowing=%j&quot;,this._readableState.flowing),!1!==this._readableState.flowing&amp;&amp;(c(&quot;pause&quot;),this._readableState.flowing=!1,this.emit(&quot;pause&quot;)),this._readableState.paused=!0,this},A.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var i in t.on(&quot;end&quot;,(function(){if(c(&quot;wrapped end&quot;),r.decoder&amp;&amp;!r.ended){var t=r.decoder.end();t&amp;&amp;t.length&amp;&amp;e.push(t)}e.push(null)})),t.on(&quot;data&quot;,(function(i){(c(&quot;wrapped data&quot;),r.decoder&amp;&amp;(i=r.decoder.write(i)),r.objectMode&amp;&amp;null==i)||(r.objectMode||i&amp;&amp;i.length)&amp;&amp;(e.push(i)||(n=!0,t.pause()))})),t)void 0===this[i]&amp;&amp;&quot;function&quot;==typeof t[i]&amp;&amp;(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var a=0;a&lt;T.length;a++)t.on(T[a],this.emit.bind(this,T[a]));return this._read=function(e){c(&quot;wrapped _read&quot;,e),n&amp;&amp;(n=!1,t.resume())},this},&quot;function&quot;==typeof Symbol&amp;&amp;(A.prototype[Symbol.asyncIterator]=function(){return void 0===h&amp;&amp;(h=t(&quot;./internal/streams/async_iterator&quot;)),h(this)}),Object.defineProperty(A.prototype,&quot;readableHighWaterMark&quot;,{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(A.prototype,&quot;readableBuffer&quot;,{enumerable:!1,get:function(){return this._readableState&amp;&amp;this._readableState.buffer}}),Object.defineProperty(A.prototype,&quot;readableFlowing&quot;,{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&amp;&amp;(this._readableState.flowing=t)}}),A._fromList=F,Object.defineProperty(A.prototype,&quot;readableLength&quot;,{enumerable:!1,get:function(){return this._readableState.length}}),&quot;function&quot;==typeof Symbol&amp;&amp;(A.from=function(e,r){return void 0===p&amp;&amp;(p=t(&quot;./internal/streams/from&quot;)),p(A,e,r)})}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;../errors&quot;:286,&quot;./_stream_duplex&quot;:287,&quot;./internal/streams/async_iterator&quot;:292,&quot;./internal/streams/buffer_list&quot;:293,&quot;./internal/streams/destroy&quot;:294,&quot;./internal/streams/from&quot;:296,&quot;./internal/streams/state&quot;:298,&quot;./internal/streams/stream&quot;:299,_process:277,buffer:85,events:84,inherits:231,&quot;string_decoder/&quot;:300,util:83}],290:[function(t,e,r){&quot;use strict&quot;;e.exports=u;var n=t(&quot;../errors&quot;).codes,i=n.ERR_METHOD_NOT_IMPLEMENTED,a=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=n.ERR_TRANSFORM_WITH_LENGTH_0,l=t(&quot;./_stream_duplex&quot;);function c(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit(&quot;error&quot;,new a);r.writechunk=null,r.writecb=null,null!=e&amp;&amp;this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length&lt;i.highWaterMark)&amp;&amp;this._read(i.highWaterMark)}function u(t){if(!(this instanceof u))return new u(t);l.call(this,t),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&amp;&amp;(&quot;function&quot;==typeof t.transform&amp;&amp;(this._transform=t.transform),&quot;function&quot;==typeof t.flush&amp;&amp;(this._flush=t.flush)),this.on(&quot;prefinish&quot;,f)}function f(){var t=this;&quot;function&quot;!=typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(e,r){h(t,e,r)}))}function h(t,e,r){if(e)return t.emit(&quot;error&quot;,e);if(null!=r&amp;&amp;t.push(r),t._writableState.length)throw new s;if(t._transformState.transforming)throw new o;return t.push(null)}t(&quot;inherits&quot;)(u,l),u.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},u.prototype._transform=function(t,e,r){r(new i(&quot;_transform()&quot;))},u.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length&lt;i.highWaterMark)&amp;&amp;this._read(i.highWaterMark)}},u.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},u.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},{&quot;../errors&quot;:286,&quot;./_stream_duplex&quot;:287,inherits:231}],291:[function(t,e,r){(function(r,n){(function(){&quot;use strict&quot;;function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,r){var n=t.entry;t.entry=null;for(;n;){var i=n.callback;e.pendingcb--,i(r),n=n.next}e.corkedRequestsFree.next=t}(e,t)}}var a;e.exports=A,A.WritableState=k;var o={deprecate:t(&quot;util-deprecate&quot;)},s=t(&quot;./internal/streams/stream&quot;),l=t(&quot;buffer&quot;).Buffer,c=n.Uint8Array||function(){};var u,f=t(&quot;./internal/streams/destroy&quot;),h=t(&quot;./internal/streams/state&quot;).getHighWaterMark,p=t(&quot;../errors&quot;).codes,d=p.ERR_INVALID_ARG_TYPE,m=p.ERR_METHOD_NOT_IMPLEMENTED,g=p.ERR_MULTIPLE_CALLBACK,v=p.ERR_STREAM_CANNOT_PIPE,y=p.ERR_STREAM_DESTROYED,x=p.ERR_STREAM_NULL_VALUES,b=p.ERR_STREAM_WRITE_AFTER_END,_=p.ERR_UNKNOWN_ENCODING,w=f.errorOrDestroy;function T(){}function k(e,n,o){a=a||t(&quot;./_stream_duplex&quot;),e=e||{},&quot;boolean&quot;!=typeof o&amp;&amp;(o=n instanceof a),this.objectMode=!!e.objectMode,o&amp;&amp;(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=h(this,e,&quot;writableHighWaterMark&quot;,o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||&quot;utf8&quot;,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,a=n.writecb;if(&quot;function&quot;!=typeof a)throw new g;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,a){--e.pendingcb,n?(r.nextTick(a,i),r.nextTick(P,t,e),t._writableState.errorEmitted=!0,w(t,i)):(a(i),t._writableState.errorEmitted=!0,w(t,i),P(t,e))}(t,n,i,e,a);else{var o=L(n)||t.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||E(t,n),i?r.nextTick(S,t,n,o,a):S(t,n,o,a)}}(n,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function A(e){var r=this instanceof(a=a||t(&quot;./_stream_duplex&quot;));if(!r&amp;&amp;!u.call(A,this))return new A(e);this._writableState=new k(e,this,r),this.writable=!0,e&amp;&amp;(&quot;function&quot;==typeof e.write&amp;&amp;(this._write=e.write),&quot;function&quot;==typeof e.writev&amp;&amp;(this._writev=e.writev),&quot;function&quot;==typeof e.destroy&amp;&amp;(this._destroy=e.destroy),&quot;function&quot;==typeof e.final&amp;&amp;(this._final=e.final)),s.call(this)}function M(t,e,r,n,i,a,o){e.writelen=n,e.writecb=o,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new y(&quot;write&quot;)):r?t._writev(i,e.onwrite):t._write(i,a,e.onwrite),e.sync=!1}function S(t,e,r,n){r||function(t,e){0===e.length&amp;&amp;e.needDrain&amp;&amp;(e.needDrain=!1,t.emit(&quot;drain&quot;))}(t,e),e.pendingcb--,n(),P(t,e)}function E(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&amp;&amp;r&amp;&amp;r.next){var n=e.bufferedRequestCount,a=new Array(n),o=e.corkedRequestsFree;o.entry=r;for(var s=0,l=!0;r;)a[s]=r,r.isBuf||(l=!1),r=r.next,s+=1;a.allBuffers=l,M(t,e,!0,e.length,a,&quot;&quot;,o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new i(e),e.bufferedRequestCount=0}else{for(;r;){var c=r.chunk,u=r.encoding,f=r.callback;if(M(t,e,!1,e.objectMode?1:c.length,c,u,f),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&amp;&amp;(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function L(t){return t.ending&amp;&amp;0===t.length&amp;&amp;null===t.bufferedRequest&amp;&amp;!t.finished&amp;&amp;!t.writing}function C(t,e){t._final((function(r){e.pendingcb--,r&amp;&amp;w(t,r),e.prefinished=!0,t.emit(&quot;prefinish&quot;),P(t,e)}))}function P(t,e){var n=L(e);if(n&amp;&amp;(function(t,e){e.prefinished||e.finalCalled||(&quot;function&quot;!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit(&quot;prefinish&quot;)):(e.pendingcb++,e.finalCalled=!0,r.nextTick(C,t,e)))}(t,e),0===e.pendingcb&amp;&amp;(e.finished=!0,t.emit(&quot;finish&quot;),e.autoDestroy))){var i=t._readableState;(!i||i.autoDestroy&amp;&amp;i.endEmitted)&amp;&amp;t.destroy()}return n}t(&quot;inherits&quot;)(A,s),k.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(k.prototype,&quot;buffer&quot;,{get:o.deprecate((function(){return this.getBuffer()}),&quot;_writableState.buffer is deprecated. Use _writableState.getBuffer instead.&quot;,&quot;DEP0003&quot;)})}catch(t){}}(),&quot;function&quot;==typeof Symbol&amp;&amp;Symbol.hasInstance&amp;&amp;&quot;function&quot;==typeof Function.prototype[Symbol.hasInstance]?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(A,Symbol.hasInstance,{value:function(t){return!!u.call(this,t)||this===A&amp;&amp;(t&amp;&amp;t._writableState instanceof k)}})):u=function(t){return t instanceof this},A.prototype.pipe=function(){w(this,new v)},A.prototype.write=function(t,e,n){var i,a=this._writableState,o=!1,s=!a.objectMode&amp;&amp;(i=t,l.isBuffer(i)||i instanceof c);return s&amp;&amp;!l.isBuffer(t)&amp;&amp;(t=function(t){return l.from(t)}(t)),&quot;function&quot;==typeof e&amp;&amp;(n=e,e=null),s?e=&quot;buffer&quot;:e||(e=a.defaultEncoding),&quot;function&quot;!=typeof n&amp;&amp;(n=T),a.ending?function(t,e){var n=new b;w(t,n),r.nextTick(e,n)}(this,n):(s||function(t,e,n,i){var a;return null===n?a=new x:&quot;string&quot;==typeof n||e.objectMode||(a=new d(&quot;chunk&quot;,[&quot;string&quot;,&quot;Buffer&quot;],n)),!a||(w(t,a),r.nextTick(i,a),!1)}(this,a,t,n))&amp;&amp;(a.pendingcb++,o=function(t,e,r,n,i,a){if(!r){var o=function(t,e,r){t.objectMode||!1===t.decodeStrings||&quot;string&quot;!=typeof e||(e=l.from(e,r));return e}(e,n,i);n!==o&amp;&amp;(r=!0,i=&quot;buffer&quot;,n=o)}var s=e.objectMode?1:n.length;e.length+=s;var c=e.length&lt;e.highWaterMark;c||(e.needDrain=!0);if(e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else M(t,e,!1,s,n,i,a);return c}(this,a,s,t,e,n)),o},A.prototype.cork=function(){this._writableState.corked++},A.prototype.uncork=function(){var t=this._writableState;t.corked&amp;&amp;(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||E(this,t))},A.prototype.setDefaultEncoding=function(t){if(&quot;string&quot;==typeof t&amp;&amp;(t=t.toLowerCase()),!([&quot;hex&quot;,&quot;utf8&quot;,&quot;utf-8&quot;,&quot;ascii&quot;,&quot;binary&quot;,&quot;base64&quot;,&quot;ucs2&quot;,&quot;ucs-2&quot;,&quot;utf16le&quot;,&quot;utf-16le&quot;,&quot;raw&quot;].indexOf((t+&quot;&quot;).toLowerCase())&gt;-1))throw new _(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(A.prototype,&quot;writableBuffer&quot;,{enumerable:!1,get:function(){return this._writableState&amp;&amp;this._writableState.getBuffer()}}),Object.defineProperty(A.prototype,&quot;writableHighWaterMark&quot;,{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),A.prototype._write=function(t,e,r){r(new m(&quot;_write()&quot;))},A.prototype._writev=null,A.prototype.end=function(t,e,n){var i=this._writableState;return&quot;function&quot;==typeof t?(n=t,t=null,e=null):&quot;function&quot;==typeof e&amp;&amp;(n=e,e=null),null!=t&amp;&amp;this.write(t,e),i.corked&amp;&amp;(i.corked=1,this.uncork()),i.ending||function(t,e,n){e.ending=!0,P(t,e),n&amp;&amp;(e.finished?r.nextTick(n):t.once(&quot;finish&quot;,n));e.ended=!0,t.writable=!1}(this,i,n),this},Object.defineProperty(A.prototype,&quot;writableLength&quot;,{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(A.prototype,&quot;destroyed&quot;,{enumerable:!1,get:function(){return void 0!==this._writableState&amp;&amp;this._writableState.destroyed},set:function(t){this._writableState&amp;&amp;(this._writableState.destroyed=t)}}),A.prototype.destroy=f.destroy,A.prototype._undestroy=f.undestroy,A.prototype._destroy=function(t,e){e(t)}}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;../errors&quot;:286,&quot;./_stream_duplex&quot;:287,&quot;./internal/streams/destroy&quot;:294,&quot;./internal/streams/state&quot;:298,&quot;./internal/streams/stream&quot;:299,_process:277,buffer:85,inherits:231,&quot;util-deprecate&quot;:330}],292:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n;function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var a=t(&quot;./end-of-stream&quot;),o=Symbol(&quot;lastResolve&quot;),s=Symbol(&quot;lastReject&quot;),l=Symbol(&quot;error&quot;),c=Symbol(&quot;ended&quot;),u=Symbol(&quot;lastPromise&quot;),f=Symbol(&quot;handlePromise&quot;),h=Symbol(&quot;stream&quot;);function p(t,e){return{value:t,done:e}}function d(t){var e=t[o];if(null!==e){var r=t[h].read();null!==r&amp;&amp;(t[u]=null,t[o]=null,t[s]=null,e(p(r,!1)))}}function m(t){r.nextTick(d,t)}var g=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((i(n={get stream(){return this[h]},next:function(){var t=this,e=this[l];if(null!==e)return Promise.reject(e);if(this[c])return Promise.resolve(p(void 0,!0));if(this[h].destroyed)return new Promise((function(e,n){r.nextTick((function(){t[l]?n(t[l]):e(p(void 0,!0))}))}));var n,i=this[u];if(i)n=new Promise(function(t,e){return function(r,n){t.then((function(){e[c]?r(p(void 0,!0)):e[f](r,n)}),n)}}(i,this));else{var a=this[h].read();if(null!==a)return Promise.resolve(p(a,!1));n=new Promise(this[f])}return this[u]=n,n}},Symbol.asyncIterator,(function(){return this})),i(n,&quot;return&quot;,(function(){var t=this;return new Promise((function(e,r){t[h].destroy(null,(function(t){t?r(t):e(p(void 0,!0))}))}))})),n),g);e.exports=function(t){var e,r=Object.create(v,(i(e={},h,{value:t,writable:!0}),i(e,o,{value:null,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,l,{value:null,writable:!0}),i(e,c,{value:t._readableState.endEmitted,writable:!0}),i(e,f,{value:function(t,e){var n=r[h].read();n?(r[u]=null,r[o]=null,r[s]=null,t(p(n,!1))):(r[o]=t,r[s]=e)},writable:!0}),e));return r[u]=null,a(t,(function(t){if(t&amp;&amp;&quot;ERR_STREAM_PREMATURE_CLOSE&quot;!==t.code){var e=r[s];return null!==e&amp;&amp;(r[u]=null,r[o]=null,r[s]=null,e(t)),void(r[l]=t)}var n=r[o];null!==n&amp;&amp;(r[u]=null,r[o]=null,r[s]=null,n(p(void 0,!0))),r[c]=!0})),t.on(&quot;readable&quot;,m.bind(null,r)),r}}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./end-of-stream&quot;:295,_process:277}],293:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&amp;&amp;(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function a(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,&quot;value&quot;in n&amp;&amp;(n.writable=!0),Object.defineProperty(t,n.key,n)}}var o=t(&quot;buffer&quot;).Buffer,s=t(&quot;util&quot;).inspect,l=s&amp;&amp;s.custom||&quot;inspect&quot;;e.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError(&quot;Cannot call a class as a function&quot;)}(this,t),this.head=null,this.tail=null,this.length=0}var e,r,c;return e=t,(r=[{key:&quot;push&quot;,value:function(t){var e={data:t,next:null};this.length&gt;0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:&quot;unshift&quot;,value:function(t){var e={data:t,next:this.head};0===this.length&amp;&amp;(this.tail=e),this.head=e,++this.length}},{key:&quot;shift&quot;,value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:&quot;clear&quot;,value:function(){this.head=this.tail=null,this.length=0}},{key:&quot;join&quot;,value:function(t){if(0===this.length)return&quot;&quot;;for(var e=this.head,r=&quot;&quot;+e.data;e=e.next;)r+=t+e.data;return r}},{key:&quot;concat&quot;,value:function(t){if(0===this.length)return o.alloc(0);for(var e,r,n,i=o.allocUnsafe(t&gt;&gt;&gt;0),a=this.head,s=0;a;)e=a.data,r=i,n=s,o.prototype.copy.call(e,r,n),s+=a.data.length,a=a.next;return i}},{key:&quot;consume&quot;,value:function(t,e){var r;return t&lt;this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:&quot;first&quot;,value:function(){return this.head.data}},{key:&quot;_getString&quot;,value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,a=t&gt;i.length?i.length:t;if(a===i.length?n+=i:n+=i.slice(0,t),0==(t-=a)){a===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(a));break}++r}return this.length-=r,n}},{key:&quot;_getBuffer&quot;,value:function(t){var e=o.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,a=t&gt;i.length?i.length:t;if(i.copy(e,e.length-t,0,a),0==(t-=a)){a===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(a));break}++n}return this.length-=n,e}},{key:l,value:function(t,e){return s(this,function(t){for(var e=1;e&lt;arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){i(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}])&amp;&amp;a(e.prototype,r),c&amp;&amp;a(e,c),t}()},{buffer:85,util:83}],294:[function(t,e,r){(function(t){(function(){&quot;use strict&quot;;function r(t,e){i(t,e),n(t)}function n(t){t._writableState&amp;&amp;!t._writableState.emitClose||t._readableState&amp;&amp;!t._readableState.emitClose||t.emit(&quot;close&quot;)}function i(t,e){t.emit(&quot;error&quot;,e)}e.exports={destroy:function(e,a){var o=this,s=this._readableState&amp;&amp;this._readableState.destroyed,l=this._writableState&amp;&amp;this._writableState.destroyed;return s||l?(a?a(e):e&amp;&amp;(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,t.nextTick(i,this,e)):t.nextTick(i,this,e)),this):(this._readableState&amp;&amp;(this._readableState.destroyed=!0),this._writableState&amp;&amp;(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!a&amp;&amp;e?o._writableState?o._writableState.errorEmitted?t.nextTick(n,o):(o._writableState.errorEmitted=!0,t.nextTick(r,o,e)):t.nextTick(r,o,e):a?(t.nextTick(n,o),a(e)):t.nextTick(n,o)})),this)},undestroy:function(){this._readableState&amp;&amp;(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&amp;&amp;(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&amp;&amp;r.autoDestroy||n&amp;&amp;n.autoDestroy?t.destroy(e):t.emit(&quot;error&quot;,e)}}}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:277}],295:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../errors&quot;).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function t(e,r,a){if(&quot;function&quot;==typeof r)return t(e,null,r);r||(r={}),a=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i&lt;r;i++)n[i]=arguments[i];t.apply(this,n)}}}(a||i);var o=r.readable||!1!==r.readable&amp;&amp;e.readable,s=r.writable||!1!==r.writable&amp;&amp;e.writable,l=function(){e.writable||u()},c=e._writableState&amp;&amp;e._writableState.finished,u=function(){s=!1,c=!0,o||a.call(e)},f=e._readableState&amp;&amp;e._readableState.endEmitted,h=function(){o=!1,f=!0,s||a.call(e)},p=function(t){a.call(e,t)},d=function(){var t;return o&amp;&amp;!f?(e._readableState&amp;&amp;e._readableState.ended||(t=new n),a.call(e,t)):s&amp;&amp;!c?(e._writableState&amp;&amp;e._writableState.ended||(t=new n),a.call(e,t)):void 0},m=function(){e.req.on(&quot;finish&quot;,u)};return!function(t){return t.setHeader&amp;&amp;&quot;function&quot;==typeof t.abort}(e)?s&amp;&amp;!e._writableState&amp;&amp;(e.on(&quot;end&quot;,l),e.on(&quot;close&quot;,l)):(e.on(&quot;complete&quot;,u),e.on(&quot;abort&quot;,d),e.req?m():e.on(&quot;request&quot;,m)),e.on(&quot;end&quot;,h),e.on(&quot;finish&quot;,u),!1!==r.error&amp;&amp;e.on(&quot;error&quot;,p),e.on(&quot;close&quot;,d),function(){e.removeListener(&quot;complete&quot;,u),e.removeListener(&quot;abort&quot;,d),e.removeListener(&quot;request&quot;,m),e.req&amp;&amp;e.req.removeListener(&quot;finish&quot;,u),e.removeListener(&quot;end&quot;,l),e.removeListener(&quot;close&quot;,l),e.removeListener(&quot;finish&quot;,u),e.removeListener(&quot;end&quot;,h),e.removeListener(&quot;error&quot;,p),e.removeListener(&quot;close&quot;,d)}}},{&quot;../../../errors&quot;:286}],296:[function(t,e,r){e.exports=function(){throw new Error(&quot;Readable.from is not available in the browser&quot;)}},{}],297:[function(t,e,r){&quot;use strict&quot;;var n;var i=t(&quot;../../../errors&quot;).codes,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(t){if(t)throw t}function l(e,r,i,a){a=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(a);var s=!1;e.on(&quot;close&quot;,(function(){s=!0})),void 0===n&amp;&amp;(n=t(&quot;./end-of-stream&quot;)),n(e,{readable:r,writable:i},(function(t){if(t)return a(t);s=!0,a()}));var l=!1;return function(t){if(!s&amp;&amp;!l)return l=!0,function(t){return t.setHeader&amp;&amp;&quot;function&quot;==typeof t.abort}(e)?e.abort():&quot;function&quot;==typeof e.destroy?e.destroy():void a(t||new o(&quot;pipe&quot;))}}function c(t){t()}function u(t,e){return t.pipe(e)}function f(t){return t.length?&quot;function&quot;!=typeof t[t.length-1]?s:t.pop():s}e.exports=function(){for(var t=arguments.length,e=new Array(t),r=0;r&lt;t;r++)e[r]=arguments[r];var n,i=f(e);if(Array.isArray(e[0])&amp;&amp;(e=e[0]),e.length&lt;2)throw new a(&quot;streams&quot;);var o=e.map((function(t,r){var a=r&lt;e.length-1;return l(t,a,r&gt;0,(function(t){n||(n=t),t&amp;&amp;o.forEach(c),a||(o.forEach(c),i(n))}))}));return e.reduce(u)}},{&quot;../../../errors&quot;:286,&quot;./end-of-stream&quot;:295}],298:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../errors&quot;).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(t,e,r,i){var a=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a&lt;0)throw new n(i?r:&quot;highWaterMark&quot;,a);return Math.floor(a)}return t.objectMode?16:16384}}},{&quot;../../../errors&quot;:286}],299:[function(t,e,r){e.exports=t(&quot;events&quot;).EventEmitter},{events:84}],300:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;safe-buffer&quot;).Buffer,i=n.isEncoding||function(t){switch((t=&quot;&quot;+t)&amp;&amp;t.toLowerCase()){case&quot;hex&quot;:case&quot;utf8&quot;:case&quot;utf-8&quot;:case&quot;ascii&quot;:case&quot;binary&quot;:case&quot;base64&quot;:case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:case&quot;raw&quot;:return!0;default:return!1}};function a(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return&quot;utf8&quot;;for(var e;;)switch(t){case&quot;utf8&quot;:case&quot;utf-8&quot;:return&quot;utf8&quot;;case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return&quot;utf16le&quot;;case&quot;latin1&quot;:case&quot;binary&quot;:return&quot;latin1&quot;;case&quot;base64&quot;:case&quot;ascii&quot;:case&quot;hex&quot;:return t;default:if(e)return;t=(&quot;&quot;+t).toLowerCase(),e=!0}}(t);if(&quot;string&quot;!=typeof e&amp;&amp;(n.isEncoding===i||!i(t)))throw new Error(&quot;Unknown encoding: &quot;+t);return e||t}(t),this.encoding){case&quot;utf16le&quot;:this.text=l,this.end=c,e=4;break;case&quot;utf8&quot;:this.fillLast=s,e=4;break;case&quot;base64&quot;:this.text=u,this.end=f,e=3;break;default:return this.write=h,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function o(t){return t&lt;=127?0:t&gt;&gt;5==6?2:t&gt;&gt;4==14?3:t&gt;&gt;3==30?4:t&gt;&gt;6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,r=function(t,e,r){if(128!=(192&amp;e[0]))return t.lastNeed=0,&quot;\ufffd&quot;;if(t.lastNeed&gt;1&amp;&amp;e.length&gt;1){if(128!=(192&amp;e[1]))return t.lastNeed=1,&quot;\ufffd&quot;;if(t.lastNeed&gt;2&amp;&amp;e.length&gt;2&amp;&amp;128!=(192&amp;e[2]))return t.lastNeed=2,&quot;\ufffd&quot;}}(this,t);return void 0!==r?r:this.lastNeed&lt;=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2==0){var r=t.toString(&quot;utf16le&quot;,e);if(r){var n=r.charCodeAt(r.length-1);if(n&gt;=55296&amp;&amp;n&lt;=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString(&quot;utf16le&quot;,e,t.length-1)}function c(t){var e=t&amp;&amp;t.length?this.write(t):&quot;&quot;;if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString(&quot;utf16le&quot;,0,r)}return e}function u(t,e){var r=(t.length-e)%3;return 0===r?t.toString(&quot;base64&quot;,e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString(&quot;base64&quot;,e,t.length-r))}function f(t){var e=t&amp;&amp;t.length?this.write(t):&quot;&quot;;return this.lastNeed?e+this.lastChar.toString(&quot;base64&quot;,0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function p(t){return t&amp;&amp;t.length?this.write(t):&quot;&quot;}r.StringDecoder=a,a.prototype.write=function(t){if(0===t.length)return&quot;&quot;;var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return&quot;&quot;;r=this.lastNeed,this.lastNeed=0}else r=0;return r&lt;t.length?e?e+this.text(t,r):this.text(t,r):e||&quot;&quot;},a.prototype.end=function(t){var e=t&amp;&amp;t.length?this.write(t):&quot;&quot;;return this.lastNeed?e+&quot;\ufffd&quot;:e},a.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n&lt;r)return 0;var i=o(e[n]);if(i&gt;=0)return i&gt;0&amp;&amp;(t.lastNeed=i-1),i;if(--n&lt;r||-2===i)return 0;if((i=o(e[n]))&gt;=0)return i&gt;0&amp;&amp;(t.lastNeed=i-2),i;if(--n&lt;r||-2===i)return 0;if((i=o(e[n]))&gt;=0)return i&gt;0&amp;&amp;(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString(&quot;utf8&quot;,e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString(&quot;utf8&quot;,e,n)},a.prototype.fillLast=function(t){if(this.lastNeed&lt;=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},{&quot;safe-buffer&quot;:284}],301:[function(t,e,r){(function(r,n){(function(){var r=t(&quot;assert&quot;),i=t(&quot;debug&quot;)(&quot;stream-parser&quot;);e.exports=function(t){var e=t&amp;&amp;&quot;function&quot;==typeof t._transform,r=t&amp;&amp;&quot;function&quot;==typeof t._write;if(!e&amp;&amp;!r)throw new Error(&quot;must pass a Writable or Transform stream in&quot;);i(&quot;extending Parser into stream&quot;),t._bytes=o,t._skipBytes=s,e&amp;&amp;(t._passthrough=l);e?t._transform=u:t._write=c};function a(t){i(&quot;initializing parser stream&quot;),t._parserBytesLeft=0,t._parserBuffers=[],t._parserBuffered=0,t._parserState=-1,t._parserCallback=null,&quot;function&quot;==typeof t.push&amp;&amp;(t._parserOutput=t.push.bind(t)),t._parserInit=!0}function o(t,e){r(!this._parserCallback,'there is already a &quot;callback&quot; set!'),r(isFinite(t)&amp;&amp;t&gt;0,'can only buffer a finite number of bytes &gt; 0, got &quot;'+t+'&quot;'),this._parserInit||a(this),i(&quot;buffering %o bytes&quot;,t),this._parserBytesLeft=t,this._parserCallback=e,this._parserState=0}function s(t,e){r(!this._parserCallback,'there is already a &quot;callback&quot; set!'),r(t&gt;0,'can only skip &gt; 0 bytes, got &quot;'+t+'&quot;'),this._parserInit||a(this),i(&quot;skipping %o bytes&quot;,t),this._parserBytesLeft=t,this._parserCallback=e,this._parserState=1}function l(t,e){r(!this._parserCallback,'There is already a &quot;callback&quot; set!'),r(t&gt;0,'can only pass through &gt; 0 bytes, got &quot;'+t+'&quot;'),this._parserInit||a(this),i(&quot;passing through %o bytes&quot;,t),this._parserBytesLeft=t,this._parserCallback=e,this._parserState=2}function c(t,e,r){this._parserInit||a(this),i(&quot;write(%o bytes)&quot;,t.length),&quot;function&quot;==typeof e&amp;&amp;(r=e),h(this,t,null,r)}function u(t,e,r){this._parserInit||a(this),i(&quot;transform(%o bytes)&quot;,t.length),&quot;function&quot;!=typeof e&amp;&amp;(e=this._parserOutput),h(this,t,e,r)}function f(t,e,r,a){if(t._parserBytesLeft-=e.length,i(&quot;%o bytes left for stream piece&quot;,t._parserBytesLeft),0===t._parserState?(t._parserBuffers.push(e),t._parserBuffered+=e.length):2===t._parserState&amp;&amp;r(e),0!==t._parserBytesLeft)return a;var o=t._parserCallback;if(o&amp;&amp;0===t._parserState&amp;&amp;t._parserBuffers.length&gt;1&amp;&amp;(e=n.concat(t._parserBuffers,t._parserBuffered)),0!==t._parserState&amp;&amp;(e=null),t._parserCallback=null,t._parserBuffered=0,t._parserState=-1,t._parserBuffers.splice(0),o){var s=[];e&amp;&amp;s.push(e),r&amp;&amp;s.push(r);var l=o.length&gt;s.length;l&amp;&amp;s.push(p(a));var c=o.apply(t,s);if(!l||a===c)return a}}var h=p((function t(e,r,n,i){return e._parserBytesLeft&lt;=0?i(new Error(&quot;got data but not currently parsing anything&quot;)):r.length&lt;=e._parserBytesLeft?function(){return f(e,r,n,i)}:function(){var a=r.slice(0,e._parserBytesLeft);return f(e,a,n,(function(o){return o?i(o):r.length&gt;a.length?function(){return t(e,r.slice(a.length),n,i)}:void 0}))}}));function p(t){return function(){for(var e=t.apply(this,arguments);&quot;function&quot;==typeof e;)e=e();return e}}}).call(this)}).call(this,t(&quot;_process&quot;),t(&quot;buffer&quot;).Buffer)},{_process:277,assert:75,buffer:85,debug:302}],302:[function(t,e,r){(function(n){(function(){function i(){var t;try{t=r.storage.debug}catch(t){}return!t&amp;&amp;void 0!==n&amp;&amp;&quot;env&quot;in n&amp;&amp;(t=n.env.DEBUG),t}(r=e.exports=t(&quot;./debug&quot;)).log=function(){return&quot;object&quot;==typeof console&amp;&amp;console.log&amp;&amp;Function.prototype.apply.call(console.log,console,arguments)},r.formatArgs=function(t){var e=this.useColors;if(t[0]=(e?&quot;%c&quot;:&quot;&quot;)+this.namespace+(e?&quot; %c&quot;:&quot; &quot;)+t[0]+(e?&quot;%c &quot;:&quot; &quot;)+&quot;+&quot;+r.humanize(this.diff),!e)return;var n=&quot;color: &quot;+this.color;t.splice(1,0,n,&quot;color: inherit&quot;);var i=0,a=0;t[0].replace(/%[a-zA-Z%]/g,(function(t){&quot;%%&quot;!==t&amp;&amp;(i++,&quot;%c&quot;===t&amp;&amp;(a=i))})),t.splice(a,0,n)},r.save=function(t){try{null==t?r.storage.removeItem(&quot;debug&quot;):r.storage.debug=t}catch(t){}},r.load=i,r.useColors=function(){if(&quot;undefined&quot;!=typeof window&amp;&amp;window.process&amp;&amp;&quot;renderer&quot;===window.process.type)return!0;return&quot;undefined&quot;!=typeof document&amp;&amp;document.documentElement&amp;&amp;document.documentElement.style&amp;&amp;document.documentElement.style.WebkitAppearance||&quot;undefined&quot;!=typeof window&amp;&amp;window.console&amp;&amp;(window.console.firebug||window.console.exception&amp;&amp;window.console.table)||&quot;undefined&quot;!=typeof navigator&amp;&amp;navigator.userAgent&amp;&amp;navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&amp;&amp;parseInt(RegExp.$1,10)&gt;=31||&quot;undefined&quot;!=typeof navigator&amp;&amp;navigator.userAgent&amp;&amp;navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},r.storage=&quot;undefined&quot;!=typeof chrome&amp;&amp;void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),r.colors=[&quot;lightseagreen&quot;,&quot;forestgreen&quot;,&quot;goldenrod&quot;,&quot;dodgerblue&quot;,&quot;darkorchid&quot;,&quot;crimson&quot;],r.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return&quot;[UnexpectedJSONParseError]: &quot;+t.message}},r.enable(i())}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./debug&quot;:303,_process:277}],303:[function(t,e,r){var n;function i(t){function e(){if(e.enabled){var t=e,i=+new Date,a=i-(n||i);t.diff=a,t.prev=n,t.curr=i,n=i;for(var o=new Array(arguments.length),s=0;s&lt;o.length;s++)o[s]=arguments[s];o[0]=r.coerce(o[0]),&quot;string&quot;!=typeof o[0]&amp;&amp;o.unshift(&quot;%O&quot;);var l=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(e,n){if(&quot;%%&quot;===e)return e;l++;var i=r.formatters[n];if(&quot;function&quot;==typeof i){var a=o[l];e=i.call(t,a),o.splice(l,1),l--}return e})),r.formatArgs.call(t,o);var c=e.log||r.log||console.log.bind(console);c.apply(t,o)}}return e.namespace=t,e.enabled=r.enabled(t),e.useColors=r.useColors(),e.color=function(t){var e,n=0;for(e in t)n=(n&lt;&lt;5)-n+t.charCodeAt(e),n|=0;return r.colors[Math.abs(n)%r.colors.length]}(t),&quot;function&quot;==typeof r.init&amp;&amp;r.init(e),e}(r=e.exports=i.debug=i.default=i).coerce=function(t){return t instanceof Error?t.stack||t.message:t},r.disable=function(){r.enable(&quot;&quot;)},r.enable=function(t){r.save(t),r.names=[],r.skips=[];for(var e=(&quot;string&quot;==typeof t?t:&quot;&quot;).split(/[\s,]+/),n=e.length,i=0;i&lt;n;i++)e[i]&amp;&amp;(&quot;-&quot;===(t=e[i].replace(/\*/g,&quot;.*?&quot;))[0]?r.skips.push(new RegExp(&quot;^&quot;+t.substr(1)+&quot;$&quot;)):r.names.push(new RegExp(&quot;^&quot;+t+&quot;$&quot;)))},r.enabled=function(t){var e,n;for(e=0,n=r.skips.length;e&lt;n;e++)if(r.skips[e].test(t))return!1;for(e=0,n=r.names.length;e&lt;n;e++)if(r.names[e].test(t))return!0;return!1},r.humanize=t(&quot;ms&quot;),r.names=[],r.skips=[],r.formatters={}},{ms:304}],304:[function(t,e,r){var n=1e3,i=6e4,a=60*i,o=24*a;function s(t,e,r){if(!(t&lt;e))return t&lt;1.5*e?Math.floor(t/e)+&quot; &quot;+r:Math.ceil(t/e)+&quot; &quot;+r+&quot;s&quot;}e.exports=function(t,e){e=e||{};var r,l=typeof t;if(&quot;string&quot;===l&amp;&amp;t.length&gt;0)return function(t){if((t=String(t)).length&gt;100)return;var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(!e)return;var r=parseFloat(e[1]);switch((e[2]||&quot;ms&quot;).toLowerCase()){case&quot;years&quot;:case&quot;year&quot;:case&quot;yrs&quot;:case&quot;yr&quot;:case&quot;y&quot;:return 315576e5*r;case&quot;days&quot;:case&quot;day&quot;:case&quot;d&quot;:return r*o;case&quot;hours&quot;:case&quot;hour&quot;:case&quot;hrs&quot;:case&quot;hr&quot;:case&quot;h&quot;:return r*a;case&quot;minutes&quot;:case&quot;minute&quot;:case&quot;mins&quot;:case&quot;min&quot;:case&quot;m&quot;:return r*i;case&quot;seconds&quot;:case&quot;second&quot;:case&quot;secs&quot;:case&quot;sec&quot;:case&quot;s&quot;:return r*n;case&quot;milliseconds&quot;:case&quot;millisecond&quot;:case&quot;msecs&quot;:case&quot;msec&quot;:case&quot;ms&quot;:return r;default:return}}(t);if(&quot;number&quot;===l&amp;&amp;!1===isNaN(t))return e.long?s(r=t,o,&quot;day&quot;)||s(r,a,&quot;hour&quot;)||s(r,i,&quot;minute&quot;)||s(r,n,&quot;second&quot;)||r+&quot; ms&quot;:function(t){if(t&gt;=o)return Math.round(t/o)+&quot;d&quot;;if(t&gt;=a)return Math.round(t/a)+&quot;h&quot;;if(t&gt;=i)return Math.round(t/i)+&quot;m&quot;;if(t&gt;=n)return Math.round(t/n)+&quot;s&quot;;return t+&quot;ms&quot;}(t);throw new Error(&quot;val is not a non-empty string or a valid number. val=&quot;+JSON.stringify(t))}},{}],305:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parenthesis&quot;);e.exports=function(t,e,r){if(null==t)throw Error(&quot;First argument should be a string&quot;);if(null==e)throw Error(&quot;Separator should be a string or a RegExp&quot;);r?(&quot;string&quot;==typeof r||Array.isArray(r))&amp;&amp;(r={ignore:r}):r={},null==r.escape&amp;&amp;(r.escape=!0),null==r.ignore?r.ignore=[&quot;[]&quot;,&quot;()&quot;,&quot;{}&quot;,&quot;&lt;&gt;&quot;,'&quot;&quot;',&quot;''&quot;,&quot;``&quot;,&quot;\u201c\u201d&quot;,&quot;\xab\xbb&quot;]:(&quot;string&quot;==typeof r.ignore&amp;&amp;(r.ignore=[r.ignore]),r.ignore=r.ignore.map((function(t){return 1===t.length&amp;&amp;(t+=t),t})));var i=n.parse(t,{flat:!0,brackets:r.ignore}),a=i[0].split(e);if(r.escape){for(var o=[],s=0;s&lt;a.length;s++){var l=a[s],c=a[s+1];&quot;\\&quot;===l[l.length-1]&amp;&amp;&quot;\\&quot;!==l[l.length-2]?(o.push(l+e+c),s++):o.push(l)}a=o}for(s=0;s&lt;a.length;s++)i[0]=a[s],a[s]=n.stringify(i,{flat:!0});return a}},{parenthesis:248}],306:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=new Array(e),n=new Array(e),i=new Array(e),a=new Array(e),o=new Array(e),s=new Array(e),l=0;l&lt;e;++l)r[l]=-1,n[l]=0,i[l]=!1,a[l]=0,o[l]=-1,s[l]=[];var c,u=0,f=[],h=[];function p(e){var l=[e],c=[e];for(r[e]=n[e]=u,i[e]=!0,u+=1;c.length&gt;0;){e=c[c.length-1];var p=t[e];if(a[e]&lt;p.length){for(var d=a[e];d&lt;p.length;++d){var m=p[d];if(r[m]&lt;0){r[m]=n[m]=u,i[m]=!0,u+=1,l.push(m),c.push(m);break}i[m]&amp;&amp;(n[e]=0|Math.min(n[e],n[m])),o[m]&gt;=0&amp;&amp;s[e].push(o[m])}a[e]=d}else{if(n[e]===r[e]){var g=[],v=[],y=0;for(d=l.length-1;d&gt;=0;--d){var x=l[d];if(i[x]=!1,g.push(x),v.push(s[x]),y+=s[x].length,o[x]=f.length,x===e){l.length=d;break}}f.push(g);var b=new Array(y);for(d=0;d&lt;v.length;d++)for(var _=0;_&lt;v[d].length;_++)b[--y]=v[d][_];h.push(b)}c.pop()}}}for(l=0;l&lt;e;++l)r[l]&lt;0&amp;&amp;p(l);for(l=0;l&lt;h.length;l++){var d=h[l];if(0!==d.length){d.sort((function(t,e){return t-e})),c=[d[0]];for(var m=1;m&lt;d.length;m++)d[m]!==d[m-1]&amp;&amp;c.push(d[m]);h[l]=c}}return{components:f,adjacencyList:h}}},{}],307:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&amp;&amp;(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{!n&amp;&amp;s.return&amp;&amp;s.return()}finally{if(i)throw a}}return r}(t,e);throw new TypeError(&quot;Invalid attempt to destructure non-iterable instance&quot;)},i=2*Math.PI,a=function(t,e,r,n,i,a,o){var s=t.x,l=t.y;return{x:n*(s*=e)-i*(l*=r)+a,y:i*s+n*l+o}},o=function(t,e){var r=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),n=Math.cos(t),i=Math.sin(t),a=Math.cos(t+e),o=Math.sin(t+e);return[{x:n-i*r,y:i+n*r},{x:a+o*r,y:o-a*r},{x:a,y:o}]},s=function(t,e,r,n){var i=t*r+e*n;return i&gt;1&amp;&amp;(i=1),i&lt;-1&amp;&amp;(i=-1),(t*n-e*r&lt;0?-1:1)*Math.acos(i)};r.default=function(t){var e=t.px,r=t.py,l=t.cx,c=t.cy,u=t.rx,f=t.ry,h=t.xAxisRotation,p=void 0===h?0:h,d=t.largeArcFlag,m=void 0===d?0:d,g=t.sweepFlag,v=void 0===g?0:g,y=[];if(0===u||0===f)return[];var x=Math.sin(p*i/360),b=Math.cos(p*i/360),_=b*(e-l)/2+x*(r-c)/2,w=-x*(e-l)/2+b*(r-c)/2;if(0===_&amp;&amp;0===w)return[];u=Math.abs(u),f=Math.abs(f);var T=Math.pow(_,2)/Math.pow(u,2)+Math.pow(w,2)/Math.pow(f,2);T&gt;1&amp;&amp;(u*=Math.sqrt(T),f*=Math.sqrt(T));var k=function(t,e,r,n,a,o,l,c,u,f,h,p){var d=Math.pow(a,2),m=Math.pow(o,2),g=Math.pow(h,2),v=Math.pow(p,2),y=d*m-d*v-m*g;y&lt;0&amp;&amp;(y=0),y/=d*v+m*g;var x=(y=Math.sqrt(y)*(l===c?-1:1))*a/o*p,b=y*-o/a*h,_=f*x-u*b+(t+r)/2,w=u*x+f*b+(e+n)/2,T=(h-x)/a,k=(p-b)/o,A=(-h-x)/a,M=(-p-b)/o,S=s(1,0,T,k),E=s(T,k,A,M);return 0===c&amp;&amp;E&gt;0&amp;&amp;(E-=i),1===c&amp;&amp;E&lt;0&amp;&amp;(E+=i),[_,w,S,E]}(e,r,l,c,u,f,m,v,x,b,_,w),A=n(k,4),M=A[0],S=A[1],E=A[2],L=A[3],C=Math.abs(L)/(i/4);Math.abs(1-C)&lt;1e-7&amp;&amp;(C=1);var P=Math.max(Math.ceil(C),1);L/=P;for(var I=0;I&lt;P;I++)y.push(o(E,L)),E+=L;return y.map((function(t){var e=a(t[0],u,f,b,x,M,S),r=e.x,n=e.y,i=a(t[1],u,f,b,x,M,S),o=i.x,s=i.y,l=a(t[2],u,f,b,x,M,S);return{x1:r,y1:n,x2:o,y2:s,x:l.x,y:l.y}}))},e.exports=r.default},{}],308:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-svg-path&quot;),i=t(&quot;abs-svg-path&quot;),a=t(&quot;normalize-svg-path&quot;),o=t(&quot;is-svg-path&quot;),s=t(&quot;assert&quot;);e.exports=function(t){Array.isArray(t)&amp;&amp;1===t.length&amp;&amp;&quot;string&quot;==typeof t[0]&amp;&amp;(t=t[0]);&quot;string&quot;==typeof t&amp;&amp;(s(o(t),&quot;String is not an SVG path.&quot;),t=n(t));if(s(Array.isArray(t),&quot;Argument should be a string or an array of path segments.&quot;),t=i(t),!(t=a(t)).length)return[0,0,0,0];for(var e=[1/0,1/0,-1/0,-1/0],r=0,l=t.length;r&lt;l;r++)for(var c=t[r].slice(1),u=0;u&lt;c.length;u+=2)c[u+0]&lt;e[0]&amp;&amp;(e[0]=c[u+0]),c[u+1]&lt;e[1]&amp;&amp;(e[1]=c[u+1]),c[u+0]&gt;e[2]&amp;&amp;(e[2]=c[u+0]),c[u+1]&gt;e[3]&amp;&amp;(e[3]=c[u+1]);return e}},{&quot;abs-svg-path&quot;:70,assert:75,&quot;is-svg-path&quot;:238,&quot;normalize-svg-path&quot;:309,&quot;parse-svg-path&quot;:250}],309:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e,r=[],o=0,s=0,l=0,c=0,u=null,f=null,h=0,p=0,d=0,m=t.length;d&lt;m;d++){var g=t[d],v=g[0];switch(v){case&quot;M&quot;:l=g[1],c=g[2];break;case&quot;A&quot;:var y=n({px:h,py:p,cx:g[6],cy:g[7],rx:g[1],ry:g[2],xAxisRotation:g[3],largeArcFlag:g[4],sweepFlag:g[5]});if(!y.length)continue;for(var x,b=0;b&lt;y.length;b++)x=y[b],g=[&quot;C&quot;,x.x1,x.y1,x.x2,x.y2,x.x,x.y],b&lt;y.length-1&amp;&amp;r.push(g);break;case&quot;S&quot;:var _=h,w=p;&quot;C&quot;!=e&amp;&amp;&quot;S&quot;!=e||(_+=_-o,w+=w-s),g=[&quot;C&quot;,_,w,g[1],g[2],g[3],g[4]];break;case&quot;T&quot;:&quot;Q&quot;==e||&quot;T&quot;==e?(u=2*h-u,f=2*p-f):(u=h,f=p),g=a(h,p,u,f,g[1],g[2]);break;case&quot;Q&quot;:u=g[1],f=g[2],g=a(h,p,g[1],g[2],g[3],g[4]);break;case&quot;L&quot;:g=i(h,p,g[1],g[2]);break;case&quot;H&quot;:g=i(h,p,g[1],p);break;case&quot;V&quot;:g=i(h,p,h,g[1]);break;case&quot;Z&quot;:g=i(h,p,l,c)}e=v,h=g[g.length-2],p=g[g.length-1],g.length&gt;4?(o=g[g.length-4],s=g[g.length-3]):(o=h,s=p),r.push(g)}return r};var n=t(&quot;svg-arc-to-cubic-bezier&quot;);function i(t,e,r,n){return[&quot;C&quot;,t,e,r,n,r,n]}function a(t,e,r,n,i,a){return[&quot;C&quot;,t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}},{&quot;svg-arc-to-cubic-bezier&quot;:307}],310:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;svg-path-bounds&quot;),a=t(&quot;parse-svg-path&quot;),o=t(&quot;draw-svg-path&quot;),s=t(&quot;is-svg-path&quot;),l=t(&quot;bitmap-sdf&quot;),c=document.createElement(&quot;canvas&quot;),u=c.getContext(&quot;2d&quot;);e.exports=function(t,e){if(!s(t))throw Error(&quot;Argument should be valid svg path string&quot;);e||(e={});var r,f;e.shape?(r=e.shape[0],f=e.shape[1]):(r=c.width=e.w||e.width||200,f=c.height=e.h||e.height||200);var h=Math.min(r,f),p=e.stroke||0,d=e.viewbox||e.viewBox||i(t),m=[r/(d[2]-d[0]),f/(d[3]-d[1])],g=Math.min(m[0]||0,m[1]||0)/2;u.fillStyle=&quot;black&quot;,u.fillRect(0,0,r,f),u.fillStyle=&quot;white&quot;,p&amp;&amp;(&quot;number&quot;!=typeof p&amp;&amp;(p=1),u.strokeStyle=p&gt;0?&quot;white&quot;:&quot;black&quot;,u.lineWidth=Math.abs(p));if(u.translate(.5*r,.5*f),u.scale(g,g),function(){if(null!=n)return n;var t=document.createElement(&quot;canvas&quot;).getContext(&quot;2d&quot;);if(t.canvas.width=t.canvas.height=1,!window.Path2D)return n=!1;var e=new Path2D(&quot;M0,0h1v1h-1v-1Z&quot;);t.fillStyle=&quot;black&quot;,t.fill(e);var r=t.getImageData(0,0,1,1);return n=r&amp;&amp;r.data&amp;&amp;255===r.data[3]}()){var v=new Path2D(t);u.fill(v),p&amp;&amp;u.stroke(v)}else{var y=a(t);o(u,y),u.fill(),p&amp;&amp;u.stroke()}return u.setTransform(1,0,0,1,0,0),l(u,{cutoff:null!=e.cutoff?e.cutoff:.5,radius:null!=e.radius?e.radius:.5*h})}},{&quot;bitmap-sdf&quot;:82,&quot;draw-svg-path&quot;:126,&quot;is-svg-path&quot;:238,&quot;parse-svg-path&quot;:250,&quot;svg-path-bounds&quot;:308}],311:[function(t,e,r){(function(e,n){(function(){var i=t(&quot;process/browser.js&quot;).nextTick,a=Function.prototype.apply,o=Array.prototype.slice,s={},l=0;function c(t,e){this._id=t,this._clearFn=e}r.setTimeout=function(){return new c(a.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new c(a.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(t){t.close()},c.prototype.unref=c.prototype.ref=function(){},c.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},r.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},r._unrefActive=r.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e&gt;=0&amp;&amp;(t._idleTimeoutId=setTimeout((function(){t._onTimeout&amp;&amp;t._onTimeout()}),e))},r.setImmediate=&quot;function&quot;==typeof e?e:function(t){var e=l++,n=!(arguments.length&lt;2)&amp;&amp;o.call(arguments,1);return s[e]=!0,i((function(){s[e]&amp;&amp;(n?t.apply(null,n):t.call(null),r.clearImmediate(e))})),e},r.clearImmediate=&quot;function&quot;==typeof n?n:function(t){delete s[t]}}).call(this)}).call(this,t(&quot;timers&quot;).setImmediate,t(&quot;timers&quot;).clearImmediate)},{&quot;process/browser.js&quot;:277,timers:311}],312:[function(t,e,r){!function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,s=t.max,l=t.random;function c(e,l){if(l=l||{},(e=e||&quot;&quot;)instanceof c)return e;if(!(this instanceof c))return new c(e,l);var u=function(e){var i={r:0,g:0,b:0},a=1,l=null,c=null,u=null,f=!1,h=!1;&quot;string&quot;==typeof e&amp;&amp;(e=function(t){t=t.replace(r,&quot;&quot;).replace(n,&quot;&quot;).toLowerCase();var e,i=!1;if(S[t])t=S[t],i=!0;else if(&quot;transparent&quot;==t)return{r:0,g:0,b:0,a:0,format:&quot;name&quot;};if(e=j.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=j.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=j.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=j.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=j.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=j.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=j.hex8.exec(t))return{r:I(e[1]),g:I(e[2]),b:I(e[3]),a:R(e[4]),format:i?&quot;name&quot;:&quot;hex8&quot;};if(e=j.hex6.exec(t))return{r:I(e[1]),g:I(e[2]),b:I(e[3]),format:i?&quot;name&quot;:&quot;hex&quot;};if(e=j.hex4.exec(t))return{r:I(e[1]+&quot;&quot;+e[1]),g:I(e[2]+&quot;&quot;+e[2]),b:I(e[3]+&quot;&quot;+e[3]),a:R(e[4]+&quot;&quot;+e[4]),format:i?&quot;name&quot;:&quot;hex8&quot;};if(e=j.hex3.exec(t))return{r:I(e[1]+&quot;&quot;+e[1]),g:I(e[2]+&quot;&quot;+e[2]),b:I(e[3]+&quot;&quot;+e[3]),format:i?&quot;name&quot;:&quot;hex&quot;};return!1}(e));&quot;object&quot;==typeof e&amp;&amp;(U(e.r)&amp;&amp;U(e.g)&amp;&amp;U(e.b)?(p=e.r,d=e.g,m=e.b,i={r:255*C(p,255),g:255*C(d,255),b:255*C(m,255)},f=!0,h=&quot;%&quot;===String(e.r).substr(-1)?&quot;prgb&quot;:&quot;rgb&quot;):U(e.h)&amp;&amp;U(e.s)&amp;&amp;U(e.v)?(l=z(e.s),c=z(e.v),i=function(e,r,n){e=6*C(e,360),r=C(r,100),n=C(n,100);var i=t.floor(e),a=e-i,o=n*(1-r),s=n*(1-a*r),l=n*(1-(1-a)*r),c=i%6;return{r:255*[n,s,o,o,l,n][c],g:255*[l,n,n,s,o,o][c],b:255*[o,o,l,n,n,s][c]}}(e.h,l,c),f=!0,h=&quot;hsv&quot;):U(e.h)&amp;&amp;U(e.s)&amp;&amp;U(e.l)&amp;&amp;(l=z(e.s),u=z(e.l),i=function(t,e,r){var n,i,a;function o(t,e,r){return r&lt;0&amp;&amp;(r+=1),r&gt;1&amp;&amp;(r-=1),r&lt;1/6?t+6*(e-t)*r:r&lt;.5?e:r&lt;2/3?t+(e-t)*(2/3-r)*6:t}if(t=C(t,360),e=C(e,100),r=C(r,100),0===e)n=i=a=r;else{var s=r&lt;.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),i=o(l,s,t),a=o(l,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(e.h,l,u),f=!0,h=&quot;hsl&quot;),e.hasOwnProperty(&quot;a&quot;)&amp;&amp;(a=e.a));var p,d,m;return a=L(a),{ok:f,format:e.format||h,r:o(255,s(i.r,0)),g:o(255,s(i.g,0)),b:o(255,s(i.b,0)),a:a}}(e);this._originalInput=e,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=a(100*this._a)/100,this._format=l.format||u.format,this._gradientType=l.gradientType,this._r&lt;1&amp;&amp;(this._r=a(this._r)),this._g&lt;1&amp;&amp;(this._g=a(this._g)),this._b&lt;1&amp;&amp;(this._b=a(this._b)),this._ok=u.ok,this._tc_id=i++}function u(t,e,r){t=C(t,255),e=C(e,255),r=C(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=(a+l)/2;if(a==l)n=i=0;else{var u=a-l;switch(i=c&gt;.5?u/(2-a-l):u/(a+l),a){case t:n=(e-r)/u+(e&lt;r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:c}}function f(t,e,r){t=C(t,255),e=C(e,255),r=C(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=a,u=a-l;if(i=0===a?0:u/a,a==l)n=0;else{switch(a){case t:n=(e-r)/u+(e&lt;r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:c}}function h(t,e,r,n){var i=[O(a(t).toString(16)),O(a(e).toString(16)),O(a(r).toString(16))];return n&amp;&amp;i[0].charAt(0)==i[0].charAt(1)&amp;&amp;i[1].charAt(0)==i[1].charAt(1)&amp;&amp;i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(&quot;&quot;)}function p(t,e,r,n){return[O(D(n)),O(a(t).toString(16)),O(a(e).toString(16)),O(a(r).toString(16))].join(&quot;&quot;)}function d(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s-=e/100,r.s=P(r.s),c(r)}function m(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s+=e/100,r.s=P(r.s),c(r)}function g(t){return c(t).desaturate(100)}function v(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l+=e/100,r.l=P(r.l),c(r)}function y(t,e){e=0===e?0:e||10;var r=c(t).toRgb();return r.r=s(0,o(255,r.r-a(-e/100*255))),r.g=s(0,o(255,r.g-a(-e/100*255))),r.b=s(0,o(255,r.b-a(-e/100*255))),c(r)}function x(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l-=e/100,r.l=P(r.l),c(r)}function b(t,e){var r=c(t).toHsl(),n=(r.h+e)%360;return r.h=n&lt;0?360+n:n,c(r)}function _(t){var e=c(t).toHsl();return e.h=(e.h+180)%360,c(e)}function w(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+120)%360,s:e.s,l:e.l}),c({h:(r+240)%360,s:e.s,l:e.l})]}function T(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+90)%360,s:e.s,l:e.l}),c({h:(r+180)%360,s:e.s,l:e.l}),c({h:(r+270)%360,s:e.s,l:e.l})]}function k(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+72)%360,s:e.s,l:e.l}),c({h:(r+216)%360,s:e.s,l:e.l})]}function A(t,e,r){e=e||6,r=r||30;var n=c(t).toHsl(),i=360/r,a=[c(t)];for(n.h=(n.h-(i*e&gt;&gt;1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(c(n));return a}function M(t,e){e=e||6;for(var r=c(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(c({h:n,s:i,v:a})),a=(a+s)%1;return o}c.prototype={isDark:function(){return this.getBrightness()&lt;128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var e,r,n,i=this.toRgb();return e=i.r/255,r=i.g/255,n=i.b/255,.2126*(e&lt;=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(r&lt;=.03928?r/12.92:t.pow((r+.055)/1.055,2.4))+.0722*(n&lt;=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=L(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=f(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.v);return 1==this._a?&quot;hsv(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%)&quot;:&quot;hsva(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%, &quot;+this._roundA+&quot;)&quot;},toHsl:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=u(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.l);return 1==this._a?&quot;hsl(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%)&quot;:&quot;hsla(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%, &quot;+this._roundA+&quot;)&quot;},toHex:function(t){return h(this._r,this._g,this._b,t)},toHexString:function(t){return&quot;#&quot;+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[O(a(t).toString(16)),O(a(e).toString(16)),O(a(r).toString(16)),O(D(n))];if(i&amp;&amp;o[0].charAt(0)==o[0].charAt(1)&amp;&amp;o[1].charAt(0)==o[1].charAt(1)&amp;&amp;o[2].charAt(0)==o[2].charAt(1)&amp;&amp;o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join(&quot;&quot;)}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return&quot;#&quot;+this.toHex8(t)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?&quot;rgb(&quot;+a(this._r)+&quot;, &quot;+a(this._g)+&quot;, &quot;+a(this._b)+&quot;)&quot;:&quot;rgba(&quot;+a(this._r)+&quot;, &quot;+a(this._g)+&quot;, &quot;+a(this._b)+&quot;, &quot;+this._roundA+&quot;)&quot;},toPercentageRgb:function(){return{r:a(100*C(this._r,255))+&quot;%&quot;,g:a(100*C(this._g,255))+&quot;%&quot;,b:a(100*C(this._b,255))+&quot;%&quot;,a:this._a}},toPercentageRgbString:function(){return 1==this._a?&quot;rgb(&quot;+a(100*C(this._r,255))+&quot;%, &quot;+a(100*C(this._g,255))+&quot;%, &quot;+a(100*C(this._b,255))+&quot;%)&quot;:&quot;rgba(&quot;+a(100*C(this._r,255))+&quot;%, &quot;+a(100*C(this._g,255))+&quot;%, &quot;+a(100*C(this._b,255))+&quot;%, &quot;+this._roundA+&quot;)&quot;},toName:function(){return 0===this._a?&quot;transparent&quot;:!(this._a&lt;1)&amp;&amp;(E[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e=&quot;#&quot;+p(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?&quot;GradientType = 1, &quot;:&quot;&quot;;if(t){var i=c(t);r=&quot;#&quot;+p(i._r,i._g,i._b,i._a)}return&quot;progid:DXImageTransform.Microsoft.gradient(&quot;+n+&quot;startColorstr=&quot;+e+&quot;,endColorstr=&quot;+r+&quot;)&quot;},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a&lt;1&amp;&amp;this._a&gt;=0;return e||!n||&quot;hex&quot;!==t&amp;&amp;&quot;hex6&quot;!==t&amp;&amp;&quot;hex3&quot;!==t&amp;&amp;&quot;hex4&quot;!==t&amp;&amp;&quot;hex8&quot;!==t&amp;&amp;&quot;name&quot;!==t?(&quot;rgb&quot;===t&amp;&amp;(r=this.toRgbString()),&quot;prgb&quot;===t&amp;&amp;(r=this.toPercentageRgbString()),&quot;hex&quot;!==t&amp;&amp;&quot;hex6&quot;!==t||(r=this.toHexString()),&quot;hex3&quot;===t&amp;&amp;(r=this.toHexString(!0)),&quot;hex4&quot;===t&amp;&amp;(r=this.toHex8String(!0)),&quot;hex8&quot;===t&amp;&amp;(r=this.toHex8String()),&quot;name&quot;===t&amp;&amp;(r=this.toName()),&quot;hsl&quot;===t&amp;&amp;(r=this.toHslString()),&quot;hsv&quot;===t&amp;&amp;(r=this.toHsvString()),r||this.toHexString()):&quot;name&quot;===t&amp;&amp;0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(A,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(M,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},c.fromRatio=function(t,e){if(&quot;object&quot;==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&amp;&amp;(r[n]=&quot;a&quot;===n?t[n]:z(t[n]));t=r}return c(t,e)},c.equals=function(t,e){return!(!t||!e)&amp;&amp;c(t).toRgbString()==c(e).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})},c.mix=function(t,e,r){r=0===r?0:r||50;var n=c(t).toRgb(),i=c(e).toRgb(),a=r/100;return c({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},c.readability=function(e,r){var n=c(e),i=c(r);return(t.max(n.getLuminance(),i.getLuminance())+.05)/(t.min(n.getLuminance(),i.getLuminance())+.05)},c.isReadable=function(t,e,r){var n,i,a=c.readability(t,e);switch(i=!1,(n=function(t){var e,r;e=((t=t||{level:&quot;AA&quot;,size:&quot;small&quot;}).level||&quot;AA&quot;).toUpperCase(),r=(t.size||&quot;small&quot;).toLowerCase(),&quot;AA&quot;!==e&amp;&amp;&quot;AAA&quot;!==e&amp;&amp;(e=&quot;AA&quot;);&quot;small&quot;!==r&amp;&amp;&quot;large&quot;!==r&amp;&amp;(r=&quot;small&quot;);return{level:e,size:r}}(r)).level+n.size){case&quot;AAsmall&quot;:case&quot;AAAlarge&quot;:i=a&gt;=4.5;break;case&quot;AAlarge&quot;:i=a&gt;=3;break;case&quot;AAAsmall&quot;:i=a&gt;=7}return i},c.mostReadable=function(t,e,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var u=0;u&lt;e.length;u++)(n=c.readability(t,e[u]))&gt;l&amp;&amp;(l=n,s=c(e[u]));return c.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,c.mostReadable(t,[&quot;#fff&quot;,&quot;#000&quot;],r))};var S=c.names={aliceblue:&quot;f0f8ff&quot;,antiquewhite:&quot;faebd7&quot;,aqua:&quot;0ff&quot;,aquamarine:&quot;7fffd4&quot;,azure:&quot;f0ffff&quot;,beige:&quot;f5f5dc&quot;,bisque:&quot;ffe4c4&quot;,black:&quot;000&quot;,blanchedalmond:&quot;ffebcd&quot;,blue:&quot;00f&quot;,blueviolet:&quot;8a2be2&quot;,brown:&quot;a52a2a&quot;,burlywood:&quot;deb887&quot;,burntsienna:&quot;ea7e5d&quot;,cadetblue:&quot;5f9ea0&quot;,chartreuse:&quot;7fff00&quot;,chocolate:&quot;d2691e&quot;,coral:&quot;ff7f50&quot;,cornflowerblue:&quot;6495ed&quot;,cornsilk:&quot;fff8dc&quot;,crimson:&quot;dc143c&quot;,cyan:&quot;0ff&quot;,darkblue:&quot;00008b&quot;,darkcyan:&quot;008b8b&quot;,darkgoldenrod:&quot;b8860b&quot;,darkgray:&quot;a9a9a9&quot;,darkgreen:&quot;006400&quot;,darkgrey:&quot;a9a9a9&quot;,darkkhaki:&quot;bdb76b&quot;,darkmagenta:&quot;8b008b&quot;,darkolivegreen:&quot;556b2f&quot;,darkorange:&quot;ff8c00&quot;,darkorchid:&quot;9932cc&quot;,darkred:&quot;8b0000&quot;,darksalmon:&quot;e9967a&quot;,darkseagreen:&quot;8fbc8f&quot;,darkslateblue:&quot;483d8b&quot;,darkslategray:&quot;2f4f4f&quot;,darkslategrey:&quot;2f4f4f&quot;,darkturquoise:&quot;00ced1&quot;,darkviolet:&quot;9400d3&quot;,deeppink:&quot;ff1493&quot;,deepskyblue:&quot;00bfff&quot;,dimgray:&quot;696969&quot;,dimgrey:&quot;696969&quot;,dodgerblue:&quot;1e90ff&quot;,firebrick:&quot;b22222&quot;,floralwhite:&quot;fffaf0&quot;,forestgreen:&quot;228b22&quot;,fuchsia:&quot;f0f&quot;,gainsboro:&quot;dcdcdc&quot;,ghostwhite:&quot;f8f8ff&quot;,gold:&quot;ffd700&quot;,goldenrod:&quot;daa520&quot;,gray:&quot;808080&quot;,green:&quot;008000&quot;,greenyellow:&quot;adff2f&quot;,grey:&quot;808080&quot;,honeydew:&quot;f0fff0&quot;,hotpink:&quot;ff69b4&quot;,indianred:&quot;cd5c5c&quot;,indigo:&quot;4b0082&quot;,ivory:&quot;fffff0&quot;,khaki:&quot;f0e68c&quot;,lavender:&quot;e6e6fa&quot;,lavenderblush:&quot;fff0f5&quot;,lawngreen:&quot;7cfc00&quot;,lemonchiffon:&quot;fffacd&quot;,lightblue:&quot;add8e6&quot;,lightcoral:&quot;f08080&quot;,lightcyan:&quot;e0ffff&quot;,lightgoldenrodyellow:&quot;fafad2&quot;,lightgray:&quot;d3d3d3&quot;,lightgreen:&quot;90ee90&quot;,lightgrey:&quot;d3d3d3&quot;,lightpink:&quot;ffb6c1&quot;,lightsalmon:&quot;ffa07a&quot;,lightseagreen:&quot;20b2aa&quot;,lightskyblue:&quot;87cefa&quot;,lightslategray:&quot;789&quot;,lightslategrey:&quot;789&quot;,lightsteelblue:&quot;b0c4de&quot;,lightyellow:&quot;ffffe0&quot;,lime:&quot;0f0&quot;,limegreen:&quot;32cd32&quot;,linen:&quot;faf0e6&quot;,magenta:&quot;f0f&quot;,maroon:&quot;800000&quot;,mediumaquamarine:&quot;66cdaa&quot;,mediumblue:&quot;0000cd&quot;,mediumorchid:&quot;ba55d3&quot;,mediumpurple:&quot;9370db&quot;,mediumseagreen:&quot;3cb371&quot;,mediumslateblue:&quot;7b68ee&quot;,mediumspringgreen:&quot;00fa9a&quot;,mediumturquoise:&quot;48d1cc&quot;,mediumvioletred:&quot;c71585&quot;,midnightblue:&quot;191970&quot;,mintcream:&quot;f5fffa&quot;,mistyrose:&quot;ffe4e1&quot;,moccasin:&quot;ffe4b5&quot;,navajowhite:&quot;ffdead&quot;,navy:&quot;000080&quot;,oldlace:&quot;fdf5e6&quot;,olive:&quot;808000&quot;,olivedrab:&quot;6b8e23&quot;,orange:&quot;ffa500&quot;,orangered:&quot;ff4500&quot;,orchid:&quot;da70d6&quot;,palegoldenrod:&quot;eee8aa&quot;,palegreen:&quot;98fb98&quot;,paleturquoise:&quot;afeeee&quot;,palevioletred:&quot;db7093&quot;,papayawhip:&quot;ffefd5&quot;,peachpuff:&quot;ffdab9&quot;,peru:&quot;cd853f&quot;,pink:&quot;ffc0cb&quot;,plum:&quot;dda0dd&quot;,powderblue:&quot;b0e0e6&quot;,purple:&quot;800080&quot;,rebeccapurple:&quot;663399&quot;,red:&quot;f00&quot;,rosybrown:&quot;bc8f8f&quot;,royalblue:&quot;4169e1&quot;,saddlebrown:&quot;8b4513&quot;,salmon:&quot;fa8072&quot;,sandybrown:&quot;f4a460&quot;,seagreen:&quot;2e8b57&quot;,seashell:&quot;fff5ee&quot;,sienna:&quot;a0522d&quot;,silver:&quot;c0c0c0&quot;,skyblue:&quot;87ceeb&quot;,slateblue:&quot;6a5acd&quot;,slategray:&quot;708090&quot;,slategrey:&quot;708090&quot;,snow:&quot;fffafa&quot;,springgreen:&quot;00ff7f&quot;,steelblue:&quot;4682b4&quot;,tan:&quot;d2b48c&quot;,teal:&quot;008080&quot;,thistle:&quot;d8bfd8&quot;,tomato:&quot;ff6347&quot;,turquoise:&quot;40e0d0&quot;,violet:&quot;ee82ee&quot;,wheat:&quot;f5deb3&quot;,white:&quot;fff&quot;,whitesmoke:&quot;f5f5f5&quot;,yellow:&quot;ff0&quot;,yellowgreen:&quot;9acd32&quot;},E=c.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&amp;&amp;(e[t[r]]=r);return e}(S);function L(t){return t=parseFloat(t),(isNaN(t)||t&lt;0||t&gt;1)&amp;&amp;(t=1),t}function C(e,r){(function(t){return&quot;string&quot;==typeof t&amp;&amp;-1!=t.indexOf(&quot;.&quot;)&amp;&amp;1===parseFloat(t)})(e)&amp;&amp;(e=&quot;100%&quot;);var n=function(t){return&quot;string&quot;==typeof t&amp;&amp;-1!=t.indexOf(&quot;%&quot;)}(e);return e=o(r,s(0,parseFloat(e))),n&amp;&amp;(e=parseInt(e*r,10)/100),t.abs(e-r)&lt;1e-6?1:e%r/parseFloat(r)}function P(t){return o(1,s(0,t))}function I(t){return parseInt(t,16)}function O(t){return 1==t.length?&quot;0&quot;+t:&quot;&quot;+t}function z(t){return t&lt;=1&amp;&amp;(t=100*t+&quot;%&quot;),t}function D(e){return t.round(255*parseFloat(e)).toString(16)}function R(t){return I(t)/255}var F,B,N,j=(B=&quot;[\\s|\\(]+(&quot;+(F=&quot;(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)&quot;)+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)\\s*\\)?&quot;,N=&quot;[\\s|\\(]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)\\s*\\)?&quot;,{CSS_UNIT:new RegExp(F),rgb:new RegExp(&quot;rgb&quot;+B),rgba:new RegExp(&quot;rgba&quot;+N),hsl:new RegExp(&quot;hsl&quot;+B),hsla:new RegExp(&quot;hsla&quot;+N),hsv:new RegExp(&quot;hsv&quot;+B),hsva:new RegExp(&quot;hsva&quot;+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(t){return!!j.CSS_UNIT.exec(t)}void 0!==e&amp;&amp;e.exports?e.exports=c:window.tinycolor=c}(Math)},{}],313:[function(t,e,r){&quot;use strict&quot;;e.exports=i,e.exports.float32=e.exports.float=i,e.exports.fract32=e.exports.fract=function(t,e){if(t.length){if(t instanceof Float32Array)return new Float32Array(t.length);e instanceof Float32Array||(e=i(t));for(var r=0,n=e.length;r&lt;n;r++)e[r]=t[r]-e[r];return e}return i(t-i(t))};var n=new Float32Array(1);function i(t){return t.length?t instanceof Float32Array?t:new Float32Array(t):(n[0]=t,n[0])}},{}],314:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-unit&quot;);e.exports=a;function i(t,e){var r=n(getComputedStyle(t).getPropertyValue(e));return r[0]*a(r[1],t)}function a(t,e){switch(e=e||document.body,t=(t||&quot;px&quot;).trim().toLowerCase(),e!==window&amp;&amp;e!==document||(e=document.body),t){case&quot;%&quot;:return e.clientHeight/100;case&quot;ch&quot;:case&quot;ex&quot;:return function(t,e){var r=document.createElement(&quot;div&quot;);r.style[&quot;font-size&quot;]=&quot;128&quot;+t,e.appendChild(r);var n=i(r,&quot;font-size&quot;)/128;return e.removeChild(r),n}(t,e);case&quot;em&quot;:return i(e,&quot;font-size&quot;);case&quot;rem&quot;:return i(document.body,&quot;font-size&quot;);case&quot;vw&quot;:return window.innerWidth/100;case&quot;vh&quot;:return window.innerHeight/100;case&quot;vmin&quot;:return Math.min(window.innerWidth,window.innerHeight)/100;case&quot;vmax&quot;:return Math.max(window.innerWidth,window.innerHeight)/100;case&quot;in&quot;:return 96;case&quot;cm&quot;:return 96/2.54;case&quot;mm&quot;:return 96/25.4;case&quot;pt&quot;:return 96/72;case&quot;pc&quot;:return 16}return 1}},{&quot;parse-unit&quot;:251}],315:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?n(r):n((t=t||self).topojson=t.topojson||{})}(this,(function(t){&quot;use strict&quot;;function e(t){return t}function r(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c);for(u[0]=(r+=t[0])*i+o,u[1]=(n+=t[1])*a+s;l&lt;c;)u[l]=t[l],++l;return u}}function n(t){var e,n=r(t.transform),i=1/0,a=i,o=-i,s=-i;function l(t){(t=n(t))[0]&lt;i&amp;&amp;(i=t[0]),t[0]&gt;o&amp;&amp;(o=t[0]),t[1]&lt;a&amp;&amp;(a=t[1]),t[1]&gt;s&amp;&amp;(s=t[1])}function c(t){switch(t.type){case&quot;GeometryCollection&quot;:t.geometries.forEach(c);break;case&quot;Point&quot;:l(t.coordinates);break;case&quot;MultiPoint&quot;:t.coordinates.forEach(l)}}for(e in t.arcs.forEach((function(t){for(var e,r=-1,l=t.length;++r&lt;l;)(e=n(t[r],r))[0]&lt;i&amp;&amp;(i=e[0]),e[0]&gt;o&amp;&amp;(o=e[0]),e[1]&lt;a&amp;&amp;(a=e[1]),e[1]&gt;s&amp;&amp;(s=e[1])})),t.objects)c(t.objects[e]);return[i,a,o,s]}function i(t,e){var r=e.id,n=e.bbox,i=null==e.properties?{}:e.properties,o=a(t,e);return null==r&amp;&amp;null==n?{type:&quot;Feature&quot;,properties:i,geometry:o}:null==n?{type:&quot;Feature&quot;,id:r,properties:i,geometry:o}:{type:&quot;Feature&quot;,id:r,bbox:n,properties:i,geometry:o}}function a(t,e){var n=r(t.transform),i=t.arcs;function a(t,e){e.length&amp;&amp;e.pop();for(var r=i[t&lt;0?~t:t],a=0,o=r.length;a&lt;o;++a)e.push(n(r[a],a));t&lt;0&amp;&amp;function(t,e){for(var r,n=t.length,i=n-e;i&lt;--n;)r=t[i],t[i++]=t[n],t[n]=r}(e,o)}function o(t){return n(t)}function s(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)a(t[r],e);return e.length&lt;2&amp;&amp;e.push(e[0]),e}function l(t){for(var e=s(t);e.length&lt;4;)e.push(e[0]);return e}function c(t){return t.map(l)}return function t(e){var r,n=e.type;switch(n){case&quot;GeometryCollection&quot;:return{type:n,geometries:e.geometries.map(t)};case&quot;Point&quot;:r=o(e.coordinates);break;case&quot;MultiPoint&quot;:r=e.coordinates.map(o);break;case&quot;LineString&quot;:r=s(e.arcs);break;case&quot;MultiLineString&quot;:r=e.arcs.map(s);break;case&quot;Polygon&quot;:r=c(e.arcs);break;case&quot;MultiPolygon&quot;:r=e.arcs.map(c);break;default:return null}return{type:n,coordinates:r}}(e)}function o(t,e){var r={},n={},i={},a=[],o=-1;function s(t,e){for(var n in t){var i=t[n];delete e[i.start],delete i.start,delete i.end,i.forEach((function(t){r[t&lt;0?~t:t]=1})),a.push(i)}}return e.forEach((function(r,n){var i,a=t.arcs[r&lt;0?~r:r];a.length&lt;3&amp;&amp;!a[1][0]&amp;&amp;!a[1][1]&amp;&amp;(i=e[++o],e[o]=r,e[n]=i)})),e.forEach((function(e){var r,a,o=function(e){var r,n=t.arcs[e&lt;0?~e:e],i=n[0];t.transform?(r=[0,0],n.forEach((function(t){r[0]+=t[0],r[1]+=t[1]}))):r=n[n.length-1];return e&lt;0?[r,i]:[i,r]}(e),s=o[0],l=o[1];if(r=i[s])if(delete i[r.end],r.push(e),r.end=l,a=n[l]){delete n[a.start];var c=a===r?r:r.concat(a);n[c.start=r.start]=i[c.end=a.end]=c}else n[r.start]=i[r.end]=r;else if(r=n[l])if(delete n[r.start],r.unshift(e),r.start=s,a=i[s]){delete i[a.end];var u=a===r?r:a.concat(r);n[u.start=a.start]=i[u.end=r.end]=u}else n[r.start]=i[r.end]=r;else n[(r=[e]).start=s]=i[r.end=l]=r})),s(i,n),s(n,i),e.forEach((function(t){r[t&lt;0?~t:t]||a.push([t])})),a}function s(t,e,r){var n,i,a;if(arguments.length&gt;1)n=l(t,e,r);else for(i=0,n=new Array(a=t.arcs.length);i&lt;a;++i)n[i]=i;return{type:&quot;MultiLineString&quot;,arcs:o(t,n)}}function l(t,e,r){var n,i=[],a=[];function o(t){var e=t&lt;0?~t:t;(a[e]||(a[e]=[])).push({i:t,g:n})}function s(t){t.forEach(o)}function l(t){t.forEach(s)}return function t(e){switch(n=e,e.type){case&quot;GeometryCollection&quot;:e.geometries.forEach(t);break;case&quot;LineString&quot;:s(e.arcs);break;case&quot;MultiLineString&quot;:case&quot;Polygon&quot;:l(e.arcs);break;case&quot;MultiPolygon&quot;:!function(t){t.forEach(l)}(e.arcs)}}(e),a.forEach(null==r?function(t){i.push(t[0].i)}:function(t){r(t[0].g,t[t.length-1].g)&amp;&amp;i.push(t[0].i)}),i}function c(t,e){var r={},n=[],i=[];function s(t){t.forEach((function(e){e.forEach((function(e){(r[e=e&lt;0?~e:e]||(r[e]=[])).push(t)}))})),n.push(t)}function l(e){return function(t){for(var e,r=-1,n=t.length,i=t[n-1],a=0;++r&lt;n;)e=i,i=t[r],a+=e[0]*i[1]-e[1]*i[0];return Math.abs(a)}(a(t,{type:&quot;Polygon&quot;,arcs:[e]}).coordinates[0])}return e.forEach((function t(e){switch(e.type){case&quot;GeometryCollection&quot;:e.geometries.forEach(t);break;case&quot;Polygon&quot;:s(e.arcs);break;case&quot;MultiPolygon&quot;:e.arcs.forEach(s)}})),n.forEach((function(t){if(!t._){var e=[],n=[t];for(t._=1,i.push(e);t=n.pop();)e.push(t),t.forEach((function(t){t.forEach((function(t){r[t&lt;0?~t:t].forEach((function(t){t._||(t._=1,n.push(t))}))}))}))}})),n.forEach((function(t){delete t._})),{type:&quot;MultiPolygon&quot;,arcs:i.map((function(e){var n,i=[];if(e.forEach((function(t){t.forEach((function(t){t.forEach((function(t){r[t&lt;0?~t:t].length&lt;2&amp;&amp;i.push(t)}))}))})),(n=(i=o(t,i)).length)&gt;1)for(var a,s,c=1,u=l(i[0]);c&lt;n;++c)(a=l(i[c]))&gt;u&amp;&amp;(s=i[0],i[0]=i[c],i[c]=s,u=a);return i})).filter((function(t){return t.length&gt;0}))}}function u(t,e){for(var r=0,n=t.length;r&lt;n;){var i=r+n&gt;&gt;&gt;1;t[i]&lt;e?r=i+1:n=i}return r}function f(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c),f=Math.round((t[0]-o)/i),h=Math.round((t[1]-s)/a);for(u[0]=f-r,r=f,u[1]=h-n,n=h;l&lt;c;)u[l]=t[l],++l;return u}}t.bbox=n,t.feature=function(t,e){return&quot;string&quot;==typeof e&amp;&amp;(e=t.objects[e]),&quot;GeometryCollection&quot;===e.type?{type:&quot;FeatureCollection&quot;,features:e.geometries.map((function(e){return i(t,e)}))}:i(t,e)},t.merge=function(t){return a(t,c.apply(this,arguments))},t.mergeArcs=c,t.mesh=function(t){return a(t,s.apply(this,arguments))},t.meshArcs=s,t.neighbors=function(t){var e={},r=t.map((function(){return[]}));function n(t,r){t.forEach((function(t){t&lt;0&amp;&amp;(t=~t);var n=e[t];n?n.push(r):e[t]=[r]}))}function i(t,e){t.forEach((function(t){n(t,e)}))}var a={LineString:n,MultiLineString:i,Polygon:i,MultiPolygon:function(t,e){t.forEach((function(t){i(t,e)}))}};for(var o in t.forEach((function t(e,r){&quot;GeometryCollection&quot;===e.type?e.geometries.forEach((function(e){t(e,r)})):e.type in a&amp;&amp;a[e.type](e.arcs,r)})),e)for(var s=e[o],l=s.length,c=0;c&lt;l;++c)for(var f=c+1;f&lt;l;++f){var h,p=s[c],d=s[f];(h=r[p])[o=u(h,d)]!==d&amp;&amp;h.splice(o,0,d),(h=r[d])[o=u(h,p)]!==p&amp;&amp;h.splice(o,0,p)}return r},t.quantize=function(t,e){if(t.transform)throw new Error(&quot;already quantized&quot;);if(e&amp;&amp;e.scale)l=t.bbox;else{if(!((r=Math.floor(e))&gt;=2))throw new Error(&quot;n must be \u22652&quot;);var r,i=(l=t.bbox||n(t))[0],a=l[1],o=l[2],s=l[3];e={scale:[o-i?(o-i)/(r-1):1,s-a?(s-a)/(r-1):1],translate:[i,a]}}var l,c,u=f(e),h=t.objects,p={};function d(t){return u(t)}function m(t){var e;switch(t.type){case&quot;GeometryCollection&quot;:e={type:&quot;GeometryCollection&quot;,geometries:t.geometries.map(m)};break;case&quot;Point&quot;:e={type:&quot;Point&quot;,coordinates:d(t.coordinates)};break;case&quot;MultiPoint&quot;:e={type:&quot;MultiPoint&quot;,coordinates:t.coordinates.map(d)};break;default:return t}return null!=t.id&amp;&amp;(e.id=t.id),null!=t.bbox&amp;&amp;(e.bbox=t.bbox),null!=t.properties&amp;&amp;(e.properties=t.properties),e}for(c in h)p[c]=m(h[c]);return{type:&quot;Topology&quot;,bbox:l,transform:e,objects:p,arcs:t.arcs.map((function(t){var e,r=0,n=1,i=t.length,a=new Array(i);for(a[0]=u(t[0],0);++r&lt;i;)((e=u(t[r],r))[0]||e[1])&amp;&amp;(a[n++]=e);return 1===n&amp;&amp;(a[n++]=[0,0]),a.length=n,a}))}},t.transform=r,t.untransform=f,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],316:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../prototype/is&quot;);e.exports=function(t){if(&quot;function&quot;!=typeof t)return!1;if(!hasOwnProperty.call(t,&quot;length&quot;))return!1;try{if(&quot;number&quot;!=typeof t.length)return!1;if(&quot;function&quot;!=typeof t.call)return!1;if(&quot;function&quot;!=typeof t.apply)return!1}catch(t){return!1}return!n(t)}},{&quot;../prototype/is&quot;:323}],317:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i=t(&quot;../object/is&quot;),a=t(&quot;../string/coerce&quot;),o=t(&quot;./to-short-string&quot;),s=function(t,e){return t.replace(&quot;%v&quot;,o(e))};e.exports=function(t,e,r){if(!i(r))throw new TypeError(s(e,t));if(!n(t)){if(&quot;default&quot;in r)return r.default;if(r.isOptional)return null}var o=a(r.errorMessage);throw n(o)||(o=e),new TypeError(s(o,t))}},{&quot;../object/is&quot;:320,&quot;../string/coerce&quot;:324,&quot;../value/is&quot;:326,&quot;./to-short-string&quot;:319}],318:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){try{return t.toString()}catch(e){try{return String(t)}catch(t){return null}}}},{}],319:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./safe-to-string&quot;),i=/[\n\r\u2028\u2029]/g;e.exports=function(t){var e=n(t);return null===e?&quot;&lt;Non-coercible to string value&gt;&quot;:(e.length&gt;100&amp;&amp;(e=e.slice(0,99)+&quot;\u2026&quot;),e=e.replace(i,(function(t){switch(t){case&quot;\n&quot;:return&quot;\\n&quot;;case&quot;\r&quot;:return&quot;\\r&quot;;case&quot;\u2028&quot;:return&quot;\\u2028&quot;;case&quot;\u2029&quot;:return&quot;\\u2029&quot;;default:throw new Error(&quot;Unexpected character&quot;)}})))}},{&quot;./safe-to-string&quot;:318}],320:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i={object:!0,function:!0,undefined:!0};e.exports=function(t){return!!n(t)&amp;&amp;hasOwnProperty.call(i,typeof t)}},{&quot;../value/is&quot;:326}],321:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/resolve-exception&quot;),i=t(&quot;./is&quot;);e.exports=function(t){return i(t)?t:n(t,&quot;%v is not a plain function&quot;,arguments[1])}},{&quot;../lib/resolve-exception&quot;:317,&quot;./is&quot;:322}],322:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../function/is&quot;),i=/^\s*class[\s{/}]/,a=Function.prototype.toString;e.exports=function(t){return!!n(t)&amp;&amp;!i.test(a.call(t))}},{&quot;../function/is&quot;:316}],323:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../object/is&quot;);e.exports=function(t){if(!n(t))return!1;try{return!!t.constructor&amp;&amp;t.constructor.prototype===t}catch(t){return!1}}},{&quot;../object/is&quot;:320}],324:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i=t(&quot;../object/is&quot;),a=Object.prototype.toString;e.exports=function(t){if(!n(t))return null;if(i(t)){var e=t.toString;if(&quot;function&quot;!=typeof e)return null;if(e===a)return null}try{return&quot;&quot;+t}catch(t){return null}}},{&quot;../object/is&quot;:320,&quot;../value/is&quot;:326}],325:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/resolve-exception&quot;),i=t(&quot;./is&quot;);e.exports=function(t){return i(t)?t:n(t,&quot;Cannot use %v&quot;,arguments[1])}},{&quot;../lib/resolve-exception&quot;:317,&quot;./is&quot;:326}],326:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return null!=t}},{}],327:[function(t,e,r){(function(e){(function(){&quot;use strict&quot;;var n=t(&quot;bit-twiddle&quot;),i=t(&quot;dup&quot;),a=t(&quot;buffer&quot;).Buffer;e.__TYPEDARRAY_POOL||(e.__TYPEDARRAY_POOL={UINT8:i([32,0]),UINT16:i([32,0]),UINT32:i([32,0]),BIGUINT64:i([32,0]),INT8:i([32,0]),INT16:i([32,0]),INT32:i([32,0]),BIGINT64:i([32,0]),FLOAT:i([32,0]),DOUBLE:i([32,0]),DATA:i([32,0]),UINT8C:i([32,0]),BUFFER:i([32,0])});var o=&quot;undefined&quot;!=typeof Uint8ClampedArray,s=&quot;undefined&quot;!=typeof BigUint64Array,l=&quot;undefined&quot;!=typeof BigInt64Array,c=e.__TYPEDARRAY_POOL;c.UINT8C||(c.UINT8C=i([32,0])),c.BIGUINT64||(c.BIGUINT64=i([32,0])),c.BIGINT64||(c.BIGINT64=i([32,0])),c.BUFFER||(c.BUFFER=i([32,0]));var u=c.DATA,f=c.BUFFER;function h(t){if(t){var e=t.length||t.byteLength,r=n.log2(e);u[r].push(t)}}function p(t){t=n.nextPow2(t);var e=n.log2(t),r=u[e];return r.length&gt;0?r.pop():new ArrayBuffer(t)}function d(t){return new Uint8Array(p(t),0,t)}function m(t){return new Uint16Array(p(2*t),0,t)}function g(t){return new Uint32Array(p(4*t),0,t)}function v(t){return new Int8Array(p(t),0,t)}function y(t){return new Int16Array(p(2*t),0,t)}function x(t){return new Int32Array(p(4*t),0,t)}function b(t){return new Float32Array(p(4*t),0,t)}function _(t){return new Float64Array(p(8*t),0,t)}function w(t){return o?new Uint8ClampedArray(p(t),0,t):d(t)}function T(t){return s?new BigUint64Array(p(8*t),0,t):null}function k(t){return l?new BigInt64Array(p(8*t),0,t):null}function A(t){return new DataView(p(t),0,t)}function M(t){t=n.nextPow2(t);var e=n.log2(t),r=f[e];return r.length&gt;0?r.pop():new a(t)}r.free=function(t){if(a.isBuffer(t))f[n.log2(t.length)].push(t);else{if(&quot;[object ArrayBuffer]&quot;!==Object.prototype.toString.call(t)&amp;&amp;(t=t.buffer),!t)return;var e=t.length||t.byteLength,r=0|n.log2(e);u[r].push(t)}},r.freeUint8=r.freeUint16=r.freeUint32=r.freeBigUint64=r.freeInt8=r.freeInt16=r.freeInt32=r.freeBigInt64=r.freeFloat32=r.freeFloat=r.freeFloat64=r.freeDouble=r.freeUint8Clamped=r.freeDataView=function(t){h(t.buffer)},r.freeArrayBuffer=h,r.freeBuffer=function(t){f[n.log2(t.length)].push(t)},r.malloc=function(t,e){if(void 0===e||&quot;arraybuffer&quot;===e)return p(t);switch(e){case&quot;uint8&quot;:return d(t);case&quot;uint16&quot;:return m(t);case&quot;uint32&quot;:return g(t);case&quot;int8&quot;:return v(t);case&quot;int16&quot;:return y(t);case&quot;int32&quot;:return x(t);case&quot;float&quot;:case&quot;float32&quot;:return b(t);case&quot;double&quot;:case&quot;float64&quot;:return _(t);case&quot;uint8_clamped&quot;:return w(t);case&quot;bigint64&quot;:return k(t);case&quot;biguint64&quot;:return T(t);case&quot;buffer&quot;:return M(t);case&quot;data&quot;:case&quot;dataview&quot;:return A(t);default:return null}return null},r.mallocArrayBuffer=p,r.mallocUint8=d,r.mallocUint16=m,r.mallocUint32=g,r.mallocInt8=v,r.mallocInt16=y,r.mallocInt32=x,r.mallocFloat32=r.mallocFloat=b,r.mallocFloat64=r.mallocDouble=_,r.mallocUint8Clamped=w,r.mallocBigUint64=T,r.mallocBigInt64=k,r.mallocDataView=A,r.mallocBuffer=M,r.clearCache=function(){for(var t=0;t&lt;32;++t)c.UINT8[t].length=0,c.UINT16[t].length=0,c.UINT32[t].length=0,c.INT8[t].length=0,c.INT16[t].length=0,c.INT32[t].length=0,c.FLOAT[t].length=0,c.DOUBLE[t].length=0,c.BIGUINT64[t].length=0,c.BIGINT64[t].length=0,c.UINT8C[t].length=0,u[t].length=0,f[t].length=0}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;bit-twiddle&quot;:81,buffer:85,dup:128}],328:[function(t,e,r){var n=/[\'\&quot;]/;e.exports=function(t){return t?(n.test(t.charAt(0))&amp;&amp;(t=t.substr(1)),n.test(t.charAt(t.length-1))&amp;&amp;(t=t.substr(0,t.length-1)),t):&quot;&quot;}},{}],329:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){Array.isArray(r)||(r=[].slice.call(arguments,2));for(var n=0,i=r.length;n&lt;i;n++){var a=r[n];for(var o in a)if((void 0===e[o]||Array.isArray(e[o])||t[o]!==e[o])&amp;&amp;o in e){var s;if(!0===a[o])s=e[o];else{if(!1===a[o])continue;if(&quot;function&quot;==typeof a[o]&amp;&amp;void 0===(s=a[o](e[o],t,e)))continue}t[o]=s}}return t}},{}],330:[function(t,e,r){(function(t){(function(){function r(e){try{if(!t.localStorage)return!1}catch(t){return!1}var r=t.localStorage[e];return null!=r&amp;&amp;&quot;true&quot;===String(r).toLowerCase()}e.exports=function(t,e){if(r(&quot;noDeprecation&quot;))return t;var n=!1;return function(){if(!n){if(r(&quot;throwDeprecation&quot;))throw new Error(e);r(&quot;traceDeprecation&quot;)?console.trace(e):console.warn(e),n=!0}return t.apply(this,arguments)}}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{}],331:[function(t,e,r){var n=t(&quot;get-canvas-context&quot;);e.exports=function(t){return n(&quot;webgl&quot;,t)}},{&quot;get-canvas-context&quot;:194}],332:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Chinese&quot;,jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Chinese&quot;,epochs:[&quot;BEC&quot;,&quot;EC&quot;],monthNumbers:function(t,e){if(&quot;string&quot;==typeof t){var r=t.match(l);return r?r[0]:&quot;&quot;}var n=this._validateYear(t),i=t.month(),a=&quot;&quot;+this.toChineseMonth(n,i);return e&amp;&amp;a.length&lt;2&amp;&amp;(a=&quot;0&quot;+a),this.isIntercalaryMonth(n,i)&amp;&amp;(a+=&quot;i&quot;),a},monthNames:function(t){if(&quot;string&quot;==typeof t){var e=t.match(c);return e?e[0]:&quot;&quot;}var r=this._validateYear(t),n=t.month(),i=[&quot;\u4e00\u6708&quot;,&quot;\u4e8c\u6708&quot;,&quot;\u4e09\u6708&quot;,&quot;\u56db\u6708&quot;,&quot;\u4e94\u6708&quot;,&quot;\u516d\u6708&quot;,&quot;\u4e03\u6708&quot;,&quot;\u516b\u6708&quot;,&quot;\u4e5d\u6708&quot;,&quot;\u5341\u6708&quot;,&quot;\u5341\u4e00\u6708&quot;,&quot;\u5341\u4e8c\u6708&quot;][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&amp;&amp;(i=&quot;\u95f0&quot;+i),i},monthNamesShort:function(t){if(&quot;string&quot;==typeof t){var e=t.match(u);return e?e[0]:&quot;&quot;}var r=this._validateYear(t),n=t.month(),i=[&quot;\u4e00&quot;,&quot;\u4e8c&quot;,&quot;\u4e09&quot;,&quot;\u56db&quot;,&quot;\u4e94&quot;,&quot;\u516d&quot;,&quot;\u4e03&quot;,&quot;\u516b&quot;,&quot;\u4e5d&quot;,&quot;\u5341&quot;,&quot;\u5341\u4e00&quot;,&quot;\u5341\u4e8c&quot;][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&amp;&amp;(i=&quot;\u95f0&quot;+i),i},parseMonth:function(t,e){t=this._validateYear(t);var r,n=parseInt(e);if(isNaN(n))&quot;\u95f0&quot;===e[0]&amp;&amp;(r=!0,e=e.substring(1)),&quot;\u6708&quot;===e[e.length-1]&amp;&amp;(e=e.substring(0,e.length-1)),n=1+[&quot;\u4e00&quot;,&quot;\u4e8c&quot;,&quot;\u4e09&quot;,&quot;\u56db&quot;,&quot;\u4e94&quot;,&quot;\u516d&quot;,&quot;\u4e03&quot;,&quot;\u516b&quot;,&quot;\u4e5d&quot;,&quot;\u5341&quot;,&quot;\u5341\u4e00&quot;,&quot;\u5341\u4e8c&quot;].indexOf(e);else{var i=e[e.length-1];r=&quot;i&quot;===i||&quot;I&quot;===i}return this.toMonthIndex(t,n,r)},dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:1,isRTL:!1}},_validateYear:function(t,e){if(t.year&amp;&amp;(t=t.year()),&quot;number&quot;!=typeof t||t&lt;1888||t&gt;2111)throw e.replace(/\{0\}/,this.local.name);return t},toMonthIndex:function(t,e,r){var i=this.intercalaryMonth(t);if(r&amp;&amp;e!==i||e&lt;1||e&gt;12)throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return i?!r&amp;&amp;e&lt;=i?e-1:e:e-1},toChineseMonth:function(t,e){t.year&amp;&amp;(e=(t=t.year()).month());var r=this.intercalaryMonth(t);if(e&lt;0||e&gt;(r?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r?e&lt;r?e+1:e:e+1},intercalaryMonth:function(t){return t=this._validateYear(t),f[t-f[0]]&gt;&gt;13},isIntercalaryMonth:function(t,e){t.year&amp;&amp;(e=(t=t.year()).month());var r=this.intercalaryMonth(t);return!!r&amp;&amp;r===e},leapYear:function(t){return 0!==this.intercalaryMonth(t)},weekOfYear:function(t,e,r){var i,o=this._validateYear(t,n.local.invalidyear),s=h[o-h[0]],l=s&gt;&gt;9&amp;4095,c=s&gt;&gt;5&amp;15,u=31&amp;s;(i=a.newDate(l,c,u)).add(4-(i.dayOfWeek()||7),&quot;d&quot;);var f=this.toJD(t,e,r)-i.toJD();return 1+Math.floor(f/7)},monthsInYear:function(t){return this.leapYear(t)?13:12},daysInMonth:function(t,e){t.year&amp;&amp;(e=t.month(),t=t.year()),t=this._validateYear(t);var r=f[t-f[0]];if(e&gt;(r&gt;&gt;13?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r&amp;1&lt;&lt;12-e?30:29},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,s,r,n.local.invalidDate);t=this._validateYear(i.year()),e=i.month(),r=i.day();var o=this.isIntercalaryMonth(t,e),s=this.toChineseMonth(t,e),l=function(t,e,r,n,i){var a,o,s;if(&quot;object&quot;==typeof t)o=t,a=e||{};else{var l;if(!(&quot;number&quot;==typeof t&amp;&amp;t&gt;=1888&amp;&amp;t&lt;=2111))throw new Error(&quot;Lunar year outside range 1888-2111&quot;);if(!(&quot;number&quot;==typeof e&amp;&amp;e&gt;=1&amp;&amp;e&lt;=12))throw new Error(&quot;Lunar month outside range 1 - 12&quot;);if(!(&quot;number&quot;==typeof r&amp;&amp;r&gt;=1&amp;&amp;r&lt;=30))throw new Error(&quot;Lunar day outside range 1 - 30&quot;);&quot;object&quot;==typeof n?(l=!1,a=n):(l=!!n,a=i||{}),o={year:t,month:e,day:r,isIntercalary:l}}s=o.day-1;var c,u=f[o.year-f[0]],p=u&gt;&gt;13;c=p&amp;&amp;(o.month&gt;p||o.isIntercalary)?o.month:o.month-1;for(var d=0;d&lt;c;d++){s+=u&amp;1&lt;&lt;12-d?30:29}var m=h[o.year-h[0]],g=new Date(m&gt;&gt;9&amp;4095,(m&gt;&gt;5&amp;15)-1,(31&amp;m)+s);return a.year=g.getFullYear(),a.month=1+g.getMonth(),a.day=g.getDate(),a}(t,s,r,o);return a.toJD(l.year,l.month,l.day)},fromJD:function(t){var e=a.fromJD(t),r=function(t,e,r,n){var i,a;if(&quot;object&quot;==typeof t)i=t,a=e||{};else{if(!(&quot;number&quot;==typeof t&amp;&amp;t&gt;=1888&amp;&amp;t&lt;=2111))throw new Error(&quot;Solar year outside range 1888-2111&quot;);if(!(&quot;number&quot;==typeof e&amp;&amp;e&gt;=1&amp;&amp;e&lt;=12))throw new Error(&quot;Solar month outside range 1 - 12&quot;);if(!(&quot;number&quot;==typeof r&amp;&amp;r&gt;=1&amp;&amp;r&lt;=31))throw new Error(&quot;Solar day outside range 1 - 31&quot;);i={year:t,month:e,day:r},a=n||{}}var o=h[i.year-h[0]],s=i.year&lt;&lt;9|i.month&lt;&lt;5|i.day;a.year=s&gt;=o?i.year:i.year-1,o=h[a.year-h[0]];var l,c=new Date(o&gt;&gt;9&amp;4095,(o&gt;&gt;5&amp;15)-1,31&amp;o),u=new Date(i.year,i.month-1,i.day);l=Math.round((u-c)/864e5);var p,d=f[a.year-f[0]];for(p=0;p&lt;13;p++){var m=d&amp;1&lt;&lt;12-p?30:29;if(l&lt;m)break;l-=m}var g=d&gt;&gt;13;!g||p&lt;g?(a.isIntercalary=!1,a.month=1+p):p===g?(a.isIntercalary=!0,a.month=p):(a.isIntercalary=!1,a.month=p);return a.day=1+l,a}(e.year(),e.month(),e.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(t){var e=t.match(s),r=this._validateYear(+e[1]),n=+e[2],i=!!e[3],a=this.toMonthIndex(r,n,i),o=+e[4];return this.newDate(r,a,o)},add:function(t,e,r){var n=t.year(),i=t.month(),a=this.isIntercalaryMonth(n,i),s=this.toChineseMonth(n,i),l=Object.getPrototypeOf(o.prototype).add.call(this,t,e,r);if(&quot;y&quot;===r){var c=l.year(),u=l.month(),f=this.isIntercalaryMonth(c,s),h=a&amp;&amp;f?this.toMonthIndex(c,s,!0):this.toMonthIndex(c,s,!1);h!==u&amp;&amp;l.month(h)}return l}});var s=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,l=/^\d?\d[iI]?/m,c=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?\u6708/m,u=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?/m;n.calendars.chinese=o;var f=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],h=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},{&quot;../main&quot;:346,&quot;object-assign&quot;:247}],333:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Coptic&quot;,jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Coptic&quot;,epochs:[&quot;BAM&quot;,&quot;AM&quot;],monthNames:[&quot;Thout&quot;,&quot;Paopi&quot;,&quot;Hathor&quot;,&quot;Koiak&quot;,&quot;Tobi&quot;,&quot;Meshir&quot;,&quot;Paremhat&quot;,&quot;Paremoude&quot;,&quot;Pashons&quot;,&quot;Paoni&quot;,&quot;Epip&quot;,&quot;Mesori&quot;,&quot;Pi Kogi Enavot&quot;],monthNamesShort:[&quot;Tho&quot;,&quot;Pao&quot;,&quot;Hath&quot;,&quot;Koi&quot;,&quot;Tob&quot;,&quot;Mesh&quot;,&quot;Pat&quot;,&quot;Pad&quot;,&quot;Pash&quot;,&quot;Pao&quot;,&quot;Epi&quot;,&quot;Meso&quot;,&quot;PiK&quot;],dayNames:[&quot;Tkyriaka&quot;,&quot;Pesnau&quot;,&quot;Pshoment&quot;,&quot;Peftoou&quot;,&quot;Ptiou&quot;,&quot;Psoou&quot;,&quot;Psabbaton&quot;],dayNamesShort:[&quot;Tky&quot;,&quot;Pes&quot;,&quot;Psh&quot;,&quot;Pef&quot;,&quot;Pti&quot;,&quot;Pso&quot;,&quot;Psa&quot;],dayNamesMin:[&quot;Tk&quot;,&quot;Pes&quot;,&quot;Psh&quot;,&quot;Pef&quot;,&quot;Pt&quot;,&quot;Pso&quot;,&quot;Psa&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())&lt;0&amp;&amp;t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r&lt;=0&amp;&amp;r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.coptic=a},{&quot;../main&quot;:346,&quot;object-assign&quot;:247}],334:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Discworld&quot;,jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Discworld&quot;,epochs:[&quot;BUC&quot;,&quot;UC&quot;],monthNames:[&quot;Ick&quot;,&quot;Offle&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;Grune&quot;,&quot;August&quot;,&quot;Spune&quot;,&quot;Sektober&quot;,&quot;Ember&quot;,&quot;December&quot;],monthNamesShort:[&quot;Ick&quot;,&quot;Off&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Gru&quot;,&quot;Aug&quot;,&quot;Spu&quot;,&quot;Sek&quot;,&quot;Emb&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Octeday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Oct&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Oc&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:2,isRTL:!1}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),13},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),400},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(t,e,r){return(this._validate(t,e,r,n.local.invalidDate).day()+1)%8},weekDay:function(t,e,r){var n=this.dayOfWeek(t,e,r);return n&gt;=2&amp;&amp;n&lt;=6},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{century:o[Math.floor((i.year()-1)/100)+1]||&quot;&quot;}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year()+(i.year()&lt;0?1:0),e=i.month(),(r=i.day())+(e&gt;1?16:0)+(e&gt;2?32*(e-2):0)+400*(t-1)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t+.5)-Math.floor(this.jdEpoch)-1;var e=Math.floor(t/400)+1;t-=400*(e-1),t+=t&gt;15?16:0;var r=Math.floor(t/32)+1,n=t-32*(r-1)+1;return this.newDate(e&lt;=0?e-1:e,r,n)}});var o={20:&quot;Fruitbat&quot;,21:&quot;Anchovy&quot;};n.calendars.discworld=a},{&quot;../main&quot;:346,&quot;object-assign&quot;:247}],335:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Ethiopian&quot;,jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Ethiopian&quot;,epochs:[&quot;BEE&quot;,&quot;EE&quot;],monthNames:[&quot;Meskerem&quot;,&quot;Tikemet&quot;,&quot;Hidar&quot;,&quot;Tahesas&quot;,&quot;Tir&quot;,&quot;Yekatit&quot;,&quot;Megabit&quot;,&quot;Miazia&quot;,&quot;Genbot&quot;,&quot;Sene&quot;,&quot;Hamle&quot;,&quot;Nehase&quot;,&quot;Pagume&quot;],monthNamesShort:[&quot;Mes&quot;,&quot;Tik&quot;,&quot;Hid&quot;,&quot;Tah&quot;,&quot;Tir&quot;,&quot;Yek&quot;,&quot;Meg&quot;,&quot;Mia&quot;,&quot;Gen&quot;,&quot;Sen&quot;,&quot;Ham&quot;,&quot;Neh&quot;,&quot;Pag&quot;],dayNames:[&quot;Ehud&quot;,&quot;Segno&quot;,&quot;Maksegno&quot;,&quot;Irob&quot;,&quot;Hamus&quot;,&quot;Arb&quot;,&quot;Kidame&quot;],dayNamesShort:[&quot;Ehu&quot;,&quot;Seg&quot;,&quot;Mak&quot;,&quot;Iro&quot;,&quot;Ham&quot;,&quot;Arb&quot;,&quot;Kid&quot;],dayNamesMin:[&quot;Eh&quot;,&quot;Se&quot;,&quot;Ma&quot;,&quot;Ir&quot;,&quot;Ha&quot;,&quot;Ar&quot;,&quot;Ki&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())&lt;0&amp;&amp;t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r&lt;=0&amp;&amp;r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.ethiopian=a},{&quot;../main&quot;:346,&quot;object-assign&quot;:247}],336:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Hebrew&quot;,jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Hebrew&quot;,epochs:[&quot;BAM&quot;,&quot;AM&quot;],monthNames:[&quot;Nisan&quot;,&quot;Iyar&quot;,&quot;Sivan&quot;,&quot;Tammuz&quot;,&quot;Av&quot;,&quot;Elul&quot;,&quot;Tishrei&quot;,&quot;Cheshvan&quot;,&quot;Kislev&quot;,&quot;Tevet&quot;,&quot;Shevat&quot;,&quot;Adar&quot;,&quot;Adar II&quot;],monthNamesShort:[&quot;Nis&quot;,&quot;Iya&quot;,&quot;Siv&quot;,&quot;Tam&quot;,&quot;Av&quot;,&quot;Elu&quot;,&quot;Tis&quot;,&quot;Che&quot;,&quot;Kis&quot;,&quot;Tev&quot;,&quot;She&quot;,&quot;Ada&quot;,&quot;Ad2&quot;],dayNames:[&quot;Yom Rishon&quot;,&quot;Yom Sheni&quot;,&quot;Yom Shlishi&quot;,&quot;Yom Revi'i&quot;,&quot;Yom Chamishi&quot;,&quot;Yom Shishi&quot;,&quot;Yom Shabbat&quot;],dayNamesShort:[&quot;Ris&quot;,&quot;She&quot;,&quot;Shl&quot;,&quot;Rev&quot;,&quot;Cha&quot;,&quot;Shi&quot;,&quot;Sha&quot;],dayNamesMin:[&quot;Ri&quot;,&quot;She&quot;,&quot;Shl&quot;,&quot;Re&quot;,&quot;Ch&quot;,&quot;Shi&quot;,&quot;Sha&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return this._leapYear(e.year())},_leapYear:function(t){return o(7*(t=t&lt;0?t+1:t)+1,19)&lt;7},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),this._leapYear(t.year?t.year():t)?13:12},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),this.toJD(-1===t?1:t+1,7,1)-this.toJD(t,7,1)},daysInMonth:function(t,e){return t.year&amp;&amp;(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),12===e&amp;&amp;this.leapYear(t)||8===e&amp;&amp;5===o(this.daysInYear(t),10)?30:9===e&amp;&amp;3===o(this.daysInYear(t),10)?29:this.daysPerMonth[e-1]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{yearType:(this.leapYear(i)?&quot;embolismic&quot;:&quot;common&quot;)+&quot; &quot;+[&quot;deficient&quot;,&quot;regular&quot;,&quot;complete&quot;][this.daysInYear(i)%10-3]}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t&lt;=0?t+1:t,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(e&lt;7){for(var s=7;s&lt;=this.monthsInYear(t);s++)o+=this.daysInMonth(t,s);for(s=1;s&lt;e;s++)o+=this.daysInMonth(t,s)}else for(s=7;s&lt;e;s++)o+=this.daysInMonth(t,s);return o},_delay1:function(t){var e=Math.floor((235*t-234)/19),r=12084+13753*e,n=29*e+Math.floor(r/25920);return o(3*(n+1),7)&lt;3&amp;&amp;n++,n},_delay2:function(t){var e=this._delay1(t-1),r=this._delay1(t);return this._delay1(t+1)-r==356?2:r-e==382?1:0},fromJD:function(t){t=Math.floor(t)+.5;for(var e=Math.floor(98496*(t-this.jdEpoch)/35975351)-1;t&gt;=this.toJD(-1===e?1:e+1,7,1);)e++;for(var r=t&lt;this.toJD(e,1,1)?7:1;t&gt;this.toJD(e,r,this.daysInMonth(e,r));)r++;var n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.hebrew=a},{&quot;../main&quot;:346,&quot;object-assign&quot;:247}],337:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Islamic&quot;,jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Islamic&quot;,epochs:[&quot;BH&quot;,&quot;AH&quot;],monthNames:[&quot;Muharram&quot;,&quot;Safar&quot;,&quot;Rabi' al-awwal&quot;,&quot;Rabi' al-thani&quot;,&quot;Jumada al-awwal&quot;,&quot;Jumada al-thani&quot;,&quot;Rajab&quot;,&quot;Sha'aban&quot;,&quot;Ramadan&quot;,&quot;Shawwal&quot;,&quot;Dhu al-Qi'dah&quot;,&quot;Dhu al-Hijjah&quot;],monthNamesShort:[&quot;Muh&quot;,&quot;Saf&quot;,&quot;Rab1&quot;,&quot;Rab2&quot;,&quot;Jum1&quot;,&quot;Jum2&quot;,&quot;Raj&quot;,&quot;Sha'&quot;,&quot;Ram&quot;,&quot;Shaw&quot;,&quot;DhuQ&quot;,&quot;DhuH&quot;],dayNames:[&quot;Yawm al-ahad&quot;,&quot;Yawm al-ithnayn&quot;,&quot;Yawm ath-thulaathaa'&quot;,&quot;Yawm al-arbi'aa'&quot;,&quot;Yawm al-kham\u012bs&quot;,&quot;Yawm al-jum'a&quot;,&quot;Yawm as-sabt&quot;],dayNamesShort:[&quot;Aha&quot;,&quot;Ith&quot;,&quot;Thu&quot;,&quot;Arb&quot;,&quot;Kha&quot;,&quot;Jum&quot;,&quot;Sab&quot;],dayNamesMin:[&quot;Ah&quot;,&quot;It&quot;,&quot;Th&quot;,&quot;Ar&quot;,&quot;Kh&quot;,&quot;Ju&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!1}},leapYear:function(t){return(11*this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year()+14)%30&lt;11},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return this.leapYear(t)?355:354},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),t=t&lt;=0?t+1:t,(r=i.day())+Math.ceil(29.5*(e-1))+354*(t-1)+Math.floor((3+11*t)/30)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t)+.5;var e=Math.floor((30*(t-this.jdEpoch)+10646)/10631);e=e&lt;=0?e-1:e;var r=Math.min(12,Math.ceil((t-29-this.toJD(e,1,1))/29.5)+1),n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.islamic=a},{&quot;../main&quot;:346,&quot;object-assign&quot;:247}],338:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Julian&quot;,jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Julian&quot;,epochs:[&quot;BC&quot;,&quot;AD&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;mm/dd/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()&lt;0?e.year()+1:e.year())%4==0},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),r=i.day(),t&lt;0&amp;&amp;t++,e&lt;=2&amp;&amp;(t--,e+=12),Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r-1524.5},fromJD:function(t){var e=Math.floor(t+.5)+1524,r=Math.floor((e-122.1)/365.25),n=Math.floor(365.25*r),i=Math.floor((e-n)/30.6001),a=i-Math.floor(i&lt;14?1:13),o=r-Math.floor(a&gt;2?4716:4715),s=e-n-Math.floor(30.6001*i);return o&lt;=0&amp;&amp;o--,this.newDate(o,a,s)}}),n.calendars.julian=a},{&quot;../main&quot;:346,&quot;object-assign&quot;:247}],339:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}function s(t,e){return o(t-1,e)+1}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Mayan&quot;,jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{&quot;&quot;:{name:&quot;Mayan&quot;,epochs:[&quot;&quot;,&quot;&quot;],monthNames:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;],monthNamesShort:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;],dayNames:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],dayNamesShort:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],dayNamesMin:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],digits:null,dateFormat:&quot;YYYY.m.d&quot;,firstDay:0,isRTL:!1,haabMonths:[&quot;Pop&quot;,&quot;Uo&quot;,&quot;Zip&quot;,&quot;Zotz&quot;,&quot;Tzec&quot;,&quot;Xul&quot;,&quot;Yaxkin&quot;,&quot;Mol&quot;,&quot;Chen&quot;,&quot;Yax&quot;,&quot;Zac&quot;,&quot;Ceh&quot;,&quot;Mac&quot;,&quot;Kankin&quot;,&quot;Muan&quot;,&quot;Pax&quot;,&quot;Kayab&quot;,&quot;Cumku&quot;,&quot;Uayeb&quot;],tzolkinMonths:[&quot;Imix&quot;,&quot;Ik&quot;,&quot;Akbal&quot;,&quot;Kan&quot;,&quot;Chicchan&quot;,&quot;Cimi&quot;,&quot;Manik&quot;,&quot;Lamat&quot;,&quot;Muluc&quot;,&quot;Oc&quot;,&quot;Chuen&quot;,&quot;Eb&quot;,&quot;Ben&quot;,&quot;Ix&quot;,&quot;Men&quot;,&quot;Cib&quot;,&quot;Caban&quot;,&quot;Etznab&quot;,&quot;Cauac&quot;,&quot;Ahau&quot;]}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},formatYear:function(t){t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year();var e=Math.floor(t/400);return t%=400,t+=t&lt;0?400:0,e+&quot;.&quot;+Math.floor(t/20)+&quot;.&quot;+t%20},forYear:function(t){if((t=t.split(&quot;.&quot;)).length&lt;3)throw&quot;Invalid Mayan year&quot;;for(var e=0,r=0;r&lt;t.length;r++){var n=parseInt(t[r],10);if(Math.abs(n)&gt;19||r&gt;0&amp;&amp;n&lt;0)throw&quot;Invalid Mayan year&quot;;e=20*e+n}return e},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),18},weekOfYear:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),0},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),360},daysInMonth:function(t,e){return this._validate(t,e,this.minDay,n.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate).day()},weekDay:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),!0},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate).toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(t){var e=o((t-=this.jdEpoch)+8+340,365);return[Math.floor(e/20)+1,o(e,20)]},_toTzolkin:function(t){return[s((t-=this.jdEpoch)+20,20),s(t+4,13)]},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return i.day()+20*i.month()+360*i.year()+this.jdEpoch},fromJD:function(t){t=Math.floor(t)+.5-this.jdEpoch;var e=Math.floor(t/360);t%=360,t+=t&lt;0?360:0;var r=Math.floor(t/20),n=t%20;return this.newDate(e,r,n)}}),n.calendars.mayan=a},{&quot;../main&quot;:346,&quot;object-assign&quot;:247}],340:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar;var o=n.instance(&quot;gregorian&quot;);i(a.prototype,{name:&quot;Nanakshahi&quot;,jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Nanakshahi&quot;,epochs:[&quot;BN&quot;,&quot;AN&quot;],monthNames:[&quot;Chet&quot;,&quot;Vaisakh&quot;,&quot;Jeth&quot;,&quot;Harh&quot;,&quot;Sawan&quot;,&quot;Bhadon&quot;,&quot;Assu&quot;,&quot;Katak&quot;,&quot;Maghar&quot;,&quot;Poh&quot;,&quot;Magh&quot;,&quot;Phagun&quot;],monthNamesShort:[&quot;Che&quot;,&quot;Vai&quot;,&quot;Jet&quot;,&quot;Har&quot;,&quot;Saw&quot;,&quot;Bha&quot;,&quot;Ass&quot;,&quot;Kat&quot;,&quot;Mgr&quot;,&quot;Poh&quot;,&quot;Mgh&quot;,&quot;Pha&quot;],dayNames:[&quot;Somvaar&quot;,&quot;Mangalvar&quot;,&quot;Budhvaar&quot;,&quot;Veervaar&quot;,&quot;Shukarvaar&quot;,&quot;Sanicharvaar&quot;,&quot;Etvaar&quot;],dayNamesShort:[&quot;Som&quot;,&quot;Mangal&quot;,&quot;Budh&quot;,&quot;Veer&quot;,&quot;Shukar&quot;,&quot;Sanichar&quot;,&quot;Et&quot;],dayNamesMin:[&quot;So&quot;,&quot;Ma&quot;,&quot;Bu&quot;,&quot;Ve&quot;,&quot;Sh&quot;,&quot;Sa&quot;,&quot;Et&quot;],digits:null,dateFormat:&quot;dd-mm-yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear);return o.leapYear(e.year()+(e.year()&lt;1?1:0)+1469)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(1-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidMonth);(t=i.year())&lt;0&amp;&amp;t++;for(var a=i.day(),s=1;s&lt;i.month();s++)a+=this.daysPerMonth[s-1];return a+o.toJD(t+1468,3,13)},fromJD:function(t){t=Math.floor(t+.5);for(var e=Math.floor((t-(this.jdEpoch-1))/366);t&gt;=this.toJD(e+1,1,1);)e++;for(var r=t-Math.floor(this.toJD(e,1,1)+.5)+1,n=1;r&gt;this.daysInMonth(e,n);)r-=this.daysInMonth(e,n),n++;return this.newDate(e,n,r)}}),n.calendars.nanakshahi=a},{&quot;../main&quot;:346,&quot;object-assign&quot;:247}],341:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Nepali&quot;,jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{&quot;&quot;:{name:&quot;Nepali&quot;,epochs:[&quot;BBS&quot;,&quot;ABS&quot;],monthNames:[&quot;Baisakh&quot;,&quot;Jestha&quot;,&quot;Ashadh&quot;,&quot;Shrawan&quot;,&quot;Bhadra&quot;,&quot;Ashwin&quot;,&quot;Kartik&quot;,&quot;Mangsir&quot;,&quot;Paush&quot;,&quot;Mangh&quot;,&quot;Falgun&quot;,&quot;Chaitra&quot;],monthNamesShort:[&quot;Bai&quot;,&quot;Je&quot;,&quot;As&quot;,&quot;Shra&quot;,&quot;Bha&quot;,&quot;Ash&quot;,&quot;Kar&quot;,&quot;Mang&quot;,&quot;Pau&quot;,&quot;Ma&quot;,&quot;Fal&quot;,&quot;Chai&quot;],dayNames:[&quot;Aaitabaar&quot;,&quot;Sombaar&quot;,&quot;Manglbaar&quot;,&quot;Budhabaar&quot;,&quot;Bihibaar&quot;,&quot;Shukrabaar&quot;,&quot;Shanibaar&quot;],dayNamesShort:[&quot;Aaita&quot;,&quot;Som&quot;,&quot;Mangl&quot;,&quot;Budha&quot;,&quot;Bihi&quot;,&quot;Shukra&quot;,&quot;Shani&quot;],dayNamesMin:[&quot;Aai&quot;,&quot;So&quot;,&quot;Man&quot;,&quot;Bu&quot;,&quot;Bi&quot;,&quot;Shu&quot;,&quot;Sha&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:1,isRTL:!1}},leapYear:function(t){return this.daysInYear(t)!==this.daysPerYear},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){if(t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),void 0===this.NEPALI_CALENDAR_DATA[t])return this.daysPerYear;for(var e=0,r=this.minMonth;r&lt;=12;r++)e+=this.NEPALI_CALENDAR_DATA[t][r];return e},daysInMonth:function(t,e){return t.year&amp;&amp;(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),void 0===this.NEPALI_CALENDAR_DATA[t]?this.daysPerMonth[e-1]:this.NEPALI_CALENDAR_DATA[t][e]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=n.instance(),o=0,s=e,l=t;this._createMissingCalendarData(t);var c=t-(s&gt;9||9===s&amp;&amp;r&gt;=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(9!==e&amp;&amp;(o=r,s--);9!==s;)s&lt;=0&amp;&amp;(s=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][s],s--;return 9===e?(o+=r-this.NEPALI_CALENDAR_DATA[l][0])&lt;0&amp;&amp;(o+=a.daysInYear(c)):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(c,1,1).add(o,&quot;d&quot;).toJD()},fromJD:function(t){var e=n.instance().fromJD(t),r=e.year(),i=e.dayOfYear(),a=r+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i&gt;l;)++o&gt;12&amp;&amp;(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var c=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,c)},_createMissingCalendarData:function(t){var e=this.daysPerMonth.slice(0);e.unshift(17);for(var r=t-1;r&lt;t+2;r++)void 0===this.NEPALI_CALENDAR_DATA[r]&amp;&amp;(this.NEPALI_CALENDAR_DATA[r]=e)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),n.calendars.nepali=a},{&quot;../main&quot;:346,&quot;object-assign&quot;:247}],342:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Persian&quot;,jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Persian&quot;,epochs:[&quot;BP&quot;,&quot;AP&quot;],monthNames:[&quot;Farvardin&quot;,&quot;Ordibehesht&quot;,&quot;Khordad&quot;,&quot;Tir&quot;,&quot;Mordad&quot;,&quot;Shahrivar&quot;,&quot;Mehr&quot;,&quot;Aban&quot;,&quot;Azar&quot;,&quot;Day&quot;,&quot;Bahman&quot;,&quot;Esfand&quot;],monthNamesShort:[&quot;Far&quot;,&quot;Ord&quot;,&quot;Kho&quot;,&quot;Tir&quot;,&quot;Mor&quot;,&quot;Sha&quot;,&quot;Meh&quot;,&quot;Aba&quot;,&quot;Aza&quot;,&quot;Day&quot;,&quot;Bah&quot;,&quot;Esf&quot;],dayNames:[&quot;Yekshambe&quot;,&quot;Doshambe&quot;,&quot;Seshambe&quot;,&quot;Ch\xe6harshambe&quot;,&quot;Panjshambe&quot;,&quot;Jom'e&quot;,&quot;Shambe&quot;],dayNamesShort:[&quot;Yek&quot;,&quot;Do&quot;,&quot;Se&quot;,&quot;Ch\xe6&quot;,&quot;Panj&quot;,&quot;Jom&quot;,&quot;Sha&quot;],dayNamesMin:[&quot;Ye&quot;,&quot;Do&quot;,&quot;Se&quot;,&quot;Ch&quot;,&quot;Pa&quot;,&quot;Jo&quot;,&quot;Sh&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 682*((e.year()-(e.year()&gt;0?474:473))%2820+474+38)%2816&lt;682},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-(n.dayOfWeek()+1)%7,&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t-(t&gt;=0?474:473),s=474+o(a,2820);return r+(e&lt;=7?31*(e-1):30*(e-1)+6)+Math.floor((682*s-110)/2816)+365*(s-1)+1029983*Math.floor(a/2820)+this.jdEpoch-1},fromJD:function(t){var e=(t=Math.floor(t)+.5)-this.toJD(475,1,1),r=Math.floor(e/1029983),n=o(e,1029983),i=2820;if(1029982!==n){var a=Math.floor(n/366),s=o(n,366);i=Math.floor((2134*a+2816*s+2815)/1028522)+a+1}var l=i+2820*r+474;l=l&lt;=0?l-1:l;var c=t-this.toJD(l,1,1)+1,u=c&lt;=186?Math.ceil(c/31):Math.ceil((c-6)/30),f=t-this.toJD(l,u,1)+1;return this.newDate(l,u,f)}}),n.calendars.persian=a,n.calendars.jalali=a},{&quot;../main&quot;:346,&quot;object-assign&quot;:247}],343:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Taiwan&quot;,jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Taiwan&quot;,epochs:[&quot;BROC&quot;,&quot;ROC&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:1,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t+this.yearsOffset+(t&gt;=-this.yearsOffset&amp;&amp;t&lt;=-1?1:0)},_g2tYear:function(t){return t-this.yearsOffset-(t&gt;=1&amp;&amp;t&lt;=this.yearsOffset?1:0)}}),n.calendars.taiwan=o},{&quot;../main&quot;:346,&quot;object-assign&quot;:247}],344:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Thai&quot;,jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Thai&quot;,epochs:[&quot;BBE&quot;,&quot;BE&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t-this.yearsOffset-(t&gt;=1&amp;&amp;t&lt;=this.yearsOffset?1:0)},_g2tYear:function(t){return t+this.yearsOffset+(t&gt;=-this.yearsOffset&amp;&amp;t&lt;=-1?1:0)}}),n.calendars.thai=o},{&quot;../main&quot;:346,&quot;object-assign&quot;:247}],345:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;UmmAlQura&quot;,hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Umm al-Qura&quot;,epochs:[&quot;BH&quot;,&quot;AH&quot;],monthNames:[&quot;Al-Muharram&quot;,&quot;Safar&quot;,&quot;Rabi' al-awwal&quot;,&quot;Rabi' Al-Thani&quot;,&quot;Jumada Al-Awwal&quot;,&quot;Jumada Al-Thani&quot;,&quot;Rajab&quot;,&quot;Sha'aban&quot;,&quot;Ramadan&quot;,&quot;Shawwal&quot;,&quot;Dhu al-Qi'dah&quot;,&quot;Dhu al-Hijjah&quot;],monthNamesShort:[&quot;Muh&quot;,&quot;Saf&quot;,&quot;Rab1&quot;,&quot;Rab2&quot;,&quot;Jum1&quot;,&quot;Jum2&quot;,&quot;Raj&quot;,&quot;Sha'&quot;,&quot;Ram&quot;,&quot;Shaw&quot;,&quot;DhuQ&quot;,&quot;DhuH&quot;],dayNames:[&quot;Yawm al-Ahad&quot;,&quot;Yawm al-Ithnain&quot;,&quot;Yawm al-Thal\u0101th\u0101\u2019&quot;,&quot;Yawm al-Arba\u2018\u0101\u2019&quot;,&quot;Yawm al-Kham\u012bs&quot;,&quot;Yawm al-Jum\u2018a&quot;,&quot;Yawm al-Sabt&quot;],dayNamesMin:[&quot;Ah&quot;,&quot;Ith&quot;,&quot;Th&quot;,&quot;Ar&quot;,&quot;Kh&quot;,&quot;Ju&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!0}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 355===this.daysInYear(e.year())},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){for(var e=0,r=1;r&lt;=12;r++)e+=this.daysInMonth(t,r);return e},daysInMonth:function(t,e){for(var r=this._validate(t,e,this.minDay,n.local.invalidMonth).toJD()-24e5+.5,i=0,a=0;a&lt;o.length;a++){if(o[a]&gt;r)return o[i]-o[i-1];i++}return 30},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate),a=12*(i.year()-1)+i.month()-15292;return i.day()+o[a-1]-1+24e5-.5},fromJD:function(t){for(var e=t-24e5+.5,r=0,n=0;n&lt;o.length&amp;&amp;!(o[n]&gt;e);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),s=a+1,l=i-12*a,c=e-o[r-1]+1;return this.newDate(s,l,c)},isValid:function(t,e,r){var i=n.baseCalendar.prototype.isValid.apply(this,arguments);return i&amp;&amp;(i=(t=null!=t.year?t.year:t)&gt;=1276&amp;&amp;t&lt;=1500),i},_validate:function(t,e,r,i){var a=n.baseCalendar.prototype._validate.apply(this,arguments);if(a.year&lt;1276||a.year&gt;1500)throw i.replace(/\{0\}/,this.local.name);return a}}),n.calendars.ummalqura=a;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},{&quot;../main&quot;:346,&quot;object-assign&quot;:247}],346:[function(t,e,r){var n=t(&quot;object-assign&quot;);function i(){this.regionalOptions=[],this.regionalOptions[&quot;&quot;]={invalidCalendar:&quot;Calendar {0} not found&quot;,invalidDate:&quot;Invalid {0} date&quot;,invalidMonth:&quot;Invalid {0} month&quot;,invalidYear:&quot;Invalid {0} year&quot;,differentCalendars:&quot;Cannot mix {0} and {1} dates&quot;},this.local=this.regionalOptions[&quot;&quot;],this.calendars={},this._localCals={}}function a(t,e,r,n){if(this._calendar=t,this._year=e,this._month=r,this._day=n,0===this._calendar._validateLevel&amp;&amp;!this._calendar.isValid(this._year,this._month,this._day))throw(c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function o(t,e){return&quot;000000&quot;.substring(0,e-(t=&quot;&quot;+t).length)+t}function s(){this.shortYearCutoff=&quot;+10&quot;}function l(t){this.local=this.regionalOptions[t]||this.regionalOptions[&quot;&quot;]}n(i.prototype,{instance:function(t,e){t=(t||&quot;gregorian&quot;).toLowerCase(),e=e||&quot;&quot;;var r=this._localCals[t+&quot;-&quot;+e];if(!r&amp;&amp;this.calendars[t]&amp;&amp;(r=new this.calendars[t](e),this._localCals[t+&quot;-&quot;+e]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[&quot;&quot;].invalidCalendar).replace(/\{0\}/,t);return r},newDate:function(t,e,r,n,i){return(n=(null!=t&amp;&amp;t.year?t.calendar():&quot;string&quot;==typeof n?this.instance(n,i):n)||this.instance()).newDate(t,e,r)},substituteDigits:function(t){return function(e){return(e+&quot;&quot;).replace(/[0-9]/g,(function(e){return t[e]}))}},substituteChineseDigits:function(t,e){return function(r){for(var n=&quot;&quot;,i=0;r&gt;0;){var a=r%10;n=(0===a?&quot;&quot;:t[a]+e[i])+n,i++,r=Math.floor(r/10)}return 0===n.indexOf(t[1]+e[1])&amp;&amp;(n=n.substr(1)),n||t[0]}}}),n(a.prototype,{newDate:function(t,e,r){return this._calendar.newDate(null==t?this:t,e,r)},year:function(t){return 0===arguments.length?this._year:this.set(t,&quot;y&quot;)},month:function(t){return 0===arguments.length?this._month:this.set(t,&quot;m&quot;)},day:function(t){return 0===arguments.length?this._day:this.set(t,&quot;d&quot;)},date:function(t,e,r){if(!this._calendar.isValid(t,e,r))throw(c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=t,this._month=e,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(t,e){return this._calendar.add(this,t,e)},set:function(t,e){return this._calendar.set(this,t,e)},compareTo:function(t){if(this._calendar.name!==t._calendar.name)throw(c.local.differentCalendars||c.regionalOptions[&quot;&quot;].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,t._calendar.local.name);var e=this._year!==t._year?this._year-t._year:this._month!==t._month?this.monthOfYear()-t.monthOfYear():this._day-t._day;return 0===e?0:e&lt;0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(t){return this._calendar.fromJD(t)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(t){return this._calendar.fromJSDate(t)},toString:function(){return(this.year()&lt;0?&quot;-&quot;:&quot;&quot;)+o(Math.abs(this.year()),4)+&quot;-&quot;+o(this.month(),2)+&quot;-&quot;+o(this.day(),2)}}),n(s.prototype,{_validateLevel:0,newDate:function(t,e,r){return null==t?this.today():(t.year&amp;&amp;(this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),r=t.day(),e=t.month(),t=t.year()),new a(this,t,e,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear).year()&lt;0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return(e.year()&lt;0?&quot;-&quot;:&quot;&quot;)+o(Math.abs(e.year()),4)},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear),12},monthOfYear:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(t,e){var r=(e+this.firstMonth-2*this.minMonth)%this.monthsInYear(t)+this.minMonth;return this._validate(t,r,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth),r},daysInYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return this.leapYear(e)?366:365},dayOfYear:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(t,e,r){return this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),{}},add:function(t,e,r){return this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),this._correctAdd(t,this._add(t,e,r),e,r)},_add:function(t,e,r){if(this._validateLevel++,&quot;d&quot;===r||&quot;w&quot;===r){var n=t.toJD()+e*(&quot;w&quot;===r?this.daysInWeek():1),i=t.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=t.year()+(&quot;y&quot;===r?e:0),o=t.monthOfYear()+(&quot;m&quot;===r?e:0);i=t.day();&quot;y&quot;===r?(t.month()!==this.fromMonthOfYear(a,o)&amp;&amp;(o=this.newDate(a,t.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):&quot;m&quot;===r&amp;&amp;(!function(t){for(;o&lt;t.minMonth;)a--,o+=t.monthsInYear(a);for(var e=t.monthsInYear(a);o&gt;e-1+t.minMonth;)a++,o-=e,e=t.monthsInYear(a)}(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var s=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,s}catch(t){throw this._validateLevel--,t}},_correctAdd:function(t,e,r,n){if(!(this.hasYearZero||&quot;y&quot;!==n&amp;&amp;&quot;m&quot;!==n||0!==e[0]&amp;&amp;t.year()&gt;0==e[0]&gt;0)){var i={y:[1,1,&quot;y&quot;],m:[1,this.monthsInYear(-1),&quot;m&quot;],w:[this.daysInWeek(),this.daysInYear(-1),&quot;d&quot;],d:[1,this.daysInYear(-1),&quot;d&quot;]}[n],a=r&lt;0?-1:1;e=this._add(t,r*i[0]+a*i[1],i[2])}return t.date(e[0],e[1],e[2])},set:function(t,e,r){this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);var n=&quot;y&quot;===r?e:t.year(),i=&quot;m&quot;===r?e:t.month(),a=&quot;d&quot;===r?e:t.day();return&quot;y&quot;!==r&amp;&amp;&quot;m&quot;!==r||(a=Math.min(a,this.daysInMonth(n,i))),t.date(n,i,a)},isValid:function(t,e,r){this._validateLevel++;var n=this.hasYearZero||0!==t;if(n){var i=this.newDate(t,e,this.minDay);n=e&gt;=this.minMonth&amp;&amp;e-this.minMonth&lt;this.monthsInYear(i)&amp;&amp;r&gt;=this.minDay&amp;&amp;r-this.minDay&lt;this.daysInMonth(i)}return this._validateLevel--,n},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return c.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(t){return this.fromJD(c.instance().fromJSDate(t).toJD())},_validate:function(t,e,r,n){if(t.year){if(0===this._validateLevel&amp;&amp;this.name!==t.calendar().name)throw(c.local.differentCalendars||c.regionalOptions[&quot;&quot;].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,t.calendar().local.name);return t}try{if(this._validateLevel++,1===this._validateLevel&amp;&amp;!this.isValid(t,e,r))throw n.replace(/\{0\}/,this.local.name);var i=this.newDate(t,e,r);return this._validateLevel--,i}catch(t){throw this._validateLevel--,t}}}),l.prototype=new s,n(l.prototype,{name:&quot;Gregorian&quot;,jdEpoch:1721425.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Gregorian&quot;,epochs:[&quot;BCE&quot;,&quot;CE&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;mm/dd/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==0&amp;&amp;(t%100!=0||t%400==0)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);t=n.year(),e=n.month(),r=n.day(),t&lt;0&amp;&amp;t++,e&lt;3&amp;&amp;(e+=12,t--);var i=Math.floor(t/100),a=2-i+Math.floor(i/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r+a-1524.5},fromJD:function(t){var e=Math.floor(t+.5),r=Math.floor((e-1867216.25)/36524.25),n=(r=e+1+r-Math.floor(r/4))+1524,i=Math.floor((n-122.1)/365.25),a=Math.floor(365.25*i),o=Math.floor((n-a)/30.6001),s=n-a-Math.floor(30.6001*o),l=o-(o&gt;13.5?13:1),c=i-(l&gt;2.5?4716:4715);return c&lt;=0&amp;&amp;c--,this.newDate(c,l,s)},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()&gt;12?i.getHours()+2:0),i},fromJSDate:function(t){return this.newDate(t.getFullYear(),t.getMonth()+1,t.getDate())}});var c=e.exports=new i;c.cdate=a,c.baseCalendar=s,c.calendars.gregorian=l},{&quot;object-assign&quot;:247}],347:[function(t,e,r){var n=t(&quot;object-assign&quot;),i=t(&quot;./main&quot;);n(i.regionalOptions[&quot;&quot;],{invalidArguments:&quot;Invalid arguments&quot;,invalidFormat:&quot;Cannot format a date from another calendar&quot;,missingNumberAt:&quot;Missing number at position {0}&quot;,unknownNameAt:&quot;Unknown name at position {0}&quot;,unexpectedLiteralAt:&quot;Unexpected literal at position {0}&quot;,unexpectedText:&quot;Additional text found at end&quot;}),i.local=i.regionalOptions[&quot;&quot;],n(i.cdate.prototype,{formatDate:function(t,e){return&quot;string&quot;!=typeof t&amp;&amp;(e=t,t=&quot;&quot;),this._calendar.formatDate(t||&quot;&quot;,this,e)}}),n(i.baseCalendar.prototype,{UNIX_EPOCH:i.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:i.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:&quot;yyyy-mm-dd&quot;,COOKIE:&quot;D, dd M yyyy&quot;,FULL:&quot;DD, MM d, yyyy&quot;,ISO_8601:&quot;yyyy-mm-dd&quot;,JULIAN:&quot;J&quot;,RFC_822:&quot;D, d M yy&quot;,RFC_850:&quot;DD, dd-M-yy&quot;,RFC_1036:&quot;D, d M yy&quot;,RFC_1123:&quot;D, d M yyyy&quot;,RFC_2822:&quot;D, d M yyyy&quot;,RSS:&quot;D, d M yy&quot;,TICKS:&quot;!&quot;,TIMESTAMP:&quot;@&quot;,W3C:&quot;yyyy-mm-dd&quot;,formatDate:function(t,e,r){if(&quot;string&quot;!=typeof t&amp;&amp;(r=e,e=t,t=&quot;&quot;),!e)return&quot;&quot;;if(e.calendar()!==this)throw i.local.invalidFormat||i.regionalOptions[&quot;&quot;].invalidFormat;t=t||this.local.dateFormat;for(var n,a,o,s,l=(r=r||{}).dayNamesShort||this.local.dayNamesShort,c=r.dayNames||this.local.dayNames,u=r.monthNumbers||this.local.monthNumbers,f=r.monthNamesShort||this.local.monthNamesShort,h=r.monthNames||this.local.monthNames,p=(r.calculateWeek||this.local.calculateWeek,function(e,r){for(var n=1;w+n&lt;t.length&amp;&amp;t.charAt(w+n)===e;)n++;return w+=n-1,Math.floor(n/(r||1))&gt;1}),d=function(t,e,r,n){var i=&quot;&quot;+e;if(p(t,n))for(;i.length&lt;r;)i=&quot;0&quot;+i;return i},m=this,g=function(t){return&quot;function&quot;==typeof u?u.call(m,t,p(&quot;m&quot;)):x(d(&quot;m&quot;,t.month(),2))},v=function(t,e){return e?&quot;function&quot;==typeof h?h.call(m,t):h[t.month()-m.minMonth]:&quot;function&quot;==typeof f?f.call(m,t):f[t.month()-m.minMonth]},y=this.local.digits,x=function(t){return r.localNumbers&amp;&amp;y?y(t):t},b=&quot;&quot;,_=!1,w=0;w&lt;t.length;w++)if(_)&quot;'&quot;!==t.charAt(w)||p(&quot;'&quot;)?b+=t.charAt(w):_=!1;else switch(t.charAt(w)){case&quot;d&quot;:b+=x(d(&quot;d&quot;,e.day(),2));break;case&quot;D&quot;:b+=(n=&quot;D&quot;,a=e.dayOfWeek(),o=l,s=c,p(n)?s[a]:o[a]);break;case&quot;o&quot;:b+=d(&quot;o&quot;,e.dayOfYear(),3);break;case&quot;w&quot;:b+=d(&quot;w&quot;,e.weekOfYear(),2);break;case&quot;m&quot;:b+=g(e);break;case&quot;M&quot;:b+=v(e,p(&quot;M&quot;));break;case&quot;y&quot;:b+=p(&quot;y&quot;,2)?e.year():(e.year()%100&lt;10?&quot;0&quot;:&quot;&quot;)+e.year()%100;break;case&quot;Y&quot;:p(&quot;Y&quot;,2),b+=e.formatYear();break;case&quot;J&quot;:b+=e.toJD();break;case&quot;@&quot;:b+=(e.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case&quot;!&quot;:b+=(e.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case&quot;'&quot;:p(&quot;'&quot;)?b+=&quot;'&quot;:_=!0;break;default:b+=t.charAt(w)}return b},parseDate:function(t,e,r){if(null==e)throw i.local.invalidArguments||i.regionalOptions[&quot;&quot;].invalidArguments;if(&quot;&quot;===(e=&quot;object&quot;==typeof e?e.toString():e+&quot;&quot;))return null;t=t||this.local.dateFormat;var n=(r=r||{}).shortYearCutoff||this.shortYearCutoff;n=&quot;string&quot;!=typeof n?n:this.today().year()%100+parseInt(n,10);for(var a=r.dayNamesShort||this.local.dayNamesShort,o=r.dayNames||this.local.dayNames,s=r.parseMonth||this.local.parseMonth,l=r.monthNumbers||this.local.monthNumbers,c=r.monthNamesShort||this.local.monthNamesShort,u=r.monthNames||this.local.monthNames,f=-1,h=-1,p=-1,d=-1,m=-1,g=!1,v=!1,y=function(e,r){for(var n=1;M+n&lt;t.length&amp;&amp;t.charAt(M+n)===e;)n++;return M+=n-1,Math.floor(n/(r||1))&gt;1},x=function(t,r){var n=y(t,r),a=[2,3,n?4:2,n?4:2,10,11,20][&quot;oyYJ@!&quot;.indexOf(t)+1],o=new RegExp(&quot;^-?\\d{1,&quot;+a+&quot;}&quot;),s=e.substring(A).match(o);if(!s)throw(i.local.missingNumberAt||i.regionalOptions[&quot;&quot;].missingNumberAt).replace(/\{0\}/,A);return A+=s[0].length,parseInt(s[0],10)},b=this,_=function(){if(&quot;function&quot;==typeof l){y(&quot;m&quot;);var t=l.call(b,e.substring(A));return A+=t.length,t}return x(&quot;m&quot;)},w=function(t,r,n,a){for(var o=y(t,a)?n:r,s=0;s&lt;o.length;s++)if(e.substr(A,o[s].length).toLowerCase()===o[s].toLowerCase())return A+=o[s].length,s+b.minMonth;throw(i.local.unknownNameAt||i.regionalOptions[&quot;&quot;].unknownNameAt).replace(/\{0\}/,A)},T=function(){if(&quot;function&quot;==typeof u){var t=y(&quot;M&quot;)?u.call(b,e.substring(A)):c.call(b,e.substring(A));return A+=t.length,t}return w(&quot;M&quot;,c,u)},k=function(){if(e.charAt(A)!==t.charAt(M))throw(i.local.unexpectedLiteralAt||i.regionalOptions[&quot;&quot;].unexpectedLiteralAt).replace(/\{0\}/,A);A++},A=0,M=0;M&lt;t.length;M++)if(v)&quot;'&quot;!==t.charAt(M)||y(&quot;'&quot;)?k():v=!1;else switch(t.charAt(M)){case&quot;d&quot;:d=x(&quot;d&quot;);break;case&quot;D&quot;:w(&quot;D&quot;,a,o);break;case&quot;o&quot;:m=x(&quot;o&quot;);break;case&quot;w&quot;:x(&quot;w&quot;);break;case&quot;m&quot;:p=_();break;case&quot;M&quot;:p=T();break;case&quot;y&quot;:var S=M;g=!y(&quot;y&quot;,2),M=S,h=x(&quot;y&quot;,2);break;case&quot;Y&quot;:h=x(&quot;Y&quot;,2);break;case&quot;J&quot;:f=x(&quot;J&quot;)+.5,&quot;.&quot;===e.charAt(A)&amp;&amp;(A++,x(&quot;J&quot;));break;case&quot;@&quot;:f=x(&quot;@&quot;)/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case&quot;!&quot;:f=x(&quot;!&quot;)/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case&quot;*&quot;:A=e.length;break;case&quot;'&quot;:y(&quot;'&quot;)?k():v=!0;break;default:k()}if(A&lt;e.length)throw i.local.unexpectedText||i.regionalOptions[&quot;&quot;].unexpectedText;if(-1===h?h=this.today().year():h&lt;100&amp;&amp;g&amp;&amp;(h+=-1===n?1900:this.today().year()-this.today().year()%100-(h&lt;=n?0:100)),&quot;string&quot;==typeof p&amp;&amp;(p=s.call(this,h,p)),m&gt;-1){p=1,d=m;for(var E=this.daysInMonth(h,p);d&gt;E;E=this.daysInMonth(h,p))p++,d-=E}return f&gt;-1?this.fromJD(f):this.newDate(h,p,d)},determineDate:function(t,e,r,n,i){r&amp;&amp;&quot;object&quot;!=typeof r&amp;&amp;(i=n,n=r,r=null),&quot;string&quot;!=typeof n&amp;&amp;(i=n,n=&quot;&quot;);var a=this;return e=e?e.newDate():null,t=null==t?e:&quot;string&quot;==typeof t?function(t){try{return a.parseDate(n,t,i)}catch(t){}for(var e=((t=t.toLowerCase()).match(/^c/)&amp;&amp;r?r.newDate():null)||a.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,s=o.exec(t);s;)e.add(parseInt(s[1],10),s[2]||&quot;d&quot;),s=o.exec(t);return e}(t):&quot;number&quot;==typeof t?isNaN(t)||t===1/0||t===-1/0?e:a.today().add(t,&quot;d&quot;):a.newDate(t)}})},{&quot;./main&quot;:346,&quot;object-assign&quot;:247}],348:[function(t,e,r){&quot;use strict&quot;;e.exports=[{path:&quot;&quot;,backoff:0},{path:&quot;M-2.4,-3V3L0.6,0Z&quot;,backoff:.6},{path:&quot;M-3.7,-2.5V2.5L1.3,0Z&quot;,backoff:1.3},{path:&quot;M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z&quot;,backoff:1.55},{path:&quot;M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z&quot;,backoff:1.6},{path:&quot;M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z&quot;,backoff:2},{path:&quot;M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z&quot;,backoff:0,noRotate:!0},{path:&quot;M2,2V-2H-2V2Z&quot;,backoff:0,noRotate:!0}]},{}],349:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./arrow_paths&quot;),i=t(&quot;../../plots/font_attributes&quot;),a=t(&quot;../../plots/cartesian/constants&quot;),o=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=o(&quot;annotation&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},text:{valType:&quot;string&quot;,editType:&quot;calc+arraydraw&quot;},textangle:{valType:&quot;angle&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},font:i({editType:&quot;calc+arraydraw&quot;,colorEditType:&quot;arraydraw&quot;}),width:{valType:&quot;number&quot;,min:1,dflt:null,editType:&quot;calc+arraydraw&quot;},height:{valType:&quot;number&quot;,min:1,dflt:null,editType:&quot;calc+arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;center&quot;,editType:&quot;arraydraw&quot;},valign:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;,editType:&quot;arraydraw&quot;},bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},bordercolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},borderpad:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc+arraydraw&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc+arraydraw&quot;},showarrow:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},arrowcolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},arrowhead:{valType:&quot;integer&quot;,min:0,max:n.length,dflt:1,editType:&quot;arraydraw&quot;},startarrowhead:{valType:&quot;integer&quot;,min:0,max:n.length,dflt:1,editType:&quot;arraydraw&quot;},arrowside:{valType:&quot;flaglist&quot;,flags:[&quot;end&quot;,&quot;start&quot;],extras:[&quot;none&quot;],dflt:&quot;end&quot;,editType:&quot;arraydraw&quot;},arrowsize:{valType:&quot;number&quot;,min:.3,dflt:1,editType:&quot;calc+arraydraw&quot;},startarrowsize:{valType:&quot;number&quot;,min:.3,dflt:1,editType:&quot;calc+arraydraw&quot;},arrowwidth:{valType:&quot;number&quot;,min:.1,editType:&quot;calc+arraydraw&quot;},standoff:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc+arraydraw&quot;},startstandoff:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc+arraydraw&quot;},ax:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},ay:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},axref:{valType:&quot;enumerated&quot;,dflt:&quot;pixel&quot;,values:[&quot;pixel&quot;,a.idRegex.x.toString()],editType:&quot;calc&quot;},ayref:{valType:&quot;enumerated&quot;,dflt:&quot;pixel&quot;,values:[&quot;pixel&quot;,a.idRegex.y.toString()],editType:&quot;calc&quot;},xref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,a.idRegex.x.toString()],editType:&quot;calc&quot;},x:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;auto&quot;,editType:&quot;calc+arraydraw&quot;},xshift:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},yref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,a.idRegex.y.toString()],editType:&quot;calc&quot;},y:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;auto&quot;,editType:&quot;calc+arraydraw&quot;},yshift:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},clicktoshow:{valType:&quot;enumerated&quot;,values:[!1,&quot;onoff&quot;,&quot;onout&quot;],dflt:!1,editType:&quot;arraydraw&quot;},xclick:{valType:&quot;any&quot;,editType:&quot;arraydraw&quot;},yclick:{valType:&quot;any&quot;,editType:&quot;arraydraw&quot;},hovertext:{valType:&quot;string&quot;,editType:&quot;arraydraw&quot;},hoverlabel:{bgcolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},bordercolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},font:i({editType:&quot;arraydraw&quot;}),editType:&quot;arraydraw&quot;},captureevents:{valType:&quot;boolean&quot;,editType:&quot;arraydraw&quot;},editType:&quot;calc&quot;,_deprecated:{ref:{valType:&quot;string&quot;,editType:&quot;calc&quot;}}})},{&quot;../../constants/axis_placeable_objects&quot;:472,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/cartesian/constants&quot;:561,&quot;../../plots/font_attributes&quot;:585,&quot;./arrow_paths&quot;:348}],350:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;./draw&quot;).draw;function o(t){var e=t._fullLayout;n.filterVisible(e.annotations).forEach((function(e){var r=i.getFromId(t,e.xref),n=i.getFromId(t,e.yref),a=i.getRefType(e.xref),o=i.getRefType(e.yref);e._extremes={},&quot;range&quot;===a&amp;&amp;s(e,r),&quot;range&quot;===o&amp;&amp;s(e,n)}))}function s(t,e){var r,n=e._id,a=n.charAt(0),o=t[a],s=t[&quot;a&quot;+a],l=t[a+&quot;ref&quot;],c=t[&quot;a&quot;+a+&quot;ref&quot;],u=t[&quot;_&quot;+a+&quot;padplus&quot;],f=t[&quot;_&quot;+a+&quot;padminus&quot;],h={x:1,y:-1}[a]*t[a+&quot;shift&quot;],p=3*t.arrowsize*t.arrowwidth||0,d=p+h,m=p-h,g=3*t.startarrowsize*t.arrowwidth||0,v=g+h,y=g-h;if(c===l){var x=i.findExtremes(e,[e.r2c(o)],{ppadplus:d,ppadminus:m}),b=i.findExtremes(e,[e.r2c(s)],{ppadplus:Math.max(u,v),ppadminus:Math.max(f,y)});r={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else v=s?v+s:v,y=s?y-s:y,r=i.findExtremes(e,[e.r2c(o)],{ppadplus:Math.max(u,d,v),ppadminus:Math.max(f,m,y)});t._extremes[n]=r}e.exports=function(t){var e=t._fullLayout;if(n.filterVisible(e.annotations).length&amp;&amp;t._fullData.length)return n.syncOrAsync([a,o],t)}},{&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554,&quot;./draw&quot;:355}],351:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plot_api/plot_template&quot;).arrayEditor;function o(t,e){var r,n,i,a,o,l,c,u=t._fullLayout.annotations,f=[],h=[],p=[],d=(e||[]).length;for(r=0;r&lt;u.length;r++)if(a=(i=u[r]).clicktoshow){for(n=0;n&lt;d;n++)if(l=(o=e[n]).xaxis,c=o.yaxis,l._id===i.xref&amp;&amp;c._id===i.yref&amp;&amp;l.d2r(o.x)===s(i._xclick,l)&amp;&amp;c.d2r(o.y)===s(i._yclick,c)){(i.visible?&quot;onout&quot;===a?h:p:f).push(r);break}n===d&amp;&amp;i.visible&amp;&amp;&quot;onout&quot;===a&amp;&amp;h.push(r)}return{on:f,off:h,explicitOff:p}}function s(t,e){return&quot;log&quot;===e.type?e.l2r(t):e.d2r(t)}e.exports={hasClickToShow:function(t,e){var r=o(t,e);return r.on.length&gt;0||r.explicitOff.length&gt;0},onClick:function(t,e){var r,s,l=o(t,e),c=l.on,u=l.off.concat(l.explicitOff),f={},h=t._fullLayout.annotations;if(!c.length&amp;&amp;!u.length)return;for(r=0;r&lt;c.length;r++)(s=a(t.layout,&quot;annotations&quot;,h[c[r]])).modifyItem(&quot;visible&quot;,!0),n.extendFlat(f,s.getUpdateObj());for(r=0;r&lt;u.length;r++)(s=a(t.layout,&quot;annotations&quot;,h[u[r]])).modifyItem(&quot;visible&quot;,!1),n.extendFlat(f,s.getUpdateObj());return i.call(&quot;update&quot;,t,{},f)}}},{&quot;../../lib&quot;:503,&quot;../../plot_api/plot_template&quot;:543,&quot;../../registry&quot;:638}],352:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;);e.exports=function(t,e,r,a){a(&quot;opacity&quot;);var o=a(&quot;bgcolor&quot;),s=a(&quot;bordercolor&quot;),l=i.opacity(s);a(&quot;borderpad&quot;);var c=a(&quot;borderwidth&quot;),u=a(&quot;showarrow&quot;);if(a(&quot;text&quot;,u?&quot; &quot;:r._dfltTitle.annotation),a(&quot;textangle&quot;),n.coerceFont(a,&quot;font&quot;,r.font),a(&quot;width&quot;),a(&quot;align&quot;),a(&quot;height&quot;)&amp;&amp;a(&quot;valign&quot;),u){var f,h,p=a(&quot;arrowside&quot;);-1!==p.indexOf(&quot;end&quot;)&amp;&amp;(f=a(&quot;arrowhead&quot;),h=a(&quot;arrowsize&quot;)),-1!==p.indexOf(&quot;start&quot;)&amp;&amp;(a(&quot;startarrowhead&quot;,f),a(&quot;startarrowsize&quot;,h)),a(&quot;arrowcolor&quot;,l?e.bordercolor:i.defaultLine),a(&quot;arrowwidth&quot;,2*(l&amp;&amp;c||1)),a(&quot;standoff&quot;),a(&quot;startstandoff&quot;)}var d=a(&quot;hovertext&quot;),m=r.hoverlabel||{};if(d){var g=a(&quot;hoverlabel.bgcolor&quot;,m.bgcolor||(i.opacity(o)?i.rgb(o):i.defaultLine)),v=a(&quot;hoverlabel.bordercolor&quot;,m.bordercolor||i.contrast(g));n.coerceFont(a,&quot;hoverlabel.font&quot;,{family:m.font.family,size:m.font.size,color:m.font.color||v})}a(&quot;captureevents&quot;,!!d)}},{&quot;../../lib&quot;:503,&quot;../color&quot;:366}],353:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib/to_log_range&quot;);e.exports=function(t,e,r,a){e=e||{};var o=&quot;log&quot;===r&amp;&amp;&quot;linear&quot;===e.type,s=&quot;linear&quot;===r&amp;&amp;&quot;log&quot;===e.type;if(o||s)for(var l,c,u=t._fullLayout.annotations,f=e._id.charAt(0),h=0;h&lt;u.length;h++)l=u[h],c=&quot;annotations[&quot;+h+&quot;].&quot;,l[f+&quot;ref&quot;]===e._id&amp;&amp;p(f),l[&quot;a&quot;+f+&quot;ref&quot;]===e._id&amp;&amp;p(&quot;a&quot;+f);function p(t){var r=l[t],s=null;s=o?i(r,e.range):Math.pow(10,r),n(s)||(s=null),a(c+t,s)}}},{&quot;../../lib/to_log_range&quot;:531,&quot;fast-isnumeric&quot;:190}],354:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./common_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r){function a(r,i){return n.coerce(t,e,s,r,i)}var l=a(&quot;visible&quot;),c=a(&quot;clicktoshow&quot;);if(l||c){o(t,e,r,a);for(var u=e.showarrow,f=[&quot;x&quot;,&quot;y&quot;],h=[-10,-30],p={_fullLayout:r},d=0;d&lt;2;d++){var m=f[d],g=i.coerceRef(t,e,p,m,&quot;&quot;,&quot;paper&quot;);if(&quot;paper&quot;!==g)i.getFromId(p,g)._annIndices.push(e._index);if(i.coercePosition(e,p,a,g,m,.5),u){var v=&quot;a&quot;+m,y=i.coerceRef(t,e,p,v,&quot;pixel&quot;,[&quot;pixel&quot;,&quot;paper&quot;]);&quot;pixel&quot;!==y&amp;&amp;y!==g&amp;&amp;(y=e[v]=&quot;pixel&quot;);var x=&quot;pixel&quot;===y?h[d]:.4;i.coercePosition(e,p,a,y,v,x)}a(m+&quot;anchor&quot;),a(m+&quot;shift&quot;)}if(n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),u&amp;&amp;n.noneOrAll(t,e,[&quot;ax&quot;,&quot;ay&quot;]),c){var b=a(&quot;xclick&quot;),_=a(&quot;yclick&quot;);e._xclick=void 0===b?e.x:i.cleanPosition(b,p,e.xref),e._yclick=void 0===_?e.y:i.cleanPosition(_,p,e.yref)}}}e.exports=function(t,e){a(t,e,{name:&quot;annotations&quot;,handleItemDefaults:l})}},{&quot;../../lib&quot;:503,&quot;../../plots/array_container_defaults&quot;:549,&quot;../../plots/cartesian/axes&quot;:554,&quot;./attributes&quot;:349,&quot;./common_defaults&quot;:352}],355:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;../color&quot;),u=t(&quot;../drawing&quot;),f=t(&quot;../fx&quot;),h=t(&quot;../../lib/svg_text_utils&quot;),p=t(&quot;../../lib/setcursor&quot;),d=t(&quot;../dragelement&quot;),m=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,g=t(&quot;./draw_arrow_head&quot;);function v(t,e){var r=t._fullLayout.annotations[e]||{},n=l.getFromId(t,r.xref),i=l.getFromId(t,r.yref);n&amp;&amp;n.setScale(),i&amp;&amp;i.setScale(),x(t,r,e,!1,n,i)}function y(t,e,r,n,i){var a=i[r],o=i[r+&quot;ref&quot;],s=-1!==r.indexOf(&quot;y&quot;),c=&quot;domain&quot;===l.getRefType(o),u=s?n.h:n.w;return t?c?a+(s?-e:e)/t._length:t.p2r(t.r2p(a)+e):a+(s?-e:e)/u}function x(t,e,r,a,v,x){var b,_,w=t._fullLayout,T=t._fullLayout._size,k=t._context.edits;a?(b=&quot;annotation-&quot;+a,_=a+&quot;.annotations&quot;):(b=&quot;annotation&quot;,_=&quot;annotations&quot;);var A=m(t.layout,_,e),M=A.modifyBase,S=A.modifyItem,E=A.getUpdateObj;w._infolayer.selectAll(&quot;.&quot;+b+'[data-index=&quot;'+r+'&quot;]').remove();var L=&quot;clip&quot;+w._uid+&quot;_ann&quot;+r;if(e._input&amp;&amp;!1!==e.visible){var C={x:{},y:{}},P=+e.textangle||0,I=w._infolayer.append(&quot;g&quot;).classed(b,!0).attr(&quot;data-index&quot;,String(r)).style(&quot;opacity&quot;,e.opacity),O=I.append(&quot;g&quot;).classed(&quot;annotation-text-g&quot;,!0),z=k[e.showarrow?&quot;annotationTail&quot;:&quot;annotationPosition&quot;],D=e.captureevents||k.annotationText||z,R=O.append(&quot;g&quot;).style(&quot;pointer-events&quot;,D?&quot;all&quot;:null).call(p,&quot;pointer&quot;).on(&quot;click&quot;,(function(){t._dragging=!1,t.emit(&quot;plotly_clickannotation&quot;,Y(n.event))}));e.hovertext&amp;&amp;R.on(&quot;mouseover&quot;,(function(){var r=e.hoverlabel,n=r.font,i=this.getBoundingClientRect(),a=t.getBoundingClientRect();f.loneHover({x0:i.left-a.left,x1:i.right-a.left,y:(i.top+i.bottom)/2-a.top,text:e.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:w._hoverlayer.node(),outerContainer:w._paper.node(),gd:t})})).on(&quot;mouseout&quot;,(function(){f.loneUnhover(w._hoverlayer.node())}));var F=e.borderwidth,B=e.borderpad,N=F+B,j=R.append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bg&quot;).style(&quot;stroke-width&quot;,F+&quot;px&quot;).call(c.stroke,e.bordercolor).call(c.fill,e.bgcolor),U=e.width||e.height,V=w._topclips.selectAll(&quot;#&quot;+L).data(U?[0]:[]);V.enter().append(&quot;clipPath&quot;).classed(&quot;annclip&quot;,!0).attr(&quot;id&quot;,L).append(&quot;rect&quot;),V.exit().remove();var H=e.font,q=w._meta?o.templateString(e.text,w._meta):e.text,G=R.append(&quot;text&quot;).classed(&quot;annotation-text&quot;,!0).text(q);k.annotationText?G.call(h.makeEditable,{delegate:R,gd:t}).call(W).on(&quot;edit&quot;,(function(r){e.text=r,this.call(W),S(&quot;text&quot;,r),v&amp;&amp;v.autorange&amp;&amp;M(v._name+&quot;.autorange&quot;,!0),x&amp;&amp;x.autorange&amp;&amp;M(x._name+&quot;.autorange&quot;,!0),i.call(&quot;_guiRelayout&quot;,t,E())})):G.call(W)}else n.selectAll(&quot;#&quot;+L).remove();function Y(t){var n={index:r,annotation:e._input,fullAnnotation:e,event:t};return a&amp;&amp;(n.subplotId=a),n}function W(r){return r.call(u.font,H).attr({&quot;text-anchor&quot;:{left:&quot;start&quot;,right:&quot;end&quot;}[e.align]||&quot;middle&quot;}),h.convertToTspans(r,t,X),r}function X(){var r=G.selectAll(&quot;a&quot;);1===r.size()&amp;&amp;r.text()===G.text()&amp;&amp;R.insert(&quot;a&quot;,&quot;:first-child&quot;).attr({&quot;xlink:xlink:href&quot;:r.attr(&quot;xlink:href&quot;),&quot;xlink:xlink:show&quot;:r.attr(&quot;xlink:show&quot;)}).style({cursor:&quot;pointer&quot;}).node().appendChild(j.node());var n=R.select(&quot;.annotation-text-math-group&quot;),f=!n.empty(),m=u.bBox((f?n:G).node()),b=m.width,_=m.height,A=e.width||b,D=e.height||_,B=Math.round(A+2*N),H=Math.round(D+2*N);function q(t,e){return&quot;auto&quot;===e&amp;&amp;(e=t&lt;1/3?&quot;left&quot;:t&gt;2/3?&quot;right&quot;:&quot;center&quot;),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[e]}for(var W=!1,X=[&quot;x&quot;,&quot;y&quot;],Z=0;Z&lt;X.length;Z++){var J,K,Q,$,tt,et=X[Z],rt=e[et+&quot;ref&quot;]||et,nt=e[&quot;a&quot;+et+&quot;ref&quot;],it={x:v,y:x}[et],at=(P+(&quot;x&quot;===et?0:-90))*Math.PI/180,ot=B*Math.cos(at),st=H*Math.sin(at),lt=Math.abs(ot)+Math.abs(st),ct=e[et+&quot;anchor&quot;],ut=e[et+&quot;shift&quot;]*(&quot;x&quot;===et?1:-1),ft=C[et],ht=l.getRefType(rt);if(it&amp;&amp;&quot;domain&quot;!==ht){var pt=it.r2fraction(e[et]);(pt&lt;0||pt&gt;1)&amp;&amp;(nt===rt?((pt=it.r2fraction(e[&quot;a&quot;+et]))&lt;0||pt&gt;1)&amp;&amp;(W=!0):W=!0),J=it._offset+it.r2p(e[et]),$=.5}else{var dt=&quot;domain&quot;===ht;&quot;x&quot;===et?(Q=e[et],J=dt?it._offset+it._length*Q:J=T.l+T.w*Q):(Q=1-e[et],J=dt?it._offset+it._length*Q:J=T.t+T.h*Q),$=e.showarrow?.5:Q}if(e.showarrow){ft.head=J;var mt=e[&quot;a&quot;+et];if(tt=ot*q(.5,e.xanchor)-st*q(.5,e.yanchor),nt===rt){var gt=l.getRefType(nt);&quot;domain&quot;===gt?(&quot;y&quot;===et&amp;&amp;(mt=1-mt),ft.tail=it._offset+it._length*mt):&quot;paper&quot;===gt?&quot;y&quot;===et?(mt=1-mt,ft.tail=T.t+T.h*mt):ft.tail=T.l+T.w*mt:ft.tail=it._offset+it.r2p(mt),K=tt}else ft.tail=J+mt,K=tt+mt;ft.text=ft.tail+tt;var vt=w[&quot;x&quot;===et?&quot;width&quot;:&quot;height&quot;];if(&quot;paper&quot;===rt&amp;&amp;(ft.head=o.constrain(ft.head,1,vt-1)),&quot;pixel&quot;===nt){var yt=-Math.max(ft.tail-3,ft.text),xt=Math.min(ft.tail+3,ft.text)-vt;yt&gt;0?(ft.tail+=yt,ft.text+=yt):xt&gt;0&amp;&amp;(ft.tail-=xt,ft.text-=xt)}ft.tail+=ut,ft.head+=ut}else K=tt=lt*q($,ct),ft.text=J+tt;ft.text+=ut,tt+=ut,K+=ut,e[&quot;_&quot;+et+&quot;padplus&quot;]=lt/2+K,e[&quot;_&quot;+et+&quot;padminus&quot;]=lt/2-K,e[&quot;_&quot;+et+&quot;size&quot;]=lt,e[&quot;_&quot;+et+&quot;shift&quot;]=tt}if(W)R.remove();else{var bt=0,_t=0;if(&quot;left&quot;!==e.align&amp;&amp;(bt=(A-b)*(&quot;center&quot;===e.align?.5:1)),&quot;top&quot;!==e.valign&amp;&amp;(_t=(D-_)*(&quot;middle&quot;===e.valign?.5:1)),f)n.select(&quot;svg&quot;).attr({x:N+bt-1,y:N+_t}).call(u.setClipUrl,U?L:null,t);else{var wt=N+_t-m.top,Tt=N+bt-m.left;G.call(h.positionText,Tt,wt).call(u.setClipUrl,U?L:null,t)}V.select(&quot;rect&quot;).call(u.setRect,N,N,A,D),j.call(u.setRect,F/2,F/2,B-F,H-F),R.call(u.setTranslate,Math.round(C.x.text-B/2),Math.round(C.y.text-H/2)),O.attr({transform:&quot;rotate(&quot;+P+&quot;,&quot;+C.x.text+&quot;,&quot;+C.y.text+&quot;)&quot;});var kt,At=function(r,n){I.selectAll(&quot;.annotation-arrow-g&quot;).remove();var l=C.x.head,f=C.y.head,h=C.x.tail+r,p=C.y.tail+n,m=C.x.text+r,b=C.y.text+n,_=o.rotationXYMatrix(P,m,b),w=o.apply2DTransform(_),A=o.apply2DTransform2(_),L=+j.attr(&quot;width&quot;),z=+j.attr(&quot;height&quot;),D=m-.5*L,F=D+L,B=b-.5*z,N=B+z,U=[[D,B,D,N],[D,N,F,N],[F,N,F,B],[F,B,D,B]].map(A);if(!U.reduce((function(t,e){return t^!!o.segmentsIntersect(l,f,l+1e6,f+1e6,e[0],e[1],e[2],e[3])}),!1)){U.forEach((function(t){var e=o.segmentsIntersect(h,p,l,f,t[0],t[1],t[2],t[3]);e&amp;&amp;(h=e.x,p=e.y)}));var V=e.arrowwidth,H=e.arrowcolor,q=e.arrowside,G=I.append(&quot;g&quot;).style({opacity:c.opacity(H)}).classed(&quot;annotation-arrow-g&quot;,!0),Y=G.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M&quot;+h+&quot;,&quot;+p+&quot;L&quot;+l+&quot;,&quot;+f).style(&quot;stroke-width&quot;,V+&quot;px&quot;).call(c.stroke,c.rgb(H));if(g(Y,q,e),k.annotationPosition&amp;&amp;Y.node().parentNode&amp;&amp;!a){var W=l,X=f;if(e.standoff){var Z=Math.sqrt(Math.pow(l-h,2)+Math.pow(f-p,2));W+=e.standoff*(h-l)/Z,X+=e.standoff*(p-f)/Z}var J,K,Q=G.append(&quot;path&quot;).classed(&quot;annotation-arrow&quot;,!0).classed(&quot;anndrag&quot;,!0).classed(&quot;cursor-move&quot;,!0).attr({d:&quot;M3,3H-3V-3H3ZM0,0L&quot;+(h-W)+&quot;,&quot;+(p-X),transform:s(W,X)}).style(&quot;stroke-width&quot;,V+6+&quot;px&quot;).call(c.stroke,&quot;rgba(0,0,0,0)&quot;).call(c.fill,&quot;rgba(0,0,0,0)&quot;);d.init({element:Q.node(),gd:t,prepFn:function(){var t=u.getTranslate(R);J=t.x,K=t.y,v&amp;&amp;v.autorange&amp;&amp;M(v._name+&quot;.autorange&quot;,!0),x&amp;&amp;x.autorange&amp;&amp;M(x._name+&quot;.autorange&quot;,!0)},moveFn:function(t,r){var n=w(J,K),i=n[0]+t,a=n[1]+r;R.call(u.setTranslate,i,a),S(&quot;x&quot;,y(v,t,&quot;x&quot;,T,e)),S(&quot;y&quot;,y(x,r,&quot;y&quot;,T,e)),e.axref===e.xref&amp;&amp;S(&quot;ax&quot;,y(v,t,&quot;ax&quot;,T,e)),e.ayref===e.yref&amp;&amp;S(&quot;ay&quot;,y(x,r,&quot;ay&quot;,T,e)),G.attr(&quot;transform&quot;,s(t,r)),O.attr({transform:&quot;rotate(&quot;+P+&quot;,&quot;+i+&quot;,&quot;+a+&quot;)&quot;})},doneFn:function(){i.call(&quot;_guiRelayout&quot;,t,E());var e=document.querySelector(&quot;.js-notes-box-panel&quot;);e&amp;&amp;e.redraw(e.selectedObj)}})}}};if(e.showarrow&amp;&amp;At(0,0),z)d.init({element:R.node(),gd:t,prepFn:function(){kt=O.attr(&quot;transform&quot;)},moveFn:function(t,r){var n=&quot;pointer&quot;;if(e.showarrow)e.axref===e.xref?S(&quot;ax&quot;,y(v,t,&quot;ax&quot;,T,e)):S(&quot;ax&quot;,e.ax+t),e.ayref===e.yref?S(&quot;ay&quot;,y(x,r,&quot;ay&quot;,T.w,e)):S(&quot;ay&quot;,e.ay+r),At(t,r);else{if(a)return;var i,o;if(v)i=y(v,t,&quot;x&quot;,T,e);else{var l=e._xsize/T.w,c=e.x+(e._xshift-e.xshift)/T.w-l/2;i=d.align(c+t/T.w,l,0,1,e.xanchor)}if(x)o=y(x,r,&quot;y&quot;,T,e);else{var u=e._ysize/T.h,f=e.y-(e._yshift+e.yshift)/T.h-u/2;o=d.align(f-r/T.h,u,0,1,e.yanchor)}S(&quot;x&quot;,i),S(&quot;y&quot;,o),v&amp;&amp;x||(n=d.getCursor(v?.5:i,x?.5:o,e.xanchor,e.yanchor))}O.attr({transform:s(t,r)+kt}),p(R,n)},clickFn:function(r,n){e.captureevents&amp;&amp;t.emit(&quot;plotly_clickannotation&quot;,Y(n))},doneFn:function(){p(R),i.call(&quot;_guiRelayout&quot;,t,E());var e=document.querySelector(&quot;.js-notes-box-panel&quot;);e&amp;&amp;e.redraw(e.selectedObj)}})}}}e.exports={draw:function(t){var e=t._fullLayout;e._infolayer.selectAll(&quot;.annotation&quot;).remove();for(var r=0;r&lt;e.annotations.length;r++)e.annotations[r].visible&amp;&amp;v(t,r);return a.previousPromises(t)},drawOne:v,drawRaw:x}},{&quot;../../lib&quot;:503,&quot;../../lib/setcursor&quot;:524,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../plots/plots&quot;:619,&quot;../../registry&quot;:638,&quot;../color&quot;:366,&quot;../dragelement&quot;:385,&quot;../drawing&quot;:388,&quot;../fx&quot;:406,&quot;./draw_arrow_head&quot;:356,&quot;@plotly/d3&quot;:58}],356:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../color&quot;),a=t(&quot;./arrow_paths&quot;),o=t(&quot;../../lib&quot;),s=o.strScale,l=o.strRotate,c=o.strTranslate;e.exports=function(t,e,r){var o,u,f,h,p=t.node(),d=a[r.arrowhead||0],m=a[r.startarrowhead||0],g=(r.arrowwidth||1)*(r.arrowsize||1),v=(r.arrowwidth||1)*(r.startarrowsize||1),y=e.indexOf(&quot;start&quot;)&gt;=0,x=e.indexOf(&quot;end&quot;)&gt;=0,b=d.backoff*g+r.standoff,_=m.backoff*v+r.startstandoff;if(&quot;line&quot;===p.nodeName){o={x:+t.attr(&quot;x1&quot;),y:+t.attr(&quot;y1&quot;)},u={x:+t.attr(&quot;x2&quot;),y:+t.attr(&quot;y2&quot;)};var w=o.x-u.x,T=o.y-u.y;if(h=(f=Math.atan2(T,w))+Math.PI,b&amp;&amp;_&amp;&amp;b+_&gt;Math.sqrt(w*w+T*T))return void z();if(b){if(b*b&gt;w*w+T*T)return void z();var k=b*Math.cos(f),A=b*Math.sin(f);u.x+=k,u.y+=A,t.attr({x2:u.x,y2:u.y})}if(_){if(_*_&gt;w*w+T*T)return void z();var M=_*Math.cos(f),S=_*Math.sin(f);o.x-=M,o.y-=S,t.attr({x1:o.x,y1:o.y})}}else if(&quot;path&quot;===p.nodeName){var E=p.getTotalLength(),L=&quot;&quot;;if(E&lt;b+_)return void z();var C=p.getPointAtLength(0),P=p.getPointAtLength(.1);f=Math.atan2(C.y-P.y,C.x-P.x),o=p.getPointAtLength(Math.min(_,E)),L=&quot;0px,&quot;+_+&quot;px,&quot;;var I=p.getPointAtLength(E),O=p.getPointAtLength(E-.1);h=Math.atan2(I.y-O.y,I.x-O.x),u=p.getPointAtLength(Math.max(0,E-b)),L+=E-(L?_+b:b)+&quot;px,&quot;+E+&quot;px&quot;,t.style(&quot;stroke-dasharray&quot;,L)}function z(){t.style(&quot;stroke-dasharray&quot;,&quot;0px,100px&quot;)}function D(e,a,o,u){e.path&amp;&amp;(e.noRotate&amp;&amp;(o=0),n.select(p.parentNode).append(&quot;path&quot;).attr({class:t.attr(&quot;class&quot;),d:e.path,transform:c(a.x,a.y)+l(180*o/Math.PI)+s(u)}).style({fill:i.rgb(r.arrowcolor),&quot;stroke-width&quot;:0}))}y&amp;&amp;D(m,o,f,v),x&amp;&amp;D(d,u,h,g)}},{&quot;../../lib&quot;:503,&quot;../color&quot;:366,&quot;./arrow_paths&quot;:348,&quot;@plotly/d3&quot;:58}],357:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;),i=t(&quot;./click&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;annotations&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;annotations&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:i.hasClickToShow,onClick:i.onClick,convertCoords:t(&quot;./convert_coords&quot;)}},{&quot;../../plots/cartesian/include_components&quot;:567,&quot;./attributes&quot;:349,&quot;./calc_autorange&quot;:350,&quot;./click&quot;:351,&quot;./convert_coords&quot;:353,&quot;./defaults&quot;:354,&quot;./draw&quot;:355}],358:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/attributes&quot;),i=t(&quot;../../plot_api/edit_types&quot;).overrideAll,a=t(&quot;../../plot_api/plot_template&quot;).templatedArray;e.exports=i(a(&quot;annotation&quot;,{visible:n.visible,x:{valType:&quot;any&quot;},y:{valType:&quot;any&quot;},z:{valType:&quot;any&quot;},ax:{valType:&quot;number&quot;},ay:{valType:&quot;number&quot;},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,startarrowhead:n.startarrowhead,arrowside:n.arrowside,arrowsize:n.arrowsize,startarrowsize:n.startarrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,startstandoff:n.startstandoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents}),&quot;calc&quot;,&quot;from-root&quot;)},{&quot;../../plot_api/edit_types&quot;:536,&quot;../../plot_api/plot_template&quot;:543,&quot;../annotations/attributes&quot;:349}],359:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;);function a(t,e){var r=e.fullSceneLayout.domain,a=e.fullLayout._size,o={pdata:null,type:&quot;linear&quot;,autorange:!1,range:[-1/0,1/0]};t._xa={},n.extendFlat(t._xa,o),i.setConvert(t._xa),t._xa._offset=a.l+r.x[0]*a.w,t._xa.l2p=function(){return.5*(1+t._pdata[0]/t._pdata[3])*a.w*(r.x[1]-r.x[0])},t._ya={},n.extendFlat(t._ya,o),i.setConvert(t._ya),t._ya._offset=a.t+(1-r.y[1])*a.h,t._ya.l2p=function(){return.5*(1-t._pdata[1]/t._pdata[3])*a.h*(r.y[1]-r.y[0])}}e.exports=function(t){for(var e=t.fullSceneLayout.annotations,r=0;r&lt;e.length;r++)a(e[r],t);t.fullLayout._infolayer.selectAll(&quot;.annotation-&quot;+t.id).remove()}},{&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554}],360:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;../annotations/common_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r,a){function l(r,i){return n.coerce(t,e,s,r,i)}function c(t){var n=t+&quot;axis&quot;,a={_fullLayout:{}};return a._fullLayout[n]=r[n],i.coercePosition(e,a,l,t,t,.5)}l(&quot;visible&quot;)&amp;&amp;(o(t,e,a.fullLayout,l),c(&quot;x&quot;),c(&quot;y&quot;),c(&quot;z&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;]),e.xref=&quot;x&quot;,e.yref=&quot;y&quot;,e.zref=&quot;z&quot;,l(&quot;xanchor&quot;),l(&quot;yanchor&quot;),l(&quot;xshift&quot;),l(&quot;yshift&quot;),e.showarrow&amp;&amp;(e.axref=&quot;pixel&quot;,e.ayref=&quot;pixel&quot;,l(&quot;ax&quot;,-10),l(&quot;ay&quot;,-30),n.noneOrAll(t,e,[&quot;ax&quot;,&quot;ay&quot;])))}e.exports=function(t,e,r){a(t,e,{name:&quot;annotations&quot;,handleItemDefaults:l,fullLayout:r.fullLayout})}},{&quot;../../lib&quot;:503,&quot;../../plots/array_container_defaults&quot;:549,&quot;../../plots/cartesian/axes&quot;:554,&quot;../annotations/common_defaults&quot;:352,&quot;./attributes&quot;:358}],361:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/draw&quot;).drawRaw,i=t(&quot;../../plots/gl3d/project&quot;),a=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];e.exports=function(t){for(var e=t.fullSceneLayout,r=t.dataScale,o=e.annotations,s=0;s&lt;o.length;s++){for(var l=o[s],c=!1,u=0;u&lt;3;u++){var f=a[u],h=l[f],p=e[f+&quot;axis&quot;].r2fraction(h);if(p&lt;0||p&gt;1){c=!0;break}}c?t.fullLayout._infolayer.select(&quot;.annotation-&quot;+t.id+'[data-index=&quot;'+s+'&quot;]').remove():(l._pdata=i(t.glplot.cameraParams,[e.xaxis.r2l(l.x)*r[0],e.yaxis.r2l(l.y)*r[1],e.zaxis.r2l(l.z)*r[2]]),n(t.graphDiv,l,s,t.id,l._xa,l._ya))}}},{&quot;../../plots/gl3d/project&quot;:607,&quot;../annotations/draw&quot;:355}],362:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;annotations3d&quot;,schema:{subplots:{scene:{annotations:t(&quot;./attributes&quot;)}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),includeBasePlot:function(t,e){var r=n.subplotsRegistry.gl3d;if(!r)return;for(var a=r.attrRegex,o=Object.keys(t),s=0;s&lt;o.length;s++){var l=o[s];a.test(l)&amp;&amp;(t[l].annotations||[]).length&amp;&amp;(i.pushUnique(e._basePlotModules,r),i.pushUnique(e._subplots.gl3d,l))}},convert:t(&quot;./convert&quot;),draw:t(&quot;./draw&quot;)}},{&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;./attributes&quot;:358,&quot;./convert&quot;:359,&quot;./defaults&quot;:360,&quot;./draw&quot;:361}],363:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;world-calendars/dist/main&quot;),t(&quot;world-calendars/dist/plus&quot;),t(&quot;world-calendars/dist/calendars/chinese&quot;),t(&quot;world-calendars/dist/calendars/coptic&quot;),t(&quot;world-calendars/dist/calendars/discworld&quot;),t(&quot;world-calendars/dist/calendars/ethiopian&quot;),t(&quot;world-calendars/dist/calendars/hebrew&quot;),t(&quot;world-calendars/dist/calendars/islamic&quot;),t(&quot;world-calendars/dist/calendars/julian&quot;),t(&quot;world-calendars/dist/calendars/mayan&quot;),t(&quot;world-calendars/dist/calendars/nanakshahi&quot;),t(&quot;world-calendars/dist/calendars/nepali&quot;),t(&quot;world-calendars/dist/calendars/persian&quot;),t(&quot;world-calendars/dist/calendars/taiwan&quot;),t(&quot;world-calendars/dist/calendars/thai&quot;),t(&quot;world-calendars/dist/calendars/ummalqura&quot;)},{&quot;world-calendars/dist/calendars/chinese&quot;:332,&quot;world-calendars/dist/calendars/coptic&quot;:333,&quot;world-calendars/dist/calendars/discworld&quot;:334,&quot;world-calendars/dist/calendars/ethiopian&quot;:335,&quot;world-calendars/dist/calendars/hebrew&quot;:336,&quot;world-calendars/dist/calendars/islamic&quot;:337,&quot;world-calendars/dist/calendars/julian&quot;:338,&quot;world-calendars/dist/calendars/mayan&quot;:339,&quot;world-calendars/dist/calendars/nanakshahi&quot;:340,&quot;world-calendars/dist/calendars/nepali&quot;:341,&quot;world-calendars/dist/calendars/persian&quot;:342,&quot;world-calendars/dist/calendars/taiwan&quot;:343,&quot;world-calendars/dist/calendars/thai&quot;:344,&quot;world-calendars/dist/calendars/ummalqura&quot;:345,&quot;world-calendars/dist/main&quot;:346,&quot;world-calendars/dist/plus&quot;:347}],364:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./calendars&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;),o=a.EPOCHJD,s=a.ONEDAY,l={valType:&quot;enumerated&quot;,values:i.sortObjectKeys(n.calendars),editType:&quot;calc&quot;,dflt:&quot;gregorian&quot;},c=function(t,e,r,n){var a={};return a[r]=l,i.coerce(t,e,a,r,n)},u={d:{0:&quot;dd&quot;,&quot;-&quot;:&quot;d&quot;},e:{0:&quot;d&quot;,&quot;-&quot;:&quot;d&quot;},a:{0:&quot;D&quot;,&quot;-&quot;:&quot;D&quot;},A:{0:&quot;DD&quot;,&quot;-&quot;:&quot;DD&quot;},j:{0:&quot;oo&quot;,&quot;-&quot;:&quot;o&quot;},W:{0:&quot;ww&quot;,&quot;-&quot;:&quot;w&quot;},m:{0:&quot;mm&quot;,&quot;-&quot;:&quot;m&quot;},b:{0:&quot;M&quot;,&quot;-&quot;:&quot;M&quot;},B:{0:&quot;MM&quot;,&quot;-&quot;:&quot;MM&quot;},y:{0:&quot;yy&quot;,&quot;-&quot;:&quot;yy&quot;},Y:{0:&quot;yyyy&quot;,&quot;-&quot;:&quot;yyyy&quot;},U:&quot;##&quot;,w:&quot;##&quot;,c:{0:&quot;D M d %X yyyy&quot;,&quot;-&quot;:&quot;D M d %X yyyy&quot;},x:{0:&quot;mm/dd/yyyy&quot;,&quot;-&quot;:&quot;mm/dd/yyyy&quot;}};var f={};function h(t){var e=f[t];return e||(e=f[t]=n.instance(t))}function p(t){return i.extendFlat({},l,{description:t})}function d(t){return&quot;Sets the calendar system to use with `&quot;+t+&quot;` date data.&quot;}var m={xcalendar:p(d(&quot;x&quot;))},g=i.extendFlat({},m,{ycalendar:p(d(&quot;y&quot;))}),v=i.extendFlat({},g,{zcalendar:p(d(&quot;z&quot;))}),y=p([&quot;Sets the calendar system to use for `range` and `tick0`&quot;,&quot;if this is a date axis. This does not set the calendar for&quot;,&quot;interpreting data on this axis, that's specified in the trace&quot;,&quot;or via the global `layout.calendar`&quot;].join(&quot; &quot;));e.exports={moduleType:&quot;component&quot;,name:&quot;calendars&quot;,schema:{traces:{scatter:g,bar:g,box:g,heatmap:g,contour:g,histogram:g,histogram2d:g,histogram2dcontour:g,scatter3d:v,surface:v,mesh3d:v,scattergl:g,ohlc:m,candlestick:m},layout:{calendar:p([&quot;Sets the default calendar system to use for interpreting and&quot;,&quot;displaying dates throughout the plot.&quot;].join(&quot; &quot;))},subplots:{xaxis:{calendar:y},yaxis:{calendar:y},scene:{xaxis:{calendar:y},yaxis:{calendar:y},zaxis:{calendar:y}},polar:{radialaxis:{calendar:y}}},transforms:{filter:{valuecalendar:p([&quot;WARNING: All transforms are deprecated and may be removed from the API in next major version.&quot;,&quot;Sets the calendar system to use for `value`, if it is a date.&quot;].join(&quot; &quot;)),targetcalendar:p([&quot;WARNING: All transforms are deprecated and may be removed from the API in next major version.&quot;,&quot;Sets the calendar system to use for `target`, if it is an&quot;,&quot;array of dates. If `target` is a string (eg *x*) we use the&quot;,&quot;corresponding trace attribute (eg `xcalendar`) if it exists,&quot;,&quot;even if `targetcalendar` is provided.&quot;].join(&quot; &quot;))}}},layoutAttributes:l,handleDefaults:c,handleTraceDefaults:function(t,e,r,n){for(var i=0;i&lt;r.length;i++)c(t,e,r[i]+&quot;calendar&quot;,n.calendar)},CANONICAL_SUNDAY:{chinese:&quot;2000-01-02&quot;,coptic:&quot;2000-01-03&quot;,discworld:&quot;2000-01-03&quot;,ethiopian:&quot;2000-01-05&quot;,hebrew:&quot;5000-01-01&quot;,islamic:&quot;1000-01-02&quot;,julian:&quot;2000-01-03&quot;,mayan:&quot;5000-01-01&quot;,nanakshahi:&quot;1000-01-05&quot;,nepali:&quot;2000-01-05&quot;,persian:&quot;1000-01-01&quot;,jalali:&quot;1000-01-01&quot;,taiwan:&quot;1000-01-04&quot;,thai:&quot;2000-01-04&quot;,ummalqura:&quot;1400-01-06&quot;},CANONICAL_TICK:{chinese:&quot;2000-01-01&quot;,coptic:&quot;2000-01-01&quot;,discworld:&quot;2000-01-01&quot;,ethiopian:&quot;2000-01-01&quot;,hebrew:&quot;5000-01-01&quot;,islamic:&quot;1000-01-01&quot;,julian:&quot;2000-01-01&quot;,mayan:&quot;5000-01-01&quot;,nanakshahi:&quot;1000-01-01&quot;,nepali:&quot;2000-01-01&quot;,persian:&quot;1000-01-01&quot;,jalali:&quot;1000-01-01&quot;,taiwan:&quot;1000-01-01&quot;,thai:&quot;2000-01-01&quot;,ummalqura:&quot;1400-01-01&quot;},DFLTRANGE:{chinese:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],coptic:[&quot;1700-01-01&quot;,&quot;1701-01-01&quot;],discworld:[&quot;1800-01-01&quot;,&quot;1801-01-01&quot;],ethiopian:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],hebrew:[&quot;5700-01-01&quot;,&quot;5701-01-01&quot;],islamic:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],julian:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],mayan:[&quot;5200-01-01&quot;,&quot;5201-01-01&quot;],nanakshahi:[&quot;0500-01-01&quot;,&quot;0501-01-01&quot;],nepali:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],persian:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],jalali:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],taiwan:[&quot;0100-01-01&quot;,&quot;0101-01-01&quot;],thai:[&quot;2500-01-01&quot;,&quot;2501-01-01&quot;],ummalqura:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;]},getCal:h,worldCalFmt:function(t,e,r){for(var n,i,a,l,c,f=Math.floor((e+.05)/s)+o,p=h(r).fromJD(f),d=0;-1!==(d=t.indexOf(&quot;%&quot;,d));)&quot;0&quot;===(n=t.charAt(d+1))||&quot;-&quot;===n||&quot;_&quot;===n?(a=3,i=t.charAt(d+2),&quot;_&quot;===n&amp;&amp;(n=&quot;-&quot;)):(i=n,n=&quot;0&quot;,a=2),(l=u[i])?(c=&quot;##&quot;===l?&quot;##&quot;:p.formatDate(l[n]),t=t.substr(0,d)+c+t.substr(d+a),d+=c.length):d+=a;return t}}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;./calendars&quot;:363}],365:[function(t,e,r){&quot;use strict&quot;;r.defaults=[&quot;#1f77b4&quot;,&quot;#ff7f0e&quot;,&quot;#2ca02c&quot;,&quot;#d62728&quot;,&quot;#9467bd&quot;,&quot;#8c564b&quot;,&quot;#e377c2&quot;,&quot;#7f7f7f&quot;,&quot;#bcbd22&quot;,&quot;#17becf&quot;],r.defaultLine=&quot;#444&quot;,r.lightLine=&quot;#eee&quot;,r.background=&quot;#fff&quot;,r.borderLine=&quot;#BEC8D9&quot;,r.lightFraction=1e3/11},{}],366:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib/array&quot;).isTypedArray,o=e.exports={},s=t(&quot;./attributes&quot;);o.defaults=s.defaults;var l=o.defaultLine=s.defaultLine;o.lightLine=s.lightLine;var c=o.background=s.background;function u(t){if(i(t)||&quot;string&quot;!=typeof t)return t;var e=t.trim();if(&quot;rgb&quot;!==e.substr(0,3))return t;var r=e.match(/^rgba?\s*\(([^()]*)\)$/);if(!r)return t;var n=r[1].trim().split(/\s*[\s,]\s*/),a=&quot;a&quot;===e.charAt(3)&amp;&amp;4===n.length;if(!a&amp;&amp;3!==n.length)return t;for(var o=0;o&lt;n.length;o++){if(!n[o].length)return t;if(n[o]=Number(n[o]),!(n[o]&gt;=0))return t;if(3===o)n[o]&gt;1&amp;&amp;(n[o]=1);else if(n[o]&gt;=1)return t}var s=Math.round(255*n[0])+&quot;, &quot;+Math.round(255*n[1])+&quot;, &quot;+Math.round(255*n[2]);return a?&quot;rgba(&quot;+s+&quot;, &quot;+n[3]+&quot;)&quot;:&quot;rgb(&quot;+s+&quot;)&quot;}o.tinyRGB=function(t){var e=t.toRgb();return&quot;rgb(&quot;+Math.round(e.r)+&quot;, &quot;+Math.round(e.g)+&quot;, &quot;+Math.round(e.b)+&quot;)&quot;},o.rgb=function(t){return o.tinyRGB(n(t))},o.opacity=function(t){return t?n(t).getAlpha():0},o.addOpacity=function(t,e){var r=n(t).toRgb();return&quot;rgba(&quot;+Math.round(r.r)+&quot;, &quot;+Math.round(r.g)+&quot;, &quot;+Math.round(r.b)+&quot;, &quot;+e+&quot;)&quot;},o.combine=function(t,e){var r=n(t).toRgb();if(1===r.a)return n(t).toRgbString();var i=n(e||c).toRgb(),a=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},o={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},o.contrast=function(t,e,r){var i=n(t);return 1!==i.getAlpha()&amp;&amp;(i=n(o.combine(t,c))),(i.isDark()?e?i.lighten(e):c:r?i.darken(r):l).toString()},o.stroke=function(t,e){var r=n(e);t.style({stroke:o.tinyRGB(r),&quot;stroke-opacity&quot;:r.getAlpha()})},o.fill=function(t,e){var r=n(e);t.style({fill:o.tinyRGB(r),&quot;fill-opacity&quot;:r.getAlpha()})},o.clean=function(t){if(t&amp;&amp;&quot;object&quot;==typeof t){var e,r,n,i,s=Object.keys(t);for(e=0;e&lt;s.length;e++)if(i=t[n=s[e]],&quot;color&quot;===n.substr(n.length-5))if(Array.isArray(i))for(r=0;r&lt;i.length;r++)i[r]=u(i[r]);else t[n]=u(i);else if(&quot;colorscale&quot;===n.substr(n.length-10)&amp;&amp;Array.isArray(i))for(r=0;r&lt;i.length;r++)Array.isArray(i[r])&amp;&amp;(i[r][1]=u(i[r][1]));else if(Array.isArray(i)){var l=i[0];if(!Array.isArray(l)&amp;&amp;l&amp;&amp;&quot;object&quot;==typeof l)for(r=0;r&lt;i.length;r++)o.clean(i[r])}else i&amp;&amp;&quot;object&quot;==typeof i&amp;&amp;!a(i)&amp;&amp;o.clean(i)}}},{&quot;../../lib/array&quot;:485,&quot;./attributes&quot;:365,&quot;fast-isnumeric&quot;:190,tinycolor2:312}],367:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/layout_attributes&quot;),i=t(&quot;../../plots/font_attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll;e.exports=o({orientation:{valType:&quot;enumerated&quot;,values:[&quot;h&quot;,&quot;v&quot;],dflt:&quot;v&quot;},thicknessmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;pixels&quot;},thickness:{valType:&quot;number&quot;,min:0,dflt:30},lenmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;fraction&quot;},len:{valType:&quot;number&quot;,min:0,dflt:1},x:{valType:&quot;number&quot;,min:-2,max:3},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;]},xpad:{valType:&quot;number&quot;,min:0,dflt:10},y:{valType:&quot;number&quot;,min:-2,max:3},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;]},ypad:{valType:&quot;number&quot;,min:0,dflt:10},outlinecolor:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:&quot;number&quot;,min:0,dflt:0},bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;},tickmode:n.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:a({},n.ticks,{dflt:&quot;&quot;}),ticklabeloverflow:a({},n.ticklabeloverflow,{}),ticklabelposition:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;],dflt:&quot;outside&quot;},ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,showticklabels:n.showticklabels,tickfont:i({}),tickangle:n.tickangle,tickformat:n.tickformat,tickformatstops:n.tickformatstops,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,minexponent:n.minexponent,showexponent:n.showexponent,title:{text:{valType:&quot;string&quot;},font:i({}),side:{valType:&quot;enumerated&quot;,values:[&quot;right&quot;,&quot;top&quot;,&quot;bottom&quot;]}},_deprecated:{title:{valType:&quot;string&quot;},titlefont:i({}),titleside:{valType:&quot;enumerated&quot;,values:[&quot;right&quot;,&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;}}},&quot;colorbars&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:493,&quot;../../plot_api/edit_types&quot;:536,&quot;../../plots/cartesian/layout_attributes&quot;:569,&quot;../../plots/font_attributes&quot;:585}],368:[function(t,e,r){&quot;use strict&quot;;e.exports={cn:{colorbar:&quot;colorbar&quot;,cbbg:&quot;cbbg&quot;,cbfill:&quot;cbfill&quot;,cbfills:&quot;cbfills&quot;,cbline:&quot;cbline&quot;,cblines:&quot;cblines&quot;,cbaxis:&quot;cbaxis&quot;,cbtitleunshift:&quot;cbtitleunshift&quot;,cbtitle:&quot;cbtitle&quot;,cboutline:&quot;cboutline&quot;,crisp:&quot;crisp&quot;,jsPlaceholder:&quot;js-placeholder&quot;}}},{}],369:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),o=t(&quot;../../plots/cartesian/tick_mark_defaults&quot;),s=t(&quot;../../plots/cartesian/tick_label_defaults&quot;),l=t(&quot;../../plots/cartesian/prefix_suffix_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r){var u=i.newContainer(e,&quot;colorbar&quot;),f=t.colorbar||{};function h(t,e){return n.coerce(f,u,c,t,e)}var p=r.margin||{t:0,b:0,l:0,r:0},d=r.width-p.l-p.r,m=r.height-p.t-p.b,g=&quot;v&quot;===h(&quot;orientation&quot;),v=h(&quot;thicknessmode&quot;);h(&quot;thickness&quot;,&quot;fraction&quot;===v?30/(g?d:m):30);var y=h(&quot;lenmode&quot;);h(&quot;len&quot;,&quot;fraction&quot;===y?1:g?m:d),h(&quot;x&quot;,g?1.02:.5),h(&quot;xanchor&quot;,g?&quot;left&quot;:&quot;center&quot;),h(&quot;xpad&quot;),h(&quot;y&quot;,g?.5:1.02),h(&quot;yanchor&quot;,g?&quot;middle&quot;:&quot;bottom&quot;),h(&quot;ypad&quot;),n.noneOrAll(f,u,[&quot;x&quot;,&quot;y&quot;]),h(&quot;outlinecolor&quot;),h(&quot;outlinewidth&quot;),h(&quot;bordercolor&quot;),h(&quot;borderwidth&quot;),h(&quot;bgcolor&quot;);var x=n.coerce(f,u,{ticklabelposition:{valType:&quot;enumerated&quot;,dflt:&quot;outside&quot;,values:g?[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;]:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;]}},&quot;ticklabelposition&quot;);h(&quot;ticklabeloverflow&quot;,-1!==x.indexOf(&quot;inside&quot;)?&quot;hide past domain&quot;:&quot;hide past div&quot;),a(f,u,h,&quot;linear&quot;);var b=r.font,_={outerTicks:!1,font:b};-1!==x.indexOf(&quot;inside&quot;)&amp;&amp;(_.bgColor=&quot;black&quot;),l(f,u,h,&quot;linear&quot;,_),s(f,u,h,&quot;linear&quot;,_),o(f,u,h,&quot;linear&quot;,_),h(&quot;title.text&quot;,r._dfltTitle.colorbar);var w=u.tickfont,T=n.extendFlat({},w,{color:b.color,size:n.bigFont(w.size)});n.coerceFont(h,&quot;title.font&quot;,T),h(&quot;title.side&quot;,g?&quot;top&quot;:&quot;right&quot;)}},{&quot;../../lib&quot;:503,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/cartesian/prefix_suffix_defaults&quot;:573,&quot;../../plots/cartesian/tick_label_defaults&quot;:578,&quot;../../plots/cartesian/tick_mark_defaults&quot;:579,&quot;../../plots/cartesian/tick_value_defaults&quot;:580,&quot;./attributes&quot;:367}],370:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=t(&quot;../dragelement&quot;),c=t(&quot;../../lib&quot;),u=c.strTranslate,f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../lib/setcursor&quot;),p=t(&quot;../drawing&quot;),d=t(&quot;../color&quot;),m=t(&quot;../titles&quot;),g=t(&quot;../../lib/svg_text_utils&quot;),v=t(&quot;../colorscale/helpers&quot;).flipScale,y=t(&quot;../../plots/cartesian/axis_defaults&quot;),x=t(&quot;../../plots/cartesian/position_defaults&quot;),b=t(&quot;../../plots/cartesian/layout_attributes&quot;),_=t(&quot;../../constants/alignment&quot;),w=_.LINE_SPACING,T=_.FROM_TL,k=_.FROM_BR,A=t(&quot;./constants&quot;).cn;e.exports={draw:function(t){var e=t._fullLayout._infolayer.selectAll(&quot;g.&quot;+A.colorbar).data(function(t){var e,r,n,i,a=t._fullLayout,o=t.calcdata,s=[];function l(t){return f(t,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){&quot;function&quot;==typeof i.calc?i.calc(t,n,e):(e._fillgradient=r.reversescale?v(r.colorscale):r.colorscale,e._zrange=[r[i.min],r[i.max]])}for(var u=0;u&lt;o.length;u++){var h=o[u],p=(n=h[0].trace)._module.colorbar;if(!0===n.visible&amp;&amp;p)for(var d=Array.isArray(p),m=d?p:[p],g=0;g&lt;m.length;g++){var y=(i=m[g]).container;(r=y?n[y]:n)&amp;&amp;r.showscale&amp;&amp;((e=l(r.colorbar))._id=&quot;cb&quot;+n.uid+(d&amp;&amp;y?&quot;-&quot;+y:&quot;&quot;),e._traceIndex=n.index,e._propPrefix=(y?y+&quot;.&quot;:&quot;&quot;)+&quot;colorbar.&quot;,e._meta=n._meta,c(),s.push(e))}}for(var x in a._colorAxes)if((r=a[x]).showscale){var b=a._colorAxes[x];(e=l(r.colorbar))._id=&quot;cb&quot;+x,e._propPrefix=x+&quot;.colorbar.&quot;,e._meta=a._meta,i={min:&quot;cmin&quot;,max:&quot;cmax&quot;},&quot;heatmap&quot;!==b[0]&amp;&amp;(n=b[1],i.calc=n._module.colorbar.calc),c(),s.push(e)}return s}(t),(function(t){return t._id}));e.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return t._id})).classed(A.colorbar,!0),e.each((function(e){var r=n.select(this);c.ensureSingle(r,&quot;rect&quot;,A.cbbg),c.ensureSingle(r,&quot;g&quot;,A.cbfills),c.ensureSingle(r,&quot;g&quot;,A.cblines),c.ensureSingle(r,&quot;g&quot;,A.cbaxis,(function(t){t.classed(A.crisp,!0)})),c.ensureSingle(r,&quot;g&quot;,A.cbtitleunshift,(function(t){t.append(&quot;g&quot;).classed(A.cbtitle,!0)})),c.ensureSingle(r,&quot;rect&quot;,A.cboutline);var v=function(t,e,r){var o=&quot;v&quot;===e.orientation,l=e.len,h=e.lenmode,v=e.thickness,_=e.thicknessmode,M=e.outlinewidth,S=e.borderwidth,E=e.bgcolor,L=e.xanchor,C=e.yanchor,P=e.xpad,I=e.ypad,O=e.x,z=o?e.y:1-e.y,D=r._fullLayout,R=D._size,F=e._fillcolor,B=e._line,N=e.title,j=N.side,U=e._zrange||n.extent((&quot;function&quot;==typeof F?F:B.color).domain()),V=&quot;function&quot;==typeof B.color?B.color:function(){return B.color},H=&quot;function&quot;==typeof F?F:function(){return F},q=e._levels,G=function(t,e,r){var n,i,a=e._levels,o=[],s=[],l=a.end+a.size/100,c=a.size,u=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(i=0;i&lt;1e5&amp;&amp;(n=a.start+i*c,!(c&gt;0?n&gt;=l:n&lt;=l));i++)n&gt;u&amp;&amp;n&lt;f&amp;&amp;o.push(n);if(e._fillgradient)s=[0];else if(&quot;function&quot;==typeof e._fillcolor){var h=e._filllevels;if(h)for(l=h.end+h.size/100,c=h.size,i=0;i&lt;1e5&amp;&amp;(n=h.start+i*c,!(c&gt;0?n&gt;=l:n&lt;=l));i++)n&gt;r[0]&amp;&amp;n&lt;r[1]&amp;&amp;s.push(n);else(s=o.map((function(t){return t-a.size/2}))).push(s[s.length-1]+a.size)}else e._fillcolor&amp;&amp;&quot;string&quot;==typeof e._fillcolor&amp;&amp;(s=[0]);a.size&lt;0&amp;&amp;(o.reverse(),s.reverse());return{line:o,fill:s}}(0,e,U),Y=G.fill,W=G.line,X=Math.round(v*(&quot;fraction&quot;===_?o?R.w:R.h:1)),Z=X/(o?R.w:R.h),J=Math.round(l*(&quot;fraction&quot;===h?o?R.h:R.w:1)),K=J/(o?R.h:R.w),Q=Math.round(o?O*R.w+P:z*R.h+I),$={center:.5,right:1}[L]||0,tt={top:1,middle:.5}[C]||0,et=o?O-$*Z:z-tt*Z,rt=o?z-tt*K:O-$*K,nt=Math.round(o?R.h*(1-rt):R.w*rt);e._lenFrac=K,e._thickFrac=Z,e._uFrac=et,e._vFrac=rt;var it=e._axis=function(t,e,r){var n=t._fullLayout,i=&quot;v&quot;===e.orientation,a={type:&quot;linear&quot;,range:r,tickmode:e.tickmode,nticks:e.nticks,tick0:e.tick0,dtick:e.dtick,tickvals:e.tickvals,ticktext:e.ticktext,ticks:e.ticks,ticklen:e.ticklen,tickwidth:e.tickwidth,tickcolor:e.tickcolor,showticklabels:e.showticklabels,ticklabelposition:e.ticklabelposition,ticklabeloverflow:e.ticklabeloverflow,tickfont:e.tickfont,tickangle:e.tickangle,tickformat:e.tickformat,exponentformat:e.exponentformat,minexponent:e.minexponent,separatethousands:e.separatethousands,showexponent:e.showexponent,showtickprefix:e.showtickprefix,tickprefix:e.tickprefix,showticksuffix:e.showticksuffix,ticksuffix:e.ticksuffix,title:e.title,showline:!0,anchor:&quot;free&quot;,side:i?&quot;right&quot;:&quot;bottom&quot;,position:1},o=i?&quot;y&quot;:&quot;x&quot;,s={type:&quot;linear&quot;,_id:o+e._id},l={letter:o,font:n.font,noHover:!0,noTickson:!0,noTicklabelmode:!0,calendar:n.calendar};function u(t,e){return c.coerce(a,s,b,t,e)}return y(a,s,u,l,n),x(a,s,u,l),s}(r,e,U);it.position=Z+(o?O+P/R.w:z+I/R.h);var at=-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(j);o&amp;&amp;at&amp;&amp;(it.title.side=j,it.titlex=O+P/R.w,it.titley=rt+(&quot;top&quot;===N.side?K-I/R.h:I/R.h));o||at||(it.title.side=j,it.titley=z+I/R.h,it.titlex=rt+P/R.w);if(B.color&amp;&amp;&quot;auto&quot;===e.tickmode){it.tickmode=&quot;linear&quot;,it.tick0=q.start;var ot=q.size,st=c.constrain(J/50,4,15)+1,lt=(U[1]-U[0])/((e.nticks||st)*ot);if(lt&gt;1){var ct=Math.pow(10,Math.floor(Math.log(lt)/Math.LN10));ot*=ct*c.roundUp(lt/ct,[2,5,10]),(Math.abs(q.start)/q.size+1e-6)%1&lt;2e-6&amp;&amp;(it.tick0=0)}it.dtick=ot}it.domain=o?[rt+I/R.h,rt+K-I/R.h]:[rt+P/R.w,rt+K-P/R.w],it.setScale(),t.attr(&quot;transform&quot;,u(Math.round(R.l),Math.round(R.t)));var ut,ft=t.select(&quot;.&quot;+A.cbtitleunshift).attr(&quot;transform&quot;,u(-Math.round(R.l),-Math.round(R.t))),ht=it.ticklabelposition,pt=it.title.font.size,dt=t.select(&quot;.&quot;+A.cbaxis),mt=0,gt=0;function vt(n,i){var a={propContainer:it,propName:e._propPrefix+&quot;title&quot;,traceIndex:e._traceIndex,_meta:e._meta,placeholder:D._dfltTitle.colorbar,containerGroup:t.select(&quot;.&quot;+A.cbtitle)},o=&quot;h&quot;===n.charAt(0)?n.substr(1):&quot;h&quot;+n;t.selectAll(&quot;.&quot;+o+&quot;,.&quot;+o+&quot;-math-group&quot;).remove(),m.draw(r,n,f(a,i||{}))}return c.syncOrAsync([a.previousPromises,function(){var t,e;(o&amp;&amp;at||!o&amp;&amp;!at)&amp;&amp;(&quot;top&quot;===j&amp;&amp;(t=P+R.l+R.w*O,e=I+R.t+R.h*(1-rt-K)+3+.75*pt),&quot;bottom&quot;===j&amp;&amp;(t=P+R.l+R.w*O,e=I+R.t+R.h*(1-rt)-3-.25*pt),&quot;right&quot;===j&amp;&amp;(e=I+R.t+R.h*z+3+.75*pt,t=P+R.l+R.w*rt),vt(it._id+&quot;title&quot;,{attributes:{x:t,y:e,&quot;text-anchor&quot;:o?&quot;start&quot;:&quot;middle&quot;}}))},function(){if(!o&amp;&amp;!at||o&amp;&amp;at){var a,l=t.select(&quot;.&quot;+A.cbtitle),f=l.select(&quot;text&quot;),h=[-M/2,M/2],d=l.select(&quot;.h&quot;+it._id+&quot;title-math-group&quot;).node(),m=15.6;if(f.node()&amp;&amp;(m=parseInt(f.node().style.fontSize,10)*w),d?(a=p.bBox(d),gt=a.width,(mt=a.height)&gt;m&amp;&amp;(h[1]-=(mt-m)/2)):f.node()&amp;&amp;!f.classed(A.jsPlaceholder)&amp;&amp;(a=p.bBox(f.node()),gt=a.width,mt=a.height),o){if(mt){if(mt+=5,&quot;top&quot;===j)it.domain[1]-=mt/R.h,h[1]*=-1;else{it.domain[0]+=mt/R.h;var v=g.lineCount(f);h[1]+=(1-v)*m}l.attr(&quot;transform&quot;,u(h[0],h[1])),it.setScale()}}else gt&amp;&amp;(&quot;right&quot;===j&amp;&amp;(it.domain[0]+=(gt+pt/2)/R.w),l.attr(&quot;transform&quot;,u(h[0],h[1])),it.setScale())}t.selectAll(&quot;.&quot;+A.cbfills+&quot;,.&quot;+A.cblines).attr(&quot;transform&quot;,o?u(0,Math.round(R.h*(1-it.domain[1]))):u(Math.round(R.w*it.domain[0]),0)),dt.attr(&quot;transform&quot;,o?u(0,Math.round(-R.t)):u(Math.round(-R.l),0));var y=t.select(&quot;.&quot;+A.cbfills).selectAll(&quot;rect.&quot;+A.cbfill).attr(&quot;style&quot;,&quot;&quot;).data(Y);y.enter().append(&quot;rect&quot;).classed(A.cbfill,!0).style(&quot;stroke&quot;,&quot;none&quot;),y.exit().remove();var x=U.map(it.c2p).map(Math.round).sort((function(t,e){return t-e}));y.each((function(t,a){var s=[0===a?U[0]:(Y[a]+Y[a-1])/2,a===Y.length-1?U[1]:(Y[a]+Y[a+1])/2].map(it.c2p).map(Math.round);o&amp;&amp;(s[1]=c.constrain(s[1]+(s[1]&gt;s[0])?1:-1,x[0],x[1]));var l=n.select(this).attr(o?&quot;x&quot;:&quot;y&quot;,Q).attr(o?&quot;y&quot;:&quot;x&quot;,n.min(s)).attr(o?&quot;width&quot;:&quot;height&quot;,Math.max(X,2)).attr(o?&quot;height&quot;:&quot;width&quot;,Math.max(n.max(s)-n.min(s),2));if(e._fillgradient)p.gradient(l,r,e._id,o?&quot;vertical&quot;:&quot;horizontalreversed&quot;,e._fillgradient,&quot;fill&quot;);else{var u=H(t).replace(&quot;e-&quot;,&quot;&quot;);l.attr(&quot;fill&quot;,i(u).toHexString())}}));var b=t.select(&quot;.&quot;+A.cblines).selectAll(&quot;path.&quot;+A.cbline).data(B.color&amp;&amp;B.width?W:[]);b.enter().append(&quot;path&quot;).classed(A.cbline,!0),b.exit().remove(),b.each((function(t){var e=Q,r=Math.round(it.c2p(t))+B.width/2%1;n.select(this).attr(&quot;d&quot;,&quot;M&quot;+(o?e+&quot;,&quot;+r:r+&quot;,&quot;+e)+(o?&quot;h&quot;:&quot;v&quot;)+X).call(p.lineGroupStyle,B.width,V(t),B.dash)})),dt.selectAll(&quot;g.&quot;+it._id+&quot;tick,path&quot;).remove();var _=Q+X+(M||0)/2-(&quot;outside&quot;===e.ticks?1:0),T=s.calcTicks(it),k=s.getTickSigns(it)[2];return s.drawTicks(r,it,{vals:&quot;inside&quot;===it.ticks?s.clipEnds(it,T):T,layer:dt,path:s.makeTickPath(it,_,k),transFn:s.makeTransTickFn(it)}),s.drawLabels(r,it,{vals:T,layer:dt,transFn:s.makeTransTickLabelFn(it),labelFns:s.makeLabelFns(it,_)})},function(){if(o&amp;&amp;!at||!o&amp;&amp;at){var t,i,a=it.position||0,s=it._offset+it._length/2;if(&quot;right&quot;===j)i=s,t=R.l+R.w*a+10+pt*(it.showticklabels?1:.5);else if(t=s,&quot;bottom&quot;===j&amp;&amp;(i=R.t+R.h*a+10+(-1===ht.indexOf(&quot;inside&quot;)?it.tickfont.size:0)+(&quot;intside&quot;!==it.ticks&amp;&amp;e.ticklen||0)),&quot;top&quot;===j){var l=N.text.split(&quot;&lt;br&gt;&quot;).length;i=R.t+R.h*a+10-X-w*pt*l}vt((o?&quot;h&quot;:&quot;v&quot;)+it._id+&quot;title&quot;,{avoid:{selection:n.select(r).selectAll(&quot;g.&quot;+it._id+&quot;tick&quot;),side:j,offsetTop:o?0:R.t,offsetLeft:o?R.l:0,maxShift:o?D.width:D.height},attributes:{x:t,y:i,&quot;text-anchor&quot;:&quot;middle&quot;},transform:{rotate:o?-90:0,offset:0}})}},a.previousPromises,function(){var n,s=X+M/2;-1===ht.indexOf(&quot;inside&quot;)&amp;&amp;(n=p.bBox(dt.node()),s+=o?n.width:n.height),ut=ft.select(&quot;text&quot;);var c=0,f=o&amp;&amp;&quot;top&quot;===j,m=!o&amp;&amp;&quot;right&quot;===j,g=0;if(ut.node()&amp;&amp;!ut.classed(A.jsPlaceholder)){var y,x=ft.select(&quot;.h&quot;+it._id+&quot;title-math-group&quot;).node();x&amp;&amp;(o&amp;&amp;at||!o&amp;&amp;!at)?(c=(n=p.bBox(x)).width,y=n.height):(c=(n=p.bBox(ft.node())).right-R.l-(o?Q:nt),y=n.bottom-R.t-(o?nt:Q),o||&quot;top&quot;!==j||(s+=n.height,g=n.height)),m&amp;&amp;(ut.attr(&quot;transform&quot;,u(c/2+pt/2,0)),c*=2),s=Math.max(s,o?c:y)}var b=2*(o?P:I)+s+S+M/2,w=0;!o&amp;&amp;N.text&amp;&amp;&quot;bottom&quot;===C&amp;&amp;z&lt;=0&amp;&amp;(b+=w=b/2,g+=w),D._hColorbarMoveTitle=w,D._hColorbarMoveCBTitle=g;var F=S+M;t.select(&quot;.&quot;+A.cbbg).attr(&quot;x&quot;,(o?Q:nt)-F/2-(o?P:0)).attr(&quot;y&quot;,(o?nt:Q)-(o?J:I+g-w)).attr(o?&quot;width&quot;:&quot;height&quot;,Math.max(b-w,2)).attr(o?&quot;height&quot;:&quot;width&quot;,Math.max(J+F,2)).call(d.fill,E).call(d.stroke,e.bordercolor).style(&quot;stroke-width&quot;,S);var B=m?Math.max(c-10,0):0;if(t.selectAll(&quot;.&quot;+A.cboutline).attr(&quot;x&quot;,(o?Q:nt+P)+B).attr(&quot;y&quot;,(o?nt+I-J:Q)+(f?mt:0)).attr(o?&quot;width&quot;:&quot;height&quot;,Math.max(X,2)).attr(o?&quot;height&quot;:&quot;width&quot;,Math.max(J-(o?2*I+mt:2*P+B),2)).call(d.stroke,e.outlinecolor).style({fill:&quot;none&quot;,&quot;stroke-width&quot;:M}),t.attr(&quot;transform&quot;,u(R.l-(o?$*b:0),R.t-(o?0:(1-tt)*b-g))),!o&amp;&amp;(S||i(E).getAlpha()&amp;&amp;!i.equals(D.paper_bgcolor,E))){var U=dt.selectAll(&quot;text&quot;),V=U[0].length,H=t.select(&quot;.&quot;+A.cbbg).node(),q=p.bBox(H),G=p.getTranslate(t);U.each((function(t,e){var r=V-1;if(0===e||e===r){var n,i=p.bBox(this),a=p.getTranslate(this);if(e===r){var o=i.right+a.x;(n=q.right+G.x+nt-S-2+O-o)&gt;0&amp;&amp;(n=0)}else if(0===e){var s=i.left+a.x;(n=q.left+G.x+nt+S+2-s)&lt;0&amp;&amp;(n=0)}n&amp;&amp;(V&lt;3?this.setAttribute(&quot;transform&quot;,&quot;translate(&quot;+n+&quot;,0) &quot;+this.getAttribute(&quot;transform&quot;)):this.setAttribute(&quot;visibility&quot;,&quot;hidden&quot;))}}))}var Y={},W=T[L],Z=k[L],K=T[C],et=k[C],rt=b-X;o?(&quot;pixels&quot;===h?(Y.y=z,Y.t=J*K,Y.b=J*et):(Y.t=Y.b=0,Y.yt=z+l*K,Y.yb=z-l*et),&quot;pixels&quot;===_?(Y.x=O,Y.l=b*W,Y.r=b*Z):(Y.l=rt*W,Y.r=rt*Z,Y.xl=O-v*W,Y.xr=O+v*Z)):(&quot;pixels&quot;===h?(Y.x=O,Y.l=J*W,Y.r=J*Z):(Y.l=Y.r=0,Y.xl=O+l*W,Y.xr=O-l*Z),&quot;pixels&quot;===_?(Y.y=1-z,Y.t=b*K,Y.b=b*et):(Y.t=rt*K,Y.b=rt*et,Y.yt=z-v*K,Y.yb=z+v*et)),a.autoMargin(r,e._id,Y)}],r)}(r,e,t);v&amp;&amp;v.then&amp;&amp;(t._promises||[]).push(v),t._context.edits.colorbarPosition&amp;&amp;function(t,e,r){var n,i,a,s=&quot;v&quot;===e.orientation,c=r._fullLayout._size;l.init({element:t.node(),gd:r,prepFn:function(){n=t.attr(&quot;transform&quot;),h(t)},moveFn:function(r,o){t.attr(&quot;transform&quot;,n+u(r,o)),i=l.align((s?e._uFrac:e._vFrac)+r/c.w,s?e._thickFrac:e._lenFrac,0,1,e.xanchor),a=l.align((s?e._vFrac:1-e._uFrac)-o/c.h,s?e._lenFrac:e._thickFrac,0,1,e.yanchor);var f=l.getCursor(i,a,e.xanchor,e.yanchor);h(t,f)},doneFn:function(){if(h(t),void 0!==i&amp;&amp;void 0!==a){var n={};n[e._propPrefix+&quot;x&quot;]=i,n[e._propPrefix+&quot;y&quot;]=a,void 0!==e._traceIndex?o.call(&quot;_guiRestyle&quot;,r,n,e._traceIndex):o.call(&quot;_guiRelayout&quot;,r,n)}}})}(r,e,t)})),e.exit().each((function(e){a.autoMargin(t,e._id)})).remove(),e.order()}}},{&quot;../../constants/alignment&quot;:471,&quot;../../lib&quot;:503,&quot;../../lib/extend&quot;:493,&quot;../../lib/setcursor&quot;:524,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../plots/cartesian/axis_defaults&quot;:556,&quot;../../plots/cartesian/layout_attributes&quot;:569,&quot;../../plots/cartesian/position_defaults&quot;:572,&quot;../../plots/plots&quot;:619,&quot;../../registry&quot;:638,&quot;../color&quot;:366,&quot;../colorscale/helpers&quot;:377,&quot;../dragelement&quot;:385,&quot;../drawing&quot;:388,&quot;../titles&quot;:464,&quot;./constants&quot;:368,&quot;@plotly/d3&quot;:58,tinycolor2:312}],371:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t){return n.isPlainObject(t.colorbar)}},{&quot;../../lib&quot;:503}],372:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;colorbar&quot;,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;).draw,hasColorbar:t(&quot;./has_colorbar&quot;)}},{&quot;./attributes&quot;:367,&quot;./defaults&quot;:369,&quot;./draw&quot;:370,&quot;./has_colorbar&quot;:371}],373:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../colorbar/attributes&quot;),i=t(&quot;../../lib/regex&quot;).counter,a=t(&quot;../../lib/sort_object_keys&quot;),o=t(&quot;./scales.js&quot;).scales;a(o);function s(t){return&quot;`&quot;+t+&quot;`&quot;}e.exports=function(t,e){t=t||&quot;&quot;;var r,a=(e=e||{}).cLetter||&quot;c&quot;,l=(&quot;onlyIfNumerical&quot;in e?e.onlyIfNumerical:Boolean(t),&quot;noScale&quot;in e?e.noScale:&quot;marker.line&quot;===t),c=&quot;showScaleDflt&quot;in e?e.showScaleDflt:&quot;z&quot;===a,u=&quot;string&quot;==typeof e.colorscaleDflt?o[e.colorscaleDflt]:null,f=e.editTypeOverride||&quot;&quot;,h=t?t+&quot;.&quot;:&quot;&quot;;&quot;colorAttr&quot;in e?(r=e.colorAttr,e.colorAttr):s(h+(r={z:&quot;z&quot;,c:&quot;color&quot;}[a]));var p=a+&quot;auto&quot;,d=a+&quot;min&quot;,m=a+&quot;max&quot;,g=a+&quot;mid&quot;,v=(s(h+p),s(h+d),s(h+m),{});v[d]=v[m]=void 0;var y={};y[p]=!1;var x={};return&quot;color&quot;===r&amp;&amp;(x.color={valType:&quot;color&quot;,arrayOk:!0,editType:f||&quot;style&quot;},e.anim&amp;&amp;(x.color.anim=!0)),x[p]={valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:v},x[d]={valType:&quot;number&quot;,dflt:null,editType:f||&quot;plot&quot;,impliedEdits:y},x[m]={valType:&quot;number&quot;,dflt:null,editType:f||&quot;plot&quot;,impliedEdits:y},x[g]={valType:&quot;number&quot;,dflt:null,editType:&quot;calc&quot;,impliedEdits:v},x.colorscale={valType:&quot;colorscale&quot;,editType:&quot;calc&quot;,dflt:u,impliedEdits:{autocolorscale:!1}},x.autocolorscale={valType:&quot;boolean&quot;,dflt:!1!==e.autoColorDflt,editType:&quot;calc&quot;,impliedEdits:{colorscale:void 0}},x.reversescale={valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},l||(x.showscale={valType:&quot;boolean&quot;,dflt:c,editType:&quot;calc&quot;},x.colorbar=n),e.noColorAxis||(x.coloraxis={valType:&quot;subplotid&quot;,regex:i(&quot;coloraxis&quot;),dflt:null,editType:&quot;calc&quot;}),x}},{&quot;../../lib/regex&quot;:520,&quot;../../lib/sort_object_keys&quot;:526,&quot;../colorbar/attributes&quot;:367,&quot;./scales.js&quot;:381}],374:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./helpers&quot;).extractOpts;e.exports=function(t,e,r){var o,s=t._fullLayout,l=r.vals,c=r.containerStr,u=c?i.nestedProperty(e,c).get():e,f=a(u),h=!1!==f.auto,p=f.min,d=f.max,m=f.mid,g=function(){return i.aggNums(Math.min,null,l)},v=function(){return i.aggNums(Math.max,null,l)};(void 0===p?p=g():h&amp;&amp;(p=u._colorAx&amp;&amp;n(p)?Math.min(p,g()):g()),void 0===d?d=v():h&amp;&amp;(d=u._colorAx&amp;&amp;n(d)?Math.max(d,v()):v()),h&amp;&amp;void 0!==m&amp;&amp;(d-m&gt;m-p?p=m-(d-m):d-m&lt;m-p&amp;&amp;(d=m+(m-p))),p===d&amp;&amp;(p-=.5,d+=.5),f._sync(&quot;min&quot;,p),f._sync(&quot;max&quot;,d),f.autocolorscale)&amp;&amp;(o=p*d&lt;0?s.colorscale.diverging:p&gt;=0?s.colorscale.sequential:s.colorscale.sequentialminus,f._sync(&quot;colorscale&quot;,o))}},{&quot;../../lib&quot;:503,&quot;./helpers&quot;:377,&quot;fast-isnumeric&quot;:190}],375:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./helpers&quot;).hasColorscale,a=t(&quot;./helpers&quot;).extractOpts;e.exports=function(t,e){function r(t,e){var r=t[&quot;_&quot;+e];void 0!==r&amp;&amp;(t[e]=r)}function o(t,i){var o=i.container?n.nestedProperty(t,i.container).get():t;if(o)if(o.coloraxis)o._colorAx=e[o.coloraxis];else{var s=a(o),l=s.auto;(l||void 0===s.min)&amp;&amp;r(o,i.min),(l||void 0===s.max)&amp;&amp;r(o,i.max),s.autocolorscale&amp;&amp;r(o,&quot;colorscale&quot;)}}for(var s=0;s&lt;t.length;s++){var l=t[s],c=l._module.colorbar;if(c)if(Array.isArray(c))for(var u=0;u&lt;c.length;u++)o(l,c[u]);else o(l,c);i(l,&quot;marker.line&quot;)&amp;&amp;o(l,{container:&quot;marker.line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;})}for(var f in e._colorAxes)o(e[f],{min:&quot;cmin&quot;,max:&quot;cmax&quot;})}},{&quot;../../lib&quot;:503,&quot;./helpers&quot;:377}],376:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../colorbar/has_colorbar&quot;),o=t(&quot;../colorbar/defaults&quot;),s=t(&quot;./scales&quot;).isValid,l=t(&quot;../../registry&quot;).traceIs;function c(t,e){var r=e.slice(0,e.length-1);return e?i.nestedProperty(t,r).get()||{}:t}e.exports=function t(e,r,u,f,h){var p=h.prefix,d=h.cLetter,m=&quot;_module&quot;in r,g=c(e,p),v=c(r,p),y=c(r._template||{},p)||{},x=function(){return delete e.coloraxis,delete r.coloraxis,t(e,r,u,f,h)};if(m){var b=u._colorAxes||{},_=f(p+&quot;coloraxis&quot;);if(_){var w=l(r,&quot;contour&quot;)&amp;&amp;i.nestedProperty(r,&quot;contours.coloring&quot;).get()||&quot;heatmap&quot;,T=b[_];return void(T?(T[2].push(x),T[0]!==w&amp;&amp;(T[0]=!1,i.warn([&quot;Ignoring coloraxis:&quot;,_,&quot;setting&quot;,&quot;as it is linked to incompatible colorscales.&quot;].join(&quot; &quot;)))):b[_]=[w,r,[x]])}}var k=g[d+&quot;min&quot;],A=g[d+&quot;max&quot;],M=n(k)&amp;&amp;n(A)&amp;&amp;k&lt;A;f(p+d+&quot;auto&quot;,!M)?f(p+d+&quot;mid&quot;):(f(p+d+&quot;min&quot;),f(p+d+&quot;max&quot;));var S,E,L=g.colorscale,C=y.colorscale;(void 0!==L&amp;&amp;(S=!s(L)),void 0!==C&amp;&amp;(S=!s(C)),f(p+&quot;autocolorscale&quot;,S),f(p+&quot;colorscale&quot;),f(p+&quot;reversescale&quot;),&quot;marker.line.&quot;!==p)&amp;&amp;(p&amp;&amp;m&amp;&amp;(E=a(g)),f(p+&quot;showscale&quot;,E)&amp;&amp;(p&amp;&amp;y&amp;&amp;(v._template=y),o(g,v,u)))}},{&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;../colorbar/defaults&quot;:369,&quot;../colorbar/has_colorbar&quot;:371,&quot;./scales&quot;:381,&quot;fast-isnumeric&quot;:190}],377:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../color&quot;),l=t(&quot;./scales&quot;).isValid;var c=[&quot;showscale&quot;,&quot;autocolorscale&quot;,&quot;colorscale&quot;,&quot;reversescale&quot;,&quot;colorbar&quot;],u=[&quot;min&quot;,&quot;max&quot;,&quot;mid&quot;,&quot;auto&quot;];function f(t){var e,r,n,i=t._colorAx,a=i||t,o={};for(r=0;r&lt;c.length;r++)o[n=c[r]]=a[n];if(i)for(e=&quot;c&quot;,r=0;r&lt;u.length;r++)o[n=u[r]]=a[&quot;c&quot;+n];else{var s;for(r=0;r&lt;u.length;r++)((s=&quot;c&quot;+(n=u[r]))in a||(s=&quot;z&quot;+n)in a)&amp;&amp;(o[n]=a[s]);e=s.charAt(0)}return o._sync=function(t,r){var n=-1!==u.indexOf(t)?e+t:t;a[n]=a[&quot;_&quot;+n]=r},o}function h(t){for(var e=f(t),r=e.min,n=e.max,i=e.reversescale?p(e.colorscale):e.colorscale,a=i.length,o=new Array(a),s=new Array(a),l=0;l&lt;a;l++){var c=i[l];o[l]=r+c[0]*(n-r),s[l]=c[1]}return{domain:o,range:s}}function p(t){for(var e=t.length,r=new Array(e),n=e-1,i=0;n&gt;=0;n--,i++){var a=t[n];r[i]=[1-a[0],a[1]]}return r}function d(t,e){e=e||{};for(var r=t.domain,o=t.range,l=o.length,c=new Array(l),u=0;u&lt;l;u++){var f=i(o[u]).toRgb();c[u]=[f.r,f.g,f.b,f.a]}var h,p=n.scale.linear().domain(r).range(c).clamp(!0),d=e.noNumericCheck,g=e.returnArray;return(h=d&amp;&amp;g?p:d?function(t){return m(p(t))}:g?function(t){return a(t)?p(t):i(t).isValid()?t:s.defaultLine}:function(t){return a(t)?m(p(t)):i(t).isValid()?t:s.defaultLine}).domain=p.domain,h.range=function(){return o},h}function m(t){var e={r:t[0],g:t[1],b:t[2],a:t[3]};return i(e).toRgbString()}e.exports={hasColorscale:function(t,e,r){var n=e?o.nestedProperty(t,e).get()||{}:t,i=n[r||&quot;color&quot;],s=!1;if(o.isArrayOrTypedArray(i))for(var c=0;c&lt;i.length;c++)if(a(i[c])){s=!0;break}return o.isPlainObject(n)&amp;&amp;(s||!0===n.showscale||a(n.cmin)&amp;&amp;a(n.cmax)||l(n.colorscale)||o.isPlainObject(n.colorbar))},extractOpts:f,extractScale:h,flipScale:p,makeColorScaleFunc:d,makeColorScaleFuncFromTrace:function(t,e){return d(h(t),e)}}},{&quot;../../lib&quot;:503,&quot;../color&quot;:366,&quot;./scales&quot;:381,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:190,tinycolor2:312}],378:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./scales&quot;),i=t(&quot;./helpers&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;colorscale&quot;,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),handleDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),calc:t(&quot;./calc&quot;),scales:n.scales,defaultScale:n.defaultScale,getScale:n.get,isValidScale:n.isValid,hasColorscale:i.hasColorscale,extractOpts:i.extractOpts,extractScale:i.extractScale,flipScale:i.flipScale,makeColorScaleFunc:i.makeColorScaleFunc,makeColorScaleFuncFromTrace:i.makeColorScaleFuncFromTrace}},{&quot;./attributes&quot;:373,&quot;./calc&quot;:374,&quot;./cross_trace_defaults&quot;:375,&quot;./defaults&quot;:376,&quot;./helpers&quot;:377,&quot;./layout_attributes&quot;:379,&quot;./layout_defaults&quot;:380,&quot;./scales&quot;:381}],379:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;./attributes&quot;),a=t(&quot;./scales&quot;).scales;e.exports={editType:&quot;calc&quot;,colorscale:{editType:&quot;calc&quot;,sequential:{valType:&quot;colorscale&quot;,dflt:a.Reds,editType:&quot;calc&quot;},sequentialminus:{valType:&quot;colorscale&quot;,dflt:a.Blues,editType:&quot;calc&quot;},diverging:{valType:&quot;colorscale&quot;,dflt:a.RdBu,editType:&quot;calc&quot;}},coloraxis:n({_isSubplotObj:!0,editType:&quot;calc&quot;},i(&quot;&quot;,{colorAttr:&quot;corresponding trace color array(s)&quot;,noColorAxis:!0,showScaleDflt:!0}))}},{&quot;../../lib/extend&quot;:493,&quot;./attributes&quot;:373,&quot;./scales&quot;:381}],380:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;./layout_attributes&quot;),o=t(&quot;./defaults&quot;);e.exports=function(t,e){function r(r,i){return n.coerce(t,e,a,r,i)}r(&quot;colorscale.sequential&quot;),r(&quot;colorscale.sequentialminus&quot;),r(&quot;colorscale.diverging&quot;);var s,l,c=e._colorAxes;function u(t,e){return n.coerce(s,l,a.coloraxis,t,e)}for(var f in c){var h=c[f];if(h[0])s=t[f]||{},(l=i.newContainer(e,f,&quot;coloraxis&quot;))._name=f,o(s,l,e,u,{prefix:&quot;&quot;,cLetter:&quot;c&quot;});else{for(var p=0;p&lt;h[2].length;p++)h[2][p]();delete e._colorAxes[f]}}}},{&quot;../../lib&quot;:503,&quot;../../plot_api/plot_template&quot;:543,&quot;./defaults&quot;:376,&quot;./layout_attributes&quot;:379}],381:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;),i={Greys:[[0,&quot;rgb(0,0,0)&quot;],[1,&quot;rgb(255,255,255)&quot;]],YlGnBu:[[0,&quot;rgb(8,29,88)&quot;],[.125,&quot;rgb(37,52,148)&quot;],[.25,&quot;rgb(34,94,168)&quot;],[.375,&quot;rgb(29,145,192)&quot;],[.5,&quot;rgb(65,182,196)&quot;],[.625,&quot;rgb(127,205,187)&quot;],[.75,&quot;rgb(199,233,180)&quot;],[.875,&quot;rgb(237,248,217)&quot;],[1,&quot;rgb(255,255,217)&quot;]],Greens:[[0,&quot;rgb(0,68,27)&quot;],[.125,&quot;rgb(0,109,44)&quot;],[.25,&quot;rgb(35,139,69)&quot;],[.375,&quot;rgb(65,171,93)&quot;],[.5,&quot;rgb(116,196,118)&quot;],[.625,&quot;rgb(161,217,155)&quot;],[.75,&quot;rgb(199,233,192)&quot;],[.875,&quot;rgb(229,245,224)&quot;],[1,&quot;rgb(247,252,245)&quot;]],YlOrRd:[[0,&quot;rgb(128,0,38)&quot;],[.125,&quot;rgb(189,0,38)&quot;],[.25,&quot;rgb(227,26,28)&quot;],[.375,&quot;rgb(252,78,42)&quot;],[.5,&quot;rgb(253,141,60)&quot;],[.625,&quot;rgb(254,178,76)&quot;],[.75,&quot;rgb(254,217,118)&quot;],[.875,&quot;rgb(255,237,160)&quot;],[1,&quot;rgb(255,255,204)&quot;]],Bluered:[[0,&quot;rgb(0,0,255)&quot;],[1,&quot;rgb(255,0,0)&quot;]],RdBu:[[0,&quot;rgb(5,10,172)&quot;],[.35,&quot;rgb(106,137,247)&quot;],[.5,&quot;rgb(190,190,190)&quot;],[.6,&quot;rgb(220,170,132)&quot;],[.7,&quot;rgb(230,145,90)&quot;],[1,&quot;rgb(178,10,28)&quot;]],Reds:[[0,&quot;rgb(220,220,220)&quot;],[.2,&quot;rgb(245,195,157)&quot;],[.4,&quot;rgb(245,160,105)&quot;],[1,&quot;rgb(178,10,28)&quot;]],Blues:[[0,&quot;rgb(5,10,172)&quot;],[.35,&quot;rgb(40,60,190)&quot;],[.5,&quot;rgb(70,100,245)&quot;],[.6,&quot;rgb(90,120,245)&quot;],[.7,&quot;rgb(106,137,247)&quot;],[1,&quot;rgb(220,220,220)&quot;]],Picnic:[[0,&quot;rgb(0,0,255)&quot;],[.1,&quot;rgb(51,153,255)&quot;],[.2,&quot;rgb(102,204,255)&quot;],[.3,&quot;rgb(153,204,255)&quot;],[.4,&quot;rgb(204,204,255)&quot;],[.5,&quot;rgb(255,255,255)&quot;],[.6,&quot;rgb(255,204,255)&quot;],[.7,&quot;rgb(255,153,255)&quot;],[.8,&quot;rgb(255,102,204)&quot;],[.9,&quot;rgb(255,102,102)&quot;],[1,&quot;rgb(255,0,0)&quot;]],Rainbow:[[0,&quot;rgb(150,0,90)&quot;],[.125,&quot;rgb(0,0,200)&quot;],[.25,&quot;rgb(0,25,255)&quot;],[.375,&quot;rgb(0,152,255)&quot;],[.5,&quot;rgb(44,255,150)&quot;],[.625,&quot;rgb(151,255,0)&quot;],[.75,&quot;rgb(255,234,0)&quot;],[.875,&quot;rgb(255,111,0)&quot;],[1,&quot;rgb(255,0,0)&quot;]],Portland:[[0,&quot;rgb(12,51,131)&quot;],[.25,&quot;rgb(10,136,186)&quot;],[.5,&quot;rgb(242,211,56)&quot;],[.75,&quot;rgb(242,143,56)&quot;],[1,&quot;rgb(217,30,30)&quot;]],Jet:[[0,&quot;rgb(0,0,131)&quot;],[.125,&quot;rgb(0,60,170)&quot;],[.375,&quot;rgb(5,255,255)&quot;],[.625,&quot;rgb(255,255,0)&quot;],[.875,&quot;rgb(250,0,0)&quot;],[1,&quot;rgb(128,0,0)&quot;]],Hot:[[0,&quot;rgb(0,0,0)&quot;],[.3,&quot;rgb(230,0,0)&quot;],[.6,&quot;rgb(255,210,0)&quot;],[1,&quot;rgb(255,255,255)&quot;]],Blackbody:[[0,&quot;rgb(0,0,0)&quot;],[.2,&quot;rgb(230,0,0)&quot;],[.4,&quot;rgb(230,210,0)&quot;],[.7,&quot;rgb(255,255,255)&quot;],[1,&quot;rgb(160,200,255)&quot;]],Earth:[[0,&quot;rgb(0,0,130)&quot;],[.1,&quot;rgb(0,180,180)&quot;],[.2,&quot;rgb(40,210,40)&quot;],[.4,&quot;rgb(230,230,50)&quot;],[.6,&quot;rgb(120,70,20)&quot;],[1,&quot;rgb(255,255,255)&quot;]],Electric:[[0,&quot;rgb(0,0,0)&quot;],[.15,&quot;rgb(30,0,100)&quot;],[.4,&quot;rgb(120,0,100)&quot;],[.6,&quot;rgb(160,90,0)&quot;],[.8,&quot;rgb(230,200,0)&quot;],[1,&quot;rgb(255,250,220)&quot;]],Viridis:[[0,&quot;#440154&quot;],[.06274509803921569,&quot;#48186a&quot;],[.12549019607843137,&quot;#472d7b&quot;],[.18823529411764706,&quot;#424086&quot;],[.25098039215686274,&quot;#3b528b&quot;],[.3137254901960784,&quot;#33638d&quot;],[.3764705882352941,&quot;#2c728e&quot;],[.4392156862745098,&quot;#26828e&quot;],[.5019607843137255,&quot;#21918c&quot;],[.5647058823529412,&quot;#1fa088&quot;],[.6274509803921569,&quot;#28ae80&quot;],[.6901960784313725,&quot;#3fbc73&quot;],[.7529411764705882,&quot;#5ec962&quot;],[.8156862745098039,&quot;#84d44b&quot;],[.8784313725490196,&quot;#addc30&quot;],[.9411764705882353,&quot;#d8e219&quot;],[1,&quot;#fde725&quot;]],Cividis:[[0,&quot;rgb(0,32,76)&quot;],[.058824,&quot;rgb(0,42,102)&quot;],[.117647,&quot;rgb(0,52,110)&quot;],[.176471,&quot;rgb(39,63,108)&quot;],[.235294,&quot;rgb(60,74,107)&quot;],[.294118,&quot;rgb(76,85,107)&quot;],[.352941,&quot;rgb(91,95,109)&quot;],[.411765,&quot;rgb(104,106,112)&quot;],[.470588,&quot;rgb(117,117,117)&quot;],[.529412,&quot;rgb(131,129,120)&quot;],[.588235,&quot;rgb(146,140,120)&quot;],[.647059,&quot;rgb(161,152,118)&quot;],[.705882,&quot;rgb(176,165,114)&quot;],[.764706,&quot;rgb(192,177,109)&quot;],[.823529,&quot;rgb(209,191,102)&quot;],[.882353,&quot;rgb(225,204,92)&quot;],[.941176,&quot;rgb(243,219,79)&quot;],[1,&quot;rgb(255,233,69)&quot;]]},a=i.RdBu;function o(t){var e=0;if(!Array.isArray(t)||t.length&lt;2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r&lt;t.length;r++){var i=t[r];if(2!==i.length||+i[0]&lt;e||!n(i[1]).isValid())return!1;e=+i[0]}return!0}e.exports={scales:i,defaultScale:a,get:function(t,e){if(e||(e=a),!t)return e;function r(){try{t=i[t]||JSON.parse(t)}catch(r){t=e}}return&quot;string&quot;==typeof t&amp;&amp;(r(),&quot;string&quot;==typeof t&amp;&amp;r()),o(t)?t:e},isValid:function(t){return void 0!==i[t]||o(t)}}},{tinycolor2:312}],382:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=(t-r)/(n-r),o=a+e/(n-r),s=(a+o)/2;return&quot;left&quot;===i||&quot;bottom&quot;===i?a:&quot;center&quot;===i||&quot;middle&quot;===i?s:&quot;right&quot;===i||&quot;top&quot;===i?o:a&lt;2/3-s?a:o&gt;4/3-s?o:s}},{}],383:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=[[&quot;sw-resize&quot;,&quot;s-resize&quot;,&quot;se-resize&quot;],[&quot;w-resize&quot;,&quot;move&quot;,&quot;e-resize&quot;],[&quot;nw-resize&quot;,&quot;n-resize&quot;,&quot;ne-resize&quot;]];e.exports=function(t,e,r,a){return t=&quot;left&quot;===r?0:&quot;center&quot;===r?1:&quot;right&quot;===r?2:n.constrain(Math.floor(3*t),0,2),e=&quot;bottom&quot;===a?0:&quot;middle&quot;===a?1:&quot;top&quot;===a?2:n.constrain(Math.floor(3*e),0,2),i[e][t]}},{&quot;../../lib&quot;:503}],384:[function(t,e,r){&quot;use strict&quot;;r.selectMode=function(t){return&quot;lasso&quot;===t||&quot;select&quot;===t},r.drawMode=function(t){return&quot;drawclosedpath&quot;===t||&quot;drawopenpath&quot;===t||&quot;drawline&quot;===t||&quot;drawrect&quot;===t||&quot;drawcircle&quot;===t},r.openMode=function(t){return&quot;drawline&quot;===t||&quot;drawopenpath&quot;===t},r.rectMode=function(t){return&quot;select&quot;===t||&quot;drawline&quot;===t||&quot;drawrect&quot;===t||&quot;drawcircle&quot;===t},r.freeMode=function(t){return&quot;lasso&quot;===t||&quot;drawclosedpath&quot;===t||&quot;drawopenpath&quot;===t},r.selectingOrDrawing=function(t){return r.freeMode(t)||r.rectMode(t)}},{}],385:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mouse-event-offset&quot;),i=t(&quot;has-hover&quot;),a=t(&quot;has-passive-events&quot;),o=t(&quot;../../lib&quot;).removeElement,s=t(&quot;../../plots/cartesian/constants&quot;),l=e.exports={};l.align=t(&quot;./align&quot;),l.getCursor=t(&quot;./cursor&quot;);var c=t(&quot;./unhover&quot;);function u(){var t=document.createElement(&quot;div&quot;);t.className=&quot;dragcover&quot;;var e=t.style;return e.position=&quot;fixed&quot;,e.left=0,e.right=0,e.top=0,e.bottom=0,e.zIndex=999999999,e.background=&quot;none&quot;,document.body.appendChild(t),t}function f(t){return n(t.changedTouches?t.changedTouches[0]:t,document.body)}l.unhover=c.wrapped,l.unhoverRaw=c.raw,l.init=function(t){var e,r,n,c,h,p,d,m,g=t.gd,v=1,y=g._context.doubleClickDelay,x=t.element;g._mouseDownTime||(g._mouseDownTime=0),x.style.pointerEvents=&quot;all&quot;,x.onmousedown=_,a?(x._ontouchstart&amp;&amp;x.removeEventListener(&quot;touchstart&quot;,x._ontouchstart),x._ontouchstart=_,x.addEventListener(&quot;touchstart&quot;,_,{passive:!1})):x.ontouchstart=_;var b=t.clampFn||function(t,e,r){return Math.abs(t)&lt;r&amp;&amp;(t=0),Math.abs(e)&lt;r&amp;&amp;(e=0),[t,e]};function _(a){g._dragged=!1,g._dragging=!0;var o=f(a);e=o[0],r=o[1],d=a.target,p=a,m=2===a.buttons||a.ctrlKey,void 0===a.clientX&amp;&amp;void 0===a.clientY&amp;&amp;(a.clientX=e,a.clientY=r),(n=(new Date).getTime())-g._mouseDownTime&lt;y?v+=1:(v=1,g._mouseDownTime=n),t.prepFn&amp;&amp;t.prepFn(a,e,r),i&amp;&amp;!m?(h=u()).style.cursor=window.getComputedStyle(x).cursor:i||(h=document,c=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(x).cursor),document.addEventListener(&quot;mouseup&quot;,T),document.addEventListener(&quot;touchend&quot;,T),!1!==t.dragmode&amp;&amp;(a.preventDefault(),document.addEventListener(&quot;mousemove&quot;,w),document.addEventListener(&quot;touchmove&quot;,w,{passive:!1}))}function w(n){n.preventDefault();var i=f(n),a=t.minDrag||s.MINDRAG,o=b(i[0]-e,i[1]-r,a),c=o[0],u=o[1];(c||u)&amp;&amp;(g._dragged=!0,l.unhover(g,n)),g._dragged&amp;&amp;t.moveFn&amp;&amp;!m&amp;&amp;(g._dragdata={element:x,dx:c,dy:u},t.moveFn(c,u))}function T(e){if(delete g._dragdata,!1!==t.dragmode&amp;&amp;(e.preventDefault(),document.removeEventListener(&quot;mousemove&quot;,w),document.removeEventListener(&quot;touchmove&quot;,w)),document.removeEventListener(&quot;mouseup&quot;,T),document.removeEventListener(&quot;touchend&quot;,T),i?o(h):c&amp;&amp;(h.documentElement.style.cursor=c,c=null),g._dragging){if(g._dragging=!1,(new Date).getTime()-g._mouseDownTime&gt;y&amp;&amp;(v=Math.max(v-1,1)),g._dragged)t.doneFn&amp;&amp;t.doneFn();else if(t.clickFn&amp;&amp;t.clickFn(v,p),!m){var r;try{r=new MouseEvent(&quot;click&quot;,e)}catch(t){var n=f(e);(r=document.createEvent(&quot;MouseEvents&quot;)).initMouseEvent(&quot;click&quot;,e.bubbles,e.cancelable,e.view,e.detail,e.screenX,e.screenY,n[0],n[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget)}d.dispatchEvent(r)}g._dragging=!1,g._dragged=!1}else g._dragged=!1}},l.coverSlip=u},{&quot;../../lib&quot;:503,&quot;../../plots/cartesian/constants&quot;:561,&quot;./align&quot;:382,&quot;./cursor&quot;:383,&quot;./unhover&quot;:386,&quot;has-hover&quot;:228,&quot;has-passive-events&quot;:229,&quot;mouse-event-offset&quot;:242}],386:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/events&quot;),i=t(&quot;../../lib/throttle&quot;),a=t(&quot;../../lib/dom&quot;).getGraphDiv,o=t(&quot;../fx/constants&quot;),s=e.exports={};s.wrapped=function(t,e,r){(t=a(t))._fullLayout&amp;&amp;i.clear(t._fullLayout._uid+o.HOVERID),s.raw(t,e,r)},s.raw=function(t,e){var r=t._fullLayout,i=t._hoverdata;e||(e={}),e.target&amp;&amp;!t._dragged&amp;&amp;!1===n.triggerHandler(t,&quot;plotly_beforehover&quot;,e)||(r._hoverlayer.selectAll(&quot;g&quot;).remove(),r._hoverlayer.selectAll(&quot;line&quot;).remove(),r._hoverlayer.selectAll(&quot;circle&quot;).remove(),t._hoverdata=void 0,e.target&amp;&amp;i&amp;&amp;t.emit(&quot;plotly_unhover&quot;,{event:e,points:i}))}},{&quot;../../lib/dom&quot;:491,&quot;../../lib/events&quot;:492,&quot;../../lib/throttle&quot;:530,&quot;../fx/constants&quot;:400}],387:[function(t,e,r){&quot;use strict&quot;;r.dash={valType:&quot;string&quot;,values:[&quot;solid&quot;,&quot;dot&quot;,&quot;dash&quot;,&quot;longdash&quot;,&quot;dashdot&quot;,&quot;longdashdot&quot;],dflt:&quot;solid&quot;,editType:&quot;style&quot;},r.pattern={shape:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;/&quot;,&quot;\\&quot;,&quot;x&quot;,&quot;-&quot;,&quot;|&quot;,&quot;+&quot;,&quot;.&quot;],dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},fillmode:{valType:&quot;enumerated&quot;,values:[&quot;replace&quot;,&quot;overlay&quot;],dflt:&quot;replace&quot;,editType:&quot;style&quot;},bgcolor:{valType:&quot;color&quot;,arrayOk:!0,editType:&quot;style&quot;},fgcolor:{valType:&quot;color&quot;,arrayOk:!0,editType:&quot;style&quot;},fgopacity:{valType:&quot;number&quot;,editType:&quot;style&quot;,min:0,max:1},size:{valType:&quot;number&quot;,min:0,dflt:8,arrayOk:!0,editType:&quot;style&quot;},solidity:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,arrayOk:!0,editType:&quot;style&quot;},editType:&quot;style&quot;}},{}],388:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=i.numberFormat,o=t(&quot;fast-isnumeric&quot;),s=t(&quot;tinycolor2&quot;),l=t(&quot;../../registry&quot;),c=t(&quot;../color&quot;),u=t(&quot;../colorscale&quot;),f=i.strTranslate,h=t(&quot;../../lib/svg_text_utils&quot;),p=t(&quot;../../constants/xmlns_namespaces&quot;),d=t(&quot;../../constants/alignment&quot;).LINE_SPACING,m=t(&quot;../../constants/interactions&quot;).DESELECTDIM,g=t(&quot;../../traces/scatter/subtypes&quot;),v=t(&quot;../../traces/scatter/make_bubble_size_func&quot;),y=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,x=e.exports={};x.font=function(t,e,r,n){i.isPlainObject(e)&amp;&amp;(n=e.color,r=e.size,e=e.family),e&amp;&amp;t.style(&quot;font-family&quot;,e),r+1&amp;&amp;t.style(&quot;font-size&quot;,r+&quot;px&quot;),n&amp;&amp;t.call(c.fill,n)},x.setPosition=function(t,e,r){t.attr(&quot;x&quot;,e).attr(&quot;y&quot;,r)},x.setSize=function(t,e,r){t.attr(&quot;width&quot;,e).attr(&quot;height&quot;,r)},x.setRect=function(t,e,r,n,i){t.call(x.setPosition,e,r).call(x.setSize,n,i)},x.translatePoint=function(t,e,r,n){var i=r.c2p(t.x),a=n.c2p(t.y);return!!(o(i)&amp;&amp;o(a)&amp;&amp;e.node())&amp;&amp;(&quot;text&quot;===e.node().nodeName?e.attr(&quot;x&quot;,i).attr(&quot;y&quot;,a):e.attr(&quot;transform&quot;,f(i,a)),!0)},x.translatePoints=function(t,e,r){t.each((function(t){var i=n.select(this);x.translatePoint(t,i,e,r)}))},x.hideOutsideRangePoint=function(t,e,r,n,i,a){e.attr(&quot;display&quot;,r.isPtWithinRange(t,i)&amp;&amp;n.isPtWithinRange(t,a)?null:&quot;none&quot;)},x.hideOutsideRangePoints=function(t,e){if(e._hasClipOnAxisFalse){var r=e.xaxis,i=e.yaxis;t.each((function(e){var a=e[0].trace,o=a.xcalendar,s=a.ycalendar,c=l.traceIs(a,&quot;bar-like&quot;)?&quot;.bartext&quot;:&quot;.point,.textpoint&quot;;t.selectAll(c).each((function(t){x.hideOutsideRangePoint(t,n.select(this),r,i,o,s)}))}))}},x.crispRound=function(t,e,r){return e&amp;&amp;o(e)?t._context.staticPlot?e:e&lt;1?1:Math.round(e):r||0},x.singleLineStyle=function(t,e,r,n,i){e.style(&quot;fill&quot;,&quot;none&quot;);var a=(((t||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,s=i||a.dash||&quot;&quot;;c.stroke(e,n||a.color),x.dashLine(e,s,o)},x.lineGroupStyle=function(t,e,r,i){t.style(&quot;fill&quot;,&quot;none&quot;).each((function(t){var a=(((t||[])[0]||{}).trace||{}).line||{},o=e||a.width||0,s=i||a.dash||&quot;&quot;;n.select(this).call(c.stroke,r||a.color).call(x.dashLine,s,o)}))},x.dashLine=function(t,e,r){r=+r||0,e=x.dashStyle(e,r),t.style({&quot;stroke-dasharray&quot;:e,&quot;stroke-width&quot;:r+&quot;px&quot;})},x.dashStyle=function(t,e){e=+e||1;var r=Math.max(e,3);return&quot;solid&quot;===t?t=&quot;&quot;:&quot;dot&quot;===t?t=r+&quot;px,&quot;+r+&quot;px&quot;:&quot;dash&quot;===t?t=3*r+&quot;px,&quot;+3*r+&quot;px&quot;:&quot;longdash&quot;===t?t=5*r+&quot;px,&quot;+5*r+&quot;px&quot;:&quot;dashdot&quot;===t?t=3*r+&quot;px,&quot;+r+&quot;px,&quot;+r+&quot;px,&quot;+r+&quot;px&quot;:&quot;longdashdot&quot;===t&amp;&amp;(t=5*r+&quot;px,&quot;+2*r+&quot;px,&quot;+r+&quot;px,&quot;+2*r+&quot;px&quot;),t},x.singleFillStyle=function(t){var e=(((n.select(t.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;e&amp;&amp;t.call(c.fill,e)},x.fillGroupStyle=function(t){t.style(&quot;stroke-width&quot;,0).each((function(t){var e=n.select(this);t[0].trace&amp;&amp;e.call(c.fill,t[0].trace.fillcolor)}))};var b=t(&quot;./symbol_defs&quot;);x.symbolNames=[],x.symbolFuncs=[],x.symbolNeedLines={},x.symbolNoDot={},x.symbolNoFill={},x.symbolList=[],Object.keys(b).forEach((function(t){var e=b[t],r=e.n;x.symbolList.push(r,String(r),t,r+100,String(r+100),t+&quot;-open&quot;),x.symbolNames[r]=t,x.symbolFuncs[r]=e.f,e.needLine&amp;&amp;(x.symbolNeedLines[r]=!0),e.noDot?x.symbolNoDot[r]=!0:x.symbolList.push(r+200,String(r+200),t+&quot;-dot&quot;,r+300,String(r+300),t+&quot;-open-dot&quot;),e.noFill&amp;&amp;(x.symbolNoFill[r]=!0)}));var _=x.symbolNames.length;function w(t,e){var r=t%100;return x.symbolFuncs[r](e)+(t&gt;=200?&quot;M0,0.5L0.5,0L0,-0.5L-0.5,0Z&quot;:&quot;&quot;)}x.symbolNumber=function(t){if(o(t))t=+t;else if(&quot;string&quot;==typeof t){var e=0;t.indexOf(&quot;-open&quot;)&gt;0&amp;&amp;(e=100,t=t.replace(&quot;-open&quot;,&quot;&quot;)),t.indexOf(&quot;-dot&quot;)&gt;0&amp;&amp;(e+=200,t=t.replace(&quot;-dot&quot;,&quot;&quot;)),(t=x.symbolNames.indexOf(t))&gt;=0&amp;&amp;(t+=e)}return t%100&gt;=_||t&gt;=400?0:Math.floor(Math.max(t,0))};var T={x1:1,x2:0,y1:0,y2:0},k={x1:0,x2:0,y1:1,y2:0},A=a(&quot;~f&quot;),M={radial:{node:&quot;radialGradient&quot;},radialreversed:{node:&quot;radialGradient&quot;,reversed:!0},horizontal:{node:&quot;linearGradient&quot;,attrs:T},horizontalreversed:{node:&quot;linearGradient&quot;,attrs:T,reversed:!0},vertical:{node:&quot;linearGradient&quot;,attrs:k},verticalreversed:{node:&quot;linearGradient&quot;,attrs:k,reversed:!0}};x.gradient=function(t,e,r,a,o,l){for(var u=o.length,f=M[a],h=new Array(u),p=0;p&lt;u;p++)f.reversed?h[u-1-p]=[A(100*(1-o[p][0])),o[p][1]]:h[p]=[A(100*o[p][0]),o[p][1]];var d=e._fullLayout,m=&quot;g&quot;+d._uid+&quot;-&quot;+r,g=d._defs.select(&quot;.gradients&quot;).selectAll(&quot;#&quot;+m).data([a+h.join(&quot;;&quot;)],i.identity);g.exit().remove(),g.enter().append(f.node).each((function(){var t=n.select(this);f.attrs&amp;&amp;t.attr(f.attrs),t.attr(&quot;id&quot;,m);var e=t.selectAll(&quot;stop&quot;).data(h);e.exit().remove(),e.enter().append(&quot;stop&quot;),e.each((function(t){var e=s(t[1]);n.select(this).attr({offset:t[0]+&quot;%&quot;,&quot;stop-color&quot;:c.tinyRGB(e),&quot;stop-opacity&quot;:e.getAlpha()})}))})),t.style(l,D(m,e)).style(l+&quot;-opacity&quot;,null);var v=function(t){return&quot;.&quot;+t.attr(&quot;class&quot;).replace(/\s/g,&quot;.&quot;)},y=v(n.select(t.node().parentNode))+&quot;&gt;&quot;+v(t);d._gradientUrlQueryParts[y]=1},x.pattern=function(t,e,r,a,o,s,l,u,f,h,p,d){var m=&quot;legend&quot;===e;u&amp;&amp;(&quot;overlay&quot;===f?(h=u,p=c.contrast(h)):(h=void 0,p=u));var g,v,y,x,b,_,w,T,k,A,M,S=r._fullLayout,E=&quot;p&quot;+S._uid+&quot;-&quot;+a,L={};switch(o){case&quot;/&quot;:g=s*Math.sqrt(2),v=s*Math.sqrt(2),_=&quot;path&quot;,L={d:y=&quot;M-&quot;+g/4+&quot;,&quot;+v/4+&quot;l&quot;+g/2+&quot;,-&quot;+v/2+&quot;M0,&quot;+v+&quot;L&quot;+g+&quot;,0M&quot;+g/4*3+&quot;,&quot;+v/4*5+&quot;l&quot;+g/2+&quot;,-&quot;+v/2,opacity:d,stroke:p,&quot;stroke-width&quot;:(x=l*s)+&quot;px&quot;};break;case&quot;\\&quot;:g=s*Math.sqrt(2),v=s*Math.sqrt(2),_=&quot;path&quot;,L={d:y=&quot;M&quot;+g/4*3+&quot;,-&quot;+v/4+&quot;l&quot;+g/2+&quot;,&quot;+v/2+&quot;M0,0L&quot;+g+&quot;,&quot;+v+&quot;M-&quot;+g/4+&quot;,&quot;+v/4*3+&quot;l&quot;+g/2+&quot;,&quot;+v/2,opacity:d,stroke:p,&quot;stroke-width&quot;:(x=l*s)+&quot;px&quot;};break;case&quot;x&quot;:g=s*Math.sqrt(2),v=s*Math.sqrt(2),y=&quot;M-&quot;+g/4+&quot;,&quot;+v/4+&quot;l&quot;+g/2+&quot;,-&quot;+v/2+&quot;M0,&quot;+v+&quot;L&quot;+g+&quot;,0M&quot;+g/4*3+&quot;,&quot;+v/4*5+&quot;l&quot;+g/2+&quot;,-&quot;+v/2+&quot;M&quot;+g/4*3+&quot;,-&quot;+v/4+&quot;l&quot;+g/2+&quot;,&quot;+v/2+&quot;M0,0L&quot;+g+&quot;,&quot;+v+&quot;M-&quot;+g/4+&quot;,&quot;+v/4*3+&quot;l&quot;+g/2+&quot;,&quot;+v/2,x=s-s*Math.sqrt(1-l),_=&quot;path&quot;,L={d:y,opacity:d,stroke:p,&quot;stroke-width&quot;:x+&quot;px&quot;};break;case&quot;|&quot;:_=&quot;path&quot;,_=&quot;path&quot;,L={d:y=&quot;M&quot;+(g=s)/2+&quot;,0L&quot;+g/2+&quot;,&quot;+(v=s),opacity:d,stroke:p,&quot;stroke-width&quot;:(x=l*s)+&quot;px&quot;};break;case&quot;-&quot;:_=&quot;path&quot;,_=&quot;path&quot;,L={d:y=&quot;M0,&quot;+(v=s)/2+&quot;L&quot;+(g=s)+&quot;,&quot;+v/2,opacity:d,stroke:p,&quot;stroke-width&quot;:(x=l*s)+&quot;px&quot;};break;case&quot;+&quot;:_=&quot;path&quot;,y=&quot;M&quot;+(g=s)/2+&quot;,0L&quot;+g/2+&quot;,&quot;+(v=s)+&quot;M0,&quot;+v/2+&quot;L&quot;+g+&quot;,&quot;+v/2,x=s-s*Math.sqrt(1-l),_=&quot;path&quot;,L={d:y,opacity:d,stroke:p,&quot;stroke-width&quot;:x+&quot;px&quot;};break;case&quot;.&quot;:g=s,v=s,l&lt;Math.PI/4?b=Math.sqrt(l*s*s/Math.PI):(w=l,T=Math.PI/4,k=1,A=s/2,M=s/Math.sqrt(2),b=A+(M-A)*(w-T)/(k-T)),_=&quot;circle&quot;,L={cx:g/2,cy:v/2,r:b,opacity:d,fill:p}}var C=[o||&quot;noSh&quot;,h||&quot;noBg&quot;,p||&quot;noFg&quot;,s,l].join(&quot;;&quot;),P=S._defs.select(&quot;.patterns&quot;).selectAll(&quot;#&quot;+E).data([C],i.identity);P.exit().remove(),P.enter().append(&quot;pattern&quot;).each((function(){var t=n.select(this);if(t.attr({id:E,width:g+&quot;px&quot;,height:v+&quot;px&quot;,patternUnits:&quot;userSpaceOnUse&quot;,patternTransform:m?&quot;scale(0.8)&quot;:&quot;&quot;}),h){var e=t.selectAll(&quot;rect&quot;).data([0]);e.exit().remove(),e.enter().append(&quot;rect&quot;).attr({width:g+&quot;px&quot;,height:v+&quot;px&quot;,fill:h})}var r=t.selectAll(_).data([0]);r.exit().remove(),r.enter().append(_).attr(L)})),t.style(&quot;fill&quot;,D(E,r)).style(&quot;fill-opacity&quot;,null),t.classed(&quot;pattern_filled&quot;,!0);var I=&quot;.&quot;+n.select(t.node().parentNode).attr(&quot;class&quot;).replace(/\s/g,&quot;.&quot;)+&quot;&gt;.pattern_filled&quot;;S._patternUrlQueryParts[I]=1},x.initGradients=function(t){var e=t._fullLayout;i.ensureSingle(e._defs,&quot;g&quot;,&quot;gradients&quot;).selectAll(&quot;linearGradient,radialGradient&quot;).remove(),e._gradientUrlQueryParts={}},x.initPatterns=function(t){var e=t._fullLayout;i.ensureSingle(e._defs,&quot;g&quot;,&quot;patterns&quot;).selectAll(&quot;pattern&quot;).remove(),e._patternUrlQueryParts={}},x.getPatternAttr=function(t,e,r){return t&amp;&amp;i.isArrayOrTypedArray(t)?e&lt;t.length?t[e]:r:t},x.pointStyle=function(t,e,r){if(t.size()){var i=x.makePointStyleFns(e);t.each((function(t){x.singlePointStyle(t,n.select(this),e,i,r)}))}},x.singlePointStyle=function(t,e,r,n,a){var o=r.marker,s=o.line;if(e.style(&quot;opacity&quot;,n.selectedOpacityFn?n.selectedOpacityFn(t):void 0===t.mo?o.opacity:t.mo),n.ms2mrc){var l;l=&quot;various&quot;===t.ms||&quot;various&quot;===o.size?3:n.ms2mrc(t.ms),t.mrc=l,n.selectedSizeFn&amp;&amp;(l=t.mrc=n.selectedSizeFn(t));var u=x.symbolNumber(t.mx||o.symbol)||0;t.om=u%200&gt;=100,e.attr(&quot;d&quot;,w(u,l))}var f,h,p,d=!1;if(t.so)p=s.outlierwidth,h=s.outliercolor,f=o.outliercolor;else{var m=(s||{}).width;p=(t.mlw+1||m+1||(t.trace?(t.trace.marker.line||{}).width:0)+1)-1||0,h=&quot;mlc&quot;in t?t.mlcc=n.lineScale(t.mlc):i.isArrayOrTypedArray(s.color)?c.defaultLine:s.color,i.isArrayOrTypedArray(o.color)&amp;&amp;(f=c.defaultLine,d=!0),f=&quot;mc&quot;in t?t.mcc=n.markerScale(t.mc):o.color||&quot;rgba(0,0,0,0)&quot;,n.selectedColorFn&amp;&amp;(f=n.selectedColorFn(t))}if(t.om)e.call(c.stroke,f).style({&quot;stroke-width&quot;:(p||1)+&quot;px&quot;,fill:&quot;none&quot;});else{e.style(&quot;stroke-width&quot;,(t.isBlank?0:p)+&quot;px&quot;);var g=o.gradient,v=t.mgt;v?d=!0:v=g&amp;&amp;g.type,i.isArrayOrTypedArray(v)&amp;&amp;(v=v[0],M[v]||(v=0));var y=o.pattern,b=y&amp;&amp;x.getPatternAttr(y.shape,t.i,&quot;&quot;);if(v&amp;&amp;&quot;none&quot;!==v){var _=t.mgc;_?d=!0:_=g.color;var T=r.uid;d&amp;&amp;(T+=&quot;-&quot;+t.i),x.gradient(e,a,T,v,[[0,_],[1,f]],&quot;fill&quot;)}else if(b){var k=x.getPatternAttr(y.bgcolor,t.i,null),A=x.getPatternAttr(y.fgcolor,t.i,null),S=y.fgopacity,E=x.getPatternAttr(y.size,t.i,8),L=x.getPatternAttr(y.solidity,t.i,.3),C=t.mcc||i.isArrayOrTypedArray(y.shape)||i.isArrayOrTypedArray(y.bgcolor)||i.isArrayOrTypedArray(y.size)||i.isArrayOrTypedArray(y.solidity),P=r.uid;C&amp;&amp;(P+=&quot;-&quot;+t.i),x.pattern(e,&quot;point&quot;,a,P,b,E,L,t.mcc,y.fillmode,k,A,S)}else c.fill(e,f);p&amp;&amp;c.stroke(e,h)}},x.makePointStyleFns=function(t){var e={},r=t.marker;return e.markerScale=x.tryColorscale(r,&quot;&quot;),e.lineScale=x.tryColorscale(r,&quot;line&quot;),l.traceIs(t,&quot;symbols&quot;)&amp;&amp;(e.ms2mrc=g.isBubble(t)?v(t):function(){return(r.size||6)/2}),t.selectedpoints&amp;&amp;i.extendFlat(e,x.makeSelectedPointStyleFns(t)),e},x.makeSelectedPointStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},a=t.marker||{},o=r.marker||{},s=n.marker||{},c=a.opacity,u=o.opacity,f=s.opacity,h=void 0!==u,p=void 0!==f;(i.isArrayOrTypedArray(c)||h||p)&amp;&amp;(e.selectedOpacityFn=function(t){var e=void 0===t.mo?a.opacity:t.mo;return t.selected?h?u:e:p?f:m*e});var d=a.color,g=o.color,v=s.color;(g||v)&amp;&amp;(e.selectedColorFn=function(t){var e=t.mcc||d;return t.selected?g||e:v||e});var y=a.size,x=o.size,b=s.size,_=void 0!==x,w=void 0!==b;return l.traceIs(t,&quot;symbols&quot;)&amp;&amp;(_||w)&amp;&amp;(e.selectedSizeFn=function(t){var e=t.mrc||y/2;return t.selected?_?x/2:e:w?b/2:e}),e},x.makeSelectedTextStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.textfont||{},a=r.textfont||{},o=n.textfont||{},s=i.color,l=a.color,u=o.color;return e.selectedTextColorFn=function(t){var e=t.tc||s;return t.selected?l||e:u||(l?e:c.addOpacity(e,m))},e},x.selectedPointStyle=function(t,e){if(t.size()&amp;&amp;e.selectedpoints){var r=x.makeSelectedPointStyleFns(e),i=e.marker||{},a=[];r.selectedOpacityFn&amp;&amp;a.push((function(t,e){t.style(&quot;opacity&quot;,r.selectedOpacityFn(e))})),r.selectedColorFn&amp;&amp;a.push((function(t,e){c.fill(t,r.selectedColorFn(e))})),r.selectedSizeFn&amp;&amp;a.push((function(t,e){var n=e.mx||i.symbol||0,a=r.selectedSizeFn(e);t.attr(&quot;d&quot;,w(x.symbolNumber(n),a)),e.mrc2=a})),a.length&amp;&amp;t.each((function(t){for(var e=n.select(this),r=0;r&lt;a.length;r++)a[r](e,t)}))}},x.tryColorscale=function(t,e){var r=e?i.nestedProperty(t,e).get():t;if(r){var n=r.color;if((r.colorscale||r._colorAx)&amp;&amp;i.isArrayOrTypedArray(n))return u.makeColorScaleFuncFromTrace(r)}return i.identity};var S={start:1,end:-1,middle:0,bottom:1,top:-1};function E(t,e,r,i,a){var o=n.select(t.node().parentNode),s=-1!==e.indexOf(&quot;top&quot;)?&quot;top&quot;:-1!==e.indexOf(&quot;bottom&quot;)?&quot;bottom&quot;:&quot;middle&quot;,l=-1!==e.indexOf(&quot;left&quot;)?&quot;end&quot;:-1!==e.indexOf(&quot;right&quot;)?&quot;start&quot;:&quot;middle&quot;,c=i?i/.8+1:0,u=(h.lineCount(t)-1)*d+1,p=S[l]*c,m=.75*r+S[s]*c+(S[s]-1)*u*r/2;t.attr(&quot;text-anchor&quot;,l),a||o.attr(&quot;transform&quot;,f(p,m))}function L(t,e){var r=t.ts||e.textfont.size;return o(r)&amp;&amp;r&gt;0?r:0}x.textPointStyle=function(t,e,r){if(t.size()){var a;if(e.selectedpoints){var o=x.makeSelectedTextStyleFns(e);a=o.selectedTextColorFn}var s=e.texttemplate,l=r._fullLayout;t.each((function(t){var o=n.select(this),c=s?i.extractOption(t,e,&quot;txt&quot;,&quot;texttemplate&quot;):i.extractOption(t,e,&quot;tx&quot;,&quot;text&quot;);if(c||0===c){if(s){var u=e._module.formatLabels,f=u?u(t,e,l):{},p={};y(p,e,t.i);var d=e._meta||{};c=i.texttemplateString(c,f,l._d3locale,p,t,d)}var m=t.tp||e.textposition,g=L(t,e),v=a?a(t):t.tc||e.textfont.color;o.call(x.font,t.tf||e.textfont.family,g,v).text(c).call(h.convertToTspans,r).call(E,m,g,t.mrc)}else o.remove()}))}},x.selectedTextStyle=function(t,e){if(t.size()&amp;&amp;e.selectedpoints){var r=x.makeSelectedTextStyleFns(e);t.each((function(t){var i=n.select(this),a=r.selectedTextColorFn(t),o=t.tp||e.textposition,s=L(t,e);c.fill(i,a);var u=l.traceIs(e,&quot;bar-like&quot;);E(i,o,s,t.mrc2||t.mrc,u)}))}};function C(t,e,r,i){var a=t[0]-e[0],o=t[1]-e[1],s=r[0]-e[0],l=r[1]-e[1],c=Math.pow(a*a+o*o,.25),u=Math.pow(s*s+l*l,.25),f=(u*u*a-c*c*s)*i,h=(u*u*o-c*c*l)*i,p=3*u*(c+u),d=3*c*(c+u);return[[n.round(e[0]+(p&amp;&amp;f/p),2),n.round(e[1]+(p&amp;&amp;h/p),2)],[n.round(e[0]-(d&amp;&amp;f/d),2),n.round(e[1]-(d&amp;&amp;h/d),2)]]}x.smoothopen=function(t,e){if(t.length&lt;3)return&quot;M&quot;+t.join(&quot;L&quot;);var r,n=&quot;M&quot;+t[0],i=[];for(r=1;r&lt;t.length-1;r++)i.push(C(t[r-1],t[r],t[r+1],e));for(n+=&quot;Q&quot;+i[0][0]+&quot; &quot;+t[1],r=2;r&lt;t.length-1;r++)n+=&quot;C&quot;+i[r-2][1]+&quot; &quot;+i[r-1][0]+&quot; &quot;+t[r];return n+=&quot;Q&quot;+i[t.length-3][1]+&quot; &quot;+t[t.length-1]},x.smoothclosed=function(t,e){if(t.length&lt;3)return&quot;M&quot;+t.join(&quot;L&quot;)+&quot;Z&quot;;var r,n=&quot;M&quot;+t[0],i=t.length-1,a=[C(t[i],t[0],t[1],e)];for(r=1;r&lt;i;r++)a.push(C(t[r-1],t[r],t[r+1],e));for(a.push(C(t[i-1],t[i],t[0],e)),r=1;r&lt;=i;r++)n+=&quot;C&quot;+a[r-1][1]+&quot; &quot;+a[r][0]+&quot; &quot;+t[r];return n+=&quot;C&quot;+a[i][1]+&quot; &quot;+a[0][0]+&quot; &quot;+t[0]+&quot;Z&quot;};var P={hv:function(t,e){return&quot;H&quot;+n.round(e[0],2)+&quot;V&quot;+n.round(e[1],2)},vh:function(t,e){return&quot;V&quot;+n.round(e[1],2)+&quot;H&quot;+n.round(e[0],2)},hvh:function(t,e){return&quot;H&quot;+n.round((t[0]+e[0])/2,2)+&quot;V&quot;+n.round(e[1],2)+&quot;H&quot;+n.round(e[0],2)},vhv:function(t,e){return&quot;V&quot;+n.round((t[1]+e[1])/2,2)+&quot;H&quot;+n.round(e[0],2)+&quot;V&quot;+n.round(e[1],2)}},I=function(t,e){return&quot;L&quot;+n.round(e[0],2)+&quot;,&quot;+n.round(e[1],2)};x.steps=function(t){var e=P[t]||I;return function(t){for(var r=&quot;M&quot;+n.round(t[0][0],2)+&quot;,&quot;+n.round(t[0][1],2),i=1;i&lt;t.length;i++)r+=e(t[i-1],t[i]);return r}},x.makeTester=function(){var t=i.ensureSingleById(n.select(&quot;body&quot;),&quot;svg&quot;,&quot;js-plotly-tester&quot;,(function(t){t.attr(p.svgAttrs).style({position:&quot;absolute&quot;,left:&quot;-10000px&quot;,top:&quot;-10000px&quot;,width:&quot;9000px&quot;,height:&quot;9000px&quot;,&quot;z-index&quot;:&quot;1&quot;})})),e=i.ensureSingle(t,&quot;path&quot;,&quot;js-reference-point&quot;,(function(t){t.attr(&quot;d&quot;,&quot;M0,0H1V1H0Z&quot;).style({&quot;stroke-width&quot;:0,fill:&quot;black&quot;})}));x.tester=t,x.testref=e},x.savedBBoxes={};var O=0;function z(t){var e=t.getAttribute(&quot;data-unformatted&quot;);if(null!==e)return e+t.getAttribute(&quot;data-math&quot;)+t.getAttribute(&quot;text-anchor&quot;)+t.getAttribute(&quot;style&quot;)}function D(t,e){if(!t)return null;var r=e._context,n=r._exportedPlot?&quot;&quot;:r._baseUrl||&quot;&quot;;return n?&quot;url('&quot;+n+&quot;#&quot;+t+&quot;')&quot;:&quot;url(#&quot;+t+&quot;)&quot;}x.bBox=function(t,e,r){var a,o,s;if(r||(r=z(t)),r){if(a=x.savedBBoxes[r])return i.extendFlat({},a)}else if(1===t.childNodes.length){var l=t.childNodes[0];if(r=z(l)){var c=+l.getAttribute(&quot;x&quot;)||0,u=+l.getAttribute(&quot;y&quot;)||0,f=l.getAttribute(&quot;transform&quot;);if(!f){var p=x.bBox(l,!1,r);return c&amp;&amp;(p.left+=c,p.right+=c),u&amp;&amp;(p.top+=u,p.bottom+=u),p}if(r+=&quot;~&quot;+c+&quot;~&quot;+u+&quot;~&quot;+f,a=x.savedBBoxes[r])return i.extendFlat({},a)}}e?o=t:(s=x.tester.node(),o=t.cloneNode(!0),s.appendChild(o)),n.select(o).attr(&quot;transform&quot;,null).call(h.positionText,0,0);var d=o.getBoundingClientRect(),m=x.testref.node().getBoundingClientRect();e||s.removeChild(o);var g={height:d.height,width:d.width,left:d.left-m.left,top:d.top-m.top,right:d.right-m.left,bottom:d.bottom-m.top};return O&gt;=1e4&amp;&amp;(x.savedBBoxes={},O=0),r&amp;&amp;(x.savedBBoxes[r]=g),O++,i.extendFlat({},g)},x.setClipUrl=function(t,e,r){t.attr(&quot;clip-path&quot;,D(e,r))},x.getTranslate=function(t){var e=(t[t.attr?&quot;attr&quot;:&quot;getAttribute&quot;](&quot;transform&quot;)||&quot;&quot;).replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(&quot; &quot;)})).split(&quot; &quot;);return{x:+e[0]||0,y:+e[1]||0}},x.setTranslate=function(t,e,r){var n=t.attr?&quot;attr&quot;:&quot;getAttribute&quot;,i=t.attr?&quot;attr&quot;:&quot;setAttribute&quot;,a=t[n](&quot;transform&quot;)||&quot;&quot;;return e=e||0,r=r||0,a=a.replace(/(\btranslate\(.*?\);?)/,&quot;&quot;).trim(),a=(a+=f(e,r)).trim(),t[i](&quot;transform&quot;,a),a},x.getScale=function(t){var e=(t[t.attr?&quot;attr&quot;:&quot;getAttribute&quot;](&quot;transform&quot;)||&quot;&quot;).replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(&quot; &quot;)})).split(&quot; &quot;);return{x:+e[0]||1,y:+e[1]||1}},x.setScale=function(t,e,r){var n=t.attr?&quot;attr&quot;:&quot;getAttribute&quot;,i=t.attr?&quot;attr&quot;:&quot;setAttribute&quot;,a=t[n](&quot;transform&quot;)||&quot;&quot;;return e=e||1,r=r||1,a=a.replace(/(\bscale\(.*?\);?)/,&quot;&quot;).trim(),a=(a+=&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;).trim(),t[i](&quot;transform&quot;,a),a};var R=/\s*sc.*/;x.setPointGroupScale=function(t,e,r){if(e=e||1,r=r||1,t){var n=1===e&amp;&amp;1===r?&quot;&quot;:&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;;t.each((function(){var t=(this.getAttribute(&quot;transform&quot;)||&quot;&quot;).replace(R,&quot;&quot;);t=(t+=n).trim(),this.setAttribute(&quot;transform&quot;,t)}))}};var F=/translate\([^)]*\)\s*$/;x.setTextPointsScale=function(t,e,r){t&amp;&amp;t.each((function(){var t,i=n.select(this),a=i.select(&quot;text&quot;);if(a.node()){var o=parseFloat(a.attr(&quot;x&quot;)||0),s=parseFloat(a.attr(&quot;y&quot;)||0),l=(i.attr(&quot;transform&quot;)||&quot;&quot;).match(F);t=1===e&amp;&amp;1===r?[]:[f(o,s),&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;,f(-o,-s)],l&amp;&amp;t.push(l),i.attr(&quot;transform&quot;,t.join(&quot;&quot;))}}))}},{&quot;../../components/fx/helpers&quot;:402,&quot;../../constants/alignment&quot;:471,&quot;../../constants/interactions&quot;:478,&quot;../../constants/xmlns_namespaces&quot;:480,&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../registry&quot;:638,&quot;../../traces/scatter/make_bubble_size_func&quot;:943,&quot;../../traces/scatter/subtypes&quot;:951,&quot;../color&quot;:366,&quot;../colorscale&quot;:378,&quot;./symbol_defs&quot;:389,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:190,tinycolor2:312}],389:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;);e.exports={circle:{n:0,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;}},square:{n:1,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;}},diamond:{n:2,f:function(t){var e=n.round(1.3*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;Z&quot;}},cross:{n:3,f:function(t){var e=n.round(.4*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+r+&quot;,&quot;+e+&quot;H&quot;+e+&quot;V&quot;+r+&quot;H-&quot;+e+&quot;V&quot;+e+&quot;H-&quot;+r+&quot;V-&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+r+&quot;H&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+r+&quot;Z&quot;}},x:{n:4,f:function(t){var e=n.round(.8*t/Math.sqrt(2),2),r=&quot;l&quot;+e+&quot;,&quot;+e,i=&quot;l&quot;+e+&quot;,-&quot;+e,a=&quot;l-&quot;+e+&quot;,-&quot;+e,o=&quot;l-&quot;+e+&quot;,&quot;+e;return&quot;M0,&quot;+e+r+i+a+i+a+o+a+o+r+o+r+&quot;Z&quot;}},&quot;triangle-up&quot;:{n:5,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+e+&quot;,&quot;+n.round(t/2,2)+&quot;H&quot;+e+&quot;L0,-&quot;+n.round(t,2)+&quot;Z&quot;}},&quot;triangle-down&quot;:{n:6,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+e+&quot;,-&quot;+n.round(t/2,2)+&quot;H&quot;+e+&quot;L0,&quot;+n.round(t,2)+&quot;Z&quot;}},&quot;triangle-left&quot;:{n:7,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M&quot;+n.round(t/2,2)+&quot;,-&quot;+e+&quot;V&quot;+e+&quot;L-&quot;+n.round(t,2)+&quot;,0Z&quot;}},&quot;triangle-right&quot;:{n:8,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+n.round(t/2,2)+&quot;,-&quot;+e+&quot;V&quot;+e+&quot;L&quot;+n.round(t,2)+&quot;,0Z&quot;}},&quot;triangle-ne&quot;:{n:9,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M-&quot;+r+&quot;,-&quot;+e+&quot;H&quot;+e+&quot;V&quot;+r+&quot;Z&quot;}},&quot;triangle-se&quot;:{n:10,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+e+&quot;H-&quot;+r+&quot;Z&quot;}},&quot;triangle-sw&quot;:{n:11,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+r+&quot;Z&quot;}},&quot;triangle-nw&quot;:{n:12,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M-&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+e+&quot;H&quot;+r+&quot;Z&quot;}},pentagon:{n:13,f:function(t){var e=n.round(.951*t,2),r=n.round(.588*t,2),i=n.round(-t,2),a=n.round(-.309*t,2);return&quot;M&quot;+e+&quot;,&quot;+a+&quot;L&quot;+r+&quot;,&quot;+n.round(.809*t,2)+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,&quot;+a+&quot;L0,&quot;+i+&quot;Z&quot;}},hexagon:{n:14,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return&quot;M&quot;+i+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;L0,&quot;+e+&quot;L-&quot;+i+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;L0,-&quot;+e+&quot;Z&quot;}},hexagon2:{n:15,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return&quot;M-&quot;+r+&quot;,&quot;+i+&quot;H&quot;+r+&quot;L&quot;+e+&quot;,0L&quot;+r+&quot;,-&quot;+i+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},octagon:{n:16,f:function(t){var e=n.round(.924*t,2),r=n.round(.383*t,2);return&quot;M-&quot;+r+&quot;,-&quot;+e+&quot;H&quot;+r+&quot;L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;L&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;Z&quot;}},star:{n:17,f:function(t){var e=1.4*t,r=n.round(.225*e,2),i=n.round(.951*e,2),a=n.round(.363*e,2),o=n.round(.588*e,2),s=n.round(-e,2),l=n.round(-.309*e,2),c=n.round(.118*e,2),u=n.round(.809*e,2);return&quot;M&quot;+r+&quot;,&quot;+l+&quot;H&quot;+i+&quot;L&quot;+a+&quot;,&quot;+c+&quot;L&quot;+o+&quot;,&quot;+u+&quot;L0,&quot;+n.round(.382*e,2)+&quot;L-&quot;+o+&quot;,&quot;+u+&quot;L-&quot;+a+&quot;,&quot;+c+&quot;L-&quot;+i+&quot;,&quot;+l+&quot;H-&quot;+r+&quot;L0,&quot;+s+&quot;Z&quot;}},hexagram:{n:18,f:function(t){var e=n.round(.66*t,2),r=n.round(.38*t,2),i=n.round(.76*t,2);return&quot;M-&quot;+i+&quot;,0l-&quot;+r+&quot;,-&quot;+e+&quot;h&quot;+i+&quot;l&quot;+r+&quot;,-&quot;+e+&quot;l&quot;+r+&quot;,&quot;+e+&quot;h&quot;+i+&quot;l-&quot;+r+&quot;,&quot;+e+&quot;l&quot;+r+&quot;,&quot;+e+&quot;h-&quot;+i+&quot;l-&quot;+r+&quot;,&quot;+e+&quot;l-&quot;+r+&quot;,-&quot;+e+&quot;h-&quot;+i+&quot;Z&quot;}},&quot;star-triangle-up&quot;:{n:19,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=&quot;A &quot;+a+&quot;,&quot;+a+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,&quot;+r+o+e+&quot;,&quot;+r+o+&quot;0,-&quot;+i+o+&quot;-&quot;+e+&quot;,&quot;+r+&quot;Z&quot;}},&quot;star-triangle-down&quot;:{n:20,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=&quot;A &quot;+a+&quot;,&quot;+a+&quot; 0 0 1 &quot;;return&quot;M&quot;+e+&quot;,-&quot;+r+o+&quot;-&quot;+e+&quot;,-&quot;+r+o+&quot;0,&quot;+i+o+e+&quot;,-&quot;+r+&quot;Z&quot;}},&quot;star-square&quot;:{n:21,f:function(t){var e=n.round(1.1*t,2),r=n.round(2*t,2),i=&quot;A &quot;+r+&quot;,&quot;+r+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,-&quot;+e+i+&quot;-&quot;+e+&quot;,&quot;+e+i+e+&quot;,&quot;+e+i+e+&quot;,-&quot;+e+i+&quot;-&quot;+e+&quot;,-&quot;+e+&quot;Z&quot;}},&quot;star-diamond&quot;:{n:22,f:function(t){var e=n.round(1.4*t,2),r=n.round(1.9*t,2),i=&quot;A &quot;+r+&quot;,&quot;+r+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,0&quot;+i+&quot;0,&quot;+e+i+e+&quot;,0&quot;+i+&quot;0,-&quot;+e+i+&quot;-&quot;+e+&quot;,0Z&quot;}},&quot;diamond-tall&quot;:{n:23,f:function(t){var e=n.round(.7*t,2),r=n.round(1.4*t,2);return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,0L0,-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},&quot;diamond-wide&quot;:{n:24,f:function(t){var e=n.round(1.4*t,2),r=n.round(.7*t,2);return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,0L0,-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},hourglass:{n:25,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;L&quot;+e+&quot;,-&quot;+e+&quot;H-&quot;+e+&quot;Z&quot;},noDot:!0},bowtie:{n:26,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;V-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e+&quot;V-&quot;+e+&quot;Z&quot;},noDot:!0},&quot;circle-cross&quot;:{n:27,f:function(t){var e=n.round(t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;},needLine:!0,noDot:!0},&quot;circle-x&quot;:{n:28,f:function(t){var e=n.round(t,2),r=n.round(t/Math.sqrt(2),2);return&quot;M&quot;+r+&quot;,&quot;+r+&quot;L-&quot;+r+&quot;,-&quot;+r+&quot;M&quot;+r+&quot;,-&quot;+r+&quot;L-&quot;+r+&quot;,&quot;+r+&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;},needLine:!0,noDot:!0},&quot;square-cross&quot;:{n:29,f:function(t){var e=n.round(t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;square-x&quot;:{n:30,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e+&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e+&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;diamond-cross&quot;:{n:31,f:function(t){var e=n.round(1.3*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;ZM0,-&quot;+e+&quot;V&quot;+e+&quot;M-&quot;+e+&quot;,0H&quot;+e},needLine:!0,noDot:!0},&quot;diamond-x&quot;:{n:32,f:function(t){var e=n.round(1.3*t,2),r=n.round(.65*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;ZM-&quot;+r+&quot;,-&quot;+r+&quot;L&quot;+r+&quot;,&quot;+r+&quot;M-&quot;+r+&quot;,&quot;+r+&quot;L&quot;+r+&quot;,-&quot;+r},needLine:!0,noDot:!0},&quot;cross-thin&quot;:{n:33,f:function(t){var e=n.round(1.4*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;x-thin&quot;:{n:34,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e+&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(t){var e=n.round(1.2*t,2),r=n.round(.85*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+r+&quot;,&quot;+r+&quot;L-&quot;+r+&quot;,-&quot;+r+&quot;M&quot;+r+&quot;,-&quot;+r+&quot;L-&quot;+r+&quot;,&quot;+r},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(t){var e=n.round(t/2,2),r=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;m-&quot;+r+&quot;,0V&quot;+r+&quot;M&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+r+&quot;m0,-&quot;+r+&quot;H&quot;+r},needLine:!0,noFill:!0},&quot;y-up&quot;:{n:37,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+e+&quot;,&quot;+i+&quot;L0,0M&quot;+e+&quot;,&quot;+i+&quot;L0,0M0,-&quot;+r+&quot;L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-down&quot;:{n:38,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+e+&quot;,-&quot;+i+&quot;L0,0M&quot;+e+&quot;,-&quot;+i+&quot;L0,0M0,&quot;+r+&quot;L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-left&quot;:{n:39,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M&quot;+i+&quot;,&quot;+e+&quot;L0,0M&quot;+i+&quot;,-&quot;+e+&quot;L0,0M-&quot;+r+&quot;,0L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-right&quot;:{n:40,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+i+&quot;,&quot;+e+&quot;L0,0M-&quot;+i+&quot;,-&quot;+e+&quot;L0,0M&quot;+r+&quot;,0L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;line-ew&quot;:{n:41,f:function(t){var e=n.round(1.4*t,2);return&quot;M&quot;+e+&quot;,0H-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-ns&quot;:{n:42,f:function(t){var e=n.round(1.4*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-ne&quot;:{n:43,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-nw&quot;:{n:44,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;arrow-up&quot;:{n:45,f:function(t){var e=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},noDot:!0},&quot;arrow-down&quot;:{n:46,f:function(t){var e=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,-&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},noDot:!0},&quot;arrow-left&quot;:{n:47,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,0L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},noDot:!0},&quot;arrow-right&quot;:{n:48,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},noDot:!0},&quot;arrow-bar-up&quot;:{n:49,f:function(t){var e=n.round(t,2);return&quot;M-&quot;+e+&quot;,0H&quot;+e+&quot;M0,0L-&quot;+e+&quot;,&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-down&quot;:{n:50,f:function(t){var e=n.round(t,2);return&quot;M-&quot;+e+&quot;,0H&quot;+e+&quot;M0,0L-&quot;+e+&quot;,-&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-left&quot;:{n:51,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,-&quot;+r+&quot;V&quot;+r+&quot;M0,0L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-right&quot;:{n:52,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,-&quot;+r+&quot;V&quot;+r+&quot;M0,0L-&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},needLine:!0,noDot:!0}}},{&quot;@plotly/d3&quot;:58}],390:[function(t,e,r){&quot;use strict&quot;;e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;percent&quot;,&quot;constant&quot;,&quot;sqrt&quot;,&quot;data&quot;],editType:&quot;calc&quot;},symmetric:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},array:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},arrayminus:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},value:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;calc&quot;},valueminus:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;calc&quot;},traceref:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;style&quot;},tracerefminus:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;style&quot;},copy_ystyle:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},copy_zstyle:{valType:&quot;boolean&quot;,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},thickness:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;,_deprecated:{opacity:{valType:&quot;number&quot;,editType:&quot;style&quot;}}}},{}],391:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;./compute_error&quot;);function l(t,e,r,i){var l=e[&quot;error_&quot;+i]||{},c=[];if(l.visible&amp;&amp;-1!==[&quot;linear&quot;,&quot;log&quot;].indexOf(r.type)){for(var u=s(l),f=0;f&lt;t.length;f++){var h=t[f],p=h.i;if(void 0===p)p=f;else if(null===p)continue;var d=h[i];if(n(r.c2l(d))){var m=u(d,p);if(n(m[0])&amp;&amp;n(m[1])){var g=h[i+&quot;s&quot;]=d-m[0],v=h[i+&quot;h&quot;]=d+m[1];c.push(g,v)}}}var y=r._id,x=e._extremes[y],b=a.findExtremes(r,c,o.extendFlat({tozero:x.opts.tozero},{padded:!0}));x.min=x.min.concat(b.min),x.max=x.max.concat(b.max)}}e.exports=function(t){for(var e=t.calcdata,r=0;r&lt;e.length;r++){var n=e[r],o=n[0].trace;if(!0===o.visible&amp;&amp;i.traceIs(o,&quot;errorBarsOK&quot;)){var s=a.getFromId(t,o.xaxis),c=a.getFromId(t,o.yaxis);l(n,o,s,&quot;x&quot;),l(n,o,c,&quot;y&quot;)}}}},{&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../registry&quot;:638,&quot;./compute_error&quot;:392,&quot;fast-isnumeric&quot;:190}],392:[function(t,e,r){&quot;use strict&quot;;function n(t,e){return&quot;percent&quot;===t?function(t){return Math.abs(t*e/100)}:&quot;constant&quot;===t?function(){return Math.abs(e)}:&quot;sqrt&quot;===t?function(t){return Math.sqrt(Math.abs(t))}:void 0}e.exports=function(t){var e=t.type,r=t.symmetric;if(&quot;data&quot;===e){var i=t.array||[];if(r)return function(t,e){var r=+i[e];return[r,r]};var a=t.arrayminus||[];return function(t,e){var r=+i[e],n=+a[e];return isNaN(r)&amp;&amp;isNaN(n)?[NaN,NaN]:[n||0,r||0]}}var o=n(e,t.value),s=n(e,t.valueminus);return r||void 0===t.valueminus?function(t){var e=o(t);return[e,e]}:function(t){return[s(t),o(t)]}}},{}],393:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../plot_api/plot_template&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){var c=&quot;error_&quot;+l.axis,u=o.newContainer(e,c),f=t[c]||{};function h(t,e){return a.coerce(f,u,s,t,e)}if(!1!==h(&quot;visible&quot;,void 0!==f.array||void 0!==f.value||&quot;sqrt&quot;===f.type)){var p=h(&quot;type&quot;,&quot;array&quot;in f?&quot;data&quot;:&quot;percent&quot;),d=!0;&quot;sqrt&quot;!==p&amp;&amp;(d=h(&quot;symmetric&quot;,!((&quot;data&quot;===p?&quot;arrayminus&quot;:&quot;valueminus&quot;)in f))),&quot;data&quot;===p?(h(&quot;array&quot;),h(&quot;traceref&quot;),d||(h(&quot;arrayminus&quot;),h(&quot;tracerefminus&quot;))):&quot;percent&quot;!==p&amp;&amp;&quot;constant&quot;!==p||(h(&quot;value&quot;),d||h(&quot;valueminus&quot;));var m=&quot;copy_&quot;+l.inherit+&quot;style&quot;;if(l.inherit)(e[&quot;error_&quot;+l.inherit]||{}).visible&amp;&amp;h(m,!(f.color||n(f.thickness)||n(f.width)));l.inherit&amp;&amp;u[m]||(h(&quot;color&quot;,r),h(&quot;thickness&quot;),h(&quot;width&quot;,i.traceIs(e,&quot;gl3d&quot;)?0:4))}}},{&quot;../../lib&quot;:503,&quot;../../plot_api/plot_template&quot;:543,&quot;../../registry&quot;:638,&quot;./attributes&quot;:390,&quot;fast-isnumeric&quot;:190}],394:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/edit_types&quot;).overrideAll,a=t(&quot;./attributes&quot;),o={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var s={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a),error_z:n.extendFlat({},a)};delete s.error_x.copy_ystyle,delete s.error_y.copy_ystyle,delete s.error_z.copy_ystyle,delete s.error_z.copy_zstyle,e.exports={moduleType:&quot;component&quot;,name:&quot;errorbars&quot;,schema:{traces:{scatter:o,bar:o,histogram:o,scatter3d:i(s,&quot;calc&quot;,&quot;nested&quot;),scattergl:i(o,&quot;calc&quot;,&quot;nested&quot;)}},supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),makeComputeError:t(&quot;./compute_error&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverInfo:function(t,e,r){(e.error_y||{}).visible&amp;&amp;(r.yerr=t.yh-t.y,e.error_y.symmetric||(r.yerrneg=t.y-t.ys));(e.error_x||{}).visible&amp;&amp;(r.xerr=t.xh-t.x,e.error_x.symmetric||(r.xerrneg=t.x-t.xs))}}},{&quot;../../lib&quot;:503,&quot;../../plot_api/edit_types&quot;:536,&quot;./attributes&quot;:390,&quot;./calc&quot;:391,&quot;./compute_error&quot;:392,&quot;./defaults&quot;:393,&quot;./plot&quot;:395,&quot;./style&quot;:396}],395:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../drawing&quot;),o=t(&quot;../../traces/scatter/subtypes&quot;);e.exports=function(t,e,r,s){var l=r.xaxis,c=r.yaxis,u=s&amp;&amp;s.duration&gt;0;e.each((function(e){var f,h=e[0].trace,p=h.error_x||{},d=h.error_y||{};h.ids&amp;&amp;(f=function(t){return t.id});var m=o.hasMarkers(h)&amp;&amp;h.marker.maxdisplayed&gt;0;d.visible||p.visible||(e=[]);var g=n.select(this).selectAll(&quot;g.errorbar&quot;).data(e,f);if(g.exit().remove(),e.length){p.visible||g.selectAll(&quot;path.xerror&quot;).remove(),d.visible||g.selectAll(&quot;path.yerror&quot;).remove(),g.style(&quot;opacity&quot;,1);var v=g.enter().append(&quot;g&quot;).classed(&quot;errorbar&quot;,!0);u&amp;&amp;v.style(&quot;opacity&quot;,0).transition().duration(s.duration).style(&quot;opacity&quot;,1),a.setClipUrl(g,r.layerClipId,t),g.each((function(t){var e=n.select(this),r=function(t,e,r){var n={x:e.c2p(t.x),y:r.c2p(t.y)};void 0!==t.yh&amp;&amp;(n.yh=r.c2p(t.yh),n.ys=r.c2p(t.ys),i(n.ys)||(n.noYS=!0,n.ys=r.c2p(t.ys,!0)));void 0!==t.xh&amp;&amp;(n.xh=e.c2p(t.xh),n.xs=e.c2p(t.xs),i(n.xs)||(n.noXS=!0,n.xs=e.c2p(t.xs,!0)));return n}(t,l,c);if(!m||t.vis){var a,o=e.select(&quot;path.yerror&quot;);if(d.visible&amp;&amp;i(r.x)&amp;&amp;i(r.yh)&amp;&amp;i(r.ys)){var f=d.width;a=&quot;M&quot;+(r.x-f)+&quot;,&quot;+r.yh+&quot;h&quot;+2*f+&quot;m-&quot;+f+&quot;,0V&quot;+r.ys,r.noYS||(a+=&quot;m-&quot;+f+&quot;,0h&quot;+2*f),!o.size()?o=e.append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).classed(&quot;yerror&quot;,!0):u&amp;&amp;(o=o.transition().duration(s.duration).ease(s.easing)),o.attr(&quot;d&quot;,a)}else o.remove();var h=e.select(&quot;path.xerror&quot;);if(p.visible&amp;&amp;i(r.y)&amp;&amp;i(r.xh)&amp;&amp;i(r.xs)){var g=(p.copy_ystyle?d:p).width;a=&quot;M&quot;+r.xh+&quot;,&quot;+(r.y-g)+&quot;v&quot;+2*g+&quot;m0,-&quot;+g+&quot;H&quot;+r.xs,r.noXS||(a+=&quot;m0,-&quot;+g+&quot;v&quot;+2*g),!h.size()?h=e.append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).classed(&quot;xerror&quot;,!0):u&amp;&amp;(h=h.transition().duration(s.duration).ease(s.easing)),h.attr(&quot;d&quot;,a)}else h.remove()}}))}}))}},{&quot;../../traces/scatter/subtypes&quot;:951,&quot;../drawing&quot;:388,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:190}],396:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../color&quot;);e.exports=function(t){t.each((function(t){var e=t[0].trace,r=e.error_y||{},a=e.error_x||{},o=n.select(this);o.selectAll(&quot;path.yerror&quot;).style(&quot;stroke-width&quot;,r.thickness+&quot;px&quot;).call(i.stroke,r.color),a.copy_ystyle&amp;&amp;(a=r),o.selectAll(&quot;path.xerror&quot;).style(&quot;stroke-width&quot;,a.thickness+&quot;px&quot;).call(i.stroke,a.color)}))}},{&quot;../color&quot;:366,&quot;@plotly/d3&quot;:58}],397:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;./layout_attributes&quot;).hoverlabel,a=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={hoverlabel:{bgcolor:a({},i.bgcolor,{arrayOk:!0}),bordercolor:a({},i.bordercolor,{arrayOk:!0}),font:n({arrayOk:!0,editType:&quot;none&quot;}),align:a({},i.align,{arrayOk:!0}),namelength:a({},i.namelength,{arrayOk:!0}),editType:&quot;none&quot;}}},{&quot;../../lib/extend&quot;:493,&quot;../../plots/font_attributes&quot;:585,&quot;./layout_attributes&quot;:407}],398:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;);function a(t,e,r,i){i=i||n.identity,Array.isArray(t)&amp;&amp;(e[0][r]=i(t))}e.exports=function(t){var e=t.calcdata,r=t._fullLayout;function o(t){return function(e){return n.coerceHoverinfo({hoverinfo:e},{_module:t._module},r)}}for(var s=0;s&lt;e.length;s++){var l=e[s],c=l[0].trace;if(!i.traceIs(c,&quot;pie-like&quot;)){var u=i.traceIs(c,&quot;2dMap&quot;)?a:n.fillArray;u(c.hoverinfo,l,&quot;hi&quot;,o(c)),c.hovertemplate&amp;&amp;u(c.hovertemplate,l,&quot;ht&quot;),c.hoverlabel&amp;&amp;(u(c.hoverlabel.bgcolor,l,&quot;hbg&quot;),u(c.hoverlabel.bordercolor,l,&quot;hbc&quot;),u(c.hoverlabel.font.size,l,&quot;hts&quot;),u(c.hoverlabel.font.color,l,&quot;htc&quot;),u(c.hoverlabel.font.family,l,&quot;htf&quot;),u(c.hoverlabel.namelength,l,&quot;hnl&quot;),u(c.hoverlabel.align,l,&quot;hta&quot;))}}}},{&quot;../../lib&quot;:503,&quot;../../registry&quot;:638}],399:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./hover&quot;).hover;e.exports=function(t,e,r){var a=n.getComponentMethod(&quot;annotations&quot;,&quot;onClick&quot;)(t,t._hoverdata);function o(){t.emit(&quot;plotly_click&quot;,{points:t._hoverdata,event:e})}void 0!==r&amp;&amp;i(t,e,r,!0),t._hoverdata&amp;&amp;e&amp;&amp;e.target&amp;&amp;(a&amp;&amp;a.then?a.then(o):o(),e.stopImmediatePropagation&amp;&amp;e.stopImmediatePropagation())}},{&quot;../../registry&quot;:638,&quot;./hover&quot;:403}],400:[function(t,e,r){&quot;use strict&quot;;e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:&quot;Arial, sans-serif&quot;,HOVERMINTIME:50,HOVERID:&quot;-hover&quot;}},{}],401:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./hoverlabel_defaults&quot;);e.exports=function(t,e,r,o){var s=n.extendFlat({},o.hoverlabel);e.hovertemplate&amp;&amp;(s.namelength=-1),a(t,e,(function(r,a){return n.coerce(t,e,i,r,a)}),s)}},{&quot;../../lib&quot;:503,&quot;./attributes&quot;:397,&quot;./hoverlabel_defaults&quot;:404}],402:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);r.getSubplot=function(t){return t.subplot||t.xaxis+t.yaxis||t.geo},r.isTraceInSubplots=function(t,e){if(&quot;splom&quot;===t.type){for(var n=t.xaxes||[],i=t.yaxes||[],a=0;a&lt;n.length;a++)for(var o=0;o&lt;i.length;o++)if(-1!==e.indexOf(n[a]+i[o]))return!0;return!1}return-1!==e.indexOf(r.getSubplot(t))},r.flat=function(t,e){for(var r=new Array(t.length),n=0;n&lt;t.length;n++)r[n]=e;return r},r.p2c=function(t,e){for(var r=new Array(t.length),n=0;n&lt;t.length;n++)r[n]=t[n].p2c(e);return r},r.getDistanceFunction=function(t,e,n,i){return&quot;closest&quot;===t?i||r.quadrature(e,n):&quot;x&quot;===t.charAt(0)?e:n},r.getClosest=function(t,e,r){if(!1!==r.index)r.index&gt;=0&amp;&amp;r.index&lt;t.length?r.distance=0:r.index=!1;else for(var n=0;n&lt;t.length;n++){var i=e(t[n]);i&lt;=r.distance&amp;&amp;(r.index=n,r.distance=i)}return r},r.inbox=function(t,e,r){return t*e&lt;0||0===t?r:1/0},r.quadrature=function(t,e){return function(r){var n=t(r),i=e(r);return Math.sqrt(n*n+i*i)}},r.makeEventData=function(t,e,n){var i=&quot;index&quot;in t?t.index:t.pointNumber,a={data:e._input,fullData:e,curveNumber:e.index,pointNumber:i};if(e._indexToPoints){var o=e._indexToPoints[i];1===o.length?a.pointIndex=o[0]:a.pointIndices=o}else a.pointIndex=i;return e._module.eventData?a=e._module.eventData(a,t,e,n,i):(&quot;xVal&quot;in t?a.x=t.xVal:&quot;x&quot;in t&amp;&amp;(a.x=t.x),&quot;yVal&quot;in t?a.y=t.yVal:&quot;y&quot;in t&amp;&amp;(a.y=t.y),t.xa&amp;&amp;(a.xaxis=t.xa),t.ya&amp;&amp;(a.yaxis=t.ya),void 0!==t.zLabelVal&amp;&amp;(a.z=t.zLabelVal)),r.appendArrayPointValue(a,e,i),a},r.appendArrayPointValue=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s&lt;i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){var u=o(n.nestedProperty(e,l).get(),r);void 0!==u&amp;&amp;(t[c]=u)}}},r.appendArrayMultiPointValues=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s&lt;i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){for(var u=n.nestedProperty(e,l).get(),f=new Array(r.length),h=0;h&lt;r.length;h++)f[h]=o(u,r[h]);t[c]=f}}};var i={ids:&quot;id&quot;,locations:&quot;location&quot;,labels:&quot;label&quot;,values:&quot;value&quot;,&quot;marker.colors&quot;:&quot;color&quot;,parents:&quot;parent&quot;};function a(t){return i[t]||t}function o(t,e){return Array.isArray(e)?Array.isArray(t)&amp;&amp;Array.isArray(t[e[0]])?t[e[0]][e[1]]:void 0:t[e]}var s={x:!0,y:!0},l={&quot;x unified&quot;:!0,&quot;y unified&quot;:!0};r.isUnifiedHover=function(t){return&quot;string&quot;==typeof t&amp;&amp;!!l[t]},r.isXYhover=function(t){return&quot;string&quot;==typeof t&amp;&amp;!!s[t]}},{&quot;../../lib&quot;:503}],403:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=o.strRotate,c=t(&quot;../../lib/events&quot;),u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../lib/override_cursor&quot;),h=t(&quot;../drawing&quot;),p=t(&quot;../color&quot;),d=t(&quot;../dragelement&quot;),m=t(&quot;../../plots/cartesian/axes&quot;),g=t(&quot;../../registry&quot;),v=t(&quot;./helpers&quot;),y=t(&quot;./constants&quot;),x=t(&quot;../legend/defaults&quot;),b=t(&quot;../legend/draw&quot;),_=y.YANGLE,w=Math.PI*_/180,T=1/Math.sin(w),k=Math.cos(w),A=Math.sin(w),M=y.HOVERARROWSIZE,S=y.HOVERTEXTPAD,E={box:!0,ohlc:!0,violin:!0,candlestick:!0},L={scatter:!0,scattergl:!0,splom:!0};function C(t){return[t.trace.index,t.index,t.x0,t.y0,t.name,t.attr,t.xa?t.xa._id:&quot;&quot;,t.ya?t.ya._id:&quot;&quot;].join(&quot;,&quot;)}r.hover=function(t,e,r,a){t=o.getGraphDiv(t);var s=e.target;o.throttle(t._fullLayout._uid+y.HOVERID,y.HOVERMINTIME,(function(){!function(t,e,r,a,s){r||(r=&quot;xy&quot;);var l=Array.isArray(r)?r:[r],u=t._fullLayout,h=u._plots||[],m=h[r],y=u._has(&quot;cartesian&quot;);if(m){var x=m.overlays.map((function(t){return t.id}));l=l.concat(x)}for(var b=l.length,_=new Array(b),w=new Array(b),k=!1,A=0;A&lt;b;A++){var M=l[A];if(h[M])k=!0,_[A]=h[M].xaxis,w[A]=h[M].yaxis;else{if(!u[M]||!u[M]._subplot)return void o.warn(&quot;Unrecognized subplot: &quot;+M);var S=u[M]._subplot;_[A]=S.xaxis,w[A]=S.yaxis}}var P=e.hovermode||u.hovermode;P&amp;&amp;!k&amp;&amp;(P=&quot;closest&quot;);if(-1===[&quot;x&quot;,&quot;y&quot;,&quot;closest&quot;,&quot;x unified&quot;,&quot;y unified&quot;].indexOf(P)||!t.calcdata||t.querySelector(&quot;.zoombox&quot;)||t._dragging)return d.unhoverRaw(t,e);var O=u.hoverdistance;-1===O&amp;&amp;(O=1/0);var B=u.spikedistance;-1===B&amp;&amp;(B=1/0);var V,H,q,G,Y,W,X,Z,J,K,Q,$,tt,et=[],rt=[],nt={hLinePoint:null,vLinePoint:null},it=!1;if(Array.isArray(e))for(P=&quot;array&quot;,q=0;q&lt;e.length;q++)(Y=t.calcdata[e[q].curveNumber||0])&amp;&amp;(W=Y[0].trace,&quot;skip&quot;!==Y[0].trace.hoverinfo&amp;&amp;(rt.push(Y),&quot;h&quot;===W.orientation&amp;&amp;(it=!0)));else{for(G=0;G&lt;t.calcdata.length;G++)Y=t.calcdata[G],&quot;skip&quot;!==(W=Y[0].trace).hoverinfo&amp;&amp;v.isTraceInSubplots(W,l)&amp;&amp;(rt.push(Y),&quot;h&quot;===W.orientation&amp;&amp;(it=!0));var at,ot;if(!s)at=&quot;xpx&quot;in e?e.xpx:_[0]._length/2,ot=&quot;ypx&quot;in e?e.ypx:w[0]._length/2;else{if(!1===c.triggerHandler(t,&quot;plotly_beforehover&quot;,e))return;var st=s.getBoundingClientRect();at=e.clientX-st.left,ot=e.clientY-st.top,u._calcInverseTransform(t);var lt=o.apply3DTransform(u._invTransform)(at,ot);if(at=lt[0],ot=lt[1],at&lt;0||at&gt;_[0]._length||ot&lt;0||ot&gt;w[0]._length)return d.unhoverRaw(t,e)}if(e.pointerX=at+_[0]._offset,e.pointerY=ot+w[0]._offset,V=&quot;xval&quot;in e?v.flat(l,e.xval):v.p2c(_,at),H=&quot;yval&quot;in e?v.flat(l,e.yval):v.p2c(w,ot),!i(V[0])||!i(H[0]))return o.warn(&quot;Fx.hover failed&quot;,e,t),d.unhoverRaw(t,e)}var ct=1/0;function ut(t,r){for(G=0;G&lt;rt.length;G++)if((Y=rt[G])&amp;&amp;Y[0]&amp;&amp;Y[0].trace&amp;&amp;!0===(W=Y[0].trace).visible&amp;&amp;0!==W._length&amp;&amp;-1===[&quot;carpet&quot;,&quot;contourcarpet&quot;].indexOf(W._module.name)){if(&quot;splom&quot;===W.type?X=l[Z=0]:(X=v.getSubplot(W),Z=l.indexOf(X)),J=P,v.isUnifiedHover(J)&amp;&amp;(J=J.charAt(0)),$={cd:Y,trace:W,xa:_[Z],ya:w[Z],maxHoverDistance:O,maxSpikeDistance:B,index:!1,distance:Math.min(ct,O),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:p.defaultLine,name:W.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},u[X]&amp;&amp;($.subplot=u[X]._subplot),u._splomScenes&amp;&amp;u._splomScenes[W.uid]&amp;&amp;($.scene=u._splomScenes[W.uid]),tt=et.length,&quot;array&quot;===J){var n=e[G];&quot;pointNumber&quot;in n?($.index=n.pointNumber,J=&quot;closest&quot;):(J=&quot;&quot;,&quot;xval&quot;in n&amp;&amp;(K=n.xval,J=&quot;x&quot;),&quot;yval&quot;in n&amp;&amp;(Q=n.yval,J=J?&quot;closest&quot;:&quot;y&quot;))}else void 0!==t&amp;&amp;void 0!==r?(K=t,Q=r):(K=V[Z],Q=H[Z]);if(0!==O)if(W._module&amp;&amp;W._module.hoverPoints){var a=W._module.hoverPoints($,K,Q,J,{finiteRange:!0,hoverLayer:u._hoverlayer});if(a)for(var s,c=0;c&lt;a.length;c++)s=a[c],i(s.x0)&amp;&amp;i(s.y0)&amp;&amp;et.push(D(s,P))}else o.log(&quot;Unrecognized trace type in hover:&quot;,W);if(&quot;closest&quot;===P&amp;&amp;et.length&gt;tt&amp;&amp;(et.splice(0,tt),ct=et[0].distance),y&amp;&amp;0!==B&amp;&amp;0===et.length){$.distance=B,$.index=!1;var f=W._module.hoverPoints($,K,Q,&quot;closest&quot;,{hoverLayer:u._hoverlayer});if(f&amp;&amp;(f=f.filter((function(t){return t.spikeDistance&lt;=B}))),f&amp;&amp;f.length){var h,d=f.filter((function(t){return t.xa.showspikes&amp;&amp;&quot;hovered data&quot;!==t.xa.spikesnap}));if(d.length){var m=d[0];i(m.x0)&amp;&amp;i(m.y0)&amp;&amp;(h=ht(m),(!nt.vLinePoint||nt.vLinePoint.spikeDistance&gt;h.spikeDistance)&amp;&amp;(nt.vLinePoint=h))}var g=f.filter((function(t){return t.ya.showspikes&amp;&amp;&quot;hovered data&quot;!==t.ya.spikesnap}));if(g.length){var x=g[0];i(x.x0)&amp;&amp;i(x.y0)&amp;&amp;(h=ht(x),(!nt.hLinePoint||nt.hLinePoint.spikeDistance&gt;h.spikeDistance)&amp;&amp;(nt.hLinePoint=h))}}}}}function ft(t,e,r){for(var n,i=null,a=1/0,o=0;o&lt;t.length;o++)n=t[o].spikeDistance,r&amp;&amp;0===o&amp;&amp;(n=-1/0),n&lt;=a&amp;&amp;n&lt;=e&amp;&amp;(i=t[o],a=n);return i}function ht(t){return t?{xa:t.xa,ya:t.ya,x:void 0!==t.xSpike?t.xSpike:(t.x0+t.x1)/2,y:void 0!==t.ySpike?t.ySpike:(t.y0+t.y1)/2,distance:t.distance,spikeDistance:t.spikeDistance,curveNumber:t.trace.index,color:t.color,pointNumber:t.index}:null}ut();var pt={fullLayout:u,container:u._hoverlayer,event:e},dt=t._spikepoints,mt={vLinePoint:nt.vLinePoint,hLinePoint:nt.hLinePoint};t._spikepoints=mt;var gt=function(){et.sort((function(t,e){return t.distance-e.distance})),et=function(t,e){for(var r=e.charAt(0),n=[],i=[],a=[],o=0;o&lt;t.length;o++){var s=t[o];g.traceIs(s.trace,&quot;bar-like&quot;)||g.traceIs(s.trace,&quot;box-violin&quot;)?a.push(s):s.trace[r+&quot;period&quot;]?i.push(s):n.push(s)}return n.concat(i).concat(a)}(et,P)};gt();var vt=P.charAt(0),yt=(&quot;x&quot;===vt||&quot;y&quot;===vt)&amp;&amp;et[0]&amp;&amp;L[et[0].trace.type];if(y&amp;&amp;0!==B&amp;&amp;0!==et.length){var xt=ft(et.filter((function(t){return t.ya.showspikes})),B,yt);nt.hLinePoint=ht(xt);var bt=ft(et.filter((function(t){return t.xa.showspikes})),B,yt);nt.vLinePoint=ht(bt)}if(0===et.length){var _t=d.unhoverRaw(t,e);return!y||null===nt.hLinePoint&amp;&amp;null===nt.vLinePoint||F(dt)&amp;&amp;R(t,nt,pt),_t}y&amp;&amp;F(dt)&amp;&amp;R(t,nt,pt);if(v.isXYhover(J)&amp;&amp;0!==et[0].length&amp;&amp;&quot;splom&quot;!==et[0].trace.type){var wt=et[0],Tt=(et=E[wt.trace.type]?et.filter((function(t){return t.trace.index===wt.trace.index})):[wt]).length,kt=N(&quot;x&quot;,wt,u),At=N(&quot;y&quot;,wt,u);ut(kt,At);var Mt,St=[],Et={},Lt=0,Ct=function(t){var e=E[t.trace.type]?C(t):t.trace.index;if(Et[e]){var r=Et[e]-1,n=St[r];r&gt;0&amp;&amp;Math.abs(t.distance)&lt;Math.abs(n.distance)&amp;&amp;(St[r]=t)}else Lt++,Et[e]=Lt,St.push(t)};for(Mt=0;Mt&lt;Tt;Mt++)Ct(et[Mt]);for(Mt=et.length-1;Mt&gt;Tt-1;Mt--)Ct(et[Mt]);et=St,gt()}var Pt=t._hoverdata,It=[],Ot=j(t),zt=U(t);for(q=0;q&lt;et.length;q++){var Dt=et[q],Rt=v.makeEventData(Dt,Dt.trace,Dt.cd);if(!1!==Dt.hovertemplate){var Ft=!1;Dt.cd[Dt.index]&amp;&amp;Dt.cd[Dt.index].ht&amp;&amp;(Ft=Dt.cd[Dt.index].ht),Dt.hovertemplate=Ft||Dt.trace.hovertemplate||!1}if(Dt.xa&amp;&amp;Dt.ya){var Bt=Dt.x0+Dt.xa._offset,Nt=Dt.x1+Dt.xa._offset,jt=Dt.y0+Dt.ya._offset,Ut=Dt.y1+Dt.ya._offset,Vt=Math.min(Bt,Nt),Ht=Math.max(Bt,Nt),qt=Math.min(jt,Ut),Gt=Math.max(jt,Ut);Rt.bbox={x0:Vt+zt,x1:Ht+zt,y0:qt+Ot,y1:Gt+Ot}}Dt.eventData=[Rt],It.push(Rt)}t._hoverdata=It;var Yt=&quot;y&quot;===P&amp;&amp;(rt.length&gt;1||et.length&gt;1)||&quot;closest&quot;===P&amp;&amp;it&amp;&amp;et.length&gt;1,Wt=p.combine(u.plot_bgcolor||p.background,u.paper_bgcolor),Xt=I(et,{gd:t,hovermode:P,rotateLabels:Yt,bgColor:Wt,container:u._hoverlayer,outerContainer:u._paper.node(),commonLabelOpts:u.hoverlabel,hoverdistance:u.hoverdistance});v.isUnifiedHover(P)||(!function(t,e,r){var n,i,a,o,s,l,c,u=0,f=1,h=t.size(),p=new Array(h),d=0;function m(t){var e=t[0],r=t[t.length-1];if(i=e.pmin-e.pos-e.dp+e.size,a=r.pos+r.dp+r.size-e.pmax,i&gt;.01){for(s=t.length-1;s&gt;=0;s--)t[s].dp+=i;n=!1}if(!(a&lt;.01)){if(i&lt;-.01){for(s=t.length-1;s&gt;=0;s--)t[s].dp-=a;n=!1}if(n){var c=0;for(o=0;o&lt;t.length;o++)(l=t[o]).pos+l.dp+l.size&gt;e.pmax&amp;&amp;c++;for(o=t.length-1;o&gt;=0&amp;&amp;!(c&lt;=0);o--)(l=t[o]).pos&gt;e.pmax-1&amp;&amp;(l.del=!0,c--);for(o=0;o&lt;t.length&amp;&amp;!(c&lt;=0);o++)if((l=t[o]).pos&lt;e.pmin+1)for(l.del=!0,c--,a=2*l.size,s=t.length-1;s&gt;=0;s--)t[s].dp-=a;for(o=t.length-1;o&gt;=0&amp;&amp;!(c&lt;=0);o--)(l=t[o]).pos+l.dp+l.size&gt;e.pmax&amp;&amp;(l.del=!0,c--)}}}t.each((function(t){var n=t[e],i=&quot;x&quot;===n._id.charAt(0),a=n.range;0===d&amp;&amp;a&amp;&amp;a[0]&gt;a[1]!==i&amp;&amp;(f=-1),p[d++]=[{datum:t,traceIndex:t.trace.index,dp:0,pos:t.pos,posref:t.posref,size:t.by*(i?T:1)/2,pmin:0,pmax:i?r.width:r.height}]})),p.sort((function(t,e){return t[0].posref-e[0].posref||f*(e[0].traceIndex-t[0].traceIndex)}));for(;!n&amp;&amp;u&lt;=h;){for(u++,n=!0,o=0;o&lt;p.length-1;){var g=p[o],v=p[o+1],y=g[g.length-1],x=v[0];if((i=y.pos+y.dp+y.size-x.pos-x.dp+x.size)&gt;.01&amp;&amp;y.pmin===x.pmin&amp;&amp;y.pmax===x.pmax){for(s=v.length-1;s&gt;=0;s--)v[s].dp+=i;for(g.push.apply(g,v),p.splice(o+1,1),c=0,s=g.length-1;s&gt;=0;s--)c+=g[s].dp;for(a=c/g.length,s=g.length-1;s&gt;=0;s--)g[s].dp-=a;n=!1}else o++}p.forEach(m)}for(o=p.length-1;o&gt;=0;o--){var b=p[o];for(s=b.length-1;s&gt;=0;s--){var _=b[s],w=_.datum;w.offset=_.dp,w.del=_.del}}}(Xt,Yt?&quot;xa&quot;:&quot;ya&quot;,u),z(Xt,Yt,u._invScaleX,u._invScaleY));if(s&amp;&amp;s.tagName){var Zt=g.getComponentMethod(&quot;annotations&quot;,&quot;hasClickToShow&quot;)(t,It);f(n.select(s),Zt?&quot;pointer&quot;:&quot;&quot;)}if(!s||a||!function(t,e,r){if(!r||r.length!==t._hoverdata.length)return!0;for(var n=r.length-1;n&gt;=0;n--){var i=r[n],a=t._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers))return!0}return!1}(t,0,Pt))return;Pt&amp;&amp;t.emit(&quot;plotly_unhover&quot;,{event:e,points:Pt});t.emit(&quot;plotly_hover&quot;,{event:e,points:t._hoverdata,xaxes:_,yaxes:w,xvals:V,yvals:H})}(t,e,r,a,s)}))},r.loneHover=function(t,e){var r=!0;Array.isArray(t)||(r=!1,t=[t]);var i=e.gd,a=j(i),o=U(i),s=I(t.map((function(t){var r=t._x0||t.x0||t.x||0,n=t._x1||t.x1||t.x||0,s=t._y0||t.y0||t.y||0,l=t._y1||t.y1||t.y||0,c=t.eventData;if(c){var u=Math.min(r,n),f=Math.max(r,n),h=Math.min(s,l),d=Math.max(s,l),m=t.trace;if(g.traceIs(m,&quot;gl3d&quot;)){var v=i._fullLayout[m.scene]._scene.container,y=v.offsetLeft,x=v.offsetTop;u+=y,f+=y,h+=x,d+=x}c.bbox={x0:u+o,x1:f+o,y0:h+a,y1:d+a},e.inOut_bbox&amp;&amp;e.inOut_bbox.push(c.bbox)}else c=!1;return{color:t.color||p.defaultLine,x0:t.x0||t.x||0,x1:t.x1||t.x||0,y0:t.y0||t.y||0,y1:t.y1||t.y||0,xLabel:t.xLabel,yLabel:t.yLabel,zLabel:t.zLabel,text:t.text,name:t.name,idealAlign:t.idealAlign,borderColor:t.borderColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontColor:t.fontColor,nameLength:t.nameLength,textAlign:t.textAlign,trace:t.trace||{index:0,hoverinfo:&quot;&quot;},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:t.hovertemplate||!1,hovertemplateLabels:t.hovertemplateLabels||!1,eventData:c}})),{gd:i,hovermode:&quot;closest&quot;,rotateLabels:!1,bgColor:e.bgColor||p.background,container:n.select(e.container),outerContainer:e.outerContainer||e.container}),l=0,c=0;return s.sort((function(t,e){return t.y0-e.y0})).each((function(t,r){var n=t.y0-t.by/2;t.offset=n-5&lt;l?l-n+5:0,l=n+t.by+t.offset,r===e.anchorIndex&amp;&amp;(c=t.offset)})).each((function(t){t.offset-=c})),z(s,!1,i._fullLayout._invScaleX,i._fullLayout._invScaleY),r?s:s.node()};var P=/&lt;extra&gt;([\s\S]*)&lt;\/extra&gt;/;function I(t,e){var r=e.gd,i=r._fullLayout,a=e.hovermode,c=e.rotateLabels,f=e.bgColor,d=e.container,m=e.outerContainer,w=e.commonLabelOpts||{};if(0===t.length)return[[]];var T=e.fontFamily||y.HOVERFONT,k=e.fontSize||y.HOVERFONTSIZE,A=t[0],E=A.xa,L=A.ya,P=a.charAt(0),I=A[P+&quot;Label&quot;],z=V(r,m),D=z.top,R=z.width,F=z.height,B=void 0!==I&amp;&amp;A.distance&lt;=e.hoverdistance&amp;&amp;(&quot;x&quot;===a||&quot;y&quot;===a);if(B){var N,j,U=!0;for(N=0;N&lt;t.length;N++)if(U&amp;&amp;void 0===t[N].zLabel&amp;&amp;(U=!1),j=t[N].hoverinfo||t[N].trace.hoverinfo){var H=Array.isArray(j)?j:j.split(&quot;+&quot;);if(-1===H.indexOf(&quot;all&quot;)&amp;&amp;-1===H.indexOf(a)){B=!1;break}}U&amp;&amp;(B=!1)}var q=d.selectAll(&quot;g.axistext&quot;).data(B?[0]:[]);if(q.enter().append(&quot;g&quot;).classed(&quot;axistext&quot;,!0),q.exit().remove(),q.each((function(){var t=n.select(this),e=o.ensureSingle(t,&quot;path&quot;,&quot;&quot;,(function(t){t.style({&quot;stroke-width&quot;:&quot;1px&quot;})})),l=o.ensureSingle(t,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),c=w.bgcolor||p.defaultLine,f=w.bordercolor||p.contrast(c),d=p.contrast(c),m={family:w.font.family||T,size:w.font.size||k,color:w.font.color||d};e.style({fill:c,stroke:f}),l.text(I).call(h.font,m).call(u.positionText,0,0).call(u.convertToTspans,r),t.attr(&quot;transform&quot;,&quot;&quot;);var g,v,y=V(r,l.node());if(&quot;x&quot;===a){var x=&quot;top&quot;===E.side?&quot;-&quot;:&quot;&quot;;l.attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(u.positionText,0,&quot;top&quot;===E.side?D-y.bottom-M-S:D-y.top+M+S),g=E._offset+(A.x0+A.x1)/2,v=L._offset+(&quot;top&quot;===E.side?0:L._length);var b=y.width/2+S;g&lt;b?(g=b,e.attr(&quot;d&quot;,&quot;M-&quot;+(b-M)+&quot;,0L-&quot;+(b-2*M)+&quot;,&quot;+x+M+&quot;H&quot;+(S+y.width/2)+&quot;v&quot;+x+(2*S+y.height)+&quot;H-&quot;+b+&quot;V&quot;+x+M+&quot;Z&quot;)):g&gt;i.width-b?(g=i.width-b,e.attr(&quot;d&quot;,&quot;M&quot;+(b-M)+&quot;,0L&quot;+b+&quot;,&quot;+x+M+&quot;v&quot;+x+(2*S+y.height)+&quot;H-&quot;+b+&quot;V&quot;+x+M+&quot;H&quot;+(b-2*M)+&quot;Z&quot;)):e.attr(&quot;d&quot;,&quot;M0,0L&quot;+M+&quot;,&quot;+x+M+&quot;H&quot;+(S+y.width/2)+&quot;v&quot;+x+(2*S+y.height)+&quot;H-&quot;+(S+y.width/2)+&quot;V&quot;+x+M+&quot;H-&quot;+M+&quot;Z&quot;)}else{var _,C,P;&quot;right&quot;===L.side?(_=&quot;start&quot;,C=1,P=&quot;&quot;,g=E._offset+E._length):(_=&quot;end&quot;,C=-1,P=&quot;-&quot;,g=E._offset),v=L._offset+(A.y0+A.y1)/2,l.attr(&quot;text-anchor&quot;,_),e.attr(&quot;d&quot;,&quot;M0,0L&quot;+P+M+&quot;,&quot;+M+&quot;V&quot;+(S+y.height/2)+&quot;h&quot;+P+(2*S+y.width)+&quot;V-&quot;+(S+y.height/2)+&quot;H&quot;+P+M+&quot;V-&quot;+M+&quot;Z&quot;);var O,z=y.height/2,R=D-y.top-z,F=&quot;clip&quot;+i._uid+&quot;commonlabel&quot;+L._id;if(g&lt;y.width+2*S+M){O=&quot;M-&quot;+(M+S)+&quot;-&quot;+z+&quot;h-&quot;+(y.width-S)+&quot;V&quot;+z+&quot;h&quot;+(y.width-S)+&quot;Z&quot;;var B=y.width-g+S;u.positionText(l,B,R),&quot;end&quot;===_&amp;&amp;l.selectAll(&quot;tspan&quot;).each((function(){var t=n.select(this),e=h.tester.append(&quot;text&quot;).text(t.text()).call(h.font,m),i=V(r,e.node());Math.round(i.width)&lt;Math.round(y.width)&amp;&amp;t.attr(&quot;x&quot;,B-i.width),e.remove()}))}else u.positionText(l,C*(S+M),R),O=null;var N=i._topclips.selectAll(&quot;#&quot;+F).data(O?[0]:[]);N.enter().append(&quot;clipPath&quot;).attr(&quot;id&quot;,F).append(&quot;path&quot;),N.exit().remove(),N.select(&quot;path&quot;).attr(&quot;d&quot;,O),h.setClipUrl(l,O?F:null,r)}t.attr(&quot;transform&quot;,s(g,v))})),v.isUnifiedHover(a)){d.selectAll(&quot;g.hovertext&quot;).remove();var G=t.filter((function(t){return&quot;none&quot;!==t.hoverinfo}));if(0===G.length)return;var Y=i.hoverlabel,W=Y.font,X={showlegend:!0,legend:{title:{text:I,font:W},font:W,bgcolor:Y.bgcolor,bordercolor:Y.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:&quot;v&quot;}},Z={font:W};x(X,Z,r._fullData);var J=Z.legend;J.entries=[];for(var K=0;K&lt;G.length;K++){var Q=G[K];if(&quot;none&quot;!==Q.hoverinfo){var $=O(Q,!0,a,i,I),tt=$[0],et=$[1];Q.name=et,Q.text=&quot;&quot;!==et?et+&quot; : &quot;+tt:tt;var rt=Q.cd[Q.index];rt&amp;&amp;(rt.mc&amp;&amp;(Q.mc=rt.mc),rt.mcc&amp;&amp;(Q.mc=rt.mcc),rt.mlc&amp;&amp;(Q.mlc=rt.mlc),rt.mlcc&amp;&amp;(Q.mlc=rt.mlcc),rt.mlw&amp;&amp;(Q.mlw=rt.mlw),rt.mrc&amp;&amp;(Q.mrc=rt.mrc),rt.dir&amp;&amp;(Q.dir=rt.dir)),Q._distinct=!0,J.entries.push([Q])}}J.entries.sort((function(t,e){return t[0].trace.index-e[0].trace.index})),J.layer=d,J._inHover=!0,J._groupTitleFont=Y.grouptitlefont,b(r,J);var nt,it,at,ot,st=d.select(&quot;g.legend&quot;),lt=V(r,st.node()),ct=lt.width+2*S,ut=lt.height+2*S,ft=G[0],ht=(ft.x0+ft.x1)/2,pt=(ft.y0+ft.y1)/2,dt=!(g.traceIs(ft.trace,&quot;bar-like&quot;)||g.traceIs(ft.trace,&quot;box-violin&quot;));&quot;y&quot;===P?dt?(it=pt-S,nt=pt+S):(it=Math.min.apply(null,G.map((function(t){return Math.min(t.y0,t.y1)}))),nt=Math.max.apply(null,G.map((function(t){return Math.max(t.y0,t.y1)})))):it=nt=o.mean(G.map((function(t){return(t.y0+t.y1)/2})))-ut/2,&quot;x&quot;===P?dt?(at=ht+S,ot=ht-S):(at=Math.max.apply(null,G.map((function(t){return Math.max(t.x0,t.x1)}))),ot=Math.min.apply(null,G.map((function(t){return Math.min(t.x0,t.x1)})))):at=ot=o.mean(G.map((function(t){return(t.x0+t.x1)/2})))-ct/2;var mt,gt,vt=E._offset,yt=L._offset;return ot+=vt-ct,it+=yt-ut,mt=(at+=vt)+ct&lt;R&amp;&amp;at&gt;=0?at:ot+ct&lt;R&amp;&amp;ot&gt;=0?ot:vt+ct&lt;R?vt:at-ht&lt;ht-ot+ct?R-ct:0,mt+=S,gt=(nt+=yt)+ut&lt;F&amp;&amp;nt&gt;=0?nt:it+ut&lt;F&amp;&amp;it&gt;=0?it:yt+ut&lt;F?yt:nt-pt&lt;pt-it+ut?F-ut:0,gt+=S,st.attr(&quot;transform&quot;,s(mt-1,gt-1)),st}var xt=d.selectAll(&quot;g.hovertext&quot;).data(t,(function(t){return C(t)}));return xt.enter().append(&quot;g&quot;).classed(&quot;hovertext&quot;,!0).each((function(){var t=n.select(this);t.append(&quot;rect&quot;).call(p.fill,p.addOpacity(f,.8)),t.append(&quot;text&quot;).classed(&quot;name&quot;,!0),t.append(&quot;path&quot;).style(&quot;stroke-width&quot;,&quot;1px&quot;),t.append(&quot;text&quot;).classed(&quot;nums&quot;,!0).call(h.font,T,k)})),xt.exit().remove(),xt.each((function(t){var e=n.select(this).attr(&quot;transform&quot;,&quot;&quot;),o=t.color;Array.isArray(o)&amp;&amp;(o=o[t.eventData[0].pointNumber]);var d=t.bgcolor||o,m=p.combine(p.opacity(d)?d:p.defaultLine,f),g=p.combine(p.opacity(o)?o:p.defaultLine,f),v=t.borderColor||p.contrast(m),y=O(t,B,a,i,I,e),x=y[0],b=y[1],w=e.select(&quot;text.nums&quot;).call(h.font,t.fontFamily||T,t.fontSize||k,t.fontColor||v).text(x).attr(&quot;data-notex&quot;,1).call(u.positionText,0,0).call(u.convertToTspans,r),A=e.select(&quot;text.name&quot;),E=0,L=0;if(b&amp;&amp;b!==x){A.call(h.font,t.fontFamily||T,t.fontSize||k,g).text(b).attr(&quot;data-notex&quot;,1).call(u.positionText,0,0).call(u.convertToTspans,r);var C=V(r,A.node());E=C.width+2*S,L=C.height+2*S}else A.remove(),e.select(&quot;rect&quot;).remove();e.select(&quot;path&quot;).style({fill:m,stroke:v});var P=t.xa._offset+(t.x0+t.x1)/2,z=t.ya._offset+(t.y0+t.y1)/2,N=Math.abs(t.x1-t.x0),j=Math.abs(t.y1-t.y0),U=V(r,w.node()),H=U.width/i._invScaleX,q=U.height/i._invScaleY;t.ty0=(D-U.top)/i._invScaleY,t.bx=H+2*S,t.by=Math.max(q+2*S,L),t.anchor=&quot;start&quot;,t.txwidth=H,t.tx2width=E,t.offset=0;var G,Y,W=(H+M+S+E)*i._invScaleX;if(c)t.pos=P,G=z+j/2+W&lt;=F,Y=z-j/2-W&gt;=0,&quot;top&quot;!==t.idealAlign&amp;&amp;G||!Y?G?(z+=j/2,t.anchor=&quot;start&quot;):t.anchor=&quot;middle&quot;:(z-=j/2,t.anchor=&quot;end&quot;);else if(t.pos=z,G=P+N/2+W&lt;=R,Y=P-N/2-W&gt;=0,&quot;left&quot;!==t.idealAlign&amp;&amp;G||!Y)if(G)P+=N/2,t.anchor=&quot;start&quot;;else{t.anchor=&quot;middle&quot;;var X=W/2,Z=P+X-R,J=P-X;Z&gt;0&amp;&amp;(P-=Z),J&lt;0&amp;&amp;(P+=-J)}else P-=N/2,t.anchor=&quot;end&quot;;w.attr(&quot;text-anchor&quot;,t.anchor),E&amp;&amp;A.attr(&quot;text-anchor&quot;,t.anchor),e.attr(&quot;transform&quot;,s(P,z)+(c?l(_):&quot;&quot;))})),xt}function O(t,e,r,n,i,a){var s=&quot;&quot;,l=&quot;&quot;;void 0!==t.nameOverride&amp;&amp;(t.name=t.nameOverride),t.name&amp;&amp;(t.trace._meta&amp;&amp;(t.name=o.templateString(t.name,t.trace._meta)),s=B(t.name,t.nameLength));var c=r.charAt(0),u=&quot;x&quot;===c?&quot;y&quot;:&quot;x&quot;;void 0!==t.zLabel?(void 0!==t.xLabel&amp;&amp;(l+=&quot;x: &quot;+t.xLabel+&quot;&lt;br&gt;&quot;),void 0!==t.yLabel&amp;&amp;(l+=&quot;y: &quot;+t.yLabel+&quot;&lt;br&gt;&quot;),&quot;choropleth&quot;!==t.trace.type&amp;&amp;&quot;choroplethmapbox&quot;!==t.trace.type&amp;&amp;(l+=(l?&quot;z: &quot;:&quot;&quot;)+t.zLabel)):e&amp;&amp;t[c+&quot;Label&quot;]===i?l=t[u+&quot;Label&quot;]||&quot;&quot;:void 0===t.xLabel?void 0!==t.yLabel&amp;&amp;&quot;scattercarpet&quot;!==t.trace.type&amp;&amp;(l=t.yLabel):l=void 0===t.yLabel?t.xLabel:&quot;(&quot;+t.xLabel+&quot;, &quot;+t.yLabel+&quot;)&quot;,!t.text&amp;&amp;0!==t.text||Array.isArray(t.text)||(l+=(l?&quot;&lt;br&gt;&quot;:&quot;&quot;)+t.text),void 0!==t.extraText&amp;&amp;(l+=(l?&quot;&lt;br&gt;&quot;:&quot;&quot;)+t.extraText),a&amp;&amp;&quot;&quot;===l&amp;&amp;!t.hovertemplate&amp;&amp;(&quot;&quot;===s&amp;&amp;a.remove(),l=s);var f=t.hovertemplate||!1;if(f){var h=t.hovertemplateLabels||t;t[c+&quot;Label&quot;]!==i&amp;&amp;(h[c+&quot;other&quot;]=h[c+&quot;Val&quot;],h[c+&quot;otherLabel&quot;]=h[c+&quot;Label&quot;]),l=(l=o.hovertemplateString(f,h,n._d3locale,t.eventData[0]||{},t.trace._meta)).replace(P,(function(e,r){return s=B(r,t.nameLength),&quot;&quot;}))}return[l,s]}function z(t,e,r,i){var a=function(t){return t*r},o=function(t){return t*i};t.each((function(t){var r=n.select(this);if(t.del)return r.remove();var i=r.select(&quot;text.nums&quot;),s=t.anchor,l=&quot;end&quot;===s?-1:1,c={start:1,end:-1,middle:0}[s],f=c*(M+S),p=f+c*(t.txwidth+S),d=0,m=t.offset,g=&quot;middle&quot;===s;g&amp;&amp;(f-=t.tx2width/2,p+=t.txwidth/2+S),e&amp;&amp;(m*=-A,d=t.offset*k),r.select(&quot;path&quot;).attr(&quot;d&quot;,g?&quot;M-&quot;+a(t.bx/2+t.tx2width/2)+&quot;,&quot;+o(m-t.by/2)+&quot;h&quot;+a(t.bx)+&quot;v&quot;+o(t.by)+&quot;h-&quot;+a(t.bx)+&quot;Z&quot;:&quot;M0,0L&quot;+a(l*M+d)+&quot;,&quot;+o(M+m)+&quot;v&quot;+o(t.by/2-M)+&quot;h&quot;+a(l*t.bx)+&quot;v-&quot;+o(t.by)+&quot;H&quot;+a(l*M+d)+&quot;V&quot;+o(m-M)+&quot;Z&quot;);var v=d+f,y=m+t.ty0-t.by/2+S,x=t.textAlign||&quot;auto&quot;;&quot;auto&quot;!==x&amp;&amp;(&quot;left&quot;===x&amp;&amp;&quot;start&quot;!==s?(i.attr(&quot;text-anchor&quot;,&quot;start&quot;),v=g?-t.bx/2-t.tx2width/2+S:-t.bx-S):&quot;right&quot;===x&amp;&amp;&quot;end&quot;!==s&amp;&amp;(i.attr(&quot;text-anchor&quot;,&quot;end&quot;),v=g?t.bx/2-t.tx2width/2-S:t.bx+S)),i.call(u.positionText,a(v),o(y)),t.tx2width&amp;&amp;(r.select(&quot;text.name&quot;).call(u.positionText,a(p+c*S+d),o(m+t.ty0-t.by/2+S)),r.select(&quot;rect&quot;).call(h.setRect,a(p+(c-1)*t.tx2width/2+d),o(m-t.by/2-1),a(t.tx2width),o(t.by+2)))}))}function D(t,e){var r=t.index,n=t.trace||{},a=t.cd[0],s=t.cd[r]||{};function l(t){return t||i(t)&amp;&amp;0===t}var c=Array.isArray(r)?function(t,e){var i=o.castOption(a,r,t);return l(i)?i:o.extractOption({},n,&quot;&quot;,e)}:function(t,e){return o.extractOption(s,n,t,e)};function u(e,r,n){var i=c(r,n);l(i)&amp;&amp;(t[e]=i)}if(u(&quot;hoverinfo&quot;,&quot;hi&quot;,&quot;hoverinfo&quot;),u(&quot;bgcolor&quot;,&quot;hbg&quot;,&quot;hoverlabel.bgcolor&quot;),u(&quot;borderColor&quot;,&quot;hbc&quot;,&quot;hoverlabel.bordercolor&quot;),u(&quot;fontFamily&quot;,&quot;htf&quot;,&quot;hoverlabel.font.family&quot;),u(&quot;fontSize&quot;,&quot;hts&quot;,&quot;hoverlabel.font.size&quot;),u(&quot;fontColor&quot;,&quot;htc&quot;,&quot;hoverlabel.font.color&quot;),u(&quot;nameLength&quot;,&quot;hnl&quot;,&quot;hoverlabel.namelength&quot;),u(&quot;textAlign&quot;,&quot;hta&quot;,&quot;hoverlabel.align&quot;),t.posref=&quot;y&quot;===e||&quot;closest&quot;===e&amp;&amp;&quot;h&quot;===n.orientation?t.xa._offset+(t.x0+t.x1)/2:t.ya._offset+(t.y0+t.y1)/2,t.x0=o.constrain(t.x0,0,t.xa._length),t.x1=o.constrain(t.x1,0,t.xa._length),t.y0=o.constrain(t.y0,0,t.ya._length),t.y1=o.constrain(t.y1,0,t.ya._length),void 0!==t.xLabelVal&amp;&amp;(t.xLabel=&quot;xLabel&quot;in t?t.xLabel:m.hoverLabelText(t.xa,t.xLabelVal,n.xhoverformat),t.xVal=t.xa.c2d(t.xLabelVal)),void 0!==t.yLabelVal&amp;&amp;(t.yLabel=&quot;yLabel&quot;in t?t.yLabel:m.hoverLabelText(t.ya,t.yLabelVal,n.yhoverformat),t.yVal=t.ya.c2d(t.yLabelVal)),void 0!==t.zLabelVal&amp;&amp;void 0===t.zLabel&amp;&amp;(t.zLabel=String(t.zLabelVal)),!(isNaN(t.xerr)||&quot;log&quot;===t.xa.type&amp;&amp;t.xerr&lt;=0)){var f=m.tickText(t.xa,t.xa.c2l(t.xerr),&quot;hover&quot;).text;void 0!==t.xerrneg?t.xLabel+=&quot; +&quot;+f+&quot; / -&quot;+m.tickText(t.xa,t.xa.c2l(t.xerrneg),&quot;hover&quot;).text:t.xLabel+=&quot; \xb1 &quot;+f,&quot;x&quot;===e&amp;&amp;(t.distance+=1)}if(!(isNaN(t.yerr)||&quot;log&quot;===t.ya.type&amp;&amp;t.yerr&lt;=0)){var h=m.tickText(t.ya,t.ya.c2l(t.yerr),&quot;hover&quot;).text;void 0!==t.yerrneg?t.yLabel+=&quot; +&quot;+h+&quot; / -&quot;+m.tickText(t.ya,t.ya.c2l(t.yerrneg),&quot;hover&quot;).text:t.yLabel+=&quot; \xb1 &quot;+h,&quot;y&quot;===e&amp;&amp;(t.distance+=1)}var p=t.hoverinfo||t.trace.hoverinfo;return p&amp;&amp;&quot;all&quot;!==p&amp;&amp;(-1===(p=Array.isArray(p)?p:p.split(&quot;+&quot;)).indexOf(&quot;x&quot;)&amp;&amp;(t.xLabel=void 0),-1===p.indexOf(&quot;y&quot;)&amp;&amp;(t.yLabel=void 0),-1===p.indexOf(&quot;z&quot;)&amp;&amp;(t.zLabel=void 0),-1===p.indexOf(&quot;text&quot;)&amp;&amp;(t.text=void 0),-1===p.indexOf(&quot;name&quot;)&amp;&amp;(t.name=void 0)),t}function R(t,e,r){var n,i,o=r.container,s=r.fullLayout,l=s._size,c=r.event,u=!!e.hLinePoint,f=!!e.vLinePoint;if(o.selectAll(&quot;.spikeline&quot;).remove(),f||u){var d=p.combine(s.plot_bgcolor,s.paper_bgcolor);if(u){var g,v,y=e.hLinePoint;n=y&amp;&amp;y.xa,&quot;cursor&quot;===(i=y&amp;&amp;y.ya).spikesnap?(g=c.pointerX,v=c.pointerY):(g=n._offset+y.x,v=i._offset+y.y);var x,b,_=a.readability(y.color,d)&lt;1.5?p.contrast(d):y.color,w=i.spikemode,T=i.spikethickness,k=i.spikecolor||_,A=m.getPxPosition(t,i);if(-1!==w.indexOf(&quot;toaxis&quot;)||-1!==w.indexOf(&quot;across&quot;)){if(-1!==w.indexOf(&quot;toaxis&quot;)&amp;&amp;(x=A,b=g),-1!==w.indexOf(&quot;across&quot;)){var M=i._counterDomainMin,S=i._counterDomainMax;&quot;free&quot;===i.anchor&amp;&amp;(M=Math.min(M,i.position),S=Math.max(S,i.position)),x=l.l+M*l.w,b=l.l+S*l.w}o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:x,x2:b,y1:v,y2:v,&quot;stroke-width&quot;:T,stroke:k,&quot;stroke-dasharray&quot;:h.dashStyle(i.spikedash,T)}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0),o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:x,x2:b,y1:v,y2:v,&quot;stroke-width&quot;:T+2,stroke:d}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0)}-1!==w.indexOf(&quot;marker&quot;)&amp;&amp;o.insert(&quot;circle&quot;,&quot;:first-child&quot;).attr({cx:A+(&quot;right&quot;!==i.side?T:-T),cy:v,r:T,fill:k}).classed(&quot;spikeline&quot;,!0)}if(f){var E,L,C=e.vLinePoint;n=C&amp;&amp;C.xa,i=C&amp;&amp;C.ya,&quot;cursor&quot;===n.spikesnap?(E=c.pointerX,L=c.pointerY):(E=n._offset+C.x,L=i._offset+C.y);var P,I,O=a.readability(C.color,d)&lt;1.5?p.contrast(d):C.color,z=n.spikemode,D=n.spikethickness,R=n.spikecolor||O,F=m.getPxPosition(t,n);if(-1!==z.indexOf(&quot;toaxis&quot;)||-1!==z.indexOf(&quot;across&quot;)){if(-1!==z.indexOf(&quot;toaxis&quot;)&amp;&amp;(P=F,I=L),-1!==z.indexOf(&quot;across&quot;)){var B=n._counterDomainMin,N=n._counterDomainMax;&quot;free&quot;===n.anchor&amp;&amp;(B=Math.min(B,n.position),N=Math.max(N,n.position)),P=l.t+(1-N)*l.h,I=l.t+(1-B)*l.h}o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:E,x2:E,y1:P,y2:I,&quot;stroke-width&quot;:D,stroke:R,&quot;stroke-dasharray&quot;:h.dashStyle(n.spikedash,D)}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0),o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:E,x2:E,y1:P,y2:I,&quot;stroke-width&quot;:D+2,stroke:d}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0)}-1!==z.indexOf(&quot;marker&quot;)&amp;&amp;o.insert(&quot;circle&quot;,&quot;:first-child&quot;).attr({cx:E,cy:F-(&quot;top&quot;!==n.side?D:-D),r:D,fill:R}).classed(&quot;spikeline&quot;,!0)}}}function F(t,e){return!e||(e.vLinePoint!==t._spikepoints.vLinePoint||e.hLinePoint!==t._spikepoints.hLinePoint)}function B(t,e){return u.plainText(t||&quot;&quot;,{len:e,allowedTags:[&quot;br&quot;,&quot;sub&quot;,&quot;sup&quot;,&quot;b&quot;,&quot;i&quot;,&quot;em&quot;]})}function N(t,e,r){var n=e[t+&quot;a&quot;],i=e[t+&quot;Val&quot;],a=e.cd[0];if(&quot;category&quot;===n.type)i=n._categoriesMap[i];else if(&quot;date&quot;===n.type){var o=e.trace[t+&quot;periodalignment&quot;];if(o){var s=e.cd[e.index],l=s[t+&quot;Start&quot;];void 0===l&amp;&amp;(l=s[t]);var c=s[t+&quot;End&quot;];void 0===c&amp;&amp;(c=s[t]);var u=c-l;&quot;end&quot;===o?i+=u:&quot;middle&quot;===o&amp;&amp;(i+=u/2)}i=n.d2c(i)}return a&amp;&amp;a.t&amp;&amp;a.t.posLetter===n._id&amp;&amp;(&quot;group&quot;!==r.boxmode&amp;&amp;&quot;group&quot;!==r.violinmode||(i+=a.t.dPos)),i}function j(t){return t.offsetTop+t.clientTop}function U(t){return t.offsetLeft+t.clientLeft}function V(t,e){var r=t._fullLayout,n=e.getBoundingClientRect(),i=n.x,a=n.y,s=i+n.width,l=a+n.height,c=o.apply3DTransform(r._invTransform)(i,a),u=o.apply3DTransform(r._invTransform)(s,l),f=c[0],h=c[1],p=u[0],d=u[1];return{x:f,y:h,width:p-f,height:d-h,top:Math.min(h,d),left:Math.min(f,p),right:Math.max(f,p),bottom:Math.max(h,d)}}},{&quot;../../lib&quot;:503,&quot;../../lib/events&quot;:492,&quot;../../lib/override_cursor&quot;:514,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../registry&quot;:638,&quot;../color&quot;:366,&quot;../dragelement&quot;:385,&quot;../drawing&quot;:388,&quot;../legend/defaults&quot;:418,&quot;../legend/draw&quot;:419,&quot;./constants&quot;:400,&quot;./helpers&quot;:402,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:190,tinycolor2:312}],404:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;./helpers&quot;).isUnifiedHover;e.exports=function(t,e,r,o){o=o||{};var s=e.legend;function l(t){o.font[t]||(o.font[t]=s?e.legend.font[t]:e.font[t])}e&amp;&amp;a(e.hovermode)&amp;&amp;(o.font||(o.font={}),l(&quot;size&quot;),l(&quot;family&quot;),l(&quot;color&quot;),s?(o.bgcolor||(o.bgcolor=i.combine(e.legend.bgcolor,e.paper_bgcolor)),o.bordercolor||(o.bordercolor=e.legend.bordercolor)):o.bgcolor||(o.bgcolor=e.paper_bgcolor)),r(&quot;hoverlabel.bgcolor&quot;,o.bgcolor),r(&quot;hoverlabel.bordercolor&quot;,o.bordercolor),r(&quot;hoverlabel.namelength&quot;,o.namelength),n.coerceFont(r,&quot;hoverlabel.font&quot;,o.font),r(&quot;hoverlabel.align&quot;,o.align)}},{&quot;../../lib&quot;:503,&quot;../color&quot;:366,&quot;./helpers&quot;:402}],405:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return void 0!==e[r]?e[r]:n.coerce(t,e,i,r,a)}return r(&quot;clickmode&quot;),r(&quot;hovermode&quot;)}},{&quot;../../lib&quot;:503,&quot;./layout_attributes&quot;:407}],406:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../dragelement&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;./layout_attributes&quot;),l=t(&quot;./hover&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;fx&quot;,constants:t(&quot;./constants&quot;),schema:{layout:s},attributes:t(&quot;./attributes&quot;),layoutAttributes:s,supplyLayoutGlobalDefaults:t(&quot;./layout_global_defaults&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(t,e,r){return i.castOption(t,e,&quot;hoverlabel.&quot;+r)},castHoverinfo:function(t,e,r){return i.castOption(t,r,&quot;hoverinfo&quot;,(function(r){return i.coerceHoverinfo({hoverinfo:r},{_module:t._module},e)}))},hover:l.hover,unhover:a.unhover,loneHover:l.loneHover,loneUnhover:function(t){var e=i.isD3Selection(t)?t:n.select(t);e.selectAll(&quot;g.hovertext&quot;).remove(),e.selectAll(&quot;.spikeline&quot;).remove()},click:t(&quot;./click&quot;)}},{&quot;../../lib&quot;:503,&quot;../dragelement&quot;:385,&quot;./attributes&quot;:397,&quot;./calc&quot;:398,&quot;./click&quot;:399,&quot;./constants&quot;:400,&quot;./defaults&quot;:401,&quot;./helpers&quot;:402,&quot;./hover&quot;:403,&quot;./layout_attributes&quot;:407,&quot;./layout_defaults&quot;:408,&quot;./layout_global_defaults&quot;:409,&quot;@plotly/d3&quot;:58}],407:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../plots/font_attributes&quot;),a=i({editType:&quot;none&quot;});a.family.dflt=n.HOVERFONT,a.size.dflt=n.HOVERFONTSIZE,e.exports={clickmode:{valType:&quot;flaglist&quot;,flags:[&quot;event&quot;,&quot;select&quot;],dflt:&quot;event&quot;,editType:&quot;plot&quot;,extras:[&quot;none&quot;]},dragmode:{valType:&quot;enumerated&quot;,values:[&quot;zoom&quot;,&quot;pan&quot;,&quot;select&quot;,&quot;lasso&quot;,&quot;drawclosedpath&quot;,&quot;drawopenpath&quot;,&quot;drawline&quot;,&quot;drawrect&quot;,&quot;drawcircle&quot;,&quot;orbit&quot;,&quot;turntable&quot;,!1],dflt:&quot;zoom&quot;,editType:&quot;modebar&quot;},hovermode:{valType:&quot;enumerated&quot;,values:[&quot;x&quot;,&quot;y&quot;,&quot;closest&quot;,!1,&quot;x unified&quot;,&quot;y unified&quot;],dflt:&quot;closest&quot;,editType:&quot;modebar&quot;},hoverdistance:{valType:&quot;integer&quot;,min:-1,dflt:20,editType:&quot;none&quot;},spikedistance:{valType:&quot;integer&quot;,min:-1,dflt:-1,editType:&quot;none&quot;},hoverlabel:{bgcolor:{valType:&quot;color&quot;,editType:&quot;none&quot;},bordercolor:{valType:&quot;color&quot;,editType:&quot;none&quot;},font:a,grouptitlefont:i({editType:&quot;none&quot;}),align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;right&quot;,&quot;auto&quot;],dflt:&quot;auto&quot;,editType:&quot;none&quot;},namelength:{valType:&quot;integer&quot;,min:-1,dflt:15,editType:&quot;none&quot;},editType:&quot;none&quot;},selectdirection:{valType:&quot;enumerated&quot;,values:[&quot;h&quot;,&quot;v&quot;,&quot;d&quot;,&quot;any&quot;],dflt:&quot;any&quot;,editType:&quot;none&quot;}}},{&quot;../../plots/font_attributes&quot;:585,&quot;./constants&quot;:400}],408:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;),a=t(&quot;./hovermode_defaults&quot;),o=t(&quot;./hoverlabel_defaults&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}a(t,e)&amp;&amp;(r(&quot;hoverdistance&quot;),r(&quot;spikedistance&quot;)),&quot;select&quot;===r(&quot;dragmode&quot;)&amp;&amp;r(&quot;selectdirection&quot;);var s=e._has(&quot;mapbox&quot;),l=e._has(&quot;geo&quot;),c=e._basePlotModules.length;&quot;zoom&quot;===e.dragmode&amp;&amp;((s||l)&amp;&amp;1===c||s&amp;&amp;l&amp;&amp;2===c)&amp;&amp;(e.dragmode=&quot;pan&quot;),o(t,e,r),n.coerceFont(r,&quot;hoverlabel.grouptitlefont&quot;,e.hoverlabel.font)}},{&quot;../../lib&quot;:503,&quot;./hoverlabel_defaults&quot;:404,&quot;./hovermode_defaults&quot;:405,&quot;./layout_attributes&quot;:407}],409:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./hoverlabel_defaults&quot;),a=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){i(t,e,(function(r,i){return n.coerce(t,e,a,r,i)}))}},{&quot;../../lib&quot;:503,&quot;./hoverlabel_defaults&quot;:404,&quot;./layout_attributes&quot;:407}],410:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/regex&quot;).counter,a=t(&quot;../../plots/domain&quot;).attributes,o=t(&quot;../../plots/cartesian/constants&quot;).idRegex,s=t(&quot;../../plot_api/plot_template&quot;),l={rows:{valType:&quot;integer&quot;,min:1,editType:&quot;plot&quot;},roworder:{valType:&quot;enumerated&quot;,values:[&quot;top to bottom&quot;,&quot;bottom to top&quot;],dflt:&quot;top to bottom&quot;,editType:&quot;plot&quot;},columns:{valType:&quot;integer&quot;,min:1,editType:&quot;plot&quot;},subplots:{valType:&quot;info_array&quot;,freeLength:!0,dimensions:2,items:{valType:&quot;enumerated&quot;,values:[i(&quot;xy&quot;).toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},xaxes:{valType:&quot;info_array&quot;,freeLength:!0,items:{valType:&quot;enumerated&quot;,values:[o.x.toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},yaxes:{valType:&quot;info_array&quot;,freeLength:!0,items:{valType:&quot;enumerated&quot;,values:[o.y.toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},pattern:{valType:&quot;enumerated&quot;,values:[&quot;independent&quot;,&quot;coupled&quot;],dflt:&quot;coupled&quot;,editType:&quot;plot&quot;},xgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},ygap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},domain:a({name:&quot;grid&quot;,editType:&quot;plot&quot;,noGridCell:!0},{}),xside:{valType:&quot;enumerated&quot;,values:[&quot;bottom&quot;,&quot;bottom plot&quot;,&quot;top plot&quot;,&quot;top&quot;],dflt:&quot;bottom plot&quot;,editType:&quot;plot&quot;},yside:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;left plot&quot;,&quot;right plot&quot;,&quot;right&quot;],dflt:&quot;left plot&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;};function c(t,e,r){var n=e[r+&quot;axes&quot;],i=Object.keys((t._splomAxes||{})[r]||{});return Array.isArray(n)?n:i.length?i:void 0}function u(t,e,r,n,i,a){var o=e(t+&quot;gap&quot;,r),s=e(&quot;domain.&quot;+t);e(t+&quot;side&quot;,n);for(var l=new Array(i),c=s[0],u=(s[1]-c)/(i-o),f=u*(1-o),h=0;h&lt;i;h++){var p=c+u*h;l[a?i-1-h:h]=[p,p+f]}return l}function f(t,e,r,n,i){var a,o=new Array(r);function s(t,r){-1!==e.indexOf(r)&amp;&amp;void 0===n[r]?(o[t]=r,n[r]=t):o[t]=&quot;&quot;}if(Array.isArray(t))for(a=0;a&lt;r;a++)s(a,t[a]);else for(s(0,i),a=1;a&lt;r;a++)s(a,i+(a+1));return o}e.exports={moduleType:&quot;component&quot;,name:&quot;grid&quot;,schema:{layout:{grid:l}},layoutAttributes:l,sizeDefaults:function(t,e){var r=t.grid||{},i=c(e,r,&quot;x&quot;),a=c(e,r,&quot;y&quot;);if(t.grid||i||a){var o,f,h=Array.isArray(r.subplots)&amp;&amp;Array.isArray(r.subplots[0]),p=Array.isArray(i),d=Array.isArray(a),m=p&amp;&amp;i!==r.xaxes&amp;&amp;d&amp;&amp;a!==r.yaxes;h?(o=r.subplots.length,f=r.subplots[0].length):(d&amp;&amp;(o=a.length),p&amp;&amp;(f=i.length));var g=s.newContainer(e,&quot;grid&quot;),v=k(&quot;rows&quot;,o),y=k(&quot;columns&quot;,f);if(v*y&gt;1){if(!h&amp;&amp;!p&amp;&amp;!d)&quot;independent&quot;===k(&quot;pattern&quot;)&amp;&amp;(h=!0);g._hasSubplotGrid=h;var x,b,_=&quot;top to bottom&quot;===k(&quot;roworder&quot;),w=h?.2:.1,T=h?.3:.1;m&amp;&amp;e._splomGridDflt&amp;&amp;(x=e._splomGridDflt.xside,b=e._splomGridDflt.yside),g._domains={x:u(&quot;x&quot;,k,w,x,y),y:u(&quot;y&quot;,k,T,b,v,_)}}else delete e.grid}function k(t,e){return n.coerce(r,g,l,t,e)}},contentDefaults:function(t,e){var r=e.grid;if(r&amp;&amp;r._domains){var n,i,a,o,s,l,u,h=t.grid||{},p=e._subplots,d=r._hasSubplotGrid,m=r.rows,g=r.columns,v=&quot;independent&quot;===r.pattern,y=r._axisMap={};if(d){var x=h.subplots||[];l=r.subplots=new Array(m);var b=1;for(n=0;n&lt;m;n++){var _=l[n]=new Array(g),w=x[n]||[];for(i=0;i&lt;g;i++)if(v?(s=1===b?&quot;xy&quot;:&quot;x&quot;+b+&quot;y&quot;+b,b++):s=w[i],_[i]=&quot;&quot;,-1!==p.cartesian.indexOf(s)){if(u=s.indexOf(&quot;y&quot;),a=s.slice(0,u),o=s.slice(u),void 0!==y[a]&amp;&amp;y[a]!==i||void 0!==y[o]&amp;&amp;y[o]!==n)continue;_[i]=s,y[a]=i,y[o]=n}}}else{var T=c(e,h,&quot;x&quot;),k=c(e,h,&quot;y&quot;);r.xaxes=f(T,p.xaxis,g,y,&quot;x&quot;),r.yaxes=f(k,p.yaxis,m,y,&quot;y&quot;)}var A=r._anchors={},M=&quot;top to bottom&quot;===r.roworder;for(var S in y){var E,L,C,P=S.charAt(0),I=r[P+&quot;side&quot;];if(I.length&lt;8)A[S]=&quot;free&quot;;else if(&quot;x&quot;===P){if(&quot;t&quot;===I.charAt(0)===M?(E=0,L=1,C=m):(E=m-1,L=-1,C=-1),d){var O=y[S];for(n=E;n!==C;n+=L)if((s=l[n][O])&amp;&amp;(u=s.indexOf(&quot;y&quot;),s.slice(0,u)===S)){A[S]=s.slice(u);break}}else for(n=E;n!==C;n+=L)if(o=r.yaxes[n],-1!==p.cartesian.indexOf(S+o)){A[S]=o;break}}else if(&quot;l&quot;===I.charAt(0)?(E=0,L=1,C=g):(E=g-1,L=-1,C=-1),d){var z=y[S];for(n=E;n!==C;n+=L)if((s=l[z][n])&amp;&amp;(u=s.indexOf(&quot;y&quot;),s.slice(u)===S)){A[S]=s.slice(0,u);break}}else for(n=E;n!==C;n+=L)if(a=r.xaxes[n],-1!==p.cartesian.indexOf(a+S)){A[S]=a;break}}}}}},{&quot;../../lib&quot;:503,&quot;../../lib/regex&quot;:520,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/cartesian/constants&quot;:561,&quot;../../plots/domain&quot;:584}],411:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/constants&quot;),i=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=i(&quot;image&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;arraydraw&quot;},source:{valType:&quot;string&quot;,editType:&quot;arraydraw&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;arraydraw&quot;},sizex:{valType:&quot;number&quot;,dflt:0,editType:&quot;arraydraw&quot;},sizey:{valType:&quot;number&quot;,dflt:0,editType:&quot;arraydraw&quot;},sizing:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;contain&quot;,&quot;stretch&quot;],dflt:&quot;contain&quot;,editType:&quot;arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},x:{valType:&quot;any&quot;,dflt:0,editType:&quot;arraydraw&quot;},y:{valType:&quot;any&quot;,dflt:0,editType:&quot;arraydraw&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;arraydraw&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;arraydraw&quot;},xref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,n.idRegex.x.toString()],dflt:&quot;paper&quot;,editType:&quot;arraydraw&quot;},yref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,n.idRegex.y.toString()],dflt:&quot;paper&quot;,editType:&quot;arraydraw&quot;},editType:&quot;arraydraw&quot;})},{&quot;../../constants/axis_placeable_objects&quot;:472,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/cartesian/constants&quot;:561}],412:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib/to_log_range&quot;);e.exports=function(t,e,r,a){e=e||{};var o=&quot;log&quot;===r&amp;&amp;&quot;linear&quot;===e.type,s=&quot;linear&quot;===r&amp;&amp;&quot;log&quot;===e.type;if(o||s)for(var l,c,u=t._fullLayout.images,f=e._id.charAt(0),h=0;h&lt;u.length;h++)if(c=&quot;images[&quot;+h+&quot;].&quot;,(l=u[h])[f+&quot;ref&quot;]===e._id){var p=l[f],d=l[&quot;size&quot;+f],m=null,g=null;if(o){m=i(p,e.range);var v=d/Math.pow(10,m)/2;g=2*Math.log(v+Math.sqrt(1+v*v))/Math.LN10}else g=(m=Math.pow(10,p))*(Math.pow(10,d/2)-Math.pow(10,-d/2));n(m)?n(g)||(g=null):(m=null,g=null),a(c+f,m),a(c+&quot;size&quot;+f,g)}}},{&quot;../../lib/to_log_range&quot;:531,&quot;fast-isnumeric&quot;:190}],413:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}var s=a(&quot;source&quot;);if(!a(&quot;visible&quot;,!!s))return e;a(&quot;layer&quot;),a(&quot;xanchor&quot;),a(&quot;yanchor&quot;),a(&quot;sizex&quot;),a(&quot;sizey&quot;),a(&quot;sizing&quot;),a(&quot;opacity&quot;);for(var l={_fullLayout:r},c=[&quot;x&quot;,&quot;y&quot;],u=0;u&lt;2;u++){var f=c[u],h=i.coerceRef(t,e,l,f,&quot;paper&quot;,void 0);if(&quot;paper&quot;!==h)i.getFromId(l,h)._imgIndices.push(e._index);i.coercePosition(e,l,a,h,f,0)}return e}e.exports=function(t,e){a(t,e,{name:&quot;images&quot;,handleItemDefaults:s})}},{&quot;../../lib&quot;:503,&quot;../../plots/array_container_defaults&quot;:549,&quot;../../plots/cartesian/axes&quot;:554,&quot;./attributes&quot;:411}],414:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../drawing&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/axis_ids&quot;),s=t(&quot;../../constants/xmlns_namespaces&quot;);e.exports=function(t){var e,r,l=t._fullLayout,c=[],u={},f=[];for(r=0;r&lt;l.images.length;r++){var h=l.images[r];if(h.visible)if(&quot;below&quot;===h.layer&amp;&amp;&quot;paper&quot;!==h.xref&amp;&amp;&quot;paper&quot;!==h.yref){e=o.ref2id(h.xref)+o.ref2id(h.yref);var p=l._plots[e];if(!p){f.push(h);continue}p.mainplot&amp;&amp;(e=p.mainplot.id),u[e]||(u[e]=[]),u[e].push(h)}else&quot;above&quot;===h.layer?c.push(h):f.push(h)}var d={left:{sizing:&quot;xMin&quot;,offset:0},center:{sizing:&quot;xMid&quot;,offset:-.5},right:{sizing:&quot;xMax&quot;,offset:-1}},m={top:{sizing:&quot;YMin&quot;,offset:0},middle:{sizing:&quot;YMid&quot;,offset:-.5},bottom:{sizing:&quot;YMax&quot;,offset:-1}};function g(e){var r=n.select(this);if(this._imgSrc!==e.source)if(r.attr(&quot;xmlns&quot;,s.svg),e.source&amp;&amp;&quot;data:&quot;===e.source.slice(0,5))r.attr(&quot;xlink:href&quot;,e.source),this._imgSrc=e.source;else{var i=new Promise(function(t){var n=new Image;function i(){r.remove(),t()}this.img=n,n.setAttribute(&quot;crossOrigin&quot;,&quot;anonymous&quot;),n.onerror=i,n.onload=function(){var e=document.createElement(&quot;canvas&quot;);e.width=this.width,e.height=this.height,e.getContext(&quot;2d&quot;).drawImage(this,0,0);var n=e.toDataURL(&quot;image/png&quot;);r.attr(&quot;xlink:href&quot;,n),t()},r.on(&quot;error&quot;,i),n.src=e.source,this._imgSrc=e.source}.bind(this));t._promises.push(i)}}function v(e){var r,o,s=n.select(this),c=a.getFromId(t,e.xref),u=a.getFromId(t,e.yref),f=&quot;domain&quot;===a.getRefType(e.xref),h=&quot;domain&quot;===a.getRefType(e.yref),p=l._size;r=void 0!==c?&quot;string&quot;==typeof e.xref&amp;&amp;f?c._length*e.sizex:Math.abs(c.l2p(e.sizex)-c.l2p(0)):e.sizex*p.w,o=void 0!==u?&quot;string&quot;==typeof e.yref&amp;&amp;h?u._length*e.sizey:Math.abs(u.l2p(e.sizey)-u.l2p(0)):e.sizey*p.h;var g,v,y=r*d[e.xanchor].offset,x=o*m[e.yanchor].offset,b=d[e.xanchor].sizing+m[e.yanchor].sizing;switch(g=void 0!==c?&quot;string&quot;==typeof e.xref&amp;&amp;f?c._length*e.x+c._offset:c.r2p(e.x)+c._offset:e.x*p.w+p.l,g+=y,v=void 0!==u?&quot;string&quot;==typeof e.yref&amp;&amp;h?u._length*(1-e.y)+u._offset:u.r2p(e.y)+u._offset:p.h-e.y*p.h+p.t,v+=x,e.sizing){case&quot;fill&quot;:b+=&quot; slice&quot;;break;case&quot;stretch&quot;:b=&quot;none&quot;}s.attr({x:g,y:v,width:r,height:o,preserveAspectRatio:b,opacity:e.opacity});var _=(c&amp;&amp;&quot;domain&quot;!==a.getRefType(e.xref)?c._id:&quot;&quot;)+(u&amp;&amp;&quot;domain&quot;!==a.getRefType(e.yref)?u._id:&quot;&quot;);i.setClipUrl(s,_?&quot;clip&quot;+l._uid+_:null,t)}var y=l._imageLowerLayer.selectAll(&quot;image&quot;).data(f),x=l._imageUpperLayer.selectAll(&quot;image&quot;).data(c);y.enter().append(&quot;image&quot;),x.enter().append(&quot;image&quot;),y.exit().remove(),x.exit().remove(),y.each((function(t){g.bind(this)(t),v.bind(this)(t)})),x.each((function(t){g.bind(this)(t),v.bind(this)(t)}));var b=Object.keys(l._plots);for(r=0;r&lt;b.length;r++){e=b[r];var _=l._plots[e];if(_.imagelayer){var w=_.imagelayer.selectAll(&quot;image&quot;).data(u[e]||[]);w.enter().append(&quot;image&quot;),w.exit().remove(),w.each((function(t){g.bind(this)(t),v.bind(this)(t)}))}}}},{&quot;../../constants/xmlns_namespaces&quot;:480,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../plots/cartesian/axis_ids&quot;:558,&quot;../drawing&quot;:388,&quot;@plotly/d3&quot;:58}],415:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;images&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;images&quot;),draw:t(&quot;./draw&quot;),convertCoords:t(&quot;./convert_coords&quot;)}},{&quot;../../plots/cartesian/include_components&quot;:567,&quot;./attributes&quot;:411,&quot;./convert_coords&quot;:412,&quot;./defaults&quot;:413,&quot;./draw&quot;:414}],416:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;);e.exports={bgcolor:{valType:&quot;color&quot;,editType:&quot;legend&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;legend&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;legend&quot;},font:n({editType:&quot;legend&quot;}),grouptitlefont:n({editType:&quot;legend&quot;}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;v&quot;,editType:&quot;legend&quot;},traceorder:{valType:&quot;flaglist&quot;,flags:[&quot;reversed&quot;,&quot;grouped&quot;],extras:[&quot;normal&quot;],editType:&quot;legend&quot;},tracegroupgap:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;legend&quot;},itemsizing:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;constant&quot;],dflt:&quot;trace&quot;,editType:&quot;legend&quot;},itemwidth:{valType:&quot;number&quot;,min:30,dflt:30,editType:&quot;legend&quot;},itemclick:{valType:&quot;enumerated&quot;,values:[&quot;toggle&quot;,&quot;toggleothers&quot;,!1],dflt:&quot;toggle&quot;,editType:&quot;legend&quot;},itemdoubleclick:{valType:&quot;enumerated&quot;,values:[&quot;toggle&quot;,&quot;toggleothers&quot;,!1],dflt:&quot;toggleothers&quot;,editType:&quot;legend&quot;},groupclick:{valType:&quot;enumerated&quot;,values:[&quot;toggleitem&quot;,&quot;togglegroup&quot;],dflt:&quot;togglegroup&quot;,editType:&quot;legend&quot;},x:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;legend&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;legend&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;legend&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;legend&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},valign:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;,editType:&quot;legend&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;legend&quot;},font:n({editType:&quot;legend&quot;}),side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;left&quot;,&quot;top left&quot;],editType:&quot;legend&quot;},editType:&quot;legend&quot;},editType:&quot;legend&quot;}},{&quot;../../plots/font_attributes&quot;:585,&quot;../color/attributes&quot;:365}],417:[function(t,e,r){&quot;use strict&quot;;e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:&quot;#808BA4&quot;,scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},{}],418:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;./attributes&quot;),l=t(&quot;../../plots/layout_attributes&quot;),c=t(&quot;./helpers&quot;);e.exports=function(t,e,r){var u,f=t.legend||{},h=a.newContainer(e,&quot;legend&quot;);function p(t,e){return i.coerce(f,h,s,t,e)}for(var d=function(t,e){var r=u._input,n=u;return i.coerce(r,n,o,t,e)},m=e.font||{},g=i.coerceFont(p,&quot;grouptitlefont&quot;,i.extendFlat({},m,{size:Math.round(1.1*m.size)})),v=0,y=!1,x=&quot;normal&quot;,b=0;b&lt;r.length;b++)(u=r[b]).visible&amp;&amp;((u.showlegend||u._dfltShowLegend&amp;&amp;!(u._module&amp;&amp;u._module.attributes&amp;&amp;u._module.attributes.showlegend&amp;&amp;!1===u._module.attributes.showlegend.dflt))&amp;&amp;(v++,u.showlegend&amp;&amp;(y=!0,(n.traceIs(u,&quot;pie-like&quot;)||!0===u._input.showlegend)&amp;&amp;v++),i.coerceFont(d,&quot;legendgrouptitle.font&quot;,g)),(n.traceIs(u,&quot;bar&quot;)&amp;&amp;&quot;stack&quot;===e.barmode||-1!==[&quot;tonextx&quot;,&quot;tonexty&quot;].indexOf(u.fill))&amp;&amp;(x=c.isGrouped({traceorder:x})?&quot;grouped+reversed&quot;:&quot;reversed&quot;),void 0!==u.legendgroup&amp;&amp;&quot;&quot;!==u.legendgroup&amp;&amp;(x=c.isReversed({traceorder:x})?&quot;reversed+grouped&quot;:&quot;grouped&quot;));var _=i.coerce(t,e,l,&quot;showlegend&quot;,y&amp;&amp;v&gt;1);if(!1===_&amp;&amp;(e.legend=void 0),(!1!==_||f.uirevision)&amp;&amp;(p(&quot;uirevision&quot;,e.uirevision),!1!==_)){p(&quot;bgcolor&quot;,e.paper_bgcolor),p(&quot;bordercolor&quot;),p(&quot;borderwidth&quot;);var w,T,k,A=i.coerceFont(p,&quot;font&quot;,e.font),M=&quot;h&quot;===p(&quot;orientation&quot;);if(M?(w=0,n.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(t.xaxis)?(T=1.1,k=&quot;bottom&quot;):(T=-.1,k=&quot;top&quot;)):(w=1.02,T=1,k=&quot;auto&quot;),p(&quot;traceorder&quot;,x),c.isGrouped(e.legend)&amp;&amp;p(&quot;tracegroupgap&quot;),p(&quot;itemsizing&quot;),p(&quot;itemwidth&quot;),p(&quot;itemclick&quot;),p(&quot;itemdoubleclick&quot;),p(&quot;groupclick&quot;),p(&quot;x&quot;,w),p(&quot;xanchor&quot;),p(&quot;y&quot;,T),p(&quot;yanchor&quot;,k),p(&quot;valign&quot;),i.noneOrAll(f,h,[&quot;x&quot;,&quot;y&quot;]),p(&quot;title.text&quot;)){p(&quot;title.side&quot;,M?&quot;left&quot;:&quot;top&quot;);var S=i.extendFlat({},A,{size:i.bigFont(A.size)});i.coerceFont(p,&quot;title.font&quot;,S)}}}},{&quot;../../lib&quot;:503,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/attributes&quot;:550,&quot;../../plots/layout_attributes&quot;:610,&quot;../../registry&quot;:638,&quot;./attributes&quot;:416,&quot;./helpers&quot;:422}],419:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib/events&quot;),l=t(&quot;../dragelement&quot;),c=t(&quot;../drawing&quot;),u=t(&quot;../color&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;./handle_click&quot;),p=t(&quot;./constants&quot;),d=t(&quot;../../constants/alignment&quot;),m=d.LINE_SPACING,g=d.FROM_TL,v=d.FROM_BR,y=t(&quot;./get_legend_data&quot;),x=t(&quot;./style&quot;),b=t(&quot;./helpers&quot;);function _(t,e,r,n,i){var a=r.data()[0][0].trace,l={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a._expandedIndex,data:t.data,layout:t.layout,frames:t._transitionData._frames,config:t._context,fullData:t._fullData,fullLayout:t._fullLayout};if(a._group&amp;&amp;(l.group=a._group),o.traceIs(a,&quot;pie-like&quot;)&amp;&amp;(l.label=r.datum()[0].label),!1!==s.triggerHandler(t,&quot;plotly_legendclick&quot;,l))if(1===n)e._clickTimeout=setTimeout((function(){t._fullLayout&amp;&amp;h(r,t,n)}),t._context.doubleClickDelay);else if(2===n){e._clickTimeout&amp;&amp;clearTimeout(e._clickTimeout),t._legendMouseDownTime=0,!1!==s.triggerHandler(t,&quot;plotly_legenddoubleclick&quot;,l)&amp;&amp;h(r,t,n)}}function w(t,e,r){var n,a,s=t.data()[0][0],l=s.trace,u=o.traceIs(l,&quot;pie-like&quot;),h=!r._inHover&amp;&amp;e._context.edits.legendText&amp;&amp;!u,d=r._maxNameLength;s.groupTitle?(n=s.groupTitle.text,a=s.groupTitle.font):(a=r.font,r.entries?n=s.text:(n=u?s.label:l.name,l._meta&amp;&amp;(n=i.templateString(n,l._meta))));var m=i.ensureSingle(t,&quot;text&quot;,&quot;legendtext&quot;);m.attr(&quot;text-anchor&quot;,&quot;start&quot;).call(c.font,a).text(h?T(n,d):n);var g=r.itemwidth+2*p.itemGap;f.positionText(m,g,0),h?m.call(f.makeEditable,{gd:e,text:n}).call(A,t,e,r).on(&quot;edit&quot;,(function(n){this.text(T(n,d)).call(A,t,e,r);var a=s.trace._fullInput||{},c={};if(o.hasTransform(a,&quot;groupby&quot;)){var u=o.getTransformIndices(a,&quot;groupby&quot;),f=u[u.length-1],h=i.keyedContainer(a,&quot;transforms[&quot;+f+&quot;].styles&quot;,&quot;target&quot;,&quot;value.name&quot;);h.set(s.trace._group,n),c=h.constructUpdate()}else c.name=n;return o.call(&quot;_guiRestyle&quot;,e,c,l.index)})):A(m,t,e,r)}function T(t,e){var r=Math.max(4,e);if(t&amp;&amp;t.trim().length&gt;=r/2)return t;for(var n=r-(t=t||&quot;&quot;).length;n&gt;0;n--)t+=&quot; &quot;;return t}function k(t,e){var r,a=e._context.doubleClickDelay,o=1,s=i.ensureSingle(t,&quot;rect&quot;,&quot;legendtoggle&quot;,(function(t){e._context.staticPlot||t.style(&quot;cursor&quot;,&quot;pointer&quot;).attr(&quot;pointer-events&quot;,&quot;all&quot;),t.call(u.fill,&quot;rgba(0,0,0,0)&quot;)}));e._context.staticPlot||(s.on(&quot;mousedown&quot;,(function(){(r=(new Date).getTime())-e._legendMouseDownTime&lt;a?o+=1:(o=1,e._legendMouseDownTime=r)})),s.on(&quot;mouseup&quot;,(function(){if(!e._dragged&amp;&amp;!e._editing){var r=e._fullLayout.legend;(new Date).getTime()-e._legendMouseDownTime&gt;a&amp;&amp;(o=Math.max(o-1,1)),_(e,r,t,o,n.event)}})))}function A(t,e,r,n,i){n._inHover&amp;&amp;t.attr(&quot;data-notex&quot;,!0),f.convertToTspans(t,r,(function(){!function(t,e,r,n){var i=t.data()[0][0];if(!r._inHover&amp;&amp;i&amp;&amp;!i.trace.showlegend)return void t.remove();var a=t.select(&quot;g[class*=math-group]&quot;),o=a.node();r||(r=e._fullLayout.legend);var s,l=r.borderwidth;s=1===n?r.title.font:i.groupTitle?i.groupTitle.font:r.font;var u,h,d=s.size*m;if(o){var g=c.bBox(o);u=g.height,h=g.width,1===n?c.setTranslate(a,l,l+.75*u):c.setTranslate(a,0,.25*u)}else{var v=t.select(1===n?&quot;.legendtitletext&quot;:&quot;.legendtext&quot;),y=f.lineCount(v),x=v.node();if(u=d*y,h=x?c.bBox(x).width:0,1===n)&quot;left&quot;===r.title.side&amp;&amp;(h+=2*p.itemGap),f.positionText(v,l+p.titlePad,l+d);else{var b=2*p.itemGap+r.itemwidth;i.groupTitle&amp;&amp;(b=p.itemGap,h-=r.itemwidth),f.positionText(v,b,-d*((y-1)/2-.3))}}1===n?(r._titleWidth=h,r._titleHeight=u):(i.lineHeight=d,i.height=Math.max(u,16)+3,i.width=h)}(e,r,n,i)}))}function M(t){return i.isRightAnchor(t)?&quot;right&quot;:i.isCenterAnchor(t)?&quot;center&quot;:&quot;left&quot;}function S(t){return i.isBottomAnchor(t)?&quot;bottom&quot;:i.isMiddleAnchor(t)?&quot;middle&quot;:&quot;top&quot;}e.exports=function(t,e){return e||(e=t._fullLayout.legend||{}),function(t,e){var r,s,f=t._fullLayout,h=&quot;legend&quot;+f._uid,d=e._inHover;d?(r=e.layer,h+=&quot;-hover&quot;):r=f._infolayer;if(!r)return;t._legendMouseDownTime||(t._legendMouseDownTime=0);if(d){if(!e.entries)return;s=y(e.entries,e)}else{if(!t.calcdata)return;s=f.showlegend&amp;&amp;y(t.calcdata,e)}var m=f.hiddenlabels||[];if(!(d||f.showlegend&amp;&amp;s.length))return r.selectAll(&quot;.legend&quot;).remove(),f._topdefs.select(&quot;#&quot;+h).remove(),a.autoMargin(t,&quot;legend&quot;);var T=i.ensureSingle(r,&quot;g&quot;,&quot;legend&quot;,(function(t){d||t.attr(&quot;pointer-events&quot;,&quot;all&quot;)})),E=i.ensureSingleById(f._topdefs,&quot;clipPath&quot;,h,(function(t){t.append(&quot;rect&quot;)})),L=i.ensureSingle(T,&quot;rect&quot;,&quot;bg&quot;,(function(t){t.attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)}));L.call(u.stroke,e.bordercolor).call(u.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;);var C=i.ensureSingle(T,&quot;g&quot;,&quot;scrollbox&quot;),P=e.title;if(e._titleWidth=0,e._titleHeight=0,P.text){var I=i.ensureSingle(C,&quot;text&quot;,&quot;legendtitletext&quot;);I.attr(&quot;text-anchor&quot;,&quot;start&quot;).call(c.font,P.font).text(P.text),A(I,C,t,e,1)}else C.selectAll(&quot;.legendtitletext&quot;).remove();var O=i.ensureSingle(T,&quot;rect&quot;,&quot;scrollbar&quot;,(function(t){t.attr(p.scrollBarEnterAttrs).call(u.fill,p.scrollBarColor)})),z=C.selectAll(&quot;g.groups&quot;).data(s);z.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;groups&quot;),z.exit().remove();var D=z.selectAll(&quot;g.traces&quot;).data(i.identity);D.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;traces&quot;),D.exit().remove(),D.style(&quot;opacity&quot;,(function(t){var e=t[0].trace;return o.traceIs(e,&quot;pie-like&quot;)?-1!==m.indexOf(t[0].label)?.5:1:&quot;legendonly&quot;===e.visible?.5:1})).each((function(){n.select(this).call(w,t,e)})).call(x,t,e).each((function(){d||n.select(this).call(k,t)})),i.syncOrAsync([a.previousPromises,function(){return function(t,e,r,i){var a=t._fullLayout;i||(i=a.legend);var o=a._size,s=b.isVertical(i),l=b.isGrouped(i),u=i.borderwidth,f=2*u,h=p.itemGap,d=i.itemwidth+2*h,m=2*(u+h),g=S(i),v=i.y&lt;0||0===i.y&amp;&amp;&quot;top&quot;===g,y=i.y&gt;1||1===i.y&amp;&amp;&quot;bottom&quot;===g,x=i.tracegroupgap;i._maxHeight=Math.max(v||y?a.height/2:o.h,30);var _=0;i._width=0,i._height=0;var w=function(t){var e=0,r=0,n=t.title.side;n&amp;&amp;(-1!==n.indexOf(&quot;left&quot;)&amp;&amp;(e=t._titleWidth),-1!==n.indexOf(&quot;top&quot;)&amp;&amp;(r=t._titleHeight));return[e,r]}(i);if(s)r.each((function(t){var e=t[0].height;c.setTranslate(this,u+w[0],u+w[1]+i._height+e/2+h),i._height+=e,i._width=Math.max(i._width,t[0].width)})),_=d+i._width,i._width+=h+d+f,i._height+=m,l&amp;&amp;(e.each((function(t,e){c.setTranslate(this,0,e*i.tracegroupgap)})),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var T=M(i),k=i.x&lt;0||0===i.x&amp;&amp;&quot;right&quot;===T,A=i.x&gt;1||1===i.x&amp;&amp;&quot;left&quot;===T,E=y||v,L=a.width/2;i._maxWidth=Math.max(k?E&amp;&amp;&quot;left&quot;===T?o.l+o.w:L:A?E&amp;&amp;&quot;right&quot;===T?o.r+o.w:L:o.w,2*d);var C=0,P=0;r.each((function(t){var e=t[0].width+d;C=Math.max(C,e),P+=e})),_=null;var I=0;if(l){var O=0,z=0,D=0;e.each((function(){var t=0,e=0;n.select(this).selectAll(&quot;g.traces&quot;).each((function(r){var n=r[0].width,i=r[0].height;c.setTranslate(this,w[0],w[1]+u+h+i/2+e),e+=i,t=Math.max(t,d+n)})),O=Math.max(O,e);var r=t+h;z&gt;0&amp;&amp;r+u+z&gt;i._maxWidth&amp;&amp;(I=Math.max(I,z),z=0,D+=O+x,O=e),c.setTranslate(this,z,D),z+=r})),i._width=Math.max(I,z)+u,i._height=D+O+m}else{var R=r.size(),F=P+f+(R-1)*h&lt;i._maxWidth,B=0,N=0,j=0,U=0;r.each((function(t){var e=t[0].height,r=d+t[0].width,n=(F?r:C)+h;n+u+N-h&gt;=i._maxWidth&amp;&amp;(I=Math.max(I,U),N=0,j+=B,i._height+=B,B=0),c.setTranslate(this,w[0]+u+N,w[1]+u+j+e/2+h),U=N+r+h,N+=n,B=Math.max(B,e)})),F?(i._width=N+f,i._height=B+m):(i._width=Math.max(I,U)+f,i._height+=B+m)}}i._width=Math.ceil(Math.max(i._width+w[0],i._titleWidth+2*(u+p.titlePad))),i._height=Math.ceil(Math.max(i._height+w[1],i._titleHeight+2*(u+p.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var V=t._context.edits,H=V.legendText||V.legendPosition;r.each((function(t){var e=n.select(this).select(&quot;.legendtoggle&quot;),r=t[0].height,i=H?d:_||d+t[0].width;s||(i+=h/2),c.setRect(e,0,-r/2,i,r)}))}(t,z,D,e)},function(){var s,u,m,y,x=f._size,b=e.borderwidth;if(!d){if(function(t){var e=t._fullLayout.legend,r=M(e),n=S(e);return a.autoMargin(t,&quot;legend&quot;,{x:e.x,y:e.y,l:e._width*g[r],r:e._width*v[r],b:e._effHeight*v[n],t:e._effHeight*g[n]})}(t))return;var w=x.l+x.w*e.x-g[M(e)]*e._width,k=x.t+x.h*(1-e.y)-g[S(e)]*e._effHeight;if(f.margin.autoexpand){var A=w,P=k;w=i.constrain(w,0,f.width-e._width),k=i.constrain(k,0,f.height-e._effHeight),w!==A&amp;&amp;i.log(&quot;Constrain legend.x to make legend fit inside graph&quot;),k!==P&amp;&amp;i.log(&quot;Constrain legend.y to make legend fit inside graph&quot;)}c.setTranslate(T,w,k)}if(O.on(&quot;.drag&quot;,null),T.on(&quot;wheel&quot;,null),d||e._height&lt;=e._maxHeight||t._context.staticPlot){var I=e._effHeight;d&amp;&amp;(I=e._height),L.attr({width:e._width-b,height:I-b,x:b/2,y:b/2}),c.setTranslate(C,0,0),E.select(&quot;rect&quot;).attr({width:e._width-2*b,height:I-2*b,x:b,y:b}),c.setClipUrl(C,h,t),c.setRect(O,0,0,0,0),delete e._scrollY}else{var z,D,R,F=Math.max(p.scrollBarMinHeight,e._effHeight*e._effHeight/e._height),B=e._effHeight-F-2*p.scrollBarMargin,N=e._height-e._effHeight,j=B/N,U=Math.min(e._scrollY||0,N);L.attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-b,x:b/2,y:b/2}),E.select(&quot;rect&quot;).attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-2*b,x:b,y:b+U}),c.setClipUrl(C,h,t),q(U,F,j),T.on(&quot;wheel&quot;,(function(){q(U=i.constrain(e._scrollY+n.event.deltaY/B*N,0,N),F,j),0!==U&amp;&amp;U!==N&amp;&amp;n.event.preventDefault()}));var V=n.behavior.drag().on(&quot;dragstart&quot;,(function(){var t=n.event.sourceEvent;z=&quot;touchstart&quot;===t.type?t.changedTouches[0].clientY:t.clientY,R=U})).on(&quot;drag&quot;,(function(){var t=n.event.sourceEvent;2===t.buttons||t.ctrlKey||(D=&quot;touchmove&quot;===t.type?t.changedTouches[0].clientY:t.clientY,q(U=function(t,e,r){var n=(r-e)/j+t;return i.constrain(n,0,N)}(R,z,D),F,j))}));O.call(V);var H=n.behavior.drag().on(&quot;dragstart&quot;,(function(){var t=n.event.sourceEvent;&quot;touchstart&quot;===t.type&amp;&amp;(z=t.changedTouches[0].clientY,R=U)})).on(&quot;drag&quot;,(function(){var t=n.event.sourceEvent;&quot;touchmove&quot;===t.type&amp;&amp;(D=t.changedTouches[0].clientY,q(U=function(t,e,r){var n=(e-r)/j+t;return i.constrain(n,0,N)}(R,z,D),F,j))}));C.call(H)}function q(r,n,i){e._scrollY=t._fullLayout.legend._scrollY=r,c.setTranslate(C,0,-r),c.setRect(O,e._width,p.scrollBarMargin+r*i,p.scrollBarWidth,n),E.select(&quot;rect&quot;).attr(&quot;y&quot;,b+r)}t._context.edits.legendPosition&amp;&amp;(T.classed(&quot;cursor-move&quot;,!0),l.init({element:T.node(),gd:t,prepFn:function(){var t=c.getTranslate(T);m=t.x,y=t.y},moveFn:function(t,r){var n=m+t,i=y+r;c.setTranslate(T,n,i),s=l.align(n,0,x.l,x.l+x.w,e.xanchor),u=l.align(i,0,x.t+x.h,x.t,e.yanchor)},doneFn:function(){void 0!==s&amp;&amp;void 0!==u&amp;&amp;o.call(&quot;_guiRelayout&quot;,t,{&quot;legend.x&quot;:s,&quot;legend.y&quot;:u})},clickFn:function(e,n){var i=r.selectAll(&quot;g.traces&quot;).filter((function(){var t=this.getBoundingClientRect();return n.clientX&gt;=t.left&amp;&amp;n.clientX&lt;=t.right&amp;&amp;n.clientY&gt;=t.top&amp;&amp;n.clientY&lt;=t.bottom}));i.size()&gt;0&amp;&amp;_(t,T,i,e,n)}}))}],t)}(t,e)}},{&quot;../../constants/alignment&quot;:471,&quot;../../lib&quot;:503,&quot;../../lib/events&quot;:492,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plots/plots&quot;:619,&quot;../../registry&quot;:638,&quot;../color&quot;:366,&quot;../dragelement&quot;:385,&quot;../drawing&quot;:388,&quot;./constants&quot;:417,&quot;./get_legend_data&quot;:420,&quot;./handle_click&quot;:421,&quot;./helpers&quot;:422,&quot;./style&quot;:424,&quot;@plotly/d3&quot;:58}],420:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./helpers&quot;);e.exports=function(t,e){var r,a,o=e._inHover,s=i.isGrouped(e),l=i.isReversed(e),c={},u=[],f=!1,h={},p=0,d=0;function m(t,r){if(&quot;&quot;!==t&amp;&amp;i.isGrouped(e))-1===u.indexOf(t)?(u.push(t),f=!0,c[t]=[r]):c[t].push(r);else{var n=&quot;~~i&quot;+p;u.push(n),c[n]=[r],p++}}for(r=0;r&lt;t.length;r++){var g=t[r],v=g[0],y=v.trace,x=y.legendgroup;if(o||y.visible&amp;&amp;y.showlegend)if(n.traceIs(y,&quot;pie-like&quot;))for(h[x]||(h[x]={}),a=0;a&lt;g.length;a++){var b=g[a].label;h[x][b]||(m(x,{label:b,color:g[a].color,i:g[a].i,trace:y,pts:g[a].pts}),h[x][b]=!0,d=Math.max(d,(b||&quot;&quot;).length))}else m(x,v),d=Math.max(d,(y.name||&quot;&quot;).length)}if(!u.length)return[];var _=!f||!s,w=[];for(r=0;r&lt;u.length;r++){var T=c[u[r]];_?w.push(T[0]):w.push(T)}for(_&amp;&amp;(w=[w]),r=0;r&lt;w.length;r++){var k=1/0;for(a=0;a&lt;w[r].length;a++){var A=w[r][a].trace.legendrank;k&gt;A&amp;&amp;(k=A)}w[r][0]._groupMinRank=k,w[r][0]._preGroupSort=r}var M=function(t,e){return t.trace.legendrank-e.trace.legendrank||t._preSort-e._preSort};for(w.forEach((function(t,e){t[0]._preGroupSort=e})),w.sort((function(t,e){return t[0]._groupMinRank-e[0]._groupMinRank||t[0]._preGroupSort-e[0]._preGroupSort})),r=0;r&lt;w.length;r++){w[r].forEach((function(t,e){t._preSort=e})),w[r].sort(M);var S=w[r][0].trace,E=null;for(a=0;a&lt;w[r].length;a++){var L=w[r][a].trace.legendgrouptitle;if(L&amp;&amp;L.text){E=L,o&amp;&amp;(L.font=e._groupTitleFont);break}}if(l&amp;&amp;w[r].reverse(),E){var C=!1;for(a=0;a&lt;w[r].length;a++)if(n.traceIs(w[r][a].trace,&quot;pie-like&quot;)){C=!0;break}w[r].unshift({i:-1,groupTitle:E,noClick:C,trace:{showlegend:S.showlegend,legendgroup:S.legendgroup,visible:&quot;toggleitem&quot;===e.groupclick||S.visible}})}for(a=0;a&lt;w[r].length;a++)w[r][a]=[w[r][a]]}return e._lgroupsLength=w.length,e._maxNameLength=d,w}},{&quot;../../registry&quot;:638,&quot;./helpers&quot;:422}],421:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=!0;e.exports=function(t,e,r){var o=e._fullLayout;if(!e._dragged&amp;&amp;!e._editing){var s,l=o.legend.itemclick,c=o.legend.itemdoubleclick,u=o.legend.groupclick;if(1===r&amp;&amp;&quot;toggle&quot;===l&amp;&amp;&quot;toggleothers&quot;===c&amp;&amp;a&amp;&amp;e.data&amp;&amp;e._context.showTips?(n.notifier(n._(e,&quot;Double-click on legend to isolate one trace&quot;),&quot;long&quot;),a=!1):a=!1,1===r?s=l:2===r&amp;&amp;(s=c),s){var f=&quot;togglegroup&quot;===u,h=o.hiddenlabels?o.hiddenlabels.slice():[],p=t.data()[0][0];if(!p.groupTitle||!p.noClick){var d,m,g,v,y,x=e._fullData,b=p.trace,_=b.legendgroup,w={},T=[],k=[],A=[];if(i.traceIs(b,&quot;pie-like&quot;)){var M=p.label,S=h.indexOf(M);&quot;toggle&quot;===s?-1===S?h.push(M):h.splice(S,1):&quot;toggleothers&quot;===s&amp;&amp;(h=[],e.calcdata[0].forEach((function(t){M!==t.label&amp;&amp;h.push(t.label)})),e._fullLayout.hiddenlabels&amp;&amp;e._fullLayout.hiddenlabels.length===h.length&amp;&amp;-1===S&amp;&amp;(h=[])),i.call(&quot;_guiRelayout&quot;,e,&quot;hiddenlabels&quot;,h)}else{var E,L=_&amp;&amp;_.length,C=[];if(L)for(d=0;d&lt;x.length;d++)(E=x[d]).visible&amp;&amp;E.legendgroup===_&amp;&amp;C.push(d);if(&quot;toggle&quot;===s){var P;switch(b.visible){case!0:P=&quot;legendonly&quot;;break;case!1:P=!1;break;case&quot;legendonly&quot;:P=!0}if(L)if(f)for(d=0;d&lt;x.length;d++)!1!==x[d].visible&amp;&amp;x[d].legendgroup===_&amp;&amp;j(x[d],P);else j(b,P);else j(b,P)}else if(&quot;toggleothers&quot;===s){var I,O,z,D,R=!0;for(d=0;d&lt;x.length;d++)if(I=x[d]===b,z=!0!==x[d].showlegend,!(I||z||(O=L&amp;&amp;x[d].legendgroup===_)||!0!==x[d].visible||i.traceIs(x[d],&quot;notLegendIsolatable&quot;))){R=!1;break}for(d=0;d&lt;x.length;d++)if(!1!==x[d].visible&amp;&amp;!i.traceIs(x[d],&quot;notLegendIsolatable&quot;))switch(b.visible){case&quot;legendonly&quot;:j(x[d],!0);break;case!0:D=!!R||&quot;legendonly&quot;,I=x[d]===b,z=!0!==x[d].showlegend&amp;&amp;!x[d].legendgroup,O=I||L&amp;&amp;x[d].legendgroup===_,j(x[d],!(!O&amp;&amp;!z)||D)}}for(d=0;d&lt;k.length;d++)if(g=k[d]){var F=g.constructUpdate(),B=Object.keys(F);for(m=0;m&lt;B.length;m++)v=B[m],(w[v]=w[v]||[])[A[d]]=F[v]}for(y=Object.keys(w),d=0;d&lt;y.length;d++)for(v=y[d],m=0;m&lt;T.length;m++)w[v].hasOwnProperty(m)||(w[v][m]=void 0);i.call(&quot;_guiRestyle&quot;,e,w,T)}}}}function N(t,e,r){var n=T.indexOf(t),i=w[e];return i||(i=w[e]=[]),-1===T.indexOf(t)&amp;&amp;(T.push(t),n=T.length-1),i[n]=r,n}function j(t,e){if(!p.groupTitle||f){var r=t._fullInput;if(i.hasTransform(r,&quot;groupby&quot;)){var a=k[r.index];if(!a){var o=i.getTransformIndices(r,&quot;groupby&quot;),s=o[o.length-1];a=n.keyedContainer(r,&quot;transforms[&quot;+s+&quot;].styles&quot;,&quot;target&quot;,&quot;value.visible&quot;),k[r.index]=a}var l=a.get(t._group);void 0===l&amp;&amp;(l=!0),!1!==l&amp;&amp;a.set(t._group,e),A[r.index]=N(r.index,&quot;visible&quot;,!1!==r.visible)}else{var c=!1!==r.visible&amp;&amp;e;N(r.index,&quot;visible&quot;,c)}}}}},{&quot;../../lib&quot;:503,&quot;../../registry&quot;:638}],422:[function(t,e,r){&quot;use strict&quot;;r.isGrouped=function(t){return-1!==(t.traceorder||&quot;&quot;).indexOf(&quot;grouped&quot;)},r.isVertical=function(t){return&quot;h&quot;!==t.orientation},r.isReversed=function(t){return-1!==(t.traceorder||&quot;&quot;).indexOf(&quot;reversed&quot;)}},{}],423:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;legend&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;),style:t(&quot;./style&quot;)}},{&quot;./attributes&quot;:416,&quot;./defaults&quot;:418,&quot;./draw&quot;:419,&quot;./style&quot;:424}],424:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.strTranslate,s=t(&quot;../drawing&quot;),l=t(&quot;../color&quot;),c=t(&quot;../colorscale/helpers&quot;).extractOpts,u=t(&quot;../../traces/scatter/subtypes&quot;),f=t(&quot;../../traces/pie/style_one&quot;),h=t(&quot;../../traces/pie/helpers&quot;).castOption,p=t(&quot;./constants&quot;);function d(t,e){return(e?&quot;radial&quot;:&quot;horizontal&quot;)+(t?&quot;&quot;:&quot;reversed&quot;)}function m(t){var e=t[0].trace,r=e.contours,n=u.hasLines(e),i=u.hasMarkers(e),a=e.visible&amp;&amp;e.fill&amp;&amp;&quot;none&quot;!==e.fill,o=!1,s=!1;if(r){var l=r.coloring;&quot;lines&quot;===l?o=!0:n=&quot;none&quot;===l||&quot;heatmap&quot;===l||r.showlines,&quot;constraint&quot;===r.type?a=&quot;=&quot;!==r._operation:&quot;fill&quot;!==l&amp;&amp;&quot;heatmap&quot;!==l||(s=!0)}return{showMarker:i,showLine:n,showFill:a,showGradientLine:o,showGradientFill:s,anyLine:n||o,anyFill:a||s}}function g(t,e,r){return t&amp;&amp;a.isArrayOrTypedArray(t)?e:t&gt;r?r:t}e.exports=function(t,e,r){var v=e._fullLayout;r||(r=v.legend);var y=&quot;constant&quot;===r.itemsizing,x=r.itemwidth,b=(x+2*p.itemGap)/2,_=o(b,0),w=function(t,e,r,n){var i;if(t+1)i=t;else{if(!(e&amp;&amp;e.width&gt;0))return 0;i=e.width}return y?n:Math.min(i,r)};function T(t,a,o){var u=t[0].trace,f=u.marker||{},h=f.line||{},p=o?u.visible&amp;&amp;u.type===o:i.traceIs(u,&quot;bar&quot;),d=n.select(a).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend&quot;+o).data(p?[t]:[]);d.enter().append(&quot;path&quot;).classed(&quot;legend&quot;+o,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,_),d.exit().remove(),d.each((function(t){var i=n.select(this),a=t[0],o=w(a.mlw,f.line,5,2);i.style(&quot;stroke-width&quot;,o+&quot;px&quot;);var p=a.mcc;if(!r._inHover&amp;&amp;&quot;mc&quot;in a){var d=c(f),m=d.mid;void 0===m&amp;&amp;(m=(d.max+d.min)/2),p=s.tryColorscale(f,&quot;&quot;)(m)}var v=p||a.mc||f.color,y=f.pattern,x=y&amp;&amp;s.getPatternAttr(y.shape,0,&quot;&quot;);if(x){var b=s.getPatternAttr(y.bgcolor,0,null),_=s.getPatternAttr(y.fgcolor,0,null),T=y.fgopacity,k=g(y.size,8,10),A=g(y.solidity,.5,1),M=&quot;legend-&quot;+u.uid;i.call(s.pattern,&quot;legend&quot;,e,M,x,k,A,p,y.fillmode,b,_,T)}else i.call(l.fill,v);o&amp;&amp;l.stroke(i,a.mlc||h.color)}))}function k(t,e,r){var o=t[0],s=o.trace,l=r?s.visible&amp;&amp;s.type===r:i.traceIs(s,r),c=n.select(e).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend&quot;+r).data(l?[t]:[]);if(c.enter().append(&quot;path&quot;).classed(&quot;legend&quot;+r,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,_),c.exit().remove(),c.size()){var u=(s.marker||{}).line,p=w(h(u.width,o.pts),u,5,2),d=a.minExtend(s,{marker:{line:{width:p}}});d.marker.line.color=u.color;var m=a.minExtend(o,{trace:d});f(c,m,d)}}t.each((function(t){var e=n.select(this),i=a.ensureSingle(e,&quot;g&quot;,&quot;layers&quot;);i.style(&quot;opacity&quot;,t[0].trace.opacity);var s=r.valign,l=t[0].lineHeight,c=t[0].height;if(&quot;middle&quot;!==s&amp;&amp;l&amp;&amp;c){var u={top:1,bottom:-1}[s]*(.5*(l-c+3));i.attr(&quot;transform&quot;,o(0,u))}else i.attr(&quot;transform&quot;,null);i.selectAll(&quot;g.legendfill&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendfill&quot;,!0),i.selectAll(&quot;g.legendlines&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendlines&quot;,!0);var f=i.selectAll(&quot;g.legendsymbols&quot;).data([t]);f.enter().append(&quot;g&quot;).classed(&quot;legendsymbols&quot;,!0),f.selectAll(&quot;g.legendpoints&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendpoints&quot;,!0)})).each((function(t){var r,i=t[0].trace,o=[];if(i.visible)switch(i.type){case&quot;histogram2d&quot;:case&quot;heatmap&quot;:o=[[&quot;M-15,-2V4H15V-2Z&quot;]],r=!0;break;case&quot;choropleth&quot;:case&quot;choroplethmapbox&quot;:o=[[&quot;M-6,-6V6H6V-6Z&quot;]],r=!0;break;case&quot;densitymapbox&quot;:o=[[&quot;M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0&quot;]],r=&quot;radial&quot;;break;case&quot;cone&quot;:o=[[&quot;M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z&quot;],[&quot;M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z&quot;],[&quot;M-6,-2 A2,2 0 0,0 -6,2 L6,0Z&quot;]],r=!1;break;case&quot;streamtube&quot;:o=[[&quot;M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z&quot;],[&quot;M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z&quot;],[&quot;M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z&quot;]],r=!1;break;case&quot;surface&quot;:o=[[&quot;M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z&quot;],[&quot;M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z&quot;]],r=!0;break;case&quot;mesh3d&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6H6L0,6Z&quot;]],r=!1;break;case&quot;volume&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6H6L0,6Z&quot;]],r=!0;break;case&quot;isosurface&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6 A12,24 0 0,0 6,-6 L0,6Z&quot;]],r=!1}var u=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend3dandfriends&quot;).data(o);u.enter().append(&quot;path&quot;).classed(&quot;legend3dandfriends&quot;,!0).attr(&quot;transform&quot;,_).style(&quot;stroke-miterlimit&quot;,1),u.exit().remove(),u.each((function(t,o){var u,f=n.select(this),h=c(i),p=h.colorscale,m=h.reversescale;if(p){if(!r){var g=p.length;u=0===o?p[m?g-1:0][1]:1===o?p[m?0:g-1][1]:p[Math.floor((g-1)/2)][1]}}else{var v=i.vertexcolor||i.facecolor||i.color;u=a.isArrayOrTypedArray(v)?v[o]||v[0]:v}f.attr(&quot;d&quot;,t[0]),u?f.call(l.fill,u):f.call((function(t){if(t.size()){var n=&quot;legendfill-&quot;+i.uid;s.gradient(t,e,n,d(m,&quot;radial&quot;===r),p,&quot;fill&quot;)}}))}))})).each((function(t){var e=t[0].trace,r=&quot;waterfall&quot;===e.type;if(t[0]._distinct&amp;&amp;r){var i=t[0].trace[t[0].dir].marker;return t[0].mc=i.color,t[0].mlw=i.line.width,t[0].mlc=i.line.color,T(t,this,&quot;waterfall&quot;)}var a=[];e.visible&amp;&amp;r&amp;&amp;(a=t[0].hasTotals?[[&quot;increasing&quot;,&quot;M-6,-6V6H0Z&quot;],[&quot;totals&quot;,&quot;M6,6H0L-6,-6H-0Z&quot;],[&quot;decreasing&quot;,&quot;M6,6V-6H0Z&quot;]]:[[&quot;increasing&quot;,&quot;M-6,-6V6H6Z&quot;],[&quot;decreasing&quot;,&quot;M6,6V-6H-6Z&quot;]]);var o=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendwaterfall&quot;).data(a);o.enter().append(&quot;path&quot;).classed(&quot;legendwaterfall&quot;,!0).attr(&quot;transform&quot;,_).style(&quot;stroke-miterlimit&quot;,1),o.exit().remove(),o.each((function(t){var r=n.select(this),i=e[t[0]].marker,a=w(void 0,i.line,5,2);r.attr(&quot;d&quot;,t[1]).style(&quot;stroke-width&quot;,a+&quot;px&quot;).call(l.fill,i.color),a&amp;&amp;r.call(l.stroke,i.line.color)}))})).each((function(t){T(t,this,&quot;funnel&quot;)})).each((function(t){T(t,this)})).each((function(t){var r=t[0].trace,o=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendbox&quot;).data(r.visible&amp;&amp;i.traceIs(r,&quot;box-violin&quot;)?[t]:[]);o.enter().append(&quot;path&quot;).classed(&quot;legendbox&quot;,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,_),o.exit().remove(),o.each((function(){var t=n.select(this);if(&quot;all&quot;!==r.boxpoints&amp;&amp;&quot;all&quot;!==r.points||0!==l.opacity(r.fillcolor)||0!==l.opacity((r.line||{}).color)){var i=w(void 0,r.line,5,2);t.style(&quot;stroke-width&quot;,i+&quot;px&quot;).call(l.fill,r.fillcolor),i&amp;&amp;l.stroke(t,r.line.color)}else{var c=a.minExtend(r,{marker:{size:y?12:a.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:&quot;diameter&quot;}});o.call(s.pointStyle,c,e)}}))})).each((function(t){k(t,this,&quot;funnelarea&quot;)})).each((function(t){k(t,this,&quot;pie&quot;)})).each((function(t){var r,i,o=m(t),l=o.showFill,f=o.showLine,h=o.showGradientLine,p=o.showGradientFill,g=o.anyFill,v=o.anyLine,y=t[0],b=y.trace,_=c(b),T=_.colorscale,k=_.reversescale,A=u.hasMarkers(b)||!g?&quot;M5,0&quot;:v?&quot;M5,-2&quot;:&quot;M5,-3&quot;,M=n.select(this),S=M.select(&quot;.legendfill&quot;).selectAll(&quot;path&quot;).data(l||p?[t]:[]);if(S.enter().append(&quot;path&quot;).classed(&quot;js-fill&quot;,!0),S.exit().remove(),S.attr(&quot;d&quot;,A+&quot;h&quot;+x+&quot;v6h-&quot;+x+&quot;z&quot;).call(l?s.fillGroupStyle:function(t){if(t.size()){var r=&quot;legendfill-&quot;+b.uid;s.gradient(t,e,r,d(k),T,&quot;fill&quot;)}}),f||h){var E=w(void 0,b.line,10,5);i=a.minExtend(b,{line:{width:E}}),r=[a.minExtend(y,{trace:i})]}var L=M.select(&quot;.legendlines&quot;).selectAll(&quot;path&quot;).data(f||h?[r]:[]);L.enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0),L.exit().remove(),L.attr(&quot;d&quot;,A+(h?&quot;l&quot;+x+&quot;,0.0001&quot;:&quot;h&quot;+x)).call(f?s.lineGroupStyle:function(t){if(t.size()){var r=&quot;legendline-&quot;+b.uid;s.lineGroupStyle(t),s.gradient(t,e,r,d(k),T,&quot;stroke&quot;)}})})).each((function(t){var r,i,o=m(t),l=o.anyFill,c=o.anyLine,f=o.showLine,h=o.showMarker,p=t[0],d=p.trace,g=!h&amp;&amp;!c&amp;&amp;!l&amp;&amp;u.hasText(d);function v(t,e,r,n){var i=a.nestedProperty(d,t).get(),o=a.isArrayOrTypedArray(i)&amp;&amp;e?e(i):i;if(y&amp;&amp;o&amp;&amp;void 0!==n&amp;&amp;(o=n),r){if(o&lt;r[0])return r[0];if(o&gt;r[1])return r[1]}return o}function x(t){return p._distinct&amp;&amp;p.index&amp;&amp;t[p.index]?t[p.index]:t[0]}if(h||g||f){var b={},w={};if(h){b.mc=v(&quot;marker.color&quot;,x),b.mx=v(&quot;marker.symbol&quot;,x),b.mo=v(&quot;marker.opacity&quot;,a.mean,[.2,1]),b.mlc=v(&quot;marker.line.color&quot;,x),b.mlw=v(&quot;marker.line.width&quot;,a.mean,[0,5],2),w.marker={sizeref:1,sizemin:1,sizemode:&quot;diameter&quot;};var T=v(&quot;marker.size&quot;,a.mean,[2,16],12);b.ms=T,w.marker.size=T}f&amp;&amp;(w.line={width:v(&quot;line.width&quot;,x,[0,10],5)}),g&amp;&amp;(b.tx=&quot;Aa&quot;,b.tp=v(&quot;textposition&quot;,x),b.ts=10,b.tc=v(&quot;textfont.color&quot;,x),b.tf=v(&quot;textfont.family&quot;,x)),r=[a.minExtend(p,b)],(i=a.minExtend(d,w)).selectedpoints=null,i.texttemplate=null}var k=n.select(this).select(&quot;g.legendpoints&quot;),A=k.selectAll(&quot;path.scatterpts&quot;).data(h?r:[]);A.enter().insert(&quot;path&quot;,&quot;:first-child&quot;).classed(&quot;scatterpts&quot;,!0).attr(&quot;transform&quot;,_),A.exit().remove(),A.call(s.pointStyle,i,e),h&amp;&amp;(r[0].mrc=3);var M=k.selectAll(&quot;g.pointtext&quot;).data(g?r:[]);M.enter().append(&quot;g&quot;).classed(&quot;pointtext&quot;,!0).append(&quot;text&quot;).attr(&quot;transform&quot;,_),M.exit().remove(),M.selectAll(&quot;text&quot;).call(s.textPointStyle,i,e)})).each((function(t){var e=t[0].trace,r=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendcandle&quot;).data(e.visible&amp;&amp;&quot;candlestick&quot;===e.type?[t,t]:[]);r.enter().append(&quot;path&quot;).classed(&quot;legendcandle&quot;,!0).attr(&quot;d&quot;,(function(t,e){return e?&quot;M-15,0H-8M-8,6V-6H8Z&quot;:&quot;M15,0H8M8,-6V6H-8Z&quot;})).attr(&quot;transform&quot;,_).style(&quot;stroke-miterlimit&quot;,1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?&quot;increasing&quot;:&quot;decreasing&quot;],o=w(void 0,a.line,5,2);i.style(&quot;stroke-width&quot;,o+&quot;px&quot;).call(l.fill,a.fillcolor),o&amp;&amp;l.stroke(i,a.line.color)}))})).each((function(t){var e=t[0].trace,r=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendohlc&quot;).data(e.visible&amp;&amp;&quot;ohlc&quot;===e.type?[t,t]:[]);r.enter().append(&quot;path&quot;).classed(&quot;legendohlc&quot;,!0).attr(&quot;d&quot;,(function(t,e){return e?&quot;M-15,0H0M-8,-6V0&quot;:&quot;M15,0H0M8,6V0&quot;})).attr(&quot;transform&quot;,_).style(&quot;stroke-miterlimit&quot;,1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?&quot;increasing&quot;:&quot;decreasing&quot;],o=w(void 0,a.line,5,2);i.style(&quot;fill&quot;,&quot;none&quot;).call(s.dashLine,a.line.dash,o),o&amp;&amp;l.stroke(i,a.line.color)}))}))}},{&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;../../traces/pie/helpers&quot;:905,&quot;../../traces/pie/style_one&quot;:911,&quot;../../traces/scatter/subtypes&quot;:951,&quot;../color&quot;:366,&quot;../colorscale/helpers&quot;:377,&quot;../drawing&quot;:388,&quot;./constants&quot;:417,&quot;@plotly/d3&quot;:58}],425:[function(t,e,r){&quot;use strict&quot;;t(&quot;./constants&quot;);e.exports={editType:&quot;modebar&quot;,orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;,editType:&quot;modebar&quot;},bgcolor:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},color:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},activecolor:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},add:{valType:&quot;string&quot;,arrayOk:!0,dflt:&quot;&quot;,editType:&quot;modebar&quot;},remove:{valType:&quot;string&quot;,arrayOk:!0,dflt:&quot;&quot;,editType:&quot;modebar&quot;}}},{&quot;./constants&quot;:427}],426:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../fonts/ploticon&quot;),s=t(&quot;../shapes/draw&quot;).eraseActiveShape,l=t(&quot;../../lib&quot;),c=l._,u=e.exports={};function f(t,e){var r,i,o=e.currentTarget,s=o.getAttribute(&quot;data-attr&quot;),l=o.getAttribute(&quot;data-val&quot;)||!0,c=t._fullLayout,u={},f=a.list(t,null,!0),h=c._cartesianSpikesEnabled;if(&quot;zoom&quot;===s){var p,d=&quot;in&quot;===l?.5:2,m=(1+d)/2,g=(1-d)/2;for(i=0;i&lt;f.length;i++)if(!(r=f[i]).fixedrange)if(p=r._name,&quot;auto&quot;===l)u[p+&quot;.autorange&quot;]=!0;else if(&quot;reset&quot;===l){if(void 0===r._rangeInitial)u[p+&quot;.autorange&quot;]=!0;else{var v=r._rangeInitial.slice();u[p+&quot;.range[0]&quot;]=v[0],u[p+&quot;.range[1]&quot;]=v[1]}void 0!==r._showSpikeInitial&amp;&amp;(u[p+&quot;.showspikes&quot;]=r._showSpikeInitial,&quot;on&quot;!==h||r._showSpikeInitial||(h=&quot;off&quot;))}else{var y=[r.r2l(r.range[0]),r.r2l(r.range[1])],x=[m*y[0]+g*y[1],m*y[1]+g*y[0]];u[p+&quot;.range[0]&quot;]=r.l2r(x[0]),u[p+&quot;.range[1]&quot;]=r.l2r(x[1])}}else&quot;hovermode&quot;!==s||&quot;x&quot;!==l&amp;&amp;&quot;y&quot;!==l||(l=c._isHoriz?&quot;y&quot;:&quot;x&quot;,o.setAttribute(&quot;data-val&quot;,l)),u[s]=l;c._cartesianSpikesEnabled=h,n.call(&quot;_guiRelayout&quot;,t,u)}function h(t,e){for(var r=e.currentTarget,i=r.getAttribute(&quot;data-attr&quot;),a=r.getAttribute(&quot;data-val&quot;)||!0,o=t._fullLayout._subplots.gl3d||[],s={},l=i.split(&quot;.&quot;),c=0;c&lt;o.length;c++)s[o[c]+&quot;.&quot;+l[1]]=a;var u=&quot;pan&quot;===a?a:&quot;zoom&quot;;s.dragmode=u,n.call(&quot;_guiRelayout&quot;,t,s)}function p(t,e){for(var r=e.currentTarget.getAttribute(&quot;data-attr&quot;),i=&quot;resetLastSave&quot;===r,a=&quot;resetDefault&quot;===r,o=t._fullLayout,s=o._subplots.gl3d||[],l={},c=0;c&lt;s.length;c++){var u,f=s[c],h=f+&quot;.camera&quot;,p=f+&quot;.aspectratio&quot;,d=f+&quot;.aspectmode&quot;,m=o[f]._scene;i?(l[h+&quot;.up&quot;]=m.viewInitial.up,l[h+&quot;.eye&quot;]=m.viewInitial.eye,l[h+&quot;.center&quot;]=m.viewInitial.center,u=!0):a&amp;&amp;(l[h+&quot;.up&quot;]=null,l[h+&quot;.eye&quot;]=null,l[h+&quot;.center&quot;]=null,u=!0),u&amp;&amp;(l[p+&quot;.x&quot;]=m.viewInitial.aspectratio.x,l[p+&quot;.y&quot;]=m.viewInitial.aspectratio.y,l[p+&quot;.z&quot;]=m.viewInitial.aspectratio.z,l[d]=m.viewInitial.aspectmode)}n.call(&quot;_guiRelayout&quot;,t,l)}function d(t,e){var r=e.currentTarget,n=r._previousVal,i=t._fullLayout,a=i._subplots.gl3d||[],o=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;],s={},l={};if(n)l=n,r._previousVal=null;else{for(var c=0;c&lt;a.length;c++){var u=a[c],f=i[u],h=u+&quot;.hovermode&quot;;s[h]=f.hovermode,l[h]=!1;for(var p=0;p&lt;3;p++){var d=o[p],m=u+&quot;.&quot;+d+&quot;.showspikes&quot;;l[m]=!1,s[m]=f[d].showspikes}}r._previousVal=s}return l}function m(t,e){for(var r=e.currentTarget,i=r.getAttribute(&quot;data-attr&quot;),a=r.getAttribute(&quot;data-val&quot;)||!0,o=t._fullLayout,s=o._subplots.geo||[],l=0;l&lt;s.length;l++){var c=s[l],u=o[c];if(&quot;zoom&quot;===i){var f=u.projection.scale,h=&quot;in&quot;===a?2*f:.5*f;n.call(&quot;_guiRelayout&quot;,t,c+&quot;.projection.scale&quot;,h)}}&quot;reset&quot;===i&amp;&amp;x(t,&quot;geo&quot;)}function g(t){var e=t._fullLayout;return!e.hovermode&amp;&amp;(e._has(&quot;cartesian&quot;)?e._isHoriz?&quot;y&quot;:&quot;x&quot;:&quot;closest&quot;)}function v(t){var e=g(t);n.call(&quot;_guiRelayout&quot;,t,&quot;hovermode&quot;,e)}function y(t,e){for(var r=e.currentTarget.getAttribute(&quot;data-val&quot;),i=t._fullLayout,a=i._subplots.mapbox||[],o={},s=0;s&lt;a.length;s++){var l=a[s],c=i[l].zoom,u=&quot;in&quot;===r?1.05*c:c/1.05;o[l+&quot;.zoom&quot;]=u}n.call(&quot;_guiRelayout&quot;,t,o)}function x(t,e){for(var r=t._fullLayout,i=r._subplots[e]||[],a={},o=0;o&lt;i.length;o++)for(var s=i[o],l=r[s]._subplot.viewInitial,c=Object.keys(l),u=0;u&lt;c.length;u++){var f=c[u];a[s+&quot;.&quot;+f]=l[f]}n.call(&quot;_guiRelayout&quot;,t,a)}u.toImage={name:&quot;toImage&quot;,title:function(t){var e=(t._context.toImageButtonOptions||{}).format||&quot;png&quot;;return c(t,&quot;png&quot;===e?&quot;Download plot as a png&quot;:&quot;Download plot&quot;)},icon:o.camera,click:function(t){var e=t._context.toImageButtonOptions,r={format:e.format||&quot;png&quot;};l.notifier(c(t,&quot;Taking snapshot - this may take a few seconds&quot;),&quot;long&quot;),&quot;svg&quot;!==r.format&amp;&amp;l.isIE()&amp;&amp;(l.notifier(c(t,&quot;IE only supports svg.  Changing format to svg.&quot;),&quot;long&quot;),r.format=&quot;svg&quot;),[&quot;filename&quot;,&quot;width&quot;,&quot;height&quot;,&quot;scale&quot;].forEach((function(t){t in e&amp;&amp;(r[t]=e[t])})),n.call(&quot;downloadImage&quot;,t,r).then((function(e){l.notifier(c(t,&quot;Snapshot succeeded&quot;)+&quot; - &quot;+e,&quot;long&quot;)})).catch((function(){l.notifier(c(t,&quot;Sorry, there was a problem downloading your snapshot!&quot;),&quot;long&quot;)}))}},u.sendDataToCloud={name:&quot;sendDataToCloud&quot;,title:function(t){return c(t,&quot;Edit in Chart Studio&quot;)},icon:o.disk,click:function(t){i.sendDataToCloud(t)}},u.editInChartStudio={name:&quot;editInChartStudio&quot;,title:function(t){return c(t,&quot;Edit in Chart Studio&quot;)},icon:o.pencil,click:function(t){i.sendDataToCloud(t)}},u.zoom2d={name:&quot;zoom2d&quot;,_cat:&quot;zoom&quot;,title:function(t){return c(t,&quot;Zoom&quot;)},attr:&quot;dragmode&quot;,val:&quot;zoom&quot;,icon:o.zoombox,click:f},u.pan2d={name:&quot;pan2d&quot;,_cat:&quot;pan&quot;,title:function(t){return c(t,&quot;Pan&quot;)},attr:&quot;dragmode&quot;,val:&quot;pan&quot;,icon:o.pan,click:f},u.select2d={name:&quot;select2d&quot;,_cat:&quot;select&quot;,title:function(t){return c(t,&quot;Box Select&quot;)},attr:&quot;dragmode&quot;,val:&quot;select&quot;,icon:o.selectbox,click:f},u.lasso2d={name:&quot;lasso2d&quot;,_cat:&quot;lasso&quot;,title:function(t){return c(t,&quot;Lasso Select&quot;)},attr:&quot;dragmode&quot;,val:&quot;lasso&quot;,icon:o.lasso,click:f},u.drawclosedpath={name:&quot;drawclosedpath&quot;,title:function(t){return c(t,&quot;Draw closed freeform&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawclosedpath&quot;,icon:o.drawclosedpath,click:f},u.drawopenpath={name:&quot;drawopenpath&quot;,title:function(t){return c(t,&quot;Draw open freeform&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawopenpath&quot;,icon:o.drawopenpath,click:f},u.drawline={name:&quot;drawline&quot;,title:function(t){return c(t,&quot;Draw line&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawline&quot;,icon:o.drawline,click:f},u.drawrect={name:&quot;drawrect&quot;,title:function(t){return c(t,&quot;Draw rectangle&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawrect&quot;,icon:o.drawrect,click:f},u.drawcircle={name:&quot;drawcircle&quot;,title:function(t){return c(t,&quot;Draw circle&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawcircle&quot;,icon:o.drawcircle,click:f},u.eraseshape={name:&quot;eraseshape&quot;,title:function(t){return c(t,&quot;Erase active shape&quot;)},icon:o.eraseshape,click:s},u.zoomIn2d={name:&quot;zoomIn2d&quot;,_cat:&quot;zoomin&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:f},u.zoomOut2d={name:&quot;zoomOut2d&quot;,_cat:&quot;zoomout&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:f},u.autoScale2d={name:&quot;autoScale2d&quot;,_cat:&quot;autoscale&quot;,title:function(t){return c(t,&quot;Autoscale&quot;)},attr:&quot;zoom&quot;,val:&quot;auto&quot;,icon:o.autoscale,click:f},u.resetScale2d={name:&quot;resetScale2d&quot;,_cat:&quot;resetscale&quot;,title:function(t){return c(t,&quot;Reset axes&quot;)},attr:&quot;zoom&quot;,val:&quot;reset&quot;,icon:o.home,click:f},u.hoverClosestCartesian={name:&quot;hoverClosestCartesian&quot;,_cat:&quot;hoverclosest&quot;,title:function(t){return c(t,&quot;Show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:&quot;closest&quot;,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:f},u.hoverCompareCartesian={name:&quot;hoverCompareCartesian&quot;,_cat:&quot;hoverCompare&quot;,title:function(t){return c(t,&quot;Compare data on hover&quot;)},attr:&quot;hovermode&quot;,val:function(t){return t._fullLayout._isHoriz?&quot;y&quot;:&quot;x&quot;},icon:o.tooltip_compare,gravity:&quot;ne&quot;,click:f},u.zoom3d={name:&quot;zoom3d&quot;,_cat:&quot;zoom&quot;,title:function(t){return c(t,&quot;Zoom&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;zoom&quot;,icon:o.zoombox,click:h},u.pan3d={name:&quot;pan3d&quot;,_cat:&quot;pan&quot;,title:function(t){return c(t,&quot;Pan&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;pan&quot;,icon:o.pan,click:h},u.orbitRotation={name:&quot;orbitRotation&quot;,title:function(t){return c(t,&quot;Orbital rotation&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;orbit&quot;,icon:o[&quot;3d_rotate&quot;],click:h},u.tableRotation={name:&quot;tableRotation&quot;,title:function(t){return c(t,&quot;Turntable rotation&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;turntable&quot;,icon:o[&quot;z-axis&quot;],click:h},u.resetCameraDefault3d={name:&quot;resetCameraDefault3d&quot;,_cat:&quot;resetCameraDefault&quot;,title:function(t){return c(t,&quot;Reset camera to default&quot;)},attr:&quot;resetDefault&quot;,icon:o.home,click:p},u.resetCameraLastSave3d={name:&quot;resetCameraLastSave3d&quot;,_cat:&quot;resetCameraLastSave&quot;,title:function(t){return c(t,&quot;Reset camera to last save&quot;)},attr:&quot;resetLastSave&quot;,icon:o.movie,click:p},u.hoverClosest3d={name:&quot;hoverClosest3d&quot;,_cat:&quot;hoverclosest&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:function(t,e){var r=d(t,e);n.call(&quot;_guiRelayout&quot;,t,r)}},u.zoomInGeo={name:&quot;zoomInGeo&quot;,_cat:&quot;zoomin&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:m},u.zoomOutGeo={name:&quot;zoomOutGeo&quot;,_cat:&quot;zoomout&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:m},u.resetGeo={name:&quot;resetGeo&quot;,_cat:&quot;reset&quot;,title:function(t){return c(t,&quot;Reset&quot;)},attr:&quot;reset&quot;,val:null,icon:o.autoscale,click:m},u.hoverClosestGeo={name:&quot;hoverClosestGeo&quot;,_cat:&quot;hoverclosest&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.hoverClosestGl2d={name:&quot;hoverClosestGl2d&quot;,_cat:&quot;hoverclosest&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.hoverClosestPie={name:&quot;hoverClosestPie&quot;,_cat:&quot;hoverclosest&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:&quot;closest&quot;,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.resetViewSankey={name:&quot;resetSankeyGroup&quot;,title:function(t){return c(t,&quot;Reset view&quot;)},icon:o.home,click:function(t){for(var e={&quot;node.groups&quot;:[],&quot;node.x&quot;:[],&quot;node.y&quot;:[]},r=0;r&lt;t._fullData.length;r++){var i=t._fullData[r]._viewInitial;e[&quot;node.groups&quot;].push(i.node.groups.slice()),e[&quot;node.x&quot;].push(i.node.x.slice()),e[&quot;node.y&quot;].push(i.node.y.slice())}n.call(&quot;restyle&quot;,t,e)}},u.toggleHover={name:&quot;toggleHover&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:function(t,e){var r=d(t,e);r.hovermode=g(t),n.call(&quot;_guiRelayout&quot;,t,r)}},u.resetViews={name:&quot;resetViews&quot;,title:function(t){return c(t,&quot;Reset views&quot;)},icon:o.home,click:function(t,e){var r=e.currentTarget;r.setAttribute(&quot;data-attr&quot;,&quot;zoom&quot;),r.setAttribute(&quot;data-val&quot;,&quot;reset&quot;),f(t,e),r.setAttribute(&quot;data-attr&quot;,&quot;resetLastSave&quot;),p(t,e),x(t,&quot;geo&quot;),x(t,&quot;mapbox&quot;)}},u.toggleSpikelines={name:&quot;toggleSpikelines&quot;,title:function(t){return c(t,&quot;Toggle Spike Lines&quot;)},icon:o.spikeline,attr:&quot;_cartesianSpikesEnabled&quot;,val:&quot;on&quot;,click:function(t){var e=t._fullLayout,r=e._cartesianSpikesEnabled;e._cartesianSpikesEnabled=&quot;on&quot;===r?&quot;off&quot;:&quot;on&quot;,n.call(&quot;_guiRelayout&quot;,t,function(t){for(var e=&quot;on&quot;===t._fullLayout._cartesianSpikesEnabled,r=a.list(t,null,!0),n={},i=0;i&lt;r.length;i++){var o=r[i];n[o._name+&quot;.showspikes&quot;]=!!e||o._showSpikeInitial}return n}(t))}},u.resetViewMapbox={name:&quot;resetViewMapbox&quot;,_cat:&quot;resetView&quot;,title:function(t){return c(t,&quot;Reset view&quot;)},attr:&quot;reset&quot;,icon:o.home,click:function(t){x(t,&quot;mapbox&quot;)}},u.zoomInMapbox={name:&quot;zoomInMapbox&quot;,_cat:&quot;zoomin&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:y},u.zoomOutMapbox={name:&quot;zoomOutMapbox&quot;,_cat:&quot;zoomout&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:y}},{&quot;../../fonts/ploticon&quot;:482,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axis_ids&quot;:558,&quot;../../plots/plots&quot;:619,&quot;../../registry&quot;:638,&quot;../shapes/draw&quot;:450}],427:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./buttons&quot;),i=Object.keys(n),a=[&quot;drawline&quot;,&quot;drawopenpath&quot;,&quot;drawclosedpath&quot;,&quot;drawcircle&quot;,&quot;drawrect&quot;,&quot;eraseshape&quot;],o=[&quot;v1hovermode&quot;,&quot;hoverclosest&quot;,&quot;hovercompare&quot;,&quot;togglehover&quot;,&quot;togglespikelines&quot;].concat(a),s=[];i.forEach((function(t){!function(t){if(-1===o.indexOf(t._cat||t.name)){var e=t.name,r=(t._cat||t.name).toLowerCase();-1===s.indexOf(e)&amp;&amp;s.push(e),-1===s.indexOf(r)&amp;&amp;s.push(r)}}(n[t])})),s.sort(),e.exports={DRAW_MODES:a,backButtons:o,foreButtons:s}},{&quot;./buttons&quot;:426}],428:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e){var r=t.modebar||{},s=a.newContainer(e,&quot;modebar&quot;);function l(t,e){return n.coerce(r,s,o,t,e)}l(&quot;orientation&quot;),l(&quot;bgcolor&quot;,i.addOpacity(e.paper_bgcolor,.5));var c=i.contrast(i.rgb(e.modebar.bgcolor));l(&quot;color&quot;,i.addOpacity(c,.3)),l(&quot;activecolor&quot;,i.addOpacity(c,.7)),l(&quot;uirevision&quot;,e.uirevision),l(&quot;add&quot;),l(&quot;remove&quot;)}},{&quot;../../lib&quot;:503,&quot;../../plot_api/plot_template&quot;:543,&quot;../color&quot;:366,&quot;./attributes&quot;:425}],429:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;modebar&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),manage:t(&quot;./manage&quot;)}},{&quot;./attributes&quot;:425,&quot;./defaults&quot;:428,&quot;./manage&quot;:430}],430:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;),i=t(&quot;../../traces/scatter/subtypes&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../fx/helpers&quot;).isUnifiedHover,s=t(&quot;./modebar&quot;),l=t(&quot;./buttons&quot;),c=t(&quot;./constants&quot;).DRAW_MODES;e.exports=function(t){var e=t._fullLayout,r=t._context,u=e._modeBar;if(r.displayModeBar||r.watermark){if(!Array.isArray(r.modeBarButtonsToRemove))throw new Error([&quot;*modeBarButtonsToRemove* configuration options&quot;,&quot;must be an array.&quot;].join(&quot; &quot;));if(!Array.isArray(r.modeBarButtonsToAdd))throw new Error([&quot;*modeBarButtonsToAdd* configuration options&quot;,&quot;must be an array.&quot;].join(&quot; &quot;));var f,h=r.modeBarButtons;f=Array.isArray(h)&amp;&amp;h.length?function(t){for(var e=0;e&lt;t.length;e++)for(var r=t[e],n=0;n&lt;r.length;n++){var i=r[n];if(&quot;string&quot;==typeof i){if(void 0===l[i])throw new Error([&quot;*modeBarButtons* configuration options&quot;,&quot;invalid button name&quot;].join(&quot; &quot;));t[e][n]=l[i]}}return t}(h):!r.displayModeBar&amp;&amp;r.watermark?[]:function(t){var e=t._fullLayout,r=t._fullData,s=t._context;function u(t,e){if(&quot;string&quot;==typeof e){if(e.toLowerCase()===t.toLowerCase())return!0}else{var r=e.name,n=e._cat||e.name;if(r===t||n===t.toLowerCase())return!0}return!1}var f=e.modebar.add;&quot;string&quot;==typeof f&amp;&amp;(f=[f]);var h=e.modebar.remove;&quot;string&quot;==typeof h&amp;&amp;(h=[h]);var p=s.modeBarButtonsToAdd.concat(f.filter((function(t){for(var e=0;e&lt;s.modeBarButtonsToRemove.length;e++)if(u(t,s.modeBarButtonsToRemove[e]))return!1;return!0}))),d=s.modeBarButtonsToRemove.concat(h.filter((function(t){for(var e=0;e&lt;s.modeBarButtonsToAdd.length;e++)if(u(t,s.modeBarButtonsToAdd[e]))return!1;return!0}))),m=e._has(&quot;cartesian&quot;),g=e._has(&quot;gl3d&quot;),v=e._has(&quot;geo&quot;),y=e._has(&quot;pie&quot;),x=e._has(&quot;funnelarea&quot;),b=e._has(&quot;gl2d&quot;),_=e._has(&quot;ternary&quot;),w=e._has(&quot;mapbox&quot;),T=e._has(&quot;polar&quot;),k=e._has(&quot;smith&quot;),A=e._has(&quot;sankey&quot;),M=function(t){for(var e=n.list({_fullLayout:t},null,!0),r=0;r&lt;e.length;r++)if(!e[r].fixedrange)return!1;return!0}(e),S=o(e.hovermode),E=[];function L(t){if(t.length){for(var e=[],r=0;r&lt;t.length;r++){for(var n=t[r],i=l[n],a=i.name.toLowerCase(),o=(i._cat||i.name).toLowerCase(),s=!1,c=0;c&lt;d.length;c++){var u=d[c].toLowerCase();if(u===a||u===o){s=!0;break}}s||e.push(l[n])}E.push(e)}}var C=[&quot;toImage&quot;];s.showEditInChartStudio?C.push(&quot;editInChartStudio&quot;):s.showSendToCloud&amp;&amp;C.push(&quot;sendDataToCloud&quot;);L(C);var P=[],I=[],O=[],z=[];(m||b||y||x||_)+v+g+w+T+k&gt;1?(I=[&quot;toggleHover&quot;],O=[&quot;resetViews&quot;]):v?(P=[&quot;zoomInGeo&quot;,&quot;zoomOutGeo&quot;],I=[&quot;hoverClosestGeo&quot;],O=[&quot;resetGeo&quot;]):g?(I=[&quot;hoverClosest3d&quot;],O=[&quot;resetCameraDefault3d&quot;,&quot;resetCameraLastSave3d&quot;]):w?(P=[&quot;zoomInMapbox&quot;,&quot;zoomOutMapbox&quot;],I=[&quot;toggleHover&quot;],O=[&quot;resetViewMapbox&quot;]):b?I=[&quot;hoverClosestGl2d&quot;]:y?I=[&quot;hoverClosestPie&quot;]:A?(I=[&quot;hoverClosestCartesian&quot;,&quot;hoverCompareCartesian&quot;],O=[&quot;resetViewSankey&quot;]):I=[&quot;toggleHover&quot;];m&amp;&amp;(I=[&quot;toggleSpikelines&quot;,&quot;hoverClosestCartesian&quot;,&quot;hoverCompareCartesian&quot;]);(function(t){for(var e=0;e&lt;t.length;e++)if(!a.traceIs(t[e],&quot;noHover&quot;))return!1;return!0}(r)||S)&amp;&amp;(I=[]);!m&amp;&amp;!b||M||(P=[&quot;zoomIn2d&quot;,&quot;zoomOut2d&quot;,&quot;autoScale2d&quot;],&quot;resetViews&quot;!==O[0]&amp;&amp;(O=[&quot;resetScale2d&quot;]));g?z=[&quot;zoom3d&quot;,&quot;pan3d&quot;,&quot;orbitRotation&quot;,&quot;tableRotation&quot;]:(m||b)&amp;&amp;!M||_?z=[&quot;zoom2d&quot;,&quot;pan2d&quot;]:w||v?z=[&quot;pan2d&quot;]:T&amp;&amp;(z=[&quot;zoom2d&quot;]);(function(t){for(var e=!1,r=0;r&lt;t.length&amp;&amp;!e;r++){var n=t[r];n._module&amp;&amp;n._module.selectPoints&amp;&amp;(a.traceIs(n,&quot;scatter-like&quot;)?(i.hasMarkers(n)||i.hasText(n))&amp;&amp;(e=!0):a.traceIs(n,&quot;box-violin&quot;)&amp;&amp;&quot;all&quot;!==n.boxpoints&amp;&amp;&quot;all&quot;!==n.points||(e=!0))}return e})(r)&amp;&amp;z.push(&quot;select2d&quot;,&quot;lasso2d&quot;);var D=[],R=function(t){-1===D.indexOf(t)&amp;&amp;-1!==I.indexOf(t)&amp;&amp;D.push(t)};if(Array.isArray(p)){for(var F=[],B=0;B&lt;p.length;B++){var N=p[B];&quot;string&quot;==typeof N?(N=N.toLowerCase(),-1!==c.indexOf(N)?(e._has(&quot;mapbox&quot;)||e._has(&quot;cartesian&quot;))&amp;&amp;z.push(N):&quot;togglespikelines&quot;===N?R(&quot;toggleSpikelines&quot;):&quot;togglehover&quot;===N?R(&quot;toggleHover&quot;):&quot;hovercompare&quot;===N?R(&quot;hoverCompareCartesian&quot;):&quot;hoverclosest&quot;===N?(R(&quot;hoverClosestCartesian&quot;),R(&quot;hoverClosestGeo&quot;),R(&quot;hoverClosest3d&quot;),R(&quot;hoverClosestGl2d&quot;),R(&quot;hoverClosestPie&quot;)):&quot;v1hovermode&quot;===N&amp;&amp;(R(&quot;toggleHover&quot;),R(&quot;hoverClosestCartesian&quot;),R(&quot;hoverCompareCartesian&quot;),R(&quot;hoverClosestGeo&quot;),R(&quot;hoverClosest3d&quot;),R(&quot;hoverClosestGl2d&quot;),R(&quot;hoverClosestPie&quot;))):F.push(N)}p=F}return L(z),L(P.concat(O)),L(D),function(t,e){if(e.length)if(Array.isArray(e[0]))for(var r=0;r&lt;e.length;r++)t.push(e[r]);else t.push(e);return t}(E,p)}(t),u?u.update(t,f):e._modeBar=s(t,f)}else u&amp;&amp;(u.destroy(),delete e._modeBar)}},{&quot;../../plots/cartesian/axis_ids&quot;:558,&quot;../../registry&quot;:638,&quot;../../traces/scatter/subtypes&quot;:951,&quot;../fx/helpers&quot;:402,&quot;./buttons&quot;:426,&quot;./constants&quot;:427,&quot;./modebar&quot;:431}],431:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../fonts/ploticon&quot;),s=new DOMParser;function l(t){this.container=t.container,this.element=document.createElement(&quot;div&quot;),this.update(t.graphInfo,t.buttons),this.container.appendChild(this.element)}var c=l.prototype;c.update=function(t,e){this.graphInfo=t;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i=&quot;modebar-&quot;+n._uid;this.element.setAttribute(&quot;id&quot;,i),this._uid=i,this.element.className=&quot;modebar&quot;,&quot;hover&quot;===r.displayModeBar&amp;&amp;(this.element.className+=&quot; modebar--hover ease-bg&quot;),&quot;v&quot;===n.modebar.orientation&amp;&amp;(this.element.className+=&quot; vertical&quot;,e=e.reverse());var o=n.modebar,s=&quot;hover&quot;===r.displayModeBar?&quot;.js-plotly-plot .plotly:hover &quot;:&quot;&quot;;a.deleteRelatedStyleRule(i),a.addRelatedStyleRule(i,s+&quot;#&quot;+i+&quot; .modebar-group&quot;,&quot;background-color: &quot;+o.bgcolor),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn .icon path&quot;,&quot;fill: &quot;+o.color),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn:hover .icon path&quot;,&quot;fill: &quot;+o.activecolor),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn.active .icon path&quot;,&quot;fill: &quot;+o.activecolor);var l=!this.hasButtons(e),c=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(l||c||u)&amp;&amp;(this.removeAllButtons(),this.updateButtons(e),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&amp;&amp;(f.className=f.className+&quot; watermark&quot;),&quot;v&quot;===n.modebar.orientation?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton()},c.updateButtons=function(t){var e=this;this.buttons=t,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(t){var r=e.createGroup();t.forEach((function(t){var n=t.name;if(!n)throw new Error(&quot;must provide button 'name' in button config&quot;);if(-1!==e.buttonsNames.indexOf(n))throw new Error(&quot;button name '&quot;+n+&quot;' is taken&quot;);e.buttonsNames.push(n);var i=e.createButton(t);e.buttonElements.push(i),r.appendChild(i)})),e.element.appendChild(r)}))},c.createGroup=function(){var t=document.createElement(&quot;div&quot;);return t.className=&quot;modebar-group&quot;,t},c.createButton=function(t){var e=this,r=document.createElement(&quot;a&quot;);r.setAttribute(&quot;rel&quot;,&quot;tooltip&quot;),r.className=&quot;modebar-btn&quot;;var i=t.title;void 0===i?i=t.name:&quot;function&quot;==typeof i&amp;&amp;(i=i(this.graphInfo)),(i||0===i)&amp;&amp;r.setAttribute(&quot;data-title&quot;,i),void 0!==t.attr&amp;&amp;r.setAttribute(&quot;data-attr&quot;,t.attr);var a=t.val;if(void 0!==a&amp;&amp;(&quot;function&quot;==typeof a&amp;&amp;(a=a(this.graphInfo)),r.setAttribute(&quot;data-val&quot;,a)),&quot;function&quot;!=typeof t.click)throw new Error(&quot;must provide button 'click' function in button config&quot;);r.addEventListener(&quot;click&quot;,(function(r){t.click(e.graphInfo,r),e.updateActiveButton(r.currentTarget)})),r.setAttribute(&quot;data-toggle&quot;,t.toggle||!1),t.toggle&amp;&amp;n.select(r).classed(&quot;active&quot;,!0);var s=t.icon;return&quot;function&quot;==typeof s?r.appendChild(s()):r.appendChild(this.createIcon(s||o.question)),r.setAttribute(&quot;data-gravity&quot;,t.gravity||&quot;n&quot;),r},c.createIcon=function(t){var e,r=i(t.height)?Number(t.height):t.ascent-t.descent,n=&quot;http://www.w3.org/2000/svg&quot;;if(t.path){(e=document.createElementNS(n,&quot;svg&quot;)).setAttribute(&quot;viewBox&quot;,[0,0,t.width,r].join(&quot; &quot;)),e.setAttribute(&quot;class&quot;,&quot;icon&quot;);var a=document.createElementNS(n,&quot;path&quot;);a.setAttribute(&quot;d&quot;,t.path),t.transform?a.setAttribute(&quot;transform&quot;,t.transform):void 0!==t.ascent&amp;&amp;a.setAttribute(&quot;transform&quot;,&quot;matrix(1 0 0 -1 0 &quot;+t.ascent+&quot;)&quot;),e.appendChild(a)}t.svg&amp;&amp;(e=s.parseFromString(t.svg,&quot;application/xml&quot;).childNodes[0]);return e.setAttribute(&quot;height&quot;,&quot;1em&quot;),e.setAttribute(&quot;width&quot;,&quot;1em&quot;),e},c.updateActiveButton=function(t){var e=this.graphInfo._fullLayout,r=void 0!==t?t.getAttribute(&quot;data-attr&quot;):null;this.buttonElements.forEach((function(t){var i=t.getAttribute(&quot;data-val&quot;)||!0,o=t.getAttribute(&quot;data-attr&quot;),s=&quot;true&quot;===t.getAttribute(&quot;data-toggle&quot;),l=n.select(t);if(s)o===r&amp;&amp;l.classed(&quot;active&quot;,!l.classed(&quot;active&quot;));else{var c=null===o?o:a.nestedProperty(e,o).get();l.classed(&quot;active&quot;,c===i)}}))},c.hasButtons=function(t){var e=this.buttons;if(!e)return!1;if(t.length!==e.length)return!1;for(var r=0;r&lt;t.length;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n&lt;t[r].length;n++)if(t[r][n].name!==e[r][n].name)return!1}return!0},c.getLogo=function(){var t=this.createGroup(),e=document.createElement(&quot;a&quot;);return e.href=&quot;https://plotly.com/&quot;,e.target=&quot;_blank&quot;,e.setAttribute(&quot;data-title&quot;,a._(this.graphInfo,&quot;Produced with Plotly&quot;)),e.className=&quot;modebar-btn plotlyjsicon modebar-btn--logo&quot;,e.appendChild(this.createIcon(o.newplotlylogo)),t.appendChild(e),t},c.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},c.destroy=function(){a.removeElement(this.container.querySelector(&quot;.modebar&quot;)),a.deleteRelatedStyleRule(this._uid)},e.exports=function(t,e){var r=t._fullLayout,i=new l({graphInfo:t,container:r._modebardiv.node(),buttons:e});return r._privateplot&amp;&amp;n.select(i.element).append(&quot;span&quot;).classed(&quot;badge-private float--left&quot;,!0).text(&quot;PRIVATE&quot;),i}},{&quot;../../fonts/ploticon&quot;:482,&quot;../../lib&quot;:503,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:190}],432:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;),a=(0,t(&quot;../../plot_api/plot_template&quot;).templatedArray)(&quot;button&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},step:{valType:&quot;enumerated&quot;,values:[&quot;month&quot;,&quot;year&quot;,&quot;day&quot;,&quot;hour&quot;,&quot;minute&quot;,&quot;second&quot;,&quot;all&quot;],dflt:&quot;month&quot;,editType:&quot;plot&quot;},stepmode:{valType:&quot;enumerated&quot;,values:[&quot;backward&quot;,&quot;todate&quot;],dflt:&quot;backward&quot;,editType:&quot;plot&quot;},count:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},label:{valType:&quot;string&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;});e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},buttons:a,x:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;plot&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;plot&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;plot&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;bottom&quot;,editType:&quot;plot&quot;},font:n({editType:&quot;plot&quot;}),bgcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;plot&quot;},activecolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;plot&quot;}},{&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/font_attributes&quot;:585,&quot;../color/attributes&quot;:365}],433:[function(t,e,r){&quot;use strict&quot;;e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},{}],434:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;../../plots/array_container_defaults&quot;),s=t(&quot;./attributes&quot;),l=t(&quot;./constants&quot;);function c(t,e,r,i){var a=i.calendar;function o(r,i){return n.coerce(t,e,s.buttons,r,i)}if(o(&quot;visible&quot;)){var l=o(&quot;step&quot;);&quot;all&quot;!==l&amp;&amp;(!a||&quot;gregorian&quot;===a||&quot;month&quot;!==l&amp;&amp;&quot;year&quot;!==l?o(&quot;stepmode&quot;):e.stepmode=&quot;backward&quot;,o(&quot;count&quot;)),o(&quot;label&quot;)}}e.exports=function(t,e,r,u,f){var h=t.rangeselector||{},p=a.newContainer(e,&quot;rangeselector&quot;);function d(t,e){return n.coerce(h,p,s,t,e)}if(d(&quot;visible&quot;,o(h,p,{name:&quot;buttons&quot;,handleItemDefaults:c,calendar:f}).length&gt;0)){var m=function(t,e,r){for(var n=r.filter((function(r){return e[r].anchor===t._id})),i=0,a=0;a&lt;n.length;a++){var o=e[n[a]].domain;o&amp;&amp;(i=Math.max(o[1],i))}return[t.domain[0],i+l.yPad]}(e,r,u);d(&quot;x&quot;,m[0]),d(&quot;y&quot;,m[1]),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),d(&quot;xanchor&quot;),d(&quot;yanchor&quot;),n.coerceFont(d,&quot;font&quot;,r.font);var g=d(&quot;bgcolor&quot;);d(&quot;activecolor&quot;,i.contrast(g,l.lightAmount,l.darkAmount)),d(&quot;bordercolor&quot;),d(&quot;borderwidth&quot;)}}},{&quot;../../lib&quot;:503,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/array_container_defaults&quot;:549,&quot;../color&quot;:366,&quot;./attributes&quot;:432,&quot;./constants&quot;:433}],435:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../color&quot;),s=t(&quot;../drawing&quot;),l=t(&quot;../../lib&quot;),c=l.strTranslate,u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../plots/cartesian/axis_ids&quot;),h=t(&quot;../../constants/alignment&quot;),p=h.LINE_SPACING,d=h.FROM_TL,m=h.FROM_BR,g=t(&quot;./constants&quot;),v=t(&quot;./get_update_object&quot;);function y(t){return t._id}function x(t,e,r){var n=l.ensureSingle(t,&quot;rect&quot;,&quot;selector-rect&quot;,(function(t){t.attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)}));n.attr({rx:g.rx,ry:g.ry}),n.call(o.stroke,e.bordercolor).call(o.fill,function(t,e){return e._isActive||e._isHovered?t.activecolor:t.bgcolor}(e,r)).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;)}function b(t,e,r,n){l.ensureSingle(t,&quot;text&quot;,&quot;selector-text&quot;,(function(t){t.attr(&quot;text-anchor&quot;,&quot;middle&quot;)})).call(s.font,e.font).text(function(t,e){if(t.label)return e?l.templateString(t.label,e):t.label;return&quot;all&quot;===t.step?&quot;all&quot;:t.count+t.step.charAt(0)}(r,n._fullLayout._meta)).call((function(t){u.convertToTspans(t,n)}))}e.exports=function(t){var e=t._fullLayout._infolayer.selectAll(&quot;.rangeselector&quot;).data(function(t){for(var e=f.list(t,&quot;x&quot;,!0),r=[],n=0;n&lt;e.length;n++){var i=e[n];i.rangeselector&amp;&amp;i.rangeselector.visible&amp;&amp;r.push(i)}return r}(t),y);e.enter().append(&quot;g&quot;).classed(&quot;rangeselector&quot;,!0),e.exit().remove(),e.style({cursor:&quot;pointer&quot;,&quot;pointer-events&quot;:&quot;all&quot;}),e.each((function(e){var r=n.select(this),o=e,f=o.rangeselector,h=r.selectAll(&quot;g.button&quot;).data(l.filterVisible(f.buttons));h.enter().append(&quot;g&quot;).classed(&quot;button&quot;,!0),h.exit().remove(),h.each((function(e){var r=n.select(this),a=v(o,e);e._isActive=function(t,e,r){if(&quot;all&quot;===e.step)return!0===t.autorange;var n=Object.keys(r);return t.range[0]===r[n[0]]&amp;&amp;t.range[1]===r[n[1]]}(o,e,a),r.call(x,f,e),r.call(b,f,e,t),r.on(&quot;click&quot;,(function(){t._dragged||i.call(&quot;_guiRelayout&quot;,t,a)})),r.on(&quot;mouseover&quot;,(function(){e._isHovered=!0,r.call(x,f,e)})),r.on(&quot;mouseout&quot;,(function(){e._isHovered=!1,r.call(x,f,e)}))})),function(t,e,r,i,o){var f=0,h=0,v=r.borderwidth;e.each((function(){var t=n.select(this).select(&quot;.selector-text&quot;),e=r.font.size*p,i=Math.max(e*u.lineCount(t),16)+3;h=Math.max(h,i)})),e.each((function(){var t=n.select(this),e=t.select(&quot;.selector-rect&quot;),i=t.select(&quot;.selector-text&quot;),a=i.node()&amp;&amp;s.bBox(i.node()).width,o=r.font.size*p,l=u.lineCount(i),d=Math.max(a+10,g.minButtonWidth);t.attr(&quot;transform&quot;,c(v+f,v)),e.attr({x:0,y:0,width:d,height:h}),u.positionText(i,d/2,h/2-(l-1)*o/2+3),f+=d+5}));var y=t._fullLayout._size,x=y.l+y.w*r.x,b=y.t+y.h*(1-r.y),_=&quot;left&quot;;l.isRightAnchor(r)&amp;&amp;(x-=f,_=&quot;right&quot;);l.isCenterAnchor(r)&amp;&amp;(x-=f/2,_=&quot;center&quot;);var w=&quot;top&quot;;l.isBottomAnchor(r)&amp;&amp;(b-=h,w=&quot;bottom&quot;);l.isMiddleAnchor(r)&amp;&amp;(b-=h/2,w=&quot;middle&quot;);f=Math.ceil(f),h=Math.ceil(h),x=Math.round(x),b=Math.round(b),a.autoMargin(t,i+&quot;-range-selector&quot;,{x:r.x,y:r.y,l:f*d[_],r:f*m[_],b:h*m[w],t:h*d[w]}),o.attr(&quot;transform&quot;,c(x,b))}(t,h,f,o._name,r)}))}},{&quot;../../constants/alignment&quot;:471,&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plots/cartesian/axis_ids&quot;:558,&quot;../../plots/plots&quot;:619,&quot;../../registry&quot;:638,&quot;../color&quot;:366,&quot;../drawing&quot;:388,&quot;./constants&quot;:433,&quot;./get_update_object&quot;:436,&quot;@plotly/d3&quot;:58}],436:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-time&quot;),i=t(&quot;../../lib&quot;).titleCase;e.exports=function(t,e){var r=t._name,a={};if(&quot;all&quot;===e.step)a[r+&quot;.autorange&quot;]=!0;else{var o=function(t,e){var r,a=t.range,o=new Date(t.r2l(a[1])),s=e.step,l=n[&quot;utc&quot;+i(s)],c=e.count;switch(e.stepmode){case&quot;backward&quot;:r=t.l2r(+l.offset(o,-c));break;case&quot;todate&quot;:var u=l.offset(o,-c);r=t.l2r(+l.ceil(u))}var f=a[1];return[r,f]}(t,e);a[r+&quot;.range[0]&quot;]=o[0],a[r+&quot;.range[1]&quot;]=o[1]}return a}},{&quot;../../lib&quot;:503,&quot;d3-time&quot;:122}],437:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;rangeselector&quot;,schema:{subplots:{xaxis:{rangeselector:t(&quot;./attributes&quot;)}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;)}},{&quot;./attributes&quot;:432,&quot;./defaults&quot;:434,&quot;./draw&quot;:435}],438:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../color/attributes&quot;);e.exports={bgcolor:{valType:&quot;color&quot;,dflt:n.background,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:n.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;integer&quot;,dflt:0,min:0,editType:&quot;plot&quot;},autorange:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:{&quot;range[0]&quot;:void 0,&quot;range[1]&quot;:void 0}},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;calc&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],editType:&quot;calc&quot;,impliedEdits:{autorange:!1}},thickness:{valType:&quot;number&quot;,dflt:.15,min:0,max:1,editType:&quot;plot&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;}},{&quot;../color/attributes&quot;:365}],439:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;).list,i=t(&quot;../../plots/cartesian/autorange&quot;).getAutoRange,a=t(&quot;./constants&quot;);e.exports=function(t){for(var e=n(t,&quot;x&quot;,!0),r=0;r&lt;e.length;r++){var o=e[r],s=o[a.name];s&amp;&amp;s.visible&amp;&amp;s.autorange&amp;&amp;(s._input.autorange=!0,s._input.range=s.range=i(t,o))}}},{&quot;../../plots/cartesian/autorange&quot;:553,&quot;../../plots/cartesian/axis_ids&quot;:558,&quot;./constants&quot;:440}],440:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;rangeslider&quot;,containerClassName:&quot;rangeslider-container&quot;,bgClassName:&quot;rangeslider-bg&quot;,rangePlotClassName:&quot;rangeslider-rangeplot&quot;,maskMinClassName:&quot;rangeslider-mask-min&quot;,maskMaxClassName:&quot;rangeslider-mask-max&quot;,slideBoxClassName:&quot;rangeslider-slidebox&quot;,grabberMinClassName:&quot;rangeslider-grabber-min&quot;,grabAreaMinClassName:&quot;rangeslider-grabarea-min&quot;,handleMinClassName:&quot;rangeslider-handle-min&quot;,grabberMaxClassName:&quot;rangeslider-grabber-max&quot;,grabAreaMaxClassName:&quot;rangeslider-grabarea-max&quot;,handleMaxClassName:&quot;rangeslider-handle-max&quot;,maskMinOppAxisClassName:&quot;rangeslider-mask-min-opp-axis&quot;,maskMaxOppAxisClassName:&quot;rangeslider-mask-max-opp-axis&quot;,maskColor:&quot;rgba(0,0,0,0.4)&quot;,maskOppAxisColor:&quot;rgba(0,0,0,0.2)&quot;,slideBoxFill:&quot;transparent&quot;,slideBoxCursor:&quot;ew-resize&quot;,grabAreaFill:&quot;transparent&quot;,grabAreaCursor:&quot;col-resize&quot;,grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},{}],441:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;./oppaxis_attributes&quot;);e.exports=function(t,e,r){var l=t[r],c=e[r];if(l.rangeslider||e._requestRangeslider[c._id]){n.isPlainObject(l.rangeslider)||(l.rangeslider={});var u,f,h=l.rangeslider,p=i.newContainer(c,&quot;rangeslider&quot;);if(_(&quot;visible&quot;)){_(&quot;bgcolor&quot;,e.plot_bgcolor),_(&quot;bordercolor&quot;),_(&quot;borderwidth&quot;),_(&quot;thickness&quot;),_(&quot;autorange&quot;,!c.isValidRange(h.range)),_(&quot;range&quot;);var d=e._subplots;if(d)for(var m=d.cartesian.filter((function(t){return t.substr(0,t.indexOf(&quot;y&quot;))===a.name2id(r)})).map((function(t){return t.substr(t.indexOf(&quot;y&quot;),t.length)})),g=n.simpleMap(m,a.id2name),v=0;v&lt;g.length;v++){var y=g[v];u=h[y]||{},f=i.newContainer(p,y,&quot;yaxis&quot;);var x,b=e[y];u.range&amp;&amp;b.isValidRange(u.range)&amp;&amp;(x=&quot;fixed&quot;),&quot;match&quot;!==w(&quot;rangemode&quot;,x)&amp;&amp;w(&quot;range&quot;,b.range.slice())}p._input=h}}function _(t,e){return n.coerce(h,p,o,t,e)}function w(t,e){return n.coerce(u,f,s,t,e)}}},{&quot;../../lib&quot;:503,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/cartesian/axis_ids&quot;:558,&quot;./attributes&quot;:438,&quot;./oppaxis_attributes&quot;:445}],442:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../drawing&quot;),c=t(&quot;../color&quot;),u=t(&quot;../titles&quot;),f=t(&quot;../../plots/cartesian&quot;),h=t(&quot;../../plots/cartesian/axis_ids&quot;),p=t(&quot;../dragelement&quot;),d=t(&quot;../../lib/setcursor&quot;),m=t(&quot;./constants&quot;);function g(t,e,r,n){var i=o.ensureSingle(t,&quot;rect&quot;,m.bgClassName,(function(t){t.attr({x:0,y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})),a=n.borderwidth%2==0?n.borderwidth:n.borderwidth-1,c=-n._offsetShift,u=l.crispRound(e,n.borderwidth);i.attr({width:n._width+a,height:n._height+a,transform:s(c,c),fill:n.bgcolor,stroke:n.bordercolor,&quot;stroke-width&quot;:u})}function v(t,e,r,n){var i=e._fullLayout;o.ensureSingleById(i._topdefs,&quot;clipPath&quot;,n._clipId,(function(t){t.append(&quot;rect&quot;).attr({x:0,y:0})})).select(&quot;rect&quot;).attr({width:n._width,height:n._height})}function y(t,e,r,i){var s,c=e.calcdata,u=t.selectAll(&quot;g.&quot;+m.rangePlotClassName).data(r._subplotsWith,o.identity);u.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return m.rangePlotClassName+&quot; &quot;+t})).call(l.setClipUrl,i._clipId,e),u.order(),u.exit().remove(),u.each((function(t,o){var l=n.select(this),u=0===o,p=h.getFromId(e,t,&quot;y&quot;),d=p._name,m=i[d],g={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:i.range.slice(),calendar:r.calendar},width:i._width,height:i._height,margin:{t:0,b:0,l:0,r:0}},_context:e._context};r.rangebreaks&amp;&amp;(g.layout.xaxis.rangebreaks=r.rangebreaks),g.layout[d]={type:p.type,domain:[0,1],range:&quot;match&quot;!==m.rangemode?m.range.slice():p.range.slice(),calendar:p.calendar},p.rangebreaks&amp;&amp;(g.layout[d].rangebreaks=p.rangebreaks),a.supplyDefaults(g);var v=g._fullLayout.xaxis,y=g._fullLayout[d];v.clearCalc(),v.setScale(),y.clearCalc(),y.setScale();var x={id:t,plotgroup:l,xaxis:v,yaxis:y,isRangePlot:!0};u?s=x:(x.mainplot=&quot;xy&quot;,x.mainplotinfo=s),f.rangePlot(e,x,function(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i=t[n],a=i[0].trace;a.xaxis+a.yaxis===e&amp;&amp;r.push(i)}return r}(c,t))}))}function x(t,e,r,n,i){(o.ensureSingle(t,&quot;rect&quot;,m.maskMinClassName,(function(t){t.attr({x:0,y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;height&quot;,n._height).call(c.fill,m.maskColor),o.ensureSingle(t,&quot;rect&quot;,m.maskMaxClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;height&quot;,n._height).call(c.fill,m.maskColor),&quot;match&quot;!==i.rangemode)&amp;&amp;(o.ensureSingle(t,&quot;rect&quot;,m.maskMinOppAxisClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;width&quot;,n._width).call(c.fill,m.maskOppAxisColor),o.ensureSingle(t,&quot;rect&quot;,m.maskMaxOppAxisClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;width&quot;,n._width).style(&quot;border-top&quot;,m.maskOppBorder).call(c.fill,m.maskOppAxisColor))}function b(t,e,r,n){e._context.staticPlot||o.ensureSingle(t,&quot;rect&quot;,m.slideBoxClassName,(function(t){t.attr({y:0,cursor:m.slideBoxCursor,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr({height:n._height,fill:m.slideBoxFill})}function _(t,e,r,n){var i=o.ensureSingle(t,&quot;g&quot;,m.grabberMinClassName),a=o.ensureSingle(t,&quot;g&quot;,m.grabberMaxClassName),s={x:0,width:m.handleWidth,rx:m.handleRadius,fill:c.background,stroke:c.defaultLine,&quot;stroke-width&quot;:m.handleStrokeWidth,&quot;shape-rendering&quot;:&quot;crispEdges&quot;},l={y:Math.round(n._height/4),height:Math.round(n._height/2)};o.ensureSingle(i,&quot;rect&quot;,m.handleMinClassName,(function(t){t.attr(s)})).attr(l),o.ensureSingle(a,&quot;rect&quot;,m.handleMaxClassName,(function(t){t.attr(s)})).attr(l);var u={width:m.grabAreaWidth,x:0,y:0,fill:m.grabAreaFill,cursor:e._context.staticPlot?void 0:m.grabAreaCursor};o.ensureSingle(i,&quot;rect&quot;,m.grabAreaMinClassName,(function(t){t.attr(u)})).attr(&quot;height&quot;,n._height),o.ensureSingle(a,&quot;rect&quot;,m.grabAreaMaxClassName,(function(t){t.attr(u)})).attr(&quot;height&quot;,n._height)}e.exports=function(t){for(var e=t._fullLayout,r=e._rangeSliderData,a=0;a&lt;r.length;a++){var l=r[a][m.name];l._clipId=l._id+&quot;-&quot;+e._uid}var c=e._infolayer.selectAll(&quot;g.&quot;+m.containerClassName).data(r,(function(t){return t._name}));c.exit().each((function(t){var r=t[m.name];e._topdefs.select(&quot;#&quot;+r._clipId).remove()})).remove(),0!==r.length&amp;&amp;(c.enter().append(&quot;g&quot;).classed(m.containerClassName,!0).attr(&quot;pointer-events&quot;,&quot;all&quot;),c.each((function(r){var a=n.select(this),l=r[m.name],c=e[h.id2name(r.anchor)],f=l[h.id2name(r.anchor)];if(l.range){var w,T=o.simpleMap(l.range,r.r2l),k=o.simpleMap(r.range,r.r2l);w=k[0]&lt;k[1]?[Math.min(T[0],k[0]),Math.max(T[1],k[1])]:[Math.max(T[0],k[0]),Math.min(T[1],k[1])],l.range=l._input.range=o.simpleMap(w,r.l2r)}r.cleanRange(&quot;rangeslider.range&quot;);var A=e._size,M=r.domain;l._width=A.w*(M[1]-M[0]);var S=Math.round(A.l+A.w*M[0]),E=Math.round(A.t+A.h*(1-r._counterDomainMin)+(&quot;bottom&quot;===r.side?r._depth:0)+l._offsetShift+m.extraPad);a.attr(&quot;transform&quot;,s(S,E)),l._rl=o.simpleMap(l.range,r.r2l);var L=l._rl[0],C=l._rl[1],P=C-L;if(l.p2d=function(t){return t/l._width*P+L},l.d2p=function(t){return(t-L)/P*l._width},r.rangebreaks){var I=r.locateBreaks(L,C);if(I.length){var O,z,D=0;for(O=0;O&lt;I.length;O++)D+=(z=I[O]).max-z.min;var R=l._width/(C-L-D),F=[-R*L];for(O=0;O&lt;I.length;O++)z=I[O],F.push(F[F.length-1]-R*(z.max-z.min));for(l.d2p=function(t){for(var e=F[0],r=0;r&lt;I.length;r++){var n=I[r];if(t&gt;=n.max)e=F[r+1];else if(t&lt;n.min)break}return e+R*t},O=0;O&lt;I.length;O++)(z=I[O]).pmin=l.d2p(z.min),z.pmax=l.d2p(z.max);l.p2d=function(t){for(var e=F[0],r=0;r&lt;I.length;r++){var n=I[r];if(t&gt;=n.pmax)e=F[r+1];else if(t&lt;n.pmin)break}return(t-e)/R}}}if(&quot;match&quot;!==f.rangemode){var B=c.r2l(f.range[0]),N=c.r2l(f.range[1])-B;l.d2pOppAxis=function(t){return(t-B)/N*l._height}}a.call(g,t,r,l).call(v,t,r,l).call(y,t,r,l).call(x,t,r,l,f).call(b,t,r,l).call(_,t,r,l),function(t,e,r,a){if(e._context.staticPlot)return;var s=t.select(&quot;rect.&quot;+m.slideBoxClassName).node(),l=t.select(&quot;rect.&quot;+m.grabAreaMinClassName).node(),c=t.select(&quot;rect.&quot;+m.grabAreaMaxClassName).node();function u(){var u=n.event,f=u.target,h=u.clientX||u.touches[0].clientX,m=h-t.node().getBoundingClientRect().left,g=a.d2p(r._rl[0]),v=a.d2p(r._rl[1]),y=p.coverSlip();function x(t){var u,p,x,b=+(t.clientX||t.touches[0].clientX)-h;switch(f){case s:x=&quot;ew-resize&quot;,u=g+b,p=v+b;break;case l:x=&quot;col-resize&quot;,u=g+b,p=v;break;case c:x=&quot;col-resize&quot;,u=g,p=v+b;break;default:x=&quot;ew-resize&quot;,u=m,p=m+b}if(p&lt;u){var _=p;p=u,u=_}a._pixelMin=u,a._pixelMax=p,d(n.select(y),x),function(t,e,r,n){function a(t){return r.l2r(o.constrain(t,n._rl[0],n._rl[1]))}var s=a(n.p2d(n._pixelMin)),l=a(n.p2d(n._pixelMax));window.requestAnimationFrame((function(){i.call(&quot;_guiRelayout&quot;,e,r._name+&quot;.range&quot;,[s,l])}))}(0,e,r,a)}function b(){y.removeEventListener(&quot;mousemove&quot;,x),y.removeEventListener(&quot;mouseup&quot;,b),this.removeEventListener(&quot;touchmove&quot;,x),this.removeEventListener(&quot;touchend&quot;,b),o.removeElement(y)}this.addEventListener(&quot;touchmove&quot;,x),this.addEventListener(&quot;touchend&quot;,b),y.addEventListener(&quot;mousemove&quot;,x),y.addEventListener(&quot;mouseup&quot;,b)}t.on(&quot;mousedown&quot;,u),t.on(&quot;touchstart&quot;,u)}(a,t,r,l),function(t,e,r,n,i,a){var l=m.handleWidth/2;function c(t){return o.constrain(t,0,n._width)}function u(t){return o.constrain(t,0,n._height)}function f(t){return o.constrain(t,-l,n._width+l)}var h=c(n.d2p(r._rl[0])),p=c(n.d2p(r._rl[1]));if(t.select(&quot;rect.&quot;+m.slideBoxClassName).attr(&quot;x&quot;,h).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+m.maskMinClassName).attr(&quot;width&quot;,h),t.select(&quot;rect.&quot;+m.maskMaxClassName).attr(&quot;x&quot;,p).attr(&quot;width&quot;,n._width-p),&quot;match&quot;!==a.rangemode){var d=n._height-u(n.d2pOppAxis(i._rl[1])),g=n._height-u(n.d2pOppAxis(i._rl[0]));t.select(&quot;rect.&quot;+m.maskMinOppAxisClassName).attr(&quot;x&quot;,h).attr(&quot;height&quot;,d).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+m.maskMaxOppAxisClassName).attr(&quot;x&quot;,h).attr(&quot;y&quot;,g).attr(&quot;height&quot;,n._height-g).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+m.slideBoxClassName).attr(&quot;y&quot;,d).attr(&quot;height&quot;,g-d)}var v=Math.round(f(h-l))-.5,y=Math.round(f(p-l))+.5;t.select(&quot;g.&quot;+m.grabberMinClassName).attr(&quot;transform&quot;,s(v,.5)),t.select(&quot;g.&quot;+m.grabberMaxClassName).attr(&quot;transform&quot;,s(y,.5))}(a,0,r,l,c,f),&quot;bottom&quot;===r.side&amp;&amp;u.draw(t,r._id+&quot;title&quot;,{propContainer:r,propName:r._name+&quot;.title&quot;,placeholder:e._dfltTitle.x,attributes:{x:r._offset+r._length/2,y:E+l._height+l._offsetShift+10+1.5*r.title.font.size,&quot;text-anchor&quot;:&quot;middle&quot;}})})))}},{&quot;../../lib&quot;:503,&quot;../../lib/setcursor&quot;:524,&quot;../../plots/cartesian&quot;:568,&quot;../../plots/cartesian/axis_ids&quot;:558,&quot;../../plots/plots&quot;:619,&quot;../../registry&quot;:638,&quot;../color&quot;:366,&quot;../dragelement&quot;:385,&quot;../drawing&quot;:388,&quot;../titles&quot;:464,&quot;./constants&quot;:440,&quot;@plotly/d3&quot;:58}],443:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;),i=t(&quot;../../lib/svg_text_utils&quot;),a=t(&quot;./constants&quot;),o=t(&quot;../../constants/alignment&quot;).LINE_SPACING,s=a.name;function l(t){var e=t&amp;&amp;t[s];return e&amp;&amp;e.visible}r.isVisible=l,r.makeData=function(t){var e=n.list({_fullLayout:t},&quot;x&quot;,!0),r=t.margin,i=[];if(!t._has(&quot;gl2d&quot;))for(var a=0;a&lt;e.length;a++){var o=e[a];if(l(o)){i.push(o);var c=o[s];c._id=s+o._id,c._height=(t.height-r.b-r.t)*c.thickness,c._offsetShift=Math.floor(c.borderwidth/2)}}t._rangeSliderData=i},r.autoMarginOpts=function(t,e){var r=t._fullLayout,n=e[s],l=e._id.charAt(0),c=0,u=0;&quot;bottom&quot;===e.side&amp;&amp;(c=e._depth,e.title.text!==r._dfltTitle[l]&amp;&amp;(u=1.5*e.title.font.size+10+n._offsetShift,u+=(e.title.text.match(i.BR_TAG_ALL)||[]).length*e.title.font.size*o));return{x:0,y:e._counterDomainMin,l:0,r:0,t:0,b:n._height+c+Math.max(r.margin.b,u),pad:a.extraPad+2*n._offsetShift}}},{&quot;../../constants/alignment&quot;:471,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plots/cartesian/axis_ids&quot;:558,&quot;./constants&quot;:440}],444:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./oppaxis_attributes&quot;),o=t(&quot;./helpers&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;rangeslider&quot;,schema:{subplots:{xaxis:{rangeslider:n.extendFlat({},i,{yaxis:a})}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:t(&quot;./draw&quot;),isVisible:o.isVisible,makeData:o.makeData,autoMarginOpts:o.autoMarginOpts}},{&quot;../../lib&quot;:503,&quot;./attributes&quot;:438,&quot;./calc_autorange&quot;:439,&quot;./defaults&quot;:441,&quot;./draw&quot;:442,&quot;./helpers&quot;:443,&quot;./oppaxis_attributes&quot;:445}],445:[function(t,e,r){&quot;use strict&quot;;e.exports={_isSubplotObj:!0,rangemode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;fixed&quot;,&quot;match&quot;],dflt:&quot;match&quot;,editType:&quot;calc&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;},{valType:&quot;any&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},editType:&quot;calc&quot;}},{}],446:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/attributes&quot;),i=t(&quot;../../traces/scatter/attributes&quot;).line,a=t(&quot;../drawing/attributes&quot;).dash,o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=s(&quot;shape&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;circle&quot;,&quot;rect&quot;,&quot;path&quot;,&quot;line&quot;],editType:&quot;calc+arraydraw&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;arraydraw&quot;},xref:o({},n.xref,{}),xsizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;pixel&quot;],dflt:&quot;scaled&quot;,editType:&quot;calc+arraydraw&quot;},xanchor:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},x0:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},x1:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},yref:o({},n.yref,{}),ysizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;pixel&quot;],dflt:&quot;scaled&quot;,editType:&quot;calc+arraydraw&quot;},yanchor:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},y0:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},y1:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},path:{valType:&quot;string&quot;,editType:&quot;calc+arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},line:{color:o({},i.color,{editType:&quot;arraydraw&quot;}),width:o({},i.width,{editType:&quot;calc+arraydraw&quot;}),dash:o({},a,{editType:&quot;arraydraw&quot;}),editType:&quot;calc+arraydraw&quot;},fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},fillrule:{valType:&quot;enumerated&quot;,values:[&quot;evenodd&quot;,&quot;nonzero&quot;],dflt:&quot;evenodd&quot;,editType:&quot;arraydraw&quot;},editable:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc+arraydraw&quot;},editType:&quot;arraydraw&quot;})},{&quot;../../constants/axis_placeable_objects&quot;:472,&quot;../../lib/extend&quot;:493,&quot;../../plot_api/plot_template&quot;:543,&quot;../../traces/scatter/attributes&quot;:926,&quot;../annotations/attributes&quot;:349,&quot;../drawing/attributes&quot;:387}],447:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;./constants&quot;),o=t(&quot;./helpers&quot;);function s(t){return c(t.line.width,t.xsizemode,t.x0,t.x1,t.path,!1)}function l(t){return c(t.line.width,t.ysizemode,t.y0,t.y1,t.path,!0)}function c(t,e,r,i,s,l){var c=t/2,u=l;if(&quot;pixel&quot;===e){var f=s?o.extractPathCoords(s,l?a.paramIsY:a.paramIsX):[r,i],h=n.aggNums(Math.max,null,f),p=n.aggNums(Math.min,null,f),d=p&lt;0?Math.abs(p)+c:c,m=h&gt;0?h+c:c;return{ppad:c,ppadplus:u?d:m,ppadminus:u?m:d}}return{ppad:c}}function u(t,e,r,n,i){var s=&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?t.r2c:t.d2c;if(void 0!==e)return[s(e),s(r)];if(n){var l,c,u,f,h=1/0,p=-1/0,d=n.match(a.segmentRE);for(&quot;date&quot;===t.type&amp;&amp;(s=o.decodeDate(s)),l=0;l&lt;d.length;l++)void 0!==(c=i[d[l].charAt(0)].drawn)&amp;&amp;(!(u=d[l].substr(1).match(a.paramRE))||u.length&lt;c||((f=s(u[c]))&lt;h&amp;&amp;(h=f),f&gt;p&amp;&amp;(p=f)));return p&gt;=h?[h,p]:void 0}}e.exports=function(t){var e=t._fullLayout,r=n.filterVisible(e.shapes);if(r.length&amp;&amp;t._fullData.length)for(var o=0;o&lt;r.length;o++){var c,f,h=r[o];h._extremes={};var p=i.getRefType(h.xref),d=i.getRefType(h.yref);if(&quot;paper&quot;!==h.xref&amp;&amp;&quot;domain&quot;!==p){var m=&quot;pixel&quot;===h.xsizemode?h.xanchor:h.x0,g=&quot;pixel&quot;===h.xsizemode?h.xanchor:h.x1;(f=u(c=i.getFromId(t,h.xref),m,g,h.path,a.paramIsX))&amp;&amp;(h._extremes[c._id]=i.findExtremes(c,f,s(h)))}if(&quot;paper&quot;!==h.yref&amp;&amp;&quot;domain&quot;!==d){var v=&quot;pixel&quot;===h.ysizemode?h.yanchor:h.y0,y=&quot;pixel&quot;===h.ysizemode?h.yanchor:h.y1;(f=u(c=i.getFromId(t,h.yref),v,y,h.path,a.paramIsY))&amp;&amp;(h._extremes[c._id]=i.findExtremes(c,f,l(h)))}}}},{&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554,&quot;./constants&quot;:448,&quot;./helpers&quot;:457}],448:[function(t,e,r){&quot;use strict&quot;;e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},{}],449:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;./helpers&quot;);function l(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}if(a(&quot;visible&quot;)){var l=a(&quot;path&quot;),c=a(&quot;type&quot;,l?&quot;path&quot;:&quot;rect&quot;);&quot;path&quot;!==e.type&amp;&amp;delete e.path,a(&quot;editable&quot;),a(&quot;layer&quot;),a(&quot;opacity&quot;),a(&quot;fillcolor&quot;),a(&quot;fillrule&quot;),a(&quot;line.width&quot;)&amp;&amp;(a(&quot;line.color&quot;),a(&quot;line.dash&quot;));for(var u=a(&quot;xsizemode&quot;),f=a(&quot;ysizemode&quot;),h=[&quot;x&quot;,&quot;y&quot;],p=0;p&lt;2;p++){var d,m,g,v=h[p],y=v+&quot;anchor&quot;,x=&quot;x&quot;===v?u:f,b={_fullLayout:r},_=i.coerceRef(t,e,b,v,void 0,&quot;paper&quot;);if(&quot;range&quot;===i.getRefType(_)?((d=i.getFromId(b,_))._shapeIndices.push(e._index),g=s.rangeToShapePosition(d),m=s.shapePositionToRange(d)):m=g=n.identity,&quot;path&quot;!==c){var w=v+&quot;0&quot;,T=v+&quot;1&quot;,k=t[w],A=t[T];t[w]=m(t[w],!0),t[T]=m(t[T],!0),&quot;pixel&quot;===x?(a(w,0),a(T,10)):(i.coercePosition(e,b,a,_,w,.25),i.coercePosition(e,b,a,_,T,.75)),e[w]=g(e[w]),e[T]=g(e[T]),t[w]=k,t[T]=A}if(&quot;pixel&quot;===x){var M=t[y];t[y]=m(t[y],!0),i.coercePosition(e,b,a,_,y,.25),e[y]=g(e[y]),t[y]=M}}&quot;path&quot;===c?a(&quot;path&quot;):n.noneOrAll(t,e,[&quot;x0&quot;,&quot;x1&quot;,&quot;y0&quot;,&quot;y1&quot;])}}e.exports=function(t,e){a(t,e,{name:&quot;shapes&quot;,handleItemDefaults:l})}},{&quot;../../lib&quot;:503,&quot;../../plots/array_container_defaults&quot;:549,&quot;../../plots/cartesian/axes&quot;:554,&quot;./attributes&quot;:446,&quot;./helpers&quot;:457}],450:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;./draw_newshape/helpers&quot;).readPaths,s=t(&quot;./draw_newshape/display_outlines&quot;),l=t(&quot;../../plots/cartesian/handle_outline&quot;).clearOutlineControllers,c=t(&quot;../color&quot;),u=t(&quot;../drawing&quot;),f=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,h=t(&quot;../dragelement&quot;),p=t(&quot;../../lib/setcursor&quot;),d=t(&quot;./constants&quot;),m=t(&quot;./helpers&quot;);function g(t){var e=t._fullLayout;for(var r in e._shapeUpperLayer.selectAll(&quot;path&quot;).remove(),e._shapeLowerLayer.selectAll(&quot;path&quot;).remove(),e._plots){var n=e._plots[r].shapelayer;n&amp;&amp;n.selectAll(&quot;path&quot;).remove()}for(var i=0;i&lt;e.shapes.length;i++)e.shapes[i].visible&amp;&amp;x(t,i)}function v(t){return!!t._fullLayout._drawing}function y(t){return!t._context.edits.shapePosition}function x(t,e){t._fullLayout._paperdiv.selectAll('.shapelayer [data-index=&quot;'+e+'&quot;]').remove();var r=m.makeOptionsAndPlotinfo(t,e),l=r.options,x=r.plotinfo;if(l._input&amp;&amp;!1!==l.visible)if(&quot;below&quot;!==l.layer)k(t._fullLayout._shapeUpperLayer);else if(&quot;paper&quot;===l.xref||&quot;paper&quot;===l.yref)k(t._fullLayout._shapeLowerLayer);else{if(x._hadPlotinfo)k((x.mainplotinfo||x).shapelayer);else k(t._fullLayout._shapeLowerLayer)}function k(r){var k=_(t,l),A={&quot;data-index&quot;:e,&quot;fill-rule&quot;:l.fillrule,d:k},M=l.opacity,S=l.fillcolor,E=l.line.width?l.line.color:&quot;rgba(0,0,0,0)&quot;,L=l.line.width,C=l.line.dash;L||!0!==l.editable||(L=5,C=&quot;solid&quot;);var P=&quot;Z&quot;!==k[k.length-1],I=y(t)&amp;&amp;l.editable&amp;&amp;t._fullLayout._activeShapeIndex===e;I&amp;&amp;(S=P?&quot;rgba(0,0,0,0)&quot;:t._fullLayout.activeshape.fillcolor,M=t._fullLayout.activeshape.opacity);var O,z=r.append(&quot;path&quot;).attr(A).style(&quot;opacity&quot;,M).call(c.stroke,E).call(c.fill,S).call(u.dashLine,C,L);if(b(z,t,l),(I||t._context.edits.shapePosition)&amp;&amp;(O=f(t.layout,&quot;shapes&quot;,l)),I){z.style({cursor:&quot;move&quot;});var D={element:z.node(),plotinfo:x,gd:t,editHelpers:O,isActiveShape:!0},R=o(k,t);s(R,z,D)}else t._context.edits.shapePosition?function(t,e,r,o,s,l){var c,f,g,y,x,T,k,A,M,S,E,L,C,P,I,O,z=&quot;pixel&quot;===r.xsizemode,D=&quot;pixel&quot;===r.ysizemode,R=&quot;line&quot;===r.type,F=&quot;path&quot;===r.type,B=l.modifyItem,N=a.getFromId(t,r.xref),j=a.getRefType(r.xref),U=a.getFromId(t,r.yref),V=a.getRefType(r.yref),H=m.getDataToPixel(t,N,!1,j),q=m.getDataToPixel(t,U,!0,V),G=m.getPixelToData(t,N,!1,j),Y=m.getPixelToData(t,U,!0,V),W=R?function(){var t=Math.max(r.line.width,10),n=s.append(&quot;g&quot;).attr(&quot;data-index&quot;,o);n.append(&quot;path&quot;).attr(&quot;d&quot;,e.attr(&quot;d&quot;)).style({cursor:&quot;move&quot;,&quot;stroke-width&quot;:t,&quot;stroke-opacity&quot;:&quot;0&quot;});var i={&quot;fill-opacity&quot;:&quot;0&quot;},a=Math.max(t/2,10);return n.append(&quot;circle&quot;).attr({&quot;data-line-point&quot;:&quot;start-point&quot;,cx:z?H(r.xanchor)+r.x0:H(r.x0),cy:D?q(r.yanchor)-r.y0:q(r.y0),r:a}).style(i).classed(&quot;cursor-grab&quot;,!0),n.append(&quot;circle&quot;).attr({&quot;data-line-point&quot;:&quot;end-point&quot;,cx:z?H(r.xanchor)+r.x1:H(r.x1),cy:D?q(r.yanchor)-r.y1:q(r.y1),r:a}).style(i).classed(&quot;cursor-grab&quot;,!0),n}():e,X={element:W.node(),gd:t,prepFn:function(n){if(v(t))return;z&amp;&amp;(x=H(r.xanchor));D&amp;&amp;(T=q(r.yanchor));&quot;path&quot;===r.type?I=r.path:(c=z?r.x0:H(r.x0),f=D?r.y0:q(r.y0),g=z?r.x1:H(r.x1),y=D?r.y1:q(r.y1));c&lt;g?(M=c,C=&quot;x0&quot;,S=g,P=&quot;x1&quot;):(M=g,C=&quot;x1&quot;,S=c,P=&quot;x0&quot;);!D&amp;&amp;f&lt;y||D&amp;&amp;f&gt;y?(k=f,E=&quot;y0&quot;,A=y,L=&quot;y1&quot;):(k=y,E=&quot;y1&quot;,A=f,L=&quot;y0&quot;);Z(n),Q(s,r),function(t,e,r){var n=e.xref,i=e.yref,o=a.getFromId(r,n),s=a.getFromId(r,i),l=&quot;&quot;;&quot;paper&quot;===n||o.autorange||(l+=n);&quot;paper&quot;===i||s.autorange||(l+=i);u.setClipUrl(t,l?&quot;clip&quot;+r._fullLayout._uid+l:null,r)}(e,r,t),X.moveFn=&quot;move&quot;===O?J:K,X.altKey=n.altKey},doneFn:function(){if(v(t))return;p(e),$(s),b(e,t,r),n.call(&quot;_guiRelayout&quot;,t,l.getUpdateObj())},clickFn:function(){if(v(t))return;$(s)}};function Z(r){if(v(t))O=null;else if(R)O=&quot;path&quot;===r.target.tagName?&quot;move&quot;:&quot;start-point&quot;===r.target.attributes[&quot;data-line-point&quot;].value?&quot;resize-over-start-point&quot;:&quot;resize-over-end-point&quot;;else{var n=X.element.getBoundingClientRect(),i=n.right-n.left,a=n.bottom-n.top,o=r.clientX-n.left,s=r.clientY-n.top,l=!F&amp;&amp;i&gt;10&amp;&amp;a&gt;10&amp;&amp;!r.shiftKey?h.getCursor(o/i,1-s/a):&quot;move&quot;;p(e,l),O=l.split(&quot;-&quot;)[0]}}function J(n,i){if(&quot;path&quot;===r.type){var a=function(t){return t},o=a,l=a;z?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(o=function(t){return G(H(t)+n)},N&amp;&amp;&quot;date&quot;===N.type&amp;&amp;(o=m.encodeDate(o))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(l=function(t){return Y(q(t)+i)},U&amp;&amp;&quot;date&quot;===U.type&amp;&amp;(l=m.encodeDate(l))),B(&quot;path&quot;,r.path=w(I,o,l))}else z?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(B(&quot;x0&quot;,r.x0=G(c+n)),B(&quot;x1&quot;,r.x1=G(g+n))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(B(&quot;y0&quot;,r.y0=Y(f+i)),B(&quot;y1&quot;,r.y1=Y(y+i)));e.attr(&quot;d&quot;,_(t,r)),Q(s,r)}function K(n,i){if(F){var a=function(t){return t},o=a,l=a;z?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(o=function(t){return G(H(t)+n)},N&amp;&amp;&quot;date&quot;===N.type&amp;&amp;(o=m.encodeDate(o))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(l=function(t){return Y(q(t)+i)},U&amp;&amp;&quot;date&quot;===U.type&amp;&amp;(l=m.encodeDate(l))),B(&quot;path&quot;,r.path=w(I,o,l))}else if(R){if(&quot;resize-over-start-point&quot;===O){var u=c+n,h=D?f-i:f+i;B(&quot;x0&quot;,r.x0=z?u:G(u)),B(&quot;y0&quot;,r.y0=D?h:Y(h))}else if(&quot;resize-over-end-point&quot;===O){var p=g+n,d=D?y-i:y+i;B(&quot;x1&quot;,r.x1=z?p:G(p)),B(&quot;y1&quot;,r.y1=D?d:Y(d))}}else{var v=function(t){return-1!==O.indexOf(t)},b=v(&quot;n&quot;),j=v(&quot;s&quot;),V=v(&quot;w&quot;),W=v(&quot;e&quot;),X=b?k+i:k,Z=j?A+i:A,J=V?M+n:M,K=W?S+n:S;D&amp;&amp;(b&amp;&amp;(X=k-i),j&amp;&amp;(Z=A-i)),(!D&amp;&amp;Z-X&gt;10||D&amp;&amp;X-Z&gt;10)&amp;&amp;(B(E,r[E]=D?X:Y(X)),B(L,r[L]=D?Z:Y(Z))),K-J&gt;10&amp;&amp;(B(C,r[C]=z?J:G(J)),B(P,r[P]=z?K:G(K)))}e.attr(&quot;d&quot;,_(t,r)),Q(s,r)}function Q(t,e){(z||D)&amp;&amp;function(){var r=&quot;path&quot;!==e.type,n=t.selectAll(&quot;.visual-cue&quot;).data([0]);n.enter().append(&quot;path&quot;).attr({fill:&quot;#fff&quot;,&quot;fill-rule&quot;:&quot;evenodd&quot;,stroke:&quot;#000&quot;,&quot;stroke-width&quot;:1}).classed(&quot;visual-cue&quot;,!0);var a=H(z?e.xanchor:i.midRange(r?[e.x0,e.x1]:m.extractPathCoords(e.path,d.paramIsX))),o=q(D?e.yanchor:i.midRange(r?[e.y0,e.y1]:m.extractPathCoords(e.path,d.paramIsY)));if(a=m.roundPositionForSharpStrokeRendering(a,1),o=m.roundPositionForSharpStrokeRendering(o,1),z&amp;&amp;D){var s=&quot;M&quot;+(a-1-1)+&quot;,&quot;+(o-1-1)+&quot;h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z&quot;;n.attr(&quot;d&quot;,s)}else if(z){var l=&quot;M&quot;+(a-1-1)+&quot;,&quot;+(o-9-1)+&quot;v18 h2 v-18 Z&quot;;n.attr(&quot;d&quot;,l)}else{var c=&quot;M&quot;+(a-9-1)+&quot;,&quot;+(o-1-1)+&quot;h18 v2 h-18 Z&quot;;n.attr(&quot;d&quot;,c)}}()}function $(t){t.selectAll(&quot;.visual-cue&quot;).remove()}h.init(X),W.node().onmousemove=Z}(t,z,l,e,r,O):!0===l.editable&amp;&amp;z.style(&quot;pointer-events&quot;,P||c.opacity(S)*M&lt;=.5?&quot;stroke&quot;:&quot;all&quot;);z.node().addEventListener(&quot;click&quot;,(function(){return function(t,e){if(!y(t))return;var r=+e.node().getAttribute(&quot;data-index&quot;);if(r&gt;=0){if(r===t._fullLayout._activeShapeIndex)return void T(t);t._fullLayout._activeShapeIndex=r,t._fullLayout._deactivateShape=T,g(t)}}(t,z)}))}}function b(t,e,r){var n=(r.xref+r.yref).replace(/paper/g,&quot;&quot;).replace(/[xyz][1-9]* *domain/g,&quot;&quot;);u.setClipUrl(t,n?&quot;clip&quot;+e._fullLayout._uid+n:null,e)}function _(t,e){var r,n,o,s,l,c,u,f,h=e.type,p=a.getRefType(e.xref),g=a.getRefType(e.yref),v=a.getFromId(t,e.xref),y=a.getFromId(t,e.yref),x=t._fullLayout._size;if(v?&quot;domain&quot;===p?n=function(t){return v._offset+v._length*t}:(r=m.shapePositionToRange(v),n=function(t){return v._offset+v.r2p(r(t,!0))}):n=function(t){return x.l+x.w*t},y?&quot;domain&quot;===g?s=function(t){return y._offset+y._length*(1-t)}:(o=m.shapePositionToRange(y),s=function(t){return y._offset+y.r2p(o(t,!0))}):s=function(t){return x.t+x.h*(1-t)},&quot;path&quot;===h)return v&amp;&amp;&quot;date&quot;===v.type&amp;&amp;(n=m.decodeDate(n)),y&amp;&amp;&quot;date&quot;===y.type&amp;&amp;(s=m.decodeDate(s)),function(t,e,r){var n=t.path,a=t.xsizemode,o=t.ysizemode,s=t.xanchor,l=t.yanchor;return n.replace(d.segmentRE,(function(t){var n=0,c=t.charAt(0),u=d.paramIsX[c],f=d.paramIsY[c],h=d.numParams[c],p=t.substr(1).replace(d.paramRE,(function(t){return u[n]?t=&quot;pixel&quot;===a?e(s)+Number(t):e(t):f[n]&amp;&amp;(t=&quot;pixel&quot;===o?r(l)-Number(t):r(t)),++n&gt;h&amp;&amp;(t=&quot;X&quot;),t}));return n&gt;h&amp;&amp;(p=p.replace(/[\s,]*X.*/,&quot;&quot;),i.log(&quot;Ignoring extra params in segment &quot;+t)),c+p}))}(e,n,s);if(&quot;pixel&quot;===e.xsizemode){var b=n(e.xanchor);l=b+e.x0,c=b+e.x1}else l=n(e.x0),c=n(e.x1);if(&quot;pixel&quot;===e.ysizemode){var _=s(e.yanchor);u=_-e.y0,f=_-e.y1}else u=s(e.y0),f=s(e.y1);if(&quot;line&quot;===h)return&quot;M&quot;+l+&quot;,&quot;+u+&quot;L&quot;+c+&quot;,&quot;+f;if(&quot;rect&quot;===h)return&quot;M&quot;+l+&quot;,&quot;+u+&quot;H&quot;+c+&quot;V&quot;+f+&quot;H&quot;+l+&quot;Z&quot;;var w=(l+c)/2,T=(u+f)/2,k=Math.abs(w-l),A=Math.abs(T-u),M=&quot;A&quot;+k+&quot;,&quot;+A,S=w+k+&quot;,&quot;+T;return&quot;M&quot;+S+M+&quot; 0 1,1 &quot;+(w+&quot;,&quot;+(T-A))+M+&quot; 0 0,1 &quot;+S+&quot;Z&quot;}function w(t,e,r){return t.replace(d.segmentRE,(function(t){var n=0,i=t.charAt(0),a=d.paramIsX[i],o=d.paramIsY[i],s=d.numParams[i];return i+t.substr(1).replace(d.paramRE,(function(t){return n&gt;=s||(a[n]?t=e(t):o[n]&amp;&amp;(t=r(t)),n++),t}))}))}function T(t){y(t)&amp;&amp;(t._fullLayout._activeShapeIndex&gt;=0&amp;&amp;(l(t),delete t._fullLayout._activeShapeIndex,g(t)))}e.exports={draw:g,drawOne:x,eraseActiveShape:function(t){if(!y(t))return;l(t);var e=t._fullLayout._activeShapeIndex,r=(t.layout||{}).shapes||[];if(e&lt;r.length){for(var i=[],a=0;a&lt;r.length;a++)a!==e&amp;&amp;i.push(r[a]);delete t._fullLayout._activeShapeIndex,n.call(&quot;_guiRelayout&quot;,t,{shapes:i})}}}},{&quot;../../lib&quot;:503,&quot;../../lib/setcursor&quot;:524,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../plots/cartesian/handle_outline&quot;:565,&quot;../../registry&quot;:638,&quot;../color&quot;:366,&quot;../dragelement&quot;:385,&quot;../drawing&quot;:388,&quot;./constants&quot;:448,&quot;./draw_newshape/display_outlines&quot;:454,&quot;./draw_newshape/helpers&quot;:455,&quot;./helpers&quot;:457}],451:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../drawing/attributes&quot;).dash,i=t(&quot;../../../lib/extend&quot;).extendFlat;e.exports={newshape:{line:{color:{valType:&quot;color&quot;,editType:&quot;none&quot;},width:{valType:&quot;number&quot;,min:0,dflt:4,editType:&quot;none&quot;},dash:i({},n,{dflt:&quot;solid&quot;,editType:&quot;none&quot;}),editType:&quot;none&quot;},fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;none&quot;},fillrule:{valType:&quot;enumerated&quot;,values:[&quot;evenodd&quot;,&quot;nonzero&quot;],dflt:&quot;evenodd&quot;,editType:&quot;none&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;none&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;none&quot;},drawdirection:{valType:&quot;enumerated&quot;,values:[&quot;ortho&quot;,&quot;horizontal&quot;,&quot;vertical&quot;,&quot;diagonal&quot;],dflt:&quot;diagonal&quot;,editType:&quot;none&quot;},editType:&quot;none&quot;},activeshape:{fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgb(255,0,255)&quot;,editType:&quot;none&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;none&quot;},editType:&quot;none&quot;}}},{&quot;../../../lib/extend&quot;:493,&quot;../../drawing/attributes&quot;:387}],452:[function(t,e,r){&quot;use strict&quot;;e.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},{}],453:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../color&quot;);e.exports=function(t,e,r){if(r(&quot;newshape.drawdirection&quot;),r(&quot;newshape.layer&quot;),r(&quot;newshape.fillcolor&quot;),r(&quot;newshape.fillrule&quot;),r(&quot;newshape.opacity&quot;),r(&quot;newshape.line.width&quot;)){var i=(t||{}).plot_bgcolor||&quot;#FFF&quot;;r(&quot;newshape.line.color&quot;,n.contrast(i)),r(&quot;newshape.line.dash&quot;)}r(&quot;activeshape.fillcolor&quot;),r(&quot;activeshape.opacity&quot;)}},{&quot;../../color&quot;:366}],454:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../dragelement&quot;),i=t(&quot;../../dragelement/helpers&quot;).drawMode,a=t(&quot;../../../registry&quot;),o=t(&quot;./constants&quot;),s=o.i000,l=o.i090,c=o.i180,u=o.i270,f=t(&quot;../../../plots/cartesian/handle_outline&quot;).clearOutlineControllers,h=t(&quot;./helpers&quot;),p=h.pointsShapeRectangle,d=h.pointsShapeEllipse,m=h.writePaths,g=t(&quot;./newshapes&quot;);e.exports=function t(e,r,o,h){h||(h=0);var v=o.gd;function y(){t(e,r,o,h++),d(e[0])&amp;&amp;x({redrawing:!0})}function x(t){o.isActiveShape=!1;var e=g(r,o);Object.keys(e).length&amp;&amp;a.call((t||{}).redrawing?&quot;relayout&quot;:&quot;_guiRelayout&quot;,v,e)}var b,_,w,T,k,A=o.isActiveShape,M=v._fullLayout._zoomlayer,S=o.dragmode;(i(S)?v._fullLayout._drawing=!0:v._fullLayout._activeShapeIndex&gt;=0&amp;&amp;f(v),r.attr(&quot;d&quot;,m(e)),A&amp;&amp;!h)&amp;&amp;(k=function(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r];t[r]=[];for(var i=0;i&lt;n.length;i++){t[r][i]=[];for(var a=0;a&lt;n[i].length;a++)t[r][i][a]=n[i][a]}}return t}([],e),function(t){b=[];for(var r=0;r&lt;e.length;r++){var i=e[r],a=!p(i)&amp;&amp;d(i);b[r]=[];for(var o=0;o&lt;i.length;o++)if(&quot;Z&quot;!==i[o][0]&amp;&amp;(!a||o===s||o===l||o===c||o===u)){var f=i[o][1],h=i[o][2],m=t.append(&quot;circle&quot;).classed(&quot;cursor-grab&quot;,!0).attr(&quot;data-i&quot;,r).attr(&quot;data-j&quot;,o).attr(&quot;cx&quot;,f).attr(&quot;cy&quot;,h).attr(&quot;r&quot;,4).style({&quot;mix-blend-mode&quot;:&quot;luminosity&quot;,fill:&quot;black&quot;,stroke:&quot;white&quot;,&quot;stroke-width&quot;:1});b[r][o]={element:m.node(),gd:v,prepFn:E,doneFn:C,clickFn:P},n.init(b[r][o])}}}(M.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;outline-controllers&quot;)),function(){if(_=[],!e.length)return;_[0]={element:r[0][0],gd:v,prepFn:O,doneFn:z},n.init(_[0])}());function E(t){w=+t.srcElement.getAttribute(&quot;data-i&quot;),T=+t.srcElement.getAttribute(&quot;data-j&quot;),b[w][T].moveFn=L}function L(t,r){if(e.length){var n=k[w][T][1],i=k[w][T][2],a=e[w],o=a.length;if(p(a)){for(var s=0;s&lt;o;s++)if(s!==T){var l=a[s];l[1]===a[T][1]&amp;&amp;(l[1]=n+t),l[2]===a[T][2]&amp;&amp;(l[2]=i+r)}if(a[T][1]=n+t,a[T][2]=i+r,!p(a))for(var c=0;c&lt;o;c++)for(var u=0;u&lt;a[c].length;u++)a[c][u]=k[w][c][u]}else a[T][1]=n+t,a[T][2]=i+r;y()}}function C(){x()}function P(t,r){if(2===t){w=+r.srcElement.getAttribute(&quot;data-i&quot;),T=+r.srcElement.getAttribute(&quot;data-j&quot;);var n=e[w];p(n)||d(n)||function(){if(e.length&amp;&amp;e[w]&amp;&amp;e[w].length){for(var t=[],r=0;r&lt;e[w].length;r++)r!==T&amp;&amp;t.push(e[w][r]);t.length&gt;1&amp;&amp;(2!==t.length||&quot;Z&quot;!==t[1][0])&amp;&amp;(0===T&amp;&amp;(t[0][0]=&quot;M&quot;),e[w]=t,y(),x())}}()}}function I(t,r){!function(t,r){if(e.length)for(var n=0;n&lt;e.length;n++)for(var i=0;i&lt;e[n].length;i++)for(var a=0;a+2&lt;e[n][i].length;a+=2)e[n][i][a+1]=k[n][i][a+1]+t,e[n][i][a+2]=k[n][i][a+2]+r}(t,r),y()}function O(t){(w=+t.srcElement.getAttribute(&quot;data-i&quot;))||(w=0),_[w].moveFn=I}function z(){x()}}},{&quot;../../../plots/cartesian/handle_outline&quot;:565,&quot;../../../registry&quot;:638,&quot;../../dragelement&quot;:385,&quot;../../dragelement/helpers&quot;:384,&quot;./constants&quot;:452,&quot;./helpers&quot;:455,&quot;./newshapes&quot;:456}],455:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-svg-path&quot;),i=t(&quot;./constants&quot;),a=i.CIRCLE_SIDES,o=i.SQRT2,s=t(&quot;../../../plots/cartesian/helpers&quot;),l=s.p2r,c=s.r2p,u=[0,3,4,5,6,1,2],f=[0,3,4,1,2];function h(t,e){return Math.abs(t-e)&lt;=1e-6}function p(t,e){var r=e[1]-t[1],n=e[2]-t[2];return Math.sqrt(r*r+n*n)}r.writePaths=function(t){var e=t.length;if(!e)return&quot;M0,0Z&quot;;for(var r=&quot;&quot;,n=0;n&lt;e;n++)for(var i=t[n].length,a=0;a&lt;i;a++){var o=t[n][a][0];if(&quot;Z&quot;===o)r+=&quot;Z&quot;;else for(var s=t[n][a].length,l=0;l&lt;s;l++){var c=l;&quot;Q&quot;===o||&quot;S&quot;===o?c=f[l]:&quot;C&quot;===o&amp;&amp;(c=u[l]),r+=t[n][a][c],l&gt;0&amp;&amp;l&lt;s-1&amp;&amp;(r+=&quot;,&quot;)}}return r},r.readPaths=function(t,e,r,i){var o,s,u,f=n(t),h=[],p=-1,d=0,m=0,g=function(){s=d,u=m};g();for(var v=0;v&lt;f.length;v++){var y,x,b,_,w=[],T=f[v][0],k=T;switch(T){case&quot;M&quot;:p++,h[p]=[],d=+f[v][1],m=+f[v][2],w.push([k,d,m]),g();break;case&quot;Q&quot;:case&quot;S&quot;:y=+f[v][1],b=+f[v][2],d=+f[v][3],m=+f[v][4],w.push([k,d,m,y,b]);break;case&quot;C&quot;:y=+f[v][1],b=+f[v][2],x=+f[v][3],_=+f[v][4],d=+f[v][5],m=+f[v][6],w.push([k,d,m,y,b,x,_]);break;case&quot;T&quot;:case&quot;L&quot;:d=+f[v][1],m=+f[v][2],w.push([k,d,m]);break;case&quot;H&quot;:k=&quot;L&quot;,d=+f[v][1],w.push([k,d,m]);break;case&quot;V&quot;:k=&quot;L&quot;,m=+f[v][1],w.push([k,d,m]);break;case&quot;A&quot;:k=&quot;L&quot;;var A=+f[v][1],M=+f[v][2];+f[v][4]||(A=-A,M=-M);var S=d-A,E=m;for(o=1;o&lt;=a/2;o++){var L=2*Math.PI*o/a;w.push([k,S+A*Math.cos(L),E+M*Math.sin(L)])}break;case&quot;Z&quot;:d===s&amp;&amp;m===u||(d=s,m=u,w.push([k,d,m]))}for(var C=(r||{}).domain,P=e._fullLayout._size,I=r&amp;&amp;&quot;pixel&quot;===r.xsizemode,O=r&amp;&amp;&quot;pixel&quot;===r.ysizemode,z=!1===i,D=0;D&lt;w.length;D++){for(o=0;o+2&lt;7;o+=2){var R=w[D][o+1],F=w[D][o+2];void 0!==R&amp;&amp;void 0!==F&amp;&amp;(d=R,m=F,r&amp;&amp;(r.xaxis&amp;&amp;r.xaxis.p2r?(z&amp;&amp;(R-=r.xaxis._offset),R=I?c(r.xaxis,r.xanchor)+R:l(r.xaxis,R)):(z&amp;&amp;(R-=P.l),C?R=C.x[0]+R/P.w:R/=P.w),r.yaxis&amp;&amp;r.yaxis.p2r?(z&amp;&amp;(F-=r.yaxis._offset),F=O?c(r.yaxis,r.yanchor)-F:l(r.yaxis,F)):(z&amp;&amp;(F-=P.t),F=C?C.y[1]-F/P.h:1-F/P.h)),w[D][o+1]=R,w[D][o+2]=F)}h[p].push(w[D].slice())}}return h},r.pointsShapeRectangle=function(t){if(5!==t.length)return!1;for(var e=1;e&lt;3;e++){if(!h(t[0][e]-t[1][e],t[3][e]-t[2][e]))return!1;if(!h(t[0][e]-t[3][e],t[1][e]-t[2][e]))return!1}return!(!h(t[0][1],t[1][1])&amp;&amp;!h(t[0][1],t[3][1]))&amp;&amp;!!(p(t[0],t[1])*p(t[0],t[3]))},r.pointsShapeEllipse=function(t){var e=t.length;if(e!==a+1)return!1;e=a;for(var r=0;r&lt;e;r++){var n=(2*e-r)%e,i=(e/2+n)%e,o=(e/2+r)%e;if(!h(p(t[r],t[o]),p(t[n],t[i])))return!1}return!0},r.handleEllipse=function(t,e,n){if(!t)return[e,n];var i=r.ellipseOver({x0:e[0],y0:e[1],x1:n[0],y1:n[1]}),s=(i.x1+i.x0)/2,l=(i.y1+i.y0)/2,c=(i.x1-i.x0)/2,u=(i.y1-i.y0)/2;c||(c=u/=o),u||(u=c/=o);for(var f=[],h=0;h&lt;a;h++){var p=2*h*Math.PI/a;f.push([s+c*Math.cos(p),l+u*Math.sin(p)])}return f},r.ellipseOver=function(t){var e=t.x0,r=t.y0,n=t.x1,i=t.y1,a=n-e,s=i-r,l=((e-=a)+n)/2,c=((r-=s)+i)/2;return{x0:l-(a*=o),y0:c-(s*=o),x1:l+a,y1:c+s}}},{&quot;../../../plots/cartesian/helpers&quot;:566,&quot;./constants&quot;:452,&quot;parse-svg-path&quot;:250}],456:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../dragelement/helpers&quot;),i=n.drawMode,a=n.openMode,o=t(&quot;./constants&quot;),s=o.i000,l=o.i090,c=o.i180,u=o.i270,f=o.cos45,h=o.sin45,p=t(&quot;../../../plots/cartesian/helpers&quot;),d=p.p2r,m=p.r2p,g=t(&quot;../../../plots/cartesian/handle_outline&quot;).clearSelect,v=t(&quot;./helpers&quot;),y=v.readPaths,x=v.writePaths,b=v.ellipseOver;e.exports=function(t,e){if(t.length){var r=t[0][0];if(r){var n=r.getAttribute(&quot;d&quot;),o=e.gd,p=o._fullLayout.newshape,v=e.plotinfo,_=v.xaxis,w=v.yaxis,T=!!v.domain||!v.xaxis,k=!!v.domain||!v.yaxis,A=e.isActiveShape,M=e.dragmode,S=(o.layout||{}).shapes||[];if(!i(M)&amp;&amp;void 0!==A){var E=o._fullLayout._activeShapeIndex;if(E&lt;S.length)switch(o._fullLayout.shapes[E].type){case&quot;rect&quot;:M=&quot;drawrect&quot;;break;case&quot;circle&quot;:M=&quot;drawcircle&quot;;break;case&quot;line&quot;:M=&quot;drawline&quot;;break;case&quot;path&quot;:var L=S[E].path||&quot;&quot;;M=&quot;Z&quot;===L[L.length-1]?&quot;drawclosedpath&quot;:&quot;drawopenpath&quot;}}var C,P=a(M),I=y(n,o,v,A),O={editable:!0,xref:T?&quot;paper&quot;:_._id,yref:k?&quot;paper&quot;:w._id,layer:p.layer,opacity:p.opacity,line:{color:p.line.color,width:p.line.width,dash:p.line.dash}};if(P||(O.fillcolor=p.fillcolor,O.fillrule=p.fillrule),1===I.length&amp;&amp;(C=I[0]),C&amp;&amp;&quot;drawrect&quot;===M)O.type=&quot;rect&quot;,O.x0=C[0][1],O.y0=C[0][2],O.x1=C[2][1],O.y1=C[2][2];else if(C&amp;&amp;&quot;drawline&quot;===M)O.type=&quot;line&quot;,O.x0=C[0][1],O.y0=C[0][2],O.x1=C[1][1],O.y1=C[1][2];else if(C&amp;&amp;&quot;drawcircle&quot;===M){O.type=&quot;circle&quot;;var z=C[s][1],D=C[l][1],R=C[c][1],F=C[u][1],B=C[s][2],N=C[l][2],j=C[c][2],U=C[u][2],V=v.xaxis&amp;&amp;(&quot;date&quot;===v.xaxis.type||&quot;log&quot;===v.xaxis.type),H=v.yaxis&amp;&amp;(&quot;date&quot;===v.yaxis.type||&quot;log&quot;===v.yaxis.type);V&amp;&amp;(z=m(v.xaxis,z),D=m(v.xaxis,D),R=m(v.xaxis,R),F=m(v.xaxis,F)),H&amp;&amp;(B=m(v.yaxis,B),N=m(v.yaxis,N),j=m(v.yaxis,j),U=m(v.yaxis,U));var q=(D+F)/2,G=(B+j)/2,Y=b({x0:q,y0:G,x1:q+(F-D+R-z)/2*f,y1:G+(U-N+j-B)/2*h});V&amp;&amp;(Y.x0=d(v.xaxis,Y.x0),Y.x1=d(v.xaxis,Y.x1)),H&amp;&amp;(Y.y0=d(v.yaxis,Y.y0),Y.y1=d(v.yaxis,Y.y1)),O.x0=Y.x0,O.y0=Y.y0,O.x1=Y.x1,O.y1=Y.y1}else O.type=&quot;path&quot;,_&amp;&amp;w&amp;&amp;function(t,e,r){var n=&quot;date&quot;===e.type,i=&quot;date&quot;===r.type;if(!n&amp;&amp;!i)return t;for(var a=0;a&lt;t.length;a++)for(var o=0;o&lt;t[a].length;o++)for(var s=0;s+2&lt;t[a][o].length;s+=2)n&amp;&amp;(t[a][o][s+1]=t[a][o][s+1].replace(&quot; &quot;,&quot;_&quot;)),i&amp;&amp;(t[a][o][s+2]=t[a][o][s+2].replace(&quot; &quot;,&quot;_&quot;))}(I,_,w),O.path=x(I),C=null;g(o);for(var W=e.editHelpers,X=(W||{}).modifyItem,Z=[],J=0;J&lt;S.length;J++){var K=o._fullLayout.shapes[J];if(Z[J]=K._input,void 0!==A&amp;&amp;J===o._fullLayout._activeShapeIndex){var Q=O;switch(K.type){case&quot;line&quot;:case&quot;rect&quot;:case&quot;circle&quot;:X(&quot;x0&quot;,Q.x0),X(&quot;x1&quot;,Q.x1),X(&quot;y0&quot;,Q.y0),X(&quot;y1&quot;,Q.y1);break;case&quot;path&quot;:X(&quot;path&quot;,Q.path)}}}return void 0===A?(Z.push(O),Z):W?W.getUpdateObj():{}}}}},{&quot;../../../plots/cartesian/handle_outline&quot;:565,&quot;../../../plots/cartesian/helpers&quot;:566,&quot;../../dragelement/helpers&quot;:384,&quot;./constants&quot;:452,&quot;./helpers&quot;:455}],457:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib&quot;);r.rangeToShapePosition=function(t){return&quot;log&quot;===t.type?t.r2d:function(t){return t}},r.shapePositionToRange=function(t){return&quot;log&quot;===t.type?t.d2r:function(t){return t}},r.decodeDate=function(t){return function(e){return e.replace&amp;&amp;(e=e.replace(&quot;_&quot;,&quot; &quot;)),t(e)}},r.encodeDate=function(t){return function(e){return t(e).replace(&quot; &quot;,&quot;_&quot;)}},r.extractPathCoords=function(t,e){var r=[];return t.match(n.segmentRE).forEach((function(t){var a=e[t.charAt(0)].drawn;if(void 0!==a){var o=t.substr(1).match(n.paramRE);!o||o.length&lt;a||r.push(i.cleanNumber(o[a]))}})),r},r.getDataToPixel=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if(&quot;domain&quot;===i)a=function(t){return e._length*(n?1-t:t)+e._offset};else{var s=r.shapePositionToRange(e);a=function(t){return e._offset+e.r2p(s(t,!0))},&quot;date&quot;===e.type&amp;&amp;(a=r.decodeDate(a))}else a=n?function(t){return o.t+o.h*(1-t)}:function(t){return o.l+o.w*t};return a},r.getPixelToData=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if(&quot;domain&quot;===i)a=function(t){var r=(t-e._offset)/e._length;return n?1-r:r};else{var s=r.rangeToShapePosition(e);a=function(t){return s(e.p2r(t-e._offset))}}else a=n?function(t){return 1-(t-o.t)/o.h}:function(t){return(t-o.l)/o.w};return a},r.roundPositionForSharpStrokeRendering=function(t,e){var r=1===Math.round(e%2),n=Math.round(t);return r?n+.5:n},r.makeOptionsAndPlotinfo=function(t,e){var r=t._fullLayout.shapes[e]||{},n=t._fullLayout._plots[r.xref+r.yref];return!!n?n._hadPlotinfo=!0:(n={},r.xref&amp;&amp;&quot;paper&quot;!==r.xref&amp;&amp;(n.xaxis=t._fullLayout[r.xref+&quot;axis&quot;]),r.yref&amp;&amp;&quot;paper&quot;!==r.yref&amp;&amp;(n.yaxis=t._fullLayout[r.yref+&quot;axis&quot;])),n.xsizemode=r.xsizemode,n.ysizemode=r.ysizemode,n.xanchor=r.xanchor,n.yanchor=r.yanchor,{options:r,plotinfo:n}}},{&quot;../../lib&quot;:503,&quot;./constants&quot;:448}],458:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;shapes&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),supplyDrawNewShapeDefaults:t(&quot;./draw_newshape/defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;shapes&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:n.draw,drawOne:n.drawOne}},{&quot;../../plots/cartesian/include_components&quot;:567,&quot;./attributes&quot;:446,&quot;./calc_autorange&quot;:447,&quot;./defaults&quot;:449,&quot;./draw&quot;:450,&quot;./draw_newshape/defaults&quot;:453}],459:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../plots/pad_attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendDeepAll,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../plots/animation_attributes&quot;),l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=t(&quot;./constants&quot;),u=l(&quot;step&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},method:{valType:&quot;enumerated&quot;,values:[&quot;restyle&quot;,&quot;relayout&quot;,&quot;animate&quot;,&quot;update&quot;,&quot;skip&quot;],dflt:&quot;restyle&quot;},args:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},label:{valType:&quot;string&quot;},value:{valType:&quot;string&quot;},execute:{valType:&quot;boolean&quot;,dflt:!0}});e.exports=o(l(&quot;slider&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},active:{valType:&quot;number&quot;,min:0,dflt:0},steps:u,lenmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;fraction&quot;},len:{valType:&quot;number&quot;,min:0,dflt:1},x:{valType:&quot;number&quot;,min:-2,max:3,dflt:0},pad:a(i({editType:&quot;arraydraw&quot;}),{},{t:{dflt:20}}),xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,dflt:0},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;},transition:{duration:{valType:&quot;number&quot;,min:0,dflt:150},easing:{valType:&quot;enumerated&quot;,values:s.transition.easing.values,dflt:&quot;cubic-in-out&quot;}},currentvalue:{visible:{valType:&quot;boolean&quot;,dflt:!0},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},offset:{valType:&quot;number&quot;,dflt:10},prefix:{valType:&quot;string&quot;},suffix:{valType:&quot;string&quot;},font:n({})},font:n({}),activebgcolor:{valType:&quot;color&quot;,dflt:c.gripBgActiveColor},bgcolor:{valType:&quot;color&quot;,dflt:c.railBgColor},bordercolor:{valType:&quot;color&quot;,dflt:c.railBorderColor},borderwidth:{valType:&quot;number&quot;,min:0,dflt:c.railBorderWidth},ticklen:{valType:&quot;number&quot;,min:0,dflt:c.tickLength},tickcolor:{valType:&quot;color&quot;,dflt:c.tickColor},tickwidth:{valType:&quot;number&quot;,min:0,dflt:1},minorticklen:{valType:&quot;number&quot;,min:0,dflt:c.minorTickLength}}),&quot;arraydraw&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:493,&quot;../../plot_api/edit_types&quot;:536,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/animation_attributes&quot;:548,&quot;../../plots/font_attributes&quot;:585,&quot;../../plots/pad_attributes&quot;:618,&quot;./constants&quot;:460}],460:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;sliders&quot;,containerClassName:&quot;slider-container&quot;,groupClassName:&quot;slider-group&quot;,inputAreaClass:&quot;slider-input-area&quot;,railRectClass:&quot;slider-rail-rect&quot;,railTouchRectClass:&quot;slider-rail-touch-rect&quot;,gripRectClass:&quot;slider-grip-rect&quot;,tickRectClass:&quot;slider-tick-rect&quot;,inputProxyClass:&quot;slider-input-proxy&quot;,labelsClass:&quot;slider-labels&quot;,labelGroupClass:&quot;slider-label-group&quot;,labelClass:&quot;slider-label&quot;,currentValueClass:&quot;slider-current-value&quot;,railHeight:5,menuIndexAttrName:&quot;slider-active-index&quot;,autoMarginIdRoot:&quot;slider-&quot;,minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:&quot;#bec8d9&quot;,railBgColor:&quot;#f8fafc&quot;,railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:&quot;#bec8d9&quot;,gripBgColor:&quot;#f6f8fa&quot;,gripBgActiveColor:&quot;#dbdde0&quot;,labelPadding:8,labelOffset:0,tickWidth:1,tickColor:&quot;#333&quot;,tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:&quot;#333&quot;,minorTickLength:4,currentValuePadding:8,currentValueInset:0}},{}],461:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;).name,s=a.steps;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}for(var s=i(t,e,{name:&quot;steps&quot;,handleItemDefaults:c}),l=0,u=0;u&lt;s.length;u++)s[u].visible&amp;&amp;l++;if(l&lt;2?e.visible=!1:o(&quot;visible&quot;)){e._stepCount=l;var f=e._visibleSteps=n.filterVisible(s);(s[o(&quot;active&quot;)]||{}).visible||(e.active=f[0]._index),o(&quot;x&quot;),o(&quot;y&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),o(&quot;xanchor&quot;),o(&quot;yanchor&quot;),o(&quot;len&quot;),o(&quot;lenmode&quot;),o(&quot;pad.t&quot;),o(&quot;pad.r&quot;),o(&quot;pad.b&quot;),o(&quot;pad.l&quot;),n.coerceFont(o,&quot;font&quot;,r.font),o(&quot;currentvalue.visible&quot;)&amp;&amp;(o(&quot;currentvalue.xanchor&quot;),o(&quot;currentvalue.prefix&quot;),o(&quot;currentvalue.suffix&quot;),o(&quot;currentvalue.offset&quot;),n.coerceFont(o,&quot;currentvalue.font&quot;,e.font)),o(&quot;transition.duration&quot;),o(&quot;transition.easing&quot;),o(&quot;bgcolor&quot;),o(&quot;activebgcolor&quot;),o(&quot;bordercolor&quot;),o(&quot;borderwidth&quot;),o(&quot;ticklen&quot;),o(&quot;tickwidth&quot;),o(&quot;tickcolor&quot;),o(&quot;minorticklen&quot;)}}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}if(&quot;skip&quot;===t.method||Array.isArray(t.args)?r(&quot;visible&quot;):e.visible=!1){r(&quot;method&quot;),r(&quot;args&quot;);var i=r(&quot;label&quot;,&quot;step-&quot;+e._index);r(&quot;value&quot;,i),r(&quot;execute&quot;)}}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{&quot;../../lib&quot;:503,&quot;../../plots/array_container_defaults&quot;:549,&quot;./attributes&quot;:459,&quot;./constants&quot;:460}],462:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../color&quot;),o=t(&quot;../drawing&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,f=t(&quot;./constants&quot;),h=t(&quot;../../constants/alignment&quot;),p=h.LINE_SPACING,d=h.FROM_TL,m=h.FROM_BR;function g(t){return f.autoMarginIdRoot+t._index}function v(t){return t._index}function y(t,e){var r=o.tester.selectAll(&quot;g.&quot;+f.labelGroupClass).data(e._visibleSteps);r.enter().append(&quot;g&quot;).classed(f.labelGroupClass,!0);var a=0,l=0;r.each((function(t){var r=_(n.select(this),{step:t},e).node();if(r){var i=o.bBox(r);l=Math.max(l,i.height),a=Math.max(a,i.width)}})),r.remove();var u=e._dims={};u.inputAreaWidth=Math.max(f.railWidth,f.gripHeight);var h=t._fullLayout._size;u.lx=h.l+h.w*e.x,u.ly=h.t+h.h*(1-e.y),&quot;fraction&quot;===e.lenmode?u.outerLength=Math.round(h.w*e.len):u.outerLength=e.len,u.inputAreaStart=0,u.inputAreaLength=Math.round(u.outerLength-e.pad.l-e.pad.r);var p=(u.inputAreaLength-2*f.stepInset)/(e._stepCount-1),v=a+f.labelPadding;if(u.labelStride=Math.max(1,Math.ceil(v/p)),u.labelHeight=l,u.currentValueMaxWidth=0,u.currentValueHeight=0,u.currentValueTotalHeight=0,u.currentValueMaxLines=1,e.currentvalue.visible){var y=o.tester.append(&quot;g&quot;);r.each((function(t){var r=x(y,e,t.label),n=r.node()&amp;&amp;o.bBox(r.node())||{width:0,height:0},i=c.lineCount(r);u.currentValueMaxWidth=Math.max(u.currentValueMaxWidth,Math.ceil(n.width)),u.currentValueHeight=Math.max(u.currentValueHeight,Math.ceil(n.height)),u.currentValueMaxLines=Math.max(u.currentValueMaxLines,i)})),u.currentValueTotalHeight=u.currentValueHeight+e.currentvalue.offset,y.remove()}u.height=u.currentValueTotalHeight+f.tickOffset+e.ticklen+f.labelOffset+u.labelHeight+e.pad.t+e.pad.b;var b=&quot;left&quot;;s.isRightAnchor(e)&amp;&amp;(u.lx-=u.outerLength,b=&quot;right&quot;),s.isCenterAnchor(e)&amp;&amp;(u.lx-=u.outerLength/2,b=&quot;center&quot;);var w=&quot;top&quot;;s.isBottomAnchor(e)&amp;&amp;(u.ly-=u.height,w=&quot;bottom&quot;),s.isMiddleAnchor(e)&amp;&amp;(u.ly-=u.height/2,w=&quot;middle&quot;),u.outerLength=Math.ceil(u.outerLength),u.height=Math.ceil(u.height),u.lx=Math.round(u.lx),u.ly=Math.round(u.ly);var T={y:e.y,b:u.height*m[w],t:u.height*d[w]};&quot;fraction&quot;===e.lenmode?(T.l=0,T.xl=e.x-e.len*d[b],T.r=0,T.xr=e.x+e.len*m[b]):(T.x=e.x,T.l=u.outerLength*d[b],T.r=u.outerLength*m[b]),i.autoMargin(t,g(e),T)}function x(t,e,r){if(e.currentvalue.visible){var n,i,a=e._dims;switch(e.currentvalue.xanchor){case&quot;right&quot;:n=a.inputAreaLength-f.currentValueInset-a.currentValueMaxWidth,i=&quot;left&quot;;break;case&quot;center&quot;:n=.5*a.inputAreaLength,i=&quot;middle&quot;;break;default:n=f.currentValueInset,i=&quot;left&quot;}var l=s.ensureSingle(t,&quot;text&quot;,f.labelClass,(function(t){t.attr({&quot;text-anchor&quot;:i,&quot;data-notex&quot;:1})})),u=e.currentvalue.prefix?e.currentvalue.prefix:&quot;&quot;;if(&quot;string&quot;==typeof r)u+=r;else{var h=e.steps[e.active].label,d=e._gd._fullLayout._meta;d&amp;&amp;(h=s.templateString(h,d)),u+=h}e.currentvalue.suffix&amp;&amp;(u+=e.currentvalue.suffix),l.call(o.font,e.currentvalue.font).text(u).call(c.convertToTspans,e._gd);var m=c.lineCount(l),g=(a.currentValueMaxLines+1-m)*e.currentvalue.font.size*p;return c.positionText(l,n,g),l}}function b(t,e,r){s.ensureSingle(t,&quot;rect&quot;,f.gripRectClass,(function(n){n.call(A,e,t,r).style(&quot;pointer-events&quot;,&quot;all&quot;)})).attr({width:f.gripWidth,height:f.gripHeight,rx:f.gripRadius,ry:f.gripRadius}).call(a.stroke,r.bordercolor).call(a.fill,r.bgcolor).style(&quot;stroke-width&quot;,r.borderwidth+&quot;px&quot;)}function _(t,e,r){var n=s.ensureSingle(t,&quot;text&quot;,f.labelClass,(function(t){t.attr({&quot;text-anchor&quot;:&quot;middle&quot;,&quot;data-notex&quot;:1})})),i=e.step.label,a=r._gd._fullLayout._meta;return a&amp;&amp;(i=s.templateString(i,a)),n.call(o.font,r.font).text(i).call(c.convertToTspans,r._gd),n}function w(t,e){var r=s.ensureSingle(t,&quot;g&quot;,f.labelsClass),i=e._dims,a=r.selectAll(&quot;g.&quot;+f.labelGroupClass).data(i.labelSteps);a.enter().append(&quot;g&quot;).classed(f.labelGroupClass,!0),a.exit().remove(),a.each((function(t){var r=n.select(this);r.call(_,t,e),o.setTranslate(r,E(e,t.fraction),f.tickOffset+e.ticklen+e.font.size*p+f.labelOffset+i.currentValueTotalHeight)}))}function T(t,e,r,n,i){var a=Math.round(n*(r._stepCount-1)),o=r._visibleSteps[a]._index;o!==r.active&amp;&amp;k(t,e,r,o,!0,i)}function k(t,e,r,n,a,o){var s=r.active;r.active=n,u(t.layout,f.name,r).applyUpdate(&quot;active&quot;,n);var l=r.steps[r.active];e.call(S,r,o),e.call(x,r),t.emit(&quot;plotly_sliderchange&quot;,{slider:r,step:r.steps[r.active],interaction:a,previousActive:s}),l&amp;&amp;l.method&amp;&amp;a&amp;&amp;(e._nextMethod?(e._nextMethod.step=l,e._nextMethod.doCallback=a,e._nextMethod.doTransition=o):(e._nextMethod={step:l,doCallback:a,doTransition:o},e._nextMethodRaf=window.requestAnimationFrame((function(){var r=e._nextMethod.step;r.method&amp;&amp;(r.execute&amp;&amp;i.executeAPICommand(t,r.method,r.args),e._nextMethod=null,e._nextMethodRaf=null)}))))}function A(t,e,r){var i=r.node(),o=n.select(e);function s(){return r.data()[0]}function l(){var t=s();e.emit(&quot;plotly_sliderstart&quot;,{slider:t});var l=r.select(&quot;.&quot;+f.gripRectClass);n.event.stopPropagation(),n.event.preventDefault(),l.call(a.fill,t.activebgcolor);var c=L(t,n.mouse(i)[0]);function u(){var t=s(),a=L(t,n.mouse(i)[0]);T(e,r,t,a,!1)}function h(){var t=s();t._dragging=!1,l.call(a.fill,t.bgcolor),o.on(&quot;mouseup&quot;,null),o.on(&quot;mousemove&quot;,null),o.on(&quot;touchend&quot;,null),o.on(&quot;touchmove&quot;,null),e.emit(&quot;plotly_sliderend&quot;,{slider:t,step:t.steps[t.active]})}T(e,r,t,c,!0),t._dragging=!0,o.on(&quot;mousemove&quot;,u),o.on(&quot;touchmove&quot;,u),o.on(&quot;mouseup&quot;,h),o.on(&quot;touchend&quot;,h)}t.on(&quot;mousedown&quot;,l),t.on(&quot;touchstart&quot;,l)}function M(t,e){var r=t.selectAll(&quot;rect.&quot;+f.tickRectClass).data(e._visibleSteps),i=e._dims;r.enter().append(&quot;rect&quot;).classed(f.tickRectClass,!0),r.exit().remove(),r.attr({width:e.tickwidth+&quot;px&quot;,&quot;shape-rendering&quot;:&quot;crispEdges&quot;}),r.each((function(t,r){var s=r%i.labelStride==0,l=n.select(this);l.attr({height:s?e.ticklen:e.minorticklen}).call(a.fill,e.tickcolor),o.setTranslate(l,E(e,r/(e._stepCount-1))-.5*e.tickwidth,(s?f.tickOffset:f.minorTickOffset)+i.currentValueTotalHeight)}))}function S(t,e,r){for(var n=t.select(&quot;rect.&quot;+f.gripRectClass),i=0,a=0;a&lt;e._stepCount;a++)if(e._visibleSteps[a]._index===e.active){i=a;break}var o=E(e,i/(e._stepCount-1));if(!e._invokingCommand){var s=n;r&amp;&amp;e.transition.duration&gt;0&amp;&amp;(s=s.transition().duration(e.transition.duration).ease(e.transition.easing)),s.attr(&quot;transform&quot;,l(o-.5*f.gripWidth,e._dims.currentValueTotalHeight))}}function E(t,e){var r=t._dims;return r.inputAreaStart+f.stepInset+(r.inputAreaLength-2*f.stepInset)*Math.min(1,Math.max(0,e))}function L(t,e){var r=t._dims;return Math.min(1,Math.max(0,(e-f.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*f.stepInset-2*r.inputAreaStart)))}function C(t,e,r){var n=r._dims,i=s.ensureSingle(t,&quot;rect&quot;,f.railTouchRectClass,(function(n){n.call(A,e,t,r).style(&quot;pointer-events&quot;,&quot;all&quot;)}));i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,f.tickOffset+r.ticklen+n.labelHeight)}).call(a.fill,r.bgcolor).attr(&quot;opacity&quot;,0),o.setTranslate(i,0,n.currentValueTotalHeight)}function P(t,e){var r=e._dims,n=r.inputAreaLength-2*f.railInset,i=s.ensureSingle(t,&quot;rect&quot;,f.railRectClass);i.attr({width:n,height:f.railWidth,rx:f.railRadius,ry:f.railRadius,&quot;shape-rendering&quot;:&quot;crispEdges&quot;}).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;),o.setTranslate(i,f.railInset,.5*(r.inputAreaWidth-f.railWidth)+r.currentValueTotalHeight)}e.exports=function(t){var e=t._fullLayout,r=function(t,e){for(var r=t[f.name],n=[],i=0;i&lt;r.length;i++){var a=r[i];a.visible&amp;&amp;(a._gd=e,n.push(a))}return n}(e,t),a=e._infolayer.selectAll(&quot;g.&quot;+f.containerClassName).data(r.length&gt;0?[0]:[]);function s(e){e._commandObserver&amp;&amp;(e._commandObserver.remove(),delete e._commandObserver),i.autoMargin(t,g(e))}if(a.enter().append(&quot;g&quot;).classed(f.containerClassName,!0).style(&quot;cursor&quot;,&quot;ew-resize&quot;),a.exit().each((function(){n.select(this).selectAll(&quot;g.&quot;+f.groupClassName).each(s)})).remove(),0!==r.length){var l=a.selectAll(&quot;g.&quot;+f.groupClassName).data(r,v);l.enter().append(&quot;g&quot;).classed(f.groupClassName,!0),l.exit().each(s).remove();for(var c=0;c&lt;r.length;c++){var u=r[c];y(t,u)}l.each((function(e){var r=n.select(this);!function(t){var e=t._dims;e.labelSteps=[];for(var r=t._stepCount,n=0;n&lt;r;n+=e.labelStride)e.labelSteps.push({fraction:n/(r-1),step:t._visibleSteps[n]})}(e),i.manageCommandObserver(t,e,e._visibleSteps,(function(e){var n=r.data()[0];n.active!==e.index&amp;&amp;(n._dragging||k(t,r,n,e.index,!1,!0))})),function(t,e,r){(r.steps[r.active]||{}).visible||(r.active=r._visibleSteps[0]._index);e.call(x,r).call(P,r).call(w,r).call(M,r).call(C,t,r).call(b,t,r);var n=r._dims;o.setTranslate(e,n.lx+r.pad.l,n.ly+r.pad.t),e.call(S,r,!1),e.call(x,r)}(t,n.select(this),e)}))}}},{&quot;../../constants/alignment&quot;:471,&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/plots&quot;:619,&quot;../color&quot;:366,&quot;../drawing&quot;:388,&quot;./constants&quot;:460,&quot;@plotly/d3&quot;:58}],463:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);e.exports={moduleType:&quot;component&quot;,name:n.name,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;)}},{&quot;./attributes&quot;:459,&quot;./constants&quot;:460,&quot;./defaults&quot;:461,&quot;./draw&quot;:462}],464:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../drawing&quot;),u=t(&quot;../color&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../constants/interactions&quot;),p=t(&quot;../../constants/alignment&quot;).OPPOSITE_SIDE,d=/ [XY][0-9]* /;e.exports={draw:function(t,e,r){var m,g=r.propContainer,v=r.propName,y=r.placeholder,x=r.traceIndex,b=r.avoid||{},_=r.attributes,w=r.transform,T=r.containerGroup,k=t._fullLayout,A=1,M=!1,S=g.title,E=(S&amp;&amp;S.text?S.text:&quot;&quot;).trim(),L=S&amp;&amp;S.font?S.font:{},C=L.family,P=L.size,I=L.color;&quot;title.text&quot;===v?m=&quot;titleText&quot;:-1!==v.indexOf(&quot;axis&quot;)?m=&quot;axisTitleText&quot;:v.indexOf(!0)&amp;&amp;(m=&quot;colorbarTitleText&quot;);var O=t._context.edits[m];&quot;&quot;===E?A=0:E.replace(d,&quot; % &quot;)===y.replace(d,&quot; % &quot;)&amp;&amp;(A=.2,M=!0,O||(E=&quot;&quot;)),r._meta?E=s.templateString(E,r._meta):k._meta&amp;&amp;(E=s.templateString(E,k._meta));var z,D=E||O;T||(T=s.ensureSingle(k._infolayer,&quot;g&quot;,&quot;g-&quot;+e),z=k._hColorbarMoveTitle);var R=T.selectAll(&quot;text&quot;).data(D?[0]:[]);if(R.enter().append(&quot;text&quot;),R.text(E).attr(&quot;class&quot;,e),R.exit().remove(),!D)return T;function F(t){s.syncOrAsync([B,N],t)}function B(e){var r;return!w&amp;&amp;z&amp;&amp;(w={}),w?(r=&quot;&quot;,w.rotate&amp;&amp;(r+=&quot;rotate(&quot;+[w.rotate,_.x,_.y]+&quot;)&quot;),(w.offset||z)&amp;&amp;(r+=l(0,(w.offset||0)-(z||0)))):r=null,e.attr(&quot;transform&quot;,r),e.style({&quot;font-family&quot;:C,&quot;font-size&quot;:n.round(P,2)+&quot;px&quot;,fill:u.rgb(I),opacity:A*u.opacity(I),&quot;font-weight&quot;:a.fontWeight}).attr(_).call(f.convertToTspans,t),a.previousPromises(t)}function N(t){var e=n.select(t.node().parentNode);if(b&amp;&amp;b.selection&amp;&amp;b.side&amp;&amp;E){e.attr(&quot;transform&quot;,null);var r=p[b.side],a=&quot;left&quot;===b.side||&quot;top&quot;===b.side?-1:1,o=i(b.pad)?b.pad:2,u=c.bBox(e.node()),f={left:0,top:0,right:k.width,bottom:k.height},h=b.maxShift||a*(f[b.side]-u[b.side]),d=0;if(h&lt;0)d=h;else{var m=b.offsetLeft||0,g=b.offsetTop||0;u.left-=m,u.right-=m,u.top-=g,u.bottom-=g,b.selection.each((function(){var t=c.bBox(this);s.bBoxIntersect(u,t,o)&amp;&amp;(d=Math.max(d,a*(t[b.side]-u[r])+o))})),d=Math.min(h,d)}if(d&gt;0||h&lt;0){var v={left:[-d,0],right:[d,0],top:[0,-d],bottom:[0,d]}[b.side];e.attr(&quot;transform&quot;,l(v[0],v[1]))}}}return R.call(F),O&amp;&amp;(E?R.on(&quot;.opacity&quot;,null):(A=0,M=!0,R.text(y).on(&quot;mouseover.opacity&quot;,(function(){n.select(this).transition().duration(h.SHOW_PLACEHOLDER).style(&quot;opacity&quot;,1)})).on(&quot;mouseout.opacity&quot;,(function(){n.select(this).transition().duration(h.HIDE_PLACEHOLDER).style(&quot;opacity&quot;,0)}))),R.call(f.makeEditable,{gd:t}).on(&quot;edit&quot;,(function(e){void 0!==x?o.call(&quot;_guiRestyle&quot;,t,v,e,x):o.call(&quot;_guiRelayout&quot;,t,v,e)})).on(&quot;cancel&quot;,(function(){this.text(this.attr(&quot;data-unformatted&quot;)).call(F)})).on(&quot;input&quot;,(function(t){this.text(t||&quot; &quot;).call(f.positionText,_.x,_.y)}))),R.classed(&quot;js-placeholder&quot;,M),T}}},{&quot;../../constants/alignment&quot;:471,&quot;../../constants/interactions&quot;:478,&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plots/plots&quot;:619,&quot;../../registry&quot;:638,&quot;../color&quot;:366,&quot;../drawing&quot;:388,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:190}],465:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../plots/pad_attributes&quot;),l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=l(&quot;button&quot;,{visible:{valType:&quot;boolean&quot;},method:{valType:&quot;enumerated&quot;,values:[&quot;restyle&quot;,&quot;relayout&quot;,&quot;animate&quot;,&quot;update&quot;,&quot;skip&quot;],dflt:&quot;restyle&quot;},args:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},args2:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},label:{valType:&quot;string&quot;,dflt:&quot;&quot;},execute:{valType:&quot;boolean&quot;,dflt:!0}});e.exports=o(l(&quot;updatemenu&quot;,{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:&quot;boolean&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;dropdown&quot;,&quot;buttons&quot;],dflt:&quot;dropdown&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;right&quot;,&quot;up&quot;,&quot;down&quot;],dflt:&quot;down&quot;},active:{valType:&quot;integer&quot;,min:-1,dflt:0},showactive:{valType:&quot;boolean&quot;,dflt:!0},buttons:c,x:{valType:&quot;number&quot;,min:-2,max:3,dflt:-.05},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;right&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,dflt:1},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;},pad:a(s({editType:&quot;arraydraw&quot;}),{}),font:n({}),bgcolor:{valType:&quot;color&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.borderLine},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;arraydraw&quot;}}),&quot;arraydraw&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:493,&quot;../../plot_api/edit_types&quot;:536,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/font_attributes&quot;:585,&quot;../../plots/pad_attributes&quot;:618,&quot;../color/attributes&quot;:365}],466:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;updatemenus&quot;,containerClassName:&quot;updatemenu-container&quot;,headerGroupClassName:&quot;updatemenu-header-group&quot;,headerClassName:&quot;updatemenu-header&quot;,headerArrowClassName:&quot;updatemenu-header-arrow&quot;,dropdownButtonGroupClassName:&quot;updatemenu-dropdown-button-group&quot;,dropdownButtonClassName:&quot;updatemenu-dropdown-button&quot;,buttonClassName:&quot;updatemenu-button&quot;,itemRectClassName:&quot;updatemenu-item-rect&quot;,itemTextClassName:&quot;updatemenu-item-text&quot;,menuIndexAttrName:&quot;updatemenu-active-index&quot;,autoMarginIdRoot:&quot;updatemenu-&quot;,blankHeaderOpts:{label:&quot;  &quot;},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:&quot;#F4FAFF&quot;,hoverColor:&quot;#F4FAFF&quot;,arrowSymbol:{left:&quot;\u25c4&quot;,right:&quot;\u25ba&quot;,up:&quot;\u25b2&quot;,down:&quot;\u25bc&quot;}}},{}],467:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;).name,s=a.buttons;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}o(&quot;visible&quot;,i(t,e,{name:&quot;buttons&quot;,handleItemDefaults:c}).length&gt;0)&amp;&amp;(o(&quot;active&quot;),o(&quot;direction&quot;),o(&quot;type&quot;),o(&quot;showactive&quot;),o(&quot;x&quot;),o(&quot;y&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),o(&quot;xanchor&quot;),o(&quot;yanchor&quot;),o(&quot;pad.t&quot;),o(&quot;pad.r&quot;),o(&quot;pad.b&quot;),o(&quot;pad.l&quot;),n.coerceFont(o,&quot;font&quot;,r.font),o(&quot;bgcolor&quot;,r.paper_bgcolor),o(&quot;bordercolor&quot;),o(&quot;borderwidth&quot;))}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}r(&quot;visible&quot;,&quot;skip&quot;===t.method||Array.isArray(t.args))&amp;&amp;(r(&quot;method&quot;),r(&quot;args&quot;),r(&quot;args2&quot;),r(&quot;label&quot;),r(&quot;execute&quot;))}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{&quot;../../lib&quot;:503,&quot;../../plots/array_container_defaults&quot;:549,&quot;./attributes&quot;:465,&quot;./constants&quot;:466}],468:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../color&quot;),o=t(&quot;../drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,u=t(&quot;../../constants/alignment&quot;).LINE_SPACING,f=t(&quot;./constants&quot;),h=t(&quot;./scrollbox&quot;);function p(t){return t._index}function d(t,e){return+t.attr(f.menuIndexAttrName)===e._index}function m(t,e,r,n,i,a,o,s){e.active=o,c(t.layout,f.name,e).applyUpdate(&quot;active&quot;,o),&quot;buttons&quot;===e.type?v(t,n,null,null,e):&quot;dropdown&quot;===e.type&amp;&amp;(i.attr(f.menuIndexAttrName,&quot;-1&quot;),g(t,n,i,a,e),s||v(t,n,i,a,e))}function g(t,e,r,n,i){var a=s.ensureSingle(e,&quot;g&quot;,f.headerClassName,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)})),l=i._dims,c=i.active,u=i.buttons[c]||f.blankHeaderOpts,h={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},p={width:l.headerWidth,height:l.headerHeight};a.call(y,i,u,t).call(M,i,h,p),s.ensureSingle(e,&quot;text&quot;,f.headerArrowClassName,(function(t){t.attr(&quot;text-anchor&quot;,&quot;end&quot;).call(o.font,i.font).text(f.arrowSymbol[i.direction])})).attr({x:l.headerWidth-f.arrowOffsetX+i.pad.l,y:l.headerHeight/2+f.textOffsetY+i.pad.t}),a.on(&quot;click&quot;,(function(){r.call(S,String(d(r,i)?-1:i._index)),v(t,e,r,n,i)})),a.on(&quot;mouseover&quot;,(function(){a.call(w)})),a.on(&quot;mouseout&quot;,(function(){a.call(T,i)})),o.setTranslate(e,l.lx,l.ly)}function v(t,e,r,a,o){r||(r=e).attr(&quot;pointer-events&quot;,&quot;all&quot;);var l=function(t){return-1==+t.attr(f.menuIndexAttrName)}(r)&amp;&amp;&quot;buttons&quot;!==o.type?[]:o.buttons,c=&quot;dropdown&quot;===o.type?f.dropdownButtonClassName:f.buttonClassName,u=r.selectAll(&quot;g.&quot;+c).data(s.filterVisible(l)),h=u.enter().append(&quot;g&quot;).classed(c,!0),p=u.exit();&quot;dropdown&quot;===o.type?(h.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;),p.transition().attr(&quot;opacity&quot;,&quot;0&quot;).remove()):p.remove();var d=0,g=0,v=o._dims,x=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(o.direction);&quot;dropdown&quot;===o.type&amp;&amp;(x?g=v.headerHeight+f.gapButtonHeader:d=v.headerWidth+f.gapButtonHeader),&quot;dropdown&quot;===o.type&amp;&amp;&quot;up&quot;===o.direction&amp;&amp;(g=-f.gapButtonHeader+f.gapButton-v.openHeight),&quot;dropdown&quot;===o.type&amp;&amp;&quot;left&quot;===o.direction&amp;&amp;(d=-f.gapButtonHeader+f.gapButton-v.openWidth);var b={x:v.lx+d+o.pad.l,y:v.ly+g+o.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},k={l:b.x+o.borderwidth,t:b.y+o.borderwidth};u.each((function(s,l){var c=n.select(this);c.call(y,o,s,t).call(M,o,b),c.on(&quot;click&quot;,(function(){n.event.defaultPrevented||(s.execute&amp;&amp;(s.args2&amp;&amp;o.active===l?(m(t,o,0,e,r,a,-1),i.executeAPICommand(t,s.method,s.args2)):(m(t,o,0,e,r,a,l),i.executeAPICommand(t,s.method,s.args))),t.emit(&quot;plotly_buttonclicked&quot;,{menu:o,button:s,active:o.active}))})),c.on(&quot;mouseover&quot;,(function(){c.call(w)})),c.on(&quot;mouseout&quot;,(function(){c.call(T,o),u.call(_,o)}))})),u.call(_,o),x?(k.w=Math.max(v.openWidth,v.headerWidth),k.h=b.y-k.t):(k.w=b.x-k.l,k.h=Math.max(v.openHeight,v.headerHeight)),k.direction=o.direction,a&amp;&amp;(u.size()?function(t,e,r,n,i,a){var o,s,l,c=i.direction,u=&quot;up&quot;===c||&quot;down&quot;===c,h=i._dims,p=i.active;if(u)for(s=0,l=0;l&lt;p;l++)s+=h.heights[l]+f.gapButton;else for(o=0,l=0;l&lt;p;l++)o+=h.widths[l]+f.gapButton;n.enable(a,o,s),n.hbar&amp;&amp;n.hbar.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;);n.vbar&amp;&amp;n.vbar.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;)}(0,0,0,a,o,k):function(t){var e=!!t.hbar,r=!!t.vbar;e&amp;&amp;t.hbar.transition().attr(&quot;opacity&quot;,&quot;0&quot;).each(&quot;end&quot;,(function(){e=!1,r||t.disable()}));r&amp;&amp;t.vbar.transition().attr(&quot;opacity&quot;,&quot;0&quot;).each(&quot;end&quot;,(function(){r=!1,e||t.disable()}))}(a))}function y(t,e,r,n){t.call(x,e).call(b,e,r,n)}function x(t,e){s.ensureSingle(t,&quot;rect&quot;,f.itemRectClassName,(function(t){t.attr({rx:f.rx,ry:f.ry,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;)}function b(t,e,r,n){var i=s.ensureSingle(t,&quot;text&quot;,f.itemTextClassName,(function(t){t.attr({&quot;text-anchor&quot;:&quot;start&quot;,&quot;data-notex&quot;:1})})),a=r.label,c=n._fullLayout._meta;c&amp;&amp;(a=s.templateString(a,c)),i.call(o.font,e.font).text(a).call(l.convertToTspans,n)}function _(t,e){var r=e.active;t.each((function(t,i){var o=n.select(this);i===r&amp;&amp;e.showactive&amp;&amp;o.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,f.activeColor)}))}function w(t){t.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,f.hoverColor)}function T(t,e){t.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,e.bgcolor)}function k(t,e){var r=e._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},a=o.tester.selectAll(&quot;g.&quot;+f.dropdownButtonClassName).data(s.filterVisible(e.buttons));a.enter().append(&quot;g&quot;).classed(f.dropdownButtonClassName,!0);var c=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(e.direction);a.each((function(i,a){var s=n.select(this);s.call(y,e,i,t);var h=s.select(&quot;.&quot;+f.itemTextClassName),p=h.node()&amp;&amp;o.bBox(h.node()).width,d=Math.max(p+f.textPadX,f.minWidth),m=e.font.size*u,g=l.lineCount(h),v=Math.max(m*g,f.minHeight)+f.textOffsetY;v=Math.ceil(v),d=Math.ceil(d),r.widths[a]=d,r.heights[a]=v,r.height1=Math.max(r.height1,v),r.width1=Math.max(r.width1,d),c?(r.totalWidth=Math.max(r.totalWidth,d),r.openWidth=r.totalWidth,r.totalHeight+=v+f.gapButton,r.openHeight+=v+f.gapButton):(r.totalWidth+=d+f.gapButton,r.openWidth+=d+f.gapButton,r.totalHeight=Math.max(r.totalHeight,v),r.openHeight=r.totalHeight)})),c?r.totalHeight-=f.gapButton:r.totalWidth-=f.gapButton,r.headerWidth=r.width1+f.arrowPadX,r.headerHeight=r.height1,&quot;dropdown&quot;===e.type&amp;&amp;(c?(r.width1+=f.arrowPadX,r.totalHeight=r.height1):r.totalWidth=r.width1,r.totalWidth+=f.arrowPadX),a.remove();var h=r.totalWidth+e.pad.l+e.pad.r,p=r.totalHeight+e.pad.t+e.pad.b,d=t._fullLayout._size;r.lx=d.l+d.w*e.x,r.ly=d.t+d.h*(1-e.y);var m=&quot;left&quot;;s.isRightAnchor(e)&amp;&amp;(r.lx-=h,m=&quot;right&quot;),s.isCenterAnchor(e)&amp;&amp;(r.lx-=h/2,m=&quot;center&quot;);var g=&quot;top&quot;;s.isBottomAnchor(e)&amp;&amp;(r.ly-=p,g=&quot;bottom&quot;),s.isMiddleAnchor(e)&amp;&amp;(r.ly-=p/2,g=&quot;middle&quot;),r.totalWidth=Math.ceil(r.totalWidth),r.totalHeight=Math.ceil(r.totalHeight),r.lx=Math.round(r.lx),r.ly=Math.round(r.ly),i.autoMargin(t,A(e),{x:e.x,y:e.y,l:h*({right:1,center:.5}[m]||0),r:h*({left:1,center:.5}[m]||0),b:p*({top:1,middle:.5}[g]||0),t:p*({bottom:1,middle:.5}[g]||0)})}function A(t){return f.autoMarginIdRoot+t._index}function M(t,e,r,n){n=n||{};var i=t.select(&quot;.&quot;+f.itemRectClassName),a=t.select(&quot;.&quot;+f.itemTextClassName),s=e.borderwidth,c=r.index,h=e._dims;o.setTranslate(t,s+r.x,s+r.y);var p=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(e.direction),d=n.height||(p?h.heights[c]:h.height1);i.attr({x:0,y:0,width:n.width||(p?h.width1:h.widths[c]),height:d});var m=e.font.size*u,g=(l.lineCount(a)-1)*m/2;l.positionText(a,f.textOffsetX,d/2-g+f.textOffsetY),p?r.y+=h.heights[c]+r.yPad:r.x+=h.widths[c]+r.xPad,r.index++}function S(t,e){t.attr(f.menuIndexAttrName,e||&quot;-1&quot;).selectAll(&quot;g.&quot;+f.dropdownButtonClassName).remove()}e.exports=function(t){var e=t._fullLayout,r=s.filterVisible(e[f.name]);function a(e){i.autoMargin(t,A(e))}var o=e._menulayer.selectAll(&quot;g.&quot;+f.containerClassName).data(r.length&gt;0?[0]:[]);if(o.enter().append(&quot;g&quot;).classed(f.containerClassName,!0).style(&quot;cursor&quot;,&quot;pointer&quot;),o.exit().each((function(){n.select(this).selectAll(&quot;g.&quot;+f.headerGroupClassName).each(a)})).remove(),0!==r.length){var l=o.selectAll(&quot;g.&quot;+f.headerGroupClassName).data(r,p);l.enter().append(&quot;g&quot;).classed(f.headerGroupClassName,!0);for(var c=s.ensureSingle(o,&quot;g&quot;,f.dropdownButtonGroupClassName,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)})),u=0;u&lt;r.length;u++){var y=r[u];k(t,y)}var x=&quot;updatemenus&quot;+e._uid,b=new h(t,c,x);l.enter().size()&amp;&amp;(c.node().parentNode.appendChild(c.node()),c.call(S)),l.exit().each((function(t){c.call(S),a(t)})).remove(),l.each((function(e){var r=n.select(this),a=&quot;dropdown&quot;===e.type?c:null;i.manageCommandObserver(t,e,e.buttons,(function(n){m(t,e,e.buttons[n.index],r,a,b,n.index,!0)})),&quot;dropdown&quot;===e.type?(g(t,r,c,b,e),d(c,e)&amp;&amp;v(t,r,c,b,e)):v(t,r,null,null,e)}))}}},{&quot;../../constants/alignment&quot;:471,&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/plots&quot;:619,&quot;../color&quot;:366,&quot;../drawing&quot;:388,&quot;./constants&quot;:466,&quot;./scrollbox&quot;:470,&quot;@plotly/d3&quot;:58}],469:[function(t,e,r){arguments[4][463][0].apply(r,arguments)},{&quot;./attributes&quot;:465,&quot;./constants&quot;:466,&quot;./defaults&quot;:467,&quot;./draw&quot;:468,dup:463}],470:[function(t,e,r){&quot;use strict&quot;;e.exports=s;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../color&quot;),a=t(&quot;../drawing&quot;),o=t(&quot;../../lib&quot;);function s(t,e,r){this.gd=t,this.container=e,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll(&quot;rect.scrollbox-bg&quot;).data([0]),this.bg.exit().on(&quot;.drag&quot;,null).on(&quot;wheel&quot;,null).remove(),this.bg.enter().append(&quot;rect&quot;).classed(&quot;scrollbox-bg&quot;,!0).style(&quot;pointer-events&quot;,&quot;all&quot;).attr({opacity:0,x:0,y:0,width:0,height:0})}s.barWidth=2,s.barLength=20,s.barRadius=2,s.barPad=1,s.barColor=&quot;#808BA4&quot;,s.prototype.enable=function(t,e,r){var o=this.gd._fullLayout,l=o.width,c=o.height;this.position=t;var u,f,h,p,d=this.position.l,m=this.position.w,g=this.position.t,v=this.position.h,y=this.position.direction,x=&quot;down&quot;===y,b=&quot;left&quot;===y,_=&quot;up&quot;===y,w=m,T=v;x||b||&quot;right&quot;===y||_||(this.position.direction=&quot;down&quot;,x=!0),x||_?(f=(u=d)+w,x?(h=g,T=(p=Math.min(h+T,c))-h):T=(p=g+T)-(h=Math.max(p-T,0))):(p=(h=g)+T,b?w=(f=d+w)-(u=Math.max(f-w,0)):(u=d,w=(f=Math.min(u+w,l))-u)),this._box={l:u,t:h,w:w,h:T};var k=m&gt;w,A=s.barLength+2*s.barPad,M=s.barWidth+2*s.barPad,S=d,E=g+v;E+M&gt;c&amp;&amp;(E=c-M);var L=this.container.selectAll(&quot;rect.scrollbar-horizontal&quot;).data(k?[0]:[]);L.exit().on(&quot;.drag&quot;,null).remove(),L.enter().append(&quot;rect&quot;).classed(&quot;scrollbar-horizontal&quot;,!0).call(i.fill,s.barColor),k?(this.hbar=L.attr({rx:s.barRadius,ry:s.barRadius,x:S,y:E,width:A,height:M}),this._hbarXMin=S+A/2,this._hbarTranslateMax=w-A):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var C=v&gt;T,P=s.barWidth+2*s.barPad,I=s.barLength+2*s.barPad,O=d+m,z=g;O+P&gt;l&amp;&amp;(O=l-P);var D=this.container.selectAll(&quot;rect.scrollbar-vertical&quot;).data(C?[0]:[]);D.exit().on(&quot;.drag&quot;,null).remove(),D.enter().append(&quot;rect&quot;).classed(&quot;scrollbar-vertical&quot;,!0).call(i.fill,s.barColor),C?(this.vbar=D.attr({rx:s.barRadius,ry:s.barRadius,x:O,y:z,width:P,height:I}),this._vbarYMin=z+I/2,this._vbarTranslateMax=T-I):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var R=this.id,F=u-.5,B=C?f+P+.5:f+.5,N=h-.5,j=k?p+M+.5:p+.5,U=o._topdefs.selectAll(&quot;#&quot;+R).data(k||C?[0]:[]);if(U.exit().remove(),U.enter().append(&quot;clipPath&quot;).attr(&quot;id&quot;,R).append(&quot;rect&quot;),k||C?(this._clipRect=U.select(&quot;rect&quot;).attr({x:Math.floor(F),y:Math.floor(N),width:Math.ceil(B)-Math.floor(F),height:Math.ceil(j)-Math.floor(N)}),this.container.call(a.setClipUrl,R,this.gd),this.bg.attr({x:d,y:g,width:m,height:v})):(this.bg.attr({width:0,height:0}),this.container.on(&quot;wheel&quot;,null).on(&quot;.drag&quot;,null).call(a.setClipUrl,null),delete this._clipRect),k||C){var V=n.behavior.drag().on(&quot;dragstart&quot;,(function(){n.event.sourceEvent.preventDefault()})).on(&quot;drag&quot;,this._onBoxDrag.bind(this));this.container.on(&quot;wheel&quot;,null).on(&quot;wheel&quot;,this._onBoxWheel.bind(this)).on(&quot;.drag&quot;,null).call(V);var H=n.behavior.drag().on(&quot;dragstart&quot;,(function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()})).on(&quot;drag&quot;,this._onBarDrag.bind(this));k&amp;&amp;this.hbar.on(&quot;.drag&quot;,null).call(H),C&amp;&amp;this.vbar.on(&quot;.drag&quot;,null).call(H)}this.setTranslate(e,r)},s.prototype.disable=function(){(this.hbar||this.vbar)&amp;&amp;(this.bg.attr({width:0,height:0}),this.container.on(&quot;wheel&quot;,null).on(&quot;.drag&quot;,null).call(a.setClipUrl,null),delete this._clipRect),this.hbar&amp;&amp;(this.hbar.on(&quot;.drag&quot;,null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&amp;&amp;(this.vbar.on(&quot;.drag&quot;,null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},s.prototype._onBoxDrag=function(){var t=this.translateX,e=this.translateY;this.hbar&amp;&amp;(t-=n.event.dx),this.vbar&amp;&amp;(e-=n.event.dy),this.setTranslate(t,e)},s.prototype._onBoxWheel=function(){var t=this.translateX,e=this.translateY;this.hbar&amp;&amp;(t+=n.event.deltaY),this.vbar&amp;&amp;(e+=n.event.deltaY),this.setTranslate(t,e)},s.prototype._onBarDrag=function(){var t=this.translateX,e=this.translateY;if(this.hbar){var r=t+this._hbarXMin,i=r+this._hbarTranslateMax;t=(o.constrain(n.event.x,r,i)-r)/(i-r)*(this.position.w-this._box.w)}if(this.vbar){var a=e+this._vbarYMin,s=a+this._vbarTranslateMax;e=(o.constrain(n.event.y,a,s)-a)/(s-a)*(this.position.h-this._box.h)}this.setTranslate(t,e)},s.prototype.setTranslate=function(t,e){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=o.constrain(t||0,0,r),e=o.constrain(e||0,0,n),this.translateX=t,this.translateY=e,this.container.call(a.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-e),this._clipRect&amp;&amp;this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+e-.5)}),this.hbar){var i=t/r;this.hbar.call(a.setTranslate,t+i*this._hbarTranslateMax,e)}if(this.vbar){var s=e/n;this.vbar.call(a.setTranslate,t,e+s*this._vbarTranslateMax)}}},{&quot;../../lib&quot;:503,&quot;../color&quot;:366,&quot;../drawing&quot;:388,&quot;@plotly/d3&quot;:58}],471:[function(t,e,r){&quot;use strict&quot;;e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:&quot;right&quot;,right:&quot;left&quot;,top:&quot;bottom&quot;,bottom:&quot;top&quot;}}},{}],472:[function(t,e,r){&quot;use strict&quot;;e.exports={axisRefDescription:function(t,e,r){return[&quot;If set to a&quot;,t,&quot;axis id (e.g. *&quot;+t+&quot;* or&quot;,&quot;*&quot;+t+&quot;2*), the `&quot;+t+&quot;` position refers to a&quot;,t,&quot;coordinate. If set to *paper*, the `&quot;+t+&quot;`&quot;,&quot;position refers to the distance from the&quot;,e,&quot;of the plotting&quot;,&quot;area in normalized coordinates where *0* (*1*) corresponds to the&quot;,e,&quot;(&quot;+r+&quot;). If set to a&quot;,t,&quot;axis ID followed by&quot;,&quot;*domain* (separated by a space), the position behaves like for&quot;,&quot;*paper*, but refers to the distance in fractions of the domain&quot;,&quot;length from the&quot;,e,&quot;of the domain of that axis: e.g.,&quot;,&quot;*&quot;+t+&quot;2 domain* refers to the domain of the second&quot;,t,&quot; axis and a&quot;,t,&quot;position of 0.5 refers to the&quot;,&quot;point between the&quot;,e,&quot;and the&quot;,r,&quot;of the domain of the&quot;,&quot;second&quot;,t,&quot;axis.&quot;].join(&quot; &quot;)}}},{}],473:[function(t,e,r){&quot;use strict&quot;;e.exports={INCREASING:{COLOR:&quot;#3D9970&quot;,SYMBOL:&quot;\u25b2&quot;},DECREASING:{COLOR:&quot;#FF4136&quot;,SYMBOL:&quot;\u25bc&quot;}}},{}],474:[function(t,e,r){&quot;use strict&quot;;e.exports={FORMAT_LINK:&quot;https://github.com/d3/d3-format/tree/v1.4.5#d3-format&quot;,DATE_FORMAT_LINK:&quot;https://github.com/d3/d3-time-format/tree/v2.2.3#locale_format&quot;}},{}],475:[function(t,e,r){&quot;use strict&quot;;e.exports={COMPARISON_OPS:[&quot;=&quot;,&quot;!=&quot;,&quot;&lt;&quot;,&quot;&gt;=&quot;,&quot;&gt;&quot;,&quot;&lt;=&quot;],COMPARISON_OPS2:[&quot;=&quot;,&quot;&lt;&quot;,&quot;&gt;=&quot;,&quot;&gt;&quot;,&quot;&lt;=&quot;],INTERVAL_OPS:[&quot;[]&quot;,&quot;()&quot;,&quot;[)&quot;,&quot;(]&quot;,&quot;][&quot;,&quot;)(&quot;,&quot;](&quot;,&quot;)[&quot;],SET_OPS:[&quot;{}&quot;,&quot;}{&quot;],CONSTRAINT_REDUCTION:{&quot;=&quot;:&quot;=&quot;,&quot;&lt;&quot;:&quot;&lt;&quot;,&quot;&lt;=&quot;:&quot;&lt;&quot;,&quot;&gt;&quot;:&quot;&gt;&quot;,&quot;&gt;=&quot;:&quot;&gt;&quot;,&quot;[]&quot;:&quot;[]&quot;,&quot;()&quot;:&quot;[]&quot;,&quot;[)&quot;:&quot;[]&quot;,&quot;(]&quot;:&quot;[]&quot;,&quot;][&quot;:&quot;][&quot;,&quot;)(&quot;:&quot;][&quot;,&quot;](&quot;:&quot;][&quot;,&quot;)[&quot;:&quot;][&quot;}}},{}],476:[function(t,e,r){&quot;use strict&quot;;e.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},{}],477:[function(t,e,r){&quot;use strict&quot;;e.exports={circle:&quot;\u25cf&quot;,&quot;circle-open&quot;:&quot;\u25cb&quot;,square:&quot;\u25a0&quot;,&quot;square-open&quot;:&quot;\u25a1&quot;,diamond:&quot;\u25c6&quot;,&quot;diamond-open&quot;:&quot;\u25c7&quot;,cross:&quot;+&quot;,x:&quot;\u274c&quot;}},{}],478:[function(t,e,r){&quot;use strict&quot;;e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},{}],479:[function(t,e,r){&quot;use strict&quot;;e.exports={BADNUM:void 0,FP_SAFE:1e-4*Number.MAX_VALUE,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:&quot;\u2212&quot;}},{}],480:[function(t,e,r){&quot;use strict&quot;;r.xmlns=&quot;http://www.w3.org/2000/xmlns/&quot;,r.svg=&quot;http://www.w3.org/2000/svg&quot;,r.xlink=&quot;http://www.w3.org/1999/xlink&quot;,r.svgAttrs={xmlns:r.svg,&quot;xmlns:xlink&quot;:r.xlink}},{}],481:[function(t,e,r){&quot;use strict&quot;;r.version=t(&quot;./version&quot;).version,t(&quot;native-promise-only&quot;),t(&quot;../build/plotcss&quot;);for(var n=t(&quot;./registry&quot;),i=r.register=n.register,a=t(&quot;./plot_api&quot;),o=Object.keys(a),s=0;s&lt;o.length;s++){var l=o[s];&quot;_&quot;!==l.charAt(0)&amp;&amp;(r[l]=a[l]),i({moduleType:&quot;apiMethod&quot;,name:l,fn:a[l]})}i(t(&quot;./traces/scatter&quot;)),i([t(&quot;./components/legend&quot;),t(&quot;./components/fx&quot;),t(&quot;./components/annotations&quot;),t(&quot;./components/annotations3d&quot;),t(&quot;./components/shapes&quot;),t(&quot;./components/images&quot;),t(&quot;./components/updatemenus&quot;),t(&quot;./components/sliders&quot;),t(&quot;./components/rangeslider&quot;),t(&quot;./components/rangeselector&quot;),t(&quot;./components/grid&quot;),t(&quot;./components/errorbars&quot;),t(&quot;./components/colorscale&quot;),t(&quot;./components/colorbar&quot;),t(&quot;./components/modebar&quot;)]),i([t(&quot;./locale-en&quot;),t(&quot;./locale-en-us&quot;)]),window.PlotlyLocales&amp;&amp;Array.isArray(window.PlotlyLocales)&amp;&amp;(i(window.PlotlyLocales),delete window.PlotlyLocales),r.Icons=t(&quot;./fonts/ploticon&quot;);var c=t(&quot;./components/fx&quot;),u=t(&quot;./plots/plots&quot;);r.Plots={resize:u.resize,graphJson:u.graphJson,sendDataToCloud:u.sendDataToCloud},r.Fx={hover:c.hover,unhover:c.unhover,loneHover:c.loneHover,loneUnhover:c.loneUnhover},r.Snapshot=t(&quot;./snapshot&quot;),r.PlotSchema=t(&quot;./plot_api/plot_schema&quot;)},{&quot;../build/plotcss&quot;:1,&quot;./components/annotations&quot;:357,&quot;./components/annotations3d&quot;:362,&quot;./components/colorbar&quot;:372,&quot;./components/colorscale&quot;:378,&quot;./components/errorbars&quot;:394,&quot;./components/fx&quot;:406,&quot;./components/grid&quot;:410,&quot;./components/images&quot;:415,&quot;./components/legend&quot;:423,&quot;./components/modebar&quot;:429,&quot;./components/rangeselector&quot;:437,&quot;./components/rangeslider&quot;:444,&quot;./components/shapes&quot;:458,&quot;./components/sliders&quot;:463,&quot;./components/updatemenus&quot;:469,&quot;./fonts/ploticon&quot;:482,&quot;./locale-en&quot;:534,&quot;./locale-en-us&quot;:533,&quot;./plot_api&quot;:538,&quot;./plot_api/plot_schema&quot;:542,&quot;./plots/plots&quot;:619,&quot;./registry&quot;:638,&quot;./snapshot&quot;:643,&quot;./traces/scatter&quot;:938,&quot;./version&quot;:1119,&quot;native-promise-only&quot;:245}],482:[function(t,e,r){&quot;use strict&quot;;e.exports={undo:{width:857.1,height:1e3,path:&quot;m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},home:{width:928.6,height:1e3,path:&quot;m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;camera-retro&quot;:{width:1e3,height:1e3,path:&quot;m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoombox:{width:1e3,height:1e3,path:&quot;m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},pan:{width:1e3,height:1e3,path:&quot;m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoom_plus:{width:875,height:1e3,path:&quot;m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoom_minus:{width:875,height:1e3,path:&quot;m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},autoscale:{width:1e3,height:1e3,path:&quot;m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},tooltip_basic:{width:1500,height:1e3,path:&quot;m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},tooltip_compare:{width:1125,height:1e3,path:&quot;m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},plotlylogo:{width:1542,height:1e3,path:&quot;m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;z-axis&quot;:{width:1e3,height:1e3,path:&quot;m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;3d_rotate&quot;:{width:1e3,height:1e3,path:&quot;m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},camera:{width:1e3,height:1e3,path:&quot;m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},movie:{width:1e3,height:1e3,path:&quot;m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},question:{width:857.1,height:1e3,path:&quot;m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},disk:{width:857.1,height:1e3,path:&quot;m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},drawopenpath:{width:70,height:70,path:&quot;M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z&quot;,transform:&quot;matrix(1 0 0 1 -15 -15)&quot;},drawclosedpath:{width:90,height:90,path:&quot;M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z&quot;,transform:&quot;matrix(1 0 0 1 -5 -5)&quot;},lasso:{width:1031,height:1e3,path:&quot;m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},selectbox:{width:1e3,height:1e3,path:&quot;m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},drawline:{width:70,height:70,path:&quot;M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z&quot;,transform:&quot;matrix(1 0 0 1 -15 -15)&quot;},drawrect:{width:80,height:80,path:&quot;M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},drawcircle:{width:80,height:80,path:&quot;M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},eraseshape:{width:80,height:80,path:&quot;M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},spikeline:{width:1e3,height:1e3,path:&quot;M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z&quot;,transform:&quot;matrix(1.5 0 0 -1.5 0 850)&quot;},pencil:{width:1792,height:1792,path:&quot;M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z&quot;,transform:&quot;matrix(1 0 0 1 0 1)&quot;},newplotlylogo:{name:&quot;newplotlylogo&quot;,svg:&quot;&lt;svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'&gt;&lt;defs&gt;&lt;style&gt;.cls-1 {fill: #3f4f75;} .cls-2 {fill: #80cfbe;} .cls-3 {fill: #fff;}&lt;/style&gt;&lt;/defs&gt;&lt;title&gt;plotly-logomark&lt;/title&gt;&lt;g id='symbol'&gt;&lt;rect class='cls-1' width='132' height='132' rx='6' ry='6'/&gt;&lt;circle class='cls-2' cx='78' cy='54' r='6'/&gt;&lt;circle class='cls-2' cx='102' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='78' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='54' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='30' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='30' cy='54' r='6'/&gt;&lt;path class='cls-3' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/&gt;&lt;path class='cls-3' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/&gt;&lt;path class='cls-3' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/&gt;&lt;path class='cls-3' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;}}},{}],483:[function(t,e,r){&quot;use strict&quot;;r.isLeftAnchor=function(t){return&quot;left&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&lt;=1/3},r.isCenterAnchor=function(t){return&quot;center&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&gt;1/3&amp;&amp;t.x&lt;2/3},r.isRightAnchor=function(t){return&quot;right&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&gt;=2/3},r.isTopAnchor=function(t){return&quot;top&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&gt;=2/3},r.isMiddleAnchor=function(t){return&quot;middle&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&gt;1/3&amp;&amp;t.y&lt;2/3},r.isBottomAnchor=function(t){return&quot;bottom&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&lt;=1/3}},{}],484:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./mod&quot;),i=n.mod,a=n.modHalf,o=Math.PI,s=2*o;function l(t){return Math.abs(t[1]-t[0])&gt;s-1e-14}function c(t,e){return a(e-t,s)}function u(t,e){if(l(e))return!0;var r,n;e[0]&lt;e[1]?(r=e[0],n=e[1]):(r=e[1],n=e[0]),(r=i(r,s))&gt;(n=i(n,s))&amp;&amp;(n+=s);var a=i(t,s),o=a+s;return a&gt;=r&amp;&amp;a&lt;=n||o&gt;=r&amp;&amp;o&lt;=n}function f(t,e,r,n,i,a,c){i=i||0,a=a||0;var u,f,h,p,d,m=l([r,n]);function g(t,e){return[t*Math.cos(e)+i,a-t*Math.sin(e)]}m?(u=0,f=o,h=s):r&lt;n?(u=r,h=n):(u=n,h=r),t&lt;e?(p=t,d=e):(p=e,d=t);var v,y=Math.abs(h-u)&lt;=o?0:1;function x(t,e,r){return&quot;A&quot;+[t,t]+&quot; &quot;+[0,y,r]+&quot; &quot;+g(t,e)}return m?v=null===p?&quot;M&quot;+g(d,u)+x(d,f,0)+x(d,h,0)+&quot;Z&quot;:&quot;M&quot;+g(p,u)+x(p,f,0)+x(p,h,0)+&quot;ZM&quot;+g(d,u)+x(d,f,1)+x(d,h,1)+&quot;Z&quot;:null===p?(v=&quot;M&quot;+g(d,u)+x(d,h,0),c&amp;&amp;(v+=&quot;L0,0Z&quot;)):v=&quot;M&quot;+g(p,u)+&quot;L&quot;+g(d,u)+x(d,h,0)+&quot;L&quot;+g(p,h)+x(p,u,1)+&quot;Z&quot;,v}e.exports={deg2rad:function(t){return t/180*o},rad2deg:function(t){return t/o*180},angleDelta:c,angleDist:function(t,e){return Math.abs(c(t,e))},isFullCircle:l,isAngleInsideSector:u,isPtInsideSector:function(t,e,r,n){return!!u(e,n)&amp;&amp;(r[0]&lt;r[1]?(i=r[0],a=r[1]):(i=r[1],a=r[0]),t&gt;=i&amp;&amp;t&lt;=a);var i,a},pathArc:function(t,e,r,n,i){return f(null,t,e,r,n,i,0)},pathSector:function(t,e,r,n,i){return f(null,t,e,r,n,i,1)},pathAnnulus:function(t,e,r,n,i,a){return f(t,e,r,n,i,a,1)}}},{&quot;./mod&quot;:510}],485:[function(t,e,r){&quot;use strict&quot;;var n=Array.isArray,i=ArrayBuffer,a=DataView;function o(t){return i.isView(t)&amp;&amp;!(t instanceof a)}function s(t){return n(t)||o(t)}function l(t,e,r){if(s(t)){if(s(t[0])){for(var n=r,i=0;i&lt;t.length;i++)n=e(n,t[i].length);return n}return t.length}return 0}r.isTypedArray=o,r.isArrayOrTypedArray=s,r.isArray1D=function(t){return!s(t[0])},r.ensureArray=function(t,e){return n(t)||(t=[]),t.length=e,t},r.concat=function(){var t,e,r,i,a,o,s,l,c=[],u=!0,f=0;for(r=0;r&lt;arguments.length;r++)(o=(i=arguments[r]).length)&amp;&amp;(e?c.push(i):(e=i,a=o),n(i)?t=!1:(u=!1,f?t!==i.constructor&amp;&amp;(t=!1):t=i.constructor),f+=o);if(!f)return[];if(!c.length)return e;if(u)return e.concat.apply(e,c);if(t){for((s=new t(f)).set(e),r=0;r&lt;c.length;r++)i=c[r],s.set(i,a),a+=i.length;return s}for(s=new Array(f),l=0;l&lt;e.length;l++)s[l]=e[l];for(r=0;r&lt;c.length;r++){for(i=c[r],l=0;l&lt;i.length;l++)s[a+l]=i[l];a+=l}return s},r.maxRowLength=function(t){return l(t,Math.max,0)},r.minRowLength=function(t){return l(t,Math.min,1/0)}},{}],486:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../constants/numerical&quot;).BADNUM,a=/^['&quot;%,$#\s']+|[, ]|['&quot;%,$#\s']+$/g;e.exports=function(t){return&quot;string&quot;==typeof t&amp;&amp;(t=t.replace(a,&quot;&quot;)),n(t)?Number(t):i}},{&quot;../constants/numerical&quot;:479,&quot;fast-isnumeric&quot;:190}],487:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t._fullLayout;e._glcanvas&amp;&amp;e._glcanvas.size()&amp;&amp;e._glcanvas.each((function(t){t.regl&amp;&amp;t.regl.clear({color:!0,depth:!0})}))}},{}],488:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){t._responsiveChartHandler&amp;&amp;(window.removeEventListener(&quot;resize&quot;,t._responsiveChartHandler),delete t._responsiveChartHandler)}},{}],489:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../plots/attributes&quot;),o=t(&quot;../components/colorscale/scales&quot;),s=t(&quot;../components/color&quot;),l=t(&quot;../constants/interactions&quot;).DESELECTDIM,c=t(&quot;./nested_property&quot;),u=t(&quot;./regex&quot;).counter,f=t(&quot;./mod&quot;).modHalf,h=t(&quot;./array&quot;).isArrayOrTypedArray;function p(t,e){var n=r.valObjectMeta[e.valType];if(e.arrayOk&amp;&amp;h(t))return!0;if(n.validateFunction)return n.validateFunction(t,e);var i={},a=i,o={set:function(t){a=t}};return n.coerceFunction(t,o,i,e),a!==i}r.valObjectMeta={data_array:{coerceFunction:function(t,e,r){h(t)?e.set(t):void 0!==r&amp;&amp;e.set(r)}},enumerated:{coerceFunction:function(t,e,r,n){n.coerceNumber&amp;&amp;(t=+t),-1===n.values.indexOf(t)?e.set(r):e.set(t)},validateFunction:function(t,e){e.coerceNumber&amp;&amp;(t=+t);for(var r=e.values,n=0;n&lt;r.length;n++){var i=String(r[n]);if(&quot;/&quot;===i.charAt(0)&amp;&amp;&quot;/&quot;===i.charAt(i.length-1)){if(new RegExp(i.substr(1,i.length-2)).test(t))return!0}else if(t===r[n])return!0}return!1}},boolean:{coerceFunction:function(t,e,r){!0===t||!1===t?e.set(t):e.set(r)}},number:{coerceFunction:function(t,e,r,i){!n(t)||void 0!==i.min&amp;&amp;t&lt;i.min||void 0!==i.max&amp;&amp;t&gt;i.max?e.set(r):e.set(+t)}},integer:{coerceFunction:function(t,e,r,i){t%1||!n(t)||void 0!==i.min&amp;&amp;t&lt;i.min||void 0!==i.max&amp;&amp;t&gt;i.max?e.set(r):e.set(+t)}},string:{coerceFunction:function(t,e,r,n){if(&quot;string&quot;!=typeof t){var i=&quot;number&quot;==typeof t;!0!==n.strict&amp;&amp;i?e.set(String(t)):e.set(r)}else n.noBlank&amp;&amp;!t?e.set(r):e.set(t)}},color:{coerceFunction:function(t,e,r){i(t).isValid()?e.set(t):e.set(r)}},colorlist:{coerceFunction:function(t,e,r){Array.isArray(t)&amp;&amp;t.length&amp;&amp;t.every((function(t){return i(t).isValid()}))?e.set(t):e.set(r)}},colorscale:{coerceFunction:function(t,e,r){e.set(o.get(t,r))}},angle:{coerceFunction:function(t,e,r){&quot;auto&quot;===t?e.set(&quot;auto&quot;):n(t)?e.set(f(+t,360)):e.set(r)}},subplotid:{coerceFunction:function(t,e,r,n){var i=n.regex||u(r);&quot;string&quot;==typeof t&amp;&amp;i.test(t)?e.set(t):e.set(r)},validateFunction:function(t,e){var r=e.dflt;return t===r||&quot;string&quot;==typeof t&amp;&amp;!!u(r).test(t)}},flaglist:{coerceFunction:function(t,e,r,n){if(&quot;string&quot;==typeof t)if(-1===(n.extras||[]).indexOf(t)){for(var i=t.split(&quot;+&quot;),a=0;a&lt;i.length;){var o=i[a];-1===n.flags.indexOf(o)||i.indexOf(o)&lt;a?i.splice(a,1):a++}i.length?e.set(i.join(&quot;+&quot;)):e.set(r)}else e.set(t);else e.set(r)}},any:{coerceFunction:function(t,e,r){void 0===t?e.set(r):e.set(t)}},info_array:{coerceFunction:function(t,e,n,i){function a(t,e,n){var i,a={set:function(t){i=t}};return void 0===n&amp;&amp;(n=e.dflt),r.valObjectMeta[e.valType].coerceFunction(t,a,n,e),i}var o=2===i.dimensions||&quot;1-2&quot;===i.dimensions&amp;&amp;Array.isArray(t)&amp;&amp;Array.isArray(t[0]);if(Array.isArray(t)){var s,l,c,u,f,h,p=i.items,d=[],m=Array.isArray(p),g=m&amp;&amp;o&amp;&amp;Array.isArray(p[0]),v=o&amp;&amp;m&amp;&amp;!g,y=m&amp;&amp;!v?p.length:t.length;if(n=Array.isArray(n)?n:[],o)for(s=0;s&lt;y;s++)for(d[s]=[],c=Array.isArray(t[s])?t[s]:[],f=v?p.length:m?p[s].length:c.length,l=0;l&lt;f;l++)u=v?p[l]:m?p[s][l]:p,void 0!==(h=a(c[l],u,(n[s]||[])[l]))&amp;&amp;(d[s][l]=h);else for(s=0;s&lt;y;s++)void 0!==(h=a(t[s],m?p[s]:p,n[s]))&amp;&amp;(d[s]=h);e.set(d)}else e.set(n)},validateFunction:function(t,e){if(!Array.isArray(t))return!1;var r=e.items,n=Array.isArray(r),i=2===e.dimensions;if(!e.freeLength&amp;&amp;t.length!==r.length)return!1;for(var a=0;a&lt;t.length;a++)if(i){if(!Array.isArray(t[a])||!e.freeLength&amp;&amp;t[a].length!==r[a].length)return!1;for(var o=0;o&lt;t[a].length;o++)if(!p(t[a][o],n?r[a][o]:r))return!1}else if(!p(t[a],n?r[a]:r))return!1;return!0}}},r.coerce=function(t,e,n,i,a){var o=c(n,i).get(),s=c(t,i),l=c(e,i),u=s.get(),f=e._template;if(void 0===u&amp;&amp;f&amp;&amp;(u=c(f,i).get(),f=0),void 0===a&amp;&amp;(a=o.dflt),o.arrayOk&amp;&amp;h(u))return l.set(u),u;var d=r.valObjectMeta[o.valType].coerceFunction;d(u,l,a,o);var m=l.get();return f&amp;&amp;m===a&amp;&amp;!p(u,o)&amp;&amp;(d(u=c(f,i).get(),l,a,o),m=l.get()),m},r.coerce2=function(t,e,n,i,a){var o=c(t,i),s=r.coerce(t,e,n,i,a),l=o.get();return null!=l&amp;&amp;s},r.coerceFont=function(t,e,r){var n={};return r=r||{},n.family=t(e+&quot;.family&quot;,r.family),n.size=t(e+&quot;.size&quot;,r.size),n.color=t(e+&quot;.color&quot;,r.color),n},r.coercePattern=function(t,e,r,n){if(t(e+&quot;.shape&quot;)){t(e+&quot;.solidity&quot;),t(e+&quot;.size&quot;);var i=&quot;overlay&quot;===t(e+&quot;.fillmode&quot;);if(!n){var a=t(e+&quot;.bgcolor&quot;,i?r:void 0);t(e+&quot;.fgcolor&quot;,i?s.contrast(a):r)}t(e+&quot;.fgopacity&quot;,i?.5:1)}},r.coerceHoverinfo=function(t,e,n){var i,o=e._module.attributes,s=o.hoverinfo?o:a,l=s.hoverinfo;if(1===n._dataLength){var c=&quot;all&quot;===l.dflt?l.flags.slice():l.dflt.split(&quot;+&quot;);c.splice(c.indexOf(&quot;name&quot;),1),i=c.join(&quot;+&quot;)}return r.coerce(t,e,s,&quot;hoverinfo&quot;,i)},r.coerceSelectionMarkerOpacity=function(t,e){if(t.marker){var r,n,i=t.marker.opacity;if(void 0!==i)h(i)||t.selected||t.unselected||(r=i,n=l*i),e(&quot;selected.marker.opacity&quot;,r),e(&quot;unselected.marker.opacity&quot;,n)}},r.validate=p},{&quot;../components/color&quot;:366,&quot;../components/colorscale/scales&quot;:381,&quot;../constants/interactions&quot;:478,&quot;../plots/attributes&quot;:550,&quot;./array&quot;:485,&quot;./mod&quot;:510,&quot;./nested_property&quot;:511,&quot;./regex&quot;:520,&quot;fast-isnumeric&quot;:190,tinycolor2:312}],490:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;d3-time-format&quot;).timeFormat,o=t(&quot;fast-isnumeric&quot;),s=t(&quot;./loggers&quot;),l=t(&quot;./mod&quot;).mod,c=t(&quot;../constants/numerical&quot;),u=c.BADNUM,f=c.ONEDAY,h=c.ONEHOUR,p=c.ONEMIN,d=c.ONESEC,m=c.EPOCHJD,g=t(&quot;../registry&quot;),v=t(&quot;d3-time-format&quot;).utcFormat,y=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,x=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,b=(new Date).getFullYear()-70;function _(t){return t&amp;&amp;g.componentsRegistry.calendars&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;&quot;gregorian&quot;!==t}function w(t,e){return String(t+Math.pow(10,e)).substr(1)}r.dateTick0=function(t,e){var n=function(t,e){return _(t)?e?g.getComponentMethod(&quot;calendars&quot;,&quot;CANONICAL_SUNDAY&quot;)[t]:g.getComponentMethod(&quot;calendars&quot;,&quot;CANONICAL_TICK&quot;)[t]:e?&quot;2000-01-02&quot;:&quot;2000-01-01&quot;}(t,!!e);if(e&lt;2)return n;var i=r.dateTime2ms(n,t);return i+=f*(e-1),r.ms2DateTime(i,0,t)},r.dfltRange=function(t){return _(t)?g.getComponentMethod(&quot;calendars&quot;,&quot;DFLTRANGE&quot;)[t]:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;]},r.isJSDate=function(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t&amp;&amp;&quot;function&quot;==typeof t.getTime},r.dateTime2ms=function(t,e){if(r.isJSDate(t)){var a=t.getTimezoneOffset()*p,o=(t.getUTCMinutes()-t.getMinutes())*p+(t.getUTCSeconds()-t.getSeconds())*d+(t.getUTCMilliseconds()-t.getMilliseconds());if(o){var s=3*p;a=a-s/2+l(o-a+s/2,s)}return(t=Number(t)-a)&gt;=n&amp;&amp;t&lt;=i?t:u}if(&quot;string&quot;!=typeof t&amp;&amp;&quot;number&quot;!=typeof t)return u;t=String(t);var c=_(e),v=t.charAt(0);!c||&quot;G&quot;!==v&amp;&amp;&quot;g&quot;!==v||(t=t.substr(1),e=&quot;&quot;);var w=c&amp;&amp;&quot;chinese&quot;===e.substr(0,7),T=t.match(w?x:y);if(!T)return u;var k=T[1],A=T[3]||&quot;1&quot;,M=Number(T[5]||1),S=Number(T[7]||0),E=Number(T[9]||0),L=Number(T[11]||0);if(c){if(2===k.length)return u;var C;k=Number(k);try{var P=g.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(e);if(w){var I=&quot;i&quot;===A.charAt(A.length-1);A=parseInt(A,10),C=P.newDate(k,P.toMonthIndex(k,A,I),M)}else C=P.newDate(k,Number(A),M)}catch(t){return u}return C?(C.toJD()-m)*f+S*h+E*p+L*d:u}k=2===k.length?(Number(k)+2e3-b)%100+b:Number(k),A-=1;var O=new Date(Date.UTC(2e3,A,M,S,E));return O.setUTCFullYear(k),O.getUTCMonth()!==A||O.getUTCDate()!==M?u:O.getTime()+L*d},n=r.MIN_MS=r.dateTime2ms(&quot;-9999&quot;),i=r.MAX_MS=r.dateTime2ms(&quot;9999-12-31 23:59:59.9999&quot;),r.isDateTime=function(t,e){return r.dateTime2ms(t,e)!==u};var T=90*f,k=3*h,A=5*p;function M(t,e,r,n,i){if((e||r||n||i)&amp;&amp;(t+=&quot; &quot;+w(e,2)+&quot;:&quot;+w(r,2),(n||i)&amp;&amp;(t+=&quot;:&quot;+w(n,2),i))){for(var a=4;i%10==0;)a-=1,i/=10;t+=&quot;.&quot;+w(i,a)}return t}r.ms2DateTime=function(t,e,r){if(&quot;number&quot;!=typeof t||!(t&gt;=n&amp;&amp;t&lt;=i))return u;e||(e=0);var a,o,s,c,y,x,b=Math.floor(10*l(t+.05,1)),w=Math.round(t-b/10);if(_(r)){var S=Math.floor(w/f)+m,E=Math.floor(l(t,f));try{a=g.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(r).fromJD(S).formatDate(&quot;yyyy-mm-dd&quot;)}catch(t){a=v(&quot;G%Y-%m-%d&quot;)(new Date(w))}if(&quot;-&quot;===a.charAt(0))for(;a.length&lt;11;)a=&quot;-0&quot;+a.substr(1);else for(;a.length&lt;10;)a=&quot;0&quot;+a;o=e&lt;T?Math.floor(E/h):0,s=e&lt;T?Math.floor(E%h/p):0,c=e&lt;k?Math.floor(E%p/d):0,y=e&lt;A?E%d*10+b:0}else x=new Date(w),a=v(&quot;%Y-%m-%d&quot;)(x),o=e&lt;T?x.getUTCHours():0,s=e&lt;T?x.getUTCMinutes():0,c=e&lt;k?x.getUTCSeconds():0,y=e&lt;A?10*x.getUTCMilliseconds()+b:0;return M(a,o,s,c,y)},r.ms2DateTimeLocal=function(t){if(!(t&gt;=n+f&amp;&amp;t&lt;=i-f))return u;var e=Math.floor(10*l(t+.05,1)),r=new Date(Math.round(t-e/10));return M(a(&quot;%Y-%m-%d&quot;)(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+e)},r.cleanDate=function(t,e,n){if(t===u)return e;if(r.isJSDate(t)||&quot;number&quot;==typeof t&amp;&amp;isFinite(t)){if(_(n))return s.error(&quot;JS Dates and milliseconds are incompatible with world calendars&quot;,t),e;if(!(t=r.ms2DateTimeLocal(+t))&amp;&amp;void 0!==e)return e}else if(!r.isDateTime(t,n))return s.error(&quot;unrecognized date&quot;,t),e;return t};var S=/%\d?f/g,E=/%h/g,L={1:&quot;1&quot;,2:&quot;1&quot;,3:&quot;2&quot;,4:&quot;2&quot;};function C(t,e,r,n){t=t.replace(S,(function(t){var r=Math.min(+t.charAt(1)||6,6);return(e/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,&quot;&quot;)||&quot;0&quot;}));var i=new Date(Math.floor(e+.05));if(t=t.replace(E,(function(){return L[r(&quot;%q&quot;)(i)]})),_(n))try{t=g.getComponentMethod(&quot;calendars&quot;,&quot;worldCalFmt&quot;)(t,e,n)}catch(t){return&quot;Invalid&quot;}return r(t)(i)}var P=[59,59.9,59.99,59.999,59.9999];r.formatDate=function(t,e,r,n,i,a){if(i=_(i)&amp;&amp;i,!e)if(&quot;y&quot;===r)e=a.year;else if(&quot;m&quot;===r)e=a.month;else{if(&quot;d&quot;!==r)return function(t,e){var r=l(t+.05,f),n=w(Math.floor(r/h),2)+&quot;:&quot;+w(l(Math.floor(r/p),60),2);if(&quot;M&quot;!==e){o(e)||(e=0);var i=(100+Math.min(l(t/d,60),P[e])).toFixed(e).substr(1);e&gt;0&amp;&amp;(i=i.replace(/0+$/,&quot;&quot;).replace(/[\.]$/,&quot;&quot;)),n+=&quot;:&quot;+i}return n}(t,r)+&quot;\n&quot;+C(a.dayMonthYear,t,n,i);e=a.dayMonth+&quot;\n&quot;+a.year}return C(e,t,n,i)};var I=3*f;r.incrementMonth=function(t,e,r){r=_(r)&amp;&amp;r;var n=l(t,f);if(t=Math.round(t-n),r)try{var i=Math.round(t/f)+m,a=g.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(r),o=a.fromJD(i);return e%12?a.add(o,e,&quot;m&quot;):a.add(o,e/12,&quot;y&quot;),(o.toJD()-m)*f+n}catch(e){s.error(&quot;invalid ms &quot;+t+&quot; in calendar &quot;+r)}var c=new Date(t+I);return c.setUTCMonth(c.getUTCMonth()+e)+n-I},r.findExactDates=function(t,e){for(var r,n,i=0,a=0,s=0,l=0,c=_(e)&amp;&amp;g.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(e),u=0;u&lt;t.length;u++)if(n=t[u],o(n)){if(!(n%f))if(c)try{1===(r=c.fromJD(n/f+m)).day()?1===r.month()?i++:a++:s++}catch(t){}else 1===(r=new Date(n)).getUTCDate()?0===r.getUTCMonth()?i++:a++:s++}else l++;s+=a+=i;var h=t.length-l;return{exactYears:i/h,exactMonths:a/h,exactDays:s/h}}},{&quot;../constants/numerical&quot;:479,&quot;../registry&quot;:638,&quot;./loggers&quot;:507,&quot;./mod&quot;:510,&quot;d3-time-format&quot;:120,&quot;fast-isnumeric&quot;:190}],491:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;./loggers&quot;),a=t(&quot;./matrix&quot;),o=t(&quot;gl-mat4&quot;);function s(t){var e=t&amp;&amp;t.parentNode;e&amp;&amp;e.removeChild(t)}function l(t,e,r){var n=&quot;plotly.js-style-&quot;+t,a=document.getElementById(n);a||((a=document.createElement(&quot;style&quot;)).setAttribute(&quot;id&quot;,n),a.appendChild(document.createTextNode(&quot;&quot;)),document.head.appendChild(a));var o=a.sheet;o.insertRule?o.insertRule(e+&quot;{&quot;+r+&quot;}&quot;,0):o.addRule?o.addRule(e,r,0):i.warn(&quot;addStyleRule failed&quot;)}function c(t){var e=window.getComputedStyle(t,null),r=e.getPropertyValue(&quot;-webkit-transform&quot;)||e.getPropertyValue(&quot;-moz-transform&quot;)||e.getPropertyValue(&quot;-ms-transform&quot;)||e.getPropertyValue(&quot;-o-transform&quot;)||e.getPropertyValue(&quot;transform&quot;);return&quot;none&quot;===r?null:r.replace(&quot;matrix&quot;,&quot;&quot;).replace(&quot;3d&quot;,&quot;&quot;).slice(1,-1).split(&quot;,&quot;).map((function(t){return+t}))}function u(t){for(var e=[];f(t);)e.push(t),t=t.parentNode;return e}function f(t){return t&amp;&amp;(t instanceof Element||t instanceof HTMLElement)}e.exports={getGraphDiv:function(t){var e;if(&quot;string&quot;==typeof t){if(null===(e=document.getElementById(t)))throw new Error(&quot;No DOM element with id '&quot;+t+&quot;' exists on the page.&quot;);return e}if(null==t)throw new Error(&quot;DOM element provided is null or undefined&quot;);return t},isPlotDiv:function(t){var e=n.select(t);return e.node()instanceof HTMLElement&amp;&amp;e.size()&amp;&amp;e.classed(&quot;js-plotly-plot&quot;)},removeElement:s,addStyleRule:function(t,e){l(&quot;global&quot;,t,e)},addRelatedStyleRule:l,deleteRelatedStyleRule:function(t){var e=&quot;plotly.js-style-&quot;+t,r=document.getElementById(e);r&amp;&amp;s(r)},getFullTransformMatrix:function(t){var e=u(t),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach((function(t){var e=c(t);if(e){var n=a.convertCssMatrix(e);r=o.multiply(r,r,n)}})),r},getElementTransformMatrix:c,getElementAndAncestors:u,equalDomRects:function(t,e){return t&amp;&amp;e&amp;&amp;t.x===e.x&amp;&amp;t.y===e.y&amp;&amp;t.top===e.top&amp;&amp;t.left===e.left&amp;&amp;t.right===e.right&amp;&amp;t.bottom===e.bottom}}},{&quot;./loggers&quot;:507,&quot;./matrix&quot;:509,&quot;@plotly/d3&quot;:58,&quot;gl-mat4&quot;:210}],492:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;events&quot;).EventEmitter,i={init:function(t){if(t._ev instanceof n)return t;var e=new n,r=new n;return t._ev=e,t._internalEv=r,t.on=e.on.bind(e),t.once=e.once.bind(e),t.removeListener=e.removeListener.bind(e),t.removeAllListeners=e.removeAllListeners.bind(e),t._internalOn=r.on.bind(r),t._internalOnce=r.once.bind(r),t._removeInternalListener=r.removeListener.bind(r),t._removeAllInternalListeners=r.removeAllListeners.bind(r),t.emit=function(n,i){&quot;undefined&quot;!=typeof jQuery&amp;&amp;jQuery(t).trigger(n,i),e.emit(n,i),r.emit(n,i)},t},triggerHandler:function(t,e,r){var n,i;&quot;undefined&quot;!=typeof jQuery&amp;&amp;(n=jQuery(t).triggerHandler(e,r));var a=t._ev;if(!a)return n;var o,s=a._events[e];if(!s)return n;function l(t){return t.listener?(a.removeListener(e,t.listener),t.fired?void 0:(t.fired=!0,t.listener.apply(a,[r]))):t.apply(a,[r])}for(s=Array.isArray(s)?s:[s],o=0;o&lt;s.length-1;o++)l(s[o]);return i=l(s[o]),void 0!==n?n:i},purge:function(t){return delete t._ev,delete t.on,delete t.once,delete t.removeListener,delete t.removeAllListeners,delete t.emit,delete t._ev,delete t._internalEv,delete t._internalOn,delete t._internalOnce,delete t._removeInternalListener,delete t._removeAllInternalListeners,t}};e.exports=i},{events:84}],493:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is_plain_object.js&quot;),i=Array.isArray;function a(t,e,r,o){var s,l,c,u,f,h,p=t[0],d=t.length;if(2===d&amp;&amp;i(p)&amp;&amp;i(t[1])&amp;&amp;0===p.length){if(function(t,e){var r,n;for(r=0;r&lt;t.length;r++){if(null!==(n=t[r])&amp;&amp;&quot;object&quot;==typeof n)return!1;void 0!==n&amp;&amp;(e[r]=n)}return!0}(t[1],p))return p;p.splice(0,p.length)}for(var m=1;m&lt;d;m++)for(l in s=t[m])c=p[l],u=s[l],o&amp;&amp;i(u)?p[l]=u:e&amp;&amp;u&amp;&amp;(n(u)||(f=i(u)))?(f?(f=!1,h=c&amp;&amp;i(c)?c:[]):h=c&amp;&amp;n(c)?c:{},p[l]=a([h,u],e,r,o)):(void 0!==u||r)&amp;&amp;(p[l]=u);return p}r.extendFlat=function(){return a(arguments,!1,!1,!1)},r.extendDeep=function(){return a(arguments,!0,!1,!1)},r.extendDeepAll=function(){return a(arguments,!0,!0,!1)},r.extendDeepNoArrays=function(){return a(arguments,!0,!1,!0)}},{&quot;./is_plain_object.js&quot;:504}],494:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e={},r=[],n=0,i=0;i&lt;t.length;i++){var a=t[i];1!==e[a]&amp;&amp;(e[a]=1,r[n++]=a)}return r}},{}],495:[function(t,e,r){&quot;use strict&quot;;function n(t){return!0===t.visible}function i(t){var e=t[0].trace;return!0===e.visible&amp;&amp;0!==e._length}e.exports=function(t){for(var e,r=(e=t,Array.isArray(e)&amp;&amp;Array.isArray(e[0])&amp;&amp;e[0][0]&amp;&amp;e[0][0].trace?i:n),a=[],o=0;o&lt;t.length;o++){var s=t[o];r(s)&amp;&amp;a.push(s)}return a}},{}],496:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;country-regex&quot;),a=t(&quot;@turf/area&quot;),o=t(&quot;@turf/centroid&quot;),s=t(&quot;@turf/bbox&quot;),l=t(&quot;./identity&quot;),c=t(&quot;./loggers&quot;),u=t(&quot;./is_plain_object&quot;),f=t(&quot;./nested_property&quot;),h=t(&quot;./polygon&quot;),p=Object.keys(i),d={&quot;ISO-3&quot;:l,&quot;USA-states&quot;:l,&quot;country names&quot;:function(t){for(var e=0;e&lt;p.length;e++){var r=p[e];if(new RegExp(i[r]).test(t.trim().toLowerCase()))return r}return c.log(&quot;Unrecognized country name: &quot;+t+&quot;.&quot;),!1}};function m(t){var e=t.geojson,r=window.PlotlyGeoAssets||{},n=&quot;string&quot;==typeof e?r[e]:e;return u(n)?n:(c.error(&quot;Oops ... something went wrong when fetching &quot;+e),!1)}e.exports={locationToFeature:function(t,e,r){if(!e||&quot;string&quot;!=typeof e)return!1;var n,i,a,o=d[t](e);if(o){if(&quot;USA-states&quot;===t)for(n=[],a=0;a&lt;r.length;a++)(i=r[a]).properties&amp;&amp;i.properties.gu&amp;&amp;&quot;USA&quot;===i.properties.gu&amp;&amp;n.push(i);else n=r;for(a=0;a&lt;n.length;a++)if((i=n[a]).id===o)return i;c.log([&quot;Location with id&quot;,o,&quot;does not have a matching topojson feature at this resolution.&quot;].join(&quot; &quot;))}return!1},feature2polygons:function(t){var e,r,n,i,a=t.geometry,o=a.coordinates,s=t.id,l=[];function c(t){for(var e=0;e&lt;t.length-1;e++)if(t[e][0]&gt;0&amp;&amp;t[e+1][0]&lt;0)return e;return null}switch(e=&quot;RUS&quot;===s||&quot;FJI&quot;===s?function(t){var e;if(null===c(t))e=t;else for(e=new Array(t.length),i=0;i&lt;t.length;i++)e[i]=[t[i][0]&lt;0?t[i][0]+360:t[i][0],t[i][1]];l.push(h.tester(e))}:&quot;ATA&quot;===s?function(t){var e=c(t);if(null===e)return l.push(h.tester(t));var r=new Array(t.length+1),n=0;for(i=0;i&lt;t.length;i++)i&gt;e?r[n++]=[t[i][0]+360,t[i][1]]:i===e?(r[n++]=t[i],r[n++]=[t[i][0],-90]):r[n++]=t[i];var a=h.tester(r);a.pts.pop(),l.push(a)}:function(t){l.push(h.tester(t))},a.type){case&quot;MultiPolygon&quot;:for(r=0;r&lt;o.length;r++)for(n=0;n&lt;o[r].length;n++)e(o[r][n]);break;case&quot;Polygon&quot;:for(r=0;r&lt;o.length;r++)e(o[r])}return l},getTraceGeojson:m,extractTraceFeature:function(t){var e=t[0].trace,r=m(e);if(!r)return!1;var n,i={},s=[];for(n=0;n&lt;e._length;n++){var l=t[n];(l.loc||0===l.loc)&amp;&amp;(i[l.loc]=l)}function u(t){var r=f(t,e.featureidkey||&quot;id&quot;).get(),n=i[r];if(n){var l=t.geometry;if(&quot;Polygon&quot;===l.type||&quot;MultiPolygon&quot;===l.type){var u={type:&quot;Feature&quot;,id:r,geometry:l,properties:{}};u.properties.ct=function(t){var e,r=t.geometry;if(&quot;MultiPolygon&quot;===r.type)for(var n=r.coordinates,i=0,s=0;s&lt;n.length;s++){var l={type:&quot;Polygon&quot;,coordinates:n[s]},c=a.default(l);c&gt;i&amp;&amp;(i=c,e=l)}else e=r;return o.default(e).geometry.coordinates}(u),n.fIn=t,n.fOut=u,s.push(u)}else c.log([&quot;Location&quot;,n.loc,&quot;does not have a valid GeoJSON geometry.&quot;,&quot;Traces with locationmode *geojson-id* only support&quot;,&quot;*Polygon* and *MultiPolygon* geometries.&quot;].join(&quot; &quot;))}delete i[r]}switch(r.type){case&quot;FeatureCollection&quot;:var h=r.features;for(n=0;n&lt;h.length;n++)u(h[n]);break;case&quot;Feature&quot;:u(r);break;default:return c.warn([&quot;Invalid GeoJSON type&quot;,(r.type||&quot;none&quot;)+&quot;.&quot;,&quot;Traces with locationmode *geojson-id* only support&quot;,&quot;*FeatureCollection* and *Feature* types.&quot;].join(&quot; &quot;)),!1}for(var p in i)c.log([&quot;Location *&quot;+p+&quot;*&quot;,&quot;does not have a matching feature with id-key&quot;,&quot;*&quot;+e.featureidkey+&quot;*.&quot;].join(&quot; &quot;));return s},fetchTraceGeoData:function(t){var e=window.PlotlyGeoAssets||{},r=[];function i(t){return new Promise((function(r,i){n.json(t,(function(n,a){if(n){delete e[t];var o=404===n.status?'GeoJSON at URL &quot;'+t+'&quot; does not exist.':&quot;Unexpected error while fetching from &quot;+t;return i(new Error(o))}return e[t]=a,r(a)}))}))}function a(t){return new Promise((function(r,n){var i=0,a=setInterval((function(){return e[t]&amp;&amp;&quot;pending&quot;!==e[t]?(clearInterval(a),r(e[t])):i&gt;100?(clearInterval(a),n(&quot;Unexpected error while fetching from &quot;+t)):void i++}),50)}))}for(var o=0;o&lt;t.length;o++){var s=t[o][0].trace.geojson;&quot;string&quot;==typeof s&amp;&amp;(e[s]?&quot;pending&quot;===e[s]&amp;&amp;r.push(a(s)):(e[s]=&quot;pending&quot;,r.push(i(s))))}return r},computeBbox:function(t){return s.default(t)}}},{&quot;./identity&quot;:501,&quot;./is_plain_object&quot;:504,&quot;./loggers&quot;:507,&quot;./nested_property&quot;:511,&quot;./polygon&quot;:515,&quot;@plotly/d3&quot;:58,&quot;@turf/area&quot;:61,&quot;@turf/bbox&quot;:64,&quot;@turf/centroid&quot;:67,&quot;country-regex&quot;:94}],497:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../constants/numerical&quot;).BADNUM;r.calcTraceToLineCoords=function(t){for(var e=t[0].trace.connectgaps,r=[],i=[],a=0;a&lt;t.length;a++){var o=t[a].lonlat;o[0]!==n?i.push(o):!e&amp;&amp;i.length&gt;0&amp;&amp;(r.push(i),i=[])}return i.length&gt;0&amp;&amp;r.push(i),r},r.makeLine=function(t){return 1===t.length?{type:&quot;LineString&quot;,coordinates:t[0]}:{type:&quot;MultiLineString&quot;,coordinates:t}},r.makePolygon=function(t){if(1===t.length)return{type:&quot;Polygon&quot;,coordinates:t};for(var e=new Array(t.length),r=0;r&lt;t.length;r++)e[r]=[t[r]];return{type:&quot;MultiPolygon&quot;,coordinates:e}},r.makeBlank=function(){return{type:&quot;Point&quot;,coordinates:[]}}},{&quot;../constants/numerical&quot;:479}],498:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o=t(&quot;./mod&quot;).mod;function s(t,e,r,n,i,a,o,s){var l=r-t,c=i-t,u=o-i,f=n-e,h=a-e,p=s-a,d=l*p-u*f;if(0===d)return null;var m=(c*p-u*h)/d,g=(c*f-l*h)/d;return g&lt;0||g&gt;1||m&lt;0||m&gt;1?null:{x:t+l*m,y:e+f*m}}function l(t,e,r,n,i){var a=n*t+i*e;if(a&lt;0)return n*n+i*i;if(a&gt;r){var o=n-t,s=i-e;return o*o+s*s}var l=n*e-i*t;return l*l/r}r.segmentsIntersect=s,r.segmentDistance=function(t,e,r,n,i,a,o,c){if(s(t,e,r,n,i,a,o,c))return 0;var u=r-t,f=n-e,h=o-i,p=c-a,d=u*u+f*f,m=h*h+p*p,g=Math.min(l(u,f,d,i-t,a-e),l(u,f,d,o-t,c-e),l(h,p,m,t-i,e-a),l(h,p,m,r-i,n-a));return Math.sqrt(g)},r.getTextLocation=function(t,e,r,s){if(t===i&amp;&amp;s===a||(n={},i=t,a=s),n[r])return n[r];var l=t.getPointAtLength(o(r-s/2,e)),c=t.getPointAtLength(o(r+s/2,e)),u=Math.atan((c.y-l.y)/(c.x-l.x)),f=t.getPointAtLength(o(r,e)),h={x:(4*f.x+l.x+c.x)/6,y:(4*f.y+l.y+c.y)/6,theta:u};return n[r]=h,h},r.clearLocationCache=function(){i=null},r.getVisibleSegment=function(t,e,r){var n,i,a=e.left,o=e.right,s=e.top,l=e.bottom,c=0,u=t.getTotalLength(),f=u;function h(e){var r=t.getPointAtLength(e);0===e?n=r:e===u&amp;&amp;(i=r);var c=r.x&lt;a?a-r.x:r.x&gt;o?r.x-o:0,f=r.y&lt;s?s-r.y:r.y&gt;l?r.y-l:0;return Math.sqrt(c*c+f*f)}for(var p=h(c);p;){if((c+=p+r)&gt;f)return;p=h(c)}for(p=h(f);p;){if(c&gt;(f-=p+r))return;p=h(f)}return{min:c,max:f,len:f-c,total:u,isClosed:0===c&amp;&amp;f===u&amp;&amp;Math.abs(n.x-i.x)&lt;.1&amp;&amp;Math.abs(n.y-i.y)&lt;.1}},r.findPointOnPath=function(t,e,r,n){for(var i,a,o,s=(n=n||{}).pathLength||t.getTotalLength(),l=n.tolerance||.001,c=n.iterationLimit||30,u=t.getPointAtLength(0)[r]&gt;t.getPointAtLength(s)[r]?-1:1,f=0,h=0,p=s;f&lt;c;){if(i=(h+p)/2,o=(a=t.getPointAtLength(i))[r]-e,Math.abs(o)&lt;l)return a;u*o&gt;0?p=i:h=i,f++}return a}},{&quot;./mod&quot;:510}],499:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;color-normalize&quot;),o=t(&quot;../components/colorscale&quot;),s=t(&quot;../components/color/attributes&quot;).defaultLine,l=t(&quot;./array&quot;).isArrayOrTypedArray,c=a(s);function u(t,e){var r=t;return r[3]*=e,r}function f(t){if(n(t))return c;var e=a(t);return e.length?e:c}function h(t){return n(t)?t:1}e.exports={formatColor:function(t,e,r){var n,i,s,p,d,m=t.color,g=l(m),v=l(e),y=o.extractOpts(t),x=[];if(n=void 0!==y.colorscale?o.makeColorScaleFuncFromTrace(t):f,i=g?function(t,e){return void 0===t[e]?c:a(n(t[e]))}:f,s=v?function(t,e){return void 0===t[e]?1:h(t[e])}:h,g||v)for(var b=0;b&lt;r;b++)p=i(m,b),d=s(e,b),x[b]=u(p,d);else x=u(a(m),e);return x},parseColorScale:function(t){var e=o.extractOpts(t),r=e.colorscale;return e.reversescale&amp;&amp;(r=o.flipScale(e.colorscale)),r.map((function(t){var e=t[0],r=i(t[1]).toRgb();return{index:e,rgb:[r.r,r.g,r.b,r.a]}}))}}},{&quot;../components/color/attributes&quot;:365,&quot;../components/colorscale&quot;:378,&quot;./array&quot;:485,&quot;color-normalize&quot;:89,&quot;fast-isnumeric&quot;:190,tinycolor2:312}],500:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./identity&quot;);function i(t){return[t]}e.exports={keyFun:function(t){return t.key},repeat:i,descend:n,wrap:i,unwrap:function(t){return t[0]}}},{&quot;./identity&quot;:501}],501:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t}},{}],502:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(!e)return t;var r=1/Math.abs(e),n=r&gt;1?(r*t+r*e)/r:t+e,i=String(n).length;if(i&gt;16){var a=String(e).length;if(i&gt;=String(t).length+a){var o=parseFloat(n).toPrecision(12);-1===o.indexOf(&quot;e+&quot;)&amp;&amp;(n=+o)}}return n}},{}],503:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-time-format&quot;).utcFormat,a=t(&quot;d3-format&quot;).format,o=t(&quot;fast-isnumeric&quot;),s=t(&quot;../constants/numerical&quot;),l=s.FP_SAFE,c=-l,u=s.BADNUM,f=e.exports={};f.adjustFormat=function(t){return!t||/^\d[.]\df/.test(t)||/[.]\d%/.test(t)?t:&quot;0.f&quot;===t?&quot;~f&quot;:/^\d%/.test(t)?&quot;~%&quot;:/^\ds/.test(t)?&quot;~s&quot;:!/^[~,.0$]/.test(t)&amp;&amp;/[&amp;fps]/.test(t)?&quot;~&quot;+t:t};var h={};f.warnBadFormat=function(t){var e=String(t);h[e]||(h[e]=1,f.warn('encountered bad format: &quot;'+e+'&quot;'))},f.noFormat=function(t){return String(t)},f.numberFormat=function(t){var e;try{e=a(f.adjustFormat(t))}catch(e){return f.warnBadFormat(t),f.noFormat}return e},f.nestedProperty=t(&quot;./nested_property&quot;),f.keyedContainer=t(&quot;./keyed_container&quot;),f.relativeAttr=t(&quot;./relative_attr&quot;),f.isPlainObject=t(&quot;./is_plain_object&quot;),f.toLogRange=t(&quot;./to_log_range&quot;),f.relinkPrivateKeys=t(&quot;./relink_private&quot;);var p=t(&quot;./array&quot;);f.isTypedArray=p.isTypedArray,f.isArrayOrTypedArray=p.isArrayOrTypedArray,f.isArray1D=p.isArray1D,f.ensureArray=p.ensureArray,f.concat=p.concat,f.maxRowLength=p.maxRowLength,f.minRowLength=p.minRowLength;var d=t(&quot;./mod&quot;);f.mod=d.mod,f.modHalf=d.modHalf;var m=t(&quot;./coerce&quot;);f.valObjectMeta=m.valObjectMeta,f.coerce=m.coerce,f.coerce2=m.coerce2,f.coerceFont=m.coerceFont,f.coercePattern=m.coercePattern,f.coerceHoverinfo=m.coerceHoverinfo,f.coerceSelectionMarkerOpacity=m.coerceSelectionMarkerOpacity,f.validate=m.validate;var g=t(&quot;./dates&quot;);f.dateTime2ms=g.dateTime2ms,f.isDateTime=g.isDateTime,f.ms2DateTime=g.ms2DateTime,f.ms2DateTimeLocal=g.ms2DateTimeLocal,f.cleanDate=g.cleanDate,f.isJSDate=g.isJSDate,f.formatDate=g.formatDate,f.incrementMonth=g.incrementMonth,f.dateTick0=g.dateTick0,f.dfltRange=g.dfltRange,f.findExactDates=g.findExactDates,f.MIN_MS=g.MIN_MS,f.MAX_MS=g.MAX_MS;var v=t(&quot;./search&quot;);f.findBin=v.findBin,f.sorterAsc=v.sorterAsc,f.sorterDes=v.sorterDes,f.distinctVals=v.distinctVals,f.roundUp=v.roundUp,f.sort=v.sort,f.findIndexOfMin=v.findIndexOfMin,f.sortObjectKeys=t(&quot;./sort_object_keys&quot;);var y=t(&quot;./stats&quot;);f.aggNums=y.aggNums,f.len=y.len,f.mean=y.mean,f.median=y.median,f.midRange=y.midRange,f.variance=y.variance,f.stdev=y.stdev,f.interp=y.interp;var x=t(&quot;./matrix&quot;);f.init2dArray=x.init2dArray,f.transposeRagged=x.transposeRagged,f.dot=x.dot,f.translationMatrix=x.translationMatrix,f.rotationMatrix=x.rotationMatrix,f.rotationXYMatrix=x.rotationXYMatrix,f.apply3DTransform=x.apply3DTransform,f.apply2DTransform=x.apply2DTransform,f.apply2DTransform2=x.apply2DTransform2,f.convertCssMatrix=x.convertCssMatrix,f.inverseTransformMatrix=x.inverseTransformMatrix;var b=t(&quot;./angles&quot;);f.deg2rad=b.deg2rad,f.rad2deg=b.rad2deg,f.angleDelta=b.angleDelta,f.angleDist=b.angleDist,f.isFullCircle=b.isFullCircle,f.isAngleInsideSector=b.isAngleInsideSector,f.isPtInsideSector=b.isPtInsideSector,f.pathArc=b.pathArc,f.pathSector=b.pathSector,f.pathAnnulus=b.pathAnnulus;var _=t(&quot;./anchor_utils&quot;);f.isLeftAnchor=_.isLeftAnchor,f.isCenterAnchor=_.isCenterAnchor,f.isRightAnchor=_.isRightAnchor,f.isTopAnchor=_.isTopAnchor,f.isMiddleAnchor=_.isMiddleAnchor,f.isBottomAnchor=_.isBottomAnchor;var w=t(&quot;./geometry2d&quot;);f.segmentsIntersect=w.segmentsIntersect,f.segmentDistance=w.segmentDistance,f.getTextLocation=w.getTextLocation,f.clearLocationCache=w.clearLocationCache,f.getVisibleSegment=w.getVisibleSegment,f.findPointOnPath=w.findPointOnPath;var T=t(&quot;./extend&quot;);f.extendFlat=T.extendFlat,f.extendDeep=T.extendDeep,f.extendDeepAll=T.extendDeepAll,f.extendDeepNoArrays=T.extendDeepNoArrays;var k=t(&quot;./loggers&quot;);f.log=k.log,f.warn=k.warn,f.error=k.error;var A=t(&quot;./regex&quot;);f.counterRegex=A.counter;var M=t(&quot;./throttle&quot;);f.throttle=M.throttle,f.throttleDone=M.done,f.clearThrottle=M.clear;var S=t(&quot;./dom&quot;);function E(t){var e={};for(var r in t)for(var n=t[r],i=0;i&lt;n.length;i++)e[n[i]]=+r;return e}f.getGraphDiv=S.getGraphDiv,f.isPlotDiv=S.isPlotDiv,f.removeElement=S.removeElement,f.addStyleRule=S.addStyleRule,f.addRelatedStyleRule=S.addRelatedStyleRule,f.deleteRelatedStyleRule=S.deleteRelatedStyleRule,f.getFullTransformMatrix=S.getFullTransformMatrix,f.getElementTransformMatrix=S.getElementTransformMatrix,f.getElementAndAncestors=S.getElementAndAncestors,f.equalDomRects=S.equalDomRects,f.clearResponsive=t(&quot;./clear_responsive&quot;),f.preserveDrawingBuffer=t(&quot;./preserve_drawing_buffer&quot;),f.makeTraceGroups=t(&quot;./make_trace_groups&quot;),f._=t(&quot;./localize&quot;),f.notifier=t(&quot;./notifier&quot;),f.filterUnique=t(&quot;./filter_unique&quot;),f.filterVisible=t(&quot;./filter_visible&quot;),f.pushUnique=t(&quot;./push_unique&quot;),f.increment=t(&quot;./increment&quot;),f.cleanNumber=t(&quot;./clean_number&quot;),f.ensureNumber=function(t){return o(t)?(t=Number(t))&gt;l||t&lt;c?u:t:u},f.isIndex=function(t,e){return!(void 0!==e&amp;&amp;t&gt;=e)&amp;&amp;(o(t)&amp;&amp;t&gt;=0&amp;&amp;t%1==0)},f.noop=t(&quot;./noop&quot;),f.identity=t(&quot;./identity&quot;),f.repeat=function(t,e){for(var r=new Array(e),n=0;n&lt;e;n++)r[n]=t;return r},f.swapAttrs=function(t,e,r,n){r||(r=&quot;x&quot;),n||(n=&quot;y&quot;);for(var i=0;i&lt;e.length;i++){var a=e[i],o=f.nestedProperty(t,a.replace(&quot;?&quot;,r)),s=f.nestedProperty(t,a.replace(&quot;?&quot;,n)),l=o.get();o.set(s.get()),s.set(l)}},f.raiseToTop=function(t){t.parentNode.appendChild(t)},f.cancelTransition=function(t){return t.transition().duration(0)},f.constrain=function(t,e,r){return e&gt;r?Math.max(r,Math.min(e,t)):Math.max(e,Math.min(r,t))},f.bBoxIntersect=function(t,e,r){return r=r||0,t.left&lt;=e.right+r&amp;&amp;e.left&lt;=t.right+r&amp;&amp;t.top&lt;=e.bottom+r&amp;&amp;e.top&lt;=t.bottom+r},f.simpleMap=function(t,e,r,n,i){for(var a=t.length,o=new Array(a),s=0;s&lt;a;s++)o[s]=e(t[s],r,n,i);return o},f.randstr=function t(e,r,n,i){if(n||(n=16),void 0===r&amp;&amp;(r=24),r&lt;=0)return&quot;0&quot;;var a,o,s=Math.log(Math.pow(2,r))/Math.log(n),l=&quot;&quot;;for(a=2;s===1/0;a*=2)s=Math.log(Math.pow(2,r/a))/Math.log(n)*a;var c=s-Math.floor(s);for(a=0;a&lt;Math.floor(s);a++)l=Math.floor(Math.random()*n).toString(n)+l;c&amp;&amp;(o=Math.pow(n,c),l=Math.floor(Math.random()*o).toString(n)+l);var u=parseInt(l,n);return e&amp;&amp;e[l]||u!==1/0&amp;&amp;u&gt;=Math.pow(2,r)?i&gt;10?(f.warn(&quot;randstr failed uniqueness&quot;),l):t(e,r,n,(i||0)+1):l},f.OptionControl=function(t,e){t||(t={}),e||(e=&quot;opt&quot;);var r={optionList:[],_newoption:function(n){n[e]=t,r[n.name]=n,r.optionList.push(n)}};return r[&quot;_&quot;+e]=t,r},f.smooth=function(t,e){if((e=Math.round(e)||0)&lt;2)return t;var r,n,i,a,o=t.length,s=2*o,l=2*e-1,c=new Array(l),u=new Array(o);for(r=0;r&lt;l;r++)c[r]=(1-Math.cos(Math.PI*(r+1)/e))/(2*e);for(r=0;r&lt;o;r++){for(a=0,n=0;n&lt;l;n++)(i=r+n+1-e)&lt;-o?i-=s*Math.round(i/s):i&gt;=s&amp;&amp;(i-=s*Math.floor(i/s)),i&lt;0?i=-1-i:i&gt;=o&amp;&amp;(i=s-1-i),a+=t[i]*c[n];u[r]=a}return u},f.syncOrAsync=function(t,e,r){var n;function i(){return f.syncOrAsync(t,e,r)}for(;t.length;)if((n=(0,t.splice(0,1)[0])(e))&amp;&amp;n.then)return n.then(i);return r&amp;&amp;r(e)},f.stripTrailingSlash=function(t){return&quot;/&quot;===t.substr(-1)?t.substr(0,t.length-1):t},f.noneOrAll=function(t,e,r){if(t){var n,i=!1,a=!0;for(n=0;n&lt;r.length;n++)null!=t[r[n]]?i=!0:a=!1;if(i&amp;&amp;!a)for(n=0;n&lt;r.length;n++)t[r[n]]=e[r[n]]}},f.mergeArray=function(t,e,r,n){var i=&quot;function&quot;==typeof n;if(f.isArrayOrTypedArray(t))for(var a=Math.min(t.length,e.length),o=0;o&lt;a;o++){var s=t[o];e[o][r]=i?n(s):s}},f.mergeArrayCastPositive=function(t,e,r){return f.mergeArray(t,e,r,(function(t){var e=+t;return isFinite(e)&amp;&amp;e&gt;0?e:0}))},f.fillArray=function(t,e,r,n){if(n=n||f.identity,f.isArrayOrTypedArray(t))for(var i=0;i&lt;e.length;i++)e[i][r]=n(t[i])},f.castOption=function(t,e,r,n){n=n||f.identity;var i=f.nestedProperty(t,r).get();return f.isArrayOrTypedArray(i)?Array.isArray(e)&amp;&amp;f.isArrayOrTypedArray(i[e[0]])?n(i[e[0]][e[1]]):n(i[e]):i},f.extractOption=function(t,e,r,n){if(r in t)return t[r];var i=f.nestedProperty(e,n).get();return Array.isArray(i)?void 0:i},f.tagSelected=function(t,e,r){var n,i,a=e.selectedpoints,o=e._indexToPoints;o&amp;&amp;(n=E(o));for(var s=0;s&lt;a.length;s++){var l=a[s];if(f.isIndex(l)||f.isArrayOrTypedArray(l)&amp;&amp;f.isIndex(l[0])&amp;&amp;f.isIndex(l[1])){var c=n?n[l]:l,u=r?r[c]:c;void 0!==(i=u)&amp;&amp;i&lt;t.length&amp;&amp;(t[u].selected=1)}}},f.selIndices2selPoints=function(t){var e=t.selectedpoints,r=t._indexToPoints;if(r){for(var n=E(r),i=[],a=0;a&lt;e.length;a++){var o=e[a];if(f.isIndex(o)){var s=n[o];f.isIndex(s)&amp;&amp;i.push(s)}}return i}return e},f.getTargetArray=function(t,e){var r=e.target;if(&quot;string&quot;==typeof r&amp;&amp;r){var n=f.nestedProperty(t,r).get();return!!Array.isArray(n)&amp;&amp;n}return!!Array.isArray(r)&amp;&amp;r},f.minExtend=function(t,e){var r={};&quot;object&quot;!=typeof e&amp;&amp;(e={});var n,i,a,o=Object.keys(t);for(n=0;n&lt;o.length;n++)a=t[i=o[n]],&quot;_&quot;!==i.charAt(0)&amp;&amp;&quot;function&quot;!=typeof a&amp;&amp;(&quot;module&quot;===i?r[i]=a:Array.isArray(a)?r[i]=&quot;colorscale&quot;===i?a.slice():a.slice(0,3):f.isTypedArray(a)?r[i]=a.subarray(0,3):r[i]=a&amp;&amp;&quot;object&quot;==typeof a?f.minExtend(t[i],e[i]):a);for(o=Object.keys(e),n=0;n&lt;o.length;n++)&quot;object&quot;==typeof(a=e[i=o[n]])&amp;&amp;i in r&amp;&amp;&quot;object&quot;==typeof r[i]||(r[i]=a);return r},f.titleCase=function(t){return t.charAt(0).toUpperCase()+t.substr(1)},f.containsAny=function(t,e){for(var r=0;r&lt;e.length;r++)if(-1!==t.indexOf(e[r]))return!0;return!1},f.isIE=function(){return void 0!==window.navigator.msSaveBlob};var L=/Version\/[\d\.]+.*Safari/;f.isSafari=function(){return L.test(window.navigator.userAgent)};var C=/iPad|iPhone|iPod/;f.isIOS=function(){return C.test(window.navigator.userAgent)};var P=/Firefox\/(\d+)\.\d+/;f.getFirefoxVersion=function(){var t=P.exec(window.navigator.userAgent);if(t&amp;&amp;2===t.length){var e=parseInt(t[1]);if(!isNaN(e))return e}return null},f.isD3Selection=function(t){return t instanceof n.selection},f.ensureSingle=function(t,e,r,n){var i=t.select(e+(r?&quot;.&quot;+r:&quot;&quot;));if(i.size())return i;var a=t.append(e);return r&amp;&amp;a.classed(r,!0),n&amp;&amp;a.call(n),a},f.ensureSingleById=function(t,e,r,n){var i=t.select(e+&quot;#&quot;+r);if(i.size())return i;var a=t.append(e).attr(&quot;id&quot;,r);return n&amp;&amp;a.call(n),a},f.objectFromPath=function(t,e){for(var r,n=t.split(&quot;.&quot;),i=r={},a=0;a&lt;n.length;a++){var o=n[a],s=null,l=n[a].match(/(.*)\[([0-9]+)\]/);l?(o=l[1],s=l[2],r=r[o]=[],a===n.length-1?r[s]=e:r[s]={},r=r[s]):(a===n.length-1?r[o]=e:r[o]={},r=r[o])}return i};var I=/^([^\[\.]+)\.(.+)?/,O=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;f.expandObjectPaths=function(t){var e,r,n,i,a,o,s;if(&quot;object&quot;==typeof t&amp;&amp;!Array.isArray(t))for(r in t)t.hasOwnProperty(r)&amp;&amp;((e=r.match(I))?(i=t[r],n=e[1],delete t[r],t[n]=f.extendDeepNoArrays(t[n]||{},f.objectFromPath(r,f.expandObjectPaths(i))[n])):(e=r.match(O))?(i=t[r],n=e[1],a=parseInt(e[2]),delete t[r],t[n]=t[n]||[],&quot;.&quot;===e[3]?(s=e[4],o=t[n][a]=t[n][a]||{},f.extendDeepNoArrays(o,f.objectFromPath(s,f.expandObjectPaths(i)))):t[n][a]=f.expandObjectPaths(i)):t[r]=f.expandObjectPaths(t[r]));return t},f.numSeparate=function(t,e,r){if(r||(r=!1),&quot;string&quot;!=typeof e||0===e.length)throw new Error(&quot;Separator string required for formatting!&quot;);&quot;number&quot;==typeof t&amp;&amp;(t=String(t));var n=/(\d+)(\d{3})/,i=e.charAt(0),a=e.charAt(1),o=t.split(&quot;.&quot;),s=o[0],l=o.length&gt;1?i+o[1]:&quot;&quot;;if(a&amp;&amp;(o.length&gt;1||s.length&gt;4||r))for(;n.test(s);)s=s.replace(n,&quot;$1&quot;+a+&quot;$2&quot;);return s+l},f.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var z=/^\w*$/;f.templateString=function(t,e){var r={};return t.replace(f.TEMPLATE_STRING_REGEX,(function(t,n){var i;return z.test(n)?i=e[n]:(r[n]=r[n]||f.nestedProperty(e,n).get,i=r[n]()),f.isValidTextValue(i)?i:&quot;&quot;}))};var D={max:10,count:0,name:&quot;hovertemplate&quot;};f.hovertemplateString=function(){return B.apply(D,arguments)};var R={max:10,count:0,name:&quot;texttemplate&quot;};f.texttemplateString=function(){return B.apply(R,arguments)};var F=/^[:|\|]/;function B(t,e,r){var n=this,a=arguments;e||(e={});var o={};return t.replace(f.TEMPLATE_STRING_REGEX,(function(t,s,l){var c,u,h,p=&quot;_xother&quot;===s||&quot;_yother&quot;===s,d=&quot;_xother_&quot;===s||&quot;_yother_&quot;===s,m=&quot;xother_&quot;===s||&quot;yother_&quot;===s,g=&quot;xother&quot;===s||&quot;yother&quot;===s||p||m||d,v=s;if((p||d)&amp;&amp;(v=v.substring(1)),(m||d)&amp;&amp;(v=v.substring(0,v.length-1)),g){if(void 0===(c=e[v]))return&quot;&quot;}else for(h=3;h&lt;a.length;h++)if(u=a[h]){if(u.hasOwnProperty(v)){c=u[v];break}if(z.test(v)||(c=f.nestedProperty(u,v).get(),(c=o[v]||f.nestedProperty(u,v).get())&amp;&amp;(o[v]=c)),void 0!==c)break}if(void 0===c&amp;&amp;n)return n.count&lt;n.max&amp;&amp;(f.warn(&quot;Variable '&quot;+v+&quot;' in &quot;+n.name+&quot; could not be found!&quot;),c=t),n.count===n.max&amp;&amp;f.warn(&quot;Too many &quot;+n.name+&quot; warnings - additional warnings will be suppressed&quot;),n.count++,t;if(l){var y;if(&quot;:&quot;===l[0]&amp;&amp;(c=(y=r?r.numberFormat:f.numberFormat)(l.replace(F,&quot;&quot;))(c)),&quot;|&quot;===l[0]){y=r?r.timeFormat:i;var x=f.dateTime2ms(c);c=f.formatDate(x,l.replace(F,&quot;&quot;),!1,y)}}else{var b=v+&quot;Label&quot;;e.hasOwnProperty(b)&amp;&amp;(c=e[b])}return g&amp;&amp;(c=&quot;(&quot;+c+&quot;)&quot;,(p||d)&amp;&amp;(c=&quot; &quot;+c),(m||d)&amp;&amp;(c+=&quot; &quot;)),c}))}f.subplotSort=function(t,e){for(var r=Math.min(t.length,e.length)+1,n=0,i=0,a=0;a&lt;r;a++){var o=t.charCodeAt(a)||0,s=e.charCodeAt(a)||0,l=o&gt;=48&amp;&amp;o&lt;=57,c=s&gt;=48&amp;&amp;s&lt;=57;if(l&amp;&amp;(n=10*n+o-48),c&amp;&amp;(i=10*i+s-48),!l||!c){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var N=2e9;f.seedPseudoRandom=function(){N=2e9},f.pseudoRandom=function(){var t=N;return N=(69069*N+1)%4294967296,Math.abs(N-t)&lt;429496729?f.pseudoRandom():N/4294967296},f.fillText=function(t,e,r){var n=Array.isArray(r)?function(t){r.push(t)}:function(t){r.text=t},i=f.extractOption(t,e,&quot;htx&quot;,&quot;hovertext&quot;);if(f.isValidTextValue(i))return n(i);var a=f.extractOption(t,e,&quot;tx&quot;,&quot;text&quot;);return f.isValidTextValue(a)?n(a):void 0},f.isValidTextValue=function(t){return t||0===t},f.formatPercent=function(t,e){e=e||0;for(var r=(Math.round(100*t*Math.pow(10,e))*Math.pow(.1,e)).toFixed(e)+&quot;%&quot;,n=0;n&lt;e;n++)-1!==r.indexOf(&quot;.&quot;)&amp;&amp;(r=(r=r.replace(&quot;0%&quot;,&quot;%&quot;)).replace(&quot;.%&quot;,&quot;%&quot;));return r},f.isHidden=function(t){var e=window.getComputedStyle(t).display;return!e||&quot;none&quot;===e},f.strTranslate=function(t,e){return t||e?&quot;translate(&quot;+t+&quot;,&quot;+e+&quot;)&quot;:&quot;&quot;},f.strRotate=function(t){return t?&quot;rotate(&quot;+t+&quot;)&quot;:&quot;&quot;},f.strScale=function(t){return 1!==t?&quot;scale(&quot;+t+&quot;)&quot;:&quot;&quot;},f.getTextTransform=function(t){var e=t.noCenter,r=t.textX,n=t.textY,i=t.targetX,a=t.targetY,o=t.anchorX||0,s=t.anchorY||0,l=t.rotate,c=t.scale;return c?c&gt;1&amp;&amp;(c=1):c=0,f.strTranslate(i-c*(r+o),a-c*(n+s))+f.strScale(c)+(l?&quot;rotate(&quot;+l+(e?&quot;&quot;:&quot; &quot;+r+&quot; &quot;+n)+&quot;)&quot;:&quot;&quot;)},f.ensureUniformFontSize=function(t,e){var r=f.extendFlat({},e);return r.size=Math.max(e.size,t._fullLayout.uniformtext.minsize||0),r},f.join2=function(t,e,r){var n=t.length;return n&gt;1?t.slice(0,-1).join(e)+r+t[n-1]:t.join(e)},f.bigFont=function(t){return Math.round(1.2*t)};var j=f.getFirefoxVersion(),U=null!==j&amp;&amp;j&lt;86;f.getPositionFromD3Event=function(){return U?[n.event.layerX,n.event.layerY]:[n.event.offsetX,n.event.offsetY]}},{&quot;../constants/numerical&quot;:479,&quot;./anchor_utils&quot;:483,&quot;./angles&quot;:484,&quot;./array&quot;:485,&quot;./clean_number&quot;:486,&quot;./clear_responsive&quot;:488,&quot;./coerce&quot;:489,&quot;./dates&quot;:490,&quot;./dom&quot;:491,&quot;./extend&quot;:493,&quot;./filter_unique&quot;:494,&quot;./filter_visible&quot;:495,&quot;./geometry2d&quot;:498,&quot;./identity&quot;:501,&quot;./increment&quot;:502,&quot;./is_plain_object&quot;:504,&quot;./keyed_container&quot;:505,&quot;./localize&quot;:506,&quot;./loggers&quot;:507,&quot;./make_trace_groups&quot;:508,&quot;./matrix&quot;:509,&quot;./mod&quot;:510,&quot;./nested_property&quot;:511,&quot;./noop&quot;:512,&quot;./notifier&quot;:513,&quot;./preserve_drawing_buffer&quot;:517,&quot;./push_unique&quot;:518,&quot;./regex&quot;:520,&quot;./relative_attr&quot;:521,&quot;./relink_private&quot;:522,&quot;./search&quot;:523,&quot;./sort_object_keys&quot;:526,&quot;./stats&quot;:527,&quot;./throttle&quot;:530,&quot;./to_log_range&quot;:531,&quot;@plotly/d3&quot;:58,&quot;d3-format&quot;:112,&quot;d3-time-format&quot;:120,&quot;fast-isnumeric&quot;:190}],504:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return window&amp;&amp;window.process&amp;&amp;window.process.versions?&quot;[object Object]&quot;===Object.prototype.toString.call(t):&quot;[object Object]&quot;===Object.prototype.toString.call(t)&amp;&amp;Object.getPrototypeOf(t).hasOwnProperty(&quot;hasOwnProperty&quot;)}},{}],505:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./nested_property&quot;),i=/^\w*$/;e.exports=function(t,e,r,a){var o,s,l;r=r||&quot;name&quot;,a=a||&quot;value&quot;;var c={};e&amp;&amp;e.length?(l=n(t,e),s=l.get()):s=t,e=e||&quot;&quot;;var u={};if(s)for(o=0;o&lt;s.length;o++)u[s[o][r]]=o;var f=i.test(a),h={set:function(t,e){var i=null===e?4:0;if(!s){if(!l||4===i)return;s=[],l.set(s)}var o=u[t];if(void 0===o){if(4===i)return;i|=3,o=s.length,u[t]=o}else e!==(f?s[o][a]:n(s[o],a).get())&amp;&amp;(i|=2);var p=s[o]=s[o]||{};return p[r]=t,f?p[a]=e:n(p,a).set(e),null!==e&amp;&amp;(i&amp;=-5),c[o]=c[o]|i,h},get:function(t){if(s){var e=u[t];return void 0===e?void 0:f?s[e][a]:n(s[e],a).get()}},rename:function(t,e){var n=u[t];return void 0===n||(c[n]=1|c[n],u[e]=n,delete u[t],s[n][r]=e),h},remove:function(t){var e=u[t];if(void 0===e)return h;var i=s[e];if(Object.keys(i).length&gt;2)return c[e]=2|c[e],h.set(t,null);if(f){for(o=e;o&lt;s.length;o++)c[o]=3|c[o];for(o=e;o&lt;s.length;o++)u[s[o][r]]--;s.splice(e,1),delete u[t]}else n(i,a).set(null),c[e]=6|c[e];return h},constructUpdate:function(){for(var t,i,o={},l=Object.keys(c),u=0;u&lt;l.length;u++)i=l[u],t=e+&quot;[&quot;+i+&quot;]&quot;,s[i]?(1&amp;c[i]&amp;&amp;(o[t+&quot;.&quot;+r]=s[i][r]),2&amp;c[i]&amp;&amp;(o[t+&quot;.&quot;+a]=f?4&amp;c[i]?null:s[i][a]:4&amp;c[i]?null:n(s[i],a).get())):o[t]=null;return o}};return h}},{&quot;./nested_property&quot;:511}],506:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);e.exports=function(t,e){for(var r=t._context.locale,i=0;i&lt;2;i++){for(var a=t._context.locales,o=0;o&lt;2;o++){var s=(a[r]||{}).dictionary;if(s){var l=s[e];if(l)return l}a=n.localeRegistry}var c=r.split(&quot;-&quot;)[0];if(c===r)break;r=c}return e}},{&quot;../registry&quot;:638}],507:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../plot_api/plot_config&quot;).dfltConfig,i=t(&quot;./notifier&quot;),a=e.exports={};a.log=function(){var t;if(n.logging&gt;1){var e=[&quot;LOG:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);console.trace.apply(console,e)}if(n.notifyOnLogging&gt;1){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;long&quot;)}},a.warn=function(){var t;if(n.logging&gt;0){var e=[&quot;WARN:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);console.trace.apply(console,e)}if(n.notifyOnLogging&gt;0){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;stick&quot;)}},a.error=function(){var t;if(n.logging&gt;0){var e=[&quot;ERROR:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);console.error.apply(console,e)}if(n.notifyOnLogging&gt;0){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;stick&quot;)}}},{&quot;../plot_api/plot_config&quot;:541,&quot;./notifier&quot;:513}],508:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;);e.exports=function(t,e,r){var i=t.selectAll(&quot;g.&quot;+r.replace(/\s/g,&quot;.&quot;)).data(e,(function(t){return t[0].trace.uid}));i.exit().remove(),i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,r),i.order();var a=t.classed(&quot;rangeplot&quot;)?&quot;nodeRangePlot3&quot;:&quot;node3&quot;;return i.each((function(t){t[0][a]=n.select(this)})),i}},{&quot;@plotly/d3&quot;:58}],509:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mat4&quot;);r.init2dArray=function(t,e){for(var r=new Array(t),n=0;n&lt;t;n++)r[n]=new Array(e);return r},r.transposeRagged=function(t){var e,r,n=0,i=t.length;for(e=0;e&lt;i;e++)n=Math.max(n,t[e].length);var a=new Array(n);for(e=0;e&lt;n;e++)for(a[e]=new Array(i),r=0;r&lt;i;r++)a[e][r]=t[r][e];return a},r.dot=function(t,e){if(!t.length||!e.length||t.length!==e.length)return null;var n,i,a=t.length;if(t[0].length)for(n=new Array(a),i=0;i&lt;a;i++)n[i]=r.dot(t[i],e);else if(e[0].length){var o=r.transposeRagged(e);for(n=new Array(o.length),i=0;i&lt;o.length;i++)n[i]=r.dot(t,o[i])}else for(n=0,i=0;i&lt;a;i++)n+=t[i]*e[i];return n},r.translationMatrix=function(t,e){return[[1,0,t],[0,1,e],[0,0,1]]},r.rotationMatrix=function(t){var e=t*Math.PI/180;return[[Math.cos(e),-Math.sin(e),0],[Math.sin(e),Math.cos(e),0],[0,0,1]]},r.rotationXYMatrix=function(t,e,n){return r.dot(r.dot(r.translationMatrix(e,n),r.rotationMatrix(t)),r.translationMatrix(-e,-n))},r.apply3DTransform=function(t){return function(){var e=arguments,n=1===arguments.length?e[0]:[e[0],e[1],e[2]||0];return r.dot(t,[n[0],n[1],n[2],1]).slice(0,3)}},r.apply2DTransform=function(t){return function(){var e=arguments;3===e.length&amp;&amp;(e=e[0]);var n=1===arguments.length?e[0]:[e[0],e[1]];return r.dot(t,[n[0],n[1],1]).slice(0,2)}},r.apply2DTransform2=function(t){var e=r.apply2DTransform(t);return function(t){return e(t.slice(0,2)).concat(e(t.slice(2,4)))}},r.convertCssMatrix=function(t){if(t){var e=t.length;if(16===e)return t;if(6===e)return[t[0],t[1],0,0,t[2],t[3],0,0,0,0,1,0,t[4],t[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},r.inverseTransformMatrix=function(t){var e=[];return n.invert(e,t),[[e[0],e[1],e[2],e[3]],[e[4],e[5],e[6],e[7]],[e[8],e[9],e[10],e[11]],[e[12],e[13],e[14],e[15]]]}},{&quot;gl-mat4&quot;:210}],510:[function(t,e,r){&quot;use strict&quot;;e.exports={mod:function(t,e){var r=t%e;return r&lt;0?r+e:r},modHalf:function(t,e){return Math.abs(t)&gt;e/2?t-Math.round(t/e)*e:t}}},{}],511:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./array&quot;).isArrayOrTypedArray;function a(t,e){return function(){var r,n,o,s,l,c=t;for(s=0;s&lt;e.length-1;s++){if(-1===(r=e[s])){for(n=!0,o=[],l=0;l&lt;c.length;l++)o[l]=a(c[l],e.slice(s+1))(),o[l]!==o[0]&amp;&amp;(n=!1);return n?o[0]:o}if(&quot;number&quot;==typeof r&amp;&amp;!i(c))return;if(&quot;object&quot;!=typeof(c=c[r])||null===c)return}if(&quot;object&quot;==typeof c&amp;&amp;null!==c&amp;&amp;null!==(o=c[e[s]]))return o}}e.exports=function(t,e){if(n(e))e=String(e);else if(&quot;string&quot;!=typeof e||&quot;[-1]&quot;===e.substr(e.length-4))throw&quot;bad property string&quot;;for(var r,i,o,s=0,c=e.split(&quot;.&quot;);s&lt;c.length;){if(r=String(c[s]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(r[1])c[s]=r[1];else{if(0!==s)throw&quot;bad property string&quot;;c.splice(0,1)}for(i=r[2].substr(1,r[2].length-2).split(&quot;][&quot;),o=0;o&lt;i.length;o++)s++,c.splice(s,0,Number(i[o]))}s++}return&quot;object&quot;!=typeof t?function(t,e,r){return{set:function(){throw&quot;bad container&quot;},get:function(){},astr:e,parts:r,obj:t}}(t,e,c):{set:l(t,c,e),get:a(t,c),astr:e,parts:c,obj:t}};var o=/(^|\.)args\[/;function s(t,e){return void 0===t||null===t&amp;&amp;!e.match(o)}function l(t,e,r){return function(n){var a,o,l=t,h=&quot;&quot;,p=[[t,h]],d=s(n,r);for(o=0;o&lt;e.length-1;o++){if(&quot;number&quot;==typeof(a=e[o])&amp;&amp;!i(l))throw&quot;array index but container is not an array&quot;;if(-1===a){if(d=!u(l,e.slice(o+1),n,r))break;return}if(!f(l,a,e[o+1],d))break;if(&quot;object&quot;!=typeof(l=l[a])||null===l)throw&quot;container is not an object&quot;;h=c(h,a),p.push([l,h])}if(d){if(o===e.length-1&amp;&amp;(delete l[e[o]],Array.isArray(l)&amp;&amp;+e[o]==l.length-1))for(;l.length&amp;&amp;void 0===l[l.length-1];)l.pop()}else l[e[o]]=n}}function c(t,e){var r=e;return n(e)?r=&quot;[&quot;+e+&quot;]&quot;:t&amp;&amp;(r=&quot;.&quot;+e),t+r}function u(t,e,r,n){var a,o=i(r),c=!0,u=r,h=n.replace(&quot;-1&quot;,0),p=!o&amp;&amp;s(r,h),d=e[0];for(a=0;a&lt;t.length;a++)h=n.replace(&quot;-1&quot;,a),o&amp;&amp;(p=s(u=r[a%r.length],h)),p&amp;&amp;(c=!1),f(t,a,d,p)&amp;&amp;l(t[a],e,n.replace(&quot;-1&quot;,a))(u);return c}function f(t,e,r,n){if(void 0===t[e]){if(n)return!1;t[e]=&quot;number&quot;==typeof r?[]:{}}return!0}},{&quot;./array&quot;:485,&quot;fast-isnumeric&quot;:190}],512:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){}},{}],513:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=[];e.exports=function(t,e){if(-1===a.indexOf(t)){a.push(t);var r=1e3;i(e)?r=e:&quot;long&quot;===e&amp;&amp;(r=3e3);var o=n.select(&quot;body&quot;).selectAll(&quot;.plotly-notifier&quot;).data([0]);o.enter().append(&quot;div&quot;).classed(&quot;plotly-notifier&quot;,!0),o.selectAll(&quot;.notifier-note&quot;).data(a).enter().append(&quot;div&quot;).classed(&quot;notifier-note&quot;,!0).style(&quot;opacity&quot;,0).each((function(t){var i=n.select(this);i.append(&quot;button&quot;).classed(&quot;notifier-close&quot;,!0).html(&quot;&amp;times;&quot;).on(&quot;click&quot;,(function(){i.transition().call(s)}));for(var a=i.append(&quot;p&quot;),o=t.split(/&lt;br\s*\/?&gt;/g),l=0;l&lt;o.length;l++)l&amp;&amp;a.append(&quot;br&quot;),a.append(&quot;span&quot;).text(o[l]);&quot;stick&quot;===e?i.transition().duration(350).style(&quot;opacity&quot;,1):i.transition().duration(700).style(&quot;opacity&quot;,1).transition().delay(r).call(s)}))}function s(t){t.duration(700).style(&quot;opacity&quot;,0).each(&quot;end&quot;,(function(t){var e=a.indexOf(t);-1!==e&amp;&amp;a.splice(e,1),n.select(this).remove()}))}}},{&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:190}],514:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./setcursor&quot;),i=&quot;data-savedcursor&quot;;e.exports=function(t,e){var r=t.attr(i);if(e){if(!r){for(var a=(t.attr(&quot;class&quot;)||&quot;&quot;).split(&quot; &quot;),o=0;o&lt;a.length;o++){var s=a[o];0===s.indexOf(&quot;cursor-&quot;)&amp;&amp;t.attr(i,s.substr(7)).classed(s,!1)}t.attr(i)||t.attr(i,&quot;!!&quot;)}n(t,e)}else r&amp;&amp;(t.attr(i,null),&quot;!!&quot;===r?n(t):n(t,r))}},{&quot;./setcursor&quot;:524}],515:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./matrix&quot;).dot,i=t(&quot;../constants/numerical&quot;).BADNUM,a=e.exports={};a.tester=function(t){var e,r=t.slice(),n=r[0][0],a=n,o=r[0][1],s=o;for(r.push(r[0]),e=1;e&lt;r.length;e++)n=Math.min(n,r[e][0]),a=Math.max(a,r[e][0]),o=Math.min(o,r[e][1]),s=Math.max(s,r[e][1]);var l,c=!1;5===r.length&amp;&amp;(r[0][0]===r[1][0]?r[2][0]===r[3][0]&amp;&amp;r[0][1]===r[3][1]&amp;&amp;r[1][1]===r[2][1]&amp;&amp;(c=!0,l=function(t){return t[0]===r[0][0]}):r[0][1]===r[1][1]&amp;&amp;r[2][1]===r[3][1]&amp;&amp;r[0][0]===r[3][0]&amp;&amp;r[1][0]===r[2][0]&amp;&amp;(c=!0,l=function(t){return t[1]===r[0][1]}));var u=!0,f=r[0];for(e=1;e&lt;r.length;e++)if(f[0]!==r[e][0]||f[1]!==r[e][1]){u=!1;break}return{xmin:n,xmax:a,ymin:o,ymax:s,pts:r,contains:c?function(t,e){var r=t[0],c=t[1];return!(r===i||r&lt;n||r&gt;a||c===i||c&lt;o||c&gt;s)&amp;&amp;(!e||!l(t))}:function(t,e){var l=t[0],c=t[1];if(l===i||l&lt;n||l&gt;a||c===i||c&lt;o||c&gt;s)return!1;var u,f,h,p,d,m=r.length,g=r[0][0],v=r[0][1],y=0;for(u=1;u&lt;m;u++)if(f=g,h=v,g=r[u][0],v=r[u][1],!(l&lt;(p=Math.min(f,g))||l&gt;Math.max(f,g)||c&gt;Math.max(h,v)))if(c&lt;Math.min(h,v))l!==p&amp;&amp;y++;else{if(c===(d=g===f?c:h+(l-f)*(v-h)/(g-f)))return 1!==u||!e;c&lt;=d&amp;&amp;l!==p&amp;&amp;y++}return y%2==1},isRect:c,degenerate:u}},a.isSegmentBent=function(t,e,r,i){var a,o,s,l=t[e],c=[t[r][0]-l[0],t[r][1]-l[1]],u=n(c,c),f=Math.sqrt(u),h=[-c[1]/f,c[0]/f];for(a=e+1;a&lt;r;a++)if(o=[t[a][0]-l[0],t[a][1]-l[1]],(s=n(o,c))&lt;0||s&gt;u||Math.abs(n(o,h))&gt;i)return!0;return!1},a.filter=function(t,e){var r=[t[0]],n=0,i=0;function o(o){t.push(o);var s=r.length,l=n;r.splice(i+1);for(var c=l+1;c&lt;t.length;c++)(c===t.length-1||a.isSegmentBent(t,l,c+1,e))&amp;&amp;(r.push(t[c]),r.length&lt;s-2&amp;&amp;(n=c,i=r.length-1),l=c)}t.length&gt;1&amp;&amp;o(t.pop());return{addPt:o,raw:t,filtered:r}}},{&quot;../constants/numerical&quot;:479,&quot;./matrix&quot;:509}],516:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;./show_no_webgl_msg&quot;),i=t(&quot;regl&quot;);e.exports=function(t,e){var a=t._fullLayout,o=!0;return a._glcanvas.each((function(n){if(!n.regl&amp;&amp;(!n.pick||a._has(&quot;parcoords&quot;))){try{n.regl=i({canvas:this,attributes:{antialias:!n.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||r.devicePixelRatio,extensions:e||[]})}catch(t){o=!1}n.regl||(o=!1),o&amp;&amp;this.addEventListener(&quot;webglcontextlost&quot;,(function(e){t&amp;&amp;t.emit&amp;&amp;t.emit(&quot;plotly_webglcontextlost&quot;,{event:e,layer:n.key})}),!1)}})),o||n({container:a._glcontainer.node()}),o}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;./show_no_webgl_msg&quot;:525,regl:283}],517:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;is-mobile&quot;);e.exports=function(t){var e;if(&quot;string&quot;!=typeof(e=t&amp;&amp;t.hasOwnProperty(&quot;userAgent&quot;)?t.userAgent:function(){var t;&quot;undefined&quot;!=typeof navigator&amp;&amp;(t=navigator.userAgent);t&amp;&amp;t.headers&amp;&amp;&quot;string&quot;==typeof t.headers[&quot;user-agent&quot;]&amp;&amp;(t=t.headers[&quot;user-agent&quot;]);return t}()))return!0;var r=i({ua:{headers:{&quot;user-agent&quot;:e}},tablet:!0,featureDetect:!1});if(!r)for(var a=e.split(&quot; &quot;),o=1;o&lt;a.length;o++){if(-1!==a[o].indexOf(&quot;Safari&quot;))for(var s=o-1;s&gt;-1;s--){var l=a[s];if(&quot;Version/&quot;===l.substr(0,8)){var c=l.substr(8).split(&quot;.&quot;)[0];if(n(c)&amp;&amp;(c=+c),c&gt;=13)return!0}}}return r}},{&quot;fast-isnumeric&quot;:190,&quot;is-mobile&quot;:234}],518:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(e instanceof RegExp){for(var r=e.toString(),n=0;n&lt;t.length;n++)if(t[n]instanceof RegExp&amp;&amp;t[n].toString()===r)return t;t.push(e)}else!e&amp;&amp;0!==e||-1!==t.indexOf(e)||t.push(e);return t}},{}],519:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_config&quot;).dfltConfig;var a={add:function(t,e,r,n,a){var o,s;t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},s=t.undoQueue.index,t.autoplay?t.undoQueue.inSequence||(t.autoplay=!1):(!t.undoQueue.sequence||t.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},t.undoQueue.queue.splice(s,t.undoQueue.queue.length-s,o),t.undoQueue.index+=1):o=t.undoQueue.queue[s-1],t.undoQueue.beginSequence=!1,o&amp;&amp;(o.undo.calls.unshift(e),o.undo.args.unshift(r),o.redo.calls.push(n),o.redo.args.push(a)),t.undoQueue.queue.length&gt;i.queueLength&amp;&amp;(t.undoQueue.queue.shift(),t.undoQueue.index--))},startSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!0,t.undoQueue.beginSequence=!0},stopSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!1,t.undoQueue.beginSequence=!1},undo:function(t){var e,r;if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index&lt;=0)){for(t.undoQueue.index--,e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r&lt;e.undo.calls.length;r++)a.plotDo(t,e.undo.calls[r],e.undo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1}},redo:function(t){var e,r;if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index&gt;=t.undoQueue.queue.length)){for(e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r&lt;e.redo.calls.length;r++)a.plotDo(t,e.redo.calls[r],e.redo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1,t.undoQueue.index++}}};a.plotDo=function(t,e,r){t.autoplay=!0,r=function(t,e){for(var r,i=[],a=0;a&lt;e.length;a++)r=e[a],i[a]=r===t?r:&quot;object&quot;==typeof r?Array.isArray(r)?n.extendDeep([],r):n.extendDeepAll({},r):r;return i}(t,r),e.apply(null,r)},e.exports=a},{&quot;../lib&quot;:503,&quot;../plot_api/plot_config&quot;:541}],520:[function(t,e,r){&quot;use strict&quot;;r.counter=function(t,e,r,n){var i=(e||&quot;&quot;)+(r?&quot;&quot;:&quot;$&quot;),a=!1===n?&quot;&quot;:&quot;^&quot;;return&quot;xy&quot;===t?new RegExp(a+&quot;x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?&quot;+i):new RegExp(a+t+&quot;([2-9]|[1-9][0-9]+)?&quot;+i)}},{}],521:[function(t,e,r){&quot;use strict&quot;;var n=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,i=/^[^\.\[\]]+$/;e.exports=function(t,e){for(;e;){var r=t.match(n);if(r)t=r[1];else{if(!t.match(i))throw new Error(&quot;bad relativeAttr call:&quot;+[t,e]);t=&quot;&quot;}if(&quot;^&quot;!==e.charAt(0))break;e=e.slice(1)}return t&amp;&amp;&quot;[&quot;!==e.charAt(0)?t+&quot;.&quot;+e:t+e}},{}],522:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./array&quot;).isArrayOrTypedArray,i=t(&quot;./is_plain_object&quot;);e.exports=function t(e,r){for(var a in r){var o=r[a],s=e[a];if(s!==o)if(&quot;_&quot;===a.charAt(0)||&quot;function&quot;==typeof o){if(a in e)continue;e[a]=o}else if(n(o)&amp;&amp;n(s)&amp;&amp;i(o[0])){if(&quot;customdata&quot;===a||&quot;ids&quot;===a)continue;for(var l=Math.min(o.length,s.length),c=0;c&lt;l;c++)s[c]!==o[c]&amp;&amp;i(o[c])&amp;&amp;i(s[c])&amp;&amp;t(s[c],o[c])}else i(o)&amp;&amp;i(s)&amp;&amp;(t(s,o),Object.keys(s).length||delete e[a])}}},{&quot;./array&quot;:485,&quot;./is_plain_object&quot;:504}],523:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./loggers&quot;),a=t(&quot;./identity&quot;),o=t(&quot;../constants/numerical&quot;).BADNUM;function s(t,e){return t&lt;e}function l(t,e){return t&lt;=e}function c(t,e){return t&gt;e}function u(t,e){return t&gt;=e}r.findBin=function(t,e,r){if(n(e.start))return r?Math.ceil((t-e.start)/e.size-1e-9)-1:Math.floor((t-e.start)/e.size+1e-9);var a,o,f=0,h=e.length,p=0,d=h&gt;1?(e[h-1]-e[0])/(h-1):1;for(o=d&gt;=0?r?s:l:r?u:c,t+=1e-9*d*(r?-1:1)*(d&gt;=0?1:-1);f&lt;h&amp;&amp;p++&lt;100;)o(e[a=Math.floor((f+h)/2)],t)?f=a+1:h=a;return p&gt;90&amp;&amp;i.log(&quot;Long binary search...&quot;),f-1},r.sorterAsc=function(t,e){return t-e},r.sorterDes=function(t,e){return e-t},r.distinctVals=function(t){var e,n=t.slice();for(n.sort(r.sorterAsc),e=n.length-1;e&gt;-1&amp;&amp;n[e]===o;e--);for(var i,a=n[e]-n[0]||1,s=a/(e||1)/1e4,l=[],c=0;c&lt;=e;c++){var u=n[c],f=u-i;void 0===i?(l.push(u),i=u):f&gt;s&amp;&amp;(a=Math.min(a,f),l.push(u),i=u)}return{vals:l,minDiff:a}},r.roundUp=function(t,e,r){for(var n,i=0,a=e.length-1,o=0,s=r?0:1,l=r?1:0,c=r?Math.ceil:Math.floor;i&lt;a&amp;&amp;o++&lt;100;)e[n=c((i+a)/2)]&lt;=t?i=n+s:a=n-l;return e[i]},r.sort=function(t,e){for(var r=0,n=0,i=1;i&lt;t.length;i++){var a=e(t[i],t[i-1]);if(a&lt;0?r=1:a&gt;0&amp;&amp;(n=1),r&amp;&amp;n)return t.sort(e)}return n?t:t.reverse()},r.findIndexOfMin=function(t,e){e=e||a;for(var r,n=1/0,i=0;i&lt;t.length;i++){var o=e(t[i]);o&lt;n&amp;&amp;(n=o,r=i)}return r}},{&quot;../constants/numerical&quot;:479,&quot;./identity&quot;:501,&quot;./loggers&quot;:507,&quot;fast-isnumeric&quot;:190}],524:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){(t.attr(&quot;class&quot;)||&quot;&quot;).split(&quot; &quot;).forEach((function(e){0===e.indexOf(&quot;cursor-&quot;)&amp;&amp;t.classed(e,!1)})),e&amp;&amp;t.classed(&quot;cursor-&quot;+e,!0)}},{}],525:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../components/color&quot;),i=function(){};e.exports=function(t){for(var e in t)&quot;function&quot;==typeof t[e]&amp;&amp;(t[e]=i);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var r=document.createElement(&quot;div&quot;);r.className=&quot;no-webgl&quot;,r.style.cursor=&quot;pointer&quot;,r.style.fontSize=&quot;24px&quot;,r.style.color=n.defaults[0],r.style.position=&quot;absolute&quot;,r.style.left=r.style.top=&quot;0px&quot;,r.style.width=r.style.height=&quot;100%&quot;,r.style[&quot;background-color&quot;]=n.lightLine,r.style[&quot;z-index&quot;]=30;var a=document.createElement(&quot;p&quot;);return a.textContent=&quot;WebGL is not supported by your browser - visit https://get.webgl.org for more info&quot;,a.style.position=&quot;relative&quot;,a.style.top=&quot;50%&quot;,a.style.left=&quot;50%&quot;,a.style.height=&quot;30%&quot;,a.style.width=&quot;50%&quot;,a.style.margin=&quot;-15% 0 0 -25%&quot;,r.appendChild(a),t.container.appendChild(r),t.container.style.background=&quot;#FFFFFF&quot;,t.container.onclick=function(){window.open(&quot;https://get.webgl.org&quot;)},!1}},{&quot;../components/color&quot;:366}],526:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return Object.keys(t).sort()}},{}],527:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./array&quot;).isArrayOrTypedArray;r.aggNums=function(t,e,a,o){var s,l;if((!o||o&gt;a.length)&amp;&amp;(o=a.length),n(e)||(e=!1),i(a[0])){for(l=new Array(o),s=0;s&lt;o;s++)l[s]=r.aggNums(t,e,a[s]);a=l}for(s=0;s&lt;o;s++)n(e)?n(a[s])&amp;&amp;(e=t(+e,+a[s])):e=a[s];return e},r.len=function(t){return r.aggNums((function(t){return t+1}),0,t)},r.mean=function(t,e){return e||(e=r.len(t)),r.aggNums((function(t,e){return t+e}),0,t)/e},r.midRange=function(t){if(void 0!==t&amp;&amp;0!==t.length)return(r.aggNums(Math.max,null,t)+r.aggNums(Math.min,null,t))/2},r.variance=function(t,e,i){return e||(e=r.len(t)),n(i)||(i=r.mean(t,e)),r.aggNums((function(t,e){return t+Math.pow(e-i,2)}),0,t)/e},r.stdev=function(t,e,n){return Math.sqrt(r.variance(t,e,n))},r.median=function(t){var e=t.slice().sort();return r.interp(e,.5)},r.interp=function(t,e){if(!n(e))throw&quot;n should be a finite number&quot;;if((e=e*t.length-.5)&lt;0)return t[0];if(e&gt;t.length-1)return t[t.length-1];var r=e%1;return r*t[Math.ceil(e)]+(1-r)*t[Math.floor(e)]}},{&quot;./array&quot;:485,&quot;fast-isnumeric&quot;:190}],528:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-normalize&quot;);e.exports=function(t){return t?n(t):[0,0,0,1]}},{&quot;color-normalize&quot;:89}],529:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../lib&quot;),a=i.strTranslate,o=t(&quot;../constants/xmlns_namespaces&quot;),s=t(&quot;../constants/alignment&quot;).LINE_SPACING,l=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;r.convertToTspans=function(t,e,d){var A=t.text(),M=!t.attr(&quot;data-notex&quot;)&amp;&amp;&quot;undefined&quot;!=typeof MathJax&amp;&amp;A.match(l),L=n.select(t.node().parentNode);if(!L.empty()){var C=t.attr(&quot;class&quot;)?t.attr(&quot;class&quot;).split(&quot; &quot;)[0]:&quot;text&quot;;return C+=&quot;-math&quot;,L.selectAll(&quot;svg.&quot;+C).remove(),L.selectAll(&quot;g.&quot;+C+&quot;-group&quot;).remove(),t.style(&quot;display&quot;,null).attr({&quot;data-unformatted&quot;:A,&quot;data-math&quot;:&quot;N&quot;}),M?(e&amp;&amp;e._promises||[]).push(new Promise((function(e){t.style(&quot;display&quot;,&quot;none&quot;);var r=parseInt(t.node().style.fontSize,10),o={fontSize:r};!function(t,e,r){var a,o,s,l;MathJax.Hub.Queue((function(){return o=i.extendDeepAll({},MathJax.Hub.config),s=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&amp;&amp;(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:&quot;none&quot;,tex2jax:{inlineMath:[[&quot;$&quot;,&quot;$&quot;],[&quot;\\(&quot;,&quot;\\)&quot;]]},displayAlign:&quot;left&quot;})}),(function(){if(&quot;SVG&quot;!==(a=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer(&quot;SVG&quot;)}),(function(){var r=&quot;math-output-&quot;+i.randstr({},64);return l=n.select(&quot;body&quot;).append(&quot;div&quot;).attr({id:r}).style({visibility:&quot;hidden&quot;,position:&quot;absolute&quot;}).style({&quot;font-size&quot;:e.fontSize+&quot;px&quot;}).text(t.replace(c,&quot;\\lt &quot;).replace(u,&quot;\\gt &quot;)),MathJax.Hub.Typeset(l.node())}),(function(){var e=n.select(&quot;body&quot;).select(&quot;#MathJax_SVG_glyphs&quot;);if(l.select(&quot;.MathJax_SVG&quot;).empty()||!l.select(&quot;svg&quot;).node())i.log(&quot;There was an error in the tex syntax.&quot;,t),r();else{var o=l.select(&quot;svg&quot;).node().getBoundingClientRect();r(l.select(&quot;.MathJax_SVG&quot;),e,o)}if(l.remove(),&quot;SVG&quot;!==a)return MathJax.Hub.setRenderer(a)}),(function(){return void 0!==s&amp;&amp;(MathJax.Hub.processSectionDelay=s),MathJax.Hub.Config(o)}))}(M[2],o,(function(n,i,o){L.selectAll(&quot;svg.&quot;+C).remove(),L.selectAll(&quot;g.&quot;+C+&quot;-group&quot;).remove();var s=n&amp;&amp;n.select(&quot;svg&quot;);if(!s||!s.node())return P(),void e();var l=L.append(&quot;g&quot;).classed(C+&quot;-group&quot;,!0).attr({&quot;pointer-events&quot;:&quot;none&quot;,&quot;data-unformatted&quot;:A,&quot;data-math&quot;:&quot;Y&quot;});l.node().appendChild(s.node()),i&amp;&amp;i.node()&amp;&amp;s.node().insertBefore(i.node().cloneNode(!0),s.node().firstChild);var c=o.width,u=o.height;s.attr({class:C,height:u,preserveAspectRatio:&quot;xMinYMin meet&quot;}).style({overflow:&quot;visible&quot;,&quot;pointer-events&quot;:&quot;none&quot;});var f=t.node().style.fill||&quot;black&quot;,h=s.select(&quot;g&quot;);h.attr({fill:f,stroke:f});var p=h.node().getBoundingClientRect(),m=p.width,g=p.height;(m&gt;c||g&gt;u)&amp;&amp;(s.style(&quot;overflow&quot;,&quot;hidden&quot;),m=(p=s.node().getBoundingClientRect()).width,g=p.height);var v=+t.attr(&quot;x&quot;),y=+t.attr(&quot;y&quot;),x=-(r||t.node().getBoundingClientRect().height)/4;if(&quot;y&quot;===C[0])l.attr({transform:&quot;rotate(&quot;+[-90,v,y]+&quot;)&quot;+a(-m/2,x-g/2)});else if(&quot;l&quot;===C[0])y=x-g/2;else if(&quot;a&quot;===C[0]&amp;&amp;0!==C.indexOf(&quot;atitle&quot;))v=0,y=x;else{var b=t.attr(&quot;text-anchor&quot;);v-=m*(&quot;middle&quot;===b?.5:&quot;end&quot;===b?1:0),y=y+x-g/2}s.attr({x:v,y:y}),d&amp;&amp;d.call(t,l),e(l)}))}))):P(),t}function P(){L.empty()||(C=t.attr(&quot;class&quot;)+&quot;-math&quot;,L.select(&quot;svg.&quot;+C).remove()),t.text(&quot;&quot;).style(&quot;white-space&quot;,&quot;pre&quot;),function(t,e){e=e.replace(m,&quot; &quot;);var r,a=!1,l=[],c=-1;function u(){c++;var e=document.createElementNS(o.svg,&quot;tspan&quot;);n.select(e).attr({class:&quot;line&quot;,dy:c*s+&quot;em&quot;}),t.appendChild(e),r=e;var i=l;if(l=[{node:e}],i.length&gt;1)for(var a=1;a&lt;i.length;a++)d(i[a])}function d(t){var e,i=t.type,a={};if(&quot;a&quot;===i){e=&quot;a&quot;;var s=t.target,c=t.href,u=t.popup;c&amp;&amp;(a={&quot;xlink:xlink:show&quot;:&quot;_blank&quot;===s||&quot;_&quot;!==s.charAt(0)?&quot;new&quot;:&quot;replace&quot;,target:s,&quot;xlink:xlink:href&quot;:c},u&amp;&amp;(a.onclick='window.open(this.href.baseVal,this.target.baseVal,&quot;'+u+'&quot;);return false;'))}else e=&quot;tspan&quot;;t.style&amp;&amp;(a.style=t.style);var f=document.createElementNS(o.svg,e);if(&quot;sup&quot;===i||&quot;sub&quot;===i){A(r,&quot;\u200b&quot;),r.appendChild(f);var d=document.createElementNS(o.svg,&quot;tspan&quot;);A(d,&quot;\u200b&quot;),n.select(d).attr(&quot;dy&quot;,p[i]),a.dy=h[i],r.appendChild(f),r.appendChild(d)}else r.appendChild(f);n.select(f).attr(a),r=t.node=f,l.push(t)}function A(t,e){t.appendChild(document.createTextNode(e))}function M(t){if(1!==l.length){var n=l.pop();t!==n.type&amp;&amp;i.log(&quot;Start tag &lt;&quot;+n.type+&quot;&gt; doesnt match end tag &lt;&quot;+t+&quot;&gt;. Pretending it did match.&quot;,e),r=l[l.length-1].node}else i.log(&quot;Ignoring unexpected end tag &lt;/&quot;+t+&quot;&gt;.&quot;,e)}y.test(e)?u():(r=t,l=[{node:t}]);for(var L=e.split(g),C=0;C&lt;L.length;C++){var P=L[C],I=P.match(v),O=I&amp;&amp;I[2].toLowerCase(),z=f[O];if(&quot;br&quot;===O)u();else if(void 0===z)A(r,S(P));else if(I[1])M(O);else{var D=I[4],R={type:O},F=T(D,x);if(F?(F=F.replace(k,&quot;$1 fill:&quot;),z&amp;&amp;(F+=&quot;;&quot;+z)):z&amp;&amp;(F=z),F&amp;&amp;(R.style=F),&quot;a&quot;===O){a=!0;var B=T(D,b);if(B){var N=E(B);N&amp;&amp;(R.href=N,R.target=T(D,_)||&quot;_blank&quot;,R.popup=T(D,w))}}d(R)}}return a}(t.node(),A)&amp;&amp;t.style(&quot;pointer-events&quot;,&quot;all&quot;),r.positionText(t),d&amp;&amp;d.call(t)}};var c=/(&lt;|&amp;lt;|&amp;#60;)/g,u=/(&gt;|&amp;gt;|&amp;#62;)/g;var f={sup:&quot;font-size:70%&quot;,sub:&quot;font-size:70%&quot;,b:&quot;font-weight:bold&quot;,i:&quot;font-style:italic&quot;,a:&quot;cursor:pointer&quot;,span:&quot;&quot;,em:&quot;font-style:italic;font-weight:bold&quot;},h={sub:&quot;0.3em&quot;,sup:&quot;-0.6em&quot;},p={sub:&quot;-0.21em&quot;,sup:&quot;0.42em&quot;},d=[&quot;http:&quot;,&quot;https:&quot;,&quot;mailto:&quot;,&quot;&quot;,void 0,&quot;:&quot;],m=r.NEWLINES=/(\r\n?|\n)/g,g=/(&lt;[^&lt;&gt;]*&gt;)/,v=/&lt;(\/?)([^ &gt;]*)(\s+(.*))?&gt;/i,y=/&lt;br(\s+.*)?&gt;/i;r.BR_TAG_ALL=/&lt;br(\s+.*)?&gt;/gi;var x=/(^|[\s&quot;'])style\s*=\s*(&quot;([^&quot;]*);?&quot;|'([^']*);?')/i,b=/(^|[\s&quot;'])href\s*=\s*(&quot;([^&quot;]*)&quot;|'([^']*)')/i,_=/(^|[\s&quot;'])target\s*=\s*(&quot;([^&quot;\s]*)&quot;|'([^'\s]*)')/i,w=/(^|[\s&quot;'])popup\s*=\s*(&quot;([\w=,]*)&quot;|'([\w=,]*)')/i;function T(t,e){if(!t)return null;var r=t.match(e),n=r&amp;&amp;(r[3]||r[4]);return n&amp;&amp;S(n)}var k=/(^|;)\s*color:/;r.plainText=function(t,e){for(var r=void 0!==(e=e||{}).len&amp;&amp;-1!==e.len?e.len:1/0,n=void 0!==e.allowedTags?e.allowedTags:[&quot;br&quot;],i=&quot;...&quot;.length,a=t.split(g),o=[],s=&quot;&quot;,l=0,c=0;c&lt;a.length;c++){var u=a[c],f=u.match(v),h=f&amp;&amp;f[2].toLowerCase();if(h)-1!==n.indexOf(h)&amp;&amp;(o.push(u),s=h);else{var p=u.length;if(l+p&lt;r)o.push(u),l+=p;else if(l&lt;r){var d=r-l;s&amp;&amp;(&quot;br&quot;!==s||d&lt;=i||p&lt;=i)&amp;&amp;o.pop(),r&gt;i?o.push(u.substr(0,d-i)+&quot;...&quot;):o.push(u.substr(0,d));break}s=&quot;&quot;}}return o.join(&quot;&quot;)};var A={mu:&quot;\u03bc&quot;,amp:&quot;&amp;&quot;,lt:&quot;&lt;&quot;,gt:&quot;&gt;&quot;,nbsp:&quot;\xa0&quot;,times:&quot;\xd7&quot;,plusmn:&quot;\xb1&quot;,deg:&quot;\xb0&quot;},M=/&amp;(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function S(t){return t.replace(M,(function(t,e){return(&quot;#&quot;===e.charAt(0)?function(t){if(t&gt;1114111)return;var e=String.fromCodePoint;if(e)return e(t);var r=String.fromCharCode;return t&lt;=65535?r(t):r(55232+(t&gt;&gt;10),t%1024+56320)}(&quot;x&quot;===e.charAt(1)?parseInt(e.substr(2),16):parseInt(e.substr(1),10)):A[e])||t}))}function E(t){var e=encodeURI(decodeURI(t)),r=document.createElement(&quot;a&quot;),n=document.createElement(&quot;a&quot;);r.href=t,n.href=e;var i=r.protocol,a=n.protocol;return-1!==d.indexOf(i)&amp;&amp;-1!==d.indexOf(a)?e:&quot;&quot;}function L(t,e,r){var n,a,o,s=r.horizontalAlign,l=r.verticalAlign||&quot;top&quot;,c=t.node().getBoundingClientRect(),u=e.node().getBoundingClientRect();return a=&quot;bottom&quot;===l?function(){return c.bottom-n.height}:&quot;middle&quot;===l?function(){return c.top+(c.height-n.height)/2}:function(){return c.top},o=&quot;right&quot;===s?function(){return c.right-n.width}:&quot;center&quot;===s?function(){return c.left+(c.width-n.width)/2}:function(){return c.left},function(){n=this.node().getBoundingClientRect();var t=o()-u.left,e=a()-u.top,s=r.gd||{};if(r.gd){s._fullLayout._calcInverseTransform(s);var l=i.apply3DTransform(s._fullLayout._invTransform)(t,e);t=l[0],e=l[1]}return this.style({top:e+&quot;px&quot;,left:t+&quot;px&quot;,&quot;z-index&quot;:1e3}),this}}r.convertEntities=S,r.sanitizeHTML=function(t){t=t.replace(m,&quot; &quot;);for(var e=document.createElement(&quot;p&quot;),r=e,i=[],a=t.split(g),o=0;o&lt;a.length;o++){var s=a[o],l=s.match(v),c=l&amp;&amp;l[2].toLowerCase();if(c in f)if(l[1])i.length&amp;&amp;(r=i.pop());else{var u=l[4],h=T(u,x),p=h?{style:h}:{};if(&quot;a&quot;===c){var d=T(u,b);if(d){var y=E(d);if(y){p.href=y;var w=T(u,_);w&amp;&amp;(p.target=w)}}}var k=document.createElement(c);r.appendChild(k),n.select(k).attr(p),r=k,i.push(k)}else r.appendChild(document.createTextNode(S(s)))}return e.innerHTML},r.lineCount=function(t){return t.selectAll(&quot;tspan.line&quot;).size()||1},r.positionText=function(t,e,r){return t.each((function(){var t=n.select(this);function i(e,r){return void 0===r?null===(r=t.attr(e))&amp;&amp;(t.attr(e,0),r=0):t.attr(e,r),r}var a=i(&quot;x&quot;,e),o=i(&quot;y&quot;,r);&quot;text&quot;===this.nodeName&amp;&amp;t.selectAll(&quot;tspan.line&quot;).attr({x:a,y:o})}))};r.makeTextShadow=function(t){var e=&quot;1px &quot;,r=&quot;1px &quot;,n=&quot;1px &quot;;return e+r+n+t+&quot;, -&quot;+e+&quot;-&quot;+r+n+t+&quot;, &quot;+e+&quot;-&quot;+r+n+t+&quot;, -&quot;+e+r+n+t},r.makeEditable=function(t,e){var r=e.gd,i=e.delegate,a=n.dispatch(&quot;edit&quot;,&quot;input&quot;,&quot;cancel&quot;),o=i||t;if(t.style({&quot;pointer-events&quot;:i?&quot;none&quot;:&quot;all&quot;}),1!==t.size())throw new Error(&quot;boo&quot;);function s(){!function(){var i=n.select(r).select(&quot;.svg-container&quot;),o=i.append(&quot;div&quot;),s=t.node().style,c=parseFloat(s.fontSize||12),u=e.text;void 0===u&amp;&amp;(u=t.attr(&quot;data-unformatted&quot;));o.classed(&quot;plugin-editable editable&quot;,!0).style({position:&quot;absolute&quot;,&quot;font-family&quot;:s.fontFamily||&quot;Arial&quot;,&quot;font-size&quot;:c,color:e.fill||s.fill||&quot;black&quot;,opacity:1,&quot;background-color&quot;:e.background||&quot;transparent&quot;,outline:&quot;#ffffff33 1px solid&quot;,margin:[-c/8+1,0,0,-1].join(&quot;px &quot;)+&quot;px&quot;,padding:&quot;0&quot;,&quot;box-sizing&quot;:&quot;border-box&quot;}).attr({contenteditable:!0}).text(u).call(L(t,i,e)).on(&quot;blur&quot;,(function(){r._editing=!1,t.text(this.textContent).style({opacity:1});var e,i=n.select(this).attr(&quot;class&quot;);(e=i?&quot;.&quot;+i.split(&quot; &quot;)[0]+&quot;-math-group&quot;:&quot;[class*=-math-group]&quot;)&amp;&amp;n.select(t.node().parentNode).select(e).style({opacity:0});var o=this.textContent;n.select(this).transition().duration(0).remove(),n.select(document).on(&quot;mouseup&quot;,null),a.edit.call(t,o)})).on(&quot;focus&quot;,(function(){var t=this;r._editing=!0,n.select(document).on(&quot;mouseup&quot;,(function(){if(n.event.target===t)return!1;document.activeElement===o.node()&amp;&amp;o.node().blur()}))})).on(&quot;keyup&quot;,(function(){27===n.event.which?(r._editing=!1,t.style({opacity:1}),n.select(this).style({opacity:0}).on(&quot;blur&quot;,(function(){return!1})).transition().remove(),a.cancel.call(t,this.textContent)):(a.input.call(t,this.textContent),n.select(this).call(L(t,i,e)))})).on(&quot;keydown&quot;,(function(){13===n.event.which&amp;&amp;this.blur()})).call(l)}(),t.style({opacity:0});var i,s=o.attr(&quot;class&quot;);(i=s?&quot;.&quot;+s.split(&quot; &quot;)[0]+&quot;-math-group&quot;:&quot;[class*=-math-group]&quot;)&amp;&amp;n.select(t.node().parentNode).select(i).style({opacity:0})}function l(t){var e=t.node(),r=document.createRange();r.selectNodeContents(e);var n=window.getSelection();n.removeAllRanges(),n.addRange(r),e.focus()}return e.immediate?s():o.on(&quot;click&quot;,s),n.rebind(t,a,&quot;on&quot;)}},{&quot;../constants/alignment&quot;:471,&quot;../constants/xmlns_namespaces&quot;:480,&quot;../lib&quot;:503,&quot;@plotly/d3&quot;:58}],530:[function(t,e,r){&quot;use strict&quot;;var n={};function i(t){t&amp;&amp;null!==t.timer&amp;&amp;(clearTimeout(t.timer),t.timer=null)}r.throttle=function(t,e,r){var a=n[t],o=Date.now();if(!a){for(var s in n)n[s].ts&lt;o-6e4&amp;&amp;delete n[s];a=n[t]={ts:0,timer:null}}function l(){r(),a.ts=Date.now(),a.onDone&amp;&amp;(a.onDone(),a.onDone=null)}i(a),o&gt;a.ts+e?l():a.timer=setTimeout((function(){l(),a.timer=null}),e)},r.done=function(t){var e=n[t];return e&amp;&amp;e.timer?new Promise((function(t){var r=e.onDone;e.onDone=function(){r&amp;&amp;r(),t(),e.onDone=null}})):Promise.resolve()},r.clear=function(t){if(t)i(n[t]),delete n[t];else for(var e in n)r.clear(e)}},{}],531:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports=function(t,e){if(t&gt;0)return Math.log(t)/Math.LN10;var r=Math.log(Math.min(e[0],e[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(e[0],e[1]))/Math.LN10-6),r}},{&quot;fast-isnumeric&quot;:190}],532:[function(t,e,r){&quot;use strict&quot;;var n=e.exports={},i=t(&quot;../plots/geo/constants&quot;).locationmodeToLayer,a=t(&quot;topojson-client&quot;).feature;n.getTopojsonName=function(t){return[t.scope.replace(/ /g,&quot;-&quot;),&quot;_&quot;,t.resolution.toString(),&quot;m&quot;].join(&quot;&quot;)},n.getTopojsonPath=function(t,e){return t+e+&quot;.json&quot;},n.getTopojsonFeatures=function(t,e){var r=i[t.locationmode],n=e.objects[r];return a(e,n).features}},{&quot;../plots/geo/constants&quot;:587,&quot;topojson-client&quot;:315}],533:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;locale&quot;,name:&quot;en-US&quot;,dictionary:{&quot;Click to enter Colorscale title&quot;:&quot;Click to enter Colorscale title&quot;},format:{date:&quot;%m/%d/%Y&quot;}}},{}],534:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;locale&quot;,name:&quot;en&quot;,dictionary:{&quot;Click to enter Colorscale title&quot;:&quot;Click to enter Colourscale title&quot;},format:{days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],periods:[&quot;AM&quot;,&quot;PM&quot;],dateTime:&quot;%a %b %e %X %Y&quot;,date:&quot;%d/%m/%Y&quot;,time:&quot;%H:%M:%S&quot;,decimal:&quot;.&quot;,thousands:&quot;,&quot;,grouping:[3],currency:[&quot;$&quot;,&quot;&quot;],year:&quot;%Y&quot;,month:&quot;%b %Y&quot;,dayMonth:&quot;%b %-d&quot;,dayMonthYear:&quot;%b %-d, %Y&quot;}}},{}],535:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);e.exports=function(t){for(var e,r,i=n.layoutArrayContainers,a=n.layoutArrayRegexes,o=t.split(&quot;[&quot;)[0],s=0;s&lt;a.length;s++)if((r=t.match(a[s]))&amp;&amp;0===r.index){e=r[0];break}if(e||(e=i[i.indexOf(o)]),!e)return!1;var l=t.substr(e.length);return l?!!(r=l.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&amp;&amp;{array:e,index:Number(r[1]),property:r[3]||&quot;&quot;}:{array:e,index:&quot;&quot;,property:&quot;&quot;}}},{&quot;../registry&quot;:638}],536:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=n.extendFlat,a=n.isPlainObject,o={valType:&quot;flaglist&quot;,extras:[&quot;none&quot;],flags:[&quot;calc&quot;,&quot;clearAxisTypes&quot;,&quot;plot&quot;,&quot;style&quot;,&quot;markerSize&quot;,&quot;colorbars&quot;]},s={valType:&quot;flaglist&quot;,extras:[&quot;none&quot;],flags:[&quot;calc&quot;,&quot;plot&quot;,&quot;legend&quot;,&quot;ticks&quot;,&quot;axrange&quot;,&quot;layoutstyle&quot;,&quot;modebar&quot;,&quot;camera&quot;,&quot;arraydraw&quot;,&quot;colorbars&quot;]},l=o.flags.slice().concat([&quot;fullReplot&quot;]),c=s.flags.slice().concat(&quot;layoutReplot&quot;);function u(t){for(var e={},r=0;r&lt;t.length;r++)e[t[r]]=!1;return e}function f(t,e,r){var n=i({},t);for(var o in n){var s=n[o];a(s)&amp;&amp;(n[o]=h(s,e,r,o))}return&quot;from-root&quot;===r&amp;&amp;(n.editType=e),n}function h(t,e,r,n){if(t.valType){var a=i({},t);if(a.editType=e,Array.isArray(t.items)){a.items=new Array(t.items.length);for(var o=0;o&lt;t.items.length;o++)a.items[o]=h(t.items[o],e,&quot;from-root&quot;)}return a}return f(t,e,&quot;_&quot;===n.charAt(0)?&quot;nested&quot;:&quot;from-root&quot;)}e.exports={traces:o,layout:s,traceFlags:function(){return u(l)},layoutFlags:function(){return u(c)},update:function(t,e){var r=e.editType;if(r&amp;&amp;&quot;none&quot;!==r)for(var n=r.split(&quot;+&quot;),i=0;i&lt;n.length;i++)t[n[i]]=!0},overrideAll:f}},{&quot;../lib&quot;:503}],537:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;gl-mat4/fromQuat&quot;),a=t(&quot;../registry&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../plots/plots&quot;),l=t(&quot;../plots/cartesian/axis_ids&quot;),c=t(&quot;../components/color&quot;),u=l.cleanId,f=l.getFromTrace,h=a.traceIs;function p(t,e){var r=t[e],n=e.charAt(0);r&amp;&amp;&quot;paper&quot;!==r&amp;&amp;(t[e]=u(r,n,!0))}function d(t){function e(e,r){var n=t[e],i=t.title&amp;&amp;t.title[r];n&amp;&amp;!i&amp;&amp;(t.title||(t.title={}),t.title[r]=t[e],delete t[e])}t&amp;&amp;(&quot;string&quot;!=typeof t.title&amp;&amp;&quot;number&quot;!=typeof t.title||(t.title={text:t.title}),e(&quot;titlefont&quot;,&quot;font&quot;),e(&quot;titleposition&quot;,&quot;position&quot;),e(&quot;titleside&quot;,&quot;side&quot;),e(&quot;titleoffset&quot;,&quot;offset&quot;))}function m(t){if(!o.isPlainObject(t))return!1;var e=t.name;return delete t.name,delete t.showlegend,(&quot;string&quot;==typeof e||&quot;number&quot;==typeof e)&amp;&amp;String(e)}function g(t,e,r,n){if(r&amp;&amp;!n)return t;if(n&amp;&amp;!r)return e;if(!t.trim())return e;if(!e.trim())return t;var i,a=Math.min(t.length,e.length);for(i=0;i&lt;a&amp;&amp;t.charAt(i)===e.charAt(i);i++);return t.substr(0,i).trim()}function v(t){var e=&quot;middle&quot;,r=&quot;center&quot;;return&quot;string&quot;==typeof t&amp;&amp;(-1!==t.indexOf(&quot;top&quot;)?e=&quot;top&quot;:-1!==t.indexOf(&quot;bottom&quot;)&amp;&amp;(e=&quot;bottom&quot;),-1!==t.indexOf(&quot;left&quot;)?r=&quot;left&quot;:-1!==t.indexOf(&quot;right&quot;)&amp;&amp;(r=&quot;right&quot;)),e+&quot; &quot;+r}function y(t,e){return e in t&amp;&amp;&quot;object&quot;==typeof t[e]&amp;&amp;0===Object.keys(t[e]).length}r.clearPromiseQueue=function(t){Array.isArray(t._promises)&amp;&amp;t._promises.length&gt;0&amp;&amp;o.log(&quot;Clearing previous rejected promises from queue.&quot;),t._promises=[]},r.cleanLayout=function(t){var e,n;t||(t={}),t.xaxis1&amp;&amp;(t.xaxis||(t.xaxis=t.xaxis1),delete t.xaxis1),t.yaxis1&amp;&amp;(t.yaxis||(t.yaxis=t.yaxis1),delete t.yaxis1),t.scene1&amp;&amp;(t.scene||(t.scene=t.scene1),delete t.scene1);var a=(s.subplotsRegistry.cartesian||{}).attrRegex,l=(s.subplotsRegistry.polar||{}).attrRegex,f=(s.subplotsRegistry.ternary||{}).attrRegex,h=(s.subplotsRegistry.gl3d||{}).attrRegex,m=Object.keys(t);for(e=0;e&lt;m.length;e++){var g=m[e];if(a&amp;&amp;a.test(g)){var v=t[g];v.anchor&amp;&amp;&quot;free&quot;!==v.anchor&amp;&amp;(v.anchor=u(v.anchor)),v.overlaying&amp;&amp;(v.overlaying=u(v.overlaying)),v.type||(v.isdate?v.type=&quot;date&quot;:v.islog?v.type=&quot;log&quot;:!1===v.isdate&amp;&amp;!1===v.islog&amp;&amp;(v.type=&quot;linear&quot;)),&quot;withzero&quot;!==v.autorange&amp;&amp;&quot;tozero&quot;!==v.autorange||(v.autorange=!0,v.rangemode=&quot;tozero&quot;),delete v.islog,delete v.isdate,delete v.categories,y(v,&quot;domain&quot;)&amp;&amp;delete v.domain,void 0!==v.autotick&amp;&amp;(void 0===v.tickmode&amp;&amp;(v.tickmode=v.autotick?&quot;auto&quot;:&quot;linear&quot;),delete v.autotick),d(v)}else if(l&amp;&amp;l.test(g)){d(t[g].radialaxis)}else if(f&amp;&amp;f.test(g)){var x=t[g];d(x.aaxis),d(x.baxis),d(x.caxis)}else if(h&amp;&amp;h.test(g)){var b=t[g],_=b.cameraposition;if(Array.isArray(_)&amp;&amp;4===_[0].length){var w=_[0],T=_[1],k=_[2],A=i([],w),M=[];for(n=0;n&lt;3;++n)M[n]=T[n]+k*A[2+4*n];b.camera={eye:{x:M[0],y:M[1],z:M[2]},center:{x:T[0],y:T[1],z:T[2]},up:{x:0,y:0,z:1}},delete b.cameraposition}d(b.xaxis),d(b.yaxis),d(b.zaxis)}}var S=Array.isArray(t.annotations)?t.annotations.length:0;for(e=0;e&lt;S;e++){var E=t.annotations[e];o.isPlainObject(E)&amp;&amp;(E.ref&amp;&amp;(&quot;paper&quot;===E.ref?(E.xref=&quot;paper&quot;,E.yref=&quot;paper&quot;):&quot;data&quot;===E.ref&amp;&amp;(E.xref=&quot;x&quot;,E.yref=&quot;y&quot;),delete E.ref),p(E,&quot;xref&quot;),p(E,&quot;yref&quot;))}var L=Array.isArray(t.shapes)?t.shapes.length:0;for(e=0;e&lt;L;e++){var C=t.shapes[e];o.isPlainObject(C)&amp;&amp;(p(C,&quot;xref&quot;),p(C,&quot;yref&quot;))}var P=Array.isArray(t.images)?t.images.length:0;for(e=0;e&lt;P;e++){var I=t.images[e];o.isPlainObject(I)&amp;&amp;(p(I,&quot;xref&quot;),p(I,&quot;yref&quot;))}var O=t.legend;return O&amp;&amp;(O.x&gt;3?(O.x=1.02,O.xanchor=&quot;left&quot;):O.x&lt;-2&amp;&amp;(O.x=-.02,O.xanchor=&quot;right&quot;),O.y&gt;3?(O.y=1.02,O.yanchor=&quot;bottom&quot;):O.y&lt;-2&amp;&amp;(O.y=-.02,O.yanchor=&quot;top&quot;)),d(t),&quot;rotate&quot;===t.dragmode&amp;&amp;(t.dragmode=&quot;orbit&quot;),c.clean(t),t.template&amp;&amp;t.template.layout&amp;&amp;r.cleanLayout(t.template.layout),t},r.cleanData=function(t){for(var e=0;e&lt;t.length;e++){var n,i=t[e];if(&quot;histogramy&quot;===i.type&amp;&amp;&quot;xbins&quot;in i&amp;&amp;!(&quot;ybins&quot;in i)&amp;&amp;(i.ybins=i.xbins,delete i.xbins),i.error_y&amp;&amp;&quot;opacity&quot;in i.error_y){var l=c.defaults,f=i.error_y.color||(h(i,&quot;bar&quot;)?c.defaultLine:l[e%l.length]);i.error_y.color=c.addOpacity(c.rgb(f),c.opacity(f)*i.error_y.opacity),delete i.error_y.opacity}if(&quot;bardir&quot;in i&amp;&amp;(&quot;h&quot;!==i.bardir||!h(i,&quot;bar&quot;)&amp;&amp;&quot;histogram&quot;!==i.type.substr(0,9)||(i.orientation=&quot;h&quot;,r.swapXYData(i)),delete i.bardir),&quot;histogramy&quot;===i.type&amp;&amp;r.swapXYData(i),&quot;histogramx&quot;!==i.type&amp;&amp;&quot;histogramy&quot;!==i.type||(i.type=&quot;histogram&quot;),&quot;scl&quot;in i&amp;&amp;!(&quot;colorscale&quot;in i)&amp;&amp;(i.colorscale=i.scl,delete i.scl),&quot;reversescl&quot;in i&amp;&amp;!(&quot;reversescale&quot;in i)&amp;&amp;(i.reversescale=i.reversescl,delete i.reversescl),i.xaxis&amp;&amp;(i.xaxis=u(i.xaxis,&quot;x&quot;)),i.yaxis&amp;&amp;(i.yaxis=u(i.yaxis,&quot;y&quot;)),h(i,&quot;gl3d&quot;)&amp;&amp;i.scene&amp;&amp;(i.scene=s.subplotsRegistry.gl3d.cleanId(i.scene)),!h(i,&quot;pie-like&quot;)&amp;&amp;!h(i,&quot;bar-like&quot;))if(Array.isArray(i.textposition))for(n=0;n&lt;i.textposition.length;n++)i.textposition[n]=v(i.textposition[n]);else i.textposition&amp;&amp;(i.textposition=v(i.textposition));var p=a.getModule(i);if(p&amp;&amp;p.colorbar){var x=p.colorbar.container,b=x?i[x]:i;b&amp;&amp;b.colorscale&amp;&amp;(&quot;YIGnBu&quot;===b.colorscale&amp;&amp;(b.colorscale=&quot;YlGnBu&quot;),&quot;YIOrRd&quot;===b.colorscale&amp;&amp;(b.colorscale=&quot;YlOrRd&quot;))}if(&quot;surface&quot;===i.type&amp;&amp;o.isPlainObject(i.contours)){var _=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(n=0;n&lt;_.length;n++){var w=i.contours[_[n]];o.isPlainObject(w)&amp;&amp;(w.highlightColor&amp;&amp;(w.highlightcolor=w.highlightColor,delete w.highlightColor),w.highlightWidth&amp;&amp;(w.highlightwidth=w.highlightWidth,delete w.highlightWidth))}}if(&quot;candlestick&quot;===i.type||&quot;ohlc&quot;===i.type){var T=!1!==(i.increasing||{}).showlegend,k=!1!==(i.decreasing||{}).showlegend,A=m(i.increasing),M=m(i.decreasing);if(!1!==A&amp;&amp;!1!==M){var S=g(A,M,T,k);S&amp;&amp;(i.name=S)}else!A&amp;&amp;!M||i.name||(i.name=A||M)}if(Array.isArray(i.transforms)){var E=i.transforms;for(n=0;n&lt;E.length;n++){var L=E[n];if(o.isPlainObject(L))switch(L.type){case&quot;filter&quot;:L.filtersrc&amp;&amp;(L.target=L.filtersrc,delete L.filtersrc),L.calendar&amp;&amp;(L.valuecalendar||(L.valuecalendar=L.calendar),delete L.calendar);break;case&quot;groupby&quot;:if(L.styles=L.styles||L.style,L.styles&amp;&amp;!Array.isArray(L.styles)){var C=L.styles,P=Object.keys(C);L.styles=[];for(var I=0;I&lt;P.length;I++)L.styles.push({target:P[I],value:C[P[I]]})}}}}y(i,&quot;line&quot;)&amp;&amp;delete i.line,&quot;marker&quot;in i&amp;&amp;(y(i.marker,&quot;line&quot;)&amp;&amp;delete i.marker.line,y(i,&quot;marker&quot;)&amp;&amp;delete i.marker),c.clean(i),i.autobinx&amp;&amp;(delete i.autobinx,delete i.xbins),i.autobiny&amp;&amp;(delete i.autobiny,delete i.ybins),d(i),i.colorbar&amp;&amp;d(i.colorbar),i.marker&amp;&amp;i.marker.colorbar&amp;&amp;d(i.marker.colorbar),i.line&amp;&amp;i.line.colorbar&amp;&amp;d(i.line.colorbar),i.aaxis&amp;&amp;d(i.aaxis),i.baxis&amp;&amp;d(i.baxis)}},r.swapXYData=function(t){var e;if(o.swapAttrs(t,[&quot;?&quot;,&quot;?0&quot;,&quot;d?&quot;,&quot;?bins&quot;,&quot;nbins?&quot;,&quot;autobin?&quot;,&quot;?src&quot;,&quot;error_?&quot;]),Array.isArray(t.z)&amp;&amp;Array.isArray(t.z[0])&amp;&amp;(t.transpose?delete t.transpose:t.transpose=!0),t.error_x&amp;&amp;t.error_y){var r=t.error_y,n=&quot;copy_ystyle&quot;in r?r.copy_ystyle:!(r.color||r.thickness||r.width);o.swapAttrs(t,[&quot;error_?.copy_ystyle&quot;]),n&amp;&amp;o.swapAttrs(t,[&quot;error_?.color&quot;,&quot;error_?.thickness&quot;,&quot;error_?.width&quot;])}if(&quot;string&quot;==typeof t.hoverinfo){var i=t.hoverinfo.split(&quot;+&quot;);for(e=0;e&lt;i.length;e++)&quot;x&quot;===i[e]?i[e]=&quot;y&quot;:&quot;y&quot;===i[e]&amp;&amp;(i[e]=&quot;x&quot;);t.hoverinfo=i.join(&quot;+&quot;)}},r.coerceTraceIndices=function(t,e){if(n(e))return[e];if(!Array.isArray(e)||!e.length)return t.data.map((function(t,e){return e}));if(Array.isArray(e)){for(var r=[],i=0;i&lt;e.length;i++)o.isIndex(e[i],t.data.length)?r.push(e[i]):o.warn(&quot;trace index (&quot;,e[i],&quot;) is not a number or is out of bounds&quot;);return r}return e},r.manageArrayContainers=function(t,e,r){var i=t.obj,a=t.parts,s=a.length,l=a[s-1],c=n(l);if(c&amp;&amp;null===e){var u=a.slice(0,s-1).join(&quot;.&quot;);o.nestedProperty(i,u).get().splice(l,1)}else c&amp;&amp;void 0===t.get()?(void 0===t.get()&amp;&amp;(r[t.astr]=null),t.set(e)):t.set(e)};var x=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function b(t){var e=t.search(x);if(e&gt;0)return t.substr(0,e)}r.hasParent=function(t,e){for(var r=b(e);r;){if(r in t)return!0;r=b(r)}return!1};var _=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];r.clearAxisTypes=function(t,e,r){for(var n=0;n&lt;e.length;n++)for(var i=t._fullData[n],a=0;a&lt;3;a++){var s=f(t,i,_[a]);if(s&amp;&amp;&quot;log&quot;!==s.type){var l=s._name,c=s._id.substr(1);if(&quot;scene&quot;===c.substr(0,5)){if(void 0!==r[c])continue;l=c+&quot;.&quot;+l}var u=l+&quot;.type&quot;;void 0===r[l]&amp;&amp;void 0===r[u]&amp;&amp;o.nestedProperty(t.layout,u).set(null)}}}},{&quot;../components/color&quot;:366,&quot;../lib&quot;:503,&quot;../plots/cartesian/axis_ids&quot;:558,&quot;../plots/plots&quot;:619,&quot;../registry&quot;:638,&quot;fast-isnumeric&quot;:190,&quot;gl-mat4/fromQuat&quot;:200}],538:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./plot_api&quot;);r._doPlot=n._doPlot,r.newPlot=n.newPlot,r.restyle=n.restyle,r.relayout=n.relayout,r.redraw=n.redraw,r.update=n.update,r._guiRestyle=n._guiRestyle,r._guiRelayout=n._guiRelayout,r._guiUpdate=n._guiUpdate,r._storeDirectGUIEdit=n._storeDirectGUIEdit,r.react=n.react,r.extendTraces=n.extendTraces,r.prependTraces=n.prependTraces,r.addTraces=n.addTraces,r.deleteTraces=n.deleteTraces,r.moveTraces=n.moveTraces,r.purge=n.purge,r.addFrames=n.addFrames,r.deleteFrames=n.deleteFrames,r.animate=n.animate,r.setPlotConfig=n.setPlotConfig,r.toImage=t(&quot;./to_image&quot;),r.validate=t(&quot;./validate&quot;),r.downloadImage=t(&quot;../snapshot/download&quot;);var i=t(&quot;./template_api&quot;);r.makeTemplate=i.makeTemplate,r.validateTemplate=i.validateTemplate},{&quot;../snapshot/download&quot;:640,&quot;./plot_api&quot;:540,&quot;./template_api&quot;:545,&quot;./to_image&quot;:546,&quot;./validate&quot;:547}],539:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/is_plain_object&quot;),i=t(&quot;../lib/noop&quot;),a=t(&quot;../lib/loggers&quot;),o=t(&quot;../lib/search&quot;).sorterAsc,s=t(&quot;../registry&quot;);r.containerArrayMatch=t(&quot;./container_array_match&quot;);var l=r.isAddVal=function(t){return&quot;add&quot;===t||n(t)},c=r.isRemoveVal=function(t){return null===t||&quot;remove&quot;===t};r.applyContainerArrayChanges=function(t,e,r,n,u){var f=e.astr,h=s.getComponentMethod(f,&quot;supplyLayoutDefaults&quot;),p=s.getComponentMethod(f,&quot;draw&quot;),d=s.getComponentMethod(f,&quot;drawOne&quot;),m=n.replot||n.recalc||h===i||p===i,g=t.layout,v=t._fullLayout;if(r[&quot;&quot;]){Object.keys(r).length&gt;1&amp;&amp;a.warn(&quot;Full array edits are incompatible with other edits&quot;,f);var y=r[&quot;&quot;][&quot;&quot;];if(c(y))e.set(null);else{if(!Array.isArray(y))return a.warn(&quot;Unrecognized full array edit value&quot;,f,y),!0;e.set(y)}return!m&amp;&amp;(h(g,v),p(t),!0)}var x,b,_,w,T,k,A,M,S=Object.keys(r).map(Number).sort(o),E=e.get(),L=E||[],C=u(v,f).get(),P=[],I=-1,O=L.length;for(x=0;x&lt;S.length;x++)if(w=r[_=S[x]],T=Object.keys(w),k=w[&quot;&quot;],A=l(k),_&lt;0||_&gt;L.length-(A?0:1))a.warn(&quot;index out of range&quot;,f,_);else if(void 0!==k)T.length&gt;1&amp;&amp;a.warn(&quot;Insertion &amp; removal are incompatible with edits to the same index.&quot;,f,_),c(k)?P.push(_):A?(&quot;add&quot;===k&amp;&amp;(k={}),L.splice(_,0,k),C&amp;&amp;C.splice(_,0,{})):a.warn(&quot;Unrecognized full object edit value&quot;,f,_,k),-1===I&amp;&amp;(I=_);else for(b=0;b&lt;T.length;b++)M=f+&quot;[&quot;+_+&quot;].&quot;,u(L[_],T[b],M).set(w[T[b]]);for(x=P.length-1;x&gt;=0;x--)L.splice(P[x],1),C&amp;&amp;C.splice(P[x],1);if(L.length?E||e.set(L):e.set(null),m)return!1;if(h(g,v),d!==i){var z;if(-1===I)z=S;else{for(O=Math.max(L.length,O),z=[],x=0;x&lt;S.length&amp;&amp;!((_=S[x])&gt;=I);x++)z.push(_);for(x=I;x&lt;O;x++)z.push(x)}for(x=0;x&lt;z.length;x++)d(t,z[x])}else p(t);return!0}},{&quot;../lib/is_plain_object&quot;:504,&quot;../lib/loggers&quot;:507,&quot;../lib/noop&quot;:512,&quot;../lib/search&quot;:523,&quot;../registry&quot;:638,&quot;./container_array_match&quot;:535}],540:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;has-hover&quot;),o=t(&quot;../lib&quot;),s=o.nestedProperty,l=t(&quot;../lib/events&quot;),c=t(&quot;../lib/queue&quot;),u=t(&quot;../registry&quot;),f=t(&quot;./plot_schema&quot;),h=t(&quot;../plots/plots&quot;),p=t(&quot;../plots/cartesian/axes&quot;),d=t(&quot;../components/drawing&quot;),m=t(&quot;../components/color&quot;),g=t(&quot;../plots/cartesian/graph_interact&quot;).initInteractions,v=t(&quot;../constants/xmlns_namespaces&quot;),y=t(&quot;../plots/cartesian/select&quot;).clearSelect,x=t(&quot;./plot_config&quot;).dfltConfig,b=t(&quot;./manage_arrays&quot;),_=t(&quot;./helpers&quot;),w=t(&quot;./subroutines&quot;),T=t(&quot;./edit_types&quot;),k=t(&quot;../plots/cartesian/constants&quot;).AX_NAME_PATTERN,A=0;function M(t){var e=t._fullLayout;e._redrawFromAutoMarginCount?e._redrawFromAutoMarginCount--:t.emit(&quot;plotly_afterplot&quot;)}function S(t,e){try{t._fullLayout._paper.style(&quot;background&quot;,e)}catch(t){o.error(t)}}function E(t,e){S(t,m.combine(e,&quot;white&quot;))}function L(t,e){if(!t._context){t._context=o.extendDeep({},x);var r=n.select(&quot;base&quot;);t._context._baseUrl=r.size()&amp;&amp;r.attr(&quot;href&quot;)?window.location.href.split(&quot;#&quot;)[0]:&quot;&quot;}var i,s,l,c=t._context;if(e){for(s=Object.keys(e),i=0;i&lt;s.length;i++)&quot;editable&quot;!==(l=s[i])&amp;&amp;&quot;edits&quot;!==l&amp;&amp;l in c&amp;&amp;(&quot;setBackground&quot;===l&amp;&amp;&quot;opaque&quot;===e[l]?c[l]=E:c[l]=e[l]);e.plot3dPixelRatio&amp;&amp;!c.plotGlPixelRatio&amp;&amp;(c.plotGlPixelRatio=c.plot3dPixelRatio);var u=e.editable;if(void 0!==u)for(c.editable=u,s=Object.keys(c.edits),i=0;i&lt;s.length;i++)c.edits[s[i]]=u;if(e.edits)for(s=Object.keys(e.edits),i=0;i&lt;s.length;i++)(l=s[i])in c.edits&amp;&amp;(c.edits[l]=e.edits[l]);c._exportedPlot=e._exportedPlot}c.staticPlot&amp;&amp;(c.editable=!1,c.edits={},c.autosizable=!1,c.scrollZoom=!1,c.doubleClick=!1,c.showTips=!1,c.showLink=!1,c.displayModeBar=!1),&quot;hover&quot;!==c.displayModeBar||a||(c.displayModeBar=!0),&quot;transparent&quot;!==c.setBackground&amp;&amp;&quot;function&quot;==typeof c.setBackground||(c.setBackground=S),c._hasZeroHeight=c._hasZeroHeight||0===t.clientHeight,c._hasZeroWidth=c._hasZeroWidth||0===t.clientWidth;var f=c.scrollZoom,h=c._scrollZoom={};if(!0===f)h.cartesian=1,h.gl3d=1,h.geo=1,h.mapbox=1;else if(&quot;string&quot;==typeof f){var p=f.split(&quot;+&quot;);for(i=0;i&lt;p.length;i++)h[p[i]]=1}else!1!==f&amp;&amp;(h.gl3d=1,h.geo=1,h.mapbox=1)}function C(t,e){var r,n,i=e+1,a=[];for(r=0;r&lt;t.length;r++)(n=t[r])&lt;0?a.push(i+n):a.push(n);return a}function P(t,e,r){var n,i;for(n=0;n&lt;e.length;n++){if((i=e[n])!==parseInt(i,10))throw new Error(&quot;all values in &quot;+r+&quot; must be integers&quot;);if(i&gt;=t.data.length||i&lt;-t.data.length)throw new Error(r+&quot; must be valid indices for gd.data.&quot;);if(e.indexOf(i,n+1)&gt;-1||i&gt;=0&amp;&amp;e.indexOf(-t.data.length+i)&gt;-1||i&lt;0&amp;&amp;e.indexOf(t.data.length+i)&gt;-1)throw new Error(&quot;each index in &quot;+r+&quot; must be unique.&quot;)}}function I(t,e,r){if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array.&quot;);if(void 0===e)throw new Error(&quot;currentIndices is a required argument.&quot;);if(Array.isArray(e)||(e=[e]),P(t,e,&quot;currentIndices&quot;),void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&amp;&amp;P(t,r,&quot;newIndices&quot;),void 0!==r&amp;&amp;e.length!==r.length)throw new Error(&quot;current and new indices must be of equal length.&quot;)}function O(t,e,r,n,a){!function(t,e,r,n){var i=o.isPlainObject(n);if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array&quot;);if(!o.isPlainObject(e))throw new Error(&quot;update must be a key:value object&quot;);if(void 0===r)throw new Error(&quot;indices must be an integer or array of integers&quot;);for(var a in P(t,r,&quot;indices&quot;),e){if(!Array.isArray(e[a])||e[a].length!==r.length)throw new Error(&quot;attribute &quot;+a+&quot; must be an array of length equal to indices array length&quot;);if(i&amp;&amp;(!(a in n)||!Array.isArray(n[a])||n[a].length!==e[a].length))throw new Error(&quot;when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object&quot;)}}(t,e,r,n);for(var l=function(t,e,r,n){var a,l,c,u,f,h=o.isPlainObject(n),p=[];for(var d in Array.isArray(r)||(r=[r]),r=C(r,t.data.length-1),e)for(var m=0;m&lt;r.length;m++){if(a=t.data[r[m]],l=(c=s(a,d)).get(),u=e[d][m],!o.isArrayOrTypedArray(u))throw new Error(&quot;attribute: &quot;+d+&quot; index: &quot;+m+&quot; must be an array&quot;);if(!o.isArrayOrTypedArray(l))throw new Error(&quot;cannot extend missing or non-array attribute: &quot;+d);if(l.constructor!==u.constructor)throw new Error(&quot;cannot extend array with an array of a different type: &quot;+d);f=h?n[d][m]:n,i(f)||(f=-1),p.push({prop:c,target:l,insert:u,maxp:Math.floor(f)})}return p}(t,e,r,n),c={},u={},f=0;f&lt;l.length;f++){var h=l[f].prop,p=l[f].maxp,d=a(l[f].target,l[f].insert,p);h.set(d[0]),Array.isArray(c[h.astr])||(c[h.astr]=[]),c[h.astr].push(d[1]),Array.isArray(u[h.astr])||(u[h.astr]=[]),u[h.astr].push(l[f].target.length)}return{update:c,maxPoints:u}}function z(t,e){var r=new t.constructor(t.length+e.length);return r.set(t),r.set(e,t.length),r}function D(t,e,n,i){t=o.getGraphDiv(t),_.clearPromiseQueue(t);var a={};if(&quot;string&quot;==typeof e)a[e]=n;else{if(!o.isPlainObject(e))return o.warn(&quot;Restyle fail.&quot;,e,n,i),Promise.reject();a=o.extendFlat({},e),void 0===i&amp;&amp;(i=n)}Object.keys(a).length&amp;&amp;(t.changed=!0);var s=_.coerceTraceIndices(t,i),l=N(t,a,s),u=l.flags;u.calc&amp;&amp;(t.calcdata=void 0),u.clearAxisTypes&amp;&amp;_.clearAxisTypes(t,s,{});var f=[];u.fullReplot?f.push(r._doPlot):(f.push(h.previousPromises),h.supplyDefaults(t),u.markerSize&amp;&amp;(h.doCalcdata(t),H(f)),u.style&amp;&amp;f.push(w.doTraceStyle),u.colorbars&amp;&amp;f.push(w.doColorBars),f.push(M)),f.push(h.rehover,h.redrag),c.add(t,D,[t,l.undoit,l.traces],D,[t,l.redoit,l.traces]);var p=o.syncOrAsync(f,t);return p&amp;&amp;p.then||(p=Promise.resolve()),p.then((function(){return t.emit(&quot;plotly_restyle&quot;,l.eventData),t}))}function R(t){return void 0===t?null:t}function F(t,e){return e?function(e,r,n){var i=s(e,r),a=i.set;return i.set=function(e){B((n||&quot;&quot;)+r,i.get(),e,t),a(e)},i}:s}function B(t,e,r,n){if(Array.isArray(e)||Array.isArray(r))for(var i=Array.isArray(e)?e:[],a=Array.isArray(r)?r:[],s=Math.max(i.length,a.length),l=0;l&lt;s;l++)B(t+&quot;[&quot;+l+&quot;]&quot;,i[l],a[l],n);else if(o.isPlainObject(e)||o.isPlainObject(r)){var c=o.isPlainObject(e)?e:{},u=o.isPlainObject(r)?r:{},f=o.extendFlat({},c,u);for(var h in f)B(t+&quot;.&quot;+h,c[h],u[h],n)}else void 0===n[t]&amp;&amp;(n[t]=R(e))}function N(t,e,r){var n,i=t._fullLayout,a=t._fullData,l=t.data,c=i._guiEditing,d=F(i._preGUI,c),m=o.extendDeepAll({},e);j(e);var g,v=T.traceFlags(),y={},x={};function b(){return r.map((function(){}))}function w(t){var e=p.id2name(t);-1===g.indexOf(e)&amp;&amp;g.push(e)}function k(t){return&quot;LAYOUT&quot;+t+&quot;.autorange&quot;}function A(t){return&quot;LAYOUT&quot;+t+&quot;.range&quot;}function M(t){for(var e=t;e&lt;a.length;e++)if(a[e]._input===l[t])return a[e]}function S(n,a,o){if(Array.isArray(n))n.forEach((function(t){S(t,a,o)}));else if(!(n in e)&amp;&amp;!_.hasParent(e,n)){var s;if(&quot;LAYOUT&quot;===n.substr(0,6))s=d(t.layout,n.replace(&quot;LAYOUT&quot;,&quot;&quot;));else{var u=r[o];s=F(i._tracePreGUI[M(u)._fullInput.uid],c)(l[u],n)}n in x||(x[n]=b()),void 0===x[n][o]&amp;&amp;(x[n][o]=R(s.get())),void 0!==a&amp;&amp;s.set(a)}}function E(t){return function(e){return a[e][t]}}function L(t){return function(e,n){return!1===e?a[r[n]][t]:null}}for(var C in e){if(_.hasParent(e,C))throw new Error(&quot;cannot set &quot;+C+&quot; and a parent attribute simultaneously&quot;);var P,I,O,z,D,B,N=e[C];if(&quot;autobinx&quot;!==C&amp;&amp;&quot;autobiny&quot;!==C||(C=C.charAt(C.length-1)+&quot;bins&quot;,N=Array.isArray(N)?N.map(L(C)):!1===N?r.map(E(C)):null),y[C]=N,&quot;LAYOUT&quot;!==C.substr(0,6)){for(x[C]=b(),n=0;n&lt;r.length;n++){if(P=l[r[n]],I=M(r[n]),z=(O=F(i._tracePreGUI[I._fullInput.uid],c)(P,C)).get(),void 0!==(D=Array.isArray(N)?N[n%N.length]:N)){var U=O.parts[O.parts.length-1],V=C.substr(0,C.length-U.length-1),H=V?V+&quot;.&quot;:&quot;&quot;,q=V?s(I,V).get():I;if((B=f.getTraceValObject(I,O.parts))&amp;&amp;B.impliedEdits&amp;&amp;null!==D)for(var G in B.impliedEdits)S(o.relativeAttr(C,G),B.impliedEdits[G],n);else if(&quot;thicknessmode&quot;!==U&amp;&amp;&quot;lenmode&quot;!==U||z===D||&quot;fraction&quot;!==D&amp;&amp;&quot;pixels&quot;!==D||!q){if(&quot;type&quot;===C&amp;&amp;(&quot;pie&quot;===D!=(&quot;pie&quot;===z)||&quot;funnelarea&quot;===D!=(&quot;funnelarea&quot;===z))){var Y=&quot;x&quot;,W=&quot;y&quot;;&quot;bar&quot;!==D&amp;&amp;&quot;bar&quot;!==z||&quot;h&quot;!==P.orientation||(Y=&quot;y&quot;,W=&quot;x&quot;),o.swapAttrs(P,[&quot;?&quot;,&quot;?src&quot;],&quot;labels&quot;,Y),o.swapAttrs(P,[&quot;d?&quot;,&quot;?0&quot;],&quot;label&quot;,Y),o.swapAttrs(P,[&quot;?&quot;,&quot;?src&quot;],&quot;values&quot;,W),&quot;pie&quot;===z||&quot;funnelarea&quot;===z?(s(P,&quot;marker.color&quot;).set(s(P,&quot;marker.colors&quot;).get()),i._pielayer.selectAll(&quot;g.trace&quot;).remove()):u.traceIs(P,&quot;cartesian&quot;)&amp;&amp;s(P,&quot;marker.colors&quot;).set(s(P,&quot;marker.color&quot;).get())}}else{var X=i._size,Z=q.orient,J=&quot;top&quot;===Z||&quot;bottom&quot;===Z;if(&quot;thicknessmode&quot;===U){var K=J?X.h:X.w;S(H+&quot;thickness&quot;,q.thickness*(&quot;fraction&quot;===D?1/K:K),n)}else{var Q=J?X.w:X.h;S(H+&quot;len&quot;,q.len*(&quot;fraction&quot;===D?1/Q:Q),n)}}x[C][n]=R(z);if(-1!==[&quot;swapxy&quot;,&quot;swapxyaxes&quot;,&quot;orientation&quot;,&quot;orientationaxes&quot;].indexOf(C)){if(&quot;orientation&quot;===C){O.set(D);var $=P.x&amp;&amp;!P.y?&quot;h&quot;:&quot;v&quot;;if((O.get()||$)===I.orientation)continue}else&quot;orientationaxes&quot;===C&amp;&amp;(P.orientation={v:&quot;h&quot;,h:&quot;v&quot;}[I.orientation]);_.swapXYData(P),v.calc=v.clearAxisTypes=!0}else-1!==h.dataArrayContainers.indexOf(O.parts[0])?(_.manageArrayContainers(O,D,x),v.calc=!0):(B?B.arrayOk&amp;&amp;!u.traceIs(I,&quot;regl&quot;)&amp;&amp;(o.isArrayOrTypedArray(D)||o.isArrayOrTypedArray(z))?v.calc=!0:T.update(v,B):v.calc=!0,O.set(D))}}if(-1!==[&quot;swapxyaxes&quot;,&quot;orientationaxes&quot;].indexOf(C)&amp;&amp;p.swap(t,r),&quot;orientationaxes&quot;===C){var tt=s(t.layout,&quot;hovermode&quot;),et=tt.get();&quot;x&quot;===et?tt.set(&quot;y&quot;):&quot;y&quot;===et?tt.set(&quot;x&quot;):&quot;x unified&quot;===et?tt.set(&quot;y unified&quot;):&quot;y unified&quot;===et&amp;&amp;tt.set(&quot;x unified&quot;)}if(-1!==[&quot;orientation&quot;,&quot;type&quot;].indexOf(C)){for(g=[],n=0;n&lt;r.length;n++){var rt=l[r[n]];u.traceIs(rt,&quot;cartesian&quot;)&amp;&amp;(w(rt.xaxis||&quot;x&quot;),w(rt.yaxis||&quot;y&quot;))}S(g.map(k),!0,0),S(g.map(A),[0,1],0)}}else O=d(t.layout,C.replace(&quot;LAYOUT&quot;,&quot;&quot;)),x[C]=[R(O.get())],O.set(Array.isArray(N)?N[0]:N),v.calc=!0}return(v.calc||v.plot)&amp;&amp;(v.fullReplot=!0),{flags:v,undoit:x,redoit:y,traces:r,eventData:o.extendDeepNoArrays([],[m,r])}}function j(t){var e,r,n,i=o.counterRegex(&quot;axis&quot;,&quot;.title&quot;,!1,!1),a=/colorbar\.title$/,s=Object.keys(t);for(e=0;e&lt;s.length;e++)r=s[e],n=t[r],&quot;title&quot;!==r&amp;&amp;!i.test(r)&amp;&amp;!a.test(r)||&quot;string&quot;!=typeof n&amp;&amp;&quot;number&quot;!=typeof n?r.indexOf(&quot;titlefont&quot;)&gt;-1&amp;&amp;-1===r.indexOf(&quot;grouptitlefont&quot;)?l(r,r.replace(&quot;titlefont&quot;,&quot;title.font&quot;)):r.indexOf(&quot;titleposition&quot;)&gt;-1?l(r,r.replace(&quot;titleposition&quot;,&quot;title.position&quot;)):r.indexOf(&quot;titleside&quot;)&gt;-1?l(r,r.replace(&quot;titleside&quot;,&quot;title.side&quot;)):r.indexOf(&quot;titleoffset&quot;)&gt;-1&amp;&amp;l(r,r.replace(&quot;titleoffset&quot;,&quot;title.offset&quot;)):l(r,r.replace(&quot;title&quot;,&quot;title.text&quot;));function l(e,r){t[r]=t[e],delete t[e]}}function U(t,e,r){t=o.getGraphDiv(t),_.clearPromiseQueue(t);var n={};if(&quot;string&quot;==typeof e)n[e]=r;else{if(!o.isPlainObject(e))return o.warn(&quot;Relayout fail.&quot;,e,r),Promise.reject();n=o.extendFlat({},e)}Object.keys(n).length&amp;&amp;(t.changed=!0);var i=W(t,n),a=i.flags;a.calc&amp;&amp;(t.calcdata=void 0);var s=[h.previousPromises];a.layoutReplot?s.push(w.layoutReplot):Object.keys(n).length&amp;&amp;(V(t,a,i)||h.supplyDefaults(t),a.legend&amp;&amp;s.push(w.doLegend),a.layoutstyle&amp;&amp;s.push(w.layoutStyles),a.axrange&amp;&amp;H(s,i.rangesAltered),a.ticks&amp;&amp;s.push(w.doTicksRelayout),a.modebar&amp;&amp;s.push(w.doModeBar),a.camera&amp;&amp;s.push(w.doCamera),a.colorbars&amp;&amp;s.push(w.doColorBars),s.push(M)),s.push(h.rehover,h.redrag),c.add(t,U,[t,i.undoit],U,[t,i.redoit]);var l=o.syncOrAsync(s,t);return l&amp;&amp;l.then||(l=Promise.resolve(t)),l.then((function(){return t.emit(&quot;plotly_relayout&quot;,i.eventData),t}))}function V(t,e,r){var n=t._fullLayout;if(!e.axrange)return!1;for(var i in e)if(&quot;axrange&quot;!==i&amp;&amp;e[i])return!1;for(var a in r.rangesAltered){var o=p.id2name(a),s=t.layout[o],l=n[o];if(l.autorange=s.autorange,s.range&amp;&amp;(l.range=s.range.slice()),l.cleanRange(),l._matchGroup)for(var c in l._matchGroup)if(c!==a){var u=n[p.id2name(c)];u.autorange=l.autorange,u.range=l.range.slice(),u._input.range=l.range.slice()}}return!0}function H(t,e){var r=e?function(t){var r=[],n=!0;for(var i in e){var a=p.getFromId(t,i);if(r.push(i),-1!==(a.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;a._anchorAxis&amp;&amp;r.push(a._anchorAxis._id),a._matchGroup)for(var o in a._matchGroup)e[o]||r.push(o);a.automargin&amp;&amp;(n=!1)}return p.draw(t,r,{skipTitle:n})}:function(t){return p.draw(t,&quot;redraw&quot;)};t.push(y,w.doAutoRangeAndConstraints,r,w.drawData,w.finalDraw)}var q=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,G=/^[xyz]axis[0-9]*\.autorange$/,Y=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function W(t,e){var r,n,i,a=t.layout,l=t._fullLayout,c=l._guiEditing,h=F(l._preGUI,c),d=Object.keys(e),m=p.list(t),g=o.extendDeepAll({},e),v={};for(j(e),d=Object.keys(e),n=0;n&lt;d.length;n++)if(0===d[n].indexOf(&quot;allaxes&quot;)){for(i=0;i&lt;m.length;i++){var y=m[i]._id.substr(1),x=-1!==y.indexOf(&quot;scene&quot;)?y+&quot;.&quot;:&quot;&quot;,w=d[n].replace(&quot;allaxes&quot;,x+m[i]._name);e[w]||(e[w]=e[d[n]])}delete e[d[n]]}var A=T.layoutFlags(),M={},S={};function E(t,r){if(Array.isArray(t))t.forEach((function(t){E(t,r)}));else if(!(t in e)&amp;&amp;!_.hasParent(e,t)){var n=h(a,t);t in S||(S[t]=R(n.get())),void 0!==r&amp;&amp;n.set(r)}}var L,C={};function P(t){var e=p.name2id(t.split(&quot;.&quot;)[0]);return C[e]=1,e}for(var I in e){if(_.hasParent(e,I))throw new Error(&quot;cannot set &quot;+I+&quot; and a parent attribute simultaneously&quot;);for(var O=h(a,I),z=e[I],D=O.parts.length-1;D&gt;0&amp;&amp;&quot;string&quot;!=typeof O.parts[D];)D--;var B=O.parts[D],N=O.parts[D-1]+&quot;.&quot;+B,U=O.parts.slice(0,D).join(&quot;.&quot;),V=s(t.layout,U).get(),H=s(l,U).get(),W=O.get();if(void 0!==z){M[I]=z,S[I]=&quot;reverse&quot;===B?z:R(W);var Z=f.getLayoutValObject(l,O.parts);if(Z&amp;&amp;Z.impliedEdits&amp;&amp;null!==z)for(var J in Z.impliedEdits)E(o.relativeAttr(I,J),Z.impliedEdits[J]);if(-1!==[&quot;width&quot;,&quot;height&quot;].indexOf(I))if(z){E(&quot;autosize&quot;,null);var K=&quot;height&quot;===I?&quot;width&quot;:&quot;height&quot;;E(K,l[K])}else l[I]=t._initialAutoSize[I];else if(&quot;autosize&quot;===I)E(&quot;width&quot;,z?null:l.width),E(&quot;height&quot;,z?null:l.height);else if(N.match(q))P(N),s(l,U+&quot;._inputRange&quot;).set(null);else if(N.match(G)){P(N),s(l,U+&quot;._inputRange&quot;).set(null);var Q=s(l,U).get();Q._inputDomain&amp;&amp;(Q._input.domain=Q._inputDomain.slice())}else N.match(Y)&amp;&amp;s(l,U+&quot;._inputDomain&quot;).set(null);if(&quot;type&quot;===B){L=V;var $=&quot;linear&quot;===H.type&amp;&amp;&quot;log&quot;===z,tt=&quot;log&quot;===H.type&amp;&amp;&quot;linear&quot;===z;if($||tt){if(L&amp;&amp;L.range)if(H.autorange)$&amp;&amp;(L.range=L.range[1]&gt;L.range[0]?[1,2]:[2,1]);else{var et=L.range[0],rt=L.range[1];$?(et&lt;=0&amp;&amp;rt&lt;=0&amp;&amp;E(U+&quot;.autorange&quot;,!0),et&lt;=0?et=rt/1e6:rt&lt;=0&amp;&amp;(rt=et/1e6),E(U+&quot;.range[0]&quot;,Math.log(et)/Math.LN10),E(U+&quot;.range[1]&quot;,Math.log(rt)/Math.LN10)):(E(U+&quot;.range[0]&quot;,Math.pow(10,et)),E(U+&quot;.range[1]&quot;,Math.pow(10,rt)))}else E(U+&quot;.autorange&quot;,!0);Array.isArray(l._subplots.polar)&amp;&amp;l._subplots.polar.length&amp;&amp;l[O.parts[0]]&amp;&amp;&quot;radialaxis&quot;===O.parts[1]&amp;&amp;delete l[O.parts[0]]._subplot.viewInitial[&quot;radialaxis.range&quot;],u.getComponentMethod(&quot;annotations&quot;,&quot;convertCoords&quot;)(t,H,z,E),u.getComponentMethod(&quot;images&quot;,&quot;convertCoords&quot;)(t,H,z,E)}else E(U+&quot;.autorange&quot;,!0),E(U+&quot;.range&quot;,null);s(l,U+&quot;._inputRange&quot;).set(null)}else if(B.match(k)){var nt=s(l,I).get(),it=(z||{}).type;it&amp;&amp;&quot;-&quot;!==it||(it=&quot;linear&quot;),u.getComponentMethod(&quot;annotations&quot;,&quot;convertCoords&quot;)(t,nt,it,E),u.getComponentMethod(&quot;images&quot;,&quot;convertCoords&quot;)(t,nt,it,E)}var at=b.containerArrayMatch(I);if(at){r=at.array,n=at.index;var ot=at.property,st=Z||{editType:&quot;calc&quot;};&quot;&quot;!==n&amp;&amp;&quot;&quot;===ot&amp;&amp;(b.isAddVal(z)?S[I]=null:b.isRemoveVal(z)?S[I]=(s(a,r).get()||[])[n]:o.warn(&quot;unrecognized full object value&quot;,e)),T.update(A,st),v[r]||(v[r]={});var lt=v[r][n];lt||(lt=v[r][n]={}),lt[ot]=z,delete e[I]}else&quot;reverse&quot;===B?(V.range?V.range.reverse():(E(U+&quot;.autorange&quot;,!0),V.range=[1,0]),H.autorange?A.calc=!0:A.plot=!0):(l._has(&quot;scatter-like&quot;)&amp;&amp;l._has(&quot;regl&quot;)&amp;&amp;&quot;dragmode&quot;===I&amp;&amp;(&quot;lasso&quot;===z||&quot;select&quot;===z)&amp;&amp;&quot;lasso&quot;!==W&amp;&amp;&quot;select&quot;!==W||l._has(&quot;gl2d&quot;)?A.plot=!0:Z?T.update(A,Z):A.calc=!0,O.set(z))}}for(r in v){b.applyContainerArrayChanges(t,h(a,r),v[r],A,h)||(A.plot=!0)}for(var ct in C){var ut=(L=p.getFromId(t,ct))&amp;&amp;L._constraintGroup;if(ut)for(var ft in A.calc=!0,ut)C[ft]||(p.getFromId(t,ft)._constraintShrinkable=!0)}return(X(t)||e.height||e.width)&amp;&amp;(A.plot=!0),(A.plot||A.calc)&amp;&amp;(A.layoutReplot=!0),{flags:A,rangesAltered:C,undoit:S,redoit:M,eventData:g}}function X(t){var e=t._fullLayout,r=e.width,n=e.height;return t.layout.autosize&amp;&amp;h.plotAutoSize(t,t.layout,e),e.width!==r||e.height!==n}function Z(t,e,n,i){t=o.getGraphDiv(t),_.clearPromiseQueue(t),o.isPlainObject(e)||(e={}),o.isPlainObject(n)||(n={}),Object.keys(e).length&amp;&amp;(t.changed=!0),Object.keys(n).length&amp;&amp;(t.changed=!0);var a=_.coerceTraceIndices(t,i),s=N(t,o.extendFlat({},e),a),l=s.flags,u=W(t,o.extendFlat({},n)),f=u.flags;(l.calc||f.calc)&amp;&amp;(t.calcdata=void 0),l.clearAxisTypes&amp;&amp;_.clearAxisTypes(t,a,n);var p=[];f.layoutReplot?p.push(w.layoutReplot):l.fullReplot?p.push(r._doPlot):(p.push(h.previousPromises),V(t,f,u)||h.supplyDefaults(t),l.style&amp;&amp;p.push(w.doTraceStyle),(l.colorbars||f.colorbars)&amp;&amp;p.push(w.doColorBars),f.legend&amp;&amp;p.push(w.doLegend),f.layoutstyle&amp;&amp;p.push(w.layoutStyles),f.axrange&amp;&amp;H(p,u.rangesAltered),f.ticks&amp;&amp;p.push(w.doTicksRelayout),f.modebar&amp;&amp;p.push(w.doModeBar),f.camera&amp;&amp;p.push(w.doCamera),p.push(M)),p.push(h.rehover,h.redrag),c.add(t,Z,[t,s.undoit,u.undoit,s.traces],Z,[t,s.redoit,u.redoit,s.traces]);var d=o.syncOrAsync(p,t);return d&amp;&amp;d.then||(d=Promise.resolve(t)),d.then((function(){return t.emit(&quot;plotly_update&quot;,{data:s.eventData,layout:u.eventData}),t}))}function J(t){return function(e){e._fullLayout._guiEditing=!0;var r=t.apply(null,arguments);return e._fullLayout._guiEditing=!1,r}}var K=[{pattern:/^hiddenlabels/,attr:&quot;legend.uirevision&quot;},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:&quot;modebar.uirevision&quot;},{pattern:/(hover|drag)mode$/,attr:&quot;modebar.uirevision&quot;},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:&quot;editrevision&quot;},{pattern:/^(shapes|annotations)/,attr:&quot;editrevision&quot;},{pattern:/^title\.text$/,attr:&quot;editrevision&quot;}],Q=[{pattern:/^selectedpoints$/,attr:&quot;selectionrevision&quot;},{pattern:/(^|value\.)visible$/,attr:&quot;legend.uirevision&quot;},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:&quot;editrevision&quot;}];function $(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r],i=t.match(n.pattern);if(i){var a=i[1]||&quot;&quot;;return{head:a,tail:t.substr(a.length+1),attr:n.attr}}}}function tt(t,e){var r=s(e,t).get();if(void 0!==r)return r;var n=t.split(&quot;.&quot;);for(n.pop();n.length&gt;1;)if(n.pop(),void 0!==(r=s(e,n.join(&quot;.&quot;)+&quot;.uirevision&quot;).get()))return r;return e.uirevision}function et(t,e){for(var r=0;r&lt;e.length;r++)if(e[r]._fullInput.uid===t)return r;return-1}function rt(t,e,r){for(var n=0;n&lt;e.length;n++)if(e[n].uid===t)return n;return!e[r]||e[r].uid?-1:r}function nt(t,e){var r=o.isPlainObject(t),n=Array.isArray(t);return r||n?(r&amp;&amp;o.isPlainObject(e)||n&amp;&amp;Array.isArray(e))&amp;&amp;JSON.stringify(t)===JSON.stringify(e):t===e}function it(t,e,r,n){var i,a,l,c=n.getValObject,u=n.flags,f=n.immutable,h=n.inArray,p=n.arrayIndex;function d(){var t=i.editType;h&amp;&amp;-1!==t.indexOf(&quot;arraydraw&quot;)?o.pushUnique(u.arrays[h],p):(T.update(u,i),&quot;none&quot;!==t&amp;&amp;u.nChanges++,n.transition&amp;&amp;i.anim&amp;&amp;u.nChangesAnim++,(q.test(l)||G.test(l))&amp;&amp;(u.rangesAltered[r[0]]=1),Y.test(l)&amp;&amp;s(e,&quot;_inputDomain&quot;).set(null),&quot;datarevision&quot;===a&amp;&amp;(u.newDataRevision=1))}function m(t){return&quot;data_array&quot;===t.valType||t.arrayOk}for(a in t){if(u.calc&amp;&amp;!n.transition)return;var g=t[a],v=e[a],y=r.concat(a);if(l=y.join(&quot;.&quot;),&quot;_&quot;!==a.charAt(0)&amp;&amp;&quot;function&quot;!=typeof g&amp;&amp;g!==v){if((&quot;tick0&quot;===a||&quot;dtick&quot;===a)&amp;&amp;&quot;geo&quot;!==r[0]){var x=e.tickmode;if(&quot;auto&quot;===x||&quot;array&quot;===x||!x)continue}if((&quot;range&quot;!==a||!e.autorange)&amp;&amp;(&quot;zmin&quot;!==a&amp;&amp;&quot;zmax&quot;!==a||&quot;contourcarpet&quot;!==e.type)&amp;&amp;(i=c(y))&amp;&amp;(!i._compareAsJSON||JSON.stringify(g)!==JSON.stringify(v))){var b,_=i.valType,w=m(i),k=Array.isArray(g),A=Array.isArray(v);if(k&amp;&amp;A){var M=&quot;_input_&quot;+a,S=t[M],E=e[M];if(Array.isArray(S)&amp;&amp;S===E)continue}if(void 0===v)w&amp;&amp;k?u.calc=!0:d();else if(i._isLinkedToArray){var L=[],C=!1;h||(u.arrays[a]=L);var P=Math.min(g.length,v.length),I=Math.max(g.length,v.length);if(P!==I){if(&quot;arraydraw&quot;!==i.editType){d();continue}C=!0}for(b=0;b&lt;P;b++)it(g[b],v[b],y.concat(b),o.extendFlat({inArray:a,arrayIndex:b},n));if(C)for(b=P;b&lt;I;b++)L.push(b)}else!_&amp;&amp;o.isPlainObject(g)?it(g,v,y,n):w?k&amp;&amp;A?(f&amp;&amp;(u.calc=!0),(f||n.newDataRevision)&amp;&amp;d()):k!==A?u.calc=!0:d():k&amp;&amp;A&amp;&amp;g.length===v.length&amp;&amp;String(g)===String(v)||d()}}}for(a in e)if(!(a in t)&amp;&amp;&quot;_&quot;!==a.charAt(0)&amp;&amp;&quot;function&quot;!=typeof e[a]){if(m(i=c(r.concat(a)))&amp;&amp;Array.isArray(e[a]))return void(u.calc=!0);d()}}function at(t){var e=t._fullLayout,r=t.getBoundingClientRect();if(!o.equalDomRects(r,e._lastBBox)){var n=e._invTransform=o.inverseTransformMatrix(o.getFullTransformMatrix(t));e._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),e._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),e._lastBBox=r}}r.animate=function(t,e,r){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t+&quot;. It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/&quot;);var n=t._transitionData;n._frameQueue||(n._frameQueue=[]);var i=(r=h.supplyAnimationDefaults(r)).transition,a=r.frame;function s(t){return Array.isArray(i)?t&gt;=i.length?i[0]:i[t]:i}function l(t){return Array.isArray(a)?t&gt;=a.length?a[0]:a[t]:a}function c(t,e){var r=0;return function(){if(t&amp;&amp;++r===e)return t()}}return void 0===n._frameWaitingCnt&amp;&amp;(n._frameWaitingCnt=0),new Promise((function(a,u){function f(){n._currentFrame&amp;&amp;n._currentFrame.onComplete&amp;&amp;n._currentFrame.onComplete();var e=n._currentFrame=n._frameQueue.shift();if(e){var r=e.name?e.name.toString():null;t._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=e.frameOpts.duration,h.transition(t,e.frame.data,e.frame.layout,_.coerceTraceIndices(t,e.frame.traces),e.frameOpts,e.transitionOpts).then((function(){e.onComplete&amp;&amp;e.onComplete()})),t.emit(&quot;plotly_animatingframe&quot;,{name:r,frame:e.frame,animation:{frame:e.frameOpts,transition:e.transitionOpts}})}else t.emit(&quot;plotly_animated&quot;),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function p(){t.emit(&quot;plotly_animating&quot;),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var e=function(){n._animationRaf=window.requestAnimationFrame(e),Date.now()-n._lastFrameAt&gt;n._timeToNext&amp;&amp;f()};e()}var d,m,g=0;function v(t){return Array.isArray(i)?g&gt;=i.length?t.transitionOpts=i[g]:t.transitionOpts=i[0]:t.transitionOpts=i,g++,t}var y=[],x=null==e,b=Array.isArray(e);if(!x&amp;&amp;!b&amp;&amp;o.isPlainObject(e))y.push({type:&quot;object&quot;,data:v(o.extendFlat({},e))});else if(x||-1!==[&quot;string&quot;,&quot;number&quot;].indexOf(typeof e))for(d=0;d&lt;n._frames.length;d++)(m=n._frames[d])&amp;&amp;(x||String(m.group)===String(e))&amp;&amp;y.push({type:&quot;byname&quot;,name:String(m.name),data:v({name:m.name})});else if(b)for(d=0;d&lt;e.length;d++){var w=e[d];-1!==[&quot;number&quot;,&quot;string&quot;].indexOf(typeof w)?(w=String(w),y.push({type:&quot;byname&quot;,name:w,data:v({name:w})})):o.isPlainObject(w)&amp;&amp;y.push({type:&quot;object&quot;,data:v(o.extendFlat({},w))})}for(d=0;d&lt;y.length;d++)if(&quot;byname&quot;===(m=y[d]).type&amp;&amp;!n._frameHash[m.data.name])return o.warn('animate failure: frame not found: &quot;'+m.data.name+'&quot;'),void u();-1!==[&quot;next&quot;,&quot;immediate&quot;].indexOf(r.mode)&amp;&amp;function(){if(0!==n._frameQueue.length){for(;n._frameQueue.length;){var e=n._frameQueue.pop();e.onInterrupt&amp;&amp;e.onInterrupt()}t.emit(&quot;plotly_animationinterrupted&quot;,[])}}(),&quot;reverse&quot;===r.direction&amp;&amp;y.reverse();var T=t._fullLayout._currentFrame;if(T&amp;&amp;r.fromcurrent){var k=-1;for(d=0;d&lt;y.length;d++)if(&quot;byname&quot;===(m=y[d]).type&amp;&amp;m.name===T){k=d;break}if(k&gt;0&amp;&amp;k&lt;y.length-1){var A=[];for(d=0;d&lt;y.length;d++)m=y[d],(&quot;byname&quot;!==y[d].type||d&gt;k)&amp;&amp;A.push(m);y=A}}y.length&gt;0?function(e){if(0!==e.length){for(var i=0;i&lt;e.length;i++){var o;o=&quot;byname&quot;===e[i].type?h.computeFrame(t,e[i].name):e[i].data;var f=l(i),d=s(i);d.duration=Math.min(d.duration,f.duration);var m={frame:o,name:e[i].name,frameOpts:f,transitionOpts:d};i===e.length-1&amp;&amp;(m.onComplete=c(a,2),m.onInterrupt=u),n._frameQueue.push(m)}&quot;immediate&quot;===r.mode&amp;&amp;(n._lastFrameAt=-1/0),n._animationRaf||p()}}(y):(t.emit(&quot;plotly_animated&quot;),a())}))},r.addFrames=function(t,e,r){if(t=o.getGraphDiv(t),null==e)return Promise.resolve();if(!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t+&quot;. It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/&quot;);var n,i,a,s,l=t._transitionData._frames,u=t._transitionData._frameHash;if(!Array.isArray(e))throw new Error(&quot;addFrames failure: frameList must be an Array of frame definitions&quot;+e);var f=l.length+2*e.length,p=[],d={};for(n=e.length-1;n&gt;=0;n--)if(o.isPlainObject(e[n])){var m=e[n].name,g=(u[m]||d[m]||{}).name,v=e[n].name,y=u[g]||d[g];g&amp;&amp;v&amp;&amp;&quot;number&quot;==typeof v&amp;&amp;y&amp;&amp;A&lt;5&amp;&amp;(A++,o.warn('addFrames: overwriting frame &quot;'+(u[g]||d[g]).name+'&quot; with a frame whose name of type &quot;number&quot; also equates to &quot;'+g+'&quot;. This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===A&amp;&amp;o.warn(&quot;addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.&quot;)),d[m]={name:m},p.push({frame:h.supplyFrameDefaults(e[n]),index:r&amp;&amp;void 0!==r[n]&amp;&amp;null!==r[n]?r[n]:f+n})}p.sort((function(t,e){return t.index&gt;e.index?-1:t.index&lt;e.index?1:0}));var x=[],b=[],_=l.length;for(n=p.length-1;n&gt;=0;n--){if(&quot;number&quot;==typeof(i=p[n].frame).name&amp;&amp;o.warn(&quot;Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings&quot;),!i.name)for(;u[i.name=&quot;frame &quot;+t._transitionData._counter++];);if(u[i.name]){for(a=0;a&lt;l.length&amp;&amp;(l[a]||{}).name!==i.name;a++);x.push({type:&quot;replace&quot;,index:a,value:i}),b.unshift({type:&quot;replace&quot;,index:a,value:l[a]})}else s=Math.max(0,Math.min(p[n].index,_)),x.push({type:&quot;insert&quot;,index:s,value:i}),b.unshift({type:&quot;delete&quot;,index:s}),_++}var w=h.modifyFrames,T=h.modifyFrames,k=[t,b],M=[t,x];return c&amp;&amp;c.add(t,w,k,T,M),h.modifyFrames(t,x)},r.deleteFrames=function(t,e){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t);var r,n,i=t._transitionData._frames,a=[],s=[];if(!e)for(e=[],r=0;r&lt;i.length;r++)e.push(r);for((e=e.slice()).sort(),r=e.length-1;r&gt;=0;r--)n=e[r],a.push({type:&quot;delete&quot;,index:n}),s.unshift({type:&quot;insert&quot;,index:n,value:i[n]});var l=h.modifyFrames,u=h.modifyFrames,f=[t,s],p=[t,a];return c&amp;&amp;c.add(t,l,f,u,p),h.modifyFrames(t,a)},r.addTraces=function t(e,n,i){e=o.getGraphDiv(e);var a,s,l=[],u=r.deleteTraces,f=t,h=[e,l],p=[e,n];for(function(t,e,r){var n,i;if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array.&quot;);if(void 0===e)throw new Error(&quot;traces must be defined.&quot;);for(Array.isArray(e)||(e=[e]),n=0;n&lt;e.length;n++)if(&quot;object&quot;!=typeof(i=e[n])||Array.isArray(i)||null===i)throw new Error(&quot;all values in traces array must be non-array objects&quot;);if(void 0===r||Array.isArray(r)||(r=[r]),void 0!==r&amp;&amp;r.length!==e.length)throw new Error(&quot;if indices is specified, traces.length must equal indices.length&quot;)}(e,n,i),Array.isArray(n)||(n=[n]),n=n.map((function(t){return o.extendFlat({},t)})),_.cleanData(n),a=0;a&lt;n.length;a++)e.data.push(n[a]);for(a=0;a&lt;n.length;a++)l.push(-n.length+a);if(void 0===i)return s=r.redraw(e),c.add(e,u,h,f,p),s;Array.isArray(i)||(i=[i]);try{I(e,l,i)}catch(t){throw e.data.splice(e.data.length-n.length,n.length),t}return c.startSequence(e),c.add(e,u,h,f,p),s=r.moveTraces(e,l,i),c.stopSequence(e),s},r.deleteTraces=function t(e,n){e=o.getGraphDiv(e);var i,a,s=[],l=r.addTraces,u=t,f=[e,s,n],h=[e,n];if(void 0===n)throw new Error(&quot;indices must be an integer or array of integers.&quot;);for(Array.isArray(n)||(n=[n]),P(e,n,&quot;indices&quot;),(n=C(n,e.data.length-1)).sort(o.sorterDes),i=0;i&lt;n.length;i+=1)a=e.data.splice(n[i],1)[0],s.push(a);var p=r.redraw(e);return c.add(e,l,f,u,h),p},r.extendTraces=function t(e,n,i,a){function s(t,e,r){var n,i;if(o.isTypedArray(t))if(r&lt;0){var a=new t.constructor(0),s=z(t,e);r&lt;0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r&lt;e.length){var l=e.length-r;n.set(e.subarray(l)),i.set(t),i.set(e.subarray(0,l),t.length)}else{var c=r-e.length,u=t.length-c;n.set(t.subarray(u)),n.set(e,c),i.set(t.subarray(0,u))}else n=t.concat(e),i=r&gt;=0&amp;&amp;r&lt;n.length?n.splice(0,n.length-r):[];return[n,i]}var l=O(e=o.getGraphDiv(e),n,i,a,s),u=r.redraw(e),f=[e,l.update,i,l.maxPoints];return c.add(e,r.prependTraces,f,t,arguments),u},r.moveTraces=function t(e,n,i){var a,s=[],l=[],u=t,f=t,h=[e=o.getGraphDiv(e),i,n],p=[e,n,i];if(I(e,n,i),n=Array.isArray(n)?n:[n],void 0===i)for(i=[],a=0;a&lt;n.length;a++)i.push(-n.length+a);for(i=Array.isArray(i)?i:[i],n=C(n,e.data.length-1),i=C(i,e.data.length-1),a=0;a&lt;e.data.length;a++)-1===n.indexOf(a)&amp;&amp;s.push(e.data[a]);for(a=0;a&lt;n.length;a++)l.push({newIndex:i[a],trace:e.data[n[a]]});for(l.sort((function(t,e){return t.newIndex-e.newIndex})),a=0;a&lt;l.length;a+=1)s.splice(l[a].newIndex,0,l[a].trace);e.data=s;var d=r.redraw(e);return c.add(e,u,h,f,p),d},r.prependTraces=function t(e,n,i,a){function s(t,e,r){var n,i;if(o.isTypedArray(t))if(r&lt;=0){var a=new t.constructor(0),s=z(e,t);r&lt;0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r&lt;e.length){var l=e.length-r;n.set(e.subarray(0,l)),i.set(e.subarray(l)),i.set(t,l)}else{var c=r-e.length;n.set(e),n.set(t.subarray(0,c),e.length),i.set(t.subarray(c))}else n=e.concat(t),i=r&gt;=0&amp;&amp;r&lt;n.length?n.splice(r,n.length):[];return[n,i]}var l=O(e=o.getGraphDiv(e),n,i,a,s),u=r.redraw(e),f=[e,l.update,i,l.maxPoints];return c.add(e,r.extendTraces,f,t,arguments),u},r.newPlot=function(t,e,n,i){return t=o.getGraphDiv(t),h.cleanPlot([],{},t._fullData||[],t._fullLayout||{}),h.purge(t),r._doPlot(t,e,n,i)},r._doPlot=function(t,e,i,a){var s;if(t=o.getGraphDiv(t),l.init(t),o.isPlainObject(e)){var c=e;e=c.data,i=c.layout,a=c.config,s=c.frames}if(!1===l.triggerHandler(t,&quot;plotly_beforeplot&quot;,[e,i,a]))return Promise.reject();e||i||o.isPlotDiv(t)||o.warn(&quot;Calling _doPlot as if redrawing but this container doesn't yet have a plot.&quot;,t),L(t,a),i||(i={}),n.select(t).classed(&quot;js-plotly-plot&quot;,!0),d.makeTester(),Array.isArray(t._promises)||(t._promises=[]);var f=0===(t.data||[]).length&amp;&amp;Array.isArray(e);Array.isArray(e)&amp;&amp;(_.cleanData(e),f?t.data=e:t.data.push.apply(t.data,e),t.empty=!1),t.layout&amp;&amp;!f||(t.layout=_.cleanLayout(i)),h.supplyDefaults(t);var m=t._fullLayout,y=m._has(&quot;cartesian&quot;);m._replotting=!0,(f||m._shouldCreateBgLayer)&amp;&amp;(!function(t){var e=n.select(t),r=t._fullLayout;if(r._calcInverseTransform=at,r._calcInverseTransform(t),r._container=e.selectAll(&quot;.plot-container&quot;).data([0]),r._container.enter().insert(&quot;div&quot;,&quot;:first-child&quot;).classed(&quot;plot-container&quot;,!0).classed(&quot;plotly&quot;,!0),r._paperdiv=r._container.selectAll(&quot;.svg-container&quot;).data([0]),r._paperdiv.enter().append(&quot;div&quot;).classed(&quot;user-select-none&quot;,!0).classed(&quot;svg-container&quot;,!0).style(&quot;position&quot;,&quot;relative&quot;),r._glcontainer=r._paperdiv.selectAll(&quot;.gl-container&quot;).data([{}]),r._glcontainer.enter().append(&quot;div&quot;).classed(&quot;gl-container&quot;,!0),r._paperdiv.selectAll(&quot;.main-svg&quot;).remove(),r._paperdiv.select(&quot;.modebar-container&quot;).remove(),r._paper=r._paperdiv.insert(&quot;svg&quot;,&quot;:first-child&quot;).classed(&quot;main-svg&quot;,!0),r._toppaper=r._paperdiv.append(&quot;svg&quot;).classed(&quot;main-svg&quot;,!0),r._modebardiv=r._paperdiv.append(&quot;div&quot;),delete r._modeBar,r._hoverpaper=r._paperdiv.append(&quot;svg&quot;).classed(&quot;main-svg&quot;,!0),!r._uid){var i={};n.selectAll(&quot;defs&quot;).each((function(){this.id&amp;&amp;(i[this.id.split(&quot;-&quot;)[1]]=1)})),r._uid=o.randstr(i)}r._paperdiv.selectAll(&quot;.main-svg&quot;).attr(v.svgAttrs),r._defs=r._paper.append(&quot;defs&quot;).attr(&quot;id&quot;,&quot;defs-&quot;+r._uid),r._clips=r._defs.append(&quot;g&quot;).classed(&quot;clips&quot;,!0),r._topdefs=r._toppaper.append(&quot;defs&quot;).attr(&quot;id&quot;,&quot;topdefs-&quot;+r._uid),r._topclips=r._topdefs.append(&quot;g&quot;).classed(&quot;clips&quot;,!0),r._bgLayer=r._paper.append(&quot;g&quot;).classed(&quot;bglayer&quot;,!0),r._draggers=r._paper.append(&quot;g&quot;).classed(&quot;draglayer&quot;,!0);var a=r._paper.append(&quot;g&quot;).classed(&quot;layer-below&quot;,!0);r._imageLowerLayer=a.append(&quot;g&quot;).classed(&quot;imagelayer&quot;,!0),r._shapeLowerLayer=a.append(&quot;g&quot;).classed(&quot;shapelayer&quot;,!0),r._cartesianlayer=r._paper.append(&quot;g&quot;).classed(&quot;cartesianlayer&quot;,!0),r._polarlayer=r._paper.append(&quot;g&quot;).classed(&quot;polarlayer&quot;,!0),r._smithlayer=r._paper.append(&quot;g&quot;).classed(&quot;smithlayer&quot;,!0),r._ternarylayer=r._paper.append(&quot;g&quot;).classed(&quot;ternarylayer&quot;,!0),r._geolayer=r._paper.append(&quot;g&quot;).classed(&quot;geolayer&quot;,!0),r._funnelarealayer=r._paper.append(&quot;g&quot;).classed(&quot;funnelarealayer&quot;,!0),r._pielayer=r._paper.append(&quot;g&quot;).classed(&quot;pielayer&quot;,!0),r._iciclelayer=r._paper.append(&quot;g&quot;).classed(&quot;iciclelayer&quot;,!0),r._treemaplayer=r._paper.append(&quot;g&quot;).classed(&quot;treemaplayer&quot;,!0),r._sunburstlayer=r._paper.append(&quot;g&quot;).classed(&quot;sunburstlayer&quot;,!0),r._indicatorlayer=r._toppaper.append(&quot;g&quot;).classed(&quot;indicatorlayer&quot;,!0),r._glimages=r._paper.append(&quot;g&quot;).classed(&quot;glimages&quot;,!0);var s=r._toppaper.append(&quot;g&quot;).classed(&quot;layer-above&quot;,!0);r._imageUpperLayer=s.append(&quot;g&quot;).classed(&quot;imagelayer&quot;,!0),r._shapeUpperLayer=s.append(&quot;g&quot;).classed(&quot;shapelayer&quot;,!0),r._infolayer=r._toppaper.append(&quot;g&quot;).classed(&quot;infolayer&quot;,!0),r._menulayer=r._toppaper.append(&quot;g&quot;).classed(&quot;menulayer&quot;,!0),r._zoomlayer=r._toppaper.append(&quot;g&quot;).classed(&quot;zoomlayer&quot;,!0),r._hoverlayer=r._hoverpaper.append(&quot;g&quot;).classed(&quot;hoverlayer&quot;,!0),r._modebardiv.classed(&quot;modebar-container&quot;,!0).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;top&quot;,&quot;0px&quot;).style(&quot;right&quot;,&quot;0px&quot;),t.emit(&quot;plotly_framework&quot;)}(t),m._shouldCreateBgLayer&amp;&amp;delete m._shouldCreateBgLayer),d.initGradients(t),d.initPatterns(t),f&amp;&amp;p.saveShowSpikeInitial(t);var x=!t.calcdata||t.calcdata.length!==(t._fullData||[]).length;x&amp;&amp;h.doCalcdata(t);for(var b=0;b&lt;t.calcdata.length;b++)t.calcdata[b][0].trace=t._fullData[b];t._context.responsive?t._responsiveChartHandler||(t._responsiveChartHandler=function(){o.isHidden(t)||h.resize(t)},window.addEventListener(&quot;resize&quot;,t._responsiveChartHandler)):o.clearResponsive(t);var T=o.extendFlat({},m._size),k=0;function A(){if(h.clearAutoMarginIds(t),w.drawMarginPushers(t),p.allowAutoMargin(t),m._has(&quot;pie&quot;))for(var e=t._fullData,r=0;r&lt;e.length;r++){var n=e[r];&quot;pie&quot;===n.type&amp;&amp;n.automargin&amp;&amp;h.allowAutoMargin(t,&quot;pie.&quot;+n.uid+&quot;.automargin&quot;)}return h.doAutoMargin(t),h.previousPromises(t)}function S(){t._transitioning||(w.doAutoRangeAndConstraints(t),f&amp;&amp;p.saveRangeInitial(t),u.getComponentMethod(&quot;rangeslider&quot;,&quot;calcAutorange&quot;)(t))}var E=[h.previousPromises,function(){if(s)return r.addFrames(t,s)},function e(){for(var r=m._basePlotModules,n=0;n&lt;r.length;n++)r[n].drawFramework&amp;&amp;r[n].drawFramework(t);!m._glcanvas&amp;&amp;m._has(&quot;gl&quot;)&amp;&amp;(m._glcanvas=m._glcontainer.selectAll(&quot;.gl-canvas&quot;).data([{key:&quot;contextLayer&quot;,context:!0,pick:!1},{key:&quot;focusLayer&quot;,context:!1,pick:!1},{key:&quot;pickLayer&quot;,context:!1,pick:!0}],(function(t){return t.key})),m._glcanvas.enter().append(&quot;canvas&quot;).attr(&quot;class&quot;,(function(t){return&quot;gl-canvas gl-canvas-&quot;+t.key.replace(&quot;Layer&quot;,&quot;&quot;)})).style({position:&quot;absolute&quot;,top:0,left:0,overflow:&quot;visible&quot;,&quot;pointer-events&quot;:&quot;none&quot;}));var i=t._context.plotGlPixelRatio;if(m._glcanvas){m._glcanvas.attr(&quot;width&quot;,m.width*i).attr(&quot;height&quot;,m.height*i).style(&quot;width&quot;,m.width+&quot;px&quot;).style(&quot;height&quot;,m.height+&quot;px&quot;);var a=m._glcanvas.data()[0].regl;if(a&amp;&amp;(Math.floor(m.width*i)!==a._gl.drawingBufferWidth||Math.floor(m.height*i)!==a._gl.drawingBufferHeight)){var s=&quot;WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.&quot;;if(!k)return o.log(s+&quot; Clearing graph and plotting again.&quot;),h.cleanPlot([],{},t._fullData,m),h.supplyDefaults(t),m=t._fullLayout,h.doCalcdata(t),k++,e();o.error(s)}}return&quot;h&quot;===m.modebar.orientation?m._modebardiv.style(&quot;height&quot;,null).style(&quot;width&quot;,&quot;100%&quot;):m._modebardiv.style(&quot;width&quot;,null).style(&quot;height&quot;,m.height+&quot;px&quot;),h.previousPromises(t)},A,function(){if(h.didMarginChange(T,m._size))return o.syncOrAsync([A,w.layoutStyles],t)}];y&amp;&amp;E.push((function(){if(x)return o.syncOrAsync([u.getComponentMethod(&quot;shapes&quot;,&quot;calcAutorange&quot;),u.getComponentMethod(&quot;annotations&quot;,&quot;calcAutorange&quot;),S],t);S()})),E.push(w.layoutStyles),y&amp;&amp;E.push((function(){return p.draw(t,f?&quot;&quot;:&quot;redraw&quot;)}),(function(t){t._fullLayout._insideTickLabelsAutorange&amp;&amp;U(t,t._fullLayout._insideTickLabelsAutorange).then((function(){t._fullLayout._insideTickLabelsAutorange=void 0}))})),E.push(w.drawData,w.finalDraw,g,h.addLinks,h.rehover,h.redrag,h.doAutoMargin,(function(t){t._fullLayout._insideTickLabelsAutorange&amp;&amp;f&amp;&amp;p.saveRangeInitial(t,!0)}),h.previousPromises);var C=o.syncOrAsync(E,t);return C&amp;&amp;C.then||(C=Promise.resolve()),C.then((function(){return M(t),t}))},r.purge=function(t){var e=(t=o.getGraphDiv(t))._fullLayout||{},r=t._fullData||[];return h.cleanPlot([],{},r,e),h.purge(t),l.purge(t),e._container&amp;&amp;e._container.remove(),delete t._context,t},r.react=function(t,e,n,i){var a,l;t=o.getGraphDiv(t),_.clearPromiseQueue(t);var c=t._fullData,p=t._fullLayout;if(o.isPlotDiv(t)&amp;&amp;c&amp;&amp;p){if(o.isPlainObject(e)){var d=e;e=d.data,n=d.layout,i=d.config,a=d.frames}var m=!1;if(i){var g=o.extendDeep({},t._context);t._context=void 0,L(t,i),m=function t(e,r){var n;for(n in e)if(&quot;_&quot;!==n.charAt(0)){var i=e[n],a=r[n];if(i!==a)if(o.isPlainObject(i)&amp;&amp;o.isPlainObject(a)){if(t(i,a))return!0}else{if(!Array.isArray(i)||!Array.isArray(a))return!0;if(i.length!==a.length)return!0;for(var s=0;s&lt;i.length;s++)if(i[s]!==a[s]){if(!o.isPlainObject(i[s])||!o.isPlainObject(a[s]))return!0;if(t(i[s],a[s]))return!0}}}}(g,t._context)}t.data=e||[],_.cleanData(t.data),t.layout=n||{},_.cleanLayout(t.layout),function(t,e,r,n){var i,a,l,c,u,f,h,p,d,m,g=n._preGUI,v=[],y={},x={};for(i in g){if(u=$(i,K)){if(d=u.head,m=u.tail,a=u.attr||d+&quot;.uirevision&quot;,(c=(l=s(n,a).get())&amp;&amp;tt(a,e))&amp;&amp;c===l){if(null===(f=g[i])&amp;&amp;(f=void 0),nt(p=(h=s(e,i)).get(),f)){void 0===p&amp;&amp;&quot;autorange&quot;===m&amp;&amp;v.push(d),h.set(R(s(n,i).get()));continue}if(&quot;autorange&quot;===m||&quot;range[&quot;===m.substr(0,6)){var b=g[d+&quot;.range[0]&quot;],_=g[d+&quot;.range[1]&quot;],w=g[d+&quot;.autorange&quot;];if(w||null===w&amp;&amp;null===b&amp;&amp;null===_){if(!(d in y)){var T=s(e,d).get();y[d]=T&amp;&amp;(T.autorange||!1!==T.autorange&amp;&amp;(!T.range||2!==T.range.length))}if(y[d]){h.set(R(s(n,i).get()));continue}}}}}else o.warn(&quot;unrecognized GUI edit: &quot;+i);delete g[i],u&amp;&amp;&quot;range[&quot;===u.tail.substr(0,6)&amp;&amp;(x[u.head]=1)}for(var k=0;k&lt;v.length;k++){var A=v[k];if(x[A]){var M=s(e,A).get();M&amp;&amp;delete M.autorange}}var S=n._tracePreGUI;for(var E in S){var L,C=S[E],P=null;for(i in C){if(!P){var I=et(E,r);if(I&lt;0){delete S[E];break}var O=rt(E,t,(L=r[I]._fullInput).index);if(O&lt;0){delete S[E];break}P=t[O]}if(u=$(i,Q)){if(u.attr?c=(l=s(n,u.attr).get())&amp;&amp;tt(u.attr,e):(l=L.uirevision,void 0===(c=P.uirevision)&amp;&amp;(c=e.uirevision)),c&amp;&amp;c===l&amp;&amp;(null===(f=C[i])&amp;&amp;(f=void 0),nt(p=(h=s(P,i)).get(),f))){h.set(R(s(L,i).get()));continue}}else o.warn(&quot;unrecognized GUI edit: &quot;+i+&quot; in trace uid &quot;+E);delete C[i]}}}(t.data,t.layout,c,p),h.supplyDefaults(t,{skipUpdateCalc:!0});var v=t._fullData,y=t._fullLayout,x=void 0===y.datarevision,b=y.transition,k=function(t,e,r,n,i){var a=T.layoutFlags();function o(t){return f.getLayoutValObject(r,t)}a.arrays={},a.rangesAltered={},a.nChanges=0,a.nChangesAnim=0,it(e,r,[],{getValObject:o,flags:a,immutable:n,transition:i,gd:t}),(a.plot||a.calc)&amp;&amp;(a.layoutReplot=!0);i&amp;&amp;a.nChanges&amp;&amp;a.nChangesAnim&amp;&amp;(a.anim=a.nChanges===a.nChangesAnim?&quot;all&quot;:&quot;some&quot;);return a}(t,p,y,x,b),A=k.newDataRevision,S=function(t,e,r,n,i,a){var o=e.length===r.length;if(!i&amp;&amp;!o)return{fullReplot:!0,calc:!0};var s,l,c=T.traceFlags();c.arrays={},c.nChanges=0,c.nChangesAnim=0;var u={getValObject:function(t){var e=f.getTraceValObject(l,t);return!l._module.animatable&amp;&amp;e.anim&amp;&amp;(e.anim=!1),e},flags:c,immutable:n,transition:i,newDataRevision:a,gd:t},p={};for(s=0;s&lt;e.length;s++)if(r[s]){if(l=r[s]._fullInput,h.hasMakesDataTransform(l)&amp;&amp;(l=r[s]),p[l.uid])continue;p[l.uid]=1,it(e[s]._fullInput,l,[],u)}(c.calc||c.plot)&amp;&amp;(c.fullReplot=!0);i&amp;&amp;c.nChanges&amp;&amp;c.nChangesAnim&amp;&amp;(c.anim=c.nChanges===c.nChangesAnim&amp;&amp;o?&quot;all&quot;:&quot;some&quot;);return c}(t,c,v,x,b,A);if(X(t)&amp;&amp;(k.layoutReplot=!0),S.calc||k.calc){t.calcdata=void 0;for(var E=Object.getOwnPropertyNames(y),C=0;C&lt;E.length;C++){var P=E[C],I=P.substring(0,5);if(&quot;xaxis&quot;===I||&quot;yaxis&quot;===I){var O=y[P]._emptyCategories;O&amp;&amp;O()}}}else h.supplyDefaultsUpdateCalc(t.calcdata,v);var z=[];if(a&amp;&amp;(t._transitionData={},h.createTransitionData(t),z.push((function(){return r.addFrames(t,a)}))),y.transition&amp;&amp;!m&amp;&amp;(S.anim||k.anim))k.ticks&amp;&amp;z.push(w.doTicksRelayout),h.doCalcdata(t),w.doAutoRangeAndConstraints(t),z.push((function(){return h.transitionFromReact(t,S,k,p)}));else if(S.fullReplot||k.layoutReplot||m)t._fullLayout._skipDefaults=!0,z.push(r._doPlot);else{for(var D in k.arrays){var F=k.arrays[D];if(F.length){var B=u.getComponentMethod(D,&quot;drawOne&quot;);if(B!==o.noop)for(var N=0;N&lt;F.length;N++)B(t,F[N]);else{var j=u.getComponentMethod(D,&quot;draw&quot;);if(j===o.noop)throw new Error(&quot;cannot draw components: &quot;+D);j(t)}}}z.push(h.previousPromises),S.style&amp;&amp;z.push(w.doTraceStyle),(S.colorbars||k.colorbars)&amp;&amp;z.push(w.doColorBars),k.legend&amp;&amp;z.push(w.doLegend),k.layoutstyle&amp;&amp;z.push(w.layoutStyles),k.axrange&amp;&amp;H(z),k.ticks&amp;&amp;z.push(w.doTicksRelayout),k.modebar&amp;&amp;z.push(w.doModeBar),k.camera&amp;&amp;z.push(w.doCamera),z.push(M)}z.push(h.rehover,h.redrag),(l=o.syncOrAsync(z,t))&amp;&amp;l.then||(l=Promise.resolve(t))}else l=r.newPlot(t,e,n,i);return l.then((function(){return t.emit(&quot;plotly_react&quot;,{data:e,layout:n}),t}))},r.redraw=function(t){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t);return _.cleanData(t.data),_.cleanLayout(t.layout),t.calcdata=void 0,r._doPlot(t).then((function(){return t.emit(&quot;plotly_redraw&quot;),t}))},r.relayout=U,r.restyle=D,r.setPlotConfig=function(t){return o.extendFlat(x,t)},r.update=Z,r._guiRelayout=J(U),r._guiRestyle=J(D),r._guiUpdate=J(Z),r._storeDirectGUIEdit=function(t,e,r){for(var n in r){B(n,s(t,n).get(),r[n],e)}}},{&quot;../components/color&quot;:366,&quot;../components/drawing&quot;:388,&quot;../constants/xmlns_namespaces&quot;:480,&quot;../lib&quot;:503,&quot;../lib/events&quot;:492,&quot;../lib/queue&quot;:519,&quot;../plots/cartesian/axes&quot;:554,&quot;../plots/cartesian/constants&quot;:561,&quot;../plots/cartesian/graph_interact&quot;:564,&quot;../plots/cartesian/select&quot;:575,&quot;../plots/plots&quot;:619,&quot;../registry&quot;:638,&quot;./edit_types&quot;:536,&quot;./helpers&quot;:537,&quot;./manage_arrays&quot;:539,&quot;./plot_config&quot;:541,&quot;./plot_schema&quot;:542,&quot;./subroutines&quot;:544,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:190,&quot;has-hover&quot;:228}],541:[function(t,e,r){&quot;use strict&quot;;var n={staticPlot:{valType:&quot;boolean&quot;,dflt:!1},plotlyServerURL:{valType:&quot;string&quot;,dflt:&quot;&quot;},editable:{valType:&quot;boolean&quot;,dflt:!1},edits:{annotationPosition:{valType:&quot;boolean&quot;,dflt:!1},annotationTail:{valType:&quot;boolean&quot;,dflt:!1},annotationText:{valType:&quot;boolean&quot;,dflt:!1},axisTitleText:{valType:&quot;boolean&quot;,dflt:!1},colorbarPosition:{valType:&quot;boolean&quot;,dflt:!1},colorbarTitleText:{valType:&quot;boolean&quot;,dflt:!1},legendPosition:{valType:&quot;boolean&quot;,dflt:!1},legendText:{valType:&quot;boolean&quot;,dflt:!1},shapePosition:{valType:&quot;boolean&quot;,dflt:!1},titleText:{valType:&quot;boolean&quot;,dflt:!1}},autosizable:{valType:&quot;boolean&quot;,dflt:!1},responsive:{valType:&quot;boolean&quot;,dflt:!1},fillFrame:{valType:&quot;boolean&quot;,dflt:!1},frameMargins:{valType:&quot;number&quot;,dflt:0,min:0,max:.5},scrollZoom:{valType:&quot;flaglist&quot;,flags:[&quot;cartesian&quot;,&quot;gl3d&quot;,&quot;geo&quot;,&quot;mapbox&quot;],extras:[!0,!1],dflt:&quot;gl3d+geo+mapbox&quot;},doubleClick:{valType:&quot;enumerated&quot;,values:[!1,&quot;reset&quot;,&quot;autosize&quot;,&quot;reset+autosize&quot;],dflt:&quot;reset+autosize&quot;},doubleClickDelay:{valType:&quot;number&quot;,dflt:300,min:0},showAxisDragHandles:{valType:&quot;boolean&quot;,dflt:!0},showAxisRangeEntryBoxes:{valType:&quot;boolean&quot;,dflt:!0},showTips:{valType:&quot;boolean&quot;,dflt:!0},showLink:{valType:&quot;boolean&quot;,dflt:!1},linkText:{valType:&quot;string&quot;,dflt:&quot;Edit chart&quot;,noBlank:!0},sendData:{valType:&quot;boolean&quot;,dflt:!0},showSources:{valType:&quot;any&quot;,dflt:!1},displayModeBar:{valType:&quot;enumerated&quot;,values:[&quot;hover&quot;,!0,!1],dflt:&quot;hover&quot;},showSendToCloud:{valType:&quot;boolean&quot;,dflt:!1},showEditInChartStudio:{valType:&quot;boolean&quot;,dflt:!1},modeBarButtonsToRemove:{valType:&quot;any&quot;,dflt:[]},modeBarButtonsToAdd:{valType:&quot;any&quot;,dflt:[]},modeBarButtons:{valType:&quot;any&quot;,dflt:!1},toImageButtonOptions:{valType:&quot;any&quot;,dflt:{}},displaylogo:{valType:&quot;boolean&quot;,dflt:!0},watermark:{valType:&quot;boolean&quot;,dflt:!1},plotGlPixelRatio:{valType:&quot;number&quot;,dflt:2,min:1,max:4},setBackground:{valType:&quot;any&quot;,dflt:&quot;transparent&quot;},topojsonURL:{valType:&quot;string&quot;,noBlank:!0,dflt:&quot;https://cdn.plot.ly/&quot;},mapboxAccessToken:{valType:&quot;string&quot;,dflt:null},logging:{valType:&quot;integer&quot;,min:0,max:2,dflt:1},notifyOnLogging:{valType:&quot;integer&quot;,min:0,max:2,dflt:0},queueLength:{valType:&quot;integer&quot;,min:0,dflt:0},globalTransforms:{valType:&quot;any&quot;,dflt:[]},locale:{valType:&quot;string&quot;,dflt:&quot;en-US&quot;},locales:{valType:&quot;any&quot;,dflt:{}}},i={};!function t(e,r){for(var n in e){var i=e[n];i.valType?r[n]=i.dflt:(r[n]||(r[n]={}),t(i,r[n]))}}(n,i),e.exports={configAttributes:n,dfltConfig:i}},{}],542:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../plots/attributes&quot;),o=t(&quot;../plots/layout_attributes&quot;),s=t(&quot;../plots/frame_attributes&quot;),l=t(&quot;../plots/animation_attributes&quot;),c=t(&quot;./plot_config&quot;).configAttributes,u=t(&quot;./edit_types&quot;),f=i.extendDeepAll,h=i.isPlainObject,p=i.isArrayOrTypedArray,d=i.nestedProperty,m=i.valObjectMeta,g=[&quot;_isSubplotObj&quot;,&quot;_isLinkedToArray&quot;,&quot;_arrayAttrRegexps&quot;,&quot;_deprecated&quot;];function v(t,e,r){if(!t)return!1;if(t._isLinkedToArray)if(y(e[r]))r++;else if(r&lt;e.length)return!1;for(;r&lt;e.length;r++){var n=t[e[r]];if(!h(n))break;if(t=n,r===e.length-1)break;if(t._isLinkedToArray){if(!y(e[++r]))return!1}else if(&quot;info_array&quot;===t.valType){var i=e[++r];if(!y(i))return!1;var a=t.items;if(Array.isArray(a)){if(i&gt;=a.length)return!1;if(2===t.dimensions){if(r++,e.length===r)return t;var o=e[r];if(!y(o))return!1;t=a[i][o]}else t=a[i]}else t=a}}return t}function y(t){return t===Math.round(t)&amp;&amp;t&gt;=0}function x(){var t,e,r={};for(t in f(r,o),n.subplotsRegistry){if((e=n.subplotsRegistry[t]).layoutAttributes)if(Array.isArray(e.attr))for(var i=0;i&lt;e.attr.length;i++)w(r,e,e.attr[i]);else w(r,e,&quot;subplot&quot;===e.attr?e.name:e.attr)}for(t in n.componentsRegistry){var a=(e=n.componentsRegistry[t]).schema;if(a&amp;&amp;(a.subplots||a.layout)){var s=a.subplots;if(s&amp;&amp;s.xaxis&amp;&amp;!s.yaxis)for(var l in s.xaxis)delete r.yaxis[l]}else&quot;colorscale&quot;===e.name?f(r,e.layoutAttributes):e.layoutAttributes&amp;&amp;T(r,e.layoutAttributes,e.name)}return{layoutAttributes:_(r)}}function b(){var t={frames:f({},s)};return _(t),t.frames}function _(t){return function(t){r.crawl(t,(function(t,e,n){r.isValObject(t)?!0!==t.arrayOk&amp;&amp;&quot;data_array&quot;!==t.valType||(n[e+&quot;src&quot;]={valType:&quot;string&quot;,editType:&quot;none&quot;}):h(t)&amp;&amp;(t.role=&quot;object&quot;)}))}(t),function(t){r.crawl(t,(function(t,e,r){if(t){var n=t._isLinkedToArray;n&amp;&amp;(delete t._isLinkedToArray,r[e]={items:{}},r[e].items[n]=t,r[e].role=&quot;object&quot;)}}))}(t),function(t){!function t(e){for(var r in e)if(h(e[r]))t(e[r]);else if(Array.isArray(e[r]))for(var n=0;n&lt;e[r].length;n++)t(e[r][n]);else e[r]instanceof RegExp&amp;&amp;(e[r]=e[r].toString())}(t)}(t),t}function w(t,e,r){var n=d(t,r),i=f({},e.layoutAttributes);i._isSubplotObj=!0,n.set(i)}function T(t,e,r){var n=d(t,r);n.set(f(n.get()||{},e))}r.IS_SUBPLOT_OBJ=&quot;_isSubplotObj&quot;,r.IS_LINKED_TO_ARRAY=&quot;_isLinkedToArray&quot;,r.DEPRECATED=&quot;_deprecated&quot;,r.UNDERSCORE_ATTRS=g,r.get=function(){var t={};n.allTypes.forEach((function(e){t[e]=function(t){var e,i;e=n.modules[t]._module,i=e.basePlotModule;var o={type:null},s=f({},a),l=f({},e.attributes);r.crawl(l,(function(t,e,r,n,i){d(s,i).set(void 0),void 0===t&amp;&amp;d(l,i).set(void 0)})),f(o,s),n.traceIs(t,&quot;noOpacity&quot;)&amp;&amp;delete o.opacity;n.traceIs(t,&quot;showLegend&quot;)||(delete o.showlegend,delete o.legendgroup);n.traceIs(t,&quot;noHover&quot;)&amp;&amp;(delete o.hoverinfo,delete o.hoverlabel);e.selectPoints||delete o.selectedpoints;f(o,l),i.attributes&amp;&amp;f(o,i.attributes);o.type=t;var c={meta:e.meta||{},categories:e.categories||{},animatable:Boolean(e.animatable),type:t,attributes:_(o)};if(e.layoutAttributes){var u={};f(u,e.layoutAttributes),c.layoutAttributes=_(u)}e.animatable||r.crawl(c,(function(t){r.isValObject(t)&amp;&amp;&quot;anim&quot;in t&amp;&amp;delete t.anim}));return c}(e)}));var e={};return Object.keys(n.transformsRegistry).forEach((function(t){e[t]=function(t){var e=n.transformsRegistry[t],r=f({},e.attributes);return Object.keys(n.componentsRegistry).forEach((function(e){var i=n.componentsRegistry[e];i.schema&amp;&amp;i.schema.transforms&amp;&amp;i.schema.transforms[t]&amp;&amp;Object.keys(i.schema.transforms[t]).forEach((function(e){T(r,i.schema.transforms[t][e],e)}))})),{attributes:_(r)}}(t)})),{defs:{valObjects:m,metaKeys:g.concat([&quot;description&quot;,&quot;role&quot;,&quot;editType&quot;,&quot;impliedEdits&quot;]),editType:{traces:u.traces,layout:u.layout},impliedEdits:{}},traces:t,layout:x(),transforms:e,frames:b(),animation:_(l),config:_(c)}},r.crawl=function(t,e,n,i){var a=n||0;i=i||&quot;&quot;,Object.keys(t).forEach((function(n){var o=t[n];if(-1===g.indexOf(n)){var s=(i?i+&quot;.&quot;:&quot;&quot;)+n;e(o,n,t,a,s),r.isValObject(o)||h(o)&amp;&amp;&quot;impliedEdits&quot;!==n&amp;&amp;r.crawl(o,e,a+1,s)}}))},r.isValObject=function(t){return t&amp;&amp;void 0!==t.valType},r.findArrayAttributes=function(t){var e,n,i=[],o=[],s=[];function l(t,r,a,l){o=o.slice(0,l).concat([r]),s=s.slice(0,l).concat([t&amp;&amp;t._isLinkedToArray]),t&amp;&amp;(&quot;data_array&quot;===t.valType||!0===t.arrayOk)&amp;&amp;!(&quot;colorbar&quot;===o[l-1]&amp;&amp;(&quot;ticktext&quot;===r||&quot;tickvals&quot;===r))&amp;&amp;function t(e,r,a){var l=e[o[r]],c=a+o[r];if(r===o.length-1)p(l)&amp;&amp;i.push(n+c);else if(s[r]){if(Array.isArray(l))for(var u=0;u&lt;l.length;u++)h(l[u])&amp;&amp;t(l[u],r+1,c+&quot;[&quot;+u+&quot;].&quot;)}else h(l)&amp;&amp;t(l,r+1,c+&quot;.&quot;)}(e,0,&quot;&quot;)}e=t,n=&quot;&quot;,r.crawl(a,l),t._module&amp;&amp;t._module.attributes&amp;&amp;r.crawl(t._module.attributes,l);var c=t.transforms;if(c)for(var u=0;u&lt;c.length;u++){var f=c[u],d=f._module;d&amp;&amp;(n=&quot;transforms[&quot;+u+&quot;].&quot;,e=f,r.crawl(d.attributes,l))}return i},r.getTraceValObject=function(t,e){var r,i,o=e[0],s=1;if(&quot;transforms&quot;===o){if(1===e.length)return a.transforms;var l=t.transforms;if(!Array.isArray(l)||!l.length)return!1;var c=e[1];if(!y(c)||c&gt;=l.length)return!1;i=(r=(n.transformsRegistry[l[c].type]||{}).attributes)&amp;&amp;r[e[2]],s=3}else{var u=t._module;if(u||(u=(n.modules[t.type||a.type.dflt]||{})._module),!u)return!1;if(!(i=(r=u.attributes)&amp;&amp;r[o])){var f=u.basePlotModule;f&amp;&amp;f.attributes&amp;&amp;(i=f.attributes[o])}i||(i=a[o])}return v(i,e,s)},r.getLayoutValObject=function(t,e){return v(function(t,e){var r,i,a,s,l=t._basePlotModules;if(l){var c;for(r=0;r&lt;l.length;r++){if((a=l[r]).attrRegex&amp;&amp;a.attrRegex.test(e)){if(a.layoutAttrOverrides)return a.layoutAttrOverrides;!c&amp;&amp;a.layoutAttributes&amp;&amp;(c=a.layoutAttributes)}var u=a.baseLayoutAttrOverrides;if(u&amp;&amp;e in u)return u[e]}if(c)return c}var f=t._modules;if(f)for(r=0;r&lt;f.length;r++)if((s=f[r].layoutAttributes)&amp;&amp;e in s)return s[e];for(i in n.componentsRegistry){if(&quot;colorscale&quot;===(a=n.componentsRegistry[i]).name&amp;&amp;0===e.indexOf(&quot;coloraxis&quot;))return a.layoutAttributes[e];if(!a.schema&amp;&amp;e===a.name)return a.layoutAttributes}return e in o&amp;&amp;o[e]}(t,e[0]),e,1)}},{&quot;../lib&quot;:503,&quot;../plots/animation_attributes&quot;:548,&quot;../plots/attributes&quot;:550,&quot;../plots/frame_attributes&quot;:586,&quot;../plots/layout_attributes&quot;:610,&quot;../registry&quot;:638,&quot;./edit_types&quot;:536,&quot;./plot_config&quot;:541}],543:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/attributes&quot;),a={name:{valType:&quot;string&quot;,editType:&quot;none&quot;}};function o(t){return t&amp;&amp;&quot;string&quot;==typeof t}function s(t){var e=t.length-1;return&quot;s&quot;!==t.charAt(e)&amp;&amp;n.warn(&quot;bad argument to arrayDefaultKey: &quot;+t),t.substr(0,t.length-1)+&quot;defaults&quot;}a.templateitemname={valType:&quot;string&quot;,editType:&quot;calc&quot;},r.templatedArray=function(t,e){return e._isLinkedToArray=t,e.name=a.name,e.templateitemname=a.templateitemname,e},r.traceTemplater=function(t){var e,r,a={};for(e in t)r=t[e],Array.isArray(r)&amp;&amp;r.length&amp;&amp;(a[e]=0);return{newTrace:function(o){var s={type:e=n.coerce(o,{},i,&quot;type&quot;),_template:null};if(e in a){r=t[e];var l=a[e]%r.length;a[e]++,s._template=r[l]}return s}}},r.newContainer=function(t,e,r){var i=t._template,a=i&amp;&amp;(i[e]||r&amp;&amp;i[r]);return n.isPlainObject(a)||(a=null),t[e]={_template:a}},r.arrayTemplater=function(t,e,r){var n=t._template,i=n&amp;&amp;n[s(e)],a=n&amp;&amp;n[e];Array.isArray(a)&amp;&amp;a.length||(a=[]);var l={};return{newItem:function(t){var e={name:t.name,_input:t},n=e.templateitemname=t.templateitemname;if(!o(n))return e._template=i,e;for(var s=0;s&lt;a.length;s++){var c=a[s];if(c.name===n)return l[n]=1,e._template=c,e}return e[r]=t[r]||!1,e._template=!1,e},defaultItems:function(){for(var t=[],e=0;e&lt;a.length;e++){var r=a[e],n=r.name;if(o(n)&amp;&amp;!l[n]){var i={_template:r,name:n,_input:{_templateitemname:n}};i.templateitemname=r.templateitemname,t.push(i),l[n]=1}}return t}}},r.arrayDefaultKey=s,r.arrayEditor=function(t,e,r){var i=(n.nestedProperty(t,e).get()||[]).length,a=r._index,o=a&gt;=i&amp;&amp;(r._input||{})._templateitemname;o&amp;&amp;(a=i);var s,l=e+&quot;[&quot;+a+&quot;]&quot;;function c(){s={},o&amp;&amp;(s[l]={},s[l].templateitemname=o)}function u(t,e){o?n.nestedProperty(s[l],t).set(e):s[l+&quot;.&quot;+t]=e}function f(){var t=s;return c(),t}return c(),{modifyBase:function(t,e){s[t]=e},modifyItem:u,getUpdateObj:f,applyUpdate:function(e,r){e&amp;&amp;u(e,r);var i=f();for(var a in i)n.nestedProperty(t,a).set(i[a])}}}},{&quot;../lib&quot;:503,&quot;../plots/attributes&quot;:550}],544:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../registry&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../lib/clear_gl_canvases&quot;),l=t(&quot;../components/color&quot;),c=t(&quot;../components/drawing&quot;),u=t(&quot;../components/titles&quot;),f=t(&quot;../components/modebar&quot;),h=t(&quot;../plots/cartesian/axes&quot;),p=t(&quot;../constants/alignment&quot;),d=t(&quot;../plots/cartesian/constraints&quot;),m=d.enforce,g=d.clean,v=t(&quot;../plots/cartesian/autorange&quot;).doAutoRange;function y(t,e,r){for(var n=0;n&lt;r.length;n++){var i=r[n][0],a=r[n][1];if(!(i[0]&gt;=t[1]||i[1]&lt;=t[0])&amp;&amp;(a[0]&lt;e[1]&amp;&amp;a[1]&gt;e[0]))return!0}return!1}function x(t){var e,i,s,u,d,m,g=t._fullLayout,v=g._size,x=v.p,_=h.list(t,&quot;&quot;,!0);if(g._paperdiv.style({width:t._context.responsive&amp;&amp;g.autosize&amp;&amp;!t._context._hasZeroWidth&amp;&amp;!t.layout.width?&quot;100%&quot;:g.width+&quot;px&quot;,height:t._context.responsive&amp;&amp;g.autosize&amp;&amp;!t._context._hasZeroHeight&amp;&amp;!t.layout.height?&quot;100%&quot;:g.height+&quot;px&quot;}).selectAll(&quot;.main-svg&quot;).call(c.setSize,g.width,g.height),t._context.setBackground(t,g.paper_bgcolor),r.drawMainTitle(t),f.manage(t),!g._has(&quot;cartesian&quot;))return a.previousPromises(t);function T(t,e,r){var n=t._lw/2;return&quot;x&quot;===t._id.charAt(0)?e?&quot;top&quot;===r?e._offset-x-n:e._offset+e._length+x+n:v.t+v.h*(1-(t.position||0))+n%1:e?&quot;right&quot;===r?e._offset+e._length+x+n:e._offset-x-n:v.l+v.w*(t.position||0)+n%1}for(e=0;e&lt;_.length;e++){var k=(u=_[e])._anchorAxis;u._linepositions={},u._lw=c.crispRound(t,u.linewidth,1),u._mainLinePosition=T(u,k,u.side),u._mainMirrorPosition=u.mirror&amp;&amp;k?T(u,k,p.OPPOSITE_SIDE[u.side]):null}var A=[],M=[],S=[],E=1===l.opacity(g.paper_bgcolor)&amp;&amp;1===l.opacity(g.plot_bgcolor)&amp;&amp;g.paper_bgcolor===g.plot_bgcolor;for(i in g._plots)if((s=g._plots[i]).mainplot)s.bg&amp;&amp;s.bg.remove(),s.bg=void 0;else{var L=s.xaxis.domain,C=s.yaxis.domain,P=s.plotgroup;if(y(L,C,S)){var I=P.node(),O=s.bg=o.ensureSingle(P,&quot;rect&quot;,&quot;bg&quot;);I.insertBefore(O.node(),I.childNodes[0]),M.push(i)}else P.select(&quot;rect.bg&quot;).remove(),S.push([L,C]),E||(A.push(i),M.push(i))}var z,D,R,F,B,N,j,U,V,H,q,G,Y,W=g._bgLayer.selectAll(&quot;.bg&quot;).data(A);for(W.enter().append(&quot;rect&quot;).classed(&quot;bg&quot;,!0),W.exit().remove(),W.each((function(t){g._plots[t].bg=n.select(this)})),e=0;e&lt;M.length;e++)s=g._plots[M[e]],d=s.xaxis,m=s.yaxis,s.bg&amp;&amp;void 0!==d._offset&amp;&amp;void 0!==m._offset&amp;&amp;s.bg.call(c.setRect,d._offset-x,m._offset-x,d._length+2*x,m._length+2*x).call(l.fill,g.plot_bgcolor).style(&quot;stroke-width&quot;,0);if(!g._hasOnlyLargeSploms)for(i in g._plots){s=g._plots[i],d=s.xaxis,m=s.yaxis;var X,Z,J=s.clipId=&quot;clip&quot;+g._uid+i+&quot;plot&quot;,K=o.ensureSingleById(g._clips,&quot;clipPath&quot;,J,(function(t){t.classed(&quot;plotclip&quot;,!0).append(&quot;rect&quot;)}));s.clipRect=K.select(&quot;rect&quot;).attr({width:d._length,height:m._length}),c.setTranslate(s.plot,d._offset,m._offset),s._hasClipOnAxisFalse?(X=null,Z=J):(X=J,Z=null),c.setClipUrl(s.plot,X,t),s.layerClipId=Z}function Q(t){return&quot;M&quot;+z+&quot;,&quot;+t+&quot;H&quot;+D}function $(t){return&quot;M&quot;+d._offset+&quot;,&quot;+t+&quot;h&quot;+d._length}function tt(t){return&quot;M&quot;+t+&quot;,&quot;+U+&quot;V&quot;+j}function et(t){return&quot;M&quot;+t+&quot;,&quot;+m._offset+&quot;v&quot;+m._length}function rt(t,e,r){if(!t.showline||i!==t._mainSubplot)return&quot;&quot;;if(!t._anchorAxis)return r(t._mainLinePosition);var n=e(t._mainLinePosition);return t.mirror&amp;&amp;(n+=e(t._mainMirrorPosition)),n}for(i in g._plots){s=g._plots[i],d=s.xaxis,m=s.yaxis;var nt=&quot;M0,0&quot;;b(d,i)&amp;&amp;(B=w(d,&quot;left&quot;,m,_),z=d._offset-(B?x+B:0),N=w(d,&quot;right&quot;,m,_),D=d._offset+d._length+(N?x+N:0),R=T(d,m,&quot;bottom&quot;),F=T(d,m,&quot;top&quot;),!(Y=!d._anchorAxis||i!==d._mainSubplot)||&quot;allticks&quot;!==d.mirror&amp;&amp;&quot;all&quot;!==d.mirror||(d._linepositions[i]=[R,F]),nt=rt(d,Q,$),Y&amp;&amp;d.showline&amp;&amp;(&quot;all&quot;===d.mirror||&quot;allticks&quot;===d.mirror)&amp;&amp;(nt+=Q(R)+Q(F)),s.xlines.style(&quot;stroke-width&quot;,d._lw+&quot;px&quot;).call(l.stroke,d.showline?d.linecolor:&quot;rgba(0,0,0,0)&quot;)),s.xlines.attr(&quot;d&quot;,nt);var it=&quot;M0,0&quot;;b(m,i)&amp;&amp;(q=w(m,&quot;bottom&quot;,d,_),j=m._offset+m._length+(q?x:0),G=w(m,&quot;top&quot;,d,_),U=m._offset-(G?x:0),V=T(m,d,&quot;left&quot;),H=T(m,d,&quot;right&quot;),!(Y=!m._anchorAxis||i!==m._mainSubplot)||&quot;allticks&quot;!==m.mirror&amp;&amp;&quot;all&quot;!==m.mirror||(m._linepositions[i]=[V,H]),it=rt(m,tt,et),Y&amp;&amp;m.showline&amp;&amp;(&quot;all&quot;===m.mirror||&quot;allticks&quot;===m.mirror)&amp;&amp;(it+=tt(V)+tt(H)),s.ylines.style(&quot;stroke-width&quot;,m._lw+&quot;px&quot;).call(l.stroke,m.showline?m.linecolor:&quot;rgba(0,0,0,0)&quot;)),s.ylines.attr(&quot;d&quot;,it)}return h.makeClipPaths(t),a.previousPromises(t)}function b(t,e){return(t.ticks||t.showline)&amp;&amp;(e===t._mainSubplot||&quot;all&quot;===t.mirror||&quot;allticks&quot;===t.mirror)}function _(t,e,r){if(!r.showline||!r._lw)return!1;if(&quot;all&quot;===r.mirror||&quot;allticks&quot;===r.mirror)return!0;var n=r._anchorAxis;if(!n)return!1;var i=p.FROM_BL[e];return r.side===e?n.domain[i]===t.domain[i]:r.mirror&amp;&amp;n.domain[1-i]===t.domain[1-i]}function w(t,e,r,n){if(_(t,e,r))return r._lw;for(var i=0;i&lt;n.length;i++){var a=n[i];if(a._mainAxis===r._mainAxis&amp;&amp;_(t,e,a))return a._lw}return 0}function T(t,e){var r=t.title,n=t._size,i=0;switch(&quot;start&quot;===e?i=r.pad.l:&quot;end&quot;===e&amp;&amp;(i=-r.pad.r),r.xref){case&quot;paper&quot;:return n.l+n.w*r.x+i;case&quot;container&quot;:default:return t.width*r.x+i}}function k(t,e){var r=t.title,n=t._size,i=0;if(&quot;0em&quot;!==e&amp;&amp;e?e===p.CAP_SHIFT+&quot;em&quot;&amp;&amp;(i=r.pad.t):i=-r.pad.b,&quot;auto&quot;===r.y)return n.t/2;switch(r.yref){case&quot;paper&quot;:return n.t+n.h-n.h*r.y+i;case&quot;container&quot;:default:return t.height-t.height*r.y+i}}r.layoutStyles=function(t){return o.syncOrAsync([a.doAutoMargin,x],t)},r.drawMainTitle=function(t){var e=t._fullLayout,r=function(t){var e=t.title,r=&quot;middle&quot;;o.isRightAnchor(e)?r=&quot;end&quot;:o.isLeftAnchor(e)&amp;&amp;(r=&quot;start&quot;);return r}(e),n=function(t){var e=t.title,r=&quot;0em&quot;;o.isTopAnchor(e)?r=p.CAP_SHIFT+&quot;em&quot;:o.isMiddleAnchor(e)&amp;&amp;(r=p.MID_SHIFT+&quot;em&quot;);return r}(e);u.draw(t,&quot;gtitle&quot;,{propContainer:e,propName:&quot;title.text&quot;,placeholder:e._dfltTitle.plot,attributes:{x:T(e,r),y:k(e,n),&quot;text-anchor&quot;:r,dy:n}})},r.doTraceStyle=function(t){var e,n=t.calcdata,o=[];for(e=0;e&lt;n.length;e++){var l=n[e],c=l[0]||{},u=c.trace||{},f=u._module||{},h=f.arraysToCalcdata;h&amp;&amp;h(l,u);var p=f.editStyle;p&amp;&amp;o.push({fn:p,cd0:c})}if(o.length){for(e=0;e&lt;o.length;e++){var d=o[e];d.fn(t,d.cd0)}s(t),r.redrawReglTraces(t)}return a.style(t),i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.doColorBars=function(t){return i.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.layoutReplot=function(t){var e=t.layout;return t.layout=void 0,i.call(&quot;_doPlot&quot;,t,&quot;&quot;,e)},r.doLegend=function(t){return i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.doTicksRelayout=function(t){return h.draw(t,&quot;redraw&quot;),t._fullLayout._hasOnlyLargeSploms&amp;&amp;(i.subplotsRegistry.splom.updateGrid(t),s(t),r.redrawReglTraces(t)),r.drawMainTitle(t),a.previousPromises(t)},r.doModeBar=function(t){var e=t._fullLayout;f.manage(t);for(var r=0;r&lt;e._basePlotModules.length;r++){var n=e._basePlotModules[r].updateFx;n&amp;&amp;n(t)}return a.previousPromises(t)},r.doCamera=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n&lt;r.length;n++){var i=e[r[n]];i._scene.setViewport(i)}},r.drawData=function(t){var e=t._fullLayout;s(t);for(var n=e._basePlotModules,o=0;o&lt;n.length;o++)n[o].plot(t);return r.redrawReglTraces(t),a.style(t),i.getComponentMethod(&quot;shapes&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;annotations&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;images&quot;,&quot;draw&quot;)(t),e._replotting=!1,a.previousPromises(t)},r.redrawReglTraces=function(t){var e=t._fullLayout;if(e._has(&quot;regl&quot;)){var r,n,i=t._fullData,a=[],s=[];for(e._hasOnlyLargeSploms&amp;&amp;e._splomGrid.draw(),r=0;r&lt;i.length;r++){var l=i[r];!0===l.visible&amp;&amp;0!==l._length&amp;&amp;(&quot;splom&quot;===l.type?e._splomScenes[l.uid].draw():&quot;scattergl&quot;===l.type?o.pushUnique(a,l.xaxis+l.yaxis):&quot;scatterpolargl&quot;===l.type&amp;&amp;o.pushUnique(s,l.subplot))}for(r=0;r&lt;a.length;r++)(n=e._plots[a[r]])._scene&amp;&amp;n._scene.draw();for(r=0;r&lt;s.length;r++)(n=e[s[r]]._subplot)._scene&amp;&amp;n._scene.draw()}},r.doAutoRangeAndConstraints=function(t){for(var e,r=h.list(t,&quot;&quot;,!0),n={},i=0;i&lt;r.length;i++)if(!n[(e=r[i])._id]){n[e._id]=1,g(t,e),v(t,e);var a=e._matchGroup;if(a)for(var o in a){var s=h.getFromId(t,o);v(t,s,e.range),n[o]=1}}m(t)},r.finalDraw=function(t){i.getComponentMethod(&quot;rangeslider&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;rangeselector&quot;,&quot;draw&quot;)(t)},r.drawMarginPushers=function(t){i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;rangeselector&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;sliders&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;updatemenus&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t)}},{&quot;../components/color&quot;:366,&quot;../components/drawing&quot;:388,&quot;../components/modebar&quot;:429,&quot;../components/titles&quot;:464,&quot;../constants/alignment&quot;:471,&quot;../lib&quot;:503,&quot;../lib/clear_gl_canvases&quot;:487,&quot;../plots/cartesian/autorange&quot;:553,&quot;../plots/cartesian/axes&quot;:554,&quot;../plots/cartesian/constraints&quot;:562,&quot;../plots/plots&quot;:619,&quot;../registry&quot;:638,&quot;@plotly/d3&quot;:58}],545:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=n.isPlainObject,a=t(&quot;./plot_schema&quot;),o=t(&quot;../plots/plots&quot;),s=t(&quot;../plots/attributes&quot;),l=t(&quot;./plot_template&quot;),c=t(&quot;./plot_config&quot;).dfltConfig;function u(t,e){t=n.extendDeep({},t);var r,a,o=Object.keys(t).sort();function s(e,r,n){if(i(r)&amp;&amp;i(e))u(e,r);else if(Array.isArray(r)&amp;&amp;Array.isArray(e)){var o=l.arrayTemplater({_template:t},n);for(a=0;a&lt;r.length;a++){var s=r[a],c=o.newItem(s)._template;c&amp;&amp;u(c,s)}var f=o.defaultItems();for(a=0;a&lt;f.length;a++)r.push(f[a]._template);for(a=0;a&lt;r.length;a++)delete r[a].templateitemname}}for(r=0;r&lt;o.length;r++){var c=o[r],h=t[c];if(c in e?s(h,e[c],c):e[c]=h,f(c)===c)for(var p in e){var d=f(p);p===d||d!==c||p in t||s(h,e[p],c)}}}function f(t){return t.replace(/[0-9]+$/,&quot;&quot;)}function h(t,e,r,a,o){var s=o&amp;&amp;r(o);for(var c in t){var u=t[c],p=m(t,c,a),d=m(t,c,o),g=r(d);if(!g){var v=f(c);v!==c&amp;&amp;(g=r(d=m(t,v,o)))}if((!s||s!==g)&amp;&amp;!(!g||g._noTemplating||&quot;data_array&quot;===g.valType||g.arrayOk&amp;&amp;Array.isArray(u)))if(!g.valType&amp;&amp;i(u))h(u,e,r,p,d);else if(g._isLinkedToArray&amp;&amp;Array.isArray(u))for(var y=!1,x=0,b={},_=0;_&lt;u.length;_++){var w=u[_];if(i(w)){var T=w.name;if(T)b[T]||(h(w,e,r,m(u,x,p),m(u,x,d)),x++,b[T]=1);else if(!y){var k=m(t,l.arrayDefaultKey(c),a),A=m(u,x,p);h(w,e,r,A,m(u,x,d));var M=n.nestedProperty(e,A);n.nestedProperty(e,k).set(M.get()),M.set(null),y=!0}}}else{n.nestedProperty(e,p).set(u)}}}function p(t,e){return a.getLayoutValObject(t,n.nestedProperty({},e).parts)}function d(t,e){return a.getTraceValObject(t,n.nestedProperty({},e).parts)}function m(t,e,r){return r?Array.isArray(t)?r+&quot;[&quot;+e+&quot;]&quot;:r+&quot;.&quot;+e:e}function g(t){for(var e=0;e&lt;t.length;e++)if(i(t[e]))return!0}function v(t){var e;switch(t.code){case&quot;data&quot;:e=&quot;The template has no key data.&quot;;break;case&quot;layout&quot;:e=&quot;The template has no key layout.&quot;;break;case&quot;missing&quot;:e=t.path?&quot;There are no templates for item &quot;+t.path+&quot; with name &quot;+t.templateitemname:&quot;There are no templates for trace &quot;+t.index+&quot;, of type &quot;+t.traceType+&quot;.&quot;;break;case&quot;unused&quot;:e=t.path?&quot;The template item at &quot;+t.path+&quot; was not used in constructing the plot.&quot;:t.dataCount?&quot;Some of the templates of type &quot;+t.traceType+&quot; were not used. The template has &quot;+t.templateCount+&quot; traces, the data only has &quot;+t.dataCount+&quot; of this type.&quot;:&quot;The template has &quot;+t.templateCount+&quot; traces of type &quot;+t.traceType+&quot; but there are none in the data.&quot;;break;case&quot;reused&quot;:e=&quot;Some of the templates of type &quot;+t.traceType+&quot; were used more than once. The template has &quot;+t.templateCount+&quot; traces, the data has &quot;+t.dataCount+&quot; of this type.&quot;}return t.msg=e,t}r.makeTemplate=function(t){t=n.isPlainObject(t)?t:n.getGraphDiv(t),t=n.extendDeep({_context:c},{data:t.data,layout:t.layout}),o.supplyDefaults(t);var e=t.data||[],r=t.layout||{};r._basePlotModules=t._fullLayout._basePlotModules,r._modules=t._fullLayout._modules;var a={data:{},layout:{}};e.forEach((function(t){var e={};h(t,e,d.bind(null,t));var r=n.coerce(t,{},s,&quot;type&quot;),i=a.data[r];i||(i=a.data[r]=[]),i.push(e)})),h(r,a.layout,p.bind(null,r)),delete a.layout.template;var l=r.template;if(i(l)){var f,m,g,v,y,x,b=l.layout;i(b)&amp;&amp;u(b,a.layout);var _=l.data;if(i(_)){for(m in a.data)if(g=_[m],Array.isArray(g)){for(x=(y=a.data[m]).length,v=g.length,f=0;f&lt;x;f++)u(g[f%v],y[f]);for(f=x;f&lt;v;f++)y.push(n.extendDeep({},g[f]))}for(m in _)m in a.data||(a.data[m]=n.extendDeep([],_[m]))}}return a},r.validateTemplate=function(t,e){var r=n.extendDeep({},{_context:c,data:t.data,layout:t.layout}),a=r.layout||{};i(e)||(e=a.template||{});var s=e.layout,l=e.data,u=[];r.layout=a,r.layout.template=e,o.supplyDefaults(r);var h=r._fullLayout,p=r._fullData,d={};if(i(s)?(!function t(e,r){for(var n in e)if(&quot;_&quot;!==n.charAt(0)&amp;&amp;i(e[n])){var a,o=f(n),s=[];for(a=0;a&lt;r.length;a++)s.push(m(e,n,r[a])),o!==n&amp;&amp;s.push(m(e,o,r[a]));for(a=0;a&lt;s.length;a++)d[s[a]]=1;t(e[n],s)}}(h,[&quot;layout&quot;]),function t(e,r){for(var n in e)if(-1===n.indexOf(&quot;defaults&quot;)&amp;&amp;i(e[n])){var a=m(e,n,r);d[a]?t(e[n],a):u.push({code:&quot;unused&quot;,path:a})}}(s,&quot;layout&quot;)):u.push({code:&quot;layout&quot;}),i(l)){for(var y,x={},b=0;b&lt;p.length;b++){var _=p[b];x[y=_.type]=(x[y]||0)+1,_._fullInput._template||u.push({code:&quot;missing&quot;,index:_._fullInput.index,traceType:y})}for(y in l){var w=l[y].length,T=x[y]||0;w&gt;T?u.push({code:&quot;unused&quot;,traceType:y,templateCount:w,dataCount:T}):T&gt;w&amp;&amp;u.push({code:&quot;reused&quot;,traceType:y,templateCount:w,dataCount:T})}}else u.push({code:&quot;data&quot;});if(function t(e,r){for(var n in e)if(&quot;_&quot;!==n.charAt(0)){var a=e[n],o=m(e,n,r);i(a)?(Array.isArray(e)&amp;&amp;!1===a._template&amp;&amp;a.templateitemname&amp;&amp;u.push({code:&quot;missing&quot;,path:o,templateitemname:a.templateitemname}),t(a,o)):Array.isArray(a)&amp;&amp;g(a)&amp;&amp;t(a,o)}}({data:p,layout:h},&quot;&quot;),u.length)return u.map(v)}},{&quot;../lib&quot;:503,&quot;../plots/attributes&quot;:550,&quot;../plots/plots&quot;:619,&quot;./plot_config&quot;:541,&quot;./plot_schema&quot;:542,&quot;./plot_template&quot;:543}],546:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./plot_api&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../snapshot/helpers&quot;),l=t(&quot;../snapshot/tosvg&quot;),c=t(&quot;../snapshot/svgtoimg&quot;),u=t(&quot;../version&quot;).version,f={format:{valType:&quot;enumerated&quot;,values:[&quot;png&quot;,&quot;jpeg&quot;,&quot;webp&quot;,&quot;svg&quot;,&quot;full-json&quot;],dflt:&quot;png&quot;},width:{valType:&quot;number&quot;,min:1},height:{valType:&quot;number&quot;,min:1},scale:{valType:&quot;number&quot;,min:0,dflt:1},setBackground:{valType:&quot;any&quot;,dflt:!1},imageDataOnly:{valType:&quot;boolean&quot;,dflt:!1}};e.exports=function(t,e){var r,h,p,d;function m(t){return!(t in e)||o.validate(e[t],f[t])}if(e=e||{},o.isPlainObject(t)?(r=t.data||[],h=t.layout||{},p=t.config||{},d={}):(t=o.getGraphDiv(t),r=o.extendDeep([],t.data),h=o.extendDeep({},t.layout),p=t._context,d=t._fullLayout||{}),!m(&quot;width&quot;)&amp;&amp;null!==e.width||!m(&quot;height&quot;)&amp;&amp;null!==e.height)throw new Error(&quot;Height and width should be pixel values.&quot;);if(!m(&quot;format&quot;))throw new Error(&quot;Export format is not &quot;+o.join2(f.format.values,&quot;, &quot;,&quot; or &quot;)+&quot;.&quot;);var g={};function v(t,r){return o.coerce(e,g,f,t,r)}var y=v(&quot;format&quot;),x=v(&quot;width&quot;),b=v(&quot;height&quot;),_=v(&quot;scale&quot;),w=v(&quot;setBackground&quot;),T=v(&quot;imageDataOnly&quot;),k=document.createElement(&quot;div&quot;);k.style.position=&quot;absolute&quot;,k.style.left=&quot;-5000px&quot;,document.body.appendChild(k);var A=o.extendFlat({},h);x?A.width=x:null===e.width&amp;&amp;n(d.width)&amp;&amp;(A.width=d.width),b?A.height=b:null===e.height&amp;&amp;n(d.height)&amp;&amp;(A.height=d.height);var M=o.extendFlat({},p,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),S=s.getRedrawFunc(k);function E(){return new Promise((function(t){setTimeout(t,s.getDelay(k._fullLayout))}))}function L(){return new Promise((function(t,e){var r=l(k,y,_),n=k._fullLayout.width,f=k._fullLayout.height;function h(){i.purge(k),document.body.removeChild(k)}if(&quot;full-json&quot;===y){var p=a.graphJson(k,!1,&quot;keepdata&quot;,&quot;object&quot;,!0,!0);return p.version=u,p=JSON.stringify(p),h(),t(T?p:s.encodeJSON(p))}if(h(),&quot;svg&quot;===y)return t(T?r:s.encodeSVG(r));var d=document.createElement(&quot;canvas&quot;);d.id=o.randstr(),c({format:y,width:n,height:f,scale:_,canvas:d,svg:r,promise:!0}).then(t).catch(e)}))}return new Promise((function(t,e){i.newPlot(k,r,A,M).then(S).then(E).then(L).then((function(e){t(function(t){return T?t.replace(s.IMAGE_URL_PREFIX,&quot;&quot;):t}(e))})).catch((function(t){e(t)}))}))}},{&quot;../lib&quot;:503,&quot;../plots/plots&quot;:619,&quot;../snapshot/helpers&quot;:642,&quot;../snapshot/svgtoimg&quot;:644,&quot;../snapshot/tosvg&quot;:646,&quot;../version&quot;:1119,&quot;./plot_api&quot;:540,&quot;fast-isnumeric&quot;:190}],547:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/plots&quot;),a=t(&quot;./plot_schema&quot;),o=t(&quot;./plot_config&quot;).dfltConfig,s=n.isPlainObject,l=Array.isArray,c=n.isArrayOrTypedArray;function u(t,e,r,i,a,o){o=o||[];for(var f=Object.keys(t),h=0;h&lt;f.length;h++){var p=f[h];if(&quot;transforms&quot;!==p){var v=o.slice();v.push(p);var y=t[p],x=e[p],b=g(r,p),_=(b||{}).valType,w=&quot;info_array&quot;===_,T=&quot;colorscale&quot;===_,k=(b||{}).items;if(m(r,p))if(s(y)&amp;&amp;s(x)&amp;&amp;&quot;any&quot;!==_)u(y,x,b,i,a,v);else if(w&amp;&amp;l(y)){y.length&gt;x.length&amp;&amp;i.push(d(&quot;unused&quot;,a,v.concat(x.length)));var A,M,S,E,L,C=x.length,P=Array.isArray(k);if(P&amp;&amp;(C=Math.min(C,k.length)),2===b.dimensions)for(M=0;M&lt;C;M++)if(l(y[M])){y[M].length&gt;x[M].length&amp;&amp;i.push(d(&quot;unused&quot;,a,v.concat(M,x[M].length)));var I=x[M].length;for(A=0;A&lt;(P?Math.min(I,k[M].length):I);A++)S=P?k[M][A]:k,E=y[M][A],L=x[M][A],n.validate(E,S)?L!==E&amp;&amp;L!==+E&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v.concat(M,A),E,L)):i.push(d(&quot;value&quot;,a,v.concat(M,A),E))}else i.push(d(&quot;array&quot;,a,v.concat(M),y[M]));else for(M=0;M&lt;C;M++)S=P?k[M]:k,E=y[M],L=x[M],n.validate(E,S)?L!==E&amp;&amp;L!==+E&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v.concat(M),E,L)):i.push(d(&quot;value&quot;,a,v.concat(M),E))}else if(b.items&amp;&amp;!w&amp;&amp;l(y)){var O,z,D=k[Object.keys(k)[0]],R=[];for(O=0;O&lt;x.length;O++){var F=x[O]._index||O;if((z=v.slice()).push(F),s(y[F])&amp;&amp;s(x[O])){R.push(F);var B=y[F],N=x[O];s(B)&amp;&amp;!1!==B.visible&amp;&amp;!1===N.visible?i.push(d(&quot;invisible&quot;,a,z)):u(B,N,D,i,a,z)}}for(O=0;O&lt;y.length;O++)(z=v.slice()).push(O),s(y[O])?-1===R.indexOf(O)&amp;&amp;i.push(d(&quot;unused&quot;,a,z)):i.push(d(&quot;object&quot;,a,z,y[O]))}else!s(y)&amp;&amp;s(x)?i.push(d(&quot;object&quot;,a,v,y)):c(y)||!c(x)||w||T?p in e?n.validate(y,b)?&quot;enumerated&quot;===b.valType&amp;&amp;(b.coerceNumber&amp;&amp;y!==+x||y!==x)&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v,y,x)):i.push(d(&quot;value&quot;,a,v,y)):i.push(d(&quot;unused&quot;,a,v,y)):i.push(d(&quot;array&quot;,a,v,y));else i.push(d(&quot;schema&quot;,a,v))}}return i}function f(t,e){for(var r=t.layout.layoutAttributes,i=0;i&lt;e.length;i++){var a=e[i],o=t.traces[a.type],s=o.layoutAttributes;s&amp;&amp;(a.subplot?n.extendFlat(r[o.attributes.subplot.dflt],s):n.extendFlat(r,s))}return r}e.exports=function(t,e){void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e={});var r,c,h=a.get(),p=[],m={_context:n.extendFlat({},o)};l(t)?(m.data=n.extendDeep([],t),r=t):(m.data=[],r=[],p.push(d(&quot;array&quot;,&quot;data&quot;))),s(e)?(m.layout=n.extendDeep({},e),c=e):(m.layout={},c={},arguments.length&gt;1&amp;&amp;p.push(d(&quot;object&quot;,&quot;layout&quot;))),i.supplyDefaults(m);for(var g=m._fullData,v=r.length,y=0;y&lt;v;y++){var x=r[y],b=[&quot;data&quot;,y];if(s(x)){var _=g[y],w=_.type,T=h.traces[w].attributes;T.type={valType:&quot;enumerated&quot;,values:[w]},!1===_.visible&amp;&amp;!1!==x.visible&amp;&amp;p.push(d(&quot;invisible&quot;,b)),u(x,_,T,p,b);var k=x.transforms,A=_.transforms;if(k){l(k)||p.push(d(&quot;array&quot;,b,[&quot;transforms&quot;])),b.push(&quot;transforms&quot;);for(var M=0;M&lt;k.length;M++){var S=[&quot;transforms&quot;,M],E=k[M].type;if(s(k[M])){var L=h.transforms[E]?h.transforms[E].attributes:{};L.type={valType:&quot;enumerated&quot;,values:Object.keys(h.transforms)},u(k[M],A[M],L,p,b,S)}else p.push(d(&quot;object&quot;,b,S))}}}else p.push(d(&quot;object&quot;,b))}var C=m._fullLayout,P=f(h,g);return u(c,C,P,p,&quot;layout&quot;),0===p.length?void 0:p};var h={object:function(t,e){return(&quot;layout&quot;===t&amp;&amp;&quot;&quot;===e?&quot;The layout argument&quot;:&quot;data&quot;===t[0]&amp;&amp;&quot;&quot;===e?&quot;Trace &quot;+t[1]+&quot; in the data argument&quot;:p(t)+&quot;key &quot;+e)+&quot; must be linked to an object container&quot;},array:function(t,e){return(&quot;data&quot;===t?&quot;The data argument&quot;:p(t)+&quot;key &quot;+e)+&quot; must be linked to an array container&quot;},schema:function(t,e){return p(t)+&quot;key &quot;+e+&quot; is not part of the schema&quot;},unused:function(t,e,r){var n=s(r)?&quot;container&quot;:&quot;key&quot;;return p(t)+n+&quot; &quot;+e+&quot; did not get coerced&quot;},dynamic:function(t,e,r,n){return[p(t)+&quot;key&quot;,e,&quot;(set to '&quot;+r+&quot;')&quot;,&quot;got reset to&quot;,&quot;'&quot;+n+&quot;'&quot;,&quot;during defaults.&quot;].join(&quot; &quot;)},invisible:function(t,e){return(e?p(t)+&quot;item &quot;+e:&quot;Trace &quot;+t[1])+&quot; got defaulted to be not visible&quot;},value:function(t,e,r){return[p(t)+&quot;key &quot;+e,&quot;is set to an invalid value (&quot;+r+&quot;)&quot;].join(&quot; &quot;)}};function p(t){return l(t)?&quot;In data trace &quot;+t[1]+&quot;, &quot;:&quot;In &quot;+t+&quot;, &quot;}function d(t,e,r,i,a){var o,s;r=r||&quot;&quot;,l(e)?(o=e[0],s=e[1]):(o=e,s=null);var c=function(t){if(!l(t))return String(t);for(var e=&quot;&quot;,r=0;r&lt;t.length;r++){var n=t[r];&quot;number&quot;==typeof n?e=e.substr(0,e.length-1)+&quot;[&quot;+n+&quot;]&quot;:e+=n,r&lt;t.length-1&amp;&amp;(e+=&quot;.&quot;)}return e}(r),u=h[t](e,c,i,a);return n.log(u),{code:t,container:o,trace:s,path:r,astr:c,msg:u}}function m(t,e){var r=y(e),n=r.keyMinusId,i=r.id;return!!(n in t&amp;&amp;t[n]._isSubplotObj&amp;&amp;i)||e in t}function g(t,e){return e in t?t[e]:t[y(e).keyMinusId]}var v=n.counterRegex(&quot;([a-z]+)&quot;);function y(t){var e=t.match(v);return{keyMinusId:e&amp;&amp;e[1],id:e&amp;&amp;e[2]}}},{&quot;../lib&quot;:503,&quot;../plots/plots&quot;:619,&quot;./plot_config&quot;:541,&quot;./plot_schema&quot;:542}],548:[function(t,e,r){&quot;use strict&quot;;e.exports={mode:{valType:&quot;enumerated&quot;,dflt:&quot;afterall&quot;,values:[&quot;immediate&quot;,&quot;next&quot;,&quot;afterall&quot;]},direction:{valType:&quot;enumerated&quot;,values:[&quot;forward&quot;,&quot;reverse&quot;],dflt:&quot;forward&quot;},fromcurrent:{valType:&quot;boolean&quot;,dflt:!1},frame:{duration:{valType:&quot;number&quot;,min:0,dflt:500},redraw:{valType:&quot;boolean&quot;,dflt:!0}},transition:{duration:{valType:&quot;number&quot;,min:0,dflt:500,editType:&quot;none&quot;},easing:{valType:&quot;enumerated&quot;,dflt:&quot;cubic-in-out&quot;,values:[&quot;linear&quot;,&quot;quad&quot;,&quot;cubic&quot;,&quot;sin&quot;,&quot;exp&quot;,&quot;circle&quot;,&quot;elastic&quot;,&quot;back&quot;,&quot;bounce&quot;,&quot;linear-in&quot;,&quot;quad-in&quot;,&quot;cubic-in&quot;,&quot;sin-in&quot;,&quot;exp-in&quot;,&quot;circle-in&quot;,&quot;elastic-in&quot;,&quot;back-in&quot;,&quot;bounce-in&quot;,&quot;linear-out&quot;,&quot;quad-out&quot;,&quot;cubic-out&quot;,&quot;sin-out&quot;,&quot;exp-out&quot;,&quot;circle-out&quot;,&quot;elastic-out&quot;,&quot;back-out&quot;,&quot;bounce-out&quot;,&quot;linear-in-out&quot;,&quot;quad-in-out&quot;,&quot;cubic-in-out&quot;,&quot;sin-in-out&quot;,&quot;exp-in-out&quot;,&quot;circle-in-out&quot;,&quot;elastic-in-out&quot;,&quot;back-in-out&quot;,&quot;bounce-in-out&quot;],editType:&quot;none&quot;},ordering:{valType:&quot;enumerated&quot;,values:[&quot;layout first&quot;,&quot;traces first&quot;],dflt:&quot;layout first&quot;,editType:&quot;none&quot;}}}},{}],549:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_template&quot;);e.exports=function(t,e,r){var a,o,s=r.name,l=r.inclusionAttr||&quot;visible&quot;,c=e[s],u=n.isArrayOrTypedArray(t[s])?t[s]:[],f=e[s]=[],h=i.arrayTemplater(e,s,l);for(a=0;a&lt;u.length;a++){var p=u[a];n.isPlainObject(p)?o=h.newItem(p):(o=h.newItem({}))[l]=!1,o._index=a,!1!==o[l]&amp;&amp;r.handleItemDefaults(p,o,e,r),f.push(o)}var d=h.defaultItems();for(a=0;a&lt;d.length;a++)(o=d[a])._index=f.length,r.handleItemDefaults({},o,e,r,{}),f.push(o);if(n.isArrayOrTypedArray(c)){var m=Math.min(c.length,f.length);for(a=0;a&lt;m;a++)n.relinkPrivateKeys(f[a],c[a])}return f}},{&quot;../lib&quot;:503,&quot;../plot_api/plot_template&quot;:543}],550:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./font_attributes&quot;),i=t(&quot;../components/fx/attributes&quot;);e.exports={type:{valType:&quot;enumerated&quot;,values:[],dflt:&quot;scatter&quot;,editType:&quot;calc+clearAxisTypes&quot;,_noTemplating:!0},visible:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;legendonly&quot;],dflt:!0,editType:&quot;calc&quot;},showlegend:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;style&quot;},legendgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;style&quot;},legendgrouptitle:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;style&quot;},font:n({editType:&quot;style&quot;}),editType:&quot;style&quot;},legendrank:{valType:&quot;number&quot;,dflt:1e3,editType:&quot;style&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;style&quot;},name:{valType:&quot;string&quot;,editType:&quot;style&quot;},uid:{valType:&quot;string&quot;,editType:&quot;plot&quot;,anim:!0},ids:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;,anim:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},meta:{valType:&quot;any&quot;,arrayOk:!0,editType:&quot;plot&quot;},selectedpoints:{valType:&quot;any&quot;,editType:&quot;calc&quot;},hoverinfo:{valType:&quot;flaglist&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;],extras:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],arrayOk:!0,dflt:&quot;all&quot;,editType:&quot;none&quot;},hoverlabel:i.hoverlabel,stream:{token:{valType:&quot;string&quot;,noBlank:!0,strict:!0,editType:&quot;calc&quot;},maxpoints:{valType:&quot;number&quot;,min:0,max:1e4,dflt:500,editType:&quot;calc&quot;},editType:&quot;calc&quot;},transforms:{_isLinkedToArray:&quot;transform&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;}}},{&quot;../components/fx/attributes&quot;:397,&quot;./font_attributes&quot;:585}],551:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=i.dateTime2ms,o=i.incrementMonth,s=t(&quot;../../constants/numerical&quot;).ONEAVGMONTH;e.exports=function(t,e,r,i){if(&quot;date&quot;!==e.type)return{vals:i};var l=t[r+&quot;periodalignment&quot;];if(!l)return{vals:i};var c,u=t[r+&quot;period&quot;];if(n(u)){if((u=+u)&lt;=0)return{vals:i}}else if(&quot;string&quot;==typeof u&amp;&amp;&quot;M&quot;===u.charAt(0)){var f=+u.substring(1);if(!(f&gt;0&amp;&amp;Math.round(f)===f))return{vals:i};c=f}for(var h=e.calendar,p=&quot;start&quot;===l,d=&quot;end&quot;===l,m=t[r+&quot;period0&quot;],g=a(m,h)||0,v=[],y=[],x=[],b=i.length,_=0;_&lt;b;_++){var w,T,k,A=i[_];if(c){for(w=Math.round((A-g)/(c*s)),k=o(g,c*w,h);k&gt;A;)k=o(k,-c,h);for(;k&lt;=A;)k=o(k,c,h);T=o(k,-c,h)}else{for(k=g+(w=Math.round((A-g)/u))*u;k&gt;A;)k-=u;for(;k&lt;=A;)k+=u;T=k-u}v[_]=p?T:d?k:(T+k)/2,y[_]=T,x[_]=k}return{vals:v,starts:y,ends:x}}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;fast-isnumeric&quot;:190}],552:[function(t,e,r){&quot;use strict&quot;;e.exports={xaxis:{valType:&quot;subplotid&quot;,dflt:&quot;x&quot;,editType:&quot;calc+clearAxisTypes&quot;},yaxis:{valType:&quot;subplotid&quot;,dflt:&quot;y&quot;,editType:&quot;calc+clearAxisTypes&quot;}}},{}],553:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../constants/numerical&quot;).FP_SAFE,s=t(&quot;../../registry&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;./axis_ids&quot;),u=c.getFromId,f=c.isLinked;function h(t,e){var r,n,i=[],o=t._fullLayout,s=d(o,e,0),l=d(o,e,1),c=m(t,e),u=c.min,f=c.max;if(0===u.length||0===f.length)return a.simpleMap(e.range,e.r2l);var h=u[0].val,g=f[0].val;for(r=1;r&lt;u.length&amp;&amp;h===g;r++)h=Math.min(h,u[r].val);for(r=1;r&lt;f.length&amp;&amp;h===g;r++)g=Math.max(g,f[r].val);var v=!1;if(e.range){var y=a.simpleMap(e.range,e.r2l);v=y[1]&lt;y[0]}&quot;reversed&quot;===e.autorange&amp;&amp;(v=!0,e.autorange=!0);var x,b,_,w,T,k,A=e.rangemode,M=&quot;tozero&quot;===A,S=&quot;nonnegative&quot;===A,E=e._length,L=E/10,C=0;for(r=0;r&lt;u.length;r++)for(x=u[r],n=0;n&lt;f.length;n++)(k=(b=f[n]).val-x.val-p(e,x.val,b.val))&gt;0&amp;&amp;((T=E-s(x)-l(b))&gt;L?k/T&gt;C&amp;&amp;(_=x,w=b,C=k/T):k/E&gt;C&amp;&amp;(_={val:x.val,nopad:1},w={val:b.val,nopad:1},C=k/E));if(h===g){var P=h-1,I=h+1;if(M)if(0===h)i=[0,1];else{var O=(h&gt;0?f:u).reduce((function(t,e){return Math.max(t,l(e))}),0),z=h/(1-Math.min(.5,O/E));i=h&gt;0?[0,z]:[z,0]}else i=S?[Math.max(0,P),Math.max(1,I)]:[P,I]}else M?(_.val&gt;=0&amp;&amp;(_={val:0,nopad:1}),w.val&lt;=0&amp;&amp;(w={val:0,nopad:1})):S&amp;&amp;(_.val-C*s(_)&lt;0&amp;&amp;(_={val:0,nopad:1}),w.val&lt;=0&amp;&amp;(w={val:1,nopad:1})),C=(w.val-_.val-p(e,x.val,b.val))/(E-s(_)-l(w)),i=[_.val-C*s(_),w.val+C*l(w)];return v&amp;&amp;i.reverse(),a.simpleMap(i,e.l2r||Number)}function p(t,e,r){var n=0;if(t.rangebreaks)for(var i=t.locateBreaks(e,r),a=0;a&lt;i.length;a++){var o=i[a];n+=o.max-o.min}return n}function d(t,e,r){var i=.05*e._length,o=e._anchorAxis||{};if(-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)||-1!==(o.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)){var s=&quot;reversed&quot;===e.autorange;if(!s){var c=a.simpleMap(e.range,e.r2l);s=c[1]&lt;c[0]}s&amp;&amp;(r=!r)}var u=0;return f(t,e._id)||(u=function(t,e,r){var i=0,o=&quot;x&quot;===e._id.charAt(0);for(var s in t._plots){var c=t._plots[s];if(e._id===c.xaxis._id||e._id===c.yaxis._id){var u=(o?c.yaxis:c.xaxis)||{};if(-1!==(u.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;(!r&amp;&amp;(&quot;left&quot;===u.side||&quot;bottom&quot;===u.side)||r&amp;&amp;(&quot;top&quot;===u.side||&quot;right&quot;===u.side))){if(u._vals){var f=a.deg2rad(u._tickAngles[u._id+&quot;tick&quot;]||0),h=Math.abs(Math.cos(f)),p=Math.abs(Math.sin(f));if(!u._vals[0].bb){var d=u._id+&quot;tick&quot;;u._selections[d].each((function(t){var e=n.select(this);e.select(&quot;.text-math-group&quot;).empty()&amp;&amp;(t.bb=l.bBox(e.node()))}))}for(var m=0;m&lt;u._vals.length;m++){var g=u._vals[m].bb;if(g){var v=6+g.width,y=6+g.height;i=Math.max(i,o?Math.max(v*h,y*p):Math.max(y*h,v*p))}}}&quot;inside&quot;===u.ticks&amp;&amp;&quot;inside&quot;===u.ticklabelposition&amp;&amp;(i+=u.ticklen||0)}}}return i}(t,e,r)),i=Math.max(u,i),&quot;domain&quot;===e.constrain&amp;&amp;e._inputDomain&amp;&amp;(i*=(e._inputDomain[1]-e._inputDomain[0])/(e.domain[1]-e.domain[0])),function(t){return t.nopad?0:t.pad+(t.extrapad?i:u)}}e.exports={getAutoRange:h,makePadFn:d,doAutoRange:function(t,e,r){if(e.setScale(),e.autorange){e.range=r?r.slice():h(t,e),e._r=e.range.slice(),e._rl=a.simpleMap(e._r,e.r2l);var n=e._input,i={};i[e._attr+&quot;.range&quot;]=e.range,i[e._attr+&quot;.autorange&quot;]=e.autorange,s.call(&quot;_storeDirectGUIEdit&quot;,t.layout,t._fullLayout._preGUI,i),n.range=e.range.slice(),n.autorange=e.autorange}var o=e._anchorAxis;if(o&amp;&amp;o.rangeslider){var l=o.rangeslider[e._name];l&amp;&amp;&quot;auto&quot;===l.rangemode&amp;&amp;(l.range=h(t,e)),o._input.rangeslider[e._name]=a.extendFlat({},l)}},findExtremes:function(t,e,r){r||(r={});t._m||t.setScale();var n,a,s,l,c,u,f,h,p,d=[],m=[],y=e.length,b=r.padded||!1,_=r.tozero&amp;&amp;(&quot;linear&quot;===t.type||&quot;-&quot;===t.type),w=&quot;log&quot;===t.type,T=!1,k=r.vpadLinearized||!1;function A(t){if(Array.isArray(t))return T=!0,function(e){return Math.max(Number(t[e]||0),0)};var e=Math.max(Number(t||0),0);return function(){return e}}var M=A((t._m&gt;0?r.ppadplus:r.ppadminus)||r.ppad||0),S=A((t._m&gt;0?r.ppadminus:r.ppadplus)||r.ppad||0),E=A(r.vpadplus||r.vpad),L=A(r.vpadminus||r.vpad);if(!T){if(h=1/0,p=-1/0,w)for(n=0;n&lt;y;n++)(a=e[n])&lt;h&amp;&amp;a&gt;0&amp;&amp;(h=a),a&gt;p&amp;&amp;a&lt;o&amp;&amp;(p=a);else for(n=0;n&lt;y;n++)(a=e[n])&lt;h&amp;&amp;a&gt;-o&amp;&amp;(h=a),a&gt;p&amp;&amp;a&lt;o&amp;&amp;(p=a);e=[h,p],y=2}var C={tozero:_,extrapad:b};function P(r){s=e[r],i(s)&amp;&amp;(u=M(r),f=S(r),k?(l=t.c2l(s)-L(r),c=t.c2l(s)+E(r)):(h=s-L(r),p=s+E(r),w&amp;&amp;h&lt;p/10&amp;&amp;(h=p/10),l=t.c2l(h),c=t.c2l(p)),_&amp;&amp;(l=Math.min(0,l),c=Math.max(0,c)),x(l)&amp;&amp;g(d,l,f,C),x(c)&amp;&amp;v(m,c,u,C))}var I=Math.min(6,y);for(n=0;n&lt;I;n++)P(n);for(n=y-1;n&gt;=I;n--)P(n);return{min:d,max:m,opts:r}},concatExtremes:m};function m(t,e,r){var n,i,a,o=e._id,s=t._fullData,l=t._fullLayout,c=[],f=[];function h(t,e){for(n=0;n&lt;e.length;n++){var r=t[e[n]],s=(r._extremes||{})[o];if(!0===r.visible&amp;&amp;s){for(i=0;i&lt;s.min.length;i++)a=s.min[i],g(c,a.val,a.pad,{extrapad:a.extrapad});for(i=0;i&lt;s.max.length;i++)a=s.max[i],v(f,a.val,a.pad,{extrapad:a.extrapad})}}}if(h(s,e._traceIndices),h(l.annotations||[],e._annIndices||[]),h(l.shapes||[],e._shapeIndices||[]),e._matchGroup&amp;&amp;!r)for(var p in e._matchGroup)if(p!==e._id){var d=u(t,p),y=m(t,d,!0),x=e._length/d._length;for(i=0;i&lt;y.min.length;i++)a=y.min[i],g(c,a.val,a.pad*x,{extrapad:a.extrapad});for(i=0;i&lt;y.max.length;i++)a=y.max[i],v(f,a.val,a.pad*x,{extrapad:a.extrapad})}return{min:c,max:f}}function g(t,e,r,n){y(t,e,r,n,b)}function v(t,e,r,n){y(t,e,r,n,_)}function y(t,e,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l&lt;t.length&amp;&amp;s;l++){var c=t[l];if(i(c.val,e)&amp;&amp;c.pad&gt;=r&amp;&amp;(c.extrapad||!o)){s=!1;break}i(e,c.val)&amp;&amp;c.pad&lt;=r&amp;&amp;(o||!c.extrapad)&amp;&amp;(t.splice(l,1),l--)}if(s){var u=a&amp;&amp;0===e;t.push({val:e,pad:u?0:r,extrapad:!u&amp;&amp;o})}}function x(t){return i(t)&amp;&amp;Math.abs(t)&lt;o}function b(t,e){return t&lt;=e}function _(t,e){return t&gt;=e}},{&quot;../../components/drawing&quot;:388,&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;./axis_ids&quot;:558,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:190}],554:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/titles&quot;),f=t(&quot;../../components/color&quot;),h=t(&quot;../../components/drawing&quot;),p=t(&quot;./layout_attributes&quot;),d=t(&quot;./clean_ticks&quot;),m=t(&quot;../../constants/numerical&quot;),g=m.ONEMAXYEAR,v=m.ONEAVGYEAR,y=m.ONEMINYEAR,x=m.ONEMAXQUARTER,b=m.ONEAVGQUARTER,_=m.ONEMINQUARTER,w=m.ONEMAXMONTH,T=m.ONEAVGMONTH,k=m.ONEMINMONTH,A=m.ONEWEEK,M=m.ONEDAY,S=M/2,E=m.ONEHOUR,L=m.ONEMIN,C=m.ONESEC,P=m.MINUS_SIGN,I=m.BADNUM,O={K:&quot;zeroline&quot;},z={K:&quot;gridline&quot;,L:&quot;path&quot;},D={K:&quot;tick&quot;,L:&quot;path&quot;},R={K:&quot;tick&quot;,L:&quot;text&quot;},F=t(&quot;../../constants/alignment&quot;),B=F.MID_SHIFT,N=F.CAP_SHIFT,j=F.LINE_SPACING,U=F.OPPOSITE_SIDE,V=e.exports={};V.setConvert=t(&quot;./set_convert&quot;);var H=t(&quot;./axis_autotype&quot;),q=t(&quot;./axis_ids&quot;),G=q.idSort,Y=q.isLinked;V.id2name=q.id2name,V.name2id=q.name2id,V.cleanId=q.cleanId,V.list=q.list,V.listIds=q.listIds,V.getFromId=q.getFromId,V.getFromTrace=q.getFromTrace;var W=t(&quot;./autorange&quot;);V.getAutoRange=W.getAutoRange,V.findExtremes=W.findExtremes;function X(t){var e=1e-4*(t[1]-t[0]);return[t[0]-e,t[1]+e]}V.coerceRef=function(t,e,r,n,i,a){var o=n.charAt(n.length-1),l=r._fullLayout._subplots[o+&quot;axis&quot;],c=n+&quot;ref&quot;,u={};return i||(i=l[0]||(&quot;string&quot;==typeof a?a:a[0])),a||(a=i),l=l.concat(l.map((function(t){return t+&quot; domain&quot;}))),u[c]={valType:&quot;enumerated&quot;,values:l.concat(a?&quot;string&quot;==typeof a?[a]:a:[]),dflt:i},s.coerce(t,e,u,c)},V.getRefType=function(t){return void 0===t?t:&quot;paper&quot;===t?&quot;paper&quot;:&quot;pixel&quot;===t?&quot;pixel&quot;:/( domain)$/.test(t)?&quot;domain&quot;:&quot;range&quot;},V.coercePosition=function(t,e,r,n,i,a){var o,l;if(&quot;range&quot;!==V.getRefType(n))o=s.ensureNumber,l=r(i,a);else{var c=V.getFromId(e,n);l=r(i,a=c.fraction2r(a)),o=c.cleanPos}t[i]=o(l)},V.cleanPosition=function(t,e,r){return(&quot;paper&quot;===r||&quot;pixel&quot;===r?s.ensureNumber:V.getFromId(e,r).cleanPos)(t)},V.redrawComponents=function(t,e){e=e||V.listIds(t);var r=t._fullLayout;function n(n,i,a,s){for(var l=o.getComponentMethod(n,i),c={},u=0;u&lt;e.length;u++)for(var f=r[V.id2name(e[u])][a],h=0;h&lt;f.length;h++){var p=f[h];if(!c[p]&amp;&amp;(l(t,p),c[p]=1,s))return}}n(&quot;annotations&quot;,&quot;drawOne&quot;,&quot;_annIndices&quot;),n(&quot;shapes&quot;,&quot;drawOne&quot;,&quot;_shapeIndices&quot;),n(&quot;images&quot;,&quot;draw&quot;,&quot;_imgIndices&quot;,!0)};var Z=V.getDataConversions=function(t,e,r,n){var i,a=&quot;x&quot;===r||&quot;y&quot;===r||&quot;z&quot;===r?r:n;if(Array.isArray(a)){if(i={type:H(n,void 0,{autotypenumbers:t._fullLayout.autotypenumbers}),_categories:[]},V.setConvert(i),&quot;category&quot;===i.type)for(var o=0;o&lt;n.length;o++)i.d2c(n[o])}else i=V.getFromTrace(t,e,a);return i?{d2c:i.d2c,c2d:i.c2d}:&quot;ids&quot;===a?{d2c:K,c2d:K}:{d2c:J,c2d:J}};function J(t){return+t}function K(t){return String(t)}function Q(t){return+t.substring(1)}V.getDataToCoordFunc=function(t,e,r,n){return Z(t,e,r,n).d2c},V.counterLetter=function(t){var e=t.charAt(0);return&quot;x&quot;===e?&quot;y&quot;:&quot;y&quot;===e?&quot;x&quot;:void 0},V.minDtick=function(t,e,r,n){-1===[&quot;log&quot;,&quot;category&quot;,&quot;multicategory&quot;].indexOf(t.type)&amp;&amp;n?void 0===t._minDtick?(t._minDtick=e,t._forceTick0=r):t._minDtick&amp;&amp;((t._minDtick/e+1e-6)%1&lt;2e-6&amp;&amp;((r-t._forceTick0)/e%1+1.000001)%1&lt;2e-6?(t._minDtick=e,t._forceTick0=r):((e/t._minDtick+1e-6)%1&gt;2e-6||((r-t._forceTick0)/t._minDtick%1+1.000001)%1&gt;2e-6)&amp;&amp;(t._minDtick=0)):t._minDtick=0},V.saveRangeInitial=function(t,e){for(var r=V.list(t,&quot;&quot;,!0),n=!1,i=0;i&lt;r.length;i++){var a=r[i],o=void 0===a._rangeInitial,s=o||!(a.range[0]===a._rangeInitial[0]&amp;&amp;a.range[1]===a._rangeInitial[1]);(o&amp;&amp;!1===a.autorange||e&amp;&amp;s)&amp;&amp;(a._rangeInitial=a.range.slice(),n=!0)}return n},V.saveShowSpikeInitial=function(t,e){for(var r=V.list(t,&quot;&quot;,!0),n=!1,i=&quot;on&quot;,a=0;a&lt;r.length;a++){var o=r[a],s=void 0===o._showSpikeInitial,l=s||!(o.showspikes===o._showspikes);(s||e&amp;&amp;l)&amp;&amp;(o._showSpikeInitial=o.showspikes,n=!0),&quot;on&quot;!==i||o.showspikes||(i=&quot;off&quot;)}return t._fullLayout._cartesianSpikesEnabled=i,n},V.autoBin=function(t,e,r,n,a,o){var l,c=s.aggNums(Math.min,null,t),u=s.aggNums(Math.max,null,t);if(&quot;category&quot;===e.type||&quot;multicategory&quot;===e.type)return{start:c-.5,end:u+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:u-c};if(a||(a=e.calendar),l=&quot;log&quot;===e.type?{type:&quot;linear&quot;,range:[c,u]}:{type:e.type,range:s.simpleMap([c,u],e.c2r,0,a),calendar:a},V.setConvert(l),o=o&amp;&amp;d.dtick(o,l.type))l.dtick=o,l.tick0=d.tick0(void 0,l.type,a);else{var f;if(r)f=(u-c)/r;else{var h=s.distinctVals(t),p=Math.pow(10,Math.floor(Math.log(h.minDiff)/Math.LN10)),m=p*s.roundUp(h.minDiff/p,[.9,1.9,4.9,9.9],!0);f=Math.max(m,2*s.stdev(t)/Math.pow(t.length,n?.25:.4)),i(f)||(f=1)}V.autoTicks(l,f)}var g,v=l.dtick,y=V.tickIncrement(V.tickFirst(l),v,&quot;reverse&quot;,a);if(&quot;number&quot;==typeof v)g=(y=function(t,e,r,n,a){var o=0,s=0,l=0,c=0;function u(e){return(1+100*(e-t)/r.dtick)%100&lt;2}for(var f=0;f&lt;e.length;f++)e[f]%1==0?l++:i(e[f])||c++,u(e[f])&amp;&amp;o++,u(e[f]+r.dtick/2)&amp;&amp;s++;var h=e.length-c;if(l===h&amp;&amp;&quot;date&quot;!==r.type)r.dtick&lt;1?t=n-.5*r.dtick:(t-=.5)+r.dtick&lt;n&amp;&amp;(t+=r.dtick);else if(s&lt;.1*h&amp;&amp;(o&gt;.3*h||u(n)||u(a))){var p=r.dtick/2;t+=t+p&lt;n?p:-p}return t}(y,t,l,c,u))+(1+Math.floor((u-y)/v))*v;else for(&quot;M&quot;===l.dtick.charAt(0)&amp;&amp;(y=function(t,e,r,n,i){var a=s.findExactDates(e,i);if(a.exactDays&gt;.8){var o=Number(r.substr(1));a.exactYears&gt;.8&amp;&amp;o%12==0?t=V.tickIncrement(t,&quot;M6&quot;,&quot;reverse&quot;)+1.5*M:a.exactMonths&gt;.8?t=V.tickIncrement(t,&quot;M1&quot;,&quot;reverse&quot;)+15.5*M:t-=S;var l=V.tickIncrement(t,r);if(l&lt;=n)return l}return t}(y,t,v,c,a)),g=y,0;g&lt;=u;)g=V.tickIncrement(g,v,!1,a);return{start:e.c2r(y,0,a),end:e.c2r(g,0,a),size:v,_dataSpan:u-c}},V.prepTicks=function(t,e){var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if(t._dtickInit=t.dtick,t._tick0Init=t.tick0,&quot;auto&quot;===t.tickmode||!t.dtick){var n,a=t.nticks;a||(&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?(n=t.tickfont?s.bigFont(t.tickfont.size||12):15,a=t._length/n):(n=&quot;y&quot;===t._id.charAt(0)?40:80,a=s.constrain(t._length/n,4,9)+1),&quot;radialaxis&quot;===t._name&amp;&amp;(a*=2)),&quot;array&quot;===t.tickmode&amp;&amp;(a*=100),t._roughDTick=Math.abs(r[1]-r[0])/a,V.autoTicks(t,t._roughDTick),t._minDtick&gt;0&amp;&amp;t.dtick&lt;2*t._minDtick&amp;&amp;(t.dtick=t._minDtick,t.tick0=t.l2r(t._forceTick0))}&quot;period&quot;===t.ticklabelmode&amp;&amp;function(t){var e;function r(){return!(i(t.dtick)||&quot;M&quot;!==t.dtick.charAt(0))}var n=r(),a=V.getTickFormat(t);if(a){var o=t._dtickInit!==t.dtick;/%[fLQsSMX]/.test(a)||(/%[HI]/.test(a)?(e=E,o&amp;&amp;!n&amp;&amp;t.dtick&lt;E&amp;&amp;(t.dtick=E)):/%p/.test(a)?(e=S,o&amp;&amp;!n&amp;&amp;t.dtick&lt;S&amp;&amp;(t.dtick=S)):/%[Aadejuwx]/.test(a)?(e=M,o&amp;&amp;!n&amp;&amp;t.dtick&lt;M&amp;&amp;(t.dtick=M)):/%[UVW]/.test(a)?(e=A,o&amp;&amp;!n&amp;&amp;t.dtick&lt;A&amp;&amp;(t.dtick=A)):/%[Bbm]/.test(a)?(e=T,o&amp;&amp;(n?Q(t.dtick)&lt;1:t.dtick&lt;k)&amp;&amp;(t.dtick=&quot;M1&quot;)):/%[q]/.test(a)?(e=b,o&amp;&amp;(n?Q(t.dtick)&lt;3:t.dtick&lt;_)&amp;&amp;(t.dtick=&quot;M3&quot;)):/%[Yy]/.test(a)&amp;&amp;(e=v,o&amp;&amp;(n?Q(t.dtick)&lt;12:t.dtick&lt;y)&amp;&amp;(t.dtick=&quot;M12&quot;)))}(n=r())&amp;&amp;t.tick0===t._dowTick0&amp;&amp;(t.tick0=t._rawTick0);t._definedDelta=e}(t),t.tick0||(t.tick0=&quot;date&quot;===t.type?&quot;2000-01-01&quot;:0),&quot;date&quot;===t.type&amp;&amp;t.dtick&lt;.1&amp;&amp;(t.dtick=.1),st(t)},V.calcTicks=function(t,e){V.prepTicks(t,e);var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if(&quot;array&quot;===t.tickmode)return function(t){var e=t.tickvals,r=t.ticktext,n=new Array(e.length),i=X(s.simpleMap(t.range,t.r2l)),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]),l=0;Array.isArray(r)||(r=[]);var c=&quot;category&quot;===t.type?t.d2l_noadd:t.d2l;&quot;log&quot;===t.type&amp;&amp;&quot;L&quot;!==String(t.dtick).charAt(0)&amp;&amp;(t.dtick=&quot;L&quot;+Math.pow(10,Math.floor(Math.min(t.range[0],t.range[1]))-1));for(var u=0;u&lt;e.length;u++){var f=c(e[u]);f&gt;a&amp;&amp;f&lt;o&amp;&amp;(void 0===r[u]?n[l]=V.tickText(t,f):n[l]=lt(t,f,String(r[u])),l++)}l&lt;e.length&amp;&amp;n.splice(l,e.length-l);t.rangebreaks&amp;&amp;(n=n.filter((function(e){return t.maskBreaks(e.x)!==I})));return n}(t);var n=X(r),a=n[0],o=n[1],l=r[1]&lt;r[0],c=Math.min(r[0],r[1]),u=Math.max(r[0],r[1]),f=&quot;log&quot;===t.type&amp;&amp;!(i(t.dtick)||&quot;L&quot;===t.dtick.charAt(0)),h=&quot;period&quot;===t.ticklabelmode;if(t._tmin=V.tickFirst(t,e),t._tmin&lt;a!==l)return[];&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(o=l?Math.max(-.5,o):Math.min(t._categories.length-.5,o));var p=t._tmin;t.rangebreaks&amp;&amp;t._tick0Init!==t.tick0&amp;&amp;(p=Mt(p,t),l||(p=V.tickIncrement(p,t.dtick,!l,t.calendar))),h&amp;&amp;(p=V.tickIncrement(p,t.dtick,!l,t.calendar));for(var d,m=Math.max(1e3,t._length||0),L=[],C=null;l?p&gt;=o:p&lt;=o;p=V.tickIncrement(p,t.dtick,l,t.calendar)){if(t.rangebreaks&amp;&amp;!l){if(p&lt;a)continue;if(t.maskBreaks(p)===I&amp;&amp;Mt(p,t)&gt;=u)break}if(L.length&gt;m||p===C)break;C=p;var P=!1;f&amp;&amp;p!==(0|p)&amp;&amp;(P=!0),L.push({minor:P,value:p})}if(h&amp;&amp;function(t,e,r){for(var n=0;n&lt;t.length;n++){var i=t[n].value,a=n,o=n+1;n&lt;t.length-1?(a=n,o=n+1):n&gt;0?(a=n-1,o=n):(a=n,o=n);var s,l=t[a].value,c=t[o].value,u=Math.abs(c-l),f=r||u,h=0;f&gt;=y?h=u&gt;=y&amp;&amp;u&lt;=g?u:v:r===b&amp;&amp;f&gt;=_?h=u&gt;=_&amp;&amp;u&lt;=x?u:b:f&gt;=k?h=u&gt;=k&amp;&amp;u&lt;=w?u:T:r===A&amp;&amp;f&gt;=A?h=A:f&gt;=M?h=M:r===S&amp;&amp;f&gt;=S?h=S:r===E&amp;&amp;f&gt;=E&amp;&amp;(h=E),h&gt;=u&amp;&amp;(h=u,s=!0);var p=i+h;if(e.rangebreaks&amp;&amp;h&gt;0){for(var d=0,m=0;m&lt;84;m++){var L=(m+.5)/84;e.maskBreaks(i*(1-L)+L*p)!==I&amp;&amp;d++}(h*=d/84)||(t[n].drop=!0),s&amp;&amp;u&gt;A&amp;&amp;(h=u)}(h&gt;0||0===n)&amp;&amp;(t[n].periodX=i+h/2)}}(L,t,t._definedDelta),t.rangebreaks){var O=&quot;y&quot;===t._id.charAt(0),z=1;&quot;auto&quot;===t.tickmode&amp;&amp;(z=t.tickfont?t.tickfont.size:12);var D=NaN;for(d=L.length-1;d&gt;-1;d--)if(L[d].drop)L.splice(d,1);else{L[d].value=Mt(L[d].value,t);var R=t.c2p(L[d].value);(O?D&gt;R-z:D&lt;R+z)?L.splice(l?d+1:d,1):D=R}}At(t)&amp;&amp;360===Math.abs(r[1]-r[0])&amp;&amp;L.pop(),t._tmax=(L[L.length-1]||{}).value,t._prevDateHead=&quot;&quot;,t._inCalcTicks=!0;var F,B,N=[];for(d=0;d&lt;L.length;d++){var j=L[d].minor,U=L[d].value;F=V.tickText(t,U,!1,j),void 0!==(B=L[d].periodX)&amp;&amp;(F.periodX=B,(B&gt;u||B&lt;c)&amp;&amp;(B&gt;u&amp;&amp;(F.periodX=u),B&lt;c&amp;&amp;(F.periodX=c),F.text=&quot; &quot;,t._prevDateHead=&quot;&quot;)),N.push(F)}return t._inCalcTicks=!1,N};var $=[2,5,10],tt=[1,2,3,6,12],et=[1,2,5,10,15,30],rt=[1,2,3,7,14],nt=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],it=[-.301,0,.301,.699,1],at=[15,30,45,90,180];function ot(t,e,r){return e*s.roundUp(t/e,r)}function st(t){var e=t.dtick;if(t._tickexponent=0,i(e)||&quot;string&quot;==typeof e||(e=1),&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(t._tickround=null),&quot;date&quot;===t.type){var r=t.r2l(t.tick0),n=t.l2r(r).replace(/(^-|i)/g,&quot;&quot;),a=n.length;if(&quot;M&quot;===String(e).charAt(0))a&gt;10||&quot;01-01&quot;!==n.substr(5)?t._tickround=&quot;d&quot;:t._tickround=+e.substr(1)%12==0?&quot;y&quot;:&quot;m&quot;;else if(e&gt;=M&amp;&amp;a&lt;=10||e&gt;=15*M)t._tickround=&quot;d&quot;;else if(e&gt;=L&amp;&amp;a&lt;=16||e&gt;=E)t._tickround=&quot;M&quot;;else if(e&gt;=C&amp;&amp;a&lt;=19||e&gt;=L)t._tickround=&quot;S&quot;;else{var o=t.l2r(r+e).replace(/^-/,&quot;&quot;).length;t._tickround=Math.max(a,o)-20,t._tickround&lt;0&amp;&amp;(t._tickround=4)}}else if(i(e)||&quot;L&quot;===e.charAt(0)){var s=t.range.map(t.r2d||Number);i(e)||(e=Number(e.substr(1))),t._tickround=2-Math.floor(Math.log(e)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),c=Math.floor(Math.log(l)/Math.LN10+.01),u=void 0===t.minexponent?3:t.minexponent;Math.abs(c)&gt;u&amp;&amp;(ut(t.exponentformat)&amp;&amp;!ft(c)?t._tickexponent=3*Math.round((c-1)/3):t._tickexponent=c)}else t._tickround=null}function lt(t,e,r){var n=t.tickfont||{};return{x:e,dx:0,dy:0,text:r||&quot;&quot;,fontSize:n.size,font:n.family,fontColor:n.color}}V.autoTicks=function(t,e){var r;function n(t){return Math.pow(t,Math.floor(Math.log(e)/Math.LN10))}if(&quot;date&quot;===t.type){t.tick0=s.dateTick0(t.calendar,0);var a=2*e;if(a&gt;v)e/=v,r=n(10),t.dtick=&quot;M&quot;+12*ot(e,r,$);else if(a&gt;T)e/=T,t.dtick=&quot;M&quot;+ot(e,1,tt);else if(a&gt;M){t.dtick=ot(e,M,t._hasDayOfWeekBreaks?[1,2,7,14]:rt);var o=V.getTickFormat(t),l=&quot;period&quot;===t.ticklabelmode;l&amp;&amp;(t._rawTick0=t.tick0),/%[uVW]/.test(o)?t.tick0=s.dateTick0(t.calendar,2):t.tick0=s.dateTick0(t.calendar,1),l&amp;&amp;(t._dowTick0=t.tick0)}else a&gt;E?t.dtick=ot(e,E,tt):a&gt;L?t.dtick=ot(e,L,et):a&gt;C?t.dtick=ot(e,C,et):(r=n(10),t.dtick=ot(e,r,$))}else if(&quot;log&quot;===t.type){t.tick0=0;var c=s.simpleMap(t.range,t.r2l);if(e&gt;.7)t.dtick=Math.ceil(e);else if(Math.abs(c[1]-c[0])&lt;1){var u=1.5*Math.abs((c[1]-c[0])/e);e=Math.abs(Math.pow(10,c[1])-Math.pow(10,c[0]))/u,r=n(10),t.dtick=&quot;L&quot;+ot(e,r,$)}else t.dtick=e&gt;.3?&quot;D2&quot;:&quot;D1&quot;}else&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?(t.tick0=0,t.dtick=Math.ceil(Math.max(e,1))):At(t)?(t.tick0=0,r=1,t.dtick=ot(e,r,at)):(t.tick0=0,r=n(10),t.dtick=ot(e,r,$));if(0===t.dtick&amp;&amp;(t.dtick=1),!i(t.dtick)&amp;&amp;&quot;string&quot;!=typeof t.dtick){var f=t.dtick;throw t.dtick=1,&quot;ax.dtick error: &quot;+String(f)}},V.tickIncrement=function(t,e,r,a){var o=r?-1:1;if(i(e))return s.increment(t,o*e);var l=e.charAt(0),c=o*Number(e.substr(1));if(&quot;M&quot;===l)return s.incrementMonth(t,c,a);if(&quot;L&quot;===l)return Math.log(Math.pow(10,t)+c)/Math.LN10;if(&quot;D&quot;===l){var u=&quot;D2&quot;===e?it:nt,f=t+.01*o,h=s.roundUp(s.mod(f,1),u,r);return Math.floor(f)+Math.log(n.round(Math.pow(10,h),1))/Math.LN10}throw&quot;unrecognized dtick &quot;+String(e)},V.tickFirst=function(t,e){var r=t.r2l||Number,a=s.simpleMap(t.range,r,void 0,void 0,e),o=a[1]&lt;a[0],l=o?Math.floor:Math.ceil,c=X(a)[0],u=t.dtick,f=r(t.tick0);if(i(u)){var h=l((c-f)/u)*u+f;return&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(h=s.constrain(h,0,t._categories.length-1)),h}var p=u.charAt(0),d=Number(u.substr(1));if(&quot;M&quot;===p){for(var m,g,v,y=0,x=f;y&lt;10;){if(((m=V.tickIncrement(x,u,o,t.calendar))-c)*(x-c)&lt;=0)return o?Math.min(x,m):Math.max(x,m);g=(c-(x+m)/2)/(m-x),v=p+(Math.abs(Math.round(g))||1)*d,x=V.tickIncrement(x,v,g&lt;0?!o:o,t.calendar),y++}return s.error(&quot;tickFirst did not converge&quot;,t),x}if(&quot;L&quot;===p)return Math.log(l((Math.pow(10,c)-f)/d)*d+f)/Math.LN10;if(&quot;D&quot;===p){var b=&quot;D2&quot;===u?it:nt,_=s.roundUp(s.mod(c,1),b,o);return Math.floor(c)+Math.log(n.round(Math.pow(10,_),1))/Math.LN10}throw&quot;unrecognized dtick &quot;+String(u)},V.tickText=function(t,e,r,n){var a,o=lt(t,e),l=&quot;array&quot;===t.tickmode,c=r||l,u=t.type,f=&quot;category&quot;===u?t.d2l_noadd:t.d2l;if(l&amp;&amp;Array.isArray(t.ticktext)){var h=s.simpleMap(t.range,t.r2l),p=(Math.abs(h[1]-h[0])-(t._lBreaks||0))/1e4;for(a=0;a&lt;t.ticktext.length&amp;&amp;!(Math.abs(e-f(t.tickvals[a]))&lt;p);a++);if(a&lt;t.ticktext.length)return o.text=String(t.ticktext[a]),o}function d(n){if(void 0===n)return!0;if(r)return&quot;none&quot;===n;var i={first:t._tmin,last:t._tmax}[n];return&quot;all&quot;!==n&amp;&amp;e!==i}var m=r?&quot;never&quot;:&quot;none&quot;!==t.exponentformat&amp;&amp;d(t.showexponent)?&quot;hide&quot;:&quot;&quot;;if(&quot;date&quot;===u?function(t,e,r,n){var a=t._tickround,o=r&amp;&amp;t.hoverformat||V.getTickFormat(t);n&amp;&amp;(a=i(a)?4:{y:&quot;m&quot;,m:&quot;d&quot;,d:&quot;M&quot;,M:&quot;S&quot;,S:4}[a]);var l,c=s.formatDate(e.x,o,a,t._dateFormat,t.calendar,t._extraFormat),u=c.indexOf(&quot;\n&quot;);-1!==u&amp;&amp;(l=c.substr(u+1),c=c.substr(0,u));n&amp;&amp;(&quot;00:00:00&quot;===c||&quot;00:00&quot;===c?(c=l,l=&quot;&quot;):8===c.length&amp;&amp;(c=c.replace(/:00$/,&quot;&quot;)));if(l)if(r)&quot;d&quot;===a?c+=&quot;, &quot;+l:c=l+(c?&quot;, &quot;+c:&quot;&quot;);else if(t._inCalcTicks&amp;&amp;t._prevDateHead===l){var f=St(t),h=t._trueSide||t.side;(!f&amp;&amp;&quot;top&quot;===h||f&amp;&amp;&quot;bottom&quot;===h)&amp;&amp;(c+=&quot;&lt;br&gt; &quot;)}else t._prevDateHead=l,c+=&quot;&lt;br&gt;&quot;+l;e.text=c}(t,o,r,c):&quot;log&quot;===u?function(t,e,r,n,a){var o=t.dtick,l=e.x,c=t.tickformat,u=&quot;string&quot;==typeof o&amp;&amp;o.charAt(0);&quot;never&quot;===a&amp;&amp;(a=&quot;&quot;);n&amp;&amp;&quot;L&quot;!==u&amp;&amp;(o=&quot;L3&quot;,u=&quot;L&quot;);if(c||&quot;L&quot;===u)e.text=ht(Math.pow(10,l),t,a,n);else if(i(o)||&quot;D&quot;===u&amp;&amp;s.mod(l+.01,1)&lt;.1){var f=Math.round(l),h=Math.abs(f),p=t.exponentformat;&quot;power&quot;===p||ut(p)&amp;&amp;ft(f)?(e.text=0===f?1:1===f?&quot;10&quot;:&quot;10&lt;sup&gt;&quot;+(f&gt;1?&quot;&quot;:P)+h+&quot;&lt;/sup&gt;&quot;,e.fontSize*=1.25):(&quot;e&quot;===p||&quot;E&quot;===p)&amp;&amp;h&gt;2?e.text=&quot;1&quot;+p+(f&gt;0?&quot;+&quot;:P)+h:(e.text=ht(Math.pow(10,l),t,&quot;&quot;,&quot;fakehover&quot;),&quot;D1&quot;===o&amp;&amp;&quot;y&quot;===t._id.charAt(0)&amp;&amp;(e.dy-=e.fontSize/6))}else{if(&quot;D&quot;!==u)throw&quot;unrecognized dtick &quot;+String(o);e.text=String(Math.round(Math.pow(10,s.mod(l,1)))),e.fontSize*=.75}if(&quot;D1&quot;===t.dtick){var d=String(e.text).charAt(0);&quot;0&quot;!==d&amp;&amp;&quot;1&quot;!==d||(&quot;y&quot;===t._id.charAt(0)?e.dx-=e.fontSize/4:(e.dy+=e.fontSize/2,e.dx+=(t.range[1]&gt;t.range[0]?1:-1)*e.fontSize*(l&lt;0?.5:.25)))}}(t,o,0,c,m):&quot;category&quot;===u?function(t,e){var r=t._categories[Math.round(e.x)];void 0===r&amp;&amp;(r=&quot;&quot;);e.text=String(r)}(t,o):&quot;multicategory&quot;===u?function(t,e,r){var n=Math.round(e.x),i=t._categories[n]||[],a=void 0===i[1]?&quot;&quot;:String(i[1]),o=void 0===i[0]?&quot;&quot;:String(i[0]);r?e.text=o+&quot; - &quot;+a:(e.text=a,e.text2=o)}(t,o,r):At(t)?function(t,e,r,n,i){if(&quot;radians&quot;!==t.thetaunit||r)e.text=ht(e.x,t,i,n);else{var a=e.x/180;if(0===a)e.text=&quot;0&quot;;else{var o=function(t){function e(t,e){return Math.abs(t-e)&lt;=1e-6}var r=function(t){for(var r=1;!e(Math.round(t*r)/r,t);)r*=10;return r}(t),n=t*r,i=Math.abs(function t(r,n){return e(n,0)?r:t(n,r%n)}(n,r));return[Math.round(n/i),Math.round(r/i)]}(a);if(o[1]&gt;=100)e.text=ht(s.deg2rad(e.x),t,i,n);else{var l=e.x&lt;0;1===o[1]?1===o[0]?e.text=&quot;\u03c0&quot;:e.text=o[0]+&quot;\u03c0&quot;:e.text=[&quot;&lt;sup&gt;&quot;,o[0],&quot;&lt;/sup&gt;&quot;,&quot;\u2044&quot;,&quot;&lt;sub&gt;&quot;,o[1],&quot;&lt;/sub&gt;&quot;,&quot;\u03c0&quot;].join(&quot;&quot;),l&amp;&amp;(e.text=P+e.text)}}}}(t,o,r,c,m):function(t,e,r,n,i){&quot;never&quot;===i?i=&quot;&quot;:&quot;all&quot;===t.showexponent&amp;&amp;Math.abs(e.x/t.dtick)&lt;1e-6&amp;&amp;(i=&quot;hide&quot;);e.text=ht(e.x,t,i,n)}(t,o,0,c,m),n||(t.tickprefix&amp;&amp;!d(t.showtickprefix)&amp;&amp;(o.text=t.tickprefix+o.text),t.ticksuffix&amp;&amp;!d(t.showticksuffix)&amp;&amp;(o.text+=t.ticksuffix)),&quot;boundaries&quot;===t.tickson||t.showdividers){var g=function(e){var r=t.l2p(e);return r&gt;=0&amp;&amp;r&lt;=t._length?e:null};o.xbnd=[g(o.x-.5),g(o.x+t.dtick-.5)]}return o},V.hoverLabelText=function(t,e,r){r&amp;&amp;(t=s.extendFlat({},t,{hoverformat:r}));var n=Array.isArray(e)?e[0]:e,i=Array.isArray(e)?e[1]:void 0;if(void 0!==i&amp;&amp;i!==n)return V.hoverLabelText(t,n,r)+&quot; - &quot;+V.hoverLabelText(t,i,r);var a=&quot;log&quot;===t.type&amp;&amp;n&lt;=0,o=V.tickText(t,t.c2l(a?-n:n),&quot;hover&quot;).text;return a?0===n?&quot;0&quot;:P+o:o};var ct=[&quot;f&quot;,&quot;p&quot;,&quot;n&quot;,&quot;\u03bc&quot;,&quot;m&quot;,&quot;&quot;,&quot;k&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;];function ut(t){return&quot;SI&quot;===t||&quot;B&quot;===t}function ft(t){return t&gt;14||t&lt;-15}function ht(t,e,r,n){var a=t&lt;0,o=e._tickround,l=r||e.exponentformat||&quot;B&quot;,c=e._tickexponent,u=V.getTickFormat(e),f=e.separatethousands;if(n){var h={exponentformat:l,minexponent:e.minexponent,dtick:&quot;none&quot;===e.showexponent?e.dtick:i(t)&amp;&amp;Math.abs(t)||1,range:&quot;none&quot;===e.showexponent?e.range.map(e.r2d):[0,t||1]};st(h),o=(Number(h._tickround)||0)+4,c=h._tickexponent,e.hoverformat&amp;&amp;(u=e.hoverformat)}if(u)return e._numFormat(u)(t).replace(/-/g,P);var p,d=Math.pow(10,-o)/2;if(&quot;none&quot;===l&amp;&amp;(c=0),(t=Math.abs(t))&lt;d)t=&quot;0&quot;,a=!1;else{if(t+=d,c&amp;&amp;(t*=Math.pow(10,-c),o+=c),0===o)t=String(Math.floor(t));else if(o&lt;0){t=(t=String(Math.round(t))).substr(0,t.length+o);for(var m=o;m&lt;0;m++)t+=&quot;0&quot;}else{var g=(t=String(t)).indexOf(&quot;.&quot;)+1;g&amp;&amp;(t=t.substr(0,g+o).replace(/\.?0+$/,&quot;&quot;))}t=s.numSeparate(t,e._separators,f)}c&amp;&amp;&quot;hide&quot;!==l&amp;&amp;(ut(l)&amp;&amp;ft(c)&amp;&amp;(l=&quot;power&quot;),p=c&lt;0?P+-c:&quot;power&quot;!==l?&quot;+&quot;+c:String(c),&quot;e&quot;===l||&quot;E&quot;===l?t+=l+p:&quot;power&quot;===l?t+=&quot;\xd710&lt;sup&gt;&quot;+p+&quot;&lt;/sup&gt;&quot;:&quot;B&quot;===l&amp;&amp;9===c?t+=&quot;B&quot;:ut(l)&amp;&amp;(t+=ct[c/3+5]));return a?P+t:t}function pt(t,e){for(var r=[],n={},i=0;i&lt;e.length;i++){var a=e[i];n[a.text2]?n[a.text2].push(a.x):n[a.text2]=[a.x]}for(var o in n)r.push(lt(t,s.interp(n[o],.5),o));return r}function dt(t){return void 0!==t.periodX?t.periodX:t.x}function mt(t){return[t.text,t.x,t.axInfo,t.font,t.fontSize,t.fontColor].join(&quot;_&quot;)}function gt(t){var e=t.title.font.size,r=(t.title.text.match(c.BR_TAG_ALL)||[]).length;return t.title.hasOwnProperty(&quot;standoff&quot;)?r?e*(N+r*j):e*N:r?e*(r+1)*j:e}function vt(t,e){var r=t.l2p(e);return r&gt;1&amp;&amp;r&lt;t._length-1}function yt(t){var e=n.select(t),r=e.select(&quot;.text-math-group&quot;);return r.empty()?e.select(&quot;text&quot;):r}function xt(t){return t._id+&quot;.automargin&quot;}function bt(t){return xt(t)+&quot;.mirror&quot;}function _t(t){return t._id+&quot;.rangeslider&quot;}function wt(t,e){for(var r=0;r&lt;e.length;r++)-1===t.indexOf(e[r])&amp;&amp;t.push(e[r])}function Tt(t,e,r){var n,i,a=[],o=[],l=t.layout;for(n=0;n&lt;e.length;n++)a.push(V.getFromId(t,e[n]));for(n=0;n&lt;r.length;n++)o.push(V.getFromId(t,r[n]));var c=Object.keys(p),u=[&quot;anchor&quot;,&quot;domain&quot;,&quot;overlaying&quot;,&quot;position&quot;,&quot;side&quot;,&quot;tickangle&quot;,&quot;editType&quot;],f=[&quot;linear&quot;,&quot;log&quot;];for(n=0;n&lt;c.length;n++){var h=c[n],d=a[0][h],m=o[0][h],g=!0,v=!1,y=!1;if(&quot;_&quot;!==h.charAt(0)&amp;&amp;&quot;function&quot;!=typeof d&amp;&amp;-1===u.indexOf(h)){for(i=1;i&lt;a.length&amp;&amp;g;i++){var x=a[i][h];&quot;type&quot;===h&amp;&amp;-1!==f.indexOf(d)&amp;&amp;-1!==f.indexOf(x)&amp;&amp;d!==x?v=!0:x!==d&amp;&amp;(g=!1)}for(i=1;i&lt;o.length&amp;&amp;g;i++){var b=o[i][h];&quot;type&quot;===h&amp;&amp;-1!==f.indexOf(m)&amp;&amp;-1!==f.indexOf(b)&amp;&amp;m!==b?y=!0:o[i][h]!==m&amp;&amp;(g=!1)}g&amp;&amp;(v&amp;&amp;(l[a[0]._name].type=&quot;linear&quot;),y&amp;&amp;(l[o[0]._name].type=&quot;linear&quot;),kt(l,h,a,o,t._fullLayout._dfltTitle))}}for(n=0;n&lt;t._fullLayout.annotations.length;n++){var _=t._fullLayout.annotations[n];-1!==e.indexOf(_.xref)&amp;&amp;-1!==r.indexOf(_.yref)&amp;&amp;s.swapAttrs(l.annotations[n],[&quot;?&quot;])}}function kt(t,e,r,n,i){var a,o=s.nestedProperty,l=o(t[r[0]._name],e).get(),c=o(t[n[0]._name],e).get();for(&quot;title&quot;===e&amp;&amp;(l&amp;&amp;l.text===i.x&amp;&amp;(l.text=i.y),c&amp;&amp;c.text===i.y&amp;&amp;(c.text=i.x)),a=0;a&lt;r.length;a++)o(t,r[a]._name+&quot;.&quot;+e).set(c);for(a=0;a&lt;n.length;a++)o(t,n[a]._name+&quot;.&quot;+e).set(l)}function At(t){return&quot;angularaxis&quot;===t._id}function Mt(t,e){for(var r=e._rangebreaks.length,n=0;n&lt;r;n++){var i=e._rangebreaks[n];if(t&gt;=i.min&amp;&amp;t&lt;i.max)return i.max}return t}function St(t){return-1!==(t.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)}function Et(t,e){St(t._anchorAxis||{})&amp;&amp;t._hideCounterAxisInsideTickLabels&amp;&amp;t._hideCounterAxisInsideTickLabels(e)}V.getTickFormat=function(t){var e,r,n,i,a,o,s,l;function c(t){return&quot;string&quot;!=typeof t?t:Number(t.replace(&quot;M&quot;,&quot;&quot;))*T}function u(t,e){var r=[&quot;L&quot;,&quot;D&quot;];if(typeof t==typeof e){if(&quot;number&quot;==typeof t)return t-e;var n=r.indexOf(t.charAt(0)),i=r.indexOf(e.charAt(0));return n===i?Number(t.replace(/(L|D)/g,&quot;&quot;))-Number(e.replace(/(L|D)/g,&quot;&quot;)):n-i}return&quot;number&quot;==typeof t?1:-1}function f(t,e){var r=null===e[0],n=null===e[1],i=u(t,e[0])&gt;=0,a=u(t,e[1])&lt;=0;return(r||i)&amp;&amp;(n||a)}if(t.tickformatstops&amp;&amp;t.tickformatstops.length&gt;0)switch(t.type){case&quot;date&quot;:case&quot;linear&quot;:for(e=0;e&lt;t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&amp;&amp;(i=t.dtick,a=n.dtickrange,o=void 0,s=void 0,l=void 0,o=c||function(t){return t},s=a[0],l=a[1],(!s&amp;&amp;&quot;number&quot;!=typeof s||o(s)&lt;=o(i))&amp;&amp;(!l&amp;&amp;&quot;number&quot;!=typeof l||o(l)&gt;=o(i)))){r=n;break}break;case&quot;log&quot;:for(e=0;e&lt;t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&amp;&amp;f(t.dtick,n.dtickrange)){r=n;break}}return r?r.value:t.tickformat},V.getSubplots=function(t,e){var r=t._fullLayout._subplots,n=r.cartesian.concat(r.gl2d||[]),i=e?V.findSubplotsWithAxis(n,e):n;return i.sort((function(t,e){var r=t.substr(1).split(&quot;y&quot;),n=e.substr(1).split(&quot;y&quot;);return r[0]===n[0]?+r[1]-+n[1]:+r[0]-+n[0]})),i},V.findSubplotsWithAxis=function(t,e){for(var r=new RegExp(&quot;x&quot;===e._id.charAt(0)?&quot;^&quot;+e._id+&quot;y&quot;:e._id+&quot;$&quot;),n=[],i=0;i&lt;t.length;i++){var a=t[i];r.test(a)&amp;&amp;n.push(a)}return n},V.makeClipPaths=function(t){var e=t._fullLayout;if(!e._hasOnlyLargeSploms){var r,i,a={_offset:0,_length:e.width,_id:&quot;&quot;},o={_offset:0,_length:e.height,_id:&quot;&quot;},s=V.list(t,&quot;x&quot;,!0),l=V.list(t,&quot;y&quot;,!0),c=[];for(r=0;r&lt;s.length;r++)for(c.push({x:s[r],y:o}),i=0;i&lt;l.length;i++)0===r&amp;&amp;c.push({x:a,y:l[i]}),c.push({x:s[r],y:l[i]});var u=e._clips.selectAll(&quot;.axesclip&quot;).data(c,(function(t){return t.x._id+t.y._id}));u.enter().append(&quot;clipPath&quot;).classed(&quot;axesclip&quot;,!0).attr(&quot;id&quot;,(function(t){return&quot;clip&quot;+e._uid+t.x._id+t.y._id})).append(&quot;rect&quot;),u.exit().remove(),u.each((function(t){n.select(this).select(&quot;rect&quot;).attr({x:t.x._offset||0,y:t.y._offset||0,width:t.x._length||1,height:t.y._length||1})}))}},V.draw=function(t,e,r){var n=t._fullLayout;&quot;redraw&quot;===e&amp;&amp;n._paper.selectAll(&quot;g.subplot&quot;).each((function(t){var e=t[0],r=n._plots[e];if(r){var i=r.xaxis,a=r.yaxis;r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;tick&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;tick&quot;).remove(),r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;tick2&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;tick2&quot;).remove(),r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;divider&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;divider&quot;).remove(),r.gridlayer&amp;&amp;r.gridlayer.selectAll(&quot;path&quot;).remove(),r.zerolinelayer&amp;&amp;r.zerolinelayer.selectAll(&quot;path&quot;).remove(),n._infolayer.select(&quot;.g-&quot;+i._id+&quot;title&quot;).remove(),n._infolayer.select(&quot;.g-&quot;+a._id+&quot;title&quot;).remove()}}));var i=e&amp;&amp;&quot;redraw&quot;!==e?e:V.listIds(t);return s.syncOrAsync(i.map((function(e){return function(){if(e){var n=V.getFromId(t,e),i=V.drawOne(t,n,r);return n._r=n.range.slice(),n._rl=s.simpleMap(n._r,n.r2l),i}}})))},V.drawOne=function(t,e,r){var n,i,l;r=r||{},e.setScale();var c=t._fullLayout,p=e._id,d=p.charAt(0),m=V.counterLetter(p),g=c._plots[e._mainSubplot];if(g){var v=g[d+&quot;axislayer&quot;],y=e._mainLinePosition,x=e._mainMirrorPosition,b=e._vals=V.calcTicks(e),_=[e.mirror,y,x].join(&quot;_&quot;);for(n=0;n&lt;b.length;n++)b[n].axInfo=_;e._selections={},e._tickAngles&amp;&amp;(e._prevTickAngles=e._tickAngles),e._tickAngles={},e._depth=null;var w={};if(e.visible){var T,k,A=V.makeTransTickFn(e),M=V.makeTransTickLabelFn(e),S=&quot;inside&quot;===e.ticks,E=&quot;outside&quot;===e.ticks;if(&quot;boundaries&quot;===e.tickson){var L=function(t,e){var r,n=[],i=function(t,e){var r=t.xbnd[e];null!==r&amp;&amp;n.push(s.extendFlat({},t,{x:r}))};if(e.length){for(r=0;r&lt;e.length;r++)i(e[r],0);i(e[r-1],1)}return n}(0,b);k=V.clipEnds(e,L),T=S?k:L}else k=V.clipEnds(e,b),T=S&amp;&amp;&quot;period&quot;!==e.ticklabelmode?k:b;var C=e._gridVals=k,P=function(t,e){var r,n,i=[],a=e.length&amp;&amp;e[e.length-1].x&lt;e[0].x,o=function(t,e){var r=t.xbnd[e];null!==r&amp;&amp;i.push(s.extendFlat({},t,{x:r}))};if(t.showdividers&amp;&amp;e.length){for(r=0;r&lt;e.length;r++){var l=e[r];l.text2!==n&amp;&amp;o(l,a?1:0),n=l.text2}o(e[r-1],a?0:1)}return i}(e,b);if(!c._hasOnlyLargeSploms){var I=e._subplotsWith,O={};for(n=0;n&lt;I.length;n++){i=I[n];var z=(l=c._plots[i])[m+&quot;axis&quot;],D=z._mainAxis._id;if(!O[D]){O[D]=1;var R=&quot;x&quot;===d?&quot;M0,&quot;+z._offset+&quot;v&quot;+z._length:&quot;M&quot;+z._offset+&quot;,0h&quot;+z._length;V.drawGrid(t,e,{vals:C,counterAxis:z,layer:l.gridlayer.select(&quot;.&quot;+p),path:R,transFn:A}),V.drawZeroLine(t,e,{counterAxis:z,layer:l.zerolinelayer,path:R,transFn:A})}}}var F=V.getTickSigns(e),B=[];if(e.ticks){var N,H,q,G=V.makeTickPath(e,y,F[2]);if(e._anchorAxis&amp;&amp;e.mirror&amp;&amp;!0!==e.mirror?(N=V.makeTickPath(e,x,F[3]),H=G+N):(N=&quot;&quot;,H=G),e.showdividers&amp;&amp;E&amp;&amp;&quot;boundaries&quot;===e.tickson){var Y={};for(n=0;n&lt;P.length;n++)Y[P[n].x]=1;q=function(t){return Y[t.x]?N:H}}else q=H;V.drawTicks(t,e,{vals:T,layer:v,path:q,transFn:A}),&quot;allticks&quot;===e.mirror&amp;&amp;(B=Object.keys(e._linepositions||{}))}for(n=0;n&lt;B.length;n++){i=B[n],l=c._plots[i];var W=e._linepositions[i]||[],X=V.makeTickPath(e,W[0],F[0])+V.makeTickPath(e,W[1],F[1]);V.drawTicks(t,e,{vals:T,layer:l[d+&quot;axislayer&quot;],path:X,transFn:A})}var Z=[];if(Z.push((function(){return V.drawLabels(t,e,{vals:b,layer:v,plotinfo:l,transFn:M,labelFns:V.makeLabelFns(e,y)})})),&quot;multicategory&quot;===e.type){var J={x:2,y:10}[d];Z.push((function(){var r={x:&quot;height&quot;,y:&quot;width&quot;}[d],n=Q()[r]+J+(e._tickAngles[p+&quot;tick&quot;]?e.tickfont.size*j:0);return V.drawLabels(t,e,{vals:pt(e,b),layer:v,cls:p+&quot;tick2&quot;,repositionOnUpdate:!0,secondary:!0,transFn:A,labelFns:V.makeLabelFns(e,y+n*F[4])})})),Z.push((function(){return e._depth=F[4]*(Q(&quot;tick2&quot;)[e.side]-y),function(t,e,r){var n=e._id+&quot;divider&quot;,i=r.vals,a=r.layer.selectAll(&quot;path.&quot;+n).data(i,mt);a.exit().remove(),a.enter().insert(&quot;path&quot;,&quot;:first-child&quot;).classed(n,1).classed(&quot;crisp&quot;,1).call(f.stroke,e.dividercolor).style(&quot;stroke-width&quot;,h.crispRound(t,e.dividerwidth,1)+&quot;px&quot;),a.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path)}(t,e,{vals:P,layer:v,path:V.makeTickPath(e,y,F[4],e._depth),transFn:A})}))}else e.title.hasOwnProperty(&quot;standoff&quot;)&amp;&amp;Z.push((function(){e._depth=F[4]*(Q()[e.side]-y)}));var K=o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(e);return Z.push((function(){var r,n,i,s,l=e.side.charAt(0),u=U[e.side].charAt(0),f=V.getPxPosition(t,e),h=E?e.ticklen:0;if((e.automargin||K)&amp;&amp;(&quot;multicategory&quot;===e.type?r=Q(&quot;tick2&quot;):(r=Q(),&quot;x&quot;===d&amp;&amp;&quot;b&quot;===l&amp;&amp;(e._depth=Math.max(r.width&gt;0?r.bottom-f:0,h)))),e.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var p=[0,1];if(&quot;x&quot;===d){if(&quot;b&quot;===l?n[l]=e._depth:(n[l]=e._depth=Math.max(r.width&gt;0?f-r.top:0,h),p.reverse()),r.width&gt;0){var g=r.right-(e._offset+e._length);g&gt;0&amp;&amp;(n.xr=1,n.r=g);var v=e._offset-r.left;v&gt;0&amp;&amp;(n.xl=0,n.l=v)}}else if(&quot;l&quot;===l?n[l]=e._depth=Math.max(r.height&gt;0?f-r.left:0,h):(n[l]=e._depth=Math.max(r.height&gt;0?r.right-f:0,h),p.reverse()),r.height&gt;0){var y=r.bottom-(e._offset+e._length);y&gt;0&amp;&amp;(n.yb=0,n.b=y);var x=e._offset-r.top;x&gt;0&amp;&amp;(n.yt=1,n.t=x)}n[m]=&quot;free&quot;===e.anchor?e.position:e._anchorAxis.domain[p[0]],e.title.text!==c._dfltTitle[d]&amp;&amp;(n[l]+=gt(e)+(e.title.standoff||0)),e.mirror&amp;&amp;&quot;free&quot;!==e.anchor&amp;&amp;((i={x:0,y:0,r:0,l:0,t:0,b:0})[u]=e.linewidth,e.mirror&amp;&amp;!0!==e.mirror&amp;&amp;(i[u]+=h),!0===e.mirror||&quot;ticks&quot;===e.mirror?i[m]=e._anchorAxis.domain[p[1]]:&quot;all&quot;!==e.mirror&amp;&amp;&quot;allticks&quot;!==e.mirror||(i[m]=[e._counterDomainMin,e._counterDomainMax][p[1]]))}K&amp;&amp;(s=o.getComponentMethod(&quot;rangeslider&quot;,&quot;autoMarginOpts&quot;)(t,e)),a.autoMargin(t,xt(e),n),a.autoMargin(t,bt(e),i),a.autoMargin(t,_t(e),s)})),r.skipTitle||K&amp;&amp;&quot;bottom&quot;===e.side||Z.push((function(){return function(t,e){var r,n=t._fullLayout,i=e._id,a=i.charAt(0),o=e.title.font.size;if(e.title.hasOwnProperty(&quot;standoff&quot;))r=e._depth+e.title.standoff+gt(e);else{var s=St(e);if(&quot;multicategory&quot;===e.type)r=e._depth;else{var l=1.5*o;s&amp;&amp;(l=.5*o,&quot;outside&quot;===e.ticks&amp;&amp;(l+=e.ticklen)),r=10+l+(e.linewidth?e.linewidth-1:0)}s||(r+=&quot;x&quot;===a?&quot;top&quot;===e.side?o*(e.showticklabels?1:0):o*(e.showticklabels?1.5:.5):&quot;right&quot;===e.side?o*(e.showticklabels?1:.5):o*(e.showticklabels?.5:0))}var c,f,p,d,m=V.getPxPosition(t,e);&quot;x&quot;===a?(f=e._offset+e._length/2,p=&quot;top&quot;===e.side?m-r:m+r):(p=e._offset+e._length/2,f=&quot;right&quot;===e.side?m+r:m-r,c={rotate:&quot;-90&quot;,offset:0});if(&quot;multicategory&quot;!==e.type){var g=e._selections[e._id+&quot;tick&quot;];if(d={selection:g,side:e.side},g&amp;&amp;g.node()&amp;&amp;g.node().parentNode){var v=h.getTranslate(g.node().parentNode);d.offsetLeft=v.x,d.offsetTop=v.y}e.title.hasOwnProperty(&quot;standoff&quot;)&amp;&amp;(d.pad=0)}return u.draw(t,i+&quot;title&quot;,{propContainer:e,propName:e._name+&quot;.title.text&quot;,placeholder:n._dfltTitle[a],avoid:d,transform:c,attributes:{x:f,y:p,&quot;text-anchor&quot;:&quot;middle&quot;}})}(t,e)})),s.syncOrAsync(Z)}}function Q(t){var r=p+(t||&quot;tick&quot;);return w[r]||(w[r]=function(t,e){var r,n,i,a;t._selections[e].size()?(r=1/0,n=-1/0,i=1/0,a=-1/0,t._selections[e].each((function(){var t=yt(this),e=h.bBox(t.node().parentNode);r=Math.min(r,e.top),n=Math.max(n,e.bottom),i=Math.min(i,e.left),a=Math.max(a,e.right)}))):(r=0,n=0,i=0,a=0);return{top:r,bottom:n,left:i,right:a,height:n-r,width:a-i}}(e,r)),w[r]}},V.getTickSigns=function(t){var e=t._id.charAt(0),r={x:&quot;top&quot;,y:&quot;right&quot;}[e],n=t.side===r?1:-1,i=[-1,1,n,-n];return&quot;inside&quot;!==t.ticks==(&quot;x&quot;===e)&amp;&amp;(i=i.map((function(t){return-t}))),t.side&amp;&amp;i.push({l:-1,t:-1,r:1,b:1}[t.side.charAt(0)]),i},V.makeTransTickFn=function(t){return&quot;x&quot;===t._id.charAt(0)?function(e){return l(t._offset+t.l2p(e.x),0)}:function(e){return l(0,t._offset+t.l2p(e.x))}},V.makeTransTickLabelFn=function(t){var e=function(t){var e=t.ticklabelposition||&quot;&quot;,r=function(t){return-1!==e.indexOf(t)},n=r(&quot;top&quot;),i=r(&quot;left&quot;),a=r(&quot;right&quot;),o=r(&quot;bottom&quot;),s=r(&quot;inside&quot;),l=o||i||n||a;if(!l&amp;&amp;!s)return[0,0];var c=t.side,u=l?(t.tickwidth||0)/2:0,f=3,h=t.tickfont?t.tickfont.size:12;(o||n)&amp;&amp;(u+=h*N,f+=(t.linewidth||0)/2);(i||a)&amp;&amp;(u+=(t.linewidth||0)/2,f+=3);s&amp;&amp;&quot;top&quot;===c&amp;&amp;(f-=h*(1-N));(i||n)&amp;&amp;(u=-u);&quot;bottom&quot;!==c&amp;&amp;&quot;right&quot;!==c||(f=-f);return[l?u:0,s?f:0]}(t),r=e[0],n=e[1];return&quot;x&quot;===t._id.charAt(0)?function(e){return l(r+t._offset+t.l2p(dt(e)),n)}:function(e){return l(n,r+t._offset+t.l2p(dt(e)))}},V.makeTickPath=function(t,e,r,n){n=void 0!==n?n:t.ticklen;var i=t._id.charAt(0),a=(t.linewidth||1)/2;return&quot;x&quot;===i?&quot;M0,&quot;+(e+a*r)+&quot;v&quot;+n*r:&quot;M&quot;+(e+a*r)+&quot;,0h&quot;+n*r},V.makeLabelFns=function(t,e,r){var n=t.ticklabelposition||&quot;&quot;,a=function(t){return-1!==n.indexOf(t)},o=a(&quot;top&quot;),l=a(&quot;left&quot;),c=a(&quot;right&quot;),u=a(&quot;bottom&quot;)||l||o||c,f=a(&quot;inside&quot;),h=&quot;inside&quot;===n&amp;&amp;&quot;inside&quot;===t.ticks||!f&amp;&amp;&quot;outside&quot;===t.ticks&amp;&amp;&quot;boundaries&quot;!==t.tickson,p=0,d=0,m=h?t.ticklen:0;if(f?m*=-1:u&amp;&amp;(m=0),h&amp;&amp;(p+=m,r)){var g=s.deg2rad(r);p=m*Math.cos(g)+1,d=m*Math.sin(g)}t.showticklabels&amp;&amp;(h||t.showline)&amp;&amp;(p+=.2*t.tickfont.size);var v,y,x,b,_,w={labelStandoff:p+=(t.linewidth||1)/2*(f?-1:1),labelShift:d},T=0,k=t.side,A=t._id.charAt(0),M=t.tickangle;if(&quot;x&quot;===A)b=(_=!f&amp;&amp;&quot;bottom&quot;===k||f&amp;&amp;&quot;top&quot;===k)?1:-1,f&amp;&amp;(b*=-1),v=d*b,y=e+p*b,x=_?1:-.2,90===Math.abs(M)&amp;&amp;(f?x+=B:x=-90===M&amp;&amp;&quot;bottom&quot;===k?N:90===M&amp;&amp;&quot;top&quot;===k?B:.5,T=B/2*(M/90)),w.xFn=function(t){return t.dx+v+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*x},w.anchorFn=function(t,e){if(u){if(l)return&quot;end&quot;;if(c)return&quot;start&quot;}return i(e)&amp;&amp;0!==e&amp;&amp;180!==e?e*b&lt;0!==f?&quot;end&quot;:&quot;start&quot;:&quot;middle&quot;},w.heightFn=function(e,r,n){return r&lt;-60||r&gt;60?-.5*n:&quot;top&quot;===t.side!==f?-n:0};else if(&quot;y&quot;===A){if(b=(_=!f&amp;&amp;&quot;left&quot;===k||f&amp;&amp;&quot;right&quot;===k)?1:-1,f&amp;&amp;(b*=-1),v=p,y=d*b,x=0,f||90!==Math.abs(M)||(x=-90===M&amp;&amp;&quot;left&quot;===k||90===M&amp;&amp;&quot;right&quot;===k?N:.5),f){var S=i(M)?+M:0;if(0!==S){var E=s.deg2rad(S);T=Math.abs(Math.sin(E))*N*b,x=0}}w.xFn=function(t){return t.dx+e-(v+t.fontSize*x)*b+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*B},w.anchorFn=function(t,e){return i(e)&amp;&amp;90===Math.abs(e)?&quot;middle&quot;:_?&quot;end&quot;:&quot;start&quot;},w.heightFn=function(e,r,n){return&quot;right&quot;===t.side&amp;&amp;(r*=-1),r&lt;-30?-n:r&lt;30?-.5*n:0}}return w},V.drawTicks=function(t,e,r){r=r||{};var n=e._id+&quot;tick&quot;,i=r.vals;&quot;period&quot;===e.ticklabelmode&amp;&amp;(i=i.slice()).shift();var a=r.layer.selectAll(&quot;path.&quot;+n).data(e.ticks?i:[],mt);a.exit().remove(),a.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;ticks&quot;,1).classed(&quot;crisp&quot;,!1!==r.crisp).call(f.stroke,e.tickcolor).style(&quot;stroke-width&quot;,h.crispRound(t,e.tickwidth,1)+&quot;px&quot;).attr(&quot;d&quot;,r.path).style(&quot;display&quot;,null),Et(e,[D]),a.attr(&quot;transform&quot;,r.transFn)},V.drawGrid=function(t,e,r){r=r||{};var n=e._id+&quot;grid&quot;,i=r.vals,a=r.counterAxis;if(!1===e.showgrid)i=[];else if(a&amp;&amp;V.shouldShowZeroLine(t,e,a))for(var o=&quot;array&quot;===e.tickmode,s=0;s&lt;i.length;s++){var l=i[s].x;if(o?!l:Math.abs(l)&lt;e.dtick/100){if(i=i.slice(0,s).concat(i.slice(s+1)),!o)break;s--}}var c=r.layer.selectAll(&quot;path.&quot;+n).data(i,mt);c.exit().remove(),c.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;crisp&quot;,!1!==r.crisp),e._gw=h.crispRound(t,e.gridwidth,1),c.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path).call(f.stroke,e.gridcolor||&quot;#ddd&quot;).style(&quot;stroke-width&quot;,e._gw+&quot;px&quot;).style(&quot;display&quot;,null),Et(e,[z]),&quot;function&quot;==typeof r.path&amp;&amp;c.attr(&quot;d&quot;,r.path)},V.drawZeroLine=function(t,e,r){r=r||r;var n=e._id+&quot;zl&quot;,i=V.shouldShowZeroLine(t,e,r.counterAxis),a=r.layer.selectAll(&quot;path.&quot;+n).data(i?[{x:0,id:e._id}]:[]);a.exit().remove(),a.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;zl&quot;,1).classed(&quot;crisp&quot;,!1!==r.crisp).each((function(){r.layer.selectAll(&quot;path&quot;).sort((function(t,e){return G(t.id,e.id)}))})),a.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path).call(f.stroke,e.zerolinecolor||f.defaultLine).style(&quot;stroke-width&quot;,h.crispRound(t,e.zerolinewidth,e._gw||1)+&quot;px&quot;).style(&quot;display&quot;,null),Et(e,[O])},V.drawLabels=function(t,e,r){r=r||{};var a=t._fullLayout,o=e._id,u=o.charAt(0),f=r.cls||o+&quot;tick&quot;,p=r.vals,d=r.labelFns,m=r.secondary?0:e.tickangle,g=(e._prevTickAngles||{})[f],v=r.layer.selectAll(&quot;g.&quot;+f).data(e.showticklabels?p:[],mt),y=[];function x(t,a){t.each((function(t){var o=n.select(this),s=o.select(&quot;.text-math-group&quot;),u=d.anchorFn(t,a),f=r.transFn.call(o.node(),t)+(i(a)&amp;&amp;0!=+a?&quot; rotate(&quot;+a+&quot;,&quot;+d.xFn(t)+&quot;,&quot;+(d.yFn(t)-t.fontSize/2)+&quot;)&quot;:&quot;&quot;),p=c.lineCount(o),m=j*t.fontSize,g=d.heightFn(t,i(a)?+a:0,(p-1)*m);if(g&amp;&amp;(f+=l(0,g)),s.empty()){var v=o.select(&quot;text&quot;);v.attr({transform:f,&quot;text-anchor&quot;:u}),v.style(&quot;opacity&quot;,1),e._adjustTickLabelsOverflow&amp;&amp;e._adjustTickLabelsOverflow()}else{var y=h.bBox(s.node()).width*{end:-.5,start:.5}[u];s.attr(&quot;transform&quot;,f+l(y,0))}}))}v.enter().append(&quot;g&quot;).classed(f,1).append(&quot;text&quot;).attr(&quot;text-anchor&quot;,&quot;middle&quot;).each((function(e){var r=n.select(this),i=t._promises.length;r.call(c.positionText,d.xFn(e),d.yFn(e)).call(h.font,e.font,e.fontSize,e.fontColor).text(e.text).call(c.convertToTspans,t),t._promises[i]?y.push(t._promises.pop().then((function(){x(r,m)}))):x(r,m)})),Et(e,[R]),v.exit().remove(),r.repositionOnUpdate&amp;&amp;v.each((function(t){n.select(this).select(&quot;text&quot;).call(c.positionText,d.xFn(t),d.yFn(t))})),e._adjustTickLabelsOverflow=function(){var r=e.ticklabeloverflow;if(r&amp;&amp;&quot;allow&quot;!==r){var i=-1!==r.indexOf(&quot;hide&quot;),o=&quot;x&quot;===e._id.charAt(0),l=0,c=o?t._fullLayout.width:t._fullLayout.height;if(-1!==r.indexOf(&quot;domain&quot;)){var u=s.simpleMap(e.range,e.r2l);l=e.l2p(u[0])+e._offset,c=e.l2p(u[1])+e._offset}var f=Math.min(l,c),p=Math.max(l,c),d=e.side,m=1/0,g=-1/0;for(var y in v.each((function(t){var r=n.select(this);if(r.select(&quot;.text-math-group&quot;).empty()){var a=h.bBox(r.node()),s=0;o?(a.right&gt;p||a.left&lt;f)&amp;&amp;(s=1):(a.bottom&gt;p||a.top+(e.tickangle?0:t.fontSize/4)&lt;f)&amp;&amp;(s=1);var l=r.select(&quot;text&quot;);s?i&amp;&amp;l.style(&quot;opacity&quot;,0):(l.style(&quot;opacity&quot;,1),m=&quot;bottom&quot;===d||&quot;right&quot;===d?Math.min(m,o?a.top:a.left):-1/0,g=&quot;top&quot;===d||&quot;left&quot;===d?Math.max(g,o?a.bottom:a.right):1/0)}})),a._plots){var x=a._plots[y];if(e._id===x.xaxis._id||e._id===x.yaxis._id){var b=o?x.yaxis:x.xaxis;b&amp;&amp;(b[&quot;_visibleLabelMin_&quot;+e._id]=m,b[&quot;_visibleLabelMax_&quot;+e._id]=g)}}}},e._hideCounterAxisInsideTickLabels=function(t){var r=&quot;x&quot;===e._id.charAt(0),i=[];for(var o in a._plots){var s=a._plots[o];e._id!==s.xaxis._id&amp;&amp;e._id!==s.yaxis._id||i.push(r?s.yaxis:s.xaxis)}i.forEach((function(r,i){r&amp;&amp;St(r)&amp;&amp;(t||[O,z,D,R]).forEach((function(t){var o=&quot;tick&quot;===t.K&amp;&amp;&quot;text&quot;===t.L&amp;&amp;&quot;period&quot;===e.ticklabelmode,s=a._plots[e._mainSubplot];(t.K===O.K?s.zerolinelayer.selectAll(&quot;.&quot;+e._id+&quot;zl&quot;):t.K===z.K?s.gridlayer.selectAll(&quot;.&quot;+e._id):s[e._id.charAt(0)+&quot;axislayer&quot;]).each((function(){var a=n.select(this);t.L&amp;&amp;(a=a.selectAll(t.L)),a.each((function(a){var s=e.l2p(o?dt(a):a.x)+e._offset,l=n.select(this);s&lt;e[&quot;_visibleLabelMax_&quot;+r._id]&amp;&amp;s&gt;e[&quot;_visibleLabelMin_&quot;+r._id]?l.style(&quot;display&quot;,&quot;none&quot;):&quot;tick&quot;!==t.K||i||l.style(&quot;display&quot;,null)}))}))}))}))},x(v,g+1?g:m);var b=null;e._selections&amp;&amp;(e._selections[f]=v);var _=[function(){return y.length&amp;&amp;Promise.all(y)}];e.automargin&amp;&amp;a._redrawFromAutoMarginCount&amp;&amp;90===g?(b=90,_.push((function(){x(v,g)}))):_.push((function(){if(x(v,m),p.length&amp;&amp;&quot;x&quot;===u&amp;&amp;!i(m)&amp;&amp;(&quot;log&quot;!==e.type||&quot;D&quot;!==String(e.dtick).charAt(0))){b=0;var t,n=0,a=[];if(v.each((function(t){n=Math.max(n,t.fontSize);var r=e.l2p(t.x),i=yt(this),o=h.bBox(i.node());a.push({top:0,bottom:10,height:10,left:r-o.width/2,right:r+o.width/2+2,width:o.width+2})})),&quot;boundaries&quot;!==e.tickson&amp;&amp;!e.showdividers||r.secondary){var o=p.length,l=Math.abs((p[o-1].x-p[0].x)*e._m)/(o-1),c=e.ticklabelposition||&quot;&quot;,f=function(t){return-1!==c.indexOf(t)},d=f(&quot;top&quot;),g=f(&quot;left&quot;),y=f(&quot;right&quot;),_=f(&quot;bottom&quot;)||g||d||y?(e.tickwidth||0)+6:0,w=l&lt;2.5*n||&quot;multicategory&quot;===e.type||&quot;realaxis&quot;===e._name;for(t=0;t&lt;a.length-1;t++)if(s.bBoxIntersect(a[t],a[t+1],_)){b=w?90:30;break}}else{var T=2;for(e.ticks&amp;&amp;(T+=e.tickwidth/2),t=0;t&lt;a.length;t++){var k=p[t].xbnd,A=a[t];if(null!==k[0]&amp;&amp;A.left-e.l2p(k[0])&lt;T||null!==k[1]&amp;&amp;e.l2p(k[1])-A.right&lt;T){b=90;break}}}b&amp;&amp;x(v,b)}})),e._tickAngles&amp;&amp;_.push((function(){e._tickAngles[f]=null===b?i(m)?m:0:b}));var w=e._anchorAxis;w&amp;&amp;w.autorange&amp;&amp;St(e)&amp;&amp;!Y(a,e._id)&amp;&amp;(a._insideTickLabelsAutorange||(a._insideTickLabelsAutorange={}),a._insideTickLabelsAutorange[w._name+&quot;.autorange&quot;]=w.autorange,_.push((function(){v.each((function(t,r){var n=yt(this);n.select(&quot;.text-math-group&quot;).empty()&amp;&amp;(e._vals[r].bb=h.bBox(n.node()))}))})));var T=s.syncOrAsync(_);return T&amp;&amp;T.then&amp;&amp;t._promises.push(T),T},V.getPxPosition=function(t,e){var r,n=t._fullLayout._size,i=e._id.charAt(0),a=e.side;return&quot;free&quot;!==e.anchor?r=e._anchorAxis:&quot;x&quot;===i?r={_offset:n.t+(1-(e.position||0))*n.h,_length:0}:&quot;y&quot;===i&amp;&amp;(r={_offset:n.l+(e.position||0)*n.w,_length:0}),&quot;top&quot;===a||&quot;left&quot;===a?r._offset:&quot;bottom&quot;===a||&quot;right&quot;===a?r._offset+r._length:void 0},V.shouldShowZeroLine=function(t,e,r){var n=s.simpleMap(e.range,e.r2l);return n[0]*n[1]&lt;=0&amp;&amp;e.zeroline&amp;&amp;(&quot;linear&quot;===e.type||&quot;-&quot;===e.type)&amp;&amp;!(e.rangebreaks&amp;&amp;e.maskBreaks(0)===I)&amp;&amp;(vt(e,0)||!function(t,e,r,n){var i=r._mainAxis;if(!i)return;var a=t._fullLayout,o=e._id.charAt(0),s=V.counterLetter(e._id),l=e._offset+(Math.abs(n[0])&lt;Math.abs(n[1])==(&quot;x&quot;===o)?0:e._length);function c(t){if(!t.showline||!t.linewidth)return!1;var r=Math.max((t.linewidth+e.zerolinewidth)/2,1);function n(t){return&quot;number&quot;==typeof t&amp;&amp;Math.abs(t-l)&lt;r}if(n(t._mainLinePosition)||n(t._mainMirrorPosition))return!0;var i=t._linepositions||{};for(var a in i)if(n(i[a][0])||n(i[a][1]))return!0}var u=a._plots[r._mainSubplot];if(!(u.mainplotinfo||u).overlays.length)return c(r);for(var f=V.list(t,s),h=0;h&lt;f.length;h++){var p=f[h];if(p._mainAxis===i&amp;&amp;c(p))return!0}}(t,e,r,n)||function(t,e){for(var r=t._fullData,n=e._mainSubplot,i=e._id.charAt(0),a=0;a&lt;r.length;a++){var s=r[a];if(!0===s.visible&amp;&amp;s.xaxis+s.yaxis===n){if(o.traceIs(s,&quot;bar-like&quot;)&amp;&amp;s.orientation==={x:&quot;h&quot;,y:&quot;v&quot;}[i])return!0;if(s.fill&amp;&amp;s.fill.charAt(s.fill.length-1)===i)return!0}}return!1}(t,e))},V.clipEnds=function(t,e){return e.filter((function(e){return vt(t,e.x)}))},V.allowAutoMargin=function(t){for(var e=V.list(t,&quot;&quot;,!0),r=0;r&lt;e.length;r++){var n=e[r];n.automargin&amp;&amp;(a.allowAutoMargin(t,xt(n)),n.mirror&amp;&amp;a.allowAutoMargin(t,bt(n))),o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(n)&amp;&amp;a.allowAutoMargin(t,_t(n))}},V.swap=function(t,e){for(var r=function(t,e){var r,n,i=[];for(r=0;r&lt;e.length;r++){var a=[],o=t._fullData[e[r]].xaxis,s=t._fullData[e[r]].yaxis;if(o&amp;&amp;s){for(n=0;n&lt;i.length;n++)-1===i[n].x.indexOf(o)&amp;&amp;-1===i[n].y.indexOf(s)||a.push(n);if(a.length){var l,c=i[a[0]];if(a.length&gt;1)for(n=1;n&lt;a.length;n++)l=i[a[n]],wt(c.x,l.x),wt(c.y,l.y);wt(c.x,[o]),wt(c.y,[s])}else i.push({x:[o],y:[s]})}}return i}(t,e),n=0;n&lt;r.length;n++)Tt(t,r[n].x,r[n].y)}},{&quot;../../components/color&quot;:366,&quot;../../components/drawing&quot;:388,&quot;../../components/titles&quot;:464,&quot;../../constants/alignment&quot;:471,&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plots/plots&quot;:619,&quot;../../registry&quot;:638,&quot;./autorange&quot;:553,&quot;./axis_autotype&quot;:555,&quot;./axis_ids&quot;:558,&quot;./clean_ticks&quot;:560,&quot;./layout_attributes&quot;:569,&quot;./set_convert&quot;:576,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:190}],555:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM,o=i.isArrayOrTypedArray,s=i.isDateTime,l=i.cleanNumber,c=Math.round;function u(t,e){return e?n(t):&quot;number&quot;==typeof t}function f(t){return Math.max(1,(t-1)/1e3)}e.exports=function(t,e,r){var i=t,h=r.noMultiCategory;if(o(i)&amp;&amp;!i.length)return&quot;-&quot;;if(!h&amp;&amp;function(t){return o(t[0])&amp;&amp;o(t[1])}(i))return&quot;multicategory&quot;;if(h&amp;&amp;Array.isArray(i[0])){for(var p=[],d=0;d&lt;i.length;d++)if(o(i[d]))for(var m=0;m&lt;i[d].length;m++)p.push(i[d][m]);i=p}if(function(t,e){for(var r=t.length,i=f(r),a=0,o=0,l={},u=0;u&lt;r;u+=i){var h=c(u),p=t[h],d=String(p);l[d]||(l[d]=1,s(p,e)&amp;&amp;a++,n(p)&amp;&amp;o++)}return a&gt;2*o}(i,e))return&quot;date&quot;;var g=&quot;strict&quot;!==r.autotypenumbers;return function(t,e){for(var r=t.length,n=f(r),i=0,o=0,s={},u=0;u&lt;r;u+=n){var h=c(u),p=t[h],d=String(p);if(!s[d]){s[d]=1;var m=typeof p;&quot;boolean&quot;===m?o++:(e?l(p)!==a:&quot;number&quot;===m)?i++:&quot;string&quot;===m&amp;&amp;o++}}return o&gt;2*i}(i,g)?&quot;category&quot;:function(t,e){for(var r=t.length,n=0;n&lt;r;n++)if(u(t[n],e))return!0;return!1}(i,g)?&quot;linear&quot;:&quot;-&quot;}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;fast-isnumeric&quot;:190}],556:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../array_container_defaults&quot;),s=t(&quot;./layout_attributes&quot;),l=t(&quot;./tick_value_defaults&quot;),c=t(&quot;./tick_mark_defaults&quot;),u=t(&quot;./tick_label_defaults&quot;),f=t(&quot;./prefix_suffix_defaults&quot;),h=t(&quot;./category_order_defaults&quot;),p=t(&quot;./line_grid_defaults&quot;),d=t(&quot;./set_convert&quot;),m=t(&quot;./constants&quot;).WEEKDAY_PATTERN,g=t(&quot;./constants&quot;).HOUR_PATTERN;function v(t,e,r){function i(r,n){return a.coerce(t,e,s.rangebreaks,r,n)}if(i(&quot;enabled&quot;)){var o=i(&quot;bounds&quot;);if(o&amp;&amp;o.length&gt;=2){var l,c,u=&quot;&quot;;if(2===o.length)for(l=0;l&lt;2;l++)if(c=x(o[l])){u=m;break}var f=i(&quot;pattern&quot;,u);if(f===m)for(l=0;l&lt;2;l++)(c=x(o[l]))&amp;&amp;(e.bounds[l]=o[l]=c-1);if(f)for(l=0;l&lt;2;l++)switch(c=o[l],f){case m:if(!n(c))return void(e.enabled=!1);if((c=+c)!==Math.floor(c)||c&lt;0||c&gt;=7)return void(e.enabled=!1);e.bounds[l]=o[l]=c;break;case g:if(!n(c))return void(e.enabled=!1);if((c=+c)&lt;0||c&gt;24)return void(e.enabled=!1);e.bounds[l]=o[l]=c}if(!1===r.autorange){var h=r.range;if(h[0]&lt;h[1]){if(o[0]&lt;h[0]&amp;&amp;o[1]&gt;h[1])return void(e.enabled=!1)}else if(o[0]&gt;h[0]&amp;&amp;o[1]&lt;h[1])return void(e.enabled=!1)}}else{var p=i(&quot;values&quot;);if(!p||!p.length)return void(e.enabled=!1);i(&quot;dvalue&quot;)}}}e.exports=function(t,e,r,n,g){var y,x=n.letter,b=n.font||{},_=n.splomStash||{},w=r(&quot;visible&quot;,!n.visibleDflt),T=e._template||{},k=e.type||T.type||&quot;-&quot;;&quot;date&quot;===k&amp;&amp;(i.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;,n.calendar),n.noTicklabelmode||(y=r(&quot;ticklabelmode&quot;)));var A=&quot;&quot;;n.noTicklabelposition&amp;&amp;&quot;multicategory&quot;!==k||(A=a.coerce(t,e,{ticklabelposition:{valType:&quot;enumerated&quot;,dflt:&quot;outside&quot;,values:&quot;period&quot;===y?[&quot;outside&quot;,&quot;inside&quot;]:&quot;x&quot;===x?[&quot;outside&quot;,&quot;inside&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;]:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;]}},&quot;ticklabelposition&quot;)),n.noTicklabeloverflow||r(&quot;ticklabeloverflow&quot;,-1!==A.indexOf(&quot;inside&quot;)?&quot;hide past domain&quot;:&quot;category&quot;===k||&quot;multicategory&quot;===k?&quot;allow&quot;:&quot;hide past div&quot;),d(e,g);var M=!e.isValidRange(t.range);M&amp;&amp;n.reverseDflt&amp;&amp;(M=&quot;reversed&quot;),!r(&quot;autorange&quot;,M)||&quot;linear&quot;!==k&amp;&amp;&quot;-&quot;!==k||r(&quot;rangemode&quot;),r(&quot;range&quot;),e.cleanRange(),h(t,e,r,n),&quot;category&quot;===k||n.noHover||r(&quot;hoverformat&quot;);var S=r(&quot;color&quot;),E=S!==s.color.dflt?S:b.color,L=_.label||g._dfltTitle[x];if(f(t,e,r,k,n),!w)return e;r(&quot;title.text&quot;,L),a.coerceFont(r,&quot;title.font&quot;,{family:b.family,size:a.bigFont(b.size),color:E}),l(t,e,r,k),u(t,e,r,k,n),c(t,e,r,n),p(t,e,r,{dfltColor:S,bgColor:n.bgColor,showGrid:n.showGrid,attributes:s}),(e.showline||e.ticks)&amp;&amp;r(&quot;mirror&quot;),n.automargin&amp;&amp;r(&quot;automargin&quot;);var C,P=&quot;multicategory&quot;===k;n.noTickson||&quot;category&quot;!==k&amp;&amp;!P||!e.ticks&amp;&amp;!e.showgrid||(P&amp;&amp;(C=&quot;boundaries&quot;),&quot;boundaries&quot;===r(&quot;tickson&quot;,C)&amp;&amp;delete e.ticklabelposition);P&amp;&amp;(r(&quot;showdividers&quot;)&amp;&amp;(r(&quot;dividercolor&quot;),r(&quot;dividerwidth&quot;)));if(&quot;date&quot;===k)if(o(t,e,{name:&quot;rangebreaks&quot;,inclusionAttr:&quot;enabled&quot;,handleItemDefaults:v}),e.rangebreaks.length){for(var I=0;I&lt;e.rangebreaks.length;I++)if(e.rangebreaks[I].pattern===m){e._hasDayOfWeekBreaks=!0;break}if(d(e,g),g._has(&quot;scattergl&quot;)||g._has(&quot;splom&quot;))for(var O=0;O&lt;n.data.length;O++){var z=n.data[O];&quot;scattergl&quot;!==z.type&amp;&amp;&quot;splom&quot;!==z.type||(z.visible=!1,a.warn(z.type+&quot; traces do not work on axes with rangebreaks. Setting trace &quot;+z.index+&quot; to `visible: false`.&quot;))}}else delete e.rangebreaks;return e};var y={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function x(t){if(&quot;string&quot;==typeof t)return y[t.substr(0,3).toLowerCase()]}},{&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;../array_container_defaults&quot;:549,&quot;./category_order_defaults&quot;:559,&quot;./constants&quot;:561,&quot;./layout_attributes&quot;:569,&quot;./line_grid_defaults&quot;:571,&quot;./prefix_suffix_defaults&quot;:573,&quot;./set_convert&quot;:576,&quot;./tick_label_defaults&quot;:578,&quot;./tick_mark_defaults&quot;:579,&quot;./tick_value_defaults&quot;:580,&quot;fast-isnumeric&quot;:190}],557:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/docs&quot;),i=n.FORMAT_LINK,a=n.DATE_FORMAT_LINK;function o(t,e){return[&quot;Sets the &quot;+t+&quot; formatting rule&quot;+(e?&quot;for `&quot;+e+&quot;` &quot;:&quot;&quot;),&quot;using d3 formatting mini-languages&quot;,&quot;which are very similar to those in Python. For numbers, see: &quot;+i+&quot;.&quot;].join(&quot; &quot;)}function s(t,e){return o(t,e)+[&quot; And for dates see: &quot;+a+&quot;.&quot;,&quot;We add two items to d3's date formatter:&quot;,&quot;*%h* for half of the year as a decimal number as well as&quot;,&quot;*%{n}f* for fractional seconds&quot;,&quot;with n digits. For example, *2016-10-13 09:15:23.456* with tickformat&quot;,&quot;*%H~%M~%S.%2f* would display *09~15~23.46*&quot;].join(&quot; &quot;)}e.exports={axisHoverFormat:function(t,e){return{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;none&quot;,description:(e?o:s)(&quot;hover text&quot;,t)+[&quot;By default the values are formatted using &quot;+(e?&quot;generic number format&quot;:&quot;`&quot;+t+&quot;axis.hoverformat`&quot;)+&quot;.&quot;].join(&quot; &quot;)}},descriptionOnlyNumbers:o,descriptionWithDates:s}},{&quot;../../constants/docs&quot;:474}],558:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./constants&quot;);function a(t,e){if(e&amp;&amp;e.length)for(var r=0;r&lt;e.length;r++)if(e[r][t])return!0;return!1}r.id2name=function(t){if(&quot;string&quot;==typeof t&amp;&amp;t.match(i.AX_ID_PATTERN)){var e=t.split(&quot; &quot;)[0].substr(1);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),t.charAt(0)+&quot;axis&quot;+e}},r.name2id=function(t){if(t.match(i.AX_NAME_PATTERN)){var e=t.substr(5);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),t.charAt(0)+e}},r.cleanId=function(t,e,r){var n=/( domain)$/.test(t);if(&quot;string&quot;==typeof t&amp;&amp;t.match(i.AX_ID_PATTERN)&amp;&amp;(!e||t.charAt(0)===e)&amp;&amp;(!n||r)){var a=t.split(&quot; &quot;)[0].substr(1).replace(/^0+/,&quot;&quot;);return&quot;1&quot;===a&amp;&amp;(a=&quot;&quot;),t.charAt(0)+a+(n&amp;&amp;r?&quot; domain&quot;:&quot;&quot;)}},r.list=function(t,e,n){var i=t._fullLayout;if(!i)return[];var a,o=r.listIds(t,e),s=new Array(o.length);for(a=0;a&lt;o.length;a++){var l=o[a];s[a]=i[l.charAt(0)+&quot;axis&quot;+l.substr(1)]}if(!n){var c=i._subplots.gl3d||[];for(a=0;a&lt;c.length;a++){var u=i[c[a]];e?s.push(u[e+&quot;axis&quot;]):s.push(u.xaxis,u.yaxis,u.zaxis)}}return s},r.listIds=function(t,e){var r=t._fullLayout;if(!r)return[];var n=r._subplots;return e?n[e+&quot;axis&quot;]:n.xaxis.concat(n.yaxis)},r.getFromId=function(t,e,n){var i=t._fullLayout;return e=void 0===e||&quot;string&quot;!=typeof e?e:e.replace(&quot; domain&quot;,&quot;&quot;),&quot;x&quot;===n?e=e.replace(/y[0-9]*/,&quot;&quot;):&quot;y&quot;===n&amp;&amp;(e=e.replace(/x[0-9]*/,&quot;&quot;)),i[r.id2name(e)]},r.getFromTrace=function(t,e,i){var a=t._fullLayout,o=null;if(n.traceIs(e,&quot;gl3d&quot;)){var s=e.scene;&quot;scene&quot;===s.substr(0,5)&amp;&amp;(o=a[s][i+&quot;axis&quot;])}else o=r.getFromId(t,e[i+&quot;axis&quot;]||i);return o},r.idSort=function(t,e){var r=t.charAt(0),n=e.charAt(0);return r!==n?r&gt;n?1:-1:+(t.substr(1)||1)-+(e.substr(1)||1)},r.ref2id=function(t){return!!/^[xyz]/.test(t)&amp;&amp;t.split(&quot; &quot;)[0]},r.isLinked=function(t,e){return a(e,t._axisMatchGroups)||a(e,t._axisConstraintGroups)}},{&quot;../../registry&quot;:638,&quot;./constants&quot;:561}],559:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){if(&quot;category&quot;===e.type){var i,a=t.categoryarray,o=Array.isArray(a)&amp;&amp;a.length&gt;0;o&amp;&amp;(i=&quot;array&quot;);var s,l=r(&quot;categoryorder&quot;,i);&quot;array&quot;===l&amp;&amp;(s=r(&quot;categoryarray&quot;)),o||&quot;array&quot;!==l||(l=e.categoryorder=&quot;trace&quot;),&quot;trace&quot;===l?e._initialCategories=[]:&quot;array&quot;===l?e._initialCategories=s.slice():(s=function(t,e){var r,n,i,a=e.dataAttr||t._id.charAt(0),o={};if(e.axData)r=e.axData;else for(r=[],n=0;n&lt;e.data.length;n++){var s=e.data[n];s[a+&quot;axis&quot;]===t._id&amp;&amp;r.push(s)}for(n=0;n&lt;r.length;n++){var l=r[n][a];for(i=0;i&lt;l.length;i++){var c=l[i];null!=c&amp;&amp;(o[c]=1)}}return Object.keys(o)}(e,n).sort(),&quot;category ascending&quot;===l?e._initialCategories=s:&quot;category descending&quot;===l&amp;&amp;(e._initialCategories=s.reverse()))}}},{}],560:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;),o=a.ONEDAY,s=a.ONEWEEK;r.dtick=function(t,e){var r=&quot;log&quot;===e,i=&quot;date&quot;===e,a=&quot;category&quot;===e,s=i?o:1;if(!t)return s;if(n(t))return(t=Number(t))&lt;=0?s:a?Math.max(1,Math.round(t)):i?Math.max(.1,t):t;if(&quot;string&quot;!=typeof t||!i&amp;&amp;!r)return s;var l=t.charAt(0),c=t.substr(1);return(c=n(c)?Number(c):0)&lt;=0||!(i&amp;&amp;&quot;M&quot;===l&amp;&amp;c===Math.round(c)||r&amp;&amp;&quot;L&quot;===l||r&amp;&amp;&quot;D&quot;===l&amp;&amp;(1===c||2===c))?s:t},r.tick0=function(t,e,r,a){return&quot;date&quot;===e?i.cleanDate(t,i.dateTick0(r,a%s==0?1:0)):&quot;D1&quot;!==a&amp;&amp;&quot;D2&quot;!==a?n(t)?Number(t):0:void 0}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;fast-isnumeric&quot;:190}],561:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/regex&quot;).counter;e.exports={idRegex:{x:n(&quot;x&quot;,&quot;( domain)?&quot;),y:n(&quot;y&quot;,&quot;( domain)?&quot;)},attrRegex:n(&quot;[xy]axis&quot;),xAxisMatch:n(&quot;xaxis&quot;),yAxisMatch:n(&quot;yaxis&quot;),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:&quot;hour&quot;,WEEKDAY_PATTERN:&quot;day of week&quot;,MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:&quot;-select&quot;,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:[&quot;imagelayer&quot;,&quot;heatmaplayer&quot;,&quot;contourcarpetlayer&quot;,&quot;contourlayer&quot;,&quot;funnellayer&quot;,&quot;waterfalllayer&quot;,&quot;barlayer&quot;,&quot;carpetlayer&quot;,&quot;violinlayer&quot;,&quot;boxlayer&quot;,&quot;ohlclayer&quot;,&quot;scattercarpetlayer&quot;,&quot;scatterlayer&quot;],clipOnAxisFalseQuery:[&quot;.scatterlayer&quot;,&quot;.barlayer&quot;,&quot;.funnellayer&quot;,&quot;.waterfalllayer&quot;],layerValue2layerClass:{&quot;above traces&quot;:&quot;above&quot;,&quot;below traces&quot;:&quot;below&quot;}}},{&quot;../../lib/regex&quot;:520}],562:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./autorange&quot;),a=t(&quot;./axis_ids&quot;).id2name,o=t(&quot;./layout_attributes&quot;),s=t(&quot;./scale_zoom&quot;),l=t(&quot;./set_convert&quot;),c=t(&quot;../../constants/numerical&quot;).ALMOST_EQUAL,u=t(&quot;../../constants/alignment&quot;).FROM_BL;function f(t,e,r){var i=r.axIds,s=r.layoutOut,l=r.hasImage,c=s._axisConstraintGroups,u=s._axisMatchGroups,f=e._id,m=f.charAt(0),g=((s._splomAxes||{})[m]||{})[f]||{},v=e._id,y=&quot;x&quot;===v.charAt(0);function x(r,i){return n.coerce(t,e,o,r,i)}e._matchGroup=null,e._constraintGroup=null,x(&quot;constrain&quot;,l?&quot;domain&quot;:&quot;range&quot;),n.coerce(t,e,{constraintoward:{valType:&quot;enumerated&quot;,values:y?[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;]:[&quot;bottom&quot;,&quot;middle&quot;,&quot;top&quot;],dflt:y?&quot;center&quot;:&quot;middle&quot;}},&quot;constraintoward&quot;);var b,_,w=e.type,T=[];for(b=0;b&lt;i.length;b++){if((_=i[b])!==v)s[a(_)].type===w&amp;&amp;T.push(_)}var k=p(c,v);if(k){var A=[];for(b=0;b&lt;T.length;b++)k[_=T[b]]||A.push(_);T=A}var M,S,E=T.length;E&amp;&amp;(t.matches||g.matches)&amp;&amp;(M=n.coerce(t,e,{matches:{valType:&quot;enumerated&quot;,values:T,dflt:-1!==T.indexOf(g.matches)?g.matches:void 0}},&quot;matches&quot;));var L=l&amp;&amp;!y?e.anchor:void 0;if(E&amp;&amp;!M&amp;&amp;(t.scaleanchor||L)&amp;&amp;(S=n.coerce(t,e,{scaleanchor:{valType:&quot;enumerated&quot;,values:T}},&quot;scaleanchor&quot;,L)),M){e._matchGroup=d(u,v,M,1);var C=s[a(M)],P=h(s,e)/h(s,C);y!==(&quot;x&quot;===M.charAt(0))&amp;&amp;(P=(y?&quot;x&quot;:&quot;y&quot;)+P),d(c,v,M,P)}else t.matches&amp;&amp;-1!==i.indexOf(t.matches)&amp;&amp;n.warn(&quot;ignored &quot;+e._name+'.matches: &quot;'+t.matches+'&quot; to avoid an infinite loop');if(S){var I=x(&quot;scaleratio&quot;);I||(I=e.scaleratio=1),d(c,v,S,I)}else t.scaleanchor&amp;&amp;-1!==i.indexOf(t.scaleanchor)&amp;&amp;n.warn(&quot;ignored &quot;+e._name+'.scaleanchor: &quot;'+t.scaleanchor+'&quot; to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function h(t,e){var r=e.domain;return r||(r=t[a(e.overlaying)].domain),r[1]-r[0]}function p(t,e){for(var r=0;r&lt;t.length;r++)if(t[r][e])return t[r];return null}function d(t,e,r,n){var i,a,o,s,l,c=p(t,e);null===c?((c={})[e]=1,l=t.length,t.push(c)):l=t.indexOf(c);var u=Object.keys(c);for(i=0;i&lt;t.length;i++)if(o=t[i],i!==l&amp;&amp;o[r]){var f=o[r];for(a=0;a&lt;u.length;a++)o[s=u[a]]=m(f,m(n,c[s]));return void t.splice(l,1)}if(1!==n)for(a=0;a&lt;u.length;a++){var h=u[a];c[h]=m(n,c[h])}c[r]=1}function m(t,e){var r,n,i=&quot;&quot;,a=&quot;&quot;;&quot;string&quot;==typeof t&amp;&amp;(r=(i=t.match(/^[xy]*/)[0]).length,t=+t.substr(r)),&quot;string&quot;==typeof e&amp;&amp;(n=(a=e.match(/^[xy]*/)[0]).length,e=+e.substr(n));var o=t*e;return r||n?r&amp;&amp;n&amp;&amp;i.charAt(0)!==a.charAt(0)?r===n?o:(r&gt;n?i.substr(n):a.substr(r))+o:i+a+t*e:o}function g(t,e){for(var r=e._size,n=r.h/r.w,i={},a=Object.keys(t),o=0;o&lt;a.length;o++){var s=a[o],l=t[s];if(&quot;string&quot;==typeof l){var c=l.match(/^[xy]*/)[0],u=c.length;l=+l.substr(u);for(var f=&quot;y&quot;===c.charAt(0)?n:1/n,h=0;h&lt;u;h++)l*=f}i[s]=l}return i}function v(t,e){var r=t._inputDomain,n=u[t.constraintoward],i=r[0]+(r[1]-r[0])*n;t.domain=t._input.domain=[i+(r[0]-i)/e,i+(r[1]-i)/e],t.setScale()}r.handleDefaults=function(t,e,r){var i,o,s,c,u,h,p,d,m=r.axIds,g=r.axHasImage,v=e._axisConstraintGroups=[],y=e._axisMatchGroups=[];for(i=0;i&lt;m.length;i++)f(u=t[c=a(m[i])],h=e[c],{axIds:m,layoutOut:e,hasImage:g[c]});function x(t,r){for(i=0;i&lt;t.length;i++)for(s in o=t[i])e[a(s)][r]=o}for(x(y,&quot;_matchGroup&quot;),i=0;i&lt;v.length;i++)for(s in o=v[i])if((h=e[a(s)]).fixedrange){for(var b in o){var _=a(b);!1===(t[_]||{}).fixedrange&amp;&amp;n.warn(&quot;fixedrange was specified as false for axis &quot;+_+&quot; but was overridden because another axis in its constraint group has fixedrange true&quot;),e[_].fixedrange=!0}break}for(i=0;i&lt;v.length;){for(s in o=v[i]){(h=e[a(s)])._matchGroup&amp;&amp;Object.keys(h._matchGroup).length===Object.keys(o).length&amp;&amp;(v.splice(i,1),i--);break}i++}x(v,&quot;_constraintGroup&quot;);var w=[&quot;constrain&quot;,&quot;range&quot;,&quot;autorange&quot;,&quot;rangemode&quot;,&quot;rangebreaks&quot;,&quot;categoryorder&quot;,&quot;categoryarray&quot;],T=!1,k=!1;function A(){d=h[p],&quot;rangebreaks&quot;===p&amp;&amp;(k=h._hasDayOfWeekBreaks)}for(i=0;i&lt;y.length;i++){o=y[i];for(var M=0;M&lt;w.length;M++){var S;for(s in p=w[M],d=null,o)if(u=t[c=a(s)],h=e[c],p in h){if(!h.matches&amp;&amp;(S=h,p in u)){A();break}null===d&amp;&amp;p in u&amp;&amp;A()}if(&quot;range&quot;===p&amp;&amp;d&amp;&amp;(T=!0),&quot;autorange&quot;===p&amp;&amp;null===d&amp;&amp;T&amp;&amp;(d=!1),null===d&amp;&amp;p in S&amp;&amp;(d=S[p]),null!==d)for(s in o)(h=e[a(s)])[p]=&quot;range&quot;===p?d.slice():d,&quot;rangebreaks&quot;===p&amp;&amp;(h._hasDayOfWeekBreaks=k,l(h,e))}}},r.enforce=function(t){var e,r,n,o,l,u,f,h,p=t._fullLayout,d=p._axisConstraintGroups||[];for(e=0;e&lt;d.length;e++){n=g(d[e],p);var m=Object.keys(n),y=1/0,x=0,b=1/0,_={},w={},T=!1;for(r=0;r&lt;m.length;r++)w[o=m[r]]=l=p[a(o)],l._inputDomain?l.domain=l._inputDomain.slice():l._inputDomain=l.domain.slice(),l._inputRange||(l._inputRange=l.range.slice()),l.setScale(),_[o]=u=Math.abs(l._m)/n[o],y=Math.min(y,u),&quot;domain&quot;!==l.constrain&amp;&amp;l._constraintShrinkable||(b=Math.min(b,u)),delete l._constraintShrinkable,x=Math.max(x,u),&quot;domain&quot;===l.constrain&amp;&amp;(T=!0);if(!(y&gt;c*x)||T)for(r=0;r&lt;m.length;r++)if(u=_[o=m[r]],f=(l=w[o]).constrain,u!==b||&quot;domain&quot;===f)if(h=u/b,&quot;range&quot;===f)s(l,h);else{var k=l._inputDomain,A=(l.domain[1]-l.domain[0])/(k[1]-k[0]),M=(l.r2l(l.range[1])-l.r2l(l.range[0]))/(l.r2l(l._inputRange[1])-l.r2l(l._inputRange[0]));if((h/=A)*M&lt;1){l.domain=l._input.domain=k.slice(),s(l,h);continue}if(M&lt;1&amp;&amp;(l.range=l._input.range=l._inputRange.slice(),h*=M),l.autorange){var S=l.r2l(l.range[0]),E=l.r2l(l.range[1]),L=(S+E)/2,C=L,P=L,I=Math.abs(E-L),O=L-I*h*1.0001,z=L+I*h*1.0001,D=i.makePadFn(p,l,0),R=i.makePadFn(p,l,1);v(l,h);var F,B,N=Math.abs(l._m),j=i.concatExtremes(t,l),U=j.min,V=j.max;for(B=0;B&lt;U.length;B++)(F=U[B].val-D(U[B])/N)&gt;O&amp;&amp;F&lt;C&amp;&amp;(C=F);for(B=0;B&lt;V.length;B++)(F=V[B].val+R(V[B])/N)&lt;z&amp;&amp;F&gt;P&amp;&amp;(P=F);h/=(P-C)/(2*I),C=l.l2r(C),P=l.l2r(P),l.range=l._input.range=S&lt;E?[C,P]:[P,C]}v(l,h)}}},r.getAxisGroup=function(t,e){for(var r=t._axisMatchGroups,n=0;n&lt;r.length;n++){if(r[n][e])return&quot;g&quot;+n}return e},r.clean=function(t,e){if(e._inputDomain){for(var r=!1,n=e._id,i=t._fullLayout._axisConstraintGroups,a=0;a&lt;i.length;a++)if(i[a][n]){r=!0;break}r&amp;&amp;&quot;domain&quot;===e.constrain||(e._input.domain=e.domain=e._inputDomain,delete e._inputDomain)}}},{&quot;../../constants/alignment&quot;:471,&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;./autorange&quot;:553,&quot;./axis_ids&quot;:558,&quot;./layout_attributes&quot;:569,&quot;./scale_zoom&quot;:574,&quot;./set_convert&quot;:576}],563:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=i.numberFormat,o=t(&quot;tinycolor2&quot;),s=t(&quot;has-passive-events&quot;),l=t(&quot;../../registry&quot;),c=i.strTranslate,u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../components/color&quot;),h=t(&quot;../../components/drawing&quot;),p=t(&quot;../../components/fx&quot;),d=t(&quot;./axes&quot;),m=t(&quot;../../lib/setcursor&quot;),g=t(&quot;../../components/dragelement&quot;),v=t(&quot;../../components/dragelement/helpers&quot;),y=v.selectingOrDrawing,x=v.freeMode,b=t(&quot;../../constants/alignment&quot;).FROM_TL,_=t(&quot;../../lib/clear_gl_canvases&quot;),w=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,T=t(&quot;../plots&quot;),k=t(&quot;./axis_ids&quot;).getFromId,A=t(&quot;./select&quot;).prepSelect,M=t(&quot;./select&quot;).clearSelect,S=t(&quot;./select&quot;).selectOnClick,E=t(&quot;./scale_zoom&quot;),L=t(&quot;./constants&quot;),C=L.MINDRAG,P=L.MINZOOM,I=!0;function O(t,e,r,n){var a=i.ensureSingle(t.draglayer,e,r,(function(e){e.classed(&quot;drag&quot;,!0).style({fill:&quot;transparent&quot;,&quot;stroke-width&quot;:0}).attr(&quot;data-subplot&quot;,t.id)}));return a.call(m,n),a.node()}function z(t,e,r,i,a,o,s){var l=O(t,&quot;rect&quot;,e,r);return n.select(l).call(h.setRect,i,a,o,s),l}function D(t,e){for(var r=0;r&lt;t.length;r++)if(!t[r].fixedrange)return e;return&quot;&quot;}function R(t,e,r,n,i){for(var a=0;a&lt;t.length;a++){var o=t[a];if(!o.fixedrange)if(o.rangebreaks){var s=&quot;y&quot;===o._id.charAt(0),l=s?1-e:e,c=s?1-r:r;n[o._name+&quot;.range[0]&quot;]=o.l2r(o.p2l(l*o._length)),n[o._name+&quot;.range[1]&quot;]=o.l2r(o.p2l(c*o._length))}else{var u=o._rl[0],f=o._rl[1]-u;n[o._name+&quot;.range[0]&quot;]=o.l2r(u+f*e),n[o._name+&quot;.range[1]&quot;]=o.l2r(u+f*r)}}if(i&amp;&amp;i.length){var h=(e+(1-r))/2;R(i,h,1-h,n,[])}}function F(t,e){for(var r=0;r&lt;t.length;r++){var n=t[r];if(!n.fixedrange)if(n.rangebreaks){var i=n._length,a=(n.p2l(0+e)-n.p2l(0)+(n.p2l(i+e)-n.p2l(i)))/2;n.range=[n.l2r(n._rl[0]-a),n.l2r(n._rl[1]-a)]}else n.range=[n.l2r(n._rl[0]-e/n._m),n.l2r(n._rl[1]-e/n._m)]}}function B(t){return 1-(t&gt;=0?Math.min(t,.9):1/(1/Math.max(t,-.3)+3.222))}function N(t,e,r,n,i){return t.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox&quot;).style({fill:e&gt;.2?&quot;rgba(0,0,0,0)&quot;:&quot;rgba(255,255,255,0)&quot;,&quot;stroke-width&quot;:0}).attr(&quot;transform&quot;,c(r,n)).attr(&quot;d&quot;,i+&quot;Z&quot;)}function j(t,e,r){return t.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).style({fill:f.background,stroke:f.defaultLine,&quot;stroke-width&quot;:1,opacity:0}).attr(&quot;transform&quot;,c(e,r)).attr(&quot;d&quot;,&quot;M0,0Z&quot;)}function U(t,e,r,n,i,a){t.attr(&quot;d&quot;,n+&quot;M&quot;+r.l+&quot;,&quot;+r.t+&quot;v&quot;+r.h+&quot;h&quot;+r.w+&quot;v-&quot;+r.h+&quot;h-&quot;+r.w+&quot;Z&quot;),V(t,e,i,a)}function V(t,e,r,n){r||(t.transition().style(&quot;fill&quot;,n&gt;.2?&quot;rgba(0,0,0,0.4)&quot;:&quot;rgba(255,255,255,0.3)&quot;).duration(200),e.transition().style(&quot;opacity&quot;,1).duration(200))}function H(t){n.select(t).selectAll(&quot;.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners&quot;).remove()}function q(t){I&amp;&amp;t.data&amp;&amp;t._context.showTips&amp;&amp;(i.notifier(i._(t,&quot;Double-click to zoom back out&quot;),&quot;long&quot;),I=!1)}function G(t){var e=Math.floor(Math.min(t.b-t.t,t.r-t.l,P)/2);return&quot;M&quot;+(t.l-3.5)+&quot;,&quot;+(t.t-.5+e)+&quot;h3v&quot;+-e+&quot;h&quot;+e+&quot;v-3h-&quot;+(e+3)+&quot;ZM&quot;+(t.r+3.5)+&quot;,&quot;+(t.t-.5+e)+&quot;h-3v&quot;+-e+&quot;h&quot;+-e+&quot;v-3h&quot;+(e+3)+&quot;ZM&quot;+(t.r+3.5)+&quot;,&quot;+(t.b+.5-e)+&quot;h-3v&quot;+e+&quot;h&quot;+-e+&quot;v3h&quot;+(e+3)+&quot;ZM&quot;+(t.l-3.5)+&quot;,&quot;+(t.b+.5-e)+&quot;h3v&quot;+e+&quot;h&quot;+e+&quot;v3h-&quot;+(e+3)+&quot;Z&quot;}function Y(t,e,r,n,a){for(var o,s,l,c,u=!1,f={},h={},p=(a||{}).xaHash,d=(a||{}).yaHash,m=0;m&lt;e.length;m++){var g=e[m];for(o in r)if(g[o]){for(l in g)a&amp;&amp;(p[l]||d[l])||(&quot;x&quot;===l.charAt(0)?r:n)[l]||(f[l]=o);for(s in n)a&amp;&amp;(p[s]||d[s])||!g[s]||(u=!0)}for(s in n)if(g[s])for(c in g)a&amp;&amp;(p[c]||d[c])||(&quot;x&quot;===c.charAt(0)?r:n)[c]||(h[c]=s)}u&amp;&amp;(i.extendFlat(f,h),h={});var v={},y=[];for(l in f){var x=k(t,l);y.push(x),v[x._id]=x}var b={},_=[];for(c in h){var w=k(t,c);_.push(w),b[w._id]=w}return{xaHash:v,yaHash:b,xaxes:y,yaxes:_,xLinks:f,yLinks:h,isSubplotConstrained:u}}function W(t,e){if(s){var r=void 0!==t.onwheel?&quot;wheel&quot;:&quot;mousewheel&quot;;t._onwheel&amp;&amp;t.removeEventListener(r,t._onwheel),t._onwheel=e,t.addEventListener(r,e,{passive:!1})}else void 0!==t.onwheel?t.onwheel=e:void 0!==t.onmousewheel?t.onmousewheel=e:t.isAddedWheelEvent||(t.isAddedWheelEvent=!0,t.addEventListener(&quot;wheel&quot;,e,{passive:!1}))}function X(t){var e=[];for(var r in t)e.push(t[r]);return e}e.exports={makeDragBox:function(t,e,r,s,c,f,m,v){var I,O,V,Z,J,K,Q,$,tt,et,rt,nt,it,at,ot,st,lt,ct,ut,ft,ht,pt,dt,mt=t._fullLayout._zoomlayer,gt=m+v===&quot;nsew&quot;,vt=1===(m+v).length;function yt(){if(I=e.xaxis,O=e.yaxis,tt=I._length,et=O._length,Q=I._offset,$=O._offset,(V={})[I._id]=I,(Z={})[O._id]=O,m&amp;&amp;v)for(var r=e.overlays,n=0;n&lt;r.length;n++){var i=r[n].xaxis;V[i._id]=i;var a=r[n].yaxis;Z[a._id]=a}J=X(V),K=X(Z),it=D(J,v),at=D(K,m),ot=!at&amp;&amp;!it,nt=Y(t,t._fullLayout._axisMatchGroups,V,Z);var o=(rt=Y(t,t._fullLayout._axisConstraintGroups,V,Z,nt)).isSubplotConstrained||nt.isSubplotConstrained;st=v||o,lt=m||o;var s=t._fullLayout;ct=s._has(&quot;scattergl&quot;),ut=s._has(&quot;splom&quot;),ft=s._has(&quot;svg&quot;)}yt();var xt=function(t,e,r){if(!t)return&quot;pointer&quot;;if(&quot;nsew&quot;===t)return r?&quot;&quot;:&quot;pan&quot;===e?&quot;move&quot;:&quot;crosshair&quot;;return t.toLowerCase()+&quot;-resize&quot;}(at+it,t._fullLayout.dragmode,gt),bt=z(e,m+v+&quot;drag&quot;,xt,r,s,c,f);if(ot&amp;&amp;!gt)return bt.onmousedown=null,bt.style.pointerEvents=&quot;none&quot;,bt;var _t,wt,Tt,kt,At,Mt,St,Et,Lt,Ct,Pt={element:bt,gd:t,plotinfo:e};function It(){Pt.plotinfo.selection=!1,M(t)}function Ot(t,r){var i=Pt.gd;if(i._fullLayout._activeShapeIndex&gt;=0)i._fullLayout._deactivateShape(i);else{var o=i._fullLayout.clickmode;if(H(i),2!==t||vt||qt(),gt)o.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;S(r,i,J,K,e.id,Pt),o.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;p.click(i,r,e.id);else if(1===t&amp;&amp;vt){var s=m?O:I,c=&quot;s&quot;===m||&quot;w&quot;===v?0:1,f=s._name+&quot;.range[&quot;+c+&quot;]&quot;,h=function(t,e){var r,n=t.range[e],i=Math.abs(n-t.range[1-e]);return&quot;date&quot;===t.type?n:&quot;log&quot;===t.type?(r=Math.ceil(Math.max(0,-Math.log(i)/Math.LN10))+3,a(&quot;.&quot;+r+&quot;g&quot;)(Math.pow(10,n))):(r=Math.floor(Math.log(Math.abs(n))/Math.LN10)-Math.floor(Math.log(i)/Math.LN10)+4,a(&quot;.&quot;+String(r)+&quot;g&quot;)(n))}(s,c),d=&quot;left&quot;,g=&quot;middle&quot;;if(s.fixedrange)return;m?(g=&quot;n&quot;===m?&quot;top&quot;:&quot;bottom&quot;,&quot;right&quot;===s.side&amp;&amp;(d=&quot;right&quot;)):&quot;e&quot;===v&amp;&amp;(d=&quot;right&quot;),i._context.showAxisRangeEntryBoxes&amp;&amp;n.select(bt).call(u.makeEditable,{gd:i,immediate:!0,background:i._fullLayout.paper_bgcolor,text:String(h),fill:s.tickfont?s.tickfont.color:&quot;#444&quot;,horizontalAlign:d,verticalAlign:g}).on(&quot;edit&quot;,(function(t){var e=s.d2r(t);void 0!==e&amp;&amp;l.call(&quot;_guiRelayout&quot;,i,f,e)}))}}}function zt(e,r){if(t._transitioningWithDuration)return!1;var n=Math.max(0,Math.min(tt,pt*e+_t)),i=Math.max(0,Math.min(et,dt*r+wt)),a=Math.abs(n-_t),o=Math.abs(i-wt);function s(){St=&quot;&quot;,Tt.r=Tt.l,Tt.t=Tt.b,Lt.attr(&quot;d&quot;,&quot;M0,0Z&quot;)}if(Tt.l=Math.min(_t,n),Tt.r=Math.max(_t,n),Tt.t=Math.min(wt,i),Tt.b=Math.max(wt,i),rt.isSubplotConstrained)a&gt;P||o&gt;P?(St=&quot;xy&quot;,a/tt&gt;o/et?(o=a*et/tt,wt&gt;i?Tt.t=wt-o:Tt.b=wt+o):(a=o*tt/et,_t&gt;n?Tt.l=_t-a:Tt.r=_t+a),Lt.attr(&quot;d&quot;,G(Tt))):s();else if(nt.isSubplotConstrained)if(a&gt;P||o&gt;P){St=&quot;xy&quot;;var l=Math.min(Tt.l/tt,(et-Tt.b)/et),c=Math.max(Tt.r/tt,(et-Tt.t)/et);Tt.l=l*tt,Tt.r=c*tt,Tt.b=(1-l)*et,Tt.t=(1-c)*et,Lt.attr(&quot;d&quot;,G(Tt))}else s();else!at||o&lt;Math.min(Math.max(.6*a,C),P)?a&lt;C||!it?s():(Tt.t=0,Tt.b=et,St=&quot;x&quot;,Lt.attr(&quot;d&quot;,function(t,e){return&quot;M&quot;+(t.l-.5)+&quot;,&quot;+(e-P-.5)+&quot;h-3v&quot;+(2*P+1)+&quot;h3ZM&quot;+(t.r+.5)+&quot;,&quot;+(e-P-.5)+&quot;h3v&quot;+(2*P+1)+&quot;h-3Z&quot;}(Tt,wt))):!it||a&lt;Math.min(.6*o,P)?(Tt.l=0,Tt.r=tt,St=&quot;y&quot;,Lt.attr(&quot;d&quot;,function(t,e){return&quot;M&quot;+(e-P-.5)+&quot;,&quot;+(t.t-.5)+&quot;v-3h&quot;+(2*P+1)+&quot;v3ZM&quot;+(e-P-.5)+&quot;,&quot;+(t.b+.5)+&quot;v3h&quot;+(2*P+1)+&quot;v-3Z&quot;}(Tt,_t))):(St=&quot;xy&quot;,Lt.attr(&quot;d&quot;,G(Tt)));Tt.w=Tt.r-Tt.l,Tt.h=Tt.b-Tt.t,St&amp;&amp;(Ct=!0),t._dragged=Ct,U(Et,Lt,Tt,At,Mt,kt),Dt(),t.emit(&quot;plotly_relayouting&quot;,ht),Mt=!0}function Dt(){ht={},&quot;xy&quot;!==St&amp;&amp;&quot;x&quot;!==St||(R(J,Tt.l/tt,Tt.r/tt,ht,rt.xaxes),Vt(&quot;x&quot;,ht)),&quot;xy&quot;!==St&amp;&amp;&quot;y&quot;!==St||(R(K,(et-Tt.b)/et,(et-Tt.t)/et,ht,rt.yaxes),Vt(&quot;y&quot;,ht))}function Rt(){Dt(),H(t),Gt(),q(t)}Pt.prepFn=function(e,r,n){var a=Pt.dragmode,s=t._fullLayout.dragmode;s!==a&amp;&amp;(Pt.dragmode=s),yt(),pt=t._fullLayout._invScaleX,dt=t._fullLayout._invScaleY,ot||(gt?e.shiftKey?&quot;pan&quot;===s?s=&quot;zoom&quot;:y(s)||(s=&quot;pan&quot;):e.ctrlKey&amp;&amp;(s=&quot;pan&quot;):s=&quot;pan&quot;),x(s)?Pt.minDrag=1:Pt.minDrag=void 0,y(s)?(Pt.xaxes=J,Pt.yaxes=K,A(e,r,n,Pt,s)):(Pt.clickFn=Ot,y(a)&amp;&amp;It(),ot||(&quot;zoom&quot;===s?(Pt.moveFn=zt,Pt.doneFn=Rt,Pt.minDrag=1,function(e,r,n){var a=bt.getBoundingClientRect();_t=r-a.left,wt=n-a.top,t._fullLayout._calcInverseTransform(t);var s=i.apply3DTransform(t._fullLayout._invTransform)(_t,wt);_t=s[0],wt=s[1],Tt={l:_t,r:_t,w:0,t:wt,b:wt,h:0},kt=t._hmpixcount?t._hmlumcount/t._hmpixcount:o(t._fullLayout.plot_bgcolor).getLuminance(),Mt=!1,St=&quot;xy&quot;,Ct=!1,Et=N(mt,kt,Q,$,At=&quot;M0,0H&quot;+tt+&quot;V&quot;+et+&quot;H0V0&quot;),Lt=j(mt,Q,$)}(0,r,n)):&quot;pan&quot;===s&amp;&amp;(Pt.moveFn=Ut,Pt.doneFn=Gt))),t._fullLayout._redrag=function(){var e=t._dragdata;if(e&amp;&amp;e.element===bt){var r=t._fullLayout.dragmode;y(r)||(yt(),Yt([0,0,tt,et]),Pt.moveFn(e.dx,e.dy))}}},g.init(Pt);var Ft=[0,0,tt,et],Bt=null,Nt=L.REDRAWDELAY,jt=e.mainplot?t._fullLayout._plots[e.mainplot]:e;function Ut(e,r){if(e*=pt,r*=dt,!t._transitioningWithDuration){if(t._fullLayout._replotting=!0,&quot;ew&quot;===it||&quot;ns&quot;===at){var n=it?-e:0,i=at?-r:0;if(nt.isSubplotConstrained){if(it&amp;&amp;at){var a=(e/tt-r/et)/2;n=-(e=a*tt),i=-(r=-a*et)}at?n=-i*tt/et:i=-n*et/tt}return it&amp;&amp;(F(J,e),Vt(&quot;x&quot;)),at&amp;&amp;(F(K,r),Vt(&quot;y&quot;)),Yt([n,i,tt,et]),Ht(),void t.emit(&quot;plotly_relayouting&quot;,ht)}var o,s,l=&quot;w&quot;===it==(&quot;n&quot;===at)?1:-1;if(it&amp;&amp;at&amp;&amp;(rt.isSubplotConstrained||nt.isSubplotConstrained)){var c=(e/tt+l*r/et)/2;e=c*tt,r=l*c*et}if(&quot;w&quot;===it?e=p(J,0,e):&quot;e&quot;===it?e=p(J,1,-e):it||(e=0),&quot;n&quot;===at?r=p(K,1,r):&quot;s&quot;===at?r=p(K,0,-r):at||(r=0),o=&quot;w&quot;===it?e:0,s=&quot;n&quot;===at?r:0,rt.isSubplotConstrained&amp;&amp;!nt.isSubplotConstrained||nt.isSubplotConstrained&amp;&amp;it&amp;&amp;at&amp;&amp;l&gt;0){var u;if(nt.isSubplotConstrained||!it&amp;&amp;1===at.length){for(u=0;u&lt;J.length;u++)J[u].range=J[u]._r.slice(),E(J[u],1-r/et);o=(e=r*tt/et)/2}if(nt.isSubplotConstrained||!at&amp;&amp;1===it.length){for(u=0;u&lt;K.length;u++)K[u].range=K[u]._r.slice(),E(K[u],1-e/tt);s=(r=e*et/tt)/2}}nt.isSubplotConstrained&amp;&amp;at||Vt(&quot;x&quot;),nt.isSubplotConstrained&amp;&amp;it||Vt(&quot;y&quot;);var f=tt-e,h=et-r;!nt.isSubplotConstrained||it&amp;&amp;at||(it?(s=o?0:e*et/tt,h=f*et/tt):(o=s?0:r*tt/et,f=h*tt/et)),Yt([o,s,f,h]),Ht(),t.emit(&quot;plotly_relayouting&quot;,ht)}function p(t,e,r){for(var n,i,a=1-e,o=0;o&lt;t.length;o++){var s=t[o];if(!s.fixedrange){n=s,i=s._rl[a]+(s._rl[e]-s._rl[a])/B(r/s._length);var l=s.l2r(i);!1!==l&amp;&amp;void 0!==l&amp;&amp;(s.range[e]=l)}}return n._length*(n._rl[e]-i)/(n._rl[e]-n._rl[a])}}function Vt(t,e){for(var r=nt.isSubplotConstrained?{x:K,y:J}[t]:nt[t+&quot;axes&quot;],n=nt.isSubplotConstrained?{x:J,y:K}[t]:[],i=0;i&lt;r.length;i++){var a=r[i],o=a._id,s=nt.xLinks[o]||nt.yLinks[o],l=n[0]||V[s]||Z[s];l&amp;&amp;(e?(e[a._name+&quot;.range[0]&quot;]=e[l._name+&quot;.range[0]&quot;],e[a._name+&quot;.range[1]&quot;]=e[l._name+&quot;.range[1]&quot;]):a.range=l.range.slice())}}function Ht(){var e,r=[];function n(t){for(e=0;e&lt;t.length;e++)t[e].fixedrange||r.push(t[e]._id)}for(st&amp;&amp;(n(J),n(rt.xaxes),n(nt.xaxes)),lt&amp;&amp;(n(K),n(rt.yaxes),n(nt.yaxes)),ht={},e=0;e&lt;r.length;e++){var i=r[e],a=k(t,i);d.drawOne(t,a,{skipTitle:!0}),ht[a._name+&quot;.range[0]&quot;]=a.range[0],ht[a._name+&quot;.range[1]&quot;]=a.range[1]}d.redrawComponents(t,r)}function qt(){if(!t._transitioningWithDuration){var e=t._context.doubleClick,r=[];it&amp;&amp;(r=r.concat(J)),at&amp;&amp;(r=r.concat(K)),nt.xaxes&amp;&amp;(r=r.concat(nt.xaxes)),nt.yaxes&amp;&amp;(r=r.concat(nt.yaxes));var n,i,a,o={};if(&quot;reset+autosize&quot;===e)for(e=&quot;autosize&quot;,i=0;i&lt;r.length;i++)if((n=r[i])._rangeInitial&amp;&amp;(n.range[0]!==n._rangeInitial[0]||n.range[1]!==n._rangeInitial[1])||!n._rangeInitial&amp;&amp;!n.autorange){e=&quot;reset&quot;;break}if(&quot;autosize&quot;===e)for(i=0;i&lt;r.length;i++)(n=r[i]).fixedrange||(o[n._name+&quot;.autorange&quot;]=!0);else if(&quot;reset&quot;===e)for((it||rt.isSubplotConstrained)&amp;&amp;(r=r.concat(rt.xaxes)),at&amp;&amp;!rt.isSubplotConstrained&amp;&amp;(r=r.concat(rt.yaxes)),rt.isSubplotConstrained&amp;&amp;(it?at||(r=r.concat(K)):r=r.concat(J)),i=0;i&lt;r.length;i++)(n=r[i]).fixedrange||(n._rangeInitial?(a=n._rangeInitial,o[n._name+&quot;.range[0]&quot;]=a[0],o[n._name+&quot;.range[1]&quot;]=a[1]):o[n._name+&quot;.autorange&quot;]=!0);t.emit(&quot;plotly_doubleclick&quot;,null),l.call(&quot;_guiRelayout&quot;,t,o)}}function Gt(){Yt([0,0,tt,et]),i.syncOrAsync([T.previousPromises,function(){t._fullLayout._replotting=!1,l.call(&quot;_guiRelayout&quot;,t,ht)}],t)}function Yt(e){var r,n,a,o,s=t._fullLayout,c=s._plots,u=s._subplots.cartesian;if(ut&amp;&amp;l.subplotsRegistry.splom.drag(t),ct)for(r=0;r&lt;u.length;r++)if(a=(n=c[u[r]]).xaxis,o=n.yaxis,n._scene){var f=i.simpleMap(a.range,a.r2l),p=i.simpleMap(o.range,o.r2l);n._scene.update({range:[f[0],p[0],f[1],p[1]]})}if((ut||ct)&amp;&amp;(_(t),w(t)),ft){var d=e[2]/I._length,g=e[3]/O._length;for(r=0;r&lt;u.length;r++){a=(n=c[u[r]]).xaxis,o=n.yaxis;var y,x,b,T,k=(st||nt.isSubplotConstrained)&amp;&amp;!a.fixedrange&amp;&amp;V[a._id],A=(lt||nt.isSubplotConstrained)&amp;&amp;!o.fixedrange&amp;&amp;Z[o._id];if(k?(y=d,b=v||nt.isSubplotConstrained?e[0]:Zt(a,y)):nt.xaHash[a._id]?(y=d,b=e[0]*a._length/I._length):nt.yaHash[a._id]?(y=g,b=&quot;ns&quot;===at?-e[1]*a._length/O._length:Zt(a,y,{n:&quot;top&quot;,s:&quot;bottom&quot;}[at])):b=Xt(a,y=Wt(a,d,g)),A?(x=g,T=m||nt.isSubplotConstrained?e[1]:Zt(o,x)):nt.yaHash[o._id]?(x=g,T=e[1]*o._length/O._length):nt.xaHash[o._id]?(x=d,T=&quot;ew&quot;===it?-e[0]*o._length/I._length:Zt(o,x,{e:&quot;right&quot;,w:&quot;left&quot;}[it])):T=Xt(o,x=Wt(o,d,g)),y||x){y||(y=1),x||(x=1);var M=a._offset-b/y,S=o._offset-T/x;n.clipRect.call(h.setTranslate,b,T).call(h.setScale,y,x),n.plot.call(h.setTranslate,M,S).call(h.setScale,1/y,1/x),y===n.xScaleFactor&amp;&amp;x===n.yScaleFactor||(h.setPointGroupScale(n.zoomScalePts,y,x),h.setTextPointsScale(n.zoomScaleTxt,y,x)),h.hideOutsideRangePoints(n.clipOnAxisFalseTraces,n),n.xScaleFactor=y,n.yScaleFactor=x}}}}function Wt(t,e,r){return t.fixedrange?0:st&amp;&amp;rt.xaHash[t._id]?e:lt&amp;&amp;(rt.isSubplotConstrained?rt.xaHash:rt.yaHash)[t._id]?r:0}function Xt(t,e){return e?(t.range=t._r.slice(),E(t,e),Zt(t,e)):0}function Zt(t,e,r){return t._length*(1-e)*b[r||t.constraintoward||&quot;middle&quot;]}return m.length*v.length!=1&amp;&amp;W(bt,(function(e){if(t._context._scrollZoom.cartesian||t._fullLayout._enablescrollzoom){if(It(),t._transitioningWithDuration)return e.preventDefault(),void e.stopPropagation();yt(),clearTimeout(Bt);var r=-e.deltaY;if(isFinite(r)||(r=e.wheelDelta/10),isFinite(r)){var n,a=Math.exp(-Math.min(Math.max(r,-20),20)/200),o=jt.draglayer.select(&quot;.nsewdrag&quot;).node().getBoundingClientRect(),s=(e.clientX-o.left)/o.width,l=(o.bottom-e.clientY)/o.height;if(st){for(v||(s=.5),n=0;n&lt;J.length;n++)c(J[n],s,a);Vt(&quot;x&quot;),Ft[2]*=a,Ft[0]+=Ft[2]*s*(1/a-1)}if(lt){for(m||(l=.5),n=0;n&lt;K.length;n++)c(K[n],l,a);Vt(&quot;y&quot;),Ft[3]*=a,Ft[1]+=Ft[3]*(1-l)*(1/a-1)}Yt(Ft),Ht(),t.emit(&quot;plotly_relayouting&quot;,ht),Bt=setTimeout((function(){t._fullLayout&amp;&amp;(Ft=[0,0,tt,et],Gt())}),Nt),e.preventDefault()}else i.log(&quot;Did not find wheel motion attributes: &quot;,e)}function c(t,e,r){if(!t.fixedrange){var n=i.simpleMap(t.range,t.r2l),a=n[0]+(n[1]-n[0])*e;t.range=n.map((function(e){return t.l2r(a+(e-a)*r)}))}}})),bt},makeDragger:O,makeRectDragger:z,makeZoombox:N,makeCorners:j,updateZoombox:U,xyCorners:G,transitionZoombox:V,removeZoombox:H,showDoubleClickNotifier:q,attachWheelEventHandler:W}},{&quot;../../components/color&quot;:366,&quot;../../components/dragelement&quot;:385,&quot;../../components/dragelement/helpers&quot;:384,&quot;../../components/drawing&quot;:388,&quot;../../components/fx&quot;:406,&quot;../../constants/alignment&quot;:471,&quot;../../lib&quot;:503,&quot;../../lib/clear_gl_canvases&quot;:487,&quot;../../lib/setcursor&quot;:524,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plot_api/subroutines&quot;:544,&quot;../../registry&quot;:638,&quot;../plots&quot;:619,&quot;./axes&quot;:554,&quot;./axis_ids&quot;:558,&quot;./constants&quot;:561,&quot;./scale_zoom&quot;:574,&quot;./select&quot;:575,&quot;@plotly/d3&quot;:58,&quot;has-passive-events&quot;:229,tinycolor2:312}],564:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/fx&quot;),a=t(&quot;../../components/dragelement&quot;),o=t(&quot;../../lib/setcursor&quot;),s=t(&quot;./dragbox&quot;).makeDragBox,l=t(&quot;./constants&quot;).DRAGGERSIZE;r.initInteractions=function(t){var e=t._fullLayout;if(t._context.staticPlot)n.select(t).selectAll(&quot;.drag&quot;).remove();else if(e._has(&quot;cartesian&quot;)||e._has(&quot;splom&quot;)){Object.keys(e._plots||{}).sort((function(t,r){if((e._plots[t].mainplot&amp;&amp;!0)===(e._plots[r].mainplot&amp;&amp;!0)){var n=t.split(&quot;y&quot;),i=r.split(&quot;y&quot;);return n[0]===i[0]?Number(n[1]||1)-Number(i[1]||1):Number(n[0]||1)-Number(i[0]||1)}return e._plots[t].mainplot?1:-1})).forEach((function(r){var n=e._plots[r],o=n.xaxis,c=n.yaxis;if(!n.mainplot){var u=s(t,n,o._offset,c._offset,o._length,c._length,&quot;ns&quot;,&quot;ew&quot;);u.onmousemove=function(e){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===r&amp;&amp;t._fullLayout._plots[r]&amp;&amp;i.hover(t,e,r)},i.hover(t,e,r),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=r},u.onmouseout=function(e){t._dragging||(t._fullLayout._hoversubplot=null,a.unhover(t,e))},t._context.showAxisDragHandles&amp;&amp;(s(t,n,o._offset-l,c._offset-l,l,l,&quot;n&quot;,&quot;w&quot;),s(t,n,o._offset+o._length,c._offset-l,l,l,&quot;n&quot;,&quot;e&quot;),s(t,n,o._offset-l,c._offset+c._length,l,l,&quot;s&quot;,&quot;w&quot;),s(t,n,o._offset+o._length,c._offset+c._length,l,l,&quot;s&quot;,&quot;e&quot;))}if(t._context.showAxisDragHandles){if(r===o._mainSubplot){var f=o._mainLinePosition;&quot;top&quot;===o.side&amp;&amp;(f-=l),s(t,n,o._offset+.1*o._length,f,.8*o._length,l,&quot;&quot;,&quot;ew&quot;),s(t,n,o._offset,f,.1*o._length,l,&quot;&quot;,&quot;w&quot;),s(t,n,o._offset+.9*o._length,f,.1*o._length,l,&quot;&quot;,&quot;e&quot;)}if(r===c._mainSubplot){var h=c._mainLinePosition;&quot;right&quot;!==c.side&amp;&amp;(h-=l),s(t,n,h,c._offset+.1*c._length,l,.8*c._length,&quot;ns&quot;,&quot;&quot;),s(t,n,h,c._offset+.9*c._length,l,.1*c._length,&quot;s&quot;,&quot;&quot;),s(t,n,h,c._offset,l,.1*c._length,&quot;n&quot;,&quot;&quot;)}}}));var o=e._hoverlayer.node();o.onmousemove=function(r){r.target=t._fullLayout._lasthover,i.hover(t,r,e._hoversubplot)},o.onclick=function(e){e.target=t._fullLayout._lasthover,i.click(t,e)},o.onmousedown=function(e){t._fullLayout._lasthover.onmousedown(e)},r.updateFx(t)}},r.updateFx=function(t){var e=t._fullLayout,r=&quot;pan&quot;===e.dragmode?&quot;move&quot;:&quot;crosshair&quot;;o(e._draggers,r)}},{&quot;../../components/dragelement&quot;:385,&quot;../../components/fx&quot;:406,&quot;../../lib/setcursor&quot;:524,&quot;./constants&quot;:561,&quot;./dragbox&quot;:563,&quot;@plotly/d3&quot;:58}],565:[function(t,e,r){&quot;use strict&quot;;e.exports={clearOutlineControllers:function(t){var e=t._fullLayout._zoomlayer;e&amp;&amp;e.selectAll(&quot;.outline-controllers&quot;).remove()},clearSelect:function(t){var e=t._fullLayout._zoomlayer;e&amp;&amp;e.selectAll(&quot;.select-outline&quot;).remove(),t._fullLayout._drawing=!1}}},{}],566:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).strTranslate;function i(t,e){switch(t.type){case&quot;log&quot;:return t.p2d(e);case&quot;date&quot;:return t.p2r(e,0,t.calendar);default:return t.p2r(e)}}e.exports={p2r:i,r2p:function(t,e){switch(t.type){case&quot;log&quot;:return t.d2p(e);case&quot;date&quot;:return t.r2p(e,0,t.calendar);default:return t.r2p(e)}},axValue:function(t){var e=&quot;y&quot;===t._id.charAt(0)?1:0;return function(r){return i(t,r[e])}},getTransform:function(t){return n(t.xaxis._offset,t.yaxis._offset)}}},{&quot;../../lib&quot;:503}],567:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./axis_ids&quot;);e.exports=function(t){return function(e,r){var o=e[t];if(Array.isArray(o))for(var s=n.subplotsRegistry.cartesian,l=s.idRegex,c=r._subplots,u=c.xaxis,f=c.yaxis,h=c.cartesian,p=r._has(&quot;cartesian&quot;)||r._has(&quot;gl2d&quot;),d=0;d&lt;o.length;d++){var m=o[d];if(i.isPlainObject(m)){var g=a.cleanId(m.xref,&quot;x&quot;,!1),v=a.cleanId(m.yref,&quot;y&quot;,!1),y=l.x.test(g),x=l.y.test(v);if(y||x){p||i.pushUnique(r._basePlotModules,s);var b=!1;y&amp;&amp;-1===u.indexOf(g)&amp;&amp;(u.push(g),b=!0),x&amp;&amp;-1===f.indexOf(v)&amp;&amp;(f.push(v),b=!0),b&amp;&amp;y&amp;&amp;x&amp;&amp;h.push(g+v)}}}}}},{&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;./axis_ids&quot;:558}],568:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../plots&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../get_data&quot;).getModuleCalcData,c=t(&quot;./axis_ids&quot;),u=t(&quot;./constants&quot;),f=t(&quot;../../constants/xmlns_namespaces&quot;),h=a.ensureSingle;function p(t,e,r){return a.ensureSingle(t,e,r,(function(t){t.datum(r)}))}function d(t,e,r,a,o){for(var c,f,h,p=u.traceLayerClasses,d=t._fullLayout,m=d._modules,g=[],v=[],y=0;y&lt;m.length;y++){var x=(c=m[y]).name,b=i.modules[x].categories;if(b.svg){var _=c.layerName||x+&quot;layer&quot;,w=c.plot;h=(f=l(r,w))[0],r=f[1],h.length&amp;&amp;g.push({i:p.indexOf(_),className:_,plotMethod:w,cdModule:h}),b.zoomScale&amp;&amp;v.push(&quot;.&quot;+_)}}g.sort((function(t,e){return t.i-e.i}));var T=e.plot.selectAll(&quot;g.mlayer&quot;).data(g,(function(t){return t.className}));if(T.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return t.className})).classed(&quot;mlayer&quot;,!0).classed(&quot;rangeplot&quot;,e.isRangePlot),T.exit().remove(),T.order(),T.each((function(r){var i=n.select(this),l=r.className;r.plotMethod(t,e,r.cdModule,i,a,o),-1===u.clipOnAxisFalseQuery.indexOf(&quot;.&quot;+l)&amp;&amp;s.setClipUrl(i,e.layerClipId,t)})),d._has(&quot;scattergl&quot;)&amp;&amp;(c=i.getModule(&quot;scattergl&quot;),h=l(r,c)[0],c.plot(t,e,h)),!t._context.staticPlot&amp;&amp;(e._hasClipOnAxisFalse&amp;&amp;(e.clipOnAxisFalseTraces=e.plot.selectAll(u.clipOnAxisFalseQuery.join(&quot;,&quot;)).selectAll(&quot;.trace&quot;)),v.length)){var k=e.plot.selectAll(v.join(&quot;,&quot;)).selectAll(&quot;.trace&quot;);e.zoomScalePts=k.selectAll(&quot;path.point&quot;),e.zoomScaleTxt=k.selectAll(&quot;.textpoint&quot;)}}function m(t,e){var r=e.plotgroup,n=e.id,i=u.layerValue2layerClass[e.xaxis.layer],a=u.layerValue2layerClass[e.yaxis.layer],o=t._fullLayout._hasOnlyLargeSploms;if(e.mainplot){var s=e.mainplotinfo,l=s.plotgroup,f=n+&quot;-x&quot;,d=n+&quot;-y&quot;;e.gridlayer=s.gridlayer,e.zerolinelayer=s.zerolinelayer,h(s.overlinesBelow,&quot;path&quot;,f),h(s.overlinesBelow,&quot;path&quot;,d),h(s.overaxesBelow,&quot;g&quot;,f),h(s.overaxesBelow,&quot;g&quot;,d),e.plot=h(s.overplot,&quot;g&quot;,n),h(s.overlinesAbove,&quot;path&quot;,f),h(s.overlinesAbove,&quot;path&quot;,d),h(s.overaxesAbove,&quot;g&quot;,f),h(s.overaxesAbove,&quot;g&quot;,d),e.xlines=l.select(&quot;.overlines-&quot;+i).select(&quot;.&quot;+f),e.ylines=l.select(&quot;.overlines-&quot;+a).select(&quot;.&quot;+d),e.xaxislayer=l.select(&quot;.overaxes-&quot;+i).select(&quot;.&quot;+f),e.yaxislayer=l.select(&quot;.overaxes-&quot;+a).select(&quot;.&quot;+d)}else if(o)e.xlines=h(r,&quot;path&quot;,&quot;xlines-above&quot;),e.ylines=h(r,&quot;path&quot;,&quot;ylines-above&quot;),e.xaxislayer=h(r,&quot;g&quot;,&quot;xaxislayer-above&quot;),e.yaxislayer=h(r,&quot;g&quot;,&quot;yaxislayer-above&quot;);else{var m=h(r,&quot;g&quot;,&quot;layer-subplot&quot;);e.shapelayer=h(m,&quot;g&quot;,&quot;shapelayer&quot;),e.imagelayer=h(m,&quot;g&quot;,&quot;imagelayer&quot;),e.gridlayer=h(r,&quot;g&quot;,&quot;gridlayer&quot;),e.zerolinelayer=h(r,&quot;g&quot;,&quot;zerolinelayer&quot;),h(r,&quot;path&quot;,&quot;xlines-below&quot;),h(r,&quot;path&quot;,&quot;ylines-below&quot;),e.overlinesBelow=h(r,&quot;g&quot;,&quot;overlines-below&quot;),h(r,&quot;g&quot;,&quot;xaxislayer-below&quot;),h(r,&quot;g&quot;,&quot;yaxislayer-below&quot;),e.overaxesBelow=h(r,&quot;g&quot;,&quot;overaxes-below&quot;),e.plot=h(r,&quot;g&quot;,&quot;plot&quot;),e.overplot=h(r,&quot;g&quot;,&quot;overplot&quot;),e.xlines=h(r,&quot;path&quot;,&quot;xlines-above&quot;),e.ylines=h(r,&quot;path&quot;,&quot;ylines-above&quot;),e.overlinesAbove=h(r,&quot;g&quot;,&quot;overlines-above&quot;),h(r,&quot;g&quot;,&quot;xaxislayer-above&quot;),h(r,&quot;g&quot;,&quot;yaxislayer-above&quot;),e.overaxesAbove=h(r,&quot;g&quot;,&quot;overaxes-above&quot;),e.xlines=r.select(&quot;.xlines-&quot;+i),e.ylines=r.select(&quot;.ylines-&quot;+a),e.xaxislayer=r.select(&quot;.xaxislayer-&quot;+i),e.yaxislayer=r.select(&quot;.yaxislayer-&quot;+a)}o||(p(e.gridlayer,&quot;g&quot;,e.xaxis._id),p(e.gridlayer,&quot;g&quot;,e.yaxis._id),e.gridlayer.selectAll(&quot;g&quot;).map((function(t){return t[0]})).sort(c.idSort)),e.xlines.style(&quot;fill&quot;,&quot;none&quot;).classed(&quot;crisp&quot;,!0),e.ylines.style(&quot;fill&quot;,&quot;none&quot;).classed(&quot;crisp&quot;,!0)}function g(t,e){if(t){var r={};for(var i in t.each((function(t){var i=t[0];n.select(this).remove(),v(i,e),r[i]=!0})),e._plots)for(var a=e._plots[i].overlays||[],o=0;o&lt;a.length;o++){var s=a[o];r[s.id]&amp;&amp;s.plot.selectAll(&quot;.trace&quot;).remove()}}}function v(t,e){e._draggers.selectAll(&quot;g.&quot;+t).remove(),e._defs.select(&quot;#clip&quot;+e._uid+t+&quot;plot&quot;).remove()}r.name=&quot;cartesian&quot;,r.attr=[&quot;xaxis&quot;,&quot;yaxis&quot;],r.idRoot=[&quot;x&quot;,&quot;y&quot;],r.idRegex=u.idRegex,r.attrRegex=u.attrRegex,r.attributes=t(&quot;./attributes&quot;),r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.transitionAxes=t(&quot;./transition_axes&quot;),r.finalizeSubplots=function(t,e){var r,n,i,o=e._subplots,s=o.xaxis,l=o.yaxis,f=o.cartesian,h=f.concat(o.gl2d||[]),p={},d={};for(r=0;r&lt;h.length;r++){var m=h[r].split(&quot;y&quot;);p[m[0]]=1,d[&quot;y&quot;+m[1]]=1}for(r=0;r&lt;s.length;r++)p[n=s[r]]||(i=(t[c.id2name(n)]||{}).anchor,u.idRegex.y.test(i)||(i=&quot;y&quot;),f.push(n+i),h.push(n+i),d[i]||(d[i]=1,a.pushUnique(l,i)));for(r=0;r&lt;l.length;r++)d[i=l[r]]||(n=(t[c.id2name(i)]||{}).anchor,u.idRegex.x.test(n)||(n=&quot;x&quot;),f.push(n+i),h.push(n+i),p[n]||(p[n]=1,a.pushUnique(s,n)));if(!h.length){for(var g in n=&quot;&quot;,i=&quot;&quot;,t){if(u.attrRegex.test(g))&quot;x&quot;===g.charAt(0)?(!n||+g.substr(5)&lt;+n.substr(5))&amp;&amp;(n=g):(!i||+g.substr(5)&lt;+i.substr(5))&amp;&amp;(i=g)}n=n?c.name2id(n):&quot;x&quot;,i=i?c.name2id(i):&quot;y&quot;,s.push(n),l.push(i),f.push(n+i)}},r.plot=function(t,e,r,n){var i,a=t._fullLayout,o=a._subplots.cartesian,s=t.calcdata;if(!Array.isArray(e))for(e=[],i=0;i&lt;s.length;i++)e.push(i);for(i=0;i&lt;o.length;i++){for(var l,c=o[i],u=a._plots[c],f=[],h=0;h&lt;s.length;h++){var p=s[h],m=p[0].trace;m.xaxis+m.yaxis===c&amp;&amp;((-1!==e.indexOf(m.index)||m.carpet)&amp;&amp;(l&amp;&amp;l[0].trace.xaxis+l[0].trace.yaxis===c&amp;&amp;-1!==[&quot;tonextx&quot;,&quot;tonexty&quot;,&quot;tonext&quot;].indexOf(m.fill)&amp;&amp;-1===f.indexOf(l)&amp;&amp;f.push(l),f.push(p)),l=p)}d(t,u,f,r,n)}},r.clean=function(t,e,r,n){var i,a,o,s=n._plots||{},l=e._plots||{},u=n._subplots||{};if(n._hasOnlyLargeSploms&amp;&amp;!e._hasOnlyLargeSploms)for(o in s)(i=s[o]).plotgroup&amp;&amp;i.plotgroup.remove();var f=n._has&amp;&amp;n._has(&quot;gl&quot;),h=e._has&amp;&amp;e._has(&quot;gl&quot;);if(f&amp;&amp;!h)for(o in s)(i=s[o])._scene&amp;&amp;i._scene.destroy();if(u.xaxis&amp;&amp;u.yaxis){var p=c.listIds({_fullLayout:n});for(a=0;a&lt;p.length;a++){var d=p[a];e[c.id2name(d)]||n._infolayer.selectAll(&quot;.g-&quot;+d+&quot;title&quot;).remove()}}var m=n._has&amp;&amp;n._has(&quot;cartesian&quot;),y=e._has&amp;&amp;e._has(&quot;cartesian&quot;);if(m&amp;&amp;!y)g(n._cartesianlayer.selectAll(&quot;.subplot&quot;),n),n._defs.selectAll(&quot;.axesclip&quot;).remove(),delete n._axisConstraintGroups,delete n._axisMatchGroups;else if(u.cartesian)for(a=0;a&lt;u.cartesian.length;a++){var x=u.cartesian[a];if(!l[x]){var b=&quot;.&quot;+x+&quot;,.&quot;+x+&quot;-x,.&quot;+x+&quot;-y&quot;;n._cartesianlayer.selectAll(b).remove(),v(x,n)}}},r.drawFramework=function(t){var e=t._fullLayout,r=function(t){var e,r,n,i,a,o,s=t._fullLayout,l=s._subplots.cartesian,c=l.length,u=[],f=[];for(e=0;e&lt;c;e++){n=l[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var h=a._mainAxis,p=o._mainAxis,d=h._id+p._id,m=s._plots[d];i.overlays=[],d!==n&amp;&amp;m?(i.mainplot=d,i.mainplotinfo=m,f.push(n)):(i.mainplot=void 0,i.mainplotinfo=void 0,u.push(n))}for(e=0;e&lt;f.length;e++)n=f[e],(i=s._plots[n]).mainplotinfo.overlays.push(i);var g=u.concat(f),v=new Array(c);for(e=0;e&lt;c;e++){n=g[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var y=[n,a.layer,o.layer,a.overlaying||&quot;&quot;,o.overlaying||&quot;&quot;];for(r=0;r&lt;i.overlays.length;r++)y.push(i.overlays[r].id);v[e]=y}return v}(t),i=e._cartesianlayer.selectAll(&quot;.subplot&quot;).data(r,String);i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;subplot &quot;+t[0]})),i.order(),i.exit().call(g,e),i.each((function(r){var i=r[0],a=e._plots[i];a.plotgroup=n.select(this),m(t,a),a.draglayer=h(e._draggers,&quot;g&quot;,i)}))},r.rangePlot=function(t,e,r){m(t,e),d(t,e,r),o.style(t)},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(&quot;.svg-container&quot;);r.filter((function(t,e){return e===r.size()-1})).selectAll(&quot;.gl-canvas-context, .gl-canvas-focus&quot;).each((function(){var t=this.toDataURL(&quot;image/png&quot;);e.append(&quot;svg:image&quot;).attr({xmlns:f.svg,&quot;xlink:href&quot;:t,preserveAspectRatio:&quot;none&quot;,x:0,y:0,width:this.style.width,height:this.style.height})}))},r.updateFx=t(&quot;./graph_interact&quot;).updateFx},{&quot;../../components/drawing&quot;:388,&quot;../../constants/xmlns_namespaces&quot;:480,&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;../get_data&quot;:593,&quot;../plots&quot;:619,&quot;./attributes&quot;:552,&quot;./axis_ids&quot;:558,&quot;./constants&quot;:561,&quot;./graph_interact&quot;:564,&quot;./layout_attributes&quot;:569,&quot;./layout_defaults&quot;:570,&quot;./transition_axes&quot;:581,&quot;@plotly/d3&quot;:58}],569:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../font_attributes&quot;),i=t(&quot;../../components/color/attributes&quot;),a=t(&quot;../../components/drawing/attributes&quot;).dash,o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/plot_template&quot;).templatedArray,l=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).descriptionWithDates,c=t(&quot;../../constants/numerical&quot;).ONEDAY,u=t(&quot;./constants&quot;),f=u.HOUR_PATTERN,h=u.WEEKDAY_PATTERN;e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},title:{text:{valType:&quot;string&quot;,editType:&quot;ticks&quot;},font:n({editType:&quot;ticks&quot;}),standoff:{valType:&quot;number&quot;,min:0,editType:&quot;ticks&quot;},editType:&quot;ticks&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;,&quot;multicategory&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;,_noTemplating:!0},autotypenumbers:{valType:&quot;enumerated&quot;,values:[&quot;convert types&quot;,&quot;strict&quot;],dflt:&quot;convert types&quot;,editType:&quot;calc&quot;},autorange:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],dflt:!0,editType:&quot;axrange&quot;,impliedEdits:{&quot;range[0]&quot;:void 0,&quot;range[1]&quot;:void 0}},rangemode:{valType:&quot;enumerated&quot;,values:[&quot;normal&quot;,&quot;tozero&quot;,&quot;nonnegative&quot;],dflt:&quot;normal&quot;,editType:&quot;plot&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;axrange&quot;,impliedEdits:{&quot;^autorange&quot;:!1},anim:!0},{valType:&quot;any&quot;,editType:&quot;axrange&quot;,impliedEdits:{&quot;^autorange&quot;:!1},anim:!0}],editType:&quot;axrange&quot;,impliedEdits:{autorange:!1},anim:!0},fixedrange:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},scaleanchor:{valType:&quot;enumerated&quot;,values:[u.idRegex.x.toString(),u.idRegex.y.toString()],editType:&quot;plot&quot;},scaleratio:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},constrain:{valType:&quot;enumerated&quot;,values:[&quot;range&quot;,&quot;domain&quot;],editType:&quot;plot&quot;},constraintoward:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;plot&quot;},matches:{valType:&quot;enumerated&quot;,values:[u.idRegex.x.toString(),u.idRegex.y.toString()],editType:&quot;calc&quot;},rangebreaks:s(&quot;rangebreak&quot;,{enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},bounds:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},pattern:{valType:&quot;enumerated&quot;,values:[h,f,&quot;&quot;],editType:&quot;calc&quot;},values:{valType:&quot;info_array&quot;,freeLength:!0,editType:&quot;calc&quot;,items:{valType:&quot;any&quot;,editType:&quot;calc&quot;}},dvalue:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0,dflt:c},editType:&quot;calc&quot;}),tickmode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;linear&quot;,&quot;array&quot;],editType:&quot;ticks&quot;,impliedEdits:{tick0:void 0,dtick:void 0}},nticks:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;ticks&quot;},tick0:{valType:&quot;any&quot;,editType:&quot;ticks&quot;,impliedEdits:{tickmode:&quot;linear&quot;}},dtick:{valType:&quot;any&quot;,editType:&quot;ticks&quot;,impliedEdits:{tickmode:&quot;linear&quot;}},tickvals:{valType:&quot;data_array&quot;,editType:&quot;ticks&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;ticks&quot;},ticks:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;&quot;],editType:&quot;ticks&quot;},tickson:{valType:&quot;enumerated&quot;,values:[&quot;labels&quot;,&quot;boundaries&quot;],dflt:&quot;labels&quot;,editType:&quot;ticks&quot;},ticklabelmode:{valType:&quot;enumerated&quot;,values:[&quot;instant&quot;,&quot;period&quot;],dflt:&quot;instant&quot;,editType:&quot;ticks&quot;},ticklabelposition:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;],dflt:&quot;outside&quot;,editType:&quot;calc&quot;},ticklabeloverflow:{valType:&quot;enumerated&quot;,values:[&quot;allow&quot;,&quot;hide past div&quot;,&quot;hide past domain&quot;],editType:&quot;calc&quot;},mirror:{valType:&quot;enumerated&quot;,values:[!0,&quot;ticks&quot;,!1,&quot;all&quot;,&quot;allticks&quot;],dflt:!1,editType:&quot;ticks+layoutstyle&quot;},ticklen:{valType:&quot;number&quot;,min:0,dflt:5,editType:&quot;ticks&quot;},tickwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks&quot;},tickcolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},showticklabels:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},automargin:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks&quot;},showspikes:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;modebar&quot;},spikecolor:{valType:&quot;color&quot;,dflt:null,editType:&quot;none&quot;},spikethickness:{valType:&quot;number&quot;,dflt:3,editType:&quot;none&quot;},spikedash:o({},a,{dflt:&quot;dash&quot;,editType:&quot;none&quot;}),spikemode:{valType:&quot;flaglist&quot;,flags:[&quot;toaxis&quot;,&quot;across&quot;,&quot;marker&quot;],dflt:&quot;toaxis&quot;,editType:&quot;none&quot;},spikesnap:{valType:&quot;enumerated&quot;,values:[&quot;data&quot;,&quot;cursor&quot;,&quot;hovered data&quot;],dflt:&quot;hovered data&quot;,editType:&quot;none&quot;},tickfont:n({editType:&quot;ticks&quot;}),tickangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;ticks&quot;},tickprefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},showtickprefix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},ticksuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},showticksuffix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},showexponent:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},exponentformat:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;e&quot;,&quot;E&quot;,&quot;power&quot;,&quot;SI&quot;,&quot;B&quot;],dflt:&quot;B&quot;,editType:&quot;ticks&quot;},minexponent:{valType:&quot;number&quot;,dflt:3,min:0,editType:&quot;ticks&quot;},separatethousands:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks&quot;},tickformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;,description:l(&quot;tick label&quot;)},tickformatstops:s(&quot;tickformatstop&quot;,{enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},dtickrange:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;ticks&quot;},{valType:&quot;any&quot;,editType:&quot;ticks&quot;}],editType:&quot;ticks&quot;},value:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},editType:&quot;ticks&quot;}),hoverformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;none&quot;,description:l(&quot;hover text&quot;)},showline:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks+layoutstyle&quot;},linecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;layoutstyle&quot;},linewidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks+layoutstyle&quot;},showgrid:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},gridcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;ticks&quot;},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks&quot;},zeroline:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},zerolinecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},zerolinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;ticks&quot;},showdividers:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},dividercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},dividerwidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;ticks&quot;},anchor:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;,u.idRegex.x.toString(),u.idRegex.y.toString()],editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;right&quot;],editType:&quot;plot&quot;},overlaying:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;,u.idRegex.x.toString(),u.idRegex.y.toString()],editType:&quot;plot&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;above traces&quot;,&quot;below traces&quot;],dflt:&quot;above traces&quot;,editType:&quot;plot&quot;},domain:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;}],dflt:[0,1],editType:&quot;plot&quot;},position:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;plot&quot;},categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;,&quot;total ascending&quot;,&quot;total descending&quot;,&quot;min ascending&quot;,&quot;min descending&quot;,&quot;max ascending&quot;,&quot;max descending&quot;,&quot;sum ascending&quot;,&quot;sum descending&quot;,&quot;mean ascending&quot;,&quot;mean descending&quot;,&quot;median ascending&quot;,&quot;median descending&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;,_deprecated:{autotick:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},title:{valType:&quot;string&quot;,editType:&quot;ticks&quot;},titlefont:n({editType:&quot;ticks&quot;})}}},{&quot;../../components/color/attributes&quot;:365,&quot;../../components/drawing/attributes&quot;:387,&quot;../../constants/numerical&quot;:479,&quot;../../lib/extend&quot;:493,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../font_attributes&quot;:585,&quot;./constants&quot;:561}],570:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/fx/helpers&quot;).isUnifiedHover,o=t(&quot;../../components/fx/hovermode_defaults&quot;),s=t(&quot;../../plot_api/plot_template&quot;),l=t(&quot;../layout_attributes&quot;),c=t(&quot;./layout_attributes&quot;),u=t(&quot;./type_defaults&quot;),f=t(&quot;./axis_defaults&quot;),h=t(&quot;./constraints&quot;),p=t(&quot;./position_defaults&quot;),d=t(&quot;./axis_ids&quot;),m=d.id2name,g=d.name2id,v=t(&quot;./constants&quot;).AX_ID_PATTERN,y=t(&quot;../../registry&quot;),x=y.traceIs,b=y.getComponentMethod;function _(t,e,r){Array.isArray(t[e])?t[e].push(r):t[e]=[r]}e.exports=function(t,e,r){var y,w,T=e.autotypenumbers,k={},A={},M={},S={},E={},L={},C={},P={},I={},O={};for(y=0;y&lt;r.length;y++){var z=r[y];if(x(z,&quot;cartesian&quot;)||x(z,&quot;gl2d&quot;)){var D,R;if(z.xaxis)D=m(z.xaxis),_(k,D,z);else if(z.xaxes)for(w=0;w&lt;z.xaxes.length;w++)_(k,m(z.xaxes[w]),z);if(z.yaxis)R=m(z.yaxis),_(k,R,z);else if(z.yaxes)for(w=0;w&lt;z.yaxes.length;w++)_(k,m(z.yaxes[w]),z);if(&quot;funnel&quot;===z.type?&quot;h&quot;===z.orientation?(D&amp;&amp;(A[D]=!0),R&amp;&amp;(C[R]=!0)):R&amp;&amp;(M[R]=!0):&quot;image&quot;===z.type?(R&amp;&amp;(P[R]=!0),D&amp;&amp;(P[D]=!0)):(R&amp;&amp;(E[R]=!0,L[R]=!0),x(z,&quot;carpet&quot;)&amp;&amp;(&quot;carpet&quot;!==z.type||z._cheater)||D&amp;&amp;(S[D]=!0)),&quot;carpet&quot;===z.type&amp;&amp;z._cheater&amp;&amp;D&amp;&amp;(A[D]=!0),x(z,&quot;2dMap&quot;)&amp;&amp;(I[D]=!0,I[R]=!0),x(z,&quot;oriented&quot;))O[&quot;h&quot;===z.orientation?R:D]=!0}}var F=e._subplots,B=F.xaxis,N=F.yaxis,j=n.simpleMap(B,m),U=n.simpleMap(N,m),V=j.concat(U),H=i.background;B.length&amp;&amp;N.length&amp;&amp;(H=n.coerce(t,e,l,&quot;plot_bgcolor&quot;));var q,G,Y,W,X,Z=i.combine(H,e.paper_bgcolor);function J(){var t=k[q]||[];X._traceIndices=t.map((function(t){return t._expandedIndex})),X._annIndices=[],X._shapeIndices=[],X._imgIndices=[],X._subplotsWith=[],X._counterAxes=[],X._name=X._attr=q,X._id=G}function K(t,e){return n.coerce(W,X,c,t,e)}function Q(t,e){return n.coerce2(W,X,c,t,e)}function $(t){return&quot;x&quot;===t?N:B}function tt(e,r){for(var n=&quot;x&quot;===e?j:U,i=[],a=0;a&lt;n.length;a++){var o=n[a];o===r||(t[o]||{}).overlaying||i.push(g(o))}return i}var et={x:$(&quot;x&quot;),y:$(&quot;y&quot;)},rt=et.x.concat(et.y),nt={},it=[];function at(){var t=W.matches;v.test(t)&amp;&amp;-1===rt.indexOf(t)&amp;&amp;(nt[t]=W.type,it=Object.keys(nt))}var ot=o(t,e),st=a(ot);for(y=0;y&lt;V.length;y++){q=V[y],G=g(q),Y=q.charAt(0),n.isPlainObject(t[q])||(t[q]={}),W=t[q],X=s.newContainer(e,q,Y+&quot;axis&quot;),J();var lt=&quot;x&quot;===Y&amp;&amp;!S[q]&amp;&amp;A[q]||&quot;y&quot;===Y&amp;&amp;!E[q]&amp;&amp;M[q],ct=&quot;y&quot;===Y&amp;&amp;(!L[q]&amp;&amp;C[q]||P[q]),ut={letter:Y,font:e.font,outerTicks:I[q],showGrid:!O[q],data:k[q]||[],bgColor:Z,calendar:e.calendar,automargin:!0,visibleDflt:lt,reverseDflt:ct,autotypenumbersDflt:T,splomStash:((e._splomAxes||{})[Y]||{})[G]};K(&quot;uirevision&quot;,e.uirevision),u(W,X,K,ut),f(W,X,K,ut,e);var ft=st&amp;&amp;Y===ot.charAt(0),ht=Q(&quot;spikecolor&quot;,st?X.color:void 0),pt=Q(&quot;spikethickness&quot;,st?1.5:void 0),dt=Q(&quot;spikedash&quot;,st?&quot;dot&quot;:void 0),mt=Q(&quot;spikemode&quot;,st?&quot;across&quot;:void 0),gt=Q(&quot;spikesnap&quot;);K(&quot;showspikes&quot;,!!(ft||ht||pt||dt||mt||gt))||(delete X.spikecolor,delete X.spikethickness,delete X.spikedash,delete X.spikemode,delete X.spikesnap),p(W,X,K,{letter:Y,counterAxes:et[Y],overlayableAxes:tt(Y,q),grid:e.grid}),K(&quot;title.standoff&quot;),at(),X._input=W}for(y=0;y&lt;it.length;){G=it[y++],Y=(q=m(G)).charAt(0),n.isPlainObject(t[q])||(t[q]={}),W=t[q],X=s.newContainer(e,q,Y+&quot;axis&quot;),J();var vt={letter:Y,font:e.font,outerTicks:I[q],showGrid:!O[q],data:[],bgColor:Z,calendar:e.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:T,splomStash:((e._splomAxes||{})[Y]||{})[G]};K(&quot;uirevision&quot;,e.uirevision),X.type=nt[G]||&quot;linear&quot;,f(W,X,K,vt,e),p(W,X,K,{letter:Y,counterAxes:et[Y],overlayableAxes:tt(Y,q),grid:e.grid}),K(&quot;fixedrange&quot;),at(),X._input=W}var yt=b(&quot;rangeslider&quot;,&quot;handleDefaults&quot;),xt=b(&quot;rangeselector&quot;,&quot;handleDefaults&quot;);for(y=0;y&lt;j.length;y++)q=j[y],W=t[q],X=e[q],yt(t,e,q),&quot;date&quot;===X.type&amp;&amp;xt(W,X,e,U,X.calendar),K(&quot;fixedrange&quot;);for(y=0;y&lt;U.length;y++){q=U[y],W=t[q],X=e[q];var bt=e[m(X.anchor)];K(&quot;fixedrange&quot;,b(&quot;rangeslider&quot;,&quot;isVisible&quot;)(bt))}h.handleDefaults(t,e,{axIds:rt.concat(it).sort(d.idSort),axHasImage:P})}},{&quot;../../components/color&quot;:366,&quot;../../components/fx/helpers&quot;:402,&quot;../../components/fx/hovermode_defaults&quot;:405,&quot;../../lib&quot;:503,&quot;../../plot_api/plot_template&quot;:543,&quot;../../registry&quot;:638,&quot;../layout_attributes&quot;:610,&quot;./axis_defaults&quot;:556,&quot;./axis_ids&quot;:558,&quot;./constants&quot;:561,&quot;./constraints&quot;:562,&quot;./layout_attributes&quot;:569,&quot;./position_defaults&quot;:572,&quot;./type_defaults&quot;:582}],571:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;).mix,i=t(&quot;../../components/color/attributes&quot;).lightFraction,a=t(&quot;../../lib&quot;);e.exports=function(t,e,r,o){var s=(o=o||{}).dfltColor;function l(r,n){return a.coerce2(t,e,o.attributes,r,n)}var c=l(&quot;linecolor&quot;,s),u=l(&quot;linewidth&quot;);r(&quot;showline&quot;,o.showLine||!!c||!!u)||(delete e.linecolor,delete e.linewidth);var f=l(&quot;gridcolor&quot;,n(s,o.bgColor,o.blend||i).toRgbString()),h=l(&quot;gridwidth&quot;);if(r(&quot;showgrid&quot;,o.showGrid||!!f||!!h)||(delete e.gridcolor,delete e.gridwidth),!o.noZeroLine){var p=l(&quot;zerolinecolor&quot;,s),d=l(&quot;zerolinewidth&quot;);r(&quot;zeroline&quot;,o.showGrid||!!p||!!d)||(delete e.zerolinecolor,delete e.zerolinewidth)}}},{&quot;../../components/color/attributes&quot;:365,&quot;../../lib&quot;:503,tinycolor2:312}],572:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o,s,l,c,u=a.counterAxes||[],f=a.overlayableAxes||[],h=a.letter,p=a.grid;p&amp;&amp;(s=p._domains[h][p._axisMap[e._id]],o=p._anchors[e._id],s&amp;&amp;(l=p[h+&quot;side&quot;].split(&quot; &quot;)[0],c=p.domain[h][&quot;right&quot;===l||&quot;top&quot;===l?1:0])),s=s||[0,1],o=o||(n(t.position)?&quot;free&quot;:u[0]||&quot;free&quot;),l=l||(&quot;x&quot;===h?&quot;bottom&quot;:&quot;left&quot;),c=c||0,&quot;free&quot;===i.coerce(t,e,{anchor:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;].concat(u),dflt:o}},&quot;anchor&quot;)&amp;&amp;r(&quot;position&quot;,c),i.coerce(t,e,{side:{valType:&quot;enumerated&quot;,values:&quot;x&quot;===h?[&quot;bottom&quot;,&quot;top&quot;]:[&quot;left&quot;,&quot;right&quot;],dflt:l}},&quot;side&quot;);var d=!1;if(f.length&amp;&amp;(d=i.coerce(t,e,{overlaying:{valType:&quot;enumerated&quot;,values:[!1].concat(f),dflt:!1}},&quot;overlaying&quot;)),!d){var m=r(&quot;domain&quot;,s);m[0]&gt;m[1]-1/4096&amp;&amp;(e.domain=s),i.noneOrAll(t.domain,e.domain,s)}return r(&quot;layer&quot;),e}},{&quot;../../lib&quot;:503,&quot;fast-isnumeric&quot;:190}],573:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./show_dflt&quot;);e.exports=function(t,e,r,i,a){a||(a={});var o=a.tickSuffixDflt,s=n(t);r(&quot;tickprefix&quot;)&amp;&amp;r(&quot;showtickprefix&quot;,s),r(&quot;ticksuffix&quot;,o)&amp;&amp;r(&quot;showticksuffix&quot;,s)}},{&quot;./show_dflt&quot;:577}],574:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/alignment&quot;).FROM_BL;e.exports=function(t,e,r){void 0===r&amp;&amp;(r=n[t.constraintoward||&quot;center&quot;]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*r;t.range=t._input.range=[t.l2r(a+(i[0]-a)*e),t.l2r(a+(i[1]-a)*e)],t.setScale()}},{&quot;../../constants/alignment&quot;:471}],575:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;polybooljs&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/drawing&quot;).dashStyle,o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;../../components/fx/helpers&quot;).makeEventData,c=t(&quot;../../components/dragelement/helpers&quot;),u=c.freeMode,f=c.rectMode,h=c.drawMode,p=c.openMode,d=c.selectMode,m=t(&quot;../../components/shapes/draw_newshape/display_outlines&quot;),g=t(&quot;../../components/shapes/draw_newshape/helpers&quot;).handleEllipse,v=t(&quot;../../components/shapes/draw_newshape/newshapes&quot;),y=t(&quot;../../lib&quot;),x=t(&quot;../../lib/polygon&quot;),b=t(&quot;../../lib/throttle&quot;),_=t(&quot;./axis_ids&quot;).getFromId,w=t(&quot;../../lib/clear_gl_canvases&quot;),T=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,k=t(&quot;./constants&quot;),A=k.MINSELECT,M=x.filter,S=x.tester,E=t(&quot;./handle_outline&quot;).clearSelect,L=t(&quot;./helpers&quot;),C=L.p2r,P=L.axValue,I=L.getTransform;function O(t,e,r,n,i,a,o){var s,l,c,u,f,h,d,g,v,y=e._hoverdata,x=e._fullLayout.clickmode.indexOf(&quot;event&quot;)&gt;-1,b=[];if(function(t){return t&amp;&amp;Array.isArray(t)&amp;&amp;!0!==t[0].hoverOnBox}(y)){F(t,e,a);var _=function(t,e){var r,n,i=t[0],a=-1,o=[];for(n=0;n&lt;e.length;n++)if(r=e[n],i.fullData._expandedIndex===r.cd[0].trace._expandedIndex){if(!0===i.hoverOnBox)break;void 0!==i.pointNumber?a=i.pointNumber:void 0!==i.binNumber&amp;&amp;(a=i.binNumber,o=i.pointNumbers);break}return{pointNumber:a,pointNumbers:o,searchInfo:r}}(y,s=N(e,r,n,i));if(_.pointNumbers.length&gt;0?function(t,e){var r,n,i,a=[];for(i=0;i&lt;t.length;i++)(r=t[i]).cd[0].trace.selectedpoints&amp;&amp;r.cd[0].trace.selectedpoints.length&gt;0&amp;&amp;a.push(r);if(1===a.length&amp;&amp;a[0]===e.searchInfo&amp;&amp;(n=e.searchInfo.cd[0].trace).selectedpoints.length===e.pointNumbers.length){for(i=0;i&lt;e.pointNumbers.length;i++)if(n.selectedpoints.indexOf(e.pointNumbers[i])&lt;0)return!1;return!0}return!1}(s,_):function(t){var e,r,n,i=0;for(n=0;n&lt;t.length;n++)if(e=t[n],(r=e.cd[0].trace).selectedpoints){if(r.selectedpoints.length&gt;1)return!1;if((i+=r.selectedpoints.length)&gt;1)return!1}return 1===i}(s)&amp;&amp;(h=j(_))){for(o&amp;&amp;o.remove(),v=0;v&lt;s.length;v++)(l=s[v])._module.selectPoints(l,!1);U(e,s),B(a),x&amp;&amp;e.emit(&quot;plotly_deselect&quot;,null)}else{for(d=t.shiftKey&amp;&amp;(void 0!==h?h:j(_)),c=function(t,e,r){return{pointNumber:t,searchInfo:e,subtract:r}}(_.pointNumber,_.searchInfo,d),u=R(a.selectionDefs.concat([c])),v=0;v&lt;s.length;v++)if(f=V(s[v]._module.selectPoints(s[v],u),s[v]),b.length)for(var w=0;w&lt;f.length;w++)b.push(f[w]);else b=f;if(U(e,s,g={points:b}),c&amp;&amp;a&amp;&amp;a.selectionDefs.push(c),o){var T=a.mergedPolygons,k=p(a.dragmode);m(H(T,k),o,a)}x&amp;&amp;e.emit(&quot;plotly_selected&quot;,g)}}}function z(t){return&quot;pointNumber&quot;in t&amp;&amp;&quot;searchInfo&quot;in t}function D(t){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(e,r,n,i){var a=t.searchInfo.cd[0].trace._expandedIndex;return i.cd[0].trace._expandedIndex===a&amp;&amp;n===t.pointNumber},isRect:!1,degenerate:!1,subtract:t.subtract}}function R(t){for(var e=[],r=z(t[0])?0:t[0][0][0],n=r,i=z(t[0])?0:t[0][0][1],a=i,o=0;o&lt;t.length;o++)if(z(t[o]))e.push(D(t[o]));else{var s=x.tester(t[o]);s.subtract=t[o].subtract,e.push(s),r=Math.min(r,s.xmin),n=Math.max(n,s.xmax),i=Math.min(i,s.ymin),a=Math.max(a,s.ymax)}return{xmin:r,xmax:n,ymin:i,ymax:a,pts:[],contains:function(t,r,n,i){for(var a=!1,o=0;o&lt;e.length;o++)e[o].contains(t,r,n,i)&amp;&amp;(a=!1===e[o].subtract);return a},isRect:!1,degenerate:!1}}function F(t,e,r){e._fullLayout._drawing=!1;var n=e._fullLayout,i=r.plotinfo,a=r.dragmode,o=n._lastSelectedSubplot&amp;&amp;n._lastSelectedSubplot===i.id,s=(t.shiftKey||t.altKey)&amp;&amp;!(h(a)&amp;&amp;p(a));o&amp;&amp;s&amp;&amp;i.selection&amp;&amp;i.selection.selectionDefs&amp;&amp;!r.selectionDefs?(r.selectionDefs=i.selection.selectionDefs,r.mergedPolygons=i.selection.mergedPolygons):s&amp;&amp;i.selection||B(r),o||(E(e),n._lastSelectedSubplot=i.id)}function B(t){var e=t.dragmode,r=t.plotinfo,n=t.gd;if(n._fullLayout._activeShapeIndex&gt;=0&amp;&amp;n._fullLayout._deactivateShape(n),h(e)){var a=n._fullLayout._zoomlayer.selectAll(&quot;.select-outline-&quot;+r.id);if(a&amp;&amp;n._fullLayout._drawing){var o=v(a,t);o&amp;&amp;i.call(&quot;_guiRelayout&quot;,n,{shapes:o}),n._fullLayout._drawing=!1}}r.selection={},r.selection.selectionDefs=t.selectionDefs=[],r.selection.mergedPolygons=t.mergedPolygons=[]}function N(t,e,r,n){var i,a,o,s=[],l=e.map((function(t){return t._id})),c=r.map((function(t){return t._id}));for(o=0;o&lt;t.calcdata.length;o++)if(!0===(a=(i=t.calcdata[o])[0].trace).visible&amp;&amp;a._module&amp;&amp;a._module.selectPoints)if(!n||a.subplot!==n&amp;&amp;a.geo!==n)if(&quot;splom&quot;===a.type&amp;&amp;a._xaxes[l[0]]&amp;&amp;a._yaxes[c[0]]){var u=h(a._module,i,e[0],r[0]);u.scene=t._fullLayout._splomScenes[a.uid],s.push(u)}else if(&quot;sankey&quot;===a.type){var f=h(a._module,i,e[0],r[0]);s.push(f)}else{if(-1===l.indexOf(a.xaxis))continue;if(-1===c.indexOf(a.yaxis))continue;s.push(h(a._module,i,_(t,a.xaxis),_(t,a.yaxis)))}else s.push(h(a._module,i,e[0],r[0]));return s;function h(t,e,r,n){return{_module:t,cd:e,xaxis:r,yaxis:n}}}function j(t){var e=t.searchInfo.cd[0].trace,r=t.pointNumber,n=t.pointNumbers,i=n.length&gt;0?n[0]:r;return!!e.selectedpoints&amp;&amp;e.selectedpoints.indexOf(i)&gt;-1}function U(t,e,r){var n,a,o,s;for(n=0;n&lt;e.length;n++){var l=e[n].cd[0].trace._fullInput,c=t._fullLayout._tracePreGUI[l.uid]||{};void 0===c.selectedpoints&amp;&amp;(c.selectedpoints=l._input.selectedpoints||null)}if(r){var u=r.points||[];for(n=0;n&lt;e.length;n++)(s=e[n].cd[0].trace)._input.selectedpoints=s._fullInput.selectedpoints=[],s._fullInput!==s&amp;&amp;(s.selectedpoints=[]);for(n=0;n&lt;u.length;n++){var f=u[n],h=f.data,p=f.fullData;f.pointIndices?([].push.apply(h.selectedpoints,f.pointIndices),s._fullInput!==s&amp;&amp;[].push.apply(p.selectedpoints,f.pointIndices)):(h.selectedpoints.push(f.pointIndex),s._fullInput!==s&amp;&amp;p.selectedpoints.push(f.pointIndex))}}else for(n=0;n&lt;e.length;n++)delete(s=e[n].cd[0].trace).selectedpoints,delete s._input.selectedpoints,s._fullInput!==s&amp;&amp;delete s._fullInput.selectedpoints;var d=!1;for(n=0;n&lt;e.length;n++){s=(o=(a=e[n]).cd)[0].trace,i.traceIs(s,&quot;regl&quot;)&amp;&amp;(d=!0);var m=a._module,g=m.styleOnSelect||m.style;g&amp;&amp;(g(t,o,o[0].node3),o[0].nodeRangePlot3&amp;&amp;g(t,o,o[0].nodeRangePlot3))}d&amp;&amp;(w(t),T(t))}function V(t,e){if(Array.isArray(t))for(var r=e.cd,n=e.cd[0].trace,i=0;i&lt;t.length;i++)t[i]=l(t[i],n,r);return t}function H(t,e){for(var r=[],n=0;n&lt;t.length;n++){r[n]=[];for(var i=0;i&lt;t[n].length;i++){r[n][i]=[],r[n][i][0]=i?&quot;L&quot;:&quot;M&quot;;for(var a=0;a&lt;t[n][i].length;a++)r[n][i].push(t[n][i][a])}e||r[n].push([&quot;Z&quot;,r[n][0][1],r[n][0][2]])}return r}e.exports={prepSelect:function(t,e,r,i,l){var c=u(l),v=f(l),x=p(l),_=h(l),w=d(l),T=&quot;drawcircle&quot;===l,E=&quot;drawline&quot;===l||T,L=i.gd,z=L._fullLayout,D=z._zoomlayer,j=i.element.getBoundingClientRect(),q=i.plotinfo,G=I(q),Y=e-j.left,W=r-j.top;z._calcInverseTransform(L);var X=y.apply3DTransform(z._invTransform)(Y,W);Y=X[0],W=X[1];var Z,J,K,Q,$,tt,et,rt=z._invScaleX,nt=z._invScaleY,it=Y,at=W,ot=&quot;M&quot;+Y+&quot;,&quot;+W,st=i.xaxes[0]._length,lt=i.yaxes[0]._length,ct=i.xaxes.concat(i.yaxes),ut=t.altKey&amp;&amp;!(h(l)&amp;&amp;x);F(t,L,i),c&amp;&amp;(Z=M([[Y,W]],k.BENDPX));var ft=D.selectAll(&quot;path.select-outline-&quot;+q.id).data(_?[0]:[1,2]),ht=z.newshape;ft.enter().append(&quot;path&quot;).attr(&quot;class&quot;,(function(t){return&quot;select-outline select-outline-&quot;+t+&quot; select-outline-&quot;+q.id})).style(_?{opacity:ht.opacity/2,fill:x?void 0:ht.fillcolor,stroke:ht.line.color,&quot;stroke-dasharray&quot;:a(ht.line.dash,ht.line.width),&quot;stroke-width&quot;:ht.line.width+&quot;px&quot;}:{}).attr(&quot;fill-rule&quot;,ht.fillrule).classed(&quot;cursor-move&quot;,!!_).attr(&quot;transform&quot;,G).attr(&quot;d&quot;,ot+&quot;Z&quot;);var pt,dt=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).style({fill:o.background,stroke:o.defaultLine,&quot;stroke-width&quot;:1}).attr(&quot;transform&quot;,G).attr(&quot;d&quot;,&quot;M0,0Z&quot;),mt=z._uid+k.SELECTID,gt=[],vt=N(L,i.xaxes,i.yaxes,i.subplot);function yt(t,e){return t-e}pt=q.fillRangeItems?q.fillRangeItems:v?function(t,e){var r=t.range={};for($=0;$&lt;ct.length;$++){var n=ct[$],i=n._id.charAt(0);r[n._id]=[C(n,e[i+&quot;min&quot;]),C(n,e[i+&quot;max&quot;])].sort(yt)}}:function(t,e,r){var n=t.lassoPoints={};for($=0;$&lt;ct.length;$++){var i=ct[$];n[i._id]=r.filtered.map(P(i))}},i.moveFn=function(t,e){it=Math.max(0,Math.min(st,rt*t+Y)),at=Math.max(0,Math.min(lt,nt*e+W));var r=Math.abs(it-Y),a=Math.abs(at-W);if(v){var o,s,l;if(w){var u=z.selectdirection;switch(o=&quot;any&quot;===u?a&lt;Math.min(.6*r,A)?&quot;h&quot;:r&lt;Math.min(.6*a,A)?&quot;v&quot;:&quot;d&quot;:u){case&quot;h&quot;:s=T?lt/2:0,l=lt;break;case&quot;v&quot;:s=T?st/2:0,l=st}}if(_)switch(z.newshape.drawdirection){case&quot;vertical&quot;:o=&quot;h&quot;,s=T?lt/2:0,l=lt;break;case&quot;horizontal&quot;:o=&quot;v&quot;,s=T?st/2:0,l=st;break;case&quot;ortho&quot;:r&lt;a?(o=&quot;h&quot;,s=W,l=at):(o=&quot;v&quot;,s=Y,l=it);break;default:o=&quot;d&quot;}&quot;h&quot;===o?((Q=E?g(T,[it,s],[it,l]):[[Y,s],[Y,l],[it,l],[it,s]]).xmin=E?it:Math.min(Y,it),Q.xmax=E?it:Math.max(Y,it),Q.ymin=Math.min(s,l),Q.ymax=Math.max(s,l),dt.attr(&quot;d&quot;,&quot;M&quot;+Q.xmin+&quot;,&quot;+(W-A)+&quot;h-4v&quot;+2*A+&quot;h4ZM&quot;+(Q.xmax-1)+&quot;,&quot;+(W-A)+&quot;h4v&quot;+2*A+&quot;h-4Z&quot;)):&quot;v&quot;===o?((Q=E?g(T,[s,at],[l,at]):[[s,W],[s,at],[l,at],[l,W]]).xmin=Math.min(s,l),Q.xmax=Math.max(s,l),Q.ymin=E?at:Math.min(W,at),Q.ymax=E?at:Math.max(W,at),dt.attr(&quot;d&quot;,&quot;M&quot;+(Y-A)+&quot;,&quot;+Q.ymin+&quot;v-4h&quot;+2*A+&quot;v4ZM&quot;+(Y-A)+&quot;,&quot;+(Q.ymax-1)+&quot;v4h&quot;+2*A+&quot;v-4Z&quot;)):&quot;d&quot;===o&amp;&amp;((Q=E?g(T,[Y,W],[it,at]):[[Y,W],[Y,at],[it,at],[it,W]]).xmin=Math.min(Y,it),Q.xmax=Math.max(Y,it),Q.ymin=Math.min(W,at),Q.ymax=Math.max(W,at),dt.attr(&quot;d&quot;,&quot;M0,0Z&quot;))}else c&amp;&amp;(Z.addPt([it,at]),Q=Z.filtered);i.selectionDefs&amp;&amp;i.selectionDefs.length?(K=function(t,e,r){if(r)return n.difference({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions;return n.union({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions}(i.mergedPolygons,Q,ut),Q.subtract=ut,J=R(i.selectionDefs.concat([Q]))):(K=[Q],J=S(Q)),m(H(K,x),ft,i),w&amp;&amp;b.throttle(mt,k.SELECTDELAY,(function(){var t;gt=[];var e,r=[];for($=0;$&lt;vt.length;$++)if(e=(tt=vt[$])._module.selectPoints(tt,J),r.push(e),t=V(e,tt),gt.length)for(var n=0;n&lt;t.length;n++)gt.push(t[n]);else gt=t;U(L,vt,et={points:gt}),pt(et,Q,Z),i.gd.emit(&quot;plotly_selecting&quot;,et)}))},i.clickFn=function(t,e){if(dt.remove(),L._fullLayout._activeShapeIndex&gt;=0)L._fullLayout._deactivateShape(L);else if(!_){var r=z.clickmode;b.done(mt).then((function(){if(b.clear(mt),2===t){for(ft.remove(),$=0;$&lt;vt.length;$++)(tt=vt[$])._module.selectPoints(tt,!1);U(L,vt),B(i),L.emit(&quot;plotly_deselect&quot;,null)}else r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;O(e,L,i.xaxes,i.yaxes,i.subplot,i,ft),&quot;event&quot;===r&amp;&amp;L.emit(&quot;plotly_selected&quot;,void 0);s.click(L,e)})).catch(y.error)}},i.doneFn=function(){dt.remove(),b.done(mt).then((function(){b.clear(mt),i.gd.emit(&quot;plotly_selected&quot;,et),Q&amp;&amp;i.selectionDefs&amp;&amp;(Q.subtract=ut,i.selectionDefs.push(Q),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,K)),i.doneFnCompleted&amp;&amp;i.doneFnCompleted(gt)})).catch(y.error),_&amp;&amp;B(i)}},clearSelect:E,clearSelectionsCache:B,selectOnClick:O}},{&quot;../../components/color&quot;:366,&quot;../../components/dragelement/helpers&quot;:384,&quot;../../components/drawing&quot;:388,&quot;../../components/fx&quot;:406,&quot;../../components/fx/helpers&quot;:402,&quot;../../components/shapes/draw_newshape/display_outlines&quot;:454,&quot;../../components/shapes/draw_newshape/helpers&quot;:455,&quot;../../components/shapes/draw_newshape/newshapes&quot;:456,&quot;../../lib&quot;:503,&quot;../../lib/clear_gl_canvases&quot;:487,&quot;../../lib/polygon&quot;:515,&quot;../../lib/throttle&quot;:530,&quot;../../plot_api/subroutines&quot;:544,&quot;../../registry&quot;:638,&quot;./axis_ids&quot;:558,&quot;./constants&quot;:561,&quot;./handle_outline&quot;:565,&quot;./helpers&quot;:566,polybooljs:254}],576:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-time-format&quot;).utcFormat,a=t(&quot;../../lib&quot;),o=a.numberFormat,s=t(&quot;fast-isnumeric&quot;),l=a.cleanNumber,c=a.ms2DateTime,u=a.dateTime2ms,f=a.ensureNumber,h=a.isArrayOrTypedArray,p=t(&quot;../../constants/numerical&quot;),d=p.FP_SAFE,m=p.BADNUM,g=p.LOG_CLIP,v=p.ONEWEEK,y=p.ONEDAY,x=p.ONEHOUR,b=p.ONEMIN,_=p.ONESEC,w=t(&quot;./axis_ids&quot;),T=t(&quot;./constants&quot;),k=T.HOUR_PATTERN,A=T.WEEKDAY_PATTERN;function M(t){return Math.pow(10,t)}function S(t){return null!=t}e.exports=function(t,e){e=e||{};var r=t._id||&quot;x&quot;,p=r.charAt(0);function E(e,r){if(e&gt;0)return Math.log(e)/Math.LN10;if(e&lt;=0&amp;&amp;r&amp;&amp;t.range&amp;&amp;2===t.range.length){var n=t.range[0],i=t.range[1];return.5*(n+i-2*g*Math.abs(n-i))}return m}function L(e,r,n,i){if((i||{}).msUTC&amp;&amp;s(e))return+e;var o=u(e,n||t.calendar);if(o===m){if(!s(e))return m;e=+e;var l=Math.floor(10*a.mod(e+.05,1)),c=Math.round(e-l/10);o=u(new Date(c))+l/10}return o}function C(e,r,n){return c(e,r,n||t.calendar)}function P(e){return t._categories[Math.round(e)]}function I(e){if(S(e)){if(void 0===t._categoriesMap&amp;&amp;(t._categoriesMap={}),void 0!==t._categoriesMap[e])return t._categoriesMap[e];t._categories.push(&quot;number&quot;==typeof e?String(e):e);var r=t._categories.length-1;return t._categoriesMap[e]=r,r}return m}function O(e){if(t._categoriesMap)return t._categoriesMap[e]}function z(t){var e=O(t);return void 0!==e?e:s(t)?+t:void 0}function D(t){return s(t)?+t:O(t)}function R(t,e,r){return n.round(r+e*t,2)}function F(t,e,r){return(t-r)/e}var B=function(e){return s(e)?R(e,t._m,t._b):m},N=function(e){return F(e,t._m,t._b)};if(t.rangebreaks){var j=&quot;y&quot;===p;B=function(e){if(!s(e))return m;var r=t._rangebreaks.length;if(!r)return R(e,t._m,t._b);var n=j;t.range[0]&gt;t.range[1]&amp;&amp;(n=!n);for(var i=n?-1:1,a=i*e,o=0,l=0;l&lt;r;l++){var c=i*t._rangebreaks[l].min,u=i*t._rangebreaks[l].max;if(a&lt;c)break;if(!(a&gt;u)){o=a&lt;(c+u)/2?l:l+1;break}o=l+1}var f=t._B[o]||0;return isFinite(f)?R(e,t._m2,f):0},N=function(e){var r=t._rangebreaks.length;if(!r)return F(e,t._m,t._b);for(var n=0,i=0;i&lt;r&amp;&amp;!(e&lt;t._rangebreaks[i].pmin);i++)e&gt;t._rangebreaks[i].pmax&amp;&amp;(n=i+1);return F(e,t._m2,t._B[n])}}t.c2l=&quot;log&quot;===t.type?E:f,t.l2c=&quot;log&quot;===t.type?M:f,t.l2p=B,t.p2l=N,t.c2p=&quot;log&quot;===t.type?function(t,e){return B(E(t,e))}:B,t.p2c=&quot;log&quot;===t.type?function(t){return M(N(t))}:N,-1!==[&quot;linear&quot;,&quot;-&quot;].indexOf(t.type)?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=l,t.c2d=t.c2r=t.l2d=t.l2r=f,t.d2p=t.r2p=function(e){return t.l2p(l(e))},t.p2d=t.p2r=N,t.cleanPos=f):&quot;log&quot;===t.type?(t.d2r=t.d2l=function(t,e){return E(l(t),e)},t.r2d=t.r2c=function(t){return M(l(t))},t.d2c=t.r2l=l,t.c2d=t.l2r=f,t.c2r=E,t.l2d=M,t.d2p=function(e,r){return t.l2p(t.d2r(e,r))},t.p2d=function(t){return M(N(t))},t.r2p=function(e){return t.l2p(l(e))},t.p2r=N,t.cleanPos=f):&quot;date&quot;===t.type?(t.d2r=t.r2d=a.identity,t.d2c=t.r2c=t.d2l=t.r2l=L,t.c2d=t.c2r=t.l2d=t.l2r=C,t.d2p=t.r2p=function(e,r,n){return t.l2p(L(e,0,n))},t.p2d=t.p2r=function(t,e,r){return C(N(t),e,r)},t.cleanPos=function(e){return a.cleanDate(e,m,t.calendar)}):&quot;category&quot;===t.type?(t.d2c=t.d2l=I,t.r2d=t.c2d=t.l2d=P,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=D(e);return void 0!==r?r:t.fraction2r(.5)},t.l2r=t.c2r=f,t.r2l=D,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return P(N(t))},t.r2p=t.d2p,t.p2r=N,t.cleanPos=function(t){return&quot;string&quot;==typeof t&amp;&amp;&quot;&quot;!==t?t:f(t)}):&quot;multicategory&quot;===t.type&amp;&amp;(t.r2d=t.c2d=t.l2d=P,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=z(e);return void 0!==r?r:t.fraction2r(.5)},t.r2c_just_indices=O,t.l2r=t.c2r=f,t.r2l=z,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return P(N(t))},t.r2p=t.d2p,t.p2r=N,t.cleanPos=function(t){return Array.isArray(t)||&quot;string&quot;==typeof t&amp;&amp;&quot;&quot;!==t?t:f(t)},t.setupMultiCategory=function(n){var i,o,s=t._traceIndices,l=t._matchGroup;if(l&amp;&amp;0===t._categories.length)for(var c in l)if(c!==r){var u=e[w.id2name(c)];s=s.concat(u._traceIndices)}var f=[[0,{}],[0,{}]],d=[];for(i=0;i&lt;s.length;i++){var m=n[s[i]];if(p in m){var g=m[p],v=m._length||a.minRowLength(g);if(h(g[0])&amp;&amp;h(g[1]))for(o=0;o&lt;v;o++){var y=g[0][o],x=g[1][o];S(y)&amp;&amp;S(x)&amp;&amp;(d.push([y,x]),y in f[0][1]||(f[0][1][y]=f[0][0]++),x in f[1][1]||(f[1][1][x]=f[1][0]++))}}}for(d.sort((function(t,e){var r=f[0][1],n=r[t[0]]-r[e[0]];if(n)return n;var i=f[1][1];return i[t[1]]-i[e[1]]})),i=0;i&lt;d.length;i++)I(d[i])}),t.fraction2r=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return t.l2r(r+e*(n-r))},t.r2fraction=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return(t.r2l(e)-r)/(n-r)},t.cleanRange=function(e,r){r||(r={}),e||(e=&quot;range&quot;);var n,i,o=a.nestedProperty(t,e).get();if(i=(i=&quot;date&quot;===t.type?a.dfltRange(t.calendar):&quot;y&quot;===p?T.DFLTRANGEY:&quot;realaxis&quot;===t._name?[0,1]:r.dfltRange||T.DFLTRANGEX).slice(),&quot;tozero&quot;!==t.rangemode&amp;&amp;&quot;nonnegative&quot;!==t.rangemode||(i[0]=0),o&amp;&amp;2===o.length)for(&quot;date&quot;!==t.type||t.autorange||(o[0]=a.cleanDate(o[0],m,t.calendar),o[1]=a.cleanDate(o[1],m,t.calendar)),n=0;n&lt;2;n++)if(&quot;date&quot;===t.type){if(!a.isDateTime(o[n],t.calendar)){t[e]=i;break}if(t.r2l(o[0])===t.r2l(o[1])){var l=a.constrain(t.r2l(o[0]),a.MIN_MS+1e3,a.MAX_MS-1e3);o[0]=t.l2r(l-1e3),o[1]=t.l2r(l+1e3);break}}else{if(!s(o[n])){if(!s(o[1-n])){t[e]=i;break}o[n]=o[1-n]*(n?10:.1)}if(o[n]&lt;-d?o[n]=-d:o[n]&gt;d&amp;&amp;(o[n]=d),o[0]===o[1]){var c=Math.max(1,Math.abs(1e-6*o[0]));o[0]-=c,o[1]+=c}}else a.nestedProperty(t,e).set(i)},t.setScale=function(r){var n=e._size;if(t.overlaying){var i=w.getFromId({_fullLayout:e},t.overlaying);t.domain=i.domain}var a=r&amp;&amp;t._r?&quot;_r&quot;:&quot;range&quot;,o=t.calendar;t.cleanRange(a);var s,l,c=t.r2l(t[a][0],o),u=t.r2l(t[a][1],o),f=&quot;y&quot;===p;if((f?(t._offset=n.t+(1-t.domain[1])*n.h,t._length=n.h*(t.domain[1]-t.domain[0]),t._m=t._length/(c-u),t._b=-t._m*u):(t._offset=n.l+t.domain[0]*n.w,t._length=n.w*(t.domain[1]-t.domain[0]),t._m=t._length/(u-c),t._b=-t._m*c),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks)&amp;&amp;(t._rangebreaks=t.locateBreaks(Math.min(c,u),Math.max(c,u)),t._rangebreaks.length)){for(s=0;s&lt;t._rangebreaks.length;s++)l=t._rangebreaks[s],t._lBreaks+=Math.abs(l.max-l.min);var h=f;c&gt;u&amp;&amp;(h=!h),h&amp;&amp;t._rangebreaks.reverse();var d=h?-1:1;for(t._m2=d*t._length/(Math.abs(u-c)-t._lBreaks),t._B.push(-t._m2*(f?u:c)),s=0;s&lt;t._rangebreaks.length;s++)l=t._rangebreaks[s],t._B.push(t._B[t._B.length-1]-d*t._m2*(l.max-l.min));for(s=0;s&lt;t._rangebreaks.length;s++)(l=t._rangebreaks[s]).pmin=B(l.min),l.pmax=B(l.max)}if(!isFinite(t._m)||!isFinite(t._b)||t._length&lt;0)throw e._replotting=!1,new Error(&quot;Something went wrong with axis scaling&quot;)},t.maskBreaks=function(e){var r,n,i,o,s,c=t.rangebreaks||[];c._cachedPatterns||(c._cachedPatterns=c.map((function(e){return e.enabled&amp;&amp;e.bounds?a.simpleMap(e.bounds,e.pattern?l:t.d2c):null}))),c._cachedValues||(c._cachedValues=c.map((function(e){return e.enabled&amp;&amp;e.values?a.simpleMap(e.values,t.d2c).sort(a.sorterAsc):null})));for(var u=0;u&lt;c.length;u++){var f=c[u];if(f.enabled)if(f.bounds){var h=f.pattern;switch(n=(r=c._cachedPatterns[u])[0],i=r[1],h){case A:o=(s=new Date(e)).getUTCDay(),n&gt;i&amp;&amp;(i+=7,o&lt;n&amp;&amp;(o+=7));break;case k:o=(s=new Date(e)).getUTCHours()+(s.getUTCMinutes()/60+s.getUTCSeconds()/3600+s.getUTCMilliseconds()/36e5),n&gt;i&amp;&amp;(i+=24,o&lt;n&amp;&amp;(o+=24));break;case&quot;&quot;:o=e}if(o&gt;=n&amp;&amp;o&lt;i)return m}else for(var p=c._cachedValues[u],d=0;d&lt;p.length;d++)if(i=(n=p[d])+f.dvalue,e&gt;=n&amp;&amp;e&lt;i)return m}return e},t.locateBreaks=function(e,r){var n,i,o,s,c=[];if(!t.rangebreaks)return c;var u=t.rangebreaks.slice().sort((function(t,e){return t.pattern===A&amp;&amp;e.pattern===k?-1:e.pattern===A&amp;&amp;t.pattern===k?1:0})),f=function(t,n){if((t=a.constrain(t,e,r))!==(n=a.constrain(n,e,r))){for(var i=!0,o=0;o&lt;c.length;o++){var s=c[o];t&lt;s.max&amp;&amp;n&gt;=s.min&amp;&amp;(t&lt;s.min&amp;&amp;(s.min=t),n&gt;s.max&amp;&amp;(s.max=n),i=!1)}i&amp;&amp;c.push({min:t,max:n})}};for(n=0;n&lt;u.length;n++){var h=u[n];if(h.enabled)if(h.bounds){var p=e,d=r;h.pattern&amp;&amp;(p=Math.floor(p)),o=(i=a.simpleMap(h.bounds,h.pattern?l:t.r2l))[0],s=i[1];var m,g,w=new Date(p);switch(h.pattern){case A:g=v,m=(s-o+(s&lt;o?7:0))*y,p+=o*y-(w.getUTCDay()*y+w.getUTCHours()*x+w.getUTCMinutes()*b+w.getUTCSeconds()*_+w.getUTCMilliseconds());break;case k:g=y,m=(s-o+(s&lt;o?24:0))*x,p+=o*x-(w.getUTCHours()*x+w.getUTCMinutes()*b+w.getUTCSeconds()*_+w.getUTCMilliseconds());break;default:p=Math.min(i[0],i[1]),m=g=(d=Math.max(i[0],i[1]))-p}for(var T=p;T&lt;d;T+=g)f(T,T+m)}else for(var M=a.simpleMap(h.values,t.d2c),S=0;S&lt;M.length;S++)f(o=M[S],s=o+h.dvalue)}return c.sort((function(t,e){return t.min-e.min})),c},t.makeCalcdata=function(e,r,n){var i,o,s,l,c=t.type,u=&quot;date&quot;===c&amp;&amp;e[r+&quot;calendar&quot;];if(r in e){if(i=e[r],l=e._length||a.minRowLength(i),a.isTypedArray(i)&amp;&amp;(&quot;linear&quot;===c||&quot;log&quot;===c)){if(l===i.length)return i;if(i.subarray)return i.subarray(0,l)}if(&quot;multicategory&quot;===c)return function(t,e){for(var r=new Array(e),n=0;n&lt;e;n++){var i=(t[0]||[])[n],a=(t[1]||[])[n];r[n]=O([i,a])}return r}(i,l);for(o=new Array(l),s=0;s&lt;l;s++)o[s]=t.d2c(i[s],0,u,n)}else{var f=r+&quot;0&quot;in e?t.d2c(e[r+&quot;0&quot;],0,u):0,h=e[&quot;d&quot;+r]?Number(e[&quot;d&quot;+r]):1;for(i=e[{x:&quot;y&quot;,y:&quot;x&quot;}[r]],l=e._length||i.length,o=new Array(l),s=0;s&lt;l;s++)o[s]=f+s*h}if(t.rangebreaks)for(s=0;s&lt;l;s++)o[s]=t.maskBreaks(o[s]);return o},t.isValidRange=function(e){return Array.isArray(e)&amp;&amp;2===e.length&amp;&amp;s(t.r2l(e[0]))&amp;&amp;s(t.r2l(e[1]))},t.isPtWithinRange=function(e,r){var n=t.c2l(e[p],null,r),i=t.r2l(t.range[0]),a=t.r2l(t.range[1]);return i&lt;a?i&lt;=n&amp;&amp;n&lt;=a:a&lt;=n&amp;&amp;n&lt;=i},t._emptyCategories=function(){t._categories=[],t._categoriesMap={}},t.clearCalc=function(){var r=t._matchGroup;if(r){var n=null,i=null;for(var a in r){var o=e[w.id2name(a)];if(o._categories){n=o._categories,i=o._categoriesMap;break}}n&amp;&amp;i?(t._categories=n,t._categoriesMap=i):t._emptyCategories()}else t._emptyCategories();if(t._initialCategories)for(var s=0;s&lt;t._initialCategories.length;s++)I(t._initialCategories[s])},t.sortByInitialCategories=function(){var n=[];if(t._emptyCategories(),t._initialCategories)for(var i=0;i&lt;t._initialCategories.length;i++)I(t._initialCategories[i]);n=n.concat(t._traceIndices);var a=t._matchGroup;for(var o in a)if(r!==o){var s=e[w.id2name(o)];s._categories=t._categories,s._categoriesMap=t._categoriesMap,n=n.concat(s._traceIndices)}return n};var U=e._d3locale;&quot;date&quot;===t.type&amp;&amp;(t._dateFormat=U?U.timeFormat:i,t._extraFormat=e._extraFormat),t._separators=e.separators,t._numFormat=U?U.numberFormat:o,delete t._minDtick,delete t._forceTick0}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;./axis_ids&quot;:558,&quot;./constants&quot;:561,&quot;@plotly/d3&quot;:58,&quot;d3-time-format&quot;:120,&quot;fast-isnumeric&quot;:190}],577:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=[&quot;showexponent&quot;,&quot;showtickprefix&quot;,&quot;showticksuffix&quot;].filter((function(e){return void 0!==t[e]}));if(e.every((function(r){return t[r]===t[e[0]]}))||1===e.length)return t[e[0]]}},{}],578:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;).contrast,a=t(&quot;./layout_attributes&quot;),o=t(&quot;./show_dflt&quot;),s=t(&quot;../array_container_defaults&quot;);function l(t,e){function r(r,i){return n.coerce(t,e,a.tickformatstops,r,i)}r(&quot;enabled&quot;)&amp;&amp;(r(&quot;dtickrange&quot;),r(&quot;value&quot;))}e.exports=function(t,e,r,c,u){u||(u={});var f=o(t);if(r(&quot;showticklabels&quot;)){var h=u.font||{},p=e.color,d=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)?i(u.bgColor):p&amp;&amp;p!==a.color.dflt?p:h.color;if(n.coerceFont(r,&quot;tickfont&quot;,{family:h.family,size:h.size,color:d}),u.noAng||r(&quot;tickangle&quot;),&quot;category&quot;!==c){var m=r(&quot;tickformat&quot;);s(t,e,{name:&quot;tickformatstops&quot;,inclusionAttr:&quot;enabled&quot;,handleItemDefaults:l}),e.tickformatstops.length||delete e.tickformatstops,u.noExp||m||&quot;date&quot;===c||(r(&quot;showexponent&quot;,f),r(&quot;exponentformat&quot;),r(&quot;minexponent&quot;),r(&quot;separatethousands&quot;))}}}},{&quot;../../components/color&quot;:366,&quot;../../lib&quot;:503,&quot;../array_container_defaults&quot;:549,&quot;./layout_attributes&quot;:569,&quot;./show_dflt&quot;:577}],579:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r,a){var o=n.coerce2(t,e,i,&quot;ticklen&quot;),s=n.coerce2(t,e,i,&quot;tickwidth&quot;),l=n.coerce2(t,e,i,&quot;tickcolor&quot;,e.color);r(&quot;ticks&quot;,a.outerTicks||o||s||l?&quot;outside&quot;:&quot;&quot;)||(delete e.ticklen,delete e.tickwidth,delete e.tickcolor)}},{&quot;../../lib&quot;:503,&quot;./layout_attributes&quot;:569}],580:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./clean_ticks&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a){function o(r){var n=t[r];return void 0!==n?n:(e._template||{})[r]}var s=o(&quot;tick0&quot;),l=o(&quot;dtick&quot;),c=o(&quot;tickvals&quot;),u=r(&quot;tickmode&quot;,i(c)?&quot;array&quot;:l?&quot;linear&quot;:&quot;auto&quot;);if(&quot;auto&quot;===u)r(&quot;nticks&quot;);else if(&quot;linear&quot;===u){var f=e.dtick=n.dtick(l,a);e.tick0=n.tick0(s,a,e.calendar,f)}else if(&quot;multicategory&quot;!==a){void 0===r(&quot;tickvals&quot;)?e.tickmode=&quot;auto&quot;:r(&quot;ticktext&quot;)}}},{&quot;../../lib&quot;:503,&quot;./clean_ticks&quot;:560}],581:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;./axes&quot;);e.exports=function(t,e,r,l){var c=t._fullLayout;if(0!==e.length){var u,f,h,p;l&amp;&amp;(u=l());var d=n.ease(r.easing);return t._transitionData._interruptCallbacks.push((function(){return window.cancelAnimationFrame(p),p=null,function(){for(var r={},n=0;n&lt;e.length;n++){var a=e[n],o=a.plotinfo.xaxis,s=a.plotinfo.yaxis;a.xr0&amp;&amp;(r[o._name+&quot;.range&quot;]=a.xr0.slice()),a.yr0&amp;&amp;(r[s._name+&quot;.range&quot;]=a.yr0.slice())}return i.call(&quot;relayout&quot;,t,r).then((function(){for(var t=0;t&lt;e.length;t++)m(e[t].plotinfo)}))}()})),f=Date.now(),p=window.requestAnimationFrame((function n(){h=Date.now();for(var a=Math.min(1,(h-f)/r.duration),o=d(a),s=0;s&lt;e.length;s++)g(e[s],o);h-f&gt;r.duration?(!function(){for(var r={},n=0;n&lt;e.length;n++){var a=e[n],o=a.plotinfo.xaxis,s=a.plotinfo.yaxis;a.xr1&amp;&amp;(r[o._name+&quot;.range&quot;]=a.xr1.slice()),a.yr1&amp;&amp;(r[s._name+&quot;.range&quot;]=a.yr1.slice())}u&amp;&amp;u(),i.call(&quot;relayout&quot;,t,r).then((function(){for(var t=0;t&lt;e.length;t++)m(e[t].plotinfo)}))}(),p=window.cancelAnimationFrame(n)):p=window.requestAnimationFrame(n)})),Promise.resolve()}function m(t){var e=t.xaxis,r=t.yaxis;c._defs.select(&quot;#&quot;+t.clipId+&quot;&gt; rect&quot;).call(o.setTranslate,0,0).call(o.setScale,1,1),t.plot.call(o.setTranslate,e._offset,r._offset).call(o.setScale,1,1);var n=t.plot.selectAll(&quot;.scatterlayer .trace&quot;);n.selectAll(&quot;.point&quot;).call(o.setPointGroupScale,1,1),n.selectAll(&quot;.textpoint&quot;).call(o.setTextPointsScale,1,1),n.call(o.hideOutsideRangePoints,t)}function g(e,r){var n=e.plotinfo,i=n.xaxis,l=n.yaxis,c=i._length,u=l._length,f=!!e.xr1,h=!!e.yr1,p=[];if(f){var d=a.simpleMap(e.xr0,i.r2l),m=a.simpleMap(e.xr1,i.r2l),g=d[1]-d[0],v=m[1]-m[0];p[0]=(d[0]*(1-r)+r*m[0]-d[0])/(d[1]-d[0])*c,p[2]=c*(1-r+r*v/g),i.range[0]=i.l2r(d[0]*(1-r)+r*m[0]),i.range[1]=i.l2r(d[1]*(1-r)+r*m[1])}else p[0]=0,p[2]=c;if(h){var y=a.simpleMap(e.yr0,l.r2l),x=a.simpleMap(e.yr1,l.r2l),b=y[1]-y[0],_=x[1]-x[0];p[1]=(y[1]*(1-r)+r*x[1]-y[1])/(y[0]-y[1])*u,p[3]=u*(1-r+r*_/b),l.range[0]=i.l2r(y[0]*(1-r)+r*x[0]),l.range[1]=l.l2r(y[1]*(1-r)+r*x[1])}else p[1]=0,p[3]=u;s.drawOne(t,i,{skipTitle:!0}),s.drawOne(t,l,{skipTitle:!0}),s.redrawComponents(t,[i._id,l._id]);var w=f?c/p[2]:1,T=h?u/p[3]:1,k=f?p[0]:0,A=h?p[1]:0,M=f?p[0]/p[2]*c:0,S=h?p[1]/p[3]*u:0,E=i._offset-M,L=l._offset-S;n.clipRect.call(o.setTranslate,k,A).call(o.setScale,1/w,1/T),n.plot.call(o.setTranslate,E,L).call(o.setScale,w,T),o.setPointGroupScale(n.zoomScalePts,1/w,1/T),o.setTextPointsScale(n.zoomScaleTxt,1/w,1/T)}s.redrawComponents(t)}},{&quot;../../components/drawing&quot;:388,&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;./axes&quot;:554,&quot;@plotly/d3&quot;:58}],582:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;).traceIs,i=t(&quot;./axis_autotype&quot;);function a(t){return{v:&quot;x&quot;,h:&quot;y&quot;}[t.orientation||&quot;v&quot;]}function o(t,e){var r=a(t),i=n(t,&quot;box-violin&quot;),o=n(t._fullInput||{},&quot;candlestick&quot;);return i&amp;&amp;!o&amp;&amp;e===r&amp;&amp;void 0===t[r]&amp;&amp;void 0===t[r+&quot;0&quot;]}e.exports=function(t,e,r,s){r(&quot;autotypenumbers&quot;,s.autotypenumbersDflt),&quot;-&quot;===r(&quot;type&quot;,(s.splomStash||{}).type)&amp;&amp;(!function(t,e){if(&quot;-&quot;!==t.type)return;var r,s=t._id,l=s.charAt(0);-1!==s.indexOf(&quot;scene&quot;)&amp;&amp;(s=l);var c=function(t,e,r){for(var n=0;n&lt;t.length;n++){var i=t[n];if(&quot;splom&quot;===i.type&amp;&amp;i._length&gt;0&amp;&amp;(i[&quot;_&quot;+r+&quot;axes&quot;]||{})[e])return i;if((i[r+&quot;axis&quot;]||r)===e){if(o(i,r))return i;if((i[r]||[]).length||i[r+&quot;0&quot;])return i}}}(e,s,l);if(!c)return;if(&quot;histogram&quot;===c.type&amp;&amp;l==={v:&quot;y&quot;,h:&quot;x&quot;}[c.orientation||&quot;v&quot;])return void(t.type=&quot;linear&quot;);var u=l+&quot;calendar&quot;,f=c[u],h={noMultiCategory:!n(c,&quot;cartesian&quot;)||n(c,&quot;noMultiCategory&quot;)};&quot;box&quot;===c.type&amp;&amp;c._hasPreCompStats&amp;&amp;l==={h:&quot;x&quot;,v:&quot;y&quot;}[c.orientation||&quot;v&quot;]&amp;&amp;(h.noMultiCategory=!0);if(h.autotypenumbers=t.autotypenumbers,o(c,l)){var p=a(c),d=[];for(r=0;r&lt;e.length;r++){var m=e[r];n(m,&quot;box-violin&quot;)&amp;&amp;(m[l+&quot;axis&quot;]||l)===s&amp;&amp;(void 0!==m[p]?d.push(m[p][0]):void 0!==m.name?d.push(m.name):d.push(&quot;text&quot;),m[u]!==f&amp;&amp;(f=void 0))}t.type=i(d,f,h)}else if(&quot;splom&quot;===c.type){var g=c.dimensions[c._axesDim[s]];g.visible&amp;&amp;(t.type=i(g.values,f,h))}else t.type=i(c[l]||[c[l+&quot;0&quot;]],f,h)}(e,s.data),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:t.type=e.type)}},{&quot;../../registry&quot;:638,&quot;./axis_autotype&quot;:555}],583:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;);function a(t,e,r){var n,a,o,s=!1;if(&quot;data&quot;===e.type)n=t._fullData[null!==e.traces?e.traces[0]:0];else{if(&quot;layout&quot;!==e.type)return!1;n=t._fullLayout}return a=i.nestedProperty(n,e.prop).get(),(o=r[e.type]=r[e.type]||{}).hasOwnProperty(e.prop)&amp;&amp;o[e.prop]!==a&amp;&amp;(s=!0),o[e.prop]=a,{changed:s,value:a}}function o(t,e){var r=[],n=e[0],a={};if(&quot;string&quot;==typeof n)a[n]=e[1];else{if(!i.isPlainObject(n))return r;a=n}return l(a,(function(t,e,n){r.push({type:&quot;layout&quot;,prop:t,value:n})}),&quot;&quot;,0),r}function s(t,e){var r,n,a,o,s=[];if(n=e[0],a=e[1],r=e[2],o={},&quot;string&quot;==typeof n)o[n]=a;else{if(!i.isPlainObject(n))return s;o=n,void 0===r&amp;&amp;(r=a)}return void 0===r&amp;&amp;(r=null),l(o,(function(e,n,i){var a,o;if(Array.isArray(i)){o=i.slice();var l=Math.min(o.length,t.data.length);r&amp;&amp;(l=Math.min(l,r.length)),a=[];for(var c=0;c&lt;l;c++)a[c]=r?r[c]:c}else o=i,a=r?r.slice():null;if(null===a)Array.isArray(o)&amp;&amp;(o=o[0]);else if(Array.isArray(a)){if(!Array.isArray(o)){var u=o;o=[];for(var f=0;f&lt;a.length;f++)o[f]=u}o.length=Math.min(a.length,o.length)}s.push({type:&quot;data&quot;,prop:e,traces:a,value:o})}),&quot;&quot;,0),s}function l(t,e,r,n){Object.keys(t).forEach((function(a){var o=t[a];if(&quot;_&quot;!==a[0]){var s=r+(n&gt;0?&quot;.&quot;:&quot;&quot;)+a;i.isPlainObject(o)?l(o,e,s,n+1):e(s,a,o)}}))}r.manageCommandObserver=function(t,e,n,o){var s={},l=!0;e&amp;&amp;e._commandObserver&amp;&amp;(s=e._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var c=r.hasSimpleAPICommandBindings(t,n,s.lookupTable);if(e&amp;&amp;e._commandObserver){if(c)return s;if(e._commandObserver.remove)return e._commandObserver.remove(),e._commandObserver=null,s}if(c){a(t,c,s.cache),s.check=function(){if(l){var e=a(t,c,s.cache);return e.changed&amp;&amp;o&amp;&amp;void 0!==s.lookupTable[e.value]&amp;&amp;(s.disable(),Promise.resolve(o({value:e.value,type:c.type,prop:c.prop,traces:c.traces,index:s.lookupTable[e.value]})).then(s.enable,s.enable)),e.changed}};for(var u=[&quot;plotly_relayout&quot;,&quot;plotly_redraw&quot;,&quot;plotly_restyle&quot;,&quot;plotly_update&quot;,&quot;plotly_animatingframe&quot;,&quot;plotly_afterplot&quot;],f=0;f&lt;u.length;f++)t._internalOn(u[f],s.check);s.remove=function(){for(var e=0;e&lt;u.length;e++)t._removeInternalListener(u[e],s.check)}}else i.log(&quot;Unable to automatically bind plot updates to API command&quot;),s.lookupTable={},s.remove=function(){};return s.disable=function(){l=!1},s.enable=function(){l=!0},e&amp;&amp;(e._commandObserver=s),s},r.hasSimpleAPICommandBindings=function(t,e,n){var i,a,o=e.length;for(i=0;i&lt;o;i++){var s,l=e[i],c=l.method,u=l.args;if(Array.isArray(u)||(u=[]),!c)return!1;var f=r.computeAPICommandBindings(t,c,u);if(1!==f.length)return!1;if(a){if((s=f[0]).type!==a.type)return!1;if(s.prop!==a.prop)return!1;if(Array.isArray(a.traces)){if(!Array.isArray(s.traces))return!1;s.traces.sort();for(var h=0;h&lt;a.traces.length;h++)if(a.traces[h]!==s.traces[h])return!1}else if(s.prop!==a.prop)return!1}else a=f[0],Array.isArray(a.traces)&amp;&amp;a.traces.sort();var p=(s=f[0]).value;if(Array.isArray(p)){if(1!==p.length)return!1;p=p[0]}n&amp;&amp;(n[p]=i)}return a},r.executeAPICommand=function(t,e,r){if(&quot;skip&quot;===e)return Promise.resolve();var a=n.apiMethodRegistry[e],o=[t];Array.isArray(r)||(r=[]);for(var s=0;s&lt;r.length;s++)o.push(r[s]);return a.apply(null,o).catch((function(t){return i.warn(&quot;API call to Plotly.&quot;+e+&quot; rejected.&quot;,t),Promise.reject(t)}))},r.computeAPICommandBindings=function(t,e,r){var n;switch(Array.isArray(r)||(r=[]),e){case&quot;restyle&quot;:n=s(t,r);break;case&quot;relayout&quot;:n=o(t,r);break;case&quot;update&quot;:n=s(t,[r[0],r[2]]).concat(o(t,[r[1]]));break;case&quot;animate&quot;:n=function(t,e){return Array.isArray(e[0])&amp;&amp;1===e[0].length&amp;&amp;-1!==[&quot;string&quot;,&quot;number&quot;].indexOf(typeof e[0][0])?[{type:&quot;layout&quot;,prop:&quot;_currentFrame&quot;,value:e[0][0].toString()}]:[]}(0,r);break;default:n=[]}return n}},{&quot;../lib&quot;:503,&quot;../registry&quot;:638}],584:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/extend&quot;).extendFlat;r.attributes=function(t,e){e=e||{};var r={valType:&quot;info_array&quot;,editType:(t=t||{}).editType,items:[{valType:&quot;number&quot;,min:0,max:1,editType:t.editType},{valType:&quot;number&quot;,min:0,max:1,editType:t.editType}],dflt:[0,1]},i=(t.name&amp;&amp;t.name,t.trace,e.description&amp;&amp;e.description,{x:n({},r,{}),y:n({},r,{}),editType:t.editType});return t.noGridCell||(i.row={valType:&quot;integer&quot;,min:0,dflt:0,editType:t.editType},i.column={valType:&quot;integer&quot;,min:0,dflt:0,editType:t.editType}),i},r.defaults=function(t,e,r,n){var i=n&amp;&amp;n.x||[0,1],a=n&amp;&amp;n.y||[0,1],o=e.grid;if(o){var s=r(&quot;domain.column&quot;);void 0!==s&amp;&amp;(s&lt;o.columns?i=o._domains.x[s]:delete t.domain.column);var l=r(&quot;domain.row&quot;);void 0!==l&amp;&amp;(l&lt;o.rows?a=o._domains.y[l]:delete t.domain.row)}var c=r(&quot;domain.x&quot;,i),u=r(&quot;domain.y&quot;,a);c[0]&lt;c[1]||(t.domain.x=i.slice()),u[0]&lt;u[1]||(t.domain.y=a.slice())}},{&quot;../lib/extend&quot;:493}],585:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.editType,r=t.colorEditType;void 0===r&amp;&amp;(r=e);var n={family:{valType:&quot;string&quot;,noBlank:!0,strict:!0,editType:e},size:{valType:&quot;number&quot;,min:1,editType:e},color:{valType:&quot;color&quot;,editType:r},editType:e};return t.autoSize&amp;&amp;(n.size.dflt=&quot;auto&quot;),t.autoColor&amp;&amp;(n.color.dflt=&quot;auto&quot;),t.arrayOk&amp;&amp;(n.family.arrayOk=!0,n.size.arrayOk=!0,n.color.arrayOk=!0),n}},{}],586:[function(t,e,r){&quot;use strict&quot;;e.exports={_isLinkedToArray:&quot;frames_entry&quot;,group:{valType:&quot;string&quot;},name:{valType:&quot;string&quot;},traces:{valType:&quot;any&quot;},baseframe:{valType:&quot;string&quot;},data:{valType:&quot;any&quot;},layout:{valType:&quot;any&quot;}}},{}],587:[function(t,e,r){&quot;use strict&quot;;r.projNames={airy:&quot;airy&quot;,aitoff:&quot;aitoff&quot;,&quot;albers usa&quot;:&quot;albersUsa&quot;,albers:&quot;albers&quot;,august:&quot;august&quot;,&quot;azimuthal equal area&quot;:&quot;azimuthalEqualArea&quot;,&quot;azimuthal equidistant&quot;:&quot;azimuthalEquidistant&quot;,baker:&quot;baker&quot;,bertin1953:&quot;bertin1953&quot;,boggs:&quot;boggs&quot;,bonne:&quot;bonne&quot;,bottomley:&quot;bottomley&quot;,bromley:&quot;bromley&quot;,collignon:&quot;collignon&quot;,&quot;conic conformal&quot;:&quot;conicConformal&quot;,&quot;conic equal area&quot;:&quot;conicEqualArea&quot;,&quot;conic equidistant&quot;:&quot;conicEquidistant&quot;,craig:&quot;craig&quot;,craster:&quot;craster&quot;,&quot;cylindrical equal area&quot;:&quot;cylindricalEqualArea&quot;,&quot;cylindrical stereographic&quot;:&quot;cylindricalStereographic&quot;,eckert1:&quot;eckert1&quot;,eckert2:&quot;eckert2&quot;,eckert3:&quot;eckert3&quot;,eckert4:&quot;eckert4&quot;,eckert5:&quot;eckert5&quot;,eckert6:&quot;eckert6&quot;,eisenlohr:&quot;eisenlohr&quot;,equirectangular:&quot;equirectangular&quot;,fahey:&quot;fahey&quot;,&quot;foucaut sinusoidal&quot;:&quot;foucautSinusoidal&quot;,foucaut:&quot;foucaut&quot;,ginzburg4:&quot;ginzburg4&quot;,ginzburg5:&quot;ginzburg5&quot;,ginzburg6:&quot;ginzburg6&quot;,ginzburg8:&quot;ginzburg8&quot;,ginzburg9:&quot;ginzburg9&quot;,gnomonic:&quot;gnomonic&quot;,&quot;gringorten quincuncial&quot;:&quot;gringortenQuincuncial&quot;,gringorten:&quot;gringorten&quot;,guyou:&quot;guyou&quot;,hammer:&quot;hammer&quot;,hill:&quot;hill&quot;,homolosine:&quot;homolosine&quot;,hufnagel:&quot;hufnagel&quot;,hyperelliptical:&quot;hyperelliptical&quot;,kavrayskiy7:&quot;kavrayskiy7&quot;,lagrange:&quot;lagrange&quot;,larrivee:&quot;larrivee&quot;,laskowski:&quot;laskowski&quot;,loximuthal:&quot;loximuthal&quot;,mercator:&quot;mercator&quot;,miller:&quot;miller&quot;,mollweide:&quot;mollweide&quot;,&quot;mt flat polar parabolic&quot;:&quot;mtFlatPolarParabolic&quot;,&quot;mt flat polar quartic&quot;:&quot;mtFlatPolarQuartic&quot;,&quot;mt flat polar sinusoidal&quot;:&quot;mtFlatPolarSinusoidal&quot;,&quot;natural earth&quot;:&quot;naturalEarth&quot;,&quot;natural earth1&quot;:&quot;naturalEarth1&quot;,&quot;natural earth2&quot;:&quot;naturalEarth2&quot;,&quot;nell hammer&quot;:&quot;nellHammer&quot;,nicolosi:&quot;nicolosi&quot;,orthographic:&quot;orthographic&quot;,patterson:&quot;patterson&quot;,&quot;peirce quincuncial&quot;:&quot;peirceQuincuncial&quot;,polyconic:&quot;polyconic&quot;,&quot;rectangular polyconic&quot;:&quot;rectangularPolyconic&quot;,robinson:&quot;robinson&quot;,satellite:&quot;satellite&quot;,&quot;sinu mollweide&quot;:&quot;sinuMollweide&quot;,sinusoidal:&quot;sinusoidal&quot;,stereographic:&quot;stereographic&quot;,times:&quot;times&quot;,&quot;transverse mercator&quot;:&quot;transverseMercator&quot;,&quot;van der grinten&quot;:&quot;vanDerGrinten&quot;,&quot;van der grinten2&quot;:&quot;vanDerGrinten2&quot;,&quot;van der grinten3&quot;:&quot;vanDerGrinten3&quot;,&quot;van der grinten4&quot;:&quot;vanDerGrinten4&quot;,wagner4:&quot;wagner4&quot;,wagner6:&quot;wagner6&quot;,wiechel:&quot;wiechel&quot;,&quot;winkel tripel&quot;:&quot;winkel3&quot;,winkel3:&quot;winkel3&quot;},r.axesNames=[&quot;lonaxis&quot;,&quot;lataxis&quot;],r.lonaxisSpan={orthographic:180,&quot;azimuthal equal area&quot;:360,&quot;azimuthal equidistant&quot;:360,&quot;conic conformal&quot;:180,gnomonic:160,stereographic:180,&quot;transverse mercator&quot;:180,&quot;*&quot;:360},r.lataxisSpan={&quot;conic conformal&quot;:150,stereographic:179.5,&quot;*&quot;:180},r.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:&quot;equirectangular&quot;,projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:&quot;albers usa&quot;},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:&quot;conic conformal&quot;,projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:&quot;mercator&quot;,projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:&quot;mercator&quot;,projRotate:[0,0,0]},&quot;north america&quot;:{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:&quot;conic conformal&quot;,projRotate:[-100,0,0],projParallels:[29.5,45.5]},&quot;south america&quot;:{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:&quot;mercator&quot;,projRotate:[0,0,0]}},r.clipPad=.001,r.precision=.1,r.landColor=&quot;#F0DC82&quot;,r.waterColor=&quot;#3399FF&quot;,r.locationmodeToLayer={&quot;ISO-3&quot;:&quot;countries&quot;,&quot;USA-states&quot;:&quot;subunits&quot;,&quot;country names&quot;:&quot;countries&quot;},r.sphereSVG={type:&quot;Sphere&quot;},r.fillLayers={ocean:1,land:1,lakes:1},r.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},r.layers=[&quot;bg&quot;,&quot;ocean&quot;,&quot;land&quot;,&quot;lakes&quot;,&quot;subunits&quot;,&quot;countries&quot;,&quot;coastlines&quot;,&quot;rivers&quot;,&quot;lataxis&quot;,&quot;lonaxis&quot;,&quot;frame&quot;,&quot;backplot&quot;,&quot;frontplot&quot;],r.layersForChoropleth=[&quot;bg&quot;,&quot;ocean&quot;,&quot;land&quot;,&quot;subunits&quot;,&quot;countries&quot;,&quot;coastlines&quot;,&quot;lataxis&quot;,&quot;lonaxis&quot;,&quot;frame&quot;,&quot;backplot&quot;,&quot;rivers&quot;,&quot;lakes&quot;,&quot;frontplot&quot;],r.layerNameToAdjective={ocean:&quot;ocean&quot;,land:&quot;land&quot;,lakes:&quot;lake&quot;,subunits:&quot;subunit&quot;,countries:&quot;country&quot;,coastlines:&quot;coastline&quot;,rivers:&quot;river&quot;,frame:&quot;frame&quot;}},{}],588:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-geo&quot;),a=i.geoPath,o=i.geoDistance,s=t(&quot;d3-geo-projection&quot;),l=t(&quot;../../registry&quot;),c=t(&quot;../../lib&quot;),u=c.strTranslate,f=t(&quot;../../components/color&quot;),h=t(&quot;../../components/drawing&quot;),p=t(&quot;../../components/fx&quot;),d=t(&quot;../plots&quot;),m=t(&quot;../cartesian/axes&quot;),g=t(&quot;../cartesian/autorange&quot;).getAutoRange,v=t(&quot;../../components/dragelement&quot;),y=t(&quot;../cartesian/select&quot;).prepSelect,x=t(&quot;../cartesian/select&quot;).clearSelect,b=t(&quot;../cartesian/select&quot;).selectOnClick,_=t(&quot;./zoom&quot;),w=t(&quot;./constants&quot;),T=t(&quot;../../lib/geo_location_utils&quot;),k=t(&quot;../../lib/topojson_utils&quot;),A=t(&quot;topojson-client&quot;).feature;function M(t){this.id=t.id,this.graphDiv=t.graphDiv,this.container=t.container,this.topojsonURL=t.topojsonURL,this.isStatic=t.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}var S=M.prototype;function E(t,e){var r=w.clipPad,n=t[0]+r,i=t[1]-r,a=e[0]+r,o=e[1]-r;n&gt;0&amp;&amp;i&lt;0&amp;&amp;(i+=360);var s=(i-n)/4;return{type:&quot;Polygon&quot;,coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}e.exports=function(t){return new M(t)},S.plot=function(t,e,r){var n=this,i=e[this.id],a=[],o=!1;for(var s in w.layerNameToAdjective)if(&quot;frame&quot;!==s&amp;&amp;i[&quot;show&quot;+s]){o=!0;break}for(var l=0;l&lt;t.length;l++)if(t[0][0].trace.locationmode){o=!0;break}if(o){var c=k.getTopojsonName(i);null!==n.topojson&amp;&amp;c===n.topojsonName||(n.topojsonName=c,void 0===PlotlyGeoAssets.topojson[n.topojsonName]&amp;&amp;a.push(n.fetchTopojson()))}a=a.concat(T.fetchTraceGeoData(t)),r.push(new Promise((function(r,i){Promise.all(a).then((function(){n.topojson=PlotlyGeoAssets.topojson[n.topojsonName],n.update(t,e),r()})).catch(i)})))},S.fetchTopojson=function(){var t=this,e=k.getTopojsonPath(t.topojsonURL,t.topojsonName);return new Promise((function(r,i){n.json(e,(function(n,a){if(n)return 404===n.status?i(new Error([&quot;plotly.js could not find topojson file at&quot;,e,&quot;.&quot;,&quot;Make sure the *topojsonURL* plot config option&quot;,&quot;is set properly.&quot;].join(&quot; &quot;))):i(new Error([&quot;unexpected error while fetching topojson file at&quot;,e].join(&quot; &quot;)));PlotlyGeoAssets.topojson[t.topojsonName]=a,r()}))}))},S.update=function(t,e){var r=e[this.id];this.hasChoropleth=!1;for(var n=0;n&lt;t.length;n++){var i=t[n],a=i[0].trace;&quot;choropleth&quot;===a.type&amp;&amp;(this.hasChoropleth=!0),!0===a.visible&amp;&amp;a._length&gt;0&amp;&amp;a._module.calcGeoJSON(i,e)}if(!this.updateProjection(t,e)){this.viewInitial&amp;&amp;this.scope===r.scope||this.saveViewInitial(r),this.scope=r.scope,this.updateBaseLayers(e,r),this.updateDims(e,r),this.updateFx(e,r),d.generalUpdatePerTraceModule(this.graphDiv,this,t,r);var o=this.layers.frontplot.select(&quot;.scatterlayer&quot;);this.dataPoints.point=o.selectAll(&quot;.point&quot;),this.dataPoints.text=o.selectAll(&quot;text&quot;),this.dataPaths.line=o.selectAll(&quot;.js-line&quot;);var s=this.layers.backplot.select(&quot;.choroplethlayer&quot;);this.dataPaths.choropleth=s.selectAll(&quot;path&quot;),this.render()}},S.updateProjection=function(t,e){var r=this.graphDiv,n=e[this.id],l=e._size,u=n.domain,f=n.projection,h=n.lonaxis,p=n.lataxis,d=h._ax,m=p._ax,v=this.projection=function(t){var e=t.projection,r=e.type,n=w.projNames[r];n=&quot;geo&quot;+c.titleCase(n);for(var l=(i[n]||s[n])(),u=t._isSatellite?180*Math.acos(1/e.distance)/Math.PI:t._isClipped?w.lonaxisSpan[r]/2:null,f=[&quot;center&quot;,&quot;rotate&quot;,&quot;parallels&quot;,&quot;clipExtent&quot;],h=function(t){return t?l:[]},p=0;p&lt;f.length;p++){var d=f[p];&quot;function&quot;!=typeof l[d]&amp;&amp;(l[d]=h)}l.isLonLatOverEdges=function(t){if(null===l(t))return!0;if(u){var e=l.rotate();return o(t,[-e[0],-e[1]])&gt;u*Math.PI/180}return!1},l.getPath=function(){return a().projection(l)},l.getBounds=function(t){return l.getPath().bounds(t)},l.precision(w.precision),t._isSatellite&amp;&amp;l.tilt(e.tilt).distance(e.distance);u&amp;&amp;l.clipAngle(u-w.clipPad);return l}(n),y=[[l.l+l.w*u.x[0],l.t+l.h*(1-u.y[1])],[l.l+l.w*u.x[1],l.t+l.h*(1-u.y[0])]],x=n.center||{},b=f.rotation||{},_=h.range||[],T=p.range||[];if(n.fitbounds){d._length=y[1][0]-y[0][0],m._length=y[1][1]-y[0][1],d.range=g(r,d),m.range=g(r,m);var k=(d.range[0]+d.range[1])/2,A=(m.range[0]+m.range[1])/2;if(n._isScoped)x={lon:k,lat:A};else if(n._isClipped){x={lon:k,lat:A},b={lon:k,lat:A,roll:b.roll};var M=f.type,S=w.lonaxisSpan[M]/2||180,L=w.lataxisSpan[M]/2||90;_=[k-S,k+S],T=[A-L,A+L]}else x={lon:k,lat:A},b={lon:k,lat:b.lat,roll:b.roll}}v.center([x.lon-b.lon,x.lat-b.lat]).rotate([-b.lon,-b.lat,b.roll]).parallels(f.parallels);var C=E(_,T);v.fitExtent(y,C);var P=this.bounds=v.getBounds(C),I=this.fitScale=v.scale(),O=v.translate();if(n.fitbounds){var z=v.getBounds(E(d.range,m.range)),D=Math.min((P[1][0]-P[0][0])/(z[1][0]-z[0][0]),(P[1][1]-P[0][1])/(z[1][1]-z[0][1]));isFinite(D)?v.scale(D*I):c.warn(&quot;Something went wrong during&quot;+this.id+&quot;fitbounds computations.&quot;)}else v.scale(f.scale*I);var R=this.midPt=[(P[0][0]+P[1][0])/2,(P[0][1]+P[1][1])/2];if(v.translate([O[0]+(R[0]-O[0]),O[1]+(R[1]-O[1])]).clipExtent(P),n._isAlbersUsa){var F=v([x.lon,x.lat]),B=v.translate();v.translate([B[0]-(F[0]-B[0]),B[1]-(F[1]-B[1])])}},S.updateBaseLayers=function(t,e){var r=this,i=r.topojson,a=r.layers,o=r.basePaths;function s(t){return&quot;lonaxis&quot;===t||&quot;lataxis&quot;===t}function l(t){return Boolean(w.lineLayers[t])}function c(t){return Boolean(w.fillLayers[t])}var u=(this.hasChoropleth?w.layersForChoropleth:w.layers).filter((function(t){return l(t)||c(t)?e[&quot;show&quot;+t]:!s(t)||e[t].showgrid})),p=r.framework.selectAll(&quot;.layer&quot;).data(u,String);p.exit().each((function(t){delete a[t],delete o[t],n.select(this).remove()})),p.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;layer &quot;+t})).each((function(t){var e=a[t]=n.select(this);&quot;bg&quot;===t?r.bgRect=e.append(&quot;rect&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;):s(t)?o[t]=e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;):&quot;backplot&quot;===t?e.append(&quot;g&quot;).classed(&quot;choroplethlayer&quot;,!0):&quot;frontplot&quot;===t?e.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0):l(t)?o[t]=e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;).style(&quot;stroke-miterlimit&quot;,2):c(t)&amp;&amp;(o[t]=e.append(&quot;path&quot;).style(&quot;stroke&quot;,&quot;none&quot;))})),p.order(),p.each((function(r){var n=o[r],a=w.layerNameToAdjective[r];&quot;frame&quot;===r?n.datum(w.sphereSVG):l(r)||c(r)?n.datum(A(i,i.objects[r])):s(r)&amp;&amp;n.datum(function(t,e,r){var n,i,a,o=e[t],s=w.scopeDefaults[e.scope];&quot;lonaxis&quot;===t?(n=s.lonaxisRange,i=s.lataxisRange,a=function(t,e){return[t,e]}):&quot;lataxis&quot;===t&amp;&amp;(n=s.lataxisRange,i=s.lonaxisRange,a=function(t,e){return[e,t]});var l={type:&quot;linear&quot;,range:[n[0],n[1]-1e-6],tick0:o.tick0,dtick:o.dtick};m.setConvert(l,r);var c=m.calcTicks(l);e.isScoped||&quot;lonaxis&quot;!==t||c.pop();for(var u=c.length,f=new Array(u),h=0;h&lt;u;h++)for(var p=c[h].x,d=f[h]=[],g=i[0];g&lt;i[1]+2.5;g+=2.5)d.push(a(p,g));return{type:&quot;MultiLineString&quot;,coordinates:f}}(r,e,t)).call(f.stroke,e[r].gridcolor).call(h.dashLine,&quot;&quot;,e[r].gridwidth),l(r)?n.call(f.stroke,e[a+&quot;color&quot;]).call(h.dashLine,&quot;&quot;,e[a+&quot;width&quot;]):c(r)&amp;&amp;n.call(f.fill,e[a+&quot;color&quot;])}))},S.updateDims=function(t,e){var r=this.bounds,n=(e.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,s=r[1][1]-a+n;h.setRect(this.clipRect,i,a,o,s),this.bgRect.call(h.setRect,i,a,o,s).call(f.fill,e.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=s},S.updateFx=function(t,e){var r=this,i=r.graphDiv,a=r.bgRect,o=t.dragmode,s=t.clickmode;if(!r.isStatic){var u;&quot;select&quot;===o?u=function(t,e){(t.range={})[r.id]=[h([e.xmin,e.ymin]),h([e.xmax,e.ymax])]}:&quot;lasso&quot;===o&amp;&amp;(u=function(t,e,n){(t.lassoPoints={})[r.id]=n.filtered.map(h)});var f={element:r.bgRect.node(),gd:i,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(t){2===t&amp;&amp;x(i)}};&quot;pan&quot;===o?(a.node().onmousedown=null,a.call(_(r,e)),a.on(&quot;dblclick.zoom&quot;,(function(){var t=r.viewInitial,e={};for(var n in t)e[r.id+&quot;.&quot;+n]=t[n];l.call(&quot;_guiRelayout&quot;,i,e),i.emit(&quot;plotly_doubleclick&quot;,null)})),i._context._scrollZoom.geo||a.on(&quot;wheel.zoom&quot;,null)):&quot;select&quot;!==o&amp;&amp;&quot;lasso&quot;!==o||(a.on(&quot;.zoom&quot;,null),f.prepFn=function(t,e,r){y(t,e,r,f,o)},v.init(f)),a.on(&quot;mousemove&quot;,(function(){var t=r.projection.invert(c.getPositionFromD3Event());if(!t)return v.unhover(i,n.event);r.xaxis.p2c=function(){return t[0]},r.yaxis.p2c=function(){return t[1]},p.hover(i,n.event,r.id)})),a.on(&quot;mouseout&quot;,(function(){i._dragging||v.unhover(i,n.event)})),a.on(&quot;click&quot;,(function(){&quot;select&quot;!==o&amp;&amp;&quot;lasso&quot;!==o&amp;&amp;(s.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;b(n.event,i,[r.xaxis],[r.yaxis],r.id,f),s.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;p.click(i,n.event))}))}function h(t){return r.projection.invert([t[0]+r.xaxis._offset,t[1]+r.yaxis._offset])}},S.makeFramework=function(){var t=this,e=t.graphDiv,r=e._fullLayout,i=&quot;clip&quot;+r._uid+t.id;t.clipDef=r._clips.append(&quot;clipPath&quot;).attr(&quot;id&quot;,i),t.clipRect=t.clipDef.append(&quot;rect&quot;),t.framework=n.select(t.container).append(&quot;g&quot;).attr(&quot;class&quot;,&quot;geo &quot;+t.id).call(h.setClipUrl,i,e),t.project=function(e){var r=t.projection(e);return r?[r[0]-t.xaxis._offset,r[1]-t.yaxis._offset]:[null,null]},t.xaxis={_id:&quot;x&quot;,c2p:function(e){return t.project(e)[0]}},t.yaxis={_id:&quot;y&quot;,c2p:function(e){return t.project(e)[1]}},t.mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},m.setConvert(t.mockAxis,r)},S.saveViewInitial=function(t){var e,r=t.center||{},n=t.projection,i=n.rotation||{};this.viewInitial={fitbounds:t.fitbounds,&quot;projection.scale&quot;:n.scale},e=t._isScoped?{&quot;center.lon&quot;:r.lon,&quot;center.lat&quot;:r.lat}:t._isClipped?{&quot;projection.rotation.lon&quot;:i.lon,&quot;projection.rotation.lat&quot;:i.lat}:{&quot;center.lon&quot;:r.lon,&quot;center.lat&quot;:r.lat,&quot;projection.rotation.lon&quot;:i.lon},c.extendFlat(this.viewInitial,e)},S.render=function(){var t,e=this.projection,r=e.getPath();function n(t){var r=e(t.lonlat);return r?u(r[0],r[1]):null}function i(t){return e.isLonLatOverEdges(t.lonlat)?&quot;none&quot;:null}for(t in this.basePaths)this.basePaths[t].attr(&quot;d&quot;,r);for(t in this.dataPaths)this.dataPaths[t].attr(&quot;d&quot;,(function(t){return r(t.geojson)}));for(t in this.dataPoints)this.dataPoints[t].attr(&quot;display&quot;,i).attr(&quot;transform&quot;,n)}},{&quot;../../components/color&quot;:366,&quot;../../components/dragelement&quot;:385,&quot;../../components/drawing&quot;:388,&quot;../../components/fx&quot;:406,&quot;../../lib&quot;:503,&quot;../../lib/geo_location_utils&quot;:496,&quot;../../lib/topojson_utils&quot;:532,&quot;../../registry&quot;:638,&quot;../cartesian/autorange&quot;:553,&quot;../cartesian/axes&quot;:554,&quot;../cartesian/select&quot;:575,&quot;../plots&quot;:619,&quot;./constants&quot;:587,&quot;./zoom&quot;:592,&quot;@plotly/d3&quot;:58,&quot;d3-geo&quot;:114,&quot;d3-geo-projection&quot;:113,&quot;topojson-client&quot;:315}],589:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,i=t(&quot;../../lib&quot;).counterRegex,a=t(&quot;./geo&quot;),o=&quot;geo&quot;,s=i(o),l={};l.geo={valType:&quot;subplotid&quot;,dflt:o,editType:&quot;calc&quot;},e.exports={attr:o,name:o,idRoot:o,idRegex:s,attrRegex:s,attributes:l,layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots.geo,s=0;s&lt;i.length;s++){var l=i[s],c=n(r,o,l),u=e[l]._subplot;u||(u=a({id:l,graphDiv:t,container:e._geolayer.node(),topojsonURL:t._context.topojsonURL,staticPlot:t._context.staticPlot}),e[l]._subplot=u),u.plot(c,e,t._promises)}},updateFx:function(t){for(var e=t._fullLayout,r=e._subplots.geo,n=0;n&lt;r.length;n++){var i=e[r[n]];i._subplot.updateFx(e,i)}},clean:function(t,e,r,n){for(var i=n._subplots.geo||[],a=0;a&lt;i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&amp;&amp;s&amp;&amp;(s.framework.remove(),s.clipDef.remove())}}}},{&quot;../../lib&quot;:503,&quot;../../plots/get_data&quot;:593,&quot;./geo&quot;:588,&quot;./layout_attributes&quot;:590,&quot;./layout_defaults&quot;:591}],590:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../domain&quot;).attributes,a=t(&quot;./constants&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../lib/sort_object_keys&quot;),l={range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},showgrid:{valType:&quot;boolean&quot;,dflt:!1},tick0:{valType:&quot;number&quot;,dflt:0},dtick:{valType:&quot;number&quot;},gridcolor:{valType:&quot;color&quot;,dflt:n.lightLine},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1}};(e.exports=o({domain:i({name:&quot;geo&quot;},{}),fitbounds:{valType:&quot;enumerated&quot;,values:[!1,&quot;locations&quot;,&quot;geojson&quot;],dflt:!1,editType:&quot;plot&quot;},resolution:{valType:&quot;enumerated&quot;,values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:&quot;enumerated&quot;,values:s(a.scopeDefaults),dflt:&quot;world&quot;},projection:{type:{valType:&quot;enumerated&quot;,values:s(a.projNames)},rotation:{lon:{valType:&quot;number&quot;},lat:{valType:&quot;number&quot;},roll:{valType:&quot;number&quot;}},tilt:{valType:&quot;number&quot;,dflt:0},distance:{valType:&quot;number&quot;,min:1.001,dflt:2},parallels:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},scale:{valType:&quot;number&quot;,min:0,dflt:1}},center:{lon:{valType:&quot;number&quot;},lat:{valType:&quot;number&quot;}},visible:{valType:&quot;boolean&quot;,dflt:!0},showcoastlines:{valType:&quot;boolean&quot;},coastlinecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},coastlinewidth:{valType:&quot;number&quot;,min:0,dflt:1},showland:{valType:&quot;boolean&quot;,dflt:!1},landcolor:{valType:&quot;color&quot;,dflt:a.landColor},showocean:{valType:&quot;boolean&quot;,dflt:!1},oceancolor:{valType:&quot;color&quot;,dflt:a.waterColor},showlakes:{valType:&quot;boolean&quot;,dflt:!1},lakecolor:{valType:&quot;color&quot;,dflt:a.waterColor},showrivers:{valType:&quot;boolean&quot;,dflt:!1},rivercolor:{valType:&quot;color&quot;,dflt:a.waterColor},riverwidth:{valType:&quot;number&quot;,min:0,dflt:1},showcountries:{valType:&quot;boolean&quot;},countrycolor:{valType:&quot;color&quot;,dflt:n.defaultLine},countrywidth:{valType:&quot;number&quot;,min:0,dflt:1},showsubunits:{valType:&quot;boolean&quot;},subunitcolor:{valType:&quot;color&quot;,dflt:n.defaultLine},subunitwidth:{valType:&quot;number&quot;,min:0,dflt:1},showframe:{valType:&quot;boolean&quot;},framecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},framewidth:{valType:&quot;number&quot;,min:0,dflt:1},bgcolor:{valType:&quot;color&quot;,dflt:n.background},lonaxis:l,lataxis:l},&quot;plot&quot;,&quot;from-root&quot;)).uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color/attributes&quot;:365,&quot;../../lib/sort_object_keys&quot;:526,&quot;../../plot_api/edit_types&quot;:536,&quot;../domain&quot;:584,&quot;./constants&quot;:587}],591:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../subplot_defaults&quot;),a=t(&quot;../get_data&quot;).getSubplotData,o=t(&quot;./constants&quot;),s=t(&quot;./layout_attributes&quot;),l=o.axesNames;function c(t,e,r,i){var s=a(i.fullData,&quot;geo&quot;,i.id).map((function(t){return t._expandedIndex})),c=r(&quot;resolution&quot;),u=r(&quot;scope&quot;),f=o.scopeDefaults[u],h=r(&quot;projection.type&quot;,f.projType),p=e._isAlbersUsa=&quot;albers usa&quot;===h;p&amp;&amp;(u=e.scope=&quot;usa&quot;);var d=e._isScoped=&quot;world&quot;!==u,m=e._isSatellite=&quot;satellite&quot;===h,g=e._isConic=-1!==h.indexOf(&quot;conic&quot;)||&quot;albers&quot;===h,v=e._isClipped=!!o.lonaxisSpan[h];if(!1===t.visible){var y=n.extendDeep({},e._template);y.showcoastlines=!1,y.showcountries=!1,y.showframe=!1,y.showlakes=!1,y.showland=!1,y.showocean=!1,y.showrivers=!1,y.showsubunits=!1,y.lonaxis&amp;&amp;(y.lonaxis.showgrid=!1),y.lataxis&amp;&amp;(y.lataxis.showgrid=!1),e._template=y}for(var x=r(&quot;visible&quot;),b=0;b&lt;l.length;b++){var _,w=l[b],T=[30,10][b];if(d)_=f[w+&quot;Range&quot;];else{var k=o[w+&quot;Span&quot;],A=(k[h]||k[&quot;*&quot;])/2,M=r(&quot;projection.rotation.&quot;+w.substr(0,3),f.projRotate[b]);_=[M-A,M+A]}var S=r(w+&quot;.range&quot;,_);r(w+&quot;.tick0&quot;),r(w+&quot;.dtick&quot;,T),r(w+&quot;.showgrid&quot;,!!x&amp;&amp;void 0)&amp;&amp;(r(w+&quot;.gridcolor&quot;),r(w+&quot;.gridwidth&quot;)),e[w]._ax={type:&quot;linear&quot;,_id:w.slice(0,3),_traceIndices:s,setScale:n.identity,c2l:n.identity,r2l:n.identity,autorange:!0,range:S.slice(),_m:1,_input:{}}}var E=e.lonaxis.range,L=e.lataxis.range,C=E[0],P=E[1];C&gt;0&amp;&amp;P&lt;0&amp;&amp;(P+=360);var I,O,z,D=(C+P)/2;if(!p){var R=d?f.projRotate:[D,0,0];I=r(&quot;projection.rotation.lon&quot;,R[0]),r(&quot;projection.rotation.lat&quot;,R[1]),r(&quot;projection.rotation.roll&quot;,R[2]),r(&quot;showcoastlines&quot;,!d&amp;&amp;x)&amp;&amp;(r(&quot;coastlinecolor&quot;),r(&quot;coastlinewidth&quot;)),r(&quot;showocean&quot;,!!x&amp;&amp;void 0)&amp;&amp;r(&quot;oceancolor&quot;)}(p?(O=-96.6,z=38.7):(O=d?D:I,z=(L[0]+L[1])/2),r(&quot;center.lon&quot;,O),r(&quot;center.lat&quot;,z),m&amp;&amp;(r(&quot;projection.tilt&quot;),r(&quot;projection.distance&quot;)),g)&amp;&amp;r(&quot;projection.parallels&quot;,f.projParallels||[0,60]);r(&quot;projection.scale&quot;),r(&quot;showland&quot;,!!x&amp;&amp;void 0)&amp;&amp;r(&quot;landcolor&quot;),r(&quot;showlakes&quot;,!!x&amp;&amp;void 0)&amp;&amp;r(&quot;lakecolor&quot;),r(&quot;showrivers&quot;,!!x&amp;&amp;void 0)&amp;&amp;(r(&quot;rivercolor&quot;),r(&quot;riverwidth&quot;)),r(&quot;showcountries&quot;,d&amp;&amp;&quot;usa&quot;!==u&amp;&amp;x)&amp;&amp;(r(&quot;countrycolor&quot;),r(&quot;countrywidth&quot;)),(&quot;usa&quot;===u||&quot;north america&quot;===u&amp;&amp;50===c)&amp;&amp;(r(&quot;showsubunits&quot;,x),r(&quot;subunitcolor&quot;),r(&quot;subunitwidth&quot;)),d||r(&quot;showframe&quot;,x)&amp;&amp;(r(&quot;framecolor&quot;),r(&quot;framewidth&quot;)),r(&quot;bgcolor&quot;),r(&quot;fitbounds&quot;)&amp;&amp;(delete e.projection.scale,d?(delete e.center.lon,delete e.center.lat):v?(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon,delete e.projection.rotation.lat,delete e.lonaxis.range,delete e.lataxis.range):(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon))}e.exports=function(t,e,r){i(t,e,r,{type:&quot;geo&quot;,attributes:s,handleDefaults:c,fullData:r,partition:&quot;y&quot;})}},{&quot;../../lib&quot;:503,&quot;../get_data&quot;:593,&quot;../subplot_defaults&quot;:632,&quot;./constants&quot;:587,&quot;./layout_attributes&quot;:590}],592:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;),o=Math.PI/180,s=180/Math.PI,l={cursor:&quot;pointer&quot;},c={cursor:&quot;auto&quot;};function u(t,e){return n.behavior.zoom().translate(e.translate()).scale(e.scale())}function f(t,e,r){var n=t.id,o=t.graphDiv,s=o.layout,l=s[n],c=o._fullLayout,u=c[n],f={},h={};function p(t,e){f[n+&quot;.&quot;+t]=i.nestedProperty(l,t).get(),a.call(&quot;_storeDirectGUIEdit&quot;,s,c._preGUI,f);var r=i.nestedProperty(u,t);r.get()!==e&amp;&amp;(r.set(e),i.nestedProperty(l,t).set(e),h[n+&quot;.&quot;+t]=e)}r(p),p(&quot;projection.scale&quot;,e.scale()/t.fitScale),p(&quot;fitbounds&quot;,!1),o.emit(&quot;plotly_relayout&quot;,h)}function h(t,e){var r=u(0,e);function i(r){var n=e.invert(t.midPt);r(&quot;center.lon&quot;,n[0]),r(&quot;center.lat&quot;,n[1])}return r.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l)})).on(&quot;zoom&quot;,(function(){e.scale(n.event.scale).translate(n.event.translate),t.render();var r=e.invert(t.midPt);t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.center.lon&quot;:r[0],&quot;geo.center.lat&quot;:r[1]})})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),f(t,e,i)})),r}function p(t,e){var r,i,a,o,s,h,p,d,m,g=u(0,e);function v(t){return e.invert(t)}function y(r){var n=e.rotate(),i=e.invert(t.midPt);r(&quot;projection.rotation.lon&quot;,-n[0]),r(&quot;center.lon&quot;,i[0]),r(&quot;center.lat&quot;,i[1])}return g.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l),r=n.mouse(this),i=e.rotate(),a=e.translate(),o=i,s=v(r)})).on(&quot;zoom&quot;,(function(){if(h=n.mouse(this),function(t){var r=v(t);if(!r)return!0;var n=e(r);return Math.abs(n[0]-t[0])&gt;2||Math.abs(n[1]-t[1])&gt;2}(r))return g.scale(e.scale()),void g.translate(e.translate());e.scale(n.event.scale),e.translate([a[0],n.event.translate[1]]),s?v(h)&amp;&amp;(d=v(h),p=[o[0]+(d[0]-s[0]),i[1],i[2]],e.rotate(p),o=p):s=v(r=h),m=!0,t.render();var l=e.rotate(),c=e.invert(t.midPt);t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.center.lon&quot;:c[0],&quot;geo.center.lat&quot;:c[1],&quot;geo.projection.rotation.lon&quot;:-l[0]})})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),m&amp;&amp;f(t,e,y)})),g}function d(t,e){var r,i={r:e.rotate(),k:e.scale()},a=u(0,e),o=function(t){var e=0,r=arguments.length,i=[];for(;++e&lt;r;)i.push(arguments[e]);var a=n.dispatch.apply(null,i);return a.of=function(e,r){return function(i){var o;try{o=i.sourceEvent=n.event,i.target=t,n.event=i,a[i.type].apply(e,r)}finally{n.event=o}}},a}(a,&quot;zoomstart&quot;,&quot;zoom&quot;,&quot;zoomend&quot;),s=0,h=a.on;function p(t){s++||t({type:&quot;zoomstart&quot;})}function d(t){t({type:&quot;zoom&quot;})}function b(t){--s||t({type:&quot;zoomend&quot;})}function _(t){var r=e.rotate();t(&quot;projection.rotation.lon&quot;,-r[0]),t(&quot;projection.rotation.lat&quot;,-r[1])}return a.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l);var t=n.mouse(this),s=e.rotate(),c=s,u=e.translate(),f=g(s);r=m(e,t),h.call(a,&quot;zoom&quot;,(function(){var a=n.mouse(this);if(e.scale(i.k=n.event.scale),r){if(m(e,a)){e.rotate(s).translate(u);var l=m(e,a),h=y(r,l),p=T(v(f,h)),g=i.r=x(p,r,c);isFinite(g[0])&amp;&amp;isFinite(g[1])&amp;&amp;isFinite(g[2])||(g=c),e.rotate(g),c=g}}else r=m(e,t=a);d(o.of(this,arguments))})),p(o.of(this,arguments))})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),h.call(a,&quot;zoom&quot;,null),b(o.of(this,arguments)),f(t,e,_)})).on(&quot;zoom.redraw&quot;,(function(){t.render();var r=e.rotate();t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.projection.rotation.lon&quot;:-r[0],&quot;geo.projection.rotation.lat&quot;:-r[1]})})),n.rebind(a,o,&quot;on&quot;)}function m(t,e){var r=t.invert(e);return r&amp;&amp;isFinite(r[0])&amp;&amp;isFinite(r[1])&amp;&amp;function(t){var e=t[0]*o,r=t[1]*o,n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}(r)}function g(t){var e=.5*t[0]*o,r=.5*t[1]*o,n=.5*t[2]*o,i=Math.sin(e),a=Math.cos(e),s=Math.sin(r),l=Math.cos(r),c=Math.sin(n),u=Math.cos(n);return[a*l*u+i*s*c,i*l*u-a*s*c,a*s*u+i*l*c,a*l*c-i*s*u]}function v(t,e){var r=t[0],n=t[1],i=t[2],a=t[3],o=e[0],s=e[1],l=e[2],c=e[3];return[r*o-n*s-i*l-a*c,r*s+n*o+i*c-a*l,r*l-n*c+i*o+a*s,r*c+n*l-i*s+a*o]}function y(t,e){if(t&amp;&amp;e){var r=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(t,e),n=Math.sqrt(k(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,k(t,e)))),a=Math.sin(i)/n;return n&amp;&amp;[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function x(t,e,r){var n=w(e,2,t[0]);n=w(n,1,t[1]),n=w(n,0,t[2]-r[2]);var i,a,o=e[0],l=e[1],c=e[2],u=n[0],f=n[1],h=n[2],p=Math.atan2(l,o)*s,d=Math.sqrt(o*o+l*l);Math.abs(f)&gt;d?(a=(f&gt;0?90:-90)-p,i=0):(a=Math.asin(f/d)*s-p,i=Math.sqrt(d*d-f*f));var m=180-a-2*p,g=(Math.atan2(h,u)-Math.atan2(c,i))*s,v=(Math.atan2(h,u)-Math.atan2(c,-i))*s;return b(r[0],r[1],a,g)&lt;=b(r[0],r[1],m,v)?[a,g,r[2]]:[m,v,r[2]]}function b(t,e,r,n){var i=_(r-t),a=_(n-e);return Math.sqrt(i*i+a*a)}function _(t){return(t%360+540)%360-180}function w(t,e,r){var n=r*o,i=t.slice(),a=0===e?1:0,s=2===e?1:2,l=Math.cos(n),c=Math.sin(n);return i[a]=t[a]*l-t[s]*c,i[s]=t[s]*l+t[a]*c,i}function T(t){return[Math.atan2(2*(t[0]*t[1]+t[2]*t[3]),1-2*(t[1]*t[1]+t[2]*t[2]))*s,Math.asin(Math.max(-1,Math.min(1,2*(t[0]*t[2]-t[3]*t[1]))))*s,Math.atan2(2*(t[0]*t[3]+t[1]*t[2]),1-2*(t[2]*t[2]+t[3]*t[3]))*s]}function k(t,e){for(var r=0,n=0,i=t.length;n&lt;i;++n)r+=t[n]*e[n];return r}e.exports=function(t,e){var r=t.projection;return(e._isScoped?h:e._isClipped?d:p)(t,r)}},{&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;@plotly/d3&quot;:58}],593:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;./cartesian/constants&quot;).SUBPLOT_PATTERN;r.getSubplotCalcData=function(t,e,r){var i=n.subplotsRegistry[e];if(!i)return[];for(var a=i.attr,o=[],s=0;s&lt;t.length;s++){var l=t[s];l[0].trace[a]===r&amp;&amp;o.push(l)}return o},r.getModuleCalcData=function(t,e){var r,i=[],a=[];if(!(r=&quot;string&quot;==typeof e?n.getModule(e).plot:&quot;function&quot;==typeof e?e:e.plot))return[i,t];for(var o=0;o&lt;t.length;o++){var s=t[o],l=s[0].trace;!0===l.visible&amp;&amp;0!==l._length&amp;&amp;(l._module.plot===r?i.push(s):a.push(s))}return[i,a]},r.getSubplotData=function(t,e,r){if(!n.subplotsRegistry[e])return[];var a,o,s,l=n.subplotsRegistry[e].attr,c=[];if(&quot;gl2d&quot;===e){var u=r.match(i);o=&quot;x&quot;+u[1],s=&quot;y&quot;+u[2]}for(var f=0;f&lt;t.length;f++)a=t[f],&quot;gl2d&quot;===e&amp;&amp;n.traceIs(a,&quot;gl2d&quot;)?a[l[0]]===o&amp;&amp;a[l[1]]===s&amp;&amp;c.push(a):a[l]===r&amp;&amp;c.push(a);return c}},{&quot;../registry&quot;:638,&quot;./cartesian/constants&quot;:561}],594:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mouse-change&quot;),i=t(&quot;mouse-wheel&quot;),a=t(&quot;mouse-event-offset&quot;),o=t(&quot;../cartesian/constants&quot;),s=t(&quot;has-passive-events&quot;);function l(t,e){this.element=t,this.plot=e,this.mouseListener=null,this.wheelListener=null,this.lastInputTime=Date.now(),this.lastPos=[0,0],this.boxEnabled=!1,this.boxInited=!1,this.boxStart=[0,0],this.boxEnd=[0,0],this.dragStart=[0,0]}e.exports=function(t){var e=t.mouseContainer,r=t.glplot,c=new l(e,r);function u(){t.xaxis.autorange=!1,t.yaxis.autorange=!1}function f(e,n,i){var a,s,l=t.calcDataBox(),f=r.viewBox,h=c.lastPos[0],p=c.lastPos[1],d=o.MINDRAG*r.pixelRatio,m=o.MINZOOM*r.pixelRatio;function g(e,r,n){var i=Math.min(r,n),a=Math.max(r,n);i!==a?(l[e]=i,l[e+2]=a,c.dataBox=l,t.setRanges(l)):(t.selectBox.selectBox=[0,0,1,1],t.glplot.setDirty())}switch(n*=r.pixelRatio,i*=r.pixelRatio,i=f[3]-f[1]-i,t.fullLayout.dragmode){case&quot;zoom&quot;:if(e){var v=n/(f[2]-f[0])*(l[2]-l[0])+l[0],y=i/(f[3]-f[1])*(l[3]-l[1])+l[1];c.boxInited||(c.boxStart[0]=v,c.boxStart[1]=y,c.dragStart[0]=n,c.dragStart[1]=i),c.boxEnd[0]=v,c.boxEnd[1]=y,c.boxInited=!0,c.boxEnabled||c.boxStart[0]===c.boxEnd[0]&amp;&amp;c.boxStart[1]===c.boxEnd[1]||(c.boxEnabled=!0);var x=Math.abs(c.dragStart[0]-n)&lt;m,b=Math.abs(c.dragStart[1]-i)&lt;m;if(!function(){for(var e=t.graphDiv._fullLayout._axisConstraintGroups,r=t.xaxis._id,n=t.yaxis._id,i=0;i&lt;e.length;i++)if(-1!==e[i][r]){if(-1!==e[i][n])return!0;break}return!1}()||x&amp;&amp;b)x&amp;&amp;(c.boxEnd[0]=c.boxStart[0]),b&amp;&amp;(c.boxEnd[1]=c.boxStart[1]);else{a=c.boxEnd[0]-c.boxStart[0],s=c.boxEnd[1]-c.boxStart[1];var _=(l[3]-l[1])/(l[2]-l[0]);Math.abs(a*_)&gt;Math.abs(s)?(c.boxEnd[1]=c.boxStart[1]+Math.abs(a)*_*(s&gt;=0?1:-1),c.boxEnd[1]&lt;l[1]?(c.boxEnd[1]=l[1],c.boxEnd[0]=c.boxStart[0]+(l[1]-c.boxStart[1])/Math.abs(_)):c.boxEnd[1]&gt;l[3]&amp;&amp;(c.boxEnd[1]=l[3],c.boxEnd[0]=c.boxStart[0]+(l[3]-c.boxStart[1])/Math.abs(_))):(c.boxEnd[0]=c.boxStart[0]+Math.abs(s)/_*(a&gt;=0?1:-1),c.boxEnd[0]&lt;l[0]?(c.boxEnd[0]=l[0],c.boxEnd[1]=c.boxStart[1]+(l[0]-c.boxStart[0])*Math.abs(_)):c.boxEnd[0]&gt;l[2]&amp;&amp;(c.boxEnd[0]=l[2],c.boxEnd[1]=c.boxStart[1]+(l[2]-c.boxStart[0])*Math.abs(_)))}}else c.boxEnabled?(a=c.boxStart[0]!==c.boxEnd[0],s=c.boxStart[1]!==c.boxEnd[1],a||s?(a&amp;&amp;(g(0,c.boxStart[0],c.boxEnd[0]),t.xaxis.autorange=!1),s&amp;&amp;(g(1,c.boxStart[1],c.boxEnd[1]),t.yaxis.autorange=!1),t.relayoutCallback()):t.glplot.setDirty(),c.boxEnabled=!1,c.boxInited=!1):c.boxInited&amp;&amp;(c.boxInited=!1);break;case&quot;pan&quot;:c.boxEnabled=!1,c.boxInited=!1,e?(c.panning||(c.dragStart[0]=n,c.dragStart[1]=i),Math.abs(c.dragStart[0]-n)&lt;d&amp;&amp;(n=c.dragStart[0]),Math.abs(c.dragStart[1]-i)&lt;d&amp;&amp;(i=c.dragStart[1]),a=(h-n)*(l[2]-l[0])/(r.viewBox[2]-r.viewBox[0]),s=(p-i)*(l[3]-l[1])/(r.viewBox[3]-r.viewBox[1]),l[0]+=a,l[2]+=a,l[1]+=s,l[3]+=s,t.setRanges(l),c.panning=!0,c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations()):c.panning&amp;&amp;(c.panning=!1,t.relayoutCallback())}c.lastPos[0]=n,c.lastPos[1]=i}return c.mouseListener=n(e,f),e.addEventListener(&quot;touchstart&quot;,(function(t){var r=a(t.changedTouches[0],e);f(0,r[0],r[1]),f(1,r[0],r[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),e.addEventListener(&quot;touchmove&quot;,(function(t){t.preventDefault();var r=a(t.changedTouches[0],e);f(1,r[0],r[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),e.addEventListener(&quot;touchend&quot;,(function(t){f(0,c.lastPos[0],c.lastPos[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),c.wheelListener=i(e,(function(e,n){if(!t.scrollZoom)return!1;var i=t.calcDataBox(),a=r.viewBox,o=c.lastPos[0],s=c.lastPos[1],l=Math.exp(5*n/(a[3]-a[1])),f=o/(a[2]-a[0])*(i[2]-i[0])+i[0],h=s/(a[3]-a[1])*(i[3]-i[1])+i[1];return i[0]=(i[0]-f)*l+f,i[2]=(i[2]-f)*l+f,i[1]=(i[1]-h)*l+h,i[3]=(i[3]-h)*l+h,t.setRanges(i),c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations(),t.relayoutCallback(),!0}),!0),c}},{&quot;../cartesian/constants&quot;:561,&quot;has-passive-events&quot;:229,&quot;mouse-change&quot;:241,&quot;mouse-event-offset&quot;:242,&quot;mouse-wheel&quot;:244}],595:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../cartesian/axes&quot;),i=t(&quot;../../lib/str2rgbarray&quot;);function a(t){this.scene=t,this.gl=t.gl,this.pixelRatio=t.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=[&quot;x&quot;,&quot;y&quot;],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title=&quot;&quot;,this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont=&quot;sans-serif&quot;,this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}var o=a.prototype,s=[&quot;xaxis&quot;,&quot;yaxis&quot;];o.merge=function(t){var e,r,n,a,o,l,c,u,f,h,p;for(this.titleEnable=!1,this.backgroundColor=i(t.plot_bgcolor),h=0;h&lt;2;++h){var d=(e=s[h]).charAt(0);for(n=(r=t[this.scene[e]._name]).title.text===this.scene.fullLayout._dfltTitle[d]?&quot;&quot;:r.title.text,p=0;p&lt;=2;p+=2)this.labelEnable[h+p]=!1,this.labels[h+p]=n,this.labelColor[h+p]=i(r.title.font.color),this.labelFont[h+p]=r.title.font.family,this.labelSize[h+p]=r.title.font.size,this.labelPad[h+p]=this.getLabelPad(e,r),this.tickEnable[h+p]=!1,this.tickColor[h+p]=i((r.tickfont||{}).color),this.tickAngle[h+p]=&quot;auto&quot;===r.tickangle?0:Math.PI*-r.tickangle/180,this.tickPad[h+p]=this.getTickPad(r),this.tickMarkLength[h+p]=0,this.tickMarkWidth[h+p]=r.tickwidth||0,this.tickMarkColor[h+p]=i(r.tickcolor),this.borderLineEnable[h+p]=!1,this.borderLineColor[h+p]=i(r.linecolor),this.borderLineWidth[h+p]=r.linewidth||0;c=this.hasSharedAxis(r),o=this.hasAxisInDfltPos(e,r)&amp;&amp;!c,l=this.hasAxisInAltrPos(e,r)&amp;&amp;!c,a=r.mirror||!1,u=c?-1!==String(a).indexOf(&quot;all&quot;):!!a,f=c?&quot;allticks&quot;===a:-1!==String(a).indexOf(&quot;ticks&quot;),o?this.labelEnable[h]=!0:l&amp;&amp;(this.labelEnable[h+2]=!0),o?this.tickEnable[h]=r.showticklabels:l&amp;&amp;(this.tickEnable[h+2]=r.showticklabels),(o||u)&amp;&amp;(this.borderLineEnable[h]=r.showline),(l||u)&amp;&amp;(this.borderLineEnable[h+2]=r.showline),(o||f)&amp;&amp;(this.tickMarkLength[h]=this.getTickMarkLength(r)),(l||f)&amp;&amp;(this.tickMarkLength[h+2]=this.getTickMarkLength(r)),this.gridLineEnable[h]=r.showgrid,this.gridLineColor[h]=i(r.gridcolor),this.gridLineWidth[h]=r.gridwidth,this.zeroLineEnable[h]=r.zeroline,this.zeroLineColor[h]=i(r.zerolinecolor),this.zeroLineWidth[h]=r.zerolinewidth}},o.hasSharedAxis=function(t){var e=this.scene,r=e.fullLayout._subplots.gl2d;return 0!==n.findSubplotsWithAxis(r,t).indexOf(e.id)},o.hasAxisInDfltPos=function(t,e){var r=e.side;return&quot;xaxis&quot;===t?&quot;bottom&quot;===r:&quot;yaxis&quot;===t?&quot;left&quot;===r:void 0},o.hasAxisInAltrPos=function(t,e){var r=e.side;return&quot;xaxis&quot;===t?&quot;top&quot;===r:&quot;yaxis&quot;===t?&quot;right&quot;===r:void 0},o.getLabelPad=function(t,e){var r=e.title.font.size,n=e.showticklabels;return&quot;xaxis&quot;===t?&quot;top&quot;===e.side?r*(1.5+(n?1:0))-10:r*(1.5+(n?.5:0))-10:&quot;yaxis&quot;===t?&quot;right&quot;===e.side?10+r*(1.5+(n?1:.5)):10+r*(1.5+(n?.5:0)):void 0},o.getTickPad=function(t){return&quot;outside&quot;===t.ticks?10+t.ticklen:15},o.getTickMarkLength=function(t){if(!t.ticks)return 0;var e=t.ticklen;return&quot;inside&quot;===t.ticks?-e:e},e.exports=function(t){return new a(t)}},{&quot;../../lib/str2rgbarray&quot;:528,&quot;../cartesian/axes&quot;:554}],596:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;./scene2d&quot;),a=t(&quot;../layout_attributes&quot;),o=t(&quot;../../constants/xmlns_namespaces&quot;),s=t(&quot;../cartesian/constants&quot;),l=t(&quot;../cartesian&quot;),c=t(&quot;../../components/fx/layout_attributes&quot;),u=t(&quot;../get_data&quot;).getSubplotData;r.name=&quot;gl2d&quot;,r.attr=[&quot;xaxis&quot;,&quot;yaxis&quot;],r.idRoot=[&quot;x&quot;,&quot;y&quot;],r.idRegex=s.idRegex,r.attrRegex=s.attrRegex,r.attributes=t(&quot;../cartesian/attributes&quot;),r.supplyLayoutDefaults=function(t,e,r){e._has(&quot;cartesian&quot;)||l.supplyLayoutDefaults(t,e,r)},r.layoutAttrOverrides=n(l.layoutAttributes,&quot;plot&quot;,&quot;from-root&quot;),r.baseLayoutAttrOverrides=n({plot_bgcolor:a.plot_bgcolor,hoverlabel:c.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl2d,a=0;a&lt;n.length;a++){var o=n[a],s=e._plots[o],l=u(r,&quot;gl2d&quot;,o),c=s._scene2d;void 0===c&amp;&amp;(c=new i({id:o,graphDiv:t,container:t.querySelector(&quot;.gl-container&quot;),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio},e),s._scene2d=c),c.plot(l,t.calcdata,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl2d||[],a=0;a&lt;i.length;a++){var o=i[a],s=n._plots[o];if(s._scene2d){var c=u(t,&quot;gl2d&quot;,o);0===c.length&amp;&amp;(s._scene2d.destroy(),delete n._plots[o])}}l.clean.apply(this,arguments)},r.drawFramework=function(t){t._context.staticPlot||l.drawFramework(t)},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n&lt;r.length;n++){var i=e._plots[r[n]]._scene2d,a=i.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:o.svg,&quot;xlink:href&quot;:a,x:0,y:0,width:&quot;100%&quot;,height:&quot;100%&quot;,preserveAspectRatio:&quot;none&quot;}),i.destroy()}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n&lt;r.length;n++){e._plots[r[n]]._scene2d.updateFx(e.dragmode)}}},{&quot;../../components/fx/layout_attributes&quot;:407,&quot;../../constants/xmlns_namespaces&quot;:480,&quot;../../plot_api/edit_types&quot;:536,&quot;../cartesian&quot;:568,&quot;../cartesian/attributes&quot;:552,&quot;../cartesian/constants&quot;:561,&quot;../get_data&quot;:593,&quot;../layout_attributes&quot;:610,&quot;./scene2d&quot;:597}],597:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;../../registry&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;../../../stackgl_modules&quot;).gl_plot2d,c=t(&quot;../../../stackgl_modules&quot;).gl_spikes2d,u=t(&quot;../../../stackgl_modules&quot;).gl_select_box,f=t(&quot;webgl-context&quot;),h=t(&quot;./convert&quot;),p=t(&quot;./camera&quot;),d=t(&quot;../../lib/show_no_webgl_msg&quot;),m=t(&quot;../cartesian/constraints&quot;),g=m.enforce,v=m.clean,y=t(&quot;../cartesian/autorange&quot;).doAutoRange,x=t(&quot;../../components/dragelement/helpers&quot;),b=x.drawMode,_=x.selectMode,w=[&quot;xaxis&quot;,&quot;yaxis&quot;],T=t(&quot;../cartesian/constants&quot;).SUBPLOT_PATTERN;function k(t,e){this.container=t.container,this.graphDiv=t.graphDiv,this.pixelRatio=t.plotGlPixelRatio||window.devicePixelRatio,this.id=t.id,this.staticPlot=!!t.staticPlot,this.scrollZoom=this.graphDiv._context._scrollZoom.cartesian,this.fullData=null,this.updateRefs(e),this.makeFramework(),this.stopped||(this.glplotOptions=h(this),this.glplotOptions.merge(e),this.glplot=l(this.glplotOptions),this.camera=p(this),this.traces={},this.spikes=c(this.glplot),this.selectBox=u(this.glplot,{innerFill:!1,outerFill:!0}),this.lastButtonState=0,this.pickResult=null,this.isMouseOver=!0,this.stopped=!1,this.redraw=this.draw.bind(this),this.redraw())}e.exports=k;var A=k.prototype;A.makeFramework=function(){if(this.staticPlot){if(!(i||(n=document.createElement(&quot;canvas&quot;),i=f({canvas:n,preserveDrawingBuffer:!1,premultipliedAlpha:!0,antialias:!0}))))throw new Error(&quot;Error creating static canvas/context for image server&quot;);this.canvas=n,this.gl=i}else{var t=this.container.querySelector(&quot;.gl-canvas-focus&quot;),e=f({canvas:t,preserveDrawingBuffer:!0,premultipliedAlpha:!0});if(!e)return d(this),void(this.stopped=!0);this.canvas=t,this.gl=e}var r=this.canvas;r.style.width=&quot;100%&quot;,r.style.height=&quot;100%&quot;,r.style.position=&quot;absolute&quot;,r.style.top=&quot;0px&quot;,r.style.left=&quot;0px&quot;,r.style[&quot;pointer-events&quot;]=&quot;none&quot;,this.updateSize(r);var a=this.svgContainer=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);a.style.position=&quot;absolute&quot;,a.style.top=a.style.left=&quot;0px&quot;,a.style.width=a.style.height=&quot;100%&quot;,a.style[&quot;z-index&quot;]=20,a.style[&quot;pointer-events&quot;]=&quot;none&quot;;var o=this.mouseContainer=document.createElement(&quot;div&quot;);o.style.position=&quot;absolute&quot;,o.style[&quot;pointer-events&quot;]=&quot;auto&quot;,this.pickCanvas=this.container.querySelector(&quot;.gl-canvas-pick&quot;);var s=this.container;s.appendChild(a),s.appendChild(o);var l=this;o.addEventListener(&quot;mouseout&quot;,(function(){l.isMouseOver=!1,l.unhover()})),o.addEventListener(&quot;mouseover&quot;,(function(){l.isMouseOver=!0}))},A.toImage=function(t){t||(t=&quot;png&quot;),this.stopped=!0,this.staticPlot&amp;&amp;this.container.appendChild(n),this.updateSize(this.canvas);var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.clearColor(1,1,1,0),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),this.glplot.setDirty(),this.glplot.draw(),e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a);for(var o=0,s=i-1;o&lt;s;++o,--s)for(var l=0;l&lt;r;++l)for(var c=0;c&lt;4;++c){var u=a[4*(r*o+l)+c];a[4*(r*o+l)+c]=a[4*(r*s+l)+c],a[4*(r*s+l)+c]=u}var f=document.createElement(&quot;canvas&quot;);f.width=r,f.height=i;var h,p=f.getContext(&quot;2d&quot;),d=p.createImageData(r,i);switch(d.data.set(a),p.putImageData(d,0,0),t){case&quot;jpeg&quot;:h=f.toDataURL(&quot;image/jpeg&quot;);break;case&quot;webp&quot;:h=f.toDataURL(&quot;image/webp&quot;);break;default:h=f.toDataURL(&quot;image/png&quot;)}return this.staticPlot&amp;&amp;this.container.removeChild(n),h},A.updateSize=function(t){t||(t=this.canvas);var e=this.pixelRatio,r=this.fullLayout,n=r.width,i=r.height,a=0|Math.ceil(e*n),o=0|Math.ceil(e*i);return t.width===a&amp;&amp;t.height===o||(t.width=a,t.height=o),t},A.computeTickMarks=function(){this.xaxis.setScale(),this.yaxis.setScale();for(var t=[o.calcTicks(this.xaxis),o.calcTicks(this.yaxis)],e=0;e&lt;2;++e)for(var r=0;r&lt;t[e].length;++r)t[e][r].text=t[e][r].text+&quot;&quot;;return t},A.updateRefs=function(t){this.fullLayout=t;var e=this.id.match(T),r=&quot;xaxis&quot;+e[1],n=&quot;yaxis&quot;+e[2];this.xaxis=this.fullLayout[r],this.yaxis=this.fullLayout[n]},A.relayoutCallback=function(){var t=this.graphDiv,e=this.xaxis,r=this.yaxis,n=t.layout,i={},o=i[e._name+&quot;.range&quot;]=e.range.slice(),s=i[r._name+&quot;.range&quot;]=r.range.slice();i[e._name+&quot;.autorange&quot;]=e.autorange,i[r._name+&quot;.autorange&quot;]=r.autorange,a.call(&quot;_storeDirectGUIEdit&quot;,t.layout,t._fullLayout._preGUI,i);var l=n[e._name];l.range=o,l.autorange=e.autorange;var c=n[r._name];c.range=s,c.autorange=r.autorange,i.lastInputTime=this.camera.lastInputTime,t.emit(&quot;plotly_relayout&quot;,i)},A.cameraChanged=function(){var t=this.camera;this.glplot.setDataBox(this.calcDataBox());var e=this.computeTickMarks();(function(t,e){for(var r=0;r&lt;2;++r){var n=t[r],i=e[r];if(n.length!==i.length)return!0;for(var a=0;a&lt;n.length;++a)if(n[a].x!==i[a].x)return!0}return!1})(e,this.glplotOptions.ticks)&amp;&amp;(this.glplotOptions.ticks=e,this.glplotOptions.dataBox=t.dataBox,this.glplot.update(this.glplotOptions),this.handleAnnotations())},A.handleAnnotations=function(){for(var t=this.graphDiv,e=this.fullLayout.annotations,r=0;r&lt;e.length;r++){var n=e[r];n.xref===this.xaxis._id&amp;&amp;n.yref===this.yaxis._id&amp;&amp;a.getComponentMethod(&quot;annotations&quot;,&quot;drawOne&quot;)(t,r)}},A.destroy=function(){if(this.glplot){var t=this.traces;t&amp;&amp;Object.keys(t).map((function(e){t[e].dispose(),delete t[e]})),this.glplot.dispose(),this.container.removeChild(this.svgContainer),this.container.removeChild(this.mouseContainer),this.fullData=null,this.glplot=null,this.stopped=!0,this.camera.mouseListener.enabled=!1,this.mouseContainer.removeEventListener(&quot;wheel&quot;,this.camera.wheelListener),this.camera=null}},A.plot=function(t,e,r){var n=this.glplot;this.updateRefs(r),this.xaxis.clearCalc(),this.yaxis.clearCalc(),this.updateTraces(t,e),this.updateFx(r.dragmode);var i=r.width,a=r.height;this.updateSize(this.canvas);var o=this.glplotOptions;o.merge(r),o.screenBox=[0,0,i,a];var s={_fullLayout:{_axisConstraintGroups:r._axisConstraintGroups,xaxis:this.xaxis,yaxis:this.yaxis,_size:r._size}};v(s,this.xaxis),v(s,this.yaxis);var l,c,u=r._size,f=this.xaxis.domain,h=this.yaxis.domain;for(o.viewBox=[u.l+f[0]*u.w,u.b+h[0]*u.h,i-u.r-(1-f[1])*u.w,a-u.t-(1-h[1])*u.h],this.mouseContainer.style.width=u.w*(f[1]-f[0])+&quot;px&quot;,this.mouseContainer.style.height=u.h*(h[1]-h[0])+&quot;px&quot;,this.mouseContainer.height=u.h*(h[1]-h[0]),this.mouseContainer.style.left=u.l+f[0]*u.w+&quot;px&quot;,this.mouseContainer.style.top=u.t+(1-h[1])*u.h+&quot;px&quot;,c=0;c&lt;2;++c)(l=this[w[c]])._length=o.viewBox[c+2]-o.viewBox[c],y(this.graphDiv,l),l.setScale();g(s),o.ticks=this.computeTickMarks(),o.dataBox=this.calcDataBox(),o.merge(r),n.update(o),this.glplot.draw()},A.calcDataBox=function(){var t=this.xaxis,e=this.yaxis,r=t.range,n=e.range,i=t.r2l,a=e.r2l;return[i(r[0]),a(n[0]),i(r[1]),a(n[1])]},A.setRanges=function(t){var e=this.xaxis,r=this.yaxis,n=e.l2r,i=r.l2r;e.range=[n(t[0]),n(t[2])],r.range=[i(t[1]),i(t[3])]},A.updateTraces=function(t,e){var r,n,i,a=Object.keys(this.traces);this.fullData=t;t:for(r=0;r&lt;a.length;r++){var o=a[r],s=this.traces[o];for(n=0;n&lt;t.length;n++)if((i=t[n]).uid===o&amp;&amp;i.type===s.type)continue t;s.dispose(),delete this.traces[o]}for(r=0;r&lt;t.length;r++){i=t[r];var l=e[r],c=this.traces[i.uid];c?c.update(i,l):(c=i._module.plot(this,i,l),this.traces[i.uid]=c)}this.glplot.objects.sort((function(t,e){return t._trace.index-e._trace.index}))},A.updateFx=function(t){_(t)||b(t)?(this.pickCanvas.style[&quot;pointer-events&quot;]=&quot;none&quot;,this.mouseContainer.style[&quot;pointer-events&quot;]=&quot;none&quot;):(this.pickCanvas.style[&quot;pointer-events&quot;]=&quot;auto&quot;,this.mouseContainer.style[&quot;pointer-events&quot;]=&quot;auto&quot;),this.mouseContainer.style.cursor=&quot;pan&quot;===t?&quot;move&quot;:&quot;zoom&quot;===t?&quot;crosshair&quot;:null},A.emitPointAction=function(t,e){for(var r,n=t.trace.uid,i=t.pointIndex,a=0;a&lt;this.fullData.length;a++)this.fullData[a].uid===n&amp;&amp;(r=this.fullData[a]);var o={x:t.traceCoord[0],y:t.traceCoord[1],curveNumber:r.index,pointNumber:i,data:r._input,fullData:this.fullData,xaxis:this.xaxis,yaxis:this.yaxis};s.appendArrayPointValue(o,r,i),this.graphDiv.emit(e,{points:[o]})},A.draw=function(){if(!this.stopped){requestAnimationFrame(this.redraw);var t=this.glplot,e=this.camera,r=e.mouseListener,n=1===this.lastButtonState&amp;&amp;0===r.buttons,i=this.fullLayout;this.lastButtonState=r.buttons,this.cameraChanged();var a,o=r.x*t.pixelRatio,l=this.canvas.height-t.pixelRatio*r.y;if(e.boxEnabled&amp;&amp;&quot;zoom&quot;===i.dragmode){this.selectBox.enabled=!0;for(var c=this.selectBox.selectBox=[Math.min(e.boxStart[0],e.boxEnd[0]),Math.min(e.boxStart[1],e.boxEnd[1]),Math.max(e.boxStart[0],e.boxEnd[0]),Math.max(e.boxStart[1],e.boxEnd[1])],u=0;u&lt;2;u++)e.boxStart[u]===e.boxEnd[u]&amp;&amp;(c[u]=t.dataBox[u],c[u+2]=t.dataBox[u+2]);t.setDirty()}else if(!e.panning&amp;&amp;this.isMouseOver){this.selectBox.enabled=!1;var f=i._size,h=this.xaxis.domain,p=this.yaxis.domain,d=(a=t.pick(o/t.pixelRatio+f.l+h[0]*f.w,l/t.pixelRatio-(f.t+(1-p[1])*f.h)))&amp;&amp;a.object._trace.handlePick(a);if(d&amp;&amp;n&amp;&amp;this.emitPointAction(d,&quot;plotly_click&quot;),a&amp;&amp;&quot;skip&quot;!==a.object._trace.hoverinfo&amp;&amp;i.hovermode&amp;&amp;d&amp;&amp;(!this.lastPickResult||this.lastPickResult.traceUid!==d.trace.uid||this.lastPickResult.dataCoord[0]!==d.dataCoord[0]||this.lastPickResult.dataCoord[1]!==d.dataCoord[1])){var m=d;this.lastPickResult={traceUid:d.trace?d.trace.uid:null,dataCoord:d.dataCoord.slice()},this.spikes.update({center:a.dataCoord}),m.screenCoord=[((t.viewBox[2]-t.viewBox[0])*(a.dataCoord[0]-t.dataBox[0])/(t.dataBox[2]-t.dataBox[0])+t.viewBox[0])/t.pixelRatio,(this.canvas.height-(t.viewBox[3]-t.viewBox[1])*(a.dataCoord[1]-t.dataBox[1])/(t.dataBox[3]-t.dataBox[1])-t.viewBox[1])/t.pixelRatio],this.emitPointAction(d,&quot;plotly_hover&quot;);var g=this.fullData[m.trace.index]||{},v=m.pointIndex,y=s.castHoverinfo(g,i,v);if(y&amp;&amp;&quot;all&quot;!==y){var x=y.split(&quot;+&quot;);-1===x.indexOf(&quot;x&quot;)&amp;&amp;(m.traceCoord[0]=void 0),-1===x.indexOf(&quot;y&quot;)&amp;&amp;(m.traceCoord[1]=void 0),-1===x.indexOf(&quot;z&quot;)&amp;&amp;(m.traceCoord[2]=void 0),-1===x.indexOf(&quot;text&quot;)&amp;&amp;(m.textLabel=void 0),-1===x.indexOf(&quot;name&quot;)&amp;&amp;(m.name=void 0)}s.loneHover({x:m.screenCoord[0],y:m.screenCoord[1],xLabel:this.hoverFormatter(&quot;xaxis&quot;,m.traceCoord[0]),yLabel:this.hoverFormatter(&quot;yaxis&quot;,m.traceCoord[1]),zLabel:m.traceCoord[2],text:m.textLabel,name:m.name,color:s.castHoverOption(g,v,&quot;bgcolor&quot;)||m.color,borderColor:s.castHoverOption(g,v,&quot;bordercolor&quot;),fontFamily:s.castHoverOption(g,v,&quot;font.family&quot;),fontSize:s.castHoverOption(g,v,&quot;font.size&quot;),fontColor:s.castHoverOption(g,v,&quot;font.color&quot;),nameLength:s.castHoverOption(g,v,&quot;namelength&quot;),textAlign:s.castHoverOption(g,v,&quot;align&quot;)},{container:this.svgContainer,gd:this.graphDiv})}}a||this.unhover(),t.draw()}},A.unhover=function(){this.lastPickResult&amp;&amp;(this.spikes.update({}),this.lastPickResult=null,this.graphDiv.emit(&quot;plotly_unhover&quot;),s.loneUnhover(this.svgContainer))},A.hoverFormatter=function(t,e){if(void 0!==e){var r=this[t];return o.tickText(r,r.c2l(e),&quot;hover&quot;).text}}},{&quot;../../../stackgl_modules&quot;:1120,&quot;../../components/dragelement/helpers&quot;:384,&quot;../../components/fx&quot;:406,&quot;../../lib/show_no_webgl_msg&quot;:525,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../registry&quot;:638,&quot;../cartesian/autorange&quot;:553,&quot;../cartesian/constants&quot;:561,&quot;../cartesian/constraints&quot;:562,&quot;./camera&quot;:594,&quot;./convert&quot;:595,&quot;webgl-context&quot;:331}],598:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;../../components/fx/layout_attributes&quot;),a=t(&quot;./scene&quot;),o=t(&quot;../get_data&quot;).getSubplotData,s=t(&quot;../../lib&quot;),l=t(&quot;../../constants/xmlns_namespaces&quot;);r.name=&quot;gl3d&quot;,r.attr=&quot;scene&quot;,r.idRoot=&quot;scene&quot;,r.idRegex=r.attrRegex=s.counterRegex(&quot;scene&quot;),r.attributes=t(&quot;./layout/attributes&quot;),r.layoutAttributes=t(&quot;./layout/layout_attributes&quot;),r.baseLayoutAttrOverrides=n({hoverlabel:i.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.supplyLayoutDefaults=t(&quot;./layout/defaults&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl3d,i=0;i&lt;n.length;i++){var s=n[i],l=o(r,&quot;gl3d&quot;,s),c=e[s],u=c.camera,f=c._scene;f||(f=new a({id:s,graphDiv:t,container:t.querySelector(&quot;.gl-container&quot;),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio,camera:u},e),c._scene=f),f.viewInitial||(f.viewInitial={up:{x:u.up.x,y:u.up.y,z:u.up.z},eye:{x:u.eye.x,y:u.eye.y,z:u.eye.z},center:{x:u.center.x,y:u.center.y,z:u.center.z}}),f.plot(l,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl3d||[],a=0;a&lt;i.length;a++){var o=i[a];!e[o]&amp;&amp;n[o]._scene&amp;&amp;(n[o]._scene.destroy(),n._infolayer&amp;&amp;n._infolayer.selectAll(&quot;.annotation-&quot;+o).remove())}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=e._size,i=0;i&lt;r.length;i++){var a=e[r[i]],o=a.domain,s=a._scene,c=s.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:l.svg,&quot;xlink:href&quot;:c,x:n.l+n.w*o.x[0],y:n.t+n.h*(1-o.y[1]),width:n.w*(o.x[1]-o.x[0]),height:n.h*(o.y[1]-o.y[0]),preserveAspectRatio:&quot;none&quot;}),s.destroy()}},r.cleanId=function(t){if(t.match(/^scene[0-9]*$/)){var e=t.substr(5);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),&quot;scene&quot;+e}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n&lt;r.length;n++){e[r[n]]._scene.updateFx(e.dragmode,e.hovermode)}}},{&quot;../../components/fx/layout_attributes&quot;:407,&quot;../../constants/xmlns_namespaces&quot;:480,&quot;../../lib&quot;:503,&quot;../../plot_api/edit_types&quot;:536,&quot;../get_data&quot;:593,&quot;./layout/attributes&quot;:599,&quot;./layout/defaults&quot;:603,&quot;./layout/layout_attributes&quot;:604,&quot;./scene&quot;:608}],599:[function(t,e,r){&quot;use strict&quot;;e.exports={scene:{valType:&quot;subplotid&quot;,dflt:&quot;scene&quot;,editType:&quot;calc+clearAxisTypes&quot;}}},{}],600:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../components/color&quot;),i=t(&quot;../../cartesian/layout_attributes&quot;),a=t(&quot;../../../lib/extend&quot;).extendFlat,o=t(&quot;../../../plot_api/edit_types&quot;).overrideAll;e.exports=o({visible:i.visible,showspikes:{valType:&quot;boolean&quot;,dflt:!0},spikesides:{valType:&quot;boolean&quot;,dflt:!0},spikethickness:{valType:&quot;number&quot;,min:0,dflt:2},spikecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},showbackground:{valType:&quot;boolean&quot;,dflt:!1},backgroundcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(204, 204, 204, 0.5)&quot;},showaxeslabels:{valType:&quot;boolean&quot;,dflt:!0},color:i.color,categoryorder:i.categoryorder,categoryarray:i.categoryarray,title:{text:i.title.text,font:i.title.font},type:a({},i.type,{values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;]}),autotypenumbers:i.autotypenumbers,autorange:i.autorange,rangemode:i.rangemode,range:a({},i.range,{items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],anim:!1}),tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,mirror:i.mirror,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,tickfont:i.tickfont,tickangle:i.tickangle,tickprefix:i.tickprefix,showtickprefix:i.showtickprefix,ticksuffix:i.ticksuffix,showticksuffix:i.showticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickformat:i.tickformat,tickformatstops:i.tickformatstops,hoverformat:i.hoverformat,showline:i.showline,linecolor:i.linecolor,linewidth:i.linewidth,showgrid:i.showgrid,gridcolor:a({},i.gridcolor,{dflt:&quot;rgb(204, 204, 204)&quot;}),gridwidth:i.gridwidth,zeroline:i.zeroline,zerolinecolor:i.zerolinecolor,zerolinewidth:i.zerolinewidth,_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}},&quot;plot&quot;,&quot;from-root&quot;)},{&quot;../../../components/color&quot;:366,&quot;../../../lib/extend&quot;:493,&quot;../../../plot_api/edit_types&quot;:536,&quot;../../cartesian/layout_attributes&quot;:569}],601:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;).mix,i=t(&quot;../../../lib&quot;),a=t(&quot;../../../plot_api/plot_template&quot;),o=t(&quot;./axis_attributes&quot;),s=t(&quot;../../cartesian/type_defaults&quot;),l=t(&quot;../../cartesian/axis_defaults&quot;),c=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];e.exports=function(t,e,r){var u,f;function h(t,e){return i.coerce(u,f,o,t,e)}for(var p=0;p&lt;c.length;p++){var d=c[p];u=t[d]||{},(f=a.newContainer(e,d))._id=d[0]+r.scene,f._name=d,s(u,f,h,r),l(u,f,h,{font:r.font,letter:d[0],data:r.data,showGrid:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelposition:!0,noTicklabeloverflow:!0,bgColor:r.bgColor,calendar:r.calendar},r.fullLayout),h(&quot;gridcolor&quot;,n(f.color,r.bgColor,13600/187).toRgbString()),h(&quot;title.text&quot;,d[0]),f.setScale=i.noop,h(&quot;showspikes&quot;)&amp;&amp;(h(&quot;spikesides&quot;),h(&quot;spikethickness&quot;),h(&quot;spikecolor&quot;,f.color)),h(&quot;showaxeslabels&quot;),h(&quot;showbackground&quot;)&amp;&amp;h(&quot;backgroundcolor&quot;)}}},{&quot;../../../lib&quot;:503,&quot;../../../plot_api/plot_template&quot;:543,&quot;../../cartesian/axis_defaults&quot;:556,&quot;../../cartesian/type_defaults&quot;:582,&quot;./axis_attributes&quot;:600,tinycolor2:312}],602:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib/str2rgbarray&quot;),i=t(&quot;../../../lib&quot;),a=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function o(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],this.labelEnable=[!0,!0,!0],this.labelFont=[&quot;Open Sans&quot;,&quot;Open Sans&quot;,&quot;Open Sans&quot;],this.labelSize=[20,20,20],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}o.prototype.merge=function(t,e){for(var r=0;r&lt;3;++r){var o=e[a[r]];o.visible?(this.labels[r]=t._meta?i.templateString(o.title.text,t._meta):o.title.text,&quot;font&quot;in o.title&amp;&amp;(o.title.font.color&amp;&amp;(this.labelColor[r]=n(o.title.font.color)),o.title.font.family&amp;&amp;(this.labelFont[r]=o.title.font.family),o.title.font.size&amp;&amp;(this.labelSize[r]=o.title.font.size)),&quot;showline&quot;in o&amp;&amp;(this.lineEnable[r]=o.showline),&quot;linecolor&quot;in o&amp;&amp;(this.lineColor[r]=n(o.linecolor)),&quot;linewidth&quot;in o&amp;&amp;(this.lineWidth[r]=o.linewidth),&quot;showgrid&quot;in o&amp;&amp;(this.gridEnable[r]=o.showgrid),&quot;gridcolor&quot;in o&amp;&amp;(this.gridColor[r]=n(o.gridcolor)),&quot;gridwidth&quot;in o&amp;&amp;(this.gridWidth[r]=o.gridwidth),&quot;log&quot;===o.type?this.zeroEnable[r]=!1:&quot;zeroline&quot;in o&amp;&amp;(this.zeroEnable[r]=o.zeroline),&quot;zerolinecolor&quot;in o&amp;&amp;(this.zeroLineColor[r]=n(o.zerolinecolor)),&quot;zerolinewidth&quot;in o&amp;&amp;(this.zeroLineWidth[r]=o.zerolinewidth),&quot;ticks&quot;in o&amp;&amp;o.ticks?this.lineTickEnable[r]=!0:this.lineTickEnable[r]=!1,&quot;ticklen&quot;in o&amp;&amp;(this.lineTickLength[r]=this._defaultLineTickLength[r]=o.ticklen),&quot;tickcolor&quot;in o&amp;&amp;(this.lineTickColor[r]=n(o.tickcolor)),&quot;tickwidth&quot;in o&amp;&amp;(this.lineTickWidth[r]=o.tickwidth),&quot;tickangle&quot;in o&amp;&amp;(this.tickAngle[r]=&quot;auto&quot;===o.tickangle?-3600:Math.PI*-o.tickangle/180),&quot;showticklabels&quot;in o&amp;&amp;(this.tickEnable[r]=o.showticklabels),&quot;tickfont&quot;in o&amp;&amp;(o.tickfont.color&amp;&amp;(this.tickColor[r]=n(o.tickfont.color)),o.tickfont.family&amp;&amp;(this.tickFont[r]=o.tickfont.family),o.tickfont.size&amp;&amp;(this.tickSize[r]=o.tickfont.size)),&quot;mirror&quot;in o?-1!==[&quot;ticks&quot;,&quot;all&quot;,&quot;allticks&quot;].indexOf(o.mirror)?(this.lineTickMirror[r]=!0,this.lineMirror[r]=!0):!0===o.mirror?(this.lineTickMirror[r]=!1,this.lineMirror[r]=!0):(this.lineTickMirror[r]=!1,this.lineMirror[r]=!1):this.lineMirror[r]=!1,&quot;showbackground&quot;in o&amp;&amp;!1!==o.showbackground?(this.backgroundEnable[r]=!0,this.backgroundColor[r]=n(o.backgroundcolor)):this.backgroundEnable[r]=!1):(this.tickEnable[r]=!1,this.labelEnable[r]=!1,this.lineEnable[r]=!1,this.lineTickEnable[r]=!1,this.gridEnable[r]=!1,this.zeroEnable[r]=!1,this.backgroundEnable[r]=!1)}},e.exports=function(t,e){var r=new o;return r.merge(t,e),r}},{&quot;../../../lib&quot;:503,&quot;../../../lib/str2rgbarray&quot;:528}],603:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib&quot;),i=t(&quot;../../../components/color&quot;),a=t(&quot;../../../registry&quot;),o=t(&quot;../../subplot_defaults&quot;),s=t(&quot;./axis_defaults&quot;),l=t(&quot;./layout_attributes&quot;),c=t(&quot;../../get_data&quot;).getSubplotData;function u(t,e,r,n){for(var o=r(&quot;bgcolor&quot;),l=i.combine(o,n.paper_bgcolor),u=[&quot;up&quot;,&quot;center&quot;,&quot;eye&quot;],f=0;f&lt;u.length;f++)r(&quot;camera.&quot;+u[f]+&quot;.x&quot;),r(&quot;camera.&quot;+u[f]+&quot;.y&quot;),r(&quot;camera.&quot;+u[f]+&quot;.z&quot;);r(&quot;camera.projection.type&quot;);var h=!!r(&quot;aspectratio.x&quot;)&amp;&amp;!!r(&quot;aspectratio.y&quot;)&amp;&amp;!!r(&quot;aspectratio.z&quot;),p=r(&quot;aspectmode&quot;,h?&quot;manual&quot;:&quot;auto&quot;);h||(t.aspectratio=e.aspectratio={x:1,y:1,z:1},&quot;manual&quot;===p&amp;&amp;(e.aspectmode=&quot;auto&quot;),t.aspectmode=e.aspectmode);var d=c(n.fullData,&quot;gl3d&quot;,n.id);s(t,e,{font:n.font,scene:n.id,data:d,bgColor:l,calendar:n.calendar,autotypenumbersDflt:n.autotypenumbersDflt,fullLayout:n.fullLayout}),a.getComponentMethod(&quot;annotations3d&quot;,&quot;handleDefaults&quot;)(t,e,n);var m=n.getDfltFromLayout(&quot;dragmode&quot;);if(!1!==m&amp;&amp;!m)if(m=&quot;orbit&quot;,t.camera&amp;&amp;t.camera.up){var g=t.camera.up.x,v=t.camera.up.y,y=t.camera.up.z;0!==y&amp;&amp;(g&amp;&amp;v&amp;&amp;y?y/Math.sqrt(g*g+v*v+y*y)&gt;.999&amp;&amp;(m=&quot;turntable&quot;):m=&quot;turntable&quot;)}else m=&quot;turntable&quot;;r(&quot;dragmode&quot;,m),r(&quot;hovermode&quot;,n.getDfltFromLayout(&quot;hovermode&quot;))}e.exports=function(t,e,r){var i=e._basePlotModules.length&gt;1;o(t,e,r,{type:&quot;gl3d&quot;,attributes:l,handleDefaults:u,fullLayout:e,font:e.font,fullData:r,getDfltFromLayout:function(e){if(!i)return n.validate(t[e],l[e])?t[e]:void 0},autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,calendar:e.calendar})}},{&quot;../../../components/color&quot;:366,&quot;../../../lib&quot;:503,&quot;../../../registry&quot;:638,&quot;../../get_data&quot;:593,&quot;../../subplot_defaults&quot;:632,&quot;./axis_defaults&quot;:601,&quot;./layout_attributes&quot;:604}],604:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./axis_attributes&quot;),i=t(&quot;../../domain&quot;).attributes,a=t(&quot;../../../lib/extend&quot;).extendFlat,o=t(&quot;../../../lib&quot;).counterRegex;function s(t,e,r){return{x:{valType:&quot;number&quot;,dflt:t,editType:&quot;camera&quot;},y:{valType:&quot;number&quot;,dflt:e,editType:&quot;camera&quot;},z:{valType:&quot;number&quot;,dflt:r,editType:&quot;camera&quot;},editType:&quot;camera&quot;}}e.exports={_arrayAttrRegexps:[o(&quot;scene&quot;,&quot;.annotations&quot;,!0)],bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;plot&quot;},camera:{up:a(s(0,0,1),{}),center:a(s(0,0,0),{}),eye:a(s(1.25,1.25,1.25),{}),projection:{type:{valType:&quot;enumerated&quot;,values:[&quot;perspective&quot;,&quot;orthographic&quot;],dflt:&quot;perspective&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;camera&quot;},domain:i({name:&quot;scene&quot;,editType:&quot;plot&quot;}),aspectmode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;cube&quot;,&quot;data&quot;,&quot;manual&quot;],dflt:&quot;auto&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;aspectratio.x&quot;:void 0,&quot;aspectratio.y&quot;:void 0,&quot;aspectratio.z&quot;:void 0}},aspectratio:{x:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},y:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},z:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},editType:&quot;plot&quot;,impliedEdits:{aspectmode:&quot;manual&quot;}},xaxis:n,yaxis:n,zaxis:n,dragmode:{valType:&quot;enumerated&quot;,values:[&quot;orbit&quot;,&quot;turntable&quot;,&quot;zoom&quot;,&quot;pan&quot;,!1],editType:&quot;plot&quot;},hovermode:{valType:&quot;enumerated&quot;,values:[&quot;closest&quot;,!1],dflt:&quot;closest&quot;,editType:&quot;modebar&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;plot&quot;,_deprecated:{cameraposition:{valType:&quot;info_array&quot;,editType:&quot;camera&quot;}}}},{&quot;../../../lib&quot;:503,&quot;../../../lib/extend&quot;:493,&quot;../../domain&quot;:584,&quot;./axis_attributes&quot;:600}],605:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib/str2rgbarray&quot;),i=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function a(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}a.prototype.merge=function(t){for(var e=0;e&lt;3;++e){var r=t[i[e]];r.visible?(this.enabled[e]=r.showspikes,this.colors[e]=n(r.spikecolor),this.drawSides[e]=r.spikesides,this.lineWidth[e]=r.spikethickness):(this.enabled[e]=!1,this.drawSides[e]=!1)}},e.exports=function(t){var e=new a;return e.merge(t),e}},{&quot;../../../lib/str2rgbarray&quot;:528}],606:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.axesOptions,r=t.glplot.axesPixels,s=t.fullSceneLayout,l=[[],[],[]],c=0;c&lt;3;++c){var u=s[a[c]];if(u._length=(r[c].hi-r[c].lo)*r[c].pixelsPerDataUnit/t.dataScale[c],Math.abs(u._length)===1/0||isNaN(u._length))l[c]=[];else{u._input_range=u.range.slice(),u.range[0]=r[c].lo/t.dataScale[c],u.range[1]=r[c].hi/t.dataScale[c],u._m=1/(t.dataScale[c]*r[c].pixelsPerDataUnit),u.range[0]===u.range[1]&amp;&amp;(u.range[0]-=1,u.range[1]+=1);var f=u.tickmode;if(&quot;auto&quot;===u.tickmode){u.tickmode=&quot;linear&quot;;var h=u.nticks||i.constrain(u._length/40,4,9);n.autoTicks(u,Math.abs(u.range[1]-u.range[0])/h)}for(var p=n.calcTicks(u,{msUTC:!0}),d=0;d&lt;p.length;++d)p[d].x=p[d].x*t.dataScale[c],&quot;date&quot;===u.type&amp;&amp;(p[d].text=p[d].text.replace(/\&lt;br\&gt;/g,&quot; &quot;));l[c]=p,u.tickmode=f}}e.ticks=l;for(c=0;c&lt;3;++c){o[c]=.5*(t.glplot.bounds[0][c]+t.glplot.bounds[1][c]);for(d=0;d&lt;2;++d)e.bounds[d][c]=t.glplot.bounds[d][c]}t.contourLevels=function(t){for(var e=new Array(3),r=0;r&lt;3;++r){for(var n=t[r],i=new Array(n.length),a=0;a&lt;n.length;++a)i[a]=n[a].x;e[r]=i}return e}(l)};var n=t(&quot;../../cartesian/axes&quot;),i=t(&quot;../../../lib&quot;),a=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;],o=[0,0,0]},{&quot;../../../lib&quot;:503,&quot;../../cartesian/axes&quot;:554}],607:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r,n,i=[0,0,0,0];for(r=0;r&lt;4;++r)for(n=0;n&lt;4;++n)i[n]+=t[4*r+n]*e[r];return i}e.exports=function(t,e){return n(t.projection,n(t.view,n(t.model,[e[0],e[1],e[2],1])))}},{}],608:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;../../../stackgl_modules&quot;).gl_plot3d,o=a.createCamera,s=a.createScene,l=t(&quot;webgl-context&quot;),c=t(&quot;has-passive-events&quot;),u=t(&quot;../../registry&quot;),f=t(&quot;../../lib&quot;),h=f.preserveDrawingBuffer(),p=t(&quot;../../plots/cartesian/axes&quot;),d=t(&quot;../../components/fx&quot;),m=t(&quot;../../lib/str2rgbarray&quot;),g=t(&quot;../../lib/show_no_webgl_msg&quot;),v=t(&quot;./project&quot;),y=t(&quot;./layout/convert&quot;),x=t(&quot;./layout/spikes&quot;),b=t(&quot;./layout/tick_marks&quot;);function _(t,e){var r=document.createElement(&quot;div&quot;),n=t.container;this.graphDiv=t.graphDiv;var i=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);i.style.position=&quot;absolute&quot;,i.style.top=i.style.left=&quot;0px&quot;,i.style.width=i.style.height=&quot;100%&quot;,i.style[&quot;z-index&quot;]=20,i.style[&quot;pointer-events&quot;]=&quot;none&quot;,r.appendChild(i),this.svgContainer=i,r.id=t.id,r.style.position=&quot;absolute&quot;,r.style.top=r.style.left=&quot;0px&quot;,r.style.width=r.style.height=&quot;100%&quot;,n.appendChild(r),this.fullLayout=e,this.id=t.id||&quot;scene&quot;,this.fullSceneLayout=e[this.id],this.plotArgs=[[],{},{}],this.axesOptions=y(e,e[this.id]),this.spikeOptions=x(e[this.id]),this.container=r,this.staticMode=!!t.staticPlot,this.pixelRatio=this.pixelRatio||t.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=u.getComponentMethod(&quot;annotations3d&quot;,&quot;convert&quot;),this.drawAnnotations=u.getComponentMethod(&quot;annotations3d&quot;,&quot;draw&quot;),this.initializeGLPlot()}var w=_.prototype;w.prepareOptions=function(){var t={canvas:this.canvas,gl:this.gl,glOptions:{preserveDrawingBuffer:h,premultipliedAlpha:!0,antialias:!0},container:this.container,axes:this.axesOptions,spikes:this.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:this.camera,pixelRatio:this.pixelRatio};if(this.staticMode){if(!(i||(n=document.createElement(&quot;canvas&quot;),i=l({canvas:n,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error(&quot;error creating static canvas/context for image server&quot;);t.gl=i,t.canvas=n}return t};var T=!0;w.tryCreatePlot=function(){var t=this.prepareOptions(),e=!0;try{this.glplot=s(t)}catch(r){if(this.staticMode||!T||h)e=!1;else{f.warn([&quot;webgl setup failed possibly due to&quot;,&quot;false preserveDrawingBuffer config.&quot;,&quot;The mobile/tablet device may not be detected by is-mobile module.&quot;,&quot;Enabling preserveDrawingBuffer in second attempt to create webgl scene...&quot;].join(&quot; &quot;));try{h=t.glOptions.preserveDrawingBuffer=!0,this.glplot=s(t)}catch(r){h=t.glOptions.preserveDrawingBuffer=!1,e=!1}}}return T=!1,e},w.initializeGLCamera=function(){var t=this.fullSceneLayout.camera,e=&quot;orthographic&quot;===t.projection.type;this.camera=o(this.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:e,zoomMin:.01,zoomMax:100,mode:&quot;orbit&quot;})},w.initializeGLPlot=function(){var t=this;if(t.initializeGLCamera(),!t.tryCreatePlot())return g(t);t.traces={},t.make4thDimension();var e=t.graphDiv,r=e.layout,n=function(){var e={};return t.isCameraChanged(r)&amp;&amp;(e[t.id+&quot;.camera&quot;]=t.getCamera()),t.isAspectChanged(r)&amp;&amp;(e[t.id+&quot;.aspectratio&quot;]=t.glplot.getAspectratio(),&quot;manual&quot;!==r[t.id].aspectmode&amp;&amp;(t.fullSceneLayout.aspectmode=r[t.id].aspectmode=e[t.id+&quot;.aspectmode&quot;]=&quot;manual&quot;)),e},i=function(t){if(!1!==t.fullSceneLayout.dragmode){var e=n();t.saveLayout(r),t.graphDiv.emit(&quot;plotly_relayout&quot;,e)}};return t.glplot.canvas&amp;&amp;(t.glplot.canvas.addEventListener(&quot;mouseup&quot;,(function(){i(t)})),t.glplot.canvas.addEventListener(&quot;wheel&quot;,(function(r){if(e._context._scrollZoom.gl3d){if(t.camera._ortho){var n=r.deltaX&gt;r.deltaY?1.1:1/1.1,a=t.glplot.getAspectratio();t.glplot.setAspectratio({x:n*a.x,y:n*a.y,z:n*a.z})}i(t)}}),!!c&amp;&amp;{passive:!1}),t.glplot.canvas.addEventListener(&quot;mousemove&quot;,(function(){if(!1!==t.fullSceneLayout.dragmode&amp;&amp;0!==t.camera.mouseListener.buttons){var e=n();t.graphDiv.emit(&quot;plotly_relayouting&quot;,e)}})),t.staticMode||t.glplot.canvas.addEventListener(&quot;webglcontextlost&quot;,(function(r){e&amp;&amp;e.emit&amp;&amp;e.emit(&quot;plotly_webglcontextlost&quot;,{event:r,layer:t.id})}),!1)),t.glplot.oncontextloss=function(){t.recoverContext()},t.glplot.onrender=function(){t.render()},!0},w.render=function(){var t,e=this,r=e.graphDiv,n=e.svgContainer,i=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var a=r._fullLayout._invScaleX,o=r._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,&quot;viewBox&quot;,&quot;0 0 &quot;+s+&quot; &quot;+l),n.setAttributeNS(null,&quot;width&quot;,s),n.setAttributeNS(null,&quot;height&quot;,l),b(e),e.glplot.axes.update(e.axesOptions);for(var c=Object.keys(e.traces),u=null,h=e.glplot.selection,m=0;m&lt;c.length;++m)&quot;skip&quot;!==(t=e.traces[c[m]]).data.hoverinfo&amp;&amp;t.handlePick(h)&amp;&amp;(u=t),t.setContourLevels&amp;&amp;t.setContourLevels();function g(t,r,n){var i=e.fullSceneLayout[t+&quot;axis&quot;];return&quot;log&quot;!==i.type&amp;&amp;(r=i.d2l(r)),p.hoverLabelText(i,r,n)}if(null!==u){var y=v(e.glplot.cameraParams,h.dataCoordinate);t=u.data;var x,_=r._fullData[t.index],w=h.index,T={xLabel:g(&quot;x&quot;,h.traceCoordinate[0],t.xhoverformat),yLabel:g(&quot;y&quot;,h.traceCoordinate[1],t.yhoverformat),zLabel:g(&quot;z&quot;,h.traceCoordinate[2],t.zhoverformat)},k=d.castHoverinfo(_,e.fullLayout,w),A=(k||&quot;&quot;).split(&quot;+&quot;),M=k&amp;&amp;&quot;all&quot;===k;_.hovertemplate||M||(-1===A.indexOf(&quot;x&quot;)&amp;&amp;(T.xLabel=void 0),-1===A.indexOf(&quot;y&quot;)&amp;&amp;(T.yLabel=void 0),-1===A.indexOf(&quot;z&quot;)&amp;&amp;(T.zLabel=void 0),-1===A.indexOf(&quot;text&quot;)&amp;&amp;(h.textLabel=void 0),-1===A.indexOf(&quot;name&quot;)&amp;&amp;(u.name=void 0));var S=[];&quot;cone&quot;===t.type||&quot;streamtube&quot;===t.type?(T.uLabel=g(&quot;x&quot;,h.traceCoordinate[3],t.uhoverformat),(M||-1!==A.indexOf(&quot;u&quot;))&amp;&amp;S.push(&quot;u: &quot;+T.uLabel),T.vLabel=g(&quot;y&quot;,h.traceCoordinate[4],t.vhoverformat),(M||-1!==A.indexOf(&quot;v&quot;))&amp;&amp;S.push(&quot;v: &quot;+T.vLabel),T.wLabel=g(&quot;z&quot;,h.traceCoordinate[5],t.whoverformat),(M||-1!==A.indexOf(&quot;w&quot;))&amp;&amp;S.push(&quot;w: &quot;+T.wLabel),T.normLabel=h.traceCoordinate[6].toPrecision(3),(M||-1!==A.indexOf(&quot;norm&quot;))&amp;&amp;S.push(&quot;norm: &quot;+T.normLabel),&quot;streamtube&quot;===t.type&amp;&amp;(T.divergenceLabel=h.traceCoordinate[7].toPrecision(3),(M||-1!==A.indexOf(&quot;divergence&quot;))&amp;&amp;S.push(&quot;divergence: &quot;+T.divergenceLabel)),h.textLabel&amp;&amp;S.push(h.textLabel),x=S.join(&quot;&lt;br&gt;&quot;)):&quot;isosurface&quot;===t.type||&quot;volume&quot;===t.type?(T.valueLabel=p.hoverLabelText(e._mockAxis,e._mockAxis.d2l(h.traceCoordinate[3]),t.valuehoverformat),S.push(&quot;value: &quot;+T.valueLabel),h.textLabel&amp;&amp;S.push(h.textLabel),x=S.join(&quot;&lt;br&gt;&quot;)):x=h.textLabel;var E={x:h.traceCoordinate[0],y:h.traceCoordinate[1],z:h.traceCoordinate[2],data:_._input,fullData:_,curveNumber:_.index,pointNumber:w};d.appendArrayPointValue(E,_,w),t._module.eventData&amp;&amp;(E=_._module.eventData(E,h,_,{},w));var L={points:[E]};if(e.fullSceneLayout.hovermode){var C=[];d.loneHover({trace:_,x:(.5+.5*y[0]/y[3])*s,y:(.5-.5*y[1]/y[3])*l,xLabel:T.xLabel,yLabel:T.yLabel,zLabel:T.zLabel,text:x,name:u.name,color:d.castHoverOption(_,w,&quot;bgcolor&quot;)||u.color,borderColor:d.castHoverOption(_,w,&quot;bordercolor&quot;),fontFamily:d.castHoverOption(_,w,&quot;font.family&quot;),fontSize:d.castHoverOption(_,w,&quot;font.size&quot;),fontColor:d.castHoverOption(_,w,&quot;font.color&quot;),nameLength:d.castHoverOption(_,w,&quot;namelength&quot;),textAlign:d.castHoverOption(_,w,&quot;align&quot;),hovertemplate:f.castOption(_,w,&quot;hovertemplate&quot;),hovertemplateLabels:f.extendFlat({},E,T),eventData:[E]},{container:n,gd:r,inOut_bbox:C}),E.bbox=C[0]}h.buttons&amp;&amp;h.distance&lt;5?r.emit(&quot;plotly_click&quot;,L):r.emit(&quot;plotly_hover&quot;,L),this.oldEventData=L}else d.loneUnhover(n),this.oldEventData&amp;&amp;r.emit(&quot;plotly_unhover&quot;,this.oldEventData),this.oldEventData=void 0;e.drawAnnotations(e)},w.recoverContext=function(){var t=this;t.glplot.dispose();var e=function(){t.glplot.gl.isContextLost()?requestAnimationFrame(e):t.initializeGLPlot()?t.plot.apply(t,t.plotArgs):f.error(&quot;Catastrophic and unrecoverable WebGL error. Context lost.&quot;)};requestAnimationFrame(e)};var k=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function A(t,e,r){for(var n=t.fullSceneLayout,i=0;i&lt;3;i++){var a=k[i],o=a.charAt(0),s=n[a],l=e[o],c=e[o+&quot;calendar&quot;],u=e[&quot;_&quot;+o+&quot;length&quot;];if(f.isArrayOrTypedArray(l))for(var h,p=0;p&lt;(u||l.length);p++)if(f.isArrayOrTypedArray(l[p]))for(var d=0;d&lt;l[p].length;++d)h=s.d2l(l[p][d],0,c),!isNaN(h)&amp;&amp;isFinite(h)&amp;&amp;(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else h=s.d2l(l[p],0,c),!isNaN(h)&amp;&amp;isFinite(h)&amp;&amp;(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],u-1)}}w.plot=function(t,e,r){if(this.plotArgs=[t,e,r],!this.glplot.contextLost){var n,i,a,o,s,l,c=e[this.id],u=r[this.id];this.fullLayout=e,this.fullSceneLayout=c,this.axesOptions.merge(e,c),this.spikeOptions.merge(c),this.setViewport(c),this.updateFx(c.dragmode,c.hovermode),this.camera.enableWheel=this.graphDiv._context._scrollZoom.gl3d,this.glplot.setClearColor(m(c.bgcolor)),this.setConvert(s),t?Array.isArray(t)||(t=[t]):t=[];var f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(a=0;a&lt;t.length;++a)!0===(n=t[a]).visible&amp;&amp;0!==n._length&amp;&amp;A(this,n,f);!function(t,e){for(var r=t.fullSceneLayout,n=r.annotations||[],i=0;i&lt;3;i++)for(var a=k[i],o=a.charAt(0),s=r[a],l=0;l&lt;n.length;l++){var c=n[l];if(c.visible){var u=s.r2l(c[o]);!isNaN(u)&amp;&amp;isFinite(u)&amp;&amp;(e[0][i]=Math.min(e[0][i],u),e[1][i]=Math.max(e[1][i],u))}}}(this,f);var h=[1,1,1];for(o=0;o&lt;3;++o)f[1][o]===f[0][o]?h[o]=1:h[o]=1/(f[1][o]-f[0][o]);for(this.dataScale=h,this.convertAnnotations(this),a=0;a&lt;t.length;++a)!0===(n=t[a]).visible&amp;&amp;0!==n._length&amp;&amp;((i=this.traces[n.uid])?i.data.type===n.type?i.update(n):(i.dispose(),i=n._module.plot(this,n),this.traces[n.uid]=i):(i=n._module.plot(this,n),this.traces[n.uid]=i),i.name=n.name);var p=Object.keys(this.traces);t:for(a=0;a&lt;p.length;++a){for(o=0;o&lt;t.length;++o)if(t[o].uid===p[a]&amp;&amp;!0===t[o].visible&amp;&amp;0!==t[o]._length)continue t;(i=this.traces[p[a]]).dispose(),delete this.traces[p[a]]}this.glplot.objects.sort((function(t,e){return t._trace.data.index-e._trace.data.index}));var d,g=[[0,0,0],[0,0,0]],v=[],y={};for(a=0;a&lt;3;++a){if((l=(s=c[k[a]]).type)in y?(y[l].acc*=h[a],y[l].count+=1):y[l]={acc:h[a],count:1},s.autorange){g[0][a]=1/0,g[1][a]=-1/0;var x=this.glplot.objects,b=this.fullSceneLayout.annotations||[],_=s._name.charAt(0);for(o=0;o&lt;x.length;o++){var w=x[o],T=w.bounds,M=w._trace.data._pad||0;&quot;ErrorBars&quot;===w.constructor.name&amp;&amp;s._lowerLogErrorBound?g[0][a]=Math.min(g[0][a],s._lowerLogErrorBound):g[0][a]=Math.min(g[0][a],T[0][a]/h[a]-M),g[1][a]=Math.max(g[1][a],T[1][a]/h[a]+M)}for(o=0;o&lt;b.length;o++){var S=b[o];if(S.visible){var E=s.r2l(S[_]);g[0][a]=Math.min(g[0][a],E),g[1][a]=Math.max(g[1][a],E)}}if(&quot;rangemode&quot;in s&amp;&amp;&quot;tozero&quot;===s.rangemode&amp;&amp;(g[0][a]=Math.min(g[0][a],0),g[1][a]=Math.max(g[1][a],0)),g[0][a]&gt;g[1][a])g[0][a]=-1,g[1][a]=1;else{var L=g[1][a]-g[0][a];g[0][a]-=L/32,g[1][a]+=L/32}if(&quot;reversed&quot;===s.autorange){var C=g[0][a];g[0][a]=g[1][a],g[1][a]=C}}else{var P=s.range;g[0][a]=s.r2l(P[0]),g[1][a]=s.r2l(P[1])}g[0][a]===g[1][a]&amp;&amp;(g[0][a]-=1,g[1][a]+=1),v[a]=g[1][a]-g[0][a],this.glplot.setBounds(a,{min:g[0][a]*h[a],max:g[1][a]*h[a]})}var I=c.aspectmode;if(&quot;cube&quot;===I)d=[1,1,1];else if(&quot;manual&quot;===I){var O=c.aspectratio;d=[O.x,O.y,O.z]}else{if(&quot;auto&quot;!==I&amp;&amp;&quot;data&quot;!==I)throw new Error(&quot;scene.js aspectRatio was not one of the enumerated types&quot;);var z=[1,1,1];for(a=0;a&lt;3;++a){var D=y[l=(s=c[k[a]]).type];z[a]=Math.pow(D.acc,1/D.count)/h[a]}d=&quot;data&quot;===I||Math.max.apply(null,z)/Math.min.apply(null,z)&lt;=4?z:[1,1,1]}c.aspectratio.x=u.aspectratio.x=d[0],c.aspectratio.y=u.aspectratio.y=d[1],c.aspectratio.z=u.aspectratio.z=d[2],this.glplot.setAspectratio(c.aspectratio),this.viewInitial.aspectratio||(this.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),this.viewInitial.aspectmode||(this.viewInitial.aspectmode=c.aspectmode);var R=c.domain||null,F=e._size||null;if(R&amp;&amp;F){var B=this.container.style;B.position=&quot;absolute&quot;,B.left=F.l+R.x[0]*F.w+&quot;px&quot;,B.top=F.t+(1-R.y[1])*F.h+&quot;px&quot;,B.width=F.w*(R.x[1]-R.x[0])+&quot;px&quot;,B.height=F.h*(R.y[1]-R.y[0])+&quot;px&quot;}this.glplot.redraw()}},w.destroy=function(){this.glplot&amp;&amp;(this.camera.mouseListener.enabled=!1,this.container.removeEventListener(&quot;wheel&quot;,this.camera.wheelListener),this.camera=null,this.glplot.dispose(),this.container.parentNode.removeChild(this.container),this.glplot=null)},w.getCamera=function(){var t;return this.camera.view.recalcMatrix(this.camera.view.lastT()),{up:{x:(t=this.camera).up[0],y:t.up[1],z:t.up[2]},center:{x:t.center[0],y:t.center[1],z:t.center[2]},eye:{x:t.eye[0],y:t.eye[1],z:t.eye[2]},projection:{type:!0===t._ortho?&quot;orthographic&quot;:&quot;perspective&quot;}}},w.setViewport=function(t){var e,r=t.camera;this.camera.lookAt.apply(this,[[(e=r).eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]),this.glplot.setAspectratio(t.aspectratio),&quot;orthographic&quot;===r.projection.type!==this.camera._ortho&amp;&amp;(this.glplot.redraw(),this.glplot.clearRGBA(),this.glplot.dispose(),this.initializeGLPlot())},w.isCameraChanged=function(t){var e=this.getCamera(),r=f.nestedProperty(t,this.id+&quot;.camera&quot;).get();function n(t,e,r,n){var i=[&quot;up&quot;,&quot;center&quot;,&quot;eye&quot;],a=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];return e[i[r]]&amp;&amp;t[i[r]][a[n]]===e[i[r]][a[n]]}var i=!1;if(void 0===r)i=!0;else{for(var a=0;a&lt;3;a++)for(var o=0;o&lt;3;o++)if(!n(e,r,a,o)){i=!0;break}(!r.projection||e.projection&amp;&amp;e.projection.type!==r.projection.type)&amp;&amp;(i=!0)}return i},w.isAspectChanged=function(t){var e=this.glplot.getAspectratio(),r=f.nestedProperty(t,this.id+&quot;.aspectratio&quot;).get();return void 0===r||r.x!==e.x||r.y!==e.y||r.z!==e.z},w.saveLayout=function(t){var e,r,n,i,a,o,s=this.fullLayout,l=this.isCameraChanged(t),c=this.isAspectChanged(t),h=l||c;if(h){var p={};if(l&amp;&amp;(e=this.getCamera(),n=(r=f.nestedProperty(t,this.id+&quot;.camera&quot;)).get(),p[this.id+&quot;.camera&quot;]=n),c&amp;&amp;(i=this.glplot.getAspectratio(),o=(a=f.nestedProperty(t,this.id+&quot;.aspectratio&quot;)).get(),p[this.id+&quot;.aspectratio&quot;]=o),u.call(&quot;_storeDirectGUIEdit&quot;,t,s._preGUI,p),l)r.set(e),f.nestedProperty(s,this.id+&quot;.camera&quot;).set(e);if(c)a.set(i),f.nestedProperty(s,this.id+&quot;.aspectratio&quot;).set(i),this.glplot.redraw()}return h},w.updateFx=function(t,e){var r=this.camera;if(r)if(&quot;orbit&quot;===t)r.mode=&quot;orbit&quot;,r.keyBindingMode=&quot;rotate&quot;;else if(&quot;turntable&quot;===t){r.up=[0,0,1],r.mode=&quot;turntable&quot;,r.keyBindingMode=&quot;rotate&quot;;var n=this.graphDiv,i=n._fullLayout,a=this.fullSceneLayout.camera,o=a.up.x,s=a.up.y,l=a.up.z;if(l/Math.sqrt(o*o+s*s+l*l)&lt;.999){var c=this.id+&quot;.camera.up&quot;,h={x:0,y:0,z:1},p={};p[c]=h;var d=n.layout;u.call(&quot;_storeDirectGUIEdit&quot;,d,i._preGUI,p),a.up=h,f.nestedProperty(d,c).set(h)}}else r.keyBindingMode=t;this.fullSceneLayout.hovermode=e},w.toImage=function(t){t||(t=&quot;png&quot;),this.staticMode&amp;&amp;this.container.appendChild(n),this.glplot.redraw();var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a),function(t,e,r){for(var n=0,i=r-1;n&lt;i;++n,--i)for(var a=0;a&lt;e;++a)for(var o=0;o&lt;4;++o){var s=4*(e*n+a)+o,l=4*(e*i+a)+o,c=t[s];t[s]=t[l],t[l]=c}}(a,r,i),function(t,e,r){for(var n=0;n&lt;r;++n)for(var i=0;i&lt;e;++i){var a=4*(e*n+i),o=t[a+3];if(o&gt;0)for(var s=255/o,l=0;l&lt;3;++l)t[a+l]=Math.min(s*t[a+l],255)}}(a,r,i);var o=document.createElement(&quot;canvas&quot;);o.width=r,o.height=i;var s,l=o.getContext(&quot;2d&quot;),c=l.createImageData(r,i);switch(c.data.set(a),l.putImageData(c,0,0),t){case&quot;jpeg&quot;:s=o.toDataURL(&quot;image/jpeg&quot;);break;case&quot;webp&quot;:s=o.toDataURL(&quot;image/webp&quot;);break;default:s=o.toDataURL(&quot;image/png&quot;)}return this.staticMode&amp;&amp;this.container.removeChild(n),s},w.setConvert=function(){for(var t=0;t&lt;3;t++){var e=this.fullSceneLayout[k[t]];p.setConvert(e,this.fullLayout),e.setScale=f.noop}},w.make4thDimension=function(){var t=this.graphDiv._fullLayout;this._mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},p.setConvert(this._mockAxis,t)},e.exports=_},{&quot;../../../stackgl_modules&quot;:1120,&quot;../../components/fx&quot;:406,&quot;../../lib&quot;:503,&quot;../../lib/show_no_webgl_msg&quot;:525,&quot;../../lib/str2rgbarray&quot;:528,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../registry&quot;:638,&quot;./layout/convert&quot;:602,&quot;./layout/spikes&quot;:605,&quot;./layout/tick_marks&quot;:606,&quot;./project&quot;:607,&quot;has-passive-events&quot;:229,&quot;webgl-context&quot;:331}],609:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){n=n||t.length;for(var i=new Array(n),a=0;a&lt;n;a++)i[a]=[t[a],e[a],r[a]];return i}},{}],610:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./font_attributes&quot;),i=t(&quot;./animation_attributes&quot;),a=t(&quot;../components/color/attributes&quot;),o=t(&quot;../components/shapes/draw_newshape/attributes&quot;),s=t(&quot;./pad_attributes&quot;),l=t(&quot;../lib/extend&quot;).extendFlat,c=n({editType:&quot;calc&quot;});c.family.dflt='&quot;Open Sans&quot;, verdana, arial, sans-serif',c.size.dflt=12,c.color.dflt=a.defaultLine,e.exports={font:c,title:{text:{valType:&quot;string&quot;,editType:&quot;layoutstyle&quot;},font:n({editType:&quot;layoutstyle&quot;}),xref:{valType:&quot;enumerated&quot;,dflt:&quot;container&quot;,values:[&quot;container&quot;,&quot;paper&quot;],editType:&quot;layoutstyle&quot;},yref:{valType:&quot;enumerated&quot;,dflt:&quot;container&quot;,values:[&quot;container&quot;,&quot;paper&quot;],editType:&quot;layoutstyle&quot;},x:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;layoutstyle&quot;},y:{valType:&quot;number&quot;,min:0,max:1,dflt:&quot;auto&quot;,editType:&quot;layoutstyle&quot;},xanchor:{valType:&quot;enumerated&quot;,dflt:&quot;auto&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;layoutstyle&quot;},yanchor:{valType:&quot;enumerated&quot;,dflt:&quot;auto&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;layoutstyle&quot;},pad:l(s({editType:&quot;layoutstyle&quot;}),{}),editType:&quot;layoutstyle&quot;},uniformtext:{mode:{valType:&quot;enumerated&quot;,values:[!1,&quot;hide&quot;,&quot;show&quot;],dflt:!1,editType:&quot;plot&quot;},minsize:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},autosize:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;none&quot;},width:{valType:&quot;number&quot;,min:10,dflt:700,editType:&quot;plot&quot;},height:{valType:&quot;number&quot;,min:10,dflt:450,editType:&quot;plot&quot;},margin:{l:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},r:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},t:{valType:&quot;number&quot;,min:0,dflt:100,editType:&quot;plot&quot;},b:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},pad:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},autoexpand:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},computed:{valType:&quot;any&quot;,editType:&quot;none&quot;},paper_bgcolor:{valType:&quot;color&quot;,dflt:a.background,editType:&quot;plot&quot;},plot_bgcolor:{valType:&quot;color&quot;,dflt:a.background,editType:&quot;layoutstyle&quot;},autotypenumbers:{valType:&quot;enumerated&quot;,values:[&quot;convert types&quot;,&quot;strict&quot;],dflt:&quot;convert types&quot;,editType:&quot;calc&quot;},separators:{valType:&quot;string&quot;,editType:&quot;plot&quot;},hidesources:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},showlegend:{valType:&quot;boolean&quot;,editType:&quot;legend&quot;},colorway:{valType:&quot;colorlist&quot;,dflt:a.defaults,editType:&quot;calc&quot;},datarevision:{valType:&quot;any&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editrevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},selectionrevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},template:{valType:&quot;any&quot;,editType:&quot;calc&quot;},newshape:o.newshape,activeshape:o.activeshape,meta:{valType:&quot;any&quot;,arrayOk:!0,editType:&quot;plot&quot;},transition:l({},i.transition,{editType:&quot;none&quot;}),_deprecated:{title:{valType:&quot;string&quot;,editType:&quot;layoutstyle&quot;},titlefont:n({editType:&quot;layoutstyle&quot;})}}},{&quot;../components/color/attributes&quot;:365,&quot;../components/shapes/draw_newshape/attributes&quot;:451,&quot;../lib/extend&quot;:493,&quot;./animation_attributes&quot;:548,&quot;./font_attributes&quot;:585,&quot;./pad_attributes&quot;:618}],611:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/sort_object_keys&quot;),i='\xa9 &lt;a target=&quot;_blank&quot; href=&quot;https://www.openstreetmap.org/copyright&quot;&gt;OpenStreetMap&lt;/a&gt; contributors',a=['\xa9 &lt;a target=&quot;_blank&quot; href=&quot;https://carto.com/&quot;&gt;Carto&lt;/a&gt;',i].join(&quot; &quot;),o=['Map tiles by &lt;a target=&quot;_blank&quot; href=&quot;https://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;','under &lt;a target=&quot;_blank&quot; href=&quot;https://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt;',&quot;|&quot;,'Data by &lt;a target=&quot;_blank&quot; href=&quot;https://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt; contributors','under &lt;a target=&quot;_blank&quot; href=&quot;https://www.openstreetmap.org/copyright&quot;&gt;ODbL&lt;/a&gt;'].join(&quot; &quot;),s={&quot;open-street-map&quot;:{id:&quot;osm&quot;,version:8,sources:{&quot;plotly-osm-tiles&quot;:{type:&quot;raster&quot;,attribution:i,tiles:[&quot;https://a.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;,&quot;https://b.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-osm-tiles&quot;,type:&quot;raster&quot;,source:&quot;plotly-osm-tiles&quot;,minzoom:0,maxzoom:22}]},&quot;white-bg&quot;:{id:&quot;white-bg&quot;,version:8,sources:{},layers:[{id:&quot;white-bg&quot;,type:&quot;background&quot;,paint:{&quot;background-color&quot;:&quot;#FFFFFF&quot;},minzoom:0,maxzoom:22}]},&quot;carto-positron&quot;:{id:&quot;carto-positron&quot;,version:8,sources:{&quot;plotly-carto-positron&quot;:{type:&quot;raster&quot;,attribution:a,tiles:[&quot;https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-carto-positron&quot;,type:&quot;raster&quot;,source:&quot;plotly-carto-positron&quot;,minzoom:0,maxzoom:22}]},&quot;carto-darkmatter&quot;:{id:&quot;carto-darkmatter&quot;,version:8,sources:{&quot;plotly-carto-darkmatter&quot;:{type:&quot;raster&quot;,attribution:a,tiles:[&quot;https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-carto-darkmatter&quot;,type:&quot;raster&quot;,source:&quot;plotly-carto-darkmatter&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-terrain&quot;:{id:&quot;stamen-terrain&quot;,version:8,sources:{&quot;plotly-stamen-terrain&quot;:{type:&quot;raster&quot;,attribution:o,tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-terrain&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-terrain&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-toner&quot;:{id:&quot;stamen-toner&quot;,version:8,sources:{&quot;plotly-stamen-toner&quot;:{type:&quot;raster&quot;,attribution:o,tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-toner&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-toner&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-watercolor&quot;:{id:&quot;stamen-watercolor&quot;,version:8,sources:{&quot;plotly-stamen-watercolor&quot;:{type:&quot;raster&quot;,attribution:['Map tiles by &lt;a target=&quot;_blank&quot; href=&quot;https://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;','under &lt;a target=&quot;_blank&quot; href=&quot;https://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt;',&quot;|&quot;,'Data by &lt;a target=&quot;_blank&quot; href=&quot;https://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt; contributors','under &lt;a target=&quot;_blank&quot; href=&quot;https://creativecommons.org/licenses/by-sa/3.0&quot;&gt;CC BY SA&lt;/a&gt;'].join(&quot; &quot;),tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-watercolor&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-watercolor&quot;,minzoom:0,maxzoom:22}]}},l=n(s);e.exports={requiredVersion:&quot;1.10.1&quot;,styleUrlPrefix:&quot;mapbox://styles/mapbox/&quot;,styleUrlSuffix:&quot;v9&quot;,styleValuesMapbox:[&quot;basic&quot;,&quot;streets&quot;,&quot;outdoors&quot;,&quot;light&quot;,&quot;dark&quot;,&quot;satellite&quot;,&quot;satellite-streets&quot;],styleValueDflt:&quot;basic&quot;,stylesNonMapbox:s,styleValuesNonMapbox:l,traceLayerPrefix:&quot;plotly-trace-layer-&quot;,layoutLayerPrefix:&quot;plotly-layout-layer-&quot;,wrongVersionErrorMsg:[&quot;Your custom plotly.js bundle is not using the correct mapbox-gl version&quot;,&quot;Please install mapbox-gl@1.10.1.&quot;].join(&quot;\n&quot;),noAccessTokenErrorMsg:[&quot;Missing Mapbox access token.&quot;,&quot;Mapbox trace type require a Mapbox access token to be registered.&quot;,&quot;For example:&quot;,&quot;  Plotly.newPlot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });&quot;,&quot;More info here: https://www.mapbox.com/help/define-access-token/&quot;].join(&quot;\n&quot;),missingStyleErrorMsg:[&quot;No valid mapbox style found, please set `mapbox.style` to one of:&quot;,l.join(&quot;, &quot;),&quot;or register a Mapbox access token to use a Mapbox-served style.&quot;].join(&quot;\n&quot;),multipleTokensErrorMsg:[&quot;Set multiple mapbox access token across different mapbox subplot,&quot;,&quot;using first token found as mapbox-gl does not allow multipleaccess tokens on the same page.&quot;].join(&quot;\n&quot;),mapOnErrorMsg:&quot;Mapbox error.&quot;,mapboxLogo:{path0:&quot;m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z&quot;,path1:&quot;M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z&quot;,path2:&quot;M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z&quot;,polygon:&quot;11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34&quot;},styleRules:{map:&quot;overflow:hidden;position:relative;&quot;,&quot;missing-css&quot;:&quot;display:none;&quot;,canary:&quot;background-color:salmon;&quot;,&quot;ctrl-bottom-left&quot;:&quot;position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;&quot;,&quot;ctrl-bottom-right&quot;:&quot;position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;&quot;,ctrl:&quot;clear: both; pointer-events: auto; transform: translate(0, 0);&quot;,&quot;ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner&quot;:&quot;display: none;&quot;,&quot;ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner&quot;:&quot;display: block; margin-top:2px&quot;,&quot;ctrl-attrib.mapboxgl-compact:hover&quot;:&quot;padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;&quot;,&quot;ctrl-attrib.mapboxgl-compact::after&quot;:'content: &quot;&quot;; cursor: pointer; position: absolute; background-image: url(\'data:image/svg+xml;charset=utf-8,%3Csvg viewBox=&quot;0 0 20 20&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;%3E %3Cpath fill=&quot;%23333333&quot; fill-rule=&quot;evenodd&quot; d=&quot;M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0&quot;/%3E %3C/svg%3E\'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;',&quot;ctrl-attrib.mapboxgl-compact&quot;:&quot;min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;&quot;,&quot;ctrl-bottom-right &gt; .mapboxgl-ctrl-attrib.mapboxgl-compact::after&quot;:&quot;bottom: 0; right: 0&quot;,&quot;ctrl-bottom-left &gt; .mapboxgl-ctrl-attrib.mapboxgl-compact::after&quot;:&quot;bottom: 0; left: 0&quot;,&quot;ctrl-bottom-left .mapboxgl-ctrl&quot;:&quot;margin: 0 0 10px 10px; float: left;&quot;,&quot;ctrl-bottom-right .mapboxgl-ctrl&quot;:&quot;margin: 0 10px 10px 0; float: right;&quot;,&quot;ctrl-attrib&quot;:&quot;color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px&quot;,&quot;ctrl-attrib a&quot;:&quot;color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px&quot;,&quot;ctrl-attrib a:hover&quot;:&quot;color: inherit; text-decoration: underline;&quot;,&quot;ctrl-attrib .mapbox-improve-map&quot;:&quot;font-weight: bold; margin-left: 2px;&quot;,&quot;attrib-empty&quot;:&quot;display: none;&quot;,&quot;ctrl-logo&quot;:'display:block; width: 21px; height: 21px; background-image: url(\'data:image/svg+xml;charset=utf-8,%3C?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?%3E %3Csvg version=&quot;1.1&quot; id=&quot;Layer_1&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; x=&quot;0px&quot; y=&quot;0px&quot; viewBox=&quot;0 0 21 21&quot; style=&quot;enable-background:new 0 0 21 21;&quot; xml:space=&quot;preserve&quot;%3E%3Cg transform=&quot;translate(0,0.01)&quot;%3E%3Cpath d=&quot;m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z&quot; style=&quot;opacity:0.9;fill:%23ffffff;enable-background:new&quot; class=&quot;st0&quot;/%3E%3Cpath d=&quot;M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z&quot; style=&quot;opacity:0.35;enable-background:new&quot; class=&quot;st1&quot;/%3E%3Cpath d=&quot;M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z&quot; style=&quot;opacity:0.35;enable-background:new&quot; class=&quot;st1&quot;/%3E%3Cpolygon points=&quot;11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 &quot; style=&quot;opacity:0.9;fill:%23ffffff;enable-background:new&quot; class=&quot;st0&quot;/%3E%3C/g%3E%3C/svg%3E\')'}}},{&quot;../../lib/sort_object_keys&quot;:526}],612:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=t.split(&quot; &quot;),i=r[0],a=r[1],o=n.isArrayOrTypedArray(e)?n.mean(e):e,s=.5+o/100,l=1.5+o/100,c=[&quot;&quot;,&quot;&quot;],u=[0,0];switch(i){case&quot;top&quot;:c[0]=&quot;top&quot;,u[1]=-l;break;case&quot;bottom&quot;:c[0]=&quot;bottom&quot;,u[1]=l}switch(a){case&quot;left&quot;:c[1]=&quot;right&quot;,u[0]=-s;break;case&quot;right&quot;:c[1]=&quot;left&quot;,u[0]=s}return{anchor:c[0]&amp;&amp;c[1]?c.join(&quot;-&quot;):c[0]?c[0]:c[1]?c[1]:&quot;center&quot;,offset:u}}},{&quot;../../lib&quot;:503}],613:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mapbox-gl/dist/mapbox-gl-unminified&quot;),i=t(&quot;../../lib&quot;),a=i.strTranslate,o=i.strScale,s=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,l=t(&quot;../../constants/xmlns_namespaces&quot;),c=t(&quot;@plotly/d3&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;./mapbox&quot;),p=r.constants=t(&quot;./constants&quot;);function d(t){return&quot;string&quot;==typeof t&amp;&amp;(-1!==p.styleValuesMapbox.indexOf(t)||0===t.indexOf(&quot;mapbox://&quot;))}r.name=&quot;mapbox&quot;,r.attr=&quot;subplot&quot;,r.idRoot=&quot;mapbox&quot;,r.idRegex=r.attrRegex=i.counterRegex(&quot;mapbox&quot;),r.attributes={subplot:{valType:&quot;subplotid&quot;,dflt:&quot;mapbox&quot;,editType:&quot;calc&quot;}},r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.plot=function(t){var e=t._fullLayout,r=t.calcdata,a=e._subplots.mapbox;if(n.version!==p.requiredVersion)throw new Error(p.wrongVersionErrorMsg);var o=function(t,e){var r=t._fullLayout;if(&quot;&quot;===t._context.mapboxAccessToken)return&quot;&quot;;for(var n=[],a=[],o=!1,s=!1,l=0;l&lt;e.length;l++){var c=r[e[l]],u=c.accesstoken;d(c.style)&amp;&amp;(u?i.pushUnique(n,u):(d(c._input.style)&amp;&amp;(i.error(&quot;Uses Mapbox map style, but did not set an access token.&quot;),o=!0),s=!0)),u&amp;&amp;i.pushUnique(a,u)}if(s){var f=o?p.noAccessTokenErrorMsg:p.missingStyleErrorMsg;throw i.error(f),new Error(f)}return n.length?(n.length&gt;1&amp;&amp;i.warn(p.multipleTokensErrorMsg),n[0]):(a.length&amp;&amp;i.log([&quot;Listed mapbox access token(s)&quot;,a.join(&quot;,&quot;),&quot;but did not use a Mapbox map style, ignoring token(s).&quot;].join(&quot; &quot;)),&quot;&quot;)}(t,a);n.accessToken=o;for(var l=0;l&lt;a.length;l++){var c=a[l],u=s(r,&quot;mapbox&quot;,c),f=e[c],m=f._subplot;m||(m=new h(t,c),e[c]._subplot=m),m.viewInitial||(m.viewInitial={center:i.extendFlat({},f.center),zoom:f.zoom,bearing:f.bearing,pitch:f.pitch}),m.plot(u,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.mapbox||[],a=0;a&lt;i.length;a++){var o=i[a];!e[o]&amp;&amp;n[o]._subplot&amp;&amp;n[o]._subplot.destroy()}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=e._size,i=0;i&lt;r.length;i++){var s=e[r[i]],h=s.domain,d=s._subplot.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:l.svg,&quot;xlink:href&quot;:d,x:n.l+n.w*h.x[0],y:n.t+n.h*(1-h.y[1]),width:n.w*(h.x[1]-h.x[0]),height:n.h*(h.y[1]-h.y[0]),preserveAspectRatio:&quot;none&quot;});var m=c.select(s._subplot.div);if(!(null===m.select(&quot;.mapboxgl-ctrl-logo&quot;).node().offsetParent)){var g=e._glimages.append(&quot;g&quot;);g.attr(&quot;transform&quot;,a(n.l+n.w*h.x[0]+10,n.t+n.h*(1-h.y[0])-31)),g.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path0).style({opacity:.9,fill:&quot;#ffffff&quot;,&quot;enable-background&quot;:&quot;new&quot;}),g.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path1).style(&quot;opacity&quot;,.35).style(&quot;enable-background&quot;,&quot;new&quot;),g.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path2).style(&quot;opacity&quot;,.35).style(&quot;enable-background&quot;,&quot;new&quot;),g.append(&quot;polygon&quot;).attr(&quot;points&quot;,p.mapboxLogo.polygon).style({opacity:.9,fill:&quot;#ffffff&quot;,&quot;enable-background&quot;:&quot;new&quot;})}var v=m.select(&quot;.mapboxgl-ctrl-attrib&quot;).text().replace(&quot;Improve this map&quot;,&quot;&quot;),y=e._glimages.append(&quot;g&quot;),x=y.append(&quot;text&quot;);x.text(v).classed(&quot;static-attribution&quot;,!0).attr({&quot;font-size&quot;:12,&quot;font-family&quot;:&quot;Arial&quot;,color:&quot;rgba(0, 0, 0, 0.75)&quot;,&quot;text-anchor&quot;:&quot;end&quot;,&quot;data-unformatted&quot;:v});var b=u.bBox(x.node()),_=n.w*(h.x[1]-h.x[0]);if(b.width&gt;_/2){var w=v.split(&quot;|&quot;).join(&quot;&lt;br&gt;&quot;);x.text(w).attr(&quot;data-unformatted&quot;,w).call(f.convertToTspans,t),b=u.bBox(x.node())}x.attr(&quot;transform&quot;,a(-3,8-b.height)),y.insert(&quot;rect&quot;,&quot;.static-attribution&quot;).attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:&quot;rgba(255, 255, 255, 0.75)&quot;});var T=1;b.width+6&gt;_&amp;&amp;(T=_/(b.width+6));var k=[n.l+n.w*h.x[1],n.t+n.h*(1-h.y[0])];y.attr(&quot;transform&quot;,a(k[0],k[1])+o(T))}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=0;n&lt;r.length;n++){e[r[n]]._subplot.updateFx(e)}}},{&quot;../../components/drawing&quot;:388,&quot;../../constants/xmlns_namespaces&quot;:480,&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plots/get_data&quot;:593,&quot;./constants&quot;:611,&quot;./layout_attributes&quot;:615,&quot;./layout_defaults&quot;:616,&quot;./mapbox&quot;:617,&quot;@plotly/d3&quot;:58,&quot;mapbox-gl/dist/mapbox-gl-unminified&quot;:239}],614:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/svg_text_utils&quot;).sanitizeHTML,a=t(&quot;./convert_text_opts&quot;),o=t(&quot;./constants&quot;);function s(t,e){this.subplot=t,this.uid=t.uid+&quot;-&quot;+e,this.index=e,this.idSource=&quot;source-&quot;+this.uid,this.idLayer=o.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var l=s.prototype;function c(t){if(!t.visible)return!1;var e=t.source;if(Array.isArray(e)&amp;&amp;e.length&gt;0){for(var r=0;r&lt;e.length;r++)if(&quot;string&quot;!=typeof e[r]||0===e[r].length)return!1;return!0}return n.isPlainObject(e)||&quot;string&quot;==typeof e&amp;&amp;e.length&gt;0}function u(t){var e={},r={};switch(t.type){case&quot;circle&quot;:n.extendFlat(r,{&quot;circle-radius&quot;:t.circle.radius,&quot;circle-color&quot;:t.color,&quot;circle-opacity&quot;:t.opacity});break;case&quot;line&quot;:n.extendFlat(r,{&quot;line-width&quot;:t.line.width,&quot;line-color&quot;:t.color,&quot;line-opacity&quot;:t.opacity,&quot;line-dasharray&quot;:t.line.dash});break;case&quot;fill&quot;:n.extendFlat(r,{&quot;fill-color&quot;:t.color,&quot;fill-outline-color&quot;:t.fill.outlinecolor,&quot;fill-opacity&quot;:t.opacity});break;case&quot;symbol&quot;:var i=t.symbol,o=a(i.textposition,i.iconsize);n.extendFlat(e,{&quot;icon-image&quot;:i.icon+&quot;-15&quot;,&quot;icon-size&quot;:i.iconsize/10,&quot;text-field&quot;:i.text,&quot;text-size&quot;:i.textfont.size,&quot;text-anchor&quot;:o.anchor,&quot;text-offset&quot;:o.offset,&quot;symbol-placement&quot;:i.placement}),n.extendFlat(r,{&quot;icon-color&quot;:t.color,&quot;text-color&quot;:i.textfont.color,&quot;text-opacity&quot;:t.opacity});break;case&quot;raster&quot;:n.extendFlat(r,{&quot;raster-fade-duration&quot;:0,&quot;raster-opacity&quot;:t.opacity})}return{layout:e,paint:r}}l.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=c(t)},l.needsNewImage=function(t){return this.subplot.map.getSource(this.idSource)&amp;&amp;&quot;image&quot;===this.sourceType&amp;&amp;&quot;image&quot;===t.sourcetype&amp;&amp;(this.source!==t.source||JSON.stringify(this.coordinates)!==JSON.stringify(t.coordinates))},l.needsNewSource=function(t){return this.sourceType!==t.sourcetype||JSON.stringify(this.source)!==JSON.stringify(t.source)||this.layerType!==t.type},l.needsNewLayer=function(t){return this.layerType!==t.type||this.below!==this.subplot.belowLookup[&quot;layout-&quot;+this.index]},l.lookupBelow=function(){return this.subplot.belowLookup[&quot;layout-&quot;+this.index]},l.updateImage=function(t){this.subplot.map.getSource(this.idSource).updateImage({url:t.source,coordinates:t.coordinates});var e=this.findFollowingMapboxLayerId(this.lookupBelow());null!==e&amp;&amp;this.subplot.map.moveLayer(this.idLayer,e)},l.updateSource=function(t){var e=this.subplot.map;if(e.getSource(this.idSource)&amp;&amp;e.removeSource(this.idSource),this.sourceType=t.sourcetype,this.source=t.source,c(t)){var r=function(t){var e,r=t.sourcetype,n=t.source,a={type:r};&quot;geojson&quot;===r?e=&quot;data&quot;:&quot;vector&quot;===r?e=&quot;string&quot;==typeof n?&quot;url&quot;:&quot;tiles&quot;:&quot;raster&quot;===r?(e=&quot;tiles&quot;,a.tileSize=256):&quot;image&quot;===r&amp;&amp;(e=&quot;url&quot;,a.coordinates=t.coordinates);a[e]=n,t.sourceattribution&amp;&amp;(a.attribution=i(t.sourceattribution));return a}(t);e.addSource(this.idSource,r)}},l.findFollowingMapboxLayerId=function(t){if(&quot;traces&quot;===t)for(var e=this.subplot.getMapLayers(),r=0;r&lt;e.length;r++){var n=e[r].id;if(&quot;string&quot;==typeof n&amp;&amp;0===n.indexOf(o.traceLayerPrefix)){t=n;break}}return t},l.updateLayer=function(t){var e=this.subplot,r=u(t),n=this.lookupBelow(),i=this.findFollowingMapboxLayerId(n);this.removeLayer(),c(t)&amp;&amp;e.addLayer({id:this.idLayer,source:this.idSource,&quot;source-layer&quot;:t.sourcelayer||&quot;&quot;,type:t.type,minzoom:t.minzoom,maxzoom:t.maxzoom,layout:r.layout,paint:r.paint},i),this.layerType=t.type,this.below=n},l.updateStyle=function(t){if(c(t)){var e=u(t);this.subplot.setOptions(this.idLayer,&quot;setLayoutProperty&quot;,e.layout),this.subplot.setOptions(this.idLayer,&quot;setPaintProperty&quot;,e.paint)}},l.removeLayer=function(){var t=this.subplot.map;t.getLayer(this.idLayer)&amp;&amp;t.removeLayer(this.idLayer)},l.dispose=function(){var t=this.subplot.map;t.getLayer(this.idLayer)&amp;&amp;t.removeLayer(this.idLayer),t.getSource(this.idSource)&amp;&amp;t.removeSource(this.idSource)},e.exports=function(t,e,r){var n=new s(t,e);return n.update(r),n}},{&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;./constants&quot;:611,&quot;./convert_text_opts&quot;:612}],615:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;).defaultLine,a=t(&quot;../domain&quot;).attributes,o=t(&quot;../font_attributes&quot;),s=t(&quot;../../traces/scatter/attributes&quot;).textposition,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll,c=t(&quot;../../plot_api/plot_template&quot;).templatedArray,u=t(&quot;./constants&quot;),f=o({});f.family.dflt=&quot;Open Sans Regular, Arial Unicode MS Regular&quot;,(e.exports=l({_arrayAttrRegexps:[n.counterRegex(&quot;mapbox&quot;,&quot;.layers&quot;,!0)],domain:a({name:&quot;mapbox&quot;}),accesstoken:{valType:&quot;string&quot;,noBlank:!0,strict:!0},style:{valType:&quot;any&quot;,values:u.styleValuesMapbox.concat(u.styleValuesNonMapbox),dflt:u.styleValueDflt},center:{lon:{valType:&quot;number&quot;,dflt:0},lat:{valType:&quot;number&quot;,dflt:0}},zoom:{valType:&quot;number&quot;,dflt:1},bearing:{valType:&quot;number&quot;,dflt:0},pitch:{valType:&quot;number&quot;,dflt:0},layers:c(&quot;layer&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},sourcetype:{valType:&quot;enumerated&quot;,values:[&quot;geojson&quot;,&quot;vector&quot;,&quot;raster&quot;,&quot;image&quot;],dflt:&quot;geojson&quot;},source:{valType:&quot;any&quot;},sourcelayer:{valType:&quot;string&quot;,dflt:&quot;&quot;},sourceattribution:{valType:&quot;string&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;circle&quot;,&quot;line&quot;,&quot;fill&quot;,&quot;symbol&quot;,&quot;raster&quot;],dflt:&quot;circle&quot;},coordinates:{valType:&quot;any&quot;},below:{valType:&quot;string&quot;},color:{valType:&quot;color&quot;,dflt:i},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},minzoom:{valType:&quot;number&quot;,min:0,max:24,dflt:0},maxzoom:{valType:&quot;number&quot;,min:0,max:24,dflt:24},circle:{radius:{valType:&quot;number&quot;,dflt:15}},line:{width:{valType:&quot;number&quot;,dflt:2},dash:{valType:&quot;data_array&quot;}},fill:{outlinecolor:{valType:&quot;color&quot;,dflt:i}},symbol:{icon:{valType:&quot;string&quot;,dflt:&quot;marker&quot;},iconsize:{valType:&quot;number&quot;,dflt:10},text:{valType:&quot;string&quot;,dflt:&quot;&quot;},placement:{valType:&quot;enumerated&quot;,values:[&quot;point&quot;,&quot;line&quot;,&quot;line-center&quot;],dflt:&quot;point&quot;},textfont:f,textposition:n.extendFlat({},s,{arrayOk:!1})}})},&quot;plot&quot;,&quot;from-root&quot;)).uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color&quot;:366,&quot;../../lib&quot;:503,&quot;../../plot_api/edit_types&quot;:536,&quot;../../plot_api/plot_template&quot;:543,&quot;../../traces/scatter/attributes&quot;:926,&quot;../domain&quot;:584,&quot;../font_attributes&quot;:585,&quot;./constants&quot;:611}],616:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../subplot_defaults&quot;),a=t(&quot;../array_container_defaults&quot;),o=t(&quot;./layout_attributes&quot;);function s(t,e,r,n){r(&quot;accesstoken&quot;,n.accessToken),r(&quot;style&quot;),r(&quot;center.lon&quot;),r(&quot;center.lat&quot;),r(&quot;zoom&quot;),r(&quot;bearing&quot;),r(&quot;pitch&quot;),a(t,e,{name:&quot;layers&quot;,handleItemDefaults:l}),e._input=t}function l(t,e){function r(r,i){return n.coerce(t,e,o.layers,r,i)}if(r(&quot;visible&quot;)){var i,a=r(&quot;sourcetype&quot;),s=&quot;raster&quot;===a||&quot;image&quot;===a;r(&quot;source&quot;),r(&quot;sourceattribution&quot;),&quot;vector&quot;===a&amp;&amp;r(&quot;sourcelayer&quot;),&quot;image&quot;===a&amp;&amp;r(&quot;coordinates&quot;),s&amp;&amp;(i=&quot;raster&quot;);var l=r(&quot;type&quot;,i);s&amp;&amp;&quot;raster&quot;!==l&amp;&amp;(l=e.type=&quot;raster&quot;,n.log(&quot;Source types *raster* and *image* must drawn *raster* layer type.&quot;)),r(&quot;below&quot;),r(&quot;color&quot;),r(&quot;opacity&quot;),r(&quot;minzoom&quot;),r(&quot;maxzoom&quot;),&quot;circle&quot;===l&amp;&amp;r(&quot;circle.radius&quot;),&quot;line&quot;===l&amp;&amp;(r(&quot;line.width&quot;),r(&quot;line.dash&quot;)),&quot;fill&quot;===l&amp;&amp;r(&quot;fill.outlinecolor&quot;),&quot;symbol&quot;===l&amp;&amp;(r(&quot;symbol.icon&quot;),r(&quot;symbol.iconsize&quot;),r(&quot;symbol.text&quot;),n.coerceFont(r,&quot;symbol.textfont&quot;),r(&quot;symbol.textposition&quot;),r(&quot;symbol.placement&quot;))}}e.exports=function(t,e,r){i(t,e,r,{type:&quot;mapbox&quot;,attributes:o,handleDefaults:s,partition:&quot;y&quot;,accessToken:e._mapboxAccessToken})}},{&quot;../../lib&quot;:503,&quot;../array_container_defaults&quot;:549,&quot;../subplot_defaults&quot;:632,&quot;./layout_attributes&quot;:615}],617:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mapbox-gl/dist/mapbox-gl-unminified&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/geo_location_utils&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../cartesian/axes&quot;),l=t(&quot;../../components/dragelement&quot;),c=t(&quot;../../components/fx&quot;),u=t(&quot;../../components/dragelement/helpers&quot;),f=u.rectMode,h=u.drawMode,p=u.selectMode,d=t(&quot;../cartesian/select&quot;).prepSelect,m=t(&quot;../cartesian/select&quot;).clearSelect,g=t(&quot;../cartesian/select&quot;).clearSelectionsCache,v=t(&quot;../cartesian/select&quot;).selectOnClick,y=t(&quot;./constants&quot;),x=t(&quot;./layers&quot;);function b(t,e){this.id=e,this.gd=t;var r=t._fullLayout,n=t._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+&quot;-&quot;+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var _=b.prototype;_.plot=function(t,e,r){var n,i=this,a=e[i.id];i.map&amp;&amp;a.accesstoken!==i.accessToken&amp;&amp;(i.map.remove(),i.map=null,i.styleObj=null,i.traceHash={},i.layerList=[]),n=i.map?new Promise((function(r,n){i.updateMap(t,e,r,n)})):new Promise((function(r,n){i.createMap(t,e,r,n)})),r.push(n)},_.createMap=function(t,e,r,i){var o=this,s=e[o.id],l=o.styleObj=T(s.style);o.accessToken=s.accesstoken;var c=o.map=new n.Map({container:o.div,style:l.style,center:A(s.center),zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,interactive:!o.isStatic,preserveDrawingBuffer:o.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new n.AttributionControl({compact:!0}));c._canvas.style.left=&quot;0px&quot;,c._canvas.style.top=&quot;0px&quot;,o.rejectOnError(i),o.isStatic||o.initFx(t,e);var u=[];u.push(new Promise((function(t){c.once(&quot;load&quot;,t)}))),u=u.concat(a.fetchTraceGeoData(t)),Promise.all(u).then((function(){o.fillBelowLookup(t,e),o.updateData(t),o.updateLayout(e),o.resolveOnRender(r)})).catch(i)},_.updateMap=function(t,e,r,n){var i=this,o=i.map,s=e[this.id];i.rejectOnError(n);var l=[],c=T(s.style);JSON.stringify(i.styleObj)!==JSON.stringify(c)&amp;&amp;(i.styleObj=c,o.setStyle(c.style),i.traceHash={},l.push(new Promise((function(t){o.once(&quot;styledata&quot;,t)})))),l=l.concat(a.fetchTraceGeoData(t)),Promise.all(l).then((function(){i.fillBelowLookup(t,e),i.updateData(t),i.updateLayout(e),i.resolveOnRender(r)})).catch(n)},_.fillBelowLookup=function(t,e){var r,n,i=e[this.id].layers,a=this.belowLookup={},o=!1;for(r=0;r&lt;t.length;r++){var s=t[r][0].trace,l=s._module;&quot;string&quot;==typeof s.below?n=s.below:l.getBelow&amp;&amp;(n=l.getBelow(s,this)),&quot;&quot;===n&amp;&amp;(o=!0),a[&quot;trace-&quot;+s.uid]=n||&quot;&quot;}for(r=0;r&lt;i.length;r++){var c=i[r];n=&quot;string&quot;==typeof c.below?c.below:o?&quot;traces&quot;:&quot;&quot;,a[&quot;layout-&quot;+r]=n}var u,f,h={};for(u in a)h[n=a[u]]?h[n].push(u):h[n]=[u];for(n in h){var p=h[n];if(p.length&gt;1)for(r=0;r&lt;p.length;r++)0===(u=p[r]).indexOf(&quot;trace-&quot;)?(f=u.split(&quot;trace-&quot;)[1],this.traceHash[f]&amp;&amp;(this.traceHash[f].below=null)):0===u.indexOf(&quot;layout-&quot;)&amp;&amp;(f=u.split(&quot;layout-&quot;)[1],this.layerList[f]&amp;&amp;(this.layerList[f].below=null))}};var w={choroplethmapbox:0,densitymapbox:1,scattermapbox:2};function T(t){var e={};return i.isPlainObject(t)?(e.id=t.id,e.style=t):&quot;string&quot;==typeof t?(e.id=t,-1!==y.styleValuesMapbox.indexOf(t)?e.style=k(t):y.stylesNonMapbox[t]?e.style=y.stylesNonMapbox[t]:e.style=t):(e.id=y.styleValueDflt,e.style=k(y.styleValueDflt)),e.transition={duration:0,delay:0},e}function k(t){return y.styleUrlPrefix+t+&quot;-&quot;+y.styleUrlSuffix}function A(t){return[t.lon,t.lat]}_.updateData=function(t){var e,r,n,i,a=this.traceHash,o=t.slice().sort((function(t,e){return w[t[0].trace.type]-w[e[0].trace.type]}));for(n=0;n&lt;o.length;n++){var s=o[n],l=!1;(e=a[(r=s[0].trace).uid])&amp;&amp;(e.type===r.type?(e.update(s),l=!0):e.dispose()),!l&amp;&amp;r._module&amp;&amp;(a[r.uid]=r._module.plot(this,s))}var c=Object.keys(a);t:for(n=0;n&lt;c.length;n++){var u=c[n];for(i=0;i&lt;t.length;i++)if(u===(r=t[i][0].trace).uid)continue t;(e=a[u]).dispose(),delete a[u]}},_.updateLayout=function(t){var e=this.map,r=t[this.id];this.dragging||this.wheeling||(e.setCenter(A(r.center)),e.setZoom(r.zoom),e.setBearing(r.bearing),e.setPitch(r.pitch)),this.updateLayers(t),this.updateFramework(t),this.updateFx(t),this.map.resize(),this.gd._context._scrollZoom.mapbox?e.scrollZoom.enable():e.scrollZoom.disable()},_.resolveOnRender=function(t){var e=this.map;e.on(&quot;render&quot;,(function r(){e.loaded()&amp;&amp;(e.off(&quot;render&quot;,r),setTimeout(t,10))}))},_.rejectOnError=function(t){var e=this.map;function r(){t(new Error(y.mapOnErrorMsg))}e.once(&quot;error&quot;,r),e.once(&quot;style.error&quot;,r),e.once(&quot;source.error&quot;,r),e.once(&quot;tile.error&quot;,r),e.once(&quot;layer.error&quot;,r)},_.createFramework=function(t){var e=this,r=e.div=document.createElement(&quot;div&quot;);r.id=e.uid,r.style.position=&quot;absolute&quot;,e.container.appendChild(r),e.xaxis={_id:&quot;x&quot;,c2p:function(t){return e.project(t).x}},e.yaxis={_id:&quot;y&quot;,c2p:function(t){return e.project(t).y}},e.updateFramework(t),e.mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},s.setConvert(e.mockAxis,t)},_.initFx=function(t,e){var r=this,n=r.gd,i=r.map;function a(){c.loneUnhover(e._hoverlayer)}function s(){var t=r.getView();n.emit(&quot;plotly_relayouting&quot;,r.getViewEditsWithDerived(t))}i.on(&quot;moveend&quot;,(function(t){if(r.map){var e=n._fullLayout;if(t.originalEvent||r.wheeling){var i=e[r.id];o.call(&quot;_storeDirectGUIEdit&quot;,n.layout,e._preGUI,r.getViewEdits(i));var a=r.getView();i._input.center=i.center=a.center,i._input.zoom=i.zoom=a.zoom,i._input.bearing=i.bearing=a.bearing,i._input.pitch=i.pitch=a.pitch,n.emit(&quot;plotly_relayout&quot;,r.getViewEditsWithDerived(a))}t.originalEvent&amp;&amp;&quot;mouseup&quot;===t.originalEvent.type?r.dragging=!1:r.wheeling&amp;&amp;(r.wheeling=!1),e._rehover&amp;&amp;e._rehover()}})),i.on(&quot;wheel&quot;,(function(){r.wheeling=!0})),i.on(&quot;mousemove&quot;,(function(t){var e=r.div.getBoundingClientRect(),a=[t.originalEvent.offsetX,t.originalEvent.offsetY];t.target.getBoundingClientRect=function(){return e},r.xaxis.p2c=function(){return i.unproject(a).lng},r.yaxis.p2c=function(){return i.unproject(a).lat},n._fullLayout._rehover=function(){n._fullLayout._hoversubplot===r.id&amp;&amp;n._fullLayout[r.id]&amp;&amp;c.hover(n,t,r.id)},c.hover(n,t,r.id),n._fullLayout._hoversubplot=r.id})),i.on(&quot;dragstart&quot;,(function(){r.dragging=!0,a()})),i.on(&quot;zoomstart&quot;,a),i.on(&quot;mouseout&quot;,(function(){n._fullLayout._hoversubplot=null})),i.on(&quot;drag&quot;,s),i.on(&quot;zoom&quot;,s),i.on(&quot;dblclick&quot;,(function(){var t=n._fullLayout[r.id];o.call(&quot;_storeDirectGUIEdit&quot;,n.layout,n._fullLayout._preGUI,r.getViewEdits(t));var e=r.viewInitial;i.setCenter(A(e.center)),i.setZoom(e.zoom),i.setBearing(e.bearing),i.setPitch(e.pitch);var a=r.getView();t._input.center=t.center=a.center,t._input.zoom=t.zoom=a.zoom,t._input.bearing=t.bearing=a.bearing,t._input.pitch=t.pitch=a.pitch,n.emit(&quot;plotly_doubleclick&quot;,null),n.emit(&quot;plotly_relayout&quot;,r.getViewEditsWithDerived(a))})),r.clearSelect=function(){g(r.dragOptions),m(r.dragOptions.gd)},r.onClickInPanFn=function(t){return function(e){var i=n._fullLayout.clickmode;i.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;v(e.originalEvent,n,[r.xaxis],[r.yaxis],r.id,t),i.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;c.click(n,e.originalEvent)}}},_.updateFx=function(t){var e=this,r=e.map,n=e.gd;if(!e.isStatic){var a,o=t.dragmode;a=f(o)?function(t,r){(t.range={})[e.id]=[c([r.xmin,r.ymin]),c([r.xmax,r.ymax])]}:function(t,r,n){(t.lassoPoints={})[e.id]=n.filtered.map(c)};var s=e.dragOptions;e.dragOptions=i.extendDeep(s||{},{dragmode:t.dragmode,element:e.div,gd:n,plotinfo:{id:e.id,domain:t[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis,fillRangeItems:a},xaxes:[e.xaxis],yaxes:[e.yaxis],subplot:e.id}),r.off(&quot;click&quot;,e.onClickInPanHandler),p(o)||h(o)?(r.dragPan.disable(),r.on(&quot;zoomstart&quot;,e.clearSelect),e.dragOptions.prepFn=function(t,r,n){d(t,r,n,e.dragOptions,o)},l.init(e.dragOptions)):(r.dragPan.enable(),r.off(&quot;zoomstart&quot;,e.clearSelect),e.div.onmousedown=null,e.onClickInPanHandler=e.onClickInPanFn(e.dragOptions),r.on(&quot;click&quot;,e.onClickInPanHandler))}function c(t){var r=e.map.unproject(t);return[r.lng,r.lat]}},_.updateFramework=function(t){var e=t[this.id].domain,r=t._size,n=this.div.style;n.width=r.w*(e.x[1]-e.x[0])+&quot;px&quot;,n.height=r.h*(e.y[1]-e.y[0])+&quot;px&quot;,n.left=r.l+e.x[0]*r.w+&quot;px&quot;,n.top=r.t+(1-e.y[1])*r.h+&quot;px&quot;,this.xaxis._offset=r.l+e.x[0]*r.w,this.xaxis._length=r.w*(e.x[1]-e.x[0]),this.yaxis._offset=r.t+(1-e.y[1])*r.h,this.yaxis._length=r.h*(e.y[1]-e.y[0])},_.updateLayers=function(t){var e,r=t[this.id].layers,n=this.layerList;if(r.length!==n.length){for(e=0;e&lt;n.length;e++)n[e].dispose();for(n=this.layerList=[],e=0;e&lt;r.length;e++)n.push(x(this,e,r[e]))}else for(e=0;e&lt;r.length;e++)n[e].update(r[e])},_.destroy=function(){this.map&amp;&amp;(this.map.remove(),this.map=null,this.container.removeChild(this.div))},_.toImage=function(){return this.map.stop(),this.map.getCanvas().toDataURL()},_.setOptions=function(t,e,r){for(var n in r)this.map[e](t,n,r[n])},_.getMapLayers=function(){return this.map.getStyle().layers},_.addLayer=function(t,e){var r=this.map;if(&quot;string&quot;==typeof e){if(&quot;&quot;===e)return void r.addLayer(t,e);for(var n=this.getMapLayers(),a=0;a&lt;n.length;a++)if(e===n[a].id)return void r.addLayer(t,e);i.warn([&quot;Trying to add layer with *below* value&quot;,e,&quot;referencing a layer that does not exist&quot;,&quot;or that does not yet exist.&quot;].join(&quot; &quot;))}r.addLayer(t)},_.project=function(t){return this.map.project(new n.LngLat(t[0],t[1]))},_.getView=function(){var t=this.map,e=t.getCenter(),r={lon:e.lng,lat:e.lat},n=t.getCanvas(),i=parseInt(n.style.width),a=parseInt(n.style.height);return{center:r,zoom:t.getZoom(),bearing:t.getBearing(),pitch:t.getPitch(),_derived:{coordinates:[t.unproject([0,0]).toArray(),t.unproject([i,0]).toArray(),t.unproject([i,a]).toArray(),t.unproject([0,a]).toArray()]}}},_.getViewEdits=function(t){for(var e=this.id,r=[&quot;center&quot;,&quot;zoom&quot;,&quot;bearing&quot;,&quot;pitch&quot;],n={},i=0;i&lt;r.length;i++){var a=r[i];n[e+&quot;.&quot;+a]=t[a]}return n},_.getViewEditsWithDerived=function(t){var e=this.id,r=this.getViewEdits(t);return r[e+&quot;._derived&quot;]=t._derived,r},e.exports=b},{&quot;../../components/dragelement&quot;:385,&quot;../../components/dragelement/helpers&quot;:384,&quot;../../components/fx&quot;:406,&quot;../../lib&quot;:503,&quot;../../lib/geo_location_utils&quot;:496,&quot;../../registry&quot;:638,&quot;../cartesian/axes&quot;:554,&quot;../cartesian/select&quot;:575,&quot;./constants&quot;:611,&quot;./layers&quot;:614,&quot;mapbox-gl/dist/mapbox-gl-unminified&quot;:239}],618:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.editType;return{t:{valType:&quot;number&quot;,dflt:0,editType:e},r:{valType:&quot;number&quot;,dflt:0,editType:e},b:{valType:&quot;number&quot;,dflt:0,editType:e},l:{valType:&quot;number&quot;,dflt:0,editType:e},editType:e}}},{}],619:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-time-format&quot;).timeFormatLocale,a=t(&quot;d3-format&quot;).formatLocale,o=t(&quot;fast-isnumeric&quot;),s=t(&quot;../registry&quot;),l=t(&quot;../plot_api/plot_schema&quot;),c=t(&quot;../plot_api/plot_template&quot;),u=t(&quot;../lib&quot;),f=t(&quot;../components/color&quot;),h=t(&quot;../constants/numerical&quot;).BADNUM,p=t(&quot;./cartesian/axis_ids&quot;),d=t(&quot;./cartesian/handle_outline&quot;).clearSelect,m=t(&quot;./animation_attributes&quot;),g=t(&quot;./frame_attributes&quot;),v=t(&quot;../plots/get_data&quot;).getModuleCalcData,y=u.relinkPrivateKeys,x=u._,b=e.exports={};u.extendFlat(b,s),b.attributes=t(&quot;./attributes&quot;),b.attributes.type.values=b.allTypes,b.fontAttrs=t(&quot;./font_attributes&quot;),b.layoutAttributes=t(&quot;./layout_attributes&quot;),b.fontWeight=&quot;normal&quot;;var _=b.transformsRegistry,w=t(&quot;./command&quot;);b.executeAPICommand=w.executeAPICommand,b.computeAPICommandBindings=w.computeAPICommandBindings,b.manageCommandObserver=w.manageCommandObserver,b.hasSimpleAPICommandBindings=w.hasSimpleAPICommandBindings,b.redrawText=function(t){return t=u.getGraphDiv(t),new Promise((function(e){setTimeout((function(){t._fullLayout&amp;&amp;(s.getComponentMethod(&quot;annotations&quot;,&quot;draw&quot;)(t),s.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),s.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t),e(b.previousPromises(t)))}),300)}))},b.resize=function(t){var e;t=u.getGraphDiv(t);var r=new Promise((function(r,n){t&amp;&amp;!u.isHidden(t)||n(new Error(&quot;Resize must be passed a displayed plot div element.&quot;)),t._redrawTimer&amp;&amp;clearTimeout(t._redrawTimer),t._resolveResize&amp;&amp;(e=t._resolveResize),t._resolveResize=r,t._redrawTimer=setTimeout((function(){if(!t.layout||t.layout.width&amp;&amp;t.layout.height||u.isHidden(t))r(t);else{delete t.layout.width,delete t.layout.height;var e=t.changed;t.autoplay=!0,s.call(&quot;relayout&quot;,t,{autosize:!0}).then((function(){t.changed=e,t._resolveResize===r&amp;&amp;(delete t._resolveResize,r(t))}))}}),100)}));return e&amp;&amp;e(r),r},b.previousPromises=function(t){if((t._promises||[]).length)return Promise.all(t._promises).then((function(){t._promises=[]}))},b.addLinks=function(t){if(t._context.showLink||t._context.showSources){var e=t._fullLayout,r=u.ensureSingle(e._paper,&quot;text&quot;,&quot;js-plot-link-container&quot;,(function(t){t.style({&quot;font-family&quot;:'&quot;Open Sans&quot;, Arial, sans-serif',&quot;font-size&quot;:&quot;12px&quot;,fill:f.defaultLine,&quot;pointer-events&quot;:&quot;all&quot;}).each((function(){var t=n.select(this);t.append(&quot;tspan&quot;).classed(&quot;js-link-to-tool&quot;,!0),t.append(&quot;tspan&quot;).classed(&quot;js-link-spacer&quot;,!0),t.append(&quot;tspan&quot;).classed(&quot;js-sourcelinks&quot;,!0)}))})),i=r.node(),a={y:e._paper.attr(&quot;height&quot;)-9};document.body.contains(i)&amp;&amp;i.getComputedTextLength()&gt;=e.width-20?(a[&quot;text-anchor&quot;]=&quot;start&quot;,a.x=5):(a[&quot;text-anchor&quot;]=&quot;end&quot;,a.x=e._paper.attr(&quot;width&quot;)-7),r.attr(a);var o=r.select(&quot;.js-link-to-tool&quot;),s=r.select(&quot;.js-link-spacer&quot;),l=r.select(&quot;.js-sourcelinks&quot;);t._context.showSources&amp;&amp;t._context.showSources(t),t._context.showLink&amp;&amp;function(t,e){e.text(&quot;&quot;);var r=e.append(&quot;a&quot;).attr({&quot;xlink:xlink:href&quot;:&quot;#&quot;,class:&quot;link--impt link--embedview&quot;,&quot;font-weight&quot;:&quot;bold&quot;}).text(t._context.linkText+&quot; &quot;+String.fromCharCode(187));if(t._context.sendData)r.on(&quot;click&quot;,(function(){b.sendDataToCloud(t)}));else{var n=window.location.pathname.split(&quot;/&quot;),i=window.location.search;r.attr({&quot;xlink:xlink:show&quot;:&quot;new&quot;,&quot;xlink:xlink:href&quot;:&quot;/&quot;+n[2].split(&quot;.&quot;)[0]+&quot;/&quot;+n[1]+i})}}(t,o),s.text(o.text()&amp;&amp;l.text()?&quot; - &quot;:&quot;&quot;)}},b.sendDataToCloud=function(t){var e=(window.PLOTLYENV||{}).BASE_URL||t._context.plotlyServerURL;if(e){t.emit(&quot;plotly_beforeexport&quot;);var r=n.select(t).append(&quot;div&quot;).attr(&quot;id&quot;,&quot;hiddenform&quot;).style(&quot;display&quot;,&quot;none&quot;),i=r.append(&quot;form&quot;).attr({action:e+&quot;/external&quot;,method:&quot;post&quot;,target:&quot;_blank&quot;});return i.append(&quot;input&quot;).attr({type:&quot;text&quot;,name:&quot;data&quot;}).node().value=b.graphJson(t,!1,&quot;keepdata&quot;),i.node().submit(),r.remove(),t.emit(&quot;plotly_afterexport&quot;),!1}};var T=[&quot;days&quot;,&quot;shortDays&quot;,&quot;months&quot;,&quot;shortMonths&quot;,&quot;periods&quot;,&quot;dateTime&quot;,&quot;date&quot;,&quot;time&quot;,&quot;decimal&quot;,&quot;thousands&quot;,&quot;grouping&quot;,&quot;currency&quot;],k=[&quot;year&quot;,&quot;month&quot;,&quot;dayMonth&quot;,&quot;dayMonthYear&quot;];function A(t,e){var r=t._context.locale;r||(r=&quot;en-US&quot;);var n=!1,i={};function a(t){for(var r=!0,a=0;a&lt;e.length;a++){var o=e[a];i[o]||(t[o]?i[o]=t[o]:r=!1)}r&amp;&amp;(n=!0)}for(var o=0;o&lt;2;o++){for(var l=t._context.locales,c=0;c&lt;2;c++){var u=(l[r]||{}).format;if(u&amp;&amp;(a(u),n))break;l=s.localeRegistry}var f=r.split(&quot;-&quot;)[0];if(n||f===r)break;r=f}return n||a(s.localeRegistry.en.format),i}function M(t,e){var r={_fullLayout:e},n=&quot;x&quot;===t._id.charAt(0),i=t._mainAxis._anchorAxis,a=&quot;&quot;,o=&quot;&quot;,s=&quot;&quot;;if(i&amp;&amp;(s=i._mainAxis._id,a=n?t._id+s:s+t._id),!a||!e._plots[a]){a=&quot;&quot;;for(var l=t._counterAxes,c=0;c&lt;l.length;c++){var u=l[c],f=n?t._id+u:u+t._id;o||(o=f);var h=p.getFromId(r,u);if(s&amp;&amp;h.overlaying===s){a=f;break}}}return a||o}function S(t){var e=t.transforms;if(Array.isArray(e)&amp;&amp;e.length)for(var r=0;r&lt;e.length;r++){var n=e[r],i=n._module||_[n.type];if(i&amp;&amp;i.makesData)return!0}return!1}function E(t,e,r,n){for(var i=t.transforms,a=[t],o=0;o&lt;i.length;o++){var s=i[o],l=_[s.type];l&amp;&amp;l.transform&amp;&amp;(a=l.transform(a,{transform:s,fullTrace:t,fullData:e,layout:r,fullLayout:n,transformIndex:o}))}return a}function L(t){return&quot;string&quot;==typeof t&amp;&amp;&quot;px&quot;===t.substr(t.length-2)&amp;&amp;parseFloat(t)}function C(t){var e=t.margin;if(!t._size){var r=t._size={l:Math.round(e.l),r:Math.round(e.r),t:Math.round(e.t),b:Math.round(e.b),p:Math.round(e.pad)};r.w=Math.round(t.width)-r.l-r.r,r.h=Math.round(t.height)-r.t-r.b}t._pushmargin||(t._pushmargin={}),t._pushmarginIds||(t._pushmarginIds={})}b.supplyDefaults=function(t,e){var r=e&amp;&amp;e.skipUpdateCalc,n=t._fullLayout||{};if(n._skipDefaults)delete n._skipDefaults;else{var o,l=t._fullLayout={},c=t.layout||{},f=t._fullData||[],h=t._fullData=[],p=t.data||[],m=t.calcdata||[],g=t._context||{};t._transitionData||b.createTransitionData(t),l._dfltTitle={plot:x(t,&quot;Click to enter Plot title&quot;),x:x(t,&quot;Click to enter X axis title&quot;),y:x(t,&quot;Click to enter Y axis title&quot;),colorbar:x(t,&quot;Click to enter Colorscale title&quot;),annotation:x(t,&quot;new text&quot;)},l._traceWord=x(t,&quot;trace&quot;);var v=A(t,T);if(l._mapboxAccessToken=g.mapboxAccessToken,n._initialAutoSizeIsDone){var _=n.width,w=n.height;b.supplyLayoutGlobalDefaults(c,l,v),c.width||(l.width=_),c.height||(l.height=w),b.sanitizeMargins(l)}else{b.supplyLayoutGlobalDefaults(c,l,v);var M=!c.width||!c.height,S=l.autosize,E=g.autosizable;M&amp;&amp;(S||E)?b.plotAutoSize(t,c,l):M&amp;&amp;b.sanitizeMargins(l),!S&amp;&amp;M&amp;&amp;(c.width=l.width,c.height=l.height)}l._d3locale=function(t,e){return t.decimal=e.charAt(0),t.thousands=e.charAt(1),{numberFormat:function(e){try{e=a(t).format(u.adjustFormat(e))}catch(t){return u.warnBadFormat(e),u.noFormat}return e},timeFormat:i(t).utcFormat}}(v,l.separators),l._extraFormat=A(t,k),l._initialAutoSizeIsDone=!0,l._dataLength=p.length,l._modules=[],l._visibleModules=[],l._basePlotModules=[];var L=l._subplots=function(){var t,e,r=s.collectableSubplotTypes,n={};if(!r){r=[];var i=s.subplotsRegistry;for(var a in i){var o=i[a].attr;if(o&amp;&amp;(r.push(a),Array.isArray(o)))for(e=0;e&lt;o.length;e++)u.pushUnique(r,o[e])}}for(t=0;t&lt;r.length;t++)n[r[t]]=[];return n}(),P=l._splomAxes={x:{},y:{}},I=l._splomSubplots={};l._splomGridDflt={},l._scatterStackOpts={},l._firstScatter={},l._alignmentOpts={},l._colorAxes={},l._requestRangeslider={},l._traceUids=function(t,e){var r,n,i=e.length,a=[];for(r=0;r&lt;t.length;r++){var o=t[r]._fullInput;o!==n&amp;&amp;a.push(o),n=o}var s=a.length,l=new Array(i),c={};function f(t,e){l[e]=t,c[t]=1}function h(t,e){if(t&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;!c[t])return f(t,e),!0}for(r=0;r&lt;i;r++){var p=e[r].uid;&quot;number&quot;==typeof p&amp;&amp;(p=String(p)),h(p,r)||(r&lt;s&amp;&amp;h(a[r].uid,r)||f(u.randstr(c),r))}return l}(f,p),l._globalTransforms=(t._context||{}).globalTransforms,b.supplyDataDefaults(p,h,c,l);var O=Object.keys(P.x),z=Object.keys(P.y);if(O.length&gt;1&amp;&amp;z.length&gt;1){for(s.getComponentMethod(&quot;grid&quot;,&quot;sizeDefaults&quot;)(c,l),o=0;o&lt;O.length;o++)u.pushUnique(L.xaxis,O[o]);for(o=0;o&lt;z.length;o++)u.pushUnique(L.yaxis,z[o]);for(var D in I)u.pushUnique(L.cartesian,D)}if(l._has=b._hasPlotType.bind(l),f.length===h.length)for(o=0;o&lt;h.length;o++)y(h[o],f[o]);b.supplyLayoutModuleDefaults(c,l,h,t._transitionData);var R=l._visibleModules,F=[];for(o=0;o&lt;R.length;o++){var B=R[o].crossTraceDefaults;B&amp;&amp;u.pushUnique(F,B)}for(o=0;o&lt;F.length;o++)F[o](h,l);l._hasOnlyLargeSploms=1===l._basePlotModules.length&amp;&amp;&quot;splom&quot;===l._basePlotModules[0].name&amp;&amp;O.length&gt;15&amp;&amp;z.length&gt;15&amp;&amp;0===l.shapes.length&amp;&amp;0===l.images.length,b.linkSubplots(h,l,f,n),b.cleanPlot(h,l,f,n);var N=!(!n._has||!n._has(&quot;gl2d&quot;)),j=!(!l._has||!l._has(&quot;gl2d&quot;)),U=!(!n._has||!n._has(&quot;cartesian&quot;))||N,V=!(!l._has||!l._has(&quot;cartesian&quot;))||j;U&amp;&amp;!V?n._bgLayer.remove():V&amp;&amp;!U&amp;&amp;(l._shouldCreateBgLayer=!0),n._zoomlayer&amp;&amp;!t._dragging&amp;&amp;d({_fullLayout:n}),function(t,e){var r,n=[];e.meta&amp;&amp;(r=e._meta={meta:e.meta,layout:{meta:e.meta}});for(var i=0;i&lt;t.length;i++){var a=t[i];a.meta?n[a.index]=a._meta={meta:a.meta}:e.meta&amp;&amp;(a._meta={meta:e.meta}),e.meta&amp;&amp;(a._meta.layout={meta:e.meta})}n.length&amp;&amp;(r||(r=e._meta={}),r.data=n)}(h,l),y(l,n),s.getComponentMethod(&quot;colorscale&quot;,&quot;crossTraceDefaults&quot;)(h,l),l._preGUI||(l._preGUI={}),l._tracePreGUI||(l._tracePreGUI={});var H,q=l._tracePreGUI,G={};for(H in q)G[H]=&quot;old&quot;;for(o=0;o&lt;h.length;o++)G[H=h[o]._fullInput.uid]||(q[H]={}),G[H]=&quot;new&quot;;for(H in G)&quot;old&quot;===G[H]&amp;&amp;delete q[H];C(l),s.getComponentMethod(&quot;rangeslider&quot;,&quot;makeData&quot;)(l),r||m.length!==h.length||b.supplyDefaultsUpdateCalc(m,h)}},b.supplyDefaultsUpdateCalc=function(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r],i=(t[r]||[])[0];if(i&amp;&amp;i.trace){var a=i.trace;if(a._hasCalcTransform){var o,s,l,c=a._arrayAttrs;for(o=0;o&lt;c.length;o++)s=c[o],l=u.nestedProperty(a,s).get().slice(),u.nestedProperty(n,s).set(l)}i.trace=n}}},b.createTransitionData=function(t){t._transitionData||(t._transitionData={}),t._transitionData._frames||(t._transitionData._frames=[]),t._transitionData._frameHash||(t._transitionData._frameHash={}),t._transitionData._counter||(t._transitionData._counter=0),t._transitionData._interruptCallbacks||(t._transitionData._interruptCallbacks=[])},b._hasPlotType=function(t){var e,r=this._basePlotModules||[];for(e=0;e&lt;r.length;e++)if(r[e].name===t)return!0;var n=this._modules||[];for(e=0;e&lt;n.length;e++){var i=n[e].name;if(i===t)return!0;var a=s.modules[i];if(a&amp;&amp;a.categories[t])return!0}return!1},b.cleanPlot=function(t,e,r,n){var i,a,o=n._basePlotModules||[];for(i=0;i&lt;o.length;i++){var s=o[i];s.clean&amp;&amp;s.clean(t,e,r,n)}var l=n._has&amp;&amp;n._has(&quot;gl&quot;),c=e._has&amp;&amp;e._has(&quot;gl&quot;);l&amp;&amp;!c&amp;&amp;void 0!==n._glcontainer&amp;&amp;(n._glcontainer.selectAll(&quot;.gl-canvas&quot;).remove(),n._glcontainer.selectAll(&quot;.no-webgl&quot;).remove(),n._glcanvas=null);var u=!!n._infolayer;t:for(i=0;i&lt;r.length;i++){var f=r[i].uid;for(a=0;a&lt;t.length;a++){if(f===t[a].uid)continue t}u&amp;&amp;n._infolayer.select(&quot;.cb&quot;+f).remove()}},b.linkSubplots=function(t,e,r,n){var i,a,o=n._plots||{},l=e._plots={},c=e._subplots,f={_fullData:t,_fullLayout:e},h=c.cartesian.concat(c.gl2d||[]);for(i=0;i&lt;h.length;i++){var d,m=h[i],g=o[m],v=p.getFromId(f,m,&quot;x&quot;),y=p.getFromId(f,m,&quot;y&quot;);for(g?d=l[m]=g:(d=l[m]={}).id=m,v._counterAxes.push(y._id),y._counterAxes.push(v._id),v._subplotsWith.push(m),y._subplotsWith.push(m),d.xaxis=v,d.yaxis=y,d._hasClipOnAxisFalse=!1,a=0;a&lt;t.length;a++){var x=t[a];if(x.xaxis===d.xaxis._id&amp;&amp;x.yaxis===d.yaxis._id&amp;&amp;!1===x.cliponaxis){d._hasClipOnAxisFalse=!0;break}}}var b,_=p.list(f,null,!0);for(i=0;i&lt;_.length;i++){var w=null;(b=_[i]).overlaying&amp;&amp;(w=p.getFromId(f,b.overlaying))&amp;&amp;w.overlaying&amp;&amp;(b.overlaying=!1,w=null),b._mainAxis=w||b,w&amp;&amp;(b.domain=w.domain.slice()),b._anchorAxis=&quot;free&quot;===b.anchor?null:p.getFromId(f,b.anchor)}for(i=0;i&lt;_.length;i++)if((b=_[i])._counterAxes.sort(p.idSort),b._subplotsWith.sort(u.subplotSort),b._mainSubplot=M(b,e),b._counterAxes.length&amp;&amp;(b.spikemode&amp;&amp;-1!==b.spikemode.indexOf(&quot;across&quot;)||b.automargin&amp;&amp;b.mirror&amp;&amp;&quot;free&quot;!==b.anchor||s.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(b))){var T=1,k=0;for(a=0;a&lt;b._counterAxes.length;a++){var A=p.getFromId(f,b._counterAxes[a]);T=Math.min(T,A.domain[0]),k=Math.max(k,A.domain[1])}T&lt;k&amp;&amp;(b._counterDomainMin=T,b._counterDomainMax=k)}},b.clearExpandedTraceDefaultColors=function(t){var e,r,n;for(r=[],(e=t._module._colorAttrs)||(t._module._colorAttrs=e=[],l.crawl(t._module.attributes,(function(t,n,i,a){r[a]=n,r.length=a+1,&quot;color&quot;===t.valType&amp;&amp;void 0===t.dflt&amp;&amp;e.push(r.join(&quot;.&quot;))}))),n=0;n&lt;e.length;n++){u.nestedProperty(t,&quot;_input.&quot;+e[n]).get()||u.nestedProperty(t,e[n]).set(null)}},b.supplyDataDefaults=function(t,e,r,n){var i,a,o,l=n._modules,f=n._visibleModules,h=n._basePlotModules,p=0,d=0;function m(t){e.push(t);var r=t._module;r&amp;&amp;(u.pushUnique(l,r),!0===t.visible&amp;&amp;u.pushUnique(f,r),u.pushUnique(h,t._module.basePlotModule),p++,!1!==t._input.visible&amp;&amp;d++)}n._transformModules=[];var g={},v=[],x=(r.template||{}).data||{},_=c.traceTemplater(x);for(i=0;i&lt;t.length;i++){if(o=t[i],(a=_.newTrace(o)).uid=n._traceUids[i],b.supplyTraceDefaults(o,a,d,n,i),a.index=i,a._input=o,a._expandedIndex=p,a.transforms&amp;&amp;a.transforms.length)for(var w=!1!==o.visible&amp;&amp;!1===a.visible,T=E(a,e,r,n),k=0;k&lt;T.length;k++){var A=T[k],M={_template:a._template,type:a.type,uid:a.uid+k};w&amp;&amp;!1===A.visible&amp;&amp;delete A.visible,b.supplyTraceDefaults(A,M,p,n,i),y(M,A),M.index=i,M._input=o,M._fullInput=a,M._expandedIndex=p,M._expandedInput=A,m(M)}else a._fullInput=a,a._expandedInput=a,m(a);s.traceIs(a,&quot;carpetAxis&quot;)&amp;&amp;(g[a.carpet]=a),s.traceIs(a,&quot;carpetDependent&quot;)&amp;&amp;v.push(i)}for(i=0;i&lt;v.length;i++)if((a=e[v[i]]).visible){var S=g[a.carpet];a._carpet=S,S&amp;&amp;S.visible?(a.xaxis=S.xaxis,a.yaxis=S.yaxis):a.visible=!1}},b.supplyAnimationDefaults=function(t){var e;t=t||{};var r={};function n(e,n){return u.coerce(t||{},r,m,e,n)}if(n(&quot;mode&quot;),n(&quot;direction&quot;),n(&quot;fromcurrent&quot;),Array.isArray(t.frame))for(r.frame=[],e=0;e&lt;t.frame.length;e++)r.frame[e]=b.supplyAnimationFrameDefaults(t.frame[e]||{});else r.frame=b.supplyAnimationFrameDefaults(t.frame||{});if(Array.isArray(t.transition))for(r.transition=[],e=0;e&lt;t.transition.length;e++)r.transition[e]=b.supplyAnimationTransitionDefaults(t.transition[e]||{});else r.transition=b.supplyAnimationTransitionDefaults(t.transition||{});return r},b.supplyAnimationFrameDefaults=function(t){var e={};function r(r,n){return u.coerce(t||{},e,m.frame,r,n)}return r(&quot;duration&quot;),r(&quot;redraw&quot;),e},b.supplyAnimationTransitionDefaults=function(t){var e={};function r(r,n){return u.coerce(t||{},e,m.transition,r,n)}return r(&quot;duration&quot;),r(&quot;easing&quot;),e},b.supplyFrameDefaults=function(t){var e={};function r(r,n){return u.coerce(t,e,g,r,n)}return r(&quot;group&quot;),r(&quot;name&quot;),r(&quot;traces&quot;),r(&quot;baseframe&quot;),r(&quot;data&quot;),r(&quot;layout&quot;),e},b.supplyTraceDefaults=function(t,e,r,n,i){var a,o=n.colorway||f.defaults,l=o[r%o.length];function c(r,n){return u.coerce(t,e,b.attributes,r,n)}var h=c(&quot;visible&quot;);c(&quot;type&quot;),c(&quot;name&quot;,n._traceWord+&quot; &quot;+i),c(&quot;uirevision&quot;,n.uirevision);var p=b.getModule(e);if(e._module=p,p){var d=p.basePlotModule,m=d.attr,g=d.attributes;if(m&amp;&amp;g){var v=n._subplots,y=&quot;&quot;;if(h||&quot;gl2d&quot;!==d.name){if(Array.isArray(m))for(a=0;a&lt;m.length;a++){var x=m[a],_=u.coerce(t,e,g,x);v[x]&amp;&amp;u.pushUnique(v[x],_),y+=_}else y=u.coerce(t,e,g,m);v[d.name]&amp;&amp;u.pushUnique(v[d.name],y)}}}return h&amp;&amp;(c(&quot;customdata&quot;),c(&quot;ids&quot;),c(&quot;meta&quot;),s.traceIs(e,&quot;showLegend&quot;)?(u.coerce(t,e,p.attributes.showlegend?p.attributes:b.attributes,&quot;showlegend&quot;),c(&quot;legendgroup&quot;),c(&quot;legendgrouptitle.text&quot;),c(&quot;legendrank&quot;),e._dfltShowLegend=!0):e._dfltShowLegend=!1,p&amp;&amp;p.supplyDefaults(t,e,l,n),s.traceIs(e,&quot;noOpacity&quot;)||c(&quot;opacity&quot;),s.traceIs(e,&quot;notLegendIsolatable&quot;)&amp;&amp;(e.visible=!!e.visible),s.traceIs(e,&quot;noHover&quot;)||(e.hovertemplate||u.coerceHoverinfo(t,e,n),&quot;parcats&quot;!==e.type&amp;&amp;s.getComponentMethod(&quot;fx&quot;,&quot;supplyDefaults&quot;)(t,e,l,n)),p&amp;&amp;p.selectPoints&amp;&amp;c(&quot;selectedpoints&quot;),b.supplyTransformDefaults(t,e,n)),e},b.hasMakesDataTransform=S,b.supplyTransformDefaults=function(t,e,r){if(e._length||S(t)){var n=r._globalTransforms||[],i=r._transformModules||[];if(Array.isArray(t.transforms)||0!==n.length)for(var a=t.transforms||[],o=n.concat(a),s=e.transforms=[],l=0;l&lt;o.length;l++){var c,f=o[l],h=f.type,p=_[h],d=!(f._module&amp;&amp;f._module===p),m=p&amp;&amp;&quot;function&quot;==typeof p.transform;p||u.warn(&quot;Unrecognized transform type &quot;+h+&quot;.&quot;),p&amp;&amp;p.supplyDefaults&amp;&amp;(d||m)?((c=p.supplyDefaults(f,e,r,t)).type=h,c._module=p,u.pushUnique(i,p)):c=u.extendFlat({},f),s.push(c)}}},b.supplyLayoutGlobalDefaults=function(t,e,r){function n(r,n){return u.coerce(t,e,b.layoutAttributes,r,n)}var i=t.template;u.isPlainObject(i)&amp;&amp;(e.template=i,e._template=i.layout,e._dataTemplate=i.data),n(&quot;autotypenumbers&quot;);var a=u.coerceFont(n,&quot;font&quot;),o=a.size;u.coerceFont(n,&quot;title.font&quot;,u.extendFlat({},a,{size:Math.round(1.4*o)})),n(&quot;title.text&quot;,e._dfltTitle.plot),n(&quot;title.xref&quot;),n(&quot;title.yref&quot;),n(&quot;title.x&quot;),n(&quot;title.y&quot;),n(&quot;title.xanchor&quot;),n(&quot;title.yanchor&quot;),n(&quot;title.pad.t&quot;),n(&quot;title.pad.r&quot;),n(&quot;title.pad.b&quot;),n(&quot;title.pad.l&quot;),n(&quot;uniformtext.mode&quot;)&amp;&amp;n(&quot;uniformtext.minsize&quot;),n(&quot;autosize&quot;,!(t.width&amp;&amp;t.height)),n(&quot;width&quot;),n(&quot;height&quot;),n(&quot;margin.l&quot;),n(&quot;margin.r&quot;),n(&quot;margin.t&quot;),n(&quot;margin.b&quot;),n(&quot;margin.pad&quot;),n(&quot;margin.autoexpand&quot;),t.width&amp;&amp;t.height&amp;&amp;b.sanitizeMargins(e),s.getComponentMethod(&quot;grid&quot;,&quot;sizeDefaults&quot;)(t,e),n(&quot;paper_bgcolor&quot;),n(&quot;separators&quot;,r.decimal+r.thousands),n(&quot;hidesources&quot;),n(&quot;colorway&quot;),n(&quot;datarevision&quot;);var l=n(&quot;uirevision&quot;);n(&quot;editrevision&quot;,l),n(&quot;selectionrevision&quot;,l),s.getComponentMethod(&quot;modebar&quot;,&quot;supplyLayoutDefaults&quot;)(t,e),s.getComponentMethod(&quot;shapes&quot;,&quot;supplyDrawNewShapeDefaults&quot;)(t,e,n),n(&quot;meta&quot;),u.isPlainObject(t.transition)&amp;&amp;(n(&quot;transition.duration&quot;),n(&quot;transition.easing&quot;),n(&quot;transition.ordering&quot;)),s.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;),s.getComponentMethod(&quot;fx&quot;,&quot;supplyLayoutGlobalDefaults&quot;)(t,e,n)},b.plotAutoSize=function(t,e,r){var n,i,a=t._context||{},s=a.frameMargins,l=u.isPlotDiv(t);if(l&amp;&amp;t.emit(&quot;plotly_autosize&quot;),a.fillFrame)n=window.innerWidth,i=window.innerHeight,document.body.style.overflow=&quot;hidden&quot;;else{var c=l?window.getComputedStyle(t):{};if(n=L(c.width)||L(c.maxWidth)||r.width,i=L(c.height)||L(c.maxHeight)||r.height,o(s)&amp;&amp;s&gt;0){var f=1-2*s;n=Math.round(f*n),i=Math.round(f*i)}}var h=b.layoutAttributes.width.min,p=b.layoutAttributes.height.min;n&lt;h&amp;&amp;(n=h),i&lt;p&amp;&amp;(i=p);var d=!e.width&amp;&amp;Math.abs(r.width-n)&gt;1,m=!e.height&amp;&amp;Math.abs(r.height-i)&gt;1;(m||d)&amp;&amp;(d&amp;&amp;(r.width=n),m&amp;&amp;(r.height=i)),t._initialAutoSize||(t._initialAutoSize={width:n,height:i}),b.sanitizeMargins(r)},b.supplyLayoutModuleDefaults=function(t,e,r,n){var i,a,o,l=s.componentsRegistry,c=e._basePlotModules,f=s.subplotsRegistry.cartesian;for(i in l)(o=l[i]).includeBasePlot&amp;&amp;o.includeBasePlot(t,e);for(var h in c.length||c.push(f),e._has(&quot;cartesian&quot;)&amp;&amp;(s.getComponentMethod(&quot;grid&quot;,&quot;contentDefaults&quot;)(t,e),f.finalizeSubplots(t,e)),e._subplots)e._subplots[h].sort(u.subplotSort);for(a=0;a&lt;c.length;a++)(o=c[a]).supplyLayoutDefaults&amp;&amp;o.supplyLayoutDefaults(t,e,r);var p=e._modules;for(a=0;a&lt;p.length;a++)(o=p[a]).supplyLayoutDefaults&amp;&amp;o.supplyLayoutDefaults(t,e,r);var d=e._transformModules;for(a=0;a&lt;d.length;a++)(o=d[a]).supplyLayoutDefaults&amp;&amp;o.supplyLayoutDefaults(t,e,r,n);for(i in l)(o=l[i]).supplyLayoutDefaults&amp;&amp;o.supplyLayoutDefaults(t,e,r)},b.purge=function(t){var e=t._fullLayout||{};void 0!==e._glcontainer&amp;&amp;(e._glcontainer.selectAll(&quot;.gl-canvas&quot;).remove(),e._glcontainer.remove(),e._glcanvas=null),e._modeBar&amp;&amp;e._modeBar.destroy(),t._transitionData&amp;&amp;(t._transitionData._interruptCallbacks&amp;&amp;(t._transitionData._interruptCallbacks.length=0),t._transitionData._animationRaf&amp;&amp;window.cancelAnimationFrame(t._transitionData._animationRaf)),u.clearThrottle(),u.clearResponsive(t),delete t.data,delete t.layout,delete t._fullData,delete t._fullLayout,delete t.calcdata,delete t.empty,delete t.fid,delete t.undoqueue,delete t.undonum,delete t.autoplay,delete t.changed,delete t._promises,delete t._redrawTimer,delete t._hmlumcount,delete t._hmpixcount,delete t._transitionData,delete t._transitioning,delete t._initialAutoSize,delete t._transitioningWithDuration,delete t._dragging,delete t._dragged,delete t._dragdata,delete t._hoverdata,delete t._snapshotInProgress,delete t._editing,delete t._mouseDownTime,delete t._legendMouseDownTime,t.removeAllListeners&amp;&amp;t.removeAllListeners()},b.style=function(t){var e,r=t._fullLayout._visibleModules,n=[];for(e=0;e&lt;r.length;e++){var i=r[e];i.style&amp;&amp;u.pushUnique(n,i.style)}for(e=0;e&lt;n.length;e++)n[e](t)},b.sanitizeMargins=function(t){if(t&amp;&amp;t.margin){var e,r=t.width,n=t.height,i=t.margin,a=r-(i.l+i.r),o=n-(i.t+i.b);a&lt;0&amp;&amp;(e=(r-1)/(i.l+i.r),i.l=Math.floor(e*i.l),i.r=Math.floor(e*i.r)),o&lt;0&amp;&amp;(e=(n-1)/(i.t+i.b),i.t=Math.floor(e*i.t),i.b=Math.floor(e*i.b))}},b.clearAutoMarginIds=function(t){t._fullLayout._pushmarginIds={}},b.allowAutoMargin=function(t,e){t._fullLayout._pushmarginIds[e]=1};b.autoMargin=function(t,e,r){var n=t._fullLayout,i=n.width,a=n.height,o=n.margin,s=u.constrain(i-o.l-o.r,2,64),l=u.constrain(a-o.t-o.b,2,64),c=Math.max(0,i-s),f=Math.max(0,a-l),h=n._pushmargin,p=n._pushmarginIds;if(!1!==o.autoexpand){if(r){var d=r.pad;if(void 0===d&amp;&amp;(d=Math.min(12,o.l,o.r,o.t,o.b)),c){var m=(r.l+r.r)/c;m&gt;1&amp;&amp;(r.l/=m,r.r/=m)}if(f){var g=(r.t+r.b)/f;g&gt;1&amp;&amp;(r.t/=g,r.b/=g)}var v=void 0!==r.xl?r.xl:r.x,y=void 0!==r.xr?r.xr:r.x,x=void 0!==r.yt?r.yt:r.y,_=void 0!==r.yb?r.yb:r.y;h[e]={l:{val:v,size:r.l+d},r:{val:y,size:r.r+d},b:{val:_,size:r.b+d},t:{val:x,size:r.t+d}},p[e]=1}else delete h[e],delete p[e];if(!n._replotting)return b.doAutoMargin(t)}},b.doAutoMargin=function(t){var e=t._fullLayout,r=e.width,n=e.height;e._size||(e._size={}),C(e);var i=e._size,a=e.margin,l=u.extendFlat({},i),c=a.l,f=a.r,h=a.t,d=a.b,m=e._pushmargin,g=e._pushmarginIds;if(!1!==e.margin.autoexpand){for(var v in m)g[v]||delete m[v];for(var y in m.base={l:{val:0,size:c},r:{val:1,size:f},t:{val:1,size:h},b:{val:0,size:d}},m){var x=m[y].l||{},_=m[y].b||{},w=x.val,T=x.size,k=_.val,A=_.size;for(var M in m){if(o(T)&amp;&amp;m[M].r){var S=m[M].r.val,E=m[M].r.size;if(S&gt;w){var L=(T*S+(E-r)*w)/(S-w),P=(E*(1-w)+(T-r)*(1-S))/(S-w);L+P&gt;c+f&amp;&amp;(c=L,f=P)}}if(o(A)&amp;&amp;m[M].t){var I=m[M].t.val,O=m[M].t.size;if(I&gt;k){var z=(A*I+(O-n)*k)/(I-k),D=(O*(1-k)+(A-n)*(1-I))/(I-k);z+D&gt;d+h&amp;&amp;(d=z,h=D)}}}}}var R=u.constrain(r-a.l-a.r,2,64),F=u.constrain(n-a.t-a.b,2,64),B=Math.max(0,r-R),N=Math.max(0,n-F);if(B){var j=(c+f)/B;j&gt;1&amp;&amp;(c/=j,f/=j)}if(N){var U=(d+h)/N;U&gt;1&amp;&amp;(d/=U,h/=U)}if(i.l=Math.round(c),i.r=Math.round(f),i.t=Math.round(h),i.b=Math.round(d),i.p=Math.round(a.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!e._replotting&amp;&amp;b.didMarginChange(l,i)){&quot;_redrawFromAutoMarginCount&quot;in e?e._redrawFromAutoMarginCount++:e._redrawFromAutoMarginCount=1;var V=3*(1+Object.keys(g).length);if(e._redrawFromAutoMarginCount&lt;V)return s.call(&quot;_doPlot&quot;,t);e._size=l,u.warn(&quot;Too many auto-margin redraws.&quot;)}!function(t){var e=p.list(t,&quot;&quot;,!0);[&quot;_adjustTickLabelsOverflow&quot;,&quot;_hideCounterAxisInsideTickLabels&quot;].forEach((function(t){for(var r=0;r&lt;e.length;r++){var n=e[r][t];n&amp;&amp;n()}}))}(t)};var P=[&quot;l&quot;,&quot;r&quot;,&quot;t&quot;,&quot;b&quot;,&quot;p&quot;,&quot;w&quot;,&quot;h&quot;];function I(t,e,r){var n=!1;var i=[b.previousPromises,function(){if(t._transitionData)return t._transitioning=!1,function(t){var e=Promise.resolve();if(!t)return e;for(;t.length;)e=e.then(t.shift());return e}(t._transitionData._interruptCallbacks)},r.prepareFn,b.rehover,function(){return t.emit(&quot;plotly_transitioning&quot;,[]),new Promise((function(i){t._transitioning=!0,e.duration&gt;0&amp;&amp;(t._transitioningWithDuration=!0),t._transitionData._interruptCallbacks.push((function(){n=!0})),r.redraw&amp;&amp;t._transitionData._interruptCallbacks.push((function(){return s.call(&quot;redraw&quot;,t)})),t._transitionData._interruptCallbacks.push((function(){t.emit(&quot;plotly_transitioninterrupted&quot;,[])}));var a=0,o=0;function l(){return a++,function(){o++,n||o!==a||function(e){if(!t._transitionData)return;(function(t){if(t)for(;t.length;)t.shift()})(t._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return s.call(&quot;redraw&quot;,t)})).then((function(){t._transitioning=!1,t._transitioningWithDuration=!1,t.emit(&quot;plotly_transitioned&quot;,[])})).then(e)}(i)}}r.runFn(l),setTimeout(l())}))}],a=u.syncOrAsync(i,t);return a&amp;&amp;a.then||(a=Promise.resolve()),a.then((function(){return t}))}b.didMarginChange=function(t,e){for(var r=0;r&lt;P.length;r++){var n=P[r],i=t[n],a=e[n];if(!o(i)||Math.abs(a-i)&gt;1)return!0}return!1},b.graphJson=function(t,e,r,n,i,a){(i&amp;&amp;e&amp;&amp;!t._fullData||i&amp;&amp;!e&amp;&amp;!t._fullLayout)&amp;&amp;b.supplyDefaults(t);var o=i?t._fullData:t.data,s=i?t._fullLayout:t.layout,l=(t._transitionData||{})._frames;function c(t,e){if(&quot;function&quot;==typeof t)return e?&quot;_function_&quot;:null;if(u.isPlainObject(t)){var n,i={};return Object.keys(t).sort().forEach((function(a){if(-1===[&quot;_&quot;,&quot;[&quot;].indexOf(a.charAt(0)))if(&quot;function&quot;!=typeof t[a]){if(&quot;keepdata&quot;===r){if(&quot;src&quot;===a.substr(a.length-3))return}else if(&quot;keepstream&quot;===r){if(&quot;string&quot;==typeof(n=t[a+&quot;src&quot;])&amp;&amp;n.indexOf(&quot;:&quot;)&gt;0&amp;&amp;!u.isPlainObject(t.stream))return}else if(&quot;keepall&quot;!==r&amp;&amp;&quot;string&quot;==typeof(n=t[a+&quot;src&quot;])&amp;&amp;n.indexOf(&quot;:&quot;)&gt;0)return;i[a]=c(t[a],e)}else e&amp;&amp;(i[a]=&quot;_function&quot;)})),i}return Array.isArray(t)?t.map((function(t){return c(t,e)})):u.isTypedArray(t)?u.simpleMap(t,u.identity):u.isJSDate(t)?u.ms2DateTimeLocal(+t):t}var f={data:(o||[]).map((function(t){var r=c(t);return e&amp;&amp;delete r.fit,r}))};if(!e&amp;&amp;(f.layout=c(s),i)){var h=s._size;f.layout.computed={margin:{b:h.b,l:h.l,r:h.r,t:h.t}}}return l&amp;&amp;(f.frames=c(l)),a&amp;&amp;(f.config=c(t._context,!0)),&quot;object&quot;===n?f:JSON.stringify(f)},b.modifyFrames=function(t,e){var r,n,i,a=t._transitionData._frames,o=t._transitionData._frameHash;for(r=0;r&lt;e.length;r++)switch((n=e[r]).type){case&quot;replace&quot;:i=n.value;var s=(a[n.index]||{}).name,l=i.name;a[n.index]=o[l]=i,l!==s&amp;&amp;(delete o[s],o[l]=i);break;case&quot;insert&quot;:o[(i=n.value).name]=i,a.splice(n.index,0,i);break;case&quot;delete&quot;:delete o[(i=a[n.index]).name],a.splice(n.index,1)}return Promise.resolve()},b.computeFrame=function(t,e){var r,n,i,a,o=t._transitionData._frameHash;if(!e)throw new Error(&quot;computeFrame must be given a string frame name&quot;);var s=o[e.toString()];if(!s)return!1;for(var l=[s],c=[s.name];s.baseframe&amp;&amp;(s=o[s.baseframe.toString()])&amp;&amp;-1===c.indexOf(s.name);)l.push(s),c.push(s.name);for(var u={};s=l.pop();)if(s.layout&amp;&amp;(u.layout=b.extendLayout(u.layout,s.layout)),s.data){if(u.data||(u.data=[]),!(n=s.traces))for(n=[],r=0;r&lt;s.data.length;r++)n[r]=r;for(u.traces||(u.traces=[]),r=0;r&lt;s.data.length;r++)null!=(i=n[r])&amp;&amp;(-1===(a=u.traces.indexOf(i))&amp;&amp;(a=u.data.length,u.traces[a]=i),u.data[a]=b.extendTrace(u.data[a],s.data[r]))}return u},b.recomputeFrameHash=function(t){for(var e=t._transitionData._frameHash={},r=t._transitionData._frames,n=0;n&lt;r.length;n++){var i=r[n];i&amp;&amp;i.name&amp;&amp;(e[i.name]=i)}},b.extendObjectWithContainers=function(t,e,r){var n,i,a,o,s,l,c,f=u.extendDeepNoArrays({},e||{}),h=u.expandObjectPaths(f),p={};if(r&amp;&amp;r.length)for(a=0;a&lt;r.length;a++)void 0===(i=(n=u.nestedProperty(h,r[a])).get())?u.nestedProperty(p,r[a]).set(null):(n.set(null),u.nestedProperty(p,r[a]).set(i));if(t=u.extendDeepNoArrays(t||{},h),r&amp;&amp;r.length)for(a=0;a&lt;r.length;a++)if(l=u.nestedProperty(p,r[a]).get()){for(c=(s=u.nestedProperty(t,r[a])).get(),Array.isArray(c)||(c=[],s.set(c)),o=0;o&lt;l.length;o++){var d=l[o];c[o]=null===d?null:b.extendObjectWithContainers(c[o],d)}s.set(c)}return t},b.dataArrayContainers=[&quot;transforms&quot;,&quot;dimensions&quot;],b.layoutArrayContainers=s.layoutArrayContainers,b.extendTrace=function(t,e){return b.extendObjectWithContainers(t,e,b.dataArrayContainers)},b.extendLayout=function(t,e){return b.extendObjectWithContainers(t,e,b.layoutArrayContainers)},b.transition=function(t,e,r,n,i,a){var o={redraw:i.redraw},s={},l=[];return o.prepareFn=function(){for(var i=Array.isArray(e)?e.length:0,a=n.slice(0,i),o=0;o&lt;a.length;o++){var c=a[o],f=t._fullData[c]._module;if(f){if(f.animatable){var h=f.basePlotModule.name;s[h]||(s[h]=[]),s[h].push(c)}t.data[a[o]]=b.extendTrace(t.data[a[o]],e[o])}}var p=u.expandObjectPaths(u.extendDeepNoArrays({},r)),d=/^[xy]axis[0-9]*$/;for(var m in p)d.test(m)&amp;&amp;delete p[m].range;b.extendLayout(t.layout,p),delete t.calcdata,b.supplyDefaults(t),b.doCalcdata(t);var g=u.expandObjectPaths(r);if(g){var v=t._fullLayout._plots;for(var y in v){var x=v[y],_=x.xaxis,w=x.yaxis,T=_.range.slice(),k=w.range.slice(),A=null,M=null,S=null,E=null;Array.isArray(g[_._name+&quot;.range&quot;])?A=g[_._name+&quot;.range&quot;].slice():Array.isArray((g[_._name]||{}).range)&amp;&amp;(A=g[_._name].range.slice()),Array.isArray(g[w._name+&quot;.range&quot;])?M=g[w._name+&quot;.range&quot;].slice():Array.isArray((g[w._name]||{}).range)&amp;&amp;(M=g[w._name].range.slice()),T&amp;&amp;A&amp;&amp;(_.r2l(T[0])!==_.r2l(A[0])||_.r2l(T[1])!==_.r2l(A[1]))&amp;&amp;(S={xr0:T,xr1:A}),k&amp;&amp;M&amp;&amp;(w.r2l(k[0])!==w.r2l(M[0])||w.r2l(k[1])!==w.r2l(M[1]))&amp;&amp;(E={yr0:k,yr1:M}),(S||E)&amp;&amp;l.push(u.extendFlat({plotinfo:x},S,E))}}return Promise.resolve()},o.runFn=function(e){var n,i,o=t._fullLayout._basePlotModules,c=l.length;if(r)for(i=0;i&lt;o.length;i++)o[i].transitionAxes&amp;&amp;o[i].transitionAxes(t,l,a,e);for(var f in c?((n=u.extendFlat({},a)).duration=0,delete s.cartesian):n=a,s){var h=s[f];t._fullData[h[0]]._module.basePlotModule.plot(t,h,n,e)}},I(t,a,o)},b.transitionFromReact=function(t,e,r,n){var i=t._fullLayout,a=i.transition,o={},s=[];return o.prepareFn=function(){var t=i._plots;for(var a in o.redraw=!1,&quot;some&quot;===e.anim&amp;&amp;(o.redraw=!0),&quot;some&quot;===r.anim&amp;&amp;(o.redraw=!0),t){var l=t[a],c=l.xaxis,f=l.yaxis,h=n[c._name].range.slice(),p=n[f._name].range.slice(),d=c.range.slice(),m=f.range.slice();c.setScale(),f.setScale();var g=null,v=null;c.r2l(h[0])===c.r2l(d[0])&amp;&amp;c.r2l(h[1])===c.r2l(d[1])||(g={xr0:h,xr1:d}),f.r2l(p[0])===f.r2l(m[0])&amp;&amp;f.r2l(p[1])===f.r2l(m[1])||(v={yr0:p,yr1:m}),(g||v)&amp;&amp;s.push(u.extendFlat({plotinfo:l},g,v))}return Promise.resolve()},o.runFn=function(r){for(var n,i,o,l=t._fullData,c=t._fullLayout._basePlotModules,f=[],h=0;h&lt;l.length;h++)f.push(h);function p(){if(t._fullLayout)for(var e=0;e&lt;c.length;e++)c[e].transitionAxes&amp;&amp;c[e].transitionAxes(t,s,n,r)}function d(){if(t._fullLayout)for(var e=0;e&lt;c.length;e++)c[e].plot(t,o,i,r)}s.length&amp;&amp;e.anim?&quot;traces first&quot;===a.ordering?(n=u.extendFlat({},a,{duration:0}),o=f,i=a,setTimeout(p,a.duration),d()):(n=a,o=null,i=u.extendFlat({},a,{duration:0}),setTimeout(d,n.duration),p()):s.length?(n=a,p()):e.anim&amp;&amp;(o=f,i=a,d())},I(t,a,o)},b.doCalcdata=function(t,e){var r,n,i,a,o=p.list(t),c=t._fullData,f=t._fullLayout,d=new Array(c.length),m=(t.calcdata||[]).slice();for(t.calcdata=d,f._numBoxes=0,f._numViolins=0,f._violinScaleGroupStats={},t._hmpixcount=0,t._hmlumcount=0,f._piecolormap={},f._sunburstcolormap={},f._treemapcolormap={},f._iciclecolormap={},f._funnelareacolormap={},i=0;i&lt;c.length;i++)Array.isArray(e)&amp;&amp;-1===e.indexOf(i)&amp;&amp;(d[i]=m[i]);for(i=0;i&lt;c.length;i++)(r=c[i])._arrayAttrs=l.findArrayAttributes(r),r._extremes={};var g=f._subplots.polar||[];for(i=0;i&lt;g.length;i++)o.push(f[g[i]].radialaxis,f[g[i]].angularaxis);for(var v in f._colorAxes){var y=f[v];!1!==y.cauto&amp;&amp;(delete y.cmin,delete y.cmax)}var x=!1;function b(e){if(r=c[e],n=r._module,!0===r.visible&amp;&amp;r.transforms){if(n&amp;&amp;n.calc){var i=n.calc(t,r);i[0]&amp;&amp;i[0].t&amp;&amp;i[0].t._scene&amp;&amp;delete i[0].t._scene.dirty}for(a=0;a&lt;r.transforms.length;a++){var o=r.transforms[a];(n=_[o.type])&amp;&amp;n.calcTransform&amp;&amp;(r._hasCalcTransform=!0,x=!0,n.calcTransform(t,r,o))}}}function w(e,i){if(r=c[e],!!(n=r._module).isContainer===i){var o=[];if(!0===r.visible&amp;&amp;0!==r._length){delete r._indexToPoints;var s=r.transforms||[];for(a=s.length-1;a&gt;=0;a--)if(s[a].enabled){r._indexToPoints=s[a]._indexToPoints;break}n&amp;&amp;n.calc&amp;&amp;(o=n.calc(t,r))}Array.isArray(o)&amp;&amp;o[0]||(o=[{x:h,y:h}]),o[0].t||(o[0].t={}),o[0].trace=r,d[e]=o}}for(z(o,c,f),i=0;i&lt;c.length;i++)w(i,!0);for(i=0;i&lt;c.length;i++)b(i);for(x&amp;&amp;z(o,c,f),i=0;i&lt;c.length;i++)w(i,!0);for(i=0;i&lt;c.length;i++)w(i,!1);D(t);var T=function(t,e){var r,n,i,a,o,l=[];function c(t,r,n){var i=r._id.charAt(0);if(&quot;histogram2dcontour&quot;===t){var a=r._counterAxes[0],o=p.getFromId(e,a),s=&quot;x&quot;===i||&quot;x&quot;===a&amp;&amp;&quot;category&quot;===o.type,l=&quot;y&quot;===i||&quot;y&quot;===a&amp;&amp;&quot;category&quot;===o.type;return function(t,e){return 0===t||0===e||s&amp;&amp;t===n[e].length-1||l&amp;&amp;e===n.length-1?-1:(&quot;y&quot;===i?e:t)-1}}return function(t,e){return&quot;y&quot;===i?e:t}}var f={min:function(t){return u.aggNums(Math.min,null,t)},max:function(t){return u.aggNums(Math.max,null,t)},sum:function(t){return u.aggNums((function(t,e){return t+e}),null,t)},total:function(t){return u.aggNums((function(t,e){return t+e}),null,t)},mean:function(t){return u.mean(t)},median:function(t){return u.median(t)}};for(r=0;r&lt;t.length;r++){var h=t[r];if(&quot;category&quot;===h.type){var d=h.categoryorder.match(O);if(d){var m=d[1],g=d[2],v=h._id.charAt(0),y=&quot;x&quot;===v,x=[];for(n=0;n&lt;h._categories.length;n++)x.push([h._categories[n],[]]);for(n=0;n&lt;h._traceIndices.length;n++){var b=h._traceIndices[n],_=e._fullData[b];if(!0===_.visible){var w=_.type;s.traceIs(_,&quot;histogram&quot;)&amp;&amp;(delete _._xautoBinFinished,delete _._yautoBinFinished);var T=&quot;splom&quot;===w,k=&quot;scattergl&quot;===w,A=e.calcdata[b];for(i=0;i&lt;A.length;i++){var M,S,E=A[i];if(T){var L=_._axesDim[h._id];if(!y){var C=_._diag[L][0];C&amp;&amp;(h=e._fullLayout[p.id2name(C)])}var P=E.trace.dimensions[L].values;for(a=0;a&lt;P.length;a++)for(M=h._categoriesMap[P[a]],o=0;o&lt;E.trace.dimensions.length;o++)if(o!==L){var I=E.trace.dimensions[o];x[M][1].push(I.values[a])}}else if(k){for(a=0;a&lt;E.t.x.length;a++)y?(M=E.t.x[a],S=E.t.y[a]):(M=E.t.y[a],S=E.t.x[a]),x[M][1].push(S);E.t&amp;&amp;E.t._scene&amp;&amp;delete E.t._scene.dirty}else if(E.hasOwnProperty(&quot;z&quot;)){S=E.z;var z=c(_.type,h,S);for(a=0;a&lt;S.length;a++)for(o=0;o&lt;S[a].length;o++)(M=z(o,a))+1&amp;&amp;x[M][1].push(S[a][o])}else for(void 0===(M=E.p)&amp;&amp;(M=E[v]),void 0===(S=E.s)&amp;&amp;(S=E.v),void 0===S&amp;&amp;(S=y?E.y:E.x),Array.isArray(S)||(S=void 0===S?[]:[S]),a=0;a&lt;S.length;a++)x[M][1].push(S[a])}}}h._categoriesValue=x;var D=[];for(n=0;n&lt;x.length;n++)D.push([x[n][0],f[m](x[n][1])]);D.sort((function(t,e){return t[1]-e[1]})),h._categoriesAggregatedValue=D,h._initialCategories=D.map((function(t){return t[0]})),&quot;descending&quot;===g&amp;&amp;h._initialCategories.reverse(),l=l.concat(h.sortByInitialCategories())}}}return l}(o,t);if(T.length){for(f._numBoxes=0,f._numViolins=0,i=0;i&lt;T.length;i++)w(T[i],!0);for(i=0;i&lt;T.length;i++)w(T[i],!1);D(t)}s.getComponentMethod(&quot;fx&quot;,&quot;calc&quot;)(t),s.getComponentMethod(&quot;errorbars&quot;,&quot;calc&quot;)(t)};var O=/(total|sum|min|max|mean|median) (ascending|descending)/;function z(t,e,r){var n={};function i(t){t.clearCalc(),&quot;multicategory&quot;===t.type&amp;&amp;t.setupMultiCategory(e),n[t._id]=1}u.simpleMap(t,i);for(var a=r._axisMatchGroups||[],o=0;o&lt;a.length;o++)for(var s in a[o])n[s]||i(r[p.id2name(s)])}function D(t){var e,r,n,i=t._fullLayout,a=i._visibleModules,o={};for(r=0;r&lt;a.length;r++){var s=a[r],l=s.crossTraceCalc;if(l){var c=s.basePlotModule.name;o[c]?u.pushUnique(o[c],l):o[c]=[l]}}for(n in o){var f=o[n],h=i._subplots[n];if(Array.isArray(h))for(e=0;e&lt;h.length;e++){var p=h[e],d=&quot;cartesian&quot;===n?i._plots[p]:i[p];for(r=0;r&lt;f.length;r++)f[r](t,d,p)}else for(r=0;r&lt;f.length;r++)f[r](t)}}b.rehover=function(t){t._fullLayout._rehover&amp;&amp;t._fullLayout._rehover()},b.redrag=function(t){t._fullLayout._redrag&amp;&amp;t._fullLayout._redrag()},b.generalUpdatePerTraceModule=function(t,e,r,n){var i,a=e.traceHash,o={};for(i=0;i&lt;r.length;i++){var s=r[i],l=s[0].trace;l.visible&amp;&amp;(o[l.type]=o[l.type]||[],o[l.type].push(s))}for(var c in a)if(!o[c]){var f=a[c][0];f[0].trace.visible=!1,o[c]=[f]}for(var h in o){var p=o[h];p[0][0].trace._module.plot(t,e,u.filterVisible(p),n)}e.traceHash=o},b.plotBasePlot=function(t,e,r,n,i){var a=s.getModule(t),o=v(e.calcdata,a)[0];a.plot(e,o,n,i)},b.cleanBasePlot=function(t,e,r,n,i){var a=i._has&amp;&amp;i._has(t),o=r._has&amp;&amp;r._has(t);a&amp;&amp;!o&amp;&amp;i[&quot;_&quot;+t+&quot;layer&quot;].selectAll(&quot;g.trace&quot;).remove()}},{&quot;../components/color&quot;:366,&quot;../constants/numerical&quot;:479,&quot;../lib&quot;:503,&quot;../plot_api/plot_schema&quot;:542,&quot;../plot_api/plot_template&quot;:543,&quot;../plots/get_data&quot;:593,&quot;../registry&quot;:638,&quot;./animation_attributes&quot;:548,&quot;./attributes&quot;:550,&quot;./cartesian/axis_ids&quot;:558,&quot;./cartesian/handle_outline&quot;:565,&quot;./command&quot;:583,&quot;./font_attributes&quot;:585,&quot;./frame_attributes&quot;:586,&quot;./layout_attributes&quot;:610,&quot;@plotly/d3&quot;:58,&quot;d3-format&quot;:112,&quot;d3-time-format&quot;:120,&quot;fast-isnumeric&quot;:190}],620:[function(t,e,r){&quot;use strict&quot;;e.exports={attr:&quot;subplot&quot;,name:&quot;polar&quot;,axisNames:[&quot;angularaxis&quot;,&quot;radialaxis&quot;],axisName2dataArray:{angularaxis:&quot;theta&quot;,radialaxis:&quot;r&quot;},layerNames:[&quot;draglayer&quot;,&quot;plotbg&quot;,&quot;backplot&quot;,&quot;angular-grid&quot;,&quot;radial-grid&quot;,&quot;frontplot&quot;,&quot;angular-line&quot;,&quot;radial-line&quot;,&quot;angular-axis&quot;,&quot;radial-axis&quot;],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}},{}],621:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/polygon&quot;).tester,a=n.findIndexOfMin,o=n.isAngleInsideSector,s=n.angleDelta,l=n.angleDist;function c(t,e,r,n){var i,a,o=n[0],s=n[1],l=f(Math.sin(e)-Math.sin(t)),c=f(Math.cos(e)-Math.cos(t)),u=Math.tan(r),h=f(1/u),p=l/c,d=s-p*o;return h?l&amp;&amp;c?a=u*(i=d/(u-p)):c?(i=s*h,a=s):(i=o,a=o*u):l&amp;&amp;c?(i=0,a=d):c?(i=0,a=s):i=a=NaN,[i,a]}function u(t,e,r,i){return n.isFullCircle([e,r])?function(t,e){var r,n=e.length,i=new Array(n+1);for(r=0;r&lt;n;r++){var a=e[r];i[r]=[t*Math.cos(a),t*Math.sin(a)]}return i[r]=i[0].slice(),i}(t,i):function(t,e,r,i){var s,u,f=i.length,h=[];function p(e){return[t*Math.cos(e),t*Math.sin(e)]}function d(t,e,r){return c(t,e,r,p(t))}function m(t){return n.mod(t,f)}function g(t){return o(t,[e,r])}var v=a(i,(function(t){return g(t)?l(t,e):1/0})),y=d(i[v],i[m(v-1)],e);for(h.push(y),s=v,u=0;u&lt;f;s++,u++){var x=i[m(s)];if(!g(x))break;h.push(p(x))}var b=a(i,(function(t){return g(t)?l(t,r):1/0})),_=d(i[b],i[m(b+1)],r);return h.push(_),h.push([0,0]),h.push(h[0].slice()),h}(t,e,r,i)}function f(t){return Math.abs(t)&gt;1e-10?t:0}function h(t,e,r){e=e||0,r=r||0;for(var n=t.length,i=new Array(n),a=0;a&lt;n;a++){var o=t[a];i[a]=[e+o[0],r-o[1]]}return i}e.exports={isPtInsidePolygon:function(t,e,r,n,a){if(!o(e,n))return!1;var s,l;r[0]&lt;r[1]?(s=r[0],l=r[1]):(s=r[1],l=r[0]);var c=i(u(s,n[0],n[1],a)),f=i(u(l,n[0],n[1],a)),h=[t*Math.cos(e),t*Math.sin(e)];return f.contains(h)&amp;&amp;!c.contains(h)},findPolygonOffset:function(t,e,r,n){for(var i=1/0,a=1/0,o=u(t,e,r,n),s=0;s&lt;o.length;s++){var l=o[s];i=Math.min(i,l[0]),a=Math.min(a,-l[1])}return[i,a]},findEnclosingVertexAngles:function(t,e){var r=a(e,(function(e){var r=s(e,t);return r&gt;0?r:1/0})),i=n.mod(r+1,e.length);return[e[r],e[i]]},findIntersectionXY:c,findXYatLength:function(t,e,r,n){var i=-e*r,a=e*e+1,o=2*(e*i-r),s=i*i+r*r-t*t,l=Math.sqrt(o*o-4*a*s),c=(-o+l)/(2*a),u=(-o-l)/(2*a);return[[c,e*c+i+n],[u,e*u+i+n]]},clampTiny:f,pathPolygon:function(t,e,r,n,i,a){return&quot;M&quot;+h(u(t,e,r,n),i,a).join(&quot;L&quot;)},pathPolygonAnnulus:function(t,e,r,n,i,a,o){var s,l;t&lt;e?(s=t,l=e):(s=e,l=t);var c=h(u(s,r,n,i),a,o);return&quot;M&quot;+h(u(l,r,n,i),a,o).reverse().join(&quot;L&quot;)+&quot;M&quot;+c.join(&quot;L&quot;)}}},{&quot;../../lib&quot;:503,&quot;../../lib/polygon&quot;:515}],622:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../get_data&quot;).getSubplotCalcData,i=t(&quot;../../lib&quot;).counterRegex,a=t(&quot;./polar&quot;),o=t(&quot;./constants&quot;),s=o.attr,l=o.name,c=i(l),u={};u[s]={valType:&quot;subplotid&quot;,dflt:l,editType:&quot;calc&quot;},e.exports={attr:s,name:l,idRoot:l,idRegex:c,attrRegex:c,attributes:u,layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots[l],o=0;o&lt;i.length;o++){var s=i[o],c=n(r,l,s),u=e[s]._subplot;u||(u=a(t,s),e[s]._subplot=u),u.plot(c,e,t._promises)}},clean:function(t,e,r,n){for(var i=n._subplots[l]||[],a=n._has&amp;&amp;n._has(&quot;gl&quot;),o=e._has&amp;&amp;e._has(&quot;gl&quot;),s=a&amp;&amp;!o,c=0;c&lt;i.length;c++){var u=i[c],f=n[u]._subplot;if(!e[u]&amp;&amp;f)for(var h in f.framework.remove(),f.layers[&quot;radial-axis-title&quot;].remove(),f.clipPaths)f.clipPaths[h].remove();s&amp;&amp;f._scene&amp;&amp;(f._scene.destroy(),f._scene=null)}},toSVG:t(&quot;../cartesian&quot;).toSVG}},{&quot;../../lib&quot;:503,&quot;../cartesian&quot;:568,&quot;../get_data&quot;:593,&quot;./constants&quot;:620,&quot;./layout_attributes&quot;:623,&quot;./layout_defaults&quot;:624,&quot;./polar&quot;:625}],623:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../cartesian/layout_attributes&quot;),a=t(&quot;../domain&quot;).attributes,o=t(&quot;../../lib&quot;).extendFlat,s=t(&quot;../../plot_api/edit_types&quot;).overrideAll,l=s({color:i.color,showline:o({},i.showline,{dflt:!0}),linecolor:i.linecolor,linewidth:i.linewidth,showgrid:o({},i.showgrid,{dflt:!0}),gridcolor:i.gridcolor,gridwidth:i.gridwidth},&quot;plot&quot;,&quot;from-root&quot;),c=s({tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,showtickprefix:i.showtickprefix,tickprefix:i.tickprefix,showticksuffix:i.showticksuffix,ticksuffix:i.ticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickfont:i.tickfont,tickangle:i.tickangle,tickformat:i.tickformat,tickformatstops:i.tickformatstops,layer:i.layer},&quot;plot&quot;,&quot;from-root&quot;),u={visible:o({},i.visible,{dflt:!0}),type:o({},i.type,{values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;]}),autotypenumbers:i.autotypenumbers,autorange:o({},i.autorange,{editType:&quot;plot&quot;}),rangemode:{valType:&quot;enumerated&quot;,values:[&quot;tozero&quot;,&quot;nonnegative&quot;,&quot;normal&quot;],dflt:&quot;tozero&quot;,editType:&quot;calc&quot;},range:o({},i.range,{items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],editType:&quot;plot&quot;}),categoryorder:i.categoryorder,categoryarray:i.categoryarray,angle:{valType:&quot;angle&quot;,editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;],dflt:&quot;clockwise&quot;,editType:&quot;plot&quot;},title:{text:o({},i.title.text,{editType:&quot;plot&quot;,dflt:&quot;&quot;}),font:o({},i.title.font,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},hoverformat:i.hoverformat,uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;,_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}};o(u,l,c);var f={visible:o({},i.visible,{dflt:!0}),type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;category&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;,_noTemplating:!0},autotypenumbers:i.autotypenumbers,categoryorder:i.categoryorder,categoryarray:i.categoryarray,thetaunit:{valType:&quot;enumerated&quot;,values:[&quot;radians&quot;,&quot;degrees&quot;],dflt:&quot;degrees&quot;,editType:&quot;calc&quot;},period:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0},direction:{valType:&quot;enumerated&quot;,values:[&quot;counterclockwise&quot;,&quot;clockwise&quot;],dflt:&quot;counterclockwise&quot;,editType:&quot;calc&quot;},rotation:{valType:&quot;angle&quot;,editType:&quot;calc&quot;},hoverformat:i.hoverformat,uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;};o(f,l,c),e.exports={domain:a({name:&quot;polar&quot;,editType:&quot;plot&quot;}),sector:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],dflt:[0,360],editType:&quot;plot&quot;},hole:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;plot&quot;},bgcolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;,dflt:n.background},radialaxis:u,angularaxis:f,gridshape:{valType:&quot;enumerated&quot;,values:[&quot;circular&quot;,&quot;linear&quot;],dflt:&quot;circular&quot;,editType:&quot;plot&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;}},{&quot;../../components/color/attributes&quot;:365,&quot;../../lib&quot;:503,&quot;../../plot_api/edit_types&quot;:536,&quot;../cartesian/layout_attributes&quot;:569,&quot;../domain&quot;:584}],624:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;../subplot_defaults&quot;),s=t(&quot;../get_data&quot;).getSubplotData,l=t(&quot;../cartesian/tick_value_defaults&quot;),c=t(&quot;../cartesian/tick_mark_defaults&quot;),u=t(&quot;../cartesian/tick_label_defaults&quot;),f=t(&quot;../cartesian/prefix_suffix_defaults&quot;),h=t(&quot;../cartesian/category_order_defaults&quot;),p=t(&quot;../cartesian/line_grid_defaults&quot;),d=t(&quot;../cartesian/axis_autotype&quot;),m=t(&quot;./layout_attributes&quot;),g=t(&quot;./set_convert&quot;),v=t(&quot;./constants&quot;),y=v.axisNames;function x(t,e,r,o){var d=r(&quot;bgcolor&quot;);o.bgColor=i.combine(d,o.paper_bgcolor);var x=r(&quot;sector&quot;);r(&quot;hole&quot;);var _,w=s(o.fullData,v.name,o.id),T=o.layoutOut;function k(t,e){return r(_+&quot;.&quot;+t,e)}for(var A=0;A&lt;y.length;A++){_=y[A],n.isPlainObject(t[_])||(t[_]={});var M=t[_],S=a.newContainer(e,_);S._id=S._name=_,S._attr=o.id+&quot;.&quot;+_,S._traceIndices=w.map((function(t){return t._expandedIndex}));var E=v.axisName2dataArray[_],L=b(M,S,k,w,E,o);h(M,S,k,{axData:w,dataAttr:E});var C=k(&quot;visible&quot;);switch(g(S,e,T),k(&quot;uirevision&quot;,e.uirevision),S._m=1,_){case&quot;radialaxis&quot;:var P=k(&quot;autorange&quot;,!S.isValidRange(M.range));M.autorange=P,!P||&quot;linear&quot;!==L&amp;&amp;&quot;-&quot;!==L||k(&quot;rangemode&quot;),&quot;reversed&quot;===P&amp;&amp;(S._m=-1),k(&quot;range&quot;),S.cleanRange(&quot;range&quot;,{dfltRange:[0,1]});break;case&quot;angularaxis&quot;:if(&quot;date&quot;===L){n.log(&quot;Polar plots do not support date angular axes yet.&quot;);for(var I=0;I&lt;w.length;I++)w[I].visible=!1;L=M.type=S.type=&quot;linear&quot;}k(&quot;linear&quot;===L?&quot;thetaunit&quot;:&quot;period&quot;);var O=k(&quot;direction&quot;);k(&quot;rotation&quot;,{counterclockwise:0,clockwise:90}[O])}if(f(M,S,k,S.type,{tickSuffixDflt:&quot;degrees&quot;===S.thetaunit?&quot;\xb0&quot;:void 0}),C){var z,D,R,F,B=o.font||{};D=(z=k(&quot;color&quot;))===M.color?z:B.color,R=B.size,F=B.family,l(M,S,k,S.type),u(M,S,k,S.type,{font:{color:D,size:R,family:F}}),c(M,S,k,{outerTicks:!0}),p(M,S,k,{dfltColor:z,bgColor:o.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:m[_]}),k(&quot;layer&quot;),&quot;radialaxis&quot;===_&amp;&amp;(k(&quot;side&quot;),k(&quot;angle&quot;,x[0]),k(&quot;title.text&quot;),n.coerceFont(k,&quot;title.font&quot;,{color:D,size:n.bigFont(R),family:F}))}&quot;category&quot;!==L&amp;&amp;k(&quot;hoverformat&quot;),S._input=M}&quot;category&quot;===e.angularaxis.type&amp;&amp;r(&quot;gridshape&quot;)}function b(t,e,r,n,i,a){var o=r(&quot;autotypenumbers&quot;,a.autotypenumbersDflt);if(&quot;-&quot;===r(&quot;type&quot;)){for(var s,l=0;l&lt;n.length;l++)if(n[l].visible){s=n[l];break}s&amp;&amp;s[i]&amp;&amp;(e.type=d(s[i],&quot;gregorian&quot;,{noMultiCategory:!0,autotypenumbers:o})),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:t.type=e.type}return e.type}e.exports=function(t,e,r){o(t,e,r,{type:v.name,attributes:m,handleDefaults:x,font:e.font,autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,fullData:r,layoutOut:e})}},{&quot;../../components/color&quot;:366,&quot;../../lib&quot;:503,&quot;../../plot_api/plot_template&quot;:543,&quot;../cartesian/axis_autotype&quot;:555,&quot;../cartesian/category_order_defaults&quot;:559,&quot;../cartesian/line_grid_defaults&quot;:571,&quot;../cartesian/prefix_suffix_defaults&quot;:573,&quot;../cartesian/tick_label_defaults&quot;:578,&quot;../cartesian/tick_mark_defaults&quot;:579,&quot;../cartesian/tick_value_defaults&quot;:580,&quot;../get_data&quot;:593,&quot;../subplot_defaults&quot;:632,&quot;./constants&quot;:620,&quot;./layout_attributes&quot;:623,&quot;./set_convert&quot;:626}],625:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=o.strRotate,l=o.strTranslate,c=t(&quot;../../components/color&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../plots&quot;),h=t(&quot;../../plots/cartesian/axes&quot;),p=t(&quot;../cartesian/set_convert&quot;),d=t(&quot;./set_convert&quot;),m=t(&quot;../cartesian/autorange&quot;).doAutoRange,g=t(&quot;../cartesian/dragbox&quot;),v=t(&quot;../../components/dragelement&quot;),y=t(&quot;../../components/fx&quot;),x=t(&quot;../../components/titles&quot;),b=t(&quot;../cartesian/select&quot;).prepSelect,_=t(&quot;../cartesian/select&quot;).selectOnClick,w=t(&quot;../cartesian/select&quot;).clearSelect,T=t(&quot;../../lib/setcursor&quot;),k=t(&quot;../../lib/clear_gl_canvases&quot;),A=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,M=t(&quot;../../constants/alignment&quot;).MID_SHIFT,S=t(&quot;./constants&quot;),E=t(&quot;./helpers&quot;),L=t(&quot;../smith/helpers&quot;),C=L.smith,P=L.reactanceArc,I=L.resistanceArc,O=L.smithTransform,z=o._,D=o.mod,R=o.deg2rad,F=o.rad2deg;function B(t,e,r){this.isSmith=r||!1,this.id=e,this.gd=t,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var n=t._fullLayout,i=&quot;clip&quot;+n._uid+e;this.clipIds.forTraces=i+&quot;-for-traces&quot;,this.clipPaths.forTraces=n._clips.append(&quot;clipPath&quot;).attr(&quot;id&quot;,this.clipIds.forTraces),this.clipPaths.forTraces.append(&quot;path&quot;),this.framework=n[&quot;_&quot;+(r?&quot;smith&quot;:&quot;polar&quot;)+&quot;layer&quot;].append(&quot;g&quot;).attr(&quot;class&quot;,e),this.getHole=function(t){return this.isSmith?0:t.hole},this.getSector=function(t){return this.isSmith?[0,360]:t.sector},this.getRadial=function(t){return this.isSmith?t.realaxis:t.radialaxis},this.getAngular=function(t){return this.isSmith?t.imaginaryaxis:t.angularaxis},r||(this.radialTickLayout=null,this.angularTickLayout=null)}var N=B.prototype;function j(t){var e=t.ticks+String(t.ticklen)+String(t.showticklabels);return&quot;side&quot;in t&amp;&amp;(e+=t.side),e}function U(t,e){return e[o.findIndexOfMin(e,(function(e){return o.angleDist(t,e)}))]}function V(t,e,r){return e?(t.attr(&quot;display&quot;,null),t.attr(r)):t&amp;&amp;t.attr(&quot;display&quot;,&quot;none&quot;),t}e.exports=function(t,e,r){return new B(t,e,r)},N.plot=function(t,e){for(var r=e[this.id],n=!1,i=0;i&lt;t.length;i++){if(!1===t[i][0].trace.cliponaxis){n=!0;break}}this._hasClipOnAxisFalse=n,this.updateLayers(e,r),this.updateLayout(e,r),f.generalUpdatePerTraceModule(this.gd,this,t,r),this.updateFx(e,r),this.isSmith&amp;&amp;(delete r.realaxis.range,delete r.imaginaryaxis.range)},N.updateLayers=function(t,e){var r=this.isSmith,i=this.layers,a=this.getRadial(e),o=this.getAngular(e),s=S.layerNames,l=s.indexOf(&quot;frontplot&quot;),c=s.slice(0,l),u=&quot;below traces&quot;===o.layer,f=&quot;below traces&quot;===a.layer;u&amp;&amp;c.push(&quot;angular-line&quot;),f&amp;&amp;c.push(&quot;radial-line&quot;),u&amp;&amp;c.push(&quot;angular-axis&quot;),f&amp;&amp;c.push(&quot;radial-axis&quot;),c.push(&quot;frontplot&quot;),u||c.push(&quot;angular-line&quot;),f||c.push(&quot;radial-line&quot;),u||c.push(&quot;angular-axis&quot;),f||c.push(&quot;radial-axis&quot;);var h=(r?&quot;smith&quot;:&quot;polar&quot;)+&quot;sublayer&quot;,p=this.framework.selectAll(&quot;.&quot;+h).data(c,String);p.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return h+&quot; &quot;+t})).each((function(t){var e=i[t]=n.select(this);switch(t){case&quot;frontplot&quot;:r||e.append(&quot;g&quot;).classed(&quot;barlayer&quot;,!0),e.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0);break;case&quot;backplot&quot;:e.append(&quot;g&quot;).classed(&quot;maplayer&quot;,!0);break;case&quot;plotbg&quot;:i.bg=e.append(&quot;path&quot;);break;case&quot;radial-grid&quot;:case&quot;angular-grid&quot;:e.style(&quot;fill&quot;,&quot;none&quot;);break;case&quot;radial-line&quot;:e.append(&quot;line&quot;).style(&quot;fill&quot;,&quot;none&quot;);break;case&quot;angular-line&quot;:e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;)}})),p.order()},N.updateLayout=function(t,e){var r=this.layers,n=t._size,i=this.getRadial(e),a=this.getAngular(e),o=e.domain.x,s=e.domain.y;this.xOffset=n.l+n.w*o[0],this.yOffset=n.t+n.h*(1-s[1]);var f=this.xLength=n.w*(o[1]-o[0]),h=this.yLength=n.h*(s[1]-s[0]),p=this.getSector(e);this.sectorInRad=p.map(R);var d,m,g,v,y,x=this.sectorBBox=function(t){var e,r,n,i,a=t[0],o=t[1]-a,s=D(a,360),l=s+o,c=Math.cos(R(s)),u=Math.sin(R(s)),f=Math.cos(R(l)),h=Math.sin(R(l));i=s&lt;=90&amp;&amp;l&gt;=90||s&gt;90&amp;&amp;l&gt;=450?1:u&lt;=0&amp;&amp;h&lt;=0?0:Math.max(u,h);e=s&lt;=180&amp;&amp;l&gt;=180||s&gt;180&amp;&amp;l&gt;=540?-1:c&gt;=0&amp;&amp;f&gt;=0?0:Math.min(c,f);r=s&lt;=270&amp;&amp;l&gt;=270||s&gt;270&amp;&amp;l&gt;=630?-1:u&gt;=0&amp;&amp;h&gt;=0?0:Math.min(u,h);n=l&gt;=360?1:c&lt;=0&amp;&amp;f&lt;=0?0:Math.max(c,f);return[e,r,n,i]}(p),b=x[2]-x[0],_=x[3]-x[1],w=h/f,T=Math.abs(_/b);w&gt;T?(d=f,y=(h-(m=f*T))/n.h/2,g=[o[0],o[1]],v=[s[0]+y,s[1]-y]):(m=h,y=(f-(d=h/T))/n.w/2,g=[o[0]+y,o[1]-y],v=[s[0],s[1]]),this.xLength2=d,this.yLength2=m,this.xDomain2=g,this.yDomain2=v;var k,A=this.xOffset2=n.l+n.w*g[0],M=this.yOffset2=n.t+n.h*(1-v[1]),S=this.radius=d/b,E=this.innerRadius=this.getHole(e)*S,L=this.cx=A-S*x[0],C=this.cy=M+S*x[3],P=this.cxx=L-A,I=this.cyy=C-M,O=i.side;&quot;counterclockwise&quot;===O?(k=O,O=&quot;top&quot;):&quot;clockwise&quot;===O&amp;&amp;(k=O,O=&quot;bottom&quot;),this.radialAxis=this.mockAxis(t,e,i,{_id:&quot;x&quot;,side:O,_trueSide:k,domain:[E/n.w,S/n.w]}),this.angularAxis=this.mockAxis(t,e,a,{side:&quot;right&quot;,domain:[0,Math.PI],autorange:!1}),this.doAutoRange(t,e),this.updateAngularAxis(t,e),this.updateRadialAxis(t,e),this.updateRadialAxisTitle(t,e),this.xaxis=this.mockCartesianAxis(t,e,{_id:&quot;x&quot;,domain:g}),this.yaxis=this.mockCartesianAxis(t,e,{_id:&quot;y&quot;,domain:v});var z=this.pathSubplot();this.clipPaths.forTraces.select(&quot;path&quot;).attr(&quot;d&quot;,z).attr(&quot;transform&quot;,l(P,I)),r.frontplot.attr(&quot;transform&quot;,l(A,M)).call(u.setClipUrl,this._hasClipOnAxisFalse?null:this.clipIds.forTraces,this.gd),r.bg.attr(&quot;d&quot;,z).attr(&quot;transform&quot;,l(L,C)).call(c.fill,e.bgcolor)},N.mockAxis=function(t,e,r,n){var i=o.extendFlat({},r,n);return d(i,e,t),i},N.mockCartesianAxis=function(t,e,r){var n=this,i=n.isSmith,a=r._id,s=o.extendFlat({type:&quot;linear&quot;},r);p(s,t);var l={x:[0,2],y:[1,3]};return s.setRange=function(){var t=n.sectorBBox,r=l[a],i=n.radialAxis._rl,o=(i[1]-i[0])/(1-n.getHole(e));s.range=[t[r[0]]*o,t[r[1]]*o]},s.isPtWithinRange=&quot;x&quot;!==a||i?function(){return!0}:function(t){return n.isPtInside(t)},s.setRange(),s.setScale(),s},N.doAutoRange=function(t,e){var r=this.gd,n=this.radialAxis,i=this.getRadial(e);m(r,n);var a=n.range;i.range=a.slice(),i._input.range=a.slice(),n._rl=[n.r2l(a[0],null,&quot;gregorian&quot;),n.r2l(a[1],null,&quot;gregorian&quot;)]},N.updateRadialAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=r.getRadial(e),m=D(r.getSector(e)[0],360),g=r.radialAxis,v=u&lt;a,y=r.isSmith;y||(r.fillViewInitialKey(&quot;radialaxis.angle&quot;,d.angle),r.fillViewInitialKey(&quot;radialaxis.range&quot;,g.range.slice()),g.setGeometry()),&quot;auto&quot;===g.tickangle&amp;&amp;m&gt;90&amp;&amp;m&lt;=270&amp;&amp;(g.tickangle=180);var x=y?function(t){var e=O(r,C([t.x,0]));return l(e[0]-f,e[1]-p)}:function(t){return l(g.l2p(t.x)+u,0)},b=y?function(t){return I(r,t.x,-1/0,1/0)}:function(t){return r.pathArc(g.r2p(t.x)+u)},_=j(d);if(r.radialTickLayout!==_&amp;&amp;(i[&quot;radial-axis&quot;].selectAll(&quot;.xtick&quot;).remove(),r.radialTickLayout=_),v){g.setScale();var w=0,T=y?(g.tickvals||[]).filter((function(t){return t&gt;=0})).map((function(t){return h.tickText(g,t,!0,!1)})):h.calcTicks(g),k=y?T:h.clipEnds(g,T),A=h.getTickSigns(g)[2];y&amp;&amp;((&quot;top&quot;===g.ticks&amp;&amp;&quot;bottom&quot;===g.side||&quot;bottom&quot;===g.ticks&amp;&amp;&quot;top&quot;===g.side)&amp;&amp;(A=-A),&quot;top&quot;===g.ticks&amp;&amp;&quot;top&quot;===g.side&amp;&amp;(w=-g.ticklen),&quot;bottom&quot;===g.ticks&amp;&amp;&quot;bottom&quot;===g.side&amp;&amp;(w=g.ticklen)),h.drawTicks(n,g,{vals:T,layer:i[&quot;radial-axis&quot;],path:h.makeTickPath(g,0,A),transFn:x,crisp:!1}),h.drawGrid(n,g,{vals:k,layer:i[&quot;radial-grid&quot;],path:b,transFn:o.noop,crisp:!1}),h.drawLabels(n,g,{vals:T,layer:i[&quot;radial-axis&quot;],transFn:x,labelFns:h.makeLabelFns(g,w)})}var M=r.radialAxisAngle=r.vangles?F(U(R(d.angle),r.vangles)):d.angle,S=l(f,p),E=S+s(-M);V(i[&quot;radial-axis&quot;],v&amp;&amp;(d.showticklabels||d.ticks),{transform:E}),V(i[&quot;radial-grid&quot;],v&amp;&amp;d.showgrid,{transform:y?&quot;&quot;:S}),V(i[&quot;radial-line&quot;].select(&quot;line&quot;),v&amp;&amp;d.showline,{x1:y?-a:u,y1:0,x2:a,y2:0,transform:E}).attr(&quot;stroke-width&quot;,d.linewidth).call(c.stroke,d.linecolor)},N.updateRadialAxisTitle=function(t,e,r){if(!this.isSmith){var n=this.gd,i=this.radius,a=this.cx,o=this.cy,s=this.getRadial(e),l=this.id+&quot;title&quot;,c=0;if(s.title){var f=u.bBox(this.layers[&quot;radial-axis&quot;].node()).height,h=s.title.font.size,p=s.side;c=&quot;top&quot;===p?h:&quot;counterclockwise&quot;===p?-(f+.4*h):f+.8*h}var d=void 0!==r?r:this.radialAxisAngle,m=R(d),g=Math.cos(m),v=Math.sin(m),y=a+i/2*g+c*v,b=o-i/2*v+c*g;this.layers[&quot;radial-axis-title&quot;]=x.draw(n,l,{propContainer:s,propName:this.id+&quot;.radialaxis.title&quot;,placeholder:z(n,&quot;Click to enter radial axis title&quot;),attributes:{x:y,y:b,&quot;text-anchor&quot;:&quot;middle&quot;},transform:{rotate:-d}})}},N.updateAngularAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=r.getAngular(e),m=r.angularAxis,g=r.isSmith;g||(r.fillViewInitialKey(&quot;angularaxis.rotation&quot;,d.rotation),m.setGeometry(),m.setScale());var v=g?function(t){var e=O(r,C([0,t.x]));return Math.atan2(e[0]-f,e[1]-p)-Math.PI/2}:function(t){return m.t2g(t.x)};&quot;linear&quot;===m.type&amp;&amp;&quot;radians&quot;===m.thetaunit&amp;&amp;(m.tick0=F(m.tick0),m.dtick=F(m.dtick));var y=function(t){return l(f+a*Math.cos(t),p-a*Math.sin(t))},x=g?function(t){var e=O(r,C([0,t.x]));return l(e[0],e[1])}:function(t){return y(v(t))},b=g?function(t){var e=O(r,C([0,t.x])),n=Math.atan2(e[0]-f,e[1]-p)-Math.PI/2;return l(e[0],e[1])+s(-F(n))}:function(t){var e=v(t);return y(e)+s(-F(e))},_=g?function(t){return P(r,t.x,0,1/0)}:function(t){var e=v(t),r=Math.cos(e),n=Math.sin(e);return&quot;M&quot;+[f+u*r,p-u*n]+&quot;L&quot;+[f+a*r,p-a*n]},w=h.makeLabelFns(m,0).labelStandoff,T={xFn:function(t){var e=v(t);return Math.cos(e)*w},yFn:function(t){var e=v(t),r=Math.sin(e)&gt;0?.2:1;return-Math.sin(e)*(w+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*M)},anchorFn:function(t){var e=v(t),r=Math.cos(e);return Math.abs(r)&lt;.1?&quot;middle&quot;:r&gt;0?&quot;start&quot;:&quot;end&quot;},heightFn:function(t,e,r){var n=v(t);return-.5*(1+Math.sin(n))*r}},k=j(d);r.angularTickLayout!==k&amp;&amp;(i[&quot;angular-axis&quot;].selectAll(&quot;.&quot;+m._id+&quot;tick&quot;).remove(),r.angularTickLayout=k);var A,S=g?[1/0].concat(m.tickvals||[]).map((function(t){return h.tickText(m,t,!0,!1)})):h.calcTicks(m);if(g&amp;&amp;(S[0].text=&quot;\u221e&quot;,S[0].fontSize*=1.75),&quot;linear&quot;===e.gridshape?(A=S.map(v),o.angleDelta(A[0],A[1])&lt;0&amp;&amp;(A=A.slice().reverse())):A=null,r.vangles=A,&quot;category&quot;===m.type&amp;&amp;(S=S.filter((function(t){return o.isAngleInsideSector(v(t),r.sectorInRad)}))),m.visible){var E=&quot;inside&quot;===m.ticks?-1:1,L=(m.linewidth||1)/2;h.drawTicks(n,m,{vals:S,layer:i[&quot;angular-axis&quot;],path:&quot;M&quot;+E*L+&quot;,0h&quot;+E*m.ticklen,transFn:b,crisp:!1}),h.drawGrid(n,m,{vals:S,layer:i[&quot;angular-grid&quot;],path:_,transFn:o.noop,crisp:!1}),h.drawLabels(n,m,{vals:S,layer:i[&quot;angular-axis&quot;],repositionOnUpdate:!0,transFn:x,labelFns:T})}V(i[&quot;angular-line&quot;].select(&quot;path&quot;),d.showline,{d:r.pathSubplot(),transform:l(f,p)}).attr(&quot;stroke-width&quot;,d.linewidth).call(c.stroke,d.linecolor)},N.updateFx=function(t,e){this.gd._context.staticPlot||(!this.isSmith&amp;&amp;(this.updateAngularDrag(t),this.updateRadialDrag(t,e,0),this.updateRadialDrag(t,e,1)),this.updateHoverAndMainDrag(t))},N.updateHoverAndMainDrag=function(t){var e,r,s=this,c=s.isSmith,u=s.gd,f=s.layers,h=t._zoomlayer,p=S.MINZOOM,d=S.OFFEDGE,m=s.radius,x=s.innerRadius,T=s.cx,k=s.cy,A=s.cxx,M=s.cyy,L=s.sectorInRad,C=s.vangles,P=s.radialAxis,I=E.clampTiny,O=E.findXYatLength,z=E.findEnclosingVertexAngles,D=S.cornerHalfWidth,R=S.cornerLen/2,F=g.makeDragger(f,&quot;path&quot;,&quot;maindrag&quot;,&quot;crosshair&quot;);n.select(F).attr(&quot;d&quot;,s.pathSubplot()).attr(&quot;transform&quot;,l(T,k)),F.onmousemove=function(t){y.hover(u,t,s.id),u._fullLayout._lasthover=F,u._fullLayout._hoversubplot=s.id},F.onmouseout=function(t){u._dragging||v.unhover(u,t)};var B,N,j,U,V,H,q,G,Y,W={element:F,gd:u,subplot:s.id,plotinfo:{id:s.id,xaxis:s.xaxis,yaxis:s.yaxis},xaxes:[s.xaxis],yaxes:[s.yaxis]};function X(t,e){return Math.sqrt(t*t+e*e)}function Z(t,e){return X(t-A,e-M)}function J(t,e){return Math.atan2(M-e,t-A)}function K(t,e){return[t*Math.cos(e),t*Math.sin(-e)]}function Q(t,e){if(0===t)return s.pathSector(2*D);var r=R/t,n=e-r,i=e+r,a=Math.max(0,Math.min(t,m)),o=a-D,l=a+D;return&quot;M&quot;+K(o,n)+&quot;A&quot;+[o,o]+&quot; 0,0,0 &quot;+K(o,i)+&quot;L&quot;+K(l,i)+&quot;A&quot;+[l,l]+&quot; 0,0,1 &quot;+K(l,n)+&quot;Z&quot;}function $(t,e,r){if(0===t)return s.pathSector(2*D);var n,i,a=K(t,e),o=K(t,r),l=I((a[0]+o[0])/2),c=I((a[1]+o[1])/2);if(l&amp;&amp;c){var u=c/l,f=-1/u,h=O(D,u,l,c);n=O(R,f,h[0][0],h[0][1]),i=O(R,f,h[1][0],h[1][1])}else{var p,d;c?(p=R,d=D):(p=D,d=R),n=[[l-p,c-d],[l+p,c-d]],i=[[l-p,c+d],[l+p,c+d]]}return&quot;M&quot;+n.join(&quot;L&quot;)+&quot;L&quot;+i.reverse().join(&quot;L&quot;)+&quot;Z&quot;}function tt(t,e){return e=Math.max(Math.min(e,m),x),t&lt;d?t=0:m-t&lt;d?t=m:e&lt;d?e=0:m-e&lt;d&amp;&amp;(e=m),Math.abs(e-t)&gt;p?(t&lt;e?(j=t,U=e):(j=e,U=t),!0):(j=null,U=null,!1)}function et(t,e){t=t||V,e=e||&quot;M0,0Z&quot;,G.attr(&quot;d&quot;,t),Y.attr(&quot;d&quot;,e),g.transitionZoombox(G,Y,H,q),H=!0;var r={};ot(r),u.emit(&quot;plotly_relayouting&quot;,r)}function rt(t,n){var i,a,o=B+(t*=e),l=N+(n*=r),c=Z(B,N),u=Math.min(Z(o,l),m),f=J(B,N);tt(c,u)&amp;&amp;(i=V+s.pathSector(U),j&amp;&amp;(i+=s.pathSector(j)),a=Q(j,f)+Q(U,f)),et(i,a)}function nt(t,e,r,n){var i=E.findIntersectionXY(r,n,r,[t-A,M-e]);return X(i[0],i[1])}function it(t,e){var r,n,i=B+t,a=N+e,o=J(B,N),l=J(i,a),c=z(o,C),u=z(l,C);tt(nt(B,N,c[0],c[1]),Math.min(nt(i,a,u[0],u[1]),m))&amp;&amp;(r=V+s.pathSector(U),j&amp;&amp;(r+=s.pathSector(j)),n=[$(j,c[0],c[1]),$(U,c[0],c[1])].join(&quot; &quot;)),et(r,n)}function at(){if(g.removeZoombox(u),null!==j&amp;&amp;null!==U){var t={};ot(t),g.showDoubleClickNotifier(u),a.call(&quot;_guiRelayout&quot;,u,t)}}function ot(t){var e=P._rl,r=(e[1]-e[0])/(1-x/m)/m,n=[e[0]+(j-x)*r,e[0]+(U-x)*r];t[s.id+&quot;.radialaxis.range&quot;]=n}function st(t,e){var r=u._fullLayout.clickmode;if(g.removeZoombox(u),2===t){var n={};for(var i in s.viewInitial)n[s.id+&quot;.&quot;+i]=s.viewInitial[i];u.emit(&quot;plotly_doubleclick&quot;,null),a.call(&quot;_guiRelayout&quot;,u,n)}r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;1===t&amp;&amp;_(e,u,[s.xaxis],[s.yaxis],s.id,W),r.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;y.click(u,e,s.id)}W.prepFn=function(t,n,a){var l=u._fullLayout.dragmode,f=F.getBoundingClientRect();u._fullLayout._calcInverseTransform(u);var p=u._fullLayout._invTransform;e=u._fullLayout._invScaleX,r=u._fullLayout._invScaleY;var d=o.apply3DTransform(p)(n-f.left,a-f.top);if(B=d[0],N=d[1],C){var v=E.findPolygonOffset(m,L[0],L[1],C);B+=A+v[0],N+=M+v[1]}switch(l){case&quot;zoom&quot;:W.clickFn=st,c||(W.moveFn=C?it:rt,W.doneFn=at,function(){j=null,U=null,V=s.pathSubplot(),H=!1;var t=u._fullLayout[s.id];q=i(t.bgcolor).getLuminance(),(G=g.makeZoombox(h,q,T,k,V)).attr(&quot;fill-rule&quot;,&quot;evenodd&quot;),Y=g.makeCorners(h,T,k),w(u)}());break;case&quot;select&quot;:case&quot;lasso&quot;:b(t,n,a,W,l)}},v.init(W)},N.updateRadialDrag=function(t,e,r){var i=this,c=i.gd,u=i.layers,f=i.radius,h=i.innerRadius,p=i.cx,d=i.cy,m=i.radialAxis,y=S.radialDragBoxSize,x=y/2;if(m.visible){var b,_,T,M=R(i.radialAxisAngle),E=m._rl,L=E[0],C=E[1],P=E[r],I=.75*(E[1]-E[0])/(1-i.getHole(e))/f;r?(b=p+(f+x)*Math.cos(M),_=d-(f+x)*Math.sin(M),T=&quot;radialdrag&quot;):(b=p+(h-x)*Math.cos(M),_=d-(h-x)*Math.sin(M),T=&quot;radialdrag-inner&quot;);var O,z,D,B=g.makeRectDragger(u,T,&quot;crosshair&quot;,-x,-x,y,y),N={element:B,gd:c};V(n.select(B),m.visible&amp;&amp;h&lt;f,{transform:l(b,_)}),N.prepFn=function(){O=null,z=null,D=null,N.moveFn=j,N.doneFn=H,w(c)},N.clampFn=function(t,e){return Math.sqrt(t*t+e*e)&lt;S.MINDRAG&amp;&amp;(t=0,e=0),[t,e]},v.init(N)}function j(t,e){if(O)O(t,e);else{var n=[t,-e],a=[Math.cos(M),Math.sin(M)],s=Math.abs(o.dot(n,a)/Math.sqrt(o.dot(n,n)));isNaN(s)||(O=s&lt;.5?q:G)}var l={};!function(t){null!==z?t[i.id+&quot;.radialaxis.angle&quot;]=z:null!==D&amp;&amp;(t[i.id+&quot;.radialaxis.range[&quot;+r+&quot;]&quot;]=D)}(l),c.emit(&quot;plotly_relayouting&quot;,l)}function H(){null!==z?a.call(&quot;_guiRelayout&quot;,c,i.id+&quot;.radialaxis.angle&quot;,z):null!==D&amp;&amp;a.call(&quot;_guiRelayout&quot;,c,i.id+&quot;.radialaxis.range[&quot;+r+&quot;]&quot;,D)}function q(t,e){if(0!==r){var n=b+t,a=_+e;z=Math.atan2(d-a,n-p),i.vangles&amp;&amp;(z=U(z,i.vangles)),z=F(z);var o=l(p,d)+s(-z);u[&quot;radial-axis&quot;].attr(&quot;transform&quot;,o),u[&quot;radial-line&quot;].select(&quot;line&quot;).attr(&quot;transform&quot;,o);var c=i.gd._fullLayout,f=c[i.id];i.updateRadialAxisTitle(c,f,z)}}function G(t,e){var n=o.dot([t,-e],[Math.cos(M),Math.sin(M)]);if(D=P-I*n,I&gt;0==(r?D&gt;L:D&lt;C)){var s=c._fullLayout,l=s[i.id];m.range[r]=D,m._rl[r]=D,i.updateRadialAxis(s,l),i.xaxis.setRange(),i.xaxis.setScale(),i.yaxis.setRange(),i.yaxis.setScale();var u=!1;for(var f in i.traceHash){var h=i.traceHash[f],p=o.filterVisible(h);h[0][0].trace._module.plot(c,i,p,l),a.traceIs(f,&quot;gl&quot;)&amp;&amp;p.length&amp;&amp;(u=!0)}u&amp;&amp;(k(c),A(c))}else D=null}},N.updateAngularDrag=function(t){var e=this,r=e.gd,i=e.layers,c=e.radius,f=e.angularAxis,h=e.cx,p=e.cy,d=e.cxx,m=e.cyy,y=S.angularDragBoxSize,x=g.makeDragger(i,&quot;path&quot;,&quot;angulardrag&quot;,&quot;move&quot;),b={element:x,gd:r};function _(t,e){return Math.atan2(m+y-e,t-d-y)}n.select(x).attr(&quot;d&quot;,e.pathAnnulus(c,c+y)).attr(&quot;transform&quot;,l(h,p)).call(T,&quot;move&quot;);var M,E,L,C,P,I,O=i.frontplot.select(&quot;.scatterlayer&quot;).selectAll(&quot;.trace&quot;),z=O.selectAll(&quot;.point&quot;),D=O.selectAll(&quot;.textpoint&quot;);function R(c,g){var v=e.gd._fullLayout,y=v[e.id],x=_(M+c*t._invScaleX,E+g*t._invScaleY),b=F(x-I);if(C=L+b,i.frontplot.attr(&quot;transform&quot;,l(e.xOffset2,e.yOffset2)+s([-b,d,m])),e.vangles){P=e.radialAxisAngle+b;var w=l(h,p)+s(-b),T=l(h,p)+s(-P);i.bg.attr(&quot;transform&quot;,w),i[&quot;radial-grid&quot;].attr(&quot;transform&quot;,w),i[&quot;radial-axis&quot;].attr(&quot;transform&quot;,T),i[&quot;radial-line&quot;].select(&quot;line&quot;).attr(&quot;transform&quot;,T),e.updateRadialAxisTitle(v,y,P)}else e.clipPaths.forTraces.select(&quot;path&quot;).attr(&quot;transform&quot;,l(d,m)+s(b));z.each((function(){var t=n.select(this),e=u.getTranslate(t);t.attr(&quot;transform&quot;,l(e.x,e.y)+s([b]))})),D.each((function(){var t=n.select(this),e=t.select(&quot;text&quot;),r=u.getTranslate(t);t.attr(&quot;transform&quot;,s([b,e.attr(&quot;x&quot;),e.attr(&quot;y&quot;)])+l(r.x,r.y))})),f.rotation=o.modHalf(C,360),e.updateAngularAxis(v,y),e._hasClipOnAxisFalse&amp;&amp;!o.isFullCircle(e.sectorInRad)&amp;&amp;O.call(u.hideOutsideRangePoints,e);var S=!1;for(var R in e.traceHash)if(a.traceIs(R,&quot;gl&quot;)){var N=e.traceHash[R],j=o.filterVisible(N);N[0][0].trace._module.plot(r,e,j,y),j.length&amp;&amp;(S=!0)}S&amp;&amp;(k(r),A(r));var U={};B(U),r.emit(&quot;plotly_relayouting&quot;,U)}function B(t){t[e.id+&quot;.angularaxis.rotation&quot;]=C,e.vangles&amp;&amp;(t[e.id+&quot;.radialaxis.angle&quot;]=P)}function N(){D.select(&quot;text&quot;).attr(&quot;transform&quot;,null);var t={};B(t),a.call(&quot;_guiRelayout&quot;,r,t)}b.prepFn=function(n,i,a){var s=t[e.id];L=s.angularaxis.rotation;var l=x.getBoundingClientRect();M=i-l.left,E=a-l.top,r._fullLayout._calcInverseTransform(r);var c=o.apply3DTransform(t._invTransform)(M,E);M=c[0],E=c[1],I=_(M,E),b.moveFn=R,b.doneFn=N,w(r)},e.vangles&amp;&amp;!o.isFullCircle(e.sectorInRad)&amp;&amp;(b.prepFn=o.noop,T(n.select(x),null)),v.init(b)},N.isPtInside=function(t){if(this.isSmith)return!0;var e=this.sectorInRad,r=this.vangles,n=this.angularAxis.c2g(t.theta),i=this.radialAxis,a=i.c2l(t.r),s=i._rl;return(r?E.isPtInsidePolygon:o.isPtInsideSector)(a,n,s,e,r)},N.pathArc=function(t){var e=this.sectorInRad,r=this.vangles;return(r?E.pathPolygon:o.pathArc)(t,e[0],e[1],r)},N.pathSector=function(t){var e=this.sectorInRad,r=this.vangles;return(r?E.pathPolygon:o.pathSector)(t,e[0],e[1],r)},N.pathAnnulus=function(t,e){var r=this.sectorInRad,n=this.vangles;return(n?E.pathPolygonAnnulus:o.pathAnnulus)(t,e,r[0],r[1],n)},N.pathSubplot=function(){var t=this.innerRadius,e=this.radius;return t?this.pathAnnulus(t,e):this.pathSector(e)},N.fillViewInitialKey=function(t,e){t in this.viewInitial||(this.viewInitial[t]=e)}},{&quot;../../components/color&quot;:366,&quot;../../components/dragelement&quot;:385,&quot;../../components/drawing&quot;:388,&quot;../../components/fx&quot;:406,&quot;../../components/titles&quot;:464,&quot;../../constants/alignment&quot;:471,&quot;../../lib&quot;:503,&quot;../../lib/clear_gl_canvases&quot;:487,&quot;../../lib/setcursor&quot;:524,&quot;../../plot_api/subroutines&quot;:544,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../registry&quot;:638,&quot;../cartesian/autorange&quot;:553,&quot;../cartesian/dragbox&quot;:563,&quot;../cartesian/select&quot;:575,&quot;../cartesian/set_convert&quot;:576,&quot;../plots&quot;:619,&quot;../smith/helpers&quot;:628,&quot;./constants&quot;:620,&quot;./helpers&quot;:621,&quot;./set_convert&quot;:626,&quot;@plotly/d3&quot;:58,tinycolor2:312}],626:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../cartesian/set_convert&quot;),a=n.deg2rad,o=n.rad2deg;e.exports=function(t,e,r){switch(i(t,r),t._id){case&quot;x&quot;:case&quot;radialaxis&quot;:!function(t,e){var r=e._subplot;t.setGeometry=function(){var e=t._rl[0],n=t._rl[1],i=r.innerRadius,a=(r.radius-i)/(n-e),o=i/a,s=e&gt;n?function(t){return t&lt;=0}:function(t){return t&gt;=0};t.c2g=function(r){var n=t.c2l(r)-e;return(s(n)?n:0)+o},t.g2c=function(r){return t.l2c(r+e-o)},t.g2p=function(t){return t*a},t.c2p=function(e){return t.g2p(t.c2g(e))}}}(t,e);break;case&quot;angularaxis&quot;:!function(t,e){var r=t.type;if(&quot;linear&quot;===r){var i=t.d2c,s=t.c2d;t.d2c=function(t,e){return function(t,e){return&quot;degrees&quot;===e?a(t):t}(i(t),e)},t.c2d=function(t,e){return s(function(t,e){return&quot;degrees&quot;===e?o(t):t}(t,e))}}t.makeCalcdata=function(e,i){var a,o,s=e[i],l=e._length,c=function(r){return t.d2c(r,e.thetaunit)};if(s){if(n.isTypedArray(s)&amp;&amp;&quot;linear&quot;===r){if(l===s.length)return s;if(s.subarray)return s.subarray(0,l)}for(a=new Array(l),o=0;o&lt;l;o++)a[o]=c(s[o])}else{var u=i+&quot;0&quot;,f=&quot;d&quot;+i,h=u in e?c(e[u]):0,p=e[f]?c(e[f]):(t.period||2*Math.PI)/l;for(a=new Array(l),o=0;o&lt;l;o++)a[o]=h+o*p}return a},t.setGeometry=function(){var i,s,l,c,u=e.sector,f=u.map(a),h={clockwise:-1,counterclockwise:1}[t.direction],p=a(t.rotation),d=function(t){return h*t+p},m=function(t){return(t-p)/h};switch(r){case&quot;linear&quot;:s=i=n.identity,c=a,l=o,t.range=n.isFullCircle(f)?[u[0],u[0]+360]:f.map(m).map(o);break;case&quot;category&quot;:var g=t._categories.length,v=t.period?Math.max(t.period,g):g;0===v&amp;&amp;(v=1),s=c=function(t){return 2*t*Math.PI/v},i=l=function(t){return t*v/Math.PI/2},t.range=[0,v]}t.c2g=function(t){return d(s(t))},t.g2c=function(t){return i(m(t))},t.t2g=function(t){return d(c(t))},t.g2t=function(t){return l(m(t))}}}(t,e)}}},{&quot;../../lib&quot;:503,&quot;../cartesian/set_convert&quot;:576}],627:[function(t,e,r){&quot;use strict&quot;;e.exports={attr:&quot;subplot&quot;,name:&quot;smith&quot;,axisNames:[&quot;realaxis&quot;,&quot;imaginaryaxis&quot;],axisName2dataArray:{imaginaryaxis:&quot;imag&quot;,realaxis:&quot;real&quot;}}},{}],628:[function(t,e,r){&quot;use strict&quot;;function n(t){return t&lt;0?-1:t&gt;0?1:0}function i(t){var e=t[0],r=t[1];if(!isFinite(e)||!isFinite(r))return[1,0];var n=(e+1)*(e+1)+r*r;return[(e*e+r*r-1)/n,2*r/n]}function a(t,e){var r=e[0],n=e[1];return[r*t.radius+t.cx,-n*t.radius+t.cy]}function o(t,e){return e*t.radius}e.exports={smith:i,reactanceArc:function(t,e,r,n){var s=a(t,i([r,e])),l=s[0],c=s[1],u=a(t,i([n,e])),f=u[0],h=u[1];if(0===e)return[&quot;M&quot;+l+&quot;,&quot;+c,&quot;L&quot;+f+&quot;,&quot;+h].join(&quot; &quot;);var p=o(t,1/Math.abs(e));return[&quot;M&quot;+l+&quot;,&quot;+c,&quot;A&quot;+p+&quot;,&quot;+p+&quot; 0 0,&quot;+(e&lt;0?1:0)+&quot; &quot;+f+&quot;,&quot;+h].join(&quot; &quot;)},resistanceArc:function(t,e,r,s){var l=o(t,1/(e+1)),c=a(t,i([e,r])),u=c[0],f=c[1],h=a(t,i([e,s])),p=h[0],d=h[1];if(n(r)!==n(s)){var m=a(t,i([e,0]));return[&quot;M&quot;+u+&quot;,&quot;+f,&quot;A&quot;+l+&quot;,&quot;+l+&quot; 0 0,&quot;+(0&lt;r?0:1)+&quot; &quot;+m[0]+&quot;,&quot;+m[1],&quot;A&quot;+l+&quot;,&quot;+l+&quot; 0 0,&quot;+(s&lt;0?0:1)+p+&quot;,&quot;+d].join(&quot; &quot;)}return[&quot;M&quot;+u+&quot;,&quot;+f,&quot;A&quot;+l+&quot;,&quot;+l+&quot; 0 0,&quot;+(s&lt;r?0:1)+&quot; &quot;+p+&quot;,&quot;+d].join(&quot; &quot;)},smithTransform:a}},{}],629:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../get_data&quot;).getSubplotCalcData,i=t(&quot;../../lib&quot;).counterRegex,a=t(&quot;../polar/polar&quot;),o=t(&quot;./constants&quot;),s=o.attr,l=o.name,c=i(l),u={};u[s]={valType:&quot;subplotid&quot;,dflt:l,editType:&quot;calc&quot;},e.exports={attr:s,name:l,idRoot:l,idRegex:c,attrRegex:c,attributes:u,layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots[l],o=0;o&lt;i.length;o++){var s=i[o],c=n(r,l,s),u=e[s]._subplot;u||(u=a(t,s,!0),e[s]._subplot=u),u.plot(c,e,t._promises)}},clean:function(t,e,r,n){for(var i=n._subplots[l]||[],a=0;a&lt;i.length;a++){var o=i[a],s=n[o]._subplot;if(!e[o]&amp;&amp;s)for(var c in s.framework.remove(),s.clipPaths)s.clipPaths[c].remove()}},toSVG:t(&quot;../cartesian&quot;).toSVG}},{&quot;../../lib&quot;:503,&quot;../cartesian&quot;:568,&quot;../get_data&quot;:593,&quot;../polar/polar&quot;:625,&quot;./constants&quot;:627,&quot;./layout_attributes&quot;:630,&quot;./layout_defaults&quot;:631}],630:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../cartesian/layout_attributes&quot;),a=t(&quot;../domain&quot;).attributes,o=t(&quot;../../lib&quot;).extendFlat,s=t(&quot;../../plot_api/edit_types&quot;).overrideAll,l=s({color:i.color,showline:o({},i.showline,{dflt:!0}),linecolor:i.linecolor,linewidth:i.linewidth,showgrid:o({},i.showgrid,{dflt:!0}),gridcolor:i.gridcolor,gridwidth:i.gridwidth},&quot;plot&quot;,&quot;from-root&quot;),c=s({ticklen:i.ticklen,tickwidth:o({},i.tickwidth,{dflt:2}),tickcolor:i.tickcolor,showticklabels:i.showticklabels,showtickprefix:i.showtickprefix,tickprefix:i.tickprefix,showticksuffix:i.showticksuffix,ticksuffix:i.ticksuffix,tickfont:i.tickfont,tickformat:i.tickformat,hoverformat:i.hoverformat,layer:i.layer},&quot;plot&quot;,&quot;from-root&quot;),u=o({visible:o({},i.visible,{dflt:!0}),tickvals:{dflt:[.2,.5,1,2,5],valType:&quot;data_array&quot;,editType:&quot;plot&quot;},tickangle:o({},i.tickangle,{dflt:90}),ticks:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;,&quot;&quot;],editType:&quot;ticks&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;plot&quot;},editType:&quot;calc&quot;},l,c),f=o({visible:o({},i.visible,{dflt:!0}),tickvals:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},ticks:i.ticks,editType:&quot;calc&quot;},l,c);e.exports={domain:a({name:&quot;smith&quot;,editType:&quot;plot&quot;}),bgcolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;,dflt:n.background},realaxis:u,imaginaryaxis:f,editType:&quot;calc&quot;}},{&quot;../../components/color/attributes&quot;:365,&quot;../../lib&quot;:503,&quot;../../plot_api/edit_types&quot;:536,&quot;../cartesian/layout_attributes&quot;:569,&quot;../domain&quot;:584}],631:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o=t(&quot;../../lib&quot;),s=t(&quot;../../components/color&quot;),l=t(&quot;../../plot_api/plot_template&quot;),c=t(&quot;../subplot_defaults&quot;),u=t(&quot;../get_data&quot;).getSubplotData,f=t(&quot;../cartesian/prefix_suffix_defaults&quot;),h=t(&quot;../cartesian/tick_label_defaults&quot;),p=t(&quot;../cartesian/line_grid_defaults&quot;),d=t(&quot;../cartesian/set_convert&quot;),m=t(&quot;./layout_attributes&quot;),g=t(&quot;./constants&quot;),v=g.axisNames,y=(n=function(t){return t.slice().reverse().map((function(t){return-t})).concat([0]).concat(t)},i=String,a={},function(t){var e=i?i(t):t;if(e in a)return a[e];var r=n(t);return a[e]=r,r});function x(t,e,r,n){var i=r(&quot;bgcolor&quot;);n.bgColor=s.combine(i,n.paper_bgcolor);var a,c=u(n.fullData,g.name,n.id),x=n.layoutOut;function b(t,e){return r(a+&quot;.&quot;+t,e)}for(var _=0;_&lt;v.length;_++){a=v[_],o.isPlainObject(t[a])||(t[a]={});var w=t[a],T=l.newContainer(e,a);T._id=T._name=a,T._attr=n.id+&quot;.&quot;+a,T._traceIndices=c.map((function(t){return t._expandedIndex}));var k=b(&quot;visible&quot;);if(T.type=&quot;linear&quot;,d(T,x),f(w,T,b,T.type),k){var A,M,S,E,L=&quot;realaxis&quot;===a;if(L&amp;&amp;b(&quot;side&quot;),L)b(&quot;tickvals&quot;);else b(&quot;tickvals&quot;,y(e.realaxis.tickvals||m.realaxis.tickvals.dflt));var C=n.font||{};k&amp;&amp;(M=(A=b(&quot;color&quot;))===w.color?A:C.color,S=C.size,E=C.family),h(w,T,b,T.type,{noAng:!L,noExp:!0,font:{color:M,size:S,family:E}}),o.coerce2(t,e,m,a+&quot;.ticklen&quot;),o.coerce2(t,e,m,a+&quot;.tickwidth&quot;),o.coerce2(t,e,m,a+&quot;.tickcolor&quot;,e.color),b(&quot;ticks&quot;)||(delete e[a].ticklen,delete e[a].tickwidth,delete e[a].tickcolor),p(w,T,b,{dfltColor:A,bgColor:n.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:m[a]}),b(&quot;layer&quot;)}b(&quot;hoverformat&quot;),delete T.type,T._input=w}}e.exports=function(t,e,r){c(t,e,r,{noUirevision:!0,type:g.name,attributes:m,handleDefaults:x,font:e.font,paper_bgcolor:e.paper_bgcolor,fullData:r,layoutOut:e})}},{&quot;../../components/color&quot;:366,&quot;../../lib&quot;:503,&quot;../../plot_api/plot_template&quot;:543,&quot;../cartesian/line_grid_defaults&quot;:571,&quot;../cartesian/prefix_suffix_defaults&quot;:573,&quot;../cartesian/set_convert&quot;:576,&quot;../cartesian/tick_label_defaults&quot;:578,&quot;../get_data&quot;:593,&quot;../subplot_defaults&quot;:632,&quot;./constants&quot;:627,&quot;./layout_attributes&quot;:630}],632:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_template&quot;),a=t(&quot;./domain&quot;).defaults;e.exports=function(t,e,r,o){var s,l,c=o.type,u=o.attributes,f=o.handleDefaults,h=o.partition||&quot;x&quot;,p=e._subplots[c],d=p.length,m=d&amp;&amp;p[0].replace(/\d+$/,&quot;&quot;);function g(t,e){return n.coerce(s,l,u,t,e)}for(var v=0;v&lt;d;v++){var y=p[v];s=t[y]?t[y]:t[y]={},l=i.newContainer(e,y,m),o.noUirevision||g(&quot;uirevision&quot;,e.uirevision);var x={};x[h]=[v/d,(v+1)/d],a(l,e,g,x),o.id=y,f(s,l,g,o)}}},{&quot;../lib&quot;:503,&quot;../plot_api/plot_template&quot;:543,&quot;./domain&quot;:584}],633:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../constants/docs&quot;);n.FORMAT_LINK,n.DATE_FORMAT_LINK;function i(t){var e=t.description?&quot; &quot;+t.description:&quot;&quot;,r=t.keys||[];if(r.length&gt;0){for(var n=[],i=0;i&lt;r.length;i++)n[i]=&quot;`&quot;+r[i]+&quot;`&quot;;e+=&quot;Finally, the template string has access to &quot;,e=1===r.length?&quot;variable &quot;+n[0]:&quot;variables &quot;+n.slice(0,-1).join(&quot;, &quot;)+&quot; and &quot;+n.slice(-1)+&quot;.&quot;}return e}r.hovertemplateAttrs=function(t,e){t=t||{};i(e=e||{});var r={valType:&quot;string&quot;,dflt:&quot;&quot;,editType:t.editType||&quot;none&quot;};return!1!==t.arrayOk&amp;&amp;(r.arrayOk=!0),r},r.texttemplateAttrs=function(t,e){t=t||{};i(e=e||{});var r={valType:&quot;string&quot;,dflt:&quot;&quot;,editType:t.editType||&quot;calc&quot;};return!1!==t.arrayOk&amp;&amp;(r.arrayOk=!0),r}},{&quot;../constants/docs&quot;:474}],634:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./ternary&quot;),i=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,a=t(&quot;../../lib&quot;).counterRegex;r.name=&quot;ternary&quot;;var o=r.attr=&quot;subplot&quot;;r.idRoot=&quot;ternary&quot;,r.idRegex=r.attrRegex=a(&quot;ternary&quot;),(r.attributes={})[o]={valType:&quot;subplotid&quot;,dflt:&quot;ternary&quot;,editType:&quot;calc&quot;},r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t.calcdata,a=e._subplots.ternary,o=0;o&lt;a.length;o++){var s=a[o],l=i(r,&quot;ternary&quot;,s),c=e[s]._subplot;c||(c=new n({id:s,graphDiv:t,container:e._ternarylayer.node()},e),e[s]._subplot=c),c.plot(l,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.ternary||[],a=0;a&lt;i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&amp;&amp;s&amp;&amp;(s.plotContainer.remove(),s.clipDef.remove(),s.clipDefRelative.remove(),s.layers[&quot;a-title&quot;].remove(),s.layers[&quot;b-title&quot;].remove(),s.layers[&quot;c-title&quot;].remove())}}},{&quot;../../lib&quot;:503,&quot;../../plots/get_data&quot;:593,&quot;./layout_attributes&quot;:635,&quot;./layout_defaults&quot;:636,&quot;./ternary&quot;:637}],635:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../domain&quot;).attributes,a=t(&quot;../cartesian/layout_attributes&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../lib/extend&quot;).extendFlat,l={title:{text:a.title.text,font:a.title.font},color:a.color,tickmode:a.tickmode,nticks:s({},a.nticks,{dflt:6,min:1}),tick0:a.tick0,dtick:a.dtick,tickvals:a.tickvals,ticktext:a.ticktext,ticks:a.ticks,ticklen:a.ticklen,tickwidth:a.tickwidth,tickcolor:a.tickcolor,showticklabels:a.showticklabels,showtickprefix:a.showtickprefix,tickprefix:a.tickprefix,showticksuffix:a.showticksuffix,ticksuffix:a.ticksuffix,showexponent:a.showexponent,exponentformat:a.exponentformat,minexponent:a.minexponent,separatethousands:a.separatethousands,tickfont:a.tickfont,tickangle:a.tickangle,tickformat:a.tickformat,tickformatstops:a.tickformatstops,hoverformat:a.hoverformat,showline:s({},a.showline,{dflt:!0}),linecolor:a.linecolor,linewidth:a.linewidth,showgrid:s({},a.showgrid,{dflt:!0}),gridcolor:a.gridcolor,gridwidth:a.gridwidth,layer:a.layer,min:{valType:&quot;number&quot;,dflt:0,min:0},_deprecated:{title:a._deprecated.title,titlefont:a._deprecated.titlefont}},c=e.exports=o({domain:i({name:&quot;ternary&quot;}),bgcolor:{valType:&quot;color&quot;,dflt:n.background},sum:{valType:&quot;number&quot;,dflt:1,min:0},aaxis:l,baxis:l,caxis:l},&quot;plot&quot;,&quot;from-root&quot;);c.uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;},c.aaxis.uirevision=c.baxis.uirevision=c.caxis.uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color/attributes&quot;:365,&quot;../../lib/extend&quot;:493,&quot;../../plot_api/edit_types&quot;:536,&quot;../cartesian/layout_attributes&quot;:569,&quot;../domain&quot;:584}],636:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../subplot_defaults&quot;),s=t(&quot;../cartesian/tick_label_defaults&quot;),l=t(&quot;../cartesian/prefix_suffix_defaults&quot;),c=t(&quot;../cartesian/tick_mark_defaults&quot;),u=t(&quot;../cartesian/tick_value_defaults&quot;),f=t(&quot;../cartesian/line_grid_defaults&quot;),h=t(&quot;./layout_attributes&quot;),p=[&quot;aaxis&quot;,&quot;baxis&quot;,&quot;caxis&quot;];function d(t,e,r,a){var o,s,l,c=r(&quot;bgcolor&quot;),u=r(&quot;sum&quot;);a.bgColor=n.combine(c,a.paper_bgcolor);for(var f=0;f&lt;p.length;f++)s=t[o=p[f]]||{},(l=i.newContainer(e,o))._name=o,m(s,l,a,e);var h=e.aaxis,d=e.baxis,g=e.caxis;h.min+d.min+g.min&gt;=u&amp;&amp;(h.min=0,d.min=0,g.min=0,t.aaxis&amp;&amp;delete t.aaxis.min,t.baxis&amp;&amp;delete t.baxis.min,t.caxis&amp;&amp;delete t.caxis.min)}function m(t,e,r,n){var i=h[e._name];function o(r,n){return a.coerce(t,e,i,r,n)}o(&quot;uirevision&quot;,n.uirevision),e.type=&quot;linear&quot;;var p=o(&quot;color&quot;),d=p!==i.color.dflt?p:r.font.color,m=e._name.charAt(0).toUpperCase(),g=&quot;Component &quot;+m,v=o(&quot;title.text&quot;,g);e._hovertitle=v===g?v:m,a.coerceFont(o,&quot;title.font&quot;,{family:r.font.family,size:a.bigFont(r.font.size),color:d}),o(&quot;min&quot;),u(t,e,o,&quot;linear&quot;),l(t,e,o,&quot;linear&quot;),s(t,e,o,&quot;linear&quot;),c(t,e,o,{outerTicks:!0}),o(&quot;showticklabels&quot;)&amp;&amp;(a.coerceFont(o,&quot;tickfont&quot;,{family:r.font.family,size:r.font.size,color:d}),o(&quot;tickangle&quot;),o(&quot;tickformat&quot;)),f(t,e,o,{dfltColor:p,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),o(&quot;hoverformat&quot;),o(&quot;layer&quot;)}e.exports=function(t,e,r){o(t,e,r,{type:&quot;ternary&quot;,attributes:h,handleDefaults:d,font:e.font,paper_bgcolor:e.paper_bgcolor})}},{&quot;../../components/color&quot;:366,&quot;../../lib&quot;:503,&quot;../../plot_api/plot_template&quot;:543,&quot;../cartesian/line_grid_defaults&quot;:571,&quot;../cartesian/prefix_suffix_defaults&quot;:573,&quot;../cartesian/tick_label_defaults&quot;:578,&quot;../cartesian/tick_mark_defaults&quot;:579,&quot;../cartesian/tick_value_defaults&quot;:580,&quot;../subplot_defaults&quot;:632,&quot;./layout_attributes&quot;:635}],637:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=o._,c=t(&quot;../../components/color&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../cartesian/set_convert&quot;),h=t(&quot;../../lib/extend&quot;).extendFlat,p=t(&quot;../plots&quot;),d=t(&quot;../cartesian/axes&quot;),m=t(&quot;../../components/dragelement&quot;),g=t(&quot;../../components/fx&quot;),v=t(&quot;../../components/dragelement/helpers&quot;),y=v.freeMode,x=v.rectMode,b=t(&quot;../../components/titles&quot;),_=t(&quot;../cartesian/select&quot;).prepSelect,w=t(&quot;../cartesian/select&quot;).selectOnClick,T=t(&quot;../cartesian/select&quot;).clearSelect,k=t(&quot;../cartesian/select&quot;).clearSelectionsCache,A=t(&quot;../cartesian/constants&quot;);function M(t,e){this.id=t.id,this.graphDiv=t.graphDiv,this.init(e),this.makeFramework(e),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}e.exports=M;var S=M.prototype;S.init=function(t){this.container=t._ternarylayer,this.defs=t._defs,this.layoutId=t._uid,this.traceHash={},this.layers={}},S.plot=function(t,e){var r=e[this.id],n=e._size;this._hasClipOnAxisFalse=!1;for(var i=0;i&lt;t.length;i++){if(!1===t[i][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(r),this.adjustLayout(r,n),p.generalUpdatePerTraceModule(this.graphDiv,this,t,r),this.layers.plotbg.select(&quot;path&quot;).call(c.fill,r.bgcolor)},S.makeFramework=function(t){var e=this.graphDiv,r=t[this.id],n=this.clipId=&quot;clip&quot;+this.layoutId+this.id,i=this.clipIdRelative=&quot;clip-relative&quot;+this.layoutId+this.id;this.clipDef=o.ensureSingleById(t._clips,&quot;clipPath&quot;,n,(function(t){t.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;)})),this.clipDefRelative=o.ensureSingleById(t._clips,&quot;clipPath&quot;,i,(function(t){t.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;)})),this.plotContainer=o.ensureSingle(this.container,&quot;g&quot;,this.id),this.updateLayers(r),u.setClipUrl(this.layers.backplot,n,e),u.setClipUrl(this.layers.grids,n,e)},S.updateLayers=function(t){var e=this.layers,r=[&quot;draglayer&quot;,&quot;plotbg&quot;,&quot;backplot&quot;,&quot;grids&quot;];&quot;below traces&quot;===t.aaxis.layer&amp;&amp;r.push(&quot;aaxis&quot;,&quot;aline&quot;),&quot;below traces&quot;===t.baxis.layer&amp;&amp;r.push(&quot;baxis&quot;,&quot;bline&quot;),&quot;below traces&quot;===t.caxis.layer&amp;&amp;r.push(&quot;caxis&quot;,&quot;cline&quot;),r.push(&quot;frontplot&quot;),&quot;above traces&quot;===t.aaxis.layer&amp;&amp;r.push(&quot;aaxis&quot;,&quot;aline&quot;),&quot;above traces&quot;===t.baxis.layer&amp;&amp;r.push(&quot;baxis&quot;,&quot;bline&quot;),&quot;above traces&quot;===t.caxis.layer&amp;&amp;r.push(&quot;caxis&quot;,&quot;cline&quot;);var i=this.plotContainer.selectAll(&quot;g.toplevel&quot;).data(r,String),a=[&quot;agrid&quot;,&quot;bgrid&quot;,&quot;cgrid&quot;];i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;toplevel &quot;+t})).each((function(t){var r=n.select(this);e[t]=r,&quot;frontplot&quot;===t?r.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0):&quot;backplot&quot;===t?r.append(&quot;g&quot;).classed(&quot;maplayer&quot;,!0):&quot;plotbg&quot;===t?r.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;):&quot;aline&quot;===t||&quot;bline&quot;===t||&quot;cline&quot;===t?r.append(&quot;path&quot;):&quot;grids&quot;===t&amp;&amp;a.forEach((function(t){e[t]=r.append(&quot;g&quot;).classed(&quot;grid &quot;+t,!0)}))})),i.order()};var E=Math.sqrt(4/3);S.adjustLayout=function(t,e){var r,n,i,a,o,l,p=this,d=t.domain,m=(d.x[0]+d.x[1])/2,g=(d.y[0]+d.y[1])/2,v=d.x[1]-d.x[0],y=d.y[1]-d.y[0],x=v*e.w,b=y*e.h,_=t.sum,w=t.aaxis.min,T=t.baxis.min,k=t.caxis.min;x&gt;E*b?i=(a=b)*E:a=(i=x)/E,o=v*i/x,l=y*a/b,r=e.l+e.w*m-i/2,n=e.t+e.h*(1-g)-a/2,p.x0=r,p.y0=n,p.w=i,p.h=a,p.sum=_,p.xaxis={type:&quot;linear&quot;,range:[w+2*k-_,_-w-2*T],domain:[m-o/2,m+o/2],_id:&quot;x&quot;},f(p.xaxis,p.graphDiv._fullLayout),p.xaxis.setScale(),p.xaxis.isPtWithinRange=function(t){return t.a&gt;=p.aaxis.range[0]&amp;&amp;t.a&lt;=p.aaxis.range[1]&amp;&amp;t.b&gt;=p.baxis.range[1]&amp;&amp;t.b&lt;=p.baxis.range[0]&amp;&amp;t.c&gt;=p.caxis.range[1]&amp;&amp;t.c&lt;=p.caxis.range[0]},p.yaxis={type:&quot;linear&quot;,range:[w,_-T-k],domain:[g-l/2,g+l/2],_id:&quot;y&quot;},f(p.yaxis,p.graphDiv._fullLayout),p.yaxis.setScale(),p.yaxis.isPtWithinRange=function(){return!0};var A=p.yaxis.domain[0],M=p.aaxis=h({},t.aaxis,{range:[w,_-T-k],side:&quot;left&quot;,tickangle:(+t.aaxis.tickangle||0)-30,domain:[A,A+l*E],anchor:&quot;free&quot;,position:0,_id:&quot;y&quot;,_length:i});f(M,p.graphDiv._fullLayout),M.setScale();var S=p.baxis=h({},t.baxis,{range:[_-w-k,T],side:&quot;bottom&quot;,domain:p.xaxis.domain,anchor:&quot;free&quot;,position:0,_id:&quot;x&quot;,_length:i});f(S,p.graphDiv._fullLayout),S.setScale();var L=p.caxis=h({},t.caxis,{range:[_-w-T,k],side:&quot;right&quot;,tickangle:(+t.caxis.tickangle||0)+30,domain:[A,A+l*E],anchor:&quot;free&quot;,position:0,_id:&quot;y&quot;,_length:i});f(L,p.graphDiv._fullLayout),L.setScale();var C=&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;h&quot;+i+&quot;l-&quot;+i/2+&quot;,-&quot;+a+&quot;Z&quot;;p.clipDef.select(&quot;path&quot;).attr(&quot;d&quot;,C),p.layers.plotbg.select(&quot;path&quot;).attr(&quot;d&quot;,C);var P=&quot;M0,&quot;+a+&quot;h&quot;+i+&quot;l-&quot;+i/2+&quot;,-&quot;+a+&quot;Z&quot;;p.clipDefRelative.select(&quot;path&quot;).attr(&quot;d&quot;,P);var I=s(r,n);p.plotContainer.selectAll(&quot;.scatterlayer,.maplayer&quot;).attr(&quot;transform&quot;,I),p.clipDefRelative.select(&quot;path&quot;).attr(&quot;transform&quot;,null);var O=s(r-S._offset,n+a);p.layers.baxis.attr(&quot;transform&quot;,O),p.layers.bgrid.attr(&quot;transform&quot;,O);var z=s(r+i/2,n)+&quot;rotate(30)&quot;+s(0,-M._offset);p.layers.aaxis.attr(&quot;transform&quot;,z),p.layers.agrid.attr(&quot;transform&quot;,z);var D=s(r+i/2,n)+&quot;rotate(-30)&quot;+s(0,-L._offset);p.layers.caxis.attr(&quot;transform&quot;,D),p.layers.cgrid.attr(&quot;transform&quot;,D),p.drawAxes(!0),p.layers.aline.select(&quot;path&quot;).attr(&quot;d&quot;,M.showline?&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;l&quot;+i/2+&quot;,-&quot;+a:&quot;M0,0&quot;).call(c.stroke,M.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(M.linewidth||0)+&quot;px&quot;),p.layers.bline.select(&quot;path&quot;).attr(&quot;d&quot;,S.showline?&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;h&quot;+i:&quot;M0,0&quot;).call(c.stroke,S.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(S.linewidth||0)+&quot;px&quot;),p.layers.cline.select(&quot;path&quot;).attr(&quot;d&quot;,L.showline?&quot;M&quot;+(r+i/2)+&quot;,&quot;+n+&quot;l&quot;+i/2+&quot;,&quot;+a:&quot;M0,0&quot;).call(c.stroke,L.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(L.linewidth||0)+&quot;px&quot;),p.graphDiv._context.staticPlot||p.initInteractions(),u.setClipUrl(p.layers.frontplot,p._hasClipOnAxisFalse?null:p.clipId,p.graphDiv)},S.drawAxes=function(t){var e=this.graphDiv,r=this.id.substr(7)+&quot;title&quot;,n=this.layers,i=this.aaxis,a=this.baxis,o=this.caxis;if(this.drawAx(i),this.drawAx(a),this.drawAx(o),t){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(o.showticklabels?.75*o.tickfont.size:0)+(&quot;outside&quot;===o.ticks?.87*o.ticklen:0)),c=(a.showticklabels?a.tickfont.size:0)+(&quot;outside&quot;===a.ticks?a.ticklen:0)+3;n[&quot;a-title&quot;]=b.draw(e,&quot;a&quot;+r,{propContainer:i,propName:this.id+&quot;.aaxis.title&quot;,placeholder:l(e,&quot;Click to enter Component A title&quot;),attributes:{x:this.x0+this.w/2,y:this.y0-i.title.font.size/3-s,&quot;text-anchor&quot;:&quot;middle&quot;}}),n[&quot;b-title&quot;]=b.draw(e,&quot;b&quot;+r,{propContainer:a,propName:this.id+&quot;.baxis.title&quot;,placeholder:l(e,&quot;Click to enter Component B title&quot;),attributes:{x:this.x0-c,y:this.y0+this.h+.83*a.title.font.size+c,&quot;text-anchor&quot;:&quot;middle&quot;}}),n[&quot;c-title&quot;]=b.draw(e,&quot;c&quot;+r,{propContainer:o,propName:this.id+&quot;.caxis.title&quot;,placeholder:l(e,&quot;Click to enter Component C title&quot;),attributes:{x:this.x0+this.w+c,y:this.y0+this.h+.83*o.title.font.size+c,&quot;text-anchor&quot;:&quot;middle&quot;}})}},S.drawAx=function(t){var e,r=this.graphDiv,n=t._name,i=n.charAt(0),a=t._id,s=this.layers[n],l=i+&quot;tickLayout&quot;,c=(e=t).ticks+String(e.ticklen)+String(e.showticklabels);this[l]!==c&amp;&amp;(s.selectAll(&quot;.&quot;+a+&quot;tick&quot;).remove(),this[l]=c),t.setScale();var u=d.calcTicks(t),f=d.clipEnds(t,u),h=d.makeTransTickFn(t),p=d.getTickSigns(t)[2],m=o.deg2rad(30),g=p*(t.linewidth||1)/2,v=p*t.ticklen,y=this.w,x=this.h,b=&quot;b&quot;===i?&quot;M0,&quot;+g+&quot;l&quot;+Math.sin(m)*v+&quot;,&quot;+Math.cos(m)*v:&quot;M&quot;+g+&quot;,0l&quot;+Math.cos(m)*v+&quot;,&quot;+-Math.sin(m)*v,_={a:&quot;M0,0l&quot;+x+&quot;,-&quot;+y/2,b:&quot;M0,0l-&quot;+y/2+&quot;,-&quot;+x,c:&quot;M0,0l-&quot;+x+&quot;,&quot;+y/2}[i];d.drawTicks(r,t,{vals:&quot;inside&quot;===t.ticks?f:u,layer:s,path:b,transFn:h,crisp:!1}),d.drawGrid(r,t,{vals:f,layer:this.layers[i+&quot;grid&quot;],path:_,transFn:h,crisp:!1}),d.drawLabels(r,t,{vals:u,layer:s,transFn:h,labelFns:d.makeLabelFns(t,0,30)})};var L=A.MINZOOM/2+.87,C=&quot;m-0.87,.5h&quot;+L+&quot;v3h-&quot;+(L+5.2)+&quot;l&quot;+(L/2+2.6)+&quot;,-&quot;+(.87*L+4.5)+&quot;l2.6,1.5l-&quot;+L/2+&quot;,&quot;+.87*L+&quot;Z&quot;,P=&quot;m0.87,.5h-&quot;+L+&quot;v3h&quot;+(L+5.2)+&quot;l-&quot;+(L/2+2.6)+&quot;,-&quot;+(.87*L+4.5)+&quot;l-2.6,1.5l&quot;+L/2+&quot;,&quot;+.87*L+&quot;Z&quot;,I=&quot;m0,1l&quot;+L/2+&quot;,&quot;+.87*L+&quot;l2.6,-1.5l-&quot;+(L/2+2.6)+&quot;,-&quot;+(.87*L+4.5)+&quot;l-&quot;+(L/2+2.6)+&quot;,&quot;+(.87*L+4.5)+&quot;l2.6,1.5l&quot;+L/2+&quot;,-&quot;+.87*L+&quot;Z&quot;,O=!0;function z(t){n.select(t).selectAll(&quot;.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners&quot;).remove()}S.clearSelect=function(){k(this.dragOptions),T(this.dragOptions.gd)},S.initInteractions=function(){var t,e,r,n,f,h,p,d,v,b,T,k,M=this,S=M.layers.plotbg.select(&quot;path&quot;).node(),L=M.graphDiv,D=L._fullLayout._zoomlayer;function R(t){var e={};return e[M.id+&quot;.aaxis.min&quot;]=t.a,e[M.id+&quot;.baxis.min&quot;]=t.b,e[M.id+&quot;.caxis.min&quot;]=t.c,e}function F(t,e){var r=L._fullLayout.clickmode;z(L),2===t&amp;&amp;(L.emit(&quot;plotly_doubleclick&quot;,null),a.call(&quot;_guiRelayout&quot;,L,R({a:0,b:0,c:0}))),r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;1===t&amp;&amp;w(e,L,[M.xaxis],[M.yaxis],M.id,M.dragOptions),r.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;g.click(L,e,M.id)}function B(t,e){return 1-e/M.h}function N(t,e){return 1-(t+(M.h-e)/Math.sqrt(3))/M.w}function j(t,e){return(t-(M.h-e)/Math.sqrt(3))/M.w}function U(i,a){var o=r+i*t,s=n+a*e,l=Math.max(0,Math.min(1,B(0,n),B(0,s))),c=Math.max(0,Math.min(1,N(r,n),N(o,s))),u=Math.max(0,Math.min(1,j(r,n),j(o,s))),m=(l/2+u)*M.w,g=(1-l/2-c)*M.w,y=(m+g)/2,x=g-m,_=(1-l)*M.h,w=_-x/E;x&lt;A.MINZOOM?(p=f,T.attr(&quot;d&quot;,v),k.attr(&quot;d&quot;,&quot;M0,0Z&quot;)):(p={a:f.a+l*h,b:f.b+c*h,c:f.c+u*h},T.attr(&quot;d&quot;,v+&quot;M&quot;+m+&quot;,&quot;+_+&quot;H&quot;+g+&quot;L&quot;+y+&quot;,&quot;+w+&quot;L&quot;+m+&quot;,&quot;+_+&quot;Z&quot;),k.attr(&quot;d&quot;,&quot;M&quot;+r+&quot;,&quot;+n+&quot;m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2ZM&quot;+m+&quot;,&quot;+_+C+&quot;M&quot;+g+&quot;,&quot;+_+P+&quot;M&quot;+y+&quot;,&quot;+w+I)),b||(T.transition().style(&quot;fill&quot;,d&gt;.2?&quot;rgba(0,0,0,0.4)&quot;:&quot;rgba(255,255,255,0.3)&quot;).duration(200),k.transition().style(&quot;opacity&quot;,1).duration(200),b=!0),L.emit(&quot;plotly_relayouting&quot;,R(p))}function V(){z(L),p!==f&amp;&amp;(a.call(&quot;_guiRelayout&quot;,L,R(p)),O&amp;&amp;L.data&amp;&amp;L._context.showTips&amp;&amp;(o.notifier(l(L,&quot;Double-click to zoom back out&quot;),&quot;long&quot;),O=!1))}function H(t,e){var r=t/M.xaxis._m,n=e/M.yaxis._m,i=[(p={a:f.a-n,b:f.b+(r+n)/2,c:f.c-(r-n)/2}).a,p.b,p.c].sort(o.sorterAsc),a=i.indexOf(p.a),l=i.indexOf(p.b),c=i.indexOf(p.c);i[0]&lt;0&amp;&amp;(i[1]+i[0]/2&lt;0?(i[2]+=i[0]+i[1],i[0]=i[1]=0):(i[2]+=i[0]/2,i[1]+=i[0]/2,i[0]=0),p={a:i[a],b:i[l],c:i[c]},e=(f.a-p.a)*M.yaxis._m,t=(f.c-p.c-f.b+p.b)*M.xaxis._m);var h=s(M.x0+t,M.y0+e);M.plotContainer.selectAll(&quot;.scatterlayer,.maplayer&quot;).attr(&quot;transform&quot;,h);var d=s(-t,-e);M.clipDefRelative.select(&quot;path&quot;).attr(&quot;transform&quot;,d),M.aaxis.range=[p.a,M.sum-p.b-p.c],M.baxis.range=[M.sum-p.a-p.c,p.b],M.caxis.range=[M.sum-p.a-p.b,p.c],M.drawAxes(!1),M._hasClipOnAxisFalse&amp;&amp;M.plotContainer.select(&quot;.scatterlayer&quot;).selectAll(&quot;.trace&quot;).call(u.hideOutsideRangePoints,M),L.emit(&quot;plotly_relayouting&quot;,R(p))}function q(){a.call(&quot;_guiRelayout&quot;,L,R(p))}this.dragOptions={element:S,gd:L,plotinfo:{id:M.id,domain:L._fullLayout[M.id].domain,xaxis:M.xaxis,yaxis:M.yaxis},subplot:M.id,prepFn:function(a,l,u){M.dragOptions.xaxes=[M.xaxis],M.dragOptions.yaxes=[M.yaxis],t=L._fullLayout._invScaleX,e=L._fullLayout._invScaleY;var m=M.dragOptions.dragmode=L._fullLayout.dragmode;y(m)?M.dragOptions.minDrag=1:M.dragOptions.minDrag=void 0,&quot;zoom&quot;===m?(M.dragOptions.moveFn=U,M.dragOptions.clickFn=F,M.dragOptions.doneFn=V,function(t,e,a){var l=S.getBoundingClientRect();r=e-l.left,n=a-l.top,L._fullLayout._calcInverseTransform(L);var u=L._fullLayout._invTransform,m=o.apply3DTransform(u)(r,n);r=m[0],n=m[1],f={a:M.aaxis.range[0],b:M.baxis.range[1],c:M.caxis.range[1]},p=f,h=M.aaxis.range[1]-f.a,d=i(M.graphDiv._fullLayout[M.id].bgcolor).getLuminance(),v=&quot;M0,&quot;+M.h+&quot;L&quot;+M.w/2+&quot;, 0L&quot;+M.w+&quot;,&quot;+M.h+&quot;Z&quot;,b=!1,T=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox&quot;).attr(&quot;transform&quot;,s(M.x0,M.y0)).style({fill:d&gt;.2?&quot;rgba(0,0,0,0)&quot;:&quot;rgba(255,255,255,0)&quot;,&quot;stroke-width&quot;:0}).attr(&quot;d&quot;,v),k=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).attr(&quot;transform&quot;,s(M.x0,M.y0)).style({fill:c.background,stroke:c.defaultLine,&quot;stroke-width&quot;:1,opacity:0}).attr(&quot;d&quot;,&quot;M0,0Z&quot;),M.clearSelect(L)}(0,l,u)):&quot;pan&quot;===m?(M.dragOptions.moveFn=H,M.dragOptions.clickFn=F,M.dragOptions.doneFn=q,f={a:M.aaxis.range[0],b:M.baxis.range[1],c:M.caxis.range[1]},p=f,M.clearSelect(L)):(x(m)||y(m))&amp;&amp;_(a,l,u,M.dragOptions,m)}},S.onmousemove=function(t){g.hover(L,t,M.id),L._fullLayout._lasthover=S,L._fullLayout._hoversubplot=M.id},S.onmouseout=function(t){L._dragging||m.unhover(L,t)},m.init(this.dragOptions)}},{&quot;../../components/color&quot;:366,&quot;../../components/dragelement&quot;:385,&quot;../../components/dragelement/helpers&quot;:384,&quot;../../components/drawing&quot;:388,&quot;../../components/fx&quot;:406,&quot;../../components/titles&quot;:464,&quot;../../lib&quot;:503,&quot;../../lib/extend&quot;:493,&quot;../../registry&quot;:638,&quot;../cartesian/axes&quot;:554,&quot;../cartesian/constants&quot;:561,&quot;../cartesian/select&quot;:575,&quot;../cartesian/set_convert&quot;:576,&quot;../plots&quot;:619,&quot;@plotly/d3&quot;:58,tinycolor2:312}],638:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/loggers&quot;),i=t(&quot;./lib/noop&quot;),a=t(&quot;./lib/push_unique&quot;),o=t(&quot;./lib/is_plain_object&quot;),s=t(&quot;./lib/dom&quot;).addStyleRule,l=t(&quot;./lib/extend&quot;),c=t(&quot;./plots/attributes&quot;),u=t(&quot;./plots/layout_attributes&quot;),f=l.extendFlat,h=l.extendDeepAll;function p(t){var e=t.name,i=t.categories,a=t.meta;if(r.modules[e])n.log(&quot;Type &quot;+e+&quot; already registered&quot;);else{r.subplotsRegistry[t.basePlotModule.name]||function(t){var e=t.name;if(r.subplotsRegistry[e])return void n.log(&quot;Plot type &quot;+e+&quot; already registered.&quot;);for(var i in v(t),r.subplotsRegistry[e]=t,r.componentsRegistry)b(i,t.name)}(t.basePlotModule);for(var o={},l=0;l&lt;i.length;l++)o[i[l]]=!0,r.allCategories[i[l]]=!0;for(var c in r.modules[e]={_module:t,categories:o},a&amp;&amp;Object.keys(a).length&amp;&amp;(r.modules[e].meta=a),r.allTypes.push(e),r.componentsRegistry)y(c,e);t.layoutAttributes&amp;&amp;f(r.traceLayoutAttributes,t.layoutAttributes);var u=t.basePlotModule,h=u.name;if(&quot;mapbox&quot;===h){var p=u.constants.styleRules;for(var d in p)s(&quot;.js-plotly-plot .plotly .mapboxgl-&quot;+d,p[d])}&quot;geo&quot;!==h&amp;&amp;&quot;mapbox&quot;!==h||void 0===typeof window||void 0!==window.PlotlyGeoAssets||(window.PlotlyGeoAssets={topojson:{}})}}function d(t){if(&quot;string&quot;!=typeof t.name)throw new Error(&quot;Component module *name* must be a string.&quot;);var e=t.name;for(var n in r.componentsRegistry[e]=t,t.layoutAttributes&amp;&amp;(t.layoutAttributes._isLinkedToArray&amp;&amp;a(r.layoutArrayContainers,e),v(t)),r.modules)y(e,n);for(var i in r.subplotsRegistry)b(e,i);for(var o in r.transformsRegistry)x(e,o);t.schema&amp;&amp;t.schema.layout&amp;&amp;h(u,t.schema.layout)}function m(t){if(&quot;string&quot;!=typeof t.name)throw new Error(&quot;Transform module *name* must be a string.&quot;);var e=&quot;Transform module &quot;+t.name,i=&quot;function&quot;==typeof t.transform,a=&quot;function&quot;==typeof t.calcTransform;if(!i&amp;&amp;!a)throw new Error(e+&quot; is missing a *transform* or *calcTransform* method.&quot;);for(var s in i&amp;&amp;a&amp;&amp;n.log([e+&quot; has both a *transform* and *calcTransform* methods.&quot;,&quot;Please note that all *transform* methods are executed&quot;,&quot;before all *calcTransform* methods.&quot;].join(&quot; &quot;)),o(t.attributes)||n.log(e+&quot; registered without an *attributes* object.&quot;),&quot;function&quot;!=typeof t.supplyDefaults&amp;&amp;n.log(e+&quot; registered without a *supplyDefaults* method.&quot;),r.transformsRegistry[t.name]=t,r.componentsRegistry)x(s,t.name)}function g(t){var e=t.name,n=e.split(&quot;-&quot;)[0],i=t.dictionary,a=t.format,o=i&amp;&amp;Object.keys(i).length,s=a&amp;&amp;Object.keys(a).length,l=r.localeRegistry,c=l[e];if(c||(l[e]=c={}),n!==e){var u=l[n];u||(l[n]=u={}),o&amp;&amp;u.dictionary===c.dictionary&amp;&amp;(u.dictionary=i),s&amp;&amp;u.format===c.format&amp;&amp;(u.format=a)}o&amp;&amp;(c.dictionary=i),s&amp;&amp;(c.format=a)}function v(t){if(t.layoutAttributes){var e=t.layoutAttributes._arrayAttrRegexps;if(e)for(var n=0;n&lt;e.length;n++)a(r.layoutArrayRegexes,e[n])}}function y(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.traces){var i=n.traces[e];i&amp;&amp;h(r.modules[e]._module.attributes,i)}}function x(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.transforms){var i=n.transforms[e];i&amp;&amp;h(r.transformsRegistry[e].attributes,i)}}function b(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.subplots){var i=r.subplotsRegistry[e],a=i.layoutAttributes,o=&quot;subplot&quot;===i.attr?i.name:i.attr;Array.isArray(o)&amp;&amp;(o=o[0]);var s=n.subplots[o];a&amp;&amp;s&amp;&amp;h(a,s)}}function _(t){return&quot;object&quot;==typeof t&amp;&amp;(t=t.type),t}r.modules={},r.allCategories={},r.allTypes=[],r.subplotsRegistry={},r.transformsRegistry={},r.componentsRegistry={},r.layoutArrayContainers=[],r.layoutArrayRegexes=[],r.traceLayoutAttributes={},r.localeRegistry={},r.apiMethodRegistry={},r.collectableSubplotTypes=null,r.register=function(t){if(r.collectableSubplotTypes=null,!t)throw new Error(&quot;No argument passed to Plotly.register.&quot;);t&amp;&amp;!Array.isArray(t)&amp;&amp;(t=[t]);for(var e=0;e&lt;t.length;e++){var n=t[e];if(!n)throw new Error(&quot;Invalid module was attempted to be registered!&quot;);switch(n.moduleType){case&quot;trace&quot;:p(n);break;case&quot;transform&quot;:m(n);break;case&quot;component&quot;:d(n);break;case&quot;locale&quot;:g(n);break;case&quot;apiMethod&quot;:var i=n.name;r.apiMethodRegistry[i]=n.fn;break;default:throw new Error(&quot;Invalid module was attempted to be registered!&quot;)}}},r.getModule=function(t){var e=r.modules[_(t)];return!!e&amp;&amp;e._module},r.traceIs=function(t,e){if(&quot;various&quot;===(t=_(t)))return!1;var i=r.modules[t];return i||(t&amp;&amp;n.log(&quot;Unrecognized trace type &quot;+t+&quot;.&quot;),i=r.modules[c.type.dflt]),!!i.categories[e]},r.getTransformIndices=function(t,e){for(var r=[],n=t.transforms||[],i=0;i&lt;n.length;i++)n[i].type===e&amp;&amp;r.push(i);return r},r.hasTransform=function(t,e){for(var r=t.transforms||[],n=0;n&lt;r.length;n++)if(r[n].type===e)return!0;return!1},r.getComponentMethod=function(t,e){var n=r.componentsRegistry[t];return n&amp;&amp;n[e]||i},r.call=function(){var t=arguments[0],e=[].slice.call(arguments,1);return r.apiMethodRegistry[t].apply(null,e)}},{&quot;./lib/dom&quot;:491,&quot;./lib/extend&quot;:493,&quot;./lib/is_plain_object&quot;:504,&quot;./lib/loggers&quot;:507,&quot;./lib/noop&quot;:512,&quot;./lib/push_unique&quot;:518,&quot;./plots/attributes&quot;:550,&quot;./plots/layout_attributes&quot;:610}],639:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;),a=i.extendFlat,o=i.extendDeep;function s(t){var e;switch(t){case&quot;themes__thumb&quot;:e={autosize:!0,width:150,height:150,title:{text:&quot;&quot;},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case&quot;thumbnail&quot;:e={title:{text:&quot;&quot;},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:&quot;&quot;,margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:e={}}return e}e.exports=function(t,e){var r,i,l=t.data,c=t.layout,u=o([],l),f=o({},c,s(e.tileClass)),h=t._context||{};if(e.width&amp;&amp;(f.width=e.width),e.height&amp;&amp;(f.height=e.height),&quot;thumbnail&quot;===e.tileClass||&quot;themes__thumb&quot;===e.tileClass){f.annotations=[];var p=Object.keys(f);for(r=0;r&lt;p.length;r++)i=p[r],[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;].indexOf(i.slice(0,5))&gt;-1&amp;&amp;(f[p[r]].title={text:&quot;&quot;});for(r=0;r&lt;u.length;r++){var d=u[r];d.showscale=!1,d.marker&amp;&amp;(d.marker.showscale=!1),n.traceIs(d,&quot;pie-like&quot;)&amp;&amp;(d.textposition=&quot;none&quot;)}}if(Array.isArray(e.annotations))for(r=0;r&lt;e.annotations.length;r++)f.annotations.push(e.annotations[r]);var m=Object.keys(f).filter((function(t){return t.match(/^scene\d*$/)}));if(m.length){var g={};for(&quot;thumbnail&quot;===e.tileClass&amp;&amp;(g={title:{text:&quot;&quot;},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),r=0;r&lt;m.length;r++){var v=f[m[r]];v.xaxis||(v.xaxis={}),v.yaxis||(v.yaxis={}),v.zaxis||(v.zaxis={}),a(v.xaxis,g),a(v.yaxis,g),a(v.zaxis,g),v._scene=null}}var y=document.createElement(&quot;div&quot;);e.tileClass&amp;&amp;(y.className=e.tileClass);var x={gd:y,td:y,layout:f,data:u,config:{staticPlot:void 0===e.staticPlot||e.staticPlot,plotGlPixelRatio:void 0===e.plotGlPixelRatio?2:e.plotGlPixelRatio,displaylogo:e.displaylogo||!1,showLink:e.showLink||!1,showTips:e.showTips||!1,mapboxAccessToken:h.mapboxAccessToken}};return&quot;transparent&quot;!==e.setBackground&amp;&amp;(x.config.setBackground=e.setBackground||&quot;opaque&quot;),x.gd.defaultLayout=s(e.tileClass),x}},{&quot;../lib&quot;:503,&quot;../registry&quot;:638}],640:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/to_image&quot;),a=t(&quot;./filesaver&quot;),o=t(&quot;./helpers&quot;);e.exports=function(t,e){var r;return n.isPlainObject(t)||(r=n.getGraphDiv(t)),(e=e||{}).format=e.format||&quot;png&quot;,e.width=e.width||null,e.height=e.height||null,e.imageDataOnly=!0,new Promise((function(s,l){r&amp;&amp;r._snapshotInProgress&amp;&amp;l(new Error(&quot;Snapshotting already in progress.&quot;)),n.isIE()&amp;&amp;&quot;svg&quot;!==e.format&amp;&amp;l(new Error(o.MSG_IE_BAD_FORMAT)),r&amp;&amp;(r._snapshotInProgress=!0);var c=i(t,e),u=e.filename||t.fn||&quot;newplot&quot;;u+=&quot;.&quot;+e.format.replace(&quot;-&quot;,&quot;.&quot;),c.then((function(t){return r&amp;&amp;(r._snapshotInProgress=!1),a(t,u,e.format)})).then((function(t){s(t)})).catch((function(t){r&amp;&amp;(r._snapshotInProgress=!1),l(t)}))}))}},{&quot;../lib&quot;:503,&quot;../plot_api/to_image&quot;:546,&quot;./filesaver&quot;:641,&quot;./helpers&quot;:642}],641:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;./helpers&quot;);e.exports=function(t,e,r){var a=document.createElement(&quot;a&quot;),o=&quot;download&quot;in a;return new Promise((function(s,l){var c,u;if(n.isIE())return c=i.createBlob(t,&quot;svg&quot;),window.navigator.msSaveBlob(c,e),c=null,s(e);if(o)return c=i.createBlob(t,r),u=i.createObjectURL(c),a.href=u,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),i.revokeObjectURL(u),c=null,s(e);if(n.isSafari()){var f=&quot;svg&quot;===r?&quot;,&quot;:&quot;;base64,&quot;;return i.octetStream(f+encodeURIComponent(t)),s(e)}l(new Error(&quot;download error&quot;))}))}},{&quot;../lib&quot;:503,&quot;./helpers&quot;:642}],642:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);r.getDelay=function(t){return t._has&amp;&amp;(t._has(&quot;gl3d&quot;)||t._has(&quot;gl2d&quot;)||t._has(&quot;mapbox&quot;))?500:0},r.getRedrawFunc=function(t){return function(){n.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t)}},r.encodeSVG=function(t){return&quot;data:image/svg+xml,&quot;+encodeURIComponent(t)},r.encodeJSON=function(t){return&quot;data:application/json,&quot;+encodeURIComponent(t)};var i=window.URL||window.webkitURL;r.createObjectURL=function(t){return i.createObjectURL(t)},r.revokeObjectURL=function(t){return i.revokeObjectURL(t)},r.createBlob=function(t,e){if(&quot;svg&quot;===e)return new window.Blob([t],{type:&quot;image/svg+xml;charset=utf-8&quot;});if(&quot;full-json&quot;===e)return new window.Blob([t],{type:&quot;application/json;charset=utf-8&quot;});var r=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r),i=0;i&lt;e;i++)n[i]=t.charCodeAt(i);return r}(window.atob(t));return new window.Blob([r],{type:&quot;image/&quot;+e})},r.octetStream=function(t){document.location.href=&quot;data:application/octet-stream&quot;+t},r.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/,r.MSG_IE_BAD_FORMAT=&quot;Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.&quot;},{&quot;../registry&quot;:638}],643:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./helpers&quot;),i={getDelay:n.getDelay,getRedrawFunc:n.getRedrawFunc,clone:t(&quot;./cloneplot&quot;),toSVG:t(&quot;./tosvg&quot;),svgToImg:t(&quot;./svgtoimg&quot;),toImage:t(&quot;./toimage&quot;),downloadImage:t(&quot;./download&quot;)};e.exports=i},{&quot;./cloneplot&quot;:639,&quot;./download&quot;:640,&quot;./helpers&quot;:642,&quot;./svgtoimg&quot;:644,&quot;./toimage&quot;:645,&quot;./tosvg&quot;:646}],644:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;events&quot;).EventEmitter,a=t(&quot;./helpers&quot;);e.exports=function(t){var e=t.emitter||new i,r=new Promise((function(i,o){var s=window.Image,l=t.svg,c=t.format||&quot;png&quot;;if(n.isIE()&amp;&amp;&quot;svg&quot;!==c){var u=new Error(a.MSG_IE_BAD_FORMAT);return o(u),t.promise?r:e.emit(&quot;error&quot;,u)}var f,h,p=t.canvas,d=t.scale||1,m=t.width||300,g=t.height||150,v=d*m,y=d*g,x=p.getContext(&quot;2d&quot;),b=new s;&quot;svg&quot;===c||n.isSafari()?h=a.encodeSVG(l):(f=a.createBlob(l,&quot;svg&quot;),h=a.createObjectURL(f)),p.width=v,p.height=y,b.onload=function(){var r;switch(f=null,a.revokeObjectURL(h),&quot;svg&quot;!==c&amp;&amp;x.drawImage(b,0,0,v,y),c){case&quot;jpeg&quot;:r=p.toDataURL(&quot;image/jpeg&quot;);break;case&quot;png&quot;:r=p.toDataURL(&quot;image/png&quot;);break;case&quot;webp&quot;:r=p.toDataURL(&quot;image/webp&quot;);break;case&quot;svg&quot;:r=h;break;default:var n=&quot;Image format is not jpeg, png, svg or webp.&quot;;if(o(new Error(n)),!t.promise)return e.emit(&quot;error&quot;,n)}i(r),t.promise||e.emit(&quot;success&quot;,r)},b.onerror=function(r){if(f=null,a.revokeObjectURL(h),o(r),!t.promise)return e.emit(&quot;error&quot;,r)},b.src=h}));return t.promise?r:e}},{&quot;../lib&quot;:503,&quot;./helpers&quot;:642,events:84}],645:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;events&quot;).EventEmitter,i=t(&quot;../registry&quot;),a=t(&quot;../lib&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;./cloneplot&quot;),l=t(&quot;./tosvg&quot;),c=t(&quot;./svgtoimg&quot;);e.exports=function(t,e){var r=new n,u=s(t,{format:&quot;png&quot;}),f=u.gd;f.style.position=&quot;absolute&quot;,f.style.left=&quot;-5000px&quot;,document.body.appendChild(f);var h=o.getRedrawFunc(f);return i.call(&quot;_doPlot&quot;,f,u.data,u.layout,u.config).then(h).then((function(){var t=o.getDelay(f._fullLayout);setTimeout((function(){var t=l(f),n=document.createElement(&quot;canvas&quot;);n.id=a.randstr(),(r=c({format:e.format,width:f._fullLayout.width,height:f._fullLayout.height,canvas:n,emitter:r,svg:t})).clean=function(){f&amp;&amp;document.body.removeChild(f)}}),t)})).catch((function(t){r.emit(&quot;error&quot;,t)})),r}},{&quot;../lib&quot;:503,&quot;../registry&quot;:638,&quot;./cloneplot&quot;:639,&quot;./helpers&quot;:642,&quot;./svgtoimg&quot;:644,&quot;./tosvg&quot;:646,events:84}],646:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../components/drawing&quot;),o=t(&quot;../components/color&quot;),s=t(&quot;../constants/xmlns_namespaces&quot;),l=/&quot;/g,c=new RegExp('(&quot;TOBESTRIPPED)|(TOBESTRIPPED&quot;)',&quot;g&quot;);e.exports=function(t,e,r){var u,f,h=t._fullLayout,p=h._paper,d=h._toppaper,m=h.width,g=h.height;p.insert(&quot;rect&quot;,&quot;:first-child&quot;).call(a.setRect,0,0,m,g).call(o.fill,h.paper_bgcolor);var v=h._basePlotModules||[];for(u=0;u&lt;v.length;u++){var y=v[u];y.toSVG&amp;&amp;y.toSVG(t)}if(d){var x=d.node().childNodes,b=Array.prototype.slice.call(x);for(u=0;u&lt;b.length;u++){var _=b[u];_.childNodes.length&amp;&amp;p.node().appendChild(_)}}h._draggers&amp;&amp;h._draggers.remove(),p.node().style.background=&quot;&quot;,p.selectAll(&quot;text&quot;).attr({&quot;data-unformatted&quot;:null,&quot;data-math&quot;:null}).each((function(){var t=n.select(this);if(&quot;hidden&quot;!==this.style.visibility&amp;&amp;&quot;none&quot;!==this.style.display){t.style({visibility:null,display:null});var e=this.style.fontFamily;e&amp;&amp;-1!==e.indexOf('&quot;')&amp;&amp;t.style(&quot;font-family&quot;,e.replace(l,&quot;TOBESTRIPPED&quot;))}else t.remove()}));var w=[];if(h._gradientUrlQueryParts)for(f in h._gradientUrlQueryParts)w.push(f);if(h._patternUrlQueryParts)for(f in h._patternUrlQueryParts)w.push(f);w.length&amp;&amp;p.selectAll(w.join(&quot;,&quot;)).each((function(){var t=n.select(this),e=this.style.fill;e&amp;&amp;-1!==e.indexOf(&quot;url(&quot;)&amp;&amp;t.style(&quot;fill&quot;,e.replace(l,&quot;TOBESTRIPPED&quot;));var r=this.style.stroke;r&amp;&amp;-1!==r.indexOf(&quot;url(&quot;)&amp;&amp;t.style(&quot;stroke&quot;,r.replace(l,&quot;TOBESTRIPPED&quot;))})),&quot;pdf&quot;!==e&amp;&amp;&quot;eps&quot;!==e||p.selectAll(&quot;#MathJax_SVG_glyphs path&quot;).attr(&quot;stroke-width&quot;,0),p.node().setAttributeNS(s.xmlns,&quot;xmlns&quot;,s.svg),p.node().setAttributeNS(s.xmlns,&quot;xmlns:xlink&quot;,s.xlink),&quot;svg&quot;===e&amp;&amp;r&amp;&amp;(p.attr(&quot;width&quot;,r*m),p.attr(&quot;height&quot;,r*g),p.attr(&quot;viewBox&quot;,&quot;0 0 &quot;+m+&quot; &quot;+g));var T=(new window.XMLSerializer).serializeToString(p.node());return T=function(t){var e=n.select(&quot;body&quot;).append(&quot;div&quot;).style({display:&quot;none&quot;}).html(&quot;&quot;),r=t.replace(/(&amp;[^;]*;)/gi,(function(t){return&quot;&amp;lt;&quot;===t?&quot;&amp;#60;&quot;:&quot;&amp;rt;&quot;===t?&quot;&amp;#62;&quot;:-1!==t.indexOf(&quot;&lt;&quot;)||-1!==t.indexOf(&quot;&gt;&quot;)?&quot;&quot;:e.html(t).text()}));return e.remove(),r}(T),T=(T=T.replace(/&amp;(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,&quot;&amp;amp;&quot;)).replace(c,&quot;'&quot;),i.isIE()&amp;&amp;(T=(T=(T=T.replace(/&quot;/gi,&quot;'&quot;)).replace(/(\('#)([^']*)('\))/gi,'(&quot;#$2&quot;)')).replace(/(\\')/gi,'&quot;')),T}},{&quot;../components/color&quot;:366,&quot;../components/drawing&quot;:388,&quot;../constants/xmlns_namespaces&quot;:480,&quot;../lib&quot;:503,&quot;@plotly/d3&quot;:58}],647:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;);var i=e.marker;if(i){n.mergeArray(i.opacity,t,&quot;mo&quot;,!0),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;a&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;))}}},{&quot;../../lib&quot;:503}],648:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../plots/font_attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../components/drawing/attributes&quot;).pattern,f=t(&quot;../../lib/extend&quot;).extendFlat,h=l({editType:&quot;calc&quot;,arrayOk:!0,colorEditType:&quot;style&quot;}),p=f({},n.marker.line.width,{dflt:0}),d=f({width:p,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),m=f({line:d,editType:&quot;calc&quot;},s(&quot;marker&quot;),{opacity:{valType:&quot;number&quot;,arrayOk:!0,dflt:1,min:0,max:1,editType:&quot;style&quot;},pattern:u});e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),text:n.text,texttemplate:o({editType:&quot;plot&quot;},{keys:c.eventDataKeys}),hovertext:n.hovertext,hovertemplate:a({},{keys:c.eventDataKeys}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;auto&quot;,&quot;none&quot;],dflt:&quot;auto&quot;,arrayOk:!0,editType:&quot;calc&quot;},insidetextanchor:{valType:&quot;enumerated&quot;,values:[&quot;end&quot;,&quot;middle&quot;,&quot;start&quot;],dflt:&quot;end&quot;,editType:&quot;plot&quot;},textangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;plot&quot;},textfont:f({},h,{}),insidetextfont:f({},h,{}),outsidetextfont:f({},h,{}),constraintext:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;both&quot;,&quot;none&quot;],dflt:&quot;both&quot;,editType:&quot;calc&quot;},cliponaxis:f({},n.cliponaxis,{}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc+clearAxisTypes&quot;},base:{valType:&quot;any&quot;,dflt:null,arrayOk:!0,editType:&quot;calc&quot;},offset:{valType:&quot;number&quot;,dflt:null,arrayOk:!0,editType:&quot;calc&quot;},width:{valType:&quot;number&quot;,dflt:null,min:0,arrayOk:!0,editType:&quot;calc&quot;},marker:m,offsetgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},alignmentgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},selected:{marker:{opacity:n.selected.marker.opacity,color:n.selected.marker.color,editType:&quot;style&quot;},textfont:n.selected.textfont,editType:&quot;style&quot;},unselected:{marker:{opacity:n.unselected.marker.opacity,color:n.unselected.marker.color,editType:&quot;style&quot;},textfont:n.unselected.textfont,editType:&quot;style&quot;},_deprecated:{bardir:{valType:&quot;enumerated&quot;,editType:&quot;calc&quot;,values:[&quot;v&quot;,&quot;h&quot;]}}}},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../components/drawing/attributes&quot;:387,&quot;../../lib/extend&quot;:493,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/font_attributes&quot;:585,&quot;../../plots/template_attributes&quot;:633,&quot;../scatter/attributes&quot;:926,&quot;./constants&quot;:650}],649:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,o=t(&quot;../../components/colorscale/calc&quot;),s=t(&quot;./arrays_to_calcdata&quot;),l=t(&quot;../scatter/calc_selection&quot;);e.exports=function(t,e){var r,c,u,f,h,p,d=n.getFromId(t,e.xaxis||&quot;x&quot;),m=n.getFromId(t,e.yaxis||&quot;y&quot;),g={msUTC:!(!e.base&amp;&amp;0!==e.base)};&quot;h&quot;===e.orientation?(r=d.makeCalcdata(e,&quot;x&quot;,g),u=m.makeCalcdata(e,&quot;y&quot;),f=i(e,m,&quot;y&quot;,u),h=!!e.yperiodalignment,p=&quot;y&quot;):(r=m.makeCalcdata(e,&quot;y&quot;,g),u=d.makeCalcdata(e,&quot;x&quot;),f=i(e,d,&quot;x&quot;,u),h=!!e.xperiodalignment,p=&quot;x&quot;),c=f.vals;for(var v=Math.min(c.length,r.length),y=new Array(v),x=0;x&lt;v;x++)y[x]={p:c[x],s:r[x]},h&amp;&amp;(y[x].orig_p=u[x],y[x][p+&quot;End&quot;]=f.ends[x],y[x][p+&quot;Start&quot;]=f.starts[x]),e.ids&amp;&amp;(y[x].id=String(e.ids[x]));return a(e,&quot;marker&quot;)&amp;&amp;o(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),a(e,&quot;marker.line&quot;)&amp;&amp;o(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}),s(y,e),l(y,e),y}},{&quot;../../components/colorscale/calc&quot;:374,&quot;../../components/colorscale/helpers&quot;:377,&quot;../../plots/cartesian/align_period&quot;:551,&quot;../../plots/cartesian/axes&quot;:554,&quot;../scatter/calc_selection&quot;:928,&quot;./arrays_to_calcdata&quot;:647}],650:[function(t,e,r){&quot;use strict&quot;;e.exports={TEXTPAD:3,eventDataKeys:[&quot;value&quot;,&quot;label&quot;]}},{}],651:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray,a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../registry&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,c=t(&quot;./sieve.js&quot;);function u(t,e,r,o,u){if(o.length){var b,_,w,T;switch(function(t,e){var r,a;for(r=0;r&lt;e.length;r++){var o,s=e[r],l=s[0].trace,c=&quot;funnel&quot;===l.type?l._base:l.base,u=&quot;h&quot;===l.orientation?l.xcalendar:l.ycalendar,f=&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?function(){return null}:t.d2c;if(i(c)){for(a=0;a&lt;Math.min(c.length,s.length);a++)o=f(c[a],0,u),n(o)?(s[a].b=+o,s[a].hasB=1):s[a].b=0;for(;a&lt;s.length;a++)s[a].b=0}else{o=f(c,0,u);var h=n(o);for(o=h?o:0,a=0;a&lt;s.length;a++)s[a].b=o,h&amp;&amp;(s[a].hasB=1)}}}(r,o),u.mode){case&quot;overlay&quot;:f(e,r,o,u);break;case&quot;group&quot;:for(b=[],_=[],w=0;w&lt;o.length;w++)void 0===(T=o[w])[0].trace.offset?_.push(T):b.push(T);_.length&amp;&amp;function(t,e,r,n,i){var o=new c(n,{posAxis:e,sepNegVal:!1,overlapNoMerge:!i.norm});(function(t,e,r,n){for(var i=t._fullLayout,a=r.positions,o=r.distinctPositions,s=r.minDiff,c=r.traces,u=c.length,f=a.length!==o.length,h=s*(1-n.gap),g=l(i,e._id)+c[0][0].trace.orientation,v=i._alignmentOpts[g]||{},y=0;y&lt;u;y++){var x,b,_=c[y],w=_[0].trace,T=v[w.alignmentgroup]||{},k=Object.keys(T.offsetGroups||{}).length,A=(x=k?h/k:f?h/u:h)*(1-(n.groupgap||0));b=k?((2*w._offsetIndex+1-k)*x-A)/2:f?((2*y+1-u)*x-A)/2:-A/2;var M=_[0].t;M.barwidth=A,M.poffset=b,M.bargroupwidth=h,M.bardelta=s}r.binWidth=c[0][0].t.barwidth/100,p(r),d(e,r),m(e,r,f)})(t,e,o,i),function(t,e){for(var r=t.traces,n=0;n&lt;r.length;n++){var i=r[n];if(void 0===i[0].trace.base)for(var o=new c([i],{posAxis:e,sepNegVal:!0,overlapNoMerge:!0}),s=0;s&lt;i.length;s++){var l=i[s];if(l.p!==a){var u=o.put(l.p,l.b+l.s);u&amp;&amp;(l.b=u)}}}}(o,e),i.norm?(v(o),y(r,o,i)):g(r,o)}(t,e,r,_,u),b.length&amp;&amp;f(e,r,b,u);break;case&quot;stack&quot;:case&quot;relative&quot;:for(b=[],_=[],w=0;w&lt;o.length;w++)void 0===(T=o[w])[0].trace.base?_.push(T):b.push(T);_.length&amp;&amp;function(t,e,r,n,i){var o=new c(n,{posAxis:e,sepNegVal:&quot;relative&quot;===i.mode,overlapNoMerge:!(i.norm||&quot;stack&quot;===i.mode||&quot;relative&quot;===i.mode)});h(e,o,i),function(t,e,r){var n,i,o,l,c,u,f=x(t),h=e.traces;for(l=0;l&lt;h.length;l++)if(n=h[l],&quot;funnel&quot;===(i=n[0].trace).type)for(c=0;c&lt;n.length;c++)(u=n[c]).s!==a&amp;&amp;e.put(u.p,-.5*u.s);for(l=0;l&lt;h.length;l++){n=h[l],i=n[0].trace,o=&quot;funnel&quot;===i.type;var p=[];for(c=0;c&lt;n.length;c++)if((u=n[c]).s!==a){var d;d=o?u.s:u.s+u.b;var m=e.put(u.p,d),g=m+d;u.b=m,u[f]=g,r.norm||(p.push(g),u.hasB&amp;&amp;p.push(m))}r.norm||(i._extremes[t._id]=s.findExtremes(t,p,{tozero:!0,padded:!0}))}}(r,o,i);for(var l=0;l&lt;n.length;l++)for(var u=n[l],f=0;f&lt;u.length;f++){var p=u[f];if(p.s!==a)p.b+p.s===o.get(p.p,p.s)&amp;&amp;(p._outmost=!0)}i.norm&amp;&amp;y(r,o,i)}(0,e,r,_,u),b.length&amp;&amp;f(e,r,b,u)}!function(t,e){var r,i,a,o=x(e),s={},l=1/0,c=-1/0;for(r=0;r&lt;t.length;r++)for(a=t[r],i=0;i&lt;a.length;i++){var u=a[i].p;n(u)&amp;&amp;(l=Math.min(l,u),c=Math.max(c,u))}var f=1e4/(c-l),h=s.round=function(t){return String(Math.round(f*(t-l)))};for(r=0;r&lt;t.length;r++){(a=t[r])[0].t.extents=s;var p=a[0].t.poffset,d=Array.isArray(p);for(i=0;i&lt;a.length;i++){var m=a[i],g=m[o]-m.w/2;if(n(g)){var v=m[o]+m.w/2,y=h(m.p);s[y]?s[y]=[Math.min(g,s[y][0]),Math.max(v,s[y][1])]:s[y]=[g,v]}m.p0=m.p+(d?p[i]:p),m.p1=m.p0+m.w,m.s0=m.b,m.s1=m.s0+m.s}}}(o,e)}}function f(t,e,r,n){for(var i=0;i&lt;r.length;i++){var a=r[i],o=new c([a],{posAxis:t,sepNegVal:!1,overlapNoMerge:!n.norm});h(t,o,n),n.norm?(v(o),y(e,o,n)):g(e,o)}}function h(t,e,r){for(var n=e.minDiff,i=e.traces,a=n*(1-r.gap),o=a*(1-(r.groupgap||0)),s=-o/2,l=0;l&lt;i.length;l++){var c=i[l][0].t;c.barwidth=o,c.poffset=s,c.bargroupwidth=a,c.bardelta=n}e.binWidth=i[0][0].t.barwidth/100,p(e),d(t,e),m(t,e)}function p(t){var e,r,a=t.traces;for(e=0;e&lt;a.length;e++){var o,s=a[e],l=s[0],c=l.trace,u=l.t,f=c._offset||c.offset,h=u.poffset;if(i(f)){for(o=Array.prototype.slice.call(f,0,s.length),r=0;r&lt;o.length;r++)n(o[r])||(o[r]=h);for(r=o.length;r&lt;s.length;r++)o.push(h);u.poffset=o}else void 0!==f&amp;&amp;(u.poffset=f);var p=c._width||c.width,d=u.barwidth;if(i(p)){var m=Array.prototype.slice.call(p,0,s.length);for(r=0;r&lt;m.length;r++)n(m[r])||(m[r]=d);for(r=m.length;r&lt;s.length;r++)m.push(d);if(u.barwidth=m,void 0===f){for(o=[],r=0;r&lt;s.length;r++)o.push(h+(d-m[r])/2);u.poffset=o}}else void 0!==p&amp;&amp;(u.barwidth=p,void 0===f&amp;&amp;(u.poffset=h+(d-p)/2))}}function d(t,e){for(var r=e.traces,n=x(t),i=0;i&lt;r.length;i++)for(var a=r[i],o=a[0].t,s=o.poffset,l=Array.isArray(s),c=o.barwidth,u=Array.isArray(c),f=0;f&lt;a.length;f++){var h=a[f],p=h.w=u?c[f]:c;h[n]=h.p+(l?s[f]:s)+p/2}}function m(t,e,r){var n=e.traces,i=e.minDiff/2;s.minDtick(t,e.minDiff,e.distinctPositions[0],r);for(var a=0;a&lt;n.length;a++){var o,l,c,u,f=n[a],h=f[0],p=h.trace,d=[];for(u=0;u&lt;f.length;u++)l=(o=f[u]).p-i,c=o.p+i,d.push(l,c);if(p.width||p.offset){var m=h.t,g=m.poffset,v=m.barwidth,y=Array.isArray(g),x=Array.isArray(v);for(u=0;u&lt;f.length;u++){o=f[u];var b=y?g[u]:g,_=x?v[u]:v;c=(l=o.p+b)+_,d.push(l,c)}}p._extremes[t._id]=s.findExtremes(t,d,{padded:!1})}}function g(t,e){for(var r=e.traces,n=x(t),i=0;i&lt;r.length;i++){for(var a=r[i],o=a[0].trace,l=[],c=!1,u=0;u&lt;a.length;u++){var f=a[u],h=f.b,p=h+f.s;f[n]=p,l.push(p),f.hasB&amp;&amp;l.push(h),f.hasB&amp;&amp;f.b||(c=!0)}o._extremes[t._id]=s.findExtremes(t,l,{tozero:c,padded:!0})}}function v(t){for(var e=t.traces,r=0;r&lt;e.length;r++)for(var n=e[r],i=0;i&lt;n.length;i++){var o=n[i];o.s!==a&amp;&amp;t.put(o.p,o.b+o.s)}}function y(t,e,r){var i=e.traces,o=x(t),l=&quot;fraction&quot;===r.norm?1:100,c=l/1e9,u=t.l2c(t.c2l(0)),f=&quot;stack&quot;===r.mode?l:u;function h(e){return n(t.c2l(e))&amp;&amp;(e&lt;u-c||e&gt;f+c||!n(u))}for(var p=0;p&lt;i.length;p++){for(var d=i[p],m=d[0].trace,g=[],v=!1,y=!1,b=0;b&lt;d.length;b++){var _=d[b];if(_.s!==a){var w=Math.abs(l/e.get(_.p,_.s));_.b*=w,_.s*=w;var T=_.b,k=T+_.s;_[o]=k,g.push(k),y=y||h(k),_.hasB&amp;&amp;(g.push(T),y=y||h(T)),_.hasB&amp;&amp;_.b||(v=!0)}}m._extremes[t._id]=s.findExtremes(t,g,{tozero:v,padded:y})}}function x(t){return t._id.charAt(0)}e.exports={crossTraceCalc:function(t,e){for(var r=e.xaxis,n=e.yaxis,i=t._fullLayout,a=t._fullData,s=t.calcdata,l=[],c=[],f=0;f&lt;a.length;f++){var h=a[f];if(!0===h.visible&amp;&amp;o.traceIs(h,&quot;bar&quot;)&amp;&amp;h.xaxis===r._id&amp;&amp;h.yaxis===n._id&amp;&amp;(&quot;h&quot;===h.orientation?l.push(s[f]):c.push(s[f]),h._computePh))for(var p=t.calcdata[f],d=0;d&lt;p.length;d++)&quot;function&quot;==typeof p[d].ph0&amp;&amp;(p[d].ph0=p[d].ph0()),&quot;function&quot;==typeof p[d].ph1&amp;&amp;(p[d].ph1=p[d].ph1())}var m={xCat:&quot;category&quot;===r.type||&quot;multicategory&quot;===r.type,yCat:&quot;category&quot;===n.type||&quot;multicategory&quot;===n.type,mode:i.barmode,norm:i.barnorm,gap:i.bargap,groupgap:i.bargroupgap};u(t,r,n,c,m),u(t,n,r,l,m)},setGroupPositions:u}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../plots/cartesian/constraints&quot;:562,&quot;../../registry&quot;:638,&quot;./sieve.js&quot;:661,&quot;fast-isnumeric&quot;:190}],652:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./style_defaults&quot;),c=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,u=t(&quot;./attributes&quot;),f=n.coerceFont;function h(t,e,r,n){var i=e.orientation,a=e[{v:&quot;x&quot;,h:&quot;y&quot;}[i]+&quot;axis&quot;],o=c(r,a)+i,s=r._alignmentOpts||{},l=n(&quot;alignmentgroup&quot;),u=s[o];u||(u=s[o]={});var f=u[l];f?f.traces.push(e):f=u[l]={traces:[e],alignmentIndex:Object.keys(u).length,offsetGroups:{}};var h=n(&quot;offsetgroup&quot;),p=f.offsetGroups,d=p[h];h&amp;&amp;(d||(d=p[h]={offsetIndex:Object.keys(p).length}),e._offsetIndex=d.offsetIndex)}function p(t,e,r,i,a,o){var s=!(!1===(o=o||{}).moduleHasSelected),l=!(!1===o.moduleHasUnselected),c=!(!1===o.moduleHasConstrain),u=!(!1===o.moduleHasCliponaxis),h=!(!1===o.moduleHasTextangle),p=!(!1===o.moduleHasInsideanchor),d=!!o.hasPathbar,m=Array.isArray(a)||&quot;auto&quot;===a,g=m||&quot;inside&quot;===a,v=m||&quot;outside&quot;===a;if(g||v){var y=f(i,&quot;textfont&quot;,r.font),x=n.extendFlat({},y),b=!(t.textfont&amp;&amp;t.textfont.color);if(b&amp;&amp;delete x.color,f(i,&quot;insidetextfont&quot;,x),d){var _=n.extendFlat({},y);b&amp;&amp;delete _.color,f(i,&quot;pathbar.textfont&quot;,_)}v&amp;&amp;f(i,&quot;outsidetextfont&quot;,y),s&amp;&amp;i(&quot;selected.textfont.color&quot;),l&amp;&amp;i(&quot;unselected.textfont.color&quot;),c&amp;&amp;i(&quot;constraintext&quot;),u&amp;&amp;i(&quot;cliponaxis&quot;),h&amp;&amp;i(&quot;textangle&quot;),i(&quot;texttemplate&quot;)}g&amp;&amp;p&amp;&amp;i(&quot;insidetextanchor&quot;)}e.exports={supplyDefaults:function(t,e,r,c){function f(r,i){return n.coerce(t,e,u,r,i)}if(o(t,e,c,f)){s(t,e,c,f),f(&quot;xhoverformat&quot;),f(&quot;yhoverformat&quot;),f(&quot;orientation&quot;,e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;),f(&quot;base&quot;),f(&quot;offset&quot;),f(&quot;width&quot;),f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;);var h=f(&quot;textposition&quot;);p(t,e,c,f,h,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),l(t,e,f,r,c);var d=(e.marker.line||{}).color,m=a.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);m(t,e,d||i.defaultLine,{axis:&quot;y&quot;}),m(t,e,d||i.defaultLine,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1},crossTraceDefaults:function(t,e){var r;function i(t){return n.coerce(r._input,r,u,t)}if(&quot;group&quot;===e.barmode)for(var a=0;a&lt;t.length;a++)&quot;bar&quot;===(r=t[a]).type&amp;&amp;(r._input,h(0,r,e,i))},handleGroupingDefaults:h,handleText:p}},{&quot;../../components/color&quot;:366,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/constraints&quot;:562,&quot;../../registry&quot;:638,&quot;../scatter/period_defaults&quot;:946,&quot;../scatter/xy_defaults&quot;:953,&quot;./attributes&quot;:648,&quot;./style_defaults&quot;:663}],653:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),&quot;h&quot;===r.orientation?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}},{}],654:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../lib&quot;).isArrayOrTypedArray;r.coerceString=function(t,e,r){if(&quot;string&quot;==typeof e){if(e||!t.noBlank)return e}else if((&quot;number&quot;==typeof e||!0===e)&amp;&amp;!t.strict)return String(e);return void 0!==r?r:t.dflt},r.coerceNumber=function(t,e,r){if(n(e)){e=+e;var i=t.min,a=t.max;if(!(void 0!==i&amp;&amp;e&lt;i||void 0!==a&amp;&amp;e&gt;a))return e}return void 0!==r?r:t.dflt},r.coerceColor=function(t,e,r){return i(e).isValid()?e:void 0!==r?r:t.dflt},r.coerceEnumerated=function(t,e,r){return t.coerceNumber&amp;&amp;(e=+e),-1!==t.values.indexOf(e)?e:void 0!==r?r:t.dflt},r.getValue=function(t,e){var r;return Array.isArray(t)?e&lt;t.length&amp;&amp;(r=t[e]):r=t,r},r.getLineWidth=function(t,e){return 0&lt;e.mlw?e.mlw:a(t.marker.line.width)?0:t.marker.line.width}},{&quot;../../lib&quot;:503,&quot;fast-isnumeric&quot;:190,tinycolor2:312}],655:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../lib&quot;).fillText,s=t(&quot;./helpers&quot;).getLineWidth,l=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText,c=t(&quot;../../constants/numerical&quot;).BADNUM;function u(t,e,r,i,a){var s,u,f,h,p,d,m,g=t.cd,v=g[0].trace,y=g[0].t,x=&quot;closest&quot;===i,b=&quot;waterfall&quot;===v.type,_=t.maxHoverDistance,w=t.maxSpikeDistance;&quot;h&quot;===v.orientation?(s=r,u=e,f=&quot;y&quot;,h=&quot;x&quot;,p=z,d=I):(s=e,u=r,f=&quot;x&quot;,h=&quot;y&quot;,d=z,p=I);var T=v[f+&quot;period&quot;],k=x||T;function A(t){return S(t,-1)}function M(t){return S(t,1)}function S(t,e){var r=t.w;return t[f]+e*r/2}function E(t){return t[f+&quot;End&quot;]-t[f+&quot;Start&quot;]}var L=x?A:T?function(t){return t.p-E(t)/2}:function(t){return Math.min(A(t),t.p-y.bardelta/2)},C=x?M:T?function(t){return t.p+E(t)/2}:function(t){return Math.max(M(t),t.p+y.bardelta/2)};function P(t,e,r){return a.finiteRange&amp;&amp;(r=0),n.inbox(t-s,e-s,r+Math.min(1,Math.abs(e-t)/m)-1)}function I(t){return P(L(t),C(t),_)}function O(t){var e=t[h];if(b){var r=Math.abs(t.rawS)||0;u&gt;0?e+=r:u&lt;0&amp;&amp;(e-=r)}return e}function z(t){var e=u,r=t.b,i=O(t);return n.inbox(r-e,i-e,_+(i-e)/(i-r)-1)}var D=t[f+&quot;a&quot;],R=t[h+&quot;a&quot;];m=Math.abs(D.r2c(D.range[1])-D.r2c(D.range[0]));var F=n.getDistanceFunction(i,p,d,(function(t){return(p(t)+d(t))/2}));if(n.getClosest(g,F,t),!1!==t.index&amp;&amp;g[t.index].p!==c){k||(L=function(t){return Math.min(A(t),t.p-y.bargroupwidth/2)},C=function(t){return Math.max(M(t),t.p+y.bargroupwidth/2)});var B=g[t.index],N=v.base?B.b+B.s:B.s;t[h+&quot;0&quot;]=t[h+&quot;1&quot;]=R.c2p(B[h],!0),t[h+&quot;LabelVal&quot;]=N;var j=y.extents[y.extents.round(B.p)];t[f+&quot;0&quot;]=D.c2p(x?L(B):j[0],!0),t[f+&quot;1&quot;]=D.c2p(x?C(B):j[1],!0);var U=void 0!==B.orig_p;return t[f+&quot;LabelVal&quot;]=U?B.orig_p:B.p,t.labelLabel=l(D,t[f+&quot;LabelVal&quot;],v[f+&quot;hoverformat&quot;]),t.valueLabel=l(R,t[h+&quot;LabelVal&quot;],v[h+&quot;hoverformat&quot;]),t.baseLabel=l(R,B.b,v[h+&quot;hoverformat&quot;]),t.spikeDistance=(function(t){var e=u,r=t.b,i=O(t);return n.inbox(r-e,i-e,w+(i-e)/(i-r)-1)}(B)+function(t){return P(A(t),M(t),w)}(B))/2,t[f+&quot;Spike&quot;]=D.c2p(B.p,!0),o(B,v,t),t.hovertemplate=v.hovertemplate,t}}function f(t,e){var r=e.mcc||t.marker.color,n=e.mlcc||t.marker.line.color,i=s(t,e);return a.opacity(r)?r:a.opacity(n)&amp;&amp;i?n:void 0}e.exports={hoverPoints:function(t,e,r,n,a){var o=u(t,e,r,n,a);if(o){var s=o.cd,l=s[0].trace,c=s[o.index];return o.color=f(l,c),i.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(c,l,o),[o]}},hoverOnBars:u,getTraceColor:f}},{&quot;../../components/color&quot;:366,&quot;../../components/fx&quot;:406,&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../registry&quot;:638,&quot;./helpers&quot;:654}],656:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;).crossTraceCalc,colorbar:t(&quot;../scatter/marker_colorbar&quot;),arraysToCalcdata:t(&quot;./arrays_to_calcdata&quot;),plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;bar&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;bar&quot;,&quot;oriented&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],animatable:!0,meta:{}}},{&quot;../../plots/cartesian&quot;:568,&quot;../scatter/marker_colorbar&quot;:944,&quot;./arrays_to_calcdata&quot;:647,&quot;./attributes&quot;:648,&quot;./calc&quot;:649,&quot;./cross_trace_calc&quot;:651,&quot;./defaults&quot;:652,&quot;./event_data&quot;:653,&quot;./hover&quot;:655,&quot;./layout_attributes&quot;:657,&quot;./layout_defaults&quot;:658,&quot;./plot&quot;:659,&quot;./select&quot;:660,&quot;./style&quot;:662}],657:[function(t,e,r){&quot;use strict&quot;;e.exports={barmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;group&quot;,&quot;overlay&quot;,&quot;relative&quot;],dflt:&quot;group&quot;,editType:&quot;calc&quot;},barnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;fraction&quot;,&quot;percent&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},bargap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},bargroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],658:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){function s(r,n){return a.coerce(t,e,o,r,n)}for(var l=!1,c=!1,u=!1,f={},h=s(&quot;barmode&quot;),p=0;p&lt;r.length;p++){var d=r[p];if(n.traceIs(d,&quot;bar&quot;)&amp;&amp;d.visible){if(l=!0,&quot;group&quot;===h){var m=d.xaxis+d.yaxis;f[m]&amp;&amp;(u=!0),f[m]=!0}if(d.visible&amp;&amp;&quot;histogram&quot;===d.type)&quot;category&quot;!==i.getFromId({_fullLayout:e},d[&quot;v&quot;===d.orientation?&quot;xaxis&quot;:&quot;yaxis&quot;]).type&amp;&amp;(c=!0)}}l?(&quot;overlay&quot;!==h&amp;&amp;s(&quot;barnorm&quot;),s(&quot;bargap&quot;,c&amp;&amp;!u?0:.2),s(&quot;bargroupgap&quot;)):delete e.barmode}},{&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../registry&quot;:638,&quot;./layout_attributes&quot;:657}],659:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;../../components/color&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../registry&quot;),u=t(&quot;../../plots/cartesian/axes&quot;).tickText,f=t(&quot;./uniform_text&quot;),h=f.recordMinTextSize,p=f.clearMinTextSize,d=t(&quot;./style&quot;),m=t(&quot;./helpers&quot;),g=t(&quot;./constants&quot;),v=t(&quot;./attributes&quot;),y=v.text,x=v.textposition,b=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,_=g.TEXTPAD;function w(t){return t.id}function T(t){if(t.ids)return w}function k(t,e){return t&lt;e?1:-1}function A(t,e,r,n){var i;return!e.uniformtext.mode&amp;&amp;M(r)?(n&amp;&amp;(i=n()),t.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){i&amp;&amp;i()})).each(&quot;interrupt&quot;,(function(){i&amp;&amp;i()}))):t}function M(t){return t&amp;&amp;t.duration&gt;0}function S(t){return&quot;auto&quot;===t?0:t}function E(t,e){var r=Math.PI/180*e,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:t.width*i+t.height*n,y:t.width*n+t.height*i}}function L(t,e,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,c=a.anchor||&quot;end&quot;,u=&quot;end&quot;===c,f=&quot;start&quot;===c,h=((a.leftToRight||0)+1)/2,p=1-h,d=i.width,m=i.height,g=Math.abs(e-t),v=Math.abs(n-r),y=g&gt;2*_&amp;&amp;v&gt;2*_?_:0;g-=2*y,v-=2*y;var x=S(l);&quot;auto&quot;!==l||d&lt;=g&amp;&amp;m&lt;=v||!(d&gt;g||m&gt;v)||(d&gt;v||m&gt;g)&amp;&amp;d&lt;m==g&lt;v||(x+=90);var b=E(i,x),w=1;s&amp;&amp;(w=Math.min(1,g/b.x,v/b.y));var T=i.left*p+i.right*h,A=(i.top+i.bottom)/2,M=(t+_)*p+(e-_)*h,L=(r+n)/2,C=0,P=0;if(f||u){var I=(o?b.x:b.y)/2,O=o?k(t,e):k(r,n);o?f?(M=t+O*y,C=-O*I):(M=e-O*y,C=O*I):f?(L=r+O*y,P=-O*I):(L=n-O*y,P=O*I)}return{textX:T,textY:A,targetX:M,targetY:L,anchorX:C,anchorY:P,scale:w,rotate:x}}e.exports={plot:function(t,e,r,f,g,v){var w=e.xaxis,C=e.yaxis,P=t._fullLayout;g||(g={mode:P.barmode,norm:P.barmode,gap:P.bargap,groupgap:P.bargroupgap},p(&quot;bar&quot;,P));var I=a.makeTraceGroups(f,r,&quot;trace bars&quot;).each((function(r){var c=n.select(this),f=r[0].trace,p=&quot;waterfall&quot;===f.type,I=&quot;funnel&quot;===f.type,O=&quot;bar&quot;===f.type||I,z=0;p&amp;&amp;f.connector.visible&amp;&amp;&quot;between&quot;===f.connector.mode&amp;&amp;(z=f.connector.line.width/2);var D=&quot;h&quot;===f.orientation,R=M(g),F=a.ensureSingle(c,&quot;g&quot;,&quot;points&quot;),B=T(f),N=F.selectAll(&quot;g.point&quot;).data(a.identity,B);N.enter().append(&quot;g&quot;).classed(&quot;point&quot;,!0),N.exit().remove(),N.each((function(c,p){var T,M,I=n.select(this),F=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),n?[i,a]:[a,i]}(c,w,C,D),B=F[0][0],N=F[0][1],j=F[1][0],U=F[1][1],V=0==(D?N-B:U-j);if(V&amp;&amp;O&amp;&amp;m.getLineWidth(f,c)&amp;&amp;(V=!1),V||(V=!(i(B)&amp;&amp;i(N)&amp;&amp;i(j)&amp;&amp;i(U))),c.isBlank=V,V&amp;&amp;(D?N=B:U=j),z&amp;&amp;!V&amp;&amp;(D?(B-=k(B,N)*z,N+=k(B,N)*z):(j-=k(j,U)*z,U+=k(j,U)*z)),&quot;waterfall&quot;===f.type){if(!V){var H=f[c.dir].marker;T=H.line.width,M=H.color}}else T=m.getLineWidth(f,c),M=c.mc||f.marker.color;function q(t){var e=n.round(T/2%1,2);return 0===g.gap&amp;&amp;0===g.groupgap?n.round(Math.round(t)-e,2):t}if(!t._context.staticPlot){var G=s.opacity(M)&lt;1||T&gt;.01?q:function(t,e,r){return r&amp;&amp;t===e?t:Math.abs(t-e)&gt;=2?q(t):t&gt;e?Math.ceil(t):Math.floor(t)};B=G(B,N,D),N=G(N,B,D),j=G(j,U,!D),U=G(U,j,!D)}var Y=A(a.ensureSingle(I,&quot;path&quot;),P,g,v);if(Y.style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;d&quot;,isNaN((N-B)*(U-j))||V&amp;&amp;t._context.staticPlot?&quot;M0,0Z&quot;:&quot;M&quot;+B+&quot;,&quot;+j+&quot;V&quot;+U+&quot;H&quot;+N+&quot;V&quot;+j+&quot;Z&quot;).call(l.setClipUrl,e.layerClipId,t),!P.uniformtext.mode&amp;&amp;R){var W=l.makePointStyleFns(f);l.singlePointStyle(c,Y,f,W,t)}!function(t,e,r,n,i,s,c,f,p,g,v){var w,T=e.xaxis,M=e.yaxis,C=t._fullLayout;function P(e,r,n){return a.ensureSingle(e,&quot;text&quot;).text(r).attr({class:&quot;bartext bartext-&quot;+w,&quot;text-anchor&quot;:&quot;middle&quot;,&quot;data-notex&quot;:1}).call(l.font,n).call(o.convertToTspans,t)}var I=n[0].trace,O=&quot;h&quot;===I.orientation,z=function(t,e,r,n,i){var o,s=e[0].trace;o=s.texttemplate?function(t,e,r,n,i){var o=e[0].trace,s=a.castOption(o,r,&quot;texttemplate&quot;);if(!s)return&quot;&quot;;var l,c,f,h,p=&quot;histogram&quot;===o.type,d=&quot;waterfall&quot;===o.type,m=&quot;funnel&quot;===o.type,g=&quot;h&quot;===o.orientation;g?(l=&quot;y&quot;,c=i,f=&quot;x&quot;,h=n):(l=&quot;x&quot;,c=n,f=&quot;y&quot;,h=i);function v(t){return u(h,h.c2l(t),!0).text}var y=e[r],x={};x.label=y.p,x.labelLabel=x[l+&quot;Label&quot;]=(_=y.p,u(c,c.c2l(_),!0).text);var _;var w=a.castOption(o,y.i,&quot;text&quot;);(0===w||w)&amp;&amp;(x.text=w);x.value=y.s,x.valueLabel=x[f+&quot;Label&quot;]=v(y.s);var T={};b(T,o,y.i),(p||void 0===T.x)&amp;&amp;(T.x=g?x.value:x.label);(p||void 0===T.y)&amp;&amp;(T.y=g?x.label:x.value);(p||void 0===T.xLabel)&amp;&amp;(T.xLabel=g?x.valueLabel:x.labelLabel);(p||void 0===T.yLabel)&amp;&amp;(T.yLabel=g?x.labelLabel:x.valueLabel);d&amp;&amp;(x.delta=+y.rawS||y.s,x.deltaLabel=v(x.delta),x.final=y.v,x.finalLabel=v(x.final),x.initial=x.final-x.delta,x.initialLabel=v(x.initial));m&amp;&amp;(x.value=y.s,x.valueLabel=v(x.value),x.percentInitial=y.begR,x.percentInitialLabel=a.formatPercent(y.begR),x.percentPrevious=y.difR,x.percentPreviousLabel=a.formatPercent(y.difR),x.percentTotal=y.sumR,x.percenTotalLabel=a.formatPercent(y.sumR));var k=a.castOption(o,y.i,&quot;customdata&quot;);k&amp;&amp;(x.customdata=k);return a.texttemplateString(s,x,t._d3locale,T,x,o._meta||{})}(t,e,r,n,i):s.textinfo?function(t,e,r,n){var i=t[0].trace,o=&quot;h&quot;===i.orientation,s=&quot;waterfall&quot;===i.type,l=&quot;funnel&quot;===i.type;function c(t){return u(o?r:n,+t,!0).text}var f,h=i.textinfo,p=t[e],d=h.split(&quot;+&quot;),m=[],g=function(t){return-1!==d.indexOf(t)};g(&quot;label&quot;)&amp;&amp;m.push((v=t[e].p,u(o?n:r,v,!0).text));var v;g(&quot;text&quot;)&amp;&amp;(0===(f=a.castOption(i,p.i,&quot;text&quot;))||f)&amp;&amp;m.push(f);if(s){var y=+p.rawS||p.s,x=p.v,b=x-y;g(&quot;initial&quot;)&amp;&amp;m.push(c(b)),g(&quot;delta&quot;)&amp;&amp;m.push(c(y)),g(&quot;final&quot;)&amp;&amp;m.push(c(x))}if(l){g(&quot;value&quot;)&amp;&amp;m.push(c(p.s));var _=0;g(&quot;percent initial&quot;)&amp;&amp;_++,g(&quot;percent previous&quot;)&amp;&amp;_++,g(&quot;percent total&quot;)&amp;&amp;_++;var w=_&gt;1;g(&quot;percent initial&quot;)&amp;&amp;(f=a.formatPercent(p.begR),w&amp;&amp;(f+=&quot; of initial&quot;),m.push(f)),g(&quot;percent previous&quot;)&amp;&amp;(f=a.formatPercent(p.difR),w&amp;&amp;(f+=&quot; of previous&quot;),m.push(f)),g(&quot;percent total&quot;)&amp;&amp;(f=a.formatPercent(p.sumR),w&amp;&amp;(f+=&quot; of total&quot;),m.push(f))}return m.join(&quot;&lt;br&gt;&quot;)}(e,r,n,i):m.getValue(s.text,r);return m.coerceString(y,o)}(C,n,i,T,M);w=function(t,e){var r=m.getValue(t.textposition,e);return m.coerceEnumerated(x,r)}(I,i);var D=&quot;stack&quot;===g.mode||&quot;relative&quot;===g.mode,R=n[i],F=!D||R._outmost;if(!z||&quot;none&quot;===w||(R.isBlank||s===c||f===p)&amp;&amp;(&quot;auto&quot;===w||&quot;inside&quot;===w))return void r.select(&quot;text&quot;).remove();var B=C.font,N=d.getBarColor(n[i],I),j=d.getInsideTextFont(I,i,B,N),U=d.getOutsideTextFont(I,i,B),V=r.datum();O?&quot;log&quot;===T.type&amp;&amp;V.s0&lt;=0&amp;&amp;(s=T.range[0]&lt;T.range[1]?0:T._length):&quot;log&quot;===M.type&amp;&amp;V.s0&lt;=0&amp;&amp;(f=M.range[0]&lt;M.range[1]?M._length:0);var H,q,G,Y,W,X=Math.abs(c-s)-2*_,Z=Math.abs(p-f)-2*_;&quot;outside&quot;===w&amp;&amp;(F||R.hasB||(w=&quot;inside&quot;));if(&quot;auto&quot;===w)if(F){w=&quot;inside&quot;,W=a.ensureUniformFontSize(t,j),H=P(r,z,W),q=l.bBox(H.node()),G=q.width,Y=q.height;var J=G&lt;=X&amp;&amp;Y&lt;=Z,K=G&lt;=Z&amp;&amp;Y&lt;=X,Q=O?X&gt;=G*(Z/Y):Z&gt;=Y*(X/G);G&gt;0&amp;&amp;Y&gt;0&amp;&amp;(J||K||Q)?w=&quot;inside&quot;:(w=&quot;outside&quot;,H.remove(),H=null)}else w=&quot;inside&quot;;if(!H){W=a.ensureUniformFontSize(t,&quot;outside&quot;===w?U:j);var $=(H=P(r,z,W)).attr(&quot;transform&quot;);if(H.attr(&quot;transform&quot;,&quot;&quot;),q=l.bBox(H.node()),G=q.width,Y=q.height,H.attr(&quot;transform&quot;,$),G&lt;=0||Y&lt;=0)return void H.remove()}var tt,et,rt=I.textangle;&quot;outside&quot;===w?(et=&quot;both&quot;===I.constraintext||&quot;outside&quot;===I.constraintext,tt=function(t,e,r,n,i,a){var o,s=!!a.isHorizontal,l=!!a.constrained,c=a.angle||0,u=i.width,f=i.height,h=Math.abs(e-t),p=Math.abs(n-r);o=s?p&gt;2*_?_:0:h&gt;2*_?_:0;var d=1;l&amp;&amp;(d=s?Math.min(1,p/f):Math.min(1,h/u));var m=S(c),g=E(i,m),v=(s?g.x:g.y)/2,y=(i.left+i.right)/2,x=(i.top+i.bottom)/2,b=(t+e)/2,w=(r+n)/2,T=0,A=0,M=s?k(e,t):k(r,n);s?(b=e-M*o,T=M*v):(w=n+M*o,A=-M*v);return{textX:y,textY:x,targetX:b,targetY:w,anchorX:T,anchorY:A,scale:d,rotate:m}}(s,c,f,p,q,{isHorizontal:O,constrained:et,angle:rt})):(et=&quot;both&quot;===I.constraintext||&quot;inside&quot;===I.constraintext,tt=L(s,c,f,p,q,{isHorizontal:O,constrained:et,angle:rt,anchor:I.insidetextanchor}));tt.fontSize=W.size,h(&quot;histogram&quot;===I.type?&quot;bar&quot;:I.type,tt,C),R.transform=tt,A(H,C,g,v).attr(&quot;transform&quot;,a.getTextTransform(tt))}(t,e,I,r,p,B,N,j,U,g,v),e.layerClipId&amp;&amp;l.hideOutsideRangePoint(c,I.select(&quot;text&quot;),w,C,f.xcalendar,f.ycalendar)}));var j=!1===f.cliponaxis;l.setClipUrl(c,j?null:e.layerClipId,t)}));c.getComponentMethod(&quot;errorbars&quot;,&quot;plot&quot;)(t,I,e,g)},toMoveInsideBar:L}},{&quot;../../components/color&quot;:366,&quot;../../components/drawing&quot;:388,&quot;../../components/fx/helpers&quot;:402,&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../registry&quot;:638,&quot;./attributes&quot;:648,&quot;./constants&quot;:650,&quot;./helpers&quot;:654,&quot;./style&quot;:662,&quot;./uniform_text&quot;:664,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:190}],660:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i){var a=e.c2p(n?t.s0:t.p0,!0),o=e.c2p(n?t.s1:t.p1,!0),s=r.c2p(n?t.p0:t.s0,!0),l=r.c2p(n?t.p1:t.s1,!0);return i?[(a+o)/2,(s+l)/2]:n?[o,(s+l)/2]:[(a+o)/2,l]}e.exports=function(t,e){var r,i=t.cd,a=t.xaxis,o=t.yaxis,s=i[0].trace,l=&quot;funnel&quot;===s.type,c=&quot;h&quot;===s.orientation,u=[];if(!1===e)for(r=0;r&lt;i.length;r++)i[r].selected=0;else for(r=0;r&lt;i.length;r++){var f=i[r],h=&quot;ct&quot;in f?f.ct:n(f,a,o,c,l);e.contains(h,!1,r,t)?(u.push({pointNumber:r,x:a.c2d(f.x),y:o.c2d(f.y)}),f.selected=1):f.selected=0}return u}},{}],661:[function(t,e,r){&quot;use strict&quot;;e.exports=a;var n=t(&quot;../../lib&quot;).distinctVals,i=t(&quot;../../constants/numerical&quot;).BADNUM;function a(t,e){this.traces=t,this.sepNegVal=e.sepNegVal,this.overlapNoMerge=e.overlapNoMerge;for(var r=1/0,a=[],o=0;o&lt;t.length;o++){for(var s=t[o],l=0;l&lt;s.length;l++){var c=s[l];c.p!==i&amp;&amp;a.push(c.p)}s[0]&amp;&amp;s[0].width1&amp;&amp;(r=Math.min(s[0].width1,r))}this.positions=a;var u=n(a);this.distinctPositions=u.vals,1===u.vals.length&amp;&amp;r!==1/0?this.minDiff=r:this.minDiff=Math.min(u.minDiff,r);var f=(e.posAxis||{}).type;&quot;category&quot;!==f&amp;&amp;&quot;multicategory&quot;!==f||(this.minDiff=1),this.binWidth=this.minDiff,this.bins={}}a.prototype.put=function(t,e){var r=this.getLabel(t,e),n=this.bins[r]||0;return this.bins[r]=n+e,n},a.prototype.get=function(t,e){var r=this.getLabel(t,e);return this.bins[r]||0},a.prototype.getLabel=function(t,e){return(e&lt;0&amp;&amp;this.sepNegVal?&quot;v&quot;:&quot;^&quot;)+(this.overlapNoMerge?t:Math.round(t/this.binWidth))}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503}],662:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../registry&quot;),l=t(&quot;./uniform_text&quot;).resizeText,c=t(&quot;./attributes&quot;),u=c.textfont,f=c.insidetextfont,h=c.outsidetextfont,p=t(&quot;./helpers&quot;);function d(t,e,r){a.pointStyle(t.selectAll(&quot;path&quot;),e,r),m(t,e,r)}function m(t,e,r){t.selectAll(&quot;text&quot;).each((function(t){var i=n.select(this),s=o.ensureUniformFontSize(r,g(i,t,e,r));a.font(i,s)}))}function g(t,e,r,n){var i=n._fullLayout.font,a=r.textfont;if(t.classed(&quot;bartext-inside&quot;)){var o=_(e,r);a=y(r,e.i,i,o)}else t.classed(&quot;bartext-outside&quot;)&amp;&amp;(a=x(r,e.i,i));return a}function v(t,e,r){return b(u,t.textfont,e,r)}function y(t,e,r,n){var a=v(t,e,r);return(void 0===t._input.textfont||void 0===t._input.textfont.color||Array.isArray(t.textfont.color)&amp;&amp;void 0===t.textfont.color[e])&amp;&amp;(a={color:i.contrast(n),family:a.family,size:a.size}),b(f,t.insidetextfont,e,a)}function x(t,e,r){var n=v(t,e,r);return b(h,t.outsidetextfont,e,n)}function b(t,e,r,n){e=e||{};var i=p.getValue(e.family,r),a=p.getValue(e.size,r),o=p.getValue(e.color,r);return{family:p.coerceString(t.family,i,n.family),size:p.coerceNumber(t.size,a,n.size),color:p.coerceColor(t.color,o,n.color)}}function _(t,e){return&quot;waterfall&quot;===e.type?e[t.dir].marker.color:t.mcc||t.mc||e.marker.color}e.exports={style:function(t){var e=n.select(t).selectAll(&quot;g.barlayer&quot;).selectAll(&quot;g.trace&quot;);l(t,e,&quot;bar&quot;);var r=e.size(),i=t._fullLayout;e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})).each((function(t){(&quot;stack&quot;===i.barmode&amp;&amp;r&gt;1||0===i.bargap&amp;&amp;0===i.bargroupgap&amp;&amp;!t[0].trace.marker.line.width)&amp;&amp;n.select(this).attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)})),e.selectAll(&quot;g.points&quot;).each((function(e){d(n.select(this),e[0].trace,t)})),s.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(e)},styleTextPoints:m,styleOnSelect:function(t,e,r){var i=e[0].trace;i.selectedpoints?function(t,e,r){a.selectedPointStyle(t.selectAll(&quot;path&quot;),e),function(t,e,r){t.each((function(t){var i,s=n.select(this);if(t.selected){i=o.ensureUniformFontSize(r,g(s,t,e,r));var l=e.selected.textfont&amp;&amp;e.selected.textfont.color;l&amp;&amp;(i.color=l),a.font(s,i)}else a.selectedTextStyle(s,e)}))}(t.selectAll(&quot;text&quot;),e,r)}(r,i,t):(d(r,i,t),s.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(r))},getInsideTextFont:y,getOutsideTextFont:x,getBarColor:_,resizeText:l}},{&quot;../../components/color&quot;:366,&quot;../../components/drawing&quot;:388,&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;./attributes&quot;:648,&quot;./helpers&quot;:654,&quot;./uniform_text&quot;:664,&quot;@plotly/d3&quot;:58}],663:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../lib&quot;).coercePattern;e.exports=function(t,e,r,s,l){var c=r(&quot;marker.color&quot;,s),u=i(t,&quot;marker&quot;);u&amp;&amp;a(t,e,l,r,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),r(&quot;marker.line.color&quot;,n.defaultLine),i(t,&quot;marker.line&quot;)&amp;&amp;a(t,e,l,r,{prefix:&quot;marker.line.&quot;,cLetter:&quot;c&quot;}),r(&quot;marker.line.width&quot;),r(&quot;marker.opacity&quot;),o(r,&quot;marker.pattern&quot;,c,u),r(&quot;selected.marker.color&quot;),r(&quot;unselected.marker.color&quot;)}},{&quot;../../components/color&quot;:366,&quot;../../components/colorscale/defaults&quot;:376,&quot;../../components/colorscale/helpers&quot;:377,&quot;../../lib&quot;:503}],664:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;);function a(t){return&quot;_&quot;+t+&quot;Text_minsize&quot;}e.exports={recordMinTextSize:function(t,e,r){if(r.uniformtext.mode){var n=a(t),i=r.uniformtext.minsize,o=e.scale*e.fontSize;e.hide=o&lt;i,r[n]=r[n]||1/0,e.hide||(r[n]=Math.min(r[n],Math.max(o,i)))}},clearMinTextSize:function(t,e){e[a(t)]=void 0},resizeText:function(t,e,r){var a=t._fullLayout,o=a[&quot;_&quot;+r+&quot;Text_minsize&quot;];if(o){var s,l=&quot;hide&quot;===a.uniformtext.mode;switch(r){case&quot;funnelarea&quot;:case&quot;pie&quot;:case&quot;sunburst&quot;:s=&quot;g.slice&quot;;break;case&quot;treemap&quot;:case&quot;icicle&quot;:s=&quot;g.slice, g.pathbar&quot;;break;default:s=&quot;g.points &gt; g.point&quot;}e.selectAll(s).each((function(t){var e=t.transform;e&amp;&amp;(e.scale=l&amp;&amp;e.hide?0:o/e.fontSize,n.select(this).select(&quot;text&quot;).attr(&quot;transform&quot;,i.getTextTransform(e)))}))}}}},{&quot;../../lib&quot;:503,&quot;@plotly/d3&quot;:58}],665:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../scatterpolar/attributes&quot;),o=t(&quot;../bar/attributes&quot;);e.exports={r:a.r,theta:a.theta,r0:a.r0,dr:a.dr,theta0:a.theta0,dtheta:a.dtheta,thetaunit:a.thetaunit,base:i({},o.base,{}),offset:i({},o.offset,{}),width:i({},o.width,{}),text:i({},o.text,{}),hovertext:i({},o.hovertext,{}),marker:o.marker,hoverinfo:a.hoverinfo,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{&quot;../../lib/extend&quot;:493,&quot;../../plots/template_attributes&quot;:633,&quot;../bar/attributes&quot;:648,&quot;../scatterpolar/attributes&quot;:1e3}],666:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,i=t(&quot;../../components/colorscale/calc&quot;),a=t(&quot;../bar/arrays_to_calcdata&quot;),o=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions,s=t(&quot;../scatter/calc_selection&quot;),l=t(&quot;../../registry&quot;).traceIs,c=t(&quot;../../lib&quot;).extendFlat;e.exports={calc:function(t,e){for(var r=t._fullLayout,o=e.subplot,l=r[o].radialaxis,c=r[o].angularaxis,u=l.makeCalcdata(e,&quot;r&quot;),f=c.makeCalcdata(e,&quot;theta&quot;),h=e._length,p=new Array(h),d=u,m=f,g=0;g&lt;h;g++)p[g]={p:m[g],s:d[g]};function v(t){var r=e[t];void 0!==r&amp;&amp;(e[&quot;_&quot;+t]=Array.isArray(r)?c.makeCalcdata(e,t):c.d2c(r,e.thetaunit))}return&quot;linear&quot;===c.type&amp;&amp;(v(&quot;width&quot;),v(&quot;offset&quot;)),n(e,&quot;marker&quot;)&amp;&amp;i(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),n(e,&quot;marker.line&quot;)&amp;&amp;i(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}),a(p,e),s(p,e),p},crossTraceCalc:function(t,e,r){for(var n=t.calcdata,i=[],a=0;a&lt;n.length;a++){var s=n[a],u=s[0].trace;!0===u.visible&amp;&amp;l(u,&quot;bar&quot;)&amp;&amp;u.subplot===r&amp;&amp;i.push(s)}var f=c({},e.radialaxis,{_id:&quot;x&quot;}),h=e.angularaxis;o(t,h,f,i,{mode:e.barmode,norm:e.barnorm,gap:e.bargap,groupgap:e.bargroupgap})}}},{&quot;../../components/colorscale/calc&quot;:374,&quot;../../components/colorscale/helpers&quot;:377,&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;../bar/arrays_to_calcdata&quot;:647,&quot;../bar/cross_trace_calc&quot;:651,&quot;../scatter/calc_selection&quot;:928}],667:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatterpolar/defaults&quot;).handleRThetaDefaults,a=t(&quot;../bar/style_defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,s,l)?(l(&quot;thetaunit&quot;),l(&quot;base&quot;),l(&quot;offset&quot;),l(&quot;width&quot;),l(&quot;text&quot;),l(&quot;hovertext&quot;),l(&quot;hovertemplate&quot;),a(t,e,l,r,s),n.coerceSelectionMarkerOpacity(e,l)):e.visible=!1}},{&quot;../../lib&quot;:503,&quot;../bar/style_defaults&quot;:663,&quot;../scatterpolar/defaults&quot;:1002,&quot;./attributes&quot;:665}],668:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../bar/hover&quot;).getTraceColor,o=i.fillText,s=t(&quot;../scatterpolar/hover&quot;).makeHoverPointText,l=t(&quot;../../plots/polar/helpers&quot;).isPtInsidePolygon;e.exports=function(t,e,r){var c=t.cd,u=c[0].trace,f=t.subplot,h=f.radialAxis,p=f.angularAxis,d=f.vangles,m=d?l:i.isPtInsideSector,g=t.maxHoverDistance,v=p._period||2*Math.PI,y=Math.abs(h.g2p(Math.sqrt(e*e+r*r))),x=Math.atan2(r,e);h.range[0]&gt;h.range[1]&amp;&amp;(x+=Math.PI);if(n.getClosest(c,(function(t){return m(y,x,[t.rp0,t.rp1],[t.thetag0,t.thetag1],d)?g+Math.min(1,Math.abs(t.thetag1-t.thetag0)/v)-1+(t.rp1-y)/(t.rp1-t.rp0)-1:1/0}),t),!1!==t.index){var b=c[t.index];t.x0=t.x1=b.ct[0],t.y0=t.y1=b.ct[1];var _=i.extendFlat({},b,{r:b.s,theta:b.p});return o(b,u,t),s(_,u,f,t),t.hovertemplate=u.hovertemplate,t.color=a(u,b),t.xLabelVal=t.yLabelVal=void 0,b.s&lt;0&amp;&amp;(t.idealAlign=&quot;left&quot;),[t]}}},{&quot;../../components/fx&quot;:406,&quot;../../lib&quot;:503,&quot;../../plots/polar/helpers&quot;:621,&quot;../bar/hover&quot;:655,&quot;../scatterpolar/hover&quot;:1004}],669:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;barpolar&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;polar&quot;,&quot;bar&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;../scatterpolar/format_labels&quot;),style:t(&quot;../bar/style&quot;).style,styleOnSelect:t(&quot;../bar/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../bar/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:622,&quot;../bar/select&quot;:660,&quot;../bar/style&quot;:662,&quot;../scatter/marker_colorbar&quot;:944,&quot;../scatterpolar/format_labels&quot;:1003,&quot;./attributes&quot;:665,&quot;./calc&quot;:666,&quot;./defaults&quot;:667,&quot;./hover&quot;:668,&quot;./layout_attributes&quot;:670,&quot;./layout_defaults&quot;:671,&quot;./plot&quot;:672}],670:[function(t,e,r){&quot;use strict&quot;;e.exports={barmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;overlay&quot;],dflt:&quot;stack&quot;,editType:&quot;calc&quot;},bargap:{valType:&quot;number&quot;,dflt:.1,min:0,max:1,editType:&quot;calc&quot;}}},{}],671:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a,o={};function s(r,o){return n.coerce(t[a]||{},e[a],i,r,o)}for(var l=0;l&lt;r.length;l++){var c=r[l];&quot;barpolar&quot;===c.type&amp;&amp;!0===c.visible&amp;&amp;(o[a=c.subplot]||(s(&quot;barmode&quot;),s(&quot;bargap&quot;),o[a]=1))}}},{&quot;../../lib&quot;:503,&quot;./layout_attributes&quot;:670}],672:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../plots/polar/helpers&quot;);e.exports=function(t,e,r){var l=e.xaxis,c=e.yaxis,u=e.radialAxis,f=e.angularAxis,h=function(t){var e=t.cxx,r=t.cyy;if(t.vangles)return function(n,i,o,l){var c,u;a.angleDelta(o,l)&gt;0?(c=o,u=l):(c=l,u=o);var f=[s.findEnclosingVertexAngles(c,t.vangles)[0],(c+u)/2,s.findEnclosingVertexAngles(u,t.vangles)[1]];return s.pathPolygonAnnulus(n,i,c,u,f,e,r)};return function(t,n,i,o){return a.pathAnnulus(t,n,i,o,e,r)}}(e),p=e.layers.frontplot.select(&quot;g.barlayer&quot;);a.makeTraceGroups(p,r,&quot;trace bars&quot;).each((function(){var r=n.select(this),s=a.ensureSingle(r,&quot;g&quot;,&quot;points&quot;).selectAll(&quot;g.point&quot;).data(a.identity);s.enter().append(&quot;g&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).style(&quot;stroke-miterlimit&quot;,2).classed(&quot;point&quot;,!0),s.exit().remove(),s.each((function(t){var e,r=n.select(this),o=t.rp0=u.c2p(t.s0),s=t.rp1=u.c2p(t.s1),p=t.thetag0=f.c2g(t.p0),d=t.thetag1=f.c2g(t.p1);if(i(o)&amp;&amp;i(s)&amp;&amp;i(p)&amp;&amp;i(d)&amp;&amp;o!==s&amp;&amp;p!==d){var m=u.c2g(t.s1),g=(p+d)/2;t.ct=[l.c2p(m*Math.cos(g)),c.c2p(m*Math.sin(g))],e=h(o,s,p,d)}else e=&quot;M0,0Z&quot;;a.ensureSingle(r,&quot;path&quot;).attr(&quot;d&quot;,e)})),o.setClipUrl(r,e._hasClipOnAxisFalse?e.clipIds.forTraces:null,t)}))}},{&quot;../../components/drawing&quot;:388,&quot;../../lib&quot;:503,&quot;../../plots/polar/helpers&quot;:621,&quot;@plotly/d3&quot;:58,&quot;fast-isnumeric&quot;:190}],673:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../bar/attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../lib/extend&quot;).extendFlat,c=n.marker,u=c.line;e.exports={y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},x0:{valType:&quot;any&quot;,editType:&quot;calc+clearAxisTypes&quot;},y0:{valType:&quot;any&quot;,editType:&quot;calc+clearAxisTypes&quot;},dx:{valType:&quot;number&quot;,editType:&quot;calc&quot;},dy:{valType:&quot;number&quot;,editType:&quot;calc&quot;},xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:o(&quot;x&quot;),yhoverformat:o(&quot;y&quot;),name:{valType:&quot;string&quot;,editType:&quot;calc+clearAxisTypes&quot;},q1:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},median:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},q3:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},lowerfence:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},upperfence:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},notched:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},notchwidth:{valType:&quot;number&quot;,min:0,max:.5,dflt:.25,editType:&quot;calc&quot;},notchspan:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},boxpoints:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;outliers&quot;,&quot;suspectedoutliers&quot;,!1],editType:&quot;calc&quot;},jitter:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},pointpos:{valType:&quot;number&quot;,min:-2,max:2,editType:&quot;calc&quot;},boxmean:{valType:&quot;enumerated&quot;,values:[!0,&quot;sd&quot;,!1],editType:&quot;calc&quot;},mean:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sd:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc+clearAxisTypes&quot;},quartilemethod:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;exclusive&quot;,&quot;inclusive&quot;],dflt:&quot;linear&quot;,editType:&quot;calc&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},marker:{outliercolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0, 0, 0, 0)&quot;,editType:&quot;style&quot;},symbol:l({},c.symbol,{arrayOk:!1,editType:&quot;plot&quot;}),opacity:l({},c.opacity,{arrayOk:!1,dflt:1,editType:&quot;style&quot;}),size:l({},c.size,{arrayOk:!1,editType:&quot;calc&quot;}),color:l({},c.color,{arrayOk:!1,editType:&quot;style&quot;}),line:{color:l({},u.color,{arrayOk:!1,dflt:a.defaultLine,editType:&quot;style&quot;}),width:l({},u.width,{arrayOk:!1,dflt:0,editType:&quot;style&quot;}),outliercolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},outlierwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;plot&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},editType:&quot;plot&quot;},fillcolor:n.fillcolor,whiskerwidth:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;calc&quot;},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup,selected:{marker:n.selected.marker,editType:&quot;style&quot;},unselected:{marker:n.unselected.marker,editType:&quot;style&quot;},text:l({},n.text,{}),hovertext:l({},n.hovertext,{}),hovertemplate:s({}),hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;boxes&quot;,&quot;points&quot;],dflt:&quot;boxes+points&quot;,editType:&quot;style&quot;}}},{&quot;../../components/color/attributes&quot;:365,&quot;../../lib/extend&quot;:493,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/template_attributes&quot;:633,&quot;../bar/attributes&quot;:648,&quot;../scatter/attributes&quot;:926}],674:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/cartesian/align_period&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=o._;e.exports=function(t,e){var r,c,y,x,b,_,w,T=t._fullLayout,k=i.getFromId(t,e.xaxis||&quot;x&quot;),A=i.getFromId(t,e.yaxis||&quot;y&quot;),M=[],S=&quot;violin&quot;===e.type?&quot;_numViolins&quot;:&quot;_numBoxes&quot;;&quot;h&quot;===e.orientation?(y=k,x=&quot;x&quot;,b=A,_=&quot;y&quot;,w=!!e.yperiodalignment):(y=A,x=&quot;y&quot;,b=k,_=&quot;x&quot;,w=!!e.xperiodalignment);var E,L,C,P,I,O,z=function(t,e,r,i){var s,l=e+&quot;0&quot;in t,c=&quot;d&quot;+e in t;if(e in t||l&amp;&amp;c){var u=r.makeCalcdata(t,e);return[a(t,r,e,u).vals,u]}s=l?t[e+&quot;0&quot;]:&quot;name&quot;in t&amp;&amp;(&quot;category&quot;===r.type||n(t.name)&amp;&amp;-1!==[&quot;linear&quot;,&quot;log&quot;].indexOf(r.type)||o.isDateTime(t.name)&amp;&amp;&quot;date&quot;===r.type)?t.name:i;for(var f=&quot;multicategory&quot;===r.type?r.r2c_just_indices(s):r.d2c(s,0,t[e+&quot;calendar&quot;]),h=t._length,p=new Array(h),d=0;d&lt;h;d++)p[d]=f;return[p]}(e,_,b,T[S]),D=z[0],R=z[1],F=o.distinctVals(D,b),B=F.vals,N=F.minDiff/2,j=&quot;all&quot;===(e.boxpoints||e.points)?o.identity:function(t){return t.v&lt;E.lf||t.v&gt;E.uf};if(e._hasPreCompStats){var U=e[x],V=function(t){return y.d2c((e[t]||[])[r])},H=1/0,q=-1/0;for(r=0;r&lt;e._length;r++){var G=D[r];if(n(G)){if((E={}).pos=E[_]=G,w&amp;&amp;R&amp;&amp;(E.orig_p=R[r]),E.q1=V(&quot;q1&quot;),E.med=V(&quot;median&quot;),E.q3=V(&quot;q3&quot;),L=[],U&amp;&amp;o.isArrayOrTypedArray(U[r]))for(c=0;c&lt;U[r].length;c++)(O=y.d2c(U[r][c]))!==s&amp;&amp;(u(I={v:O,i:[r,c]},e,[r,c]),L.push(I));if(E.pts=L.sort(f),P=(C=E[x]=L.map(h)).length,E.med!==s&amp;&amp;E.q1!==s&amp;&amp;E.q3!==s&amp;&amp;E.med&gt;=E.q1&amp;&amp;E.q3&gt;=E.med){var Y=V(&quot;lowerfence&quot;);E.lf=Y!==s&amp;&amp;Y&lt;=E.q1?Y:p(E,C,P);var W=V(&quot;upperfence&quot;);E.uf=W!==s&amp;&amp;W&gt;=E.q3?W:d(E,C,P);var X=V(&quot;mean&quot;);E.mean=X!==s?X:P?o.mean(C,P):(E.q1+E.q3)/2;var Z=V(&quot;sd&quot;);E.sd=X!==s&amp;&amp;Z&gt;=0?Z:P?o.stdev(C,P,E.mean):E.q3-E.q1,E.lo=m(E),E.uo=g(E);var J=V(&quot;notchspan&quot;);J=J!==s&amp;&amp;J&gt;0?J:v(E,P),E.ln=E.med-J,E.un=E.med+J;var K=E.lf,Q=E.uf;e.boxpoints&amp;&amp;C.length&amp;&amp;(K=Math.min(K,C[0]),Q=Math.max(Q,C[P-1])),e.notched&amp;&amp;(K=Math.min(K,E.ln),Q=Math.max(Q,E.un)),E.min=K,E.max=Q}else{var $;o.warn([&quot;Invalid input - make sure that q1 &lt;= median &lt;= q3&quot;,&quot;q1 = &quot;+E.q1,&quot;median = &quot;+E.med,&quot;q3 = &quot;+E.q3].join(&quot;\n&quot;)),$=E.med!==s?E.med:E.q1!==s?E.q3!==s?(E.q1+E.q3)/2:E.q1:E.q3!==s?E.q3:0,E.med=$,E.q1=E.q3=$,E.lf=E.uf=$,E.mean=E.sd=$,E.ln=E.un=$,E.min=E.max=$}H=Math.min(H,E.min),q=Math.max(q,E.max),E.pts2=L.filter(j),M.push(E)}}e._extremes[y._id]=i.findExtremes(y,[H,q],{padded:!0})}else{var tt=y.makeCalcdata(e,x),et=function(t,e){for(var r=t.length,n=new Array(r+1),i=0;i&lt;r;i++)n[i]=t[i]-e;return n[r]=t[r-1]+e,n}(B,N),rt=B.length,nt=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=[];return e}(rt);for(r=0;r&lt;e._length;r++)if(O=tt[r],n(O)){var it=o.findBin(D[r],et);it&gt;=0&amp;&amp;it&lt;rt&amp;&amp;(u(I={v:O,i:r},e,r),nt[it].push(I))}var at=1/0,ot=-1/0,st=e.quartilemethod,lt=&quot;exclusive&quot;===st,ct=&quot;inclusive&quot;===st;for(r=0;r&lt;rt;r++)if(nt[r].length&gt;0){var ut,ft;if((E={}).pos=E[_]=B[r],L=E.pts=nt[r].sort(f),P=(C=E[x]=L.map(h)).length,E.min=C[0],E.max=C[P-1],E.mean=o.mean(C,P),E.sd=o.stdev(C,P,E.mean),E.med=o.interp(C,.5),P%2&amp;&amp;(lt||ct))lt?(ut=C.slice(0,P/2),ft=C.slice(P/2+1)):ct&amp;&amp;(ut=C.slice(0,P/2+1),ft=C.slice(P/2)),E.q1=o.interp(ut,.5),E.q3=o.interp(ft,.5);else E.q1=o.interp(C,.25),E.q3=o.interp(C,.75);E.lf=p(E,C,P),E.uf=d(E,C,P),E.lo=m(E),E.uo=g(E);var ht=v(E,P);E.ln=E.med-ht,E.un=E.med+ht,at=Math.min(at,E.ln),ot=Math.max(ot,E.un),E.pts2=L.filter(j),M.push(E)}e._extremes[y._id]=i.findExtremes(y,e.notched?tt.concat([at,ot]):tt,{padded:!0})}return function(t,e){if(o.isArrayOrTypedArray(e.selectedpoints))for(var r=0;r&lt;t.length;r++){for(var n=t[r].pts||[],i={},a=0;a&lt;n.length;a++)i[n[a].i]=a;o.tagSelected(n,e,i)}}(M,e),M.length&gt;0?(M[0].t={num:T[S],dPos:N,posLetter:_,valLetter:x,labels:{med:l(t,&quot;median:&quot;),min:l(t,&quot;min:&quot;),q1:l(t,&quot;q1:&quot;),q3:l(t,&quot;q3:&quot;),max:l(t,&quot;max:&quot;),mean:&quot;sd&quot;===e.boxmean?l(t,&quot;mean \xb1 \u03c3:&quot;):l(t,&quot;mean:&quot;),lf:l(t,&quot;lower fence:&quot;),uf:l(t,&quot;upper fence:&quot;)}},T[S]++,M):[{t:{empty:!0}}]};var c={text:&quot;tx&quot;,hovertext:&quot;htx&quot;};function u(t,e,r){for(var n in c)o.isArrayOrTypedArray(e[n])&amp;&amp;(Array.isArray(r)?o.isArrayOrTypedArray(e[n][r[0]])&amp;&amp;(t[c[n]]=e[n][r[0]][r[1]]):t[c[n]]=e[n][r])}function f(t,e){return t.v-e.v}function h(t){return t.v}function p(t,e,r){return 0===r?t.q1:Math.min(t.q1,e[Math.min(o.findBin(2.5*t.q1-1.5*t.q3,e,!0)+1,r-1)])}function d(t,e,r){return 0===r?t.q3:Math.max(t.q3,e[Math.max(o.findBin(2.5*t.q3-1.5*t.q1,e),0)])}function m(t){return 4*t.q1-3*t.q3}function g(t){return 4*t.q3-3*t.q1}function v(t,e){return 0===e?0:1.57*(t.q3-t.q1)/Math.sqrt(e)}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/align_period&quot;:551,&quot;../../plots/cartesian/axes&quot;:554,&quot;fast-isnumeric&quot;:190}],675:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,o=[&quot;v&quot;,&quot;h&quot;];function s(t,e,r,o){var s,l,c,u=e.calcdata,f=e._fullLayout,h=o._id,p=h.charAt(0),d=[],m=0;for(s=0;s&lt;r.length;s++)for(c=u[r[s]],l=0;l&lt;c.length;l++)d.push(o.c2l(c[l].pos,!0)),m+=(c[l].pts2||[]).length;if(d.length){var g=i.distinctVals(d);&quot;category&quot;!==o.type&amp;&amp;&quot;multicategory&quot;!==o.type||(g.minDiff=1);var v=g.minDiff/2;n.minDtick(o,g.minDiff,g.vals[0],!0);var y=f[&quot;violin&quot;===t?&quot;_numViolins&quot;:&quot;_numBoxes&quot;],x=&quot;group&quot;===f[t+&quot;mode&quot;]&amp;&amp;y&gt;1,b=1-f[t+&quot;gap&quot;],_=1-f[t+&quot;groupgap&quot;];for(s=0;s&lt;r.length;s++){var w,T,k,A,M,S,E=(c=u[r[s]])[0].trace,L=c[0].t,C=E.width,P=E.side;if(C)w=T=A=C/2,k=0;else if(w=v,x){var I=a(f,o._id)+E.orientation,O=(f._alignmentOpts[I]||{})[E.alignmentgroup]||{},z=Object.keys(O.offsetGroups||{}).length,D=z||y;T=w*b*_/D,k=2*w*(((z?E._offsetIndex:L.num)+.5)/D-.5)*b,A=w*b/D}else T=w*b*_,k=0,A=w;L.dPos=w,L.bPos=k,L.bdPos=T,L.wHover=A;var R,F,B,N,j,U,V=k+T,H=Boolean(C);if(&quot;positive&quot;===P?(M=w*(C?1:.5),R=V,S=R=k):&quot;negative&quot;===P?(M=R=k,S=w*(C?1:.5),F=V):(M=S=w,R=F=V),(E.boxpoints||E.points)&amp;&amp;m&gt;0){var q=E.pointpos,G=E.jitter,Y=E.marker.size/2,W=0;q+G&gt;=0&amp;&amp;((W=V*(q+G))&gt;M?(H=!0,j=Y,B=W):W&gt;R&amp;&amp;(j=Y,B=M)),W&lt;=M&amp;&amp;(B=M);var X=0;q-G&lt;=0&amp;&amp;((X=-V*(q-G))&gt;S?(H=!0,U=Y,N=X):X&gt;F&amp;&amp;(U=Y,N=S)),X&lt;=S&amp;&amp;(N=S)}else B=M,N=S;var Z=new Array(c.length);for(l=0;l&lt;c.length;l++)Z[l]=c[l].pos;E._extremes[h]=n.findExtremes(o,Z,{padded:H,vpadminus:N,vpadplus:B,vpadLinearized:!0,ppadminus:{x:U,y:j}[p],ppadplus:{x:j,y:U}[p]})}}}e.exports={crossTraceCalc:function(t,e){for(var r=t.calcdata,n=e.xaxis,i=e.yaxis,a=0;a&lt;o.length;a++){for(var l=o[a],c=&quot;h&quot;===l?i:n,u=[],f=0;f&lt;r.length;f++){var h=r[f],p=h[0].t,d=h[0].trace;!0!==d.visible||&quot;box&quot;!==d.type&amp;&amp;&quot;candlestick&quot;!==d.type||p.empty||(d.orientation||&quot;v&quot;)!==l||d.xaxis!==n._id||d.yaxis!==i._id||u.push(f)}s(&quot;box&quot;,t,u,c)}},setPositionOffset:s}},{&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../plots/cartesian/constraints&quot;:562}],676:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../scatter/period_defaults&quot;),s=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,l=t(&quot;../../plots/cartesian/axis_autotype&quot;),c=t(&quot;./attributes&quot;);function u(t,e,r,a){function o(t){var e=0;return t&amp;&amp;t.length&amp;&amp;(e+=1,n.isArrayOrTypedArray(t[0])&amp;&amp;t[0].length&amp;&amp;(e+=1)),e}function s(e){return n.validate(t[e],c[e])}var u,f=r(&quot;y&quot;),h=r(&quot;x&quot;);if(&quot;box&quot;===e.type){var p=r(&quot;q1&quot;),d=r(&quot;median&quot;),m=r(&quot;q3&quot;);e._hasPreCompStats=p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length&amp;&amp;m&amp;&amp;m.length,u=Math.min(n.minRowLength(p),n.minRowLength(d),n.minRowLength(m))}var g,v,y=o(f),x=o(h),b=y&amp;&amp;n.minRowLength(f),_=x&amp;&amp;n.minRowLength(h),w=a.calendar,T={autotypenumbers:a.autotypenumbers};if(e._hasPreCompStats)switch(String(x)+String(y)){case&quot;00&quot;:var k=s(&quot;x0&quot;)||s(&quot;dx&quot;);g=(s(&quot;y0&quot;)||s(&quot;dy&quot;))&amp;&amp;!k?&quot;h&quot;:&quot;v&quot;,v=u;break;case&quot;10&quot;:g=&quot;v&quot;,v=Math.min(u,_);break;case&quot;20&quot;:g=&quot;h&quot;,v=Math.min(u,h.length);break;case&quot;01&quot;:g=&quot;h&quot;,v=Math.min(u,b);break;case&quot;02&quot;:g=&quot;v&quot;,v=Math.min(u,f.length);break;case&quot;12&quot;:g=&quot;v&quot;,v=Math.min(u,_,f.length);break;case&quot;21&quot;:g=&quot;h&quot;,v=Math.min(u,h.length,b);break;case&quot;11&quot;:v=0;break;case&quot;22&quot;:var A,M=!1;for(A=0;A&lt;h.length;A++)if(&quot;category&quot;===l(h[A],w,T)){M=!0;break}if(M)g=&quot;v&quot;,v=Math.min(u,_,f.length);else{for(A=0;A&lt;f.length;A++)if(&quot;category&quot;===l(f[A],w,T)){M=!0;break}M?(g=&quot;h&quot;,v=Math.min(u,h.length,b)):(g=&quot;v&quot;,v=Math.min(u,_,f.length))}}else y&gt;0?(g=&quot;v&quot;,v=x&gt;0?Math.min(_,b):Math.min(b)):x&gt;0?(g=&quot;h&quot;,v=Math.min(_)):v=0;if(v){e._length=v;var S=r(&quot;orientation&quot;,g);e._hasPreCompStats?&quot;v&quot;===S&amp;&amp;0===x?(r(&quot;x0&quot;,0),r(&quot;dx&quot;,1)):&quot;h&quot;===S&amp;&amp;0===y&amp;&amp;(r(&quot;y0&quot;,0),r(&quot;dy&quot;,1)):&quot;v&quot;===S&amp;&amp;0===x?r(&quot;x0&quot;):&quot;h&quot;===S&amp;&amp;0===y&amp;&amp;r(&quot;y0&quot;),i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],a)}else e.visible=!1}function f(t,e,r,i){var a=i.prefix,o=n.coerce2(t,e,c,&quot;marker.outliercolor&quot;),s=r(&quot;marker.line.outliercolor&quot;),l=&quot;outliers&quot;;e._hasPreCompStats?l=&quot;all&quot;:(o||s)&amp;&amp;(l=&quot;suspectedoutliers&quot;);var u=r(a+&quot;points&quot;,l);u?(r(&quot;jitter&quot;,&quot;all&quot;===u?.3:0),r(&quot;pointpos&quot;,&quot;all&quot;===u?-1.5:0),r(&quot;marker.symbol&quot;),r(&quot;marker.opacity&quot;),r(&quot;marker.size&quot;),r(&quot;marker.color&quot;,e.line.color),r(&quot;marker.line.color&quot;),r(&quot;marker.line.width&quot;),&quot;suspectedoutliers&quot;===u&amp;&amp;(r(&quot;marker.line.outliercolor&quot;,e.marker.color),r(&quot;marker.line.outlierwidth&quot;)),r(&quot;selected.marker.color&quot;),r(&quot;unselected.marker.color&quot;),r(&quot;selected.marker.size&quot;),r(&quot;unselected.marker.size&quot;),r(&quot;text&quot;),r(&quot;hovertext&quot;)):delete e.marker;var f=r(&quot;hoveron&quot;);&quot;all&quot;!==f&amp;&amp;-1===f.indexOf(&quot;points&quot;)||r(&quot;hovertemplate&quot;),n.coerceSelectionMarkerOpacity(e,r)}e.exports={supplyDefaults:function(t,e,r,i){function s(r,i){return n.coerce(t,e,c,r,i)}if(u(t,e,s,i),!1!==e.visible){o(t,e,i,s),s(&quot;xhoverformat&quot;),s(&quot;yhoverformat&quot;);var l=e._hasPreCompStats;l&amp;&amp;(s(&quot;lowerfence&quot;),s(&quot;upperfence&quot;)),s(&quot;line.color&quot;,(t.marker||{}).color||r),s(&quot;line.width&quot;),s(&quot;fillcolor&quot;,a.addOpacity(e.line.color,.5));var h=!1;if(l){var p=s(&quot;mean&quot;),d=s(&quot;sd&quot;);p&amp;&amp;p.length&amp;&amp;(h=!0,d&amp;&amp;d.length&amp;&amp;(h=&quot;sd&quot;))}s(&quot;boxmean&quot;,h),s(&quot;whiskerwidth&quot;),s(&quot;width&quot;),s(&quot;quartilemethod&quot;);var m=!1;if(l){var g=s(&quot;notchspan&quot;);g&amp;&amp;g.length&amp;&amp;(m=!0)}else n.validate(t.notchwidth,c.notchwidth)&amp;&amp;(m=!0);s(&quot;notched&quot;,m)&amp;&amp;s(&quot;notchwidth&quot;),f(t,e,s,{prefix:&quot;box&quot;})}},crossTraceDefaults:function(t,e){var r,i;function a(t){return n.coerce(i._input,i,c,t)}for(var o=0;o&lt;t.length;o++){var l=(i=t[o]).type;&quot;box&quot;!==l&amp;&amp;&quot;violin&quot;!==l||(r=i._input,&quot;group&quot;===e[l+&quot;mode&quot;]&amp;&amp;s(r,i,e,a))}},handleSampleDefaults:u,handlePointsDefaults:f}},{&quot;../../components/color&quot;:366,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axis_autotype&quot;:555,&quot;../../registry&quot;:638,&quot;../bar/defaults&quot;:652,&quot;../scatter/period_defaults&quot;:946,&quot;./attributes&quot;:673}],677:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return e.hoverOnBox&amp;&amp;(t.hoverOnBox=e.hoverOnBox),&quot;xVal&quot;in e&amp;&amp;(t.x=e.xVal),&quot;yVal&quot;in e&amp;&amp;(t.y=e.yVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],678:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=i.fillText;function l(t,e,r,s){var l,c,u,f,h,p,d,m,g,v,y,x,b,_,w=t.cd,T=t.xa,k=t.ya,A=w[0].trace,M=w[0].t,S=&quot;violin&quot;===A.type,E=[],L=M.bdPos,C=M.wHover,P=function(t){return u.c2l(t.pos)+M.bPos-u.c2l(p)};S&amp;&amp;&quot;both&quot;!==A.side?(&quot;positive&quot;===A.side&amp;&amp;(g=function(t){var e=P(t);return a.inbox(e,e+C,v)},x=L,b=0),&quot;negative&quot;===A.side&amp;&amp;(g=function(t){var e=P(t);return a.inbox(e-C,e,v)},x=0,b=L)):(g=function(t){var e=P(t);return a.inbox(e-C,e+C,v)},x=b=L),_=S?function(t){return a.inbox(t.span[0]-h,t.span[1]-h,v)}:function(t){return a.inbox(t.min-h,t.max-h,v)},&quot;h&quot;===A.orientation?(h=e,p=r,d=_,m=g,l=&quot;y&quot;,u=k,c=&quot;x&quot;,f=T):(h=r,p=e,d=g,m=_,l=&quot;x&quot;,u=T,c=&quot;y&quot;,f=k);var I=Math.min(1,L/Math.abs(u.r2c(u.range[1])-u.r2c(u.range[0])));function O(t){return(d(t)+m(t))/2}v=t.maxHoverDistance-I,y=t.maxSpikeDistance-I;var z=a.getDistanceFunction(s,d,m,O);if(a.getClosest(w,z,t),!1===t.index)return[];var D=w[t.index],R=A.line.color,F=(A.marker||{}).color;o.opacity(R)&amp;&amp;A.line.width?t.color=R:o.opacity(F)&amp;&amp;A.boxpoints?t.color=F:t.color=A.fillcolor,t[l+&quot;0&quot;]=u.c2p(D.pos+M.bPos-b,!0),t[l+&quot;1&quot;]=u.c2p(D.pos+M.bPos+x,!0),t[l+&quot;LabelVal&quot;]=void 0!==D.orig_p?D.orig_p:D.pos;var B=l+&quot;Spike&quot;;t.spikeDistance=O(D)*y/v,t[B]=u.c2p(D.pos,!0);var N={},j=[&quot;med&quot;,&quot;q1&quot;,&quot;q3&quot;,&quot;min&quot;,&quot;max&quot;];(A.boxmean||(A.meanline||{}).visible)&amp;&amp;j.push(&quot;mean&quot;),(A.boxpoints||A.points)&amp;&amp;j.push(&quot;lf&quot;,&quot;uf&quot;);for(var U=0;U&lt;j.length;U++){var V=j[U];if(V in D&amp;&amp;!(D[V]in N)){N[D[V]]=!0;var H=D[V],q=f.c2p(H,!0),G=i.extendFlat({},t);G.attr=V,G[c+&quot;0&quot;]=G[c+&quot;1&quot;]=q,G[c+&quot;LabelVal&quot;]=H,G[c+&quot;Label&quot;]=(M.labels?M.labels[V]+&quot; &quot;:&quot;&quot;)+n.hoverLabelText(f,H,A[c+&quot;hoverformat&quot;]),G.hoverOnBox=!0,&quot;mean&quot;===V&amp;&amp;&quot;sd&quot;in D&amp;&amp;&quot;sd&quot;===A.boxmean&amp;&amp;(G[c+&quot;err&quot;]=D.sd),t.name=&quot;&quot;,t.spikeDistance=void 0,t[B]=void 0,G.hovertemplate=!1,E.push(G)}}return E}function c(t,e,r){for(var n,o,l,c=t.cd,u=t.xa,f=t.ya,h=c[0].trace,p=u.c2p(e),d=f.c2p(r),m=a.quadrature((function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(u.c2p(t.x)-p)-e,1-3/e)}),(function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(f.c2p(t.y)-d)-e,1-3/e)})),g=!1,v=0;v&lt;c.length;v++){o=c[v];for(var y=0;y&lt;(o.pts||[]).length;y++){var x=m(l=o.pts[y]);x&lt;=t.distance&amp;&amp;(t.distance=x,g=[v,y])}}if(!g)return!1;l=(o=c[g[0]]).pts[g[1]];var b=u.c2p(l.x,!0),_=f.c2p(l.y,!0),w=l.mrc||1;n=i.extendFlat({},t,{index:l.i,color:(h.marker||{}).color,name:h.name,x0:b-w,x1:b+w,y0:_-w,y1:_+w,spikeDistance:t.distance,hovertemplate:h.hovertemplate});var T,k=o.orig_p,A=void 0!==k?k:o.pos;return&quot;h&quot;===h.orientation?(T=f,n.xLabelVal=l.x,n.yLabelVal=A):(T=u,n.xLabelVal=A,n.yLabelVal=l.y),n[T._id.charAt(0)+&quot;Spike&quot;]=T.c2p(o.pos,!0),s(l,h,n),n}e.exports={hoverPoints:function(t,e,r,n){var i,a=t.cd[0].trace.hoveron,o=[];return-1!==a.indexOf(&quot;boxes&quot;)&amp;&amp;(o=o.concat(l(t,e,r,n))),-1!==a.indexOf(&quot;points&quot;)&amp;&amp;(i=c(t,e,r)),&quot;closest&quot;===n?i?[i]:o:i?(o.push(i),o):o},hoverOnBoxes:l,hoverOnPoints:c}},{&quot;../../components/color&quot;:366,&quot;../../components/fx&quot;:406,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554}],679:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;).supplyLayoutDefaults,calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;box&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;oriented&quot;,&quot;box-violin&quot;,&quot;showLegend&quot;,&quot;boxLayout&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:568,&quot;./attributes&quot;:673,&quot;./calc&quot;:674,&quot;./cross_trace_calc&quot;:675,&quot;./defaults&quot;:676,&quot;./event_data&quot;:677,&quot;./hover&quot;:678,&quot;./layout_attributes&quot;:680,&quot;./layout_defaults&quot;:681,&quot;./plot&quot;:682,&quot;./select&quot;:683,&quot;./style&quot;:684}],680:[function(t,e,r){&quot;use strict&quot;;e.exports={boxmode:{valType:&quot;enumerated&quot;,values:[&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;overlay&quot;,editType:&quot;calc&quot;},boxgap:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,editType:&quot;calc&quot;},boxgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,editType:&quot;calc&quot;}}},{}],681:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./layout_attributes&quot;);function o(t,e,r,i,a){for(var o=a+&quot;Layout&quot;,s=!1,l=0;l&lt;r.length;l++){var c=r[l];if(n.traceIs(c,o)){s=!0;break}}s&amp;&amp;(i(a+&quot;mode&quot;),i(a+&quot;gap&quot;),i(a+&quot;groupgap&quot;))}e.exports={supplyLayoutDefaults:function(t,e,r){o(0,0,r,(function(r,n){return i.coerce(t,e,a,r,n)}),&quot;box&quot;)},_supply:o}},{&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;./layout_attributes&quot;:680}],682:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;);function o(t,e,r,a){var o,s,l=&quot;h&quot;===r.orientation,c=e.val,u=e.pos,f=!!u.rangebreaks,h=a.bPos,p=a.wdPos||0,d=a.bPosPxOffset||0,m=r.whiskerwidth||0,g=r.notched||!1,v=g?1-2*r.notchwidth:1;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var y=t.selectAll(&quot;path.box&quot;).data(&quot;violin&quot;!==r.type||r.box.visible?i.identity:[]);y.enter().append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;class&quot;,&quot;box&quot;),y.exit().remove(),y.each((function(t){if(t.empty)return&quot;M0,0Z&quot;;var e=u.c2l(t.pos+h,!0),a=u.l2p(e-o)+d,y=u.l2p(e+s)+d,x=f?(a+y)/2:u.l2p(e)+d,b=r.whiskerwidth,_=f?a*b+(1-b)*x:u.l2p(e-p)+d,w=f?y*b+(1-b)*x:u.l2p(e+p)+d,T=u.l2p(e-o*v)+d,k=u.l2p(e+s*v)+d,A=c.c2p(t.q1,!0),M=c.c2p(t.q3,!0),S=i.constrain(c.c2p(t.med,!0),Math.min(A,M)+1,Math.max(A,M)-1),E=void 0===t.lf||!1===r.boxpoints,L=c.c2p(E?t.min:t.lf,!0),C=c.c2p(E?t.max:t.uf,!0),P=c.c2p(t.ln,!0),I=c.c2p(t.un,!0);l?n.select(this).attr(&quot;d&quot;,&quot;M&quot;+S+&quot;,&quot;+T+&quot;V&quot;+k+&quot;M&quot;+A+&quot;,&quot;+a+&quot;V&quot;+y+(g?&quot;H&quot;+P+&quot;L&quot;+S+&quot;,&quot;+k+&quot;L&quot;+I+&quot;,&quot;+y:&quot;&quot;)+&quot;H&quot;+M+&quot;V&quot;+a+(g?&quot;H&quot;+I+&quot;L&quot;+S+&quot;,&quot;+T+&quot;L&quot;+P+&quot;,&quot;+a:&quot;&quot;)+&quot;ZM&quot;+A+&quot;,&quot;+x+&quot;H&quot;+L+&quot;M&quot;+M+&quot;,&quot;+x+&quot;H&quot;+C+(0===m?&quot;&quot;:&quot;M&quot;+L+&quot;,&quot;+_+&quot;V&quot;+w+&quot;M&quot;+C+&quot;,&quot;+_+&quot;V&quot;+w)):n.select(this).attr(&quot;d&quot;,&quot;M&quot;+T+&quot;,&quot;+S+&quot;H&quot;+k+&quot;M&quot;+a+&quot;,&quot;+A+&quot;H&quot;+y+(g?&quot;V&quot;+P+&quot;L&quot;+k+&quot;,&quot;+S+&quot;L&quot;+y+&quot;,&quot;+I:&quot;&quot;)+&quot;V&quot;+M+&quot;H&quot;+a+(g?&quot;V&quot;+I+&quot;L&quot;+T+&quot;,&quot;+S+&quot;L&quot;+a+&quot;,&quot;+P:&quot;&quot;)+&quot;ZM&quot;+x+&quot;,&quot;+A+&quot;V&quot;+L+&quot;M&quot;+x+&quot;,&quot;+M+&quot;V&quot;+C+(0===m?&quot;&quot;:&quot;M&quot;+_+&quot;,&quot;+L+&quot;H&quot;+w+&quot;M&quot;+_+&quot;,&quot;+C+&quot;H&quot;+w))}))}function s(t,e,r,n){var o=e.x,s=e.y,l=n.bdPos,c=n.bPos,u=r.boxpoints||r.points;i.seedPseudoRandom();var f=t.selectAll(&quot;g.points&quot;).data(u?function(t){return t.forEach((function(t){t.t=n,t.trace=r})),t}:[]);f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;points&quot;),f.exit().remove();var h=f.selectAll(&quot;path&quot;).data((function(t){var e,n,a=t.pts2,o=Math.max((t.max-t.min)/10,t.q3-t.q1),s=1e-9*o,f=.01*o,h=[],p=0;if(r.jitter){if(0===o)for(p=1,h=new Array(a.length),e=0;e&lt;a.length;e++)h[e]=1;else for(e=0;e&lt;a.length;e++){var d=Math.max(0,e-5),m=a[d].v,g=Math.min(a.length-1,e+5),v=a[g].v;&quot;all&quot;!==u&amp;&amp;(a[e].v&lt;t.lf?v=Math.min(v,t.lf):m=Math.max(m,t.uf));var y=Math.sqrt(f*(g-d)/(v-m+s))||0;y=i.constrain(Math.abs(y),0,1),h.push(y),p=Math.max(y,p)}n=2*r.jitter/(p||1)}for(e=0;e&lt;a.length;e++){var x=a[e],b=x.v,_=r.jitter?n*h[e]*(i.pseudoRandom()-.5):0,w=t.pos+c+l*(r.pointpos+_);&quot;h&quot;===r.orientation?(x.y=w,x.x=b):(x.x=w,x.y=b),&quot;suspectedoutliers&quot;===u&amp;&amp;b&lt;t.uo&amp;&amp;b&gt;t.lo&amp;&amp;(x.so=!0)}return a}));h.enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0),h.exit().remove(),h.call(a.translatePoints,o,s)}function l(t,e,r,a){var o,s,l=e.val,c=e.pos,u=!!c.rangebreaks,f=a.bPos,h=a.bPosPxOffset||0,p=r.boxmean||(r.meanline||{}).visible;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var d=t.selectAll(&quot;path.mean&quot;).data(&quot;box&quot;===r.type&amp;&amp;r.boxmean||&quot;violin&quot;===r.type&amp;&amp;r.box.visible&amp;&amp;r.meanline.visible?i.identity:[]);d.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;mean&quot;).style({fill:&quot;none&quot;,&quot;vector-effect&quot;:&quot;non-scaling-stroke&quot;}),d.exit().remove(),d.each((function(t){var e=c.c2l(t.pos+f,!0),i=c.l2p(e-o)+h,a=c.l2p(e+s)+h,d=u?(i+a)/2:c.l2p(e)+h,m=l.c2p(t.mean,!0),g=l.c2p(t.mean-t.sd,!0),v=l.c2p(t.mean+t.sd,!0);&quot;h&quot;===r.orientation?n.select(this).attr(&quot;d&quot;,&quot;M&quot;+m+&quot;,&quot;+i+&quot;V&quot;+a+(&quot;sd&quot;===p?&quot;m0,0L&quot;+g+&quot;,&quot;+d+&quot;L&quot;+m+&quot;,&quot;+i+&quot;L&quot;+v+&quot;,&quot;+d+&quot;Z&quot;:&quot;&quot;)):n.select(this).attr(&quot;d&quot;,&quot;M&quot;+i+&quot;,&quot;+m+&quot;H&quot;+a+(&quot;sd&quot;===p?&quot;m0,0L&quot;+d+&quot;,&quot;+g+&quot;L&quot;+i+&quot;,&quot;+m+&quot;L&quot;+d+&quot;,&quot;+v+&quot;Z&quot;:&quot;&quot;))}))}e.exports={plot:function(t,e,r,a){var c=e.xaxis,u=e.yaxis;i.makeTraceGroups(a,r,&quot;trace boxes&quot;).each((function(t){var e,r,i=n.select(this),a=t[0],f=a.t,h=a.trace;(f.wdPos=f.bdPos*h.whiskerwidth,!0!==h.visible||f.empty)?i.remove():(&quot;h&quot;===h.orientation?(e=u,r=c):(e=c,r=u),o(i,{pos:e,val:r},h,f),s(i,{x:c,y:u},h,f),l(i,{pos:e,val:r},h,f))}))},plotBoxAndWhiskers:o,plotPoints:s,plotBoxMean:l}},{&quot;../../components/drawing&quot;:388,&quot;../../lib&quot;:503,&quot;@plotly/d3&quot;:58}],683:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n,i=t.cd,a=t.xaxis,o=t.yaxis,s=[];if(!1===e)for(r=0;r&lt;i.length;r++)for(n=0;n&lt;(i[r].pts||[]).length;n++)i[r].pts[n].selected=0;else for(r=0;r&lt;i.length;r++)for(n=0;n&lt;(i[r].pts||[]).length;n++){var l=i[r].pts[n],c=a.c2p(l.x),u=o.c2p(l.y);e.contains([c,u],null,l.i,t)?(s.push({pointNumber:l.i,x:a.c2d(l.x),y:o.c2d(l.y)}),l.selected=1):l.selected=0}return s}},{}],684:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;);e.exports={style:function(t,e,r){var o=r||n.select(t).selectAll(&quot;g.trace.boxes&quot;);o.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),o.each((function(e){var r=n.select(this),o=e[0].trace,s=o.line.width;function l(t,e,r,n){t.style(&quot;stroke-width&quot;,e+&quot;px&quot;).call(i.stroke,r).call(i.fill,n)}var c=r.selectAll(&quot;path.box&quot;);if(&quot;candlestick&quot;===o.type)c.each((function(t){if(!t.empty){var e=n.select(this),r=o[t.dir];l(e,r.line.width,r.line.color,r.fillcolor),e.style(&quot;opacity&quot;,o.selectedpoints&amp;&amp;!t.selected?.3:1)}}));else{l(c,s,o.line.color,o.fillcolor),r.selectAll(&quot;path.mean&quot;).style({&quot;stroke-width&quot;:s,&quot;stroke-dasharray&quot;:2*s+&quot;px,&quot;+s+&quot;px&quot;}).call(i.stroke,o.line.color);var u=r.selectAll(&quot;path.point&quot;);a.pointStyle(u,o,t)}}))},styleOnSelect:function(t,e,r){var n=e[0].trace,i=r.selectAll(&quot;path.point&quot;);n.selectedpoints?a.selectedPointStyle(i,n):a.pointStyle(i,n,t)}}},{&quot;../../components/color&quot;:366,&quot;../../components/drawing&quot;:388,&quot;@plotly/d3&quot;:58}],685:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).extendFlat,i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../ohlc/attributes&quot;),o=t(&quot;../box/attributes&quot;);function s(t){return{line:{color:n({},o.line.color,{dflt:t}),width:o.line.width,editType:&quot;style&quot;},fillcolor:o.fillcolor,editType:&quot;style&quot;}}e.exports={xperiod:a.xperiod,xperiod0:a.xperiod0,xperiodalignment:a.xperiodalignment,xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),x:a.x,open:a.open,high:a.high,low:a.low,close:a.close,line:{width:n({},o.line.width,{}),editType:&quot;style&quot;},increasing:s(a.increasing.line.color.dflt),decreasing:s(a.decreasing.line.color.dflt),text:a.text,hovertext:a.hovertext,whiskerwidth:n({},o.whiskerwidth,{dflt:0}),hoverlabel:a.hoverlabel}},{&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../box/attributes&quot;:673,&quot;../ohlc/attributes&quot;:872}],686:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/cartesian/align_period&quot;),o=t(&quot;../ohlc/calc&quot;).calcCommon;function s(t,e,r,n){return{min:r,q1:Math.min(t,n),med:n,q3:Math.max(t,n),max:e}}e.exports=function(t,e){var r=t._fullLayout,l=i.getFromId(t,e.xaxis),c=i.getFromId(t,e.yaxis),u=l.makeCalcdata(e,&quot;x&quot;),f=a(e,l,&quot;x&quot;,u).vals,h=o(t,e,u,f,c,s);return h.length?(n.extendFlat(h[0].t,{num:r._numBoxes,dPos:n.distinctVals(f).minDiff/2,posLetter:&quot;x&quot;,valLetter:&quot;y&quot;}),r._numBoxes++,h):[{t:{empty:!0}}]}},{&quot;../../lib&quot;:503,&quot;../../plots/cartesian/align_period&quot;:551,&quot;../../plots/cartesian/axes&quot;:554,&quot;../ohlc/calc&quot;:873}],687:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../ohlc/ohlc_defaults&quot;),o=t(&quot;../scatter/period_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r,n){var a=r(n+&quot;.line.color&quot;);r(n+&quot;.line.width&quot;,e.line.width),r(n+&quot;.fillcolor&quot;,i.addOpacity(a,.5))}e.exports=function(t,e,r,i){function c(r,i){return n.coerce(t,e,s,r,i)}a(t,e,c,i)?(o(t,e,i,c,{x:!0}),c(&quot;xhoverformat&quot;),c(&quot;yhoverformat&quot;),c(&quot;line.width&quot;),l(t,e,c,&quot;increasing&quot;),l(t,e,c,&quot;decreasing&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;whiskerwidth&quot;),i._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{&quot;../../components/color&quot;:366,&quot;../../lib&quot;:503,&quot;../ohlc/ohlc_defaults&quot;:877,&quot;../scatter/period_defaults&quot;:946,&quot;./attributes&quot;:685}],688:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;candlestick&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;showLegend&quot;,&quot;candlestick&quot;,&quot;boxLayout&quot;],meta:{},attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;../box/layout_attributes&quot;),supplyLayoutDefaults:t(&quot;../box/layout_defaults&quot;).supplyLayoutDefaults,crossTraceCalc:t(&quot;../box/cross_trace_calc&quot;).crossTraceCalc,supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;../box/plot&quot;).plot,layerName:&quot;boxlayer&quot;,style:t(&quot;../box/style&quot;).style,hoverPoints:t(&quot;../ohlc/hover&quot;).hoverPoints,selectPoints:t(&quot;../ohlc/select&quot;)}},{&quot;../../plots/cartesian&quot;:568,&quot;../box/cross_trace_calc&quot;:675,&quot;../box/layout_attributes&quot;:680,&quot;../box/layout_defaults&quot;:681,&quot;../box/plot&quot;:682,&quot;../box/style&quot;:684,&quot;../ohlc/hover&quot;:875,&quot;../ohlc/select&quot;:879,&quot;./attributes&quot;:685,&quot;./calc&quot;:686,&quot;./defaults&quot;:687}],689:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./axis_defaults&quot;),i=t(&quot;../../plot_api/plot_template&quot;);e.exports=function(t,e,r,a,o){a(&quot;a&quot;)||(a(&quot;da&quot;),a(&quot;a0&quot;)),a(&quot;b&quot;)||(a(&quot;db&quot;),a(&quot;b0&quot;)),function(t,e,r,a){[&quot;aaxis&quot;,&quot;baxis&quot;].forEach((function(o){var s=o.charAt(0),l=t[o]||{},c=i.newContainer(e,o),u={tickfont:&quot;x&quot;,id:s+&quot;axis&quot;,letter:s,font:e.font,name:o,data:t[s],calendar:e.calendar,dfltColor:a,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};n(l,c,u),c._categories=c._categories||[],t[o]||&quot;-&quot;===l.type||(t[o]={type:l.type})}))}(t,e,r,o)}},{&quot;../../plot_api/plot_template&quot;:543,&quot;./axis_defaults&quot;:694}],690:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t){return function t(e,r){if(!n(e)||r&gt;=10)return null;for(var i=1/0,a=-1/0,o=e.length,s=0;s&lt;o;s++){var l=e[s];if(n(l)){var c=t(l,r+1);c&amp;&amp;(i=Math.min(c[0],i),a=Math.max(c[1],a))}else i=Math.min(l,i),a=Math.max(l,a)}return[i,a]}(t,0)}},{&quot;../../lib&quot;:503}],691:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;./axis_attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=n({editType:&quot;calc&quot;});o.family.dflt='&quot;Open Sans&quot;, verdana, arial, sans-serif',o.size.dflt=12,o.color.dflt=a.defaultLine,e.exports={carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},a0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},da:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},db:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},cheaterslope:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},aaxis:i,baxis:i,font:o,color:{valType:&quot;color&quot;,dflt:a.defaultLine,editType:&quot;plot&quot;},transforms:void 0}},{&quot;../../components/color/attributes&quot;:365,&quot;../../plots/font_attributes&quot;:585,&quot;./axis_attributes&quot;:693}],692:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,m,g,v,y=n(r)?&quot;a&quot;:&quot;b&quot;,x=(&quot;a&quot;===y?t.aaxis:t.baxis).smoothing,b=&quot;a&quot;===y?t.a2i:t.b2j,_=&quot;a&quot;===y?r:i,w=&quot;a&quot;===y?i:r,T=&quot;a&quot;===y?e.a.length:e.b.length,k=&quot;a&quot;===y?e.b.length:e.a.length,A=Math.floor(&quot;a&quot;===y?t.b2j(w):t.a2i(w)),M=&quot;a&quot;===y?function(e){return t.evalxy([],e,A)}:function(e){return t.evalxy([],A,e)};x&amp;&amp;(s=Math.max(0,Math.min(k-2,A)),l=A-s,o=&quot;a&quot;===y?function(e,r){return t.dxydi([],e,s,r,l)}:function(e,r){return t.dxydj([],s,e,l,r)});var S=b(_[0]),E=b(_[1]),L=S&lt;E?1:-1,C=1e-8*(E-S),P=L&gt;0?Math.floor:Math.ceil,I=L&gt;0?Math.ceil:Math.floor,O=L&gt;0?Math.min:Math.max,z=L&gt;0?Math.max:Math.min,D=P(S+C),R=I(E-C),F=[[f=M(S)]];for(a=D;a*L&lt;R*L;a+=L)c=[],m=z(S,a),v=(g=O(E,a+L))-m,u=Math.max(0,Math.min(T-2,Math.floor(.5*(m+g)))),h=M(g),x&amp;&amp;(p=o(u,m-u),d=o(u,g-u),c.push([f[0]+p[0]/3*v,f[1]+p[1]/3*v]),c.push([h[0]-d[0]/3*v,h[1]-d[1]/3*v])),c.push(h),F.push(c),f=h;return F}},{&quot;../../lib&quot;:503}],693:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../components/color/attributes&quot;),a=t(&quot;../../plots/cartesian/layout_attributes&quot;),o=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).descriptionWithDates,s=t(&quot;../../plot_api/edit_types&quot;).overrideAll;e.exports={color:{valType:&quot;color&quot;,editType:&quot;calc&quot;},smoothing:{valType:&quot;number&quot;,dflt:1,min:0,max:1.3,editType:&quot;calc&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},font:n({editType:&quot;calc&quot;}),offset:{valType:&quot;number&quot;,dflt:10,editType:&quot;calc&quot;},editType:&quot;calc&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;date&quot;,&quot;category&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;},autotypenumbers:a.autotypenumbers,autorange:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],dflt:!0,editType:&quot;calc&quot;},rangemode:{valType:&quot;enumerated&quot;,values:[&quot;normal&quot;,&quot;tozero&quot;,&quot;nonnegative&quot;],dflt:&quot;normal&quot;,editType:&quot;calc&quot;},range:{valType:&quot;info_array&quot;,editType:&quot;calc&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}]},fixedrange:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},cheatertype:{valType:&quot;enumerated&quot;,values:[&quot;index&quot;,&quot;value&quot;],dflt:&quot;value&quot;,editType:&quot;calc&quot;},tickmode:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;array&quot;],dflt:&quot;array&quot;,editType:&quot;calc&quot;},nticks:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},tickvals:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},showticklabels:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;end&quot;,&quot;both&quot;,&quot;none&quot;],dflt:&quot;start&quot;,editType:&quot;calc&quot;},tickfont:n({editType:&quot;calc&quot;}),tickangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;calc&quot;},tickprefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showtickprefix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},ticksuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showticksuffix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},showexponent:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},exponentformat:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;e&quot;,&quot;E&quot;,&quot;power&quot;,&quot;SI&quot;,&quot;B&quot;],dflt:&quot;B&quot;,editType:&quot;calc&quot;},minexponent:{valType:&quot;number&quot;,dflt:3,min:0,editType:&quot;calc&quot;},separatethousands:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},tickformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;,description:o(&quot;tick label&quot;)},tickformatstops:s(a.tickformatstops,&quot;calc&quot;,&quot;from-root&quot;),categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},labelpadding:{valType:&quot;integer&quot;,dflt:10,editType:&quot;calc&quot;},labelprefix:{valType:&quot;string&quot;,editType:&quot;calc&quot;},labelsuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showline:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},linecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;calc&quot;},linewidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},gridcolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},showgrid:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},minorgridcount:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},minorgridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},minorgridcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;calc&quot;},startline:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},startlinecolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},startlinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},endline:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},endlinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},endlinecolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},tick0:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},dtick:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},arraytick0:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},arraydtick:{valType:&quot;integer&quot;,min:1,dflt:1,editType:&quot;calc&quot;},_deprecated:{title:{valType:&quot;string&quot;,editType:&quot;calc&quot;},titlefont:n({editType:&quot;calc&quot;}),titleoffset:{valType:&quot;number&quot;,dflt:10,editType:&quot;calc&quot;}},editType:&quot;calc&quot;}},{&quot;../../components/color/attributes&quot;:365,&quot;../../plot_api/edit_types&quot;:536,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/cartesian/layout_attributes&quot;:569,&quot;../../plots/font_attributes&quot;:585}],694:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./attributes&quot;),i=t(&quot;../../components/color&quot;).addOpacity,a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),l=t(&quot;../../plots/cartesian/tick_label_defaults&quot;),c=t(&quot;../../plots/cartesian/prefix_suffix_defaults&quot;),u=t(&quot;../../plots/cartesian/category_order_defaults&quot;),f=t(&quot;../../plots/cartesian/set_convert&quot;),h=t(&quot;../../plots/cartesian/axis_autotype&quot;);e.exports=function(t,e,r){var p=r.letter,d=r.font||{},m=n[p+&quot;axis&quot;];function g(r,n){return o.coerce(t,e,m,r,n)}function v(r,n){return o.coerce2(t,e,m,r,n)}r.name&amp;&amp;(e._name=r.name,e._id=r.name),g(&quot;autotypenumbers&quot;,r.autotypenumbersDflt);var y=g(&quot;type&quot;);(&quot;-&quot;===y&amp;&amp;(r.data&amp;&amp;function(t,e){if(&quot;-&quot;!==t.type)return;var r=t._id.charAt(0),n=t[r+&quot;calendar&quot;];t.type=h(e,n,{autotypenumbers:t.autotypenumbers})}(e,r.data),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:y=t.type=e.type),g(&quot;smoothing&quot;),g(&quot;cheatertype&quot;),g(&quot;showticklabels&quot;),g(&quot;labelprefix&quot;,p+&quot; = &quot;),g(&quot;labelsuffix&quot;),g(&quot;showtickprefix&quot;),g(&quot;showticksuffix&quot;),g(&quot;separatethousands&quot;),g(&quot;tickformat&quot;),g(&quot;exponentformat&quot;),g(&quot;minexponent&quot;),g(&quot;showexponent&quot;),g(&quot;categoryorder&quot;),g(&quot;tickmode&quot;),g(&quot;tickvals&quot;),g(&quot;ticktext&quot;),g(&quot;tick0&quot;),g(&quot;dtick&quot;),&quot;array&quot;===e.tickmode&amp;&amp;(g(&quot;arraytick0&quot;),g(&quot;arraydtick&quot;)),g(&quot;labelpadding&quot;),e._hovertitle=p,&quot;date&quot;===y)&amp;&amp;a.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;,r.calendar);f(e,r.fullLayout),e.c2p=o.identity;var x=g(&quot;color&quot;,r.dfltColor),b=x===t.color?x:d.color;g(&quot;title.text&quot;)&amp;&amp;(o.coerceFont(g,&quot;title.font&quot;,{family:d.family,size:o.bigFont(d.size),color:b}),g(&quot;title.offset&quot;)),g(&quot;tickangle&quot;),g(&quot;autorange&quot;,!e.isValidRange(t.range))&amp;&amp;g(&quot;rangemode&quot;),g(&quot;range&quot;),e.cleanRange(),g(&quot;fixedrange&quot;),s(t,e,g,y),c(t,e,g,y,r),l(t,e,g,y,r),u(t,e,g,{data:r.data,dataAttr:p});var _=v(&quot;gridcolor&quot;,i(x,.3)),w=v(&quot;gridwidth&quot;),T=g(&quot;showgrid&quot;);T||(delete e.gridcolor,delete e.gridwidth);var k=v(&quot;startlinecolor&quot;,x),A=v(&quot;startlinewidth&quot;,w);g(&quot;startline&quot;,e.showgrid||!!k||!!A)||(delete e.startlinecolor,delete e.startlinewidth);var M=v(&quot;endlinecolor&quot;,x),S=v(&quot;endlinewidth&quot;,w);return g(&quot;endline&quot;,e.showgrid||!!M||!!S)||(delete e.endlinecolor,delete e.endlinewidth),T?(g(&quot;minorgridcount&quot;),g(&quot;minorgridwidth&quot;,w),g(&quot;minorgridcolor&quot;,i(_,.06)),e.minorgridcount||(delete e.minorgridwidth,delete e.minorgridcolor)):(delete e.gridcolor,delete e.gridWidth),&quot;none&quot;===e.showticklabels&amp;&amp;(delete e.tickfont,delete e.tickangle,delete e.showexponent,delete e.exponentformat,delete e.minexponent,delete e.tickformat,delete e.showticksuffix,delete e.showtickprefix),e.showticksuffix||delete e.ticksuffix,e.showtickprefix||delete e.tickprefix,g(&quot;tickmode&quot;),e}},{&quot;../../components/color&quot;:366,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axis_autotype&quot;:555,&quot;../../plots/cartesian/category_order_defaults&quot;:559,&quot;../../plots/cartesian/prefix_suffix_defaults&quot;:573,&quot;../../plots/cartesian/set_convert&quot;:576,&quot;../../plots/cartesian/tick_label_defaults&quot;:578,&quot;../../plots/cartesian/tick_value_defaults&quot;:580,&quot;../../registry&quot;:638,&quot;./attributes&quot;:691}],695:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;).isArray1D,a=t(&quot;./cheater_basis&quot;),o=t(&quot;./array_minmax&quot;),s=t(&quot;./calc_gridlines&quot;),l=t(&quot;./calc_labels&quot;),c=t(&quot;./calc_clippath&quot;),u=t(&quot;../heatmap/clean_2d_array&quot;),f=t(&quot;./smooth_fill_2d_array&quot;),h=t(&quot;../heatmap/convert_column_xyz&quot;),p=t(&quot;./set_convert&quot;);e.exports=function(t,e){var r=n.getFromId(t,e.xaxis),d=n.getFromId(t,e.yaxis),m=e.aaxis,g=e.baxis,v=e.x,y=e.y,x=[];v&amp;&amp;i(v)&amp;&amp;x.push(&quot;x&quot;),y&amp;&amp;i(y)&amp;&amp;x.push(&quot;y&quot;),x.length&amp;&amp;h(e,m,g,&quot;a&quot;,&quot;b&quot;,x);var b=e._a=e._a||e.a,_=e._b=e._b||e.b;v=e._x||e.x,y=e._y||e.y;var w={};if(e._cheater){var T=&quot;index&quot;===m.cheatertype?b.length:b,k=&quot;index&quot;===g.cheatertype?_.length:_;v=a(T,k,e.cheaterslope)}e._x=v=u(v),e._y=y=u(y),f(v,b,_),f(y,b,_),p(e),e.setScale();var A=o(v),M=o(y),S=.5*(A[1]-A[0]),E=.5*(A[1]+A[0]),L=.5*(M[1]-M[0]),C=.5*(M[1]+M[0]);return A=[E-1.3*S,E+1.3*S],M=[C-1.3*L,C+1.3*L],e._extremes[r._id]=n.findExtremes(r,A,{padded:!0}),e._extremes[d._id]=n.findExtremes(d,M,{padded:!0}),s(e,&quot;a&quot;,&quot;b&quot;),s(e,&quot;b&quot;,&quot;a&quot;),l(e,m),l(e,g),w.clipsegments=c(e._xctrl,e._yctrl,m,g),w.x=v,w.y=y,w.a=b,w.b=_,[w]}},{&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554,&quot;../heatmap/clean_2d_array&quot;:794,&quot;../heatmap/convert_column_xyz&quot;:796,&quot;./array_minmax&quot;:690,&quot;./calc_clippath&quot;:696,&quot;./calc_gridlines&quot;:697,&quot;./calc_labels&quot;:698,&quot;./cheater_basis&quot;:700,&quot;./set_convert&quot;:713,&quot;./smooth_fill_2d_array&quot;:714}],696:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i,a,o,s=[],l=!!r.smoothing,c=!!n.smoothing,u=t[0].length-1,f=t.length-1;for(i=0,a=[],o=[];i&lt;=u;i++)a[i]=t[0][i],o[i]=e[0][i];for(s.push({x:a,y:o,bicubic:l}),i=0,a=[],o=[];i&lt;=f;i++)a[i]=t[i][u],o[i]=e[i][u];for(s.push({x:a,y:o,bicubic:c}),i=u,a=[],o=[];i&gt;=0;i--)a[u-i]=t[f][i],o[u-i]=e[f][i];for(s.push({x:a,y:o,bicubic:l}),i=f,a=[],o=[];i&gt;=0;i--)a[f-i]=t[i][0],o[f-i]=e[i][0];return s.push({x:a,y:o,bicubic:c}),s}},{}],697:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=function(t,e,r){var a,o,s,l,c,u,f,h,p,d,m,g,v,y,x=t[&quot;_&quot;+e],b=t[e+&quot;axis&quot;],_=b._gridlines=[],w=b._minorgridlines=[],T=b._boundarylines=[],k=t[&quot;_&quot;+r],A=t[r+&quot;axis&quot;];&quot;array&quot;===b.tickmode&amp;&amp;(b.tickvals=x.slice());var M=t._xctrl,S=t._yctrl,E=M[0].length,L=M.length,C=t._a.length,P=t._b.length;n.prepTicks(b),&quot;array&quot;===b.tickmode&amp;&amp;delete b.tickvals;var I=b.smoothing?3:1;function O(n){var i,a,o,s,l,c,u,f,p,d,m,g,v=[],y=[],x={};if(&quot;b&quot;===e)for(a=t.b2j(n),o=Math.floor(Math.max(0,Math.min(P-2,a))),s=a-o,x.length=P,x.crossLength=C,x.xy=function(e){return t.evalxy([],e,a)},x.dxy=function(e,r){return t.dxydi([],e,o,r,s)},i=0;i&lt;C;i++)c=Math.min(C-2,i),u=i-c,f=t.evalxy([],i,a),A.smoothing&amp;&amp;i&gt;0&amp;&amp;(p=t.dxydi([],i-1,o,0,s),v.push(l[0]+p[0]/3),y.push(l[1]+p[1]/3),d=t.dxydi([],i-1,o,1,s),v.push(f[0]-d[0]/3),y.push(f[1]-d[1]/3)),v.push(f[0]),y.push(f[1]),l=f;else for(i=t.a2i(n),c=Math.floor(Math.max(0,Math.min(C-2,i))),u=i-c,x.length=C,x.crossLength=P,x.xy=function(e){return t.evalxy([],i,e)},x.dxy=function(e,r){return t.dxydj([],c,e,u,r)},a=0;a&lt;P;a++)o=Math.min(P-2,a),s=a-o,f=t.evalxy([],i,a),A.smoothing&amp;&amp;a&gt;0&amp;&amp;(m=t.dxydj([],c,a-1,u,0),v.push(l[0]+m[0]/3),y.push(l[1]+m[1]/3),g=t.dxydj([],c,a-1,u,1),v.push(f[0]-g[0]/3),y.push(f[1]-g[1]/3)),v.push(f[0]),y.push(f[1]),l=f;return x.axisLetter=e,x.axis=b,x.crossAxis=A,x.value=n,x.constvar=r,x.index=h,x.x=v,x.y=y,x.smoothing=A.smoothing,x}function z(n){var i,a,o,s,l,c=[],u=[],f={};if(f.length=x.length,f.crossLength=k.length,&quot;b&quot;===e)for(o=Math.max(0,Math.min(P-2,n)),l=Math.min(1,Math.max(0,n-o)),f.xy=function(e){return t.evalxy([],e,n)},f.dxy=function(e,r){return t.dxydi([],e,o,r,l)},i=0;i&lt;E;i++)c[i]=M[n*I][i],u[i]=S[n*I][i];else for(a=Math.max(0,Math.min(C-2,n)),s=Math.min(1,Math.max(0,n-a)),f.xy=function(e){return t.evalxy([],n,e)},f.dxy=function(e,r){return t.dxydj([],a,e,s,r)},i=0;i&lt;L;i++)c[i]=M[i][n*I],u[i]=S[i][n*I];return f.axisLetter=e,f.axis=b,f.crossAxis=A,f.value=x[n],f.constvar=r,f.index=n,f.x=c,f.y=u,f.smoothing=A.smoothing,f}if(&quot;array&quot;===b.tickmode){for(l=5e-15,u=(c=[Math.floor((x.length-1-b.arraytick0)/b.arraydtick*(1+l)),Math.ceil(-b.arraytick0/b.arraydtick/(1+l))].sort((function(t,e){return t-e})))[0]-1,f=c[1]+1,h=u;h&lt;f;h++)(o=b.arraytick0+b.arraydtick*h)&lt;0||o&gt;x.length-1||_.push(i(z(o),{color:b.gridcolor,width:b.gridwidth}));for(h=u;h&lt;f;h++)if(s=b.arraytick0+b.arraydtick*h,m=Math.min(s+b.arraydtick,x.length-1),!(s&lt;0||s&gt;x.length-1||m&lt;0||m&gt;x.length-1))for(g=x[s],v=x[m],a=0;a&lt;b.minorgridcount;a++)(y=m-s)&lt;=0||(d=g+(v-g)*(a+1)/(b.minorgridcount+1)*(b.arraydtick/y))&lt;x[0]||d&gt;x[x.length-1]||w.push(i(O(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&amp;&amp;T.push(i(z(0),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&amp;&amp;T.push(i(z(x.length-1),{color:b.endlinecolor,width:b.endlinewidth}))}else{for(l=5e-15,u=(c=[Math.floor((x[x.length-1]-b.tick0)/b.dtick*(1+l)),Math.ceil((x[0]-b.tick0)/b.dtick/(1+l))].sort((function(t,e){return t-e})))[0],f=c[1],h=u;h&lt;=f;h++)p=b.tick0+b.dtick*h,_.push(i(O(p),{color:b.gridcolor,width:b.gridwidth}));for(h=u-1;h&lt;f+1;h++)for(p=b.tick0+b.dtick*h,a=0;a&lt;b.minorgridcount;a++)(d=p+b.dtick*(a+1)/(b.minorgridcount+1))&lt;x[0]||d&gt;x[x.length-1]||w.push(i(O(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&amp;&amp;T.push(i(O(x[0]),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&amp;&amp;T.push(i(O(x[x.length-1]),{color:b.endlinecolor,width:b.endlinewidth}))}}},{&quot;../../lib/extend&quot;:493,&quot;../../plots/cartesian/axes&quot;:554}],698:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=function(t,e){var r,a,o,s=e._labels=[],l=e._gridlines;for(r=0;r&lt;l.length;r++)o=l[r],-1!==[&quot;start&quot;,&quot;both&quot;].indexOf(e.showticklabels)&amp;&amp;(a=n.tickText(e,o.value),i(a,{prefix:void 0,suffix:void 0,endAnchor:!0,xy:o.xy(0),dxy:o.dxy(0,0),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a)),-1!==[&quot;end&quot;,&quot;both&quot;].indexOf(e.showticklabels)&amp;&amp;(a=n.tickText(e,o.value),i(a,{endAnchor:!1,xy:o.xy(o.crossLength-1),dxy:o.dxy(o.crossLength-2,1),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a))}},{&quot;../../lib/extend&quot;:493,&quot;../../plots/cartesian/axes&quot;:554}],699:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i=t[0]-e[0],a=t[1]-e[1],o=r[0]-e[0],s=r[1]-e[1],l=Math.pow(i*i+a*a,.25),c=Math.pow(o*o+s*s,.25),u=(c*c*i-l*l*o)*n,f=(c*c*a-l*l*s)*n,h=c*(l+c)*3,p=l*(l+c)*3;return[[e[0]+(h&amp;&amp;u/h),e[1]+(h&amp;&amp;f/h)],[e[0]-(p&amp;&amp;u/p),e[1]-(p&amp;&amp;f/p)]]}},{}],700:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r){var i,a,o,s,l,c,u=[],f=n(t)?t.length:t,h=n(e)?e.length:e,p=n(t)?t:null,d=n(e)?e:null;p&amp;&amp;(o=(p.length-1)/(p[p.length-1]-p[0])/(f-1)),d&amp;&amp;(s=(d.length-1)/(d[d.length-1]-d[0])/(h-1));var m=1/0,g=-1/0;for(a=0;a&lt;h;a++)for(u[a]=[],l=d?(d[a]-d[0])*s:a/(h-1),i=0;i&lt;f;i++)c=(p?(p[i]-p[0])*o:i/(f-1))-l*r,m=Math.min(c,m),g=Math.max(c,g),u[a][i]=c;var v=1/(g-m),y=-m*v;for(a=0;a&lt;h;a++)for(i=0;i&lt;f;i++)u[a][i]=v*u[a][i]+y;return u}},{&quot;../../lib&quot;:503}],701:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./catmull_rom&quot;),i=t(&quot;../../lib&quot;).ensureArray;function a(t,e,r){var n=-.5*r[0]+1.5*e[0],i=-.5*r[1]+1.5*e[1];return[(2*n+t[0])/3,(2*i+t[1])/3]}e.exports=function(t,e,r,o,s,l){var c,u,f,h,p,d,m,g,v,y,x=r[0].length,b=r.length,_=s?3*x-2:x,w=l?3*b-2:b;for(t=i(t,w),e=i(e,w),f=0;f&lt;w;f++)t[f]=i(t[f],_),e[f]=i(e[f],_);for(u=0,h=0;u&lt;b;u++,h+=l?3:1)for(p=t[h],d=e[h],m=r[u],g=o[u],c=0,f=0;c&lt;x;c++,f+=s?3:1)p[f]=m[c],d[f]=g[c];if(s)for(u=0,h=0;u&lt;b;u++,h+=l?3:1){for(c=1,f=3;c&lt;x-1;c++,f+=3)v=n([r[u][c-1],o[u][c-1]],[r[u][c],o[u][c]],[r[u][c+1],o[u][c+1]],s),t[h][f-1]=v[0][0],e[h][f-1]=v[0][1],t[h][f+1]=v[1][0],e[h][f+1]=v[1][1];y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=y[0],e[h][1]=y[1],y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=y[0],e[h][_-2]=y[1]}if(l)for(f=0;f&lt;_;f++){for(h=3;h&lt;w-3;h+=3)v=n([t[h-3][f],e[h-3][f]],[t[h][f],e[h][f]],[t[h+3][f],e[h+3][f]],l),t[h-1][f]=v[0][0],e[h-1][f]=v[0][1],t[h+1][f]=v[1][0],e[h+1][f]=v[1][1];y=a([t[0][f],e[0][f]],[t[2][f],e[2][f]],[t[3][f],e[3][f]]),t[1][f]=y[0],e[1][f]=y[1],y=a([t[w-1][f],e[w-1][f]],[t[w-3][f],e[w-3][f]],[t[w-4][f],e[w-4][f]]),t[w-2][f]=y[0],e[w-2][f]=y[1]}if(s&amp;&amp;l)for(h=1;h&lt;w;h+=(h+1)%3==0?2:1){for(f=3;f&lt;_-3;f+=3)v=n([t[h][f-3],e[h][f-3]],[t[h][f],e[h][f]],[t[h][f+3],e[h][f+3]],s),t[h][f-1]=.5*(t[h][f-1]+v[0][0]),e[h][f-1]=.5*(e[h][f-1]+v[0][1]),t[h][f+1]=.5*(t[h][f+1]+v[1][0]),e[h][f+1]=.5*(e[h][f+1]+v[1][1]);y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=.5*(t[h][1]+y[0]),e[h][1]=.5*(e[h][1]+y[1]),y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=.5*(t[h][_-2]+y[0]),e[h][_-2]=.5*(e[h][_-2]+y[1])}return[t,e]}},{&quot;../../lib&quot;:503,&quot;./catmull_rom&quot;:699}],702:[function(t,e,r){&quot;use strict&quot;;e.exports={RELATIVE_CULL_TOLERANCE:1e-6}},{}],703:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return e&amp;&amp;r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=1-i,d=p*p,m=p*i*2,g=-3*d,v=3*(d-m),y=3*(m-h),x=3*h,b=a*a,_=b*a,w=1-a,T=w*w,k=T*w;for(f=0;f&lt;t.length;f++)o=g*(u=t[f])[n][r]+v*u[n][r+1]+y*u[n][r+2]+x*u[n][r+3],s=g*u[n+1][r]+v*u[n+1][r+1]+y*u[n+1][r+2]+x*u[n+1][r+3],l=g*u[n+2][r]+v*u[n+2][r+1]+y*u[n+2][r+2]+x*u[n+2][r+3],c=g*u[n+3][r]+v*u[n+3][r+1]+y*u[n+3][r+2]+x*u[n+3][r+3],e[f]=k*o+3*(T*a*s+w*b*l)+_*c;return e}:e?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),r*=3;var u=i*i,f=1-i,h=f*f,p=f*i*2,d=-3*h,m=3*(h-p),g=3*(p-u),v=3*u,y=1-a;for(l=0;l&lt;t.length;l++)o=d*(c=t[l])[n][r]+m*c[n][r+1]+g*c[n][r+2]+v*c[n][r+3],s=d*c[n+1][r]+m*c[n+1][r+1]+g*c[n+1][r+2]+v*c[n+1][r+3],e[l]=y*o+a*s;return e}:r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),n*=3;var h=a*a,p=h*a,d=1-a,m=d*d,g=m*d;for(u=0;u&lt;t.length;u++)o=(f=t[u])[n][r+1]-f[n][r],s=f[n+1][r+1]-f[n+1][r],l=f[n+2][r+1]-f[n+2][r],c=f[n+3][r+1]-f[n+3][r],e[u]=g*o+3*(m*a*s+d*h*l)+p*c;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-a;for(l=0;l&lt;t.length;l++)o=(c=t[l])[n][r+1]-c[n][r],s=c[n+1][r+1]-c[n+1][r],e[l]=u*o+a*s;return e}}},{}],704:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return e&amp;&amp;r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=h*i,d=1-i,m=d*d,g=m*d,v=a*a,y=1-a,x=y*y,b=y*a*2,_=-3*x,w=3*(x-b),T=3*(b-v),k=3*v;for(f=0;f&lt;t.length;f++)o=_*(u=t[f])[n][r]+w*u[n+1][r]+T*u[n+2][r]+k*u[n+3][r],s=_*u[n][r+1]+w*u[n+1][r+1]+T*u[n+2][r+1]+k*u[n+3][r+1],l=_*u[n][r+2]+w*u[n+1][r+2]+T*u[n+2][r+2]+k*u[n+3][r+2],c=_*u[n][r+3]+w*u[n+1][r+3]+T*u[n+2][r+3]+k*u[n+3][r+3],e[f]=g*o+3*(m*i*s+d*h*l)+p*c;return e}:e?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3;var h=a*a,p=h*a,d=1-a,m=d*d,g=m*d;for(u=0;u&lt;t.length;u++)o=(f=t[u])[n+1][r]-f[n][r],s=f[n+1][r+1]-f[n][r+1],l=f[n+1][r+2]-f[n][r+2],c=f[n+1][r+3]-f[n][r+3],e[u]=g*o+3*(m*a*s+d*h*l)+p*c;return e}:r?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),n*=3;var u=1-i,f=a*a,h=1-a,p=h*h,d=h*a*2,m=-3*p,g=3*(p-d),v=3*(d-f),y=3*f;for(l=0;l&lt;t.length;l++)o=m*(c=t[l])[n][r]+g*c[n+1][r]+v*c[n+2][r]+y*c[n+3][r],s=m*c[n][r+1]+g*c[n+1][r+1]+v*c[n+2][r+1]+y*c[n+3][r+1],e[l]=u*o+i*s;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-i;for(l=0;l&lt;t.length;l++)o=(c=t[l])[n+1][r]-c[n][r],s=c[n+1][r+1]-c[n][r+1],e[l]=u*o+i*s;return e}}},{}],705:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=e-2,o=r-2;return n&amp;&amp;i?function(e,r,n){var i,s,l,c,u,f;e||(e=[]);var h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),m=Math.max(0,Math.min(1,n-p));h*=3,p*=3;var g=d*d,v=g*d,y=1-d,x=y*y,b=x*y,_=m*m,w=_*m,T=1-m,k=T*T,A=k*T;for(f=0;f&lt;t.length;f++)i=b*(u=t[f])[p][h]+3*(x*d*u[p][h+1]+y*g*u[p][h+2])+v*u[p][h+3],s=b*u[p+1][h]+3*(x*d*u[p+1][h+1]+y*g*u[p+1][h+2])+v*u[p+1][h+3],l=b*u[p+2][h]+3*(x*d*u[p+2][h+1]+y*g*u[p+2][h+2])+v*u[p+2][h+3],c=b*u[p+3][h]+3*(x*d*u[p+3][h+1]+y*g*u[p+3][h+2])+v*u[p+3][h+3],e[f]=A*i+3*(k*m*s+T*_*l)+w*c;return e}:n?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),m=Math.max(0,Math.min(1,n-p));h*=3;var g=d*d,v=g*d,y=1-d,x=y*y,b=x*y,_=1-m;for(u=0;u&lt;t.length;u++)i=_*(f=t[u])[p][h]+m*f[p+1][h],s=_*f[p][h+1]+m*f[p+1][h+1],l=_*f[p][h+2]+m*f[p+1][h+1],c=_*f[p][h+3]+m*f[p+1][h+1],e[u]=b*i+3*(x*d*s+y*g*l)+v*c;return e}:i?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),m=Math.max(0,Math.min(1,n-p));p*=3;var g=m*m,v=g*m,y=1-m,x=y*y,b=x*y,_=1-d;for(u=0;u&lt;t.length;u++)i=_*(f=t[u])[p][h]+d*f[p][h+1],s=_*f[p+1][h]+d*f[p+1][h+1],l=_*f[p+2][h]+d*f[p+2][h+1],c=_*f[p+3][h]+d*f[p+3][h+1],e[u]=b*i+3*(x*m*s+y*g*l)+v*c;return e}:function(e,r,n){e||(e=[]);var i,s,l,c,u=Math.max(0,Math.min(Math.floor(r),a)),f=Math.max(0,Math.min(Math.floor(n),o)),h=Math.max(0,Math.min(1,r-u)),p=Math.max(0,Math.min(1,n-f)),d=1-p,m=1-h;for(l=0;l&lt;t.length;l++)i=m*(c=t[l])[f][u]+h*c[f][u+1],s=m*c[f+1][u]+h*c[f+1][u+1],e[l]=d*i+p*s;return e}}},{}],706:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./xy_defaults&quot;),a=t(&quot;./ab_defaults&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../../components/color/attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}e._clipPathId=&quot;clip&quot;+e.uid+&quot;carpet&quot;;var u=c(&quot;color&quot;,s.defaultLine);(n.coerceFont(c,&quot;font&quot;),c(&quot;carpet&quot;),a(t,e,l,c,u),e.a&amp;&amp;e.b)?(e.a.length&lt;3&amp;&amp;(e.aaxis.smoothing=0),e.b.length&lt;3&amp;&amp;(e.baxis.smoothing=0),i(t,e,c)||(e.visible=!1),e._cheater&amp;&amp;c(&quot;cheaterslope&quot;)):e.visible=!1}},{&quot;../../components/color/attributes&quot;:365,&quot;../../lib&quot;:503,&quot;./ab_defaults&quot;:689,&quot;./attributes&quot;:691,&quot;./xy_defaults&quot;:715}],707:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),plot:t(&quot;./plot&quot;),calc:t(&quot;./calc&quot;),animatable:!0,isContainer:!0,moduleType:&quot;trace&quot;,name:&quot;carpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;carpet&quot;,&quot;carpetAxis&quot;,&quot;notLegendIsolatable&quot;,&quot;noMultiCategory&quot;,&quot;noHover&quot;,&quot;noSortingByValue&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:568,&quot;./attributes&quot;:691,&quot;./calc&quot;:695,&quot;./defaults&quot;:706,&quot;./plot&quot;:712}],708:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r,n=t._fullData.length,i=0;i&lt;n;i++){var a=t._fullData[i];if(a.index!==e.index&amp;&amp;(&quot;carpet&quot;===a.type&amp;&amp;(r||(r=a),a.carpet===e.carpet)))return a}return r}},{}],709:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(0===t.length)return&quot;&quot;;var n,i=[],a=r?3:1;for(n=0;n&lt;t.length;n+=a)i.push(t[n]+&quot;,&quot;+e[n]),r&amp;&amp;n&lt;t.length-a&amp;&amp;(i.push(&quot;C&quot;),i.push([t[n+1]+&quot;,&quot;+e[n+1],t[n+2]+&quot;,&quot;+e[n+2]+&quot; &quot;].join(&quot; &quot;)));return i.join(r?&quot;&quot;:&quot;L&quot;)}},{}],710:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r){var i;for(n(t)?t.length&gt;e.length&amp;&amp;(t=t.slice(0,e.length)):t=[],i=0;i&lt;e.length;i++)t[i]=r(e[i]);return t}},{&quot;../../lib&quot;:503}],711:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a){var o=i[0]*t.dpdx(e),s=i[1]*t.dpdy(r),l=1,c=1;if(a){var u=Math.sqrt(i[0]*i[0]+i[1]*i[1]),f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=(i[0]*a[0]+i[1]*a[1])/u/f;c=Math.max(0,h)}var p=180*Math.atan2(s,o)/Math.PI;return p&lt;-90?(p+=180,l=-l):p&gt;90&amp;&amp;(p-=180,l=-l),{angle:p,flip:l,p:t.c2p(n,e,r),offsetMultplier:c}}},{}],712:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;./map_1d_array&quot;),o=t(&quot;./makepath&quot;),s=t(&quot;./orient_text&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../lib&quot;),u=c.strRotate,f=c.strTranslate,h=t(&quot;../../constants/alignment&quot;);function p(t,e,r,i,s,l){var c=&quot;const-&quot;+s+&quot;-lines&quot;,u=r.selectAll(&quot;.&quot;+c).data(l);u.enter().append(&quot;path&quot;).classed(c,!0).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;),u.each((function(r){var i=r,s=i.x,l=i.y,c=a([],s,t.c2p),u=a([],l,e.c2p),f=&quot;M&quot;+o(c,u,i.smoothing);n.select(this).attr(&quot;d&quot;,f).style(&quot;stroke-width&quot;,i.width).style(&quot;stroke&quot;,i.color).style(&quot;fill&quot;,&quot;none&quot;)})),u.exit().remove()}function d(t,e,r,a,o,c,h,p){var d=c.selectAll(&quot;text.&quot;+p).data(h);d.enter().append(&quot;text&quot;).classed(p,!0);var m=0,g={};return d.each((function(o,c){var h;if(&quot;auto&quot;===o.axis.tickangle)h=s(a,e,r,o.xy,o.dxy);else{var p=(o.axis.tickangle+180)*Math.PI/180;h=s(a,e,r,o.xy,[Math.cos(p),Math.sin(p)])}c||(g={angle:h.angle,flip:h.flip});var d=(o.endAnchor?-1:1)*h.flip,v=n.select(this).attr({&quot;text-anchor&quot;:d&gt;0?&quot;start&quot;:&quot;end&quot;,&quot;data-notex&quot;:1}).call(i.font,o.font).text(o.text).call(l.convertToTspans,t),y=i.bBox(this);v.attr(&quot;transform&quot;,f(h.p[0],h.p[1])+u(h.angle)+f(o.axis.labelpadding*d,.3*y.height)),m=Math.max(m,y.width+o.axis.labelpadding)})),d.exit().remove(),g.maxExtent=m,g}e.exports=function(t,e,r,i){var l=e.xaxis,u=e.yaxis,f=t._fullLayout._clips;c.makeTraceGroups(i,r,&quot;trace&quot;).each((function(e){var r=n.select(this),i=e[0],h=i.trace,m=h.aaxis,g=h.baxis,y=c.ensureSingle(r,&quot;g&quot;,&quot;minorlayer&quot;),x=c.ensureSingle(r,&quot;g&quot;,&quot;majorlayer&quot;),b=c.ensureSingle(r,&quot;g&quot;,&quot;boundarylayer&quot;),_=c.ensureSingle(r,&quot;g&quot;,&quot;labellayer&quot;);r.style(&quot;opacity&quot;,h.opacity),p(l,u,x,m,&quot;a&quot;,m._gridlines),p(l,u,x,g,&quot;b&quot;,g._gridlines),p(l,u,y,m,&quot;a&quot;,m._minorgridlines),p(l,u,y,g,&quot;b&quot;,g._minorgridlines),p(l,u,b,m,&quot;a-boundary&quot;,m._boundarylines),p(l,u,b,g,&quot;b-boundary&quot;,g._boundarylines);var w=d(t,l,u,h,i,_,m._labels,&quot;a-label&quot;),T=d(t,l,u,h,i,_,g._labels,&quot;b-label&quot;);!function(t,e,r,n,i,a,o,l){var u,f,h,p,d=c.aggNums(Math.min,null,r.a),m=c.aggNums(Math.max,null,r.a),g=c.aggNums(Math.min,null,r.b),y=c.aggNums(Math.max,null,r.b);u=.5*(d+m),f=g,h=r.ab2xy(u,f,!0),p=r.dxyda_rough(u,f),void 0===o.angle&amp;&amp;c.extendFlat(o,s(r,i,a,h,r.dxydb_rough(u,f)));v(t,e,r,n,h,p,r.aaxis,i,a,o,&quot;a-title&quot;),u=d,f=.5*(g+y),h=r.ab2xy(u,f,!0),p=r.dxydb_rough(u,f),void 0===l.angle&amp;&amp;c.extendFlat(l,s(r,i,a,h,r.dxyda_rough(u,f)));v(t,e,r,n,h,p,r.baxis,i,a,l,&quot;b-title&quot;)}(t,_,h,i,l,u,w,T),function(t,e,r,n,i){var s,l,u,f,h=r.select(&quot;#&quot;+t._clipPathId);h.size()||(h=r.append(&quot;clipPath&quot;).classed(&quot;carpetclip&quot;,!0));var p=c.ensureSingle(h,&quot;path&quot;,&quot;carpetboundary&quot;),d=e.clipsegments,m=[];for(f=0;f&lt;d.length;f++)s=d[f],l=a([],s.x,n.c2p),u=a([],s.y,i.c2p),m.push(o(l,u,s.bicubic));var g=&quot;M&quot;+m.join(&quot;L&quot;)+&quot;Z&quot;;h.attr(&quot;id&quot;,t._clipPathId),p.attr(&quot;d&quot;,g)}(h,i,f,l,u)}))};var m=h.LINE_SPACING,g=(1-h.MID_SHIFT)/m+1;function v(t,e,r,a,o,c,h,p,d,v,y){var x=[];h.title.text&amp;&amp;x.push(h.title.text);var b=e.selectAll(&quot;text.&quot;+y).data(x),_=v.maxExtent;b.enter().append(&quot;text&quot;).classed(y,!0),b.each((function(){var e=s(r,p,d,o,c);-1===[&quot;start&quot;,&quot;both&quot;].indexOf(h.showticklabels)&amp;&amp;(_=0);var a=h.title.font.size;_+=a+h.title.offset;var y=(v.angle+(v.flip&lt;0?180:0)-e.angle+450)%360,x=y&gt;90&amp;&amp;y&lt;270,b=n.select(this);b.text(h.title.text).call(l.convertToTspans,t),x&amp;&amp;(_=(-l.lineCount(b)+g)*m*a-_),b.attr(&quot;transform&quot;,f(e.p[0],e.p[1])+u(e.angle)+f(0,_)).attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(i.font,h.title.font)})),b.exit().remove()}},{&quot;../../components/drawing&quot;:388,&quot;../../constants/alignment&quot;:471,&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;./makepath&quot;:709,&quot;./map_1d_array&quot;:710,&quot;./orient_text&quot;:711,&quot;@plotly/d3&quot;:58}],713:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib/search&quot;).findBin,a=t(&quot;./compute_control_points&quot;),o=t(&quot;./create_spline_evaluator&quot;),s=t(&quot;./create_i_derivative_evaluator&quot;),l=t(&quot;./create_j_derivative_evaluator&quot;);e.exports=function(t){var e=t._a,r=t._b,c=e.length,u=r.length,f=t.aaxis,h=t.baxis,p=e[0],d=e[c-1],m=r[0],g=r[u-1],v=e[e.length-1]-e[0],y=r[r.length-1]-r[0],x=v*n.RELATIVE_CULL_TOLERANCE,b=y*n.RELATIVE_CULL_TOLERANCE;p-=x,d+=x,m-=b,g+=b,t.isVisible=function(t,e){return t&gt;p&amp;&amp;t&lt;d&amp;&amp;e&gt;m&amp;&amp;e&lt;g},t.isOccluded=function(t,e){return t&lt;p||t&gt;d||e&lt;m||e&gt;g},t.setScale=function(){var e=t._x,r=t._y,n=a(t._xctrl,t._yctrl,e,r,f.smoothing,h.smoothing);t._xctrl=n[0],t._yctrl=n[1],t.evalxy=o([t._xctrl,t._yctrl],c,u,f.smoothing,h.smoothing),t.dxydi=s([t._xctrl,t._yctrl],f.smoothing,h.smoothing),t.dxydj=l([t._xctrl,t._yctrl],f.smoothing,h.smoothing)},t.i2a=function(t){var r=Math.max(0,Math.floor(t[0]),c-2),n=t[0]-r;return(1-n)*e[r]+n*e[r+1]},t.j2b=function(t){var e=Math.max(0,Math.floor(t[1]),c-2),n=t[1]-e;return(1-n)*r[e]+n*r[e+1]},t.ij2ab=function(e){return[t.i2a(e[0]),t.j2b(e[1])]},t.a2i=function(t){var r=Math.max(0,Math.min(i(t,e),c-2)),n=e[r],a=e[r+1];return Math.max(0,Math.min(c-1,r+(t-n)/(a-n)))},t.b2j=function(t){var e=Math.max(0,Math.min(i(t,r),u-2)),n=r[e],a=r[e+1];return Math.max(0,Math.min(u-1,e+(t-n)/(a-n)))},t.ab2ij=function(e){return[t.a2i(e[0]),t.b2j(e[1])]},t.i2c=function(e,r){return t.evalxy([],e,r)},t.ab2xy=function(n,i,a){if(!a&amp;&amp;(n&lt;e[0]||n&gt;e[c-1]|i&lt;r[0]||i&gt;r[u-1]))return[!1,!1];var o=t.a2i(n),s=t.b2j(i),l=t.evalxy([],o,s);if(a){var f,h,p,d,m=0,g=0,v=[];n&lt;e[0]?(f=0,h=0,m=(n-e[0])/(e[1]-e[0])):n&gt;e[c-1]?(f=c-2,h=1,m=(n-e[c-1])/(e[c-1]-e[c-2])):h=o-(f=Math.max(0,Math.min(c-2,Math.floor(o)))),i&lt;r[0]?(p=0,d=0,g=(i-r[0])/(r[1]-r[0])):i&gt;r[u-1]?(p=u-2,d=1,g=(i-r[u-1])/(r[u-1]-r[u-2])):d=s-(p=Math.max(0,Math.min(u-2,Math.floor(s)))),m&amp;&amp;(t.dxydi(v,f,p,h,d),l[0]+=v[0]*m,l[1]+=v[1]*m),g&amp;&amp;(t.dxydj(v,f,p,h,d),l[0]+=v[0]*g,l[1]+=v[1]*g)}return l},t.c2p=function(t,e,r){return[e.c2p(t[0]),r.c2p(t[1])]},t.p2x=function(t,e,r){return[e.p2c(t[0]),r.p2c(t[1])]},t.dadi=function(t){var r=Math.max(0,Math.min(e.length-2,t));return e[r+1]-e[r]},t.dbdj=function(t){var e=Math.max(0,Math.min(r.length-2,t));return r[e+1]-r[e]},t.dxyda=function(e,r,n,i){var a=t.dxydi(null,e,r,n,i),o=t.dadi(e,n);return[a[0]/o,a[1]/o]},t.dxydb=function(e,r,n,i){var a=t.dxydj(null,e,r,n,i),o=t.dbdj(r,i);return[a[0]/o,a[1]/o]},t.dxyda_rough=function(e,r,n){var i=v*(n||.1),a=t.ab2xy(e+i,r,!0),o=t.ab2xy(e-i,r,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dxydb_rough=function(e,r,n){var i=y*(n||.1),a=t.ab2xy(e,r+i,!0),o=t.ab2xy(e,r-i,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dpdx=function(t){return t._m},t.dpdy=function(t){return t._m}}},{&quot;../../lib/search&quot;:523,&quot;./compute_control_points&quot;:701,&quot;./constants&quot;:702,&quot;./create_i_derivative_evaluator&quot;:703,&quot;./create_j_derivative_evaluator&quot;:704,&quot;./create_spline_evaluator&quot;:705}],714:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r){var i,a,o,s=[],l=[],c=t[0].length,u=t.length;function f(e,r){var n,i=0,a=0;return e&gt;0&amp;&amp;void 0!==(n=t[r][e-1])&amp;&amp;(a++,i+=n),e&lt;c-1&amp;&amp;void 0!==(n=t[r][e+1])&amp;&amp;(a++,i+=n),r&gt;0&amp;&amp;void 0!==(n=t[r-1][e])&amp;&amp;(a++,i+=n),r&lt;u-1&amp;&amp;void 0!==(n=t[r+1][e])&amp;&amp;(a++,i+=n),i/Math.max(1,a)}var h,p,d,m,g,v,y,x,b,_,w,T=0;for(i=0;i&lt;c;i++)for(a=0;a&lt;u;a++)void 0===t[a][i]&amp;&amp;(s.push(i),l.push(a),t[a][i]=f(i,a)),T=Math.max(T,Math.abs(t[a][i]));if(!s.length)return t;var k=0,A=0,M=s.length;do{for(k=0,o=0;o&lt;M;o++){i=s[o],a=l[o];var S,E,L,C,P,I,O=0,z=0;0===i?(L=e[P=Math.min(c-1,2)],C=e[1],S=t[a][P],z+=(E=t[a][1])+(E-S)*(e[0]-C)/(C-L),O++):i===c-1&amp;&amp;(L=e[P=Math.max(0,c-3)],C=e[c-2],S=t[a][P],z+=(E=t[a][c-2])+(E-S)*(e[c-1]-C)/(C-L),O++),(0===i||i===c-1)&amp;&amp;a&gt;0&amp;&amp;a&lt;u-1&amp;&amp;(h=r[a+1]-r[a],z+=((p=r[a]-r[a-1])*t[a+1][i]+h*t[a-1][i])/(p+h),O++),0===a?(L=r[I=Math.min(u-1,2)],C=r[1],S=t[I][i],z+=(E=t[1][i])+(E-S)*(r[0]-C)/(C-L),O++):a===u-1&amp;&amp;(L=r[I=Math.max(0,u-3)],C=r[u-2],S=t[I][i],z+=(E=t[u-2][i])+(E-S)*(r[u-1]-C)/(C-L),O++),(0===a||a===u-1)&amp;&amp;i&gt;0&amp;&amp;i&lt;c-1&amp;&amp;(h=e[i+1]-e[i],z+=((p=e[i]-e[i-1])*t[a][i+1]+h*t[a][i-1])/(p+h),O++),O?z/=O:(d=e[i+1]-e[i],m=e[i]-e[i-1],x=(g=r[a+1]-r[a])*(v=r[a]-r[a-1])*(g+v),z=((y=d*m*(d+m))*(v*t[a+1][i]+g*t[a-1][i])+x*(m*t[a][i+1]+d*t[a][i-1]))/(x*(m+d)+y*(v+g))),k+=(_=(b=z-t[a][i])/T)*_,w=O?0:.85,t[a][i]+=b*(1+w)}k=Math.sqrt(k)}while(A++&lt;100&amp;&amp;k&gt;1e-5);return n.log(&quot;Smoother converged to&quot;,k,&quot;after&quot;,A,&quot;iterations&quot;),t}},{&quot;../../lib&quot;:503}],715:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArray1D;e.exports=function(t,e,r){var i=r(&quot;x&quot;),a=i&amp;&amp;i.length,o=r(&quot;y&quot;),s=o&amp;&amp;o.length;if(!a&amp;&amp;!s)return!1;if(e._cheater=!i,a&amp;&amp;!n(i)||s&amp;&amp;!n(o))e._length=null;else{var l=a?i.length:1/0;s&amp;&amp;(l=Math.min(l,o.length)),e.a&amp;&amp;e.a.length&amp;&amp;(l=Math.min(l,e.a.length)),e.b&amp;&amp;e.b.length&amp;&amp;(l=Math.min(l,e.b.length)),e._length=l}return!0}},{&quot;../../lib&quot;:503}],716:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../scattergeo/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/color/attributes&quot;).defaultLine,l=t(&quot;../../lib/extend&quot;).extendFlat,c=i.marker.line;e.exports=l({locations:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},locationmode:i.locationmode,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},geojson:l({},i.geojson,{}),featureidkey:i.featureidkey,text:l({},i.text,{}),hovertext:l({},i.hovertext,{}),marker:{line:{color:l({},c.color,{dflt:s}),width:l({},c.width,{dflt:1}),editType:&quot;calc&quot;},opacity:{valType:&quot;number&quot;,arrayOk:!0,min:0,max:1,dflt:1,editType:&quot;style&quot;},editType:&quot;calc&quot;},selected:{marker:{opacity:i.selected.marker.opacity,editType:&quot;plot&quot;},editType:&quot;plot&quot;},unselected:{marker:{opacity:i.unselected.marker.opacity,editType:&quot;plot&quot;},editType:&quot;plot&quot;},hoverinfo:l({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;location&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n(),showlegend:l({},o.showlegend,{dflt:!1})},a(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/color/attributes&quot;:365,&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plots/attributes&quot;:550,&quot;../../plots/template_attributes&quot;:633,&quot;../scattergeo/attributes&quot;:968}],717:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../components/colorscale/calc&quot;),o=t(&quot;../scatter/arrays_to_calcdata&quot;),s=t(&quot;../scatter/calc_selection&quot;);function l(t){return t&amp;&amp;&quot;string&quot;==typeof t}e.exports=function(t,e){var r,c=e._length,u=new Array(c);r=e.geojson?function(t){return l(t)||n(t)}:l;for(var f=0;f&lt;c;f++){var h=u[f]={},p=e.locations[f],d=e.z[f];r(p)&amp;&amp;n(d)?(h.loc=p,h.z=d):(h.loc=null,h.z=i),h.index=f}return o(u,e),a(t,e,{vals:e.z,containerStr:&quot;&quot;,cLetter:&quot;z&quot;}),s(u,e),u}},{&quot;../../components/colorscale/calc&quot;:374,&quot;../../constants/numerical&quot;:479,&quot;../scatter/arrays_to_calcdata&quot;:925,&quot;../scatter/calc_selection&quot;:928,&quot;fast-isnumeric&quot;:190}],718:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;locations&quot;),c=s(&quot;z&quot;);if(l&amp;&amp;l.length&amp;&amp;n.isArrayOrTypedArray(c)&amp;&amp;c.length){e._length=Math.min(l.length,c.length);var u,f=s(&quot;geojson&quot;);(&quot;string&quot;==typeof f&amp;&amp;&quot;&quot;!==f||n.isPlainObject(f))&amp;&amp;(u=&quot;geojson-id&quot;),&quot;geojson-id&quot;===s(&quot;locationmode&quot;,u)&amp;&amp;s(&quot;featureidkey&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;marker.line.width&quot;)&amp;&amp;s(&quot;marker.line.color&quot;),s(&quot;marker.opacity&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),n.coerceSelectionMarkerOpacity(e,s)}else e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:376,&quot;../../lib&quot;:503,&quot;./attributes&quot;:716}],719:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){t.location=e.location,t.z=e.z;var a=n[i];return a.fIn&amp;&amp;a.fIn.properties&amp;&amp;(t.properties=a.fIn.properties),t.ct=a.ct,t}},{}],720:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../lib&quot;).fillText;e.exports=function(t,e,r){var o,s,l,c,u=t.cd,f=u[0].trace,h=t.subplot,p=[e,r],d=[e+360,r];for(s=0;s&lt;u.length;s++)if(c=!1,(o=u[s])._polygons){for(l=0;l&lt;o._polygons.length;l++)o._polygons[l].contains(p)&amp;&amp;(c=!c),o._polygons[l].contains(d)&amp;&amp;(c=!c);if(c)break}if(c&amp;&amp;o)return t.x0=t.x1=t.xa.c2p(o.ct),t.y0=t.y1=t.ya.c2p(o.ct),t.index=o.index,t.location=o.loc,t.z=o.z,t.zLabel=n.tickText(h.mockAxis,h.mockAxis.c2l(o.z),&quot;hover&quot;).text,t.hovertemplate=o.hovertemplate,function(t,e,r){if(e.hovertemplate)return;var n=r.hi||e.hoverinfo,o=String(r.loc),s=&quot;all&quot;===n?i.hoverinfo.flags:n.split(&quot;+&quot;),l=-1!==s.indexOf(&quot;name&quot;),c=-1!==s.indexOf(&quot;location&quot;),u=-1!==s.indexOf(&quot;z&quot;),f=-1!==s.indexOf(&quot;text&quot;),h=[];!l&amp;&amp;c?t.nameOverride=o:(l&amp;&amp;(t.nameOverride=e.name),c&amp;&amp;h.push(o));u&amp;&amp;h.push(t.zLabel);f&amp;&amp;a(r,e,h);t.extraText=h.join(&quot;&lt;br&gt;&quot;)}(t,f,o),[t]}},{&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554,&quot;./attributes&quot;:716}],721:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;./calc&quot;),calcGeoJSON:t(&quot;./plot&quot;).calcGeoJSON,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;choropleth&quot;,basePlotModule:t(&quot;../../plots/geo&quot;),categories:[&quot;geo&quot;,&quot;noOpacity&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/geo&quot;:589,&quot;../heatmap/colorbar&quot;:795,&quot;./attributes&quot;:716,&quot;./calc&quot;:717,&quot;./defaults&quot;:718,&quot;./event_data&quot;:719,&quot;./hover&quot;:720,&quot;./plot&quot;:722,&quot;./select&quot;:723,&quot;./style&quot;:724}],722:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/geo_location_utils&quot;),o=t(&quot;../../lib/topojson_utils&quot;).getTopojsonFeatures,s=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,l=t(&quot;./style&quot;).style;e.exports={calcGeoJSON:function(t,e){for(var r=t[0].trace,n=e[r.geo],i=n._subplot,l=r.locationmode,c=r._length,u=&quot;geojson-id&quot;===l?a.extractTraceFeature(t):o(r,i.topojson),f=[],h=[],p=0;p&lt;c;p++){var d=t[p],m=&quot;geojson-id&quot;===l?d.fOut:a.locationToFeature(l,d.loc,u);if(m){d.geojson=m,d.ct=m.properties.ct,d._polygons=a.feature2polygons(m);var g=a.computeBbox(m);f.push(g[0],g[2]),h.push(g[1],g[3])}else d.geojson=null}if(&quot;geojson&quot;===n.fitbounds&amp;&amp;&quot;geojson-id&quot;===l){var v=a.computeBbox(a.getTraceGeojson(r));f=[v[0],v[2]],h=[v[1],v[3]]}var y={padded:!0};r._extremes.lon=s(n.lonaxis._ax,f,y),r._extremes.lat=s(n.lataxis._ax,h,y)},plot:function(t,e,r){var a=e.layers.backplot.select(&quot;.choroplethlayer&quot;);i.makeTraceGroups(a,r,&quot;trace choropleth&quot;).each((function(e){var r=n.select(this).selectAll(&quot;path.choroplethlocation&quot;).data(i.identity);r.enter().append(&quot;path&quot;).classed(&quot;choroplethlocation&quot;,!0),r.exit().remove(),l(t,e)}))}}},{&quot;../../lib&quot;:503,&quot;../../lib/geo_location_utils&quot;:496,&quot;../../lib/topojson_utils&quot;:532,&quot;../../plots/cartesian/autorange&quot;:553,&quot;./style&quot;:724,&quot;@plotly/d3&quot;:58}],723:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[];if(!1===e)for(r=0;r&lt;s.length;r++)s[r].selected=0;else for(r=0;r&lt;s.length;r++)(i=(n=s[r]).ct)&amp;&amp;(a=l.c2p(i),o=c.c2p(i),e.contains([a,o],null,r,t)?(u.push({pointNumber:r,lon:i[0],lat:i[1]}),n.selected=1):n.selected=0);return u}},{}],724:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../components/colorscale&quot;);function s(t,e){var r=e[0].trace,s=e[0].node3.selectAll(&quot;.choroplethlocation&quot;),l=r.marker||{},c=l.line||{},u=o.makeColorScaleFuncFromTrace(r);s.each((function(t){n.select(this).attr(&quot;fill&quot;,u(t.z)).call(i.stroke,t.mlc||c.color).call(a.dashLine,&quot;&quot;,t.mlw||c.width||0).style(&quot;opacity&quot;,l.opacity)})),a.selectedPointStyle(s,r,t)}e.exports={style:function(t,e){e&amp;&amp;s(t,e)},styleOnSelect:function(t,e){var r=e[0].node3,n=e[0].trace;n.selectedpoints?a.selectedPointStyle(r.selectAll(&quot;.choroplethlocation&quot;),n,t):s(t,e)}}},{&quot;../../components/color&quot;:366,&quot;../../components/colorscale&quot;:378,&quot;../../components/drawing&quot;:388,&quot;@plotly/d3&quot;:58}],725:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../choropleth/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({locations:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},geojson:{valType:&quot;any&quot;,editType:&quot;calc&quot;},featureidkey:s({},n.featureidkey,{}),below:{valType:&quot;string&quot;,editType:&quot;plot&quot;},text:n.text,hovertext:n.hovertext,marker:{line:{color:s({},n.marker.line.color,{editType:&quot;plot&quot;}),width:s({},n.marker.line.width,{editType:&quot;plot&quot;}),editType:&quot;calc&quot;},opacity:s({},n.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;calc&quot;},selected:{marker:{opacity:s({},n.selected.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},editType:&quot;plot&quot;},unselected:{marker:{opacity:s({},n.unselected.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},editType:&quot;plot&quot;},hoverinfo:n.hoverinfo,hovertemplate:a({},{keys:[&quot;properties&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})},i(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plots/attributes&quot;:550,&quot;../../plots/template_attributes&quot;:633,&quot;../choropleth/attributes&quot;:716}],726:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib/geojson_utils&quot;).makeBlank,l=t(&quot;../../lib/geo_location_utils&quot;);function c(t){var e,r=t[0].trace,n=r._opts;if(r.selectedpoints){for(var a=o.makeSelectedPointStyleFns(r),s=0;s&lt;t.length;s++){var l=t[s];l.fOut&amp;&amp;(l.fOut.properties.mo2=a.selectedOpacityFn(l))}e={type:&quot;identity&quot;,property:&quot;mo2&quot;}}else e=i.isArrayOrTypedArray(r.marker.opacity)?{type:&quot;identity&quot;,property:&quot;mo&quot;}:r.marker.opacity;return i.extendFlat(n.fill.paint,{&quot;fill-opacity&quot;:e}),i.extendFlat(n.line.paint,{&quot;line-opacity&quot;:e}),n}e.exports={convert:function(t){var e=t[0].trace,r=!0===e.visible&amp;&amp;0!==e._length,o={layout:{visibility:&quot;none&quot;},paint:{}},u={layout:{visibility:&quot;none&quot;},paint:{}},f=e._opts={fill:o,line:u,geojson:s()};if(!r)return f;var h=l.extractTraceFeature(t);if(!h)return f;var p,d,m,g=a.makeColorScaleFuncFromTrace(e),v=e.marker,y=v.line||{};i.isArrayOrTypedArray(v.opacity)&amp;&amp;(p=function(t){var e=t.mo;return n(e)?+i.constrain(e,0,1):0}),i.isArrayOrTypedArray(y.color)&amp;&amp;(d=function(t){return t.mlc}),i.isArrayOrTypedArray(y.width)&amp;&amp;(m=function(t){return t.mlw});for(var x=0;x&lt;t.length;x++){var b=t[x],_=b.fOut;if(_){var w=_.properties;w.fc=g(b.z),p&amp;&amp;(w.mo=p(b)),d&amp;&amp;(w.mlc=d(b)),m&amp;&amp;(w.mlw=m(b)),b.ct=w.ct,b._polygons=l.feature2polygons(_)}}var T=p?{type:&quot;identity&quot;,property:&quot;mo&quot;}:v.opacity;return i.extendFlat(o.paint,{&quot;fill-color&quot;:{type:&quot;identity&quot;,property:&quot;fc&quot;},&quot;fill-opacity&quot;:T}),i.extendFlat(u.paint,{&quot;line-color&quot;:d?{type:&quot;identity&quot;,property:&quot;mlc&quot;}:y.color,&quot;line-width&quot;:m?{type:&quot;identity&quot;,property:&quot;mlw&quot;}:y.width,&quot;line-opacity&quot;:T}),o.layout.visibility=&quot;visible&quot;,u.layout.visibility=&quot;visible&quot;,f.geojson={type:&quot;FeatureCollection&quot;,features:h},c(t),f},convertOnSelect:c}},{&quot;../../components/colorscale&quot;:378,&quot;../../components/drawing&quot;:388,&quot;../../lib&quot;:503,&quot;../../lib/geo_location_utils&quot;:496,&quot;../../lib/geojson_utils&quot;:497,&quot;fast-isnumeric&quot;:190}],727:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;locations&quot;),c=s(&quot;z&quot;),u=s(&quot;geojson&quot;);n.isArrayOrTypedArray(l)&amp;&amp;l.length&amp;&amp;n.isArrayOrTypedArray(c)&amp;&amp;c.length&amp;&amp;(&quot;string&quot;==typeof u&amp;&amp;&quot;&quot;!==u||n.isPlainObject(u))?(s(&quot;featureidkey&quot;),e._length=Math.min(l.length,c.length),s(&quot;below&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;marker.line.width&quot;)&amp;&amp;s(&quot;marker.line.color&quot;),s(&quot;marker.opacity&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),n.coerceSelectionMarkerOpacity(e,s)):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:376,&quot;../../lib&quot;:503,&quot;./attributes&quot;:725}],728:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;../choropleth/calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;../choropleth/hover&quot;),eventData:t(&quot;../choropleth/event_data&quot;),selectPoints:t(&quot;../choropleth/select&quot;),styleOnSelect:function(t,e){e&amp;&amp;e[0].trace._glTrace.updateOnSelect(e)},getBelow:function(t,e){for(var r=e.getMapLayers(),n=r.length-2;n&gt;=0;n--){var i=r[n].id;if(&quot;string&quot;==typeof i&amp;&amp;0===i.indexOf(&quot;water&quot;))for(var a=n+1;a&lt;r.length;a++)if(&quot;string&quot;==typeof(i=r[a].id)&amp;&amp;-1===i.indexOf(&quot;plotly-&quot;))return i}},moduleType:&quot;trace&quot;,name:&quot;choroplethmapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;noOpacity&quot;,&quot;showLegend&quot;],meta:{hr_name:&quot;choropleth_mapbox&quot;}}},{&quot;../../plots/mapbox&quot;:613,&quot;../choropleth/calc&quot;:717,&quot;../choropleth/event_data&quot;:719,&quot;../choropleth/hover&quot;:720,&quot;../choropleth/select&quot;:723,&quot;../heatmap/colorbar&quot;:795,&quot;./attributes&quot;:725,&quot;./defaults&quot;:727,&quot;./plot&quot;:729}],729:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;).convert,i=t(&quot;./convert&quot;).convertOnSelect,a=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix;function o(t,e){this.type=&quot;choroplethmapbox&quot;,this.subplot=t,this.uid=e,this.sourceId=&quot;source-&quot;+e,this.layerList=[[&quot;fill&quot;,a+e+&quot;-fill&quot;],[&quot;line&quot;,a+e+&quot;-line&quot;]],this.below=null}var s=o.prototype;s.update=function(t){this._update(n(t))},s.updateOnSelect=function(t){this._update(i(t))},s._update=function(t){var e=this.subplot,r=this.layerList,n=e.belowLookup[&quot;trace-&quot;+this.uid];e.map.getSource(this.sourceId).setData(t.geojson),n!==this.below&amp;&amp;(this._removeLayers(),this._addLayers(t,n),this.below=n);for(var i=0;i&lt;r.length;i++){var a=r[i],o=a[0],s=a[1],l=t[o];e.setOptions(s,&quot;setLayoutProperty&quot;,l.layout),&quot;visible&quot;===l.layout.visibility&amp;&amp;e.setOptions(s,&quot;setPaintProperty&quot;,l.paint)}},s._addLayers=function(t,e){for(var r=this.subplot,n=this.layerList,i=this.sourceId,a=0;a&lt;n.length;a++){var o=n[a],s=o[0],l=t[s];r.addLayer({type:s,id:o[1],source:i,layout:l.layout,paint:l.paint},e)}},s._removeLayers=function(){for(var t=this.subplot.map,e=this.layerList,r=e.length-1;r&gt;=0;r--)t.removeLayer(e[r][1])},s.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new o(t,r.uid),a=i.sourceId,s=n(e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid];return t.map.addSource(a,{type:&quot;geojson&quot;,data:s.geojson}),i._addLayers(s,l),e[0].trace._glTrace=i,i}},{&quot;../../plots/mapbox/constants&quot;:611,&quot;./convert&quot;:726}],730:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../mesh3d/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},u:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},v:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},w:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;absolute&quot;],editType:&quot;calc&quot;,dflt:&quot;scaled&quot;},sizeref:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0},anchor:{valType:&quot;enumerated&quot;,editType:&quot;calc&quot;,values:[&quot;tip&quot;,&quot;tail&quot;,&quot;cm&quot;,&quot;center&quot;],dflt:&quot;cm&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertemplate:a({editType:&quot;calc&quot;},{keys:[&quot;norm&quot;]}),uhoverformat:i(&quot;u&quot;,1),vhoverformat:i(&quot;v&quot;,1),whoverformat:i(&quot;w&quot;,1),xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),zhoverformat:i(&quot;z&quot;),showlegend:l({},s.showlegend,{dflt:!1})};l(c,n(&quot;&quot;,{colorAttr:&quot;u/v/w norm&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}));[&quot;opacity&quot;,&quot;lightposition&quot;,&quot;lighting&quot;].forEach((function(t){c[t]=o[t]})),c.hoverinfo=l({},s.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;norm&quot;,&quot;text&quot;,&quot;name&quot;],dflt:&quot;x+y+z+norm+text+name&quot;}),c.transforms=void 0,e.exports=c},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plots/attributes&quot;:550,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/template_attributes&quot;:633,&quot;../mesh3d/attributes&quot;:867}],731:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){for(var r=e.u,i=e.v,a=e.w,o=Math.min(e.x.length,e.y.length,e.z.length,r.length,i.length,a.length),s=-1/0,l=1/0,c=0;c&lt;o;c++){var u=r[c],f=i[c],h=a[c],p=Math.sqrt(u*u+f*f+h*h);s=Math.max(s,p),l=Math.min(l,p)}e._len=o,e._normMax=s,n(t,e,{vals:[l,s],containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:374}],732:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../stackgl_modules&quot;).gl_cone3d,i=t(&quot;../../../stackgl_modules&quot;).gl_cone3d.createConeMesh,a=t(&quot;../../lib&quot;).simpleMap,o=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,s=t(&quot;../../components/colorscale&quot;).extractOpts,l=t(&quot;../../plots/gl3d/zip3&quot;);function c(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var u=c.prototype;u.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index,r=this.data.x[e],n=this.data.y[e],i=this.data.z[e],a=this.data.u[e],o=this.data.v[e],s=this.data.w[e];t.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return Array.isArray(l)&amp;&amp;void 0!==l[e]?t.textLabel=l[e]:l&amp;&amp;(t.textLabel=l),!0}};var f={xaxis:0,yaxis:1,zaxis:2},h={tip:1,tail:0,cm:.25,center:.5},p={tip:1,tail:1,cm:.75,center:.5};function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,c={};function u(t,e){var n=r[e],o=i[f[e]];return a(t,(function(t){return n.d2l(t)*o}))}c.vectors=l(u(e.u,&quot;xaxis&quot;),u(e.v,&quot;yaxis&quot;),u(e.w,&quot;zaxis&quot;),e._len),c.positions=l(u(e.x,&quot;xaxis&quot;),u(e.y,&quot;yaxis&quot;),u(e.z,&quot;zaxis&quot;),e._len);var d=s(e);c.colormap=o(e),c.vertexIntensityBounds=[d.min/e._normMax,d.max/e._normMax],c.coneOffset=h[e.anchor],&quot;scaled&quot;===e.sizemode?c.coneSize=e.sizeref||.5:c.coneSize=e.sizeref&amp;&amp;e._normMax?e.sizeref/e._normMax:.5;var m=n(c),g=e.lightposition;return m.lightPosition=[g.x,g.y,g.z],m.ambient=e.lighting.ambient,m.diffuse=e.lighting.diffuse,m.specular=e.lighting.specular,m.roughness=e.lighting.roughness,m.fresnel=e.lighting.fresnel,m.opacity=e.opacity,e._pad=p[e.anchor]*m.vectorScale*m.coneScale*e._normMax,m}u.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new c(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{&quot;../../../stackgl_modules&quot;:1120,&quot;../../components/colorscale&quot;:378,&quot;../../lib&quot;:503,&quot;../../lib/gl_format_color&quot;:499,&quot;../../plots/gl3d/zip3&quot;:609}],733:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;u&quot;),c=s(&quot;v&quot;),u=s(&quot;w&quot;),f=s(&quot;x&quot;),h=s(&quot;y&quot;),p=s(&quot;z&quot;);l&amp;&amp;l.length&amp;&amp;c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length&amp;&amp;p&amp;&amp;p.length?(s(&quot;sizeref&quot;),s(&quot;sizemode&quot;),s(&quot;anchor&quot;),s(&quot;lighting.ambient&quot;),s(&quot;lighting.diffuse&quot;),s(&quot;lighting.specular&quot;),s(&quot;lighting.roughness&quot;),s(&quot;lighting.fresnel&quot;),s(&quot;lightposition.x&quot;),s(&quot;lightposition.y&quot;),s(&quot;lightposition.z&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;uhoverformat&quot;),s(&quot;vhoverformat&quot;),s(&quot;whoverformat&quot;),s(&quot;xhoverformat&quot;),s(&quot;yhoverformat&quot;),s(&quot;zhoverformat&quot;),e._length=null):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:376,&quot;../../lib&quot;:503,&quot;./attributes&quot;:730}],734:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;cone&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;),plot:t(&quot;./convert&quot;),eventData:function(t,e){return t.norm=e.traceCoordinate[6],t},meta:{}}},{&quot;../../plots/gl3d&quot;:598,&quot;./attributes&quot;:730,&quot;./calc&quot;:731,&quot;./convert&quot;:732,&quot;./defaults&quot;:733}],735:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;),o=a.axisHoverFormat,s=a.descriptionOnlyNumbers,l=t(&quot;../../components/colorscale/attributes&quot;),c=t(&quot;../../components/drawing/attributes&quot;).dash,u=t(&quot;../../plots/font_attributes&quot;),f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../constants/filter_ops&quot;),p=h.COMPARISON_OPS2,d=h.INTERVAL_OPS,m=i.line;e.exports=f({z:n.z,x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,text:n.text,hovertext:n.hovertext,transpose:n.transpose,xtype:n.xtype,ytype:n.ytype,xhoverformat:o(&quot;x&quot;),yhoverformat:o(&quot;y&quot;),zhoverformat:o(&quot;z&quot;,1),hovertemplate:n.hovertemplate,texttemplate:f({},n.texttemplate,{}),textfont:f({},n.textfont,{}),hoverongaps:n.hoverongaps,connectgaps:f({},n.connectgaps,{}),fillcolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},autocontour:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:{&quot;contours.start&quot;:void 0,&quot;contours.end&quot;:void 0,&quot;contours.size&quot;:void 0}},ncontours:{valType:&quot;integer&quot;,dflt:15,min:1,editType:&quot;calc&quot;},contours:{type:{valType:&quot;enumerated&quot;,values:[&quot;levels&quot;,&quot;constraint&quot;],dflt:&quot;levels&quot;,editType:&quot;calc&quot;},start:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},end:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},size:{valType:&quot;number&quot;,dflt:null,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},coloring:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;heatmap&quot;,&quot;lines&quot;,&quot;none&quot;],dflt:&quot;fill&quot;,editType:&quot;calc&quot;},showlines:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},showlabels:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},labelfont:u({editType:&quot;plot&quot;,colorEditType:&quot;style&quot;}),labelformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;,description:s(&quot;contour label&quot;)},operation:{valType:&quot;enumerated&quot;,values:[].concat(p).concat(d),dflt:&quot;=&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},editType:&quot;calc&quot;,impliedEdits:{autocontour:!1}},line:{color:f({},m.color,{editType:&quot;style+colorbars&quot;}),width:{valType:&quot;number&quot;,min:0,editType:&quot;style+colorbars&quot;},dash:c,smoothing:f({},m.smoothing,{}),editType:&quot;plot&quot;}},l(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../components/drawing/attributes&quot;:387,&quot;../../constants/filter_ops&quot;:475,&quot;../../lib/extend&quot;:493,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/font_attributes&quot;:585,&quot;../heatmap/attributes&quot;:792,&quot;../scatter/attributes&quot;:926}],736:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale&quot;),i=t(&quot;../heatmap/calc&quot;),a=t(&quot;./set_contours&quot;),o=t(&quot;./end_plus&quot;);e.exports=function(t,e){var r=i(t,e),s=r[0].z;a(e,s);var l,c=e.contours,u=n.extractOpts(e);if(&quot;heatmap&quot;===c.coloring&amp;&amp;u.auto&amp;&amp;!1===e.autocontour){var f=c.start,h=o(c),p=c.size||1,d=Math.floor((h-f)/p)+1;isFinite(p)||(p=1,d=1);var m=f-p/2;l=[m,m+d*p]}else l=s;return n.calc(t,e,{vals:l,cLetter:&quot;z&quot;}),r}},{&quot;../../components/colorscale&quot;:378,&quot;../heatmap/calc&quot;:793,&quot;./end_plus&quot;:746,&quot;./set_contours&quot;:754}],737:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n=t[0],i=n.z;switch(e.type){case&quot;levels&quot;:var a=Math.min(i[0][0],i[0][1]);for(r=0;r&lt;t.length;r++){var o=t[r];o.prefixBoundary=!o.edgepaths.length&amp;&amp;(a&gt;o.level||o.starts.length&amp;&amp;a===o.level)}break;case&quot;constraint&quot;:if(n.prefixBoundary=!1,n.edgepaths.length)return;var s=n.x.length,l=n.y.length,c=-1/0,u=1/0;for(r=0;r&lt;l;r++)u=Math.min(u,i[r][0]),u=Math.min(u,i[r][s-1]),c=Math.max(c,i[r][0]),c=Math.max(c,i[r][s-1]);for(r=1;r&lt;s-1;r++)u=Math.min(u,i[0][r]),u=Math.min(u,i[l-1][r]),c=Math.max(c,i[0][r]),c=Math.max(c,i[l-1][r]);var f,h,p=e.value;switch(e._operation){case&quot;&gt;&quot;:p&gt;c&amp;&amp;(n.prefixBoundary=!0);break;case&quot;&lt;&quot;:(p&lt;u||n.starts.length&amp;&amp;p===u)&amp;&amp;(n.prefixBoundary=!0);break;case&quot;[]&quot;:f=Math.min(p[0],p[1]),((h=Math.max(p[0],p[1]))&lt;u||f&gt;c||n.starts.length&amp;&amp;h===u)&amp;&amp;(n.prefixBoundary=!0);break;case&quot;][&quot;:f=Math.min(p[0],p[1]),h=Math.max(p[0],p[1]),f&lt;u&amp;&amp;h&gt;c&amp;&amp;(n.prefixBoundary=!0)}}}},{}],738:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale&quot;),i=t(&quot;./make_color_map&quot;),a=t(&quot;./end_plus&quot;);e.exports={min:&quot;zmin&quot;,max:&quot;zmax&quot;,calc:function(t,e,r){var o=e.contours,s=e.line,l=o.size||1,c=o.coloring,u=i(e,{isColorbar:!0});if(&quot;heatmap&quot;===c){var f=n.extractOpts(e);r._fillgradient=f.reversescale?n.flipScale(f.colorscale):f.colorscale,r._zrange=[f.min,f.max]}else&quot;fill&quot;===c&amp;&amp;(r._fillcolor=u);r._line={color:&quot;lines&quot;===c?u:s.color,width:!1!==o.showlines?s.width:0,dash:s.dash},r._levels={start:o.start,end:a(o),size:l}}}},{&quot;../../components/colorscale&quot;:378,&quot;./end_plus&quot;:746,&quot;./make_color_map&quot;:751}],739:[function(t,e,r){&quot;use strict&quot;;e.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],740:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./label_defaults&quot;),a=t(&quot;../../components/color&quot;),o=a.addOpacity,s=a.opacity,l=t(&quot;../../constants/filter_ops&quot;),c=l.CONSTRAINT_REDUCTION,u=l.COMPARISON_OPS2;e.exports=function(t,e,r,a,l,f){var h,p,d,m=e.contours,g=r(&quot;contours.operation&quot;);(m._operation=c[g],function(t,e){var r;-1===u.indexOf(e.operation)?(t(&quot;contours.value&quot;,[0,1]),Array.isArray(e.value)?e.value.length&gt;2?e.value=e.value.slice(2):0===e.length?e.value=[0,1]:e.length&lt;2?(r=parseFloat(e.value[0]),e.value=[r,r+1]):e.value=[parseFloat(e.value[0]),parseFloat(e.value[1])]:n(e.value)&amp;&amp;(r=parseFloat(e.value),e.value=[r,r+1])):(t(&quot;contours.value&quot;,0),n(e.value)||(Array.isArray(e.value)?e.value=parseFloat(e.value[0]):e.value=0))}(r,m),&quot;=&quot;===g?h=m.showlines=!0:(h=r(&quot;contours.showlines&quot;),d=r(&quot;fillcolor&quot;,o((t.line||{}).color||l,.5))),h)&amp;&amp;(p=r(&quot;line.color&quot;,d&amp;&amp;s(d)?o(e.fillcolor,1):l),r(&quot;line.width&quot;,2),r(&quot;line.dash&quot;));r(&quot;line.smoothing&quot;),i(r,a,p,f)}},{&quot;../../components/color&quot;:366,&quot;../../constants/filter_ops&quot;:475,&quot;./label_defaults&quot;:750,&quot;fast-isnumeric&quot;:190}],741:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/filter_ops&quot;),i=t(&quot;fast-isnumeric&quot;);function a(t,e){var r,a=Array.isArray(e);function o(t){return i(t)?+t:null}return-1!==n.COMPARISON_OPS2.indexOf(t)?r=o(a?e[0]:e):-1!==n.INTERVAL_OPS.indexOf(t)?r=a?[o(e[0]),o(e[1])]:[o(e),o(e)]:-1!==n.SET_OPS.indexOf(t)&amp;&amp;(r=a?e.map(o):[o(e)]),r}function o(t){return function(e){e=a(t,e);var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return{start:r,end:n,size:n-r}}}function s(t){return function(e){return{start:e=a(t,e),end:1/0,size:1/0}}}e.exports={&quot;[]&quot;:o(&quot;[]&quot;),&quot;][&quot;:o(&quot;][&quot;),&quot;&gt;&quot;:s(&quot;&gt;&quot;),&quot;&lt;&quot;:s(&quot;&lt;&quot;),&quot;=&quot;:s(&quot;=&quot;)}},{&quot;../../constants/filter_ops&quot;:475,&quot;fast-isnumeric&quot;:190}],742:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i=n(&quot;contours.start&quot;),a=n(&quot;contours.end&quot;),o=!1===i||!1===a,s=r(&quot;contours.size&quot;);!(o?e.autocontour=!0:r(&quot;autocontour&quot;,!1))&amp;&amp;s||r(&quot;ncontours&quot;)}},{}],743:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);function i(t){return n.extendFlat({},t,{edgepaths:n.extendDeep([],t.edgepaths),paths:n.extendDeep([],t.paths),starts:n.extendDeep([],t.starts)})}e.exports=function(t,e){var r,a,o,s=function(t){return t.reverse()},l=function(t){return t};switch(e){case&quot;=&quot;:case&quot;&lt;&quot;:return t;case&quot;&gt;&quot;:for(1!==t.length&amp;&amp;n.warn(&quot;Contour data invalid for the specified inequality operation.&quot;),a=t[0],r=0;r&lt;a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r&lt;a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(r=0;r&lt;a.starts.length;r++)a.starts[r]=s(a.starts[r]);return t;case&quot;][&quot;:var c=s;s=l,l=c;case&quot;[]&quot;:for(2!==t.length&amp;&amp;n.warn(&quot;Contour data invalid for the specified inequality range operation.&quot;),a=i(t[0]),o=i(t[1]),r=0;r&lt;a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r&lt;a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(r=0;r&lt;a.starts.length;r++)a.starts[r]=s(a.starts[r]);for(;o.edgepaths.length;)a.edgepaths.push(l(o.edgepaths.shift()));for(;o.paths.length;)a.paths.push(l(o.paths.shift()));for(;o.starts.length;)a.starts.push(l(o.starts.shift()));return[a]}}},{&quot;../../lib&quot;:503}],744:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./constraint_defaults&quot;),s=t(&quot;./contours_defaults&quot;),l=t(&quot;./style_defaults&quot;),c=t(&quot;../heatmap/label_defaults&quot;),u=t(&quot;./attributes&quot;);e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,u,r,i)}if(i(t,e,h,f)){a(t,e,f,h),h(&quot;xhoverformat&quot;),h(&quot;yhoverformat&quot;),h(&quot;text&quot;),h(&quot;hovertext&quot;),h(&quot;hoverongaps&quot;),h(&quot;hovertemplate&quot;);var p=&quot;constraint&quot;===h(&quot;contours.type&quot;);h(&quot;connectgaps&quot;,n.isArray1D(e.z)),p?o(t,e,h,f,r):(s(t,e,h,(function(r){return n.coerce2(t,e,u,r)})),l(t,e,h,f)),e.contours&amp;&amp;&quot;heatmap&quot;===e.contours.coloring&amp;&amp;c(h,f)}else e.visible=!1}},{&quot;../../lib&quot;:503,&quot;../heatmap/label_defaults&quot;:802,&quot;../heatmap/xyz_defaults&quot;:807,&quot;../scatter/period_defaults&quot;:946,&quot;./attributes&quot;:735,&quot;./constraint_defaults&quot;:740,&quot;./contours_defaults&quot;:742,&quot;./style_defaults&quot;:756}],745:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constraint_mapping&quot;),a=t(&quot;./end_plus&quot;);e.exports=function(t,e,r){for(var o=&quot;constraint&quot;===t.type?i[t._operation](t.value):t,s=o.size,l=[],c=a(o),u=r.trace._carpetTrace,f=u?{xaxis:u.aaxis,yaxis:u.baxis,x:r.a,y:r.b}:{xaxis:e.xaxis,yaxis:e.yaxis,x:r.x,y:r.y},h=o.start;h&lt;c;h+=s)if(l.push(n.extendFlat({level:h,crossings:{},starts:[],edgepaths:[],paths:[],z:r.z,smoothing:r.trace.line.smoothing},f)),l.length&gt;1e3){n.warn(&quot;Too many contours, clipping at 1000&quot;,t);break}return l}},{&quot;../../lib&quot;:503,&quot;./constraint_mapping&quot;:741,&quot;./end_plus&quot;:746}],746:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t.end+t.size/1e6}},{}],747:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constants&quot;);function a(t,e,r,n){return Math.abs(t[0]-e[0])&lt;r&amp;&amp;Math.abs(t[1]-e[1])&lt;n}function o(t,e,r,o,l){var c,u=e.join(&quot;,&quot;),f=t.crossings[u],h=function(t,e,r){var n=0,a=0;t&gt;20&amp;&amp;e?208===t||1114===t?n=0===r[0]?1:-1:a=0===r[1]?1:-1:-1!==i.BOTTOMSTART.indexOf(t)?a=1:-1!==i.LEFTSTART.indexOf(t)?n=1:-1!==i.TOPSTART.indexOf(t)?a=-1:n=-1;return[n,a]}(f,r,e),p=[s(t,e,[-h[0],-h[1]])],d=t.z.length,m=t.z[0].length,g=e.slice(),v=h.slice();for(c=0;c&lt;1e4;c++){if(f&gt;20?(f=i.CHOOSESADDLE[f][(h[0]||h[1])&lt;0?0:1],t.crossings[u]=i.SADDLEREMAINDER[f]):delete t.crossings[u],!(h=i.NEWDELTA[f])){n.log(&quot;Found bad marching index:&quot;,f,e,t.level);break}p.push(s(t,e,h)),e[0]+=h[0],e[1]+=h[1],u=e.join(&quot;,&quot;),a(p[p.length-1],p[p.length-2],o,l)&amp;&amp;p.pop();var y=h[0]&amp;&amp;(e[0]&lt;0||e[0]&gt;m-2)||h[1]&amp;&amp;(e[1]&lt;0||e[1]&gt;d-2);if(e[0]===g[0]&amp;&amp;e[1]===g[1]&amp;&amp;h[0]===v[0]&amp;&amp;h[1]===v[1]||r&amp;&amp;y)break;f=t.crossings[u]}1e4===c&amp;&amp;n.log(&quot;Infinite loop in contour?&quot;);var x,b,_,w,T,k,A,M,S,E,L,C,P,I,O,z=a(p[0],p[p.length-1],o,l),D=0,R=.2*t.smoothing,F=[],B=0;for(c=1;c&lt;p.length;c++)C=p[c],P=p[c-1],I=void 0,O=void 0,I=C[2]-P[2],O=C[3]-P[3],D+=A=Math.sqrt(I*I+O*O),F.push(A);var N=D/F.length*R;function j(t){return p[t%p.length]}for(c=p.length-2;c&gt;=B;c--)if((x=F[c])&lt;N){for(_=0,b=c-1;b&gt;=B&amp;&amp;x+F[b]&lt;N;b--)x+=F[b];if(z&amp;&amp;c===p.length-2)for(_=0;_&lt;b&amp;&amp;x+F[_]&lt;N;_++)x+=F[_];T=c-b+_+1,k=Math.floor((c+b+_+2)/2),w=z||c!==p.length-2?z||-1!==b?T%2?j(k):[(j(k)[0]+j(k+1)[0])/2,(j(k)[1]+j(k+1)[1])/2]:p[0]:p[p.length-1],p.splice(b+1,c-b+1,w),c=b+1,_&amp;&amp;(B=_),z&amp;&amp;(c===p.length-2?p[_]=p[p.length-1]:0===c&amp;&amp;(p[p.length-1]=p[0]))}for(p.splice(0,B),c=0;c&lt;p.length;c++)p[c].length=2;if(!(p.length&lt;2))if(z)p.pop(),t.paths.push(p);else{r||n.log(&quot;Unclosed interior contour?&quot;,t.level,g.join(&quot;,&quot;),p.join(&quot;L&quot;));var U=!1;for(M=0;M&lt;t.edgepaths.length;M++)if(E=t.edgepaths[M],!U&amp;&amp;a(E[0],p[p.length-1],o,l)){p.pop(),U=!0;var V=!1;for(S=0;S&lt;t.edgepaths.length;S++)if(a((L=t.edgepaths[S])[L.length-1],p[0],o,l)){V=!0,p.shift(),t.edgepaths.splice(M,1),S===M?t.paths.push(p.concat(L)):(S&gt;M&amp;&amp;S--,t.edgepaths[S]=L.concat(p,E));break}V||(t.edgepaths[M]=p.concat(E))}for(M=0;M&lt;t.edgepaths.length&amp;&amp;!U;M++)a((E=t.edgepaths[M])[E.length-1],p[0],o,l)&amp;&amp;(p.shift(),t.edgepaths[M]=E.concat(p),U=!0);U||t.edgepaths.push(p)}}function s(t,e,r){var n=e[0]+Math.max(r[0],0),i=e[1]+Math.max(r[1],0),a=t.z[i][n],o=t.xaxis,s=t.yaxis;if(r[1]){var l=(t.level-a)/(t.z[i][n+1]-a),c=(1!==l?(1-l)*o.c2l(t.x[n]):0)+(0!==l?l*o.c2l(t.x[n+1]):0);return[o.c2p(o.l2c(c),!0),s.c2p(t.y[i],!0),n+l,i]}var u=(t.level-a)/(t.z[i+1][n]-a),f=(1!==u?(1-u)*s.c2l(t.y[i]):0)+(0!==u?u*s.c2l(t.y[i+1]):0);return[o.c2p(t.x[n],!0),s.c2p(s.l2c(f),!0),n,i+u]}e.exports=function(t,e,r){var i,a,s,l;for(e=e||.01,r=r||.01,a=0;a&lt;t.length;a++){for(s=t[a],l=0;l&lt;s.starts.length;l++)o(s,s.starts[l],&quot;edge&quot;,e,r);for(i=0;Object.keys(s.crossings).length&amp;&amp;i&lt;1e4;)i++,o(s,Object.keys(s.crossings)[0].split(&quot;,&quot;).map(Number),void 0,e,r);1e4===i&amp;&amp;n.log(&quot;Infinite loop in contour?&quot;)}}},{&quot;../../lib&quot;:503,&quot;./constants&quot;:739}],748:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../heatmap/hover&quot;);e.exports=function(t,e,r,a,o){o||(o={}),o.isContour=!0;var s=i(t,e,r,a,o);return s&amp;&amp;s.forEach((function(t){var e=t.trace;&quot;constraint&quot;===e.contours.type&amp;&amp;(e.fillcolor&amp;&amp;n.opacity(e.fillcolor)?t.color=n.addOpacity(e.fillcolor,1):e.contours.showlines&amp;&amp;n.opacity(e.line.color)&amp;&amp;(t.color=n.addOpacity(e.line.color,1)))})),s}},{&quot;../../components/color&quot;:366,&quot;../heatmap/hover&quot;:799}],749:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),colorbar:t(&quot;./colorbar&quot;),hoverPoints:t(&quot;./hover&quot;),moduleType:&quot;trace&quot;,name:&quot;contour&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;contour&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:568,&quot;./attributes&quot;:735,&quot;./calc&quot;:736,&quot;./colorbar&quot;:738,&quot;./defaults&quot;:744,&quot;./hover&quot;:748,&quot;./plot&quot;:753,&quot;./style&quot;:755}],750:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r,i){if(i||(i={}),t(&quot;contours.showlabels&quot;)){var a=e.font;n.coerceFont(t,&quot;contours.labelfont&quot;,{family:a.family,size:a.size,color:r}),t(&quot;contours.labelformat&quot;)}!1!==i.hasHover&amp;&amp;t(&quot;zhoverformat&quot;)}},{&quot;../../lib&quot;:503}],751:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/colorscale&quot;),a=t(&quot;./end_plus&quot;);e.exports=function(t){var e=t.contours,r=e.start,o=a(e),s=e.size||1,l=Math.floor((o-r)/s)+1,c=&quot;lines&quot;===e.coloring?0:1,u=i.extractOpts(t);isFinite(s)||(s=1,l=1);var f,h,p=u.reversescale?i.flipScale(u.colorscale):u.colorscale,d=p.length,m=new Array(d),g=new Array(d);if(&quot;heatmap&quot;===e.coloring){var v=u.min,y=u.max;for(h=0;h&lt;d;h++)f=p[h],m[h]=f[0]*(y-v)+v,g[h]=f[1];var x=n.extent([v,y,e.start,e.start+s*(l-1)]),b=x[v&lt;y?0:1],_=x[v&lt;y?1:0];b!==v&amp;&amp;(m.splice(0,0,b),g.splice(0,0,g[0])),_!==y&amp;&amp;(m.push(_),g.push(g[g.length-1]))}else for(h=0;h&lt;d;h++)f=p[h],m[h]=(f[0]*(l+c-1)-c/2)*s+r,g[h]=f[1];return i.makeColorScaleFunc({domain:m,range:g},{noNumericCheck:!0})}},{&quot;../../components/colorscale&quot;:378,&quot;./end_plus&quot;:746,&quot;@plotly/d3&quot;:58}],752:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);function i(t,e){var r=(e[0][0]&gt;t?0:1)+(e[0][1]&gt;t?0:2)+(e[1][1]&gt;t?0:4)+(e[1][0]&gt;t?0:8);return 5===r||10===r?t&gt;(e[0][0]+e[0][1]+e[1][0]+e[1][1])/4?5===r?713:1114:5===r?104:208:15===r?0:r}e.exports=function(t){var e,r,a,o,s,l,c,u,f,h=t[0].z,p=h.length,d=h[0].length,m=2===p||2===d;for(r=0;r&lt;p-1;r++)for(o=[],0===r&amp;&amp;(o=o.concat(n.BOTTOMSTART)),r===p-2&amp;&amp;(o=o.concat(n.TOPSTART)),e=0;e&lt;d-1;e++)for(a=o.slice(),0===e&amp;&amp;(a=a.concat(n.LEFTSTART)),e===d-2&amp;&amp;(a=a.concat(n.RIGHTSTART)),s=e+&quot;,&quot;+r,l=[[h[r][e],h[r][e+1]],[h[r+1][e],h[r+1][e+1]]],f=0;f&lt;t.length;f++)(c=i((u=t[f]).level,l))&amp;&amp;(u.crossings[s]=c,-1!==a.indexOf(c)&amp;&amp;(u.starts.push([e,r]),m&amp;&amp;-1!==a.indexOf(c,a.indexOf(c)+1)&amp;&amp;u.starts.push([e,r])))}},{&quot;./constants&quot;:739}],753:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../components/colorscale&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;../../plots/cartesian/set_convert&quot;),u=t(&quot;../heatmap/plot&quot;),f=t(&quot;./make_crossings&quot;),h=t(&quot;./find_all_paths&quot;),p=t(&quot;./empty_pathinfo&quot;),d=t(&quot;./convert_to_constraints&quot;),m=t(&quot;./close_boundaries&quot;),g=t(&quot;./constants&quot;),v=g.LABELOPTIMIZER;function y(t,e){var r,n,o,s,l,c,u,f=&quot;&quot;,h=0,p=t.edgepaths.map((function(t,e){return e})),d=!0;function m(t){return Math.abs(t[1]-e[2][1])&lt;.01}function g(t){return Math.abs(t[0]-e[0][0])&lt;.01}function v(t){return Math.abs(t[0]-e[2][0])&lt;.01}for(;p.length;){for(c=a.smoothopen(t.edgepaths[h],t.smoothing),f+=d?c:c.replace(/^M/,&quot;L&quot;),p.splice(p.indexOf(h),1),r=t.edgepaths[h][t.edgepaths[h].length-1],s=-1,o=0;o&lt;4;o++){if(!r){i.log(&quot;Missing end?&quot;,h,t);break}for(u=r,Math.abs(u[1]-e[0][1])&lt;.01&amp;&amp;!v(r)?n=e[1]:g(r)?n=e[0]:m(r)?n=e[3]:v(r)&amp;&amp;(n=e[2]),l=0;l&lt;t.edgepaths.length;l++){var y=t.edgepaths[l][0];Math.abs(r[0]-n[0])&lt;.01?Math.abs(r[0]-y[0])&lt;.01&amp;&amp;(y[1]-r[1])*(n[1]-y[1])&gt;=0&amp;&amp;(n=y,s=l):Math.abs(r[1]-n[1])&lt;.01?Math.abs(r[1]-y[1])&lt;.01&amp;&amp;(y[0]-r[0])*(n[0]-y[0])&gt;=0&amp;&amp;(n=y,s=l):i.log(&quot;endpt to newendpt is not vert. or horz.&quot;,r,n,y)}if(r=n,s&gt;=0)break;f+=&quot;L&quot;+n}if(s===t.edgepaths.length){i.log(&quot;unclosed perimeter path&quot;);break}h=s,(d=-1===p.indexOf(h))&amp;&amp;(h=p[0],f+=&quot;Z&quot;)}for(h=0;h&lt;t.paths.length;h++)f+=a.smoothclosed(t.paths[h],t.smoothing);return f}function x(t,e,r,n){var a=e.width/2,o=e.height/2,s=t.x,l=t.y,c=t.theta,u=Math.cos(c)*a,f=Math.sin(c)*a,h=(s&gt;n.center?n.right-s:s-n.left)/(u+Math.abs(Math.sin(c)*o)),p=(l&gt;n.middle?n.bottom-l:l-n.top)/(Math.abs(f)+Math.cos(c)*o);if(h&lt;1||p&lt;1)return 1/0;var d=v.EDGECOST*(1/(h-1)+1/(p-1));d+=v.ANGLECOST*c*c;for(var m=s-u,g=l-f,y=s+u,x=l+f,b=0;b&lt;r.length;b++){var _=r[b],w=Math.cos(_.theta)*_.width/2,T=Math.sin(_.theta)*_.width/2,k=2*i.segmentDistance(m,g,y,x,_.x-w,_.y-T,_.x+w,_.y+T)/(e.height+_.height),A=_.level===e.level,M=A?v.SAMELEVELDISTANCE:1;if(k&lt;=M)return 1/0;d+=v.NEIGHBORCOST*(A?v.SAMELEVELFACTOR:1)/(k-M)}return d}function b(t){var e,r,n=t.trace._emptypoints,i=[],a=t.z.length,o=t.z[0].length,s=[];for(e=0;e&lt;o;e++)s.push(1);for(e=0;e&lt;a;e++)i.push(s.slice());for(e=0;e&lt;n.length;e++)i[(r=n[e])[0]][r[1]]=0;return t.zmask=i,i}r.plot=function(t,e,o,s){var l=e.xaxis,c=e.yaxis;i.makeTraceGroups(s,o,&quot;contour&quot;).each((function(o){var s=n.select(this),v=o[0],x=v.trace,_=v.x,w=v.y,T=x.contours,k=p(T,e,v),A=i.ensureSingle(s,&quot;g&quot;,&quot;heatmapcoloring&quot;),M=[];&quot;heatmap&quot;===T.coloring&amp;&amp;(M=[o]),u(t,e,M,A),f(k),h(k);var S=l.c2p(_[0],!0),E=l.c2p(_[_.length-1],!0),L=c.c2p(w[0],!0),C=c.c2p(w[w.length-1],!0),P=[[S,C],[E,C],[E,L],[S,L]],I=k;&quot;constraint&quot;===T.type&amp;&amp;(I=d(k,T._operation)),function(t,e,r){var n=i.ensureSingle(t,&quot;g&quot;,&quot;contourbg&quot;).selectAll(&quot;path&quot;).data(&quot;fill&quot;===r.coloring?[0]:[]);n.enter().append(&quot;path&quot;),n.exit().remove(),n.attr(&quot;d&quot;,&quot;M&quot;+e.join(&quot;L&quot;)+&quot;Z&quot;).style(&quot;stroke&quot;,&quot;none&quot;)}(s,P,T),function(t,e,r,a){var o=&quot;fill&quot;===a.coloring||&quot;constraint&quot;===a.type&amp;&amp;&quot;=&quot;!==a._operation,s=&quot;M&quot;+r.join(&quot;L&quot;)+&quot;Z&quot;;o&amp;&amp;m(e,a);var l=i.ensureSingle(t,&quot;g&quot;,&quot;contourfill&quot;).selectAll(&quot;path&quot;).data(o?e:[]);l.enter().append(&quot;path&quot;),l.exit().remove(),l.each((function(t){var e=(t.prefixBoundary?s:&quot;&quot;)+y(t,r);e?n.select(this).attr(&quot;d&quot;,e).style(&quot;stroke&quot;,&quot;none&quot;):n.select(this).remove()}))}(s,I,P,T),function(t,e,o,s,l){var c=i.ensureSingle(t,&quot;g&quot;,&quot;contourlines&quot;),u=!1!==l.showlines,f=l.showlabels,h=u&amp;&amp;f,p=r.createLines(c,u||f,e),d=r.createLineClip(c,h,o,s.trace.uid),m=t.selectAll(&quot;g.contourlabels&quot;).data(f?[0]:[]);if(m.exit().remove(),m.enter().append(&quot;g&quot;).classed(&quot;contourlabels&quot;,!0),f){var v=[],y=[];i.clearLocationCache();var x=r.labelFormatter(o,s),b=a.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).call(a.font,l.labelfont),_=e[0].xaxis,w=e[0].yaxis,T=_._length,k=w._length,A=_.range,M=w.range,S=i.aggNums(Math.min,null,s.x),E=i.aggNums(Math.max,null,s.x),L=i.aggNums(Math.min,null,s.y),C=i.aggNums(Math.max,null,s.y),P=Math.max(_.c2p(S,!0),0),I=Math.min(_.c2p(E,!0),T),O=Math.max(w.c2p(C,!0),0),z=Math.min(w.c2p(L,!0),k),D={};A[0]&lt;A[1]?(D.left=P,D.right=I):(D.left=I,D.right=P),M[0]&lt;M[1]?(D.top=O,D.bottom=z):(D.top=z,D.bottom=O),D.middle=(D.top+D.bottom)/2,D.center=(D.left+D.right)/2,v.push([[D.left,D.top],[D.right,D.top],[D.right,D.bottom],[D.left,D.bottom]]);var R=Math.sqrt(T*T+k*k),F=g.LABELDISTANCE*R/Math.max(1,e.length/g.LABELINCREASE);p.each((function(t){var e=r.calcTextOpts(t.level,x,b,o);n.select(this).selectAll(&quot;path&quot;).each((function(){var t=i.getVisibleSegment(this,D,e.height/2);if(t&amp;&amp;!(t.len&lt;(e.width+e.height)*g.LABELMIN))for(var n=Math.min(Math.ceil(t.len/F),g.LABELMAX),a=0;a&lt;n;a++){var o=r.findBestTextLocation(this,t,e,y,D);if(!o)break;r.addLabelData(o,e,y,v)}}))})),b.remove(),r.drawLabels(m,y,o,d,h?v:null)}f&amp;&amp;!u&amp;&amp;p.remove()}(s,k,t,v,T),function(t,e,r,n,o){var s=n.trace,l=r._fullLayout._clips,c=&quot;clip&quot;+s.uid,u=l.selectAll(&quot;#&quot;+c).data(s.connectgaps?[]:[0]);if(u.enter().append(&quot;clipPath&quot;).classed(&quot;contourclip&quot;,!0).attr(&quot;id&quot;,c),u.exit().remove(),!1===s.connectgaps){var p={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:e.xaxis,yaxis:e.yaxis,x:n.x,y:n.y,z:b(n),smoothing:0};f([p]),h([p]),m([p],{type:&quot;levels&quot;}),i.ensureSingle(u,&quot;path&quot;,&quot;&quot;).attr(&quot;d&quot;,(p.prefixBoundary?&quot;M&quot;+o.join(&quot;L&quot;)+&quot;Z&quot;:&quot;&quot;)+y(p,o))}else c=null;a.setClipUrl(t,c,r)}(s,e,t,v,P)}))},r.createLines=function(t,e,r){var n=r[0].smoothing,i=t.selectAll(&quot;g.contourlevel&quot;).data(e?r:[]);if(i.exit().remove(),i.enter().append(&quot;g&quot;).classed(&quot;contourlevel&quot;,!0),e){var o=i.selectAll(&quot;path.openline&quot;).data((function(t){return t.pedgepaths||t.edgepaths}));o.exit().remove(),o.enter().append(&quot;path&quot;).classed(&quot;openline&quot;,!0),o.attr(&quot;d&quot;,(function(t){return a.smoothopen(t,n)})).style(&quot;stroke-miterlimit&quot;,1).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;);var s=i.selectAll(&quot;path.closedline&quot;).data((function(t){return t.ppaths||t.paths}));s.exit().remove(),s.enter().append(&quot;path&quot;).classed(&quot;closedline&quot;,!0),s.attr(&quot;d&quot;,(function(t){return a.smoothclosed(t,n)})).style(&quot;stroke-miterlimit&quot;,1).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;)}return i},r.createLineClip=function(t,e,r,n){var i=e?&quot;clipline&quot;+n:null,o=r._fullLayout._clips.selectAll(&quot;#&quot;+i).data(e?[0]:[]);return o.exit().remove(),o.enter().append(&quot;clipPath&quot;).classed(&quot;contourlineclip&quot;,!0).attr(&quot;id&quot;,i),a.setClipUrl(t,i,r),o},r.labelFormatter=function(t,e){var r=t._fullLayout,n=e.trace,i=n.contours,a={type:&quot;linear&quot;,_id:&quot;ycontour&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;};if(i.labelformat)a.tickformat=i.labelformat,c(a,r);else{var s=o.extractOpts(n);if(s&amp;&amp;s.colorbar&amp;&amp;s.colorbar._axis)a=s.colorbar._axis;else{if(&quot;constraint&quot;===i.type){var u=i.value;Array.isArray(u)?a.range=[u[0],u[u.length-1]]:a.range=[u,u]}else a.range=[i.start,i.end],a.nticks=(i.end-i.start)/i.size;a.range[0]===a.range[1]&amp;&amp;(a.range[1]+=a.range[0]||1),a.nticks||(a.nticks=1e3),c(a,r),l.prepTicks(a),a._tmin=null,a._tmax=null}}return function(t){return l.tickText(a,t).text}},r.calcTextOpts=function(t,e,r,n){var i=e(t);r.text(i).call(s.convertToTspans,n);var o=r.node(),l=a.bBox(o,!0);return{text:i,width:l.width,height:l.height,fontSize:+o.style[&quot;font-size&quot;].replace(&quot;px&quot;,&quot;&quot;),level:t,dy:(l.top+l.bottom)/2}},r.findBestTextLocation=function(t,e,r,n,a){var o,s,l,c,u,f=r.width;e.isClosed?(s=e.len/v.INITIALSEARCHPOINTS,o=e.min+s/2,l=e.max):(s=(e.len-f)/(v.INITIALSEARCHPOINTS+1),o=e.min+s+f/2,l=e.max-(s+f)/2);for(var h=1/0,p=0;p&lt;v.ITERATIONS;p++){for(var d=o;d&lt;l;d+=s){var m=i.getTextLocation(t,e.total,d,f),g=x(m,r,n,a);g&lt;h&amp;&amp;(h=g,u=m,c=d)}if(h&gt;2*v.MAXCOST)break;p&amp;&amp;(s/=2),l=(o=c-s/2)+1.5*s}if(h&lt;=v.MAXCOST)return u},r.addLabelData=function(t,e,r,n){var i=e.fontSize,a=e.width+i/3,o=Math.max(0,e.height-i/3),s=t.x,l=t.y,c=t.theta,u=Math.sin(c),f=Math.cos(c),h=function(t,e){return[s+t*f-e*u,l+t*u+e*f]},p=[h(-a/2,-o/2),h(-a/2,o/2),h(a/2,o/2),h(a/2,-o/2)];r.push({text:e.text,x:s,y:l,dy:e.dy,theta:c,level:e.level,width:a,height:o}),n.push(p)},r.drawLabels=function(t,e,r,a,o){var l=t.selectAll(&quot;text&quot;).data(e,(function(t){return t.text+&quot;,&quot;+t.x+&quot;,&quot;+t.y+&quot;,&quot;+t.theta}));if(l.exit().remove(),l.enter().append(&quot;text&quot;).attr({&quot;data-notex&quot;:1,&quot;text-anchor&quot;:&quot;middle&quot;}).each((function(t){var e=t.x+Math.sin(t.theta)*t.dy,i=t.y-Math.cos(t.theta)*t.dy;n.select(this).text(t.text).attr({x:e,y:i,transform:&quot;rotate(&quot;+180*t.theta/Math.PI+&quot; &quot;+e+&quot; &quot;+i+&quot;)&quot;}).call(s.convertToTspans,r)})),o){for(var c=&quot;&quot;,u=0;u&lt;o.length;u++)c+=&quot;M&quot;+o[u].join(&quot;L&quot;)+&quot;Z&quot;;i.ensureSingle(a,&quot;path&quot;,&quot;&quot;).attr(&quot;d&quot;,c)}}},{&quot;../../components/colorscale&quot;:378,&quot;../../components/drawing&quot;:388,&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../plots/cartesian/set_convert&quot;:576,&quot;../heatmap/plot&quot;:804,&quot;./close_boundaries&quot;:737,&quot;./constants&quot;:739,&quot;./convert_to_constraints&quot;:743,&quot;./empty_pathinfo&quot;:745,&quot;./find_all_paths&quot;:747,&quot;./make_crossings&quot;:752,&quot;@plotly/d3&quot;:58}],754:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;);function a(t,e,r){var i={type:&quot;linear&quot;,range:[t,e]};return n.autoTicks(i,(e-t)/(r||15)),i}e.exports=function(t,e){var r=t.contours;if(t.autocontour){var o=t.zmin,s=t.zmax;(t.zauto||void 0===o)&amp;&amp;(o=i.aggNums(Math.min,null,e)),(t.zauto||void 0===s)&amp;&amp;(s=i.aggNums(Math.max,null,e));var l=a(o,s,t.ncontours);r.size=l.dtick,r.start=n.tickFirst(l),l.range.reverse(),r.end=n.tickFirst(l),r.start===o&amp;&amp;(r.start+=r.size),r.end===s&amp;&amp;(r.end-=r.size),r.start&gt;r.end&amp;&amp;(r.start=r.end=(r.start+r.end)/2),t._input.contours||(t._input.contours={}),i.extendFlat(t._input.contours,{start:r.start,end:r.end,size:r.size}),t._input.autocontour=!0}else if(&quot;constraint&quot;!==r.type){var c,u=r.start,f=r.end,h=t._input.contours;if(u&gt;f&amp;&amp;(r.start=h.start=f,f=r.end=h.end=u,u=r.start),!(r.size&gt;0))c=u===f?1:a(u,f,t.ncontours).dtick,h.size=r.size=c}}},{&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554}],755:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../heatmap/style&quot;),o=t(&quot;./make_color_map&quot;);e.exports=function(t){var e=n.select(t).selectAll(&quot;g.contour&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.each((function(t){var e=n.select(this),r=t[0].trace,a=r.contours,s=r.line,l=a.size||1,c=a.start,u=&quot;constraint&quot;===a.type,f=!u&amp;&amp;&quot;lines&quot;===a.coloring,h=!u&amp;&amp;&quot;fill&quot;===a.coloring,p=f||h?o(r):null;e.selectAll(&quot;g.contourlevel&quot;).each((function(t){n.select(this).selectAll(&quot;path&quot;).call(i.lineGroupStyle,s.width,f?p(t.level):s.color,s.dash)}));var d=a.labelfont;if(e.selectAll(&quot;g.contourlabels text&quot;).each((function(t){i.font(n.select(this),{family:d.family,size:d.size,color:d.color||(f?p(t.level):s.color)})})),u)e.selectAll(&quot;g.contourfill path&quot;).style(&quot;fill&quot;,r.fillcolor);else if(h){var m;e.selectAll(&quot;g.contourfill path&quot;).style(&quot;fill&quot;,(function(t){return void 0===m&amp;&amp;(m=t.level),p(t.level+.5*l)})),void 0===m&amp;&amp;(m=c),e.selectAll(&quot;g.contourbg path&quot;).style(&quot;fill&quot;,p(m-.5*l))}})),a(t)}},{&quot;../../components/drawing&quot;:388,&quot;../heatmap/style&quot;:805,&quot;./make_color_map&quot;:751,&quot;@plotly/d3&quot;:58}],756:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/defaults&quot;),i=t(&quot;./label_defaults&quot;);e.exports=function(t,e,r,a,o){var s,l=r(&quot;contours.coloring&quot;),c=&quot;&quot;;&quot;fill&quot;===l&amp;&amp;(s=r(&quot;contours.showlines&quot;)),!1!==s&amp;&amp;(&quot;lines&quot;!==l&amp;&amp;(c=r(&quot;line.color&quot;,&quot;#000&quot;)),r(&quot;line.width&quot;,.5),r(&quot;line.dash&quot;)),&quot;none&quot;!==l&amp;&amp;(!0!==t.showlegend&amp;&amp;(e.showlegend=!1),e._dfltShowLegend=!1,n(t,e,a,r,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})),r(&quot;line.smoothing&quot;),i(r,a,c,o)}},{&quot;../../components/colorscale/defaults&quot;:376,&quot;./label_defaults&quot;:750}],757:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../contour/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat,s=i.contours;e.exports=o({carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},z:n.z,a:n.x,a0:n.x0,da:n.dx,b:n.y,b0:n.y0,db:n.dy,text:n.text,hovertext:n.hovertext,transpose:n.transpose,atype:n.xtype,btype:n.ytype,fillcolor:i.fillcolor,autocontour:i.autocontour,ncontours:i.ncontours,contours:{type:s.type,start:s.start,end:s.end,size:s.size,coloring:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;lines&quot;,&quot;none&quot;],dflt:&quot;fill&quot;,editType:&quot;calc&quot;},showlines:s.showlines,showlabels:s.showlabels,labelfont:s.labelfont,labelformat:s.labelformat,operation:s.operation,value:s.value,editType:&quot;calc&quot;,impliedEdits:{autocontour:!1}},line:{color:i.line.color,width:i.line.width,dash:i.line.dash,smoothing:i.line.smoothing,editType:&quot;plot&quot;},transforms:void 0},a(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../contour/attributes&quot;:735,&quot;../heatmap/attributes&quot;:792}],758:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../heatmap/convert_column_xyz&quot;),o=t(&quot;../heatmap/clean_2d_array&quot;),s=t(&quot;../heatmap/interp2d&quot;),l=t(&quot;../heatmap/find_empties&quot;),c=t(&quot;../heatmap/make_bound_array&quot;),u=t(&quot;./defaults&quot;),f=t(&quot;../carpet/lookup_carpetid&quot;),h=t(&quot;../contour/set_contours&quot;);e.exports=function(t,e){var r=e._carpetTrace=f(t,e);if(r&amp;&amp;r.visible&amp;&amp;&quot;legendonly&quot;!==r.visible){if(!e.a||!e.b){var p=t.data[r.index],d=t.data[e.index];d.a||(d.a=p.a),d.b||(d.b=p.b),u(d,e,e._defaultColor,t._fullLayout)}var m=function(t,e){var r,u,f,h,p,d,m,g=e._carpetTrace,v=g.aaxis,y=g.baxis;v._minDtick=0,y._minDtick=0,i.isArray1D(e.z)&amp;&amp;a(e,v,y,&quot;a&quot;,&quot;b&quot;,[&quot;z&quot;]);r=e._a=e._a||e.a,h=e._b=e._b||e.b,r=r?v.makeCalcdata(e,&quot;_a&quot;):[],h=h?y.makeCalcdata(e,&quot;_b&quot;):[],u=e.a0||0,f=e.da||1,p=e.b0||0,d=e.db||1,m=e._z=o(e._z||e.z,e.transpose),e._emptypoints=l(m),s(m,e._emptypoints);var x=i.maxRowLength(m),b=&quot;scaled&quot;===e.xtype?&quot;&quot;:r,_=c(e,b,u,f,x,v),w=&quot;scaled&quot;===e.ytype?&quot;&quot;:h,T=c(e,w,p,d,m.length,y),k={a:_,b:T,z:m};&quot;levels&quot;===e.contours.type&amp;&amp;&quot;none&quot;!==e.contours.coloring&amp;&amp;n(t,e,{vals:m,containerStr:&quot;&quot;,cLetter:&quot;z&quot;});return[k]}(t,e);return h(e,e._z),m}}},{&quot;../../components/colorscale/calc&quot;:374,&quot;../../lib&quot;:503,&quot;../carpet/lookup_carpetid&quot;:708,&quot;../contour/set_contours&quot;:754,&quot;../heatmap/clean_2d_array&quot;:794,&quot;../heatmap/convert_column_xyz&quot;:796,&quot;../heatmap/find_empties&quot;:798,&quot;../heatmap/interp2d&quot;:801,&quot;../heatmap/make_bound_array&quot;:803,&quot;./defaults&quot;:759}],759:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../contour/constraint_defaults&quot;),s=t(&quot;../contour/contours_defaults&quot;),l=t(&quot;../contour/style_defaults&quot;);e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,a,r,i)}if(u(&quot;carpet&quot;),t.a&amp;&amp;t.b){if(!i(t,e,u,c,&quot;a&quot;,&quot;b&quot;))return void(e.visible=!1);u(&quot;text&quot;),&quot;constraint&quot;===u(&quot;contours.type&quot;)?o(t,e,u,c,r,{hasHover:!1}):(s(t,e,u,(function(r){return n.coerce2(t,e,a,r)})),l(t,e,u,c,{hasHover:!1}))}else e._defaultColor=r,e._length=null}},{&quot;../../lib&quot;:503,&quot;../contour/constraint_defaults&quot;:740,&quot;../contour/contours_defaults&quot;:742,&quot;../contour/style_defaults&quot;:756,&quot;../heatmap/xyz_defaults&quot;:807,&quot;./attributes&quot;:757}],760:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../contour/colorbar&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../contour/style&quot;),moduleType:&quot;trace&quot;,name:&quot;contourcarpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;carpet&quot;,&quot;contour&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;hasLines&quot;,&quot;carpetDependent&quot;,&quot;noHover&quot;,&quot;noSortingByValue&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:568,&quot;../contour/colorbar&quot;:738,&quot;../contour/style&quot;:755,&quot;./attributes&quot;:757,&quot;./calc&quot;:758,&quot;./defaults&quot;:759,&quot;./plot&quot;:761}],761:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../carpet/map_1d_array&quot;),a=t(&quot;../carpet/makepath&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../contour/make_crossings&quot;),c=t(&quot;../contour/find_all_paths&quot;),u=t(&quot;../contour/plot&quot;),f=t(&quot;../contour/constants&quot;),h=t(&quot;../contour/convert_to_constraints&quot;),p=t(&quot;../contour/empty_pathinfo&quot;),d=t(&quot;../contour/close_boundaries&quot;),m=t(&quot;../carpet/lookup_carpetid&quot;),g=t(&quot;../carpet/axis_aligned_line&quot;);function v(t,e,r){var n=t.getPointAtLength(e),i=t.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function y(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}function x(t,e){var r=Math.abs(t[0]*e[0]+t[1]*e[1]);return Math.sqrt(1-r*r)/r}e.exports=function(t,e,r,b){var _=e.xaxis,w=e.yaxis;s.makeTraceGroups(b,r,&quot;contour&quot;).each((function(r){var b=n.select(this),T=r[0],k=T.trace,A=k._carpetTrace=m(t,k),M=t.calcdata[A.index][0];if(A.visible&amp;&amp;&quot;legendonly&quot;!==A.visible){var S=T.a,E=T.b,L=k.contours,C=p(L,e,T),P=&quot;constraint&quot;===L.type,I=L._operation,O=P?&quot;=&quot;===I?&quot;lines&quot;:&quot;fill&quot;:L.coloring,z=[[S[0],E[E.length-1]],[S[S.length-1],E[E.length-1]],[S[S.length-1],E[0]],[S[0],E[0]]];l(C);var D=1e-8*(S[S.length-1]-S[0]),R=1e-8*(E[E.length-1]-E[0]);c(C,D,R);var F,B,N,j,U=C;&quot;constraint&quot;===L.type&amp;&amp;(U=h(C,I)),function(t,e){var r,n,i,a,o,s,l,c,u;for(r=0;r&lt;t.length;r++){for(a=t[r],o=a.pedgepaths=[],s=a.ppaths=[],n=0;n&lt;a.edgepaths.length;n++){for(u=a.edgepaths[n],l=[],i=0;i&lt;u.length;i++)l[i]=e(u[i]);o.push(l)}for(n=0;n&lt;a.paths.length;n++){for(u=a.paths[n],c=[],i=0;i&lt;u.length;i++)c[i]=e(u[i]);s.push(c)}}}(C,q);var V=[];for(j=M.clipsegments.length-1;j&gt;=0;j--)F=M.clipsegments[j],B=i([],F.x,_.c2p),N=i([],F.y,w.c2p),B.reverse(),N.reverse(),V.push(a(B,N,F.bicubic));var H=&quot;M&quot;+V.join(&quot;L&quot;)+&quot;Z&quot;;!function(t,e,r,n,o,l){var c,u,f,h,p=s.ensureSingle(t,&quot;g&quot;,&quot;contourbg&quot;).selectAll(&quot;path&quot;).data(&quot;fill&quot;!==l||o?[]:[0]);p.enter().append(&quot;path&quot;),p.exit().remove();var d=[];for(h=0;h&lt;e.length;h++)c=e[h],u=i([],c.x,r.c2p),f=i([],c.y,n.c2p),d.push(a(u,f,c.bicubic));p.attr(&quot;d&quot;,&quot;M&quot;+d.join(&quot;L&quot;)+&quot;Z&quot;).style(&quot;stroke&quot;,&quot;none&quot;)}(b,M.clipsegments,_,w,P,O),function(t,e,r,i,a,l,c,u,f,h,p){var m=&quot;fill&quot;===h;m&amp;&amp;d(a,t.contours);var v=s.ensureSingle(e,&quot;g&quot;,&quot;contourfill&quot;).selectAll(&quot;path&quot;).data(m?a:[]);v.enter().append(&quot;path&quot;),v.exit().remove(),v.each((function(t){var e=(t.prefixBoundary?p:&quot;&quot;)+function(t,e,r,n,i,a,l,c){var u,f,h,p,d,m,v,y=&quot;&quot;,x=e.edgepaths.map((function(t,e){return e})),b=!0,_=1e-4*Math.abs(r[0][0]-r[2][0]),w=1e-4*Math.abs(r[0][1]-r[2][1]);function T(t){return Math.abs(t[1]-r[0][1])&lt;w}function k(t){return Math.abs(t[1]-r[2][1])&lt;w}function A(t){return Math.abs(t[0]-r[0][0])&lt;_}function M(t){return Math.abs(t[0]-r[2][0])&lt;_}function S(t,e){var r,n,o,s,u=&quot;&quot;;for(T(t)&amp;&amp;!M(t)||k(t)&amp;&amp;!A(t)?(s=i.aaxis,o=g(i,a,[t[0],e[0]],.5*(t[1]+e[1]))):(s=i.baxis,o=g(i,a,.5*(t[0]+e[0]),[t[1],e[1]])),r=1;r&lt;o.length;r++)for(u+=s.smoothing?&quot;C&quot;:&quot;L&quot;,n=0;n&lt;o[r].length;n++){var f=o[r][n];u+=[l.c2p(f[0]),c.c2p(f[1])]+&quot; &quot;}return u}u=0,f=null;for(;x.length;){var E=e.edgepaths[u][0];for(f&amp;&amp;(y+=S(f,E)),v=o.smoothopen(e.edgepaths[u].map(n),e.smoothing),y+=b?v:v.replace(/^M/,&quot;L&quot;),x.splice(x.indexOf(u),1),f=e.edgepaths[u][e.edgepaths[u].length-1],d=-1,p=0;p&lt;4;p++){if(!f){s.log(&quot;Missing end?&quot;,u,e);break}for(T(f)&amp;&amp;!M(f)?h=r[1]:A(f)?h=r[0]:k(f)?h=r[3]:M(f)&amp;&amp;(h=r[2]),m=0;m&lt;e.edgepaths.length;m++){var L=e.edgepaths[m][0];Math.abs(f[0]-h[0])&lt;_?Math.abs(f[0]-L[0])&lt;_&amp;&amp;(L[1]-f[1])*(h[1]-L[1])&gt;=0&amp;&amp;(h=L,d=m):Math.abs(f[1]-h[1])&lt;w?Math.abs(f[1]-L[1])&lt;w&amp;&amp;(L[0]-f[0])*(h[0]-L[0])&gt;=0&amp;&amp;(h=L,d=m):s.log(&quot;endpt to newendpt is not vert. or horz.&quot;,f,h,L)}if(d&gt;=0)break;y+=S(f,h),f=h}if(d===e.edgepaths.length){s.log(&quot;unclosed perimeter path&quot;);break}u=d,(b=-1===x.indexOf(u))&amp;&amp;(u=x[0],y+=S(f,h)+&quot;Z&quot;,f=null)}for(u=0;u&lt;e.paths.length;u++)y+=o.smoothclosed(e.paths[u].map(n),e.smoothing);return y}(0,t,l,c,u,f,r,i);e?n.select(this).attr(&quot;d&quot;,e).style(&quot;stroke&quot;,&quot;none&quot;):n.select(this).remove()}))}(k,b,_,w,U,z,q,A,M,O,H),function(t,e,r,i,a,l,c){var h=s.ensureSingle(t,&quot;g&quot;,&quot;contourlines&quot;),p=!1!==a.showlines,d=a.showlabels,m=p&amp;&amp;d,g=u.createLines(h,p||d,e),b=u.createLineClip(h,m,r,i.trace.uid),_=t.selectAll(&quot;g.contourlabels&quot;).data(d?[0]:[]);if(_.exit().remove(),_.enter().append(&quot;g&quot;).classed(&quot;contourlabels&quot;,!0),d){var w=l.xaxis,T=l.yaxis,k=w._length,A=T._length,M=[[[0,0],[k,0],[k,A],[0,A]]],S=[];s.clearLocationCache();var E=u.labelFormatter(r,i),L=o.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).call(o.font,a.labelfont),C={left:0,right:k,center:k/2,top:0,bottom:A,middle:A/2},P=Math.sqrt(k*k+A*A),I=f.LABELDISTANCE*P/Math.max(1,e.length/f.LABELINCREASE);g.each((function(t){var e=u.calcTextOpts(t.level,E,L,r);n.select(this).selectAll(&quot;path&quot;).each((function(r){var n=s.getVisibleSegment(this,C,e.height/2);if(n&amp;&amp;(function(t,e,r,n,i,a){for(var o,s=0;s&lt;r.pedgepaths.length;s++)e===r.pedgepaths[s]&amp;&amp;(o=r.edgepaths[s]);if(!o)return;var l=i.a[0],c=i.a[i.a.length-1],u=i.b[0],f=i.b[i.b.length-1];function h(t,e){var r,n=0;return(Math.abs(t[0]-l)&lt;.1||Math.abs(t[0]-c)&lt;.1)&amp;&amp;(r=y(i.dxydb_rough(t[0],t[1],.1)),n=Math.max(n,a*x(e,r)/2)),(Math.abs(t[1]-u)&lt;.1||Math.abs(t[1]-f)&lt;.1)&amp;&amp;(r=y(i.dxyda_rough(t[0],t[1],.1)),n=Math.max(n,a*x(e,r)/2)),n}var p=v(t,0,1),d=v(t,n.total,n.total-1),m=h(o[0],p),g=n.total-h(o[o.length-1],d);n.min&lt;m&amp;&amp;(n.min=m);n.max&gt;g&amp;&amp;(n.max=g);n.len=n.max-n.min}(this,r,t,n,c,e.height),!(n.len&lt;(e.width+e.height)*f.LABELMIN)))for(var i=Math.min(Math.ceil(n.len/I),f.LABELMAX),a=0;a&lt;i;a++){var o=u.findBestTextLocation(this,n,e,S,C);if(!o)break;u.addLabelData(o,e,S,M)}}))})),L.remove(),u.drawLabels(_,S,r,b,m?M:null)}d&amp;&amp;!p&amp;&amp;g.remove()}(b,C,t,T,L,e,A),o.setClipUrl(b,A._clipPathId,t)}function q(t){var e=A.ab2xy(t[0],t[1],!0);return[_.c2p(e[0]),w.c2p(e[1])]}}))}},{&quot;../../components/drawing&quot;:388,&quot;../../lib&quot;:503,&quot;../carpet/axis_aligned_line&quot;:692,&quot;../carpet/lookup_carpetid&quot;:708,&quot;../carpet/makepath&quot;:709,&quot;../carpet/map_1d_array&quot;:710,&quot;../contour/close_boundaries&quot;:737,&quot;../contour/constants&quot;:739,&quot;../contour/convert_to_constraints&quot;:743,&quot;../contour/empty_pathinfo&quot;:745,&quot;../contour/find_all_paths&quot;:747,&quot;../contour/make_crossings&quot;:752,&quot;../contour/plot&quot;:753,&quot;@plotly/d3&quot;:58}],762:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../scattermapbox/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({lon:o.lon,lat:o.lat,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},radius:{valType:&quot;number&quot;,editType:&quot;plot&quot;,arrayOk:!0,min:1,dflt:30},below:{valType:&quot;string&quot;,editType:&quot;plot&quot;},text:o.text,hovertext:o.hovertext,hoverinfo:s({},a.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:i(),showlegend:s({},a.showlegend,{dflt:!1})},n(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plots/attributes&quot;:550,&quot;../../plots/template_attributes&quot;:633,&quot;../scattermapbox/attributes&quot;:991}],763:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray,a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../components/colorscale/calc&quot;),s=t(&quot;../../lib&quot;)._;e.exports=function(t,e){for(var r=e._length,l=new Array(r),c=e.z,u=i(c)&amp;&amp;c.length,f=0;f&lt;r;f++){var h=l[f]={},p=e.lon[f],d=e.lat[f];if(h.lonlat=n(p)&amp;&amp;n(d)?[+p,+d]:[a,a],u){var m=c[f];h.z=n(m)?m:a}}return o(t,e,{vals:u?c:[0,1],containerStr:&quot;&quot;,cLetter:&quot;z&quot;}),r&amp;&amp;(l[0].t={labels:{lat:s(t,&quot;lat:&quot;)+&quot; &quot;,lon:s(t,&quot;lon:&quot;)+&quot; &quot;}}),l}},{&quot;../../components/colorscale/calc&quot;:374,&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;fast-isnumeric&quot;:190}],764:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../components/colorscale&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=t(&quot;../../lib/geojson_utils&quot;).makeBlank;e.exports=function(t){var e=t[0].trace,r=!0===e.visible&amp;&amp;0!==e._length,c=e._opts={heatmap:{layout:{visibility:&quot;none&quot;},paint:{}},geojson:l()};if(!r)return c;var u,f=[],h=e.z,p=e.radius,d=i.isArrayOrTypedArray(h)&amp;&amp;h.length,m=i.isArrayOrTypedArray(p);for(u=0;u&lt;t.length;u++){var g=t[u],v=g.lonlat;if(v[0]!==s){var y={};if(d){var x=g.z;y.z=x!==s?x:0}m&amp;&amp;(y.r=n(p[u])&amp;&amp;p[u]&gt;0?+p[u]:0),f.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:v},properties:y})}}var b=o.extractOpts(e),_=b.reversescale?o.flipScale(b.colorscale):b.colorscale,w=_[0][1],T=[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;heatmap-density&quot;],0,a.opacity(w)&lt;1?w:a.addOpacity(w,0)];for(u=1;u&lt;_.length;u++)T.push(_[u][0],_[u][1]);var k=[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;get&quot;,&quot;z&quot;],b.min,0,b.max,1];return i.extendFlat(c.heatmap.paint,{&quot;heatmap-weight&quot;:d?k:1/(b.max-b.min),&quot;heatmap-color&quot;:T,&quot;heatmap-radius&quot;:m?{type:&quot;identity&quot;,property:&quot;r&quot;}:e.radius,&quot;heatmap-opacity&quot;:e.opacity}),c.geojson={type:&quot;FeatureCollection&quot;,features:f},c.heatmap.layout.visibility=&quot;visible&quot;,c}},{&quot;../../components/color&quot;:366,&quot;../../components/colorscale&quot;:378,&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../../lib/geojson_utils&quot;:497,&quot;fast-isnumeric&quot;:190}],765:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;lon&quot;)||[],c=s(&quot;lat&quot;)||[],u=Math.min(l.length,c.length);u?(e._length=u,s(&quot;z&quot;),s(&quot;radius&quot;),s(&quot;below&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:376,&quot;../../lib&quot;:503,&quot;./attributes&quot;:762}],766:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t.z=e.z,t}},{}],767:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../scattermapbox/hover&quot;).hoverPoints,a=t(&quot;../scattermapbox/hover&quot;).getExtraText;e.exports=function(t,e,r){var o=i(t,e,r);if(o){var s=o[0],l=s.cd,c=l[0].trace,u=l[s.index];if(delete s.color,&quot;z&quot;in u){var f=s.subplot.mockAxis;s.z=u.z,s.zLabel=n.tickText(f,f.c2l(u.z),&quot;hover&quot;).text}return s.extraText=a(c,u,l[0].t.labels),[s]}}},{&quot;../../plots/cartesian/axes&quot;:554,&quot;../scattermapbox/hover&quot;:996}],768:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),formatLabels:t(&quot;../scattermapbox/format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),getBelow:function(t,e){for(var r=e.getMapLayers(),n=0;n&lt;r.length;n++){var i=r[n],a=i.id;if(&quot;symbol&quot;===i.type&amp;&amp;&quot;string&quot;==typeof a&amp;&amp;-1===a.indexOf(&quot;plotly-&quot;))return a}},moduleType:&quot;trace&quot;,name:&quot;densitymapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;showLegend&quot;],meta:{hr_name:&quot;density_mapbox&quot;}}},{&quot;../../plots/mapbox&quot;:613,&quot;../heatmap/colorbar&quot;:795,&quot;../scattermapbox/format_labels&quot;:995,&quot;./attributes&quot;:762,&quot;./calc&quot;:763,&quot;./defaults&quot;:765,&quot;./event_data&quot;:766,&quot;./hover&quot;:767,&quot;./plot&quot;:769}],769:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;),i=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix;function a(t,e){this.type=&quot;densitymapbox&quot;,this.subplot=t,this.uid=e,this.sourceId=&quot;source-&quot;+e,this.layerList=[[&quot;heatmap&quot;,i+e+&quot;-heatmap&quot;]],this.below=null}var o=a.prototype;o.update=function(t){var e=this.subplot,r=this.layerList,i=n(t),a=e.belowLookup[&quot;trace-&quot;+this.uid];e.map.getSource(this.sourceId).setData(i.geojson),a!==this.below&amp;&amp;(this._removeLayers(),this._addLayers(i,a),this.below=a);for(var o=0;o&lt;r.length;o++){var s=r[o],l=s[0],c=s[1],u=i[l];e.setOptions(c,&quot;setLayoutProperty&quot;,u.layout),&quot;visible&quot;===u.layout.visibility&amp;&amp;e.setOptions(c,&quot;setPaintProperty&quot;,u.paint)}},o._addLayers=function(t,e){for(var r=this.subplot,n=this.layerList,i=this.sourceId,a=0;a&lt;n.length;a++){var o=n[a],s=o[0],l=t[s];r.addLayer({type:s,id:o[1],source:i,layout:l.layout,paint:l.paint},e)}},o._removeLayers=function(){for(var t=this.subplot.map,e=this.layerList,r=e.length-1;r&gt;=0;r--)t.removeLayer(e[r][1])},o.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new a(t,r.uid),o=i.sourceId,s=n(e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid];return t.map.addSource(o,{type:&quot;geojson&quot;,data:s.geojson}),i._addLayers(s,l),i}},{&quot;../../plots/mapbox/constants&quot;:611,&quot;./convert&quot;:764}],770:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;);var i=e.marker;if(i){n.mergeArray(i.opacity,t,&quot;mo&quot;),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;a&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;))}}},{&quot;../../lib&quot;:503}],771:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;../bar/attributes&quot;),a=t(&quot;../scatter/attributes&quot;).line,o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,l=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,c=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,u=t(&quot;./constants&quot;),f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../components/color&quot;);e.exports={x:i.x,x0:i.x0,dx:i.dx,y:i.y,y0:i.y0,dy:i.dy,xperiod:i.xperiod,yperiod:i.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:i.xperiodalignment,yperiodalignment:i.yperiodalignment,xhoverformat:s(&quot;x&quot;),yhoverformat:s(&quot;y&quot;),hovertext:i.hovertext,hovertemplate:l({},{keys:u.eventDataKeys}),hoverinfo:f({},o.hoverinfo,{flags:[&quot;name&quot;,&quot;x&quot;,&quot;y&quot;,&quot;text&quot;,&quot;percent initial&quot;,&quot;percent previous&quot;,&quot;percent total&quot;]}),textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;percent initial&quot;,&quot;percent previous&quot;,&quot;percent total&quot;,&quot;value&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;,arrayOk:!1},texttemplate:c({editType:&quot;plot&quot;},{keys:u.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),text:i.text,textposition:i.textposition,insidetextanchor:f({},i.insidetextanchor,{dflt:&quot;middle&quot;}),textangle:f({},i.textangle,{dflt:0}),textfont:i.textfont,insidetextfont:i.insidetextfont,outsidetextfont:i.outsidetextfont,constraintext:i.constraintext,cliponaxis:i.cliponaxis,orientation:f({},i.orientation,{}),offset:f({},i.offset,{arrayOk:!1}),width:f({},i.width,{arrayOk:!1}),marker:(n=f({},i.marker),delete n.pattern,n),connector:{fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},line:{color:f({},a.color,{dflt:h.defaultLine}),width:f({},a.width,{dflt:0,editType:&quot;plot&quot;}),dash:a.dash,editType:&quot;style&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup}},{&quot;../../components/color&quot;:366,&quot;../../lib/extend&quot;:493,&quot;../../plots/attributes&quot;:550,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/template_attributes&quot;:633,&quot;../bar/attributes&quot;:648,&quot;../scatter/attributes&quot;:926,&quot;./constants&quot;:773}],772:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;./arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t){return t===s?0:t}e.exports=function(t,e){var r,c,u,f,h,p,d,m,g=n.getFromId(t,e.xaxis||&quot;x&quot;),v=n.getFromId(t,e.yaxis||&quot;y&quot;);&quot;h&quot;===e.orientation?(r=g.makeCalcdata(e,&quot;x&quot;),u=v.makeCalcdata(e,&quot;y&quot;),f=i(e,v,&quot;y&quot;,u),h=!!e.yperiodalignment,p=&quot;y&quot;):(r=v.makeCalcdata(e,&quot;y&quot;),u=g.makeCalcdata(e,&quot;x&quot;),f=i(e,g,&quot;x&quot;,u),h=!!e.xperiodalignment,p=&quot;x&quot;),c=f.vals;var y,x=Math.min(c.length,r.length),b=new Array(x);for(e._base=[],d=0;d&lt;x;d++){r[d]&lt;0&amp;&amp;(r[d]=s);var _=!1;r[d]!==s&amp;&amp;d+1&lt;x&amp;&amp;r[d+1]!==s&amp;&amp;(_=!0),m=b[d]={p:c[d],s:r[d],cNext:_},e._base[d]=-.5*m.s,h&amp;&amp;(b[d].orig_p=u[d],b[d][p+&quot;End&quot;]=f.ends[d],b[d][p+&quot;Start&quot;]=f.starts[d]),e.ids&amp;&amp;(m.id=String(e.ids[d])),0===d&amp;&amp;(b[0].vTotal=0),b[0].vTotal+=l(m.s),m.begR=l(m.s)/l(b[0].s)}for(d=0;d&lt;x;d++)(m=b[d]).s!==s&amp;&amp;(m.sumR=m.s/b[0].vTotal,m.difR=void 0!==y?m.s/y:1,y=m.s);return a(b,e),o(b,e),b}},{&quot;../../constants/numerical&quot;:479,&quot;../../plots/cartesian/align_period&quot;:551,&quot;../../plots/cartesian/axes&quot;:554,&quot;../scatter/calc_selection&quot;:928,&quot;./arrays_to_calcdata&quot;:770}],773:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;percentInitial&quot;,&quot;percentPrevious&quot;,&quot;percentTotal&quot;]}},{}],774:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions;e.exports=function(t,e){var r,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,c=e.yaxis,u=[],f=[],h=[];for(i=0;i&lt;o.length;i++){var p=o[i],d=&quot;h&quot;===p.orientation;!0===p.visible&amp;&amp;p.xaxis===l._id&amp;&amp;p.yaxis===c._id&amp;&amp;&quot;funnel&quot;===p.type&amp;&amp;(r=s[i],d?h.push(r):f.push(r),u.push(r))}var m={mode:a.funnelmode,norm:a.funnelnorm,gap:a.funnelgap,groupgap:a.funnelgroupgap};for(n(t,l,c,f,m),n(t,c,l,h,m),i=0;i&lt;u.length;i++){r=u[i];for(var g=0;g&lt;r.length;g++)g+1&lt;r.length&amp;&amp;(r[g].nextP0=r[g+1].p0,r[g].nextS0=r[g+1].s0,r[g].nextP1=r[g+1].p1,r[g].nextS1=r[g+1].s1)}}},{&quot;../bar/cross_trace_calc&quot;:651}],775:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,a=t(&quot;../bar/defaults&quot;).handleText,o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../../components/color&quot;);e.exports={supplyDefaults:function(t,e,r,i){function u(r,i){return n.coerce(t,e,l,r,i)}if(o(t,e,i,u)){s(t,e,i,u),u(&quot;xhoverformat&quot;),u(&quot;yhoverformat&quot;),u(&quot;orientation&quot;,e.y&amp;&amp;!e.x?&quot;v&quot;:&quot;h&quot;),u(&quot;offset&quot;),u(&quot;width&quot;);var f=u(&quot;text&quot;);u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;);var h=u(&quot;textposition&quot;);a(t,e,i,u,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),&quot;none&quot;===e.textposition||e.texttemplate||u(&quot;textinfo&quot;,Array.isArray(f)?&quot;text+value&quot;:&quot;value&quot;);var p=u(&quot;marker.color&quot;,r);if(u(&quot;marker.line.color&quot;,c.defaultLine),u(&quot;marker.line.width&quot;),u(&quot;connector.visible&quot;))u(&quot;connector.fillcolor&quot;,function(t){var e=n.isArrayOrTypedArray(t)?&quot;#000&quot;:t;return c.addOpacity(e,.5*c.opacity(e))}(p)),u(&quot;connector.line.width&quot;)&amp;&amp;(u(&quot;connector.line.color&quot;),u(&quot;connector.line.dash&quot;))}else e.visible=!1},crossTraceDefaults:function(t,e){var r,a;function o(t){return n.coerce(a._input,a,l,t)}if(&quot;group&quot;===e.funnelmode)for(var s=0;s&lt;t.length;s++)r=(a=t[s])._input,i(r,a,e,o)}}},{&quot;../../components/color&quot;:366,&quot;../../lib&quot;:503,&quot;../bar/defaults&quot;:652,&quot;../scatter/period_defaults&quot;:946,&quot;../scatter/xy_defaults&quot;:953,&quot;./attributes&quot;:771}],776:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;percentInitial&quot;in e&amp;&amp;(t.percentInitial=e.percentInitial),&quot;percentPrevious&quot;in e&amp;&amp;(t.percentPrevious=e.percentPrevious),&quot;percentTotal&quot;in e&amp;&amp;(t.percentTotal=e.percentTotal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],777:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;).opacity,i=t(&quot;../bar/hover&quot;).hoverOnBars,a=t(&quot;../../lib&quot;).formatPercent;e.exports=function(t,e,r,o,s){var l=i(t,e,r,o,s);if(l){var c=l.cd,u=c[0].trace,f=&quot;h&quot;===u.orientation,h=c[l.index];l[(f?&quot;x&quot;:&quot;y&quot;)+&quot;LabelVal&quot;]=h.s,l.percentInitial=h.begR,l.percentInitialLabel=a(h.begR,1),l.percentPrevious=h.difR,l.percentPreviousLabel=a(h.difR,1),l.percentTotal=h.sumR,l.percentTotalLabel=a(h.sumR,1);var p=h.hi||u.hoverinfo,d=[];if(p&amp;&amp;&quot;none&quot;!==p&amp;&amp;&quot;skip&quot;!==p){var m=&quot;all&quot;===p,g=p.split(&quot;+&quot;),v=function(t){return m||-1!==g.indexOf(t)};v(&quot;percent initial&quot;)&amp;&amp;d.push(l.percentInitialLabel+&quot; of initial&quot;),v(&quot;percent previous&quot;)&amp;&amp;d.push(l.percentPreviousLabel+&quot; of previous&quot;),v(&quot;percent total&quot;)&amp;&amp;d.push(l.percentTotalLabel+&quot; of total&quot;)}return l.extraText=d.join(&quot;&lt;br&gt;&quot;),l.color=function(t,e){var r=t.marker,i=e.mc||r.color,a=e.mlc||r.line.color,o=e.mlw||r.line.width;if(n(i))return i;if(n(a)&amp;&amp;o)return a}(u,h),[l]}}},{&quot;../../components/color&quot;:366,&quot;../../lib&quot;:503,&quot;../bar/hover&quot;:655}],778:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;../bar/select&quot;),moduleType:&quot;trace&quot;,name:&quot;funnel&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;oriented&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:568,&quot;../bar/select&quot;:660,&quot;./attributes&quot;:771,&quot;./calc&quot;:772,&quot;./cross_trace_calc&quot;:774,&quot;./defaults&quot;:775,&quot;./event_data&quot;:776,&quot;./hover&quot;:777,&quot;./layout_attributes&quot;:779,&quot;./layout_defaults&quot;:780,&quot;./plot&quot;:781,&quot;./style&quot;:782}],779:[function(t,e,r){&quot;use strict&quot;;e.exports={funnelmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;stack&quot;,editType:&quot;calc&quot;},funnelgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},funnelgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],780:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s&lt;r.length;s++){var l=r[s];if(l.visible&amp;&amp;&quot;funnel&quot;===l.type){a=!0;break}}a&amp;&amp;(o(&quot;funnelmode&quot;),o(&quot;funnelgap&quot;,.2),o(&quot;funnelgroupgap&quot;))}},{&quot;../../lib&quot;:503,&quot;./layout_attributes&quot;:779}],781:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../constants/numerical&quot;).BADNUM,s=t(&quot;../bar/plot&quot;),l=t(&quot;../bar/uniform_text&quot;).clearMinTextSize;function c(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),i[3]=o.c2p(t.nextS1,!0),a[3]=s.c2p(t.nextP1,!0),n?[i,a]:[a,i]}e.exports=function(t,e,r,u){var f=t._fullLayout;l(&quot;funnel&quot;,f),function(t,e,r,s){var l=e.xaxis,u=e.yaxis;i.makeTraceGroups(s,r,&quot;trace bars&quot;).each((function(r){var s=n.select(this),f=r[0].trace,h=i.ensureSingle(s,&quot;g&quot;,&quot;regions&quot;);if(f.connector&amp;&amp;f.connector.visible){var p=&quot;h&quot;===f.orientation,d=h.selectAll(&quot;g.region&quot;).data(i.identity);d.enter().append(&quot;g&quot;).classed(&quot;region&quot;,!0),d.exit().remove();var m=d.size();d.each((function(r,s){if(s===m-1||r.cNext){var f=c(r,l,u,p),h=f[0],d=f[1],g=&quot;&quot;;h[0]!==o&amp;&amp;d[0]!==o&amp;&amp;h[1]!==o&amp;&amp;d[1]!==o&amp;&amp;h[2]!==o&amp;&amp;d[2]!==o&amp;&amp;h[3]!==o&amp;&amp;d[3]!==o&amp;&amp;(g+=p?&quot;M&quot;+h[0]+&quot;,&quot;+d[1]+&quot;L&quot;+h[2]+&quot;,&quot;+d[2]+&quot;H&quot;+h[3]+&quot;L&quot;+h[1]+&quot;,&quot;+d[1]+&quot;Z&quot;:&quot;M&quot;+h[1]+&quot;,&quot;+d[1]+&quot;L&quot;+h[2]+&quot;,&quot;+d[3]+&quot;V&quot;+d[2]+&quot;L&quot;+h[1]+&quot;,&quot;+d[0]+&quot;Z&quot;),&quot;&quot;===g&amp;&amp;(g=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,g).call(a.setClipUrl,e.layerClipId,t)}}))}else h.remove()}))}(t,e,r,u),function(t,e,r,o){var s=e.xaxis,l=e.yaxis;i.makeTraceGroups(o,r,&quot;trace bars&quot;).each((function(r){var o=n.select(this),u=r[0].trace,f=i.ensureSingle(o,&quot;g&quot;,&quot;lines&quot;);if(u.connector&amp;&amp;u.connector.visible&amp;&amp;u.connector.line.width){var h=&quot;h&quot;===u.orientation,p=f.selectAll(&quot;g.line&quot;).data(i.identity);p.enter().append(&quot;g&quot;).classed(&quot;line&quot;,!0),p.exit().remove();var d=p.size();p.each((function(r,o){if(o===d-1||r.cNext){var u=c(r,s,l,h),f=u[0],p=u[1],m=&quot;&quot;;void 0!==f[3]&amp;&amp;void 0!==p[3]&amp;&amp;(h?(m+=&quot;M&quot;+f[0]+&quot;,&quot;+p[1]+&quot;L&quot;+f[2]+&quot;,&quot;+p[2],m+=&quot;M&quot;+f[1]+&quot;,&quot;+p[1]+&quot;L&quot;+f[3]+&quot;,&quot;+p[2]):(m+=&quot;M&quot;+f[1]+&quot;,&quot;+p[1]+&quot;L&quot;+f[2]+&quot;,&quot;+p[3],m+=&quot;M&quot;+f[1]+&quot;,&quot;+p[0]+&quot;L&quot;+f[2]+&quot;,&quot;+p[2])),&quot;&quot;===m&amp;&amp;(m=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,m).call(a.setClipUrl,e.layerClipId,t)}}))}else f.remove()}))}(t,e,r,u),s.plot(t,e,r,u,{mode:f.funnelmode,norm:f.funnelmode,gap:f.funnelgap,groupgap:f.funnelgroupgap})}},{&quot;../../components/drawing&quot;:388,&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../bar/plot&quot;:659,&quot;../bar/uniform_text&quot;:664,&quot;@plotly/d3&quot;:58}],782:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../constants/interactions&quot;).DESELECTDIM,s=t(&quot;../bar/style&quot;),l=t(&quot;../bar/uniform_text&quot;).resizeText,c=s.styleTextPoints;e.exports={style:function(t,e,r){var s=r||n.select(t).selectAll(&quot;g.funnellayer&quot;).selectAll(&quot;g.trace&quot;);l(t,s,&quot;funnel&quot;),s.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),s.each((function(e){var r=n.select(this),s=e[0].trace;r.selectAll(&quot;.point &gt; path&quot;).each((function(t){if(!t.isBlank){var e=s.marker;n.select(this).call(a.fill,t.mc||e.color).call(a.stroke,t.mlc||e.line.color).call(i.dashLine,e.line.dash,t.mlw||e.line.width).style(&quot;opacity&quot;,s.selectedpoints&amp;&amp;!t.selected?o:1)}})),c(r,s,t),r.selectAll(&quot;.regions&quot;).each((function(){n.select(this).selectAll(&quot;path&quot;).style(&quot;stroke-width&quot;,0).call(a.fill,s.connector.fillcolor)})),r.selectAll(&quot;.lines&quot;).each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll(&quot;path&quot;),t.width,t.color,t.dash)}))}))}}},{&quot;../../components/color&quot;:366,&quot;../../components/drawing&quot;:388,&quot;../../constants/interactions&quot;:478,&quot;../bar/style&quot;:662,&quot;../bar/uniform_text&quot;:664,&quot;@plotly/d3&quot;:58}],783:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/domain&quot;).attributes,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:n.labels,label0:n.label0,dlabel:n.dlabel,values:n.values,marker:{colors:n.marker.colors,line:{color:l({},n.marker.line.color,{dflt:null}),width:l({},n.marker.line.width,{dflt:1}),editType:&quot;calc&quot;},editType:&quot;calc&quot;},text:n.text,hovertext:n.hovertext,scalegroup:l({},n.scalegroup,{}),textinfo:l({},n.textinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;]}),texttemplate:s({editType:&quot;plot&quot;},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;text&quot;,&quot;percent&quot;]}),hoverinfo:l({},i.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;name&quot;]}),hovertemplate:o({},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;text&quot;,&quot;percent&quot;]}),textposition:l({},n.textposition,{values:[&quot;inside&quot;,&quot;none&quot;],dflt:&quot;inside&quot;}),textfont:n.textfont,insidetextfont:n.insidetextfont,title:{text:n.title.text,font:n.title.font,position:l({},n.title.position,{values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;],dflt:&quot;top center&quot;}),editType:&quot;plot&quot;},domain:a({name:&quot;funnelarea&quot;,trace:!0,editType:&quot;calc&quot;}),aspectratio:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},baseratio:{valType:&quot;number&quot;,min:0,max:1,dflt:.333,editType:&quot;plot&quot;}}},{&quot;../../lib/extend&quot;:493,&quot;../../plots/attributes&quot;:550,&quot;../../plots/domain&quot;:584,&quot;../../plots/template_attributes&quot;:633,&quot;../pie/attributes&quot;:900}],784:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;funnelarea&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:619}],785:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/calc&quot;);e.exports={calc:function(t,e){return n.calc(t,e)},crossTraceCalc:function(t){n.crossTraceCalc(t,{type:&quot;funnelarea&quot;})}}},{&quot;../pie/calc&quot;:902}],786:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../bar/defaults&quot;).handleText,s=t(&quot;../pie/defaults&quot;).handleLabelsAndValues;e.exports=function(t,e,r,l){function c(r,a){return n.coerce(t,e,i,r,a)}var u=c(&quot;labels&quot;),f=c(&quot;values&quot;),h=s(u,f),p=h.len;if(e._hasLabels=h.hasLabels,e._hasValues=h.hasValues,!e._hasLabels&amp;&amp;e._hasValues&amp;&amp;(c(&quot;label0&quot;),c(&quot;dlabel&quot;)),p){e._length=p,c(&quot;marker.line.width&quot;)&amp;&amp;c(&quot;marker.line.color&quot;,l.paper_bgcolor),c(&quot;marker.colors&quot;),c(&quot;scalegroup&quot;);var d,m=c(&quot;text&quot;),g=c(&quot;texttemplate&quot;);if(g||(d=c(&quot;textinfo&quot;,Array.isArray(m)?&quot;text+percent&quot;:&quot;percent&quot;)),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),g||d&amp;&amp;&quot;none&quot;!==d){var v=c(&quot;textposition&quot;);o(t,e,l,c,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}a(e,l,c),c(&quot;title.text&quot;)&amp;&amp;(c(&quot;title.position&quot;),n.coerceFont(c,&quot;title.font&quot;,l.font)),c(&quot;aspectratio&quot;),c(&quot;baseratio&quot;)}else e.visible=!1}},{&quot;../../lib&quot;:503,&quot;../../plots/domain&quot;:584,&quot;../bar/defaults&quot;:652,&quot;../pie/defaults&quot;:903,&quot;./attributes&quot;:783}],787:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;funnelarea&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;pie-like&quot;,&quot;funnelarea&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),styleOne:t(&quot;../pie/style_one&quot;),meta:{}}},{&quot;../pie/style_one&quot;:911,&quot;./attributes&quot;:783,&quot;./base_plot&quot;:784,&quot;./calc&quot;:785,&quot;./defaults&quot;:786,&quot;./layout_attributes&quot;:788,&quot;./layout_defaults&quot;:789,&quot;./plot&quot;:790,&quot;./style&quot;:791}],788:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/layout_attributes&quot;).hiddenlabels;e.exports={hiddenlabels:n,funnelareacolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendfunnelareacolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{&quot;../pie/layout_attributes&quot;:907}],789:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;hiddenlabels&quot;),r(&quot;funnelareacolorway&quot;,e.colorway),r(&quot;extendfunnelareacolors&quot;)}},{&quot;../../lib&quot;:503,&quot;./layout_attributes&quot;:788}],790:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../lib&quot;),o=a.strScale,s=a.strTranslate,l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../bar/plot&quot;).toMoveInsideBar,u=t(&quot;../bar/uniform_text&quot;),f=u.recordMinTextSize,h=u.clearMinTextSize,p=t(&quot;../pie/helpers&quot;),d=t(&quot;../pie/plot&quot;),m=d.attachFxHandlers,g=d.determineInsideTextFont,v=d.layoutAreas,y=d.prerenderTitles,x=d.positionTitleOutside,b=d.formatSliceLabel;function _(t,e){return&quot;l&quot;+(e[0]-t[0])+&quot;,&quot;+(e[1]-t[1])}e.exports=function(t,e){var r=t._fullLayout;h(&quot;funnelarea&quot;,r),y(e,t),v(e,r._size),a.makeTraceGroups(r._funnelarealayer,e,&quot;trace&quot;).each((function(e){var u=n.select(this),h=e[0],d=h.trace;!function(t){if(!t.length)return;var e=t[0],r=e.trace,n=r.aspectratio,i=r.baseratio;i&gt;.999&amp;&amp;(i=.999);var a,o=Math.pow(i,2),s=e.vTotal,l=s,c=s*o/(1-o)/s;function u(){var t,e={x:t=Math.sqrt(c),y:-t};return[e.x,e.y]}var f,h,p=[];for(p.push(u()),f=t.length-1;f&gt;-1;f--)if(!(h=t[f]).hidden){var d=h.v/l;c+=d,p.push(u())}var m=1/0,g=-1/0;for(f=0;f&lt;p.length;f++)a=p[f],m=Math.min(m,a[1]),g=Math.max(g,a[1]);for(f=0;f&lt;p.length;f++)p[f][1]-=(g+m)/2;var v=p[p.length-1][0],y=e.r,x=(g-m)/2,b=y/v,_=y/x*n;for(e.r=_*x,f=0;f&lt;p.length;f++)p[f][0]*=b,p[f][1]*=_;var w=[-(a=p[0])[0],a[1]],T=[a[0],a[1]],k=0;for(f=t.length-1;f&gt;-1;f--)if(!(h=t[f]).hidden){var A=p[k+=1][0],M=p[k][1];h.TL=[-A,M],h.TR=[A,M],h.BL=w,h.BR=T,h.pxmid=(S=h.TR,E=h.BR,[.5*(S[0]+E[0]),.5*(S[1]+E[1])]),w=h.TL,T=h.TR}var S,E}(e),u.each((function(){var u=n.select(this).selectAll(&quot;g.slice&quot;).data(e);u.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),u.exit().remove(),u.each((function(o,s){if(o.hidden)n.select(this).selectAll(&quot;path,g&quot;).remove();else{o.pointNumber=o.i,o.curveNumber=d.index;var u=h.cx,v=h.cy,y=n.select(this),x=y.selectAll(&quot;path.surface&quot;).data([o]);x.enter().append(&quot;path&quot;).classed(&quot;surface&quot;,!0).style({&quot;pointer-events&quot;:&quot;all&quot;}),y.call(m,t,e);var w=&quot;M&quot;+(u+o.TR[0])+&quot;,&quot;+(v+o.TR[1])+_(o.TR,o.BR)+_(o.BR,o.BL)+_(o.BL,o.TL)+&quot;Z&quot;;x.attr(&quot;d&quot;,w),b(t,o,h);var T=p.castOption(d.textposition,o.pts),k=y.selectAll(&quot;g.slicetext&quot;).data(o.text&amp;&amp;&quot;none&quot;!==T?[0]:[]);k.enter().append(&quot;g&quot;).classed(&quot;slicetext&quot;,!0),k.exit().remove(),k.each((function(){var h=a.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),p=a.ensureUniformFontSize(t,g(d,o,r.font));h.text(o.text).attr({class:&quot;slicetext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(i.font,p).call(l.convertToTspans,t);var m,y,x,b=i.bBox(h.node()),_=Math.min(o.BL[1],o.BR[1])+v,w=Math.max(o.TL[1],o.TR[1])+v;y=Math.max(o.TL[0],o.BL[0])+u,x=Math.min(o.TR[0],o.BR[0])+u,(m=c(y,x,_,w,b,{isHorizontal:!0,constrained:!0,angle:0,anchor:&quot;middle&quot;})).fontSize=p.size,f(d.type,m,r),e[s].transform=m,h.attr(&quot;transform&quot;,a.getTextTransform(m))}))}}));var v=n.select(this).selectAll(&quot;g.titletext&quot;).data(d.title.text?[0]:[]);v.enter().append(&quot;g&quot;).classed(&quot;titletext&quot;,!0),v.exit().remove(),v.each((function(){var e=a.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),c=d.title.text;d._meta&amp;&amp;(c=a.templateString(c,d._meta)),e.text(c).attr({class:&quot;titletext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(i.font,d.title.font).call(l.convertToTspans,t);var u=x(h,r._size);e.attr(&quot;transform&quot;,s(u.x,u.y)+o(Math.min(1,u.scale))+s(u.tx,u.ty))}))}))}))}},{&quot;../../components/drawing&quot;:388,&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;../bar/plot&quot;:659,&quot;../bar/uniform_text&quot;:664,&quot;../pie/helpers&quot;:905,&quot;../pie/plot&quot;:909,&quot;@plotly/d3&quot;:58}],791:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../pie/style_one&quot;),a=t(&quot;../bar/uniform_text&quot;).resizeText;e.exports=function(t){var e=t._fullLayout._funnelarealayer.selectAll(&quot;.trace&quot;);a(t,e,&quot;funnelarea&quot;),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(i,t,e)}))}))}},{&quot;../bar/uniform_text&quot;:664,&quot;../pie/style_one&quot;:911,&quot;@plotly/d3&quot;:58}],792:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=u({z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},x:u({},n.x,{impliedEdits:{xtype:&quot;array&quot;}}),x0:u({},n.x0,{impliedEdits:{xtype:&quot;scaled&quot;}}),dx:u({},n.dx,{impliedEdits:{xtype:&quot;scaled&quot;}}),y:u({},n.y,{impliedEdits:{ytype:&quot;array&quot;}}),y0:u({},n.y0,{impliedEdits:{ytype:&quot;scaled&quot;}}),dy:u({},n.dy,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiod:u({},n.xperiod,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiod:u({},n.yperiod,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiod0:u({},n.xperiod0,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiod0:u({},n.yperiod0,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiodalignment:u({},n.xperiodalignment,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiodalignment:u({},n.yperiodalignment,{impliedEdits:{ytype:&quot;scaled&quot;}}),text:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},hovertext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},transpose:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},xtype:{valType:&quot;enumerated&quot;,values:[&quot;array&quot;,&quot;scaled&quot;],editType:&quot;calc+clearAxisTypes&quot;},ytype:{valType:&quot;enumerated&quot;,values:[&quot;array&quot;,&quot;scaled&quot;],editType:&quot;calc+clearAxisTypes&quot;},zsmooth:{valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,&quot;best&quot;,!1],dflt:!1,editType:&quot;calc&quot;},hoverongaps:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;none&quot;},connectgaps:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},xgap:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;plot&quot;},ygap:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;plot&quot;},xhoverformat:o(&quot;x&quot;),yhoverformat:o(&quot;y&quot;),zhoverformat:o(&quot;z&quot;,1),hovertemplate:s(),texttemplate:l({arrayOk:!1,editType:&quot;plot&quot;},{keys:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;text&quot;]}),textfont:a({editType:&quot;plot&quot;,autoSize:!0,autoColor:!0,colorEditType:&quot;style&quot;}),showlegend:u({},i.showlegend,{dflt:!1})},{transforms:void 0},c(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plots/attributes&quot;:550,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/font_attributes&quot;:585,&quot;../../plots/template_attributes&quot;:633,&quot;../scatter/attributes&quot;:926}],793:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../histogram2d/calc&quot;),l=t(&quot;../../components/colorscale/calc&quot;),c=t(&quot;./convert_column_xyz&quot;),u=t(&quot;./clean_2d_array&quot;),f=t(&quot;./interp2d&quot;),h=t(&quot;./find_empties&quot;),p=t(&quot;./make_bound_array&quot;),d=t(&quot;../../constants/numerical&quot;).BADNUM;function m(t){for(var e=[],r=t.length,n=0;n&lt;r;n++){var i=t[n];i!==d&amp;&amp;e.push(i)}return e}e.exports=function(t,e){var r,g,v,y,x,b,_,w,T,k,A,M=a.getFromId(t,e.xaxis||&quot;x&quot;),S=a.getFromId(t,e.yaxis||&quot;y&quot;),E=n.traceIs(e,&quot;contour&quot;),L=n.traceIs(e,&quot;histogram&quot;),C=n.traceIs(e,&quot;gl2d&quot;),P=E?&quot;best&quot;:e.zsmooth;if(M._minDtick=0,S._minDtick=0,L)y=(A=s(t,e)).orig_x,r=A.x,g=A.x0,v=A.dx,w=A.orig_y,x=A.y,b=A.y0,_=A.dy,T=A.z;else{var I=e.z;i.isArray1D(I)?(c(e,M,S,&quot;x&quot;,&quot;y&quot;,[&quot;z&quot;]),r=e._x,x=e._y,I=e._z):(y=e.x?M.makeCalcdata(e,&quot;x&quot;):[],w=e.y?S.makeCalcdata(e,&quot;y&quot;):[],r=o(e,M,&quot;x&quot;,y).vals,x=o(e,S,&quot;y&quot;,w).vals,e._x=r,e._y=x),g=e.x0,v=e.dx,b=e.y0,_=e.dy,T=u(I,e,M,S)}function O(t){P=e._input.zsmooth=e.zsmooth=!1,i.warn('cannot use zsmooth: &quot;fast&quot;: '+t)}if((M.rangebreaks||S.rangebreaks)&amp;&amp;(T=function(t,e,r){for(var n=[],i=-1,a=0;a&lt;r.length;a++)if(e[a]!==d){i++,n[i]=[];for(var o=0;o&lt;r[a].length;o++)t[o]!==d&amp;&amp;n[i].push(r[a][o])}return n}(r,x,T),L||(r=m(r),x=m(x),e._x=r,e._y=x)),L||!E&amp;&amp;!e.connectgaps||(e._emptypoints=h(T),f(T,e._emptypoints)),&quot;fast&quot;===P)if(&quot;log&quot;===M.type||&quot;log&quot;===S.type)O(&quot;log axis found&quot;);else if(!L){if(r.length){var z=(r[r.length-1]-r[0])/(r.length-1),D=Math.abs(z/100);for(k=0;k&lt;r.length-1;k++)if(Math.abs(r[k+1]-r[k]-z)&gt;D){O(&quot;x scale is not linear&quot;);break}}if(x.length&amp;&amp;&quot;fast&quot;===P){var R=(x[x.length-1]-x[0])/(x.length-1),F=Math.abs(R/100);for(k=0;k&lt;x.length-1;k++)if(Math.abs(x[k+1]-x[k]-R)&gt;F){O(&quot;y scale is not linear&quot;);break}}}var B=i.maxRowLength(T),N=&quot;scaled&quot;===e.xtype?&quot;&quot;:r,j=p(e,N,g,v,B,M),U=&quot;scaled&quot;===e.ytype?&quot;&quot;:x,V=p(e,U,b,_,T.length,S);C||(e._extremes[M._id]=a.findExtremes(M,j),e._extremes[S._id]=a.findExtremes(S,V));var H={x:j,y:V,z:T,text:e._text||e.text,hovertext:e._hovertext||e.hovertext};if(e.xperiodalignment&amp;&amp;y&amp;&amp;(H.orig_x=y),e.yperiodalignment&amp;&amp;w&amp;&amp;(H.orig_y=w),N&amp;&amp;N.length===j.length-1&amp;&amp;(H.xCenter=N),U&amp;&amp;U.length===V.length-1&amp;&amp;(H.yCenter=U),L&amp;&amp;(H.xRanges=A.xRanges,H.yRanges=A.yRanges,H.pts=A.pts),E||l(t,e,{vals:T,cLetter:&quot;z&quot;}),E&amp;&amp;e.contours&amp;&amp;&quot;heatmap&quot;===e.contours.coloring){var q={type:&quot;contour&quot;===e.type?&quot;heatmap&quot;:&quot;histogram2d&quot;,xcalendar:e.xcalendar,ycalendar:e.ycalendar};H.xfill=p(q,N,g,v,B,M),H.yfill=p(q,U,b,_,T.length,S)}return[H]}},{&quot;../../components/colorscale/calc&quot;:374,&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/align_period&quot;:551,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../registry&quot;:638,&quot;../histogram2d/calc&quot;:826,&quot;./clean_2d_array&quot;:794,&quot;./convert_column_xyz&quot;:796,&quot;./find_empties&quot;:798,&quot;./interp2d&quot;:801,&quot;./make_bound_array&quot;:803}],794:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r,o){var s,l,c,u,f,h;function p(t){if(n(t))return+t}if(e&amp;&amp;e.transpose){for(s=0,f=0;f&lt;t.length;f++)s=Math.max(s,t[f].length);if(0===s)return!1;c=function(t){return t.length},u=function(t,e,r){return(t[r]||[])[e]}}else s=t.length,c=function(t,e){return t[e].length},u=function(t,e,r){return(t[e]||[])[r]};var d=function(t,e,r){return e===a||r===a?a:u(t,e,r)};function m(t){if(e&amp;&amp;&quot;carpet&quot;!==e.type&amp;&amp;&quot;contourcarpet&quot;!==e.type&amp;&amp;t&amp;&amp;&quot;category&quot;===t.type&amp;&amp;e[&quot;_&quot;+t._id.charAt(0)].length){var r=t._id.charAt(0),n={},o=e[&quot;_&quot;+r+&quot;CategoryMap&quot;]||e[r];for(f=0;f&lt;o.length;f++)n[o[f]]=f;return function(e){var r=n[t._categories[e]];return r+1?r:a}}return i.identity}var g=m(r),v=m(o);o&amp;&amp;&quot;category&quot;===o.type&amp;&amp;(s=o._categories.length);var y=new Array(s);for(f=0;f&lt;s;f++)for(l=r&amp;&amp;&quot;category&quot;===r.type?r._categories.length:c(t,f),y[f]=new Array(l),h=0;h&lt;l;h++)y[f][h]=p(d(t,v(f),g(h)));return y}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;fast-isnumeric&quot;:190}],795:[function(t,e,r){&quot;use strict&quot;;e.exports={min:&quot;zmin&quot;,max:&quot;zmax&quot;}},{}],796:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../plots/cartesian/align_period&quot;);e.exports=function(t,e,r,o,s,l){var c=t._length,u=e.makeCalcdata(t,o),f=r.makeCalcdata(t,s);u=a(t,e,o,u).vals,f=a(t,r,s,f).vals;var h,p,d,m,g=t.text,v=void 0!==g&amp;&amp;n.isArray1D(g),y=t.hovertext,x=void 0!==y&amp;&amp;n.isArray1D(y),b=n.distinctVals(u),_=b.vals,w=n.distinctVals(f),T=w.vals,k=[],A=T.length,M=_.length;for(h=0;h&lt;l.length;h++)k[h]=n.init2dArray(A,M);v&amp;&amp;(d=n.init2dArray(A,M)),x&amp;&amp;(m=n.init2dArray(A,M));var S=n.init2dArray(A,M);for(h=0;h&lt;c;h++)if(u[h]!==i&amp;&amp;f[h]!==i){var E=n.findBin(u[h]+b.minDiff/2,_),L=n.findBin(f[h]+w.minDiff/2,T);for(p=0;p&lt;l.length;p++){var C=t[l[p]];k[p][L][E]=C[h],S[L][E]=h}v&amp;&amp;(d[L][E]=g[h]),x&amp;&amp;(m[L][E]=y[h])}for(t[&quot;_&quot;+o]=_,t[&quot;_&quot;+s]=T,p=0;p&lt;l.length;p++)t[&quot;_&quot;+l[p]]=k[p];v&amp;&amp;(t._text=d),x&amp;&amp;(t._hovertext=m),e&amp;&amp;&quot;category&quot;===e.type&amp;&amp;(t[&quot;_&quot;+o+&quot;CategoryMap&quot;]=_.map((function(t){return e._categories[t]}))),r&amp;&amp;&quot;category&quot;===r.type&amp;&amp;(t[&quot;_&quot;+s+&quot;CategoryMap&quot;]=T.map((function(t){return r._categories[t]}))),t._after2before=S}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/align_period&quot;:551}],797:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./xyz_defaults&quot;),a=t(&quot;./label_defaults&quot;),o=t(&quot;../scatter/period_defaults&quot;),s=t(&quot;./style_defaults&quot;),l=t(&quot;../../components/colorscale/defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}i(t,e,f,u)?(o(t,e,u,f),f(&quot;xhoverformat&quot;),f(&quot;yhoverformat&quot;),f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),a(f,u),s(t,e,f,u),f(&quot;hoverongaps&quot;),f(&quot;connectgaps&quot;,n.isArray1D(e.z)&amp;&amp;!1!==e.zsmooth),l(t,e,u,f,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:376,&quot;../../lib&quot;:503,&quot;../scatter/period_defaults&quot;:946,&quot;./attributes&quot;:792,&quot;./label_defaults&quot;:802,&quot;./style_defaults&quot;:806,&quot;./xyz_defaults&quot;:807}],798:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).maxRowLength;e.exports=function(t){var e,r,i,a,o,s,l,c,u=[],f={},h=[],p=t[0],d=[],m=[0,0,0],g=n(t);for(r=0;r&lt;t.length;r++)for(e=d,d=p,p=t[r+1]||[],i=0;i&lt;g;i++)void 0===d[i]&amp;&amp;((s=(void 0!==d[i-1]?1:0)+(void 0!==d[i+1]?1:0)+(void 0!==e[i]?1:0)+(void 0!==p[i]?1:0))?(0===r&amp;&amp;s++,0===i&amp;&amp;s++,r===t.length-1&amp;&amp;s++,i===d.length-1&amp;&amp;s++,s&lt;4&amp;&amp;(f[[r,i]]=[r,i,s]),u.push([r,i,s])):h.push([r,i]));for(;h.length;){for(l={},c=!1,o=h.length-1;o&gt;=0;o--)(s=((f[[(r=(a=h[o])[0])-1,i=a[1]]]||m)[2]+(f[[r+1,i]]||m)[2]+(f[[r,i-1]]||m)[2]+(f[[r,i+1]]||m)[2])/20)&amp;&amp;(l[a]=[r,i,s],h.splice(o,1),c=!0);if(!c)throw&quot;findEmpties iterated with no new neighbors&quot;;for(a in l)f[a]=l[a],u.push(l[a])}return u.sort((function(t,e){return e[2]-t[2]}))}},{&quot;../../lib&quot;:503}],799:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts;e.exports=function(t,e,r,s,l){l||(l={});var c,u,f,h,p=l.isContour,d=t.cd[0],m=d.trace,g=t.xa,v=t.ya,y=d.x,x=d.y,b=d.z,_=d.xCenter,w=d.yCenter,T=d.zmask,k=m.zhoverformat,A=y,M=x;if(!1!==t.index){try{f=Math.round(t.index[1]),h=Math.round(t.index[0])}catch(e){return void i.error(&quot;Error hovering on heatmap, pointNumber must be [row,col], found:&quot;,t.index)}if(f&lt;0||f&gt;=b[0].length||h&lt;0||h&gt;b.length)return}else{if(n.inbox(e-y[0],e-y[y.length-1],0)&gt;0||n.inbox(r-x[0],r-x[x.length-1],0)&gt;0)return;if(p){var S;for(A=[2*y[0]-y[1]],S=1;S&lt;y.length;S++)A.push((y[S]+y[S-1])/2);for(A.push([2*y[y.length-1]-y[y.length-2]]),M=[2*x[0]-x[1]],S=1;S&lt;x.length;S++)M.push((x[S]+x[S-1])/2);M.push([2*x[x.length-1]-x[x.length-2]])}f=Math.max(0,Math.min(A.length-2,i.findBin(e,A))),h=Math.max(0,Math.min(M.length-2,i.findBin(r,M)))}var E,L,C=g.c2p(y[f]),P=g.c2p(y[f+1]),I=v.c2p(x[h]),O=v.c2p(x[h+1]);p?(E=d.orig_x||y,L=d.orig_y||x,P=C,c=E[f],O=I,u=L[h]):(E=d.orig_x||_||y,L=d.orig_y||w||x,c=_?E[f]:(E[f]+E[f+1])/2,u=w?L[h]:(L[h]+L[h+1])/2,g&amp;&amp;&quot;category&quot;===g.type&amp;&amp;(c=y[f]),v&amp;&amp;&quot;category&quot;===v.type&amp;&amp;(u=x[h]),m.zsmooth&amp;&amp;(C=P=g.c2p(c),I=O=v.c2p(u)));var z=b[h][f];if(T&amp;&amp;!T[h][f]&amp;&amp;(z=void 0),void 0!==z||m.hoverongaps){var D;Array.isArray(d.hovertext)&amp;&amp;Array.isArray(d.hovertext[h])?D=d.hovertext[h][f]:Array.isArray(d.text)&amp;&amp;Array.isArray(d.text[h])&amp;&amp;(D=d.text[h][f]);var R=o(m),F={type:&quot;linear&quot;,range:[R.min,R.max],hoverformat:k,_separators:g._separators,_numFormat:g._numFormat},B=a.tickText(F,z,&quot;hover&quot;).text;return[i.extendFlat(t,{index:m._after2before?m._after2before[h][f]:[h,f],distance:t.maxHoverDistance,spikeDistance:t.maxSpikeDistance,x0:C,x1:P,y0:I,y1:O,xLabelVal:c,yLabelVal:u,zLabelVal:z,zLabel:B,text:D})]}}},{&quot;../../components/colorscale&quot;:378,&quot;../../components/fx&quot;:406,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554}],800:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:t(&quot;./colorbar&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;),moduleType:&quot;trace&quot;,name:&quot;heatmap&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:568,&quot;./attributes&quot;:792,&quot;./calc&quot;:793,&quot;./colorbar&quot;:795,&quot;./defaults&quot;:797,&quot;./hover&quot;:799,&quot;./plot&quot;:804,&quot;./style&quot;:805}],801:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=[[-1,0],[1,0],[0,-1],[0,1]];function a(t){return.5-.25*Math.min(1,.5*t)}function o(t,e,r){var n,a,o,s,l,c,u,f,h,p,d,m,g,v=0;for(s=0;s&lt;e.length;s++){for(a=(n=e[s])[0],o=n[1],d=t[a][o],p=0,h=0,l=0;l&lt;4;l++)(u=t[a+(c=i[l])[0]])&amp;&amp;void 0!==(f=u[o+c[1]])&amp;&amp;(0===p?m=g=f:(m=Math.min(m,f),g=Math.max(g,f)),h++,p+=f);if(0===h)throw&quot;iterateInterp2d order is wrong: no defined neighbors&quot;;t[a][o]=p/h,void 0===d?h&lt;4&amp;&amp;(v=1):(t[a][o]=(1+r)*t[a][o]-r*d,g&gt;m&amp;&amp;(v=Math.max(v,Math.abs(t[a][o]-d)/(g-m))))}return v}e.exports=function(t,e){var r,i=1;for(o(t,e),r=0;r&lt;e.length&amp;&amp;!(e[r][2]&lt;4);r++);for(e=e.slice(r),r=0;r&lt;100&amp;&amp;i&gt;.01;r++)i=o(t,e,a(i));return i&gt;.01&amp;&amp;n.log(&quot;interp2d didn't converge quickly&quot;,i),t}},{&quot;../../lib&quot;:503}],802:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){t(&quot;texttemplate&quot;);var r=n.extendFlat({},e.font,{color:&quot;auto&quot;,size:&quot;auto&quot;});n.coerceFont(t,&quot;textfont&quot;,r)}},{&quot;../../lib&quot;:503}],803:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a,o,s){var l,c,u,f=[],h=n.traceIs(t,&quot;contour&quot;),p=n.traceIs(t,&quot;histogram&quot;),d=n.traceIs(t,&quot;gl2d&quot;);if(i(e)&amp;&amp;e.length&gt;1&amp;&amp;!p&amp;&amp;&quot;category&quot;!==s.type){var m=e.length;if(!(m&lt;=o))return h?e.slice(0,o):e.slice(0,o+1);if(h||d)f=e.slice(0,o);else if(1===o)f=[e[0]-.5,e[0]+.5];else{for(f=[1.5*e[0]-.5*e[1]],u=1;u&lt;m;u++)f.push(.5*(e[u-1]+e[u]));f.push(1.5*e[m-1]-.5*e[m-2])}if(m&lt;o){var g=f[f.length-1],v=g-f[f.length-2];for(u=m;u&lt;o;u++)g+=v,f.push(g)}}else{var y=t[s._id.charAt(0)+&quot;calendar&quot;];if(p)l=s.r2c(r,0,y);else if(i(e)&amp;&amp;1===e.length)l=e[0];else if(void 0===r)l=0;else{l=(&quot;log&quot;===s.type?s.d2c:s.r2c)(r,0,y)}for(c=a||1,u=h||d?0:-.5;u&lt;o;u++)f.push(l+c*u)}return f}},{&quot;../../lib&quot;:503,&quot;../../registry&quot;:638}],804:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../scatter/format_labels&quot;),f=t(&quot;../../components/color&quot;),h=t(&quot;../../components/colorscale&quot;).extractOpts,p=t(&quot;../../components/colorscale&quot;).makeColorScaleFuncFromTrace,d=t(&quot;../../constants/xmlns_namespaces&quot;),m=t(&quot;../../constants/alignment&quot;).LINE_SPACING;function g(t){return t.selectAll(&quot;g.heatmap-label&quot;)}function v(t){g(t).remove()}function y(t,e){var r=e.length-2,n=l.constrain(l.findBin(t,e),0,r),i=e[n],a=e[n+1],o=l.constrain(n+(t-i)/(a-i)-.5,0,r),s=Math.round(o),c=Math.abs(o-s);return o&amp;&amp;o!==r&amp;&amp;c?{bin0:s,frac:c,bin1:Math.round(s+c/(o-s))}:{bin0:s,bin1:s,frac:0}}function x(t,e){var r=e.length-1,n=l.constrain(l.findBin(t,e),0,r),i=e[n],a=(t-i)/(e[n+1]-i)||0;return a&lt;=0?{bin0:n,bin1:n,frac:0}:a&lt;.5?{bin0:n,bin1:n+1,frac:a}:{bin0:n+1,bin1:n,frac:1-a}}function b(t,e,r){t[e]=r[0],t[e+1]=r[1],t[e+2]=r[2],t[e+3]=Math.round(255*r[3])}e.exports=function(t,e,r,_){var w=e.xaxis,T=e.yaxis;l.makeTraceGroups(_,r,&quot;hm&quot;).each((function(e){var r,_,k,A,M,S,E,L,C=n.select(this),P=e[0],I=P.trace,O=I.xgap||0,z=I.ygap||0,D=P.z,R=P.x,F=P.y,B=P.xCenter,N=P.yCenter,j=a.traceIs(I,&quot;contour&quot;),U=j?&quot;best&quot;:I.zsmooth,V=D.length,H=l.maxRowLength(D),q=!1,G=!1;for(S=0;void 0===r&amp;&amp;S&lt;R.length-1;)r=w.c2p(R[S]),S++;for(S=R.length-1;void 0===_&amp;&amp;S&gt;0;)_=w.c2p(R[S]),S--;for(_&lt;r&amp;&amp;(k=_,_=r,r=k,q=!0),S=0;void 0===A&amp;&amp;S&lt;F.length-1;)A=T.c2p(F[S]),S++;for(S=F.length-1;void 0===M&amp;&amp;S&gt;0;)M=T.c2p(F[S]),S--;if(M&lt;A&amp;&amp;(k=A,A=M,M=k,G=!0),j&amp;&amp;(B=R,N=F,R=P.xfill,F=P.yfill),&quot;fast&quot;!==U){var Y=&quot;best&quot;===U?0:.5;r=Math.max(-Y*w._length,r),_=Math.min((1+Y)*w._length,_),A=Math.max(-Y*T._length,A),M=Math.min((1+Y)*T._length,M)}var W,X,Z=Math.round(_-r),J=Math.round(M-A);if(Z&lt;=0||J&lt;=0)return C.selectAll(&quot;image&quot;).data([]).exit().remove(),void v(C);&quot;fast&quot;===U?(W=H,X=V):(W=Z,X=J);var K=document.createElement(&quot;canvas&quot;);K.width=W,K.height=X;var Q,$,tt=K.getContext(&quot;2d&quot;),et=p(I,{noNumericCheck:!0,returnArray:!0});&quot;fast&quot;===U?(Q=q?function(t){return H-1-t}:l.identity,$=G?function(t){return V-1-t}:l.identity):(Q=function(t){return l.constrain(Math.round(w.c2p(R[t])-r),0,Z)},$=function(t){return l.constrain(Math.round(T.c2p(F[t])-A),0,J)});var rt,nt,it,at,ot=$(0),st=[ot,ot],lt=q?0:1,ct=G?0:1,ut=0,ft=0,ht=0,pt=0;function dt(t,e){if(void 0!==t){var r=et(t);return r[0]=Math.round(r[0]),r[1]=Math.round(r[1]),r[2]=Math.round(r[2]),ut+=e,ft+=r[0]*e,ht+=r[1]*e,pt+=r[2]*e,r}return[0,0,0,0]}function mt(t,e,r,n){var i=t[r.bin0];if(void 0===i)return dt(void 0,1);var a,o=t[r.bin1],s=e[r.bin0],l=e[r.bin1],c=o-i||0,u=s-i||0;return a=void 0===o?void 0===l?0:void 0===s?2*(l-i):2*(2*l-s-i)/3:void 0===l?void 0===s?0:2*(2*i-o-s)/3:void 0===s?2*(2*l-o-i)/3:l+i-o-s,dt(i+r.frac*c+n.frac*(u+r.frac*a))}if(U){var gt,vt=0;try{gt=new Uint8Array(Z*J*4)}catch(t){gt=new Array(Z*J*4)}if(&quot;best&quot;===U){var yt,xt,bt,_t=B||R,wt=N||F,Tt=new Array(_t.length),kt=new Array(wt.length),At=new Array(Z),Mt=B?x:y,St=N?x:y;for(S=0;S&lt;_t.length;S++)Tt[S]=Math.round(w.c2p(_t[S])-r);for(S=0;S&lt;wt.length;S++)kt[S]=Math.round(T.c2p(wt[S])-A);for(S=0;S&lt;Z;S++)At[S]=Mt(S,Tt);for(E=0;E&lt;J;E++)for(xt=D[(yt=St(E,kt)).bin0],bt=D[yt.bin1],S=0;S&lt;Z;S++,vt+=4)b(gt,vt,at=mt(xt,bt,At[S],yt))}else for(E=0;E&lt;V;E++)for(it=D[E],st=$(E),S=0;S&lt;Z;S++)at=dt(it[S],1),b(gt,vt=4*(st*Z+Q(S)),at);var Et=tt.createImageData(Z,J);try{Et.data.set(gt)}catch(t){var Lt=Et.data,Ct=Lt.length;for(E=0;E&lt;Ct;E++)Lt[E]=gt[E]}tt.putImageData(Et,0,0)}else{var Pt=Math.floor(O/2),It=Math.floor(z/2);for(E=0;E&lt;V;E++)if(it=D[E],st.reverse(),st[ct]=$(E+1),st[0]!==st[1]&amp;&amp;void 0!==st[0]&amp;&amp;void 0!==st[1])for(rt=[nt=Q(0),nt],S=0;S&lt;H;S++)rt.reverse(),rt[lt]=Q(S+1),rt[0]!==rt[1]&amp;&amp;void 0!==rt[0]&amp;&amp;void 0!==rt[1]&amp;&amp;(at=dt(it[S],(rt[1]-rt[0])*(st[1]-st[0])),tt.fillStyle=&quot;rgba(&quot;+at.join(&quot;,&quot;)+&quot;)&quot;,tt.fillRect(rt[0]+Pt,st[0]+It,rt[1]-rt[0]-O,st[1]-st[0]-z))}ft=Math.round(ft/ut),ht=Math.round(ht/ut),pt=Math.round(pt/ut);var Ot=i(&quot;rgb(&quot;+ft+&quot;,&quot;+ht+&quot;,&quot;+pt+&quot;)&quot;);t._hmpixcount=(t._hmpixcount||0)+ut,t._hmlumcount=(t._hmlumcount||0)+ut*Ot.getLuminance();var zt=C.selectAll(&quot;image&quot;).data(e);zt.enter().append(&quot;svg:image&quot;).attr({xmlns:d.svg,preserveAspectRatio:&quot;none&quot;}),zt.attr({height:J,width:Z,x:r,y:A,&quot;xlink:href&quot;:K.toDataURL(&quot;image/png&quot;)}),v(C);var Dt=I.texttemplate;if(Dt){var Rt=h(I),Ft={type:&quot;linear&quot;,range:[Rt.min,Rt.max],_separators:w._separators,_numFormat:w._numFormat},Bt=&quot;histogram2dcontour&quot;===I.type,Nt=&quot;contour&quot;===I.type,jt=Nt?V-1:V,Ut=Nt?1:0,Vt=Nt?H-1:H,Ht=[];for(S=Nt?1:0;S&lt;jt;S++){var qt;if(Nt)qt=P.y[S];else if(Bt){if(0===S||S===V-1)continue;qt=P.y[S]}else if(P.yCenter)qt=P.yCenter[S];else{if(S+1===V&amp;&amp;void 0===P.y[S+1])continue;qt=(P.y[S]+P.y[S+1])/2}var Gt=Math.round(T.c2p(qt));if(!(0&gt;Gt||Gt&gt;T._length))for(E=Ut;E&lt;Vt;E++){var Yt;if(Nt)Yt=P.x[E];else if(Bt){if(0===E||E===H-1)continue;Yt=P.x[E]}else if(P.xCenter)Yt=P.xCenter[E];else{if(E+1===H&amp;&amp;void 0===P.x[E+1])continue;Yt=(P.x[E]+P.x[E+1])/2}var Wt=Math.round(w.c2p(Yt));if(!(0&gt;Wt||Wt&gt;w._length)){var Xt=u({x:Yt,y:qt},I,t._fullLayout);Xt.x=Yt,Xt.y=qt;var Zt=P.z[S][E];void 0===Zt?(Xt.z=&quot;&quot;,Xt.zLabel=&quot;&quot;):(Xt.z=Zt,Xt.zLabel=s.tickText(Ft,Zt,&quot;hover&quot;).text);var Jt=P.text&amp;&amp;P.text[S]&amp;&amp;P.text[S][E];void 0!==Jt&amp;&amp;!1!==Jt||(Jt=&quot;&quot;),Xt.text=Jt;var Kt=l.texttemplateString(Dt,Xt,t._fullLayout._d3locale,Xt,I._meta||{});if(Kt){var Qt=Kt.split(&quot;&lt;br&gt;&quot;),$t=Qt.length,te=0;for(L=0;L&lt;$t;L++)te=Math.max(te,Qt[L].length);Ht.push({l:$t,c:te,t:Kt,x:Wt,y:Gt,z:Zt})}}}}var ee=I.textfont,re=ee.family,ne=ee.size,ie=t._fullLayout.font.size;if(!ne||&quot;auto&quot;===ne){var ae=1/0,oe=1/0,se=0,le=0;for(L=0;L&lt;Ht.length;L++){var ce=Ht[L];if(se=Math.max(se,ce.l),le=Math.max(le,ce.c),L&lt;Ht.length-1){var ue=Ht[L+1],fe=Math.abs(ue.x-ce.x),he=Math.abs(ue.y-ce.y);fe&amp;&amp;(ae=Math.min(ae,fe)),he&amp;&amp;(oe=Math.min(oe,he))}}isFinite(ae)&amp;&amp;isFinite(oe)?(ae-=O,oe-=z,ae/=le,oe/=se,ae/=m/2,oe/=m,ne=Math.min(Math.floor(ae),Math.floor(oe),ie)):ne=ie}if(ne&lt;=0||!isFinite(ne))return;g(C).data(Ht).enter().append(&quot;g&quot;).classed(&quot;heatmap-label&quot;,1).append(&quot;text&quot;).attr(&quot;text-anchor&quot;,&quot;middle&quot;).each((function(e){var r=n.select(this),i=ee.color;i&amp;&amp;&quot;auto&quot;!==i||(i=f.contrast(&quot;rgba(&quot;+et(e.z).join()+&quot;)&quot;)),r.attr(&quot;data-notex&quot;,1).call(c.positionText,function(t){return t.x}(e),function(t){return t.y-ne*(t.l*m/2-1)}(e)).call(o.font,re,ne,i).text(e.t).call(c.convertToTspans,t)}))}}))}},{&quot;../../components/color&quot;:366,&quot;../../components/colorscale&quot;:378,&quot;../../components/drawing&quot;:388,&quot;../../constants/alignment&quot;:471,&quot;../../constants/xmlns_namespaces&quot;:480,&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../registry&quot;:638,&quot;../scatter/format_labels&quot;:935,&quot;@plotly/d3&quot;:58,tinycolor2:312}],805:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;);e.exports=function(t){n.select(t).selectAll(&quot;.hm image&quot;).style(&quot;opacity&quot;,(function(t){return t.trace.opacity}))}},{&quot;@plotly/d3&quot;:58}],806:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){!1===r(&quot;zsmooth&quot;)&amp;&amp;(r(&quot;xgap&quot;),r(&quot;ygap&quot;)),r(&quot;zhoverformat&quot;)}},{}],807:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;);function o(t,e){var r=e(t);return&quot;scaled&quot;===(r?e(t+&quot;type&quot;,&quot;array&quot;):&quot;scaled&quot;)&amp;&amp;(e(t+&quot;0&quot;),e(&quot;d&quot;+t)),r}e.exports=function(t,e,r,s,l,c){var u,f,h=r(&quot;z&quot;);if(l=l||&quot;x&quot;,c=c||&quot;y&quot;,void 0===h||!h.length)return 0;if(i.isArray1D(t.z)){u=r(l),f=r(c);var p=i.minRowLength(u),d=i.minRowLength(f);if(0===p||0===d)return 0;e._length=Math.min(p,d,h.length)}else{if(u=o(l,r),f=o(c,r),!function(t){for(var e,r=!0,a=!1,o=!1,s=0;s&lt;t.length;s++){if(e=t[s],!i.isArrayOrTypedArray(e)){r=!1;break}e.length&gt;0&amp;&amp;(a=!0);for(var l=0;l&lt;e.length;l++)if(n(e[l])){o=!0;break}}return r&amp;&amp;a&amp;&amp;o}(h))return 0;r(&quot;transpose&quot;),e._length=null}return&quot;heatmapgl&quot;===t.type||a.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[l,c],s),!0}},{&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;fast-isnumeric&quot;:190}],808:[function(t,e,r){&quot;use strict&quot;;for(var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=[&quot;z&quot;,&quot;x&quot;,&quot;x0&quot;,&quot;dx&quot;,&quot;y&quot;,&quot;y0&quot;,&quot;dy&quot;,&quot;text&quot;,&quot;transpose&quot;,&quot;xtype&quot;,&quot;ytype&quot;],l={},c=0;c&lt;s.length;c++){var u=s[c];l[u]=n[u]}l.zsmooth={valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,!1],dflt:&quot;fast&quot;,editType:&quot;calc&quot;},a(l,i(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1})),e.exports=o(l,&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plot_api/edit_types&quot;:536,&quot;../heatmap/attributes&quot;:792}],809:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../stackgl_modules&quot;).gl_heatmap2d,i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../lib/str2rgbarray&quot;);function o(t,e){this.scene=t,this.uid=e,this.type=&quot;heatmapgl&quot;,this.name=&quot;&quot;,this.hoverinfo=&quot;all&quot;,this.xData=[],this.yData=[],this.zData=[],this.textLabels=[],this.idToIndex=[],this.bounds=[0,0,0,0],this.options={zsmooth:&quot;fast&quot;,z:[],x:[],y:[],shape:[0,0],colorLevels:[0],colorValues:[0,0,0,1]},this.heatmap=n(t.glplot,this.options),this.heatmap._trace=this}var s=o.prototype;s.handlePick=function(t){var e=this.options,r=e.shape,n=t.pointId,i=n%r[0],a=Math.floor(n/r[0]),o=n;return{trace:this,dataCoord:t.dataCoord,traceCoord:[e.x[i],e.y[a],e.z[o]],textLabel:this.textLabels[n],name:this.name,pointIndex:[a,i],hoverinfo:this.hoverinfo}},s.update=function(t,e){var r=e[0];this.index=t.index,this.name=t.name,this.hoverinfo=t.hoverinfo;var n=r.z;this.options.z=[].concat.apply([],n);var o=n[0].length,s=n.length;this.options.shape=[o,s],this.options.x=r.x,this.options.y=r.y,this.options.zsmooth=t.zsmooth;var l=function(t){for(var e=t.colorscale,r=t.zmin,n=t.zmax,i=e.length,o=new Array(i),s=new Array(4*i),l=0;l&lt;i;l++){var c=e[l],u=a(c[1]);o[l]=r+c[0]*(n-r);for(var f=0;f&lt;4;f++)s[4*l+f]=u[f]}return{colorLevels:o,colorValues:s}}(t);this.options.colorLevels=l.colorLevels,this.options.colorValues=l.colorValues,this.textLabels=[].concat.apply([],t.text),this.heatmap.update(this.options);var c,u,f=this.scene.xaxis,h=this.scene.yaxis;!1===t.zsmooth&amp;&amp;(c={ppad:r.x[1]-r.x[0]},u={ppad:r.y[1]-r.y[0]}),t._extremes[f._id]=i.findExtremes(f,r.x,c),t._extremes[h._id]=i.findExtremes(h,r.y,u)},s.dispose=function(){this.heatmap.dispose()},e.exports=function(t,e,r){var n=new o(t,e.uid);return n.update(e,r),n}},{&quot;../../../stackgl_modules&quot;:1120,&quot;../../lib/str2rgbarray&quot;:528,&quot;../../plots/cartesian/axes&quot;:554}],810:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,l,s)?(l(&quot;text&quot;),l(&quot;zsmooth&quot;),a(t,e,s,l,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:376,&quot;../../lib&quot;:503,&quot;../heatmap/xyz_defaults&quot;:807,&quot;./attributes&quot;:808}],811:[function(t,e,r){&quot;use strict&quot;;[&quot;*heatmapgl* trace is deprecated!&quot;,&quot;Please consider switching to the *heatmap* or *image* trace types.&quot;,&quot;Alternatively you could contribute/sponsor rewriting this trace type&quot;,&quot;based on cartesian features and using regl framework.&quot;].join(&quot; &quot;);e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;../heatmap/calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;heatmapgl&quot;,basePlotModule:t(&quot;../../plots/gl2d&quot;),categories:[&quot;gl&quot;,&quot;gl2d&quot;,&quot;2dMap&quot;],meta:{}}},{&quot;../../plots/gl2d&quot;:596,&quot;../heatmap/calc&quot;:793,&quot;../heatmap/colorbar&quot;:795,&quot;./attributes&quot;:808,&quot;./convert&quot;:809,&quot;./defaults&quot;:810}],812:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,s=t(&quot;../../plots/font_attributes&quot;),l=t(&quot;./bin_attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),text:u({},n.text,{}),hovertext:u({},n.hovertext,{}),orientation:n.orientation,histfunc:{valType:&quot;enumerated&quot;,values:[&quot;count&quot;,&quot;sum&quot;,&quot;avg&quot;,&quot;min&quot;,&quot;max&quot;],dflt:&quot;count&quot;,editType:&quot;calc&quot;},histnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;percent&quot;,&quot;probability&quot;,&quot;density&quot;,&quot;probability density&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},cumulative:{enabled:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;increasing&quot;,&quot;decreasing&quot;],dflt:&quot;increasing&quot;,editType:&quot;calc&quot;},currentbin:{valType:&quot;enumerated&quot;,values:[&quot;include&quot;,&quot;exclude&quot;,&quot;half&quot;],dflt:&quot;include&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},nbinsx:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},xbins:l(&quot;x&quot;,!0),nbinsy:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},ybins:l(&quot;y&quot;,!0),autobinx:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},autobiny:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},bingroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertemplate:a({},{keys:c.eventDataKeys}),texttemplate:o({arrayOk:!1,editType:&quot;plot&quot;},{keys:[&quot;label&quot;,&quot;value&quot;]}),textposition:u({},n.textposition,{arrayOk:!1}),textfont:s({arrayOk:!1,editType:&quot;plot&quot;,colorEditType:&quot;style&quot;}),outsidetextfont:s({arrayOk:!1,editType:&quot;plot&quot;,colorEditType:&quot;style&quot;}),insidetextfont:s({arrayOk:!1,editType:&quot;plot&quot;,colorEditType:&quot;style&quot;}),insidetextanchor:n.insidetextanchor,textangle:n.textangle,cliponaxis:n.cliponaxis,constraintext:n.constraintext,marker:n.marker,offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,_deprecated:{bardir:n._deprecated.bardir}}},{&quot;../../lib/extend&quot;:493,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/font_attributes&quot;:585,&quot;../../plots/template_attributes&quot;:633,&quot;../bar/attributes&quot;:648,&quot;./bin_attributes&quot;:814,&quot;./constants&quot;:818}],813:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=t.length,n=0,i=0;i&lt;r;i++)e[i]?(t[i]/=e[i],n+=t[i]):t[i]=null;return n}},{}],814:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return{start:{valType:&quot;any&quot;,editType:&quot;calc&quot;},end:{valType:&quot;any&quot;,editType:&quot;calc&quot;},size:{valType:&quot;any&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;}}},{}],815:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports={count:function(t,e,r){return r[t]++,1},sum:function(t,e,r,i){var a=i[e];return n(a)?(a=Number(a),r[t]+=a,a):0},avg:function(t,e,r,i,a){var o=i[e];return n(o)&amp;&amp;(o=Number(o),r[t]+=o,a[t]++),0},min:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]&gt;a){var o=a-r[t];return r[t]=a,o}}return 0},max:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]&lt;a){var o=a-r[t];return r[t]=a,o}}return 0}}},{&quot;fast-isnumeric&quot;:190}],816:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/numerical&quot;),i=n.ONEAVGYEAR,a=n.ONEAVGMONTH,o=n.ONEDAY,s=n.ONEHOUR,l=n.ONEMIN,c=n.ONESEC,u=t(&quot;../../plots/cartesian/axes&quot;).tickIncrement;function f(t,e,r,n){if(t*e&lt;=0)return 1/0;for(var i=Math.abs(e-t),a=&quot;date&quot;===r.type,o=h(i,a),s=0;s&lt;10;s++){var l=h(80*o,a);if(o===l)break;if(!p(l,t,e,a,r,n))break;o=l}return o}function h(t,e){return e&amp;&amp;t&gt;c?t&gt;o?t&gt;1.1*i?i:t&gt;1.1*a?a:o:t&gt;s?s:t&gt;l?l:c:Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function p(t,e,r,n,a,s){if(n&amp;&amp;t&gt;o){var l=d(e,a,s),c=d(r,a,s),u=t===i?0:1;return l[u]!==c[u]}return Math.floor(r/t)-Math.floor(e/t)&gt;.1}function d(t,e,r){var n=e.c2d(t,i,r).split(&quot;-&quot;);return&quot;&quot;===n[0]&amp;&amp;(n.unshift(),n[0]=&quot;-&quot;+n[0]),n}e.exports=function(t,e,r,n,a){var s,l,c=-1.1*e,h=-.1*e,p=t-h,d=r[0],m=r[1],g=Math.min(f(d+h,d+p,n,a),f(m+h,m+p,n,a)),v=Math.min(f(d+c,d+h,n,a),f(m+c,m+h,n,a));if(g&gt;v&amp;&amp;v&lt;Math.abs(m-d)/4e3?(s=g,l=!1):(s=Math.min(g,v),l=!0),&quot;date&quot;===n.type&amp;&amp;s&gt;o){var y=s===i?1:6,x=s===i?&quot;M12&quot;:&quot;M1&quot;;return function(e,r){var o=n.c2d(e,i,a),s=o.indexOf(&quot;-&quot;,y);s&gt;0&amp;&amp;(o=o.substr(0,s));var c=n.d2c(o,0,a);if(c&lt;e){var f=u(c,x,!1,a);(c+f)/2&lt;e+t&amp;&amp;(c=f)}return r&amp;&amp;l?u(c,x,!0,a):c}}return function(e,r){var n=s*Math.round(e/s);return n+s/10&lt;e&amp;&amp;n+.9*s&lt;e+t&amp;&amp;(n+=s),r&amp;&amp;l&amp;&amp;(n-=s),n}}},{&quot;../../constants/numerical&quot;:479,&quot;../../plots/cartesian/axes&quot;:554}],817:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../bar/arrays_to_calcdata&quot;),l=t(&quot;./bin_functions&quot;),c=t(&quot;./norm_functions&quot;),u=t(&quot;./average&quot;),f=t(&quot;./bin_label_vals&quot;);function h(t,e,r,s,l){var c,u,f,p,d,m,g,v=s+&quot;bins&quot;,y=t._fullLayout,x=e[&quot;_&quot;+s+&quot;bingroup&quot;],b=y._histogramBinOpts[x],_=&quot;overlay&quot;===y.barmode,w=function(t){return r.r2c(t,0,p)},T=function(t){return r.c2r(t,0,p)},k=&quot;date&quot;===r.type?function(t){return t||0===t?i.cleanDate(t,null,p):null}:function(t){return n(t)?Number(t):null};function A(t,e,r){e[t+&quot;Found&quot;]?(e[t]=k(e[t]),null===e[t]&amp;&amp;(e[t]=r[t])):(m[t]=e[t]=r[t],i.nestedProperty(u[0],v+&quot;.&quot;+t).set(r[t]))}if(e[&quot;_&quot;+s+&quot;autoBinFinished&quot;])delete e[&quot;_&quot;+s+&quot;autoBinFinished&quot;];else{u=b.traces;var M=[],S=!0,E=!1,L=!1;for(c=0;c&lt;u.length;c++)if((f=u[c]).visible){var C=b.dirs[c];d=f[&quot;_&quot;+C+&quot;pos0&quot;]=r.makeCalcdata(f,C),M=i.concat(M,d),delete f[&quot;_&quot;+s+&quot;autoBinFinished&quot;],!0===e.visible&amp;&amp;(S?S=!1:(delete f._autoBin,f[&quot;_&quot;+s+&quot;autoBinFinished&quot;]=1),a.traceIs(f,&quot;2dMap&quot;)&amp;&amp;(E=!0),&quot;histogram2dcontour&quot;===f.type&amp;&amp;(L=!0))}p=u[0][s+&quot;calendar&quot;];var P=o.autoBin(M,r,b.nbins,E,p,b.sizeFound&amp;&amp;b.size),I=u[0]._autoBin={};if(m=I[b.dirs[0]]={},L&amp;&amp;(b.size||(P.start=T(o.tickIncrement(w(P.start),P.size,!0,p))),void 0===b.end&amp;&amp;(P.end=T(o.tickIncrement(w(P.end),P.size,!1,p)))),_&amp;&amp;!a.traceIs(e,&quot;2dMap&quot;)&amp;&amp;0===P._dataSpan&amp;&amp;&quot;category&quot;!==r.type&amp;&amp;&quot;multicategory&quot;!==r.type){if(l)return[P,d,!0];P=function(t,e,r,n,a){var o,s,l,c=t._fullLayout,u=function(t,e){for(var r=e.xaxis,n=e.yaxis,i=e.orientation,a=[],o=t._fullData,s=0;s&lt;o.length;s++){var l=o[s];&quot;histogram&quot;===l.type&amp;&amp;!0===l.visible&amp;&amp;l.orientation===i&amp;&amp;l.xaxis===r&amp;&amp;l.yaxis===n&amp;&amp;a.push(l)}return a}(t,e),f=!1,p=1/0,d=[e];for(o=0;o&lt;u.length;o++)if((s=u[o])===e)f=!0;else if(f){var m=h(t,s,r,n,!0),g=m[0],v=m[2];s[&quot;_&quot;+n+&quot;autoBinFinished&quot;]=1,s[&quot;_&quot;+n+&quot;pos0&quot;]=m[1],v?d.push(s):p=Math.min(p,g.size)}else l=c._histogramBinOpts[s[&quot;_&quot;+n+&quot;bingroup&quot;]],p=Math.min(p,l.size||s[a].size);var y=new Array(d.length);for(o=0;o&lt;d.length;o++)for(var x=d[o][&quot;_&quot;+n+&quot;pos0&quot;],b=0;b&lt;x.length;b++)if(void 0!==x[b]){y[o]=x[b];break}isFinite(p)||(p=i.distinctVals(y).minDiff);for(o=0;o&lt;d.length;o++){var _=(s=d[o])[n+&quot;calendar&quot;],w={start:r.c2r(y[o]-p/2,0,_),end:r.c2r(y[o]+p/2,0,_),size:p};s._input[a]=s[a]=w,(l=c._histogramBinOpts[s[&quot;_&quot;+n+&quot;bingroup&quot;]])&amp;&amp;i.extendFlat(l,w)}return e[a]}(t,e,r,s,v)}(g=f.cumulative||{}).enabled&amp;&amp;&quot;include&quot;!==g.currentbin&amp;&amp;(&quot;decreasing&quot;===g.direction?P.start=T(o.tickIncrement(w(P.start),P.size,!0,p)):P.end=T(o.tickIncrement(w(P.end),P.size,!1,p))),b.size=P.size,b.sizeFound||(m.size=P.size,i.nestedProperty(u[0],v+&quot;.size&quot;).set(P.size)),A(&quot;start&quot;,b,P),A(&quot;end&quot;,b,P)}d=e[&quot;_&quot;+s+&quot;pos0&quot;],delete e[&quot;_&quot;+s+&quot;pos0&quot;];var O=e._input[v]||{},z=i.extendFlat({},b),D=b.start,R=r.r2l(O.start),F=void 0!==R;if((b.startFound||F)&amp;&amp;R!==r.r2l(D)){var B=F?R:i.aggNums(Math.min,null,d),N={type:&quot;category&quot;===r.type||&quot;multicategory&quot;===r.type?&quot;linear&quot;:r.type,r2l:r.r2l,dtick:b.size,tick0:D,calendar:p,range:[B,o.tickIncrement(B,b.size,!1,p)].map(r.l2r)},j=o.tickFirst(N);j&gt;r.r2l(B)&amp;&amp;(j=o.tickIncrement(j,b.size,!0,p)),z.start=r.l2r(j),F||i.nestedProperty(e,v+&quot;.start&quot;).set(z.start)}var U=b.end,V=r.r2l(O.end),H=void 0!==V;if((b.endFound||H)&amp;&amp;V!==r.r2l(U)){var q=H?V:i.aggNums(Math.max,null,d);z.end=r.l2r(q),H||i.nestedProperty(e,v+&quot;.start&quot;).set(z.end)}var G=&quot;autobin&quot;+s;return!1===e._input[G]&amp;&amp;(e._input[v]=i.extendFlat({},e[v]||{}),delete e._input[G],delete e[G]),[z,d]}e.exports={calc:function(t,e){var r,a,p,d,m=[],g=[],v=&quot;h&quot;===e.orientation,y=o.getFromId(t,v?e.yaxis:e.xaxis),x=v?&quot;y&quot;:&quot;x&quot;,b={x:&quot;y&quot;,y:&quot;x&quot;}[x],_=e[x+&quot;calendar&quot;],w=e.cumulative,T=h(t,e,y,x),k=T[0],A=T[1],M=&quot;string&quot;==typeof k.size,S=[],E=M?S:k,L=[],C=[],P=[],I=0,O=e.histnorm,z=e.histfunc,D=-1!==O.indexOf(&quot;density&quot;);w.enabled&amp;&amp;D&amp;&amp;(O=O.replace(/ ?density$/,&quot;&quot;),D=!1);var R,F=&quot;max&quot;===z||&quot;min&quot;===z?null:0,B=l.count,N=c[O],j=!1,U=function(t){return y.r2c(t,0,_)};for(i.isArrayOrTypedArray(e[b])&amp;&amp;&quot;count&quot;!==z&amp;&amp;(R=e[b],j=&quot;avg&quot;===z,B=l[z]),r=U(k.start),p=U(k.end)+(r-o.tickIncrement(r,k.size,!1,_))/1e6;r&lt;p&amp;&amp;m.length&lt;1e6&amp;&amp;(a=o.tickIncrement(r,k.size,!1,_),m.push((r+a)/2),g.push(F),P.push([]),S.push(r),D&amp;&amp;L.push(1/(a-r)),j&amp;&amp;C.push(0),!(a&lt;=r));)r=a;S.push(r),M||&quot;date&quot;!==y.type||(E={start:U(E.start),end:U(E.end),size:E.size}),t._fullLayout._roundFnOpts||(t._fullLayout._roundFnOpts={});var V=e[&quot;_&quot;+x+&quot;bingroup&quot;],H={leftGap:1/0,rightGap:1/0};V&amp;&amp;(t._fullLayout._roundFnOpts[V]||(t._fullLayout._roundFnOpts[V]=H),H=t._fullLayout._roundFnOpts[V]);var q,G=g.length,Y=!0,W=H.leftGap,X=H.rightGap,Z={};for(r=0;r&lt;A.length;r++){var J=A[r];(d=i.findBin(J,E))&gt;=0&amp;&amp;d&lt;G&amp;&amp;(I+=B(d,r,g,R,C),Y&amp;&amp;P[d].length&amp;&amp;J!==A[P[d][0]]&amp;&amp;(Y=!1),P[d].push(r),Z[r]=d,W=Math.min(W,J-S[d]),X=Math.min(X,S[d+1]-J))}H.leftGap=W,H.rightGap=X,Y||(q=function(e,r){return function(){var n=t._fullLayout._roundFnOpts[V];return f(n.leftGap,n.rightGap,S,y,_)(e,r)}}),j&amp;&amp;(I=u(g,C)),N&amp;&amp;N(g,I,L),w.enabled&amp;&amp;function(t,e,r){var n,i,a;function o(e){a=t[e],t[e]/=2}function s(e){i=t[e],t[e]=a+i/2,a+=i}if(&quot;half&quot;===r)if(&quot;increasing&quot;===e)for(o(0),n=1;n&lt;t.length;n++)s(n);else for(o(t.length-1),n=t.length-2;n&gt;=0;n--)s(n);else if(&quot;increasing&quot;===e){for(n=1;n&lt;t.length;n++)t[n]+=t[n-1];&quot;exclude&quot;===r&amp;&amp;(t.unshift(0),t.pop())}else{for(n=t.length-2;n&gt;=0;n--)t[n]+=t[n+1];&quot;exclude&quot;===r&amp;&amp;(t.push(0),t.shift())}}(g,w.direction,w.currentbin);var K=Math.min(m.length,g.length),Q=[],$=0,tt=K-1;for(r=0;r&lt;K;r++)if(g[r]){$=r;break}for(r=K-1;r&gt;=$;r--)if(g[r]){tt=r;break}for(r=$;r&lt;=tt;r++)if(n(m[r])&amp;&amp;n(g[r])){var et={p:m[r],s:g[r],b:0};w.enabled||(et.pts=P[r],Y?et.ph0=et.ph1=P[r].length?A[P[r][0]]:m[r]:(e._computePh=!0,et.ph0=q(S[r]),et.ph1=q(S[r+1],!0))),Q.push(et)}return 1===Q.length&amp;&amp;(Q[0].width1=o.tickIncrement(Q[0].p,k.size,!1,_)-Q[0].p),s(Q,e),i.isArrayOrTypedArray(e.selectedpoints)&amp;&amp;i.tagSelected(Q,e,Z),Q},calcAllAutoBins:h}},{&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../registry&quot;:638,&quot;../bar/arrays_to_calcdata&quot;:647,&quot;./average&quot;:813,&quot;./bin_functions&quot;:815,&quot;./bin_label_vals&quot;:816,&quot;./norm_functions&quot;:824,&quot;fast-isnumeric&quot;:190}],818:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;binNumber&quot;]}},{}],819:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axis_ids&quot;),a=t(&quot;../../registry&quot;).traceIs,o=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,s=n.nestedProperty,l=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,c=[{aStr:{x:&quot;xbins.start&quot;,y:&quot;ybins.start&quot;},name:&quot;start&quot;},{aStr:{x:&quot;xbins.end&quot;,y:&quot;ybins.end&quot;},name:&quot;end&quot;},{aStr:{x:&quot;xbins.size&quot;,y:&quot;ybins.size&quot;},name:&quot;size&quot;},{aStr:{x:&quot;nbinsx&quot;,y:&quot;nbinsy&quot;},name:&quot;nbins&quot;}],u=[&quot;x&quot;,&quot;y&quot;];e.exports=function(t,e){var r,f,h,p,d,m,g,v=e._histogramBinOpts={},y=[],x={},b=[];function _(t,e){return n.coerce(r._input,r,r._module.attributes,t,e)}function w(t){return&quot;v&quot;===t.orientation?&quot;x&quot;:&quot;y&quot;}function T(t,r,a){var o=t.uid+&quot;__&quot;+a;r||(r=o);var s=function(t,r){return i.getFromTrace({_fullLayout:e},t,r).type}(t,a),l=t[a+&quot;calendar&quot;]||&quot;&quot;,c=v[r],u=!0;c&amp;&amp;(s===c.axType&amp;&amp;l===c.calendar?(u=!1,c.traces.push(t),c.dirs.push(a)):(r=o,s!==c.axType&amp;&amp;n.warn([&quot;Attempted to group the bins of trace&quot;,t.index,&quot;set on a&quot;,&quot;type:&quot;+s,&quot;axis&quot;,&quot;with bins on&quot;,&quot;type:&quot;+c.axType,&quot;axis.&quot;].join(&quot; &quot;)),l!==c.calendar&amp;&amp;n.warn([&quot;Attempted to group the bins of trace&quot;,t.index,&quot;set with a&quot;,l,&quot;calendar&quot;,&quot;with bins&quot;,c.calendar?&quot;on a &quot;+c.calendar+&quot; calendar&quot;:&quot;w/o a set calendar&quot;].join(&quot; &quot;)))),u&amp;&amp;(v[r]={traces:[t],dirs:[a],axType:s,calendar:t[a+&quot;calendar&quot;]||&quot;&quot;}),t[&quot;_&quot;+a+&quot;bingroup&quot;]=r}for(d=0;d&lt;t.length;d++)r=t[d],a(r,&quot;histogram&quot;)&amp;&amp;(y.push(r),delete r._xautoBinFinished,delete r._yautoBinFinished,a(r,&quot;2dMap&quot;)||o(r._input,r,e,_));var k=e._alignmentOpts||{};for(d=0;d&lt;y.length;d++){if(r=y[d],h=&quot;&quot;,!a(r,&quot;2dMap&quot;)){if(p=w(r),&quot;group&quot;===e.barmode&amp;&amp;r.alignmentgroup){var A=r[p+&quot;axis&quot;],M=l(e,A)+r.orientation;(k[M]||{})[r.alignmentgroup]&amp;&amp;(h=M)}h||&quot;overlay&quot;===e.barmode||(h=l(e,r.xaxis)+l(e,r.yaxis)+w(r))}h?(x[h]||(x[h]=[]),x[h].push(r)):b.push(r)}for(h in x)if(1!==(f=x[h]).length){var S=!1;for(f.length&amp;&amp;(r=f[0],S=_(&quot;bingroup&quot;)),h=S||h,d=0;d&lt;f.length;d++){var E=(r=f[d])._input.bingroup;E&amp;&amp;E!==h&amp;&amp;n.warn([&quot;Trace&quot;,r.index,&quot;must match&quot;,&quot;within bingroup&quot;,h+&quot;.&quot;,&quot;Ignoring its bingroup:&quot;,E,&quot;setting.&quot;].join(&quot; &quot;)),r.bingroup=h,T(r,h,w(r))}}else b.push(f[0]);for(d=0;d&lt;b.length;d++){r=b[d];var L=_(&quot;bingroup&quot;);if(a(r,&quot;2dMap&quot;))for(g=0;g&lt;2;g++){var C=_((p=u[g])+&quot;bingroup&quot;,L?L+&quot;__&quot;+p:null);T(r,C,p)}else T(r,L,w(r))}for(h in v){var P=v[h];for(f=P.traces,m=0;m&lt;c.length;m++){var I,O,z=c[m],D=z.name;if(&quot;nbins&quot;!==D||!P.sizeFound){for(d=0;d&lt;f.length;d++){if(r=f[d],p=P.dirs[d],I=z.aStr[p],void 0!==s(r._input,I).get()){P[D]=_(I),P[D+&quot;Found&quot;]=!0;break}(O=(r._autoBin||{})[p]||{})[D]&amp;&amp;s(r,I).set(O[D])}if(&quot;start&quot;===D||&quot;end&quot;===D)for(;d&lt;f.length;d++)(r=f[d])[&quot;_&quot;+p+&quot;bingroup&quot;]&amp;&amp;_(I,(O=(r._autoBin||{})[p]||{})[D]);&quot;nbins&quot;!==D||P.sizeFound||P.nbinsFound||(r=f[0],P[D]=_(I))}}}}},{&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axis_ids&quot;:558,&quot;../../plots/cartesian/constraints&quot;:562,&quot;../../registry&quot;:638,&quot;../bar/defaults&quot;:652}],820:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../bar/defaults&quot;).handleText,s=t(&quot;../bar/style_defaults&quot;),l=t(&quot;./attributes&quot;);e.exports=function(t,e,r,c){function u(r,n){return i.coerce(t,e,l,r,n)}var f=u(&quot;x&quot;),h=u(&quot;y&quot;);u(&quot;cumulative.enabled&quot;)&amp;&amp;(u(&quot;cumulative.direction&quot;),u(&quot;cumulative.currentbin&quot;)),u(&quot;text&quot;);var p=u(&quot;textposition&quot;);o(t,e,c,u,p,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;),u(&quot;xhoverformat&quot;),u(&quot;yhoverformat&quot;);var d=u(&quot;orientation&quot;,h&amp;&amp;!f?&quot;h&quot;:&quot;v&quot;),m=&quot;v&quot;===d?&quot;x&quot;:&quot;y&quot;,g=&quot;v&quot;===d?&quot;y&quot;:&quot;x&quot;,v=f&amp;&amp;h?Math.min(i.minRowLength(f)&amp;&amp;i.minRowLength(h)):i.minRowLength(e[m]||[]);if(v){e._length=v,n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],c),e[g]&amp;&amp;u(&quot;histfunc&quot;),u(&quot;histnorm&quot;),u(&quot;autobin&quot;+m),s(t,e,u,r,c),i.coerceSelectionMarkerOpacity(e,u);var y=(e.marker.line||{}).color,x=n.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);x(t,e,y||a.defaultLine,{axis:&quot;y&quot;}),x(t,e,y||a.defaultLine,{axis:&quot;x&quot;,inherit:&quot;y&quot;})}else e.visible=!1}},{&quot;../../components/color&quot;:366,&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;../bar/defaults&quot;:652,&quot;../bar/style_defaults&quot;:663,&quot;./attributes&quot;:812}],821:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){if(t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;zLabelVal&quot;in e&amp;&amp;(t.z=e.zLabelVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),!(r.cumulative||{}).enabled){var a,o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;if(t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex,r._indexToPoints){a=[];for(var s=0;s&lt;o.length;s++)a=a.concat(r._indexToPoints[o[s]])}else a=o;t.pointIndices=a}return t}},{}],822:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/hover&quot;).hoverPoints,i=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText;e.exports=function(t,e,r,a,o){var s=n(t,e,r,a,o);if(s){var l=(t=s[0]).cd[t.index],c=t.cd[0].trace;if(!c.cumulative.enabled){var u=&quot;h&quot;===c.orientation?&quot;y&quot;:&quot;x&quot;;t[u+&quot;Label&quot;]=i(t[u+&quot;a&quot;],[l.ph0,l.ph1],c[u+&quot;hoverformat&quot;])}return s}}},{&quot;../../plots/cartesian/axes&quot;:554,&quot;../bar/hover&quot;:655}],823:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;../bar/layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),supplyLayoutDefaults:t(&quot;../bar/layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;../bar/cross_trace_calc&quot;).crossTraceCalc,plot:t(&quot;../bar/plot&quot;).plot,layerName:&quot;barlayer&quot;,style:t(&quot;../bar/style&quot;).style,styleOnSelect:t(&quot;../bar/style&quot;).styleOnSelect,colorbar:t(&quot;../scatter/marker_colorbar&quot;),hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../bar/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;bar&quot;,&quot;histogram&quot;,&quot;oriented&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:568,&quot;../bar/cross_trace_calc&quot;:651,&quot;../bar/layout_attributes&quot;:657,&quot;../bar/layout_defaults&quot;:658,&quot;../bar/plot&quot;:659,&quot;../bar/select&quot;:660,&quot;../bar/style&quot;:662,&quot;../scatter/marker_colorbar&quot;:944,&quot;./attributes&quot;:812,&quot;./calc&quot;:817,&quot;./cross_trace_defaults&quot;:819,&quot;./defaults&quot;:820,&quot;./event_data&quot;:821,&quot;./hover&quot;:822}],824:[function(t,e,r){&quot;use strict&quot;;e.exports={percent:function(t,e){for(var r=t.length,n=100/e,i=0;i&lt;r;i++)t[i]*=n},probability:function(t,e){for(var r=t.length,n=0;n&lt;r;n++)t[n]/=e},density:function(t,e,r,n){var i=t.length;n=n||1;for(var a=0;a&lt;i;a++)t[a]*=r[a]*n},&quot;probability density&quot;:function(t,e,r,n){var i=t.length;n&amp;&amp;(e/=n);for(var a=0;a&lt;i;a++)t[a]*=r[a]/e}}},{}],825:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../histogram/attributes&quot;),i=t(&quot;../histogram/bin_attributes&quot;),a=t(&quot;../heatmap/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,l=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,c=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,u=t(&quot;../../components/colorscale/attributes&quot;),f=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=f({x:n.x,y:n.y,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},marker:{color:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:i(&quot;x&quot;),nbinsy:n.nbinsy,ybins:i(&quot;y&quot;),autobinx:n.autobinx,autobiny:n.autobiny,bingroup:f({},n.bingroup,{}),xbingroup:f({},n.bingroup,{}),ybingroup:f({},n.bingroup,{}),xgap:a.xgap,ygap:a.ygap,zsmooth:a.zsmooth,xhoverformat:s(&quot;x&quot;),yhoverformat:s(&quot;y&quot;),zhoverformat:s(&quot;z&quot;,1),hovertemplate:l({},{keys:&quot;z&quot;}),texttemplate:c({arrayOk:!1,editType:&quot;plot&quot;},{keys:&quot;z&quot;}),textfont:a.textfont,showlegend:f({},o.showlegend,{dflt:!1})},u(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plots/attributes&quot;:550,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/template_attributes&quot;:633,&quot;../heatmap/attributes&quot;:792,&quot;../histogram/attributes&quot;:812,&quot;../histogram/bin_attributes&quot;:814}],826:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../histogram/bin_functions&quot;),o=t(&quot;../histogram/norm_functions&quot;),s=t(&quot;../histogram/average&quot;),l=t(&quot;../histogram/bin_label_vals&quot;),c=t(&quot;../histogram/calc&quot;).calcAllAutoBins;function u(t,e,r,n){var i,a=new Array(t);if(n)for(i=0;i&lt;t;i++)a[i]=1/(e[i+1]-e[i]);else{var o=1/r;for(i=0;i&lt;t;i++)a[i]=o}return a}function f(t,e){return{start:t(e.start),end:t(e.end),size:e.size}}function h(t,e,r,n,i,a){var o,s=t.length-1,c=new Array(s),u=l(r,n,t,i,a);for(o=0;o&lt;s;o++){var f=(e||[])[o];c[o]=void 0===f?[u(t[o]),u(t[o+1],!0)]:[f,f]}return c}e.exports=function(t,e){var r,l,p,d,m=i.getFromId(t,e.xaxis),g=i.getFromId(t,e.yaxis),v=e.xcalendar,y=e.ycalendar,x=function(t){return m.r2c(t,0,v)},b=function(t){return g.r2c(t,0,y)},_=c(t,e,m,&quot;x&quot;),w=_[0],T=_[1],k=c(t,e,g,&quot;y&quot;),A=k[0],M=k[1],S=e._length;T.length&gt;S&amp;&amp;T.splice(S,T.length-S),M.length&gt;S&amp;&amp;M.splice(S,M.length-S);var E=[],L=[],C=[],P=&quot;string&quot;==typeof w.size,I=&quot;string&quot;==typeof A.size,O=[],z=[],D=P?O:w,R=I?z:A,F=0,B=[],N=[],j=e.histnorm,U=e.histfunc,V=-1!==j.indexOf(&quot;density&quot;),H=&quot;max&quot;===U||&quot;min&quot;===U?null:0,q=a.count,G=o[j],Y=!1,W=[],X=[],Z=&quot;z&quot;in e?e.z:&quot;marker&quot;in e&amp;&amp;Array.isArray(e.marker.color)?e.marker.color:&quot;&quot;;Z&amp;&amp;&quot;count&quot;!==U&amp;&amp;(Y=&quot;avg&quot;===U,q=a[U]);var J=w.size,K=x(w.start),Q=x(w.end)+(K-i.tickIncrement(K,J,!1,v))/1e6;for(r=K;r&lt;Q;r=i.tickIncrement(r,J,!1,v))L.push(H),O.push(r),Y&amp;&amp;C.push(0);O.push(r);var $,tt=L.length,et=(r-K)/tt,rt=($=K+et/2,m.c2r($,0,v)),nt=A.size,it=b(A.start),at=b(A.end)+(it-i.tickIncrement(it,nt,!1,y))/1e6;for(r=it;r&lt;at;r=i.tickIncrement(r,nt,!1,y)){E.push(L.slice()),z.push(r);var ot=new Array(tt);for(l=0;l&lt;tt;l++)ot[l]=[];N.push(ot),Y&amp;&amp;B.push(C.slice())}z.push(r);var st=E.length,lt=(r-it)/st,ct=function(t){return g.c2r(t,0,y)}(it+lt/2);V&amp;&amp;(W=u(L.length,D,et,P),X=u(E.length,R,lt,I)),P||&quot;date&quot;!==m.type||(D=f(x,D)),I||&quot;date&quot;!==g.type||(R=f(b,R));var ut=!0,ft=!0,ht=new Array(tt),pt=new Array(st),dt=1/0,mt=1/0,gt=1/0,vt=1/0;for(r=0;r&lt;S;r++){var yt=T[r],xt=M[r];p=n.findBin(yt,D),d=n.findBin(xt,R),p&gt;=0&amp;&amp;p&lt;tt&amp;&amp;d&gt;=0&amp;&amp;d&lt;st&amp;&amp;(F+=q(p,r,E[d],Z,B[d]),N[d][p].push(r),ut&amp;&amp;(void 0===ht[p]?ht[p]=yt:ht[p]!==yt&amp;&amp;(ut=!1)),ft&amp;&amp;(void 0===pt[d]?pt[d]=xt:pt[d]!==xt&amp;&amp;(ft=!1)),dt=Math.min(dt,yt-O[p]),mt=Math.min(mt,O[p+1]-yt),gt=Math.min(gt,xt-z[d]),vt=Math.min(vt,z[d+1]-xt))}if(Y)for(d=0;d&lt;st;d++)F+=s(E[d],B[d]);if(G)for(d=0;d&lt;st;d++)G(E[d],F,W,X[d]);return{x:T,xRanges:h(O,ut&amp;&amp;ht,dt,mt,m,v),x0:rt,dx:et,y:M,yRanges:h(z,ft&amp;&amp;pt,gt,vt,g,y),y0:ct,dy:lt,z:E,pts:N}}},{&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554,&quot;../histogram/average&quot;:813,&quot;../histogram/bin_functions&quot;:815,&quot;../histogram/bin_label_vals&quot;:816,&quot;../histogram/calc&quot;:817,&quot;../histogram/norm_functions&quot;:824}],827:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./sample_defaults&quot;),a=t(&quot;../heatmap/style_defaults&quot;),o=t(&quot;../../components/colorscale/defaults&quot;),s=t(&quot;../heatmap/label_defaults&quot;),l=t(&quot;./attributes&quot;);e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,l,r,i)}i(t,e,u,c),!1!==e.visible&amp;&amp;(a(t,e,u,c),o(t,e,c,u,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),u(&quot;hovertemplate&quot;),s(u,c),u(&quot;xhoverformat&quot;),u(&quot;yhoverformat&quot;))}},{&quot;../../components/colorscale/defaults&quot;:376,&quot;../../lib&quot;:503,&quot;../heatmap/label_defaults&quot;:802,&quot;../heatmap/style_defaults&quot;:806,&quot;./attributes&quot;:825,&quot;./sample_defaults&quot;:830}],828:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/hover&quot;),i=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText;e.exports=function(t,e,r,a,o){var s=n(t,e,r,a,o);if(s){var l=(t=s[0]).index,c=l[0],u=l[1],f=t.cd[0],h=f.trace,p=f.xRanges[u],d=f.yRanges[c];return t.xLabel=i(t.xa,[p[0],p[1]],h.xhoverformat),t.yLabel=i(t.ya,[d[0],d[1]],h.yhoverformat),s}}},{&quot;../../plots/cartesian/axes&quot;:554,&quot;../heatmap/hover&quot;:799}],829:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../histogram/cross_trace_defaults&quot;),calc:t(&quot;../heatmap/calc&quot;),plot:t(&quot;../heatmap/plot&quot;),layerName:&quot;heatmaplayer&quot;,colorbar:t(&quot;../heatmap/colorbar&quot;),style:t(&quot;../heatmap/style&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;../histogram/event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram2d&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;histogram&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:568,&quot;../heatmap/calc&quot;:793,&quot;../heatmap/colorbar&quot;:795,&quot;../heatmap/plot&quot;:804,&quot;../heatmap/style&quot;:805,&quot;../histogram/cross_trace_defaults&quot;:819,&quot;../histogram/event_data&quot;:821,&quot;./attributes&quot;:825,&quot;./defaults&quot;:827,&quot;./hover&quot;:828}],830:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=r(&quot;x&quot;),s=r(&quot;y&quot;),l=i.minRowLength(o),c=i.minRowLength(s);l&amp;&amp;c?(e._length=Math.min(l,c),n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],a),(r(&quot;z&quot;)||r(&quot;marker.color&quot;))&amp;&amp;r(&quot;histfunc&quot;),r(&quot;histnorm&quot;),r(&quot;autobinx&quot;),r(&quot;autobiny&quot;)):e.visible=!1}},{&quot;../../lib&quot;:503,&quot;../../registry&quot;:638}],831:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../histogram2d/attributes&quot;),i=t(&quot;../contour/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({x:n.x,y:n.y,z:n.z,marker:n.marker,histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:n.xbins,nbinsy:n.nbinsy,ybins:n.ybins,autobinx:n.autobinx,autobiny:n.autobiny,bingroup:n.bingroup,xbingroup:n.xbingroup,ybingroup:n.ybingroup,autocontour:i.autocontour,ncontours:i.ncontours,contours:i.contours,line:{color:i.line.color,width:s({},i.line.width,{dflt:.5}),dash:i.line.dash,smoothing:i.line.smoothing,editType:&quot;plot&quot;},xhoverformat:o(&quot;x&quot;),yhoverformat:o(&quot;y&quot;),zhoverformat:o(&quot;z&quot;,1),hovertemplate:n.hovertemplate,texttemplate:i.texttemplate,textfont:i.textfont},a(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../contour/attributes&quot;:735,&quot;../histogram2d/attributes&quot;:825}],832:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../histogram2d/sample_defaults&quot;),a=t(&quot;../contour/contours_defaults&quot;),o=t(&quot;../contour/style_defaults&quot;),s=t(&quot;../heatmap/label_defaults&quot;),l=t(&quot;./attributes&quot;);e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,l,r,i)}i(t,e,u,c),!1!==e.visible&amp;&amp;(a(t,e,u,(function(r){return n.coerce2(t,e,l,r)})),o(t,e,u,c),u(&quot;xhoverformat&quot;),u(&quot;yhoverformat&quot;),u(&quot;hovertemplate&quot;),e.contours&amp;&amp;&quot;heatmap&quot;===e.contours.coloring&amp;&amp;s(u,c))}},{&quot;../../lib&quot;:503,&quot;../contour/contours_defaults&quot;:742,&quot;../contour/style_defaults&quot;:756,&quot;../heatmap/label_defaults&quot;:802,&quot;../histogram2d/sample_defaults&quot;:830,&quot;./attributes&quot;:831}],833:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../histogram/cross_trace_defaults&quot;),calc:t(&quot;../contour/calc&quot;),plot:t(&quot;../contour/plot&quot;).plot,layerName:&quot;contourlayer&quot;,style:t(&quot;../contour/style&quot;),colorbar:t(&quot;../contour/colorbar&quot;),hoverPoints:t(&quot;../contour/hover&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram2dcontour&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;contour&quot;,&quot;histogram&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:568,&quot;../contour/calc&quot;:736,&quot;../contour/colorbar&quot;:738,&quot;../contour/hover&quot;:748,&quot;../contour/plot&quot;:753,&quot;../contour/style&quot;:755,&quot;../histogram/cross_trace_defaults&quot;:819,&quot;./attributes&quot;:831,&quot;./defaults&quot;:832}],834:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../pie/attributes&quot;),l=t(&quot;../sunburst/attributes&quot;),c=t(&quot;../treemap/attributes&quot;),u=t(&quot;../treemap/constants&quot;),f=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:l.labels,parents:l.parents,values:l.values,branchvalues:l.branchvalues,count:l.count,level:l.level,maxdepth:l.maxdepth,tiling:{orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;,editType:&quot;plot&quot;},flip:c.tiling.flip,pad:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},marker:f({colors:l.marker.colors,line:l.marker.line,editType:&quot;calc&quot;},a(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),leaf:l.leaf,pathbar:c.pathbar,text:s.text,textinfo:l.textinfo,texttemplate:i({editType:&quot;plot&quot;},{keys:u.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:s.hovertext,hoverinfo:l.hoverinfo,hovertemplate:n({},{keys:u.eventDataKeys}),textfont:s.textfont,insidetextfont:s.insidetextfont,outsidetextfont:c.outsidetextfont,textposition:c.textposition,sort:s.sort,root:l.root,domain:o({name:&quot;icicle&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plots/domain&quot;:584,&quot;../../plots/template_attributes&quot;:633,&quot;../pie/attributes&quot;:900,&quot;../sunburst/attributes&quot;:1045,&quot;../treemap/attributes&quot;:1071,&quot;../treemap/constants&quot;:1074}],835:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;icicle&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:619}],836:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../sunburst/calc&quot;);r.calc=function(t,e){return n.calc(t,e)},r.crossTraceCalc=function(t){return n._runCrossTraceCalc(&quot;icicle&quot;,t)}},{&quot;../sunburst/calc&quot;:1047}],837:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText,l=t(&quot;../bar/constants&quot;).TEXTPAD,c=t(&quot;../../components/colorscale&quot;),u=c.hasColorscale,f=c.handleDefaults;e.exports=function(t,e,r,c){function h(r,a){return n.coerce(t,e,i,r,a)}var p=h(&quot;labels&quot;),d=h(&quot;parents&quot;);if(p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length){var m=h(&quot;values&quot;);m&amp;&amp;m.length?h(&quot;branchvalues&quot;):h(&quot;count&quot;),h(&quot;level&quot;),h(&quot;maxdepth&quot;),h(&quot;tiling.orientation&quot;),h(&quot;tiling.flip&quot;),h(&quot;tiling.pad&quot;);var g=h(&quot;text&quot;);h(&quot;texttemplate&quot;),e.texttemplate||h(&quot;textinfo&quot;,Array.isArray(g)?&quot;text+label&quot;:&quot;label&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;);var v=h(&quot;pathbar.visible&quot;);s(t,e,c,h,&quot;auto&quot;,{hasPathbar:v,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),h(&quot;textposition&quot;),h(&quot;marker.line.width&quot;)&amp;&amp;h(&quot;marker.line.color&quot;,c.paper_bgcolor),h(&quot;marker.colors&quot;);var y=e._hasColorscale=u(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis;y&amp;&amp;f(t,e,c,h,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),h(&quot;leaf.opacity&quot;,y?1:.7),e._hovered={marker:{line:{width:2,color:a.contrast(c.paper_bgcolor)}}},v&amp;&amp;(h(&quot;pathbar.thickness&quot;,e.pathbar.textfont.size+2*l),h(&quot;pathbar.side&quot;),h(&quot;pathbar.edgeshape&quot;)),h(&quot;sort&quot;),h(&quot;root.color&quot;),o(e,c,h),e._length=null}else e.visible=!1}},{&quot;../../components/color&quot;:366,&quot;../../components/colorscale&quot;:378,&quot;../../lib&quot;:503,&quot;../../plots/domain&quot;:584,&quot;../bar/constants&quot;:650,&quot;../bar/defaults&quot;:652,&quot;./attributes&quot;:834}],838:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;../treemap/constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;),h=t(&quot;../sunburst/plot&quot;).formatSliceLabel;e.exports=function(t,e,r,p,d){var m=d.width,g=d.height,v=d.viewX,y=d.viewY,x=d.pathSlice,b=d.toMoveInsideSlice,_=d.strTransform,w=d.hasTransition,T=d.handleSlicesExit,k=d.makeUpdateSliceInterpolator,A=d.makeUpdateTextInterpolator,M=d.prevEntry,S=t._fullLayout,E=e[0].trace,L=-1!==E.textposition.indexOf(&quot;left&quot;),C=-1!==E.textposition.indexOf(&quot;right&quot;),P=-1!==E.textposition.indexOf(&quot;bottom&quot;),I=s(r,[m,g],{flipX:E.tiling.flip.indexOf(&quot;x&quot;)&gt;-1,flipY:E.tiling.flip.indexOf(&quot;y&quot;)&gt;-1,orientation:E.tiling.orientation,pad:{inner:E.tiling.pad},maxDepth:E._maxDepth}).descendants(),O=1/0,z=-1/0;I.forEach((function(t){var e=t.depth;e&gt;=E._maxDepth?(t.x0=t.x1=(t.x0+t.x1)/2,t.y0=t.y1=(t.y0+t.y1)/2):(O=Math.min(O,e),z=Math.max(z,e))})),p=p.data(I,u.getPtId),E._maxVisibleLayers=isFinite(z)?z-O+1:0,p.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),T(p,!1,{},[m,g],x),p.order();var D=null;if(w&amp;&amp;M){var R=u.getPtId(M);p.each((function(t){null===D&amp;&amp;u.getPtId(t)===R&amp;&amp;(D={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})}))}var F=function(){return D||{x0:0,x1:m,y0:0,y1:g}},B=p;return w&amp;&amp;(B=B.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),B.each((function(s){s._x0=v(s.x0),s._x1=v(s.x1),s._y0=y(s.y0),s._y1=y(s.y1),s._hoverX=v(s.x1-E.tiling.pad),s._hoverY=y(P?s.y1-E.tiling.pad/2:s.y0+E.tiling.pad/2);var p=n.select(this),d=i.ensureSingle(p,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?d.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!1,F(),[m,g],{orientation:E.tiling.orientation,flipX:E.tiling.flip.indexOf(&quot;x&quot;)&gt;-1,flipY:E.tiling.flip.indexOf(&quot;y&quot;)&gt;-1});return function(t){return x(e(t))}})):d.attr(&quot;d&quot;,x),p.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{isTransitioning:t._transitioning}),d.call(l,s,E,{hovered:!1}),s.x0===s.x1||s.y0===s.y1?s._text=&quot;&quot;:s._text=h(s,r,E,e,S)||&quot;&quot;;var T=i.ensureSingle(p,&quot;g&quot;,&quot;slicetext&quot;),M=i.ensureSingle(T,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),I=i.ensureUniformFontSize(t,u.determineTextFont(E,s,S.font));M.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,C?&quot;end&quot;:L?&quot;start&quot;:&quot;middle&quot;).call(a.font,I).call(o.convertToTspans,t),s.textBB=a.bBox(M.node()),s.transform=b(s,{fontSize:I.size}),s.transform.fontSize=I.size,w?M.transition().attrTween(&quot;transform&quot;,(function(t){var e=A(t,!1,F(),[m,g]);return function(t){return _(e(t))}})):M.attr(&quot;transform&quot;,_(s))})),D}},{&quot;../../components/drawing&quot;:388,&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;../sunburst/fx&quot;:1050,&quot;../sunburst/helpers&quot;:1051,&quot;../sunburst/plot&quot;:1055,&quot;../treemap/constants&quot;:1074,&quot;./partition&quot;:842,&quot;./style&quot;:844,&quot;@plotly/d3&quot;:58}],839:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;icicle&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:944,&quot;./attributes&quot;:834,&quot;./base_plot&quot;:835,&quot;./calc&quot;:836,&quot;./defaults&quot;:837,&quot;./layout_attributes&quot;:840,&quot;./layout_defaults&quot;:841,&quot;./plot&quot;:843,&quot;./style&quot;:844}],840:[function(t,e,r){&quot;use strict&quot;;e.exports={iciclecolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendiciclecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],841:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;iciclecolorway&quot;,e.colorway),r(&quot;extendiciclecolors&quot;)}},{&quot;../../lib&quot;:503,&quot;./layout_attributes&quot;:840}],842:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;),i=t(&quot;../treemap/flip_tree&quot;);e.exports=function(t,e,r){var a=r.flipX,o=r.flipY,s=&quot;h&quot;===r.orientation,l=r.maxDepth,c=e[0],u=e[1];l&amp;&amp;(c=(t.height+1)*e[0]/Math.min(t.height+1,l),u=(t.height+1)*e[1]/Math.min(t.height+1,l));var f=n.partition().padding(r.pad.inner).size(s?[e[1],c]:[e[0],u])(t);return(s||a||o)&amp;&amp;i(f,e,{swapXY:s,flipX:a,flipY:o}),f}},{&quot;../treemap/flip_tree&quot;:1079,&quot;d3-hierarchy&quot;:115}],843:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../treemap/draw&quot;),i=t(&quot;./draw_descendants&quot;);e.exports=function(t,e,r,a){return n(t,e,r,a,{type:&quot;icicle&quot;,drawDescendants:i})}},{&quot;../treemap/draw&quot;:1076,&quot;./draw_descendants&quot;:838}],844:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../bar/uniform_text&quot;).resizeText;function s(t,e,r){var n=e.data.data,o=!e.children,s=n.i,l=a.castOption(r,s,&quot;marker.line.color&quot;)||i.defaultLine,c=a.castOption(r,s,&quot;marker.line.width&quot;)||0;t.style(&quot;stroke-width&quot;,c).call(i.fill,n.color).call(i.stroke,l).style(&quot;opacity&quot;,o?r.leaf.opacity:null)}e.exports={style:function(t){var e=t._fullLayout._iciclelayer.selectAll(&quot;.trace&quot;);o(t,e,&quot;icicle&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(s,t,r)}))}))},styleOne:s}},{&quot;../../components/color&quot;:366,&quot;../../lib&quot;:503,&quot;../bar/uniform_text&quot;:664,&quot;@plotly/d3&quot;:58}],845:[function(t,e,r){&quot;use strict&quot;;for(var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;./constants&quot;).colormodel,s=[&quot;rgb&quot;,&quot;rgba&quot;,&quot;rgba256&quot;,&quot;hsl&quot;,&quot;hsla&quot;],l=[],c=[],u=0;u&lt;s.length;u++){var f=o[s[u]];l.push(&quot;For the `&quot;+s[u]+&quot;` colormodel, it is [&quot;+(f.zminDflt||f.min).join(&quot;, &quot;)+&quot;].&quot;),c.push(&quot;For the `&quot;+s[u]+&quot;` colormodel, it is [&quot;+(f.zmaxDflt||f.max).join(&quot;, &quot;)+&quot;].&quot;)}e.exports=a({source:{valType:&quot;string&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},colormodel:{valType:&quot;enumerated&quot;,values:s,editType:&quot;calc&quot;},zsmooth:{valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,!1],dflt:!1,editType:&quot;plot&quot;},zmin:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},zmax:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},x0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},y0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dx:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},dy:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},text:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hovertext:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hoverinfo:a({},n.hoverinfo,{flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;color&quot;,&quot;name&quot;,&quot;text&quot;],dflt:&quot;x+y+z+text+name&quot;}),hovertemplate:i({},{keys:[&quot;z&quot;,&quot;color&quot;,&quot;colormodel&quot;]}),transforms:void 0})},{&quot;../../lib/extend&quot;:493,&quot;../../plots/attributes&quot;:550,&quot;../../plots/template_attributes&quot;:633,&quot;./constants&quot;:847}],846:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constants&quot;),a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../../lib&quot;).maxRowLength,l=t(&quot;./helpers&quot;).getImageSize;function c(t,e,r,i){return function(a){return n.constrain((a-t)*e,r,i)}}function u(t,e){return function(r){return n.constrain(r,t,e)}}e.exports=function(t,e){var r,n;if(e._hasZ)r=e.z.length,n=s(e.z);else if(e._hasSource){var f=l(e.source);r=f.height,n=f.width}var h,p=o.getFromId(t,e.xaxis||&quot;x&quot;),d=o.getFromId(t,e.yaxis||&quot;y&quot;),m=p.d2c(e.x0)-e.dx/2,g=d.d2c(e.y0)-e.dy/2,v=[m,m+n*e.dx],y=[g,g+r*e.dy];if(p&amp;&amp;&quot;log&quot;===p.type)for(h=0;h&lt;n;h++)v.push(m+h*e.dx);if(d&amp;&amp;&quot;log&quot;===d.type)for(h=0;h&lt;r;h++)y.push(g+h*e.dy);return e._extremes[p._id]=o.findExtremes(p,v),e._extremes[d._id]=o.findExtremes(d,y),e._scaler=function(t){var e=i.colormodel[t.colormodel],r=(e.colormodel||t.colormodel).length;t._sArray=[];for(var n=0;n&lt;r;n++)e.min[n]!==t.zmin[n]||e.max[n]!==t.zmax[n]?t._sArray.push(c(t.zmin[n],(e.max[n]-e.min[n])/(t.zmax[n]-t.zmin[n]),e.min[n],e.max[n])):t._sArray.push(u(e.min[n],e.max[n]));return function(e){for(var n=e.slice(0,r),i=0;i&lt;r;i++){var o=n[i];if(!a(o))return!1;n[i]=t._sArray[i](o)}return n}}(e),[{x0:m,y0:g,z:e.z,w:n,h:r}]}},{&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554,&quot;./constants&quot;:847,&quot;./helpers&quot;:850,&quot;fast-isnumeric&quot;:190}],847:[function(t,e,r){&quot;use strict&quot;;e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(t){return t.slice(0,3)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]},rgba256:{colormodel:&quot;rgba&quot;,zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(t){var e=t.slice(0,3);return e[1]=e[1]+&quot;%&quot;,e[2]=e[2]+&quot;%&quot;,e},suffix:[&quot;\xb0&quot;,&quot;%&quot;,&quot;%&quot;]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(t){var e=t.slice(0,4);return e[1]=e[1]+&quot;%&quot;,e[2]=e[2]+&quot;%&quot;,e},suffix:[&quot;\xb0&quot;,&quot;%&quot;,&quot;%&quot;,&quot;&quot;]}},pixelatedStyle:[&quot;image-rendering: optimizeSpeed&quot;,&quot;image-rendering: -moz-crisp-edges&quot;,&quot;image-rendering: -o-crisp-edges&quot;,&quot;image-rendering: -webkit-optimize-contrast&quot;,&quot;image-rendering: optimize-contrast&quot;,&quot;image-rendering: crisp-edges&quot;,&quot;image-rendering: pixelated&quot;,&quot;&quot;].join(&quot;; &quot;)}},{}],848:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./constants&quot;),o=t(&quot;../../snapshot/helpers&quot;).IMAGE_URL_PREFIX;e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;source&quot;),e.source&amp;&amp;!e.source.match(o)&amp;&amp;delete e.source,e._hasSource=!!e.source;var s,l=r(&quot;z&quot;);(e._hasZ=!(void 0===l||!l.length||!l[0]||!l[0].length),e._hasZ||e._hasSource)?(r(&quot;x0&quot;),r(&quot;y0&quot;),r(&quot;dx&quot;),r(&quot;dy&quot;),e._hasZ?(r(&quot;colormodel&quot;,&quot;rgb&quot;),r(&quot;zmin&quot;,(s=a.colormodel[e.colormodel]).zminDflt||s.min),r(&quot;zmax&quot;,s.zmaxDflt||s.max)):e._hasSource&amp;&amp;(e.colormodel=&quot;rgba256&quot;,s=a.colormodel[e.colormodel],e.zmin=s.zminDflt,e.zmax=s.zmaxDflt),r(&quot;zsmooth&quot;),r(&quot;text&quot;),r(&quot;hovertext&quot;),r(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../lib&quot;:503,&quot;../../snapshot/helpers&quot;:642,&quot;./attributes&quot;:845,&quot;./constants&quot;:847}],849:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return&quot;xVal&quot;in e&amp;&amp;(t.x=e.xVal),&quot;yVal&quot;in e&amp;&amp;(t.y=e.yVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t.color=e.color,t.colormodel=e.trace.colormodel,t.z||(t.z=e.color),t}},{}],850:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;probe-image-size/sync&quot;),i=t(&quot;../../snapshot/helpers&quot;).IMAGE_URL_PREFIX,a=t(&quot;buffer/&quot;).Buffer;r.getImageSize=function(t){var e=t.replace(i,&quot;&quot;),r=new a(e,&quot;base64&quot;);return n(r)}},{&quot;../../snapshot/helpers&quot;:642,&quot;buffer/&quot;:85,&quot;probe-image-size/sync&quot;:276}],851:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./constants&quot;);e.exports=function(t,e,r){var o=t.cd[0],s=o.trace,l=t.xa,c=t.ya;if(!(n.inbox(e-o.x0,e-(o.x0+o.w*s.dx),0)&gt;0||n.inbox(r-o.y0,r-(o.y0+o.h*s.dy),0)&gt;0)){var u,f=Math.floor((e-o.x0)/s.dx),h=Math.floor(Math.abs(r-o.y0)/s.dy);if(s._hasZ?u=o.z[h][f]:s._hasSource&amp;&amp;(u=s._canvas.el.getContext(&quot;2d&quot;).getImageData(f,h,1,1).data),u){var p,d=o.hi||s.hoverinfo;if(d){var m=d.split(&quot;+&quot;);-1!==m.indexOf(&quot;all&quot;)&amp;&amp;(m=[&quot;color&quot;]),-1!==m.indexOf(&quot;color&quot;)&amp;&amp;(p=!0)}var g,v=a.colormodel[s.colormodel],y=v.colormodel||s.colormodel,x=y.length,b=s._scaler(u),_=v.suffix,w=[];(s.hovertemplate||p)&amp;&amp;(w.push(&quot;[&quot;+[b[0]+_[0],b[1]+_[1],b[2]+_[2]].join(&quot;, &quot;)),4===x&amp;&amp;w.push(&quot;, &quot;+b[3]+_[3]),w.push(&quot;]&quot;),w=w.join(&quot;&quot;),t.extraText=y.toUpperCase()+&quot;: &quot;+w),Array.isArray(s.hovertext)&amp;&amp;Array.isArray(s.hovertext[h])?g=s.hovertext[h][f]:Array.isArray(s.text)&amp;&amp;Array.isArray(s.text[h])&amp;&amp;(g=s.text[h][f]);var T=c.c2p(o.y0+(h+.5)*s.dy),k=o.x0+(f+.5)*s.dx,A=o.y0+(h+.5)*s.dy,M=&quot;[&quot;+u.slice(0,s.colormodel.length).join(&quot;, &quot;)+&quot;]&quot;;return[i.extendFlat(t,{index:[h,f],x0:l.c2p(o.x0+f*s.dx),x1:l.c2p(o.x0+(f+1)*s.dx),y0:T,y1:T,color:b,xVal:k,xLabelVal:k,yVal:A,yLabelVal:A,zLabelVal:M,text:g,hovertemplateLabels:{zLabel:M,colorLabel:w,&quot;color[0]Label&quot;:b[0]+_[0],&quot;color[1]Label&quot;:b[1]+_[1],&quot;color[2]Label&quot;:b[2]+_[2],&quot;color[3]Label&quot;:b[3]+_[3]}})]}}}},{&quot;../../components/fx&quot;:406,&quot;../../lib&quot;:503,&quot;./constants&quot;:847}],852:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;image&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;noSortingByValue&quot;],animatable:!1,meta:{}}},{&quot;../../plots/cartesian&quot;:568,&quot;./attributes&quot;:845,&quot;./calc&quot;:846,&quot;./defaults&quot;:848,&quot;./event_data&quot;:849,&quot;./hover&quot;:851,&quot;./plot&quot;:853,&quot;./style&quot;:854}],853:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=i.strTranslate,o=t(&quot;../../constants/xmlns_namespaces&quot;),s=t(&quot;./constants&quot;),l=i.isIOS()||i.isSafari()||i.isIE();e.exports=function(t,e,r,c){var u=e.xaxis,f=e.yaxis,h=!(l||t._context._exportedPlot);i.makeTraceGroups(c,r,&quot;im&quot;).each((function(e){var r=n.select(this),l=e[0],c=l.trace,p=(&quot;fast&quot;===c.zsmooth||!1===c.zsmooth&amp;&amp;h)&amp;&amp;!c._hasZ&amp;&amp;c._hasSource&amp;&amp;&quot;linear&quot;===u.type&amp;&amp;&quot;linear&quot;===f.type;c._realImage=p;var d,m,g,v,y,x,b=l.z,_=l.x0,w=l.y0,T=l.w,k=l.h,A=c.dx,M=c.dy;for(x=0;void 0===d&amp;&amp;x&lt;T;)d=u.c2p(_+x*A),x++;for(x=T;void 0===m&amp;&amp;x&gt;0;)m=u.c2p(_+x*A),x--;for(x=0;void 0===v&amp;&amp;x&lt;k;)v=f.c2p(w+x*M),x++;for(x=k;void 0===y&amp;&amp;x&gt;0;)y=f.c2p(w+x*M),x--;if(m&lt;d&amp;&amp;(g=m,m=d,d=g),y&lt;v&amp;&amp;(g=v,v=y,y=g),!p){d=Math.max(-.5*u._length,d),m=Math.min(1.5*u._length,m),v=Math.max(-.5*f._length,v),y=Math.min(1.5*f._length,y)}var S=Math.round(m-d),E=Math.round(y-v);if(S&lt;=0||E&lt;=0){r.selectAll(&quot;image&quot;).data([]).exit().remove()}else{var L=r.selectAll(&quot;image&quot;).data([e]);L.enter().append(&quot;svg:image&quot;).attr({xmlns:o.svg,preserveAspectRatio:&quot;none&quot;}),L.exit().remove();var C=!1===c.zsmooth?s.pixelatedStyle:&quot;&quot;;if(p){var P=i.simpleMap(u.range,u.r2l),I=i.simpleMap(f.range,f.r2l),O=P[1]&lt;P[0],z=I[1]&gt;I[0];if(O||z){var D=d+S/2,R=v+E/2;C+=&quot;transform:&quot;+a(D+&quot;px&quot;,R+&quot;px&quot;)+&quot;scale(&quot;+(O?-1:1)+&quot;,&quot;+(z?-1:1)+&quot;)&quot;+a(-D+&quot;px&quot;,-R+&quot;px&quot;)+&quot;;&quot;}}L.attr(&quot;style&quot;,C);var F=new Promise((function(t){if(c._hasZ)t();else if(c._hasSource)if(c._canvas&amp;&amp;c._canvas.el.width===T&amp;&amp;c._canvas.el.height===k&amp;&amp;c._canvas.source===c.source)t();else{var e=document.createElement(&quot;canvas&quot;);e.width=T,e.height=k;var r=e.getContext(&quot;2d&quot;);c._image=c._image||new Image;var n=c._image;n.onload=function(){r.drawImage(n,0,0),c._canvas={el:e,source:c.source},t()},n.setAttribute(&quot;src&quot;,c.source)}})).then((function(){var t;if(c._hasZ)t=B((function(t,e){return b[e][t]})).toDataURL(&quot;image/png&quot;);else if(c._hasSource)if(p)t=c.source;else{var e=c._canvas.el.getContext(&quot;2d&quot;).getImageData(0,0,T,k).data;t=B((function(t,r){var n=4*(r*T+t);return[e[n],e[n+1],e[n+2],e[n+3]]})).toDataURL(&quot;image/png&quot;)}L.attr({&quot;xlink:href&quot;:t,height:E,width:S,x:d,y:v})}));t._promises.push(F)}function B(t){var e=document.createElement(&quot;canvas&quot;);e.width=S,e.height=E;var r,n=e.getContext(&quot;2d&quot;),a=function(t){return i.constrain(Math.round(u.c2p(_+t*A)-d),0,S)},o=function(t){return i.constrain(Math.round(f.c2p(w+t*M)-v),0,E)},h=s.colormodel[c.colormodel],p=h.colormodel||c.colormodel,m=h.fmt;for(x=0;x&lt;l.w;x++){var g=a(x),y=a(x+1);if(y!==g&amp;&amp;!isNaN(y)&amp;&amp;!isNaN(g))for(var b=0;b&lt;l.h;b++){var T=o(b),k=o(b+1);k===T||isNaN(k)||isNaN(T)||!t(x,b)||(r=c._scaler(t(x,b)),n.fillStyle=r?p+&quot;(&quot;+m(r).join(&quot;,&quot;)+&quot;)&quot;:&quot;rgba(0,0,0,0)&quot;,n.fillRect(g,T,y-g,k-T))}}return e}}))}},{&quot;../../constants/xmlns_namespaces&quot;:480,&quot;../../lib&quot;:503,&quot;./constants&quot;:847,&quot;@plotly/d3&quot;:58}],854:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;);e.exports=function(t){n.select(t).selectAll(&quot;.im image&quot;).style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity}))}},{&quot;@plotly/d3&quot;:58}],855:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;../../lib/extend&quot;).extendDeep,a=t(&quot;../../plot_api/edit_types&quot;).overrideAll,o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../components/color/attributes&quot;),l=t(&quot;../../plots/domain&quot;).attributes,c=t(&quot;../../plots/cartesian/layout_attributes&quot;),u=t(&quot;../../plot_api/plot_template&quot;).templatedArray,f=t(&quot;../../constants/delta.js&quot;),h=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).descriptionOnlyNumbers,p=o({editType:&quot;plot&quot;,colorEditType:&quot;plot&quot;}),d={color:{valType:&quot;color&quot;,editType:&quot;plot&quot;},line:{color:{valType:&quot;color&quot;,dflt:s.defaultLine,editType:&quot;plot&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},thickness:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;plot&quot;},editType:&quot;calc&quot;},m={valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},g=u(&quot;step&quot;,i({},d,{range:m}));e.exports={mode:{valType:&quot;flaglist&quot;,editType:&quot;calc&quot;,flags:[&quot;number&quot;,&quot;delta&quot;,&quot;gauge&quot;],dflt:&quot;number&quot;},value:{valType:&quot;number&quot;,editType:&quot;calc&quot;,anim:!0},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;plot&quot;},domain:l({name:&quot;indicator&quot;,trace:!0,editType:&quot;calc&quot;}),title:{text:{valType:&quot;string&quot;,editType:&quot;plot&quot;},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;plot&quot;},font:n({},p,{}),editType:&quot;plot&quot;},number:{valueformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;,description:h(&quot;value&quot;)},font:n({},p,{}),prefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},suffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;},delta:{reference:{valType:&quot;number&quot;,editType:&quot;calc&quot;},position:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;right&quot;],dflt:&quot;bottom&quot;,editType:&quot;plot&quot;},relative:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;,dflt:!1},valueformat:{valType:&quot;string&quot;,editType:&quot;plot&quot;,description:h(&quot;value&quot;)},increasing:{symbol:{valType:&quot;string&quot;,dflt:f.INCREASING.SYMBOL,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:f.INCREASING.COLOR,editType:&quot;plot&quot;},editType:&quot;plot&quot;},decreasing:{symbol:{valType:&quot;string&quot;,dflt:f.DECREASING.SYMBOL,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:f.DECREASING.COLOR,editType:&quot;plot&quot;},editType:&quot;plot&quot;},font:n({},p,{}),editType:&quot;calc&quot;},gauge:{shape:{valType:&quot;enumerated&quot;,editType:&quot;plot&quot;,dflt:&quot;angular&quot;,values:[&quot;angular&quot;,&quot;bullet&quot;]},bar:i({},d,{color:{dflt:&quot;green&quot;}}),bgcolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:s.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},axis:a({range:m,visible:n({},c.visible,{dflt:!0}),tickmode:c.tickmode,nticks:c.nticks,tick0:c.tick0,dtick:c.dtick,tickvals:c.tickvals,ticktext:c.ticktext,ticks:n({},c.ticks,{dflt:&quot;outside&quot;}),ticklen:c.ticklen,tickwidth:c.tickwidth,tickcolor:c.tickcolor,showticklabels:c.showticklabels,tickfont:o({}),tickangle:c.tickangle,tickformat:c.tickformat,tickformatstops:c.tickformatstops,tickprefix:c.tickprefix,showtickprefix:c.showtickprefix,ticksuffix:c.ticksuffix,showticksuffix:c.showticksuffix,separatethousands:c.separatethousands,exponentformat:c.exponentformat,minexponent:c.minexponent,showexponent:c.showexponent,editType:&quot;plot&quot;},&quot;plot&quot;),steps:g,threshold:{line:{color:n({},d.line.color,{}),width:n({},d.line.width,{dflt:1}),editType:&quot;plot&quot;},thickness:n({},d.thickness,{dflt:.85}),value:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:!1},editType:&quot;plot&quot;},editType:&quot;plot&quot;}}},{&quot;../../components/color/attributes&quot;:365,&quot;../../constants/delta.js&quot;:473,&quot;../../lib/extend&quot;:493,&quot;../../plot_api/edit_types&quot;:536,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/cartesian/layout_attributes&quot;:569,&quot;../../plots/domain&quot;:584,&quot;../../plots/font_attributes&quot;:585}],856:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;indicator&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:619}],857:[function(t,e,r){&quot;use strict&quot;;e.exports={calc:function(t,e){var r=[],n=e.value;&quot;number&quot;!=typeof e._lastValue&amp;&amp;(e._lastValue=e.value);var i=e._lastValue,a=i;return e._hasDelta&amp;&amp;&quot;number&quot;==typeof e.delta.reference&amp;&amp;(a=e.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}}},{}],858:[function(t,e,r){&quot;use strict&quot;;e.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}},{}],859:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../../plot_api/plot_template&quot;),s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;./constants.js&quot;),c=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),u=t(&quot;../../plots/cartesian/tick_mark_defaults&quot;),f=t(&quot;../../plots/cartesian/tick_label_defaults&quot;),h=t(&quot;../../plots/cartesian/prefix_suffix_defaults&quot;);function p(t,e){function r(r,a){return n.coerce(t,e,i.gauge.steps,r,a)}r(&quot;color&quot;),r(&quot;line.color&quot;),r(&quot;line.width&quot;),r(&quot;range&quot;),r(&quot;thickness&quot;)}e.exports={supplyDefaults:function(t,e,r,d){function m(r,a){return n.coerce(t,e,i,r,a)}a(e,d,m),m(&quot;mode&quot;),e._hasNumber=-1!==e.mode.indexOf(&quot;number&quot;),e._hasDelta=-1!==e.mode.indexOf(&quot;delta&quot;),e._hasGauge=-1!==e.mode.indexOf(&quot;gauge&quot;);var g=m(&quot;value&quot;);e._range=[0,&quot;number&quot;==typeof g?1.5*g:1];var v,y,x,b,_,w,T=new Array(2);function k(t,e){return n.coerce(x,b,i.gauge,t,e)}function A(t,e){return n.coerce(_,w,i.gauge.axis,t,e)}if(e._hasNumber&amp;&amp;(m(&quot;number.valueformat&quot;),m(&quot;number.font.color&quot;,d.font.color),m(&quot;number.font.family&quot;,d.font.family),m(&quot;number.font.size&quot;),void 0===e.number.font.size&amp;&amp;(e.number.font.size=l.defaultNumberFontSize,T[0]=!0),m(&quot;number.prefix&quot;),m(&quot;number.suffix&quot;),v=e.number.font.size),e._hasDelta&amp;&amp;(m(&quot;delta.font.color&quot;,d.font.color),m(&quot;delta.font.family&quot;,d.font.family),m(&quot;delta.font.size&quot;),void 0===e.delta.font.size&amp;&amp;(e.delta.font.size=(e._hasNumber?.5:1)*(v||l.defaultNumberFontSize),T[1]=!0),m(&quot;delta.reference&quot;,e.value),m(&quot;delta.relative&quot;),m(&quot;delta.valueformat&quot;,e.delta.relative?&quot;2%&quot;:&quot;&quot;),m(&quot;delta.increasing.symbol&quot;),m(&quot;delta.increasing.color&quot;),m(&quot;delta.decreasing.symbol&quot;),m(&quot;delta.decreasing.color&quot;),m(&quot;delta.position&quot;),y=e.delta.font.size),e._scaleNumbers=(!e._hasNumber||T[0])&amp;&amp;(!e._hasDelta||T[1])||!1,m(&quot;title.font.color&quot;,d.font.color),m(&quot;title.font.family&quot;,d.font.family),m(&quot;title.font.size&quot;,.25*(v||y||l.defaultNumberFontSize)),m(&quot;title.text&quot;),e._hasGauge){(x=t.gauge)||(x={}),b=o.newContainer(e,&quot;gauge&quot;),k(&quot;shape&quot;),(e._isBullet=&quot;bullet&quot;===e.gauge.shape)||m(&quot;title.align&quot;,&quot;center&quot;),(e._isAngular=&quot;angular&quot;===e.gauge.shape)||m(&quot;align&quot;,&quot;center&quot;),k(&quot;bgcolor&quot;,d.paper_bgcolor),k(&quot;borderwidth&quot;),k(&quot;bordercolor&quot;),k(&quot;bar.color&quot;),k(&quot;bar.line.color&quot;),k(&quot;bar.line.width&quot;),k(&quot;bar.thickness&quot;,l.valueThickness*(&quot;bullet&quot;===e.gauge.shape?.5:1)),s(x,b,{name:&quot;steps&quot;,handleItemDefaults:p}),k(&quot;threshold.value&quot;),k(&quot;threshold.thickness&quot;),k(&quot;threshold.line.width&quot;),k(&quot;threshold.line.color&quot;),_={},x&amp;&amp;(_=x.axis||{}),w=o.newContainer(b,&quot;axis&quot;),A(&quot;visible&quot;),e._range=A(&quot;range&quot;,e._range);var M={outerTicks:!0};c(_,w,A,&quot;linear&quot;),h(_,w,A,&quot;linear&quot;,M),f(_,w,A,&quot;linear&quot;,M),u(_,w,A,M)}else m(&quot;title.align&quot;,&quot;center&quot;),m(&quot;align&quot;,&quot;center&quot;),e._isAngular=e._isBullet=!1;e._length=null}}},{&quot;../../lib&quot;:503,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/array_container_defaults&quot;:549,&quot;../../plots/cartesian/prefix_suffix_defaults&quot;:573,&quot;../../plots/cartesian/tick_label_defaults&quot;:578,&quot;../../plots/cartesian/tick_mark_defaults&quot;:579,&quot;../../plots/cartesian/tick_value_defaults&quot;:580,&quot;../../plots/domain&quot;:584,&quot;./attributes&quot;:855,&quot;./constants.js&quot;:858}],860:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;indicator&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;svg&quot;,&quot;noOpacity&quot;,&quot;noHover&quot;],animatable:!0,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./plot&quot;),meta:{}}},{&quot;./attributes&quot;:855,&quot;./base_plot&quot;:856,&quot;./calc&quot;:857,&quot;./defaults&quot;:859,&quot;./plot&quot;:861}],861:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-interpolate&quot;).interpolate,a=t(&quot;d3-interpolate&quot;).interpolateNumber,o=t(&quot;../../lib&quot;),s=o.strScale,l=o.strTranslate,c=o.rad2deg,u=t(&quot;../../constants/alignment&quot;).MID_SHIFT,f=t(&quot;../../components/drawing&quot;),h=t(&quot;./constants&quot;),p=t(&quot;../../lib/svg_text_utils&quot;),d=t(&quot;../../plots/cartesian/axes&quot;),m=t(&quot;../../plots/cartesian/axis_defaults&quot;),g=t(&quot;../../plots/cartesian/position_defaults&quot;),v=t(&quot;../../plots/cartesian/layout_attributes&quot;),y=t(&quot;../../components/color&quot;),x={left:&quot;start&quot;,center:&quot;middle&quot;,right:&quot;end&quot;},b={left:0,center:.5,right:1},_=/[yzafpn\xb5mkMGTPEZY]/;function w(t){return t&amp;&amp;t.duration&gt;0}function T(t){t.each((function(t){y.stroke(n.select(this),t.line.color)})).each((function(t){y.fill(n.select(this),t.color)})).style(&quot;stroke-width&quot;,(function(t){return t.line.width}))}function k(t,e,r){var n=t._fullLayout,i=o.extendFlat({type:&quot;linear&quot;,ticks:&quot;outside&quot;,range:r,showline:!0},e),a={type:&quot;linear&quot;,_id:&quot;x&quot;+e._id},s={letter:&quot;x&quot;,font:n.font,noHover:!0,noTickson:!0};function l(t,e){return o.coerce(i,a,v,t,e)}return m(i,a,l,s,n),g(i,a,l,s),a}function A(t,e,r){return[Math.min(e/t.width,r/t.height),t,e+&quot;x&quot;+r]}function M(t,e,r,i){var a=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;text&quot;),o=n.select(a);return o.text(t).attr(&quot;x&quot;,0).attr(&quot;y&quot;,0).attr(&quot;text-anchor&quot;,r).attr(&quot;data-unformatted&quot;,t).call(p.convertToTspans,i).call(f.font,e),f.bBox(o.node())}function S(t,e,r,n,i,a){var s=&quot;_cache&quot;+e;t[s]&amp;&amp;t[s].key===i||(t[s]={key:i,value:r});var l=o.aggNums(a,null,[t[s].value,n],2);return t[s].value=l,l}e.exports=function(t,e,r,m){var g,v=t._fullLayout;w(r)&amp;&amp;m&amp;&amp;(g=m()),o.makeTraceGroups(v._indicatorlayer,e,&quot;trace&quot;).each((function(e){var m,E,L,C,P,I=e[0].trace,O=n.select(this),z=I._hasGauge,D=I._isAngular,R=I._isBullet,F=I.domain,B={w:v._size.w*(F.x[1]-F.x[0]),h:v._size.h*(F.y[1]-F.y[0]),l:v._size.l+v._size.w*F.x[0],r:v._size.r+v._size.w*(1-F.x[1]),t:v._size.t+v._size.h*(1-F.y[1]),b:v._size.b+v._size.h*F.y[0]},N=B.l+B.w/2,j=B.t+B.h/2,U=Math.min(B.w/2,B.h),V=h.innerRadius*U,H=I.align||&quot;center&quot;;if(E=j,z){if(D&amp;&amp;(m=N,E=j+U/2,L=function(t){return function(t,e){var r=Math.sqrt(t.width/2*(t.width/2)+t.height*t.height);return[e/r,t,e]}(t,.9*V)}),R){var q=h.bulletPadding,G=1-h.bulletNumberDomainSize+q;m=B.l+(G+(1-G)*b[H])*B.w,L=function(t){return A(t,(h.bulletNumberDomainSize-q)*B.w,B.h)}}}else m=B.l+b[H]*B.w,L=function(t){return A(t,B.w,B.h)};!function(t,e,r,i){var c,u,h,m=r[0].trace,g=i.numbersX,v=i.numbersY,T=m.align||&quot;center&quot;,A=x[T],E=i.transitionOpts,L=i.onComplete,C=o.ensureSingle(e,&quot;g&quot;,&quot;numbers&quot;),P=[];m._hasNumber&amp;&amp;P.push(&quot;number&quot;);m._hasDelta&amp;&amp;(P.push(&quot;delta&quot;),&quot;left&quot;===m.delta.position&amp;&amp;P.reverse());var I=C.selectAll(&quot;text&quot;).data(P);function O(e,r,n,i){if(!e.match(&quot;s&quot;)||n&gt;=0==i&gt;=0||r(n).slice(-1).match(_)||r(i).slice(-1).match(_))return r;var a=e.slice().replace(&quot;s&quot;,&quot;f&quot;).replace(/\d+/,(function(t){return parseInt(t)-1})),o=k(t,{tickformat:a});return function(t){return Math.abs(t)&lt;1?d.tickText(o,t).text:r(t)}}I.enter().append(&quot;text&quot;),I.attr(&quot;text-anchor&quot;,(function(){return A})).attr(&quot;class&quot;,(function(t){return t})).attr(&quot;x&quot;,null).attr(&quot;y&quot;,null).attr(&quot;dx&quot;,null).attr(&quot;dy&quot;,null),I.exit().remove();var z,D=m.mode+m.align;m._hasDelta&amp;&amp;(z=function(){var e=k(t,{tickformat:m.delta.valueformat},m._range);e.setScale(),d.prepTicks(e);var i=function(t){return d.tickText(e,t).text},o=function(t){return m.delta.relative?t.relativeDelta:t.delta},s=function(t,e){return 0===t||&quot;number&quot;!=typeof t||isNaN(t)?&quot;-&quot;:(t&gt;0?m.delta.increasing.symbol:m.delta.decreasing.symbol)+e(t)},l=function(t){return t.delta&gt;=0?m.delta.increasing.color:m.delta.decreasing.color};void 0===m._deltaLastValue&amp;&amp;(m._deltaLastValue=o(r[0]));var c=C.select(&quot;text.delta&quot;);function h(){c.text(s(o(r[0]),i)).call(y.fill,l(r[0])).call(p.convertToTspans,t)}return c.call(f.font,m.delta.font).call(y.fill,l({delta:m._deltaLastValue})),w(E)?c.transition().duration(E.duration).ease(E.easing).tween(&quot;text&quot;,(function(){var t=n.select(this),e=o(r[0]),c=m._deltaLastValue,u=O(m.delta.valueformat,i,c,e),f=a(c,e);return m._deltaLastValue=e,function(e){t.text(s(f(e),u)),t.call(y.fill,l({delta:f(e)}))}})).each(&quot;end&quot;,(function(){h(),L&amp;&amp;L()})).each(&quot;interrupt&quot;,(function(){h(),L&amp;&amp;L()})):h(),u=M(s(o(r[0]),i),m.delta.font,A,t),c}(),D+=m.delta.position+m.delta.font.size+m.delta.font.family+m.delta.valueformat,D+=m.delta.increasing.symbol+m.delta.decreasing.symbol,h=u);m._hasNumber&amp;&amp;(!function(){var e=k(t,{tickformat:m.number.valueformat},m._range);e.setScale(),d.prepTicks(e);var i=function(t){return d.tickText(e,t).text},o=m.number.suffix,s=m.number.prefix,l=C.select(&quot;text.number&quot;);function u(){var e=&quot;number&quot;==typeof r[0].y?s+i(r[0].y)+o:&quot;-&quot;;l.text(e).call(f.font,m.number.font).call(p.convertToTspans,t)}w(E)?l.transition().duration(E.duration).ease(E.easing).each(&quot;end&quot;,(function(){u(),L&amp;&amp;L()})).each(&quot;interrupt&quot;,(function(){u(),L&amp;&amp;L()})).attrTween(&quot;text&quot;,(function(){var t=n.select(this),e=a(r[0].lastY,r[0].y);m._lastValue=r[0].y;var l=O(m.number.valueformat,i,r[0].lastY,r[0].y);return function(r){t.text(s+l(e(r))+o)}})):u(),c=M(s+i(r[0].y)+o,m.number.font,A,t)}(),D+=m.number.font.size+m.number.font.family+m.number.valueformat+m.number.suffix+m.number.prefix,h=c);if(m._hasDelta&amp;&amp;m._hasNumber){var R,F,B=[(c.left+c.right)/2,(c.top+c.bottom)/2],N=[(u.left+u.right)/2,(u.top+u.bottom)/2],j=.75*m.delta.font.size;&quot;left&quot;===m.delta.position&amp;&amp;(R=S(m,&quot;deltaPos&quot;,0,-1*(c.width*b[m.align]+u.width*(1-b[m.align])+j),D,Math.min),F=B[1]-N[1],h={width:c.width+u.width+j,height:Math.max(c.height,u.height),left:u.left+R,right:c.right,top:Math.min(c.top,u.top+F),bottom:Math.max(c.bottom,u.bottom+F)}),&quot;right&quot;===m.delta.position&amp;&amp;(R=S(m,&quot;deltaPos&quot;,0,c.width*(1-b[m.align])+u.width*b[m.align]+j,D,Math.max),F=B[1]-N[1],h={width:c.width+u.width+j,height:Math.max(c.height,u.height),left:c.left,right:u.right+R,top:Math.min(c.top,u.top+F),bottom:Math.max(c.bottom,u.bottom+F)}),&quot;bottom&quot;===m.delta.position&amp;&amp;(R=null,F=u.height,h={width:Math.max(c.width,u.width),height:c.height+u.height,left:Math.min(c.left,u.left),right:Math.max(c.right,u.right),top:c.bottom-c.height,bottom:c.bottom+u.height}),&quot;top&quot;===m.delta.position&amp;&amp;(R=null,F=c.top,h={width:Math.max(c.width,u.width),height:c.height+u.height,left:Math.min(c.left,u.left),right:Math.max(c.right,u.right),top:c.bottom-c.height-u.height,bottom:c.bottom}),z.attr({dx:R,dy:F})}(m._hasNumber||m._hasDelta)&amp;&amp;C.attr(&quot;transform&quot;,(function(){var t=i.numbersScaler(h);D+=t[2];var e,r=S(m,&quot;numbersScale&quot;,1,t[0],D,Math.min);m._scaleNumbers||(r=1),e=m._isAngular?v-r*h.bottom:v-r*(h.top+h.bottom)/2,m._numbersTop=r*h.top+e;var n=h[T];&quot;center&quot;===T&amp;&amp;(n=(h.left+h.right)/2);var a=g-r*n;return a=S(m,&quot;numbersTranslate&quot;,0,a,D,Math.max),l(a,e)+s(r)}))}(t,O,e,{numbersX:m,numbersY:E,numbersScaler:L,transitionOpts:r,onComplete:g}),z&amp;&amp;(C={range:I.gauge.axis.range,color:I.gauge.bgcolor,line:{color:I.gauge.bordercolor,width:0},thickness:1},P={range:I.gauge.axis.range,color:&quot;rgba(0, 0, 0, 0)&quot;,line:{color:I.gauge.bordercolor,width:I.gauge.borderwidth},thickness:1});var Y=O.selectAll(&quot;g.angular&quot;).data(D?e:[]);Y.exit().remove();var W=O.selectAll(&quot;g.angularaxis&quot;).data(D?e:[]);W.exit().remove(),D&amp;&amp;function(t,e,r,a){var o,s,f,h,p=r[0].trace,m=a.size,g=a.radius,v=a.innerRadius,y=a.gaugeBg,x=a.gaugeOutline,b=[m.l+m.w/2,m.t+m.h/2+g/2],_=a.gauge,A=a.layer,M=a.transitionOpts,S=a.onComplete,E=Math.PI/2;function L(t){var e=p.gauge.axis.range[0],r=(t-e)/(p.gauge.axis.range[1]-e)*Math.PI-E;return r&lt;-E?-E:r&gt;E?E:r}function C(t){return n.svg.arc().innerRadius((v+g)/2-t/2*(g-v)).outerRadius((v+g)/2+t/2*(g-v)).startAngle(-E)}function P(t){t.attr(&quot;d&quot;,(function(t){return C(t.thickness).startAngle(L(t.range[0])).endAngle(L(t.range[1]))()}))}_.enter().append(&quot;g&quot;).classed(&quot;angular&quot;,!0),_.attr(&quot;transform&quot;,l(b[0],b[1])),A.enter().append(&quot;g&quot;).classed(&quot;angularaxis&quot;,!0).classed(&quot;crisp&quot;,!0),A.selectAll(&quot;g.xangularaxistick,path,text&quot;).remove(),(o=k(t,p.gauge.axis)).type=&quot;linear&quot;,o.range=p.gauge.axis.range,o._id=&quot;xangularaxis&quot;,o.ticklabeloverflow=&quot;allow&quot;,o.setScale();var I=function(t){return(o.range[0]-t.x)/(o.range[1]-o.range[0])*Math.PI+Math.PI},O={},z=d.makeLabelFns(o,0).labelStandoff;O.xFn=function(t){var e=I(t);return Math.cos(e)*z},O.yFn=function(t){var e=I(t),r=Math.sin(e)&gt;0?.2:1;return-Math.sin(e)*(z+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*u)},O.anchorFn=function(t){var e=I(t),r=Math.cos(e);return Math.abs(r)&lt;.1?&quot;middle&quot;:r&gt;0?&quot;start&quot;:&quot;end&quot;},O.heightFn=function(t,e,r){var n=I(t);return-.5*(1+Math.sin(n))*r};var D=function(t){return l(b[0]+g*Math.cos(t),b[1]-g*Math.sin(t))};f=function(t){return D(I(t))};if(s=d.calcTicks(o),h=d.getTickSigns(o)[2],o.visible){h=&quot;inside&quot;===o.ticks?-1:1;var R=(o.linewidth||1)/2;d.drawTicks(t,o,{vals:s,layer:A,path:&quot;M&quot;+h*R+&quot;,0h&quot;+h*o.ticklen,transFn:function(t){var e=I(t);return D(e)+&quot;rotate(&quot;+-c(e)+&quot;)&quot;}}),d.drawLabels(t,o,{vals:s,layer:A,transFn:f,labelFns:O})}var F=[y].concat(p.gauge.steps),B=_.selectAll(&quot;g.bg-arc&quot;).data(F);B.enter().append(&quot;g&quot;).classed(&quot;bg-arc&quot;,!0).append(&quot;path&quot;),B.select(&quot;path&quot;).call(P).call(T),B.exit().remove();var N=C(p.gauge.bar.thickness),j=_.selectAll(&quot;g.value-arc&quot;).data([p.gauge.bar]);j.enter().append(&quot;g&quot;).classed(&quot;value-arc&quot;,!0).append(&quot;path&quot;);var U=j.select(&quot;path&quot;);w(M)?(U.transition().duration(M.duration).ease(M.easing).each(&quot;end&quot;,(function(){S&amp;&amp;S()})).each(&quot;interrupt&quot;,(function(){S&amp;&amp;S()})).attrTween(&quot;d&quot;,(V=N,H=L(r[0].lastY),q=L(r[0].y),function(){var t=i(H,q);return function(e){return V.endAngle(t(e))()}})),p._lastValue=r[0].y):U.attr(&quot;d&quot;,&quot;number&quot;==typeof r[0].y?N.endAngle(L(r[0].y)):&quot;M0,0Z&quot;);var V,H,q;U.call(T),j.exit().remove(),F=[];var G=p.gauge.threshold.value;(G||0===G)&amp;&amp;F.push({range:[G,G],color:p.gauge.threshold.color,line:{color:p.gauge.threshold.line.color,width:p.gauge.threshold.line.width},thickness:p.gauge.threshold.thickness});var Y=_.selectAll(&quot;g.threshold-arc&quot;).data(F);Y.enter().append(&quot;g&quot;).classed(&quot;threshold-arc&quot;,!0).append(&quot;path&quot;),Y.select(&quot;path&quot;).call(P).call(T),Y.exit().remove();var W=_.selectAll(&quot;g.gauge-outline&quot;).data([x]);W.enter().append(&quot;g&quot;).classed(&quot;gauge-outline&quot;,!0).append(&quot;path&quot;),W.select(&quot;path&quot;).call(P).call(T),W.exit().remove()}(t,0,e,{radius:U,innerRadius:V,gauge:Y,layer:W,size:B,gaugeBg:C,gaugeOutline:P,transitionOpts:r,onComplete:g});var X=O.selectAll(&quot;g.bullet&quot;).data(R?e:[]);X.exit().remove();var Z=O.selectAll(&quot;g.bulletaxis&quot;).data(R?e:[]);Z.exit().remove(),R&amp;&amp;function(t,e,r,n){var i,a,o,s,c,u=r[0].trace,f=n.gauge,p=n.layer,m=n.gaugeBg,g=n.gaugeOutline,v=n.size,x=u.domain,b=n.transitionOpts,_=n.onComplete;f.enter().append(&quot;g&quot;).classed(&quot;bullet&quot;,!0),f.attr(&quot;transform&quot;,l(v.l,v.t)),p.enter().append(&quot;g&quot;).classed(&quot;bulletaxis&quot;,!0).classed(&quot;crisp&quot;,!0),p.selectAll(&quot;g.xbulletaxistick,path,text&quot;).remove();var A=v.h,M=u.gauge.bar.thickness*A,S=x.x[0],E=x.x[0]+(x.x[1]-x.x[0])*(u._hasNumber||u._hasDelta?1-h.bulletNumberDomainSize:1);(i=k(t,u.gauge.axis))._id=&quot;xbulletaxis&quot;,i.domain=[S,E],i.setScale(),a=d.calcTicks(i),o=d.makeTransTickFn(i),s=d.getTickSigns(i)[2],c=v.t+v.h,i.visible&amp;&amp;(d.drawTicks(t,i,{vals:&quot;inside&quot;===i.ticks?d.clipEnds(i,a):a,layer:p,path:d.makeTickPath(i,c,s),transFn:o}),d.drawLabels(t,i,{vals:a,layer:p,transFn:o,labelFns:d.makeLabelFns(i,c)}));function L(t){t.attr(&quot;width&quot;,(function(t){return Math.max(0,i.c2p(t.range[1])-i.c2p(t.range[0]))})).attr(&quot;x&quot;,(function(t){return i.c2p(t.range[0])})).attr(&quot;y&quot;,(function(t){return.5*(1-t.thickness)*A})).attr(&quot;height&quot;,(function(t){return t.thickness*A}))}var C=[m].concat(u.gauge.steps),P=f.selectAll(&quot;g.bg-bullet&quot;).data(C);P.enter().append(&quot;g&quot;).classed(&quot;bg-bullet&quot;,!0).append(&quot;rect&quot;),P.select(&quot;rect&quot;).call(L).call(T),P.exit().remove();var I=f.selectAll(&quot;g.value-bullet&quot;).data([u.gauge.bar]);I.enter().append(&quot;g&quot;).classed(&quot;value-bullet&quot;,!0).append(&quot;rect&quot;),I.select(&quot;rect&quot;).attr(&quot;height&quot;,M).attr(&quot;y&quot;,(A-M)/2).call(T),w(b)?I.select(&quot;rect&quot;).transition().duration(b.duration).ease(b.easing).each(&quot;end&quot;,(function(){_&amp;&amp;_()})).each(&quot;interrupt&quot;,(function(){_&amp;&amp;_()})).attr(&quot;width&quot;,Math.max(0,i.c2p(Math.min(u.gauge.axis.range[1],r[0].y)))):I.select(&quot;rect&quot;).attr(&quot;width&quot;,&quot;number&quot;==typeof r[0].y?Math.max(0,i.c2p(Math.min(u.gauge.axis.range[1],r[0].y))):0);I.exit().remove();var O=r.filter((function(){return u.gauge.threshold.value||0===u.gauge.threshold.value})),z=f.selectAll(&quot;g.threshold-bullet&quot;).data(O);z.enter().append(&quot;g&quot;).classed(&quot;threshold-bullet&quot;,!0).append(&quot;line&quot;),z.select(&quot;line&quot;).attr(&quot;x1&quot;,i.c2p(u.gauge.threshold.value)).attr(&quot;x2&quot;,i.c2p(u.gauge.threshold.value)).attr(&quot;y1&quot;,(1-u.gauge.threshold.thickness)/2*A).attr(&quot;y2&quot;,(1-(1-u.gauge.threshold.thickness)/2)*A).call(y.stroke,u.gauge.threshold.line.color).style(&quot;stroke-width&quot;,u.gauge.threshold.line.width),z.exit().remove();var D=f.selectAll(&quot;g.gauge-outline&quot;).data([g]);D.enter().append(&quot;g&quot;).classed(&quot;gauge-outline&quot;,!0).append(&quot;rect&quot;),D.select(&quot;rect&quot;).call(L).call(T),D.exit().remove()}(t,0,e,{gauge:X,layer:Z,size:B,gaugeBg:C,gaugeOutline:P,transitionOpts:r,onComplete:g});var J=O.selectAll(&quot;text.title&quot;).data(e);J.exit().remove(),J.enter().append(&quot;text&quot;).classed(&quot;title&quot;,!0),J.attr(&quot;text-anchor&quot;,(function(){return R?x.right:x[I.title.align]})).text(I.title.text).call(f.font,I.title.font).call(p.convertToTspans,t),J.attr(&quot;transform&quot;,(function(){var t,e=B.l+B.w*b[I.title.align],r=h.titlePadding,n=f.bBox(J.node());if(z){if(D)if(I.gauge.axis.visible)t=f.bBox(W.node()).top-r-n.bottom;else t=B.t+B.h/2-U/2-n.bottom-r;R&amp;&amp;(t=E-(n.top+n.bottom)/2,e=B.l-h.bulletPadding*B.w)}else t=I._numbersTop-r-n.bottom;return l(e,t)}))}))}},{&quot;../../components/color&quot;:366,&quot;../../components/drawing&quot;:388,&quot;../../constants/alignment&quot;:471,&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../plots/cartesian/axis_defaults&quot;:556,&quot;../../plots/cartesian/layout_attributes&quot;:569,&quot;../../plots/cartesian/position_defaults&quot;:572,&quot;./constants&quot;:858,&quot;@plotly/d3&quot;:58,&quot;d3-interpolate&quot;:116}],862:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../mesh3d/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=t(&quot;../../plot_api/edit_types&quot;).overrideAll;var u=e.exports=c(l({x:{valType:&quot;data_array&quot;},y:{valType:&quot;data_array&quot;},z:{valType:&quot;data_array&quot;},value:{valType:&quot;data_array&quot;},isomin:{valType:&quot;number&quot;},isomax:{valType:&quot;number&quot;},surface:{show:{valType:&quot;boolean&quot;,dflt:!0},count:{valType:&quot;integer&quot;,dflt:2,min:1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1},pattern:{valType:&quot;flaglist&quot;,flags:[&quot;A&quot;,&quot;B&quot;,&quot;C&quot;,&quot;D&quot;,&quot;E&quot;],extras:[&quot;all&quot;,&quot;odd&quot;,&quot;even&quot;],dflt:&quot;all&quot;}},spaceframe:{show:{valType:&quot;boolean&quot;,dflt:!1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:.15}},slices:{x:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},y:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},z:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}}},caps:{x:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},y:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},z:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}}},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertemplate:a(),xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),zhoverformat:i(&quot;z&quot;),valuehoverformat:i(&quot;value&quot;,1),showlegend:l({},s.showlegend,{dflt:!1})},n(&quot;&quot;,{colorAttr:&quot;`value`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{opacity:o.opacity,lightposition:o.lightposition,lighting:o.lighting,flatshading:o.flatshading,contour:o.contour,hoverinfo:l({},s.hoverinfo)}),&quot;calc&quot;,&quot;nested&quot;);u.flatshading.dflt=!0,u.lighting.facenormalsepsilon.dflt=0,u.x.editType=u.y.editType=u.z.editType=u.value.editType=&quot;calc+clearAxisTypes&quot;,u.transforms=void 0},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plot_api/edit_types&quot;:536,&quot;../../plots/attributes&quot;:550,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/template_attributes&quot;:633,&quot;../mesh3d/attributes&quot;:867}],863:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;),i=t(&quot;../streamtube/calc&quot;).processGrid,a=t(&quot;../streamtube/calc&quot;).filter;e.exports=function(t,e){e._len=Math.min(e.x.length,e.y.length,e.z.length,e.value.length),e._x=a(e.x,e._len),e._y=a(e.y,e._len),e._z=a(e.z,e._len),e._value=a(e.value,e._len);var r=i(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;for(var o=1/0,s=-1/0,l=0;l&lt;e._len;l++){var c=e._value[l];o=Math.min(o,c),s=Math.max(s,c)}e._minValues=o,e._maxValues=s,e._vMin=void 0===e.isomin||null===e.isomin?o:e.isomin,e._vMax=void 0===e.isomax||null===e.isomin?s:e.isomax,n(t,e,{vals:[e._vMin,e._vMax],containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:374,&quot;../streamtube/calc&quot;:1041}],864:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../stackgl_modules&quot;).gl_mesh3d,i=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,a=t(&quot;../../lib/str2rgbarray&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts,s=t(&quot;../../plots/gl3d/zip3&quot;),l=function(t,e){for(var r=e.length-1;r&gt;0;r--){var n=Math.min(e[r],e[r-1]),i=Math.max(e[r],e[r-1]);if(i&gt;n&amp;&amp;n&lt;t&amp;&amp;t&lt;=i)return{id:r,distRatio:(i-t)/(i-n)}}return{id:0,distRatio:0}};function c(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.data=null,this.showContour=!1}var u=c.prototype;u.handlePick=function(t){if(t.object===this.mesh){var e=t.data.index,r=this.data._meshX[e],n=this.data._meshY[e],i=this.data._meshZ[e],a=this.data._Ys.length,o=this.data._Zs.length,s=l(r,this.data._Xs).id,c=l(n,this.data._Ys).id,u=l(i,this.data._Zs).id,f=t.index=u+o*c+o*a*s;t.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Array.isArray(h)&amp;&amp;void 0!==h[f]?t.textLabel=h[f]:h&amp;&amp;(t.textLabel=h),!0}},u.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map((function(e){return t.d2l(e,0,n)*r}))}this.data=h(t);var l={positions:s(n(r.xaxis,t._meshX,e.dataScale[0],t.xcalendar),n(r.yaxis,t._meshY,e.dataScale[1],t.ycalendar),n(r.zaxis,t._meshZ,e.dataScale[2],t.zcalendar)),cells:s(t._meshI,t._meshJ,t._meshK),lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:a(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading},c=o(t);l.vertexIntensity=t._meshIntensity,l.vertexIntensityBounds=[c.min,c.max],l.colormap=i(t),this.mesh.update(l)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};var f=[&quot;xyz&quot;,&quot;xzy&quot;,&quot;yxz&quot;,&quot;yzx&quot;,&quot;zxy&quot;,&quot;zyx&quot;];function h(t){t._meshI=[],t._meshJ=[],t._meshK=[];var e,r,n,i,a,o,s,c=t.surface.show,u=t.spaceframe.show,h=t.surface.fill,p=t.spaceframe.fill,d=!1,m=!1,g=0,v=t._Xs,y=t._Ys,x=t._Zs,b=v.length,_=y.length,w=x.length,T=f.indexOf(t._gridFill.replace(/-/g,&quot;&quot;).replace(/\+/g,&quot;&quot;)),k=function(t,e,r){switch(T){case 5:return r+w*e+w*_*t;case 4:return r+w*t+w*b*e;case 3:return e+_*r+_*w*t;case 2:return e+_*t+_*b*r;case 1:return t+b*r+b*w*e;default:return t+b*e+b*_*r}},A=t._minValues,M=t._maxValues,S=t._vMin,E=t._vMax;function L(t,e,s){for(var l=o.length,c=r;c&lt;l;c++)if(t===n[c]&amp;&amp;e===i[c]&amp;&amp;s===a[c])return c;return-1}function C(){r=e}function P(){n=[],i=[],a=[],o=[],e=0,C()}function I(t,r,s,l){return n.push(t),i.push(r),a.push(s),o.push(l),++e-1}function O(t,e,r){for(var n=[],i=0;i&lt;t.length;i++)n[i]=t[i]*(1-r)+r*e[i];return n}function z(t){s=t}function D(t,e){return&quot;all&quot;===t||null===t||t.indexOf(e)&gt;-1}function R(t,e){return null===t?e:t}function F(e,r,n){C();var i,a,o,l=[r],c=[n];if(s&gt;=1)l=[r],c=[n];else if(s&gt;0){var u=function(t,e){var r=t[0],n=t[1],i=t[2],a=function(t,e,r){for(var n=[],i=0;i&lt;t.length;i++)n[i]=(t[i]+e[i]+r[i])/3;return n}(r,n,i),o=Math.sqrt(1-s),l=O(a,r,o),c=O(a,n,o),u=O(a,i,o),f=e[0],h=e[1],p=e[2];return{xyzv:[[r,n,c],[c,l,r],[n,i,u],[u,c,n],[i,r,l],[l,u,i]],abc:[[f,h,-1],[-1,-1,f],[h,p,-1],[-1,-1,h],[p,f,-1],[-1,-1,p]]}}(r,n);l=u.xyzv,c=u.abc}for(var f=0;f&lt;l.length;f++){r=l[f],n=c[f];for(var h=[],p=0;p&lt;3;p++){var d=r[p][0],m=r[p][1],v=r[p][2],y=r[p][3],x=n[p]&gt;-1?n[p]:L(d,m,v);h[p]=x&gt;-1?x:I(d,m,v,R(e,y))}i=h[0],a=h[1],o=h[2],t._meshI.push(i),t._meshJ.push(a),t._meshK.push(o),++g}}function B(t,e,r,n){var i=t[3];i&lt;r&amp;&amp;(i=r),i&gt;n&amp;&amp;(i=n);for(var a=(t[3]-i)/(t[3]-e[3]+1e-9),o=[],s=0;s&lt;4;s++)o[s]=(1-a)*t[s]+a*e[s];return o}function N(t,e,r){return t&gt;=e&amp;&amp;t&lt;=r}function j(t){var e=.001*(E-S);return t&gt;=S-e&amp;&amp;t&lt;=E+e}function U(e){for(var r=[],n=0;n&lt;4;n++){var i=e[n];r.push([t._x[i],t._y[i],t._z[i],t._value[i]])}return r}function V(t,e,r,n,i,a){a||(a=1),r=[-1,-1,-1];var o=!1,s=[N(e[0][3],n,i),N(e[1][3],n,i),N(e[2][3],n,i)];if(!s[0]&amp;&amp;!s[1]&amp;&amp;!s[2])return!1;var l=function(t,e,r){return j(e[0][3])&amp;&amp;j(e[1][3])&amp;&amp;j(e[2][3])?(F(t,e,r),!0):a&lt;3&amp;&amp;V(t,e,r,S,E,++a)};if(s[0]&amp;&amp;s[1]&amp;&amp;s[2])return l(t,e,r)||o;var c=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach((function(a){if(s[a[0]]&amp;&amp;s[a[1]]&amp;&amp;!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(h,u,n,i),d=B(h,f,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,o=l(t,[u,f,d],[r[a[0]],r[a[1]],-1])||o,c=!0}})),c||[[0,1,2],[1,2,0],[2,0,1]].forEach((function(a){if(s[a[0]]&amp;&amp;!s[a[1]]&amp;&amp;!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(f,u,n,i),d=B(h,u,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,c=!0}})),o}function H(t,e,r,n){var i=!1,a=U(e),o=[N(a[0][3],r,n),N(a[1][3],r,n),N(a[2][3],r,n),N(a[3][3],r,n)];if(!(o[0]||o[1]||o[2]||o[3]))return i;if(o[0]&amp;&amp;o[1]&amp;&amp;o[2]&amp;&amp;o[3])return m&amp;&amp;(i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(3,0,1),n(2,3,0),n(1,2,3)}(t,a,e)||i),i;var s=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach((function(l){if(o[l[0]]&amp;&amp;o[l[1]]&amp;&amp;o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]];if(m)i=F(t,[c,u,f],[e[l[0]],e[l[1]],e[l[2]]])||i;else{var p=B(h,c,r,n),d=B(h,u,r,n),g=B(h,f,r,n);i=F(null,[p,d,g],[-1,-1,-1])||i}s=!0}})),s?i:([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach((function(l){if(o[l[0]]&amp;&amp;o[l[1]]&amp;&amp;!o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(f,c,r,n),d=B(f,u,r,n),g=B(h,u,r,n),v=B(h,c,r,n);m?(i=F(t,[c,v,p],[e[l[0]],-1,-1])||i,i=F(t,[u,d,g],[e[l[1]],-1,-1])||i):i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(2,3,0)}(null,[p,d,g,v],[-1,-1,-1,-1])||i,s=!0}})),s||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach((function(l){if(o[l[0]]&amp;&amp;!o[l[1]]&amp;&amp;!o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(u,c,r,n),d=B(f,c,r,n),g=B(h,c,r,n);m?(i=F(t,[c,p,d],[e[l[0]],-1,-1])||i,i=F(t,[c,d,g],[e[l[0]],-1,-1])||i,i=F(t,[c,g,p],[e[l[0]],-1,-1])||i):i=F(null,[p,d,g],[-1,-1,-1])||i,s=!0}})),i)}function q(t,e,r,n,i,a,o,s,l,c,u){var f=!1;return d&amp;&amp;(D(t,&quot;A&quot;)&amp;&amp;(f=H(null,[e,r,n,a],c,u)||f),D(t,&quot;B&quot;)&amp;&amp;(f=H(null,[r,n,i,l],c,u)||f),D(t,&quot;C&quot;)&amp;&amp;(f=H(null,[r,a,o,l],c,u)||f),D(t,&quot;D&quot;)&amp;&amp;(f=H(null,[n,a,s,l],c,u)||f),D(t,&quot;E&quot;)&amp;&amp;(f=H(null,[r,n,a,l],c,u)||f)),m&amp;&amp;(f=H(t,[r,n,a,l],c,u)||f),f}function G(t,e,r,n,i,a,o,s){return[!0===s[0]||V(t,U([e,r,n]),[e,r,n],a,o),!0===s[1]||V(t,U([n,i,e]),[n,i,e],a,o)]}function Y(t,e,r,n,i,a,o,s,l){return s?G(t,e,r,i,n,a,o,l):G(t,r,i,n,e,a,o,l)}function W(t,e,r,n,i,a,o){var s,l,c,u,f=!1,h=function(){f=V(t,[s,l,c],[-1,-1,-1],i,a)||f,f=V(t,[c,u,s],[-1,-1,-1],i,a)||f},p=o[0],d=o[1],m=o[2];return p&amp;&amp;(s=O(U([k(e,r-0,n-0)])[0],U([k(e-1,r-0,n-0)])[0],p),l=O(U([k(e,r-0,n-1)])[0],U([k(e-1,r-0,n-1)])[0],p),c=O(U([k(e,r-1,n-1)])[0],U([k(e-1,r-1,n-1)])[0],p),u=O(U([k(e,r-1,n-0)])[0],U([k(e-1,r-1,n-0)])[0],p),h()),d&amp;&amp;(s=O(U([k(e-0,r,n-0)])[0],U([k(e-0,r-1,n-0)])[0],d),l=O(U([k(e-0,r,n-1)])[0],U([k(e-0,r-1,n-1)])[0],d),c=O(U([k(e-1,r,n-1)])[0],U([k(e-1,r-1,n-1)])[0],d),u=O(U([k(e-1,r,n-0)])[0],U([k(e-1,r-1,n-0)])[0],d),h()),m&amp;&amp;(s=O(U([k(e-0,r-0,n)])[0],U([k(e-0,r-0,n-1)])[0],m),l=O(U([k(e-0,r-1,n)])[0],U([k(e-0,r-1,n-1)])[0],m),c=O(U([k(e-1,r-1,n)])[0],U([k(e-1,r-1,n-1)])[0],m),u=O(U([k(e-1,r-0,n)])[0],U([k(e-1,r-0,n-1)])[0],m),h()),f}function X(t,e,r,n,i,a,o,s,l,c,u,f){var h=t;return f?(d&amp;&amp;&quot;even&quot;===t&amp;&amp;(h=null),q(h,e,r,n,i,a,o,s,l,c,u)):(d&amp;&amp;&quot;odd&quot;===t&amp;&amp;(h=null),q(h,l,s,o,a,i,n,r,e,c,u))}function Z(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;w;c++)for(var u=1;u&lt;_;u++)a.push(Y(t,k(l,u-1,c-1),k(l,u-1,c),k(l,u,c-1),k(l,u,c),r,n,(l+u+c)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function J(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;b;c++)for(var u=1;u&lt;w;u++)a.push(Y(t,k(c-1,l,u-1),k(c,l,u-1),k(c-1,l,u),k(c,l,u),r,n,(c+l+u)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function K(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;_;c++)for(var u=1;u&lt;b;u++)a.push(Y(t,k(u-1,c-1,l),k(u-1,c,l),k(u,c-1,l),k(u,c,l),r,n,(u+c+l)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function Q(t,e,r){for(var n=1;n&lt;w;n++)for(var i=1;i&lt;_;i++)for(var a=1;a&lt;b;a++)X(t,k(a-1,i-1,n-1),k(a-1,i-1,n),k(a-1,i,n-1),k(a-1,i,n),k(a,i-1,n-1),k(a,i-1,n),k(a,i,n-1),k(a,i,n),e,r,(a+i+n)%2)}function $(t,e,r){d=!0,Q(t,e,r),d=!1}function tt(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;w;u++)for(var f=1;f&lt;_;f++)o.push(W(t,c,f,u,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function et(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;b;u++)for(var f=1;f&lt;w;f++)o.push(W(t,u,c,f,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function rt(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;_;u++)for(var f=1;f&lt;b;f++)o.push(W(t,f,u,c,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function nt(t,e){for(var r=[],n=t;n&lt;e;n++)r.push(n);return r}return function(){if(P(),function(){for(var e=0;e&lt;b;e++)for(var r=0;r&lt;_;r++)for(var n=0;n&lt;w;n++){var i=k(e,r,n);I(t._x[i],t._y[i],t._z[i],t._value[i])}}(),u&amp;&amp;p&amp;&amp;(z(p),m=!0,Q(null,S,E),m=!1),c&amp;&amp;h){z(h);for(var e=t.surface.pattern,r=t.surface.count,s=0;s&lt;r;s++){var f=1===r?.5:s/(r-1),d=(1-f)*S+f*E,T=Math.abs(d-A)&gt;Math.abs(d-M)?[A,d]:[d,M];$(e,T[0],T[1])}}var L=[[Math.min(S,M),Math.max(S,M)],[Math.min(A,E),Math.max(A,E)]];[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].forEach((function(e){for(var r=[],n=0;n&lt;L.length;n++){var i=0,a=L[n][0],o=L[n][1],s=t.slices[e];if(s.show&amp;&amp;s.fill){z(s.fill);var c=[],u=[],f=[];if(s.locations.length)for(var h=0;h&lt;s.locations.length;h++){var p=l(s.locations[h],&quot;x&quot;===e?v:&quot;y&quot;===e?y:x);0===p.distRatio?c.push(p.id):p.id&gt;0&amp;&amp;(u.push(p.id),&quot;x&quot;===e?f.push([p.distRatio,0,0]):&quot;y&quot;===e?f.push([0,p.distRatio,0]):f.push([0,0,p.distRatio]))}else c=nt(1,&quot;x&quot;===e?b-1:&quot;y&quot;===e?_-1:w-1);u.length&gt;0&amp;&amp;(r[i]=&quot;x&quot;===e?tt(null,u,a,o,f,r[i]):&quot;y&quot;===e?et(null,u,a,o,f,r[i]):rt(null,u,a,o,f,r[i]),i++),c.length&gt;0&amp;&amp;(r[i]=&quot;x&quot;===e?Z(null,c,a,o,r[i]):&quot;y&quot;===e?J(null,c,a,o,r[i]):K(null,c,a,o,r[i]),i++)}var d=t.caps[e];d.show&amp;&amp;d.fill&amp;&amp;(z(d.fill),r[i]=&quot;x&quot;===e?Z(null,[0,b-1],a,o,r[i]):&quot;y&quot;===e?J(null,[0,_-1],a,o,r[i]):K(null,[0,w-1],a,o,r[i]),i++)}})),0===g&amp;&amp;P(),t._meshX=n,t._meshY=i,t._meshZ=a,t._meshIntensity=o,t._Xs=v,t._Ys=y,t._Zs=x}(),t}e.exports={findNearestOnAxis:l,generateIsoMeshes:h,createIsosurfaceTrace:function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new c(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}}},{&quot;../../../stackgl_modules&quot;:1120,&quot;../../components/colorscale&quot;:378,&quot;../../lib/gl_format_color&quot;:499,&quot;../../lib/str2rgbarray&quot;:528,&quot;../../plots/gl3d/zip3&quot;:609}],865:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../../components/colorscale/defaults&quot;);function s(t,e,r,n,a){var s=a(&quot;isomin&quot;),l=a(&quot;isomax&quot;);null!=l&amp;&amp;null!=s&amp;&amp;s&gt;l&amp;&amp;(e.isomin=null,e.isomax=null);var c=a(&quot;x&quot;),u=a(&quot;y&quot;),f=a(&quot;z&quot;),h=a(&quot;value&quot;);c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length?(i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],n),a(&quot;valuehoverformat&quot;),[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].forEach((function(t){a(t+&quot;hoverformat&quot;);var e=&quot;caps.&quot;+t;a(e+&quot;.show&quot;)&amp;&amp;a(e+&quot;.fill&quot;);var r=&quot;slices.&quot;+t;a(r+&quot;.show&quot;)&amp;&amp;(a(r+&quot;.fill&quot;),a(r+&quot;.locations&quot;))})),a(&quot;spaceframe.show&quot;)&amp;&amp;a(&quot;spaceframe.fill&quot;),a(&quot;surface.show&quot;)&amp;&amp;(a(&quot;surface.count&quot;),a(&quot;surface.fill&quot;),a(&quot;surface.pattern&quot;)),a(&quot;contour.show&quot;)&amp;&amp;(a(&quot;contour.color&quot;),a(&quot;contour.width&quot;)),[&quot;text&quot;,&quot;hovertext&quot;,&quot;hovertemplate&quot;,&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lighting.vertexnormalsepsilon&quot;,&quot;lighting.facenormalsepsilon&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;flatshading&quot;,&quot;opacity&quot;].forEach((function(t){a(t)})),o(t,e,n,a,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),e._length=null):e.visible=!1}e.exports={supplyDefaults:function(t,e,r,i){s(t,e,r,i,(function(r,i){return n.coerce(t,e,a,r,i)}))},supplyIsoDefaults:s}},{&quot;../../components/colorscale/defaults&quot;:376,&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;./attributes&quot;:862}],866:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,calc:t(&quot;./calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;).createIsosurfaceTrace,moduleType:&quot;trace&quot;,name:&quot;isosurface&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:598,&quot;./attributes&quot;:862,&quot;./calc&quot;:863,&quot;./convert&quot;:864,&quot;./defaults&quot;:865}],867:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../surface/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=l({x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},i:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},j:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},k:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertemplate:a({editType:&quot;calc&quot;}),xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),zhoverformat:i(&quot;z&quot;),delaunayaxis:{valType:&quot;enumerated&quot;,values:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],dflt:&quot;z&quot;,editType:&quot;calc&quot;},alphahull:{valType:&quot;number&quot;,dflt:-1,editType:&quot;calc&quot;},intensity:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},intensitymode:{valType:&quot;enumerated&quot;,values:[&quot;vertex&quot;,&quot;cell&quot;],dflt:&quot;vertex&quot;,editType:&quot;calc&quot;},color:{valType:&quot;color&quot;,editType:&quot;calc&quot;},vertexcolor:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},facecolor:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},transforms:void 0},n(&quot;&quot;,{colorAttr:&quot;`intensity`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{opacity:o.opacity,flatshading:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},contour:{show:l({},o.contours.x.show,{}),color:o.contours.x.color,width:o.contours.x.width,editType:&quot;calc&quot;},lightposition:{x:l({},o.lightposition.x,{dflt:1e5}),y:l({},o.lightposition.y,{dflt:1e5}),z:l({},o.lightposition.z,{dflt:0}),editType:&quot;calc&quot;},lighting:l({vertexnormalsepsilon:{valType:&quot;number&quot;,min:0,max:1,dflt:1e-12,editType:&quot;calc&quot;},facenormalsepsilon:{valType:&quot;number&quot;,min:0,max:1,dflt:1e-6,editType:&quot;calc&quot;},editType:&quot;calc&quot;},o.lighting),hoverinfo:l({},s.hoverinfo,{editType:&quot;calc&quot;}),showlegend:l({},s.showlegend,{dflt:!1})})},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plots/attributes&quot;:550,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/template_attributes&quot;:633,&quot;../surface/attributes&quot;:1057}],868:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){e.intensity&amp;&amp;n(t,e,{vals:e.intensity,containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:374}],869:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../stackgl_modules&quot;).gl_mesh3d,i=t(&quot;../../../stackgl_modules&quot;).delaunay_triangulate,a=t(&quot;../../../stackgl_modules&quot;).alpha_shape,o=t(&quot;../../../stackgl_modules&quot;).convex_hull,s=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,l=t(&quot;../../lib/str2rgbarray&quot;),c=t(&quot;../../components/colorscale&quot;).extractOpts,u=t(&quot;../../plots/gl3d/zip3&quot;);function f(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.color=&quot;#fff&quot;,this.data=null,this.showContour=!1}var h=f.prototype;function p(t){for(var e=[],r=t.length,n=0;n&lt;r;n++)e[n]=l(t[n]);return e}function d(t,e,r,n){for(var i=[],a=e.length,o=0;o&lt;a;o++)i[o]=t.d2l(e[o],0,n)*r;return i}function m(t){for(var e=[],r=t.length,n=0;n&lt;r;n++)e[n]=Math.round(t[n]);return e}function g(t,e){for(var r=t.length,n=0;n&lt;r;n++)if(t[n]&lt;=-.5||t[n]&gt;=e-.5)return!1;return!0}h.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index;t.data._cellCenter?t.traceCoordinate=t.data.dataCoordinate:t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]];var r=this.data.hovertext||this.data.text;return Array.isArray(r)&amp;&amp;void 0!==r[e]?t.textLabel=r[e]:r&amp;&amp;(t.textLabel=r),!0}},h.update=function(t){var e=this.scene,r=e.fullSceneLayout;this.data=t;var n,f=t.x.length,h=u(d(r.xaxis,t.x,e.dataScale[0],t.xcalendar),d(r.yaxis,t.y,e.dataScale[1],t.ycalendar),d(r.zaxis,t.z,e.dataScale[2],t.zcalendar));if(t.i&amp;&amp;t.j&amp;&amp;t.k){if(t.i.length!==t.j.length||t.j.length!==t.k.length||!g(t.i,f)||!g(t.j,f)||!g(t.k,f))return;n=u(m(t.i),m(t.j),m(t.k))}else n=0===t.alphahull?o(h):t.alphahull&gt;0?a(t.alphahull,h):function(t,e){for(var r=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].indexOf(t),n=[],a=e.length,o=0;o&lt;a;o++)n[o]=[e[o][(r+1)%3],e[o][(r+2)%3]];return i(n)}(t.delaunayaxis,h);var v={positions:h,cells:n,lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:l(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading};if(t.intensity){var y=c(t);this.color=&quot;#fff&quot;;var x=t.intensitymode;v[x+&quot;Intensity&quot;]=t.intensity,v[x+&quot;IntensityBounds&quot;]=[y.min,y.max],v.colormap=s(t)}else t.vertexcolor?(this.color=t.vertexcolor[0],v.vertexColors=p(t.vertexcolor)):t.facecolor?(this.color=t.facecolor[0],v.cellColors=p(t.facecolor)):(this.color=t.color,v.meshColor=l(t.color));this.mesh.update(v)},h.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new f(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../../stackgl_modules&quot;:1120,&quot;../../components/colorscale&quot;:378,&quot;../../lib/gl_format_color&quot;:499,&quot;../../lib/str2rgbarray&quot;:528,&quot;../../plots/gl3d/zip3&quot;:609}],870:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,n){return i.coerce(t,e,o,r,n)}function c(t){var e=t.map((function(t){var e=l(t);return e&amp;&amp;i.isArrayOrTypedArray(e)?e:null}));return e.every((function(t){return t&amp;&amp;t.length===e[0].length}))&amp;&amp;e}c([&quot;x&quot;,&quot;y&quot;,&quot;z&quot;])?(c([&quot;i&quot;,&quot;j&quot;,&quot;k&quot;]),(!e.i||e.j&amp;&amp;e.k)&amp;&amp;(!e.j||e.k&amp;&amp;e.i)&amp;&amp;(!e.k||e.i&amp;&amp;e.j)?(n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],s),[&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lighting.vertexnormalsepsilon&quot;,&quot;lighting.facenormalsepsilon&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;flatshading&quot;,&quot;alphahull&quot;,&quot;delaunayaxis&quot;,&quot;opacity&quot;].forEach((function(t){l(t)})),l(&quot;contour.show&quot;)&amp;&amp;(l(&quot;contour.color&quot;),l(&quot;contour.width&quot;)),&quot;intensity&quot;in t?(l(&quot;intensity&quot;),l(&quot;intensitymode&quot;),a(t,e,s,l,{prefix:&quot;&quot;,cLetter:&quot;c&quot;})):(e.showscale=!1,&quot;facecolor&quot;in t?l(&quot;facecolor&quot;):&quot;vertexcolor&quot;in t?l(&quot;vertexcolor&quot;):l(&quot;color&quot;,r)),l(&quot;text&quot;),l(&quot;hovertext&quot;),l(&quot;hovertemplate&quot;),l(&quot;xhoverformat&quot;),l(&quot;yhoverformat&quot;),l(&quot;zhoverformat&quot;),e._length=null):e.visible=!1):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:376,&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;./attributes&quot;:867}],871:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;mesh3d&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:598,&quot;./attributes&quot;:867,&quot;./calc&quot;:868,&quot;./convert&quot;:869,&quot;./defaults&quot;:870}],872:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).extendFlat,i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,o=t(&quot;../../components/drawing/attributes&quot;).dash,s=t(&quot;../../components/fx/attributes&quot;),l=t(&quot;../../constants/delta.js&quot;),c=l.INCREASING.COLOR,u=l.DECREASING.COLOR,f=i.line;function h(t){return{line:{color:n({},f.color,{dflt:t}),width:f.width,dash:o,editType:&quot;style&quot;},editType:&quot;style&quot;}}e.exports={xperiod:i.xperiod,xperiod0:i.xperiod0,xperiodalignment:i.xperiodalignment,xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},open:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},high:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},low:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},close:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{width:n({},f.width,{}),dash:n({},o,{}),editType:&quot;style&quot;},increasing:h(c),decreasing:h(u),text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},tickwidth:{valType:&quot;number&quot;,min:0,max:.5,dflt:.3,editType:&quot;calc&quot;},hoverlabel:n({},s.hoverlabel,{split:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;style&quot;}})}},{&quot;../../components/drawing/attributes&quot;:387,&quot;../../components/fx/attributes&quot;:397,&quot;../../constants/delta.js&quot;:473,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../scatter/attributes&quot;:926}],873:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=n._,a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r,n){return{o:t,h:e,l:r,c:n}}function c(t,e,r,o,l,c){for(var u=l.makeCalcdata(e,&quot;open&quot;),f=l.makeCalcdata(e,&quot;high&quot;),h=l.makeCalcdata(e,&quot;low&quot;),p=l.makeCalcdata(e,&quot;close&quot;),d=Array.isArray(e.text),m=Array.isArray(e.hovertext),g=!0,v=null,y=!!e.xperiodalignment,x=[],b=0;b&lt;o.length;b++){var _=o[b],w=u[b],T=f[b],k=h[b],A=p[b];if(_!==s&amp;&amp;w!==s&amp;&amp;T!==s&amp;&amp;k!==s&amp;&amp;A!==s){A===w?null!==v&amp;&amp;A!==v&amp;&amp;(g=A&gt;v):g=A&gt;w,v=A;var M=c(w,T,k,A);M.pos=_,M.yc=(w+A)/2,M.i=b,M.dir=g?&quot;increasing&quot;:&quot;decreasing&quot;,M.x=M.pos,M.y=[k,T],y&amp;&amp;(M.orig_p=r[b]),d&amp;&amp;(M.tx=e.text[b]),m&amp;&amp;(M.htx=e.hovertext[b]),x.push(M)}else x.push({pos:_,empty:!0})}return e._extremes[l._id]=a.findExtremes(l,n.concat(h,f),{padded:!0}),x.length&amp;&amp;(x[0].t={labels:{open:i(t,&quot;open:&quot;)+&quot; &quot;,high:i(t,&quot;high:&quot;)+&quot; &quot;,low:i(t,&quot;low:&quot;)+&quot; &quot;,close:i(t,&quot;close:&quot;)+&quot; &quot;}}),x}e.exports={calc:function(t,e){var r=a.getFromId(t,e.xaxis),i=a.getFromId(t,e.yaxis),s=function(t,e,r){var i=r._minDiff;if(!i){var a,s=t._fullData,l=[];for(i=1/0,a=0;a&lt;s.length;a++){var c=s[a];if(&quot;ohlc&quot;===c.type&amp;&amp;!0===c.visible&amp;&amp;c.xaxis===e._id){l.push(c);var u=e.makeCalcdata(c,&quot;x&quot;);c._origX=u;var f=o(r,e,&quot;x&quot;,u).vals;c._xcalc=f;var h=n.distinctVals(f).minDiff;h&amp;&amp;isFinite(h)&amp;&amp;(i=Math.min(i,h))}}for(i===1/0&amp;&amp;(i=1),a=0;a&lt;l.length;a++)l[a]._minDiff=i}return i*r.tickwidth}(t,r,e),u=e._minDiff;e._minDiff=null;var f=e._origX;e._origX=null;var h=e._xcalc;e._xcalc=null;var p=c(t,e,f,h,i,l);return e._extremes[r._id]=a.findExtremes(r,h,{vpad:u/2}),p.length?(n.extendFlat(p[0].t,{wHover:u/2,tickLen:s}),p):[{t:{empty:!0}}]},calcCommon:c}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/align_period&quot;:551,&quot;../../plots/cartesian/axes&quot;:554}],874:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./ohlc_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r,n){r(n+&quot;.line.color&quot;),r(n+&quot;.line.width&quot;,e.line.width),r(n+&quot;.line.dash&quot;,e.line.dash)}e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}i(t,e,c,l)?(a(t,e,l,c,{x:!0}),c(&quot;xhoverformat&quot;),c(&quot;yhoverformat&quot;),c(&quot;line.width&quot;),c(&quot;line.dash&quot;),s(t,e,c,&quot;increasing&quot;),s(t,e,c,&quot;decreasing&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;tickwidth&quot;),l._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{&quot;../../lib&quot;:503,&quot;../scatter/period_defaults&quot;:946,&quot;./attributes&quot;:872,&quot;./ohlc_defaults&quot;:877}],875:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../lib&quot;).fillText,l=t(&quot;../../constants/delta.js&quot;),c={increasing:l.INCREASING.SYMBOL,decreasing:l.DECREASING.SYMBOL};function u(t,e,r,n){var i,s,l=t.cd,c=t.xa,u=l[0].trace,f=l[0].t,h=u.type,p=&quot;ohlc&quot;===h?&quot;l&quot;:&quot;min&quot;,d=&quot;ohlc&quot;===h?&quot;h&quot;:&quot;max&quot;,m=f.bPos||0,g=f.bdPos||f.tickLen,v=f.wHover,y=Math.min(1,g/Math.abs(c.r2c(c.range[1])-c.r2c(c.range[0])));function x(t){var r=function(t){return t.pos+m-e}(t);return a.inbox(r-v,r+v,i)}function b(t){var e=t[p],n=t[d];return e===n||a.inbox(e-r,n-r,i)}function _(t){return(x(t)+b(t))/2}i=t.maxHoverDistance-y,s=t.maxSpikeDistance-y;var w=a.getDistanceFunction(n,x,b,_);if(a.getClosest(l,w,t),!1===t.index)return null;var T=l[t.index];if(T.empty)return null;var k=u[T.dir],A=k.line.color;return o.opacity(A)&amp;&amp;k.line.width?t.color=A:t.color=k.fillcolor,t.x0=c.c2p(T.pos+m-g,!0),t.x1=c.c2p(T.pos+m+g,!0),t.xLabelVal=void 0!==T.orig_p?T.orig_p:T.pos,t.spikeDistance=_(T)*s/i,t.xSpike=c.c2p(T.pos,!0),t}function f(t,e,r,a){var o=t.cd,s=t.ya,l=o[0].trace,c=o[0].t,f=[],h=u(t,e,r,a);if(!h)return[];var p=o[h.index].hi||l.hoverinfo,d=p.split(&quot;+&quot;);if(!(&quot;all&quot;===p||-1!==d.indexOf(&quot;y&quot;)))return[];for(var m=[&quot;high&quot;,&quot;open&quot;,&quot;close&quot;,&quot;low&quot;],g={},v=0;v&lt;m.length;v++){var y,x=m[v],b=l[x][h.index],_=s.c2p(b,!0);b in g?(y=g[b]).yLabel+=&quot;&lt;br&gt;&quot;+c.labels[x]+n.hoverLabelText(s,b,l.yhoverformat):((y=i.extendFlat({},h)).y0=y.y1=_,y.yLabelVal=b,y.yLabel=c.labels[x]+n.hoverLabelText(s,b,l.yhoverformat),y.name=&quot;&quot;,f.push(y),g[b]=y)}return f}function h(t,e,r,i){var a=t.cd,o=t.ya,l=a[0].trace,f=a[0].t,h=u(t,e,r,i);if(!h)return[];var p=a[h.index],d=h.index=p.i,m=p.dir;function g(t){return f.labels[t]+n.hoverLabelText(o,l[t][d],l.yhoverformat)}var v=p.hi||l.hoverinfo,y=v.split(&quot;+&quot;),x=&quot;all&quot;===v,b=x||-1!==y.indexOf(&quot;y&quot;),_=x||-1!==y.indexOf(&quot;text&quot;),w=b?[g(&quot;open&quot;),g(&quot;high&quot;),g(&quot;low&quot;),g(&quot;close&quot;)+&quot;  &quot;+c[m]]:[];return _&amp;&amp;s(p,l,w),h.extraText=w.join(&quot;&lt;br&gt;&quot;),h.y0=h.y1=o.c2p(p.yc,!0),[h]}e.exports={hoverPoints:function(t,e,r,n){return t.cd[0].trace.hoverlabel.split?f(t,e,r,n):h(t,e,r,n)},hoverSplit:f,hoverOnPoints:h}},{&quot;../../components/color&quot;:366,&quot;../../components/fx&quot;:406,&quot;../../constants/delta.js&quot;:473,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554}],876:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;ohlc&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;showLegend&quot;],meta:{},attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;./select&quot;)}},{&quot;../../plots/cartesian&quot;:568,&quot;./attributes&quot;:872,&quot;./calc&quot;:873,&quot;./defaults&quot;:874,&quot;./hover&quot;:875,&quot;./plot&quot;:878,&quot;./select&quot;:879,&quot;./style&quot;:880}],877:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=r(&quot;x&quot;),s=r(&quot;open&quot;),l=r(&quot;high&quot;),c=r(&quot;low&quot;),u=r(&quot;close&quot;);if(r(&quot;hoverlabel.split&quot;),n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;],a),s&amp;&amp;l&amp;&amp;c&amp;&amp;u){var f=Math.min(s.length,l.length,c.length,u.length);return o&amp;&amp;(f=Math.min(f,i.minRowLength(o))),e._length=f,f}}},{&quot;../../lib&quot;:503,&quot;../../registry&quot;:638}],878:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=e.yaxis,s=e.xaxis,l=!!s.rangebreaks;i.makeTraceGroups(a,r,&quot;trace ohlc&quot;).each((function(t){var e=n.select(this),r=t[0],a=r.t;if(!0!==r.trace.visible||a.empty)e.remove();else{var c=a.tickLen,u=e.selectAll(&quot;path&quot;).data(i.identity);u.enter().append(&quot;path&quot;),u.exit().remove(),u.attr(&quot;d&quot;,(function(t){if(t.empty)return&quot;M0,0Z&quot;;var e=s.c2p(t.pos-c,!0),r=s.c2p(t.pos+c,!0),n=l?(e+r)/2:s.c2p(t.pos,!0);return&quot;M&quot;+e+&quot;,&quot;+o.c2p(t.o,!0)+&quot;H&quot;+n+&quot;M&quot;+n+&quot;,&quot;+o.c2p(t.h,!0)+&quot;V&quot;+o.c2p(t.l,!0)+&quot;M&quot;+r+&quot;,&quot;+o.c2p(t.c,!0)+&quot;H&quot;+n}))}}))}},{&quot;../../lib&quot;:503,&quot;@plotly/d3&quot;:58}],879:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].t.bPos||0;if(!1===e)for(r=0;r&lt;n.length;r++)n[r].selected=0;else for(r=0;r&lt;n.length;r++){var l=n[r];e.contains([i.c2p(l.pos+s),a.c2p(l.yc)],null,l.i,t)?(o.push({pointNumber:l.i,x:i.c2d(l.pos),y:a.c2d(l.yc)}),l.selected=1):l.selected=0}return o}},{}],880:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;);e.exports=function(t,e,r){var o=r||n.select(t).selectAll(&quot;g.ohlclayer&quot;).selectAll(&quot;g.trace&quot;);o.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),o.each((function(t){var e=t[0].trace;n.select(this).selectAll(&quot;path&quot;).each((function(t){if(!t.empty){var r=e[t.dir].line;n.select(this).style(&quot;fill&quot;,&quot;none&quot;).call(a.stroke,r.color).call(i.dashLine,r.dash,r.width).style(&quot;opacity&quot;,e.selectedpoints&amp;&amp;!t.selected?.3:1)}}))}))}},{&quot;../../components/color&quot;:366,&quot;../../components/drawing&quot;:388,&quot;@plotly/d3&quot;:58}],881:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/domain&quot;).attributes,c=n({editType:&quot;calc&quot;},o(&quot;line&quot;,{editTypeOverride:&quot;calc&quot;}),{shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;hspline&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},hovertemplate:s({editType:&quot;plot&quot;,arrayOk:!1},{keys:[&quot;count&quot;,&quot;probability&quot;]})});e.exports={domain:l({name:&quot;parcats&quot;,trace:!0,editType:&quot;calc&quot;}),hoverinfo:n({},i.hoverinfo,{flags:[&quot;count&quot;,&quot;probability&quot;],editType:&quot;plot&quot;,arrayOk:!1}),hoveron:{valType:&quot;enumerated&quot;,values:[&quot;category&quot;,&quot;color&quot;,&quot;dimension&quot;],dflt:&quot;category&quot;,editType:&quot;plot&quot;},hovertemplate:s({editType:&quot;plot&quot;,arrayOk:!1},{keys:[&quot;count&quot;,&quot;probability&quot;,&quot;category&quot;,&quot;categorycount&quot;,&quot;colorcount&quot;,&quot;bandcolorcount&quot;]}),arrangement:{valType:&quot;enumerated&quot;,values:[&quot;perpendicular&quot;,&quot;freeform&quot;,&quot;fixed&quot;],dflt:&quot;perpendicular&quot;,editType:&quot;plot&quot;},bundlecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},sortpaths:{valType:&quot;enumerated&quot;,values:[&quot;forward&quot;,&quot;backward&quot;],dflt:&quot;forward&quot;,editType:&quot;plot&quot;},labelfont:a({editType:&quot;calc&quot;}),tickfont:a({editType:&quot;calc&quot;}),dimensions:{_isLinkedToArray:&quot;dimension&quot;,label:{valType:&quot;string&quot;,editType:&quot;calc&quot;},categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},displayindex:{valType:&quot;integer&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;,visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}},line:c,counts:{valType:&quot;number&quot;,min:0,dflt:1,arrayOk:!0,editType:&quot;calc&quot;},customdata:void 0,hoverlabel:void 0,ids:void 0,legendgroup:void 0,legendrank:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plots/attributes&quot;:550,&quot;../../plots/domain&quot;:584,&quot;../../plots/font_attributes&quot;:585,&quot;../../plots/template_attributes&quot;:633}],882:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getModuleCalcData,i=t(&quot;./plot&quot;);r.name=&quot;parcats&quot;,r.plot=function(t,e,r,a){var o=n(t.calcdata,&quot;parcats&quot;);if(o.length){var s=o[0];i(t,s,r,a)}},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;parcats&quot;),a=e._has&amp;&amp;e._has(&quot;parcats&quot;);i&amp;&amp;!a&amp;&amp;n._paperdiv.selectAll(&quot;.parcats&quot;).remove()}},{&quot;../../plots/get_data&quot;:593,&quot;./plot&quot;:887}],883:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/gup&quot;).wrap,i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/calc&quot;),o=t(&quot;../../lib/filter_unique.js&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;fast-isnumeric&quot;);function u(t,e,r){t.valueInds.push(e),t.count+=r}function f(t,e,r){return{categoryInds:t,color:e,rawColor:r,valueInds:[],count:0}}function h(t,e,r){t.valueInds.push(e),t.count+=r}e.exports=function(t,e){var r=l.filterVisible(e.dimensions);if(0===r.length)return[];var p,d,m,g=r.map((function(t){var e;if(&quot;trace&quot;===t.categoryorder)e=null;else if(&quot;array&quot;===t.categoryorder)e=t.categoryarray;else{e=o(t.values);for(var r=!0,n=0;n&lt;e.length;n++)if(!c(e[n])){r=!1;break}e.sort(r?l.sorterAsc:void 0),&quot;category descending&quot;===t.categoryorder&amp;&amp;(e=e.reverse())}return function(t,e){e=null==e?[]:e.map((function(t){return t}));var r={},n={},i=[];e.forEach((function(t,e){r[t]=0,n[t]=e}));for(var a=0;a&lt;t.length;a++){var o,s=t[a];void 0===r[s]?(r[s]=1,o=e.push(s)-1,n[s]=o):(r[s]++,o=n[s]),i.push(o)}var l=e.map((function(t){return r[t]}));return{uniqueValues:e,uniqueCounts:l,inds:i}}(t.values,e)}));p=l.isArrayOrTypedArray(e.counts)?e.counts:[e.counts],function(t){var e;if(function(t){for(var e=new Array(t.length),r=0;r&lt;t.length;r++){if(t[r]&lt;0||t[r]&gt;=t.length)return!1;if(void 0!==e[t[r]])return!1;e[t[r]]=!0}return!0}(t.map((function(t){return t.displayindex}))))for(e=0;e&lt;t.length;e++)t[e]._displayindex=t[e].displayindex;else for(e=0;e&lt;t.length;e++)t[e]._displayindex=e}(r),r.forEach((function(t,e){!function(t,e){t._categoryarray=e.uniqueValues,null===t.ticktext||void 0===t.ticktext?t._ticktext=[]:t._ticktext=t.ticktext.slice();for(var r=t._ticktext.length;r&lt;e.uniqueValues.length;r++)t._ticktext.push(e.uniqueValues[r])}(t,g[e])}));var v,y=e.line;y?(i(e,&quot;line&quot;)&amp;&amp;a(t,e,{vals:e.line.color,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;}),v=s.tryColorscale(y)):v=l.identity;var x,b,_,w,T,k=r[0].values.length,A={},M=g.map((function(t){return t.inds}));for(m=0,x=0;x&lt;k;x++){var S=[];for(b=0;b&lt;M.length;b++)S.push(M[b][x]);d=p[x%p.length],m+=d;var E=(_=x,w=void 0,T=void 0,l.isArrayOrTypedArray(y.color)?T=w=y.color[_%y.color.length]:w=y.color,{color:v(w),rawColor:T}),L=S+&quot;-&quot;+E.rawColor;void 0===A[L]&amp;&amp;(A[L]=f(S,E.color,E.rawColor)),h(A[L],x,d)}var C,P=r.map((function(t,e){return function(t,e,r,n,i){return{dimensionInd:t,containerInd:e,displayInd:r,dimensionLabel:n,count:i,categories:[],dragX:null}}(e,t._index,t._displayindex,t.label,m)}));for(x=0;x&lt;k;x++)for(d=p[x%p.length],b=0;b&lt;P.length;b++){var I=P[b].containerInd,O=g[b].inds[x],z=P[b].categories;if(void 0===z[O]){var D=e.dimensions[I]._categoryarray[O],R=e.dimensions[I]._ticktext[O];z[O]={dimensionInd:b,categoryInd:C=O,categoryValue:D,displayInd:C,categoryLabel:R,valueInds:[],count:0,dragY:null}}u(z[O],x,d)}return n(function(t,e,r){var n=t.map((function(t){return t.categories.length})).reduce((function(t,e){return Math.max(t,e)}));return{dimensions:t,paths:e,trace:void 0,maxCats:n,count:r}}(P,A,m))}},{&quot;../../components/colorscale/calc&quot;:374,&quot;../../components/colorscale/helpers&quot;:377,&quot;../../components/drawing&quot;:388,&quot;../../lib&quot;:503,&quot;../../lib/filter_unique.js&quot;:494,&quot;../../lib/gup&quot;:500,&quot;fast-isnumeric&quot;:190}],884:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../parcoords/merge_length&quot;);function u(t,e){function r(r,i){return n.coerce(t,e,l.dimensions,r,i)}var i=r(&quot;values&quot;),a=r(&quot;visible&quot;);if(i&amp;&amp;i.length||(a=e.visible=!1),a){r(&quot;label&quot;),r(&quot;displayindex&quot;,e._index);var o,s=t.categoryarray,c=Array.isArray(s)&amp;&amp;s.length&gt;0;c&amp;&amp;(o=&quot;array&quot;);var u=r(&quot;categoryorder&quot;,o);&quot;array&quot;===u?(r(&quot;categoryarray&quot;),r(&quot;ticktext&quot;)):(delete t.categoryarray,delete t.ticktext),c||&quot;array&quot;!==u||(e.categoryorder=&quot;trace&quot;)}}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,l,r,i)}var p=s(t,e,{name:&quot;dimensions&quot;,handleItemDefaults:u}),d=function(t,e,r,o,s){s(&quot;line.shape&quot;),s(&quot;line.hovertemplate&quot;);var l=s(&quot;line.color&quot;,o.colorway[0]);if(i(t,&quot;line&quot;)&amp;&amp;n.isArrayOrTypedArray(l)){if(l.length)return s(&quot;line.colorscale&quot;),a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}),l.length;e.line.color=r}return 1/0}(t,e,r,f,h);o(e,f,h),Array.isArray(p)&amp;&amp;p.length||(e.visible=!1),c(e,p,&quot;values&quot;,d),h(&quot;hoveron&quot;),h(&quot;hovertemplate&quot;),h(&quot;arrangement&quot;),h(&quot;bundlecolors&quot;),h(&quot;sortpaths&quot;),h(&quot;counts&quot;);var m={family:f.font.family,size:Math.round(f.font.size),color:f.font.color};n.coerceFont(h,&quot;labelfont&quot;,m);var g={family:f.font.family,size:Math.round(f.font.size/1.2),color:f.font.color};n.coerceFont(h,&quot;tickfont&quot;,g)}},{&quot;../../components/colorscale/defaults&quot;:376,&quot;../../components/colorscale/helpers&quot;:377,&quot;../../lib&quot;:503,&quot;../../plots/array_container_defaults&quot;:549,&quot;../../plots/domain&quot;:584,&quot;../parcoords/merge_length&quot;:897,&quot;./attributes&quot;:881}],885:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},moduleType:&quot;trace&quot;,name:&quot;parcats&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:881,&quot;./base_plot&quot;:882,&quot;./calc&quot;:883,&quot;./defaults&quot;:884,&quot;./plot&quot;:887}],886:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-interpolate&quot;).interpolateNumber,a=t(&quot;../../plot_api/plot_api&quot;),o=t(&quot;../../components/fx&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../components/drawing&quot;),u=t(&quot;tinycolor2&quot;),f=t(&quot;../../lib/svg_text_utils&quot;);function h(t,e,r,i){var a=t.map(F.bind(0,e,r)),o=i.selectAll(&quot;g.parcatslayer&quot;).data([null]);o.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;parcatslayer&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;);var u=o.selectAll(&quot;g.trace.parcats&quot;).data(a,p),h=u.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;trace parcats&quot;);u.attr(&quot;transform&quot;,(function(t){return l(t.x,t.y)})),h.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;paths&quot;);var y=u.select(&quot;g.paths&quot;).selectAll(&quot;path.path&quot;).data((function(t){return t.paths}),p);y.attr(&quot;fill&quot;,(function(t){return t.model.color}));var x=y.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;path&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.model.color})).attr(&quot;fill-opacity&quot;,0);_(x),y.attr(&quot;d&quot;,(function(t){return t.svgD})),x.empty()||y.sort(m),y.exit().remove(),y.on(&quot;mouseover&quot;,g).on(&quot;mouseout&quot;,v).on(&quot;click&quot;,b),h.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;dimensions&quot;);var w=u.select(&quot;g.dimensions&quot;).selectAll(&quot;g.dimension&quot;).data((function(t){return t.dimensions}),p);w.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;dimension&quot;),w.attr(&quot;transform&quot;,(function(t){return l(t.x,0)})),w.exit().remove();var A=w.selectAll(&quot;g.category&quot;).data((function(t){return t.categories}),p),M=A.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;category&quot;);A.attr(&quot;transform&quot;,(function(t){return l(0,t.y)})),M.append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;catrect&quot;).attr(&quot;pointer-events&quot;,&quot;none&quot;),A.select(&quot;rect.catrect&quot;).attr(&quot;fill&quot;,&quot;none&quot;).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})),T(M);var S=A.selectAll(&quot;rect.bandrect&quot;).data((function(t){return t.bands}),p);S.each((function(){s.raiseToTop(this)})),S.attr(&quot;fill&quot;,(function(t){return t.color}));var E=S.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bandrect&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;fill-opacity&quot;,0);S.attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})).attr(&quot;y&quot;,(function(t){return t.y})).attr(&quot;cursor&quot;,(function(t){return&quot;fixed&quot;===t.parcatsViewModel.arrangement?&quot;default&quot;:&quot;perpendicular&quot;===t.parcatsViewModel.arrangement?&quot;ns-resize&quot;:&quot;move&quot;})),k(E),S.exit().remove(),M.append(&quot;text&quot;).attr(&quot;class&quot;,&quot;catlabel&quot;).attr(&quot;pointer-events&quot;,&quot;none&quot;);var z=e._fullLayout.paper_bgcolor;A.select(&quot;text.catlabel&quot;).attr(&quot;text-anchor&quot;,(function(t){return d(t)?&quot;start&quot;:&quot;end&quot;})).attr(&quot;alignment-baseline&quot;,&quot;middle&quot;).style(&quot;text-shadow&quot;,f.makeTextShadow(z)).style(&quot;fill&quot;,&quot;rgb(0, 0, 0)&quot;).attr(&quot;x&quot;,(function(t){return d(t)?t.width+5:-5})).attr(&quot;y&quot;,(function(t){return t.height/2})).text((function(t){return t.model.categoryLabel})).each((function(t){c.font(n.select(this),t.parcatsViewModel.categorylabelfont),f.convertToTspans(n.select(this),e)})),M.append(&quot;text&quot;).attr(&quot;class&quot;,&quot;dimlabel&quot;),A.select(&quot;text.dimlabel&quot;).attr(&quot;text-anchor&quot;,&quot;middle&quot;).attr(&quot;alignment-baseline&quot;,&quot;baseline&quot;).attr(&quot;cursor&quot;,(function(t){return&quot;fixed&quot;===t.parcatsViewModel.arrangement?&quot;default&quot;:&quot;ew-resize&quot;})).attr(&quot;x&quot;,(function(t){return t.width/2})).attr(&quot;y&quot;,-5).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})).each((function(t){c.font(n.select(this),t.parcatsViewModel.labelfont)})),A.selectAll(&quot;rect.bandrect&quot;).on(&quot;mouseover&quot;,L).on(&quot;mouseout&quot;,C),A.exit().remove(),w.call(n.behavior.drag().origin((function(t){return{x:t.x,y:0}})).on(&quot;dragstart&quot;,P).on(&quot;drag&quot;,I).on(&quot;dragend&quot;,O)),u.each((function(t){t.traceSelection=n.select(this),t.pathSelection=n.select(this).selectAll(&quot;g.paths&quot;).selectAll(&quot;path.path&quot;),t.dimensionSelection=n.select(this).selectAll(&quot;g.dimensions&quot;).selectAll(&quot;g.dimension&quot;)})),u.exit().remove()}function p(t){return t.key}function d(t){var e=t.parcatsViewModel.dimensions.length,r=t.parcatsViewModel.dimensions[e-1].model.dimensionInd;return t.model.dimensionInd===r}function m(t,e){return t.model.rawColor&gt;e.model.rawColor?1:t.model.rawColor&lt;e.model.rawColor?-1:0}function g(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){s.raiseToTop(this),w(n.select(this));var e=y(t),r=x(t);if(t.parcatsViewModel.graphDiv.emit(&quot;plotly_hover&quot;,{points:e,event:n.event,constraints:r}),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;none&quot;)){var i,a,l,c=n.mouse(this)[0],f=t.parcatsViewModel.graphDiv,h=t.parcatsViewModel.trace,p=f._fullLayout,d=p._paperdiv.node().getBoundingClientRect(),m=t.parcatsViewModel.graphDiv.getBoundingClientRect();for(l=0;l&lt;t.leftXs.length-1;l++)if(t.leftXs[l]+t.dimWidths[l]-2&lt;=c&amp;&amp;c&lt;=t.leftXs[l+1]+2){var g=t.parcatsViewModel.dimensions[l],v=t.parcatsViewModel.dimensions[l+1];i=(g.x+g.width+v.x)/2,a=(t.topYs[l]+t.topYs[l+1]+t.height)/2;break}var b=t.parcatsViewModel.x+i,_=t.parcatsViewModel.y+a,T=u.mostReadable(t.model.color,[&quot;black&quot;,&quot;white&quot;]),k=t.model.count,A=k/t.parcatsViewModel.model.count,M={countLabel:k,probabilityLabel:A.toFixed(3)},S=[];-1!==t.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;S.push([&quot;Count:&quot;,M.countLabel].join(&quot; &quot;)),-1!==t.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;S.push([&quot;P:&quot;,M.probabilityLabel].join(&quot; &quot;));var E=S.join(&quot;&lt;br&gt;&quot;),L=n.mouse(f)[0];o.loneHover({trace:h,x:b-d.left+m.left,y:_-d.top+m.top,text:E,color:t.model.color,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontSize:10,fontColor:T,idealAlign:L&lt;b?&quot;right&quot;:&quot;left&quot;,hovertemplate:(h.line||{}).hovertemplate,hovertemplateLabels:M,eventData:[{data:h._input,fullData:h,count:k,probability:A}]},{container:p._hoverlayer.node(),outerContainer:p._paper.node(),gd:f})}}}function v(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;(_(n.select(this)),o.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()),t.parcatsViewModel.pathSelection.sort(m),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;))){var e=y(t),r=x(t);t.parcatsViewModel.graphDiv.emit(&quot;plotly_unhover&quot;,{points:e,event:n.event,constraints:r})}}function y(t){for(var e=[],r=z(t.parcatsViewModel),n=0;n&lt;t.model.valueInds.length;n++){var i=t.model.valueInds[n];e.push({curveNumber:r,pointNumber:i})}return e}function x(t){for(var e={},r=t.parcatsViewModel.model.dimensions,n=0;n&lt;r.length;n++){var i=r[n],a=i.categories[t.model.categoryInds[n]];e[i.containerInd]=a.categoryValue}return void 0!==t.model.rawColor&amp;&amp;(e.color=t.model.rawColor),e}function b(t){if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){var e=y(t),r=x(t);t.parcatsViewModel.graphDiv.emit(&quot;plotly_click&quot;,{points:e,event:n.event,constraints:r})}}function _(t){t.attr(&quot;fill&quot;,(function(t){return t.model.color})).attr(&quot;fill-opacity&quot;,.6).attr(&quot;stroke&quot;,&quot;lightgray&quot;).attr(&quot;stroke-width&quot;,.2).attr(&quot;stroke-opacity&quot;,1)}function w(t){t.attr(&quot;fill-opacity&quot;,.8).attr(&quot;stroke&quot;,(function(t){return u.mostReadable(t.model.color,[&quot;black&quot;,&quot;white&quot;])})).attr(&quot;stroke-width&quot;,.3)}function T(t){t.select(&quot;rect.catrect&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,1).attr(&quot;stroke-opacity&quot;,1)}function k(t){t.attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,.2).attr(&quot;stroke-opacity&quot;,1).attr(&quot;fill-opacity&quot;,1)}function A(t){var e=t.parcatsViewModel.pathSelection,r=t.categoryViewModel.model.dimensionInd,n=t.categoryViewModel.model.categoryInd;return e.filter((function(e){return e.model.categoryInds[r]===n&amp;&amp;e.model.color===t.color}))}function M(t,e,r){var i=n.select(t).datum(),a=i.categoryViewModel.model,o=i.parcatsViewModel.graphDiv,s=n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;),l=[];s.each((function(t){A(t).each((function(t){Array.prototype.push.apply(l,y(t))}))}));var c={};c[a.dimensionInd]=a.categoryValue,o.emit(e,{points:l,event:r,constraints:c})}function S(t,e,r){var i=n.select(t).datum(),a=i.categoryViewModel.model,o=i.parcatsViewModel.graphDiv,s=A(i),l=[];s.each((function(t){Array.prototype.push.apply(l,y(t))}));var c={};c[a.dimensionInd]=a.categoryValue,void 0!==i.rawColor&amp;&amp;(c.color=i.rawColor),o.emit(e,{points:l,event:r,constraints:c})}function E(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=n.select(r.parentNode).select(&quot;rect.catrect&quot;),c=l.node().getBoundingClientRect(),u=l.datum(),f=u.parcatsViewModel,h=f.model.dimensions[u.model.dimensionInd],p=f.trace,d=c.top+c.height/2;f.dimensions.length&gt;1&amp;&amp;h.displayInd===f.dimensions.length-1?(i=c.left,a=&quot;left&quot;):(i=c.left+c.width,a=&quot;right&quot;);var m=u.model.count,g=u.model.categoryLabel,v=m/u.parcatsViewModel.model.count,y={countLabel:m,categoryLabel:g,probabilityLabel:v.toFixed(3)},x=[];-1!==u.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;x.push([&quot;Count:&quot;,y.countLabel].join(&quot; &quot;)),-1!==u.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;x.push([&quot;P(&quot;+y.categoryLabel+&quot;):&quot;,y.probabilityLabel].join(&quot; &quot;));var b=x.join(&quot;&lt;br&gt;&quot;);return{trace:p,x:o*(i-e.left),y:s*(d-e.top),text:b,color:&quot;lightgray&quot;,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontSize:12,fontColor:&quot;black&quot;,idealAlign:a,hovertemplate:p.hovertemplate,hovertemplateLabels:y,eventData:[{data:p._input,fullData:p,count:m,category:g,probability:v}]}}function L(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){if(n.mouse(this)[1]&lt;-1)return;var e,r=t.parcatsViewModel.graphDiv,i=r._fullLayout,a=i._paperdiv.node().getBoundingClientRect(),l=t.parcatsViewModel.hoveron;if(&quot;color&quot;===l?(!function(t){var e=n.select(t).datum(),r=A(e);w(r),r.each((function(){s.raiseToTop(this)})),n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;).filter((function(t){return t.color===e.color})).each((function(){s.raiseToTop(this),n.select(this).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,1.5)}))}(this),S(this,&quot;plotly_hover&quot;,n.event)):(!function(t){n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;).each((function(t){var e=A(t);w(e),e.each((function(){s.raiseToTop(this)}))})),n.select(t.parentNode).select(&quot;rect.catrect&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,2.5)}(this),M(this,&quot;plotly_hover&quot;,n.event)),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;none&quot;))&quot;category&quot;===l?e=E(r,a,this):&quot;color&quot;===l?e=function(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=r.getBoundingClientRect(),c=n.select(r).datum(),f=c.categoryViewModel,h=f.parcatsViewModel,p=h.model.dimensions[f.model.dimensionInd],d=h.trace,m=l.y+l.height/2;h.dimensions.length&gt;1&amp;&amp;p.displayInd===h.dimensions.length-1?(i=l.left,a=&quot;left&quot;):(i=l.left+l.width,a=&quot;right&quot;);var g=f.model.categoryLabel,v=c.parcatsViewModel.model.count,y=0;c.categoryViewModel.bands.forEach((function(t){t.color===c.color&amp;&amp;(y+=t.count)}));var x=f.model.count,b=0;h.pathSelection.each((function(t){t.model.color===c.color&amp;&amp;(b+=t.model.count)}));var _=y/v,w=y/b,T=y/x,k={countLabel:v,categoryLabel:g,probabilityLabel:_.toFixed(3)},A=[];-1!==f.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;A.push([&quot;Count:&quot;,k.countLabel].join(&quot; &quot;)),-1!==f.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;(A.push(&quot;P(color \u2229 &quot;+g+&quot;): &quot;+k.probabilityLabel),A.push(&quot;P(&quot;+g+&quot; | color): &quot;+w.toFixed(3)),A.push(&quot;P(color | &quot;+g+&quot;): &quot;+T.toFixed(3)));var M=A.join(&quot;&lt;br&gt;&quot;),S=u.mostReadable(c.color,[&quot;black&quot;,&quot;white&quot;]);return{trace:d,x:o*(i-e.left),y:s*(m-e.top),text:M,color:c.color,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontColor:S,fontSize:10,idealAlign:a,hovertemplate:d.hovertemplate,hovertemplateLabels:k,eventData:[{data:d._input,fullData:d,category:g,count:v,probability:_,categorycount:x,colorcount:b,bandcolorcount:y}]}}(r,a,this):&quot;dimension&quot;===l&amp;&amp;(e=function(t,e,r){var i=[];return n.select(r.parentNode.parentNode).selectAll(&quot;g.category&quot;).select(&quot;rect.catrect&quot;).each((function(){i.push(E(t,e,this))})),i}(r,a,this)),e&amp;&amp;o.loneHover(e,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r})}}function C(t){var e=t.parcatsViewModel;if(!e.dragDimension&amp;&amp;(_(e.pathSelection),T(e.dimensionSelection.selectAll(&quot;g.category&quot;)),k(e.dimensionSelection.selectAll(&quot;g.category&quot;).selectAll(&quot;rect.bandrect&quot;)),o.loneUnhover(e.graphDiv._fullLayout._hoverlayer.node()),e.pathSelection.sort(m),-1===e.hoverinfoItems.indexOf(&quot;skip&quot;))){&quot;color&quot;===t.parcatsViewModel.hoveron?S(this,&quot;plotly_unhover&quot;,n.event):M(this,&quot;plotly_unhover&quot;,n.event)}}function P(t){&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;(t.dragDimensionDisplayInd=t.model.displayInd,t.initialDragDimensionDisplayInds=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),t.dragHasMoved=!1,t.dragCategoryDisplayInd=null,n.select(this).selectAll(&quot;g.category&quot;).select(&quot;rect.catrect&quot;).each((function(e){var r=n.mouse(this)[0],i=n.mouse(this)[1];-2&lt;=r&amp;&amp;r&lt;=e.width+2&amp;&amp;-2&lt;=i&amp;&amp;i&lt;=e.height+2&amp;&amp;(t.dragCategoryDisplayInd=e.model.displayInd,t.initialDragCategoryDisplayInds=t.model.categories.map((function(t){return t.displayInd})),e.model.dragY=e.y,s.raiseToTop(this.parentNode),n.select(this.parentNode).selectAll(&quot;rect.bandrect&quot;).each((function(e){e.y&lt;i&amp;&amp;i&lt;=e.y+e.height&amp;&amp;(t.potentialClickBand=this)})))})),t.parcatsViewModel.dragDimension=t,o.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()))}function I(t){if(&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;(t.dragHasMoved=!0,null!==t.dragDimensionDisplayInd)){var e=t.dragDimensionDisplayInd,r=e-1,i=e+1,a=t.parcatsViewModel.dimensions[e];if(null!==t.dragCategoryDisplayInd){var o=a.categories[t.dragCategoryDisplayInd];o.model.dragY+=n.event.dy;var s=o.model.dragY,l=o.model.displayInd,c=a.categories,u=c[l-1],f=c[l+1];void 0!==u&amp;&amp;s&lt;u.y+u.height/2&amp;&amp;(o.model.displayInd=u.model.displayInd,u.model.displayInd=l),void 0!==f&amp;&amp;s+o.height&gt;f.y+f.height/2&amp;&amp;(o.model.displayInd=f.model.displayInd,f.model.displayInd=l),t.dragCategoryDisplayInd=o.model.displayInd}if(null===t.dragCategoryDisplayInd||&quot;freeform&quot;===t.parcatsViewModel.arrangement){a.model.dragX=n.event.x;var h=t.parcatsViewModel.dimensions[r],p=t.parcatsViewModel.dimensions[i];void 0!==h&amp;&amp;a.model.dragX&lt;h.x+h.width&amp;&amp;(a.model.displayInd=h.model.displayInd,h.model.displayInd=e),void 0!==p&amp;&amp;a.model.dragX+a.width&gt;p.x&amp;&amp;(a.model.displayInd=p.model.displayInd,p.model.displayInd=t.dragDimensionDisplayInd),t.dragDimensionDisplayInd=a.model.displayInd}j(t.parcatsViewModel),N(t.parcatsViewModel),R(t.parcatsViewModel),D(t.parcatsViewModel)}}function O(t){if(&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;null!==t.dragDimensionDisplayInd){n.select(this).selectAll(&quot;text&quot;).attr(&quot;font-weight&quot;,&quot;normal&quot;);var e={},r=z(t.parcatsViewModel),i=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),o=t.initialDragDimensionDisplayInds.some((function(t,e){return t!==i[e]}));o&amp;&amp;i.forEach((function(r,n){var i=t.parcatsViewModel.model.dimensions[n].containerInd;e[&quot;dimensions[&quot;+i+&quot;].displayindex&quot;]=r}));var s=!1;if(null!==t.dragCategoryDisplayInd){var l=t.model.categories.map((function(t){return t.displayInd}));if(s=t.initialDragCategoryDisplayInds.some((function(t,e){return t!==l[e]}))){var c=t.model.categories.slice().sort((function(t,e){return t.displayInd-e.displayInd})),u=c.map((function(t){return t.categoryValue})),f=c.map((function(t){return t.categoryLabel}));e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].categoryarray&quot;]=[u],e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].ticktext&quot;]=[f],e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].categoryorder&quot;]=&quot;array&quot;}}if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)&amp;&amp;!t.dragHasMoved&amp;&amp;t.potentialClickBand&amp;&amp;(&quot;color&quot;===t.parcatsViewModel.hoveron?S(t.potentialClickBand,&quot;plotly_click&quot;,n.event.sourceEvent):M(t.potentialClickBand,&quot;plotly_click&quot;,n.event.sourceEvent)),t.model.dragX=null,null!==t.dragCategoryDisplayInd)t.parcatsViewModel.dimensions[t.dragDimensionDisplayInd].categories[t.dragCategoryDisplayInd].model.dragY=null,t.dragCategoryDisplayInd=null;t.dragDimensionDisplayInd=null,t.parcatsViewModel.dragDimension=null,t.dragHasMoved=null,t.potentialClickBand=null,j(t.parcatsViewModel),N(t.parcatsViewModel),n.transition().duration(300).ease(&quot;cubic-in-out&quot;).each((function(){R(t.parcatsViewModel,!0),D(t.parcatsViewModel,!0)})).each(&quot;end&quot;,(function(){(o||s)&amp;&amp;a.restyle(t.parcatsViewModel.graphDiv,e,[r])}))}}function z(t){for(var e,r=t.graphDiv._fullData,n=0;n&lt;r.length;n++)if(t.key===r[n].uid){e=n;break}return e}function D(t,e){var r;void 0===e&amp;&amp;(e=!1),t.pathSelection.data((function(t){return t.paths}),p),(r=t.pathSelection,e?r.transition():r).attr(&quot;d&quot;,(function(t){return t.svgD}))}function R(t,e){function r(t){return e?t.transition():t}void 0===e&amp;&amp;(e=!1),t.dimensionSelection.data((function(t){return t.dimensions}),p);var i=t.dimensionSelection.selectAll(&quot;g.category&quot;).data((function(t){return t.categories}),p);r(t.dimensionSelection).attr(&quot;transform&quot;,(function(t){return l(t.x,0)})),r(i).attr(&quot;transform&quot;,(function(t){return l(0,t.y)})),i.select(&quot;.dimlabel&quot;).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})),i.select(&quot;.catlabel&quot;).attr(&quot;text-anchor&quot;,(function(t){return d(t)?&quot;start&quot;:&quot;end&quot;})).attr(&quot;x&quot;,(function(t){return d(t)?t.width+5:-5})).each((function(t){var e,r;d(t)?(e=t.width+5,r=&quot;start&quot;):(e=-5,r=&quot;end&quot;),n.select(this).selectAll(&quot;tspan&quot;).attr(&quot;x&quot;,e).attr(&quot;text-anchor&quot;,r)}));var a=i.selectAll(&quot;rect.bandrect&quot;).data((function(t){return t.bands}),p),o=a.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bandrect&quot;).attr(&quot;cursor&quot;,&quot;move&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;fill-opacity&quot;,0);a.attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})).attr(&quot;y&quot;,(function(t){return t.y})),k(o),a.each((function(){s.raiseToTop(this)})),a.exit().remove()}function F(t,e,r){var n,i=r[0],a=e.margin||{l:80,r:80,t:100,b:80},o=i.trace,s=o.domain,l=e.width,c=e.height,u=Math.floor(l*(s.x[1]-s.x[0])),f=Math.floor(c*(s.y[1]-s.y[0])),h=s.x[0]*l+a.l,p=e.height-s.y[1]*e.height+a.t,d=o.line.shape;n=&quot;all&quot;===o.hoverinfo?[&quot;count&quot;,&quot;probability&quot;]:(o.hoverinfo||&quot;&quot;).split(&quot;+&quot;);var m={trace:o,key:o.uid,model:i,x:h,y:p,width:u,height:f,hoveron:o.hoveron,hoverinfoItems:n,arrangement:o.arrangement,bundlecolors:o.bundlecolors,sortpaths:o.sortpaths,labelfont:o.labelfont,categorylabelfont:o.tickfont,pathShape:d,dragDimension:null,margin:a,paths:[],dimensions:[],graphDiv:t,traceSelection:null,pathSelection:null,dimensionSelection:null};return i.dimensions&amp;&amp;(j(m),N(m)),m}function B(t,e,r,n,a){var o,s,l=[],c=[];for(s=0;s&lt;r.length-1;s++)o=i(r[s]+t[s],t[s+1]),l.push(o(a)),c.push(o(1-a));var u=&quot;M &quot;+t[0]+&quot;,&quot;+e[0];for(u+=&quot;l&quot;+r[0]+&quot;,0 &quot;,s=1;s&lt;r.length;s++)u+=&quot;C&quot;+l[s-1]+&quot;,&quot;+e[s-1]+&quot; &quot;+c[s-1]+&quot;,&quot;+e[s]+&quot; &quot;+t[s]+&quot;,&quot;+e[s],u+=&quot;l&quot;+r[s]+&quot;,0 &quot;;for(u+=&quot;l0,&quot;+n+&quot; &quot;,u+=&quot;l -&quot;+r[r.length-1]+&quot;,0 &quot;,s=r.length-2;s&gt;=0;s--)u+=&quot;C&quot;+c[s]+&quot;,&quot;+(e[s+1]+n)+&quot; &quot;+l[s]+&quot;,&quot;+(e[s]+n)+&quot; &quot;+(t[s]+r[s])+&quot;,&quot;+(e[s]+n),u+=&quot;l-&quot;+r[s]+&quot;,0 &quot;;return u+=&quot;Z&quot;}function N(t){var e=t.dimensions,r=t.model,n=e.map((function(t){return t.categories.map((function(t){return t.y}))})),i=t.model.dimensions.map((function(t){return t.categories.map((function(t){return t.displayInd}))})),a=t.model.dimensions.map((function(t){return t.displayInd})),o=t.dimensions.map((function(t){return t.model.dimensionInd})),s=e.map((function(t){return t.x})),l=e.map((function(t){return t.width})),c=[];for(var u in r.paths)r.paths.hasOwnProperty(u)&amp;&amp;c.push(r.paths[u]);function f(t){var e=t.categoryInds.map((function(t,e){return i[e][t]}));return o.map((function(t){return e[t]}))}c.sort((function(e,r){var n=f(e),i=f(r);return&quot;backward&quot;===t.sortpaths&amp;&amp;(n.reverse(),i.reverse()),n.push(e.valueInds[0]),i.push(r.valueInds[0]),t.bundlecolors&amp;&amp;(n.unshift(e.rawColor),i.unshift(r.rawColor)),n&lt;i?-1:n&gt;i?1:0}));for(var h=new Array(c.length),p=e[0].model.count,d=e[0].categories.map((function(t){return t.height})).reduce((function(t,e){return t+e})),m=0;m&lt;c.length;m++){var g,v=c[m];g=p&gt;0?d*(v.count/p):0;for(var y,x=new Array(n.length),b=0;b&lt;v.categoryInds.length;b++){var _=v.categoryInds[b],w=i[b][_],T=a[b];x[T]=n[T][w],n[T][w]+=g;var k=t.dimensions[T].categories[w],A=k.bands.length,M=k.bands[A-1];if(void 0===M||v.rawColor!==M.rawColor){var S=void 0===M?0:M.y+M.height;k.bands.push({key:S,color:v.color,rawColor:v.rawColor,height:g,width:k.width,count:v.count,y:S,categoryViewModel:k,parcatsViewModel:t})}else{var E=k.bands[A-1];E.height+=g,E.count+=v.count}}y=&quot;hspline&quot;===t.pathShape?B(s,x,l,g,.5):B(s,x,l,g,0),h[m]={key:v.valueInds[0],model:v,height:g,leftXs:s,topYs:x,dimWidths:l,svgD:y,parcatsViewModel:t}}t.paths=h}function j(t){var e=t.model.dimensions.map((function(t){return{displayInd:t.displayInd,dimensionInd:t.dimensionInd}}));e.sort((function(t,e){return t.displayInd-e.displayInd}));var r=[];for(var n in e){var i=e[n].dimensionInd,a=t.model.dimensions[i];r.push(U(t,a))}t.dimensions=r}function U(t,e){var r,n=t.model.dimensions.length,i=e.displayInd;r=40+(n&gt;1?(t.width-80-16)/(n-1):0)*i;var a,o,s,l,c,u=[],f=t.model.maxCats,h=e.categories.length,p=e.count,d=t.height-8*(f-1),m=8*(f-h)/2,g=e.categories.map((function(t){return{displayInd:t.displayInd,categoryInd:t.categoryInd}}));for(g.sort((function(t,e){return t.displayInd-e.displayInd})),c=0;c&lt;h;c++)l=g[c].categoryInd,o=e.categories[l],a=p&gt;0?o.count/p*d:0,s={key:o.valueInds[0],model:o,width:16,height:a,y:null!==o.dragY?o.dragY:m,bands:[],parcatsViewModel:t},m=m+a+8,u.push(s);return{key:e.dimensionInd,x:null!==e.dragX?e.dragX:r,y:0,width:16,model:e,categories:u,parcatsViewModel:t,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}e.exports=function(t,e,r,n){h(r,t,n,e)}},{&quot;../../components/drawing&quot;:388,&quot;../../components/fx&quot;:406,&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plot_api/plot_api&quot;:540,&quot;@plotly/d3&quot;:58,&quot;d3-interpolate&quot;:116,tinycolor2:312}],887:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./parcats&quot;);e.exports=function(t,e,r,i){var a=t._fullLayout,o=a._paper,s=a._size;n(t,o,e,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},r,i)}},{&quot;./parcats&quot;:886}],888:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/layout_attributes&quot;),a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/plot_template&quot;).templatedArray;e.exports={domain:o({name:&quot;parcoords&quot;,trace:!0,editType:&quot;plot&quot;}),labelangle:{valType:&quot;angle&quot;,dflt:0,editType:&quot;plot&quot;},labelside:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;plot&quot;},labelfont:a({editType:&quot;plot&quot;}),tickfont:a({editType:&quot;plot&quot;}),rangefont:a({editType:&quot;plot&quot;}),dimensions:l(&quot;dimension&quot;,{label:{valType:&quot;string&quot;,editType:&quot;plot&quot;},tickvals:s({},i.tickvals,{editType:&quot;plot&quot;}),ticktext:s({},i.ticktext,{editType:&quot;plot&quot;}),tickformat:s({},i.tickformat,{editType:&quot;plot&quot;}),visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},constraintrange:{valType:&quot;info_array&quot;,freeLength:!0,dimensions:&quot;1-2&quot;,items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;},{valType:&quot;any&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},multiselect:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;}),line:s({editType:&quot;calc&quot;},n(&quot;line&quot;,{colorscaleDflt:&quot;Viridis&quot;,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}))}},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/cartesian/layout_attributes&quot;:569,&quot;../../plots/domain&quot;:584,&quot;../../plots/font_attributes&quot;:585}],889:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;@plotly/d3&quot;),a=t(&quot;../../lib/gup&quot;).keyFun,o=t(&quot;../../lib/gup&quot;).repeat,s=t(&quot;../../lib&quot;).sorterAsc,l=t(&quot;../../lib&quot;).strTranslate,c=n.bar.snapRatio;function u(t,e){return t*(1-c)+e*c}var f=n.bar.snapClose;function h(t,e){return t*(1-f)+e*f}function p(t,e,r,n){if(function(t,e){for(var r=0;r&lt;e.length;r++)if(t&gt;=e[r][0]&amp;&amp;t&lt;=e[r][1])return!0;return!1}(r,n))return r;var i=t?-1:1,a=0,o=e.length-1;if(i&lt;0){var s=a;a=o,o=s}for(var l=e[a],c=l,f=a;i*f&lt;i*o;f+=i){var p=f+i,d=e[p];if(i*r&lt;i*h(l,d))return u(l,c);if(i*r&lt;i*d||p===o)return u(d,l);c=l,l=d}}function d(t){t.attr(&quot;x&quot;,-n.bar.captureWidth/2).attr(&quot;width&quot;,n.bar.captureWidth)}function m(t){t.attr(&quot;visibility&quot;,&quot;visible&quot;).style(&quot;visibility&quot;,&quot;visible&quot;).attr(&quot;fill&quot;,&quot;yellow&quot;).attr(&quot;opacity&quot;,0)}function g(t){if(!t.brush.filterSpecified)return&quot;0,&quot;+t.height;for(var e,r,n,i=v(t.brush.filter.getConsolidated(),t.height),a=[0],o=i.length?i[0][0]:null,s=0;s&lt;i.length;s++)r=(e=i[s])[1]-e[0],a.push(o),a.push(r),(n=s+1)&lt;i.length&amp;&amp;(o=i[n][0]-e[1]);return a.push(t.height),a}function v(t,e){return t.map((function(t){return t.map((function(t){return Math.max(0,t*e)})).sort(s)}))}function y(){i.select(document.body).style(&quot;cursor&quot;,null)}function x(t){t.attr(&quot;stroke-dasharray&quot;,g)}function b(t,e){var r=i.select(t).selectAll(&quot;.highlight, .highlight-shadow&quot;);x(e?r.transition().duration(n.bar.snapDuration).each(&quot;end&quot;,e):r)}function _(t,e){var r,i=t.brush,a=NaN,o={};if(i.filterSpecified){var s=t.height,l=i.filter.getConsolidated(),c=v(l,s),u=NaN,f=NaN,h=NaN;for(r=0;r&lt;=c.length;r++){var p=c[r];if(p&amp;&amp;p[0]&lt;=e&amp;&amp;e&lt;=p[1]){u=r;break}if(f=r?r-1:NaN,p&amp;&amp;p[0]&gt;e){h=r;break}}if(a=u,isNaN(a)&amp;&amp;(a=isNaN(f)||isNaN(h)?isNaN(f)?h:f:e-c[f][1]&lt;c[h][0]-e?f:h),!isNaN(a)){var d=c[a],m=function(t,e){var r=n.bar.handleHeight;if(!(e&gt;t[1]+r||e&lt;t[0]-r))return e&gt;=.9*t[1]+.1*t[0]?&quot;n&quot;:e&lt;=.9*t[0]+.1*t[1]?&quot;s&quot;:&quot;ns&quot;}(d,e);m&amp;&amp;(o.interval=l[a],o.intervalPix=d,o.region=m)}}if(t.ordinal&amp;&amp;!o.region){var g=t.unitTickvals,y=t.unitToPaddedPx.invert(e);for(r=0;r&lt;g.length;r++){var x=[.25*g[Math.max(r-1,0)]+.75*g[r],.25*g[Math.min(r+1,g.length-1)]+.75*g[r]];if(y&gt;=x[0]&amp;&amp;y&lt;=x[1]){o.clickableOrdinalRange=x;break}}}return o}function w(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[r-a.grabPoint,r+a.barLength-a.grabPoint].map(e.unitToPaddedPx.invert):a.newExtent=[a.startExtent,e.unitToPaddedPx.invert(r)].sort(s),e.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(e),b(t.parentNode)}function T(t,e){var r=_(e,e.height-i.mouse(t)[1]-2*n.verticalPadding),a=&quot;crosshair&quot;;r.clickableOrdinalRange?a=&quot;pointer&quot;:r.region&amp;&amp;(a=r.region+&quot;-resize&quot;),i.select(document.body).style(&quot;cursor&quot;,a)}function k(t){t.on(&quot;mousemove&quot;,(function(t){i.event.preventDefault(),t.parent.inBrushDrag||T(this,t)})).on(&quot;mouseleave&quot;,(function(t){t.parent.inBrushDrag||y()})).call(i.behavior.drag().on(&quot;dragstart&quot;,(function(t){!function(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.unitToPaddedPx.invert(r),o=e.brush,s=_(e,r),l=s.interval,c=o.svgBrush;if(c.wasDragged=!1,c.grabbingBar=&quot;ns&quot;===s.region,c.grabbingBar){var u=l.map(e.unitToPaddedPx);c.grabPoint=r-u[0]-n.verticalPadding,c.barLength=u[1]-u[0]}c.clickableOrdinalRange=s.clickableOrdinalRange,c.stayingIntervals=e.multiselect&amp;&amp;o.filterSpecified?o.filter.getConsolidated():[],l&amp;&amp;(c.stayingIntervals=c.stayingIntervals.filter((function(t){return t[0]!==l[0]&amp;&amp;t[1]!==l[1]}))),c.startExtent=s.region?l[&quot;s&quot;===s.region?1:0]:a,e.parent.inBrushDrag=!0,c.brushStartCallback()}(this,t)})).on(&quot;drag&quot;,(function(t){w(this,t)})).on(&quot;dragend&quot;,(function(t){!function(t,e){var r=e.brush,n=r.filter,a=r.svgBrush;a._dragging||(T(t,e),w(t,e),e.brush.svgBrush.wasDragged=!1),a._dragging=!1,i.event.sourceEvent.stopPropagation();var o=a.grabbingBar;if(a.grabbingBar=!1,a.grabLocation=void 0,e.parent.inBrushDrag=!1,y(),!a.wasDragged)return a.wasDragged=void 0,a.clickableOrdinalRange?r.filterSpecified&amp;&amp;e.multiselect?a.extent.push(a.clickableOrdinalRange):(a.extent=[a.clickableOrdinalRange],r.filterSpecified=!0):o?(a.extent=a.stayingIntervals,0===a.extent.length&amp;&amp;M(r)):M(r),a.brushCallback(e),b(t.parentNode),void a.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);var s=function(){n.set(n.getConsolidated())};if(e.ordinal){var l=e.unitTickvals;l[l.length-1]&lt;l[0]&amp;&amp;l.reverse(),a.newExtent=[p(0,l,a.newExtent[0],a.stayingIntervals),p(1,l,a.newExtent[1],a.stayingIntervals)];var c=a.newExtent[1]&gt;a.newExtent[0];a.extent=a.stayingIntervals.concat(c?[a.newExtent]:[]),a.extent.length||M(r),a.brushCallback(e),c?b(t.parentNode,s):(s(),b(t.parentNode))}else s();a.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}(this,t)})))}function A(t,e){return t[0]-e[0]}function M(t){t.filterSpecified=!1,t.svgBrush.extent=[[-1/0,1/0]]}function S(t){for(var e,r=t.slice(),n=[],i=r.shift();i;){for(e=i.slice();(i=r.shift())&amp;&amp;i[0]&lt;=e[1];)e[1]=Math.max(e[1],i[1]);n.push(e)}return 1===n.length&amp;&amp;n[0][0]&gt;n[0][1]&amp;&amp;(n=[]),n}e.exports={makeBrush:function(t,e,r,n,i,a){var o,l=function(){var t,e,r=[];return{set:function(n){1===(r=n.map((function(t){return t.slice().sort(s)})).sort(A)).length&amp;&amp;r[0][0]===-1/0&amp;&amp;r[0][1]===1/0&amp;&amp;(r=[[0,-1]]),t=S(r),e=r.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0])},get:function(){return r.slice()},getConsolidated:function(){return t},getBounds:function(){return e}}}();return l.set(r),{filter:l,filterSpecified:e,svgBrush:{extent:[],brushStartCallback:n,brushCallback:(o=i,function(t){var e=t.brush,r=function(t){return t.svgBrush.extent.map((function(t){return t.slice()}))}(e).slice();e.filter.set(r),o()}),brushEndCallback:a}}},ensureAxisBrush:function(t,e){var r=t.selectAll(&quot;.&quot;+n.cn.axisBrush).data(o,a);r.enter().append(&quot;g&quot;).classed(n.cn.axisBrush,!0),function(t,e){var r=t.selectAll(&quot;.background&quot;).data(o);r.enter().append(&quot;rect&quot;).classed(&quot;background&quot;,!0).call(d).call(m).style(&quot;pointer-events&quot;,&quot;auto&quot;).attr(&quot;transform&quot;,l(0,n.verticalPadding)),r.call(k).attr(&quot;height&quot;,(function(t){return t.height-n.verticalPadding}));var i=t.selectAll(&quot;.highlight-shadow&quot;).data(o);i.enter().append(&quot;line&quot;).classed(&quot;highlight-shadow&quot;,!0).attr(&quot;x&quot;,-n.bar.width/2).attr(&quot;stroke-width&quot;,n.bar.width+n.bar.strokeWidth).attr(&quot;stroke&quot;,e).attr(&quot;opacity&quot;,n.bar.strokeOpacity).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;),i.attr(&quot;y1&quot;,(function(t){return t.height})).call(x);var a=t.selectAll(&quot;.highlight&quot;).data(o);a.enter().append(&quot;line&quot;).classed(&quot;highlight&quot;,!0).attr(&quot;x&quot;,-n.bar.width/2).attr(&quot;stroke-width&quot;,n.bar.width-n.bar.strokeWidth).attr(&quot;stroke&quot;,n.bar.fillColor).attr(&quot;opacity&quot;,n.bar.fillOpacity).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;),a.attr(&quot;y1&quot;,(function(t){return t.height})).call(x)}(r,e)},cleanRanges:function(t,e){if(Array.isArray(t[0])?(t=t.map((function(t){return t.sort(s)})),t=e.multiselect?S(t.sort(A)):[t[0]]):t=[t.sort(s)],e.tickvals){var r=e.tickvals.slice().sort(s);if(!(t=t.map((function(t){var e=[p(0,r,t[0],[]),p(1,r,t[1],[])];if(e[1]&gt;e[0])return e})).filter((function(t){return t}))).length)return}return t.length&gt;1?t:t[0]}}},{&quot;../../lib&quot;:503,&quot;../../lib/gup&quot;:500,&quot;./constants&quot;:892,&quot;@plotly/d3&quot;:58}],890:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../plots/get_data&quot;).getModuleCalcData,a=t(&quot;./plot&quot;),o=t(&quot;../../constants/xmlns_namespaces&quot;);r.name=&quot;parcoords&quot;,r.plot=function(t){var e=i(t.calcdata,&quot;parcoords&quot;)[0];e.length&amp;&amp;a(t,e)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;parcoords&quot;),a=e._has&amp;&amp;e._has(&quot;parcoords&quot;);i&amp;&amp;!a&amp;&amp;(n._paperdiv.selectAll(&quot;.parcoords&quot;).remove(),n._glimages.selectAll(&quot;*&quot;).remove())},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(&quot;.svg-container&quot;);r.filter((function(t,e){return e===r.size()-1})).selectAll(&quot;.gl-canvas-context, .gl-canvas-focus&quot;).each((function(){var t=this.toDataURL(&quot;image/png&quot;);e.append(&quot;svg:image&quot;).attr({xmlns:o.svg,&quot;xlink:href&quot;:t,preserveAspectRatio:&quot;none&quot;,x:0,y:0,width:this.style.width,height:this.style.height})})),window.setTimeout((function(){n.selectAll(&quot;#filterBarPattern&quot;).attr(&quot;id&quot;,&quot;filterBarPattern&quot;)}),60)}},{&quot;../../constants/xmlns_namespaces&quot;:480,&quot;../../plots/get_data&quot;:593,&quot;./plot&quot;:899,&quot;@plotly/d3&quot;:58}],891:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray,i=t(&quot;../../components/colorscale&quot;),a=t(&quot;../../lib/gup&quot;).wrap;e.exports=function(t,e){var r,o;return i.hasColorscale(e,&quot;line&quot;)&amp;&amp;n(e.line.color)?(r=e.line.color,o=i.extractOpts(e.line).colorscale,i.calc(t,e,{vals:r,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;})):(r=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=.5;return e}(e._length),o=[[0,e.line.color],[1,e.line.color]]),a({lineColor:r,cscale:o})}},{&quot;../../components/colorscale&quot;:378,&quot;../../lib&quot;:503,&quot;../../lib/gup&quot;:500}],892:[function(t,e,r){&quot;use strict&quot;;e.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:[&quot;contextLineLayer&quot;,&quot;focusLineLayer&quot;,&quot;pickLineLayer&quot;],axisTitleOffset:28,axisExtentOffset:10,deselectedLineColor:&quot;#777&quot;,bar:{width:4,captureWidth:10,fillColor:&quot;magenta&quot;,fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:&quot;axis-extent-text&quot;,parcoordsLineLayers:&quot;parcoords-line-layers&quot;,parcoordsLineLayer:&quot;parcoords-lines&quot;,parcoords:&quot;parcoords&quot;,parcoordsControlView:&quot;parcoords-control-view&quot;,yAxis:&quot;y-axis&quot;,axisOverlays:&quot;axis-overlays&quot;,axis:&quot;axis&quot;,axisHeading:&quot;axis-heading&quot;,axisTitle:&quot;axis-title&quot;,axisExtent:&quot;axis-extent&quot;,axisExtentTop:&quot;axis-extent-top&quot;,axisExtentTopText:&quot;axis-extent-top-text&quot;,axisExtentBottom:&quot;axis-extent-bottom&quot;,axisExtentBottomText:&quot;axis-extent-bottom-text&quot;,axisBrush:&quot;axis-brush&quot;},id:{filterBarPattern:&quot;filter-bar-pattern&quot;}}},{}],893:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;./attributes&quot;),u=t(&quot;./axisbrush&quot;),f=t(&quot;./constants&quot;).maxDimensionCount,h=t(&quot;./merge_length&quot;);function p(t,e,r,i){function a(r,i){return n.coerce(t,e,c.dimensions,r,i)}var o=a(&quot;values&quot;),s=a(&quot;visible&quot;);if(o&amp;&amp;o.length||(s=e.visible=!1),s){a(&quot;label&quot;),a(&quot;tickvals&quot;),a(&quot;ticktext&quot;),a(&quot;tickformat&quot;);var f=a(&quot;range&quot;);e._ax={_id:&quot;y&quot;,type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;,range:f},l.setConvert(e._ax,i.layout),a(&quot;multiselect&quot;);var h=a(&quot;constraintrange&quot;);h&amp;&amp;(e.constraintrange=u.cleanRanges(h,e))}}e.exports=function(t,e,r,l){function u(r,i){return n.coerce(t,e,c,r,i)}var d=t.dimensions;Array.isArray(d)&amp;&amp;d.length&gt;f&amp;&amp;(n.log(&quot;parcoords traces support up to &quot;+f+&quot; dimensions at the moment&quot;),d.splice(f));var m=s(t,e,{name:&quot;dimensions&quot;,layout:l,handleItemDefaults:p}),g=function(t,e,r,o,s){var l=s(&quot;line.color&quot;,r);if(i(t,&quot;line&quot;)&amp;&amp;n.isArrayOrTypedArray(l)){if(l.length)return s(&quot;line.colorscale&quot;),a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}),l.length;e.line.color=r}return 1/0}(t,e,r,l,u);o(e,l,u),Array.isArray(m)&amp;&amp;m.length||(e.visible=!1),h(e,m,&quot;values&quot;,g);var v={family:l.font.family,size:Math.round(l.font.size/1.2),color:l.font.color};n.coerceFont(u,&quot;labelfont&quot;,v),n.coerceFont(u,&quot;tickfont&quot;,v),n.coerceFont(u,&quot;rangefont&quot;,v),u(&quot;labelangle&quot;),u(&quot;labelside&quot;)}},{&quot;../../components/colorscale/defaults&quot;:376,&quot;../../components/colorscale/helpers&quot;:377,&quot;../../lib&quot;:503,&quot;../../plots/array_container_defaults&quot;:549,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../plots/domain&quot;:584,&quot;./attributes&quot;:888,&quot;./axisbrush&quot;:889,&quot;./constants&quot;:892,&quot;./merge_length&quot;:897}],894:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isTypedArray;r.convertTypedArray=function(t){return n(t)?Array.prototype.slice.call(t):t},r.isOrdinal=function(t){return!!t.tickvals},r.isVisible=function(t){return t.visible||!(&quot;visible&quot;in t)}},{&quot;../../lib&quot;:503}],895:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},moduleType:&quot;trace&quot;,name:&quot;parcoords&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;noOpacity&quot;,&quot;noHover&quot;],meta:{}}},{&quot;./attributes&quot;:888,&quot;./base_plot&quot;:890,&quot;./calc&quot;:891,&quot;./defaults&quot;:893,&quot;./plot&quot;:899}],896:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nattribute vec4 p01_04, p05_08, p09_12, p13_16,\n               p17_20, p21_24, p25_28, p29_32,\n               p33_36, p37_40, p41_44, p45_48,\n               p49_52, p53_56, p57_60, colors;\n\nuniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,\n             loA, hiA, loB, hiB, loC, hiC, loD, hiD;\n\nuniform vec2 resolution, viewBoxPos, viewBoxSize;\nuniform float maskHeight;\nuniform float drwLayer; // 0: context, 1: focus, 2: pick\nuniform vec4 contextColor;\nuniform sampler2D maskTexture, palette;\n\nbool isPick    = (drwLayer &gt; 1.5);\nbool isContext = (drwLayer &lt; 0.5);\n\nconst vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);\nconst vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);\n\nfloat val(mat4 p, mat4 v) {\n    return dot(matrixCompMult(p, v) * UNITS, UNITS);\n}\n\nfloat axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {\n    float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);\n    float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);\n    return y1 * (1.0 - ratio) + y2 * ratio;\n}\n\nint iMod(int a, int b) {\n    return a - b * (a / b);\n}\n\nbool fOutside(float p, float lo, float hi) {\n    return (lo &lt; hi) &amp;&amp; (lo &gt; p || p &gt; hi);\n}\n\nbool vOutside(vec4 p, vec4 lo, vec4 hi) {\n    return (\n        fOutside(p[0], lo[0], hi[0]) ||\n        fOutside(p[1], lo[1], hi[1]) ||\n        fOutside(p[2], lo[2], hi[2]) ||\n        fOutside(p[3], lo[3], hi[3])\n    );\n}\n\nbool mOutside(mat4 p, mat4 lo, mat4 hi) {\n    return (\n        vOutside(p[0], lo[0], hi[0]) ||\n        vOutside(p[1], lo[1], hi[1]) ||\n        vOutside(p[2], lo[2], hi[2]) ||\n        vOutside(p[3], lo[3], hi[3])\n    );\n}\n\nbool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {\n    return mOutside(A, loA, hiA) ||\n           mOutside(B, loB, hiB) ||\n           mOutside(C, loC, hiC) ||\n           mOutside(D, loD, hiD);\n}\n\nbool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {\n    mat4 pnts[4];\n    pnts[0] = A;\n    pnts[1] = B;\n    pnts[2] = C;\n    pnts[3] = D;\n\n    for(int i = 0; i &lt; 4; ++i) {\n        for(int j = 0; j &lt; 4; ++j) {\n            for(int k = 0; k &lt; 4; ++k) {\n                if(0 == iMod(\n                    int(255.0 * texture2D(maskTexture,\n                        vec2(\n                            (float(i * 2 + j / 2) + 0.5) / 8.0,\n                            (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight\n                        ))[3]\n                    ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),\n                    2\n                )) return true;\n            }\n        }\n    }\n    return false;\n}\n\nvec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {\n    float x = 0.5 * sign(v) + 0.5;\n    float y = axisY(x, A, B, C, D);\n    float z = 1.0 - abs(v);\n\n    z += isContext ? 0.0 : 2.0 * float(\n        outsideBoundingBox(A, B, C, D) ||\n        outsideRasterMask(A, B, C, D)\n    );\n\n    return vec4(\n        2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,\n        z,\n        1.0\n    );\n}\n\nvoid main() {\n    mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);\n    mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);\n    mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);\n    mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);\n\n    float v = colors[3];\n\n    gl_Position = position(isContext, v, A, B, C, D);\n\n    fragColor =\n        isContext ? vec4(contextColor) :\n        isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));\n}\n&quot;]),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n    gl_FragColor = fragColor;\n}\n&quot;]),o=t(&quot;./constants&quot;).maxDimensionCount,s=t(&quot;../../lib&quot;),l=new Uint8Array(4),c=new Uint8Array(4),u={shape:[256,1],format:&quot;rgba&quot;,type:&quot;uint8&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;};function f(t,e,r,n,i){var a=t._gl;a.enable(a.SCISSOR_TEST),a.scissor(e,r,n,i),t.clear({color:[0,0,0,0],depth:1})}function h(t,e,r,n,i,a){var o=a.key;r.drawCompleted||(!function(t){t.read({x:0,y:0,width:1,height:1,data:l})}(t),r.drawCompleted=!0),function s(l){var c=Math.min(n,i-l*n);0===l&amp;&amp;(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],f(t,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),r.clearOnly||(a.count=2*c,a.offset=2*l*n,e(a),l*n+c&lt;i&amp;&amp;(r.currentRafs[o]=window.requestAnimationFrame((function(){s(l+1)}))),r.drawCompleted=!1)}(0)}function p(t,e){for(var r=new Array(256),n=0;n&lt;256;n++)r[n]=t(n/255).concat(e);return r}function d(t,e){return(t&gt;&gt;&gt;8*e)%256/255}function m(t,e,r){for(var n=new Array(8*e),i=0,a=0;a&lt;e;a++)for(var o=0;o&lt;2;o++)for(var s=0;s&lt;4;s++){var l=4*t+s,c=r[64*a+l];63===l&amp;&amp;0===o&amp;&amp;(c*=-1),n[i++]=c}return n}function g(t){var e=&quot;0&quot;+t;return e.substr(e.length-2)}function v(t){return t&lt;o?&quot;p&quot;+g(t+1)+&quot;_&quot;+g(t+4):&quot;colors&quot;}function y(t,e,r,n,i,a,o,l,c,u,f,h,p,d){for(var m=[[],[]],g=0;g&lt;64;g++)m[0][g]=g===i?1:0,m[1][g]=g===a?1:0;o*=d,l*=d,c*=d,u*=d;var v=t.lines.canvasOverdrag*d,y=t.domain,x=t.canvasWidth*d,b=t.canvasHeight*d,_=t.pad.l*d,w=t.pad.b*d,T=t.layoutHeight*d,k=t.layoutWidth*d,A=t.deselectedLines.color;return s.extendFlat({key:f,resolution:[x,b],viewBoxPos:[o+v,l],viewBoxSize:[c,u],i0:i,i1:a,dim0A:m[0].slice(0,16),dim0B:m[0].slice(16,32),dim0C:m[0].slice(32,48),dim0D:m[0].slice(48,64),dim1A:m[1].slice(0,16),dim1B:m[1].slice(16,32),dim1C:m[1].slice(32,48),dim1D:m[1].slice(48,64),drwLayer:h,contextColor:[A[0]/255,A[1]/255,A[2]/255,A[3]&lt;1?A[3]:Math.max(1/255,Math.pow(1/t.lines.color.length,1/3))],scissorX:(n===e?0:o+v)+(_-v)+k*y.x[0],scissorWidth:(n===r?x-o+v:c+.5)+(n===e?o+v:0),scissorY:l+w+T*y.y[0],scissorHeight:u,viewportX:_-v+k*y.x[0],viewportY:w+T*y.y[0],viewportWidth:x,viewportHeight:b},p)}function x(t){var e=Math.max(0,Math.floor(2047*t[0]),0),r=Math.min(2047,Math.ceil(2047*t[1]),2047);return[Math.min(e,r),Math.max(e,r)]}e.exports=function(t,e){var r,n,l,g,b,_=e.context,w=e.pick,T=e.regl,k=T._gl,A=k.getParameter(k.ALIASED_LINE_WIDTH_RANGE),M=Math.max(A[0],Math.min(A[1],e.viewModel.plotGlPixelRatio)),S={currentRafs:{},drawCompleted:!0,clearOnly:!1},E=function(t){for(var e={},r=0;r&lt;=o;r+=4)e[v(r)]=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)});return e}(T),L=T.texture(u),C=[];I(e);var P=T({profile:!1,blend:{enable:_,func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:1,dstAlpha:1},equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},color:[0,0,0,0]},depth:{enable:!_,mask:!0,func:&quot;less&quot;,range:[0,1]},cull:{enable:!0,face:&quot;back&quot;},scissor:{enable:!0,box:{x:T.prop(&quot;scissorX&quot;),y:T.prop(&quot;scissorY&quot;),width:T.prop(&quot;scissorWidth&quot;),height:T.prop(&quot;scissorHeight&quot;)}},viewport:{x:T.prop(&quot;viewportX&quot;),y:T.prop(&quot;viewportY&quot;),width:T.prop(&quot;viewportWidth&quot;),height:T.prop(&quot;viewportHeight&quot;)},dither:!1,vert:i,frag:a,primitive:&quot;lines&quot;,lineWidth:M,attributes:E,uniforms:{resolution:T.prop(&quot;resolution&quot;),viewBoxPos:T.prop(&quot;viewBoxPos&quot;),viewBoxSize:T.prop(&quot;viewBoxSize&quot;),dim0A:T.prop(&quot;dim0A&quot;),dim1A:T.prop(&quot;dim1A&quot;),dim0B:T.prop(&quot;dim0B&quot;),dim1B:T.prop(&quot;dim1B&quot;),dim0C:T.prop(&quot;dim0C&quot;),dim1C:T.prop(&quot;dim1C&quot;),dim0D:T.prop(&quot;dim0D&quot;),dim1D:T.prop(&quot;dim1D&quot;),loA:T.prop(&quot;loA&quot;),hiA:T.prop(&quot;hiA&quot;),loB:T.prop(&quot;loB&quot;),hiB:T.prop(&quot;hiB&quot;),loC:T.prop(&quot;loC&quot;),hiC:T.prop(&quot;hiC&quot;),loD:T.prop(&quot;loD&quot;),hiD:T.prop(&quot;hiD&quot;),palette:L,contextColor:T.prop(&quot;contextColor&quot;),maskTexture:T.prop(&quot;maskTexture&quot;),drwLayer:T.prop(&quot;drwLayer&quot;),maskHeight:T.prop(&quot;maskHeight&quot;)},offset:T.prop(&quot;offset&quot;),count:T.prop(&quot;count&quot;)});function I(t){r=t.model,n=t.viewModel,l=n.dimensions.slice(),g=l[0]?l[0].values.length:0;var e=r.lines,i=w?e.color.map((function(t,r){return r/e.color.length})):e.color,a=function(t,e,r){for(var n,i=new Array(t*(o+4)),a=0,s=0;s&lt;t;s++){for(var l=0;l&lt;o;l++)i[a++]=l&lt;e.length?e[l].paddedUnitValues[s]:.5;i[a++]=d(s,2),i[a++]=d(s,1),i[a++]=d(s,0),i[a++]=(n=r[s],Math.max(1e-6,Math.min(.999999,n)))}return i}(g,l,i);!function(t,e,r){for(var n=0;n&lt;=o;n+=4)t[v(n)](m(n/4,e,r))}(E,g,a),_||w||(L=T.texture(s.extendFlat({data:p(r.unitToColor,255)},u)))}return{render:function(t,e,n){var i,a,o,s=t.length,c=1/0,u=-1/0;for(i=0;i&lt;s;i++)t[i].dim0.canvasX&lt;c&amp;&amp;(c=t[i].dim0.canvasX,a=i),t[i].dim1.canvasX&gt;u&amp;&amp;(u=t[i].dim1.canvasX,o=i);0===s&amp;&amp;f(T,0,0,r.canvasWidth,r.canvasHeight);var p=function(t){var e,r,n,i=[[],[]];for(n=0;n&lt;64;n++){var a=!t&amp;&amp;n&lt;l.length?l[n].brush.filter.getBounds():[-1/0,1/0];i[0][n]=a[0],i[1][n]=a[1]}var o=new Array(16384);for(e=0;e&lt;16384;e++)o[e]=255;if(!t)for(e=0;e&lt;l.length;e++){var s=e%8,c=(e-s)/8,u=Math.pow(2,s),f=l[e].brush.filter.get();if(!(f.length&lt;2)){var h=x(f[0])[1];for(r=1;r&lt;f.length;r++){var p=x(f[r]);for(n=h+1;n&lt;p[0];n++)o[8*n+c]&amp;=~u;h=Math.max(h,p[1])}}}var d={shape:[8,2048],format:&quot;alpha&quot;,type:&quot;uint8&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;,data:o};return b?b(d):b=T.texture(d),{maskTexture:b,maskHeight:2048,loA:i[0].slice(0,16),loB:i[0].slice(16,32),loC:i[0].slice(32,48),loD:i[0].slice(48,64),hiA:i[1].slice(0,16),hiB:i[1].slice(16,32),hiC:i[1].slice(32,48),hiD:i[1].slice(48,64)}}(_);for(i=0;i&lt;s;i++){var d=t[i],m=d.dim0.crossfilterDimensionIndex,v=d.dim1.crossfilterDimensionIndex,k=d.canvasX,A=d.canvasY,M=k+d.panelSizeX,E=d.plotGlPixelRatio;if(e||!C[m]||C[m][0]!==k||C[m][1]!==M){C[m]=[k,M];var L=y(r,a,o,i,m,v,k,A,d.panelSizeX,d.panelSizeY,d.dim0.crossfilterDimensionIndex,_?0:w?2:1,p,E);S.clearOnly=n;var I=e?r.lines.blockLineCount:g;h(T,P,S,I,g,L)}}},readPixel:function(t,e){return T.read({x:t,y:e,width:1,height:1,data:c}),c},readPixels:function(t,e,r,n){var i=new Uint8Array(4*r*n);return T.read({x:t,y:e,width:r,height:n,data:i}),i},destroy:function(){for(var e in t.style[&quot;pointer-events&quot;]=&quot;none&quot;,L.destroy(),b&amp;&amp;b.destroy(),E)E[e].destroy()},update:I}}},{&quot;../../lib&quot;:503,&quot;./constants&quot;:892,glslify:227}],897:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i,a;for(n||(n=1/0),i=0;i&lt;e.length;i++)(a=e[i]).visible&amp;&amp;(n=Math.min(n,a[r].length));for(n===1/0&amp;&amp;(n=0),t._length=n,i=0;i&lt;e.length;i++)(a=e[i]).visible&amp;&amp;(a._length=n);return n}},{}],898:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=i.numberFormat,o=t(&quot;color-rgba&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=i.strRotate,c=i.strTranslate,u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../components/drawing&quot;),h=t(&quot;../../components/colorscale&quot;),p=t(&quot;../../lib/gup&quot;),d=p.keyFun,m=p.repeat,g=p.unwrap,v=t(&quot;./helpers&quot;),y=t(&quot;./constants&quot;),x=t(&quot;./axisbrush&quot;),b=t(&quot;./lines&quot;);function _(t,e,r){return i.aggNums(t,null,e,r)}function w(t,e){return k(_(Math.min,t,e),_(Math.max,t,e))}function T(t){var e=t.range;return e?k(e[0],e[1]):w(t.values,t._length)}function k(t,e){return!isNaN(t)&amp;&amp;isFinite(t)||(t=0),!isNaN(e)&amp;&amp;isFinite(e)||(e=0),t===e&amp;&amp;(0===t?(t-=1,e+=1):(t*=.9,e*=1.1)),[t,e]}function A(t,e,r,i,o){var s,l,c=T(r);return i?n.scale.ordinal().domain(i.map((s=a(r.tickformat),l=o,l?function(t,e){var r=l[e];return null==r?s(t):r}:s))).range(i.map((function(r){var n=(r-c[0])/(c[1]-c[0]);return t-e+n*(2*e-t)}))):n.scale.linear().domain(c).range([t-e,e])}function M(t){if(t.tickvals){var e=T(t);return n.scale.ordinal().domain(t.tickvals).range(t.tickvals.map((function(t){return(t-e[0])/(e[1]-e[0])})))}}function S(t){var e=t.map((function(t){return t[0]})),r=t.map((function(t){var e=o(t[1]);return n.rgb(&quot;rgb(&quot;+e[0]+&quot;,&quot;+e[1]+&quot;,&quot;+e[2]+&quot;)&quot;)})),i=&quot;rgb&quot;.split(&quot;&quot;).map((function(t){return n.scale.linear().clamp(!0).domain(e).range(r.map((i=t,function(t){return t[i]})));var i}));return function(t){return i.map((function(e){return e(t)}))}}function E(t){return t.dimensions.some((function(t){return t.brush.filterSpecified}))}function L(t,e,r){var a=g(e),s=a.trace,l=v.convertTypedArray(a.lineColor),c=s.line,u={color:o(y.deselectedLineColor)},f=h.extractOpts(c),p=f.reversescale?h.flipScale(a.cscale):a.cscale,d=s.domain,m=s.dimensions,x=t.width,b=s.labelangle,_=s.labelside,w=s.labelfont,k=s.tickfont,A=s.rangefont,M=i.extendDeepNoArrays({},c,{color:l.map(n.scale.linear().domain(T({values:l,range:[f.min,f.max],_length:s._length}))),blockLineCount:y.blockLineCount,canvasOverdrag:y.overdrag*y.canvasPixelRatio}),E=Math.floor(x*(d.x[1]-d.x[0])),L=Math.floor(t.height*(d.y[1]-d.y[0])),C=t.margin||{l:80,r:80,t:100,b:80},P=E,I=L;return{key:r,colCount:m.filter(v.isVisible).length,dimensions:m,tickDistance:y.tickDistance,unitToColor:S(p),lines:M,deselectedLines:u,labelAngle:b,labelSide:_,labelFont:w,tickFont:k,rangeFont:A,layoutWidth:x,layoutHeight:t.height,domain:d,translateX:d.x[0]*x,translateY:t.height-d.y[1]*t.height,pad:C,canvasWidth:P*y.canvasPixelRatio+2*M.canvasOverdrag,canvasHeight:I*y.canvasPixelRatio,width:P,height:I,canvasPixelRatio:y.canvasPixelRatio}}function C(t,e,r){var o=r.width,s=r.height,l=r.dimensions,c=r.canvasPixelRatio,u=function(t){return o*t/Math.max(1,r.colCount-1)},f=y.verticalPadding/s,h=function(t,e){return n.scale.linear().range([e,t-e])}(s,y.verticalPadding),p={key:r.key,xScale:u,model:r,inBrushDrag:!1},d={};return p.dimensions=l.filter(v.isVisible).map((function(o,l){var m=function(t,e){return n.scale.linear().domain(T(t)).range([e,1-e])}(o,f),g=d[o.label];d[o.label]=(g||0)+1;var b=o.label+(g?&quot;__&quot;+g:&quot;&quot;),_=o.constraintrange,w=_&amp;&amp;_.length;w&amp;&amp;!Array.isArray(_[0])&amp;&amp;(_=[_]);var k=w?_.map((function(t){return t.map(m)})):[[-1/0,1/0]],S=o.values;S.length&gt;o._length&amp;&amp;(S=S.slice(0,o._length));var L,C=o.tickvals;function P(t,e){return{val:t,text:L[e]}}function I(t,e){return t.val-e.val}if(Array.isArray(C)&amp;&amp;C.length){L=o.ticktext,Array.isArray(L)&amp;&amp;L.length?L.length&gt;C.length?L=L.slice(0,C.length):C.length&gt;L.length&amp;&amp;(C=C.slice(0,L.length)):L=C.map(a(o.tickformat));for(var O=1;O&lt;C.length;O++)if(C[O]&lt;C[O-1]){for(var z=C.map(P).sort(I),D=0;D&lt;C.length;D++)C[D]=z[D].val,L[D]=z[D].text;break}}else C=void 0;return S=v.convertTypedArray(S),{key:b,label:o.label,tickFormat:o.tickformat,tickvals:C,ticktext:L,ordinal:v.isOrdinal(o),multiselect:o.multiselect,xIndex:l,crossfilterDimensionIndex:l,visibleIndex:o._index,height:s,values:S,paddedUnitValues:S.map(m),unitTickvals:C&amp;&amp;C.map(m),xScale:u,x:u(l),canvasX:u(l)*c,unitToPaddedPx:h,domainScale:A(s,y.verticalPadding,o,C,L),ordinalScale:M(o),parent:p,model:r,brush:x.makeBrush(t,w,k,(function(){t.linePickActive(!1)}),(function(){var e=p;e.focusLayer&amp;&amp;e.focusLayer.render(e.panels,!0);var r=E(e);!t.contextShown()&amp;&amp;r?(e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!0),t.contextShown(!0)):t.contextShown()&amp;&amp;!r&amp;&amp;(e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!0,!0),t.contextShown(!1))}),(function(r){if(p.focusLayer.render(p.panels,!0),p.pickLayer&amp;&amp;p.pickLayer.render(p.panels,!0),t.linePickActive(!0),e&amp;&amp;e.filterChanged){var n=m.invert,a=r.map((function(t){return t.map(n).sort(i.sorterAsc)})).sort((function(t,e){return t[0]-e[0]}));e.filterChanged(p.key,o._index,a)}}))}})),p}function P(t){t.classed(y.cn.axisExtentText,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).style(&quot;cursor&quot;,&quot;default&quot;)}function I(t,e){var r=&quot;top&quot;===e?1:-1,n=t*Math.PI/180;return{dir:r,dx:Math.sin(n),dy:Math.cos(n),degrees:t}}function O(t,e,r){for(var n=e.panels||(e.panels=[]),i=t.data(),a=0;a&lt;i.length-1;a++){var o=n[a]||(n[a]={}),s=i[a],l=i[a+1];o.dim0=s,o.dim1=l,o.canvasX=s.canvasX,o.panelSizeX=l.canvasX-s.canvasX,o.panelSizeY=e.model.canvasHeight,o.y=0,o.canvasY=0,o.plotGlPixelRatio=r}}function z(t,e){return s.tickText(t._ax,e,!1).text}function D(t,e){if(t.ordinal)return&quot;&quot;;var r=t.domainScale.domain(),n=r[e?r.length-1:0];return z(t.model.dimensions[t.visibleIndex],n)}e.exports=function(t,e,r,a){var o=t._fullLayout,h=o._toppaper,p=o._glcontainer,_=t._context.plotGlPixelRatio,T=t._fullLayout.paper_bgcolor;!function(t){for(var e=0;e&lt;t.length;e++)for(var r=0;r&lt;t[e].length;r++)for(var n=t[e][r].trace,i=n.dimensions,a=0;a&lt;i.length;a++){var o=i[a].values,l=i[a]._ax;l&amp;&amp;(l.range?l.range=k(l.range[0],l.range[1]):l.range=w(o,n._length),l.dtick||(l.dtick=.01*(Math.abs(l.range[1]-l.range[0])||1)),l.tickformat=i[a].tickformat,s.calcTicks(l),l.cleanRange())}}(e);var A,M,S=(A=!0,M=!1,{linePickActive:function(t){return arguments.length?A=!!t:A},contextShown:function(t){return arguments.length?M=!!t:M}}),R=e.filter((function(t){return g(t).trace.visible})).map(L.bind(0,r)).map(C.bind(0,S,a));p.each((function(t,e){return i.extendFlat(t,R[e])}));var F=p.selectAll(&quot;.gl-canvas&quot;).each((function(t){t.viewModel=R[0],t.viewModel.plotGlPixelRatio=_,t.viewModel.paperColor=T,t.model=t.viewModel?t.viewModel.model:null})),B=null;F.filter((function(t){return t.pick})).style(&quot;pointer-events&quot;,&quot;auto&quot;).on(&quot;mousemove&quot;,(function(t){if(S.linePickActive()&amp;&amp;t.lineLayer&amp;&amp;a&amp;&amp;a.hover){var e=n.event,r=this.width,i=this.height,o=n.mouse(this),s=o[0],l=o[1];if(s&lt;0||l&lt;0||s&gt;=r||l&gt;=i)return;var c=t.lineLayer.readPixel(s,i-1-l),u=0!==c[3],f=u?c[2]+256*(c[1]+256*c[0]):null,h={x:s,y:l,clientX:e.clientX,clientY:e.clientY,dataIndex:t.model.key,curveNumber:f};f!==B&amp;&amp;(u?a.hover(h):a.unhover&amp;&amp;a.unhover(h),B=f)}})),F.style(&quot;opacity&quot;,(function(t){return t.pick?0:1})),h.style(&quot;background&quot;,&quot;rgba(255, 255, 255, 0)&quot;);var N=h.selectAll(&quot;.&quot;+y.cn.parcoords).data(R,d);N.exit().remove(),N.enter().append(&quot;g&quot;).classed(y.cn.parcoords,!0).style(&quot;shape-rendering&quot;,&quot;crispEdges&quot;).style(&quot;pointer-events&quot;,&quot;none&quot;),N.attr(&quot;transform&quot;,(function(t){return c(t.model.translateX,t.model.translateY)}));var j=N.selectAll(&quot;.&quot;+y.cn.parcoordsControlView).data(m,d);j.enter().append(&quot;g&quot;).classed(y.cn.parcoordsControlView,!0),j.attr(&quot;transform&quot;,(function(t){return c(t.model.pad.l,t.model.pad.t)}));var U=j.selectAll(&quot;.&quot;+y.cn.yAxis).data((function(t){return t.dimensions}),d);U.enter().append(&quot;g&quot;).classed(y.cn.yAxis,!0),j.each((function(t){O(U,t,_)})),F.each((function(t){if(t.viewModel){!t.lineLayer||a?t.lineLayer=b(this,t):t.lineLayer.update(t),(t.key||0===t.key)&amp;&amp;(t.viewModel[t.key]=t.lineLayer);var e=!t.context||a;t.lineLayer.render(t.viewModel.panels,e)}})),U.attr(&quot;transform&quot;,(function(t){return c(t.xScale(t.xIndex),0)})),U.call(n.behavior.drag().origin((function(t){return t})).on(&quot;drag&quot;,(function(t){var e=t.parent;S.linePickActive(!1),t.x=Math.max(-y.overdrag,Math.min(t.model.width+y.overdrag,n.event.x)),t.canvasX=t.x*t.model.canvasPixelRatio,U.sort((function(t,e){return t.x-e.x})).each((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e.xIndex),e.canvasX=e.x*e.model.canvasPixelRatio})),O(U,e,_),U.filter((function(e){return 0!==Math.abs(t.xIndex-e.xIndex)})).attr(&quot;transform&quot;,(function(t){return c(t.xScale(t.xIndex),0)})),n.select(this).attr(&quot;transform&quot;,c(t.x,0)),U.each((function(r,n,i){i===t.parent.key&amp;&amp;(e.dimensions[n]=r)})),e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!1,!E(e)),e.focusLayer.render&amp;&amp;e.focusLayer.render(e.panels)})).on(&quot;dragend&quot;,(function(t){var e=t.parent;t.x=t.xScale(t.xIndex),t.canvasX=t.x*t.model.canvasPixelRatio,O(U,e,_),n.select(this).attr(&quot;transform&quot;,(function(t){return c(t.x,0)})),e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!1,!E(e)),e.focusLayer&amp;&amp;e.focusLayer.render(e.panels),e.pickLayer&amp;&amp;e.pickLayer.render(e.panels,!0),S.linePickActive(!0),a&amp;&amp;a.axesMoved&amp;&amp;a.axesMoved(e.key,e.dimensions.map((function(t){return t.crossfilterDimensionIndex})))}))),U.exit().remove();var V=U.selectAll(&quot;.&quot;+y.cn.axisOverlays).data(m,d);V.enter().append(&quot;g&quot;).classed(y.cn.axisOverlays,!0),V.selectAll(&quot;.&quot;+y.cn.axis).remove();var H=V.selectAll(&quot;.&quot;+y.cn.axis).data(m,d);H.enter().append(&quot;g&quot;).classed(y.cn.axis,!0),H.each((function(t){var e=t.model.height/t.model.tickDistance,r=t.domainScale,i=r.domain();n.select(this).call(n.svg.axis().orient(&quot;left&quot;).tickSize(4).outerTickSize(2).ticks(e,t.tickFormat).tickValues(t.ordinal?i:null).tickFormat((function(e){return v.isOrdinal(t)?e:z(t.model.dimensions[t.visibleIndex],e)})).scale(r)),f.font(H.selectAll(&quot;text&quot;),t.model.tickFont)})),H.selectAll(&quot;.domain, .tick&gt;line&quot;).attr(&quot;fill&quot;,&quot;none&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-opacity&quot;,.25).attr(&quot;stroke-width&quot;,&quot;1px&quot;),H.selectAll(&quot;text&quot;).style(&quot;text-shadow&quot;,u.makeTextShadow(T)).style(&quot;cursor&quot;,&quot;default&quot;);var q=V.selectAll(&quot;.&quot;+y.cn.axisHeading).data(m,d);q.enter().append(&quot;g&quot;).classed(y.cn.axisHeading,!0);var G=q.selectAll(&quot;.&quot;+y.cn.axisTitle).data(m,d);G.enter().append(&quot;text&quot;).classed(y.cn.axisTitle,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).style(&quot;cursor&quot;,&quot;ew-resize&quot;).style(&quot;pointer-events&quot;,&quot;auto&quot;),G.text((function(t){return t.label})).each((function(e){var r=n.select(this);f.font(r,e.model.labelFont),u.convertToTspans(r,t)})).attr(&quot;transform&quot;,(function(t){var e=I(t.model.labelAngle,t.model.labelSide),r=y.axisTitleOffset;return(e.dir&gt;0?&quot;&quot;:c(0,2*r+t.model.height))+l(e.degrees)+c(-r*e.dx,-r*e.dy)})).attr(&quot;text-anchor&quot;,(function(t){var e=I(t.model.labelAngle,t.model.labelSide);return 2*Math.abs(e.dx)&gt;Math.abs(e.dy)?e.dir*e.dx&lt;0?&quot;start&quot;:&quot;end&quot;:&quot;middle&quot;}));var Y=V.selectAll(&quot;.&quot;+y.cn.axisExtent).data(m,d);Y.enter().append(&quot;g&quot;).classed(y.cn.axisExtent,!0);var W=Y.selectAll(&quot;.&quot;+y.cn.axisExtentTop).data(m,d);W.enter().append(&quot;g&quot;).classed(y.cn.axisExtentTop,!0),W.attr(&quot;transform&quot;,c(0,-y.axisExtentOffset));var X=W.selectAll(&quot;.&quot;+y.cn.axisExtentTopText).data(m,d);X.enter().append(&quot;text&quot;).classed(y.cn.axisExtentTopText,!0).call(P),X.text((function(t){return D(t,!0)})).each((function(t){f.font(n.select(this),t.model.rangeFont)}));var Z=Y.selectAll(&quot;.&quot;+y.cn.axisExtentBottom).data(m,d);Z.enter().append(&quot;g&quot;).classed(y.cn.axisExtentBottom,!0),Z.attr(&quot;transform&quot;,(function(t){return c(0,t.model.height+y.axisExtentOffset)}));var J=Z.selectAll(&quot;.&quot;+y.cn.axisExtentBottomText).data(m,d);J.enter().append(&quot;text&quot;).classed(y.cn.axisExtentBottomText,!0).attr(&quot;dy&quot;,&quot;0.75em&quot;).call(P),J.text((function(t){return D(t,!1)})).each((function(t){f.font(n.select(this),t.model.rangeFont)})),x.ensureAxisBrush(V,T)}},{&quot;../../components/colorscale&quot;:378,&quot;../../components/drawing&quot;:388,&quot;../../lib&quot;:503,&quot;../../lib/gup&quot;:500,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plots/cartesian/axes&quot;:554,&quot;./axisbrush&quot;:889,&quot;./constants&quot;:892,&quot;./helpers&quot;:894,&quot;./lines&quot;:896,&quot;@plotly/d3&quot;:58,&quot;color-rgba&quot;:91}],899:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./parcoords&quot;),i=t(&quot;../../lib/prepare_regl&quot;),a=t(&quot;./helpers&quot;).isVisible;function o(t,e,r){var n=e.indexOf(r),i=t.indexOf(n);return-1===i&amp;&amp;(i+=e.length),i}e.exports=function(t,e){var r=t._fullLayout;if(i(t)){var s={},l={},c={},u={},f=r._size;e.forEach((function(e,r){var n=e[0].trace;c[r]=n.index;var i=u[r]=n._fullInput.index;s[r]=t.data[i].dimensions,l[r]=t.data[i].dimensions.slice()}));n(t,e,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{filterChanged:function(e,n,i){var a=l[e][n],o=i.map((function(t){return t.slice()})),s=&quot;dimensions[&quot;+n+&quot;].constraintrange&quot;,f=r._tracePreGUI[t._fullData[c[e]]._fullInput.uid];if(void 0===f[s]){var h=a.constraintrange;f[s]=h||null}var p=t._fullData[c[e]].dimensions[n];o.length?(1===o.length&amp;&amp;(o=o[0]),a.constraintrange=o,p.constraintrange=o.slice(),o=[o]):(delete a.constraintrange,delete p.constraintrange,o=null);var d={};d[s]=o,t.emit(&quot;plotly_restyle&quot;,[d,[u[e]]])},hover:function(e){t.emit(&quot;plotly_hover&quot;,e)},unhover:function(e){t.emit(&quot;plotly_unhover&quot;,e)},axesMoved:function(e,r){var n=function(t,e){return function(r,n){return o(t,e,r)-o(t,e,n)}}(r,l[e].filter(a));s[e].sort(n),l[e].filter((function(t){return!a(t)})).sort((function(t){return l[e].indexOf(t)})).forEach((function(t){s[e].splice(s[e].indexOf(t),1),s[e].splice(l[e].indexOf(t),0,t)})),t.emit(&quot;plotly_restyle&quot;,[{dimensions:[s[e]]},[u[e]]])}})}}},{&quot;../../lib/prepare_regl&quot;:516,&quot;./helpers&quot;:894,&quot;./parcoords&quot;:898}],900:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/domain&quot;).attributes,a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../components/color/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,c=t(&quot;../../lib/extend&quot;).extendFlat,u=a({editType:&quot;plot&quot;,arrayOk:!0,colorEditType:&quot;plot&quot;});e.exports={labels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},label0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},dlabel:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},marker:{colors:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:o.defaultLine,arrayOk:!0,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,arrayOk:!0,editType:&quot;style&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},text:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},scalegroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;],extras:[&quot;none&quot;],editType:&quot;calc&quot;},hoverinfo:c({},n.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;name&quot;]}),hovertemplate:s({},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;text&quot;]}),texttemplate:l({editType:&quot;plot&quot;},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;text&quot;]}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;auto&quot;,&quot;none&quot;],dflt:&quot;auto&quot;,arrayOk:!0,editType:&quot;plot&quot;},textfont:c({},u,{}),insidetextorientation:{valType:&quot;enumerated&quot;,values:[&quot;horizontal&quot;,&quot;radial&quot;,&quot;tangential&quot;,&quot;auto&quot;],dflt:&quot;auto&quot;,editType:&quot;plot&quot;},insidetextfont:c({},u,{}),outsidetextfont:c({},u,{}),automargin:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},font:c({},u,{}),position:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle center&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},domain:i({name:&quot;pie&quot;,trace:!0,editType:&quot;calc&quot;}),hole:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;},sort:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;],dflt:&quot;counterclockwise&quot;,editType:&quot;calc&quot;},rotation:{valType:&quot;number&quot;,min:-360,max:360,dflt:0,editType:&quot;calc&quot;},pull:{valType:&quot;number&quot;,min:0,max:1,dflt:0,arrayOk:!0,editType:&quot;calc&quot;},_deprecated:{title:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},titlefont:c({},u,{}),titleposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle center&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],editType:&quot;calc&quot;}}}},{&quot;../../components/color/attributes&quot;:365,&quot;../../lib/extend&quot;:493,&quot;../../plots/attributes&quot;:550,&quot;../../plots/domain&quot;:584,&quot;../../plots/font_attributes&quot;:585,&quot;../../plots/template_attributes&quot;:633}],901:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;pie&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:619}],902:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../components/color&quot;),o={};function s(t){return function(e,r){return!!e&amp;&amp;(!!(e=i(e)).isValid()&amp;&amp;(e=a.addOpacity(e,e.getAlpha()),t[r]||(t[r]=e),e))}}function l(t,e){var r,n=JSON.stringify(t),a=e[n];if(!a){for(a=t.slice(),r=0;r&lt;t.length;r++)a.push(i(t[r]).lighten(20).toHexString());for(r=0;r&lt;t.length;r++)a.push(i(t[r]).darken(20).toHexString());e[n]=a}return a}e.exports={calc:function(t,e){var r,i,a=[],o=t._fullLayout,l=o.hiddenlabels||[],c=e.labels,u=e.marker.colors||[],f=e.values,h=e._length,p=e._hasValues&amp;&amp;h;if(e.dlabel)for(c=new Array(h),r=0;r&lt;h;r++)c[r]=String(e.label0+r*e.dlabel);var d={},m=s(o[&quot;_&quot;+e.type+&quot;colormap&quot;]),g=0,v=!1;for(r=0;r&lt;h;r++){var y,x,b;if(p){if(y=f[r],!n(y))continue;y=+y}else y=1;void 0!==(x=c[r])&amp;&amp;&quot;&quot;!==x||(x=r);var _=d[x=String(x)];void 0===_?(d[x]=a.length,(b=-1!==l.indexOf(x))||(g+=y),a.push({v:y,label:x,color:m(u[r],x),i:r,pts:[r],hidden:b})):(v=!0,(i=a[_]).v+=y,i.pts.push(r),i.hidden||(g+=y),!1===i.color&amp;&amp;u[r]&amp;&amp;(i.color=m(u[r],x)))}return a=a.filter((function(t){return t.v&gt;=0})),(&quot;funnelarea&quot;===e.type?v:e.sort)&amp;&amp;a.sort((function(t,e){return e.v-t.v})),a[0]&amp;&amp;(a[0].vTotal=g),a},crossTraceCalc:function(t,e){var r=(e||{}).type;r||(r=&quot;pie&quot;);var n=t._fullLayout,i=t.calcdata,a=n[r+&quot;colorway&quot;],s=n[&quot;_&quot;+r+&quot;colormap&quot;];n[&quot;extend&quot;+r+&quot;colors&quot;]&amp;&amp;(a=l(a,o));for(var c=0,u=0;u&lt;i.length;u++){var f=i[u];if(f[0].trace.type===r)for(var h=0;h&lt;f.length;h++){var p=f[h];!1===p.color&amp;&amp;(s[p.label]?p.color=s[p.label]:(s[p.label]=p.color=a[c%a.length],c++))}}},makePullColorFn:s,generateExtendedColors:l}},{&quot;../../components/color&quot;:366,&quot;fast-isnumeric&quot;:190,tinycolor2:312}],903:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText;function l(t,e){var r=Array.isArray(t),a=i.isArrayOrTypedArray(e),o=Math.min(r?t.length:1/0,a?e.length:1/0);if(isFinite(o)||(o=0),o&amp;&amp;a){for(var s,l=0;l&lt;o;l++){var c=e[l];if(n(c)&amp;&amp;c&gt;0){s=!0;break}}s||(o=0)}return{hasLabels:r,hasValues:a,len:o}}e.exports={handleLabelsAndValues:l,supplyDefaults:function(t,e,r,n){function c(r,n){return i.coerce(t,e,a,r,n)}var u=l(c(&quot;labels&quot;),c(&quot;values&quot;)),f=u.len;if(e._hasLabels=u.hasLabels,e._hasValues=u.hasValues,!e._hasLabels&amp;&amp;e._hasValues&amp;&amp;(c(&quot;label0&quot;),c(&quot;dlabel&quot;)),f){e._length=f,c(&quot;marker.line.width&quot;)&amp;&amp;c(&quot;marker.line.color&quot;),c(&quot;marker.colors&quot;),c(&quot;scalegroup&quot;);var h,p=c(&quot;text&quot;),d=c(&quot;texttemplate&quot;);if(d||(h=c(&quot;textinfo&quot;,Array.isArray(p)?&quot;text+percent&quot;:&quot;percent&quot;)),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),d||h&amp;&amp;&quot;none&quot;!==h){var m=c(&quot;textposition&quot;);s(t,e,n,c,m,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(m)||&quot;auto&quot;===m||&quot;outside&quot;===m)&amp;&amp;c(&quot;automargin&quot;),(&quot;inside&quot;===m||&quot;auto&quot;===m||Array.isArray(m))&amp;&amp;c(&quot;insidetextorientation&quot;)}o(e,n,c);var g=c(&quot;hole&quot;);if(c(&quot;title.text&quot;)){var v=c(&quot;title.position&quot;,g?&quot;middle center&quot;:&quot;top center&quot;);g||&quot;middle center&quot;!==v||(e.title.position=&quot;top center&quot;),i.coerceFont(c,&quot;title.font&quot;,n.font)}c(&quot;sort&quot;),c(&quot;direction&quot;),c(&quot;rotation&quot;),c(&quot;pull&quot;)}else e.visible=!1}}},{&quot;../../lib&quot;:503,&quot;../../plots/domain&quot;:584,&quot;../bar/defaults&quot;:652,&quot;./attributes&quot;:900,&quot;fast-isnumeric&quot;:190}],904:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx/helpers&quot;).appendArrayMultiPointValues;e.exports=function(t,e){var r={curveNumber:e.index,pointNumbers:t.pts,data:e._input,fullData:e,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,bbox:t.bbox,v:t.v};return 1===t.pts.length&amp;&amp;(r.pointNumber=r.i=t.pts[0]),n(r,e,t.pts),&quot;funnelarea&quot;===e.type&amp;&amp;(delete r.v,delete r.i),r}},{&quot;../../components/fx/helpers&quot;:402}],905:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);function i(t){return-1!==t.indexOf(&quot;e&quot;)?t.replace(/[.]?0+e/,&quot;e&quot;):-1!==t.indexOf(&quot;.&quot;)?t.replace(/[.]?0+$/,&quot;&quot;):t}r.formatPiePercent=function(t,e){var r=i((100*t).toPrecision(3));return n.numSeparate(r,e)+&quot;%&quot;},r.formatPieValue=function(t,e){var r=i(t.toPrecision(10));return n.numSeparate(r,e)},r.getFirstFilled=function(t,e){if(Array.isArray(t))for(var r=0;r&lt;e.length;r++){var n=t[e[r]];if(n||0===n||&quot;&quot;===n)return n}},r.castOption=function(t,e){return Array.isArray(t)?r.getFirstFilled(t,e):t||void 0},r.getRotationAngle=function(t){return(&quot;auto&quot;===t?0:t)*Math.PI/180}},{&quot;../../lib&quot;:503}],906:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),styleOne:t(&quot;./style_one&quot;),moduleType:&quot;trace&quot;,name:&quot;pie&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;pie-like&quot;,&quot;pie&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;./attributes&quot;:900,&quot;./base_plot&quot;:901,&quot;./calc&quot;:902,&quot;./defaults&quot;:903,&quot;./layout_attributes&quot;:907,&quot;./layout_defaults&quot;:908,&quot;./plot&quot;:909,&quot;./style&quot;:910,&quot;./style_one&quot;:911}],907:[function(t,e,r){&quot;use strict&quot;;e.exports={hiddenlabels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},piecolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendpiecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],908:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;hiddenlabels&quot;),r(&quot;piecolorway&quot;,e.colorway),r(&quot;extendpiecolors&quot;)}},{&quot;../../lib&quot;:503,&quot;./layout_attributes&quot;:907}],909:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib&quot;),c=l.strScale,u=l.strTranslate,f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../bar/uniform_text&quot;),p=h.recordMinTextSize,d=h.clearMinTextSize,m=t(&quot;../bar/constants&quot;).TEXTPAD,g=t(&quot;./helpers&quot;),v=t(&quot;./event_data&quot;),y=t(&quot;../../lib&quot;).isValidTextValue;function x(t,e,r){var i=r[0],o=i.cx,s=i.cy,c=i.trace,u=&quot;funnelarea&quot;===c.type;&quot;_hasHoverLabel&quot;in c||(c._hasHoverLabel=!1),&quot;_hasHoverEvent&quot;in c||(c._hasHoverEvent=!1),t.on(&quot;mouseover&quot;,(function(t){var r=e._fullLayout,f=e._fullData[c.index];if(!e._dragging&amp;&amp;!1!==r.hovermode){var h=f.hoverinfo;if(Array.isArray(h)&amp;&amp;(h=a.castHoverinfo({hoverinfo:[g.castOption(h,t.pts)],_module:c._module},r,0)),&quot;all&quot;===h&amp;&amp;(h=&quot;label+text+value+percent+name&quot;),f.hovertemplate||&quot;none&quot;!==h&amp;&amp;&quot;skip&quot;!==h&amp;&amp;h){var p=t.rInscribed||0,d=o+t.pxmid[0]*(1-p),m=s+t.pxmid[1]*(1-p),y=r.separators,x=[];if(h&amp;&amp;-1!==h.indexOf(&quot;label&quot;)&amp;&amp;x.push(t.label),t.text=g.castOption(f.hovertext||f.text,t.pts),h&amp;&amp;-1!==h.indexOf(&quot;text&quot;)){var b=t.text;l.isValidTextValue(b)&amp;&amp;x.push(b)}t.value=t.v,t.valueLabel=g.formatPieValue(t.v,y),h&amp;&amp;-1!==h.indexOf(&quot;value&quot;)&amp;&amp;x.push(t.valueLabel),t.percent=t.v/i.vTotal,t.percentLabel=g.formatPiePercent(t.percent,y),h&amp;&amp;-1!==h.indexOf(&quot;percent&quot;)&amp;&amp;x.push(t.percentLabel);var _=f.hoverlabel,w=_.font,T=[];a.loneHover({trace:c,x0:d-p*i.r,x1:d+p*i.r,y:m,_x0:u?o+t.TL[0]:d-p*i.r,_x1:u?o+t.TR[0]:d+p*i.r,_y0:u?s+t.TL[1]:m-p*i.r,_y1:u?s+t.BL[1]:m+p*i.r,text:x.join(&quot;&lt;br&gt;&quot;),name:f.hovertemplate||-1!==h.indexOf(&quot;name&quot;)?f.name:void 0,idealAlign:t.pxmid[0]&lt;0?&quot;left&quot;:&quot;right&quot;,color:g.castOption(_.bgcolor,t.pts)||t.color,borderColor:g.castOption(_.bordercolor,t.pts),fontFamily:g.castOption(w.family,t.pts),fontSize:g.castOption(w.size,t.pts),fontColor:g.castOption(w.color,t.pts),nameLength:g.castOption(_.namelength,t.pts),textAlign:g.castOption(_.align,t.pts),hovertemplate:g.castOption(f.hovertemplate,t.pts),hovertemplateLabels:t,eventData:[v(t,f)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:e,inOut_bbox:T}),t.bbox=T[0],c._hasHoverLabel=!0}c._hasHoverEvent=!0,e.emit(&quot;plotly_hover&quot;,{points:[v(t,f)],event:n.event})}})),t.on(&quot;mouseout&quot;,(function(t){var r=e._fullLayout,i=e._fullData[c.index],o=n.select(this).datum();c._hasHoverEvent&amp;&amp;(t.originalEvent=n.event,e.emit(&quot;plotly_unhover&quot;,{points:[v(o,i)],event:n.event}),c._hasHoverEvent=!1),c._hasHoverLabel&amp;&amp;(a.loneUnhover(r._hoverlayer.node()),c._hasHoverLabel=!1)})),t.on(&quot;click&quot;,(function(t){var r=e._fullLayout,i=e._fullData[c.index];e._dragging||!1===r.hovermode||(e._hoverdata=[v(t,i)],a.click(e,n.event))}))}function b(t,e,r){var n=g.castOption(t.insidetextfont.color,e.pts);!n&amp;&amp;t._input.textfont&amp;&amp;(n=g.castOption(t._input.textfont.color,e.pts));var i=g.castOption(t.insidetextfont.family,e.pts)||g.castOption(t.textfont.family,e.pts)||r.family,a=g.castOption(t.insidetextfont.size,e.pts)||g.castOption(t.textfont.size,e.pts)||r.size;return{color:n||o.contrast(e.color),family:i,size:a}}function _(t,e){for(var r,n,i=0;i&lt;t.length;i++)if((n=(r=t[i][0]).trace).title.text){var a=n.title.text;n._meta&amp;&amp;(a=l.templateString(a,n._meta));var o=s.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).text(a).call(s.font,n.title.font).call(f.convertToTspans,e),c=s.bBox(o.node(),!0);r.titleBox={width:c.width,height:c.height},o.remove()}}function w(t,e,r){var n=r.r||e.rpx1,i=e.rInscribed;if(e.startangle===e.stopangle)return{rCenter:1-i,scale:0,rotate:0,textPosAngle:0};var a,o=e.ring,s=1===o&amp;&amp;Math.abs(e.startangle-e.stopangle)===2*Math.PI,l=e.halfangle,c=e.midangle,u=r.trace.insidetextorientation,f=&quot;horizontal&quot;===u,h=&quot;tangential&quot;===u,p=&quot;radial&quot;===u,d=&quot;auto&quot;===u,m=[];if(!d){var g,v=function(r,i){if(function(t,e){var r=t.startangle,n=t.stopangle;return r&gt;e&amp;&amp;e&gt;n||r&lt;e&amp;&amp;e&lt;n}(e,r)){var s=Math.abs(r-e.startangle),l=Math.abs(r-e.stopangle),c=s&lt;l?s:l;(a=&quot;tan&quot;===i?k(t,n,o,c,0):T(t,n,o,c,Math.PI/2)).textPosAngle=r,m.push(a)}};if(f||h){for(g=4;g&gt;=-4;g-=2)v(Math.PI*g,&quot;tan&quot;);for(g=4;g&gt;=-4;g-=2)v(Math.PI*(g+1),&quot;tan&quot;)}if(f||p){for(g=4;g&gt;=-4;g-=2)v(Math.PI*(g+1.5),&quot;rad&quot;);for(g=4;g&gt;=-4;g-=2)v(Math.PI*(g+.5),&quot;rad&quot;)}}if(s||d||f){var y=Math.sqrt(t.width*t.width+t.height*t.height);if((a={scale:i*n*2/y,rCenter:1-i,rotate:0}).textPosAngle=(e.startangle+e.stopangle)/2,a.scale&gt;=1)return a;m.push(a)}(d||p)&amp;&amp;((a=T(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,m.push(a)),(d||h)&amp;&amp;((a=k(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,m.push(a));for(var x=0,b=0,_=0;_&lt;m.length;_++){var w=m[_].scale;if(b&lt;w&amp;&amp;(b=w,x=_),!d&amp;&amp;b&gt;=1)break}return m[x]}function T(t,e,r,n,i){e=Math.max(0,e-2*m);var a=t.width/t.height,o=S(a,n,e,r);return{scale:2*o/t.height,rCenter:A(a,o/e),rotate:M(i)}}function k(t,e,r,n,i){e=Math.max(0,e-2*m);var a=t.height/t.width,o=S(a,n,e,r);return{scale:2*o/t.width,rCenter:A(a,o/e),rotate:M(i+Math.PI/2)}}function A(t,e){return Math.cos(e)-t*e}function M(t){return(180/Math.PI*t+720)%180-90}function S(t,e,r,n){var i=t+1/(2*Math.tan(e));return r*Math.min(1/(Math.sqrt(i*i+.5)+i),n/(Math.sqrt(t*t+n/2)+t))}function E(t,e){return t.v!==e.vTotal||e.trace.hole?Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2):1}function L(t,e){var r=e.pxmid[0],n=e.pxmid[1],i=t.width/2,a=t.height/2;return r&lt;0&amp;&amp;(i*=-1),n&lt;0&amp;&amp;(a*=-1),{scale:1,rCenter:1,rotate:0,x:i+Math.abs(a)*(i&gt;0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function C(t,e){var r,n,i,a=t.trace,o={x:t.cx,y:t.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=I(a),-1!==a.title.position.indexOf(&quot;top&quot;)?(o.y-=(1+i)*t.r,s.ty-=t.titleBox.height):-1!==a.title.position.indexOf(&quot;bottom&quot;)&amp;&amp;(o.y+=(1+i)*t.r);var l,c,u=(l=t.r,c=t.trace.aspectratio,l/(void 0===c?1:c)),f=e.w*(a.domain.x[1]-a.domain.x[0])/2;return-1!==a.title.position.indexOf(&quot;left&quot;)?(f+=u,o.x-=(1+i)*u,s.tx+=t.titleBox.width/2):-1!==a.title.position.indexOf(&quot;center&quot;)?f*=2:-1!==a.title.position.indexOf(&quot;right&quot;)&amp;&amp;(f+=u,o.x+=(1+i)*u,s.tx-=t.titleBox.width/2),r=f/t.titleBox.width,n=P(t,e)/t.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function P(t,e){var r=t.trace,n=e.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(t.titleBox.height,n/2)}function I(t){var e,r=t.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,e=0;e&lt;t.pull.length;e++)t.pull[e]&gt;r&amp;&amp;(r=t.pull[e]);return r}function O(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i=t[n][0],a=i.trace,o=a.domain,s=e.w*(o.x[1]-o.x[0]),l=e.h*(o.y[1]-o.y[0]);a.title.text&amp;&amp;&quot;middle center&quot;!==a.title.position&amp;&amp;(l-=P(i,e));var c=s/2,u=l/2;&quot;funnelarea&quot;!==a.type||a.scalegroup||(u/=a.aspectratio),i.r=Math.min(c,u)/(1+I(a)),i.cx=e.l+e.w*(a.domain.x[1]+a.domain.x[0])/2,i.cy=e.t+e.h*(1-a.domain.y[0])-l/2,a.title.text&amp;&amp;-1!==a.title.position.indexOf(&quot;bottom&quot;)&amp;&amp;(i.cy-=P(i,e)),a.scalegroup&amp;&amp;-1===r.indexOf(a.scalegroup)&amp;&amp;r.push(a.scalegroup)}!function(t,e){for(var r,n,i,a=0;a&lt;e.length;a++){var o=1/0,s=e[a];for(n=0;n&lt;t.length;n++)if(r=t[n][0],(i=r.trace).scalegroup===s){var l;if(&quot;pie&quot;===i.type)l=r.r*r.r;else if(&quot;funnelarea&quot;===i.type){var c,u;i.aspectratio&gt;1?(c=r.r,u=c/i.aspectratio):(u=r.r,c=u*i.aspectratio),c*=(1+i.baseratio)/2,l=c*u}o=Math.min(o,l/r.vTotal)}for(n=0;n&lt;t.length;n++)if(r=t[n][0],(i=r.trace).scalegroup===s){var f=o*r.vTotal;&quot;funnelarea&quot;===i.type&amp;&amp;(f/=(1+i.baseratio)/2,f/=i.aspectratio),r.r=Math.sqrt(f)}}}(t,r)}function z(t,e){return[t*Math.sin(e),-t*Math.cos(e)]}function D(t,e,r){var n=t._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&amp;&amp;o&amp;&amp;&quot;none&quot;!==o){var s,c=o.split(&quot;+&quot;),u=function(t){return-1!==c.indexOf(t)},f=u(&quot;label&quot;),h=u(&quot;text&quot;),p=u(&quot;value&quot;),d=u(&quot;percent&quot;),m=n.separators;if(s=f?[e.label]:[],h){var v=g.getFirstFilled(i.text,e.pts);y(v)&amp;&amp;s.push(v)}p&amp;&amp;s.push(g.formatPieValue(e.v,m)),d&amp;&amp;s.push(g.formatPiePercent(e.v/r.vTotal,m)),e.text=s.join(&quot;&lt;br&gt;&quot;)}if(a){var x=l.castOption(i,e.i,&quot;texttemplate&quot;);if(x){var b=function(t){return{label:t.label,value:t.v,valueLabel:g.formatPieValue(t.v,n.separators),percent:t.v/r.vTotal,percentLabel:g.formatPiePercent(t.v/r.vTotal,n.separators),color:t.color,text:t.text,customdata:l.castOption(i,t.i,&quot;customdata&quot;)}}(e),_=g.getFirstFilled(i.text,e.pts);(y(_)||&quot;&quot;===_)&amp;&amp;(b.text=_),e.text=l.texttemplateString(x,b,t._fullLayout._d3locale,b,i._meta||{})}else e.text=&quot;&quot;}}function R(t,e){var r=t.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(e.left+e.right)/2,o=(e.top+e.bottom)/2;t.textX=a*n-o*i,t.textY=a*i+o*n,t.noCenter=!0}e.exports={plot:function(t,e){var r=t._fullLayout,a=r._size;d(&quot;pie&quot;,r),_(e,t),O(e,a);var h=l.makeTraceGroups(r._pielayer,e,&quot;trace&quot;).each((function(e){var h=n.select(this),d=e[0],m=d.trace;!function(t){var e,r,n,i=t[0],a=i.r,o=i.trace,s=g.getRotationAngle(o.rotation),l=2*Math.PI/i.vTotal,c=&quot;px0&quot;,u=&quot;px1&quot;;if(&quot;counterclockwise&quot;===o.direction){for(e=0;e&lt;t.length&amp;&amp;t[e].hidden;e++);if(e===t.length)return;s+=l*t[e].v,l*=-1,c=&quot;px1&quot;,u=&quot;px0&quot;}for(n=z(a,s),e=0;e&lt;t.length;e++)(r=t[e]).hidden||(r[c]=n,r.startangle=s,s+=l*r.v/2,r.pxmid=z(a,s),r.midangle=s,s+=l*r.v/2,n=z(a,s),r.stopangle=s,r[u]=n,r.largeArc=r.v&gt;i.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/i.vTotal,.5),r.ring=1-o.hole,r.rInscribed=E(r,i))}(e),h.attr(&quot;stroke-linejoin&quot;,&quot;round&quot;),h.each((function(){var v=n.select(this).selectAll(&quot;g.slice&quot;).data(e);v.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),v.exit().remove();var y=[[[],[]],[[],[]]],_=!1;v.each((function(i,a){if(i.hidden)n.select(this).selectAll(&quot;path,g&quot;).remove();else{i.pointNumber=i.i,i.curveNumber=m.index,y[i.pxmid[1]&lt;0?0:1][i.pxmid[0]&lt;0?0:1].push(i);var o=d.cx,c=d.cy,u=n.select(this),h=u.selectAll(&quot;path.surface&quot;).data([i]);if(h.enter().append(&quot;path&quot;).classed(&quot;surface&quot;,!0).style({&quot;pointer-events&quot;:&quot;all&quot;}),u.call(x,t,e),m.pull){var v=+g.castOption(m.pull,i.pts)||0;v&gt;0&amp;&amp;(o+=v*i.pxmid[0],c+=v*i.pxmid[1])}i.cxFinal=o,i.cyFinal=c;var T=m.hole;if(i.v===d.vTotal){var k=&quot;M&quot;+(o+i.px0[0])+&quot;,&quot;+(c+i.px0[1])+C(i.px0,i.pxmid,!0,1)+C(i.pxmid,i.px0,!0,1)+&quot;Z&quot;;T?h.attr(&quot;d&quot;,&quot;M&quot;+(o+T*i.px0[0])+&quot;,&quot;+(c+T*i.px0[1])+C(i.px0,i.pxmid,!1,T)+C(i.pxmid,i.px0,!1,T)+&quot;Z&quot;+k):h.attr(&quot;d&quot;,k)}else{var A=C(i.px0,i.px1,!0,1);if(T){var M=1-T;h.attr(&quot;d&quot;,&quot;M&quot;+(o+T*i.px1[0])+&quot;,&quot;+(c+T*i.px1[1])+C(i.px1,i.px0,!1,T)+&quot;l&quot;+M*i.px0[0]+&quot;,&quot;+M*i.px0[1]+A+&quot;Z&quot;)}else h.attr(&quot;d&quot;,&quot;M&quot;+o+&quot;,&quot;+c+&quot;l&quot;+i.px0[0]+&quot;,&quot;+i.px0[1]+A+&quot;Z&quot;)}D(t,i,d);var S=g.castOption(m.textposition,i.pts),E=u.selectAll(&quot;g.slicetext&quot;).data(i.text&amp;&amp;&quot;none&quot;!==S?[0]:[]);E.enter().append(&quot;g&quot;).classed(&quot;slicetext&quot;,!0),E.exit().remove(),E.each((function(){var u=l.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),h=l.ensureUniformFontSize(t,&quot;outside&quot;===S?function(t,e,r){var n=g.castOption(t.outsidetextfont.color,e.pts)||g.castOption(t.textfont.color,e.pts)||r.color,i=g.castOption(t.outsidetextfont.family,e.pts)||g.castOption(t.textfont.family,e.pts)||r.family,a=g.castOption(t.outsidetextfont.size,e.pts)||g.castOption(t.textfont.size,e.pts)||r.size;return{color:n,family:i,size:a}}(m,i,r.font):b(m,i,r.font));u.text(i.text).attr({class:&quot;slicetext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(s.font,h).call(f.convertToTspans,t);var v,y=s.bBox(u.node());if(&quot;outside&quot;===S)v=L(y,i);else if(v=w(y,i,d),&quot;auto&quot;===S&amp;&amp;v.scale&lt;1){var x=l.ensureUniformFontSize(t,m.outsidetextfont);u.call(s.font,x),v=L(y=s.bBox(u.node()),i)}var T=v.textPosAngle,k=void 0===T?i.pxmid:z(d.r,T);if(v.targetX=o+k[0]*v.rCenter+(v.x||0),v.targetY=c+k[1]*v.rCenter+(v.y||0),R(v,y),v.outside){var A=v.targetY;i.yLabelMin=A-y.height/2,i.yLabelMid=A,i.yLabelMax=A+y.height/2,i.labelExtraX=0,i.labelExtraY=0,_=!0}v.fontSize=h.size,p(m.type,v,r),e[a].transform=v,u.attr(&quot;transform&quot;,l.getTextTransform(v))}))}function C(t,e,r,n){var a=n*(e[0]-t[0]),o=n*(e[1]-t[1]);return&quot;a&quot;+n*d.r+&quot;,&quot;+n*d.r+&quot; 0 &quot;+i.largeArc+(r?&quot; 1 &quot;:&quot; 0 &quot;)+a+&quot;,&quot;+o}}));var T=n.select(this).selectAll(&quot;g.titletext&quot;).data(m.title.text?[0]:[]);if(T.enter().append(&quot;g&quot;).classed(&quot;titletext&quot;,!0),T.exit().remove(),T.each((function(){var e,r=l.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),i=m.title.text;m._meta&amp;&amp;(i=l.templateString(i,m._meta)),r.text(i).attr({class:&quot;titletext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(s.font,m.title.font).call(f.convertToTspans,t),e=&quot;middle center&quot;===m.title.position?function(t){var e=Math.sqrt(t.titleBox.width*t.titleBox.width+t.titleBox.height*t.titleBox.height);return{x:t.cx,y:t.cy,scale:t.trace.hole*t.r*2/e,tx:0,ty:-t.titleBox.height/2+t.trace.title.font.size}}(d):C(d,a),r.attr(&quot;transform&quot;,u(e.x,e.y)+c(Math.min(1,e.scale))+u(e.tx,e.ty))})),_&amp;&amp;function(t,e){var r,n,i,a,o,s,l,c,u,f,h,p,d;function m(t,e){return t.pxmid[1]-e.pxmid[1]}function v(t,e){return e.pxmid[1]-t.pxmid[1]}function y(t,r){r||(r={});var i,c,u,h,p=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),d=n?t.yLabelMin:t.yLabelMax,m=n?t.yLabelMax:t.yLabelMin,v=t.cyFinal+o(t.px0[1],t.px1[1]),y=p-d;if(y*l&gt;0&amp;&amp;(t.labelExtraY=y),Array.isArray(e.pull))for(c=0;c&lt;f.length;c++)(u=f[c])===t||(g.castOption(e.pull,t.pts)||0)&gt;=(g.castOption(e.pull,u.pts)||0)||((t.pxmid[1]-u.pxmid[1])*l&gt;0?(y=u.cyFinal+o(u.px0[1],u.px1[1])-d-t.labelExtraY)*l&gt;0&amp;&amp;(t.labelExtraY+=y):(m+t.labelExtraY-v)*l&gt;0&amp;&amp;(i=3*s*Math.abs(c-f.indexOf(t)),(h=u.cxFinal+a(u.px0[0],u.px1[0])+i-(t.cxFinal+t.pxmid[0])-t.labelExtraX)*s&gt;0&amp;&amp;(t.labelExtraX+=h)))}for(n=0;n&lt;2;n++)for(i=n?m:v,o=n?Math.max:Math.min,l=n?1:-1,r=0;r&lt;2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,(c=t[n][r]).sort(i),u=t[1-n][r],f=u.concat(c),p=[],h=0;h&lt;c.length;h++)void 0!==c[h].yLabelMid&amp;&amp;p.push(c[h]);for(d=!1,h=0;n&amp;&amp;h&lt;u.length;h++)if(void 0!==u[h].yLabelMid){d=u[h];break}for(h=0;h&lt;p.length;h++){var x=h&amp;&amp;p[h-1];d&amp;&amp;!h&amp;&amp;(x=d),y(p[h],x)}}}(y,m),function(t,e){t.each((function(t){var r=n.select(this);if(t.labelExtraX||t.labelExtraY){var i=r.select(&quot;g.slicetext text&quot;);t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,i.attr(&quot;transform&quot;,l.getTextTransform(t.transform));var a=t.cxFinal+t.pxmid[0],s=&quot;M&quot;+a+&quot;,&quot;+(t.cyFinal+t.pxmid[1]),c=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]&lt;0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)&gt;Math.abs(f)?s+=&quot;l&quot;+f*t.pxmid[0]/t.pxmid[1]+&quot;,&quot;+f+&quot;H&quot;+(a+t.labelExtraX+c):s+=&quot;l&quot;+t.labelExtraX+&quot;,&quot;+u+&quot;v&quot;+(f-u)+&quot;h&quot;+c}else s+=&quot;V&quot;+(t.yLabelMid+t.labelExtraY)+&quot;h&quot;+c;l.ensureSingle(r,&quot;path&quot;,&quot;textline&quot;).call(o.stroke,e.outsidetextfont.color).attr({&quot;stroke-width&quot;:Math.min(2,e.outsidetextfont.size/8),d:s,fill:&quot;none&quot;})}else r.select(&quot;path.textline&quot;).remove()}))}(v,m),_&amp;&amp;m.automargin){var k=s.bBox(h.node()),A=m.domain,M=a.w*(A.x[1]-A.x[0]),S=a.h*(A.y[1]-A.y[0]),E=(.5*M-d.r)/a.w,P=(.5*S-d.r)/a.h;i.autoMargin(t,&quot;pie.&quot;+m.uid+&quot;.automargin&quot;,{xl:A.x[0]-E,xr:A.x[1]+E,yb:A.y[0]-P,yt:A.y[1]+P,l:Math.max(d.cx-d.r-k.left,0),r:Math.max(k.right-(d.cx+d.r),0),b:Math.max(k.bottom-(d.cy+d.r),0),t:Math.max(d.cy-d.r-k.top,0),pad:5})}}))}));setTimeout((function(){h.selectAll(&quot;tspan&quot;).each((function(){var t=n.select(this);t.attr(&quot;dy&quot;)&amp;&amp;t.attr(&quot;dy&quot;,t.attr(&quot;dy&quot;))}))}),0)},formatSliceLabel:D,transformInsideText:w,determineInsideTextFont:b,positionTitleOutside:C,prerenderTitles:_,layoutAreas:O,attachFxHandlers:x,computeTransform:R}},{&quot;../../components/color&quot;:366,&quot;../../components/drawing&quot;:388,&quot;../../components/fx&quot;:406,&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plots/plots&quot;:619,&quot;../bar/constants&quot;:650,&quot;../bar/uniform_text&quot;:664,&quot;./event_data&quot;:904,&quot;./helpers&quot;:905,&quot;@plotly/d3&quot;:58}],910:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;./style_one&quot;),a=t(&quot;../bar/uniform_text&quot;).resizeText;e.exports=function(t){var e=t._fullLayout._pielayer.selectAll(&quot;.trace&quot;);a(t,e,&quot;pie&quot;),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(i,t,e)}))}))}},{&quot;../bar/uniform_text&quot;:664,&quot;./style_one&quot;:911,&quot;@plotly/d3&quot;:58}],911:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;./helpers&quot;).castOption;e.exports=function(t,e,r){var a=r.marker.line,o=i(a.color,e.pts)||n.defaultLine,s=i(a.width,e.pts)||0;t.style(&quot;stroke-width&quot;,s).call(n.fill,e.color).call(n.stroke,o)}},{&quot;../../components/color&quot;:366,&quot;./helpers&quot;:905}],912:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;);e.exports={x:n.x,y:n.y,xy:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},indices:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},xbounds:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ybounds:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},text:n.text,marker:{color:{valType:&quot;color&quot;,arrayOk:!1,editType:&quot;calc&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,arrayOk:!1,editType:&quot;calc&quot;},blend:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},sizemin:{valType:&quot;number&quot;,min:.1,max:2,dflt:.5,editType:&quot;calc&quot;},sizemax:{valType:&quot;number&quot;,min:.1,dflt:20,editType:&quot;calc&quot;},border:{color:{valType:&quot;color&quot;,arrayOk:!1,editType:&quot;calc&quot;},arearatio:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},transforms:void 0}},{&quot;../scatter/attributes&quot;:926}],913:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../stackgl_modules&quot;).gl_pointcloud2d,i=t(&quot;../../lib/str2rgbarray&quot;),a=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,o=t(&quot;../scatter/get_trace_color&quot;);function s(t,e){this.scene=t,this.uid=e,this.type=&quot;pointcloud&quot;,this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color=&quot;rgb(0, 0, 0)&quot;,this.name=&quot;&quot;,this.hoverinfo=&quot;all&quot;,this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=n(t.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var l=s.prototype;l.handlePick=function(t){var e=this.idToIndex[t.pointId];return{trace:this,dataCoord:t.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[2*e],this.pickXYData[2*e+1]]:[this.pickXData[e],this.pickYData[e]],textLabel:Array.isArray(this.textLabels)?this.textLabels[e]:this.textLabels,color:this.color,name:this.name,pointIndex:e,hoverinfo:this.hoverinfo}},l.update=function(t){this.index=t.index,this.textLabels=t.text,this.name=t.name,this.hoverinfo=t.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(t),this.color=o(t,{})},l.updateFast=function(t){var e,r,n,o,s,l,c=this.xData=this.pickXData=t.x,u=this.yData=this.pickYData=t.y,f=this.pickXYData=t.xy,h=t.xbounds&amp;&amp;t.ybounds,p=t.indices,d=this.bounds;if(f){if(n=f,e=f.length&gt;&gt;&gt;1,h)d[0]=t.xbounds[0],d[2]=t.xbounds[1],d[1]=t.ybounds[0],d[3]=t.ybounds[1];else for(l=0;l&lt;e;l++)o=n[2*l],s=n[2*l+1],o&lt;d[0]&amp;&amp;(d[0]=o),o&gt;d[2]&amp;&amp;(d[2]=o),s&lt;d[1]&amp;&amp;(d[1]=s),s&gt;d[3]&amp;&amp;(d[3]=s);if(p)r=p;else for(r=new Int32Array(e),l=0;l&lt;e;l++)r[l]=l}else for(e=c.length,n=new Float32Array(2*e),r=new Int32Array(e),l=0;l&lt;e;l++)o=c[l],s=u[l],r[l]=l,n[2*l]=o,n[2*l+1]=s,o&lt;d[0]&amp;&amp;(d[0]=o),o&gt;d[2]&amp;&amp;(d[2]=o),s&lt;d[1]&amp;&amp;(d[1]=s),s&gt;d[3]&amp;&amp;(d[3]=s);this.idToIndex=r,this.pointcloudOptions.idToIndex=r,this.pointcloudOptions.positions=n;var m=i(t.marker.color),g=i(t.marker.border.color),v=t.opacity*t.marker.opacity;m[3]*=v,this.pointcloudOptions.color=m;var y=t.marker.blend;if(null===y){y=c.length&lt;100||u.length&lt;100}this.pointcloudOptions.blend=y,g[3]*=v,this.pointcloudOptions.borderColor=g;var x=t.marker.sizemin,b=Math.max(t.marker.sizemax,t.marker.sizemin);this.pointcloudOptions.sizeMin=x,this.pointcloudOptions.sizeMax=b,this.pointcloudOptions.areaRatio=t.marker.border.arearatio,this.pointcloud.update(this.pointcloudOptions);var _=this.scene.xaxis,w=this.scene.yaxis,T=b/2||.5;t._extremes[_._id]=a(_,[d[0],d[2]],{ppad:T}),t._extremes[w._id]=a(w,[d[1],d[3]],{ppad:T})},l.dispose=function(){this.pointcloud.dispose()},e.exports=function(t,e){var r=new s(t,e.uid);return r.update(e),r}},{&quot;../../../stackgl_modules&quot;:1120,&quot;../../lib/str2rgbarray&quot;:528,&quot;../../plots/cartesian/autorange&quot;:553,&quot;../scatter/get_trace_color&quot;:936}],914:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;);e.exports=function(t,e,r){function a(r,a){return n.coerce(t,e,i,r,a)}a(&quot;x&quot;),a(&quot;y&quot;),a(&quot;xbounds&quot;),a(&quot;ybounds&quot;),t.xy&amp;&amp;t.xy instanceof Float32Array&amp;&amp;(e.xy=t.xy),t.indices&amp;&amp;t.indices instanceof Int32Array&amp;&amp;(e.indices=t.indices),a(&quot;text&quot;),a(&quot;marker.color&quot;,r),a(&quot;marker.opacity&quot;),a(&quot;marker.blend&quot;),a(&quot;marker.sizemin&quot;),a(&quot;marker.sizemax&quot;),a(&quot;marker.border.color&quot;,r),a(&quot;marker.border.arearatio&quot;),e._length=null}},{&quot;../../lib&quot;:503,&quot;./attributes&quot;:912}],915:[function(t,e,r){&quot;use strict&quot;;[&quot;*pointcloud* trace is deprecated!&quot;,&quot;Please consider switching to the *scattergl* trace type.&quot;].join(&quot; &quot;);e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;../scatter3d/calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;pointcloud&quot;,basePlotModule:t(&quot;../../plots/gl2d&quot;),categories:[&quot;gl&quot;,&quot;gl2d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl2d&quot;:596,&quot;../scatter3d/calc&quot;:955,&quot;./attributes&quot;:912,&quot;./convert&quot;:913,&quot;./defaults&quot;:914}],916:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=t(&quot;../../components/fx/attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../plot_api/plot_template&quot;).templatedArray,f=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).descriptionOnlyNumbers,h=t(&quot;../../lib/extend&quot;).extendFlat,p=t(&quot;../../plot_api/edit_types&quot;).overrideAll;(e.exports=p({hoverinfo:h({},i.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:o.hoverlabel,domain:s({name:&quot;sankey&quot;,trace:!0}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;},valueformat:{valType:&quot;string&quot;,dflt:&quot;.3s&quot;,description:f(&quot;value&quot;)},valuesuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;},arrangement:{valType:&quot;enumerated&quot;,values:[&quot;snap&quot;,&quot;perpendicular&quot;,&quot;freeform&quot;,&quot;fixed&quot;],dflt:&quot;snap&quot;},textfont:n({}),customdata:void 0,node:{label:{valType:&quot;data_array&quot;,dflt:[]},groups:{valType:&quot;info_array&quot;,impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:&quot;number&quot;,editType:&quot;calc&quot;}},x:{valType:&quot;data_array&quot;,dflt:[]},y:{valType:&quot;data_array&quot;,dflt:[]},color:{valType:&quot;color&quot;,arrayOk:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:a.defaultLine,arrayOk:!0},width:{valType:&quot;number&quot;,min:0,dflt:.5,arrayOk:!0}},pad:{valType:&quot;number&quot;,arrayOk:!1,min:0,dflt:20},thickness:{valType:&quot;number&quot;,arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],dflt:&quot;all&quot;},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:[&quot;value&quot;,&quot;label&quot;]})},link:{label:{valType:&quot;data_array&quot;,dflt:[]},color:{valType:&quot;color&quot;,arrayOk:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:a.defaultLine,arrayOk:!0},width:{valType:&quot;number&quot;,min:0,dflt:0,arrayOk:!0}},source:{valType:&quot;data_array&quot;,dflt:[]},target:{valType:&quot;data_array&quot;,dflt:[]},value:{valType:&quot;data_array&quot;,dflt:[]},hoverinfo:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],dflt:&quot;all&quot;},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:[&quot;value&quot;,&quot;label&quot;]}),colorscales:u(&quot;concentrationscales&quot;,{editType:&quot;calc&quot;,label:{valType:&quot;string&quot;,editType:&quot;calc&quot;,dflt:&quot;&quot;},cmax:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:1},cmin:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:0},colorscale:h(c().colorscale,{dflt:[[0,&quot;white&quot;],[1,&quot;black&quot;]]})})}},&quot;calc&quot;,&quot;nested&quot;)).transforms=void 0},{&quot;../../components/color/attributes&quot;:365,&quot;../../components/colorscale/attributes&quot;:373,&quot;../../components/fx/attributes&quot;:397,&quot;../../lib/extend&quot;:493,&quot;../../plot_api/edit_types&quot;:536,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/attributes&quot;:550,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/domain&quot;:584,&quot;../../plots/font_attributes&quot;:585,&quot;../../plots/template_attributes&quot;:633}],917:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;../../plots/get_data&quot;).getModuleCalcData,a=t(&quot;./plot&quot;),o=t(&quot;../../components/fx/layout_attributes&quot;),s=t(&quot;../../lib/setcursor&quot;),l=t(&quot;../../components/dragelement&quot;),c=t(&quot;../../plots/cartesian/select&quot;).prepSelect,u=t(&quot;../../lib&quot;),f=t(&quot;../../registry&quot;);function h(t,e){var r=t._fullData[e],n=t._fullLayout,i=n.dragmode,a=&quot;pan&quot;===n.dragmode?&quot;move&quot;:&quot;crosshair&quot;,o=r._bgRect;if(&quot;pan&quot;!==i&amp;&amp;&quot;zoom&quot;!==i){s(o,a);var h={_id:&quot;x&quot;,c2p:u.identity,_offset:r._sankey.translateX,_length:r._sankey.width},p={_id:&quot;y&quot;,c2p:u.identity,_offset:r._sankey.translateY,_length:r._sankey.height},d={gd:t,element:o.node(),plotinfo:{id:e,xaxis:h,yaxis:p,fillRangeItems:u.noop},subplot:e,xaxes:[h],yaxes:[p],doneFnCompleted:function(r){var n,i=t._fullData[e],a=i.node.groups.slice(),o=[];function s(t){for(var e=i._sankey.graph.nodes,r=0;r&lt;e.length;r++)if(e[r].pointNumber===t)return e[r]}for(var l=0;l&lt;r.length;l++){var c=s(r[l].pointNumber);if(c)if(c.group){for(var u=0;u&lt;c.childrenNodes.length;u++)o.push(c.childrenNodes[u].pointNumber);a[c.pointNumber-i.node._count]=!1}else o.push(c.pointNumber)}n=a.filter(Boolean).concat([o]),f.call(&quot;_guiRestyle&quot;,t,{&quot;node.groups&quot;:[n]},e)},prepFn:function(t,e,r){c(t,e,r,d,i)}};l.init(d)}}r.name=&quot;sankey&quot;,r.baseLayoutAttrOverrides=n({hoverlabel:o.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.plot=function(t){var e=i(t.calcdata,&quot;sankey&quot;)[0];a(t,e),r.updateFx(t)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;sankey&quot;),a=e._has&amp;&amp;e._has(&quot;sankey&quot;);i&amp;&amp;!a&amp;&amp;(n._paperdiv.selectAll(&quot;.sankey&quot;).remove(),n._paperdiv.selectAll(&quot;.bgsankey&quot;).remove())},r.updateFx=function(t){for(var e=0;e&lt;t._fullData.length;e++)h(t,e)}},{&quot;../../components/dragelement&quot;:385,&quot;../../components/fx/layout_attributes&quot;:407,&quot;../../lib&quot;:503,&quot;../../lib/setcursor&quot;:524,&quot;../../plot_api/edit_types&quot;:536,&quot;../../plots/cartesian/select&quot;:575,&quot;../../plots/get_data&quot;:593,&quot;../../registry&quot;:638,&quot;./plot&quot;:922}],918:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;strongly-connected-components&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/gup&quot;).wrap,o=i.isArrayOrTypedArray,s=i.isIndex,l=t(&quot;../../components/colorscale&quot;);function c(t){var e,r=t.node,a=t.link,c=[],u=o(a.color),f=o(a.customdata),h={},p={},d=a.colorscales.length;for(e=0;e&lt;d;e++){var m=a.colorscales[e],g=l.extractScale(m,{cLetter:&quot;c&quot;}),v=l.makeColorScaleFunc(g);p[m.label]=v}var y=0;for(e=0;e&lt;a.value.length;e++)a.source[e]&gt;y&amp;&amp;(y=a.source[e]),a.target[e]&gt;y&amp;&amp;(y=a.target[e]);var x,b=y+1;t.node._count=b;var _=t.node.groups,w={};for(e=0;e&lt;_.length;e++){var T=_[e];for(x=0;x&lt;T.length;x++){var k=T[x],A=b+e;w.hasOwnProperty(k)?i.warn(&quot;Node &quot;+k+&quot; is already part of a group.&quot;):w[k]=A}}var M={source:[],target:[]};for(e=0;e&lt;a.value.length;e++){var S=a.value[e],E=a.source[e],L=a.target[e];if(S&gt;0&amp;&amp;s(E,b)&amp;&amp;s(L,b)&amp;&amp;(!w.hasOwnProperty(E)||!w.hasOwnProperty(L)||w[E]!==w[L])){w.hasOwnProperty(L)&amp;&amp;(L=w[L]),w.hasOwnProperty(E)&amp;&amp;(E=w[E]),L=+L,h[E=+E]=h[L]=!0;var C=&quot;&quot;;a.label&amp;&amp;a.label[e]&amp;&amp;(C=a.label[e]);var P=null;C&amp;&amp;p.hasOwnProperty(C)&amp;&amp;(P=p[C]),c.push({pointNumber:e,label:C,color:u?a.color[e]:a.color,customdata:f?a.customdata[e]:a.customdata,concentrationscale:P,source:E,target:L,value:+S}),M.source.push(E),M.target.push(L)}}var I=b+_.length,O=o(r.color),z=o(r.customdata),D=[];for(e=0;e&lt;I;e++)if(h[e]){var R=r.label[e];D.push({group:e&gt;b-1,childrenNodes:[],pointNumber:e,label:R,color:O?r.color[e]:r.color,customdata:z?r.customdata[e]:r.customdata})}var F=!1;return function(t,e,r){for(var a=i.init2dArray(t,0),o=0;o&lt;Math.min(e.length,r.length);o++)if(i.isIndex(e[o],t)&amp;&amp;i.isIndex(r[o],t)){if(e[o]===r[o])return!0;a[e[o]].push(r[o])}return n(a).components.some((function(t){return t.length&gt;1}))}(I,M.source,M.target)&amp;&amp;(F=!0),{circular:F,links:c,nodes:D,groups:_,groupLookup:w}}e.exports=function(t,e){var r=c(e);return a({circular:r.circular,_nodes:r.nodes,_links:r.links,_groups:r.groups,_groupLookup:r.groupLookup})}},{&quot;../../components/colorscale&quot;:378,&quot;../../lib&quot;:503,&quot;../../lib/gup&quot;:500,&quot;strongly-connected-components&quot;:306}],919:[function(t,e,r){&quot;use strict&quot;;e.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:&quot;linear&quot;,cn:{sankey:&quot;sankey&quot;,sankeyLinks:&quot;sankey-links&quot;,sankeyLink:&quot;sankey-link&quot;,sankeyNodeSet:&quot;sankey-node-set&quot;,sankeyNode:&quot;sankey-node&quot;,nodeRect:&quot;node-rect&quot;,nodeLabel:&quot;node-label&quot;}}},{}],920:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;tinycolor2&quot;),s=t(&quot;../../plots/domain&quot;).defaults,l=t(&quot;../../components/fx/hoverlabel_defaults&quot;),c=t(&quot;../../plot_api/plot_template&quot;),u=t(&quot;../../plots/array_container_defaults&quot;);function f(t,e){function r(r,a){return n.coerce(t,e,i.link.colorscales,r,a)}r(&quot;label&quot;),r(&quot;cmin&quot;),r(&quot;cmax&quot;),r(&quot;colorscale&quot;)}e.exports=function(t,e,r,h){function p(r,a){return n.coerce(t,e,i,r,a)}var d=n.extendDeep(h.hoverlabel,t.hoverlabel),m=t.node,g=c.newContainer(e,&quot;node&quot;);function v(t,e){return n.coerce(m,g,i.node,t,e)}v(&quot;label&quot;),v(&quot;groups&quot;),v(&quot;x&quot;),v(&quot;y&quot;),v(&quot;pad&quot;),v(&quot;thickness&quot;),v(&quot;line.color&quot;),v(&quot;line.width&quot;),v(&quot;hoverinfo&quot;,t.hoverinfo),l(m,g,v,d),v(&quot;hovertemplate&quot;);var y=h.colorway;v(&quot;color&quot;,g.label.map((function(t,e){return a.addOpacity(function(t){return y[t%y.length]}(e),.8)}))),v(&quot;customdata&quot;);var x=t.link||{},b=c.newContainer(e,&quot;link&quot;);function _(t,e){return n.coerce(x,b,i.link,t,e)}_(&quot;label&quot;),_(&quot;source&quot;),_(&quot;target&quot;),_(&quot;value&quot;),_(&quot;line.color&quot;),_(&quot;line.width&quot;),_(&quot;hoverinfo&quot;,t.hoverinfo),l(x,b,_,d),_(&quot;hovertemplate&quot;);var w,T=o(h.paper_bgcolor).getLuminance()&lt;.333?&quot;rgba(255, 255, 255, 0.6)&quot;:&quot;rgba(0, 0, 0, 0.2)&quot;;_(&quot;color&quot;,n.repeat(T,b.value.length)),_(&quot;customdata&quot;),u(x,b,{name:&quot;colorscales&quot;,handleItemDefaults:f}),s(e,h,p),p(&quot;orientation&quot;),p(&quot;valueformat&quot;),p(&quot;valuesuffix&quot;),g.x.length&amp;&amp;g.y.length&amp;&amp;(w=&quot;freeform&quot;),p(&quot;arrangement&quot;,w),n.coerceFont(p,&quot;textfont&quot;,n.extendFlat({},h.font)),e._length=null}},{&quot;../../components/color&quot;:366,&quot;../../components/fx/hoverlabel_defaults&quot;:404,&quot;../../lib&quot;:503,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/array_container_defaults&quot;:549,&quot;../../plots/domain&quot;:584,&quot;./attributes&quot;:916,tinycolor2:312}],921:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),moduleType:&quot;trace&quot;,name:&quot;sankey&quot;,basePlotModule:t(&quot;./base_plot&quot;),selectPoints:t(&quot;./select.js&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:916,&quot;./base_plot&quot;:917,&quot;./calc&quot;:918,&quot;./defaults&quot;:920,&quot;./plot&quot;:922,&quot;./select.js&quot;:924}],922:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=i.numberFormat,o=t(&quot;./render&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;../../components/color&quot;),c=t(&quot;./constants&quot;).cn,u=i._;function f(t){return&quot;&quot;!==t}function h(t,e){return t.filter((function(t){return t.key===e.traceId}))}function p(t,e){n.select(t).select(&quot;path&quot;).style(&quot;fill-opacity&quot;,e),n.select(t).select(&quot;rect&quot;).style(&quot;fill-opacity&quot;,e)}function d(t){n.select(t).select(&quot;text.name&quot;).style(&quot;fill&quot;,&quot;black&quot;)}function m(t){return function(e){return-1!==t.node.sourceLinks.indexOf(e.link)||-1!==t.node.targetLinks.indexOf(e.link)}}function g(t){return function(e){return-1!==e.node.sourceLinks.indexOf(t.link)||-1!==e.node.targetLinks.indexOf(t.link)}}function v(t,e,r){e&amp;&amp;r&amp;&amp;h(r,e).selectAll(&quot;.&quot;+c.sankeyLink).filter(m(e)).call(x.bind(0,e,r,!1))}function y(t,e,r){e&amp;&amp;r&amp;&amp;h(r,e).selectAll(&quot;.&quot;+c.sankeyLink).filter(m(e)).call(b.bind(0,e,r,!1))}function x(t,e,r,n){var i=n.datum().link.label;n.style(&quot;fill-opacity&quot;,(function(t){if(!t.link.concentrationscale)return.4})),i&amp;&amp;h(e,t).selectAll(&quot;.&quot;+c.sankeyLink).filter((function(t){return t.link.label===i})).style(&quot;fill-opacity&quot;,(function(t){if(!t.link.concentrationscale)return.4})),r&amp;&amp;h(e,t).selectAll(&quot;.&quot;+c.sankeyNode).filter(g(t)).call(v)}function b(t,e,r,n){var i=n.datum().link.label;n.style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),i&amp;&amp;h(e,t).selectAll(&quot;.&quot;+c.sankeyLink).filter((function(t){return t.link.label===i})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),r&amp;&amp;h(e,t).selectAll(c.sankeyNode).filter(g(t)).call(y)}function _(t,e){var r=t.hoverlabel||{},n=i.nestedProperty(r,e).get();return!Array.isArray(n)&amp;&amp;n}e.exports=function(t,e){for(var r=t._fullLayout,i=r._paper,h=r._size,m=0;m&lt;t._fullData.length;m++)if(t._fullData[m].visible&amp;&amp;t._fullData[m].type===c.sankey&amp;&amp;!t._fullData[m]._viewInitial){var g=t._fullData[m].node;t._fullData[m]._viewInitial={node:{groups:g.groups.slice(),x:g.x.slice(),y:g.y.slice()}}}var w=u(t,&quot;source:&quot;)+&quot; &quot;,T=u(t,&quot;target:&quot;)+&quot; &quot;,k=u(t,&quot;concentration:&quot;)+&quot; &quot;,A=u(t,&quot;incoming flow count:&quot;)+&quot; &quot;,M=u(t,&quot;outgoing flow count:&quot;)+&quot; &quot;;o(t,i,e,{width:h.w,height:h.h,margin:{t:h.t,r:h.r,b:h.b,l:h.l}},{linkEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(x.bind(0,r,i,!0)),&quot;skip&quot;!==r.link.trace.link.hoverinfo&amp;&amp;(r.link.fullData=r.link.trace,t.emit(&quot;plotly_hover&quot;,{event:n.event,points:[r.link]})))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var o=i.link.trace.link;if(&quot;none&quot;!==o.hoverinfo&amp;&amp;&quot;skip&quot;!==o.hoverinfo){for(var c=[],u=0,h=0;h&lt;i.flow.links.length;h++){var m=i.flow.links[h];if(&quot;closest&quot;!==t._fullLayout.hovermode||i.link.pointNumber===m.pointNumber){i.link.pointNumber===m.pointNumber&amp;&amp;(u=h),m.fullData=m.trace,o=i.link.trace.link;var g=y(m),v={valueLabel:a(i.valueFormat)(m.value)+i.valueSuffix};c.push({x:g[0],y:g[1],name:v.valueLabel,text:[m.label||&quot;&quot;,w+m.source.label,T+m.target.label,m.concentrationscale?k+a(&quot;%0.2f&quot;)(m.flow.labelConcentration):&quot;&quot;].filter(f).join(&quot;&lt;br&gt;&quot;),color:_(o,&quot;bgcolor&quot;)||l.addOpacity(m.color,1),borderColor:_(o,&quot;bordercolor&quot;),fontFamily:_(o,&quot;font.family&quot;),fontSize:_(o,&quot;font.size&quot;),fontColor:_(o,&quot;font.color&quot;),nameLength:_(o,&quot;namelength&quot;),textAlign:_(o,&quot;align&quot;),idealAlign:n.event.x&lt;g[0]?&quot;right&quot;:&quot;left&quot;,hovertemplate:o.hovertemplate,hovertemplateLabels:v,eventData:[m]})}}s.loneHover(c,{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t,anchorIndex:u}).each((function(){i.link.concentrationscale||p(this,.65),d(this)}))}}function y(t){var e,r;t.circular?(e=(t.circularPathData.leftInnerExtent+t.circularPathData.rightInnerExtent)/2,r=t.circularPathData.verticalFullExtent):(e=(t.source.x1+t.target.x0)/2,r=(t.y0+t.y1)/2);var n=[e,r];return&quot;v&quot;===t.trace.orientation&amp;&amp;n.reverse(),n[0]+=i.parent.translateX,n[1]+=i.parent.translateY,n}},unhover:function(e,i,a){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(b.bind(0,i,a,!0)),&quot;skip&quot;!==i.link.trace.link.hoverinfo&amp;&amp;(i.link.fullData=i.link.trace,t.emit(&quot;plotly_unhover&quot;,{event:n.event,points:[i.link]})),s.loneUnhover(r._hoverlayer.node()))},select:function(e,r){var i=r.link;i.originalEvent=n.event,t._hoverdata=[i],s.click(t,{target:!0})}},nodeEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(v,r,i),&quot;skip&quot;!==r.node.trace.node.hoverinfo&amp;&amp;(r.node.fullData=r.node.trace,t.emit(&quot;plotly_hover&quot;,{event:n.event,points:[r.node]})))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var o=i.node.trace.node;if(&quot;none&quot;!==o.hoverinfo&amp;&amp;&quot;skip&quot;!==o.hoverinfo){var l=n.select(e).select(&quot;.&quot;+c.nodeRect),u=t._fullLayout._paperdiv.node().getBoundingClientRect(),h=l.node().getBoundingClientRect(),m=h.left-2-u.left,g=h.right+2-u.left,v=h.top+h.height/4-u.top,y={valueLabel:a(i.valueFormat)(i.node.value)+i.valueSuffix};i.node.fullData=i.node.trace,t._fullLayout._calcInverseTransform(t);var x=t._fullLayout._invScaleX,b=t._fullLayout._invScaleY,w=s.loneHover({x0:x*m,x1:x*g,y:b*v,name:a(i.valueFormat)(i.node.value)+i.valueSuffix,text:[i.node.label,A+i.node.targetLinks.length,M+i.node.sourceLinks.length].filter(f).join(&quot;&lt;br&gt;&quot;),color:_(o,&quot;bgcolor&quot;)||i.tinyColorHue,borderColor:_(o,&quot;bordercolor&quot;),fontFamily:_(o,&quot;font.family&quot;),fontSize:_(o,&quot;font.size&quot;),fontColor:_(o,&quot;font.color&quot;),nameLength:_(o,&quot;namelength&quot;),textAlign:_(o,&quot;align&quot;),idealAlign:&quot;left&quot;,hovertemplate:o.hovertemplate,hovertemplateLabels:y,eventData:[i.node]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t});p(w,.85),d(w)}}},unhover:function(e,i,a){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(y,i,a),&quot;skip&quot;!==i.node.trace.node.hoverinfo&amp;&amp;(i.node.fullData=i.node.trace,t.emit(&quot;plotly_unhover&quot;,{event:n.event,points:[i.node]})),s.loneUnhover(r._hoverlayer.node()))},select:function(e,r,i){var a=r.node;a.originalEvent=n.event,t._hoverdata=[a],n.select(e).call(y,r,i),s.click(t,{target:!0})}}})}},{&quot;../../components/color&quot;:366,&quot;../../components/fx&quot;:406,&quot;../../lib&quot;:503,&quot;./constants&quot;:919,&quot;./render&quot;:923,&quot;@plotly/d3&quot;:58}],923:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-force&quot;),i=t(&quot;d3-interpolate&quot;).interpolateNumber,a=t(&quot;@plotly/d3&quot;),o=t(&quot;@plotly/d3-sankey&quot;),s=t(&quot;@plotly/d3-sankey-circular&quot;),l=t(&quot;./constants&quot;),c=t(&quot;tinycolor2&quot;),u=t(&quot;../../components/color&quot;),f=t(&quot;../../components/drawing&quot;),h=t(&quot;../../lib&quot;),p=h.strTranslate,d=h.strRotate,m=t(&quot;../../lib/gup&quot;),g=m.keyFun,v=m.repeat,y=m.unwrap,x=t(&quot;../../lib/svg_text_utils&quot;),b=t(&quot;../../registry&quot;),_=t(&quot;../../constants/alignment&quot;),w=_.CAP_SHIFT,T=_.LINE_SPACING;function k(t,e,r){var n,i=y(e),a=i.trace,u=a.domain,f=&quot;h&quot;===a.orientation,p=a.node.pad,d=a.node.thickness,m=t.width*(u.x[1]-u.x[0]),g=t.height*(u.y[1]-u.y[0]),v=i._nodes,x=i._links,b=i.circular;(n=b?s.sankeyCircular().circularLinkGap(0):o.sankey()).iterations(l.sankeyIterations).size(f?[m,g]:[g,m]).nodeWidth(d).nodePadding(p).nodeId((function(t){return t.pointNumber})).nodes(v).links(x);var _,w,T,k=n();for(var A in n.nodePadding()&lt;p&amp;&amp;h.warn(&quot;node.pad was reduced to &quot;,n.nodePadding(),&quot; to fit within the figure.&quot;),i._groupLookup){var M,S=parseInt(i._groupLookup[A]);for(_=0;_&lt;k.nodes.length;_++)if(k.nodes[_].pointNumber===S){M=k.nodes[_];break}if(M){var E={pointNumber:parseInt(A),x0:M.x0,x1:M.x1,y0:M.y0,y1:M.y1,partOfGroup:!0,sourceLinks:[],targetLinks:[]};k.nodes.unshift(E),M.childrenNodes.unshift(E)}}if(function(){for(_=0;_&lt;k.nodes.length;_++){var t,e,r=k.nodes[_],n={};for(w=0;w&lt;r.targetLinks.length;w++)t=(e=r.targetLinks[w]).source.pointNumber+&quot;:&quot;+e.target.pointNumber,n.hasOwnProperty(t)||(n[t]=[]),n[t].push(e);var i=Object.keys(n);for(w=0;w&lt;i.length;w++){var a=n[t=i[w]],o=0,s={};for(T=0;T&lt;a.length;T++)s[(e=a[T]).label]||(s[e.label]=0),s[e.label]+=e.value,o+=e.value;for(T=0;T&lt;a.length;T++)(e=a[T]).flow={value:o,labelConcentration:s[e.label]/o,concentration:e.value/o,links:a},e.concentrationscale&amp;&amp;(e.color=c(e.concentrationscale(e.flow.labelConcentration)))}var l=0;for(w=0;w&lt;r.sourceLinks.length;w++)l+=r.sourceLinks[w].value;for(w=0;w&lt;r.sourceLinks.length;w++)(e=r.sourceLinks[w]).concentrationOut=e.value/l;var u=0;for(w=0;w&lt;r.targetLinks.length;w++)u+=r.targetLinks[w].value;for(w=0;w&lt;r.targetLinks.length;w++)(e=r.targetLinks[w]).concenrationIn=e.value/u}}(),a.node.x.length&amp;&amp;a.node.y.length){for(_=0;_&lt;Math.min(a.node.x.length,a.node.y.length,k.nodes.length);_++)if(a.node.x[_]&amp;&amp;a.node.y[_]){var L=[a.node.x[_]*m,a.node.y[_]*g];k.nodes[_].x0=L[0]-d/2,k.nodes[_].x1=L[0]+d/2;var C=k.nodes[_].y1-k.nodes[_].y0;k.nodes[_].y0=L[1]-C/2,k.nodes[_].y1=L[1]+C/2}if(&quot;snap&quot;===a.arrangement)!function(t){t.forEach((function(t){var e,r,n,i=0,a=t.length;for(t.sort((function(t,e){return t.y0-e.y0})),n=0;n&lt;a;++n)(e=t[n]).y0&gt;=i||(r=i-e.y0)&gt;1e-6&amp;&amp;(e.y0+=r,e.y1+=r),i=e.y1+p}))}(function(t){var e,r,n=t.map((function(t,e){return{x0:t.x0,index:e}})).sort((function(t,e){return t.x0-e.x0})),i=[],a=-1,o=-1/0;for(_=0;_&lt;n.length;_++){var s=t[n[_].index];s.x0&gt;o+d&amp;&amp;(a+=1,e=s.x0),o=s.x0,i[a]||(i[a]=[]),i[a].push(s),r=e-s.x0,s.x0+=r,s.x1+=r}return i}(v=k.nodes));n.update(k)}return{circular:b,key:r,trace:a,guid:h.randstr(),horizontal:f,width:m,height:g,nodePad:a.node.pad,nodeLineColor:a.node.line.color,nodeLineWidth:a.node.line.width,linkLineColor:a.link.line.color,linkLineWidth:a.link.line.width,valueFormat:a.valueformat,valueSuffix:a.valuesuffix,textFont:a.textfont,translateX:u.x[0]*t.width+t.margin.l,translateY:t.height-u.y[1]*t.height+t.margin.t,dragParallel:f?g:m,dragPerpendicular:f?m:g,arrangement:a.arrangement,sankey:n,graph:k,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}function A(t,e,r){var n=c(e.color),i=e.source.label+&quot;|&quot;+e.target.label+&quot;__&quot;+r;return e.trace=t.trace,e.curveNumber=t.trace.index,{circular:t.circular,key:i,traceId:t.key,pointNumber:e.pointNumber,link:e,tinyColorHue:u.tinyRGB(n),tinyColorAlpha:n.getAlpha(),linkPath:M,linkLineColor:t.linkLineColor,linkLineWidth:t.linkLineWidth,valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,parent:t,interactionState:t.interactionState,flow:e.flow}}function M(){return function(t){if(t.link.circular)return e=t.link,r=e.width/2,n=e.circularPathData,&quot;top&quot;===e.circularLinkType?&quot;M &quot;+n.targetX+&quot; &quot;+(n.targetY+r)+&quot; L&quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY+r)+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightSmallArcRadius+r)+&quot; 0 0 1 &quot;+(n.rightFullExtent-r)+&quot; &quot;+(n.targetY-n.rightSmallArcRadius)+&quot;L&quot;+(n.rightFullExtent-r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightLargeArcRadius+r)+&quot; 0 0 1 &quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftLargeArcRadius+r)+&quot; 0 0 1 &quot;+(n.leftFullExtent+r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;L&quot;+(n.leftFullExtent+r)+&quot; &quot;+(n.sourceY-n.leftSmallArcRadius)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftSmallArcRadius+r)+&quot; 0 0 1 &quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY-r)+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftSmallArcRadius-r)+&quot; 0 0 0 &quot;+(n.leftFullExtent-r)+&quot; &quot;+(n.sourceY-n.leftSmallArcRadius)+&quot;L&quot;+(n.leftFullExtent-r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftLargeArcRadius-r)+&quot; 0 0 0 &quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;L&quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightLargeArcRadius-r)+&quot; 0 0 0 &quot;+(n.rightFullExtent+r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;L&quot;+(n.rightFullExtent+r)+&quot; &quot;+(n.targetY-n.rightSmallArcRadius)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightSmallArcRadius-r)+&quot; 0 0 0 &quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY-r)+&quot;L&quot;+n.targetX+&quot; &quot;+(n.targetY-r)+&quot;Z&quot;:&quot;M &quot;+n.targetX+&quot; &quot;+(n.targetY-r)+&quot; L&quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY-r)+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightSmallArcRadius+r)+&quot; 0 0 0 &quot;+(n.rightFullExtent-r)+&quot; &quot;+(n.targetY+n.rightSmallArcRadius)+&quot;L&quot;+(n.rightFullExtent-r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightLargeArcRadius+r)+&quot; 0 0 0 &quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftLargeArcRadius+r)+&quot; 0 0 0 &quot;+(n.leftFullExtent+r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;L&quot;+(n.leftFullExtent+r)+&quot; &quot;+(n.sourceY+n.leftSmallArcRadius)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftSmallArcRadius+r)+&quot; 0 0 0 &quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY+r)+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftSmallArcRadius-r)+&quot; 0 0 1 &quot;+(n.leftFullExtent-r)+&quot; &quot;+(n.sourceY+n.leftSmallArcRadius)+&quot;L&quot;+(n.leftFullExtent-r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftLargeArcRadius-r)+&quot; 0 0 1 &quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;L&quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightLargeArcRadius-r)+&quot; 0 0 1 &quot;+(n.rightFullExtent+r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;L&quot;+(n.rightFullExtent+r)+&quot; &quot;+(n.targetY+n.rightSmallArcRadius)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightSmallArcRadius-r)+&quot; 0 0 1 &quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY+r)+&quot;L&quot;+n.targetX+&quot; &quot;+(n.targetY+r)+&quot;Z&quot;;var e,r,n,a=t.link.source.x1,o=t.link.target.x0,s=i(a,o),l=s(.5),c=s(.5),u=t.link.y0-t.link.width/2,f=t.link.y0+t.link.width/2,h=t.link.y1-t.link.width/2,p=t.link.y1+t.link.width/2;return&quot;M&quot;+a+&quot;,&quot;+u+&quot;C&quot;+l+&quot;,&quot;+u+&quot; &quot;+c+&quot;,&quot;+h+&quot; &quot;+o+&quot;,&quot;+h+&quot;L&quot;+o+&quot;,&quot;+p+&quot;C&quot;+c+&quot;,&quot;+p+&quot; &quot;+l+&quot;,&quot;+f+&quot; &quot;+a+&quot;,&quot;+f+&quot;Z&quot;}}function S(t,e){var r=c(e.color),n=l.nodePadAcross,i=t.nodePad/2;e.dx=e.x1-e.x0,e.dy=e.y1-e.y0;var a=e.dx,o=Math.max(.5,e.dy),s=&quot;node_&quot;+e.pointNumber;return e.group&amp;&amp;(s=h.randstr()),e.trace=t.trace,e.curveNumber=t.trace.index,{index:e.pointNumber,key:s,partOfGroup:e.partOfGroup||!1,group:e.group,traceId:t.key,trace:t.trace,node:e,nodePad:t.nodePad,nodeLineColor:t.nodeLineColor,nodeLineWidth:t.nodeLineWidth,textFont:t.textFont,size:t.horizontal?t.height:t.width,visibleWidth:Math.ceil(a),visibleHeight:o,zoneX:-n,zoneY:-i,zoneWidth:a+2*n,zoneHeight:o+2*i,labelY:t.horizontal?e.dy/2+1:e.dx/2+1,left:1===e.originalLayer,sizeAcross:t.width,forceLayouts:t.forceLayouts,horizontal:t.horizontal,darkBackground:r.getBrightness()&lt;=128,tinyColorHue:u.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,graph:t.graph,arrangement:t.arrangement,uniqueNodeLabelPathId:[t.guid,t.key,s].join(&quot;_&quot;),interactionState:t.interactionState,figure:t}}function E(t){t.attr(&quot;transform&quot;,(function(t){return p(t.node.x0.toFixed(3),t.node.y0.toFixed(3))}))}function L(t){t.call(E)}function C(t,e){t.call(L),e.attr(&quot;d&quot;,M())}function P(t){t.attr(&quot;width&quot;,(function(t){return t.node.x1-t.node.x0})).attr(&quot;height&quot;,(function(t){return t.visibleHeight}))}function I(t){return t.link.width&gt;1||t.linkLineWidth&gt;0}function O(t){return p(t.translateX,t.translateY)+(t.horizontal?&quot;matrix(1 0 0 1 0 0)&quot;:&quot;matrix(0 1 1 0 0 0)&quot;)}function z(t,e,r){t.on(&quot;.basic&quot;,null).on(&quot;mouseover.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.hover(this,t,e),t.interactionState.hovered=[this,t])})).on(&quot;mousemove.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.follow(this,t),t.interactionState.hovered=[this,t])})).on(&quot;mouseout.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.unhover(this,t,e),t.interactionState.hovered=!1)})).on(&quot;click.basic&quot;,(function(t){t.interactionState.hovered&amp;&amp;(r.unhover(this,t,e),t.interactionState.hovered=!1),t.interactionState.dragInProgress||t.partOfGroup||r.select(this,t,e)}))}function D(t,e,r,i){var o=a.behavior.drag().origin((function(t){return{x:t.node.x0+t.visibleWidth/2,y:t.node.y0+t.visibleHeight/2}})).on(&quot;dragstart&quot;,(function(a){if(&quot;fixed&quot;!==a.arrangement&amp;&amp;(h.ensureSingle(i._fullLayout._infolayer,&quot;g&quot;,&quot;dragcover&quot;,(function(t){i._fullLayout._dragCover=t})),h.raiseToTop(this),a.interactionState.dragInProgress=a.node,F(a.node),a.interactionState.hovered&amp;&amp;(r.nodeEvents.unhover.apply(0,a.interactionState.hovered),a.interactionState.hovered=!1),&quot;snap&quot;===a.arrangement)){var o=a.traceId+&quot;|&quot;+a.key;a.forceLayouts[o]?a.forceLayouts[o].alpha(1):function(t,e,r,i){!function(t){for(var e=0;e&lt;t.length;e++)t[e].y=(t[e].y0+t[e].y1)/2,t[e].x=(t[e].x0+t[e].x1)/2}(r.graph.nodes);var a=r.graph.nodes.filter((function(t){return t.originalX===r.node.originalX})).filter((function(t){return!t.partOfGroup}));r.forceLayouts[e]=n.forceSimulation(a).alphaDecay(0).force(&quot;collide&quot;,n.forceCollide().radius((function(t){return t.dy/2+r.nodePad/2})).strength(1).iterations(l.forceIterations)).force(&quot;constrain&quot;,function(t,e,r,n){return function(){for(var t=0,i=0;i&lt;r.length;i++){var a=r[i];a===n.interactionState.dragInProgress?(a.x=a.lastDraggedX,a.y=a.lastDraggedY):(a.vx=(a.originalX-a.x)/l.forceTicksPerFrame,a.y=Math.min(n.size-a.dy/2,Math.max(a.dy/2,a.y))),t=Math.max(t,Math.abs(a.vx),Math.abs(a.vy))}!n.interactionState.dragInProgress&amp;&amp;t&lt;.1&amp;&amp;n.forceLayouts[e].alpha()&gt;0&amp;&amp;n.forceLayouts[e].alpha(0)}}(0,e,a,r)).stop()}(0,o,a),function(t,e,r,n,i){window.requestAnimationFrame((function a(){var o;for(o=0;o&lt;l.forceTicksPerFrame;o++)r.forceLayouts[n].tick();if(function(t){for(var e=0;e&lt;t.length;e++)t[e].y0=t[e].y-t[e].dy/2,t[e].y1=t[e].y0+t[e].dy,t[e].x0=t[e].x-t[e].dx/2,t[e].x1=t[e].x0+t[e].dx}(r.graph.nodes),r.sankey.update(r.graph),C(t.filter(B(r)),e),r.forceLayouts[n].alpha()&gt;0)window.requestAnimationFrame(a);else{var s=r.node.originalX;r.node.x0=s-r.visibleWidth/2,r.node.x1=s+r.visibleWidth/2,R(r,i)}}))}(t,e,a,o,i)}})).on(&quot;drag&quot;,(function(r){if(&quot;fixed&quot;!==r.arrangement){var n=a.event.x,i=a.event.y;&quot;snap&quot;===r.arrangement?(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2,r.node.y0=i-r.visibleHeight/2,r.node.y1=i+r.visibleHeight/2):(&quot;freeform&quot;===r.arrangement&amp;&amp;(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2),i=Math.max(0,Math.min(r.size-r.visibleHeight/2,i)),r.node.y0=i-r.visibleHeight/2,r.node.y1=i+r.visibleHeight/2),F(r.node),&quot;snap&quot;!==r.arrangement&amp;&amp;(r.sankey.update(r.graph),C(t.filter(B(r)),e))}})).on(&quot;dragend&quot;,(function(t){if(&quot;fixed&quot;!==t.arrangement){t.interactionState.dragInProgress=!1;for(var e=0;e&lt;t.node.childrenNodes.length;e++)t.node.childrenNodes[e].x=t.node.x,t.node.childrenNodes[e].y=t.node.y;&quot;snap&quot;!==t.arrangement&amp;&amp;R(t,i)}}));t.on(&quot;.drag&quot;,null).call(o)}function R(t,e){for(var r=[],n=[],i=0;i&lt;t.graph.nodes.length;i++){var a=(t.graph.nodes[i].x0+t.graph.nodes[i].x1)/2,o=(t.graph.nodes[i].y0+t.graph.nodes[i].y1)/2;r.push(a/t.figure.width),n.push(o/t.figure.height)}b.call(&quot;_guiRestyle&quot;,e,{&quot;node.x&quot;:[r],&quot;node.y&quot;:[n]},t.trace.index).then((function(){e._fullLayout._dragCover&amp;&amp;e._fullLayout._dragCover.remove()}))}function F(t){t.lastDraggedX=t.x0+t.dx/2,t.lastDraggedY=t.y0+t.dy/2}function B(t){return function(e){return e.node.originalX===t.node.originalX}}e.exports=function(t,e,r,n,i){var o=!1;h.ensureSingle(t._fullLayout._infolayer,&quot;g&quot;,&quot;first-render&quot;,(function(){o=!0}));var s=t._fullLayout._dragCover,m=r.filter((function(t){return y(t).trace.visible})).map(k.bind(null,n)),b=e.selectAll(&quot;.&quot;+l.cn.sankey).data(m,g);b.exit().remove(),b.enter().append(&quot;g&quot;).classed(l.cn.sankey,!0).style(&quot;box-sizing&quot;,&quot;content-box&quot;).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;left&quot;,0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;).style(&quot;pointer-events&quot;,&quot;auto&quot;).attr(&quot;transform&quot;,O),b.each((function(e,r){t._fullData[r]._sankey=e;var n=&quot;bgsankey-&quot;+e.trace.uid+&quot;-&quot;+r;h.ensureSingle(t._fullLayout._draggers,&quot;rect&quot;,n),t._fullData[r]._bgRect=a.select(&quot;.&quot;+n),t._fullData[r]._bgRect.style(&quot;pointer-events&quot;,&quot;all&quot;).attr(&quot;width&quot;,e.width).attr(&quot;height&quot;,e.height).attr(&quot;x&quot;,e.translateX).attr(&quot;y&quot;,e.translateY).classed(&quot;bgsankey&quot;,!0).style({fill:&quot;transparent&quot;,&quot;stroke-width&quot;:0})})),b.transition().ease(l.ease).duration(l.duration).attr(&quot;transform&quot;,O);var _=b.selectAll(&quot;.&quot;+l.cn.sankeyLinks).data(v,g);_.enter().append(&quot;g&quot;).classed(l.cn.sankeyLinks,!0).style(&quot;fill&quot;,&quot;none&quot;);var L=_.selectAll(&quot;.&quot;+l.cn.sankeyLink).data((function(t){return t.graph.links.filter((function(t){return t.value})).map(A.bind(null,t))}),g);L.enter().append(&quot;path&quot;).classed(l.cn.sankeyLink,!0).call(z,b,i.linkEvents),L.style(&quot;stroke&quot;,(function(t){return I(t)?u.tinyRGB(c(t.linkLineColor)):t.tinyColorHue})).style(&quot;stroke-opacity&quot;,(function(t){return I(t)?u.opacity(t.linkLineColor):t.tinyColorAlpha})).style(&quot;fill&quot;,(function(t){return t.tinyColorHue})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})).style(&quot;stroke-width&quot;,(function(t){return I(t)?t.linkLineWidth:1})).attr(&quot;d&quot;,M()),L.style(&quot;opacity&quot;,(function(){return t._context.staticPlot||o||s?1:0})).transition().ease(l.ease).duration(l.duration).style(&quot;opacity&quot;,1),L.exit().transition().ease(l.ease).duration(l.duration).style(&quot;opacity&quot;,0).remove();var C=b.selectAll(&quot;.&quot;+l.cn.sankeyNodeSet).data(v,g);C.enter().append(&quot;g&quot;).classed(l.cn.sankeyNodeSet,!0),C.style(&quot;cursor&quot;,(function(t){switch(t.arrangement){case&quot;fixed&quot;:return&quot;default&quot;;case&quot;perpendicular&quot;:return&quot;ns-resize&quot;;default:return&quot;move&quot;}}));var R=C.selectAll(&quot;.&quot;+l.cn.sankeyNode).data((function(t){var e=t.graph.nodes;return function(t){var e,r=[];for(e=0;e&lt;t.length;e++)t[e].originalX=(t[e].x0+t[e].x1)/2,t[e].originalY=(t[e].y0+t[e].y1)/2,-1===r.indexOf(t[e].originalX)&amp;&amp;r.push(t[e].originalX);for(r.sort((function(t,e){return t-e})),e=0;e&lt;t.length;e++)t[e].originalLayerIndex=r.indexOf(t[e].originalX),t[e].originalLayer=t[e].originalLayerIndex/(r.length-1)}(e),e.map(S.bind(null,t))}),g);R.enter().append(&quot;g&quot;).classed(l.cn.sankeyNode,!0).call(E).style(&quot;opacity&quot;,(function(e){return!t._context.staticPlot&amp;&amp;!o||e.partOfGroup?0:1})),R.call(z,b,i.nodeEvents).call(D,L,i,t),R.transition().ease(l.ease).duration(l.duration).call(E).style(&quot;opacity&quot;,(function(t){return t.partOfGroup?0:1})),R.exit().transition().ease(l.ease).duration(l.duration).style(&quot;opacity&quot;,0).remove();var F=R.selectAll(&quot;.&quot;+l.cn.nodeRect).data(v);F.enter().append(&quot;rect&quot;).classed(l.cn.nodeRect,!0).call(P),F.style(&quot;stroke-width&quot;,(function(t){return t.nodeLineWidth})).style(&quot;stroke&quot;,(function(t){return u.tinyRGB(c(t.nodeLineColor))})).style(&quot;stroke-opacity&quot;,(function(t){return u.opacity(t.nodeLineColor)})).style(&quot;fill&quot;,(function(t){return t.tinyColorHue})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),F.transition().ease(l.ease).duration(l.duration).call(P);var B=R.selectAll(&quot;.&quot;+l.cn.nodeLabel).data(v);B.enter().append(&quot;text&quot;).classed(l.cn.nodeLabel,!0).style(&quot;cursor&quot;,&quot;default&quot;),B.attr(&quot;data-notex&quot;,1).text((function(t){return t.node.label})).each((function(e){var r=a.select(this);f.font(r,e.textFont),x.convertToTspans(r,t)})).style(&quot;text-shadow&quot;,x.makeTextShadow(t._fullLayout.paper_bgcolor)).attr(&quot;text-anchor&quot;,(function(t){return t.horizontal&amp;&amp;t.left?&quot;end&quot;:&quot;start&quot;})).attr(&quot;transform&quot;,(function(t){var e=a.select(this),r=x.lineCount(e),n=t.textFont.size*((r-1)*T-w),i=t.nodeLineWidth/2+3,o=((t.horizontal?t.visibleHeight:t.visibleWidth)-n)/2;t.horizontal&amp;&amp;(t.left?i=-i:i+=t.visibleWidth);var s=t.horizontal?&quot;&quot;:&quot;scale(-1,1)&quot;+d(90);return p(t.horizontal?i:o,t.horizontal?o:i)+s})),B.transition().ease(l.ease).duration(l.duration)}},{&quot;../../components/color&quot;:366,&quot;../../components/drawing&quot;:388,&quot;../../constants/alignment&quot;:471,&quot;../../lib&quot;:503,&quot;../../lib/gup&quot;:500,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../registry&quot;:638,&quot;./constants&quot;:919,&quot;@plotly/d3&quot;:58,&quot;@plotly/d3-sankey&quot;:57,&quot;@plotly/d3-sankey-circular&quot;:56,&quot;d3-force&quot;:111,&quot;d3-interpolate&quot;:116,tinycolor2:312}],924:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=[],n=t.cd[0].trace,i=n._sankey.graph.nodes,a=0;a&lt;i.length;a++){var o=i[a];if(!o.partOfGroup){var s=[(o.x0+o.x1)/2,(o.y0+o.y1)/2];&quot;v&quot;===n.orientation&amp;&amp;s.reverse(),e&amp;&amp;e.contains(s,!1,a,t)&amp;&amp;r.push({pointNumber:o.pointNumber})}}return r}},{}],925:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.texttemplate,t,&quot;txt&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;),n.mergeArray(e.customdata,t,&quot;data&quot;),n.mergeArray(e.textposition,t,&quot;tp&quot;),e.textfont&amp;&amp;(n.mergeArrayCastPositive(e.textfont.size,t,&quot;ts&quot;),n.mergeArray(e.textfont.color,t,&quot;tc&quot;),n.mergeArray(e.textfont.family,t,&quot;tf&quot;));var i=e.marker;if(i){n.mergeArrayCastPositive(i.size,t,&quot;ms&quot;),n.mergeArrayCastPositive(i.opacity,t,&quot;mo&quot;),n.mergeArray(i.symbol,t,&quot;mx&quot;),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;i.line&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;));var o=i.gradient;o&amp;&amp;&quot;none&quot;!==o.type&amp;&amp;(n.mergeArray(o.type,t,&quot;mgt&quot;),n.mergeArray(o.color,t,&quot;mgc&quot;))}}},{&quot;../../lib&quot;:503}],926:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/font_attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../components/drawing&quot;),u=t(&quot;./constants&quot;),f=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},x0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},dx:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;,anim:!0},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},y0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},dy:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;,anim:!0},xperiod:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},yperiod:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},xperiod0:{valType:&quot;any&quot;,editType:&quot;calc&quot;},yperiod0:{valType:&quot;any&quot;,editType:&quot;calc&quot;},xperiodalignment:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;middle&quot;,&quot;end&quot;],dflt:&quot;middle&quot;,editType:&quot;calc&quot;},yperiodalignment:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;middle&quot;,&quot;end&quot;],dflt:&quot;middle&quot;,editType:&quot;calc&quot;},xhoverformat:n(&quot;x&quot;),yhoverformat:n(&quot;y&quot;),stackgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc&quot;},groupnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;fraction&quot;,&quot;percent&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},stackgaps:{valType:&quot;enumerated&quot;,values:[&quot;infer zero&quot;,&quot;interpolate&quot;],dflt:&quot;infer zero&quot;,editType:&quot;calc&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},texttemplate:i({},{}),hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},mode:{valType:&quot;flaglist&quot;,flags:[&quot;lines&quot;,&quot;markers&quot;,&quot;text&quot;],extras:[&quot;none&quot;],editType:&quot;calc&quot;},hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;points&quot;,&quot;fills&quot;],editType:&quot;style&quot;},hovertemplate:a({},{keys:u.eventDataKeys}),line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;,anim:!0},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;,anim:!0},shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;spline&quot;,&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},smoothing:{valType:&quot;number&quot;,min:0,max:1.3,dflt:1,editType:&quot;plot&quot;},dash:f({},l,{editType:&quot;style&quot;}),simplify:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},connectgaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},cliponaxis:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},fill:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;tozeroy&quot;,&quot;tozerox&quot;,&quot;tonexty&quot;,&quot;tonextx&quot;,&quot;toself&quot;,&quot;tonext&quot;],editType:&quot;calc&quot;},fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;,anim:!0},marker:f({symbol:{valType:&quot;enumerated&quot;,values:c.symbolList,dflt:&quot;circle&quot;,arrayOk:!0,editType:&quot;style&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,arrayOk:!0,editType:&quot;style&quot;,anim:!0},size:{valType:&quot;number&quot;,min:0,dflt:6,arrayOk:!0,editType:&quot;calc&quot;,anim:!0},maxdisplayed:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},sizeref:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},sizemin:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},sizemode:{valType:&quot;enumerated&quot;,values:[&quot;diameter&quot;,&quot;area&quot;],dflt:&quot;diameter&quot;,editType:&quot;calc&quot;},line:f({width:{valType:&quot;number&quot;,min:0,arrayOk:!0,editType:&quot;style&quot;,anim:!0},editType:&quot;calc&quot;},o(&quot;marker.line&quot;,{anim:!0})),gradient:{type:{valType:&quot;enumerated&quot;,values:[&quot;radial&quot;,&quot;horizontal&quot;,&quot;vertical&quot;,&quot;none&quot;],arrayOk:!0,dflt:&quot;none&quot;,editType:&quot;calc&quot;},color:{valType:&quot;color&quot;,arrayOk:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},o(&quot;marker&quot;,{anim:!0})),selected:{marker:{opacity:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},size:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},textfont:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;},unselected:{marker:{opacity:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},size:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},textfont:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;},textposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle left&quot;,&quot;middle center&quot;,&quot;middle right&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],dflt:&quot;middle center&quot;,arrayOk:!0,editType:&quot;calc&quot;},textfont:s({editType:&quot;calc&quot;,colorEditType:&quot;style&quot;,arrayOk:!0})}},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../components/drawing&quot;:388,&quot;../../components/drawing/attributes&quot;:387,&quot;../../lib/extend&quot;:493,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/font_attributes&quot;:585,&quot;../../plots/template_attributes&quot;:633,&quot;./constants&quot;:930}],927:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=t(&quot;./subtypes&quot;),c=t(&quot;./colorscale_calc&quot;),u=t(&quot;./arrays_to_calcdata&quot;),f=t(&quot;./calc_selection&quot;);function h(t,e,r,n,i,o,s){var c=e._length,u=t._fullLayout,f=r._id,h=n._id,p=u._firstScatter[m(e)]===e.uid,d=(g(e,u,r,n)||{}).orientation,v=e.fill;r._minDtick=0,n._minDtick=0;var y={padded:!0},x={padded:!0};s&amp;&amp;(y.ppad=x.ppad=s);var b=c&lt;2||i[0]!==i[c-1]||o[0]!==o[c-1];b&amp;&amp;(&quot;tozerox&quot;===v||&quot;tonextx&quot;===v&amp;&amp;(p||&quot;h&quot;===d))?y.tozero=!0:(e.error_y||{}).visible||&quot;tonexty&quot;!==v&amp;&amp;&quot;tozeroy&quot;!==v&amp;&amp;(l.hasMarkers(e)||l.hasText(e))||(y.padded=!1,y.ppad=0),b&amp;&amp;(&quot;tozeroy&quot;===v||&quot;tonexty&quot;===v&amp;&amp;(p||&quot;v&quot;===d))?x.tozero=!0:&quot;tonextx&quot;!==v&amp;&amp;&quot;tozerox&quot;!==v||(x.padded=!1),f&amp;&amp;(e._extremes[f]=a.findExtremes(r,i,y)),h&amp;&amp;(e._extremes[h]=a.findExtremes(n,o,x))}function p(t,e){if(l.hasMarkers(t)){var r,n=t.marker,o=1.6*(t.marker.sizeref||1);if(r=&quot;area&quot;===t.marker.sizemode?function(t){return Math.max(Math.sqrt((t||0)/o),3)}:function(t){return Math.max((t||0)/o,3)},i.isArrayOrTypedArray(n.size)){var s={type:&quot;linear&quot;};a.setConvert(s);for(var c=s.makeCalcdata(t.marker,&quot;size&quot;),u=new Array(e),f=0;f&lt;e;f++)u[f]=r(c[f]);return u}return r(n.size)}}function d(t,e){var r=m(e),n=t._firstScatter;n[r]||(n[r]=e.uid)}function m(t){var e=t.stackgroup;return t.xaxis+t.yaxis+t.type+(e?&quot;-&quot;+e:&quot;&quot;)}function g(t,e,r,n){var i=t.stackgroup;if(i){var a=e._scatterStackOpts[r._id+n._id][i],o=&quot;v&quot;===a.orientation?n:r;return&quot;linear&quot;===o.type||&quot;log&quot;===o.type?a:void 0}}e.exports={calc:function(t,e){var r,l,m,v,y,x,b=t._fullLayout,_=a.getFromId(t,e.xaxis||&quot;x&quot;),w=a.getFromId(t,e.yaxis||&quot;y&quot;),T=_.makeCalcdata(e,&quot;x&quot;),k=w.makeCalcdata(e,&quot;y&quot;),A=o(e,_,&quot;x&quot;,T),M=o(e,w,&quot;y&quot;,k),S=A.vals,E=M.vals,L=e._length,C=new Array(L),P=e.ids,I=g(e,b,_,w),O=!1;d(b,e);var z,D=&quot;x&quot;,R=&quot;y&quot;;I?(i.pushUnique(I.traceIndices,e._expandedIndex),(r=&quot;v&quot;===I.orientation)?(R=&quot;s&quot;,z=&quot;x&quot;):(D=&quot;s&quot;,z=&quot;y&quot;),y=&quot;interpolate&quot;===I.stackgaps):h(t,e,_,w,S,E,p(e,L));var F=!!e.xperiodalignment,B=!!e.yperiodalignment;for(l=0;l&lt;L;l++){var N=C[l]={},j=n(S[l]),U=n(E[l]);j&amp;&amp;U?(N[D]=S[l],N[R]=E[l],F&amp;&amp;(N.orig_x=T[l],N.xEnd=A.ends[l],N.xStart=A.starts[l]),B&amp;&amp;(N.orig_y=k[l],N.yEnd=M.ends[l],N.yStart=M.starts[l])):I&amp;&amp;(r?j:U)?(N[z]=r?S[l]:E[l],N.gap=!0,y?(N.s=s,O=!0):N.s=0):N[D]=N[R]=s,P&amp;&amp;(N.id=String(P[l]))}if(u(C,e),c(t,e),f(C,e),I){for(l=0;l&lt;C.length;)C[l][z]===s?C.splice(l,1):l++;if(i.sort(C,(function(t,e){return t[z]-e[z]||t.i-e.i})),O){for(l=0;l&lt;C.length-1&amp;&amp;C[l].gap;)l++;for((x=C[l].s)||(x=C[l].s=0),m=0;m&lt;l;m++)C[m].s=x;for(v=C.length-1;v&gt;l&amp;&amp;C[v].gap;)v--;for(x=C[v].s,m=C.length-1;m&gt;v;m--)C[m].s=x;for(;l&lt;v;)if(C[++l].gap){for(m=l+1;C[m].gap;)m++;for(var V=C[l-1][z],H=C[l-1].s,q=(C[m].s-H)/(C[m][z]-V);l&lt;m;)C[l].s=H+(C[l][z]-V)*q,l++}}}return C},calcMarkerSize:p,calcAxisExpansion:h,setFirstScatter:d,getStackOpts:g}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/align_period&quot;:551,&quot;../../plots/cartesian/axes&quot;:554,&quot;./arrays_to_calcdata&quot;:925,&quot;./calc_selection&quot;:928,&quot;./colorscale_calc&quot;:929,&quot;./subtypes&quot;:951,&quot;fast-isnumeric&quot;:190}],928:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){n.isArrayOrTypedArray(e.selectedpoints)&amp;&amp;n.tagSelected(t,e)}},{&quot;../../lib&quot;:503}],929:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,i=t(&quot;../../components/colorscale/calc&quot;),a=t(&quot;./subtypes&quot;);e.exports=function(t,e){a.hasLines(e)&amp;&amp;n(e,&quot;line&quot;)&amp;&amp;i(t,e,{vals:e.line.color,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;}),a.hasMarkers(e)&amp;&amp;(n(e,&quot;marker&quot;)&amp;&amp;i(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),n(e,&quot;marker.line&quot;)&amp;&amp;i(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}))}},{&quot;../../components/colorscale/calc&quot;:374,&quot;../../components/colorscale/helpers&quot;:377,&quot;./subtypes&quot;:951}],930:[function(t,e,r){&quot;use strict&quot;;e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},{}],931:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./calc&quot;);function i(t,e,r,n,i,a,o){i[n]=!0;var s={i:null,gap:!0,s:0};if(s[o]=r,t.splice(e,0,s),e&amp;&amp;r===t[e-1][o]){var l=t[e-1];s.s=l.s,s.i=l.i,s.gap=l.gap}else a&amp;&amp;(s.s=function(t,e,r,n){var i=t[e-1],a=t[e+1];return a?i?i.s+(a.s-i.s)*(r-i[n])/(a[n]-i[n]):a.s:i.s}(t,e,r,o));e||(t[0].t=t[1].t,t[0].trace=t[1].trace,delete t[1].t,delete t[1].trace)}e.exports=function(t,e){var r=e.xaxis,a=e.yaxis,o=r._id+a._id,s=t._fullLayout._scatterStackOpts[o];if(s){var l,c,u,f,h,p,d,m,g,v,y,x,b,_,w,T=t.calcdata;for(var k in s){var A=(v=s[k]).traceIndices;if(A.length){for(y=&quot;interpolate&quot;===v.stackgaps,x=v.groupnorm,&quot;v&quot;===v.orientation?(b=&quot;x&quot;,_=&quot;y&quot;):(b=&quot;y&quot;,_=&quot;x&quot;),w=new Array(A.length),l=0;l&lt;w.length;l++)w[l]=!1;p=T[A[0]];var M=new Array(p.length);for(l=0;l&lt;p.length;l++)M[l]=p[l][b];for(l=1;l&lt;A.length;l++){for(h=T[A[l]],c=u=0;c&lt;h.length;c++){for(d=h[c][b];d&gt;M[u]&amp;&amp;u&lt;M.length;u++)i(h,c,M[u],l,w,y,b),c++;if(d!==M[u]){for(f=0;f&lt;l;f++)i(T[A[f]],u,d,f,w,y,b);M.splice(u,0,d)}u++}for(;u&lt;M.length;u++)i(h,c,M[u],l,w,y,b),c++}var S=M.length;for(c=0;c&lt;p.length;c++){for(m=p[c][_]=p[c].s,l=1;l&lt;A.length;l++)(h=T[A[l]])[0].trace._rawLength=h[0].trace._length,h[0].trace._length=S,m+=h[c].s,h[c][_]=m;if(x)for(g=(&quot;fraction&quot;===x?m:m/100)||1,l=0;l&lt;A.length;l++){var E=T[A[l]][c];E[_]/=g,E.sNorm=E.s/g}}for(l=0;l&lt;A.length;l++){var L=(h=T[A[l]])[0].trace,C=n.calcMarkerSize(L,L._rawLength),P=Array.isArray(C);if(C&amp;&amp;w[l]||P){var I=C;for(C=new Array(S),c=0;c&lt;S;c++)C[c]=h[c].gap?0:P?I[h[c].i]:I}var O=new Array(S),z=new Array(S);for(c=0;c&lt;S;c++)O[c]=h[c].x,z[c]=h[c].y;n.calcAxisExpansion(t,L,r,a,O,z,C),h[0].t.orientation=v.orientation}}}}}},{&quot;./calc&quot;:927}],932:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=0;e&lt;t.length;e++){var r=t[e];if(&quot;scatter&quot;===r.type){var n=r.fill;if(&quot;none&quot;!==n&amp;&amp;&quot;toself&quot;!==n&amp;&amp;(r.opacity=void 0,&quot;tonexty&quot;===n||&quot;tonextx&quot;===n))for(var i=e-1;i&gt;=0;i--){var a=t[i];if(&quot;scatter&quot;===a.type&amp;&amp;a.xaxis===r.xaxis&amp;&amp;a.yaxis===r.yaxis){a.opacity=void 0;break}}}}}},{}],933:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;),s=t(&quot;./subtypes&quot;),l=t(&quot;./xy_defaults&quot;),c=t(&quot;./period_defaults&quot;),u=t(&quot;./stack_defaults&quot;),f=t(&quot;./marker_defaults&quot;),h=t(&quot;./line_defaults&quot;),p=t(&quot;./line_shape_defaults&quot;),d=t(&quot;./text_defaults&quot;),m=t(&quot;./fillcolor_defaults&quot;);e.exports=function(t,e,r,g){function v(r,i){return n.coerce(t,e,a,r,i)}var y=l(t,e,g,v);if(y||(e.visible=!1),e.visible){c(t,e,g,v),v(&quot;xhoverformat&quot;),v(&quot;yhoverformat&quot;);var x=u(t,e,g,v),b=!x&amp;&amp;y&lt;o.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;;v(&quot;text&quot;),v(&quot;hovertext&quot;),v(&quot;mode&quot;,b),s.hasLines(e)&amp;&amp;(h(t,e,r,g,v),p(t,e,v),v(&quot;connectgaps&quot;),v(&quot;line.simplify&quot;)),s.hasMarkers(e)&amp;&amp;f(t,e,r,g,v,{gradient:!0}),s.hasText(e)&amp;&amp;(v(&quot;texttemplate&quot;),d(t,e,g,v));var _=[];(s.hasMarkers(e)||s.hasText(e))&amp;&amp;(v(&quot;cliponaxis&quot;),v(&quot;marker.maxdisplayed&quot;),_.push(&quot;points&quot;)),v(&quot;fill&quot;,x?x.fillDflt:&quot;none&quot;),&quot;none&quot;!==e.fill&amp;&amp;(m(t,e,r,v),s.hasLines(e)||p(t,e,v));var w=(e.line||{}).color,T=(e.marker||{}).color;&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||_.push(&quot;fills&quot;),v(&quot;hoveron&quot;,_.join(&quot;+&quot;)||&quot;points&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;v(&quot;hovertemplate&quot;);var k=i.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);k(t,e,w||T||r,{axis:&quot;y&quot;}),k(t,e,w||T||r,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,v)}}},{&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;./attributes&quot;:926,&quot;./constants&quot;:930,&quot;./fillcolor_defaults&quot;:934,&quot;./line_defaults&quot;:939,&quot;./line_shape_defaults&quot;:941,&quot;./marker_defaults&quot;:945,&quot;./period_defaults&quot;:946,&quot;./stack_defaults&quot;:949,&quot;./subtypes&quot;:951,&quot;./text_defaults&quot;:952,&quot;./xy_defaults&quot;:953}],934:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a){var o=!1;if(e.marker){var s=e.marker.color,l=(e.marker.line||{}).color;s&amp;&amp;!i(s)?o=s:l&amp;&amp;!i(l)&amp;&amp;(o=l)}a(&quot;fillcolor&quot;,n.addOpacity((e.line||{}).color||o||r,.5))}},{&quot;../../components/color&quot;:366,&quot;../../lib&quot;:503}],935:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a={_fullLayout:r},o=n.getFromTrace(a,e,&quot;x&quot;),s=n.getFromTrace(a,e,&quot;y&quot;);return i.xLabel=n.tickText(o,o.c2l(t.x),!0).text,i.yLabel=n.tickText(s,s.c2l(t.y),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:554}],936:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;./subtypes&quot;);e.exports=function(t,e){var r,a;if(&quot;lines&quot;===t.mode)return(r=t.line.color)&amp;&amp;n.opacity(r)?r:t.fillcolor;if(&quot;none&quot;===t.mode)return t.fill?t.fillcolor:&quot;&quot;;var o=e.mcc||(t.marker||{}).color,s=e.mlcc||((t.marker||{}).line||{}).color;return(a=o&amp;&amp;n.opacity(o)?o:s&amp;&amp;n.opacity(s)&amp;&amp;(e.mlw||((t.marker||{}).line||{}).width)?s:&quot;&quot;)?n.opacity(a)&lt;.3?n.addOpacity(a,.3):a:(r=(t.line||{}).color)&amp;&amp;n.opacity(r)&amp;&amp;i.hasLines(t)&amp;&amp;t.line.width?r:t.fillcolor}},{&quot;../../components/color&quot;:366,&quot;./subtypes&quot;:951}],937:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/fx&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;./get_trace_color&quot;),s=t(&quot;../../components/color&quot;),l=n.fillText;e.exports=function(t,e,r,c){var u=t.cd,f=u[0].trace,h=t.xa,p=t.ya,d=h.c2p(e),m=p.c2p(r),g=[d,m],v=f.hoveron||&quot;&quot;,y=-1!==f.mode.indexOf(&quot;markers&quot;)?3:.5,x=!!f.xperiodalignment,b=!!f.yperiodalignment;if(-1!==v.indexOf(&quot;points&quot;)){var _=function(t){var e=Math.max(y,t.mrc||0),r=h.c2p(t.x)-d,n=p.c2p(t.y)-m;return Math.max(Math.sqrt(r*r+n*n)-e,1-y/e)},w=i.getDistanceFunction(c,(function(t){if(x){var e=h.c2p(t.xStart),r=h.c2p(t.xEnd);return d&gt;=Math.min(e,r)&amp;&amp;d&lt;=Math.max(e,r)?0:1/0}var n=Math.max(3,t.mrc||0),i=1-1/n,a=Math.abs(h.c2p(t.x)-d);return a&lt;n?i*a/n:a-n+i}),(function(t){if(b){var e=p.c2p(t.yStart),r=p.c2p(t.yEnd);return m&gt;=Math.min(e,r)&amp;&amp;m&lt;=Math.max(e,r)?0:1/0}var n=Math.max(3,t.mrc||0),i=1-1/n,a=Math.abs(p.c2p(t.y)-m);return a&lt;n?i*a/n:a-n+i}),_);if(i.getClosest(u,w,t),!1!==t.index){var T=u[t.index],k=h.c2p(T.x,!0),A=p.c2p(T.y,!0),M=T.mrc||1;t.index=T.i;var S=u[0].t.orientation,E=S&amp;&amp;(T.sNorm||T.s),L=&quot;h&quot;===S?E:void 0!==T.orig_x?T.orig_x:T.x,C=&quot;v&quot;===S?E:void 0!==T.orig_y?T.orig_y:T.y;return n.extendFlat(t,{color:o(f,T),x0:k-M,x1:k+M,xLabelVal:L,y0:A-M,y1:A+M,yLabelVal:C,spikeDistance:_(T),hovertemplate:f.hovertemplate}),l(T,f,t),a.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(T,f,t),[t]}}if(-1!==v.indexOf(&quot;fills&quot;)&amp;&amp;f._polygons){var P,I,O,z,D,R,F,B,N,j=f._polygons,U=[],V=!1,H=1/0,q=-1/0,G=1/0,Y=-1/0;for(P=0;P&lt;j.length;P++)(O=j[P]).contains(g)&amp;&amp;(V=!V,U.push(O),G=Math.min(G,O.ymin),Y=Math.max(Y,O.ymax));if(V){var W=((G=Math.max(G,0))+(Y=Math.min(Y,p._length)))/2;for(P=0;P&lt;U.length;P++)for(z=U[P].pts,I=1;I&lt;z.length;I++)(B=z[I-1][1])&gt;W!=(N=z[I][1])&gt;=W&amp;&amp;(R=z[I-1][0],F=z[I][0],N-B&amp;&amp;(D=R+(F-R)*(W-B)/(N-B),H=Math.min(H,D),q=Math.max(q,D)));H=Math.max(H,0),q=Math.min(q,h._length);var X=s.defaultLine;return s.opacity(f.fillcolor)?X=f.fillcolor:s.opacity((f.line||{}).color)&amp;&amp;(X=f.line.color),n.extendFlat(t,{distance:t.maxHoverDistance,x0:H,x1:q,y0:W,y1:W,color:X,hovertemplate:!1}),delete t.index,f.text&amp;&amp;!Array.isArray(f.text)?t.text=String(f.text):t.text=f.name,[t]}}}},{&quot;../../components/color&quot;:366,&quot;../../components/fx&quot;:406,&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;./get_trace_color&quot;:936}],938:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./subtypes&quot;);e.exports={hasLines:n.hasLines,hasMarkers:n.hasMarkers,hasText:n.hasText,isBubble:n.isBubble,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./cross_trace_calc&quot;),arraysToCalcdata:t(&quot;./arrays_to_calcdata&quot;),plot:t(&quot;./plot&quot;),colorbar:t(&quot;./marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;./select&quot;),animatable:!0,moduleType:&quot;trace&quot;,name:&quot;scatter&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:568,&quot;./arrays_to_calcdata&quot;:925,&quot;./attributes&quot;:926,&quot;./calc&quot;:927,&quot;./cross_trace_calc&quot;:931,&quot;./cross_trace_defaults&quot;:932,&quot;./defaults&quot;:933,&quot;./format_labels&quot;:935,&quot;./hover&quot;:937,&quot;./marker_colorbar&quot;:944,&quot;./plot&quot;:947,&quot;./select&quot;:948,&quot;./style&quot;:950,&quot;./subtypes&quot;:951}],939:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray,i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;);e.exports=function(t,e,r,o,s,l){var c=(t.marker||{}).color;(s(&quot;line.color&quot;,r),i(t,&quot;line&quot;))?a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}):s(&quot;line.color&quot;,!n(c)&amp;&amp;c||r);s(&quot;line.width&quot;),(l||{}).noDash||s(&quot;line.dash&quot;)}},{&quot;../../components/colorscale/defaults&quot;:376,&quot;../../components/colorscale/helpers&quot;:377,&quot;../../lib&quot;:503}],940:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/numerical&quot;),i=n.BADNUM,a=n.LOG_CLIP,o=a+.5,s=a-.5,l=t(&quot;../../lib&quot;),c=l.segmentsIntersect,u=l.constrain,f=t(&quot;./constants&quot;);e.exports=function(t,e){var r,n,a,h,p,d,m,g,v,y,x,b,_,w,T,k,A,M,S=e.xaxis,E=e.yaxis,L=&quot;log&quot;===S.type,C=&quot;log&quot;===E.type,P=S._length,I=E._length,O=e.connectGaps,z=e.baseTolerance,D=e.shape,R=&quot;linear&quot;===D,F=e.fill&amp;&amp;&quot;none&quot;!==e.fill,B=[],N=f.minTolerance,j=t.length,U=new Array(j),V=0;function H(r){var n=t[r];if(!n)return!1;var a=e.linearized?S.l2p(n.x):S.c2p(n.x),l=e.linearized?E.l2p(n.y):E.c2p(n.y);if(a===i){if(L&amp;&amp;(a=S.c2p(n.x,!0)),a===i)return!1;C&amp;&amp;l===i&amp;&amp;(a*=Math.abs(S._m*I*(S._m&gt;0?o:s)/(E._m*P*(E._m&gt;0?o:s)))),a*=1e3}if(l===i){if(C&amp;&amp;(l=E.c2p(n.y,!0)),l===i)return!1;l*=1e3}return[a,l]}function q(t,e,r,n){var i=r-t,a=n-e,o=.5-t,s=.5-e,l=i*i+a*a,c=i*o+a*s;if(c&gt;0&amp;&amp;c&lt;l){var u=o*a-s*i;if(u*u&lt;l)return!0}}function G(t,e){var r=t[0]/P,n=t[1]/I,i=Math.max(0,-r,r-1,-n,n-1);return i&amp;&amp;void 0!==A&amp;&amp;q(r,n,A,M)&amp;&amp;(i=0),i&amp;&amp;e&amp;&amp;q(r,n,e[0]/P,e[1]/I)&amp;&amp;(i=0),(1+f.toleranceGrowth*i)*z}function Y(t,e){var r=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(r*r+n*n)}var W,X,Z,J,K,Q,$,tt=f.maxScreensAway,et=-P*tt,rt=P*(1+tt),nt=-I*tt,it=I*(1+tt),at=[[et,nt,rt,nt],[rt,nt,rt,it],[rt,it,et,it],[et,it,et,nt]];function ot(t){if(t[0]&lt;et||t[0]&gt;rt||t[1]&lt;nt||t[1]&gt;it)return[u(t[0],et,rt),u(t[1],nt,it)]}function st(t,e){return t[0]===e[0]&amp;&amp;(t[0]===et||t[0]===rt)||(t[1]===e[1]&amp;&amp;(t[1]===nt||t[1]===it)||void 0)}function lt(t,e,r){return function(n,i){var a=ot(n),o=ot(i),s=[];if(a&amp;&amp;o&amp;&amp;st(a,o))return s;a&amp;&amp;s.push(a),o&amp;&amp;s.push(o);var c=2*l.constrain((n[t]+i[t])/2,e,r)-((a||n)[t]+(o||i)[t]);c&amp;&amp;((a&amp;&amp;o?c&gt;0==a[t]&gt;o[t]?a:o:a||o)[t]+=c);return s}}function ct(t){var e=t[0],r=t[1],n=e===U[V-1][0],i=r===U[V-1][1];if(!n||!i)if(V&gt;1){var a=e===U[V-2][0],o=r===U[V-2][1];n&amp;&amp;(e===et||e===rt)&amp;&amp;a?o?V--:U[V-1]=t:i&amp;&amp;(r===nt||r===it)&amp;&amp;o?a?V--:U[V-1]=t:U[V++]=t}else U[V++]=t}function ut(t){U[V-1][0]!==t[0]&amp;&amp;U[V-1][1]!==t[1]&amp;&amp;ct([Z,J]),ct(t),K=null,Z=J=0}function ft(t){if(A=t[0]/P,M=t[1]/I,W=t[0]&lt;et?et:t[0]&gt;rt?rt:0,X=t[1]&lt;nt?nt:t[1]&gt;it?it:0,W||X){if(V)if(K){var e=$(K,t);e.length&gt;1&amp;&amp;(ut(e[0]),U[V++]=e[1])}else Q=$(U[V-1],t)[0],U[V++]=Q;else U[V++]=[W||t[0],X||t[1]];var r=U[V-1];W&amp;&amp;X&amp;&amp;(r[0]!==W||r[1]!==X)?(K&amp;&amp;(Z!==W&amp;&amp;J!==X?ct(Z&amp;&amp;J?(n=K,a=(i=t)[0]-n[0],o=(i[1]-n[1])/a,(n[1]*i[0]-i[1]*n[0])/a&gt;0?[o&gt;0?et:rt,it]:[o&gt;0?rt:et,nt]):[Z||W,J||X]):Z&amp;&amp;J&amp;&amp;ct([Z,J])),ct([W,X])):Z-W&amp;&amp;J-X&amp;&amp;ct([W||Z,X||J]),K=t,Z=W,J=X}else K&amp;&amp;ut($(K,t)[0]),U[V++]=t;var n,i,a,o}for(&quot;linear&quot;===D||&quot;spline&quot;===D?$=function(t,e){for(var r=[],n=0,i=0;i&lt;4;i++){var a=at[i],o=c(t[0],t[1],e[0],e[1],a[0],a[1],a[2],a[3]);o&amp;&amp;(!n||Math.abs(o.x-r[0][0])&gt;1||Math.abs(o.y-r[0][1])&gt;1)&amp;&amp;(o=[o.x,o.y],n&amp;&amp;Y(o,t)&lt;Y(r[0],t)?r.unshift(o):r.push(o),n++)}return r}:&quot;hv&quot;===D||&quot;vh&quot;===D?$=function(t,e){var r=[],n=ot(t),i=ot(e);return n&amp;&amp;i&amp;&amp;st(n,i)||(n&amp;&amp;r.push(n),i&amp;&amp;r.push(i)),r}:&quot;hvh&quot;===D?$=lt(0,et,rt):&quot;vhv&quot;===D&amp;&amp;($=lt(1,nt,it)),r=0;r&lt;j;r++)if(n=H(r)){for(V=0,K=null,ft(n),r++;r&lt;j;r++){if(!(h=H(r))){if(O)continue;break}if(R&amp;&amp;e.simplify){var ht=H(r+1);if(y=Y(h,n),F&amp;&amp;(0===V||V===j-1)||!(y&lt;G(h,ht)*N)){for(g=[(h[0]-n[0])/y,(h[1]-n[1])/y],p=n,x=y,b=w=T=0,m=!1,a=h,r++;r&lt;t.length;r++){if(d=ht,ht=H(r+1),!d){if(O)continue;break}if(k=(v=[d[0]-n[0],d[1]-n[1]])[0]*g[1]-v[1]*g[0],w=Math.min(w,k),(T=Math.max(T,k))-w&gt;G(d,ht))break;a=d,(_=v[0]*g[0]+v[1]*g[1])&gt;x?(x=_,h=d,m=!1):_&lt;b&amp;&amp;(b=_,p=d,m=!0)}if(m?(ft(h),a!==p&amp;&amp;ft(p)):(p!==n&amp;&amp;ft(p),a!==h&amp;&amp;ft(h)),ft(a),r&gt;=t.length||!d)break;ft(d),n=d}}else ft(h)}K&amp;&amp;ct([Z||K[0],J||K[1]]),B.push(U.slice(0,V))}return B}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;./constants&quot;:930}],941:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){&quot;spline&quot;===r(&quot;line.shape&quot;)&amp;&amp;r(&quot;line.smoothing&quot;)}},{}],942:[function(t,e,r){&quot;use strict&quot;;var n={tonextx:1,tonexty:1,tonext:1};e.exports=function(t,e,r){var i,a,o,s,l,c={},u=!1,f=-1,h=0,p=-1;for(a=0;a&lt;r.length;a++)(o=(i=r[a][0].trace).stackgroup||&quot;&quot;)?o in c?l=c[o]:(l=c[o]=h,h++):i.fill in n&amp;&amp;p&gt;=0?l=p:(l=p=h,h++),l&lt;f&amp;&amp;(u=!0),i._groupIndex=f=l;var d=r.slice();u&amp;&amp;d.sort((function(t,e){var r=t[0].trace,n=e[0].trace;return r._groupIndex-n._groupIndex||r.index-n.index}));var m={};for(a=0;a&lt;d.length;a++)o=(i=d[a][0].trace).stackgroup||&quot;&quot;,!0===i.visible?(i._nexttrace=null,i.fill in n&amp;&amp;(s=m[o],i._prevtrace=s||null,s&amp;&amp;(s._nexttrace=i)),i._ownfill=i.fill&amp;&amp;(&quot;tozero&quot;===i.fill.substr(0,6)||&quot;toself&quot;===i.fill||&quot;to&quot;===i.fill.substr(0,2)&amp;&amp;!i._prevtrace),m[o]=i):i._prevtrace=i._nexttrace=i._ownfill=null;return d}},{}],943:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports=function(t,e){e||(e=2);var r=t.marker,i=r.sizeref||1,a=r.sizemin||0,o=&quot;area&quot;===r.sizemode?function(t){return Math.sqrt(t/i)}:function(t){return t/i};return function(t){var r=o(t/e);return n(r)&amp;&amp;r&gt;0?Math.max(r,a):0}}},{&quot;fast-isnumeric&quot;:190}],944:[function(t,e,r){&quot;use strict&quot;;e.exports={container:&quot;marker&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;}},{}],945:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./subtypes&quot;);e.exports=function(t,e,r,s,l,c){var u=o.isBubble(t),f=(t.line||{}).color;(c=c||{},f&amp;&amp;(r=f),l(&quot;marker.symbol&quot;),l(&quot;marker.opacity&quot;,u?.7:1),l(&quot;marker.size&quot;),l(&quot;marker.color&quot;,r),i(t,&quot;marker&quot;)&amp;&amp;a(t,e,s,l,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),c.noSelect||(l(&quot;selected.marker.color&quot;),l(&quot;unselected.marker.color&quot;),l(&quot;selected.marker.size&quot;),l(&quot;unselected.marker.size&quot;)),c.noLine||(l(&quot;marker.line.color&quot;,f&amp;&amp;!Array.isArray(f)&amp;&amp;e.marker.color!==f?f:u?n.background:n.defaultLine),i(t,&quot;marker.line&quot;)&amp;&amp;a(t,e,s,l,{prefix:&quot;marker.line.&quot;,cLetter:&quot;c&quot;}),l(&quot;marker.line.width&quot;,u?1:0)),u&amp;&amp;(l(&quot;marker.sizeref&quot;),l(&quot;marker.sizemin&quot;),l(&quot;marker.sizemode&quot;)),c.gradient)&amp;&amp;(&quot;none&quot;!==l(&quot;marker.gradient.type&quot;)&amp;&amp;l(&quot;marker.gradient.color&quot;))}},{&quot;../../components/color&quot;:366,&quot;../../components/colorscale/defaults&quot;:376,&quot;../../components/colorscale/helpers&quot;:377,&quot;./subtypes&quot;:951}],946:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).dateTick0,i=t(&quot;../../constants/numerical&quot;).ONEWEEK;function a(t,e){return n(e,t%i==0?1:0)}e.exports=function(t,e,r,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n(&quot;xperiod&quot;);o&amp;&amp;(n(&quot;xperiod0&quot;,a(o,e.xcalendar)),n(&quot;xperiodalignment&quot;))}if(i.y){var s=n(&quot;yperiod&quot;);s&amp;&amp;(n(&quot;yperiod0&quot;,a(s,e.ycalendar)),n(&quot;yperiodalignment&quot;))}}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503}],947:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.ensureSingle,s=a.identity,l=t(&quot;../../components/drawing&quot;),c=t(&quot;./subtypes&quot;),u=t(&quot;./line_points&quot;),f=t(&quot;./link_traces&quot;),h=t(&quot;../../lib/polygon&quot;).tester;function p(t,e,r,f,p,d,m){var g;!function(t,e,r,i,o){var s=r.xaxis,l=r.yaxis,u=n.extent(a.simpleMap(s.range,s.r2c)),f=n.extent(a.simpleMap(l.range,l.r2c)),h=i[0].trace;if(!c.hasMarkers(h))return;var p=h.marker.maxdisplayed;if(0===p)return;var d=i.filter((function(t){return t.x&gt;=u[0]&amp;&amp;t.x&lt;=u[1]&amp;&amp;t.y&gt;=f[0]&amp;&amp;t.y&lt;=f[1]})),m=Math.ceil(d.length/p),g=0;o.forEach((function(t,r){var n=t[0].trace;c.hasMarkers(n)&amp;&amp;n.marker.maxdisplayed&gt;0&amp;&amp;r&lt;e&amp;&amp;g++}));var v=Math.round(g*m/3+Math.floor(g/3)*m/7.1);i.forEach((function(t){delete t.vis})),d.forEach((function(t,e){0===Math.round((e+v)%m)&amp;&amp;(t.vis=!0)}))}(0,e,r,f,p);var v=!!m&amp;&amp;m.duration&gt;0;function y(t){return v?t.transition():t}var x=r.xaxis,b=r.yaxis,_=f[0].trace,w=_.line,T=n.select(d),k=o(T,&quot;g&quot;,&quot;errorbars&quot;),A=o(T,&quot;g&quot;,&quot;lines&quot;),M=o(T,&quot;g&quot;,&quot;points&quot;),S=o(T,&quot;g&quot;,&quot;text&quot;);if(i.getComponentMethod(&quot;errorbars&quot;,&quot;plot&quot;)(t,k,r,m),!0===_.visible){var E,L;y(T).style(&quot;opacity&quot;,_.opacity);var C=_.fill.charAt(_.fill.length-1);&quot;x&quot;!==C&amp;&amp;&quot;y&quot;!==C&amp;&amp;(C=&quot;&quot;),f[0][r.isRangePlot?&quot;nodeRangePlot3&quot;:&quot;node3&quot;]=T;var P,I,O=&quot;&quot;,z=[],D=_._prevtrace;D&amp;&amp;(O=D._prevRevpath||&quot;&quot;,L=D._nextFill,z=D._polygons);var R,F,B,N,j,U,V,H=&quot;&quot;,q=&quot;&quot;,G=[],Y=a.noop;if(E=_._ownFill,c.hasLines(_)||&quot;none&quot;!==_.fill){for(L&amp;&amp;L.datum(f),-1!==[&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;].indexOf(w.shape)?(R=l.steps(w.shape),F=l.steps(w.shape.split(&quot;&quot;).reverse().join(&quot;&quot;))):R=F=&quot;spline&quot;===w.shape?function(t){var e=t[t.length-1];return t.length&gt;1&amp;&amp;t[0][0]===e[0]&amp;&amp;t[0][1]===e[1]?l.smoothclosed(t.slice(1),w.smoothing):l.smoothopen(t,w.smoothing)}:function(t){return&quot;M&quot;+t.join(&quot;L&quot;)},B=function(t){return F(t.reverse())},G=u(f,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify,fill:_.fill}),V=_._polygons=new Array(G.length),g=0;g&lt;G.length;g++)_._polygons[g]=h(G[g]);G.length&amp;&amp;(N=G[0][0],U=(j=G[G.length-1])[j.length-1]),Y=function(t){return function(e){if(P=R(e),I=B(e),H?C?(H+=&quot;L&quot;+P.substr(1),q=I+&quot;L&quot;+q.substr(1)):(H+=&quot;Z&quot;+P,q=I+&quot;Z&quot;+q):(H=P,q=I),c.hasLines(_)&amp;&amp;e.length&gt;1){var r=n.select(this);if(r.datum(f),t)y(r.style(&quot;opacity&quot;,0).attr(&quot;d&quot;,P).call(l.lineGroupStyle)).style(&quot;opacity&quot;,1);else{var i=y(r);i.attr(&quot;d&quot;,P),l.singleLineStyle(f,i)}}}}}var W=A.selectAll(&quot;.js-line&quot;).data(G);y(W.exit()).style(&quot;opacity&quot;,0).remove(),W.each(Y(!1)),W.enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).call(l.lineGroupStyle).each(Y(!0)),l.setClipUrl(W,r.layerClipId,t),G.length?(E?(E.datum(f),N&amp;&amp;U&amp;&amp;(C?(&quot;y&quot;===C?N[1]=U[1]=b.c2p(0,!0):&quot;x&quot;===C&amp;&amp;(N[0]=U[0]=x.c2p(0,!0)),y(E).attr(&quot;d&quot;,&quot;M&quot;+U+&quot;L&quot;+N+&quot;L&quot;+H.substr(1)).call(l.singleFillStyle)):y(E).attr(&quot;d&quot;,H+&quot;Z&quot;).call(l.singleFillStyle))):L&amp;&amp;(&quot;tonext&quot;===_.fill.substr(0,6)&amp;&amp;H&amp;&amp;O?(&quot;tonext&quot;===_.fill?y(L).attr(&quot;d&quot;,H+&quot;Z&quot;+O+&quot;Z&quot;).call(l.singleFillStyle):y(L).attr(&quot;d&quot;,H+&quot;L&quot;+O.substr(1)+&quot;Z&quot;).call(l.singleFillStyle),_._polygons=_._polygons.concat(z)):(Z(L),_._polygons=null)),_._prevRevpath=q,_._prevPolygons=V):(E?Z(E):L&amp;&amp;Z(L),_._polygons=_._prevRevpath=_._prevPolygons=null),M.datum(f),S.datum(f),function(e,i,a){var o,u=a[0].trace,f=c.hasMarkers(u),h=c.hasText(u),p=tt(u),d=et,m=et;if(f||h){var g=s,_=u.stackgroup,w=_&amp;&amp;&quot;infer zero&quot;===t._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;u.marker.maxdisplayed||u._needsCull?g=w?K:J:_&amp;&amp;!w&amp;&amp;(g=Q),f&amp;&amp;(d=g),h&amp;&amp;(m=g)}var T,k=(o=e.selectAll(&quot;path.point&quot;).data(d,p)).enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0);v&amp;&amp;k.call(l.pointStyle,u,t).call(l.translatePoints,x,b).style(&quot;opacity&quot;,0).transition().style(&quot;opacity&quot;,1),o.order(),f&amp;&amp;(T=l.makePointStyleFns(u)),o.each((function(e){var i=n.select(this),a=y(i);l.translatePoint(e,a,x,b)?(l.singlePointStyle(e,a,u,T,t),r.layerClipId&amp;&amp;l.hideOutsideRangePoint(e,a,x,b,u.xcalendar,u.ycalendar),u.customdata&amp;&amp;i.classed(&quot;plotly-customdata&quot;,null!==e.data&amp;&amp;void 0!==e.data)):a.remove()})),v?o.exit().transition().style(&quot;opacity&quot;,0).remove():o.exit().remove(),(o=i.selectAll(&quot;g&quot;).data(m,p)).enter().append(&quot;g&quot;).classed(&quot;textpoint&quot;,!0).append(&quot;text&quot;),o.order(),o.each((function(t){var e=n.select(this),i=y(e.select(&quot;text&quot;));l.translatePoint(t,i,x,b)?r.layerClipId&amp;&amp;l.hideOutsideRangePoint(t,e,x,b,u.xcalendar,u.ycalendar):e.remove()})),o.selectAll(&quot;text&quot;).call(l.textPointStyle,u,t).each((function(t){var e=x.c2p(t.x),r=b.c2p(t.y);n.select(this).selectAll(&quot;tspan.line&quot;).each((function(){y(n.select(this)).attr({x:e,y:r})}))})),o.exit().remove()}(M,S,f);var X=!1===_.cliponaxis?null:r.layerClipId;l.setClipUrl(M,X,t),l.setClipUrl(S,X,t)}function Z(t){y(t).attr(&quot;d&quot;,&quot;M0,0Z&quot;)}function J(t){return t.filter((function(t){return!t.gap&amp;&amp;t.vis}))}function K(t){return t.filter((function(t){return t.vis}))}function Q(t){return t.filter((function(t){return!t.gap}))}function $(t){return t.id}function tt(t){if(t.ids)return $}function et(){return!1}}e.exports=function(t,e,r,i,a,c){var u,h,d=!a,m=!!a&amp;&amp;a.duration&gt;0,g=f(t,e,r);((u=i.selectAll(&quot;g.trace&quot;).data(g,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;trace scatter trace&quot;+t[0].trace.uid})).style(&quot;stroke-miterlimit&quot;,2),u.order(),function(t,e,r){e.each((function(e){var i=o(n.select(this),&quot;g&quot;,&quot;fills&quot;);l.setClipUrl(i,r.layerClipId,t);var a=e[0].trace,c=[];a._ownfill&amp;&amp;c.push(&quot;_ownFill&quot;),a._nexttrace&amp;&amp;c.push(&quot;_nextFill&quot;);var u=i.selectAll(&quot;g&quot;).data(c,s);u.enter().append(&quot;g&quot;),u.exit().each((function(t){a[t]=null})).remove(),u.order().each((function(t){a[t]=o(n.select(this),&quot;path&quot;,&quot;js-fill&quot;)}))}))}(t,u,e),m)?(c&amp;&amp;(h=c()),n.transition().duration(a.duration).ease(a.easing).each(&quot;end&quot;,(function(){h&amp;&amp;h()})).each(&quot;interrupt&quot;,(function(){h&amp;&amp;h()})).each((function(){i.selectAll(&quot;g.trace&quot;).each((function(r,n){p(t,n,e,r,g,this,a)}))}))):u.each((function(r,n){p(t,n,e,r,g,this,a)}));d&amp;&amp;u.exit().remove(),i.selectAll(&quot;path:not([d])&quot;).remove()}},{&quot;../../components/drawing&quot;:388,&quot;../../lib&quot;:503,&quot;../../lib/polygon&quot;:515,&quot;../../registry&quot;:638,&quot;./line_points&quot;:940,&quot;./link_traces&quot;:942,&quot;./subtypes&quot;:951,&quot;@plotly/d3&quot;:58}],948:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./subtypes&quot;);e.exports=function(t,e){var r,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[],f=s[0].trace;if(!n.hasMarkers(f)&amp;&amp;!n.hasText(f))return[];if(!1===e)for(r=0;r&lt;s.length;r++)s[r].selected=0;else for(r=0;r&lt;s.length;r++)i=s[r],a=l.c2p(i.x),o=c.c2p(i.y),null!==i.i&amp;&amp;e.contains([a,o],!1,r,t)?(u.push({pointNumber:i.i,x:l.c2d(i.x),y:c.c2d(i.y)}),i.selected=1):i.selected=0;return u}},{&quot;./subtypes&quot;:951}],949:[function(t,e,r){&quot;use strict&quot;;var n=[&quot;orientation&quot;,&quot;groupnorm&quot;,&quot;stackgaps&quot;];e.exports=function(t,e,r,i){var a=r._scatterStackOpts,o=i(&quot;stackgroup&quot;);if(o){var s=e.xaxis+e.yaxis,l=a[s];l||(l=a[s]={});var c=l[o],u=!1;c?c.traces.push(e):(c=l[o]={traceIndices:[],traces:[e]},u=!0);for(var f={orientation:e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;},h=0;h&lt;n.length;h++){var p=n[h],d=p+&quot;Found&quot;;if(!c[d]){var m=void 0!==t[p],g=&quot;orientation&quot;===p;if((m||u)&amp;&amp;(c[p]=i(p,f[p]),g&amp;&amp;(c.fillDflt=&quot;h&quot;===c[p]?&quot;tonextx&quot;:&quot;tonexty&quot;),m&amp;&amp;(c[d]=!0,!u&amp;&amp;(delete c.traces[0][p],g))))for(var v=0;v&lt;c.traces.length-1;v++){var y=c.traces[v];y._input.fill!==y.fill&amp;&amp;(y.fill=c.fillDflt)}}}return c}}},{}],950:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../registry&quot;);function o(t,e,r){i.pointStyle(t.selectAll(&quot;path.point&quot;),e,r)}function s(t,e,r){i.textPointStyle(t.selectAll(&quot;text&quot;),e,r)}e.exports={style:function(t){var e=n.select(t).selectAll(&quot;g.trace.scatter&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.selectAll(&quot;g.points&quot;).each((function(e){o(n.select(this),e.trace||e[0].trace,t)})),e.selectAll(&quot;g.text&quot;).each((function(e){s(n.select(this),e.trace||e[0].trace,t)})),e.selectAll(&quot;g.trace path.js-line&quot;).call(i.lineGroupStyle),e.selectAll(&quot;g.trace path.js-fill&quot;).call(i.fillGroupStyle),a.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(e)},stylePoints:o,styleText:s,styleOnSelect:function(t,e,r){var n=e[0].trace;n.selectedpoints?(i.selectedPointStyle(r.selectAll(&quot;path.point&quot;),n),i.selectedTextStyle(r.selectAll(&quot;text&quot;),n)):(o(r,n,t),s(r,n,t))}}},{&quot;../../components/drawing&quot;:388,&quot;../../registry&quot;:638,&quot;@plotly/d3&quot;:58}],951:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports={hasLines:function(t){return t.visible&amp;&amp;t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;lines&quot;)},hasMarkers:function(t){return t.visible&amp;&amp;(t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;markers&quot;)||&quot;splom&quot;===t.type)},hasText:function(t){return t.visible&amp;&amp;t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;text&quot;)},isBubble:function(t){return n.isPlainObject(t.marker)&amp;&amp;n.isArrayOrTypedArray(t.marker.size)}}},{&quot;../../lib&quot;:503}],952:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r,i,a){a=a||{},i(&quot;textposition&quot;),n.coerceFont(i,&quot;textfont&quot;,r.font),a.noSelect||(i(&quot;selected.textfont.color&quot;),i(&quot;unselected.textfont.color&quot;))}},{&quot;../../lib&quot;:503}],953:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;);e.exports=function(t,e,r,a){var o,s=a(&quot;x&quot;),l=a(&quot;y&quot;);if(i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],r),s){var c=n.minRowLength(s);l?o=Math.min(c,n.minRowLength(l)):(o=c,a(&quot;y0&quot;),a(&quot;dy&quot;))}else{if(!l)return 0;o=n.minRowLength(l),a(&quot;x0&quot;),a(&quot;dx&quot;)}return e._length=o,o}},{&quot;../../lib&quot;:503,&quot;../../registry&quot;:638}],954:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;../../plots/attributes&quot;),c=t(&quot;../../constants/gl3d_dashes&quot;),u=t(&quot;../../constants/gl3d_markers&quot;),f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../plot_api/edit_types&quot;).overrideAll,p=t(&quot;../../lib/sort_object_keys&quot;),d=n.line,m=n.marker,g=m.line,v=f({width:d.width,dash:{valType:&quot;enumerated&quot;,values:p(c),dflt:&quot;solid&quot;}},i(&quot;line&quot;));var y=e.exports=h({x:n.x,y:n.y,z:{valType:&quot;data_array&quot;},text:f({},n.text,{}),texttemplate:s({},{}),hovertext:f({},n.hovertext,{}),hovertemplate:o(),xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),zhoverformat:a(&quot;z&quot;),mode:f({},n.mode,{dflt:&quot;lines+markers&quot;}),surfaceaxis:{valType:&quot;enumerated&quot;,values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:&quot;color&quot;},projection:{x:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}},y:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}},z:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}}},connectgaps:n.connectgaps,line:v,marker:f({symbol:{valType:&quot;enumerated&quot;,values:p(u),dflt:&quot;circle&quot;,arrayOk:!0},size:f({},m.size,{dflt:8}),sizeref:m.sizeref,sizemin:m.sizemin,sizemode:m.sizemode,opacity:f({},m.opacity,{arrayOk:!1}),colorbar:m.colorbar,line:f({width:f({},g.width,{arrayOk:!1})},i(&quot;marker.line&quot;))},i(&quot;marker&quot;)),textposition:f({},n.textposition,{dflt:&quot;top center&quot;}),textfont:{color:n.textfont.color,size:n.textfont.size,family:f({},n.textfont.family,{arrayOk:!1})},opacity:l.opacity,hoverinfo:f({},l.hoverinfo)},&quot;calc&quot;,&quot;nested&quot;);y.x.editType=y.y.editType=y.z.editType=&quot;calc+clearAxisTypes&quot;},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../constants/gl3d_dashes&quot;:476,&quot;../../constants/gl3d_markers&quot;:477,&quot;../../lib/extend&quot;:493,&quot;../../lib/sort_object_keys&quot;:526,&quot;../../plot_api/edit_types&quot;:536,&quot;../../plots/attributes&quot;:550,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/template_attributes&quot;:633,&quot;../scatter/attributes&quot;:926}],955:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/arrays_to_calcdata&quot;),i=t(&quot;../scatter/colorscale_calc&quot;);e.exports=function(t,e){var r=[{x:!1,y:!1,trace:e,t:{}}];return n(r,e),i(t,e),r}},{&quot;../scatter/arrays_to_calcdata&quot;:925,&quot;../scatter/colorscale_calc&quot;:929}],956:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;);function i(t,e,r,i){if(!e||!e.visible)return null;for(var a=n.getComponentMethod(&quot;errorbars&quot;,&quot;makeComputeError&quot;)(e),o=new Array(t.length),s=0;s&lt;t.length;s++){var l=a(+t[s],s);if(&quot;log&quot;===i.type){var c=i.c2l(t[s]),u=t[s]-l[0],f=t[s]+l[1];if(o[s]=[(i.c2l(u,!0)-c)*r,(i.c2l(f,!0)-c)*r],u&gt;0){var h=i.c2l(u);i._lowerLogErrorBound||(i._lowerLogErrorBound=h),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,h)}}else o[s]=[-l[0]*r,l[1]*r]}return o}e.exports=function(t,e,r){var n=[i(t.x,t.error_x,e[0],r.xaxis),i(t.y,t.error_y,e[1],r.yaxis),i(t.z,t.error_z,e[2],r.zaxis)],a=function(t){for(var e=0;e&lt;t.length;e++)if(t[e])return t[e].length;return 0}(n);if(0===a)return null;for(var o=new Array(a),s=0;s&lt;a;s++){for(var l=[[0,0,0],[0,0,0]],c=0;c&lt;3;c++)if(n[c])for(var u=0;u&lt;2;u++)l[u][c]=n[c][s][u];o[s]=l}return o}},{&quot;../../registry&quot;:638}],957:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../stackgl_modules&quot;).gl_line3d,i=t(&quot;../../../stackgl_modules&quot;).gl_scatter3d,a=t(&quot;../../../stackgl_modules&quot;).gl_error3d,o=t(&quot;../../../stackgl_modules&quot;).gl_mesh3d,s=t(&quot;../../../stackgl_modules&quot;).delaunay_triangulate,l=t(&quot;../../lib&quot;),c=t(&quot;../../lib/str2rgbarray&quot;),u=t(&quot;../../lib/gl_format_color&quot;).formatColor,f=t(&quot;../scatter/make_bubble_size_func&quot;),h=t(&quot;../../constants/gl3d_dashes&quot;),p=t(&quot;../../constants/gl3d_markers&quot;),d=t(&quot;../../plots/cartesian/axes&quot;),m=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,g=t(&quot;./calc_errors&quot;);function v(t,e){this.scene=t,this.uid=e,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode=&quot;&quot;,this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var y=v.prototype;function x(t){return null==t?0:t.indexOf(&quot;left&quot;)&gt;-1?-1:t.indexOf(&quot;right&quot;)&gt;-1?1:0}function b(t){return null==t?0:t.indexOf(&quot;top&quot;)&gt;-1?-1:t.indexOf(&quot;bottom&quot;)&gt;-1?1:0}function _(t,e){return e(4*t)}function w(t){return p[t]}function T(t,e,r,n,i){var a=null;if(l.isArrayOrTypedArray(t)){a=[];for(var o=0;o&lt;e;o++)void 0===t[o]?a[o]=n:a[o]=r(t[o],i)}else a=r(t,l.identity);return a}function k(t,e){var r,n,i,a,o,s,h=[],p=t.fullSceneLayout,v=t.dataScale,y=p.xaxis,k=p.yaxis,A=p.zaxis,M=e.marker,S=e.line,E=e.x||[],L=e.y||[],C=e.z||[],P=E.length,I=e.xcalendar,O=e.ycalendar,z=e.zcalendar;for(o=0;o&lt;P;o++)r=y.d2l(E[o],0,I)*v[0],n=k.d2l(L[o],0,O)*v[1],i=A.d2l(C[o],0,z)*v[2],h[o]=[r,n,i];if(Array.isArray(e.text))s=e.text;else if(void 0!==e.text)for(s=new Array(P),o=0;o&lt;P;o++)s[o]=e.text;function D(t,e){var r=p[t];return d.tickText(r,r.d2l(e),!0).text}var R=e.texttemplate;if(R){var F=t.fullLayout._d3locale,B=Array.isArray(R),N=B?Math.min(R.length,P):P,j=B?function(t){return R[t]}:function(){return R};for(s=new Array(N),o=0;o&lt;N;o++){var U={x:E[o],y:L[o],z:C[o]},V={xLabel:D(&quot;xaxis&quot;,E[o]),yLabel:D(&quot;yaxis&quot;,L[o]),zLabel:D(&quot;zaxis&quot;,C[o])},H={};m(H,e,o);var q=e._meta||{};s[o]=l.texttemplateString(j(o),V,F,H,U,q)}}if(a={position:h,mode:e.mode,text:s},&quot;line&quot;in e&amp;&amp;(a.lineColor=u(S,1,P),a.lineWidth=S.width,a.lineDashes=S.dash),&quot;marker&quot;in e){var G=f(e);a.scatterColor=u(M,1,P),a.scatterSize=T(M.size,P,_,20,G),a.scatterMarker=T(M.symbol,P,w,&quot;\u25cf&quot;),a.scatterLineWidth=M.line.width,a.scatterLineColor=u(M.line,1,P),a.scatterAngle=0}&quot;textposition&quot;in e&amp;&amp;(a.textOffset=function(t){var e=[0,0];if(Array.isArray(t))for(var r=0;r&lt;t.length;r++)e[r]=[0,0],t[r]&amp;&amp;(e[r][0]=x(t[r]),e[r][1]=b(t[r]));else e[0]=x(t),e[1]=b(t);return e}(e.textposition),a.textColor=u(e.textfont,1,P),a.textSize=T(e.textfont.size,P,l.identity,12),a.textFont=e.textfont.family,a.textAngle=0);var Y=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(a.project=[!1,!1,!1],a.projectScale=[1,1,1],a.projectOpacity=[1,1,1],o=0;o&lt;3;++o){var W=e.projection[Y[o]];(a.project[o]=W.show)&amp;&amp;(a.projectOpacity[o]=W.opacity,a.projectScale[o]=W.scale)}a.errorBounds=g(e,v,p);var X=function(t){for(var e=[0,0,0],r=[[0,0,0],[0,0,0],[0,0,0]],n=[1,1,1],i=0;i&lt;3;i++){var a=t[i];a&amp;&amp;!1!==a.copy_zstyle&amp;&amp;!1!==t[2].visible&amp;&amp;(a=t[2]),a&amp;&amp;a.visible&amp;&amp;(e[i]=a.width/2,r[i]=c(a.color),n[i]=a.thickness)}return{capSize:e,color:r,lineWidth:n}}([e.error_x,e.error_y,e.error_z]);return a.errorColor=X.color,a.errorLineWidth=X.lineWidth,a.errorCapSize=X.capSize,a.delaunayAxis=e.surfaceaxis,a.delaunayColor=c(e.surfacecolor),a}function A(t){if(l.isArrayOrTypedArray(t)){var e=t[0];return l.isArrayOrTypedArray(e)&amp;&amp;(t=e),&quot;rgb(&quot;+t.slice(0,3).map((function(t){return Math.round(255*t)}))+&quot;)&quot;}return null}function M(t){return l.isArrayOrTypedArray(t)?4===t.length&amp;&amp;&quot;number&quot;==typeof t[0]?A(t):t.map(A):null}y.handlePick=function(t){if(t.object&amp;&amp;(t.object===this.linePlot||t.object===this.delaunayMesh||t.object===this.textMarkers||t.object===this.scatterPlot)){var e=t.index=t.data.index;return t.object.highlight&amp;&amp;t.object.highlight(null),this.scatterPlot&amp;&amp;(t.object=this.scatterPlot,this.scatterPlot.highlight(t.data)),t.textLabel=&quot;&quot;,this.textLabels&amp;&amp;(Array.isArray(this.textLabels)?(this.textLabels[e]||0===this.textLabels[e])&amp;&amp;(t.textLabel=this.textLabels[e]):t.textLabel=this.textLabels),t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]],!0}},y.update=function(t){var e,r,l,c,u=this.scene.glplot.gl,f=h.solid;this.data=t;var p=k(this.scene,t);&quot;mode&quot;in p&amp;&amp;(this.mode=p.mode),&quot;lineDashes&quot;in p&amp;&amp;p.lineDashes in h&amp;&amp;(f=h[p.lineDashes]),this.color=M(p.scatterColor)||M(p.lineColor),this.dataPoints=p.position,e={gl:this.scene.glplot.gl,position:p.position,color:p.lineColor,lineWidth:p.lineWidth||1,dashes:f[0],dashScale:f[1],opacity:t.opacity,connectGaps:t.connectgaps},-1!==this.mode.indexOf(&quot;lines&quot;)?this.linePlot?this.linePlot.update(e):(this.linePlot=n(e),this.linePlot._trace=this,this.scene.glplot.add(this.linePlot)):this.linePlot&amp;&amp;(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose(),this.linePlot=null);var d=t.opacity;if(t.marker&amp;&amp;t.marker.opacity&amp;&amp;(d*=t.marker.opacity),r={gl:this.scene.glplot.gl,position:p.position,color:p.scatterColor,size:p.scatterSize,glyph:p.scatterMarker,opacity:d,orthographic:!0,lineWidth:p.scatterLineWidth,lineColor:p.scatterLineColor,project:p.project,projectScale:p.projectScale,projectOpacity:p.projectOpacity},-1!==this.mode.indexOf(&quot;markers&quot;)?this.scatterPlot?this.scatterPlot.update(r):(this.scatterPlot=i(r),this.scatterPlot._trace=this,this.scatterPlot.highlightScale=1,this.scene.glplot.add(this.scatterPlot)):this.scatterPlot&amp;&amp;(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose(),this.scatterPlot=null),c={gl:this.scene.glplot.gl,position:p.position,glyph:p.text,color:p.textColor,size:p.textSize,angle:p.textAngle,alignment:p.textOffset,font:p.textFont,orthographic:!0,lineWidth:0,project:!1,opacity:t.opacity},this.textLabels=t.hovertext||t.text,-1!==this.mode.indexOf(&quot;text&quot;)?this.textMarkers?this.textMarkers.update(c):(this.textMarkers=i(c),this.textMarkers._trace=this,this.textMarkers.highlightScale=1,this.scene.glplot.add(this.textMarkers)):this.textMarkers&amp;&amp;(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose(),this.textMarkers=null),l={gl:this.scene.glplot.gl,position:p.position,color:p.errorColor,error:p.errorBounds,lineWidth:p.errorLineWidth,capSize:p.errorCapSize,opacity:t.opacity},this.errorBars?p.errorBounds?this.errorBars.update(l):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):p.errorBounds&amp;&amp;(this.errorBars=a(l),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),p.delaunayAxis&gt;=0){var m=function(t,e,r){var n,i=(r+1)%3,a=(r+2)%3,o=[],l=[];for(n=0;n&lt;t.length;++n){var c=t[n];!isNaN(c[i])&amp;&amp;isFinite(c[i])&amp;&amp;!isNaN(c[a])&amp;&amp;isFinite(c[a])&amp;&amp;(o.push([c[i],c[a]]),l.push(n))}var u=s(o);for(n=0;n&lt;u.length;++n)for(var f=u[n],h=0;h&lt;f.length;++h)f[h]=l[f[h]];return{positions:t,cells:u,meshColor:e}}(p.position,p.delaunayColor,p.delaunayAxis);m.opacity=t.opacity,this.delaunayMesh?this.delaunayMesh.update(m):(m.gl=u,this.delaunayMesh=o(m),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&amp;&amp;(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},y.dispose=function(){this.linePlot&amp;&amp;(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&amp;&amp;(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&amp;&amp;(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&amp;&amp;(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&amp;&amp;(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())},e.exports=function(t,e){var r=new v(t,e.uid);return r.update(e),r}},{&quot;../../../stackgl_modules&quot;:1120,&quot;../../components/fx/helpers&quot;:402,&quot;../../constants/gl3d_dashes&quot;:476,&quot;../../constants/gl3d_markers&quot;:477,&quot;../../lib&quot;:503,&quot;../../lib/gl_format_color&quot;:499,&quot;../../lib/str2rgbarray&quot;:528,&quot;../../plots/cartesian/axes&quot;:554,&quot;../scatter/make_bubble_size_func&quot;:943,&quot;./calc_errors&quot;:956}],958:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,n){return i.coerce(t,e,c,r,n)}if(function(t,e,r,i){var a=0,o=r(&quot;x&quot;),s=r(&quot;y&quot;),l=r(&quot;z&quot;);n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],i),o&amp;&amp;s&amp;&amp;l&amp;&amp;(a=Math.min(o.length,s.length,l.length),e._length=e._xlength=e._ylength=e._zlength=a);return a}(t,e,f,u)){f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;xhoverformat&quot;),f(&quot;yhoverformat&quot;),f(&quot;zhoverformat&quot;),f(&quot;mode&quot;),a.hasLines(e)&amp;&amp;(f(&quot;connectgaps&quot;),s(t,e,r,u,f)),a.hasMarkers(e)&amp;&amp;o(t,e,r,u,f,{noSelect:!0}),a.hasText(e)&amp;&amp;(f(&quot;texttemplate&quot;),l(t,e,u,f,{noSelect:!0}));var h=(e.line||{}).color,p=(e.marker||{}).color;f(&quot;surfaceaxis&quot;)&gt;=0&amp;&amp;f(&quot;surfacecolor&quot;,h||p);for(var d=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],m=0;m&lt;3;++m){var g=&quot;projection.&quot;+d[m];f(g+&quot;.show&quot;)&amp;&amp;(f(g+&quot;.opacity&quot;),f(g+&quot;.scale&quot;))}var v=n.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);v(t,e,h||p||r,{axis:&quot;z&quot;}),v(t,e,h||p||r,{axis:&quot;y&quot;,inherit:&quot;z&quot;}),v(t,e,h||p||r,{axis:&quot;x&quot;,inherit:&quot;z&quot;})}else e.visible=!1}},{&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;../scatter/line_defaults&quot;:939,&quot;../scatter/marker_defaults&quot;:945,&quot;../scatter/subtypes&quot;:951,&quot;../scatter/text_defaults&quot;:952,&quot;./attributes&quot;:954}],959:[function(t,e,r){&quot;use strict&quot;;e.exports={plot:t(&quot;./convert&quot;),attributes:t(&quot;./attributes&quot;),markerSymbols:t(&quot;../../constants/gl3d_markers&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:[{container:&quot;marker&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;}],calc:t(&quot;./calc&quot;),moduleType:&quot;trace&quot;,name:&quot;scatter3d&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../constants/gl3d_markers&quot;:477,&quot;../../plots/gl3d&quot;:598,&quot;./attributes&quot;:954,&quot;./calc&quot;:955,&quot;./convert&quot;:957,&quot;./defaults&quot;:958}],960:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=n.marker,u=n.line,f=c.line;e.exports={carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},mode:l({},n.mode,{dflt:&quot;markers&quot;}),text:l({},n.text,{}),texttemplate:o({editType:&quot;plot&quot;},{keys:[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;]}),hovertext:l({},n.hovertext,{}),line:{color:u.color,width:u.width,dash:u.dash,shape:l({},u.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:u.smoothing,editType:&quot;calc&quot;},connectgaps:n.connectgaps,fill:l({},n.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:n.fillcolor,marker:l({symbol:c.symbol,opacity:c.opacity,maxdisplayed:c.maxdisplayed,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,line:l({width:f.width,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),gradient:c.gradient,editType:&quot;calc&quot;},s(&quot;marker&quot;)),textfont:n.textfont,textposition:n.textposition,selected:n.selected,unselected:n.unselected,hoverinfo:l({},i.hoverinfo,{flags:[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:n.hoveron,hovertemplate:a()}},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plots/attributes&quot;:550,&quot;../../plots/template_attributes&quot;:633,&quot;../scatter/attributes&quot;:926}],961:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scatter/arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../scatter/calc&quot;).calcMarkerSize,l=t(&quot;../carpet/lookup_carpetid&quot;);e.exports=function(t,e){var r=e._carpetTrace=l(t,e);if(r&amp;&amp;r.visible&amp;&amp;&quot;legendonly&quot;!==r.visible){var c;e.xaxis=r.xaxis,e.yaxis=r.yaxis;var u,f,h=e._length,p=new Array(h),d=!1;for(c=0;c&lt;h;c++)if(u=e.a[c],f=e.b[c],n(u)&amp;&amp;n(f)){var m=r.ab2xy(+u,+f,!0),g=r.isVisible(+u,+f);g||(d=!0),p[c]={x:m[0],y:m[1],a:u,b:f,vis:g}}else p[c]={x:!1,y:!1};return e._needsCull=d,p[0].carpet=r,p[0].trace=e,s(e,h),i(t,e),a(p,e),o(p,e),p}}},{&quot;../carpet/lookup_carpetid&quot;:708,&quot;../scatter/arrays_to_calcdata&quot;:925,&quot;../scatter/calc&quot;:927,&quot;../scatter/calc_selection&quot;:928,&quot;../scatter/colorscale_calc&quot;:929,&quot;fast-isnumeric&quot;:190}],962:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/constants&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/line_shape_defaults&quot;),c=t(&quot;../scatter/text_defaults&quot;),u=t(&quot;../scatter/fillcolor_defaults&quot;),f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}p(&quot;carpet&quot;),e.xaxis=&quot;x&quot;,e.yaxis=&quot;y&quot;;var d=p(&quot;a&quot;),m=p(&quot;b&quot;),g=Math.min(d.length,m.length);if(g){e._length=g,p(&quot;text&quot;),p(&quot;texttemplate&quot;),p(&quot;hovertext&quot;),p(&quot;mode&quot;,g&lt;i.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;),a.hasLines(e)&amp;&amp;(s(t,e,r,h,p),l(t,e,p),p(&quot;connectgaps&quot;)),a.hasMarkers(e)&amp;&amp;o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&amp;&amp;c(t,e,h,p);var v=[];(a.hasMarkers(e)||a.hasText(e))&amp;&amp;(p(&quot;marker.maxdisplayed&quot;),v.push(&quot;points&quot;)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||v.push(&quot;fills&quot;),&quot;fills&quot;!==p(&quot;hoveron&quot;,v.join(&quot;+&quot;)||&quot;points&quot;)&amp;&amp;p(&quot;hovertemplate&quot;),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{&quot;../../lib&quot;:503,&quot;../scatter/constants&quot;:930,&quot;../scatter/fillcolor_defaults&quot;:934,&quot;../scatter/line_defaults&quot;:939,&quot;../scatter/line_shape_defaults&quot;:941,&quot;../scatter/marker_defaults&quot;:945,&quot;../scatter/subtypes&quot;:951,&quot;../scatter/text_defaults&quot;:952,&quot;./attributes&quot;:960}],963:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=n[i];return t.a=a.a,t.b=a.b,t.y=a.y,t}},{}],964:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r={},n=e._carpet,i=n.ab2ij([t.a,t.b]),a=Math.floor(i[0]),o=i[0]-a,s=Math.floor(i[1]),l=i[1]-s,c=n.evalxy([],a,s,o,l);return r.yLabel=c[1].toFixed(3),r}},{}],965:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;),i=t(&quot;../../lib&quot;).fillText;e.exports=function(t,e,r,a){var o=n(t,e,r,a);if(o&amp;&amp;!1!==o[0].index){var s=o[0];if(void 0===s.index){var l=1-s.y0/t.ya._length,c=t.xa._length,u=c*l/2,f=c-u;return s.x0=Math.max(Math.min(s.x0,f),u),s.x1=Math.max(Math.min(s.x1,f),u),o}var h=s.cd[s.index];s.a=h.a,s.b=h.b,s.xLabelVal=void 0,s.yLabelVal=void 0;var p=s.trace,d=p._carpet,m=p._module.formatLabels(h,p);s.yLabel=m.yLabel,delete s.text;var g=[];if(!p.hovertemplate){var v=(h.hi||p.hoverinfo).split(&quot;+&quot;);-1!==v.indexOf(&quot;all&quot;)&amp;&amp;(v=[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;]),-1!==v.indexOf(&quot;a&quot;)&amp;&amp;y(d.aaxis,h.a),-1!==v.indexOf(&quot;b&quot;)&amp;&amp;y(d.baxis,h.b),g.push(&quot;y: &quot;+s.yLabel),-1!==v.indexOf(&quot;text&quot;)&amp;&amp;i(h,p,g),s.extraText=g.join(&quot;&lt;br&gt;&quot;)}return o}function y(t,e){var r;r=t.labelprefix&amp;&amp;t.labelprefix.length&gt;0?t.labelprefix.replace(/ = $/,&quot;&quot;):t._hovertitle,g.push(r+&quot;: &quot;+e.toFixed(3)+t.labelsuffix)}}},{&quot;../../lib&quot;:503,&quot;../scatter/hover&quot;:937}],966:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../scatter/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;scattercarpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;svg&quot;,&quot;carpet&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;carpetDependent&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:568,&quot;../scatter/marker_colorbar&quot;:944,&quot;../scatter/select&quot;:948,&quot;../scatter/style&quot;:950,&quot;./attributes&quot;:960,&quot;./calc&quot;:961,&quot;./defaults&quot;:962,&quot;./event_data&quot;:963,&quot;./format_labels&quot;:964,&quot;./hover&quot;:965,&quot;./plot&quot;:967}],967:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../components/drawing&quot;);e.exports=function(t,e,r,o){var s,l,c,u=r[0][0].carpet,f={xaxis:i.getFromId(t,u.xaxis||&quot;x&quot;),yaxis:i.getFromId(t,u.yaxis||&quot;y&quot;),plot:e.plot};for(n(t,f,r,o),s=0;s&lt;r.length;s++)l=r[s][0].trace,c=o.selectAll(&quot;g.trace&quot;+l.uid+&quot; .js-line&quot;),a.setClipUrl(c,r[s][0].carpet._clipPathId,t)}},{&quot;../../components/drawing&quot;:388,&quot;../../plots/cartesian/axes&quot;:554,&quot;../scatter/plot&quot;:947}],968:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scatter/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../plot_api/edit_types&quot;).overrideAll,f=a.marker,h=a.line,p=f.line;e.exports=u({lon:{valType:&quot;data_array&quot;},lat:{valType:&quot;data_array&quot;},locations:{valType:&quot;data_array&quot;},locationmode:{valType:&quot;enumerated&quot;,values:[&quot;ISO-3&quot;,&quot;USA-states&quot;,&quot;country names&quot;,&quot;geojson-id&quot;],dflt:&quot;ISO-3&quot;},geojson:{valType:&quot;any&quot;,editType:&quot;calc&quot;},featureidkey:{valType:&quot;string&quot;,editType:&quot;calc&quot;,dflt:&quot;id&quot;},mode:c({},a.mode,{dflt:&quot;markers&quot;}),text:c({},a.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;lat&quot;,&quot;lon&quot;,&quot;location&quot;,&quot;text&quot;]}),hovertext:c({},a.hovertext,{}),textfont:a.textfont,textposition:a.textposition,line:{color:h.color,width:h.width,dash:l},connectgaps:a.connectgaps,marker:c({symbol:f.symbol,opacity:f.opacity,size:f.size,sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,colorbar:f.colorbar,line:c({width:p.width},s(&quot;marker.line&quot;)),gradient:f.gradient},s(&quot;marker&quot;)),fill:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;toself&quot;],dflt:&quot;none&quot;},fillcolor:a.fillcolor,selected:a.selected,unselected:a.unselected,hoverinfo:c({},o.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;location&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n()},&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../components/drawing/attributes&quot;:387,&quot;../../lib/extend&quot;:493,&quot;../../plot_api/edit_types&quot;:536,&quot;../../plots/attributes&quot;:550,&quot;../../plots/template_attributes&quot;:633,&quot;../scatter/attributes&quot;:926}],969:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../scatter/colorscale_calc&quot;),o=t(&quot;../scatter/arrays_to_calcdata&quot;),s=t(&quot;../scatter/calc_selection&quot;),l=t(&quot;../../lib&quot;)._;function c(t){return t&amp;&amp;&quot;string&quot;==typeof t}e.exports=function(t,e){var r,u=Array.isArray(e.locations),f=u?e.locations.length:e._length,h=new Array(f);r=e.geojson?function(t){return c(t)||n(t)}:c;for(var p=0;p&lt;f;p++){var d=h[p]={};if(u){var m=e.locations[p];d.loc=r(m)?m:null}else{var g=e.lon[p],v=e.lat[p];n(g)&amp;&amp;n(v)?d.lonlat=[+g,+v]:d.lonlat=[i,i]}}return o(h,e),a(t,e),s(h,e),f&amp;&amp;(h[0].t={labels:{lat:l(t,&quot;lat:&quot;)+&quot; &quot;,lon:l(t,&quot;lon:&quot;)+&quot; &quot;}}),h}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../scatter/arrays_to_calcdata&quot;:925,&quot;../scatter/calc_selection&quot;:928,&quot;../scatter/colorscale_calc&quot;:929,&quot;fast-isnumeric&quot;:190}],970:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/text_defaults&quot;),l=t(&quot;../scatter/fillcolor_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}var h,p=f(&quot;locations&quot;);if(p&amp;&amp;p.length){var d,m=f(&quot;geojson&quot;);(&quot;string&quot;==typeof m&amp;&amp;&quot;&quot;!==m||n.isPlainObject(m))&amp;&amp;(d=&quot;geojson-id&quot;),&quot;geojson-id&quot;===f(&quot;locationmode&quot;,d)&amp;&amp;f(&quot;featureidkey&quot;),h=p.length}else{var g=f(&quot;lon&quot;)||[],v=f(&quot;lat&quot;)||[];h=Math.min(g.length,v.length)}h?(e._length=h,f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,u,f),f(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;a(t,e,r,u,f,{gradient:!0}),i.hasText(e)&amp;&amp;(f(&quot;texttemplate&quot;),s(t,e,u,f)),f(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)):e.visible=!1}},{&quot;../../lib&quot;:503,&quot;../scatter/fillcolor_defaults&quot;:934,&quot;../scatter/line_defaults&quot;:939,&quot;../scatter/marker_defaults&quot;:945,&quot;../scatter/subtypes&quot;:951,&quot;../scatter/text_defaults&quot;:952,&quot;./attributes&quot;:968}],971:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){t.lon=e.lon,t.lat=e.lat,t.location=e.loc?e.loc:null;var a=n[i];return a.fIn&amp;&amp;a.fIn.properties&amp;&amp;(t.properties=a.fIn.properties),t}},{}],972:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.geo]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=n.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=n.tickText(a,a.c2l(o[1]),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:554}],973:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../scatter/get_trace_color&quot;),o=t(&quot;../../lib&quot;).fillText,s=t(&quot;./attributes&quot;);e.exports=function(t,e,r){var l=t.cd,c=l[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=h.projection.isLonLatOverEdges,d=h.project;if(n.getClosest(l,(function(t){var n=t.lonlat;if(n[0]===i)return 1/0;if(p(n))return 1/0;var a=d(n),o=d([e,r]),s=Math.abs(a[0]-o[0]),l=Math.abs(a[1]-o[1]),c=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(s*s+l*l)-c,1-3/c)}),t),!1!==t.index){var m=l[t.index],g=m.lonlat,v=[u.c2p(g),f.c2p(g)],y=m.mrc||1;t.x0=v[0]-y,t.x1=v[0]+y,t.y0=v[1]-y,t.y1=v[1]+y,t.loc=m.loc,t.lon=g[0],t.lat=g[1];var x={};x[c.geo]={_subplot:h};var b=c._module.formatLabels(m,c,x);return t.lonLabel=b.lonLabel,t.latLabel=b.latLabel,t.color=a(c,m),t.extraText=function(t,e,r,n){if(t.hovertemplate)return;var i=e.hi||t.hoverinfo,a=&quot;all&quot;===i?s.hoverinfo.flags:i.split(&quot;+&quot;),l=-1!==a.indexOf(&quot;location&quot;)&amp;&amp;Array.isArray(t.locations),c=-1!==a.indexOf(&quot;lon&quot;),u=-1!==a.indexOf(&quot;lat&quot;),f=-1!==a.indexOf(&quot;text&quot;),h=[];function p(t){return t+&quot;\xb0&quot;}l?h.push(e.loc):c&amp;&amp;u?h.push(&quot;(&quot;+p(r.latLabel)+&quot;, &quot;+p(r.lonLabel)+&quot;)&quot;):c?h.push(n.lon+p(r.lonLabel)):u&amp;&amp;h.push(n.lat+p(r.latLabel));f&amp;&amp;o(e,t,h);return h.join(&quot;&lt;br&gt;&quot;)}(c,m,t,l[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}}},{&quot;../../components/fx&quot;:406,&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../scatter/get_trace_color&quot;:936,&quot;./attributes&quot;:968}],974:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),calcGeoJSON:t(&quot;./plot&quot;).calcGeoJSON,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;scattergeo&quot;,basePlotModule:t(&quot;../../plots/geo&quot;),categories:[&quot;geo&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/geo&quot;:589,&quot;../scatter/marker_colorbar&quot;:944,&quot;../scatter/style&quot;:950,&quot;./attributes&quot;:968,&quot;./calc&quot;:969,&quot;./defaults&quot;:970,&quot;./event_data&quot;:971,&quot;./format_labels&quot;:972,&quot;./hover&quot;:973,&quot;./plot&quot;:975,&quot;./select&quot;:976,&quot;./style&quot;:977}],975:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/topojson_utils&quot;).getTopojsonFeatures,o=t(&quot;../../lib/geojson_utils&quot;),s=t(&quot;../../lib/geo_location_utils&quot;),l=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,c=t(&quot;../../constants/numerical&quot;).BADNUM,u=t(&quot;../scatter/calc&quot;).calcMarkerSize,f=t(&quot;../scatter/subtypes&quot;),h=t(&quot;./style&quot;);e.exports={calcGeoJSON:function(t,e){var r,n,i=t[0].trace,o=e[i.geo],f=o._subplot,h=i._length;if(Array.isArray(i.locations)){var p=i.locationmode,d=&quot;geojson-id&quot;===p?s.extractTraceFeature(t):a(i,f.topojson);for(r=0;r&lt;h;r++){n=t[r];var m=&quot;geojson-id&quot;===p?n.fOut:s.locationToFeature(p,n.loc,d);n.lonlat=m?m.properties.ct:[c,c]}}var g,v,y={padded:!0};if(&quot;geojson&quot;===o.fitbounds&amp;&amp;&quot;geojson-id&quot;===i.locationmode){var x=s.computeBbox(s.getTraceGeojson(i));g=[x[0],x[2]],v=[x[1],x[3]]}else{for(g=new Array(h),v=new Array(h),r=0;r&lt;h;r++)n=t[r],g[r]=n.lonlat[0],v[r]=n.lonlat[1];y.ppad=u(i,h)}i._extremes.lon=l(o.lonaxis._ax,g,y),i._extremes.lat=l(o.lataxis._ax,v,y)},plot:function(t,e,r){var a=e.layers.frontplot.select(&quot;.scatterlayer&quot;),s=i.makeTraceGroups(a,r,&quot;trace scattergeo&quot;);function l(t,e){t.lonlat[0]===c&amp;&amp;n.select(e).remove()}s.selectAll(&quot;*&quot;).remove(),s.each((function(e){var r=n.select(this),a=e[0].trace;if(f.hasLines(a)||&quot;none&quot;!==a.fill){var s=o.calcTraceToLineCoords(e),c=&quot;none&quot;!==a.fill?o.makePolygon(s):o.makeLine(s);r.selectAll(&quot;path.js-line&quot;).data([{geojson:c,trace:a}]).enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0).style(&quot;stroke-miterlimit&quot;,2)}f.hasMarkers(a)&amp;&amp;r.selectAll(&quot;path.point&quot;).data(i.identity).enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0).each((function(t){l(t,this)})),f.hasText(a)&amp;&amp;r.selectAll(&quot;g&quot;).data(i.identity).enter().append(&quot;g&quot;).append(&quot;text&quot;).each((function(t){l(t,this)})),h(t,e)}))}}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../../lib/geo_location_utils&quot;:496,&quot;../../lib/geojson_utils&quot;:497,&quot;../../lib/topojson_utils&quot;:532,&quot;../../plots/cartesian/autorange&quot;:553,&quot;../scatter/calc&quot;:927,&quot;../scatter/subtypes&quot;:951,&quot;./style&quot;:977,&quot;@plotly/d3&quot;:58}],976:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/subtypes&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e){var r,a,o,s,l,c=t.cd,u=t.xaxis,f=t.yaxis,h=[],p=c[0].trace;if(!n.hasMarkers(p)&amp;&amp;!n.hasText(p))return[];if(!1===e)for(l=0;l&lt;c.length;l++)c[l].selected=0;else for(l=0;l&lt;c.length;l++)(a=(r=c[l]).lonlat)[0]!==i&amp;&amp;(o=u.c2p(a),s=f.c2p(a),e.contains([o,s],null,l,t)?(h.push({pointNumber:l,lon:a[0],lat:a[1]}),r.selected=1):r.selected=0);return h}},{&quot;../../constants/numerical&quot;:479,&quot;../scatter/subtypes&quot;:951}],977:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../scatter/style&quot;),s=o.stylePoints,l=o.styleText;e.exports=function(t,e){e&amp;&amp;function(t,e){var r=e[0].trace,o=e[0].node3;o.style(&quot;opacity&quot;,e[0].trace.opacity),s(o,r,t),l(o,r,t),o.selectAll(&quot;path.js-line&quot;).style(&quot;fill&quot;,&quot;none&quot;).each((function(t){var e=n.select(this),r=t.trace,o=r.line||{};e.call(a.stroke,o.color).call(i.dashLine,o.dash||&quot;&quot;,o.width||0),&quot;none&quot;!==r.fill&amp;&amp;e.call(a.fill,r.fillcolor)}))}(t,e)}},{&quot;../../components/color&quot;:366,&quot;../../components/drawing&quot;:388,&quot;../scatter/style&quot;:950,&quot;@plotly/d3&quot;:58}],978:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../lib/sort_object_keys&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=t(&quot;../../plot_api/edit_types&quot;).overrideAll,u=t(&quot;./constants&quot;).DASHES,f=i.line,h=i.marker,p=h.line,d=e.exports=c({x:i.x,x0:i.x0,dx:i.dx,y:i.y,y0:i.y0,dy:i.dy,xperiod:i.xperiod,yperiod:i.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:i.xperiodalignment,yperiodalignment:i.yperiodalignment,xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),text:i.text,hovertext:i.hovertext,textposition:i.textposition,textfont:i.textfont,mode:{valType:&quot;flaglist&quot;,flags:[&quot;lines&quot;,&quot;markers&quot;,&quot;text&quot;],extras:[&quot;none&quot;]},line:{color:f.color,width:f.width,shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},dash:{valType:&quot;enumerated&quot;,values:s(u),dflt:&quot;solid&quot;}},marker:l({},o(&quot;marker&quot;),{symbol:h.symbol,size:h.size,sizeref:h.sizeref,sizemin:h.sizemin,sizemode:h.sizemode,opacity:h.opacity,colorbar:h.colorbar,line:l({},o(&quot;marker.line&quot;),{width:p.width})}),connectgaps:i.connectgaps,fill:l({},i.fill,{dflt:&quot;none&quot;}),fillcolor:i.fillcolor,selected:{marker:i.selected.marker,textfont:i.selected.textfont},unselected:{marker:i.unselected.marker,textfont:i.unselected.textfont},opacity:n.opacity},&quot;calc&quot;,&quot;nested&quot;);d.x.editType=d.y.editType=d.x0.editType=d.y0.editType=&quot;calc+clearAxisTypes&quot;,d.hovertemplate=i.hovertemplate,d.texttemplate=i.texttemplate},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../lib/sort_object_keys&quot;:526,&quot;../../plot_api/edit_types&quot;:536,&quot;../../plots/attributes&quot;:550,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../scatter/attributes&quot;:926,&quot;./constants&quot;:980}],979:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/point-cluster&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,s=t(&quot;../../plots/cartesian/align_period&quot;),l=t(&quot;../scatter/calc&quot;),c=l.calcMarkerSize,u=l.calcAxisExpansion,f=l.setFirstScatter,h=t(&quot;../scatter/colorscale_calc&quot;),p=t(&quot;./convert&quot;),d=t(&quot;./scene_update&quot;),m=t(&quot;../../constants/numerical&quot;).BADNUM,g=t(&quot;./constants&quot;).TOO_MANY_POINTS;function v(t,e,r){var n=t._extremes[e._id],i=o(e,r._bnds,{padded:!0});n.min=n.min.concat(i.min),n.max=n.max.concat(i.max)}e.exports=function(t,e){var r,o=t._fullLayout,l=a.getFromId(t,e.xaxis),y=a.getFromId(t,e.yaxis),x=o._plots[e.xaxis+e.yaxis],b=e._length,_=b&gt;=g,w=2*b,T={},k=l.makeCalcdata(e,&quot;x&quot;),A=y.makeCalcdata(e,&quot;y&quot;),M=s(e,l,&quot;x&quot;,k),S=s(e,y,&quot;y&quot;,A),E=M.vals,L=S.vals;e._x=E,e._y=L,e.xperiodalignment&amp;&amp;(e._origX=k,e._xStarts=M.starts,e._xEnds=M.ends),e.yperiodalignment&amp;&amp;(e._origY=A,e._yStarts=S.starts,e._yEnds=S.ends);var C=new Array(w),P=new Array(b);for(r=0;r&lt;b;r++)C[2*r]=E[r]===m?NaN:E[r],C[2*r+1]=L[r]===m?NaN:L[r],P[r]=r;if(&quot;log&quot;===l.type)for(r=0;r&lt;w;r+=2)C[r]=l.c2l(C[r]);if(&quot;log&quot;===y.type)for(r=1;r&lt;w;r+=2)C[r]=y.c2l(C[r]);_&amp;&amp;&quot;log&quot;!==l.type&amp;&amp;&quot;log&quot;!==y.type?T.tree=n(C):T.ids=P,h(t,e);var I,O=function(t,e,r,n,a,o){var s=p.style(t,r);s.marker&amp;&amp;(s.marker.positions=n);s.line&amp;&amp;n.length&gt;1&amp;&amp;i.extendFlat(s.line,p.linePositions(t,r,n));if(s.errorX||s.errorY){var l=p.errorBarPositions(t,r,n,a,o);s.errorX&amp;&amp;i.extendFlat(s.errorX,l.x),s.errorY&amp;&amp;i.extendFlat(s.errorY,l.y)}s.text&amp;&amp;(i.extendFlat(s.text,{positions:n},p.textPosition(t,r,s.text,s.marker)),i.extendFlat(s.textSel,{positions:n},p.textPosition(t,r,s.text,s.markerSel)),i.extendFlat(s.textUnsel,{positions:n},p.textPosition(t,r,s.text,s.markerUnsel)));return s}(t,0,e,C,E,L),z=d(t,x);return f(o,e),_?O.marker&amp;&amp;(I=O.marker.sizeAvg||Math.max(O.marker.size,3)):I=c(e,b),u(t,e,l,y,E,L,I),O.errorX&amp;&amp;v(e,l,O.errorX),O.errorY&amp;&amp;v(e,y,O.errorY),O.fill&amp;&amp;!z.fill2d&amp;&amp;(z.fill2d=!0),O.marker&amp;&amp;!z.scatter2d&amp;&amp;(z.scatter2d=!0),O.line&amp;&amp;!z.line2d&amp;&amp;(z.line2d=!0),!O.errorX&amp;&amp;!O.errorY||z.error2d||(z.error2d=!0),O.text&amp;&amp;!z.glText&amp;&amp;(z.glText=!0),O.marker&amp;&amp;(O.marker.snap=b),z.lineOptions.push(O.line),z.errorXOptions.push(O.errorX),z.errorYOptions.push(O.errorY),z.fillOptions.push(O.fill),z.markerOptions.push(O.marker),z.markerSelectedOptions.push(O.markerSel),z.markerUnselectedOptions.push(O.markerUnsel),z.textOptions.push(O.text),z.textSelectedOptions.push(O.textSel),z.textUnselectedOptions.push(O.textUnsel),z.selectBatch.push([]),z.unselectBatch.push([]),T._scene=z,T.index=z.count,T.x=E,T.y=L,T.positions=C,z.count++,[{x:!1,y:!1,t:T,trace:e}]}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/align_period&quot;:551,&quot;../../plots/cartesian/autorange&quot;:553,&quot;../../plots/cartesian/axis_ids&quot;:558,&quot;../scatter/calc&quot;:927,&quot;../scatter/colorscale_calc&quot;:929,&quot;./constants&quot;:980,&quot;./convert&quot;:981,&quot;./scene_update&quot;:989,&quot;@plotly/point-cluster&quot;:59}],980:[function(t,e,r){&quot;use strict&quot;;e.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:20,SYMBOL_STROKE:1,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},{}],981:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;svg-path-sdf&quot;),a=t(&quot;color-normalize&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../plots/cartesian/axis_ids&quot;),u=t(&quot;../../lib/gl_format_color&quot;).formatColor,f=t(&quot;../scatter/subtypes&quot;),h=t(&quot;../scatter/make_bubble_size_func&quot;),p=t(&quot;./helpers&quot;),d=t(&quot;./constants&quot;),m=t(&quot;../../constants/interactions&quot;).DESELECTDIM,g={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},v=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue;function y(t,e){var r,i=t._fullLayout,a=e._length,o=e.textfont,l=e.textposition,c=Array.isArray(l)?l:[l],u=o.color,f=o.size,h=o.family,p={},d=t._context.plotGlPixelRatio,m=e.texttemplate;if(m){p.text=[];var g=i._d3locale,y=Array.isArray(m),x=y?Math.min(m.length,a):a,b=y?function(t){return m[t]}:function(){return m};for(r=0;r&lt;x;r++){var _={i:r},w=e._module.formatLabels(_,e,i),T={};v(T,e,r);var k=e._meta||{};p.text.push(s.texttemplateString(b(r),w,g,T,_,k))}}else Array.isArray(e.text)&amp;&amp;e.text.length&lt;a?p.text=e.text.slice():p.text=e.text;if(Array.isArray(p.text))for(r=p.text.length;r&lt;a;r++)p.text[r]=&quot;&quot;;for(p.opacity=e.opacity,p.font={},p.align=[],p.baseline=[],r=0;r&lt;c.length;r++){var A=c[r].split(/\s+/);switch(A[1]){case&quot;left&quot;:p.align.push(&quot;right&quot;);break;case&quot;right&quot;:p.align.push(&quot;left&quot;);break;default:p.align.push(A[1])}switch(A[0]){case&quot;top&quot;:p.baseline.push(&quot;bottom&quot;);break;case&quot;bottom&quot;:p.baseline.push(&quot;top&quot;);break;default:p.baseline.push(A[0])}}if(Array.isArray(u))for(p.color=new Array(a),r=0;r&lt;a;r++)p.color[r]=u[r];else p.color=u;if(s.isArrayOrTypedArray(f)||Array.isArray(h))for(p.font=new Array(a),r=0;r&lt;a;r++){var M=p.font[r]={};M.size=(s.isTypedArray(f)?f[r]:Array.isArray(f)?n(f[r])?f[r]:0:f)*d,M.family=Array.isArray(h)?h[r]:h}else p.font={size:f*d,family:h};return p}function x(t){var e,r,n=t._length,i=t.marker,o={},l=s.isArrayOrTypedArray(i.symbol),c=s.isArrayOrTypedArray(i.color),f=s.isArrayOrTypedArray(i.line.color),d=s.isArrayOrTypedArray(i.opacity),m=s.isArrayOrTypedArray(i.size),g=s.isArrayOrTypedArray(i.line.width);if(l||(r=p.isOpenSymbol(i.symbol)),l||c||f||d){o.colors=new Array(n),o.borderColors=new Array(n);var v=u(i,i.opacity,n),y=u(i.line,i.opacity,n);if(!Array.isArray(y[0])){var x=y;for(y=Array(n),e=0;e&lt;n;e++)y[e]=x}if(!Array.isArray(v[0])){var b=v;for(v=Array(n),e=0;e&lt;n;e++)v[e]=b}for(o.colors=v,o.borderColors=y,e=0;e&lt;n;e++){if(l){var _=i.symbol[e];r=p.isOpenSymbol(_)}r&amp;&amp;(y[e]=v[e].slice(),v[e]=v[e].slice(),v[e][3]=0)}o.opacity=t.opacity}else r?(o.color=a(i.color,&quot;uint8&quot;),o.color[3]=0,o.borderColor=a(i.color,&quot;uint8&quot;)):(o.color=a(i.color,&quot;uint8&quot;),o.borderColor=a(i.line.color,&quot;uint8&quot;)),o.opacity=t.opacity*i.opacity;if(l)for(o.markers=new Array(n),e=0;e&lt;n;e++)o.markers[e]=E(i.symbol[e]);else o.marker=E(i.symbol);var w,T=h(t,1);if(m||g){var k,A=o.sizes=new Array(n),M=o.borderSizes=new Array(n),S=0;if(m){for(e=0;e&lt;n;e++)A[e]=T(i.size[e]),S+=A[e];k=S/n}else for(w=T(i.size),e=0;e&lt;n;e++)A[e]=w;if(g)for(e=0;e&lt;n;e++)M[e]=i.line.width[e];else for(w=i.line.width,e=0;e&lt;n;e++)M[e]=w;o.sizeAvg=k}else o.size=T(i&amp;&amp;i.size||10),o.borderSizes=T(i.line.width);return o}function b(t,e){var r=t.marker,n={};return e?(e.marker&amp;&amp;e.marker.symbol?n=x(s.extendFlat({},r,e.marker)):e.marker&amp;&amp;(e.marker.size&amp;&amp;(n.size=e.marker.size),e.marker.color&amp;&amp;(n.colors=e.marker.color),void 0!==e.marker.opacity&amp;&amp;(n.opacity=e.marker.opacity)),n):n}function _(t,e,r){var n={};if(!r)return n;if(r.textfont){var i={opacity:1,text:e.text,texttemplate:e.texttemplate,textposition:e.textposition,textfont:s.extendFlat({},e.textfont)};r.textfont&amp;&amp;s.extendFlat(i.textfont,r.textfont),n=y(t,i)}return n}function w(t,e,r){var n={capSize:2*e.width*r,lineWidth:e.thickness*r,color:e.color};return e.copy_ystyle&amp;&amp;(n=t.error_y),n}var T=d.SYMBOL_SDF_SIZE,k=d.SYMBOL_SIZE,A=d.SYMBOL_STROKE,M={},S=l.symbolFuncs[0](.05*k);function E(t){if(&quot;circle&quot;===t)return null;var e,r,n=l.symbolNumber(t),a=l.symbolFuncs[n%100],o=!!l.symbolNoDot[n%100],s=!!l.symbolNoFill[n%100],c=p.isDotSymbol(t);return M[t]?M[t]:(e=c&amp;&amp;!o?a(1.1*k)+S:a(k),r=i(e,{w:T,h:T,viewBox:[-k,-k,k,k],stroke:s?A:-A}),M[t]=r,r||null)}e.exports={style:function(t,e){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0},i=t._context.plotGlPixelRatio;if(!0!==e.visible)return n;if(f.hasText(e)&amp;&amp;(n.text=y(t,e),n.textSel=_(t,e,e.selected),n.textUnsel=_(t,e,e.unselected)),f.hasMarkers(e)&amp;&amp;(n.marker=x(e),n.markerSel=b(e,e.selected),n.markerUnsel=b(e,e.unselected),!e.unselected&amp;&amp;s.isArrayOrTypedArray(e.marker.opacity))){var a=e.marker.opacity;for(n.markerUnsel.opacity=new Array(a.length),r=0;r&lt;a.length;r++)n.markerUnsel.opacity[r]=m*a[r]}if(f.hasLines(e)){n.line={overlay:!0,thickness:e.line.width*i,color:e.line.color,opacity:e.opacity};var o=(d.DASHES[e.line.dash]||[1]).slice();for(r=0;r&lt;o.length;++r)o[r]*=e.line.width*i;n.line.dashes=o}return e.error_x&amp;&amp;e.error_x.visible&amp;&amp;(n.errorX=w(e,e.error_x,i)),e.error_y&amp;&amp;e.error_y.visible&amp;&amp;(n.errorY=w(e,e.error_y,i)),e.fill&amp;&amp;&quot;none&quot;!==e.fill&amp;&amp;(n.fill={closed:!0,fill:e.fillcolor,thickness:0}),n},markerStyle:x,markerSelection:b,linePositions:function(t,e,r){var n,i,a=r.length,o=a/2;if(f.hasLines(e)&amp;&amp;o)if(&quot;hv&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i+2],r[2*i+1]));n.push(r[a-2],r[a-1])}else if(&quot;hvh&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var s=(r[2*i]+r[2*i+2])/2;n.push(r[2*i],r[2*i+1],s,r[2*i+1],s,r[2*i+3])}n.push(r[a-2],r[a-1])}else if(&quot;vhv&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var l=(r[2*i+1]+r[2*i+3])/2;n.push(r[2*i],r[2*i+1],r[2*i],l,r[2*i+2],l)}n.push(r[a-2],r[a-1])}else if(&quot;vh&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+3]));n.push(r[a-2],r[a-1])}else n=r;var c=!1;for(i=0;i&lt;n.length;i++)if(isNaN(n[i])){c=!0;break}var u=c||n.length&gt;d.TOO_MANY_POINTS||f.hasMarkers(e)?&quot;rect&quot;:&quot;round&quot;;if(c&amp;&amp;e.connectgaps){var h=n[0],p=n[1];for(i=0;i&lt;n.length;i+=2)isNaN(n[i])||isNaN(n[i+1])?(n[i]=h,n[i+1]=p):(h=n[i],p=n[i+1])}return{join:u,positions:n}},errorBarPositions:function(t,e,r,i,a){var s=o.getComponentMethod(&quot;errorbars&quot;,&quot;makeComputeError&quot;),l=c.getFromId(t,e.xaxis),u=c.getFromId(t,e.yaxis),f=r.length/2,h={};function p(t,i){var a=i._id.charAt(0),o=e[&quot;error_&quot;+a];if(o&amp;&amp;o.visible&amp;&amp;(&quot;linear&quot;===i.type||&quot;log&quot;===i.type)){for(var l=s(o),c={x:0,y:1}[a],u={x:[0,1,2,3],y:[2,3,0,1]}[a],p=new Float64Array(4*f),d=1/0,m=-1/0,g=0,v=0;g&lt;f;g++,v+=4){var y=t[g];if(n(y)){var x=r[2*g+c],b=l(y,g),_=b[0],w=b[1];if(n(_)&amp;&amp;n(w)){var T=y-_,k=y+w;p[v+u[0]]=x-i.c2l(T),p[v+u[1]]=i.c2l(k)-x,p[v+u[2]]=0,p[v+u[3]]=0,d=Math.min(d,y-_),m=Math.max(m,y+w)}}}h[a]={positions:r,errors:p,_bnds:[d,m]}}}return p(i,l),p(a,u),h},textPosition:function(t,e,r,n){var i,a=e._length,o={};if(f.hasMarkers(e)){var s=r.font,l=r.align,c=r.baseline;for(o.offset=new Array(a),i=0;i&lt;a;i++){var u=n.sizes?n.sizes[i]:n.size,h=Array.isArray(s)?s[i].size:s.size,p=Array.isArray(l)?l.length&gt;1?l[i]:l[0]:l,d=Array.isArray(c)?c.length&gt;1?c[i]:c[0]:c,m=g[p],v=g[d],y=u?u/.8+1:0,x=-v*y-.5*v;o.offset[i]=[m*y/h,x/h]}}return o}}},{&quot;../../components/drawing&quot;:388,&quot;../../components/fx/helpers&quot;:402,&quot;../../constants/interactions&quot;:478,&quot;../../lib&quot;:503,&quot;../../lib/gl_format_color&quot;:499,&quot;../../plots/cartesian/axis_ids&quot;:558,&quot;../../registry&quot;:638,&quot;../scatter/make_bubble_size_func&quot;:943,&quot;../scatter/subtypes&quot;:951,&quot;./constants&quot;:980,&quot;./helpers&quot;:985,&quot;color-normalize&quot;:89,&quot;fast-isnumeric&quot;:190,&quot;svg-path-sdf&quot;:310}],982:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./helpers&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../scatter/constants&quot;),l=t(&quot;../scatter/subtypes&quot;),c=t(&quot;../scatter/xy_defaults&quot;),u=t(&quot;../scatter/period_defaults&quot;),f=t(&quot;../scatter/marker_defaults&quot;),h=t(&quot;../scatter/line_defaults&quot;),p=t(&quot;../scatter/fillcolor_defaults&quot;),d=t(&quot;../scatter/text_defaults&quot;);e.exports=function(t,e,r,m){function g(r,i){return n.coerce(t,e,o,r,i)}var v=!!t.marker&amp;&amp;a.isOpenSymbol(t.marker.symbol),y=l.isBubble(t),x=c(t,e,m,g);if(x){u(t,e,m,g),g(&quot;xhoverformat&quot;),g(&quot;yhoverformat&quot;);var b=x&lt;s.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;;g(&quot;text&quot;),g(&quot;hovertext&quot;),g(&quot;hovertemplate&quot;),g(&quot;mode&quot;,b),l.hasLines(e)&amp;&amp;(g(&quot;connectgaps&quot;),h(t,e,r,m,g),g(&quot;line.shape&quot;)),l.hasMarkers(e)&amp;&amp;(f(t,e,r,m,g),g(&quot;marker.line.width&quot;,v||y?1:0)),l.hasText(e)&amp;&amp;(g(&quot;texttemplate&quot;),d(t,e,m,g));var _=(e.line||{}).color,w=(e.marker||{}).color;g(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;p(t,e,r,g);var T=i.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);T(t,e,_||w||r,{axis:&quot;y&quot;}),T(t,e,_||w||r,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,g)}else e.visible=!1}},{&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;../scatter/constants&quot;:930,&quot;../scatter/fillcolor_defaults&quot;:934,&quot;../scatter/line_defaults&quot;:939,&quot;../scatter/marker_defaults&quot;:945,&quot;../scatter/period_defaults&quot;:946,&quot;../scatter/subtypes&quot;:951,&quot;../scatter/text_defaults&quot;:952,&quot;../scatter/xy_defaults&quot;:953,&quot;./attributes&quot;:978,&quot;./helpers&quot;:985}],983:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../constants/interactions&quot;).DESELECTDIM;e.exports={styleTextSelection:function(t){var e,r,o=t[0],s=o.trace,l=o.t,c=l._scene,u=l.index,f=c.selectBatch[u],h=c.unselectBatch[u],p=c.textOptions[u],d=c.textSelectedOptions[u]||{},m=c.textUnselectedOptions[u]||{},g=n.extendFlat({},p);if(f.length||h.length){var v=d.color,y=m.color,x=p.color,b=Array.isArray(x);for(g.color=new Array(s._length),e=0;e&lt;f.length;e++)r=f[e],g.color[r]=v||(b?x[r]:x);for(e=0;e&lt;h.length;e++){r=h[e];var _=b?x[r]:x;g.color[r]=y||(v?_:i.addOpacity(_,a))}}c.glText[u].update(g)}}},{&quot;../../components/color&quot;:366,&quot;../../constants/interactions&quot;:478,&quot;../../lib&quot;:503}],984:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/format_labels&quot;);e.exports=function(t,e,r){var i=t.i;return&quot;x&quot;in t||(t.x=e._x[i]),&quot;y&quot;in t||(t.y=e._y[i]),n(t,e,r)}},{&quot;../scatter/format_labels&quot;:935}],985:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);r.isOpenSymbol=function(t){return&quot;string&quot;==typeof t?n.OPEN_RE.test(t):t%200&gt;100},r.isDotSymbol=function(t){return&quot;string&quot;==typeof t?n.DOT_RE.test(t):t&gt;200}},{&quot;./constants&quot;:980}],986:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/get_trace_color&quot;);function o(t,e,r,o){var s=t.xa,l=t.ya,c=t.distance,u=t.dxy,f=t.index,h={pointNumber:f,x:e[f],y:r[f]};h.tx=Array.isArray(o.text)?o.text[f]:o.text,h.htx=Array.isArray(o.hovertext)?o.hovertext[f]:o.hovertext,h.data=Array.isArray(o.customdata)?o.customdata[f]:o.customdata,h.tp=Array.isArray(o.textposition)?o.textposition[f]:o.textposition;var p=o.textfont;p&amp;&amp;(h.ts=i.isArrayOrTypedArray(p.size)?p.size[f]:p.size,h.tc=Array.isArray(p.color)?p.color[f]:p.color,h.tf=Array.isArray(p.family)?p.family[f]:p.family);var d=o.marker;d&amp;&amp;(h.ms=i.isArrayOrTypedArray(d.size)?d.size[f]:d.size,h.mo=i.isArrayOrTypedArray(d.opacity)?d.opacity[f]:d.opacity,h.mx=i.isArrayOrTypedArray(d.symbol)?d.symbol[f]:d.symbol,h.mc=i.isArrayOrTypedArray(d.color)?d.color[f]:d.color);var m=d&amp;&amp;d.line;m&amp;&amp;(h.mlc=Array.isArray(m.color)?m.color[f]:m.color,h.mlw=i.isArrayOrTypedArray(m.width)?m.width[f]:m.width);var g=d&amp;&amp;d.gradient;g&amp;&amp;&quot;none&quot;!==g.type&amp;&amp;(h.mgt=Array.isArray(g.type)?g.type[f]:g.type,h.mgc=Array.isArray(g.color)?g.color[f]:g.color);var v=s.c2p(h.x,!0),y=l.c2p(h.y,!0),x=h.mrc||1,b=o.hoverlabel;b&amp;&amp;(h.hbg=Array.isArray(b.bgcolor)?b.bgcolor[f]:b.bgcolor,h.hbc=Array.isArray(b.bordercolor)?b.bordercolor[f]:b.bordercolor,h.hts=i.isArrayOrTypedArray(b.font.size)?b.font.size[f]:b.font.size,h.htc=Array.isArray(b.font.color)?b.font.color[f]:b.font.color,h.htf=Array.isArray(b.font.family)?b.font.family[f]:b.font.family,h.hnl=i.isArrayOrTypedArray(b.namelength)?b.namelength[f]:b.namelength);var _=o.hoverinfo;_&amp;&amp;(h.hi=Array.isArray(_)?_[f]:_);var w=o.hovertemplate;w&amp;&amp;(h.ht=Array.isArray(w)?w[f]:w);var T={};T[t.index]=h;var k=o._origX,A=o._origY,M=i.extendFlat({},t,{color:a(o,h),x0:v-x,x1:v+x,xLabelVal:k?k[f]:h.x,y0:y-x,y1:y+x,yLabelVal:A?A[f]:h.y,cd:T,distance:c,spikeDistance:u,hovertemplate:h.ht});return h.htx?M.text=h.htx:h.tx?M.text=h.tx:o.text&amp;&amp;(M.text=o.text),i.fillText(h,o,M),n.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(h,o,M),M}e.exports={hoverPoints:function(t,e,r,n){var i,a,s,l,c,u,f,h,p,d,m=t.cd,g=m[0].t,v=m[0].trace,y=t.xa,x=t.ya,b=g.x,_=g.y,w=y.c2p(e),T=x.c2p(r),k=t.distance;if(g.tree){var A=y.p2c(w-k),M=y.p2c(w+k),S=x.p2c(T-k),E=x.p2c(T+k);i=&quot;x&quot;===n?g.tree.range(Math.min(A,M),Math.min(x._rl[0],x._rl[1]),Math.max(A,M),Math.max(x._rl[0],x._rl[1])):g.tree.range(Math.min(A,M),Math.min(S,E),Math.max(A,M),Math.max(S,E))}else i=g.ids;var L=k;if(&quot;x&quot;===n){var C=!!v.xperiodalignment,P=!!v.yperiodalignment;for(u=0;u&lt;i.length;u++){if(l=b[a=i[u]],f=Math.abs(y.c2p(l)-w),C){var I=y.c2p(v._xStarts[a]),O=y.c2p(v._xEnds[a]);f=w&gt;=Math.min(I,O)&amp;&amp;w&lt;=Math.max(I,O)?0:1/0}if(f&lt;L){if(L=f,c=_[a],h=x.c2p(c)-T,P){var z=x.c2p(v._yStarts[a]),D=x.c2p(v._yEnds[a]);h=T&gt;=Math.min(z,D)&amp;&amp;T&lt;=Math.max(z,D)?0:1/0}d=Math.sqrt(f*f+h*h),s=i[u]}}}else for(u=i.length-1;u&gt;-1;u--)l=b[a=i[u]],c=_[a],f=y.c2p(l)-w,h=x.c2p(c)-T,(p=Math.sqrt(f*f+h*h))&lt;L&amp;&amp;(L=d=p,s=a);return t.index=s,t.distance=L,t.dxy=d,void 0===s?[t]:[o(t,b,_,v)]},calcHover:o}},{&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;../scatter/get_trace_color&quot;:936}],987:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./hover&quot;);e.exports={moduleType:&quot;trace&quot;,name:&quot;scattergl&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;cartesian&quot;,&quot;symbols&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../scatter/cross_trace_defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:n.hoverPoints,selectPoints:t(&quot;./select&quot;),meta:{}}},{&quot;../../plots/cartesian&quot;:568,&quot;../scatter/cross_trace_defaults&quot;:932,&quot;../scatter/marker_colorbar&quot;:944,&quot;./attributes&quot;:978,&quot;./calc&quot;:979,&quot;./defaults&quot;:982,&quot;./format_labels&quot;:984,&quot;./hover&quot;:986,&quot;./plot&quot;:988,&quot;./select&quot;:990}],988:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-scatter2d&quot;),i=t(&quot;regl-line2d&quot;),a=t(&quot;regl-error2d&quot;),o=t(&quot;gl-text&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../components/dragelement/helpers&quot;).selectMode,c=t(&quot;../../lib/prepare_regl&quot;),u=t(&quot;../scatter/subtypes&quot;),f=t(&quot;../scatter/link_traces&quot;),h=t(&quot;./edit_style&quot;).styleTextSelection;function p(t,e,r,n){var i=t._size,a=t.width*n,o=t.height*n,s=i.l*n,l=i.b*n,c=i.r*n,u=i.t*n,f=i.w*n,h=i.h*n;return[s+e.domain[0]*f,l+r.domain[0]*h,a-c-(1-e.domain[1])*f,o-u-(1-r.domain[1])*h]}e.exports=function(t,e,r){if(r.length){var d,m,g=t._fullLayout,v=e._scene,y=e.xaxis,x=e.yaxis;if(v)if(c(t,[&quot;ANGLE_instanced_arrays&quot;,&quot;OES_element_index_uint&quot;])){var b=v.count,_=g._glcanvas.data()[0].regl;if(f(t,e,r),v.dirty){if(!0===v.error2d&amp;&amp;(v.error2d=a(_)),!0===v.line2d&amp;&amp;(v.line2d=i(_)),!0===v.scatter2d&amp;&amp;(v.scatter2d=n(_)),!0===v.fill2d&amp;&amp;(v.fill2d=i(_)),!0===v.glText)for(v.glText=new Array(b),d=0;d&lt;b;d++)v.glText[d]=new o(_);if(v.glText){if(b&gt;v.glText.length){var w=b-v.glText.length;for(d=0;d&lt;w;d++)v.glText.push(new o(_))}else if(b&lt;v.glText.length){var T=v.glText.length-b;v.glText.splice(b,T).forEach((function(t){t.destroy()}))}for(d=0;d&lt;b;d++)v.glText[d].update(v.textOptions[d])}if(v.line2d&amp;&amp;(v.line2d.update(v.lineOptions),v.lineOptions=v.lineOptions.map((function(t){if(t&amp;&amp;t.positions){for(var e=t.positions,r=0;r&lt;e.length&amp;&amp;(isNaN(e[r])||isNaN(e[r+1]));)r+=2;for(var n=e.length-2;n&gt;r&amp;&amp;(isNaN(e[n])||isNaN(e[n+1]));)n-=2;t.positions=e.slice(r,n+2)}return t})),v.line2d.update(v.lineOptions)),v.error2d){var k=(v.errorXOptions||[]).concat(v.errorYOptions||[]);v.error2d.update(k)}v.scatter2d&amp;&amp;v.scatter2d.update(v.markerOptions),v.fillOrder=s.repeat(null,b),v.fill2d&amp;&amp;(v.fillOptions=v.fillOptions.map((function(t,e){var n=r[e];if(t&amp;&amp;n&amp;&amp;n[0]&amp;&amp;n[0].trace){var i,a,o=n[0],s=o.trace,l=o.t,c=v.lineOptions[e],u=[];s._ownfill&amp;&amp;u.push(e),s._nexttrace&amp;&amp;u.push(e+1),u.length&amp;&amp;(v.fillOrder[e]=u);var f,h,p=[],d=c&amp;&amp;c.positions||l.positions;if(&quot;tozeroy&quot;===s.fill){for(f=0;f&lt;d.length&amp;&amp;isNaN(d[f+1]);)f+=2;for(h=d.length-2;h&gt;f&amp;&amp;isNaN(d[h+1]);)h-=2;0!==d[f+1]&amp;&amp;(p=[d[f],0]),p=p.concat(d.slice(f,h+2)),0!==d[h+1]&amp;&amp;(p=p.concat([d[h],0]))}else if(&quot;tozerox&quot;===s.fill){for(f=0;f&lt;d.length&amp;&amp;isNaN(d[f]);)f+=2;for(h=d.length-2;h&gt;f&amp;&amp;isNaN(d[h]);)h-=2;0!==d[f]&amp;&amp;(p=[0,d[f+1]]),p=p.concat(d.slice(f,h+2)),0!==d[h]&amp;&amp;(p=p.concat([0,d[h+1]]))}else if(&quot;toself&quot;===s.fill||&quot;tonext&quot;===s.fill){for(p=[],i=0,t.splitNull=!0,a=0;a&lt;d.length;a+=2)(isNaN(d[a])||isNaN(d[a+1]))&amp;&amp;((p=p.concat(d.slice(i,a))).push(d[i],d[i+1]),p.push(null,null),i=a+2);p=p.concat(d.slice(i)),i&amp;&amp;p.push(d[i],d[i+1])}else{var m=s._nexttrace;if(m){var g=v.lineOptions[e+1];if(g){var y=g.positions;if(&quot;tonexty&quot;===s.fill){for(p=d.slice(),e=Math.floor(y.length/2);e--;){var x=y[2*e],b=y[2*e+1];isNaN(x)||isNaN(b)||p.push(x,b)}t.fill=m.fillcolor}}}}if(s._prevtrace&amp;&amp;&quot;tonext&quot;===s._prevtrace.fill){var _=v.lineOptions[e-1].positions,w=p.length/2,T=[i=w];for(a=0;a&lt;_.length;a+=2)(isNaN(_[a])||isNaN(_[a+1]))&amp;&amp;(T.push(a/2+w+1),i=a+2);p=p.concat(_),t.hole=T}return t.fillmode=s.fill,t.opacity=s.opacity,t.positions=p,t}})),v.fill2d.update(v.fillOptions))}var A=g.dragmode,M=l(A),S=g.clickmode.indexOf(&quot;select&quot;)&gt;-1;for(d=0;d&lt;b;d++){var E=r[d][0],L=E.trace,C=E.t,P=C.index,I=L._length,O=C.x,z=C.y;if(L.selectedpoints||M||S){if(M||(M=!0),L.selectedpoints){var D=v.selectBatch[P]=s.selIndices2selPoints(L),R={};for(m=0;m&lt;D.length;m++)R[D[m]]=1;var F=[];for(m=0;m&lt;I;m++)R[m]||F.push(m);v.unselectBatch[P]=F}var B=C.xpx=new Array(I),N=C.ypx=new Array(I);for(m=0;m&lt;I;m++)B[m]=y.c2p(O[m]),N[m]=x.c2p(z[m])}else C.xpx=C.ypx=null}if(M){if(v.select2d||(v.select2d=n(g._glcanvas.data()[1].regl)),v.scatter2d){var j=new Array(b);for(d=0;d&lt;b;d++)j[d]=v.selectBatch[d].length||v.unselectBatch[d].length?v.markerUnselectedOptions[d]:{};v.scatter2d.update(j)}v.select2d&amp;&amp;(v.select2d.update(v.markerOptions),v.select2d.update(v.markerSelectedOptions)),v.glText&amp;&amp;r.forEach((function(t){var e=((t||[])[0]||{}).trace||{};u.hasText(e)&amp;&amp;h(t)}))}else v.scatter2d&amp;&amp;v.scatter2d.update(v.markerOptions);var U={viewport:p(g,y,x,t._context.plotGlPixelRatio),range:[(y._rl||y.range)[0],(x._rl||x.range)[0],(y._rl||y.range)[1],(x._rl||x.range)[1]]},V=s.repeat(U,v.count);v.fill2d&amp;&amp;v.fill2d.update(V),v.line2d&amp;&amp;v.line2d.update(V),v.error2d&amp;&amp;v.error2d.update(V.concat(V)),v.scatter2d&amp;&amp;v.scatter2d.update(V),v.select2d&amp;&amp;v.select2d.update(V),v.glText&amp;&amp;v.glText.forEach((function(t){t.update(U)}))}else v.init()}}},{&quot;../../components/dragelement/helpers&quot;:384,&quot;../../lib&quot;:503,&quot;../../lib/prepare_regl&quot;:516,&quot;../scatter/link_traces&quot;:942,&quot;../scatter/subtypes&quot;:951,&quot;./edit_style&quot;:983,&quot;gl-text&quot;:225,&quot;regl-error2d&quot;:279,&quot;regl-line2d&quot;:280,&quot;regl-scatter2d&quot;:281}],989:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=e._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return e._scene||((r=e._scene={}).init=function(){n.extendFlat(r,a,i)},r.init(),r.update=function(t){var e=n.repeat(t,r.count);if(r.fill2d&amp;&amp;r.fill2d.update(e),r.scatter2d&amp;&amp;r.scatter2d.update(e),r.line2d&amp;&amp;r.line2d.update(e),r.error2d&amp;&amp;r.error2d.update(e.concat(e)),r.select2d&amp;&amp;r.select2d.update(e),r.glText)for(var i=0;i&lt;r.count;i++)r.glText[i].update(t)},r.draw=function(){for(var t=r.count,e=r.fill2d,i=r.error2d,a=r.line2d,o=r.scatter2d,s=r.glText,l=r.select2d,c=r.selectBatch,u=r.unselectBatch,f=0;f&lt;t;f++){if(e&amp;&amp;r.fillOrder[f]&amp;&amp;e.draw(r.fillOrder[f]),a&amp;&amp;r.lineOptions[f]&amp;&amp;a.draw(f),i&amp;&amp;(r.errorXOptions[f]&amp;&amp;i.draw(f),r.errorYOptions[f]&amp;&amp;i.draw(f+t)),o&amp;&amp;r.markerOptions[f])if(u[f].length){var h=n.repeat([],r.count);h[f]=u[f],o.draw(h)}else c[f].length||o.draw(f);s[f]&amp;&amp;r.textOptions[f]&amp;&amp;s[f].render()}l&amp;&amp;l.draw(c),r.dirty=!1},r.destroy=function(){r.fill2d&amp;&amp;r.fill2d.destroy&amp;&amp;r.fill2d.destroy(),r.scatter2d&amp;&amp;r.scatter2d.destroy&amp;&amp;r.scatter2d.destroy(),r.error2d&amp;&amp;r.error2d.destroy&amp;&amp;r.error2d.destroy(),r.line2d&amp;&amp;r.line2d.destroy&amp;&amp;r.line2d.destroy(),r.select2d&amp;&amp;r.select2d.destroy&amp;&amp;r.select2d.destroy(),r.glText&amp;&amp;r.glText.forEach((function(t){t.destroy&amp;&amp;t.destroy()})),r.lineOptions=null,r.fillOptions=null,r.markerOptions=null,r.markerSelectedOptions=null,r.markerUnselectedOptions=null,r.errorXOptions=null,r.errorYOptions=null,r.textOptions=null,r.textSelectedOptions=null,r.textUnselectedOptions=null,r.selectBatch=null,r.unselectBatch=null,e._scene=null}),r.dirty||n.extendFlat(r,i),r}},{&quot;../../lib&quot;:503}],990:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/subtypes&quot;),i=t(&quot;./edit_style&quot;).styleTextSelection;e.exports=function(t,e){var r=t.cd,a=t.xaxis,o=t.yaxis,s=[],l=r[0].trace,c=r[0].t,u=l._length,f=c.x,h=c.y,p=c._scene,d=c.index;if(!p)return s;var m=n.hasText(l),g=n.hasMarkers(l),v=!g&amp;&amp;!m;if(!0!==l.visible||v)return s;var y=[],x=[];if(!1!==e&amp;&amp;!e.degenerate)for(var b=0;b&lt;u;b++)e.contains([c.xpx[b],c.ypx[b]],!1,b,t)?(y.push(b),s.push({pointNumber:b,x:a.c2d(f[b]),y:o.c2d(h[b])})):x.push(b);if(g){var _=p.scatter2d;if(y.length||x.length){if(!p.selectBatch[d].length&amp;&amp;!p.unselectBatch[d].length){var w=new Array(p.count);w[d]=p.markerUnselectedOptions[d],_.update.apply(_,w)}}else{var T=new Array(p.count);T[d]=p.markerOptions[d],_.update.apply(_,T)}}return p.selectBatch[d]=y,p.unselectBatch[d]=x,m&amp;&amp;i(r),s}},{&quot;../scatter/subtypes&quot;:951,&quot;./edit_style&quot;:983}],991:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scattergeo/attributes&quot;),o=t(&quot;../scatter/attributes&quot;),s=t(&quot;../../plots/mapbox/layout_attributes&quot;),l=t(&quot;../../plots/attributes&quot;),c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat,f=t(&quot;../../plot_api/edit_types&quot;).overrideAll,h=a.line,p=a.marker;e.exports=f({lon:a.lon,lat:a.lat,mode:u({},o.mode,{dflt:&quot;markers&quot;}),text:u({},o.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;lat&quot;,&quot;lon&quot;,&quot;text&quot;]}),hovertext:u({},o.hovertext,{}),line:{color:h.color,width:h.width},connectgaps:o.connectgaps,marker:u({symbol:{valType:&quot;string&quot;,dflt:&quot;circle&quot;,arrayOk:!0},angle:{valType:&quot;number&quot;,dflt:&quot;auto&quot;,arrayOk:!0},allowoverlap:{valType:&quot;boolean&quot;,dflt:!1},opacity:p.opacity,size:p.size,sizeref:p.sizeref,sizemin:p.sizemin,sizemode:p.sizemode},c(&quot;marker&quot;)),fill:a.fill,fillcolor:o.fillcolor,textfont:s.layers.symbol.textfont,textposition:s.layers.symbol.textposition,below:{valType:&quot;string&quot;},selected:{marker:o.selected.marker},unselected:{marker:o.unselected.marker},hoverinfo:u({},l.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n()},&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plot_api/edit_types&quot;:536,&quot;../../plots/attributes&quot;:550,&quot;../../plots/mapbox/layout_attributes&quot;:615,&quot;../../plots/template_attributes&quot;:633,&quot;../scatter/attributes&quot;:926,&quot;../scattergeo/attributes&quot;:968}],992:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../lib/geojson_utils&quot;),s=t(&quot;../../components/colorscale&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../scatter/make_bubble_size_func&quot;),u=t(&quot;../scatter/subtypes&quot;),f=t(&quot;../../plots/mapbox/convert_text_opts&quot;),h=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,p=t(&quot;../../lib/svg_text_utils&quot;).NEWLINES,d=t(&quot;../../lib/svg_text_utils&quot;).BR_TAG_ALL;function m(){return{geojson:o.makeBlank(),layout:{visibility:&quot;none&quot;},paint:{}}}function g(t,e){return i.isArrayOrTypedArray(t)?e?function(e){return n(t[e])?+t[e]:0}:function(e){return t[e]}:t?function(){return t}:v}function v(){return&quot;&quot;}function y(t){return t[0]===a}e.exports=function(t,e){var r,a=e[0].trace,x=!0===a.visible&amp;&amp;0!==a._length,b=&quot;none&quot;!==a.fill,_=u.hasLines(a),w=u.hasMarkers(a),T=u.hasText(a),k=w&amp;&amp;&quot;circle&quot;===a.marker.symbol,A=w&amp;&amp;&quot;circle&quot;!==a.marker.symbol,M=m(),S=m(),E=m(),L=m(),C={fill:M,line:S,circle:E,symbol:L};if(!x)return C;if((b||_)&amp;&amp;(r=o.calcTraceToLineCoords(e)),b&amp;&amp;(M.geojson=o.makePolygon(r),M.layout.visibility=&quot;visible&quot;,i.extendFlat(M.paint,{&quot;fill-color&quot;:a.fillcolor})),_&amp;&amp;(S.geojson=o.makeLine(r),S.layout.visibility=&quot;visible&quot;,i.extendFlat(S.paint,{&quot;line-width&quot;:a.line.width,&quot;line-color&quot;:a.line.color,&quot;line-opacity&quot;:a.opacity})),k){var P=function(t){var e,r,a,o,u=t[0].trace,f=u.marker,h=u.selectedpoints,p=i.isArrayOrTypedArray(f.color),d=i.isArrayOrTypedArray(f.size),m=i.isArrayOrTypedArray(f.opacity);function g(t){return u.opacity*t}p&amp;&amp;(r=s.hasColorscale(u,&quot;marker&quot;)?s.makeColorScaleFuncFromTrace(f):i.identity);d&amp;&amp;(a=c(u));m&amp;&amp;(o=function(t){return g(n(t)?+i.constrain(t,0,1):0)});var v,x=[];for(e=0;e&lt;t.length;e++){var b=t[e],_=b.lonlat;if(!y(_)){var w={};r&amp;&amp;(w.mcc=b.mcc=r(b.mc)),a&amp;&amp;(w.mrc=b.mrc=a(b.ms)),o&amp;&amp;(w.mo=o(b.mo)),h&amp;&amp;(w.selected=b.selected||0),x.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:_},properties:w})}}if(h)for(v=l.makeSelectedPointStyleFns(u),e=0;e&lt;x.length;e++){var T=x[e].properties;v.selectedOpacityFn&amp;&amp;(T.mo=g(v.selectedOpacityFn(T))),v.selectedColorFn&amp;&amp;(T.mcc=v.selectedColorFn(T)),v.selectedSizeFn&amp;&amp;(T.mrc=v.selectedSizeFn(T))}return{geojson:{type:&quot;FeatureCollection&quot;,features:x},mcc:p||v&amp;&amp;v.selectedColorFn?{type:&quot;identity&quot;,property:&quot;mcc&quot;}:f.color,mrc:d||v&amp;&amp;v.selectedSizeFn?{type:&quot;identity&quot;,property:&quot;mrc&quot;}:(k=f.size,k/2),mo:m||v&amp;&amp;v.selectedOpacityFn?{type:&quot;identity&quot;,property:&quot;mo&quot;}:g(f.opacity)};var k}(e);E.geojson=P.geojson,E.layout.visibility=&quot;visible&quot;,i.extendFlat(E.paint,{&quot;circle-color&quot;:P.mcc,&quot;circle-radius&quot;:P.mrc,&quot;circle-opacity&quot;:P.mo})}if((A||T)&amp;&amp;(L.geojson=function(t,e){for(var r=e._fullLayout,n=t[0].trace,a=n.marker||{},o=a.symbol,s=a.angle,l=&quot;circle&quot;!==o?g(o):v,c=&quot;auto&quot;!==s?g(s,!0):v,f=u.hasText(n)?g(n.text):v,m=[],x=0;x&lt;t.length;x++){var b=t[x];if(!y(b.lonlat)){var _,w=n.texttemplate;if(w){var T=Array.isArray(w)?w[x]||&quot;&quot;:w,k=n._module.formatLabels(b,n,r),A={};h(A,n,b.i);var M=n._meta||{};_=i.texttemplateString(T,k,r._d3locale,A,b,M)}else _=f(x);_&amp;&amp;(_=_.replace(p,&quot;&quot;).replace(d,&quot;\n&quot;)),m.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:b.lonlat},properties:{symbol:l(x),angle:c(x),text:_}})}}return{type:&quot;FeatureCollection&quot;,features:m}}(e,t),i.extendFlat(L.layout,{visibility:&quot;visible&quot;,&quot;icon-image&quot;:&quot;{symbol}-15&quot;,&quot;text-field&quot;:&quot;{text}&quot;}),A&amp;&amp;(i.extendFlat(L.layout,{&quot;icon-size&quot;:a.marker.size/10}),&quot;angle&quot;in a.marker&amp;&amp;&quot;auto&quot;!==a.marker.angle&amp;&amp;i.extendFlat(L.layout,{&quot;icon-rotate&quot;:{type:&quot;identity&quot;,property:&quot;angle&quot;},&quot;icon-rotation-alignment&quot;:&quot;map&quot;}),L.layout[&quot;icon-allow-overlap&quot;]=a.marker.allowoverlap,i.extendFlat(L.paint,{&quot;icon-opacity&quot;:a.opacity*a.marker.opacity,&quot;icon-color&quot;:a.marker.color})),T)){var I=(a.marker||{}).size,O=f(a.textposition,I);i.extendFlat(L.layout,{&quot;text-size&quot;:a.textfont.size,&quot;text-anchor&quot;:O.anchor,&quot;text-offset&quot;:O.offset}),i.extendFlat(L.paint,{&quot;text-color&quot;:a.textfont.color,&quot;text-opacity&quot;:a.opacity})}return C}},{&quot;../../components/colorscale&quot;:378,&quot;../../components/drawing&quot;:388,&quot;../../components/fx/helpers&quot;:402,&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../../lib/geojson_utils&quot;:497,&quot;../../lib/svg_text_utils&quot;:529,&quot;../../plots/mapbox/convert_text_opts&quot;:612,&quot;../scatter/make_bubble_size_func&quot;:943,&quot;../scatter/subtypes&quot;:951,&quot;fast-isnumeric&quot;:190}],993:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/text_defaults&quot;),l=t(&quot;../scatter/fillcolor_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}if(function(t,e,r){var n=r(&quot;lon&quot;)||[],i=r(&quot;lat&quot;)||[],a=Math.min(n.length,i.length);return e._length=a,a}(0,e,f)){if(f(&quot;text&quot;),f(&quot;texttemplate&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),f(&quot;below&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,u,f,{noDash:!0}),f(&quot;connectgaps&quot;)),i.hasMarkers(e)){a(t,e,r,u,f,{noLine:!0}),f(&quot;marker.allowoverlap&quot;),f(&quot;marker.angle&quot;);var h=e.marker;&quot;circle&quot;!==h.symbol&amp;&amp;(n.isArrayOrTypedArray(h.size)&amp;&amp;(h.size=h.size[0]),n.isArrayOrTypedArray(h.color)&amp;&amp;(h.color=h.color[0]))}i.hasText(e)&amp;&amp;s(t,e,u,f,{noSelect:!0}),f(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1}},{&quot;../../lib&quot;:503,&quot;../scatter/fillcolor_defaults&quot;:934,&quot;../scatter/line_defaults&quot;:939,&quot;../scatter/marker_defaults&quot;:945,&quot;../scatter/subtypes&quot;:951,&quot;../scatter/text_defaults&quot;:952,&quot;./attributes&quot;:991}],994:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t}},{}],995:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.subplot]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=n.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=n.tickText(a,a.c2l(o[1]),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:554}],996:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/get_trace_color&quot;),o=i.fillText,s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r){if(!t.hovertemplate){var n=(e.hi||t.hoverinfo).split(&quot;+&quot;),i=-1!==n.indexOf(&quot;all&quot;),a=-1!==n.indexOf(&quot;lon&quot;),s=-1!==n.indexOf(&quot;lat&quot;),l=e.lonlat,c=[];return i||a&amp;&amp;s?c.push(&quot;(&quot;+u(l[1])+&quot;, &quot;+u(l[0])+&quot;)&quot;):a?c.push(r.lon+u(l[0])):s&amp;&amp;c.push(r.lat+u(l[1])),(i||-1!==n.indexOf(&quot;text&quot;))&amp;&amp;o(e,t,c),c.join(&quot;&lt;br&gt;&quot;)}function u(t){return t+&quot;\xb0&quot;}}e.exports={hoverPoints:function(t,e,r){var o=t.cd,c=o[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=360*(e&gt;=0?Math.floor((e+180)/360):Math.ceil((e-180)/360)),d=e-p;if(n.getClosest(o,(function(t){var e=t.lonlat;if(e[0]===s)return 1/0;var n=i.modHalf(e[0],360),a=e[1],o=h.project([n,a]),l=o.x-u.c2p([d,a]),c=o.y-f.c2p([n,r]),p=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(l*l+c*c)-p,1-3/p)}),t),!1!==t.index){var m=o[t.index],g=m.lonlat,v=[i.modHalf(g[0],360)+p,g[1]],y=u.c2p(v),x=f.c2p(v),b=m.mrc||1;t.x0=y-b,t.x1=y+b,t.y0=x-b,t.y1=x+b;var _={};_[c.subplot]={_subplot:h};var w=c._module.formatLabels(m,c,_);return t.lonLabel=w.lonLabel,t.latLabel=w.latLabel,t.color=a(c,m),t.extraText=l(c,m,o[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}},getExtraText:l}},{&quot;../../components/fx&quot;:406,&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../scatter/get_trace_color&quot;:936}],997:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;../scattergeo/calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),styleOnSelect:function(t,e){e&amp;&amp;e[0].trace._glTrace.update(e)},moduleType:&quot;trace&quot;,name:&quot;scattermapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/mapbox&quot;:613,&quot;../scatter/marker_colorbar&quot;:944,&quot;../scattergeo/calc&quot;:969,&quot;./attributes&quot;:991,&quot;./defaults&quot;:993,&quot;./event_data&quot;:994,&quot;./format_labels&quot;:995,&quot;./hover&quot;:996,&quot;./plot&quot;:998,&quot;./select&quot;:999}],998:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;),i=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix,a=[&quot;fill&quot;,&quot;line&quot;,&quot;circle&quot;,&quot;symbol&quot;];function o(t,e){this.type=&quot;scattermapbox&quot;,this.subplot=t,this.uid=e,this.sourceIds={fill:&quot;source-&quot;+e+&quot;-fill&quot;,line:&quot;source-&quot;+e+&quot;-line&quot;,circle:&quot;source-&quot;+e+&quot;-circle&quot;,symbol:&quot;source-&quot;+e+&quot;-symbol&quot;},this.layerIds={fill:i+e+&quot;-fill&quot;,line:i+e+&quot;-line&quot;,circle:i+e+&quot;-circle&quot;,symbol:i+e+&quot;-symbol&quot;},this.below=null}var s=o.prototype;s.addSource=function(t,e){this.subplot.map.addSource(this.sourceIds[t],{type:&quot;geojson&quot;,data:e.geojson})},s.setSourceData=function(t,e){this.subplot.map.getSource(this.sourceIds[t]).setData(e.geojson)},s.addLayer=function(t,e,r){this.subplot.addLayer({type:t,id:this.layerIds[t],source:this.sourceIds[t],layout:e.layout,paint:e.paint},r)},s.update=function(t){var e,r,i,o=this.subplot,s=o.map,l=n(o.gd,t),c=o.belowLookup[&quot;trace-&quot;+this.uid];if(c!==this.below){for(e=a.length-1;e&gt;=0;e--)r=a[e],s.removeLayer(this.layerIds[r]);for(e=0;e&lt;a.length;e++)i=l[r=a[e]],this.addLayer(r,i,c);this.below=c}for(e=0;e&lt;a.length;e++)i=l[r=a[e]],o.setOptions(this.layerIds[r],&quot;setLayoutProperty&quot;,i.layout),&quot;visible&quot;===i.layout.visibility&amp;&amp;(this.setSourceData(r,i),o.setOptions(this.layerIds[r],&quot;setPaintProperty&quot;,i.paint));t[0].trace._glTrace=this},s.dispose=function(){for(var t=this.subplot.map,e=a.length-1;e&gt;=0;e--){var r=a[e];t.removeLayer(this.layerIds[r]),t.removeSource(this.sourceIds[r])}},e.exports=function(t,e){for(var r=e[0].trace,i=new o(t,r.uid),s=n(t.gd,e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid],c=0;c&lt;a.length;c++){var u=a[c],f=s[u];i.addSource(u,f),i.addLayer(u,f,l)}return e[0].trace._glTrace=i,i}},{&quot;../../plots/mapbox/constants&quot;:611,&quot;./convert&quot;:992}],999:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e){var r,o=t.cd,s=t.xaxis,l=t.yaxis,c=[],u=o[0].trace;if(!i.hasMarkers(u))return[];if(!1===e)for(r=0;r&lt;o.length;r++)o[r].selected=0;else for(r=0;r&lt;o.length;r++){var f=o[r],h=f.lonlat;if(h[0]!==a){var p=[n.modHalf(h[0],360),h[1]],d=[s.c2p(p),l.c2p(p)];e.contains(d,null,r,t)?(c.push({pointNumber:r,lon:h[0],lat:h[1]}),f.selected=1):f.selected=0}}return c}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../scatter/subtypes&quot;:951}],1e3:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../scatter/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=o.line;e.exports={mode:o.mode,r:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},theta:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},r0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dr:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},theta0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dtheta:{valType:&quot;number&quot;,editType:&quot;calc&quot;},thetaunit:{valType:&quot;enumerated&quot;,values:[&quot;radians&quot;,&quot;degrees&quot;,&quot;gradians&quot;],dflt:&quot;degrees&quot;,editType:&quot;calc+clearAxisTypes&quot;},text:o.text,texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]}),hovertext:o.hovertext,line:{color:l.color,width:l.width,dash:l.dash,shape:a({},l.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:l.smoothing,editType:&quot;calc&quot;},connectgaps:o.connectgaps,marker:o.marker,cliponaxis:a({},o.cliponaxis,{dflt:!1}),textposition:o.textposition,textfont:o.textfont,fill:a({},o.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:o.fillcolor,hoverinfo:a({},s.hoverinfo,{flags:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:o.hoveron,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{&quot;../../lib/extend&quot;:493,&quot;../../plots/attributes&quot;:550,&quot;../../plots/template_attributes&quot;:633,&quot;../scatter/attributes&quot;:926}],1001:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../scatter/colorscale_calc&quot;),s=t(&quot;../scatter/arrays_to_calcdata&quot;),l=t(&quot;../scatter/calc_selection&quot;),c=t(&quot;../scatter/calc&quot;).calcMarkerSize;e.exports=function(t,e){for(var r=t._fullLayout,u=e.subplot,f=r[u].radialaxis,h=r[u].angularaxis,p=f.makeCalcdata(e,&quot;r&quot;),d=h.makeCalcdata(e,&quot;theta&quot;),m=e._length,g=new Array(m),v=0;v&lt;m;v++){var y=p[v],x=d[v],b=g[v]={};n(y)&amp;&amp;n(x)?(b.r=y,b.theta=x):b.r=i}var _=c(e,m);return e._extremes.x=a.findExtremes(f,p,{ppad:_}),o(t,e),s(g,e),l(g,e),g}},{&quot;../../constants/numerical&quot;:479,&quot;../../plots/cartesian/axes&quot;:554,&quot;../scatter/arrays_to_calcdata&quot;:925,&quot;../scatter/calc&quot;:927,&quot;../scatter/calc_selection&quot;:928,&quot;../scatter/colorscale_calc&quot;:929,&quot;fast-isnumeric&quot;:190}],1002:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/line_shape_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;../scatter/fillcolor_defaults&quot;),u=t(&quot;../scatter/constants&quot;).PTS_LINESONLY,f=t(&quot;./attributes&quot;);function h(t,e,r,n){var i,a=n(&quot;r&quot;),o=n(&quot;theta&quot;);if(a)o?i=Math.min(a.length,o.length):(i=a.length,n(&quot;theta0&quot;),n(&quot;dtheta&quot;));else{if(!o)return 0;i=e.theta.length,n(&quot;r0&quot;),n(&quot;dr&quot;)}return e._length=i,i}e.exports={handleRThetaDefaults:h,supplyDefaults:function(t,e,r,p){function d(r,i){return n.coerce(t,e,f,r,i)}var m=h(t,e,p,d);if(m){d(&quot;thetaunit&quot;),d(&quot;mode&quot;,m&lt;u?&quot;lines+markers&quot;:&quot;lines&quot;),d(&quot;text&quot;),d(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;d(&quot;hovertemplate&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,p,d),s(t,e,d),d(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;a(t,e,r,p,d,{gradient:!0}),i.hasText(e)&amp;&amp;(d(&quot;texttemplate&quot;),l(t,e,p,d));var g=[];(i.hasMarkers(e)||i.hasText(e))&amp;&amp;(d(&quot;cliponaxis&quot;),d(&quot;marker.maxdisplayed&quot;),g.push(&quot;points&quot;)),d(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(c(t,e,r,d),i.hasLines(e)||s(t,e,d)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||g.push(&quot;fills&quot;),d(&quot;hoveron&quot;,g.join(&quot;+&quot;)||&quot;points&quot;),n.coerceSelectionMarkerOpacity(e,d)}else e.visible=!1}}},{&quot;../../lib&quot;:503,&quot;../scatter/constants&quot;:930,&quot;../scatter/fillcolor_defaults&quot;:934,&quot;../scatter/line_defaults&quot;:939,&quot;../scatter/line_shape_defaults&quot;:941,&quot;../scatter/marker_defaults&quot;:945,&quot;../scatter/subtypes&quot;:951,&quot;../scatter/text_defaults&quot;:952,&quot;./attributes&quot;:1e3}],1003:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var a,o,s={},l=r[e.subplot]._subplot;l?(a=l.radialAxis,o=l.angularAxis):(a=(l=r[e.subplot]).radialaxis,o=l.angularaxis);var c=a.c2l(t.r);s.rLabel=i.tickText(a,c,!0).text;var u=&quot;degrees&quot;===o.thetaunit?n.rad2deg(t.theta):t.theta;return s.thetaLabel=i.tickText(o,u,!0).text,s}},{&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554}],1004:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;);function i(t,e,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle=&quot;r&quot;,a._hovertitle=&quot;\u03b8&quot;;var o={};o[e.subplot]={_subplot:r};var s=e._module.formatLabels(t,e,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var l=t.hi||e.hoverinfo,c=[];function u(t,e){c.push(t._hovertitle+&quot;: &quot;+e)}if(!e.hovertemplate){var f=l.split(&quot;+&quot;);-1!==f.indexOf(&quot;all&quot;)&amp;&amp;(f=[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]),-1!==f.indexOf(&quot;r&quot;)&amp;&amp;u(i,n.rLabel),-1!==f.indexOf(&quot;theta&quot;)&amp;&amp;u(a,n.thetaLabel),-1!==f.indexOf(&quot;text&quot;)&amp;&amp;n.text&amp;&amp;(c.push(n.text),delete n.text),n.extraText=c.join(&quot;&lt;br&gt;&quot;)}}e.exports={hoverPoints:function(t,e,r,a){var o=n(t,e,r,a);if(o&amp;&amp;!1!==o[0].index){var s=o[0];if(void 0===s.index)return o;var l=t.subplot,c=s.cd[s.index],u=s.trace;if(l.isPtInside(c))return s.xLabelVal=void 0,s.yLabelVal=void 0,i(c,u,l,s),s.hovertemplate=u.hovertemplate,o}},makeHoverPointText:i}},{&quot;../scatter/hover&quot;:937}],1005:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;scatterpolar&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;polar&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;../scatter/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:622,&quot;../scatter/marker_colorbar&quot;:944,&quot;../scatter/select&quot;:948,&quot;../scatter/style&quot;:950,&quot;./attributes&quot;:1e3,&quot;./calc&quot;:1001,&quot;./defaults&quot;:1002,&quot;./format_labels&quot;:1003,&quot;./hover&quot;:1004,&quot;./plot&quot;:1006}],1006:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r){for(var a=e.layers.frontplot.select(&quot;g.scatterlayer&quot;),o={xaxis:e.xaxis,yaxis:e.yaxis,plot:e.framework,layerClipId:e._hasClipOnAxisFalse?e.clipIds.forTraces:null},s=e.radialAxis,l=e.angularAxis,c=0;c&lt;r.length;c++)for(var u=r[c],f=0;f&lt;u.length;f++){var h=u[f],p=h.r;if(p===i)h.x=h.y=i;else{var d=s.c2g(p),m=l.c2g(h.theta);h.x=d*Math.cos(m),h.y=d*Math.sin(m)}}n(t,o,r,a)}},{&quot;../../constants/numerical&quot;:479,&quot;../scatter/plot&quot;:947}],1007:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatterpolar/attributes&quot;),i=t(&quot;../scattergl/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs;e.exports={mode:n.mode,r:n.r,theta:n.theta,r0:n.r0,dr:n.dr,theta0:n.theta0,dtheta:n.dtheta,thetaunit:n.thetaunit,text:n.text,texttemplate:a({editType:&quot;plot&quot;},{keys:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]}),hovertext:n.hovertext,hovertemplate:n.hovertemplate,line:i.line,connectgaps:i.connectgaps,marker:i.marker,fill:i.fill,fillcolor:i.fillcolor,textposition:i.textposition,textfont:i.textfont,hoverinfo:n.hoverinfo,selected:n.selected,unselected:n.unselected}},{&quot;../../plots/template_attributes&quot;:633,&quot;../scattergl/attributes&quot;:978,&quot;../scatterpolar/attributes&quot;:1e3}],1008:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/colorscale_calc&quot;),i=t(&quot;../scatter/calc&quot;).calcMarkerSize,a=t(&quot;../scattergl/convert&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e){var r=t._fullLayout,l=e.subplot,c=r[l].radialaxis,u=r[l].angularaxis,f=e._r=c.makeCalcdata(e,&quot;r&quot;),h=e._theta=u.makeCalcdata(e,&quot;theta&quot;),p=e._length,d={};p&lt;f.length&amp;&amp;(f=f.slice(0,p)),p&lt;h.length&amp;&amp;(h=h.slice(0,p)),d.r=f,d.theta=h,n(t,e);var m,g=d.opts=a.style(t,e);return p&lt;s?m=i(e,p):g.marker&amp;&amp;(m=2*(g.marker.sizeAvg||Math.max(g.marker.size,3))),e._extremes.x=o.findExtremes(c,f,{ppad:m}),[{x:!1,y:!1,t:d,trace:e}]}},{&quot;../../plots/cartesian/axes&quot;:554,&quot;../scatter/calc&quot;:927,&quot;../scatter/colorscale_calc&quot;:929,&quot;../scattergl/constants&quot;:980,&quot;../scattergl/convert&quot;:981}],1009:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatterpolar/defaults&quot;).handleRThetaDefaults,o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;../scatter/fillcolor_defaults&quot;),u=t(&quot;../scatter/constants&quot;).PTS_LINESONLY,f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d=a(t,e,h,p);d?(p(&quot;thetaunit&quot;),p(&quot;mode&quot;,d&lt;u?&quot;lines+markers&quot;:&quot;lines&quot;),p(&quot;text&quot;),p(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;p(&quot;hovertemplate&quot;),i.hasLines(e)&amp;&amp;(s(t,e,r,h,p),p(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;o(t,e,r,h,p),i.hasText(e)&amp;&amp;(p(&quot;texttemplate&quot;),l(t,e,h,p)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;c(t,e,r,p),n.coerceSelectionMarkerOpacity(e,p)):e.visible=!1}},{&quot;../../lib&quot;:503,&quot;../scatter/constants&quot;:930,&quot;../scatter/fillcolor_defaults&quot;:934,&quot;../scatter/line_defaults&quot;:939,&quot;../scatter/marker_defaults&quot;:945,&quot;../scatter/subtypes&quot;:951,&quot;../scatter/text_defaults&quot;:952,&quot;../scatterpolar/defaults&quot;:1002,&quot;./attributes&quot;:1007}],1010:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatterpolar/format_labels&quot;);e.exports=function(t,e,r){var i=t.i;return&quot;r&quot;in t||(t.r=e._r[i]),&quot;theta&quot;in t||(t.theta=e._theta[i]),n(t,e,r)}},{&quot;../scatterpolar/format_labels&quot;:1003}],1011:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scattergl/hover&quot;),i=t(&quot;../scatterpolar/hover&quot;).makeHoverPointText;e.exports={hoverPoints:function(t,e,r,a){var o=t.cd[0].t,s=o.r,l=o.theta,c=n.hoverPoints(t,e,r,a);if(c&amp;&amp;!1!==c[0].index){var u=c[0];if(void 0===u.index)return c;var f=t.subplot,h=u.cd[u.index],p=u.trace;if(h.r=s[u.index],h.theta=l[u.index],f.isPtInside(h))return u.xLabelVal=void 0,u.yLabelVal=void 0,i(h,p,f,u),c}}}},{&quot;../scattergl/hover&quot;:986,&quot;../scatterpolar/hover&quot;:1004}],1012:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;scatterpolargl&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;polar&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;../scattergl/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:622,&quot;../scatter/marker_colorbar&quot;:944,&quot;../scattergl/select&quot;:990,&quot;./attributes&quot;:1007,&quot;./calc&quot;:1008,&quot;./defaults&quot;:1009,&quot;./format_labels&quot;:1010,&quot;./hover&quot;:1011,&quot;./plot&quot;:1013}],1013:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/point-cluster&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../scattergl/plot&quot;),o=t(&quot;../scattergl/scene_update&quot;),s=t(&quot;../scattergl/convert&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e,r){if(r.length){var u=e.radialAxis,f=e.angularAxis,h=o(t,e);return r.forEach((function(r){if(r&amp;&amp;r[0]&amp;&amp;r[0].trace){var a,o=r[0],p=o.trace,d=o.t,m=p._length,g=d.r,v=d.theta,y=d.opts,x=g.slice(),b=v.slice();for(a=0;a&lt;g.length;a++)e.isPtInside({r:g[a],theta:v[a]})||(x[a]=NaN,b[a]=NaN);var _=new Array(2*m),w=Array(m),T=Array(m);for(a=0;a&lt;m;a++){var k,A,M=x[a];if(i(M)){var S=u.c2g(M),E=f.c2g(b[a],p.thetaunit);k=S*Math.cos(E),A=S*Math.sin(E)}else k=A=NaN;w[a]=_[2*a]=k,T[a]=_[2*a+1]=A}d.tree=n(_),y.marker&amp;&amp;m&gt;=c&amp;&amp;(y.marker.cluster=d.tree),y.marker&amp;&amp;(y.markerSel.positions=y.markerUnsel.positions=y.marker.positions=_),y.line&amp;&amp;_.length&gt;1&amp;&amp;l.extendFlat(y.line,s.linePositions(t,p,_)),y.text&amp;&amp;(l.extendFlat(y.text,{positions:_},s.textPosition(t,p,y.text,y.marker)),l.extendFlat(y.textSel,{positions:_},s.textPosition(t,p,y.text,y.markerSel)),l.extendFlat(y.textUnsel,{positions:_},s.textPosition(t,p,y.text,y.markerUnsel))),y.fill&amp;&amp;!h.fill2d&amp;&amp;(h.fill2d=!0),y.marker&amp;&amp;!h.scatter2d&amp;&amp;(h.scatter2d=!0),y.line&amp;&amp;!h.line2d&amp;&amp;(h.line2d=!0),y.text&amp;&amp;!h.glText&amp;&amp;(h.glText=!0),h.lineOptions.push(y.line),h.fillOptions.push(y.fill),h.markerOptions.push(y.marker),h.markerSelectedOptions.push(y.markerSel),h.markerUnselectedOptions.push(y.markerUnsel),h.textOptions.push(y.text),h.textSelectedOptions.push(y.textSel),h.textUnselectedOptions.push(y.textUnsel),h.selectBatch.push([]),h.unselectBatch.push([]),d.x=w,d.y=T,d.rawx=w,d.rawy=T,d.r=g,d.theta=v,d.positions=_,d._scene=h,d.index=h.count,h.count++}})),a(t,e,r)}}},{&quot;../../lib&quot;:503,&quot;../scattergl/constants&quot;:980,&quot;../scattergl/convert&quot;:981,&quot;../scattergl/plot&quot;:988,&quot;../scattergl/scene_update&quot;:989,&quot;@plotly/point-cluster&quot;:59,&quot;fast-isnumeric&quot;:190}],1014:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../scatter/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=o.line;e.exports={mode:o.mode,real:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},imag:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},text:o.text,texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;real&quot;,&quot;imag&quot;,&quot;text&quot;]}),hovertext:o.hovertext,line:{color:l.color,width:l.width,dash:l.dash,shape:a({},l.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:l.smoothing,editType:&quot;calc&quot;},connectgaps:o.connectgaps,marker:o.marker,cliponaxis:a({},o.cliponaxis,{dflt:!1}),textposition:o.textposition,textfont:o.textfont,fill:a({},o.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:o.fillcolor,hoverinfo:a({},s.hoverinfo,{flags:[&quot;real&quot;,&quot;imag&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:o.hoveron,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{&quot;../../lib/extend&quot;:493,&quot;../../plots/attributes&quot;:550,&quot;../../plots/template_attributes&quot;:633,&quot;../scatter/attributes&quot;:926}],1015:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../scatter/colorscale_calc&quot;),o=t(&quot;../scatter/arrays_to_calcdata&quot;),s=t(&quot;../scatter/calc_selection&quot;),l=t(&quot;../scatter/calc&quot;).calcMarkerSize;e.exports=function(t,e){for(var r=t._fullLayout,c=e.subplot,u=r[c].realaxis,f=r[c].imaginaryaxis,h=u.makeCalcdata(e,&quot;real&quot;),p=f.makeCalcdata(e,&quot;imag&quot;),d=e._length,m=new Array(d),g=0;g&lt;d;g++){var v=h[g],y=p[g],x=m[g]={};n(v)&amp;&amp;n(y)?(x.real=v,x.imag=y):x.real=i}return l(e,d),a(t,e),o(m,e),s(m,e),m}},{&quot;../../constants/numerical&quot;:479,&quot;../scatter/arrays_to_calcdata&quot;:925,&quot;../scatter/calc&quot;:927,&quot;../scatter/calc_selection&quot;:928,&quot;../scatter/colorscale_calc&quot;:929,&quot;fast-isnumeric&quot;:190}],1016:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/line_shape_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;../scatter/fillcolor_defaults&quot;),u=t(&quot;../scatter/constants&quot;).PTS_LINESONLY,f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d=function(t,e,r,n){var i,a=n(&quot;real&quot;),o=n(&quot;imag&quot;);a&amp;&amp;o&amp;&amp;(i=Math.min(a.length,o.length));return e._length=i,i}(0,e,0,p);if(d){p(&quot;mode&quot;,d&lt;u?&quot;lines+markers&quot;:&quot;lines&quot;),p(&quot;text&quot;),p(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;p(&quot;hovertemplate&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,h,p),s(t,e,p),p(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;a(t,e,r,h,p,{gradient:!0}),i.hasText(e)&amp;&amp;(p(&quot;texttemplate&quot;),l(t,e,h,p));var m=[];(i.hasMarkers(e)||i.hasText(e))&amp;&amp;(p(&quot;cliponaxis&quot;),p(&quot;marker.maxdisplayed&quot;),m.push(&quot;points&quot;)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(c(t,e,r,p),i.hasLines(e)||s(t,e,p)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||m.push(&quot;fills&quot;),p(&quot;hoveron&quot;,m.join(&quot;+&quot;)||&quot;points&quot;),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{&quot;../../lib&quot;:503,&quot;../scatter/constants&quot;:930,&quot;../scatter/fillcolor_defaults&quot;:934,&quot;../scatter/line_defaults&quot;:939,&quot;../scatter/line_shape_defaults&quot;:941,&quot;../scatter/marker_defaults&quot;:945,&quot;../scatter/subtypes&quot;:951,&quot;../scatter/text_defaults&quot;:952,&quot;./attributes&quot;:1014}],1017:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.subplot]._subplot;return i.realLabel=n.tickText(a.radialAxis,t.real,!0).text,i.imagLabel=n.tickText(a.angularAxis,t.imag,!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:554}],1018:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;);function i(t,e,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle=&quot;real&quot;,a._hovertitle=&quot;imag&quot;;var o={};o[e.subplot]={_subplot:r};var s=e._module.formatLabels(t,e,o);n.realLabel=s.realLabel,n.imagLabel=s.imagLabel;var l=t.hi||e.hoverinfo,c=[];function u(t,e){c.push(t._hovertitle+&quot;: &quot;+e)}if(!e.hovertemplate){var f=l.split(&quot;+&quot;);-1!==f.indexOf(&quot;all&quot;)&amp;&amp;(f=[&quot;real&quot;,&quot;imag&quot;,&quot;text&quot;]),-1!==f.indexOf(&quot;real&quot;)&amp;&amp;u(i,n.realLabel),-1!==f.indexOf(&quot;imag&quot;)&amp;&amp;u(a,n.imagLabel),-1!==f.indexOf(&quot;text&quot;)&amp;&amp;n.text&amp;&amp;(c.push(n.text),delete n.text),n.extraText=c.join(&quot;&lt;br&gt;&quot;)}}e.exports={hoverPoints:function(t,e,r,a){var o=n(t,e,r,a);if(o&amp;&amp;!1!==o[0].index){var s=o[0];if(void 0===s.index)return o;var l=t.subplot,c=s.cd[s.index],u=s.trace;if(l.isPtInside(c))return s.xLabelVal=void 0,s.yLabelVal=void 0,i(c,u,l,s),s.hovertemplate=u.hovertemplate,o}},makeHoverPointText:i}},{&quot;../scatter/hover&quot;:937}],1019:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;scattersmith&quot;,basePlotModule:t(&quot;../../plots/smith&quot;),categories:[&quot;smith&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;../scatter/select&quot;),meta:{}}},{&quot;../../plots/smith&quot;:629,&quot;../scatter/marker_colorbar&quot;:944,&quot;../scatter/select&quot;:948,&quot;../scatter/style&quot;:950,&quot;./attributes&quot;:1014,&quot;./calc&quot;:1015,&quot;./defaults&quot;:1016,&quot;./format_labels&quot;:1017,&quot;./hover&quot;:1018,&quot;./plot&quot;:1020}],1020:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../plots/smith/helpers&quot;).smith;e.exports=function(t,e,r){for(var o=e.layers.frontplot.select(&quot;g.scatterlayer&quot;),s={xaxis:e.xaxis,yaxis:e.yaxis,plot:e.framework,layerClipId:e._hasClipOnAxisFalse?e.clipIds.forTraces:null},l=0;l&lt;r.length;l++)for(var c=r[l],u=0;u&lt;c.length;u++){var f=c[u],h=f.real;if(h===i)f.x=f.y=i;else{var p=a([h,f.imag]);f.x=p[0],f.y=p[1]}}n(t,s,r,o)}},{&quot;../../constants/numerical&quot;:479,&quot;../../plots/smith/helpers&quot;:628,&quot;../scatter/plot&quot;:947}],1021:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scatter/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../lib/extend&quot;).extendFlat,u=a.marker,f=a.line,h=u.line;e.exports={a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},c:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sum:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;calc&quot;},mode:c({},a.mode,{dflt:&quot;markers&quot;}),text:c({},a.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;text&quot;]}),hovertext:c({},a.hovertext,{}),line:{color:f.color,width:f.width,dash:l,shape:c({},f.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:f.smoothing,editType:&quot;calc&quot;},connectgaps:a.connectgaps,cliponaxis:a.cliponaxis,fill:c({},a.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:a.fillcolor,marker:c({symbol:u.symbol,opacity:u.opacity,maxdisplayed:u.maxdisplayed,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,line:c({width:h.width,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),gradient:u.gradient,editType:&quot;calc&quot;},s(&quot;marker&quot;)),textfont:a.textfont,textposition:a.textposition,selected:a.selected,unselected:a.unselected,hoverinfo:c({},o.hoverinfo,{flags:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:a.hoveron,hovertemplate:n()}},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../components/drawing/attributes&quot;:387,&quot;../../lib/extend&quot;:493,&quot;../../plots/attributes&quot;:550,&quot;../../plots/template_attributes&quot;:633,&quot;../scatter/attributes&quot;:926}],1022:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scatter/arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../scatter/calc&quot;).calcMarkerSize,l=[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],c={a:[&quot;b&quot;,&quot;c&quot;],b:[&quot;a&quot;,&quot;c&quot;],c:[&quot;a&quot;,&quot;b&quot;]};e.exports=function(t,e){var r,u,f,h,p,d,m=t._fullLayout[e.subplot].sum,g=e.sum||m,v={a:e.a,b:e.b,c:e.c};for(r=0;r&lt;l.length;r++)if(!v[f=l[r]]){for(p=v[c[f][0]],d=v[c[f][1]],h=new Array(p.length),u=0;u&lt;p.length;u++)h[u]=g-p[u]-d[u];v[f]=h}var y,x,b,_,w,T,k=e._length,A=new Array(k);for(r=0;r&lt;k;r++)y=v.a[r],x=v.b[r],b=v.c[r],n(y)&amp;&amp;n(x)&amp;&amp;n(b)?(1!==(_=m/((y=+y)+(x=+x)+(b=+b)))&amp;&amp;(y*=_,x*=_,b*=_),T=y,w=b-x,A[r]={x:w,y:T,a:y,b:x,c:b}):A[r]={x:!1,y:!1};return s(e,k),i(t,e),a(A,e),o(A,e),A}},{&quot;../scatter/arrays_to_calcdata&quot;:925,&quot;../scatter/calc&quot;:927,&quot;../scatter/calc_selection&quot;:928,&quot;../scatter/colorscale_calc&quot;:929,&quot;fast-isnumeric&quot;:190}],1023:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/constants&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/line_shape_defaults&quot;),c=t(&quot;../scatter/text_defaults&quot;),u=t(&quot;../scatter/fillcolor_defaults&quot;),f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d,m=p(&quot;a&quot;),g=p(&quot;b&quot;),v=p(&quot;c&quot;);if(m?(d=m.length,g?(d=Math.min(d,g.length),v&amp;&amp;(d=Math.min(d,v.length))):d=v?Math.min(d,v.length):0):g&amp;&amp;v&amp;&amp;(d=Math.min(g.length,v.length)),d){e._length=d,p(&quot;sum&quot;),p(&quot;text&quot;),p(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;p(&quot;hovertemplate&quot;),p(&quot;mode&quot;,d&lt;i.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;),a.hasLines(e)&amp;&amp;(s(t,e,r,h,p),l(t,e,p),p(&quot;connectgaps&quot;)),a.hasMarkers(e)&amp;&amp;o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&amp;&amp;(p(&quot;texttemplate&quot;),c(t,e,h,p));var y=[];(a.hasMarkers(e)||a.hasText(e))&amp;&amp;(p(&quot;cliponaxis&quot;),p(&quot;marker.maxdisplayed&quot;),y.push(&quot;points&quot;)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||y.push(&quot;fills&quot;),p(&quot;hoveron&quot;,y.join(&quot;+&quot;)||&quot;points&quot;),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{&quot;../../lib&quot;:503,&quot;../scatter/constants&quot;:930,&quot;../scatter/fillcolor_defaults&quot;:934,&quot;../scatter/line_defaults&quot;:939,&quot;../scatter/line_shape_defaults&quot;:941,&quot;../scatter/marker_defaults&quot;:945,&quot;../scatter/subtypes&quot;:951,&quot;../scatter/text_defaults&quot;:952,&quot;./attributes&quot;:1021}],1024:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){if(e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),n[i]){var a=n[i];t.a=a.a,t.b=a.b,t.c=a.c}else t.a=e.a,t.b=e.b,t.c=e.c;return t}},{}],1025:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.subplot]._subplot;return i.aLabel=n.tickText(a.aaxis,t.a,!0).text,i.bLabel=n.tickText(a.baxis,t.b,!0).text,i.cLabel=n.tickText(a.caxis,t.c,!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:554}],1026:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;);e.exports=function(t,e,r,i){var a=n(t,e,r,i);if(a&amp;&amp;!1!==a[0].index){var o=a[0];if(void 0===o.index){var s=1-o.y0/t.ya._length,l=t.xa._length,c=l*s/2,u=l-c;return o.x0=Math.max(Math.min(o.x0,u),c),o.x1=Math.max(Math.min(o.x1,u),c),a}var f=o.cd[o.index],h=o.trace,p=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var d={};d[h.subplot]={_subplot:p};var m=h._module.formatLabels(f,h,d);o.aLabel=m.aLabel,o.bLabel=m.bLabel,o.cLabel=m.cLabel;var g=f.hi||h.hoverinfo,v=[];if(!h.hovertemplate){var y=g.split(&quot;+&quot;);-1!==y.indexOf(&quot;all&quot;)&amp;&amp;(y=[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]),-1!==y.indexOf(&quot;a&quot;)&amp;&amp;x(p.aaxis,o.aLabel),-1!==y.indexOf(&quot;b&quot;)&amp;&amp;x(p.baxis,o.bLabel),-1!==y.indexOf(&quot;c&quot;)&amp;&amp;x(p.caxis,o.cLabel)}return o.extraText=v.join(&quot;&lt;br&gt;&quot;),o.hovertemplate=h.hovertemplate,a}function x(t,e){v.push(t._hovertitle+&quot;: &quot;+e)}}},{&quot;../scatter/hover&quot;:937}],1027:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../scatter/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;scatterternary&quot;,basePlotModule:t(&quot;../../plots/ternary&quot;),categories:[&quot;ternary&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/ternary&quot;:634,&quot;../scatter/marker_colorbar&quot;:944,&quot;../scatter/select&quot;:948,&quot;../scatter/style&quot;:950,&quot;./attributes&quot;:1021,&quot;./calc&quot;:1022,&quot;./defaults&quot;:1023,&quot;./event_data&quot;:1024,&quot;./format_labels&quot;:1025,&quot;./hover&quot;:1026,&quot;./plot&quot;:1028}],1028:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;);e.exports=function(t,e,r){var i=e.plotContainer;i.select(&quot;.scatterlayer&quot;).selectAll(&quot;*&quot;).remove();var a={xaxis:e.xaxis,yaxis:e.yaxis,plot:i,layerClipId:e._hasClipOnAxisFalse?e.clipIdRelative:null},o=e.layers.frontplot.select(&quot;g.scatterlayer&quot;);n(t,a,r,o)}},{&quot;../scatter/plot&quot;:947}],1029:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../scattergl/attributes&quot;),l=t(&quot;../../plots/cartesian/constants&quot;).idRegex,c=t(&quot;../../plot_api/plot_template&quot;).templatedArray,u=t(&quot;../../lib/extend&quot;).extendFlat,f=n.marker,h=f.line,p=u(i(&quot;marker.line&quot;,{editTypeOverride:&quot;calc&quot;}),{width:u({},h.width,{editType:&quot;calc&quot;}),editType:&quot;calc&quot;}),d=u(i(&quot;marker&quot;),{symbol:f.symbol,size:u({},f.size,{editType:&quot;markerSize&quot;}),sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,opacity:f.opacity,colorbar:f.colorbar,line:p,editType:&quot;calc&quot;});function m(t){return{valType:&quot;info_array&quot;,freeLength:!0,editType:&quot;calc&quot;,items:{valType:&quot;subplotid&quot;,regex:l[t],editType:&quot;plot&quot;}}}d.color.editType=d.cmin.editType=d.cmax.editType=&quot;style&quot;,e.exports={dimensions:c(&quot;dimension&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},label:{valType:&quot;string&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},axis:{type:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;],editType:&quot;calc+clearAxisTypes&quot;},matches:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},editType:&quot;calc+clearAxisTypes&quot;},editType:&quot;calc+clearAxisTypes&quot;}),text:u({},s.text,{}),hovertext:u({},s.hovertext,{}),hovertemplate:o(),xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),marker:d,xaxes:m(&quot;x&quot;),yaxes:m(&quot;y&quot;),diagonal:{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},showupperhalf:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},showlowerhalf:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},selected:{marker:s.selected.marker,editType:&quot;calc&quot;},unselected:{marker:s.unselected.marker,editType:&quot;calc&quot;},opacity:s.opacity}},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plot_api/plot_template&quot;:543,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/cartesian/constants&quot;:561,&quot;../../plots/template_attributes&quot;:633,&quot;../scatter/attributes&quot;:926,&quot;../scattergl/attributes&quot;:978}],1030:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-line2d&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib/prepare_regl&quot;),o=t(&quot;../../plots/get_data&quot;).getModuleCalcData,s=t(&quot;../../plots/cartesian&quot;),l=t(&quot;../../plots/cartesian/axis_ids&quot;).getFromId,c=t(&quot;../../plots/cartesian/axes&quot;).shouldShowZeroLine;function u(t,e,r){for(var n=r.matrixOptions.data.length,i=e._visibleDims,a=r.viewOpts.ranges=new Array(n),o=0;o&lt;i.length;o++){var s=i[o],c=a[o]=new Array(4),u=l(t,e._diag[s][0]);u&amp;&amp;(c[0]=u.r2l(u.range[0]),c[2]=u.r2l(u.range[1]));var f=l(t,e._diag[s][1]);f&amp;&amp;(c[1]=f.r2l(f.range[0]),c[3]=f.r2l(f.range[1]))}r.selectBatch.length||r.unselectBatch.length?r.matrix.update({ranges:a},{ranges:a}):r.matrix.update({ranges:a})}function f(t){var e=t._fullLayout,r=e._glcanvas.data()[0].regl,i=e._splomGrid;i||(i=e._splomGrid=n(r)),i.update(function(t){var e,r=t._context.plotGlPixelRatio,n=t._fullLayout,i=n._size,a=[0,0,n.width*r,n.height*r],o={};function s(t,e,n,i,s,l){n*=r,i*=r,s*=r,l*=r;var c=e[t+&quot;color&quot;],u=e[t+&quot;width&quot;],f=String(c+u);f in o?o[f].data.push(NaN,NaN,n,i,s,l):o[f]={data:[n,i,s,l],join:&quot;rect&quot;,thickness:u*r,color:c,viewport:a,range:a,overlay:!1}}for(e in n._splomSubplots){var l,u,f=n._plots[e],h=f.xaxis,p=f.yaxis,d=h._gridVals,m=p._gridVals,g=h._offset,v=h._length,y=p._length,x=i.b+p.domain[0]*i.h,b=-p._m,_=-b*p.r2l(p.range[0],p.calendar);if(h.showgrid)for(e=0;e&lt;d.length;e++)l=g+h.l2p(d[e].x),s(&quot;grid&quot;,h,l,x,l,x+y);if(p.showgrid)for(e=0;e&lt;m.length;e++)u=x+_+b*m[e].x,s(&quot;grid&quot;,p,g,u,g+v,u);c(t,h,p)&amp;&amp;(l=g+h.l2p(0),s(&quot;zeroline&quot;,h,l,x,l,x+y)),c(t,p,h)&amp;&amp;s(&quot;zeroline&quot;,p,g,u=x+_+0,g+v,u)}var w=[];for(e in o)w.push(o[e]);return w}(t))}e.exports={name:&quot;splom&quot;,attr:s.attr,attrRegex:s.attrRegex,layoutAttributes:s.layoutAttributes,supplyLayoutDefaults:s.supplyLayoutDefaults,drawFramework:s.drawFramework,plot:function(t){var e=t._fullLayout,r=i.getModule(&quot;splom&quot;),n=o(t.calcdata,r)[0];a(t,[&quot;ANGLE_instanced_arrays&quot;,&quot;OES_element_index_uint&quot;])&amp;&amp;(e._hasOnlyLargeSploms&amp;&amp;f(t),r.plot(t,{},n))},drag:function(t){var e=t.calcdata,r=t._fullLayout;r._hasOnlyLargeSploms&amp;&amp;f(t);for(var n=0;n&lt;e.length;n++){var i=e[n][0].trace,a=r._splomScenes[i.uid];&quot;splom&quot;===i.type&amp;&amp;a&amp;&amp;a.matrix&amp;&amp;u(t,i,a)}},updateGrid:f,clean:function(t,e,r,n){var i,a={};if(n._splomScenes){for(i=0;i&lt;t.length;i++){var o=t[i];&quot;splom&quot;===o.type&amp;&amp;(a[o.uid]=1)}for(i=0;i&lt;r.length;i++){var l=r[i];if(!a[l.uid]){var c=n._splomScenes[l.uid];c&amp;&amp;c.destroy&amp;&amp;c.destroy(),n._splomScenes[l.uid]=null,delete n._splomScenes[l.uid]}}}0===Object.keys(n._splomScenes||{}).length&amp;&amp;delete n._splomScenes,n._splomGrid&amp;&amp;!e._hasOnlyLargeSploms&amp;&amp;n._hasOnlyLargeSploms&amp;&amp;(n._splomGrid.destroy(),n._splomGrid=null,delete n._splomGrid),s.clean(t,e,r,n)},updateFx:s.updateFx,toSVG:s.toSVG}},{&quot;../../lib/prepare_regl&quot;:516,&quot;../../plots/cartesian&quot;:568,&quot;../../plots/cartesian/axes&quot;:554,&quot;../../plots/cartesian/axis_ids&quot;:558,&quot;../../plots/get_data&quot;:593,&quot;../../registry&quot;:638,&quot;regl-line2d&quot;:280}],1031:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axis_ids&quot;),a=t(&quot;../scatter/calc&quot;).calcMarkerSize,o=t(&quot;../scatter/calc&quot;).calcAxisExpansion,s=t(&quot;../scatter/colorscale_calc&quot;),l=t(&quot;../scattergl/convert&quot;).markerSelection,c=t(&quot;../scattergl/convert&quot;).markerStyle,u=t(&quot;./scene_update&quot;),f=t(&quot;../../constants/numerical&quot;).BADNUM,h=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e){var r,p,d,m,g,v,y=e.dimensions,x=e._length,b={},_=b.cdata=[],w=b.data=[],T=e._visibleDims=[];function k(t,r){for(var i=t.makeCalcdata({v:r.values,vcalendar:e.calendar},&quot;v&quot;),a=0;a&lt;i.length;a++)i[a]=i[a]===f?NaN:i[a];_.push(i),w.push(&quot;log&quot;===t.type?n.simpleMap(i,t.c2l):i)}for(r=0;r&lt;y.length;r++)if((d=y[r]).visible){if(m=i.getFromId(t,e._diag[r][0]),g=i.getFromId(t,e._diag[r][1]),m&amp;&amp;g&amp;&amp;m.type!==g.type){n.log(&quot;Skipping splom dimension &quot;+r+&quot; with conflicting axis types&quot;);continue}m?(k(m,d),g&amp;&amp;&quot;category&quot;===g.type&amp;&amp;(g._categories=m._categories.slice())):k(g,d),T.push(r)}for(s(t,e),n.extendFlat(b,c(e)),v=_.length*x&gt;h?b.sizeAvg||Math.max(b.size,3):a(e,x),p=0;p&lt;T.length;p++)d=y[r=T[p]],m=i.getFromId(t,e._diag[r][0])||{},g=i.getFromId(t,e._diag[r][1])||{},o(t,e,m,g,_[p],_[p],v);var A=u(t,e);return A.matrix||(A.matrix=!0),A.matrixOptions=b,A.selectedOptions=l(e,e.selected),A.unselectedOptions=l(e,e.unselected),[{x:!1,y:!1,t:{},trace:e}]}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axis_ids&quot;:558,&quot;../scatter/calc&quot;:927,&quot;../scatter/colorscale_calc&quot;:929,&quot;../scattergl/constants&quot;:980,&quot;../scattergl/convert&quot;:981,&quot;./scene_update&quot;:1038}],1032:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../scatter/subtypes&quot;),s=t(&quot;../scatter/marker_defaults&quot;),l=t(&quot;../parcoords/merge_length&quot;),c=t(&quot;../scattergl/helpers&quot;).isOpenSymbol;function u(t,e){function r(r,i){return n.coerce(t,e,a.dimensions,r,i)}r(&quot;label&quot;);var i=r(&quot;values&quot;);i&amp;&amp;i.length?r(&quot;visible&quot;):e.visible=!1,r(&quot;axis.type&quot;),r(&quot;axis.matches&quot;)}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,a,r,i)}var p=i(t,e,{name:&quot;dimensions&quot;,handleItemDefaults:u}),d=h(&quot;diagonal.visible&quot;),m=h(&quot;showupperhalf&quot;),g=h(&quot;showlowerhalf&quot;);if(l(e,p,&quot;values&quot;)&amp;&amp;(d||m||g)){h(&quot;text&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;),h(&quot;xhoverformat&quot;),h(&quot;yhoverformat&quot;),s(t,e,r,f,h);var v=c(e.marker.symbol),y=o.isBubble(e);h(&quot;marker.line.width&quot;,v||y?1:0),function(t,e,r,n){var i,a,o=e.dimensions,s=o.length,l=e.showupperhalf,c=e.showlowerhalf,u=e.diagonal.visible,f=new Array(s),h=new Array(s);for(i=0;i&lt;s;i++){var p=i?i+1:&quot;&quot;;f[i]=&quot;x&quot;+p,h[i]=&quot;y&quot;+p}var d=n(&quot;xaxes&quot;,f),m=n(&quot;yaxes&quot;,h),g=e._diag=new Array(s);e._xaxes={},e._yaxes={};var v=[],y=[];function x(t,n,i,a){if(t){var o=t.charAt(0),s=r._splomAxes[o];if(e[&quot;_&quot;+o+&quot;axes&quot;][t]=1,a.push(t),!(t in s)){var l=s[t]={};i&amp;&amp;(l.label=i.label||&quot;&quot;,i.visible&amp;&amp;i.axis&amp;&amp;(i.axis.type&amp;&amp;(l.type=i.axis.type),i.axis.matches&amp;&amp;(l.matches=n)))}}}var b=!u&amp;&amp;!c,_=!u&amp;&amp;!l;for(e._axesDim={},i=0;i&lt;s;i++){var w=o[i],T=0===i,k=i===s-1,A=T&amp;&amp;b||k&amp;&amp;_?void 0:d[i],M=T&amp;&amp;_||k&amp;&amp;b?void 0:m[i];x(A,M,w,v),x(M,A,w,y),g[i]=[A,M],e._axesDim[A]=i,e._axesDim[M]=i}for(i=0;i&lt;v.length;i++)for(a=0;a&lt;y.length;a++){var S=v[i]+y[a];i&gt;a&amp;&amp;l||i&lt;a&amp;&amp;c?r._splomSubplots[S]=1:i!==a||!u&amp;&amp;c&amp;&amp;l||(r._splomSubplots[S]=1)}(!c||!u&amp;&amp;l&amp;&amp;c)&amp;&amp;(r._splomGridDflt.xside=&quot;bottom&quot;,r._splomGridDflt.yside=&quot;left&quot;)}(0,e,f,h),n.coerceSelectionMarkerOpacity(e,h)}else e.visible=!1}},{&quot;../../lib&quot;:503,&quot;../../plots/array_container_defaults&quot;:549,&quot;../parcoords/merge_length&quot;:897,&quot;../scatter/marker_defaults&quot;:945,&quot;../scatter/subtypes&quot;:951,&quot;../scattergl/helpers&quot;:985,&quot;./attributes&quot;:1029}],1033:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scattergl/convert&quot;).markerStyle;e.exports=function(t,e){var r=e.trace,o=t._fullLayout._splomScenes[r.uid];if(o){i(t,r),n.extendFlat(o.matrixOptions,a(r));var s=n.extendFlat({},o.matrixOptions,o.viewOpts);o.matrix.update(s,null)}}},{&quot;../../lib&quot;:503,&quot;../scatter/colorscale_calc&quot;:929,&quot;../scattergl/convert&quot;:981}],1034:[function(t,e,r){&quot;use strict&quot;;r.getDimIndex=function(t,e){for(var r=e._id,n={x:0,y:1}[r.charAt(0)],i=t._visibleDims,a=0;a&lt;i.length;a++){var o=i[a];if(t._diag[o][n]===r)return a}return!1}},{}],1035:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./helpers&quot;),i=t(&quot;../scattergl/hover&quot;).calcHover;e.exports={hoverPoints:function(t,e,r){var a=t.cd[0].trace,o=t.scene.matrixOptions.cdata,s=t.xa,l=t.ya,c=s.c2p(e),u=l.c2p(r),f=t.distance,h=n.getDimIndex(a,s),p=n.getDimIndex(a,l);if(!1===h||!1===p)return[t];for(var d,m,g=o[h],v=o[p],y=f,x=0;x&lt;g.length;x++){var b=g[x],_=v[x],w=s.c2p(b)-c,T=l.c2p(_)-u,k=Math.sqrt(w*w+T*T);k&lt;y&amp;&amp;(y=m=k,d=x)}return t.index=d,t.distance=y,t.dxy=m,void 0===d?[t]:[i(t,g,v,a)]}}},{&quot;../scattergl/hover&quot;:986,&quot;./helpers&quot;:1034}],1036:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../components/grid&quot;);e.exports={moduleType:&quot;trace&quot;,name:&quot;splom&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;cartesian&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;./select&quot;),editStyle:t(&quot;./edit_style&quot;),meta:{}},n.register(i)},{&quot;../../components/grid&quot;:410,&quot;../../registry&quot;:638,&quot;../scatter/marker_colorbar&quot;:944,&quot;./attributes&quot;:1029,&quot;./base_plot&quot;:1030,&quot;./calc&quot;:1031,&quot;./defaults&quot;:1032,&quot;./edit_style&quot;:1033,&quot;./hover&quot;:1035,&quot;./plot&quot;:1037,&quot;./select&quot;:1039}],1037:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-splom&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../components/dragelement/helpers&quot;).selectMode;function s(t,e){var r,s,l,c,u,f=t._fullLayout,h=f._size,p=e.trace,d=e.t,m=f._splomScenes[p.uid],g=m.matrixOptions,v=g.cdata,y=f._glcanvas.data()[0].regl,x=f.dragmode;if(0!==v.length){g.lower=p.showupperhalf,g.upper=p.showlowerhalf,g.diagonal=p.diagonal.visible;var b=p._visibleDims,_=v.length,w=m.viewOpts={};for(w.ranges=new Array(_),w.domains=new Array(_),u=0;u&lt;b.length;u++){l=b[u];var T=w.ranges[u]=new Array(4),k=w.domains[u]=new Array(4);(r=a.getFromId(t,p._diag[l][0]))&amp;&amp;(T[0]=r._rl[0],T[2]=r._rl[1],k[0]=r.domain[0],k[2]=r.domain[1]),(s=a.getFromId(t,p._diag[l][1]))&amp;&amp;(T[1]=s._rl[0],T[3]=s._rl[1],k[1]=s.domain[0],k[3]=s.domain[1])}var A=t._context.plotGlPixelRatio,M=h.l*A,S=h.b*A,E=h.w*A,L=h.h*A;w.viewport=[M,S,E+M,L+S],!0===m.matrix&amp;&amp;(m.matrix=n(y));var C=f.clickmode.indexOf(&quot;select&quot;)&gt;-1,P=!0;if(o(x)||!!p.selectedpoints||C){var I=p._length;if(p.selectedpoints){m.selectBatch=p.selectedpoints;var O=p.selectedpoints,z={};for(l=0;l&lt;O.length;l++)z[O[l]]=!0;var D=[];for(l=0;l&lt;I;l++)z[l]||D.push(l);m.unselectBatch=D}var R=d.xpx=new Array(_),F=d.ypx=new Array(_);for(u=0;u&lt;b.length;u++){if(l=b[u],r=a.getFromId(t,p._diag[l][0]))for(R[u]=new Array(I),c=0;c&lt;I;c++)R[u][c]=r.c2p(v[u][c]);if(s=a.getFromId(t,p._diag[l][1]))for(F[u]=new Array(I),c=0;c&lt;I;c++)F[u][c]=s.c2p(v[u][c])}if(m.selectBatch.length||m.unselectBatch.length){var B=i.extendFlat({},g,m.unselectedOptions,w),N=i.extendFlat({},g,m.selectedOptions,w);m.matrix.update(B,N),P=!1}}else d.xpx=d.ypx=null;if(P){var j=i.extendFlat({},g,w);m.matrix.update(j,null)}}}e.exports=function(t,e,r){if(r.length)for(var n=0;n&lt;r.length;n++)s(t,r[n][0])}},{&quot;../../components/dragelement/helpers&quot;:384,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axis_ids&quot;:558,&quot;regl-splom&quot;:282}],1038:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=t._fullLayout,i=e.uid,a=r._splomScenes;a||(a=r._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s=a[e.uid];return s||((s=a[i]=n.extendFlat({},o,{matrix:!1,selectBatch:[],unselectBatch:[]})).draw=function(){s.matrix&amp;&amp;s.matrix.draw&amp;&amp;(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&amp;&amp;s.matrix.destroy&amp;&amp;s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||n.extendFlat(s,o),s}},{&quot;../../lib&quot;:503}],1039:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;./helpers&quot;);e.exports=function(t,e){var r=t.cd,o=r[0].trace,s=r[0].t,l=t.scene,c=l.matrixOptions.cdata,u=t.xaxis,f=t.yaxis,h=[];if(!l)return h;var p=!i.hasMarkers(o)&amp;&amp;!i.hasText(o);if(!0!==o.visible||p)return h;var d=a.getDimIndex(o,u),m=a.getDimIndex(o,f);if(!1===d||!1===m)return h;var g=s.xpx[d],v=s.ypx[m],y=c[d],x=c[m],b=[],_=[];if(!1!==e&amp;&amp;!e.degenerate)for(var w=0;w&lt;y.length;w++)e.contains([g[w],v[w]],null,w,t)?(b.push(w),h.push({pointNumber:w,x:y[w],y:x[w]})):_.push(w);var T=l.matrixOptions;return b.length||_.length?l.selectBatch.length||l.unselectBatch.length||l.matrix.update(l.unselectedOptions,n.extendFlat({},T,l.selectedOptions,l.viewOpts)):l.matrix.update(T,null),l.selectBatch=b,l.unselectBatch=_,h}},{&quot;../../lib&quot;:503,&quot;../scatter/subtypes&quot;:951,&quot;./helpers&quot;:1034}],1040:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../mesh3d/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},u:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},v:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},w:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},starts:{x:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},maxdisplayed:{valType:&quot;integer&quot;,min:0,dflt:1e3,editType:&quot;calc&quot;},sizeref:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0,dflt:1},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertemplate:a({editType:&quot;calc&quot;},{keys:[&quot;tubex&quot;,&quot;tubey&quot;,&quot;tubez&quot;,&quot;tubeu&quot;,&quot;tubev&quot;,&quot;tubew&quot;,&quot;norm&quot;,&quot;divergence&quot;]}),uhoverformat:i(&quot;u&quot;,1),vhoverformat:i(&quot;v&quot;,1),whoverformat:i(&quot;w&quot;,1),xhoverformat:i(&quot;x&quot;),yhoverformat:i(&quot;y&quot;),zhoverformat:i(&quot;z&quot;),showlegend:l({},s.showlegend,{dflt:!1})};l(c,n(&quot;&quot;,{colorAttr:&quot;u/v/w norm&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}));[&quot;opacity&quot;,&quot;lightposition&quot;,&quot;lighting&quot;].forEach((function(t){c[t]=o[t]})),c.hoverinfo=l({},s.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;norm&quot;,&quot;divergence&quot;,&quot;text&quot;,&quot;name&quot;],dflt:&quot;x+y+z+norm+text+name&quot;}),c.transforms=void 0,e.exports=c},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plots/attributes&quot;:550,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/template_attributes&quot;:633,&quot;../mesh3d/attributes&quot;:867}],1041:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/calc&quot;);function a(t){var e,r,i,a,s,l,c,u,f,h,p,d,m=t._x,g=t._y,v=t._z,y=t._len,x=-1/0,b=1/0,_=-1/0,w=1/0,T=-1/0,k=1/0,A=&quot;&quot;;for(y&amp;&amp;(c=m[0],f=g[0],p=v[0]),y&gt;1&amp;&amp;(u=m[y-1],h=g[y-1],d=v[y-1]),e=0;e&lt;y;e++)x=Math.max(x,m[e]),b=Math.min(b,m[e]),_=Math.max(_,g[e]),w=Math.min(w,g[e]),T=Math.max(T,v[e]),k=Math.min(k,v[e]),a||m[e]===c||(a=!0,A+=&quot;x&quot;),s||g[e]===f||(s=!0,A+=&quot;y&quot;),l||v[e]===p||(l=!0,A+=&quot;z&quot;);a||(A+=&quot;x&quot;),s||(A+=&quot;y&quot;),l||(A+=&quot;z&quot;);var M=o(t._x),S=o(t._y),E=o(t._z);A=(A=(A=A.replace(&quot;x&quot;,(c&gt;u?&quot;-&quot;:&quot;+&quot;)+&quot;x&quot;)).replace(&quot;y&quot;,(f&gt;h?&quot;-&quot;:&quot;+&quot;)+&quot;y&quot;)).replace(&quot;z&quot;,(p&gt;d?&quot;-&quot;:&quot;+&quot;)+&quot;z&quot;);var L=function(){y=0,M=[],S=[],E=[]};(!y||y&lt;M.length*S.length*E.length)&amp;&amp;L();var C=function(t){return&quot;x&quot;===t?m:&quot;y&quot;===t?g:v},P=function(t){return&quot;x&quot;===t?M:&quot;y&quot;===t?S:E},I=function(t){return t[y-1]&lt;t[0]?-1:1},O=C(A[1]),z=C(A[3]),D=C(A[5]),R=P(A[1]).length,F=P(A[3]).length,B=P(A[5]).length,N=!1,j=function(t,e,r){return R*(F*t+e)+r},U=I(C(A[1])),V=I(C(A[3])),H=I(C(A[5]));for(e=0;e&lt;B-1;e++){for(r=0;r&lt;F-1;r++){for(i=0;i&lt;R-1;i++){var q=j(e,r,i),G=j(e,r,i+1),Y=j(e,r+1,i),W=j(e+1,r,i);if(O[q]*U&lt;O[G]*U&amp;&amp;z[q]*V&lt;z[Y]*V&amp;&amp;D[q]*H&lt;D[W]*H||(N=!0),N)break}if(N)break}if(N)break}return N&amp;&amp;(n.warn(&quot;Encountered arbitrary coordinates! Unable to input data grid.&quot;),L()),{xMin:b,yMin:w,zMin:k,xMax:x,yMax:_,zMax:T,Xs:M,Ys:S,Zs:E,len:y,fill:A}}function o(t){return n.distinctVals(t).vals}function s(t,e){if(void 0===e&amp;&amp;(e=t.length),n.isTypedArray(t))return t.subarray(0,e);for(var r=[],i=0;i&lt;e;i++)r[i]=+t[i];return r}e.exports={calc:function(t,e){e._len=Math.min(e.u.length,e.v.length,e.w.length,e.x.length,e.y.length,e.z.length),e._u=s(e.u,e._len),e._v=s(e.v,e._len),e._w=s(e.w,e._len),e._x=s(e.x,e._len),e._y=s(e.y,e._len),e._z=s(e.z,e._len);var r=a(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;var n,o,l,c=0;e.starts&amp;&amp;(n=s(e.starts.x||[]),o=s(e.starts.y||[]),l=s(e.starts.z||[]),c=Math.min(n.length,o.length,l.length)),e._startsX=n||[],e._startsY=o||[],e._startsZ=l||[];var u,f=0,h=1/0;for(u=0;u&lt;e._len;u++){var p=e._u[u],d=e._v[u],m=e._w[u],g=Math.sqrt(p*p+d*d+m*m);f=Math.max(f,g),h=Math.min(h,g)}for(i(t,e,{vals:[h,f],containerStr:&quot;&quot;,cLetter:&quot;c&quot;}),u=0;u&lt;c;u++){var v=n[u];r.xMax=Math.max(r.xMax,v),r.xMin=Math.min(r.xMin,v);var y=o[u];r.yMax=Math.max(r.yMax,y),r.yMin=Math.min(r.yMin,y);var x=l[u];r.zMax=Math.max(r.zMax,x),r.zMin=Math.min(r.zMin,x)}e._slen=c,e._normMax=f,e._xbnds=[r.xMin,r.xMax],e._ybnds=[r.yMin,r.yMax],e._zbnds=[r.zMin,r.zMax]},filter:s,processGrid:a}},{&quot;../../components/colorscale/calc&quot;:374,&quot;../../lib&quot;:503}],1042:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../stackgl_modules&quot;).gl_streamtube3d,i=n.createTubeMesh,a=t(&quot;../../lib&quot;),o=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,s=t(&quot;../../components/colorscale&quot;).extractOpts,l=t(&quot;../../plots/gl3d/zip3&quot;),c={xaxis:0,yaxis:1,zaxis:2};function u(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var f=u.prototype;function h(t){var e=t.length;return e&gt;2?t.slice(1,e-1):2===e?[(t[0]+t[1])/2]:t}function p(t){var e=t.length;return 1===e?[.5,.5]:[t[1]-t[0],t[e-1]-t[e-2]]}function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,u=e._len,f={};function d(t,e){var n=r[e],o=i[c[e]];return a.simpleMap(t,(function(t){return n.d2l(t)*o}))}if(f.vectors=l(d(e._u,&quot;xaxis&quot;),d(e._v,&quot;yaxis&quot;),d(e._w,&quot;zaxis&quot;),u),!u)return{positions:[],cells:[]};var m=d(e._Xs,&quot;xaxis&quot;),g=d(e._Ys,&quot;yaxis&quot;),v=d(e._Zs,&quot;zaxis&quot;);if(f.meshgrid=[m,g,v],f.gridFill=e._gridFill,e._slen)f.startingPositions=l(d(e._startsX,&quot;xaxis&quot;),d(e._startsY,&quot;yaxis&quot;),d(e._startsZ,&quot;zaxis&quot;));else{for(var y=g[0],x=h(m),b=h(v),_=new Array(x.length*b.length),w=0,T=0;T&lt;x.length;T++)for(var k=0;k&lt;b.length;k++)_[w++]=[x[T],y,b[k]];f.startingPositions=_}f.colormap=o(e),f.tubeSize=e.sizeref,f.maxLength=e.maxdisplayed;var A=d(e._xbnds,&quot;xaxis&quot;),M=d(e._ybnds,&quot;yaxis&quot;),S=d(e._zbnds,&quot;zaxis&quot;),E=p(m),L=p(g),C=p(v),P=[[A[0]-E[0],M[0]-L[0],S[0]-C[0]],[A[1]+E[1],M[1]+L[1],S[1]+C[1]]],I=n(f,P),O=s(e);I.vertexIntensityBounds=[O.min/e._normMax,O.max/e._normMax];var z=e.lightposition;return I.lightPosition=[z.x,z.y,z.z],I.ambient=e.lighting.ambient,I.diffuse=e.lighting.diffuse,I.specular=e.lighting.specular,I.roughness=e.lighting.roughness,I.fresnel=e.lighting.fresnel,I.opacity=e.opacity,e._pad=I.tubeScale*e.sizeref*2,I}f.handlePick=function(t){var e=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(t,n){var i=e[n],a=r[c[n]];return i.l2c(t)/a}if(t.object===this.mesh){var i=t.data.position,a=t.data.velocity;return t.traceCoordinate=[n(i[0],&quot;xaxis&quot;),n(i[1],&quot;yaxis&quot;),n(i[2],&quot;zaxis&quot;),n(a[0],&quot;xaxis&quot;),n(a[1],&quot;yaxis&quot;),n(a[2],&quot;zaxis&quot;),t.data.intensity*this.data._normMax,t.data.divergence],t.textLabel=this.data.hovertext||this.data.text,!0}},f.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new u(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{&quot;../../../stackgl_modules&quot;:1120,&quot;../../components/colorscale&quot;:378,&quot;../../lib&quot;:503,&quot;../../lib/gl_format_color&quot;:499,&quot;../../plots/gl3d/zip3&quot;:609}],1043:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;u&quot;),c=s(&quot;v&quot;),u=s(&quot;w&quot;),f=s(&quot;x&quot;),h=s(&quot;y&quot;),p=s(&quot;z&quot;);l&amp;&amp;l.length&amp;&amp;c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length&amp;&amp;p&amp;&amp;p.length?(s(&quot;starts.x&quot;),s(&quot;starts.y&quot;),s(&quot;starts.z&quot;),s(&quot;maxdisplayed&quot;),s(&quot;sizeref&quot;),s(&quot;lighting.ambient&quot;),s(&quot;lighting.diffuse&quot;),s(&quot;lighting.specular&quot;),s(&quot;lighting.roughness&quot;),s(&quot;lighting.fresnel&quot;),s(&quot;lightposition.x&quot;),s(&quot;lightposition.y&quot;),s(&quot;lightposition.z&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;uhoverformat&quot;),s(&quot;vhoverformat&quot;),s(&quot;whoverformat&quot;),s(&quot;xhoverformat&quot;),s(&quot;yhoverformat&quot;),s(&quot;zhoverformat&quot;),e._length=null):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:376,&quot;../../lib&quot;:503,&quot;./attributes&quot;:1040}],1044:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;streamtube&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./convert&quot;),eventData:function(t,e){return t.tubex=t.x,t.tubey=t.y,t.tubez=t.z,t.tubeu=e.traceCoordinate[3],t.tubev=e.traceCoordinate[4],t.tubew=e.traceCoordinate[5],t.norm=e.traceCoordinate[6],t.divergence=e.traceCoordinate[7],delete t.x,delete t.y,delete t.z,t},meta:{}}},{&quot;../../plots/gl3d&quot;:598,&quot;./attributes&quot;:1040,&quot;./calc&quot;:1041,&quot;./convert&quot;:1042,&quot;./defaults&quot;:1043}],1045:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../pie/attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},parents:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},branchvalues:{valType:&quot;enumerated&quot;,values:[&quot;remainder&quot;,&quot;total&quot;],dflt:&quot;remainder&quot;,editType:&quot;calc&quot;},count:{valType:&quot;flaglist&quot;,flags:[&quot;branches&quot;,&quot;leaves&quot;],dflt:&quot;leaves&quot;,editType:&quot;calc&quot;},level:{valType:&quot;any&quot;,editType:&quot;plot&quot;,anim:!0},maxdepth:{valType:&quot;integer&quot;,editType:&quot;plot&quot;,dflt:-1},marker:u({colors:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:u({},l.marker.line.color,{dflt:null}),width:u({},l.marker.line.width,{dflt:1}),editType:&quot;calc&quot;},editType:&quot;calc&quot;},o(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),leaf:{opacity:{valType:&quot;number&quot;,editType:&quot;style&quot;,min:0,max:1},editType:&quot;plot&quot;},text:l.text,textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;current path&quot;,&quot;percent root&quot;,&quot;percent entry&quot;,&quot;percent parent&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;},texttemplate:a({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:l.hovertext,hoverinfo:u({},n.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;name&quot;,&quot;current path&quot;,&quot;percent root&quot;,&quot;percent entry&quot;,&quot;percent parent&quot;],dflt:&quot;label+text+value+name&quot;}),hovertemplate:i({},{keys:c.eventDataKeys}),textfont:l.textfont,insidetextorientation:l.insidetextorientation,insidetextfont:l.insidetextfont,outsidetextfont:u({},l.outsidetextfont,{}),rotation:{valType:&quot;angle&quot;,dflt:0,editType:&quot;plot&quot;},sort:l.sort,root:{color:{valType:&quot;color&quot;,editType:&quot;calc&quot;,dflt:&quot;rgba(0,0,0,0)&quot;},editType:&quot;calc&quot;},domain:s({name:&quot;sunburst&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plots/attributes&quot;:550,&quot;../../plots/domain&quot;:584,&quot;../../plots/template_attributes&quot;:633,&quot;../pie/attributes&quot;:900,&quot;./constants&quot;:1048}],1046:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;sunburst&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:619}],1047:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/colorscale&quot;).makeColorScaleFuncFromTrace,s=t(&quot;../pie/calc&quot;).makePullColorFn,l=t(&quot;../pie/calc&quot;).generateExtendedColors,c=t(&quot;../../components/colorscale&quot;).calc,u=t(&quot;../../constants/numerical&quot;).ALMOST_EQUAL,f={},h={},p={};r.calc=function(t,e){var r,l,f,h,p,d,m=t._fullLayout,g=e.ids,v=a.isArrayOrTypedArray(g),y=e.labels,x=e.parents,b=e.values,_=a.isArrayOrTypedArray(b),w=[],T={},k={},A=function(t){return t||&quot;number&quot;==typeof t},M=function(t){return!_||i(b[t])&amp;&amp;b[t]&gt;=0};v?(r=Math.min(g.length,x.length),l=function(t){return A(g[t])&amp;&amp;M(t)},f=function(t){return String(g[t])}):(r=Math.min(y.length,x.length),l=function(t){return A(y[t])&amp;&amp;M(t)},f=function(t){return String(y[t])}),_&amp;&amp;(r=Math.min(r,b.length));for(var S=0;S&lt;r;S++)if(l(S)){var E=f(S),L=A(x[S])?String(x[S]):&quot;&quot;,C={i:S,id:E,pid:L,label:A(y[S])?String(y[S]):&quot;&quot;};_&amp;&amp;(C.v=+b[S]),w.push(C),p=E,T[h=L]?T[h].push(p):T[h]=[p],k[p]=1}if(T[&quot;&quot;]){if(T[&quot;&quot;].length&gt;1){for(var P=a.randstr(),I=0;I&lt;w.length;I++)&quot;&quot;===w[I].pid&amp;&amp;(w[I].pid=P);w.unshift({hasMultipleRoots:!0,id:P,pid:&quot;&quot;,label:&quot;&quot;})}}else{var O,z=[];for(O in T)k[O]||z.push(O);if(1!==z.length)return a.warn([&quot;Multiple implied roots, cannot build&quot;,e.type,&quot;hierarchy of&quot;,e.name+&quot;.&quot;,&quot;These roots include:&quot;,z.join(&quot;, &quot;)].join(&quot; &quot;));O=z[0],w.unshift({hasImpliedRoot:!0,id:O,pid:&quot;&quot;,label:O})}try{d=n.stratify().id((function(t){return t.id})).parentId((function(t){return t.pid}))(w)}catch(t){return a.warn([&quot;Failed to build&quot;,e.type,&quot;hierarchy of&quot;,e.name+&quot;.&quot;,&quot;Error:&quot;,t.message].join(&quot; &quot;))}var D=n.hierarchy(d),R=!1;if(_)switch(e.branchvalues){case&quot;remainder&quot;:D.sum((function(t){return t.data.v}));break;case&quot;total&quot;:D.each((function(t){var r=t.data.data,n=r.v;if(t.children){var i=t.children.reduce((function(t,e){return t+e.data.data.v}),0);if((r.hasImpliedRoot||r.hasMultipleRoots)&amp;&amp;(n=i),n&lt;i*u)return R=!0,a.warn([&quot;Total value for node&quot;,t.data.data.id,&quot;of&quot;,e.name,&quot;is smaller than the sum of its children.&quot;,&quot;\nparent value =&quot;,n,&quot;\nchildren sum =&quot;,i].join(&quot; &quot;))}t.value=n}))}else!function t(e,r,n){var i=0,a=e.children;if(a){for(var o=a.length,s=0;s&lt;o;s++)i+=t(a[s],r,n);n.branches&amp;&amp;i++}else n.leaves&amp;&amp;i++;e.value=e.data.data.value=i,r._values||(r._values=[]);return r._values[e.data.data.i]=i,i}(D,e,{branches:-1!==e.count.indexOf(&quot;branches&quot;),leaves:-1!==e.count.indexOf(&quot;leaves&quot;)});if(!R){var F,B;e.sort&amp;&amp;D.sort((function(t,e){return e.value-t.value}));var N=e.marker.colors||[],j=!!N.length;return e._hasColorscale?(j||(N=_?e.values:e._values),c(t,e,{vals:N,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),B=o(e.marker)):F=s(m[&quot;_&quot;+e.type+&quot;colormap&quot;]),D.each((function(t){var r=t.data.data;r.color=e._hasColorscale?B(N[r.i]):F(N[r.i],r.id)})),w[0].hierarchy=D,w}},r._runCrossTraceCalc=function(t,e){var r=e._fullLayout,n=e.calcdata,i=r[t+&quot;colorway&quot;],a=r[&quot;_&quot;+t+&quot;colormap&quot;];r[&quot;extend&quot;+t+&quot;colors&quot;]&amp;&amp;(i=l(i,&quot;icicle&quot;===t?p:&quot;treemap&quot;===t?h:f));var o,s=0;function c(t){var e=t.data.data,r=e.id;!1===e.color&amp;&amp;(a[r]?e.color=a[r]:t.parent?t.parent.parent?e.color=t.parent.data.data.color:(a[r]=e.color=i[s%i.length],s++):e.color=o)}for(var u=0;u&lt;n.length;u++){var d=n[u][0];d.trace.type===t&amp;&amp;d.hierarchy&amp;&amp;(o=d.trace.root.color,d.hierarchy.each(c))}},r.crossTraceCalc=function(t){return r._runCrossTraceCalc(&quot;sunburst&quot;,t)}},{&quot;../../components/colorscale&quot;:378,&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../pie/calc&quot;:902,&quot;d3-hierarchy&quot;:115,&quot;fast-isnumeric&quot;:190}],1048:[function(t,e,r){&quot;use strict&quot;;e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:&quot;linear&quot;,eventDataKeys:[&quot;currentPath&quot;,&quot;root&quot;,&quot;entry&quot;,&quot;percentRoot&quot;,&quot;percentEntry&quot;,&quot;percentParent&quot;]}},{}],1049:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../bar/defaults&quot;).handleText,s=t(&quot;../../components/colorscale&quot;),l=s.hasColorscale,c=s.handleDefaults;e.exports=function(t,e,r,s){function u(r,a){return n.coerce(t,e,i,r,a)}var f=u(&quot;labels&quot;),h=u(&quot;parents&quot;);if(f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length){var p=u(&quot;values&quot;);p&amp;&amp;p.length?u(&quot;branchvalues&quot;):u(&quot;count&quot;),u(&quot;level&quot;),u(&quot;maxdepth&quot;),u(&quot;marker.line.width&quot;)&amp;&amp;u(&quot;marker.line.color&quot;,s.paper_bgcolor),u(&quot;marker.colors&quot;);var d=e._hasColorscale=l(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis;d&amp;&amp;c(t,e,s,u,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),u(&quot;leaf.opacity&quot;,d?1:.7);var m=u(&quot;text&quot;);u(&quot;texttemplate&quot;),e.texttemplate||u(&quot;textinfo&quot;,Array.isArray(m)?&quot;text+label&quot;:&quot;label&quot;),u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;);o(t,e,s,u,&quot;auto&quot;,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),u(&quot;insidetextorientation&quot;),u(&quot;sort&quot;),u(&quot;rotation&quot;),u(&quot;root.color&quot;),a(e,s,u),e._length=null}else e.visible=!1}},{&quot;../../components/colorscale&quot;:378,&quot;../../lib&quot;:503,&quot;../../plots/domain&quot;:584,&quot;../bar/defaults&quot;:652,&quot;./attributes&quot;:1045}],1050:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,o=t(&quot;../../components/fx&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/events&quot;),c=t(&quot;./helpers&quot;),u=t(&quot;../pie/helpers&quot;).formatPieValue;function f(t,e,r){for(var n=t.data.data,i={curveNumber:e.index,pointNumber:n.i,data:e._input,fullData:e},o=0;o&lt;r.length;o++){var s=r[o];s in t&amp;&amp;(i[s]=t[s])}return&quot;parentString&quot;in t&amp;&amp;!c.isHierarchyRoot(t)&amp;&amp;(i.parent=t.parentString),a(i,e,n.i),i}e.exports=function(t,e,r,a,h){var p=a[0],d=p.trace,m=p.hierarchy,g=&quot;sunburst&quot;===d.type,v=&quot;treemap&quot;===d.type||&quot;icicle&quot;===d.type;&quot;_hasHoverLabel&quot;in d||(d._hasHoverLabel=!1),&quot;_hasHoverEvent&quot;in d||(d._hasHoverEvent=!1);t.on(&quot;mouseover&quot;,(function(i){var a=r._fullLayout;if(!r._dragging&amp;&amp;!1!==a.hovermode){var l,y=r._fullData[d.index],x=i.data.data,b=x.i,_=c.isHierarchyRoot(i),w=c.getParent(m,i),T=c.getValue(i),k=function(t){return s.castOption(y,b,t)},A=k(&quot;hovertemplate&quot;),M=o.castHoverinfo(y,a,b),S=a.separators;if(A||M&amp;&amp;&quot;none&quot;!==M&amp;&amp;&quot;skip&quot;!==M){var E,L;g&amp;&amp;(E=p.cx+i.pxmid[0]*(1-i.rInscribed),L=p.cy+i.pxmid[1]*(1-i.rInscribed)),v&amp;&amp;(E=i._hoverX,L=i._hoverY);var C,P={},I=[],O=[],z=function(t){return-1!==I.indexOf(t)};M&amp;&amp;(I=&quot;all&quot;===M?y._module.attributes.hoverinfo.flags:M.split(&quot;+&quot;)),P.label=x.label,z(&quot;label&quot;)&amp;&amp;P.label&amp;&amp;O.push(P.label),x.hasOwnProperty(&quot;v&quot;)&amp;&amp;(P.value=x.v,P.valueLabel=u(P.value,S),z(&quot;value&quot;)&amp;&amp;O.push(P.valueLabel)),P.currentPath=i.currentPath=c.getPath(i.data),z(&quot;current path&quot;)&amp;&amp;!_&amp;&amp;O.push(P.currentPath);var D=[],R=function(){-1===D.indexOf(C)&amp;&amp;(O.push(C),D.push(C))};P.percentParent=i.percentParent=T/c.getValue(w),P.parent=i.parentString=c.getPtLabel(w),z(&quot;percent parent&quot;)&amp;&amp;(C=c.formatPercent(P.percentParent,S)+&quot; of &quot;+P.parent,R()),P.percentEntry=i.percentEntry=T/c.getValue(e),P.entry=i.entry=c.getPtLabel(e),!z(&quot;percent entry&quot;)||_||i.onPathbar||(C=c.formatPercent(P.percentEntry,S)+&quot; of &quot;+P.entry,R()),P.percentRoot=i.percentRoot=T/c.getValue(m),P.root=i.root=c.getPtLabel(m),z(&quot;percent root&quot;)&amp;&amp;!_&amp;&amp;(C=c.formatPercent(P.percentRoot,S)+&quot; of &quot;+P.root,R()),P.text=k(&quot;hovertext&quot;)||k(&quot;text&quot;),z(&quot;text&quot;)&amp;&amp;(C=P.text,s.isValidTextValue(C)&amp;&amp;O.push(C)),l=[f(i,y,h.eventDataKeys)];var F={trace:y,y:L,_x0:i._x0,_x1:i._x1,_y0:i._y0,_y1:i._y1,text:O.join(&quot;&lt;br&gt;&quot;),name:A||z(&quot;name&quot;)?y.name:void 0,color:k(&quot;hoverlabel.bgcolor&quot;)||x.color,borderColor:k(&quot;hoverlabel.bordercolor&quot;),fontFamily:k(&quot;hoverlabel.font.family&quot;),fontSize:k(&quot;hoverlabel.font.size&quot;),fontColor:k(&quot;hoverlabel.font.color&quot;),nameLength:k(&quot;hoverlabel.namelength&quot;),textAlign:k(&quot;hoverlabel.align&quot;),hovertemplate:A,hovertemplateLabels:P,eventData:l};g&amp;&amp;(F.x0=E-i.rInscribed*i.rpx1,F.x1=E+i.rInscribed*i.rpx1,F.idealAlign=i.pxmid[0]&lt;0?&quot;left&quot;:&quot;right&quot;),v&amp;&amp;(F.x=E,F.idealAlign=E&lt;0?&quot;left&quot;:&quot;right&quot;);var B=[];o.loneHover(F,{container:a._hoverlayer.node(),outerContainer:a._paper.node(),gd:r,inOut_bbox:B}),l[0].bbox=B[0],d._hasHoverLabel=!0}if(v){var N=t.select(&quot;path.surface&quot;);h.styleOne(N,i,y,{hovered:!0})}d._hasHoverEvent=!0,r.emit(&quot;plotly_hover&quot;,{points:l||[f(i,y,h.eventDataKeys)],event:n.event})}})),t.on(&quot;mouseout&quot;,(function(e){var i=r._fullLayout,a=r._fullData[d.index],s=n.select(this).datum();if(d._hasHoverEvent&amp;&amp;(e.originalEvent=n.event,r.emit(&quot;plotly_unhover&quot;,{points:[f(s,a,h.eventDataKeys)],event:n.event}),d._hasHoverEvent=!1),d._hasHoverLabel&amp;&amp;(o.loneUnhover(i._hoverlayer.node()),d._hasHoverLabel=!1),v){var l=t.select(&quot;path.surface&quot;);h.styleOne(l,s,a,{hovered:!1})}})),t.on(&quot;click&quot;,(function(t){var e=r._fullLayout,a=r._fullData[d.index],s=g&amp;&amp;(c.isHierarchyRoot(t)||c.isLeaf(t)),u=c.getPtId(t),p=c.isEntry(t)?c.findEntryWithChild(m,u):c.findEntryWithLevel(m,u),v=c.getPtId(p),y={points:[f(t,a,h.eventDataKeys)],event:n.event};s||(y.nextLevel=v);var x=l.triggerHandler(r,&quot;plotly_&quot;+d.type+&quot;click&quot;,y);if(!1!==x&amp;&amp;e.hovermode&amp;&amp;(r._hoverdata=[f(t,a,h.eventDataKeys)],o.click(r,n.event)),!s&amp;&amp;!1!==x&amp;&amp;!r._dragging&amp;&amp;!r._transitioning){i.call(&quot;_storeDirectGUIEdit&quot;,a,e._tracePreGUI[a.uid],{level:a.level});var b={data:[{level:v}],traces:[d.index]},_={frame:{redraw:!1,duration:h.transitionTime},transition:{duration:h.transitionTime,easing:h.transitionEasing},mode:&quot;immediate&quot;,fromcurrent:!0};o.loneUnhover(e._hoverlayer.node()),i.call(&quot;animate&quot;,r,b,_)}}))}},{&quot;../../components/fx&quot;:406,&quot;../../components/fx/helpers&quot;:402,&quot;../../lib&quot;:503,&quot;../../lib/events&quot;:492,&quot;../../registry&quot;:638,&quot;../pie/helpers&quot;:905,&quot;./helpers&quot;:1051,&quot;@plotly/d3&quot;:58}],1051:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib/setcursor&quot;),o=t(&quot;../pie/helpers&quot;);function s(t){return t.data.data.pid}r.findEntryWithLevel=function(t,e){var n;return e&amp;&amp;t.eachAfter((function(t){if(r.getPtId(t)===e)return n=t.copy()})),n||t},r.findEntryWithChild=function(t,e){var n;return t.eachAfter((function(t){for(var i=t.children||[],a=0;a&lt;i.length;a++){var o=i[a];if(r.getPtId(o)===e)return n=t.copy()}})),n||t},r.isEntry=function(t){return!t.parent},r.isLeaf=function(t){return!t.children},r.getPtId=function(t){return t.data.data.id},r.getPtLabel=function(t){return t.data.data.label},r.getValue=function(t){return t.value},r.isHierarchyRoot=function(t){return&quot;&quot;===s(t)},r.setSliceCursor=function(t,e,n){var i=n.isTransitioning;if(!i){var o=t.datum();i=n.hideOnRoot&amp;&amp;r.isHierarchyRoot(o)||n.hideOnLeaves&amp;&amp;r.isLeaf(o)}a(t,i?null:&quot;pointer&quot;)},r.getInsideTextFontKey=function(t,e,r,i,a){var o=(a||{}).onPathbar?&quot;pathbar.textfont&quot;:&quot;insidetextfont&quot;,s=r.data.data.i;return n.castOption(e,s,o+&quot;.&quot;+t)||n.castOption(e,s,&quot;textfont.&quot;+t)||i.size},r.getOutsideTextFontKey=function(t,e,r,i){var a=r.data.data.i;return n.castOption(e,a,&quot;outsidetextfont.&quot;+t)||n.castOption(e,a,&quot;textfont.&quot;+t)||i.size},r.isOutsideText=function(t,e){return!t._hasColorscale&amp;&amp;r.isHierarchyRoot(e)},r.determineTextFont=function(t,e,a,o){return r.isOutsideText(t,e)?function(t,e,n){return{color:r.getOutsideTextFontKey(&quot;color&quot;,t,e,n),family:r.getOutsideTextFontKey(&quot;family&quot;,t,e,n),size:r.getOutsideTextFontKey(&quot;size&quot;,t,e,n)}}(t,e,a):function(t,e,a,o){var s=(o||{}).onPathbar,l=e.data.data,c=l.i,u=n.castOption(t,c,(s?&quot;pathbar.textfont&quot;:&quot;insidetextfont&quot;)+&quot;.color&quot;);return!u&amp;&amp;t._input.textfont&amp;&amp;(u=n.castOption(t._input,c,&quot;textfont.color&quot;)),{color:u||i.contrast(l.color),family:r.getInsideTextFontKey(&quot;family&quot;,t,e,a,o),size:r.getInsideTextFontKey(&quot;size&quot;,t,e,a,o)}}(t,e,a,o)},r.hasTransition=function(t){return!!(t&amp;&amp;t.duration&gt;0)},r.getMaxDepth=function(t){return t.maxdepth&gt;=0?t.maxdepth:1/0},r.isHeader=function(t,e){return!(r.isLeaf(t)||t.depth===e._maxDepth-1)},r.getParent=function(t,e){return r.findEntryWithLevel(t,s(e))},r.listPath=function(t,e){var n=t.parent;if(!n)return[];var i=e?[n.data[e]]:[n];return r.listPath(n,e).concat(i)},r.getPath=function(t){return r.listPath(t,&quot;label&quot;).join(&quot;/&quot;)+&quot;/&quot;},r.formatValue=o.formatPieValue,r.formatPercent=function(t,e){var r=n.formatPercent(t,0);return&quot;0%&quot;===r&amp;&amp;(r=o.formatPiePercent(t,e)),r}},{&quot;../../components/color&quot;:366,&quot;../../lib&quot;:503,&quot;../../lib/setcursor&quot;:524,&quot;../pie/helpers&quot;:905}],1052:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;sunburst&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:944,&quot;./attributes&quot;:1045,&quot;./base_plot&quot;:1046,&quot;./calc&quot;:1047,&quot;./defaults&quot;:1049,&quot;./layout_attributes&quot;:1053,&quot;./layout_defaults&quot;:1054,&quot;./plot&quot;:1055,&quot;./style&quot;:1056}],1053:[function(t,e,r){&quot;use strict&quot;;e.exports={sunburstcolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendsunburstcolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1054:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;sunburstcolorway&quot;,e.colorway),r(&quot;extendsunburstcolors&quot;)}},{&quot;../../lib&quot;:503,&quot;./layout_attributes&quot;:1053}],1055:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-hierarchy&quot;),a=t(&quot;d3-interpolate&quot;).interpolate,o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../bar/uniform_text&quot;),u=c.recordMinTextSize,f=c.clearMinTextSize,h=t(&quot;../pie/plot&quot;),p=t(&quot;../pie/helpers&quot;).getRotationAngle,d=h.computeTransform,m=h.transformInsideText,g=t(&quot;./style&quot;).styleOne,v=t(&quot;../bar/style&quot;).resizeText,y=t(&quot;./fx&quot;),x=t(&quot;./constants&quot;),b=t(&quot;./helpers&quot;);function _(t,e,c,f){var h=t._fullLayout,v=!h.uniformtext.mode&amp;&amp;b.hasTransition(f),_=n.select(c).selectAll(&quot;g.slice&quot;),T=e[0],k=T.trace,A=T.hierarchy,M=b.findEntryWithLevel(A,k.level),S=b.getMaxDepth(k),E=h._size,L=k.domain,C=E.w*(L.x[1]-L.x[0]),P=E.h*(L.y[1]-L.y[0]),I=.5*Math.min(C,P),O=T.cx=E.l+E.w*(L.x[1]+L.x[0])/2,z=T.cy=E.t+E.h*(1-L.y[0])-P/2;if(!M)return _.remove();var D=null,R={};v&amp;&amp;_.each((function(t){R[b.getPtId(t)]={rpx0:t.rpx0,rpx1:t.rpx1,x0:t.x0,x1:t.x1,transform:t.transform},!D&amp;&amp;b.isEntry(t)&amp;&amp;(D=t)}));var F=function(t){return i.partition().size([2*Math.PI,t.height+1])(t)}(M).descendants(),B=M.height+1,N=0,j=S;T.hasMultipleRoots&amp;&amp;b.isHierarchyRoot(M)&amp;&amp;(F=F.slice(1),B-=1,N=1,j+=1),F=F.filter((function(t){return t.y1&lt;=j}));var U=p(k.rotation);U&amp;&amp;F.forEach((function(t){t.x0+=U,t.x1+=U}));var V=Math.min(B,S),H=function(t){return(t-N)/V*I},q=function(t,e){return[t*Math.cos(e),-t*Math.sin(e)]},G=function(t){return s.pathAnnulus(t.rpx0,t.rpx1,t.x0,t.x1,O,z)},Y=function(t){return O+w(t)[0]*(t.transform.rCenter||0)+(t.transform.x||0)},W=function(t){return z+w(t)[1]*(t.transform.rCenter||0)+(t.transform.y||0)};(_=_.data(F,b.getPtId)).enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),v?_.exit().transition().each((function(){var t=n.select(this);t.select(&quot;path.surface&quot;).transition().attrTween(&quot;d&quot;,(function(t){var e=function(t){var e,r=b.getPtId(t),n=R[r],i=R[b.getPtId(M)];if(i){var o=(t.x1&gt;i.x1?2*Math.PI:0)+U;e=t.rpx1&lt;i.rpx1?{x0:t.x0,x1:t.x1,rpx0:0,rpx1:0}:{x0:o,x1:o,rpx0:t.rpx0,rpx1:t.rpx1}}else{var s,l=b.getPtId(t.parent);_.each((function(t){if(b.getPtId(t)===l)return s=t}));var c,u=s.children;u.forEach((function(t,e){if(b.getPtId(t)===r)return c=e}));var f=u.length,h=a(s.x0,s.x1);e={rpx0:I,rpx1:I,x0:h(c/f),x1:h((c+1)/f)}}return a(n,e)}(t);return function(t){return G(e(t))}})),t.select(&quot;g.slicetext&quot;).attr(&quot;opacity&quot;,0)})).remove():_.exit().remove(),_.order();var X=null;if(v&amp;&amp;D){var Z=b.getPtId(D);_.each((function(t){null===X&amp;&amp;b.getPtId(t)===Z&amp;&amp;(X=t.x1)}))}var J=_;function K(t){var e=t.parent,r=R[b.getPtId(e)],n={};if(r){var i=e.children,o=i.indexOf(t),s=i.length,l=a(r.x0,r.x1);n.x0=l(o/s),n.x1=l(o/s)}else n.x0=n.x1=0;return n}v&amp;&amp;(J=J.transition().each(&quot;end&quot;,(function(){var e=n.select(this);b.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})}))),J.each((function(i){var c=n.select(this),f=s.ensureSingle(c,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));i.rpx0=H(i.y0),i.rpx1=H(i.y1),i.xmid=(i.x0+i.x1)/2,i.pxmid=q(i.rpx1,i.xmid),i.midangle=-(i.xmid-Math.PI/2),i.startangle=-(i.x0-Math.PI/2),i.stopangle=-(i.x1-Math.PI/2),i.halfangle=.5*Math.min(s.angleDelta(i.x0,i.x1)||Math.PI,Math.PI),i.ring=1-i.rpx0/i.rpx1,i.rInscribed=function(t){return 0===t.rpx0&amp;&amp;s.isFullCircle([t.x0,t.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2))}(i),v?f.transition().attrTween(&quot;d&quot;,(function(t){var e=function(t){var e,r=R[b.getPtId(t)],n={x0:t.x0,x1:t.x1,rpx0:t.rpx0,rpx1:t.rpx1};if(r)e=r;else if(D)if(t.parent)if(X){var i=(t.x1&gt;X?2*Math.PI:0)+U;e={x0:i,x1:i}}else e={rpx0:I,rpx1:I},s.extendFlat(e,K(t));else e={rpx0:0,rpx1:0};else e={x0:U,x1:U};return a(e,n)}(t);return function(t){return G(e(t))}})):f.attr(&quot;d&quot;,G),c.call(y,M,t,e,{eventDataKeys:x.eventDataKeys,transitionTime:x.CLICK_TRANSITION_TIME,transitionEasing:x.CLICK_TRANSITION_EASING}).call(b.setSliceCursor,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:t._transitioning}),f.call(g,i,k);var p=s.ensureSingle(c,&quot;g&quot;,&quot;slicetext&quot;),_=s.ensureSingle(p,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),w=s.ensureUniformFontSize(t,b.determineTextFont(k,i,h.font));_.text(r.formatSliceLabel(i,M,k,e,h)).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(o.font,w).call(l.convertToTspans,t);var A=o.bBox(_.node());i.transform=m(A,i,T),i.transform.targetX=Y(i),i.transform.targetY=W(i);var S=function(t,e){var r=t.transform;return d(r,e),r.fontSize=w.size,u(k.type,r,h),s.getTextTransform(r)};v?_.transition().attrTween(&quot;transform&quot;,(function(t){var e=function(t){var e,r=R[b.getPtId(t)],n=t.transform;if(r)e=r;else if(e={rpx1:t.rpx1,transform:{textPosAngle:n.textPosAngle,scale:0,rotate:n.rotate,rCenter:n.rCenter,x:n.x,y:n.y}},D)if(t.parent)if(X){var i=t.x1&gt;X?2*Math.PI:0;e.x0=e.x1=i}else s.extendFlat(e,K(t));else e.x0=e.x1=U;else e.x0=e.x1=U;var o=a(e.transform.textPosAngle,t.transform.textPosAngle),l=a(e.rpx1,t.rpx1),c=a(e.x0,t.x0),f=a(e.x1,t.x1),p=a(e.transform.scale,n.scale),d=a(e.transform.rotate,n.rotate),m=0===n.rCenter?3:0===e.transform.rCenter?1/3:1,g=a(e.transform.rCenter,n.rCenter);return function(t){var e=l(t),r=c(t),i=f(t),a=function(t){return g(Math.pow(t,m))}(t),s={pxmid:q(e,(r+i)/2),rpx1:e,transform:{textPosAngle:o(t),rCenter:a,x:n.x,y:n.y}};return u(k.type,n,h),{transform:{targetX:Y(s),targetY:W(s),scale:p(t),rotate:d(t),rCenter:a}}}}(t);return function(t){return S(e(t),A)}})):_.attr(&quot;transform&quot;,S(i,A))}))}function w(t){return e=t.rpx1,r=t.transform.textPosAngle,[e*Math.sin(r),-e*Math.cos(r)];var e,r}r.plot=function(t,e,r,i){var a,o,s=t._fullLayout,l=s._sunburstlayer,c=!r,u=!s.uniformtext.mode&amp;&amp;b.hasTransition(r);(f(&quot;sunburst&quot;,s),(a=l.selectAll(&quot;g.trace.sunburst&quot;).data(e,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).classed(&quot;trace&quot;,!0).classed(&quot;sunburst&quot;,!0).attr(&quot;stroke-linejoin&quot;,&quot;round&quot;),a.order(),u)?(i&amp;&amp;(o=i()),n.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){o&amp;&amp;o()})).each(&quot;interrupt&quot;,(function(){o&amp;&amp;o()})).each((function(){l.selectAll(&quot;g.trace&quot;).each((function(e){_(t,e,this,r)}))}))):(a.each((function(e){_(t,e,this,r)})),s.uniformtext.mode&amp;&amp;v(t,s._sunburstlayer.selectAll(&quot;.trace&quot;),&quot;sunburst&quot;));c&amp;&amp;a.exit().remove()},r.formatSliceLabel=function(t,e,r,n,i){var a=r.texttemplate,o=r.textinfo;if(!(a||o&amp;&amp;&quot;none&quot;!==o))return&quot;&quot;;var l=i.separators,c=n[0],u=t.data.data,f=c.hierarchy,h=b.isHierarchyRoot(t),p=b.getParent(f,t),d=b.getValue(t);if(!a){var m,g=o.split(&quot;+&quot;),v=function(t){return-1!==g.indexOf(t)},y=[];if(v(&quot;label&quot;)&amp;&amp;u.label&amp;&amp;y.push(u.label),u.hasOwnProperty(&quot;v&quot;)&amp;&amp;v(&quot;value&quot;)&amp;&amp;y.push(b.formatValue(u.v,l)),!h){v(&quot;current path&quot;)&amp;&amp;y.push(b.getPath(t.data));var x=0;v(&quot;percent parent&quot;)&amp;&amp;x++,v(&quot;percent entry&quot;)&amp;&amp;x++,v(&quot;percent root&quot;)&amp;&amp;x++;var _=x&gt;1;if(x){var w,T=function(t){m=b.formatPercent(w,l),_&amp;&amp;(m+=&quot; of &quot;+t),y.push(m)};v(&quot;percent parent&quot;)&amp;&amp;!h&amp;&amp;(w=d/b.getValue(p),T(&quot;parent&quot;)),v(&quot;percent entry&quot;)&amp;&amp;(w=d/b.getValue(e),T(&quot;entry&quot;)),v(&quot;percent root&quot;)&amp;&amp;(w=d/b.getValue(f),T(&quot;root&quot;))}}return v(&quot;text&quot;)&amp;&amp;(m=s.castOption(r,u.i,&quot;text&quot;),s.isValidTextValue(m)&amp;&amp;y.push(m)),y.join(&quot;&lt;br&gt;&quot;)}var k=s.castOption(r,u.i,&quot;texttemplate&quot;);if(!k)return&quot;&quot;;var A={};u.label&amp;&amp;(A.label=u.label),u.hasOwnProperty(&quot;v&quot;)&amp;&amp;(A.value=u.v,A.valueLabel=b.formatValue(u.v,l)),A.currentPath=b.getPath(t.data),h||(A.percentParent=d/b.getValue(p),A.percentParentLabel=b.formatPercent(A.percentParent,l),A.parent=b.getPtLabel(p)),A.percentEntry=d/b.getValue(e),A.percentEntryLabel=b.formatPercent(A.percentEntry,l),A.entry=b.getPtLabel(e),A.percentRoot=d/b.getValue(f),A.percentRootLabel=b.formatPercent(A.percentRoot,l),A.root=b.getPtLabel(f),u.hasOwnProperty(&quot;color&quot;)&amp;&amp;(A.color=u.color);var M=s.castOption(r,u.i,&quot;text&quot;);return(s.isValidTextValue(M)||&quot;&quot;===M)&amp;&amp;(A.text=M),A.customdata=s.castOption(r,u.i,&quot;customdata&quot;),s.texttemplateString(k,A,i._d3locale,A,r._meta||{})}},{&quot;../../components/drawing&quot;:388,&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;../bar/style&quot;:662,&quot;../bar/uniform_text&quot;:664,&quot;../pie/helpers&quot;:905,&quot;../pie/plot&quot;:909,&quot;./constants&quot;:1048,&quot;./fx&quot;:1050,&quot;./helpers&quot;:1051,&quot;./style&quot;:1056,&quot;@plotly/d3&quot;:58,&quot;d3-hierarchy&quot;:115,&quot;d3-interpolate&quot;:116}],1056:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../bar/uniform_text&quot;).resizeText;function s(t,e,r){var n=e.data.data,o=!e.children,s=n.i,l=a.castOption(r,s,&quot;marker.line.color&quot;)||i.defaultLine,c=a.castOption(r,s,&quot;marker.line.width&quot;)||0;t.style(&quot;stroke-width&quot;,c).call(i.fill,n.color).call(i.stroke,l).style(&quot;opacity&quot;,o?r.leaf.opacity:null)}e.exports={style:function(t){var e=t._fullLayout._sunburstlayer.selectAll(&quot;.trace&quot;);o(t,e,&quot;sunburst&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(s,t,r)}))}))},styleOne:s}},{&quot;../../components/color&quot;:366,&quot;../../lib&quot;:503,&quot;../bar/uniform_text&quot;:664,&quot;@plotly/d3&quot;:58}],1057:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=t(&quot;../../plot_api/edit_types&quot;).overrideAll;function u(t){return{show:{valType:&quot;boolean&quot;,dflt:!1},start:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;},end:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;},size:{valType:&quot;number&quot;,dflt:null,min:0,editType:&quot;plot&quot;},project:{x:{valType:&quot;boolean&quot;,dflt:!1},y:{valType:&quot;boolean&quot;,dflt:!1},z:{valType:&quot;boolean&quot;,dflt:!1}},color:{valType:&quot;color&quot;,dflt:n.defaultLine},usecolormap:{valType:&quot;boolean&quot;,dflt:!1},width:{valType:&quot;number&quot;,min:1,max:16,dflt:2},highlight:{valType:&quot;boolean&quot;,dflt:!0},highlightcolor:{valType:&quot;color&quot;,dflt:n.defaultLine},highlightwidth:{valType:&quot;number&quot;,min:1,max:16,dflt:2}}}var f=e.exports=c(l({z:{valType:&quot;data_array&quot;},x:{valType:&quot;data_array&quot;},y:{valType:&quot;data_array&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertemplate:o(),xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),zhoverformat:a(&quot;z&quot;),connectgaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},surfacecolor:{valType:&quot;data_array&quot;}},i(&quot;&quot;,{colorAttr:&quot;z or surfacecolor&quot;,showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}),{contours:{x:u(),y:u(),z:u()},hidesurface:{valType:&quot;boolean&quot;,dflt:!1},lightposition:{x:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:10},y:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:1e4},z:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:&quot;number&quot;,min:0,max:1,dflt:.8},diffuse:{valType:&quot;number&quot;,min:0,max:1,dflt:.8},specular:{valType:&quot;number&quot;,min:0,max:2,dflt:.05},roughness:{valType:&quot;number&quot;,min:0,max:1,dflt:.5},fresnel:{valType:&quot;number&quot;,min:0,max:5,dflt:.2}},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},opacityscale:{valType:&quot;any&quot;,editType:&quot;calc&quot;},_deprecated:{zauto:l({},i.zauto,{}),zmin:l({},i.zmin,{}),zmax:l({},i.zmax,{})},hoverinfo:l({},s.hoverinfo),showlegend:l({},s.showlegend,{dflt:!1})}),&quot;calc&quot;,&quot;nested&quot;);f.x.editType=f.y.editType=f.z.editType=&quot;calc+clearAxisTypes&quot;,f.transforms=void 0},{&quot;../../components/color&quot;:366,&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plot_api/edit_types&quot;:536,&quot;../../plots/attributes&quot;:550,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/template_attributes&quot;:633}],1058:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){e.surfacecolor?n(t,e,{vals:e.surfacecolor,containerStr:&quot;&quot;,cLetter:&quot;c&quot;}):n(t,e,{vals:e.z,containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:374}],1059:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../stackgl_modules&quot;).gl_surface3d,i=t(&quot;../../../stackgl_modules&quot;).ndarray,a=t(&quot;../../../stackgl_modules&quot;).ndarray_linear_interpolate.d2,o=t(&quot;../heatmap/interp2d&quot;),s=t(&quot;../heatmap/find_empties&quot;),l=t(&quot;../../lib&quot;).isArrayOrTypedArray,c=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,u=t(&quot;../../lib/str2rgbarray&quot;),f=t(&quot;../../components/colorscale&quot;).extractOpts;function h(t,e,r){this.scene=t,this.uid=r,this.surface=e,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var p=h.prototype;p.getXat=function(t,e,r,n){var i=l(this.data.x)?l(this.data.x[0])?this.data.x[e][t]:this.data.x[t]:t;return void 0===r?i:n.d2l(i,0,r)},p.getYat=function(t,e,r,n){var i=l(this.data.y)?l(this.data.y[0])?this.data.y[e][t]:this.data.y[e]:e;return void 0===r?i:n.d2l(i,0,r)},p.getZat=function(t,e,r,n){var i=this.data.z[e][t];return null===i&amp;&amp;this.data.connectgaps&amp;&amp;this.data._interpolatedZ&amp;&amp;(i=this.data._interpolatedZ[e][t]),void 0===r?i:n.d2l(i,0,r)},p.handlePick=function(t){if(t.object===this.surface){var e=(t.data.index[0]-1)/this.dataScaleX-1,r=(t.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(e),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);t.index=[n,i],t.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],t.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a&lt;3;a++){var o=t.dataCoordinate[a];null!=o&amp;&amp;(t.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return Array.isArray(s)&amp;&amp;s[i]&amp;&amp;void 0!==s[i][n]?t.textLabel=s[i][n]:t.textLabel=s||&quot;&quot;,t.data.dataCoordinate=t.dataCoordinate.slice(),this.surface.highlight(t.data),this.scene.glplot.spikes.position=t.dataCoordinate,!0}};var d=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function m(t,e){if(t&lt;e)return 0;for(var r=0;0===Math.floor(t%e);)t/=e,r++;return r}function g(t){for(var e=[],r=0;r&lt;d.length;r++){var n=d[r];e.push(m(t,n))}return e}function v(t){for(var e=g(t),r=t,n=0;n&lt;d.length;n++)if(e[n]&gt;0){r=d[n];break}return r}function y(t,e){if(!(t&lt;1||e&lt;1)){for(var r=g(t),n=g(e),i=1,a=0;a&lt;d.length;a++)i*=Math.pow(d[a],Math.max(r[a],n[a]));return i}}p.calcXnums=function(t){var e,r=[];for(e=1;e&lt;t;e++){var n=this.getXat(e-1,0),i=this.getXat(e,0);r[e-1]=i!==n&amp;&amp;null!=n&amp;&amp;null!=i?Math.abs(i-n):0}var a=0;for(e=1;e&lt;t;e++)a+=r[e-1];for(e=1;e&lt;t;e++)0===r[e-1]?r[e-1]=1:r[e-1]=Math.round(a/r[e-1]);return r},p.calcYnums=function(t){var e,r=[];for(e=1;e&lt;t;e++){var n=this.getYat(0,e-1),i=this.getYat(0,e);r[e-1]=i!==n&amp;&amp;null!=n&amp;&amp;null!=i?Math.abs(i-n):0}var a=0;for(e=1;e&lt;t;e++)a+=r[e-1];for(e=1;e&lt;t;e++)0===r[e-1]?r[e-1]=1:r[e-1]=Math.round(a/r[e-1]);return r};var x=[1,2,4,6,12,24,36,48,60,120,180,240,360,720,840,1260],b=x[9],_=x[13];function w(t,e,r){var n=r[8]+r[2]*e[0]+r[5]*e[1];return t[0]=(r[6]+r[0]*e[0]+r[3]*e[1])/n,t[1]=(r[7]+r[1]*e[0]+r[4]*e[1])/n,t}function T(t,e,r){return function(t,e,r,n){for(var i=[0,0],o=t.shape[0],s=t.shape[1],l=0;l&lt;o;l++)for(var c=0;c&lt;s;c++)r(i,[l,c],n),t.set(l,c,a(e,i[0],i[1]))}(t,e,w,r),t}function k(t,e){for(var r=!1,n=0;n&lt;t.length;n++)if(e===t[n]){r=!0;break}!1===r&amp;&amp;t.push(e)}p.estimateScale=function(t,e){for(var r=1+function(t){if(0!==t.length){for(var e=1,r=0;r&lt;t.length;r++)e=y(e,t[r]);return e}}(0===e?this.calcXnums(t):this.calcYnums(t));r&lt;b;)r*=2;for(;r&gt;_;)r--,r/=v(r),++r&lt;b&amp;&amp;(r=_);var n=Math.round(r/t);return n&gt;1?n:1},p.refineCoords=function(t){for(var e=this.dataScaleX,r=this.dataScaleY,n=t[0].shape[0],a=t[0].shape[1],o=0|Math.floor(t[0].shape[0]*e+1),s=0|Math.floor(t[0].shape[1]*r+1),l=1+n+1,c=1+a+1,u=i(new Float32Array(l*c),[l,c]),f=[1/e,0,0,0,1/r,0,0,0,1],h=0;h&lt;t.length;++h){this.surface.padField(u,t[h]);var p=i(new Float32Array(o*s),[o,s]);T(p,u,f),t[h]=p}},p.setContourLevels=function(){var t,e,r,n=[[],[],[]],i=[!1,!1,!1],a=!1;for(t=0;t&lt;3;++t)if(this.showContour[t]&amp;&amp;(a=!0,this.contourSize[t]&gt;0&amp;&amp;null!==this.contourStart[t]&amp;&amp;null!==this.contourEnd[t]&amp;&amp;this.contourEnd[t]&gt;this.contourStart[t]))for(i[t]=!0,e=this.contourStart[t];e&lt;this.contourEnd[t];e+=this.contourSize[t])r=e*this.scene.dataScale[t],k(n[t],r);if(a){var o=[[],[],[]];for(t=0;t&lt;3;++t)this.showContour[t]&amp;&amp;(o[t]=i[t]?n[t]:this.scene.contourLevels[t]);this.surface.update({levels:o})}},p.update=function(t){var e,r,n,a,l=this.scene,h=l.fullSceneLayout,p=this.surface,d=c(t),m=l.dataScale,g=t.z[0].length,v=t._ylength,y=l.contourLevels;this.data=t;var x=[];for(e=0;e&lt;3;e++)for(x[e]=[],r=0;r&lt;g;r++)x[e][r]=[];for(r=0;r&lt;g;r++)for(n=0;n&lt;v;n++)x[0][r][n]=this.getXat(r,n,t.xcalendar,h.xaxis),x[1][r][n]=this.getYat(r,n,t.ycalendar,h.yaxis),x[2][r][n]=this.getZat(r,n,t.zcalendar,h.zaxis);if(t.connectgaps)for(t._emptypoints=s(x[2]),o(x[2],t._emptypoints),t._interpolatedZ=[],r=0;r&lt;g;r++)for(t._interpolatedZ[r]=[],n=0;n&lt;v;n++)t._interpolatedZ[r][n]=x[2][r][n];for(e=0;e&lt;3;e++)for(r=0;r&lt;g;r++)for(n=0;n&lt;v;n++)null==(a=x[e][r][n])?x[e][r][n]=NaN:a=x[e][r][n]*=m[e];for(e=0;e&lt;3;e++)for(r=0;r&lt;g;r++)for(n=0;n&lt;v;n++)null!=(a=x[e][r][n])&amp;&amp;(this.minValues[e]&gt;a&amp;&amp;(this.minValues[e]=a),this.maxValues[e]&lt;a&amp;&amp;(this.maxValues[e]=a));for(e=0;e&lt;3;e++)this.objectOffset[e]=.5*(this.minValues[e]+this.maxValues[e]);for(e=0;e&lt;3;e++)for(r=0;r&lt;g;r++)for(n=0;n&lt;v;n++)null!=(a=x[e][r][n])&amp;&amp;(x[e][r][n]-=this.objectOffset[e]);var b=[i(new Float32Array(g*v),[g,v]),i(new Float32Array(g*v),[g,v]),i(new Float32Array(g*v),[g,v])];for(e=0;e&lt;3;e++)for(r=0;r&lt;g;r++)for(n=0;n&lt;v;n++)b[e].set(r,n,x[e][r][n]);x=[];var w={colormap:d,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!t.hidesurface,contourProject:[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],contourWidth:[1,1,1],contourColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],contourTint:[1,1,1],dynamicColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],dynamicWidth:[1,1,1],dynamicTint:[1,1,1],opacityscale:t.opacityscale,opacity:t.opacity},T=f(t);if(w.intensityBounds=[T.min,T.max],t.surfacecolor){var k=i(new Float32Array(g*v),[g,v]);for(r=0;r&lt;g;r++)for(n=0;n&lt;v;n++)k.set(r,n,t.surfacecolor[n][r]);b.push(k)}else w.intensityBounds[0]*=m[2],w.intensityBounds[1]*=m[2];(_&lt;b[0].shape[0]||_&lt;b[0].shape[1])&amp;&amp;(this.refineData=!1),!0===this.refineData&amp;&amp;(this.dataScaleX=this.estimateScale(b[0].shape[0],0),this.dataScaleY=this.estimateScale(b[0].shape[1],1),1===this.dataScaleX&amp;&amp;1===this.dataScaleY||this.refineCoords(b)),t.surfacecolor&amp;&amp;(w.intensity=b.pop());var A=[!0,!0,!0],M=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(e=0;e&lt;3;++e){var S=t.contours[M[e]];A[e]=S.highlight,w.showContour[e]=S.show||S.highlight,w.showContour[e]&amp;&amp;(w.contourProject[e]=[S.project.x,S.project.y,S.project.z],S.show?(this.showContour[e]=!0,w.levels[e]=y[e],p.highlightColor[e]=w.contourColor[e]=u(S.color),S.usecolormap?p.highlightTint[e]=w.contourTint[e]=0:p.highlightTint[e]=w.contourTint[e]=1,w.contourWidth[e]=S.width,this.contourStart[e]=S.start,this.contourEnd[e]=S.end,this.contourSize[e]=S.size):(this.showContour[e]=!1,this.contourStart[e]=null,this.contourEnd[e]=null,this.contourSize[e]=0),S.highlight&amp;&amp;(w.dynamicColor[e]=u(S.highlightcolor),w.dynamicWidth[e]=S.highlightwidth))}(function(t){var e=t[0].rgb,r=t[t.length-1].rgb;return e[0]===r[0]&amp;&amp;e[1]===r[1]&amp;&amp;e[2]===r[2]&amp;&amp;e[3]===r[3]})(d)&amp;&amp;(w.vertexColor=!0),w.objectOffset=this.objectOffset,w.coords=b,p.update(w),p.visible=t.visible,p.enableDynamic=A,p.enableHighlight=A,p.snapToData=!0,&quot;lighting&quot;in t&amp;&amp;(p.ambientLight=t.lighting.ambient,p.diffuseLight=t.lighting.diffuse,p.specularLight=t.lighting.specular,p.roughness=t.lighting.roughness,p.fresnel=t.lighting.fresnel),&quot;lightposition&quot;in t&amp;&amp;(p.lightPosition=[t.lightposition.x,t.lightposition.y,t.lightposition.z])},p.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new h(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../../stackgl_modules&quot;:1120,&quot;../../components/colorscale&quot;:378,&quot;../../lib&quot;:503,&quot;../../lib/gl_format_color&quot;:499,&quot;../../lib/str2rgbarray&quot;:528,&quot;../heatmap/find_empties&quot;:798,&quot;../heatmap/interp2d&quot;:801}],1060:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r,n){var i=n(&quot;opacityscale&quot;);&quot;max&quot;===i?e.opacityscale=[[0,.1],[1,1]]:&quot;min&quot;===i?e.opacityscale=[[0,1],[1,.1]]:&quot;extremes&quot;===i?e.opacityscale=function(t,e){for(var r=[],n=0;n&lt;32;n++){var i=n/31,a=e+(1-e)*(1-Math.pow(Math.sin(t*i*Math.PI),2));r.push([i,Math.max(0,Math.min(1,a))])}return r}(1,.1):function(t){var e=0;if(!Array.isArray(t)||t.length&lt;2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r&lt;t.length;r++){var n=t[r];if(2!==n.length||+n[0]&lt;e)return!1;e=+n[0]}return!0}(i)||(e.opacityscale=void 0)}function l(t,e,r){e in t&amp;&amp;!(r in t)&amp;&amp;(t[r]=t[e])}e.exports={supplyDefaults:function(t,e,r,c){var u,f;function h(r,n){return i.coerce(t,e,o,r,n)}var p=h(&quot;x&quot;),d=h(&quot;y&quot;),m=h(&quot;z&quot;);if(!m||!m.length||p&amp;&amp;p.length&lt;1||d&amp;&amp;d.length&lt;1)e.visible=!1;else{e._xlength=Array.isArray(p)&amp;&amp;i.isArrayOrTypedArray(p[0])?m.length:m[0].length,e._ylength=m.length,n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],c),h(&quot;text&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;),h(&quot;xhoverformat&quot;),h(&quot;yhoverformat&quot;),h(&quot;zhoverformat&quot;),[&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;hidesurface&quot;,&quot;connectgaps&quot;,&quot;opacity&quot;].forEach((function(t){h(t)}));var g=h(&quot;surfacecolor&quot;),v=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(u=0;u&lt;3;++u){var y=&quot;contours.&quot;+v[u],x=h(y+&quot;.show&quot;),b=h(y+&quot;.highlight&quot;);if(x||b)for(f=0;f&lt;3;++f)h(y+&quot;.project.&quot;+v[f]);x&amp;&amp;(h(y+&quot;.color&quot;),h(y+&quot;.width&quot;),h(y+&quot;.usecolormap&quot;)),b&amp;&amp;(h(y+&quot;.highlightcolor&quot;),h(y+&quot;.highlightwidth&quot;)),h(y+&quot;.start&quot;),h(y+&quot;.end&quot;),h(y+&quot;.size&quot;)}g||(l(t,&quot;zmin&quot;,&quot;cmin&quot;),l(t,&quot;zmax&quot;,&quot;cmax&quot;),l(t,&quot;zauto&quot;,&quot;cauto&quot;)),a(t,e,c,h,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(t,e,c,h),e._length=null}},opacityscaleDefaults:s}},{&quot;../../components/colorscale/defaults&quot;:376,&quot;../../lib&quot;:503,&quot;../../registry&quot;:638,&quot;./attributes&quot;:1057}],1061:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;surface&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;2dMap&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:598,&quot;./attributes&quot;:1057,&quot;./calc&quot;:1058,&quot;./convert&quot;:1059,&quot;./defaults&quot;:1060}],1062:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/annotations/attributes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../../plot_api/edit_types&quot;).overrideAll,o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).descriptionOnlyNumbers;(e.exports=a({domain:s({name:&quot;table&quot;,trace:!0}),columnwidth:{valType:&quot;number&quot;,arrayOk:!0,dflt:null},columnorder:{valType:&quot;data_array&quot;},header:{values:{valType:&quot;data_array&quot;,dflt:[]},format:{valType:&quot;data_array&quot;,dflt:[],description:l(&quot;cell value&quot;)},prefix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},suffix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},height:{valType:&quot;number&quot;,dflt:28},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:&quot;number&quot;,arrayOk:!0,dflt:1},color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;grey&quot;}},fill:{color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;white&quot;}},font:i({},o({arrayOk:!0}))},cells:{values:{valType:&quot;data_array&quot;,dflt:[]},format:{valType:&quot;data_array&quot;,dflt:[],description:l(&quot;cell value&quot;)},prefix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},suffix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},height:{valType:&quot;number&quot;,dflt:20},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:&quot;number&quot;,arrayOk:!0,dflt:1},color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;grey&quot;}},fill:{color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;white&quot;}},font:i({},o({arrayOk:!0}))}},&quot;calc&quot;,&quot;from-root&quot;)).transforms=void 0},{&quot;../../components/annotations/attributes&quot;:349,&quot;../../lib/extend&quot;:493,&quot;../../plot_api/edit_types&quot;:536,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/domain&quot;:584,&quot;../../plots/font_attributes&quot;:585}],1063:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getModuleCalcData,i=t(&quot;./plot&quot;);r.name=&quot;table&quot;,r.plot=function(t){var e=n(t.calcdata,&quot;table&quot;)[0];e.length&amp;&amp;i(t,e)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;table&quot;),a=e._has&amp;&amp;e._has(&quot;table&quot;);i&amp;&amp;!a&amp;&amp;n._paperdiv.selectAll(&quot;.table&quot;).remove()}},{&quot;../../plots/get_data&quot;:593,&quot;./plot&quot;:1070}],1064:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/gup&quot;).wrap;e.exports=function(){return n({})}},{&quot;../../lib/gup&quot;:500}],1065:[function(t,e,r){&quot;use strict&quot;;e.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:&quot;&lt;br&gt;&quot;,maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:&quot;cubic-out&quot;,scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:&quot;cubic-out&quot;,uplift:5,wrapSpacer:&quot; &quot;,wrapSplitCharacter:&quot; &quot;,cn:{table:&quot;table&quot;,tableControlView:&quot;table-control-view&quot;,scrollBackground:&quot;scroll-background&quot;,yColumn:&quot;y-column&quot;,columnBlock:&quot;column-block&quot;,scrollAreaClip:&quot;scroll-area-clip&quot;,scrollAreaClipRect:&quot;scroll-area-clip-rect&quot;,columnBoundary:&quot;column-boundary&quot;,columnBoundaryClippath:&quot;column-boundary-clippath&quot;,columnBoundaryRect:&quot;column-boundary-rect&quot;,columnCells:&quot;column-cells&quot;,columnCell:&quot;column-cell&quot;,cellRect:&quot;cell-rect&quot;,cellText:&quot;cell-text&quot;,cellTextHolder:&quot;cell-text-holder&quot;,scrollbarKit:&quot;scrollbar-kit&quot;,scrollbar:&quot;scrollbar&quot;,scrollbarSlider:&quot;scrollbar-slider&quot;,scrollbarGlyph:&quot;scrollbar-glyph&quot;,scrollbarCaptureZone:&quot;scrollbar-capture-zone&quot;}}},{}],1066:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;fast-isnumeric&quot;);function o(t){if(Array.isArray(t)){for(var e=0,r=0;r&lt;t.length;r++)e=Math.max(e,o(t[r]));return e}return t}function s(t,e){return t+e}function l(t){var e,r=t.slice(),n=1/0,i=0;for(e=0;e&lt;r.length;e++)Array.isArray(r[e])||(r[e]=[r[e]]),n=Math.min(n,r[e].length),i=Math.max(i,r[e].length);if(n!==i)for(e=0;e&lt;r.length;e++){var a=i-r[e].length;a&amp;&amp;(r[e]=r[e].concat(c(a)))}return r}function c(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=&quot;&quot;;return e}function u(t){return t.calcdata.columns.reduce((function(e,r){return r.xIndex&lt;t.xIndex?e+r.columnWidth:e}),0)}function f(t,e){return Object.keys(t).map((function(r){return i({},t[r],{auxiliaryBlocks:e})}))}function h(t,e){for(var r,n={},i=0,a=0,o={firstRowIndex:null,lastRowIndex:null,rows:[]},s=0,l=0,c=0;c&lt;t.length;c++)r=t[c],o.rows.push({rowIndex:c,rowHeight:r}),((a+=r)&gt;=e||c===t.length-1)&amp;&amp;(n[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=c,o={firstRowIndex:null,lastRowIndex:null,rows:[]},i+=a,s=c+1,a=0);return n}e.exports=function(t,e){var r=l(e.cells.values),p=function(t){return t.slice(e.header.values.length,t.length)},d=l(e.header.values);d.length&amp;&amp;!d[0].length&amp;&amp;(d[0]=[&quot;&quot;],d=l(d));var m=d.concat(p(r).map((function(){return c((d[0]||[&quot;&quot;]).length)}))),g=e.domain,v=Math.floor(t._fullLayout._size.w*(g.x[1]-g.x[0])),y=Math.floor(t._fullLayout._size.h*(g.y[1]-g.y[0])),x=e.header.values.length?m[0].map((function(){return e.header.height})):[n.emptyHeaderHeight],b=r.length?r[0].map((function(){return e.cells.height})):[],_=x.reduce(s,0),w=h(b,y-_+n.uplift),T=f(h(x,_),[]),k=f(w,T),A={},M=e._fullInput.columnorder.concat(p(r.map((function(t,e){return e})))),S=m.map((function(t,r){var n=Array.isArray(e.columnwidth)?e.columnwidth[Math.min(r,e.columnwidth.length-1)]:e.columnwidth;return a(n)?Number(n):1})),E=S.reduce(s,0);S=S.map((function(t){return t/E*v}));var L=Math.max(o(e.header.line.width),o(e.cells.line.width)),C={key:e.uid+t._context.staticPlot,translateX:g.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-g.y[1]),size:t._fullLayout._size,width:v,maxLineWidth:L,height:y,columnOrder:M,groupHeight:y,rowBlocks:k,headerRowBlocks:T,scrollY:0,cells:i({},e.cells,{values:r}),headerCells:i({},e.header,{values:m}),gdColumns:m.map((function(t){return t[0]})),gdColumnsOriginalOrder:m.map((function(t){return t[0]})),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:m.map((function(t,e){var r=A[t];return A[t]=(r||0)+1,{key:t+&quot;__&quot;+A[t],label:t,specIndex:e,xIndex:M[e],xScale:u,x:void 0,calcdata:void 0,columnWidth:S[e]}}))};return C.columns.forEach((function(t){t.calcdata=C,t.x=u(t)})),C}},{&quot;../../lib/extend&quot;:493,&quot;./constants&quot;:1065,&quot;fast-isnumeric&quot;:190}],1067:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat;r.splitToPanels=function(t){var e=[0,0],r=n({},t,{key:&quot;header&quot;,type:&quot;header&quot;,page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!0,values:t.calcdata.headerCells.values[t.specIndex],rowBlocks:t.calcdata.headerRowBlocks,calcdata:n({},t.calcdata,{cells:t.calcdata.headerCells})});return[n({},t,{key:&quot;cells1&quot;,type:&quot;cells&quot;,page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),n({},t,{key:&quot;cells2&quot;,type:&quot;cells&quot;,page:1,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),r]},r.splitToCells=function(t){var e=function(t){var e=t.rowBlocks[t.page],r=e?e.rows[0].rowIndex:0,n=e?r+e.rows.length:0;return[r,n]}(t);return(t.values||[]).slice(e[0],e[1]).map((function(r,n){return{keyWithinBlock:n+(&quot;string&quot;==typeof r&amp;&amp;r.match(/[&lt;$&amp;&gt; ]/)?&quot;_keybuster_&quot;+Math.random():&quot;&quot;),key:e[0]+n,column:t,calcdata:t.calcdata,page:t.page,rowBlocks:t.rowBlocks,value:r}}))}},{&quot;../../lib/extend&quot;:493}],1068:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults;e.exports=function(t,e,r,o){function s(r,a){return n.coerce(t,e,i,r,a)}a(e,o,s),s(&quot;columnwidth&quot;),s(&quot;header.values&quot;),s(&quot;header.format&quot;),s(&quot;header.align&quot;),s(&quot;header.prefix&quot;),s(&quot;header.suffix&quot;),s(&quot;header.height&quot;),s(&quot;header.line.width&quot;),s(&quot;header.line.color&quot;),s(&quot;header.fill.color&quot;),n.coerceFont(s,&quot;header.font&quot;,n.extendFlat({},o.font)),function(t,e){for(var r=t.columnorder||[],n=t.header.values.length,i=r.slice(0,n),a=i.slice().sort((function(t,e){return t-e})),o=i.map((function(t){return a.indexOf(t)})),s=o.length;s&lt;n;s++)o.push(s);e(&quot;columnorder&quot;,o)}(e,s),s(&quot;cells.values&quot;),s(&quot;cells.format&quot;),s(&quot;cells.align&quot;),s(&quot;cells.prefix&quot;),s(&quot;cells.suffix&quot;),s(&quot;cells.height&quot;),s(&quot;cells.line.width&quot;),s(&quot;cells.line.color&quot;),s(&quot;cells.fill.color&quot;),n.coerceFont(s,&quot;cells.font&quot;,n.extendFlat({},o.font)),e._length=null}},{&quot;../../lib&quot;:503,&quot;../../plots/domain&quot;:584,&quot;./attributes&quot;:1062}],1069:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),moduleType:&quot;trace&quot;,name:&quot;table&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1062,&quot;./base_plot&quot;:1063,&quot;./calc&quot;:1064,&quot;./defaults&quot;:1068,&quot;./plot&quot;:1070}],1070:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;@plotly/d3&quot;),a=t(&quot;../../lib&quot;).numberFormat,o=t(&quot;../../lib/gup&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../lib&quot;).raiseToTop,u=t(&quot;../../lib&quot;).strTranslate,f=t(&quot;../../lib&quot;).cancelTransition,h=t(&quot;./data_preparation_helper&quot;),p=t(&quot;./data_split_helpers&quot;),d=t(&quot;../../components/color&quot;);function m(t){return Math.ceil(t.calcdata.maxLineWidth/2)}function g(t,e){return&quot;clip&quot;+t._fullLayout._uid+&quot;_scrollAreaBottomClip_&quot;+e.key}function v(t,e){return&quot;clip&quot;+t._fullLayout._uid+&quot;_columnBoundaryClippath_&quot;+e.calcdata.key+&quot;_&quot;+e.specIndex}function y(t){return[].concat.apply([],t.map((function(t){return t}))).map((function(t){return t.__data__}))}function x(t,e,r){var a=t.selectAll(&quot;.&quot;+n.cn.scrollbarKit).data(o.repeat,o.keyFun);a.enter().append(&quot;g&quot;).classed(n.cn.scrollbarKit,!0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;),a.each((function(t){var e=t.scrollbarState;e.totalHeight=function(t){var e=t.rowBlocks;return D(e,e.length-1)+(e.length?R(e[e.length-1],1/0):1)}(t),e.scrollableAreaHeight=t.groupHeight-S(t),e.currentlyVisibleHeight=Math.min(e.totalHeight,e.scrollableAreaHeight),e.ratio=e.currentlyVisibleHeight/e.totalHeight,e.barLength=Math.max(e.ratio*e.currentlyVisibleHeight,n.goldenRatio*n.scrollbarWidth),e.barWiggleRoom=e.currentlyVisibleHeight-e.barLength,e.wiggleRoom=Math.max(0,e.totalHeight-e.scrollableAreaHeight),e.topY=0===e.barWiggleRoom?0:t.scrollY/e.wiggleRoom*e.barWiggleRoom,e.bottomY=e.topY+e.barLength,e.dragMultiplier=e.wiggleRoom/e.barWiggleRoom})).attr(&quot;transform&quot;,(function(t){var e=t.width+n.scrollbarWidth/2+n.scrollbarOffset;return u(e,S(t))}));var s=a.selectAll(&quot;.&quot;+n.cn.scrollbar).data(o.repeat,o.keyFun);s.enter().append(&quot;g&quot;).classed(n.cn.scrollbar,!0);var l=s.selectAll(&quot;.&quot;+n.cn.scrollbarSlider).data(o.repeat,o.keyFun);l.enter().append(&quot;g&quot;).classed(n.cn.scrollbarSlider,!0),l.attr(&quot;transform&quot;,(function(t){return u(0,t.scrollbarState.topY||0)}));var c=l.selectAll(&quot;.&quot;+n.cn.scrollbarGlyph).data(o.repeat,o.keyFun);c.enter().append(&quot;line&quot;).classed(n.cn.scrollbarGlyph,!0).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,n.scrollbarWidth).attr(&quot;stroke-linecap&quot;,&quot;round&quot;).attr(&quot;y1&quot;,n.scrollbarWidth/2),c.attr(&quot;y2&quot;,(function(t){return t.scrollbarState.barLength-n.scrollbarWidth/2})).attr(&quot;stroke-opacity&quot;,(function(t){return t.columnDragInProgress||!t.scrollbarState.barWiggleRoom||r?0:.4})),c.transition().delay(0).duration(0),c.transition().delay(n.scrollbarHideDelay).duration(n.scrollbarHideDuration).attr(&quot;stroke-opacity&quot;,0);var f=s.selectAll(&quot;.&quot;+n.cn.scrollbarCaptureZone).data(o.repeat,o.keyFun);f.enter().append(&quot;line&quot;).classed(n.cn.scrollbarCaptureZone,!0).attr(&quot;stroke&quot;,&quot;white&quot;).attr(&quot;stroke-opacity&quot;,.01).attr(&quot;stroke-width&quot;,n.scrollbarCaptureWidth).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;).attr(&quot;y1&quot;,0).on(&quot;mousedown&quot;,(function(r){var n=i.event.y,a=this.getBoundingClientRect(),o=r.scrollbarState,s=n-a.top,l=i.scale.linear().domain([0,o.scrollableAreaHeight]).range([0,o.totalHeight]).clamp(!0);o.topY&lt;=s&amp;&amp;s&lt;=o.bottomY||L(e,t,null,l(s-o.barLength/2))(r)})).call(i.behavior.drag().origin((function(t){return i.event.stopPropagation(),t.scrollbarState.scrollbarScrollInProgress=!0,t})).on(&quot;drag&quot;,L(e,t)).on(&quot;dragend&quot;,(function(){}))),f.attr(&quot;y2&quot;,(function(t){return t.scrollbarState.scrollableAreaHeight})),e._context.staticPlot&amp;&amp;(c.remove(),f.remove())}function b(t,e,r,a){var l=function(t){var e=t.selectAll(&quot;.&quot;+n.cn.columnCell).data(p.splitToCells,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;g&quot;).classed(n.cn.columnCell,!0),e.exit().remove(),e}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.columnCells).data(o.repeat,o.keyFun);return e.enter().append(&quot;g&quot;).classed(n.cn.columnCells,!0),e.exit().remove(),e}(r));!function(t){t.each((function(t,e){var r=t.calcdata.cells.font,n=t.column.specIndex,i={size:T(r.size,n,e),color:T(r.color,n,e),family:T(r.family,n,e)};t.rowNumber=t.key,t.align=T(t.calcdata.cells.align,n,e),t.cellBorderWidth=T(t.calcdata.cells.line.width,n,e),t.font=i}))}(l),function(t){t.attr(&quot;width&quot;,(function(t){return t.column.columnWidth})).attr(&quot;stroke-width&quot;,(function(t){return t.cellBorderWidth})).each((function(t){var e=i.select(this);d.stroke(e,T(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),d.fill(e,T(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))}))}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellRect).data(o.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;rect&quot;).classed(n.cn.cellRect,!0),e}(l));var c=function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellText).data(o.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;text&quot;).classed(n.cn.cellText,!0).style(&quot;cursor&quot;,(function(){return&quot;auto&quot;})).on(&quot;mousedown&quot;,(function(){i.event.stopPropagation()})),e}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellTextHolder).data(o.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;g&quot;).classed(n.cn.cellTextHolder,!0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;),e}(l));!function(t){t.each((function(t){s.font(i.select(this),t.font)}))}(c),_(c,e,a,t),z(l)}function _(t,e,r,o){t.text((function(t){var e=t.column.specIndex,r=t.rowNumber,i=t.value,o=&quot;string&quot;==typeof i,s=o&amp;&amp;i.match(/&lt;br&gt;/i),l=!o||s;t.mayHaveMarkup=o&amp;&amp;i.match(/[&lt;&amp;&gt;]/);var c,u=&quot;string&quot;==typeof(c=i)&amp;&amp;c.match(n.latexCheck);t.latex=u;var f,h,p=u?&quot;&quot;:T(t.calcdata.cells.prefix,e,r)||&quot;&quot;,d=u?&quot;&quot;:T(t.calcdata.cells.suffix,e,r)||&quot;&quot;,m=u?null:T(t.calcdata.cells.format,e,r)||null,g=p+(m?a(m)(t.value):t.value)+d;if(t.wrappingNeeded=!t.wrapped&amp;&amp;!l&amp;&amp;!u&amp;&amp;(f=w(g)),t.cellHeightMayIncrease=s||u||t.mayHaveMarkup||(void 0===f?w(g):f),t.needsConvertToTspans=t.mayHaveMarkup||t.wrappingNeeded||t.latex,t.wrappingNeeded){var v=(&quot; &quot;===n.wrapSplitCharacter?g.replace(/&lt;a href=/gi,&quot;&lt;a_href=&quot;):g).split(n.wrapSplitCharacter),y=&quot; &quot;===n.wrapSplitCharacter?v.map((function(t){return t.replace(/&lt;a_href=/gi,&quot;&lt;a href=&quot;)})):v;t.fragments=y.map((function(t){return{text:t,width:null}})),t.fragments.push({fragment:n.wrapSpacer,width:null}),h=y.join(n.lineBreaker)+n.lineBreaker+n.wrapSpacer}else delete t.fragments,h=g;return h})).attr(&quot;dy&quot;,(function(t){return t.needsConvertToTspans?0:&quot;0.75em&quot;})).each((function(t){var a=i.select(this),s=t.wrappingNeeded?P:I;t.needsConvertToTspans?l.convertToTspans(a,o,s(r,this,e,o,t)):i.select(this.parentNode).attr(&quot;transform&quot;,(function(t){return u(O(t),n.cellPad)})).attr(&quot;text-anchor&quot;,(function(t){return{left:&quot;start&quot;,center:&quot;middle&quot;,right:&quot;end&quot;}[t.align]}))}))}function w(t){return-1!==t.indexOf(n.wrapSplitCharacter)}function T(t,e,r){if(Array.isArray(t)){var n=t[Math.min(e,t.length-1)];return Array.isArray(n)?n[Math.min(r,n.length-1)]:n}return t}function k(t,e,r){t.transition().ease(n.releaseTransitionEase).duration(n.releaseTransitionDuration).attr(&quot;transform&quot;,u(e.x,r))}function A(t){return&quot;cells&quot;===t.type}function M(t){return&quot;header&quot;===t.type}function S(t){return(t.rowBlocks.length?t.rowBlocks[0].auxiliaryBlocks:[]).reduce((function(t,e){return t+R(e,1/0)}),0)}function E(t,e,r){var n=y(e)[0];if(void 0!==n){var i=n.rowBlocks,a=n.calcdata,o=D(i,i.length),s=n.calcdata.groupHeight-S(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),c=function(t,e,r){for(var n=[],i=0,a=0;a&lt;t.length;a++){for(var o=t[a],s=o.rows,l=0,c=0;c&lt;s.length;c++)l+=s[c].rowHeight;o.allRowsHeight=l;e&lt;i+l&amp;&amp;e+r&gt;i&amp;&amp;n.push(a),i+=l}return n}(i,l,s);1===c.length&amp;&amp;(c[0]===i.length-1?c.unshift(c[0]-1):c.push(c[0]+1)),c[0]%2&amp;&amp;c.reverse(),e.each((function(t,e){t.page=c[e],t.scrollY=l})),e.attr(&quot;transform&quot;,(function(t){var e=D(t.rowBlocks,t.page)-t.scrollY;return u(0,e)})),t&amp;&amp;(C(t,r,e,c,n.prevPages,n,0),C(t,r,e,c,n.prevPages,n,1),x(r,t))}}function L(t,e,r,a){return function(o){var s=o.calcdata?o.calcdata:o,l=e.filter((function(t){return s.key===t.key})),c=r||s.scrollbarState.dragMultiplier,u=s.scrollY;s.scrollY=void 0===a?s.scrollY+c*i.event.dy:a;var f=l.selectAll(&quot;.&quot;+n.cn.yColumn).selectAll(&quot;.&quot;+n.cn.columnBlock).filter(A);return E(t,f,l),s.scrollY===u}}function C(t,e,r,n,i,a,o){n[o]!==i[o]&amp;&amp;(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout((function(){var a=r.filter((function(t,e){return e===o&amp;&amp;n[e]!==i[e]}));b(t,e,a,r),i[o]=n[o]})))}function P(t,e,r,a){return function(){var o=i.select(e.parentNode);o.each((function(t){var e=t.fragments;o.selectAll(&quot;tspan.line&quot;).each((function(t,r){e[r].width=this.getComputedTextLength()}));var r,i,a=e[e.length-1].width,s=e.slice(0,-1),l=[],c=0,u=t.column.columnWidth-2*n.cellPad;for(t.value=&quot;&quot;;s.length;)c+(i=(r=s.shift()).width+a)&gt;u&amp;&amp;(t.value+=l.join(n.wrapSpacer)+n.lineBreaker,l=[],c=0),l.push(r.text),c+=i;c&amp;&amp;(t.value+=l.join(n.wrapSpacer)),t.wrapped=!0})),o.selectAll(&quot;tspan.line&quot;).remove(),_(o.select(&quot;.&quot;+n.cn.cellText),r,t,a),i.select(e.parentNode.parentNode).call(z)}}function I(t,e,r,a,o){return function(){if(!o.settledY){var s=i.select(e.parentNode),l=B(o),c=o.key-l.firstRowIndex,f=l.rows[c].rowHeight,h=o.cellHeightMayIncrease?e.parentNode.getBoundingClientRect().height+2*n.cellPad:f,p=Math.max(h,f);p-l.rows[c].rowHeight&amp;&amp;(l.rows[c].rowHeight=p,t.selectAll(&quot;.&quot;+n.cn.columnCell).call(z),E(null,t.filter(A),0),x(r,a,!0)),s.attr(&quot;transform&quot;,(function(){var t=this.parentNode.getBoundingClientRect(),e=i.select(this.parentNode).select(&quot;.&quot;+n.cn.cellRect).node().getBoundingClientRect(),r=this.transform.baseVal.consolidate(),a=e.top-t.top+(r?r.matrix.f:n.cellPad);return u(O(o,i.select(this.parentNode).select(&quot;.&quot;+n.cn.cellTextHolder).node().getBoundingClientRect().width),a)})),o.settledY=!0}}}function O(t,e){switch(t.align){case&quot;left&quot;:return n.cellPad;case&quot;right&quot;:return t.column.columnWidth-(e||0)-n.cellPad;case&quot;center&quot;:return(t.column.columnWidth-(e||0))/2;default:return n.cellPad}}function z(t){t.attr(&quot;transform&quot;,(function(t){var e=t.rowBlocks[0].auxiliaryBlocks.reduce((function(t,e){return t+R(e,1/0)}),0),r=R(B(t),t.key);return u(0,r+e)})).selectAll(&quot;.&quot;+n.cn.cellRect).attr(&quot;height&quot;,(function(t){return(e=B(t),r=t.key,e.rows[r-e.firstRowIndex]).rowHeight;var e,r}))}function D(t,e){for(var r=0,n=e-1;n&gt;=0;n--)r+=F(t[n]);return r}function R(t,e){for(var r=0,n=0;n&lt;t.rows.length&amp;&amp;t.rows[n].rowIndex&lt;e;n++)r+=t.rows[n].rowHeight;return r}function F(t){var e=t.allRowsHeight;if(void 0!==e)return e;for(var r=0,n=0;n&lt;t.rows.length;n++)r+=t.rows[n].rowHeight;return t.allRowsHeight=r,r}function B(t){return t.rowBlocks[t.page]}e.exports=function(t,e){var r=!t._context.staticPlot,a=t._fullLayout._paper.selectAll(&quot;.&quot;+n.cn.table).data(e.map((function(e){var r=o.unwrap(e).trace;return h(t,r)})),o.keyFun);a.exit().remove(),a.enter().append(&quot;g&quot;).classed(n.cn.table,!0).attr(&quot;overflow&quot;,&quot;visible&quot;).style(&quot;box-sizing&quot;,&quot;content-box&quot;).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;left&quot;,0).style(&quot;overflow&quot;,&quot;visible&quot;).style(&quot;shape-rendering&quot;,&quot;crispEdges&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;),a.attr(&quot;width&quot;,(function(t){return t.width+t.size.l+t.size.r})).attr(&quot;height&quot;,(function(t){return t.height+t.size.t+t.size.b})).attr(&quot;transform&quot;,(function(t){return u(t.translateX,t.translateY)}));var l=a.selectAll(&quot;.&quot;+n.cn.tableControlView).data(o.repeat,o.keyFun),d=l.enter().append(&quot;g&quot;).classed(n.cn.tableControlView,!0).style(&quot;box-sizing&quot;,&quot;content-box&quot;);if(r){var _=&quot;onwheel&quot;in document?&quot;wheel&quot;:&quot;mousewheel&quot;;d.on(&quot;mousemove&quot;,(function(e){l.filter((function(t){return e===t})).call(x,t)})).on(_,(function(e){if(!e.scrollbarState.wheeling){e.scrollbarState.wheeling=!0;var r=e.scrollY+i.event.deltaY;L(t,l,null,r)(e)||(i.event.stopPropagation(),i.event.preventDefault()),e.scrollbarState.wheeling=!1}})).call(x,t,!0)}l.attr(&quot;transform&quot;,(function(t){return u(t.size.l,t.size.t)}));var w=l.selectAll(&quot;.&quot;+n.cn.scrollBackground).data(o.repeat,o.keyFun);w.enter().append(&quot;rect&quot;).classed(n.cn.scrollBackground,!0).attr(&quot;fill&quot;,&quot;none&quot;),w.attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})),l.each((function(e){s.setClipUrl(i.select(this),g(t,e),t)}));var T=l.selectAll(&quot;.&quot;+n.cn.yColumn).data((function(t){return t.columns}),o.keyFun);T.enter().append(&quot;g&quot;).classed(n.cn.yColumn,!0),T.exit().remove(),T.attr(&quot;transform&quot;,(function(t){return u(t.x,0)})),r&amp;&amp;T.call(i.behavior.drag().origin((function(e){return k(i.select(this),e,-n.uplift),c(this),e.calcdata.columnDragInProgress=!0,x(l.filter((function(t){return e.calcdata.key===t.key})),t),e})).on(&quot;drag&quot;,(function(t){var e=i.select(this),r=function(e){return(t===e?i.event.x:e.x)+e.columnWidth/2};t.x=Math.max(-n.overdrag,Math.min(t.calcdata.width+n.overdrag-t.columnWidth,i.event.x)),y(T).filter((function(e){return e.calcdata.key===t.calcdata.key})).sort((function(t,e){return r(t)-r(e)})).forEach((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e)})),T.filter((function(e){return t!==e})).transition().ease(n.transitionEase).duration(n.transitionDuration).attr(&quot;transform&quot;,(function(t){return u(t.x,0)})),e.call(f).attr(&quot;transform&quot;,u(t.x,-n.uplift))})).on(&quot;dragend&quot;,(function(e){var r=i.select(this),n=e.calcdata;e.x=e.xScale(e),e.calcdata.columnDragInProgress=!1,k(r,e,0),function(t,e,r){var n=e.gdColumnsOriginalOrder;e.gdColumns.sort((function(t,e){return r[n.indexOf(t)]-r[n.indexOf(e)]})),e.columnorder=r,t.emit(&quot;plotly_restyle&quot;)}(t,n,n.columns.map((function(t){return t.xIndex})))}))),T.each((function(e){s.setClipUrl(i.select(this),v(t,e),t)}));var S=T.selectAll(&quot;.&quot;+n.cn.columnBlock).data(p.splitToPanels,o.keyFun);S.enter().append(&quot;g&quot;).classed(n.cn.columnBlock,!0).attr(&quot;id&quot;,(function(t){return t.key})),S.style(&quot;cursor&quot;,(function(t){return t.dragHandle?&quot;ew-resize&quot;:t.calcdata.scrollbarState.barWiggleRoom?&quot;ns-resize&quot;:&quot;default&quot;}));var C=S.filter(M),P=S.filter(A);r&amp;&amp;P.call(i.behavior.drag().origin((function(t){return i.event.stopPropagation(),t})).on(&quot;drag&quot;,L(t,l,-1)).on(&quot;dragend&quot;,(function(){}))),b(t,l,C,S),b(t,l,P,S);var I=l.selectAll(&quot;.&quot;+n.cn.scrollAreaClip).data(o.repeat,o.keyFun);I.enter().append(&quot;clipPath&quot;).classed(n.cn.scrollAreaClip,!0).attr(&quot;id&quot;,(function(e){return g(t,e)}));var O=I.selectAll(&quot;.&quot;+n.cn.scrollAreaClipRect).data(o.repeat,o.keyFun);O.enter().append(&quot;rect&quot;).classed(n.cn.scrollAreaClipRect,!0).attr(&quot;x&quot;,-n.overdrag).attr(&quot;y&quot;,-n.uplift).attr(&quot;fill&quot;,&quot;none&quot;),O.attr(&quot;width&quot;,(function(t){return t.width+2*n.overdrag})).attr(&quot;height&quot;,(function(t){return t.height+n.uplift})),T.selectAll(&quot;.&quot;+n.cn.columnBoundary).data(o.repeat,o.keyFun).enter().append(&quot;g&quot;).classed(n.cn.columnBoundary,!0);var z=T.selectAll(&quot;.&quot;+n.cn.columnBoundaryClippath).data(o.repeat,o.keyFun);z.enter().append(&quot;clipPath&quot;).classed(n.cn.columnBoundaryClippath,!0),z.attr(&quot;id&quot;,(function(e){return v(t,e)}));var D=z.selectAll(&quot;.&quot;+n.cn.columnBoundaryRect).data(o.repeat,o.keyFun);D.enter().append(&quot;rect&quot;).classed(n.cn.columnBoundaryRect,!0).attr(&quot;fill&quot;,&quot;none&quot;),D.attr(&quot;width&quot;,(function(t){return t.columnWidth+2*m(t)})).attr(&quot;height&quot;,(function(t){return t.calcdata.height+2*m(t)+n.uplift})).attr(&quot;x&quot;,(function(t){return-m(t)})).attr(&quot;y&quot;,(function(t){return-m(t)})),E(null,P,l)}},{&quot;../../components/color&quot;:366,&quot;../../components/drawing&quot;:388,&quot;../../lib&quot;:503,&quot;../../lib/gup&quot;:500,&quot;../../lib/svg_text_utils&quot;:529,&quot;./constants&quot;:1065,&quot;./data_preparation_helper&quot;:1066,&quot;./data_split_helpers&quot;:1067,&quot;@plotly/d3&quot;:58}],1071:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../pie/attributes&quot;),l=t(&quot;../sunburst/attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:l.labels,parents:l.parents,values:l.values,branchvalues:l.branchvalues,count:l.count,level:l.level,maxdepth:l.maxdepth,tiling:{packing:{valType:&quot;enumerated&quot;,values:[&quot;squarify&quot;,&quot;binary&quot;,&quot;dice&quot;,&quot;slice&quot;,&quot;slice-dice&quot;,&quot;dice-slice&quot;],dflt:&quot;squarify&quot;,editType:&quot;plot&quot;},squarifyratio:{valType:&quot;number&quot;,min:1,dflt:1,editType:&quot;plot&quot;},flip:{valType:&quot;flaglist&quot;,flags:[&quot;x&quot;,&quot;y&quot;],dflt:&quot;&quot;,editType:&quot;plot&quot;},pad:{valType:&quot;number&quot;,min:0,dflt:3,editType:&quot;plot&quot;},editType:&quot;calc&quot;},marker:u({pad:{t:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},l:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},r:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},b:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},colors:l.marker.colors,depthfade:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],editType:&quot;style&quot;},line:l.marker.line,editType:&quot;calc&quot;},a(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),pathbar:{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;plot&quot;},edgeshape:{valType:&quot;enumerated&quot;,values:[&quot;&gt;&quot;,&quot;&lt;&quot;,&quot;|&quot;,&quot;/&quot;,&quot;\\&quot;],dflt:&quot;&gt;&quot;,editType:&quot;plot&quot;},thickness:{valType:&quot;number&quot;,min:12,editType:&quot;plot&quot;},textfont:u({},s.textfont,{}),editType:&quot;calc&quot;},text:s.text,textinfo:l.textinfo,texttemplate:i({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:s.hovertext,hoverinfo:l.hoverinfo,hovertemplate:n({},{keys:c.eventDataKeys}),textfont:s.textfont,insidetextfont:s.insidetextfont,outsidetextfont:u({},s.outsidetextfont,{}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle left&quot;,&quot;middle center&quot;,&quot;middle right&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],dflt:&quot;top left&quot;,editType:&quot;plot&quot;},sort:s.sort,root:l.root,domain:o({name:&quot;treemap&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plots/domain&quot;:584,&quot;../../plots/template_attributes&quot;:633,&quot;../pie/attributes&quot;:900,&quot;../sunburst/attributes&quot;:1045,&quot;./constants&quot;:1074}],1072:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;treemap&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:619}],1073:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../sunburst/calc&quot;);r.calc=function(t,e){return n.calc(t,e)},r.crossTraceCalc=function(t){return n._runCrossTraceCalc(&quot;treemap&quot;,t)}},{&quot;../sunburst/calc&quot;:1047}],1074:[function(t,e,r){&quot;use strict&quot;;e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:&quot;poly&quot;,eventDataKeys:[&quot;currentPath&quot;,&quot;root&quot;,&quot;entry&quot;,&quot;percentRoot&quot;,&quot;percentEntry&quot;,&quot;percentParent&quot;],gapWithPathbar:1}},{}],1075:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText,l=t(&quot;../bar/constants&quot;).TEXTPAD,c=t(&quot;../../components/colorscale&quot;),u=c.hasColorscale,f=c.handleDefaults;e.exports=function(t,e,r,c){function h(r,a){return n.coerce(t,e,i,r,a)}var p=h(&quot;labels&quot;),d=h(&quot;parents&quot;);if(p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length){var m=h(&quot;values&quot;);m&amp;&amp;m.length?h(&quot;branchvalues&quot;):h(&quot;count&quot;),h(&quot;level&quot;),h(&quot;maxdepth&quot;),&quot;squarify&quot;===h(&quot;tiling.packing&quot;)&amp;&amp;h(&quot;tiling.squarifyratio&quot;),h(&quot;tiling.flip&quot;),h(&quot;tiling.pad&quot;);var g=h(&quot;text&quot;);h(&quot;texttemplate&quot;),e.texttemplate||h(&quot;textinfo&quot;,Array.isArray(g)?&quot;text+label&quot;:&quot;label&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;);var v=h(&quot;pathbar.visible&quot;);s(t,e,c,h,&quot;auto&quot;,{hasPathbar:v,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),h(&quot;textposition&quot;);var y=-1!==e.textposition.indexOf(&quot;bottom&quot;);h(&quot;marker.line.width&quot;)&amp;&amp;h(&quot;marker.line.color&quot;,c.paper_bgcolor);var x=h(&quot;marker.colors&quot;);(e._hasColorscale=u(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis)?f(t,e,c,h,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}):h(&quot;marker.depthfade&quot;,!(x||[]).length);var b=2*e.textfont.size;h(&quot;marker.pad.t&quot;,y?b/4:b),h(&quot;marker.pad.l&quot;,b/4),h(&quot;marker.pad.r&quot;,b/4),h(&quot;marker.pad.b&quot;,y?b:b/4),e._hovered={marker:{line:{width:2,color:a.contrast(c.paper_bgcolor)}}},v&amp;&amp;(h(&quot;pathbar.thickness&quot;,e.pathbar.textfont.size+2*l),h(&quot;pathbar.side&quot;),h(&quot;pathbar.edgeshape&quot;)),h(&quot;sort&quot;),h(&quot;root.color&quot;),o(e,c,h),e._length=null}else e.visible=!1}},{&quot;../../components/color&quot;:366,&quot;../../components/colorscale&quot;:378,&quot;../../lib&quot;:503,&quot;../../plots/domain&quot;:584,&quot;../bar/constants&quot;:650,&quot;../bar/defaults&quot;:652,&quot;./attributes&quot;:1071}],1076:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../sunburst/helpers&quot;),a=t(&quot;../bar/uniform_text&quot;).clearMinTextSize,o=t(&quot;../bar/style&quot;).resizeText,s=t(&quot;./plot_one&quot;);e.exports=function(t,e,r,l,c){var u,f,h=c.type,p=c.drawDescendants,d=t._fullLayout,m=d[&quot;_&quot;+h+&quot;layer&quot;],g=!r;(a(h,d),(u=m.selectAll(&quot;g.trace.&quot;+h).data(e,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).classed(&quot;trace&quot;,!0).classed(h,!0),u.order(),!d.uniformtext.mode&amp;&amp;i.hasTransition(r))?(l&amp;&amp;(f=l()),n.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){f&amp;&amp;f()})).each(&quot;interrupt&quot;,(function(){f&amp;&amp;f()})).each((function(){m.selectAll(&quot;g.trace&quot;).each((function(e){s(t,e,this,r,p)}))}))):(u.each((function(e){s(t,e,this,r,p)})),d.uniformtext.mode&amp;&amp;o(t,m.selectAll(&quot;.trace&quot;),h));g&amp;&amp;u.exit().remove()}},{&quot;../bar/style&quot;:662,&quot;../bar/uniform_text&quot;:664,&quot;../sunburst/helpers&quot;:1051,&quot;./plot_one&quot;:1085,&quot;@plotly/d3&quot;:58}],1077:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;./constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;);e.exports=function(t,e,r,h,p){var d=p.barDifY,m=p.width,g=p.height,v=p.viewX,y=p.viewY,x=p.pathSlice,b=p.toMoveInsideSlice,_=p.strTransform,w=p.hasTransition,T=p.handleSlicesExit,k=p.makeUpdateSliceInterpolator,A=p.makeUpdateTextInterpolator,M={},S=t._fullLayout,E=e[0],L=E.trace,C=E.hierarchy,P=m/L._entryDepth,I=u.listPath(r.data,&quot;id&quot;),O=s(C.copy(),[m,g],{packing:&quot;dice&quot;,pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();(O=O.filter((function(t){var e=I.indexOf(t.data.id);return-1!==e&amp;&amp;(t.x0=P*e,t.x1=P*(e+1),t.y0=d,t.y1=d+g,t.onPathbar=!0,!0)}))).reverse(),(h=h.data(O,u.getPtId)).enter().append(&quot;g&quot;).classed(&quot;pathbar&quot;,!0),T(h,!0,M,[m,g],x),h.order();var z=h;w&amp;&amp;(z=z.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})}))),z.each((function(s){s._x0=v(s.x0),s._x1=v(s.x1),s._y0=y(s.y0),s._y1=y(s.y1),s._hoverX=v(s.x1-Math.min(m,g)/2),s._hoverY=y(s.y1-g/2);var h=n.select(this),p=i.ensureSingle(h,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?p.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!0,M,[m,g]);return function(t){return x(e(t))}})):p.attr(&quot;d&quot;,x),h.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),p.call(l,s,L,{hovered:!1}),s._text=(u.getPtLabel(s)||&quot;&quot;).split(&quot;&lt;br&gt;&quot;).join(&quot; &quot;)||&quot;&quot;;var d=i.ensureSingle(h,&quot;g&quot;,&quot;slicetext&quot;),T=i.ensureSingle(d,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),E=i.ensureUniformFontSize(t,u.determineTextFont(L,s,S.font,{onPathbar:!0}));T.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,&quot;start&quot;).call(a.font,E).call(o.convertToTspans,t),s.textBB=a.bBox(T.node()),s.transform=b(s,{fontSize:E.size,onPathbar:!0}),s.transform.fontSize=E.size,w?T.transition().attrTween(&quot;transform&quot;,(function(t){var e=A(t,!0,M,[m,g]);return function(t){return _(e(t))}})):T.attr(&quot;transform&quot;,_(s))}))}},{&quot;../../components/drawing&quot;:388,&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;../sunburst/fx&quot;:1050,&quot;../sunburst/helpers&quot;:1051,&quot;./constants&quot;:1074,&quot;./partition&quot;:1083,&quot;./style&quot;:1086,&quot;@plotly/d3&quot;:58}],1078:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;./constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;),h=t(&quot;../sunburst/plot&quot;).formatSliceLabel;e.exports=function(t,e,r,p,d){var m=d.width,g=d.height,v=d.viewX,y=d.viewY,x=d.pathSlice,b=d.toMoveInsideSlice,_=d.strTransform,w=d.hasTransition,T=d.handleSlicesExit,k=d.makeUpdateSliceInterpolator,A=d.makeUpdateTextInterpolator,M=d.prevEntry,S=t._fullLayout,E=e[0].trace,L=-1!==E.textposition.indexOf(&quot;left&quot;),C=-1!==E.textposition.indexOf(&quot;right&quot;),P=-1!==E.textposition.indexOf(&quot;bottom&quot;),I=!P&amp;&amp;!E.marker.pad.t||P&amp;&amp;!E.marker.pad.b,O=s(r,[m,g],{packing:E.tiling.packing,squarifyratio:E.tiling.squarifyratio,flipX:E.tiling.flip.indexOf(&quot;x&quot;)&gt;-1,flipY:E.tiling.flip.indexOf(&quot;y&quot;)&gt;-1,pad:{inner:E.tiling.pad,top:E.marker.pad.t,left:E.marker.pad.l,right:E.marker.pad.r,bottom:E.marker.pad.b}}).descendants(),z=1/0,D=-1/0;O.forEach((function(t){var e=t.depth;e&gt;=E._maxDepth?(t.x0=t.x1=(t.x0+t.x1)/2,t.y0=t.y1=(t.y0+t.y1)/2):(z=Math.min(z,e),D=Math.max(D,e))})),p=p.data(O,u.getPtId),E._maxVisibleLayers=isFinite(D)?D-z+1:0,p.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),T(p,!1,{},[m,g],x),p.order();var R=null;if(w&amp;&amp;M){var F=u.getPtId(M);p.each((function(t){null===R&amp;&amp;u.getPtId(t)===F&amp;&amp;(R={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})}))}var B=function(){return R||{x0:0,x1:m,y0:0,y1:g}},N=p;return w&amp;&amp;(N=N.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),N.each((function(s){var p=u.isHeader(s,E);s._x0=v(s.x0),s._x1=v(s.x1),s._y0=y(s.y0),s._y1=y(s.y1),s._hoverX=v(s.x1-E.marker.pad.r),s._hoverY=y(P?s.y1-E.marker.pad.b/2:s.y0+E.marker.pad.t/2);var d=n.select(this),T=i.ensureSingle(d,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?T.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!1,B(),[m,g]);return function(t){return x(e(t))}})):T.attr(&quot;d&quot;,x),d.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{isTransitioning:t._transitioning}),T.call(l,s,E,{hovered:!1}),s.x0===s.x1||s.y0===s.y1?s._text=&quot;&quot;:s._text=p?I?&quot;&quot;:u.getPtLabel(s)||&quot;&quot;:h(s,r,E,e,S)||&quot;&quot;;var M=i.ensureSingle(d,&quot;g&quot;,&quot;slicetext&quot;),O=i.ensureSingle(M,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),z=i.ensureUniformFontSize(t,u.determineTextFont(E,s,S.font));O.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,C?&quot;end&quot;:L||p?&quot;start&quot;:&quot;middle&quot;).call(a.font,z).call(o.convertToTspans,t),s.textBB=a.bBox(O.node()),s.transform=b(s,{fontSize:z.size,isHeader:p}),s.transform.fontSize=z.size,w?O.transition().attrTween(&quot;transform&quot;,(function(t){var e=A(t,!1,B(),[m,g]);return function(t){return _(e(t))}})):O.attr(&quot;transform&quot;,_(s))})),R}},{&quot;../../components/drawing&quot;:388,&quot;../../lib&quot;:503,&quot;../../lib/svg_text_utils&quot;:529,&quot;../sunburst/fx&quot;:1050,&quot;../sunburst/helpers&quot;:1051,&quot;../sunburst/plot&quot;:1055,&quot;./constants&quot;:1074,&quot;./partition&quot;:1083,&quot;./style&quot;:1086,&quot;@plotly/d3&quot;:58}],1079:[function(t,e,r){&quot;use strict&quot;;e.exports=function t(e,r,n){var i;n.swapXY&amp;&amp;(i=e.x0,e.x0=e.y0,e.y0=i,i=e.x1,e.x1=e.y1,e.y1=i),n.flipX&amp;&amp;(i=e.x0,e.x0=r[0]-e.x1,e.x1=r[0]-i),n.flipY&amp;&amp;(i=e.y0,e.y0=r[1]-e.y1,e.y1=r[1]-i);var a=e.children;if(a)for(var o=0;o&lt;a.length;o++)t(a[o],r,n)}},{}],1080:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;treemap&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:944,&quot;./attributes&quot;:1071,&quot;./base_plot&quot;:1072,&quot;./calc&quot;:1073,&quot;./defaults&quot;:1075,&quot;./layout_attributes&quot;:1081,&quot;./layout_defaults&quot;:1082,&quot;./plot&quot;:1084,&quot;./style&quot;:1086}],1081:[function(t,e,r){&quot;use strict&quot;;e.exports={treemapcolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendtreemapcolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1082:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;treemapcolorway&quot;,e.colorway),r(&quot;extendtreemapcolors&quot;)}},{&quot;../../lib&quot;:503,&quot;./layout_attributes&quot;:1081}],1083:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;),i=t(&quot;./flip_tree&quot;);e.exports=function(t,e,r){var a,o=r.flipX,s=r.flipY,l=&quot;dice-slice&quot;===r.packing,c=r.pad[s?&quot;bottom&quot;:&quot;top&quot;],u=r.pad[o?&quot;right&quot;:&quot;left&quot;],f=r.pad[o?&quot;left&quot;:&quot;right&quot;],h=r.pad[s?&quot;top&quot;:&quot;bottom&quot;];l&amp;&amp;(a=u,u=c,c=a,a=f,f=h,h=a);var p=n.treemap().tile(function(t,e){switch(t){case&quot;squarify&quot;:return n.treemapSquarify.ratio(e);case&quot;binary&quot;:return n.treemapBinary;case&quot;dice&quot;:return n.treemapDice;case&quot;slice&quot;:return n.treemapSlice;default:return n.treemapSliceDice}}(r.packing,r.squarifyratio)).paddingInner(r.pad.inner).paddingLeft(u).paddingRight(f).paddingTop(c).paddingBottom(h).size(l?[e[1],e[0]]:e)(t);return(l||o||s)&amp;&amp;i(p,e,{swapXY:l,flipX:o,flipY:s}),p}},{&quot;./flip_tree&quot;:1079,&quot;d3-hierarchy&quot;:115}],1084:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;),i=t(&quot;./draw_descendants&quot;);e.exports=function(t,e,r,a){return n(t,e,r,a,{type:&quot;treemap&quot;,drawDescendants:i})}},{&quot;./draw&quot;:1076,&quot;./draw_descendants&quot;:1078}],1085:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;d3-interpolate&quot;).interpolate,a=t(&quot;../sunburst/helpers&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../bar/constants&quot;).TEXTPAD,l=t(&quot;../bar/plot&quot;).toMoveInsideBar,c=t(&quot;../bar/uniform_text&quot;).recordMinTextSize,u=t(&quot;./constants&quot;),f=t(&quot;./draw_ancestors&quot;);function h(t){return a.isHierarchyRoot(t)?&quot;&quot;:a.getPtId(t)}e.exports=function(t,e,r,p,d){var m=t._fullLayout,g=e[0],v=g.trace,y=&quot;icicle&quot;===v.type,x=g.hierarchy,b=a.findEntryWithLevel(x,v.level),_=n.select(r),w=_.selectAll(&quot;g.pathbar&quot;),T=_.selectAll(&quot;g.slice&quot;);if(!b)return w.remove(),void T.remove();var k=a.isHierarchyRoot(b),A=!m.uniformtext.mode&amp;&amp;a.hasTransition(p),M=a.getMaxDepth(v),S=m._size,E=v.domain,L=S.w*(E.x[1]-E.x[0]),C=S.h*(E.y[1]-E.y[0]),P=L,I=v.pathbar.thickness,O=v.marker.line.width+u.gapWithPathbar,z=v.pathbar.visible?v.pathbar.side.indexOf(&quot;bottom&quot;)&gt;-1?C+O:-(I+O):0,D={x0:P,x1:P,y0:z,y1:z+I},R=function(t,e,r){var n=v.tiling.pad,i=function(t){return t-n&lt;=e.x0},a=function(t){return t+n&gt;=e.x1},o=function(t){return t-n&lt;=e.y0},s=function(t){return t+n&gt;=e.y1};return t.x0===e.x0&amp;&amp;t.x1===e.x1&amp;&amp;t.y0===e.y0&amp;&amp;t.y1===e.y1?{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1}:{x0:i(t.x0-n)?0:a(t.x0-n)?r[0]:t.x0,x1:i(t.x1+n)?0:a(t.x1+n)?r[0]:t.x1,y0:o(t.y0-n)?0:s(t.y0-n)?r[1]:t.y0,y1:o(t.y1+n)?0:s(t.y1+n)?r[1]:t.y1}},F=null,B={},N={},j=null,U=function(t,e){return e?B[h(t)]:N[h(t)]},V=function(t,e,r,n){if(e)return B[h(x)]||D;var i=N[v.level]||r;return function(t){return t.data.depth-b.data.depth&lt;M}(t)?R(t,i,n):{}};g.hasMultipleRoots&amp;&amp;k&amp;&amp;M++,v._maxDepth=M,v._backgroundColor=m.paper_bgcolor,v._entryDepth=b.data.depth,v._atRootLevel=k;var H=-L/2+S.l+S.w*(E.x[1]+E.x[0])/2,q=-C/2+S.t+S.h*(1-(E.y[1]+E.y[0])/2),G=function(t){return H+t},Y=function(t){return q+t},W=Y(0),X=G(0),Z=function(t){return X+t},J=function(t){return W+t};function K(t,e){return t+&quot;,&quot;+e}var Q=Z(0),$=function(t){t.x=Math.max(Q,t.x)},tt=v.pathbar.edgeshape,et=function(t,e){var r=t.x0,n=t.x1,i=t.y0,a=t.y1,o=t.textBB,u=function(t){return-1!==v.textposition.indexOf(t)},f=u(&quot;bottom&quot;),h=u(&quot;top&quot;)||e.isHeader&amp;&amp;!f?&quot;start&quot;:f?&quot;end&quot;:&quot;middle&quot;,p=u(&quot;right&quot;),d=u(&quot;left&quot;)||e.onPathbar?-1:p?1:0,g=v[y?&quot;tiling&quot;:&quot;marker&quot;].pad;if(e.isHeader){if((r+=(y?g:g.l)-s)&gt;=(n-=(y?g:g.r)-s)){var x=(r+n)/2;r=x,n=x}var b;f?i&lt;(b=a-(y?g:g.b))&amp;&amp;b&lt;a&amp;&amp;(i=b):i&lt;(b=i+(y?g:g.t))&amp;&amp;b&lt;a&amp;&amp;(a=b)}var _=l(r,n,i,a,o,{isHorizontal:!1,constrained:!0,angle:0,anchor:h,leftToRight:d});return _.fontSize=e.fontSize,_.targetX=G(_.targetX),_.targetY=Y(_.targetY),isNaN(_.targetX)||isNaN(_.targetY)?{}:(r!==n&amp;&amp;i!==a&amp;&amp;c(v.type,_,m),{scale:_.scale,rotate:_.rotate,textX:_.textX,textY:_.textY,anchorX:_.anchorX,anchorY:_.anchorY,targetX:_.targetX,targetY:_.targetY})},rt=function(t,e){for(var r,n=0,i=t;!r&amp;&amp;n&lt;M;)n++,(i=i.parent)?r=U(i,e):n=M;return r||{}},nt=function(t,e,r,n,a){var s,l=U(t,e);if(l)s=l;else if(e)s=D;else if(F)if(t.parent){var c=j||r;c&amp;&amp;!e?s=R(t,c,n):(s={},o.extendFlat(s,rt(t,e)))}else s=o.extendFlat({},t),y&amp;&amp;(&quot;h&quot;===a.orientation?a.flipX?s.x0=t.x1:s.x1=0:a.flipY?s.y0=t.y1:s.y1=0);else s={};return i(s,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})},it=function(t,e,r,n){var s=U(t,e),l={},u=V(t,e,r,n);o.extendFlat(l,{transform:et({x0:u.x0,x1:u.x1,y0:u.y0,y1:u.y1,textBB:t.textBB,_text:t._text},{isHeader:a.isHeader(t,v)})}),s?l=s:t.parent&amp;&amp;o.extendFlat(l,rt(t,e));var f=t.transform;return t.x0!==t.x1&amp;&amp;t.y0!==t.y1&amp;&amp;c(v.type,f,m),i(l,{transform:{scale:f.scale,rotate:f.rotate,textX:f.textX,textY:f.textY,anchorX:f.anchorX,anchorY:f.anchorY,targetX:f.targetX,targetY:f.targetY}})},at=function(t,e,r,a,o){var s=a[0],l=a[1];A?t.exit().transition().each((function(){var t=n.select(this);t.select(&quot;path.surface&quot;).transition().attrTween(&quot;d&quot;,(function(t){var r=function(t,e,r,n){var a,o=U(t,e);if(e)a=D;else{var s=U(b,e);a=s?R(t,s,n):{}}return i(o,a)}(t,e,0,[s,l]);return function(t){return o(r(t))}})),t.select(&quot;g.slicetext&quot;).attr(&quot;opacity&quot;,0)})).remove():t.exit().remove()},ot=function(t){var e=t.transform;return t.x0!==t.x1&amp;&amp;t.y0!==t.y1&amp;&amp;c(v.type,e,m),o.getTextTransform({textX:e.textX,textY:e.textY,anchorX:e.anchorX,anchorY:e.anchorY,targetX:e.targetX,targetY:e.targetY,scale:e.scale,rotate:e.rotate})};A&amp;&amp;(w.each((function(t){B[h(t)]={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1},t.transform&amp;&amp;(B[h(t)].transform={textX:t.transform.textX,textY:t.transform.textY,anchorX:t.transform.anchorX,anchorY:t.transform.anchorY,targetX:t.transform.targetX,targetY:t.transform.targetY,scale:t.transform.scale,rotate:t.transform.rotate})})),T.each((function(t){N[h(t)]={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1},t.transform&amp;&amp;(N[h(t)].transform={textX:t.transform.textX,textY:t.transform.textY,anchorX:t.transform.anchorX,anchorY:t.transform.anchorY,targetX:t.transform.targetX,targetY:t.transform.targetY,scale:t.transform.scale,rotate:t.transform.rotate}),!F&amp;&amp;a.isEntry(t)&amp;&amp;(F=t)}))),j=d(t,e,b,T,{width:L,height:C,viewX:G,viewY:Y,pathSlice:function(t){var e=G(t.x0),r=G(t.x1),n=Y(t.y0),i=Y(t.y1),a=r-e,o=i-n;if(!a||!o)return&quot;&quot;;return&quot;M&quot;+K(e,n+0)+&quot;L&quot;+K(r-0,n)+&quot;L&quot;+K(r,i-0)+&quot;L&quot;+K(e+0,i)+&quot;Z&quot;},toMoveInsideSlice:et,prevEntry:F,makeUpdateSliceInterpolator:nt,makeUpdateTextInterpolator:it,handleSlicesExit:at,hasTransition:A,strTransform:ot}),v.pathbar.visible?f(t,e,b,w,{barDifY:z,width:P,height:I,viewX:Z,viewY:J,pathSlice:function(t){var e=Z(Math.max(Math.min(t.x0,t.x0),0)),r=Z(Math.min(Math.max(t.x1,t.x1),P)),n=J(t.y0),i=J(t.y1),a=I/2,o={},s={};o.x=e,s.x=r,o.y=s.y=(n+i)/2;var l={x:e,y:n},c={x:r,y:n},u={x:r,y:i},f={x:e,y:i};return&quot;&gt;&quot;===tt?(l.x-=a,c.x-=a,u.x-=a,f.x-=a):&quot;/&quot;===tt?(u.x-=a,f.x-=a,o.x-=a/2,s.x-=a/2):&quot;\\&quot;===tt?(l.x-=a,c.x-=a,o.x-=a/2,s.x-=a/2):&quot;&lt;&quot;===tt&amp;&amp;(o.x-=a,s.x-=a),$(l),$(f),$(o),$(c),$(u),$(s),&quot;M&quot;+K(l.x,l.y)+&quot;L&quot;+K(c.x,c.y)+&quot;L&quot;+K(s.x,s.y)+&quot;L&quot;+K(u.x,u.y)+&quot;L&quot;+K(f.x,f.y)+&quot;L&quot;+K(o.x,o.y)+&quot;Z&quot;},toMoveInsideSlice:et,makeUpdateSliceInterpolator:nt,makeUpdateTextInterpolator:it,handleSlicesExit:at,hasTransition:A,strTransform:ot}):w.remove()}},{&quot;../../lib&quot;:503,&quot;../bar/constants&quot;:650,&quot;../bar/plot&quot;:659,&quot;../bar/uniform_text&quot;:664,&quot;../sunburst/helpers&quot;:1051,&quot;./constants&quot;:1074,&quot;./draw_ancestors&quot;:1077,&quot;@plotly/d3&quot;:58,&quot;d3-interpolate&quot;:116}],1086:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../sunburst/helpers&quot;),s=t(&quot;../bar/uniform_text&quot;).resizeText;function l(t,e,r,n){var s,l,c=(n||{}).hovered,u=e.data.data,f=u.i,h=u.color,p=o.isHierarchyRoot(e),d=1;if(c)s=r._hovered.marker.line.color,l=r._hovered.marker.line.width;else if(p&amp;&amp;h===r.root.color)d=100,s=&quot;rgba(0,0,0,0)&quot;,l=0;else if(s=a.castOption(r,f,&quot;marker.line.color&quot;)||i.defaultLine,l=a.castOption(r,f,&quot;marker.line.width&quot;)||0,!r._hasColorscale&amp;&amp;!e.onPathbar){var m=r.marker.depthfade;if(m){var g,v=i.combine(i.addOpacity(r._backgroundColor,.75),h);if(!0===m){var y=o.getMaxDepth(r);g=isFinite(y)?o.isLeaf(e)?0:r._maxVisibleLayers-(e.data.depth-r._entryDepth):e.data.height+1}else g=e.data.depth-r._entryDepth,r._atRootLevel||g++;if(g&gt;0)for(var x=0;x&lt;g;x++){var b=.5*x/g;h=i.combine(i.addOpacity(v,b),h)}}}t.style(&quot;stroke-width&quot;,l).call(i.fill,h).call(i.stroke,s).style(&quot;opacity&quot;,d)}e.exports={style:function(t){var e=t._fullLayout._treemaplayer.selectAll(&quot;.trace&quot;);s(t,e,&quot;treemap&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(l,t,r,{hovered:!1})}))}))},styleOne:l}},{&quot;../../components/color&quot;:366,&quot;../../lib&quot;:503,&quot;../bar/uniform_text&quot;:664,&quot;../sunburst/helpers&quot;:1051,&quot;@plotly/d3&quot;:58}],1087:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/attributes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat;e.exports={y:n.y,x:n.x,x0:n.x0,y0:n.y0,xhoverformat:a(&quot;x&quot;),yhoverformat:a(&quot;y&quot;),name:i({},n.name,{}),orientation:i({},n.orientation,{}),bandwidth:{valType:&quot;number&quot;,min:0,editType:&quot;calc&quot;},scalegroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},scalemode:{valType:&quot;enumerated&quot;,values:[&quot;width&quot;,&quot;count&quot;],dflt:&quot;width&quot;,editType:&quot;calc&quot;},spanmode:{valType:&quot;enumerated&quot;,values:[&quot;soft&quot;,&quot;hard&quot;,&quot;manual&quot;],dflt:&quot;soft&quot;,editType:&quot;calc&quot;},span:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},editType:&quot;plot&quot;},fillcolor:n.fillcolor,points:i({},n.boxpoints,{}),jitter:i({},n.jitter,{}),pointpos:i({},n.pointpos,{}),width:i({},n.width,{}),marker:n.marker,text:n.text,hovertext:n.hovertext,hovertemplate:n.hovertemplate,box:{visible:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},width:{valType:&quot;number&quot;,min:0,max:1,dflt:.25,editType:&quot;plot&quot;},fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;plot&quot;},meanline:{visible:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;both&quot;,&quot;positive&quot;,&quot;negative&quot;],dflt:&quot;both&quot;,editType:&quot;calc&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;violins&quot;,&quot;points&quot;,&quot;kde&quot;],dflt:&quot;violins+points+kde&quot;,extras:[&quot;all&quot;],editType:&quot;style&quot;}}},{&quot;../../lib/extend&quot;:493,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../box/attributes&quot;:673}],1088:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../box/calc&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r){var i=e.max-e.min;if(!i)return t.bandwidth?t.bandwidth:0;if(t.bandwidth)return Math.max(t.bandwidth,i/1e4);var a=r.length,o=n.stdev(r,a-1,e.mean);return Math.max(function(t,e,r){return 1.059*Math.min(e,r/1.349)*Math.pow(t,-.2)}(a,o,e.q3-e.q1),i/100)}function c(t,e,r,n){var a,o=t.spanmode,l=t.span||[],c=[e.min,e.max],u=[e.min-2*n,e.max+2*n];function f(n){var i=l[n],a=&quot;multicategory&quot;===r.type?r.r2c(i):r.d2c(i,0,t[e.valLetter+&quot;calendar&quot;]);return a===s?u[n]:a}var h={type:&quot;linear&quot;,range:a=&quot;soft&quot;===o?u:&quot;hard&quot;===o?c:[f(0),f(1)]};return i.setConvert(h),h.cleanRange(),a}e.exports=function(t,e){var r=a(t,e);if(r[0].t.empty)return r;for(var s=t._fullLayout,u=i.getFromId(t,e[&quot;h&quot;===e.orientation?&quot;xaxis&quot;:&quot;yaxis&quot;]),f=1/0,h=-1/0,p=0,d=0,m=0;m&lt;r.length;m++){var g=r[m],v=g.pts.map(o.extractVal),y=g.bandwidth=l(e,g,v),x=g.span=c(e,g,u,y);if(g.min===g.max&amp;&amp;0===y)x=g.span=[g.min,g.max],g.density=[{v:1,t:x[0]}],g.bandwidth=y,p=Math.max(p,1);else{var b=x[1]-x[0],_=Math.ceil(b/(y/3)),w=b/_;if(!isFinite(w)||!isFinite(_))return n.error(&quot;Something went wrong with computing the violin span&quot;),r[0].t.empty=!0,r;var T=o.makeKDE(g,e,v);g.density=new Array(_);for(var k=0,A=x[0];A&lt;x[1]+w/2;k++,A+=w){var M=T(A);g.density[k]={v:M,t:A},p=Math.max(p,M)}}d=Math.max(d,v.length),f=Math.min(f,x[0]),h=Math.max(h,x[1])}var S=i.findExtremes(u,[f,h],{padded:!0});if(e._extremes[u._id]=S,e.width)r[0].t.maxKDE=p;else{var E=s._violinScaleGroupStats,L=e.scalegroup,C=E[L];C?(C.maxKDE=Math.max(C.maxKDE,p),C.maxCount=Math.max(C.maxCount,d)):E[L]={maxKDE:p,maxCount:d}}return r[0].t.labels.kde=n._(t,&quot;kde:&quot;),r}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554,&quot;../box/calc&quot;:674,&quot;./helpers&quot;:1091}],1089:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/cross_trace_calc&quot;).setPositionOffset,i=[&quot;v&quot;,&quot;h&quot;];e.exports=function(t,e){for(var r=t.calcdata,a=e.xaxis,o=e.yaxis,s=0;s&lt;i.length;s++){for(var l=i[s],c=&quot;h&quot;===l?o:a,u=[],f=0;f&lt;r.length;f++){var h=r[f],p=h[0].t,d=h[0].trace;!0!==d.visible||&quot;violin&quot;!==d.type||p.empty||d.orientation!==l||d.xaxis!==a._id||d.yaxis!==o._id||u.push(f)}n(&quot;violin&quot;,t,u,c)}}},{&quot;../box/cross_trace_calc&quot;:675}],1090:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../box/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}function c(r,i){return n.coerce2(t,e,o,r,i)}if(a.handleSampleDefaults(t,e,l,s),!1!==e.visible){l(&quot;bandwidth&quot;),l(&quot;side&quot;),l(&quot;width&quot;)||(l(&quot;scalegroup&quot;,e.name),l(&quot;scalemode&quot;));var u,f=l(&quot;span&quot;);Array.isArray(f)&amp;&amp;(u=&quot;manual&quot;),l(&quot;spanmode&quot;,u);var h=l(&quot;line.color&quot;,(t.marker||{}).color||r),p=l(&quot;line.width&quot;),d=l(&quot;fillcolor&quot;,i.addOpacity(e.line.color,.5));a.handlePointsDefaults(t,e,l,{prefix:&quot;&quot;});var m=c(&quot;box.width&quot;),g=c(&quot;box.fillcolor&quot;,d),v=c(&quot;box.line.color&quot;,h),y=c(&quot;box.line.width&quot;,p);l(&quot;box.visible&quot;,Boolean(m||g||v||y))||(e.box={visible:!1});var x=c(&quot;meanline.color&quot;,h),b=c(&quot;meanline.width&quot;,p);l(&quot;meanline.visible&quot;,Boolean(x||b))||(e.meanline={visible:!1})}}},{&quot;../../components/color&quot;:366,&quot;../../lib&quot;:503,&quot;../box/defaults&quot;:676,&quot;./attributes&quot;:1087}],1091:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=function(t){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*t*t)};r.makeKDE=function(t,e,r){var n=r.length,a=i,o=t.bandwidth,s=1/(n*o);return function(t){for(var e=0,i=0;i&lt;n;i++)e+=a((t-r[i])/o);return s*e}},r.getPositionOnKdePath=function(t,e,r){var i,a;&quot;h&quot;===e.orientation?(i=&quot;y&quot;,a=&quot;x&quot;):(i=&quot;x&quot;,a=&quot;y&quot;);var o=n.findPointOnPath(t.path,r,a,{pathLength:t.pathLength}),s=t.posCenterPx,l=o[i];return[l,&quot;both&quot;===e.side?2*s-l:s]},r.getKdeValue=function(t,e,n){var i=t.pts.map(r.extractVal);return r.makeKDE(t,e,i)(n)/t.posDensityScale},r.extractVal=function(t){return t.v}},{&quot;../../lib&quot;:503}],1092:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../box/hover&quot;),o=t(&quot;./helpers&quot;);e.exports=function(t,e,r,s,l){l||(l={});var c,u,f=l.hoverLayer,h=t.cd,p=h[0].trace,d=p.hoveron,m=-1!==d.indexOf(&quot;violins&quot;),g=-1!==d.indexOf(&quot;kde&quot;),v=[];if(m||g){var y=a.hoverOnBoxes(t,e,r,s);if(g&amp;&amp;y.length&gt;0){var x,b,_,w,T,k=t.xa,A=t.ya;&quot;h&quot;===p.orientation?(T=e,x=&quot;y&quot;,_=A,b=&quot;x&quot;,w=k):(T=r,x=&quot;x&quot;,_=k,b=&quot;y&quot;,w=A);var M=h[t.index];if(T&gt;=M.span[0]&amp;&amp;T&lt;=M.span[1]){var S=n.extendFlat({},t),E=w.c2p(T,!0),L=o.getKdeValue(M,p,T),C=o.getPositionOnKdePath(M,p,E),P=_._offset,I=_._length;S[x+&quot;0&quot;]=C[0],S[x+&quot;1&quot;]=C[1],S[b+&quot;0&quot;]=S[b+&quot;1&quot;]=E,S[b+&quot;Label&quot;]=b+&quot;: &quot;+i.hoverLabelText(w,T,p[b+&quot;hoverformat&quot;])+&quot;, &quot;+h[0].t.labels.kde+&quot; &quot;+L.toFixed(3),S.spikeDistance=y[0].spikeDistance;var O=x+&quot;Spike&quot;;S[O]=y[0][O],y[0].spikeDistance=void 0,y[0][O]=void 0,S.hovertemplate=!1,v.push(S),(u={stroke:t.color})[x+&quot;1&quot;]=n.constrain(P+C[0],P,P+I),u[x+&quot;2&quot;]=n.constrain(P+C[1],P,P+I),u[b+&quot;1&quot;]=u[b+&quot;2&quot;]=w._offset+E}}m&amp;&amp;(v=v.concat(y))}-1!==d.indexOf(&quot;points&quot;)&amp;&amp;(c=a.hoverOnPoints(t,e,r));var z=f.selectAll(&quot;.violinline-&quot;+p.uid).data(u?[0]:[]);return z.enter().append(&quot;line&quot;).classed(&quot;violinline-&quot;+p.uid,!0).attr(&quot;stroke-width&quot;,1.5),z.exit().remove(),z.attr(u),&quot;closest&quot;===s?c?[c]:v:c?(v.push(c),v):v}},{&quot;../../lib&quot;:503,&quot;../../plots/cartesian/axes&quot;:554,&quot;../box/hover&quot;:678,&quot;./helpers&quot;:1091}],1093:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../box/defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../box/select&quot;),moduleType:&quot;trace&quot;,name:&quot;violin&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;oriented&quot;,&quot;box-violin&quot;,&quot;showLegend&quot;,&quot;violinLayout&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:568,&quot;../box/defaults&quot;:676,&quot;../box/select&quot;:683,&quot;../scatter/style&quot;:950,&quot;./attributes&quot;:1087,&quot;./calc&quot;:1088,&quot;./cross_trace_calc&quot;:1089,&quot;./defaults&quot;:1090,&quot;./hover&quot;:1092,&quot;./layout_attributes&quot;:1094,&quot;./layout_defaults&quot;:1095,&quot;./plot&quot;:1096,&quot;./style&quot;:1097}],1094:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/layout_attributes&quot;),i=t(&quot;../../lib&quot;).extendFlat;e.exports={violinmode:i({},n.boxmode,{}),violingap:i({},n.boxgap,{}),violingroupgap:i({},n.boxgroupgap,{})}},{&quot;../../lib&quot;:503,&quot;../box/layout_attributes&quot;:680}],1095:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;),a=t(&quot;../box/layout_defaults&quot;);e.exports=function(t,e,r){a._supply(t,e,r,(function(r,a){return n.coerce(t,e,i,r,a)}),&quot;violin&quot;)}},{&quot;../../lib&quot;:503,&quot;../box/layout_defaults&quot;:681,&quot;./layout_attributes&quot;:1094}],1096:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../box/plot&quot;),s=t(&quot;../scatter/line_points&quot;),l=t(&quot;./helpers&quot;);e.exports=function(t,e,r,c){var u=t._fullLayout,f=e.xaxis,h=e.yaxis;function p(t){var e=s(t,{xaxis:f,yaxis:h,connectGaps:!0,baseTolerance:.75,shape:&quot;spline&quot;,simplify:!0,linearized:!0});return a.smoothopen(e[0],1)}i.makeTraceGroups(c,r,&quot;trace violins&quot;).each((function(t){var r=n.select(this),a=t[0],s=a.t,c=a.trace;if(!0!==c.visible||s.empty)r.remove();else{var d=s.bPos,m=s.bdPos,g=e[s.valLetter+&quot;axis&quot;],v=e[s.posLetter+&quot;axis&quot;],y=&quot;both&quot;===c.side,x=y||&quot;positive&quot;===c.side,b=y||&quot;negative&quot;===c.side,_=r.selectAll(&quot;path.violin&quot;).data(i.identity);_.enter().append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;class&quot;,&quot;violin&quot;),_.exit().remove(),_.each((function(t){var e,r,i,a,o,l,f,h,_=n.select(this),w=t.density,T=w.length,k=v.c2l(t.pos+d,!0),A=v.l2p(k);if(c.width)e=s.maxKDE/m;else{var M=u._violinScaleGroupStats[c.scalegroup];e=&quot;count&quot;===c.scalemode?M.maxKDE/m*(M.maxCount/t.pts.length):M.maxKDE/m}if(x){for(f=new Array(T),o=0;o&lt;T;o++)(h=f[o]={})[s.posLetter]=k+w[o].v/e,h[s.valLetter]=g.c2l(w[o].t,!0);r=p(f)}if(b){for(f=new Array(T),l=0,o=T-1;l&lt;T;l++,o--)(h=f[l]={})[s.posLetter]=k-w[o].v/e,h[s.valLetter]=g.c2l(w[o].t,!0);i=p(f)}if(y)a=r+&quot;L&quot;+i.substr(1)+&quot;Z&quot;;else{var S=[A,g.c2p(w[0].t)],E=[A,g.c2p(w[T-1].t)];&quot;h&quot;===c.orientation&amp;&amp;(S.reverse(),E.reverse()),a=x?&quot;M&quot;+S+&quot;L&quot;+r.substr(1)+&quot;L&quot;+E:&quot;M&quot;+E+&quot;L&quot;+i.substr(1)+&quot;L&quot;+S}_.attr(&quot;d&quot;,a),t.posCenterPx=A,t.posDensityScale=e*m,t.path=_.node(),t.pathLength=t.path.getTotalLength()/(y?2:1)}));var w,T,k,A=c.box,M=A.width,S=(A.line||{}).width;y?(w=m*M,T=0):x?(w=[0,m*M/2],T=S*{x:1,y:-1}[s.posLetter]):(w=[m*M/2,0],T=S*{x:-1,y:1}[s.posLetter]),o.plotBoxAndWhiskers(r,{pos:v,val:g},c,{bPos:d,bdPos:w,bPosPxOffset:T}),o.plotBoxMean(r,{pos:v,val:g},c,{bPos:d,bdPos:w,bPosPxOffset:T}),!c.box.visible&amp;&amp;c.meanline.visible&amp;&amp;(k=i.identity);var E=r.selectAll(&quot;path.meanline&quot;).data(k||[]);E.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;meanline&quot;).style(&quot;fill&quot;,&quot;none&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;),E.exit().remove(),E.each((function(t){var e=g.c2p(t.mean,!0),r=l.getPositionOnKdePath(t,c,e);n.select(this).attr(&quot;d&quot;,&quot;h&quot;===c.orientation?&quot;M&quot;+e+&quot;,&quot;+r[0]+&quot;V&quot;+r[1]:&quot;M&quot;+r[0]+&quot;,&quot;+e+&quot;H&quot;+r[1])})),o.plotPoints(r,{x:f,y:h},c,s)}}))}},{&quot;../../components/drawing&quot;:388,&quot;../../lib&quot;:503,&quot;../box/plot&quot;:682,&quot;../scatter/line_points&quot;:940,&quot;./helpers&quot;:1091,&quot;@plotly/d3&quot;:58}],1097:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../scatter/style&quot;).stylePoints;e.exports=function(t){var e=n.select(t).selectAll(&quot;g.trace.violins&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.each((function(e){var r=e[0].trace,o=n.select(this),s=r.box||{},l=s.line||{},c=r.meanline||{},u=c.width;o.selectAll(&quot;path.violin&quot;).style(&quot;stroke-width&quot;,r.line.width+&quot;px&quot;).call(i.stroke,r.line.color).call(i.fill,r.fillcolor),o.selectAll(&quot;path.box&quot;).style(&quot;stroke-width&quot;,l.width+&quot;px&quot;).call(i.stroke,l.color).call(i.fill,s.fillcolor);var f={&quot;stroke-width&quot;:u+&quot;px&quot;,&quot;stroke-dasharray&quot;:2*u+&quot;px,&quot;+u+&quot;px&quot;};o.selectAll(&quot;path.mean&quot;).style(f).call(i.stroke,c.color),o.selectAll(&quot;path.meanline&quot;).style(f).call(i.stroke,c.color),a(o,r,t)}))}},{&quot;../../components/color&quot;:366,&quot;../scatter/style&quot;:950,&quot;@plotly/d3&quot;:58}],1098:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../isosurface/attributes&quot;),a=t(&quot;../surface/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll,c=e.exports=l(s({x:i.x,y:i.y,z:i.z,value:i.value,isomin:i.isomin,isomax:i.isomax,surface:i.surface,spaceframe:{show:{valType:&quot;boolean&quot;,dflt:!1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},slices:i.slices,caps:i.caps,text:i.text,hovertext:i.hovertext,xhoverformat:i.xhoverformat,yhoverformat:i.yhoverformat,zhoverformat:i.zhoverformat,valuehoverformat:i.valuehoverformat,hovertemplate:i.hovertemplate},n(&quot;&quot;,{colorAttr:&quot;`value`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{colorbar:i.colorbar,opacity:i.opacity,opacityscale:a.opacityscale,lightposition:i.lightposition,lighting:i.lighting,flatshading:i.flatshading,contour:i.contour,hoverinfo:s({},o.hoverinfo),showlegend:s({},o.showlegend,{dflt:!1})}),&quot;calc&quot;,&quot;nested&quot;);c.x.editType=c.y.editType=c.z.editType=c.value.editType=&quot;calc+clearAxisTypes&quot;,c.transforms=void 0},{&quot;../../components/colorscale/attributes&quot;:373,&quot;../../lib/extend&quot;:493,&quot;../../plot_api/edit_types&quot;:536,&quot;../../plots/attributes&quot;:550,&quot;../isosurface/attributes&quot;:862,&quot;../surface/attributes&quot;:1057}],1099:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../stackgl_modules&quot;).gl_mesh3d,i=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,a=t(&quot;../../lib/str2rgbarray&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts,s=t(&quot;../../plots/gl3d/zip3&quot;),l=t(&quot;../isosurface/convert&quot;).findNearestOnAxis,c=t(&quot;../isosurface/convert&quot;).generateIsoMeshes;function u(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.data=null,this.showContour=!1}var f=u.prototype;f.handlePick=function(t){if(t.object===this.mesh){var e=t.data.index,r=this.data._meshX[e],n=this.data._meshY[e],i=this.data._meshZ[e],a=this.data._Ys.length,o=this.data._Zs.length,s=l(r,this.data._Xs).id,c=l(n,this.data._Ys).id,u=l(i,this.data._Zs).id,f=t.index=u+o*c+o*a*s;t.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Array.isArray(h)&amp;&amp;void 0!==h[f]?t.textLabel=h[f]:h&amp;&amp;(t.textLabel=h),!0}},f.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map((function(e){return t.d2l(e,0,n)*r}))}this.data=c(t);var l={positions:s(n(r.xaxis,t._meshX,e.dataScale[0],t.xcalendar),n(r.yaxis,t._meshY,e.dataScale[1],t.ycalendar),n(r.zaxis,t._meshZ,e.dataScale[2],t.zcalendar)),cells:s(t._meshI,t._meshJ,t._meshK),lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,opacityscale:t.opacityscale,contourEnable:t.contour.show,contourColor:a(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading},u=o(t);l.vertexIntensity=t._meshIntensity,l.vertexIntensityBounds=[u.min,u.max],l.colormap=i(t),this.mesh.update(l)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new u(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../../stackgl_modules&quot;:1120,&quot;../../components/colorscale&quot;:378,&quot;../../lib/gl_format_color&quot;:499,&quot;../../lib/str2rgbarray&quot;:528,&quot;../../plots/gl3d/zip3&quot;:609,&quot;../isosurface/convert&quot;:864}],1100:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../isosurface/defaults&quot;).supplyIsoDefaults,o=t(&quot;../surface/defaults&quot;).opacityscaleDefaults;e.exports=function(t,e,r,s){function l(r,a){return n.coerce(t,e,i,r,a)}a(t,e,r,s,l),o(t,e,s,l)}},{&quot;../../lib&quot;:503,&quot;../isosurface/defaults&quot;:865,&quot;../surface/defaults&quot;:1060,&quot;./attributes&quot;:1098}],1101:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;../isosurface/calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;volume&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:598,&quot;../isosurface/calc&quot;:863,&quot;./attributes&quot;:1098,&quot;./convert&quot;:1099,&quot;./defaults&quot;:1100}],1102:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../scatter/attributes&quot;).line,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../../plots/cartesian/axis_format_attributes&quot;).axisHoverFormat,s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat,f=t(&quot;../../components/color&quot;);function h(t){return{marker:{color:u({},n.marker.color,{arrayOk:!1,editType:&quot;style&quot;}),line:{color:u({},n.marker.line.color,{arrayOk:!1,editType:&quot;style&quot;}),width:u({},n.marker.line.width,{arrayOk:!1,editType:&quot;style&quot;}),editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;}}e.exports={measure:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},base:{valType:&quot;number&quot;,dflt:null,arrayOk:!1,editType:&quot;calc&quot;},x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,xhoverformat:o(&quot;x&quot;),yhoverformat:o(&quot;y&quot;),hovertext:n.hovertext,hovertemplate:s({},{keys:c.eventDataKeys}),hoverinfo:u({},a.hoverinfo,{flags:[&quot;name&quot;,&quot;x&quot;,&quot;y&quot;,&quot;text&quot;,&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;]}),textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;,arrayOk:!1},texttemplate:l({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;])}),text:n.text,textposition:n.textposition,insidetextanchor:n.insidetextanchor,textangle:n.textangle,textfont:n.textfont,insidetextfont:n.insidetextfont,outsidetextfont:n.outsidetextfont,constraintext:n.constraintext,cliponaxis:n.cliponaxis,orientation:n.orientation,offset:n.offset,width:n.width,increasing:h(),decreasing:h(),totals:h(),connector:{line:{color:u({},i.color,{dflt:f.defaultLine}),width:u({},i.width,{editType:&quot;plot&quot;}),dash:i.dash,editType:&quot;plot&quot;},mode:{valType:&quot;enumerated&quot;,values:[&quot;spanning&quot;,&quot;between&quot;],dflt:&quot;between&quot;,editType:&quot;plot&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup}},{&quot;../../components/color&quot;:366,&quot;../../lib/extend&quot;:493,&quot;../../plots/attributes&quot;:550,&quot;../../plots/cartesian/axis_format_attributes&quot;:557,&quot;../../plots/template_attributes&quot;:633,&quot;../bar/attributes&quot;:648,&quot;../scatter/attributes&quot;:926,&quot;./constants&quot;:1104}],1103:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;../../lib&quot;).mergeArray,o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t){return&quot;a&quot;===t||&quot;absolute&quot;===t}function c(t){return&quot;t&quot;===t||&quot;total&quot;===t}e.exports=function(t,e){var r,u,f,h,p,d,m=n.getFromId(t,e.xaxis||&quot;x&quot;),g=n.getFromId(t,e.yaxis||&quot;y&quot;);&quot;h&quot;===e.orientation?(r=m.makeCalcdata(e,&quot;x&quot;),f=g.makeCalcdata(e,&quot;y&quot;),h=i(e,g,&quot;y&quot;,f),p=!!e.yperiodalignment,d=&quot;y&quot;):(r=g.makeCalcdata(e,&quot;y&quot;),f=m.makeCalcdata(e,&quot;x&quot;),h=i(e,m,&quot;x&quot;,f),p=!!e.xperiodalignment,d=&quot;x&quot;),u=h.vals;for(var v,y=Math.min(u.length,r.length),x=new Array(y),b=0,_=!1,w=0;w&lt;y;w++){var T=r[w]||0,k=!1;(r[w]!==s||c(e.measure[w])||l(e.measure[w]))&amp;&amp;w+1&lt;y&amp;&amp;(r[w+1]!==s||c(e.measure[w+1])||l(e.measure[w+1]))&amp;&amp;(k=!0);var A=x[w]={i:w,p:u[w],s:T,rawS:T,cNext:k};l(e.measure[w])?(b=A.s,A.isSum=!0,A.dir=&quot;totals&quot;,A.s=b):c(e.measure[w])?(A.isSum=!0,A.dir=&quot;totals&quot;,A.s=b):(A.isSum=!1,A.dir=A.rawS&lt;0?&quot;decreasing&quot;:&quot;increasing&quot;,v=A.s,A.s=b+v,b+=v),&quot;totals&quot;===A.dir&amp;&amp;(_=!0),p&amp;&amp;(x[w].orig_p=f[w],x[w][d+&quot;End&quot;]=h.ends[w],x[w][d+&quot;Start&quot;]=h.starts[w]),e.ids&amp;&amp;(A.id=String(e.ids[w])),A.v=(e.base||0)+b}return x.length&amp;&amp;(x[0].hasTotals=_),a(e.text,x,&quot;tx&quot;),a(e.hovertext,x,&quot;htx&quot;),o(x,e),x}},{&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../../plots/cartesian/align_period&quot;:551,&quot;../../plots/cartesian/axes&quot;:554,&quot;../scatter/calc_selection&quot;:928}],1104:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;]}},{}],1105:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions;e.exports=function(t,e){var r,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,c=e.yaxis,u=[],f=[],h=[];for(i=0;i&lt;o.length;i++){var p=o[i];!0===p.visible&amp;&amp;p.xaxis===l._id&amp;&amp;p.yaxis===c._id&amp;&amp;&quot;waterfall&quot;===p.type&amp;&amp;(r=s[i],&quot;h&quot;===p.orientation?h.push(r):f.push(r),u.push(r))}var d={mode:a.waterfallmode,norm:a.waterfallnorm,gap:a.waterfallgap,groupgap:a.waterfallgroupgap};for(n(t,l,c,f,d),n(t,c,l,h,d),i=0;i&lt;u.length;i++){r=u[i];for(var m=0;m&lt;r.length;m++){var g=r[m];!1===g.isSum&amp;&amp;(g.s0+=0===m?0:r[m-1].s),m+1&lt;r.length&amp;&amp;(r[m].nextP0=r[m+1].p0,r[m].nextS0=r[m+1].s0)}}}},{&quot;../bar/cross_trace_calc&quot;:651}],1106:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,a=t(&quot;../bar/defaults&quot;).handleText,o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../../components/color&quot;),u=t(&quot;../../constants/delta.js&quot;),f=u.INCREASING.COLOR,h=u.DECREASING.COLOR;function p(t,e,r){t(e+&quot;.marker.color&quot;,r),t(e+&quot;.marker.line.color&quot;,c.defaultLine),t(e+&quot;.marker.line.width&quot;)}e.exports={supplyDefaults:function(t,e,r,i){function c(r,i){return n.coerce(t,e,l,r,i)}if(o(t,e,i,c)){s(t,e,i,c),c(&quot;xhoverformat&quot;),c(&quot;yhoverformat&quot;),c(&quot;measure&quot;),c(&quot;orientation&quot;,e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;),c(&quot;base&quot;),c(&quot;offset&quot;),c(&quot;width&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;);var u=c(&quot;textposition&quot;);if(a(t,e,i,c,u,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),&quot;none&quot;!==e.textposition&amp;&amp;(c(&quot;texttemplate&quot;),e.texttemplate||c(&quot;textinfo&quot;)),p(c,&quot;increasing&quot;,f),p(c,&quot;decreasing&quot;,h),p(c,&quot;totals&quot;,&quot;#4499FF&quot;),c(&quot;connector.visible&quot;))c(&quot;connector.mode&quot;),c(&quot;connector.line.width&quot;)&amp;&amp;(c(&quot;connector.line.color&quot;),c(&quot;connector.line.dash&quot;))}else e.visible=!1},crossTraceDefaults:function(t,e){var r,a;function o(t){return n.coerce(a._input,a,l,t)}if(&quot;group&quot;===e.waterfallmode)for(var s=0;s&lt;t.length;s++)r=(a=t[s])._input,i(r,a,e,o)}}},{&quot;../../components/color&quot;:366,&quot;../../constants/delta.js&quot;:473,&quot;../../lib&quot;:503,&quot;../bar/defaults&quot;:652,&quot;../scatter/period_defaults&quot;:946,&quot;../scatter/xy_defaults&quot;:953,&quot;./attributes&quot;:1102}],1107:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;initial&quot;in e&amp;&amp;(t.initial=e.initial),&quot;delta&quot;in e&amp;&amp;(t.delta=e.delta),&quot;final&quot;in e&amp;&amp;(t.final=e.final),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],1108:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText,i=t(&quot;../../components/color&quot;).opacity,a=t(&quot;../bar/hover&quot;).hoverOnBars,o=t(&quot;../../constants/delta.js&quot;),s=o.INCREASING.SYMBOL,l=o.DECREASING.SYMBOL;e.exports=function(t,e,r,o,c){var u=a(t,e,r,o,c);if(u){var f=u.cd,h=f[0].trace,p=&quot;h&quot;===h.orientation,d=p?&quot;x&quot;:&quot;y&quot;,m=p?t.xa:t.ya,g=f[u.index],v=g.isSum?g.b+g.s:g.rawS;if(!g.isSum){u.initial=g.b+g.s-v,u.delta=v,u.final=u.initial+u.delta;var y=k(Math.abs(u.delta));u.deltaLabel=v&lt;0?&quot;(&quot;+y+&quot;)&quot;:y,u.finalLabel=k(u.final),u.initialLabel=k(u.initial)}var x=g.hi||h.hoverinfo,b=[];if(x&amp;&amp;&quot;none&quot;!==x&amp;&amp;&quot;skip&quot;!==x){var _=&quot;all&quot;===x,w=x.split(&quot;+&quot;),T=function(t){return _||-1!==w.indexOf(t)};g.isSum||(!T(&quot;final&quot;)||T(p?&quot;x&quot;:&quot;y&quot;)||b.push(u.finalLabel),T(&quot;delta&quot;)&amp;&amp;(v&lt;0?b.push(u.deltaLabel+&quot; &quot;+l):b.push(u.deltaLabel+&quot; &quot;+s)),T(&quot;initial&quot;)&amp;&amp;b.push(&quot;Initial: &quot;+u.initialLabel))}return b.length&amp;&amp;(u.extraText=b.join(&quot;&lt;br&gt;&quot;)),u.color=function(t,e){var r=t[e.dir].marker,n=r.color,a=r.line.color,o=r.line.width;if(i(n))return n;if(i(a)&amp;&amp;o)return a}(h,g),[u]}function k(t){return n(m,t,h[d+&quot;hoverformat&quot;])}}},{&quot;../../components/color&quot;:366,&quot;../../constants/delta.js&quot;:473,&quot;../../plots/cartesian/axes&quot;:554,&quot;../bar/hover&quot;:655}],1109:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;../bar/select&quot;),moduleType:&quot;trace&quot;,name:&quot;waterfall&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;oriented&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:568,&quot;../bar/select&quot;:660,&quot;./attributes&quot;:1102,&quot;./calc&quot;:1103,&quot;./cross_trace_calc&quot;:1105,&quot;./defaults&quot;:1106,&quot;./event_data&quot;:1107,&quot;./hover&quot;:1108,&quot;./layout_attributes&quot;:1110,&quot;./layout_defaults&quot;:1111,&quot;./plot&quot;:1112,&quot;./style&quot;:1113}],1110:[function(t,e,r){&quot;use strict&quot;;e.exports={waterfallmode:{valType:&quot;enumerated&quot;,values:[&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;group&quot;,editType:&quot;calc&quot;},waterfallgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},waterfallgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],1111:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s&lt;r.length;s++){var l=r[s];if(l.visible&amp;&amp;&quot;waterfall&quot;===l.type){a=!0;break}}a&amp;&amp;(o(&quot;waterfallmode&quot;),o(&quot;waterfallgap&quot;,.2),o(&quot;waterfallgroupgap&quot;))}},{&quot;../../lib&quot;:503,&quot;./layout_attributes&quot;:1110}],1112:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../constants/numerical&quot;).BADNUM,s=t(&quot;../bar/plot&quot;),l=t(&quot;../bar/uniform_text&quot;).clearMinTextSize;e.exports=function(t,e,r,c){var u=t._fullLayout;l(&quot;waterfall&quot;,u),s.plot(t,e,r,c,{mode:u.waterfallmode,norm:u.waterfallmode,gap:u.waterfallgap,groupgap:u.waterfallgroupgap}),function(t,e,r,s){var l=e.xaxis,c=e.yaxis;i.makeTraceGroups(s,r,&quot;trace bars&quot;).each((function(r){var s=n.select(this),u=r[0].trace,f=i.ensureSingle(s,&quot;g&quot;,&quot;lines&quot;);if(u.connector&amp;&amp;u.connector.visible){var h=&quot;h&quot;===u.orientation,p=u.connector.mode,d=f.selectAll(&quot;g.line&quot;).data(i.identity);d.enter().append(&quot;g&quot;).classed(&quot;line&quot;,!0),d.exit().remove();var m=d.size();d.each((function(r,s){if(s===m-1||r.cNext){var u=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),n?[i,a]:[a,i]}(r,l,c,h),f=u[0],d=u[1],g=&quot;&quot;;f[0]!==o&amp;&amp;d[0]!==o&amp;&amp;f[1]!==o&amp;&amp;d[1]!==o&amp;&amp;(&quot;spanning&quot;===p&amp;&amp;!r.isSum&amp;&amp;s&gt;0&amp;&amp;(g+=h?&quot;M&quot;+f[0]+&quot;,&quot;+d[1]+&quot;V&quot;+d[0]:&quot;M&quot;+f[1]+&quot;,&quot;+d[0]+&quot;H&quot;+f[0]),&quot;between&quot;!==p&amp;&amp;(r.isSum||s&lt;m-1)&amp;&amp;(g+=h?&quot;M&quot;+f[1]+&quot;,&quot;+d[0]+&quot;V&quot;+d[1]:&quot;M&quot;+f[0]+&quot;,&quot;+d[1]+&quot;H&quot;+f[1]),f[2]!==o&amp;&amp;d[2]!==o&amp;&amp;(g+=h?&quot;M&quot;+f[1]+&quot;,&quot;+d[1]+&quot;V&quot;+d[2]:&quot;M&quot;+f[1]+&quot;,&quot;+d[1]+&quot;H&quot;+f[2])),&quot;&quot;===g&amp;&amp;(g=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,g).call(a.setClipUrl,e.layerClipId,t)}}))}else f.remove()}))}(t,e,r,c)}},{&quot;../../components/drawing&quot;:388,&quot;../../constants/numerical&quot;:479,&quot;../../lib&quot;:503,&quot;../bar/plot&quot;:659,&quot;../bar/uniform_text&quot;:664,&quot;@plotly/d3&quot;:58}],1113:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../constants/interactions&quot;).DESELECTDIM,s=t(&quot;../bar/style&quot;),l=t(&quot;../bar/uniform_text&quot;).resizeText,c=s.styleTextPoints;e.exports={style:function(t,e,r){var s=r||n.select(t).selectAll(&quot;g.waterfalllayer&quot;).selectAll(&quot;g.trace&quot;);l(t,s,&quot;waterfall&quot;),s.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),s.each((function(e){var r=n.select(this),s=e[0].trace;r.selectAll(&quot;.point &gt; path&quot;).each((function(t){if(!t.isBlank){var e=s[t.dir].marker;n.select(this).call(a.fill,e.color).call(a.stroke,e.line.color).call(i.dashLine,e.line.dash,e.line.width).style(&quot;opacity&quot;,s.selectedpoints&amp;&amp;!t.selected?o:1)}})),c(r,s,t),r.selectAll(&quot;.lines&quot;).each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll(&quot;path&quot;),t.width,t.color,t.dash)}))}))}}},{&quot;../../components/color&quot;:366,&quot;../../components/drawing&quot;:388,&quot;../../constants/interactions&quot;:478,&quot;../bar/style&quot;:662,&quot;../bar/uniform_text&quot;:664,&quot;@plotly/d3&quot;:58}],1114:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../plots/cartesian/axes&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../plot_api/plot_schema&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction,s=t(&quot;../constants/numerical&quot;).BADNUM;r.moduleType=&quot;transform&quot;,r.name=&quot;aggregate&quot;;var l=r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},groups:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},aggregations:{_isLinkedToArray:&quot;aggregation&quot;,target:{valType:&quot;string&quot;,editType:&quot;calc&quot;},func:{valType:&quot;enumerated&quot;,values:[&quot;count&quot;,&quot;sum&quot;,&quot;avg&quot;,&quot;median&quot;,&quot;mode&quot;,&quot;rms&quot;,&quot;stddev&quot;,&quot;min&quot;,&quot;max&quot;,&quot;first&quot;,&quot;last&quot;,&quot;change&quot;,&quot;range&quot;],dflt:&quot;first&quot;,editType:&quot;calc&quot;},funcmode:{valType:&quot;enumerated&quot;,values:[&quot;sample&quot;,&quot;population&quot;],dflt:&quot;sample&quot;,editType:&quot;calc&quot;},enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},c=l.aggregations;function u(t,e,r,a){if(a.enabled){for(var o=a.target,l=i.nestedProperty(e,o),c=l.get(),u=function(t,e){var r=t.func,n=e.d2c,a=e.c2d;switch(r){case&quot;count&quot;:return f;case&quot;first&quot;:return h;case&quot;last&quot;:return p;case&quot;sum&quot;:return function(t,e){for(var r=0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r+=o)}return a(r)};case&quot;avg&quot;:return function(t,e){for(var r=0,i=0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r+=l,i++)}return i?a(r/i):s};case&quot;min&quot;:return function(t,e){for(var r=1/0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r=Math.min(r,o))}return r===1/0?s:a(r)};case&quot;max&quot;:return function(t,e){for(var r=-1/0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r=Math.max(r,o))}return r===-1/0?s:a(r)};case&quot;range&quot;:return function(t,e){for(var r=1/0,i=-1/0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r=Math.min(r,l),i=Math.max(i,l))}return i===-1/0||r===1/0?s:a(i-r)};case&quot;change&quot;:return function(t,e){var r=n(t[e[0]]),i=n(t[e[e.length-1]]);return r===s||i===s?s:a(i-r)};case&quot;median&quot;:return function(t,e){for(var r=[],o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;r.push(l)}if(!r.length)return s;r.sort(i.sorterAsc);var c=(r.length-1)/2;return a((r[Math.floor(c)]+r[Math.ceil(c)])/2)};case&quot;mode&quot;:return function(t,e){for(var r={},i=0,o=s,l=0;l&lt;e.length;l++){var c=n(t[e[l]]);if(c!==s){var u=r[c]=(r[c]||0)+1;u&gt;i&amp;&amp;(i=u,o=c)}}return i?a(o):s};case&quot;rms&quot;:return function(t,e){for(var r=0,i=0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r+=l*l,i++)}return i?a(Math.sqrt(r/i)):s};case&quot;stddev&quot;:return function(e,r){var i,a=0,o=0,l=1,c=s;for(i=0;i&lt;r.length&amp;&amp;c===s;i++)c=n(e[r[i]]);if(c===s)return s;for(;i&lt;r.length;i++){var u=n(e[r[i]]);if(u!==s){var f=u-c;a+=f,o+=f*f,l++}}var h=&quot;sample&quot;===t.funcmode?l-1:l;return h?Math.sqrt((o-a*a/l)/h):0}}}(a,n.getDataConversions(t,e,o,c)),d=new Array(r.length),m=0;m&lt;r.length;m++)d[m]=u(c,r[m]);l.set(d),&quot;count&quot;===a.func&amp;&amp;i.pushUnique(e._arrayAttrs,o)}}function f(t,e){return e.length}function h(t,e){return t[e[0]]}function p(t,e){return t[e[e.length-1]]}r.supplyDefaults=function(t,e){var r,n={};function o(e,r){return i.coerce(t,n,l,e,r)}if(!o(&quot;enabled&quot;))return n;var s=a.findArrayAttributes(e),u={};for(r=0;r&lt;s.length;r++)u[s[r]]=1;var f=o(&quot;groups&quot;);if(!Array.isArray(f)){if(!u[f])return n.enabled=!1,n;u[f]=0}var h,p=t.aggregations||[],d=n.aggregations=new Array(p.length);function m(t,e){return i.coerce(p[r],h,c,t,e)}for(r=0;r&lt;p.length;r++){h={_index:r};var g=m(&quot;target&quot;),v=m(&quot;func&quot;);m(&quot;enabled&quot;)&amp;&amp;g&amp;&amp;(u[g]||&quot;count&quot;===v&amp;&amp;void 0===u[g])?(&quot;stddev&quot;===v&amp;&amp;m(&quot;funcmode&quot;),u[g]=0,d[r]=h):d[r]={enabled:!1,_index:r}}for(r=0;r&lt;s.length;r++)u[s[r]]&amp;&amp;d.push({target:s[r],func:c.func.dflt,enabled:!0,_index:-1});return n},r.calcTransform=function(t,e,r){if(r.enabled){var n=r.groups,a=i.getTargetArray(e,{target:n});if(a){var s,l,c,f,h={},p={},d=[],m=o(e.transforms,r),g=a.length;for(e._length&amp;&amp;(g=Math.min(g,e._length)),s=0;s&lt;g;s++)void 0===(c=h[l=a[s]])?(h[l]=d.length,f=[s],d.push(f),p[h[l]]=m(s)):(d[c].push(s),p[h[l]]=(p[h[l]]||[]).concat(m(s)));r._indexToPoints=p;var v=r.aggregations;for(s=0;s&lt;v.length;s++)u(t,e,d,v[s]);&quot;string&quot;==typeof n&amp;&amp;u(t,e,d,{target:n,func:&quot;first&quot;,enabled:!0}),e._length=d.length}}}},{&quot;../constants/numerical&quot;:479,&quot;../lib&quot;:503,&quot;../plot_api/plot_schema&quot;:542,&quot;../plots/cartesian/axes&quot;:554,&quot;./helpers&quot;:1117}],1115:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../registry&quot;),a=t(&quot;../plots/cartesian/axes&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction,s=t(&quot;../constants/filter_ops&quot;),l=s.COMPARISON_OPS,c=s.INTERVAL_OPS,u=s.SET_OPS;r.moduleType=&quot;transform&quot;,r.name=&quot;filter&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},target:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},operation:{valType:&quot;enumerated&quot;,values:[].concat(l).concat(c).concat(u),dflt:&quot;=&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},preservegaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t){var e={};function a(i,a){return n.coerce(t,e,r.attributes,i,a)}if(a(&quot;enabled&quot;)){var o=a(&quot;target&quot;);if(n.isArrayOrTypedArray(o)&amp;&amp;0===o.length)return e.enabled=!1,e;a(&quot;preservegaps&quot;),a(&quot;operation&quot;),a(&quot;value&quot;);var s=i.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;);s(t,e,&quot;valuecalendar&quot;,null),s(t,e,&quot;targetcalendar&quot;,null)}return e},r.calcTransform=function(t,e,r){if(r.enabled){var i=n.getTargetArray(e,r);if(i){var s=r.target,f=i.length;e._length&amp;&amp;(f=Math.min(f,e._length));var h=r.targetcalendar,p=e._arrayAttrs,d=r.preservegaps;if(&quot;string&quot;==typeof s){var m=n.nestedProperty(e,s+&quot;calendar&quot;).get();m&amp;&amp;(h=m)}var g,v,y=function(t,e,r){var n=t.operation,i=t.value,a=Array.isArray(i);function o(t){return-1!==t.indexOf(n)}var s,f=function(r){return e(r,0,t.valuecalendar)},h=function(t){return e(t,0,r)};o(l)?s=f(a?i[0]:i):o(c)?s=a?[f(i[0]),f(i[1])]:[f(i),f(i)]:o(u)&amp;&amp;(s=a?i.map(f):[f(i)]);switch(n){case&quot;=&quot;:return function(t){return h(t)===s};case&quot;!=&quot;:return function(t){return h(t)!==s};case&quot;&lt;&quot;:return function(t){return h(t)&lt;s};case&quot;&lt;=&quot;:return function(t){return h(t)&lt;=s};case&quot;&gt;&quot;:return function(t){return h(t)&gt;s};case&quot;&gt;=&quot;:return function(t){return h(t)&gt;=s};case&quot;[]&quot;:return function(t){var e=h(t);return e&gt;=s[0]&amp;&amp;e&lt;=s[1]};case&quot;()&quot;:return function(t){var e=h(t);return e&gt;s[0]&amp;&amp;e&lt;s[1]};case&quot;[)&quot;:return function(t){var e=h(t);return e&gt;=s[0]&amp;&amp;e&lt;s[1]};case&quot;(]&quot;:return function(t){var e=h(t);return e&gt;s[0]&amp;&amp;e&lt;=s[1]};case&quot;][&quot;:return function(t){var e=h(t);return e&lt;=s[0]||e&gt;=s[1]};case&quot;)(&quot;:return function(t){var e=h(t);return e&lt;s[0]||e&gt;s[1]};case&quot;](&quot;:return function(t){var e=h(t);return e&lt;=s[0]||e&gt;s[1]};case&quot;)[&quot;:return function(t){var e=h(t);return e&lt;s[0]||e&gt;=s[1]};case&quot;{}&quot;:return function(t){return-1!==s.indexOf(h(t))};case&quot;}{&quot;:return function(t){return-1===s.indexOf(h(t))}}}(r,a.getDataToCoordFunc(t,e,s,i),h),x={},b={},_=0;d?(g=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set(new Array(f))},v=function(t,e){var r=x[t.astr][e];t.get()[e]=r}):(g=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set([])},v=function(t,e){var r=x[t.astr][e];t.get().push(r)}),k(g);for(var w=o(e.transforms,r),T=0;T&lt;f;T++){y(i[T])?(k(v,T),b[_++]=w(T)):d&amp;&amp;_++}r._indexToPoints=b,e._length=_}}function k(t,r){for(var i=0;i&lt;p.length;i++){t(n.nestedProperty(e,p[i]),r)}}}},{&quot;../constants/filter_ops&quot;:475,&quot;../lib&quot;:503,&quot;../plots/cartesian/axes&quot;:554,&quot;../registry&quot;:638,&quot;./helpers&quot;:1117}],1116:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_schema&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction;function s(t,e){var r,s,l,c,u,f,h,p,d,m,g=e.transform,v=e.transformIndex,y=t.transforms[v].groups,x=o(t.transforms,g);if(!n.isArrayOrTypedArray(y)||0===y.length)return[t];var b=n.filterUnique(y),_=new Array(b.length),w=y.length,T=i.findArrayAttributes(t),k=g.styles||[],A={};for(r=0;r&lt;k.length;r++)A[k[r].target]=k[r].value;g.styles&amp;&amp;(m=n.keyedContainer(g,&quot;styles&quot;,&quot;target&quot;,&quot;value.name&quot;));var M={},S={};for(r=0;r&lt;b.length;r++){M[f=b[r]]=r,S[f]=0,(h=_[r]=n.extendDeepNoArrays({},t))._group=f,h.transforms[v]._indexToPoints={};var E=null;for(m&amp;&amp;(E=m.get(f)),h.name=E||&quot;&quot;===E?E:n.templateString(g.nameformat,{trace:t.name,group:f}),p=h.transforms,h.transforms=[],s=0;s&lt;p.length;s++)h.transforms[s]=n.extendDeepNoArrays({},p[s]);for(s=0;s&lt;T.length;s++)n.nestedProperty(h,T[s]).set([])}for(l=0;l&lt;T.length;l++){for(c=T[l],s=0,d=[];s&lt;b.length;s++)d[s]=n.nestedProperty(_[s],c).get();for(u=n.nestedProperty(t,c).get(),s=0;s&lt;w;s++)d[M[y[s]]].push(u[s])}for(s=0;s&lt;w;s++){(h=_[M[y[s]]]).transforms[v]._indexToPoints[S[y[s]]]=x(s),S[y[s]]++}for(r=0;r&lt;b.length;r++)f=b[r],h=_[r],a.clearExpandedTraceDefaultColors(h),h=n.extendDeepNoArrays(h,A[f]||{});return _}r.moduleType=&quot;transform&quot;,r.name=&quot;groupby&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},groups:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},nameformat:{valType:&quot;string&quot;,editType:&quot;calc&quot;},styles:{_isLinkedToArray:&quot;style&quot;,target:{valType:&quot;string&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:{},editType:&quot;calc&quot;,_compareAsJSON:!0},editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t,e,i){var a,o={};function s(e,i){return n.coerce(t,o,r.attributes,e,i)}if(!s(&quot;enabled&quot;))return o;s(&quot;groups&quot;),s(&quot;nameformat&quot;,i._dataLength&gt;1?&quot;%{group} (%{trace})&quot;:&quot;%{group}&quot;);var l=t.styles,c=o.styles=[];if(l)for(a=0;a&lt;l.length;a++){var u=c[a]={};n.coerce(l[a],c[a],r.attributes.styles,&quot;target&quot;);var f=n.coerce(l[a],c[a],r.attributes.styles,&quot;value&quot;);n.isPlainObject(f)?u.value=n.extendDeep({},f):f&amp;&amp;delete u.value}return o},r.transform=function(t,e){var r,n,i,a=[];for(n=0;n&lt;t.length;n++)for(r=s(t[n],e),i=0;i&lt;r.length;i++)a.push(r[i]);return a}},{&quot;../lib&quot;:503,&quot;../plot_api/plot_schema&quot;:542,&quot;../plots/plots&quot;:619,&quot;./helpers&quot;:1117}],1117:[function(t,e,r){&quot;use strict&quot;;r.pointsAccessorFunction=function(t,e){for(var r,n,i=0;i&lt;t.length&amp;&amp;(r=t[i])!==e;i++)r._indexToPoints&amp;&amp;!1!==r.enabled&amp;&amp;(n=r._indexToPoints);return n?function(t){return n[t]}:function(t){return[t]}}},{}],1118:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/cartesian/axes&quot;),a=t(&quot;./helpers&quot;).pointsAccessorFunction,o=t(&quot;../constants/numerical&quot;).BADNUM;r.moduleType=&quot;transform&quot;,r.name=&quot;sort&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},target:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},order:{valType:&quot;enumerated&quot;,values:[&quot;ascending&quot;,&quot;descending&quot;],dflt:&quot;ascending&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t){var e={};function i(i,a){return n.coerce(t,e,r.attributes,i,a)}return i(&quot;enabled&quot;)&amp;&amp;(i(&quot;target&quot;),i(&quot;order&quot;)),e},r.calcTransform=function(t,e,r){if(r.enabled){var s=n.getTargetArray(e,r);if(s){var l=r.target,c=s.length;e._length&amp;&amp;(c=Math.min(c,e._length));var u,f,h=e._arrayAttrs,p=function(t,e,r,n){var i,a=new Array(n),s=new Array(n);for(i=0;i&lt;n;i++)a[i]={v:e[i],i:i};for(a.sort(function(t,e){switch(t.order){case&quot;ascending&quot;:return function(t,r){var n=e(t.v),i=e(r.v);return n===o?1:i===o?-1:n-i};case&quot;descending&quot;:return function(t,r){var n=e(t.v),i=e(r.v);return n===o?1:i===o?-1:i-n}}}(t,r)),i=0;i&lt;n;i++)s[i]=a[i].i;return s}(r,s,i.getDataToCoordFunc(t,e,l,s),c),d=a(e.transforms,r),m={};for(u=0;u&lt;h.length;u++){var g=n.nestedProperty(e,h[u]),v=g.get(),y=new Array(c);for(f=0;f&lt;c;f++)y[f]=v[p[f]];g.set(y)}for(f=0;f&lt;c;f++)m[f]=d(p[f]);r._indexToPoints=m,e._length=c}}}},{&quot;../constants/numerical&quot;:479,&quot;../lib&quot;:503,&quot;../plots/cartesian/axes&quot;:554,&quot;./helpers&quot;:1117}],1119:[function(t,e,r){&quot;use strict&quot;;r.version=&quot;2.8.3&quot;},{}],1120:[function(t,e,r){(function(n){(function(){!function(t){&quot;object&quot;==typeof r&amp;&amp;void 0!==e?e.exports=t():(&quot;undefined&quot;!=typeof window?window:void 0!==n?n:&quot;undefined&quot;!=typeof self?self:this).stackgl=t()}((function(){return function e(r,n,i){function a(s,l){if(!n[s]){if(!r[s]){var c=&quot;function&quot;==typeof t&amp;&amp;t;if(!l&amp;&amp;c)return c(s,!0);if(o)return o(s,!0);var u=new Error(&quot;Cannot find module '&quot;+s+&quot;'&quot;);throw u.code=&quot;MODULE_NOT_FOUND&quot;,u}var f=n[s]={exports:{}};r[s][0].call(f.exports,(function(t){return a(r[s][1][t]||t)}),f,f.exports,e,r,n,i)}return n[s].exports}for(var o=&quot;function&quot;==typeof t&amp;&amp;t,s=0;s&lt;i.length;s++)a(i[s]);return a}({1:[function(t,e,r){&quot;use strict&quot;;r.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){var e,r,n=c(t),o=n[0],s=n[1],l=new a(function(t,e,r){return 3*(e+r)/4-r}(0,o,s)),u=0,f=s&gt;0?o-4:o;for(r=0;r&lt;f;r+=4)e=i[t.charCodeAt(r)]&lt;&lt;18|i[t.charCodeAt(r+1)]&lt;&lt;12|i[t.charCodeAt(r+2)]&lt;&lt;6|i[t.charCodeAt(r+3)],l[u++]=e&gt;&gt;16&amp;255,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e;2===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;2|i[t.charCodeAt(r+1)]&gt;&gt;4,l[u++]=255&amp;e);1===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;10|i[t.charCodeAt(r+1)]&lt;&lt;4|i[t.charCodeAt(r+2)]&gt;&gt;2,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e);return l},r.fromByteArray=function(t){for(var e,r=t.length,i=r%3,a=[],o=0,s=r-i;o&lt;s;o+=16383)a.push(u(t,o,o+16383&gt;s?s:o+16383));1===i?(e=t[r-1],a.push(n[e&gt;&gt;2]+n[e&lt;&lt;4&amp;63]+&quot;==&quot;)):2===i&amp;&amp;(e=(t[r-2]&lt;&lt;8)+t[r-1],a.push(n[e&gt;&gt;10]+n[e&gt;&gt;4&amp;63]+n[e&lt;&lt;2&amp;63]+&quot;=&quot;));return a.join(&quot;&quot;)};for(var n=[],i=[],a=&quot;undefined&quot;!=typeof Uint8Array?Uint8Array:Array,o=&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/&quot;,s=0,l=o.length;s&lt;l;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4&gt;0)throw new Error(&quot;Invalid string. Length must be a multiple of 4&quot;);var r=t.indexOf(&quot;=&quot;);return-1===r&amp;&amp;(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var i,a,o=[],s=e;s&lt;r;s+=3)i=(t[s]&lt;&lt;16&amp;16711680)+(t[s+1]&lt;&lt;8&amp;65280)+(255&amp;t[s+2]),o.push(n[(a=i)&gt;&gt;18&amp;63]+n[a&gt;&gt;12&amp;63]+n[a&gt;&gt;6&amp;63]+n[63&amp;a]);return o.join(&quot;&quot;)}i[&quot;-&quot;.charCodeAt(0)]=62,i[&quot;_&quot;.charCodeAt(0)]=63},{}],2:[function(t,e,r){},{}],3:[function(t,e,r){(function(e){(function(){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh &lt;https://feross.org&gt;
 * @license  MIT
 */
&quot;use strict&quot;;var e=t(&quot;base64-js&quot;),n=t(&quot;ieee754&quot;);r.Buffer=a,r.SlowBuffer=function(t){+t!=t&amp;&amp;(t=0);return a.alloc(+t)},r.INSPECT_MAX_BYTES=50;function i(t){if(t&gt;2147483647)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;');var e=new Uint8Array(t);return e.__proto__=a.prototype,e}function a(t,e,r){if(&quot;number&quot;==typeof t){if(&quot;string&quot;==typeof e)throw new TypeError('The &quot;string&quot; argument must be of type string. Received type number');return l(t)}return o(t,e,r)}function o(t,e,r){if(&quot;string&quot;==typeof t)return function(t,e){&quot;string&quot;==typeof e&amp;&amp;&quot;&quot;!==e||(e=&quot;utf8&quot;);if(!a.isEncoding(e))throw new TypeError(&quot;Unknown encoding: &quot;+e);var r=0|f(t,e),n=i(r),o=n.write(t,e);o!==r&amp;&amp;(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t);if(B(t,ArrayBuffer)||t&amp;&amp;B(t.buffer,ArrayBuffer))return function(t,e,r){if(e&lt;0||t.byteLength&lt;e)throw new RangeError('&quot;offset&quot; is outside of buffer bounds');if(t.byteLength&lt;e+(r||0))throw new RangeError('&quot;length&quot; is outside of buffer bounds');var n;n=void 0===e&amp;&amp;void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return n.__proto__=a.prototype,n}(t,e,r);if(&quot;number&quot;==typeof t)throw new TypeError('The &quot;value&quot; argument must not be of type number. Received type number');var n=t.valueOf&amp;&amp;t.valueOf();if(null!=n&amp;&amp;n!==t)return a.from(n,e,r);var o=function(t){if(a.isBuffer(t)){var e=0|u(t.length),r=i(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return&quot;number&quot;!=typeof t.length||N(t.length)?i(0):c(t);if(&quot;Buffer&quot;===t.type&amp;&amp;Array.isArray(t.data))return c(t.data)}(t);if(o)return o;if(&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.toPrimitive&amp;&amp;&quot;function&quot;==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive](&quot;string&quot;),e,r);throw new TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t)}function s(t){if(&quot;number&quot;!=typeof t)throw new TypeError('&quot;size&quot; argument must be of type number');if(t&lt;0)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;')}function l(t){return s(t),i(t&lt;0?0:0|u(t))}function c(t){for(var e=t.length&lt;0?0:0|u(t.length),r=i(e),n=0;n&lt;e;n+=1)r[n]=255&amp;t[n];return r}function u(t){if(t&gt;=2147483647)throw new RangeError(&quot;Attempt to allocate Buffer larger than maximum size: 0x&quot;+2147483647..toString(16)+&quot; bytes&quot;);return 0|t}function f(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||B(t,ArrayBuffer))return t.byteLength;if(&quot;string&quot;!=typeof t)throw new TypeError('The &quot;string&quot; argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length&gt;2&amp;&amp;!0===arguments[2];if(!n&amp;&amp;0===r)return 0;for(var i=!1;;)switch(e){case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:return r;case&quot;utf8&quot;:case&quot;utf-8&quot;:return D(t).length;case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return 2*r;case&quot;hex&quot;:return r&gt;&gt;&gt;1;case&quot;base64&quot;:return R(t).length;default:if(i)return n?-1:D(t).length;e=(&quot;&quot;+e).toLowerCase(),i=!0}}function h(t,e,r){var n=!1;if((void 0===e||e&lt;0)&amp;&amp;(e=0),e&gt;this.length)return&quot;&quot;;if((void 0===r||r&gt;this.length)&amp;&amp;(r=this.length),r&lt;=0)return&quot;&quot;;if((r&gt;&gt;&gt;=0)&lt;=(e&gt;&gt;&gt;=0))return&quot;&quot;;for(t||(t=&quot;utf8&quot;);;)switch(t){case&quot;hex&quot;:return M(this,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return T(this,e,r);case&quot;ascii&quot;:return k(this,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return A(this,e,r);case&quot;base64&quot;:return w(this,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return S(this,e,r);default:if(n)throw new TypeError(&quot;Unknown encoding: &quot;+t);t=(t+&quot;&quot;).toLowerCase(),n=!0}}function p(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,i){if(0===t.length)return-1;if(&quot;string&quot;==typeof r?(n=r,r=0):r&gt;2147483647?r=2147483647:r&lt;-2147483648&amp;&amp;(r=-2147483648),N(r=+r)&amp;&amp;(r=i?0:t.length-1),r&lt;0&amp;&amp;(r=t.length+r),r&gt;=t.length){if(i)return-1;r=t.length-1}else if(r&lt;0){if(!i)return-1;r=0}if(&quot;string&quot;==typeof e&amp;&amp;(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:m(t,e,r,n,i);if(&quot;number&quot;==typeof e)return e&amp;=255,&quot;function&quot;==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):m(t,[e],r,n,i);throw new TypeError(&quot;val must be string, number or Buffer&quot;)}function m(t,e,r,n,i){var a,o=1,s=t.length,l=e.length;if(void 0!==n&amp;&amp;(&quot;ucs2&quot;===(n=String(n).toLowerCase())||&quot;ucs-2&quot;===n||&quot;utf16le&quot;===n||&quot;utf-16le&quot;===n)){if(t.length&lt;2||e.length&lt;2)return-1;o=2,s/=2,l/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var u=-1;for(a=r;a&lt;s;a++)if(c(t,a)===c(e,-1===u?0:a-u)){if(-1===u&amp;&amp;(u=a),a-u+1===l)return u*o}else-1!==u&amp;&amp;(a-=a-u),u=-1}else for(r+l&gt;s&amp;&amp;(r=s-l),a=r;a&gt;=0;a--){for(var f=!0,h=0;h&lt;l;h++)if(c(t,a+h)!==c(e,h)){f=!1;break}if(f)return a}return-1}function g(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))&gt;i&amp;&amp;(n=i):n=i;var a=e.length;n&gt;a/2&amp;&amp;(n=a/2);for(var o=0;o&lt;n;++o){var s=parseInt(e.substr(2*o,2),16);if(N(s))return o;t[r+o]=s}return o}function v(t,e,r,n){return F(D(e,t.length-r),t,r,n)}function y(t,e,r,n){return F(function(t){for(var e=[],r=0;r&lt;t.length;++r)e.push(255&amp;t.charCodeAt(r));return e}(e),t,r,n)}function x(t,e,r,n){return y(t,e,r,n)}function b(t,e,r,n){return F(R(e),t,r,n)}function _(t,e,r,n){return F(function(t,e){for(var r,n,i,a=[],o=0;o&lt;t.length&amp;&amp;!((e-=2)&lt;0);++o)r=t.charCodeAt(o),n=r&gt;&gt;8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function w(t,r,n){return 0===r&amp;&amp;n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function T(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i&lt;r;){var a,o,s,l,c=t[i],u=null,f=c&gt;239?4:c&gt;223?3:c&gt;191?2:1;if(i+f&lt;=r)switch(f){case 1:c&lt;128&amp;&amp;(u=c);break;case 2:128==(192&amp;(a=t[i+1]))&amp;&amp;(l=(31&amp;c)&lt;&lt;6|63&amp;a)&gt;127&amp;&amp;(u=l);break;case 3:a=t[i+1],o=t[i+2],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;(l=(15&amp;c)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;o)&gt;2047&amp;&amp;(l&lt;55296||l&gt;57343)&amp;&amp;(u=l);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;128==(192&amp;s)&amp;&amp;(l=(15&amp;c)&lt;&lt;18|(63&amp;a)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;s)&gt;65535&amp;&amp;l&lt;1114112&amp;&amp;(u=l)}null===u?(u=65533,f=1):u&gt;65535&amp;&amp;(u-=65536,n.push(u&gt;&gt;&gt;10&amp;1023|55296),u=56320|1023&amp;u),n.push(u),i+=f}return function(t){var e=t.length;if(e&lt;=4096)return String.fromCharCode.apply(String,t);var r=&quot;&quot;,n=0;for(;n&lt;e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}r.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||&quot;undefined&quot;==typeof console||&quot;function&quot;!=typeof console.error||console.error(&quot;This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.&quot;),Object.defineProperty(a.prototype,&quot;parent&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,&quot;offset&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.species&amp;&amp;a[Symbol.species]===a&amp;&amp;Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(t,e,r){return o(t,e,r)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(t,e,r){return function(t,e,r){return s(t),t&lt;=0?i(t):void 0!==e?&quot;string&quot;==typeof r?i(t).fill(e,r):i(t).fill(e):i(t)}(t,e,r)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&amp;&amp;!0===t._isBuffer&amp;&amp;t!==a.prototype},a.compare=function(t,e){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),B(e,Uint8Array)&amp;&amp;(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError('The &quot;buf1&quot;, &quot;buf2&quot; arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i&lt;o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r&lt;n?-1:n&lt;r?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case&quot;hex&quot;:case&quot;utf8&quot;:case&quot;utf-8&quot;:case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:case&quot;base64&quot;:case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return!0;default:return!1}},a.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);var r;if(void 0===e)for(e=0,r=0;r&lt;t.length;++r)e+=t[r].length;var n=a.allocUnsafe(e),i=0;for(r=0;r&lt;t.length;++r){var o=t[r];if(B(o,Uint8Array)&amp;&amp;(o=a.from(o)),!a.isBuffer(o))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(&quot;Buffer size must be a multiple of 16-bits&quot;);for(var e=0;e&lt;t;e+=2)p(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(&quot;Buffer size must be a multiple of 32-bits&quot;);for(var e=0;e&lt;t;e+=4)p(this,e,e+3),p(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(&quot;Buffer size must be a multiple of 64-bits&quot;);for(var e=0;e&lt;t;e+=8)p(this,e,e+7),p(this,e+1,e+6),p(this,e+2,e+5),p(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?&quot;&quot;:0===arguments.length?T(this,0,t):h.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError(&quot;Argument must be a Buffer&quot;);return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t=&quot;&quot;,e=r.INSPECT_MAX_BYTES;return t=this.toString(&quot;hex&quot;,0,e).replace(/(.{2})/g,&quot;$1 &quot;).trim(),this.length&gt;e&amp;&amp;(t+=&quot; ... &quot;),&quot;&lt;Buffer &quot;+t+&quot;&gt;&quot;},a.prototype.compare=function(t,e,r,n,i){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The &quot;target&quot; argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&amp;&amp;(e=0),void 0===r&amp;&amp;(r=t?t.length:0),void 0===n&amp;&amp;(n=0),void 0===i&amp;&amp;(i=this.length),e&lt;0||r&gt;t.length||n&lt;0||i&gt;this.length)throw new RangeError(&quot;out of range index&quot;);if(n&gt;=i&amp;&amp;e&gt;=r)return 0;if(n&gt;=i)return-1;if(e&gt;=r)return 1;if(this===t)return 0;for(var o=(i&gt;&gt;&gt;=0)-(n&gt;&gt;&gt;=0),s=(r&gt;&gt;&gt;=0)-(e&gt;&gt;&gt;=0),l=Math.min(o,s),c=this.slice(n,i),u=t.slice(e,r),f=0;f&lt;l;++f)if(c[f]!==u[f]){o=c[f],s=u[f];break}return o&lt;s?-1:s&lt;o?1:0},a.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return d(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return d(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){if(void 0===e)n=&quot;utf8&quot;,r=this.length,e=0;else if(void 0===r&amp;&amp;&quot;string&quot;==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error(&quot;Buffer.write(string, encoding, offset[, length]) is no longer supported&quot;);e&gt;&gt;&gt;=0,isFinite(r)?(r&gt;&gt;&gt;=0,void 0===n&amp;&amp;(n=&quot;utf8&quot;)):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r&gt;i)&amp;&amp;(r=i),t.length&gt;0&amp;&amp;(r&lt;0||e&lt;0)||e&gt;this.length)throw new RangeError(&quot;Attempt to write outside buffer bounds&quot;);n||(n=&quot;utf8&quot;);for(var a=!1;;)switch(n){case&quot;hex&quot;:return g(this,t,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return v(this,t,e,r);case&quot;ascii&quot;:return y(this,t,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return x(this,t,e,r);case&quot;base64&quot;:return b(this,t,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return _(this,t,e,r);default:if(a)throw new TypeError(&quot;Unknown encoding: &quot;+n);n=(&quot;&quot;+n).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:&quot;Buffer&quot;,data:Array.prototype.slice.call(this._arr||this,0)}};function k(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(127&amp;t[i]);return n}function A(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(t[i]);return n}function M(t,e,r){var n=t.length;(!e||e&lt;0)&amp;&amp;(e=0),(!r||r&lt;0||r&gt;n)&amp;&amp;(r=n);for(var i=&quot;&quot;,a=e;a&lt;r;++a)i+=z(t[a]);return i}function S(t,e,r){for(var n=t.slice(e,r),i=&quot;&quot;,a=0;a&lt;n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function E(t,e,r){if(t%1!=0||t&lt;0)throw new RangeError(&quot;offset is not uint&quot;);if(t+e&gt;r)throw new RangeError(&quot;Trying to access beyond buffer length&quot;)}function L(t,e,r,n,i,o){if(!a.isBuffer(t))throw new TypeError('&quot;buffer&quot; argument must be a Buffer instance');if(e&gt;i||e&lt;o)throw new RangeError('&quot;value&quot; argument is out of bounds');if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;)}function C(t,e,r,n,i,a){if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;);if(r&lt;0)throw new RangeError(&quot;Index out of range&quot;)}function P(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||C(t,0,r,4),n.write(t,e,r,i,23,4),r+4}function I(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||C(t,0,r,8),n.write(t,e,r,i,52,8),r+8}a.prototype.slice=function(t,e){var r=this.length;(t=~~t)&lt;0?(t+=r)&lt;0&amp;&amp;(t=0):t&gt;r&amp;&amp;(t=r),(e=void 0===e?r:~~e)&lt;0?(e+=r)&lt;0&amp;&amp;(e=0):e&gt;r&amp;&amp;(e=r),e&lt;t&amp;&amp;(e=t);var n=this.subarray(t,e);return n.__proto__=a.prototype,n},a.prototype.readUIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n},a.prototype.readUIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t+--e],i=1;e&gt;0&amp;&amp;(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]|this[t+1]&lt;&lt;8},a.prototype.readUInt16BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]&lt;&lt;8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),(this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),16777216*this[t]+(this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n&gt;=(i*=128)&amp;&amp;(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n&gt;0&amp;&amp;(i*=256);)a+=this[t+--n]*i;return a&gt;=(i*=128)&amp;&amp;(a-=Math.pow(2,8*e)),a},a.prototype.readInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),128&amp;this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t]|this[t+1]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t+1]|this[t]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16|this[t+3]&lt;&lt;24},a.prototype.readInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]&lt;&lt;24|this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(i*=256);)this[e+a]=t/i&amp;255;return e+r},a.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||L(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&amp;t;--i&gt;=0&amp;&amp;(a*=256);)this[e+i]=t/a&amp;255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,1,255,0),this[e]=255&amp;t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,2,65535,0),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,2,65535,0),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,4,4294967295,0),this[e+3]=t&gt;&gt;&gt;24,this[e+2]=t&gt;&gt;&gt;16,this[e+1]=t&gt;&gt;&gt;8,this[e]=255&amp;t,e+4},a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,4,4294967295,0),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a-1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);L(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&amp;t;--a&gt;=0&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a+1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,1,127,-128),t&lt;0&amp;&amp;(t=255+t+1),this[e]=255&amp;t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,2,32767,-32768),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,2,32767,-32768),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,4,2147483647,-2147483648),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,this[e+2]=t&gt;&gt;&gt;16,this[e+3]=t&gt;&gt;&gt;24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||L(this,t,e,4,2147483647,-2147483648),t&lt;0&amp;&amp;(t=4294967295+t+1),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeFloatLE=function(t,e,r){return P(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return P(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return I(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return I(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw new TypeError(&quot;argument should be a Buffer&quot;);if(r||(r=0),n||0===n||(n=this.length),e&gt;=t.length&amp;&amp;(e=t.length),e||(e=0),n&gt;0&amp;&amp;n&lt;r&amp;&amp;(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e&lt;0)throw new RangeError(&quot;targetStart out of bounds&quot;);if(r&lt;0||r&gt;=this.length)throw new RangeError(&quot;Index out of range&quot;);if(n&lt;0)throw new RangeError(&quot;sourceEnd out of bounds&quot;);n&gt;this.length&amp;&amp;(n=this.length),t.length-e&lt;n-r&amp;&amp;(n=t.length-e+r);var i=n-r;if(this===t&amp;&amp;&quot;function&quot;==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&amp;&amp;r&lt;e&amp;&amp;e&lt;n)for(var o=i-1;o&gt;=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},a.prototype.fill=function(t,e,r,n){if(&quot;string&quot;==typeof t){if(&quot;string&quot;==typeof e?(n=e,e=0,r=this.length):&quot;string&quot;==typeof r&amp;&amp;(n=r,r=this.length),void 0!==n&amp;&amp;&quot;string&quot;!=typeof n)throw new TypeError(&quot;encoding must be a string&quot;);if(&quot;string&quot;==typeof n&amp;&amp;!a.isEncoding(n))throw new TypeError(&quot;Unknown encoding: &quot;+n);if(1===t.length){var i=t.charCodeAt(0);(&quot;utf8&quot;===n&amp;&amp;i&lt;128||&quot;latin1&quot;===n)&amp;&amp;(t=i)}}else&quot;number&quot;==typeof t&amp;&amp;(t&amp;=255);if(e&lt;0||this.length&lt;e||this.length&lt;r)throw new RangeError(&quot;Out of range index&quot;);if(r&lt;=e)return this;var o;if(e&gt;&gt;&gt;=0,r=void 0===r?this.length:r&gt;&gt;&gt;0,t||(t=0),&quot;number&quot;==typeof t)for(o=e;o&lt;r;++o)this[o]=t;else{var s=a.isBuffer(t)?t:a.from(t,n),l=s.length;if(0===l)throw new TypeError('The value &quot;'+t+'&quot; is invalid for argument &quot;value&quot;');for(o=0;o&lt;r-e;++o)this[o+e]=s[o%l]}return this};var O=/[^+/0-9A-Za-z-_]/g;function z(t){return t&lt;16?&quot;0&quot;+t.toString(16):t.toString(16)}function D(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o&lt;n;++o){if((r=t.charCodeAt(o))&gt;55295&amp;&amp;r&lt;57344){if(!i){if(r&gt;56319){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}if(o+1===n){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}i=r;continue}if(r&lt;56320){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189),i=r;continue}r=65536+(i-55296&lt;&lt;10|r-56320)}else i&amp;&amp;(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);if(i=null,r&lt;128){if((e-=1)&lt;0)break;a.push(r)}else if(r&lt;2048){if((e-=2)&lt;0)break;a.push(r&gt;&gt;6|192,63&amp;r|128)}else if(r&lt;65536){if((e-=3)&lt;0)break;a.push(r&gt;&gt;12|224,r&gt;&gt;6&amp;63|128,63&amp;r|128)}else{if(!(r&lt;1114112))throw new Error(&quot;Invalid code point&quot;);if((e-=4)&lt;0)break;a.push(r&gt;&gt;18|240,r&gt;&gt;12&amp;63|128,r&gt;&gt;6&amp;63|128,63&amp;r|128)}}return a}function R(t){return e.toByteArray(function(t){if((t=(t=t.split(&quot;=&quot;)[0]).trim().replace(O,&quot;&quot;)).length&lt;2)return&quot;&quot;;for(;t.length%4!=0;)t+=&quot;=&quot;;return t}(t))}function F(t,e,r,n){for(var i=0;i&lt;n&amp;&amp;!(i+r&gt;=e.length||i&gt;=t.length);++i)e[i+r]=t[i];return i}function B(t,e){return t instanceof e||null!=t&amp;&amp;null!=t.constructor&amp;&amp;null!=t.constructor.name&amp;&amp;t.constructor.name===e.name}function N(t){return t!=t}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;base64-js&quot;:1,buffer:3,ieee754:4}],4:[function(t,e,r){r.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1&lt;&lt;s)-1,c=l&gt;&gt;1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&amp;(1&lt;&lt;-u)-1,p&gt;&gt;=-u,u+=s;u&gt;0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&amp;(1&lt;&lt;-u)-1,a&gt;&gt;=-u,u+=n;u&gt;0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1&lt;&lt;c)-1,f=u&gt;&gt;1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,m=e&lt;0||0===e&amp;&amp;1/e&lt;0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))&lt;1&amp;&amp;(o--,l*=2),(e+=o+f&gt;=1?h/l:h*Math.pow(2,1-f))*l&gt;=2&amp;&amp;(o++,l/=2),o+f&gt;=u?(s=0,o=u):o+f&gt;=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i&gt;=8;t[r+p]=255&amp;s,p+=d,s/=256,i-=8);for(o=o&lt;&lt;i|s,c+=i;c&gt;0;t[r+p]=255&amp;o,p+=d,o/=256,c-=8);t[r+p-d]|=128*m}},{}],5:[function(t,e,r){var n,i,a=e.exports={};function o(){throw new Error(&quot;setTimeout has not been defined&quot;)}function s(){throw new Error(&quot;clearTimeout has not been defined&quot;)}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&amp;&amp;setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n=&quot;function&quot;==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i=&quot;function&quot;==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,u=[],f=!1,h=-1;function p(){f&amp;&amp;c&amp;&amp;(f=!1,c.length?u=c.concat(u):h=-1,u.length&amp;&amp;d())}function d(){if(!f){var t=l(p);f=!0;for(var e=u.length;e;){for(c=u,u=[];++h&lt;e;)c&amp;&amp;c[h].run();h=-1,e=u.length}c=null,f=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&amp;&amp;clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function m(t,e){this.fun=t,this.array=e}function g(){}a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length&gt;1)for(var r=1;r&lt;arguments.length;r++)e[r-1]=arguments[r];u.push(new m(t,e)),1!==u.length||f||l(d)},m.prototype.run=function(){this.fun.apply(null,this.array)},a.title=&quot;browser&quot;,a.browser=!0,a.env={},a.argv=[],a.version=&quot;&quot;,a.versions={},a.on=g,a.addListener=g,a.once=g,a.off=g,a.removeListener=g,a.removeAllListeners=g,a.emit=g,a.prependListener=g,a.prependOnceListener=g,a.listeners=function(t){return[]},a.binding=function(t){throw new Error(&quot;process.binding is not supported&quot;)},a.cwd=function(){return&quot;/&quot;},a.chdir=function(t){throw new Error(&quot;process.chdir is not supported&quot;)},a.umask=function(){return 0}},{}],6:[function(t,e,r){e.exports={alpha_shape:t(&quot;alpha-shape&quot;),convex_hull:t(&quot;convex-hull&quot;),delaunay_triangulate:t(&quot;delaunay-triangulate&quot;),gl_cone3d:t(&quot;gl-cone3d&quot;),gl_error3d:t(&quot;gl-error3d&quot;),gl_heatmap2d:t(&quot;gl-heatmap2d&quot;),gl_line3d:t(&quot;gl-line3d&quot;),gl_mesh3d:t(&quot;gl-mesh3d&quot;),gl_plot2d:t(&quot;gl-plot2d&quot;),gl_plot3d:t(&quot;gl-plot3d&quot;),gl_pointcloud2d:t(&quot;gl-pointcloud2d&quot;),gl_scatter3d:t(&quot;gl-scatter3d&quot;),gl_select_box:t(&quot;gl-select-box&quot;),gl_spikes2d:t(&quot;gl-spikes2d&quot;),gl_streamtube3d:t(&quot;gl-streamtube3d&quot;),gl_surface3d:t(&quot;gl-surface3d&quot;),ndarray:t(&quot;ndarray&quot;),ndarray_linear_interpolate:t(&quot;ndarray-linear-interpolate&quot;)}},{&quot;alpha-shape&quot;:12,&quot;convex-hull&quot;:58,&quot;delaunay-triangulate&quot;:63,&quot;gl-cone3d&quot;:79,&quot;gl-error3d&quot;:84,&quot;gl-heatmap2d&quot;:88,&quot;gl-line3d&quot;:91,&quot;gl-mesh3d&quot;:112,&quot;gl-plot2d&quot;:118,&quot;gl-plot3d&quot;:121,&quot;gl-pointcloud2d&quot;:123,&quot;gl-scatter3d&quot;:128,&quot;gl-select-box&quot;:130,&quot;gl-spikes2d&quot;:139,&quot;gl-streamtube3d&quot;:143,&quot;gl-surface3d&quot;:145,ndarray:259,&quot;ndarray-linear-interpolate&quot;:253}],7:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).eye||[0,0,1],r=t.center||[0,0,0],s=t.up||[0,1,0],l=t.distanceLimits||[0,1/0],c=t.mode||&quot;turntable&quot;,u=n(),f=i(),h=a();return u.setDistanceLimits(l[0],l[1]),u.lookAt(0,e,r,s),f.setDistanceLimits(l[0],l[1]),f.lookAt(0,e,r,s),h.setDistanceLimits(l[0],l[1]),h.lookAt(0,e,r,s),new o({turntable:u,orbit:f,matrix:h},c)};var n=t(&quot;turntable-camera-controller&quot;),i=t(&quot;orbit-camera-controller&quot;),a=t(&quot;matrix-camera-controller&quot;);function o(t,e){this._controllerNames=Object.keys(t),this._controllerList=this._controllerNames.map((function(e){return t[e]})),this._mode=e,this._active=t[e],this._active||(this._mode=&quot;turntable&quot;,this._active=t.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var s=o.prototype;s.flush=function(t){for(var e=this._controllerList,r=0;r&lt;e.length;++r)e[r].flush(t)},s.idle=function(t){for(var e=this._controllerList,r=0;r&lt;e.length;++r)e[r].idle(t)},s.lookAt=function(t,e,r,n){for(var i=this._controllerList,a=0;a&lt;i.length;++a)i[a].lookAt(t,e,r,n)},s.rotate=function(t,e,r,n){for(var i=this._controllerList,a=0;a&lt;i.length;++a)i[a].rotate(t,e,r,n)},s.pan=function(t,e,r,n){for(var i=this._controllerList,a=0;a&lt;i.length;++a)i[a].pan(t,e,r,n)},s.translate=function(t,e,r,n){for(var i=this._controllerList,a=0;a&lt;i.length;++a)i[a].translate(t,e,r,n)},s.setMatrix=function(t,e){for(var r=this._controllerList,n=0;n&lt;r.length;++n)r[n].setMatrix(t,e)},s.setDistanceLimits=function(t,e){for(var r=this._controllerList,n=0;n&lt;r.length;++n)r[n].setDistanceLimits(t,e)},s.setDistance=function(t,e){for(var r=this._controllerList,n=0;n&lt;r.length;++n)r[n].setDistance(t,e)},s.recalcMatrix=function(t){this._active.recalcMatrix(t)},s.getDistance=function(t){return this._active.getDistance(t)},s.getDistanceLimits=function(t){return this._active.getDistanceLimits(t)},s.lastT=function(){return this._active.lastT()},s.setMode=function(t){if(t!==this._mode){var e=this._controllerNames.indexOf(t);if(!(e&lt;0)){var r=this._active,n=this._controllerList[e],i=Math.max(r.lastT(),n.lastT());r.recalcMatrix(i),n.setMatrix(i,r.computedMatrix),this._active=n,this._mode=t,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}}},s.getMode=function(){return this._mode}},{&quot;matrix-camera-controller&quot;:245,&quot;orbit-camera-controller&quot;:263,&quot;turntable-camera-controller&quot;:305}],8:[function(t,e,r){&quot;use strict&quot;;var n=&quot;undefined&quot;==typeof WeakMap?t(&quot;weak-map&quot;):WeakMap,i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=new n;e.exports=function(t){var e=o.get(t),r=e&amp;&amp;(e._triangleBuffer.handle||e._triangleBuffer.buffer);if(!r||!t.isBuffer(r)){var n=i(t,new Float32Array([-1,-1,-1,4,4,-1]));(e=a(t,[{buffer:n,type:t.FLOAT,size:2}]))._triangleBuffer=n,o.set(t,e)}e.bind(),t.drawArrays(t.TRIANGLES,0,3),e.unbind()}},{&quot;gl-buffer&quot;:78,&quot;gl-vao&quot;:150,&quot;weak-map&quot;:313}],9:[function(t,e,r){var n=t(&quot;pad-left&quot;);e.exports=function(t,e,r){e=&quot;number&quot;==typeof e?e:1,r=r||&quot;: &quot;;var i=t.split(/\r?\n/),a=String(i.length+e-1).length;return i.map((function(t,i){var o=i+e,s=String(o).length;return n(o,a-s)+r+t})).join(&quot;\n&quot;)}},{&quot;pad-left&quot;:264}],10:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[0];for(var r=t[0].length,n=[t[0]],a=[0],o=1;o&lt;e;++o)if(n.push(t[o]),i(n,r)){if(a.push(o),a.length===r+1)return a}else n.pop();return a};var n=t(&quot;robust-orientation&quot;);function i(t,e){for(var r=new Array(e+1),i=0;i&lt;t.length;++i)r[i]=t[i];for(i=0;i&lt;=t.length;++i){for(var a=t.length;a&lt;=e;++a){for(var o=new Array(e),s=0;s&lt;e;++s)o[s]=Math.pow(a+1-i,s);r[a]=o}if(n.apply(void 0,r))return!0}return!1}},{&quot;robust-orientation&quot;:284}],11:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return n(e).filter((function(r){for(var n=new Array(r.length),a=0;a&lt;r.length;++a)n[a]=e[r[a]];return i(n)*t&lt;1}))};var n=t(&quot;delaunay-triangulate&quot;),i=t(&quot;circumradius&quot;)},{circumradius:49,&quot;delaunay-triangulate&quot;:63}],12:[function(t,e,r){e.exports=function(t,e){return i(n(t,e))};var n=t(&quot;alpha-complex&quot;),i=t(&quot;simplicial-complex-boundary&quot;)},{&quot;alpha-complex&quot;:11,&quot;simplicial-complex-boundary&quot;:290}],13:[function(t,e,r){e.exports=function(t){return atob(t)}},{}],14:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=e.length,a=new Array(r+1),o=0;o&lt;r;++o){for(var s=new Array(r+1),l=0;l&lt;=r;++l)s[l]=t[l][o];a[o]=s}a[r]=new Array(r+1);for(o=0;o&lt;=r;++o)a[r][o]=1;var c=new Array(r+1);for(o=0;o&lt;r;++o)c[o]=e[o];c[r]=1;var u=n(a,c),f=i(u[r+1]);0===f&amp;&amp;(f=1);var h=new Array(r+1);for(o=0;o&lt;=r;++o)h[o]=i(u[o])/f;return h};var n=t(&quot;robust-linear-solve&quot;);function i(t){for(var e=0,r=0;r&lt;t.length;++r)e+=t[r];return e}},{&quot;robust-linear-solve&quot;:283}],15:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]).add(e[0].mul(t[1])),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:25}],16:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t[0].mul(e[1]).cmp(e[0].mul(t[1]))}},{}],17:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]),t[1].mul(e[0]))}},{&quot;./lib/rationalize&quot;:25}],18:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-rat&quot;),i=t(&quot;./lib/is-bn&quot;),a=t(&quot;./lib/num-to-bn&quot;),o=t(&quot;./lib/str-to-bn&quot;),s=t(&quot;./lib/rationalize&quot;),l=t(&quot;./div&quot;);e.exports=function t(e,r){if(n(e))return r?l(e,t(r)):[e[0].clone(),e[1].clone()];var c,u,f=0;if(i(e))c=e.clone();else if(&quot;string&quot;==typeof e)c=o(e);else{if(0===e)return[a(0),a(1)];if(e===Math.floor(e))c=a(e);else{for(;e!==Math.floor(e);)e*=Math.pow(2,256),f-=256;c=a(e)}}if(n(r))c.mul(r[1]),u=r[0].clone();else if(i(r))u=r.clone();else if(&quot;string&quot;==typeof r)u=o(r);else if(r)if(r===Math.floor(r))u=a(r);else{for(;r!==Math.floor(r);)r*=Math.pow(2,256),f+=256;u=a(r)}else u=a(1);f&gt;0?c=c.ushln(f):f&lt;0&amp;&amp;(u=u.ushln(-f));return s(c,u)}},{&quot;./div&quot;:17,&quot;./is-rat&quot;:19,&quot;./lib/is-bn&quot;:23,&quot;./lib/num-to-bn&quot;:24,&quot;./lib/rationalize&quot;:25,&quot;./lib/str-to-bn&quot;:26}],19:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/is-bn&quot;);e.exports=function(t){return Array.isArray(t)&amp;&amp;2===t.length&amp;&amp;n(t[0])&amp;&amp;n(t[1])}},{&quot;./lib/is-bn&quot;:23}],20:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;);e.exports=function(t){return t.cmp(new n(0))}},{&quot;bn.js&quot;:33}],21:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./bn-sign&quot;);e.exports=function(t){var e=t.length,r=t.words,i=0;if(1===e)i=r[0];else if(2===e)i=r[0]+67108864*r[1];else for(var a=0;a&lt;e;a++){var o=r[a];i+=o*Math.pow(67108864,a)}return n(t)*i}},{&quot;./bn-sign&quot;:20}],22:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;double-bits&quot;),i=t(&quot;bit-twiddle&quot;).countTrailingZeros;e.exports=function(t){var e=i(n.lo(t));if(e&lt;32)return e;var r=i(n.hi(t));if(r&gt;20)return 52;return r+32}},{&quot;bit-twiddle&quot;:32,&quot;double-bits&quot;:64}],23:[function(t,e,r){&quot;use strict&quot;;t(&quot;bn.js&quot;);e.exports=function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;Boolean(t.words)}},{&quot;bn.js&quot;:33}],24:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;),i=t(&quot;double-bits&quot;);e.exports=function(t){var e=i.exponent(t);return e&lt;52?new n(t):new n(t*Math.pow(2,52-e)).ushln(e-52)}},{&quot;bn.js&quot;:33,&quot;double-bits&quot;:64}],25:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./num-to-bn&quot;),i=t(&quot;./bn-sign&quot;);e.exports=function(t,e){var r=i(t),a=i(e);if(0===r)return[n(0),n(1)];if(0===a)return[n(0),n(0)];a&lt;0&amp;&amp;(t=t.neg(),e=e.neg());var o=t.gcd(e);if(o.cmpn(1))return[t.div(o),e.div(o)];return[t,e]}},{&quot;./bn-sign&quot;:20,&quot;./num-to-bn&quot;:24}],26:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;);e.exports=function(t){return new n(t)}},{&quot;bn.js&quot;:33}],27:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[0]),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:25}],28:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/bn-sign&quot;);e.exports=function(t){return n(t[0])*n(t[1])}},{&quot;./lib/bn-sign&quot;:20}],29:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]).sub(t[1].mul(e[0])),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:25}],30:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/bn-to-num&quot;),i=t(&quot;./lib/ctz&quot;);e.exports=function(t){var e=t[0],r=t[1];if(0===e.cmpn(0))return 0;var a=e.abs().divmod(r.abs()),o=a.div,s=n(o),l=a.mod,c=e.negative!==r.negative?-1:1;if(0===l.cmpn(0))return c*s;if(s){var u=i(s)+4,f=n(l.ushln(u).divRound(r));return c*(s+f*Math.pow(2,-u))}var h=r.bitLength()-l.bitLength()+53;f=n(l.ushln(h).divRound(r));return h&lt;1023?c*f*Math.pow(2,-h):(f*=Math.pow(2,-1023),c*f*Math.pow(2,1023-h))}},{&quot;./lib/bn-to-num&quot;:21,&quot;./lib/ctz&quot;:22}],31:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i){for(var a=i+1;n&lt;=i;){var o=n+i&gt;&gt;&gt;1,s=t[o];(void 0!==r?r(s,e):s-e)&gt;=0?(a=o,i=o-1):n=o+1}return a}function i(t,e,r,n,i){for(var a=i+1;n&lt;=i;){var o=n+i&gt;&gt;&gt;1,s=t[o];(void 0!==r?r(s,e):s-e)&gt;0?(a=o,i=o-1):n=o+1}return a}function a(t,e,r,n,i){for(var a=n-1;n&lt;=i;){var o=n+i&gt;&gt;&gt;1,s=t[o];(void 0!==r?r(s,e):s-e)&lt;0?(a=o,n=o+1):i=o-1}return a}function o(t,e,r,n,i){for(var a=n-1;n&lt;=i;){var o=n+i&gt;&gt;&gt;1,s=t[o];(void 0!==r?r(s,e):s-e)&lt;=0?(a=o,n=o+1):i=o-1}return a}function s(t,e,r,n,i){for(;n&lt;=i;){var a=n+i&gt;&gt;&gt;1,o=t[a],s=void 0!==r?r(o,e):o-e;if(0===s)return a;s&lt;=0?n=a+1:i=a-1}return-1}function l(t,e,r,n,i,a){return&quot;function&quot;==typeof r?a(t,e,r,void 0===n?0:0|n,void 0===i?t.length-1:0|i):a(t,e,void 0,void 0===r?0:0|r,void 0===n?t.length-1:0|n)}e.exports={ge:function(t,e,r,i,a){return l(t,e,r,i,a,n)},gt:function(t,e,r,n,a){return l(t,e,r,n,a,i)},lt:function(t,e,r,n,i){return l(t,e,r,n,i,a)},le:function(t,e,r,n,i){return l(t,e,r,n,i,o)},eq:function(t,e,r,n,i){return l(t,e,r,n,i,s)}}},{}],32:[function(t,e,r){&quot;use strict&quot;;function n(t){var e=32;return(t&amp;=-t)&amp;&amp;e--,65535&amp;t&amp;&amp;(e-=16),16711935&amp;t&amp;&amp;(e-=8),252645135&amp;t&amp;&amp;(e-=4),858993459&amp;t&amp;&amp;(e-=2),1431655765&amp;t&amp;&amp;(e-=1),e}r.INT_BITS=32,r.INT_MAX=2147483647,r.INT_MIN=-1&lt;&lt;31,r.sign=function(t){return(t&gt;0)-(t&lt;0)},r.abs=function(t){var e=t&gt;&gt;31;return(t^e)-e},r.min=function(t,e){return e^(t^e)&amp;-(t&lt;e)},r.max=function(t,e){return t^(t^e)&amp;-(t&lt;e)},r.isPow2=function(t){return!(t&amp;t-1||!t)},r.log2=function(t){var e,r;return e=(t&gt;65535)&lt;&lt;4,e|=r=((t&gt;&gt;&gt;=e)&gt;255)&lt;&lt;3,e|=r=((t&gt;&gt;&gt;=r)&gt;15)&lt;&lt;2,(e|=r=((t&gt;&gt;&gt;=r)&gt;3)&lt;&lt;1)|(t&gt;&gt;&gt;=r)&gt;&gt;1},r.log10=function(t){return t&gt;=1e9?9:t&gt;=1e8?8:t&gt;=1e7?7:t&gt;=1e6?6:t&gt;=1e5?5:t&gt;=1e4?4:t&gt;=1e3?3:t&gt;=100?2:t&gt;=10?1:0},r.popCount=function(t){return 16843009*((t=(858993459&amp;(t-=t&gt;&gt;&gt;1&amp;1431655765))+(t&gt;&gt;&gt;2&amp;858993459))+(t&gt;&gt;&gt;4)&amp;252645135)&gt;&gt;&gt;24},r.countTrailingZeros=n,r.nextPow2=function(t){return t+=0===t,--t,t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)+1},r.prevPow2=function(t){return t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)-(t&gt;&gt;&gt;1)},r.parity=function(t){return t^=t&gt;&gt;&gt;16,t^=t&gt;&gt;&gt;8,t^=t&gt;&gt;&gt;4,27030&gt;&gt;&gt;(t&amp;=15)&amp;1};var i=new Array(256);!function(t){for(var e=0;e&lt;256;++e){var r=e,n=e,i=7;for(r&gt;&gt;&gt;=1;r;r&gt;&gt;&gt;=1)n&lt;&lt;=1,n|=1&amp;r,--i;t[e]=n&lt;&lt;i&amp;255}}(i),r.reverse=function(t){return i[255&amp;t]&lt;&lt;24|i[t&gt;&gt;&gt;8&amp;255]&lt;&lt;16|i[t&gt;&gt;&gt;16&amp;255]&lt;&lt;8|i[t&gt;&gt;&gt;24&amp;255]},r.interleave2=function(t,e){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t&amp;=65535)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e&amp;=65535)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1},r.deinterleave2=function(t,e){return(t=65535&amp;((t=16711935&amp;((t=252645135&amp;((t=858993459&amp;((t=t&gt;&gt;&gt;e&amp;1431655765)|t&gt;&gt;&gt;1))|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;16))&lt;&lt;16&gt;&gt;16},r.interleave3=function(t,e,r){return t=1227133513&amp;((t=3272356035&amp;((t=251719695&amp;((t=4278190335&amp;((t&amp;=1023)|t&lt;&lt;16))|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2),(t|=(e=1227133513&amp;((e=3272356035&amp;((e=251719695&amp;((e=4278190335&amp;((e&amp;=1023)|e&lt;&lt;16))|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))&lt;&lt;1)|(r=1227133513&amp;((r=3272356035&amp;((r=251719695&amp;((r=4278190335&amp;((r&amp;=1023)|r&lt;&lt;16))|r&lt;&lt;8))|r&lt;&lt;4))|r&lt;&lt;2))&lt;&lt;2},r.deinterleave3=function(t,e){return(t=1023&amp;((t=4278190335&amp;((t=251719695&amp;((t=3272356035&amp;((t=t&gt;&gt;&gt;e&amp;1227133513)|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;8))|t&gt;&gt;&gt;16))&lt;&lt;22&gt;&gt;22},r.nextCombination=function(t){var e=t|t-1;return e+1|(~e&amp;-~e)-1&gt;&gt;&gt;n(t)+1}},{}],33:[function(t,e,r){!function(e,r){&quot;use strict&quot;;function n(t,e){if(!t)throw new Error(e||&quot;Assertion failed&quot;)}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,e,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&amp;&amp;(&quot;le&quot;!==e&amp;&amp;&quot;be&quot;!==e||(r=e,e=10),this._init(t||0,e||10,r||&quot;be&quot;))}var o;&quot;object&quot;==typeof e?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{o=&quot;undefined&quot;!=typeof window&amp;&amp;void 0!==window.Buffer?window.Buffer:t(&quot;buffer&quot;).Buffer}catch(t){}function s(t,e){var r=t.charCodeAt(e);return r&gt;=65&amp;&amp;r&lt;=70?r-55:r&gt;=97&amp;&amp;r&lt;=102?r-87:r-48&amp;15}function l(t,e,r){var n=s(t,r);return r-1&gt;=e&amp;&amp;(n|=s(t,r-1)&lt;&lt;4),n}function c(t,e,r,n){for(var i=0,a=Math.min(t.length,r),o=e;o&lt;a;o++){var s=t.charCodeAt(o)-48;i*=n,i+=s&gt;=49?s-49+10:s&gt;=17?s-17+10:s}return i}a.isBN=function(t){return t instanceof a||null!==t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;t.constructor.wordSize===a.wordSize&amp;&amp;Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)&gt;0?t:e},a.min=function(t,e){return t.cmp(e)&lt;0?t:e},a.prototype._init=function(t,e,r){if(&quot;number&quot;==typeof t)return this._initNumber(t,e,r);if(&quot;object&quot;==typeof t)return this._initArray(t,e,r);&quot;hex&quot;===e&amp;&amp;(e=16),n(e===(0|e)&amp;&amp;e&gt;=2&amp;&amp;e&lt;=36);var i=0;&quot;-&quot;===(t=t.toString().replace(/\s+/g,&quot;&quot;))[0]&amp;&amp;(i++,this.negative=1),i&lt;t.length&amp;&amp;(16===e?this._parseHex(t,i,r):(this._parseBase(t,e,i),&quot;le&quot;===r&amp;&amp;this._initArray(this.toArray(),e,r)))},a.prototype._initNumber=function(t,e,r){t&lt;0&amp;&amp;(this.negative=1,t=-t),t&lt;67108864?(this.words=[67108863&amp;t],this.length=1):t&lt;4503599627370496?(this.words=[67108863&amp;t,t/67108864&amp;67108863],this.length=2):(n(t&lt;9007199254740992),this.words=[67108863&amp;t,t/67108864&amp;67108863,1],this.length=3),&quot;le&quot;===r&amp;&amp;this._initArray(this.toArray(),e,r)},a.prototype._initArray=function(t,e,r){if(n(&quot;number&quot;==typeof t.length),t.length&lt;=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i&lt;this.length;i++)this.words[i]=0;var a,o,s=0;if(&quot;be&quot;===r)for(i=t.length-1,a=0;i&gt;=0;i-=3)o=t[i]|t[i-1]&lt;&lt;8|t[i-2]&lt;&lt;16,this.words[a]|=o&lt;&lt;s&amp;67108863,this.words[a+1]=o&gt;&gt;&gt;26-s&amp;67108863,(s+=24)&gt;=26&amp;&amp;(s-=26,a++);else if(&quot;le&quot;===r)for(i=0,a=0;i&lt;t.length;i+=3)o=t[i]|t[i+1]&lt;&lt;8|t[i+2]&lt;&lt;16,this.words[a]|=o&lt;&lt;s&amp;67108863,this.words[a+1]=o&gt;&gt;&gt;26-s&amp;67108863,(s+=24)&gt;=26&amp;&amp;(s-=26,a++);return this.strip()},a.prototype._parseHex=function(t,e,r){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n&lt;this.length;n++)this.words[n]=0;var i,a=0,o=0;if(&quot;be&quot;===r)for(n=t.length-1;n&gt;=e;n-=2)i=l(t,e,n)&lt;&lt;a,this.words[o]|=67108863&amp;i,a&gt;=18?(a-=18,o+=1,this.words[o]|=i&gt;&gt;&gt;26):a+=8;else for(n=(t.length-e)%2==0?e+1:e;n&lt;t.length;n+=2)i=l(t,e,n)&lt;&lt;a,this.words[o]|=67108863&amp;i,a&gt;=18?(a-=18,o+=1,this.words[o]|=i&gt;&gt;&gt;26):a+=8;this.strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i&lt;=67108863;i*=e)n++;n--,i=i/e|0;for(var a=t.length-r,o=a%n,s=Math.min(a,a-o)+r,l=0,u=r;u&lt;s;u+=n)l=c(t,u,u+n,e),this.imuln(i),this.words[0]+l&lt;67108864?this.words[0]+=l:this._iaddn(l);if(0!==o){var f=1;for(l=c(t,u,t.length,e),u=0;u&lt;o;u++)f*=e;this.imuln(f),this.words[0]+l&lt;67108864?this.words[0]+=l:this._iaddn(l)}this.strip()},a.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e&lt;this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length&lt;t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length&gt;1&amp;&amp;0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&amp;&amp;0===this.words[0]&amp;&amp;(this.negative=0),this},a.prototype.inspect=function(){return(this.red?&quot;&lt;BN-R: &quot;:&quot;&lt;BN: &quot;)+this.toString(16)+&quot;&gt;&quot;};var u=[&quot;&quot;,&quot;0&quot;,&quot;00&quot;,&quot;000&quot;,&quot;0000&quot;,&quot;00000&quot;,&quot;000000&quot;,&quot;0000000&quot;,&quot;00000000&quot;,&quot;000000000&quot;,&quot;0000000000&quot;,&quot;00000000000&quot;,&quot;000000000000&quot;,&quot;0000000000000&quot;,&quot;00000000000000&quot;,&quot;000000000000000&quot;,&quot;0000000000000000&quot;,&quot;00000000000000000&quot;,&quot;000000000000000000&quot;,&quot;0000000000000000000&quot;,&quot;00000000000000000000&quot;,&quot;000000000000000000000&quot;,&quot;0000000000000000000000&quot;,&quot;00000000000000000000000&quot;,&quot;000000000000000000000000&quot;,&quot;0000000000000000000000000&quot;],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],a=0|e.words[0],o=i*a,s=67108863&amp;o,l=o/67108864|0;r.words[0]=s;for(var c=1;c&lt;n;c++){for(var u=l&gt;&gt;&gt;26,f=67108863&amp;l,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p&lt;=h;p++){var d=c-p|0;u+=(o=(i=0|t.words[d])*(a=0|e.words[p])+f)/67108864|0,f=67108863&amp;o}r.words[c]=0|f,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||&quot;hex&quot;===t){r=&quot;&quot;;for(var i=0,a=0,o=0;o&lt;this.length;o++){var s=this.words[o],l=(16777215&amp;(s&lt;&lt;i|a)).toString(16);r=0!==(a=s&gt;&gt;&gt;24-i&amp;16777215)||o!==this.length-1?u[6-l.length]+l+r:l+r,(i+=2)&gt;=26&amp;&amp;(i-=26,o--)}for(0!==a&amp;&amp;(r=a.toString(16)+r);r.length%e!=0;)r=&quot;0&quot;+r;return 0!==this.negative&amp;&amp;(r=&quot;-&quot;+r),r}if(t===(0|t)&amp;&amp;t&gt;=2&amp;&amp;t&lt;=36){var c=f[t],p=h[t];r=&quot;&quot;;var d=this.clone();for(d.negative=0;!d.isZero();){var m=d.modn(p).toString(t);r=(d=d.idivn(p)).isZero()?m+r:u[c-m.length]+m+r}for(this.isZero()&amp;&amp;(r=&quot;0&quot;+r);r.length%e!=0;)r=&quot;0&quot;+r;return 0!==this.negative&amp;&amp;(r=&quot;-&quot;+r),r}n(!1,&quot;Base should be between 2 and 36&quot;)},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&amp;&amp;1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length&gt;2&amp;&amp;n(!1,&quot;Number can only safely store up to 53 bits&quot;),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return n(void 0!==o),this.toArrayLike(o,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i&lt;=a,&quot;byte array longer than desired length&quot;),n(a&gt;0,&quot;Requested array length &lt;= 0&quot;),this.strip();var o,s,l=&quot;le&quot;===e,c=new t(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s&lt;a;s++)c[s]=0}else{for(s=0;s&lt;a-i;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[a-s-1]=o}return c},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var e=t,r=0;return e&gt;=4096&amp;&amp;(r+=13,e&gt;&gt;&gt;=13),e&gt;=64&amp;&amp;(r+=7,e&gt;&gt;&gt;=7),e&gt;=8&amp;&amp;(r+=4,e&gt;&gt;&gt;=4),e&gt;=2&amp;&amp;(r+=2,e&gt;&gt;&gt;=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&amp;e)&amp;&amp;(r+=13,e&gt;&gt;&gt;=13),0==(127&amp;e)&amp;&amp;(r+=7,e&gt;&gt;&gt;=7),0==(15&amp;e)&amp;&amp;(r+=4,e&gt;&gt;&gt;=4),0==(3&amp;e)&amp;&amp;(r+=2,e&gt;&gt;&gt;=2),0==(1&amp;e)&amp;&amp;r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e&lt;this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length&lt;t.length;)this.words[this.length++]=0;for(var e=0;e&lt;t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},a.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length&gt;t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length&gt;t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length&gt;t.length?t:this;for(var r=0;r&lt;e.length;r++)this.words[r]=this.words[r]&amp;t.words[r];return this.length=e.length,this.strip()},a.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length&gt;t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length&gt;t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length&gt;t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n&lt;r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n&lt;e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},a.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length&gt;t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length&gt;t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r&gt;0&amp;&amp;e--;for(var i=0;i&lt;e;i++)this.words[i]=67108863&amp;~this.words[i];return r&gt;0&amp;&amp;(this.words[i]=~this.words[i]&amp;67108863&gt;&gt;26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1&lt;&lt;i:this.words[r]&amp;~(1&lt;&lt;i),this.strip()},a.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&amp;&amp;0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&amp;&amp;0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length&gt;t.length?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a&lt;n.length;a++)e=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&amp;e,i=e&gt;&gt;&gt;26;for(;0!==i&amp;&amp;a&lt;r.length;a++)e=(0|r.words[a])+i,this.words[a]=67108863&amp;e,i=e&gt;&gt;&gt;26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a&lt;r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(t){var e;return 0!==t.negative&amp;&amp;0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&amp;&amp;0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length&gt;t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i&gt;0?(r=this,n=t):(r=t,n=this);for(var a=0,o=0;o&lt;n.length;o++)a=(e=(0|r.words[o])-(0|n.words[o])+a)&gt;&gt;26,this.words[o]=67108863&amp;e;for(;0!==a&amp;&amp;o&lt;r.length;o++)a=(e=(0|r.words[o])+a)&gt;&gt;26,this.words[o]=67108863&amp;e;if(0===a&amp;&amp;o&lt;r.length&amp;&amp;r!==this)for(;o&lt;r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&amp;&amp;(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var d=function(t,e,r){var n,i,a,o=t.words,s=e.words,l=r.words,c=0,u=0|o[0],f=8191&amp;u,h=u&gt;&gt;&gt;13,p=0|o[1],d=8191&amp;p,m=p&gt;&gt;&gt;13,g=0|o[2],v=8191&amp;g,y=g&gt;&gt;&gt;13,x=0|o[3],b=8191&amp;x,_=x&gt;&gt;&gt;13,w=0|o[4],T=8191&amp;w,k=w&gt;&gt;&gt;13,A=0|o[5],M=8191&amp;A,S=A&gt;&gt;&gt;13,E=0|o[6],L=8191&amp;E,C=E&gt;&gt;&gt;13,P=0|o[7],I=8191&amp;P,O=P&gt;&gt;&gt;13,z=0|o[8],D=8191&amp;z,R=z&gt;&gt;&gt;13,F=0|o[9],B=8191&amp;F,N=F&gt;&gt;&gt;13,j=0|s[0],U=8191&amp;j,V=j&gt;&gt;&gt;13,H=0|s[1],q=8191&amp;H,G=H&gt;&gt;&gt;13,Y=0|s[2],W=8191&amp;Y,X=Y&gt;&gt;&gt;13,Z=0|s[3],J=8191&amp;Z,K=Z&gt;&gt;&gt;13,Q=0|s[4],$=8191&amp;Q,tt=Q&gt;&gt;&gt;13,et=0|s[5],rt=8191&amp;et,nt=et&gt;&gt;&gt;13,it=0|s[6],at=8191&amp;it,ot=it&gt;&gt;&gt;13,st=0|s[7],lt=8191&amp;st,ct=st&gt;&gt;&gt;13,ut=0|s[8],ft=8191&amp;ut,ht=ut&gt;&gt;&gt;13,pt=0|s[9],dt=8191&amp;pt,mt=pt&gt;&gt;&gt;13;r.negative=t.negative^e.negative,r.length=19;var gt=(c+(n=Math.imul(f,U))|0)+((8191&amp;(i=(i=Math.imul(f,V))+Math.imul(h,U)|0))&lt;&lt;13)|0;c=((a=Math.imul(h,V))+(i&gt;&gt;&gt;13)|0)+(gt&gt;&gt;&gt;26)|0,gt&amp;=67108863,n=Math.imul(d,U),i=(i=Math.imul(d,V))+Math.imul(m,U)|0,a=Math.imul(m,V);var vt=(c+(n=n+Math.imul(f,q)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,q)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,G)|0)+(i&gt;&gt;&gt;13)|0)+(vt&gt;&gt;&gt;26)|0,vt&amp;=67108863,n=Math.imul(v,U),i=(i=Math.imul(v,V))+Math.imul(y,U)|0,a=Math.imul(y,V),n=n+Math.imul(d,q)|0,i=(i=i+Math.imul(d,G)|0)+Math.imul(m,q)|0,a=a+Math.imul(m,G)|0;var yt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,W)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,X)|0)+(i&gt;&gt;&gt;13)|0)+(yt&gt;&gt;&gt;26)|0,yt&amp;=67108863,n=Math.imul(b,U),i=(i=Math.imul(b,V))+Math.imul(_,U)|0,a=Math.imul(_,V),n=n+Math.imul(v,q)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,q)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(d,W)|0,i=(i=i+Math.imul(d,X)|0)+Math.imul(m,W)|0,a=a+Math.imul(m,X)|0;var xt=(c+(n=n+Math.imul(f,J)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,J)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,K)|0)+(i&gt;&gt;&gt;13)|0)+(xt&gt;&gt;&gt;26)|0,xt&amp;=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,V))+Math.imul(k,U)|0,a=Math.imul(k,V),n=n+Math.imul(b,q)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(_,q)|0,a=a+Math.imul(_,G)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(y,W)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(d,J)|0,i=(i=i+Math.imul(d,K)|0)+Math.imul(m,J)|0,a=a+Math.imul(m,K)|0;var bt=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,$)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,tt)|0)+(i&gt;&gt;&gt;13)|0)+(bt&gt;&gt;&gt;26)|0,bt&amp;=67108863,n=Math.imul(M,U),i=(i=Math.imul(M,V))+Math.imul(S,U)|0,a=Math.imul(S,V),n=n+Math.imul(T,q)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(k,q)|0,a=a+Math.imul(k,G)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(_,W)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(y,J)|0,a=a+Math.imul(y,K)|0,n=n+Math.imul(d,$)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,tt)|0;var _t=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,nt)|0)+(i&gt;&gt;&gt;13)|0)+(_t&gt;&gt;&gt;26)|0,_t&amp;=67108863,n=Math.imul(L,U),i=(i=Math.imul(L,V))+Math.imul(C,U)|0,a=Math.imul(C,V),n=n+Math.imul(M,q)|0,i=(i=i+Math.imul(M,G)|0)+Math.imul(S,q)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(k,W)|0,a=a+Math.imul(k,X)|0,n=n+Math.imul(b,J)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(_,J)|0,a=a+Math.imul(_,K)|0,n=n+Math.imul(v,$)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,tt)|0,n=n+Math.imul(d,rt)|0,i=(i=i+Math.imul(d,nt)|0)+Math.imul(m,rt)|0,a=a+Math.imul(m,nt)|0;var wt=(c+(n=n+Math.imul(f,at)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ot)|0)+Math.imul(h,at)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ot)|0)+(i&gt;&gt;&gt;13)|0)+(wt&gt;&gt;&gt;26)|0,wt&amp;=67108863,n=Math.imul(I,U),i=(i=Math.imul(I,V))+Math.imul(O,U)|0,a=Math.imul(O,V),n=n+Math.imul(L,q)|0,i=(i=i+Math.imul(L,G)|0)+Math.imul(C,q)|0,a=a+Math.imul(C,G)|0,n=n+Math.imul(M,W)|0,i=(i=i+Math.imul(M,X)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,X)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(k,J)|0,a=a+Math.imul(k,K)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(y,rt)|0,a=a+Math.imul(y,nt)|0,n=n+Math.imul(d,at)|0,i=(i=i+Math.imul(d,ot)|0)+Math.imul(m,at)|0,a=a+Math.imul(m,ot)|0;var Tt=(c+(n=n+Math.imul(f,lt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ct)|0)+Math.imul(h,lt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ct)|0)+(i&gt;&gt;&gt;13)|0)+(Tt&gt;&gt;&gt;26)|0,Tt&amp;=67108863,n=Math.imul(D,U),i=(i=Math.imul(D,V))+Math.imul(R,U)|0,a=Math.imul(R,V),n=n+Math.imul(I,q)|0,i=(i=i+Math.imul(I,G)|0)+Math.imul(O,q)|0,a=a+Math.imul(O,G)|0,n=n+Math.imul(L,W)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(C,W)|0,a=a+Math.imul(C,X)|0,n=n+Math.imul(M,J)|0,i=(i=i+Math.imul(M,K)|0)+Math.imul(S,J)|0,a=a+Math.imul(S,K)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(_,rt)|0,a=a+Math.imul(_,nt)|0,n=n+Math.imul(v,at)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(y,at)|0,a=a+Math.imul(y,ot)|0,n=n+Math.imul(d,lt)|0,i=(i=i+Math.imul(d,ct)|0)+Math.imul(m,lt)|0,a=a+Math.imul(m,ct)|0;var kt=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ht)|0)+(i&gt;&gt;&gt;13)|0)+(kt&gt;&gt;&gt;26)|0,kt&amp;=67108863,n=Math.imul(B,U),i=(i=Math.imul(B,V))+Math.imul(N,U)|0,a=Math.imul(N,V),n=n+Math.imul(D,q)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(R,q)|0,a=a+Math.imul(R,G)|0,n=n+Math.imul(I,W)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(O,W)|0,a=a+Math.imul(O,X)|0,n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,K)|0)+Math.imul(C,J)|0,a=a+Math.imul(C,K)|0,n=n+Math.imul(M,$)|0,i=(i=i+Math.imul(M,tt)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(k,rt)|0,a=a+Math.imul(k,nt)|0,n=n+Math.imul(b,at)|0,i=(i=i+Math.imul(b,ot)|0)+Math.imul(_,at)|0,a=a+Math.imul(_,ot)|0,n=n+Math.imul(v,lt)|0,i=(i=i+Math.imul(v,ct)|0)+Math.imul(y,lt)|0,a=a+Math.imul(y,ct)|0,n=n+Math.imul(d,ft)|0,i=(i=i+Math.imul(d,ht)|0)+Math.imul(m,ft)|0,a=a+Math.imul(m,ht)|0;var At=(c+(n=n+Math.imul(f,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,mt)|0)+Math.imul(h,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,mt)|0)+(i&gt;&gt;&gt;13)|0)+(At&gt;&gt;&gt;26)|0,At&amp;=67108863,n=Math.imul(B,q),i=(i=Math.imul(B,G))+Math.imul(N,q)|0,a=Math.imul(N,G),n=n+Math.imul(D,W)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(R,W)|0,a=a+Math.imul(R,X)|0,n=n+Math.imul(I,J)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(O,J)|0,a=a+Math.imul(O,K)|0,n=n+Math.imul(L,$)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(C,$)|0,a=a+Math.imul(C,tt)|0,n=n+Math.imul(M,rt)|0,i=(i=i+Math.imul(M,nt)|0)+Math.imul(S,rt)|0,a=a+Math.imul(S,nt)|0,n=n+Math.imul(T,at)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(k,at)|0,a=a+Math.imul(k,ot)|0,n=n+Math.imul(b,lt)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(_,lt)|0,a=a+Math.imul(_,ct)|0,n=n+Math.imul(v,ft)|0,i=(i=i+Math.imul(v,ht)|0)+Math.imul(y,ft)|0,a=a+Math.imul(y,ht)|0;var Mt=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(d,mt)|0)+Math.imul(m,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(m,mt)|0)+(i&gt;&gt;&gt;13)|0)+(Mt&gt;&gt;&gt;26)|0,Mt&amp;=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,X))+Math.imul(N,W)|0,a=Math.imul(N,X),n=n+Math.imul(D,J)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(R,J)|0,a=a+Math.imul(R,K)|0,n=n+Math.imul(I,$)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(O,$)|0,a=a+Math.imul(O,tt)|0,n=n+Math.imul(L,rt)|0,i=(i=i+Math.imul(L,nt)|0)+Math.imul(C,rt)|0,a=a+Math.imul(C,nt)|0,n=n+Math.imul(M,at)|0,i=(i=i+Math.imul(M,ot)|0)+Math.imul(S,at)|0,a=a+Math.imul(S,ot)|0,n=n+Math.imul(T,lt)|0,i=(i=i+Math.imul(T,ct)|0)+Math.imul(k,lt)|0,a=a+Math.imul(k,ct)|0,n=n+Math.imul(b,ft)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(_,ft)|0,a=a+Math.imul(_,ht)|0;var St=(c+(n=n+Math.imul(v,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(v,mt)|0)+Math.imul(y,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(y,mt)|0)+(i&gt;&gt;&gt;13)|0)+(St&gt;&gt;&gt;26)|0,St&amp;=67108863,n=Math.imul(B,J),i=(i=Math.imul(B,K))+Math.imul(N,J)|0,a=Math.imul(N,K),n=n+Math.imul(D,$)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,tt)|0,n=n+Math.imul(I,rt)|0,i=(i=i+Math.imul(I,nt)|0)+Math.imul(O,rt)|0,a=a+Math.imul(O,nt)|0,n=n+Math.imul(L,at)|0,i=(i=i+Math.imul(L,ot)|0)+Math.imul(C,at)|0,a=a+Math.imul(C,ot)|0,n=n+Math.imul(M,lt)|0,i=(i=i+Math.imul(M,ct)|0)+Math.imul(S,lt)|0,a=a+Math.imul(S,ct)|0,n=n+Math.imul(T,ft)|0,i=(i=i+Math.imul(T,ht)|0)+Math.imul(k,ft)|0,a=a+Math.imul(k,ht)|0;var Et=(c+(n=n+Math.imul(b,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(b,mt)|0)+Math.imul(_,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(_,mt)|0)+(i&gt;&gt;&gt;13)|0)+(Et&gt;&gt;&gt;26)|0,Et&amp;=67108863,n=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(N,$)|0,a=Math.imul(N,tt),n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(R,rt)|0,a=a+Math.imul(R,nt)|0,n=n+Math.imul(I,at)|0,i=(i=i+Math.imul(I,ot)|0)+Math.imul(O,at)|0,a=a+Math.imul(O,ot)|0,n=n+Math.imul(L,lt)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(C,lt)|0,a=a+Math.imul(C,ct)|0,n=n+Math.imul(M,ft)|0,i=(i=i+Math.imul(M,ht)|0)+Math.imul(S,ft)|0,a=a+Math.imul(S,ht)|0;var Lt=(c+(n=n+Math.imul(T,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(T,mt)|0)+Math.imul(k,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(k,mt)|0)+(i&gt;&gt;&gt;13)|0)+(Lt&gt;&gt;&gt;26)|0,Lt&amp;=67108863,n=Math.imul(B,rt),i=(i=Math.imul(B,nt))+Math.imul(N,rt)|0,a=Math.imul(N,nt),n=n+Math.imul(D,at)|0,i=(i=i+Math.imul(D,ot)|0)+Math.imul(R,at)|0,a=a+Math.imul(R,ot)|0,n=n+Math.imul(I,lt)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(O,lt)|0,a=a+Math.imul(O,ct)|0,n=n+Math.imul(L,ft)|0,i=(i=i+Math.imul(L,ht)|0)+Math.imul(C,ft)|0,a=a+Math.imul(C,ht)|0;var Ct=(c+(n=n+Math.imul(M,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(M,mt)|0)+Math.imul(S,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(S,mt)|0)+(i&gt;&gt;&gt;13)|0)+(Ct&gt;&gt;&gt;26)|0,Ct&amp;=67108863,n=Math.imul(B,at),i=(i=Math.imul(B,ot))+Math.imul(N,at)|0,a=Math.imul(N,ot),n=n+Math.imul(D,lt)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(R,lt)|0,a=a+Math.imul(R,ct)|0,n=n+Math.imul(I,ft)|0,i=(i=i+Math.imul(I,ht)|0)+Math.imul(O,ft)|0,a=a+Math.imul(O,ht)|0;var Pt=(c+(n=n+Math.imul(L,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(L,mt)|0)+Math.imul(C,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(C,mt)|0)+(i&gt;&gt;&gt;13)|0)+(Pt&gt;&gt;&gt;26)|0,Pt&amp;=67108863,n=Math.imul(B,lt),i=(i=Math.imul(B,ct))+Math.imul(N,lt)|0,a=Math.imul(N,ct),n=n+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(R,ft)|0,a=a+Math.imul(R,ht)|0;var It=(c+(n=n+Math.imul(I,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(I,mt)|0)+Math.imul(O,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(O,mt)|0)+(i&gt;&gt;&gt;13)|0)+(It&gt;&gt;&gt;26)|0,It&amp;=67108863,n=Math.imul(B,ft),i=(i=Math.imul(B,ht))+Math.imul(N,ft)|0,a=Math.imul(N,ht);var Ot=(c+(n=n+Math.imul(D,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(D,mt)|0)+Math.imul(R,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(R,mt)|0)+(i&gt;&gt;&gt;13)|0)+(Ot&gt;&gt;&gt;26)|0,Ot&amp;=67108863;var zt=(c+(n=Math.imul(B,dt))|0)+((8191&amp;(i=(i=Math.imul(B,mt))+Math.imul(N,dt)|0))&lt;&lt;13)|0;return c=((a=Math.imul(N,mt))+(i&gt;&gt;&gt;13)|0)+(zt&gt;&gt;&gt;26)|0,zt&amp;=67108863,l[0]=gt,l[1]=vt,l[2]=yt,l[3]=xt,l[4]=bt,l[5]=_t,l[6]=wt,l[7]=Tt,l[8]=kt,l[9]=At,l[10]=Mt,l[11]=St,l[12]=Et,l[13]=Lt,l[14]=Ct,l[15]=Pt,l[16]=It,l[17]=Ot,l[18]=zt,0!==c&amp;&amp;(l[19]=c,r.length++),r};function m(t,e,r){return(new g).mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(d=p),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&amp;&amp;10===t.length?d(this,t,e):r&lt;63?p(this,t,e):r&lt;1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,a=0;a&lt;r.length-1;a++){var o=i;i=0;for(var s=67108863&amp;n,l=Math.min(a,e.length-1),c=Math.max(0,a-t.length+1);c&lt;=l;c++){var u=a-c,f=(0|t.words[u])*(0|e.words[c]),h=67108863&amp;f;s=67108863&amp;(h=h+s|0),i+=(o=(o=o+(f/67108864|0)|0)+(h&gt;&gt;&gt;26)|0)&gt;&gt;&gt;26,o&amp;=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n&lt;t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i&lt;e;i++)n|=(1&amp;t)&lt;&lt;e-i-1,t&gt;&gt;=1;return n},g.prototype.permute=function(t,e,r,n,i,a){for(var o=0;o&lt;a;o++)n[o]=e[t[o]],i[o]=r[t[o]]},g.prototype.transform=function(t,e,r,n,i,a){this.permute(a,t,e,r,n,i);for(var o=1;o&lt;i;o&lt;&lt;=1)for(var s=o&lt;&lt;1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u&lt;i;u+=s)for(var f=l,h=c,p=0;p&lt;o;p++){var d=r[u+p],m=n[u+p],g=r[u+p+o],v=n[u+p+o],y=f*g-h*v;v=f*v+h*g,g=y,r[u+p]=d+g,n[u+p]=m+v,r[u+p+o]=d-g,n[u+p+o]=m-v,p!==s&amp;&amp;(y=l*f-c*h,h=l*h+c*f,f=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&amp;r,i=0;for(r=r/2|0;r;r&gt;&gt;&gt;=1)i++;return 1&lt;&lt;i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r&lt;=1))for(var n=0;n&lt;r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n&lt;e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&amp;i,r=i&lt;67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var a=0,o=0;o&lt;e;o++)a+=0|t[o],r[2*o]=8191&amp;a,a&gt;&gt;&gt;=13,r[2*o+1]=8191&amp;a,a&gt;&gt;&gt;=13;for(o=2*e;o&lt;i;++o)r[o]=0;n(0===a),n(0==(-8192&amp;a))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,c,n),this.transform(o,a,s,l,n,i),this.transform(c,a,u,f,n,i);for(var p=0;p&lt;n;p++){var d=s[p]*u[p]-l[p]*f[p];l[p]=s[p]*f[p]+l[p]*u[p],s[p]=d}return this.conjugate(s,l,n),this.transform(s,l,h,a,n,i),this.conjugate(h,a,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},a.prototype.mul=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},a.prototype.mulf=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),m(this,t,e)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){n(&quot;number&quot;==typeof t),n(t&lt;67108864);for(var e=0,r=0;r&lt;this.length;r++){var i=(0|this.words[r])*t,a=(67108863&amp;i)+(67108863&amp;e);e&gt;&gt;=26,e+=i/67108864|0,e+=a&gt;&gt;&gt;26,this.words[r]=67108863&amp;a}return 0!==e&amp;&amp;(this.words[r]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r&lt;e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&amp;1&lt;&lt;i)&gt;&gt;&gt;i}return e}(t);if(0===e.length)return new a(1);for(var r=this,n=0;n&lt;e.length&amp;&amp;0===e[n];n++,r=r.sqr());if(++n&lt;e.length)for(var i=r.sqr();n&lt;e.length;n++,i=i.sqr())0!==e[n]&amp;&amp;(r=r.mul(i));return r},a.prototype.iushln=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e,r=t%26,i=(t-r)/26,a=67108863&gt;&gt;&gt;26-r&lt;&lt;26-r;if(0!==r){var o=0;for(e=0;e&lt;this.length;e++){var s=this.words[e]&amp;a,l=(0|this.words[e])-s&lt;&lt;r;this.words[e]=l|o,o=s&gt;&gt;&gt;26-r}o&amp;&amp;(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e&gt;=0;e--)this.words[e+i]=this.words[e];for(e=0;e&lt;i;e++)this.words[e]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,e,r){var i;n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0),i=e?(e-e%26)/26:0;var a=t%26,o=Math.min((t-a)/26,this.length),s=67108863^67108863&gt;&gt;&gt;a&lt;&lt;a,l=r;if(i-=o,i=Math.max(0,i),l){for(var c=0;c&lt;o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length&gt;o)for(this.length-=o,c=0;c&lt;this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c&gt;=0&amp;&amp;(0!==u||c&gt;=i);c--){var f=0|this.words[c];this.words[c]=u&lt;&lt;26-a|f&gt;&gt;&gt;a,u=f&amp;s}return l&amp;&amp;0!==u&amp;&amp;(l.words[l.length++]=u),0===this.length&amp;&amp;(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=t%26,r=(t-e)/26,i=1&lt;&lt;e;return!(this.length&lt;=r)&amp;&amp;!!(this.words[r]&amp;i)},a.prototype.imaskn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,&quot;imaskn works only with positive numbers&quot;),this.length&lt;=r)return this;if(0!==e&amp;&amp;r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863&gt;&gt;&gt;e&lt;&lt;e;this.words[this.length-1]&amp;=i}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return n(&quot;number&quot;==typeof t),n(t&lt;67108864),t&lt;0?this.isubn(-t):0!==this.negative?1===this.length&amp;&amp;(0|this.words[0])&lt;t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e&lt;this.length&amp;&amp;this.words[e]&gt;=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(n(&quot;number&quot;==typeof t),n(t&lt;67108864),t&lt;0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&amp;&amp;this.words[0]&lt;0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e&lt;this.length&amp;&amp;this.words[e]&lt;0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,e,r){var i,a,o=t.length+r;this._expand(o);var s=0;for(i=0;i&lt;t.length;i++){a=(0|this.words[i+r])+s;var l=(0|t.words[i])*e;s=((a-=67108863&amp;l)&gt;&gt;26)-(l/67108864|0),this.words[i+r]=67108863&amp;a}for(;i&lt;this.length-r;i++)s=(a=(0|this.words[i+r])+s)&gt;&gt;26,this.words[i+r]=67108863&amp;a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i&lt;this.length;i++)s=(a=-(0|this.words[i])+s)&gt;&gt;26,this.words[i]=67108863&amp;a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&amp;&amp;(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,l=n.length-i.length;if(&quot;mod&quot;!==e){(s=new a(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c&lt;s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(i,1,l);0===u.negative&amp;&amp;(n=u,s&amp;&amp;(s.words[l]=1));for(var f=l-1;f&gt;=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&amp;&amp;(s.words[f]=h)}return s&amp;&amp;s.strip(),n.strip(),&quot;div&quot;!==e&amp;&amp;0!==r&amp;&amp;n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&amp;&amp;0===t.negative?(s=this.neg().divmod(t,e),&quot;mod&quot;!==e&amp;&amp;(i=s.div.neg()),&quot;div&quot;!==e&amp;&amp;(o=s.mod.neg(),r&amp;&amp;0!==o.negative&amp;&amp;o.iadd(t)),{div:i,mod:o}):0===this.negative&amp;&amp;0!==t.negative?(s=this.divmod(t.neg(),e),&quot;mod&quot;!==e&amp;&amp;(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&amp;t.negative)?(s=this.neg().divmod(t.neg(),e),&quot;div&quot;!==e&amp;&amp;(o=s.mod.neg(),r&amp;&amp;0!==o.negative&amp;&amp;o.isub(t)),{div:s.div,mod:o}):t.length&gt;this.length||this.cmp(t)&lt;0?{div:new a(0),mod:this}:1===t.length?&quot;div&quot;===e?{div:this.divn(t.words[0]),mod:null}:&quot;mod&quot;===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,s},a.prototype.div=function(t){return this.divmod(t,&quot;div&quot;,!1).div},a.prototype.mod=function(t){return this.divmod(t,&quot;mod&quot;,!1).mod},a.prototype.umod=function(t){return this.divmod(t,&quot;mod&quot;,!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),a=r.cmp(n);return a&lt;0||1===i&amp;&amp;0===a?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){n(t&lt;=67108863);for(var e=(1&lt;&lt;26)%t,r=0,i=this.length-1;i&gt;=0;i--)r=(e*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){n(t&lt;=67108863);for(var e=0,r=this.length-1;r&gt;=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new a(1),o=new a(0),s=new a(0),l=new a(1),c=0;e.isEven()&amp;&amp;r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),f=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&amp;p)&amp;&amp;h&lt;26;++h,p&lt;&lt;=1);if(h&gt;0)for(e.iushrn(h);h-- &gt;0;)(i.isOdd()||o.isOdd())&amp;&amp;(i.iadd(u),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var d=0,m=1;0==(r.words[0]&amp;m)&amp;&amp;d&lt;26;++d,m&lt;&lt;=1);if(d&gt;0)for(r.iushrn(d);d-- &gt;0;)(s.isOdd()||l.isOdd())&amp;&amp;(s.iadd(u),l.isub(f)),s.iushrn(1),l.iushrn(1);e.cmp(r)&gt;=0?(e.isub(r),i.isub(s),o.isub(l)):(r.isub(e),s.isub(i),l.isub(o))}return{a:s,b:l,gcd:r.iushln(c)}},a.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new a(1),s=new a(0),l=r.clone();e.cmpn(1)&gt;0&amp;&amp;r.cmpn(1)&gt;0;){for(var c=0,u=1;0==(e.words[0]&amp;u)&amp;&amp;c&lt;26;++c,u&lt;&lt;=1);if(c&gt;0)for(e.iushrn(c);c-- &gt;0;)o.isOdd()&amp;&amp;o.iadd(l),o.iushrn(1);for(var f=0,h=1;0==(r.words[0]&amp;h)&amp;&amp;f&lt;26;++f,h&lt;&lt;=1);if(f&gt;0)for(r.iushrn(f);f-- &gt;0;)s.isOdd()&amp;&amp;s.iadd(l),s.iushrn(1);e.cmp(r)&gt;=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(i=0===e.cmpn(1)?o:s).cmpn(0)&lt;0&amp;&amp;i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&amp;&amp;r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i&lt;0){var a=e;e=r,r=a}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&amp;this.words[0])},a.prototype.isOdd=function(){return 1==(1&amp;this.words[0])},a.prototype.andln=function(t){return this.words[0]&amp;t},a.prototype.bincn=function(t){n(&quot;number&quot;==typeof t);var e=t%26,r=(t-e)/26,i=1&lt;&lt;e;if(this.length&lt;=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&amp;&amp;o&lt;this.length;o++){var s=0|this.words[o];a=(s+=a)&gt;&gt;&gt;26,s&amp;=67108863,this.words[o]=s}return 0!==a&amp;&amp;(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&amp;&amp;0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t&lt;0;if(0!==this.negative&amp;&amp;!r)return-1;if(0===this.negative&amp;&amp;r)return 1;if(this.strip(),this.length&gt;1)e=1;else{r&amp;&amp;(t=-t),n(t&lt;=67108863,&quot;Number is too big&quot;);var i=0|this.words[0];e=i===t?0:i&lt;t?-1:1}return 0!==this.negative?0|-e:e},a.prototype.cmp=function(t){if(0!==this.negative&amp;&amp;0===t.negative)return-1;if(0===this.negative&amp;&amp;0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},a.prototype.ucmp=function(t){if(this.length&gt;t.length)return 1;if(this.length&lt;t.length)return-1;for(var e=0,r=this.length-1;r&gt;=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n&lt;i?e=-1:n&gt;i&amp;&amp;(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)&gt;=0},a.prototype.gte=function(t){return this.cmp(t)&gt;=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)&lt;=0},a.prototype.lte=function(t){return this.cmp(t)&lt;=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new T(t)},a.prototype.toRed=function(t){return n(!this.red,&quot;Already a number in reduction context&quot;),n(0===this.negative,&quot;red works only with positives&quot;),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return n(this.red,&quot;fromRed works only with numbers in reduction context&quot;),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return n(!this.red,&quot;Already a number in reduction context&quot;),this._forceRed(t)},a.prototype.redAdd=function(t){return n(this.red,&quot;redAdd works only with red numbers&quot;),this.red.add(this,t)},a.prototype.redIAdd=function(t){return n(this.red,&quot;redIAdd works only with red numbers&quot;),this.red.iadd(this,t)},a.prototype.redSub=function(t){return n(this.red,&quot;redSub works only with red numbers&quot;),this.red.sub(this,t)},a.prototype.redISub=function(t){return n(this.red,&quot;redISub works only with red numbers&quot;),this.red.isub(this,t)},a.prototype.redShl=function(t){return n(this.red,&quot;redShl works only with red numbers&quot;),this.red.shl(this,t)},a.prototype.redMul=function(t){return n(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return n(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return n(this.red,&quot;redSqr works only with red numbers&quot;),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,&quot;redISqr works only with red numbers&quot;),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,&quot;redSqrt works only with red numbers&quot;),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,&quot;redInvm works only with red numbers&quot;),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,&quot;redNeg works only with red numbers&quot;),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return n(this.red&amp;&amp;!t.red,&quot;redPow(normalNum)&quot;),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function y(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function x(){y.call(this,&quot;k256&quot;,&quot;ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f&quot;)}function b(){y.call(this,&quot;p224&quot;,&quot;ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001&quot;)}function _(){y.call(this,&quot;p192&quot;,&quot;ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff&quot;)}function w(){y.call(this,&quot;25519&quot;,&quot;7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed&quot;)}function T(t){if(&quot;string&quot;==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),&quot;modulus must be greater than 1&quot;),this.m=t,this.prime=null}function k(t){T.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&amp;&amp;(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e&gt;this.n);var n=e&lt;this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n&gt;0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},y.prototype.split=function(t,e){t.iushrn(this.n,0,e)},y.prototype.imulK=function(t){return t.imul(this.k)},i(x,y),x.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n&lt;r;n++)e.words[n]=t.words[n];if(e.length=r,t.length&lt;=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&amp;i,n=10;n&lt;t.length;n++){var a=0|t.words[n];t.words[n-10]=(4194303&amp;a)&lt;&lt;4|i&gt;&gt;&gt;22,i=a}i&gt;&gt;&gt;=22,t.words[n-10]=i,0===i&amp;&amp;t.length&gt;10?t.length-=10:t.length-=9},x.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r&lt;t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&amp;e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&amp;&amp;(t.length--,0===t.words[t.length-1]&amp;&amp;t.length--),t},i(b,y),i(_,y),i(w,y),w.prototype.imulK=function(t){for(var e=0,r=0;r&lt;t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&amp;n;n&gt;&gt;&gt;=26,t.words[r]=i,e=n}return 0!==e&amp;&amp;(t.words[t.length++]=e),t},a._prime=function(t){if(v[t])return v[t];var e;if(&quot;k256&quot;===t)e=new x;else if(&quot;p224&quot;===t)e=new b;else if(&quot;p192&quot;===t)e=new _;else{if(&quot;p25519&quot;!==t)throw new Error(&quot;Unknown prime &quot;+t);e=new w}return v[t]=e,e},T.prototype._verify1=function(t){n(0===t.negative,&quot;red works only with positives&quot;),n(t.red,&quot;red works only with red numbers&quot;)},T.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),&quot;red works only with positives&quot;),n(t.red&amp;&amp;t.red===e.red,&quot;red works only with red numbers&quot;)},T.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},T.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},T.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)&gt;=0&amp;&amp;r.isub(this.m),r._forceRed(this)},T.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)&gt;=0&amp;&amp;r.isub(this.m),r},T.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)&lt;0&amp;&amp;r.iadd(this.m),r._forceRed(this)},T.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)&lt;0&amp;&amp;r.iadd(this.m),r},T.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},T.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},T.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},T.prototype.isqr=function(t){return this.imul(t,t.clone())},T.prototype.sqr=function(t){return this.mul(t,t)},T.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&amp;&amp;0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var f=this.pow(u,i),h=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),d=o;0!==p.cmp(s);){for(var m=p,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g&lt;d);var v=this.pow(f,new a(1).iushln(d-g-1));h=h.redMul(v),f=v.redSqr(),p=p.redMul(f),d=g}return h},T.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},T.prototype.pow=function(t,e){if(e.isZero())return new a(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=t;for(var n=2;n&lt;r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,s=0,l=e.bitLength()%26;for(0===l&amp;&amp;(l=26),n=e.length-1;n&gt;=0;n--){for(var c=e.words[n],u=l-1;u&gt;=0;u--){var f=c&gt;&gt;u&amp;1;i!==r[0]&amp;&amp;(i=this.sqr(i)),0!==f||0!==o?(o&lt;&lt;=1,o|=f,(4===++s||0===n&amp;&amp;0===u)&amp;&amp;(i=this.mul(i,r[o]),s=0,o=0)):s=0}l=26}return i},T.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},T.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new k(t)},i(k,T),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)&gt;=0?a=i.isub(this.m):i.cmpn(0)&lt;0&amp;&amp;(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)&gt;=0?o=i.isub(this.m):i.cmpn(0)&lt;0&amp;&amp;(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)},{buffer:2}],34:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e,r,n,i=t.length,a=0;for(e=0;e&lt;i;++e)a+=t[e].length;var o=new Array(a),s=0;for(e=0;e&lt;i;++e){var l=t[e],c=l.length;for(r=0;r&lt;c;++r){var u=o[s++]=new Array(c-1),f=0;for(n=0;n&lt;c;++n)n!==r&amp;&amp;(u[f++]=l[n]);if(1&amp;r){var h=u[1];u[1]=u[0],u[0]=h}}}return o}},{}],35:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){switch(arguments.length){case 1:return f(t);case 2:return&quot;function&quot;==typeof e?c(t,t,e,!0):h(t,e);case 3:return c(t,e,r,!1);default:throw new Error(&quot;box-intersect: Invalid arguments&quot;)}};var n,i=t(&quot;typedarray-pool&quot;),a=t(&quot;./lib/sweep&quot;),o=t(&quot;./lib/intersect&quot;);function s(t,e){for(var r=0;r&lt;t;++r)if(!(e[r]&lt;=e[r+t]))return!0;return!1}function l(t,e,r,n){for(var i=0,a=0,o=0,l=t.length;o&lt;l;++o){var c=t[o];if(!s(e,c)){for(var u=0;u&lt;2*e;++u)r[i++]=c[u];n[a++]=o}}return a}function c(t,e,r,n){var s=t.length,c=e.length;if(!(s&lt;=0||c&lt;=0)){var u=t[0].length&gt;&gt;&gt;1;if(!(u&lt;=0)){var f,h=i.mallocDouble(2*u*s),p=i.mallocInt32(s);if((s=l(t,u,h,p))&gt;0){if(1===u&amp;&amp;n)a.init(s),f=a.sweepComplete(u,r,0,s,h,p,0,s,h,p);else{var d=i.mallocDouble(2*u*c),m=i.mallocInt32(c);(c=l(e,u,d,m))&gt;0&amp;&amp;(a.init(s+c),f=1===u?a.sweepBipartite(u,r,0,s,h,p,0,c,d,m):o(u,r,n,s,h,p,c,d,m),i.free(d),i.free(m))}i.free(h),i.free(p)}return f}}}function u(t,e){n.push([t,e])}function f(t){return n=[],c(t,t,u,!0),n}function h(t,e){return n=[],c(t,e,u,!1),n}},{&quot;./lib/intersect&quot;:37,&quot;./lib/sweep&quot;:41,&quot;typedarray-pool&quot;:308}],36:[function(t,e,r){&quot;use strict&quot;;function n(t){return t?function(t,e,r,n,i,a,o,s,l,c,u){return i-n&gt;l-s?function(t,e,r,n,i,a,o,s,l,c,u){for(var f=2*t,h=n,p=f*n;h&lt;i;++h,p+=f){var d=a[e+p],m=a[e+p+t],g=o[h];t:for(var v=s,y=f*s;v&lt;l;++v,y+=f){var x=c[e+y],b=c[e+y+t],_=u[v];if(!(b&lt;d||m&lt;x)){for(var w=e+1;w&lt;t;++w){var T=a[w+p],k=a[w+t+p],A=c[w+y],M=c[w+t+y];if(k&lt;A||M&lt;T)continue t}var S=r(g,_);if(void 0!==S)return S}}}}(t,e,r,n,i,a,o,s,l,c,u):function(t,e,r,n,i,a,o,s,l,c,u){for(var f=2*t,h=s,p=f*s;h&lt;l;++h,p+=f){var d=c[e+p],m=c[e+p+t],g=u[h];t:for(var v=n,y=f*n;v&lt;i;++v,y+=f){var x=a[e+y],b=a[e+y+t],_=o[v];if(!(m&lt;x||b&lt;d)){for(var w=e+1;w&lt;t;++w){var T=a[w+y],k=a[w+t+y],A=c[w+p],M=c[w+t+p];if(k&lt;A||M&lt;T)continue t}var S=r(_,g);if(void 0!==S)return S}}}}(t,e,r,n,i,a,o,s,l,c,u)}:function(t,e,r,n,i,a,o,s,l,c,u,f){return a-i&gt;c-l?n?function(t,e,r,n,i,a,o,s,l,c,u){for(var f=2*t,h=n,p=f*n;h&lt;i;++h,p+=f){var d=a[e+p],m=a[e+p+t],g=o[h];t:for(var v=s,y=f*s;v&lt;l;++v,y+=f){var x=c[e+y],b=u[v];if(!(x&lt;=d||m&lt;x)){for(var _=e+1;_&lt;t;++_){var w=a[_+p],T=a[_+t+p],k=c[_+y],A=c[_+t+y];if(T&lt;k||A&lt;w)continue t}var M=r(b,g);if(void 0!==M)return M}}}}(t,e,r,i,a,o,s,l,c,u,f):function(t,e,r,n,i,a,o,s,l,c,u){for(var f=2*t,h=n,p=f*n;h&lt;i;++h,p+=f){var d=a[e+p],m=a[e+p+t],g=o[h];t:for(var v=s,y=f*s;v&lt;l;++v,y+=f){var x=c[e+y],b=u[v];if(!(x&lt;d||m&lt;x)){for(var _=e+1;_&lt;t;++_){var w=a[_+p],T=a[_+t+p],k=c[_+y],A=c[_+t+y];if(T&lt;k||A&lt;w)continue t}var M=r(g,b);if(void 0!==M)return M}}}}(t,e,r,i,a,o,s,l,c,u,f):n?function(t,e,r,n,i,a,o,s,l,c,u){for(var f=2*t,h=s,p=f*s;h&lt;l;++h,p+=f){var d=c[e+p],m=u[h];t:for(var g=n,v=f*n;g&lt;i;++g,v+=f){var y=a[e+v],x=a[e+v+t],b=o[g];if(!(d&lt;=y||x&lt;d)){for(var _=e+1;_&lt;t;++_){var w=a[_+v],T=a[_+t+v],k=c[_+p],A=c[_+t+p];if(T&lt;k||A&lt;w)continue t}var M=r(m,b);if(void 0!==M)return M}}}}(t,e,r,i,a,o,s,l,c,u,f):function(t,e,r,n,i,a,o,s,l,c,u){for(var f=2*t,h=s,p=f*s;h&lt;l;++h,p+=f){var d=c[e+p],m=u[h];t:for(var g=n,v=f*n;g&lt;i;++g,v+=f){var y=a[e+v],x=a[e+v+t],b=o[g];if(!(d&lt;y||x&lt;d)){for(var _=e+1;_&lt;t;++_){var w=a[_+v],T=a[_+t+v],k=c[_+p],A=c[_+t+p];if(T&lt;k||A&lt;w)continue t}var M=r(b,m);if(void 0!==M)return M}}}}(t,e,r,i,a,o,s,l,c,u,f)}}r.partial=n(!1),r.full=n(!0)},{}],37:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,u,w,T,k,A){!function(t,e){var r=8*i.log2(e+1)*(t+1)|0,a=i.nextPow2(6*r);v.length&lt;a&amp;&amp;(n.free(v),v=n.mallocInt32(a));var o=i.nextPow2(2*r);y.length&lt;o&amp;&amp;(n.free(y),y=n.mallocDouble(o))}(t,a+T);var M,S=0,E=2*t;x(S++,0,0,a,0,T,r?16:0,-1/0,1/0),r||x(S++,0,0,T,0,a,1,-1/0,1/0);for(;S&gt;0;){var L=6*(S-=1),C=v[L],P=v[L+1],I=v[L+2],O=v[L+3],z=v[L+4],D=v[L+5],R=2*S,F=y[R],B=y[R+1],N=1&amp;D,j=!!(16&amp;D),U=u,V=w,H=k,q=A;if(N&amp;&amp;(U=k,V=A,H=u,q=w),!(2&amp;D&amp;&amp;(I=p(t,C,P,I,U,V,B),P&gt;=I)||4&amp;D&amp;&amp;(P=d(t,C,P,I,U,V,F))&gt;=I)){var G=I-P,Y=z-O;if(j){if(t*G*(G+Y)&lt;1&lt;&lt;22){if(void 0!==(M=l.scanComplete(t,C,e,P,I,U,V,O,z,H,q)))return M;continue}}else{if(t*Math.min(G,Y)&lt;128){if(void 0!==(M=o(t,C,e,N,P,I,U,V,O,z,H,q)))return M;continue}if(t*G*Y&lt;1&lt;&lt;22){if(void 0!==(M=l.scanBipartite(t,C,e,N,P,I,U,V,O,z,H,q)))return M;continue}}var W=f(t,C,P,I,U,V,F,B);if(P&lt;W)if(t*(W-P)&lt;128){if(void 0!==(M=s(t,C+1,e,P,W,U,V,O,z,H,q)))return M}else if(C===t-2){if(void 0!==(M=N?l.sweepBipartite(t,e,O,z,H,q,P,W,U,V):l.sweepBipartite(t,e,P,W,U,V,O,z,H,q)))return M}else x(S++,C+1,P,W,O,z,N,-1/0,1/0),x(S++,C+1,O,z,P,W,1^N,-1/0,1/0);if(W&lt;I){var X=c(t,C,O,z,H,q),Z=H[E*X+C],J=h(t,C,X,z,H,q,Z);if(J&lt;z&amp;&amp;x(S++,C,W,I,J,z,(4|N)+(j?16:0),Z,B),O&lt;X&amp;&amp;x(S++,C,W,I,O,X,(2|N)+(j?16:0),F,Z),X+1===J){if(void 0!==(M=j?_(t,C,e,W,I,U,V,X,H,q[X]):b(t,C,e,N,W,I,U,V,X,H,q[X])))return M}else if(X&lt;J){var K;if(j){if(K=m(t,C,W,I,U,V,Z),W&lt;K){var Q=h(t,C,W,K,U,V,Z);if(C===t-2){if(W&lt;Q&amp;&amp;void 0!==(M=l.sweepComplete(t,e,W,Q,U,V,X,J,H,q)))return M;if(Q&lt;K&amp;&amp;void 0!==(M=l.sweepBipartite(t,e,Q,K,U,V,X,J,H,q)))return M}else W&lt;Q&amp;&amp;x(S++,C+1,W,Q,X,J,16,-1/0,1/0),Q&lt;K&amp;&amp;(x(S++,C+1,Q,K,X,J,0,-1/0,1/0),x(S++,C+1,X,J,Q,K,1,-1/0,1/0))}}else K=N?g(t,C,W,I,U,V,Z):m(t,C,W,I,U,V,Z),W&lt;K&amp;&amp;(C===t-2?M=N?l.sweepBipartite(t,e,X,J,H,q,W,K,U,V):l.sweepBipartite(t,e,W,K,U,V,X,J,H,q):(x(S++,C+1,W,K,X,J,N,-1/0,1/0),x(S++,C+1,X,J,W,K,1^N,-1/0,1/0)))}}}}};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;bit-twiddle&quot;),a=t(&quot;./brute&quot;),o=a.partial,s=a.full,l=t(&quot;./sweep&quot;),c=t(&quot;./median&quot;),u=t(&quot;./partition&quot;),f=u(&quot;!(lo&gt;=p0)&amp;&amp;!(p1&gt;=hi)&quot;),h=u(&quot;lo===p0&quot;),p=u(&quot;lo&lt;p0&quot;),d=u(&quot;hi&lt;=p0&quot;),m=u(&quot;lo&lt;=p0&amp;&amp;p0&lt;=hi&quot;),g=u(&quot;lo&lt;p0&amp;&amp;p0&lt;=hi&quot;),v=n.mallocInt32(1024),y=n.mallocDouble(1024);function x(t,e,r,n,i,a,o,s,l){var c=6*t;v[c]=e,v[c+1]=r,v[c+2]=n,v[c+3]=i,v[c+4]=a,v[c+5]=o;var u=2*t;y[u]=s,y[u+1]=l}function b(t,e,r,n,i,a,o,s,l,c,u){var f=2*t,h=l*f,p=c[h+e];t:for(var d=i,m=i*f;d&lt;a;++d,m+=f){var g=o[m+e],v=o[m+e+t];if(!(p&lt;g||v&lt;p)&amp;&amp;(!n||p!==g)){for(var y,x=s[d],b=e+1;b&lt;t;++b){g=o[m+b],v=o[m+b+t];var _=c[h+b],w=c[h+b+t];if(v&lt;_||w&lt;g)continue t}if(void 0!==(y=n?r(u,x):r(x,u)))return y}}}function _(t,e,r,n,i,a,o,s,l,c){var u=2*t,f=s*u,h=l[f+e];t:for(var p=n,d=n*u;p&lt;i;++p,d+=u){var m=o[p];if(m!==c){var g=a[d+e],v=a[d+e+t];if(!(h&lt;g||v&lt;h)){for(var y=e+1;y&lt;t;++y){g=a[d+y],v=a[d+y+t];var x=l[f+y],b=l[f+y+t];if(v&lt;x||b&lt;g)continue t}var _=r(m,c);if(void 0!==_)return _}}}}},{&quot;./brute&quot;:36,&quot;./median&quot;:38,&quot;./partition&quot;:39,&quot;./sweep&quot;:41,&quot;bit-twiddle&quot;:32,&quot;typedarray-pool&quot;:308}],38:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,o,s){if(a&lt;=r+1)return r;var l=r,c=a,u=a+r&gt;&gt;&gt;1,f=2*t,h=u,p=o[f*u+e];for(;l&lt;c;){if(c-l&lt;8){i(t,e,l,c,o,s),p=o[f*u+e];break}var d=c-l,m=Math.random()*d+l|0,g=o[f*m+e],v=Math.random()*d+l|0,y=o[f*v+e],x=Math.random()*d+l|0,b=o[f*x+e];g&lt;=y?b&gt;=y?(h=v,p=y):g&gt;=b?(h=m,p=g):(h=x,p=b):y&gt;=b?(h=v,p=y):b&gt;=g?(h=m,p=g):(h=x,p=b);for(var _=f*(c-1),w=f*h,T=0;T&lt;f;++T,++_,++w){var k=o[_];o[_]=o[w],o[w]=k}var A=s[c-1];s[c-1]=s[h],s[h]=A,h=n(t,e,l,c-1,o,s,p);for(_=f*(c-1),w=f*h,T=0;T&lt;f;++T,++_,++w){k=o[_];o[_]=o[w],o[w]=k}A=s[c-1];if(s[c-1]=s[h],s[h]=A,u&lt;h){for(c=h-1;l&lt;c&amp;&amp;o[f*(c-1)+e]===p;)c-=1;c+=1}else{if(!(h&lt;u))break;for(l=h+1;l&lt;c&amp;&amp;o[f*l+e]===p;)l+=1}}return n(t,e,r,u,o,s,o[f*u+e])};var n=t(&quot;./partition&quot;)(&quot;lo&lt;p0&quot;);function i(t,e,r,n,i,a){for(var o=2*t,s=o*(r+1)+e,l=r+1;l&lt;n;++l,s+=o)for(var c=i[s],u=l,f=o*(l-1);u&gt;r&amp;&amp;i[f+e]&gt;c;--u,f-=o){for(var h=f,p=f+o,d=0;d&lt;o;++d,++h,++p){var m=i[h];i[h]=i[p],i[p]=m}var g=a[u];a[u]=a[u-1],a[u-1]=g}}},{&quot;./partition&quot;:39}],39:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return n[t]};var n={&quot;lo===p0&quot;:function(t,e,r,n,i,a,o){for(var s=2*t,l=s*r,c=l,u=r,f=e,h=r;n&gt;h;++h,l+=s){if(i[l+f]===o)if(u===h)u+=1,c+=s;else{for(var p=0;s&gt;p;++p){var d=i[l+p];i[l+p]=i[c],i[c++]=d}var m=a[h];a[h]=a[u],a[u++]=m}}return u},&quot;lo&lt;p0&quot;:function(t,e,r,n,i,a,o){for(var s=2*t,l=s*r,c=l,u=r,f=e,h=r;n&gt;h;++h,l+=s){if(i[l+f]&lt;o)if(u===h)u+=1,c+=s;else{for(var p=0;s&gt;p;++p){var d=i[l+p];i[l+p]=i[c],i[c++]=d}var m=a[h];a[h]=a[u],a[u++]=m}}return u},&quot;lo&lt;=p0&quot;:function(t,e,r,n,i,a,o){for(var s=2*t,l=s*r,c=l,u=r,f=t+e,h=r;n&gt;h;++h,l+=s){if(i[l+f]&lt;=o)if(u===h)u+=1,c+=s;else{for(var p=0;s&gt;p;++p){var d=i[l+p];i[l+p]=i[c],i[c++]=d}var m=a[h];a[h]=a[u],a[u++]=m}}return u},&quot;hi&lt;=p0&quot;:function(t,e,r,n,i,a,o){for(var s=2*t,l=s*r,c=l,u=r,f=t+e,h=r;n&gt;h;++h,l+=s){if(i[l+f]&lt;=o)if(u===h)u+=1,c+=s;else{for(var p=0;s&gt;p;++p){var d=i[l+p];i[l+p]=i[c],i[c++]=d}var m=a[h];a[h]=a[u],a[u++]=m}}return u},&quot;lo&lt;p0&amp;&amp;p0&lt;=hi&quot;:function(t,e,r,n,i,a,o){for(var s=2*t,l=s*r,c=l,u=r,f=e,h=t+e,p=r;n&gt;p;++p,l+=s){var d=i[l+f],m=i[l+h];if(d&lt;o&amp;&amp;o&lt;=m)if(u===p)u+=1,c+=s;else{for(var g=0;s&gt;g;++g){var v=i[l+g];i[l+g]=i[c],i[c++]=v}var y=a[p];a[p]=a[u],a[u++]=y}}return u},&quot;lo&lt;=p0&amp;&amp;p0&lt;=hi&quot;:function(t,e,r,n,i,a,o){for(var s=2*t,l=s*r,c=l,u=r,f=e,h=t+e,p=r;n&gt;p;++p,l+=s){var d=i[l+f],m=i[l+h];if(d&lt;=o&amp;&amp;o&lt;=m)if(u===p)u+=1,c+=s;else{for(var g=0;s&gt;g;++g){var v=i[l+g];i[l+g]=i[c],i[c++]=v}var y=a[p];a[p]=a[u],a[u++]=y}}return u},&quot;!(lo&gt;=p0)&amp;&amp;!(p1&gt;=hi)&quot;:function(t,e,r,n,i,a,o,s){for(var l=2*t,c=l*r,u=c,f=r,h=e,p=t+e,d=r;n&gt;d;++d,c+=l){var m=i[c+h],g=i[c+p];if(!(m&gt;=o||s&gt;=g))if(f===d)f+=1,u+=l;else{for(var v=0;l&gt;v;++v){var y=i[c+v];i[c+v]=i[u],i[u++]=y}var x=a[d];a[d]=a[f],a[f++]=x}}return f}}},{}],40:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e&lt;=128?n(0,e-1,t):function t(e,r,u){var f=(r-e+1)/6|0,h=e+f,p=r-f,d=e+r&gt;&gt;1,m=d-f,g=d+f,v=h,y=m,x=d,b=g,_=p,w=e+1,T=r-1,k=0;l(v,y,u)&amp;&amp;(k=v,v=y,y=k);l(b,_,u)&amp;&amp;(k=b,b=_,_=k);l(v,x,u)&amp;&amp;(k=v,v=x,x=k);l(y,x,u)&amp;&amp;(k=y,y=x,x=k);l(v,b,u)&amp;&amp;(k=v,v=b,b=k);l(x,b,u)&amp;&amp;(k=x,x=b,b=k);l(y,_,u)&amp;&amp;(k=y,y=_,_=k);l(y,x,u)&amp;&amp;(k=y,y=x,x=k);l(b,_,u)&amp;&amp;(k=b,b=_,_=k);for(var A=u[2*y],M=u[2*y+1],S=u[2*b],E=u[2*b+1],L=2*v,C=2*x,P=2*_,I=2*h,O=2*d,z=2*p,D=0;D&lt;2;++D){var R=u[L+D],F=u[C+D],B=u[P+D];u[I+D]=R,u[O+D]=F,u[z+D]=B}a(m,e,u),a(g,r,u);for(var N=w;N&lt;=T;++N)if(c(N,A,M,u))N!==w&amp;&amp;i(N,w,u),++w;else if(!c(N,S,E,u))for(;;){if(c(T,S,E,u)){c(T,A,M,u)?(o(N,w,T,u),++w,--T):(i(N,T,u),--T);break}if(--T&lt;N)break}s(e,w-1,A,M,u),s(r,T+1,S,E,u),w-2-e&lt;=32?n(e,w-2,u):t(e,w-2,u);r-(T+2)&lt;=32?n(T+2,r,u):t(T+2,r,u);T-w&lt;=32?n(w,T,u):t(w,T,u)}(0,e-1,t)};function n(t,e,r){for(var n=2*(t+1),i=t+1;i&lt;=e;++i){for(var a=r[n++],o=r[n++],s=i,l=n-2;s-- &gt;t;){var c=r[l-2],u=r[l-1];if(c&lt;a)break;if(c===a&amp;&amp;u&lt;o)break;r[l]=c,r[l+1]=u,l-=2}r[l]=a,r[l+1]=o}}function i(t,e,r){e*=2;var n=r[t*=2],i=r[t+1];r[t]=r[e],r[t+1]=r[e+1],r[e]=n,r[e+1]=i}function a(t,e,r){e*=2,r[t*=2]=r[e],r[t+1]=r[e+1]}function o(t,e,r,n){e*=2,r*=2;var i=n[t*=2],a=n[t+1];n[t]=n[e],n[t+1]=n[e+1],n[e]=n[r],n[e+1]=n[r+1],n[r]=i,n[r+1]=a}function s(t,e,r,n,i){e*=2,i[t*=2]=i[e],i[e]=r,i[t+1]=i[e+1],i[e+1]=n}function l(t,e,r){e*=2;var n=r[t*=2],i=r[e];return!(n&lt;i)&amp;&amp;(n!==i||r[t+1]&gt;r[e+1])}function c(t,e,r,n){var i=n[t*=2];return i&lt;e||i===e&amp;&amp;n[t+1]&lt;r}},{}],41:[function(t,e,r){&quot;use strict&quot;;e.exports={init:function(t){var e=i.nextPow2(t);o.length&lt;e&amp;&amp;(n.free(o),o=n.mallocInt32(e));s.length&lt;e&amp;&amp;(n.free(s),s=n.mallocInt32(e));l.length&lt;e&amp;&amp;(n.free(l),l=n.mallocInt32(e));c.length&lt;e&amp;&amp;(n.free(c),c=n.mallocInt32(e));u.length&lt;e&amp;&amp;(n.free(u),u=n.mallocInt32(e));f.length&lt;e&amp;&amp;(n.free(f),f=n.mallocInt32(e));var r=8*e;h.length&lt;r&amp;&amp;(n.free(h),h=n.mallocDouble(r))},sweepBipartite:function(t,e,r,n,i,u,f,m,g,v){for(var y=0,x=2*t,b=t-1,_=x-1,w=r;w&lt;n;++w){var T=u[w],k=x*w;h[y++]=i[k+b],h[y++]=-(T+1),h[y++]=i[k+_],h[y++]=T}for(w=f;w&lt;m;++w){T=v[w]+(1&lt;&lt;28);var A=x*w;h[y++]=g[A+b],h[y++]=-T,h[y++]=g[A+_],h[y++]=T}var M=y&gt;&gt;&gt;1;a(h,M);var S=0,E=0;for(w=0;w&lt;M;++w){var L=0|h[2*w+1];if(L&gt;=1&lt;&lt;28)p(l,c,E--,L=L-(1&lt;&lt;28)|0);else if(L&gt;=0)p(o,s,S--,L);else if(L&lt;=-(1&lt;&lt;28)){L=-L-(1&lt;&lt;28)|0;for(var C=0;C&lt;S;++C){if(void 0!==(P=e(o[C],L)))return P}d(l,c,E++,L)}else{L=-L-1|0;for(C=0;C&lt;E;++C){var P;if(void 0!==(P=e(L,l[C])))return P}d(o,s,S++,L)}}},sweepComplete:function(t,e,r,n,i,m,g,v,y,x){for(var b=0,_=2*t,w=t-1,T=_-1,k=r;k&lt;n;++k){var A=m[k]+1&lt;&lt;1,M=_*k;h[b++]=i[M+w],h[b++]=-A,h[b++]=i[M+T],h[b++]=A}for(k=g;k&lt;v;++k){A=x[k]+1&lt;&lt;1;var S=_*k;h[b++]=y[S+w],h[b++]=1|-A,h[b++]=y[S+T],h[b++]=1|A}var E=b&gt;&gt;&gt;1;a(h,E);var L=0,C=0,P=0;for(k=0;k&lt;E;++k){var I=0|h[2*k+1],O=1&amp;I;if(k&lt;E-1&amp;&amp;I&gt;&gt;1==h[2*k+3]&gt;&gt;1&amp;&amp;(O=2,k+=1),I&lt;0){for(var z=-(I&gt;&gt;1)-1,D=0;D&lt;P;++D){if(void 0!==(R=e(u[D],z)))return R}if(0!==O)for(D=0;D&lt;L;++D){if(void 0!==(R=e(o[D],z)))return R}if(1!==O)for(D=0;D&lt;C;++D){var R;if(void 0!==(R=e(l[D],z)))return R}0===O?d(o,s,L++,z):1===O?d(l,c,C++,z):2===O&amp;&amp;d(u,f,P++,z)}else{z=(I&gt;&gt;1)-1;0===O?p(o,s,L--,z):1===O?p(l,c,C--,z):2===O&amp;&amp;p(u,f,P--,z)}}},scanBipartite:function(t,e,r,n,i,l,c,u,f,m,g,v){var y=0,x=2*t,b=e,_=e+t,w=1,T=1;n?T=1&lt;&lt;28:w=1&lt;&lt;28;for(var k=i;k&lt;l;++k){var A=k+w,M=x*k;h[y++]=c[M+b],h[y++]=-A,h[y++]=c[M+_],h[y++]=A}for(k=f;k&lt;m;++k){A=k+T;var S=x*k;h[y++]=g[S+b],h[y++]=-A}var E=y&gt;&gt;&gt;1;a(h,E);var L=0;for(k=0;k&lt;E;++k){var C=0|h[2*k+1];if(C&lt;0){var P=!1;if((A=-C)&gt;=1&lt;&lt;28?(P=!n,A-=1&lt;&lt;28):(P=!!n,A-=1),P)d(o,s,L++,A);else{var I=v[A],O=x*A,z=g[O+e+1],D=g[O+e+1+t];t:for(var R=0;R&lt;L;++R){var F=o[R],B=x*F;if(!(D&lt;c[B+e+1]||c[B+e+1+t]&lt;z)){for(var N=e+2;N&lt;t;++N)if(g[O+N+t]&lt;c[B+N]||c[B+N+t]&lt;g[O+N])continue t;var j,U=u[F];if(void 0!==(j=n?r(I,U):r(U,I)))return j}}}}else p(o,s,L--,C-w)}},scanComplete:function(t,e,r,n,i,s,l,c,u,f,p){for(var d=0,m=2*t,g=e,v=e+t,y=n;y&lt;i;++y){var x=y+(1&lt;&lt;28),b=m*y;h[d++]=s[b+g],h[d++]=-x,h[d++]=s[b+v],h[d++]=x}for(y=c;y&lt;u;++y){x=y+1;var _=m*y;h[d++]=f[_+g],h[d++]=-x}var w=d&gt;&gt;&gt;1;a(h,w);var T=0;for(y=0;y&lt;w;++y){var k=0|h[2*y+1];if(k&lt;0){if((x=-k)&gt;=1&lt;&lt;28)o[T++]=x-(1&lt;&lt;28);else{var A=p[x-=1],M=m*x,S=f[M+e+1],E=f[M+e+1+t];t:for(var L=0;L&lt;T;++L){var C=o[L],P=l[C];if(P===A)break;var I=m*C;if(!(E&lt;s[I+e+1]||s[I+e+1+t]&lt;S)){for(var O=e+2;O&lt;t;++O)if(f[M+O+t]&lt;s[I+O]||s[I+O+t]&lt;f[M+O])continue t;var z=r(P,A);if(void 0!==z)return z}}}}else{for(x=k-(1&lt;&lt;28),L=T-1;L&gt;=0;--L)if(o[L]===x){for(O=L+1;O&lt;T;++O)o[O-1]=o[O];break}--T}}}};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;bit-twiddle&quot;),a=t(&quot;./sort&quot;),o=n.mallocInt32(1024),s=n.mallocInt32(1024),l=n.mallocInt32(1024),c=n.mallocInt32(1024),u=n.mallocInt32(1024),f=n.mallocInt32(1024),h=n.mallocDouble(8192);function p(t,e,r,n){var i=e[n],a=t[r-1];t[i]=a,e[a]=i}function d(t,e,r,n){t[r]=n,e[n]=r}},{&quot;./sort&quot;:40,&quot;bit-twiddle&quot;:32,&quot;typedarray-pool&quot;:308}],42:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/monotone&quot;),i=t(&quot;./lib/triangulation&quot;),a=t(&quot;./lib/delaunay&quot;),o=t(&quot;./lib/filter&quot;);function s(t){return[Math.min(t[0],t[1]),Math.max(t[0],t[1])]}function l(t,e){return t[0]-e[0]||t[1]-e[1]}function c(t,e,r){return e in t?t[e]:r}e.exports=function(t,e,r){Array.isArray(e)?(r=r||{},e=e||[]):(r=e||{},e=[]);var u=!!c(r,&quot;delaunay&quot;,!0),f=!!c(r,&quot;interior&quot;,!0),h=!!c(r,&quot;exterior&quot;,!0),p=!!c(r,&quot;infinity&quot;,!1);if(!f&amp;&amp;!h||0===t.length)return[];var d=n(t,e);if(u||f!==h||p){for(var m=i(t.length,function(t){return t.map(s).sort(l)}(e)),g=0;g&lt;d.length;++g){var v=d[g];m.addTriangle(v[0],v[1],v[2])}return u&amp;&amp;a(t,m),h?f?p?o(m,0,p):m.cells():o(m,1,p):o(m,-1)}return d}},{&quot;./lib/delaunay&quot;:43,&quot;./lib/filter&quot;:44,&quot;./lib/monotone&quot;:45,&quot;./lib/triangulation&quot;:46}],43:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-in-sphere&quot;)[4];t(&quot;binary-search-bounds&quot;);function i(t,e,r,i,a,o){var s=e.opposite(i,a);if(!(s&lt;0)){if(a&lt;i){var l=i;i=a,a=l,l=o,o=s,s=l}e.isConstraint(i,a)||n(t[i],t[a],t[o],t[s])&lt;0&amp;&amp;r.push(i,a)}}e.exports=function(t,e){for(var r=[],a=t.length,o=e.stars,s=0;s&lt;a;++s)for(var l=o[s],c=1;c&lt;l.length;c+=2){if(!((p=l[c])&lt;s)&amp;&amp;!e.isConstraint(s,p)){for(var u=l[c-1],f=-1,h=1;h&lt;l.length;h+=2)if(l[h-1]===p){f=l[h];break}f&lt;0||n(t[s],t[p],t[u],t[f])&lt;0&amp;&amp;r.push(s,p)}}for(;r.length&gt;0;){for(var p=r.pop(),d=(s=r.pop(),u=-1,f=-1,l=o[s],1);d&lt;l.length;d+=2){var m=l[d-1],g=l[d];m===p?f=g:g===p&amp;&amp;(u=m)}u&lt;0||f&lt;0||(n(t[s],t[p],t[u],t[f])&gt;=0||(e.flip(s,p),i(t,e,r,u,s,f),i(t,e,r,s,f,u),i(t,e,r,f,p,u),i(t,e,r,p,u,f)))}}},{&quot;binary-search-bounds&quot;:31,&quot;robust-in-sphere&quot;:282}],44:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;binary-search-bounds&quot;);function a(t,e,r,n,i,a,o){this.cells=t,this.neighbor=e,this.flags=n,this.constraint=r,this.active=i,this.next=a,this.boundary=o}function o(t,e){return t[0]-e[0]||t[1]-e[1]||t[2]-e[2]}e.exports=function(t,e,r){var n=function(t,e){for(var r=t.cells(),n=r.length,i=0;i&lt;n;++i){var s=(v=r[i])[0],l=v[1],c=v[2];l&lt;c?l&lt;s&amp;&amp;(v[0]=l,v[1]=c,v[2]=s):c&lt;s&amp;&amp;(v[0]=c,v[1]=s,v[2]=l)}r.sort(o);var u=new Array(n);for(i=0;i&lt;u.length;++i)u[i]=0;var f=[],h=[],p=new Array(3*n),d=new Array(3*n),m=null;e&amp;&amp;(m=[]);var g=new a(r,p,d,u,f,h,m);for(i=0;i&lt;n;++i)for(var v=r[i],y=0;y&lt;3;++y){s=v[y],l=v[(y+1)%3];var x=p[3*i+y]=g.locate(l,s,t.opposite(l,s)),b=d[3*i+y]=t.isConstraint(s,l);x&lt;0&amp;&amp;(b?h.push(i):(f.push(i),u[i]=1),e&amp;&amp;m.push([l,s,-1]))}return g}(t,r);if(0===e)return r?n.cells.concat(n.boundary):n.cells;var i=1,s=n.active,l=n.next,c=n.flags,u=n.cells,f=n.constraint,h=n.neighbor;for(;s.length&gt;0||l.length&gt;0;){for(;s.length&gt;0;){var p=s.pop();if(c[p]!==-i){c[p]=i;u[p];for(var d=0;d&lt;3;++d){var m=h[3*p+d];m&gt;=0&amp;&amp;0===c[m]&amp;&amp;(f[3*p+d]?l.push(m):(s.push(m),c[m]=i))}}}var g=l;l=s,s=g,l.length=0,i=-i}var v=function(t,e,r){for(var n=0,i=0;i&lt;t.length;++i)e[i]===r&amp;&amp;(t[n++]=t[i]);return t.length=n,t}(u,c,e);if(r)return v.concat(n.boundary);return v},a.prototype.locate=(n=[0,0,0],function(t,e,r){var a=t,s=e,l=r;return e&lt;r?e&lt;t&amp;&amp;(a=e,s=r,l=t):r&lt;t&amp;&amp;(a=r,s=t,l=e),a&lt;0?-1:(n[0]=a,n[1]=s,n[2]=l,i.eq(this.cells,n,o))})},{&quot;binary-search-bounds&quot;:31}],45:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;robust-orientation&quot;)[3];function a(t,e,r,n,i){this.a=t,this.b=e,this.idx=r,this.lowerIds=n,this.upperIds=i}function o(t,e,r,n){this.a=t,this.b=e,this.type=r,this.idx=n}function s(t,e){var r=t.a[0]-e.a[0]||t.a[1]-e.a[1]||t.type-e.type;return r||(0!==t.type&amp;&amp;(r=i(t.a,t.b,e.b))?r:t.idx-e.idx)}function l(t,e){return i(t.a,t.b,e)}function c(t,e,r,a,o){for(var s=n.lt(e,a,l),c=n.gt(e,a,l),u=s;u&lt;c;++u){for(var f=e[u],h=f.lowerIds,p=h.length;p&gt;1&amp;&amp;i(r[h[p-2]],r[h[p-1]],a)&gt;0;)t.push([h[p-1],h[p-2],o]),p-=1;h.length=p,h.push(o);var d=f.upperIds;for(p=d.length;p&gt;1&amp;&amp;i(r[d[p-2]],r[d[p-1]],a)&lt;0;)t.push([d[p-2],d[p-1],o]),p-=1;d.length=p,d.push(o)}}function u(t,e){var r;return(r=t.a[0]&lt;e.a[0]?i(t.a,t.b,e.a):i(e.b,e.a,t.a))?r:(r=e.b[0]&lt;t.b[0]?i(t.a,t.b,e.b):i(e.b,e.a,t.b))||t.idx-e.idx}function f(t,e,r){var i=n.le(t,r,u),o=t[i],s=o.upperIds,l=s[s.length-1];o.upperIds=[l],t.splice(i+1,0,new a(r.a,r.b,r.idx,[l],s))}function h(t,e,r){var i=r.a;r.a=r.b,r.b=i;var a=n.eq(t,r,u),o=t[a];t[a-1].upperIds=o.upperIds,t.splice(a,1)}e.exports=function(t,e){for(var r=t.length,n=e.length,i=[],l=0;l&lt;r;++l)i.push(new o(t[l],null,0,l));for(l=0;l&lt;n;++l){var u=e[l],p=t[u[0]],d=t[u[1]];p[0]&lt;d[0]?i.push(new o(p,d,2,l),new o(d,p,1,l)):p[0]&gt;d[0]&amp;&amp;i.push(new o(d,p,2,l),new o(p,d,1,l))}i.sort(s);for(var m=i[0].a[0]-(1+Math.abs(i[0].a[0]))*Math.pow(2,-52),g=[new a([m,1],[m,0],-1,[],[],[],[])],v=[],y=(l=0,i.length);l&lt;y;++l){var x=i[l],b=x.type;0===b?c(v,g,t,x.a,x.idx):2===b?f(g,t,x):h(g,t,x)}return v}},{&quot;binary-search-bounds&quot;:31,&quot;robust-orientation&quot;:284}],46:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;);function i(t,e){this.stars=t,this.edges=e}e.exports=function(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=[];return new i(r,e)};var a=i.prototype;function o(t,e,r){for(var n=1,i=t.length;n&lt;i;n+=2)if(t[n-1]===e&amp;&amp;t[n]===r)return t[n-1]=t[i-2],t[n]=t[i-1],void(t.length=i-2)}a.isConstraint=function(){var t=[0,0];function e(t,e){return t[0]-e[0]||t[1]-e[1]}return function(r,i){return t[0]=Math.min(r,i),t[1]=Math.max(r,i),n.eq(this.edges,t,e)&gt;=0}}(),a.removeTriangle=function(t,e,r){var n=this.stars;o(n[t],e,r),o(n[e],r,t),o(n[r],t,e)},a.addTriangle=function(t,e,r){var n=this.stars;n[t].push(e,r),n[e].push(r,t),n[r].push(t,e)},a.opposite=function(t,e){for(var r=this.stars[e],n=1,i=r.length;n&lt;i;n+=2)if(r[n]===t)return r[n-1];return-1},a.flip=function(t,e){var r=this.opposite(t,e),n=this.opposite(e,t);this.removeTriangle(t,e,r),this.removeTriangle(e,t,n),this.addTriangle(t,n,r),this.addTriangle(e,r,n)},a.edges=function(){for(var t=this.stars,e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;a+=2)e.push([i[a],i[a+1]]);return e},a.cells=function(){for(var t=this.stars,e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;a+=2){var s=i[a],l=i[a+1];r&lt;Math.min(s,l)&amp;&amp;e.push([r,s,l])}return e}},{&quot;binary-search-bounds&quot;:31}],47:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=1,r=1;r&lt;t.length;++r)for(var n=0;n&lt;r;++n)if(t[r]&lt;t[n])e=-e;else if(t[n]===t[r])return 0;return e}},{}],48:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;dup&quot;),i=t(&quot;robust-linear-solve&quot;);function a(t,e){for(var r=0,n=t.length,i=0;i&lt;n;++i)r+=t[i]*e[i];return r}function o(t){var e=t.length;if(0===e)return[];t[0].length;var r=n([t.length+1,t.length+1],1),o=n([t.length+1],1);r[e][e]=0;for(var s=0;s&lt;e;++s){for(var l=0;l&lt;=s;++l)r[l][s]=r[s][l]=2*a(t[s],t[l]);o[s]=a(t[s],t[s])}var c=i(r,o),u=0,f=c[e+1];for(s=0;s&lt;f.length;++s)u+=f[s];var h=new Array(e);for(s=0;s&lt;e;++s){f=c[s];var p=0;for(l=0;l&lt;f.length;++l)p+=f[l];h[s]=p/u}return h}function s(t){if(0===t.length)return[];for(var e=t[0].length,r=n([e]),i=o(t),a=0;a&lt;t.length;++a)for(var s=0;s&lt;e;++s)r[s]+=t[a][s]*i[a];return r}s.barycenetric=o,e.exports=s},{dup:65,&quot;robust-linear-solve&quot;:283}],49:[function(t,e,r){e.exports=function(t){for(var e=n(t),r=0,i=0;i&lt;t.length;++i)for(var a=t[i],o=0;o&lt;e.length;++o)r+=Math.pow(a[o]-e[o],2);return Math.sqrt(r/t.length)};var n=t(&quot;circumcenter&quot;)},{circumcenter:48}],50:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n;if(r){n=e;for(var i=new Array(e.length),a=0;a&lt;e.length;++a){var o=e[a];i[a]=[o[0],o[1],r[a]]}e=i}var s=function(t,e,r){var n=d(t,[],p(t));return v(e,n,r),!!n}(t,e,!!r);for(;y(t,e,!!r);)s=!0;if(r&amp;&amp;s){n.length=0,r.length=0;for(a=0;a&lt;e.length;++a){o=e[a];n.push([o[0],o[1]]),r.push(o[2])}}return s};var n=t(&quot;union-find&quot;),i=t(&quot;box-intersect&quot;),a=t(&quot;robust-segment-intersect&quot;),o=t(&quot;big-rat&quot;),s=t(&quot;big-rat/cmp&quot;),l=t(&quot;big-rat/to-float&quot;),c=t(&quot;rat-vec&quot;),u=t(&quot;nextafter&quot;),f=t(&quot;./lib/rat-seg-intersect&quot;);function h(t){var e=l(t);return[u(e,-1/0),u(e,1/0)]}function p(t){for(var e=new Array(t.length),r=0;r&lt;t.length;++r){var n=t[r];e[r]=[u(n[0],-1/0),u(n[1],-1/0),u(n[0],1/0),u(n[1],1/0)]}return e}function d(t,e,r){for(var a=e.length,o=new n(a),s=[],l=0;l&lt;e.length;++l){var c=e[l],f=h(c[0]),p=h(c[1]);s.push([u(f[0],-1/0),u(p[0],-1/0),u(f[1],1/0),u(p[1],1/0)])}i(s,(function(t,e){o.link(t,e)}));var d=!0,m=new Array(a);for(l=0;l&lt;a;++l){(v=o.find(l))!==l&amp;&amp;(d=!1,t[v]=[Math.min(t[l][0],t[v][0]),Math.min(t[l][1],t[v][1])])}if(d)return null;var g=0;for(l=0;l&lt;a;++l){var v;(v=o.find(l))===l?(m[l]=g,t[g++]=t[l]):m[l]=-1}t.length=g;for(l=0;l&lt;a;++l)m[l]&lt;0&amp;&amp;(m[l]=m[o.find(l)]);return m}function m(t,e){return t[0]-e[0]||t[1]-e[1]}function g(t,e){var r=t[0]-e[0]||t[1]-e[1];return r||(t[2]&lt;e[2]?-1:t[2]&gt;e[2]?1:0)}function v(t,e,r){if(0!==t.length){if(e)for(var n=0;n&lt;t.length;++n){var i=e[(o=t[n])[0]],a=e[o[1]];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}else for(n=0;n&lt;t.length;++n){var o;i=(o=t[n])[0],a=o[1];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}r?t.sort(g):t.sort(m);var s=1;for(n=1;n&lt;t.length;++n){var l=t[n-1],c=t[n];(c[0]!==l[0]||c[1]!==l[1]||r&amp;&amp;c[2]!==l[2])&amp;&amp;(t[s++]=c)}t.length=s}}function y(t,e,r){var n=function(t,e){for(var r=new Array(e.length),n=0;n&lt;e.length;++n){var i=e[n],a=t[i[0]],o=t[i[1]];r[n]=[u(Math.min(a[0],o[0]),-1/0),u(Math.min(a[1],o[1]),-1/0),u(Math.max(a[0],o[0]),1/0),u(Math.max(a[1],o[1]),1/0)]}return r}(t,e),h=function(t,e,r){var n=[];return i(r,(function(r,i){var o=e[r],s=e[i];if(o[0]!==s[0]&amp;&amp;o[0]!==s[1]&amp;&amp;o[1]!==s[0]&amp;&amp;o[1]!==s[1]){var l=t[o[0]],c=t[o[1]],u=t[s[0]],f=t[s[1]];a(l,c,u,f)&amp;&amp;n.push([r,i])}})),n}(t,e,n),m=p(t),g=function(t,e,r,n){var o=[];return i(r,n,(function(r,n){var i=e[r];if(i[0]!==n&amp;&amp;i[1]!==n){var s=t[n],l=t[i[0]],c=t[i[1]];a(l,c,s,s)&amp;&amp;o.push([r,n])}})),o}(t,e,n,m),y=d(t,function(t,e,r,n,i){var a,u,h=t.map((function(t){return[o(t[0]),o(t[1])]}));for(a=0;a&lt;r.length;++a){var p=r[a];u=p[0];var d=p[1],m=e[u],g=e[d],v=f(c(t[m[0]]),c(t[m[1]]),c(t[g[0]]),c(t[g[1]]));if(v){var y=t.length;t.push([l(v[0]),l(v[1])]),h.push(v),n.push([u,y],[d,y])}}for(n.sort((function(t,e){if(t[0]!==e[0])return t[0]-e[0];var r=h[t[1]],n=h[e[1]];return s(r[0],n[0])||s(r[1],n[1])})),a=n.length-1;a&gt;=0;--a){var x=e[u=(S=n[a])[0]],b=x[0],_=x[1],w=t[b],T=t[_];if((w[0]-T[0]||w[1]-T[1])&lt;0){var k=b;b=_,_=k}x[0]=b;var A,M=x[1]=S[1];for(i&amp;&amp;(A=x[2]);a&gt;0&amp;&amp;n[a-1][0]===u;){var S,E=(S=n[--a])[1];i?e.push([M,E,A]):e.push([M,E]),M=E}i?e.push([M,_,A]):e.push([M,_])}return h}(t,e,h,g,r));return v(e,y,r),!!y||(h.length&gt;0||g.length&gt;0)}},{&quot;./lib/rat-seg-intersect&quot;:51,&quot;big-rat&quot;:18,&quot;big-rat/cmp&quot;:16,&quot;big-rat/to-float&quot;:30,&quot;box-intersect&quot;:35,nextafter:260,&quot;rat-vec&quot;:273,&quot;robust-segment-intersect&quot;:287,&quot;union-find&quot;:309}],51:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var a=s(e,t),f=s(n,r),h=u(a,f);if(0===o(h))return null;var p=s(t,r),d=u(f,p),m=i(d,h),g=c(a,m);return l(t,g)};var n=t(&quot;big-rat/mul&quot;),i=t(&quot;big-rat/div&quot;),a=t(&quot;big-rat/sub&quot;),o=t(&quot;big-rat/sign&quot;),s=t(&quot;rat-vec/sub&quot;),l=t(&quot;rat-vec/add&quot;),c=t(&quot;rat-vec/muls&quot;);function u(t,e){return a(n(t[0],e[1]),n(t[1],e[0]))}},{&quot;big-rat/div&quot;:17,&quot;big-rat/mul&quot;:27,&quot;big-rat/sign&quot;:28,&quot;big-rat/sub&quot;:29,&quot;rat-vec/add&quot;:272,&quot;rat-vec/muls&quot;:274,&quot;rat-vec/sub&quot;:275}],52:[function(t,e,r){e.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],&quot;rainbow-soft&quot;:[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],&quot;freesurface-blue&quot;:[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],&quot;freesurface-red&quot;:[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],&quot;velocity-blue&quot;:[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],&quot;velocity-green&quot;:[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},{}],53:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./colorScale&quot;),i=t(&quot;lerp&quot;);function a(t){return[t[0]/255,t[1]/255,t[2]/255,t[3]]}function o(t){for(var e,r=&quot;#&quot;,n=0;n&lt;3;++n)r+=(&quot;00&quot;+(e=(e=t[n]).toString(16))).substr(e.length);return r}function s(t){return&quot;rgba(&quot;+t.join(&quot;,&quot;)+&quot;)&quot;}e.exports=function(t){var e,r,l,c,u,f,h,p,d,m;t||(t={});p=(t.nshades||72)-1,h=t.format||&quot;hex&quot;,(f=t.colormap)||(f=&quot;jet&quot;);if(&quot;string&quot;==typeof f){if(f=f.toLowerCase(),!n[f])throw Error(f+&quot; not a supported colorscale&quot;);u=n[f]}else{if(!Array.isArray(f))throw Error(&quot;unsupported colormap option&quot;,f);u=f.slice()}if(u.length&gt;p+1)throw new Error(f+&quot; map requires nshades to be at least size &quot;+u.length);d=Array.isArray(t.alpha)?2!==t.alpha.length?[1,1]:t.alpha.slice():&quot;number&quot;==typeof t.alpha?[t.alpha,t.alpha]:[1,1];e=u.map((function(t){return Math.round(t.index*p)})),d[0]=Math.min(Math.max(d[0],0),1),d[1]=Math.min(Math.max(d[1],0),1);var g=u.map((function(t,e){var r=u[e].index,n=u[e].rgb.slice();return 4===n.length&amp;&amp;n[3]&gt;=0&amp;&amp;n[3]&lt;=1||(n[3]=d[0]+(d[1]-d[0])*r),n})),v=[];for(m=0;m&lt;e.length-1;++m){c=e[m+1]-e[m],r=g[m],l=g[m+1];for(var y=0;y&lt;c;y++){var x=y/c;v.push([Math.round(i(r[0],l[0],x)),Math.round(i(r[1],l[1],x)),Math.round(i(r[2],l[2],x)),i(r[3],l[3],x)])}}v.push(u[u.length-1].rgb.concat(d[1])),&quot;hex&quot;===h?v=v.map(o):&quot;rgbaString&quot;===h?v=v.map(s):&quot;float&quot;===h&amp;&amp;(v=v.map(a));return v}},{&quot;./colorScale&quot;:52,lerp:240}],54:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a){var o=n(e,r,a);if(0===o){var s=i(n(t,e,r)),c=i(n(t,e,a));if(s===c){if(0===s){var u=l(t,e,r),f=l(t,e,a);return u===f?0:u?1:-1}return 0}return 0===c?s&gt;0||l(t,e,a)?-1:1:0===s?c&gt;0||l(t,e,r)?1:-1:i(c-s)}var h=n(t,e,r);return h&gt;0?o&gt;0&amp;&amp;n(t,e,a)&gt;0?1:-1:h&lt;0?o&gt;0||n(t,e,a)&gt;0?1:-1:n(t,e,a)&gt;0||l(t,e,r)?1:-1};var n=t(&quot;robust-orientation&quot;),i=t(&quot;signum&quot;),a=t(&quot;two-sum&quot;),o=t(&quot;robust-product&quot;),s=t(&quot;robust-sum&quot;);function l(t,e,r){var n=a(t[0],-e[0]),i=a(t[1],-e[1]),l=a(r[0],-e[0]),c=a(r[1],-e[1]),u=s(o(n,l),o(i,c));return u[u.length-1]&gt;=0}},{&quot;robust-orientation&quot;:284,&quot;robust-product&quot;:285,&quot;robust-sum&quot;:289,signum:55,&quot;two-sum&quot;:307}],55:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t&lt;0?-1:t&gt;0?1:0}},{}],56:[function(t,e,r){e.exports=function(t,e){var r=t.length,a=t.length-e.length;if(a)return a;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return t[0]+t[1]-e[0]-e[1]||n(t[0],t[1])-n(e[0],e[1]);case 3:var o=t[0]+t[1],s=e[0]+e[1];if(a=o+t[2]-(s+e[2]))return a;var l=n(t[0],t[1]),c=n(e[0],e[1]);return n(l,t[2])-n(c,e[2])||n(l+t[2],o)-n(c+e[2],s);case 4:var u=t[0],f=t[1],h=t[2],p=t[3],d=e[0],m=e[1],g=e[2],v=e[3];return u+f+h+p-(d+m+g+v)||n(u,f,h,p)-n(d,m,g,v,d)||n(u+f,u+h,u+p,f+h,f+p,h+p)-n(d+m,d+g,d+v,m+g,m+v,g+v)||n(u+f+h,u+f+p,u+h+p,f+h+p)-n(d+m+g,d+m+v,d+g+v,m+g+v);default:for(var y=t.slice().sort(i),x=e.slice().sort(i),b=0;b&lt;r;++b)if(a=y[b]-x[b])return a;return 0}};var n=Math.min;function i(t,e){return t-e}},{}],57:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;compare-cell&quot;),i=t(&quot;cell-orientation&quot;);e.exports=function(t,e){return n(t,e)||i(t)-i(e)}},{&quot;cell-orientation&quot;:47,&quot;compare-cell&quot;:56}],58:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/ch1d&quot;),i=t(&quot;./lib/ch2d&quot;),a=t(&quot;./lib/chnd&quot;);e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[[0]];var r=t[0].length;if(0===r)return[];if(1===r)return n(t);if(2===r)return i(t);return a(t,r)}},{&quot;./lib/ch1d&quot;:59,&quot;./lib/ch2d&quot;:60,&quot;./lib/chnd&quot;:61}],59:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=0,r=0,n=1;n&lt;t.length;++n)t[n][0]&lt;t[e][0]&amp;&amp;(e=n),t[n][0]&gt;t[r][0]&amp;&amp;(r=n);return e&lt;r?[[e],[r]]:e&gt;r?[[r],[e]]:[[e]]}},{}],60:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=n(t),r=e.length;if(r&lt;=2)return[];for(var i=new Array(r),a=e[r-1],o=0;o&lt;r;++o){var s=e[o];i[o]=[a,s],a=s}return i};var n=t(&quot;monotone-convex-hull-2d&quot;)},{&quot;monotone-convex-hull-2d&quot;:246}],61:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){try{return n(t,!0)}catch(o){var r=i(t);if(r.length&lt;=e)return[];var a=function(t,e){for(var r=t.length,n=new Array(r),i=0;i&lt;e.length;++i)n[i]=t[e[i]];var a=e.length;for(i=0;i&lt;r;++i)e.indexOf(i)&lt;0&amp;&amp;(n[a++]=t[i]);return n}(t,r);return function(t,e){for(var r=t.length,n=e.length,i=0;i&lt;r;++i)for(var a=t[i],o=0;o&lt;a.length;++o){var s=a[o];if(s&lt;n)a[o]=e[s];else{s-=n;for(var l=0;l&lt;n;++l)s&gt;=e[l]&amp;&amp;(s+=1);a[o]=s}}return t}(n(a,!0),r)}};var n=t(&quot;incremental-convex-hull&quot;),i=t(&quot;affine-hull&quot;)},{&quot;affine-hull&quot;:10,&quot;incremental-convex-hull&quot;:233}],62:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a){var o=i-1,s=i*i,l=o*o,c=(1+2*i)*l,u=i*l,f=s*(3-2*i),h=s*o;if(t.length){a||(a=new Array(t.length));for(var p=t.length-1;p&gt;=0;--p)a[p]=c*t[p]+u*e[p]+f*r[p]+h*n[p];return a}return c*t+u*e+f*r+h*n},e.exports.derivative=function(t,e,r,n,i,a){var o=6*i*i-6*i,s=3*i*i-4*i+1,l=-6*i*i+6*i,c=3*i*i-2*i;if(t.length){a||(a=new Array(t.length));for(var u=t.length-1;u&gt;=0;--u)a[u]=o*t[u]+s*e[u]+l*r[u]+c*n[u];return a}return o*t+s*e+l*r[u]+c*n}},{}],63:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;incremental-convex-hull&quot;),i=t(&quot;uniq&quot;);function a(t,e){this.point=t,this.index=e}function o(t,e){for(var r=t.point,n=e.point,i=r.length,a=0;a&lt;i;++a){var o=n[a]-r[a];if(o)return o}return 0}e.exports=function(t,e){var r=t.length;if(0===r)return[];var s=t[0].length;if(s&lt;1)return[];if(1===s)return function(t,e,r){if(1===t)return r?[[-1,0]]:[];var n=e.map((function(t,e){return[t[0],e]}));n.sort((function(t,e){return t[0]-e[0]}));for(var i=new Array(t-1),a=1;a&lt;t;++a){var o=n[a-1],s=n[a];i[a-1]=[o[1],s[1]]}r&amp;&amp;i.push([-1,i[0][1]],[i[t-1][1],-1]);return i}(r,t,e);for(var l=new Array(r),c=1,u=0;u&lt;r;++u){for(var f=t[u],h=new Array(s+1),p=0,d=0;d&lt;s;++d){var m=f[d];h[d]=m,p+=m*m}h[s]=p,l[u]=new a(h,u),c=Math.max(p,c)}i(l,o),r=l.length;var g=new Array(r+s+1),v=new Array(r+s+1),y=(s+1)*(s+1)*c,x=new Array(s+1);for(u=0;u&lt;=s;++u)x[u]=0;x[s]=y,g[0]=x.slice(),v[0]=-1;for(u=0;u&lt;=s;++u){(h=x.slice())[u]=1,g[u+1]=h,v[u+1]=-1}for(u=0;u&lt;r;++u){var b=l[u];g[u+s+1]=b.point,v[u+s+1]=b.index}var _=n(g,!1);_=e?_.filter((function(t){for(var e=0,r=0;r&lt;=s;++r){var n=v[t[r]];if(n&lt;0&amp;&amp;++e&gt;=2)return!1;t[r]=n}return!0})):_.filter((function(t){for(var e=0;e&lt;=s;++e){var r=v[t[e]];if(r&lt;0)return!1;t[e]=r}return!0}));if(1&amp;s)for(u=0;u&lt;_.length;++u){h=(b=_[u])[0];b[0]=b[1],b[1]=h}return _}},{&quot;incremental-convex-hull&quot;:233,uniq:310}],64:[function(t,e,r){(function(t){(function(){var r=!1;if(&quot;undefined&quot;!=typeof Float64Array){var n=new Float64Array(1),i=new Uint32Array(n.buffer);if(n[0]=1,r=!0,1072693248===i[1]){e.exports=function(t){return n[0]=t,[i[0],i[1]]},e.exports.pack=function(t,e){return i[0]=t,i[1]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[0]},e.exports.hi=function(t){return n[0]=t,i[1]}}else if(1072693248===i[0]){e.exports=function(t){return n[0]=t,[i[1],i[0]]},e.exports.pack=function(t,e){return i[1]=t,i[0]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[1]},e.exports.hi=function(t){return n[0]=t,i[0]}}else r=!1}if(!r){var a=new t(8);e.exports=function(t){return a.writeDoubleLE(t,0,!0),[a.readUInt32LE(0,!0),a.readUInt32LE(4,!0)]},e.exports.pack=function(t,e){return a.writeUInt32LE(t,0,!0),a.writeUInt32LE(e,4,!0),a.readDoubleLE(0,!0)},e.exports.lo=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(0,!0)},e.exports.hi=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(4,!0)}}e.exports.sign=function(t){return e.exports.hi(t)&gt;&gt;&gt;31},e.exports.exponent=function(t){return(e.exports.hi(t)&lt;&lt;1&gt;&gt;&gt;21)-1023},e.exports.fraction=function(t){var r=e.exports.lo(t),n=e.exports.hi(t),i=1048575&amp;n;return 2146435072&amp;n&amp;&amp;(i+=1&lt;&lt;20),[r,i]},e.exports.denormalized=function(t){return!(2146435072&amp;e.exports.hi(t))}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{buffer:3}],65:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){switch(void 0===e&amp;&amp;(e=0),typeof t){case&quot;number&quot;:if(t&gt;0)return function(t,e){var r,n;for(r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}(0|t,e);break;case&quot;object&quot;:if(&quot;number&quot;==typeof t.length)return function t(e,r,n){var i=0|e[n];if(i&lt;=0)return[];var a,o=new Array(i);if(n===e.length-1)for(a=0;a&lt;i;++a)o[a]=r;else for(a=0;a&lt;i;++a)o[a]=t(e,r,n+1);return o}(t,e,0)}return[]}},{}],66:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.length;if(&quot;number&quot;!=typeof e){e=0;for(var i=0;i&lt;r;++i){var a=t[i];e=Math.max(e,a[0],a[1])}e=1+(0|e)}e|=0;var o=new Array(e);for(i=0;i&lt;e;++i)o[i]=[];for(i=0;i&lt;r;++i){a=t[i];o[a[0]].push(a[1]),o[a[1]].push(a[0])}for(var s=0;s&lt;e;++s)n(o[s],(function(t,e){return t-e}));return o};var n=t(&quot;uniq&quot;)},{uniq:310}],67:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n=e||0,i=r||1;return[[t[12]+t[0],t[13]+t[1],t[14]+t[2],t[15]+t[3]],[t[12]-t[0],t[13]-t[1],t[14]-t[2],t[15]-t[3]],[t[12]+t[4],t[13]+t[5],t[14]+t[6],t[15]+t[7]],[t[12]-t[4],t[13]-t[5],t[14]-t[6],t[15]-t[7]],[n*t[12]+t[8],n*t[13]+t[9],n*t[14]+t[10],n*t[15]+t[11]],[i*t[12]-t[8],i*t[13]-t[9],i*t[14]-t[10],i*t[15]-t[11]]]}},{}],68:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){switch(arguments.length){case 0:return new o([0],[0],0);case 1:return&quot;number&quot;==typeof t?new o(n=l(t),n,0):new o(t,l(t.length),0);case 2:if(&quot;number&quot;==typeof e){var n=l(t.length);return new o(t,n,+e)}r=0;case 3:if(t.length!==e.length)throw new Error(&quot;state and velocity lengths must match&quot;);return new o(t,e,r)}};var n=t(&quot;cubic-hermite&quot;),i=t(&quot;binary-search-bounds&quot;);function a(t,e,r){return Math.min(e,Math.max(t,r))}function o(t,e,r){this.dimension=t.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var n=0;n&lt;this.dimension;++n)this.bounds[0][n]=-1/0,this.bounds[1][n]=1/0;this._state=t.slice().reverse(),this._velocity=e.slice().reverse(),this._time=[r],this._scratch=[t.slice(),t.slice(),t.slice(),t.slice(),t.slice()]}var s=o.prototype;function l(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=0;return e}s.flush=function(t){var e=i.gt(this._time,t)-1;e&lt;=0||(this._time.splice(0,e),this._state.splice(0,e*this.dimension),this._velocity.splice(0,e*this.dimension))},s.curve=function(t){var e=this._time,r=e.length,o=i.le(e,t),s=this._scratch[0],l=this._state,c=this._velocity,u=this.dimension,f=this.bounds;if(o&lt;0)for(var h=u-1,p=0;p&lt;u;++p,--h)s[p]=l[h];else if(o&gt;=r-1){h=l.length-1;var d=t-e[r-1];for(p=0;p&lt;u;++p,--h)s[p]=l[h]+d*c[h]}else{h=u*(o+1)-1;var m=e[o],g=e[o+1]-m||1,v=this._scratch[1],y=this._scratch[2],x=this._scratch[3],b=this._scratch[4],_=!0;for(p=0;p&lt;u;++p,--h)v[p]=l[h],x[p]=c[h]*g,y[p]=l[h+u],b[p]=c[h+u]*g,_=_&amp;&amp;v[p]===y[p]&amp;&amp;x[p]===b[p]&amp;&amp;0===x[p];if(_)for(p=0;p&lt;u;++p)s[p]=v[p];else n(v,x,y,b,(t-m)/g,s)}var w=f[0],T=f[1];for(p=0;p&lt;u;++p)s[p]=a(w[p],T[p],s[p]);return s},s.dcurve=function(t){var e=this._time,r=e.length,a=i.le(e,t),o=this._scratch[0],s=this._state,l=this._velocity,c=this.dimension;if(a&gt;=r-1)for(var u=s.length-1,f=(e[r-1],0);f&lt;c;++f,--u)o[f]=l[u];else{u=c*(a+1)-1;var h=e[a],p=e[a+1]-h||1,d=this._scratch[1],m=this._scratch[2],g=this._scratch[3],v=this._scratch[4],y=!0;for(f=0;f&lt;c;++f,--u)d[f]=s[u],g[f]=l[u]*p,m[f]=s[u+c],v[f]=l[u+c]*p,y=y&amp;&amp;d[f]===m[f]&amp;&amp;g[f]===v[f]&amp;&amp;0===g[f];if(y)for(f=0;f&lt;c;++f)o[f]=0;else{n.derivative(d,g,m,v,(t-h)/p,o);for(f=0;f&lt;c;++f)o[f]/=p}}return o},s.lastT=function(){var t=this._time;return t[t.length-1]},s.stable=function(){for(var t=this._velocity,e=t.length,r=this.dimension-1;r&gt;=0;--r)if(t[--e])return!1;return!0},s.jump=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1];this._time.push(e,t);for(var u=0;u&lt;2;++u)for(var f=0;f&lt;r;++f)n.push(n[o++]),i.push(0);this._time.push(t);for(f=r;f&gt;0;--f)n.push(a(l[f-1],c[f-1],arguments[f])),i.push(0)}},s.push=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=t-e,l=this.bounds,c=l[0],u=l[1],f=s&gt;1e-6?1/s:0;this._time.push(t);for(var h=r;h&gt;0;--h){var p=a(c[h-1],u[h-1],arguments[h]);n.push(p),i.push((p-n[o++])*f)}}},s.set=function(t){var e=this.dimension;if(!(t&lt;this.lastT()||arguments.length!==e+1)){var r=this._state,n=this._velocity,i=this.bounds,o=i[0],s=i[1];this._time.push(t);for(var l=e;l&gt;0;--l)r.push(a(o[l-1],s[l-1],arguments[l])),n.push(0)}},s.move=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;=e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1],u=t-e,f=u&gt;1e-6?1/u:0;this._time.push(t);for(var h=r;h&gt;0;--h){var p=arguments[h];n.push(a(l[h-1],c[h-1],n[o++]+p)),i.push(p*f)}}},s.idle=function(t){var e=this.lastT();if(!(t&lt;e)){var r=this.dimension,n=this._state,i=this._velocity,o=n.length-r,s=this.bounds,l=s[0],c=s[1],u=t-e;this._time.push(t);for(var f=r-1;f&gt;=0;--f)n.push(a(l[f],c[f],n[o]+u*i[o])),i.push(0),o+=1}}},{&quot;binary-search-bounds&quot;:31,&quot;cubic-hermite&quot;:62}],69:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return new s(t||m,null)};function n(t,e,r,n,i,a){this._color=t,this.key=e,this.value=r,this.left=n,this.right=i,this._count=a}function i(t){return new n(t._color,t.key,t.value,t.left,t.right,t._count)}function a(t,e){return new n(t,e.key,e.value,e.left,e.right,e._count)}function o(t){t._count=1+(t.left?t.left._count:0)+(t.right?t.right._count:0)}function s(t,e){this._compare=t,this.root=e}var l=s.prototype;function c(t,e){var r;if(e.left&amp;&amp;(r=c(t,e.left)))return r;return(r=t(e.key,e.value))||(e.right?c(t,e.right):void 0)}function u(t,e,r,n){if(e(t,n.key)&lt;=0){var i;if(n.left)if(i=u(t,e,r,n.left))return i;if(i=r(n.key,n.value))return i}if(n.right)return u(t,e,r,n.right)}function f(t,e,r,n,i){var a,o=r(t,i.key),s=r(e,i.key);if(o&lt;=0){if(i.left&amp;&amp;(a=f(t,e,r,n,i.left)))return a;if(s&gt;0&amp;&amp;(a=n(i.key,i.value)))return a}if(s&gt;0&amp;&amp;i.right)return f(t,e,r,n,i.right)}function h(t,e){this.tree=t,this._stack=e}Object.defineProperty(l,&quot;keys&quot;,{get:function(){var t=[];return this.forEach((function(e,r){t.push(e)})),t}}),Object.defineProperty(l,&quot;values&quot;,{get:function(){var t=[];return this.forEach((function(e,r){t.push(r)})),t}}),Object.defineProperty(l,&quot;length&quot;,{get:function(){return this.root?this.root._count:0}}),l.insert=function(t,e){for(var r=this._compare,i=this.root,l=[],c=[];i;){var u=r(t,i.key);l.push(i),c.push(u),i=u&lt;=0?i.left:i.right}l.push(new n(0,t,e,null,null,1));for(var f=l.length-2;f&gt;=0;--f){i=l[f];c[f]&lt;=0?l[f]=new n(i._color,i.key,i.value,l[f+1],i.right,i._count+1):l[f]=new n(i._color,i.key,i.value,i.left,l[f+1],i._count+1)}for(f=l.length-1;f&gt;1;--f){var h=l[f-1];i=l[f];if(1===h._color||1===i._color)break;var p=l[f-2];if(p.left===h)if(h.left===i){if(!(d=p.right)||0!==d._color){if(p._color=0,p.left=h.right,h._color=1,h.right=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f&gt;=3)(m=l[f-3]).left===p?m.left=h:m.right=h;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else{if(!(d=p.right)||0!==d._color){if(h.right=i.left,p._color=0,p.left=i.right,i._color=1,i.left=h,i.right=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f&gt;=3)(m=l[f-3]).left===p?m.left=i:m.right=i;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else if(h.right===i){if(!(d=p.left)||0!==d._color){if(p._color=0,p.right=h.left,h._color=1,h.left=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f&gt;=3)(m=l[f-3]).right===p?m.right=h:m.left=h;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}else{var d;if(!(d=p.left)||0!==d._color){var m;if(h.left=i.right,p._color=0,p.right=i.left,i._color=1,i.right=h,i.left=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f&gt;=3)(m=l[f-3]).right===p?m.right=i:m.left=i;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}}return l[0]._color=1,new s(r,l[0])},l.forEach=function(t,e,r){if(this.root)switch(arguments.length){case 1:return c(t,this.root);case 2:return u(e,this._compare,t,this.root);case 3:if(this._compare(e,r)&gt;=0)return;return f(e,r,this._compare,t,this.root)}},Object.defineProperty(l,&quot;begin&quot;,{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.left;return new h(this,t)}}),Object.defineProperty(l,&quot;end&quot;,{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.right;return new h(this,t)}}),l.at=function(t){if(t&lt;0)return new h(this,[]);for(var e=this.root,r=[];;){if(r.push(e),e.left){if(t&lt;e.left._count){e=e.left;continue}t-=e.left._count}if(!t)return new h(this,r);if(t-=1,!e.right)break;if(t&gt;=e.right._count)break;e=e.right}return new h(this,[])},l.ge=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&lt;=0&amp;&amp;(i=n.length),r=a&lt;=0?r.left:r.right}return n.length=i,new h(this,n)},l.gt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&lt;0&amp;&amp;(i=n.length),r=a&lt;0?r.left:r.right}return n.length=i,new h(this,n)},l.lt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&gt;0&amp;&amp;(i=n.length),r=a&lt;=0?r.left:r.right}return n.length=i,new h(this,n)},l.le=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&gt;=0&amp;&amp;(i=n.length),r=a&lt;0?r.left:r.right}return n.length=i,new h(this,n)},l.find=function(t){for(var e=this._compare,r=this.root,n=[];r;){var i=e(t,r.key);if(n.push(r),0===i)return new h(this,n);r=i&lt;=0?r.left:r.right}return new h(this,[])},l.remove=function(t){var e=this.find(t);return e?e.remove():this},l.get=function(t){for(var e=this._compare,r=this.root;r;){var n=e(t,r.key);if(0===n)return r.value;r=n&lt;=0?r.left:r.right}};var p=h.prototype;function d(t,e){t.key=e.key,t.value=e.value,t.left=e.left,t.right=e.right,t._color=e._color,t._count=e._count}function m(t,e){return t&lt;e?-1:t&gt;e?1:0}Object.defineProperty(p,&quot;valid&quot;,{get:function(){return this._stack.length&gt;0}}),Object.defineProperty(p,&quot;node&quot;,{get:function(){return this._stack.length&gt;0?this._stack[this._stack.length-1]:null},enumerable:!0}),p.clone=function(){return new h(this.tree,this._stack.slice())},p.remove=function(){var t=this._stack;if(0===t.length)return this.tree;var e=new Array(t.length),r=t[t.length-1];e[e.length-1]=new n(r._color,r.key,r.value,r.left,r.right,r._count);for(var l=t.length-2;l&gt;=0;--l){(r=t[l]).left===t[l+1]?e[l]=new n(r._color,r.key,r.value,e[l+1],r.right,r._count):e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count)}if((r=e[e.length-1]).left&amp;&amp;r.right){var c=e.length;for(r=r.left;r.right;)e.push(r),r=r.right;var u=e[c-1];e.push(new n(r._color,u.key,u.value,r.left,r.right,r._count)),e[c-1].key=r.key,e[c-1].value=r.value;for(l=e.length-2;l&gt;=c;--l)r=e[l],e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count);e[c-1].left=e[c]}if(0===(r=e[e.length-1])._color){var f=e[e.length-2];f.left===r?f.left=null:f.right===r&amp;&amp;(f.right=null),e.pop();for(l=0;l&lt;e.length;++l)e[l]._count--;return new s(this.tree._compare,e[0])}if(r.left||r.right){r.left?d(r,r.left):r.right&amp;&amp;d(r,r.right),r._color=1;for(l=0;l&lt;e.length-1;++l)e[l]._count--;return new s(this.tree._compare,e[0])}if(1===e.length)return new s(this.tree._compare,null);for(l=0;l&lt;e.length;++l)e[l]._count--;var h=e[e.length-2];return function(t){for(var e,r,n,s,l=t.length-1;l&gt;=0;--l){if(e=t[l],0===l)return void(e._color=1);if((r=t[l-1]).left===e){if((n=r.right).right&amp;&amp;0===n.right._color){if(s=(n=r.right=i(n)).right=i(n.right),r.right=n.left,n.left=r,n.right=s,n._color=r._color,e._color=1,r._color=1,s._color=1,o(r),o(n),l&gt;1)(c=t[l-2]).left===r?c.left=n:c.right=n;return void(t[l-1]=n)}if(n.left&amp;&amp;0===n.left._color){if(s=(n=r.right=i(n)).left=i(n.left),r.right=s.left,n.left=s.right,s.left=r,s.right=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l&gt;1)(c=t[l-2]).left===r?c.left=s:c.right=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.right=a(0,n));r.right=a(0,n);continue}n=i(n),r.right=n.left,n.left=r,n._color=r._color,r._color=0,o(r),o(n),l&gt;1&amp;&amp;((c=t[l-2]).left===r?c.left=n:c.right=n),t[l-1]=n,t[l]=r,l+1&lt;t.length?t[l+1]=e:t.push(e),l+=2}else{if((n=r.left).left&amp;&amp;0===n.left._color){if(s=(n=r.left=i(n)).left=i(n.left),r.left=n.right,n.right=r,n.left=s,n._color=r._color,e._color=1,r._color=1,s._color=1,o(r),o(n),l&gt;1)(c=t[l-2]).right===r?c.right=n:c.left=n;return void(t[l-1]=n)}if(n.right&amp;&amp;0===n.right._color){if(s=(n=r.left=i(n)).right=i(n.right),r.left=s.right,n.right=s.left,s.right=r,s.left=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l&gt;1)(c=t[l-2]).right===r?c.right=s:c.left=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.left=a(0,n));r.left=a(0,n);continue}var c;n=i(n),r.left=n.right,n.right=r,n._color=r._color,r._color=0,o(r),o(n),l&gt;1&amp;&amp;((c=t[l-2]).right===r?c.right=n:c.left=n),t[l-1]=n,t[l]=r,l+1&lt;t.length?t[l+1]=e:t.push(e),l+=2}}}(e),h.left===r?h.left=null:h.right=null,new s(this.tree._compare,e[0])},Object.defineProperty(p,&quot;key&quot;,{get:function(){if(this._stack.length&gt;0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(p,&quot;value&quot;,{get:function(){if(this._stack.length&gt;0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(p,&quot;index&quot;,{get:function(){var t=0,e=this._stack;if(0===e.length){var r=this.tree.root;return r?r._count:0}e[e.length-1].left&amp;&amp;(t=e[e.length-1].left._count);for(var n=e.length-2;n&gt;=0;--n)e[n+1]===e[n].right&amp;&amp;(++t,e[n].left&amp;&amp;(t+=e[n].left._count));return t},enumerable:!0}),p.next=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.right)for(e=e.right;e;)t.push(e),e=e.left;else for(t.pop();t.length&gt;0&amp;&amp;t[t.length-1].right===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,&quot;hasNext&quot;,{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].right)return!0;for(var e=t.length-1;e&gt;0;--e)if(t[e-1].left===t[e])return!0;return!1}}),p.update=function(t){var e=this._stack;if(0===e.length)throw new Error(&quot;Can't update empty node!&quot;);var r=new Array(e.length),i=e[e.length-1];r[r.length-1]=new n(i._color,i.key,t,i.left,i.right,i._count);for(var a=e.length-2;a&gt;=0;--a)(i=e[a]).left===e[a+1]?r[a]=new n(i._color,i.key,i.value,r[a+1],i.right,i._count):r[a]=new n(i._color,i.key,i.value,i.left,r[a+1],i._count);return new s(this.tree._compare,r[0])},p.prev=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.left)for(e=e.left;e;)t.push(e),e=e.right;else for(t.pop();t.length&gt;0&amp;&amp;t[t.length-1].left===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,&quot;hasPrev&quot;,{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].left)return!0;for(var e=t.length-1;e&gt;0;--e)if(t[e-1].right===t[e])return!0;return!1}})},{}],70:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=new u(t);return r.update(e),r};var n=t(&quot;./lib/text.js&quot;),i=t(&quot;./lib/lines.js&quot;),a=t(&quot;./lib/background.js&quot;),o=t(&quot;./lib/cube.js&quot;),s=t(&quot;./lib/ticks.js&quot;),l=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t){this.gl=t,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=[&quot;auto&quot;,&quot;auto&quot;,&quot;auto&quot;],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],this.labelEnable=[!0,!0,!0],this.labelFont=&quot;sans-serif&quot;,this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=[&quot;auto&quot;,&quot;auto&quot;,&quot;auto&quot;],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=a(t)}var f=u.prototype;function h(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}f.update=function(t){function e(e,r,n){if(n in t){var i,a=t[n],o=this[n];(e?Array.isArray(a)&amp;&amp;Array.isArray(a[0]):Array.isArray(a))?this[n]=i=[r(a[0]),r(a[1]),r(a[2])]:this[n]=i=[r(a),r(a),r(a)];for(var s=0;s&lt;3;++s)if(i[s]!==o[s])return!0}return!1}t=t||{};var r,a=e.bind(this,!1,Number),o=e.bind(this,!1,Boolean),l=e.bind(this,!1,String),c=e.bind(this,!0,(function(t){if(Array.isArray(t)){if(3===t.length)return[+t[0],+t[1],+t[2],1];if(4===t.length)return[+t[0],+t[1],+t[2],+t[3]]}return[0,0,0,1]})),u=!1,f=!1;if(&quot;bounds&quot;in t)for(var h=t.bounds,p=0;p&lt;2;++p)for(var d=0;d&lt;3;++d)h[p][d]!==this.bounds[p][d]&amp;&amp;(f=!0),this.bounds[p][d]=h[p][d];if(&quot;ticks&quot;in t){r=t.ticks,u=!0,this.autoTicks=!1;for(p=0;p&lt;3;++p)this.tickSpacing[p]=0}else a(&quot;tickSpacing&quot;)&amp;&amp;(this.autoTicks=!0,f=!0);if(this._firstInit&amp;&amp;(&quot;ticks&quot;in t||&quot;tickSpacing&quot;in t||(this.autoTicks=!0),f=!0,u=!0,this._firstInit=!1),f&amp;&amp;this.autoTicks&amp;&amp;(r=s.create(this.bounds,this.tickSpacing),u=!0),u){for(p=0;p&lt;3;++p)r[p].sort((function(t,e){return t.x-e.x}));s.equal(r,this.ticks)?u=!1:this.ticks=r}o(&quot;tickEnable&quot;),l(&quot;tickFont&quot;)&amp;&amp;(u=!0),a(&quot;tickSize&quot;),a(&quot;tickAngle&quot;),a(&quot;tickPad&quot;),c(&quot;tickColor&quot;);var m=l(&quot;labels&quot;);l(&quot;labelFont&quot;)&amp;&amp;(m=!0),o(&quot;labelEnable&quot;),a(&quot;labelSize&quot;),a(&quot;labelPad&quot;),c(&quot;labelColor&quot;),o(&quot;lineEnable&quot;),o(&quot;lineMirror&quot;),a(&quot;lineWidth&quot;),c(&quot;lineColor&quot;),o(&quot;lineTickEnable&quot;),o(&quot;lineTickMirror&quot;),a(&quot;lineTickLength&quot;),a(&quot;lineTickWidth&quot;),c(&quot;lineTickColor&quot;),o(&quot;gridEnable&quot;),a(&quot;gridWidth&quot;),c(&quot;gridColor&quot;),o(&quot;zeroEnable&quot;),c(&quot;zeroLineColor&quot;),a(&quot;zeroLineWidth&quot;),o(&quot;backgroundEnable&quot;),c(&quot;backgroundColor&quot;),this._text?this._text&amp;&amp;(m||u)&amp;&amp;this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=n(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&amp;&amp;u&amp;&amp;(this._lines.dispose(),this._lines=null),this._lines||(this._lines=i(this.gl,this.bounds,this.ticks))};var p=[new h,new h,new h];function d(t,e,r,n,i){for(var a=t.primalOffset,o=t.primalMinor,s=t.mirrorOffset,l=t.mirrorMinor,c=n[e],u=0;u&lt;3;++u)if(e!==u){var f=a,h=s,p=o,d=l;c&amp;1&lt;&lt;u&amp;&amp;(f=s,h=a,p=l,d=o),f[u]=r[0][u],h[u]=r[1][u],i[u]&gt;0?(p[u]=-1,d[u]=0):(p[u]=0,d[u]=1)}}var m=[0,0,0],g={model:l,view:l,projection:l,_ortho:!1};f.isOpaque=function(){return!0},f.isTransparent=function(){return!1},f.drawTransparent=function(t){};var v=[0,0,0],y=[0,0,0],x=[0,0,0];f.draw=function(t){t=t||g;for(var e=this.gl,r=t.model||l,n=t.view||l,i=t.projection||l,a=this.bounds,s=t._ortho||!1,u=o(r,n,i,a,s),f=u.cubeEdges,h=u.axis,b=n[12],_=n[13],w=n[14],T=n[15],k=(s?2:1)*this.pixelRatio*(i[3]*b+i[7]*_+i[11]*w+i[15]*T)/e.drawingBufferHeight,A=0;A&lt;3;++A)this.lastCubeProps.cubeEdges[A]=f[A],this.lastCubeProps.axis[A]=h[A];var M=p;for(A=0;A&lt;3;++A)d(p[A],A,this.bounds,f,h);e=this.gl;var S,E=m;for(A=0;A&lt;3;++A)this.backgroundEnable[A]?E[A]=h[A]:E[A]=0;this._background.draw(r,n,i,a,E,this.backgroundColor),this._lines.bind(r,n,i,this);for(A=0;A&lt;3;++A){var L=[0,0,0];h[A]&gt;0?L[A]=a[1][A]:L[A]=a[0][A];for(var C=0;C&lt;2;++C){var P=(A+1+C)%3,I=(A+1+(1^C))%3;this.gridEnable[P]&amp;&amp;this._lines.drawGrid(P,I,this.bounds,L,this.gridColor[P],this.gridWidth[P]*this.pixelRatio)}for(C=0;C&lt;2;++C){P=(A+1+C)%3,I=(A+1+(1^C))%3;this.zeroEnable[I]&amp;&amp;Math.min(a[0][I],a[1][I])&lt;=0&amp;&amp;Math.max(a[0][I],a[1][I])&gt;=0&amp;&amp;this._lines.drawZero(P,I,this.bounds,L,this.zeroLineColor[I],this.zeroLineWidth[I]*this.pixelRatio)}}for(A=0;A&lt;3;++A){this.lineEnable[A]&amp;&amp;this._lines.drawAxisLine(A,this.bounds,M[A].primalOffset,this.lineColor[A],this.lineWidth[A]*this.pixelRatio),this.lineMirror[A]&amp;&amp;this._lines.drawAxisLine(A,this.bounds,M[A].mirrorOffset,this.lineColor[A],this.lineWidth[A]*this.pixelRatio);var O=c(v,M[A].primalMinor),z=c(y,M[A].mirrorMinor),D=this.lineTickLength;for(C=0;C&lt;3;++C){var R=k/r[5*C];O[C]*=D[C]*R,z[C]*=D[C]*R}this.lineTickEnable[A]&amp;&amp;this._lines.drawAxisTicks(A,M[A].primalOffset,O,this.lineTickColor[A],this.lineTickWidth[A]*this.pixelRatio),this.lineTickMirror[A]&amp;&amp;this._lines.drawAxisTicks(A,M[A].mirrorOffset,z,this.lineTickColor[A],this.lineTickWidth[A]*this.pixelRatio)}this._lines.unbind(),this._text.bind(r,n,i,this.pixelRatio);var F,B;function N(t){(B=[0,0,0])[t]=1}function j(t,e,r){var n=(t+1)%3,i=(t+2)%3,a=e[n],o=e[i],s=r[n],l=r[i];a&gt;0&amp;&amp;l&gt;0||a&gt;0&amp;&amp;l&lt;0||a&lt;0&amp;&amp;l&gt;0||a&lt;0&amp;&amp;l&lt;0?N(n):(o&gt;0&amp;&amp;s&gt;0||o&gt;0&amp;&amp;s&lt;0||o&lt;0&amp;&amp;s&gt;0||o&lt;0&amp;&amp;s&lt;0)&amp;&amp;N(i)}for(A=0;A&lt;3;++A){var U=M[A].primalMinor,V=M[A].mirrorMinor,H=c(x,M[A].primalOffset);for(C=0;C&lt;3;++C)this.lineTickEnable[A]&amp;&amp;(H[C]+=k*U[C]*Math.max(this.lineTickLength[C],0)/r[5*C]);var q=[0,0,0];if(q[A]=1,this.tickEnable[A]){-3600===this.tickAngle[A]?(this.tickAngle[A]=0,this.tickAlign[A]=&quot;auto&quot;):this.tickAlign[A]=-1,F=1,&quot;auto&quot;===(S=[this.tickAlign[A],.5,F])[0]?S[0]=0:S[0]=parseInt(&quot;&quot;+S[0]),B=[0,0,0],j(A,U,V);for(C=0;C&lt;3;++C)H[C]+=k*U[C]*this.tickPad[C]/r[5*C];this._text.drawTicks(A,this.tickSize[A],this.tickAngle[A],H,this.tickColor[A],q,B,S)}if(this.labelEnable[A]){F=0,B=[0,0,0],this.labels[A].length&gt;4&amp;&amp;(N(A),F=1),&quot;auto&quot;===(S=[this.labelAlign[A],.5,F])[0]?S[0]=0:S[0]=parseInt(&quot;&quot;+S[0]);for(C=0;C&lt;3;++C)H[C]+=k*U[C]*this.labelPad[C]/r[5*C];H[A]+=.5*(a[0][A]+a[1][A]),this._text.drawLabel(A,this.labelSize[A],this.labelAngle[A],H,this.labelColor[A],[0,0,0],B,S)}}this._text.unbind()},f.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},{&quot;./lib/background.js&quot;:71,&quot;./lib/cube.js&quot;:72,&quot;./lib/lines.js&quot;:73,&quot;./lib/text.js&quot;:75,&quot;./lib/ticks.js&quot;:76}],71:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=[],r=[],s=0,l=0;l&lt;3;++l)for(var c=(l+1)%3,u=(l+2)%3,f=[0,0,0],h=[0,0,0],p=-1;p&lt;=1;p+=2){r.push(s,s+2,s+1,s+1,s+2,s+3),f[l]=p,h[l]=p;for(var d=-1;d&lt;=1;d+=2){f[c]=d;for(var m=-1;m&lt;=1;m+=2)f[u]=m,e.push(f[0],f[1],f[2],h[0],h[1],h[2]),s+=1}var g=c;c=u,u=g}var v=n(t,new Float32Array(e)),y=n(t,new Uint16Array(r),t.ELEMENT_ARRAY_BUFFER),x=i(t,[{buffer:v,type:t.FLOAT,size:3,offset:0,stride:24},{buffer:v,type:t.FLOAT,size:3,offset:12,stride:24}],y),b=a(t);return b.attributes.position.location=0,b.attributes.normal.location=1,new o(t,v,x,b)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders&quot;).bg;function o(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n}var s=o.prototype;s.draw=function(t,e,r,n,i,a){for(var o=!1,s=0;s&lt;3;++s)o=o||i[s];if(o){var l=this.gl;l.enable(l.POLYGON_OFFSET_FILL),l.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:t,view:e,projection:r,bounds:n,enable:i,colors:a},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),l.disable(l.POLYGON_OFFSET_FILL)}},s.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:74,&quot;gl-buffer&quot;:78,&quot;gl-vao&quot;:150}],72:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,p){i(s,e,t),i(s,r,s);for(var y=0,x=0;x&lt;2;++x){u[2]=a[x][2];for(var b=0;b&lt;2;++b){u[1]=a[b][1];for(var _=0;_&lt;2;++_)u[0]=a[_][0],h(l[y],u,s),y+=1}}var w=-1;for(x=0;x&lt;8;++x){for(var T=l[x][3],k=0;k&lt;3;++k)c[x][k]=l[x][k]/T;p&amp;&amp;(c[x][2]*=-1),T&lt;0&amp;&amp;(w&lt;0||c[x][2]&lt;c[w][2])&amp;&amp;(w=x)}if(w&lt;0){w=0;for(var A=0;A&lt;3;++A){for(var M=(A+2)%3,S=(A+1)%3,E=-1,L=-1,C=0;C&lt;2;++C){var P=(O=C&lt;&lt;A)+(C&lt;&lt;M)+(1-C&lt;&lt;S),I=O+(1-C&lt;&lt;M)+(C&lt;&lt;S);o(c[O],c[P],c[I],f)&lt;0||(C?E=1:L=1)}if(E&lt;0||L&lt;0)L&gt;E&amp;&amp;(w|=1&lt;&lt;A);else{for(C=0;C&lt;2;++C){P=(O=C&lt;&lt;A)+(C&lt;&lt;M)+(1-C&lt;&lt;S),I=O+(1-C&lt;&lt;M)+(C&lt;&lt;S);var O,z=d([l[O],l[P],l[I],l[O+(1&lt;&lt;M)+(1&lt;&lt;S)]]);C?E=z:L=z}L&gt;E&amp;&amp;(w|=1&lt;&lt;A)}}}var D=7^w,R=-1;for(x=0;x&lt;8;++x)x!==w&amp;&amp;x!==D&amp;&amp;(R&lt;0||c[R][1]&gt;c[x][1])&amp;&amp;(R=x);var F=-1;for(x=0;x&lt;3;++x){if((N=R^1&lt;&lt;x)!==w&amp;&amp;N!==D)F&lt;0&amp;&amp;(F=N),(S=c[N])[0]&lt;c[F][0]&amp;&amp;(F=N)}var B=-1;for(x=0;x&lt;3;++x){var N;if((N=R^1&lt;&lt;x)!==w&amp;&amp;N!==D&amp;&amp;N!==F)B&lt;0&amp;&amp;(B=N),(S=c[N])[0]&gt;c[B][0]&amp;&amp;(B=N)}var j=m;j[0]=j[1]=j[2]=0,j[n.log2(F^R)]=R&amp;F,j[n.log2(R^B)]=R&amp;B;var U=7^B;U===w||U===D?(U=7^F,j[n.log2(B^U)]=U&amp;B):j[n.log2(F^U)]=U&amp;F;var V=g,H=w;for(A=0;A&lt;3;++A)V[A]=H&amp;1&lt;&lt;A?-1:1;return v};var n=t(&quot;bit-twiddle&quot;),i=t(&quot;gl-mat4/multiply&quot;),a=t(&quot;split-polygon&quot;),o=t(&quot;robust-orientation&quot;),s=new Array(16),l=new Array(8),c=new Array(8),u=new Array(3),f=[0,0,0];function h(t,e,r){for(var n=0;n&lt;4;++n){t[n]=r[12+n];for(var i=0;i&lt;3;++i)t[n]+=e[i]*r[4*i+n]}}!function(){for(var t=0;t&lt;8;++t)l[t]=[1,1,1,1],c[t]=[1,1,1]}();var p=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function d(t){for(var e=0;e&lt;p.length;++e)if((t=a.positive(t,p[e])).length&lt;3)return 0;var r=t[0],n=r[0]/r[3],i=r[1]/r[3],o=0;for(e=1;e+1&lt;t.length;++e){var s=t[e],l=t[e+1],c=s[0]/s[3]-n,u=s[1]/s[3]-i,f=l[0]/l[3]-n,h=l[1]/l[3]-i;o+=Math.abs(c*h-u*f)}return o}var m=[1,1,1],g=[0,0,0],v={cubeEdges:m,axis:g}},{&quot;bit-twiddle&quot;:32,&quot;gl-mat4/multiply&quot;:100,&quot;robust-orientation&quot;:284,&quot;split-polygon&quot;:300}],73:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var o=[],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[0,0,0];o.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var f=0;f&lt;3;++f){for(var h=o.length/3|0,d=0;d&lt;r[f].length;++d){var m=+r[f][d].x;o.push(m,0,1,m,1,1,m,0,-1,m,0,-1,m,1,1,m,1,-1)}var g=o.length/3|0;s[f]=h,l[f]=g-h;h=o.length/3|0;for(var v=0;v&lt;r[f].length;++v){m=+r[f][v].x;o.push(m,0,1,m,1,1,m,0,-1,m,0,-1,m,1,1,m,1,-1)}g=o.length/3|0;c[f]=h,u[f]=g-h}var y=n(t,new Float32Array(o)),x=i(t,[{buffer:y,type:t.FLOAT,size:3,stride:0,offset:0}]),b=a(t);return b.attributes.position.location=0,new p(t,y,x,b,l,s,u,c)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders&quot;).line,o=[0,0,0],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[1,1];function f(t){return t[0]=t[1]=t[2]=0,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function p(t,e,r,n,i,a,o,s){this.gl=t,this.vertBuffer=e,this.vao=r,this.shader=n,this.tickCount=i,this.tickOffset=a,this.gridCount=o,this.gridOffset=s}var d=p.prototype;d.bind=function(t,e,r){this.shader.bind(),this.shader.uniforms.model=t,this.shader.uniforms.view=e,this.shader.uniforms.projection=r,u[0]=this.gl.drawingBufferWidth,u[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=u,this.vao.bind()},d.unbind=function(){this.vao.unbind()},d.drawAxisLine=function(t,e,r,n,i){var a=f(s);this.shader.uniforms.majorAxis=s,a[t]=e[1][t]-e[0][t],this.shader.uniforms.minorAxis=a;var o,u=h(c,r);u[t]+=e[0][t],this.shader.uniforms.offset=u,this.shader.uniforms.lineWidth=i,this.shader.uniforms.color=n,(o=f(l))[(t+2)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6),(o=f(l))[(t+1)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6)},d.drawAxisTicks=function(t,e,r,n,i){if(this.tickCount[t]){var a=f(o);a[t]=1,this.shader.uniforms.majorAxis=a,this.shader.uniforms.offset=e,this.shader.uniforms.minorAxis=r,this.shader.uniforms.color=n,this.shader.uniforms.lineWidth=i;var s=f(l);s[t]=1,this.shader.uniforms.screenAxis=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t])}},d.drawGrid=function(t,e,r,n,i,a){if(this.gridCount[t]){var u=f(s);u[e]=r[1][e]-r[0][e],this.shader.uniforms.minorAxis=u;var p=h(c,n);p[e]+=r[0][e],this.shader.uniforms.offset=p;var d=f(o);d[t]=1,this.shader.uniforms.majorAxis=d;var m=f(l);m[t]=1,this.shader.uniforms.screenAxis=m,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,this.gridCount[t],this.gridOffset[t])}},d.drawZero=function(t,e,r,n,i,a){var o=f(s);this.shader.uniforms.majorAxis=o,o[t]=r[1][t]-r[0][t],this.shader.uniforms.minorAxis=o;var u=h(c,n);u[t]+=r[0][t],this.shader.uniforms.offset=u;var p=f(l);p[e]=1,this.shader.uniforms.screenAxis=p,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,6)},d.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:74,&quot;gl-buffer&quot;:78,&quot;gl-vao&quot;:150}],74:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, majorAxis, minorAxis, screenAxis;\nuniform float lineWidth;\nuniform vec2 screenShape;\n\nvec3 project(vec3 p) {\n  vec4 pp = projection * view * model * vec4(p, 1.0);\n  return pp.xyz / max(pp.w, 0.0001);\n}\n\nvoid main() {\n  vec3 major = position.x * majorAxis;\n  vec3 minor = position.y * minorAxis;\n\n  vec3 vPosition = major + minor + offset;\n  vec3 pPosition = project(vPosition);\n  vec3 offset = project(vPosition + screenAxis * position.z);\n\n  vec2 screen = normalize((offset - pPosition).xy * screenShape) / screenShape;\n\n  gl_Position = vec4(pPosition + vec3(0.5 * screen * lineWidth, 0), 1.0);\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = color;\n}&quot;]);r.line=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;}])};var s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, axis, alignDir, alignOpt;\nuniform float scale, angle, pixelScale;\nuniform vec2 resolution;\n\nvec3 project(vec3 p) {\n  vec4 pp = projection * view * model * vec4(p, 1.0);\n  return pp.xyz / max(pp.w, 0.0001);\n}\n\nfloat computeViewAngle(vec3 a, vec3 b) {\n  vec3 A = project(a);\n  vec3 B = project(b);\n\n  return atan(\n    (B.y - A.y) * resolution.y,\n    (B.x - A.x) * resolution.x\n  );\n}\n\nconst float PI = 3.141592;\nconst float TWO_PI = 2.0 * PI;\nconst float HALF_PI = 0.5 * PI;\nconst float ONE_AND_HALF_PI = 1.5 * PI;\n\nint option = int(floor(alignOpt.x + 0.001));\nfloat hv_ratio =       alignOpt.y;\nbool enableAlign =    (alignOpt.z != 0.0);\n\nfloat mod_angle(float a) {\n  return mod(a, PI);\n}\n\nfloat positive_angle(float a) {\n  return mod_angle((a &lt; 0.0) ?\n    a + TWO_PI :\n    a\n  );\n}\n\nfloat look_upwards(float a) {\n  float b = positive_angle(a);\n  return ((b &gt; HALF_PI) &amp;&amp; (b &lt;= ONE_AND_HALF_PI)) ?\n    b - PI :\n    b;\n}\n\nfloat look_horizontal_or_vertical(float a, float ratio) {\n  // ratio controls the ratio between being horizontal to (vertical + horizontal)\n  // if ratio is set to 0.5 then it is 50%, 50%.\n  // when using a higher ratio e.g. 0.75 the result would\n  // likely be more horizontal than vertical.\n\n  float b = positive_angle(a);\n\n  return\n    (b &lt; (      ratio) * HALF_PI) ? 0.0 :\n    (b &lt; (2.0 - ratio) * HALF_PI) ? -HALF_PI :\n    (b &lt; (2.0 + ratio) * HALF_PI) ? 0.0 :\n    (b &lt; (4.0 - ratio) * HALF_PI) ? HALF_PI :\n                                    0.0;\n}\n\nfloat roundTo(float a, float b) {\n  return float(b * floor((a + 0.5 * b) / b));\n}\n\nfloat look_round_n_directions(float a, int n) {\n  float b = positive_angle(a);\n  float div = TWO_PI / float(n);\n  float c = roundTo(b, div);\n  return look_upwards(c);\n}\n\nfloat applyAlignOption(float rawAngle, float delta) {\n  return\n    (option &gt;  2) ? look_round_n_directions(rawAngle + delta, option) :       // option 3-n: round to n directions\n    (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\n    (option == 1) ? rawAngle + delta :       // use free angle, and flip to align with one direction of the axis\n    (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\n    (option ==-1) ? 0.0 :                    // useful for backward compatibility, all texts remains horizontal\n                    rawAngle;                // otherwise return back raw input angle\n}\n\nbool isAxisTitle = (axis.x == 0.0) &amp;&amp;\n                   (axis.y == 0.0) &amp;&amp;\n                   (axis.z == 0.0);\n\nvoid main() {\n  //Compute world offset\n  float axisDistance = position.z;\n  vec3 dataPosition = axisDistance * axis + offset;\n\n  float beta = angle; // i.e. user defined attributes for each tick\n\n  float axisAngle;\n  float clipAngle;\n  float flip;\n\n  if (enableAlign) {\n    axisAngle = (isAxisTitle) ? HALF_PI :\n                      computeViewAngle(dataPosition, dataPosition + axis);\n    clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\n\n    axisAngle += (sin(axisAngle) &lt; 0.0) ? PI : 0.0;\n    clipAngle += (sin(clipAngle) &lt; 0.0) ? PI : 0.0;\n\n    flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\n                vec2(sin(clipAngle),-cos(clipAngle))) &gt; 0.0) ? 1.0 : 0.0;\n\n    beta += applyAlignOption(clipAngle, flip * PI);\n  }\n\n  //Compute plane offset\n  vec2 planeCoord = position.xy * pixelScale;\n\n  mat2 planeXform = scale * mat2(\n     cos(beta), sin(beta),\n    -sin(beta), cos(beta)\n  );\n\n  vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\n\n  //Compute clip position\n  vec3 clipPosition = project(dataPosition);\n\n  //Apply text offset in clip coordinates\n  clipPosition += vec3(viewOffset, 0.0);\n\n  //Done\n  gl_Position = vec4(clipPosition, 1.0);\n}&quot;]),l=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = color;\n}&quot;]);r.text=function(t){return i(t,s,l,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;}])};var c=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec3 normal;\n\nuniform mat4 model, view, projection;\nuniform vec3 enable;\nuniform vec3 bounds[2];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n\n  vec3 signAxis = sign(bounds[1] - bounds[0]);\n\n  vec3 realNormal = signAxis * normal;\n\n  if(dot(realNormal, enable) &gt; 0.0) {\n    vec3 minRange = min(bounds[0], bounds[1]);\n    vec3 maxRange = max(bounds[0], bounds[1]);\n    vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\n    gl_Position = projection * view * model * vec4(nPosition, 1.0);\n  } else {\n    gl_Position = vec4(0,0,0,0);\n  }\n\n  colorChannel = abs(realNormal);\n}&quot;]),u=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 colors[3];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n  gl_FragColor = colorChannel.x * colors[0] +\n                 colorChannel.y * colors[1] +\n                 colorChannel.z * colors[2];\n}&quot;]);r.bg=function(t){return i(t,c,u,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}])}},{&quot;gl-shader&quot;:132,glslify:231}],75:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;e.exports=function(t,e,r,a,s,l){var u=n(t),f=i(t,[{buffer:u,size:3}]),h=o(t);h.attributes.position.location=0;var p=new c(t,h,u,f);return p.update(e,r,a,s,l),p};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;vectorize-text&quot;),o=t(&quot;./shaders&quot;).text,s=window||r.global||{},l=s.__TEXT_CACHE||{};s.__TEXT_CACHE={};function c(t,e,r,n){this.gl=t,this.shader=e,this.buffer=r,this.vao=n,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var u=c.prototype,f=[0,0];u.bind=function(t,e,r,n){this.vao.bind(),this.shader.bind();var i=this.shader.uniforms;i.model=t,i.view=e,i.projection=r,i.pixelScale=n,f[0]=this.gl.drawingBufferWidth,f[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=f},u.unbind=function(){this.vao.unbind()},u.update=function(t,e,r,n,i){var o=[];function s(t,e,r,n,i,s){var c=l[r];c||(c=l[r]={});var u=c[e];u||(u=c[e]=function(t,e){try{return a(t,e)}catch(e){return console.warn('error vectorizing text:&quot;'+t+'&quot; error:',e),{cells:[],positions:[]}}}(e,{triangles:!0,font:r,textAlign:&quot;center&quot;,textBaseline:&quot;middle&quot;,lineSpacing:i,styletags:s}));for(var f=(n||12)/12,h=u.positions,p=u.cells,d=0,m=p.length;d&lt;m;++d)for(var g=p[d],v=2;v&gt;=0;--v){var y=h[g[v]];o.push(f*y[0],-f*y[1],t)}}for(var c=[0,0,0],u=[0,0,0],f=[0,0,0],h=[0,0,0],p={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},d=0;d&lt;3;++d){f[d]=o.length/3|0,s(.5*(t[0][d]+t[1][d]),e[d],r[d],12,1.25,p),h[d]=(o.length/3|0)-f[d],c[d]=o.length/3|0;for(var m=0;m&lt;n[d].length;++m)n[d][m].text&amp;&amp;s(n[d][m].x,n[d][m].text,n[d][m].font||i,n[d][m].fontSize||12,1.25,p);u[d]=(o.length/3|0)-c[d]}this.buffer.update(o),this.tickOffset=c,this.tickCount=u,this.labelOffset=f,this.labelCount=h},u.drawTicks=function(t,e,r,n,i,a,o,s){this.tickCount[t]&amp;&amp;(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t]))},u.drawLabel=function(t,e,r,n,i,a,o,s){this.labelCount[t]&amp;&amp;(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.labelCount[t],this.labelOffset[t]))},u.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()}}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./shaders&quot;:74,_process:5,&quot;gl-buffer&quot;:78,&quot;gl-vao&quot;:150,&quot;vectorize-text&quot;:311}],76:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=t+&quot;&quot;,n=r.indexOf(&quot;.&quot;),i=0;n&gt;=0&amp;&amp;(i=r.length-n-1);var a=Math.pow(10,i),o=Math.round(t*e*a),s=o+&quot;&quot;;if(s.indexOf(&quot;e&quot;)&gt;=0)return s;var l=o/a,c=o%a;o&lt;0?(l=0|-Math.ceil(l),c=0|-c):(l=0|Math.floor(l),c|=0);var u=&quot;&quot;+l;if(o&lt;0&amp;&amp;(u=&quot;-&quot;+u),i){for(var f=&quot;&quot;+c;f.length&lt;i;)f=&quot;0&quot;+f;return u+&quot;.&quot;+f}return u}r.create=function(t,e){for(var r=[],i=0;i&lt;3;++i){for(var a=[],o=(t[0][i],t[1][i],0);o*e[i]&lt;=t[1][i];++o)a.push({x:o*e[i],text:n(e[i],o)});for(o=-1;o*e[i]&gt;=t[0][i];--o)a.push({x:o*e[i],text:n(e[i],o)});r.push(a)}return r},r.equal=function(t,e){for(var r=0;r&lt;3;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n&lt;t[r].length;++n){var i=t[r][n],a=e[r][n];if(i.x!==a.x||i.text!==a.text||i.font!==a.font||i.fontColor!==a.fontColor||i.fontSize!==a.fontSize||i.dx!==a.dx||i.dy!==a.dy)return!1}}return!0}},{}],77:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,l,f){var h=e.model||c,p=e.view||c,v=e.projection||c,y=e._ortho||!1,x=t.bounds,b=(f=f||a(h,p,v,x,y)).axis;o(u,p,h),o(u,v,u);for(var _=m,w=0;w&lt;3;++w)_[w].lo=1/0,_[w].hi=-1/0,_[w].pixelsPerDataUnit=1/0;var T=n(s(u,u));s(u,u);for(var k=0;k&lt;3;++k){var A=(k+1)%3,M=(k+2)%3,S=g;t:for(w=0;w&lt;2;++w){var E=[];if(b[k]&lt;0!=!!w){S[k]=x[w][k];for(var L=0;L&lt;2;++L){S[A]=x[L^w][A];for(var C=0;C&lt;2;++C)S[M]=x[C^L^w][M],E.push(S.slice())}var P=y?5:4;for(L=P;L===P;++L){if(0===E.length)continue t;E=i.positive(E,T[L])}for(L=0;L&lt;E.length;++L){M=E[L];var I=d(g,u,M,r,l);for(C=0;C&lt;3;++C)_[C].lo=Math.min(_[C].lo,M[C]),_[C].hi=Math.max(_[C].hi,M[C]),C!==k&amp;&amp;(_[C].pixelsPerDataUnit=Math.min(_[C].pixelsPerDataUnit,Math.abs(I[C])))}}}}return _};var n=t(&quot;extract-frustum-planes&quot;),i=t(&quot;split-polygon&quot;),a=t(&quot;./lib/cube.js&quot;),o=t(&quot;gl-mat4/multiply&quot;),s=t(&quot;gl-mat4/transpose&quot;),l=t(&quot;gl-vec4/transformMat4&quot;),c=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),u=new Float32Array(16);function f(t,e,r){this.lo=t,this.hi=e,this.pixelsPerDataUnit=r}var h=[0,0,0,1],p=[0,0,0,1];function d(t,e,r,n,i){for(var a=0;a&lt;3;++a){for(var o=h,s=p,c=0;c&lt;3;++c)s[c]=o[c]=r[c];s[3]=o[3]=1,s[a]+=1,l(s,s,e),s[3]&lt;0&amp;&amp;(t[a]=1/0),o[a]-=1,l(o,o,e),o[3]&lt;0&amp;&amp;(t[a]=1/0);var u=(o[0]/o[3]-s[0]/s[3])*n,f=(o[1]/o[3]-s[1]/s[3])*i;t[a]=.25*Math.sqrt(u*u+f*f)}return t}var m=[new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0)],g=[0,0,0]},{&quot;./lib/cube.js&quot;:72,&quot;extract-frustum-planes&quot;:67,&quot;gl-mat4/multiply&quot;:100,&quot;gl-mat4/transpose&quot;:109,&quot;gl-vec4/transformMat4&quot;:221,&quot;split-polygon&quot;:300}],78:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=t(&quot;ndarray-ops&quot;),a=t(&quot;ndarray&quot;),o=[&quot;uint8&quot;,&quot;uint8_clamped&quot;,&quot;uint16&quot;,&quot;uint32&quot;,&quot;int8&quot;,&quot;int16&quot;,&quot;int32&quot;,&quot;float32&quot;];function s(t,e,r,n,i){this.gl=t,this.type=e,this.handle=r,this.length=n,this.usage=i}var l=s.prototype;function c(t,e,r,n,i,a){var o=i.length*i.BYTES_PER_ELEMENT;if(a&lt;0)return t.bufferData(e,i,n),o;if(o+a&gt;r)throw new Error(&quot;gl-buffer: If resizing buffer, must not specify offset&quot;);return t.bufferSubData(e,a,i),r}function u(t,e){for(var r=n.malloc(t.length,e),i=t.length,a=0;a&lt;i;++a)r[a]=t[a];return r}l.bind=function(){this.gl.bindBuffer(this.type,this.handle)},l.unbind=function(){this.gl.bindBuffer(this.type,null)},l.dispose=function(){this.gl.deleteBuffer(this.handle)},l.update=function(t,e){if(&quot;number&quot;!=typeof e&amp;&amp;(e=-1),this.bind(),&quot;object&quot;==typeof t&amp;&amp;void 0!==t.shape){var r=t.dtype;if(o.indexOf(r)&lt;0&amp;&amp;(r=&quot;float32&quot;),this.type===this.gl.ELEMENT_ARRAY_BUFFER)r=gl.getExtension(&quot;OES_element_index_uint&quot;)&amp;&amp;&quot;uint16&quot;!==r?&quot;uint32&quot;:&quot;uint16&quot;;if(r===t.dtype&amp;&amp;function(t,e){for(var r=1,n=e.length-1;n&gt;=0;--n){if(e[n]!==r)return!1;r*=t[n]}return!0}(t.shape,t.stride))0===t.offset&amp;&amp;t.data.length===t.shape[0]?this.length=c(this.gl,this.type,this.length,this.usage,t.data,e):this.length=c(this.gl,this.type,this.length,this.usage,t.data.subarray(t.offset,t.shape[0]),e);else{var s=n.malloc(t.size,r),l=a(s,t.shape);i.assign(l,t),this.length=c(this.gl,this.type,this.length,this.usage,e&lt;0?s:s.subarray(0,t.size),e),n.free(s)}}else if(Array.isArray(t)){var f;f=this.type===this.gl.ELEMENT_ARRAY_BUFFER?u(t,&quot;uint16&quot;):u(t,&quot;float32&quot;),this.length=c(this.gl,this.type,this.length,this.usage,e&lt;0?f:f.subarray(0,t.length),e),n.free(f)}else if(&quot;object&quot;==typeof t&amp;&amp;&quot;number&quot;==typeof t.length)this.length=c(this.gl,this.type,this.length,this.usage,t,e);else{if(&quot;number&quot;!=typeof t&amp;&amp;void 0!==t)throw new Error(&quot;gl-buffer: Invalid data type&quot;);if(e&gt;=0)throw new Error(&quot;gl-buffer: Cannot specify offset when resizing buffer&quot;);(t|=0)&lt;=0&amp;&amp;(t=1),this.gl.bufferData(this.type,0|t,this.usage),this.length=t}},e.exports=function(t,e,r,n){if(r=r||t.ARRAY_BUFFER,n=n||t.DYNAMIC_DRAW,r!==t.ARRAY_BUFFER&amp;&amp;r!==t.ELEMENT_ARRAY_BUFFER)throw new Error(&quot;gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER&quot;);if(n!==t.DYNAMIC_DRAW&amp;&amp;n!==t.STATIC_DRAW&amp;&amp;n!==t.STREAM_DRAW)throw new Error(&quot;gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW&quot;);var i=t.createBuffer(),a=new s(t,r,i,0,n);return a.update(e),a}},{ndarray:259,&quot;ndarray-ops&quot;:254,&quot;typedarray-pool&quot;:308}],79:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-vec3&quot;);e.exports=function(t,e){var r=t.positions,i=t.vectors,a={positions:[],vertexIntensity:[],vertexIntensityBounds:t.vertexIntensityBounds,vectors:[],cells:[],coneOffset:t.coneOffset,colormap:t.colormap};if(0===t.positions.length)return e&amp;&amp;(e[0]=[0,0,0],e[1]=[0,0,0]),a;for(var o=0,s=1/0,l=-1/0,c=1/0,u=-1/0,f=1/0,h=-1/0,p=null,d=null,m=[],g=1/0,v=!1,y=0;y&lt;r.length;y++){var x=r[y];s=Math.min(x[0],s),l=Math.max(x[0],l),c=Math.min(x[1],c),u=Math.max(x[1],u),f=Math.min(x[2],f),h=Math.max(x[2],h);var b=i[y];if(n.length(b)&gt;o&amp;&amp;(o=n.length(b)),y){var _=2*n.distance(p,x)/(n.length(d)+n.length(b));_?(g=Math.min(g,_),v=!1):v=!0}v||(p=x,d=b),m.push(b)}var w=[s,c,f],T=[l,u,h];e&amp;&amp;(e[0]=w,e[1]=T),0===o&amp;&amp;(o=1);var k=1/o;isFinite(g)||(g=1),a.vectorScale=g;var A=t.coneSize||.5;t.absoluteConeSize&amp;&amp;(A=t.absoluteConeSize*k),a.coneScale=A;y=0;for(var M=0;y&lt;r.length;y++)for(var S=(x=r[y])[0],E=x[1],L=x[2],C=m[y],P=n.length(C)*k,I=0;I&lt;8;I++){a.positions.push([S,E,L,M++]),a.positions.push([S,E,L,M++]),a.positions.push([S,E,L,M++]),a.positions.push([S,E,L,M++]),a.positions.push([S,E,L,M++]),a.positions.push([S,E,L,M++]),a.vectors.push(C),a.vectors.push(C),a.vectors.push(C),a.vectors.push(C),a.vectors.push(C),a.vectors.push(C),a.vertexIntensity.push(P,P,P),a.vertexIntensity.push(P,P,P);var O=a.positions.length;a.cells.push([O-6,O-5,O-4],[O-3,O-2,O-1])}return a};var i=t(&quot;./lib/shaders&quot;);e.exports.createMesh=t(&quot;./create_mesh&quot;),e.exports.createConeMesh=function(t,r){return e.exports.createMesh(t,r,{shaders:i,traceType:&quot;cone&quot;})}},{&quot;./create_mesh&quot;:80,&quot;./lib/shaders&quot;:81,&quot;gl-vec3&quot;:169}],80:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;gl-mat4/multiply&quot;),l=t(&quot;gl-mat4/invert&quot;),c=t(&quot;ndarray&quot;),u=t(&quot;colormap&quot;),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e,r,n,i,a,o,s,l,c,u){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.pickShader=n,this.trianglePositions=i,this.triangleVectors=a,this.triangleColors=s,this.triangleUVs=l,this.triangleIds=o,this.triangleVAO=c,this.triangleCount=0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.traceType=u,this.tubeScale=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=f,this._view=f,this._projection=f,this._resolution=[1,1]}var p=h.prototype;function d(t,e){var r=n(t,e.meshShader.vertex,e.meshShader.fragment,null,e.meshShader.attributes);return r.attributes.position.location=0,r.attributes.color.location=2,r.attributes.uv.location=3,r.attributes.vector.location=4,r}function m(t,e){var r=n(t,e.pickShader.vertex,e.pickShader.fragment,null,e.pickShader.attributes);return r.attributes.position.location=0,r.attributes.id.location=1,r.attributes.vector.location=4,r}p.isOpaque=function(){return this.opacity&gt;=1},p.isTransparent=function(){return this.opacity&lt;1},p.pickSlots=1,p.setPickBase=function(t){this.pickId=t},p.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,&quot;lightPosition&quot;in t&amp;&amp;(this.lightPosition=t.lightPosition),&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity),&quot;ambient&quot;in t&amp;&amp;(this.ambientLight=t.ambient),&quot;diffuse&quot;in t&amp;&amp;(this.diffuseLight=t.diffuse),&quot;specular&quot;in t&amp;&amp;(this.specularLight=t.specular),&quot;roughness&quot;in t&amp;&amp;(this.roughness=t.roughness),&quot;fresnel&quot;in t&amp;&amp;(this.fresnel=t.fresnel),void 0!==t.tubeScale&amp;&amp;(this.tubeScale=t.tubeScale),void 0!==t.vectorScale&amp;&amp;(this.vectorScale=t.vectorScale),void 0!==t.coneScale&amp;&amp;(this.coneScale=t.coneScale),void 0!==t.coneOffset&amp;&amp;(this.coneOffset=t.coneOffset),t.colormap&amp;&amp;(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t){for(var e=u({colormap:t,nshades:256,format:&quot;rgba&quot;}),r=new Uint8Array(1024),n=0;n&lt;256;++n){for(var i=e[n],a=0;a&lt;3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return c(r,[256,256,4],[4,0,1])}(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions,i=t.vectors;if(n&amp;&amp;r&amp;&amp;i){var a=[],o=[],s=[],l=[],f=[];this.cells=r,this.positions=n,this.vectors=i;var h=t.meshColor||[1,1,1,1],p=t.vertexIntensity,d=1/0,m=-1/0;if(p)if(t.vertexIntensityBounds)d=+t.vertexIntensityBounds[0],m=+t.vertexIntensityBounds[1];else for(var g=0;g&lt;p.length;++g){var v=p[g];d=Math.min(d,v),m=Math.max(m,v)}else for(g=0;g&lt;n.length;++g){v=n[g][2];d=Math.min(d,v),m=Math.max(m,v)}this.intensity=p||function(t){for(var e=t.length,r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n][2];return r}(n),this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(g=0;g&lt;n.length;++g)for(var y=n[g],x=0;x&lt;3;++x)!isNaN(y[x])&amp;&amp;isFinite(y[x])&amp;&amp;(this.bounds[0][x]=Math.min(this.bounds[0][x],y[x]),this.bounds[1][x]=Math.max(this.bounds[1][x],y[x]));var b=0;t:for(g=0;g&lt;r.length;++g){var _=r[g];switch(_.length){case 3:for(x=0;x&lt;3;++x){y=n[T=_[x]];for(var w=0;w&lt;3;++w)if(isNaN(y[w])||!isFinite(y[w]))continue t}for(x=0;x&lt;3;++x){var T;y=n[T=_[2-x]];a.push(y[0],y[1],y[2],y[3]);var k=i[T];o.push(k[0],k[1],k[2],k[3]||0);var A,M=h;3===M.length?s.push(M[0],M[1],M[2],1):s.push(M[0],M[1],M[2],M[3]),A=p?[(p[T]-d)/(m-d),0]:[(y[2]-d)/(m-d),0],l.push(A[0],A[1]),f.push(g)}b+=1}}this.triangleCount=b,this.trianglePositions.update(a),this.triangleVectors.update(o),this.triangleColors.update(s),this.triangleUVs.update(l),this.triangleIds.update(new Uint32Array(f))}},p.drawTransparent=p.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var c={model:r,view:n,projection:i,inverseModel:f.slice(),clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,texture:0};c.inverseModel=l(c.inverseModel,c.model),e.disable(e.CULL_FACE),this.texture.bind(0);var u=new Array(16);s(u,c.view,c.model),s(u,c.projection,u),l(u,u);for(o=0;o&lt;3;++o)c.eyePosition[o]=u[12+o]/u[15];var h=u[15];for(o=0;o&lt;3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o&lt;3;++o){for(var p=u[12+o],d=0;d&lt;3;++d)p+=u[4*d+o]*this.lightPosition[d];c.lightPosition[o]=p/h}if(this.triangleCount&gt;0){var m=this.triShader;m.bind(),m.uniforms=c,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}},p.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s={model:r,view:n,projection:i,clipBounds:a,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},l=this.pickShader;l.bind(),l.uniforms=s,this.triangleCount&gt;0&amp;&amp;(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind())},p.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions[r[1]].slice(0,3),i={position:n,dataCoordinate:n,index:Math.floor(r[1]/48)};return&quot;cone&quot;===this.traceType?i.index=Math.floor(r[1]/48):&quot;streamtube&quot;===this.traceType&amp;&amp;(i.intensity=this.intensity[r[1]],i.velocity=this.vectors[r[1]].slice(0,3),i.divergence=this.vectors[r[1]][3],i.index=e),i},p.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()},e.exports=function(t,e,r){var n=r.shaders;1===arguments.length&amp;&amp;(t=(e=t).gl);var s=d(t,n),l=m(t,n),u=o(t,c(new Uint8Array([255,255,255,255]),[1,1,4]));u.generateMipmap(),u.minFilter=t.LINEAR_MIPMAP_LINEAR,u.magFilter=t.LINEAR;var f=i(t),p=i(t),g=i(t),v=i(t),y=i(t),x=a(t,[{buffer:f,type:t.FLOAT,size:4},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:g,type:t.FLOAT,size:4},{buffer:v,type:t.FLOAT,size:2},{buffer:p,type:t.FLOAT,size:4}]),b=new h(t,u,s,l,f,p,y,g,v,x,r.traceType||&quot;cone&quot;);return b.update(e),b}},{colormap:53,&quot;gl-buffer&quot;:78,&quot;gl-mat4/invert&quot;:98,&quot;gl-mat4/multiply&quot;:100,&quot;gl-shader&quot;:132,&quot;gl-texture2d&quot;:146,&quot;gl-vao&quot;:150,ndarray:259}],81:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n//   segment + 0 top vertex\n//   segment + 1 perimeter vertex a+1\n//   segment + 2 perimeter vertex a\n//   segment + 3 center base vertex\n//   segment + 4 perimeter vertex a\n//   segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n  const float segmentCount = 8.0;\n\n  float index = rawIndex - floor(rawIndex /\n    (segmentCount * 6.0)) *\n    (segmentCount * 6.0);\n\n  float segment = floor(0.001 + index/6.0);\n  float segmentIndex = index - (segment*6.0);\n\n  normal = -normalize(d);\n\n  if (segmentIndex &gt; 2.99 &amp;&amp; segmentIndex &lt; 3.01) {\n    return mix(vec3(0.0), -d, coneOffset);\n  }\n\n  float nextAngle = (\n    (segmentIndex &gt; 0.99 &amp;&amp;  segmentIndex &lt; 1.01) ||\n    (segmentIndex &gt; 4.99 &amp;&amp;  segmentIndex &lt; 5.01)\n  ) ? 1.0 : 0.0;\n  float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n  vec3 v1 = mix(d, vec3(0.0), coneOffset);\n  vec3 v2 = v1 - d;\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d)*0.25;\n  vec3 y = v * sin(angle) * length(d)*0.25;\n  vec3 v3 = v2 + x + y;\n  if (segmentIndex &lt; 3.0) {\n    vec3 tx = u * sin(angle);\n    vec3 ty = v * -cos(angle);\n    vec3 tangent = tx + ty;\n    normal = normalize(cross(v3 - v1, tangent));\n  }\n\n  if (segmentIndex == 0.0) {\n    return mix(d, vec3(0.0), coneOffset);\n  }\n  return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  // Scale the vector magnitude to stay constant with\n  // model &amp; view changes.\n  vec3 normal;\n  vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n  vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * conePosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  // vec4 m_position  = model * vec4(conePosition, 1.0);\n  vec4 t_position  = view * conePosition;\n  gl_Position      = projection * t_position;\n\n  f_color          = color;\n  f_data           = conePosition.xyz;\n  f_position       = position.xyz;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * opacity;\n}\n&quot;]),o=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n//   segment + 0 top vertex\n//   segment + 1 perimeter vertex a+1\n//   segment + 2 perimeter vertex a\n//   segment + 3 center base vertex\n//   segment + 4 perimeter vertex a\n//   segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n  const float segmentCount = 8.0;\n\n  float index = rawIndex - floor(rawIndex /\n    (segmentCount * 6.0)) *\n    (segmentCount * 6.0);\n\n  float segment = floor(0.001 + index/6.0);\n  float segmentIndex = index - (segment*6.0);\n\n  normal = -normalize(d);\n\n  if (segmentIndex &gt; 2.99 &amp;&amp; segmentIndex &lt; 3.01) {\n    return mix(vec3(0.0), -d, coneOffset);\n  }\n\n  float nextAngle = (\n    (segmentIndex &gt; 0.99 &amp;&amp;  segmentIndex &lt; 1.01) ||\n    (segmentIndex &gt; 4.99 &amp;&amp;  segmentIndex &lt; 5.01)\n  ) ? 1.0 : 0.0;\n  float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n  vec3 v1 = mix(d, vec3(0.0), coneOffset);\n  vec3 v2 = v1 - d;\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d)*0.25;\n  vec3 y = v * sin(angle) * length(d)*0.25;\n  vec3 v3 = v2 + x + y;\n  if (segmentIndex &lt; 3.0) {\n    vec3 tx = u * sin(angle);\n    vec3 ty = v * -cos(angle);\n    vec3 tangent = tx + ty;\n    normal = normalize(cross(v3 - v1, tangent));\n  }\n\n  if (segmentIndex == 0.0) {\n    return mix(d, vec3(0.0), coneOffset);\n  }\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float vectorScale, coneScale, coneOffset;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  vec3 normal;\n  vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);\n  vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n  gl_Position = projection * view * conePosition;\n  f_id        = id;\n  f_position  = position.xyz;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;vector&quot;,type:&quot;vec3&quot;}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;},{name:&quot;vector&quot;,type:&quot;vec3&quot;}]}},{glslify:231}],82:[function(t,e,r){e.exports={0:&quot;NONE&quot;,1:&quot;ONE&quot;,2:&quot;LINE_LOOP&quot;,3:&quot;LINE_STRIP&quot;,4:&quot;TRIANGLES&quot;,5:&quot;TRIANGLE_STRIP&quot;,6:&quot;TRIANGLE_FAN&quot;,256:&quot;DEPTH_BUFFER_BIT&quot;,512:&quot;NEVER&quot;,513:&quot;LESS&quot;,514:&quot;EQUAL&quot;,515:&quot;LEQUAL&quot;,516:&quot;GREATER&quot;,517:&quot;NOTEQUAL&quot;,518:&quot;GEQUAL&quot;,519:&quot;ALWAYS&quot;,768:&quot;SRC_COLOR&quot;,769:&quot;ONE_MINUS_SRC_COLOR&quot;,770:&quot;SRC_ALPHA&quot;,771:&quot;ONE_MINUS_SRC_ALPHA&quot;,772:&quot;DST_ALPHA&quot;,773:&quot;ONE_MINUS_DST_ALPHA&quot;,774:&quot;DST_COLOR&quot;,775:&quot;ONE_MINUS_DST_COLOR&quot;,776:&quot;SRC_ALPHA_SATURATE&quot;,1024:&quot;STENCIL_BUFFER_BIT&quot;,1028:&quot;FRONT&quot;,1029:&quot;BACK&quot;,1032:&quot;FRONT_AND_BACK&quot;,1280:&quot;INVALID_ENUM&quot;,1281:&quot;INVALID_VALUE&quot;,1282:&quot;INVALID_OPERATION&quot;,1285:&quot;OUT_OF_MEMORY&quot;,1286:&quot;INVALID_FRAMEBUFFER_OPERATION&quot;,2304:&quot;CW&quot;,2305:&quot;CCW&quot;,2849:&quot;LINE_WIDTH&quot;,2884:&quot;CULL_FACE&quot;,2885:&quot;CULL_FACE_MODE&quot;,2886:&quot;FRONT_FACE&quot;,2928:&quot;DEPTH_RANGE&quot;,2929:&quot;DEPTH_TEST&quot;,2930:&quot;DEPTH_WRITEMASK&quot;,2931:&quot;DEPTH_CLEAR_VALUE&quot;,2932:&quot;DEPTH_FUNC&quot;,2960:&quot;STENCIL_TEST&quot;,2961:&quot;STENCIL_CLEAR_VALUE&quot;,2962:&quot;STENCIL_FUNC&quot;,2963:&quot;STENCIL_VALUE_MASK&quot;,2964:&quot;STENCIL_FAIL&quot;,2965:&quot;STENCIL_PASS_DEPTH_FAIL&quot;,2966:&quot;STENCIL_PASS_DEPTH_PASS&quot;,2967:&quot;STENCIL_REF&quot;,2968:&quot;STENCIL_WRITEMASK&quot;,2978:&quot;VIEWPORT&quot;,3024:&quot;DITHER&quot;,3042:&quot;BLEND&quot;,3088:&quot;SCISSOR_BOX&quot;,3089:&quot;SCISSOR_TEST&quot;,3106:&quot;COLOR_CLEAR_VALUE&quot;,3107:&quot;COLOR_WRITEMASK&quot;,3317:&quot;UNPACK_ALIGNMENT&quot;,3333:&quot;PACK_ALIGNMENT&quot;,3379:&quot;MAX_TEXTURE_SIZE&quot;,3386:&quot;MAX_VIEWPORT_DIMS&quot;,3408:&quot;SUBPIXEL_BITS&quot;,3410:&quot;RED_BITS&quot;,3411:&quot;GREEN_BITS&quot;,3412:&quot;BLUE_BITS&quot;,3413:&quot;ALPHA_BITS&quot;,3414:&quot;DEPTH_BITS&quot;,3415:&quot;STENCIL_BITS&quot;,3553:&quot;TEXTURE_2D&quot;,4352:&quot;DONT_CARE&quot;,4353:&quot;FASTEST&quot;,4354:&quot;NICEST&quot;,5120:&quot;BYTE&quot;,5121:&quot;UNSIGNED_BYTE&quot;,5122:&quot;SHORT&quot;,5123:&quot;UNSIGNED_SHORT&quot;,5124:&quot;INT&quot;,5125:&quot;UNSIGNED_INT&quot;,5126:&quot;FLOAT&quot;,5386:&quot;INVERT&quot;,5890:&quot;TEXTURE&quot;,6401:&quot;STENCIL_INDEX&quot;,6402:&quot;DEPTH_COMPONENT&quot;,6406:&quot;ALPHA&quot;,6407:&quot;RGB&quot;,6408:&quot;RGBA&quot;,6409:&quot;LUMINANCE&quot;,6410:&quot;LUMINANCE_ALPHA&quot;,7680:&quot;KEEP&quot;,7681:&quot;REPLACE&quot;,7682:&quot;INCR&quot;,7683:&quot;DECR&quot;,7936:&quot;VENDOR&quot;,7937:&quot;RENDERER&quot;,7938:&quot;VERSION&quot;,9728:&quot;NEAREST&quot;,9729:&quot;LINEAR&quot;,9984:&quot;NEAREST_MIPMAP_NEAREST&quot;,9985:&quot;LINEAR_MIPMAP_NEAREST&quot;,9986:&quot;NEAREST_MIPMAP_LINEAR&quot;,9987:&quot;LINEAR_MIPMAP_LINEAR&quot;,10240:&quot;TEXTURE_MAG_FILTER&quot;,10241:&quot;TEXTURE_MIN_FILTER&quot;,10242:&quot;TEXTURE_WRAP_S&quot;,10243:&quot;TEXTURE_WRAP_T&quot;,10497:&quot;REPEAT&quot;,10752:&quot;POLYGON_OFFSET_UNITS&quot;,16384:&quot;COLOR_BUFFER_BIT&quot;,32769:&quot;CONSTANT_COLOR&quot;,32770:&quot;ONE_MINUS_CONSTANT_COLOR&quot;,32771:&quot;CONSTANT_ALPHA&quot;,32772:&quot;ONE_MINUS_CONSTANT_ALPHA&quot;,32773:&quot;BLEND_COLOR&quot;,32774:&quot;FUNC_ADD&quot;,32777:&quot;BLEND_EQUATION_RGB&quot;,32778:&quot;FUNC_SUBTRACT&quot;,32779:&quot;FUNC_REVERSE_SUBTRACT&quot;,32819:&quot;UNSIGNED_SHORT_4_4_4_4&quot;,32820:&quot;UNSIGNED_SHORT_5_5_5_1&quot;,32823:&quot;POLYGON_OFFSET_FILL&quot;,32824:&quot;POLYGON_OFFSET_FACTOR&quot;,32854:&quot;RGBA4&quot;,32855:&quot;RGB5_A1&quot;,32873:&quot;TEXTURE_BINDING_2D&quot;,32926:&quot;SAMPLE_ALPHA_TO_COVERAGE&quot;,32928:&quot;SAMPLE_COVERAGE&quot;,32936:&quot;SAMPLE_BUFFERS&quot;,32937:&quot;SAMPLES&quot;,32938:&quot;SAMPLE_COVERAGE_VALUE&quot;,32939:&quot;SAMPLE_COVERAGE_INVERT&quot;,32968:&quot;BLEND_DST_RGB&quot;,32969:&quot;BLEND_SRC_RGB&quot;,32970:&quot;BLEND_DST_ALPHA&quot;,32971:&quot;BLEND_SRC_ALPHA&quot;,33071:&quot;CLAMP_TO_EDGE&quot;,33170:&quot;GENERATE_MIPMAP_HINT&quot;,33189:&quot;DEPTH_COMPONENT16&quot;,33306:&quot;DEPTH_STENCIL_ATTACHMENT&quot;,33635:&quot;UNSIGNED_SHORT_5_6_5&quot;,33648:&quot;MIRRORED_REPEAT&quot;,33901:&quot;ALIASED_POINT_SIZE_RANGE&quot;,33902:&quot;ALIASED_LINE_WIDTH_RANGE&quot;,33984:&quot;TEXTURE0&quot;,33985:&quot;TEXTURE1&quot;,33986:&quot;TEXTURE2&quot;,33987:&quot;TEXTURE3&quot;,33988:&quot;TEXTURE4&quot;,33989:&quot;TEXTURE5&quot;,33990:&quot;TEXTURE6&quot;,33991:&quot;TEXTURE7&quot;,33992:&quot;TEXTURE8&quot;,33993:&quot;TEXTURE9&quot;,33994:&quot;TEXTURE10&quot;,33995:&quot;TEXTURE11&quot;,33996:&quot;TEXTURE12&quot;,33997:&quot;TEXTURE13&quot;,33998:&quot;TEXTURE14&quot;,33999:&quot;TEXTURE15&quot;,34e3:&quot;TEXTURE16&quot;,34001:&quot;TEXTURE17&quot;,34002:&quot;TEXTURE18&quot;,34003:&quot;TEXTURE19&quot;,34004:&quot;TEXTURE20&quot;,34005:&quot;TEXTURE21&quot;,34006:&quot;TEXTURE22&quot;,34007:&quot;TEXTURE23&quot;,34008:&quot;TEXTURE24&quot;,34009:&quot;TEXTURE25&quot;,34010:&quot;TEXTURE26&quot;,34011:&quot;TEXTURE27&quot;,34012:&quot;TEXTURE28&quot;,34013:&quot;TEXTURE29&quot;,34014:&quot;TEXTURE30&quot;,34015:&quot;TEXTURE31&quot;,34016:&quot;ACTIVE_TEXTURE&quot;,34024:&quot;MAX_RENDERBUFFER_SIZE&quot;,34041:&quot;DEPTH_STENCIL&quot;,34055:&quot;INCR_WRAP&quot;,34056:&quot;DECR_WRAP&quot;,34067:&quot;TEXTURE_CUBE_MAP&quot;,34068:&quot;TEXTURE_BINDING_CUBE_MAP&quot;,34069:&quot;TEXTURE_CUBE_MAP_POSITIVE_X&quot;,34070:&quot;TEXTURE_CUBE_MAP_NEGATIVE_X&quot;,34071:&quot;TEXTURE_CUBE_MAP_POSITIVE_Y&quot;,34072:&quot;TEXTURE_CUBE_MAP_NEGATIVE_Y&quot;,34073:&quot;TEXTURE_CUBE_MAP_POSITIVE_Z&quot;,34074:&quot;TEXTURE_CUBE_MAP_NEGATIVE_Z&quot;,34076:&quot;MAX_CUBE_MAP_TEXTURE_SIZE&quot;,34338:&quot;VERTEX_ATTRIB_ARRAY_ENABLED&quot;,34339:&quot;VERTEX_ATTRIB_ARRAY_SIZE&quot;,34340:&quot;VERTEX_ATTRIB_ARRAY_STRIDE&quot;,34341:&quot;VERTEX_ATTRIB_ARRAY_TYPE&quot;,34342:&quot;CURRENT_VERTEX_ATTRIB&quot;,34373:&quot;VERTEX_ATTRIB_ARRAY_POINTER&quot;,34466:&quot;NUM_COMPRESSED_TEXTURE_FORMATS&quot;,34467:&quot;COMPRESSED_TEXTURE_FORMATS&quot;,34660:&quot;BUFFER_SIZE&quot;,34661:&quot;BUFFER_USAGE&quot;,34816:&quot;STENCIL_BACK_FUNC&quot;,34817:&quot;STENCIL_BACK_FAIL&quot;,34818:&quot;STENCIL_BACK_PASS_DEPTH_FAIL&quot;,34819:&quot;STENCIL_BACK_PASS_DEPTH_PASS&quot;,34877:&quot;BLEND_EQUATION_ALPHA&quot;,34921:&quot;MAX_VERTEX_ATTRIBS&quot;,34922:&quot;VERTEX_ATTRIB_ARRAY_NORMALIZED&quot;,34930:&quot;MAX_TEXTURE_IMAGE_UNITS&quot;,34962:&quot;ARRAY_BUFFER&quot;,34963:&quot;ELEMENT_ARRAY_BUFFER&quot;,34964:&quot;ARRAY_BUFFER_BINDING&quot;,34965:&quot;ELEMENT_ARRAY_BUFFER_BINDING&quot;,34975:&quot;VERTEX_ATTRIB_ARRAY_BUFFER_BINDING&quot;,35040:&quot;STREAM_DRAW&quot;,35044:&quot;STATIC_DRAW&quot;,35048:&quot;DYNAMIC_DRAW&quot;,35632:&quot;FRAGMENT_SHADER&quot;,35633:&quot;VERTEX_SHADER&quot;,35660:&quot;MAX_VERTEX_TEXTURE_IMAGE_UNITS&quot;,35661:&quot;MAX_COMBINED_TEXTURE_IMAGE_UNITS&quot;,35663:&quot;SHADER_TYPE&quot;,35664:&quot;FLOAT_VEC2&quot;,35665:&quot;FLOAT_VEC3&quot;,35666:&quot;FLOAT_VEC4&quot;,35667:&quot;INT_VEC2&quot;,35668:&quot;INT_VEC3&quot;,35669:&quot;INT_VEC4&quot;,35670:&quot;BOOL&quot;,35671:&quot;BOOL_VEC2&quot;,35672:&quot;BOOL_VEC3&quot;,35673:&quot;BOOL_VEC4&quot;,35674:&quot;FLOAT_MAT2&quot;,35675:&quot;FLOAT_MAT3&quot;,35676:&quot;FLOAT_MAT4&quot;,35678:&quot;SAMPLER_2D&quot;,35680:&quot;SAMPLER_CUBE&quot;,35712:&quot;DELETE_STATUS&quot;,35713:&quot;COMPILE_STATUS&quot;,35714:&quot;LINK_STATUS&quot;,35715:&quot;VALIDATE_STATUS&quot;,35716:&quot;INFO_LOG_LENGTH&quot;,35717:&quot;ATTACHED_SHADERS&quot;,35718:&quot;ACTIVE_UNIFORMS&quot;,35719:&quot;ACTIVE_UNIFORM_MAX_LENGTH&quot;,35720:&quot;SHADER_SOURCE_LENGTH&quot;,35721:&quot;ACTIVE_ATTRIBUTES&quot;,35722:&quot;ACTIVE_ATTRIBUTE_MAX_LENGTH&quot;,35724:&quot;SHADING_LANGUAGE_VERSION&quot;,35725:&quot;CURRENT_PROGRAM&quot;,36003:&quot;STENCIL_BACK_REF&quot;,36004:&quot;STENCIL_BACK_VALUE_MASK&quot;,36005:&quot;STENCIL_BACK_WRITEMASK&quot;,36006:&quot;FRAMEBUFFER_BINDING&quot;,36007:&quot;RENDERBUFFER_BINDING&quot;,36048:&quot;FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE&quot;,36049:&quot;FRAMEBUFFER_ATTACHMENT_OBJECT_NAME&quot;,36050:&quot;FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL&quot;,36051:&quot;FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE&quot;,36053:&quot;FRAMEBUFFER_COMPLETE&quot;,36054:&quot;FRAMEBUFFER_INCOMPLETE_ATTACHMENT&quot;,36055:&quot;FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT&quot;,36057:&quot;FRAMEBUFFER_INCOMPLETE_DIMENSIONS&quot;,36061:&quot;FRAMEBUFFER_UNSUPPORTED&quot;,36064:&quot;COLOR_ATTACHMENT0&quot;,36096:&quot;DEPTH_ATTACHMENT&quot;,36128:&quot;STENCIL_ATTACHMENT&quot;,36160:&quot;FRAMEBUFFER&quot;,36161:&quot;RENDERBUFFER&quot;,36162:&quot;RENDERBUFFER_WIDTH&quot;,36163:&quot;RENDERBUFFER_HEIGHT&quot;,36164:&quot;RENDERBUFFER_INTERNAL_FORMAT&quot;,36168:&quot;STENCIL_INDEX8&quot;,36176:&quot;RENDERBUFFER_RED_SIZE&quot;,36177:&quot;RENDERBUFFER_GREEN_SIZE&quot;,36178:&quot;RENDERBUFFER_BLUE_SIZE&quot;,36179:&quot;RENDERBUFFER_ALPHA_SIZE&quot;,36180:&quot;RENDERBUFFER_DEPTH_SIZE&quot;,36181:&quot;RENDERBUFFER_STENCIL_SIZE&quot;,36194:&quot;RGB565&quot;,36336:&quot;LOW_FLOAT&quot;,36337:&quot;MEDIUM_FLOAT&quot;,36338:&quot;HIGH_FLOAT&quot;,36339:&quot;LOW_INT&quot;,36340:&quot;MEDIUM_INT&quot;,36341:&quot;HIGH_INT&quot;,36346:&quot;SHADER_COMPILER&quot;,36347:&quot;MAX_VERTEX_UNIFORM_VECTORS&quot;,36348:&quot;MAX_VARYING_VECTORS&quot;,36349:&quot;MAX_FRAGMENT_UNIFORM_VECTORS&quot;,37440:&quot;UNPACK_FLIP_Y_WEBGL&quot;,37441:&quot;UNPACK_PREMULTIPLY_ALPHA_WEBGL&quot;,37442:&quot;CONTEXT_LOST_WEBGL&quot;,37443:&quot;UNPACK_COLORSPACE_CONVERSION_WEBGL&quot;,37444:&quot;BROWSER_DEFAULT_WEBGL&quot;}},{}],83:[function(t,e,r){var n=t(&quot;./1.0/numbers&quot;);e.exports=function(t){return n[t]}},{&quot;./1.0/numbers&quot;:82}],84:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),o=i(e,[{buffer:r,type:e.FLOAT,size:3,offset:0,stride:40},{buffer:r,type:e.FLOAT,size:4,offset:12,stride:40},{buffer:r,type:e.FLOAT,size:3,offset:28,stride:40}]),l=a(e);l.attributes.position.location=0,l.attributes.color.location=1,l.attributes.offset.location=2;var c=new s(e,r,o,l);return c.update(t),c};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders/index&quot;),o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.shader=n,this.buffer=e,this.vao=r,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var l=s.prototype;function c(t,e){for(var r=0;r&lt;3;++r)t[0][r]=Math.min(t[0][r],e[r]),t[1][r]=Math.max(t[1][r],e[r])}l.isOpaque=function(){return!this.hasAlpha},l.isTransparent=function(){return this.hasAlpha},l.drawTransparent=l.draw=function(t){var e=this.gl,r=this.shader.uniforms;this.shader.bind();var n=r.view=t.view||o,i=r.projection=t.projection||o;r.model=t.model||o,r.clipBounds=this.clipBounds,r.opacity=this.opacity;var a=n[12],s=n[13],l=n[14],c=n[15],u=(t._ortho||!1?2:1)*this.pixelRatio*(i[3]*a+i[7]*s+i[11]*l+i[15]*c)/e.drawingBufferHeight;this.vao.bind();for(var f=0;f&lt;3;++f)e.lineWidth(this.lineWidth[f]*this.pixelRatio),r.capSize=this.capSize[f]*u,this.lineCount[f]&amp;&amp;e.drawArrays(e.LINES,this.lineOffset[f],this.lineCount[f]);this.vao.unbind()};var u=function(){for(var t=new Array(3),e=0;e&lt;3;++e){for(var r=[],n=1;n&lt;=2;++n)for(var i=-1;i&lt;=1;i+=2){var a=[0,0,0];a[(n+e)%3]=i,r.push(a)}t[e]=r}return t}();function f(t,e,r,n){for(var i=u[n],a=0;a&lt;i.length;++a){var o=i[a];t.push(e[0],e[1],e[2],r[0],r[1],r[2],r[3],o[0],o[1],o[2])}return i.length}l.update=function(t){&quot;lineWidth&quot;in(t=t||{})&amp;&amp;(this.lineWidth=t.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),&quot;capSize&quot;in t&amp;&amp;(this.capSize=t.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=+t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0));var e=t.color||[[0,0,0],[0,0,0],[0,0,0]],r=t.position,n=t.error;if(Array.isArray(e[0])||(e=[e,e,e]),r&amp;&amp;n){var i=[],a=r.length,o=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var s=0;s&lt;3;++s){this.lineOffset[s]=o;t:for(var l=0;l&lt;a;++l){for(var u=r[l],h=0;h&lt;3;++h)if(isNaN(u[h])||!isFinite(u[h]))continue t;var p=n[l],d=e[s];if(Array.isArray(d[0])&amp;&amp;(d=e[l]),3===d.length?d=[d[0],d[1],d[2],1]:4===d.length&amp;&amp;(d=[d[0],d[1],d[2],d[3]],!this.hasAlpha&amp;&amp;d[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),!isNaN(p[0][s])&amp;&amp;!isNaN(p[1][s])){var m;if(p[0][s]&lt;0)(m=u.slice())[s]+=p[0][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,m[0],m[1],m[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,m),o+=2+f(i,m,d,s);if(p[1][s]&gt;0)(m=u.slice())[s]+=p[1][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,m[0],m[1],m[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,m),o+=2+f(i,m,d,s)}}this.lineCount[s]=o-this.lineOffset[s]}this.buffer.update(i)}},l.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},{&quot;./shaders/index&quot;:85,&quot;gl-buffer&quot;:78,&quot;gl-vao&quot;:150}],85:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, offset;\nattribute vec4 color;\nuniform mat4 model, view, projection;\nuniform float capSize;\nvarying vec4 fragColor;\nvarying vec3 fragPosition;\n\nvoid main() {\n  vec4 worldPosition  = model * vec4(position, 1.0);\n  worldPosition       = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\n  gl_Position         = projection * view * worldPosition;\n  fragColor           = color;\n  fragPosition        = position;\n}&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float opacity;\nvarying vec3 fragPosition;\nvarying vec4 fragColor;\n\nvoid main() {\n  if (\n    outOfRange(clipBounds[0], clipBounds[1], fragPosition) ||\n    fragColor.a * opacity == 0.\n  ) discard;\n\n  gl_FragColor = opacity * fragColor;\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;offset&quot;,type:&quot;vec3&quot;}])}},{&quot;gl-shader&quot;:132,glslify:231}],86:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-texture2d&quot;);e.exports=function(t,e,r,n){i||(i=t.FRAMEBUFFER_UNSUPPORTED,a=t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,o=t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,s=t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var c=t.getExtension(&quot;WEBGL_draw_buffers&quot;);!l&amp;&amp;c&amp;&amp;function(t,e){var r=t.getParameter(e.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(r+1);for(var n=0;n&lt;=r;++n){for(var i=new Array(r),a=0;a&lt;n;++a)i[a]=t.COLOR_ATTACHMENT0+a;for(a=n;a&lt;r;++a)i[a]=t.NONE;l[n]=i}}(t,c);Array.isArray(e)&amp;&amp;(n=r,r=0|e[1],e=0|e[0]);if(&quot;number&quot;!=typeof e)throw new Error(&quot;gl-fbo: Missing shape parameter&quot;);var u=t.getParameter(t.MAX_RENDERBUFFER_SIZE);if(e&lt;0||e&gt;u||r&lt;0||r&gt;u)throw new Error(&quot;gl-fbo: Parameters are too large for FBO&quot;);var f=1;if(&quot;color&quot;in(n=n||{})){if((f=Math.max(0|n.color,0))&lt;0)throw new Error(&quot;gl-fbo: Must specify a nonnegative number of colors&quot;);if(f&gt;1){if(!c)throw new Error(&quot;gl-fbo: Multiple draw buffer extension not supported&quot;);if(f&gt;t.getParameter(c.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error(&quot;gl-fbo: Context does not support &quot;+f+&quot; draw buffers&quot;)}}var h=t.UNSIGNED_BYTE,p=t.getExtension(&quot;OES_texture_float&quot;);if(n.float&amp;&amp;f&gt;0){if(!p)throw new Error(&quot;gl-fbo: Context does not support floating point textures&quot;);h=t.FLOAT}else n.preferFloat&amp;&amp;f&gt;0&amp;&amp;p&amp;&amp;(h=t.FLOAT);var m=!0;&quot;depth&quot;in n&amp;&amp;(m=!!n.depth);var g=!1;&quot;stencil&quot;in n&amp;&amp;(g=!!n.stencil);return new d(t,e,r,h,f,m,g,c)};var i,a,o,s,l=null;function c(t){return[t.getParameter(t.FRAMEBUFFER_BINDING),t.getParameter(t.RENDERBUFFER_BINDING),t.getParameter(t.TEXTURE_BINDING_2D)]}function u(t,e){t.bindFramebuffer(t.FRAMEBUFFER,e[0]),t.bindRenderbuffer(t.RENDERBUFFER,e[1]),t.bindTexture(t.TEXTURE_2D,e[2])}function f(t){switch(t){case i:throw new Error(&quot;gl-fbo: Framebuffer unsupported&quot;);case a:throw new Error(&quot;gl-fbo: Framebuffer incomplete attachment&quot;);case o:throw new Error(&quot;gl-fbo: Framebuffer incomplete dimensions&quot;);case s:throw new Error(&quot;gl-fbo: Framebuffer incomplete missing attachment&quot;);default:throw new Error(&quot;gl-fbo: Framebuffer failed for unspecified reason&quot;)}}function h(t,e,r,i,a,o){if(!i)return null;var s=n(t,e,r,a,i);return s.magFilter=t.NEAREST,s.minFilter=t.NEAREST,s.mipSamples=1,s.bind(),t.framebufferTexture2D(t.FRAMEBUFFER,o,t.TEXTURE_2D,s.handle,0),s}function p(t,e,r,n,i){var a=t.createRenderbuffer();return t.bindRenderbuffer(t.RENDERBUFFER,a),t.renderbufferStorage(t.RENDERBUFFER,n,e,r),t.framebufferRenderbuffer(t.FRAMEBUFFER,i,t.RENDERBUFFER,a),a}function d(t,e,r,n,i,a,o,s){this.gl=t,this._shape=[0|e,0|r],this._destroyed=!1,this._ext=s,this.color=new Array(i);for(var d=0;d&lt;i;++d)this.color[d]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=n,this._useDepth=a,this._useStencil=o;var m=this,g=[0|e,0|r];Object.defineProperties(g,{0:{get:function(){return m._shape[0]},set:function(t){return m.width=t}},1:{get:function(){return m._shape[1]},set:function(t){return m.height=t}}}),this._shapeVector=g,function(t){var e=c(t.gl),r=t.gl,n=t.handle=r.createFramebuffer(),i=t._shape[0],a=t._shape[1],o=t.color.length,s=t._ext,d=t._useStencil,m=t._useDepth,g=t._colorType;r.bindFramebuffer(r.FRAMEBUFFER,n);for(var v=0;v&lt;o;++v)t.color[v]=h(r,i,a,g,r.RGBA,r.COLOR_ATTACHMENT0+v);0===o?(t._color_rb=p(r,i,a,r.RGBA4,r.COLOR_ATTACHMENT0),s&amp;&amp;s.drawBuffersWEBGL(l[0])):o&gt;1&amp;&amp;s.drawBuffersWEBGL(l[o]);var y=r.getExtension(&quot;WEBGL_depth_texture&quot;);y?d?t.depth=h(r,i,a,y.UNSIGNED_INT_24_8_WEBGL,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):m&amp;&amp;(t.depth=h(r,i,a,r.UNSIGNED_SHORT,r.DEPTH_COMPONENT,r.DEPTH_ATTACHMENT)):m&amp;&amp;d?t._depth_rb=p(r,i,a,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):m?t._depth_rb=p(r,i,a,r.DEPTH_COMPONENT16,r.DEPTH_ATTACHMENT):d&amp;&amp;(t._depth_rb=p(r,i,a,r.STENCIL_INDEX,r.STENCIL_ATTACHMENT));var x=r.checkFramebufferStatus(r.FRAMEBUFFER);if(x!==r.FRAMEBUFFER_COMPLETE){t._destroyed=!0,r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(t.handle),t.handle=null,t.depth&amp;&amp;(t.depth.dispose(),t.depth=null),t._depth_rb&amp;&amp;(r.deleteRenderbuffer(t._depth_rb),t._depth_rb=null);for(v=0;v&lt;t.color.length;++v)t.color[v].dispose(),t.color[v]=null;t._color_rb&amp;&amp;(r.deleteRenderbuffer(t._color_rb),t._color_rb=null),u(r,e),f(x)}u(r,e)}(this)}var m=d.prototype;function g(t,e,r){if(t._destroyed)throw new Error(&quot;gl-fbo: Can't resize destroyed FBO&quot;);if(t._shape[0]!==e||t._shape[1]!==r){var n=t.gl,i=n.getParameter(n.MAX_RENDERBUFFER_SIZE);if(e&lt;0||e&gt;i||r&lt;0||r&gt;i)throw new Error(&quot;gl-fbo: Can't resize FBO, invalid dimensions&quot;);t._shape[0]=e,t._shape[1]=r;for(var a=c(n),o=0;o&lt;t.color.length;++o)t.color[o].shape=t._shape;t._color_rb&amp;&amp;(n.bindRenderbuffer(n.RENDERBUFFER,t._color_rb),n.renderbufferStorage(n.RENDERBUFFER,n.RGBA4,t._shape[0],t._shape[1])),t.depth&amp;&amp;(t.depth.shape=t._shape),t._depth_rb&amp;&amp;(n.bindRenderbuffer(n.RENDERBUFFER,t._depth_rb),t._useDepth&amp;&amp;t._useStencil?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t._shape[0],t._shape[1]):t._useDepth?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_COMPONENT16,t._shape[0],t._shape[1]):t._useStencil&amp;&amp;n.renderbufferStorage(n.RENDERBUFFER,n.STENCIL_INDEX,t._shape[0],t._shape[1])),n.bindFramebuffer(n.FRAMEBUFFER,t.handle);var s=n.checkFramebufferStatus(n.FRAMEBUFFER);s!==n.FRAMEBUFFER_COMPLETE&amp;&amp;(t.dispose(),u(n,a),f(s)),u(n,a)}}Object.defineProperties(m,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(t){if(Array.isArray(t)||(t=[0|t,0|t]),2!==t.length)throw new Error(&quot;gl-fbo: Shape vector must be length 2&quot;);var e=0|t[0],r=0|t[1];return g(this,e,r),[e,r]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(t){return g(this,t|=0,this._shape[1]),t},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(t){return t|=0,g(this,this._shape[0],t),t},enumerable:!1}}),m.bind=function(){if(!this._destroyed){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,this.handle),t.viewport(0,0,this._shape[0],this._shape[1])}},m.dispose=function(){if(!this._destroyed){this._destroyed=!0;var t=this.gl;t.deleteFramebuffer(this.handle),this.handle=null,this.depth&amp;&amp;(this.depth.dispose(),this.depth=null),this._depth_rb&amp;&amp;(t.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var e=0;e&lt;this.color.length;++e)this.color[e].dispose(),this.color[e]=null;this._color_rb&amp;&amp;(t.deleteRenderbuffer(this._color_rb),this._color_rb=null)}}},{&quot;gl-texture2d&quot;:146}],87:[function(t,e,r){var n=t(&quot;sprintf-js&quot;).sprintf,i=t(&quot;gl-constants/lookup&quot;),a=t(&quot;glsl-shader-name&quot;),o=t(&quot;add-line-numbers&quot;);e.exports=function(t,e,r){&quot;use strict&quot;;var s=a(e)||&quot;of unknown name (see npm glsl-shader-name)&quot;,l=&quot;unknown type&quot;;void 0!==r&amp;&amp;(l=r===i.FRAGMENT_SHADER?&quot;fragment&quot;:&quot;vertex&quot;);for(var c=n(&quot;Error compiling %s shader %s:\n&quot;,l,s),u=n(&quot;%s%s&quot;,c,t),f=t.split(&quot;\n&quot;),h={},p=0;p&lt;f.length;p++){var d=f[p];if(&quot;&quot;!==d&amp;&amp;&quot;\0&quot;!==d){var m=parseInt(d.split(&quot;:&quot;)[2]);if(isNaN(m))throw new Error(n(&quot;Could not parse error: %s&quot;,d));h[m]=d}}var g=o(e).split(&quot;\n&quot;);for(p=0;p&lt;g.length;p++)if(h[p+3]||h[p+2]||h[p+1]){var v=g[p];if(c+=v+&quot;\n&quot;,h[p+1]){var y=h[p+1];y=y.substr(y.split(&quot;:&quot;,3).join(&quot;:&quot;).length+1).trim(),c+=n(&quot;^^^ %s\n\n&quot;,y)}}return{long:c.trim(),short:u.trim()}}},{&quot;add-line-numbers&quot;:9,&quot;gl-constants/lookup&quot;:83,&quot;glsl-shader-name&quot;:223,&quot;sprintf-js&quot;:301}],88:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.gl,n=o(r,l.vertex,l.fragment),i=o(r,l.pickVertex,l.pickFragment),a=s(r),u=s(r),f=s(r),h=s(r),p=new c(t,n,i,a,u,f,h);return p.update(e),t.addObject(p),p};var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;iota-array&quot;),a=t(&quot;typedarray-pool&quot;),o=t(&quot;gl-shader&quot;),s=t(&quot;gl-buffer&quot;),l=t(&quot;./lib/shaders&quot;);function c(t,e,r,n,i,a,o){this.plot=t,this.shader=e,this.pickShader=r,this.positionBuffer=n,this.weightBuffer=i,this.colorBuffer=a,this.idBuffer=o,this.xData=[],this.yData=[],this.shape=[0,0],this.bounds=[1/0,1/0,-1/0,-1/0],this.pickOffset=0}var u,f=c.prototype,h=[0,0,1,0,0,1,1,0,1,1,0,1];f.draw=(u=[1,0,0,0,1,0,0,0,1],function(){var t=this.plot,e=this.shader,r=this.bounds,n=this.numVertices;if(!(n&lt;=0)){var i=t.gl,a=t.dataBox,o=r[2]-r[0],s=r[3]-r[1],l=a[2]-a[0],c=a[3]-a[1];u[0]=2*o/l,u[4]=2*s/c,u[6]=2*(r[0]-a[0])/l-1,u[7]=2*(r[1]-a[1])/c-1,e.bind();var f=e.uniforms;f.viewTransform=u,f.shape=this.shape;var h=e.attributes;this.positionBuffer.bind(),h.position.pointer(),this.weightBuffer.bind(),h.weight.pointer(i.UNSIGNED_BYTE,!1),this.colorBuffer.bind(),h.color.pointer(i.UNSIGNED_BYTE,!0),i.drawArrays(i.TRIANGLES,0,n)}}),f.drawPick=function(){var t=[1,0,0,0,1,0,0,0,1],e=[0,0,0,0];return function(r){var n=this.plot,i=this.pickShader,a=this.bounds,o=this.numVertices;if(!(o&lt;=0)){var s=n.gl,l=n.dataBox,c=a[2]-a[0],u=a[3]-a[1],f=l[2]-l[0],h=l[3]-l[1];t[0]=2*c/f,t[4]=2*u/h,t[6]=2*(a[0]-l[0])/f-1,t[7]=2*(a[1]-l[1])/h-1;for(var p=0;p&lt;4;++p)e[p]=r&gt;&gt;8*p&amp;255;this.pickOffset=r,i.bind();var d=i.uniforms;d.viewTransform=t,d.pickOffset=e,d.shape=this.shape;var m=i.attributes;return this.positionBuffer.bind(),m.position.pointer(),this.weightBuffer.bind(),m.weight.pointer(s.UNSIGNED_BYTE,!1),this.idBuffer.bind(),m.pickId.pointer(s.UNSIGNED_BYTE,!1),s.drawArrays(s.TRIANGLES,0,o),r+this.shape[0]*this.shape[1]}}}(),f.pick=function(t,e,r){var n=this.pickOffset,i=this.shape[0]*this.shape[1];if(r&lt;n||r&gt;=n+i)return null;var a=r-n,o=this.xData,s=this.yData;return{object:this,pointId:a,dataCoord:[o[a%this.shape[0]],s[a/this.shape[0]|0]]}},f.update=function(t){var e=(t=t||{}).shape||[0,0],r=t.x||i(e[0]),o=t.y||i(e[1]),s=t.z||new Float32Array(e[0]*e[1]),l=!1!==t.zsmooth;this.xData=r,this.yData=o;var c,u,f,p,d=t.colorLevels||[0],m=t.colorValues||[0,0,0,1],g=d.length,v=this.bounds;l?(c=v[0]=r[0],u=v[1]=o[0],f=v[2]=r[r.length-1],p=v[3]=o[o.length-1]):(c=v[0]=r[0]+(r[1]-r[0])/2,u=v[1]=o[0]+(o[1]-o[0])/2,f=v[2]=r[r.length-1]+(r[r.length-1]-r[r.length-2])/2,p=v[3]=o[o.length-1]+(o[o.length-1]-o[o.length-2])/2);var y=1/(f-c),x=1/(p-u),b=e[0],_=e[1];this.shape=[b,_];var w=(l?(b-1)*(_-1):b*_)*(h.length&gt;&gt;&gt;1);this.numVertices=w;for(var T=a.mallocUint8(4*w),k=a.mallocFloat32(2*w),A=a.mallocUint8(2*w),M=a.mallocUint32(w),S=0,E=l?b-1:b,L=l?_-1:_,C=0;C&lt;L;++C){var P,I;l?(P=x*(o[C]-u),I=x*(o[C+1]-u)):(P=C&lt;_-1?x*(o[C]-(o[C+1]-o[C])/2-u):x*(o[C]-(o[C]-o[C-1])/2-u),I=C&lt;_-1?x*(o[C]+(o[C+1]-o[C])/2-u):x*(o[C]+(o[C]-o[C-1])/2-u));for(var O=0;O&lt;E;++O){var z,D;l?(z=y*(r[O]-c),D=y*(r[O+1]-c)):(z=O&lt;b-1?y*(r[O]-(r[O+1]-r[O])/2-c):y*(r[O]-(r[O]-r[O-1])/2-c),D=O&lt;b-1?y*(r[O]+(r[O+1]-r[O])/2-c):y*(r[O]+(r[O]-r[O-1])/2-c));for(var R=0;R&lt;h.length;R+=2){var F,B,N,j,U=h[R],V=h[R+1],H=s[l?(C+V)*b+(O+U):C*b+O],q=n.le(d,H);if(q&lt;0)F=m[0],B=m[1],N=m[2],j=m[3];else if(q===g-1)F=m[4*g-4],B=m[4*g-3],N=m[4*g-2],j=m[4*g-1];else{var G=(H-d[q])/(d[q+1]-d[q]),Y=1-G,W=4*q,X=4*(q+1);F=Y*m[W]+G*m[X],B=Y*m[W+1]+G*m[X+1],N=Y*m[W+2]+G*m[X+2],j=Y*m[W+3]+G*m[X+3]}T[4*S]=255*F,T[4*S+1]=255*B,T[4*S+2]=255*N,T[4*S+3]=255*j,k[2*S]=.5*z+.5*D,k[2*S+1]=.5*P+.5*I,A[2*S]=U,A[2*S+1]=V,M[S]=C*b+O,S+=1}}}this.positionBuffer.update(k),this.weightBuffer.update(A),this.colorBuffer.update(T),this.idBuffer.update(M),a.free(k),a.free(T),a.free(A),a.free(M)},f.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.positionBuffer.dispose(),this.weightBuffer.dispose(),this.colorBuffer.dispose(),this.idBuffer.dispose(),this.plot.removeObject(this)}},{&quot;./lib/shaders&quot;:89,&quot;binary-search-bounds&quot;:31,&quot;gl-buffer&quot;:78,&quot;gl-shader&quot;:132,&quot;iota-array&quot;:235,&quot;typedarray-pool&quot;:308}],89:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;);e.exports={fragment:n([&quot;precision lowp float;\n#define GLSLIFY 1\nvarying vec4 fragColor;\nvoid main() {\n  gl_FragColor = vec4(fragColor.rgb * fragColor.a, fragColor.a);\n}\n&quot;]),vertex:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 color;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragColor;\n\nvoid main() {\n  vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n  fragColor = color;\n  gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n&quot;]),pickFragment:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nuniform vec2 shape;\nuniform vec4 pickOffset;\n\nvoid main() {\n  vec2 d = step(.5, vWeight);\n  vec4 id = fragId + pickOffset;\n  id.x += d.x + d.y*shape.x;\n\n  id.y += floor(id.x / 256.0);\n  id.x -= floor(id.x / 256.0) * 256.0;\n\n  id.z += floor(id.y / 256.0);\n  id.y -= floor(id.y / 256.0) * 256.0;\n\n  id.w += floor(id.z / 256.0);\n  id.z -= floor(id.z / 256.0) * 256.0;\n\n  gl_FragColor = id/255.;\n}\n&quot;]),pickVertex:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nvoid main() {\n  vWeight = weight;\n\n  fragId = pickId;\n\n  vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n  gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n&quot;])}},{glslify:231}],90:[function(t,e,r){var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, nextPosition;\nattribute float arcLength, lineWidth;\nattribute vec4 color;\n\nuniform vec2 screenShape;\nuniform float pixelRatio;\nuniform mat4 model, view, projection;\n\nvarying vec4 fragColor;\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\n\nvec4 project(vec3 p) {\n  return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n  vec4 startPoint = project(position);\n  vec4 endPoint   = project(nextPosition);\n\n  vec2 A = startPoint.xy / startPoint.w;\n  vec2 B =   endPoint.xy /   endPoint.w;\n\n  float clipAngle = atan(\n    (B.y - A.y) * screenShape.y,\n    (B.x - A.x) * screenShape.x\n  );\n\n  vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\n    sin(clipAngle),\n    -cos(clipAngle)\n  ) / screenShape;\n\n  gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\n\n  worldPosition = position;\n  pixelArcLength = arcLength;\n  fragColor = color;\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3      clipBounds[2];\nuniform sampler2D dashTexture;\nuniform float     dashScale;\nuniform float     opacity;\n\nvarying vec3    worldPosition;\nvarying float   pixelArcLength;\nvarying vec4    fragColor;\n\nvoid main() {\n  if (\n    outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||\n    fragColor.a * opacity == 0.\n  ) discard;\n\n  float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\n  if(dashWeight &lt; 0.5) {\n    discard;\n  }\n  gl_FragColor = fragColor * opacity;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\n#define FLOAT_MAX  1.70141184e38\n#define FLOAT_MIN  1.17549435e-38\n\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl\nvec4 packFloat(float v) {\n  float av = abs(v);\n\n  //Handle special cases\n  if(av &lt; FLOAT_MIN) {\n    return vec4(0.0, 0.0, 0.0, 0.0);\n  } else if(v &gt; FLOAT_MAX) {\n    return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\n  } else if(v &lt; -FLOAT_MAX) {\n    return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\n  }\n\n  vec4 c = vec4(0,0,0,0);\n\n  //Compute exponent and mantissa\n  float e = floor(log2(av));\n  float m = av * pow(2.0, -e) - 1.0;\n\n  //Unpack mantissa\n  c[1] = floor(128.0 * m);\n  m -= c[1] / 128.0;\n  c[2] = floor(32768.0 * m);\n  m -= c[2] / 32768.0;\n  c[3] = floor(8388608.0 * m);\n\n  //Unpack exponent\n  float ebias = e + 127.0;\n  c[0] = floor(ebias / 2.0);\n  ebias -= c[0] * 2.0;\n  c[1] += floor(ebias) * 128.0;\n\n  //Unpack sign bit\n  c[0] += 128.0 * step(0.0, -v);\n\n  //Scale back to range\n  return c / 255.0;\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform float pickId;\nuniform vec3 clipBounds[2];\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\n\n  gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);\n}&quot;]),l=[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;nextPosition&quot;,type:&quot;vec3&quot;},{name:&quot;arcLength&quot;,type:&quot;float&quot;},{name:&quot;lineWidth&quot;,type:&quot;float&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;}];r.createShader=function(t){return i(t,a,o,null,l)},r.createPickShader=function(t){return i(t,a,s,null,l)}},{&quot;gl-shader&quot;:132,glslify:231}],91:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl||t.scene&amp;&amp;t.scene.gl,r=f(e);r.attributes.position.location=0,r.attributes.nextPosition.location=1,r.attributes.arcLength.location=2,r.attributes.lineWidth.location=3,r.attributes.color.location=4;var o=h(e);o.attributes.position.location=0,o.attributes.nextPosition.location=1,o.attributes.arcLength.location=2,o.attributes.lineWidth.location=3,o.attributes.color.location=4;for(var s=n(e),l=i(e,[{buffer:s,size:3,offset:0,stride:48},{buffer:s,size:3,offset:12,stride:48},{buffer:s,size:1,offset:24,stride:48},{buffer:s,size:1,offset:28,stride:48},{buffer:s,size:4,offset:32,stride:48}]),u=c(new Array(1024),[256,1,4]),p=0;p&lt;1024;++p)u.data[p]=255;var d=a(e,u);d.wrap=e.REPEAT;var m=new v(e,r,o,s,l,d);return m.update(t),m};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;gl-texture2d&quot;),o=new Uint8Array(4),s=new Float32Array(o.buffer);var l=t(&quot;binary-search-bounds&quot;),c=t(&quot;ndarray&quot;),u=t(&quot;./lib/shaders&quot;),f=u.createShader,h=u.createPickShader,p=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function d(t,e){for(var r=0,n=0;n&lt;3;++n){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)}function m(t){for(var e=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],r=0;r&lt;3;++r)e[0][r]=Math.max(t[0][r],e[0][r]),e[1][r]=Math.min(t[1][r],e[1][r]);return e}function g(t,e,r,n){this.arcLength=t,this.position=e,this.index=r,this.dataCoordinate=n}function v(t,e,r,n,i,a){this.gl=t,this.shader=e,this.pickShader=r,this.buffer=n,this.vao=i,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=a,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var y=v.prototype;y.isTransparent=function(){return this.hasAlpha},y.isOpaque=function(){return!this.hasAlpha},y.pickSlots=1,y.setPickBase=function(t){this.pickId=t},y.drawTransparent=y.draw=function(t){if(this.vertexCount){var e=this.gl,r=this.shader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,clipBounds:m(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.drawPick=function(t){if(this.vertexCount){var e=this.gl,r=this.pickShader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,pickId:this.pickId,clipBounds:m(this.clipBounds),screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.update=function(t){var e,r;this.dirty=!0;var n=!!t.connectGaps;&quot;dashScale&quot;in t&amp;&amp;(this.dashScale=t.dashScale),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=+t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0));var i=[],a=[],o=[],s=0,u=0,f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],h=t.position||t.positions;if(h){var p=t.color||t.colors||[0,0,0,1],m=t.lineWidth||1,g=!1;t:for(e=1;e&lt;h.length;++e){var v,y,x,b=h[e-1],_=h[e];for(a.push(s),o.push(b.slice()),r=0;r&lt;3;++r){if(isNaN(b[r])||isNaN(_[r])||!isFinite(b[r])||!isFinite(_[r])){if(!n&amp;&amp;i.length&gt;0){for(var w=0;w&lt;24;++w)i.push(i[i.length-12]);u+=2,g=!0}continue t}f[0][r]=Math.min(f[0][r],b[r],_[r]),f[1][r]=Math.max(f[1][r],b[r],_[r])}Array.isArray(p[0])?(v=p.length&gt;e-1?p[e-1]:p.length&gt;0?p[p.length-1]:[0,0,0,1],y=p.length&gt;e?p[e]:p.length&gt;0?p[p.length-1]:[0,0,0,1]):v=y=p,3===v.length&amp;&amp;(v=[v[0],v[1],v[2],1]),3===y.length&amp;&amp;(y=[y[0],y[1],y[2],1]),!this.hasAlpha&amp;&amp;v[3]&lt;1&amp;&amp;(this.hasAlpha=!0),x=Array.isArray(m)?m.length&gt;e-1?m[e-1]:m.length&gt;0?m[m.length-1]:[0,0,0,1]:m;var T=s;if(s+=d(b,_),g){for(r=0;r&lt;2;++r)i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3]);u+=2,g=!1}i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3],b[0],b[1],b[2],_[0],_[1],_[2],T,-x,v[0],v[1],v[2],v[3],_[0],_[1],_[2],b[0],b[1],b[2],s,-x,y[0],y[1],y[2],y[3],_[0],_[1],_[2],b[0],b[1],b[2],s,x,y[0],y[1],y[2],y[3]),u+=4}}if(this.buffer.update(i),a.push(s),o.push(h[h.length-1].slice()),this.bounds=f,this.vertexCount=u,this.points=o,this.arcLength=a,&quot;dashes&quot;in t){var k=t.dashes.slice();for(k.unshift(0),e=1;e&lt;k.length;++e)k[e]=k[e-1]+k[e];var A=c(new Array(1024),[256,1,4]);for(e=0;e&lt;256;++e){for(r=0;r&lt;4;++r)A.set(e,0,r,0);1&amp;l.le(k,k[k.length-1]*e/255)?A.set(e,0,0,0):A.set(e,0,0,255)}this.texture.setPixels(A)}},y.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},y.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=function(t,e,r,n){return o[0]=n,o[1]=r,o[2]=e,o[3]=t,s[0]}(t.value[0],t.value[1],t.value[2],0),r=l.le(this.arcLength,e);if(r&lt;0)return null;if(r===this.arcLength.length-1)return new g(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),r);for(var n=this.points[r],i=this.points[Math.min(r+1,this.points.length-1)],a=(e-this.arcLength[r])/(this.arcLength[r+1]-this.arcLength[r]),c=1-a,u=[0,0,0],f=0;f&lt;3;++f)u[f]=c*n[f]+a*i[f];var h=Math.min(a&lt;.5?r:r+1,this.points.length-1);return new g(e,u,h,this.points[h])}},{&quot;./lib/shaders&quot;:90,&quot;binary-search-bounds&quot;:31,&quot;gl-buffer&quot;:78,&quot;gl-texture2d&quot;:146,&quot;gl-vao&quot;:150,ndarray:259}],92:[function(t,e,r){e.exports=function(t){var e=new Float32Array(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},{}],93:[function(t,e,r){e.exports=function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],94:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],f=t[10],h=t[11],p=t[12],d=t[13],m=t[14],g=t[15];return(e*o-r*a)*(f*g-h*m)-(e*s-n*a)*(u*g-h*d)+(e*l-i*a)*(u*m-f*d)+(r*s-n*o)*(c*g-h*p)-(r*l-i*o)*(c*m-f*p)+(n*l-i*s)*(c*d-u*p)}},{}],95:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,c=r*o,u=n*o,f=n*s,h=i*o,p=i*s,d=i*l,m=a*o,g=a*s,v=a*l;return t[0]=1-f-d,t[1]=u+v,t[2]=h-g,t[3]=0,t[4]=u-v,t[5]=1-c-d,t[6]=p+m,t[7]=0,t[8]=h+g,t[9]=p-m,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],96:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=n+n,l=i+i,c=a+a,u=n*s,f=n*l,h=n*c,p=i*l,d=i*c,m=a*c,g=o*s,v=o*l,y=o*c;return t[0]=1-(p+m),t[1]=f+y,t[2]=h-v,t[3]=0,t[4]=f-y,t[5]=1-(u+m),t[6]=d+g,t[7]=0,t[8]=h+v,t[9]=d-g,t[10]=1-(u+p),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}},{}],97:[function(t,e,r){e.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],98:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],m=e[13],g=e[14],v=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*m-f*d,A=u*g-h*d,M=u*v-p*d,S=f*g-h*m,E=f*v-p*m,L=h*v-p*g,C=y*L-x*E+b*S+_*M-w*A+T*k;if(!C)return null;return C=1/C,t[0]=(s*L-l*E+c*S)*C,t[1]=(i*E-n*L-a*S)*C,t[2]=(m*T-g*w+v*_)*C,t[3]=(h*w-f*T-p*_)*C,t[4]=(l*M-o*L-c*A)*C,t[5]=(r*L-i*M+a*A)*C,t[6]=(g*b-d*T-v*x)*C,t[7]=(u*T-h*b+p*x)*C,t[8]=(o*E-s*M+c*k)*C,t[9]=(n*M-r*E-a*k)*C,t[10]=(d*w-m*b+v*y)*C,t[11]=(f*b-u*w-p*y)*C,t[12]=(s*A-o*S-l*k)*C,t[13]=(r*S-n*A+i*k)*C,t[14]=(m*x-d*_-g*y)*C,t[15]=(u*_-f*x+h*y)*C,t}},{}],99:[function(t,e,r){var n=t(&quot;./identity&quot;);e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,m=e[0],g=e[1],v=e[2],y=i[0],x=i[1],b=i[2],_=r[0],w=r[1],T=r[2];if(Math.abs(m-_)&lt;1e-6&amp;&amp;Math.abs(g-w)&lt;1e-6&amp;&amp;Math.abs(v-T)&lt;1e-6)return n(t);f=m-_,h=g-w,p=v-T,d=1/Math.sqrt(f*f+h*h+p*p),a=x*(p*=d)-b*(h*=d),o=b*(f*=d)-y*p,s=y*h-x*f,(d=Math.sqrt(a*a+o*o+s*s))?(a*=d=1/d,o*=d,s*=d):(a=0,o=0,s=0);l=h*s-p*o,c=p*a-f*s,u=f*o-h*a,(d=Math.sqrt(l*l+c*c+u*u))?(l*=d=1/d,c*=d,u*=d):(l=0,c=0,u=0);return t[0]=a,t[1]=l,t[2]=f,t[3]=0,t[4]=o,t[5]=c,t[6]=h,t[7]=0,t[8]=s,t[9]=u,t[10]=p,t[11]=0,t[12]=-(a*m+o*g+s*v),t[13]=-(l*m+c*g+u*v),t[14]=-(f*m+h*g+p*v),t[15]=1,t}},{&quot;./identity&quot;:97}],100:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],m=e[12],g=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*m,t[1]=x*i+b*l+_*h+w*g,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,x=r[4],b=r[5],_=r[6],w=r[7],t[4]=x*n+b*s+_*f+w*m,t[5]=x*i+b*l+_*h+w*g,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,x=r[8],b=r[9],_=r[10],w=r[11],t[8]=x*n+b*s+_*f+w*m,t[9]=x*i+b*l+_*h+w*g,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,x=r[12],b=r[13],_=r[14],w=r[15],t[12]=x*n+b*s+_*f+w*m,t[13]=x*i+b*l+_*h+w*g,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}},{}],101:[function(t,e,r){e.exports=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t}},{}],102:[function(t,e,r){e.exports=function(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t}},{}],103:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c,u,f,h,p,d,m,g,v,y,x,b,_,w,T,k,A,M,S,E=n[0],L=n[1],C=n[2],P=Math.sqrt(E*E+L*L+C*C);if(Math.abs(P)&lt;1e-6)return null;E*=P=1/P,L*=P,C*=P,i=Math.sin(r),a=Math.cos(r),o=1-a,s=e[0],l=e[1],c=e[2],u=e[3],f=e[4],h=e[5],p=e[6],d=e[7],m=e[8],g=e[9],v=e[10],y=e[11],x=E*E*o+a,b=L*E*o+C*i,_=C*E*o-L*i,w=E*L*o-C*i,T=L*L*o+a,k=C*L*o+E*i,A=E*C*o+L*i,M=L*C*o-E*i,S=C*C*o+a,t[0]=s*x+f*b+m*_,t[1]=l*x+h*b+g*_,t[2]=c*x+p*b+v*_,t[3]=u*x+d*b+y*_,t[4]=s*w+f*T+m*k,t[5]=l*w+h*T+g*k,t[6]=c*w+p*T+v*k,t[7]=u*w+d*T+y*k,t[8]=s*A+f*M+m*S,t[9]=l*A+h*M+g*S,t[10]=c*A+p*M+v*S,t[11]=u*A+d*M+y*S,e!==t&amp;&amp;(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t}},{}],104:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t}},{}],105:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i-c*n,t[1]=o*i-u*n,t[2]=s*i-f*n,t[3]=l*i-h*n,t[8]=a*n+c*i,t[9]=o*n+u*i,t[10]=s*n+f*i,t[11]=l*n+h*i,t}},{}],106:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t}},{}],107:[function(t,e,r){e.exports=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],108:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,m=r[0],g=r[1],v=r[2];e===t?(t[12]=e[0]*m+e[4]*g+e[8]*v+e[12],t[13]=e[1]*m+e[5]*g+e[9]*v+e[13],t[14]=e[2]*m+e[6]*g+e[10]*v+e[14],t[15]=e[3]*m+e[7]*g+e[11]*v+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*m+s*g+f*v+e[12],t[13]=i*m+l*g+h*v+e[13],t[14]=a*m+c*g+p*v+e[14],t[15]=o*m+u*g+d*v+e[15]);return t}},{}],109:[function(t,e,r){e.exports=function(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}},{}],110:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;barycentric&quot;),i=t(&quot;polytope-closest-point/lib/closest_point_2d.js&quot;);function a(t,e){for(var r=[0,0,0,0],n=0;n&lt;4;++n)for(var i=0;i&lt;4;++i)r[i]+=t[4*n+i]*e[n];return r}function o(t,e,r,n,i){for(var o=a(n,a(r,a(e,[t[0],t[1],t[2],1]))),s=0;s&lt;3;++s)o[s]/=o[3];return[.5*i[0]*(1+o[0]),.5*i[1]*(1-o[1])]}function s(t,e){for(var r=[0,0,0],n=0;n&lt;t.length;++n)for(var i=t[n],a=e[n],o=0;o&lt;3;++o)r[o]+=a*i[o];return r}e.exports=function(t,e,r,a,l,c){if(1===t.length)return[0,t[0].slice()];for(var u=new Array(t.length),f=0;f&lt;t.length;++f)u[f]=o(t[f],r,a,l,c);var h=0,p=1/0;for(f=0;f&lt;u.length;++f){for(var d=0,m=0;m&lt;2;++m)d+=Math.pow(u[f][m]-e[m],2);d&lt;p&amp;&amp;(p=d,h=f)}var g=function(t,e){if(2===t.length){for(var r=0,a=0,o=0;o&lt;2;++o)r+=Math.pow(e[o]-t[0][o],2),a+=Math.pow(e[o]-t[1][o],2);return r=Math.sqrt(r),a=Math.sqrt(a),r+a&lt;1e-6?[1,0]:[a/(r+a),r/(a+r)]}if(3===t.length){var s=[0,0];return i(t[0],t[1],t[2],e,s),n(t,s)}return[]}(u,e),v=0;for(f=0;f&lt;3;++f){if(g[f]&lt;-.001||g[f]&gt;1.0001)return null;v+=g[f]}if(Math.abs(v-1)&gt;.001)return null;return[h,s(t,g),g]}},{barycentric:14,&quot;polytope-closest-point/lib/closest_point_2d.js&quot;:270}],111:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n           , view\n           , projection\n           , inverseModel;\nuniform vec3 eyePosition\n           , lightPosition;\n\nvarying vec3 f_normal\n           , f_lightDirection\n           , f_eyeDirection\n           , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvec4 project(vec3 p) {\n  return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n  gl_Position      = project(position);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * vec4(position , 1.0);\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal  = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  f_color          = color;\n  f_data           = position;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n            , fresnel\n            , kambient\n            , kdiffuse\n            , kspecular;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n           , f_lightDirection\n           , f_eyeDirection\n           , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (f_color.a == 0.0 ||\n    outOfRange(clipBounds[0], clipBounds[1], f_data)\n  ) discard;\n\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\n\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * f_color.a;\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model, view, projection;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n  f_color = color;\n  f_data  = position;\n  f_uv    = uv;\n}&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\n\n  gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}&quot;]),l=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\nattribute float pointSize;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0);\n  } else {\n    gl_Position = projection * view * model * vec4(position, 1.0);\n  }\n  gl_PointSize = pointSize;\n  f_color = color;\n  f_uv = uv;\n}&quot;]),c=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5);\n  if(dot(pointR, pointR) &gt; 0.25) {\n    discard;\n  }\n  gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}&quot;]),u=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n  f_id        = id;\n  f_position  = position;\n}&quot;]),f=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]),h=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3  position;\nattribute float pointSize;\nattribute vec4  id;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0.0, 0.0, 0.0, 0.0);\n  } else {\n    gl_Position  = projection * view * model * vec4(position, 1.0);\n    gl_PointSize = pointSize;\n  }\n  f_id         = id;\n  f_position   = position;\n}&quot;]),p=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n}&quot;]),d=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec3 contourColor;\n\nvoid main() {\n  gl_FragColor = vec4(contourColor, 1.0);\n}\n&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;}]},r.wireShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;}]},r.pointShader={vertex:l,fragment:c,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;pointSize&quot;,type:&quot;float&quot;}]},r.pickShader={vertex:u,fragment:f,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}]},r.pointPickShader={vertex:h,fragment:f,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;pointSize&quot;,type:&quot;float&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}]},r.contourShader={vertex:p,fragment:d,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;}]}},{glslify:231}],112:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;normals&quot;),l=t(&quot;gl-mat4/multiply&quot;),c=t(&quot;gl-mat4/invert&quot;),u=t(&quot;ndarray&quot;),f=t(&quot;colormap&quot;),h=t(&quot;simplicial-complex-contour&quot;),p=t(&quot;typedarray-pool&quot;),d=t(&quot;./lib/shaders&quot;),m=t(&quot;./lib/closest-point&quot;),g=d.meshShader,v=d.wireShader,y=d.pointShader,x=d.pickShader,b=d.pointPickShader,_=d.contourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function T(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,m,g,v,y,x,b,_,T,k,A,M,S){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleColors=u,this.triangleNormals=h,this.triangleUVs=f,this.triangleIds=c,this.triangleVAO=p,this.triangleCount=0,this.lineWidth=1,this.edgePositions=d,this.edgeColors=g,this.edgeUVs=v,this.edgeIds=m,this.edgeVAO=y,this.edgeCount=0,this.pointPositions=x,this.pointColors=_,this.pointUVs=T,this.pointSizes=k,this.pointIds=b,this.pointVAO=A,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=M,this.contourVAO=S,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=w,this._view=w,this._projection=w,this._resolution=[1,1]}var k=T.prototype;function A(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;r&lt;e.length;++r){if(e.length&lt;2)return 1;if(e[r][0]===t)return e[r][1];if(e[r][0]&gt;t&amp;&amp;r&gt;0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}function M(t){var e=n(t,g.vertex,g.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.normal.location=4,e}function S(t){var e=n(t,v.vertex,v.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e}function E(t){var e=n(t,y.vertex,y.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.pointSize.location=4,e}function L(t){var e=n(t,x.vertex,x.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e}function C(t){var e=n(t,b.vertex,b.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e.attributes.pointSize.location=4,e}function P(t){var e=n(t,_.vertex,_.fragment);return e.attributes.position.location=0,e}k.isOpaque=function(){return!this.hasAlpha},k.isTransparent=function(){return this.hasAlpha},k.pickSlots=1,k.setPickBase=function(t){this.pickId=t},k.highlight=function(t){if(t&amp;&amp;this.contourEnable){for(var e=h(this.cells,this.intensity,t.intensity),r=e.cells,n=e.vertexIds,i=e.vertexWeights,a=r.length,o=p.mallocFloat32(6*a),s=0,l=0;l&lt;a;++l)for(var c=r[l],u=0;u&lt;2;++u){var f=c[0];2===c.length&amp;&amp;(f=c[u]);for(var d=n[f][0],m=n[f][1],g=i[f],v=1-g,y=this.positions[d],x=this.positions[m],b=0;b&lt;3;++b)o[s++]=g*y[b]+v*x[b]}this.contourCount=s/3|0,this.contourPositions.update(o.subarray(0,s)),p.free(o)}else this.contourCount=0},k.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,&quot;contourEnable&quot;in t&amp;&amp;(this.contourEnable=t.contourEnable),&quot;contourColor&quot;in t&amp;&amp;(this.contourColor=t.contourColor),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;lightPosition&quot;in t&amp;&amp;(this.lightPosition=t.lightPosition),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0)),&quot;opacityscale&quot;in t&amp;&amp;(this.opacityscale=t.opacityscale,this.hasAlpha=!0),&quot;ambient&quot;in t&amp;&amp;(this.ambientLight=t.ambient),&quot;diffuse&quot;in t&amp;&amp;(this.diffuseLight=t.diffuse),&quot;specular&quot;in t&amp;&amp;(this.specularLight=t.specular),&quot;roughness&quot;in t&amp;&amp;(this.roughness=t.roughness),&quot;fresnel&quot;in t&amp;&amp;(this.fresnel=t.fresnel),t.texture?(this.texture.dispose(),this.texture=o(e,t.texture)):t.colormap&amp;&amp;(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t,e){for(var r=f({colormap:t,nshades:256,format:&quot;rgba&quot;}),n=new Uint8Array(1024),i=0;i&lt;256;++i){for(var a=r[i],o=0;o&lt;3;++o)n[4*i+o]=a[o];n[4*i+3]=e?255*A(i/255,e):255*a[3]}return u(n,[256,256,4],[4,0,1])}(t.colormap,this.opacityscale)),this.texture.generateMipmap());var r=t.cells,n=t.positions;if(n&amp;&amp;r){var i=[],a=[],l=[],c=[],h=[],p=[],d=[],m=[],g=[],v=[],y=[],x=[],b=[],_=[];this.cells=r,this.positions=n;var w=t.vertexNormals,T=t.cellNormals,k=void 0===t.vertexNormalsEpsilon?1e-6:t.vertexNormalsEpsilon,M=void 0===t.faceNormalsEpsilon?1e-6:t.faceNormalsEpsilon;t.useFacetNormals&amp;&amp;!T&amp;&amp;(T=s.faceNormals(r,n,M)),T||w||(w=s.vertexNormals(r,n,k));var S=t.vertexColors,E=t.cellColors,L=t.meshColor||[1,1,1,1],C=t.vertexUVs,P=t.vertexIntensity,I=t.cellUVs,O=t.cellIntensity,z=1/0,D=-1/0;if(!C&amp;&amp;!I)if(P)if(t.vertexIntensityBounds)z=+t.vertexIntensityBounds[0],D=+t.vertexIntensityBounds[1];else for(var R=0;R&lt;P.length;++R){var F=P[R];z=Math.min(z,F),D=Math.max(D,F)}else if(O)if(t.cellIntensityBounds)z=+t.cellIntensityBounds[0],D=+t.cellIntensityBounds[1];else for(R=0;R&lt;O.length;++R){F=O[R];z=Math.min(z,F),D=Math.max(D,F)}else for(R=0;R&lt;n.length;++R){F=n[R][2];z=Math.min(z,F),D=Math.max(D,F)}this.intensity=P||(O||function(t){for(var e=t.length,r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n][2];return r}(n)),this.pickVertex=!(O||E);var B=t.pointSizes,N=t.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(R=0;R&lt;n.length;++R)for(var j=n[R],U=0;U&lt;3;++U)!isNaN(j[U])&amp;&amp;isFinite(j[U])&amp;&amp;(this.bounds[0][U]=Math.min(this.bounds[0][U],j[U]),this.bounds[1][U]=Math.max(this.bounds[1][U],j[U]));var V=0,H=0,q=0;t:for(R=0;R&lt;r.length;++R){var G=r[R];switch(G.length){case 1:for(j=n[W=G[0]],U=0;U&lt;3;++U)if(isNaN(j[U])||!isFinite(j[U]))continue t;v.push(j[0],j[1],j[2]),X=S?S[W]:E?E[R]:L,this.opacityscale&amp;&amp;P?a.push(X[0],X[1],X[2],this.opacity*A((P[W]-z)/(D-z),this.opacityscale)):3===X.length?y.push(X[0],X[1],X[2],this.opacity):(y.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),Z=C?C[W]:P?[(P[W]-z)/(D-z),0]:I?I[R]:O?[(O[R]-z)/(D-z),0]:[(j[2]-z)/(D-z),0],x.push(Z[0],Z[1]),B?b.push(B[W]):b.push(N),_.push(R),q+=1;break;case 2:for(U=0;U&lt;2;++U){j=n[W=G[U]];for(var Y=0;Y&lt;3;++Y)if(isNaN(j[Y])||!isFinite(j[Y]))continue t}for(U=0;U&lt;2;++U){j=n[W=G[U]];p.push(j[0],j[1],j[2]),X=S?S[W]:E?E[R]:L,this.opacityscale&amp;&amp;P?a.push(X[0],X[1],X[2],this.opacity*A((P[W]-z)/(D-z),this.opacityscale)):3===X.length?d.push(X[0],X[1],X[2],this.opacity):(d.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),Z=C?C[W]:P?[(P[W]-z)/(D-z),0]:I?I[R]:O?[(O[R]-z)/(D-z),0]:[(j[2]-z)/(D-z),0],m.push(Z[0],Z[1]),g.push(R)}H+=1;break;case 3:for(U=0;U&lt;3;++U)for(j=n[W=G[U]],Y=0;Y&lt;3;++Y)if(isNaN(j[Y])||!isFinite(j[Y]))continue t;for(U=0;U&lt;3;++U){var W,X,Z,J;j=n[W=G[2-U]];i.push(j[0],j[1],j[2]),(X=S?S[W]:E?E[R]:L)?this.opacityscale&amp;&amp;P?a.push(X[0],X[1],X[2],this.opacity*A((P[W]-z)/(D-z),this.opacityscale)):3===X.length?a.push(X[0],X[1],X[2],this.opacity):(a.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)):a.push(.5,.5,.5,1),Z=C?C[W]:P?[(P[W]-z)/(D-z),0]:I?I[R]:O?[(O[R]-z)/(D-z),0]:[(j[2]-z)/(D-z),0],c.push(Z[0],Z[1]),J=w?w[W]:T[R],l.push(J[0],J[1],J[2]),h.push(R)}V+=1}}this.pointCount=q,this.edgeCount=H,this.triangleCount=V,this.pointPositions.update(v),this.pointColors.update(y),this.pointUVs.update(x),this.pointSizes.update(b),this.pointIds.update(new Uint32Array(_)),this.edgePositions.update(p),this.edgeColors.update(d),this.edgeUVs.update(m),this.edgeIds.update(new Uint32Array(g)),this.trianglePositions.update(i),this.triangleColors.update(a),this.triangleUVs.update(c),this.triangleNormals.update(l),this.triangleIds.update(new Uint32Array(h))}},k.drawTransparent=k.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var s={model:r,view:n,projection:i,inverseModel:w.slice(),clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],contourColor:this.contourColor,texture:0};s.inverseModel=c(s.inverseModel,s.model),e.disable(e.CULL_FACE),this.texture.bind(0);var u=new Array(16);l(u,s.view,s.model),l(u,s.projection,u),c(u,u);for(o=0;o&lt;3;++o)s.eyePosition[o]=u[12+o]/u[15];var f,h=u[15];for(o=0;o&lt;3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o&lt;3;++o){for(var p=u[12+o],d=0;d&lt;3;++d)p+=u[4*d+o]*this.lightPosition[d];s.lightPosition[o]=p/h}this.triangleCount&gt;0&amp;&amp;((f=this.triShader).bind(),f.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind());this.edgeCount&gt;0&amp;&amp;this.lineWidth&gt;0&amp;&amp;((f=this.lineShader).bind(),f.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind());this.pointCount&gt;0&amp;&amp;((f=this.pointShader).bind(),f.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind());this.contourEnable&amp;&amp;this.contourCount&gt;0&amp;&amp;this.contourLineWidth&gt;0&amp;&amp;((f=this.contourShader).bind(),f.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind())},k.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s,l={model:r,view:n,projection:i,clipBounds:a,pickId:this.pickId/255};((s=this.pickShader).bind(),s.uniforms=l,this.triangleCount&gt;0&amp;&amp;(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount&gt;0&amp;&amp;(this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount&gt;0)&amp;&amp;((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind())},k.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;for(var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions,i=new Array(r.length),a=0;a&lt;r.length;++a)i[a]=n[r[a]];var o=t.coord[0],s=t.coord[1];if(!this.pickVertex){var l=this.positions[r[0]],c=this.positions[r[1]],u=this.positions[r[2]],f=[(l[0]+c[0]+u[0])/3,(l[1]+c[1]+u[1])/3,(l[2]+c[2]+u[2])/3];return{_cellCenter:!0,position:[o,s],index:e,cell:r,cellId:e,intensity:this.intensity[e],dataCoordinate:f}}var h=m(i,[o*this.pixelRatio,this._resolution[1]-s*this.pixelRatio],this._model,this._view,this._projection,this._resolution);if(!h)return null;var p=h[2],d=0;for(a=0;a&lt;r.length;++a)d+=p[a]*this.intensity[r[a]];return{position:h[1],index:r[h[0]],cell:r,cellId:e,intensity:d,dataCoordinate:this.positions[r[h[0]]]}},k.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.lineShader.dispose(),this.pointShader.dispose(),this.pickShader.dispose(),this.pointPickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose(),this.contourShader.dispose()},e.exports=function(t,e){1===arguments.length&amp;&amp;(t=(e=t).gl);var r=t.getExtension(&quot;OES_standard_derivatives&quot;)||t.getExtension(&quot;MOZ_OES_standard_derivatives&quot;)||t.getExtension(&quot;WEBKIT_OES_standard_derivatives&quot;);if(!r)throw new Error(&quot;derivatives not supported&quot;);var n=M(t),s=S(t),l=E(t),c=L(t),f=C(t),h=P(t),p=o(t,u(new Uint8Array([255,255,255,255]),[1,1,4]));p.generateMipmap(),p.minFilter=t.LINEAR_MIPMAP_LINEAR,p.magFilter=t.LINEAR;var d=i(t),m=i(t),g=i(t),v=i(t),y=i(t),x=a(t,[{buffer:d,type:t.FLOAT,size:3},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:m,type:t.FLOAT,size:4},{buffer:g,type:t.FLOAT,size:2},{buffer:v,type:t.FLOAT,size:3}]),b=i(t),_=i(t),w=i(t),k=i(t),A=a(t,[{buffer:b,type:t.FLOAT,size:3},{buffer:k,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:_,type:t.FLOAT,size:4},{buffer:w,type:t.FLOAT,size:2}]),I=i(t),O=i(t),z=i(t),D=i(t),R=i(t),F=a(t,[{buffer:I,type:t.FLOAT,size:3},{buffer:R,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:O,type:t.FLOAT,size:4},{buffer:z,type:t.FLOAT,size:2},{buffer:D,type:t.FLOAT,size:1}]),B=i(t),N=a(t,[{buffer:B,type:t.FLOAT,size:3}]),j=new T(t,p,n,s,l,c,f,h,d,y,m,g,v,x,b,k,_,w,A,I,R,O,z,D,F,B,N);return j.update(e),j}},{&quot;./lib/closest-point&quot;:110,&quot;./lib/shaders&quot;:111,colormap:53,&quot;gl-buffer&quot;:78,&quot;gl-mat4/invert&quot;:98,&quot;gl-mat4/multiply&quot;:100,&quot;gl-shader&quot;:132,&quot;gl-texture2d&quot;:146,&quot;gl-vao&quot;:150,ndarray:259,normals:261,&quot;simplicial-complex-contour&quot;:291,&quot;typedarray-pool&quot;:308}],113:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[0,0,0,1,1,0,1,1]),s=i(e,a.boxVert,a.lineFrag);return new o(t,r,s)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;./shaders&quot;);function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawBox=(s=[0,0],l=[0,0],function(t,e,r,n,i){var a=this.plot,o=this.shader,c=a.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,o.uniforms.lo=s,o.uniforms.hi=l,o.uniforms.color=i,c.drawArrays(c.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:116,&quot;gl-buffer&quot;:78,&quot;gl-shader&quot;:132}],114:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),a=i(e,o.gridVert,o.gridFrag),l=i(e,o.tickVert,o.gridFrag);return new s(t,r,a,l)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;binary-search-bounds&quot;),o=t(&quot;./shaders&quot;);function s(t,e,r,n){this.plot=t,this.vbo=e,this.shader=r,this.tickShader=n,this.ticks=[[],[]]}function l(t,e){return t-e}var c,u,f,h,p,d=s.prototype;d.draw=(c=[0,0],u=[0,0],f=[0,0],function(){for(var t=this.plot,e=this.vbo,r=this.shader,n=this.ticks,i=t.gl,a=t._tickBounds,o=t.dataBox,s=t.viewBox,l=t.gridLineWidth,h=t.gridLineColor,p=t.gridLineEnable,d=t.pixelRatio,m=0;m&lt;2;++m){var g=a[m],v=a[m+2]-g,y=.5*(o[m+2]+o[m]),x=o[m+2]-o[m];u[m]=2*v/x,c[m]=2*(g-y)/x}r.bind(),e.bind(),r.attributes.dataCoord.pointer(),r.uniforms.dataShift=c,r.uniforms.dataScale=u;var b=0;for(m=0;m&lt;2;++m){f[0]=f[1]=0,f[m]=1,r.uniforms.dataAxis=f,r.uniforms.lineWidth=l[m]/(s[m+2]-s[m])*d,r.uniforms.color=h[m];var _=6*n[m].length;p[m]&amp;&amp;_&amp;&amp;i.drawArrays(i.TRIANGLES,b,_),b+=_}}),d.drawTickMarks=function(){var t=[0,0],e=[0,0],r=[1,0],n=[0,1],i=[0,0],o=[0,0];return function(){for(var s=this.plot,c=this.vbo,u=this.tickShader,f=this.ticks,h=s.gl,p=s._tickBounds,d=s.dataBox,m=s.viewBox,g=s.pixelRatio,v=s.screenBox,y=v[2]-v[0],x=v[3]-v[1],b=m[2]-m[0],_=m[3]-m[1],w=0;w&lt;2;++w){var T=p[w],k=p[w+2]-T,A=.5*(d[w+2]+d[w]),M=d[w+2]-d[w];e[w]=2*k/M,t[w]=2*(T-A)/M}e[0]*=b/y,t[0]*=b/y,e[1]*=_/x,t[1]*=_/x,u.bind(),c.bind(),u.attributes.dataCoord.pointer();var S=u.uniforms;S.dataShift=t,S.dataScale=e;var E=s.tickMarkLength,L=s.tickMarkWidth,C=s.tickMarkColor,P=6*f[0].length,I=Math.min(a.ge(f[0],(d[0]-p[0])/(p[2]-p[0]),l),f[0].length),O=Math.min(a.gt(f[0],(d[2]-p[0])/(p[2]-p[0]),l),f[0].length),z=0+6*I,D=6*Math.max(0,O-I),R=Math.min(a.ge(f[1],(d[1]-p[1])/(p[3]-p[1]),l),f[1].length),F=Math.min(a.gt(f[1],(d[3]-p[1])/(p[3]-p[1]),l),f[1].length),B=P+6*R,N=6*Math.max(0,F-R);i[0]=2*(m[0]-E[1])/y-1,i[1]=(m[3]+m[1])/x-1,o[0]=E[1]*g/y,o[1]=L[1]*g/x,N&amp;&amp;(S.color=C[1],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,B,N)),i[0]=(m[2]+m[0])/y-1,i[1]=2*(m[1]-E[0])/x-1,o[0]=L[0]*g/y,o[1]=E[0]*g/x,D&amp;&amp;(S.color=C[0],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,z,D)),i[0]=2*(m[2]+E[3])/y-1,i[1]=(m[3]+m[1])/x-1,o[0]=E[3]*g/y,o[1]=L[3]*g/x,N&amp;&amp;(S.color=C[3],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,B,N)),i[0]=(m[2]+m[0])/y-1,i[1]=2*(m[3]+E[2])/x-1,o[0]=L[2]*g/y,o[1]=E[2]*g/x,D&amp;&amp;(S.color=C[2],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,z,D))}}(),d.update=(h=[1,1,-1,-1,1,-1],p=[1,-1,1,1,-1,-1],function(t){for(var e=t.ticks,r=t.bounds,n=new Float32Array(18*(e[0].length+e[1].length)),i=(this.plot.zeroLineEnable,0),a=[[],[]],o=0;o&lt;2;++o)for(var s=a[o],l=e[o],c=r[o],u=r[o+2],f=0;f&lt;l.length;++f){var d=(l[f].x-c)/(u-c);s.push(d);for(var m=0;m&lt;6;++m)n[i++]=d,n[i++]=h[m],n[i++]=p[m]}this.ticks=a,this.vbo.update(n)}),d.dispose=function(){this.vbo.dispose(),this.shader.dispose(),this.tickShader.dispose()}},{&quot;./shaders&quot;:116,&quot;binary-search-bounds&quot;:31,&quot;gl-buffer&quot;:78,&quot;gl-shader&quot;:132}],115:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[-1,-1,-1,1,1,-1,1,1]),s=i(e,a.lineVert,a.lineFrag);return new o(t,r,s)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;./shaders&quot;);function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawLine=(s=[0,0],l=[0,0],function(t,e,r,n,i,a){var o=this.plot,c=this.shader,u=o.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,c.uniforms.start=s,c.uniforms.end=l,c.uniforms.width=i*o.pixelRatio,c.uniforms.color=a,u.drawArrays(u.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:116,&quot;gl-buffer&quot;:78,&quot;gl-shader&quot;:132}],116:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=n([&quot;precision lowp float;\n#define GLSLIFY 1\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = vec4(color.xyz * color.w, color.w);\n}\n&quot;]);e.exports={lineVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 start, end;\nuniform float width;\n\nvec2 perp(vec2 v) {\n  return vec2(v.y, -v.x);\n}\n\nvec2 screen(vec2 v) {\n  return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n  vec2 delta = normalize(perp(start - end));\n  vec2 offset = mix(start, end, 0.5 * (coord.y+1.0));\n  gl_Position = vec4(screen(offset + 0.5 * width * delta * coord.x), 0, 1);\n}\n&quot;]),lineFrag:i,textVert:n([&quot;#define GLSLIFY 1\nattribute vec3 textCoordinate;\n\nuniform vec2 dataScale, dataShift, dataAxis, screenOffset, textScale;\nuniform float angle;\n\nvoid main() {\n  float dataOffset  = textCoordinate.z;\n  vec2 glyphOffset  = textCoordinate.xy;\n  mat2 glyphMatrix = mat2(cos(angle), sin(angle), -sin(angle), cos(angle));\n  vec2 screenCoordinate = dataAxis * (dataScale * dataOffset + dataShift) +\n    glyphMatrix * glyphOffset * textScale + screenOffset;\n  gl_Position = vec4(screenCoordinate, 0, 1);\n}\n&quot;]),textFrag:i,gridVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale;\nuniform float lineWidth;\n\nvoid main() {\n  vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n  pos += 10.0 * dataCoord.y * vec2(dataAxis.y, -dataAxis.x) + dataCoord.z * lineWidth;\n  gl_Position = vec4(pos, 0, 1);\n}\n&quot;]),gridFrag:i,boxVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 lo, hi;\n\nvec2 screen(vec2 v) {\n  return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n  gl_Position = vec4(screen(mix(lo, hi, coord)), 0, 1);\n}\n&quot;]),tickVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale, screenOffset, tickScale;\n\nvoid main() {\n  vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n  gl_Position = vec4(pos + tickScale*dataCoord.yz + screenOffset, 0, 1);\n}\n&quot;])}},{glslify:231}],117:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),a=i(e,s.textVert,s.textFrag);return new l(t,r,a)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;text-cache&quot;),o=t(&quot;binary-search-bounds&quot;),s=t(&quot;./shaders&quot;);function l(t,e,r){this.plot=t,this.vbo=e,this.shader=r,this.tickOffset=[[],[]],this.tickX=[[],[]],this.labelOffset=[0,0],this.labelCount=[0,0]}var c,u,f,h,p,d,m=l.prototype;m.drawTicks=(c=[0,0],u=[0,0],f=[0,0],function(t){var e=this.plot,r=this.shader,n=this.tickX[t],i=this.tickOffset[t],a=e.gl,s=e.viewBox,l=e.dataBox,h=e.screenBox,p=e.pixelRatio,d=e.tickEnable,m=e.tickPad,g=e.tickColor,v=e.tickAngle,y=e.labelEnable,x=e.labelPad,b=e.labelColor,_=e.labelAngle,w=this.labelOffset[t],T=this.labelCount[t],k=o.lt(n,l[t]),A=o.le(n,l[t+2]);c[0]=c[1]=0,c[t]=1,u[t]=(s[2+t]+s[t])/(h[2+t]-h[t])-1;var M=2/h[2+(1^t)]-h[1^t];u[1^t]=M*s[1^t]-1,d[t]&amp;&amp;(u[1^t]-=M*p*m[t],k&lt;A&amp;&amp;i[A]&gt;i[k]&amp;&amp;(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=g[t],r.uniforms.angle=v[t],a.drawArrays(a.TRIANGLES,i[k],i[A]-i[k]))),y[t]&amp;&amp;T&amp;&amp;(u[1^t]-=M*p*x[t],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t],r.uniforms.angle=_[t],a.drawArrays(a.TRIANGLES,w,T)),u[1^t]=M*s[2+(1^t)]-1,d[t+2]&amp;&amp;(u[1^t]+=M*p*m[t+2],k&lt;A&amp;&amp;i[A]&gt;i[k]&amp;&amp;(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=g[t+2],r.uniforms.angle=v[t+2],a.drawArrays(a.TRIANGLES,i[k],i[A]-i[k]))),y[t+2]&amp;&amp;T&amp;&amp;(u[1^t]+=M*p*x[t+2],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t+2],r.uniforms.angle=_[t+2],a.drawArrays(a.TRIANGLES,w,T))}),m.drawTitle=function(){var t=[0,0],e=[0,0];return function(){var r=this.plot,n=this.shader,i=r.gl,a=r.screenBox,o=r.titleCenter,s=r.titleAngle,l=r.titleColor,c=r.pixelRatio;if(this.titleCount){for(var u=0;u&lt;2;++u)e[u]=2*(o[u]*c-a[u])/(a[2+u]-a[u])-1;n.bind(),n.uniforms.dataAxis=t,n.uniforms.screenOffset=e,n.uniforms.angle=s,n.uniforms.color=l,i.drawArrays(i.TRIANGLES,this.titleOffset,this.titleCount)}}}(),m.bind=(h=[0,0],p=[0,0],d=[0,0],function(){var t=this.plot,e=this.shader,r=t._tickBounds,n=t.dataBox,i=t.screenBox,a=t.viewBox;e.bind();for(var o=0;o&lt;2;++o){var s=r[o],l=r[o+2]-s,c=.5*(n[o+2]+n[o]),u=n[o+2]-n[o],f=a[o],m=a[o+2]-f,g=i[o],v=i[o+2]-g;p[o]=2*l/u*m/v,h[o]=2*(s-c)/u*m/v}d[1]=2*t.pixelRatio/(i[3]-i[1]),d[0]=d[1]*(i[3]-i[1])/(i[2]-i[0]),e.uniforms.dataScale=p,e.uniforms.dataShift=h,e.uniforms.textScale=d,this.vbo.bind(),e.attributes.textCoordinate.pointer()}),m.update=function(t){var e,r,n,i,o,s=[],l=t.ticks,c=t.bounds;for(o=0;o&lt;2;++o){var u=[Math.floor(s.length/3)],f=[-1/0],h=l[o];for(e=0;e&lt;h.length;++e){var p=h[e],d=p.x,m=p.text,g=p.font||&quot;sans-serif&quot;;i=p.fontSize||12;for(var v=1/(c[o+2]-c[o]),y=c[o],x=m.split(&quot;\n&quot;),b=0;b&lt;x.length;b++)for(n=a(g,x[b]).data,r=0;r&lt;n.length;r+=2)s.push(n[r]*i,-n[r+1]*i-b*i*1.2,(d-y)*v);u.push(Math.floor(s.length/3)),f.push(d)}this.tickOffset[o]=u,this.tickX[o]=f}for(o=0;o&lt;2;++o){for(this.labelOffset[o]=Math.floor(s.length/3),n=a(t.labelFont[o],t.labels[o],{textAlign:&quot;center&quot;}).data,i=t.labelSize[o],e=0;e&lt;n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.labelCount[o]=Math.floor(s.length/3)-this.labelOffset[o]}for(this.titleOffset=Math.floor(s.length/3),n=a(t.titleFont,t.title).data,i=t.titleSize,e=0;e&lt;n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.titleCount=Math.floor(s.length/3)-this.titleOffset,this.vbo.update(s)},m.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:116,&quot;binary-search-bounds&quot;:31,&quot;gl-buffer&quot;:78,&quot;gl-shader&quot;:132,&quot;text-cache&quot;:303}],118:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[e.drawingBufferWidth,e.drawingBufferHeight]),c=new l(e,r);return c.grid=i(c),c.text=a(c),c.line=o(c),c.box=s(c),c.update(t),c};var n=t(&quot;gl-select-static&quot;),i=t(&quot;./lib/grid&quot;),a=t(&quot;./lib/text&quot;),o=t(&quot;./lib/line&quot;),s=t(&quot;./lib/box&quot;);function l(t,e){this.gl=t,this.pickBuffer=e,this.screenBox=[0,0,t.drawingBufferWidth,t.drawingBufferHeight],this.viewBox=[0,0,0,0],this.dataBox=[-10,-10,10,10],this.gridLineEnable=[!0,!0],this.gridLineWidth=[1,1],this.gridLineColor=[[0,0,0,1],[0,0,0,1]],this.pixelRatio=1,this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickEnable=[!0,!0,!0,!0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[15,15,15,15],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelEnable=[!0,!0,!0,!0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.titleCenter=[0,0],this.titleEnable=!0,this.titleAngle=0,this.titleColor=[0,0,0,1],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[4,4],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderLineEnable=[!0,!0,!0,!0],this.borderLineWidth=[2,2,2,2],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.grid=null,this.text=null,this.line=null,this.box=null,this.objects=[],this.overlays=[],this._tickBounds=[1/0,1/0,-1/0,-1/0],this.static=!1,this.dirty=!1,this.pickDirty=!1,this.pickDelay=120,this.pickRadius=10,this._pickTimeout=null,this._drawPick=this.drawPick.bind(this),this._depthCounter=0}var c=l.prototype;function u(t){for(var e=t.slice(),r=0;r&lt;e.length;++r)e[r]=e[r].slice();return e}function f(t,e){return t.x-e.x}c.setDirty=function(){this.dirty=this.pickDirty=!0},c.setOverlayDirty=function(){this.dirty=!0},c.nextDepthValue=function(){return this._depthCounter++/65536},c.draw=function(){var t=this.gl,e=this.screenBox,r=this.viewBox,n=this.dataBox,i=this.pixelRatio,a=this.grid,o=this.line,s=this.text,l=this.objects;if(this._depthCounter=0,this.pickDirty&amp;&amp;(this._pickTimeout&amp;&amp;clearTimeout(this._pickTimeout),this.pickDirty=!1,this._pickTimeout=setTimeout(this._drawPick,this.pickDelay)),this.dirty){if(this.dirty=!1,t.bindFramebuffer(t.FRAMEBUFFER,null),t.enable(t.SCISSOR_TEST),t.disable(t.DEPTH_TEST),t.depthFunc(t.LESS),t.depthMask(!1),t.enable(t.BLEND),t.blendEquation(t.FUNC_ADD,t.FUNC_ADD),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),this.borderColor){t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]);var c=this.borderColor;t.clearColor(c[0]*c[3],c[1]*c[3],c[2]*c[3],c[3]),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}t.scissor(r[0],r[1],r[2]-r[0],r[3]-r[1]),t.viewport(r[0],r[1],r[2]-r[0],r[3]-r[1]);var u=this.backgroundColor;t.clearColor(u[0]*u[3],u[1]*u[3],u[2]*u[3],u[3]),t.clear(t.COLOR_BUFFER_BIT),a.draw();var f=this.zeroLineEnable,h=this.zeroLineColor,p=this.zeroLineWidth;if(f[0]||f[1]){o.bind();for(var d=0;d&lt;2;++d)if(f[d]&amp;&amp;n[d]&lt;=0&amp;&amp;n[d+2]&gt;=0){var m=e[d]-n[d]*(e[d+2]-e[d])/(n[d+2]-n[d]);0===d?o.drawLine(m,e[1],m,e[3],p[d],h[d]):o.drawLine(e[0],m,e[2],m,p[d],h[d])}}for(d=0;d&lt;l.length;++d)l[d].draw();t.viewport(e[0],e[1],e[2]-e[0],e[3]-e[1]),t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]),this.grid.drawTickMarks(),o.bind();var g=this.borderLineEnable,v=this.borderLineWidth,y=this.borderLineColor;for(g[1]&amp;&amp;o.drawLine(r[0],r[1]-.5*v[1]*i,r[0],r[3]+.5*v[3]*i,v[1],y[1]),g[0]&amp;&amp;o.drawLine(r[0]-.5*v[0]*i,r[1],r[2]+.5*v[2]*i,r[1],v[0],y[0]),g[3]&amp;&amp;o.drawLine(r[2],r[1]-.5*v[1]*i,r[2],r[3]+.5*v[3]*i,v[3],y[3]),g[2]&amp;&amp;o.drawLine(r[0]-.5*v[0]*i,r[3],r[2]+.5*v[2]*i,r[3],v[2],y[2]),s.bind(),d=0;d&lt;2;++d)s.drawTicks(d);this.titleEnable&amp;&amp;s.drawTitle();var x=this.overlays;for(d=0;d&lt;x.length;++d)x[d].draw();t.disable(t.SCISSOR_TEST),t.disable(t.BLEND),t.depthMask(!0)}},c.drawPick=function(){if(!this.static){var t=this.pickBuffer;this.gl,this._pickTimeout=null,t.begin();for(var e=1,r=this.objects,n=0;n&lt;r.length;++n)e=r[n].drawPick(e);t.end()}},c.pick=function(t,e){if(!this.static){var r=this.pixelRatio,n=this.pickPixelRatio,i=this.viewBox,a=0|Math.round((t-i[0]/r)*n),o=0|Math.round((e-i[1]/r)*n),s=this.pickBuffer.query(a,o,this.pickRadius);if(!s)return null;for(var l=s.id+(s.value[0]&lt;&lt;8)+(s.value[1]&lt;&lt;16)+(s.value[2]&lt;&lt;24),c=this.objects,u=0;u&lt;c.length;++u){var f=c[u].pick(a,o,l);if(f)return f}return null}},c.setScreenBox=function(t){var e=this.screenBox,r=this.pixelRatio;e[0]=0|Math.round(t[0]*r),e[1]=0|Math.round(t[1]*r),e[2]=0|Math.round(t[2]*r),e[3]=0|Math.round(t[3]*r),this.setDirty()},c.setDataBox=function(t){var e=this.dataBox;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3])&amp;&amp;(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],this.setDirty())},c.setViewBox=function(t){var e=this.pixelRatio,r=this.viewBox;r[0]=0|Math.round(t[0]*e),r[1]=0|Math.round(t[1]*e),r[2]=0|Math.round(t[2]*e),r[3]=0|Math.round(t[3]*e);var n=this.pickPixelRatio;this.pickBuffer.shape=[0|Math.round((t[2]-t[0])*n),0|Math.round((t[3]-t[1])*n)],this.setDirty()},c.update=function(t){t=t||{};var e=this.gl;this.pixelRatio=t.pixelRatio||1;var r=this.pixelRatio;this.pickPixelRatio=Math.max(r,1),this.setScreenBox(t.screenBox||[0,0,e.drawingBufferWidth/r,e.drawingBufferHeight/r]);this.screenBox;this.setViewBox(t.viewBox||[.125*(this.screenBox[2]-this.screenBox[0])/r,.125*(this.screenBox[3]-this.screenBox[1])/r,.875*(this.screenBox[2]-this.screenBox[0])/r,.875*(this.screenBox[3]-this.screenBox[1])/r]);var n=this.viewBox,i=(n[2]-n[0])/(n[3]-n[1]);this.setDataBox(t.dataBox||[-10,-10/i,10,10/i]),this.borderColor=!1!==t.borderColor&amp;&amp;(t.borderColor||[0,0,0,0]).slice(),this.backgroundColor=(t.backgroundColor||[0,0,0,0]).slice(),this.gridLineEnable=(t.gridLineEnable||[!0,!0]).slice(),this.gridLineWidth=(t.gridLineWidth||[1,1]).slice(),this.gridLineColor=u(t.gridLineColor||[[.5,.5,.5,1],[.5,.5,.5,1]]),this.zeroLineEnable=(t.zeroLineEnable||[!0,!0]).slice(),this.zeroLineWidth=(t.zeroLineWidth||[4,4]).slice(),this.zeroLineColor=u(t.zeroLineColor||[[0,0,0,1],[0,0,0,1]]),this.tickMarkLength=(t.tickMarkLength||[0,0,0,0]).slice(),this.tickMarkWidth=(t.tickMarkWidth||[0,0,0,0]).slice(),this.tickMarkColor=u(t.tickMarkColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.titleCenter=(t.titleCenter||[.5*(n[0]+n[2])/r,(n[3]+120)/r]).slice(),this.titleEnable=!(&quot;titleEnable&quot;in t)||!!t.titleEnable,this.titleAngle=t.titleAngle||0,this.titleColor=(t.titleColor||[0,0,0,1]).slice(),this.labelPad=(t.labelPad||[15,15,15,15]).slice(),this.labelAngle=(t.labelAngle||[0,Math.PI/2,0,3*Math.PI/2]).slice(),this.labelEnable=(t.labelEnable||[!0,!0,!0,!0]).slice(),this.labelColor=u(t.labelColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.tickPad=(t.tickPad||[15,15,15,15]).slice(),this.tickAngle=(t.tickAngle||[0,0,0,0]).slice(),this.tickEnable=(t.tickEnable||[!0,!0,!0,!0]).slice(),this.tickColor=u(t.tickColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.borderLineEnable=(t.borderLineEnable||[!0,!0,!0,!0]).slice(),this.borderLineWidth=(t.borderLineWidth||[2,2,2,2]).slice(),this.borderLineColor=u(t.borderLineColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]);var a=t.ticks||[[],[]],o=this._tickBounds;o[0]=o[1]=1/0,o[2]=o[3]=-1/0;for(var s=0;s&lt;2;++s){var l=a[s].slice(0);0!==l.length&amp;&amp;(l.sort(f),o[s]=Math.min(o[s],l[0].x),o[s+2]=Math.max(o[s+2],l[l.length-1].x))}this.grid.update({bounds:o,ticks:a}),this.text.update({bounds:o,ticks:a,labels:t.labels||[&quot;x&quot;,&quot;y&quot;],labelSize:t.labelSize||[12,12],labelFont:t.labelFont||[&quot;sans-serif&quot;,&quot;sans-serif&quot;],title:t.title||&quot;&quot;,titleSize:t.titleSize||18,titleFont:t.titleFont||&quot;sans-serif&quot;}),this.static=!!t.static,this.setDirty()},c.dispose=function(){this.box.dispose(),this.grid.dispose(),this.text.dispose(),this.line.dispose();for(var t=this.objects.length-1;t&gt;=0;--t)this.objects[t].dispose();this.objects.length=0;for(t=this.overlays.length-1;t&gt;=0;--t)this.overlays[t].dispose();this.overlays.length=0,this.gl=null},c.addObject=function(t){this.objects.indexOf(t)&lt;0&amp;&amp;(this.objects.push(t),this.setDirty())},c.removeObject=function(t){for(var e=this.objects,r=0;r&lt;e.length;++r)if(e[r]===t){e.splice(r,1),this.setDirty();break}},c.addOverlay=function(t){this.overlays.indexOf(t)&lt;0&amp;&amp;(this.overlays.push(t),this.setOverlayDirty())},c.removeOverlay=function(t){for(var e=this.overlays,r=0;r&lt;e.length;++r)if(e[r]===t){e.splice(r,1),this.setOverlayDirty();break}}},{&quot;./lib/box&quot;:113,&quot;./lib/grid&quot;:114,&quot;./lib/line&quot;:115,&quot;./lib/text&quot;:117,&quot;gl-select-static&quot;:131}],119:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){t=t||document.body,e=e||{};var r=[.01,1/0];&quot;distanceLimits&quot;in e&amp;&amp;(r[0]=e.distanceLimits[0],r[1]=e.distanceLimits[1]);&quot;zoomMin&quot;in e&amp;&amp;(r[0]=e.zoomMin);&quot;zoomMax&quot;in e&amp;&amp;(r[1]=e.zoomMax);var c=i({center:e.center||[0,0,0],up:e.up||[0,1,0],eye:e.eye||[0,0,10],mode:e.mode||&quot;orbit&quot;,distanceLimits:r}),u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],f=0,h=t.clientWidth,p=t.clientHeight,d={keyBindingMode:&quot;rotate&quot;,enableWheel:!0,view:c,element:t,delay:e.delay||16,rotateSpeed:e.rotateSpeed||1,zoomSpeed:e.zoomSpeed||1,translateSpeed:e.translateSpeed||1,flipX:!!e.flipX,flipY:!!e.flipY,modes:c.modes,_ortho:e._ortho||e.projection&amp;&amp;&quot;orthographic&quot;===e.projection.type||!1,tick:function(){var e=n(),r=this.delay,i=e-2*r;c.idle(e-r),c.recalcMatrix(i),c.flush(e-(100+2*r));for(var a=!0,o=c.computedMatrix,s=0;s&lt;16;++s)a=a&amp;&amp;u[s]===o[s],u[s]=o[s];var l=t.clientWidth===h&amp;&amp;t.clientHeight===p;return h=t.clientWidth,p=t.clientHeight,a?!l:(f=Math.exp(c.computedRadius[0]),!0)},lookAt:function(t,e,r){c.lookAt(c.lastT(),t,e,r)},rotate:function(t,e,r){c.rotate(c.lastT(),t,e,r)},pan:function(t,e,r){c.pan(c.lastT(),t,e,r)},translate:function(t,e,r){c.translate(c.lastT(),t,e,r)}};return Object.defineProperties(d,{matrix:{get:function(){return c.computedMatrix},set:function(t){return c.setMatrix(c.lastT(),t),c.computedMatrix},enumerable:!0},mode:{get:function(){return c.getMode()},set:function(t){var e=c.computedUp.slice(),r=c.computedEye.slice(),i=c.computedCenter.slice();if(c.setMode(t),&quot;turntable&quot;===t){var a=n();c._active.lookAt(a,r,i,e),c._active.lookAt(a+500,r,i,[0,0,1]),c._active.flush(a)}return c.getMode()},enumerable:!0},center:{get:function(){return c.computedCenter},set:function(t){return c.lookAt(c.lastT(),null,t),c.computedCenter},enumerable:!0},eye:{get:function(){return c.computedEye},set:function(t){return c.lookAt(c.lastT(),t),c.computedEye},enumerable:!0},up:{get:function(){return c.computedUp},set:function(t){return c.lookAt(c.lastT(),null,null,t),c.computedUp},enumerable:!0},distance:{get:function(){return f},set:function(t){return c.setDistance(c.lastT(),t),t},enumerable:!0},distanceLimits:{get:function(){return c.getDistanceLimits(r)},set:function(t){return c.setDistanceLimits(t),t},enumerable:!0}}),t.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault(),!1})),d._lastX=-1,d._lastY=-1,d._lastMods={shift:!1,control:!1,alt:!1,meta:!1},d.enableMouseListeners=function(){function e(e,r,i,a){var o=d.keyBindingMode;if(!1!==o){var s=&quot;rotate&quot;===o,l=&quot;pan&quot;===o,u=&quot;zoom&quot;===o,h=!!a.control,p=!!a.alt,m=!!a.shift,g=!!(1&amp;e),v=!!(2&amp;e),y=!!(4&amp;e),x=1/t.clientHeight,b=x*(r-d._lastX),_=x*(i-d._lastY),w=d.flipX?1:-1,T=d.flipY?1:-1,k=Math.PI*d.rotateSpeed,A=n();if(-1!==d._lastX&amp;&amp;-1!==d._lastY&amp;&amp;((s&amp;&amp;g&amp;&amp;!h&amp;&amp;!p&amp;&amp;!m||g&amp;&amp;!h&amp;&amp;!p&amp;&amp;m)&amp;&amp;c.rotate(A,w*k*b,-T*k*_,0),(l&amp;&amp;g&amp;&amp;!h&amp;&amp;!p&amp;&amp;!m||v||g&amp;&amp;h&amp;&amp;!p&amp;&amp;!m)&amp;&amp;c.pan(A,-d.translateSpeed*b*f,d.translateSpeed*_*f,0),u&amp;&amp;g&amp;&amp;!h&amp;&amp;!p&amp;&amp;!m||y||g&amp;&amp;!h&amp;&amp;p&amp;&amp;!m)){var M=-d.zoomSpeed*_/window.innerHeight*(A-c.lastT())*100;c.pan(A,0,0,f*(Math.exp(M)-1))}return d._lastX=r,d._lastY=i,d._lastMods=a,!0}}d.mouseListener=a(t,e),t.addEventListener(&quot;touchstart&quot;,(function(r){var n=s(r.changedTouches[0],t);e(0,n[0],n[1],d._lastMods),e(1,n[0],n[1],d._lastMods)}),!!l&amp;&amp;{passive:!0}),t.addEventListener(&quot;touchmove&quot;,(function(r){var n=s(r.changedTouches[0],t);e(1,n[0],n[1],d._lastMods),r.preventDefault()}),!!l&amp;&amp;{passive:!1}),t.addEventListener(&quot;touchend&quot;,(function(t){e(0,d._lastX,d._lastY,d._lastMods)}),!!l&amp;&amp;{passive:!0}),d.wheelListener=o(t,(function(t,e){if(!1!==d.keyBindingMode&amp;&amp;d.enableWheel){var r=d.flipX?1:-1,i=d.flipY?1:-1,a=n();if(Math.abs(t)&gt;Math.abs(e))c.rotate(a,0,0,-t*r*Math.PI*d.rotateSpeed/window.innerWidth);else if(!d._ortho){var o=-d.zoomSpeed*i*e/window.innerHeight*(a-c.lastT())/20;c.pan(a,0,0,f*(Math.exp(o)-1))}}}),!0)},d.enableMouseListeners(),d};var n=t(&quot;right-now&quot;),i=t(&quot;3d-view&quot;),a=t(&quot;mouse-change&quot;),o=t(&quot;mouse-wheel&quot;),s=t(&quot;mouse-event-offset&quot;),l=t(&quot;has-passive-events&quot;)},{&quot;3d-view&quot;:7,&quot;has-passive-events&quot;:232,&quot;mouse-change&quot;:247,&quot;mouse-event-offset&quot;:248,&quot;mouse-wheel&quot;:250,&quot;right-now&quot;:278}],120:[function(t,e,r){var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision mediump float;\n#define GLSLIFY 1\nattribute vec2 position;\nvarying vec2 uv;\nvoid main() {\n  uv = position;\n  gl_Position = vec4(position, 0, 1);\n}&quot;]),o=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform sampler2D accumBuffer;\nvarying vec2 uv;\n\nvoid main() {\n  vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\n  gl_FragColor = min(vec4(1,1,1,1), accum);\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec2&quot;}])}},{&quot;gl-shader&quot;:132,glslify:231}],121:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./camera.js&quot;),i=t(&quot;gl-axes3d&quot;),a=t(&quot;gl-axes3d/properties&quot;),o=t(&quot;gl-spikes3d&quot;),s=t(&quot;gl-select-static&quot;),l=t(&quot;gl-fbo&quot;),c=t(&quot;a-big-triangle&quot;),u=t(&quot;mouse-change&quot;),f=t(&quot;gl-mat4/perspective&quot;),h=t(&quot;gl-mat4/ortho&quot;),p=t(&quot;./lib/shader&quot;),d=t(&quot;is-mobile&quot;)({tablet:!0,featureDetect:!0});function m(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function g(t){var e=Math.round(Math.log(Math.abs(t))/Math.log(10));if(e&lt;0){var r=Math.round(Math.pow(10,-e));return Math.ceil(t*r)/r}if(e&gt;0){r=Math.round(Math.pow(10,e));return Math.ceil(t/r)*r}return Math.ceil(t)}function v(t){return&quot;boolean&quot;!=typeof t||t}e.exports={createScene:function(t){(t=t||{}).camera=t.camera||{};var e=t.canvas;if(!e){if(e=document.createElement(&quot;canvas&quot;),t.container)t.container.appendChild(e);else document.body.appendChild(e)}var r=t.gl;r||(t.glOptions&amp;&amp;(d=!!t.glOptions.preserveDrawingBuffer),r=function(t,e){var r=null;try{(r=t.getContext(&quot;webgl&quot;,e))||(r=t.getContext(&quot;experimental-webgl&quot;,e))}catch(t){return null}return r}(e,t.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:d}));if(!r)throw new Error(&quot;webgl not supported&quot;);var y=t.bounds||[[-10,-10,-10],[10,10,10]],x=new m,b=l(r,r.drawingBufferWidth,r.drawingBufferHeight,{preferFloat:!d}),_=p(r),w=t.cameraObject&amp;&amp;!0===t.cameraObject._ortho||t.camera.projection&amp;&amp;&quot;orthographic&quot;===t.camera.projection.type||!1,T={eye:t.camera.eye||[2,0,0],center:t.camera.center||[0,0,0],up:t.camera.up||[0,1,0],zoomMin:t.camera.zoomMax||.1,zoomMax:t.camera.zoomMin||100,mode:t.camera.mode||&quot;turntable&quot;,_ortho:w},k=t.axes||{},A=i(r,k);A.enable=!k.disable;var M=t.spikes||{},S=o(r,M),E=[],L=[],C=[],P=[],I=!0,O=!0,z=new Array(16),D=new Array(16),R={view:null,projection:z,model:D,_ortho:!1},F=(O=!0,[r.drawingBufferWidth,r.drawingBufferHeight]),B=t.cameraObject||n(e,T),N={gl:r,contextLost:!1,pixelRatio:t.pixelRatio||1,canvas:e,selection:x,camera:B,axes:A,axesPixels:null,spikes:S,bounds:y,objects:E,shape:F,aspect:t.aspectRatio||[1,1,1],pickRadius:t.pickRadius||10,zNear:t.zNear||.01,zFar:t.zFar||1e3,fovy:t.fovy||Math.PI/4,clearColor:t.clearColor||[0,0,0,0],autoResize:v(t.autoResize),autoBounds:v(t.autoBounds),autoScale:!!t.autoScale,autoCenter:v(t.autoCenter),clipToBounds:v(t.clipToBounds),snapToData:!!t.snapToData,onselect:t.onselect||null,onrender:t.onrender||null,onclick:t.onclick||null,cameraParams:R,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(t){this.aspect[0]=t.x,this.aspect[1]=t.y,this.aspect[2]=t.z,O=!0},setBounds:function(t,e){this.bounds[0][t]=e.min,this.bounds[1][t]=e.max},setClearColor:function(t){this.clearColor=t},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},j=[r.drawingBufferWidth/N.pixelRatio|0,r.drawingBufferHeight/N.pixelRatio|0];function U(){if(!N._stopped&amp;&amp;N.autoResize){var t=e.parentNode,r=1,n=1;t&amp;&amp;t!==document.body?(r=t.clientWidth,n=t.clientHeight):(r=window.innerWidth,n=window.innerHeight);var i=0|Math.ceil(r*N.pixelRatio),a=0|Math.ceil(n*N.pixelRatio);if(i!==e.width||a!==e.height){e.width=i,e.height=a;var o=e.style;o.position=o.position||&quot;absolute&quot;,o.left=&quot;0px&quot;,o.top=&quot;0px&quot;,o.width=r+&quot;px&quot;,o.height=n+&quot;px&quot;,I=!0}}}N.autoResize&amp;&amp;U();function V(){for(var t=E.length,e=P.length,n=0;n&lt;e;++n)C[n]=0;t:for(n=0;n&lt;t;++n){var i=E[n],a=i.pickSlots;if(a){for(var o=0;o&lt;e;++o)if(C[o]+a&lt;255){L[n]=o,i.setPickBase(C[o]+1),C[o]+=a;continue t}var l=s(r,F);L[n]=e,P.push(l),C.push(a),i.setPickBase(1),e+=1}else L[n]=-1}for(;e&gt;0&amp;&amp;0===C[e-1];)C.pop(),P.pop().dispose()}function H(){if(N.contextLost)return!0;r.isContextLost()&amp;&amp;(N.contextLost=!0,N.mouseListener.enabled=!1,N.selection.object=null,N.oncontextloss&amp;&amp;N.oncontextloss())}window.addEventListener(&quot;resize&quot;,U),N.update=function(t){N._stopped||(t=t||{},I=!0,O=!0)},N.add=function(t){N._stopped||(t.axes=A,E.push(t),L.push(-1),I=!0,O=!0,V())},N.remove=function(t){if(!N._stopped){var e=E.indexOf(t);e&lt;0||(E.splice(e,1),L.pop(),I=!0,O=!0,V())}},N.dispose=function(){if(!N._stopped&amp;&amp;(N._stopped=!0,window.removeEventListener(&quot;resize&quot;,U),e.removeEventListener(&quot;webglcontextlost&quot;,H),N.mouseListener.enabled=!1,!N.contextLost)){A.dispose(),S.dispose();for(var t=0;t&lt;E.length;++t)E[t].dispose();b.dispose();for(t=0;t&lt;P.length;++t)P[t].dispose();_.dispose(),r=null,A=null,S=null,E=[]}},N._mouseRotating=!1,N._prevButtons=0,N.enableMouseListeners=function(){N.mouseListener=u(e,(function(t,e,r){if(!N._stopped){var n=P.length,i=E.length,a=x.object;x.distance=1/0,x.mouse[0]=e,x.mouse[1]=r,x.object=null,x.screen=null,x.dataCoordinate=x.dataPosition=null;var o=!1;if(t&amp;&amp;N._prevButtons)N._mouseRotating=!0;else{N._mouseRotating&amp;&amp;(O=!0),N._mouseRotating=!1;for(var s=0;s&lt;n;++s){var l=P[s].query(e,j[1]-r-1,N.pickRadius);if(l){if(l.distance&gt;x.distance)continue;for(var c=0;c&lt;i;++c){var u=E[c];if(L[c]===s){var f=u.pick(l);f&amp;&amp;(x.buttons=t,x.screen=l.coord,x.distance=l.distance,x.object=u,x.index=f.distance,x.dataPosition=f.position,x.dataCoordinate=f.dataCoordinate,x.data=f,o=!0)}}}}}a&amp;&amp;a!==x.object&amp;&amp;(a.highlight&amp;&amp;a.highlight(null),I=!0),x.object&amp;&amp;(x.object.highlight&amp;&amp;x.object.highlight(x.data),I=!0),(o=o||x.object!==a)&amp;&amp;N.onselect&amp;&amp;N.onselect(x),1&amp;t&amp;&amp;!(1&amp;N._prevButtons)&amp;&amp;N.onclick&amp;&amp;N.onclick(x),N._prevButtons=t}}))},e.addEventListener(&quot;webglcontextlost&quot;,H);var q=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],G=[q[0].slice(),q[1].slice()];function Y(){if(!H()){U();var t=N.camera.tick();R.view=N.camera.matrix,I=I||t,O=O||t,A.pixelRatio=N.pixelRatio,S.pixelRatio=N.pixelRatio;var e=E.length,n=q[0],i=q[1];n[0]=n[1]=n[2]=1/0,i[0]=i[1]=i[2]=-1/0;for(var o=0;o&lt;e;++o){(C=E[o]).pixelRatio=N.pixelRatio,C.axes=N.axes,I=I||!!C.dirty,O=O||!!C.dirty;var s=C.bounds;if(s)for(var l=s[0],u=s[1],p=0;p&lt;3;++p)n[p]=Math.min(n[p],l[p]),i[p]=Math.max(i[p],u[p])}var d=N.bounds;if(N.autoBounds)for(p=0;p&lt;3;++p){if(i[p]&lt;n[p])n[p]=-1,i[p]=1;else{n[p]===i[p]&amp;&amp;(n[p]-=1,i[p]+=1);var m=.05*(i[p]-n[p]);n[p]=n[p]-m,i[p]=i[p]+m}d[0][p]=n[p],d[1][p]=i[p]}var v=!1;for(p=0;p&lt;3;++p)v=v||G[0][p]!==d[0][p]||G[1][p]!==d[1][p],G[0][p]=d[0][p],G[1][p]=d[1][p];if(O=O||v,I=I||v){if(v){var y=[0,0,0];for(o=0;o&lt;3;++o)y[o]=g((d[1][o]-d[0][o])/10);A.autoTicks?A.update({bounds:d,tickSpacing:y}):A.update({bounds:d})}var T=r.drawingBufferWidth,k=r.drawingBufferHeight;F[0]=T,F[1]=k,j[0]=0|Math.max(T/N.pixelRatio,1),j[1]=0|Math.max(k/N.pixelRatio,1),function(t,e){var r=t.bounds,n=t.cameraParams,i=n.projection,a=n.model,o=t.gl.drawingBufferWidth,s=t.gl.drawingBufferHeight,l=t.zNear,c=t.zFar,u=t.fovy,p=o/s;e?(h(i,-p,p,-1,1,l,c),n._ortho=!0):(f(i,u,p,l,c),n._ortho=!1);for(var d=0;d&lt;16;++d)a[d]=0;a[15]=1;var m=0;for(d=0;d&lt;3;++d)m=Math.max(m,r[1][d]-r[0][d]);for(d=0;d&lt;3;++d)t.autoScale?a[5*d]=t.aspect[d]/(r[1][d]-r[0][d]):a[5*d]=1/m,t.autoCenter&amp;&amp;(a[12+d]=.5*-a[5*d]*(r[0][d]+r[1][d]))}(N,w);for(o=0;o&lt;e;++o){(C=E[o]).axesBounds=d,N.clipToBounds&amp;&amp;(C.clipBounds=d)}x.object&amp;&amp;(N.snapToData?S.position=x.dataCoordinate:S.position=x.dataPosition,S.bounds=d),O&amp;&amp;(O=!1,function(){if(!H()){r.colorMask(!0,!0,!0,!0),r.depthMask(!0),r.disable(r.BLEND),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL);for(var t=E.length,e=P.length,n=0;n&lt;e;++n){var i=P[n];i.shape=j,i.begin();for(var a=0;a&lt;t;++a)if(L[a]===n){var o=E[a];o.drawPick&amp;&amp;(o.pixelRatio=1,o.drawPick(R))}i.end()}}}()),N.axesPixels=a(N.axes,R,T,k),N.onrender&amp;&amp;N.onrender(),r.bindFramebuffer(r.FRAMEBUFFER,null),r.viewport(0,0,T,k),N.clearRGBA(),r.depthMask(!0),r.colorMask(!0,!0,!0,!0),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL),r.disable(r.BLEND),r.disable(r.CULL_FACE);var M=!1;A.enable&amp;&amp;(M=M||A.isTransparent(),A.draw(R)),S.axes=A,x.object&amp;&amp;S.draw(R),r.disable(r.CULL_FACE);for(o=0;o&lt;e;++o){(C=E[o]).axes=A,C.pixelRatio=N.pixelRatio,C.isOpaque&amp;&amp;C.isOpaque()&amp;&amp;C.draw(R),C.isTransparent&amp;&amp;C.isTransparent()&amp;&amp;(M=!0)}if(M){b.shape=F,b.bind(),r.clear(r.DEPTH_BUFFER_BIT),r.colorMask(!1,!1,!1,!1),r.depthMask(!0),r.depthFunc(r.LESS),A.enable&amp;&amp;A.isTransparent()&amp;&amp;A.drawTransparent(R);for(o=0;o&lt;e;++o){(C=E[o]).isOpaque&amp;&amp;C.isOpaque()&amp;&amp;C.draw(R)}r.enable(r.BLEND),r.blendEquation(r.FUNC_ADD),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.colorMask(!0,!0,!0,!0),r.depthMask(!1),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),A.isTransparent()&amp;&amp;A.drawTransparent(R);for(o=0;o&lt;e;++o){var C;(C=E[o]).isTransparent&amp;&amp;C.isTransparent()&amp;&amp;C.drawTransparent(R)}r.bindFramebuffer(r.FRAMEBUFFER,null),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.disable(r.DEPTH_TEST),_.bind(),b.color[0].bind(0),_.uniforms.accumBuffer=0,c(r),r.disable(r.BLEND)}I=!1;for(o=0;o&lt;e;++o)E[o].dirty=!1}}}return N.enableMouseListeners(),function t(){if(N._stopped||N.contextLost)return;Y(),requestAnimationFrame(t)}(),N.redraw=function(){N._stopped||(I=!0,Y())},N},createCamera:n}},{&quot;./camera.js&quot;:119,&quot;./lib/shader&quot;:120,&quot;a-big-triangle&quot;:8,&quot;gl-axes3d&quot;:70,&quot;gl-axes3d/properties&quot;:77,&quot;gl-fbo&quot;:86,&quot;gl-mat4/ortho&quot;:101,&quot;gl-mat4/perspective&quot;:102,&quot;gl-select-static&quot;:131,&quot;gl-spikes3d&quot;:141,&quot;is-mobile&quot;:238,&quot;mouse-change&quot;:247}],122:[function(t,e,r){var n=t(&quot;glslify&quot;);r.pointVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform float pointCloud;\n\nhighp float rand(vec2 co) {\n  highp float a = 12.9898;\n  highp float b = 78.233;\n  highp float c = 43758.5453;\n  highp float d = dot(co.xy, vec2(a, b));\n  highp float e = mod(d, 3.14);\n  return fract(sin(e) * c);\n}\n\nvoid main() {\n  vec3 hgPosition = matrix * vec3(position, 1);\n  gl_Position  = vec4(hgPosition.xy, 0, hgPosition.z);\n    // if we don't jitter the point size a bit, overall point cloud\n    // saturation 'jumps' on zooming, which is disturbing and confusing\n  gl_PointSize = pointSize * ((19.5 + rand(position)) / 20.0);\n  if(pointCloud != 0.0) { // pointCloud is truthy\n    // get the same square surface as circle would be\n    gl_PointSize *= 0.886;\n  }\n}&quot;]),r.pointFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color, borderColor;\nuniform float centerFraction;\nuniform float pointCloud;\n\nvoid main() {\n  float radius;\n  vec4 baseColor;\n  if(pointCloud != 0.0) { // pointCloud is truthy\n    if(centerFraction == 1.0) {\n      gl_FragColor = color;\n    } else {\n      gl_FragColor = mix(borderColor, color, centerFraction);\n    }\n  } else {\n    radius = length(2.0 * gl_PointCoord.xy - 1.0);\n    if(radius &gt; 1.0) {\n      discard;\n    }\n    baseColor = mix(borderColor, color, step(radius, centerFraction));\n    gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\n  }\n}\n&quot;]),r.pickVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform vec4 pickOffset;\n\nvarying vec4 fragId;\n\nvoid main() {\n  vec3 hgPosition = matrix * vec3(position, 1);\n  gl_Position  = vec4(hgPosition.xy, 0, hgPosition.z);\n  gl_PointSize = pointSize;\n\n  vec4 id = pickId + pickOffset;\n  id.y += floor(id.x / 256.0);\n  id.x -= floor(id.x / 256.0) * 256.0;\n\n  id.z += floor(id.y / 256.0);\n  id.y -= floor(id.y / 256.0) * 256.0;\n\n  id.w += floor(id.z / 256.0);\n  id.z -= floor(id.z / 256.0) * 256.0;\n\n  fragId = id;\n}\n&quot;]),r.pickFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\n\nvoid main() {\n  float radius = length(2.0 * gl_PointCoord.xy - 1.0);\n  if(radius &gt; 1.0) {\n    discard;\n  }\n  gl_FragColor = fragId / 255.0;\n}\n&quot;])},{glslify:231}],123:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;typedarray-pool&quot;),o=t(&quot;./lib/shader&quot;);function s(t,e,r,n,i){this.plot=t,this.offsetBuffer=e,this.pickBuffer=r,this.shader=n,this.pickShader=i,this.sizeMin=.5,this.sizeMinCap=2,this.sizeMax=20,this.areaRatio=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.blend=!1,this.pickOffset=0,this.points=null}e.exports=function(t,e){var r=t.gl,a=i(r),l=i(r),c=n(r,o.pointVertex,o.pointFragment),u=n(r,o.pickVertex,o.pickFragment),f=new s(t,a,l,c,u);return f.update(e),t.addObject(f),f};var l,c,u=s.prototype;u.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.plot.removeObject(this)},u.update=function(t){var e;function r(e,r){return e in t?t[e]:r}t=t||{},this.sizeMin=r(&quot;sizeMin&quot;,.5),this.sizeMax=r(&quot;sizeMax&quot;,20),this.color=r(&quot;color&quot;,[1,0,0,1]).slice(),this.areaRatio=r(&quot;areaRatio&quot;,1),this.borderColor=r(&quot;borderColor&quot;,[0,0,0,1]).slice(),this.blend=r(&quot;blend&quot;,!1);var n=t.positions.length&gt;&gt;&gt;1,i=t.positions instanceof Float32Array,o=t.idToIndex instanceof Int32Array&amp;&amp;t.idToIndex.length&gt;=n,s=t.positions,l=i?s:a.mallocFloat32(s.length),c=o?t.idToIndex:a.mallocInt32(n);if(i||l.set(s),!o)for(l.set(s),e=0;e&lt;n;e++)c[e]=e;this.points=s,this.offsetBuffer.update(l),this.pickBuffer.update(c),i||a.free(l),o||a.free(c),this.pointCount=n,this.pickOffset=0},u.unifiedDraw=(l=[1,0,0,0,1,0,0,0,1],c=[0,0,0,0],function(t){var e=void 0!==t,r=e?this.pickShader:this.shader,n=this.plot.gl,i=this.plot.dataBox;if(0===this.pointCount)return t;var a=i[2]-i[0],o=i[3]-i[1],s=function(t,e){var r,n=0,i=t.length&gt;&gt;&gt;1;for(r=0;r&lt;i;r++){var a=t[2*r],o=t[2*r+1];a&gt;=e[0]&amp;&amp;a&lt;=e[2]&amp;&amp;o&gt;=e[1]&amp;&amp;o&lt;=e[3]&amp;&amp;n++}return n}(this.points,i),u=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(s,.33333)));l[0]=2/a,l[4]=2/o,l[6]=-2*i[0]/a-1,l[7]=-2*i[1]/o-1,this.offsetBuffer.bind(),r.bind(),r.attributes.position.pointer(),r.uniforms.matrix=l,r.uniforms.color=this.color,r.uniforms.borderColor=this.borderColor,r.uniforms.pointCloud=u&lt;5,r.uniforms.pointSize=u,r.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),e&amp;&amp;(c[0]=255&amp;t,c[1]=t&gt;&gt;8&amp;255,c[2]=t&gt;&gt;16&amp;255,c[3]=t&gt;&gt;24&amp;255,this.pickBuffer.bind(),r.attributes.pickId.pointer(n.UNSIGNED_BYTE),r.uniforms.pickOffset=c,this.pickOffset=t);var f=n.getParameter(n.BLEND),h=n.getParameter(n.DITHER);return f&amp;&amp;!this.blend&amp;&amp;n.disable(n.BLEND),h&amp;&amp;n.disable(n.DITHER),n.drawArrays(n.POINTS,0,this.pointCount),f&amp;&amp;!this.blend&amp;&amp;n.enable(n.BLEND),h&amp;&amp;n.enable(n.DITHER),t+this.pointCount}),u.draw=u.unifiedDraw,u.drawPick=u.unifiedDraw,u.pick=function(t,e,r){var n=this.pickOffset,i=this.pointCount;if(r&lt;n||r&gt;=n+i)return null;var a=r-n,o=this.points;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}}},{&quot;./lib/shader&quot;:122,&quot;gl-buffer&quot;:78,&quot;gl-shader&quot;:132,&quot;typedarray-pool&quot;:308}],124:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c=e[0],u=e[1],f=e[2],h=e[3],p=r[0],d=r[1],m=r[2],g=r[3];(a=c*p+u*d+f*m+h*g)&lt;0&amp;&amp;(a=-a,p=-p,d=-d,m=-m,g=-g);1-a&gt;1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n);return t[0]=s*c+l*p,t[1]=s*u+l*d,t[2]=s*f+l*m,t[3]=s*h+l*g,t}},{}],125:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t||0===t?t.toString():&quot;&quot;}},{}],126:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;vectorize-text&quot;);e.exports=function(t,e,r){var a=i[e];a||(a=i[e]={});if(t in a)return a[t];var o={textAlign:&quot;center&quot;,textBaseline:&quot;middle&quot;,lineHeight:1,font:e,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},triangles:!0},s=n(t,o);o.triangles=!1;var l,c,u=n(t,o);if(r&amp;&amp;1!==r){for(l=0;l&lt;s.positions.length;++l)for(c=0;c&lt;s.positions[l].length;++c)s.positions[l][c]/=r;for(l=0;l&lt;u.positions.length;++l)for(c=0;c&lt;u.positions[l].length;++c)u.positions[l][c]/=r}var f=[[1/0,1/0],[-1/0,-1/0]],h=u.positions.length;for(l=0;l&lt;h;++l){var p=u.positions[l];for(c=0;c&lt;2;++c)f[0][c]=Math.min(f[0][c],p[c]),f[1][c]=Math.max(f[1][c],p[c])}return a[t]=[s,u,f]};var i={}},{&quot;vectorize-text&quot;:311}],127:[function(t,e,r){var n=t(&quot;gl-shader&quot;),i=t(&quot;glslify&quot;),a=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform vec4 highlightId;\nuniform float highlightScale;\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float scale = 1.0;\n    if(distance(highlightId, id) &lt; 0.0001) {\n      scale = highlightScale;\n    }\n\n    vec4 worldPosition = model * vec4(position, 1);\n    vec4 viewPosition = view * worldPosition;\n    viewPosition = viewPosition / viewPosition.w;\n    vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\n\n    gl_Position = clipPosition;\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = position;\n  }\n}&quot;]),o=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float highlightScale, pixelRatio;\nuniform vec4 highlightId;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float scale = pixelRatio;\n    if(distance(highlightId.bgr, id.bgr) &lt; 0.001) {\n      scale *= highlightScale;\n    }\n\n    vec4 worldPosition = model * vec4(position, 1.0);\n    vec4 viewPosition = view * worldPosition;\n    vec4 clipPosition = projection * viewPosition;\n    clipPosition /= clipPosition.w;\n\n    gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = position;\n  }\n}&quot;]),s=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform float highlightScale;\nuniform vec4 highlightId;\nuniform vec3 axes[2];\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float scale, pixelRatio;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float lscale = pixelRatio * scale;\n    if(distance(highlightId, id) &lt; 0.0001) {\n      lscale *= highlightScale;\n    }\n\n    vec4 clipCenter   = projection * view * model * vec4(position, 1);\n    vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\n    vec4 clipPosition = projection * view * model * vec4(dataPosition, 1);\n\n    gl_Position = clipPosition;\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = dataPosition;\n  }\n}\n&quot;]),l=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float opacity;\n\nvarying vec4 interpColor;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (\n    outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) ||\n    interpColor.a * opacity == 0.\n  ) discard;\n  gl_FragColor = interpColor * opacity;\n}\n&quot;]),c=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float pickGroup;\n\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\n\n  gl_FragColor = vec4(pickGroup, pickId.bgr);\n}&quot;]),u=[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;glyph&quot;,type:&quot;vec2&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}],f={vertex:a,fragment:l,attributes:u},h={vertex:o,fragment:l,attributes:u},p={vertex:s,fragment:l,attributes:u},d={vertex:a,fragment:c,attributes:u},m={vertex:o,fragment:c,attributes:u},g={vertex:s,fragment:c,attributes:u};function v(t,e){var r=n(t,e),i=r.attributes;return i.position.location=0,i.color.location=1,i.glyph.location=2,i.id.location=3,r}r.createPerspective=function(t){return v(t,f)},r.createOrtho=function(t){return v(t,h)},r.createProject=function(t){return v(t,p)},r.createPickPerspective=function(t){return v(t,d)},r.createPickOrtho=function(t){return v(t,m)},r.createPickProject=function(t){return v(t,g)}},{&quot;gl-shader&quot;:132,glslify:231}],128:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-string-blank&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;typedarray-pool&quot;),s=t(&quot;gl-mat4/multiply&quot;),l=t(&quot;./lib/shaders&quot;),c=t(&quot;./lib/glyphs&quot;),u=t(&quot;./lib/get-simple-string&quot;),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];return t[0]=e[0]*r+e[4]*n+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*n+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*n+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*n+e[11]*i+e[15]*a,t}function p(t,e,r,n){return h(n,n),h(n,n),h(n,n)}function d(t,e){this.index=t,this.dataCoordinate=this.position=e}function m(t){return!0===t||t&gt;1?1:t}function g(t,e,r,n,i,a,o,s,l,c,u,f){this.gl=t,this.pixelRatio=1,this.shader=e,this.orthoShader=r,this.projectShader=n,this.pointBuffer=i,this.colorBuffer=a,this.glyphBuffer=o,this.idBuffer=s,this.vao=l,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[2/3,2/3,2/3],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=c,this.pickOrthoShader=u,this.pickProjectShader=f,this.points=[],this._selectResult=new d(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}e.exports=function(t){var e=t.gl,r=l.createPerspective(e),n=l.createOrtho(e),o=l.createProject(e),s=l.createPickPerspective(e),c=l.createPickOrtho(e),u=l.createPickProject(e),f=i(e),h=i(e),p=i(e),d=i(e),m=a(e,[{buffer:f,size:3,type:e.FLOAT},{buffer:h,size:4,type:e.FLOAT},{buffer:p,size:2,type:e.FLOAT},{buffer:d,size:4,type:e.UNSIGNED_BYTE,normalized:!0}]),v=new g(e,r,n,o,f,h,p,d,m,s,c,u);return v.update(t),v};var v=g.prototype;v.pickSlots=1,v.setPickBase=function(t){this.pickId=t},v.isTransparent=function(){if(this.hasAlpha)return!0;for(var t=0;t&lt;3;++t)if(this.axesProject[t]&amp;&amp;this.projectHasAlpha)return!0;return!1},v.isOpaque=function(){if(!this.hasAlpha)return!0;for(var t=0;t&lt;3;++t)if(this.axesProject[t]&amp;&amp;!this.projectHasAlpha)return!0;return!1};var y=[0,0],x=[0,0,0],b=[0,0,0],_=[0,0,0,1],w=[0,0,0,1],T=f.slice(),k=[0,0,0],A=[[0,0,0],[0,0,0]];function M(t){return t[0]=t[1]=t[2]=0,t}function S(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=1,t}function E(t,e,r,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[r]=n,t}function L(t,e,r,n){var i,a=e.axesProject,o=e.gl,l=t.uniforms,c=r.model||f,u=r.view||f,h=r.projection||f,d=e.axesBounds,m=function(t){for(var e=A,r=0;r&lt;2;++r)for(var n=0;n&lt;3;++n)e[r][n]=Math.max(Math.min(t[r][n],1e8),-1e8);return e}(e.clipBounds);i=e.axes&amp;&amp;e.axes.lastCubeProps?e.axes.lastCubeProps.axis:[1,1,1],y[0]=2/o.drawingBufferWidth,y[1]=2/o.drawingBufferHeight,t.bind(),l.view=u,l.projection=h,l.screenSize=y,l.highlightId=e.highlightId,l.highlightScale=e.highlightScale,l.clipBounds=m,l.pickGroup=e.pickId/255,l.pixelRatio=n;for(var g=0;g&lt;3;++g)if(a[g]){l.scale=e.projectScale[g],l.opacity=e.projectOpacity[g];for(var v=T,L=0;L&lt;16;++L)v[L]=0;for(L=0;L&lt;4;++L)v[5*L]=1;v[5*g]=0,i[g]&lt;0?v[12+g]=d[0][g]:v[12+g]=d[1][g],s(v,c,v),l.model=v;var C=(g+1)%3,P=(g+2)%3,I=M(x),O=M(b);I[C]=1,O[P]=1;var z=p(0,0,0,S(_,I)),D=p(0,0,0,S(w,O));if(Math.abs(z[1])&gt;Math.abs(D[1])){var R=z;z=D,D=R,R=I,I=O,O=R;var F=C;C=P,P=F}z[0]&lt;0&amp;&amp;(I[C]=-1),D[1]&gt;0&amp;&amp;(O[P]=-1);var B=0,N=0;for(L=0;L&lt;4;++L)B+=Math.pow(c[4*C+L],2),N+=Math.pow(c[4*P+L],2);I[C]/=Math.sqrt(B),O[P]/=Math.sqrt(N),l.axes[0]=I,l.axes[1]=O,l.fragClipBounds[0]=E(k,m[0],g,-1e8),l.fragClipBounds[1]=E(k,m[1],g,1e8),e.vao.bind(),e.vao.draw(o.TRIANGLES,e.vertexCount),e.lineWidth&gt;0&amp;&amp;(o.lineWidth(e.lineWidth*n),e.vao.draw(o.LINES,e.lineVertexCount,e.vertexCount)),e.vao.unbind()}}var C=[[-1e8,-1e8,-1e8],[1e8,1e8,1e8]];function P(t,e,r,n,i,a,o){var s=r.gl;if((a===r.projectHasAlpha||o)&amp;&amp;L(e,r,n,i),a===r.hasAlpha||o){t.bind();var l=t.uniforms;l.model=n.model||f,l.view=n.view||f,l.projection=n.projection||f,y[0]=2/s.drawingBufferWidth,y[1]=2/s.drawingBufferHeight,l.screenSize=y,l.highlightId=r.highlightId,l.highlightScale=r.highlightScale,l.fragClipBounds=C,l.clipBounds=r.axes.bounds,l.opacity=r.opacity,l.pickGroup=r.pickId/255,l.pixelRatio=i,r.vao.bind(),r.vao.draw(s.TRIANGLES,r.vertexCount),r.lineWidth&gt;0&amp;&amp;(s.lineWidth(r.lineWidth*i),r.vao.draw(s.LINES,r.lineVertexCount,r.vertexCount)),r.vao.unbind()}}function I(t,e,r,i){var a;a=Array.isArray(t)?e&lt;t.length?t[e]:void 0:t,a=u(a);var o=!0;n(a)&amp;&amp;(a=&quot;\u25bc&quot;,o=!1);var s=c(a,r,i);return{mesh:s[0],lines:s[1],bounds:s[2],visible:o}}v.draw=function(t){P(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,this.pixelRatio,!1,!1)},v.drawTransparent=function(t){P(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,this.pixelRatio,!0,!1)},v.drawPick=function(t){P(this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader,this.pickProjectShader,this,t,1,!0,!0)},v.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[2]+(t.value[1]&lt;&lt;8)+(t.value[0]&lt;&lt;16);if(e&gt;=this.pointCount||e&lt;0)return null;var r=this.points[e],n=this._selectResult;n.index=e;for(var i=0;i&lt;3;++i)n.position[i]=n.dataCoordinate[i]=r[i];return n},v.highlight=function(t){if(t){var e=t.index,r=255&amp;e,n=e&gt;&gt;8&amp;255,i=e&gt;&gt;16&amp;255;this.highlightId=[r/255,n/255,i/255,0]}else this.highlightId=[1,1,1,1]},v.update=function(t){if(&quot;perspective&quot;in(t=t||{})&amp;&amp;(this.useOrtho=!t.perspective),&quot;orthographic&quot;in t&amp;&amp;(this.useOrtho=!!t.orthographic),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;project&quot;in t)if(Array.isArray(t.project))this.axesProject=t.project;else{var e=!!t.project;this.axesProject=[e,e,e]}if(&quot;projectScale&quot;in t)if(Array.isArray(t.projectScale))this.projectScale=t.projectScale.slice();else{var r=+t.projectScale;this.projectScale=[r,r,r]}if(this.projectHasAlpha=!1,&quot;projectOpacity&quot;in t){if(Array.isArray(t.projectOpacity))this.projectOpacity=t.projectOpacity.slice();else{r=+t.projectOpacity;this.projectOpacity=[r,r,r]}for(var n=0;n&lt;3;++n)this.projectOpacity[n]=m(this.projectOpacity[n]),this.projectOpacity[n]&lt;1&amp;&amp;(this.projectHasAlpha=!0)}this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=m(t.opacity),this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0)),this.dirty=!0;var i,a,s=t.position,l=t.font||&quot;normal&quot;,c=t.alignment||[0,0];if(2===c.length)i=c[0],a=c[1];else{i=[],a=[];for(n=0;n&lt;c.length;++n)i[n]=c[n][0],a[n]=c[n][1]}var u=[1/0,1/0,1/0],f=[-1/0,-1/0,-1/0],h=t.glyph,p=t.color,d=t.size,g=t.angle,v=t.lineColor,y=-1,x=0,b=0,_=0;if(s.length){_=s.length;t:for(n=0;n&lt;_;++n){for(var w=s[n],T=0;T&lt;3;++T)if(isNaN(w[T])||!isFinite(w[T]))continue t;var k=(N=I(h,n,l,this.pixelRatio)).mesh,A=N.lines,M=N.bounds;x+=3*k.cells.length,b+=2*A.edges.length}}var S=x+b,E=o.mallocFloat(3*S),L=o.mallocFloat(4*S),C=o.mallocFloat(2*S),P=o.mallocUint32(S);if(S&gt;0){var O=0,z=x,D=[0,0,0,1],R=[0,0,0,1],F=Array.isArray(p)&amp;&amp;Array.isArray(p[0]),B=Array.isArray(v)&amp;&amp;Array.isArray(v[0]);t:for(n=0;n&lt;_;++n){y+=1;for(w=s[n],T=0;T&lt;3;++T){if(isNaN(w[T])||!isFinite(w[T]))continue t;f[T]=Math.max(f[T],w[T]),u[T]=Math.min(u[T],w[T])}k=(N=I(h,n,l,this.pixelRatio)).mesh,A=N.lines,M=N.bounds;var N,j=N.visible;if(j)if(Array.isArray(p)){if(3===(U=F?n&lt;p.length?p[n]:[0,0,0,0]:p).length){for(T=0;T&lt;3;++T)D[T]=U[T];D[3]=1}else if(4===U.length){for(T=0;T&lt;4;++T)D[T]=U[T];!this.hasAlpha&amp;&amp;U[3]&lt;1&amp;&amp;(this.hasAlpha=!0)}}else D[0]=D[1]=D[2]=0,D[3]=1;else D=[1,1,1,0];if(j)if(Array.isArray(v)){var U;if(3===(U=B?n&lt;v.length?v[n]:[0,0,0,0]:v).length){for(T=0;T&lt;3;++T)R[T]=U[T];R[T]=1}else if(4===U.length){for(T=0;T&lt;4;++T)R[T]=U[T];!this.hasAlpha&amp;&amp;U[3]&lt;1&amp;&amp;(this.hasAlpha=!0)}}else R[0]=R[1]=R[2]=0,R[3]=1;else R=[1,1,1,0];var V=.5;j?Array.isArray(d)?V=n&lt;d.length?+d[n]:12:d?V=+d:this.useOrtho&amp;&amp;(V=12):V=0;var H=0;Array.isArray(g)?H=n&lt;g.length?+g[n]:0:g&amp;&amp;(H=+g);var q=Math.cos(H),G=Math.sin(H);for(w=s[n],T=0;T&lt;3;++T)f[T]=Math.max(f[T],w[T]),u[T]=Math.min(u[T],w[T]);var Y=i,W=a;Y=0;Array.isArray(i)?Y=n&lt;i.length?i[n]:0:i&amp;&amp;(Y=i);W=0;Array.isArray(a)?W=n&lt;a.length?a[n]:0:a&amp;&amp;(W=a);var X=[Y*=Y&gt;0?1-M[0][0]:Y&lt;0?1+M[1][0]:1,W*=W&gt;0?1-M[0][1]:W&lt;0?1+M[1][1]:1],Z=k.cells||[],J=k.positions||[];for(T=0;T&lt;Z.length;++T)for(var K=Z[T],Q=0;Q&lt;3;++Q){for(var $=0;$&lt;3;++$)E[3*O+$]=w[$];for($=0;$&lt;4;++$)L[4*O+$]=D[$];P[O]=y;var tt=J[K[Q]];C[2*O]=V*(q*tt[0]-G*tt[1]+X[0]),C[2*O+1]=V*(G*tt[0]+q*tt[1]+X[1]),O+=1}for(Z=A.edges,J=A.positions,T=0;T&lt;Z.length;++T)for(K=Z[T],Q=0;Q&lt;2;++Q){for($=0;$&lt;3;++$)E[3*z+$]=w[$];for($=0;$&lt;4;++$)L[4*z+$]=R[$];P[z]=y;tt=J[K[Q]];C[2*z]=V*(q*tt[0]-G*tt[1]+X[0]),C[2*z+1]=V*(G*tt[0]+q*tt[1]+X[1]),z+=1}}}this.bounds=[u,f],this.points=s,this.pointCount=s.length,this.vertexCount=x,this.lineVertexCount=b,this.pointBuffer.update(E),this.colorBuffer.update(L),this.glyphBuffer.update(C),this.idBuffer.update(P),o.free(E),o.free(L),o.free(C),o.free(P)},v.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()}},{&quot;./lib/get-simple-string&quot;:125,&quot;./lib/glyphs&quot;:126,&quot;./lib/shaders&quot;:127,&quot;gl-buffer&quot;:78,&quot;gl-mat4/multiply&quot;:100,&quot;gl-vao&quot;:150,&quot;is-string-blank&quot;:239,&quot;typedarray-pool&quot;:308}],129:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;);r.boxVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 vertex;\n\nuniform vec2 cornerA, cornerB;\n\nvoid main() {\n  gl_Position = vec4(mix(cornerA, cornerB, vertex), 0, 1);\n}\n&quot;]),r.boxFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color;\n\nvoid main() {\n  gl_FragColor = color;\n}\n&quot;])},{glslify:231}],130:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;./lib/shaders&quot;);function o(t,e,r){this.plot=t,this.boxBuffer=e,this.boxShader=r,this.enabled=!0,this.selectBox=[1/0,1/0,-1/0,-1/0],this.borderColor=[0,0,0,1],this.innerFill=!1,this.innerColor=[0,0,0,.25],this.outerFill=!0,this.outerColor=[0,0,0,.5],this.borderWidth=10}e.exports=function(t,e){var r=t.gl,s=i(r,[0,0,0,1,1,0,1,1]),l=n(r,a.boxVertex,a.boxFragment),c=new o(t,s,l);return c.update(e),t.addOverlay(c),c};var s=o.prototype;s.draw=function(){if(this.enabled){var t=this.plot,e=this.selectBox,r=this.borderWidth,n=(this.innerFill,this.innerColor),i=(this.outerFill,this.outerColor),a=this.borderColor,o=t.box,s=t.screenBox,l=t.dataBox,c=t.viewBox,u=t.pixelRatio,f=(e[0]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],h=(e[1]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1],p=(e[2]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],d=(e[3]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1];if(f=Math.max(f,c[0]),h=Math.max(h,c[1]),p=Math.min(p,c[2]),d=Math.min(d,c[3]),!(p&lt;f||d&lt;h)){o.bind();var m=s[2]-s[0],g=s[3]-s[1];if(this.outerFill&amp;&amp;(o.drawBox(0,0,m,h,i),o.drawBox(0,h,f,d,i),o.drawBox(0,d,m,g,i),o.drawBox(p,h,m,d,i)),this.innerFill&amp;&amp;o.drawBox(f,h,p,d,n),r&gt;0){var v=r*u;o.drawBox(f-v,h-v,p+v,h+v,a),o.drawBox(f-v,d-v,p+v,d+v,a),o.drawBox(f-v,h-v,f+v,d+v,a),o.drawBox(p-v,h-v,p+v,d+v,a)}}}},s.update=function(t){t=t||{},this.innerFill=!!t.innerFill,this.outerFill=!!t.outerFill,this.innerColor=(t.innerColor||[0,0,0,.5]).slice(),this.outerColor=(t.outerColor||[0,0,0,.5]).slice(),this.borderColor=(t.borderColor||[0,0,0,1]).slice(),this.borderWidth=t.borderWidth||0,this.selectBox=(t.selectBox||this.selectBox).slice()},s.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)}},{&quot;./lib/shaders&quot;:129,&quot;gl-buffer&quot;:78,&quot;gl-shader&quot;:132}],131:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=e[0],a=e[1],o=n(t,r,a,{}),s=i.mallocUint8(r*a*4);return new l(t,o,s)};var n=t(&quot;gl-fbo&quot;),i=t(&quot;typedarray-pool&quot;),a=t(&quot;ndarray&quot;),o=t(&quot;bit-twiddle&quot;).nextPow2;function s(t,e,r,n,i){this.coord=[t,e],this.id=r,this.value=n,this.distance=i}function l(t,e,r){this.gl=t,this.fbo=e,this.buffer=r,this._readTimeout=null;var n=this;this._readCallback=function(){n.gl&amp;&amp;(e.bind(),t.readPixels(0,0,e.shape[0],e.shape[1],t.RGBA,t.UNSIGNED_BYTE,n.buffer),n._readTimeout=null)}}var c=l.prototype;Object.defineProperty(c,&quot;shape&quot;,{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(t){if(this.gl){this.fbo.shape=t;var e=this.fbo.shape[0],r=this.fbo.shape[1];if(r*e*4&gt;this.buffer.length){i.free(this.buffer);for(var n=this.buffer=i.mallocUint8(o(r*e*4)),a=0;a&lt;r*e*4;++a)n[a]=255}return t}}}),c.begin=function(){var t=this.gl;this.shape;t&amp;&amp;(this.fbo.bind(),t.clearColor(1,1,1,1),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT))},c.end=function(){var t=this.gl;t&amp;&amp;(t.bindFramebuffer(t.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},c.query=function(t,e,r){if(!this.gl)return null;var n=this.fbo.shape.slice();t|=0,e|=0,&quot;number&quot;!=typeof r&amp;&amp;(r=1);var i=0|Math.min(Math.max(t-r,0),n[0]),o=0|Math.min(Math.max(t+r,0),n[0]),l=0|Math.min(Math.max(e-r,0),n[1]),c=0|Math.min(Math.max(e+r,0),n[1]);if(o&lt;=i||c&lt;=l)return null;var u=[o-i,c-l],f=a(this.buffer,[u[0],u[1],4],[4,4*n[0],1],4*(i+n[0]*l)),h=function(t,e,r){for(var n=1e8,i=-1,a=-1,o=t.shape[0],s=t.shape[1],l=0;l&lt;o;l++)for(var c=0;c&lt;s;c++){var u=t.get(l,c,0),f=t.get(l,c,1),h=t.get(l,c,2),p=t.get(l,c,3);if(u&lt;255||f&lt;255||h&lt;255||p&lt;255){var d=e-l,m=r-c,g=d*d+m*m;g&lt;n&amp;&amp;(n=g,i=l,a=c)}}return[i,a,n]}(f.hi(u[0],u[1],1),r,r),p=h[0],d=h[1];return p&lt;0||Math.pow(this.radius,2)&lt;h[2]?null:new s(p+i|0,d+l|0,f.get(p,d,0),[f.get(p,d,1),f.get(p,d,2),f.get(p,d,3)],Math.sqrt(h[2]))},c.dispose=function(){this.gl&amp;&amp;(this.fbo.dispose(),i.free(this.buffer),this.gl=null,this._readTimeout&amp;&amp;clearTimeout(this._readTimeout))}},{&quot;bit-twiddle&quot;:32,&quot;gl-fbo&quot;:86,ndarray:259,&quot;typedarray-pool&quot;:308}],132:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/create-uniforms&quot;),i=t(&quot;./lib/create-attributes&quot;),a=t(&quot;./lib/reflect&quot;),o=t(&quot;./lib/shader-cache&quot;),s=t(&quot;./lib/runtime-reflect&quot;),l=t(&quot;./lib/GLError&quot;);function c(t){this.gl=t,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}var u=c.prototype;function f(t,e){return t.name&lt;e.name?-1:1}u.bind=function(){var t;this.program||this._relink();var e=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),r=this.gl.lastAttribCount;if(e&gt;r)for(t=r;t&lt;e;t++)this.gl.enableVertexAttribArray(t);else if(r&gt;e)for(t=e;t&lt;r;t++)this.gl.disableVertexAttribArray(t);this.gl.lastAttribCount=e,this.gl.useProgram(this.program)},u.dispose=function(){for(var t=this.gl.lastAttribCount,e=0;e&lt;t;e++)this.gl.disableVertexAttribArray(e);this.gl.lastAttribCount=0,this._fref&amp;&amp;this._fref.dispose(),this._vref&amp;&amp;this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null},u.update=function(t,e,r,c){if(!e||1===arguments.length){var u=t;t=u.vertex,e=u.fragment,r=u.uniforms,c=u.attributes}var h=this,p=h.gl,d=h._vref;h._vref=o.shader(p,p.VERTEX_SHADER,t),d&amp;&amp;d.dispose(),h.vertShader=h._vref.shader;var m=this._fref;if(h._fref=o.shader(p,p.FRAGMENT_SHADER,e),m&amp;&amp;m.dispose(),h.fragShader=h._fref.shader,!r||!c){var g=p.createProgram();if(p.attachShader(g,h.fragShader),p.attachShader(g,h.vertShader),p.linkProgram(g),!p.getProgramParameter(g,p.LINK_STATUS)){var v=p.getProgramInfoLog(g);throw new l(v,&quot;Error linking program:&quot;+v)}r=r||s.uniforms(p,g),c=c||s.attributes(p,g),p.deleteProgram(g)}(c=c.slice()).sort(f);var y,x=[],b=[],_=[];for(y=0;y&lt;c.length;++y){var w=c[y];if(w.type.indexOf(&quot;mat&quot;)&gt;=0){for(var T=0|w.type.charAt(w.type.length-1),k=new Array(T),A=0;A&lt;T;++A)k[A]=_.length,b.push(w.name+&quot;[&quot;+A+&quot;]&quot;),&quot;number&quot;==typeof w.location?_.push(w.location+A):Array.isArray(w.location)&amp;&amp;w.location.length===T&amp;&amp;&quot;number&quot;==typeof w.location[A]?_.push(0|w.location[A]):_.push(-1);x.push({name:w.name,type:w.type,locations:k})}else x.push({name:w.name,type:w.type,locations:[_.length]}),b.push(w.name),&quot;number&quot;==typeof w.location?_.push(0|w.location):_.push(-1)}var M=0;for(y=0;y&lt;_.length;++y)if(_[y]&lt;0){for(;_.indexOf(M)&gt;=0;)M+=1;_[y]=M}var S=new Array(r.length);function E(){h.program=o.program(p,h._vref,h._fref,b,_);for(var t=0;t&lt;r.length;++t)S[t]=p.getUniformLocation(h.program,r[t].name)}E(),h._relink=E,h.types={uniforms:a(r),attributes:a(c)},h.attributes=i(p,h,x,_),Object.defineProperty(h,&quot;uniforms&quot;,n(p,h,r,S))},e.exports=function(t,e,r,n,i){var a=new c(t);return a.update(e,r,n,i),a}},{&quot;./lib/GLError&quot;:133,&quot;./lib/create-attributes&quot;:134,&quot;./lib/create-uniforms&quot;:135,&quot;./lib/reflect&quot;:136,&quot;./lib/runtime-reflect&quot;:137,&quot;./lib/shader-cache&quot;:138}],133:[function(t,e,r){function n(t,e,r){this.shortMessage=e||&quot;&quot;,this.longMessage=r||&quot;&quot;,this.rawError=t||&quot;&quot;,this.message=&quot;gl-shader: &quot;+(e||t||&quot;&quot;)+(r?&quot;\n&quot;+r:&quot;&quot;),this.stack=(new Error).stack}n.prototype=new Error,n.prototype.name=&quot;GLError&quot;,n.prototype.constructor=n,e.exports=n},{}],134:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,i){for(var a={},o=0,c=r.length;o&lt;c;++o){var u=r[o],f=u.name,h=u.type,p=u.locations;switch(h){case&quot;bool&quot;:case&quot;int&quot;:case&quot;float&quot;:s(t,e,p[0],i,1,a,f);break;default:if(h.indexOf(&quot;vec&quot;)&gt;=0){if((d=h.charCodeAt(h.length-1)-48)&lt;2||d&gt;4)throw new n(&quot;&quot;,&quot;Invalid data type for attribute &quot;+f+&quot;: &quot;+h);s(t,e,p[0],i,d,a,f)}else{if(!(h.indexOf(&quot;mat&quot;)&gt;=0))throw new n(&quot;&quot;,&quot;Unknown data type for attribute &quot;+f+&quot;: &quot;+h);var d;if((d=h.charCodeAt(h.length-1)-48)&lt;2||d&gt;4)throw new n(&quot;&quot;,&quot;Invalid data type for attribute &quot;+f+&quot;: &quot;+h);l(t,e,p,i,d,a,f)}}}return a};var n=t(&quot;./GLError&quot;);function i(t,e,r,n,i,a){this._gl=t,this._wrapper=e,this._index=r,this._locations=n,this._dimension=i,this._constFunc=a}var a=i.prototype;a.pointer=function(t,e,r,n){var i=this._gl,a=this._locations[this._index];i.vertexAttribPointer(a,this._dimension,t||i.FLOAT,!!e,r||0,n||0),i.enableVertexAttribArray(a)},a.set=function(t,e,r,n){return this._constFunc(this._locations[this._index],t,e,r,n)},Object.defineProperty(a,&quot;location&quot;,{get:function(){return this._locations[this._index]},set:function(t){return t!==this._locations[this._index]&amp;&amp;(this._locations[this._index]=0|t,this._wrapper.program=null),0|t}});var o=[function(t,e,r){return void 0===r.length?t.vertexAttrib1f(e,r):t.vertexAttrib1fv(e,r)},function(t,e,r,n){return void 0===r.length?t.vertexAttrib2f(e,r,n):t.vertexAttrib2fv(e,r)},function(t,e,r,n,i){return void 0===r.length?t.vertexAttrib3f(e,r,n,i):t.vertexAttrib3fv(e,r)},function(t,e,r,n,i,a){return void 0===r.length?t.vertexAttrib4f(e,r,n,i,a):t.vertexAttrib4fv(e,r)}];function s(t,e,r,n,a,s,l){var c=o[a],u=new i(t,e,r,n,a,c);Object.defineProperty(s,l,{set:function(e){return t.disableVertexAttribArray(n[r]),c(t,n[r],e),e},get:function(){return u},enumerable:!0})}function l(t,e,r,n,i,a,o){for(var l=new Array(i),c=new Array(i),u=0;u&lt;i;++u)s(t,e,r[u],n,i,l,u),c[u]=l[u];Object.defineProperty(l,&quot;location&quot;,{set:function(t){if(Array.isArray(t))for(var e=0;e&lt;i;++e)c[e].location=t[e];else for(e=0;e&lt;i;++e)c[e].location=t+e;return t},get:function(){for(var t=new Array(i),e=0;e&lt;i;++e)t[e]=n[r[e]];return t},enumerable:!0}),l.pointer=function(e,a,o,s){e=e||t.FLOAT,a=!!a,o=o||i*i,s=s||0;for(var l=0;l&lt;i;++l){var c=n[r[l]];t.vertexAttribPointer(c,i,e,a,o,s+l*i),t.enableVertexAttribArray(c)}};var f=new Array(i),h=t[&quot;vertexAttrib&quot;+i+&quot;fv&quot;];Object.defineProperty(a,o,{set:function(e){for(var a=0;a&lt;i;++a){var o=n[r[a]];if(t.disableVertexAttribArray(o),Array.isArray(e[0]))h.call(t,o,e[a]);else{for(var s=0;s&lt;i;++s)f[s]=e[i*a+s];h.call(t,o,f)}}return e},get:function(){return l},enumerable:!0})}},{&quot;./GLError&quot;:133}],135:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./reflect&quot;),i=t(&quot;./GLError&quot;);function a(t){return function(){return t}}function o(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}e.exports=function(t,e,r,s){function l(e){return function(n){for(var a=function t(e,r){if(&quot;object&quot;!=typeof r)return[[e,r]];var n=[];for(var i in r){var a=r[i],o=e;parseInt(i)+&quot;&quot;===i?o+=&quot;[&quot;+i+&quot;]&quot;:o+=&quot;.&quot;+i,&quot;object&quot;==typeof a?n.push.apply(n,t(o,a)):n.push([o,a])}return n}(&quot;&quot;,e),o=0;o&lt;a.length;++o){var l=a[o],c=l[0],u=l[1];if(s[u]){var f=n;if(&quot;string&quot;==typeof c&amp;&amp;(0===c.indexOf(&quot;.&quot;)||0===c.indexOf(&quot;[&quot;))){var h=c;if(0===c.indexOf(&quot;.&quot;)&amp;&amp;(h=c.slice(1)),h.indexOf(&quot;]&quot;)===h.length-1){var p=h.indexOf(&quot;[&quot;),d=h.slice(0,p),m=h.slice(p+1,h.length-1);f=d?n[d][m]:n[m]}else f=n[h]}var g,v=r[u].type;switch(v){case&quot;bool&quot;:case&quot;int&quot;:case&quot;sampler2D&quot;:case&quot;samplerCube&quot;:t.uniform1i(s[u],f);break;case&quot;float&quot;:t.uniform1f(s[u],f);break;default:var y=v.indexOf(&quot;vec&quot;);if(!(0&lt;=y&amp;&amp;y&lt;=1&amp;&amp;v.length===4+y)){if(0===v.indexOf(&quot;mat&quot;)&amp;&amp;4===v.length){if((g=v.charCodeAt(v.length-1)-48)&lt;2||g&gt;4)throw new i(&quot;&quot;,&quot;Invalid uniform dimension type for matrix &quot;+name+&quot;: &quot;+v);t[&quot;uniformMatrix&quot;+g+&quot;fv&quot;](s[u],!1,f);break}throw new i(&quot;&quot;,&quot;Unknown uniform data type for &quot;+name+&quot;: &quot;+v)}if((g=v.charCodeAt(v.length-1)-48)&lt;2||g&gt;4)throw new i(&quot;&quot;,&quot;Invalid data type&quot;);switch(v.charAt(0)){case&quot;b&quot;:case&quot;i&quot;:t[&quot;uniform&quot;+g+&quot;iv&quot;](s[u],f);break;case&quot;v&quot;:t[&quot;uniform&quot;+g+&quot;fv&quot;](s[u],f);break;default:throw new i(&quot;&quot;,&quot;Unrecognized data type for vector &quot;+name+&quot;: &quot;+v)}}}}}}function c(t,e,n){if(&quot;object&quot;==typeof n){var c=u(n);Object.defineProperty(t,e,{get:a(c),set:l(n),enumerable:!0,configurable:!1})}else s[n]?Object.defineProperty(t,e,{get:(f=n,function(t,e,r){return t.getUniform(e.program,r[f])}),set:l(n),enumerable:!0,configurable:!1}):t[e]=function(t){switch(t){case&quot;bool&quot;:return!1;case&quot;int&quot;:case&quot;sampler2D&quot;:case&quot;samplerCube&quot;:case&quot;float&quot;:return 0;default:var e=t.indexOf(&quot;vec&quot;);if(0&lt;=e&amp;&amp;e&lt;=1&amp;&amp;t.length===4+e){if((r=t.charCodeAt(t.length-1)-48)&lt;2||r&gt;4)throw new i(&quot;&quot;,&quot;Invalid data type&quot;);return&quot;b&quot;===t.charAt(0)?o(r,!1):o(r,0)}if(0===t.indexOf(&quot;mat&quot;)&amp;&amp;4===t.length){var r;if((r=t.charCodeAt(t.length-1)-48)&lt;2||r&gt;4)throw new i(&quot;&quot;,&quot;Invalid uniform dimension type for matrix &quot;+name+&quot;: &quot;+t);return o(r*r,0)}throw new i(&quot;&quot;,&quot;Unknown uniform data type for &quot;+name+&quot;: &quot;+t)}}(r[n].type);var f}function u(t){var e;if(Array.isArray(t)){e=new Array(t.length);for(var r=0;r&lt;t.length;++r)c(e,r,t[r])}else for(var n in e={},t)c(e,n,t[n]);return e}var f=n(r,!0);return{get:a(u(f)),set:l(f),enumerable:!0,configurable:!0}}},{&quot;./GLError&quot;:133,&quot;./reflect&quot;:136}],136:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r={},n=0;n&lt;t.length;++n)for(var i=t[n].name.split(&quot;.&quot;),a=r,o=0;o&lt;i.length;++o){var s=i[o].split(&quot;[&quot;);if(s.length&gt;1){s[0]in a||(a[s[0]]=[]),a=a[s[0]];for(var l=1;l&lt;s.length;++l){var c=parseInt(s[l]);l&lt;s.length-1||o&lt;i.length-1?(c in a||(l&lt;s.length-1?a[c]=[]:a[c]={}),a=a[c]):a[c]=e?n:t[n].type}}else o&lt;i.length-1?(s[0]in a||(a[s[0]]={}),a=a[s[0]]):a[s[0]]=e?n:t[n].type}return r}},{}],137:[function(t,e,r){&quot;use strict&quot;;r.uniforms=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),n=[],i=0;i&lt;r;++i){var o=t.getActiveUniform(e,i);if(o){var s=a(t,o.type);if(o.size&gt;1)for(var l=0;l&lt;o.size;++l)n.push({name:o.name.replace(&quot;[0]&quot;,&quot;[&quot;+l+&quot;]&quot;),type:s});else n.push({name:o.name,type:s})}}return n},r.attributes=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),n=[],i=0;i&lt;r;++i){var o=t.getActiveAttrib(e,i);o&amp;&amp;n.push({name:o.name,type:a(t,o.type)})}return n};var n={FLOAT:&quot;float&quot;,FLOAT_VEC2:&quot;vec2&quot;,FLOAT_VEC3:&quot;vec3&quot;,FLOAT_VEC4:&quot;vec4&quot;,INT:&quot;int&quot;,INT_VEC2:&quot;ivec2&quot;,INT_VEC3:&quot;ivec3&quot;,INT_VEC4:&quot;ivec4&quot;,BOOL:&quot;bool&quot;,BOOL_VEC2:&quot;bvec2&quot;,BOOL_VEC3:&quot;bvec3&quot;,BOOL_VEC4:&quot;bvec4&quot;,FLOAT_MAT2:&quot;mat2&quot;,FLOAT_MAT3:&quot;mat3&quot;,FLOAT_MAT4:&quot;mat4&quot;,SAMPLER_2D:&quot;sampler2D&quot;,SAMPLER_CUBE:&quot;samplerCube&quot;},i=null;function a(t,e){if(!i){var r=Object.keys(n);i={};for(var a=0;a&lt;r.length;++a){var o=r[a];i[t[o]]=n[o]}}return i[e]}},{}],138:[function(t,e,r){&quot;use strict&quot;;r.shader=function(t,e,r){return u(t).getShaderReference(e,r)},r.program=function(t,e,r,n,i){return u(t).getProgram(e,r,n,i)};var n=t(&quot;./GLError&quot;),i=t(&quot;gl-format-compiler-error&quot;),a=new(&quot;undefined&quot;==typeof WeakMap?t(&quot;weakmap-shim&quot;):WeakMap),o=0;function s(t,e,r,n,i,a,o){this.id=t,this.src=e,this.type=r,this.shader=n,this.count=a,this.programs=[],this.cache=o}function l(t){this.gl=t,this.shaders=[{},{}],this.programs={}}s.prototype.dispose=function(){if(0==--this.count){for(var t=this.cache,e=t.gl,r=this.programs,n=0,i=r.length;n&lt;i;++n){var a=t.programs[r[n]];a&amp;&amp;(delete t.programs[n],e.deleteProgram(a))}e.deleteShader(this.shader),delete t.shaders[this.type===e.FRAGMENT_SHADER|0][this.src]}};var c=l.prototype;function u(t){var e=a.get(t);return e||(e=new l(t),a.set(t,e)),e}c.getShaderReference=function(t,e){var r=this.gl,a=this.shaders[t===r.FRAGMENT_SHADER|0],l=a[e];if(l&amp;&amp;r.isShader(l.shader))l.count+=1;else{var c=function(t,e,r){var a=t.createShader(e);if(t.shaderSource(a,r),t.compileShader(a),!t.getShaderParameter(a,t.COMPILE_STATUS)){var o=t.getShaderInfoLog(a);try{var s=i(o,r,e)}catch(t){throw console.warn(&quot;Failed to format compiler error: &quot;+t),new n(o,&quot;Error compiling shader:\n&quot;+o)}throw new n(o,s.short,s.long)}return a}(r,t,e);l=a[e]=new s(o++,e,t,c,[],1,this)}return l},c.getProgram=function(t,e,r,i){var a=[t.id,e.id,r.join(&quot;:&quot;),i.join(&quot;:&quot;)].join(&quot;@&quot;),o=this.programs[a];return o&amp;&amp;this.gl.isProgram(o)||(this.programs[a]=o=function(t,e,r,i,a){var o=t.createProgram();t.attachShader(o,e),t.attachShader(o,r);for(var s=0;s&lt;i.length;++s)t.bindAttribLocation(o,a[s],i[s]);if(t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS)){var l=t.getProgramInfoLog(o);throw new n(l,&quot;Error linking program: &quot;+l)}return o}(this.gl,t.shader,e.shader,r,i),t.programs.push(a),e.programs.push(a)),o}},{&quot;./GLError&quot;:133,&quot;gl-format-compiler-error&quot;:87,&quot;weakmap-shim&quot;:316}],139:[function(t,e,r){&quot;use strict&quot;;function n(t){this.plot=t,this.enable=[!0,!0,!1,!1],this.width=[1,1,1,1],this.color=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.center=[1/0,1/0]}e.exports=function(t,e){var r=new n(t);return r.update(e),t.addOverlay(r),r};var i=n.prototype;i.update=function(t){t=t||{},this.enable=(t.enable||[!0,!0,!1,!1]).slice(),this.width=(t.width||[1,1,1,1]).slice(),this.color=(t.color||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]).map((function(t){return t.slice()})),this.center=(t.center||[1/0,1/0]).slice(),this.plot.setOverlayDirty()},i.draw=function(){var t=this.enable,e=this.width,r=this.color,n=this.center,i=this.plot,a=i.line,o=i.dataBox,s=i.viewBox;if(a.bind(),o[0]&lt;=n[0]&amp;&amp;n[0]&lt;=o[2]&amp;&amp;o[1]&lt;=n[1]&amp;&amp;n[1]&lt;=o[3]){var l=s[0]+(n[0]-o[0])/(o[2]-o[0])*(s[2]-s[0]),c=s[1]+(n[1]-o[1])/(o[3]-o[1])*(s[3]-s[1]);t[0]&amp;&amp;a.drawLine(l,c,s[0],c,e[0],r[0]),t[1]&amp;&amp;a.drawLine(l,c,l,s[1],e[1],r[1]),t[2]&amp;&amp;a.drawLine(l,c,s[2],c,e[2],r[2]),t[3]&amp;&amp;a.drawLine(l,c,l,s[3],e[3],r[3])}},i.dispose=function(){this.plot.removeOverlay(this)}},{}],140:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position, color;\nattribute float weight;\n\nuniform mat4 model, view, projection;\nuniform vec3 coordinates[3];\nuniform vec4 colors[3];\nuniform vec2 screenShape;\nuniform float lineWidth;\n\nvarying vec4 fragColor;\n\nvoid main() {\n  vec3 vertexPosition = mix(coordinates[0],\n    mix(coordinates[2], coordinates[1], 0.5 * (position + 1.0)), abs(position));\n\n  vec4 clipPos = projection * view * model * vec4(vertexPosition, 1.0);\n  vec2 clipOffset = (projection * view * model * vec4(color, 0.0)).xy;\n  vec2 delta = weight * clipOffset * screenShape;\n  vec2 lineOffset = normalize(vec2(delta.y, -delta.x)) / screenShape;\n\n  gl_Position   = vec4(clipPos.xy + clipPos.w * 0.5 * lineWidth * lineOffset, clipPos.z, clipPos.w);\n  fragColor     = color.x * colors[0] + color.y * colors[1] + color.z * colors[2];\n}\n&quot;]),o=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n  gl_FragColor = fragColor;\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec3&quot;},{name:&quot;weight&quot;,type:&quot;float&quot;}])}},{&quot;gl-shader&quot;:132,glslify:231}],141:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders/index&quot;);e.exports=function(t,e){var r=[];function o(t,e,n,i,a,o){var s=[t,e,n,0,0,0,1];s[i+3]=1,s[i]=a,r.push.apply(r,s),s[6]=-1,r.push.apply(r,s),s[i]=o,r.push.apply(r,s),r.push.apply(r,s),s[6]=1,r.push.apply(r,s),s[i]=a,r.push.apply(r,s)}o(0,0,0,0,0,1),o(0,0,0,1,0,1),o(0,0,0,2,0,1),o(1,0,0,1,-1,1),o(1,0,0,2,-1,1),o(0,1,0,0,-1,1),o(0,1,0,2,-1,1),o(0,0,1,0,-1,1),o(0,0,1,1,-1,1);var l=n(t,r),c=i(t,[{type:t.FLOAT,buffer:l,size:3,offset:0,stride:28},{type:t.FLOAT,buffer:l,size:3,offset:12,stride:28},{type:t.FLOAT,buffer:l,size:1,offset:24,stride:28}]),u=a(t);u.attributes.position.location=0,u.attributes.color.location=1,u.attributes.weight.location=2;var f=new s(t,l,c,u);return f.update(e),f};var o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n,this.pixelRatio=1,this.bounds=[[-1e3,-1e3,-1e3],[1e3,1e3,1e3]],this.position=[0,0,0],this.lineWidth=[2,2,2],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.enabled=[!0,!0,!0],this.drawSides=[!0,!0,!0],this.axes=null}var l=s.prototype,c=[0,0,0],u=[0,0,0],f=[0,0];l.isTransparent=function(){return!1},l.drawTransparent=function(t){},l.draw=function(t){var e=this.gl,r=this.vao,n=this.shader;r.bind(),n.bind();var i,a=t.model||o,s=t.view||o,l=t.projection||o;this.axes&amp;&amp;(i=this.axes.lastCubeProps.axis);for(var h=c,p=u,d=0;d&lt;3;++d)i&amp;&amp;i[d]&lt;0?(h[d]=this.bounds[0][d],p[d]=this.bounds[1][d]):(h[d]=this.bounds[1][d],p[d]=this.bounds[0][d]);f[0]=e.drawingBufferWidth,f[1]=e.drawingBufferHeight,n.uniforms.model=a,n.uniforms.view=s,n.uniforms.projection=l,n.uniforms.coordinates=[this.position,h,p],n.uniforms.colors=this.colors,n.uniforms.screenShape=f;for(d=0;d&lt;3;++d)n.uniforms.lineWidth=this.lineWidth[d]*this.pixelRatio,this.enabled[d]&amp;&amp;(r.draw(e.TRIANGLES,6,6*d),this.drawSides[d]&amp;&amp;r.draw(e.TRIANGLES,12,18+12*d));r.unbind()},l.update=function(t){t&amp;&amp;(&quot;bounds&quot;in t&amp;&amp;(this.bounds=t.bounds),&quot;position&quot;in t&amp;&amp;(this.position=t.position),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;colors&quot;in t&amp;&amp;(this.colors=t.colors),&quot;enabled&quot;in t&amp;&amp;(this.enabled=t.enabled),&quot;drawSides&quot;in t&amp;&amp;(this.drawSides=t.drawSides))},l.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{&quot;./shaders/index&quot;:140,&quot;gl-buffer&quot;:78,&quot;gl-vao&quot;:150}],142:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n  float segmentCount = 8.0;\n\n  float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d);\n  vec3 y = v * sin(angle) * length(d);\n  vec3 v3 = x + y;\n\n  normal = normalize(v3);\n\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, tubeScale;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  // Scale the vector magnitude to stay constant with\n  // model &amp; view changes.\n  vec3 normal;\n  vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n  vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * tubePosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  // vec4 m_position  = model * vec4(tubePosition, 1.0);\n  vec4 t_position  = view * tubePosition;\n  gl_Position      = projection * t_position;\n\n  f_color          = color;\n  f_data           = tubePosition.xyz;\n  f_position       = position.xyz;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * opacity;\n}\n&quot;]),o=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n  float segmentCount = 8.0;\n\n  float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d);\n  vec3 y = v * sin(angle) * length(d);\n  vec3 v3 = x + y;\n\n  normal = normalize(v3);\n\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float tubeScale;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  vec3 normal;\n  vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n  vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  gl_Position = projection * view * tubePosition;\n  f_id        = id;\n  f_position  = position.xyz;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;vector&quot;,type:&quot;vec4&quot;}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;},{name:&quot;vector&quot;,type:&quot;vec4&quot;}]}},{glslify:231}],143:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-vec3&quot;),i=t(&quot;gl-vec4&quot;),a=[&quot;xyz&quot;,&quot;xzy&quot;,&quot;yxz&quot;,&quot;yzx&quot;,&quot;zxy&quot;,&quot;zyx&quot;],o=function(t,e,r,a){for(var o=0,s=0;s&lt;t.length;s++)for(var l=t[s].velocities,c=0;c&lt;l.length;c++)o=Math.max(o,n.length(l[c]));var u=t.map((function(t){return function(t,e,r,a){for(var o=t.points,s=t.velocities,l=t.divergences,c=[],u=[],f=[],h=[],p=[],d=[],m=0,g=0,v=i.create(),y=i.create(),x=0;x&lt;o.length;x++){var b=o[x],_=s[x],w=l[x];0===e&amp;&amp;(w=.05*r),g=n.length(_)/a,v=i.create(),n.copy(v,_),v[3]=w;for(var T=0;T&lt;8;T++)p[T]=[b[0],b[1],b[2],T];if(h.length&gt;0)for(T=0;T&lt;8;T++){var k=(T+1)%8;c.push(h[T],p[T],p[k],p[k],h[k],h[T]),f.push(y,v,v,v,y,y),d.push(m,g,g,g,m,m);var A=c.length;u.push([A-6,A-5,A-4],[A-3,A-2,A-1])}var M=h;h=p,p=M;var S=y;y=v,v=S;var E=m;m=g,g=E}return{positions:c,cells:u,vectors:f,vertexIntensity:d}}(t,r,a,o)})),f=[],h=[],p=[],d=[];for(s=0;s&lt;u.length;s++){var m=u[s],g=f.length;f=f.concat(m.positions),p=p.concat(m.vectors),d=d.concat(m.vertexIntensity);for(c=0;c&lt;m.cells.length;c++){var v=m.cells[c],y=[];h.push(y);for(var x=0;x&lt;v.length;x++)y.push(v[x]+g)}}return{positions:f,cells:h,vectors:p,vertexIntensity:d,colormap:e}},s=function(t,e){var r,n=t.length;for(r=0;r&lt;n;r++){var i=t[r];if(i===e)return r;if(i&gt;e)return r-1}return r},l=function(t,e,r){return t&lt;e?e:t&gt;r?r:t},c=function(t){var e=1/0;t.sort((function(t,e){return t-e}));for(var r=t.length,n=1;n&lt;r;n++){var i=Math.abs(t[n]-t[n-1]);i&lt;e&amp;&amp;(e=i)}return e};e.exports=function(t,e){var r=t.startingPositions,i=t.maxLength||1e3,u=t.tubeSize||1,f=t.absoluteTubeSize,h=t.gridFill||&quot;+x+y+z&quot;,p={};-1!==h.indexOf(&quot;-x&quot;)&amp;&amp;(p.reversedX=!0),-1!==h.indexOf(&quot;-y&quot;)&amp;&amp;(p.reversedY=!0),-1!==h.indexOf(&quot;-z&quot;)&amp;&amp;(p.reversedZ=!0),p.filled=a.indexOf(h.replace(/-/g,&quot;&quot;).replace(/\+/g,&quot;&quot;));var d=t.getVelocity||function(e){return function(t,e,r){var i=e.vectors,a=e.meshgrid,o=t[0],c=t[1],u=t[2],f=a[0].length,h=a[1].length,p=a[2].length,d=s(a[0],o),m=s(a[1],c),g=s(a[2],u),v=d+1,y=m+1,x=g+1;if(d=l(d,0,f-1),v=l(v,0,f-1),m=l(m,0,h-1),y=l(y,0,h-1),g=l(g,0,p-1),x=l(x,0,p-1),d&lt;0||m&lt;0||g&lt;0||v&gt;f-1||y&gt;h-1||x&gt;p-1)return n.create();var b,_,w,T,k,A,M=a[0][d],S=a[0][v],E=a[1][m],L=a[1][y],C=a[2][g],P=(o-M)/(S-M),I=(c-E)/(L-E),O=(u-C)/(a[2][x]-C);switch(isFinite(P)||(P=.5),isFinite(I)||(I=.5),isFinite(O)||(O=.5),r.reversedX&amp;&amp;(d=f-1-d,v=f-1-v),r.reversedY&amp;&amp;(m=h-1-m,y=h-1-y),r.reversedZ&amp;&amp;(g=p-1-g,x=p-1-x),r.filled){case 5:k=g,A=x,w=m*p,T=y*p,b=d*p*h,_=v*p*h;break;case 4:k=g,A=x,b=d*p,_=v*p,w=m*p*f,T=y*p*f;break;case 3:w=m,T=y,k=g*h,A=x*h,b=d*h*p,_=v*h*p;break;case 2:w=m,T=y,b=d*h,_=v*h,k=g*h*f,A=x*h*f;break;case 1:b=d,_=v,k=g*f,A=x*f,w=m*f*p,T=y*f*p;break;default:b=d,_=v,w=m*f,T=y*f,k=g*f*h,A=x*f*h}var z=i[b+w+k],D=i[b+w+A],R=i[b+T+k],F=i[b+T+A],B=i[_+w+k],N=i[_+w+A],j=i[_+T+k],U=i[_+T+A],V=n.create(),H=n.create(),q=n.create(),G=n.create();n.lerp(V,z,B,P),n.lerp(H,D,N,P),n.lerp(q,R,j,P),n.lerp(G,F,U,P);var Y=n.create(),W=n.create();n.lerp(Y,V,q,I),n.lerp(W,H,G,I);var X=n.create();return n.lerp(X,Y,W,O),X}(e,t,p)},m=t.getDivergence||function(t,e){var r=n.create(),i=1e-4;n.add(r,t,[i,0,0]);var a=d(r);n.subtract(a,a,e),n.scale(a,a,1/i),n.add(r,t,[0,i,0]);var o=d(r);n.subtract(o,o,e),n.scale(o,o,1/i),n.add(r,t,[0,0,i]);var s=d(r);return n.subtract(s,s,e),n.scale(s,s,1/i),n.add(r,a,o),n.add(r,r,s),r},g=[],v=e[0][0],y=e[0][1],x=e[0][2],b=e[1][0],_=e[1][1],w=e[1][2],T=function(t){var e=t[0],r=t[1],n=t[2];return!(e&lt;v||e&gt;b||r&lt;y||r&gt;_||n&lt;x||n&gt;w)},k=10*n.distance(e[0],e[1])/i,A=k*k,M=1,S=0,E=r.length;E&gt;1&amp;&amp;(M=function(t){for(var e=[],r=[],n=[],i={},a={},o={},s=t.length,l=0;l&lt;s;l++){var u=t[l],f=u[0],h=u[1],p=u[2];i[f]||(e.push(f),i[f]=!0),a[h]||(r.push(h),a[h]=!0),o[p]||(n.push(p),o[p]=!0)}var d=c(e),m=c(r),g=c(n),v=Math.min(d,m,g);return isFinite(v)?v:1}(r));for(var L=0;L&lt;E;L++){var C=n.create();n.copy(C,r[L]);var P=[C],I=[],O=d(C),z=C;I.push(O);var D=[],R=m(C,O),F=n.length(R);isFinite(F)&amp;&amp;F&gt;S&amp;&amp;(S=F),D.push(F),g.push({points:P,velocities:I,divergences:D});for(var B=0;B&lt;100*i&amp;&amp;P.length&lt;i&amp;&amp;T(C);){B++;var N=n.clone(O),j=n.squaredLength(N);if(0===j)break;if(j&gt;A&amp;&amp;n.scale(N,N,k/Math.sqrt(j)),n.add(N,N,C),O=d(N),n.squaredDistance(z,N)-A&gt;-1e-4*A){P.push(N),z=N,I.push(O);R=m(N,O),F=n.length(R);isFinite(F)&amp;&amp;F&gt;S&amp;&amp;(S=F),D.push(F)}C=N}}var U=o(g,t.colormap,S,M);return f?U.tubeScale=f:(0===S&amp;&amp;(S=1),U.tubeScale=.5*u*M/S),U};var u=t(&quot;./lib/shaders&quot;),f=t(&quot;gl-cone3d&quot;).createMesh;e.exports.createTubeMesh=function(t,e){return f(t,e,{shaders:u,traceType:&quot;streamtube&quot;})}},{&quot;./lib/shaders&quot;:142,&quot;gl-cone3d&quot;:79,&quot;gl-vec3&quot;:169,&quot;gl-vec4&quot;:205}],144:[function(t,e,r){var n=t(&quot;gl-shader&quot;),i=t(&quot;glslify&quot;),a=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute vec3 f;\nattribute vec3 normal;\n\nuniform vec3 objectOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 lightPosition, eyePosition;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  vec3 localCoordinate = vec3(uv.zw, f.x);\n  worldCoordinate = objectOffset + localCoordinate;\n  vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n  vec4 clipPosition = projection * view * worldPosition;\n  gl_Position = clipPosition;\n  kill = f.y;\n  value = f.z;\n  planeCoordinate = uv.xy;\n\n  vColor = texture2D(colormap, vec2(value, value));\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * worldPosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  lightDirection = lightPosition - cameraCoordinate.xyz;\n  eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  surfaceNormal  = normalize((vec4(normal,0) * inverseModel).xyz);\n}\n&quot;]),o=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat beckmannSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness) {\n  return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 lowerBound, upperBound;\nuniform float contourTint;\nuniform vec4 contourColor;\nuniform sampler2D colormap;\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform float vertexColor;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  if (\n    kill &gt; 0.0 ||\n    vColor.a == 0.0 ||\n    outOfRange(clipBounds[0], clipBounds[1], worldCoordinate)\n  ) discard;\n\n  vec3 N = normalize(surfaceNormal);\n  vec3 V = normalize(eyeDirection);\n  vec3 L = normalize(lightDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = max(beckmannSpecular(L, V, N, roughness), 0.);\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  //decide how to interpolate color \u2014 in vertex or in fragment\n  vec4 surfaceColor =\n    step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) +\n    step(.5, vertexColor) * vColor;\n\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\n}\n&quot;]),s=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute float f;\n\nuniform vec3 objectOffset;\nuniform mat3 permutation;\nuniform mat4 model, view, projection;\nuniform float height, zOffset;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  vec3 dataCoordinate = permutation * vec3(uv.xy, height);\n  worldCoordinate = objectOffset + dataCoordinate;\n  vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n\n  vec4 clipPosition = projection * view * worldPosition;\n  clipPosition.z += zOffset;\n\n  gl_Position = clipPosition;\n  value = f + objectOffset.z;\n  kill = -1.0;\n  planeCoordinate = uv.zw;\n\n  vColor = texture2D(colormap, vec2(value, value));\n\n  //Don't do lighting for contours\n  surfaceNormal   = vec3(1,0,0);\n  eyeDirection    = vec3(0,1,0);\n  lightDirection  = vec3(0,0,1);\n}\n&quot;]),l=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec2 shape;\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 surfaceNormal;\n\nvec2 splitFloat(float v) {\n  float vh = 255.0 * v;\n  float upper = floor(vh);\n  float lower = fract(vh);\n  return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\n}\n\nvoid main() {\n  if ((kill &gt; 0.0) ||\n      (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\n\n  vec2 ux = splitFloat(planeCoordinate.x / shape.x);\n  vec2 uy = splitFloat(planeCoordinate.y / shape.y);\n  gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\n}\n&quot;]);r.createShader=function(t){var e=n(t,a,o,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createPickShader=function(t){var e=n(t,a,l,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createContourShader=function(t){var e=n(t,s,o,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;float&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e},r.createPickContourShader=function(t){var e=n(t,s,l,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;float&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e}},{&quot;gl-shader&quot;:132,glslify:231}],145:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=y(e),n=b(e),s=x(e),l=_(e),c=i(e),u=a(e,[{buffer:c,size:4,stride:40,offset:0},{buffer:c,size:3,stride:40,offset:16},{buffer:c,size:3,stride:40,offset:28}]),f=i(e),h=a(e,[{buffer:f,size:4,stride:20,offset:0},{buffer:f,size:1,stride:20,offset:16}]),p=i(e),d=a(e,[{buffer:p,size:2,type:e.FLOAT}]),m=o(e,1,256,e.RGBA,e.UNSIGNED_BYTE);m.minFilter=e.LINEAR,m.magFilter=e.LINEAR;var g=new M(e,[0,0],[[0,0,0],[0,0,0]],r,n,c,u,m,s,l,f,h,p,d,[0,0,0]),v={levels:[[],[],[]]};for(var w in t)v[w]=t[w];return v.colormap=v.colormap||&quot;jet&quot;,g.update(v),g};var n=t(&quot;bit-twiddle&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;typedarray-pool&quot;),l=t(&quot;colormap&quot;),c=t(&quot;ndarray-ops&quot;),u=t(&quot;ndarray-pack&quot;),f=t(&quot;ndarray&quot;),h=t(&quot;surface-nets&quot;),p=t(&quot;gl-mat4/multiply&quot;),d=t(&quot;gl-mat4/invert&quot;),m=t(&quot;binary-search-bounds&quot;),g=t(&quot;ndarray-gradient&quot;),v=t(&quot;./lib/shaders&quot;),y=v.createShader,x=v.createContourShader,b=v.createPickShader,_=v.createPickContourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],k=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];function A(t,e,r,n,i){this.position=t,this.index=e,this.uv=r,this.level=n,this.dataCoordinate=i}!function(){for(var t=0;t&lt;3;++t){var e=k[t],r=(t+2)%3;e[(t+1)%3+0]=1,e[r+3]=1,e[t+6]=1}}();function M(t,e,r,n,i,a,o,l,c,u,h,p,d,m,g){this.gl=t,this.shape=e,this.bounds=r,this.objectOffset=g,this.intensityBounds=[],this._shader=n,this._pickShader=i,this._coordinateBuffer=a,this._vao=o,this._colorMap=l,this._contourShader=c,this._contourPickShader=u,this._contourBuffer=h,this._contourVAO=p,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new A([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=d,this._dynamicVAO=m,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var S=M.prototype;S.genColormap=function(t,e){var r=!1,n=u([l({colormap:t,nshades:256,format:&quot;rgba&quot;}).map((function(t,n){var i=e?function(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;r&lt;e.length;++r){if(e.length&lt;2)return 1;if(e[r][0]===t)return e[r][1];if(e[r][0]&gt;t&amp;&amp;r&gt;0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}(n/255,e):t[3];return i&lt;1&amp;&amp;(r=!0),[t[0],t[1],t[2],255*i]}))]);return c.divseq(n,255),this.hasAlphaScale=r,n},S.isTransparent=function(){return this.opacity&lt;1||this.hasAlphaScale},S.isOpaque=function(){return!this.isTransparent()},S.pickSlots=1,S.setPickBase=function(t){this.pickId=t};var E=[0,0,0],L={showSurface:!1,showContour:!1,projections:[w.slice(),w.slice(),w.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function C(t,e){var r,n,i,a=e.axes&amp;&amp;e.axes.lastCubeProps.axis||E,o=e.showSurface,s=e.showContour;for(r=0;r&lt;3;++r)for(o=o||e.surfaceProject[r],n=0;n&lt;3;++n)s=s||e.contourProject[r][n];for(r=0;r&lt;3;++r){var l=L.projections[r];for(n=0;n&lt;16;++n)l[n]=0;for(n=0;n&lt;4;++n)l[5*n]=1;l[5*r]=0,l[12+r]=e.axesBounds[+(a[r]&gt;0)][r],p(l,t.model,l);var c=L.clipBounds[r];for(i=0;i&lt;2;++i)for(n=0;n&lt;3;++n)c[i][n]=t.clipBounds[i][n];c[0][r]=-1e8,c[1][r]=1e8}return L.showSurface=o,L.showContour=s,L}var P={model:w,view:w,projection:w,inverseModel:w.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},I=w.slice(),O=[1,0,0,0,1,0,0,0,1];function z(t,e){t=t||{};var r=this.gl;r.disable(r.CULL_FACE),this._colorMap.bind(0);var n=P;n.model=t.model||w,n.view=t.view||w,n.projection=t.projection||w,n.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],n.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],n.objectOffset=this.objectOffset,n.contourColor=this.contourColor[0],n.inverseModel=d(n.inverseModel,n.model);for(var i=0;i&lt;2;++i)for(var a=n.clipBounds[i],o=0;o&lt;3;++o)a[o]=Math.min(Math.max(this.clipBounds[i][o],-1e8),1e8);n.kambient=this.ambientLight,n.kdiffuse=this.diffuseLight,n.kspecular=this.specularLight,n.roughness=this.roughness,n.fresnel=this.fresnel,n.opacity=this.opacity,n.height=0,n.permutation=O,n.vertexColor=this.vertexColor;var s=I;for(p(s,n.view,n.model),p(s,n.projection,s),d(s,s),i=0;i&lt;3;++i)n.eyePosition[i]=s[12+i]/s[15];var l=s[15];for(i=0;i&lt;3;++i)l+=this.lightPosition[i]*s[4*i+3];for(i=0;i&lt;3;++i){var c=s[12+i];for(o=0;o&lt;3;++o)c+=s[4*o+i]*this.lightPosition[o];n.lightPosition[i]=c/l}var u=C(n,this);if(u.showSurface){for(this._shader.bind(),this._shader.uniforms=n,this._vao.bind(),this.showSurface&amp;&amp;this._vertexCount&amp;&amp;this._vao.draw(r.TRIANGLES,this._vertexCount),i=0;i&lt;3;++i)this.surfaceProject[i]&amp;&amp;this.vertexCount&amp;&amp;(this._shader.uniforms.model=u.projections[i],this._shader.uniforms.clipBounds=u.clipBounds[i],this._vao.draw(r.TRIANGLES,this._vertexCount));this._vao.unbind()}if(u.showContour){var f=this._contourShader;n.kambient=1,n.kdiffuse=0,n.kspecular=0,n.opacity=1,f.bind(),f.uniforms=n;var h=this._contourVAO;for(h.bind(),i=0;i&lt;3;++i)for(f.uniforms.permutation=k[i],r.lineWidth(this.contourWidth[i]*this.pixelRatio),o=0;o&lt;this.contourLevels[i].length;++o)o===this.highlightLevel[i]?(f.uniforms.contourColor=this.highlightColor[i],f.uniforms.contourTint=this.highlightTint[i]):0!==o&amp;&amp;o-1!==this.highlightLevel[i]||(f.uniforms.contourColor=this.contourColor[i],f.uniforms.contourTint=this.contourTint[i]),this._contourCounts[i][o]&amp;&amp;(f.uniforms.height=this.contourLevels[i][o],h.draw(r.LINES,this._contourCounts[i][o],this._contourOffsets[i][o]));for(i=0;i&lt;3;++i)for(f.uniforms.model=u.projections[i],f.uniforms.clipBounds=u.clipBounds[i],o=0;o&lt;3;++o)if(this.contourProject[i][o]){f.uniforms.permutation=k[o],r.lineWidth(this.contourWidth[o]*this.pixelRatio);for(var m=0;m&lt;this.contourLevels[o].length;++m)m===this.highlightLevel[o]?(f.uniforms.contourColor=this.highlightColor[o],f.uniforms.contourTint=this.highlightTint[o]):0!==m&amp;&amp;m-1!==this.highlightLevel[o]||(f.uniforms.contourColor=this.contourColor[o],f.uniforms.contourTint=this.contourTint[o]),this._contourCounts[o][m]&amp;&amp;(f.uniforms.height=this.contourLevels[o][m],h.draw(r.LINES,this._contourCounts[o][m],this._contourOffsets[o][m]))}for(h.unbind(),(h=this._dynamicVAO).bind(),i=0;i&lt;3;++i)if(0!==this._dynamicCounts[i])for(f.uniforms.model=n.model,f.uniforms.clipBounds=n.clipBounds,f.uniforms.permutation=k[i],r.lineWidth(this.dynamicWidth[i]*this.pixelRatio),f.uniforms.contourColor=this.dynamicColor[i],f.uniforms.contourTint=this.dynamicTint[i],f.uniforms.height=this.dynamicLevel[i],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]),o=0;o&lt;3;++o)this.contourProject[o][i]&amp;&amp;(f.uniforms.model=u.projections[o],f.uniforms.clipBounds=u.clipBounds[o],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]));h.unbind()}}S.draw=function(t){return z.call(this,t,!1)},S.drawTransparent=function(t){return z.call(this,t,!0)};var D={model:w,view:w,projection:w,inverseModel:w,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,objectOffset:[0,0,0],permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};function R(t,e){return Array.isArray(t)?[e(t[0]),e(t[1]),e(t[2])]:[e(t),e(t),e(t)]}function F(t){return Array.isArray(t)?3===t.length?[t[0],t[1],t[2],1]:[t[0],t[1],t[2],t[3]]:[0,0,0,1]}function B(t){if(Array.isArray(t)){if(Array.isArray(t))return[F(t[0]),F(t[1]),F(t[2])];var e=F(t);return[e.slice(),e.slice(),e.slice()]}}S.drawPick=function(t){t=t||{};var e=this.gl;e.disable(e.CULL_FACE);var r=D;r.model=t.model||w,r.view=t.view||w,r.projection=t.projection||w,r.shape=this._field[2].shape,r.pickId=this.pickId/255,r.lowerBound=this.bounds[0],r.upperBound=this.bounds[1],r.objectOffset=this.objectOffset,r.permutation=O;for(var n=0;n&lt;2;++n)for(var i=r.clipBounds[n],a=0;a&lt;3;++a)i[a]=Math.min(Math.max(this.clipBounds[n][a],-1e8),1e8);var o=C(r,this);if(o.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=r,this._vao.bind(),this._vao.draw(e.TRIANGLES,this._vertexCount),n=0;n&lt;3;++n)this.surfaceProject[n]&amp;&amp;(this._pickShader.uniforms.model=o.projections[n],this._pickShader.uniforms.clipBounds=o.clipBounds[n],this._vao.draw(e.TRIANGLES,this._vertexCount));this._vao.unbind()}if(o.showContour){var s=this._contourPickShader;s.bind(),s.uniforms=r;var l=this._contourVAO;for(l.bind(),a=0;a&lt;3;++a)for(e.lineWidth(this.contourWidth[a]*this.pixelRatio),s.uniforms.permutation=k[a],n=0;n&lt;this.contourLevels[a].length;++n)this._contourCounts[a][n]&amp;&amp;(s.uniforms.height=this.contourLevels[a][n],l.draw(e.LINES,this._contourCounts[a][n],this._contourOffsets[a][n]));for(n=0;n&lt;3;++n)for(s.uniforms.model=o.projections[n],s.uniforms.clipBounds=o.clipBounds[n],a=0;a&lt;3;++a)if(this.contourProject[n][a]){s.uniforms.permutation=k[a],e.lineWidth(this.contourWidth[a]*this.pixelRatio);for(var c=0;c&lt;this.contourLevels[a].length;++c)this._contourCounts[a][c]&amp;&amp;(s.uniforms.height=this.contourLevels[a][c],l.draw(e.LINES,this._contourCounts[a][c],this._contourOffsets[a][c]))}l.unbind()}},S.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=this._field[2].shape,r=this._pickResult,n=e[0]*(t.value[0]+(t.value[2]&gt;&gt;4)/16)/255,i=Math.floor(n),a=n-i,o=e[1]*(t.value[1]+(15&amp;t.value[2])/16)/255,s=Math.floor(o),l=o-s;i+=1,s+=1;var c=r.position;c[0]=c[1]=c[2]=0;for(var u=0;u&lt;2;++u)for(var f=u?a:1-a,h=0;h&lt;2;++h)for(var p=i+u,d=s+h,g=f*(h?l:1-l),v=0;v&lt;3;++v)c[v]+=this._field[v].get(p,d)*g;for(var y=this._pickResult.level,x=0;x&lt;3;++x)if(y[x]=m.le(this.contourLevels[x],c[x]),y[x]&lt;0)this.contourLevels[x].length&gt;0&amp;&amp;(y[x]=0);else if(y[x]&lt;this.contourLevels[x].length-1){var b=this.contourLevels[x][y[x]],_=this.contourLevels[x][y[x]+1];Math.abs(b-c[x])&gt;Math.abs(_-c[x])&amp;&amp;(y[x]+=1)}for(r.index[0]=a&lt;.5?i:i+1,r.index[1]=l&lt;.5?s:s+1,r.uv[0]=n/e[0],r.uv[1]=o/e[1],v=0;v&lt;3;++v)r.dataCoordinate[v]=this._field[v].get(r.index[0],r.index[1]);return r},S.padField=function(t,e){var r=e.shape.slice(),n=t.shape.slice();c.assign(t.lo(1,1).hi(r[0],r[1]),e),c.assign(t.lo(1).hi(r[0],1),e.hi(r[0],1)),c.assign(t.lo(1,n[1]-1).hi(r[0],1),e.lo(0,r[1]-1).hi(r[0],1)),c.assign(t.lo(0,1).hi(1,r[1]),e.hi(1)),c.assign(t.lo(n[0]-1,1).hi(1,r[1]),e.lo(r[0]-1)),t.set(0,0,e.get(0,0)),t.set(0,n[1]-1,e.get(0,r[1]-1)),t.set(n[0]-1,0,e.get(r[0]-1,0)),t.set(n[0]-1,n[1]-1,e.get(r[0]-1,r[1]-1))},S.update=function(t){t=t||{},this.objectOffset=t.objectOffset||this.objectOffset,this.dirty=!0,&quot;contourWidth&quot;in t&amp;&amp;(this.contourWidth=R(t.contourWidth,Number)),&quot;showContour&quot;in t&amp;&amp;(this.showContour=R(t.showContour,Boolean)),&quot;showSurface&quot;in t&amp;&amp;(this.showSurface=!!t.showSurface),&quot;contourTint&quot;in t&amp;&amp;(this.contourTint=R(t.contourTint,Boolean)),&quot;contourColor&quot;in t&amp;&amp;(this.contourColor=B(t.contourColor)),&quot;contourProject&quot;in t&amp;&amp;(this.contourProject=R(t.contourProject,(function(t){return R(t,Boolean)}))),&quot;surfaceProject&quot;in t&amp;&amp;(this.surfaceProject=t.surfaceProject),&quot;dynamicColor&quot;in t&amp;&amp;(this.dynamicColor=B(t.dynamicColor)),&quot;dynamicTint&quot;in t&amp;&amp;(this.dynamicTint=R(t.dynamicTint,Number)),&quot;dynamicWidth&quot;in t&amp;&amp;(this.dynamicWidth=R(t.dynamicWidth,Number)),&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity),&quot;opacityscale&quot;in t&amp;&amp;(this.opacityscale=t.opacityscale),&quot;colorBounds&quot;in t&amp;&amp;(this.colorBounds=t.colorBounds),&quot;vertexColor&quot;in t&amp;&amp;(this.vertexColor=t.vertexColor?1:0),&quot;colormap&quot;in t&amp;&amp;this._colorMap.setPixels(this.genColormap(t.colormap,this.opacityscale));var e=t.field||t.coords&amp;&amp;t.coords[2]||null,r=!1;if(e||(e=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),&quot;field&quot;in t||&quot;coords&quot;in t){var i=(e.shape[0]+2)*(e.shape[1]+2);i&gt;this._field[2].data.length&amp;&amp;(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(n.nextPow2(i))),this._field[2]=f(this._field[2].data,[e.shape[0]+2,e.shape[1]+2]),this.padField(this._field[2],e),this.shape=e.shape.slice();for(var a=this.shape,o=0;o&lt;2;++o)this._field[2].size&gt;this._field[o].data.length&amp;&amp;(s.freeFloat(this._field[o].data),this._field[o].data=s.mallocFloat(this._field[2].size)),this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2]);if(t.coords){var l=t.coords;if(!Array.isArray(l)||3!==l.length)throw new Error(&quot;gl-surface: invalid coordinates for x/y&quot;);for(o=0;o&lt;2;++o){var c=l[o];for(v=0;v&lt;2;++v)if(c.shape[v]!==a[v])throw new Error(&quot;gl-surface: coords have incorrect shape&quot;);this.padField(this._field[o],c)}}else if(t.ticks){var u=t.ticks;if(!Array.isArray(u)||2!==u.length)throw new Error(&quot;gl-surface: invalid ticks&quot;);for(o=0;o&lt;2;++o){var p=u[o];if((Array.isArray(p)||p.length)&amp;&amp;(p=f(p)),p.shape[0]!==a[o])throw new Error(&quot;gl-surface: invalid tick length&quot;);var d=f(p.data,a);d.stride[o]=p.stride[0],d.stride[1^o]=0,this.padField(this._field[o],d)}}else{for(o=0;o&lt;2;++o){var m=[0,0];m[o]=1,this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2],m,0)}this._field[0].set(0,0,0);for(var v=0;v&lt;a[0];++v)this._field[0].set(v+1,0,v);for(this._field[0].set(a[0]+1,0,a[0]-1),this._field[1].set(0,0,0),v=0;v&lt;a[1];++v)this._field[1].set(0,v+1,v);this._field[1].set(0,a[1]+1,a[1]-1)}var y=this._field,x=f(s.mallocFloat(3*y[2].size*2),[3,a[0]+2,a[1]+2,2]);for(o=0;o&lt;3;++o)g(x.pick(o),y[o],&quot;mirror&quot;);var b=f(s.mallocFloat(3*y[2].size),[a[0]+2,a[1]+2,3]);for(o=0;o&lt;a[0]+2;++o)for(v=0;v&lt;a[1]+2;++v){var _=x.get(0,o,v,0),w=x.get(0,o,v,1),k=x.get(1,o,v,0),A=x.get(1,o,v,1),M=x.get(2,o,v,0),S=x.get(2,o,v,1),E=k*S-A*M,L=M*w-S*_,C=_*A-w*k,P=Math.sqrt(E*E+L*L+C*C);P&lt;1e-8?(P=Math.max(Math.abs(E),Math.abs(L),Math.abs(C)))&lt;1e-8?(C=1,L=E=0,P=1):P=1/P:P=1/Math.sqrt(P),b.set(o,v,0,E*P),b.set(o,v,1,L*P),b.set(o,v,2,C*P)}s.free(x.data);var I=[1/0,1/0,1/0],O=[-1/0,-1/0,-1/0],z=1/0,D=-1/0,F=(a[0]-1)*(a[1]-1)*6,N=s.mallocFloat(n.nextPow2(10*F)),j=0,U=0;for(o=0;o&lt;a[0]-1;++o)t:for(v=0;v&lt;a[1]-1;++v){for(var V=0;V&lt;2;++V)for(var H=0;H&lt;2;++H)for(var q=0;q&lt;3;++q){var G=this._field[q].get(1+o+V,1+v+H);if(isNaN(G)||!isFinite(G))continue t}for(q=0;q&lt;6;++q){var Y=o+T[q][0],W=v+T[q][1],X=this._field[0].get(Y+1,W+1),Z=this._field[1].get(Y+1,W+1);G=this._field[2].get(Y+1,W+1),E=b.get(Y+1,W+1,0),L=b.get(Y+1,W+1,1),C=b.get(Y+1,W+1,2),t.intensity&amp;&amp;(J=t.intensity.get(Y,W));var J=t.intensity?t.intensity.get(Y,W):G+this.objectOffset[2];N[j++]=Y,N[j++]=W,N[j++]=X,N[j++]=Z,N[j++]=G,N[j++]=0,N[j++]=J,N[j++]=E,N[j++]=L,N[j++]=C,I[0]=Math.min(I[0],X+this.objectOffset[0]),I[1]=Math.min(I[1],Z+this.objectOffset[1]),I[2]=Math.min(I[2],G+this.objectOffset[2]),z=Math.min(z,J),O[0]=Math.max(O[0],X+this.objectOffset[0]),O[1]=Math.max(O[1],Z+this.objectOffset[1]),O[2]=Math.max(O[2],G+this.objectOffset[2]),D=Math.max(D,J),U+=1}}for(t.intensityBounds&amp;&amp;(z=+t.intensityBounds[0],D=+t.intensityBounds[1]),o=6;o&lt;j;o+=10)N[o]=(N[o]-z)/(D-z);this._vertexCount=U,this._coordinateBuffer.update(N.subarray(0,j)),s.freeFloat(N),s.free(b.data),this.bounds=[I,O],this.intensity=t.intensity||this._field[2],this.intensityBounds[0]===z&amp;&amp;this.intensityBounds[1]===D||(r=!0),this.intensityBounds=[z,D]}if(&quot;levels&quot;in t){var K=t.levels;for(K=Array.isArray(K[0])?K.slice():[[],[],K],o=0;o&lt;3;++o)K[o]=K[o].slice(),K[o].sort((function(t,e){return t-e}));for(o=0;o&lt;3;++o)for(v=0;v&lt;K[o].length;++v)K[o][v]-=this.objectOffset[o];t:for(o=0;o&lt;3;++o){if(K[o].length!==this.contourLevels[o].length){r=!0;break}for(v=0;v&lt;K[o].length;++v)if(K[o][v]!==this.contourLevels[o][v]){r=!0;break t}}this.contourLevels=K}if(r){y=this._field,a=this.shape;for(var Q=[],$=0;$&lt;3;++$){var tt=this.contourLevels[$],et=[],rt=[],nt=[0,0,0];for(o=0;o&lt;tt.length;++o){var it=h(this._field[$],tt[o]);et.push(Q.length/5|0),U=0;t:for(v=0;v&lt;it.cells.length;++v){var at=it.cells[v];for(q=0;q&lt;2;++q){var ot=it.positions[at[q]],st=ot[0],lt=0|Math.floor(st),ct=st-lt,ut=ot[1],ft=0|Math.floor(ut),ht=ut-ft,pt=!1;e:for(var dt=0;dt&lt;3;++dt){nt[dt]=0;var mt=($+dt+1)%3;for(V=0;V&lt;2;++V){var gt=V?ct:1-ct;for(Y=0|Math.min(Math.max(lt+V,0),a[0]),H=0;H&lt;2;++H){var vt=H?ht:1-ht;if(W=0|Math.min(Math.max(ft+H,0),a[1]),G=dt&lt;2?this._field[mt].get(Y,W):(this.intensity.get(Y,W)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(G)||isNaN(G)){pt=!0;break e}var yt=gt*vt;nt[dt]+=yt*G}}}if(pt){if(q&gt;0){for(var xt=0;xt&lt;5;++xt)Q.pop();U-=1}continue t}Q.push(nt[0],nt[1],ot[0],ot[1],nt[2]),U+=1}}rt.push(U)}this._contourOffsets[$]=et,this._contourCounts[$]=rt}var bt=s.mallocFloat(Q.length);for(o=0;o&lt;Q.length;++o)bt[o]=Q[o];this._contourBuffer.update(bt),s.freeFloat(bt)}},S.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var t=0;t&lt;3;++t)s.freeFloat(this._field[t].data)},S.highlight=function(t){var e,r;if(!t)return this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],void(this.highlightLevel=[-1,-1,-1]);for(e=0;e&lt;3;++e)this.enableHighlight[e]?this.highlightLevel[e]=t.level[e]:this.highlightLevel[e]=-1;for(r=this.snapToData?t.dataCoordinate:t.position,e=0;e&lt;3;++e)r[e]-=this.objectOffset[e];if(this.enableDynamic[0]&amp;&amp;r[0]!==this.dynamicLevel[0]||this.enableDynamic[1]&amp;&amp;r[1]!==this.dynamicLevel[1]||this.enableDynamic[2]&amp;&amp;r[2]!==this.dynamicLevel[2]){for(var n=0,i=this.shape,a=s.mallocFloat(12*i[0]*i[1]),o=0;o&lt;3;++o)if(this.enableDynamic[o]){this.dynamicLevel[o]=r[o];var l=(o+1)%3,c=(o+2)%3,u=this._field[o],f=this._field[l],p=this._field[c],d=h(u,r[o]),m=d.cells,g=d.positions;for(this._dynamicOffsets[o]=n,e=0;e&lt;m.length;++e)for(var v=m[e],y=0;y&lt;2;++y){var x=g[v[y]],b=+x[0],_=0|b,w=0|Math.min(_+1,i[0]),T=b-_,k=1-T,A=+x[1],M=0|A,S=0|Math.min(M+1,i[1]),E=A-M,L=1-E,C=k*L,P=k*E,I=T*L,O=T*E,z=C*f.get(_,M)+P*f.get(_,S)+I*f.get(w,M)+O*f.get(w,S),D=C*p.get(_,M)+P*p.get(_,S)+I*p.get(w,M)+O*p.get(w,S);if(isNaN(z)||isNaN(D)){y&amp;&amp;(n-=1);break}a[2*n+0]=z,a[2*n+1]=D,n+=1}this._dynamicCounts[o]=n-this._dynamicOffsets[o]}else this.dynamicLevel[o]=NaN,this._dynamicCounts[o]=0;this._dynamicBuffer.update(a.subarray(0,2*n)),s.freeFloat(a)}}},{&quot;./lib/shaders&quot;:144,&quot;binary-search-bounds&quot;:31,&quot;bit-twiddle&quot;:32,colormap:53,&quot;gl-buffer&quot;:78,&quot;gl-mat4/invert&quot;:98,&quot;gl-mat4/multiply&quot;:100,&quot;gl-texture2d&quot;:146,&quot;gl-vao&quot;:150,ndarray:259,&quot;ndarray-gradient&quot;:252,&quot;ndarray-ops&quot;:254,&quot;ndarray-pack&quot;:255,&quot;surface-nets&quot;:302,&quot;typedarray-pool&quot;:308}],146:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ndarray&quot;),i=t(&quot;ndarray-ops&quot;),a=t(&quot;typedarray-pool&quot;);e.exports=function(t){if(arguments.length&lt;=1)throw new Error(&quot;gl-texture2d: Missing arguments for texture2d constructor&quot;);o||c(t);if(&quot;number&quot;==typeof arguments[1])return v(t,arguments[1],arguments[2],arguments[3]||t.RGBA,arguments[4]||t.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return v(t,0|arguments[1][0],0|arguments[1][1],arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(&quot;object&quot;==typeof arguments[1]){var e=arguments[1],r=u(e)?e:e.raw;if(r)return y(t,r,0|e.width,0|e.height,arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(e.shape&amp;&amp;e.data&amp;&amp;e.stride)return x(t,e)}throw new Error(&quot;gl-texture2d: Invalid arguments for texture2d constructor&quot;)};var o=null,s=null,l=null;function c(t){o=[t.LINEAR,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_NEAREST],s=[t.NEAREST,t.LINEAR,t.NEAREST_MIPMAP_NEAREST,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_LINEAR],l=[t.REPEAT,t.CLAMP_TO_EDGE,t.MIRRORED_REPEAT]}function u(t){return&quot;undefined&quot;!=typeof HTMLCanvasElement&amp;&amp;t instanceof HTMLCanvasElement||&quot;undefined&quot;!=typeof HTMLImageElement&amp;&amp;t instanceof HTMLImageElement||&quot;undefined&quot;!=typeof HTMLVideoElement&amp;&amp;t instanceof HTMLVideoElement||&quot;undefined&quot;!=typeof ImageData&amp;&amp;t instanceof ImageData}var f=function(t,e){i.muls(t,e,255)};function h(t,e,r){var n=t.gl,i=n.getParameter(n.MAX_TEXTURE_SIZE);if(e&lt;0||e&gt;i||r&lt;0||r&gt;i)throw new Error(&quot;gl-texture2d: Invalid texture size&quot;);return t._shape=[e,r],t.bind(),n.texImage2D(n.TEXTURE_2D,0,t.format,e,r,0,t.format,t.type,null),t._mipLevels=[0],t}function p(t,e,r,n,i,a){this.gl=t,this.handle=e,this.format=i,this.type=a,this._shape=[r,n],this._mipLevels=[0],this._magFilter=t.NEAREST,this._minFilter=t.NEAREST,this._wrapS=t.CLAMP_TO_EDGE,this._wrapT=t.CLAMP_TO_EDGE,this._anisoSamples=1;var o=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return o._wrapS},set:function(t){return o.wrapS=t}},{get:function(){return o._wrapT},set:function(t){return o.wrapT=t}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return o._shape[0]},set:function(t){return o.width=t}},{get:function(){return o._shape[1]},set:function(t){return o.height=t}}]),this._shapeVector=l}var d=p.prototype;function m(t,e){return 3===t.length?1===e[2]&amp;&amp;e[1]===t[0]*t[2]&amp;&amp;e[0]===t[2]:1===e[0]&amp;&amp;e[1]===t[0]}function g(t){var e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),e}function v(t,e,r,n,i){var a=t.getParameter(t.MAX_TEXTURE_SIZE);if(e&lt;0||e&gt;a||r&lt;0||r&gt;a)throw new Error(&quot;gl-texture2d: Invalid texture shape&quot;);if(i===t.FLOAT&amp;&amp;!t.getExtension(&quot;OES_texture_float&quot;))throw new Error(&quot;gl-texture2d: Floating point textures not supported on this platform&quot;);var o=g(t);return t.texImage2D(t.TEXTURE_2D,0,n,e,r,0,n,i,null),new p(t,o,e,r,n,i)}function y(t,e,r,n,i,a){var o=g(t);return t.texImage2D(t.TEXTURE_2D,0,i,i,a,e),new p(t,o,r,n,i,a)}function x(t,e){var r=e.dtype,o=e.shape.slice(),s=t.getParameter(t.MAX_TEXTURE_SIZE);if(o[0]&lt;0||o[0]&gt;s||o[1]&lt;0||o[1]&gt;s)throw new Error(&quot;gl-texture2d: Invalid texture size&quot;);var l=m(o,e.stride.slice()),c=0;&quot;float32&quot;===r?c=t.FLOAT:&quot;float64&quot;===r?(c=t.FLOAT,l=!1,r=&quot;float32&quot;):&quot;uint8&quot;===r?c=t.UNSIGNED_BYTE:(c=t.UNSIGNED_BYTE,l=!1,r=&quot;uint8&quot;);var u,h,d=0;if(2===o.length)d=t.LUMINANCE,o=[o[0],o[1],1],e=n(e.data,o,[e.stride[0],e.stride[1],1],e.offset);else{if(3!==o.length)throw new Error(&quot;gl-texture2d: Invalid shape for texture&quot;);if(1===o[2])d=t.ALPHA;else if(2===o[2])d=t.LUMINANCE_ALPHA;else if(3===o[2])d=t.RGB;else{if(4!==o[2])throw new Error(&quot;gl-texture2d: Invalid shape for pixel coords&quot;);d=t.RGBA}}c!==t.FLOAT||t.getExtension(&quot;OES_texture_float&quot;)||(c=t.UNSIGNED_BYTE,l=!1);var v=e.size;if(l)u=0===e.offset&amp;&amp;e.data.length===v?e.data:e.data.subarray(e.offset,e.offset+v);else{var y=[o[2],o[2]*o[0],1];h=a.malloc(v,r);var x=n(h,o,y,0);&quot;float32&quot;!==r&amp;&amp;&quot;float64&quot;!==r||c!==t.UNSIGNED_BYTE?i.assign(x,e):f(x,e),u=h.subarray(0,v)}var b=g(t);return t.texImage2D(t.TEXTURE_2D,0,d,o[0],o[1],0,d,c,u),l||a.free(h),new p(t,b,o[0],o[1],d,c)}Object.defineProperties(d,{minFilter:{get:function(){return this._minFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&amp;&amp;o.indexOf(t)&gt;=0&amp;&amp;(e.getExtension(&quot;OES_texture_float_linear&quot;)||(t=e.NEAREST)),s.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown filter mode &quot;+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t),this._minFilter=t}},magFilter:{get:function(){return this._magFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&amp;&amp;o.indexOf(t)&gt;=0&amp;&amp;(e.getExtension(&quot;OES_texture_float_linear&quot;)||(t=e.NEAREST)),s.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown filter mode &quot;+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t),this._magFilter=t}},mipSamples:{get:function(){return this._anisoSamples},set:function(t){var e=this._anisoSamples;if(this._anisoSamples=0|Math.max(t,1),e!==this._anisoSamples){var r=this.gl.getExtension(&quot;EXT_texture_filter_anisotropic&quot;);r&amp;&amp;this.gl.texParameterf(this.gl.TEXTURE_2D,r.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(t){if(this.bind(),l.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,t),this._wrapS=t}},wrapT:{get:function(){return this._wrapT},set:function(t){if(this.bind(),l.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,t),this._wrapT=t}},wrap:{get:function(){return this._wrapVector},set:function(t){if(Array.isArray(t)||(t=[t,t]),2!==t.length)throw new Error(&quot;gl-texture2d: Must specify wrap mode for rows and columns&quot;);for(var e=0;e&lt;2;++e)if(l.indexOf(t[e])&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);this._wrapS=t[0],this._wrapT=t[1];var r=this.gl;return this.bind(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,this._wrapS),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,this._wrapT),t}},shape:{get:function(){return this._shapeVector},set:function(t){if(Array.isArray(t)){if(2!==t.length)throw new Error(&quot;gl-texture2d: Invalid texture shape&quot;)}else t=[0|t,0|t];return h(this,0|t[0],0|t[1]),[0|t[0],0|t[1]]}},width:{get:function(){return this._shape[0]},set:function(t){return h(this,t|=0,this._shape[1]),t}},height:{get:function(){return this._shape[1]},set:function(t){return t|=0,h(this,this._shape[0],t),t}}}),d.bind=function(t){var e=this.gl;return void 0!==t&amp;&amp;e.activeTexture(e.TEXTURE0+(0|t)),e.bindTexture(e.TEXTURE_2D,this.handle),void 0!==t?0|t:e.getParameter(e.ACTIVE_TEXTURE)-e.TEXTURE0},d.dispose=function(){this.gl.deleteTexture(this.handle)},d.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var t=Math.min(this._shape[0],this._shape[1]),e=0;t&gt;0;++e,t&gt;&gt;&gt;=1)this._mipLevels.indexOf(e)&lt;0&amp;&amp;this._mipLevels.push(e)},d.setPixels=function(t,e,r,o){var s=this.gl;this.bind(),Array.isArray(e)?(o=r,r=0|e[1],e=0|e[0]):(e=e||0,r=r||0),o=o||0;var l=u(t)?t:t.raw;if(l){this._mipLevels.indexOf(o)&lt;0?(s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,this.type,l),this._mipLevels.push(o)):s.texSubImage2D(s.TEXTURE_2D,o,e,r,this.format,this.type,l)}else{if(!(t.shape&amp;&amp;t.stride&amp;&amp;t.data))throw new Error(&quot;gl-texture2d: Unsupported data type&quot;);if(t.shape.length&lt;2||e+t.shape[1]&gt;this._shape[1]&gt;&gt;&gt;o||r+t.shape[0]&gt;this._shape[0]&gt;&gt;&gt;o||e&lt;0||r&lt;0)throw new Error(&quot;gl-texture2d: Texture dimensions are out of bounds&quot;);!function(t,e,r,o,s,l,c,u){var h=u.dtype,p=u.shape.slice();if(p.length&lt;2||p.length&gt;3)throw new Error(&quot;gl-texture2d: Invalid ndarray, must be 2d or 3d&quot;);var d=0,g=0,v=m(p,u.stride.slice());&quot;float32&quot;===h?d=t.FLOAT:&quot;float64&quot;===h?(d=t.FLOAT,v=!1,h=&quot;float32&quot;):&quot;uint8&quot;===h?d=t.UNSIGNED_BYTE:(d=t.UNSIGNED_BYTE,v=!1,h=&quot;uint8&quot;);if(2===p.length)g=t.LUMINANCE,p=[p[0],p[1],1],u=n(u.data,p,[u.stride[0],u.stride[1],1],u.offset);else{if(3!==p.length)throw new Error(&quot;gl-texture2d: Invalid shape for texture&quot;);if(1===p[2])g=t.ALPHA;else if(2===p[2])g=t.LUMINANCE_ALPHA;else if(3===p[2])g=t.RGB;else{if(4!==p[2])throw new Error(&quot;gl-texture2d: Invalid shape for pixel coords&quot;);g=t.RGBA}p[2]}g!==t.LUMINANCE&amp;&amp;g!==t.ALPHA||s!==t.LUMINANCE&amp;&amp;s!==t.ALPHA||(g=s);if(g!==s)throw new Error(&quot;gl-texture2d: Incompatible texture format for setPixels&quot;);var y=u.size,x=c.indexOf(o)&lt;0;x&amp;&amp;c.push(o);if(d===l&amp;&amp;v)0===u.offset&amp;&amp;u.data.length===y?x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data):x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data.subarray(u.offset,u.offset+y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data.subarray(u.offset,u.offset+y));else{var b;b=l===t.FLOAT?a.mallocFloat32(y):a.mallocUint8(y);var _=n(b,p,[p[2],p[2]*p[0],1]);d===t.FLOAT&amp;&amp;l===t.UNSIGNED_BYTE?f(_,u):i.assign(_,u),x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,b.subarray(0,y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,b.subarray(0,y)),l===t.FLOAT?a.freeFloat32(b):a.freeUint8(b)}}(s,e,r,o,this.format,this.type,this._mipLevels,t)}}},{ndarray:259,&quot;ndarray-ops&quot;:254,&quot;typedarray-pool&quot;:308}],147:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){e?e.bind():t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null);var n=0|t.getParameter(t.MAX_VERTEX_ATTRIBS);if(r){if(r.length&gt;n)throw new Error(&quot;gl-vao: Too many vertex attributes&quot;);for(var i=0;i&lt;r.length;++i){var a=r[i];if(a.buffer){var o=a.buffer,s=a.size||4,l=a.type||t.FLOAT,c=!!a.normalized,u=a.stride||0,f=a.offset||0;o.bind(),t.enableVertexAttribArray(i),t.vertexAttribPointer(i,s,l,c,u,f)}else{if(&quot;number&quot;==typeof a)t.vertexAttrib1f(i,a);else if(1===a.length)t.vertexAttrib1f(i,a[0]);else if(2===a.length)t.vertexAttrib2f(i,a[0],a[1]);else if(3===a.length)t.vertexAttrib3f(i,a[0],a[1],a[2]);else{if(4!==a.length)throw new Error(&quot;gl-vao: Invalid vertex attribute&quot;);t.vertexAttrib4f(i,a[0],a[1],a[2],a[3])}t.disableVertexAttribArray(i)}}for(;i&lt;n;++i)t.disableVertexAttribArray(i)}else{t.bindBuffer(t.ARRAY_BUFFER,null);for(i=0;i&lt;n;++i)t.disableVertexAttribArray(i)}}},{}],148:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./do-bind.js&quot;);function i(t){this.gl=t,this._elements=null,this._attributes=null,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(){n(this.gl,this._elements,this._attributes)},i.prototype.update=function(t,e,r){this._elements=e,this._attributes=t,this._elementsType=r||this.gl.UNSIGNED_SHORT},i.prototype.dispose=function(){},i.prototype.unbind=function(){},i.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._elements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t){return new i(t)}},{&quot;./do-bind.js&quot;:147}],149:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./do-bind.js&quot;);function i(t,e,r,n,i,a){this.location=t,this.dimension=e,this.a=r,this.b=n,this.c=i,this.d=a}function a(t,e,r){this.gl=t,this._ext=e,this.handle=r,this._attribs=[],this._useElements=!1,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(t){switch(this.dimension){case 1:t.vertexAttrib1f(this.location,this.a);break;case 2:t.vertexAttrib2f(this.location,this.a,this.b);break;case 3:t.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:t.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d)}},a.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var t=0;t&lt;this._attribs.length;++t)this._attribs[t].bind(this.gl)},a.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},a.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},a.prototype.update=function(t,e,r){if(this.bind(),n(this.gl,e,t),this.unbind(),this._attribs.length=0,t)for(var a=0;a&lt;t.length;++a){var o=t[a];&quot;number&quot;==typeof o?this._attribs.push(new i(a,1,o)):Array.isArray(o)&amp;&amp;this._attribs.push(new i(a,o.length,o[0],o[1],o[2],o[3]))}this._useElements=!!e,this._elementsType=r||this.gl.UNSIGNED_SHORT},a.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._useElements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t,e){return new a(t,e,e.createVertexArrayOES())}},{&quot;./do-bind.js&quot;:147}],150:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/vao-native.js&quot;),i=t(&quot;./lib/vao-emulated.js&quot;);function a(t){this.bindVertexArrayOES=t.bindVertexArray.bind(t),this.createVertexArrayOES=t.createVertexArray.bind(t),this.deleteVertexArrayOES=t.deleteVertexArray.bind(t)}e.exports=function(t,e,r,o){var s,l=t.createVertexArray?new a(t):t.getExtension(&quot;OES_vertex_array_object&quot;);return(s=l?n(t,l):i(t)).update(e,r,o),s}},{&quot;./lib/vao-emulated.js&quot;:148,&quot;./lib/vao-native.js&quot;:149}],151:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}},{}],152:[function(t,e,r){e.exports=function(t,e){var r=n(t[0],t[1],t[2]),o=n(e[0],e[1],e[2]);i(r,r),i(o,o);var s=a(r,o);return s&gt;1?0:Math.acos(s)};var n=t(&quot;./fromValues&quot;),i=t(&quot;./normalize&quot;),a=t(&quot;./dot&quot;)},{&quot;./dot&quot;:162,&quot;./fromValues&quot;:168,&quot;./normalize&quot;:179}],153:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}},{}],154:[function(t,e,r){e.exports=function(t){var e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}},{}],155:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},{}],156:[function(t,e,r){e.exports=function(){var t=new Float32Array(3);return t[0]=0,t[1]=0,t[2]=0,t}},{}],157:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t}},{}],158:[function(t,e,r){e.exports=t(&quot;./distance&quot;)},{&quot;./distance&quot;:159}],159:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}},{}],160:[function(t,e,r){e.exports=t(&quot;./divide&quot;)},{&quot;./divide&quot;:161}],161:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}},{}],162:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}},{}],163:[function(t,e,r){e.exports=1e-6},{}],164:[function(t,e,r){e.exports=function(t,e){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(r-o)&lt;=n*Math.max(1,Math.abs(r),Math.abs(o))&amp;&amp;Math.abs(i-s)&lt;=n*Math.max(1,Math.abs(i),Math.abs(s))&amp;&amp;Math.abs(a-l)&lt;=n*Math.max(1,Math.abs(a),Math.abs(l))};var n=t(&quot;./epsilon&quot;)},{&quot;./epsilon&quot;:163}],165:[function(t,e,r){e.exports=function(t,e){return t[0]===e[0]&amp;&amp;t[1]===e[1]&amp;&amp;t[2]===e[2]}},{}],166:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}},{}],167:[function(t,e,r){e.exports=function(t,e,r,i,a,o){var s,l;e||(e=3);r||(r=0);l=i?Math.min(i*e+r,t.length):t.length;for(s=r;s&lt;l;s+=e)n[0]=t[s],n[1]=t[s+1],n[2]=t[s+2],a(n,n,o),t[s]=n[0],t[s+1]=n[1],t[s+2]=n[2];return t};var n=t(&quot;./create&quot;)()},{&quot;./create&quot;:156}],168:[function(t,e,r){e.exports=function(t,e,r){var n=new Float32Array(3);return n[0]=t,n[1]=e,n[2]=r,n}},{}],169:[function(t,e,r){e.exports={EPSILON:t(&quot;./epsilon&quot;),create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),angle:t(&quot;./angle&quot;),fromValues:t(&quot;./fromValues&quot;),copy:t(&quot;./copy&quot;),set:t(&quot;./set&quot;),equals:t(&quot;./equals&quot;),exactEquals:t(&quot;./exactEquals&quot;),add:t(&quot;./add&quot;),subtract:t(&quot;./subtract&quot;),sub:t(&quot;./sub&quot;),multiply:t(&quot;./multiply&quot;),mul:t(&quot;./mul&quot;),divide:t(&quot;./divide&quot;),div:t(&quot;./div&quot;),min:t(&quot;./min&quot;),max:t(&quot;./max&quot;),floor:t(&quot;./floor&quot;),ceil:t(&quot;./ceil&quot;),round:t(&quot;./round&quot;),scale:t(&quot;./scale&quot;),scaleAndAdd:t(&quot;./scaleAndAdd&quot;),distance:t(&quot;./distance&quot;),dist:t(&quot;./dist&quot;),squaredDistance:t(&quot;./squaredDistance&quot;),sqrDist:t(&quot;./sqrDist&quot;),length:t(&quot;./length&quot;),len:t(&quot;./len&quot;),squaredLength:t(&quot;./squaredLength&quot;),sqrLen:t(&quot;./sqrLen&quot;),negate:t(&quot;./negate&quot;),inverse:t(&quot;./inverse&quot;),normalize:t(&quot;./normalize&quot;),dot:t(&quot;./dot&quot;),cross:t(&quot;./cross&quot;),lerp:t(&quot;./lerp&quot;),random:t(&quot;./random&quot;),transformMat4:t(&quot;./transformMat4&quot;),transformMat3:t(&quot;./transformMat3&quot;),transformQuat:t(&quot;./transformQuat&quot;),rotateX:t(&quot;./rotateX&quot;),rotateY:t(&quot;./rotateY&quot;),rotateZ:t(&quot;./rotateZ&quot;),forEach:t(&quot;./forEach&quot;)}},{&quot;./add&quot;:151,&quot;./angle&quot;:152,&quot;./ceil&quot;:153,&quot;./clone&quot;:154,&quot;./copy&quot;:155,&quot;./create&quot;:156,&quot;./cross&quot;:157,&quot;./dist&quot;:158,&quot;./distance&quot;:159,&quot;./div&quot;:160,&quot;./divide&quot;:161,&quot;./dot&quot;:162,&quot;./epsilon&quot;:163,&quot;./equals&quot;:164,&quot;./exactEquals&quot;:165,&quot;./floor&quot;:166,&quot;./forEach&quot;:167,&quot;./fromValues&quot;:168,&quot;./inverse&quot;:170,&quot;./len&quot;:171,&quot;./length&quot;:172,&quot;./lerp&quot;:173,&quot;./max&quot;:174,&quot;./min&quot;:175,&quot;./mul&quot;:176,&quot;./multiply&quot;:177,&quot;./negate&quot;:178,&quot;./normalize&quot;:179,&quot;./random&quot;:180,&quot;./rotateX&quot;:181,&quot;./rotateY&quot;:182,&quot;./rotateZ&quot;:183,&quot;./round&quot;:184,&quot;./scale&quot;:185,&quot;./scaleAndAdd&quot;:186,&quot;./set&quot;:187,&quot;./sqrDist&quot;:188,&quot;./sqrLen&quot;:189,&quot;./squaredDistance&quot;:190,&quot;./squaredLength&quot;:191,&quot;./sub&quot;:192,&quot;./subtract&quot;:193,&quot;./transformMat3&quot;:194,&quot;./transformMat4&quot;:195,&quot;./transformQuat&quot;:196}],170:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}},{}],171:[function(t,e,r){e.exports=t(&quot;./length&quot;)},{&quot;./length&quot;:172}],172:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}},{}],173:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t}},{}],174:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}},{}],175:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}},{}],176:[function(t,e,r){e.exports=t(&quot;./multiply&quot;)},{&quot;./multiply&quot;:177}],177:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}},{}],178:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}},{}],179:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;a&gt;0&amp;&amp;(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a);return t}},{}],180:[function(t,e,r){e.exports=function(t,e){e=e||1;var r=2*Math.random()*Math.PI,n=2*Math.random()-1,i=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=n*e,t}},{}],181:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[1],a=r[2],o=e[1]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=e[0],t[1]=i+o*c-s*l,t[2]=a+o*l+s*c,t}},{}],182:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[2],o=e[0]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+s*l+o*c,t[1]=e[1],t[2]=a+s*c-o*l,t}},{}],183:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[1],o=e[0]-i,s=e[1]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+o*c-s*l,t[1]=a+o*l+s*c,t[2]=e[2],t}},{}],184:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}},{}],185:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}},{}],186:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}},{}],187:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}},{}],188:[function(t,e,r){e.exports=t(&quot;./squaredDistance&quot;)},{&quot;./squaredDistance&quot;:190}],189:[function(t,e,r){e.exports=t(&quot;./squaredLength&quot;)},{&quot;./squaredLength&quot;:191}],190:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}},{}],191:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}},{}],192:[function(t,e,r){e.exports=t(&quot;./subtract&quot;)},{&quot;./subtract&quot;:193}],193:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}},{}],194:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t}},{}],195:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,t[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,t[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,t}},{}],196:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t}},{}],197:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}},{}],198:[function(t,e,r){e.exports=function(t){var e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}},{}],199:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},{}],200:[function(t,e,r){e.exports=function(){var t=new Float32Array(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}},{}],201:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(r*r+n*n+i*i+a*a)}},{}],202:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}},{}],203:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}},{}],204:[function(t,e,r){e.exports=function(t,e,r,n){var i=new Float32Array(4);return i[0]=t,i[1]=e,i[2]=r,i[3]=n,i}},{}],205:[function(t,e,r){e.exports={create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),fromValues:t(&quot;./fromValues&quot;),copy:t(&quot;./copy&quot;),set:t(&quot;./set&quot;),add:t(&quot;./add&quot;),subtract:t(&quot;./subtract&quot;),multiply:t(&quot;./multiply&quot;),divide:t(&quot;./divide&quot;),min:t(&quot;./min&quot;),max:t(&quot;./max&quot;),scale:t(&quot;./scale&quot;),scaleAndAdd:t(&quot;./scaleAndAdd&quot;),distance:t(&quot;./distance&quot;),squaredDistance:t(&quot;./squaredDistance&quot;),length:t(&quot;./length&quot;),squaredLength:t(&quot;./squaredLength&quot;),negate:t(&quot;./negate&quot;),inverse:t(&quot;./inverse&quot;),normalize:t(&quot;./normalize&quot;),dot:t(&quot;./dot&quot;),lerp:t(&quot;./lerp&quot;),random:t(&quot;./random&quot;),transformMat4:t(&quot;./transformMat4&quot;),transformQuat:t(&quot;./transformQuat&quot;)}},{&quot;./add&quot;:197,&quot;./clone&quot;:198,&quot;./copy&quot;:199,&quot;./create&quot;:200,&quot;./distance&quot;:201,&quot;./divide&quot;:202,&quot;./dot&quot;:203,&quot;./fromValues&quot;:204,&quot;./inverse&quot;:206,&quot;./length&quot;:207,&quot;./lerp&quot;:208,&quot;./max&quot;:209,&quot;./min&quot;:210,&quot;./multiply&quot;:211,&quot;./negate&quot;:212,&quot;./normalize&quot;:213,&quot;./random&quot;:214,&quot;./scale&quot;:215,&quot;./scaleAndAdd&quot;:216,&quot;./set&quot;:217,&quot;./squaredDistance&quot;:218,&quot;./squaredLength&quot;:219,&quot;./subtract&quot;:220,&quot;./transformMat4&quot;:221,&quot;./transformQuat&quot;:222}],206:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}},{}],207:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return Math.sqrt(e*e+r*r+n*n+i*i)}},{}],208:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t}},{}],209:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}},{}],210:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}},{}],211:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}},{}],212:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}},{}],213:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a;o&gt;0&amp;&amp;(o=1/Math.sqrt(o),t[0]=r*o,t[1]=n*o,t[2]=i*o,t[3]=a*o);return t}},{}],214:[function(t,e,r){var n=t(&quot;./normalize&quot;),i=t(&quot;./scale&quot;);e.exports=function(t,e){return e=e||1,t[0]=Math.random(),t[1]=Math.random(),t[2]=Math.random(),t[3]=Math.random(),n(t,t),i(t,t,e),t}},{&quot;./normalize&quot;:213,&quot;./scale&quot;:215}],215:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}},{}],216:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t}},{}],217:[function(t,e,r){e.exports=function(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}},{}],218:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return r*r+n*n+i*i+a*a}},{}],219:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+i*i}},{}],220:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}},{}],221:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}},{}],222:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t[3]=e[3],t}},{}],223:[function(t,e,r){var n=t(&quot;glsl-tokenizer&quot;),i=t(&quot;atob-lite&quot;);e.exports=function(t){for(var e=Array.isArray(t)?t:n(t),r=0;r&lt;e.length;r++){var a=e[r];if(&quot;preprocessor&quot;===a.type){var o=a.data.match(/\#define\s+SHADER_NAME(_B64)?\s+(.+)$/);if(o&amp;&amp;o[2]){var s=o[1],l=o[2];return(s?i(l):l).trim()}}}}},{&quot;atob-lite&quot;:13,&quot;glsl-tokenizer&quot;:230}],224:[function(t,e,r){e.exports=function(t){var e,r,c,u=0,f=0,h=999,p=[],d=[],m=1,g=0,v=0,y=!1,x=!1,b=&quot;&quot;,_=a,w=n;&quot;300 es&quot;===(t=t||{}).version&amp;&amp;(_=s,w=o);var T={},k={};for(u=0;u&lt;_.length;u++)T[_[u]]=!0;for(u=0;u&lt;w.length;u++)k[w[u]]=!0;return function(t){return d=[],null!==t?function(t){u=0,t.toString&amp;&amp;(t=t.toString());var r;b+=t.replace(/\r\n/g,&quot;\n&quot;),c=b.length;for(;e=b[u],u&lt;c;){switch(r=u,h){case 0:u=L();break;case 1:case 2:u=E();break;case 3:u=C();break;case 4:u=O();break;case 11:u=I();break;case 5:u=z();break;case 9999:u=D();break;case 9:u=S();break;case 999:u=M()}if(r!==u)switch(b[r]){case&quot;\n&quot;:g=0,++m;break;default:++g}}return f+=u,b=b.slice(u),d}(t):function(t){p.length&amp;&amp;A(p.join(&quot;&quot;));return h=10,A(&quot;(eof)&quot;),d}()};function A(t){t.length&amp;&amp;d.push({type:l[h],data:t,position:v,line:m,column:g})}function M(){return p=p.length?[]:p,&quot;/&quot;===r&amp;&amp;&quot;*&quot;===e?(v=f+u-1,h=0,r=e,u+1):&quot;/&quot;===r&amp;&amp;&quot;/&quot;===e?(v=f+u-1,h=1,r=e,u+1):&quot;#&quot;===e?(h=2,v=f+u,u):/\s/.test(e)?(h=9,v=f+u,u):(y=/\d/.test(e),x=/[^\w_]/.test(e),v=f+u,h=y?4:x?3:9999,u)}function S(){return/[^\s]/g.test(e)?(A(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function E(){return&quot;\r&quot;!==e&amp;&amp;&quot;\n&quot;!==e||&quot;\\&quot;===r?(p.push(e),r=e,u+1):(A(p.join(&quot;&quot;)),h=999,u)}function L(){return&quot;/&quot;===e&amp;&amp;&quot;*&quot;===r?(p.push(e),A(p.join(&quot;&quot;)),h=999,u+1):(p.push(e),r=e,u+1)}function C(){if(&quot;.&quot;===r&amp;&amp;/\d/.test(e))return h=5,u;if(&quot;/&quot;===r&amp;&amp;&quot;*&quot;===e)return h=0,u;if(&quot;/&quot;===r&amp;&amp;&quot;/&quot;===e)return h=1,u;if(&quot;.&quot;===e&amp;&amp;p.length){for(;P(p););return h=5,u}if(&quot;;&quot;===e||&quot;)&quot;===e||&quot;(&quot;===e){if(p.length)for(;P(p););return A(e),h=999,u+1}var t=2===p.length&amp;&amp;&quot;=&quot;!==e;if(/[\w_\d\s]/.test(e)||t){for(;P(p););return h=999,u}return p.push(e),r=e,u+1}function P(t){for(var e,r,n=0;;){if(e=i.indexOf(t.slice(0,t.length+n).join(&quot;&quot;)),r=i[e],-1===e){if(n--+t.length&gt;0)continue;r=t.slice(0,1).join(&quot;&quot;)}return A(r),v+=r.length,(p=p.slice(r.length)).length}}function I(){return/[^a-fA-F0-9]/.test(e)?(A(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function O(){return&quot;.&quot;===e||/[eE]/.test(e)?(p.push(e),h=5,r=e,u+1):&quot;x&quot;===e&amp;&amp;1===p.length&amp;&amp;&quot;0&quot;===p[0]?(h=11,p.push(e),r=e,u+1):/[^\d]/.test(e)?(A(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function z(){return&quot;f&quot;===e&amp;&amp;(p.push(e),r=e,u+=1),/[eE]/.test(e)?(p.push(e),r=e,u+1):(&quot;-&quot;!==e&amp;&amp;&quot;+&quot;!==e||!/[eE]/.test(r))&amp;&amp;/[^\d]/.test(e)?(A(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function D(){if(/[^\d\w_]/.test(e)){var t=p.join(&quot;&quot;);return h=k[t]?8:T[t]?7:6,A(p.join(&quot;&quot;)),h=999,u}return p.push(e),r=e,u+1}};var n=t(&quot;./lib/literals&quot;),i=t(&quot;./lib/operators&quot;),a=t(&quot;./lib/builtins&quot;),o=t(&quot;./lib/literals-300es&quot;),s=t(&quot;./lib/builtins-300es&quot;),l=[&quot;block-comment&quot;,&quot;line-comment&quot;,&quot;preprocessor&quot;,&quot;operator&quot;,&quot;integer&quot;,&quot;float&quot;,&quot;ident&quot;,&quot;builtin&quot;,&quot;keyword&quot;,&quot;whitespace&quot;,&quot;eof&quot;,&quot;integer&quot;]},{&quot;./lib/builtins&quot;:226,&quot;./lib/builtins-300es&quot;:225,&quot;./lib/literals&quot;:228,&quot;./lib/literals-300es&quot;:227,&quot;./lib/operators&quot;:229}],225:[function(t,e,r){var n=t(&quot;./builtins&quot;);n=n.slice().filter((function(t){return!/^(gl\_|texture)/.test(t)})),e.exports=n.concat([&quot;gl_VertexID&quot;,&quot;gl_InstanceID&quot;,&quot;gl_Position&quot;,&quot;gl_PointSize&quot;,&quot;gl_FragCoord&quot;,&quot;gl_FrontFacing&quot;,&quot;gl_FragDepth&quot;,&quot;gl_PointCoord&quot;,&quot;gl_MaxVertexAttribs&quot;,&quot;gl_MaxVertexUniformVectors&quot;,&quot;gl_MaxVertexOutputVectors&quot;,&quot;gl_MaxFragmentInputVectors&quot;,&quot;gl_MaxVertexTextureImageUnits&quot;,&quot;gl_MaxCombinedTextureImageUnits&quot;,&quot;gl_MaxTextureImageUnits&quot;,&quot;gl_MaxFragmentUniformVectors&quot;,&quot;gl_MaxDrawBuffers&quot;,&quot;gl_MinProgramTexelOffset&quot;,&quot;gl_MaxProgramTexelOffset&quot;,&quot;gl_DepthRangeParameters&quot;,&quot;gl_DepthRange&quot;,&quot;trunc&quot;,&quot;round&quot;,&quot;roundEven&quot;,&quot;isnan&quot;,&quot;isinf&quot;,&quot;floatBitsToInt&quot;,&quot;floatBitsToUint&quot;,&quot;intBitsToFloat&quot;,&quot;uintBitsToFloat&quot;,&quot;packSnorm2x16&quot;,&quot;unpackSnorm2x16&quot;,&quot;packUnorm2x16&quot;,&quot;unpackUnorm2x16&quot;,&quot;packHalf2x16&quot;,&quot;unpackHalf2x16&quot;,&quot;outerProduct&quot;,&quot;transpose&quot;,&quot;determinant&quot;,&quot;inverse&quot;,&quot;texture&quot;,&quot;textureSize&quot;,&quot;textureProj&quot;,&quot;textureLod&quot;,&quot;textureOffset&quot;,&quot;texelFetch&quot;,&quot;texelFetchOffset&quot;,&quot;textureProjOffset&quot;,&quot;textureLodOffset&quot;,&quot;textureProjLod&quot;,&quot;textureProjLodOffset&quot;,&quot;textureGrad&quot;,&quot;textureGradOffset&quot;,&quot;textureProjGrad&quot;,&quot;textureProjGradOffset&quot;])},{&quot;./builtins&quot;:226}],226:[function(t,e,r){e.exports=[&quot;abs&quot;,&quot;acos&quot;,&quot;all&quot;,&quot;any&quot;,&quot;asin&quot;,&quot;atan&quot;,&quot;ceil&quot;,&quot;clamp&quot;,&quot;cos&quot;,&quot;cross&quot;,&quot;dFdx&quot;,&quot;dFdy&quot;,&quot;degrees&quot;,&quot;distance&quot;,&quot;dot&quot;,&quot;equal&quot;,&quot;exp&quot;,&quot;exp2&quot;,&quot;faceforward&quot;,&quot;floor&quot;,&quot;fract&quot;,&quot;gl_BackColor&quot;,&quot;gl_BackLightModelProduct&quot;,&quot;gl_BackLightProduct&quot;,&quot;gl_BackMaterial&quot;,&quot;gl_BackSecondaryColor&quot;,&quot;gl_ClipPlane&quot;,&quot;gl_ClipVertex&quot;,&quot;gl_Color&quot;,&quot;gl_DepthRange&quot;,&quot;gl_DepthRangeParameters&quot;,&quot;gl_EyePlaneQ&quot;,&quot;gl_EyePlaneR&quot;,&quot;gl_EyePlaneS&quot;,&quot;gl_EyePlaneT&quot;,&quot;gl_Fog&quot;,&quot;gl_FogCoord&quot;,&quot;gl_FogFragCoord&quot;,&quot;gl_FogParameters&quot;,&quot;gl_FragColor&quot;,&quot;gl_FragCoord&quot;,&quot;gl_FragData&quot;,&quot;gl_FragDepth&quot;,&quot;gl_FragDepthEXT&quot;,&quot;gl_FrontColor&quot;,&quot;gl_FrontFacing&quot;,&quot;gl_FrontLightModelProduct&quot;,&quot;gl_FrontLightProduct&quot;,&quot;gl_FrontMaterial&quot;,&quot;gl_FrontSecondaryColor&quot;,&quot;gl_LightModel&quot;,&quot;gl_LightModelParameters&quot;,&quot;gl_LightModelProducts&quot;,&quot;gl_LightProducts&quot;,&quot;gl_LightSource&quot;,&quot;gl_LightSourceParameters&quot;,&quot;gl_MaterialParameters&quot;,&quot;gl_MaxClipPlanes&quot;,&quot;gl_MaxCombinedTextureImageUnits&quot;,&quot;gl_MaxDrawBuffers&quot;,&quot;gl_MaxFragmentUniformComponents&quot;,&quot;gl_MaxLights&quot;,&quot;gl_MaxTextureCoords&quot;,&quot;gl_MaxTextureImageUnits&quot;,&quot;gl_MaxTextureUnits&quot;,&quot;gl_MaxVaryingFloats&quot;,&quot;gl_MaxVertexAttribs&quot;,&quot;gl_MaxVertexTextureImageUnits&quot;,&quot;gl_MaxVertexUniformComponents&quot;,&quot;gl_ModelViewMatrix&quot;,&quot;gl_ModelViewMatrixInverse&quot;,&quot;gl_ModelViewMatrixInverseTranspose&quot;,&quot;gl_ModelViewMatrixTranspose&quot;,&quot;gl_ModelViewProjectionMatrix&quot;,&quot;gl_ModelViewProjectionMatrixInverse&quot;,&quot;gl_ModelViewProjectionMatrixInverseTranspose&quot;,&quot;gl_ModelViewProjectionMatrixTranspose&quot;,&quot;gl_MultiTexCoord0&quot;,&quot;gl_MultiTexCoord1&quot;,&quot;gl_MultiTexCoord2&quot;,&quot;gl_MultiTexCoord3&quot;,&quot;gl_MultiTexCoord4&quot;,&quot;gl_MultiTexCoord5&quot;,&quot;gl_MultiTexCoord6&quot;,&quot;gl_MultiTexCoord7&quot;,&quot;gl_Normal&quot;,&quot;gl_NormalMatrix&quot;,&quot;gl_NormalScale&quot;,&quot;gl_ObjectPlaneQ&quot;,&quot;gl_ObjectPlaneR&quot;,&quot;gl_ObjectPlaneS&quot;,&quot;gl_ObjectPlaneT&quot;,&quot;gl_Point&quot;,&quot;gl_PointCoord&quot;,&quot;gl_PointParameters&quot;,&quot;gl_PointSize&quot;,&quot;gl_Position&quot;,&quot;gl_ProjectionMatrix&quot;,&quot;gl_ProjectionMatrixInverse&quot;,&quot;gl_ProjectionMatrixInverseTranspose&quot;,&quot;gl_ProjectionMatrixTranspose&quot;,&quot;gl_SecondaryColor&quot;,&quot;gl_TexCoord&quot;,&quot;gl_TextureEnvColor&quot;,&quot;gl_TextureMatrix&quot;,&quot;gl_TextureMatrixInverse&quot;,&quot;gl_TextureMatrixInverseTranspose&quot;,&quot;gl_TextureMatrixTranspose&quot;,&quot;gl_Vertex&quot;,&quot;greaterThan&quot;,&quot;greaterThanEqual&quot;,&quot;inversesqrt&quot;,&quot;length&quot;,&quot;lessThan&quot;,&quot;lessThanEqual&quot;,&quot;log&quot;,&quot;log2&quot;,&quot;matrixCompMult&quot;,&quot;max&quot;,&quot;min&quot;,&quot;mix&quot;,&quot;mod&quot;,&quot;normalize&quot;,&quot;not&quot;,&quot;notEqual&quot;,&quot;pow&quot;,&quot;radians&quot;,&quot;reflect&quot;,&quot;refract&quot;,&quot;sign&quot;,&quot;sin&quot;,&quot;smoothstep&quot;,&quot;sqrt&quot;,&quot;step&quot;,&quot;tan&quot;,&quot;texture2D&quot;,&quot;texture2DLod&quot;,&quot;texture2DProj&quot;,&quot;texture2DProjLod&quot;,&quot;textureCube&quot;,&quot;textureCubeLod&quot;,&quot;texture2DLodEXT&quot;,&quot;texture2DProjLodEXT&quot;,&quot;textureCubeLodEXT&quot;,&quot;texture2DGradEXT&quot;,&quot;texture2DProjGradEXT&quot;,&quot;textureCubeGradEXT&quot;]},{}],227:[function(t,e,r){var n=t(&quot;./literals&quot;);e.exports=n.slice().concat([&quot;layout&quot;,&quot;centroid&quot;,&quot;smooth&quot;,&quot;case&quot;,&quot;mat2x2&quot;,&quot;mat2x3&quot;,&quot;mat2x4&quot;,&quot;mat3x2&quot;,&quot;mat3x3&quot;,&quot;mat3x4&quot;,&quot;mat4x2&quot;,&quot;mat4x3&quot;,&quot;mat4x4&quot;,&quot;uvec2&quot;,&quot;uvec3&quot;,&quot;uvec4&quot;,&quot;samplerCubeShadow&quot;,&quot;sampler2DArray&quot;,&quot;sampler2DArrayShadow&quot;,&quot;isampler2D&quot;,&quot;isampler3D&quot;,&quot;isamplerCube&quot;,&quot;isampler2DArray&quot;,&quot;usampler2D&quot;,&quot;usampler3D&quot;,&quot;usamplerCube&quot;,&quot;usampler2DArray&quot;,&quot;coherent&quot;,&quot;restrict&quot;,&quot;readonly&quot;,&quot;writeonly&quot;,&quot;resource&quot;,&quot;atomic_uint&quot;,&quot;noperspective&quot;,&quot;patch&quot;,&quot;sample&quot;,&quot;subroutine&quot;,&quot;common&quot;,&quot;partition&quot;,&quot;active&quot;,&quot;filter&quot;,&quot;image1D&quot;,&quot;image2D&quot;,&quot;image3D&quot;,&quot;imageCube&quot;,&quot;iimage1D&quot;,&quot;iimage2D&quot;,&quot;iimage3D&quot;,&quot;iimageCube&quot;,&quot;uimage1D&quot;,&quot;uimage2D&quot;,&quot;uimage3D&quot;,&quot;uimageCube&quot;,&quot;image1DArray&quot;,&quot;image2DArray&quot;,&quot;iimage1DArray&quot;,&quot;iimage2DArray&quot;,&quot;uimage1DArray&quot;,&quot;uimage2DArray&quot;,&quot;image1DShadow&quot;,&quot;image2DShadow&quot;,&quot;image1DArrayShadow&quot;,&quot;image2DArrayShadow&quot;,&quot;imageBuffer&quot;,&quot;iimageBuffer&quot;,&quot;uimageBuffer&quot;,&quot;sampler1DArray&quot;,&quot;sampler1DArrayShadow&quot;,&quot;isampler1D&quot;,&quot;isampler1DArray&quot;,&quot;usampler1D&quot;,&quot;usampler1DArray&quot;,&quot;isampler2DRect&quot;,&quot;usampler2DRect&quot;,&quot;samplerBuffer&quot;,&quot;isamplerBuffer&quot;,&quot;usamplerBuffer&quot;,&quot;sampler2DMS&quot;,&quot;isampler2DMS&quot;,&quot;usampler2DMS&quot;,&quot;sampler2DMSArray&quot;,&quot;isampler2DMSArray&quot;,&quot;usampler2DMSArray&quot;])},{&quot;./literals&quot;:228}],228:[function(t,e,r){e.exports=[&quot;precision&quot;,&quot;highp&quot;,&quot;mediump&quot;,&quot;lowp&quot;,&quot;attribute&quot;,&quot;const&quot;,&quot;uniform&quot;,&quot;varying&quot;,&quot;break&quot;,&quot;continue&quot;,&quot;do&quot;,&quot;for&quot;,&quot;while&quot;,&quot;if&quot;,&quot;else&quot;,&quot;in&quot;,&quot;out&quot;,&quot;inout&quot;,&quot;float&quot;,&quot;int&quot;,&quot;uint&quot;,&quot;void&quot;,&quot;bool&quot;,&quot;true&quot;,&quot;false&quot;,&quot;discard&quot;,&quot;return&quot;,&quot;mat2&quot;,&quot;mat3&quot;,&quot;mat4&quot;,&quot;vec2&quot;,&quot;vec3&quot;,&quot;vec4&quot;,&quot;ivec2&quot;,&quot;ivec3&quot;,&quot;ivec4&quot;,&quot;bvec2&quot;,&quot;bvec3&quot;,&quot;bvec4&quot;,&quot;sampler1D&quot;,&quot;sampler2D&quot;,&quot;sampler3D&quot;,&quot;samplerCube&quot;,&quot;sampler1DShadow&quot;,&quot;sampler2DShadow&quot;,&quot;struct&quot;,&quot;asm&quot;,&quot;class&quot;,&quot;union&quot;,&quot;enum&quot;,&quot;typedef&quot;,&quot;template&quot;,&quot;this&quot;,&quot;packed&quot;,&quot;goto&quot;,&quot;switch&quot;,&quot;default&quot;,&quot;inline&quot;,&quot;noinline&quot;,&quot;volatile&quot;,&quot;public&quot;,&quot;static&quot;,&quot;extern&quot;,&quot;external&quot;,&quot;interface&quot;,&quot;long&quot;,&quot;short&quot;,&quot;double&quot;,&quot;half&quot;,&quot;fixed&quot;,&quot;unsigned&quot;,&quot;input&quot;,&quot;output&quot;,&quot;hvec2&quot;,&quot;hvec3&quot;,&quot;hvec4&quot;,&quot;dvec2&quot;,&quot;dvec3&quot;,&quot;dvec4&quot;,&quot;fvec2&quot;,&quot;fvec3&quot;,&quot;fvec4&quot;,&quot;sampler2DRect&quot;,&quot;sampler3DRect&quot;,&quot;sampler2DRectShadow&quot;,&quot;sizeof&quot;,&quot;cast&quot;,&quot;namespace&quot;,&quot;using&quot;]},{}],229:[function(t,e,r){e.exports=[&quot;&lt;&lt;=&quot;,&quot;&gt;&gt;=&quot;,&quot;++&quot;,&quot;--&quot;,&quot;&lt;&lt;&quot;,&quot;&gt;&gt;&quot;,&quot;&lt;=&quot;,&quot;&gt;=&quot;,&quot;==&quot;,&quot;!=&quot;,&quot;&amp;&amp;&quot;,&quot;||&quot;,&quot;+=&quot;,&quot;-=&quot;,&quot;*=&quot;,&quot;/=&quot;,&quot;%=&quot;,&quot;&amp;=&quot;,&quot;^^&quot;,&quot;^=&quot;,&quot;|=&quot;,&quot;(&quot;,&quot;)&quot;,&quot;[&quot;,&quot;]&quot;,&quot;.&quot;,&quot;!&quot;,&quot;~&quot;,&quot;*&quot;,&quot;/&quot;,&quot;%&quot;,&quot;+&quot;,&quot;-&quot;,&quot;&lt;&quot;,&quot;&gt;&quot;,&quot;&amp;&quot;,&quot;^&quot;,&quot;|&quot;,&quot;?&quot;,&quot;:&quot;,&quot;=&quot;,&quot;,&quot;,&quot;;&quot;,&quot;{&quot;,&quot;}&quot;]},{}],230:[function(t,e,r){var n=t(&quot;./index&quot;);e.exports=function(t,e){var r=n(e),i=[];return i=(i=i.concat(r(t))).concat(r(null))}},{&quot;./index&quot;:224}],231:[function(t,e,r){e.exports=function(t){&quot;string&quot;==typeof t&amp;&amp;(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n&lt;t.length-1;n++)r.push(t[n],e[n]||&quot;&quot;);return r.push(t[n]),r.join(&quot;&quot;)}},{}],232:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-browser&quot;);e.exports=n&amp;&amp;function(){var t=!1;try{var e=Object.defineProperty({},&quot;passive&quot;,{get:function(){t=!0}});window.addEventListener(&quot;test&quot;,null,e),window.removeEventListener(&quot;test&quot;,null,e)}catch(e){t=!1}return t}()},{&quot;is-browser&quot;:236}],233:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.length;if(0===r)throw new Error(&quot;Must have at least d+1 points&quot;);var i=t[0].length;if(r&lt;=i)throw new Error(&quot;Must input at least d+1 points&quot;);var o=t.slice(0,i+1),s=n.apply(void 0,o);if(0===s)throw new Error(&quot;Input not in general position&quot;);for(var l=new Array(i+1),u=0;u&lt;=i;++u)l[u]=u;s&lt;0&amp;&amp;(l[0]=1,l[1]=0);var f=new a(l,new Array(i+1),!1),h=f.adjacent,p=new Array(i+2);for(u=0;u&lt;=i;++u){for(var d=l.slice(),m=0;m&lt;=i;++m)m===u&amp;&amp;(d[m]=-1);var g=d[0];d[0]=d[1],d[1]=g;var v=new a(d,new Array(i+1),!0);h[u]=v,p[u]=v}p[i+1]=f;for(u=0;u&lt;=i;++u){d=h[u].vertices;var y=h[u].adjacent;for(m=0;m&lt;=i;++m){var x=d[m];if(x&lt;0)y[m]=f;else for(var b=0;b&lt;=i;++b)h[b].vertices.indexOf(x)&lt;0&amp;&amp;(y[m]=h[b])}}var _=new c(i,o,p),w=!!e;for(u=i+1;u&lt;r;++u)_.insert(t[u],w);return _.boundary()};var n=t(&quot;robust-orientation&quot;),i=t(&quot;simplicial-complex&quot;).compareCells;function a(t,e,r){this.vertices=t,this.adjacent=e,this.boundary=r,this.lastVisited=-1}function o(t,e,r){this.vertices=t,this.cell=e,this.index=r}function s(t,e){return i(t.vertices,e.vertices)}a.prototype.flip=function(){var t=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=t;var e=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=e};var l=[];function c(t,e,r){this.dimension=t,this.vertices=e,this.simplices=r,this.interior=r.filter((function(t){return!t.boundary})),this.tuple=new Array(t+1);for(var i=0;i&lt;=t;++i)this.tuple[i]=this.vertices[i];var a,o=l[t];o||(o=l[t]=((a=n[t+1])||(a=n),function(t){return function(){var e=this.tuple;return t.apply(this,e)}}(a))),this.orient=o}var u=c.prototype;u.handleBoundaryDegeneracy=function(t,e){var r=this.dimension,n=this.vertices.length-1,i=this.tuple,a=this.vertices,o=[t];for(t.lastVisited=-n;o.length&gt;0;)for(var s=(t=o.pop()).adjacent,l=0;l&lt;=r;++l){var c=s[l];if(c.boundary&amp;&amp;!(c.lastVisited&lt;=-n)){for(var u=c.vertices,f=0;f&lt;=r;++f){var h=u[f];i[f]=h&lt;0?e:a[h]}var p=this.orient();if(p&gt;0)return c;c.lastVisited=-n,0===p&amp;&amp;o.push(c)}}return null},u.walk=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,a=this.tuple,o=e?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[o];t:for(;!s.boundary;){for(var l=s.vertices,c=s.adjacent,u=0;u&lt;=n;++u)a[u]=i[l[u]];s.lastVisited=r;for(u=0;u&lt;=n;++u){var f=c[u];if(!(f.lastVisited&gt;=r)){var h=a[u];a[u]=t;var p=this.orient();if(a[u]=h,p&lt;0){s=f;continue t}f.boundary?f.lastVisited=-r:f.lastVisited=r}}return}return s},u.addPeaks=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,l=this.tuple,c=this.interior,u=this.simplices,f=[e];e.lastVisited=r,e.vertices[e.vertices.indexOf(-1)]=r,e.boundary=!1,c.push(e);for(var h=[];f.length&gt;0;){var p=(e=f.pop()).vertices,d=e.adjacent,m=p.indexOf(r);if(!(m&lt;0))for(var g=0;g&lt;=n;++g)if(g!==m){var v=d[g];if(v.boundary&amp;&amp;!(v.lastVisited&gt;=r)){var y=v.vertices;if(v.lastVisited!==-r){for(var x=0,b=0;b&lt;=n;++b)y[b]&lt;0?(x=b,l[b]=t):l[b]=i[y[b]];if(this.orient()&gt;0){y[x]=r,v.boundary=!1,c.push(v),f.push(v),v.lastVisited=r;continue}v.lastVisited=-r}var _=v.adjacent,w=p.slice(),T=d.slice(),k=new a(w,T,!0);u.push(k);var A=_.indexOf(e);if(!(A&lt;0)){_[A]=k,T[m]=v,w[g]=-1,T[g]=e,d[g]=k,k.flip();for(b=0;b&lt;=n;++b){var M=w[b];if(!(M&lt;0||M===r)){for(var S=new Array(n-1),E=0,L=0;L&lt;=n;++L){var C=w[L];C&lt;0||L===b||(S[E++]=C)}h.push(new o(S,k,b))}}}}}}h.sort(s);for(g=0;g+1&lt;h.length;g+=2){var P=h[g],I=h[g+1],O=P.index,z=I.index;O&lt;0||z&lt;0||(P.cell.adjacent[P.index]=I.cell,I.cell.adjacent[I.index]=P.cell)}},u.insert=function(t,e){var r=this.vertices;r.push(t);var n=this.walk(t,e);if(n){for(var i=this.dimension,a=this.tuple,o=0;o&lt;=i;++o){var s=n.vertices[o];a[o]=s&lt;0?t:r[s]}var l=this.orient(a);l&lt;0||(0!==l||(n=this.handleBoundaryDegeneracy(n,t)))&amp;&amp;this.addPeaks(t,n)}},u.boundary=function(){for(var t=this.dimension,e=[],r=this.simplices,n=r.length,i=0;i&lt;n;++i){var a=r[i];if(a.boundary){for(var o=new Array(t),s=a.vertices,l=0,c=0,u=0;u&lt;=t;++u)s[u]&gt;=0?o[l++]=s[u]:c=1&amp;u;if(c===(1&amp;t)){var f=o[0];o[0]=o[1],o[1]=f}e.push(o)}}return e}},{&quot;robust-orientation&quot;:284,&quot;simplicial-complex&quot;:293}],234:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;);function i(t,e,r,n,i){this.mid=t,this.left=e,this.right=r,this.leftPoints=n,this.rightPoints=i,this.count=(e?e.count:0)+(r?r.count:0)+n.length}e.exports=function(t){if(!t||0===t.length)return new v(null);return new v(g(t))};var a=i.prototype;function o(t,e){t.mid=e.mid,t.left=e.left,t.right=e.right,t.leftPoints=e.leftPoints,t.rightPoints=e.rightPoints,t.count=e.count}function s(t,e){var r=g(e);t.mid=r.mid,t.left=r.left,t.right=r.right,t.leftPoints=r.leftPoints,t.rightPoints=r.rightPoints,t.count=r.count}function l(t,e){var r=t.intervals([]);r.push(e),s(t,r)}function c(t,e){var r=t.intervals([]),n=r.indexOf(e);return n&lt;0?0:(r.splice(n,1),s(t,r),1)}function u(t,e,r){for(var n=0;n&lt;t.length&amp;&amp;t[n][0]&lt;=e;++n){var i=r(t[n]);if(i)return i}}function f(t,e,r){for(var n=t.length-1;n&gt;=0&amp;&amp;t[n][1]&gt;=e;--n){var i=r(t[n]);if(i)return i}}function h(t,e){for(var r=0;r&lt;t.length;++r){var n=e(t[r]);if(n)return n}}function p(t,e){return t-e}function d(t,e){var r=t[0]-e[0];return r||t[1]-e[1]}function m(t,e){var r=t[1]-e[1];return r||t[0]-e[0]}function g(t){if(0===t.length)return null;for(var e=[],r=0;r&lt;t.length;++r)e.push(t[r][0],t[r][1]);e.sort(p);var n=e[e.length&gt;&gt;1],a=[],o=[],s=[];for(r=0;r&lt;t.length;++r){var l=t[r];l[1]&lt;n?a.push(l):n&lt;l[0]?o.push(l):s.push(l)}var c=s,u=s.slice();return c.sort(d),u.sort(m),new i(n,g(a),g(o),c,u)}function v(t){this.root=t}a.intervals=function(t){return t.push.apply(t,this.leftPoints),this.left&amp;&amp;this.left.intervals(t),this.right&amp;&amp;this.right.intervals(t),t},a.insert=function(t){var e=this.count-this.leftPoints.length;if(this.count+=1,t[1]&lt;this.mid)this.left?4*(this.left.count+1)&gt;3*(e+1)?l(this,t):this.left.insert(t):this.left=g([t]);else if(t[0]&gt;this.mid)this.right?4*(this.right.count+1)&gt;3*(e+1)?l(this,t):this.right.insert(t):this.right=g([t]);else{var r=n.ge(this.leftPoints,t,d),i=n.ge(this.rightPoints,t,m);this.leftPoints.splice(r,0,t),this.rightPoints.splice(i,0,t)}},a.remove=function(t){var e=this.count-this.leftPoints;if(t[1]&lt;this.mid)return this.left?4*(this.right?this.right.count:0)&gt;3*(e-1)?c(this,t):2===(s=this.left.remove(t))?(this.left=null,this.count-=1,1):(1===s&amp;&amp;(this.count-=1),s):0;if(t[0]&gt;this.mid)return this.right?4*(this.left?this.left.count:0)&gt;3*(e-1)?c(this,t):2===(s=this.right.remove(t))?(this.right=null,this.count-=1,1):(1===s&amp;&amp;(this.count-=1),s):0;if(1===this.count)return this.leftPoints[0]===t?2:0;if(1===this.leftPoints.length&amp;&amp;this.leftPoints[0]===t){if(this.left&amp;&amp;this.right){for(var r=this,i=this.left;i.right;)r=i,i=i.right;if(r===this)i.right=this.right;else{var a=this.left,s=this.right;r.count-=i.count,r.right=i.left,i.left=a,i.right=s}o(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?o(this,this.left):o(this,this.right);return 1}for(a=n.ge(this.leftPoints,t,d);a&lt;this.leftPoints.length&amp;&amp;this.leftPoints[a][0]===t[0];++a)if(this.leftPoints[a]===t){this.count-=1,this.leftPoints.splice(a,1);for(s=n.ge(this.rightPoints,t,m);s&lt;this.rightPoints.length&amp;&amp;this.rightPoints[s][1]===t[1];++s)if(this.rightPoints[s]===t)return this.rightPoints.splice(s,1),1}return 0},a.queryPoint=function(t,e){if(t&lt;this.mid){if(this.left)if(r=this.left.queryPoint(t,e))return r;return u(this.leftPoints,t,e)}if(t&gt;this.mid){var r;if(this.right)if(r=this.right.queryPoint(t,e))return r;return f(this.rightPoints,t,e)}return h(this.leftPoints,e)},a.queryInterval=function(t,e,r){var n;if(t&lt;this.mid&amp;&amp;this.left&amp;&amp;(n=this.left.queryInterval(t,e,r)))return n;if(e&gt;this.mid&amp;&amp;this.right&amp;&amp;(n=this.right.queryInterval(t,e,r)))return n;return e&lt;this.mid?u(this.leftPoints,e,r):t&gt;this.mid?f(this.rightPoints,t,r):h(this.leftPoints,r)};var y=v.prototype;y.insert=function(t){this.root?this.root.insert(t):this.root=new i(t[0],null,null,[t],[t])},y.remove=function(t){if(this.root){var e=this.root.remove(t);return 2===e&amp;&amp;(this.root=null),0!==e}return!1},y.queryPoint=function(t,e){if(this.root)return this.root.queryPoint(t,e)},y.queryInterval=function(t,e,r){if(t&lt;=e&amp;&amp;this.root)return this.root.queryInterval(t,e,r)},Object.defineProperty(y,&quot;count&quot;,{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(y,&quot;intervals&quot;,{get:function(){return this.root?this.root.intervals([]):[]}})},{&quot;binary-search-bounds&quot;:31}],235:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=r;return e}},{}],236:[function(t,e,r){e.exports=!0},{}],237:[function(t,e,r){function n(t){return!!t.constructor&amp;&amp;&quot;function&quot;==typeof t.constructor.isBuffer&amp;&amp;t.constructor.isBuffer(t)}
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh &lt;https://feross.org&gt;
 * @license  MIT
 */
e.exports=function(t){return null!=t&amp;&amp;(n(t)||function(t){return&quot;function&quot;==typeof t.readFloatLE&amp;&amp;&quot;function&quot;==typeof t.slice&amp;&amp;n(t.slice(0,0))}(t)||!!t._isBuffer)}},{}],238:[function(t,e,r){&quot;use strict&quot;;e.exports=a,e.exports.isMobile=a,e.exports.default=a;var n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function a(t){t||(t={});var e=t.ua;if(e||&quot;undefined&quot;==typeof navigator||(e=navigator.userAgent),e&amp;&amp;e.headers&amp;&amp;&quot;string&quot;==typeof e.headers[&quot;user-agent&quot;]&amp;&amp;(e=e.headers[&quot;user-agent&quot;]),&quot;string&quot;!=typeof e)return!1;var r=t.tablet?i.test(e):n.test(e);return!r&amp;&amp;t.tablet&amp;&amp;t.featureDetect&amp;&amp;navigator&amp;&amp;navigator.maxTouchPoints&gt;1&amp;&amp;-1!==e.indexOf(&quot;Macintosh&quot;)&amp;&amp;-1!==e.indexOf(&quot;Safari&quot;)&amp;&amp;(r=!0),r}},{}],239:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e,r=t.length,n=0;n&lt;r;n++)if(((e=t.charCodeAt(n))&lt;9||e&gt;13)&amp;&amp;32!==e&amp;&amp;133!==e&amp;&amp;160!==e&amp;&amp;5760!==e&amp;&amp;6158!==e&amp;&amp;(e&lt;8192||e&gt;8205)&amp;&amp;8232!==e&amp;&amp;8233!==e&amp;&amp;8239!==e&amp;&amp;8287!==e&amp;&amp;8288!==e&amp;&amp;12288!==e&amp;&amp;65279!==e)return!1;return!0}},{}],240:[function(t,e,r){e.exports=function(t,e,r){return t*(1-r)+e*r}},{}],241:[function(t,e,r){var n=t(&quot;./normalize&quot;),i=t(&quot;gl-mat4/create&quot;),a=t(&quot;gl-mat4/clone&quot;),o=t(&quot;gl-mat4/determinant&quot;),s=t(&quot;gl-mat4/invert&quot;),l=t(&quot;gl-mat4/transpose&quot;),c={length:t(&quot;gl-vec3/length&quot;),normalize:t(&quot;gl-vec3/normalize&quot;),dot:t(&quot;gl-vec3/dot&quot;),cross:t(&quot;gl-vec3/cross&quot;)},u=i(),f=i(),h=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],d=[0,0,0];function m(t,e,r,n,i){t[0]=e[0]*n+r[0]*i,t[1]=e[1]*n+r[1]*i,t[2]=e[2]*n+r[2]*i}e.exports=function(t,e,r,i,g,v){if(e||(e=[0,0,0]),r||(r=[0,0,0]),i||(i=[0,0,0]),g||(g=[0,0,0,1]),v||(v=[0,0,0,1]),!n(u,t))return!1;if(a(f,u),f[3]=0,f[7]=0,f[11]=0,f[15]=1,Math.abs(o(f)&lt;1e-8))return!1;var y,x,b,_,w,T,k,A=u[3],M=u[7],S=u[11],E=u[12],L=u[13],C=u[14],P=u[15];if(0!==A||0!==M||0!==S){if(h[0]=A,h[1]=M,h[2]=S,h[3]=P,!s(f,f))return!1;l(f,f),y=g,b=f,_=(x=h)[0],w=x[1],T=x[2],k=x[3],y[0]=b[0]*_+b[4]*w+b[8]*T+b[12]*k,y[1]=b[1]*_+b[5]*w+b[9]*T+b[13]*k,y[2]=b[2]*_+b[6]*w+b[10]*T+b[14]*k,y[3]=b[3]*_+b[7]*w+b[11]*T+b[15]*k}else g[0]=g[1]=g[2]=0,g[3]=1;if(e[0]=E,e[1]=L,e[2]=C,function(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}(p,u),r[0]=c.length(p[0]),c.normalize(p[0],p[0]),i[0]=c.dot(p[0],p[1]),m(p[1],p[1],p[0],1,-i[0]),r[1]=c.length(p[1]),c.normalize(p[1],p[1]),i[0]/=r[1],i[1]=c.dot(p[0],p[2]),m(p[2],p[2],p[0],1,-i[1]),i[2]=c.dot(p[1],p[2]),m(p[2],p[2],p[1],1,-i[2]),r[2]=c.length(p[2]),c.normalize(p[2],p[2]),i[1]/=r[2],i[2]/=r[2],c.cross(d,p[1],p[2]),c.dot(p[0],d)&lt;0)for(var I=0;I&lt;3;I++)r[I]*=-1,p[I][0]*=-1,p[I][1]*=-1,p[I][2]*=-1;return v[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),v[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),v[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),v[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]&gt;p[1][2]&amp;&amp;(v[0]=-v[0]),p[0][2]&gt;p[2][0]&amp;&amp;(v[1]=-v[1]),p[1][0]&gt;p[0][1]&amp;&amp;(v[2]=-v[2]),!0}},{&quot;./normalize&quot;:242,&quot;gl-mat4/clone&quot;:92,&quot;gl-mat4/create&quot;:93,&quot;gl-mat4/determinant&quot;:94,&quot;gl-mat4/invert&quot;:98,&quot;gl-mat4/transpose&quot;:109,&quot;gl-vec3/cross&quot;:157,&quot;gl-vec3/dot&quot;:162,&quot;gl-vec3/length&quot;:172,&quot;gl-vec3/normalize&quot;:179}],242:[function(t,e,r){e.exports=function(t,e){var r=e[15];if(0===r)return!1;for(var n=1/r,i=0;i&lt;16;i++)t[i]=e[i]*n;return!0}},{}],243:[function(t,e,r){var n=t(&quot;gl-vec3/lerp&quot;),i=t(&quot;mat4-recompose&quot;),a=t(&quot;mat4-decompose&quot;),o=t(&quot;gl-mat4/determinant&quot;),s=t(&quot;quat-slerp&quot;),l=f(),c=f(),u=f();function f(){return{translate:h(),scale:h(1),skew:h(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function h(t){return[t||0,t||0,t||0]}e.exports=function(t,e,r,f){if(0===o(e)||0===o(r))return!1;var h=a(e,l.translate,l.scale,l.skew,l.perspective,l.quaternion),p=a(r,c.translate,c.scale,c.skew,c.perspective,c.quaternion);return!(!h||!p)&amp;&amp;(n(u.translate,l.translate,c.translate,f),n(u.skew,l.skew,c.skew,f),n(u.scale,l.scale,c.scale,f),n(u.perspective,l.perspective,c.perspective,f),s(u.quaternion,l.quaternion,c.quaternion,f),i(t,u.translate,u.scale,u.skew,u.perspective,u.quaternion),!0)}},{&quot;gl-mat4/determinant&quot;:94,&quot;gl-vec3/lerp&quot;:173,&quot;mat4-decompose&quot;:241,&quot;mat4-recompose&quot;:244,&quot;quat-slerp&quot;:271}],244:[function(t,e,r){var n={identity:t(&quot;gl-mat4/identity&quot;),translate:t(&quot;gl-mat4/translate&quot;),multiply:t(&quot;gl-mat4/multiply&quot;),create:t(&quot;gl-mat4/create&quot;),scale:t(&quot;gl-mat4/scale&quot;),fromRotationTranslation:t(&quot;gl-mat4/fromRotationTranslation&quot;)},i=(n.create(),n.create());e.exports=function(t,e,r,a,o,s){return n.identity(t),n.fromRotationTranslation(t,s,e),t[3]=o[0],t[7]=o[1],t[11]=o[2],t[15]=o[3],n.identity(i),0!==a[2]&amp;&amp;(i[9]=a[2],n.multiply(t,t,i)),0!==a[1]&amp;&amp;(i[9]=0,i[8]=a[1],n.multiply(t,t,i)),0!==a[0]&amp;&amp;(i[8]=0,i[4]=a[0],n.multiply(t,t,i)),n.scale(t,t,r),t}},{&quot;gl-mat4/create&quot;:93,&quot;gl-mat4/fromRotationTranslation&quot;:96,&quot;gl-mat4/identity&quot;:97,&quot;gl-mat4/multiply&quot;:100,&quot;gl-mat4/scale&quot;:107,&quot;gl-mat4/translate&quot;:108}],245:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;mat4-interpolate&quot;),a=t(&quot;gl-mat4/invert&quot;),o=t(&quot;gl-mat4/rotateX&quot;),s=t(&quot;gl-mat4/rotateY&quot;),l=t(&quot;gl-mat4/rotateZ&quot;),c=t(&quot;gl-mat4/lookAt&quot;),u=t(&quot;gl-mat4/translate&quot;),f=(t(&quot;gl-mat4/scale&quot;),t(&quot;gl-vec3/normalize&quot;)),h=[0,0,0];function p(t){this._components=t.slice(),this._time=[0],this.prevMatrix=t.slice(),this.nextMatrix=t.slice(),this.computedMatrix=t.slice(),this.computedInverse=t.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}e.exports=function(t){return new p((t=t||{}).matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};var d=p.prototype;d.recalcMatrix=function(t){var e=this._time,r=n.le(e,t),o=this.computedMatrix;if(!(r&lt;0)){var s=this._components;if(r===e.length-1)for(var l=16*r,c=0;c&lt;16;++c)o[c]=s[l++];else{var u=e[r+1]-e[r],h=(l=16*r,this.prevMatrix),p=!0;for(c=0;c&lt;16;++c)h[c]=s[l++];var d=this.nextMatrix;for(c=0;c&lt;16;++c)d[c]=s[l++],p=p&amp;&amp;h[c]===d[c];if(u&lt;1e-6||p)for(c=0;c&lt;16;++c)o[c]=h[c];else i(o,h,d,(t-e[r])/u)}var m=this.computedUp;m[0]=o[1],m[1]=o[5],m[2]=o[9],f(m,m);var g=this.computedInverse;a(g,o);var v=this.computedEye,y=g[15];v[0]=g[12]/y,v[1]=g[13]/y,v[2]=g[14]/y;var x=this.computedCenter,b=Math.exp(this.computedRadius[0]);for(c=0;c&lt;3;++c)x[c]=v[c]-o[2+4*c]*b}},d.idle=function(t){if(!(t&lt;this.lastT())){for(var e=this._components,r=e.length-16,n=0;n&lt;16;++n)e.push(e[r++]);this._time.push(t)}},d.flush=function(t){var e=n.gt(this._time,t)-2;e&lt;0||(this._time.splice(0,e),this._components.splice(0,16*e))},d.lastT=function(){return this._time[this._time.length-1]},d.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||h,n=n||this.computedUp,this.setMatrix(t,c(this.computedMatrix,e,r,n));for(var i=0,a=0;a&lt;3;++a)i+=Math.pow(r[a]-e[a],2);i=Math.log(Math.sqrt(i)),this.computedRadius[0]=i},d.rotate=function(t,e,r,n){this.recalcMatrix(t);var i=this.computedInverse;e&amp;&amp;s(i,i,e),r&amp;&amp;o(i,i,r),n&amp;&amp;l(i,i,n),this.setMatrix(t,a(this.computedMatrix,i))};var m=[0,0,0];d.pan=function(t,e,r,n){m[0]=-(e||0),m[1]=-(r||0),m[2]=-(n||0),this.recalcMatrix(t);var i=this.computedInverse;u(i,i,m),this.setMatrix(t,a(i,i))},d.translate=function(t,e,r,n){m[0]=e||0,m[1]=r||0,m[2]=n||0,this.recalcMatrix(t);var i=this.computedMatrix;u(i,i,m),this.setMatrix(t,i)},d.setMatrix=function(t,e){if(!(t&lt;this.lastT())){this._time.push(t);for(var r=0;r&lt;16;++r)this._components.push(e[r])}},d.setDistance=function(t,e){this.computedRadius[0]=e},d.setDistanceLimits=function(t,e){var r=this._limits;r[0]=t,r[1]=e},d.getDistanceLimits=function(t){var e=this._limits;return t?(t[0]=e[0],t[1]=e[1],t):e}},{&quot;binary-search-bounds&quot;:31,&quot;gl-mat4/invert&quot;:98,&quot;gl-mat4/lookAt&quot;:99,&quot;gl-mat4/rotateX&quot;:104,&quot;gl-mat4/rotateY&quot;:105,&quot;gl-mat4/rotateZ&quot;:106,&quot;gl-mat4/scale&quot;:107,&quot;gl-mat4/translate&quot;:108,&quot;gl-vec3/normalize&quot;:179,&quot;mat4-interpolate&quot;:243}],246:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(e&lt;3){for(var r=new Array(e),i=0;i&lt;e;++i)r[i]=i;return 2===e&amp;&amp;t[0][0]===t[1][0]&amp;&amp;t[0][1]===t[1][1]?[0]:r}var a=new Array(e);for(i=0;i&lt;e;++i)a[i]=i;a.sort((function(e,r){var n=t[e][0]-t[r][0];return n||t[e][1]-t[r][1]}));var o=[a[0],a[1]],s=[a[0],a[1]];for(i=2;i&lt;e;++i){for(var l=a[i],c=t[l],u=o.length;u&gt;1&amp;&amp;n(t[o[u-2]],t[o[u-1]],c)&lt;=0;)u-=1,o.pop();for(o.push(l),u=s.length;u&gt;1&amp;&amp;n(t[s[u-2]],t[s[u-1]],c)&gt;=0;)u-=1,s.pop();s.push(l)}r=new Array(s.length+o.length-2);for(var f=0,h=(i=0,o.length);i&lt;h;++i)r[f++]=o[i];for(var p=s.length-2;p&gt;0;--p)r[f++]=s[p];return r};var n=t(&quot;robust-orientation&quot;)[3]},{&quot;robust-orientation&quot;:284}],247:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e||(e=t,t=window);var r=0,i=0,a=0,o={shift:!1,alt:!1,control:!1,meta:!1},s=!1;function l(t){var e=!1;return&quot;altKey&quot;in t&amp;&amp;(e=e||t.altKey!==o.alt,o.alt=!!t.altKey),&quot;shiftKey&quot;in t&amp;&amp;(e=e||t.shiftKey!==o.shift,o.shift=!!t.shiftKey),&quot;ctrlKey&quot;in t&amp;&amp;(e=e||t.ctrlKey!==o.control,o.control=!!t.ctrlKey),&quot;metaKey&quot;in t&amp;&amp;(e=e||t.metaKey!==o.meta,o.meta=!!t.metaKey),e}function c(t,s){var c=n.x(s),u=n.y(s);&quot;buttons&quot;in s&amp;&amp;(t=0|s.buttons),(t!==r||c!==i||u!==a||l(s))&amp;&amp;(r=0|t,i=c||0,a=u||0,e&amp;&amp;e(r,i,a,o))}function u(t){c(0,t)}function f(){(r||i||a||o.shift||o.alt||o.meta||o.control)&amp;&amp;(i=a=0,r=0,o.shift=o.alt=o.control=o.meta=!1,e&amp;&amp;e(0,0,0,o))}function h(t){l(t)&amp;&amp;e&amp;&amp;e(r,i,a,o)}function p(t){0===n.buttons(t)?c(0,t):c(r,t)}function d(t){c(r|n.buttons(t),t)}function m(t){c(r&amp;~n.buttons(t),t)}function g(){s||(s=!0,t.addEventListener(&quot;mousemove&quot;,p),t.addEventListener(&quot;mousedown&quot;,d),t.addEventListener(&quot;mouseup&quot;,m),t.addEventListener(&quot;mouseleave&quot;,u),t.addEventListener(&quot;mouseenter&quot;,u),t.addEventListener(&quot;mouseout&quot;,u),t.addEventListener(&quot;mouseover&quot;,u),t.addEventListener(&quot;blur&quot;,f),t.addEventListener(&quot;keyup&quot;,h),t.addEventListener(&quot;keydown&quot;,h),t.addEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.addEventListener(&quot;blur&quot;,f),window.addEventListener(&quot;keyup&quot;,h),window.addEventListener(&quot;keydown&quot;,h),window.addEventListener(&quot;keypress&quot;,h)))}g();var v={element:t};return Object.defineProperties(v,{enabled:{get:function(){return s},set:function(e){e?g():function(){if(!s)return;s=!1,t.removeEventListener(&quot;mousemove&quot;,p),t.removeEventListener(&quot;mousedown&quot;,d),t.removeEventListener(&quot;mouseup&quot;,m),t.removeEventListener(&quot;mouseleave&quot;,u),t.removeEventListener(&quot;mouseenter&quot;,u),t.removeEventListener(&quot;mouseout&quot;,u),t.removeEventListener(&quot;mouseover&quot;,u),t.removeEventListener(&quot;blur&quot;,f),t.removeEventListener(&quot;keyup&quot;,h),t.removeEventListener(&quot;keydown&quot;,h),t.removeEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.removeEventListener(&quot;blur&quot;,f),window.removeEventListener(&quot;keyup&quot;,h),window.removeEventListener(&quot;keydown&quot;,h),window.removeEventListener(&quot;keypress&quot;,h))}()},enumerable:!0},buttons:{get:function(){return r},enumerable:!0},x:{get:function(){return i},enumerable:!0},y:{get:function(){return a},enumerable:!0},mods:{get:function(){return o},enumerable:!0}}),v};var n=t(&quot;mouse-event&quot;)},{&quot;mouse-event&quot;:249}],248:[function(t,e,r){var n={left:0,top:0};e.exports=function(t,e,r){e=e||t.currentTarget||t.srcElement,Array.isArray(r)||(r=[0,0]);var i=t.clientX||0,a=t.clientY||0,o=(s=e,s===window||s===document||s===document.body?n:s.getBoundingClientRect());var s;return r[0]=i-o.left,r[1]=a-o.top,r}},{}],249:[function(t,e,r){&quot;use strict&quot;;function n(t){return t.target||t.srcElement||window}r.buttons=function(t){if(&quot;object&quot;==typeof t){if(&quot;buttons&quot;in t)return t.buttons;if(&quot;which&quot;in t){if(2===(e=t.which))return 4;if(3===e)return 2;if(e&gt;0)return 1&lt;&lt;e-1}else if(&quot;button&quot;in t){var e;if(1===(e=t.button))return 4;if(2===e)return 2;if(e&gt;=0)return 1&lt;&lt;e}}return 0},r.element=n,r.x=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetX&quot;in t)return t.offsetX;var e=n(t).getBoundingClientRect();return t.clientX-e.left}return 0},r.y=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetY&quot;in t)return t.offsetY;var e=n(t).getBoundingClientRect();return t.clientY-e.top}return 0}},{}],250:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;to-px&quot;);e.exports=function(t,e,r){&quot;function&quot;==typeof t&amp;&amp;(r=!!e,e=t,t=window);var i=n(&quot;ex&quot;,t),a=function(t){r&amp;&amp;t.preventDefault();var n=t.deltaX||0,a=t.deltaY||0,o=t.deltaZ||0,s=1;switch(t.deltaMode){case 1:s=i;break;case 2:s=window.innerHeight}if(a*=s,o*=s,(n*=s)||a||o)return e(n,a,o,t)};return t.addEventListener(&quot;wheel&quot;,a),a}},{&quot;to-px&quot;:304}],251:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;);e.exports=function(t){function e(t){throw new Error(&quot;ndarray-extract-contour: &quot;+t)}&quot;object&quot;!=typeof t&amp;&amp;e(&quot;Must specify arguments&quot;);var r=t.order;Array.isArray(r)||e(&quot;Must specify order&quot;);var a=t.arrayArguments||1;a&lt;1&amp;&amp;e(&quot;Must have at least one array argument&quot;);var o=t.scalarArguments||0;o&lt;0&amp;&amp;e(&quot;Scalar arg count must be &gt; 0&quot;);&quot;function&quot;!=typeof t.vertex&amp;&amp;e(&quot;Must specify vertex creation function&quot;);&quot;function&quot;!=typeof t.cell&amp;&amp;e(&quot;Must specify cell creation function&quot;);&quot;function&quot;!=typeof t.phase&amp;&amp;e(&quot;Must specify phase function&quot;);for(var s=t.getters||[],l=new Array(a),c=0;c&lt;a;++c)s.indexOf(c)&gt;=0?l[c]=!0:l[c]=!1;return function(t,e,r,a,o,s){var l=[s,o].join(&quot;,&quot;);return(0,i[l])(t,e,r,n.mallocUint32,n.freeUint32)}(t.vertex,t.cell,t.phase,0,r,l)};var i={&quot;false,0,1&quot;:function(t,e,r,n,i){return function(a,o,s,l){var c,u=0|a.shape[0],f=0|a.shape[1],h=a.data,p=0|a.offset,d=0|a.stride[0],m=0|a.stride[1],g=p,v=0|-d,y=0,x=0|-m,b=0,_=-d-m|0,w=0,T=0|d,k=m-d*u|0,A=0,M=0,S=0,E=2*u|0,L=n(E),C=n(E),P=0,I=0,O=-1,z=-1,D=0,R=0|-u,F=0|u,B=0,N=-u-1|0,j=u-1|0,U=0,V=0,H=0;for(A=0;A&lt;u;++A)L[P++]=r(h[g],o,s,l),g+=T;if(g+=k,f&gt;0){if(M=1,L[P++]=r(h[g],o,s,l),g+=T,u&gt;0)for(A=1,c=h[g],I=L[P]=r(c,o,s,l),D=L[P+O],B=L[P+R],U=L[P+N],I===D&amp;&amp;I===B&amp;&amp;I===U||(y=h[g+v],b=h[g+x],w=h[g+_],t(A,M,c,y,b,w,I,D,B,U,o,s,l),V=C[P]=S++),P+=1,g+=T,A=2;A&lt;u;++A)c=h[g],I=L[P]=r(c,o,s,l),D=L[P+O],B=L[P+R],U=L[P+N],I===D&amp;&amp;I===B&amp;&amp;I===U||(y=h[g+v],b=h[g+x],w=h[g+_],t(A,M,c,y,b,w,I,D,B,U,o,s,l),V=C[P]=S++,U!==D&amp;&amp;e(C[P+O],V,w,y,U,D,o,s,l)),P+=1,g+=T;for(g+=k,P=0,H=O,O=z,z=H,H=R,R=F,F=H,H=N,N=j,j=H,M=2;M&lt;f;++M){if(L[P++]=r(h[g],o,s,l),g+=T,u&gt;0)for(A=1,c=h[g],I=L[P]=r(c,o,s,l),D=L[P+O],B=L[P+R],U=L[P+N],I===D&amp;&amp;I===B&amp;&amp;I===U||(y=h[g+v],b=h[g+x],w=h[g+_],t(A,M,c,y,b,w,I,D,B,U,o,s,l),V=C[P]=S++,U!==B&amp;&amp;e(C[P+R],V,b,w,B,U,o,s,l)),P+=1,g+=T,A=2;A&lt;u;++A)c=h[g],I=L[P]=r(c,o,s,l),D=L[P+O],B=L[P+R],U=L[P+N],I===D&amp;&amp;I===B&amp;&amp;I===U||(y=h[g+v],b=h[g+x],w=h[g+_],t(A,M,c,y,b,w,I,D,B,U,o,s,l),V=C[P]=S++,U!==B&amp;&amp;e(C[P+R],V,b,w,B,U,o,s,l),U!==D&amp;&amp;e(C[P+O],V,w,y,U,D,o,s,l)),P+=1,g+=T;1&amp;M&amp;&amp;(P=0),H=O,O=z,z=H,H=R,R=F,F=H,H=N,N=j,j=H,g+=k}}i(C),i(L)}},&quot;false,1,0&quot;:function(t,e,r,n,i){return function(a,o,s,l){var c,u=0|a.shape[0],f=0|a.shape[1],h=a.data,p=0|a.offset,d=0|a.stride[0],m=0|a.stride[1],g=p,v=0|-d,y=0,x=0|-m,b=0,_=-d-m|0,w=0,T=0|m,k=d-m*f|0,A=0,M=0,S=0,E=2*f|0,L=n(E),C=n(E),P=0,I=0,O=-1,z=-1,D=0,R=0|-f,F=0|f,B=0,N=-f-1|0,j=f-1|0,U=0,V=0,H=0;for(M=0;M&lt;f;++M)L[P++]=r(h[g],o,s,l),g+=T;if(g+=k,u&gt;0){if(A=1,L[P++]=r(h[g],o,s,l),g+=T,f&gt;0)for(M=1,c=h[g],I=L[P]=r(c,o,s,l),B=L[P+R],D=L[P+O],U=L[P+N],I===B&amp;&amp;I===D&amp;&amp;I===U||(y=h[g+v],b=h[g+x],w=h[g+_],t(A,M,c,y,b,w,I,B,D,U,o,s,l),V=C[P]=S++),P+=1,g+=T,M=2;M&lt;f;++M)c=h[g],I=L[P]=r(c,o,s,l),B=L[P+R],D=L[P+O],U=L[P+N],I===B&amp;&amp;I===D&amp;&amp;I===U||(y=h[g+v],b=h[g+x],w=h[g+_],t(A,M,c,y,b,w,I,B,D,U,o,s,l),V=C[P]=S++,U!==D&amp;&amp;e(C[P+O],V,b,w,D,U,o,s,l)),P+=1,g+=T;for(g+=k,P=0,H=R,R=F,F=H,H=O,O=z,z=H,H=N,N=j,j=H,A=2;A&lt;u;++A){if(L[P++]=r(h[g],o,s,l),g+=T,f&gt;0)for(M=1,c=h[g],I=L[P]=r(c,o,s,l),B=L[P+R],D=L[P+O],U=L[P+N],I===B&amp;&amp;I===D&amp;&amp;I===U||(y=h[g+v],b=h[g+x],w=h[g+_],t(A,M,c,y,b,w,I,B,D,U,o,s,l),V=C[P]=S++,U!==B&amp;&amp;e(C[P+R],V,w,y,U,B,o,s,l)),P+=1,g+=T,M=2;M&lt;f;++M)c=h[g],I=L[P]=r(c,o,s,l),B=L[P+R],D=L[P+O],U=L[P+N],I===B&amp;&amp;I===D&amp;&amp;I===U||(y=h[g+v],b=h[g+x],w=h[g+_],t(A,M,c,y,b,w,I,B,D,U,o,s,l),V=C[P]=S++,U!==D&amp;&amp;e(C[P+O],V,b,w,D,U,o,s,l),U!==B&amp;&amp;e(C[P+R],V,w,y,U,B,o,s,l)),P+=1,g+=T;1&amp;A&amp;&amp;(P=0),H=R,R=F,F=H,H=O,O=z,z=H,H=N,N=j,j=H,g+=k}}i(C),i(L)}}}},{&quot;typedarray-pool&quot;:308}],252:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;dup&quot;),i={zero:function(t,e,r,n){var i=t[0];n|=0;var a=0,o=r[0];for(a=0;a&lt;i;++a)e[n]=0,n+=o},fdTemplate1:function(t,e,r,n,i,a,o){var s=t[0],l=r[0],c=-1*l,u=l;n|=0,o|=0;var f=0,h=l,p=a[0];for(f=0;f&lt;s;++f)i[o]=.5*(e[n+c]-e[n+u]),n+=h,o+=p},fdTemplate2:function(t,e,r,n,i,a,o,s,l,c){var u=t[0],f=t[1],h=r[0],p=r[1],d=a[0],m=a[1],g=l[0],v=l[1],y=-1*h,x=h,b=-1*p,_=p;n|=0,o|=0,c|=0;var w=0,T=0,k=p,A=h-f*p,M=m,S=d-f*m,E=v,L=g-f*v;for(T=0;T&lt;u;++T){for(w=0;w&lt;f;++w)i[o]=.5*(e[n+y]-e[n+x]),s[c]=.5*(e[n+b]-e[n+_]),n+=k,o+=M,c+=E;n+=A,o+=S,c+=L}}},a={cdiff:function(t){var e={};return function(r,n,i){var a=r.dtype,o=r.order,s=n.dtype,l=n.order,c=i.dtype,u=i.order,f=[a,o.join(),s,l.join(),c,u.join()].join(),h=e[f];return h||(e[f]=h=t([a,o,s,l,c,u])),h(r.shape.slice(0),r.data,r.stride,0|r.offset,n.data,n.stride,0|n.offset,i.data,i.stride,0|i.offset)}},zero:function(t){var e={};return function(r){var n=r.dtype,i=r.order,a=[n,i.join()].join(),o=e[a];return o||(e[a]=o=t([n,i])),o(r.shape.slice(0),r.data,r.stride,0|r.offset)}},fdTemplate1:function(t){var e={};return function(r,n){var i=r.dtype,a=r.order,o=n.dtype,s=n.order,l=[i,a.join(),o,s.join()].join(),c=e[l];return c||(e[l]=c=t([i,a,o,s])),c(r.shape.slice(0),r.data,r.stride,0|r.offset,n.data,n.stride,0|n.offset)}},fdTemplate2:function(t){var e={};return function(r,n,i){var a=r.dtype,o=r.order,s=n.dtype,l=n.order,c=i.dtype,u=i.order,f=[a,o.join(),s,l.join(),c,u.join()].join(),h=e[f];return h||(e[f]=h=t([a,o,s,l,c,u])),h(r.shape.slice(0),r.data,r.stride,0|r.offset,n.data,n.stride,0|n.offset,i.data,i.stride,0|i.offset)}}};function o(t){return(0,a[t.funcName])(s.bind(void 0,t))}function s(t){return i[t.funcName]}function l(t){return o({funcName:t.funcName})}var c={},u={},f=l({funcName:&quot;cdiff&quot;}),h=l({funcName:&quot;zero&quot;});function p(t){return t in c?c[t]:c[t]=l({funcName:&quot;fdTemplate&quot;+t})}function d(t,e,r,n){return function(t,i){var a=i.shape.slice();return a[0]&gt;2&amp;&amp;a[1]&gt;2&amp;&amp;n(i.pick(-1,-1).lo(1,1).hi(a[0]-2,a[1]-2),t.pick(-1,-1,0).lo(1,1).hi(a[0]-2,a[1]-2),t.pick(-1,-1,1).lo(1,1).hi(a[0]-2,a[1]-2)),a[1]&gt;2&amp;&amp;(r(i.pick(0,-1).lo(1).hi(a[1]-2),t.pick(0,-1,1).lo(1).hi(a[1]-2)),e(t.pick(0,-1,0).lo(1).hi(a[1]-2))),a[1]&gt;2&amp;&amp;(r(i.pick(a[0]-1,-1).lo(1).hi(a[1]-2),t.pick(a[0]-1,-1,1).lo(1).hi(a[1]-2)),e(t.pick(a[0]-1,-1,0).lo(1).hi(a[1]-2))),a[0]&gt;2&amp;&amp;(r(i.pick(-1,0).lo(1).hi(a[0]-2),t.pick(-1,0,0).lo(1).hi(a[0]-2)),e(t.pick(-1,0,1).lo(1).hi(a[0]-2))),a[0]&gt;2&amp;&amp;(r(i.pick(-1,a[1]-1).lo(1).hi(a[0]-2),t.pick(-1,a[1]-1,0).lo(1).hi(a[0]-2)),e(t.pick(-1,a[1]-1,1).lo(1).hi(a[0]-2))),t.set(0,0,0,0),t.set(0,0,1,0),t.set(a[0]-1,0,0,0),t.set(a[0]-1,0,1,0),t.set(0,a[1]-1,0,0),t.set(0,a[1]-1,1,0),t.set(a[0]-1,a[1]-1,0,0),t.set(a[0]-1,a[1]-1,1,0),t}}e.exports=function(t,e,r){return Array.isArray(r)||(r=n(e.dimension,&quot;string&quot;==typeof r?r:&quot;clamp&quot;)),0===e.size?t:0===e.dimension?(t.set(0),t):function(t){var e=t.join();if(a=u[e])return a;for(var r=t.length,n=[f,h],i=1;i&lt;=r;++i)n.push(p(i));var a=d.apply(void 0,n);return u[e]=a,a}(r)(t,e)}},{dup:65}],253:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=Math.floor(e),n=e-r,i=0&lt;=r&amp;&amp;r&lt;t.shape[0],a=0&lt;=r+1&amp;&amp;r+1&lt;t.shape[0];return(1-n)*(i?+t.get(r):0)+n*(a?+t.get(r+1):0)}function i(t,e,r){var n=Math.floor(e),i=e-n,a=0&lt;=n&amp;&amp;n&lt;t.shape[0],o=0&lt;=n+1&amp;&amp;n+1&lt;t.shape[0],s=Math.floor(r),l=r-s,c=0&lt;=s&amp;&amp;s&lt;t.shape[1],u=0&lt;=s+1&amp;&amp;s+1&lt;t.shape[1],f=a&amp;&amp;c?t.get(n,s):0,h=a&amp;&amp;u?t.get(n,s+1):0;return(1-l)*((1-i)*f+i*(o&amp;&amp;c?t.get(n+1,s):0))+l*((1-i)*h+i*(o&amp;&amp;u?t.get(n+1,s+1):0))}function a(t,e,r,n){var i=Math.floor(e),a=e-i,o=0&lt;=i&amp;&amp;i&lt;t.shape[0],s=0&lt;=i+1&amp;&amp;i+1&lt;t.shape[0],l=Math.floor(r),c=r-l,u=0&lt;=l&amp;&amp;l&lt;t.shape[1],f=0&lt;=l+1&amp;&amp;l+1&lt;t.shape[1],h=Math.floor(n),p=n-h,d=0&lt;=h&amp;&amp;h&lt;t.shape[2],m=0&lt;=h+1&amp;&amp;h+1&lt;t.shape[2],g=o&amp;&amp;u&amp;&amp;d?t.get(i,l,h):0,v=o&amp;&amp;f&amp;&amp;d?t.get(i,l+1,h):0,y=s&amp;&amp;u&amp;&amp;d?t.get(i+1,l,h):0,x=s&amp;&amp;f&amp;&amp;d?t.get(i+1,l+1,h):0,b=o&amp;&amp;u&amp;&amp;m?t.get(i,l,h+1):0,_=o&amp;&amp;f&amp;&amp;m?t.get(i,l+1,h+1):0;return(1-p)*((1-c)*((1-a)*g+a*y)+c*((1-a)*v+a*x))+p*((1-c)*((1-a)*b+a*(s&amp;&amp;u&amp;&amp;m?t.get(i+1,l,h+1):0))+c*((1-a)*_+a*(s&amp;&amp;f&amp;&amp;m?t.get(i+1,l+1,h+1):0)))}function o(t){var e,r,n=0|t.shape.length,i=new Array(n),a=new Array(n),o=new Array(n),s=new Array(n);for(e=0;e&lt;n;++e)r=+arguments[e+1],i[e]=Math.floor(r),a[e]=r-i[e],o[e]=0&lt;=i[e]&amp;&amp;i[e]&lt;t.shape[e],s[e]=0&lt;=i[e]+1&amp;&amp;i[e]+1&lt;t.shape[e];var l,c,u,f=0;t:for(e=0;e&lt;1&lt;&lt;n;++e){for(c=1,u=t.offset,l=0;l&lt;n;++l)if(e&amp;1&lt;&lt;l){if(!s[l])continue t;c*=a[l],u+=t.stride[l]*(i[l]+1)}else{if(!o[l])continue t;c*=1-a[l],u+=t.stride[l]*i[l]}f+=c*t.data[u]}return f}e.exports=function(t,e,r,s){switch(t.shape.length){case 0:return 0;case 1:return n(t,e);case 2:return i(t,e,r);case 3:return a(t,e,r,s);default:return o.apply(void 0,arguments)}},e.exports.d1=n,e.exports.d2=i,e.exports.d3=a},{}],254:[function(t,e,r){&quot;use strict&quot;;var n={&quot;float64,2,1,0&quot;:function(){return function(t,e,r,n,i){var a=t[0],o=t[1],s=t[2],l=r[0],c=r[1],u=r[2];n|=0;var f=0,h=0,p=0,d=u,m=c-s*u,g=l-o*c;for(p=0;p&lt;a;++p){for(h=0;h&lt;o;++h){for(f=0;f&lt;s;++f)e[n]/=i,n+=d;n+=m}n+=g}}},&quot;uint8,2,0,1,float64,2,1,0&quot;:function(){return function(t,e,r,n,i,a,o,s){for(var l=t[0],c=t[1],u=t[2],f=r[0],h=r[1],p=r[2],d=a[0],m=a[1],g=a[2],v=n|=0,y=o|=0,x=0|t[0];x&gt;0;){x&lt;64?(l=x,x=0):(l=64,x-=64);for(var b=0|t[1];b&gt;0;){b&lt;64?(c=b,b=0):(c=64,b-=64),n=v+x*f+b*h,o=y+x*d+b*m;var _=0,w=0,T=0,k=p,A=f-u*p,M=h-l*f,S=g,E=d-u*g,L=m-l*d;for(T=0;T&lt;c;++T){for(w=0;w&lt;l;++w){for(_=0;_&lt;u;++_)e[n]=i[o]*s,n+=k,o+=S;n+=A,o+=E}n+=M,o+=L}}}}},&quot;float32,1,0,float32,1,0&quot;:function(){return function(t,e,r,n,i,a,o){var s=t[0],l=t[1],c=r[0],u=r[1],f=a[0],h=a[1];n|=0,o|=0;var p=0,d=0,m=u,g=c-l*u,v=h,y=f-l*h;for(d=0;d&lt;s;++d){for(p=0;p&lt;l;++p)e[n]=i[o],n+=m,o+=v;n+=g,o+=y}}},&quot;float32,1,0,float32,0,1&quot;:function(){return function(t,e,r,n,i,a,o){for(var s=t[0],l=t[1],c=r[0],u=r[1],f=a[0],h=a[1],p=n|=0,d=o|=0,m=0|t[1];m&gt;0;){m&lt;64?(l=m,m=0):(l=64,m-=64);for(var g=0|t[0];g&gt;0;){g&lt;64?(s=g,g=0):(s=64,g-=64),n=p+m*u+g*c,o=d+m*h+g*f;var v=0,y=0,x=u,b=c-l*u,_=h,w=f-l*h;for(y=0;y&lt;s;++y){for(v=0;v&lt;l;++v)e[n]=i[o],n+=x,o+=_;n+=b,o+=w}}}}},&quot;uint8,2,0,1,uint8,1,2,0&quot;:function(){return function(t,e,r,n,i,a,o){for(var s=t[0],l=t[1],c=t[2],u=r[0],f=r[1],h=r[2],p=a[0],d=a[1],m=a[2],g=n|=0,v=o|=0,y=0|t[2];y&gt;0;){y&lt;64?(c=y,y=0):(c=64,y-=64);for(var x=0|t[0];x&gt;0;){x&lt;64?(s=x,x=0):(s=64,x-=64);for(var b=0|t[1];b&gt;0;){b&lt;64?(l=b,b=0):(l=64,b-=64),n=g+y*h+x*u+b*f,o=v+y*m+x*p+b*d;var _=0,w=0,T=0,k=h,A=u-c*h,M=f-s*u,S=m,E=p-c*m,L=d-s*p;for(T=0;T&lt;l;++T){for(w=0;w&lt;s;++w){for(_=0;_&lt;c;++_)e[n]=i[o],n+=k,o+=S;n+=A,o+=E}n+=M,o+=L}}}}}},&quot;uint8,2,0,1,array,2,0,1&quot;:function(){return function(t,e,r,n,i,a,o){var s=t[0],l=t[1],c=t[2],u=r[0],f=r[1],h=r[2],p=a[0],d=a[1],m=a[2];n|=0,o|=0;var g=0,v=0,y=0,x=h,b=u-c*h,_=f-s*u,w=m,T=p-c*m,k=d-s*p;for(y=0;y&lt;l;++y){for(v=0;v&lt;s;++v){for(g=0;g&lt;c;++g)e[n]=i[o],n+=x,o+=w;n+=b,o+=T}n+=_,o+=k}}}};var i=function(t,e){var r=e.join(&quot;,&quot;);return(0,n[r])()},a={mul:function(t){var e={};return function(r,n,i){var a=r.dtype,o=r.order,s=n.dtype,l=n.order,c=i.dtype,u=i.order,f=[a,o.join(),s,l.join(),c,u.join()].join(),h=e[f];return h||(e[f]=h=t([a,o,s,l,c,u])),h(r.shape.slice(0),r.data,r.stride,0|r.offset,n.data,n.stride,0|n.offset,i.data,i.stride,0|i.offset)}},muls:function(t){var e={};return function(r,n,i){var a=r.dtype,o=r.order,s=n.dtype,l=n.order,c=[a,o.join(),s,l.join()].join(),u=e[c];return u||(e[c]=u=t([a,o,s,l])),u(r.shape.slice(0),r.data,r.stride,0|r.offset,n.data,n.stride,0|n.offset,i)}},mulseq:function(t){var e={};return function(r,n){var i=r.dtype,a=r.order,o=[i,a.join()].join(),s=e[o];return s||(e[o]=s=t([i,a])),s(r.shape.slice(0),r.data,r.stride,0|r.offset,n)}},div:function(t){var e={};return function(r,n,i){var a=r.dtype,o=r.order,s=n.dtype,l=n.order,c=i.dtype,u=i.order,f=[a,o.join(),s,l.join(),c,u.join()].join(),h=e[f];return h||(e[f]=h=t([a,o,s,l,c,u])),h(r.shape.slice(0),r.data,r.stride,0|r.offset,n.data,n.stride,0|n.offset,i.data,i.stride,0|i.offset)}},divs:function(t){var e={};return function(r,n,i){var a=r.dtype,o=r.order,s=n.dtype,l=n.order,c=[a,o.join(),s,l.join()].join(),u=e[c];return u||(e[c]=u=t([a,o,s,l])),u(r.shape.slice(0),r.data,r.stride,0|r.offset,n.data,n.stride,0|n.offset,i)}},divseq:function(t){var e={};return function(r,n){var i=r.dtype,a=r.order,o=[i,a.join()].join(),s=e[o];return s||(e[o]=s=t([i,a])),s(r.shape.slice(0),r.data,r.stride,0|r.offset,n)}},assign:function(t){var e={};return function(r,n){var i=r.dtype,a=r.order,o=n.dtype,s=n.order,l=[i,a.join(),o,s.join()].join(),c=e[l];return c||(e[l]=c=t([i,a,o,s])),c(r.shape.slice(0),r.data,r.stride,0|r.offset,n.data,n.stride,0|n.offset)}}};function o(t){return e={funcName:t.funcName},(0,a[e.funcName])(i.bind(void 0,e));var e}var s={mul:&quot;*&quot;,div:&quot;/&quot;};!function(){for(var t in s)r[t]=o({funcName:t}),r[t+&quot;s&quot;]=o({funcName:t+&quot;s&quot;}),r[t+&quot;seq&quot;]=o({funcName:t+&quot;seq&quot;})}(),r.assign=o({funcName:&quot;assign&quot;})},{}],255:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ndarray&quot;),i=t(&quot;./doConvert.js&quot;);e.exports=function(t,e){for(var r=[],a=t,o=1;Array.isArray(a);)r.push(a.length),o*=a.length,a=a[0];return 0===r.length?n():(e||(e=n(new Float64Array(o),r)),i(e,t),e)}},{&quot;./doConvert.js&quot;:256,ndarray:259}],256:[function(t,e,r){&quot;use strict&quot;;var n,i=function(){return function(t,e,r,n,i){var a=t[0],o=t[1],s=t[2],l=r[0],c=r[1],u=r[2],f=[0,0,0];n|=0;var h=0,p=0,d=0,m=u,g=c-s*u,v=l-o*c;for(d=0;d&lt;a;++d){for(p=0;p&lt;o;++p){for(h=0;h&lt;s;++h){var y,x=i;for(y=0;y&lt;f.length-1;++y)x=x[f[y]];e[n]=x[f[f.length-1]],n+=m,++f[2]}n+=g,f[2]-=s,++f[1]}n+=v,f[1]-=o,++f[0]}}};e.exports=(n={funcName:{funcName:&quot;convert&quot;}.funcName},function(t){var e={};return function(r,n){var i=r.dtype,a=r.order,o=[i,a.join()].join(),s=e[o];return s||(e[o]=s=t([i,a])),s(r.shape.slice(0),r.data,r.stride,0|r.offset,n)}}(i.bind(void 0,n)))},{}],257:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;);function i(t){switch(t){case&quot;uint32&quot;:return[n.mallocUint32,n.freeUint32];default:return null}}var a={&quot;uint32,1,0&quot;:function(t,e){return function(r,n,i,a,o,s,l,c,u,f,h){var p,d,m,g,v,y,x,b,_=r*o+a,w=t(c);for(p=r+1;p&lt;=n;++p){for(d=p,m=_+=o,v=0,y=_,g=0;g&lt;c;++g)w[v++]=i[y],y+=u;t:for(;d-- &gt;r;){v=0,y=m-o;e:for(g=0;g&lt;c;++g){if((x=i[y])&lt;(b=w[v]))break t;if(x&gt;b)break e;y+=f,v+=h}for(v=m,y=m-o,g=0;g&lt;c;++g)i[v]=i[y],v+=u,y+=u;m-=o}for(v=m,y=0,g=0;g&lt;c;++g)i[v]=w[y++],v+=u}e(w)}}};var o={&quot;uint32,1,0&quot;:function(t,e,r){return function n(i,a,o,s,l,c,u,f,h,p,d){var m,g,v,y,x,b,_,w,T,k,A,M,S,E,L,C,P,I,O,z,D,R,F,B,N,j=(a-i+1)/6|0,U=i+j,V=a-j,H=i+a&gt;&gt;1,q=H-j,G=H+j,Y=U,W=q,X=H,Z=G,J=V,K=i+1,Q=a-1,$=!0,tt=0,et=0,rt=0,nt=f,it=e(nt),at=e(nt);A=l*Y,M=l*W,N=s;t:for(k=0;k&lt;f;++k){if(w=M+N,(rt=o[_=A+N]-o[w])&gt;0){g=Y,Y=W,W=g;break t}if(rt&lt;0)break t;N+=p}A=l*Z,M=l*J,N=s;t:for(k=0;k&lt;f;++k){if(w=M+N,(rt=o[_=A+N]-o[w])&gt;0){g=Z,Z=J,J=g;break t}if(rt&lt;0)break t;N+=p}A=l*Y,M=l*X,N=s;t:for(k=0;k&lt;f;++k){if(w=M+N,(rt=o[_=A+N]-o[w])&gt;0){g=Y,Y=X,X=g;break t}if(rt&lt;0)break t;N+=p}A=l*W,M=l*X,N=s;t:for(k=0;k&lt;f;++k){if(w=M+N,(rt=o[_=A+N]-o[w])&gt;0){g=W,W=X,X=g;break t}if(rt&lt;0)break t;N+=p}A=l*Y,M=l*Z,N=s;t:for(k=0;k&lt;f;++k){if(w=M+N,(rt=o[_=A+N]-o[w])&gt;0){g=Y,Y=Z,Z=g;break t}if(rt&lt;0)break t;N+=p}A=l*X,M=l*Z,N=s;t:for(k=0;k&lt;f;++k){if(w=M+N,(rt=o[_=A+N]-o[w])&gt;0){g=X,X=Z,Z=g;break t}if(rt&lt;0)break t;N+=p}A=l*W,M=l*J,N=s;t:for(k=0;k&lt;f;++k){if(w=M+N,(rt=o[_=A+N]-o[w])&gt;0){g=W,W=J,J=g;break t}if(rt&lt;0)break t;N+=p}A=l*W,M=l*X,N=s;t:for(k=0;k&lt;f;++k){if(w=M+N,(rt=o[_=A+N]-o[w])&gt;0){g=W,W=X,X=g;break t}if(rt&lt;0)break t;N+=p}A=l*Z,M=l*J,N=s;t:for(k=0;k&lt;f;++k){if(w=M+N,(rt=o[_=A+N]-o[w])&gt;0){g=Z,Z=J,J=g;break t}if(rt&lt;0)break t;N+=p}for(A=l*Y,M=l*W,S=l*X,E=l*Z,L=l*J,C=l*U,P=l*H,I=l*V,B=0,N=s,k=0;k&lt;f;++k)_=A+N,w=M+N,T=S+N,O=E+N,z=L+N,D=C+N,R=P+N,F=I+N,it[B]=o[w],at[B]=o[O],$=$&amp;&amp;it[B]===at[B],v=o[_],y=o[T],x=o[z],o[D]=v,o[R]=y,o[F]=x,++B,N+=h;for(A=l*q,M=l*i,N=s,k=0;k&lt;f;++k)w=M+N,o[_=A+N]=o[w],N+=h;for(A=l*G,M=l*a,N=s,k=0;k&lt;f;++k)w=M+N,o[_=A+N]=o[w],N+=h;if($)for(b=K;b&lt;=Q;++b){_=s+b*l,B=0;t:for(k=0;k&lt;f&amp;&amp;0===(rt=o[_]-it[B]);++k)B+=d,_+=p;if(0!==rt)if(rt&lt;0){if(b!==K)for(A=l*b,M=l*K,N=s,k=0;k&lt;f;++k)w=M+N,m=o[_=A+N],o[_]=o[w],o[w]=m,N+=h;++K}else for(;;){_=s+Q*l,B=0;t:for(k=0;k&lt;f&amp;&amp;0===(rt=o[_]-it[B]);++k)B+=d,_+=p;if(!(rt&gt;0)){if(rt&lt;0){for(A=l*b,M=l*K,S=l*Q,N=s,k=0;k&lt;f;++k)w=M+N,T=S+N,m=o[_=A+N],o[_]=o[w],o[w]=o[T],o[T]=m,N+=h;++K,--Q;break}for(A=l*b,M=l*Q,N=s,k=0;k&lt;f;++k)w=M+N,m=o[_=A+N],o[_]=o[w],o[w]=m,N+=h;--Q;break}Q--}}else for(b=K;b&lt;=Q;++b){_=s+b*l,B=0;t:for(k=0;k&lt;f&amp;&amp;0===(tt=o[_]-it[B]);++k)B+=d,_+=p;if(tt&lt;0){if(b!==K)for(A=l*b,M=l*K,N=s,k=0;k&lt;f;++k)w=M+N,m=o[_=A+N],o[_]=o[w],o[w]=m,N+=h;++K}else{_=s+b*l,B=0;t:for(k=0;k&lt;f&amp;&amp;0===(et=o[_]-at[B]);++k)B+=d,_+=p;if(et&gt;0)for(;;){_=s+Q*l,B=0;t:for(k=0;k&lt;f&amp;&amp;0===(rt=o[_]-at[B]);++k)B+=d,_+=p;if(!(rt&gt;0)){_=s+Q*l,B=0;t:for(k=0;k&lt;f&amp;&amp;0===(rt=o[_]-it[B]);++k)B+=d,_+=p;if(rt&lt;0){for(A=l*b,M=l*K,S=l*Q,N=s,k=0;k&lt;f;++k)w=M+N,T=S+N,m=o[_=A+N],o[_]=o[w],o[w]=o[T],o[T]=m,N+=h;++K,--Q}else{for(A=l*b,M=l*Q,N=s,k=0;k&lt;f;++k)w=M+N,m=o[_=A+N],o[_]=o[w],o[w]=m,N+=h;--Q}break}if(--Q&lt;b)break}}}for(A=l*i,M=l*(K-1),B=0,N=s,k=0;k&lt;f;++k)w=M+N,o[_=A+N]=o[w],o[w]=it[B],++B,N+=h;for(A=l*a,M=l*(Q+1),B=0,N=s,k=0;k&lt;f;++k)w=M+N,o[_=A+N]=o[w],o[w]=at[B],++B,N+=h;if(K-2-i&lt;=32?t(i,K-2,o,s,l,c,u,f,h,p,d):n(i,K-2,o,s,l,c,u,f,h,p,d),a-(Q+2)&lt;=32?t(Q+2,a,o,s,l,c,u,f,h,p,d):n(Q+2,a,o,s,l,c,u,f,h,p,d),$)return r(it),void r(at);if(K&lt;U&amp;&amp;Q&gt;V){t:for(;;){for(_=s+K*l,B=0,N=s,k=0;k&lt;f;++k){if(o[_]!==it[B])break t;++B,_+=h}++K}t:for(;;){for(_=s+Q*l,B=0,N=s,k=0;k&lt;f;++k){if(o[_]!==at[B])break t;++B,_+=h}--Q}for(b=K;b&lt;=Q;++b){_=s+b*l,B=0;t:for(k=0;k&lt;f&amp;&amp;0===(tt=o[_]-it[B]);++k)B+=d,_+=p;if(0===tt){if(b!==K)for(A=l*b,M=l*K,N=s,k=0;k&lt;f;++k)w=M+N,m=o[_=A+N],o[_]=o[w],o[w]=m,N+=h;++K}else{_=s+b*l,B=0;t:for(k=0;k&lt;f&amp;&amp;0===(et=o[_]-at[B]);++k)B+=d,_+=p;if(0===et)for(;;){_=s+Q*l,B=0;t:for(k=0;k&lt;f&amp;&amp;0===(rt=o[_]-at[B]);++k)B+=d,_+=p;if(0!==rt){_=s+Q*l,B=0;t:for(k=0;k&lt;f&amp;&amp;0===(rt=o[_]-it[B]);++k)B+=d,_+=p;if(rt&lt;0){for(A=l*b,M=l*K,S=l*Q,N=s,k=0;k&lt;f;++k)w=M+N,T=S+N,m=o[_=A+N],o[_]=o[w],o[w]=o[T],o[T]=m,N+=h;++K,--Q}else{for(A=l*b,M=l*Q,N=s,k=0;k&lt;f;++k)w=M+N,m=o[_=A+N],o[_]=o[w],o[w]=m,N+=h;--Q}break}if(--Q&lt;b)break}}}}r(it),r(at),Q-K&lt;=32?t(K,Q,o,s,l,c,u,f,h,p,d):n(K,Q,o,s,l,c,u,f,h,p,d)}}};var s={&quot;uint32,1,0&quot;:function(t,e){return function(r){var n=r.data,i=0|r.offset,a=r.shape,o=r.stride,s=0|o[0],l=0|a[0],c=0|o[1],u=0|a[1],f=c,h=c;l&lt;=32?t(0,l-1,n,i,s,c,l,u,f,h,1):e(0,l-1,n,i,s,c,l,u,f,h,1)}}};e.exports=function(t,e){var r=[e,t].join(&quot;,&quot;),n=s[r],l=function(t,e){var r=i(e),n=[e,t].join(&quot;,&quot;),o=a[n];return r?o(r[0],r[1]):o()}(t,e),c=function(t,e,r){var n=i(e),a=[e,t].join(&quot;,&quot;),s=o[a];return t.length&gt;1&amp;&amp;n?s(r,n[0],n[1]):s(r)}(t,e,l);return n(l,c)}},{&quot;typedarray-pool&quot;:308}],258:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/compile_sort.js&quot;),i={};e.exports=function(t){var e=t.order,r=t.dtype,a=[e,r].join(&quot;:&quot;),o=i[a];return o||(i[a]=o=n(e,r)),o(t),t}},{&quot;./lib/compile_sort.js&quot;:257}],259:[function(t,e,r){var n=t(&quot;is-buffer&quot;),i=&quot;undefined&quot;!=typeof Float64Array;function a(t,e){return t[0]-e[0]}function o(){var t,e=this.stride,r=new Array(e.length);for(t=0;t&lt;r.length;++t)r[t]=[Math.abs(e[t]),t];r.sort(a);var n=new Array(r.length);for(t=0;t&lt;n.length;++t)n[t]=r[t][1];return n}var s={T:function(t){function e(t){this.data=t}var r=e.prototype;return r.dtype=t,r.index=function(){return-1},r.size=0,r.dimension=-1,r.shape=r.stride=r.order=[],r.lo=r.hi=r.transpose=r.step=function(){return new e(this.data)},r.get=r.set=function(){},r.pick=function(){return null},function(t){return new e(t)}},0:function(t,e){function r(t,e){this.data=t,this.offset=e}var n=r.prototype;return n.dtype=t,n.index=function(){return this.offset},n.dimension=0,n.size=1,n.shape=n.stride=n.order=[],n.lo=n.hi=n.transpose=n.step=function(){return new r(this.data,this.offset)},n.pick=function(){return e(this.data)},n.valueOf=n.get=function(){return&quot;generic&quot;===t?this.data.get(this.offset):this.data[this.offset]},n.set=function(e){return&quot;generic&quot;===t?this.data.set(this.offset,e):this.data[this.offset]=e},function(t,e,n,i){return new r(t,i)}},1:function(t,e,r){function n(t,e,r,n){this.data=t,this.shape=[e],this.stride=[r],this.offset=0|n}var i=n.prototype;return i.dtype=t,i.dimension=1,Object.defineProperty(i,&quot;size&quot;,{get:function(){return this.shape[0]}}),i.order=[0],i.set=function(e,r){return&quot;generic&quot;===t?this.data.set(this.offset+this.stride[0]*e,r):this.data[this.offset+this.stride[0]*e]=r},i.get=function(e){return&quot;generic&quot;===t?this.data.get(this.offset+this.stride[0]*e):this.data[this.offset+this.stride[0]*e]},i.index=function(t){return this.offset+this.stride[0]*t},i.hi=function(t){return new n(this.data,&quot;number&quot;!=typeof t||t&lt;0?this.shape[0]:0|t,this.stride[0],this.offset)},i.lo=function(t){var e=this.offset,r=0,i=this.shape[0],a=this.stride[0];return&quot;number&quot;==typeof t&amp;&amp;t&gt;=0&amp;&amp;(e+=a*(r=0|t),i-=r),new n(this.data,i,a,e)},i.step=function(t){var e=this.shape[0],r=this.stride[0],i=this.offset,a=0,o=Math.ceil;return&quot;number&quot;==typeof t&amp;&amp;((a=0|t)&lt;0?(i+=r*(e-1),e=o(-e/a)):e=o(e/a),r*=a),new n(this.data,e,r,i)},i.transpose=function(t){t=void 0===t?0:0|t;var e=this.shape,r=this.stride;return new n(this.data,e[t],r[t],this.offset)},i.pick=function(t){var r=[],n=[],i=this.offset;return&quot;number&quot;==typeof t&amp;&amp;t&gt;=0?i=i+this.stride[0]*t|0:(r.push(this.shape[0]),n.push(this.stride[0])),(0,e[r.length+1])(this.data,r,n,i)},function(t,e,r,i){return new n(t,e[0],r[0],i)}},2:function(t,e,r){function n(t,e,r,n,i,a){this.data=t,this.shape=[e,r],this.stride=[n,i],this.offset=0|a}var i=n.prototype;return i.dtype=t,i.dimension=2,Object.defineProperty(i,&quot;size&quot;,{get:function(){return this.shape[0]*this.shape[1]}}),Object.defineProperty(i,&quot;order&quot;,{get:function(){return Math.abs(this.stride[0])&gt;Math.abs(this.stride[1])?[1,0]:[0,1]}}),i.set=function(e,r,n){return&quot;generic&quot;===t?this.data.set(this.offset+this.stride[0]*e+this.stride[1]*r,n):this.data[this.offset+this.stride[0]*e+this.stride[1]*r]=n},i.get=function(e,r){return&quot;generic&quot;===t?this.data.get(this.offset+this.stride[0]*e+this.stride[1]*r):this.data[this.offset+this.stride[0]*e+this.stride[1]*r]},i.index=function(t,e){return this.offset+this.stride[0]*t+this.stride[1]*e},i.hi=function(t,e){return new n(this.data,&quot;number&quot;!=typeof t||t&lt;0?this.shape[0]:0|t,&quot;number&quot;!=typeof e||e&lt;0?this.shape[1]:0|e,this.stride[0],this.stride[1],this.offset)},i.lo=function(t,e){var r=this.offset,i=0,a=this.shape[0],o=this.shape[1],s=this.stride[0],l=this.stride[1];return&quot;number&quot;==typeof t&amp;&amp;t&gt;=0&amp;&amp;(r+=s*(i=0|t),a-=i),&quot;number&quot;==typeof e&amp;&amp;e&gt;=0&amp;&amp;(r+=l*(i=0|e),o-=i),new n(this.data,a,o,s,l,r)},i.step=function(t,e){var r=this.shape[0],i=this.shape[1],a=this.stride[0],o=this.stride[1],s=this.offset,l=0,c=Math.ceil;return&quot;number&quot;==typeof t&amp;&amp;((l=0|t)&lt;0?(s+=a*(r-1),r=c(-r/l)):r=c(r/l),a*=l),&quot;number&quot;==typeof e&amp;&amp;((l=0|e)&lt;0?(s+=o*(i-1),i=c(-i/l)):i=c(i/l),o*=l),new n(this.data,r,i,a,o,s)},i.transpose=function(t,e){t=void 0===t?0:0|t,e=void 0===e?1:0|e;var r=this.shape,i=this.stride;return new n(this.data,r[t],r[e],i[t],i[e],this.offset)},i.pick=function(t,r){var n=[],i=[],a=this.offset;return&quot;number&quot;==typeof t&amp;&amp;t&gt;=0?a=a+this.stride[0]*t|0:(n.push(this.shape[0]),i.push(this.stride[0])),&quot;number&quot;==typeof r&amp;&amp;r&gt;=0?a=a+this.stride[1]*r|0:(n.push(this.shape[1]),i.push(this.stride[1])),(0,e[n.length+1])(this.data,n,i,a)},function(t,e,r,i){return new n(t,e[0],e[1],r[0],r[1],i)}},3:function(t,e,r){function n(t,e,r,n,i,a,o,s){this.data=t,this.shape=[e,r,n],this.stride=[i,a,o],this.offset=0|s}var i=n.prototype;return i.dtype=t,i.dimension=3,Object.defineProperty(i,&quot;size&quot;,{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]}}),Object.defineProperty(i,&quot;order&quot;,{get:function(){var t=Math.abs(this.stride[0]),e=Math.abs(this.stride[1]),r=Math.abs(this.stride[2]);return t&gt;e?e&gt;r?[2,1,0]:t&gt;r?[1,2,0]:[1,0,2]:t&gt;r?[2,0,1]:r&gt;e?[0,1,2]:[0,2,1]}}),i.set=function(e,r,n,i){return&quot;generic&quot;===t?this.data.set(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n,i):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n]=i},i.get=function(e,r,n){return&quot;generic&quot;===t?this.data.get(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n]},i.index=function(t,e,r){return this.offset+this.stride[0]*t+this.stride[1]*e+this.stride[2]*r},i.hi=function(t,e,r){return new n(this.data,&quot;number&quot;!=typeof t||t&lt;0?this.shape[0]:0|t,&quot;number&quot;!=typeof e||e&lt;0?this.shape[1]:0|e,&quot;number&quot;!=typeof r||r&lt;0?this.shape[2]:0|r,this.stride[0],this.stride[1],this.stride[2],this.offset)},i.lo=function(t,e,r){var i=this.offset,a=0,o=this.shape[0],s=this.shape[1],l=this.shape[2],c=this.stride[0],u=this.stride[1],f=this.stride[2];return&quot;number&quot;==typeof t&amp;&amp;t&gt;=0&amp;&amp;(i+=c*(a=0|t),o-=a),&quot;number&quot;==typeof e&amp;&amp;e&gt;=0&amp;&amp;(i+=u*(a=0|e),s-=a),&quot;number&quot;==typeof r&amp;&amp;r&gt;=0&amp;&amp;(i+=f*(a=0|r),l-=a),new n(this.data,o,s,l,c,u,f,i)},i.step=function(t,e,r){var i=this.shape[0],a=this.shape[1],o=this.shape[2],s=this.stride[0],l=this.stride[1],c=this.stride[2],u=this.offset,f=0,h=Math.ceil;return&quot;number&quot;==typeof t&amp;&amp;((f=0|t)&lt;0?(u+=s*(i-1),i=h(-i/f)):i=h(i/f),s*=f),&quot;number&quot;==typeof e&amp;&amp;((f=0|e)&lt;0?(u+=l*(a-1),a=h(-a/f)):a=h(a/f),l*=f),&quot;number&quot;==typeof r&amp;&amp;((f=0|r)&lt;0?(u+=c*(o-1),o=h(-o/f)):o=h(o/f),c*=f),new n(this.data,i,a,o,s,l,c,u)},i.transpose=function(t,e,r){t=void 0===t?0:0|t,e=void 0===e?1:0|e,r=void 0===r?2:0|r;var i=this.shape,a=this.stride;return new n(this.data,i[t],i[e],i[r],a[t],a[e],a[r],this.offset)},i.pick=function(t,r,n){var i=[],a=[],o=this.offset;return&quot;number&quot;==typeof t&amp;&amp;t&gt;=0?o=o+this.stride[0]*t|0:(i.push(this.shape[0]),a.push(this.stride[0])),&quot;number&quot;==typeof r&amp;&amp;r&gt;=0?o=o+this.stride[1]*r|0:(i.push(this.shape[1]),a.push(this.stride[1])),&quot;number&quot;==typeof n&amp;&amp;n&gt;=0?o=o+this.stride[2]*n|0:(i.push(this.shape[2]),a.push(this.stride[2])),(0,e[i.length+1])(this.data,i,a,o)},function(t,e,r,i){return new n(t,e[0],e[1],e[2],r[0],r[1],r[2],i)}},4:function(t,e,r){function n(t,e,r,n,i,a,o,s,l,c){this.data=t,this.shape=[e,r,n,i],this.stride=[a,o,s,l],this.offset=0|c}var i=n.prototype;return i.dtype=t,i.dimension=4,Object.defineProperty(i,&quot;size&quot;,{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]}}),Object.defineProperty(i,&quot;order&quot;,{get:r}),i.set=function(e,r,n,i,a){return&quot;generic&quot;===t?this.data.set(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i,a):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i]=a},i.get=function(e,r,n,i){return&quot;generic&quot;===t?this.data.get(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i]},i.index=function(t,e,r,n){return this.offset+this.stride[0]*t+this.stride[1]*e+this.stride[2]*r+this.stride[3]*n},i.hi=function(t,e,r,i){return new n(this.data,&quot;number&quot;!=typeof t||t&lt;0?this.shape[0]:0|t,&quot;number&quot;!=typeof e||e&lt;0?this.shape[1]:0|e,&quot;number&quot;!=typeof r||r&lt;0?this.shape[2]:0|r,&quot;number&quot;!=typeof i||i&lt;0?this.shape[3]:0|i,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.offset)},i.lo=function(t,e,r,i){var a=this.offset,o=0,s=this.shape[0],l=this.shape[1],c=this.shape[2],u=this.shape[3],f=this.stride[0],h=this.stride[1],p=this.stride[2],d=this.stride[3];return&quot;number&quot;==typeof t&amp;&amp;t&gt;=0&amp;&amp;(a+=f*(o=0|t),s-=o),&quot;number&quot;==typeof e&amp;&amp;e&gt;=0&amp;&amp;(a+=h*(o=0|e),l-=o),&quot;number&quot;==typeof r&amp;&amp;r&gt;=0&amp;&amp;(a+=p*(o=0|r),c-=o),&quot;number&quot;==typeof i&amp;&amp;i&gt;=0&amp;&amp;(a+=d*(o=0|i),u-=o),new n(this.data,s,l,c,u,f,h,p,d,a)},i.step=function(t,e,r,i){var a=this.shape[0],o=this.shape[1],s=this.shape[2],l=this.shape[3],c=this.stride[0],u=this.stride[1],f=this.stride[2],h=this.stride[3],p=this.offset,d=0,m=Math.ceil;return&quot;number&quot;==typeof t&amp;&amp;((d=0|t)&lt;0?(p+=c*(a-1),a=m(-a/d)):a=m(a/d),c*=d),&quot;number&quot;==typeof e&amp;&amp;((d=0|e)&lt;0?(p+=u*(o-1),o=m(-o/d)):o=m(o/d),u*=d),&quot;number&quot;==typeof r&amp;&amp;((d=0|r)&lt;0?(p+=f*(s-1),s=m(-s/d)):s=m(s/d),f*=d),&quot;number&quot;==typeof i&amp;&amp;((d=0|i)&lt;0?(p+=h*(l-1),l=m(-l/d)):l=m(l/d),h*=d),new n(this.data,a,o,s,l,c,u,f,h,p)},i.transpose=function(t,e,r,i){t=void 0===t?0:0|t,e=void 0===e?1:0|e,r=void 0===r?2:0|r,i=void 0===i?3:0|i;var a=this.shape,o=this.stride;return new n(this.data,a[t],a[e],a[r],a[i],o[t],o[e],o[r],o[i],this.offset)},i.pick=function(t,r,n,i){var a=[],o=[],s=this.offset;return&quot;number&quot;==typeof t&amp;&amp;t&gt;=0?s=s+this.stride[0]*t|0:(a.push(this.shape[0]),o.push(this.stride[0])),&quot;number&quot;==typeof r&amp;&amp;r&gt;=0?s=s+this.stride[1]*r|0:(a.push(this.shape[1]),o.push(this.stride[1])),&quot;number&quot;==typeof n&amp;&amp;n&gt;=0?s=s+this.stride[2]*n|0:(a.push(this.shape[2]),o.push(this.stride[2])),&quot;number&quot;==typeof i&amp;&amp;i&gt;=0?s=s+this.stride[3]*i|0:(a.push(this.shape[3]),o.push(this.stride[3])),(0,e[a.length+1])(this.data,a,o,s)},function(t,e,r,i){return new n(t,e[0],e[1],e[2],e[3],r[0],r[1],r[2],r[3],i)}},5:function(t,e,r){function n(t,e,r,n,i,a,o,s,l,c,u,f){this.data=t,this.shape=[e,r,n,i,a],this.stride=[o,s,l,c,u],this.offset=0|f}var i=n.prototype;return i.dtype=t,i.dimension=5,Object.defineProperty(i,&quot;size&quot;,{get:function(){return this.shape[0]*this.shape[1]*this.shape[2]*this.shape[3]*this.shape[4]}}),Object.defineProperty(i,&quot;order&quot;,{get:r}),i.set=function(e,r,n,i,a,o){return&quot;generic&quot;===t?this.data.set(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a,o):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a]=o},i.get=function(e,r,n,i,a){return&quot;generic&quot;===t?this.data.get(this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a):this.data[this.offset+this.stride[0]*e+this.stride[1]*r+this.stride[2]*n+this.stride[3]*i+this.stride[4]*a]},i.index=function(t,e,r,n,i){return this.offset+this.stride[0]*t+this.stride[1]*e+this.stride[2]*r+this.stride[3]*n+this.stride[4]*i},i.hi=function(t,e,r,i,a){return new n(this.data,&quot;number&quot;!=typeof t||t&lt;0?this.shape[0]:0|t,&quot;number&quot;!=typeof e||e&lt;0?this.shape[1]:0|e,&quot;number&quot;!=typeof r||r&lt;0?this.shape[2]:0|r,&quot;number&quot;!=typeof i||i&lt;0?this.shape[3]:0|i,&quot;number&quot;!=typeof a||a&lt;0?this.shape[4]:0|a,this.stride[0],this.stride[1],this.stride[2],this.stride[3],this.stride[4],this.offset)},i.lo=function(t,e,r,i,a){var o=this.offset,s=0,l=this.shape[0],c=this.shape[1],u=this.shape[2],f=this.shape[3],h=this.shape[4],p=this.stride[0],d=this.stride[1],m=this.stride[2],g=this.stride[3],v=this.stride[4];return&quot;number&quot;==typeof t&amp;&amp;t&gt;=0&amp;&amp;(o+=p*(s=0|t),l-=s),&quot;number&quot;==typeof e&amp;&amp;e&gt;=0&amp;&amp;(o+=d*(s=0|e),c-=s),&quot;number&quot;==typeof r&amp;&amp;r&gt;=0&amp;&amp;(o+=m*(s=0|r),u-=s),&quot;number&quot;==typeof i&amp;&amp;i&gt;=0&amp;&amp;(o+=g*(s=0|i),f-=s),&quot;number&quot;==typeof a&amp;&amp;a&gt;=0&amp;&amp;(o+=v*(s=0|a),h-=s),new n(this.data,l,c,u,f,h,p,d,m,g,v,o)},i.step=function(t,e,r,i,a){var o=this.shape[0],s=this.shape[1],l=this.shape[2],c=this.shape[3],u=this.shape[4],f=this.stride[0],h=this.stride[1],p=this.stride[2],d=this.stride[3],m=this.stride[4],g=this.offset,v=0,y=Math.ceil;return&quot;number&quot;==typeof t&amp;&amp;((v=0|t)&lt;0?(g+=f*(o-1),o=y(-o/v)):o=y(o/v),f*=v),&quot;number&quot;==typeof e&amp;&amp;((v=0|e)&lt;0?(g+=h*(s-1),s=y(-s/v)):s=y(s/v),h*=v),&quot;number&quot;==typeof r&amp;&amp;((v=0|r)&lt;0?(g+=p*(l-1),l=y(-l/v)):l=y(l/v),p*=v),&quot;number&quot;==typeof i&amp;&amp;((v=0|i)&lt;0?(g+=d*(c-1),c=y(-c/v)):c=y(c/v),d*=v),&quot;number&quot;==typeof a&amp;&amp;((v=0|a)&lt;0?(g+=m*(u-1),u=y(-u/v)):u=y(u/v),m*=v),new n(this.data,o,s,l,c,u,f,h,p,d,m,g)},i.transpose=function(t,e,r,i,a){t=void 0===t?0:0|t,e=void 0===e?1:0|e,r=void 0===r?2:0|r,i=void 0===i?3:0|i,a=void 0===a?4:0|a;var o=this.shape,s=this.stride;return new n(this.data,o[t],o[e],o[r],o[i],o[a],s[t],s[e],s[r],s[i],s[a],this.offset)},i.pick=function(t,r,n,i,a){var o=[],s=[],l=this.offset;return&quot;number&quot;==typeof t&amp;&amp;t&gt;=0?l=l+this.stride[0]*t|0:(o.push(this.shape[0]),s.push(this.stride[0])),&quot;number&quot;==typeof r&amp;&amp;r&gt;=0?l=l+this.stride[1]*r|0:(o.push(this.shape[1]),s.push(this.stride[1])),&quot;number&quot;==typeof n&amp;&amp;n&gt;=0?l=l+this.stride[2]*n|0:(o.push(this.shape[2]),s.push(this.stride[2])),&quot;number&quot;==typeof i&amp;&amp;i&gt;=0?l=l+this.stride[3]*i|0:(o.push(this.shape[3]),s.push(this.stride[3])),&quot;number&quot;==typeof a&amp;&amp;a&gt;=0?l=l+this.stride[4]*a|0:(o.push(this.shape[4]),s.push(this.stride[4])),(0,e[o.length+1])(this.data,o,s,l)},function(t,e,r,i){return new n(t,e[0],e[1],e[2],e[3],e[4],r[0],r[1],r[2],r[3],r[4],i)}}};function l(t,e){var r=-1===e?&quot;T&quot;:String(e),n=s[r];return-1===e?n(t):0===e?n(t,c[t][0]):n(t,c[t],o)}var c={generic:[],buffer:[],array:[],float32:[],float64:[],int8:[],int16:[],int32:[],uint8_clamped:[],uint8:[],uint16:[],uint32:[],bigint64:[],biguint64:[]};e.exports=function(t,e,r,a){if(void 0===t)return(0,c.array[0])([]);&quot;number&quot;==typeof t&amp;&amp;(t=[t]),void 0===e&amp;&amp;(e=[t.length]);var o=e.length;if(void 0===r){r=new Array(o);for(var s=o-1,u=1;s&gt;=0;--s)r[s]=u,u*=e[s]}if(void 0===a){a=0;for(s=0;s&lt;o;++s)r[s]&lt;0&amp;&amp;(a-=(e[s]-1)*r[s])}for(var f=function(t){if(n(t))return&quot;buffer&quot;;if(i)switch(Object.prototype.toString.call(t)){case&quot;[object Float64Array]&quot;:return&quot;float64&quot;;case&quot;[object Float32Array]&quot;:return&quot;float32&quot;;case&quot;[object Int8Array]&quot;:return&quot;int8&quot;;case&quot;[object Int16Array]&quot;:return&quot;int16&quot;;case&quot;[object Int32Array]&quot;:return&quot;int32&quot;;case&quot;[object Uint8ClampedArray]&quot;:return&quot;uint8_clamped&quot;;case&quot;[object Uint8Array]&quot;:return&quot;uint8&quot;;case&quot;[object Uint16Array]&quot;:return&quot;uint16&quot;;case&quot;[object Uint32Array]&quot;:return&quot;uint32&quot;;case&quot;[object BigInt64Array]&quot;:return&quot;bigint64&quot;;case&quot;[object BigUint64Array]&quot;:return&quot;biguint64&quot;}return Array.isArray(t)?&quot;array&quot;:&quot;generic&quot;}(t),h=c[f];h.length&lt;=o+1;)h.push(l(f,h.length-1));return(0,h[o+1])(t,e,r,a)}},{&quot;is-buffer&quot;:237}],260:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;double-bits&quot;),i=Math.pow(2,-1074);e.exports=function(t,e){if(isNaN(t)||isNaN(e))return NaN;if(t===e)return t;if(0===t)return e&lt;0?-i:i;var r=n.hi(t),a=n.lo(t);e&gt;t==t&gt;0?a===-1&gt;&gt;&gt;0?(r+=1,a=0):a+=1:0===a?(a=-1&gt;&gt;&gt;0,r-=1):a-=1;return n.pack(a,r)}},{&quot;double-bits&quot;:64}],261:[function(t,e,r){r.vertexNormals=function(t,e,r){for(var n=e.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o&lt;n;++o)i[o]=[0,0,0];for(o=0;o&lt;t.length;++o)for(var s=t[o],l=0,c=s[s.length-1],u=s[0],f=0;f&lt;s.length;++f){l=c,c=u,u=s[(f+1)%s.length];for(var h=e[l],p=e[c],d=e[u],m=new Array(3),g=0,v=new Array(3),y=0,x=0;x&lt;3;++x)m[x]=h[x]-p[x],g+=m[x]*m[x],v[x]=d[x]-p[x],y+=v[x]*v[x];if(g*y&gt;a){var b=i[c],_=1/Math.sqrt(g*y);for(x=0;x&lt;3;++x){var w=(x+1)%3,T=(x+2)%3;b[x]+=_*(v[w]*m[T]-v[T]*m[w])}}}for(o=0;o&lt;n;++o){b=i[o];var k=0;for(x=0;x&lt;3;++x)k+=b[x]*b[x];if(k&gt;a)for(_=1/Math.sqrt(k),x=0;x&lt;3;++x)b[x]*=_;else for(x=0;x&lt;3;++x)b[x]=0}return i},r.faceNormals=function(t,e,r){for(var n=t.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o&lt;n;++o){for(var s=t[o],l=new Array(3),c=0;c&lt;3;++c)l[c]=e[s[c]];var u=new Array(3),f=new Array(3);for(c=0;c&lt;3;++c)u[c]=l[1][c]-l[0][c],f[c]=l[2][c]-l[0][c];var h=new Array(3),p=0;for(c=0;c&lt;3;++c){var d=(c+1)%3,m=(c+2)%3;h[c]=u[d]*f[m]-u[m]*f[d],p+=h[c]*h[c]}p=p&gt;a?1/Math.sqrt(p):0;for(c=0;c&lt;3;++c)h[c]*=p;i[o]=h}return i}},{}],262:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a,o,s,l,c){var u=e+a+c;if(f&gt;0){var f=Math.sqrt(u+1);t[0]=.5*(o-l)/f,t[1]=.5*(s-n)/f,t[2]=.5*(r-a)/f,t[3]=.5*f}else{var h=Math.max(e,a,c);f=Math.sqrt(2*h-u+1);e&gt;=h?(t[0]=.5*f,t[1]=.5*(i+r)/f,t[2]=.5*(s+n)/f,t[3]=.5*(o-l)/f):a&gt;=h?(t[0]=.5*(r+i)/f,t[1]=.5*f,t[2]=.5*(l+o)/f,t[3]=.5*(s-n)/f):(t[0]=.5*(n+s)/f,t[1]=.5*(o+l)/f,t[2]=.5*f,t[3]=.5*(r-i)/f)}return t}},{}],263:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.rotation||[0,0,0,1],n=t.radius||1;e=[].slice.call(e,0,3),u(r=[].slice.call(r,0,4),r);var i=new f(r,e,Math.log(n));i.setDistanceLimits(t.zoomMin,t.zoomMax),(&quot;eye&quot;in t||&quot;up&quot;in t)&amp;&amp;i.lookAt(0,t.eye,t.center,t.up);return i};var n=t(&quot;filtered-vector&quot;),i=t(&quot;gl-mat4/lookAt&quot;),a=t(&quot;gl-mat4/fromQuat&quot;),o=t(&quot;gl-mat4/invert&quot;),s=t(&quot;./lib/quatFromFrame&quot;);function l(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function c(t,e,r,n){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2)+Math.pow(n,2))}function u(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=c(r,n,i,a);o&gt;1e-6?(t[0]=r/o,t[1]=n/o,t[2]=i/o,t[3]=a/o):(t[0]=t[1]=t[2]=0,t[3]=1)}function f(t,e,r){this.radius=n([r]),this.center=n(e),this.rotation=n(t),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var h=f.prototype;h.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},h.recalcMatrix=function(t){this.radius.curve(t),this.center.curve(t),this.rotation.curve(t);var e=this.computedRotation;u(e,e);var r=this.computedMatrix;a(r,e);var n=this.computedCenter,i=this.computedEye,o=this.computedUp,s=Math.exp(this.computedRadius[0]);i[0]=n[0]+s*r[2],i[1]=n[1]+s*r[6],i[2]=n[2]+s*r[10],o[0]=r[1],o[1]=r[5],o[2]=r[9];for(var l=0;l&lt;3;++l){for(var c=0,f=0;f&lt;3;++f)c+=r[l+4*f]*i[f];r[12+l]=-c}},h.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n&lt;16;++n)e[n]=r[n];return e}return r},h.idle=function(t){this.center.idle(t),this.radius.idle(t),this.rotation.idle(t)},h.flush=function(t){this.center.flush(t),this.radius.flush(t),this.rotation.flush(t)},h.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=i[1],o=i[5],s=i[9],c=l(a,o,s);a/=c,o/=c,s/=c;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=l(u-=a*p,f-=o*p,h-=s*p);u/=d,f/=d,h/=d;var m=i[2],g=i[6],v=i[10],y=m*a+g*o+v*s,x=m*u+g*f+v*h,b=l(m-=y*a+x*u,g-=y*o+x*f,v-=y*s+x*h);m/=b,g/=b,v/=b;var _=u*e+a*r,w=f*e+o*r,T=h*e+s*r;this.center.move(t,_,w,T);var k=Math.exp(this.computedRadius[0]);k=Math.max(1e-4,k+n),this.radius.set(t,Math.log(k))},h.rotate=function(t,e,r,n){this.recalcMatrix(t),e=e||0,r=r||0;var i=this.computedMatrix,a=i[0],o=i[4],s=i[8],u=i[1],f=i[5],h=i[9],p=i[2],d=i[6],m=i[10],g=e*a+r*u,v=e*o+r*f,y=e*s+r*h,x=-(d*y-m*v),b=-(m*g-p*y),_=-(p*v-d*g),w=Math.sqrt(Math.max(0,1-Math.pow(x,2)-Math.pow(b,2)-Math.pow(_,2))),T=c(x,b,_,w);T&gt;1e-6?(x/=T,b/=T,_/=T,w/=T):(x=b=_=0,w=1);var k=this.computedRotation,A=k[0],M=k[1],S=k[2],E=k[3],L=A*w+E*x+M*_-S*b,C=M*w+E*b+S*x-A*_,P=S*w+E*_+A*b-M*x,I=E*w-A*x-M*b-S*_;if(n){x=p,b=d,_=m;var O=Math.sin(n)/l(x,b,_);x*=O,b*=O,_*=O,I=I*(w=Math.cos(e))-(L=L*w+I*x+C*_-P*b)*x-(C=C*w+I*b+P*x-L*_)*b-(P=P*w+I*_+L*b-C*x)*_}var z=c(L,C,P,I);z&gt;1e-6?(L/=z,C/=z,P/=z,I/=z):(L=C=P=0,I=1),this.rotation.set(t,L,C,P,I)},h.lookAt=function(t,e,r,n){this.recalcMatrix(t),r=r||this.computedCenter,e=e||this.computedEye,n=n||this.computedUp;var a=this.computedMatrix;i(a,e,r,n);var o=this.computedRotation;s(o,a[0],a[1],a[2],a[4],a[5],a[6],a[8],a[9],a[10]),u(o,o),this.rotation.set(t,o[0],o[1],o[2],o[3]);for(var l=0,c=0;c&lt;3;++c)l+=Math.pow(r[c]-e[c],2);this.radius.set(t,.5*Math.log(Math.max(l,1e-6))),this.center.set(t,r[0],r[1],r[2])},h.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},h.setMatrix=function(t,e){var r=this.computedRotation;s(r,e[0],e[1],e[2],e[4],e[5],e[6],e[8],e[9],e[10]),u(r,r),this.rotation.set(t,r[0],r[1],r[2],r[3]);var n=this.computedMatrix;o(n,e);var i=n[15];if(Math.abs(i)&gt;1e-6){var a=n[12]/i,l=n[13]/i,c=n[14]/i;this.recalcMatrix(t);var f=Math.exp(this.computedRadius[0]);this.center.set(t,a-n[2]*f,l-n[6]*f,c-n[10]*f),this.radius.idle(t)}else this.center.idle(t),this.radius.idle(t)},h.setDistance=function(t,e){e&gt;0&amp;&amp;this.radius.set(t,Math.log(e))},h.setDistanceLimits=function(t,e){t=t&gt;0?Math.log(t):-1/0,e=e&gt;0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},h.getDistanceLimits=function(t){var e=this.radius.bounds;return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},h.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},h.fromJSON=function(t){var e=this.lastT(),r=t.center;r&amp;&amp;this.center.set(e,r[0],r[1],r[2]);var n=t.rotation;n&amp;&amp;this.rotation.set(e,n[0],n[1],n[2],n[3]);var i=t.distance;i&amp;&amp;i&gt;0&amp;&amp;this.radius.set(e,Math.log(i)),this.setDistanceLimits(t.zoomMin,t.zoomMax)}},{&quot;./lib/quatFromFrame&quot;:262,&quot;filtered-vector&quot;:68,&quot;gl-mat4/fromQuat&quot;:95,&quot;gl-mat4/invert&quot;:98,&quot;gl-mat4/lookAt&quot;:99}],264:[function(t,e,r){
/*!
 * pad-left &lt;https://github.com/jonschlinkert/pad-left&gt;
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT license.
 */
&quot;use strict&quot;;var n=t(&quot;repeat-string&quot;);e.exports=function(t,e,r){return n(r=void 0!==r?r+&quot;&quot;:&quot; &quot;,e)+t}},{&quot;repeat-string&quot;:277}],265:[function(t,e,r){e.exports=function(t,e){e||(e=[0,&quot;&quot;]),t=String(t);var r=parseFloat(t,10);return e[0]=r,e[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||&quot;&quot;,e}},{}],266:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=0|e.length,i=t.length,a=[new Array(r),new Array(r)],o=0;o&lt;r;++o)a[0][o]=[],a[1][o]=[];for(o=0;o&lt;i;++o){var s=t[o];a[0][s[0]].push(s),a[1][s[1]].push(s)}var l=[];for(o=0;o&lt;r;++o)a[0][o].length+a[1][o].length===0&amp;&amp;l.push([o]);function c(t,e){var r=a[e][t[e]];r.splice(r.indexOf(t),1)}function u(t,r,i){for(var o,s,l,u=0;u&lt;2;++u)if(a[u][r].length&gt;0){o=a[u][r][0],l=u;break}s=o[1^l];for(var f=0;f&lt;2;++f)for(var h=a[f][r],p=0;p&lt;h.length;++p){var d=h[p],m=d[1^f];n(e[t],e[r],e[s],e[m])&gt;0&amp;&amp;(o=d,s=m,l=f)}return i||o&amp;&amp;c(o,l),s}function f(t,r){var i=a[r][t][0],o=[t];c(i,r);for(var s=i[1^r];;){for(;s!==t;)o.push(s),s=u(o[o.length-2],s,!1);if(a[0][t].length+a[1][t].length===0)break;var l=o[o.length-1],f=t,h=o[1],p=u(l,f,!0);if(n(e[l],e[f],e[h],e[p])&lt;0)break;o.push(t),s=u(l,f)}return o}function h(t,e){return e[1]===e[e.length-1]}for(o=0;o&lt;r;++o)for(var p=0;p&lt;2;++p){for(var d=[];a[p][o].length&gt;0;){a[0][o].length;var m=f(o,p);h(0,m)?d.push.apply(d,m):(d.length&gt;0&amp;&amp;l.push(d),d=m)}d.length&gt;0&amp;&amp;l.push(d)}return l};var n=t(&quot;compare-angle&quot;)},{&quot;compare-angle&quot;:54}],267:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=n(t,e.length),i=new Array(e.length),a=new Array(e.length),o=[],s=0;s&lt;e.length;++s){var l=r[s].length;a[s]=l,i[s]=!0,l&lt;=1&amp;&amp;o.push(s)}for(;o.length&gt;0;){var c=o.pop();i[c]=!1;var u=r[c];for(s=0;s&lt;u.length;++s){var f=u[s];0==--a[f]&amp;&amp;o.push(f)}}var h=new Array(e.length),p=[];for(s=0;s&lt;e.length;++s)if(i[s]){c=p.length;h[s]=c,p.push(e[s])}else h[s]=-1;var d=[];for(s=0;s&lt;t.length;++s){var m=t[s];i[m[0]]&amp;&amp;i[m[1]]&amp;&amp;d.push([h[m[0]],h[m[1]]])}return[d,p]};var n=t(&quot;edges-to-adjacency-list&quot;)},{&quot;edges-to-adjacency-list&quot;:66}],268:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=c(t,e);t=r[0];for(var f=(e=r[1]).length,h=(t.length,n(t,e.length)),p=0;p&lt;f;++p)if(h[p].length%2==1)throw new Error(&quot;planar-graph-to-polyline: graph must be manifold&quot;);var d=i(t,e);var m=(d=d.filter((function(t){for(var r=t.length,n=[0],i=0;i&lt;r;++i){var a=e[t[i]],l=e[t[(i+1)%r]],c=o(-a[0],a[1]),u=o(-a[0],l[1]),f=o(l[0],a[1]),h=o(l[0],l[1]);n=s(n,s(s(c,u),s(f,h)))}return n[n.length-1]&gt;0}))).length,g=new Array(m),v=new Array(m);for(p=0;p&lt;m;++p){g[p]=p;var y=new Array(m),x=d[p].map((function(t){return e[t]})),b=a([x]),_=0;t:for(var w=0;w&lt;m;++w)if(y[w]=0,p!==w){for(var T=(H=d[w]).length,k=0;k&lt;T;++k){var A=b(e[H[k]]);if(0!==A){A&lt;0&amp;&amp;(y[w]=1,_+=1);continue t}}y[w]=1,_+=1}v[p]=[_,p,y]}v.sort((function(t,e){return e[0]-t[0]}));for(p=0;p&lt;m;++p){var M=(y=v[p])[1],S=y[2];for(w=0;w&lt;m;++w)S[w]&amp;&amp;(g[w]=M)}var E=function(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=[];return e}(m);for(p=0;p&lt;m;++p)E[p].push(g[p]),E[g[p]].push(p);var L={},C=u(f,!1);for(p=0;p&lt;m;++p)for(T=(H=d[p]).length,w=0;w&lt;T;++w){var P=H[w],I=H[(w+1)%T],O=Math.min(P,I)+&quot;:&quot;+Math.max(P,I);if(O in L){var z=L[O];E[z].push(p),E[p].push(z),C[P]=C[I]=!0}else L[O]=p}function D(t){for(var e=t.length,r=0;r&lt;e;++r)if(!C[t[r]])return!1;return!0}var R=[],F=u(m,-1);for(p=0;p&lt;m;++p)g[p]!==p||D(d[p])?F[p]=-1:(R.push(p),F[p]=0);r=[];for(;R.length&gt;0;){var B=R.pop(),N=E[B];l(N,(function(t,e){return t-e}));var j,U=N.length,V=F[B];if(0===V){var H=d[B];j=[H]}for(p=0;p&lt;U;++p){var q=N[p];if(!(F[q]&gt;=0))if(F[q]=1^V,R.push(q),0===V)D(H=d[q])||(H.reverse(),j.push(H))}0===V&amp;&amp;r.push(j)}return r};var n=t(&quot;edges-to-adjacency-list&quot;),i=t(&quot;planar-dual&quot;),a=t(&quot;point-in-big-polygon&quot;),o=t(&quot;two-product&quot;),s=t(&quot;robust-sum&quot;),l=t(&quot;uniq&quot;),c=t(&quot;./lib/trim-leaves&quot;);function u(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}},{&quot;./lib/trim-leaves&quot;:267,&quot;edges-to-adjacency-list&quot;:66,&quot;planar-dual&quot;:266,&quot;point-in-big-polygon&quot;:269,&quot;robust-sum&quot;:289,&quot;two-product&quot;:306,uniq:310}],269:[function(t,e,r){e.exports=function(t){for(var e=t.length,r=[],a=[],s=0;s&lt;e;++s)for(var u=t[s],f=u.length,h=f-1,p=0;p&lt;f;h=p++){var d=u[h],m=u[p];d[0]===m[0]?a.push([d,m]):r.push([d,m])}if(0===r.length)return 0===a.length?c:(g=l(a),function(t){return g(t[0],t[1])?0:1});var g;var v=i(r),y=function(t,e){return function(r){var i=o.le(e,r[0]);if(i&lt;0)return 1;var a=t[i];if(!a){if(!(i&gt;0&amp;&amp;e[i]===r[0]))return 1;a=t[i-1]}for(var s=1;a;){var l=a.key,c=n(r,l[0],l[1]);if(l[0][0]&lt;l[1][0])if(c&lt;0)a=a.left;else{if(!(c&gt;0))return 0;s=-1,a=a.right}else if(c&gt;0)a=a.left;else{if(!(c&lt;0))return 0;s=1,a=a.right}}return s}}(v.slabs,v.coordinates);return 0===a.length?y:function(t,e){return function(r){return t(r[0],r[1])?0:e(r)}}(l(a),y)};var n=t(&quot;robust-orientation&quot;)[3],i=t(&quot;slab-decomposition&quot;),a=t(&quot;interval-tree-1d&quot;),o=t(&quot;binary-search-bounds&quot;);function s(){return!0}function l(t){for(var e={},r=0;r&lt;t.length;++r){var n=t[r],i=n[0][0],o=n[0][1],l=n[1][1],c=[Math.min(o,l),Math.max(o,l)];i in e?e[i].push(c):e[i]=[c]}var u={},f=Object.keys(e);for(r=0;r&lt;f.length;++r){var h=e[f[r]];u[f[r]]=a(h)}return function(t){return function(e,r){var n=t[e];return!!n&amp;&amp;!!n.queryPoint(r,s)}}(u)}function c(t){return 1}},{&quot;binary-search-bounds&quot;:31,&quot;interval-tree-1d&quot;:234,&quot;robust-orientation&quot;:284,&quot;slab-decomposition&quot;:299}],270:[function(t,e,r){&quot;use strict&quot;;var n=new Float64Array(4),i=new Float64Array(4),a=new Float64Array(4);e.exports=function(t,e,r,o,s){n.length&lt;o.length&amp;&amp;(n=new Float64Array(o.length),i=new Float64Array(o.length),a=new Float64Array(o.length));for(var l=0;l&lt;o.length;++l)n[l]=t[l]-o[l],i[l]=e[l]-t[l],a[l]=r[l]-t[l];var c=0,u=0,f=0,h=0,p=0,d=0;for(l=0;l&lt;o.length;++l){var m=i[l],g=a[l],v=n[l];c+=m*m,u+=m*g,f+=g*g,h+=v*m,p+=v*g,d+=v*v}var y,x,b,_,w,T=Math.abs(c*f-u*u),k=u*p-f*h,A=u*h-c*p;if(k+A&lt;=T)if(k&lt;0)A&lt;0&amp;&amp;h&lt;0?(A=0,-h&gt;=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d):(k=0,p&gt;=0?(A=0,y=d):-p&gt;=f?(A=1,y=f+2*p+d):y=p*(A=-p/f)+d);else if(A&lt;0)A=0,h&gt;=0?(k=0,y=d):-h&gt;=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d;else{var M=1/T;y=(k*=M)*(c*k+u*(A*=M)+2*h)+A*(u*k+f*A+2*p)+d}else k&lt;0?(b=f+p)&gt;(x=u+h)?(_=b-x)&gt;=(w=c-2*u+f)?(k=1,A=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(A=1-k)+2*h)+A*(u*k+f*A+2*p)+d:(k=0,b&lt;=0?(A=1,y=f+2*p+d):p&gt;=0?(A=0,y=d):y=p*(A=-p/f)+d):A&lt;0?(b=c+h)&gt;(x=u+p)?(_=b-x)&gt;=(w=c-2*u+f)?(A=1,k=0,y=f+2*p+d):y=(k=1-(A=_/w))*(c*k+u*A+2*h)+A*(u*k+f*A+2*p)+d:(A=0,b&lt;=0?(k=1,y=c+2*h+d):h&gt;=0?(k=0,y=d):y=h*(k=-h/c)+d):(_=f+p-u-h)&lt;=0?(k=0,A=1,y=f+2*p+d):_&gt;=(w=c-2*u+f)?(k=1,A=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(A=1-k)+2*h)+A*(u*k+f*A+2*p)+d;var S=1-k-A;for(l=0;l&lt;o.length;++l)s[l]=S*t[l]+k*e[l]+A*r[l];return y&lt;0?0:y}},{}],271:[function(t,e,r){e.exports=t(&quot;gl-quat/slerp&quot;)},{&quot;gl-quat/slerp&quot;:124}],272:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat/add&quot;);e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a&lt;r;++a)i[a]=n(t[a],e[a]);return i}},{&quot;big-rat/add&quot;:15}],273:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=new Array(t.length),r=0;r&lt;t.length;++r)e[r]=n(t[r]);return e};var n=t(&quot;big-rat&quot;)},{&quot;big-rat&quot;:18}],274:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat&quot;),i=t(&quot;big-rat/mul&quot;);e.exports=function(t,e){for(var r=n(e),a=t.length,o=new Array(a),s=0;s&lt;a;++s)o[s]=i(t[s],r);return o}},{&quot;big-rat&quot;:18,&quot;big-rat/mul&quot;:27}],275:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat/sub&quot;);e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a&lt;r;++a)i[a]=n(t[a],e[a]);return i}},{&quot;big-rat/sub&quot;:29}],276:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;compare-cell&quot;),i=t(&quot;compare-oriented-cell&quot;),a=t(&quot;cell-orientation&quot;);e.exports=function(t){t.sort(i);for(var e=t.length,r=0,o=0;o&lt;e;++o){var s=t[o],l=a(s);if(0!==l){if(r&gt;0){var c=t[r-1];if(0===n(s,c)&amp;&amp;a(c)!==l){r-=1;continue}}t[r++]=s}}return t.length=r,t}},{&quot;cell-orientation&quot;:47,&quot;compare-cell&quot;:56,&quot;compare-oriented-cell&quot;:57}],277:[function(t,e,r){
/*!
 * repeat-string &lt;https://github.com/jonschlinkert/repeat-string&gt;
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */
&quot;use strict&quot;;var n,i=&quot;&quot;;e.exports=function(t,e){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;expected a string&quot;);if(1===e)return t;if(2===e)return t+t;var r=t.length*e;if(n!==t||void 0===n)n=t,i=&quot;&quot;;else if(i.length&gt;=r)return i.substr(0,r);for(;r&gt;i.length&amp;&amp;e&gt;1;)1&amp;e&amp;&amp;(i+=t),e&gt;&gt;=1,t+=t;return i=(i+=t).substr(0,r)}},{}],278:[function(t,e,r){(function(t){(function(){e.exports=t.performance&amp;&amp;t.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}).call(this)}).call(this,void 0!==n?n:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{}],279:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=t[t.length-1],n=e,i=e-2;i&gt;=0;--i){var a=r,o=t[i];(l=o-((r=a+o)-a))&amp;&amp;(t[--n]=r,r=l)}var s=0;for(i=n;i&lt;e;++i){var l;a=t[i];(l=(o=r)-((r=a+o)-a))&amp;&amp;(t[s++]=l)}return t[s++]=r,t.length=s,t}},{}],280:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-scale&quot;),o=t(&quot;robust-compress&quot;);function s(t,e,r,n){return function(e){return n(t(r(e[0][0],e[1][1]),r(-e[0][1],e[1][0])))}}function l(t,e,r,n){return function(i){return n(t(e(t(r(i[1][1],i[2][2]),r(-i[1][2],i[2][1])),i[0][0]),t(e(t(r(i[1][0],i[2][2]),r(-i[1][2],i[2][0])),-i[0][1]),e(t(r(i[1][0],i[2][1]),r(-i[1][1],i[2][0])),i[0][2]))))}}function c(t){return(2===t?s:3===t?l:void 0)(i,a,n,o)}var u=[function(){return[0]},function(t){return[t[0][0]]}];function f(t,e,r,n,i,a){return function(o){switch(o.length){case 0:return t(o);case 1:return e(o);case 2:return r(o);case 3:return n(o)}var s=i[o.length];return s||(s=i[o.length]=a(o.length)),s(o)}}!function(){for(;u.length&lt;4;)u.push(c(u.length));e.exports=f.apply(void 0,u.concat([u,c]));for(var t=0;t&lt;u.length;++t)e.exports[t]=u[t]}()},{&quot;robust-compress&quot;:279,&quot;robust-scale&quot;:286,&quot;robust-sum&quot;:289,&quot;two-product&quot;:306}],281:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;);e.exports=function(t,e){for(var r=n(t[0],e[0]),a=1;a&lt;t.length;++a)r=i(r,n(t[a],e[a]));return r}},{&quot;robust-sum&quot;:289,&quot;two-product&quot;:306}],282:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-subtract&quot;),o=t(&quot;robust-scale&quot;);function s(t){return(3===t?l:4===t?c:5===t?u:f)(i,a,n,o)}function l(t,e,r,n){return function(i,a,o){var s=r(i[0],i[0]),l=n(s,a[0]),c=n(s,o[0]),u=r(a[0],a[0]),f=n(u,i[0]),h=n(u,o[0]),p=r(o[0],o[0]),d=n(p,i[0]),m=n(p,a[0]),g=t(e(m,h),e(f,l)),v=e(d,c),y=e(g,v);return y[y.length-1]}}function c(t,e,r,n){return function(i,a,o,s){var l=t(r(i[0],i[0]),r(i[1],i[1])),c=n(l,a[0]),u=n(l,o[0]),f=n(l,s[0]),h=t(r(a[0],a[0]),r(a[1],a[1])),p=n(h,i[0]),d=n(h,o[0]),m=n(h,s[0]),g=t(r(o[0],o[0]),r(o[1],o[1])),v=n(g,i[0]),y=n(g,a[0]),x=n(g,s[0]),b=t(r(s[0],s[0]),r(s[1],s[1])),_=n(b,i[0]),w=n(b,a[0]),T=n(b,o[0]),k=t(t(n(e(T,x),a[1]),t(n(e(w,m),-o[1]),n(e(y,d),s[1]))),t(n(e(w,m),i[1]),t(n(e(_,f),-a[1]),n(e(p,c),s[1])))),A=t(t(n(e(T,x),i[1]),t(n(e(_,f),-o[1]),n(e(v,u),s[1]))),t(n(e(y,d),i[1]),t(n(e(v,u),-a[1]),n(e(p,c),o[1])))),M=e(k,A);return M[M.length-1]}}function u(t,e,r,n){return function(i,a,o,s,l){var c=t(r(i[0],i[0]),t(r(i[1],i[1]),r(i[2],i[2]))),u=n(c,a[0]),f=n(c,o[0]),h=n(c,s[0]),p=n(c,l[0]),d=t(r(a[0],a[0]),t(r(a[1],a[1]),r(a[2],a[2]))),m=n(d,i[0]),g=n(d,o[0]),v=n(d,s[0]),y=n(d,l[0]),x=t(r(o[0],o[0]),t(r(o[1],o[1]),r(o[2],o[2]))),b=n(x,i[0]),_=n(x,a[0]),w=n(x,s[0]),T=n(x,l[0]),k=t(r(s[0],s[0]),t(r(s[1],s[1]),r(s[2],s[2]))),A=n(k,i[0]),M=n(k,a[0]),S=n(k,o[0]),E=n(k,l[0]),L=t(r(l[0],l[0]),t(r(l[1],l[1]),r(l[2],l[2]))),C=n(L,i[0]),P=n(L,a[0]),I=n(L,o[0]),O=n(L,s[0]),z=t(t(t(n(t(n(e(O,E),o[1]),t(n(e(I,T),-s[1]),n(e(S,w),l[1]))),a[2]),t(n(t(n(e(O,E),a[1]),t(n(e(P,y),-s[1]),n(e(M,v),l[1]))),-o[2]),n(t(n(e(I,T),a[1]),t(n(e(P,y),-o[1]),n(e(_,g),l[1]))),s[2]))),t(n(t(n(e(S,w),a[1]),t(n(e(M,v),-o[1]),n(e(_,g),s[1]))),-l[2]),t(n(t(n(e(O,E),a[1]),t(n(e(P,y),-s[1]),n(e(M,v),l[1]))),i[2]),n(t(n(e(O,E),i[1]),t(n(e(C,p),-s[1]),n(e(A,h),l[1]))),-a[2])))),t(t(n(t(n(e(P,y),i[1]),t(n(e(C,p),-a[1]),n(e(m,u),l[1]))),s[2]),t(n(t(n(e(M,v),i[1]),t(n(e(A,h),-a[1]),n(e(m,u),s[1]))),-l[2]),n(t(n(e(S,w),a[1]),t(n(e(M,v),-o[1]),n(e(_,g),s[1]))),i[2]))),t(n(t(n(e(S,w),i[1]),t(n(e(A,h),-o[1]),n(e(b,f),s[1]))),-a[2]),t(n(t(n(e(M,v),i[1]),t(n(e(A,h),-a[1]),n(e(m,u),s[1]))),o[2]),n(t(n(e(_,g),i[1]),t(n(e(b,f),-a[1]),n(e(m,u),o[1]))),-s[2]))))),D=t(t(t(n(t(n(e(O,E),o[1]),t(n(e(I,T),-s[1]),n(e(S,w),l[1]))),i[2]),n(t(n(e(O,E),i[1]),t(n(e(C,p),-s[1]),n(e(A,h),l[1]))),-o[2])),t(n(t(n(e(I,T),i[1]),t(n(e(C,p),-o[1]),n(e(b,f),l[1]))),s[2]),n(t(n(e(S,w),i[1]),t(n(e(A,h),-o[1]),n(e(b,f),s[1]))),-l[2]))),t(t(n(t(n(e(I,T),a[1]),t(n(e(P,y),-o[1]),n(e(_,g),l[1]))),i[2]),n(t(n(e(I,T),i[1]),t(n(e(C,p),-o[1]),n(e(b,f),l[1]))),-a[2])),t(n(t(n(e(P,y),i[1]),t(n(e(C,p),-a[1]),n(e(m,u),l[1]))),o[2]),n(t(n(e(_,g),i[1]),t(n(e(b,f),-a[1]),n(e(m,u),o[1]))),-l[2])))),R=e(z,D);return R[R.length-1]}}function f(t,e,r,n){return function(i,a,o,s,l,c){var u=t(t(r(i[0],i[0]),r(i[1],i[1])),t(r(i[2],i[2]),r(i[3],i[3]))),f=n(u,a[0]),h=n(u,o[0]),p=n(u,s[0]),d=n(u,l[0]),m=n(u,c[0]),g=t(t(r(a[0],a[0]),r(a[1],a[1])),t(r(a[2],a[2]),r(a[3],a[3]))),v=n(g,i[0]),y=n(g,o[0]),x=n(g,s[0]),b=n(g,l[0]),_=n(g,c[0]),w=t(t(r(o[0],o[0]),r(o[1],o[1])),t(r(o[2],o[2]),r(o[3],o[3]))),T=n(w,i[0]),k=n(w,a[0]),A=n(w,s[0]),M=n(w,l[0]),S=n(w,c[0]),E=t(t(r(s[0],s[0]),r(s[1],s[1])),t(r(s[2],s[2]),r(s[3],s[3]))),L=n(E,i[0]),C=n(E,a[0]),P=n(E,o[0]),I=n(E,l[0]),O=n(E,c[0]),z=t(t(r(l[0],l[0]),r(l[1],l[1])),t(r(l[2],l[2]),r(l[3],l[3]))),D=n(z,i[0]),R=n(z,a[0]),F=n(z,o[0]),B=n(z,s[0]),N=n(z,c[0]),j=t(t(r(c[0],c[0]),r(c[1],c[1])),t(r(c[2],c[2]),r(c[3],c[3]))),U=n(j,i[0]),V=n(j,a[0]),H=n(j,o[0]),q=n(j,s[0]),G=n(j,l[0]),Y=t(t(t(n(t(t(n(t(n(e(G,N),s[1]),t(n(e(q,O),-l[1]),n(e(B,I),c[1]))),o[2]),n(t(n(e(G,N),o[1]),t(n(e(H,S),-l[1]),n(e(F,M),c[1]))),-s[2])),t(n(t(n(e(q,O),o[1]),t(n(e(H,S),-s[1]),n(e(P,A),c[1]))),l[2]),n(t(n(e(B,I),o[1]),t(n(e(F,M),-s[1]),n(e(P,A),l[1]))),-c[2]))),a[3]),t(n(t(t(n(t(n(e(G,N),s[1]),t(n(e(q,O),-l[1]),n(e(B,I),c[1]))),a[2]),n(t(n(e(G,N),a[1]),t(n(e(V,_),-l[1]),n(e(R,b),c[1]))),-s[2])),t(n(t(n(e(q,O),a[1]),t(n(e(V,_),-s[1]),n(e(C,x),c[1]))),l[2]),n(t(n(e(B,I),a[1]),t(n(e(R,b),-s[1]),n(e(C,x),l[1]))),-c[2]))),-o[3]),n(t(t(n(t(n(e(G,N),o[1]),t(n(e(H,S),-l[1]),n(e(F,M),c[1]))),a[2]),n(t(n(e(G,N),a[1]),t(n(e(V,_),-l[1]),n(e(R,b),c[1]))),-o[2])),t(n(t(n(e(H,S),a[1]),t(n(e(V,_),-o[1]),n(e(k,y),c[1]))),l[2]),n(t(n(e(F,M),a[1]),t(n(e(R,b),-o[1]),n(e(k,y),l[1]))),-c[2]))),s[3]))),t(t(n(t(t(n(t(n(e(q,O),o[1]),t(n(e(H,S),-s[1]),n(e(P,A),c[1]))),a[2]),n(t(n(e(q,O),a[1]),t(n(e(V,_),-s[1]),n(e(C,x),c[1]))),-o[2])),t(n(t(n(e(H,S),a[1]),t(n(e(V,_),-o[1]),n(e(k,y),c[1]))),s[2]),n(t(n(e(P,A),a[1]),t(n(e(C,x),-o[1]),n(e(k,y),s[1]))),-c[2]))),-l[3]),n(t(t(n(t(n(e(B,I),o[1]),t(n(e(F,M),-s[1]),n(e(P,A),l[1]))),a[2]),n(t(n(e(B,I),a[1]),t(n(e(R,b),-s[1]),n(e(C,x),l[1]))),-o[2])),t(n(t(n(e(F,M),a[1]),t(n(e(R,b),-o[1]),n(e(k,y),l[1]))),s[2]),n(t(n(e(P,A),a[1]),t(n(e(C,x),-o[1]),n(e(k,y),s[1]))),-l[2]))),c[3])),t(n(t(t(n(t(n(e(G,N),s[1]),t(n(e(q,O),-l[1]),n(e(B,I),c[1]))),a[2]),n(t(n(e(G,N),a[1]),t(n(e(V,_),-l[1]),n(e(R,b),c[1]))),-s[2])),t(n(t(n(e(q,O),a[1]),t(n(e(V,_),-s[1]),n(e(C,x),c[1]))),l[2]),n(t(n(e(B,I),a[1]),t(n(e(R,b),-s[1]),n(e(C,x),l[1]))),-c[2]))),i[3]),n(t(t(n(t(n(e(G,N),s[1]),t(n(e(q,O),-l[1]),n(e(B,I),c[1]))),i[2]),n(t(n(e(G,N),i[1]),t(n(e(U,m),-l[1]),n(e(D,d),c[1]))),-s[2])),t(n(t(n(e(q,O),i[1]),t(n(e(U,m),-s[1]),n(e(L,p),c[1]))),l[2]),n(t(n(e(B,I),i[1]),t(n(e(D,d),-s[1]),n(e(L,p),l[1]))),-c[2]))),-a[3])))),t(t(t(n(t(t(n(t(n(e(G,N),a[1]),t(n(e(V,_),-l[1]),n(e(R,b),c[1]))),i[2]),n(t(n(e(G,N),i[1]),t(n(e(U,m),-l[1]),n(e(D,d),c[1]))),-a[2])),t(n(t(n(e(V,_),i[1]),t(n(e(U,m),-a[1]),n(e(v,f),c[1]))),l[2]),n(t(n(e(R,b),i[1]),t(n(e(D,d),-a[1]),n(e(v,f),l[1]))),-c[2]))),s[3]),n(t(t(n(t(n(e(q,O),a[1]),t(n(e(V,_),-s[1]),n(e(C,x),c[1]))),i[2]),n(t(n(e(q,O),i[1]),t(n(e(U,m),-s[1]),n(e(L,p),c[1]))),-a[2])),t(n(t(n(e(V,_),i[1]),t(n(e(U,m),-a[1]),n(e(v,f),c[1]))),s[2]),n(t(n(e(C,x),i[1]),t(n(e(L,p),-a[1]),n(e(v,f),s[1]))),-c[2]))),-l[3])),t(n(t(t(n(t(n(e(B,I),a[1]),t(n(e(R,b),-s[1]),n(e(C,x),l[1]))),i[2]),n(t(n(e(B,I),i[1]),t(n(e(D,d),-s[1]),n(e(L,p),l[1]))),-a[2])),t(n(t(n(e(R,b),i[1]),t(n(e(D,d),-a[1]),n(e(v,f),l[1]))),s[2]),n(t(n(e(C,x),i[1]),t(n(e(L,p),-a[1]),n(e(v,f),s[1]))),-l[2]))),c[3]),n(t(t(n(t(n(e(q,O),o[1]),t(n(e(H,S),-s[1]),n(e(P,A),c[1]))),a[2]),n(t(n(e(q,O),a[1]),t(n(e(V,_),-s[1]),n(e(C,x),c[1]))),-o[2])),t(n(t(n(e(H,S),a[1]),t(n(e(V,_),-o[1]),n(e(k,y),c[1]))),s[2]),n(t(n(e(P,A),a[1]),t(n(e(C,x),-o[1]),n(e(k,y),s[1]))),-c[2]))),i[3]))),t(t(n(t(t(n(t(n(e(q,O),o[1]),t(n(e(H,S),-s[1]),n(e(P,A),c[1]))),i[2]),n(t(n(e(q,O),i[1]),t(n(e(U,m),-s[1]),n(e(L,p),c[1]))),-o[2])),t(n(t(n(e(H,S),i[1]),t(n(e(U,m),-o[1]),n(e(T,h),c[1]))),s[2]),n(t(n(e(P,A),i[1]),t(n(e(L,p),-o[1]),n(e(T,h),s[1]))),-c[2]))),-a[3]),n(t(t(n(t(n(e(q,O),a[1]),t(n(e(V,_),-s[1]),n(e(C,x),c[1]))),i[2]),n(t(n(e(q,O),i[1]),t(n(e(U,m),-s[1]),n(e(L,p),c[1]))),-a[2])),t(n(t(n(e(V,_),i[1]),t(n(e(U,m),-a[1]),n(e(v,f),c[1]))),s[2]),n(t(n(e(C,x),i[1]),t(n(e(L,p),-a[1]),n(e(v,f),s[1]))),-c[2]))),o[3])),t(n(t(t(n(t(n(e(H,S),a[1]),t(n(e(V,_),-o[1]),n(e(k,y),c[1]))),i[2]),n(t(n(e(H,S),i[1]),t(n(e(U,m),-o[1]),n(e(T,h),c[1]))),-a[2])),t(n(t(n(e(V,_),i[1]),t(n(e(U,m),-a[1]),n(e(v,f),c[1]))),o[2]),n(t(n(e(k,y),i[1]),t(n(e(T,h),-a[1]),n(e(v,f),o[1]))),-c[2]))),-s[3]),n(t(t(n(t(n(e(P,A),a[1]),t(n(e(C,x),-o[1]),n(e(k,y),s[1]))),i[2]),n(t(n(e(P,A),i[1]),t(n(e(L,p),-o[1]),n(e(T,h),s[1]))),-a[2])),t(n(t(n(e(C,x),i[1]),t(n(e(L,p),-a[1]),n(e(v,f),s[1]))),o[2]),n(t(n(e(k,y),i[1]),t(n(e(T,h),-a[1]),n(e(v,f),o[1]))),-s[2]))),c[3]))))),W=t(t(t(n(t(t(n(t(n(e(G,N),s[1]),t(n(e(q,O),-l[1]),n(e(B,I),c[1]))),o[2]),n(t(n(e(G,N),o[1]),t(n(e(H,S),-l[1]),n(e(F,M),c[1]))),-s[2])),t(n(t(n(e(q,O),o[1]),t(n(e(H,S),-s[1]),n(e(P,A),c[1]))),l[2]),n(t(n(e(B,I),o[1]),t(n(e(F,M),-s[1]),n(e(P,A),l[1]))),-c[2]))),i[3]),t(n(t(t(n(t(n(e(G,N),s[1]),t(n(e(q,O),-l[1]),n(e(B,I),c[1]))),i[2]),n(t(n(e(G,N),i[1]),t(n(e(U,m),-l[1]),n(e(D,d),c[1]))),-s[2])),t(n(t(n(e(q,O),i[1]),t(n(e(U,m),-s[1]),n(e(L,p),c[1]))),l[2]),n(t(n(e(B,I),i[1]),t(n(e(D,d),-s[1]),n(e(L,p),l[1]))),-c[2]))),-o[3]),n(t(t(n(t(n(e(G,N),o[1]),t(n(e(H,S),-l[1]),n(e(F,M),c[1]))),i[2]),n(t(n(e(G,N),i[1]),t(n(e(U,m),-l[1]),n(e(D,d),c[1]))),-o[2])),t(n(t(n(e(H,S),i[1]),t(n(e(U,m),-o[1]),n(e(T,h),c[1]))),l[2]),n(t(n(e(F,M),i[1]),t(n(e(D,d),-o[1]),n(e(T,h),l[1]))),-c[2]))),s[3]))),t(t(n(t(t(n(t(n(e(q,O),o[1]),t(n(e(H,S),-s[1]),n(e(P,A),c[1]))),i[2]),n(t(n(e(q,O),i[1]),t(n(e(U,m),-s[1]),n(e(L,p),c[1]))),-o[2])),t(n(t(n(e(H,S),i[1]),t(n(e(U,m),-o[1]),n(e(T,h),c[1]))),s[2]),n(t(n(e(P,A),i[1]),t(n(e(L,p),-o[1]),n(e(T,h),s[1]))),-c[2]))),-l[3]),n(t(t(n(t(n(e(B,I),o[1]),t(n(e(F,M),-s[1]),n(e(P,A),l[1]))),i[2]),n(t(n(e(B,I),i[1]),t(n(e(D,d),-s[1]),n(e(L,p),l[1]))),-o[2])),t(n(t(n(e(F,M),i[1]),t(n(e(D,d),-o[1]),n(e(T,h),l[1]))),s[2]),n(t(n(e(P,A),i[1]),t(n(e(L,p),-o[1]),n(e(T,h),s[1]))),-l[2]))),c[3])),t(n(t(t(n(t(n(e(G,N),o[1]),t(n(e(H,S),-l[1]),n(e(F,M),c[1]))),a[2]),n(t(n(e(G,N),a[1]),t(n(e(V,_),-l[1]),n(e(R,b),c[1]))),-o[2])),t(n(t(n(e(H,S),a[1]),t(n(e(V,_),-o[1]),n(e(k,y),c[1]))),l[2]),n(t(n(e(F,M),a[1]),t(n(e(R,b),-o[1]),n(e(k,y),l[1]))),-c[2]))),i[3]),n(t(t(n(t(n(e(G,N),o[1]),t(n(e(H,S),-l[1]),n(e(F,M),c[1]))),i[2]),n(t(n(e(G,N),i[1]),t(n(e(U,m),-l[1]),n(e(D,d),c[1]))),-o[2])),t(n(t(n(e(H,S),i[1]),t(n(e(U,m),-o[1]),n(e(T,h),c[1]))),l[2]),n(t(n(e(F,M),i[1]),t(n(e(D,d),-o[1]),n(e(T,h),l[1]))),-c[2]))),-a[3])))),t(t(t(n(t(t(n(t(n(e(G,N),a[1]),t(n(e(V,_),-l[1]),n(e(R,b),c[1]))),i[2]),n(t(n(e(G,N),i[1]),t(n(e(U,m),-l[1]),n(e(D,d),c[1]))),-a[2])),t(n(t(n(e(V,_),i[1]),t(n(e(U,m),-a[1]),n(e(v,f),c[1]))),l[2]),n(t(n(e(R,b),i[1]),t(n(e(D,d),-a[1]),n(e(v,f),l[1]))),-c[2]))),o[3]),n(t(t(n(t(n(e(H,S),a[1]),t(n(e(V,_),-o[1]),n(e(k,y),c[1]))),i[2]),n(t(n(e(H,S),i[1]),t(n(e(U,m),-o[1]),n(e(T,h),c[1]))),-a[2])),t(n(t(n(e(V,_),i[1]),t(n(e(U,m),-a[1]),n(e(v,f),c[1]))),o[2]),n(t(n(e(k,y),i[1]),t(n(e(T,h),-a[1]),n(e(v,f),o[1]))),-c[2]))),-l[3])),t(n(t(t(n(t(n(e(F,M),a[1]),t(n(e(R,b),-o[1]),n(e(k,y),l[1]))),i[2]),n(t(n(e(F,M),i[1]),t(n(e(D,d),-o[1]),n(e(T,h),l[1]))),-a[2])),t(n(t(n(e(R,b),i[1]),t(n(e(D,d),-a[1]),n(e(v,f),l[1]))),o[2]),n(t(n(e(k,y),i[1]),t(n(e(T,h),-a[1]),n(e(v,f),o[1]))),-l[2]))),c[3]),n(t(t(n(t(n(e(B,I),o[1]),t(n(e(F,M),-s[1]),n(e(P,A),l[1]))),a[2]),n(t(n(e(B,I),a[1]),t(n(e(R,b),-s[1]),n(e(C,x),l[1]))),-o[2])),t(n(t(n(e(F,M),a[1]),t(n(e(R,b),-o[1]),n(e(k,y),l[1]))),s[2]),n(t(n(e(P,A),a[1]),t(n(e(C,x),-o[1]),n(e(k,y),s[1]))),-l[2]))),i[3]))),t(t(n(t(t(n(t(n(e(B,I),o[1]),t(n(e(F,M),-s[1]),n(e(P,A),l[1]))),i[2]),n(t(n(e(B,I),i[1]),t(n(e(D,d),-s[1]),n(e(L,p),l[1]))),-o[2])),t(n(t(n(e(F,M),i[1]),t(n(e(D,d),-o[1]),n(e(T,h),l[1]))),s[2]),n(t(n(e(P,A),i[1]),t(n(e(L,p),-o[1]),n(e(T,h),s[1]))),-l[2]))),-a[3]),n(t(t(n(t(n(e(B,I),a[1]),t(n(e(R,b),-s[1]),n(e(C,x),l[1]))),i[2]),n(t(n(e(B,I),i[1]),t(n(e(D,d),-s[1]),n(e(L,p),l[1]))),-a[2])),t(n(t(n(e(R,b),i[1]),t(n(e(D,d),-a[1]),n(e(v,f),l[1]))),s[2]),n(t(n(e(C,x),i[1]),t(n(e(L,p),-a[1]),n(e(v,f),s[1]))),-l[2]))),o[3])),t(n(t(t(n(t(n(e(F,M),a[1]),t(n(e(R,b),-o[1]),n(e(k,y),l[1]))),i[2]),n(t(n(e(F,M),i[1]),t(n(e(D,d),-o[1]),n(e(T,h),l[1]))),-a[2])),t(n(t(n(e(R,b),i[1]),t(n(e(D,d),-a[1]),n(e(v,f),l[1]))),o[2]),n(t(n(e(k,y),i[1]),t(n(e(T,h),-a[1]),n(e(v,f),o[1]))),-l[2]))),-s[3]),n(t(t(n(t(n(e(P,A),a[1]),t(n(e(C,x),-o[1]),n(e(k,y),s[1]))),i[2]),n(t(n(e(P,A),i[1]),t(n(e(L,p),-o[1]),n(e(T,h),s[1]))),-a[2])),t(n(t(n(e(C,x),i[1]),t(n(e(L,p),-a[1]),n(e(v,f),s[1]))),o[2]),n(t(n(e(k,y),i[1]),t(n(e(T,h),-a[1]),n(e(v,f),o[1]))),-s[2]))),l[3]))))),X=e(Y,W);return X[X.length-1]}}var h=[function(){return 0},function(){return 0},function(){return 0}];function p(t){var e=h[t.length];return e||(e=h[t.length]=s(t.length)),e.apply(void 0,t)}function d(t,e,r,n,i,a,o,s){return function(e,r,l,c,u,f){switch(arguments.length){case 0:case 1:return 0;case 2:return n(e,r);case 3:return i(e,r,l);case 4:return a(e,r,l,c);case 5:return o(e,r,l,c,u);case 6:return s(e,r,l,c,u,f)}for(var h=new Array(arguments.length),p=0;p&lt;arguments.length;++p)h[p]=arguments[p];return t(h)}}!function(){for(;h.length&lt;=6;)h.push(s(h.length));e.exports=d.apply(void 0,[p].concat(h));for(var t=0;t&lt;=6;++t)e.exports[t]=h[t]}()},{&quot;robust-scale&quot;:286,&quot;robust-subtract&quot;:288,&quot;robust-sum&quot;:289,&quot;two-product&quot;:306}],283:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-determinant&quot;);function i(t){var e=2===t?a:o;return e(t&lt;3?n[t]:n)}function a(t){return function(e,r){return[t([[+r[0],+e[0][1]],[+r[1],+e[1][1]]]),t([[+e[0][0],+r[0]],[+e[1][0],+r[1]]]),t(e)]}}function o(t){return function(e,r){return[t([[+r[0],+e[0][1],+e[0][2]],[+r[1],+e[1][1],+e[1][2]],[+r[2],+e[2][1],+e[2][2]]]),t([[+e[0][0],+r[0],+e[0][2]],[+e[1][0],+r[1],+e[1][2]],[+e[2][0],+r[2],+e[2][2]]]),t([[+e[0][0],+e[0][1],+r[0]],[+e[1][0],+e[1][1],+r[1]],[+e[2][0],+e[2][1],+r[2]]]),t(e)]}}var s=[function(){return[[0]]},function(t,e){return[[e[0]],[t[0][0]]]}];function l(t,e,r,n,i,a){return function(o,s){switch(o.length){case 0:return t(o,s);case 1:return e(o,s);case 2:return r(o,s);case 3:return n(o,s)}var l=i[o.length];return l||(l=i[o.length]=a(o.length)),l(o,s)}}!function(){for(;s.length&lt;=3;)s.push(i(s.length));e.exports=l.apply(void 0,s.concat([s,i]));for(var t=0;t&lt;3;++t)e.exports[t]=s[t]}()},{&quot;robust-determinant&quot;:280}],284:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-scale&quot;),o=t(&quot;robust-subtract&quot;);function s(t,e,r,n){return function(r,i,a){var o=t(t(e(i[1],a[0]),e(-a[1],i[0])),t(e(r[1],i[0]),e(-i[1],r[0]))),s=t(e(r[1],a[0]),e(-a[1],r[0])),l=n(o,s);return l[l.length-1]}}function l(t,e,r,n){return function(i,a,o,s){var l=t(t(r(t(e(o[1],s[0]),e(-s[1],o[0])),a[2]),t(r(t(e(a[1],s[0]),e(-s[1],a[0])),-o[2]),r(t(e(a[1],o[0]),e(-o[1],a[0])),s[2]))),t(r(t(e(a[1],s[0]),e(-s[1],a[0])),i[2]),t(r(t(e(i[1],s[0]),e(-s[1],i[0])),-a[2]),r(t(e(i[1],a[0]),e(-a[1],i[0])),s[2])))),c=t(t(r(t(e(o[1],s[0]),e(-s[1],o[0])),i[2]),t(r(t(e(i[1],s[0]),e(-s[1],i[0])),-o[2]),r(t(e(i[1],o[0]),e(-o[1],i[0])),s[2]))),t(r(t(e(a[1],o[0]),e(-o[1],a[0])),i[2]),t(r(t(e(i[1],o[0]),e(-o[1],i[0])),-a[2]),r(t(e(i[1],a[0]),e(-a[1],i[0])),o[2])))),u=n(l,c);return u[u.length-1]}}function c(t,e,r,n){return function(i,a,o,s,l){var c=t(t(t(r(t(r(t(e(s[1],l[0]),e(-l[1],s[0])),o[2]),t(r(t(e(o[1],l[0]),e(-l[1],o[0])),-s[2]),r(t(e(o[1],s[0]),e(-s[1],o[0])),l[2]))),a[3]),t(r(t(r(t(e(s[1],l[0]),e(-l[1],s[0])),a[2]),t(r(t(e(a[1],l[0]),e(-l[1],a[0])),-s[2]),r(t(e(a[1],s[0]),e(-s[1],a[0])),l[2]))),-o[3]),r(t(r(t(e(o[1],l[0]),e(-l[1],o[0])),a[2]),t(r(t(e(a[1],l[0]),e(-l[1],a[0])),-o[2]),r(t(e(a[1],o[0]),e(-o[1],a[0])),l[2]))),s[3]))),t(r(t(r(t(e(o[1],s[0]),e(-s[1],o[0])),a[2]),t(r(t(e(a[1],s[0]),e(-s[1],a[0])),-o[2]),r(t(e(a[1],o[0]),e(-o[1],a[0])),s[2]))),-l[3]),t(r(t(r(t(e(s[1],l[0]),e(-l[1],s[0])),a[2]),t(r(t(e(a[1],l[0]),e(-l[1],a[0])),-s[2]),r(t(e(a[1],s[0]),e(-s[1],a[0])),l[2]))),i[3]),r(t(r(t(e(s[1],l[0]),e(-l[1],s[0])),i[2]),t(r(t(e(i[1],l[0]),e(-l[1],i[0])),-s[2]),r(t(e(i[1],s[0]),e(-s[1],i[0])),l[2]))),-a[3])))),t(t(r(t(r(t(e(a[1],l[0]),e(-l[1],a[0])),i[2]),t(r(t(e(i[1],l[0]),e(-l[1],i[0])),-a[2]),r(t(e(i[1],a[0]),e(-a[1],i[0])),l[2]))),s[3]),t(r(t(r(t(e(a[1],s[0]),e(-s[1],a[0])),i[2]),t(r(t(e(i[1],s[0]),e(-s[1],i[0])),-a[2]),r(t(e(i[1],a[0]),e(-a[1],i[0])),s[2]))),-l[3]),r(t(r(t(e(o[1],s[0]),e(-s[1],o[0])),a[2]),t(r(t(e(a[1],s[0]),e(-s[1],a[0])),-o[2]),r(t(e(a[1],o[0]),e(-o[1],a[0])),s[2]))),i[3]))),t(r(t(r(t(e(o[1],s[0]),e(-s[1],o[0])),i[2]),t(r(t(e(i[1],s[0]),e(-s[1],i[0])),-o[2]),r(t(e(i[1],o[0]),e(-o[1],i[0])),s[2]))),-a[3]),t(r(t(r(t(e(a[1],s[0]),e(-s[1],a[0])),i[2]),t(r(t(e(i[1],s[0]),e(-s[1],i[0])),-a[2]),r(t(e(i[1],a[0]),e(-a[1],i[0])),s[2]))),o[3]),r(t(r(t(e(a[1],o[0]),e(-o[1],a[0])),i[2]),t(r(t(e(i[1],o[0]),e(-o[1],i[0])),-a[2]),r(t(e(i[1],a[0]),e(-a[1],i[0])),o[2]))),-s[3]))))),u=t(t(t(r(t(r(t(e(s[1],l[0]),e(-l[1],s[0])),o[2]),t(r(t(e(o[1],l[0]),e(-l[1],o[0])),-s[2]),r(t(e(o[1],s[0]),e(-s[1],o[0])),l[2]))),i[3]),r(t(r(t(e(s[1],l[0]),e(-l[1],s[0])),i[2]),t(r(t(e(i[1],l[0]),e(-l[1],i[0])),-s[2]),r(t(e(i[1],s[0]),e(-s[1],i[0])),l[2]))),-o[3])),t(r(t(r(t(e(o[1],l[0]),e(-l[1],o[0])),i[2]),t(r(t(e(i[1],l[0]),e(-l[1],i[0])),-o[2]),r(t(e(i[1],o[0]),e(-o[1],i[0])),l[2]))),s[3]),r(t(r(t(e(o[1],s[0]),e(-s[1],o[0])),i[2]),t(r(t(e(i[1],s[0]),e(-s[1],i[0])),-o[2]),r(t(e(i[1],o[0]),e(-o[1],i[0])),s[2]))),-l[3]))),t(t(r(t(r(t(e(o[1],l[0]),e(-l[1],o[0])),a[2]),t(r(t(e(a[1],l[0]),e(-l[1],a[0])),-o[2]),r(t(e(a[1],o[0]),e(-o[1],a[0])),l[2]))),i[3]),r(t(r(t(e(o[1],l[0]),e(-l[1],o[0])),i[2]),t(r(t(e(i[1],l[0]),e(-l[1],i[0])),-o[2]),r(t(e(i[1],o[0]),e(-o[1],i[0])),l[2]))),-a[3])),t(r(t(r(t(e(a[1],l[0]),e(-l[1],a[0])),i[2]),t(r(t(e(i[1],l[0]),e(-l[1],i[0])),-a[2]),r(t(e(i[1],a[0]),e(-a[1],i[0])),l[2]))),o[3]),r(t(r(t(e(a[1],o[0]),e(-o[1],a[0])),i[2]),t(r(t(e(i[1],o[0]),e(-o[1],i[0])),-a[2]),r(t(e(i[1],a[0]),e(-a[1],i[0])),o[2]))),-l[3])))),f=n(c,u);return f[f.length-1]}}function u(t){return(3===t?s:4===t?l:c)(i,n,a,o)}var f=u(3),h=u(4),p=[function(){return 0},function(){return 0},function(t,e){return e[0]-t[0]},function(t,e,r){var n,i=(t[1]-r[1])*(e[0]-r[0]),a=(t[0]-r[0])*(e[1]-r[1]),o=i-a;if(i&gt;0){if(a&lt;=0)return o;n=i+a}else{if(!(i&lt;0))return o;if(a&gt;=0)return o;n=-(i+a)}var s=33306690738754716e-32*n;return o&gt;=s||o&lt;=-s?o:f(t,e,r)},function(t,e,r,n){var i=t[0]-n[0],a=e[0]-n[0],o=r[0]-n[0],s=t[1]-n[1],l=e[1]-n[1],c=r[1]-n[1],u=t[2]-n[2],f=e[2]-n[2],p=r[2]-n[2],d=a*c,m=o*l,g=o*s,v=i*c,y=i*l,x=a*s,b=u*(d-m)+f*(g-v)+p*(y-x),_=7771561172376103e-31*((Math.abs(d)+Math.abs(m))*Math.abs(u)+(Math.abs(g)+Math.abs(v))*Math.abs(f)+(Math.abs(y)+Math.abs(x))*Math.abs(p));return b&gt;_||-b&gt;_?b:h(t,e,r,n)}];function d(t){var e=p[t.length];return e||(e=p[t.length]=u(t.length)),e.apply(void 0,t)}function m(t,e,r,n,i,a,o){return function(e,r,s,l,c){switch(arguments.length){case 0:case 1:return 0;case 2:return n(e,r);case 3:return i(e,r,s);case 4:return a(e,r,s,l);case 5:return o(e,r,s,l,c)}for(var u=new Array(arguments.length),f=0;f&lt;arguments.length;++f)u[f]=arguments[f];return t(u)}}!function(){for(;p.length&lt;=5;)p.push(u(p.length));e.exports=m.apply(void 0,[d].concat(p));for(var t=0;t&lt;=5;++t)e.exports[t]=p[t]}()},{&quot;robust-scale&quot;:286,&quot;robust-subtract&quot;:288,&quot;robust-sum&quot;:289,&quot;two-product&quot;:306}],285:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-sum&quot;),i=t(&quot;robust-scale&quot;);e.exports=function(t,e){if(1===t.length)return i(e,t[0]);if(1===e.length)return i(t,e[0]);if(0===t.length||0===e.length)return[0];var r=[0];if(t.length&lt;e.length)for(var a=0;a&lt;t.length;++a)r=n(r,i(e,t[a]));else for(a=0;a&lt;e.length;++a)r=n(r,i(t,e[a]));return r}},{&quot;robust-scale&quot;:286,&quot;robust-sum&quot;:289}],286:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;two-sum&quot;);e.exports=function(t,e){var r=t.length;if(1===r){var a=n(t[0],e);return a[0]?a:[a[1]]}var o=new Array(2*r),s=[.1,.1],l=[.1,.1],c=0;n(t[0],e,s),s[0]&amp;&amp;(o[c++]=s[0]);for(var u=1;u&lt;r;++u){n(t[u],e,l);var f=s[1];i(f,l[0],s),s[0]&amp;&amp;(o[c++]=s[0]);var h=l[1],p=s[1],d=h+p,m=p-(d-h);s[1]=d,m&amp;&amp;(o[c++]=m)}s[1]&amp;&amp;(o[c++]=s[1]);0===c&amp;&amp;(o[c++]=0);return o.length=c,o}},{&quot;two-product&quot;:306,&quot;two-sum&quot;:307}],287:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,i){var a=n(t,r,i),o=n(e,r,i);if(a&gt;0&amp;&amp;o&gt;0||a&lt;0&amp;&amp;o&lt;0)return!1;var s=n(r,t,e),l=n(i,t,e);if(s&gt;0&amp;&amp;l&gt;0||s&lt;0&amp;&amp;l&lt;0)return!1;if(0===a&amp;&amp;0===o&amp;&amp;0===s&amp;&amp;0===l)return function(t,e,r,n){for(var i=0;i&lt;2;++i){var a=t[i],o=e[i],s=Math.min(a,o),l=Math.max(a,o),c=r[i],u=n[i],f=Math.min(c,u);if(Math.max(c,u)&lt;s||l&lt;f)return!1}return!0}(t,e,r,i);return!0};var n=t(&quot;robust-orientation&quot;)[3]},{&quot;robust-orientation&quot;:284}],288:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&amp;&amp;1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],-e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=-e[c],d=u(p);h&lt;d?(a=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(a=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p)));l&lt;r&amp;&amp;h&lt;d||c&gt;=n?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p)));var m,g,v=i+a,y=v-i,x=a-y,b=x,_=v;for(;l&lt;r&amp;&amp;c&lt;n;)h&lt;d?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p))),(x=(a=b)-(y=(v=i+a)-i))&amp;&amp;(o[s++]=x),b=_-((m=_+v)-(g=m-_))+(v-g),_=m;for(;l&lt;r;)(x=(a=b)-(y=(v=(i=f)+a)-i))&amp;&amp;(o[s++]=x),b=_-((m=_+v)-(g=m-_))+(v-g),_=m,(l+=1)&lt;r&amp;&amp;(f=t[l]);for(;c&lt;n;)(x=(a=b)-(y=(v=(i=p)+a)-i))&amp;&amp;(o[s++]=x),b=_-((m=_+v)-(g=m-_))+(v-g),_=m,(c+=1)&lt;n&amp;&amp;(p=-e[c]);b&amp;&amp;(o[s++]=b);_&amp;&amp;(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],289:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&amp;&amp;1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=e[c],d=u(p);h&lt;d?(a=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(a=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p)));l&lt;r&amp;&amp;h&lt;d||c&gt;=n?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p)));var m,g,v=i+a,y=v-i,x=a-y,b=x,_=v;for(;l&lt;r&amp;&amp;c&lt;n;)h&lt;d?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p))),(x=(a=b)-(y=(v=i+a)-i))&amp;&amp;(o[s++]=x),b=_-((m=_+v)-(g=m-_))+(v-g),_=m;for(;l&lt;r;)(x=(a=b)-(y=(v=(i=f)+a)-i))&amp;&amp;(o[s++]=x),b=_-((m=_+v)-(g=m-_))+(v-g),_=m,(l+=1)&lt;r&amp;&amp;(f=t[l]);for(;c&lt;n;)(x=(a=b)-(y=(v=(i=p)+a)-i))&amp;&amp;(o[s++]=x),b=_-((m=_+v)-(g=m-_))+(v-g),_=m,(c+=1)&lt;n&amp;&amp;(p=e[c]);b&amp;&amp;(o[s++]=b);_&amp;&amp;(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],290:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return i(n(t))};var n=t(&quot;boundary-cells&quot;),i=t(&quot;reduce-simplicial-complex&quot;)},{&quot;boundary-cells&quot;:34,&quot;reduce-simplicial-complex&quot;:276}],291:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,s){r=r||0,void 0===s&amp;&amp;(s=function(t){for(var e=t.length,r=0,n=0;n&lt;e;++n)r=0|Math.max(r,t[n].length);return r-1}(t));if(0===t.length||s&lt;1)return{cells:[],vertexIds:[],vertexWeights:[]};var l=function(t,e){for(var r=t.length,n=i.mallocUint8(r),a=0;a&lt;r;++a)n[a]=t[a]&lt;e|0;return n}(e,+r),c=function(t,e){for(var r=t.length,o=e*(e+1)/2*r|0,s=i.mallocUint32(2*o),l=0,c=0;c&lt;r;++c)for(var u=t[c],f=(e=u.length,0);f&lt;e;++f)for(var h=0;h&lt;f;++h){var p=u[h],d=u[f];s[l++]=0|Math.min(p,d),s[l++]=0|Math.max(p,d)}a(n(s,[l/2|0,2]));var m=2;for(c=2;c&lt;l;c+=2)s[c-2]===s[c]&amp;&amp;s[c-1]===s[c+1]||(s[m++]=s[c],s[m++]=s[c+1]);return n(s,[m/2|0,2])}(t,s),u=function(t,e,r,a){for(var o=t.data,s=t.shape[0],l=i.mallocDouble(s),c=0,u=0;u&lt;s;++u){var f=o[2*u],h=o[2*u+1];if(r[f]!==r[h]){var p=e[f],d=e[h];o[2*c]=f,o[2*c+1]=h,l[c++]=(d-a)/(d-p)}}return t.shape[0]=c,n(l,[c])}(c,e,l,+r),f=function(t,e){var r=i.mallocInt32(2*e),n=t.shape[0],a=t.data;r[0]=0;for(var o=0,s=0;s&lt;n;++s){var l=a[2*s];if(l!==o){for(r[2*o+1]=s;++o&lt;l;)r[2*o]=s,r[2*o+1]=s;r[2*o]=s}}r[2*o+1]=n;for(;++o&lt;e;)r[2*o]=r[2*o+1]=n;return r}(c,0|e.length),h=o(s)(t,c.data,f,l),p=function(t){for(var e=0|t.shape[0],r=t.data,n=new Array(e),i=0;i&lt;e;++i)n[i]=[r[2*i],r[2*i+1]];return n}(c),d=[].slice.call(u.data,0,u.shape[0]);return i.free(l),i.free(c.data),i.free(u.data),i.free(f),{cells:h,vertexIds:p,vertexWeights:d}};var n=t(&quot;ndarray&quot;),i=t(&quot;typedarray-pool&quot;),a=t(&quot;ndarray-sort&quot;),o=t(&quot;./lib/codegen&quot;)},{&quot;./lib/codegen&quot;:292,ndarray:259,&quot;ndarray-sort&quot;:258,&quot;typedarray-pool&quot;:308}],292:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return n[t]()};var n=[function(){return function(t,e,r,n){for(var i=t.length,a=0;a&lt;i;++a)t[a].length;return[]}},function(){function t(t,e,r,n){for(var i=0|Math.min(r,n),a=0|Math.max(r,n),o=t[2*i],s=t[2*i+1];o&lt;s;){var l=o+s&gt;&gt;1,c=e[2*l+1];if(c===a)return l;a&lt;c?s=l:o=l+1}return o}return function(e,r,n,i){for(var a=e.length,o=[],s=0;s&lt;a;++s){var l=e[s];if(2===l.length){var c=(i[l[0]]&lt;&lt;0)+(i[l[1]]&lt;&lt;1);if(0===c||3===c)continue;switch(c){case 0:break;case 1:o.push([t(n,r,l[0],l[1])]);break;case 2:o.push([t(n,r,l[1],l[0])])}}}return o}},function(){function t(t,e,r,n){for(var i=0|Math.min(r,n),a=0|Math.max(r,n),o=t[2*i],s=t[2*i+1];o&lt;s;){var l=o+s&gt;&gt;1,c=e[2*l+1];if(c===a)return l;a&lt;c?s=l:o=l+1}return o}return function(e,r,n,i){for(var a=e.length,o=[],s=0;s&lt;a;++s){var l=e[s],c=l.length;if(3===c){if(0===(u=(i[l[0]]&lt;&lt;0)+(i[l[1]]&lt;&lt;1)+(i[l[2]]&lt;&lt;2))||7===u)continue;switch(u){case 0:break;case 1:o.push([t(n,r,l[0],l[2]),t(n,r,l[0],l[1])]);break;case 2:o.push([t(n,r,l[1],l[0]),t(n,r,l[1],l[2])]);break;case 3:o.push([t(n,r,l[0],l[2]),t(n,r,l[1],l[2])]);break;case 4:o.push([t(n,r,l[2],l[1]),t(n,r,l[2],l[0])]);break;case 5:o.push([t(n,r,l[2],l[1]),t(n,r,l[0],l[1])]);break;case 6:o.push([t(n,r,l[1],l[0]),t(n,r,l[2],l[0])])}}else if(2===c){var u;if(0===(u=(i[l[0]]&lt;&lt;0)+(i[l[1]]&lt;&lt;1))||3===u)continue;switch(u){case 0:break;case 1:o.push([t(n,r,l[0],l[1])]);break;case 2:o.push([t(n,r,l[1],l[0])])}}}return o}},function(){function t(t,e,r,n){for(var i=0|Math.min(r,n),a=0|Math.max(r,n),o=t[2*i],s=t[2*i+1];o&lt;s;){var l=o+s&gt;&gt;1,c=e[2*l+1];if(c===a)return l;a&lt;c?s=l:o=l+1}return o}return function(e,r,n,i){for(var a=e.length,o=[],s=0;s&lt;a;++s){var l=e[s],c=l.length;if(4===c){if(0===(u=(i[l[0]]&lt;&lt;0)+(i[l[1]]&lt;&lt;1)+(i[l[2]]&lt;&lt;2)+(i[l[3]]&lt;&lt;3))||15===u)continue;switch(u){case 0:break;case 1:o.push([t(n,r,l[0],l[1]),t(n,r,l[0],l[2]),t(n,r,l[0],l[3])]);break;case 2:o.push([t(n,r,l[1],l[2]),t(n,r,l[1],l[0]),t(n,r,l[1],l[3])]);break;case 3:o.push([t(n,r,l[1],l[2]),t(n,r,l[0],l[2]),t(n,r,l[0],l[3])],[t(n,r,l[1],l[3]),t(n,r,l[1],l[2]),t(n,r,l[0],l[3])]);break;case 4:o.push([t(n,r,l[2],l[0]),t(n,r,l[2],l[1]),t(n,r,l[2],l[3])]);break;case 5:o.push([t(n,r,l[0],l[1]),t(n,r,l[2],l[1]),t(n,r,l[0],l[3])],[t(n,r,l[2],l[1]),t(n,r,l[2],l[3]),t(n,r,l[0],l[3])]);break;case 6:o.push([t(n,r,l[2],l[0]),t(n,r,l[1],l[0]),t(n,r,l[1],l[3])],[t(n,r,l[2],l[3]),t(n,r,l[2],l[0]),t(n,r,l[1],l[3])]);break;case 7:o.push([t(n,r,l[0],l[3]),t(n,r,l[1],l[3]),t(n,r,l[2],l[3])]);break;case 8:o.push([t(n,r,l[3],l[1]),t(n,r,l[3],l[0]),t(n,r,l[3],l[2])]);break;case 9:o.push([t(n,r,l[3],l[1]),t(n,r,l[0],l[1]),t(n,r,l[0],l[2])],[t(n,r,l[3],l[2]),t(n,r,l[3],l[1]),t(n,r,l[0],l[2])]);break;case 10:o.push([t(n,r,l[1],l[0]),t(n,r,l[3],l[0]),t(n,r,l[1],l[2])],[t(n,r,l[3],l[0]),t(n,r,l[3],l[2]),t(n,r,l[1],l[2])]);break;case 11:o.push([t(n,r,l[1],l[2]),t(n,r,l[0],l[2]),t(n,r,l[3],l[2])]);break;case 12:o.push([t(n,r,l[3],l[0]),t(n,r,l[2],l[0]),t(n,r,l[2],l[1])],[t(n,r,l[3],l[1]),t(n,r,l[3],l[0]),t(n,r,l[2],l[1])]);break;case 13:o.push([t(n,r,l[0],l[1]),t(n,r,l[2],l[1]),t(n,r,l[3],l[1])]);break;case 14:o.push([t(n,r,l[2],l[0]),t(n,r,l[1],l[0]),t(n,r,l[3],l[0])])}}else if(3===c){if(0===(u=(i[l[0]]&lt;&lt;0)+(i[l[1]]&lt;&lt;1)+(i[l[2]]&lt;&lt;2))||7===u)continue;switch(u){case 0:break;case 1:o.push([t(n,r,l[0],l[2]),t(n,r,l[0],l[1])]);break;case 2:o.push([t(n,r,l[1],l[0]),t(n,r,l[1],l[2])]);break;case 3:o.push([t(n,r,l[0],l[2]),t(n,r,l[1],l[2])]);break;case 4:o.push([t(n,r,l[2],l[1]),t(n,r,l[2],l[0])]);break;case 5:o.push([t(n,r,l[2],l[1]),t(n,r,l[0],l[1])]);break;case 6:o.push([t(n,r,l[1],l[0]),t(n,r,l[2],l[0])])}}else if(2===c){var u;if(0===(u=(i[l[0]]&lt;&lt;0)+(i[l[1]]&lt;&lt;1))||3===u)continue;switch(u){case 0:break;case 1:o.push([t(n,r,l[0],l[1])]);break;case 2:o.push([t(n,r,l[1],l[0])])}}}return o}}]},{}],293:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bit-twiddle&quot;),i=t(&quot;union-find&quot;);function a(t,e){var r=t.length,n=t.length-e.length,i=Math.min;if(n)return n;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return(s=t[0]+t[1]-e[0]-e[1])||i(t[0],t[1])-i(e[0],e[1]);case 3:var a=t[0]+t[1],o=e[0]+e[1];if(s=a+t[2]-(o+e[2]))return s;var s,l=i(t[0],t[1]),c=i(e[0],e[1]);return(s=i(l,t[2])-i(c,e[2]))||i(l+t[2],a)-i(c+e[2],o);default:var u=t.slice(0);u.sort();var f=e.slice(0);f.sort();for(var h=0;h&lt;r;++h)if(n=u[h]-f[h])return n;return 0}}function o(t,e){return a(t[0],e[0])}function s(t,e){if(e){for(var r=t.length,n=new Array(r),i=0;i&lt;r;++i)n[i]=[t[i],e[i]];n.sort(o);for(i=0;i&lt;r;++i)t[i]=n[i][0],e[i]=n[i][1];return t}return t.sort(a),t}function l(t){if(0===t.length)return[];for(var e=1,r=t.length,n=1;n&lt;r;++n){var i=t[n];if(a(i,t[n-1])){if(n===e){e++;continue}t[e++]=i}}return t.length=e,t}function c(t,e){for(var r=0,n=t.length-1,i=-1;r&lt;=n;){var o=r+n&gt;&gt;1,s=a(t[o],e);s&lt;=0?(0===s&amp;&amp;(i=o),r=o+1):s&gt;0&amp;&amp;(n=o-1)}return i}function u(t,e){for(var r=new Array(t.length),i=0,o=r.length;i&lt;o;++i)r[i]=[];for(var s=[],l=(i=0,e.length);i&lt;l;++i)for(var u=e[i],f=u.length,h=1,p=1&lt;&lt;f;h&lt;p;++h){s.length=n.popCount(h);for(var d=0,m=0;m&lt;f;++m)h&amp;1&lt;&lt;m&amp;&amp;(s[d++]=u[m]);var g=c(t,s);if(!(g&lt;0))for(;r[g++].push(i),!(g&gt;=t.length||0!==a(t[g],s)););}return r}function f(t,e){if(e&lt;0)return[];for(var r=[],i=(1&lt;&lt;e+1)-1,a=0;a&lt;t.length;++a)for(var o=t[a],l=i;l&lt;1&lt;&lt;o.length;l=n.nextCombination(l)){for(var c=new Array(e+1),u=0,f=0;f&lt;o.length;++f)l&amp;1&lt;&lt;f&amp;&amp;(c[u++]=o[f]);r.push(c)}return s(r)}r.dimension=function(t){for(var e=0,r=Math.max,n=0,i=t.length;n&lt;i;++n)e=r(e,t[n].length);return e-1},r.countVertices=function(t){for(var e=-1,r=Math.max,n=0,i=t.length;n&lt;i;++n)for(var a=t[n],o=0,s=a.length;o&lt;s;++o)e=r(e,a[o]);return e+1},r.cloneCells=function(t){for(var e=new Array(t.length),r=0,n=t.length;r&lt;n;++r)e[r]=t[r].slice(0);return e},r.compareCells=a,r.normalize=s,r.unique=l,r.findCell=c,r.incidence=u,r.dual=function(t,e){if(!e)return u(l(f(t,0)),t);for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=[];n=0;for(var i=t.length;n&lt;i;++n)for(var a=t[n],o=0,s=a.length;o&lt;s;++o)r[a[o]].push(n);return r},r.explode=function(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0|i.length,o=1,l=1&lt;&lt;a;o&lt;l;++o){for(var c=[],u=0;u&lt;a;++u)o&gt;&gt;&gt;u&amp;1&amp;&amp;c.push(i[u]);e.push(c)}return s(e)},r.skeleton=f,r.boundary=function(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;++a){for(var l=new Array(i.length-1),c=0,u=0;c&lt;o;++c)c!==a&amp;&amp;(l[u++]=i[c]);e.push(l)}return s(e)},r.connectedComponents=function(t,e){return e?function(t,e){for(var r=new i(e),n=0;n&lt;t.length;++n)for(var a=t[n],o=0;o&lt;a.length;++o)for(var s=o+1;s&lt;a.length;++s)r.link(a[o],a[s]);var l=[],c=r.ranks;for(n=0;n&lt;c.length;++n)c[n]=-1;for(n=0;n&lt;t.length;++n){var u=r.find(t[n][0]);c[u]&lt;0?(c[u]=l.length,l.push([t[n].slice(0)])):l[c[u]].push(t[n].slice(0))}return l}(t,e):function(t){for(var e=l(s(f(t,0))),r=new i(e.length),n=0;n&lt;t.length;++n)for(var a=t[n],o=0;o&lt;a.length;++o)for(var u=c(e,[a[o]]),h=o+1;h&lt;a.length;++h)r.link(u,c(e,[a[h]]));var p=[],d=r.ranks;for(n=0;n&lt;d.length;++n)d[n]=-1;for(n=0;n&lt;t.length;++n){var m=r.find(c(e,[t[n][0]]));d[m]&lt;0?(d[m]=p.length,p.push([t[n].slice(0)])):p[d[m]].push(t[n].slice(0))}return p}(t)}},{&quot;bit-twiddle&quot;:32,&quot;union-find&quot;:309}],294:[function(t,e,r){arguments[4][32][0].apply(r,arguments)},{dup:32}],295:[function(t,e,r){arguments[4][293][0].apply(r,arguments)},{&quot;bit-twiddle&quot;:294,dup:293,&quot;union-find&quot;:296}],296:[function(t,e,r){&quot;use strict&quot;;function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e&lt;t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n,n.prototype.length=function(){return this.roots.length},n.prototype.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},n.prototype.find=function(t){for(var e=this.roots;e[t]!==t;){var r=e[t];e[t]=e[r],t=r}return t},n.prototype.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o&lt;s?a[r]=n:s&lt;o?a[n]=r:(a[n]=r,++i[r])}}},{}],297:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){for(var a=e.length,o=t.length,s=new Array(a),l=new Array(a),c=new Array(a),u=new Array(a),f=0;f&lt;a;++f)s[f]=l[f]=-1,c[f]=1/0,u[f]=!1;for(f=0;f&lt;o;++f){var h=t[f];if(2!==h.length)throw new Error(&quot;Input must be a graph&quot;);var p=h[1],d=h[0];-1!==l[d]?l[d]=-2:l[d]=p,-1!==s[p]?s[p]=-2:s[p]=d}function m(t){if(u[t])return 1/0;var r,i,a,o,c,f=s[t],h=l[t];return f&lt;0||h&lt;0?1/0:(r=e[t],i=e[f],a=e[h],o=Math.abs(n(r,i,a)),c=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)),o/c)}function g(t,e){var r=k[t],n=k[e];k[t]=n,k[e]=r,A[r]=e,A[n]=t}function v(t){return c[k[t]]}function y(t){return 1&amp;t?t-1&gt;&gt;1:(t&gt;&gt;1)-1}function x(t){for(var e=v(t);;){var r=e,n=2*t+1,i=2*(t+1),a=t;if(n&lt;M){var o=v(n);o&lt;r&amp;&amp;(a=n,r=o)}if(i&lt;M)v(i)&lt;r&amp;&amp;(a=i);if(a===t)return t;g(t,a),t=a}}function b(t){for(var e=v(t);t&gt;0;){var r=y(t);if(r&gt;=0)if(e&lt;v(r)){g(t,r),t=r;continue}return t}}function _(){if(M&gt;0){var t=k[0];return g(0,M-1),M-=1,x(0),t}return-1}function w(t,e){var r=k[t];return c[r]===e?t:(c[r]=-1/0,b(t),_(),c[r]=e,b((M+=1)-1))}function T(t){if(!u[t]){u[t]=!0;var e=s[t],r=l[t];s[r]&gt;=0&amp;&amp;(s[r]=e),l[e]&gt;=0&amp;&amp;(l[e]=r),A[e]&gt;=0&amp;&amp;w(A[e],m(e)),A[r]&gt;=0&amp;&amp;w(A[r],m(r))}}var k=[],A=new Array(a);for(f=0;f&lt;a;++f){(c[f]=m(f))&lt;1/0?(A[f]=k.length,k.push(f)):A[f]=-1}var M=k.length;for(f=M&gt;&gt;1;f&gt;=0;--f)x(f);for(;;){var S=_();if(S&lt;0||c[S]&gt;r)break;T(S)}var E=[];for(f=0;f&lt;a;++f)u[f]||(A[f]=E.length,E.push(e[f].slice()));E.length;function L(t,e){if(t[e]&lt;0)return e;var r=e,n=e;do{var i=t[n];if(!u[n]||i&lt;0||i===n)break;if(i=t[n=i],!u[n]||i&lt;0||i===n)break;n=i,r=t[r]}while(r!==n);for(var a=e;a!==n;a=t[a])t[a]=n;return n}var C=[];return t.forEach((function(t){var e=L(s,t[0]),r=L(l,t[1]);if(e&gt;=0&amp;&amp;r&gt;=0&amp;&amp;e!==r){var n=A[e],i=A[r];n!==i&amp;&amp;C.push([n,i])}})),i.unique(i.normalize(C)),{positions:E,edges:C}};var n=t(&quot;robust-orientation&quot;),i=t(&quot;simplicial-complex&quot;)},{&quot;robust-orientation&quot;:284,&quot;simplicial-complex&quot;:295}],298:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,a,o,s;if(e[0][0]&lt;e[1][0])r=e[0],a=e[1];else{if(!(e[0][0]&gt;e[1][0]))return i(e,t);r=e[1],a=e[0]}if(t[0][0]&lt;t[1][0])o=t[0],s=t[1];else{if(!(t[0][0]&gt;t[1][0]))return-i(t,e);o=t[1],s=t[0]}var l=n(r,a,s),c=n(r,a,o);if(l&lt;0){if(c&lt;=0)return l}else if(l&gt;0){if(c&gt;=0)return l}else if(c)return c;if(l=n(s,o,a),c=n(s,o,r),l&lt;0){if(c&lt;=0)return l}else if(l&gt;0){if(c&gt;=0)return l}else if(c)return c;return a[0]-s[0]};var n=t(&quot;robust-orientation&quot;);function i(t,e){var r,i,a,o;if(e[0][0]&lt;e[1][0])r=e[0],i=e[1];else{if(!(e[0][0]&gt;e[1][0])){var s=Math.min(t[0][1],t[1][1]),l=Math.max(t[0][1],t[1][1]),c=Math.min(e[0][1],e[1][1]),u=Math.max(e[0][1],e[1][1]);return l&lt;c?l-c:s&gt;u?s-u:l-u}r=e[1],i=e[0]}t[0][1]&lt;t[1][1]?(a=t[0],o=t[1]):(a=t[1],o=t[0]);var f=n(i,r,a);return f||((f=n(i,r,o))||o-i)}},{&quot;robust-orientation&quot;:284}],299:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=2*e,n=new Array(r),a=0;a&lt;e;++a){var l=t[a],c=l[0][0]&lt;l[1][0];n[2*a]=new f(l[0][0],l,c,a),n[2*a+1]=new f(l[1][0],l,!c,a)}n.sort((function(t,e){var r=t.x-e.x;return r||((r=t.create-e.create)||Math.min(t.segment[0][1],t.segment[1][1])-Math.min(e.segment[0][1],e.segment[1][1]))}));var h=i(o),p=[],d=[],m=[];for(a=0;a&lt;r;){for(var g=n[a].x,v=[];a&lt;r;){var y=n[a];if(y.x!==g)break;a+=1,y.segment[0][0]===y.x&amp;&amp;y.segment[1][0]===y.x?y.create&amp;&amp;(y.segment[0][1]&lt;y.segment[1][1]?(v.push(new u(y.segment[0][1],y.index,!0,!0)),v.push(new u(y.segment[1][1],y.index,!1,!1))):(v.push(new u(y.segment[1][1],y.index,!0,!1)),v.push(new u(y.segment[0][1],y.index,!1,!0)))):h=y.create?h.insert(y.segment,y.index):h.remove(y.segment)}p.push(h.root),d.push(g),m.push(v)}return new s(p,d,m)};var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;functional-red-black-tree&quot;),a=t(&quot;robust-orientation&quot;),o=t(&quot;./lib/order-segments&quot;);function s(t,e,r){this.slabs=t,this.coordinates=e,this.horizontal=r}function l(t,e){return t.y-e}function c(t,e){for(var r=null;t;){var n,i,o=t.key;o[0][0]&lt;o[1][0]?(n=o[0],i=o[1]):(n=o[1],i=o[0]);var s=a(n,i,e);if(s&lt;0)t=t.left;else if(s&gt;0)if(e[0]!==o[1][0])r=t,t=t.right;else{if(l=c(t.right,e))return l;t=t.left}else{if(e[0]!==o[1][0])return t;var l;if(l=c(t.right,e))return l;t=t.left}}return r}function u(t,e,r,n){this.y=t,this.index=e,this.start=r,this.closed=n}function f(t,e,r,n){this.x=t,this.segment=e,this.create=r,this.index=n}s.prototype.castUp=function(t){var e=n.le(this.coordinates,t[0]);if(e&lt;0)return-1;this.slabs[e];var r=c(this.slabs[e],t),i=-1;if(r&amp;&amp;(i=r.value),this.coordinates[e]===t[0]){var s=null;if(r&amp;&amp;(s=r.key),e&gt;0){var u=c(this.slabs[e-1],t);u&amp;&amp;(s?o(u.key,s)&gt;0&amp;&amp;(s=u.key,i=u.value):(i=u.value,s=u.key))}var f=this.horizontal[e];if(f.length&gt;0){var h=n.ge(f,t[1],l);if(h&lt;f.length){var p=f[h];if(t[1]===p.y){if(p.closed)return p.index;for(;h&lt;f.length-1&amp;&amp;f[h+1].y===t[1];)if((p=f[h+=1]).closed)return p.index;if(p.y===t[1]&amp;&amp;!p.start){if((h+=1)&gt;=f.length)return i;p=f[h]}}if(p.start)if(s){var d=a(s[0],s[1],[t[0],p.y]);s[0][0]&gt;s[1][0]&amp;&amp;(d=-d),d&gt;0&amp;&amp;(i=p.index)}else i=p.index;else p.y!==t[1]&amp;&amp;(i=p.index)}}}return i}},{&quot;./lib/order-segments&quot;:298,&quot;binary-search-bounds&quot;:31,&quot;functional-red-black-tree&quot;:69,&quot;robust-orientation&quot;:284}],300:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-dot-product&quot;),i=t(&quot;robust-sum&quot;);function a(t,e){var r=i(n(t,e),[e[e.length-1]]);return r[r.length-1]}function o(t,e,r,n){var i=-e/(n-e);i&lt;0?i=0:i&gt;1&amp;&amp;(i=1);for(var a=1-i,o=t.length,s=new Array(o),l=0;l&lt;o;++l)s[l]=i*t[l]+a*r[l];return s}e.exports=function(t,e){for(var r=[],n=[],i=a(t[t.length-1],e),s=t[t.length-1],l=t[0],c=0;c&lt;t.length;++c,s=l){var u=a(l=t[c],e);if(i&lt;0&amp;&amp;u&gt;0||i&gt;0&amp;&amp;u&lt;0){var f=o(s,u,l,i);r.push(f),n.push(f.slice())}u&lt;0?n.push(l.slice()):u&gt;0?r.push(l.slice()):(r.push(l.slice()),n.push(l.slice())),i=u}return{positive:r,negative:n}},e.exports.positive=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l&lt;t.length;++l,i=s){var c=a(s=t[l],e);(n&lt;0&amp;&amp;c&gt;0||n&gt;0&amp;&amp;c&lt;0)&amp;&amp;r.push(o(i,c,s,n)),c&gt;=0&amp;&amp;r.push(s.slice()),n=c}return r},e.exports.negative=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l&lt;t.length;++l,i=s){var c=a(s=t[l],e);(n&lt;0&amp;&amp;c&gt;0||n&gt;0&amp;&amp;c&lt;0)&amp;&amp;r.push(o(i,c,s,n)),c&lt;=0&amp;&amp;r.push(s.slice()),n=c}return r}},{&quot;robust-dot-product&quot;:281,&quot;robust-sum&quot;:289}],301:[function(t,e,r){!function(){&quot;use strict&quot;;var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(t){return i(o(t),arguments)}function n(t,r){return e.apply(null,[t].concat(r||[]))}function i(r,n){var i,a,o,s,l,c,u,f,h,p=1,d=r.length,m=&quot;&quot;;for(a=0;a&lt;d;a++)if(&quot;string&quot;==typeof r[a])m+=r[a];else if(&quot;object&quot;==typeof r[a]){if((s=r[a]).keys)for(i=n[p],o=0;o&lt;s.keys.length;o++){if(null==i)throw new Error(e('[sprintf] Cannot access property &quot;%s&quot; of undefined value &quot;%s&quot;',s.keys[o],s.keys[o-1]));i=i[s.keys[o]]}else i=s.param_no?n[s.param_no]:n[p++];if(t.not_type.test(s.type)&amp;&amp;t.not_primitive.test(s.type)&amp;&amp;i instanceof Function&amp;&amp;(i=i()),t.numeric_arg.test(s.type)&amp;&amp;&quot;number&quot;!=typeof i&amp;&amp;isNaN(i))throw new TypeError(e(&quot;[sprintf] expecting number but found %T&quot;,i));switch(t.number.test(s.type)&amp;&amp;(f=i&gt;=0),s.type){case&quot;b&quot;:i=parseInt(i,10).toString(2);break;case&quot;c&quot;:i=String.fromCharCode(parseInt(i,10));break;case&quot;d&quot;:case&quot;i&quot;:i=parseInt(i,10);break;case&quot;j&quot;:i=JSON.stringify(i,null,s.width?parseInt(s.width):0);break;case&quot;e&quot;:i=s.precision?parseFloat(i).toExponential(s.precision):parseFloat(i).toExponential();break;case&quot;f&quot;:i=s.precision?parseFloat(i).toFixed(s.precision):parseFloat(i);break;case&quot;g&quot;:i=s.precision?String(Number(i.toPrecision(s.precision))):parseFloat(i);break;case&quot;o&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(8);break;case&quot;s&quot;:i=String(i),i=s.precision?i.substring(0,s.precision):i;break;case&quot;t&quot;:i=String(!!i),i=s.precision?i.substring(0,s.precision):i;break;case&quot;T&quot;:i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=s.precision?i.substring(0,s.precision):i;break;case&quot;u&quot;:i=parseInt(i,10)&gt;&gt;&gt;0;break;case&quot;v&quot;:i=i.valueOf(),i=s.precision?i.substring(0,s.precision):i;break;case&quot;x&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(16);break;case&quot;X&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(16).toUpperCase()}t.json.test(s.type)?m+=i:(!t.number.test(s.type)||f&amp;&amp;!s.sign?h=&quot;&quot;:(h=f?&quot;+&quot;:&quot;-&quot;,i=i.toString().replace(t.sign,&quot;&quot;)),c=s.pad_char?&quot;0&quot;===s.pad_char?&quot;0&quot;:s.pad_char.charAt(1):&quot; &quot;,u=s.width-(h+i).length,l=s.width&amp;&amp;u&gt;0?c.repeat(u):&quot;&quot;,m+=s.align?h+i+l:&quot;0&quot;===c?h+l+i:l+h+i)}return m}var a=Object.create(null);function o(e){if(a[e])return a[e];for(var r,n=e,i=[],o=0;n;){if(null!==(r=t.text.exec(n)))i.push(r[0]);else if(null!==(r=t.modulo.exec(n)))i.push(&quot;%&quot;);else{if(null===(r=t.placeholder.exec(n)))throw new SyntaxError(&quot;[sprintf] unexpected placeholder&quot;);if(r[2]){o|=1;var s=[],l=r[2],c=[];if(null===(c=t.key.exec(l)))throw new SyntaxError(&quot;[sprintf] failed to parse named argument key&quot;);for(s.push(c[1]);&quot;&quot;!==(l=l.substring(c[0].length));)if(null!==(c=t.key_access.exec(l)))s.push(c[1]);else{if(null===(c=t.index_access.exec(l)))throw new SyntaxError(&quot;[sprintf] failed to parse named argument key&quot;);s.push(c[1])}r[2]=s}else o|=2;if(3===o)throw new Error(&quot;[sprintf] mixing positional and named placeholders is not (yet) supported&quot;);i.push({placeholder:r[0],param_no:r[1],keys:r[2],sign:r[3],pad_char:r[4],align:r[5],width:r[6],precision:r[7],type:r[8]})}n=n.substring(r[0].length)}return a[e]=i}void 0!==r&amp;&amp;(r.sprintf=e,r.vsprintf=n),&quot;undefined&quot;!=typeof window&amp;&amp;(window.sprintf=e,window.vsprintf=n)}()},{}],302:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(t.dimension&lt;=0)return{positions:[],cells:[]};if(1===t.dimension)return function(t,e){for(var r=i(t,e),n=r.length,a=new Array(n),o=new Array(n),s=0;s&lt;n;++s)a[s]=[r[s]],o[s]=[s];return{positions:a,cells:o}}(t,e);var r=t.order.join()+&quot;-&quot;+t.dtype,s=o[r];e=+e||0;s||(s=o[r]=function(t,e){var r=t.length+&quot;d&quot;,i=a[r];if(i)return i(n,t,e)}(t.order,t.dtype));return s(t,e)};var n=t(&quot;ndarray-extract-contour&quot;),i=t(&quot;zero-crossings&quot;),a={&quot;2d&quot;:function(t,e,r){var n=t({order:e,scalarArguments:3,getters:&quot;generic&quot;===r?[0]:void 0,phase:function(t,e,r,n){return t&gt;n|0},vertex:function(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=(o&lt;&lt;0)+(s&lt;&lt;1)+(l&lt;&lt;2)+(c&lt;&lt;3)|0;if(0!==p&amp;&amp;15!==p)switch(p){case 0:u.push([t-.5,e-.5]);break;case 1:u.push([t-.25-.25*(n+r-2*h)/(r-n),e-.25-.25*(i+r-2*h)/(r-i)]);break;case 2:u.push([t-.75-.25*(-n-r+2*h)/(n-r),e-.25-.25*(a+n-2*h)/(n-a)]);break;case 3:u.push([t-.5,e-.5-.5*(i+r+a+n-4*h)/(r-i+n-a)]);break;case 4:u.push([t-.25-.25*(a+i-2*h)/(i-a),e-.75-.25*(-i-r+2*h)/(i-r)]);break;case 5:u.push([t-.5-.5*(n+r+a+i-4*h)/(r-n+i-a),e-.5]);break;case 6:u.push([t-.5-.25*(-n-r+a+i)/(n-r+i-a),e-.5-.25*(-i-r+a+n)/(i-r+n-a)]);break;case 7:u.push([t-.75-.25*(a+i-2*h)/(i-a),e-.75-.25*(a+n-2*h)/(n-a)]);break;case 8:u.push([t-.75-.25*(-a-i+2*h)/(a-i),e-.75-.25*(-a-n+2*h)/(a-n)]);break;case 9:u.push([t-.5-.25*(n+r+-a-i)/(r-n+a-i),e-.5-.25*(i+r+-a-n)/(r-i+a-n)]);break;case 10:u.push([t-.5-.5*(-n-r-a-i+4*h)/(n-r+a-i),e-.5]);break;case 11:u.push([t-.25-.25*(-a-i+2*h)/(a-i),e-.75-.25*(i+r-2*h)/(r-i)]);break;case 12:u.push([t-.5,e-.5-.5*(-i-r-a-n+4*h)/(i-r+a-n)]);break;case 13:u.push([t-.75-.25*(n+r-2*h)/(r-n),e-.25-.25*(-a-n+2*h)/(a-n)]);break;case 14:u.push([t-.25-.25*(-n-r+2*h)/(n-r),e-.25-.25*(-i-r+2*h)/(i-r)]);break;case 15:u.push([t-.5,e-.5])}},cell:function(t,e,r,n,i,a,o,s,l){i?s.push([t,e]):s.push([e,t])}});return function(t,e){var r=[],i=[];return n(t,r,i,e),{positions:r,cells:i}}}};var o={}},{&quot;ndarray-extract-contour&quot;:251,&quot;zero-crossings&quot;:318}],303:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;e.exports=function t(e,r,i){i=i||{};var o=a[e];o||(o=a[e]={&quot; &quot;:{data:new Float32Array(0),shape:.2}});var s=o[r];if(!s)if(r.length&lt;=1||!/\d/.test(r))s=o[r]=function(t){for(var e=t.cells,r=t.positions,n=new Float32Array(6*e.length),i=0,a=0,o=0;o&lt;e.length;++o)for(var s=e[o],l=0;l&lt;3;++l){var c=r[s[l]];n[i++]=c[0],n[i++]=c[1]+1.4,a=Math.max(c[0],a)}return{data:n,shape:a}}(n(r,{triangles:!0,font:e,textAlign:i.textAlign||&quot;left&quot;,textBaseline:&quot;alphabetic&quot;,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}}));else{for(var l=r.split(/(\d|\s)/),c=new Array(l.length),u=0,f=0,h=0;h&lt;l.length;++h)c[h]=t(e,l[h]),u+=c[h].data.length,f+=c[h].shape,h&gt;0&amp;&amp;(f+=.02);var p=new Float32Array(u),d=0,m=-.5*f;for(h=0;h&lt;c.length;++h){for(var g=c[h].data,v=0;v&lt;g.length;v+=2)p[d++]=g[v]+m,p[d++]=g[v+1];m+=c[h].shape+.02}s=o[r]={data:p,shape:f}}return s};var n=t(&quot;vectorize-text&quot;),i=window||r.global||{},a=i.__TEXT_CACHE||{};i.__TEXT_CACHE={}}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:5,&quot;vectorize-text&quot;:311}],304:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-unit&quot;);e.exports=a;function i(t,e){var r=n(getComputedStyle(t).getPropertyValue(e));return r[0]*a(r[1],t)}function a(t,e){switch(e=e||document.body,t=(t||&quot;px&quot;).trim().toLowerCase(),e!==window&amp;&amp;e!==document||(e=document.body),t){case&quot;%&quot;:return e.clientHeight/100;case&quot;ch&quot;:case&quot;ex&quot;:return function(t,e){var r=document.createElement(&quot;div&quot;);r.style[&quot;font-size&quot;]=&quot;128&quot;+t,e.appendChild(r);var n=i(r,&quot;font-size&quot;)/128;return e.removeChild(r),n}(t,e);case&quot;em&quot;:return i(e,&quot;font-size&quot;);case&quot;rem&quot;:return i(document.body,&quot;font-size&quot;);case&quot;vw&quot;:return window.innerWidth/100;case&quot;vh&quot;:return window.innerHeight/100;case&quot;vmin&quot;:return Math.min(window.innerWidth,window.innerHeight)/100;case&quot;vmax&quot;:return Math.max(window.innerWidth,window.innerHeight)/100;case&quot;in&quot;:return 96;case&quot;cm&quot;:return 96/2.54;case&quot;mm&quot;:return 96/25.4;case&quot;pt&quot;:return 96/72;case&quot;pc&quot;:return 16}return 1}},{&quot;parse-unit&quot;:265}],305:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.up||[0,1,0],n=t.right||f(r),i=t.radius||1,a=t.theta||0,u=t.phi||0;if(e=[].slice.call(e,0,3),r=[].slice.call(r,0,3),s(r,r),n=[].slice.call(n,0,3),s(n,n),&quot;eye&quot;in t){var p=t.eye,d=[p[0]-e[0],p[1]-e[1],p[2]-e[2]];o(n,d,r),c(n[0],n[1],n[2])&lt;1e-6?n=f(r):s(n,n),i=c(d[0],d[1],d[2]);var m=l(r,d)/i,g=l(n,d)/i;u=Math.acos(m),a=Math.acos(g)}return i=Math.log(i),new h(t.zoomMin,t.zoomMax,e,r,n,i,a,u)};var n=t(&quot;filtered-vector&quot;),i=t(&quot;gl-mat4/invert&quot;),a=t(&quot;gl-mat4/rotate&quot;),o=t(&quot;gl-vec3/cross&quot;),s=t(&quot;gl-vec3/normalize&quot;),l=t(&quot;gl-vec3/dot&quot;);function c(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function u(t){return Math.min(1,Math.max(-1,t))}function f(t){var e=Math.abs(t[0]),r=Math.abs(t[1]),n=Math.abs(t[2]),i=[0,0,0];e&gt;Math.max(r,n)?i[2]=1:r&gt;Math.max(e,n)?i[0]=1:i[1]=1;for(var a=0,o=0,l=0;l&lt;3;++l)a+=t[l]*t[l],o+=i[l]*t[l];for(l=0;l&lt;3;++l)i[l]-=o/a*t[l];return s(i,i),i}function h(t,e,r,i,a,o,s,l){this.center=n(r),this.up=n(i),this.right=n(a),this.radius=n([o]),this.angle=n([s,l]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(t,e),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var c=0;c&lt;16;++c)this.computedMatrix[c]=.5;this.recalcMatrix(0)}var p=h.prototype;p.setDistanceLimits=function(t,e){t=t&gt;0?Math.log(t):-1/0,e=e&gt;0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},p.getDistanceLimits=function(t){var e=this.radius.bounds[0];return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},p.recalcMatrix=function(t){this.center.curve(t),this.up.curve(t),this.right.curve(t),this.radius.curve(t),this.angle.curve(t);for(var e=this.computedUp,r=this.computedRight,n=0,i=0,a=0;a&lt;3;++a)i+=e[a]*r[a],n+=e[a]*e[a];var l=Math.sqrt(n),u=0;for(a=0;a&lt;3;++a)r[a]-=e[a]*i/n,u+=r[a]*r[a],e[a]/=l;var f=Math.sqrt(u);for(a=0;a&lt;3;++a)r[a]/=f;var h=this.computedToward;o(h,e,r),s(h,h);var p=Math.exp(this.computedRadius[0]),d=this.computedAngle[0],m=this.computedAngle[1],g=Math.cos(d),v=Math.sin(d),y=Math.cos(m),x=Math.sin(m),b=this.computedCenter,_=g*y,w=v*y,T=x,k=-g*x,A=-v*x,M=y,S=this.computedEye,E=this.computedMatrix;for(a=0;a&lt;3;++a){var L=_*r[a]+w*h[a]+T*e[a];E[4*a+1]=k*r[a]+A*h[a]+M*e[a],E[4*a+2]=L,E[4*a+3]=0}var C=E[1],P=E[5],I=E[9],O=E[2],z=E[6],D=E[10],R=P*D-I*z,F=I*O-C*D,B=C*z-P*O,N=c(R,F,B);R/=N,F/=N,B/=N,E[0]=R,E[4]=F,E[8]=B;for(a=0;a&lt;3;++a)S[a]=b[a]+E[2+4*a]*p;for(a=0;a&lt;3;++a){u=0;for(var j=0;j&lt;3;++j)u+=E[a+4*j]*S[j];E[12+a]=-u}E[15]=1},p.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n&lt;16;++n)e[n]=r[n];return e}return r};var d=[0,0,0];p.rotate=function(t,e,r,n){if(this.angle.move(t,e,r),n){this.recalcMatrix(t);var i=this.computedMatrix;d[0]=i[2],d[1]=i[6],d[2]=i[10];for(var o=this.computedUp,s=this.computedRight,l=this.computedToward,c=0;c&lt;3;++c)i[4*c]=o[c],i[4*c+1]=s[c],i[4*c+2]=l[c];a(i,i,n,d);for(c=0;c&lt;3;++c)o[c]=i[4*c],s[c]=i[4*c+1];this.up.set(t,o[0],o[1],o[2]),this.right.set(t,s[0],s[1],s[2])}},p.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=(Math.exp(this.computedRadius[0]),i[1]),o=i[5],s=i[9],l=c(a,o,s);a/=l,o/=l,s/=l;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=c(u-=a*p,f-=o*p,h-=s*p),m=(u/=d)*e+a*r,g=(f/=d)*e+o*r,v=(h/=d)*e+s*r;this.center.move(t,m,g,v);var y=Math.exp(this.computedRadius[0]);y=Math.max(1e-4,y+n),this.radius.set(t,Math.log(y))},p.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},p.setMatrix=function(t,e,r,n){var a=1;&quot;number&quot;==typeof r&amp;&amp;(a=0|r),(a&lt;0||a&gt;3)&amp;&amp;(a=1);var o=(a+2)%3;e||(this.recalcMatrix(t),e=this.computedMatrix);var s=e[a],l=e[a+4],f=e[a+8];if(n){var h=Math.abs(s),p=Math.abs(l),d=Math.abs(f),m=Math.max(h,p,d);h===m?(s=s&lt;0?-1:1,l=f=0):d===m?(f=f&lt;0?-1:1,s=l=0):(l=l&lt;0?-1:1,s=f=0)}else{var g=c(s,l,f);s/=g,l/=g,f/=g}var v,y,x=e[o],b=e[o+4],_=e[o+8],w=x*s+b*l+_*f,T=c(x-=s*w,b-=l*w,_-=f*w),k=l*(_/=T)-f*(b/=T),A=f*(x/=T)-s*_,M=s*b-l*x,S=c(k,A,M);if(k/=S,A/=S,M/=S,this.center.jump(t,q,G,Y),this.radius.idle(t),this.up.jump(t,s,l,f),this.right.jump(t,x,b,_),2===a){var E=e[1],L=e[5],C=e[9],P=E*x+L*b+C*_,I=E*k+L*A+C*M;v=R&lt;0?-Math.PI/2:Math.PI/2,y=Math.atan2(I,P)}else{var O=e[2],z=e[6],D=e[10],R=O*s+z*l+D*f,F=O*x+z*b+D*_,B=O*k+z*A+D*M;v=Math.asin(u(R)),y=Math.atan2(B,F)}this.angle.jump(t,y,v),this.recalcMatrix(t);var N=e[2],j=e[6],U=e[10],V=this.computedMatrix;i(V,e);var H=V[15],q=V[12]/H,G=V[13]/H,Y=V[14]/H,W=Math.exp(this.computedRadius[0]);this.center.jump(t,q-N*W,G-j*W,Y-U*W)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(t){this.center.idle(t),this.up.idle(t),this.right.idle(t),this.radius.idle(t),this.angle.idle(t)},p.flush=function(t){this.center.flush(t),this.up.flush(t),this.right.flush(t),this.radius.flush(t),this.angle.flush(t)},p.setDistance=function(t,e){e&gt;0&amp;&amp;this.radius.set(t,Math.log(e))},p.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||this.computedCenter;var i=(n=n||this.computedUp)[0],a=n[1],o=n[2],s=c(i,a,o);if(!(s&lt;1e-6)){i/=s,a/=s,o/=s;var l=e[0]-r[0],f=e[1]-r[1],h=e[2]-r[2],p=c(l,f,h);if(!(p&lt;1e-6)){l/=p,f/=p,h/=p;var d=this.computedRight,m=d[0],g=d[1],v=d[2],y=i*m+a*g+o*v,x=c(m-=y*i,g-=y*a,v-=y*o);if(!(x&lt;.01&amp;&amp;(x=c(m=a*h-o*f,g=o*l-i*h,v=i*f-a*l))&lt;1e-6)){m/=x,g/=x,v/=x,this.up.set(t,i,a,o),this.right.set(t,m,g,v),this.center.set(t,r[0],r[1],r[2]),this.radius.set(t,Math.log(p));var b=a*v-o*g,_=o*m-i*v,w=i*g-a*m,T=c(b,_,w),k=i*l+a*f+o*h,A=m*l+g*f+v*h,M=(b/=T)*l+(_/=T)*f+(w/=T)*h,S=Math.asin(u(k)),E=Math.atan2(M,A),L=this.angle._state,C=L[L.length-1],P=L[L.length-2];C%=2*Math.PI;var I=Math.abs(C+2*Math.PI-E),O=Math.abs(C-E),z=Math.abs(C-2*Math.PI-E);I&lt;O&amp;&amp;(C+=2*Math.PI),z&lt;O&amp;&amp;(C-=2*Math.PI),this.angle.jump(this.angle.lastT(),C,P),this.angle.set(t,E,S)}}}}},{&quot;filtered-vector&quot;:68,&quot;gl-mat4/invert&quot;:98,&quot;gl-mat4/rotate&quot;:103,&quot;gl-vec3/cross&quot;:157,&quot;gl-vec3/dot&quot;:162,&quot;gl-vec3/normalize&quot;:179}],306:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var i=t*e,a=n*t,o=a-(a-t),s=t-o,l=n*e,c=l-(l-e),u=e-c,f=s*u-(i-o*c-s*c-o*u);if(r)return r[0]=f,r[1]=i,r;return[f,i]};var n=+(Math.pow(2,27)+1)},{}],307:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n=t+e,i=n-t,a=e-i,o=t-(n-i);if(r)return r[0]=o+a,r[1]=n,r;return[o+a,n]}},{}],308:[function(t,e,r){(function(e){(function(){&quot;use strict&quot;;var n=t(&quot;bit-twiddle&quot;),i=t(&quot;dup&quot;),a=t(&quot;buffer&quot;).Buffer;e.__TYPEDARRAY_POOL||(e.__TYPEDARRAY_POOL={UINT8:i([32,0]),UINT16:i([32,0]),UINT32:i([32,0]),BIGUINT64:i([32,0]),INT8:i([32,0]),INT16:i([32,0]),INT32:i([32,0]),BIGINT64:i([32,0]),FLOAT:i([32,0]),DOUBLE:i([32,0]),DATA:i([32,0]),UINT8C:i([32,0]),BUFFER:i([32,0])});var o=&quot;undefined&quot;!=typeof Uint8ClampedArray,s=&quot;undefined&quot;!=typeof BigUint64Array,l=&quot;undefined&quot;!=typeof BigInt64Array,c=e.__TYPEDARRAY_POOL;c.UINT8C||(c.UINT8C=i([32,0])),c.BIGUINT64||(c.BIGUINT64=i([32,0])),c.BIGINT64||(c.BIGINT64=i([32,0])),c.BUFFER||(c.BUFFER=i([32,0]));var u=c.DATA,f=c.BUFFER;function h(t){if(t){var e=t.length||t.byteLength,r=n.log2(e);u[r].push(t)}}function p(t){t=n.nextPow2(t);var e=n.log2(t),r=u[e];return r.length&gt;0?r.pop():new ArrayBuffer(t)}function d(t){return new Uint8Array(p(t),0,t)}function m(t){return new Uint16Array(p(2*t),0,t)}function g(t){return new Uint32Array(p(4*t),0,t)}function v(t){return new Int8Array(p(t),0,t)}function y(t){return new Int16Array(p(2*t),0,t)}function x(t){return new Int32Array(p(4*t),0,t)}function b(t){return new Float32Array(p(4*t),0,t)}function _(t){return new Float64Array(p(8*t),0,t)}function w(t){return o?new Uint8ClampedArray(p(t),0,t):d(t)}function T(t){return s?new BigUint64Array(p(8*t),0,t):null}function k(t){return l?new BigInt64Array(p(8*t),0,t):null}function A(t){return new DataView(p(t),0,t)}function M(t){t=n.nextPow2(t);var e=n.log2(t),r=f[e];return r.length&gt;0?r.pop():new a(t)}r.free=function(t){if(a.isBuffer(t))f[n.log2(t.length)].push(t);else{if(&quot;[object ArrayBuffer]&quot;!==Object.prototype.toString.call(t)&amp;&amp;(t=t.buffer),!t)return;var e=t.length||t.byteLength,r=0|n.log2(e);u[r].push(t)}},r.freeUint8=r.freeUint16=r.freeUint32=r.freeBigUint64=r.freeInt8=r.freeInt16=r.freeInt32=r.freeBigInt64=r.freeFloat32=r.freeFloat=r.freeFloat64=r.freeDouble=r.freeUint8Clamped=r.freeDataView=function(t){h(t.buffer)},r.freeArrayBuffer=h,r.freeBuffer=function(t){f[n.log2(t.length)].push(t)},r.malloc=function(t,e){if(void 0===e||&quot;arraybuffer&quot;===e)return p(t);switch(e){case&quot;uint8&quot;:return d(t);case&quot;uint16&quot;:return m(t);case&quot;uint32&quot;:return g(t);case&quot;int8&quot;:return v(t);case&quot;int16&quot;:return y(t);case&quot;int32&quot;:return x(t);case&quot;float&quot;:case&quot;float32&quot;:return b(t);case&quot;double&quot;:case&quot;float64&quot;:return _(t);case&quot;uint8_clamped&quot;:return w(t);case&quot;bigint64&quot;:return k(t);case&quot;biguint64&quot;:return T(t);case&quot;buffer&quot;:return M(t);case&quot;data&quot;:case&quot;dataview&quot;:return A(t);default:return null}return null},r.mallocArrayBuffer=p,r.mallocUint8=d,r.mallocUint16=m,r.mallocUint32=g,r.mallocInt8=v,r.mallocInt16=y,r.mallocInt32=x,r.mallocFloat32=r.mallocFloat=b,r.mallocFloat64=r.mallocDouble=_,r.mallocUint8Clamped=w,r.mallocBigUint64=T,r.mallocBigInt64=k,r.mallocDataView=A,r.mallocBuffer=M,r.clearCache=function(){for(var t=0;t&lt;32;++t)c.UINT8[t].length=0,c.UINT16[t].length=0,c.UINT32[t].length=0,c.INT8[t].length=0,c.INT16[t].length=0,c.INT32[t].length=0,c.FLOAT[t].length=0,c.DOUBLE[t].length=0,c.BIGUINT64[t].length=0,c.BIGINT64[t].length=0,c.UINT8C[t].length=0,u[t].length=0,f[t].length=0}}).call(this)}).call(this,void 0!==n?n:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;bit-twiddle&quot;:32,buffer:3,dup:65}],309:[function(t,e,r){&quot;use strict&quot;;function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e&lt;t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n;var i=n.prototype;Object.defineProperty(i,&quot;length&quot;,{get:function(){return this.roots.length}}),i.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},i.find=function(t){for(var e=t,r=this.roots;r[t]!==t;)t=r[t];for(;r[e]!==t;){var n=r[e];r[e]=t,e=n}return t},i.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o&lt;s?a[r]=n:s&lt;o?a[n]=r:(a[n]=r,++i[r])}}},{}],310:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return 0===t.length?t:e?(r||t.sort(e),function(t,e){for(var r=1,n=t.length,i=t[0],a=t[0],o=1;o&lt;n;++o)if(a=i,e(i=t[o],a)){if(o===r){r++;continue}t[r++]=i}return t.length=r,t}(t,e)):(r||t.sort(),function(t){for(var e=1,r=t.length,n=t[0],i=t[0],a=1;a&lt;r;++a,i=n)if(i=n,(n=t[a])!==i){if(a===e){e++;continue}t[e++]=n}return t.length=e,t}(t))}},{}],311:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){&quot;object&quot;==typeof e&amp;&amp;null!==e||(e={});return n(t,e.canvas||i,e.context||a,e)};var n=t(&quot;./lib/vtext&quot;),i=null,a=null;&quot;undefined&quot;!=typeof document&amp;&amp;((i=document.createElement(&quot;canvas&quot;)).width=8192,i.height=1024,a=i.getContext(&quot;2d&quot;))},{&quot;./lib/vtext&quot;:312}],312:[function(t,e,r){e.exports=function(t,e,r,n){var a=64,o=1.25,s={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};n&amp;&amp;(n.size&amp;&amp;n.size&gt;0&amp;&amp;(a=n.size),n.lineSpacing&amp;&amp;n.lineSpacing&gt;0&amp;&amp;(o=n.lineSpacing),n.styletags&amp;&amp;n.styletags.breaklines&amp;&amp;(s.breaklines=!!n.styletags.breaklines),n.styletags&amp;&amp;n.styletags.bolds&amp;&amp;(s.bolds=!!n.styletags.bolds),n.styletags&amp;&amp;n.styletags.italics&amp;&amp;(s.italics=!!n.styletags.italics),n.styletags&amp;&amp;n.styletags.subscripts&amp;&amp;(s.subscripts=!!n.styletags.subscripts),n.styletags&amp;&amp;n.styletags.superscripts&amp;&amp;(s.superscripts=!!n.styletags.superscripts));return r.font=[n.fontStyle,n.fontVariant,n.fontWeight,a+&quot;px&quot;,n.font].filter((function(t){return t})).join(&quot; &quot;),r.textAlign=&quot;start&quot;,r.textBaseline=&quot;alphabetic&quot;,r.direction=&quot;ltr&quot;,h(function(t,e,r,n,a,o){r=r.replace(/\n/g,&quot;&quot;),r=!0===o.breaklines?r.replace(/\&lt;br\&gt;/g,&quot;\n&quot;):r.replace(/\&lt;br\&gt;/g,&quot; &quot;);var s=&quot;&quot;,l=[];for(p=0;p&lt;r.length;++p)l[p]=s;!0===o.bolds&amp;&amp;(l=c(&quot;b&quot;,&quot;b|&quot;,r,l));!0===o.italics&amp;&amp;(l=c(&quot;i&quot;,&quot;i|&quot;,r,l));!0===o.superscripts&amp;&amp;(l=c(&quot;sup&quot;,&quot;+1&quot;,r,l));!0===o.subscripts&amp;&amp;(l=c(&quot;sub&quot;,&quot;-1&quot;,r,l));var u=[],f=&quot;&quot;;for(p=0;p&lt;r.length;++p)null!==l[p]&amp;&amp;(f+=r[p],u.push(l[p]));var h,p,d,m,g,v=f.split(&quot;\n&quot;),y=v.length,x=Math.round(a*n),b=n,_=2*n,w=0,T=y*x+_;t.height&lt;T&amp;&amp;(t.height=T);e.fillStyle=&quot;#000&quot;,e.fillRect(0,0,t.width,t.height),e.fillStyle=&quot;#fff&quot;;var k=0,A=&quot;&quot;;function M(){if(&quot;&quot;!==A){var t=e.measureText(A).width;e.fillText(A,b+d,_+m),d+=t}}function S(){return Math.round(g)+&quot;px &quot;}function E(t,r){var n=&quot;&quot;+e.font;if(!0===o.subscripts){var i=t.indexOf(&quot;-&quot;),a=r.indexOf(&quot;-&quot;),s=i&gt;-1?parseInt(t[1+i]):0,l=a&gt;-1?parseInt(r[1+a]):0;s!==l&amp;&amp;(n=n.replace(S(),&quot;?px &quot;),g*=Math.pow(.75,l-s),n=n.replace(&quot;?px &quot;,S())),m+=.25*x*(l-s)}if(!0===o.superscripts){var c=t.indexOf(&quot;+&quot;),u=r.indexOf(&quot;+&quot;),f=c&gt;-1?parseInt(t[1+c]):0,h=u&gt;-1?parseInt(r[1+u]):0;f!==h&amp;&amp;(n=n.replace(S(),&quot;?px &quot;),g*=Math.pow(.75,h-f),n=n.replace(&quot;?px &quot;,S())),m-=.25*x*(h-f)}if(!0===o.bolds){var p=t.indexOf(&quot;b|&quot;)&gt;-1,d=r.indexOf(&quot;b|&quot;)&gt;-1;!p&amp;&amp;d&amp;&amp;(n=v?n.replace(&quot;italic &quot;,&quot;italic bold &quot;):&quot;bold &quot;+n),p&amp;&amp;!d&amp;&amp;(n=n.replace(&quot;bold &quot;,&quot;&quot;))}if(!0===o.italics){var v=t.indexOf(&quot;i|&quot;)&gt;-1,y=r.indexOf(&quot;i|&quot;)&gt;-1;!v&amp;&amp;y&amp;&amp;(n=&quot;italic &quot;+n),v&amp;&amp;!y&amp;&amp;(n=n.replace(&quot;italic &quot;,&quot;&quot;))}e.font=n}for(h=0;h&lt;y;++h){var L=v[h]+&quot;\n&quot;;for(d=0,m=h*x,g=n,A=&quot;&quot;,p=0;p&lt;L.length;++p){var C=p+k&lt;u.length?u[p+k]:u[u.length-1];s===C?A+=L[p]:(M(),A=L[p],void 0!==C&amp;&amp;(E(s,C),s=C))}M(),k+=L.length;var P=0|Math.round(d+2*b);w&lt;P&amp;&amp;(w=P)}var I=w,O=_+x*y;return i(e.getImageData(0,0,I,O).data,[O,I,4]).pick(-1,-1,0).transpose(1,0)}(e,r,t,a,o,s),n,a)},e.exports.processPixels=h;var n=t(&quot;surface-nets&quot;),i=t(&quot;ndarray&quot;),a=t(&quot;simplify-planar-graph&quot;),o=t(&quot;clean-pslg&quot;),s=t(&quot;cdt2d&quot;),l=t(&quot;planar-graph-to-polyline&quot;);function c(t,e,r,n){for(var i=&quot;&lt;&quot;+t+&quot;&gt;&quot;,a=&quot;&lt;/&quot;+t+&quot;&gt;&quot;,o=i.length,s=a.length,l=&quot;+&quot;===e[0]||&quot;-&quot;===e[0],c=0,u=-s;c&gt;-1&amp;&amp;-1!==(c=r.indexOf(i,c))&amp;&amp;-1!==(u=r.indexOf(a,c+o))&amp;&amp;!(u&lt;=c);){for(var f=c;f&lt;u+s;++f)if(f&lt;c+o||f&gt;=u)n[f]=null,r=r.substr(0,f)+&quot; &quot;+r.substr(f+1);else if(null!==n[f]){var h=n[f].indexOf(e[0]);-1===h?n[f]+=e:l&amp;&amp;(n[f]=n[f].substr(0,h+1)+(1+parseInt(n[f][h+1]))+n[f].substr(h+2))}var p=c+o,d=r.substr(p,u-p).indexOf(i);c=-1!==d?d:u+s}return n}function u(t,e){var r=n(t,128);return e?a(r.cells,r.positions,.25):{edges:r.cells,positions:r.positions}}function f(t,e,r,n){var i=u(t,n),a=function(t,e,r){for(var n=e.textAlign||&quot;start&quot;,i=e.textBaseline||&quot;alphabetic&quot;,a=[1&lt;&lt;30,1&lt;&lt;30],o=[0,0],s=t.length,l=0;l&lt;s;++l)for(var c=t[l],u=0;u&lt;2;++u)a[u]=0|Math.min(a[u],c[u]),o[u]=0|Math.max(o[u],c[u]);var f=0;switch(n){case&quot;center&quot;:f=-.5*(a[0]+o[0]);break;case&quot;right&quot;:case&quot;end&quot;:f=-o[0];break;case&quot;left&quot;:case&quot;start&quot;:f=-a[0];break;default:throw new Error(&quot;vectorize-text: Unrecognized textAlign: '&quot;+n+&quot;'&quot;)}var h=0;switch(i){case&quot;hanging&quot;:case&quot;top&quot;:h=-a[1];break;case&quot;middle&quot;:h=-.5*(a[1]+o[1]);break;case&quot;alphabetic&quot;:case&quot;ideographic&quot;:h=-3*r;break;case&quot;bottom&quot;:h=-o[1];break;default:throw new Error(&quot;vectorize-text: Unrecoginized textBaseline: '&quot;+i+&quot;'&quot;)}var p=1/r;return&quot;lineHeight&quot;in e?p*=+e.lineHeight:&quot;width&quot;in e?p=e.width/(o[0]-a[0]):&quot;height&quot;in e&amp;&amp;(p=e.height/(o[1]-a[1])),t.map((function(t){return[p*(t[0]+f),p*(t[1]+h)]}))}(i.positions,e,r),c=i.edges,f=&quot;ccw&quot;===e.orientation;if(o(a,c),e.polygons||e.polygon||e.polyline){for(var h=l(c,a),p=new Array(h.length),d=0;d&lt;h.length;++d){for(var m=h[d],g=new Array(m.length),v=0;v&lt;m.length;++v){for(var y=m[v],x=new Array(y.length),b=0;b&lt;y.length;++b)x[b]=a[y[b]].slice();f&amp;&amp;x.reverse(),g[v]=x}p[d]=g}return p}return e.triangles||e.triangulate||e.triangle?{cells:s(a,c,{delaunay:!1,exterior:!1,interior:!0}),positions:a}:{edges:c,positions:a}}function h(t,e,r){try{return f(t,e,r,!0)}catch(t){}try{return f(t,e,r,!1)}catch(t){}return e.polygons||e.polyline||e.polygon?[]:e.triangles||e.triangulate||e.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}},{cdt2d:42,&quot;clean-pslg&quot;:50,ndarray:259,&quot;planar-graph-to-polyline&quot;:268,&quot;simplify-planar-graph&quot;:297,&quot;surface-nets&quot;:302}],313:[function(t,e,r){!function(){&quot;use strict&quot;;if(&quot;undefined&quot;==typeof ses||!ses.ok||ses.ok()){&quot;undefined&quot;!=typeof ses&amp;&amp;(ses.weakMapPermitHostObjects=m);var t=!1;if(&quot;function&quot;==typeof WeakMap){var r=WeakMap;if(&quot;undefined&quot;!=typeof navigator&amp;&amp;/Firefox/.test(navigator.userAgent));else{var n=new r,i=Object.freeze({});if(n.set(i,1),1===n.get(i))return void(e.exports=WeakMap);t=!0}}Object.prototype.hasOwnProperty;var a=Object.getOwnPropertyNames,o=Object.defineProperty,s=Object.isExtensible,l=&quot;weakmap:ident:&quot;+Math.random()+&quot;___&quot;;if(&quot;undefined&quot;!=typeof crypto&amp;&amp;&quot;function&quot;==typeof crypto.getRandomValues&amp;&amp;&quot;function&quot;==typeof ArrayBuffer&amp;&amp;&quot;function&quot;==typeof Uint8Array){var c=new ArrayBuffer(25),u=new Uint8Array(c);crypto.getRandomValues(u),l=&quot;weakmap:rand:&quot;+Array.prototype.map.call(u,(function(t){return(t%36).toString(36)})).join(&quot;&quot;)+&quot;___&quot;}if(o(Object,&quot;getOwnPropertyNames&quot;,{value:function(t){return a(t).filter(g)}}),&quot;getPropertyNames&quot;in Object){var f=Object.getPropertyNames;o(Object,&quot;getPropertyNames&quot;,{value:function(t){return f(t).filter(g)}})}!function(){var t=Object.freeze;o(Object,&quot;freeze&quot;,{value:function(e){return v(e),t(e)}});var e=Object.seal;o(Object,&quot;seal&quot;,{value:function(t){return v(t),e(t)}});var r=Object.preventExtensions;o(Object,&quot;preventExtensions&quot;,{value:function(t){return v(t),r(t)}})}();var h=!1,p=0,d=function(){this instanceof d||x();var t=[],e=[],r=p++;return Object.create(d.prototype,{get___:{value:y((function(n,i){var a,o=v(n);return o?r in o?o[r]:i:(a=t.indexOf(n))&gt;=0?e[a]:i}))},has___:{value:y((function(e){var n=v(e);return n?r in n:t.indexOf(e)&gt;=0}))},set___:{value:y((function(n,i){var a,o=v(n);return o?o[r]=i:(a=t.indexOf(n))&gt;=0?e[a]=i:(a=t.length,e[a]=i,t[a]=n),this}))},delete___:{value:y((function(n){var i,a,o=v(n);return o?r in o&amp;&amp;delete o[r]:!((i=t.indexOf(n))&lt;0)&amp;&amp;(a=t.length-1,t[i]=void 0,e[i]=e[a],t[i]=t[a],t.length=a,e.length=a,!0)}))}})};d.prototype=Object.create(Object.prototype,{get:{value:function(t,e){return this.get___(t,e)},writable:!0,configurable:!0},has:{value:function(t){return this.has___(t)},writable:!0,configurable:!0},set:{value:function(t,e){return this.set___(t,e)},writable:!0,configurable:!0},delete:{value:function(t){return this.delete___(t)},writable:!0,configurable:!0}}),&quot;function&quot;==typeof r?function(){function n(){this instanceof d||x();var e,n=new r,i=void 0,a=!1;return e=t?function(t,e){return n.set(t,e),n.has(t)||(i||(i=new d),i.set(t,e)),this}:function(t,e){if(a)try{n.set(t,e)}catch(r){i||(i=new d),i.set___(t,e)}else n.set(t,e);return this},Object.create(d.prototype,{get___:{value:y((function(t,e){return i?n.has(t)?n.get(t):i.get___(t,e):n.get(t,e)}))},has___:{value:y((function(t){return n.has(t)||!!i&amp;&amp;i.has___(t)}))},set___:{value:y(e)},delete___:{value:y((function(t){var e=!!n.delete(t);return i&amp;&amp;i.delete___(t)||e}))},permitHostObjects___:{value:y((function(t){if(t!==m)throw new Error(&quot;bogus call to permitHostObjects___&quot;);a=!0}))}})}t&amp;&amp;&quot;undefined&quot;!=typeof Proxy&amp;&amp;(Proxy=void 0),n.prototype=d.prototype,e.exports=n,Object.defineProperty(WeakMap.prototype,&quot;constructor&quot;,{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(&quot;undefined&quot;!=typeof Proxy&amp;&amp;(Proxy=void 0),e.exports=d)}function m(t){t.permitHostObjects___&amp;&amp;t.permitHostObjects___(m)}function g(t){return!(&quot;weakmap:&quot;==t.substr(0,&quot;weakmap:&quot;.length)&amp;&amp;&quot;___&quot;===t.substr(t.length-3))}function v(t){if(t!==Object(t))throw new TypeError(&quot;Not an object: &quot;+t);var e=t[l];if(e&amp;&amp;e.key===t)return e;if(s(t)){e={key:t};try{return o(t,l,{value:e,writable:!1,enumerable:!1,configurable:!1}),e}catch(t){return}}}function y(t){return t.prototype=null,Object.freeze(t)}function x(){h||&quot;undefined&quot;==typeof console||(h=!0,console.warn(&quot;WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future.&quot;))}}()},{}],314:[function(t,e,r){var n=t(&quot;./hidden-store.js&quot;);e.exports=function(){var t={};return function(e){if((&quot;object&quot;!=typeof e||null===e)&amp;&amp;&quot;function&quot;!=typeof e)throw new Error(&quot;Weakmap-shim: Key must be object&quot;);var r=e.valueOf(t);return r&amp;&amp;r.identity===t?r:n(e,t)}}},{&quot;./hidden-store.js&quot;:315}],315:[function(t,e,r){e.exports=function(t,e){var r={identity:e},n=t.valueOf;return Object.defineProperty(t,&quot;valueOf&quot;,{value:function(t){return t!==e?n.apply(this,arguments):r},writable:!0}),r}},{}],316:[function(t,e,r){var n=t(&quot;./create-store.js&quot;);e.exports=function(){var t=n();return{get:function(e,r){var n=t(e);return n.hasOwnProperty(&quot;value&quot;)?n.value:r},set:function(e,r){return t(e).value=r,this},has:function(e){return&quot;value&quot;in t(e)},delete:function(e){return delete t(e).value}}}},{&quot;./create-store.js&quot;:314}],317:[function(t,e,r){&quot;use strict&quot;;var n,i=function(){return function(t,e,r,n,i,a){var o=t[0],s=r[0],l=[0],c=s;n|=0;var u=0,f=s;for(u=0;u&lt;o;++u){var h=e[n]-a,p=e[n+c]-a;h&gt;=0!=p&gt;=0&amp;&amp;i.push(l[0]+.5+.5*(h+p)/(h-p)),n+=f,++l[0]}}};e.exports=(n={funcName:{funcName:&quot;zeroCrossings&quot;}.funcName},function(t){var e={};return function(r,n,i){var a=r.dtype,o=r.order,s=[a,o.join()].join(),l=e[s];return l||(e[s]=l=t([a,o])),l(r.shape.slice(0),r.data,r.stride,0|r.offset,n,i)}}(i.bind(void 0,n)))},{}],318:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=[];return e=+e||0,n(t.hi(t.shape[0]-1),r,e),r};var n=t(&quot;./lib/zc-core&quot;)},{&quot;./lib/zc-core&quot;:317}]},{},[6])(6)}))}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{}]},{},[27])(27)}));&lt;/script&gt;                &lt;div id=&quot;c5728639-56a5-4ce2-a5a2-23e34ca5e36d&quot; class=&quot;plotly-graph-div&quot; style=&quot;height:100%; width:100%;&quot;&gt;&lt;/div&gt;            &lt;script type=&quot;text/javascript&quot;&gt;                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById(&quot;c5728639-56a5-4ce2-a5a2-23e34ca5e36d&quot;)) {                    Plotly.newPlot(                        &quot;c5728639-56a5-4ce2-a5a2-23e34ca5e36d&quot;,                        [{&quot;hovertemplate&quot;:&quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;x0=%{x}&lt;br&gt;x1=%{y}&lt;br&gt;size=%{marker.size}&lt;extra&gt;&lt;/extra&gt;&quot;,&quot;hovertext&quot;:[&quot;&quot;,&quot;[UNK]&quot;,&quot;the&quot;,&quot;to&quot;,&quot;of&quot;,&quot;a&quot;,&quot;and&quot;,&quot;in&quot;,&quot;that&quot;,&quot;on&quot;,&quot;s&quot;,&quot;for&quot;,&quot;is&quot;,&quot;he&quot;,&quot;said&quot;,&quot;it&quot;,&quot;with&quot;,&quot;trump&quot;,&quot;was&quot;,&quot;as&quot;,&quot;his&quot;,&quot;by&quot;,&quot;has&quot;,&quot;be&quot;,&quot;have&quot;,&quot;not&quot;,&quot;from&quot;,&quot;this&quot;,&quot;at&quot;,&quot;are&quot;,&quot;who&quot;,&quot;an&quot;,&quot;they&quot;,&quot;us&quot;,&quot;i&quot;,&quot;we&quot;,&quot;but&quot;,&quot;would&quot;,&quot;president&quot;,&quot;about&quot;,&quot;will&quot;,&quot;their&quot;,&quot;had&quot;,&quot;you&quot;,&quot;t&quot;,&quot;been&quot;,&quot;were&quot;,&quot;people&quot;,&quot;or&quot;,&quot;more&quot;,&quot;which&quot;,&quot;she&quot;,&quot;after&quot;,&quot;her&quot;,&quot;one&quot;,&quot;if&quot;,&quot;its&quot;,&quot;all&quot;,&quot;out&quot;,&quot;what&quot;,&quot;when&quot;,&quot;also&quot;,&quot;new&quot;,&quot;state&quot;,&quot;there&quot;,&quot;up&quot;,&quot;no&quot;,&quot;over&quot;,&quot;our&quot;,&quot;donald&quot;,&quot;can&quot;,&quot;states&quot;,&quot;house&quot;,&quot;government&quot;,&quot;clinton&quot;,&quot;him&quot;,&quot;so&quot;,&quot;just&quot;,&quot;than&quot;,&quot;other&quot;,&quot;some&quot;,&quot;obama&quot;,&quot;could&quot;,&quot;told&quot;,&quot;republican&quot;,&quot;united&quot;,&quot;into&quot;,&quot;do&quot;,&quot;like&quot;,&quot;against&quot;,&quot;because&quot;,&quot;them&quot;,&quot;white&quot;,&quot;campaign&quot;,&quot;any&quot;,&quot;last&quot;,&quot;news&quot;,&quot;time&quot;,&quot;two&quot;,&quot;now&quot;,&quot;election&quot;,&quot;how&quot;,&quot;only&quot;,&quot;party&quot;,&quot;first&quot;,&quot;even&quot;,&quot;being&quot;,&quot;should&quot;,&quot;former&quot;,&quot;year&quot;,&quot;country&quot;,&quot;while&quot;,&quot;did&quot;,&quot;before&quot;,&quot;many&quot;,&quot;years&quot;,&quot;hillary&quot;,&quot;during&quot;,&quot;most&quot;,&quot;security&quot;,&quot;may&quot;,&quot;media&quot;,&quot;say&quot;,&quot;political&quot;,&quot;national&quot;,&quot;get&quot;,&quot;those&quot;,&quot;make&quot;,&quot;law&quot;,&quot;made&quot;,&quot;court&quot;,&quot;since&quot;,&quot;where&quot;,&quot;going&quot;,&quot;police&quot;,&quot;republicans&quot;,&quot;american&quot;,&quot;very&quot;,&quot;these&quot;,&quot;under&quot;,&quot;presidential&quot;,&quot;percent&quot;,&quot;back&quot;,&quot;bill&quot;,&quot;democratic&quot;,&quot;support&quot;,&quot;administration&quot;,&quot;week&quot;,&quot;between&quot;,&quot;including&quot;,&quot;know&quot;,&quot;russia&quot;,&quot;then&quot;,&quot;think&quot;,&quot;senate&quot;,&quot;north&quot;,&quot;according&quot;,&quot;way&quot;,&quot;my&quot;,&quot;down&quot;,&quot;officials&quot;,&quot;america&quot;,&quot;take&quot;,&quot;public&quot;,&quot;such&quot;,&quot;office&quot;,&quot;re&quot;,&quot;vote&quot;,&quot;group&quot;,&quot;trumps&quot;,&quot;federal&quot;,&quot;called&quot;,&quot;million&quot;,&quot;right&quot;,&quot;military&quot;,&quot;world&quot;,&quot;foreign&quot;,&quot;statement&quot;,&quot;don&quot;,&quot;saying&quot;,&quot;want&quot;,&quot;well&quot;,&quot;washington&quot;,&quot;department&quot;,&quot;see&quot;,&quot;here&quot;,&quot;tax&quot;,&quot;much&quot;,&quot;tuesday&quot;,&quot;still&quot;,&quot;both&quot;,&quot;congress&quot;,&quot;another&quot;,&quot;says&quot;,&quot;part&quot;,&quot;minister&quot;,&quot;friday&quot;,&quot;wednesday&quot;,&quot;day&quot;,&quot;women&quot;,&quot;russian&quot;,&quot;thursday&quot;,&quot;work&quot;,&quot;your&quot;,&quot;through&quot;,&quot;go&quot;,&quot;democrats&quot;,&quot;policy&quot;,&quot;asked&quot;,&quot;own&quot;,&quot;2016&quot;,&quot;china&quot;,&quot;me&quot;,&quot;city&quot;,&quot;need&quot;,&quot;monday&quot;,&quot;off&quot;,&quot;rights&quot;,&quot;next&quot;,&quot;deal&quot;,&quot;war&quot;,&quot;secretary&quot;,&quot;americans&quot;,&quot;committee&quot;,&quot;help&quot;,&quot;black&quot;,&quot;whether&quot;,&quot;three&quot;,&quot;official&quot;,&quot;never&quot;,&quot;case&quot;,&quot;why&quot;,&quot;around&quot;,&quot;york&quot;,&quot;general&quot;,&quot;does&quot;,&quot;man&quot;,&quot;leader&quot;,&quot;show&quot;,&quot;come&quot;,&quot;took&quot;,&quot;order&quot;,&quot;candidate&quot;,&quot;korea&quot;,&quot;members&quot;,&quot;senator&quot;,&quot;use&quot;,&quot;same&quot;,&quot;countries&quot;,&quot;good&quot;,&quot;every&quot;,&quot;without&quot;,&quot;put&quot;,&quot;end&quot;,&quot;attack&quot;,&quot;really&quot;,&quot;left&quot;,&quot;power&quot;,&quot;report&quot;,&quot;times&quot;,&quot;meeting&quot;,&quot;used&quot;,&quot;fbi&quot;,&quot;intelligence&quot;,&quot;trade&quot;,&quot;month&quot;,&quot;money&quot;,&quot;investigation&quot;,&quot;top&quot;,&quot;change&quot;,&quot;twitter&quot;,&quot;reported&quot;,&quot;business&quot;,&quot;iran&quot;,&quot;fact&quot;,&quot;already&quot;,&quot;information&quot;,&quot;decision&quot;,&quot;long&quot;,&quot;justice&quot;,&quot;plan&quot;,&quot;leaders&quot;,&quot;nuclear&quot;,&quot;syria&quot;,&quot;family&quot;,&quot;groups&quot;,&quot;days&quot;,&quot;conservative&quot;,&quot;too&quot;,&quot;voters&quot;,&quot;international&quot;,&quot;story&quot;,&quot;far&quot;,&quot;several&quot;,&quot;interview&quot;,&quot;south&quot;,&quot;place&quot;,&quot;again&quot;,&quot;likely&quot;,&quot;director&quot;,&quot;speech&quot;,&quot;clear&quot;,&quot;must&quot;,&quot;months&quot;,&quot;however&quot;,&quot;fox&quot;,&quot;something&quot;,&quot;among&quot;,&quot;agency&quot;,&quot;social&quot;,&quot;health&quot;,&quot;got&quot;,&quot;children&quot;,&quot;came&quot;,&quot;program&quot;,&quot;press&quot;,&quot;believe&quot;,&quot;chief&quot;,&quot;call&quot;,&quot;move&quot;,&quot;issue&quot;,&quot;immigration&quot;,&quot;border&quot;,&quot;things&quot;,&quot;barack&quot;,&quot;control&quot;,&quot;least&quot;,&quot;reporters&quot;,&quot;post&quot;,&quot;recent&quot;,&quot;number&quot;,&quot;home&quot;,&quot;won&quot;,&quot;might&quot;,&quot;didn&quot;,&quot;islamic&quot;,&quot;though&quot;,&quot;ve&quot;,&quot;john&quot;,&quot;major&quot;,&quot;sunday&quot;,&quot;act&quot;,&quot;school&quot;,&quot;m&quot;,&quot;actually&quot;,&quot;matter&quot;,&quot;earlier&quot;,&quot;seen&quot;,&quot;killed&quot;,&quot;trying&quot;,&quot;found&quot;,&quot;point&quot;,&quot;billion&quot;,&quot;supporters&quot;,&quot;later&quot;,&quot;sanders&quot;,&quot;nation&quot;,&quot;today&quot;,&quot;went&quot;,&quot;great&quot;,&quot;yet&quot;,&quot;system&quot;,&quot;executive&quot;,&quot;doesn&quot;,&quot;away&quot;,&quot;until&quot;,&quot;spokesman&quot;,&quot;look&quot;,&quot;thing&quot;,&quot;making&quot;,&quot;working&quot;,&quot;little&quot;,&quot;keep&quot;,&quot;march&quot;,&quot;become&quot;,&quot;set&quot;,&quot;real&quot;,&quot;attacks&quot;,&quot;free&quot;,&quot;give&quot;,&quot;violence&quot;,&quot;added&quot;,&quot;win&quot;,&quot;let&quot;,&quot;past&quot;,&quot;economic&quot;,&quot;comment&quot;,&quot;muslim&quot;,&quot;four&quot;,&quot;senior&quot;,&quot;democrat&quot;,&quot;january&quot;,&quot;nothing&quot;,&quot;himself&quot;,&quot;member&quot;,&quot;big&quot;,&quot;few&quot;,&quot;companies&quot;,&quot;ever&quot;,&quot;legal&quot;,&quot;stop&quot;,&quot;forces&quot;,&quot;cruz&quot;,&quot;prime&quot;,&quot;doing&quot;,&quot;european&quot;,&quot;nations&quot;,&quot;held&quot;,&quot;eu&quot;,&quot;local&quot;,&quot;talks&quot;,&quot;issues&quot;,&quot;company&quot;,&quot;defense&quot;,&quot;following&quot;,&quot;opposition&quot;,&quot;taking&quot;,&quot;illegal&quot;,&quot;across&quot;,&quot;july&quot;,&quot;human&quot;,&quot;given&quot;,&quot;care&quot;,&quot;2015&quot;,&quot;lawmakers&quot;,&quot;head&quot;,&quot;expected&quot;,&quot;sanctions&quot;,&quot;known&quot;,&quot;person&quot;,&quot;process&quot;,&quot;continue&quot;,&quot;enough&quot;,&quot;supreme&quot;,&quot;force&quot;,&quot;un&quot;,&quot;once&quot;,&quot;pay&quot;,&quot;gun&quot;,&quot;better&quot;,&quot;action&quot;,&quot;community&quot;,&quot;governor&quot;,&quot;possible&quot;,&quot;job&quot;,&quot;financial&quot;,&quot;union&quot;,&quot;men&quot;,&quot;released&quot;,&quot;others&quot;,&quot;wall&quot;,&quot;source&quot;,&quot;woman&quot;,&quot;legislation&quot;,&quot;lot&quot;,&quot;nominee&quot;,&quot;wrote&quot;,&quot;high&quot;,&quot;night&quot;,&quot;having&quot;,&quot;team&quot;,&quot;anyone&quot;,&quot;important&quot;,&quot;course&quot;,&quot;done&quot;,&quot;june&quot;,&quot;taken&quot;,&quot;majority&quot;,&quot;reports&quot;,&quot;response&quot;,&quot;history&quot;,&quot;judge&quot;,&quot;close&quot;,&quot;private&quot;,&quot;face&quot;,&quot;evidence&quot;,&quot;wants&quot;,&quot;life&quot;,&quot;open&quot;,&quot;attorney&quot;,&quot;syrian&quot;,&quot;run&quot;,&quot;ago&quot;,&quot;ban&quot;,&quot;special&quot;,&quot;refugees&quot;,&quot;email&quot;,&quot;air&quot;,&quot;second&quot;,&quot;10&quot;,&quot;plans&quot;,&quot;fight&quot;,&quot;question&quot;,&quot;1&quot;,&quot;gop&quot;,&quot;20&quot;,&quot;conference&quot;,&quot;watch&quot;,&quot;using&quot;,&quot;anything&quot;,&quot;staff&quot;,&quot;further&quot;,&quot;budget&quot;,&quot;saturday&quot;,&quot;letter&quot;,&quot;able&quot;,&quot;despite&quot;,&quot;mexico&quot;,&quot;behind&quot;,&quot;less&quot;,&quot;november&quot;,&quot;accused&quot;,&quot;university&quot;,&quot;find&quot;,&quot;agreement&quot;,&quot;lives&quot;,&quot;death&quot;,&quot;along&quot;,&quot;comments&quot;,&quot;early&quot;,&quot;mr&quot;,&quot;race&quot;,&quot;am&quot;,&quot;calling&quot;,&quot;someone&quot;,&quot;efforts&quot;,&quot;iraq&quot;,&quot;council&quot;,&quot;instead&quot;,&quot;best&quot;,&quot;crisis&quot;,&quot;debate&quot;,&quot;future&quot;,&quot;hard&quot;,&quot;full&quot;,&quot;region&quot;,&quot;sure&quot;,&quot;current&quot;,&quot;name&quot;,&quot;ryan&quot;,&quot;weeks&quot;,&quot;within&quot;,&quot;role&quot;,&quot;comes&quot;,&quot;five&quot;,&quot;putin&quot;,&quot;coalition&quot;,&quot;students&quot;,&quot;saudi&quot;,&quot;service&quot;,&quot;live&quot;,&quot;lead&quot;,&quot;due&quot;,&quot;economy&quot;,&quot;getting&quot;,&quot;december&quot;,&quot;ll&quot;,&quot;visit&quot;,&quot;running&quot;,&quot;sent&quot;,&quot;jobs&quot;,&quot;citizens&quot;,&quot;allow&quot;,&quot;announced&quot;,&quot;event&quot;,&quot;sources&quot;,&quot;civil&quot;,&quot;nearly&quot;,&quot;effort&quot;,&quot;position&quot;,&quot;coming&quot;,&quot;congressional&quot;,&quot;israel&quot;,&quot;center&quot;,&quot;elections&quot;,&quot;comey&quot;,&quot;d&quot;,&quot;young&quot;,&quot;candidates&quot;,&quot;problem&quot;,&quot;thousands&quot;,&quot;britain&quot;,&quot;led&quot;,&quot;ties&quot;,&quot;muslims&quot;,&quot;authorities&quot;,&quot;texas&quot;,&quot;rules&quot;,&quot;global&quot;,&quot;line&quot;,&quot;wanted&quot;,&quot;army&quot;,&quot;september&quot;,&quot;paul&quot;,&quot;facebook&quot;,&quot;8&quot;,&quot;ruling&quot;,&quot;leave&quot;,&quot;15&quot;,&quot;hold&quot;,&quot;each&quot;,&quot;capital&quot;,&quot;representatives&quot;,&quot;late&quot;,&quot;florida&quot;,&quot;immediately&quot;,&quot;climate&quot;,&quot;2014&quot;,&quot;middle&quot;,&quot;emails&quot;,&quot;needs&quot;,&quot;chairman&quot;,&quot;daily&quot;,&quot;means&quot;,&quot;politics&quot;,&quot;isn&quot;,&quot;east&quot;,&quot;weapons&quot;,&quot;rule&quot;,&quot;officers&quot;,&quot;turkey&quot;,&quot;tell&quot;,&quot;street&quot;,&quot;april&quot;,&quot;began&quot;,&quot;october&quot;,&quot;criminal&quot;,&quot;claims&quot;,&quot;start&quot;,&quot;gave&quot;,&quot;cannot&quot;,&quot;services&quot;,&quot;talk&quot;,&quot;liberal&quot;,&quot;showed&quot;,&quot;everyone&quot;,&quot;central&quot;,&quot;votes&quot;,&quot;rather&quot;,&quot;outside&quot;,&quot;bad&quot;,&quot;whose&quot;,&quot;message&quot;,&quot;tried&quot;,&quot;access&quot;,&quot;2&quot;,&quot;together&quot;,&quot;august&quot;,&quot;relations&quot;,&quot;words&quot;,&quot;peace&quot;,&quot;parliament&quot;,&quot;immigrants&quot;,&quot;lost&quot;,&quot;failed&quot;,&quot;based&quot;,&quot;workers&quot;,&quot;thought&quot;,&quot;february&quot;,&quot;healthcare&quot;,&quot;list&quot;,&quot;different&quot;,&quot;involved&quot;,&quot;agencies&quot;,&quot;conservatives&quot;,&quot;obamacare&quot;,&quot;questions&quot;,&quot;speaking&quot;,&quot;latest&quot;,&quot;2017&quot;,&quot;hope&quot;,&quot;reform&quot;,&quot;policies&quot;,&quot;district&quot;,&quot;almost&quot;,&quot;bush&quot;,&quot;cut&quot;,&quot;six&quot;,&quot;try&quot;,&quot;millions&quot;,&quot;county&quot;,&quot;read&quot;,&quot;idea&quot;,&quot;decided&quot;,&quot;planned&quot;,&quot;ministry&quot;,&quot;elected&quot;,&quot;recently&quot;,&quot;makes&quot;,&quot;reason&quot;,&quot;stand&quot;,&quot;sexual&quot;,&quot;allowed&quot;,&quot;racist&quot;,&quot;germany&quot;,&quot;always&quot;,&quot;everything&quot;,&quot;strong&quot;,&quot;concerns&quot;,&quot;charges&quot;,&quot;voting&quot;,&quot;bring&quot;,&quot;threat&quot;,&quot;morning&quot;,&quot;often&quot;,&quot;rally&quot;,&quot;spending&quot;,&quot;organization&quot;,&quot;laws&quot;,&quot;george&quot;,&quot;30&quot;,&quot;protect&quot;,&quot;fake&quot;,&quot;freedom&quot;,&quot;ahead&quot;,&quot;provide&quot;,&quot;europe&quot;,&quot;received&quot;,&quot;allies&quot;,&quot;allegations&quot;,&quot;enforcement&quot;,&quot;parties&quot;,&quot;entire&quot;,&quot;situation&quot;,&quot;meet&quot;,&quot;kind&quot;,&quot;happened&quot;,&quot;release&quot;,&quot;side&quot;,&quot;oil&quot;,&quot;officer&quot;,&quot;energy&quot;,&quot;nomination&quot;,&quot;seems&quot;,&quot;key&quot;,&quot;denied&quot;,&quot;fighting&quot;,&quot;fire&quot;,&quot;looking&quot;,&quot;poll&quot;,&quot;especially&quot;,&quot;met&quot;,&quot;industry&quot;,&quot;chinese&quot;,&quot;calls&quot;,&quot;agreed&quot;,&quot;personal&quot;,&quot;3&quot;,&quot;large&quot;,&quot;century&quot;,&quot;adding&quot;,&quot;movement&quot;,&quot;hate&quot;,&quot;james&quot;,&quot;talking&quot;,&quot;needed&quot;,&quot;funding&quot;,&quot;room&quot;,&quot;missile&quot;,&quot;small&quot;,&quot;representative&quot;,&quot;bank&quot;,&quot;shot&quot;,&quot;near&quot;,&quot;presidency&quot;,&quot;market&quot;,&quot;either&quot;,&quot;claim&quot;,&quot;hours&quot;,&quot;include&quot;,&quot;shooting&quot;,&quot;forward&quot;,&quot;step&quot;,&quot;host&quot;,&quot;hearing&quot;,&quot;old&quot;,&quot;themselves&quot;,&quot;vice&quot;,&quot;terrorist&quot;,&quot;confirmed&quot;,&quot;cases&quot;,&quot;western&quot;,&quot;area&quot;,&quot;worked&quot;,&quot;12&quot;,&quot;request&quot;,&quot;data&quot;,&quot;although&quot;,&quot;address&quot;,&quot;west&quot;,&quot;feel&quot;,&quot;j&quot;,&quot;11&quot;,&quot;spoke&quot;,&quot;polls&quot;,&quot;wife&quot;,&quot;interest&quot;,&quot;biggest&quot;,&quot;voted&quot;,&quot;hit&quot;,&quot;insurance&quot;,&quot;clearly&quot;,&quot;shows&quot;,&quot;california&quot;,&quot;2012&quot;,&quot;building&quot;,&quot;british&quot;,&quot;true&quot;,&quot;return&quot;,&quot;leading&quot;,&quot;decades&quot;,&quot;tweet&quot;,&quot;travel&quot;,&quot;probably&quot;,&quot;serious&quot;,&quot;term&quot;,&quot;potential&quot;,&quot;pressure&quot;,&quot;terrorism&quot;,&quot;actions&quot;,&quot;water&quot;,&quot;realdonaldtrump&quot;,&quot;protesters&quot;,&quot;arrested&quot;,&quot;families&quot;,&quot;paid&quot;,&quot;documents&quot;,&quot;commission&quot;,&quot;declined&quot;,&quot;fired&quot;,&quot;25&quot;,&quot;korean&quot;,&quot;nov&quot;,&quot;appeared&quot;,&quot;result&quot;,&quot;main&quot;,&quot;front&quot;,&quot;claimed&quot;,&quot;review&quot;,&quot;foundation&quot;,&quot;continued&quot;,&quot;adviser&quot;,&quot;relationship&quot;,&quot;mean&quot;,&quot;taxes&quot;,&quot;dollars&quot;,&quot;alleged&quot;,&quot;5&quot;,&quot;passed&quot;,&quot;below&quot;,&quot;network&quot;,&quot;moscow&quot;,&quot;david&quot;,&quot;soon&quot;,&quot;simply&quot;,&quot;pretty&quot;,&quot;wrong&quot;,&quot;myanmar&quot;,&quot;issued&quot;,&quot;toward&quot;,&quot;love&quot;,&quot;turned&quot;,&quot;crime&quot;,&quot;started&quot;,&quot;brought&quot;,&quot;truth&quot;,&quot;food&quot;,&quot;spent&quot;,&quot;saw&quot;,&quot;primary&quot;,&quot;popular&quot;,&quot;signed&quot;,&quot;points&quot;,&quot;college&quot;,&quot;previously&quot;,&quot;included&quot;,&quot;4&quot;,&quot;became&quot;,&quot;details&quot;,&quot;record&quot;,&quot;article&quot;,&quot;wasn&quot;,&quot;posted&quot;,&quot;mark&quot;,&quot;independence&quot;,&quot;account&quot;,&quot;tillerson&quot;,&quot;aid&quot;,&quot;board&quot;,&quot;longer&quot;,&quot;half&quot;,&quot;short&quot;,&quot;currently&quot;,&quot;turn&quot;,&quot;forced&quot;,&quot;attempt&quot;,&quot;influence&quot;,&quot;victory&quot;,&quot;father&quot;,&quot;leadership&quot;,&quot;raised&quot;,&quot;hand&quot;,&quot;seeking&quot;,&quot;view&quot;,&quot;pass&quot;,&quot;level&quot;,&quot;guy&quot;,&quot;proposed&quot;,&quot;fund&quot;,&quot;final&quot;,&quot;religious&quot;,&quot;mayor&quot;,&quot;michael&quot;,&quot;whole&quot;,&quot;merkel&quot;,&quot;clintons&quot;,&quot;protest&quot;,&quot;mike&quot;,&quot;agenda&quot;,&quot;2013&quot;,&quot;sign&quot;,&quot;deputy&quot;,&quot;constitution&quot;,&quot;website&quot;,&quot;hundreds&quot;,&quot;arabia&quot;,&quot;bernie&quot;,&quot;armed&quot;,&quot;lawyer&quot;,&quot;conflict&quot;,&quot;friends&quot;,&quot;independent&quot;,&quot;town&quot;,&quot;remarks&quot;,&quot;incident&quot;,&quot;total&quot;,&quot;areas&quot;,&quot;rubio&quot;,&quot;regional&quot;,&quot;repeatedly&quot;,&quot;obamas&quot;,&quot;flynn&quot;,&quot;ted&quot;,&quot;debt&quot;,&quot;mccain&quot;,&quot;21st&quot;,&quot;else&quot;,&quot;created&quot;,&quot;protests&quot;,&quot;helped&quot;,&quot;fear&quot;,&quot;criticized&quot;,&quot;giving&quot;,&quot;san&quot;,&quot;living&quot;,&quot;employees&quot;,&quot;violent&quot;,&quot;third&quot;,&quot;push&quot;,&quot;published&quot;,&quot;largest&quot;,&quot;described&quot;,&quot;isis&quot;,&quot;increase&quot;,&quot;pence&quot;,&quot;firm&quot;,&quot;cia&quot;,&quot;respond&quot;,&quot;son&quot;,&quot;convention&quot;,&quot;phone&quot;,&quot;heard&quot;,&quot;example&quot;,&quot;dont&quot;,&quot;ask&quot;,&quot;speaker&quot;,&quot;changes&quot;,&quot;al&quot;,&quot;robert&quot;,&quot;absolutely&quot;,&quot;sessions&quot;,&quot;lower&quot;,&quot;stay&quot;,&quot;child&quot;,&quot;medical&quot;,&quot;18&quot;,&quot;reality&quot;,&quot;similar&quot;,&quot;apparently&quot;,&quot;seven&quot;,&quot;goes&quot;,&quot;education&quot;,&quot;troops&quot;,&quot;programs&quot;,&quot;hands&quot;,&quot;ambassador&quot;,&quot;remain&quot;,&quot;militants&quot;,&quot;criticism&quot;,&quot;warned&quot;,&quot;cost&quot;,&quot;tweeted&quot;,&quot;crowd&quot;,&quot;build&quot;,&quot;speak&quot;,&quot;german&quot;,&quot;secret&quot;,&quot;24&quot;,&quot;telling&quot;,&quot;politicians&quot;,&quot;form&quot;,&quot;events&quot;,&quot;johnson&quot;,&quot;happen&quot;,&quot;individuals&quot;,&quot;single&quot;,&quot;land&quot;,&quot;businesses&quot;,&quot;asking&quot;,&quot;france&quot;,&quot;television&quot;,&quot;radio&quot;,&quot;iraqi&quot;,&quot;refugee&quot;,&quot;experts&quot;,&quot;spokeswoman&quot;,&quot;quickly&quot;,&quot;project&quot;,&quot;inside&quot;,&quot;discuss&quot;,&quot;risk&quot;,&quot;proposal&quot;,&quot;previous&quot;,&quot;cause&quot;,&quot;appears&quot;,&quot;king&quot;,&quot;funds&quot;,&quot;tv&quot;,&quot;northern&quot;,&quot;opinion&quot;,&quot;completely&quot;,&quot;100&quot;,&quot;understand&quot;,&quot;flag&quot;,&quot;seek&quot;,&quot;rate&quot;,&quot;photo&quot;,&quot;mass&quot;,&quot;kurdish&quot;,&quot;problems&quot;,&quot;online&quot;,&quot;research&quot;,&quot;mainstream&quot;,&quot;focus&quot;,&quot;senators&quot;,&quot;interests&quot;,&quot;voter&quot;,&quot;safe&quot;,&quot;joe&quot;,&quot;page&quot;,&quot;safety&quot;,&quot;powerful&quot;,&quot;exactly&quot;,&quot;dangerous&quot;,&quot;respect&quot;,&quot;urged&quot;,&quot;drug&quot;,&quot;carolina&quot;,&quot;share&quot;,&quot;measures&quot;,&quot;died&quot;,&quot;base&quot;,&quot;13&quot;,&quot;transition&quot;,&quot;southern&quot;,&quot;christian&quot;,&quot;numbers&quot;,&quot;threats&quot;,&quot;concern&quot;,&quot;island&quot;,&quot;certainly&quot;,&quot;victims&quot;,&quot;responsible&quot;,&quot;trip&quot;,&quot;named&quot;,&quot;french&quot;,&quot;consider&quot;,&quot;japan&quot;,&quot;16&quot;,&quot;society&quot;,&quot;served&quot;,&quot;false&quot;,&quot;coverage&quot;,&quot;attention&quot;,&quot;prevent&quot;,&quot;presidents&quot;,&quot;student&quot;,&quot;fellow&quot;,&quot;concerned&quot;,&quot;7&quot;,&quot;moore&quot;,&quot;50&quot;,&quot;create&quot;,&quot;charged&quot;,&quot;provided&quot;,&quot;development&quot;,&quot;governments&quot;,&quot;leaving&quot;,&quot;ground&quot;,&quot;presidentelect&quot;,&quot;internet&quot;,&quot;certain&quot;,&quot;diplomatic&quot;,&quot;6&quot;,&quot;residents&quot;,&quot;o&quot;,&quot;filed&quot;,&quot;book&quot;,&quot;kelly&quot;,&quot;itself&quot;,&quot;cities&quot;,&quot;14&quot;,&quot;results&quot;,&quot;knew&quot;,&quot;corruption&quot;,&quot;choice&quot;,&quot;gets&quot;,&quot;brexit&quot;,&quot;critical&quot;,&quot;poor&quot;,&quot;measure&quot;,&quot;nato&quot;,&quot;ensure&quot;,&quot;assault&quot;,&quot;schools&quot;,&quot;referendum&quot;,&quot;knows&quot;,&quot;democracy&quot;,&quot;backed&quot;,&quot;panel&quot;,&quot;organizations&quot;,&quot;terms&quot;,&quot;whom&quot;,&quot;responded&quot;,&quot;moment&quot;,&quot;charge&quot;,&quot;holding&quot;,&quot;fraud&quot;,&quot;answer&quot;,&quot;terrorists&quot;,&quot;expect&quot;,&quot;committed&quot;,&quot;chance&quot;,&quot;believed&quot;,&quot;affairs&quot;,&quot;hear&quot;,&quot;standing&quot;,&quot;protection&quot;,&quot;considered&quot;,&quot;reporter&quot;,&quot;paris&quot;,&quot;expressed&quot;,&quot;class&quot;,&quot;sides&quot;,&quot;ready&quot;,&quot;takes&quot;,&quot;serve&quot;,&quot;operations&quot;,&quot;difficult&quot;,&quot;yes&quot;,&quot;parents&quot;,&quot;approved&quot;,&quot;worst&quot;,&quot;prison&quot;,&quot;massive&quot;,&quot;refused&quot;,&quot;reached&quot;,&quot;eight&quot;,&quot;target&quot;,&quot;series&quot;,&quot;population&quot;,&quot;behavior&quot;,&quot;rep&quot;,&quot;rohingya&quot;,&quot;husband&quot;,&quot;courts&quot;,&quot;impact&quot;,&quot;send&quot;,&quot;play&quot;,&quot;maybe&quot;,&quot;agree&quot;,&quot;records&quot;,&quot;individual&quot;,&quot;virginia&quot;,&quot;investment&quot;,&quot;newspaper&quot;,&quot;growing&quot;,&quot;authority&quot;,&quot;believes&quot;,&quot;sean&quot;,&quot;negotiations&quot;,&quot;huge&quot;,&quot;favor&quot;,&quot;rhetoric&quot;,&quot;parts&quot;,&quot;mother&quot;,&quot;beijing&quot;,&quot;low&quot;,&quot;direct&quot;,&quot;27&quot;,&quot;repeal&quot;,&quot;dead&quot;,&quot;critics&quot;,&quot;threatened&quot;,&quot;opportunity&quot;,&quot;london&quot;,&quot;church&quot;,&quot;9&quot;,&quot;terror&quot;,&quot;radical&quot;,&quot;iranian&quot;,&quot;cuts&quot;,&quot;agents&quot;,&quot;offered&quot;,&quot;body&quot;,&quot;amendment&quot;,&quot;beyond&quot;,&quot;screen&quot;,&quot;offer&quot;,&quot;killing&quot;,&quot;counsel&quot;,&quot;cabinet&quot;,&quot;ability&quot;,&quot;cover&quot;,&quot;activists&quot;,&quot;regulations&quot;,&quot;ordered&quot;,&quot;views&quot;,&quot;finally&quot;,&quot;avoid&quot;,&quot;2011&quot;,&quot;progress&quot;,&quot;red&quot;,&quot;defend&quot;,&quot;word&quot;,&quot;abortion&quot;,&quot;suggested&quot;,&quot;status&quot;,&quot;mcconnell&quot;,&quot;gas&quot;,&quot;crimes&quot;,&quot;19&quot;,&quot;rest&quot;,&quot;reach&quot;,&quot;macron&quot;,&quot;ways&quot;,&quot;jan&quot;,&quot;car&quot;,&quot;2018&quot;,&quot;facts&quot;,&quot;common&quot;,&quot;chicago&quot;,&quot;17&quot;,&quot;complete&quot;,&quot;arab&quot;,&quot;statements&quot;,&quot;corporate&quot;,&quot;willing&quot;,&quot;strategy&quot;,&quot;sought&quot;,&quot;guns&quot;,&quot;costs&quot;,&quot;22&quot;,&quot;supporting&quot;,&quot;promised&quot;,&quot;effect&quot;,&quot;directly&quot;,&quot;period&quot;,&quot;includes&quot;,&quot;exchange&quot;,&quot;xi&quot;,&quot;related&quot;,&quot;particularly&quot;,&quot;continues&quot;,&quot;lack&quot;,&quot;labor&quot;,&quot;lawsuit&quot;,&quot;afghanistan&quot;,&quot;2010&quot;,&quot;rich&quot;,&quot;perhaps&quot;,&quot;supported&quot;,&quot;additional&quot;,&quot;replace&quot;,&quot;joint&quot;,&quot;jerusalem&quot;,&quot;caused&quot;,&quot;looks&quot;,&quot;arms&quot;,&quot;remains&quot;,&quot;income&quot;,&quot;announcement&quot;,&quot;domestic&quot;,&quot;gay&quot;,&quot;2008&quot;,&quot;turkish&quot;,&quot;lose&quot;,&quot;worse&quot;,&quot;considering&quot;,&quot;significant&quot;,&quot;sen&quot;,&quot;scandal&quot;,&quot;raise&quot;,&quot;multiple&quot;,&quot;join&quot;,&quot;daughter&quot;,&quot;attacked&quot;,&quot;cyber&quot;,&quot;showing&quot;,&quot;lies&quot;,&quot;higher&quot;,&quot;buy&quot;,&quot;towards&quot;,&quot;per&quot;,&quot;operation&quot;,&quot;michigan&quot;,&quot;star&quot;,&quot;spicer&quot;,&quot;gone&quot;,&quot;god&quot;,&quot;credit&quot;,&quot;weekend&quot;,&quot;referring&quot;,&quot;21&quot;,&quot;citing&quot;,&quot;summit&quot;,&quot;regarding&quot;,&quot;inc&quot;,&quot;test&quot;,&quot;quite&quot;,&quot;capture&quot;,&quot;worth&quot;,&quot;sept&quot;,&quot;becoming&quot;,&quot;mexican&quot;,&quot;kim&quot;,&quot;finance&quot;,&quot;block&quot;,&quot;seem&quot;,&quot;green&quot;,&quot;migrants&quot;,&quot;accept&quot;,&quot;trial&quot;,&quot;supporter&quot;,&quot;sea&quot;,&quot;environmental&quot;,&quot;declared&quot;,&quot;chris&quot;,&quot;w&quot;,&quot;arrest&quot;,&quot;sense&quot;,&quot;journalists&quot;,&quot;puerto&quot;,&quot;publicly&quot;,&quot;lawyers&quot;,&quot;appear&quot;,&quot;noted&quot;,&quot;decide&quot;,&quot;wouldn&quot;,&quot;eastern&quot;,&quot;opposed&quot;,&quot;fiscal&quot;,&quot;regime&quot;,&quot;canada&quot;,&quot;thinks&quot;,&quot;followed&quot;,&quot;fair&quot;,&quot;challenge&quot;,&quot;approval&quot;,&quot;socalled&quot;,&quot;necessary&quot;,&quot;oct&quot;,&quot;launched&quot;,&quot;establishment&quot;,&quot;upon&quot;,&quot;minority&quot;,&quot;probe&quot;,&quot;dc&quot;,&quot;couldn&quot;,&quot;mind&quot;,&quot;subject&quot;,&quot;mostly&quot;,&quot;trust&quot;,&quot;steve&quot;,&quot;responsibility&quot;,&quot;communities&quot;,&quot;friend&quot;,&quot;cooperation&quot;,&quot;vladimir&quot;,&quot;shut&quot;,&quot;rise&quot;,&quot;price&quot;,&quot;jeff&quot;,&quot;dnc&quot;,&quot;accusations&quot;,&quot;kids&quot;,&quot;battle&quot;,&quot;association&quot;,&quot;28&quot;,&quot;reporting&quot;,&quot;yemen&quot;,&quot;communications&quot;,&quot;ended&quot;,&quot;rival&quot;,&quot;ohio&quot;,&quot;follow&quot;,&quot;26&quot;,&quot;winning&quot;,&quot;remember&quot;,&quot;powers&quot;,&quot;banks&quot;,&quot;soldiers&quot;,&quot;required&quot;,&quot;blame&quot;,&quot;putting&quot;,&quot;deep&quot;,&quot;electoral&quot;,&quot;deals&quot;,&quot;couple&quot;,&quot;begin&quot;,&quot;growth&quot;,&quot;embassy&quot;,&quot;seriously&quot;,&quot;manager&quot;,&quot;legislative&quot;,&quot;israeli&quot;,&quot;tough&quot;,&quot;classified&quot;,&quot;briefing&quot;,&quot;pyongyang&quot;,&quot;largely&quot;,&quot;investigating&quot;,&quot;emergency&quot;,&quot;murder&quot;,&quot;transgender&quot;,&quot;bureau&quot;,&quot;available&quot;,&quot;above&quot;,&quot;ran&quot;,&quot;propaganda&quot;,&quot;meant&quot;,&quot;accounts&quot;,&quot;facing&quot;,&quot;language&quot;,&quot;helping&quot;,&quot;constitutional&quot;,&quot;stage&quot;,&quot;light&quot;,&quot;separate&quot;,&quot;joined&quot;,&quot;de&quot;,&quot;ruled&quot;,&quot;scott&quot;,&quot;cuba&quot;,&quot;ally&quot;,&quot;alliance&quot;,&quot;reasons&quot;,&quot;moving&quot;,&quot;caught&quot;,&quot;pm&quot;,&quot;experience&quot;,&quot;appeal&quot;,&quot;revealed&quot;,&quot;infrastructure&quot;,&quot;bannon&quot;,&quot;various&quot;,&quot;break&quot;,&quot;sex&quot;,&quot;hollywood&quot;,&quot;controversial&quot;,&quot;23&quot;,&quot;version&quot;,&quot;conspiracy&quot;,&quot;meetings&quot;,&quot;approach&quot;,&quot;aimed&quot;,&quot;racism&quot;,&quot;property&quot;,&quot;professor&quot;,&quot;supposed&quot;,&quot;figure&quot;,&quot;29&quot;,&quot;site&quot;,&quot;rejected&quot;,&quot;kill&quot;,&quot;discussed&quot;,&quot;guilty&quot;,&quot;tweets&quot;,&quot;moved&quot;,&quot;jr&quot;,&quot;fully&quot;,&quot;tensions&quot;,&quot;positions&quot;,&quot;hannity&quot;,&quot;acting&quot;,&quot;estate&quot;,&quot;broke&quot;,&quot;homeland&quot;,&quot;amount&quot;,&quot;prosecutors&quot;,&quot;wikileaks&quot;,&quot;lie&quot;,&quot;technology&quot;,&quot;scheduled&quot;,&quot;pick&quot;,&quot;paying&quot;,&quot;investigations&quot;,&quot;carry&quot;,&quot;goal&quot;,&quot;mission&quot;,&quot;bit&quot;,&quot;shared&quot;,&quot;rightwing&quot;,&quot;heart&quot;,&quot;pushed&quot;,&quot;promise&quot;,&quot;decisions&quot;,&quot;appeals&quot;,&quot;uk&quot;,&quot;amid&quot;,&quot;alone&quot;,&quot;lying&quot;,&quot;im&quot;,&quot;demand&quot;,&quot;pointed&quot;,&quot;damage&quot;,&quot;ukraine&quot;,&quot;libya&quot;,&quot;hurt&quot;,&quot;conversation&quot;,&quot;doubt&quot;,&quot;60&quot;,&quot;values&quot;,&quot;present&quot;,&quot;cast&quot;,&quot;angry&quot;,&quot;removed&quot;,&quot;arizona&quot;,&quot;40&quot;,&quot;warren&quot;,&quot;dropped&quot;,&quot;condition&quot;,&quot;changed&quot;,&quot;iowa&quot;,&quot;focused&quot;,&quot;born&quot;,&quot;african&quot;,&quot;judges&quot;,&quot;delegates&quot;,&quot;borders&quot;,&quot;addition&quot;,&quot;territory&quot;,&quot;msnbc&quot;,&quot;hill&quot;,&quot;taiwan&quot;,&quot;benefits&quot;,&quot;aides&quot;,&quot;zone&quot;,&quot;jail&quot;,&quot;billionaire&quot;,&quot;steps&quot;,&quot;stated&quot;,&quot;stopped&quot;,&quot;abc&quot;,&quot;province&quot;,&quot;argued&quot;,&quot;jones&quot;,&quot;islam&quot;,&quot;career&quot;,&quot;targeted&quot;,&quot;mueller&quot;,&quot;hospital&quot;,&quot;allowing&quot;,&quot;written&quot;,&quot;throughout&quot;,&quot;stories&quot;,&quot;resolution&quot;,&quot;fall&quot;,&quot;literally&quot;,&quot;identified&quot;,&quot;none&quot;,&quot;coal&quot;,&quot;game&quot;,&quot;played&quot;,&quot;hopes&quot;,&quot;warning&quot;,&quot;solution&quot;,&quot;humanitarian&quot;,&quot;designed&quot;,&quot;claiming&quot;,&quot;aren&quot;,&quot;alabama&quot;,&quot;particular&quot;,&quot;russians&quot;,&quot;lady&quot;,&quot;compared&quot;,&quot;opponents&quot;,&quot;familiar&quot;,&quot;faced&quot;,&quot;explain&quot;,&quot;cited&quot;,&quot;carried&quot;,&quot;decade&quot;,&quot;beginning&quot;,&quot;annual&quot;,&quot;server&quot;,&quot;felt&quot;,&quot;closed&quot;,&quot;seat&quot;,&quot;brown&quot;,&quot;voice&quot;,&quot;planning&quot;,&quot;nbc&quot;,&quot;document&quot;,&quot;age&quot;,&quot;victim&quot;,&quot;resources&quot;,&quot;happy&quot;,&quot;works&quot;,&quot;please&quot;,&quot;highly&quot;,&quot;aide&quot;,&quot;activities&quot;,&quot;reduce&quot;,&quot;increased&quot;,&quot;2009&quot;,&quot;female&quot;,&quot;conduct&quot;,&quot;bringing&quot;,&quot;sales&quot;,&quot;starting&quot;,&quot;partners&quot;,&quot;judicial&quot;,&quot;featured&quot;,&quot;positive&quot;,&quot;bills&quot;,&quot;thats&quot;,&quot;nor&quot;,&quot;matters&quot;,&quot;conditions&quot;,&quot;strike&quot;,&quot;possibility&quot;,&quot;piece&quot;,&quot;affordable&quot;,&quot;totally&quot;,&quot;require&quot;,&quot;bid&quot;,&quot;africa&quot;,&quot;unless&quot;,&quot;treasury&quot;,&quot;picture&quot;,&quot;arrived&quot;,&quot;judiciary&quot;,&quot;inauguration&quot;,&quot;collusion&quot;,&quot;surprise&quot;,&quot;markets&quot;,&quot;investors&quot;,&quot;internal&quot;,&quot;australia&quot;,&quot;treatment&quot;,&quot;spain&quot;,&quot;restrictions&quot;,&quot;parenthood&quot;,&quot;dec&quot;,&quot;partner&quot;,&quot;faces&quot;,&quot;rico&quot;,&quot;loss&quot;,&quot;playing&quot;,&quot;nine&quot;,&quot;losing&quot;,&quot;carson&quot;,&quot;average&quot;,&quot;asia&quot;,&quot;airport&quot;,&quot;requests&quot;,&quot;institute&quot;,&quot;basis&quot;,&quot;religion&quot;,&quot;management&quot;,&quot;sort&quot;,&quot;veterans&quot;,&quot;discussion&quot;,&quot;islamist&quot;,&quot;hell&quot;,&quot;benefit&quot;,&quot;involvement&quot;,&quot;confirmation&quot;,&quot;bloc&quot;,&quot;admitted&quot;,&quot;offensive&quot;,&quot;miles&quot;,&quot;kept&quot;,&quot;audience&quot;,&quot;alternative&quot;,&quot;militant&quot;,&quot;frontrunner&quot;,&quot;campus&quot;,&quot;sometimes&quot;,&quot;secure&quot;,&quot;romney&quot;,&quot;entering&quot;,&quot;disaster&quot;,&quot;ongoing&quot;,&quot;abuse&quot;,&quot;systems&quot;,&quot;ceo&quot;,&quot;hotel&quot;,&quot;testimony&quot;,&quot;receive&quot;,&quot;possibly&quot;,&quot;pentagon&quot;,&quot;intended&quot;,&quot;greater&quot;,&quot;whatever&quot;,&quot;scene&quot;,&quot;minutes&quot;,&quot;lebanon&quot;,&quot;erdogan&quot;,&quot;bangladesh&quot;,&quot;opened&quot;,&quot;girl&quot;,&quot;allegedly&quot;,&quot;conducted&quot;,&quot;analysis&quot;,&quot;drew&quot;,&quot;suspected&quot;,&quot;specific&quot;,&quot;park&quot;,&quot;leftist&quot;,&quot;happening&quot;,&quot;bomb&quot;,&quot;sweden&quot;,&quot;prove&quot;,&quot;defeat&quot;,&quot;brussels&quot;,&quot;remove&quot;,&quot;nobody&quot;,&quot;illegally&quot;,&quot;getty&quot;,&quot;field&quot;,&quot;reportedly&quot;,&quot;ad&quot;,&quot;seats&quot;,&quot;highest&quot;,&quot;dozens&quot;,&quot;seemed&quot;,&quot;save&quot;,&quot;reforms&quot;,&quot;prosecutor&quot;,&quot;behalf&quot;,&quot;vowed&quot;,&quot;campaigns&quot;,&quot;racial&quot;,&quot;progressive&quot;,&quot;numerous&quot;,&quot;explained&quot;,&quot;thinking&quot;,&quot;prior&quot;,&quot;politically&quot;,&quot;sarah&quot;,&quot;assembly&quot;,&quot;31&quot;,&quot;study&quot;,&quot;note&quot;,&quot;pushing&quot;,&quot;increasingly&quot;,&quot;destroy&quot;,&quot;fuel&quot;,&quot;liberals&quot;,&quot;prepared&quot;,&quot;martin&quot;,&quot;hacking&quot;,&quot;drive&quot;,&quot;cash&quot;,&quot;activist&quot;,&quot;ultimately&quot;,&quot;thanks&quot;,&quot;tehran&quot;,&quot;levels&quot;,&quot;associated&quot;,&quot;agent&quot;,&quot;training&quot;,&quot;ones&quot;,&quot;immediate&quot;,&quot;housing&quot;,&quot;evening&quot;,&quot;wait&quot;,&quot;truly&quot;,&quot;signs&quot;,&quot;listen&quot;,&quot;assad&quot;,&quot;streets&quot;,&quot;search&quot;,&quot;ethnic&quot;,&quot;estimated&quot;,&quot;watching&quot;,&quot;republic&quot;,&quot;marriage&quot;,&quot;flint&quot;,&quot;payments&quot;,&quot;jim&quot;,&quot;eventually&quot;,&quot;detained&quot;,&quot;communist&quot;,&quot;worried&quot;,&quot;pakistan&quot;,&quot;kremlin&quot;,&quot;fighters&quot;,&quot;built&quot;,&quot;vietnam&quot;,&quot;stance&quot;,&quot;extremely&quot;,&quot;clean&quot;,&quot;backing&quot;,&quot;minimum&quot;,&quot;lee&quot;,&quot;potentially&quot;,&quot;lines&quot;,&quot;broadcast&quot;,&quot;missiles&quot;,&quot;keeping&quot;,&quot;innocent&quot;,&quot;happens&quot;,&quot;raising&quot;,&quot;culture&quot;,&quot;capitol&quot;,&quot;herself&quot;,&quot;denies&quot;,&quot;ben&quot;,&quot;attempted&quot;,&quot;polling&quot;,&quot;gives&quot;,&quot;dismissed&quot;,&quot;date&quot;,&quot;blocked&quot;,&quot;treated&quot;,&quot;jersey&quot;,&quot;correct&quot;,&quot;citizen&quot;,&quot;check&quot;,&quot;boost&quot;,&quot;assistance&quot;,&quot;thank&quot;,&quot;paper&quot;,&quot;otherwise&quot;,&quot;eric&quot;,&quot;negative&quot;,&quot;names&quot;,&quot;grand&quot;,&quot;asylum&quot;,&quot;spend&quot;,&quot;seeing&quot;,&quot;opening&quot;,&quot;kushner&quot;,&quot;choose&quot;,&quot;aware&quot;,&quot;actual&quot;,&quot;tom&quot;,&quot;diplomats&quot;,&quot;contact&quot;,&quot;camp&quot;,&quot;blamed&quot;,&quot;serving&quot;,&quot;institutions&quot;,&quot;epa&quot;,&quot;oh&quot;,&quot;detroit&quot;,&quot;natural&quot;,&quot;heads&quot;,&quot;andrew&quot;,&quot;sitting&quot;,&quot;path&quot;,&quot;door&quot;,&quot;attend&quot;,&quot;strongly&quot;,&quot;code&quot;,&quot;shown&quot;,&quot;road&quot;,&quot;hurricane&quot;,&quot;environment&quot;,&quot;drop&quot;,&quot;civilians&quot;,&quot;spread&quot;,&quot;pennsylvania&quot;,&quot;injured&quot;,&quot;failing&quot;,&quot;conway&quot;,&quot;carrying&quot;,&quot;wealthy&quot;,&quot;strikes&quot;,&quot;richard&quot;,&quot;rates&quot;,&quot;dr&quot;,&quot;biden&quot;,&quot;2017realdonaldtrump&quot;,&quot;hes&quot;,&quot;guard&quot;,&quot;attempts&quot;,&quot;21wire&quot;,&quot;standards&quot;,&quot;relief&quot;,&quot;places&quot;,&quot;learned&quot;,&quot;dialogue&quot;,&quot;easy&quot;,&quot;appointed&quot;,&quot;advance&quot;,&quot;schumer&quot;,&quot;production&quot;,&quot;interior&quot;,&quot;standard&quot;,&quot;space&quot;,&quot;palestinian&quot;,&quot;activity&quot;,&quot;wisconsin&quot;,&quot;proposals&quot;,&quot;medicaid&quot;,&quot;attacking&quot;,&quot;administrations&quot;,&quot;sheriff&quot;,&quot;sentence&quot;,&quot;limited&quot;,&quot;prices&quot;,&quot;looked&quot;,&quot;figures&quot;,&quot;stood&quot;,&quot;christmas&quot;,&quot;vehicle&quot;,&quot;rape&quot;,&quot;neither&quot;,&quot;wage&quot;,&quot;products&quot;,&quot;pledged&quot;,&quot;orders&quot;,&quot;magazine&quot;,&quot;involving&quot;,&quot;donors&quot;,&quot;widely&quot;,&quot;screenshot&quot;,&quot;retired&quot;,&quot;resignation&quot;,&quot;manafort&quot;,&quot;investigators&quot;,&quot;chair&quot;,&quot;tells&quot;,&quot;simple&quot;,&quot;overseas&quot;,&quot;limit&quot;,&quot;faith&quot;,&quot;draft&quot;,&quot;convicted&quot;,&quot;veteran&quot;,&quot;station&quot;,&quot;material&quot;,&quot;hour&quot;,&quot;failure&quot;,&quot;posts&quot;,&quot;coup&quot;,&quot;ballistic&quot;,&quot;suspect&quot;,&quot;banned&quot;,&quot;abe&quot;,&quot;wonder&quot;,&quot;narrative&quot;,&quot;waiting&quot;,&quot;visa&quot;,&quot;sending&quot;,&quot;providing&quot;,&quot;linked&quot;,&quot;floor&quot;,&quot;club&quot;,&quot;aliens&quot;,&quot;35&quot;,&quot;yesterday&quot;,&quot;platform&quot;,&quot;confidence&quot;,&quot;attended&quot;,&quot;analysts&quot;,&quot;mention&quot;,&quot;homes&quot;,&quot;ethics&quot;,&quot;ballot&quot;,&quot;commitment&quot;,&quot;unlikely&quot;,&quot;firms&quot;,&quot;consequences&quot;,&quot;zero&quot;,&quot;setting&quot;],&quot;legendgroup&quot;:&quot;&quot;,&quot;marker&quot;:{&quot;color&quot;:&quot;#636efa&quot;,&quot;size&quot;:[2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2],&quot;sizemode&quot;:&quot;area&quot;,&quot;sizeref&quot;:0.005,&quot;symbol&quot;:&quot;circle&quot;},&quot;mode&quot;:&quot;markers&quot;,&quot;name&quot;:&quot;&quot;,&quot;showlegend&quot;:false,&quot;x&quot;:[-0.29091760516166687,1.296209454536438,2.9025626182556152,0.2595803141593933,0.45906537771224976,1.6102498769760132,1.8254220485687256,-0.016494719311594963,1.8278931379318237,-0.0163702555000782,0.11074598133563995,0.6502347588539124,2.847714424133301,0.8772414326667786,0.9509209990501404,1.436230182647705,0.9118165969848633,0.5364134907722473,1.697178840637207,-1.1104943752288818,2.2024776935577393,1.2868797779083252,0.8468427658081055,0.2839573621749878,2.2144925594329834,-0.32675376534461975,0.4850274324417114,3.606553792953491,0.5146061182022095,2.6881263256073,1.9295461177825928,1.4415191411972046,2.69454026222229,-1.9002066850662231,0.32758867740631104,1.4842491149902344,-1.2087088823318481,-0.5171611905097961,1.5236066579818726,2.304414749145508,0.6679334044456482,2.3975844383239746,1.4897434711456299,3.4000656604766846,-0.2566789388656616,1.8079007863998413,0.9477962851524353,1.3602375984191895,0.8022134304046631,0.23173180222511292,1.1777479648590088,1.8338030576705933,-0.1970711648464203,2.956757068634033,1.7320365905761719,-0.5718805193901062,-1.599349856376648,0.6545820832252502,1.6128987073898315,1.3400654792785645,2.2456886768341064,-0.08208486437797546,0.17949910461902618,-0.019877485930919647,0.06328338384628296,0.8192422389984131,0.007316302042454481,0.004742472432553768,2.9393866062164307,3.2331137657165527,1.231452465057373,-0.5880459547042847,-1.3044662475585938,-0.8062987327575684,0.2482047975063324,2.3136544227600098,1.950456142425537,4.798592567443848,1.1885651350021362,-0.4838203489780426,-1.1778274774551392,2.173898458480835,-0.0301811583340168,0.4157325029373169,0.19488120079040527,0.6758376955986023,0.8847300410270691,0.9835392236709595,1.967922329902649,0.3543609380722046,2.499342203140259,2.6904590129852295,-0.34136468172073364,0.31985926628112793,0.5572726130485535,0.28053852915763855,2.0026159286499023,0.5325490236282349,-0.3100372552871704,0.902808666229248,-0.5067422389984131,2.3314456939697266,1.5126769542694092,-1.2562878131866455,0.21141280233860016,1.5450453758239746,1.8822627067565918,0.823823869228363,0.07079749554395676,-0.0009847632609307766,-0.1251484602689743,1.4716347455978394,1.6656991243362427,0.8744505047798157,-0.6622806191444397,-0.3079337775707245,4.943390846252441,1.7394686937332153,1.1314576864242554,-0.3385337293148041,-1.7755767107009888,0.5404520034790039,-2.3319344520568848,-0.16380038857460022,0.8580766916275024,0.9756099581718445,-0.0036682547070086002,1.0571539402008057,-0.15190623700618744,0.7225536704063416,-0.9608184695243835,0.2577296495437622,0.4053446352481842,1.2059954404830933,-1.0305289030075073,1.2080247402191162,2.288944959640503,0.5003321170806885,2.220048666000366,0.33437520265579224,-1.7395241260528564,-1.2234340906143188,0.7309927940368652,0.11365075409412384,-0.8514321446418762,-0.4018130600452423,-1.5007606744766235,-0.582729697227478,0.07574409246444702,0.23743757605552673,0.7076849341392517,-0.7340345978736877,1.1855063438415527,1.628325343132019,-1.896788477897644,-1.6248328685760498,0.15475894510746002,1.0000892877578735,1.3283206224441528,2.155688524246216,-1.607917308807373,3.1514766216278076,1.4077249765396118,0.21400274336338043,0.3200835883617401,0.48813530802726746,-0.24320878088474274,-0.48069891333580017,-0.19492968916893005,-4.302019119262695,1.6367826461791992,1.3780460357666016,0.16862036287784576,1.2715251445770264,-1.289977788925171,1.2517470121383667,0.27053767442703247,-0.156362384557724,0.7593937516212463,1.5152677297592163,1.3574298620224,0.10791213065385818,-0.6462163329124451,0.33753976225852966,0.028278369456529617,1.2756108045578003,-1.1554343700408936,1.475057601928711,-1.2612080574035645,-0.2629430592060089,-0.5031418800354004,-1.0688083171844482,2.0413191318511963,-4.407074451446533,-0.30275532603263855,-2.052133083343506,-1.1948375701904297,-1.551210880279541,1.2677366733551025,0.23090966045856476,-0.8222705125808716,-1.2611521482467651,-0.6930440664291382,1.9534554481506348,0.2830198407173157,1.176682949066162,0.7276569604873657,-0.2804267108440399,0.8199623823165894,1.2815828323364258,1.2018370628356934,-2.6816658973693848,0.21734701097011566,-0.6022758483886719,0.7317509651184082,-0.5792112946510315,0.5172728896141052,-0.8765109181404114,-0.06237103044986725,-1.3051464557647705,0.22470621764659882,-0.30175644159317017,0.9834899306297302,-0.23417824506759644,-0.05345883220434189,2.8836426734924316,-1.01205313205719,-0.7687791585922241,-1.854050636291504,1.216051697731018,-1.3195843696594238,3.3154807090759277,0.3213930130004883,-0.7231149077415466,0.29758596420288086,0.7630942463874817,0.9853285551071167,-1.0598677396774292,0.8622468709945679,0.3294611871242523,0.7788839340209961,-0.9637687802314758,0.31871944665908813,-1.4790462255477905,0.8287606835365295,0.34560149908065796,0.6340653300285339,0.6444963812828064,-1.031058669090271,0.23096095025539398,1.5723342895507812,0.13584695756435394,0.44432488083839417,-0.08950492739677429,-0.012445246800780296,1.8236467838287354,1.472774624824524,-1.7532265186309814,0.6666591763496399,0.35212457180023193,-0.8180949091911316,1.013087272644043,1.012698769569397,0.6227120161056519,-2.6922972202301025,0.5926087498664856,0.6535794734954834,1.3227148056030273,-0.30970555543899536,0.6737241148948669,-0.07689360529184341,-0.5826479196548462,-0.46180808544158936,-0.756443440914154,0.7494450807571411,0.8116823434829712,-0.9413418173789978,-1.461488127708435,-0.0223969966173172,0.6324769854545593,-0.38339316844940186,-0.8365947604179382,-1.0705379247665405,-0.2330041378736496,0.7824371457099915,-0.5340267419815063,0.4758053123950958,1.0705993175506592,0.45978307723999023,-0.002855431055650115,-0.12338292598724365,0.5714055895805359,-0.7066963315010071,0.8405532240867615,0.5836779475212097,-3.432725667953491,0.7355232834815979,1.345716953277588,-1.4545975923538208,0.8234574794769287,0.42465487122535706,-0.9347013831138611,0.38543984293937683,-0.18102630972862244,-0.20622050762176514,1.2079110145568848,1.7630228996276855,-0.6069953441619873,-1.9076285362243652,0.09796667844057083,-0.4033634662628174,1.841232419013977,-0.2921261787414551,0.8231452107429504,-0.4600215554237366,1.4334367513656616,0.8504287600517273,-2.303370714187622,-0.9063709378242493,0.12487304955720901,-0.7151668071746826,-0.6353178024291992,-0.33060526847839355,0.9629848599433899,1.9433703422546387,-0.3362221121788025,-1.6435670852661133,0.8406096696853638,0.08840197324752808,0.6315556168556213,0.6651349067687988,-0.3533518314361572,0.3496027886867523,1.1069695949554443,-0.30146342515945435,-2.3570001125335693,0.04669763892889023,-0.2853451669216156,2.714143991470337,0.9176398515701294,1.4107611179351807,-0.13924483954906464,1.6054707765579224,-0.2603778541088104,1.9074138402938843,1.1497873067855835,-0.1244686096906662,-1.1144757270812988,-1.435410976409912,0.5737291574478149,-0.2232031375169754,1.0061092376708984,0.029182087630033493,2.4191505908966064,-0.6036127209663391,0.913741946220398,0.7949796319007874,0.4351874887943268,1.3099088668823242,1.2304940223693848,0.1309056580066681,-0.8754720091819763,1.3021745681762695,-0.27574679255485535,0.3923838138580322,-0.6288717985153198,-2.4591057300567627,0.5668911337852478,1.067317247390747,0.8634467124938965,0.12671947479248047,-0.5124542117118835,-0.283549427986145,-0.4917893707752228,0.9522806406021118,-0.7523281574249268,1.9463210105895996,0.03948555886745453,0.5701808929443359,0.9204331040382385,0.8670659065246582,0.31193944811820984,0.8972984552383423,0.7059373259544373,-0.6598801016807556,-0.4286876320838928,0.11398593336343765,3.270437479019165,-1.0619639158248901,-0.15034011006355286,1.9279521703720093,-0.5052335858345032,0.7194179892539978,1.223398208618164,0.7208490967750549,0.8930006623268127,0.3386937379837036,0.15986168384552002,2.0141825675964355,-0.9236101508140564,0.3540365695953369,-1.111817479133606,0.6727110147476196,0.040242575109004974,0.5881736874580383,-0.5352814793586731,0.38050341606140137,-0.6052270531654358,-2.3284828662872314,-0.002173233777284622,-3.738870620727539,-0.22950537502765656,1.2519643306732178,-1.2203365564346313,-0.21116122603416443,-3.166675090789795,1.2700340747833252,2.5173208713531494,0.6673431992530823,-0.4780128300189972,-0.14305511116981506,0.32614657282829285,1.6942763328552246,0.40711045265197754,-2.0765233039855957,-0.7300258874893188,-1.076427698135376,-1.4524617195129395,0.0610366053879261,0.4452228844165802,-0.17249810695648193,-0.5096461772918701,0.4632836580276489,0.702031135559082,0.8788323998451233,-2.0837864875793457,-0.48027321696281433,0.5725041031837463,1.0995625257492065,0.9653193354606628,-0.25141215324401855,1.0773617029190063,-0.7051161527633667,-0.5706582069396973,-0.11613867431879044,-0.30839434266090393,-0.8041711449623108,0.31956732273101807,1.3429964780807495,-1.2997925281524658,0.4765782952308655,-2.5690813064575195,0.5580774545669556,-1.5259459018707275,-0.03451097756624222,-0.539466917514801,-0.027319829910993576,0.1709156334400177,1.3539185523986816,0.8696585893630981,0.13404621183872223,1.373618721961975,0.7364495396614075,-0.20688346028327942,0.6562328338623047,-1.157682180404663,0.3543049395084381,-0.31302905082702637,-1.0168449878692627,0.9829047918319702,0.1822255551815033,0.7274330258369446,-1.0126802921295166,0.5330289006233215,0.6788610219955444,1.4300346374511719,0.6057372689247131,-0.07030900567770004,0.1798417568206787,-0.3205808997154236,-0.9325041770935059,-1.2063459157943726,0.5469512343406677,-0.3268970251083374,-0.8285556435585022,0.9718055129051208,0.06279342621564865,-1.5195261240005493,-0.00579793518409133,1.0528137683868408,0.08183816075325012,-1.0575138330459595,0.5554283261299133,0.12851664423942566,4.460549831390381,0.6841477155685425,0.05591346323490143,4.633551597595215,1.2260866165161133,0.8291471600532532,-0.5842127799987793,-0.7604114413261414,-1.6042895317077637,-0.23303566873073578,0.33647122979164124,0.06002610921859741,-0.9884421229362488,-0.654634952545166,-0.056596722453832626,0.4587838351726532,-1.1125448942184448,-0.9937019348144531,0.5456339716911316,-0.730330765247345,-0.18944618105888367,1.8602523803710938,-0.5727567076683044,-0.06544746458530426,-0.6044673919677734,-0.3633875548839569,0.5161063075065613,-0.7480943202972412,-0.4700648784637451,1.536396861076355,0.6740305423736572,-1.0833022594451904,-1.0756887197494507,-0.054858047515153885,1.3257259130477905,1.8923840522766113,-2.010145902633667,-0.2258208990097046,-0.3142625093460083,0.026637857779860497,1.3035284280776978,-1.9274998903274536,0.8406328558921814,-0.46176525950431824,0.7414946556091309,-0.19014498591423035,-0.4916549324989319,-0.7517500519752502,-1.7109638452529907,1.2986819744110107,-0.2846134603023529,-0.16971935331821442,-2.432018995285034,1.2334212064743042,-1.479924201965332,-0.23502661287784576,1.9038010835647583,-1.029749870300293,-0.9417386054992676,-0.8529024124145508,1.59153413772583,-1.9038103818893433,-0.3951832056045532,-1.4801020622253418,0.9281172752380371,-0.12416734546422958,0.5460725426673889,1.3563621044158936,0.2844150960445404,0.4657273590564728,0.045140113681554794,-2.4736578464508057,0.1358858197927475,-0.9390857815742493,-0.06284645944833755,-0.10210857540369034,0.6800698041915894,-0.2884667217731476,-0.3793376684188843,-0.6507893204689026,0.24950766563415527,0.5278841257095337,-0.2552299499511719,0.154253289103508,0.3190799355506897,0.5975877642631531,-0.42978471517562866,-2.105464220046997,-0.36213231086730957,-0.9464831948280334,0.7718350887298584,-0.7614309191703796,0.837238073348999,-0.3032890856266022,0.0850236788392067,0.10347958654165268,0.5468934178352356,-1.522634506225586,-1.635127305984497,2.1050097942352295,0.6434904932975769,0.3893858790397644,-2.492281198501587,-0.290481835603714,-0.10360587388277054,-0.8714351058006287,-1.0363171100616455,-2.3270797729492188,-0.8989748954772949,-0.7015288472175598,0.12742742896080017,0.6909665465354919,-0.18863870203495026,0.7260828018188477,0.6368615031242371,0.98872309923172,1.094300389289856,-0.42945051193237305,-0.060198888182640076,0.22118538618087769,-0.5714412331581116,-0.2529470920562744,-1.3135737180709839,0.033297374844551086,-1.9389818906784058,1.1400253772735596,-2.780529737472534,0.7126167416572571,-0.05244888737797737,-1.2824020385742188,-0.5649182200431824,0.10359552502632141,1.0854754447937012,1.0746113061904907,-0.21536394953727722,1.7373181581497192,-0.4670262932777405,-0.9495354294776917,-0.8041702508926392,3.059877634048462,0.6744221448898315,1.5633082389831543,-1.2007979154586792,0.029705483466386795,0.5047953128814697,0.07890170067548752,0.7894845604896545,0.3789512515068054,1.0832687616348267,1.388716697692871,-0.7341017723083496,-0.09465794265270233,0.12360642850399017,-1.069198727607727,-0.4874069094657898,0.9782277941703796,-1.6633739471435547,-2.8289809226989746,0.6793823838233948,0.29640597105026245,0.49284860491752625,0.03392959386110306,0.6400578022003174,1.0852868556976318,-1.1141782999038696,-1.0690959692001343,0.8246813416481018,-0.2605348229408264,0.47278839349746704,-1.739235520362854,0.847233235836029,0.43297210335731506,-0.0484759695827961,0.5108932852745056,1.2835423946380615,0.6367348432540894,-0.4802764058113098,-1.5600627660751343,-1.585088849067688,-0.4505040645599365,0.7101960182189941,1.3025622367858887,-0.21825501322746277,-1.4737352132797241,-0.42175596952438354,1.6494381427764893,0.039975356310606,1.8242130279541016,0.5160291790962219,-0.8300632834434509,0.8562924861907959,-1.7610623836517334,0.7766380310058594,0.22590382397174835,1.7506797313690186,1.7613991498947144,1.2197012901306152,1.1905763149261475,0.8403140902519226,2.710869789123535,-0.9650501012802124,0.1679154932498932,0.807392418384552,-1.849453091621399,-1.2314521074295044,-0.12305274605751038,0.5141141414642334,0.5745488405227661,-0.8754751682281494,1.018038272857666,-0.4829823672771454,1.2807371616363525,-0.33640292286872864,0.021899856626987457,0.2188161015510559,1.6092299222946167,-0.011942188255488873,0.3210159242153168,1.233557939529419,-0.2703133821487427,-0.9441012144088745,-0.5376959443092346,-1.4923278093338013,-0.004063089843839407,-1.910187840461731,-1.2537453174591064,0.004889422561973333,-1.1872117519378662,1.2319329977035522,-1.4916855096817017,-1.7204829454421997,0.7873513698577881,1.1843611001968384,0.06249453127384186,0.07518696784973145,-2.003842353820801,0.9440109133720398,-0.8699068427085876,-0.7475829124450684,0.33346232771873474,-0.5819715857505798,-0.06272649019956589,0.08226501196622849,-0.4387326240539551,-0.3883991837501526,-0.6843892931938171,-0.12492505460977554,0.14910854399204254,-0.715663492679596,-0.9905615448951721,-0.8494614362716675,-1.0824732780456543,0.05831919237971306,0.8366087675094604,-0.12010028213262558,-0.7178627848625183,-0.5755427479743958,0.525672972202301,1.7550374269485474,1.7774171829223633,1.3659279346466064,-1.0751712322235107,-0.1650446504354477,2.824333429336548,-1.1248201131820679,0.07254154235124588,-1.1689518690109253,-1.4029395580291748,0.7213112115859985,-0.786452054977417,-1.148175835609436,-1.143921136856079,-0.4481044411659241,-0.0706222802400589,-0.9522988796234131,-0.5197352170944214,0.7209385633468628,0.27895817160606384,-0.17115753889083862,2.275331497192383,0.05122761055827141,1.7097522020339966,1.2506465911865234,-1.1846137046813965,1.454576849937439,0.4538567364215851,-0.5830233097076416,-0.5918649435043335,-0.8868300914764404,-0.3805650472640991,-0.6799558997154236,-0.4497973322868347,-0.6220346093177795,-0.21894444525241852,-0.8353998064994812,-0.7327568531036377,-0.2725617587566376,0.2910618484020233,-1.0292664766311646,-0.7651612758636475,0.22933833301067352,0.4387247562408447,-0.969948410987854,-0.3633078336715698,1.6014301776885986,-0.45361363887786865,-0.30388179421424866,0.2758234441280365,1.5225740671157837,-0.202486053109169,0.5323641896247864,0.10536123067140579,-0.9128479361534119,-0.29950013756752014,-0.9482434988021851,-0.05992978811264038,-0.5274031758308411,2.087068557739258,-1.3350425958633423,-0.024023251608014107,0.6491066217422485,-0.6347657442092896,-0.5486178398132324,-1.1324536800384521,0.17967768013477325,-0.9436200261116028,0.5716907382011414,-0.31108009815216064,0.9834864139556885,0.8780341744422913,-0.9261730909347534,1.0847387313842773,0.7813214659690857,-0.8166036605834961,-0.5266926288604736,0.9571889042854309,-0.48033642768859863,-1.0495070219039917,-1.0412523746490479,-0.5185092091560364,-0.5086053013801575,-1.2664564847946167,0.3446345031261444,0.2581176161766052,-1.113250732421875,0.6466572880744934,0.09259464591741562,-1.6159982681274414,-0.8097139000892639,0.5678113698959351,-0.21122674643993378,1.3328962326049805,-0.6258524656295776,0.7350171208381653,0.49622809886932373,0.07846304029226303,0.3792164921760559,-1.7003462314605713,1.494821310043335,-0.7333173751831055,0.2661910057067871,0.6554208397865295,0.5541979670524597,-3.0072431564331055,0.5989924669265747,-0.7575302124023438,0.6166884899139404,0.0714978277683258,-0.20262356102466583,0.4634912312030792,0.44165709614753723,1.2849955558776855,0.46574199199676514,0.8196445107460022,0.5780830383300781,0.18917162716388702,0.7321829199790955,-0.43371161818504333,-0.5050866007804871,2.052161693572998,0.2051541656255722,0.45350635051727295,0.7186087965965271,-0.5127543210983276,2.805248737335205,-0.34506914019584656,0.7933937907218933,-0.27327558398246765,-0.09822265058755875,0.7154364585876465,-2.3604910373687744,-0.44221118092536926,-2.57235050201416,-1.5922118425369263,-0.9515804648399353,0.585820198059082,0.3280726969242096,-0.3791755437850952,-0.3592599928379059,0.8614113330841064,1.202917218208313,0.3047002851963043,0.27075546979904175,-0.8895360231399536,0.977862536907196,-0.04069600626826286,-0.932302713394165,0.2365475744009018,-0.3071242570877075,-0.7960420846939087,-0.3749922513961792,0.8458736538887024,0.5467455983161926,-0.6340246796607971,0.3166669011116028,-0.534267783164978,-0.20833097398281097,0.3072722256183624,0.9128738045692444,0.6656767725944519,-1.326233148574829,-1.1620780229568481,-0.40403875708580017,1.2409639358520508,-0.23447345197200775,-0.4738292098045349,-0.17538104951381683,-0.8360726833343506,0.15734075009822845,0.6483437418937683,0.6053844690322876,-0.8897115588188171,2.6631853580474854,0.23201149702072144,-0.7608270645141602,0.11939401179552078,0.5716256499290466,-0.15811659395694733,-0.1740172654390335,-0.3918757140636444,-1.6197354793548584,0.7041566967964172,-1.32915198802948,0.055150728672742844,-1.7670934200286865,0.6627370715141296,-1.4343127012252808,-0.8653687238693237,2.5346803665161133,-0.7341409921646118,0.46729281544685364,-0.2737305760383606,0.6321836113929749,0.9761587977409363,-0.5800417065620422,-0.28453463315963745,0.2898927330970764,-0.8191968202590942,1.4899200201034546,-0.1436753123998642,0.17054320871829987,1.1048437356948853,1.9653362035751343,0.48918312788009644,-0.3980081081390381,-0.13778501749038696,-0.44788867235183716,-0.2958991527557373,2.720123291015625,-0.24236662685871124,-0.2538689374923706,-0.7982375025749207,1.267481803894043,0.659462034702301,-0.21725721657276154,-0.3463606834411621,-0.2537250816822052,-0.5030989050865173,0.175278902053833,-1.4804023504257202,-1.1937187910079956,-0.9696006774902344,-1.4732078313827515,0.9065330028533936,0.8797816634178162,1.1021350622177124,-0.47199001908302307,-1.1190695762634277,-0.224217489361763,0.25759440660476685,-0.3413485586643219,-0.12615786492824554,0.7809450626373291,-0.04104500263929367,0.7476881146430969,-1.9244695901870728,2.460707426071167,0.28277266025543213,-0.32707518339157104,-0.9747987389564514,0.48268023133277893,-0.45194533467292786,-1.6890981197357178,-1.9383410215377808,-1.1684215068817139,-0.09693577885627747,-0.22885474562644958,0.0789385661482811,0.8971976041793823,-0.15294688940048218,0.3063187301158905,-1.4597560167312622,1.8672254085540771,-1.4758062362670898,1.2794792652130127,-0.07620278745889664,-0.2120364010334015,0.6412599682807922,-1.0527409315109253,0.5723429322242737,-0.945290744304657,0.5980411767959595,-0.27034780383110046,0.47854602336883545,1.118185043334961,-1.4831385612487793,0.037819571793079376,0.044040895998477936,-2.198418378829956,0.47335362434387207,-0.8740771412849426,-0.8294726610183716,-0.6792646050453186,-0.32400864362716675,-0.6565890908241272,-1.1461987495422363,-0.9047842025756836,-0.8342123031616211,0.4970242977142334,0.32501211762428284,-0.37224313616752625,-0.26006636023521423,-0.5574804544448853,-1.0785415172576904,-1.1950663328170776,0.31580618023872375,1.408145785331726,0.6302971243858337,0.9585234522819519,2.588010549545288,-2.82460880279541,-0.7974624037742615,1.5038456916809082,0.5115946531295776,-2.240370750427246,0.044425372034311295,-0.7940605282783508,-0.872191309928894,1.1621146202087402,-0.7195524573326111,-0.8391687870025635,-0.31215429306030273,0.950828492641449,-0.30711016058921814,2.06485915184021,0.26525014638900757,-0.7198396921157837,0.18118120729923248,1.2830958366394043,-0.03385501727461815,-0.11080284416675568,-0.8509235978126526,-0.6731622219085693,0.217294842004776,-0.7159863710403442,-1.3552570343017578,0.1215318888425827,0.23234675824642181,-0.20519666373729706,0.12993061542510986,-0.5870582461357117,1.8438222408294678,1.4074265956878662,1.3810945749282837,-0.8972620368003845,-0.07405692338943481,-0.04992556571960449,1.2500057220458984,1.0375019311904907,-0.8244088888168335,0.14351588487625122,-1.6436573266983032,-1.64530348777771,-2.734426259994507,-0.2669839859008789,-0.6936366558074951,0.01554158702492714,0.6241046786308289,0.5123519897460938,0.5532621145248413,0.21522250771522522,-0.6535432934761047,1.4984632730484009,0.6233822703361511,-1.2407054901123047,-0.21087601780891418,0.30065709352493286,0.6428338885307312,0.14630116522312164,-0.3279906213283539,0.2913561463356018,-0.5247843861579895,-0.42689284682273865,-0.3573634624481201,-0.23188132047653198,1.0869479179382324,0.5264385342597961,-0.8387438058853149,-1.1502461433410645,0.5813214778900146,0.2393583506345749,-0.09551068395376205,0.22151009738445282,0.07865429669618607,1.5395065546035767,-0.3825160562992096,-0.19902919232845306,0.578309178352356,-0.29181185364723206,0.2390996515750885,-0.5524511337280273,0.18922065198421478,2.0426547527313232,-2.6820993423461914,-0.475536048412323,0.520446240901947,-1.048632264137268,-0.7366737723350525,-1.0617151260375977,1.2515612840652466,0.2027468979358673,-2.2938973903656006,0.8312541842460632,-0.7041513919830322,-0.7348797917366028,-1.563962459564209,-0.40203484892845154,-1.0939611196517944,-0.8356550931930542,0.2108553797006607,1.0537474155426025,-0.8901475071907043,-0.14799530804157257,0.9973896145820618,1.3844951391220093,2.5108389854431152,0.0220374446362257,-0.6728442907333374,-0.5958719849586487,0.1793898046016693,0.39617815613746643,0.22629834711551666,0.9116151928901672,-0.5772179365158081,-0.18123631179332733,1.8073583841323853,-0.7981429696083069,0.015171991661190987,0.8535771369934082,-0.6687328815460205,-0.03022320382297039,0.7040647864341736,-0.058296073228120804,-0.748862624168396,-0.726017415523529,0.9967120885848999,0.39316466450691223,0.5984002947807312,0.9964589476585388,-0.37315526604652405,1.598771572113037,0.532134473323822,0.36984241008758545,-1.3664896488189697,-0.793828010559082,0.27031537890434265,0.6254879832267761,-0.6273831129074097,1.5909496545791626,-3.167651414871216,-0.6569202542304993,-1.0496032238006592,-0.5853288769721985,-0.34849488735198975,0.22754737734794617,0.0719059482216835,-1.1067063808441162,0.198434516787529,-0.4855920076370239,-0.2649100720882416,-0.6356304287910461,-0.7257135510444641,-0.8192113637924194,-0.3417680561542511,-0.41641902923583984,2.370062828063965,-1.026063084602356,2.8845808506011963,-0.9491226673126221,-1.079390048980713,-0.30177101492881775,0.4983437657356262,-1.8447812795639038,0.636962354183197,-0.7696302533149719,-0.6721258163452148,-0.4205622673034668,-0.45604878664016724,-0.8719782829284668,1.3158915042877197,-0.8417394757270813,-1.3526636362075806,0.9085286855697632,0.7608449459075928,1.891998291015625,2.415562152862549,-0.2680637836456299,-0.1950010359287262,0.7635799646377563,0.03940295800566673,-1.3960962295532227,1.1136528253555298,-0.031661324203014374,0.7998169660568237,-1.2015693187713623,0.09105335921049118,-0.374835729598999,-0.5675287842750549,0.04754923656582832,0.9657825231552124,-0.8506282567977905,-1.1911424398422241,0.3288115859031677,-1.3161906003952026,2.2873780727386475,-0.2703152000904083,0.14014607667922974,-1.6426994800567627,0.3392733931541443,0.8205750584602356,1.2028356790542603,0.9607543349266052,-0.312896192073822,-0.2815152704715729,-0.1817712038755417,-0.8160118460655212,-1.8390518426895142,-0.7318109273910522,0.40909284353256226,-1.804184079170227,-3.0243871212005615,0.2862216532230377,-1.1866079568862915,-0.2805648744106293,-2.0368003845214844,0.14086797833442688,-0.4309273362159729,0.7405352592468262,-0.5986359119415283,-0.2565324306488037,-0.6613928079605103,0.8858134150505066,-0.751977264881134,-0.22584673762321472,-0.8523380160331726,-1.050412893295288,0.9410199522972107,-0.5815410017967224,-0.21429169178009033,1.253777265548706,1.0061585903167725,0.10930655896663666,0.8584763407707214,-0.5248330235481262,0.015534504316747189,-0.887657642364502,-2.793354034423828,0.5533583164215088,0.08645738661289215,1.2014098167419434,-0.5660815834999084,-0.003419846063479781,0.31055182218551636,-1.0994293689727783,0.6863919496536255,0.4507461488246918,-0.27334555983543396,0.08091355860233307,-0.816693127155304,0.31377938389778137,-0.8664273023605347,-1.4808766841888428,0.2578648328781128,-0.676871657371521,-0.2866106331348419,-1.5184928178787231,-0.34399914741516113,1.0135540962219238,0.668571949005127,0.2974396049976349,0.7772845029830933,-2.6062679290771484,0.3303099572658539,1.0614421367645264,-0.7781068682670593,-0.3611155152320862,-0.34226498007774353,-0.20147384703159332,-0.7323591709136963,0.9743742942810059,0.147433802485466,0.4792217016220093,0.4196201264858246,-1.6451072692871094,1.3347833156585693,2.5002167224884033,-0.653469443321228,-0.235677108168602,-0.45344802737236023,0.17239852249622345,-0.13289465010166168,0.9870930314064026,1.2381627559661865,1.6494712829589844,1.1289540529251099,1.0095101594924927,-0.18322832882404327,-0.19000138342380524,-0.29785746335983276,-0.9290232062339783,-1.0279252529144287,-2.030228614807129,0.9809858798980713,-0.427547812461853,-1.4395908117294312,0.11571043729782104,-0.851821780204773,0.11000274866819382,-0.22104604542255402,0.7653460502624512,-0.8991211652755737,-0.6292089819908142,-1.984749674797058,-1.2335700988769531,0.1197289228439331,-0.4605333209037781,-0.5956963300704956,-0.6148484945297241,-1.9269658327102661,2.460198402404785,-1.9376201629638672,-0.5704991817474365,0.019425949081778526,1.7020652294158936,0.3723917007446289,-1.2780207395553589,-0.5905689597129822,-0.07394280284643173,-1.4038656949996948,0.6335038542747498,-1.2439501285552979,-0.2343018501996994,-0.2669728696346283,0.08637518435716629,-0.26942941546440125,-1.4886046648025513,-0.35767436027526855,-1.391648769378662,0.9739288687705994,-1.4693479537963867,0.9043028354644775,0.2607184648513794,-0.6187616586685181,-0.960099995136261,0.32176196575164795,0.09697036445140839,0.24839679896831512,-1.414664626121521,0.5478370189666748,0.8358729481697083,0.02956867404282093,0.1632131040096283,-2.756418466567993,2.074265480041504,-0.27283406257629395,0.5513806343078613,-0.7294518947601318,-0.20859503746032715,-0.15810418128967285,0.34356167912483215,-0.9786823987960815,0.605247437953949,0.6898927092552185,-1.2889444828033447,0.517678439617157,1.0726507902145386,-0.8176436424255371,-0.5999302268028259,1.4194389581680298,2.5080835819244385,-1.3307195901870728,2.2179527282714844,-0.6854239702224731,-0.12246830761432648,-1.1831172704696655,0.30400386452674866,-1.210268259048462,-0.056191302835941315,-0.14260181784629822,-1.4941027164459229,0.5381351113319397,0.395839661359787,-0.9299741387367249,1.3883293867111206,1.1822280883789062,-0.3372589945793152,0.2754732072353363,-1.1758553981781006,0.3221675455570221,1.0687042474746704,0.6491274833679199,1.2386523485183716,0.20693236589431763,-0.11914831399917603,1.1200355291366577,0.2126983255147934,-1.419242024421692,0.1592174768447876,0.054909270256757736,1.11269211769104,-1.0727344751358032,0.14668725430965424,-0.579001784324646,1.2416163682937622,0.07933913916349411,-1.1209220886230469,-0.9972705841064453,0.2566007375717163,-0.7661162614822388,0.14287126064300537,0.8193257451057434,-0.1206277534365654,-0.20527736842632294,0.05870015546679497,0.30719539523124695,1.0420024394989014,0.024340474978089333,-0.2974909543991089,-0.20501281321048737,-0.43058034777641296,0.36076486110687256,0.049608014523983,0.7449347376823425,-0.6783603429794312,-0.6027671098709106,0.18135616183280945,0.2913503348827362,-0.5706980228424072,0.6289851665496826,-1.4896241426467896,-1.2499226331710815,-1.355827808380127,1.0494953393936157,0.5695041418075562,2.6784396171569824,-3.979273796081543,-0.6070730686187744,-1.1852306127548218,1.3342056274414062,-1.020492434501648,-0.41443580389022827,-0.30643022060394287,0.06675954163074493,0.6099047064781189,2.4067821502685547,-0.2532331049442291,-0.022684302181005478,-0.4505052864551544,1.4961879253387451,-0.5704817771911621,-0.9215083122253418,-0.7333283424377441,1.7844852209091187,-0.019860634580254555,1.0408246517181396,0.28294122219085693,0.37214961647987366,-0.9321098923683167,0.5116191506385803,0.6968674063682556,0.3269885182380676,-1.541480541229248,-0.8847216367721558,2.3313839435577393,-0.5160338878631592,-0.2511022388935089,-0.7240824699401855,-2.0209550857543945,-0.2908332943916321,1.6863391399383545,-0.5662260055541992,0.32781583070755005,0.6281501650810242,-0.07758811116218567,0.3761560916900635,-1.6409666538238525,1.332887053489685,2.1352274417877197,-0.31051206588745117,-0.20480377972126007,-0.37800297141075134,0.9940136075019836,0.1441068798303604,0.46404603123664856,-0.37520307302474976,-1.4558738470077515,-0.3668912351131439,-0.3189336955547333,1.5546910762786865,-0.7351352572441101,0.2637275755405426,0.913662314414978,-0.36170291900634766,-0.6430317163467407,-1.7341723442077637,-2.415283679962158,0.3223644196987152,1.6009628772735596,-0.9237020015716553,0.25475895404815674,-0.2504478096961975,-0.9420291781425476,-2.4087462425231934,-0.9508354067802429,-0.7922630906105042,0.12641015648841858,-1.02305269241333,0.0022923890501260757,-0.8157567381858826,-1.011710286140442,-0.014593382366001606,1.6907967329025269,0.6043943166732788,-0.11346767097711563,0.8745450377464294,1.1595463752746582,0.12182716280221939,-0.030708104372024536,0.514609694480896,0.0035824133083224297,0.12307059019804001,0.583051860332489,-0.9033427238464355,-1.3513915538787842,-0.02761548012495041,1.4804058074951172,-0.2399200052022934,-0.9577863812446594,0.9601202011108398,0.030664188787341118,-1.4768400192260742,0.33981427550315857,-0.8561531901359558,-0.761726438999176,-0.0975569561123848,-0.012607469223439693,-0.7791517972946167,-0.2970927059650421,0.5960316061973572,-0.06646133959293365,-0.8670546412467957,-0.0017592157237231731,-0.05797090381383896,0.6048835515975952,-0.032498717308044434,-0.2137773185968399,0.8214807510375977,-0.18092963099479675,0.4175959825515747,0.43060243129730225,0.03118216060101986,0.0992802307009697,-0.2775712311267853,0.021379517391324043,1.8127427101135254,0.6392443776130676,-0.5787297487258911,-0.7515299320220947,0.9559419751167297,0.3579775393009186,-1.689111590385437,0.9750152230262756,-0.15682503581047058,-1.3283846378326416,0.0324554443359375,1.0095237493515015,-0.3038579821586609,0.4855042099952698,-0.24747642874717712,-0.19366854429244995,1.428960919380188,0.20920886099338531,-1.1688917875289917,-0.05372665449976921,-0.5087546706199646,0.4173528552055359,-0.7980002760887146,-0.1991085410118103,-0.11438195407390594,0.35810962319374084,-1.2735005617141724,0.34538522362709045,-0.6081931591033936,-0.5475527048110962,-0.5995769500732422,0.7404552102088928,0.13734909892082214,-0.05752529948949814,-0.3458370864391327,-0.44638970494270325,0.92475426197052,0.9746623635292053,-0.5821990370750427,0.45300060510635376,-0.2813401222229004,0.39302578568458557,0.27632367610931396,-1.6535098552703857,0.35416877269744873,-1.107028603553772,-0.5278205871582031,0.8653677701950073,1.4794199466705322,-0.8968734741210938,0.9297975301742554,-0.25393274426460266,-0.3467913568019867,-0.19046053290367126,-1.3193278312683105,-0.2618512213230133,-0.8083270788192749,-0.4812266230583191,-0.8340915441513062,-0.2688130736351013,0.1833426058292389,-0.6438745856285095,-1.1624220609664917,-0.206426739692688,0.5365098118782043,0.10353998094797134,1.1212528944015503,0.17097124457359314,-2.280393600463867,-1.1085591316223145,0.10725167393684387,-1.216011643409729,-0.16966192424297333,-0.039426546543836594,-0.7213481068611145,1.0564560890197754,0.3813496232032776,1.0553282499313354,-0.10976922512054443,-0.7630712389945984,-1.1533162593841553,-2.235302686691284,-0.39561727643013,-2.434802293777466,-0.4062865972518921,1.0103590488433838,-1.59543776512146,-0.01632383093237877,-0.21495802700519562,-1.310640811920166,0.8061603307723999,0.04678363353013992,-0.9971915483474731,0.6401367783546448,1.0189456939697266,0.010930201970040798,-2.161011219024658,-0.8022510409355164,-0.8805542588233948,0.637320339679718,-0.22613376379013062,-0.26360222697257996,-0.7479448914527893,-0.4655322730541229,0.35406652092933655,0.29371020197868347,-0.8811078071594238,1.0697174072265625,0.20638836920261383,0.04724675416946411,-0.4440387189388275,-0.47208109498023987,0.6246759295463562,-0.19581648707389832,0.049897514283657074,-0.06721667945384979,0.2759524881839752,-0.7477165460586548,-1.7172434329986572,-0.32013338804244995,1.2523499727249146,-0.12508134543895721,-0.40728190541267395,-0.10985754430294037,-0.15865075588226318,0.7681915163993835,-0.06908876448869705,-0.18132831156253815,0.013309204019606113,0.764099657535553,0.7544543147087097,0.043389853090047836,-0.6901065707206726,-0.12621533870697021,-1.0082906484603882,-0.8925549983978271,-0.75527024269104,-0.20736750960350037,-0.19089467823505402,0.7479689121246338,-1.6336382627487183,-1.3530555963516235,-1.9522641897201538,0.7208679914474487,0.6237689256668091,0.6298202276229858,-0.5134905576705933,-0.33919307589530945,0.0013321846490725875,-2.2173471450805664,-0.9071271419525146,1.0212610960006714,2.096275806427002,0.9506847858428955,-1.6174386739730835,-0.32096004486083984,1.06737220287323,-0.2690976858139038,-0.8988075852394104,1.0303707122802734,0.6237593293190002,0.4663456380367279,-0.22746925055980682,0.0501638762652874,1.608237385749817,0.8609279990196228,0.7521412968635559,0.003604146186262369,-1.5279204845428467,-0.22635143995285034,-0.10343173146247864,-1.8043832778930664,-0.6351429224014282,0.5392827987670898,-0.6678351759910583,0.1850423365831375,0.004579927772283554,0.9269060492515564,-0.7030245065689087,0.9694037437438965,-0.3250635862350464,-0.6890677213668823,0.7092087268829346,2.0727269649505615,-0.6643217206001282,-1.272975206375122,0.5290592908859253,-0.37683629989624023,0.1319536566734314,-0.5839778184890747,1.6014264822006226,-1.7530531883239746,1.0886855125427246,-0.7631759643554688,-0.28094562888145447,-0.5392423272132874,-0.20574919879436493,0.15184277296066284,-0.4724539518356323,-0.133201003074646,1.0066657066345215,-1.1521562337875366,-0.6923825740814209,0.31231167912483215,0.8617808818817139,0.028339212760329247,0.07193726301193237,-0.7260479927062988,0.24673506617546082,-0.25489065051078796,-0.7695478796958923,0.10057976096868515,-0.1098124161362648,1.2316151857376099,-0.8625390529632568,-0.3111205995082855,-0.5553575754165649,-1.3303321599960327,-0.2707849442958832,0.73514723777771,-0.7682804465293884,-0.7660365104675293,0.7336642146110535,-1.6053236722946167,0.6001267433166504,-0.25651344656944275,-1.4400920867919922,0.9016090631484985,-0.621093213558197,-2.023573637008667,-2.635524272918701,-1.4372096061706543,-0.6461310982704163,-1.5001364946365356,-1.198675274848938,-0.030303528532385826,-0.27787700295448303,-0.7060528993606567,0.16298064589500427,-0.1350601613521576,0.6897056698799133,0.1804978996515274,0.21020354330539703,-0.7074963450431824,-0.9810906648635864,0.8150883913040161,0.18784195184707642,-0.40056362748146057,-0.08657864481210709,1.2553801536560059,0.9121200442314148,-1.2599174976348877,1.6864407062530518,-0.9536706209182739,-0.07489064335823059,1.9069246053695679,-0.7065997123718262,-1.139538049697876,1.2672425508499146,0.936756432056427,-0.9129583835601807,-0.13158206641674042,-0.66737961769104,0.5549982786178589,-2.095757007598877,0.36609822511672974,-0.4377972483634949,-0.08601801097393036,0.3691699206829071,0.9001733660697937,-0.05342003330588341,-1.160879373550415,-1.122455358505249,-0.7392627596855164,-0.33509835600852966,0.3528251349925995,-0.1521362066268921,-0.3221554160118103,0.748424768447876,-0.48802417516708374,1.0160728693008423,0.9517025351524353,-0.6686586737632751,-1.0554757118225098,-0.10613018274307251,0.7200418710708618,0.35924652218818665,-0.004291020333766937,-0.17777293920516968,1.142565369606018,1.0228784084320068,-0.7453809380531311,-0.599330723285675,0.9677614569664001,0.6281559467315674,-1.9194103479385376,-0.004458917770534754,-0.16999875009059906,-0.43809032440185547,-0.4778601825237274,-0.5530192852020264,-0.8578268885612488,-1.5926792621612549,-0.3040773570537567,-0.25921520590782166,-1.2381240129470825,-0.9228248000144958,-0.5961560010910034,-0.9869943857192993,-0.25005868077278137,1.7835626602172852,0.294917494058609,-0.1451755315065384,-1.1857737302780151,-0.2945084869861603,-0.8776115775108337,1.296532154083252,-0.3613327443599701,-0.23234717547893524,-1.008011817932129,0.0847281962633133,1.2810858488082886,-0.035346824675798416,0.10716468840837479,-0.15057173371315002,-0.34121811389923096,0.27360519766807556,-1.5004515647888184,1.5001404285430908,0.25384706258773804,-1.3854693174362183,-0.34293481707572937,-0.9041247963905334,-1.3114149570465088,-0.6307988166809082,0.28929466009140015,-1.7185168266296387,0.12739700078964233,0.2811633050441742,-1.0862680673599243,-0.7620694041252136,0.7004023790359497,-0.9232091903686523,1.884730577468872,-0.5852936506271362,-0.26999664306640625,-0.5991158485412598,0.02186669036746025,-1.11214017868042,-0.27690044045448303,0.445991575717926,-0.9436923861503601,0.9350512027740479,-0.9522382616996765,0.6051188111305237,-0.8433682322502136,-0.2204780876636505,-0.7731375694274902,0.3113105595111847,-0.40225693583488464,-0.3143826723098755,-0.27509477734565735,0.10555393248796463,-0.6868872046470642,-1.3304544687271118,-1.2127735614776611,0.44376322627067566,0.10134683549404144,-0.495418518781662,0.531817615032196,-0.14069679379463196,-1.6438931226730347,-0.6863768696784973,-0.6232109069824219,0.5399262309074402,1.0039477348327637,-0.25777438282966614,-0.9916080236434937,-0.34608227014541626,0.9360665082931519,0.5822303891181946,-1.3839713335037231,0.9346954822540283,-0.5256519317626953,-0.07289574295282364,-1.9025442600250244,0.2299250215291977,0.24996422231197357,1.3006261587142944,-1.1144812107086182,0.3843788206577301,-0.42882031202316284,-0.6914049983024597,1.0348154306411743,0.5575664639472961,1.9517236948013306,0.06724382191896439,0.2548958361148834,0.33196765184402466,-1.25508713722229,-0.12010610103607178,-0.7310595512390137,-0.8310474157333374,-0.4192814826965332,0.04830190911889076,-0.5557824969291687,-0.4469345510005951,-0.41799816489219666,-1.5745328664779663,-0.2830268442630768,0.3012601435184479,0.48762834072113037],&quot;xaxis&quot;:&quot;x&quot;,&quot;y&quot;:[-0.00031560432398691773,0.08968346565961838,0.05478768050670624,0.011558383703231812,0.005250779911875725,0.09280163049697876,0.2321408987045288,0.031094830483198166,-0.07876581698656082,-0.1266966313123703,0.04365914687514305,0.04406678304076195,0.08729008585214615,0.03593400493264198,0.006362798158079386,0.05790074169635773,0.027824901044368744,0.11219080537557602,-0.06396324932575226,-0.05716025084257126,0.1661890298128128,0.05468389764428139,-0.006797729060053825,-0.0684317797422409,0.0653306320309639,-0.05032547190785408,0.070514976978302,0.0936914011836052,0.03880050778388977,0.14595264196395874,-0.11284317076206207,0.07718672603368759,0.0811542421579361,-0.11009147763252258,-0.07492954283952713,-0.048896871507167816,0.0945524349808693,-0.12778246402740479,0.02231168933212757,0.16973020136356354,0.05333822965621948,0.02812834456562996,-0.0014347708784043789,-0.006720493547618389,0.03865348920226097,-0.03797370567917824,-0.029185667634010315,-0.0904250219464302,-0.051819369196891785,0.17675623297691345,-0.00814172811806202,0.13850761950016022,-0.1095808669924736,0.08728919178247452,-0.026426801458001137,0.03685598075389862,0.14438050985336304,-0.002041448373347521,0.07415558397769928,0.042574577033519745,-0.0012307692086324096,-0.06067001819610596,0.05297619104385376,0.0427621528506279,-0.0381254144012928,0.14279872179031372,-0.033621348440647125,0.05729065090417862,-0.00518057681620121,0.0563269667327404,0.03499922156333923,0.022406641393899918,-0.053887031972408295,-0.10122475773096085,0.056174926459789276,0.04085894674062729,0.0032728081569075584,-0.03736193850636482,0.030324915423989296,-0.14422988891601562,0.09168178588151932,0.04497514292597771,-0.1666707843542099,0.09247827529907227,0.017533812671899796,0.03901684284210205,-0.07046601921319962,-0.026409592479467392,0.09912676364183426,-0.00792582519352436,0.08047297596931458,0.05179310962557793,0.1709391474723816,0.024014320224523544,0.03875289484858513,-0.060736216604709625,0.04982014000415802,-0.03877593204379082,0.00529952347278595,-0.015225200913846493,-0.08534231781959534,-0.009249606169760227,-0.005242825485765934,-0.11845900118350983,0.013242471031844616,0.04713710770010948,0.00021718470088671893,0.05402189865708351,-0.0030612654518336058,0.06956583261489868,-0.03137524053454399,-0.03205017000436783,-0.03443066030740738,-0.1012856662273407,-0.08162133395671844,0.0022354081738740206,0.10458796471357346,0.04608174413442612,-0.08850716054439545,0.034179940819740295,-0.04686632752418518,0.10771268606185913,0.07921981811523438,-0.042790308594703674,-0.07692181318998337,0.01898985728621483,-0.054237667471170425,0.05958586186170578,-0.010861705988645554,-0.06630406528711319,-0.009532812982797623,0.028111672028899193,0.0281049981713295,0.0023651092778891325,-0.023080075159668922,0.024956336244940758,0.007840271107852459,-0.029473161324858665,0.022001590579748154,0.10776139050722122,0.0023337246384471655,-0.001062877126969397,0.04383637756109238,0.14943422377109528,-0.037778664380311966,0.03775737062096596,-0.10967335104942322,-0.09338457137346268,0.018937792629003525,-0.0463625006377697,0.03990846127271652,-0.02613126114010811,-0.07456066459417343,-0.014973239973187447,-0.16816185414791107,-0.05573316663503647,-0.08402932435274124,-0.013556962832808495,0.029285438358783722,0.08576657623052597,-0.05241035670042038,0.03248361498117447,-0.005575158633291721,-0.09930171072483063,-0.031572505831718445,0.06332240998744965,0.04228394106030464,-0.0878932848572731,0.08206117898225784,-0.013903689570724964,0.012593946419656277,0.041906632483005524,0.11420965194702148,0.006937582045793533,0.02700367383658886,-0.041730962693691254,-0.013394949957728386,-0.0023075463250279427,0.02173084206879139,-0.056556202471256256,-0.056129440665245056,-0.048354510217905045,-0.03180558979511261,0.05831516534090042,-0.049272168427705765,0.07704455405473709,0.024023661389946938,0.001757984166033566,0.0807192251086235,-0.10234914720058441,-0.038019243627786636,0.05876821279525757,-0.009471830911934376,-0.033117618411779404,0.024498354643583298,-0.1574302315711975,-0.038975317031145096,0.0784413069486618,-0.005315620452165604,0.11559943854808807,-0.017314163967967033,-0.08091432601213455,-0.044011667370796204,0.14751501381397247,0.04945497587323189,-0.1435909867286682,0.030160976573824883,0.06287509948015213,0.09486659616231918,0.05492603778839111,0.07556979358196259,-0.017334578558802605,-0.04641680046916008,-4.327873102738522e-05,-0.0480562299489975,0.02224014699459076,-0.07261022180318832,-0.014373458921909332,-0.012685656547546387,-0.04258020594716072,-0.033890098333358765,0.0037018219009041786,-0.06920769810676575,-0.04251094534993172,0.010467319749295712,0.13828285038471222,0.03774256259202957,-0.04386908933520317,-0.06759105622768402,-0.07548398524522781,-0.003832875518128276,0.12181149423122406,-0.08094673603773117,0.019112223759293556,-0.07885288447141647,-0.023136913776397705,-0.06560546904802322,-0.049656737595796585,0.017273100093007088,0.03660553693771362,0.03479878604412079,0.06461197882890701,0.028770798817276955,-0.040924884378910065,-0.04677910357713699,0.013596092350780964,0.15447218716144562,-0.020339667797088623,0.010610392317175865,0.03751854971051216,-0.04274524003267288,0.22881245613098145,0.036520518362522125,-0.032979801297187805,0.04121415317058563,-0.02336001582443714,-0.0886664167046547,-0.06413118541240692,-0.012313161976635456,0.02633170410990715,0.12136290967464447,-0.03384515643119812,-0.03725382313132286,-0.2050236463546753,-0.020684605464339256,-0.04354514554142952,0.017485443502664566,0.04771501198410988,0.08535972982645035,0.12431975454092026,-0.002126160776242614,0.04797826334834099,0.02912544086575508,-0.028530927374958992,-0.0029173081275075674,-0.12572292983531952,-0.03775542601943016,0.10855919867753983,-0.0568416491150856,0.11690503358840942,-0.1076856255531311,-0.06989742815494537,0.014358697459101677,0.009311879985034466,0.06340237706899643,-0.01879381760954857,0.0005453372141346335,0.029647501185536385,0.05370904505252838,-0.007584743667393923,-0.08986666798591614,0.22168415784835815,0.01741998828947544,0.009180440567433834,-0.04759448766708374,-0.005259598605334759,-0.023378949612379074,-0.05818875879049301,0.06343813240528107,0.0744345411658287,0.0124184126034379,0.02509761042892933,0.08579372614622116,-0.017642969265580177,-0.018171794712543488,0.05259845405817032,-0.13177871704101562,-0.015218420885503292,-0.0692797526717186,-0.03189209848642349,0.04095035418868065,-0.035632114857435226,-0.0016895430162549019,0.01687900349497795,0.04570066183805466,0.1272924393415451,0.08072151988744736,-0.04038387909531593,0.0014625691110268235,-0.1187981441617012,0.020077701658010483,-0.10162528604269028,-0.09158260375261307,-0.07582966238260269,0.0500253327190876,-0.005524878855794668,0.025874515995383263,-0.05072196573019028,0.05502920597791672,-0.045143626630306244,-0.010135957971215248,0.040532924234867096,0.05058114975690842,-0.012800819240510464,-0.023355428129434586,0.07823614776134491,0.055644720792770386,-0.02741001732647419,0.006994517985731363,0.03540341928601265,-0.04117297753691673,-0.08672169595956802,0.1511622816324234,0.05416551232337952,-0.0034553189761936665,-0.017921270802617073,0.026228437200188637,-0.04269547015428543,-0.05398925393819809,0.14964909851551056,-0.029869582504034042,-0.0760810598731041,0.05562961474061012,0.00696009024977684,0.13089203834533691,0.11751021444797516,-0.060779720544815063,0.020303906872868538,0.0022581666707992554,-0.08577613532543182,-0.019240302965044975,0.022747250273823738,0.03113619051873684,0.012044692412018776,-0.0017799540655687451,0.13824240863323212,0.04053978994488716,-0.0964476466178894,0.017841961234807968,0.04306228458881378,-0.010183637961745262,0.10512683540582657,0.011777898296713829,0.07171081006526947,-0.051278453320264816,-0.04285968095064163,0.011253262870013714,-0.11626166850328445,-0.12635479867458344,-0.05450000241398811,-0.09935397654771805,-0.06344398856163025,-0.08472901582717896,0.02581348642706871,0.06614521145820618,0.036139219999313354,0.029608717188239098,-0.045355964452028275,0.013529826886951923,-0.02824787236750126,0.056456584483385086,-0.06069130823016167,-0.03437517583370209,-0.052198074758052826,-0.022085970267653465,0.05669151619076729,-0.01529757957905531,-0.053882986307144165,-0.03638198971748352,-0.022687625139951706,-0.00457607489079237,0.009365136735141277,0.1000567227602005,-0.1326664686203003,0.059940241277217865,0.08110708743333817,-0.06148989498615265,-0.03172148019075394,-0.08666251599788666,0.016899270936846733,-0.06003063917160034,0.1121014952659607,-0.09330511093139648,0.019444139674305916,-0.03127329796552658,-0.018763601779937744,0.020096823573112488,0.02546650543808937,-0.015840230509638786,0.09435420483350754,0.02838084287941456,-0.12153980880975723,0.000843152345623821,0.01599123887717724,-0.08423801511526108,-0.023556988686323166,0.10955511778593063,0.01195462979376316,-0.06824301928281784,-0.1345149725675583,-0.035874705761671066,-0.026540080085396767,-0.11438928544521332,-0.012842847034335136,0.02727140299975872,-0.015610018745064735,-0.0018176711164414883,-0.013213956728577614,-0.11126785725355148,-0.06308942288160324,-0.027004249393939972,-0.004632180090993643,-0.0786614865064621,-0.017227239906787872,0.11034274846315384,0.09907261282205582,0.031475577503442764,0.06709650158882141,-0.05932359769940376,-0.0192660391330719,-0.0156014459207654,-0.06964414566755295,-0.007082092110067606,0.07554658502340317,-0.014827359467744827,0.0199821125715971,0.04517611116170883,0.1334371417760849,-0.002130939858034253,0.03156326338648796,0.02141597308218479,-0.013640467077493668,0.02602146752178669,0.029029525816440582,-0.055818554013967514,0.013599669560790062,-0.018168313428759575,-0.06060703471302986,0.07422897219657898,-0.0818701907992363,0.051679935306310654,-0.05013500526547432,0.16336363554000854,0.04758084565401077,0.04873085767030716,-0.04995683580636978,0.0058136312291026115,-0.10328211635351181,-0.06682897359132767,0.01506138313561678,-0.12552575767040253,0.051982782781124115,0.045801546424627304,-0.14134831726551056,0.08099453896284103,0.07271911203861237,0.02930903248488903,-0.11141438037157059,0.04002790525555611,-0.020269060507416725,-0.014087841846048832,0.048594992607831955,0.027632001787424088,0.02625264786183834,-0.02037980780005455,0.011004382744431496,0.0997653529047966,0.012450890615582466,0.08760739862918854,-0.039108846336603165,0.0733974277973175,0.05358421057462692,-0.06344262510538101,0.03500383719801903,0.06437359005212784,0.051988955587148666,0.01628059521317482,0.0369453988969326,0.011949275620281696,-0.0945902019739151,0.0369560681283474,0.0225212499499321,-0.011295913718640804,0.0030093451496213675,-0.06578273326158524,-0.06725059449672699,-0.046543121337890625,-0.021393541246652603,0.0803249180316925,-0.06782818585634232,-0.00924393068999052,-0.09250283986330032,0.05858038738369942,-0.06883307546377182,-0.07943505793809891,0.07459189742803574,0.00460900878533721,-0.12616753578186035,0.06863968074321747,-0.04917566105723381,-0.0434248186647892,-0.06380371004343033,0.03782925754785538,-0.06453816592693329,-0.03228922188282013,0.004345158115029335,-0.06598764657974243,-0.10792838037014008,0.023623500019311905,0.01996593363583088,0.051219988614320755,-0.0007099128561094403,0.015105560421943665,-0.09599920362234116,0.021459879353642464,-0.0026247792411595583,0.09484673291444778,-0.019775062799453735,-0.032498184591531754,0.0692533552646637,-0.06480859220027924,0.14625220000743866,-0.014924162067472935,0.10647429525852203,-0.02567857876420021,-0.0182063989341259,0.07032281160354614,0.06766806542873383,0.14184516668319702,0.08316987752914429,0.02427937090396881,-0.014689681120216846,0.0561969093978405,-0.043388038873672485,0.030582696199417114,0.06435862928628922,-0.07191814482212067,0.125615656375885,0.002786998637020588,0.020892221480607986,-0.06110100448131561,-0.111234650015831,-0.04448755457997322,0.07197540998458862,0.040409237146377563,0.07045687735080719,0.008749391883611679,0.11414701491594315,0.05805886909365654,-0.008356360718607903,0.11928723007440567,0.0747862309217453,0.02491603046655655,-0.0707884207367897,-0.07688955962657928,-0.023274008184671402,-0.09054639935493469,-0.031587984412908554,-0.00622083293274045,0.05059591308236122,0.12627707421779633,0.006822868715971708,0.0062897843308746815,-0.0329400971531868,-0.04372309893369675,-0.012557080946862698,0.040646106004714966,-0.01774238981306553,0.005839003715664148,-0.1202063262462616,0.11123321950435638,-0.03236504644155502,0.009299611672759056,0.03379176929593086,0.05854114145040512,-0.04052300378680229,0.027231141924858093,-0.09897886961698532,-0.04300900921225548,-0.004422011785209179,-0.13795913755893707,0.004877379629760981,-0.03706951066851616,-0.10007572919130325,-0.011095631867647171,0.002190482337027788,0.0217351783066988,0.03160366788506508,0.012433236464858055,-0.048397041857242584,0.053104616701602936,0.0531092993915081,0.05507068336009979,-0.06436341255903244,0.014908554032444954,0.02516425959765911,0.0588621124625206,0.07314496487379074,0.037865474820137024,0.08209381252527237,0.0644141435623169,0.07533367723226547,-0.06888983398675919,0.04610200598835945,-0.08875866234302521,-0.03541421890258789,-0.01571357063949108,0.010908045805990696,-0.013995938934385777,-0.005683178082108498,0.023326143622398376,-0.07108834385871887,0.06438596546649933,0.04030849412083626,0.01750282384455204,-0.030025823041796684,-0.13636046648025513,-0.028301337733864784,-0.016703303903341293,0.0407678447663784,-0.14892201125621796,0.010871042497456074,-0.2088478058576584,-0.051152002066373825,-0.08187564462423325,0.05866386741399765,0.018450738862156868,0.02285558544099331,0.010358668863773346,0.035090185701847076,-0.02933988906443119,-0.10110421478748322,0.01599973440170288,0.013220136053860188,0.1467060148715973,0.019663535058498383,0.04129486158490181,-0.03701747953891754,0.01987837255001068,0.14272767305374146,0.02349110320210457,0.04044241085648537,0.027370162308216095,-0.02420852892100811,-0.03145431727170944,0.06183803454041481,0.06502626836299896,0.034937579184770584,0.05486186593770981,0.07318773120641708,-0.04259151592850685,-0.007278049364686012,0.054071832448244095,0.017407026141881943,-0.02107207477092743,-0.07390476763248444,-0.14651170372962952,-0.043072428554296494,-0.05440628156065941,-0.027044279500842094,-0.1099153459072113,-0.059374306350946426,0.014751723036170006,-0.03724125400185585,-0.12227871268987656,-0.013096784241497517,0.04443332552909851,-0.009076663292944431,0.10615269839763641,-0.09853622317314148,0.05602206289768219,0.006682278588414192,0.10880197584629059,-0.06095251068472862,-0.02485991083085537,0.006489513907581568,0.11114241927862167,-0.058154016733169556,0.04922676458954811,0.09594397991895676,0.05243737995624542,-0.003310163738206029,-0.032103173434734344,-0.04343969374895096,-0.029017016291618347,-0.027918025851249695,0.06673496961593628,-0.061817970126867294,-0.058745887130498886,-0.029381809756159782,-0.0709967091679573,0.008768061175942421,-0.04619494080543518,-0.02844974584877491,-0.012690599076449871,-0.04462160915136337,-0.05537047237157822,-0.01943969540297985,0.0824238657951355,-0.09248524904251099,0.004527064505964518,-0.07362116128206253,-0.11104098707437515,0.04308629408478737,0.0336577333509922,0.04155948385596275,-0.09956037998199463,-0.04017188027501106,0.03183140233159065,0.015569624491035938,-0.04870356619358063,-0.0052255853079259396,-0.002391310641542077,0.019606733694672585,0.0020480984821915627,-0.08411341905593872,-0.014511107467114925,-0.023813670501112938,0.04769045114517212,0.006345697212964296,-0.030271265655755997,0.028530674055218697,0.006665059365332127,-0.03054836206138134,0.009706812910735607,0.03095422312617302,0.007056545000523329,-0.06354007124900818,0.06580602377653122,0.05178190767765045,0.04991193488240242,0.0002976607356686145,-0.1275343894958496,-0.08039892464876175,-0.029534488916397095,-0.12013597041368484,0.007984067313373089,0.06984497606754303,-0.07227393984794617,-0.07699449360370636,0.06119702011346817,-0.024585530161857605,0.02719072997570038,0.09450268000364304,-0.031243762001395226,0.08243243396282196,-0.050313711166381836,0.012792222201824188,-0.06551103293895721,0.040669918060302734,0.13826507329940796,0.008517625741660595,0.0034073693677783012,0.095736064016819,0.03881502524018288,0.021547239273786545,-0.042352449148893356,0.03427047282457352,-0.04768705740571022,-0.05080306902527809,0.025291163474321365,0.062314681708812714,0.03653649240732193,-0.05346161499619484,0.004741341806948185,-0.0026155796367675066,-0.12560251355171204,0.07237735390663147,-0.005142372567206621,-0.16994132101535797,-0.06400229036808014,-0.011724533513188362,0.06555018573999405,0.09970515221357346,-0.025628311559557915,-0.014668024145066738,-0.06748484075069427,-0.047585975378751755,0.0388401597738266,0.010481560602784157,-0.017319630831480026,0.08674737811088562,0.04329902306199074,0.029642639681696892,-0.025304943323135376,-0.06490177661180496,-0.007150170858949423,-0.021517639979720116,0.014998828992247581,-0.1112232580780983,0.011321916244924068,0.021246924996376038,-0.05847064405679703,-0.07644331455230713,0.0016525703249499202,0.014535532332956791,0.05757002905011177,0.13107678294181824,0.07055317610502243,0.11672982573509216,0.10038015246391296,-0.11522959917783737,-0.03892132639884949,0.06966137140989304,-0.04139463230967522,-0.048833735287189484,-0.1114455908536911,0.01533578336238861,0.05107641965150833,0.04580119624733925,-0.01252563577145338,0.00345601630397141,-0.05636114999651909,-0.08939167857170105,-0.0265846885740757,0.015712181106209755,-0.14108775556087494,0.04279268532991409,0.011117852292954922,0.009837550111114979,0.08184459805488586,-0.04171580448746681,-0.06649480760097504,0.0652470737695694,-0.038035307079553604,-0.020021529868245125,0.11461711674928665,0.013690158724784851,0.01958569325506687,-0.07193667441606522,0.09390285611152649,0.05111788958311081,-0.042554821819067,-0.03282364457845688,-0.06051423400640488,0.02900468371808529,0.09832651913166046,0.037975866347551346,-0.05693427100777626,0.048169393092393875,-0.18871687352657318,-0.022765399888157845,-0.0015220469795167446,0.04876645654439926,-0.04163742810487747,-0.011682996526360512,-0.10859426856040955,-0.012798454612493515,-0.000996071263216436,-0.011139370501041412,-0.0011943401768803596,0.0076598431915044785,0.03986841067671776,0.05862382799386978,0.07550862431526184,0.01045342069119215,0.042174093425273895,-0.031120019033551216,0.08298972994089127,-0.019205383956432343,0.10437098890542984,0.02214682474732399,0.0763656497001648,-0.06990281492471695,-0.030620060861110687,0.0155442263931036,0.02334640733897686,-0.02651141956448555,0.051556553691625595,-0.037955667823553085,0.12552160024642944,-0.005932510364800692,-0.01290014199912548,0.051044147461652756,-0.13512414693832397,0.0019927152898162603,0.012973185628652573,-0.07339361310005188,0.004980134312063456,-0.011246968992054462,-0.04458504915237427,-0.07238570600748062,0.021311847493052483,-0.019997844472527504,-0.06533380597829819,0.03189973905682564,0.0429876372218132,0.009527708403766155,0.04966757819056511,-0.03759259730577469,-0.029631314799189568,0.07774131745100021,0.04837171733379364,-0.07002542167901993,-0.05399918556213379,-0.1113877221941948,-0.025797802954912186,-0.033803295344114304,0.07973834127187729,-0.09062585234642029,-0.02428867295384407,-0.007883756421506405,-0.03815958648920059,-0.11011500656604767,0.001572875422425568,-0.006566223688423634,-0.056520070880651474,-0.0997813269495964,-0.0809406191110611,0.09847022593021393,-0.016587385907769203,0.10646850615739822,0.012995566241443157,-0.17016519606113434,-0.09613955020904541,-0.02695729024708271,0.03496117889881134,-0.05073535814881325,0.05652502924203873,-0.01129695400595665,-0.014939149841666222,-0.01929277367889881,0.08769314736127853,0.08963527530431747,0.0195760615170002,0.0017212777165696025,0.0037848404608666897,0.01250914204865694,-0.008094503544270992,0.034623969346284866,0.1016419306397438,-0.011570937000215054,-0.05122026801109314,0.11556866765022278,-0.016765190288424492,0.03259429708123207,7.268069020938128e-05,-0.0001261089782929048,-0.17062056064605713,-0.07068461924791336,-0.004512301180511713,0.02921716682612896,-0.027669841423630714,0.04521322622895241,0.0844290629029274,0.05655398592352867,0.023145873099565506,0.00593328382819891,-0.08762113749980927,0.0849369466304779,0.08505035936832428,0.009575328789651394,0.029437091201543808,0.0861135795712471,0.06127166375517845,0.036720991134643555,-0.08500967919826508,-0.057477474212646484,-0.050015680491924286,0.05413812771439552,-0.04019929841160774,0.08873291313648224,-0.04283296689391136,-0.030341124162077904,-0.034805260598659515,0.00964787695556879,0.05219154804944992,-0.10609225183725357,0.06595572829246521,-0.03920695185661316,-0.004233839921653271,-0.05653265491127968,-0.08384907245635986,-0.0025676852092146873,-0.06881427019834518,0.010469406843185425,-0.013102021999657154,-0.036429114639759064,-0.008953957818448544,-0.040331121534109116,0.03449948877096176,-0.039064474403858185,-0.00080106221139431,-0.030480215325951576,0.03858296945691109,-0.05615837126970291,-0.025959724560379982,-0.036343224346637726,-0.07796595245599747,0.08471466600894928,0.007052206434309483,-0.051115285605192184,-0.0069970618933439255,-0.003067516954615712,0.06412992626428604,-0.023396367207169533,-0.07637276500463486,0.0230143703520298,0.027386391535401344,-0.046699460595846176,-0.057015251368284225,-0.05128523334860802,-0.03648863732814789,0.11002551764249802,-0.04510195180773735,0.024107811972498894,-0.035692550241947174,0.012072434648871422,-0.05766720324754715,0.0077481199987232685,-0.015920745208859444,-0.001319186296314001,0.03506721556186676,-0.039208099246025085,0.0762915313243866,-0.057626307010650635,0.05226905643939972,0.03785916045308113,0.04060892388224602,0.04494354873895645,0.009779334999620914,0.03068971261382103,0.08252666890621185,-0.07706645131111145,0.03852995112538338,0.05475444719195366,0.01117001473903656,-0.018392125144600868,-0.1080581545829773,-0.10087928175926208,0.026165924966335297,-0.0394461452960968,-0.11277040094137192,-0.008679352700710297,0.003040984272956848,0.05654492974281311,0.022294772788882256,-0.013728611171245575,-0.10067683458328247,0.02388928458094597,0.004430812317878008,0.013458595611155033,-0.048472966998815536,-0.05113595351576805,0.04534165561199188,-0.04808473959565163,0.02966904267668724,-0.057132966816425323,-0.04928388446569443,0.08605802059173584,0.006914487108588219,0.08145789057016373,0.061030346900224686,0.11028968542814255,0.098812036216259,-0.11346127092838287,0.0057505653239786625,0.05990791693329811,-0.02342364564538002,-0.0900631919503212,-0.03638232499361038,-0.07618299871683121,0.07109304517507553,0.03705388307571411,-0.06327921152114868,-0.03832494840025902,-0.03917469084262848,0.005792689975351095,0.03883408382534981,-0.05833733081817627,0.06425134092569351,-0.053559888154268265,-0.08029139786958694,0.04468121752142906,0.13422366976737976,-0.07616225630044937,-0.03298821672797203,-0.030704712495207787,0.02985297702252865,-0.021303124725818634,-0.04043825343251228,0.02313520573079586,0.039287202060222626,0.027090709656476974,-0.03274042159318924,0.06521318107843399,-0.03483102098107338,0.036316536366939545,-0.03321024775505066,-0.016650568693876266,-0.06069593131542206,0.013123704120516777,-0.005287447478622198,-0.058005694299936295,0.05085436627268791,-0.006272417958825827,0.12806400656700134,0.08562314510345459,-0.02510005608201027,-0.03718375414609909,-0.010551522485911846,0.0006685185362584889,-0.02090686373412609,-0.053764794021844864,0.01748880185186863,-0.005128786433488131,-0.038593463599681854,0.05692269280552864,0.015769876539707184,0.0764438658952713,0.014385206624865532,0.05588395521044731,0.10128488391637802,-0.0038788090460002422,0.06954784691333771,-0.10749790817499161,0.10026884078979492,0.12385549396276474,-0.023116670548915863,-0.03847886249423027,0.018622707575559616,-0.001099698944017291,-0.11939368396997452,0.08553143590688705,-0.08981826901435852,0.018451614305377007,0.014685424976050854,-0.02780441753566265,-0.10757525265216827,0.032462090253829956,0.05914032459259033,0.013769987039268017,-0.002413781126961112,-0.0390646755695343,0.0013709362829104066,-0.013486378826200962,0.004674420226365328,0.08800659328699112,0.003993643913418055,-0.013436992652714252,0.05518367514014244,-0.024858562275767326,0.004678690806031227,0.07710887491703033,-0.014795842580497265,-0.05093575641512871,0.0252849068492651,0.022208990529179573,0.008643594570457935,-0.013133198954164982,0.03623403608798981,0.04309022054076195,0.031202048063278198,0.06303427368402481,0.05324266478419304,0.025154845789074898,0.035183921456336975,0.05019708350300789,-0.10229938477277756,0.007537102792412043,-0.01892748847603798,-0.08184991031885147,-0.039019566029310226,-0.001859393552877009,-0.05716066062450409,0.04004291445016861,0.08368917554616928,0.12429054826498032,-0.0682903304696083,-0.028365710750222206,-0.05305367708206177,0.047349050641059875,0.002719550160691142,0.036065321415662766,-0.05405188724398613,0.029801571741700172,0.09056628495454788,0.0029862045776098967,0.08320692181587219,0.02462943270802498,-0.09323608875274658,0.04619326442480087,0.01868917979300022,0.029797788709402084,-0.003172340104356408,-0.04080107435584068,-0.0822201743721962,-0.041672248393297195,0.019557762891054153,0.02026190422475338,0.08177615702152252,0.07285249978303909,0.026918897405266762,-0.03706803172826767,0.04456860572099686,0.07434225082397461,0.04140615090727806,0.00283608166500926,0.0453377328813076,0.06546954810619354,-0.019950587302446365,0.04210501164197922,-0.024417290464043617,-0.0555395670235157,0.019165709614753723,0.08688762784004211,0.04248359799385071,0.05709167942404747,-0.07354453951120377,-0.017387855798006058,-0.04513587802648544,0.061029691249132156,0.06119707226753235,0.031047537922859192,-0.03677022084593773,-0.021902447566390038,0.06411487609148026,-0.055709756910800934,0.03573046997189522,0.031021248549222946,0.04585261642932892,-0.04288484901189804,0.10557690262794495,-0.046095822006464005,0.0512445867061615,-0.008932072669267654,-0.04825560003519058,-0.12061826139688492,-0.10150062292814255,-0.002027630340307951,0.07535833865404129,-0.020534945651888847,0.07832510769367218,-0.031580131500959396,0.009121106006205082,-0.08091221004724503,-0.027833033353090286,0.03750737011432648,0.01631472259759903,0.05582734942436218,-0.009808161295950413,0.11800642311573029,0.0694769024848938,-0.09057442843914032,-0.0364082008600235,-0.1437729001045227,0.04953113943338394,-0.04383963719010353,-0.028776975348591805,-0.04673852398991585,-0.011292402632534504,-0.009050475433468819,-0.0049827913753688335,0.026577485725283623,0.09515462070703506,-0.03454333171248436,-0.040137507021427155,0.03677140176296234,0.06449463963508606,0.032935772091150284,0.0042938534170389175,0.008716912008821964,-0.0013774443650618196,0.0006729821907356381,-0.013436468318104744,0.008956382982432842,-0.0007516510086134076,-0.02989407256245613,0.006480181589722633,0.010577915236353874,0.04141690954566002,0.11281899362802505,0.1001371368765831,-0.008625158108770847,-0.009943491779267788,0.0114250173792243,-0.0008262951741926372,0.02335629239678383,0.07847120612859726,0.010872487910091877,-0.08683045953512192,-0.038425512611866,-0.1474567949771881,0.007860910147428513,0.12241886556148529,0.09418029338121414,-0.11596930772066116,-0.10177449882030487,-0.046401020139455795,-0.04815415292978287,-0.17789782583713531,-0.026212546974420547,0.0022237137891352177,-0.08502326905727386,0.03999979794025421,-0.03899626061320305,-0.10746463388204575,0.11130847781896591,-0.05257652327418327,-0.015717273578047752,-0.07116802781820297,-0.050782397389411926,0.03094121627509594,-0.15168844163417816,-0.008211659267544746,-0.02407078817486763,-0.04097672924399376,-0.04448612034320831,-0.03593200445175171,-0.10883425176143646,0.010072918608784676,-0.09964305907487869,-0.08211051672697067,-0.023421352729201317,-0.07411835342645645,0.0003403571608942002,0.006013504695147276,-0.022151226177811623,0.026166096329689026,0.01839139498770237,0.04309779405593872,-0.05450683832168579,0.01730967126786709,-0.009810992516577244,0.012978069484233856,0.003645647782832384,-0.04570448771119118,0.0019243491115048528,-0.12241940200328827,-0.0005669166566804051,-0.00030674043227918446,-0.05268538370728493,-0.011807129718363285,-0.01808439940214157,-0.05552544444799423,0.1997239738702774,-0.0497157946228981,0.07643181085586548,0.04357346519827843,0.04862165451049805,-0.12837255001068115,0.027141982689499855,0.019238436594605446,-0.0198866818100214,0.1134958267211914,-0.06955680251121521,0.06963884830474854,0.11035788804292679,-0.003732204670086503,-0.049776341766119,-0.006023153197020292,0.09704060107469559,0.002085302956402302,-0.012865033932030201,-0.02937103994190693,0.019411766901612282,-0.05422692745923996,-0.011581897735595703,0.008483673445880413,-0.03627363219857216,0.00425249757245183,-0.08125271648168564,-0.008477546274662018,0.04024454951286316,-0.00030879396945238113,0.039921555668115616,-0.03925669193267822,-0.07665519416332245,-0.1054612547159195,-0.05112602189183235,0.06484349817037582,-0.025591645389795303,0.01920660212635994,-0.07282492518424988,-0.0030077218543738127,0.020822642371058464,0.10509628802537918,0.05369330570101738,0.013995093293488026,0.026252953335642815,-0.05336949601769447,0.09262121468782425,0.0009484459878876805,-0.09972907602787018,-0.08298538625240326,0.004731249529868364,0.015518060885369778,-0.06864764541387558,-0.0626213476061821,0.0835273414850235,-0.02219006046652794,-0.030132615938782692,-0.04569688066840172,0.014080159366130829,-0.06562338769435883,0.011618816293776035,-0.07705328613519669,0.020732052624225616,-0.02207689918577671,-0.04575379565358162,-0.026467131450772285,0.030390866100788116,0.0718378871679306,0.04986073449254036,0.05537453293800354,0.039668165147304535,-0.023601049557328224,-0.022482234984636307,-0.02948959544301033,0.050758518278598785,0.14170150458812714,0.09629705548286438,0.06903622299432755,0.0699877068400383,0.03785082325339317,0.060558345168828964,-0.0632215142250061,-0.04309070482850075,-0.0507165901362896,0.11273454129695892,0.08144014328718185,0.07898358255624771,0.06653949618339539,-0.058100465685129166,-0.04936100170016289,0.028950007632374763,-0.06198571249842644,0.044225603342056274,-0.04876001924276352,0.0518021285533905,0.11411907523870468,0.01373237743973732,-0.04109593480825424,-0.05558699369430542,-0.0616932287812233,0.000693995738402009,-0.06528260558843613,0.01828865148127079,-0.006569292861968279,-0.041728075593709946,-0.04399289935827255,-0.06503983587026596,0.010504619218409061,-0.039231814444065094,0.0007035585585981607,-0.040998347103595734,0.0027885371819138527,0.1075272262096405,-0.004083879757672548,-0.06799399107694626,0.062170691788196564,-0.08162562549114227,-0.016307901591062546,0.010812842287123203,0.09539075195789337,0.04463342949748039,-0.05683598294854164,-0.048022232949733734,-0.012144450098276138,0.013807838782668114,0.06026417762041092,0.032468222081661224,-0.052099231630563736,-0.04888639971613884,0.014632854610681534,0.060910485684871674,0.06956371665000916,-0.004036726430058479,0.028095463290810585,0.06883882731199265,-0.05738174542784691,0.01001554075628519,-0.023012258112430573,0.055433161556720734,0.03830002620816231,0.05022194981575012,0.028869198635220528,0.009258302859961987,0.016969406977295876,-0.09371586889028549,0.037732433527708054,-0.007833016104996204,0.10893667489290237,-0.021190732717514038,-0.17067191004753113,0.052846673876047134,-0.06882106512784958,-0.021298345178365707,0.012883494608104229,0.0846312940120697,-0.04069809243083,-0.04675548896193504,-0.010050364769995213,-0.03945964574813843,0.04563548043370247,-0.09432677924633026,0.043227557092905045,0.014010204002261162,0.03709184005856514,-0.023971324786543846,-0.044316310435533524,-0.02419058047235012,0.03601011633872986,0.057908691465854645,-0.008354897610843182,0.01984887383878231,0.03473571315407753,-0.02682121843099594,0.07783536612987518,-0.06522168964147568,-0.0016632478218525648,-0.039624545723199844,0.13330982625484467,-0.02498582750558853,0.029330430552363396,0.002852732315659523,0.04530110955238342,-0.13767696917057037,0.04600085690617561,-0.024165304377675056,-0.014608237892389297,-0.05481524020433426,0.03387744352221489,0.006890735123306513,-0.03651291877031326,-0.07688172161579132,0.010502452030777931,0.07786363363265991,-0.09975302964448929,0.007134750485420227,0.01609088107943535,0.0543581061065197,0.03975328803062439,-0.047465935349464417,-0.07626882940530777,-0.11892230063676834,0.08699002861976624,0.04959612339735031,0.0125131169334054,0.00487469183281064,-0.007846318185329437,0.027770603075623512,0.08399622142314911,-0.010012021288275719,0.03806089982390404,-0.0026367621030658484,-0.040088262408971786,-0.0134045435115695,-0.001446123351342976,-0.013165564276278019,-0.10421997308731079,-0.0591728538274765,0.0065177613869309425,0.056806374341249466,0.025859855115413666,-0.02155599184334278,0.08957964181900024,-0.15455502271652222,-0.05481860041618347,0.05017445236444473,-0.013577073812484741,0.017621299251914024,0.030819440260529518,0.0013854500139132142,-0.004177200607955456,-0.14316320419311523,-0.04684213548898697,-0.0012032276717945933,-0.0749475359916687,0.07333440333604813,-0.008436092175543308,-0.04839491471648216,0.013789121992886066,0.1357055902481079,0.06322405487298965,-0.014625130221247673,-0.028011571615934372,-0.05544092878699303,0.041514668613672256,0.015631910413503647,0.002374837640672922,0.03526026010513306,-0.018868152052164078,0.024154385551810265,0.06187637522816658,-0.0756276547908783,0.003100017085671425,-0.039599597454071045,-0.07285360991954803,-0.03376626968383789,0.10228845477104187,0.07180821150541306,-0.008903350681066513,0.06835898756980896,0.019518312066793442,0.08260783553123474,0.02252228371798992,-0.03056863322854042,0.013721204362809658,0.035741426050662994,-0.005625749006867409,0.022244447842240334,-0.042598698288202286,0.009324224665760994,-0.0009709910373203456,-0.015455927699804306,-0.026224179193377495,-0.008081449195742607,-0.007326129358261824,0.008788689970970154,0.011185151524841785,-0.10097803175449371,0.06465992331504822,0.0464726947247982,0.0074621085077524185,-0.06868631392717361,-0.012725340202450752,0.00647420110180974,-0.09055416285991669,0.009035566821694374,0.12681962549686432,0.02107982710003853,-0.08991669863462448,0.06096649169921875,-0.022820349782705307,0.001641505747102201,-0.05670691281557083,-0.008316859602928162,-0.0900934562087059,0.07601094245910645,0.08806784451007843,-0.03201932832598686,0.10197645425796509,-0.05613359063863754,0.08325894176959991,0.013751356862485409,0.014106661081314087,0.01722535490989685,-0.06303545832633972,0.010121865198016167,0.06541052460670471,-0.0049653854221105576,0.021594034507870674,-0.042395345866680145,-0.04625093191862106,0.010813153348863125,-0.02008024789392948,-0.09077784419059753,-0.10848641395568848,-0.15187285840511322,-0.1776367425918579,0.06153258681297302,0.09526236355304718,-0.00032858256599865854,0.07038068026304245,-0.06126448139548302,-0.07046932727098465,0.006354702636599541,0.050115711987018585,0.036430492997169495,-0.02811259776353836,-0.06114378198981285,-0.03318371996283531,-0.1322660893201828,0.023746157065033913,-0.08570683002471924,0.05429032817482948,-0.12565191090106964,-0.061985984444618225,-0.04715195298194885,-0.07154029607772827,-0.06348523497581482,0.04009360820055008,0.08168157190084457,-0.02712925337255001,0.0020877858623862267,0.001705916947685182,0.016800444573163986,0.007837561890482903,0.014812673442065716,-0.016240954399108887,0.07309123873710632,0.08859295397996902,-0.0009724580449983478,-0.08907321095466614,0.022053996101021767,-0.05556142330169678,-0.00569548737257719,-0.043573979288339615,-0.05912061780691147,0.07079048454761505,-0.05838674306869507,-0.00962207280099392,0.11140364408493042,0.09130366146564484,0.05641696974635124,0.03443080931901932,-0.032007038593292236,0.0174215380102396,-0.0002075633528875187,0.038911473006010056,0.02473677508533001,0.1325041651725769,0.008380419574677944,0.048245955258607864,-0.021250348538160324,0.04140722379088402,0.0682324543595314,-0.139271542429924,-0.08641897141933441,0.001709192292764783,-0.005789890885353088,0.08838970214128494,0.09769736975431442,-0.10751970112323761,0.039537616074085236,-0.028178172186017036,-0.14480823278427124,-0.01826033927500248,-0.016920477151870728,-0.03563826158642769,0.03855248540639877,-0.1187560111284256,0.0704449936747551,-0.01721009612083435,-0.06959859281778336,0.07750372588634491,-0.006858531851321459,-0.0203231330960989,-0.02996406890451908,0.10140849649906158,-0.031072627753019333,-0.008299124427139759,-0.08593535423278809,-0.039135370403528214,0.04894076660275459,0.0240631103515625,-0.05753172188997269,0.03319230675697327,-0.032538317143917084,-0.07205137610435486,0.03249135985970497,0.044879250228405,0.036002710461616516,-0.01740913838148117,0.037267785519361496,0.044846661388874054,0.09033939242362976,0.06499407440423965,0.007897145114839077,0.06855837255716324,0.06252101063728333,0.06215096265077591,-0.017423827201128006,-0.018771138042211533,0.0027478386182338,0.09147284179925919,0.031628187745809555,0.08996985107660294,0.024243518710136414,0.08380146324634552,0.017649266868829727,0.007333808578550816,0.009867415763437748,0.026666371151804924,-0.10635840147733688,-0.06252989917993546,0.009813225828111172,0.05873117223381996,0.059030890464782715,0.07713690400123596,-0.047093771398067474,-0.003507251152768731,0.0627722516655922,-0.018279263749718666,-0.05605020374059677,0.006828716490417719,0.015622412785887718,0.03562319651246071,0.0019093621522188187,-0.018419956788420677,0.02850678563117981,-0.03750261291861534,-0.010629180818796158,-0.024027960374951363,-0.031091883778572083,0.16114287078380585,0.02291155979037285,-0.12365996837615967,0.05422046780586243,-0.10819092392921448,0.06763569265604019,0.022317027673125267,0.057388100773096085,0.033770445734262466,-0.03072112239897251,-0.09627173095941544,0.016610197722911835,-0.02498740889132023,-0.028346018865704536,0.052681442350149155,0.08189205825328827,-0.05746891349554062,-0.06163867563009262,0.12479791790246964,0.033271439373493195,0.056341517716646194,-0.045073725283145905,-0.14171627163887024,-0.009153619408607483,0.04734199121594429,0.06155707687139511,0.07484029233455658,0.06635268777608871,-0.0604906864464283,-0.003652340965345502,0.00044058493222109973,-0.10007850080728531,-0.1356268972158432,0.1444120854139328,-0.05157169699668884,-0.026244893670082092,-0.02420772984623909,-0.005567086394876242,-0.061522308737039566,-0.0013255072990432382,-0.03334041312336922,-0.04508780688047409,-0.1506269872188568,0.04579473286867142,-0.06800442934036255,-0.04677239805459976,0.04130829870700836,0.051011569797992706,0.11116988956928253,-0.02882903814315796,-0.04210115596652031,-0.013075509108603,-0.05665169656276703,0.007193852681666613,-0.07112902402877808,0.09574861824512482,0.03269346430897713,-0.03343335539102554,-0.0005991412326693535,0.014166705310344696,0.06821074336767197,-0.02951790951192379,-0.04845418781042099,0.05375986546278,0.15304656326770782,-0.018373379483819008,0.003841815050691366,0.06686519086360931,0.019112540408968925,0.004995976574718952,-0.003910317085683346,0.09489431977272034,0.05319816619157791,-0.03778205066919327,-0.028247280046343803,-0.05251483619213104,0.16477614641189575,-0.014512860216200352,0.0021743569523096085,0.07078535854816437,0.10161834955215454,0.02537045255303383,-0.20159605145454407,0.004707907792180777,-0.09916691482067108,-0.1609559953212738,-0.050179895013570786,0.033626385033130646,0.011733298189938068,0.036233507096767426,-0.010217241942882538,-0.043788760900497437,-0.06268443167209625,-0.102702796459198,-0.007682447321712971,0.10180926322937012,-0.05343978852033615,-0.06536179780960083,0.08841627091169357,0.0767546221613884,-0.11515743285417557,0.07643052190542221,0.03144966810941696,-0.021597810089588165,0.00131880899425596,-0.02069822885096073,0.03868468478322029,-0.06759613007307053,-0.10295623540878296,0.04917949065566063,0.07946189492940903,0.05254696309566498,0.06664901971817017,0.008134303614497185,0.021424369886517525,-0.05161309987306595,-0.030110761523246765,0.04122139513492584,0.0652746632695198,-0.04458604380488396,-0.06069495156407356,0.09358212351799011,-0.06300634890794754,0.021673547104001045,-0.11562393605709076,0.02399175614118576,-0.036468423902988434,0.03421232849359512,0.002082139253616333,0.045371878892183304,-0.1075669378042221,-0.12751036882400513,-0.06307582557201385,0.03836637735366821,0.0246964693069458,0.016156617552042007,0.013165011070668697,0.006805200129747391,0.05318178981542587,0.006508663762360811,0.0699123740196228,-0.04977485537528992,0.0682111531496048,-0.0030744329560548067,0.003854840062558651,-0.003261393867433071,0.01411348395049572,-0.012084589339792728,-0.03253231570124626,0.008397008292376995,-0.011164656840264797,-0.015625402331352234,0.10100262612104416,-0.10923267900943756,-0.09038107097148895,-0.02427772618830204,-0.023115796968340874,-0.05963550880551338,0.012299022637307644,-0.053977467119693756,-0.10203799605369568,0.005422612652182579,-0.02470480650663376,-0.021982502192258835,-0.02206232398748398,0.021930960938334465,-0.06084289029240608,-0.04271950200200081,-0.02930937521159649,-0.016656868159770966,-0.019437212496995926,0.09688632190227509,-0.009999917820096016,0.034096457064151764,0.02418668195605278,0.03325168415904045,-0.055562686175107956,0.04428717494010925,0.045166004449129105,-0.08213555812835693,-0.046352971345186234,-0.05141352117061615,0.11027184128761292,0.03539462387561798],&quot;yaxis&quot;:&quot;y&quot;,&quot;type&quot;:&quot;scattergl&quot;}],                        {&quot;template&quot;:{&quot;data&quot;:{&quot;bar&quot;:[{&quot;error_x&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;error_y&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;marker&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;,&quot;width&quot;:0.5},&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;bar&quot;}],&quot;barpolar&quot;:[{&quot;marker&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;,&quot;width&quot;:0.5},&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;barpolar&quot;}],&quot;carpet&quot;:[{&quot;aaxis&quot;:{&quot;endlinecolor&quot;:&quot;#2a3f5f&quot;,&quot;gridcolor&quot;:&quot;#C8D4E3&quot;,&quot;linecolor&quot;:&quot;#C8D4E3&quot;,&quot;minorgridcolor&quot;:&quot;#C8D4E3&quot;,&quot;startlinecolor&quot;:&quot;#2a3f5f&quot;},&quot;baxis&quot;:{&quot;endlinecolor&quot;:&quot;#2a3f5f&quot;,&quot;gridcolor&quot;:&quot;#C8D4E3&quot;,&quot;linecolor&quot;:&quot;#C8D4E3&quot;,&quot;minorgridcolor&quot;:&quot;#C8D4E3&quot;,&quot;startlinecolor&quot;:&quot;#2a3f5f&quot;},&quot;type&quot;:&quot;carpet&quot;}],&quot;choropleth&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;type&quot;:&quot;choropleth&quot;}],&quot;contour&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;type&quot;:&quot;contour&quot;}],&quot;contourcarpet&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;type&quot;:&quot;contourcarpet&quot;}],&quot;heatmap&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;type&quot;:&quot;heatmap&quot;}],&quot;heatmapgl&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;type&quot;:&quot;heatmapgl&quot;}],&quot;histogram&quot;:[{&quot;marker&quot;:{&quot;pattern&quot;:{&quot;fillmode&quot;:&quot;overlay&quot;,&quot;size&quot;:10,&quot;solidity&quot;:0.2}},&quot;type&quot;:&quot;histogram&quot;}],&quot;histogram2d&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;type&quot;:&quot;histogram2d&quot;}],&quot;histogram2dcontour&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;type&quot;:&quot;histogram2dcontour&quot;}],&quot;mesh3d&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;type&quot;:&quot;mesh3d&quot;}],&quot;parcoords&quot;:[{&quot;line&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;parcoords&quot;}],&quot;pie&quot;:[{&quot;automargin&quot;:true,&quot;type&quot;:&quot;pie&quot;}],&quot;scatter&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scatter&quot;}],&quot;scatter3d&quot;:[{&quot;line&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scatter3d&quot;}],&quot;scattercarpet&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scattercarpet&quot;}],&quot;scattergeo&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scattergeo&quot;}],&quot;scattergl&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scattergl&quot;}],&quot;scattermapbox&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scattermapbox&quot;}],&quot;scatterpolar&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scatterpolar&quot;}],&quot;scatterpolargl&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scatterpolargl&quot;}],&quot;scatterternary&quot;:[{&quot;marker&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;type&quot;:&quot;scatterternary&quot;}],&quot;surface&quot;:[{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;},&quot;colorscale&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;type&quot;:&quot;surface&quot;}],&quot;table&quot;:[{&quot;cells&quot;:{&quot;fill&quot;:{&quot;color&quot;:&quot;#EBF0F8&quot;},&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;}},&quot;header&quot;:{&quot;fill&quot;:{&quot;color&quot;:&quot;#C8D4E3&quot;},&quot;line&quot;:{&quot;color&quot;:&quot;white&quot;}},&quot;type&quot;:&quot;table&quot;}]},&quot;layout&quot;:{&quot;annotationdefaults&quot;:{&quot;arrowcolor&quot;:&quot;#2a3f5f&quot;,&quot;arrowhead&quot;:0,&quot;arrowwidth&quot;:1},&quot;autotypenumbers&quot;:&quot;strict&quot;,&quot;coloraxis&quot;:{&quot;colorbar&quot;:{&quot;outlinewidth&quot;:0,&quot;ticks&quot;:&quot;&quot;}},&quot;colorscale&quot;:{&quot;diverging&quot;:[[0,&quot;#8e0152&quot;],[0.1,&quot;#c51b7d&quot;],[0.2,&quot;#de77ae&quot;],[0.3,&quot;#f1b6da&quot;],[0.4,&quot;#fde0ef&quot;],[0.5,&quot;#f7f7f7&quot;],[0.6,&quot;#e6f5d0&quot;],[0.7,&quot;#b8e186&quot;],[0.8,&quot;#7fbc41&quot;],[0.9,&quot;#4d9221&quot;],[1,&quot;#276419&quot;]],&quot;sequential&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]],&quot;sequentialminus&quot;:[[0.0,&quot;#0d0887&quot;],[0.1111111111111111,&quot;#46039f&quot;],[0.2222222222222222,&quot;#7201a8&quot;],[0.3333333333333333,&quot;#9c179e&quot;],[0.4444444444444444,&quot;#bd3786&quot;],[0.5555555555555556,&quot;#d8576b&quot;],[0.6666666666666666,&quot;#ed7953&quot;],[0.7777777777777778,&quot;#fb9f3a&quot;],[0.8888888888888888,&quot;#fdca26&quot;],[1.0,&quot;#f0f921&quot;]]},&quot;colorway&quot;:[&quot;#636efa&quot;,&quot;#EF553B&quot;,&quot;#00cc96&quot;,&quot;#ab63fa&quot;,&quot;#FFA15A&quot;,&quot;#19d3f3&quot;,&quot;#FF6692&quot;,&quot;#B6E880&quot;,&quot;#FF97FF&quot;,&quot;#FECB52&quot;],&quot;font&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;},&quot;geo&quot;:{&quot;bgcolor&quot;:&quot;white&quot;,&quot;lakecolor&quot;:&quot;white&quot;,&quot;landcolor&quot;:&quot;white&quot;,&quot;showlakes&quot;:true,&quot;showland&quot;:true,&quot;subunitcolor&quot;:&quot;#C8D4E3&quot;},&quot;hoverlabel&quot;:{&quot;align&quot;:&quot;left&quot;},&quot;hovermode&quot;:&quot;closest&quot;,&quot;mapbox&quot;:{&quot;style&quot;:&quot;light&quot;},&quot;paper_bgcolor&quot;:&quot;white&quot;,&quot;plot_bgcolor&quot;:&quot;white&quot;,&quot;polar&quot;:{&quot;angularaxis&quot;:{&quot;gridcolor&quot;:&quot;#EBF0F8&quot;,&quot;linecolor&quot;:&quot;#EBF0F8&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;bgcolor&quot;:&quot;white&quot;,&quot;radialaxis&quot;:{&quot;gridcolor&quot;:&quot;#EBF0F8&quot;,&quot;linecolor&quot;:&quot;#EBF0F8&quot;,&quot;ticks&quot;:&quot;&quot;}},&quot;scene&quot;:{&quot;xaxis&quot;:{&quot;backgroundcolor&quot;:&quot;white&quot;,&quot;gridcolor&quot;:&quot;#DFE8F3&quot;,&quot;gridwidth&quot;:2,&quot;linecolor&quot;:&quot;#EBF0F8&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;#EBF0F8&quot;},&quot;yaxis&quot;:{&quot;backgroundcolor&quot;:&quot;white&quot;,&quot;gridcolor&quot;:&quot;#DFE8F3&quot;,&quot;gridwidth&quot;:2,&quot;linecolor&quot;:&quot;#EBF0F8&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;#EBF0F8&quot;},&quot;zaxis&quot;:{&quot;backgroundcolor&quot;:&quot;white&quot;,&quot;gridcolor&quot;:&quot;#DFE8F3&quot;,&quot;gridwidth&quot;:2,&quot;linecolor&quot;:&quot;#EBF0F8&quot;,&quot;showbackground&quot;:true,&quot;ticks&quot;:&quot;&quot;,&quot;zerolinecolor&quot;:&quot;#EBF0F8&quot;}},&quot;shapedefaults&quot;:{&quot;line&quot;:{&quot;color&quot;:&quot;#2a3f5f&quot;}},&quot;ternary&quot;:{&quot;aaxis&quot;:{&quot;gridcolor&quot;:&quot;#DFE8F3&quot;,&quot;linecolor&quot;:&quot;#A2B1C6&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;baxis&quot;:{&quot;gridcolor&quot;:&quot;#DFE8F3&quot;,&quot;linecolor&quot;:&quot;#A2B1C6&quot;,&quot;ticks&quot;:&quot;&quot;},&quot;bgcolor&quot;:&quot;white&quot;,&quot;caxis&quot;:{&quot;gridcolor&quot;:&quot;#DFE8F3&quot;,&quot;linecolor&quot;:&quot;#A2B1C6&quot;,&quot;ticks&quot;:&quot;&quot;}},&quot;title&quot;:{&quot;x&quot;:0.05},&quot;xaxis&quot;:{&quot;automargin&quot;:true,&quot;gridcolor&quot;:&quot;#EBF0F8&quot;,&quot;linecolor&quot;:&quot;#EBF0F8&quot;,&quot;ticks&quot;:&quot;&quot;,&quot;title&quot;:{&quot;standoff&quot;:15},&quot;zerolinecolor&quot;:&quot;#EBF0F8&quot;,&quot;zerolinewidth&quot;:2},&quot;yaxis&quot;:{&quot;automargin&quot;:true,&quot;gridcolor&quot;:&quot;#EBF0F8&quot;,&quot;linecolor&quot;:&quot;#EBF0F8&quot;,&quot;ticks&quot;:&quot;&quot;,&quot;title&quot;:{&quot;standoff&quot;:15},&quot;zerolinecolor&quot;:&quot;#EBF0F8&quot;,&quot;zerolinewidth&quot;:2}}},&quot;xaxis&quot;:{&quot;anchor&quot;:&quot;y&quot;,&quot;domain&quot;:[0.0,1.0],&quot;title&quot;:{&quot;text&quot;:&quot;x0&quot;}},&quot;yaxis&quot;:{&quot;anchor&quot;:&quot;x&quot;,&quot;domain&quot;:[0.0,1.0],&quot;title&quot;:{&quot;text&quot;:&quot;x1&quot;}},&quot;legend&quot;:{&quot;tracegroupgap&quot;:0,&quot;itemsizing&quot;:&quot;constant&quot;},&quot;margin&quot;:{&quot;t&quot;:60}},                        {&quot;responsive&quot;: true}                    )                };                            &lt;/script&gt;        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

&lt;p&gt;So, looking at the visualization based on the weights extracted from our embedding layer what can what see?&lt;/p&gt;

&lt;ol&gt;
  &lt;li&gt;
    &lt;p&gt;“the” is on it…which really should be a stopword…and it has a hefty weight assigned to it. So what happened? Well, NLTK stop words as returned by “stopwords.words(‘english’)” are lowercase, so by removing stop words prior to standardization we’re missing the upper case instances. I know this assignment was inherited from Dr. Chodrow so, Shruti and Harlin, I know you won’t take offense, but the assignment dictating we handle stopwords prior to standardization seems like mistake? As a result, “The [insert thing or people you don’t like here] Problem….” “The [XZY] Threat” sort of inflamatory, hyper-partisan titles are included as is…so our assignment’s directed order of operations here has a flaw, that ironically actually preserved a meaningful pattern of misinformation headline. Happy accidents, right Bob Ross?&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Politician’s first names are weighted far heavier than their lastnames. Anecdotally this makes sense to me: Trump’s pejorative called his 2016 opponent “crooked Hillary,” not “crooked Hillary Clinton.” It’s easier to implicitly and sexistly diminish her by refering to her as “Hillary”—emphasizing gender—rather than by her literally presidental last name. On the flip side, the most overtly biased commentators aren’t fond of saying “President Trump”, instead going with “Donald Trump”. It sticks in their mouth much in the way “President Obama” did for sensationalist right wing writers, who instead tended to use “Barack Obama” or “Barack Hussein Obama” to emphasize the “foreigness” of his name.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;“Our”, “your”, and “america” are all clustered together. Once again, makes sense, nothing says click-bait like a personal appeal: “coming for your guns,” “ruining our country,” etc. It applies ownership to a larger concept and makes the sensationalized headline a personal matter.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Things people/groups never call themselves: “is” is next to “racist”, “leftist” is next to “radical”. I’m guessing the AP (Associated Press) wire didn’t flatout lead with “[insert candidate you don’t like here] is racist” or “radical leftists are ruining [insert something you like here]”. It’s just not how actual news phrases things.&lt;/p&gt;
  &lt;/li&gt;
  &lt;li&gt;
    &lt;p&gt;Proper nouns for international people/places aren’t very weighted. “Japan”, “Macron”, “Myanmar” aren’t fodder for misinformation the way domestic matters seem to be. Once again, makes sense: foreign affairs aren’t salient and emotionally enough to the average American to rile them up to suspend disbelief, embrace confirmation bias, and eat up misinformation. In terms of the usefulness of these words for our classification, well, for every cry of “Trump is owned by the Kremlin” or “Biden is owned by China” theres probably threefold as many articles actually addressing actual trade policy with the world’s largest export manufacturer or Russia’s ongoing military actions in Syria or Ukraine…the latter two nearing a decade old. This obviously dilutes the usefulness of these words for our purposes.&lt;/p&gt;
  &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Bonus observation:&lt;/strong&gt;&lt;/p&gt;
&lt;ol&gt;
  &lt;li&gt;“sources” and “says” are both words misinformation tends not to contain. I guess proper quotations and attributions aren’t a staple of the genre—”the prime minister’s presss office says [stuff],” “sources close to the matter…” that sort of thing. I’m also guessing that this applies to the “sources:” list at the bottom of proper articles.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Closing Thoughts&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The model performed very well, however it appears to be very temporally sensitive. It is a useful tool for extrapolation within the same cultural/news epoch as its training data. That is to say that you could manually (at least as far as the fake/not fake classifcation) build a large training set and then automate the review of a larger body of articles from roughly the same period, however, the reliance of the model on specific phrasing/terminology rather than language structure means that it would likely perform far far worse with articles from 10 years ago or 10 years from now…and that’s being optimistic about it’s valid range of applicability. As always, thank you for coming to my TED talk.&lt;/p&gt;</content><author><name></name></author><summary type="html">Classifying Misinformation with NLP</summary></entry><entry><title type="html">HW3 - Image Classifier</title><link href="https://da-adams.github.io/hw3/" rel="alternate" type="text/html" title="HW3 - Image Classifier" /><published>2022-05-09T00:00:00+00:00</published><updated>2022-05-09T00:00:00+00:00</updated><id>https://da-adams.github.io/hw3</id><content type="html" xml:base="https://da-adams.github.io/hw3/">&lt;h2 id=&quot;tensorflow-for-image-classification&quot;&gt;TensorFlow for Image Classification&lt;/h2&gt;

&lt;p&gt;For this assignment we’re going to train an ML algorithm to distinguish between pictures of cats and pictures of dogs.&lt;/p&gt;

&lt;p&gt;Consider it a good first foray into a few vital subjects:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;TensorFlow pipeline syntax and structure&lt;/li&gt;
  &lt;li&gt;Batching and prefetching data to prepare us to work with larger datasets&lt;/li&gt;
  &lt;li&gt;Data augmentation to allow us to create expanded versions of our data sets that allow models to learn patterns more robustly.&lt;/li&gt;
  &lt;li&gt;Transfer learning to allow us to use pre-trained models for new tasks.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So, without further delay, let’s get to our imports:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;os&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;tensorflow&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;tensorflow.keras&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;utils&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;the-dataset&quot;&gt;The Dataset&lt;/h1&gt;

&lt;p&gt;Now, let’s access the data. We’ll use a sample data set provided by the TensorFlow team that contains labeled images of cats and dogs.&lt;/p&gt;

&lt;p&gt;The needed code:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# location of data
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;_URL&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'https://storage.googleapis.com/mledu-datasets/cats_and_dogs_filtered.zip'&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# download the data and extract it
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;path_to_zip&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;utils&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get_file&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'cats_and_dogs.zip'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;origin&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;_URL&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;extract&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# construct paths
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;PATH&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;os&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;join&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;os&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dirname&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;path_to_zip&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'cats_and_dogs_filtered'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;train_dir&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;os&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;join&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;PATH&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'train'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;validation_dir&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;os&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;path&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;join&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;PATH&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'validation'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# parameters for datasets
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;BATCH_SIZE&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;IMG_SIZE&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;160&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;160&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# construct train and validation datasets 
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train_dataset&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;utils&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;image_dataset_from_directory&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train_dir&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                                                   &lt;span class=&quot;n&quot;&gt;shuffle&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                                                   &lt;span class=&quot;n&quot;&gt;batch_size&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;BATCH_SIZE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                                                   &lt;span class=&quot;n&quot;&gt;image_size&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;IMG_SIZE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;validation_dataset&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;utils&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;image_dataset_from_directory&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;validation_dir&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                                                        &lt;span class=&quot;n&quot;&gt;shuffle&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                                                        &lt;span class=&quot;n&quot;&gt;batch_size&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;BATCH_SIZE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                                                        &lt;span class=&quot;n&quot;&gt;image_size&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;IMG_SIZE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# construct the test dataset by taking every 5th observation out of the validation dataset
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;val_batches&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;experimental&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cardinality&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;validation_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;test_dataset&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;validation_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;take&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;val_batches&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;//&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;validation_dataset&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;validation_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;skip&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;val_batches&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;//&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Downloading data from https://storage.googleapis.com/mledu-datasets/cats_and_dogs_filtered.zip
68608000/68606236 [==============================] - 0s 0us/step
68616192/68606236 [==============================] - 0s 0us/step
Found 2000 files belonging to 2 classes.
Found 1000 files belonging to 2 classes.
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;With the above code we have created TensorFlow Datasets for training, validation, and testing, which is vital when it’s not convienent or feasible to load all the data into memory.&lt;/p&gt;

&lt;p&gt;A few key bits of syntax to know:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;The shuffle arg. makes it so that when data is pulled from this set, the order is randomized.&lt;/li&gt;
  &lt;li&gt;The batch_size arg. sets how many datapoints are pulled from the set at a time&lt;/li&gt;
  &lt;li&gt;The image_size arg. specifies the size of the images used, in this case, 160x160 pixels&lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;working-with-datasets&quot;&gt;Working with Datasets&lt;/h1&gt;

&lt;p&gt;Next we’ll write a function to create a two-row visualization. In the first row, show three random pictures of cats. In the second row, show three random pictures of dogs; it should provide a little practice working with datasets and batches while giving an idea of what the images we’re dealing with look like.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;matplotlib.pyplot&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;plt&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;numpy&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;np&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;twoRowVisual&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt; 
  
  &lt;span class=&quot;c1&quot;&gt;#pull and store names of classes (image catagories)
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;class_names&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;class_names&lt;/span&gt; 
  &lt;span class=&quot;n&quot;&gt;plt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;figure&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;figsize&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#set figure dims
&lt;/span&gt;
  &lt;span class=&quot;c1&quot;&gt;#if given a full dataset and not a batch, pull a batch
&lt;/span&gt;  &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'BatchDataset'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;dataset&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;take&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; 
  
  &lt;span class=&quot;c1&quot;&gt;#iterate through pertinent portions of subset batch 
&lt;/span&gt;  &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;images&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;labels&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;#some counters for loops...tensorflow doesn't bool index easy like pandas
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;catcount&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;dogcount&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;#ugly loops, seriously, if the assignment didn't seem to want this function
&lt;/span&gt;    &lt;span class=&quot;c1&quot;&gt;#to work soley w/ tf datasets, I'd convert the batch to a pd df or np array
&lt;/span&gt;    &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;range&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;len&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;labels&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)):&lt;/span&gt;
      &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;catcount&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;class_names&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;labels&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'cats'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;ax&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;plt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;subplot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;catcount&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;plt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;imshow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;images&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;numpy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;astype&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;uint8&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;plt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;class_names&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;labels&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]])&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;plt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;axis&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;off&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;catcount&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;
      &lt;span class=&quot;k&quot;&gt;elif&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;dogcount&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;class_names&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;labels&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'dogs'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;ax&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;plt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;subplot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;dogcount&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;plt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;imshow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;images&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;numpy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;astype&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;uint8&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;plt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;class_names&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;labels&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]])&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;plt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;axis&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;off&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;dogcount&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;
      &lt;span class=&quot;k&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;k&quot;&gt;break&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;twoRowVisual&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;/images/output_7_0.png&quot; alt=&quot;output_7_0.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;While I’m guessing you expected pictures of cats and dogs, it is worth noting how un-uniform these pictures are—bad lighting, different orientation of the subject, different relative size of the subject within the frame, etc.—which is what makes what’s about to come pretty cool&lt;/p&gt;

&lt;p&gt;Next we’re going to set up our prefetching, which is a little dense to get into here, but is if you’re into it, is explained in more depth &lt;a href=&quot;https://www.tensorflow.org/guide/data_performance&quot;&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;AUTOTUNE&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;AUTOTUNE&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;train_dataset&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;train_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;prefetch&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;buffer_size&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;AUTOTUNE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;validation_dataset&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;validation_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;prefetch&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;buffer_size&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;AUTOTUNE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;test_dataset&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;test_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;prefetch&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;buffer_size&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;AUTOTUNE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;check-label-frequencies&quot;&gt;Check Label Frequencies&lt;/h1&gt;

&lt;p&gt;To get an idea of the baseline rate in our data set we next need to create an iterator by unbatching our data, mapping it, and casting it to a numpy iterator.From there we just follow normal for &lt;strong&gt;__ in __&lt;/strong&gt;, automatic, container based iterative looping and count the labels.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;#create iterator - unbatch and remap the prefetch dataset OBJ, conv to numpy itr
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;labels_iterator&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;train_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;unbatch&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;map&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;lambda&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;image&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;label&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;label&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;as_numpy_iterator&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;#create variable to store our baseline count
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;baseline&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;count&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;#iterate through 
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;label&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;labels_iterator&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;baseline&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;label&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;count&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;baseline&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;count&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;baseline&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;count&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;1000
2000
0.5
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So, our dataset is perfectly balanced between cats and dogs…lovely, I’d have been surprised if TensorFlow assembled it asymmetrically! That’s our baseline number to beat (50%).&lt;/p&gt;

&lt;h1 id=&quot;first-model&quot;&gt;First Model&lt;/h1&gt;

&lt;p&gt;Now let’s put together our first model….&lt;/p&gt;

&lt;p&gt;(with a bonus diatribe to start)&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; &lt;span class=&quot;c1&quot;&gt;#if you perform this operation as the last line in a cell or as a print(), it 
&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#will display the shape info, but explicitly calling .shape on a BatchDataset 
&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#OBJ does not work as it does not have an attribute &quot;shape&quot;...It inherets from 
&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#datset, which has shape, and clearly the cell pulls such info...
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;take&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;#a single element does the same
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get_single_element&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;#The moral? Do as much as you can before you import or convert to tf datasets.
#I'm literally only doing it this way as I don't know the specs of the import
#and the assignment wants me to do it this way. Organize data first, batches
#and prefetch will want you to remap back to a standard dataset to use most
#of the syntax you've gotten used to. 
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&amp;lt;TakeDataset element_spec=(TensorSpec(shape=(None, 160, 160, 3), dtype=tf.float32, name=None), TensorSpec(shape=(None,), dtype=tf.int32, name=None))&amp;gt;
&amp;lt;bound method DatasetV2.get_single_element of &amp;lt;PrefetchDataset element_spec=(TensorSpec(shape=(None, 160, 160, 3), dtype=tf.float32, name=None), TensorSpec(shape=(None,), dtype=tf.int32, name=None))&amp;gt;&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;tensorflow.keras&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;datasets&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;models&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Here we’ll actually arrange the layers within our model.&lt;/p&gt;

&lt;p&gt;The Layers:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Conv2d: creates a layer of convolutional kernels, in this case 3x3 pixels&lt;/li&gt;
  &lt;li&gt;MaxPooling2d: downsamples the input by taking the max value over an input window (2x2 pixels in this case) - helps thin the herd both in terms of noise and computational efficiency&lt;/li&gt;
  &lt;li&gt;Dropout: same as before, randomly drops datapoints to help with overfitting&lt;/li&gt;
  &lt;li&gt;Flatten: flatten data from 2d to 1d for the dense layers to follow&lt;/li&gt;
  &lt;li&gt;Dense: same as prior tutorials.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Our first attempt (model1) will be the bear minimum: Conv2D, MaxPooling2d, Flatten and Dense layers alone:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;models&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Sequential&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Conv2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;input_shape&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;160&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;160&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MaxPooling2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Conv2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MaxPooling2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Conv2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;64&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# n &quot;pixels&quot; x n &quot;pixels&quot; x 64
&lt;/span&gt;      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Flatten&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(),&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# n^2 * 64 length vector
&lt;/span&gt;      
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dense&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;64&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dense&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# number of classes in your dataset
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;summary&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Model: &quot;sequential&quot;
_________________________________________________________________
 Layer (type)                Output Shape              Param #   
=================================================================
 conv2d (Conv2D)             (None, 158, 158, 32)      896       
                                                                 
 max_pooling2d (MaxPooling2D  (None, 79, 79, 32)       0         
 )                                                               
                                                                 
 conv2d_1 (Conv2D)           (None, 77, 77, 32)        9248      
                                                                 
 max_pooling2d_1 (MaxPooling  (None, 38, 38, 32)       0         
 2D)                                                             
                                                                 
 conv2d_2 (Conv2D)           (None, 36, 36, 64)        18496     
                                                                 
 flatten (Flatten)           (None, 82944)             0         
                                                                 
 dense (Dense)               (None, 64)                5308480   
                                                                 
 dense_1 (Dense)             (None, 2)                 130       
                                                                 
=================================================================
Total params: 5,337,250
Trainable params: 5,337,250
Non-trainable params: 0
_________________________________________________________________
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;compile&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;optimizer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'adam'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
              &lt;span class=&quot;n&quot;&gt;loss&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;losses&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;SparseCategoricalCrossentropy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;from_logits&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
              &lt;span class=&quot;n&quot;&gt;metrics&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'accuracy'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;o&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tensorflow_version&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;2.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;tensorflow&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;device_name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;test&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;gpu_device_name&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;device_name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'/device:GPU:0'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;raise&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;SystemError&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'GPU device not found'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'Found GPU at: {}'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;format&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;device_name&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Found GPU at: /device:GPU:0
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;history&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;model1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                     &lt;span class=&quot;n&quot;&gt;epochs&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                     &lt;span class=&quot;n&quot;&gt;validation_data&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;validation_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Epoch 1/20
63/63 [==============================] - 16s 62ms/step - loss: 46.8510 - accuracy: 0.4950 - val_loss: 0.6912 - val_accuracy: 0.5272
Epoch 2/20
63/63 [==============================] - 4s 57ms/step - loss: 0.6631 - accuracy: 0.6370 - val_loss: 0.7198 - val_accuracy: 0.5322
Epoch 3/20
63/63 [==============================] - 4s 58ms/step - loss: 0.5433 - accuracy: 0.7265 - val_loss: 0.7695 - val_accuracy: 0.5842
Epoch 4/20
63/63 [==============================] - 4s 57ms/step - loss: 0.3381 - accuracy: 0.8525 - val_loss: 0.9556 - val_accuracy: 0.5730
Epoch 5/20
63/63 [==============================] - 4s 60ms/step - loss: 0.1784 - accuracy: 0.9360 - val_loss: 1.0043 - val_accuracy: 0.5879
Epoch 6/20
63/63 [==============================] - 5s 74ms/step - loss: 0.1308 - accuracy: 0.9590 - val_loss: 1.2579 - val_accuracy: 0.5582
Epoch 7/20
63/63 [==============================] - 4s 55ms/step - loss: 0.0999 - accuracy: 0.9725 - val_loss: 1.7968 - val_accuracy: 0.5941
Epoch 8/20
63/63 [==============================] - 4s 57ms/step - loss: 0.1023 - accuracy: 0.9705 - val_loss: 2.2078 - val_accuracy: 0.5916
Epoch 9/20
63/63 [==============================] - 4s 56ms/step - loss: 0.0696 - accuracy: 0.9775 - val_loss: 2.1428 - val_accuracy: 0.5903
Epoch 10/20
63/63 [==============================] - 4s 59ms/step - loss: 0.0376 - accuracy: 0.9895 - val_loss: 2.5053 - val_accuracy: 0.5842
Epoch 11/20
63/63 [==============================] - 4s 56ms/step - loss: 0.0685 - accuracy: 0.9835 - val_loss: 1.7227 - val_accuracy: 0.5953
Epoch 12/20
63/63 [==============================] - 4s 56ms/step - loss: 0.0615 - accuracy: 0.9820 - val_loss: 3.1237 - val_accuracy: 0.5743
Epoch 13/20
63/63 [==============================] - 4s 57ms/step - loss: 0.0250 - accuracy: 0.9930 - val_loss: 2.6122 - val_accuracy: 0.5804
Epoch 14/20
63/63 [==============================] - 4s 57ms/step - loss: 0.0090 - accuracy: 0.9980 - val_loss: 2.6767 - val_accuracy: 0.5842
Epoch 15/20
63/63 [==============================] - 4s 57ms/step - loss: 0.0042 - accuracy: 0.9995 - val_loss: 3.4152 - val_accuracy: 0.5767
Epoch 16/20
63/63 [==============================] - 4s 57ms/step - loss: 0.0119 - accuracy: 0.9970 - val_loss: 3.1464 - val_accuracy: 0.5668
Epoch 17/20
63/63 [==============================] - 4s 57ms/step - loss: 0.0613 - accuracy: 0.9825 - val_loss: 2.1627 - val_accuracy: 0.5866
Epoch 18/20
63/63 [==============================] - 4s 57ms/step - loss: 0.0359 - accuracy: 0.9925 - val_loss: 2.6074 - val_accuracy: 0.5854
Epoch 19/20
63/63 [==============================] - 4s 57ms/step - loss: 0.0279 - accuracy: 0.9920 - val_loss: 2.5656 - val_accuracy: 0.5990
Epoch 20/20
63/63 [==============================] - 4s 57ms/step - loss: 0.0326 - accuracy: 0.9915 - val_loss: 2.2806 - val_accuracy: 0.6101
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This first model stabilized &lt;strong&gt;between 60 and 61% accuracy&lt;/strong&gt;. Not bad, but far from great. Let’s take another stab at, calling it model1_1 (model 1, 1st improvement? I named these before writing this, I dunno man). We’re also &lt;strong&gt;massively overfitting&lt;/strong&gt;, the training set is scoring around 99% compared to 61% for the validation set. Let’s add a dropout layer to see if it helps:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model1_1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;models&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Sequential&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Conv2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;input_shape&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;160&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;160&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MaxPooling2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Conv2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MaxPooling2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dropout&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rate&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Conv2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;64&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# n &quot;pixels&quot; x n &quot;pixels&quot; x 64
&lt;/span&gt;      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Flatten&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(),&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# n^2 * 64 length vector
&lt;/span&gt;      
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dense&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;64&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dense&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# number of classes in your dataset
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model1_1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;compile&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;optimizer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'adam'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
              &lt;span class=&quot;n&quot;&gt;loss&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;losses&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;SparseCategoricalCrossentropy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;from_logits&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
              &lt;span class=&quot;n&quot;&gt;metrics&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'accuracy'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;history1_1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;model1_1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                     &lt;span class=&quot;n&quot;&gt;epochs&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                     &lt;span class=&quot;n&quot;&gt;validation_data&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;validation_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Epoch 1/20
63/63 [==============================] - 4s 58ms/step - loss: 40.7283 - accuracy: 0.5275 - val_loss: 0.6939 - val_accuracy: 0.5111
Epoch 2/20
63/63 [==============================] - 4s 59ms/step - loss: 0.6744 - accuracy: 0.5860 - val_loss: 0.6967 - val_accuracy: 0.5260
Epoch 3/20
63/63 [==============================] - 4s 61ms/step - loss: 0.6391 - accuracy: 0.6080 - val_loss: 0.6995 - val_accuracy: 0.5446
Epoch 4/20
63/63 [==============================] - 4s 60ms/step - loss: 0.5970 - accuracy: 0.6650 - val_loss: 0.7250 - val_accuracy: 0.5334
Epoch 5/20
63/63 [==============================] - 4s 60ms/step - loss: 0.5531 - accuracy: 0.6870 - val_loss: 0.7280 - val_accuracy: 0.5656
Epoch 6/20
63/63 [==============================] - 4s 59ms/step - loss: 0.4849 - accuracy: 0.7410 - val_loss: 0.7905 - val_accuracy: 0.5941
Epoch 7/20
63/63 [==============================] - 4s 58ms/step - loss: 0.4361 - accuracy: 0.7835 - val_loss: 0.8108 - val_accuracy: 0.5854
Epoch 8/20
63/63 [==============================] - 4s 58ms/step - loss: 0.3692 - accuracy: 0.8270 - val_loss: 0.9603 - val_accuracy: 0.5755
Epoch 9/20
63/63 [==============================] - 4s 60ms/step - loss: 0.3338 - accuracy: 0.8475 - val_loss: 1.0265 - val_accuracy: 0.5879
Epoch 10/20
63/63 [==============================] - 4s 59ms/step - loss: 0.3234 - accuracy: 0.8555 - val_loss: 1.1079 - val_accuracy: 0.5693
Epoch 11/20
63/63 [==============================] - 4s 59ms/step - loss: 0.2424 - accuracy: 0.8920 - val_loss: 1.2843 - val_accuracy: 0.5829
Epoch 12/20
63/63 [==============================] - 4s 58ms/step - loss: 0.1832 - accuracy: 0.9185 - val_loss: 1.5899 - val_accuracy: 0.5978
Epoch 13/20
63/63 [==============================] - 4s 60ms/step - loss: 0.1641 - accuracy: 0.9300 - val_loss: 1.5651 - val_accuracy: 0.6200
Epoch 14/20
63/63 [==============================] - 4s 60ms/step - loss: 0.1559 - accuracy: 0.9375 - val_loss: 1.4159 - val_accuracy: 0.6015
Epoch 15/20
63/63 [==============================] - 4s 60ms/step - loss: 0.1056 - accuracy: 0.9585 - val_loss: 1.9492 - val_accuracy: 0.6213
Epoch 16/20
63/63 [==============================] - 4s 56ms/step - loss: 0.1022 - accuracy: 0.9635 - val_loss: 2.1940 - val_accuracy: 0.5953
Epoch 17/20
63/63 [==============================] - 4s 56ms/step - loss: 0.1020 - accuracy: 0.9595 - val_loss: 1.8305 - val_accuracy: 0.6176
Epoch 18/20
63/63 [==============================] - 4s 57ms/step - loss: 0.1144 - accuracy: 0.9535 - val_loss: 2.1844 - val_accuracy: 0.6064
Epoch 19/20
63/63 [==============================] - 4s 56ms/step - loss: 0.1066 - accuracy: 0.9595 - val_loss: 2.0984 - val_accuracy: 0.5990
Epoch 20/20
63/63 [==============================] - 4s 55ms/step - loss: 0.0682 - accuracy: 0.9785 - val_loss: 2.3234 - val_accuracy: 0.5928
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;V1.1 - Not much better, falling &lt;strong&gt;between 59 and 61% accuracy&lt;/strong&gt;. and still &lt;strong&gt;severely overfitting&lt;/strong&gt; Let’s try another arragement of layers with even more dropouts:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model1_2&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;models&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Sequential&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Conv2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;input_shape&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;160&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;160&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MaxPooling2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dropout&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rate&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Conv2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MaxPooling2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dropout&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rate&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Conv2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;64&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# n &quot;pixels&quot; x n &quot;pixels&quot; x 64
&lt;/span&gt;      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Flatten&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(),&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# n^2 * 64 length vector
&lt;/span&gt;      &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dropout&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rate&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dense&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;64&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dropout&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rate&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dense&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# number of classes in your dataset
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model1_2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;compile&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;optimizer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'adam'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
              &lt;span class=&quot;n&quot;&gt;loss&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;losses&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;SparseCategoricalCrossentropy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;from_logits&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
              &lt;span class=&quot;n&quot;&gt;metrics&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'accuracy'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;history1_2&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;model1_2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                     &lt;span class=&quot;n&quot;&gt;epochs&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                     &lt;span class=&quot;n&quot;&gt;validation_data&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;validation_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Epoch 1/20
63/63 [==============================] - 4s 59ms/step - loss: 58.9596 - accuracy: 0.5060 - val_loss: 0.6882 - val_accuracy: 0.5186
Epoch 2/20
63/63 [==============================] - 4s 55ms/step - loss: 0.6983 - accuracy: 0.5250 - val_loss: 0.6903 - val_accuracy: 0.5062
Epoch 3/20
63/63 [==============================] - 4s 55ms/step - loss: 0.6927 - accuracy: 0.5175 - val_loss: 0.6972 - val_accuracy: 0.4926
Epoch 4/20
63/63 [==============================] - 6s 88ms/step - loss: 0.6849 - accuracy: 0.5425 - val_loss: 0.6962 - val_accuracy: 0.5631
Epoch 5/20
63/63 [==============================] - 4s 56ms/step - loss: 0.6643 - accuracy: 0.5815 - val_loss: 0.6991 - val_accuracy: 0.5483
Epoch 6/20
63/63 [==============================] - 4s 56ms/step - loss: 0.6584 - accuracy: 0.5825 - val_loss: 0.7136 - val_accuracy: 0.5408
Epoch 7/20
63/63 [==============================] - 4s 55ms/step - loss: 0.6280 - accuracy: 0.6130 - val_loss: 0.7902 - val_accuracy: 0.5322
Epoch 8/20
63/63 [==============================] - 4s 55ms/step - loss: 0.6041 - accuracy: 0.6425 - val_loss: 0.7504 - val_accuracy: 0.5755
Epoch 9/20
63/63 [==============================] - 4s 63ms/step - loss: 0.5674 - accuracy: 0.6790 - val_loss: 0.7707 - val_accuracy: 0.5829
Epoch 10/20
63/63 [==============================] - 5s 75ms/step - loss: 0.5492 - accuracy: 0.6930 - val_loss: 0.9423 - val_accuracy: 0.5767
Epoch 11/20
63/63 [==============================] - 5s 82ms/step - loss: 0.5248 - accuracy: 0.7195 - val_loss: 0.8501 - val_accuracy: 0.5718
Epoch 12/20
63/63 [==============================] - 6s 85ms/step - loss: 0.4989 - accuracy: 0.7305 - val_loss: 0.9044 - val_accuracy: 0.5730
Epoch 13/20
63/63 [==============================] - 5s 70ms/step - loss: 0.4605 - accuracy: 0.7610 - val_loss: 0.9045 - val_accuracy: 0.5891
Epoch 14/20
63/63 [==============================] - 4s 57ms/step - loss: 0.4372 - accuracy: 0.7745 - val_loss: 1.0750 - val_accuracy: 0.6027
Epoch 15/20
63/63 [==============================] - 4s 63ms/step - loss: 0.4110 - accuracy: 0.7890 - val_loss: 1.2232 - val_accuracy: 0.6101
Epoch 16/20
63/63 [==============================] - 5s 71ms/step - loss: 0.3640 - accuracy: 0.8300 - val_loss: 1.3792 - val_accuracy: 0.6312
Epoch 17/20
63/63 [==============================] - 5s 75ms/step - loss: 0.3479 - accuracy: 0.8330 - val_loss: 1.3543 - val_accuracy: 0.6064
Epoch 18/20
63/63 [==============================] - 5s 78ms/step - loss: 0.3122 - accuracy: 0.8505 - val_loss: 1.4907 - val_accuracy: 0.6275
Epoch 19/20
63/63 [==============================] - 4s 56ms/step - loss: 0.3131 - accuracy: 0.8625 - val_loss: 1.2664 - val_accuracy: 0.6374
Epoch 20/20
63/63 [==============================] - 4s 56ms/step - loss: 0.2920 - accuracy: 0.8740 - val_loss: 1.1579 - val_accuracy: 0.6399
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;There we go! V1.2 stabilized &lt;strong&gt;between 63 and 64% accuracy&lt;/strong&gt; yet still &lt;strong&gt;experienced overfitting (the training set scored significantly higher than the validation set)&lt;/strong&gt; however to a significantly lesser degree.&lt;/p&gt;

&lt;h1 id=&quot;model-with-data-augmentation&quot;&gt;Model with Data Augmentation&lt;/h1&gt;

&lt;p&gt;For our second model, we’re going to add data augmentation layers, which, by including modified copies of the same images in the set, will help our model learn invariant features of our images.&lt;/p&gt;

&lt;p&gt;We’re going to add an image flipping and an image rotating layer. Just to see what that looks like:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;flip_example&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;RandomFlip&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'horizontal'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;image&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;_&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;train_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;take&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;plt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;figure&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;figsize&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
  &lt;span class=&quot;n&quot;&gt;first_image&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;image&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
  &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;range&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;ax&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;plt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;subplot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;i&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;augmented_image&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;flip_example&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;expand_dims&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;first_image&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;plt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;imshow&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;augmented_image&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;255&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;plt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;axis&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'off'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;



&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;/images/output_30_0.png&quot; alt=&quot;output_30_0.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Now let’s add these two layers to the model and test it:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model2&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;models&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Sequential&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;RandomFlip&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;RandomRotation&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;factor&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;0.2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Conv2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;input_shape&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;160&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;160&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MaxPooling2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt;
      &lt;span class=&quot;c1&quot;&gt;#tf.keras.layers.Dropout(rate=0.2),
&lt;/span&gt;      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Conv2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MaxPooling2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt;
      &lt;span class=&quot;c1&quot;&gt;#tf.keras.layers.Dropout(rate=0.2),
&lt;/span&gt;      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Conv2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;64&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# n &quot;pixels&quot; x n &quot;pixels&quot; x 64
&lt;/span&gt;      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Flatten&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(),&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# n^2 * 64 length vector
&lt;/span&gt;      &lt;span class=&quot;c1&quot;&gt;#tf.keras.layers.Dropout(rate=0.2),
&lt;/span&gt;      
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dense&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;64&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;c1&quot;&gt;#tf.keras.layers.Dropout(rate=0.2),
&lt;/span&gt;      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dense&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# number of classes in your dataset
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;compile&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;optimizer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'adam'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
              &lt;span class=&quot;n&quot;&gt;loss&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;losses&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;SparseCategoricalCrossentropy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;from_logits&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
              &lt;span class=&quot;n&quot;&gt;metrics&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'accuracy'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;history2&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;model2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                     &lt;span class=&quot;n&quot;&gt;epochs&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                     &lt;span class=&quot;n&quot;&gt;validation_data&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;validation_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Epoch 1/20
63/63 [==============================] - 5s 61ms/step - loss: 27.7780 - accuracy: 0.5415 - val_loss: 0.7245 - val_accuracy: 0.5495
Epoch 2/20
63/63 [==============================] - 5s 73ms/step - loss: 0.6988 - accuracy: 0.5675 - val_loss: 0.7080 - val_accuracy: 0.5483
Epoch 3/20
63/63 [==============================] - 4s 60ms/step - loss: 0.6765 - accuracy: 0.5960 - val_loss: 0.6789 - val_accuracy: 0.5829
Epoch 4/20
63/63 [==============================] - 4s 61ms/step - loss: 0.6766 - accuracy: 0.6110 - val_loss: 0.6624 - val_accuracy: 0.6101
Epoch 5/20
63/63 [==============================] - 4s 57ms/step - loss: 0.6649 - accuracy: 0.6160 - val_loss: 0.6793 - val_accuracy: 0.5854
Epoch 6/20
63/63 [==============================] - 4s 57ms/step - loss: 0.6715 - accuracy: 0.6065 - val_loss: 0.6739 - val_accuracy: 0.6064
Epoch 7/20
63/63 [==============================] - 4s 55ms/step - loss: 0.6542 - accuracy: 0.6220 - val_loss: 0.6684 - val_accuracy: 0.6040
Epoch 8/20
63/63 [==============================] - 4s 57ms/step - loss: 0.6439 - accuracy: 0.6425 - val_loss: 0.6614 - val_accuracy: 0.6374
Epoch 9/20
63/63 [==============================] - 4s 56ms/step - loss: 0.6346 - accuracy: 0.6455 - val_loss: 0.6699 - val_accuracy: 0.6287
Epoch 10/20
63/63 [==============================] - 4s 56ms/step - loss: 0.6390 - accuracy: 0.6430 - val_loss: 0.6718 - val_accuracy: 0.6126
Epoch 11/20
63/63 [==============================] - 4s 56ms/step - loss: 0.6451 - accuracy: 0.6435 - val_loss: 0.6997 - val_accuracy: 0.5606
Epoch 12/20
63/63 [==============================] - 4s 56ms/step - loss: 0.6314 - accuracy: 0.6405 - val_loss: 0.6919 - val_accuracy: 0.6027
Epoch 13/20
63/63 [==============================] - 4s 57ms/step - loss: 0.6406 - accuracy: 0.6510 - val_loss: 0.6549 - val_accuracy: 0.6163
Epoch 14/20
63/63 [==============================] - 4s 58ms/step - loss: 0.6317 - accuracy: 0.6580 - val_loss: 0.7084 - val_accuracy: 0.6052
Epoch 15/20
63/63 [==============================] - 4s 58ms/step - loss: 0.6327 - accuracy: 0.6555 - val_loss: 0.6559 - val_accuracy: 0.6163
Epoch 16/20
63/63 [==============================] - 4s 57ms/step - loss: 0.6226 - accuracy: 0.6635 - val_loss: 0.6773 - val_accuracy: 0.6188
Epoch 17/20
63/63 [==============================] - 4s 57ms/step - loss: 0.6369 - accuracy: 0.6410 - val_loss: 0.6832 - val_accuracy: 0.6386
Epoch 18/20
63/63 [==============================] - 4s 57ms/step - loss: 0.6220 - accuracy: 0.6535 - val_loss: 0.6585 - val_accuracy: 0.6312
Epoch 19/20
63/63 [==============================] - 4s 57ms/step - loss: 0.6215 - accuracy: 0.6615 - val_loss: 0.6593 - val_accuracy: 0.6399
Epoch 20/20
63/63 [==============================] - 4s 56ms/step - loss: 0.6239 - accuracy: 0.6515 - val_loss: 0.6532 - val_accuracy: 0.6386
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;So, it appears that while this model stored about the same as the prior (&lt;strong&gt;between 63 and 64% validation accuracy&lt;/strong&gt;) it did so with &lt;strong&gt;no apparent overfitting&lt;/strong&gt;; the test set actually performed slightly worse than the validation set. If you look at what I’ve commented out, you’ll also notice that this was achieved &lt;strong&gt;without&lt;/strong&gt; dropout layers…those actually docked the performance of this model down to roughly chance, perhaps on account of dropping the image that the Data Augmentation layers made a modified copy of, thus confusing the whole thing.&lt;/p&gt;

&lt;h1 id=&quot;data-preprocessing&quot;&gt;Data Preprocessing&lt;/h1&gt;

&lt;p&gt;Next we’re going to incorporate a preprocessing layer. This will normalize our RGB values between 0 and 1, making our model significantly more computationally efficient.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;#i = tf.keras.Input(shape=(160, 160, 3))
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;applications&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mobilenet_v2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;preprocess_input&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;preprocessor&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Model&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;inputs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;outputs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model3&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;models&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Sequential&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;preprocessor&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;RandomFlip&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;RandomRotation&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;factor&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;0.4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Conv2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;input_shape&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;160&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;160&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MaxPooling2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Conv2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MaxPooling2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;((&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dropout&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rate&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Conv2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;64&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# n &quot;pixels&quot; x n &quot;pixels&quot; x 64
&lt;/span&gt;      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Flatten&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(),&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# n^2 * 64 length vector
&lt;/span&gt;      
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dense&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;64&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;activation&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'relu'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dense&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# number of classes in your dataset
&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;compile&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;optimizer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'adam'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
              &lt;span class=&quot;n&quot;&gt;loss&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;losses&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;SparseCategoricalCrossentropy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;from_logits&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
              &lt;span class=&quot;n&quot;&gt;metrics&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'accuracy'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;history3&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;model3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                     &lt;span class=&quot;n&quot;&gt;epochs&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                     &lt;span class=&quot;n&quot;&gt;validation_data&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;validation_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Epoch 1/20
63/63 [==============================] - 5s 58ms/step - loss: 0.7626 - accuracy: 0.5215 - val_loss: 0.6771 - val_accuracy: 0.5829
Epoch 2/20
63/63 [==============================] - 4s 56ms/step - loss: 0.6637 - accuracy: 0.5750 - val_loss: 0.6873 - val_accuracy: 0.5681
Epoch 3/20
63/63 [==============================] - 4s 56ms/step - loss: 0.6532 - accuracy: 0.6085 - val_loss: 0.6455 - val_accuracy: 0.6522
Epoch 4/20
63/63 [==============================] - 4s 56ms/step - loss: 0.6370 - accuracy: 0.6030 - val_loss: 0.6483 - val_accuracy: 0.5804
Epoch 5/20
63/63 [==============================] - 4s 55ms/step - loss: 0.6482 - accuracy: 0.6000 - val_loss: 0.6640 - val_accuracy: 0.5891
Epoch 6/20
63/63 [==============================] - 4s 56ms/step - loss: 0.6233 - accuracy: 0.6395 - val_loss: 0.6352 - val_accuracy: 0.6361
Epoch 7/20
63/63 [==============================] - 4s 56ms/step - loss: 0.6121 - accuracy: 0.6790 - val_loss: 0.6051 - val_accuracy: 0.6795
Epoch 8/20
63/63 [==============================] - 4s 56ms/step - loss: 0.6169 - accuracy: 0.6435 - val_loss: 0.6254 - val_accuracy: 0.6411
Epoch 9/20
63/63 [==============================] - 4s 56ms/step - loss: 0.6041 - accuracy: 0.6725 - val_loss: 0.5932 - val_accuracy: 0.7017
Epoch 10/20
63/63 [==============================] - 4s 55ms/step - loss: 0.5991 - accuracy: 0.6805 - val_loss: 0.6152 - val_accuracy: 0.6906
Epoch 11/20
63/63 [==============================] - 4s 56ms/step - loss: 0.5713 - accuracy: 0.6990 - val_loss: 0.6056 - val_accuracy: 0.6745
Epoch 12/20
63/63 [==============================] - 4s 56ms/step - loss: 0.5726 - accuracy: 0.6970 - val_loss: 0.5879 - val_accuracy: 0.6906
Epoch 13/20
63/63 [==============================] - 4s 57ms/step - loss: 0.5565 - accuracy: 0.7125 - val_loss: 0.5874 - val_accuracy: 0.6770
Epoch 14/20
63/63 [==============================] - 4s 57ms/step - loss: 0.5503 - accuracy: 0.7170 - val_loss: 0.5888 - val_accuracy: 0.6683
Epoch 15/20
63/63 [==============================] - 4s 57ms/step - loss: 0.5544 - accuracy: 0.7185 - val_loss: 0.5841 - val_accuracy: 0.7129
Epoch 16/20
63/63 [==============================] - 4s 57ms/step - loss: 0.5477 - accuracy: 0.7210 - val_loss: 0.5754 - val_accuracy: 0.6856
Epoch 17/20
63/63 [==============================] - 4s 57ms/step - loss: 0.5488 - accuracy: 0.7005 - val_loss: 0.5592 - val_accuracy: 0.6980
Epoch 18/20
63/63 [==============================] - 4s 57ms/step - loss: 0.5370 - accuracy: 0.7160 - val_loss: 0.5765 - val_accuracy: 0.7092
Epoch 19/20
63/63 [==============================] - 4s 57ms/step - loss: 0.5366 - accuracy: 0.7380 - val_loss: 0.5737 - val_accuracy: 0.7240
Epoch 20/20
63/63 [==============================] - 4s 56ms/step - loss: 0.5291 - accuracy: 0.7300 - val_loss: 0.5744 - val_accuracy: 0.7042
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Awesome, this performance increase resulting in a &lt;strong&gt;validation score that stabilizes accross runs between 70 and 72%&lt;/strong&gt; with &lt;strong&gt;little signs of overfitting&lt;/strong&gt; based on the relative performance between train and validation sets.&lt;/p&gt;

&lt;h1 id=&quot;transfer-learning&quot;&gt;Transfer Learning&lt;/h1&gt;

&lt;p&gt;For our last model, we’re going to incorporate a pre-trained model as the base. Lets first download the model:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;IMG_SHAPE&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;IMG_SIZE&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;base_model&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;applications&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;MobileNetV2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;input_shape&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;IMG_SHAPE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                                               &lt;span class=&quot;n&quot;&gt;include_top&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;False&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                                               &lt;span class=&quot;n&quot;&gt;weights&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'imagenet'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;base_model&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;trainable&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;False&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Input&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;shape&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;IMG_SHAPE&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;base_model&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;training&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;False&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;base_model_layer&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Model&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;inputs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;outputs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Downloading data from https://storage.googleapis.com/tensorflow/keras-applications/mobilenet_v2/mobilenet_v2_weights_tf_dim_ordering_tf_kernels_1.0_160_no_top.h5
9412608/9406464 [==============================] - 0s 0us/step
9420800/9406464 [==============================] - 0s 0us/step
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Next we’ll slot in this base model as a layer between our data augmentation layers and our subsequent pooling, dropout, and final, classifying dense layer.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model4&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;models&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Sequential&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;preprocessor&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;RandomFlip&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'horizontal'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;RandomRotation&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;factor&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;0.3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;base_model_layer&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;GlobalAveragePooling2D&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dropout&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rate&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
      &lt;span class=&quot;n&quot;&gt;layers&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Dense&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; 
&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;model4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;compile&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;optimizer&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'adam'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
              &lt;span class=&quot;n&quot;&gt;loss&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;keras&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;losses&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;BinaryCrossentropy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;from_logits&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt;
              &lt;span class=&quot;n&quot;&gt;metrics&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'accuracy'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;history4&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;model4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;train_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                     &lt;span class=&quot;n&quot;&gt;epochs&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                     &lt;span class=&quot;n&quot;&gt;validation_data&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;validation_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Epoch 1/20
63/63 [==============================] - 10s 96ms/step - loss: 0.4044 - accuracy: 0.7940 - val_loss: 0.1286 - val_accuracy: 0.9579
Epoch 2/20
63/63 [==============================] - 4s 61ms/step - loss: 0.2284 - accuracy: 0.9040 - val_loss: 0.0933 - val_accuracy: 0.9666
Epoch 3/20
63/63 [==============================] - 4s 60ms/step - loss: 0.1855 - accuracy: 0.9190 - val_loss: 0.0651 - val_accuracy: 0.9802
Epoch 4/20
63/63 [==============================] - 4s 59ms/step - loss: 0.1682 - accuracy: 0.9245 - val_loss: 0.0618 - val_accuracy: 0.9765
Epoch 5/20
63/63 [==============================] - 4s 60ms/step - loss: 0.1666 - accuracy: 0.9300 - val_loss: 0.0544 - val_accuracy: 0.9827
Epoch 6/20
63/63 [==============================] - 4s 60ms/step - loss: 0.1585 - accuracy: 0.9310 - val_loss: 0.0553 - val_accuracy: 0.9740
Epoch 7/20
63/63 [==============================] - 4s 59ms/step - loss: 0.1516 - accuracy: 0.9325 - val_loss: 0.0487 - val_accuracy: 0.9876
Epoch 8/20
63/63 [==============================] - 4s 60ms/step - loss: 0.1426 - accuracy: 0.9390 - val_loss: 0.0545 - val_accuracy: 0.9839
Epoch 9/20
63/63 [==============================] - 4s 59ms/step - loss: 0.1400 - accuracy: 0.9420 - val_loss: 0.0497 - val_accuracy: 0.9851
Epoch 10/20
63/63 [==============================] - 4s 59ms/step - loss: 0.1462 - accuracy: 0.9390 - val_loss: 0.0453 - val_accuracy: 0.9827
Epoch 11/20
63/63 [==============================] - 4s 60ms/step - loss: 0.1260 - accuracy: 0.9500 - val_loss: 0.0544 - val_accuracy: 0.9765
Epoch 12/20
63/63 [==============================] - 4s 61ms/step - loss: 0.1454 - accuracy: 0.9375 - val_loss: 0.0478 - val_accuracy: 0.9864
Epoch 13/20
63/63 [==============================] - 4s 60ms/step - loss: 0.1401 - accuracy: 0.9400 - val_loss: 0.0524 - val_accuracy: 0.9740
Epoch 14/20
63/63 [==============================] - 4s 60ms/step - loss: 0.1317 - accuracy: 0.9470 - val_loss: 0.0439 - val_accuracy: 0.9814
Epoch 15/20
63/63 [==============================] - 4s 60ms/step - loss: 0.1296 - accuracy: 0.9490 - val_loss: 0.0506 - val_accuracy: 0.9839
Epoch 16/20
63/63 [==============================] - 4s 60ms/step - loss: 0.1425 - accuracy: 0.9415 - val_loss: 0.0531 - val_accuracy: 0.9802
Epoch 17/20
63/63 [==============================] - 4s 60ms/step - loss: 0.1289 - accuracy: 0.9485 - val_loss: 0.0462 - val_accuracy: 0.9802
Epoch 18/20
63/63 [==============================] - 4s 61ms/step - loss: 0.1271 - accuracy: 0.9465 - val_loss: 0.0460 - val_accuracy: 0.9765
Epoch 19/20
63/63 [==============================] - 4s 62ms/step - loss: 0.1370 - accuracy: 0.9430 - val_loss: 0.0510 - val_accuracy: 0.9777
Epoch 20/20
63/63 [==============================] - 4s 60ms/step - loss: 0.1074 - accuracy: 0.9530 - val_loss: 0.0408 - val_accuracy: 0.9876
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This last model &lt;strong&gt;stabilized between 98 and 99% accuracy&lt;/strong&gt;! with &lt;strong&gt;no signs of overfitting&lt;/strong&gt; as the test set scored worse than the validation set. Moral of the story? Work smart, not hard. Stand on the shoulders of giants. Am I missing any truisms about this concept? You get the idea.&lt;/p&gt;

&lt;p&gt;#Scoring on Test Data&lt;/p&gt;

&lt;p&gt;Lastly, let’s take this final combined model and evaluate it using unseen test data:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Retrieve a batch of images from the test set
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;image_batch&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;label_batch&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;test_dataset&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;as_numpy_iterator&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;().&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;next&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;predictions&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;model4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;predict_on_batch&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;image_batch&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;flatten&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;predictions&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;shape&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;model4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;predict_on_batch&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;image_batch&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;shape&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# Apply a sigmoid since our model returns logits
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;predictions&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;nn&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sigmoid&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;predictions&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;predictions&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;tf&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;where&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;predictions&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;0.5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'Predictions:&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\n&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;predictions&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;numpy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;())&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'Labels:&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\n&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;label_batch&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;np&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mean&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;predictions&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;numpy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;label_batch&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;(32,)
(32, 1)
Predictions:
 [0 0 1 1 0 1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 1 0 1 1 0 1 1 1 0 1 0 1]
Labels:
 [0 0 1 1 0 1 0 1 0 1 1 0 0 1 0 1 0 0 0 0 1 0 1 1 0 1 1 1 0 1 0 1]
1.0
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Nice, we scored &lt;strong&gt;100% on our test batch&lt;/strong&gt;!&lt;/p&gt;</content><author><name></name></author><summary type="html">TensorFlow for Image Classification</summary></entry><entry><title type="html">HW2 - Webscraping</title><link href="https://da-adams.github.io/hw2/" rel="alternate" type="text/html" title="HW2 - Webscraping" /><published>2022-04-29T00:00:00+00:00</published><updated>2022-04-29T00:00:00+00:00</updated><id>https://da-adams.github.io/hw2</id><content type="html" xml:base="https://da-adams.github.io/hw2/">&lt;h2 id=&quot;webscraping-imdb-for-showfilm-recommendations&quot;&gt;Webscraping IMDB For Show/Film Recommendations&lt;/h2&gt;

&lt;p&gt;For this assignment post we’re going to approach the idea of media recommendations in a way that builds experience with webscraping basics. More specifically, we hope that by answering the question “What movie or TV shows share actors with your favorite movie or show?” we can extrapolate some recommendations from the resultant data. The proposed logic is as follows: “if TV show Y has many of the same actors as TV show X, and you like X, you might also enjoy Y.” Simple enough, right?&lt;/p&gt;

&lt;p&gt;Here we’re going to first follow the assignment spec as exactly as possible, and highlight some of the pitfalls of the raw data…then, in a later part, show how, by refining the question and nailing down more rigorous definitions of what our language and intent really mean, we can, with the same basic scraping, tools get better results. As always, the machine doesn’t know what you mean, only what you explicitly say…so consider this an extension of our ongoing theme of applying the principles of good study design and proper translation of semantic intent to work smarter, not harder, with a limited computational toolkit.&lt;/p&gt;

&lt;p&gt;The repository for the scraper can be found &lt;a href=&quot;https://github.com/DA-Adams/IMDB_scraper&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;h1 id=&quot;initial-setup&quot;&gt;Initial Setup&lt;/h1&gt;

&lt;p&gt;First, create a new GitHub repository, and sync it with GitHub Desktop. This repository will house your scraper.&lt;/p&gt;

&lt;p&gt;Second, you will need to actually create a scrappy project. Open your terminal in the location of your repository and enter:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;conda activate PIC16B &lt;br /&gt; scrapy startproject IMDB_scraper &lt;br /&gt; cd IMDB_scraper&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;See all the files? You only have to worry about the settings.py file. In this file you can add the following to keep your scrape nice and short (in this case 20 pages) to test things out. Simply comment it out when you want to perform the whole scrape.&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;CLOSESPIDER_PAGECOUNT = 20&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1 id=&quot;writing-your-scraper&quot;&gt;Writing Your Scraper&lt;/h1&gt;

&lt;p&gt;Create a file inside the spiders directory called imdb_spider.py. Add the following lines to the file:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# to run 
# scrapy crawl imdb_spider -o movies.csv
&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;scrapy&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;ImdbSpider&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;scrapy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Spider&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'imdb_spider'&lt;/span&gt;
    
    &lt;span class=&quot;n&quot;&gt;start_urls&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;https://www.imdb.com/title/tt0804503/&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Replace the entry of start_urls with the URL corresponding to your favorite movie or TV show. I’m going to use Mad Men, since it has great rewatch value—character driven drama with an ensemble cast doesn’t rely much on the sort in the moment, social phenomenon, “what happens next?!” hype—and the high episode count and high number of mid-tier prestige actors in it makes for a good illustrative dataset.&lt;/p&gt;

&lt;p&gt;Next, we’re going to write the methods for this class that implement our scrape&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;parse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;response&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#join current url w/ string to create url to full credits page
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;next_page&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;response&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;urljoin&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;fullcredits&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

    &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;next_page&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#if it exists, which it should, every IMDB listing has one...
&lt;/span&gt;    &lt;span class=&quot;c1&quot;&gt;#Pass next_page to the Request OBJ of this spider, set the callback function to invoke the parse
&lt;/span&gt;    &lt;span class=&quot;c1&quot;&gt;#method (since Python can't just say member function and has to remind me of Java) for full credts
&lt;/span&gt;        &lt;span class=&quot;k&quot;&gt;yield&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;scrapy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Request&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;next_page&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;callback&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;parse_full_credits&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This first parse method presumes you have started on the main page for the show or film in question and calls the urljoin method of our spider’s response object to append “fullcredits” to our starting url. From here, we pass this new url (for the full credits page of our show) to the spider’s request object, and set the callback to invoke our next method on that page. This next method (shown below) will parse the url’s for each actor on the full credits page.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;parse_full_credits&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;response&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#create list of relative paths for each actor (clicking on a headshot)
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;actor_list&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;attrib&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;href&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;a&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;response&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;css&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;td.primary_photo a&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)]&lt;/span&gt;

    &lt;span class=&quot;c1&quot;&gt;#iterate through each actor path in the list
&lt;/span&gt;    &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;actor&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;actor_list&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
            
        &lt;span class=&quot;c1&quot;&gt;#join relative path to existing url
&lt;/span&gt;        &lt;span class=&quot;n&quot;&gt;actor_page&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;response&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;urljoin&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;actor&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

        &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;actor_page&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#if it is not null
&lt;/span&gt;            &lt;span class=&quot;c1&quot;&gt;#Pass the url to this spider's request OBJ, set callback to invoke
&lt;/span&gt;            &lt;span class=&quot;c1&quot;&gt;#the method to parse an actor's page
&lt;/span&gt;            &lt;span class=&quot;k&quot;&gt;yield&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;scrapy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Request&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;actor_page&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;callback&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;parse_actor_page&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This method mimics clicking on each actors headshot on the full credits page. It works by creating a list of the hyperlink modifiers(via the shown list comprehension) from the list returned by the response.css query. Basically, “for each element in the list returned by the response.css query, take the href attribute and put them all in a list called actor_list.” Here, “td.primary_photo a”, is the css selector for each headshot of an actor on the full credits page. From here, for each of these relative paths, we use urljoin to set the url to that actor’s IMDB page, check that this url is valid (not null), and proceed to pass it to request, and then invoke our next method to parse that actor’s page via our callback parameter.&lt;/p&gt;

&lt;p&gt;Below is the aforementioned method to parse a specific actor’s page:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt; &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;parse_actor_page&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;response&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;

    &lt;span class=&quot;c1&quot;&gt;#Pull actor name from header 
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;actor_name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;response&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;css&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;h1.header &amp;gt; span:nth-child(1) ::text&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
        
    &lt;span class=&quot;c1&quot;&gt;#Pull all titles in the css selector list returned by our reponse query 
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;credits&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;response&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;css&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;div.filmo-category-section div.filmo-row b a ::text&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;getall&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;

    &lt;span class=&quot;c1&quot;&gt;#iterate through the credits
&lt;/span&gt;    &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;title&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;credits&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
        &lt;span class=&quot;c1&quot;&gt;#yield an output dict 
&lt;/span&gt;        &lt;span class=&quot;k&quot;&gt;yield&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;actor&quot;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;actor_name&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;title&quot;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;title&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The intent for this method is to pull the actors name and all of there credits, and yield dicts of the format { “actor” : actor_name, “title” : title }, which in turn each become an entry in our results.csv, which has a column for actor name and a column for the title of the show/film they appeared in.&lt;/p&gt;

&lt;p&gt;How it works:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;“h1.header &amp;gt; span:nth-child(1) ::text” is the css selector for the actors name, which is always in this exact location on every actor page. You don’t need generalized selector here, you can just find this element on inspector and copy the selector for it. Then, invoking .get() on our response query output pulls the text for the name and we assign it to a holder variable for later use.&lt;/li&gt;
  &lt;li&gt;The credits are a bit trickier, you need to determine what identifiers all the show/film titles share that distinguish them from other elements such that a query yields only these titles and only the text from them.
    &lt;ul&gt;
      &lt;li&gt;“div.filmo-category-section” narrows things down to just the actor’s filmography&lt;/li&gt;
      &lt;li&gt;“div.filmo-row” narrows it down to a row entry in the filmography&lt;/li&gt;
      &lt;li&gt;“b” narrows further to the film title portion of the entry&lt;/li&gt;
      &lt;li&gt;“a” narrows it to the hyperlink to that title’s page&lt;/li&gt;
      &lt;li&gt;”::text” finally specifies just the text within a, not the entire link&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Invoking .getall() on the output of our response.css query then pulls everything that satisfies this css selector, in this case the text of every title in that actor’s filmography. This results in a list, which we assign a variable named credits.&lt;/li&gt;
  &lt;li&gt;Finally, we iterate through each title in credits and yield a dict as described above.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now let’s put it all together, with proper documentation, as it would look in your .py file:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;class&lt;/span&gt; &lt;span class=&quot;nc&quot;&gt;ImdbSpider&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;scrapy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Spider&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    &lt;span class=&quot;s&quot;&gt;'''
    Scrappy spider OBJ to crawl IMDB. Inherits from scrapy spider (scrapy.Spider)

    Methods
    -------
    parse: function to go from start page to full credits
    parse_full_credits: pulls paths for each actor in credits
    parse_actor page: scrapes an actor's page

    '''&lt;/span&gt;

    &lt;span class=&quot;c1&quot;&gt;#name our spider (used to run crawl via command line)
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'imdb_spider'&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#starting url for the crawl - show or movie page (Mad Men in this case)
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;start_urls&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;https://www.imdb.com/title/tt0804503/&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;

    &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;parse&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;response&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
        &lt;span class=&quot;s&quot;&gt;'''
        Function starts at the class's set start_url and joins to it &quot;fullcredits&quot;,
        then passes that next page to scrapy Request OBJ and invokes parse_full_credits
        as the callback.

        Parameters
        ----------
        self: the IMDB spider OBJ itself
        response: Response OBJ of this spider (inherited from scrapy.Spider)
        '''&lt;/span&gt;
        &lt;span class=&quot;c1&quot;&gt;#join current url w/ string to create url to full credits page
&lt;/span&gt;        &lt;span class=&quot;n&quot;&gt;next_page&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;response&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;urljoin&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;fullcredits&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

        &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;next_page&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#if it exists, which it should, every IMDB listing has one...
&lt;/span&gt;            &lt;span class=&quot;c1&quot;&gt;#Pass next_page to the Request OBJ of this spider, set the callback function to invoke the parse
&lt;/span&gt;            &lt;span class=&quot;c1&quot;&gt;#method (since Python can't just say member function and has to remind me of Java) for full credts
&lt;/span&gt;            &lt;span class=&quot;k&quot;&gt;yield&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;scrapy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Request&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;next_page&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;callback&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;parse_full_credits&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;parse_full_credits&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;response&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
        &lt;span class=&quot;s&quot;&gt;'''
        Function to build a list of relative paths for each actor in the full credits and
        then for each path, invoke parse_actor_page as the callback arg of a Request 
        given the url built from that path, to scrape that actor's page.

        Parameters
        ----------
        self: the IMDB spider OBJ itself
        response: Response OBJ of this spider (inherited from scrapy.Spider)
        '''&lt;/span&gt;
        &lt;span class=&quot;c1&quot;&gt;#create list of relative paths for each actor (clicking on a headshot)
&lt;/span&gt;        &lt;span class=&quot;n&quot;&gt;actor_list&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;a&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;attrib&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;href&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;a&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;response&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;css&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;td.primary_photo a&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)]&lt;/span&gt;

        &lt;span class=&quot;c1&quot;&gt;#iterate through each actor path in the list
&lt;/span&gt;        &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;actor&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;actor_list&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
            
            &lt;span class=&quot;c1&quot;&gt;#join relative path to existing url
&lt;/span&gt;            &lt;span class=&quot;n&quot;&gt;actor_page&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;response&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;urljoin&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;actor&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

            &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;actor_page&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#if it is not null
&lt;/span&gt;                &lt;span class=&quot;c1&quot;&gt;#Pass the url to this spider's request OBJ, set callback to invoke
&lt;/span&gt;                &lt;span class=&quot;c1&quot;&gt;#the method to parse an actor's page
&lt;/span&gt;                &lt;span class=&quot;k&quot;&gt;yield&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;scrapy&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;Request&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;actor_page&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;callback&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;parse_actor_page&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

    &lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;parse_actor_page&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;response&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
        &lt;span class=&quot;s&quot;&gt;'''
        Function to scrape and actor's credits page and yield a dict of the form
        { &quot;actor&quot; : actor_name, &quot;title&quot; : title } for each credit on that page.

        Parameters
        ----------
        self: the IMDB spider OBJ itself
        response: Response OBJ of this spider (inherited from scrapy.Spider)

        '''&lt;/span&gt;
        &lt;span class=&quot;c1&quot;&gt;#Pull actor name from header 
&lt;/span&gt;        &lt;span class=&quot;n&quot;&gt;actor_name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;response&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;css&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;h1.header &amp;gt; span:nth-child(1) ::text&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
        
        &lt;span class=&quot;c1&quot;&gt;#Pull all titles in the css selector list returned by our reponse query 
&lt;/span&gt;        &lt;span class=&quot;n&quot;&gt;credits&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;response&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;css&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;div.filmo-category-section div.filmo-row b a ::text&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;getall&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;

        &lt;span class=&quot;c1&quot;&gt;#iterate through the credits
&lt;/span&gt;        &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;title&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;credits&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
            &lt;span class=&quot;c1&quot;&gt;#yield an output dict 
&lt;/span&gt;            &lt;span class=&quot;k&quot;&gt;yield&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;actor&quot;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;actor_name&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;title&quot;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;title&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;}&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;running-it&quot;&gt;Running It&lt;/h1&gt;

&lt;p&gt;Cool, you’re now ready to go. Enter the following command in the terminal to run your scraper:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;scrapy crawl imdb_spider -o results.csv&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Note: if you’ve closed your prior terminal window, you will have to repeat the prior “conda activate PIC16B” command. Scrapy lives within your python environment, outside of this scope that name doesn’t really mean much.&lt;/p&gt;

&lt;p&gt;Note Note: where, in terms of current directory, you run this command from will determine where your results.csv will end up. So, just be aware of this, as it’s the difference between finding your results in say, “/Documents/GitHub/IMDB_scraper/IMDB_scraper/”, vs “/Documents/GitHub/IMDB_scraper/IMDB_scraper/IMDB_scraper” …the default directory structure of a scrapy is fairly nested/layered, so don’t fret, your resultant output data is in there somewhere.&lt;/p&gt;

&lt;p&gt;Breaking this command down a bit:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;“scrapy” fairly self explanatory, states that this command is meant for scrapy&lt;/li&gt;
  &lt;li&gt;“crawl” calls the crawl command (technically an object itself)&lt;/li&gt;
  &lt;li&gt;“imdb_spider” specifies the spider to run&lt;/li&gt;
  &lt;li&gt;“-o results.csv” is your standard, linux style, way of specifying the name of our output file…if you’ve ever compiled using G++, same syntax, you’re back in makefile land.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;doing-data-stuff&quot;&gt;Doing Data Stuff&lt;/h1&gt;

&lt;p&gt;So now that you have your scrape output, let’s get it into pandas and take a look. As always import our usual friends and read in our csv.&lt;/p&gt;

&lt;p&gt;An aside: Pandas is built on top of numpy, so numpy is a pandas dependency you need to have installed and pandas will call it internally. So why does basically every tutorial import them together? Well, normally at some point in such tutorials you will explicity use numpy for some computation. Will we use it here? Not in this first part…though it remains to be seen if I will in the second. So why import it? Because every tutorial and professor before me has, so for most of us, implicit numpy, pandas functionality and explicit numpy blur together. You know what’s frustrating? Attempting something using only pandas specific syntax that needs some particular sort of vector math and not getting why it isn’t working until you realize you never imported numpy. So, the viscious cycle continues and we’re unoptimally including numpy just in case.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;#Import usual suspects as needed
&lt;/span&gt;&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;pandas&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;numpy&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;np&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;#read in csv output from our scrapy
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;imdb&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_csv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;~/Documents/GitHub/IMDB_scraper/IMDB_scraper/results.csv&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;imdb&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div&gt;
&lt;style scoped=&quot;&quot;&gt;
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }

    .dataframe tbody tr th {
        vertical-align: top;
    }

    .dataframe thead th {
        text-align: right;
    }
&lt;/style&gt;
&lt;table border=&quot;1&quot; class=&quot;dataframe&quot;&gt;
  &lt;thead&gt;
    &lt;tr style=&quot;text-align: right;&quot;&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;actor&lt;/th&gt;
      &lt;th&gt;title&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;th&gt;0&lt;/th&gt;
      &lt;td&gt;Aaron Hart&lt;/td&gt;
      &lt;td&gt;Zero Point&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1&lt;/th&gt;
      &lt;td&gt;Aaron Hart&lt;/td&gt;
      &lt;td&gt;Arthur&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2&lt;/th&gt;
      &lt;td&gt;Aaron Hart&lt;/td&gt;
      &lt;td&gt;Freedom Riders&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3&lt;/th&gt;
      &lt;td&gt;Aaron Hart&lt;/td&gt;
      &lt;td&gt;Criminal Minds&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;4&lt;/th&gt;
      &lt;td&gt;Aaron Hart&lt;/td&gt;
      &lt;td&gt;Ghost Whisperer&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;

&lt;p&gt;Great, everything looks as expected. Let’s take a look at the magnitude of what we’re working with:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;imdb&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;shape&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;(55324, 2)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;55,324 rows, each one a show/film entry…well with 7 seasons of 13 episodes each, we got an understandably large data set.&lt;/p&gt;

&lt;p&gt;Since all these actors have Mad Men in common, that’s a useless data point, so let’s drop any entries with “Mad Men” as the title, and call shape on our dataframe to make sure it worked and see how many rows we dropped:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;og_imdb&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;imdb&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#save our original, you'll see why
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;imdb&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;drop&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;imdb&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;imdb&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;title&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Mad Men&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;index&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;inplace&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;True&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;imdb&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;shape&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;(54317, 2)
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;We dropped 1,007 rows, which, since it’s fair to assume all, to very nearly all, of these actors only played one character on Mad Men, and thus only have one Mad Men credit listed each, that our actor count is around 1,007. Let’s check for certain:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;unique_actors_before&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;og_imdb&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;actor&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;value_counts&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Actor count before drop: &quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;unique_actors_before&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;unique_actors_after&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;imdb&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;actor&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;value_counts&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;span class=&quot;k&quot;&gt;print&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Actor count after drop: &quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;unique_actors_after&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Actor count before drop: 970
Actor count after drop: 970
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Huh, so we have 970 unique actors, but dropped 1,007 rows, what explains that difference? Well, if we look at, for instance, Jon Hamm’s IMDB page, we see that he’s credited as a director for an episode of Mad Men, and curiously on the soundtrack for another two episodes. So what has occured is that by using a css selector for entries within an actor’s filmography in general, we’ve included entries like these where prominent stars get a random producer or director credit or two, along with appearances where they play themselves.&lt;/p&gt;

&lt;p&gt;It turns out that the demarcation for the “actor” subsection is an id attribute that is gendered—i.e. actor or actress depending on the person in question—so you would need to partial match on the shared substring of that attribute, in this case “actr”. But, as we’ll see, it doesn’t make a difference for now. This sub-single-digit percentage inefficiency (the bit-part actors that make up the bulk of this data aren’t getting these sort of credits on their own page) doesn’t change our top “shared actors ranking”. Our top 10 will all score in the hundreds such that SNL appearances by show’s few breakout stars, or common participation in a documentary’s voiceovers, don’t make a difference. However, later on we will start to narrow things down in such a way that these sort of details do matter.&lt;/p&gt;

&lt;p&gt;For now, let’s move on and group our entries by title, do a little clean up, and count the occurances of each title.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;#group by title, count occurances
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;titlecount&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;imdb&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;groupby&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;title&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;count&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;#reindex, as is &quot;title&quot; is the index
#imdb.reset_index
&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#rename actors column - now a count of actors credited on both this title and our original
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;titlecount&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;titlecount&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rename&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;columns&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;{&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;actor&quot;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;shared actors&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;})&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;#sort values (most actors in common to least)
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;titlecount&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;titlecount&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sort_values&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;by&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;shared actors&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;ascending&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;False&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;top10&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;titlecount&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;top20&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;titlecount&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;top20&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;Index(['NCIS', 'Criminal Minds', 'CSI: Crime Scene Investigation',
       'Grey's Anatomy', 'ER', 'Without a Trace', 'Bones', 'Cold Case',
       'Castle', 'The Mentalist', 'Desperate Housewives',
       'The Young and the Restless', 'CSI: NY', 'CSI: Miami', 'Boston Legal',
       'NCIS: Los Angeles', 'The West Wing', 'Days of Our Lives',
       'The Practice', 'Law &amp;amp; Order'],
      dtype='object', name='title')
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Or to present it graphically as per the given spec:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;matplotlib.pyplot&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;plt&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;seaborn&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sns&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;sns&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;set_theme&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;style&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;whitegrid&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#note, our groupby OBJ has title as the index, not a column
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;ax&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sns&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;barplot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;top10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;index&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;shared actors&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;data&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;top10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#resize
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sns&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;set&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rc&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'figure.figsize'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;30&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)})&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;plt&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;show&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;/images/output_26_0.png&quot; alt=&quot;output_26_0.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;So here we have it, our findings!&lt;/p&gt;

&lt;p&gt;What do they say? Basically nothing. This list is entirely procedural shows and soap operas. Even if significant known actors from your favorite show, rather than the guy who played a janitor in one episode, made it up the bulk of this shared actor count, they’d likely be in a single episode as a guest star.&lt;/p&gt;

&lt;p&gt;Who’s the murder on this week’s NCIS? Probably the most famous person not in the regular cast.&lt;/p&gt;

&lt;p&gt;Day’s of our lives has been running since 1965 for over 14,000 episodes…NCIS for 432 episodes (ongoing) since 2003…Grey’s Anatomy for 401 episodes (also still going) since 2005…CSI for 365 episodes from 2000 to 2015…you get the idea. I’d wager that any other PIC16B student’s top 10 for any movie or show looks like this.&lt;/p&gt;

&lt;p&gt;To put it in study design terms, we have terrible construct validity: we’ve just measured what shows have a lot of episodes, over a long time frame, with high rates of cast turn over episode to episode. Or to put it even less abstractly, we’ve inadventantly just measured what IMDB pages have the most actors on them.&lt;/p&gt;

&lt;p&gt;How does this work as a recommendation list? As a measure of genre or content similarity it fails: you get a list of procedural shows regardless of what show/film you start from. As a measure of the likelyhood of seeing actors you know/like, or even just like the work of in anonymous way, it fails. I’m willing to bet the mean episode count for a given Mad Men actor on a procedural like NCIS does not stray too far from 1. Running with this and further assuming that Mad Men actors are uniformly distributed amongst episodes, you have roughly a 50% (214/432) chance of seeing a Mad Men actor, regardless of if you recognize them or the significance of their role, in any given NCIS episode.&lt;/p&gt;

&lt;p&gt;So how do we make this better? Well let me give you a preview of some ideas from my coming update to this post, tentatively titled “Part 2: David goes off the rails”:&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;Restrict the scrape to top billed cast in your starting show/film&lt;/li&gt;
  &lt;li&gt;Refine the css selector to only pull acting credits (as shared actor counts drop, these false positives will be more noticable)&lt;/li&gt;
  &lt;li&gt;Condition your spider such that if the css selector for a tv show is found you:
    &lt;ul&gt;
      &lt;li&gt;Weigh each actor by the number of episodes in your starting show they appear in&lt;/li&gt;
      &lt;li&gt;Weigh each shared title by a composite of the original actor’s weight and the number of episodes in that shared title the actor appears&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;Perhaps better visualize these realtionships in the form of network graphs via plotly’s networkx.&lt;/li&gt;
&lt;/ul&gt;</content><author><name></name></author><summary type="html">Webscraping IMDB For Show/Film Recommendations</summary></entry><entry><title type="html">HW1 - Interactive Visualizations</title><link href="https://da-adams.github.io/hw1/" rel="alternate" type="text/html" title="HW1 - Interactive Visualizations" /><published>2022-04-15T00:00:00+00:00</published><updated>2022-04-15T00:00:00+00:00</updated><id>https://da-adams.github.io/hw1</id><content type="html" xml:base="https://da-adams.github.io/hw1/">&lt;h2 id=&quot;databases-and-plotly-visualization---climate-data&quot;&gt;Databases and Plotly Visualization - Climate Data&lt;/h2&gt;

&lt;p&gt;For this tutorial we’re going to look into building SQLite databases from NOAA climate data and then wrangling that data to create interactive visualizations in Plotly.&lt;/p&gt;

&lt;p&gt;First, lets import the requisite libraries.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;pandas&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;numpy&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;np&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;sqlite3&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;creating-a-database&quot;&gt;Creating a Database&lt;/h1&gt;

&lt;p&gt;Next, we’ll read in our temperature data from the .csv (which should be stored in the same working directory as this notebook).&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;temps&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_csv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;temps_stacked.csv&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;temps&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div&gt;
&lt;style scoped=&quot;&quot;&gt;
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }

    .dataframe tbody tr th {
        vertical-align: top;
    }

    .dataframe thead th {
        text-align: right;
    }
&lt;/style&gt;
&lt;table border=&quot;1&quot; class=&quot;dataframe&quot;&gt;
  &lt;thead&gt;
    &lt;tr style=&quot;text-align: right;&quot;&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;ID&lt;/th&gt;
      &lt;th&gt;Year&lt;/th&gt;
      &lt;th&gt;Month&lt;/th&gt;
      &lt;th&gt;Temp&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;th&gt;0&lt;/th&gt;
      &lt;td&gt;ACW00011604&lt;/td&gt;
      &lt;td&gt;1961&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;-0.89&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1&lt;/th&gt;
      &lt;td&gt;ACW00011604&lt;/td&gt;
      &lt;td&gt;1961&lt;/td&gt;
      &lt;td&gt;2&lt;/td&gt;
      &lt;td&gt;2.36&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2&lt;/th&gt;
      &lt;td&gt;ACW00011604&lt;/td&gt;
      &lt;td&gt;1961&lt;/td&gt;
      &lt;td&gt;3&lt;/td&gt;
      &lt;td&gt;4.72&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3&lt;/th&gt;
      &lt;td&gt;ACW00011604&lt;/td&gt;
      &lt;td&gt;1961&lt;/td&gt;
      &lt;td&gt;4&lt;/td&gt;
      &lt;td&gt;7.73&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;4&lt;/th&gt;
      &lt;td&gt;ACW00011604&lt;/td&gt;
      &lt;td&gt;1961&lt;/td&gt;
      &lt;td&gt;5&lt;/td&gt;
      &lt;td&gt;11.28&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;

&lt;p&gt;…And then our country code csv (which we will use to interpret the weather station ID’s)&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;countries&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_csv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'countries.csv'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;countries&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div&gt;
&lt;style scoped=&quot;&quot;&gt;
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }

    .dataframe tbody tr th {
        vertical-align: top;
    }

    .dataframe thead th {
        text-align: right;
    }
&lt;/style&gt;
&lt;table border=&quot;1&quot; class=&quot;dataframe&quot;&gt;
  &lt;thead&gt;
    &lt;tr style=&quot;text-align: right;&quot;&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;FIPS 10-4&lt;/th&gt;
      &lt;th&gt;ISO 3166&lt;/th&gt;
      &lt;th&gt;Name&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;th&gt;0&lt;/th&gt;
      &lt;td&gt;AF&lt;/td&gt;
      &lt;td&gt;AF&lt;/td&gt;
      &lt;td&gt;Afghanistan&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1&lt;/th&gt;
      &lt;td&gt;AX&lt;/td&gt;
      &lt;td&gt;-&lt;/td&gt;
      &lt;td&gt;Akrotiri&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2&lt;/th&gt;
      &lt;td&gt;AL&lt;/td&gt;
      &lt;td&gt;AL&lt;/td&gt;
      &lt;td&gt;Albania&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3&lt;/th&gt;
      &lt;td&gt;AG&lt;/td&gt;
      &lt;td&gt;DZ&lt;/td&gt;
      &lt;td&gt;Algeria&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;4&lt;/th&gt;
      &lt;td&gt;AQ&lt;/td&gt;
      &lt;td&gt;AS&lt;/td&gt;
      &lt;td&gt;American Samoa&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;

&lt;p&gt;We then need to remove the whitespace in our column names so that everything play’s nice with SQL.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# whitespaces in column names are bad for SQL
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;countries&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;countries&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rename&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;columns&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;FIPS 10-4&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;FIPS_10-4&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;ISO 3166&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;ISO_3166&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;})&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;countries&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div&gt;
&lt;style scoped=&quot;&quot;&gt;
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }

    .dataframe tbody tr th {
        vertical-align: top;
    }

    .dataframe thead th {
        text-align: right;
    }
&lt;/style&gt;
&lt;table border=&quot;1&quot; class=&quot;dataframe&quot;&gt;
  &lt;thead&gt;
    &lt;tr style=&quot;text-align: right;&quot;&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;FIPS_10-4&lt;/th&gt;
      &lt;th&gt;ISO_3166&lt;/th&gt;
      &lt;th&gt;Name&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;th&gt;0&lt;/th&gt;
      &lt;td&gt;AF&lt;/td&gt;
      &lt;td&gt;AF&lt;/td&gt;
      &lt;td&gt;Afghanistan&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1&lt;/th&gt;
      &lt;td&gt;AX&lt;/td&gt;
      &lt;td&gt;-&lt;/td&gt;
      &lt;td&gt;Akrotiri&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2&lt;/th&gt;
      &lt;td&gt;AL&lt;/td&gt;
      &lt;td&gt;AL&lt;/td&gt;
      &lt;td&gt;Albania&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3&lt;/th&gt;
      &lt;td&gt;AG&lt;/td&gt;
      &lt;td&gt;DZ&lt;/td&gt;
      &lt;td&gt;Algeria&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;4&lt;/th&gt;
      &lt;td&gt;AQ&lt;/td&gt;
      &lt;td&gt;AS&lt;/td&gt;
      &lt;td&gt;American Samoa&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;

&lt;p&gt;Lastly, we’ll read in our weather station geo-data from a url:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;url&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;https://raw.githubusercontent.com/PhilChodrow/PIC16B/master/datasets/noaa-ghcn/station-metadata.csv&quot;&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;stations&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_csv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;url&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;stations&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div&gt;
&lt;style scoped=&quot;&quot;&gt;
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }

    .dataframe tbody tr th {
        vertical-align: top;
    }

    .dataframe thead th {
        text-align: right;
    }
&lt;/style&gt;
&lt;table border=&quot;1&quot; class=&quot;dataframe&quot;&gt;
  &lt;thead&gt;
    &lt;tr style=&quot;text-align: right;&quot;&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;ID&lt;/th&gt;
      &lt;th&gt;LATITUDE&lt;/th&gt;
      &lt;th&gt;LONGITUDE&lt;/th&gt;
      &lt;th&gt;STNELEV&lt;/th&gt;
      &lt;th&gt;NAME&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;th&gt;0&lt;/th&gt;
      &lt;td&gt;ACW00011604&lt;/td&gt;
      &lt;td&gt;57.7667&lt;/td&gt;
      &lt;td&gt;11.8667&lt;/td&gt;
      &lt;td&gt;18.0&lt;/td&gt;
      &lt;td&gt;SAVE&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1&lt;/th&gt;
      &lt;td&gt;AE000041196&lt;/td&gt;
      &lt;td&gt;25.3330&lt;/td&gt;
      &lt;td&gt;55.5170&lt;/td&gt;
      &lt;td&gt;34.0&lt;/td&gt;
      &lt;td&gt;SHARJAH_INTER_AIRP&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2&lt;/th&gt;
      &lt;td&gt;AEM00041184&lt;/td&gt;
      &lt;td&gt;25.6170&lt;/td&gt;
      &lt;td&gt;55.9330&lt;/td&gt;
      &lt;td&gt;31.0&lt;/td&gt;
      &lt;td&gt;RAS_AL_KHAIMAH_INTE&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3&lt;/th&gt;
      &lt;td&gt;AEM00041194&lt;/td&gt;
      &lt;td&gt;25.2550&lt;/td&gt;
      &lt;td&gt;55.3640&lt;/td&gt;
      &lt;td&gt;10.4&lt;/td&gt;
      &lt;td&gt;DUBAI_INTL&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;4&lt;/th&gt;
      &lt;td&gt;AEM00041216&lt;/td&gt;
      &lt;td&gt;24.4300&lt;/td&gt;
      &lt;td&gt;54.4700&lt;/td&gt;
      &lt;td&gt;3.0&lt;/td&gt;
      &lt;td&gt;ABU_DHABI_BATEEN_AIR&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;

&lt;p&gt;Now we get into the sqlite. For each of our dataframes, we will invoke the .to_sql function which will read these df’s to our local sqlite mock database.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# open a connection to temps.db so that you can 'talk' to it using python
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;conn&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sqlite3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;connect&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;temps.db&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;temps&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to_sql&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;temperatures&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;conn&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;if_exists&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;replace&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;index&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;False&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;countries&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to_sql&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;countries&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;conn&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;if_exists&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;replace&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;index&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;False&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;stations&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;to_sql&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;stations&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;conn&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;if_exists&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;replace&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;index&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;bp&quot;&gt;False&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;# always close your connection
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;conn&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;querying-our-database&quot;&gt;Querying our Database&lt;/h1&gt;

&lt;p&gt;Next we’ll write a function to query our data base, which accepts four arguments:&lt;/p&gt;

&lt;p&gt;country: a string giving the name of a country (e.g. ‘South Korea’) for which data should be returned.&lt;/p&gt;

&lt;p&gt;year_begin and year_end: two integers giving the earliest and latest years for which should be returned.&lt;/p&gt;

&lt;p&gt;month: an integer giving the month of the year for which should be returned.&lt;/p&gt;

&lt;p&gt;The return value of query_climate_database() is a Pandas dataframe of temperature readings for the specified country, in the specified date range, in the specified month of the year.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;query_climate_database&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;country&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;year_begin&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;year_end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;month&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;:&lt;/span&gt;
    &lt;span class=&quot;s&quot;&gt;&quot;&quot;&quot;
    Function to return a Pandas dataframe of temperature readings for the 
    specified country, in the specified date range, in the specified month of the year,
    by querying an sqlite database
    
    Parameters
    ----------
    country: str - the country to pull for
    year_begin: str - start year for the query
    year_end: str - end year for the query
    month: str - month of the year to query for across specified year range
    
    Returns
    -------
    df - pandas dataframe constructed by function
    &quot;&quot;&quot;&lt;/span&gt;
    
    &lt;span class=&quot;n&quot;&gt;conn&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sqlite3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;connect&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;temps.db&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#open connection to temps database
&lt;/span&gt;    
    &lt;span class=&quot;c1&quot;&gt;#condition the sql command to include specified columns
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;cmd&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; \
    &lt;span class=&quot;s&quot;&gt;&quot;&quot;&quot;
    SELECT C.name, S.name, S.latitude, S.longitude, T.year, T.month, T.temp
    FROM temperatures T
    LEFT JOIN stations S ON T.id = S.id
    LEFT JOIN countries C ON SUBSTRING(S.id, 1, 2) = C.&quot;FIPS_10-4&quot;
    WHERE C.name = (?) AND T.year &amp;gt;= (?) AND T.year &amp;lt;= (?) AND T.month = (?)
    &quot;&quot;&quot;&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#read data for our given command and connection to a pandas dataframe
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_sql&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cmd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;conn&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;params&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;country&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;year_begin&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;year_end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;month&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;conn&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#close connection
&lt;/span&gt;    
    &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#return our new dataframe
&lt;/span&gt;    
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now let’s test this function to make sure it works…&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;query_climate_database&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;country&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;India&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;year_begin&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1980&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;year_end&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2020&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;month&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div&gt;
&lt;style scoped=&quot;&quot;&gt;
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }

    .dataframe tbody tr th {
        vertical-align: top;
    }

    .dataframe thead th {
        text-align: right;
    }
&lt;/style&gt;
&lt;table border=&quot;1&quot; class=&quot;dataframe&quot;&gt;
  &lt;thead&gt;
    &lt;tr style=&quot;text-align: right;&quot;&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;Name&lt;/th&gt;
      &lt;th&gt;NAME&lt;/th&gt;
      &lt;th&gt;LATITUDE&lt;/th&gt;
      &lt;th&gt;LONGITUDE&lt;/th&gt;
      &lt;th&gt;Year&lt;/th&gt;
      &lt;th&gt;Month&lt;/th&gt;
      &lt;th&gt;Temp&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;th&gt;0&lt;/th&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;PBO_ANANTAPUR&lt;/td&gt;
      &lt;td&gt;14.583&lt;/td&gt;
      &lt;td&gt;77.633&lt;/td&gt;
      &lt;td&gt;1980&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;23.48&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1&lt;/th&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;PBO_ANANTAPUR&lt;/td&gt;
      &lt;td&gt;14.583&lt;/td&gt;
      &lt;td&gt;77.633&lt;/td&gt;
      &lt;td&gt;1981&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;24.57&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2&lt;/th&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;PBO_ANANTAPUR&lt;/td&gt;
      &lt;td&gt;14.583&lt;/td&gt;
      &lt;td&gt;77.633&lt;/td&gt;
      &lt;td&gt;1982&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;24.19&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3&lt;/th&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;PBO_ANANTAPUR&lt;/td&gt;
      &lt;td&gt;14.583&lt;/td&gt;
      &lt;td&gt;77.633&lt;/td&gt;
      &lt;td&gt;1983&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;23.51&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;4&lt;/th&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;PBO_ANANTAPUR&lt;/td&gt;
      &lt;td&gt;14.583&lt;/td&gt;
      &lt;td&gt;77.633&lt;/td&gt;
      &lt;td&gt;1984&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;24.81&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;...&lt;/th&gt;
      &lt;td&gt;...&lt;/td&gt;
      &lt;td&gt;...&lt;/td&gt;
      &lt;td&gt;...&lt;/td&gt;
      &lt;td&gt;...&lt;/td&gt;
      &lt;td&gt;...&lt;/td&gt;
      &lt;td&gt;...&lt;/td&gt;
      &lt;td&gt;...&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3147&lt;/th&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;DARJEELING&lt;/td&gt;
      &lt;td&gt;27.050&lt;/td&gt;
      &lt;td&gt;88.270&lt;/td&gt;
      &lt;td&gt;1983&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;5.10&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3148&lt;/th&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;DARJEELING&lt;/td&gt;
      &lt;td&gt;27.050&lt;/td&gt;
      &lt;td&gt;88.270&lt;/td&gt;
      &lt;td&gt;1986&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;6.90&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3149&lt;/th&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;DARJEELING&lt;/td&gt;
      &lt;td&gt;27.050&lt;/td&gt;
      &lt;td&gt;88.270&lt;/td&gt;
      &lt;td&gt;1994&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;8.10&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3150&lt;/th&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;DARJEELING&lt;/td&gt;
      &lt;td&gt;27.050&lt;/td&gt;
      &lt;td&gt;88.270&lt;/td&gt;
      &lt;td&gt;1995&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;5.60&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3151&lt;/th&gt;
      &lt;td&gt;India&lt;/td&gt;
      &lt;td&gt;DARJEELING&lt;/td&gt;
      &lt;td&gt;27.050&lt;/td&gt;
      &lt;td&gt;88.270&lt;/td&gt;
      &lt;td&gt;1997&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;5.70&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;3152 rows × 7 columns&lt;/p&gt;
&lt;/div&gt;

&lt;p&gt;Awesome, it works! Now let’s import plotly express to start working on our visualizations&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;plotly.io&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pio&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#only needed if saving figures
&lt;/span&gt;&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;plotly&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;express&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;px&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;h1 id=&quot;writing-our-first-geographic-scatter-function&quot;&gt;Writing our First Geographic Scatter Function&lt;/h1&gt;

&lt;p&gt;Now, we’ll write a function to plot a visualization of the average yearly change in temperature for a given station. This function will accept five explicit arguments, and an undetermined number of keyword arguments.&lt;/p&gt;

&lt;p&gt;country, year_begin, year_end, and month will be as in the previous part.&lt;/p&gt;

&lt;p&gt;min_obs: the minimum required number of years of data for any given station. Only data for stations with at least min_obs years worth of data in the specified month should be plotted; the others should be filtered out.&lt;/p&gt;

&lt;p&gt;kwargs: additional keyword arguments passed to px.scatter_mapbox(). These can be used to control the colormap used, the mapbox style, etc.&lt;/p&gt;

&lt;p&gt;However, we’ll first need to define a function to estimate this yearly change. Let’s do so by computing the first coefficient of a linear regression for each station. Thus, it’s time to bring in our old faithful, the LR model from sklearn.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;sklearn.linear_model&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;LinearRegression&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#import LR model from sklearn
&lt;/span&gt;

&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;coef&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data_group&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    &lt;span class=&quot;s&quot;&gt;&quot;&quot;&quot;
    Function to return first order coefficient of model given a grouped df
    
    Parameters
    ----------
    data_group - the given grouped df to process
    
    Returns
    -------
    slope - LR coefficient for year and temp of grouped, input df
    &quot;&quot;&quot;&lt;/span&gt;
    
    &lt;span class=&quot;n&quot;&gt;X&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;data_group&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Year&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]]&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;data_group&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Temp&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;LR&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;LinearRegression&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;LR&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fit&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;X&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;slope&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;LR&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coef_&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
    &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;slope&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now, we can move on to our plotting function. We’ll first invoke our prior query function to build our starting df. Then, we’ll need to group by name (grouping all enteries for a given station together) and dropping those which do not exceed our minimum observation parameter (as measured by calling .size on each grouping via transform). We’ll then apply our linear regression coefficient function to generate a new df, coef, which contains this new calculation, along with the names, latitudes, and longitudes for each entery. From here, we’ll then round our values and feed our original parameters to scatter_mapbox, including the kwargs, which allow the user to tweak all the various input arguments built into this plotly function.&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;temperature_coefficient_plot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;country&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;year_begin&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;year_end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;month&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;min_obs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;**&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;kwargs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    
    &lt;span class=&quot;s&quot;&gt;&quot;&quot;&quot;
    Function to create an interactive, geographic plot of estimated average increase
    in temperature over a provided year range, for a given country, for a given month
    
    Parameters
    ----------
    country: str - the country to pull and plot for
    year_begin: str - start year for the query
    year_end: str - end year for the query
    month: str - month of the year to query for across specified year range
    min_obs: int - minimum number of observations for a station to be included
    kwargs: variable arguments fed to the plotly graphing function
    
    Returns
    -------
    fig - the plotly fig generated by the function
    
    &quot;&quot;&quot;&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#use prior defined query function to build our df
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;query_climate_database&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;country&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;year_begin&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;year_end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;month&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#group by station name, find size of group (# of observations at station), add col
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;obs_count&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;groupby&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;NAME&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;NAME&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;transform&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;np&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;size&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#drop all entries where the total observations for that station &amp;lt; minimum observations
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;drop&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;obs_count&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;min_obs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;index&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#group our df for a given country, in a given month, over a range of years by station
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;groupby&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;NAME&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;LATITUDE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;LONGITUDE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]).&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;apply&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coef&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;reset_index&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#rename new column 
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rename&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;columns&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;ESTIMATED YEAR INCREASE (C)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;})&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#round temp values
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;round&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#pass dataframe and parameters to plot the scatter map_box 
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;px&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;scatter_mapbox&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#our df w/ first order coeficients for yearly temp change
&lt;/span&gt;                            &lt;span class=&quot;n&quot;&gt;lat&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;LATITUDE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#column name for latitude informataion
&lt;/span&gt;                            &lt;span class=&quot;n&quot;&gt;lon&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;LONGITUDE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#column name for longitude information
&lt;/span&gt;                            &lt;span class=&quot;n&quot;&gt;hover_name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;NAME&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#hover will display station name
&lt;/span&gt;                            &lt;span class=&quot;o&quot;&gt;**&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;kwargs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#all other keyword args for scatter_mapbox()
&lt;/span&gt;                            &lt;span class=&quot;n&quot;&gt;color&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;ESTIMATED YEAR INCREASE (C)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                            &lt;span class=&quot;n&quot;&gt;color_continuous_midpoint&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#tweak layout and add title
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;str_month&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;month&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;str_start&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;year_begin&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;str_end&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;year_end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;update_layout&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;title&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Estimates of yearly increase in temperature in &quot;&lt;/span&gt; 
                     &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;country&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot; years &quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;str_start&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot; - &quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;str_end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; 
    
    &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#return figure to calling scope
&lt;/span&gt;                       
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;With the function written, let’s give it a go:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# assumes you have imported necessary packages
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;color_map&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;px&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;colors&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;diverging&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;RdGy_r&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# choose a colormap
&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;temperature_coefficient_plot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;India&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1980&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2020&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                                   &lt;span class=&quot;n&quot;&gt;min_obs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                                   &lt;span class=&quot;n&quot;&gt;zoom&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                                   &lt;span class=&quot;n&quot;&gt;mapbox_style&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;carto-positron&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                                   &lt;span class=&quot;n&quot;&gt;color_continuous_scale&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;color_map&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;show&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;pio&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;write_html&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;hw1_geo1&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#comment out if not saving
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;html&gt;
&lt;head&gt;&lt;meta charset=&quot;utf-8&quot; /&gt;&lt;/head&gt;
&lt;body&gt;
    &lt;div&gt;                        &lt;script type=&quot;text/javascript&quot;&gt;window.PlotlyConfig = {MathJaxConfig: 'local'};&lt;/script&gt;
        &lt;script type=&quot;text/javascript&quot;&gt;/**
* plotly.js v1.58.4
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
!function(t){if(&quot;object&quot;==typeof exports&amp;&amp;&quot;undefined&quot;!=typeof module)module.exports=t();else if(&quot;function&quot;==typeof define&amp;&amp;define.amd)define([],t);else{(&quot;undefined&quot;!=typeof window?window:&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:this).Plotly=t()}}((function(){return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var l=&quot;function&quot;==typeof require&amp;&amp;require;if(!s&amp;&amp;l)return l(o,!0);if(a)return a(o,!0);var c=new Error(&quot;Cannot find module '&quot;+o+&quot;'&quot;);throw c.code=&quot;MODULE_NOT_FOUND&quot;,c}var u=r[o]={exports:{}};e[o][0].call(u.exports,(function(t){return i(e[o][1][t]||t)}),u,u.exports,t,e,r,n)}return r[o].exports}for(var a=&quot;function&quot;==typeof require&amp;&amp;require,o=0;o&lt;n.length;o++)i(n[o]);return i}({1:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../src/lib&quot;),i={&quot;X,X div&quot;:&quot;direction:ltr;font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding:0;&quot;,&quot;X input,X button&quot;:&quot;font-family:'Open Sans', verdana, arial, sans-serif;&quot;,&quot;X input:focus,X button:focus&quot;:&quot;outline:none;&quot;,&quot;X a&quot;:&quot;text-decoration:none;&quot;,&quot;X a:hover&quot;:&quot;text-decoration:none;&quot;,&quot;X .crisp&quot;:&quot;shape-rendering:crispEdges;&quot;,&quot;X .user-select-none&quot;:&quot;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;&quot;,&quot;X svg&quot;:&quot;overflow:hidden;&quot;,&quot;X svg a&quot;:&quot;fill:#447adb;&quot;,&quot;X svg a:hover&quot;:&quot;fill:#3c6dc5;&quot;,&quot;X .main-svg&quot;:&quot;position:absolute;top:0;left:0;pointer-events:none;&quot;,&quot;X .main-svg .draglayer&quot;:&quot;pointer-events:all;&quot;,&quot;X .cursor-default&quot;:&quot;cursor:default;&quot;,&quot;X .cursor-pointer&quot;:&quot;cursor:pointer;&quot;,&quot;X .cursor-crosshair&quot;:&quot;cursor:crosshair;&quot;,&quot;X .cursor-move&quot;:&quot;cursor:move;&quot;,&quot;X .cursor-col-resize&quot;:&quot;cursor:col-resize;&quot;,&quot;X .cursor-row-resize&quot;:&quot;cursor:row-resize;&quot;,&quot;X .cursor-ns-resize&quot;:&quot;cursor:ns-resize;&quot;,&quot;X .cursor-ew-resize&quot;:&quot;cursor:ew-resize;&quot;,&quot;X .cursor-sw-resize&quot;:&quot;cursor:sw-resize;&quot;,&quot;X .cursor-s-resize&quot;:&quot;cursor:s-resize;&quot;,&quot;X .cursor-se-resize&quot;:&quot;cursor:se-resize;&quot;,&quot;X .cursor-w-resize&quot;:&quot;cursor:w-resize;&quot;,&quot;X .cursor-e-resize&quot;:&quot;cursor:e-resize;&quot;,&quot;X .cursor-nw-resize&quot;:&quot;cursor:nw-resize;&quot;,&quot;X .cursor-n-resize&quot;:&quot;cursor:n-resize;&quot;,&quot;X .cursor-ne-resize&quot;:&quot;cursor:ne-resize;&quot;,&quot;X .cursor-grab&quot;:&quot;cursor:-webkit-grab;cursor:grab;&quot;,&quot;X .modebar&quot;:&quot;position:absolute;top:2px;right:2px;&quot;,&quot;X .ease-bg&quot;:&quot;-webkit-transition:background-color 0.3s ease 0s;-moz-transition:background-color 0.3s ease 0s;-ms-transition:background-color 0.3s ease 0s;-o-transition:background-color 0.3s ease 0s;transition:background-color 0.3s ease 0s;&quot;,&quot;X .modebar--hover&gt;:not(.watermark)&quot;:&quot;opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;&quot;,&quot;X:hover .modebar--hover .modebar-group&quot;:&quot;opacity:1;&quot;,&quot;X .modebar-group&quot;:&quot;float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;&quot;,&quot;X .modebar-btn&quot;:&quot;position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;&quot;,&quot;X .modebar-btn svg&quot;:&quot;position:relative;top:2px;&quot;,&quot;X .modebar.vertical&quot;:&quot;display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;&quot;,&quot;X .modebar.vertical svg&quot;:&quot;top:-1px;&quot;,&quot;X .modebar.vertical .modebar-group&quot;:&quot;display:block;float:none;padding-left:0px;padding-bottom:8px;&quot;,&quot;X .modebar.vertical .modebar-group .modebar-btn&quot;:&quot;display:block;text-align:center;&quot;,&quot;X [data-title]:before,X [data-title]:after&quot;:&quot;position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;&quot;,&quot;X [data-title]:hover:before,X [data-title]:hover:after&quot;:&quot;display:block;opacity:1;&quot;,&quot;X [data-title]:before&quot;:&quot;content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;&quot;,&quot;X [data-title]:after&quot;:&quot;content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;&quot;,&quot;X .vertical [data-title]:before,X .vertical [data-title]:after&quot;:&quot;top:0%;right:200%;&quot;,&quot;X .vertical [data-title]:before&quot;:&quot;border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;&quot;,&quot;X .select-outline&quot;:&quot;fill:none;stroke-width:1;shape-rendering:crispEdges;&quot;,&quot;X .select-outline-1&quot;:&quot;stroke:white;&quot;,&quot;X .select-outline-2&quot;:&quot;stroke:black;stroke-dasharray:2px 2px;&quot;,Y:&quot;font-family:'Open Sans', verdana, arial, sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;&quot;,&quot;Y p&quot;:&quot;margin:0;&quot;,&quot;Y .notifier-note&quot;:&quot;min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;&quot;,&quot;Y .notifier-close&quot;:&quot;color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;&quot;,&quot;Y .notifier-close:hover&quot;:&quot;color:#444;text-decoration:none;cursor:pointer;&quot;};for(var a in i){var o=a.replace(/^,/,&quot; ,&quot;).replace(/X/g,&quot;.js-plotly-plot .plotly&quot;).replace(/Y/g,&quot;.plotly-notifier&quot;);n.addStyleRule(o,i[a])}},{&quot;../src/lib&quot;:778}],2:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/aggregate&quot;)},{&quot;../src/transforms/aggregate&quot;:1365}],3:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/bar&quot;)},{&quot;../src/traces/bar&quot;:929}],4:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/barpolar&quot;)},{&quot;../src/traces/barpolar&quot;:942}],5:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/box&quot;)},{&quot;../src/traces/box&quot;:952}],6:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/components/calendars&quot;)},{&quot;../src/components/calendars&quot;:641}],7:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/candlestick&quot;)},{&quot;../src/traces/candlestick&quot;:961}],8:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/carpet&quot;)},{&quot;../src/traces/carpet&quot;:980}],9:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/choropleth&quot;)},{&quot;../src/traces/choropleth&quot;:994}],10:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/choroplethmapbox&quot;)},{&quot;../src/traces/choroplethmapbox&quot;:1001}],11:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/cone&quot;)},{&quot;../src/traces/cone&quot;:1007}],12:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/contour&quot;)},{&quot;../src/traces/contour&quot;:1022}],13:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/contourcarpet&quot;)},{&quot;../src/traces/contourcarpet&quot;:1033}],14:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/core&quot;)},{&quot;../src/core&quot;:755}],15:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/densitymapbox&quot;)},{&quot;../src/traces/densitymapbox&quot;:1041}],16:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/filter&quot;)},{&quot;../src/transforms/filter&quot;:1366}],17:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/funnel&quot;)},{&quot;../src/traces/funnel&quot;:1051}],18:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/funnelarea&quot;)},{&quot;../src/traces/funnelarea&quot;:1060}],19:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/groupby&quot;)},{&quot;../src/transforms/groupby&quot;:1367}],20:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/heatmap&quot;)},{&quot;../src/traces/heatmap&quot;:1073}],21:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/heatmapgl&quot;)},{&quot;../src/traces/heatmapgl&quot;:1083}],22:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram&quot;)},{&quot;../src/traces/histogram&quot;:1095}],23:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram2d&quot;)},{&quot;../src/traces/histogram2d&quot;:1101}],24:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram2dcontour&quot;)},{&quot;../src/traces/histogram2dcontour&quot;:1105}],25:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/image&quot;)},{&quot;../src/traces/image&quot;:1113}],26:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./core&quot;);n.register([t(&quot;./bar&quot;),t(&quot;./box&quot;),t(&quot;./heatmap&quot;),t(&quot;./histogram&quot;),t(&quot;./histogram2d&quot;),t(&quot;./histogram2dcontour&quot;),t(&quot;./contour&quot;),t(&quot;./scatterternary&quot;),t(&quot;./violin&quot;),t(&quot;./funnel&quot;),t(&quot;./waterfall&quot;),t(&quot;./image&quot;),t(&quot;./pie&quot;),t(&quot;./sunburst&quot;),t(&quot;./treemap&quot;),t(&quot;./funnelarea&quot;),t(&quot;./scatter3d&quot;),t(&quot;./surface&quot;),t(&quot;./isosurface&quot;),t(&quot;./volume&quot;),t(&quot;./mesh3d&quot;),t(&quot;./cone&quot;),t(&quot;./streamtube&quot;),t(&quot;./scattergeo&quot;),t(&quot;./choropleth&quot;),t(&quot;./scattergl&quot;),t(&quot;./splom&quot;),t(&quot;./pointcloud&quot;),t(&quot;./heatmapgl&quot;),t(&quot;./parcoords&quot;),t(&quot;./parcats&quot;),t(&quot;./scattermapbox&quot;),t(&quot;./choroplethmapbox&quot;),t(&quot;./densitymapbox&quot;),t(&quot;./sankey&quot;),t(&quot;./indicator&quot;),t(&quot;./table&quot;),t(&quot;./carpet&quot;),t(&quot;./scattercarpet&quot;),t(&quot;./contourcarpet&quot;),t(&quot;./ohlc&quot;),t(&quot;./candlestick&quot;),t(&quot;./scatterpolar&quot;),t(&quot;./scatterpolargl&quot;),t(&quot;./barpolar&quot;)]),n.register([t(&quot;./aggregate&quot;),t(&quot;./filter&quot;),t(&quot;./groupby&quot;),t(&quot;./sort&quot;)]),n.register([t(&quot;./calendars&quot;)]),e.exports=n},{&quot;./aggregate&quot;:2,&quot;./bar&quot;:3,&quot;./barpolar&quot;:4,&quot;./box&quot;:5,&quot;./calendars&quot;:6,&quot;./candlestick&quot;:7,&quot;./carpet&quot;:8,&quot;./choropleth&quot;:9,&quot;./choroplethmapbox&quot;:10,&quot;./cone&quot;:11,&quot;./contour&quot;:12,&quot;./contourcarpet&quot;:13,&quot;./core&quot;:14,&quot;./densitymapbox&quot;:15,&quot;./filter&quot;:16,&quot;./funnel&quot;:17,&quot;./funnelarea&quot;:18,&quot;./groupby&quot;:19,&quot;./heatmap&quot;:20,&quot;./heatmapgl&quot;:21,&quot;./histogram&quot;:22,&quot;./histogram2d&quot;:23,&quot;./histogram2dcontour&quot;:24,&quot;./image&quot;:25,&quot;./indicator&quot;:27,&quot;./isosurface&quot;:28,&quot;./mesh3d&quot;:29,&quot;./ohlc&quot;:30,&quot;./parcats&quot;:31,&quot;./parcoords&quot;:32,&quot;./pie&quot;:33,&quot;./pointcloud&quot;:34,&quot;./sankey&quot;:35,&quot;./scatter3d&quot;:36,&quot;./scattercarpet&quot;:37,&quot;./scattergeo&quot;:38,&quot;./scattergl&quot;:39,&quot;./scattermapbox&quot;:40,&quot;./scatterpolar&quot;:41,&quot;./scatterpolargl&quot;:42,&quot;./scatterternary&quot;:43,&quot;./sort&quot;:44,&quot;./splom&quot;:45,&quot;./streamtube&quot;:46,&quot;./sunburst&quot;:47,&quot;./surface&quot;:48,&quot;./table&quot;:49,&quot;./treemap&quot;:50,&quot;./violin&quot;:51,&quot;./volume&quot;:52,&quot;./waterfall&quot;:53}],27:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/indicator&quot;)},{&quot;../src/traces/indicator&quot;:1121}],28:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/isosurface&quot;)},{&quot;../src/traces/isosurface&quot;:1127}],29:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/mesh3d&quot;)},{&quot;../src/traces/mesh3d&quot;:1132}],30:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/ohlc&quot;)},{&quot;../src/traces/ohlc&quot;:1137}],31:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/parcats&quot;)},{&quot;../src/traces/parcats&quot;:1146}],32:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/parcoords&quot;)},{&quot;../src/traces/parcoords&quot;:1156}],33:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/pie&quot;)},{&quot;../src/traces/pie&quot;:1167}],34:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/pointcloud&quot;)},{&quot;../src/traces/pointcloud&quot;:1176}],35:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/sankey&quot;)},{&quot;../src/traces/sankey&quot;:1182}],36:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatter3d&quot;)},{&quot;../src/traces/scatter3d&quot;:1220}],37:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattercarpet&quot;)},{&quot;../src/traces/scattercarpet&quot;:1227}],38:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattergeo&quot;)},{&quot;../src/traces/scattergeo&quot;:1235}],39:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattergl&quot;)},{&quot;../src/traces/scattergl&quot;:1248}],40:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattermapbox&quot;)},{&quot;../src/traces/scattermapbox&quot;:1258}],41:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterpolar&quot;)},{&quot;../src/traces/scatterpolar&quot;:1266}],42:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterpolargl&quot;)},{&quot;../src/traces/scatterpolargl&quot;:1273}],43:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterternary&quot;)},{&quot;../src/traces/scatterternary&quot;:1281}],44:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/sort&quot;)},{&quot;../src/transforms/sort&quot;:1369}],45:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/splom&quot;)},{&quot;../src/traces/splom&quot;:1290}],46:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/streamtube&quot;)},{&quot;../src/traces/streamtube&quot;:1298}],47:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/sunburst&quot;)},{&quot;../src/traces/sunburst&quot;:1306}],48:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/surface&quot;)},{&quot;../src/traces/surface&quot;:1315}],49:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/table&quot;)},{&quot;../src/traces/table&quot;:1323}],50:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/treemap&quot;)},{&quot;../src/traces/treemap&quot;:1332}],51:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/violin&quot;)},{&quot;../src/traces/violin&quot;:1344}],52:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/volume&quot;)},{&quot;../src/traces/volume&quot;:1352}],53:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/waterfall&quot;)},{&quot;../src/traces/waterfall&quot;:1360}],54:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).eye||[0,0,1],r=t.center||[0,0,0],s=t.up||[0,1,0],l=t.distanceLimits||[0,1/0],c=t.mode||&quot;turntable&quot;,u=n(),f=i(),h=a();return u.setDistanceLimits(l[0],l[1]),u.lookAt(0,e,r,s),f.setDistanceLimits(l[0],l[1]),f.lookAt(0,e,r,s),h.setDistanceLimits(l[0],l[1]),h.lookAt(0,e,r,s),new o({turntable:u,orbit:f,matrix:h},c)};var n=t(&quot;turntable-camera-controller&quot;),i=t(&quot;orbit-camera-controller&quot;),a=t(&quot;matrix-camera-controller&quot;);function o(t,e){this._controllerNames=Object.keys(t),this._controllerList=this._controllerNames.map((function(e){return t[e]})),this._mode=e,this._active=t[e],this._active||(this._mode=&quot;turntable&quot;,this._active=t.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var s=o.prototype;[[&quot;flush&quot;,1],[&quot;idle&quot;,1],[&quot;lookAt&quot;,4],[&quot;rotate&quot;,4],[&quot;pan&quot;,4],[&quot;translate&quot;,4],[&quot;setMatrix&quot;,2],[&quot;setDistanceLimits&quot;,2],[&quot;setDistance&quot;,2]].forEach((function(t){for(var e=t[0],r=[],n=0;n&lt;t[1];++n)r.push(&quot;a&quot;+n);var i=&quot;var cc=this._controllerList;for(var i=0;i&lt;cc.length;++i){cc[i].&quot;+t[0]+&quot;(&quot;+r.join()+&quot;)}&quot;;s[e]=Function.apply(null,r.concat(i))})),s.recalcMatrix=function(t){this._active.recalcMatrix(t)},s.getDistance=function(t){return this._active.getDistance(t)},s.getDistanceLimits=function(t){return this._active.getDistanceLimits(t)},s.lastT=function(){return this._active.lastT()},s.setMode=function(t){if(t!==this._mode){var e=this._controllerNames.indexOf(t);if(!(e&lt;0)){var r=this._active,n=this._controllerList[e],i=Math.max(r.lastT(),n.lastT());r.recalcMatrix(i),n.setMatrix(i,r.computedMatrix),this._active=n,this._mode=t,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}}},s.getMode=function(){return this._mode}},{&quot;matrix-camera-controller&quot;:480,&quot;orbit-camera-controller&quot;:501,&quot;turntable-camera-controller&quot;:581}],55:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-array&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-shape&quot;),t(&quot;elementary-circuits-directed-graph&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,null)}(this,(function(t,e,r,n,i){&quot;use strict&quot;;function a(t){return t.target.depth}function o(t,e){return t.sourceLinks.length?t.depth:e-1}function s(t){return function(){return t}}i=i&amp;&amp;i.hasOwnProperty(&quot;default&quot;)?i.default:i;var l=&quot;function&quot;==typeof Symbol&amp;&amp;&quot;symbol&quot;==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;&quot;function&quot;==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?&quot;symbol&quot;:typeof t};function c(t,e){return f(t.source,e.source)||t.index-e.index}function u(t,e){return f(t.target,e.target)||t.index-e.index}function f(t,e){return t.partOfCycle===e.partOfCycle?t.y0-e.y0:&quot;top&quot;===t.circularLinkType||&quot;bottom&quot;===e.circularLinkType?-1:1}function h(t){return t.value}function p(t){return(t.y0+t.y1)/2}function d(t){return p(t.source)}function g(t){return p(t.target)}function m(t){return t.index}function v(t){return t.nodes}function y(t){return t.links}function x(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function b(t,e){return e(t)}function _(t,e,r){var n=0;if(null===r){for(var a=[],o=0;o&lt;t.links.length;o++){var s=t.links[o],l=s.source.index,c=s.target.index;a[l]||(a[l]=[]),a[c]||(a[c]=[]),-1===a[l].indexOf(c)&amp;&amp;a[l].push(c)}var u=i(a);u.sort((function(t,e){return t.length-e.length}));var f={};for(o=0;o&lt;u.length;o++){var h=u[o].slice(-2);f[h[0]]||(f[h[0]]={}),f[h[0]][h[1]]=!0}t.links.forEach((function(t){var e=t.target.index,r=t.source.index;e===r||f[r]&amp;&amp;f[r][e]?(t.circular=!0,t.circularLinkID=n,n+=1):t.circular=!1}))}else t.links.forEach((function(t){t.source[r]&lt;t.target[r]?t.circular=!1:(t.circular=!0,t.circularLinkID=n,n+=1)}))}function w(t,e){var r=0,n=0;t.links.forEach((function(i){i.circular&amp;&amp;(i.source.circularLinkType||i.target.circularLinkType?i.circularLinkType=i.source.circularLinkType?i.source.circularLinkType:i.target.circularLinkType:i.circularLinkType=r&lt;n?&quot;top&quot;:&quot;bottom&quot;,&quot;top&quot;==i.circularLinkType?r+=1:n+=1,t.nodes.forEach((function(t){b(t,e)!=b(i.source,e)&amp;&amp;b(t,e)!=b(i.target,e)||(t.circularLinkType=i.circularLinkType)})))})),t.links.forEach((function(t){t.circular&amp;&amp;(t.source.circularLinkType==t.target.circularLinkType&amp;&amp;(t.circularLinkType=t.source.circularLinkType),H(t,e)&amp;&amp;(t.circularLinkType=t.source.circularLinkType))}))}function T(t){var e=Math.abs(t.y1-t.y0),r=Math.abs(t.target.x0-t.source.x1);return Math.atan(r/e)}function k(t,e){var r=0;t.sourceLinks.forEach((function(t){r=t.circular&amp;&amp;!H(t,e)?r+1:r}));var n=0;return t.targetLinks.forEach((function(t){n=t.circular&amp;&amp;!H(t,e)?n+1:n})),r+n}function M(t){var e=t.source.sourceLinks,r=0;e.forEach((function(t){r=t.circular?r+1:r}));var n=t.target.targetLinks,i=0;return n.forEach((function(t){i=t.circular?i+1:i})),!(r&gt;1||i&gt;1)}function A(t,e,r){return t.sort(E),t.forEach((function(n,i){var a,o,s=0;if(H(n,r)&amp;&amp;M(n))n.circularPathData.verticalBuffer=s+n.width/2;else{for(var l=0;l&lt;i;l++)if(a=t[i],o=t[l],!(a.source.column&lt;o.target.column||a.target.column&gt;o.source.column)){var c=t[l].circularPathData.verticalBuffer+t[l].width/2+e;s=c&gt;s?c:s}n.circularPathData.verticalBuffer=s+n.width/2}})),t}function S(t,r,i,a){var o=e.min(t.links,(function(t){return t.source.y0}));t.links.forEach((function(t){t.circular&amp;&amp;(t.circularPathData={})})),A(t.links.filter((function(t){return&quot;top&quot;==t.circularLinkType})),r,a),A(t.links.filter((function(t){return&quot;bottom&quot;==t.circularLinkType})),r,a),t.links.forEach((function(e){if(e.circular){if(e.circularPathData.arcRadius=e.width+10,e.circularPathData.leftNodeBuffer=5,e.circularPathData.rightNodeBuffer=5,e.circularPathData.sourceWidth=e.source.x1-e.source.x0,e.circularPathData.sourceX=e.source.x0+e.circularPathData.sourceWidth,e.circularPathData.targetX=e.target.x0,e.circularPathData.sourceY=e.y0,e.circularPathData.targetY=e.y1,H(e,a)&amp;&amp;M(e))e.circularPathData.leftSmallArcRadius=10+e.width/2,e.circularPathData.leftLargeArcRadius=10+e.width/2,e.circularPathData.rightSmallArcRadius=10+e.width/2,e.circularPathData.rightLargeArcRadius=10+e.width/2,&quot;bottom&quot;==e.circularLinkType?(e.circularPathData.verticalFullExtent=e.source.y1+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=e.source.y0-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius);else{var s=e.source.column,l=e.circularLinkType,c=t.links.filter((function(t){return t.source.column==s&amp;&amp;t.circularLinkType==l}));&quot;bottom&quot;==e.circularLinkType?c.sort(L):c.sort(C);var u=0;c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&amp;&amp;(e.circularPathData.leftSmallArcRadius=10+e.width/2+u,e.circularPathData.leftLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),s=e.target.column,c=t.links.filter((function(t){return t.target.column==s&amp;&amp;t.circularLinkType==l})),&quot;bottom&quot;==e.circularLinkType?c.sort(P):c.sort(I),u=0,c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&amp;&amp;(e.circularPathData.rightSmallArcRadius=10+e.width/2+u,e.circularPathData.rightLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),&quot;bottom&quot;==e.circularLinkType?(e.circularPathData.verticalFullExtent=Math.max(i,e.source.y1,e.target.y1)+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=o-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius)}e.circularPathData.leftInnerExtent=e.circularPathData.sourceX+e.circularPathData.leftNodeBuffer,e.circularPathData.rightInnerExtent=e.circularPathData.targetX-e.circularPathData.rightNodeBuffer,e.circularPathData.leftFullExtent=e.circularPathData.sourceX+e.circularPathData.leftLargeArcRadius+e.circularPathData.leftNodeBuffer,e.circularPathData.rightFullExtent=e.circularPathData.targetX-e.circularPathData.rightLargeArcRadius-e.circularPathData.rightNodeBuffer}if(e.circular)e.path=function(t){var e=&quot;&quot;;e=&quot;top&quot;==t.circularLinkType?&quot;M&quot;+t.circularPathData.sourceX+&quot; &quot;+t.circularPathData.sourceY+&quot; L&quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.sourceY+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftSmallArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.leftFullExtent+&quot; &quot;+(t.circularPathData.sourceY-t.circularPathData.leftSmallArcRadius)+&quot; L&quot;+t.circularPathData.leftFullExtent+&quot; &quot;+t.circularPathData.verticalLeftInnerExtent+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftLargeArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; L&quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightLargeArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.rightFullExtent+&quot; &quot;+t.circularPathData.verticalRightInnerExtent+&quot; L&quot;+t.circularPathData.rightFullExtent+&quot; &quot;+(t.circularPathData.targetY-t.circularPathData.rightSmallArcRadius)+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightSmallArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.targetY+&quot; L&quot;+t.circularPathData.targetX+&quot; &quot;+t.circularPathData.targetY:&quot;M&quot;+t.circularPathData.sourceX+&quot; &quot;+t.circularPathData.sourceY+&quot; L&quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.sourceY+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftSmallArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.leftFullExtent+&quot; &quot;+(t.circularPathData.sourceY+t.circularPathData.leftSmallArcRadius)+&quot; L&quot;+t.circularPathData.leftFullExtent+&quot; &quot;+t.circularPathData.verticalLeftInnerExtent+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftLargeArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; L&quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightLargeArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.rightFullExtent+&quot; &quot;+t.circularPathData.verticalRightInnerExtent+&quot; L&quot;+t.circularPathData.rightFullExtent+&quot; &quot;+(t.circularPathData.targetY+t.circularPathData.rightSmallArcRadius)+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightSmallArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.targetY+&quot; L&quot;+t.circularPathData.targetX+&quot; &quot;+t.circularPathData.targetY;return e}(e);else{var f=n.linkHorizontal().source((function(t){return[t.source.x0+(t.source.x1-t.source.x0),t.y0]})).target((function(t){return[t.target.x0,t.y1]}));e.path=f(e)}}))}function E(t,e){return z(t)==z(e)?&quot;bottom&quot;==t.circularLinkType?L(t,e):C(t,e):z(e)-z(t)}function C(t,e){return t.y0-e.y0}function L(t,e){return e.y0-t.y0}function I(t,e){return t.y1-e.y1}function P(t,e){return e.y1-t.y1}function z(t){return t.target.column-t.source.column}function O(t){return t.target.x0-t.source.x1}function D(t,e){var r=T(t),n=O(e)/Math.tan(r);return&quot;up&quot;==q(t)?t.y1+n:t.y1-n}function R(t,e){var r=T(t),n=O(e)/Math.tan(r);return&quot;up&quot;==q(t)?t.y1-n:t.y1+n}function F(t,e,r,n){t.links.forEach((function(i){if(!i.circular&amp;&amp;i.target.column-i.source.column&gt;1){var a=i.source.column+1,o=i.target.column-1,s=1,l=o-a+1;for(s=1;a&lt;=o;a++,s++)t.nodes.forEach((function(o){if(o.column==a){var c,u=s/(l+1),f=Math.pow(1-u,3),h=3*u*Math.pow(1-u,2),p=3*Math.pow(u,2)*(1-u),d=Math.pow(u,3),g=f*i.y0+h*i.y0+p*i.y1+d*i.y1,m=g-i.width/2,v=g+i.width/2;m&gt;o.y0&amp;&amp;m&lt;o.y1?(c=o.y1-m+10,c=&quot;bottom&quot;==o.circularLinkType?c:-c,o=N(o,c,e,r),t.nodes.forEach((function(t){b(t,n)!=b(o,n)&amp;&amp;t.column==o.column&amp;&amp;B(o,t)&amp;&amp;N(t,c,e,r)}))):(v&gt;o.y0&amp;&amp;v&lt;o.y1||m&lt;o.y0&amp;&amp;v&gt;o.y1)&amp;&amp;(c=v-o.y0+10,o=N(o,c,e,r),t.nodes.forEach((function(t){b(t,n)!=b(o,n)&amp;&amp;t.column==o.column&amp;&amp;t.y0&lt;o.y1&amp;&amp;t.y1&gt;o.y1&amp;&amp;N(t,c,e,r)})))}}))}}))}function B(t,e){return t.y0&gt;e.y0&amp;&amp;t.y0&lt;e.y1||(t.y1&gt;e.y0&amp;&amp;t.y1&lt;e.y1||t.y0&lt;e.y0&amp;&amp;t.y1&gt;e.y1)}function N(t,e,r,n){return t.y0+e&gt;=r&amp;&amp;t.y1+e&lt;=n&amp;&amp;(t.y0=t.y0+e,t.y1=t.y1+e,t.targetLinks.forEach((function(t){t.y1=t.y1+e})),t.sourceLinks.forEach((function(t){t.y0=t.y0+e}))),t}function j(t,e,r,n){t.nodes.forEach((function(i){n&amp;&amp;i.y+(i.y1-i.y0)&gt;e&amp;&amp;(i.y=i.y-(i.y+(i.y1-i.y0)-e));var a=t.links.filter((function(t){return b(t.source,r)==b(i,r)})),o=a.length;o&gt;1&amp;&amp;a.sort((function(t,e){if(!t.circular&amp;&amp;!e.circular){if(t.target.column==e.target.column)return t.y1-e.y1;if(!V(t,e))return t.y1-e.y1;if(t.target.column&gt;e.target.column){var r=R(e,t);return t.y1-r}if(e.target.column&gt;t.target.column)return R(t,e)-e.y1}return t.circular&amp;&amp;!e.circular?&quot;top&quot;==t.circularLinkType?-1:1:e.circular&amp;&amp;!t.circular?&quot;top&quot;==e.circularLinkType?1:-1:t.circular&amp;&amp;e.circular?t.circularLinkType===e.circularLinkType&amp;&amp;&quot;top&quot;==t.circularLinkType?t.target.column===e.target.column?t.target.y1-e.target.y1:e.target.column-t.target.column:t.circularLinkType===e.circularLinkType&amp;&amp;&quot;bottom&quot;==t.circularLinkType?t.target.column===e.target.column?e.target.y1-t.target.y1:t.target.column-e.target.column:&quot;top&quot;==t.circularLinkType?-1:1:void 0}));var s=i.y0;a.forEach((function(t){t.y0=s+t.width/2,s+=t.width})),a.forEach((function(t,e){if(&quot;bottom&quot;==t.circularLinkType){for(var r=e+1,n=0;r&lt;o;r++)n+=a[r].width;t.y0=i.y1-n-t.width/2}}))}))}function U(t,e,r){t.nodes.forEach((function(e){var n=t.links.filter((function(t){return b(t.target,r)==b(e,r)})),i=n.length;i&gt;1&amp;&amp;n.sort((function(t,e){if(!t.circular&amp;&amp;!e.circular){if(t.source.column==e.source.column)return t.y0-e.y0;if(!V(t,e))return t.y0-e.y0;if(e.source.column&lt;t.source.column){var r=D(e,t);return t.y0-r}if(t.source.column&lt;e.source.column)return D(t,e)-e.y0}return t.circular&amp;&amp;!e.circular?&quot;top&quot;==t.circularLinkType?-1:1:e.circular&amp;&amp;!t.circular?&quot;top&quot;==e.circularLinkType?1:-1:t.circular&amp;&amp;e.circular?t.circularLinkType===e.circularLinkType&amp;&amp;&quot;top&quot;==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:t.source.column-e.source.column:t.circularLinkType===e.circularLinkType&amp;&amp;&quot;bottom&quot;==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:e.source.column-t.source.column:&quot;top&quot;==t.circularLinkType?-1:1:void 0}));var a=e.y0;n.forEach((function(t){t.y1=a+t.width/2,a+=t.width})),n.forEach((function(t,r){if(&quot;bottom&quot;==t.circularLinkType){for(var a=r+1,o=0;a&lt;i;a++)o+=n[a].width;t.y1=e.y1-o-t.width/2}}))}))}function V(t,e){return q(t)==q(e)}function q(t){return t.y0-t.y1&gt;0?&quot;up&quot;:&quot;down&quot;}function H(t,e){return b(t.source,e)==b(t.target,e)}function G(t,r,n){var i=t.nodes,a=t.links,o=!1,s=!1;if(a.forEach((function(t){&quot;top&quot;==t.circularLinkType?o=!0:&quot;bottom&quot;==t.circularLinkType&amp;&amp;(s=!0)})),0==o||0==s){var l=e.min(i,(function(t){return t.y0})),c=(n-r)/(e.max(i,(function(t){return t.y1}))-l);i.forEach((function(t){var e=(t.y1-t.y0)*c;t.y0=(t.y0-l)*c,t.y1=t.y0+e})),a.forEach((function(t){t.y0=(t.y0-l)*c,t.y1=(t.y1-l)*c,t.width=t.width*c}))}}t.sankeyCircular=function(){var t,n,i=0,a=0,b=1,T=1,M=24,A=m,E=o,C=v,L=y,I=32,P=2,z=null;function O(){var t={nodes:C.apply(null,arguments),links:L.apply(null,arguments)};D(t),_(t,A,z),R(t),B(t),w(t,A),N(t,I,A),V(t);for(var e=4,r=0;r&lt;e;r++)j(t,T,A),U(t,T,A),F(t,a,T,A),j(t,T,A),U(t,T,A);return G(t,a,T),S(t,P,T,A),t}function D(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,A);return t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;&quot;object&quot;!==(&quot;undefined&quot;==typeof n?&quot;undefined&quot;:l(n))&amp;&amp;(n=t.source=x(e,n)),&quot;object&quot;!==(&quot;undefined&quot;==typeof i?&quot;undefined&quot;:l(i))&amp;&amp;(i=t.target=x(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)})),t}function R(t){t.nodes.forEach((function(t){t.partOfCycle=!1,t.value=Math.max(e.sum(t.sourceLinks,h),e.sum(t.targetLinks,h)),t.sourceLinks.forEach((function(e){e.circular&amp;&amp;(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)})),t.targetLinks.forEach((function(e){e.circular&amp;&amp;(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)}))}))}function B(t){var e,r,n;for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.depth=n,t.sourceLinks.forEach((function(t){r.indexOf(t.target)&lt;0&amp;&amp;!t.circular&amp;&amp;r.push(t.target)}))}));for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.height=n,t.targetLinks.forEach((function(t){r.indexOf(t.source)&lt;0&amp;&amp;!t.circular&amp;&amp;r.push(t.source)}))}));t.nodes.forEach((function(t){t.column=Math.floor(E.call(null,t,n))}))}function N(o,s,l){var c=r.nest().key((function(t){return t.column})).sortKeys(e.ascending).entries(o.nodes).map((function(t){return t.values}));!function(r){if(n){var s=1/0;c.forEach((function(t){var e=T*n/(t.length+1);s=e&lt;s?e:s})),t=s}var l=e.min(c,(function(r){return(T-a-(r.length-1)*t)/e.sum(r,h)}));l*=.3,o.links.forEach((function(t){t.width=t.value*l}));var u=function(t){var r=0,n=0,i=0,a=0,o=e.max(t.nodes,(function(t){return t.column}));return t.links.forEach((function(t){t.circular&amp;&amp;(&quot;top&quot;==t.circularLinkType?r+=t.width:n+=t.width,0==t.target.column&amp;&amp;(a+=t.width),t.source.column==o&amp;&amp;(i+=t.width))})),{top:r=r&gt;0?r+25+10:r,bottom:n=n&gt;0?n+25+10:n,left:a=a&gt;0?a+25+10:a,right:i=i&gt;0?i+25+10:i}}(o),f=function(t,r){var n=e.max(t.nodes,(function(t){return t.column})),o=b-i,s=T-a,l=o/(o+r.right+r.left),c=s/(s+r.top+r.bottom);return i=i*l+r.left,b=0==r.right?b:b*l,a=a*c+r.top,T*=c,t.nodes.forEach((function(t){t.x0=i+t.column*((b-i-M)/n),t.x1=t.x0+M})),c}(o,u);l*=f,o.links.forEach((function(t){t.width=t.value*l})),c.forEach((function(t){var e=t.length;t.forEach((function(t,n){t.depth==c.length-1&amp;&amp;1==e||0==t.depth&amp;&amp;1==e?(t.y0=T/2-t.value*l,t.y1=t.y0+t.value*l):t.partOfCycle?0==k(t,r)?(t.y0=T/2+n,t.y1=t.y0+t.value*l):&quot;top&quot;==t.circularLinkType?(t.y0=a+n,t.y1=t.y0+t.value*l):(t.y0=T-t.value*l-n,t.y1=t.y0+t.value*l):0==u.top||0==u.bottom?(t.y0=(T-a)/e*n,t.y1=t.y0+t.value*l):(t.y0=(T-a)/2-e/2+n,t.y1=t.y0+t.value*l)}))}))}(l),y();for(var u=1,m=s;m&gt;0;--m)v(u*=.99,l),y();function v(t,r){var n=c.length;c.forEach((function(i){var a=i.length,o=i[0].depth;i.forEach((function(i){var s;if(i.sourceLinks.length||i.targetLinks.length)if(i.partOfCycle&amp;&amp;k(i,r)&gt;0);else if(0==o&amp;&amp;1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else if(o==n-1&amp;&amp;1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else{var l=e.mean(i.sourceLinks,g),c=e.mean(i.targetLinks,d),u=((l&amp;&amp;c?(l+c)/2:l||c)-p(i))*t;i.y0+=u,i.y1+=u}}))}))}function y(){c.forEach((function(e){var r,n,i,o=a,s=e.length;for(e.sort(f),i=0;i&lt;s;++i)(n=o-(r=e[i]).y0)&gt;0&amp;&amp;(r.y0+=n,r.y1+=n),o=r.y1+t;if((n=o-t-T)&gt;0)for(o=r.y0-=n,r.y1-=n,i=s-2;i&gt;=0;--i)(n=(r=e[i]).y1+t-o)&gt;0&amp;&amp;(r.y0-=n,r.y1-=n),o=r.y0}))}}function V(t){t.nodes.forEach((function(t){t.sourceLinks.sort(u),t.targetLinks.sort(c)})),t.nodes.forEach((function(t){var e=t.y0,r=e,n=t.y1,i=n;t.sourceLinks.forEach((function(t){t.circular?(t.y0=n-t.width/2,n-=t.width):(t.y0=e+t.width/2,e+=t.width)})),t.targetLinks.forEach((function(t){t.circular?(t.y1=i-t.width/2,i-=t.width):(t.y1=r+t.width/2,r+=t.width)}))}))}return O.nodeId=function(t){return arguments.length?(A=&quot;function&quot;==typeof t?t:s(t),O):A},O.nodeAlign=function(t){return arguments.length?(E=&quot;function&quot;==typeof t?t:s(t),O):E},O.nodeWidth=function(t){return arguments.length?(M=+t,O):M},O.nodePadding=function(e){return arguments.length?(t=+e,O):t},O.nodes=function(t){return arguments.length?(C=&quot;function&quot;==typeof t?t:s(t),O):C},O.links=function(t){return arguments.length?(L=&quot;function&quot;==typeof t?t:s(t),O):L},O.size=function(t){return arguments.length?(i=a=0,b=+t[0],T=+t[1],O):[b-i,T-a]},O.extent=function(t){return arguments.length?(i=+t[0][0],b=+t[1][0],a=+t[0][1],T=+t[1][1],O):[[i,a],[b,T]]},O.iterations=function(t){return arguments.length?(I=+t,O):I},O.circularLinkGap=function(t){return arguments.length?(P=+t,O):P},O.nodePaddingRatio=function(t){return arguments.length?(n=+t,O):n},O.sortNodes=function(t){return arguments.length?(z=t,O):z},O.update=function(t){return w(t,A),V(t),t.links.forEach((function(t){t.circular&amp;&amp;(t.circularLinkType=t.y0+t.y1&lt;T?&quot;top&quot;:&quot;bottom&quot;,t.source.circularLinkType=t.circularLinkType,t.target.circularLinkType=t.circularLinkType)})),j(t,T,A,!1),U(t,T,A),S(t,P,T,A),t},O},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,a)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=o,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:156,&quot;d3-collection&quot;:157,&quot;d3-shape&quot;:165,&quot;elementary-circuits-directed-graph&quot;:179}],56:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-array&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-shape&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3)}(this,(function(t,e,r,n){&quot;use strict&quot;;function i(t){return t.target.depth}function a(t,e){return t.sourceLinks.length?t.depth:e-1}function o(t){return function(){return t}}function s(t,e){return c(t.source,e.source)||t.index-e.index}function l(t,e){return c(t.target,e.target)||t.index-e.index}function c(t,e){return t.y0-e.y0}function u(t){return t.value}function f(t){return(t.y0+t.y1)/2}function h(t){return f(t.source)*t.value}function p(t){return f(t.target)*t.value}function d(t){return t.index}function g(t){return t.nodes}function m(t){return t.links}function v(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function y(t){return[t.source.x1,t.y0]}function x(t){return[t.target.x0,t.y1]}t.sankey=function(){var t=0,n=0,i=1,y=1,x=24,b=8,_=d,w=a,T=g,k=m,M=32;function A(){var t={nodes:T.apply(null,arguments),links:k.apply(null,arguments)};return S(t),E(t),C(t),L(t),I(t),t}function S(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,_);t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;&quot;object&quot;!=typeof n&amp;&amp;(n=t.source=v(e,n)),&quot;object&quot;!=typeof i&amp;&amp;(i=t.target=v(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)}))}function E(t){t.nodes.forEach((function(t){t.value=Math.max(e.sum(t.sourceLinks,u),e.sum(t.targetLinks,u))}))}function C(e){var r,n,a;for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.depth=a,t.sourceLinks.forEach((function(t){n.indexOf(t.target)&lt;0&amp;&amp;n.push(t.target)}))}));for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.height=a,t.targetLinks.forEach((function(t){n.indexOf(t.source)&lt;0&amp;&amp;n.push(t.source)}))}));var o=(i-t-x)/(a-1);e.nodes.forEach((function(e){e.x1=(e.x0=t+Math.max(0,Math.min(a-1,Math.floor(w.call(null,e,a))))*o)+x}))}function L(t){var i=r.nest().key((function(t){return t.x0})).sortKeys(e.ascending).entries(t.nodes).map((function(t){return t.values}));!function(){var r=e.max(i,(function(t){return t.length})),a=2/3*(y-n)/(r-1);b&gt;a&amp;&amp;(b=a);var o=e.min(i,(function(t){return(y-n-(t.length-1)*b)/e.sum(t,u)}));i.forEach((function(t){t.forEach((function(t,e){t.y1=(t.y0=e)+t.value*o}))})),t.links.forEach((function(t){t.width=t.value*o}))}(),d();for(var a=1,o=M;o&gt;0;--o)l(a*=.99),d(),s(a),d();function s(t){i.forEach((function(r){r.forEach((function(r){if(r.targetLinks.length){var n=(e.sum(r.targetLinks,h)/e.sum(r.targetLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function l(t){i.slice().reverse().forEach((function(r){r.forEach((function(r){if(r.sourceLinks.length){var n=(e.sum(r.sourceLinks,p)/e.sum(r.sourceLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function d(){i.forEach((function(t){var e,r,i,a=n,o=t.length;for(t.sort(c),i=0;i&lt;o;++i)(r=a-(e=t[i]).y0)&gt;0&amp;&amp;(e.y0+=r,e.y1+=r),a=e.y1+b;if((r=a-b-y)&gt;0)for(a=e.y0-=r,e.y1-=r,i=o-2;i&gt;=0;--i)(r=(e=t[i]).y1+b-a)&gt;0&amp;&amp;(e.y0-=r,e.y1-=r),a=e.y0}))}}function I(t){t.nodes.forEach((function(t){t.sourceLinks.sort(l),t.targetLinks.sort(s)})),t.nodes.forEach((function(t){var e=t.y0,r=e;t.sourceLinks.forEach((function(t){t.y0=e+t.width/2,e+=t.width})),t.targetLinks.forEach((function(t){t.y1=r+t.width/2,r+=t.width}))}))}return A.update=function(t){return I(t),t},A.nodeId=function(t){return arguments.length?(_=&quot;function&quot;==typeof t?t:o(t),A):_},A.nodeAlign=function(t){return arguments.length?(w=&quot;function&quot;==typeof t?t:o(t),A):w},A.nodeWidth=function(t){return arguments.length?(x=+t,A):x},A.nodePadding=function(t){return arguments.length?(b=+t,A):b},A.nodes=function(t){return arguments.length?(T=&quot;function&quot;==typeof t?t:o(t),A):T},A.links=function(t){return arguments.length?(k=&quot;function&quot;==typeof t?t:o(t),A):k},A.size=function(e){return arguments.length?(t=n=0,i=+e[0],y=+e[1],A):[i-t,y-n]},A.extent=function(e){return arguments.length?(t=+e[0][0],i=+e[1][0],n=+e[0][1],y=+e[1][1],A):[[t,n],[i,y]]},A.iterations=function(t){return arguments.length?(M=+t,A):M},A},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,i)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=a,t.sankeyLinkHorizontal=function(){return n.linkHorizontal().source(y).target(x)},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:156,&quot;d3-collection&quot;:157,&quot;d3-shape&quot;:165}],57:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./quad&quot;)},{&quot;./quad&quot;:58}],58:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;clamp&quot;),a=t(&quot;parse-rect&quot;),o=t(&quot;array-bounds&quot;),s=t(&quot;pick-by-alias&quot;),l=t(&quot;defined&quot;),c=t(&quot;flatten-vertex-data&quot;),u=t(&quot;is-obj&quot;),f=t(&quot;dtype&quot;),h=t(&quot;math-log2&quot;);function p(t,e){for(var r=e[0],n=e[1],a=1/(e[2]-r),o=1/(e[3]-n),s=new Array(t.length),l=0,c=t.length/2;l&lt;c;l++)s[2*l]=i((t[2*l]-r)*a,0,1),s[2*l+1]=i((t[2*l+1]-n)*o,0,1);return s}e.exports=function(t,e){e||(e={}),t=c(t,&quot;float64&quot;),e=s(e,{bounds:&quot;range bounds dataBox databox&quot;,maxDepth:&quot;depth maxDepth maxdepth level maxLevel maxlevel levels&quot;,dtype:&quot;type dtype format out dst output destination&quot;});var r=l(e.maxDepth,255),i=l(e.bounds,o(t,2));i[0]===i[2]&amp;&amp;i[2]++,i[1]===i[3]&amp;&amp;i[3]++;var d,g=p(t,i),m=t.length&gt;&gt;&gt;1;e.dtype||(e.dtype=&quot;array&quot;),&quot;string&quot;==typeof e.dtype?d=new(f(e.dtype))(m):e.dtype&amp;&amp;(d=e.dtype,Array.isArray(d)&amp;&amp;(d.length=m));for(var v=0;v&lt;m;++v)d[v]=v;var y=[],x=[],b=[],_=[];!function t(e,n,i,a,o,s){if(!a.length)return null;var l=y[o]||(y[o]=[]),c=b[o]||(b[o]=[]),u=x[o]||(x[o]=[]),f=l.length;if(++o&gt;r||s&gt;1073741824){for(var h=0;h&lt;a.length;h++)l.push(a[h]),c.push(s),u.push(null,null,null,null);return f}if(l.push(a[0]),c.push(s),a.length&lt;=1)return u.push(null,null,null,null),f;for(var p=.5*i,d=e+p,m=n+p,v=[],_=[],w=[],T=[],k=1,M=a.length;k&lt;M;k++){var A=a[k],S=g[2*A],E=g[2*A+1];S&lt;d?E&lt;m?v.push(A):_.push(A):E&lt;m?w.push(A):T.push(A)}return s&lt;&lt;=2,u.push(t(e,n,p,v,o,s),t(e,m,p,_,o,s+1),t(d,n,p,w,o,s+2),t(d,m,p,T,o,s+3)),f}(0,0,1,d,0,1);for(var w=0,T=0;T&lt;y.length;T++){var k=y[T];if(d.set)d.set(k,w);else for(var M=0,A=k.length;M&lt;A;M++)d[M+w]=k[M];var S=w+y[T].length;_[T]=[w,S],w=S}return d.range=function(){var e,r=[],n=arguments.length;for(;n--;)r[n]=arguments[n];if(u(r[r.length-1])){var o=r.pop();r.length||null==o.x&amp;&amp;null==o.l&amp;&amp;null==o.left||(r=[o],e={}),e=s(o,{level:&quot;level maxLevel&quot;,d:&quot;d diam diameter r radius px pxSize pixel pixelSize maxD size minSize&quot;,lod:&quot;lod details ranges offsets&quot;})}else e={};r.length||(r=i);var c=a.apply(void 0,r),f=[Math.min(c.x,c.x+c.width),Math.min(c.y,c.y+c.height),Math.max(c.x,c.x+c.width),Math.max(c.y,c.y+c.height)],d=f[0],g=f[1],m=f[2],v=f[3],b=p([d,g,m,v],i),_=b[0],w=b[1],T=b[2],k=b[3],M=l(e.level,y.length);if(null!=e.d){var A;&quot;number&quot;==typeof e.d?A=[e.d,e.d]:e.d.length&amp;&amp;(A=e.d),M=Math.min(Math.max(Math.ceil(-h(Math.abs(A[0])/(i[2]-i[0]))),Math.ceil(-h(Math.abs(A[1])/(i[3]-i[1])))),M)}if(M=Math.min(M,y.length),e.lod)return E(_,w,T,k,M);var S=[];function C(e,r,n,i,a,o){if(null!==a&amp;&amp;null!==o&amp;&amp;!(_&gt;e+n||w&gt;r+n||T&lt;e||k&lt;r||i&gt;=M||a===o)){var s=y[i];void 0===o&amp;&amp;(o=s.length);for(var l=a;l&lt;o;l++){var c=s[l],u=t[2*c],f=t[2*c+1];u&gt;=d&amp;&amp;u&lt;=m&amp;&amp;f&gt;=g&amp;&amp;f&lt;=v&amp;&amp;S.push(c)}var h=x[i],p=h[4*a+0],b=h[4*a+1],A=h[4*a+2],E=h[4*a+3],I=L(h,a+1),P=.5*n,z=i+1;C(e,r,P,z,p,b||A||E||I),C(e,r+P,P,z,b,A||E||I),C(e+P,r,P,z,A,E||I),C(e+P,r+P,P,z,E,I)}}function L(t,e){for(var r=null,n=0;null===r;)if(r=t[4*e+n],++n&gt;t.length)return null;return r}return C(0,0,1,0,0,1),S},d;function E(t,e,r,i,a){for(var o=[],s=0;s&lt;a;s++){var l=b[s],c=_[s][0],u=C(t,e,s),f=C(r,i,s),h=n.ge(l,u),p=n.gt(l,f,h,l.length-1);o[s]=[h+c,p+c]}return o}function C(t,e,r){for(var n=1,i=.5,a=.5,o=.5,s=0;s&lt;r;s++)n&lt;&lt;=2,n+=t&lt;i?e&lt;a?0:1:e&lt;a?2:3,o*=.5,i+=t&lt;i?-o:o,a+=e&lt;a?-o:o;return n}}},{&quot;array-bounds&quot;:70,&quot;binary-search-bounds&quot;:96,clamp:120,defined:170,dtype:175,&quot;flatten-vertex-data&quot;:244,&quot;is-obj&quot;:468,&quot;math-log2&quot;:479,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511}],59:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;);function i(t){var e=0;if(t&amp;&amp;t.length&gt;0){e+=Math.abs(a(t[0]));for(var r=1;r&lt;t.length;r++)e-=Math.abs(a(t[r]))}return e}function a(t){var e,r,n,i,a,s,l=0,c=t.length;if(c&gt;2){for(s=0;s&lt;c;s++)s===c-2?(n=c-2,i=c-1,a=0):s===c-1?(n=c-1,i=0,a=1):(n=s,i=s+1,a=s+2),e=t[n],r=t[i],l+=(o(t[a][0])-o(e[0]))*Math.sin(o(r[1]));l=6378137*l*6378137/2}return l}function o(t){return t*Math.PI/180}r.default=function(t){return n.geomReduce(t,(function(t,e){return t+function(t){var e,r=0;switch(t.type){case&quot;Polygon&quot;:return i(t.coordinates);case&quot;MultiPolygon&quot;:for(e=0;e&lt;t.coordinates.length;e++)r+=i(t.coordinates[e]);return r;case&quot;Point&quot;:case&quot;MultiPoint&quot;:case&quot;LineString&quot;:case&quot;MultiLineString&quot;:return 0}return 0}(e)}),0)}},{&quot;@turf/meta&quot;:63}],60:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;);r.default=function(t){var e=[1/0,1/0,-1/0,-1/0];return n.coordEach(t,(function(t){e[0]&gt;t[0]&amp;&amp;(e[0]=t[0]),e[1]&gt;t[1]&amp;&amp;(e[1]=t[1]),e[2]&lt;t[0]&amp;&amp;(e[2]=t[0]),e[3]&lt;t[1]&amp;&amp;(e[3]=t[1])})),e}},{&quot;@turf/meta&quot;:63}],61:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;),i=t(&quot;@turf/helpers&quot;);r.default=function(t,e){void 0===e&amp;&amp;(e={});var r=0,a=0,o=0;return n.coordEach(t,(function(t){r+=t[0],a+=t[1],o++})),i.point([r/o,a/o],e.properties)}},{&quot;@turf/helpers&quot;:62,&quot;@turf/meta&quot;:63}],62:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){void 0===r&amp;&amp;(r={});var n={type:&quot;Feature&quot;};return(0===r.id||r.id)&amp;&amp;(n.id=r.id),r.bbox&amp;&amp;(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function i(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;Point&quot;,coordinates:t},e,r)}function a(t,e,r){void 0===r&amp;&amp;(r={});for(var i=0,a=t;i&lt;a.length;i++){var o=a[i];if(o.length&lt;4)throw new Error(&quot;Each LinearRing of a Polygon must have 4 or more Positions.&quot;);for(var s=0;s&lt;o[o.length-1].length;s++)if(o[o.length-1][s]!==o[0][s])throw new Error(&quot;First and last Position are not equivalent.&quot;)}return n({type:&quot;Polygon&quot;,coordinates:t},e,r)}function o(t,e,r){if(void 0===r&amp;&amp;(r={}),t.length&lt;2)throw new Error(&quot;coordinates must be an array of two or more positions&quot;);return n({type:&quot;LineString&quot;,coordinates:t},e,r)}function s(t,e){void 0===e&amp;&amp;(e={});var r={type:&quot;FeatureCollection&quot;};return e.id&amp;&amp;(r.id=e.id),e.bbox&amp;&amp;(r.bbox=e.bbox),r.features=t,r}function l(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiLineString&quot;,coordinates:t},e,r)}function c(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPoint&quot;,coordinates:t},e,r)}function u(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPolygon&quot;,coordinates:t},e,r)}function f(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t*n}function h(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t/n}function p(t){return 180*(t%(2*Math.PI))/Math.PI}function d(t){return!isNaN(t)&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)&amp;&amp;!/^\s*$/.test(t)}Object.defineProperty(r,&quot;__esModule&quot;,{value:!0}),r.earthRadius=6371008.8,r.factors={centimeters:100*r.earthRadius,centimetres:100*r.earthRadius,degrees:r.earthRadius/111325,feet:3.28084*r.earthRadius,inches:39.37*r.earthRadius,kilometers:r.earthRadius/1e3,kilometres:r.earthRadius/1e3,meters:r.earthRadius,metres:r.earthRadius,miles:r.earthRadius/1609.344,millimeters:1e3*r.earthRadius,millimetres:1e3*r.earthRadius,nauticalmiles:r.earthRadius/1852,radians:1,yards:r.earthRadius/1.0936},r.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/r.earthRadius,yards:1/1.0936},r.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},r.feature=n,r.geometry=function(t,e,r){switch(void 0===r&amp;&amp;(r={}),t){case&quot;Point&quot;:return i(e).geometry;case&quot;LineString&quot;:return o(e).geometry;case&quot;Polygon&quot;:return a(e).geometry;case&quot;MultiPoint&quot;:return c(e).geometry;case&quot;MultiLineString&quot;:return l(e).geometry;case&quot;MultiPolygon&quot;:return u(e).geometry;default:throw new Error(t+&quot; is invalid&quot;)}},r.point=i,r.points=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return i(t,e)})),r)},r.polygon=a,r.polygons=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return a(t,e)})),r)},r.lineString=o,r.lineStrings=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return o(t,e)})),r)},r.featureCollection=s,r.multiLineString=l,r.multiPoint=c,r.multiPolygon=u,r.geometryCollection=function(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;GeometryCollection&quot;,geometries:t},e,r)},r.round=function(t,e){if(void 0===e&amp;&amp;(e=0),e&amp;&amp;!(e&gt;=0))throw new Error(&quot;precision must be a positive number&quot;);var r=Math.pow(10,e||0);return Math.round(t*r)/r},r.radiansToLength=f,r.lengthToRadians=h,r.lengthToDegrees=function(t,e){return p(h(t,e))},r.bearingToAzimuth=function(t){var e=t%360;return e&lt;0&amp;&amp;(e+=360),e},r.radiansToDegrees=p,r.degreesToRadians=function(t){return t%360*Math.PI/180},r.convertLength=function(t,e,r){if(void 0===e&amp;&amp;(e=&quot;kilometers&quot;),void 0===r&amp;&amp;(r=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;length must be a positive number&quot;);return f(h(t,e),r)},r.convertArea=function(t,e,n){if(void 0===e&amp;&amp;(e=&quot;meters&quot;),void 0===n&amp;&amp;(n=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;area must be a positive number&quot;);var i=r.areaFactors[e];if(!i)throw new Error(&quot;invalid original units&quot;);var a=r.areaFactors[n];if(!a)throw new Error(&quot;invalid final units&quot;);return t/i*a},r.isNumber=d,r.isObject=function(t){return!!t&amp;&amp;t.constructor===Object},r.validateBBox=function(t){if(!t)throw new Error(&quot;bbox is required&quot;);if(!Array.isArray(t))throw new Error(&quot;bbox must be an Array&quot;);if(4!==t.length&amp;&amp;6!==t.length)throw new Error(&quot;bbox must be an Array of 4 or 6 numbers&quot;);t.forEach((function(t){if(!d(t))throw new Error(&quot;bbox must only contain numbers&quot;)}))},r.validateId=function(t){if(!t)throw new Error(&quot;id is required&quot;);if(-1===[&quot;string&quot;,&quot;number&quot;].indexOf(typeof t))throw new Error(&quot;id must be a number or a string&quot;)},r.radians2degrees=function(){throw new Error(&quot;method has been renamed to `radiansToDegrees`&quot;)},r.degrees2radians=function(){throw new Error(&quot;method has been renamed to `degreesToRadians`&quot;)},r.distanceToDegrees=function(){throw new Error(&quot;method has been renamed to `lengthToDegrees`&quot;)},r.distanceToRadians=function(){throw new Error(&quot;method has been renamed to `lengthToRadians`&quot;)},r.radiansToDistance=function(){throw new Error(&quot;method has been renamed to `radiansToLength`&quot;)},r.bearingToAngle=function(){throw new Error(&quot;method has been renamed to `bearingToAzimuth`&quot;)},r.convertDistance=function(){throw new Error(&quot;method has been renamed to `convertLength`&quot;)}},{}],63:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/helpers&quot;);function i(t,e,r){if(null!==t)for(var n,a,o,s,l,c,u,f,h=0,p=0,d=t.type,g=&quot;FeatureCollection&quot;===d,m=&quot;Feature&quot;===d,v=g?t.features.length:1,y=0;y&lt;v;y++){l=(f=!!(u=g?t.features[y].geometry:m?t.geometry:t)&amp;&amp;&quot;GeometryCollection&quot;===u.type)?u.geometries.length:1;for(var x=0;x&lt;l;x++){var b=0,_=0;if(null!==(s=f?u.geometries[x]:u)){c=s.coordinates;var w=s.type;switch(h=!r||&quot;Polygon&quot;!==w&amp;&amp;&quot;MultiPolygon&quot;!==w?0:1,w){case null:break;case&quot;Point&quot;:if(!1===e(c,p,y,b,_))return!1;p++,b++;break;case&quot;LineString&quot;:case&quot;MultiPoint&quot;:for(n=0;n&lt;c.length;n++){if(!1===e(c[n],p,y,b,_))return!1;p++,&quot;MultiPoint&quot;===w&amp;&amp;b++}&quot;LineString&quot;===w&amp;&amp;b++;break;case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:for(n=0;n&lt;c.length;n++){for(a=0;a&lt;c[n].length-h;a++){if(!1===e(c[n][a],p,y,b,_))return!1;p++}&quot;MultiLineString&quot;===w&amp;&amp;b++,&quot;Polygon&quot;===w&amp;&amp;_++}&quot;Polygon&quot;===w&amp;&amp;b++;break;case&quot;MultiPolygon&quot;:for(n=0;n&lt;c.length;n++){for(_=0,a=0;a&lt;c[n].length;a++){for(o=0;o&lt;c[n][a].length-h;o++){if(!1===e(c[n][a][o],p,y,b,_))return!1;p++}_++}b++}break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;s.geometries.length;n++)if(!1===i(s.geometries[n],e,r))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}}}}}function a(t,e){var r;switch(t.type){case&quot;FeatureCollection&quot;:for(r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r].properties,r);r++);break;case&quot;Feature&quot;:e(t.properties,0)}}function o(t,e){if(&quot;Feature&quot;===t.type)e(t,0);else if(&quot;FeatureCollection&quot;===t.type)for(var r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r],r);r++);}function s(t,e){var r,n,i,a,o,s,l,c,u,f,h=0,p=&quot;FeatureCollection&quot;===t.type,d=&quot;Feature&quot;===t.type,g=p?t.features.length:1;for(r=0;r&lt;g;r++){for(s=p?t.features[r].geometry:d?t.geometry:t,c=p?t.features[r].properties:d?t.properties:{},u=p?t.features[r].bbox:d?t.bbox:void 0,f=p?t.features[r].id:d?t.id:void 0,o=(l=!!s&amp;&amp;&quot;GeometryCollection&quot;===s.type)?s.geometries.length:1,i=0;i&lt;o;i++)if(null!==(a=l?s.geometries[i]:s))switch(a.type){case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;MultiPoint&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:if(!1===e(a,h,c,u,f))return!1;break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;a.geometries.length;n++)if(!1===e(a.geometries[n],h,c,u,f))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}else if(!1===e(null,h,c,u,f))return!1;h++}}function l(t,e){s(t,(function(t,r,i,a,o){var s,l=null===t?null:t.type;switch(l){case null:case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;Polygon&quot;:return!1!==e(n.feature(t,i,{bbox:a,id:o}),r,0)&amp;&amp;void 0}switch(l){case&quot;MultiPoint&quot;:s=&quot;Point&quot;;break;case&quot;MultiLineString&quot;:s=&quot;LineString&quot;;break;case&quot;MultiPolygon&quot;:s=&quot;Polygon&quot;}for(var c=0;c&lt;t.coordinates.length;c++){var u={type:s,coordinates:t.coordinates[c]};if(!1===e(n.feature(u,i),r,c))return!1}}))}function c(t,e){l(t,(function(t,r,a){var o=0;if(t.geometry){var s=t.geometry.type;if(&quot;Point&quot;!==s&amp;&amp;&quot;MultiPoint&quot;!==s){var l,c=0,u=0,f=0;return!1!==i(t,(function(i,s,h,p,d){if(void 0===l||r&gt;c||p&gt;u||d&gt;f)return l=i,c=r,u=p,f=d,void(o=0);var g=n.lineString([l,i],t.properties);if(!1===e(g,r,a,d,o))return!1;o++,l=i}))&amp;&amp;void 0}}}))}function u(t,e){if(!t)throw new Error(&quot;geojson is required&quot;);l(t,(function(t,r,i){if(null!==t.geometry){var a=t.geometry.type,o=t.geometry.coordinates;switch(a){case&quot;LineString&quot;:if(!1===e(t,r,i,0,0))return!1;break;case&quot;Polygon&quot;:for(var s=0;s&lt;o.length;s++)if(!1===e(n.lineString(o[s],t.properties),r,i,s))return!1}}}))}r.coordEach=i,r.coordReduce=function(t,e,r,n){var a=r;return i(t,(function(t,n,i,o,s){a=0===n&amp;&amp;void 0===r?t:e(a,t,n,i,o,s)}),n),a},r.propEach=a,r.propReduce=function(t,e,r){var n=r;return a(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.featureEach=o,r.featureReduce=function(t,e,r){var n=r;return o(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.coordAll=function(t){var e=[];return i(t,(function(t){e.push(t)})),e},r.geomEach=s,r.geomReduce=function(t,e,r){var n=r;return s(t,(function(t,i,a,o,s){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o,s)})),n},r.flattenEach=l,r.flattenReduce=function(t,e,r){var n=r;return l(t,(function(t,i,a){n=0===i&amp;&amp;0===a&amp;&amp;void 0===r?t:e(n,t,i,a)})),n},r.segmentEach=c,r.segmentReduce=function(t,e,r){var n=r,i=!1;return c(t,(function(t,a,o,s,l){n=!1===i&amp;&amp;void 0===r?t:e(n,t,a,o,s,l),i=!0})),n},r.lineEach=u,r.lineReduce=function(t,e,r){var n=r;return u(t,(function(t,i,a,o){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o)})),n},r.findSegment=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.segmentIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s-1),n.lineString([c[s],c[s+1]],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s-1),n.lineString([c[o][s],c[o][s+1]],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s-1),n.lineString([c[a][s],c[a][s+1]],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s-1),n.lineString([c[a][o][s],c[a][o][s+1]],l,e)}throw new Error(&quot;geojson is invalid&quot;)},r.findPoint=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.coordIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:return n.point(c,l,e);case&quot;MultiPoint&quot;:return a&lt;0&amp;&amp;(a=c.length+a),n.point(c[a],l,e);case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s),n.point(c[s],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s),n.point(c[o][s],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s),n.point(c[a][s],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s),n.point(c[a][o][s],l,e)}throw new Error(&quot;geojson is invalid&quot;)}},{&quot;@turf/helpers&quot;:62}],64:[function(t,e,r){&quot;use strict&quot;;var n=&quot;undefined&quot;==typeof WeakMap?t(&quot;weak-map&quot;):WeakMap,i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=new n;e.exports=function(t){var e=o.get(t),r=e&amp;&amp;(e._triangleBuffer.handle||e._triangleBuffer.buffer);if(!r||!t.isBuffer(r)){var n=i(t,new Float32Array([-1,-1,-1,4,4,-1]));(e=a(t,[{buffer:n,type:t.FLOAT,size:2}]))._triangleBuffer=n,o.set(t,e)}e.bind(),t.drawArrays(t.TRIANGLES,0,3),e.unbind()}},{&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358,&quot;weak-map&quot;:602}],65:[function(t,e,r){e.exports=function(t){var e=0,r=0,n=0,i=0;return t.map((function(t){var a=(t=t.slice())[0],o=a.toUpperCase();if(a!=o)switch(t[0]=o,a){case&quot;a&quot;:t[6]+=n,t[7]+=i;break;case&quot;v&quot;:t[1]+=i;break;case&quot;h&quot;:t[1]+=n;break;default:for(var s=1;s&lt;t.length;)t[s++]+=n,t[s++]+=i}switch(o){case&quot;Z&quot;:n=e,i=r;break;case&quot;H&quot;:n=t[1];break;case&quot;V&quot;:i=t[1];break;case&quot;M&quot;:n=e=t[1],i=r=t[2];break;default:n=t[t.length-2],i=t[t.length-1]}return t}))}},{}],66:[function(t,e,r){var n=t(&quot;pad-left&quot;);e.exports=function(t,e,r){e=&quot;number&quot;==typeof e?e:1,r=r||&quot;: &quot;;var i=t.split(/\r?\n/),a=String(i.length+e-1).length;return i.map((function(t,i){var o=i+e,s=String(o).length;return n(o,a-s)+r+t})).join(&quot;\n&quot;)}},{&quot;pad-left&quot;:502}],67:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[0];for(var r=t[0].length,n=[t[0]],a=[0],o=1;o&lt;e;++o)if(n.push(t[o]),i(n,r)){if(a.push(o),a.length===r+1)return a}else n.pop();return a};var n=t(&quot;robust-orientation&quot;);function i(t,e){for(var r=new Array(e+1),i=0;i&lt;t.length;++i)r[i]=t[i];for(i=0;i&lt;=t.length;++i){for(var a=t.length;a&lt;=e;++a){for(var o=new Array(e),s=0;s&lt;e;++s)o[s]=Math.pow(a+1-i,s);r[a]=o}if(n.apply(void 0,r))return!0}return!1}},{&quot;robust-orientation&quot;:548}],68:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return n(e).filter((function(r){for(var n=new Array(r.length),a=0;a&lt;r.length;++a)n[a]=e[r[a]];return i(n)*t&lt;1}))};var n=t(&quot;delaunay-triangulate&quot;),i=t(&quot;circumradius&quot;)},{circumradius:119,&quot;delaunay-triangulate&quot;:171}],69:[function(t,e,r){e.exports=function(t,e){return i(n(t,e))};var n=t(&quot;alpha-complex&quot;),i=t(&quot;simplicial-complex-boundary&quot;)},{&quot;alpha-complex&quot;:68,&quot;simplicial-complex-boundary&quot;:555}],70:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(!t||null==t.length)throw Error(&quot;Argument should be an array&quot;);e=null==e?1:Math.floor(e);for(var r=Array(2*e),n=0;n&lt;e;n++){for(var i=-1/0,a=1/0,o=n,s=t.length;o&lt;s;o+=e)t[o]&gt;i&amp;&amp;(i=t[o]),t[o]&lt;a&amp;&amp;(a=t[o]);r[n]=a,r[e+n]=i}return r}},{}],71:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;array-bounds&quot;);e.exports=function(t,e,r){if(!t||null==t.length)throw Error(&quot;Argument should be an array&quot;);null==e&amp;&amp;(e=1);null==r&amp;&amp;(r=n(t,e));for(var i=0;i&lt;e;i++){var a=r[e+i],o=r[i],s=i,l=t.length;if(a===1/0&amp;&amp;o===-1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===a?1:t[s]===o?0:.5;else if(a===1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===a?1:0;else if(o===-1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===o?0:1;else{var c=a-o;for(s=i;s&lt;l;s+=e)isNaN(t[s])||(t[s]=0===c?.5:(t[s]-o)/c)}}return t}},{&quot;array-bounds&quot;:70}],72:[function(t,e,r){e.exports=function(t,e){var r=&quot;number&quot;==typeof t,n=&quot;number&quot;==typeof e;r&amp;&amp;!n?(e=t,t=0):r||n||(t=0,e=0);var i=(e|=0)-(t|=0);if(i&lt;0)throw new Error(&quot;array length must be positive&quot;);for(var a=new Array(i),o=0,s=t;o&lt;i;o++,s++)a[o]=s;return a}},{}],73:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;object-assign&quot;);
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh &lt;feross@feross.org&gt; &lt;http://feross.org&gt;
 * @license  MIT
 */function i(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i&lt;a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r&lt;n?-1:n&lt;r?1:0}function a(t){return r.Buffer&amp;&amp;&quot;function&quot;==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var o=t(&quot;util/&quot;),s=Object.prototype.hasOwnProperty,l=Array.prototype.slice,c=&quot;foo&quot;===function(){}.name;function u(t){return Object.prototype.toString.call(t)}function f(t){return!a(t)&amp;&amp;(&quot;function&quot;==typeof r.ArrayBuffer&amp;&amp;(&quot;function&quot;==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&amp;&amp;(t instanceof DataView||!!(t.buffer&amp;&amp;t.buffer instanceof ArrayBuffer))))}var h=e.exports=y,p=/\s*function\s+([^\(\s]*)\s*/;function d(t){if(o.isFunction(t)){if(c)return t.name;var e=t.toString().match(p);return e&amp;&amp;e[1]}}function g(t,e){return&quot;string&quot;==typeof t?t.length&lt;e?t:t.slice(0,e):t}function m(t){if(c||!o.isFunction(t))return o.inspect(t);var e=d(t);return&quot;[Function&quot;+(e?&quot;: &quot;+e:&quot;&quot;)+&quot;]&quot;}function v(t,e,r,n,i){throw new h.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function y(t,e){t||v(t,!0,e,&quot;==&quot;,h.ok)}function x(t,e,r,n){if(t===e)return!0;if(a(t)&amp;&amp;a(e))return 0===i(t,e);if(o.isDate(t)&amp;&amp;o.isDate(e))return t.getTime()===e.getTime();if(o.isRegExp(t)&amp;&amp;o.isRegExp(e))return t.source===e.source&amp;&amp;t.global===e.global&amp;&amp;t.multiline===e.multiline&amp;&amp;t.lastIndex===e.lastIndex&amp;&amp;t.ignoreCase===e.ignoreCase;if(null!==t&amp;&amp;&quot;object&quot;==typeof t||null!==e&amp;&amp;&quot;object&quot;==typeof e){if(f(t)&amp;&amp;f(e)&amp;&amp;u(t)===u(e)&amp;&amp;!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(a(t)!==a(e))return!1;var s=(n=n||{actual:[],expected:[]}).actual.indexOf(t);return-1!==s&amp;&amp;s===n.expected.indexOf(e)||(n.actual.push(t),n.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(o.isPrimitive(t)||o.isPrimitive(e))return t===e;if(r&amp;&amp;Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=b(t),a=b(e);if(i&amp;&amp;!a||!i&amp;&amp;a)return!1;if(i)return t=l.call(t),e=l.call(e),x(t,e,r);var s,c,u=T(t),f=T(e);if(u.length!==f.length)return!1;for(u.sort(),f.sort(),c=u.length-1;c&gt;=0;c--)if(u[c]!==f[c])return!1;for(c=u.length-1;c&gt;=0;c--)if(s=u[c],!x(t[s],e[s],r,n))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function b(t){return&quot;[object Arguments]&quot;==Object.prototype.toString.call(t)}function _(t,e){if(!t||!e)return!1;if(&quot;[object RegExp]&quot;==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&amp;&amp;!0===e.call({},t)}function w(t,e,r,n){var i;if(&quot;function&quot;!=typeof e)throw new TypeError('&quot;block&quot; argument must be a function');&quot;string&quot;==typeof r&amp;&amp;(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&amp;&amp;r.name?&quot; (&quot;+r.name+&quot;).&quot;:&quot;.&quot;)+(n?&quot; &quot;+n:&quot;.&quot;),t&amp;&amp;!i&amp;&amp;v(i,r,&quot;Missing expected exception&quot;+n);var a=&quot;string&quot;==typeof n,s=!t&amp;&amp;i&amp;&amp;!r;if((!t&amp;&amp;o.isError(i)&amp;&amp;a&amp;&amp;_(i,r)||s)&amp;&amp;v(i,r,&quot;Got unwanted exception&quot;+n),t&amp;&amp;i&amp;&amp;r&amp;&amp;!_(i,r)||!t&amp;&amp;i)throw i}h.AssertionError=function(t){this.name=&quot;AssertionError&quot;,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return g(m(t.actual),128)+&quot; &quot;+t.operator+&quot; &quot;+g(m(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=d(e),a=n.indexOf(&quot;\n&quot;+i);if(a&gt;=0){var o=n.indexOf(&quot;\n&quot;,a+1);n=n.substring(o+1)}this.stack=n}}},o.inherits(h.AssertionError,Error),h.fail=v,h.ok=y,h.equal=function(t,e,r){t!=e&amp;&amp;v(t,e,r,&quot;==&quot;,h.equal)},h.notEqual=function(t,e,r){t==e&amp;&amp;v(t,e,r,&quot;!=&quot;,h.notEqual)},h.deepEqual=function(t,e,r){x(t,e,!1)||v(t,e,r,&quot;deepEqual&quot;,h.deepEqual)},h.deepStrictEqual=function(t,e,r){x(t,e,!0)||v(t,e,r,&quot;deepStrictEqual&quot;,h.deepStrictEqual)},h.notDeepEqual=function(t,e,r){x(t,e,!1)&amp;&amp;v(t,e,r,&quot;notDeepEqual&quot;,h.notDeepEqual)},h.notDeepStrictEqual=function t(e,r,n){x(e,r,!0)&amp;&amp;v(e,r,n,&quot;notDeepStrictEqual&quot;,t)},h.strictEqual=function(t,e,r){t!==e&amp;&amp;v(t,e,r,&quot;===&quot;,h.strictEqual)},h.notStrictEqual=function(t,e,r){t===e&amp;&amp;v(t,e,r,&quot;!==&quot;,h.notStrictEqual)},h.throws=function(t,e,r){w(!0,t,e,r)},h.doesNotThrow=function(t,e,r){w(!1,t,e,r)},h.ifError=function(t){if(t)throw t},h.strict=n((function t(e,r){e||v(e,!0,r,&quot;==&quot;,t)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var T=Object.keys||function(t){var e=[];for(var r in t)s.call(t,r)&amp;&amp;e.push(r);return e}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;object-assign&quot;:499,&quot;util/&quot;:76}],74:[function(t,e,r){&quot;function&quot;==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],75:[function(t,e,r){e.exports=function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;&quot;function&quot;==typeof t.copy&amp;&amp;&quot;function&quot;==typeof t.fill&amp;&amp;&quot;function&quot;==typeof t.readUInt8}},{}],76:[function(t,e,r){(function(e,n){(function(){var i=/%[sdj%]/g;r.format=function(t){if(!v(t)){for(var e=[],r=0;r&lt;arguments.length;r++)e.push(s(arguments[r]));return e.join(&quot; &quot;)}r=1;for(var n=arguments,a=n.length,o=String(t).replace(i,(function(t){if(&quot;%%&quot;===t)return&quot;%&quot;;if(r&gt;=a)return t;switch(t){case&quot;%s&quot;:return String(n[r++]);case&quot;%d&quot;:return Number(n[r++]);case&quot;%j&quot;:try{return JSON.stringify(n[r++])}catch(t){return&quot;[Circular]&quot;}default:return t}})),l=n[r];r&lt;a;l=n[++r])g(l)||!b(l)?o+=&quot; &quot;+l:o+=&quot; &quot;+s(l);return o},r.deprecate=function(t,i){if(y(n.process))return function(){return r.deprecate(t,i).apply(this,arguments)};if(!0===e.noDeprecation)return t;var a=!1;return function(){if(!a){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),a=!0}return t.apply(this,arguments)}};var a,o={};function s(t,e){var n={seen:[],stylize:c};return arguments.length&gt;=3&amp;&amp;(n.depth=arguments[2]),arguments.length&gt;=4&amp;&amp;(n.colors=arguments[3]),d(e)?n.showHidden=e:e&amp;&amp;r._extend(n,e),y(n.showHidden)&amp;&amp;(n.showHidden=!1),y(n.depth)&amp;&amp;(n.depth=2),y(n.colors)&amp;&amp;(n.colors=!1),y(n.customInspect)&amp;&amp;(n.customInspect=!0),n.colors&amp;&amp;(n.stylize=l),u(n,t,n.depth)}function l(t,e){var r=s.styles[e];return r?&quot;\x1b[&quot;+s.colors[r][0]+&quot;m&quot;+t+&quot;\x1b[&quot;+s.colors[r][1]+&quot;m&quot;:t}function c(t,e){return t}function u(t,e,n){if(t.customInspect&amp;&amp;e&amp;&amp;T(e.inspect)&amp;&amp;e.inspect!==r.inspect&amp;&amp;(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return v(i)||(i=u(t,i,n)),i}var a=function(t,e){if(y(e))return t.stylize(&quot;undefined&quot;,&quot;undefined&quot;);if(v(e)){var r=&quot;'&quot;+JSON.stringify(e).replace(/^&quot;|&quot;$/g,&quot;&quot;).replace(/'/g,&quot;\\'&quot;).replace(/\\&quot;/g,'&quot;')+&quot;'&quot;;return t.stylize(r,&quot;string&quot;)}if(m(e))return t.stylize(&quot;&quot;+e,&quot;number&quot;);if(d(e))return t.stylize(&quot;&quot;+e,&quot;boolean&quot;);if(g(e))return t.stylize(&quot;null&quot;,&quot;null&quot;)}(t,e);if(a)return a;var o=Object.keys(e),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&amp;&amp;(o=Object.getOwnPropertyNames(e)),w(e)&amp;&amp;(o.indexOf(&quot;message&quot;)&gt;=0||o.indexOf(&quot;description&quot;)&gt;=0))return f(e);if(0===o.length){if(T(e)){var l=e.name?&quot;: &quot;+e.name:&quot;&quot;;return t.stylize(&quot;[Function&quot;+l+&quot;]&quot;,&quot;special&quot;)}if(x(e))return t.stylize(RegExp.prototype.toString.call(e),&quot;regexp&quot;);if(_(e))return t.stylize(Date.prototype.toString.call(e),&quot;date&quot;);if(w(e))return f(e)}var c,b=&quot;&quot;,k=!1,M=[&quot;{&quot;,&quot;}&quot;];(p(e)&amp;&amp;(k=!0,M=[&quot;[&quot;,&quot;]&quot;]),T(e))&amp;&amp;(b=&quot; [Function&quot;+(e.name?&quot;: &quot;+e.name:&quot;&quot;)+&quot;]&quot;);return x(e)&amp;&amp;(b=&quot; &quot;+RegExp.prototype.toString.call(e)),_(e)&amp;&amp;(b=&quot; &quot;+Date.prototype.toUTCString.call(e)),w(e)&amp;&amp;(b=&quot; &quot;+f(e)),0!==o.length||k&amp;&amp;0!=e.length?n&lt;0?x(e)?t.stylize(RegExp.prototype.toString.call(e),&quot;regexp&quot;):t.stylize(&quot;[Object]&quot;,&quot;special&quot;):(t.seen.push(e),c=k?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o&lt;s;++o)E(e,String(o))?a.push(h(t,e,r,n,String(o),!0)):a.push(&quot;&quot;);return i.forEach((function(i){i.match(/^\d+$/)||a.push(h(t,e,r,n,i,!0))})),a}(t,e,n,s,o):o.map((function(r){return h(t,e,n,s,r,k)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf(&quot;\n&quot;)&gt;=0&amp;&amp;0,t+e.replace(/\u001b\[\d\d?m/g,&quot;&quot;).length+1}),0)&gt;60)return r[0]+(&quot;&quot;===e?&quot;&quot;:e+&quot;\n &quot;)+&quot; &quot;+t.join(&quot;,\n  &quot;)+&quot; &quot;+r[1];return r[0]+e+&quot; &quot;+t.join(&quot;, &quot;)+&quot; &quot;+r[1]}(c,b,M)):M[0]+b+M[1]}function f(t){return&quot;[&quot;+Error.prototype.toString.call(t)+&quot;]&quot;}function h(t,e,r,n,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=l.set?t.stylize(&quot;[Getter/Setter]&quot;,&quot;special&quot;):t.stylize(&quot;[Getter]&quot;,&quot;special&quot;):l.set&amp;&amp;(s=t.stylize(&quot;[Setter]&quot;,&quot;special&quot;)),E(n,i)||(o=&quot;[&quot;+i+&quot;]&quot;),s||(t.seen.indexOf(l.value)&lt;0?(s=g(r)?u(t,l.value,null):u(t,l.value,r-1)).indexOf(&quot;\n&quot;)&gt;-1&amp;&amp;(s=a?s.split(&quot;\n&quot;).map((function(t){return&quot;  &quot;+t})).join(&quot;\n&quot;).substr(2):&quot;\n&quot;+s.split(&quot;\n&quot;).map((function(t){return&quot;   &quot;+t})).join(&quot;\n&quot;)):s=t.stylize(&quot;[Circular]&quot;,&quot;special&quot;)),y(o)){if(a&amp;&amp;i.match(/^\d+$/))return s;(o=JSON.stringify(&quot;&quot;+i)).match(/^&quot;([a-zA-Z_][a-zA-Z_0-9]*)&quot;$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,&quot;name&quot;)):(o=o.replace(/'/g,&quot;\\'&quot;).replace(/\\&quot;/g,'&quot;').replace(/(^&quot;|&quot;$)/g,&quot;'&quot;),o=t.stylize(o,&quot;string&quot;))}return o+&quot;: &quot;+s}function p(t){return Array.isArray(t)}function d(t){return&quot;boolean&quot;==typeof t}function g(t){return null===t}function m(t){return&quot;number&quot;==typeof t}function v(t){return&quot;string&quot;==typeof t}function y(t){return void 0===t}function x(t){return b(t)&amp;&amp;&quot;[object RegExp]&quot;===k(t)}function b(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t}function _(t){return b(t)&amp;&amp;&quot;[object Date]&quot;===k(t)}function w(t){return b(t)&amp;&amp;(&quot;[object Error]&quot;===k(t)||t instanceof Error)}function T(t){return&quot;function&quot;==typeof t}function k(t){return Object.prototype.toString.call(t)}function M(t){return t&lt;10?&quot;0&quot;+t.toString(10):t.toString(10)}r.debuglog=function(t){if(y(a)&amp;&amp;(a=e.env.NODE_DEBUG||&quot;&quot;),t=t.toUpperCase(),!o[t])if(new RegExp(&quot;\\b&quot;+t+&quot;\\b&quot;,&quot;i&quot;).test(a)){var n=e.pid;o[t]=function(){var e=r.format.apply(r,arguments);console.error(&quot;%s %d: %s&quot;,t,n,e)}}else o[t]=function(){};return o[t]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:&quot;cyan&quot;,number:&quot;yellow&quot;,boolean:&quot;yellow&quot;,undefined:&quot;grey&quot;,null:&quot;bold&quot;,string:&quot;green&quot;,date:&quot;magenta&quot;,regexp:&quot;red&quot;},r.isArray=p,r.isBoolean=d,r.isNull=g,r.isNullOrUndefined=function(t){return null==t},r.isNumber=m,r.isString=v,r.isSymbol=function(t){return&quot;symbol&quot;==typeof t},r.isUndefined=y,r.isRegExp=x,r.isObject=b,r.isDate=_,r.isError=w,r.isFunction=T,r.isPrimitive=function(t){return null===t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||&quot;symbol&quot;==typeof t||&quot;undefined&quot;==typeof t},r.isBuffer=t(&quot;./support/isBuffer&quot;);var A=[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;];function S(){var t=new Date,e=[M(t.getHours()),M(t.getMinutes()),M(t.getSeconds())].join(&quot;:&quot;);return[t.getDate(),A[t.getMonth()],e].join(&quot; &quot;)}function E(t,e){return Object.prototype.hasOwnProperty.call(t,e)}r.log=function(){console.log(&quot;%s - %s&quot;,S(),r.format.apply(r,arguments))},r.inherits=t(&quot;inherits&quot;),r._extend=function(t,e){if(!e||!b(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;./support/isBuffer&quot;:75,_process:526,inherits:74}],77:[function(t,e,r){e.exports=function(t){return atob(t)}},{}],78:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=e.length,a=new Array(r+1),o=0;o&lt;r;++o){for(var s=new Array(r+1),l=0;l&lt;=r;++l)s[l]=t[l][o];a[o]=s}a[r]=new Array(r+1);for(o=0;o&lt;=r;++o)a[r][o]=1;var c=new Array(r+1);for(o=0;o&lt;r;++o)c[o]=e[o];c[r]=1;var u=n(a,c),f=i(u[r+1]);0===f&amp;&amp;(f=1);var h=new Array(r+1);for(o=0;o&lt;=r;++o)h[o]=i(u[o])/f;return h};var n=t(&quot;robust-linear-solve&quot;);function i(t){for(var e=0,r=0;r&lt;t.length;++r)e+=t[r];return e}},{&quot;robust-linear-solve&quot;:547}],79:[function(t,e,r){&quot;use strict&quot;;r.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){var e,r,n=c(t),o=n[0],s=n[1],l=new a(function(t,e,r){return 3*(e+r)/4-r}(0,o,s)),u=0,f=s&gt;0?o-4:o;for(r=0;r&lt;f;r+=4)e=i[t.charCodeAt(r)]&lt;&lt;18|i[t.charCodeAt(r+1)]&lt;&lt;12|i[t.charCodeAt(r+2)]&lt;&lt;6|i[t.charCodeAt(r+3)],l[u++]=e&gt;&gt;16&amp;255,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e;2===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;2|i[t.charCodeAt(r+1)]&gt;&gt;4,l[u++]=255&amp;e);1===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;10|i[t.charCodeAt(r+1)]&lt;&lt;4|i[t.charCodeAt(r+2)]&gt;&gt;2,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e);return l},r.fromByteArray=function(t){for(var e,r=t.length,i=r%3,a=[],o=0,s=r-i;o&lt;s;o+=16383)a.push(u(t,o,o+16383&gt;s?s:o+16383));1===i?(e=t[r-1],a.push(n[e&gt;&gt;2]+n[e&lt;&lt;4&amp;63]+&quot;==&quot;)):2===i&amp;&amp;(e=(t[r-2]&lt;&lt;8)+t[r-1],a.push(n[e&gt;&gt;10]+n[e&gt;&gt;4&amp;63]+n[e&lt;&lt;2&amp;63]+&quot;=&quot;));return a.join(&quot;&quot;)};for(var n=[],i=[],a=&quot;undefined&quot;!=typeof Uint8Array?Uint8Array:Array,o=&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/&quot;,s=0,l=o.length;s&lt;l;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4&gt;0)throw new Error(&quot;Invalid string. Length must be a multiple of 4&quot;);var r=t.indexOf(&quot;=&quot;);return-1===r&amp;&amp;(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var i,a,o=[],s=e;s&lt;r;s+=3)i=(t[s]&lt;&lt;16&amp;16711680)+(t[s+1]&lt;&lt;8&amp;65280)+(255&amp;t[s+2]),o.push(n[(a=i)&gt;&gt;18&amp;63]+n[a&gt;&gt;12&amp;63]+n[a&gt;&gt;6&amp;63]+n[63&amp;a]);return o.join(&quot;&quot;)}i[&quot;-&quot;.charCodeAt(0)]=62,i[&quot;_&quot;.charCodeAt(0)]=63},{}],80:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]).add(e[0].mul(t[1])),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:90}],81:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t[0].mul(e[1]).cmp(e[0].mul(t[1]))}},{}],82:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]),t[1].mul(e[0]))}},{&quot;./lib/rationalize&quot;:90}],83:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-rat&quot;),i=t(&quot;./lib/is-bn&quot;),a=t(&quot;./lib/num-to-bn&quot;),o=t(&quot;./lib/str-to-bn&quot;),s=t(&quot;./lib/rationalize&quot;),l=t(&quot;./div&quot;);e.exports=function t(e,r){if(n(e))return r?l(e,t(r)):[e[0].clone(),e[1].clone()];var c,u,f=0;if(i(e))c=e.clone();else if(&quot;string&quot;==typeof e)c=o(e);else{if(0===e)return[a(0),a(1)];if(e===Math.floor(e))c=a(e);else{for(;e!==Math.floor(e);)e*=Math.pow(2,256),f-=256;c=a(e)}}if(n(r))c.mul(r[1]),u=r[0].clone();else if(i(r))u=r.clone();else if(&quot;string&quot;==typeof r)u=o(r);else if(r)if(r===Math.floor(r))u=a(r);else{for(;r!==Math.floor(r);)r*=Math.pow(2,256),f+=256;u=a(r)}else u=a(1);f&gt;0?c=c.ushln(f):f&lt;0&amp;&amp;(u=u.ushln(-f));return s(c,u)}},{&quot;./div&quot;:82,&quot;./is-rat&quot;:84,&quot;./lib/is-bn&quot;:88,&quot;./lib/num-to-bn&quot;:89,&quot;./lib/rationalize&quot;:90,&quot;./lib/str-to-bn&quot;:91}],84:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/is-bn&quot;);e.exports=function(t){return Array.isArray(t)&amp;&amp;2===t.length&amp;&amp;n(t[0])&amp;&amp;n(t[1])}},{&quot;./lib/is-bn&quot;:88}],85:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;);e.exports=function(t){return t.cmp(new n(0))}},{&quot;bn.js&quot;:99}],86:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./bn-sign&quot;);e.exports=function(t){var e=t.length,r=t.words,i=0;if(1===e)i=r[0];else if(2===e)i=r[0]+67108864*r[1];else for(var a=0;a&lt;e;a++){var o=r[a];i+=o*Math.pow(67108864,a)}return n(t)*i}},{&quot;./bn-sign&quot;:85}],87:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;double-bits&quot;),i=t(&quot;bit-twiddle&quot;).countTrailingZeros;e.exports=function(t){var e=i(n.lo(t));if(e&lt;32)return e;var r=i(n.hi(t));if(r&gt;20)return 52;return r+32}},{&quot;bit-twiddle&quot;:97,&quot;double-bits&quot;:173}],88:[function(t,e,r){&quot;use strict&quot;;t(&quot;bn.js&quot;);e.exports=function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;Boolean(t.words)}},{&quot;bn.js&quot;:99}],89:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;),i=t(&quot;double-bits&quot;);e.exports=function(t){var e=i.exponent(t);return e&lt;52?new n(t):new n(t*Math.pow(2,52-e)).ushln(e-52)}},{&quot;bn.js&quot;:99,&quot;double-bits&quot;:173}],90:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./num-to-bn&quot;),i=t(&quot;./bn-sign&quot;);e.exports=function(t,e){var r=i(t),a=i(e);if(0===r)return[n(0),n(1)];if(0===a)return[n(0),n(0)];a&lt;0&amp;&amp;(t=t.neg(),e=e.neg());var o=t.gcd(e);if(o.cmpn(1))return[t.div(o),e.div(o)];return[t,e]}},{&quot;./bn-sign&quot;:85,&quot;./num-to-bn&quot;:89}],91:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;);e.exports=function(t){return new n(t)}},{&quot;bn.js&quot;:99}],92:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[0]),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:90}],93:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/bn-sign&quot;);e.exports=function(t){return n(t[0])*n(t[1])}},{&quot;./lib/bn-sign&quot;:85}],94:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]).sub(t[1].mul(e[0])),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:90}],95:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/bn-to-num&quot;),i=t(&quot;./lib/ctz&quot;);e.exports=function(t){var e=t[0],r=t[1];if(0===e.cmpn(0))return 0;var a=e.abs().divmod(r.abs()),o=a.div,s=n(o),l=a.mod,c=e.negative!==r.negative?-1:1;if(0===l.cmpn(0))return c*s;if(s){var u=i(s)+4,f=n(l.ushln(u).divRound(r));return c*(s+f*Math.pow(2,-u))}var h=r.bitLength()-l.bitLength()+53;f=n(l.ushln(h).divRound(r));return h&lt;1023?c*f*Math.pow(2,-h):(f*=Math.pow(2,-1023),c*f*Math.pow(2,1023-h))}},{&quot;./lib/bn-to-num&quot;:86,&quot;./lib/ctz&quot;:87}],96:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i){var a=[&quot;function &quot;,t,&quot;(a,l,h,&quot;,n.join(&quot;,&quot;),&quot;){&quot;,i?&quot;&quot;:&quot;var i=&quot;,r?&quot;l-1&quot;:&quot;h+1&quot;,&quot;;while(l&lt;=h){var m=(l+h)&gt;&gt;&gt;1,x=a[m]&quot;];return i?e.indexOf(&quot;c&quot;)&lt;0?a.push(&quot;;if(x===y){return m}else if(x&lt;=y){&quot;):a.push(&quot;;var p=c(x,y);if(p===0){return m}else if(p&lt;=0){&quot;):a.push(&quot;;if(&quot;,e,&quot;){i=m;&quot;),r?a.push(&quot;l=m+1}else{h=m-1}&quot;):a.push(&quot;h=m-1}else{l=m+1}&quot;),a.push(&quot;}&quot;),i?a.push(&quot;return -1};&quot;):a.push(&quot;return i};&quot;),a.join(&quot;&quot;)}function i(t,e,r,i){return new Function([n(&quot;A&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],i),n(&quot;P&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],i),&quot;function dispatchBsearch&quot;,r,&quot;(a,y,c,l,h){if(typeof(c)==='function'){return P(a,(l===void 0)?0:l|0,(h===void 0)?a.length-1:h|0,y,c)}else{return A(a,(c===void 0)?0:c|0,(l===void 0)?a.length-1:l|0,y)}}return dispatchBsearch&quot;,r].join(&quot;&quot;))()}e.exports={ge:i(&quot;&gt;=&quot;,!1,&quot;GE&quot;),gt:i(&quot;&gt;&quot;,!1,&quot;GT&quot;),lt:i(&quot;&lt;&quot;,!0,&quot;LT&quot;),le:i(&quot;&lt;=&quot;,!0,&quot;LE&quot;),eq:i(&quot;-&quot;,!0,&quot;EQ&quot;,!0)}},{}],97:[function(t,e,r){&quot;use strict&quot;;function n(t){var e=32;return(t&amp;=-t)&amp;&amp;e--,65535&amp;t&amp;&amp;(e-=16),16711935&amp;t&amp;&amp;(e-=8),252645135&amp;t&amp;&amp;(e-=4),858993459&amp;t&amp;&amp;(e-=2),1431655765&amp;t&amp;&amp;(e-=1),e}r.INT_BITS=32,r.INT_MAX=2147483647,r.INT_MIN=-1&lt;&lt;31,r.sign=function(t){return(t&gt;0)-(t&lt;0)},r.abs=function(t){var e=t&gt;&gt;31;return(t^e)-e},r.min=function(t,e){return e^(t^e)&amp;-(t&lt;e)},r.max=function(t,e){return t^(t^e)&amp;-(t&lt;e)},r.isPow2=function(t){return!(t&amp;t-1||!t)},r.log2=function(t){var e,r;return e=(t&gt;65535)&lt;&lt;4,e|=r=((t&gt;&gt;&gt;=e)&gt;255)&lt;&lt;3,e|=r=((t&gt;&gt;&gt;=r)&gt;15)&lt;&lt;2,(e|=r=((t&gt;&gt;&gt;=r)&gt;3)&lt;&lt;1)|(t&gt;&gt;&gt;=r)&gt;&gt;1},r.log10=function(t){return t&gt;=1e9?9:t&gt;=1e8?8:t&gt;=1e7?7:t&gt;=1e6?6:t&gt;=1e5?5:t&gt;=1e4?4:t&gt;=1e3?3:t&gt;=100?2:t&gt;=10?1:0},r.popCount=function(t){return 16843009*((t=(858993459&amp;(t-=t&gt;&gt;&gt;1&amp;1431655765))+(t&gt;&gt;&gt;2&amp;858993459))+(t&gt;&gt;&gt;4)&amp;252645135)&gt;&gt;&gt;24},r.countTrailingZeros=n,r.nextPow2=function(t){return t+=0===t,--t,t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)+1},r.prevPow2=function(t){return t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)-(t&gt;&gt;&gt;1)},r.parity=function(t){return t^=t&gt;&gt;&gt;16,t^=t&gt;&gt;&gt;8,t^=t&gt;&gt;&gt;4,27030&gt;&gt;&gt;(t&amp;=15)&amp;1};var i=new Array(256);!function(t){for(var e=0;e&lt;256;++e){var r=e,n=e,i=7;for(r&gt;&gt;&gt;=1;r;r&gt;&gt;&gt;=1)n&lt;&lt;=1,n|=1&amp;r,--i;t[e]=n&lt;&lt;i&amp;255}}(i),r.reverse=function(t){return i[255&amp;t]&lt;&lt;24|i[t&gt;&gt;&gt;8&amp;255]&lt;&lt;16|i[t&gt;&gt;&gt;16&amp;255]&lt;&lt;8|i[t&gt;&gt;&gt;24&amp;255]},r.interleave2=function(t,e){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t&amp;=65535)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e&amp;=65535)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1},r.deinterleave2=function(t,e){return(t=65535&amp;((t=16711935&amp;((t=252645135&amp;((t=858993459&amp;((t=t&gt;&gt;&gt;e&amp;1431655765)|t&gt;&gt;&gt;1))|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;16))&lt;&lt;16&gt;&gt;16},r.interleave3=function(t,e,r){return t=1227133513&amp;((t=3272356035&amp;((t=251719695&amp;((t=4278190335&amp;((t&amp;=1023)|t&lt;&lt;16))|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2),(t|=(e=1227133513&amp;((e=3272356035&amp;((e=251719695&amp;((e=4278190335&amp;((e&amp;=1023)|e&lt;&lt;16))|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))&lt;&lt;1)|(r=1227133513&amp;((r=3272356035&amp;((r=251719695&amp;((r=4278190335&amp;((r&amp;=1023)|r&lt;&lt;16))|r&lt;&lt;8))|r&lt;&lt;4))|r&lt;&lt;2))&lt;&lt;2},r.deinterleave3=function(t,e){return(t=1023&amp;((t=4278190335&amp;((t=251719695&amp;((t=3272356035&amp;((t=t&gt;&gt;&gt;e&amp;1227133513)|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;8))|t&gt;&gt;&gt;16))&lt;&lt;22&gt;&gt;22},r.nextCombination=function(t){var e=t|t-1;return e+1|(~e&amp;-~e)-1&gt;&gt;&gt;n(t)+1}},{}],98:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;clamp&quot;);e.exports=function(t,e){e||(e={});var r,o,s,l,c,u,f,h,p,d,g,m=null==e.cutoff?.25:e.cutoff,v=null==e.radius?8:e.radius,y=e.channel||0;if(ArrayBuffer.isView(t)||Array.isArray(t)){if(!e.width||!e.height)throw Error(&quot;For raw data width and height should be provided by options&quot;);r=e.width,o=e.height,l=t,u=e.stride?e.stride:Math.floor(t.length/r/o)}else window.HTMLCanvasElement&amp;&amp;t instanceof window.HTMLCanvasElement?(f=(h=t).getContext(&quot;2d&quot;),r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.CanvasRenderingContext2D&amp;&amp;t instanceof window.CanvasRenderingContext2D?(h=t.canvas,f=t,r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.ImageData&amp;&amp;t instanceof window.ImageData&amp;&amp;(p=t,r=t.width,o=t.height,l=p.data,u=4);if(s=Math.max(r,o),window.Uint8ClampedArray&amp;&amp;l instanceof window.Uint8ClampedArray||window.Uint8Array&amp;&amp;l instanceof window.Uint8Array)for(c=l,l=Array(r*o),d=0,g=c.length;d&lt;g;d++)l[d]=c[d*u+y]/255;else if(1!==u)throw Error(&quot;Raw data can have only 1 value per pixel&quot;);var x=Array(r*o),b=Array(r*o),_=Array(s),w=Array(s),T=Array(s+1),k=Array(s);for(d=0,g=r*o;d&lt;g;d++){var M=l[d];x[d]=1===M?0:0===M?i:Math.pow(Math.max(0,.5-M),2),b[d]=1===M?i:0===M?0:Math.pow(Math.max(0,M-.5),2)}a(x,r,o,_,w,k,T),a(b,r,o,_,w,k,T);var A=window.Float32Array?new Float32Array(r*o):new Array(r*o);for(d=0,g=r*o;d&lt;g;d++)A[d]=n(1-((x[d]-b[d])/v+m),0,1);return A};var i=1e20;function a(t,e,r,n,i,a,s){for(var l=0;l&lt;e;l++){for(var c=0;c&lt;r;c++)n[c]=t[c*e+l];for(o(n,i,a,s,r),c=0;c&lt;r;c++)t[c*e+l]=i[c]}for(c=0;c&lt;r;c++){for(l=0;l&lt;e;l++)n[l]=t[c*e+l];for(o(n,i,a,s,e),l=0;l&lt;e;l++)t[c*e+l]=Math.sqrt(i[l])}}function o(t,e,r,n,a){r[0]=0,n[0]=-i,n[1]=+i;for(var o=1,s=0;o&lt;a;o++){for(var l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);l&lt;=n[s];)s--,l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);r[++s]=o,n[s]=l,n[s+1]=+i}for(o=0,s=0;o&lt;a;o++){for(;n[s+1]&lt;o;)s++;e[o]=(o-r[s])*(o-r[s])+t[r[s]]}}},{clamp:120}],99:[function(t,e,r){!function(e,r){&quot;use strict&quot;;function n(t,e){if(!t)throw new Error(e||&quot;Assertion failed&quot;)}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,e,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&amp;&amp;(&quot;le&quot;!==e&amp;&amp;&quot;be&quot;!==e||(r=e,e=10),this._init(t||0,e||10,r||&quot;be&quot;))}var o;&quot;object&quot;==typeof e?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{o=t(&quot;buffer&quot;).Buffer}catch(t){}function s(t,e,r){for(var n=0,i=Math.min(t.length,r),a=e;a&lt;i;a++){var o=t.charCodeAt(a)-48;n&lt;&lt;=4,n|=o&gt;=49&amp;&amp;o&lt;=54?o-49+10:o&gt;=17&amp;&amp;o&lt;=22?o-17+10:15&amp;o}return n}function l(t,e,r,n){for(var i=0,a=Math.min(t.length,r),o=e;o&lt;a;o++){var s=t.charCodeAt(o)-48;i*=n,i+=s&gt;=49?s-49+10:s&gt;=17?s-17+10:s}return i}a.isBN=function(t){return t instanceof a||null!==t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;t.constructor.wordSize===a.wordSize&amp;&amp;Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)&gt;0?t:e},a.min=function(t,e){return t.cmp(e)&lt;0?t:e},a.prototype._init=function(t,e,r){if(&quot;number&quot;==typeof t)return this._initNumber(t,e,r);if(&quot;object&quot;==typeof t)return this._initArray(t,e,r);&quot;hex&quot;===e&amp;&amp;(e=16),n(e===(0|e)&amp;&amp;e&gt;=2&amp;&amp;e&lt;=36);var i=0;&quot;-&quot;===(t=t.toString().replace(/\s+/g,&quot;&quot;))[0]&amp;&amp;i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),&quot;-&quot;===t[0]&amp;&amp;(this.negative=1),this.strip(),&quot;le&quot;===r&amp;&amp;this._initArray(this.toArray(),e,r)},a.prototype._initNumber=function(t,e,r){t&lt;0&amp;&amp;(this.negative=1,t=-t),t&lt;67108864?(this.words=[67108863&amp;t],this.length=1):t&lt;4503599627370496?(this.words=[67108863&amp;t,t/67108864&amp;67108863],this.length=2):(n(t&lt;9007199254740992),this.words=[67108863&amp;t,t/67108864&amp;67108863,1],this.length=3),&quot;le&quot;===r&amp;&amp;this._initArray(this.toArray(),e,r)},a.prototype._initArray=function(t,e,r){if(n(&quot;number&quot;==typeof t.length),t.length&lt;=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i&lt;this.length;i++)this.words[i]=0;var a,o,s=0;if(&quot;be&quot;===r)for(i=t.length-1,a=0;i&gt;=0;i-=3)o=t[i]|t[i-1]&lt;&lt;8|t[i-2]&lt;&lt;16,this.words[a]|=o&lt;&lt;s&amp;67108863,this.words[a+1]=o&gt;&gt;&gt;26-s&amp;67108863,(s+=24)&gt;=26&amp;&amp;(s-=26,a++);else if(&quot;le&quot;===r)for(i=0,a=0;i&lt;t.length;i+=3)o=t[i]|t[i+1]&lt;&lt;8|t[i+2]&lt;&lt;16,this.words[a]|=o&lt;&lt;s&amp;67108863,this.words[a+1]=o&gt;&gt;&gt;26-s&amp;67108863,(s+=24)&gt;=26&amp;&amp;(s-=26,a++);return this.strip()},a.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r&lt;this.length;r++)this.words[r]=0;var n,i,a=0;for(r=t.length-6,n=0;r&gt;=e;r-=6)i=s(t,r,r+6),this.words[n]|=i&lt;&lt;a&amp;67108863,this.words[n+1]|=i&gt;&gt;&gt;26-a&amp;4194303,(a+=24)&gt;=26&amp;&amp;(a-=26,n++);r+6!==e&amp;&amp;(i=s(t,e,r+6),this.words[n]|=i&lt;&lt;a&amp;67108863,this.words[n+1]|=i&gt;&gt;&gt;26-a&amp;4194303),this.strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i&lt;=67108863;i*=e)n++;n--,i=i/e|0;for(var a=t.length-r,o=a%n,s=Math.min(a,a-o)+r,c=0,u=r;u&lt;s;u+=n)c=l(t,u,u+n,e),this.imuln(i),this.words[0]+c&lt;67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var f=1;for(c=l(t,u,t.length,e),u=0;u&lt;o;u++)f*=e;this.imuln(f),this.words[0]+c&lt;67108864?this.words[0]+=c:this._iaddn(c)}},a.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e&lt;this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length&lt;t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length&gt;1&amp;&amp;0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&amp;&amp;0===this.words[0]&amp;&amp;(this.negative=0),this},a.prototype.inspect=function(){return(this.red?&quot;&lt;BN-R: &quot;:&quot;&lt;BN: &quot;)+this.toString(16)+&quot;&gt;&quot;};var c=[&quot;&quot;,&quot;0&quot;,&quot;00&quot;,&quot;000&quot;,&quot;0000&quot;,&quot;00000&quot;,&quot;000000&quot;,&quot;0000000&quot;,&quot;00000000&quot;,&quot;000000000&quot;,&quot;0000000000&quot;,&quot;00000000000&quot;,&quot;000000000000&quot;,&quot;0000000000000&quot;,&quot;00000000000000&quot;,&quot;000000000000000&quot;,&quot;0000000000000000&quot;,&quot;00000000000000000&quot;,&quot;000000000000000000&quot;,&quot;0000000000000000000&quot;,&quot;00000000000000000000&quot;,&quot;000000000000000000000&quot;,&quot;0000000000000000000000&quot;,&quot;00000000000000000000000&quot;,&quot;000000000000000000000000&quot;,&quot;0000000000000000000000000&quot;],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],a=0|e.words[0],o=i*a,s=67108863&amp;o,l=o/67108864|0;r.words[0]=s;for(var c=1;c&lt;n;c++){for(var u=l&gt;&gt;&gt;26,f=67108863&amp;l,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p&lt;=h;p++){var d=c-p|0;u+=(o=(i=0|t.words[d])*(a=0|e.words[p])+f)/67108864|0,f=67108863&amp;o}r.words[c]=0|f,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||&quot;hex&quot;===t){r=&quot;&quot;;for(var i=0,a=0,o=0;o&lt;this.length;o++){var s=this.words[o],l=(16777215&amp;(s&lt;&lt;i|a)).toString(16);r=0!==(a=s&gt;&gt;&gt;24-i&amp;16777215)||o!==this.length-1?c[6-l.length]+l+r:l+r,(i+=2)&gt;=26&amp;&amp;(i-=26,o--)}for(0!==a&amp;&amp;(r=a.toString(16)+r);r.length%e!=0;)r=&quot;0&quot;+r;return 0!==this.negative&amp;&amp;(r=&quot;-&quot;+r),r}if(t===(0|t)&amp;&amp;t&gt;=2&amp;&amp;t&lt;=36){var h=u[t],p=f[t];r=&quot;&quot;;var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modn(p).toString(t);r=(d=d.idivn(p)).isZero()?g+r:c[h-g.length]+g+r}for(this.isZero()&amp;&amp;(r=&quot;0&quot;+r);r.length%e!=0;)r=&quot;0&quot;+r;return 0!==this.negative&amp;&amp;(r=&quot;-&quot;+r),r}n(!1,&quot;Base should be between 2 and 36&quot;)},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&amp;&amp;1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length&gt;2&amp;&amp;n(!1,&quot;Number can only safely store up to 53 bits&quot;),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return n(&quot;undefined&quot;!=typeof o),this.toArrayLike(o,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i&lt;=a,&quot;byte array longer than desired length&quot;),n(a&gt;0,&quot;Requested array length &lt;= 0&quot;),this.strip();var o,s,l=&quot;le&quot;===e,c=new t(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s&lt;a;s++)c[s]=0}else{for(s=0;s&lt;a-i;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[a-s-1]=o}return c},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var e=t,r=0;return e&gt;=4096&amp;&amp;(r+=13,e&gt;&gt;&gt;=13),e&gt;=64&amp;&amp;(r+=7,e&gt;&gt;&gt;=7),e&gt;=8&amp;&amp;(r+=4,e&gt;&gt;&gt;=4),e&gt;=2&amp;&amp;(r+=2,e&gt;&gt;&gt;=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&amp;e)&amp;&amp;(r+=13,e&gt;&gt;&gt;=13),0==(127&amp;e)&amp;&amp;(r+=7,e&gt;&gt;&gt;=7),0==(15&amp;e)&amp;&amp;(r+=4,e&gt;&gt;&gt;=4),0==(3&amp;e)&amp;&amp;(r+=2,e&gt;&gt;&gt;=2),0==(1&amp;e)&amp;&amp;r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e&lt;this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length&lt;t.length;)this.words[this.length++]=0;for(var e=0;e&lt;t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},a.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length&gt;t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length&gt;t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length&gt;t.length?t:this;for(var r=0;r&lt;e.length;r++)this.words[r]=this.words[r]&amp;t.words[r];return this.length=e.length,this.strip()},a.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length&gt;t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length&gt;t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length&gt;t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n&lt;r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n&lt;e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},a.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length&gt;t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length&gt;t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r&gt;0&amp;&amp;e--;for(var i=0;i&lt;e;i++)this.words[i]=67108863&amp;~this.words[i];return r&gt;0&amp;&amp;(this.words[i]=~this.words[i]&amp;67108863&gt;&gt;26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1&lt;&lt;i:this.words[r]&amp;~(1&lt;&lt;i),this.strip()},a.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&amp;&amp;0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&amp;&amp;0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length&gt;t.length?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a&lt;n.length;a++)e=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&amp;e,i=e&gt;&gt;&gt;26;for(;0!==i&amp;&amp;a&lt;r.length;a++)e=(0|r.words[a])+i,this.words[a]=67108863&amp;e,i=e&gt;&gt;&gt;26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a&lt;r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(t){var e;return 0!==t.negative&amp;&amp;0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&amp;&amp;0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length&gt;t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i&gt;0?(r=this,n=t):(r=t,n=this);for(var a=0,o=0;o&lt;n.length;o++)a=(e=(0|r.words[o])-(0|n.words[o])+a)&gt;&gt;26,this.words[o]=67108863&amp;e;for(;0!==a&amp;&amp;o&lt;r.length;o++)a=(e=(0|r.words[o])+a)&gt;&gt;26,this.words[o]=67108863&amp;e;if(0===a&amp;&amp;o&lt;r.length&amp;&amp;r!==this)for(;o&lt;r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&amp;&amp;(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,a,o=t.words,s=e.words,l=r.words,c=0,u=0|o[0],f=8191&amp;u,h=u&gt;&gt;&gt;13,p=0|o[1],d=8191&amp;p,g=p&gt;&gt;&gt;13,m=0|o[2],v=8191&amp;m,y=m&gt;&gt;&gt;13,x=0|o[3],b=8191&amp;x,_=x&gt;&gt;&gt;13,w=0|o[4],T=8191&amp;w,k=w&gt;&gt;&gt;13,M=0|o[5],A=8191&amp;M,S=M&gt;&gt;&gt;13,E=0|o[6],C=8191&amp;E,L=E&gt;&gt;&gt;13,I=0|o[7],P=8191&amp;I,z=I&gt;&gt;&gt;13,O=0|o[8],D=8191&amp;O,R=O&gt;&gt;&gt;13,F=0|o[9],B=8191&amp;F,N=F&gt;&gt;&gt;13,j=0|s[0],U=8191&amp;j,V=j&gt;&gt;&gt;13,q=0|s[1],H=8191&amp;q,G=q&gt;&gt;&gt;13,Y=0|s[2],W=8191&amp;Y,X=Y&gt;&gt;&gt;13,Z=0|s[3],J=8191&amp;Z,K=Z&gt;&gt;&gt;13,Q=0|s[4],$=8191&amp;Q,tt=Q&gt;&gt;&gt;13,et=0|s[5],rt=8191&amp;et,nt=et&gt;&gt;&gt;13,it=0|s[6],at=8191&amp;it,ot=it&gt;&gt;&gt;13,st=0|s[7],lt=8191&amp;st,ct=st&gt;&gt;&gt;13,ut=0|s[8],ft=8191&amp;ut,ht=ut&gt;&gt;&gt;13,pt=0|s[9],dt=8191&amp;pt,gt=pt&gt;&gt;&gt;13;r.negative=t.negative^e.negative,r.length=19;var mt=(c+(n=Math.imul(f,U))|0)+((8191&amp;(i=(i=Math.imul(f,V))+Math.imul(h,U)|0))&lt;&lt;13)|0;c=((a=Math.imul(h,V))+(i&gt;&gt;&gt;13)|0)+(mt&gt;&gt;&gt;26)|0,mt&amp;=67108863,n=Math.imul(d,U),i=(i=Math.imul(d,V))+Math.imul(g,U)|0,a=Math.imul(g,V);var vt=(c+(n=n+Math.imul(f,H)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,H)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,G)|0)+(i&gt;&gt;&gt;13)|0)+(vt&gt;&gt;&gt;26)|0,vt&amp;=67108863,n=Math.imul(v,U),i=(i=Math.imul(v,V))+Math.imul(y,U)|0,a=Math.imul(y,V),n=n+Math.imul(d,H)|0,i=(i=i+Math.imul(d,G)|0)+Math.imul(g,H)|0,a=a+Math.imul(g,G)|0;var yt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,W)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,X)|0)+(i&gt;&gt;&gt;13)|0)+(yt&gt;&gt;&gt;26)|0,yt&amp;=67108863,n=Math.imul(b,U),i=(i=Math.imul(b,V))+Math.imul(_,U)|0,a=Math.imul(_,V),n=n+Math.imul(v,H)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(d,W)|0,i=(i=i+Math.imul(d,X)|0)+Math.imul(g,W)|0,a=a+Math.imul(g,X)|0;var xt=(c+(n=n+Math.imul(f,J)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,J)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,K)|0)+(i&gt;&gt;&gt;13)|0)+(xt&gt;&gt;&gt;26)|0,xt&amp;=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,V))+Math.imul(k,U)|0,a=Math.imul(k,V),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,G)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(y,W)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(d,J)|0,i=(i=i+Math.imul(d,K)|0)+Math.imul(g,J)|0,a=a+Math.imul(g,K)|0;var bt=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,$)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,tt)|0)+(i&gt;&gt;&gt;13)|0)+(bt&gt;&gt;&gt;26)|0,bt&amp;=67108863,n=Math.imul(A,U),i=(i=Math.imul(A,V))+Math.imul(S,U)|0,a=Math.imul(S,V),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(k,H)|0,a=a+Math.imul(k,G)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(_,W)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(y,J)|0,a=a+Math.imul(y,K)|0,n=n+Math.imul(d,$)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(g,$)|0,a=a+Math.imul(g,tt)|0;var _t=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,nt)|0)+(i&gt;&gt;&gt;13)|0)+(_t&gt;&gt;&gt;26)|0,_t&amp;=67108863,n=Math.imul(C,U),i=(i=Math.imul(C,V))+Math.imul(L,U)|0,a=Math.imul(L,V),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(k,W)|0,a=a+Math.imul(k,X)|0,n=n+Math.imul(b,J)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(_,J)|0,a=a+Math.imul(_,K)|0,n=n+Math.imul(v,$)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,tt)|0,n=n+Math.imul(d,rt)|0,i=(i=i+Math.imul(d,nt)|0)+Math.imul(g,rt)|0,a=a+Math.imul(g,nt)|0;var wt=(c+(n=n+Math.imul(f,at)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ot)|0)+Math.imul(h,at)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ot)|0)+(i&gt;&gt;&gt;13)|0)+(wt&gt;&gt;&gt;26)|0,wt&amp;=67108863,n=Math.imul(P,U),i=(i=Math.imul(P,V))+Math.imul(z,U)|0,a=Math.imul(z,V),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(L,H)|0,a=a+Math.imul(L,G)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,X)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(k,J)|0,a=a+Math.imul(k,K)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(y,rt)|0,a=a+Math.imul(y,nt)|0,n=n+Math.imul(d,at)|0,i=(i=i+Math.imul(d,ot)|0)+Math.imul(g,at)|0,a=a+Math.imul(g,ot)|0;var Tt=(c+(n=n+Math.imul(f,lt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ct)|0)+Math.imul(h,lt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ct)|0)+(i&gt;&gt;&gt;13)|0)+(Tt&gt;&gt;&gt;26)|0,Tt&amp;=67108863,n=Math.imul(D,U),i=(i=Math.imul(D,V))+Math.imul(R,U)|0,a=Math.imul(R,V),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(z,H)|0,a=a+Math.imul(z,G)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(L,W)|0,a=a+Math.imul(L,X)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(S,J)|0,a=a+Math.imul(S,K)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(_,rt)|0,a=a+Math.imul(_,nt)|0,n=n+Math.imul(v,at)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(y,at)|0,a=a+Math.imul(y,ot)|0,n=n+Math.imul(d,lt)|0,i=(i=i+Math.imul(d,ct)|0)+Math.imul(g,lt)|0,a=a+Math.imul(g,ct)|0;var kt=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ht)|0)+(i&gt;&gt;&gt;13)|0)+(kt&gt;&gt;&gt;26)|0,kt&amp;=67108863,n=Math.imul(B,U),i=(i=Math.imul(B,V))+Math.imul(N,U)|0,a=Math.imul(N,V),n=n+Math.imul(D,H)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(R,H)|0,a=a+Math.imul(R,G)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(z,W)|0,a=a+Math.imul(z,X)|0,n=n+Math.imul(C,J)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(L,J)|0,a=a+Math.imul(L,K)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(k,rt)|0,a=a+Math.imul(k,nt)|0,n=n+Math.imul(b,at)|0,i=(i=i+Math.imul(b,ot)|0)+Math.imul(_,at)|0,a=a+Math.imul(_,ot)|0,n=n+Math.imul(v,lt)|0,i=(i=i+Math.imul(v,ct)|0)+Math.imul(y,lt)|0,a=a+Math.imul(y,ct)|0,n=n+Math.imul(d,ft)|0,i=(i=i+Math.imul(d,ht)|0)+Math.imul(g,ft)|0,a=a+Math.imul(g,ht)|0;var Mt=(c+(n=n+Math.imul(f,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,gt)|0)+Math.imul(h,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Mt&gt;&gt;&gt;26)|0,Mt&amp;=67108863,n=Math.imul(B,H),i=(i=Math.imul(B,G))+Math.imul(N,H)|0,a=Math.imul(N,G),n=n+Math.imul(D,W)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(R,W)|0,a=a+Math.imul(R,X)|0,n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(z,J)|0,a=a+Math.imul(z,K)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(L,$)|0,a=a+Math.imul(L,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(S,rt)|0,a=a+Math.imul(S,nt)|0,n=n+Math.imul(T,at)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(k,at)|0,a=a+Math.imul(k,ot)|0,n=n+Math.imul(b,lt)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(_,lt)|0,a=a+Math.imul(_,ct)|0,n=n+Math.imul(v,ft)|0,i=(i=i+Math.imul(v,ht)|0)+Math.imul(y,ft)|0,a=a+Math.imul(y,ht)|0;var At=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(d,gt)|0)+Math.imul(g,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(g,gt)|0)+(i&gt;&gt;&gt;13)|0)+(At&gt;&gt;&gt;26)|0,At&amp;=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,X))+Math.imul(N,W)|0,a=Math.imul(N,X),n=n+Math.imul(D,J)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(R,J)|0,a=a+Math.imul(R,K)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(z,$)|0,a=a+Math.imul(z,tt)|0,n=n+Math.imul(C,rt)|0,i=(i=i+Math.imul(C,nt)|0)+Math.imul(L,rt)|0,a=a+Math.imul(L,nt)|0,n=n+Math.imul(A,at)|0,i=(i=i+Math.imul(A,ot)|0)+Math.imul(S,at)|0,a=a+Math.imul(S,ot)|0,n=n+Math.imul(T,lt)|0,i=(i=i+Math.imul(T,ct)|0)+Math.imul(k,lt)|0,a=a+Math.imul(k,ct)|0,n=n+Math.imul(b,ft)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(_,ft)|0,a=a+Math.imul(_,ht)|0;var St=(c+(n=n+Math.imul(v,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(v,gt)|0)+Math.imul(y,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(y,gt)|0)+(i&gt;&gt;&gt;13)|0)+(St&gt;&gt;&gt;26)|0,St&amp;=67108863,n=Math.imul(B,J),i=(i=Math.imul(B,K))+Math.imul(N,J)|0,a=Math.imul(N,K),n=n+Math.imul(D,$)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(z,rt)|0,a=a+Math.imul(z,nt)|0,n=n+Math.imul(C,at)|0,i=(i=i+Math.imul(C,ot)|0)+Math.imul(L,at)|0,a=a+Math.imul(L,ot)|0,n=n+Math.imul(A,lt)|0,i=(i=i+Math.imul(A,ct)|0)+Math.imul(S,lt)|0,a=a+Math.imul(S,ct)|0,n=n+Math.imul(T,ft)|0,i=(i=i+Math.imul(T,ht)|0)+Math.imul(k,ft)|0,a=a+Math.imul(k,ht)|0;var Et=(c+(n=n+Math.imul(b,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(b,gt)|0)+Math.imul(_,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(_,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Et&gt;&gt;&gt;26)|0,Et&amp;=67108863,n=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(N,$)|0,a=Math.imul(N,tt),n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(R,rt)|0,a=a+Math.imul(R,nt)|0,n=n+Math.imul(P,at)|0,i=(i=i+Math.imul(P,ot)|0)+Math.imul(z,at)|0,a=a+Math.imul(z,ot)|0,n=n+Math.imul(C,lt)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(L,lt)|0,a=a+Math.imul(L,ct)|0,n=n+Math.imul(A,ft)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(S,ft)|0,a=a+Math.imul(S,ht)|0;var Ct=(c+(n=n+Math.imul(T,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(T,gt)|0)+Math.imul(k,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(k,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Ct&gt;&gt;&gt;26)|0,Ct&amp;=67108863,n=Math.imul(B,rt),i=(i=Math.imul(B,nt))+Math.imul(N,rt)|0,a=Math.imul(N,nt),n=n+Math.imul(D,at)|0,i=(i=i+Math.imul(D,ot)|0)+Math.imul(R,at)|0,a=a+Math.imul(R,ot)|0,n=n+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(z,lt)|0,a=a+Math.imul(z,ct)|0,n=n+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,ht)|0)+Math.imul(L,ft)|0,a=a+Math.imul(L,ht)|0;var Lt=(c+(n=n+Math.imul(A,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(A,gt)|0)+Math.imul(S,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(S,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Lt&gt;&gt;&gt;26)|0,Lt&amp;=67108863,n=Math.imul(B,at),i=(i=Math.imul(B,ot))+Math.imul(N,at)|0,a=Math.imul(N,ot),n=n+Math.imul(D,lt)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(R,lt)|0,a=a+Math.imul(R,ct)|0,n=n+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(z,ft)|0,a=a+Math.imul(z,ht)|0;var It=(c+(n=n+Math.imul(C,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(C,gt)|0)+Math.imul(L,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(L,gt)|0)+(i&gt;&gt;&gt;13)|0)+(It&gt;&gt;&gt;26)|0,It&amp;=67108863,n=Math.imul(B,lt),i=(i=Math.imul(B,ct))+Math.imul(N,lt)|0,a=Math.imul(N,ct),n=n+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(R,ft)|0,a=a+Math.imul(R,ht)|0;var Pt=(c+(n=n+Math.imul(P,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(P,gt)|0)+Math.imul(z,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(z,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Pt&gt;&gt;&gt;26)|0,Pt&amp;=67108863,n=Math.imul(B,ft),i=(i=Math.imul(B,ht))+Math.imul(N,ft)|0,a=Math.imul(N,ht);var zt=(c+(n=n+Math.imul(D,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(D,gt)|0)+Math.imul(R,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(R,gt)|0)+(i&gt;&gt;&gt;13)|0)+(zt&gt;&gt;&gt;26)|0,zt&amp;=67108863;var Ot=(c+(n=Math.imul(B,dt))|0)+((8191&amp;(i=(i=Math.imul(B,gt))+Math.imul(N,dt)|0))&lt;&lt;13)|0;return c=((a=Math.imul(N,gt))+(i&gt;&gt;&gt;13)|0)+(Ot&gt;&gt;&gt;26)|0,Ot&amp;=67108863,l[0]=mt,l[1]=vt,l[2]=yt,l[3]=xt,l[4]=bt,l[5]=_t,l[6]=wt,l[7]=Tt,l[8]=kt,l[9]=Mt,l[10]=At,l[11]=St,l[12]=Et,l[13]=Ct,l[14]=Lt,l[15]=It,l[16]=Pt,l[17]=zt,l[18]=Ot,0!==c&amp;&amp;(l[19]=c,r.length++),r};function d(t,e,r){return(new g).mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=h),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&amp;&amp;10===t.length?p(this,t,e):r&lt;63?h(this,t,e):r&lt;1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,a=0;a&lt;r.length-1;a++){var o=i;i=0;for(var s=67108863&amp;n,l=Math.min(a,e.length-1),c=Math.max(0,a-t.length+1);c&lt;=l;c++){var u=a-c,f=(0|t.words[u])*(0|e.words[c]),h=67108863&amp;f;s=67108863&amp;(h=h+s|0),i+=(o=(o=o+(f/67108864|0)|0)+(h&gt;&gt;&gt;26)|0)&gt;&gt;&gt;26,o&amp;=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,t,e):d(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n&lt;t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i&lt;e;i++)n|=(1&amp;t)&lt;&lt;e-i-1,t&gt;&gt;=1;return n},g.prototype.permute=function(t,e,r,n,i,a){for(var o=0;o&lt;a;o++)n[o]=e[t[o]],i[o]=r[t[o]]},g.prototype.transform=function(t,e,r,n,i,a){this.permute(a,t,e,r,n,i);for(var o=1;o&lt;i;o&lt;&lt;=1)for(var s=o&lt;&lt;1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u&lt;i;u+=s)for(var f=l,h=c,p=0;p&lt;o;p++){var d=r[u+p],g=n[u+p],m=r[u+p+o],v=n[u+p+o],y=f*m-h*v;v=f*v+h*m,m=y,r[u+p]=d+m,n[u+p]=g+v,r[u+p+o]=d-m,n[u+p+o]=g-v,p!==s&amp;&amp;(y=l*f-c*h,h=l*h+c*f,f=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&amp;r,i=0;for(r=r/2|0;r;r&gt;&gt;&gt;=1)i++;return 1&lt;&lt;i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r&lt;=1))for(var n=0;n&lt;r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n&lt;e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&amp;i,r=i&lt;67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var a=0,o=0;o&lt;e;o++)a+=0|t[o],r[2*o]=8191&amp;a,a&gt;&gt;&gt;=13,r[2*o+1]=8191&amp;a,a&gt;&gt;&gt;=13;for(o=2*e;o&lt;i;++o)r[o]=0;n(0===a),n(0==(-8192&amp;a))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,c,n),this.transform(o,a,s,l,n,i),this.transform(c,a,u,f,n,i);for(var p=0;p&lt;n;p++){var d=s[p]*u[p]-l[p]*f[p];l[p]=s[p]*f[p]+l[p]*u[p],s[p]=d}return this.conjugate(s,l,n),this.transform(s,l,h,a,n,i),this.conjugate(h,a,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},a.prototype.mul=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},a.prototype.mulf=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),d(this,t,e)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){n(&quot;number&quot;==typeof t),n(t&lt;67108864);for(var e=0,r=0;r&lt;this.length;r++){var i=(0|this.words[r])*t,a=(67108863&amp;i)+(67108863&amp;e);e&gt;&gt;=26,e+=i/67108864|0,e+=a&gt;&gt;&gt;26,this.words[r]=67108863&amp;a}return 0!==e&amp;&amp;(this.words[r]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r&lt;e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&amp;1&lt;&lt;i)&gt;&gt;&gt;i}return e}(t);if(0===e.length)return new a(1);for(var r=this,n=0;n&lt;e.length&amp;&amp;0===e[n];n++,r=r.sqr());if(++n&lt;e.length)for(var i=r.sqr();n&lt;e.length;n++,i=i.sqr())0!==e[n]&amp;&amp;(r=r.mul(i));return r},a.prototype.iushln=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e,r=t%26,i=(t-r)/26,a=67108863&gt;&gt;&gt;26-r&lt;&lt;26-r;if(0!==r){var o=0;for(e=0;e&lt;this.length;e++){var s=this.words[e]&amp;a,l=(0|this.words[e])-s&lt;&lt;r;this.words[e]=l|o,o=s&gt;&gt;&gt;26-r}o&amp;&amp;(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e&gt;=0;e--)this.words[e+i]=this.words[e];for(e=0;e&lt;i;e++)this.words[e]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,e,r){var i;n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0),i=e?(e-e%26)/26:0;var a=t%26,o=Math.min((t-a)/26,this.length),s=67108863^67108863&gt;&gt;&gt;a&lt;&lt;a,l=r;if(i-=o,i=Math.max(0,i),l){for(var c=0;c&lt;o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length&gt;o)for(this.length-=o,c=0;c&lt;this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c&gt;=0&amp;&amp;(0!==u||c&gt;=i);c--){var f=0|this.words[c];this.words[c]=u&lt;&lt;26-a|f&gt;&gt;&gt;a,u=f&amp;s}return l&amp;&amp;0!==u&amp;&amp;(l.words[l.length++]=u),0===this.length&amp;&amp;(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=t%26,r=(t-e)/26,i=1&lt;&lt;e;return!(this.length&lt;=r)&amp;&amp;!!(this.words[r]&amp;i)},a.prototype.imaskn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,&quot;imaskn works only with positive numbers&quot;),this.length&lt;=r)return this;if(0!==e&amp;&amp;r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863&gt;&gt;&gt;e&lt;&lt;e;this.words[this.length-1]&amp;=i}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return n(&quot;number&quot;==typeof t),n(t&lt;67108864),t&lt;0?this.isubn(-t):0!==this.negative?1===this.length&amp;&amp;(0|this.words[0])&lt;t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e&lt;this.length&amp;&amp;this.words[e]&gt;=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(n(&quot;number&quot;==typeof t),n(t&lt;67108864),t&lt;0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&amp;&amp;this.words[0]&lt;0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e&lt;this.length&amp;&amp;this.words[e]&lt;0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,e,r){var i,a,o=t.length+r;this._expand(o);var s=0;for(i=0;i&lt;t.length;i++){a=(0|this.words[i+r])+s;var l=(0|t.words[i])*e;s=((a-=67108863&amp;l)&gt;&gt;26)-(l/67108864|0),this.words[i+r]=67108863&amp;a}for(;i&lt;this.length-r;i++)s=(a=(0|this.words[i+r])+s)&gt;&gt;26,this.words[i+r]=67108863&amp;a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i&lt;this.length;i++)s=(a=-(0|this.words[i])+s)&gt;&gt;26,this.words[i]=67108863&amp;a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&amp;&amp;(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,l=n.length-i.length;if(&quot;mod&quot;!==e){(s=new a(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c&lt;s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(i,1,l);0===u.negative&amp;&amp;(n=u,s&amp;&amp;(s.words[l]=1));for(var f=l-1;f&gt;=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&amp;&amp;(s.words[f]=h)}return s&amp;&amp;s.strip(),n.strip(),&quot;div&quot;!==e&amp;&amp;0!==r&amp;&amp;n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&amp;&amp;0===t.negative?(s=this.neg().divmod(t,e),&quot;mod&quot;!==e&amp;&amp;(i=s.div.neg()),&quot;div&quot;!==e&amp;&amp;(o=s.mod.neg(),r&amp;&amp;0!==o.negative&amp;&amp;o.iadd(t)),{div:i,mod:o}):0===this.negative&amp;&amp;0!==t.negative?(s=this.divmod(t.neg(),e),&quot;mod&quot;!==e&amp;&amp;(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&amp;t.negative)?(s=this.neg().divmod(t.neg(),e),&quot;div&quot;!==e&amp;&amp;(o=s.mod.neg(),r&amp;&amp;0!==o.negative&amp;&amp;o.isub(t)),{div:s.div,mod:o}):t.length&gt;this.length||this.cmp(t)&lt;0?{div:new a(0),mod:this}:1===t.length?&quot;div&quot;===e?{div:this.divn(t.words[0]),mod:null}:&quot;mod&quot;===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,s},a.prototype.div=function(t){return this.divmod(t,&quot;div&quot;,!1).div},a.prototype.mod=function(t){return this.divmod(t,&quot;mod&quot;,!1).mod},a.prototype.umod=function(t){return this.divmod(t,&quot;mod&quot;,!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),a=r.cmp(n);return a&lt;0||1===i&amp;&amp;0===a?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){n(t&lt;=67108863);for(var e=(1&lt;&lt;26)%t,r=0,i=this.length-1;i&gt;=0;i--)r=(e*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){n(t&lt;=67108863);for(var e=0,r=this.length-1;r&gt;=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new a(1),o=new a(0),s=new a(0),l=new a(1),c=0;e.isEven()&amp;&amp;r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),f=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&amp;p)&amp;&amp;h&lt;26;++h,p&lt;&lt;=1);if(h&gt;0)for(e.iushrn(h);h-- &gt;0;)(i.isOdd()||o.isOdd())&amp;&amp;(i.iadd(u),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var d=0,g=1;0==(r.words[0]&amp;g)&amp;&amp;d&lt;26;++d,g&lt;&lt;=1);if(d&gt;0)for(r.iushrn(d);d-- &gt;0;)(s.isOdd()||l.isOdd())&amp;&amp;(s.iadd(u),l.isub(f)),s.iushrn(1),l.iushrn(1);e.cmp(r)&gt;=0?(e.isub(r),i.isub(s),o.isub(l)):(r.isub(e),s.isub(i),l.isub(o))}return{a:s,b:l,gcd:r.iushln(c)}},a.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new a(1),s=new a(0),l=r.clone();e.cmpn(1)&gt;0&amp;&amp;r.cmpn(1)&gt;0;){for(var c=0,u=1;0==(e.words[0]&amp;u)&amp;&amp;c&lt;26;++c,u&lt;&lt;=1);if(c&gt;0)for(e.iushrn(c);c-- &gt;0;)o.isOdd()&amp;&amp;o.iadd(l),o.iushrn(1);for(var f=0,h=1;0==(r.words[0]&amp;h)&amp;&amp;f&lt;26;++f,h&lt;&lt;=1);if(f&gt;0)for(r.iushrn(f);f-- &gt;0;)s.isOdd()&amp;&amp;s.iadd(l),s.iushrn(1);e.cmp(r)&gt;=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(i=0===e.cmpn(1)?o:s).cmpn(0)&lt;0&amp;&amp;i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&amp;&amp;r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i&lt;0){var a=e;e=r,r=a}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&amp;this.words[0])},a.prototype.isOdd=function(){return 1==(1&amp;this.words[0])},a.prototype.andln=function(t){return this.words[0]&amp;t},a.prototype.bincn=function(t){n(&quot;number&quot;==typeof t);var e=t%26,r=(t-e)/26,i=1&lt;&lt;e;if(this.length&lt;=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&amp;&amp;o&lt;this.length;o++){var s=0|this.words[o];a=(s+=a)&gt;&gt;&gt;26,s&amp;=67108863,this.words[o]=s}return 0!==a&amp;&amp;(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&amp;&amp;0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t&lt;0;if(0!==this.negative&amp;&amp;!r)return-1;if(0===this.negative&amp;&amp;r)return 1;if(this.strip(),this.length&gt;1)e=1;else{r&amp;&amp;(t=-t),n(t&lt;=67108863,&quot;Number is too big&quot;);var i=0|this.words[0];e=i===t?0:i&lt;t?-1:1}return 0!==this.negative?0|-e:e},a.prototype.cmp=function(t){if(0!==this.negative&amp;&amp;0===t.negative)return-1;if(0===this.negative&amp;&amp;0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},a.prototype.ucmp=function(t){if(this.length&gt;t.length)return 1;if(this.length&lt;t.length)return-1;for(var e=0,r=this.length-1;r&gt;=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n&lt;i?e=-1:n&gt;i&amp;&amp;(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)&gt;=0},a.prototype.gte=function(t){return this.cmp(t)&gt;=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)&lt;=0},a.prototype.lte=function(t){return this.cmp(t)&lt;=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new w(t)},a.prototype.toRed=function(t){return n(!this.red,&quot;Already a number in reduction context&quot;),n(0===this.negative,&quot;red works only with positives&quot;),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return n(this.red,&quot;fromRed works only with numbers in reduction context&quot;),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return n(!this.red,&quot;Already a number in reduction context&quot;),this._forceRed(t)},a.prototype.redAdd=function(t){return n(this.red,&quot;redAdd works only with red numbers&quot;),this.red.add(this,t)},a.prototype.redIAdd=function(t){return n(this.red,&quot;redIAdd works only with red numbers&quot;),this.red.iadd(this,t)},a.prototype.redSub=function(t){return n(this.red,&quot;redSub works only with red numbers&quot;),this.red.sub(this,t)},a.prototype.redISub=function(t){return n(this.red,&quot;redISub works only with red numbers&quot;),this.red.isub(this,t)},a.prototype.redShl=function(t){return n(this.red,&quot;redShl works only with red numbers&quot;),this.red.shl(this,t)},a.prototype.redMul=function(t){return n(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return n(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return n(this.red,&quot;redSqr works only with red numbers&quot;),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,&quot;redISqr works only with red numbers&quot;),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,&quot;redSqrt works only with red numbers&quot;),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,&quot;redInvm works only with red numbers&quot;),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,&quot;redNeg works only with red numbers&quot;),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return n(this.red&amp;&amp;!t.red,&quot;redPow(normalNum)&quot;),this.red._verify1(this),this.red.pow(this,t)};var m={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,&quot;k256&quot;,&quot;ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f&quot;)}function x(){v.call(this,&quot;p224&quot;,&quot;ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001&quot;)}function b(){v.call(this,&quot;p192&quot;,&quot;ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff&quot;)}function _(){v.call(this,&quot;25519&quot;,&quot;7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed&quot;)}function w(t){if(&quot;string&quot;==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),&quot;modulus must be greater than 1&quot;),this.m=t,this.prime=null}function T(t){w.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&amp;&amp;(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e&gt;this.n);var n=e&lt;this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n&gt;0?r.isub(this.p):r.strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(y,v),y.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n&lt;r;n++)e.words[n]=t.words[n];if(e.length=r,t.length&lt;=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&amp;i,n=10;n&lt;t.length;n++){var a=0|t.words[n];t.words[n-10]=(4194303&amp;a)&lt;&lt;4|i&gt;&gt;&gt;22,i=a}i&gt;&gt;&gt;=22,t.words[n-10]=i,0===i&amp;&amp;t.length&gt;10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r&lt;t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&amp;e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&amp;&amp;(t.length--,0===t.words[t.length-1]&amp;&amp;t.length--),t},i(x,v),i(b,v),i(_,v),_.prototype.imulK=function(t){for(var e=0,r=0;r&lt;t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&amp;n;n&gt;&gt;&gt;=26,t.words[r]=i,e=n}return 0!==e&amp;&amp;(t.words[t.length++]=e),t},a._prime=function(t){if(m[t])return m[t];var e;if(&quot;k256&quot;===t)e=new y;else if(&quot;p224&quot;===t)e=new x;else if(&quot;p192&quot;===t)e=new b;else{if(&quot;p25519&quot;!==t)throw new Error(&quot;Unknown prime &quot;+t);e=new _}return m[t]=e,e},w.prototype._verify1=function(t){n(0===t.negative,&quot;red works only with positives&quot;),n(t.red,&quot;red works only with red numbers&quot;)},w.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),&quot;red works only with positives&quot;),n(t.red&amp;&amp;t.red===e.red,&quot;red works only with red numbers&quot;)},w.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)&gt;=0&amp;&amp;r.isub(this.m),r._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)&gt;=0&amp;&amp;r.isub(this.m),r},w.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)&lt;0&amp;&amp;r.iadd(this.m),r._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)&lt;0&amp;&amp;r.iadd(this.m),r},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&amp;&amp;0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var f=this.pow(u,i),h=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),d=o;0!==p.cmp(s);){for(var g=p,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m&lt;d);var v=this.pow(f,new a(1).iushln(d-m-1));h=h.redMul(v),f=v.redSqr(),p=p.redMul(f),d=m}return h},w.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},w.prototype.pow=function(t,e){if(e.isZero())return new a(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=t;for(var n=2;n&lt;r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,s=0,l=e.bitLength()%26;for(0===l&amp;&amp;(l=26),n=e.length-1;n&gt;=0;n--){for(var c=e.words[n],u=l-1;u&gt;=0;u--){var f=c&gt;&gt;u&amp;1;i!==r[0]&amp;&amp;(i=this.sqr(i)),0!==f||0!==o?(o&lt;&lt;=1,o|=f,(4===++s||0===n&amp;&amp;0===u)&amp;&amp;(i=this.mul(i,r[o]),s=0,o=0)):s=0}l=26}return i},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new T(t)},i(T,w),T.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},T.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},T.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)&gt;=0?a=i.isub(this.m):i.cmpn(0)&lt;0&amp;&amp;(a=i.iadd(this.m)),a._forceRed(this)},T.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)&gt;=0?o=i.isub(this.m):i.cmpn(0)&lt;0&amp;&amp;(o=i.iadd(this.m)),o._forceRed(this)},T.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(&quot;undefined&quot;==typeof e||e,this)},{buffer:108}],100:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e,r,n,i=t.length,a=0;for(e=0;e&lt;i;++e)a+=t[e].length;var o=new Array(a),s=0;for(e=0;e&lt;i;++e){var l=t[e],c=l.length;for(r=0;r&lt;c;++r){var u=o[s++]=new Array(c-1),f=0;for(n=0;n&lt;c;++n)n!==r&amp;&amp;(u[f++]=l[n]);if(1&amp;r){var h=u[1];u[1]=u[0],u[0]=h}}}return o}},{}],101:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){switch(arguments.length){case 1:return f(t);case 2:return&quot;function&quot;==typeof e?c(t,t,e,!0):h(t,e);case 3:return c(t,e,r,!1);default:throw new Error(&quot;box-intersect: Invalid arguments&quot;)}};var n,i=t(&quot;typedarray-pool&quot;),a=t(&quot;./lib/sweep&quot;),o=t(&quot;./lib/intersect&quot;);function s(t,e){for(var r=0;r&lt;t;++r)if(!(e[r]&lt;=e[r+t]))return!0;return!1}function l(t,e,r,n){for(var i=0,a=0,o=0,l=t.length;o&lt;l;++o){var c=t[o];if(!s(e,c)){for(var u=0;u&lt;2*e;++u)r[i++]=c[u];n[a++]=o}}return a}function c(t,e,r,n){var s=t.length,c=e.length;if(!(s&lt;=0||c&lt;=0)){var u=t[0].length&gt;&gt;&gt;1;if(!(u&lt;=0)){var f,h=i.mallocDouble(2*u*s),p=i.mallocInt32(s);if((s=l(t,u,h,p))&gt;0){if(1===u&amp;&amp;n)a.init(s),f=a.sweepComplete(u,r,0,s,h,p,0,s,h,p);else{var d=i.mallocDouble(2*u*c),g=i.mallocInt32(c);(c=l(e,u,d,g))&gt;0&amp;&amp;(a.init(s+c),f=1===u?a.sweepBipartite(u,r,0,s,h,p,0,c,d,g):o(u,r,n,s,h,p,c,d,g),i.free(d),i.free(g))}i.free(h),i.free(p)}return f}}}function u(t,e){n.push([t,e])}function f(t){return n=[],c(t,t,u,!0),n}function h(t,e){return n=[],c(t,e,u,!1),n}},{&quot;./lib/intersect&quot;:103,&quot;./lib/sweep&quot;:107,&quot;typedarray-pool&quot;:595}],102:[function(t,e,r){&quot;use strict&quot;;var n=[&quot;d&quot;,&quot;ax&quot;,&quot;vv&quot;,&quot;rs&quot;,&quot;re&quot;,&quot;rb&quot;,&quot;ri&quot;,&quot;bs&quot;,&quot;be&quot;,&quot;bb&quot;,&quot;bi&quot;];function i(t){var e=&quot;bruteForce&quot;+(t?&quot;Full&quot;:&quot;Partial&quot;),r=[],i=n.slice();t||i.splice(3,0,&quot;fp&quot;);var a=[&quot;function &quot;+e+&quot;(&quot;+i.join()+&quot;){&quot;];function o(e,i){var o=function(t,e,r){var i=&quot;bruteForce&quot;+(t?&quot;Red&quot;:&quot;Blue&quot;)+(e?&quot;Flip&quot;:&quot;&quot;)+(r?&quot;Full&quot;:&quot;&quot;),a=[&quot;function &quot;,i,&quot;(&quot;,n.join(),&quot;){&quot;,&quot;var &quot;,&quot;es&quot;,&quot;=2*&quot;,&quot;d&quot;,&quot;;&quot;],o=&quot;for(var i=rs,rp=es*rs;i&lt;re;++i,rp+=es){var x0=rb[ax+rp],x1=rb[ax+rp+d],xi=ri[i];&quot;,s=&quot;for(var j=bs,bp=es*bs;j&lt;be;++j,bp+=es){var y0=bb[ax+bp],&quot;+(r?&quot;y1=bb[ax+bp+d],&quot;:&quot;&quot;)+&quot;yi=bi[j];&quot;;return t?a.push(o,&quot;Q&quot;,&quot;:&quot;,s):a.push(s,&quot;Q&quot;,&quot;:&quot;,o),r?a.push(&quot;if(y1&lt;x0||x1&lt;y0)continue;&quot;):e?a.push(&quot;if(y0&lt;=x0||x1&lt;y0)continue;&quot;):a.push(&quot;if(y0&lt;x0||x1&lt;y0)continue;&quot;),a.push(&quot;for(var k=ax+1;k&lt;d;++k){var r0=rb[k+rp],r1=rb[k+d+rp],b0=bb[k+bp],b1=bb[k+d+bp];if(r1&lt;b0||b1&lt;r0)continue Q;}var rv=vv(&quot;),e?a.push(&quot;yi,xi&quot;):a.push(&quot;xi,yi&quot;),a.push(&quot;);if(rv!==void 0)return rv;}}}&quot;),{name:i,code:a.join(&quot;&quot;)}}(e,i,t);r.push(o.code),a.push(&quot;return &quot;+o.name+&quot;(&quot;+n.join()+&quot;);&quot;)}a.push(&quot;if(re-rs&gt;be-bs){&quot;),t?(o(!0,!1),a.push(&quot;}else{&quot;),o(!1,!1)):(a.push(&quot;if(fp){&quot;),o(!0,!0),a.push(&quot;}else{&quot;),o(!0,!1),a.push(&quot;}}else{if(fp){&quot;),o(!1,!0),a.push(&quot;}else{&quot;),o(!1,!1),a.push(&quot;}&quot;)),a.push(&quot;}}return &quot;+e);var s=r.join(&quot;&quot;)+a.join(&quot;&quot;);return new Function(s)()}r.partial=i(!1),r.full=i(!0)},{}],103:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,u,w,T,k,M){!function(t,e){var r=8*i.log2(e+1)*(t+1)|0,a=i.nextPow2(6*r);v.length&lt;a&amp;&amp;(n.free(v),v=n.mallocInt32(a));var o=i.nextPow2(2*r);y.length&lt;o&amp;&amp;(n.free(y),y=n.mallocDouble(o))}(t,a+T);var A,S=0,E=2*t;x(S++,0,0,a,0,T,r?16:0,-1/0,1/0),r||x(S++,0,0,T,0,a,1,-1/0,1/0);for(;S&gt;0;){var C=6*(S-=1),L=v[C],I=v[C+1],P=v[C+2],z=v[C+3],O=v[C+4],D=v[C+5],R=2*S,F=y[R],B=y[R+1],N=1&amp;D,j=!!(16&amp;D),U=u,V=w,q=k,H=M;if(N&amp;&amp;(U=k,V=M,q=u,H=w),!(2&amp;D&amp;&amp;(P=p(t,L,I,P,U,V,B),I&gt;=P)||4&amp;D&amp;&amp;(I=d(t,L,I,P,U,V,F))&gt;=P)){var G=P-I,Y=O-z;if(j){if(t*G*(G+Y)&lt;1&lt;&lt;22){if(void 0!==(A=l.scanComplete(t,L,e,I,P,U,V,z,O,q,H)))return A;continue}}else{if(t*Math.min(G,Y)&lt;128){if(void 0!==(A=o(t,L,e,N,I,P,U,V,z,O,q,H)))return A;continue}if(t*G*Y&lt;1&lt;&lt;22){if(void 0!==(A=l.scanBipartite(t,L,e,N,I,P,U,V,z,O,q,H)))return A;continue}}var W=f(t,L,I,P,U,V,F,B);if(I&lt;W)if(t*(W-I)&lt;128){if(void 0!==(A=s(t,L+1,e,I,W,U,V,z,O,q,H)))return A}else if(L===t-2){if(void 0!==(A=N?l.sweepBipartite(t,e,z,O,q,H,I,W,U,V):l.sweepBipartite(t,e,I,W,U,V,z,O,q,H)))return A}else x(S++,L+1,I,W,z,O,N,-1/0,1/0),x(S++,L+1,z,O,I,W,1^N,-1/0,1/0);if(W&lt;P){var X=c(t,L,z,O,q,H),Z=q[E*X+L],J=h(t,L,X,O,q,H,Z);if(J&lt;O&amp;&amp;x(S++,L,W,P,J,O,(4|N)+(j?16:0),Z,B),z&lt;X&amp;&amp;x(S++,L,W,P,z,X,(2|N)+(j?16:0),F,Z),X+1===J){if(void 0!==(A=j?_(t,L,e,W,P,U,V,X,q,H[X]):b(t,L,e,N,W,P,U,V,X,q,H[X])))return A}else if(X&lt;J){var K;if(j){if(K=g(t,L,W,P,U,V,Z),W&lt;K){var Q=h(t,L,W,K,U,V,Z);if(L===t-2){if(W&lt;Q&amp;&amp;void 0!==(A=l.sweepComplete(t,e,W,Q,U,V,X,J,q,H)))return A;if(Q&lt;K&amp;&amp;void 0!==(A=l.sweepBipartite(t,e,Q,K,U,V,X,J,q,H)))return A}else W&lt;Q&amp;&amp;x(S++,L+1,W,Q,X,J,16,-1/0,1/0),Q&lt;K&amp;&amp;(x(S++,L+1,Q,K,X,J,0,-1/0,1/0),x(S++,L+1,X,J,Q,K,1,-1/0,1/0))}}else K=N?m(t,L,W,P,U,V,Z):g(t,L,W,P,U,V,Z),W&lt;K&amp;&amp;(L===t-2?A=N?l.sweepBipartite(t,e,X,J,q,H,W,K,U,V):l.sweepBipartite(t,e,W,K,U,V,X,J,q,H):(x(S++,L+1,W,K,X,J,N,-1/0,1/0),x(S++,L+1,X,J,W,K,1^N,-1/0,1/0)))}}}}};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;bit-twiddle&quot;),a=t(&quot;./brute&quot;),o=a.partial,s=a.full,l=t(&quot;./sweep&quot;),c=t(&quot;./median&quot;),u=t(&quot;./partition&quot;),f=u(&quot;!(lo&gt;=p0)&amp;&amp;!(p1&gt;=hi)&quot;,[&quot;p0&quot;,&quot;p1&quot;]),h=u(&quot;lo===p0&quot;,[&quot;p0&quot;]),p=u(&quot;lo&lt;p0&quot;,[&quot;p0&quot;]),d=u(&quot;hi&lt;=p0&quot;,[&quot;p0&quot;]),g=u(&quot;lo&lt;=p0&amp;&amp;p0&lt;=hi&quot;,[&quot;p0&quot;]),m=u(&quot;lo&lt;p0&amp;&amp;p0&lt;=hi&quot;,[&quot;p0&quot;]),v=n.mallocInt32(1024),y=n.mallocDouble(1024);function x(t,e,r,n,i,a,o,s,l){var c=6*t;v[c]=e,v[c+1]=r,v[c+2]=n,v[c+3]=i,v[c+4]=a,v[c+5]=o;var u=2*t;y[u]=s,y[u+1]=l}function b(t,e,r,n,i,a,o,s,l,c,u){var f=2*t,h=l*f,p=c[h+e];t:for(var d=i,g=i*f;d&lt;a;++d,g+=f){var m=o[g+e],v=o[g+e+t];if(!(p&lt;m||v&lt;p)&amp;&amp;(!n||p!==m)){for(var y,x=s[d],b=e+1;b&lt;t;++b){m=o[g+b],v=o[g+b+t];var _=c[h+b],w=c[h+b+t];if(v&lt;_||w&lt;m)continue t}if(void 0!==(y=n?r(u,x):r(x,u)))return y}}}function _(t,e,r,n,i,a,o,s,l,c){var u=2*t,f=s*u,h=l[f+e];t:for(var p=n,d=n*u;p&lt;i;++p,d+=u){var g=o[p];if(g!==c){var m=a[d+e],v=a[d+e+t];if(!(h&lt;m||v&lt;h)){for(var y=e+1;y&lt;t;++y){m=a[d+y],v=a[d+y+t];var x=l[f+y],b=l[f+y+t];if(v&lt;x||b&lt;m)continue t}var _=r(g,c);if(void 0!==_)return _}}}}},{&quot;./brute&quot;:102,&quot;./median&quot;:104,&quot;./partition&quot;:105,&quot;./sweep&quot;:107,&quot;bit-twiddle&quot;:97,&quot;typedarray-pool&quot;:595}],104:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,o,s){if(a&lt;=r+1)return r;var l=r,c=a,u=a+r&gt;&gt;&gt;1,f=2*t,h=u,p=o[f*u+e];for(;l&lt;c;){if(c-l&lt;8){i(t,e,l,c,o,s),p=o[f*u+e];break}var d=c-l,g=Math.random()*d+l|0,m=o[f*g+e],v=Math.random()*d+l|0,y=o[f*v+e],x=Math.random()*d+l|0,b=o[f*x+e];m&lt;=y?b&gt;=y?(h=v,p=y):m&gt;=b?(h=g,p=m):(h=x,p=b):y&gt;=b?(h=v,p=y):b&gt;=m?(h=g,p=m):(h=x,p=b);for(var _=f*(c-1),w=f*h,T=0;T&lt;f;++T,++_,++w){var k=o[_];o[_]=o[w],o[w]=k}var M=s[c-1];s[c-1]=s[h],s[h]=M,h=n(t,e,l,c-1,o,s,p);for(_=f*(c-1),w=f*h,T=0;T&lt;f;++T,++_,++w){k=o[_];o[_]=o[w],o[w]=k}M=s[c-1];if(s[c-1]=s[h],s[h]=M,u&lt;h){for(c=h-1;l&lt;c&amp;&amp;o[f*(c-1)+e]===p;)c-=1;c+=1}else{if(!(h&lt;u))break;for(l=h+1;l&lt;c&amp;&amp;o[f*l+e]===p;)l+=1}}return n(t,e,r,u,o,s,o[f*u+e])};var n=t(&quot;./partition&quot;)(&quot;lo&lt;p0&quot;,[&quot;p0&quot;]);function i(t,e,r,n,i,a){for(var o=2*t,s=o*(r+1)+e,l=r+1;l&lt;n;++l,s+=o)for(var c=i[s],u=l,f=o*(l-1);u&gt;r&amp;&amp;i[f+e]&gt;c;--u,f-=o){for(var h=f,p=f+o,d=0;d&lt;o;++d,++h,++p){var g=i[h];i[h]=i[p],i[p]=g}var m=a[u];a[u]=a[u-1],a[u-1]=m}}},{&quot;./partition&quot;:105}],105:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=&quot;abcdef&quot;.split(&quot;&quot;).concat(e),n=[];t.indexOf(&quot;lo&quot;)&gt;=0&amp;&amp;n.push(&quot;lo=e[k+n]&quot;);t.indexOf(&quot;hi&quot;)&gt;=0&amp;&amp;n.push(&quot;hi=e[k+o]&quot;);return r.push(&quot;for(var j=2*a,k=j*c,l=k,m=c,n=b,o=a+b,p=c;d&gt;p;++p,k+=j){var _;if($)if(m===p)m+=1,l+=j;else{for(var s=0;j&gt;s;++s){var t=e[k+s];e[k+s]=e[l],e[l++]=t}var u=f[p];f[p]=f[m],f[m++]=u}}return m&quot;.replace(&quot;_&quot;,n.join()).replace(&quot;$&quot;,t)),Function.apply(void 0,r)}},{}],106:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e&lt;=128?n(0,e-1,t):function t(e,r,u){var f=(r-e+1)/6|0,h=e+f,p=r-f,d=e+r&gt;&gt;1,g=d-f,m=d+f,v=h,y=g,x=d,b=m,_=p,w=e+1,T=r-1,k=0;l(v,y,u)&amp;&amp;(k=v,v=y,y=k);l(b,_,u)&amp;&amp;(k=b,b=_,_=k);l(v,x,u)&amp;&amp;(k=v,v=x,x=k);l(y,x,u)&amp;&amp;(k=y,y=x,x=k);l(v,b,u)&amp;&amp;(k=v,v=b,b=k);l(x,b,u)&amp;&amp;(k=x,x=b,b=k);l(y,_,u)&amp;&amp;(k=y,y=_,_=k);l(y,x,u)&amp;&amp;(k=y,y=x,x=k);l(b,_,u)&amp;&amp;(k=b,b=_,_=k);for(var M=u[2*y],A=u[2*y+1],S=u[2*b],E=u[2*b+1],C=2*v,L=2*x,I=2*_,P=2*h,z=2*d,O=2*p,D=0;D&lt;2;++D){var R=u[C+D],F=u[L+D],B=u[I+D];u[P+D]=R,u[z+D]=F,u[O+D]=B}a(g,e,u),a(m,r,u);for(var N=w;N&lt;=T;++N)if(c(N,M,A,u))N!==w&amp;&amp;i(N,w,u),++w;else if(!c(N,S,E,u))for(;;){if(c(T,S,E,u)){c(T,M,A,u)?(o(N,w,T,u),++w,--T):(i(N,T,u),--T);break}if(--T&lt;N)break}s(e,w-1,M,A,u),s(r,T+1,S,E,u),w-2-e&lt;=32?n(e,w-2,u):t(e,w-2,u);r-(T+2)&lt;=32?n(T+2,r,u):t(T+2,r,u);T-w&lt;=32?n(w,T,u):t(w,T,u)}(0,e-1,t)};function n(t,e,r){for(var n=2*(t+1),i=t+1;i&lt;=e;++i){for(var a=r[n++],o=r[n++],s=i,l=n-2;s-- &gt;t;){var c=r[l-2],u=r[l-1];if(c&lt;a)break;if(c===a&amp;&amp;u&lt;o)break;r[l]=c,r[l+1]=u,l-=2}r[l]=a,r[l+1]=o}}function i(t,e,r){e*=2;var n=r[t*=2],i=r[t+1];r[t]=r[e],r[t+1]=r[e+1],r[e]=n,r[e+1]=i}function a(t,e,r){e*=2,r[t*=2]=r[e],r[t+1]=r[e+1]}function o(t,e,r,n){e*=2,r*=2;var i=n[t*=2],a=n[t+1];n[t]=n[e],n[t+1]=n[e+1],n[e]=n[r],n[e+1]=n[r+1],n[r]=i,n[r+1]=a}function s(t,e,r,n,i){e*=2,i[t*=2]=i[e],i[e]=r,i[t+1]=i[e+1],i[e+1]=n}function l(t,e,r){e*=2;var n=r[t*=2],i=r[e];return!(n&lt;i)&amp;&amp;(n!==i||r[t+1]&gt;r[e+1])}function c(t,e,r,n){var i=n[t*=2];return i&lt;e||i===e&amp;&amp;n[t+1]&lt;r}},{}],107:[function(t,e,r){&quot;use strict&quot;;e.exports={init:function(t){var e=i.nextPow2(t);o.length&lt;e&amp;&amp;(n.free(o),o=n.mallocInt32(e));s.length&lt;e&amp;&amp;(n.free(s),s=n.mallocInt32(e));l.length&lt;e&amp;&amp;(n.free(l),l=n.mallocInt32(e));c.length&lt;e&amp;&amp;(n.free(c),c=n.mallocInt32(e));u.length&lt;e&amp;&amp;(n.free(u),u=n.mallocInt32(e));f.length&lt;e&amp;&amp;(n.free(f),f=n.mallocInt32(e));var r=8*e;h.length&lt;r&amp;&amp;(n.free(h),h=n.mallocDouble(r))},sweepBipartite:function(t,e,r,n,i,u,f,g,m,v){for(var y=0,x=2*t,b=t-1,_=x-1,w=r;w&lt;n;++w){var T=u[w],k=x*w;h[y++]=i[k+b],h[y++]=-(T+1),h[y++]=i[k+_],h[y++]=T}for(w=f;w&lt;g;++w){T=v[w]+(1&lt;&lt;28);var M=x*w;h[y++]=m[M+b],h[y++]=-T,h[y++]=m[M+_],h[y++]=T}var A=y&gt;&gt;&gt;1;a(h,A);var S=0,E=0;for(w=0;w&lt;A;++w){var C=0|h[2*w+1];if(C&gt;=1&lt;&lt;28)p(l,c,E--,C=C-(1&lt;&lt;28)|0);else if(C&gt;=0)p(o,s,S--,C);else if(C&lt;=-(1&lt;&lt;28)){C=-C-(1&lt;&lt;28)|0;for(var L=0;L&lt;S;++L){if(void 0!==(I=e(o[L],C)))return I}d(l,c,E++,C)}else{C=-C-1|0;for(L=0;L&lt;E;++L){var I;if(void 0!==(I=e(C,l[L])))return I}d(o,s,S++,C)}}},sweepComplete:function(t,e,r,n,i,g,m,v,y,x){for(var b=0,_=2*t,w=t-1,T=_-1,k=r;k&lt;n;++k){var M=g[k]+1&lt;&lt;1,A=_*k;h[b++]=i[A+w],h[b++]=-M,h[b++]=i[A+T],h[b++]=M}for(k=m;k&lt;v;++k){M=x[k]+1&lt;&lt;1;var S=_*k;h[b++]=y[S+w],h[b++]=1|-M,h[b++]=y[S+T],h[b++]=1|M}var E=b&gt;&gt;&gt;1;a(h,E);var C=0,L=0,I=0;for(k=0;k&lt;E;++k){var P=0|h[2*k+1],z=1&amp;P;if(k&lt;E-1&amp;&amp;P&gt;&gt;1==h[2*k+3]&gt;&gt;1&amp;&amp;(z=2,k+=1),P&lt;0){for(var O=-(P&gt;&gt;1)-1,D=0;D&lt;I;++D){if(void 0!==(R=e(u[D],O)))return R}if(0!==z)for(D=0;D&lt;C;++D){if(void 0!==(R=e(o[D],O)))return R}if(1!==z)for(D=0;D&lt;L;++D){var R;if(void 0!==(R=e(l[D],O)))return R}0===z?d(o,s,C++,O):1===z?d(l,c,L++,O):2===z&amp;&amp;d(u,f,I++,O)}else{O=(P&gt;&gt;1)-1;0===z?p(o,s,C--,O):1===z?p(l,c,L--,O):2===z&amp;&amp;p(u,f,I--,O)}}},scanBipartite:function(t,e,r,n,i,l,c,u,f,g,m,v){var y=0,x=2*t,b=e,_=e+t,w=1,T=1;n?T=1&lt;&lt;28:w=1&lt;&lt;28;for(var k=i;k&lt;l;++k){var M=k+w,A=x*k;h[y++]=c[A+b],h[y++]=-M,h[y++]=c[A+_],h[y++]=M}for(k=f;k&lt;g;++k){M=k+T;var S=x*k;h[y++]=m[S+b],h[y++]=-M}var E=y&gt;&gt;&gt;1;a(h,E);var C=0;for(k=0;k&lt;E;++k){var L=0|h[2*k+1];if(L&lt;0){var I=!1;if((M=-L)&gt;=1&lt;&lt;28?(I=!n,M-=1&lt;&lt;28):(I=!!n,M-=1),I)d(o,s,C++,M);else{var P=v[M],z=x*M,O=m[z+e+1],D=m[z+e+1+t];t:for(var R=0;R&lt;C;++R){var F=o[R],B=x*F;if(!(D&lt;c[B+e+1]||c[B+e+1+t]&lt;O)){for(var N=e+2;N&lt;t;++N)if(m[z+N+t]&lt;c[B+N]||c[B+N+t]&lt;m[z+N])continue t;var j,U=u[F];if(void 0!==(j=n?r(P,U):r(U,P)))return j}}}}else p(o,s,C--,L-w)}},scanComplete:function(t,e,r,n,i,s,l,c,u,f,p){for(var d=0,g=2*t,m=e,v=e+t,y=n;y&lt;i;++y){var x=y+(1&lt;&lt;28),b=g*y;h[d++]=s[b+m],h[d++]=-x,h[d++]=s[b+v],h[d++]=x}for(y=c;y&lt;u;++y){x=y+1;var _=g*y;h[d++]=f[_+m],h[d++]=-x}var w=d&gt;&gt;&gt;1;a(h,w);var T=0;for(y=0;y&lt;w;++y){var k=0|h[2*y+1];if(k&lt;0){if((x=-k)&gt;=1&lt;&lt;28)o[T++]=x-(1&lt;&lt;28);else{var M=p[x-=1],A=g*x,S=f[A+e+1],E=f[A+e+1+t];t:for(var C=0;C&lt;T;++C){var L=o[C],I=l[L];if(I===M)break;var P=g*L;if(!(E&lt;s[P+e+1]||s[P+e+1+t]&lt;S)){for(var z=e+2;z&lt;t;++z)if(f[A+z+t]&lt;s[P+z]||s[P+z+t]&lt;f[A+z])continue t;var O=r(I,M);if(void 0!==O)return O}}}}else{for(x=k-(1&lt;&lt;28),C=T-1;C&gt;=0;--C)if(o[C]===x){for(z=C+1;z&lt;T;++z)o[z-1]=o[z];break}--T}}}};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;bit-twiddle&quot;),a=t(&quot;./sort&quot;),o=n.mallocInt32(1024),s=n.mallocInt32(1024),l=n.mallocInt32(1024),c=n.mallocInt32(1024),u=n.mallocInt32(1024),f=n.mallocInt32(1024),h=n.mallocDouble(8192);function p(t,e,r,n){var i=e[n],a=t[r-1];t[i]=a,e[a]=i}function d(t,e,r,n){t[r]=n,e[n]=r}},{&quot;./sort&quot;:106,&quot;bit-twiddle&quot;:97,&quot;typedarray-pool&quot;:595}],108:[function(t,e,r){},{}],109:[function(t,e,r){arguments[4][108][0].apply(r,arguments)},{dup:108}],110:[function(t,e,r){&quot;use strict&quot;;var n,i=&quot;object&quot;==typeof Reflect?Reflect:null,a=i&amp;&amp;&quot;function&quot;==typeof i.apply?i.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=i&amp;&amp;&quot;function&quot;==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(t,e){return new Promise((function(r,n){function i(){void 0!==a&amp;&amp;t.removeListener(&quot;error&quot;,a),r([].slice.call(arguments))}var a;&quot;error&quot;!==e&amp;&amp;(a=function(r){t.removeListener(e,i),n(r)},t.once(&quot;error&quot;,a)),t.once(e,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(t){if(&quot;function&quot;!=typeof t)throw new TypeError('The &quot;listener&quot; argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function f(t,e,r,n){var i,a,o,s;if(c(r),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&amp;&amp;(t.emit(&quot;newListener&quot;,e,r.listener?r.listener:r),a=t._events),o=a[e]),void 0===o)o=a[e]=r,++t._eventsCount;else if(&quot;function&quot;==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=u(t))&gt;0&amp;&amp;o.length&gt;i&amp;&amp;!o.warned){o.warned=!0;var l=new Error(&quot;Possible EventEmitter memory leak detected. &quot;+o.length+&quot; &quot;+String(e)+&quot; listeners added. Use emitter.setMaxListeners() to increase limit&quot;);l.name=&quot;MaxListenersExceededWarning&quot;,l.emitter=t,l.type=e,l.count=o.length,s=l,console&amp;&amp;console.warn&amp;&amp;console.warn(s)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function d(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:&quot;function&quot;==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r&lt;e.length;++r)e[r]=t[r].listener||t[r];return e}(i):m(i,i.length)}function g(t){var e=this._events;if(void 0!==e){var r=e[t];if(&quot;function&quot;==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(t,e){for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n];return r}Object.defineProperty(s,&quot;defaultMaxListeners&quot;,{enumerable:!0,get:function(){return l},set:function(t){if(&quot;number&quot;!=typeof t||t&lt;0||o(t))throw new RangeError('The value of &quot;defaultMaxListeners&quot; is out of range. It must be a non-negative number. Received '+t+&quot;.&quot;);l=t}}),s.init=function(){void 0!==this._events&amp;&amp;this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(t){if(&quot;number&quot;!=typeof t||t&lt;0||o(t))throw new RangeError('The value of &quot;n&quot; is out of range. It must be a non-negative number. Received '+t+&quot;.&quot;);return this._maxListeners=t,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(t){for(var e=[],r=1;r&lt;arguments.length;r++)e.push(arguments[r]);var n=&quot;error&quot;===t,i=this._events;if(void 0!==i)n=n&amp;&amp;void 0===i.error;else if(!n)return!1;if(n){var o;if(e.length&gt;0&amp;&amp;(o=e[0]),o instanceof Error)throw o;var s=new Error(&quot;Unhandled error.&quot;+(o?&quot; (&quot;+o.message+&quot;)&quot;:&quot;&quot;));throw s.context=o,s}var l=i[t];if(void 0===l)return!1;if(&quot;function&quot;==typeof l)a(l,this,e);else{var c=l.length,u=m(l,c);for(r=0;r&lt;c;++r)a(u[r],this,e)}return!0},s.prototype.addListener=function(t,e){return f(this,t,e,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(t,e){return f(this,t,e,!0)},s.prototype.once=function(t,e){return c(e),this.on(t,p(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,p(this,t,e)),this},s.prototype.removeListener=function(t,e){var r,n,i,a,o;if(c(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,t,r.listener||e));else if(&quot;function&quot;!=typeof r){for(i=-1,a=r.length-1;a&gt;=0;a--)if(r[a]===e||r[a].listener===e){o=r[a].listener,i=a;break}if(i&lt;0)return this;0===i?r.shift():function(t,e){for(;e+1&lt;t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&amp;&amp;(n[t]=r[0]),void 0!==n.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,t,o||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&amp;&amp;(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,a=Object.keys(r);for(n=0;n&lt;a.length;++n)&quot;removeListener&quot;!==(i=a[n])&amp;&amp;this.removeAllListeners(i);return this.removeAllListeners(&quot;removeListener&quot;),this._events=Object.create(null),this._eventsCount=0,this}if(&quot;function&quot;==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n&gt;=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return&quot;function&quot;==typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount&gt;0?n(this._events):[]}},{}],111:[function(t,e,r){(function(e){(function(){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh &lt;https://feross.org&gt;
 * @license  MIT
 */
&quot;use strict&quot;;var e=t(&quot;base64-js&quot;),n=t(&quot;ieee754&quot;);r.Buffer=a,r.SlowBuffer=function(t){+t!=t&amp;&amp;(t=0);return a.alloc(+t)},r.INSPECT_MAX_BYTES=50;function i(t){if(t&gt;2147483647)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;');var e=new Uint8Array(t);return e.__proto__=a.prototype,e}function a(t,e,r){if(&quot;number&quot;==typeof t){if(&quot;string&quot;==typeof e)throw new TypeError('The &quot;string&quot; argument must be of type string. Received type number');return l(t)}return o(t,e,r)}function o(t,e,r){if(&quot;string&quot;==typeof t)return function(t,e){&quot;string&quot;==typeof e&amp;&amp;&quot;&quot;!==e||(e=&quot;utf8&quot;);if(!a.isEncoding(e))throw new TypeError(&quot;Unknown encoding: &quot;+e);var r=0|f(t,e),n=i(r),o=n.write(t,e);o!==r&amp;&amp;(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t);if(B(t,ArrayBuffer)||t&amp;&amp;B(t.buffer,ArrayBuffer))return function(t,e,r){if(e&lt;0||t.byteLength&lt;e)throw new RangeError('&quot;offset&quot; is outside of buffer bounds');if(t.byteLength&lt;e+(r||0))throw new RangeError('&quot;length&quot; is outside of buffer bounds');var n;n=void 0===e&amp;&amp;void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return n.__proto__=a.prototype,n}(t,e,r);if(&quot;number&quot;==typeof t)throw new TypeError('The &quot;value&quot; argument must not be of type number. Received type number');var n=t.valueOf&amp;&amp;t.valueOf();if(null!=n&amp;&amp;n!==t)return a.from(n,e,r);var o=function(t){if(a.isBuffer(t)){var e=0|u(t.length),r=i(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return&quot;number&quot;!=typeof t.length||N(t.length)?i(0):c(t);if(&quot;Buffer&quot;===t.type&amp;&amp;Array.isArray(t.data))return c(t.data)}(t);if(o)return o;if(&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.toPrimitive&amp;&amp;&quot;function&quot;==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive](&quot;string&quot;),e,r);throw new TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t)}function s(t){if(&quot;number&quot;!=typeof t)throw new TypeError('&quot;size&quot; argument must be of type number');if(t&lt;0)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;')}function l(t){return s(t),i(t&lt;0?0:0|u(t))}function c(t){for(var e=t.length&lt;0?0:0|u(t.length),r=i(e),n=0;n&lt;e;n+=1)r[n]=255&amp;t[n];return r}function u(t){if(t&gt;=2147483647)throw new RangeError(&quot;Attempt to allocate Buffer larger than maximum size: 0x&quot;+2147483647..toString(16)+&quot; bytes&quot;);return 0|t}function f(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||B(t,ArrayBuffer))return t.byteLength;if(&quot;string&quot;!=typeof t)throw new TypeError('The &quot;string&quot; argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length&gt;2&amp;&amp;!0===arguments[2];if(!n&amp;&amp;0===r)return 0;for(var i=!1;;)switch(e){case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:return r;case&quot;utf8&quot;:case&quot;utf-8&quot;:return D(t).length;case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return 2*r;case&quot;hex&quot;:return r&gt;&gt;&gt;1;case&quot;base64&quot;:return R(t).length;default:if(i)return n?-1:D(t).length;e=(&quot;&quot;+e).toLowerCase(),i=!0}}function h(t,e,r){var n=!1;if((void 0===e||e&lt;0)&amp;&amp;(e=0),e&gt;this.length)return&quot;&quot;;if((void 0===r||r&gt;this.length)&amp;&amp;(r=this.length),r&lt;=0)return&quot;&quot;;if((r&gt;&gt;&gt;=0)&lt;=(e&gt;&gt;&gt;=0))return&quot;&quot;;for(t||(t=&quot;utf8&quot;);;)switch(t){case&quot;hex&quot;:return A(this,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return T(this,e,r);case&quot;ascii&quot;:return k(this,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return M(this,e,r);case&quot;base64&quot;:return w(this,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return S(this,e,r);default:if(n)throw new TypeError(&quot;Unknown encoding: &quot;+t);t=(t+&quot;&quot;).toLowerCase(),n=!0}}function p(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,i){if(0===t.length)return-1;if(&quot;string&quot;==typeof r?(n=r,r=0):r&gt;2147483647?r=2147483647:r&lt;-2147483648&amp;&amp;(r=-2147483648),N(r=+r)&amp;&amp;(r=i?0:t.length-1),r&lt;0&amp;&amp;(r=t.length+r),r&gt;=t.length){if(i)return-1;r=t.length-1}else if(r&lt;0){if(!i)return-1;r=0}if(&quot;string&quot;==typeof e&amp;&amp;(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:g(t,e,r,n,i);if(&quot;number&quot;==typeof e)return e&amp;=255,&quot;function&quot;==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):g(t,[e],r,n,i);throw new TypeError(&quot;val must be string, number or Buffer&quot;)}function g(t,e,r,n,i){var a,o=1,s=t.length,l=e.length;if(void 0!==n&amp;&amp;(&quot;ucs2&quot;===(n=String(n).toLowerCase())||&quot;ucs-2&quot;===n||&quot;utf16le&quot;===n||&quot;utf-16le&quot;===n)){if(t.length&lt;2||e.length&lt;2)return-1;o=2,s/=2,l/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var u=-1;for(a=r;a&lt;s;a++)if(c(t,a)===c(e,-1===u?0:a-u)){if(-1===u&amp;&amp;(u=a),a-u+1===l)return u*o}else-1!==u&amp;&amp;(a-=a-u),u=-1}else for(r+l&gt;s&amp;&amp;(r=s-l),a=r;a&gt;=0;a--){for(var f=!0,h=0;h&lt;l;h++)if(c(t,a+h)!==c(e,h)){f=!1;break}if(f)return a}return-1}function m(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))&gt;i&amp;&amp;(n=i):n=i;var a=e.length;n&gt;a/2&amp;&amp;(n=a/2);for(var o=0;o&lt;n;++o){var s=parseInt(e.substr(2*o,2),16);if(N(s))return o;t[r+o]=s}return o}function v(t,e,r,n){return F(D(e,t.length-r),t,r,n)}function y(t,e,r,n){return F(function(t){for(var e=[],r=0;r&lt;t.length;++r)e.push(255&amp;t.charCodeAt(r));return e}(e),t,r,n)}function x(t,e,r,n){return y(t,e,r,n)}function b(t,e,r,n){return F(R(e),t,r,n)}function _(t,e,r,n){return F(function(t,e){for(var r,n,i,a=[],o=0;o&lt;t.length&amp;&amp;!((e-=2)&lt;0);++o)r=t.charCodeAt(o),n=r&gt;&gt;8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function w(t,r,n){return 0===r&amp;&amp;n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function T(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i&lt;r;){var a,o,s,l,c=t[i],u=null,f=c&gt;239?4:c&gt;223?3:c&gt;191?2:1;if(i+f&lt;=r)switch(f){case 1:c&lt;128&amp;&amp;(u=c);break;case 2:128==(192&amp;(a=t[i+1]))&amp;&amp;(l=(31&amp;c)&lt;&lt;6|63&amp;a)&gt;127&amp;&amp;(u=l);break;case 3:a=t[i+1],o=t[i+2],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;(l=(15&amp;c)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;o)&gt;2047&amp;&amp;(l&lt;55296||l&gt;57343)&amp;&amp;(u=l);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;128==(192&amp;s)&amp;&amp;(l=(15&amp;c)&lt;&lt;18|(63&amp;a)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;s)&gt;65535&amp;&amp;l&lt;1114112&amp;&amp;(u=l)}null===u?(u=65533,f=1):u&gt;65535&amp;&amp;(u-=65536,n.push(u&gt;&gt;&gt;10&amp;1023|55296),u=56320|1023&amp;u),n.push(u),i+=f}return function(t){var e=t.length;if(e&lt;=4096)return String.fromCharCode.apply(String,t);var r=&quot;&quot;,n=0;for(;n&lt;e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}r.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||&quot;undefined&quot;==typeof console||&quot;function&quot;!=typeof console.error||console.error(&quot;This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.&quot;),Object.defineProperty(a.prototype,&quot;parent&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,&quot;offset&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.species&amp;&amp;a[Symbol.species]===a&amp;&amp;Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(t,e,r){return o(t,e,r)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(t,e,r){return function(t,e,r){return s(t),t&lt;=0?i(t):void 0!==e?&quot;string&quot;==typeof r?i(t).fill(e,r):i(t).fill(e):i(t)}(t,e,r)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&amp;&amp;!0===t._isBuffer&amp;&amp;t!==a.prototype},a.compare=function(t,e){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),B(e,Uint8Array)&amp;&amp;(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError('The &quot;buf1&quot;, &quot;buf2&quot; arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i&lt;o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r&lt;n?-1:n&lt;r?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case&quot;hex&quot;:case&quot;utf8&quot;:case&quot;utf-8&quot;:case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:case&quot;base64&quot;:case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return!0;default:return!1}},a.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);var r;if(void 0===e)for(e=0,r=0;r&lt;t.length;++r)e+=t[r].length;var n=a.allocUnsafe(e),i=0;for(r=0;r&lt;t.length;++r){var o=t[r];if(B(o,Uint8Array)&amp;&amp;(o=a.from(o)),!a.isBuffer(o))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(&quot;Buffer size must be a multiple of 16-bits&quot;);for(var e=0;e&lt;t;e+=2)p(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(&quot;Buffer size must be a multiple of 32-bits&quot;);for(var e=0;e&lt;t;e+=4)p(this,e,e+3),p(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(&quot;Buffer size must be a multiple of 64-bits&quot;);for(var e=0;e&lt;t;e+=8)p(this,e,e+7),p(this,e+1,e+6),p(this,e+2,e+5),p(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?&quot;&quot;:0===arguments.length?T(this,0,t):h.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError(&quot;Argument must be a Buffer&quot;);return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t=&quot;&quot;,e=r.INSPECT_MAX_BYTES;return t=this.toString(&quot;hex&quot;,0,e).replace(/(.{2})/g,&quot;$1 &quot;).trim(),this.length&gt;e&amp;&amp;(t+=&quot; ... &quot;),&quot;&lt;Buffer &quot;+t+&quot;&gt;&quot;},a.prototype.compare=function(t,e,r,n,i){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The &quot;target&quot; argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&amp;&amp;(e=0),void 0===r&amp;&amp;(r=t?t.length:0),void 0===n&amp;&amp;(n=0),void 0===i&amp;&amp;(i=this.length),e&lt;0||r&gt;t.length||n&lt;0||i&gt;this.length)throw new RangeError(&quot;out of range index&quot;);if(n&gt;=i&amp;&amp;e&gt;=r)return 0;if(n&gt;=i)return-1;if(e&gt;=r)return 1;if(this===t)return 0;for(var o=(i&gt;&gt;&gt;=0)-(n&gt;&gt;&gt;=0),s=(r&gt;&gt;&gt;=0)-(e&gt;&gt;&gt;=0),l=Math.min(o,s),c=this.slice(n,i),u=t.slice(e,r),f=0;f&lt;l;++f)if(c[f]!==u[f]){o=c[f],s=u[f];break}return o&lt;s?-1:s&lt;o?1:0},a.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return d(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return d(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){if(void 0===e)n=&quot;utf8&quot;,r=this.length,e=0;else if(void 0===r&amp;&amp;&quot;string&quot;==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error(&quot;Buffer.write(string, encoding, offset[, length]) is no longer supported&quot;);e&gt;&gt;&gt;=0,isFinite(r)?(r&gt;&gt;&gt;=0,void 0===n&amp;&amp;(n=&quot;utf8&quot;)):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r&gt;i)&amp;&amp;(r=i),t.length&gt;0&amp;&amp;(r&lt;0||e&lt;0)||e&gt;this.length)throw new RangeError(&quot;Attempt to write outside buffer bounds&quot;);n||(n=&quot;utf8&quot;);for(var a=!1;;)switch(n){case&quot;hex&quot;:return m(this,t,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return v(this,t,e,r);case&quot;ascii&quot;:return y(this,t,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return x(this,t,e,r);case&quot;base64&quot;:return b(this,t,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return _(this,t,e,r);default:if(a)throw new TypeError(&quot;Unknown encoding: &quot;+n);n=(&quot;&quot;+n).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:&quot;Buffer&quot;,data:Array.prototype.slice.call(this._arr||this,0)}};function k(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(127&amp;t[i]);return n}function M(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(t[i]);return n}function A(t,e,r){var n=t.length;(!e||e&lt;0)&amp;&amp;(e=0),(!r||r&lt;0||r&gt;n)&amp;&amp;(r=n);for(var i=&quot;&quot;,a=e;a&lt;r;++a)i+=O(t[a]);return i}function S(t,e,r){for(var n=t.slice(e,r),i=&quot;&quot;,a=0;a&lt;n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function E(t,e,r){if(t%1!=0||t&lt;0)throw new RangeError(&quot;offset is not uint&quot;);if(t+e&gt;r)throw new RangeError(&quot;Trying to access beyond buffer length&quot;)}function C(t,e,r,n,i,o){if(!a.isBuffer(t))throw new TypeError('&quot;buffer&quot; argument must be a Buffer instance');if(e&gt;i||e&lt;o)throw new RangeError('&quot;value&quot; argument is out of bounds');if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;)}function L(t,e,r,n,i,a){if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;);if(r&lt;0)throw new RangeError(&quot;Index out of range&quot;)}function I(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||L(t,0,r,4),n.write(t,e,r,i,23,4),r+4}function P(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||L(t,0,r,8),n.write(t,e,r,i,52,8),r+8}a.prototype.slice=function(t,e){var r=this.length;(t=~~t)&lt;0?(t+=r)&lt;0&amp;&amp;(t=0):t&gt;r&amp;&amp;(t=r),(e=void 0===e?r:~~e)&lt;0?(e+=r)&lt;0&amp;&amp;(e=0):e&gt;r&amp;&amp;(e=r),e&lt;t&amp;&amp;(e=t);var n=this.subarray(t,e);return n.__proto__=a.prototype,n},a.prototype.readUIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n},a.prototype.readUIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t+--e],i=1;e&gt;0&amp;&amp;(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]|this[t+1]&lt;&lt;8},a.prototype.readUInt16BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]&lt;&lt;8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),(this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),16777216*this[t]+(this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n&gt;=(i*=128)&amp;&amp;(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n&gt;0&amp;&amp;(i*=256);)a+=this[t+--n]*i;return a&gt;=(i*=128)&amp;&amp;(a-=Math.pow(2,8*e)),a},a.prototype.readInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),128&amp;this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t]|this[t+1]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t+1]|this[t]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16|this[t+3]&lt;&lt;24},a.prototype.readInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]&lt;&lt;24|this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||C(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(i*=256);)this[e+a]=t/i&amp;255;return e+r},a.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||C(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&amp;t;--i&gt;=0&amp;&amp;(a*=256);)this[e+i]=t/a&amp;255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,1,255,0),this[e]=255&amp;t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,65535,0),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,65535,0),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,4294967295,0),this[e+3]=t&gt;&gt;&gt;24,this[e+2]=t&gt;&gt;&gt;16,this[e+1]=t&gt;&gt;&gt;8,this[e]=255&amp;t,e+4},a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,4294967295,0),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a-1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&amp;t;--a&gt;=0&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a+1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,1,127,-128),t&lt;0&amp;&amp;(t=255+t+1),this[e]=255&amp;t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,32767,-32768),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,32767,-32768),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,2147483647,-2147483648),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,this[e+2]=t&gt;&gt;&gt;16,this[e+3]=t&gt;&gt;&gt;24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,2147483647,-2147483648),t&lt;0&amp;&amp;(t=4294967295+t+1),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeFloatLE=function(t,e,r){return I(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return I(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return P(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return P(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw new TypeError(&quot;argument should be a Buffer&quot;);if(r||(r=0),n||0===n||(n=this.length),e&gt;=t.length&amp;&amp;(e=t.length),e||(e=0),n&gt;0&amp;&amp;n&lt;r&amp;&amp;(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e&lt;0)throw new RangeError(&quot;targetStart out of bounds&quot;);if(r&lt;0||r&gt;=this.length)throw new RangeError(&quot;Index out of range&quot;);if(n&lt;0)throw new RangeError(&quot;sourceEnd out of bounds&quot;);n&gt;this.length&amp;&amp;(n=this.length),t.length-e&lt;n-r&amp;&amp;(n=t.length-e+r);var i=n-r;if(this===t&amp;&amp;&quot;function&quot;==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&amp;&amp;r&lt;e&amp;&amp;e&lt;n)for(var o=i-1;o&gt;=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},a.prototype.fill=function(t,e,r,n){if(&quot;string&quot;==typeof t){if(&quot;string&quot;==typeof e?(n=e,e=0,r=this.length):&quot;string&quot;==typeof r&amp;&amp;(n=r,r=this.length),void 0!==n&amp;&amp;&quot;string&quot;!=typeof n)throw new TypeError(&quot;encoding must be a string&quot;);if(&quot;string&quot;==typeof n&amp;&amp;!a.isEncoding(n))throw new TypeError(&quot;Unknown encoding: &quot;+n);if(1===t.length){var i=t.charCodeAt(0);(&quot;utf8&quot;===n&amp;&amp;i&lt;128||&quot;latin1&quot;===n)&amp;&amp;(t=i)}}else&quot;number&quot;==typeof t&amp;&amp;(t&amp;=255);if(e&lt;0||this.length&lt;e||this.length&lt;r)throw new RangeError(&quot;Out of range index&quot;);if(r&lt;=e)return this;var o;if(e&gt;&gt;&gt;=0,r=void 0===r?this.length:r&gt;&gt;&gt;0,t||(t=0),&quot;number&quot;==typeof t)for(o=e;o&lt;r;++o)this[o]=t;else{var s=a.isBuffer(t)?t:a.from(t,n),l=s.length;if(0===l)throw new TypeError('The value &quot;'+t+'&quot; is invalid for argument &quot;value&quot;');for(o=0;o&lt;r-e;++o)this[o+e]=s[o%l]}return this};var z=/[^+/0-9A-Za-z-_]/g;function O(t){return t&lt;16?&quot;0&quot;+t.toString(16):t.toString(16)}function D(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o&lt;n;++o){if((r=t.charCodeAt(o))&gt;55295&amp;&amp;r&lt;57344){if(!i){if(r&gt;56319){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}if(o+1===n){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}i=r;continue}if(r&lt;56320){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189),i=r;continue}r=65536+(i-55296&lt;&lt;10|r-56320)}else i&amp;&amp;(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);if(i=null,r&lt;128){if((e-=1)&lt;0)break;a.push(r)}else if(r&lt;2048){if((e-=2)&lt;0)break;a.push(r&gt;&gt;6|192,63&amp;r|128)}else if(r&lt;65536){if((e-=3)&lt;0)break;a.push(r&gt;&gt;12|224,r&gt;&gt;6&amp;63|128,63&amp;r|128)}else{if(!(r&lt;1114112))throw new Error(&quot;Invalid code point&quot;);if((e-=4)&lt;0)break;a.push(r&gt;&gt;18|240,r&gt;&gt;12&amp;63|128,r&gt;&gt;6&amp;63|128,63&amp;r|128)}}return a}function R(t){return e.toByteArray(function(t){if((t=(t=t.split(&quot;=&quot;)[0]).trim().replace(z,&quot;&quot;)).length&lt;2)return&quot;&quot;;for(;t.length%4!=0;)t+=&quot;=&quot;;return t}(t))}function F(t,e,r,n){for(var i=0;i&lt;n&amp;&amp;!(i+r&gt;=e.length||i&gt;=t.length);++i)e[i+r]=t[i];return i}function B(t,e){return t instanceof e||null!=t&amp;&amp;null!=t.constructor&amp;&amp;null!=t.constructor.name&amp;&amp;t.constructor.name===e.name}function N(t){return t!=t}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;base64-js&quot;:79,buffer:111,ieee754:442}],112:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/monotone&quot;),i=t(&quot;./lib/triangulation&quot;),a=t(&quot;./lib/delaunay&quot;),o=t(&quot;./lib/filter&quot;);function s(t){return[Math.min(t[0],t[1]),Math.max(t[0],t[1])]}function l(t,e){return t[0]-e[0]||t[1]-e[1]}function c(t,e,r){return e in t?t[e]:r}e.exports=function(t,e,r){Array.isArray(e)?(r=r||{},e=e||[]):(r=e||{},e=[]);var u=!!c(r,&quot;delaunay&quot;,!0),f=!!c(r,&quot;interior&quot;,!0),h=!!c(r,&quot;exterior&quot;,!0),p=!!c(r,&quot;infinity&quot;,!1);if(!f&amp;&amp;!h||0===t.length)return[];var d=n(t,e);if(u||f!==h||p){for(var g=i(t.length,function(t){return t.map(s).sort(l)}(e)),m=0;m&lt;d.length;++m){var v=d[m];g.addTriangle(v[0],v[1],v[2])}return u&amp;&amp;a(t,g),h?f?p?o(g,0,p):g.cells():o(g,1,p):o(g,-1)}return d}},{&quot;./lib/delaunay&quot;:113,&quot;./lib/filter&quot;:114,&quot;./lib/monotone&quot;:115,&quot;./lib/triangulation&quot;:116}],113:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-in-sphere&quot;)[4];t(&quot;binary-search-bounds&quot;);function i(t,e,r,i,a,o){var s=e.opposite(i,a);if(!(s&lt;0)){if(a&lt;i){var l=i;i=a,a=l,l=o,o=s,s=l}e.isConstraint(i,a)||n(t[i],t[a],t[o],t[s])&lt;0&amp;&amp;r.push(i,a)}}e.exports=function(t,e){for(var r=[],a=t.length,o=e.stars,s=0;s&lt;a;++s)for(var l=o[s],c=1;c&lt;l.length;c+=2){if(!((p=l[c])&lt;s)&amp;&amp;!e.isConstraint(s,p)){for(var u=l[c-1],f=-1,h=1;h&lt;l.length;h+=2)if(l[h-1]===p){f=l[h];break}f&lt;0||n(t[s],t[p],t[u],t[f])&lt;0&amp;&amp;r.push(s,p)}}for(;r.length&gt;0;){for(var p=r.pop(),d=(s=r.pop(),u=-1,f=-1,l=o[s],1);d&lt;l.length;d+=2){var g=l[d-1],m=l[d];g===p?f=m:m===p&amp;&amp;(u=g)}u&lt;0||f&lt;0||(n(t[s],t[p],t[u],t[f])&gt;=0||(e.flip(s,p),i(t,e,r,u,s,f),i(t,e,r,s,f,u),i(t,e,r,f,p,u),i(t,e,r,p,u,f)))}}},{&quot;binary-search-bounds&quot;:96,&quot;robust-in-sphere&quot;:546}],114:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;binary-search-bounds&quot;);function a(t,e,r,n,i,a,o){this.cells=t,this.neighbor=e,this.flags=n,this.constraint=r,this.active=i,this.next=a,this.boundary=o}function o(t,e){return t[0]-e[0]||t[1]-e[1]||t[2]-e[2]}e.exports=function(t,e,r){var n=function(t,e){for(var r=t.cells(),n=r.length,i=0;i&lt;n;++i){var s=(v=r[i])[0],l=v[1],c=v[2];l&lt;c?l&lt;s&amp;&amp;(v[0]=l,v[1]=c,v[2]=s):c&lt;s&amp;&amp;(v[0]=c,v[1]=s,v[2]=l)}r.sort(o);var u=new Array(n);for(i=0;i&lt;u.length;++i)u[i]=0;var f=[],h=[],p=new Array(3*n),d=new Array(3*n),g=null;e&amp;&amp;(g=[]);var m=new a(r,p,d,u,f,h,g);for(i=0;i&lt;n;++i)for(var v=r[i],y=0;y&lt;3;++y){s=v[y],l=v[(y+1)%3];var x=p[3*i+y]=m.locate(l,s,t.opposite(l,s)),b=d[3*i+y]=t.isConstraint(s,l);x&lt;0&amp;&amp;(b?h.push(i):(f.push(i),u[i]=1),e&amp;&amp;g.push([l,s,-1]))}return m}(t,r);if(0===e)return r?n.cells.concat(n.boundary):n.cells;var i=1,s=n.active,l=n.next,c=n.flags,u=n.cells,f=n.constraint,h=n.neighbor;for(;s.length&gt;0||l.length&gt;0;){for(;s.length&gt;0;){var p=s.pop();if(c[p]!==-i){c[p]=i;u[p];for(var d=0;d&lt;3;++d){var g=h[3*p+d];g&gt;=0&amp;&amp;0===c[g]&amp;&amp;(f[3*p+d]?l.push(g):(s.push(g),c[g]=i))}}}var m=l;l=s,s=m,l.length=0,i=-i}var v=function(t,e,r){for(var n=0,i=0;i&lt;t.length;++i)e[i]===r&amp;&amp;(t[n++]=t[i]);return t.length=n,t}(u,c,e);if(r)return v.concat(n.boundary);return v},a.prototype.locate=(n=[0,0,0],function(t,e,r){var a=t,s=e,l=r;return e&lt;r?e&lt;t&amp;&amp;(a=e,s=r,l=t):r&lt;t&amp;&amp;(a=r,s=t,l=e),a&lt;0?-1:(n[0]=a,n[1]=s,n[2]=l,i.eq(this.cells,n,o))})},{&quot;binary-search-bounds&quot;:96}],115:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;robust-orientation&quot;)[3];function a(t,e,r,n,i){this.a=t,this.b=e,this.idx=r,this.lowerIds=n,this.upperIds=i}function o(t,e,r,n){this.a=t,this.b=e,this.type=r,this.idx=n}function s(t,e){var r=t.a[0]-e.a[0]||t.a[1]-e.a[1]||t.type-e.type;return r||(0!==t.type&amp;&amp;(r=i(t.a,t.b,e.b))?r:t.idx-e.idx)}function l(t,e){return i(t.a,t.b,e)}function c(t,e,r,a,o){for(var s=n.lt(e,a,l),c=n.gt(e,a,l),u=s;u&lt;c;++u){for(var f=e[u],h=f.lowerIds,p=h.length;p&gt;1&amp;&amp;i(r[h[p-2]],r[h[p-1]],a)&gt;0;)t.push([h[p-1],h[p-2],o]),p-=1;h.length=p,h.push(o);var d=f.upperIds;for(p=d.length;p&gt;1&amp;&amp;i(r[d[p-2]],r[d[p-1]],a)&lt;0;)t.push([d[p-2],d[p-1],o]),p-=1;d.length=p,d.push(o)}}function u(t,e){var r;return(r=t.a[0]&lt;e.a[0]?i(t.a,t.b,e.a):i(e.b,e.a,t.a))?r:(r=e.b[0]&lt;t.b[0]?i(t.a,t.b,e.b):i(e.b,e.a,t.b))||t.idx-e.idx}function f(t,e,r){var i=n.le(t,r,u),o=t[i],s=o.upperIds,l=s[s.length-1];o.upperIds=[l],t.splice(i+1,0,new a(r.a,r.b,r.idx,[l],s))}function h(t,e,r){var i=r.a;r.a=r.b,r.b=i;var a=n.eq(t,r,u),o=t[a];t[a-1].upperIds=o.upperIds,t.splice(a,1)}e.exports=function(t,e){for(var r=t.length,n=e.length,i=[],l=0;l&lt;r;++l)i.push(new o(t[l],null,0,l));for(l=0;l&lt;n;++l){var u=e[l],p=t[u[0]],d=t[u[1]];p[0]&lt;d[0]?i.push(new o(p,d,2,l),new o(d,p,1,l)):p[0]&gt;d[0]&amp;&amp;i.push(new o(d,p,2,l),new o(p,d,1,l))}i.sort(s);for(var g=i[0].a[0]-(1+Math.abs(i[0].a[0]))*Math.pow(2,-52),m=[new a([g,1],[g,0],-1,[],[],[],[])],v=[],y=(l=0,i.length);l&lt;y;++l){var x=i[l],b=x.type;0===b?c(v,m,t,x.a,x.idx):2===b?f(m,t,x):h(m,t,x)}return v}},{&quot;binary-search-bounds&quot;:96,&quot;robust-orientation&quot;:548}],116:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;);function i(t,e){this.stars=t,this.edges=e}e.exports=function(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=[];return new i(r,e)};var a=i.prototype;function o(t,e,r){for(var n=1,i=t.length;n&lt;i;n+=2)if(t[n-1]===e&amp;&amp;t[n]===r)return t[n-1]=t[i-2],t[n]=t[i-1],void(t.length=i-2)}a.isConstraint=function(){var t=[0,0];function e(t,e){return t[0]-e[0]||t[1]-e[1]}return function(r,i){return t[0]=Math.min(r,i),t[1]=Math.max(r,i),n.eq(this.edges,t,e)&gt;=0}}(),a.removeTriangle=function(t,e,r){var n=this.stars;o(n[t],e,r),o(n[e],r,t),o(n[r],t,e)},a.addTriangle=function(t,e,r){var n=this.stars;n[t].push(e,r),n[e].push(r,t),n[r].push(t,e)},a.opposite=function(t,e){for(var r=this.stars[e],n=1,i=r.length;n&lt;i;n+=2)if(r[n]===t)return r[n-1];return-1},a.flip=function(t,e){var r=this.opposite(t,e),n=this.opposite(e,t);this.removeTriangle(t,e,r),this.removeTriangle(e,t,n),this.addTriangle(t,n,r),this.addTriangle(e,r,n)},a.edges=function(){for(var t=this.stars,e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;a+=2)e.push([i[a],i[a+1]]);return e},a.cells=function(){for(var t=this.stars,e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;a+=2){var s=i[a],l=i[a+1];r&lt;Math.min(s,l)&amp;&amp;e.push([r,s,l])}return e}},{&quot;binary-search-bounds&quot;:96}],117:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=1,r=1;r&lt;t.length;++r)for(var n=0;n&lt;r;++n)if(t[r]&lt;t[n])e=-e;else if(t[n]===t[r])return 0;return e}},{}],118:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;dup&quot;),i=t(&quot;robust-linear-solve&quot;);function a(t,e){for(var r=0,n=t.length,i=0;i&lt;n;++i)r+=t[i]*e[i];return r}function o(t){var e=t.length;if(0===e)return[];t[0].length;var r=n([t.length+1,t.length+1],1),o=n([t.length+1],1);r[e][e]=0;for(var s=0;s&lt;e;++s){for(var l=0;l&lt;=s;++l)r[l][s]=r[s][l]=2*a(t[s],t[l]);o[s]=a(t[s],t[s])}var c=i(r,o),u=0,f=c[e+1];for(s=0;s&lt;f.length;++s)u+=f[s];var h=new Array(e);for(s=0;s&lt;e;++s){f=c[s];var p=0;for(l=0;l&lt;f.length;++l)p+=f[l];h[s]=p/u}return h}function s(t){if(0===t.length)return[];for(var e=t[0].length,r=n([e]),i=o(t),a=0;a&lt;t.length;++a)for(var s=0;s&lt;e;++s)r[s]+=t[a][s]*i[a];return r}s.barycenetric=o,e.exports=s},{dup:176,&quot;robust-linear-solve&quot;:547}],119:[function(t,e,r){e.exports=function(t){for(var e=n(t),r=0,i=0;i&lt;t.length;++i)for(var a=t[i],o=0;o&lt;e.length;++o)r+=Math.pow(a[o]-e[o],2);return Math.sqrt(r/t.length)};var n=t(&quot;circumcenter&quot;)},{circumcenter:118}],120:[function(t,e,r){e.exports=function(t,e,r){return e&lt;r?t&lt;e?e:t&gt;r?r:t:t&lt;r?r:t&gt;e?e:t}},{}],121:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n;if(r){n=e;for(var i=new Array(e.length),a=0;a&lt;e.length;++a){var o=e[a];i[a]=[o[0],o[1],r[a]]}e=i}var s=function(t,e,r){var n=d(t,[],p(t));return v(e,n,r),!!n}(t,e,!!r);for(;y(t,e,!!r);)s=!0;if(r&amp;&amp;s){n.length=0,r.length=0;for(a=0;a&lt;e.length;++a){o=e[a];n.push([o[0],o[1]]),r.push(o[2])}}return s};var n=t(&quot;union-find&quot;),i=t(&quot;box-intersect&quot;),a=t(&quot;robust-segment-intersect&quot;),o=t(&quot;big-rat&quot;),s=t(&quot;big-rat/cmp&quot;),l=t(&quot;big-rat/to-float&quot;),c=t(&quot;rat-vec&quot;),u=t(&quot;nextafter&quot;),f=t(&quot;./lib/rat-seg-intersect&quot;);function h(t){var e=l(t);return[u(e,-1/0),u(e,1/0)]}function p(t){for(var e=new Array(t.length),r=0;r&lt;t.length;++r){var n=t[r];e[r]=[u(n[0],-1/0),u(n[1],-1/0),u(n[0],1/0),u(n[1],1/0)]}return e}function d(t,e,r){for(var a=e.length,o=new n(a),s=[],l=0;l&lt;e.length;++l){var c=e[l],f=h(c[0]),p=h(c[1]);s.push([u(f[0],-1/0),u(p[0],-1/0),u(f[1],1/0),u(p[1],1/0)])}i(s,(function(t,e){o.link(t,e)}));var d=!0,g=new Array(a);for(l=0;l&lt;a;++l){(v=o.find(l))!==l&amp;&amp;(d=!1,t[v]=[Math.min(t[l][0],t[v][0]),Math.min(t[l][1],t[v][1])])}if(d)return null;var m=0;for(l=0;l&lt;a;++l){var v;(v=o.find(l))===l?(g[l]=m,t[m++]=t[l]):g[l]=-1}t.length=m;for(l=0;l&lt;a;++l)g[l]&lt;0&amp;&amp;(g[l]=g[o.find(l)]);return g}function g(t,e){return t[0]-e[0]||t[1]-e[1]}function m(t,e){var r=t[0]-e[0]||t[1]-e[1];return r||(t[2]&lt;e[2]?-1:t[2]&gt;e[2]?1:0)}function v(t,e,r){if(0!==t.length){if(e)for(var n=0;n&lt;t.length;++n){var i=e[(o=t[n])[0]],a=e[o[1]];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}else for(n=0;n&lt;t.length;++n){var o;i=(o=t[n])[0],a=o[1];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}r?t.sort(m):t.sort(g);var s=1;for(n=1;n&lt;t.length;++n){var l=t[n-1],c=t[n];(c[0]!==l[0]||c[1]!==l[1]||r&amp;&amp;c[2]!==l[2])&amp;&amp;(t[s++]=c)}t.length=s}}function y(t,e,r){var n=function(t,e){for(var r=new Array(e.length),n=0;n&lt;e.length;++n){var i=e[n],a=t[i[0]],o=t[i[1]];r[n]=[u(Math.min(a[0],o[0]),-1/0),u(Math.min(a[1],o[1]),-1/0),u(Math.max(a[0],o[0]),1/0),u(Math.max(a[1],o[1]),1/0)]}return r}(t,e),h=function(t,e,r){var n=[];return i(r,(function(r,i){var o=e[r],s=e[i];if(o[0]!==s[0]&amp;&amp;o[0]!==s[1]&amp;&amp;o[1]!==s[0]&amp;&amp;o[1]!==s[1]){var l=t[o[0]],c=t[o[1]],u=t[s[0]],f=t[s[1]];a(l,c,u,f)&amp;&amp;n.push([r,i])}})),n}(t,e,n),g=p(t),m=function(t,e,r,n){var o=[];return i(r,n,(function(r,n){var i=e[r];if(i[0]!==n&amp;&amp;i[1]!==n){var s=t[n],l=t[i[0]],c=t[i[1]];a(l,c,s,s)&amp;&amp;o.push([r,n])}})),o}(t,e,n,g),y=d(t,function(t,e,r,n,i){var a,u,h=t.map((function(t){return[o(t[0]),o(t[1])]}));for(a=0;a&lt;r.length;++a){var p=r[a];u=p[0];var d=p[1],g=e[u],m=e[d],v=f(c(t[g[0]]),c(t[g[1]]),c(t[m[0]]),c(t[m[1]]));if(v){var y=t.length;t.push([l(v[0]),l(v[1])]),h.push(v),n.push([u,y],[d,y])}}for(n.sort((function(t,e){if(t[0]!==e[0])return t[0]-e[0];var r=h[t[1]],n=h[e[1]];return s(r[0],n[0])||s(r[1],n[1])})),a=n.length-1;a&gt;=0;--a){var x=e[u=(S=n[a])[0]],b=x[0],_=x[1],w=t[b],T=t[_];if((w[0]-T[0]||w[1]-T[1])&lt;0){var k=b;b=_,_=k}x[0]=b;var M,A=x[1]=S[1];for(i&amp;&amp;(M=x[2]);a&gt;0&amp;&amp;n[a-1][0]===u;){var S,E=(S=n[--a])[1];i?e.push([A,E,M]):e.push([A,E]),A=E}i?e.push([A,_,M]):e.push([A,_])}return h}(t,e,h,m,r));return v(e,y,r),!!y||(h.length&gt;0||m.length&gt;0)}},{&quot;./lib/rat-seg-intersect&quot;:122,&quot;big-rat&quot;:83,&quot;big-rat/cmp&quot;:81,&quot;big-rat/to-float&quot;:95,&quot;box-intersect&quot;:101,nextafter:496,&quot;rat-vec&quot;:530,&quot;robust-segment-intersect&quot;:551,&quot;union-find&quot;:596}],122:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var a=s(e,t),f=s(n,r),h=u(a,f);if(0===o(h))return null;var p=s(t,r),d=u(f,p),g=i(d,h),m=c(a,g);return l(t,m)};var n=t(&quot;big-rat/mul&quot;),i=t(&quot;big-rat/div&quot;),a=t(&quot;big-rat/sub&quot;),o=t(&quot;big-rat/sign&quot;),s=t(&quot;rat-vec/sub&quot;),l=t(&quot;rat-vec/add&quot;),c=t(&quot;rat-vec/muls&quot;);function u(t,e){return a(n(t[0],e[1]),n(t[1],e[0]))}},{&quot;big-rat/div&quot;:82,&quot;big-rat/mul&quot;:92,&quot;big-rat/sign&quot;:93,&quot;big-rat/sub&quot;:94,&quot;rat-vec/add&quot;:529,&quot;rat-vec/muls&quot;:531,&quot;rat-vec/sub&quot;:532}],123:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;clamp&quot;);function i(t,e){null==e&amp;&amp;(e=!0);var r=t[0],i=t[1],a=t[2],o=t[3];return null==o&amp;&amp;(o=e?1:255),e&amp;&amp;(r*=255,i*=255,a*=255,o*=255),16777216*(r=255&amp;n(r,0,255))+((i=255&amp;n(i,0,255))&lt;&lt;16)+((a=255&amp;n(a,0,255))&lt;&lt;8)+(o=255&amp;n(o,0,255))}e.exports=i,e.exports.to=i,e.exports.from=function(t,e){var r=(t=+t)&gt;&gt;&gt;24,n=(16711680&amp;t)&gt;&gt;&gt;16,i=(65280&amp;t)&gt;&gt;&gt;8,a=255&amp;t;return!1===e?[r,n,i,a]:[r/255,n/255,i/255,a/255]}},{clamp:120}],124:[function(t,e,r){&quot;use strict&quot;;e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],125:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-rgba&quot;),i=t(&quot;clamp&quot;),a=t(&quot;dtype&quot;);e.exports=function(t,e){&quot;float&quot;!==e&amp;&amp;e||(e=&quot;array&quot;),&quot;uint&quot;===e&amp;&amp;(e=&quot;uint8&quot;),&quot;uint_clamped&quot;===e&amp;&amp;(e=&quot;uint8_clamped&quot;);var r=new(a(e))(4),o=&quot;uint8&quot;!==e&amp;&amp;&quot;uint8_clamped&quot;!==e;return t.length&amp;&amp;&quot;string&quot;!=typeof t||((t=n(t))[0]/=255,t[1]/=255,t[2]/=255),function(t){return t instanceof Uint8Array||t instanceof Uint8ClampedArray||!!(Array.isArray(t)&amp;&amp;(t[0]&gt;1||0===t[0])&amp;&amp;(t[1]&gt;1||0===t[1])&amp;&amp;(t[2]&gt;1||0===t[2])&amp;&amp;(!t[3]||t[3]&gt;1))}(t)?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:255,o&amp;&amp;(r[0]/=255,r[1]/=255,r[2]/=255,r[3]/=255),r):(o?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:1):(r[0]=i(Math.floor(255*t[0]),0,255),r[1]=i(Math.floor(255*t[1]),0,255),r[2]=i(Math.floor(255*t[2]),0,255),r[3]=null==t[3]?255:i(Math.floor(255*t[3]),0,255)),r)}},{clamp:120,&quot;color-rgba&quot;:127,dtype:175}],126:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;color-name&quot;),i=t(&quot;is-plain-obj&quot;),a=t(&quot;defined&quot;);e.exports=function(t){var e,s,l=[],c=1;if(&quot;string&quot;==typeof t)if(n[t])l=n[t].slice(),s=&quot;rgb&quot;;else if(&quot;transparent&quot;===t)c=0,s=&quot;rgb&quot;,l=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var u=(p=t.slice(1)).length;c=1,u&lt;=4?(l=[parseInt(p[0]+p[0],16),parseInt(p[1]+p[1],16),parseInt(p[2]+p[2],16)],4===u&amp;&amp;(c=parseInt(p[3]+p[3],16)/255)):(l=[parseInt(p[0]+p[1],16),parseInt(p[2]+p[3],16),parseInt(p[4]+p[5],16)],8===u&amp;&amp;(c=parseInt(p[6]+p[7],16)/255)),l[0]||(l[0]=0),l[1]||(l[1]=0),l[2]||(l[2]=0),s=&quot;rgb&quot;}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(t)){var f=e[1],h=&quot;rgb&quot;===f,p=f.replace(/a$/,&quot;&quot;);s=p;u=&quot;cmyk&quot;===p?4:&quot;gray&quot;===p?1:3;l=e[2].trim().split(/\s*,\s*/).map((function(t,e){if(/%$/.test(t))return e===u?parseFloat(t)/100:&quot;rgb&quot;===p?255*parseFloat(t)/100:parseFloat(t);if(&quot;h&quot;===p[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==o[t])return o[t]}return parseFloat(t)})),f===p&amp;&amp;l.push(1),c=h||void 0===l[u]?1:l[u],l=l.slice(0,u)}else t.length&gt;10&amp;&amp;/[0-9](?:\s|\/)/.test(t)&amp;&amp;(l=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),s=t.match(/([a-z])/gi).join(&quot;&quot;).toLowerCase());else if(isNaN(t))if(i(t)){var d=a(t.r,t.red,t.R,null);null!==d?(s=&quot;rgb&quot;,l=[d,a(t.g,t.green,t.G),a(t.b,t.blue,t.B)]):(s=&quot;hsl&quot;,l=[a(t.h,t.hue,t.H),a(t.s,t.saturation,t.S),a(t.l,t.lightness,t.L,t.b,t.brightness)]),c=a(t.a,t.alpha,t.opacity,1),null!=t.opacity&amp;&amp;(c/=100)}else(Array.isArray(t)||r.ArrayBuffer&amp;&amp;ArrayBuffer.isView&amp;&amp;ArrayBuffer.isView(t))&amp;&amp;(l=[t[0],t[1],t[2]],s=&quot;rgb&quot;,c=4===t.length?t[3]:1);else s=&quot;rgb&quot;,l=[t&gt;&gt;&gt;16,(65280&amp;t)&gt;&gt;&gt;8,255&amp;t];return{space:s,values:l,alpha:c}};var o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;color-name&quot;:124,defined:170,&quot;is-plain-obj&quot;:469}],127:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-parse&quot;),i=t(&quot;color-space/hsl&quot;),a=t(&quot;clamp&quot;);e.exports=function(t){var e,r=n(t);return r.space?((e=Array(3))[0]=a(r.values[0],0,255),e[1]=a(r.values[1],0,255),e[2]=a(r.values[2],0,255),&quot;h&quot;===r.space[0]&amp;&amp;(e=i.rgb(e)),e.push(a(r.alpha,0,1)),e):[]}},{clamp:120,&quot;color-parse&quot;:126,&quot;color-space/hsl&quot;:128}],128:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./rgb&quot;);e.exports={name:&quot;hsl&quot;,min:[0,0,0],max:[360,100,100],channel:[&quot;hue&quot;,&quot;saturation&quot;,&quot;lightness&quot;],alias:[&quot;HSL&quot;],rgb:function(t){var e,r,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[a=255*l,a,a];e=2*l-(r=l&lt;.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c&lt;3;c++)(n=o+1/3*-(c-1))&lt;0?n++:n&gt;1&amp;&amp;n--,a=6*n&lt;1?e+6*(r-e)*n:2*n&lt;1?r:3*n&lt;2?e+(r-e)*(2/3-n)*6:e,i[c]=255*a;return i}},n.hsl=function(t){var e,r,n=t[0]/255,i=t[1]/255,a=t[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o;return s===o?e=0:n===s?e=(i-a)/l:i===s?e=2+(a-n)/l:a===s&amp;&amp;(e=4+(n-i)/l),(e=Math.min(60*e,360))&lt;0&amp;&amp;(e+=360),r=(o+s)/2,[e,100*(s===o?0:r&lt;=.5?l/(s+o):l/(2-s-o)),100*r]}},{&quot;./rgb&quot;:129}],129:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;rgb&quot;,min:[0,0,0],max:[255,255,255],channel:[&quot;red&quot;,&quot;green&quot;,&quot;blue&quot;],alias:[&quot;RGB&quot;]}},{}],130:[function(t,e,r){e.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],cool:[{index:0,rgb:[0,255,255]},{index:1,rgb:[255,0,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],&quot;rainbow-soft&quot;:[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],&quot;freesurface-blue&quot;:[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],&quot;freesurface-red&quot;:[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],&quot;velocity-blue&quot;:[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],&quot;velocity-green&quot;:[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},{}],131:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./colorScale&quot;),i=t(&quot;lerp&quot;);function a(t){return[t[0]/255,t[1]/255,t[2]/255,t[3]]}function o(t){for(var e,r=&quot;#&quot;,n=0;n&lt;3;++n)r+=(&quot;00&quot;+(e=(e=t[n]).toString(16))).substr(e.length);return r}function s(t){return&quot;rgba(&quot;+t.join(&quot;,&quot;)+&quot;)&quot;}e.exports=function(t){var e,r,l,c,u,f,h,p,d,g;t||(t={});p=(t.nshades||72)-1,h=t.format||&quot;hex&quot;,(f=t.colormap)||(f=&quot;jet&quot;);if(&quot;string&quot;==typeof f){if(f=f.toLowerCase(),!n[f])throw Error(f+&quot; not a supported colorscale&quot;);u=n[f]}else{if(!Array.isArray(f))throw Error(&quot;unsupported colormap option&quot;,f);u=f.slice()}if(u.length&gt;p+1)throw new Error(f+&quot; map requires nshades to be at least size &quot;+u.length);d=Array.isArray(t.alpha)?2!==t.alpha.length?[1,1]:t.alpha.slice():&quot;number&quot;==typeof t.alpha?[t.alpha,t.alpha]:[1,1];e=u.map((function(t){return Math.round(t.index*p)})),d[0]=Math.min(Math.max(d[0],0),1),d[1]=Math.min(Math.max(d[1],0),1);var m=u.map((function(t,e){var r=u[e].index,n=u[e].rgb.slice();return 4===n.length&amp;&amp;n[3]&gt;=0&amp;&amp;n[3]&lt;=1||(n[3]=d[0]+(d[1]-d[0])*r),n})),v=[];for(g=0;g&lt;e.length-1;++g){c=e[g+1]-e[g],r=m[g],l=m[g+1];for(var y=0;y&lt;c;y++){var x=y/c;v.push([Math.round(i(r[0],l[0],x)),Math.round(i(r[1],l[1],x)),Math.round(i(r[2],l[2],x)),i(r[3],l[3],x)])}}v.push(u[u.length-1].rgb.concat(d[1])),&quot;hex&quot;===h?v=v.map(o):&quot;rgbaString&quot;===h?v=v.map(s):&quot;float&quot;===h&amp;&amp;(v=v.map(a));return v}},{&quot;./colorScale&quot;:130,lerp:472}],132:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a){var o=n(e,r,a);if(0===o){var s=i(n(t,e,r)),c=i(n(t,e,a));if(s===c){if(0===s){var u=l(t,e,r),f=l(t,e,a);return u===f?0:u?1:-1}return 0}return 0===c?s&gt;0||l(t,e,a)?-1:1:0===s?c&gt;0||l(t,e,r)?1:-1:i(c-s)}var h=n(t,e,r);return h&gt;0?o&gt;0&amp;&amp;n(t,e,a)&gt;0?1:-1:h&lt;0?o&gt;0||n(t,e,a)&gt;0?1:-1:n(t,e,a)&gt;0||l(t,e,r)?1:-1};var n=t(&quot;robust-orientation&quot;),i=t(&quot;signum&quot;),a=t(&quot;two-sum&quot;),o=t(&quot;robust-product&quot;),s=t(&quot;robust-sum&quot;);function l(t,e,r){var n=a(t[0],-e[0]),i=a(t[1],-e[1]),l=a(r[0],-e[0]),c=a(r[1],-e[1]),u=s(o(n,l),o(i,c));return u[u.length-1]&gt;=0}},{&quot;robust-orientation&quot;:548,&quot;robust-product&quot;:549,&quot;robust-sum&quot;:553,signum:554,&quot;two-sum&quot;:583}],133:[function(t,e,r){e.exports=function(t,e){var r=t.length,a=t.length-e.length;if(a)return a;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return t[0]+t[1]-e[0]-e[1]||n(t[0],t[1])-n(e[0],e[1]);case 3:var o=t[0]+t[1],s=e[0]+e[1];if(a=o+t[2]-(s+e[2]))return a;var l=n(t[0],t[1]),c=n(e[0],e[1]);return n(l,t[2])-n(c,e[2])||n(l+t[2],o)-n(c+e[2],s);case 4:var u=t[0],f=t[1],h=t[2],p=t[3],d=e[0],g=e[1],m=e[2],v=e[3];return u+f+h+p-(d+g+m+v)||n(u,f,h,p)-n(d,g,m,v,d)||n(u+f,u+h,u+p,f+h,f+p,h+p)-n(d+g,d+m,d+v,g+m,g+v,m+v)||n(u+f+h,u+f+p,u+h+p,f+h+p)-n(d+g+m,d+g+v,d+m+v,g+m+v);default:for(var y=t.slice().sort(i),x=e.slice().sort(i),b=0;b&lt;r;++b)if(a=y[b]-x[b])return a;return 0}};var n=Math.min;function i(t,e){return t-e}},{}],134:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;compare-cell&quot;),i=t(&quot;cell-orientation&quot;);e.exports=function(t,e){return n(t,e)||i(t)-i(e)}},{&quot;cell-orientation&quot;:117,&quot;compare-cell&quot;:133}],135:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/ch1d&quot;),i=t(&quot;./lib/ch2d&quot;),a=t(&quot;./lib/chnd&quot;);e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[[0]];var r=t[0].length;if(0===r)return[];if(1===r)return n(t);if(2===r)return i(t);return a(t,r)}},{&quot;./lib/ch1d&quot;:136,&quot;./lib/ch2d&quot;:137,&quot;./lib/chnd&quot;:138}],136:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=0,r=0,n=1;n&lt;t.length;++n)t[n][0]&lt;t[e][0]&amp;&amp;(e=n),t[n][0]&gt;t[r][0]&amp;&amp;(r=n);return e&lt;r?[[e],[r]]:e&gt;r?[[r],[e]]:[[e]]}},{}],137:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=n(t),r=e.length;if(r&lt;=2)return[];for(var i=new Array(r),a=e[r-1],o=0;o&lt;r;++o){var s=e[o];i[o]=[a,s],a=s}return i};var n=t(&quot;monotone-convex-hull-2d&quot;)},{&quot;monotone-convex-hull-2d&quot;:482}],138:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){try{return n(t,!0)}catch(o){var r=i(t);if(r.length&lt;=e)return[];var a=function(t,e){for(var r=t.length,n=new Array(r),i=0;i&lt;e.length;++i)n[i]=t[e[i]];var a=e.length;for(i=0;i&lt;r;++i)e.indexOf(i)&lt;0&amp;&amp;(n[a++]=t[i]);return n}(t,r);return function(t,e){for(var r=t.length,n=e.length,i=0;i&lt;r;++i)for(var a=t[i],o=0;o&lt;a.length;++o){var s=a[o];if(s&lt;n)a[o]=e[s];else{s-=n;for(var l=0;l&lt;n;++l)s&gt;=e[l]&amp;&amp;(s+=1);a[o]=s}}return t}(n(a,!0),r)}};var n=t(&quot;incremental-convex-hull&quot;),i=t(&quot;affine-hull&quot;)},{&quot;affine-hull&quot;:67,&quot;incremental-convex-hull&quot;:459}],139:[function(t,e,r){e.exports={AFG:&quot;afghan&quot;,ALA:&quot;\\b\\wland&quot;,ALB:&quot;albania&quot;,DZA:&quot;algeria&quot;,ASM:&quot;^(?=.*americ).*samoa&quot;,AND:&quot;andorra&quot;,AGO:&quot;angola&quot;,AIA:&quot;anguill?a&quot;,ATA:&quot;antarctica&quot;,ATG:&quot;antigua&quot;,ARG:&quot;argentin&quot;,ARM:&quot;armenia&quot;,ABW:&quot;^(?!.*bonaire).*\\baruba&quot;,AUS:&quot;australia&quot;,AUT:&quot;^(?!.*hungary).*austria|\\baustri.*\\bemp&quot;,AZE:&quot;azerbaijan&quot;,BHS:&quot;bahamas&quot;,BHR:&quot;bahrain&quot;,BGD:&quot;bangladesh|^(?=.*east).*paki?stan&quot;,BRB:&quot;barbados&quot;,BLR:&quot;belarus|byelo&quot;,BEL:&quot;^(?!.*luxem).*belgium&quot;,BLZ:&quot;belize|^(?=.*british).*honduras&quot;,BEN:&quot;benin|dahome&quot;,BMU:&quot;bermuda&quot;,BTN:&quot;bhutan&quot;,BOL:&quot;bolivia&quot;,BES:&quot;^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands&quot;,BIH:&quot;herzegovina|bosnia&quot;,BWA:&quot;botswana|bechuana&quot;,BVT:&quot;bouvet&quot;,BRA:&quot;brazil&quot;,IOT:&quot;british.?indian.?ocean&quot;,BRN:&quot;brunei&quot;,BGR:&quot;bulgaria&quot;,BFA:&quot;burkina|\\bfaso|upper.?volta&quot;,BDI:&quot;burundi&quot;,CPV:&quot;verde&quot;,KHM:&quot;cambodia|kampuchea|khmer&quot;,CMR:&quot;cameroon&quot;,CAN:&quot;canada&quot;,CYM:&quot;cayman&quot;,CAF:&quot;\\bcentral.african.republic&quot;,TCD:&quot;\\bchad&quot;,CHL:&quot;\\bchile&quot;,CHN:&quot;^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china&quot;,CXR:&quot;christmas&quot;,CCK:&quot;\\bcocos|keeling&quot;,COL:&quot;colombia&quot;,COM:&quot;comoro&quot;,COG:&quot;^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo&quot;,COK:&quot;\\bcook&quot;,CRI:&quot;costa.?rica&quot;,CIV:&quot;ivoire|ivory&quot;,HRV:&quot;croatia&quot;,CUB:&quot;\\bcuba&quot;,CUW:&quot;^(?!.*bonaire).*\\bcura(c|\xe7)ao&quot;,CYP:&quot;cyprus&quot;,CSK:&quot;czechoslovakia&quot;,CZE:&quot;^(?=.*rep).*czech|czechia|bohemia&quot;,COD:&quot;\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc&quot;,DNK:&quot;denmark&quot;,DJI:&quot;djibouti&quot;,DMA:&quot;dominica(?!n)&quot;,DOM:&quot;dominican.rep&quot;,ECU:&quot;ecuador&quot;,EGY:&quot;egypt&quot;,SLV:&quot;el.?salvador&quot;,GNQ:&quot;guine.*eq|eq.*guine|^(?=.*span).*guinea&quot;,ERI:&quot;eritrea&quot;,EST:&quot;estonia&quot;,ETH:&quot;ethiopia|abyssinia&quot;,FLK:&quot;falkland|malvinas&quot;,FRO:&quot;faroe|faeroe&quot;,FJI:&quot;fiji&quot;,FIN:&quot;finland&quot;,FRA:&quot;^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul&quot;,GUF:&quot;^(?=.*french).*guiana&quot;,PYF:&quot;french.?polynesia|tahiti&quot;,ATF:&quot;french.?southern&quot;,GAB:&quot;gabon&quot;,GMB:&quot;gambia&quot;,GEO:&quot;^(?!.*south).*georgia&quot;,DDR:&quot;german.?democratic.?republic|democratic.?republic.*germany|east.germany&quot;,DEU:&quot;^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german&quot;,GHA:&quot;ghana|gold.?coast&quot;,GIB:&quot;gibraltar&quot;,GRC:&quot;greece|hellenic|hellas&quot;,GRL:&quot;greenland&quot;,GRD:&quot;grenada&quot;,GLP:&quot;guadeloupe&quot;,GUM:&quot;\\bguam&quot;,GTM:&quot;guatemala&quot;,GGY:&quot;guernsey&quot;,GIN:&quot;^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea&quot;,GNB:&quot;bissau|^(?=.*portu).*guinea&quot;,GUY:&quot;guyana|british.?guiana&quot;,HTI:&quot;haiti&quot;,HMD:&quot;heard.*mcdonald&quot;,VAT:&quot;holy.?see|vatican|papal.?st&quot;,HND:&quot;^(?!.*brit).*honduras&quot;,HKG:&quot;hong.?kong&quot;,HUN:&quot;^(?!.*austr).*hungary&quot;,ISL:&quot;iceland&quot;,IND:&quot;india(?!.*ocea)&quot;,IDN:&quot;indonesia&quot;,IRN:&quot;\\biran|persia&quot;,IRQ:&quot;\\biraq|mesopotamia&quot;,IRL:&quot;(^ireland)|(^republic.*ireland)&quot;,IMN:&quot;^(?=.*isle).*\\bman&quot;,ISR:&quot;israel&quot;,ITA:&quot;italy&quot;,JAM:&quot;jamaica&quot;,JPN:&quot;japan&quot;,JEY:&quot;jersey&quot;,JOR:&quot;jordan&quot;,KAZ:&quot;kazak&quot;,KEN:&quot;kenya|british.?east.?africa|east.?africa.?prot&quot;,KIR:&quot;kiribati&quot;,PRK:&quot;^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)&quot;,KWT:&quot;kuwait&quot;,KGZ:&quot;kyrgyz|kirghiz&quot;,LAO:&quot;\\blaos?\\b&quot;,LVA:&quot;latvia&quot;,LBN:&quot;lebanon&quot;,LSO:&quot;lesotho|basuto&quot;,LBR:&quot;liberia&quot;,LBY:&quot;libya&quot;,LIE:&quot;liechtenstein&quot;,LTU:&quot;lithuania&quot;,LUX:&quot;^(?!.*belg).*luxem&quot;,MAC:&quot;maca(o|u)&quot;,MDG:&quot;madagascar|malagasy&quot;,MWI:&quot;malawi|nyasa&quot;,MYS:&quot;malaysia&quot;,MDV:&quot;maldive&quot;,MLI:&quot;\\bmali\\b&quot;,MLT:&quot;\\bmalta&quot;,MHL:&quot;marshall&quot;,MTQ:&quot;martinique&quot;,MRT:&quot;mauritania&quot;,MUS:&quot;mauritius&quot;,MYT:&quot;\\bmayotte&quot;,MEX:&quot;\\bmexic&quot;,FSM:&quot;fed.*micronesia|micronesia.*fed&quot;,MCO:&quot;monaco&quot;,MNG:&quot;mongolia&quot;,MNE:&quot;^(?!.*serbia).*montenegro&quot;,MSR:&quot;montserrat&quot;,MAR:&quot;morocco|\\bmaroc&quot;,MOZ:&quot;mozambique&quot;,MMR:&quot;myanmar|burma&quot;,NAM:&quot;namibia&quot;,NRU:&quot;nauru&quot;,NPL:&quot;nepal&quot;,NLD:&quot;^(?!.*\\bant)(?!.*\\bcarib).*netherlands&quot;,ANT:&quot;^(?=.*\\bant).*(nether|dutch)&quot;,NCL:&quot;new.?caledonia&quot;,NZL:&quot;new.?zealand&quot;,NIC:&quot;nicaragua&quot;,NER:&quot;\\bniger(?!ia)&quot;,NGA:&quot;nigeria&quot;,NIU:&quot;niue&quot;,NFK:&quot;norfolk&quot;,MNP:&quot;mariana&quot;,NOR:&quot;norway&quot;,OMN:&quot;\\boman|trucial&quot;,PAK:&quot;^(?!.*east).*paki?stan&quot;,PLW:&quot;palau&quot;,PSE:&quot;palestin|\\bgaza|west.?bank&quot;,PAN:&quot;panama&quot;,PNG:&quot;papua|new.?guinea&quot;,PRY:&quot;paraguay&quot;,PER:&quot;peru&quot;,PHL:&quot;philippines&quot;,PCN:&quot;pitcairn&quot;,POL:&quot;poland&quot;,PRT:&quot;portugal&quot;,PRI:&quot;puerto.?rico&quot;,QAT:&quot;qatar&quot;,KOR:&quot;^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)&quot;,MDA:&quot;moldov|b(a|e)ssarabia&quot;,REU:&quot;r(e|\xe9)union&quot;,ROU:&quot;r(o|u|ou)mania&quot;,RUS:&quot;\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics&quot;,RWA:&quot;rwanda&quot;,BLM:&quot;barth(e|\xe9)lemy&quot;,SHN:&quot;helena&quot;,KNA:&quot;kitts|\\bnevis&quot;,LCA:&quot;\\blucia&quot;,MAF:&quot;^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)&quot;,SPM:&quot;miquelon&quot;,VCT:&quot;vincent&quot;,WSM:&quot;^(?!.*amer).*samoa&quot;,SMR:&quot;san.?marino&quot;,STP:&quot;\\bs(a|\xe3)o.?tom(e|\xe9)&quot;,SAU:&quot;\\bsa\\w*.?arabia&quot;,SEN:&quot;senegal&quot;,SRB:&quot;^(?!.*monte).*serbia&quot;,SYC:&quot;seychell&quot;,SLE:&quot;sierra&quot;,SGP:&quot;singapore&quot;,SXM:&quot;^(?!.*martin)(?!.*saba).*maarten&quot;,SVK:&quot;^(?!.*cze).*slovak&quot;,SVN:&quot;slovenia&quot;,SLB:&quot;solomon&quot;,SOM:&quot;somali&quot;,ZAF:&quot;south.africa|s\\\\..?africa&quot;,SGS:&quot;south.?georgia|sandwich&quot;,SSD:&quot;\\bs\\w*.?sudan&quot;,ESP:&quot;spain&quot;,LKA:&quot;sri.?lanka|ceylon&quot;,SDN:&quot;^(?!.*\\bs(?!u)).*sudan&quot;,SUR:&quot;surinam|dutch.?guiana&quot;,SJM:&quot;svalbard&quot;,SWZ:&quot;swaziland&quot;,SWE:&quot;sweden&quot;,CHE:&quot;switz|swiss&quot;,SYR:&quot;syria&quot;,TWN:&quot;taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china&quot;,TJK:&quot;tajik&quot;,THA:&quot;thailand|\\bsiam&quot;,MKD:&quot;macedonia|fyrom&quot;,TLS:&quot;^(?=.*leste).*timor|^(?=.*east).*timor&quot;,TGO:&quot;togo&quot;,TKL:&quot;tokelau&quot;,TON:&quot;tonga&quot;,TTO:&quot;trinidad|tobago&quot;,TUN:&quot;tunisia&quot;,TUR:&quot;turkey&quot;,TKM:&quot;turkmen&quot;,TCA:&quot;turks&quot;,TUV:&quot;tuvalu&quot;,UGA:&quot;uganda&quot;,UKR:&quot;ukrain&quot;,ARE:&quot;emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em&quot;,GBR:&quot;united.?kingdom|britain|^u\\.?k\\.?$&quot;,TZA:&quot;tanzania&quot;,USA:&quot;united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)&quot;,UMI:&quot;minor.?outlying.?is&quot;,URY:&quot;uruguay&quot;,UZB:&quot;uzbek&quot;,VUT:&quot;vanuatu|new.?hebrides&quot;,VEN:&quot;venezuela&quot;,VNM:&quot;^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam&quot;,VGB:&quot;^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin&quot;,VIR:&quot;^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin&quot;,WLF:&quot;futuna|wallis&quot;,ESH:&quot;western.sahara&quot;,YEM:&quot;^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen&quot;,YMD:&quot;^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen&quot;,YUG:&quot;yugoslavia&quot;,ZMB:&quot;zambia|northern.?rhodesia&quot;,EAZ:&quot;zanzibar&quot;,ZWE:&quot;zimbabwe|^(?!.*northern).*rhodesia&quot;}},{}],140:[function(t,e,r){e.exports=[&quot;xx-small&quot;,&quot;x-small&quot;,&quot;small&quot;,&quot;medium&quot;,&quot;large&quot;,&quot;x-large&quot;,&quot;xx-large&quot;,&quot;larger&quot;,&quot;smaller&quot;]},{}],141:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;condensed&quot;,&quot;semi-condensed&quot;,&quot;extra-condensed&quot;,&quot;ultra-condensed&quot;,&quot;expanded&quot;,&quot;semi-expanded&quot;,&quot;extra-expanded&quot;,&quot;ultra-expanded&quot;]},{}],142:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;italic&quot;,&quot;oblique&quot;]},{}],143:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;bold&quot;,&quot;bolder&quot;,&quot;lighter&quot;,&quot;100&quot;,&quot;200&quot;,&quot;300&quot;,&quot;400&quot;,&quot;500&quot;,&quot;600&quot;,&quot;700&quot;,&quot;800&quot;,&quot;900&quot;]},{}],144:[function(t,e,r){&quot;use strict&quot;;e.exports={parse:t(&quot;./parse&quot;),stringify:t(&quot;./stringify&quot;)}},{&quot;./parse&quot;:146,&quot;./stringify&quot;:147}],145:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font-size-keywords&quot;);e.exports={isSize:function(t){return/^[\d\.]/.test(t)||-1!==t.indexOf(&quot;/&quot;)||-1!==n.indexOf(t)}}},{&quot;css-font-size-keywords&quot;:140}],146:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;unquote&quot;),i=t(&quot;css-global-keywords&quot;),a=t(&quot;css-system-font-keywords&quot;),o=t(&quot;css-font-weight-keywords&quot;),s=t(&quot;css-font-style-keywords&quot;),l=t(&quot;css-font-stretch-keywords&quot;),c=t(&quot;string-split-by&quot;),u=t(&quot;./lib/util&quot;).isSize;e.exports=h;var f=h.cache={};function h(t){if(&quot;string&quot;!=typeof t)throw new Error(&quot;Font argument must be a string.&quot;);if(f[t])return f[t];if(&quot;&quot;===t)throw new Error(&quot;Cannot parse an empty string.&quot;);if(-1!==a.indexOf(t))return f[t]={system:t};for(var e,r={style:&quot;normal&quot;,variant:&quot;normal&quot;,weight:&quot;normal&quot;,stretch:&quot;normal&quot;,lineHeight:&quot;normal&quot;,size:&quot;1rem&quot;,family:[&quot;serif&quot;]},h=c(t,/\s+/);e=h.shift();){if(-1!==i.indexOf(e))return[&quot;style&quot;,&quot;variant&quot;,&quot;weight&quot;,&quot;stretch&quot;].forEach((function(t){r[t]=e})),f[t]=r;if(-1===s.indexOf(e))if(&quot;normal&quot;!==e&amp;&amp;&quot;small-caps&quot;!==e)if(-1===l.indexOf(e)){if(-1===o.indexOf(e)){if(u(e)){var d=c(e,&quot;/&quot;);if(r.size=d[0],null!=d[1]?r.lineHeight=p(d[1]):&quot;/&quot;===h[0]&amp;&amp;(h.shift(),r.lineHeight=p(h.shift())),!h.length)throw new Error(&quot;Missing required font-family.&quot;);return r.family=c(h.join(&quot; &quot;),/\s*,\s*/).map(n),f[t]=r}throw new Error(&quot;Unknown or unsupported font token: &quot;+e)}r.weight=e}else r.stretch=e;else r.variant=e;else r.style=e}throw new Error(&quot;Missing required font-size.&quot;)}function p(t){var e=parseFloat(t);return e.toString()===t?e:t}},{&quot;./lib/util&quot;:145,&quot;css-font-stretch-keywords&quot;:141,&quot;css-font-style-keywords&quot;:142,&quot;css-font-weight-keywords&quot;:143,&quot;css-global-keywords&quot;:148,&quot;css-system-font-keywords&quot;:149,&quot;string-split-by&quot;:568,unquote:598}],147:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;),i=t(&quot;./lib/util&quot;).isSize,a=g(t(&quot;css-global-keywords&quot;)),o=g(t(&quot;css-system-font-keywords&quot;)),s=g(t(&quot;css-font-weight-keywords&quot;)),l=g(t(&quot;css-font-style-keywords&quot;)),c=g(t(&quot;css-font-stretch-keywords&quot;)),u={normal:1,&quot;small-caps&quot;:1},f={serif:1,&quot;sans-serif&quot;:1,monospace:1,cursive:1,fantasy:1,&quot;system-ui&quot;:1},h=&quot;1rem&quot;,p=&quot;serif&quot;;function d(t,e){if(t&amp;&amp;!e[t]&amp;&amp;!a[t])throw Error(&quot;Unknown keyword `&quot;+t+&quot;`&quot;);return t}function g(t){for(var e={},r=0;r&lt;t.length;r++)e[t[r]]=1;return e}e.exports=function(t){if((t=n(t,{style:&quot;style fontstyle fontStyle font-style slope distinction&quot;,variant:&quot;variant font-variant fontVariant fontvariant var capitalization&quot;,weight:&quot;weight w font-weight fontWeight fontweight&quot;,stretch:&quot;stretch font-stretch fontStretch fontstretch width&quot;,size:&quot;size s font-size fontSize fontsize height em emSize&quot;,lineHeight:&quot;lh line-height lineHeight lineheight leading&quot;,family:&quot;font family fontFamily font-family fontfamily type typeface face&quot;,system:&quot;system reserved default global&quot;})).system)return t.system&amp;&amp;d(t.system,o),t.system;if(d(t.style,l),d(t.variant,u),d(t.weight,s),d(t.stretch,c),null==t.size&amp;&amp;(t.size=h),&quot;number&quot;==typeof t.size&amp;&amp;(t.size+=&quot;px&quot;),!i)throw Error(&quot;Bad size value `&quot;+t.size+&quot;`&quot;);t.family||(t.family=p),Array.isArray(t.family)&amp;&amp;(t.family.length||(t.family=[p]),t.family=t.family.map((function(t){return f[t]?t:'&quot;'+t+'&quot;'})).join(&quot;, &quot;));var e=[];return e.push(t.style),t.variant!==t.style&amp;&amp;e.push(t.variant),t.weight!==t.variant&amp;&amp;t.weight!==t.style&amp;&amp;e.push(t.weight),t.stretch!==t.weight&amp;&amp;t.stretch!==t.variant&amp;&amp;t.stretch!==t.style&amp;&amp;e.push(t.stretch),e.push(t.size+(null==t.lineHeight||&quot;normal&quot;===t.lineHeight||t.lineHeight+&quot;&quot;==&quot;1&quot;?&quot;&quot;:&quot;/&quot;+t.lineHeight)),e.push(t.family),e.filter(Boolean).join(&quot; &quot;)}},{&quot;./lib/util&quot;:145,&quot;css-font-stretch-keywords&quot;:141,&quot;css-font-style-keywords&quot;:142,&quot;css-font-weight-keywords&quot;:143,&quot;css-global-keywords&quot;:148,&quot;css-system-font-keywords&quot;:149,&quot;pick-by-alias&quot;:511}],148:[function(t,e,r){e.exports=[&quot;inherit&quot;,&quot;initial&quot;,&quot;unset&quot;]},{}],149:[function(t,e,r){e.exports=[&quot;caption&quot;,&quot;icon&quot;,&quot;menu&quot;,&quot;message-box&quot;,&quot;small-caption&quot;,&quot;status-bar&quot;]},{}],150:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a){var o=i-1,s=i*i,l=o*o,c=(1+2*i)*l,u=i*l,f=s*(3-2*i),h=s*o;if(t.length){a||(a=new Array(t.length));for(var p=t.length-1;p&gt;=0;--p)a[p]=c*t[p]+u*e[p]+f*r[p]+h*n[p];return a}return c*t+u*e+f*r+h*n},e.exports.derivative=function(t,e,r,n,i,a){var o=6*i*i-6*i,s=3*i*i-4*i+1,l=-6*i*i+6*i,c=3*i*i-2*i;if(t.length){a||(a=new Array(t.length));for(var u=t.length-1;u&gt;=0;--u)a[u]=o*t[u]+s*e[u]+l*r[u]+c*n[u];return a}return o*t+s*e+l*r[u]+c*n}},{}],151:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/thunk.js&quot;);function i(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName=&quot;&quot;,this.pre=null,this.body=null,this.post=null,this.debug=!1}e.exports=function(t){var e=new i;e.pre=t.pre,e.body=t.body,e.post=t.post;var r=t.args.slice(0);e.argTypes=r;for(var a=0;a&lt;r.length;++a){var o=r[a];if(&quot;array&quot;===o||&quot;object&quot;==typeof o&amp;&amp;o.blockIndices){if(e.argTypes[a]=&quot;array&quot;,e.arrayArgs.push(a),e.arrayBlockIndices.push(o.blockIndices?o.blockIndices:0),e.shimArgs.push(&quot;array&quot;+a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].count&gt;0)throw new Error(&quot;cwise: pre() block may not reference array args&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].count&gt;0)throw new Error(&quot;cwise: post() block may not reference array args&quot;)}else if(&quot;scalar&quot;===o)e.scalarArgs.push(a),e.shimArgs.push(&quot;scalar&quot;+a);else if(&quot;index&quot;===o){if(e.indexArgs.push(a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].count&gt;0)throw new Error(&quot;cwise: pre() block may not reference array index&quot;);if(a&lt;e.body.args.length&amp;&amp;e.body.args[a].lvalue)throw new Error(&quot;cwise: body() block may not write to array index&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].count&gt;0)throw new Error(&quot;cwise: post() block may not reference array index&quot;)}else if(&quot;shape&quot;===o){if(e.shapeArgs.push(a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].lvalue)throw new Error(&quot;cwise: pre() block may not write to array shape&quot;);if(a&lt;e.body.args.length&amp;&amp;e.body.args[a].lvalue)throw new Error(&quot;cwise: body() block may not write to array shape&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].lvalue)throw new Error(&quot;cwise: post() block may not write to array shape&quot;)}else{if(&quot;object&quot;!=typeof o||!o.offset)throw new Error(&quot;cwise: Unknown argument type &quot;+r[a]);e.argTypes[a]=&quot;offset&quot;,e.offsetArgs.push({array:o.array,offset:o.offset}),e.offsetArgIndex.push(a)}}if(e.arrayArgs.length&lt;=0)throw new Error(&quot;cwise: No array arguments specified&quot;);if(e.pre.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in pre() block&quot;);if(e.body.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in body() block&quot;);if(e.post.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in post() block&quot;);return e.debug=!!t.printCode||!!t.debug,e.funcName=t.funcName||&quot;cwise&quot;,e.blockSize=t.blockSize||64,n(e)}},{&quot;./lib/thunk.js&quot;:153}],152:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;uniq&quot;);function i(t,e,r){var n,i,a=t.length,o=e.arrayArgs.length,s=e.indexArgs.length&gt;0,l=[],c=[],u=0,f=0;for(n=0;n&lt;a;++n)c.push([&quot;i&quot;,n,&quot;=0&quot;].join(&quot;&quot;));for(i=0;i&lt;o;++i)for(n=0;n&lt;a;++n)f=u,u=t[n],0===n?c.push([&quot;d&quot;,i,&quot;s&quot;,n,&quot;=t&quot;,i,&quot;p&quot;,u].join(&quot;&quot;)):c.push([&quot;d&quot;,i,&quot;s&quot;,n,&quot;=(t&quot;,i,&quot;p&quot;,u,&quot;-s&quot;,f,&quot;*t&quot;,i,&quot;p&quot;,f,&quot;)&quot;].join(&quot;&quot;));for(c.length&gt;0&amp;&amp;l.push(&quot;var &quot;+c.join(&quot;,&quot;)),n=a-1;n&gt;=0;--n)u=t[n],l.push([&quot;for(i&quot;,n,&quot;=0;i&quot;,n,&quot;&lt;s&quot;,u,&quot;;++i&quot;,n,&quot;){&quot;].join(&quot;&quot;));for(l.push(r),n=0;n&lt;a;++n){for(f=u,u=t[n],i=0;i&lt;o;++i)l.push([&quot;p&quot;,i,&quot;+=d&quot;,i,&quot;s&quot;,n].join(&quot;&quot;));s&amp;&amp;(n&gt;0&amp;&amp;l.push([&quot;index[&quot;,f,&quot;]-=s&quot;,f].join(&quot;&quot;)),l.push([&quot;++index[&quot;,u,&quot;]&quot;].join(&quot;&quot;))),l.push(&quot;}&quot;)}return l.join(&quot;\n&quot;)}function a(t,e,r){for(var n=t.body,i=[],a=[],o=0;o&lt;t.args.length;++o){var s=t.args[o];if(!(s.count&lt;=0)){var l=new RegExp(s.name,&quot;g&quot;),c=&quot;&quot;,u=e.arrayArgs.indexOf(o);switch(e.argTypes[o]){case&quot;offset&quot;:var f=e.offsetArgIndex.indexOf(o);u=e.offsetArgs[f].array,c=&quot;+q&quot;+f;case&quot;array&quot;:c=&quot;p&quot;+u+c;var h=&quot;l&quot;+o,p=&quot;a&quot;+u;if(0===e.arrayBlockIndices[u])1===s.count?&quot;generic&quot;===r[u]?s.lvalue?(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)),n=n.replace(l,h),a.push([p,&quot;.set(&quot;,c,&quot;,&quot;,h,&quot;)&quot;].join(&quot;&quot;))):n=n.replace(l,[p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)):n=n.replace(l,[p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;)):&quot;generic&quot;===r[u]?(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)),n=n.replace(l,h),s.lvalue&amp;&amp;a.push([p,&quot;.set(&quot;,c,&quot;,&quot;,h,&quot;)&quot;].join(&quot;&quot;))):(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;)),n=n.replace(l,h),s.lvalue&amp;&amp;a.push([p,&quot;[&quot;,c,&quot;]=&quot;,h].join(&quot;&quot;)));else{for(var d=[s.name],g=[c],m=0;m&lt;Math.abs(e.arrayBlockIndices[u]);m++)d.push(&quot;\\s*\\[([^\\]]+)\\]&quot;),g.push(&quot;$&quot;+(m+1)+&quot;*t&quot;+u+&quot;b&quot;+m);if(l=new RegExp(d.join(&quot;&quot;),&quot;g&quot;),c=g.join(&quot;+&quot;),&quot;generic&quot;===r[u])throw new Error(&quot;cwise: Generic arrays not supported in combination with blocks!&quot;);n=n.replace(l,[p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;))}break;case&quot;scalar&quot;:n=n.replace(l,&quot;Y&quot;+e.scalarArgs.indexOf(o));break;case&quot;index&quot;:n=n.replace(l,&quot;index&quot;);break;case&quot;shape&quot;:n=n.replace(l,&quot;shape&quot;)}}}return[i.join(&quot;\n&quot;),n,a.join(&quot;\n&quot;)].join(&quot;\n&quot;).trim()}function o(t){for(var e=new Array(t.length),r=!0,n=0;n&lt;t.length;++n){var i=t[n],a=i.match(/\d+/);a=a?a[0]:&quot;&quot;,0===i.charAt(0)?e[n]=&quot;u&quot;+i.charAt(1)+a:e[n]=i.charAt(0)+a,n&gt;0&amp;&amp;(r=r&amp;&amp;e[n]===e[n-1])}return r?e[0]:e.join(&quot;&quot;)}e.exports=function(t,e){for(var r=e[1].length-Math.abs(t.arrayBlockIndices[0])|0,s=new Array(t.arrayArgs.length),l=new Array(t.arrayArgs.length),c=0;c&lt;t.arrayArgs.length;++c)l[c]=e[2*c],s[c]=e[2*c+1];var u=[],f=[],h=[],p=[],d=[];for(c=0;c&lt;t.arrayArgs.length;++c){t.arrayBlockIndices[c]&lt;0?(h.push(0),p.push(r),u.push(r),f.push(r+t.arrayBlockIndices[c])):(h.push(t.arrayBlockIndices[c]),p.push(t.arrayBlockIndices[c]+r),u.push(0),f.push(t.arrayBlockIndices[c]));for(var g=[],m=0;m&lt;s[c].length;m++)h[c]&lt;=s[c][m]&amp;&amp;s[c][m]&lt;p[c]&amp;&amp;g.push(s[c][m]-h[c]);d.push(g)}var v=[&quot;SS&quot;],y=[&quot;'use strict'&quot;],x=[];for(m=0;m&lt;r;++m)x.push([&quot;s&quot;,m,&quot;=SS[&quot;,m,&quot;]&quot;].join(&quot;&quot;));for(c=0;c&lt;t.arrayArgs.length;++c){v.push(&quot;a&quot;+c),v.push(&quot;t&quot;+c),v.push(&quot;p&quot;+c);for(m=0;m&lt;r;++m)x.push([&quot;t&quot;,c,&quot;p&quot;,m,&quot;=t&quot;,c,&quot;[&quot;,h[c]+m,&quot;]&quot;].join(&quot;&quot;));for(m=0;m&lt;Math.abs(t.arrayBlockIndices[c]);++m)x.push([&quot;t&quot;,c,&quot;b&quot;,m,&quot;=t&quot;,c,&quot;[&quot;,u[c]+m,&quot;]&quot;].join(&quot;&quot;))}for(c=0;c&lt;t.scalarArgs.length;++c)v.push(&quot;Y&quot;+c);if(t.shapeArgs.length&gt;0&amp;&amp;x.push(&quot;shape=SS.slice(0)&quot;),t.indexArgs.length&gt;0){var b=new Array(r);for(c=0;c&lt;r;++c)b[c]=&quot;0&quot;;x.push([&quot;index=[&quot;,b.join(&quot;,&quot;),&quot;]&quot;].join(&quot;&quot;))}for(c=0;c&lt;t.offsetArgs.length;++c){var _=t.offsetArgs[c],w=[];for(m=0;m&lt;_.offset.length;++m)0!==_.offset[m]&amp;&amp;(1===_.offset[m]?w.push([&quot;t&quot;,_.array,&quot;p&quot;,m].join(&quot;&quot;)):w.push([_.offset[m],&quot;*t&quot;,_.array,&quot;p&quot;,m].join(&quot;&quot;)));0===w.length?x.push(&quot;q&quot;+c+&quot;=0&quot;):x.push([&quot;q&quot;,c,&quot;=&quot;,w.join(&quot;+&quot;)].join(&quot;&quot;))}var T=n([].concat(t.pre.thisVars).concat(t.body.thisVars).concat(t.post.thisVars));for((x=x.concat(T)).length&gt;0&amp;&amp;y.push(&quot;var &quot;+x.join(&quot;,&quot;)),c=0;c&lt;t.arrayArgs.length;++c)y.push(&quot;p&quot;+c+&quot;|=0&quot;);t.pre.body.length&gt;3&amp;&amp;y.push(a(t.pre,t,l));var k=a(t.body,t,l),M=function(t){for(var e=0,r=t[0].length;e&lt;r;){for(var n=1;n&lt;t.length;++n)if(t[n][e]!==t[0][e])return e;++e}return e}(d);M&lt;r?y.push(function(t,e,r,n){for(var a=e.length,o=r.arrayArgs.length,s=r.blockSize,l=r.indexArgs.length&gt;0,c=[],u=0;u&lt;o;++u)c.push([&quot;var offset&quot;,u,&quot;=p&quot;,u].join(&quot;&quot;));for(u=t;u&lt;a;++u)c.push([&quot;for(var j&quot;+u+&quot;=SS[&quot;,e[u],&quot;]|0;j&quot;,u,&quot;&gt;0;){&quot;].join(&quot;&quot;)),c.push([&quot;if(j&quot;,u,&quot;&lt;&quot;,s,&quot;){&quot;].join(&quot;&quot;)),c.push([&quot;s&quot;,e[u],&quot;=j&quot;,u].join(&quot;&quot;)),c.push([&quot;j&quot;,u,&quot;=0&quot;].join(&quot;&quot;)),c.push([&quot;}else{s&quot;,e[u],&quot;=&quot;,s].join(&quot;&quot;)),c.push([&quot;j&quot;,u,&quot;-=&quot;,s,&quot;}&quot;].join(&quot;&quot;)),l&amp;&amp;c.push([&quot;index[&quot;,e[u],&quot;]=j&quot;,u].join(&quot;&quot;));for(u=0;u&lt;o;++u){for(var f=[&quot;offset&quot;+u],h=t;h&lt;a;++h)f.push([&quot;j&quot;,h,&quot;*t&quot;,u,&quot;p&quot;,e[h]].join(&quot;&quot;));c.push([&quot;p&quot;,u,&quot;=(&quot;,f.join(&quot;+&quot;),&quot;)&quot;].join(&quot;&quot;))}for(c.push(i(e,r,n)),u=t;u&lt;a;++u)c.push(&quot;}&quot;);return c.join(&quot;\n&quot;)}(M,d[0],t,k)):y.push(i(d[0],t,k)),t.post.body.length&gt;3&amp;&amp;y.push(a(t.post,t,l)),t.debug&amp;&amp;console.log(&quot;-----Generated cwise routine for &quot;,e,&quot;:\n&quot;+y.join(&quot;\n&quot;)+&quot;\n----------&quot;);var A=[t.funcName||&quot;unnamed&quot;,&quot;_cwise_loop_&quot;,s[0].join(&quot;s&quot;),&quot;m&quot;,M,o(l)].join(&quot;&quot;);return new Function([&quot;function &quot;,A,&quot;(&quot;,v.join(&quot;,&quot;),&quot;){&quot;,y.join(&quot;\n&quot;),&quot;} return &quot;,A].join(&quot;&quot;))()}},{uniq:597}],153:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./compile.js&quot;);e.exports=function(t){var e=[&quot;'use strict'&quot;,&quot;var CACHED={}&quot;],r=[],i=t.funcName+&quot;_cwise_thunk&quot;;e.push([&quot;return function &quot;,i,&quot;(&quot;,t.shimArgs.join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));for(var a=[],o=[],s=[[&quot;array&quot;,t.arrayArgs[0],&quot;.shape.slice(&quot;,Math.max(0,t.arrayBlockIndices[0]),t.arrayBlockIndices[0]&lt;0?&quot;,&quot;+t.arrayBlockIndices[0]+&quot;)&quot;:&quot;)&quot;].join(&quot;&quot;)],l=[],c=[],u=0;u&lt;t.arrayArgs.length;++u){var f=t.arrayArgs[u];r.push([&quot;t&quot;,f,&quot;=array&quot;,f,&quot;.dtype,&quot;,&quot;r&quot;,f,&quot;=array&quot;,f,&quot;.order&quot;].join(&quot;&quot;)),a.push(&quot;t&quot;+f),a.push(&quot;r&quot;+f),o.push(&quot;t&quot;+f),o.push(&quot;r&quot;+f+&quot;.join()&quot;),s.push(&quot;array&quot;+f+&quot;.data&quot;),s.push(&quot;array&quot;+f+&quot;.stride&quot;),s.push(&quot;array&quot;+f+&quot;.offset|0&quot;),u&gt;0&amp;&amp;(l.push(&quot;array&quot;+t.arrayArgs[0]+&quot;.shape.length===array&quot;+f+&quot;.shape.length+&quot;+(Math.abs(t.arrayBlockIndices[0])-Math.abs(t.arrayBlockIndices[u]))),c.push(&quot;array&quot;+t.arrayArgs[0]+&quot;.shape[shapeIndex+&quot;+Math.max(0,t.arrayBlockIndices[0])+&quot;]===array&quot;+f+&quot;.shape[shapeIndex+&quot;+Math.max(0,t.arrayBlockIndices[u])+&quot;]&quot;))}for(t.arrayArgs.length&gt;1&amp;&amp;(e.push(&quot;if (!(&quot;+l.join(&quot; &amp;&amp; &quot;)+&quot;)) throw new Error('cwise: Arrays do not all have the same dimensionality!')&quot;),e.push(&quot;for(var shapeIndex=array&quot;+t.arrayArgs[0]+&quot;.shape.length-&quot;+Math.abs(t.arrayBlockIndices[0])+&quot;; shapeIndex--\x3e0;) {&quot;),e.push(&quot;if (!(&quot;+c.join(&quot; &amp;&amp; &quot;)+&quot;)) throw new Error('cwise: Arrays do not all have the same shape!')&quot;),e.push(&quot;}&quot;)),u=0;u&lt;t.scalarArgs.length;++u)s.push(&quot;scalar&quot;+t.scalarArgs[u]);return r.push([&quot;type=[&quot;,o.join(&quot;,&quot;),&quot;].join()&quot;].join(&quot;&quot;)),r.push(&quot;proc=CACHED[type]&quot;),e.push(&quot;var &quot;+r.join(&quot;,&quot;)),e.push([&quot;if(!proc){&quot;,&quot;CACHED[type]=proc=compile([&quot;,a.join(&quot;,&quot;),&quot;])}&quot;,&quot;return proc(&quot;,s.join(&quot;,&quot;),&quot;)}&quot;].join(&quot;&quot;)),t.debug&amp;&amp;console.log(&quot;-----Generated thunk:\n&quot;+e.join(&quot;\n&quot;)+&quot;\n----------&quot;),new Function(&quot;compile&quot;,e.join(&quot;\n&quot;))(n.bind(void 0,t))}},{&quot;./compile.js&quot;:152}],154:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;type/value/is&quot;),a=t(&quot;type/value/ensure&quot;),o=t(&quot;type/plain-function/ensure&quot;),s=t(&quot;es5-ext/object/copy&quot;),l=t(&quot;es5-ext/object/normalize-options&quot;),c=t(&quot;es5-ext/object/map&quot;),u=Function.prototype.bind,f=Object.defineProperty,h=Object.prototype.hasOwnProperty;n=function(t,e,r){var n,i=a(e)&amp;&amp;o(e.value);return delete(n=s(e)).writable,delete n.value,n.get=function(){return!r.overwriteDefinition&amp;&amp;h.call(this,t)?i:(e.value=u.call(i,r.resolveContext?r.resolveContext(this):this),f(this,t,e),this[t])},n},e.exports=function(t){var e=l(arguments[1]);return i(e.resolveContext)&amp;&amp;o(e.resolveContext),c(t,(function(t,r){return n(r,t,e)}))}},{&quot;es5-ext/object/copy&quot;:196,&quot;es5-ext/object/map&quot;:204,&quot;es5-ext/object/normalize-options&quot;:205,&quot;type/plain-function/ensure&quot;:589,&quot;type/value/ensure&quot;:593,&quot;type/value/is&quot;:594}],155:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;type/value/is&quot;),i=t(&quot;type/plain-function/is&quot;),a=t(&quot;es5-ext/object/assign&quot;),o=t(&quot;es5-ext/object/normalize-options&quot;),s=t(&quot;es5-ext/string/#/contains&quot;);(e.exports=function(t,e){var r,i,l,c,u;return arguments.length&lt;2||&quot;string&quot;!=typeof t?(c=e,e=t,t=null):c=arguments[2],n(t)?(r=s.call(t,&quot;c&quot;),i=s.call(t,&quot;e&quot;),l=s.call(t,&quot;w&quot;)):(r=l=!0,i=!1),u={value:e,configurable:r,enumerable:i,writable:l},c?a(o(c),u):u}).gs=function(t,e,r){var l,c,u,f;return&quot;string&quot;!=typeof t?(u=r,r=e,e=t,t=null):u=arguments[3],n(e)?i(e)?n(r)?i(r)||(u=r,r=void 0):r=void 0:(u=e,e=r=void 0):e=void 0,n(t)?(l=s.call(t,&quot;c&quot;),c=s.call(t,&quot;e&quot;)):(l=!0,c=!1),f={get:e,set:r,configurable:l,enumerable:c},u?a(o(u),f):f}},{&quot;es5-ext/object/assign&quot;:193,&quot;es5-ext/object/normalize-options&quot;:205,&quot;es5-ext/string/#/contains&quot;:212,&quot;type/plain-function/is&quot;:590,&quot;type/value/is&quot;:594}],156:[function(t,e,r){!function(t,n){n(&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?r:t.d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){return t&lt;e?-1:t&gt;e?1:t&gt;=e?0:NaN}function r(t){var r;return 1===t.length&amp;&amp;(r=t,t=function(t,n){return e(r(t),n)}),{left:function(e,r,n,i){for(null==n&amp;&amp;(n=0),null==i&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&lt;0?n=a+1:i=a}return n},right:function(e,r,n,i){for(null==n&amp;&amp;(n=0),null==i&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&gt;0?i=a:n=a+1}return n}}}var n=r(e),i=n.right,a=n.left;function o(t,e){return[t,e]}function s(t){return null===t?NaN:+t}function l(t,e){var r,n,i=t.length,a=0,o=-1,l=0,c=0;if(null==e)for(;++o&lt;i;)isNaN(r=s(t[o]))||(c+=(n=r-l)*(r-(l+=n/++a)));else for(;++o&lt;i;)isNaN(r=s(e(t[o],o,t)))||(c+=(n=r-l)*(r-(l+=n/++a)));if(a&gt;1)return c/(a-1)}function c(t,e){var r=l(t,e);return r?Math.sqrt(r):r}function u(t,e){var r,n,i,a=t.length,o=-1;if(null==e){for(;++o&lt;a;)if(null!=(r=t[o])&amp;&amp;r&gt;=r)for(n=i=r;++o&lt;a;)null!=(r=t[o])&amp;&amp;(n&gt;r&amp;&amp;(n=r),i&lt;r&amp;&amp;(i=r))}else for(;++o&lt;a;)if(null!=(r=e(t[o],o,t))&amp;&amp;r&gt;=r)for(n=i=r;++o&lt;a;)null!=(r=e(t[o],o,t))&amp;&amp;(n&gt;r&amp;&amp;(n=r),i&lt;r&amp;&amp;(i=r));return[n,i]}var f=Array.prototype,h=f.slice,p=f.map;function d(t){return function(){return t}}function g(t){return t}function m(t,e,r){t=+t,e=+e,r=(i=arguments.length)&lt;2?(e=t,t=0,1):i&lt;3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),a=new Array(i);++n&lt;i;)a[n]=t+n*r;return a}var v=Math.sqrt(50),y=Math.sqrt(10),x=Math.sqrt(2);function b(t,e,r){var n=(e-t)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),a=n/Math.pow(10,i);return i&gt;=0?(a&gt;=v?10:a&gt;=y?5:a&gt;=x?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a&gt;=v?10:a&gt;=y?5:a&gt;=x?2:1)}function _(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/i;return a&gt;=v?i*=10:a&gt;=y?i*=5:a&gt;=x&amp;&amp;(i*=2),e&lt;t?-i:i}function w(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function T(t,e,r){if(null==r&amp;&amp;(r=s),n=t.length){if((e=+e)&lt;=0||n&lt;2)return+r(t[0],0,t);if(e&gt;=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t);return o+(+r(t[a+1],a+1,t)-o)*(i-a)}}function k(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a&lt;i;)if(null!=(r=t[a])&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=t[a])&amp;&amp;n&gt;r&amp;&amp;(n=r)}else for(;++a&lt;i;)if(null!=(r=e(t[a],a,t))&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=e(t[a],a,t))&amp;&amp;n&gt;r&amp;&amp;(n=r);return n}function M(t){if(!(i=t.length))return[];for(var e=-1,r=k(t,A),n=new Array(r);++e&lt;r;)for(var i,a=-1,o=n[e]=new Array(i);++a&lt;i;)o[a]=t[a][e];return n}function A(t){return t.length}t.bisect=i,t.bisectRight=i,t.bisectLeft=a,t.ascending=e,t.bisector=r,t.cross=function(t,e,r){var n,i,a,s,l=t.length,c=e.length,u=new Array(l*c);for(null==r&amp;&amp;(r=o),n=a=0;n&lt;l;++n)for(s=t[n],i=0;i&lt;c;++i,++a)u[a]=r(s,e[i]);return u},t.descending=function(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN},t.deviation=c,t.extent=u,t.histogram=function(){var t=g,e=u,r=w;function n(n){var a,o,s=n.length,l=new Array(s);for(a=0;a&lt;s;++a)l[a]=t(n[a],a,n);var c=e(l),u=c[0],f=c[1],h=r(l,u,f);Array.isArray(h)||(h=_(u,f,h),h=m(Math.ceil(u/h)*h,f,h));for(var p=h.length;h[0]&lt;=u;)h.shift(),--p;for(;h[p-1]&gt;f;)h.pop(),--p;var d,g=new Array(p+1);for(a=0;a&lt;=p;++a)(d=g[a]=[]).x0=a&gt;0?h[a-1]:u,d.x1=a&lt;p?h[a]:f;for(a=0;a&lt;s;++a)u&lt;=(o=l[a])&amp;&amp;o&lt;=f&amp;&amp;g[i(h,o,0,p)].push(n[a]);return g}return n.value=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:d(e),n):t},n.domain=function(t){return arguments.length?(e=&quot;function&quot;==typeof t?t:d([t[0],t[1]]),n):e},n.thresholds=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:Array.isArray(t)?d(h.call(t)):d(t),n):r},n},t.thresholdFreedmanDiaconis=function(t,r,n){return t=p.call(t,s).sort(e),Math.ceil((n-r)/(2*(T(t,.75)-T(t,.25))*Math.pow(t.length,-1/3)))},t.thresholdScott=function(t,e,r){return Math.ceil((r-e)/(3.5*c(t)*Math.pow(t.length,-1/3)))},t.thresholdSturges=w,t.max=function(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a&lt;i;)if(null!=(r=t[a])&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=t[a])&amp;&amp;r&gt;n&amp;&amp;(n=r)}else for(;++a&lt;i;)if(null!=(r=e(t[a],a,t))&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=e(t[a],a,t))&amp;&amp;r&gt;n&amp;&amp;(n=r);return n},t.mean=function(t,e){var r,n=t.length,i=n,a=-1,o=0;if(null==e)for(;++a&lt;n;)isNaN(r=s(t[a]))?--i:o+=r;else for(;++a&lt;n;)isNaN(r=s(e(t[a],a,t)))?--i:o+=r;if(i)return o/i},t.median=function(t,r){var n,i=t.length,a=-1,o=[];if(null==r)for(;++a&lt;i;)isNaN(n=s(t[a]))||o.push(n);else for(;++a&lt;i;)isNaN(n=s(r(t[a],a,t)))||o.push(n);return T(o.sort(e),.5)},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a&lt;i;)o+=t[a].length;for(r=new Array(o);--i&gt;=0;)for(e=(n=t[i]).length;--e&gt;=0;)r[--o]=n[e];return r},t.min=k,t.pairs=function(t,e){null==e&amp;&amp;(e=o);for(var r=0,n=t.length-1,i=t[0],a=new Array(n&lt;0?0:n);r&lt;n;)a[r]=e(i,i=t[++r]);return a},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.quantile=T,t.range=m,t.scan=function(t,r){if(n=t.length){var n,i,a=0,o=0,s=t[o];for(null==r&amp;&amp;(r=e);++a&lt;n;)(r(i=t[a],s)&lt;0||0!==r(s,s))&amp;&amp;(s=i,o=a);return 0===r(s,s)?o:void 0}},t.shuffle=function(t,e,r){for(var n,i,a=(null==r?t.length:r)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.sum=function(t,e){var r,n=t.length,i=-1,a=0;if(null==e)for(;++i&lt;n;)(r=+t[i])&amp;&amp;(a+=r);else for(;++i&lt;n;)(r=+e(t[i],i,t))&amp;&amp;(a+=r);return a},t.ticks=function(t,e,r){var n,i,a,o,s=-1;if(r=+r,(t=+t)===(e=+e)&amp;&amp;r&gt;0)return[t];if((n=e&lt;t)&amp;&amp;(i=t,t=e,e=i),0===(o=b(t,e,r))||!isFinite(o))return[];if(o&gt;0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s&lt;i;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++s&lt;i;)a[s]=(t-s)/o;return n&amp;&amp;a.reverse(),a},t.tickIncrement=b,t.tickStep=_,t.transpose=M,t.variance=l,t.zip=function(){return M(arguments)},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],157:[function(t,e,r){!function(t,n){n(&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?r:t.d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(){}function r(t,r){var n=new e;if(t instanceof e)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var i,a=-1,o=t.length;if(null==r)for(;++a&lt;o;)n.set(a,t[a]);else for(;++a&lt;o;)n.set(r(i=t[a],a,t),i)}else if(t)for(var s in t)n.set(s,t[s]);return n}function n(){return{}}function i(t,e,r){t[e]=r}function a(){return r()}function o(t,e,r){t.set(e,r)}function s(){}e.prototype=r.prototype={constructor:e,has:function(t){return&quot;$&quot;+t in this},get:function(t){return this[&quot;$&quot;+t]},set:function(t,e){return this[&quot;$&quot;+t]=e,this},remove:function(t){var e=&quot;$&quot;+t;return e in this&amp;&amp;delete this[e]},clear:function(){for(var t in this)&quot;$&quot;===t[0]&amp;&amp;delete this[t]},keys:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)&quot;$&quot;===e[0]&amp;&amp;++t;return t},empty:function(){for(var t in this)if(&quot;$&quot;===t[0])return!1;return!0},each:function(t){for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t(this[e],e.slice(1),this)}};var l=r.prototype;function c(t,e){var r=new s;if(t instanceof s)t.each((function(t){r.add(t)}));else if(t){var n=-1,i=t.length;if(null==e)for(;++n&lt;i;)r.add(t[n]);else for(;++n&lt;i;)r.add(e(t[n],n,t))}return r}s.prototype=c.prototype={constructor:s,has:l.has,add:function(t){return this[&quot;$&quot;+(t+=&quot;&quot;)]=t,this},remove:l.remove,clear:l.clear,values:l.keys,size:l.size,empty:l.empty,each:l.each},t.nest=function(){var t,e,s,l=[],c=[];function u(n,i,a,o){if(i&gt;=l.length)return null!=t&amp;&amp;n.sort(t),null!=e?e(n):n;for(var s,c,f,h=-1,p=n.length,d=l[i++],g=r(),m=a();++h&lt;p;)(f=g.get(s=d(c=n[h])+&quot;&quot;))?f.push(c):g.set(s,[c]);return g.each((function(t,e){o(m,e,u(t,i,a,o))})),m}return s={object:function(t){return u(t,0,n,i)},map:function(t){return u(t,0,a,o)},entries:function(t){return function t(r,n){if(++n&gt;l.length)return r;var i,a=c[n-1];return null!=e&amp;&amp;n&gt;=l.length?i=r.entries():(i=[],r.each((function(e,r){i.push({key:r,values:t(e,n)})}))),null!=a?i.sort((function(t,e){return a(t.key,e.key)})):i}(u(t,0,a,o),0)},key:function(t){return l.push(t),s},sortKeys:function(t){return c[l.length-1]=t,s},sortValues:function(e){return t=e,s},rollup:function(t){return e=t,s}}},t.set=c,t.map=r,t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],158:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function r(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function n(){}var i=&quot;\\s*([+-]?\\d+)\\s*&quot;,a=&quot;\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*&quot;,o=&quot;\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*&quot;,s=/^#([0-9a-f]{3,8})$/,l=new RegExp(&quot;^rgb\\(&quot;+[i,i,i]+&quot;\\)$&quot;),c=new RegExp(&quot;^rgb\\(&quot;+[o,o,o]+&quot;\\)$&quot;),u=new RegExp(&quot;^rgba\\(&quot;+[i,i,i,a]+&quot;\\)$&quot;),f=new RegExp(&quot;^rgba\\(&quot;+[o,o,o,a]+&quot;\\)$&quot;),h=new RegExp(&quot;^hsl\\(&quot;+[a,o,o]+&quot;\\)$&quot;),p=new RegExp(&quot;^hsla\\(&quot;+[a,o,o,a]+&quot;\\)$&quot;),d={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 g(){return this.rgb().formatHex()}function m(){return this.rgb().formatRgb()}function v(t){var e,r;return t=(t+&quot;&quot;).trim().toLowerCase(),(e=s.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?y(e):3===r?new w(e&gt;&gt;8&amp;15|e&gt;&gt;4&amp;240,e&gt;&gt;4&amp;15|240&amp;e,(15&amp;e)&lt;&lt;4|15&amp;e,1):8===r?x(e&gt;&gt;24&amp;255,e&gt;&gt;16&amp;255,e&gt;&gt;8&amp;255,(255&amp;e)/255):4===r?x(e&gt;&gt;12&amp;15|e&gt;&gt;8&amp;240,e&gt;&gt;8&amp;15|e&gt;&gt;4&amp;240,e&gt;&gt;4&amp;15|240&amp;e,((15&amp;e)&lt;&lt;4|15&amp;e)/255):null):(e=l.exec(t))?new w(e[1],e[2],e[3],1):(e=c.exec(t))?new w(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=u.exec(t))?x(e[1],e[2],e[3],e[4]):(e=f.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=h.exec(t))?A(e[1],e[2]/100,e[3]/100,1):(e=p.exec(t))?A(e[1],e[2]/100,e[3]/100,e[4]):d.hasOwnProperty(t)?y(d[t]):&quot;transparent&quot;===t?new w(NaN,NaN,NaN,0):null}function y(t){return new w(t&gt;&gt;16&amp;255,t&gt;&gt;8&amp;255,255&amp;t,1)}function x(t,e,r,n){return n&lt;=0&amp;&amp;(t=e=r=NaN),new w(t,e,r,n)}function b(t){return t instanceof n||(t=v(t)),t?new w((t=t.rgb()).r,t.g,t.b,t.opacity):new w}function _(t,e,r,n){return 1===arguments.length?b(t):new w(t,e,r,null==n?1:n)}function w(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function T(){return&quot;#&quot;+M(this.r)+M(this.g)+M(this.b)}function k(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?&quot;rgb(&quot;:&quot;rgba(&quot;)+Math.max(0,Math.min(255,Math.round(this.r)||0))+&quot;, &quot;+Math.max(0,Math.min(255,Math.round(this.g)||0))+&quot;, &quot;+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?&quot;)&quot;:&quot;, &quot;+t+&quot;)&quot;)}function M(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))&lt;16?&quot;0&quot;:&quot;&quot;)+t.toString(16)}function A(t,e,r,n){return n&lt;=0?t=e=r=NaN:r&lt;=0||r&gt;=1?t=e=NaN:e&lt;=0&amp;&amp;(t=NaN),new C(t,e,r,n)}function S(t){if(t instanceof C)return new C(t.h,t.s,t.l,t.opacity);if(t instanceof n||(t=v(t)),!t)return new C;if(t instanceof C)return t;var e=(t=t.rgb()).r/255,r=t.g/255,i=t.b/255,a=Math.min(e,r,i),o=Math.max(e,r,i),s=NaN,l=o-a,c=(o+a)/2;return l?(s=e===o?(r-i)/l+6*(r&lt;i):r===o?(i-e)/l+2:(e-r)/l+4,l/=c&lt;.5?o+a:2-o-a,s*=60):l=c&gt;0&amp;&amp;c&lt;1?0:s,new C(s,l,c,t.opacity)}function E(t,e,r,n){return 1===arguments.length?S(t):new C(t,e,r,null==n?1:n)}function C(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function L(t,e,r){return 255*(t&lt;60?e+(r-e)*t/60:t&lt;180?r:t&lt;240?e+(r-e)*(240-t)/60:e)}e(n,v,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:g,formatHex:g,formatHsl:function(){return S(this).formatHsl()},formatRgb:m,toString:m}),e(w,_,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5&lt;=this.r&amp;&amp;this.r&lt;255.5&amp;&amp;-.5&lt;=this.g&amp;&amp;this.g&lt;255.5&amp;&amp;-.5&lt;=this.b&amp;&amp;this.b&lt;255.5&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},hex:T,formatHex:T,formatRgb:k,toString:k})),e(C,E,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new C(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new C(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h&lt;0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r&lt;.5?r:1-r)*e,i=2*r-n;return new w(L(t&gt;=240?t-240:t+120,i,n),L(t,i,n),L(t&lt;120?t+240:t-120,i,n),this.opacity)},displayable:function(){return(0&lt;=this.s&amp;&amp;this.s&lt;=1||isNaN(this.s))&amp;&amp;0&lt;=this.l&amp;&amp;this.l&lt;=1&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?&quot;hsl(&quot;:&quot;hsla(&quot;)+(this.h||0)+&quot;, &quot;+100*(this.s||0)+&quot;%, &quot;+100*(this.l||0)+&quot;%&quot;+(1===t?&quot;)&quot;:&quot;, &quot;+t+&quot;)&quot;)}}));var I=Math.PI/180,P=180/Math.PI,z=6/29,O=3*z*z;function D(t){if(t instanceof F)return new F(t.l,t.a,t.b,t.opacity);if(t instanceof H)return G(t);t instanceof w||(t=b(t));var e,r,n=U(t.r),i=U(t.g),a=U(t.b),o=B((.2225045*n+.7168786*i+.0606169*a)/1);return n===i&amp;&amp;i===a?e=r=o:(e=B((.4360747*n+.3850649*i+.1430804*a)/.96422),r=B((.0139322*n+.0971045*i+.7141733*a)/.82521)),new F(116*o-16,500*(e-o),200*(o-r),t.opacity)}function R(t,e,r,n){return 1===arguments.length?D(t):new F(t,e,r,null==n?1:n)}function F(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function B(t){return t&gt;.008856451679035631?Math.pow(t,1/3):t/O+4/29}function N(t){return t&gt;z?t*t*t:O*(t-4/29)}function j(t){return 255*(t&lt;=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function U(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function V(t){if(t instanceof H)return new H(t.h,t.c,t.l,t.opacity);if(t instanceof F||(t=D(t)),0===t.a&amp;&amp;0===t.b)return new H(NaN,0&lt;t.l&amp;&amp;t.l&lt;100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*P;return new H(e&lt;0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function q(t,e,r,n){return 1===arguments.length?V(t):new H(t,e,r,null==n?1:n)}function H(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function G(t){if(isNaN(t.h))return new F(t.l,0,0,t.opacity);var e=t.h*I;return new F(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}e(F,R,r(n,{brighter:function(t){return new F(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new F(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new w(j(3.1338561*(e=.96422*N(e))-1.6168667*(t=1*N(t))-.4906146*(r=.82521*N(r))),j(-.9787684*e+1.9161415*t+.033454*r),j(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),e(H,q,r(n,{brighter:function(t){return new H(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new H(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return G(this).rgb()}}));var Y=-.14861,W=1.78277,X=-.29227,Z=-.90649,J=1.97294,K=J*Z,Q=J*W,$=W*X-Z*Y;function tt(t){if(t instanceof rt)return new rt(t.h,t.s,t.l,t.opacity);t instanceof w||(t=b(t));var e=t.r/255,r=t.g/255,n=t.b/255,i=($*n+K*e-Q*r)/($+K-Q),a=n-i,o=(J*(r-i)-X*a)/Z,s=Math.sqrt(o*o+a*a)/(J*i*(1-i)),l=s?Math.atan2(o,a)*P-120:NaN;return new rt(l&lt;0?l+360:l,s,i,t.opacity)}function et(t,e,r,n){return 1===arguments.length?tt(t):new rt(t,e,r,null==n?1:n)}function rt(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}e(rt,et,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*I,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),i=Math.sin(t);return new w(255*(e+r*(Y*n+W*i)),255*(e+r*(X*n+Z*i)),255*(e+r*(J*n)),this.opacity)}})),t.color=v,t.cubehelix=et,t.gray=function(t,e){return new F(t,0,0,null==e?1:e)},t.hcl=q,t.hsl=E,t.lab=R,t.lch=function(t,e,r,n){return 1===arguments.length?V(t):new H(r,e,t,null==n?1:n)},t.rgb=_,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],159:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e={value:function(){}};function r(){for(var t,e=0,r=arguments.length,i={};e&lt;r;++e){if(!(t=arguments[e]+&quot;&quot;)||t in i||/[\s.]/.test(t))throw new Error(&quot;illegal type: &quot;+t);i[t]=[]}return new n(i)}function n(t){this._=t}function i(t,e){return t.trim().split(/^|\s+/).map((function(t){var r=&quot;&quot;,n=t.indexOf(&quot;.&quot;);if(n&gt;=0&amp;&amp;(r=t.slice(n+1),t=t.slice(0,n)),t&amp;&amp;!e.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);return{type:t,name:r}}))}function a(t,e){for(var r,n=0,i=t.length;n&lt;i;++n)if((r=t[n]).name===e)return r.value}function o(t,r,n){for(var i=0,a=t.length;i&lt;a;++i)if(t[i].name===r){t[i]=e,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&amp;&amp;t.push({name:r,value:n}),t}n.prototype=r.prototype={constructor:n,on:function(t,e){var r,n=this._,s=i(t+&quot;&quot;,n),l=-1,c=s.length;if(!(arguments.length&lt;2)){if(null!=e&amp;&amp;&quot;function&quot;!=typeof e)throw new Error(&quot;invalid callback: &quot;+e);for(;++l&lt;c;)if(r=(t=s[l]).type)n[r]=o(n[r],t.name,e);else if(null==e)for(r in n)n[r]=o(n[r],t.name,null);return this}for(;++l&lt;c;)if((r=(t=s[l]).type)&amp;&amp;(r=a(n[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new n(t)},call:function(t,e){if((r=arguments.length-2)&gt;0)for(var r,n,i=new Array(r),a=0;a&lt;r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);for(a=0,r=(n=this._[t]).length;a&lt;r;++a)n[a].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);for(var n=this._[t],i=0,a=n.length;i&lt;a;++i)n[i].value.apply(e,r)}},t.dispatch=r,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],160:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-quadtree&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-dispatch&quot;),t(&quot;d3-timer&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,n.d3)}(this,(function(t,e,r,n,i){&quot;use strict&quot;;function a(t){return function(){return t}}function o(){return 1e-6*(Math.random()-.5)}function s(t){return t.x+t.vx}function l(t){return t.y+t.vy}function c(t){return t.index}function u(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function f(t){return t.x}function h(t){return t.y}var p=Math.PI*(3-Math.sqrt(5));t.forceCenter=function(t,e){var r;function n(){var n,i,a=r.length,o=0,s=0;for(n=0;n&lt;a;++n)o+=(i=r[n]).x,s+=i.y;for(o=o/a-t,s=s/a-e,n=0;n&lt;a;++n)(i=r[n]).x-=o,i.y-=s}return null==t&amp;&amp;(t=0),null==e&amp;&amp;(e=0),n.initialize=function(t){r=t},n.x=function(e){return arguments.length?(t=+e,n):t},n.y=function(t){return arguments.length?(e=+t,n):e},n},t.forceCollide=function(t){var r,n,i=1,c=1;function u(){for(var t,a,u,h,p,d,g,m=r.length,v=0;v&lt;c;++v)for(a=e.quadtree(r,s,l).visitAfter(f),t=0;t&lt;m;++t)u=r[t],d=n[u.index],g=d*d,h=u.x+u.vx,p=u.y+u.vy,a.visit(y);function y(t,e,r,n,a){var s=t.data,l=t.r,c=d+l;if(!s)return e&gt;h+c||n&lt;h-c||r&gt;p+c||a&lt;p-c;if(s.index&gt;u.index){var f=h-s.x-s.vx,m=p-s.y-s.vy,v=f*f+m*m;v&lt;c*c&amp;&amp;(0===f&amp;&amp;(v+=(f=o())*f),0===m&amp;&amp;(v+=(m=o())*m),v=(c-(v=Math.sqrt(v)))/v*i,u.vx+=(f*=v)*(c=(l*=l)/(g+l)),u.vy+=(m*=v)*c,s.vx-=f*(c=1-c),s.vy-=m*c)}}}function f(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e&lt;4;++e)t[e]&amp;&amp;t[e].r&gt;t.r&amp;&amp;(t.r=t[e].r)}function h(){if(r){var e,i,a=r.length;for(n=new Array(a),e=0;e&lt;a;++e)i=r[e],n[i.index]=+t(i,e,r)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?1:+t)),u.initialize=function(t){r=t,h()},u.iterations=function(t){return arguments.length?(c=+t,u):c},u.strength=function(t){return arguments.length?(i=+t,u):i},u.radius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),h(),u):t},u},t.forceLink=function(t){var e,n,i,s,l,f=c,h=function(t){return 1/Math.min(s[t.source.index],s[t.target.index])},p=a(30),d=1;function g(r){for(var i=0,a=t.length;i&lt;d;++i)for(var s,c,u,f,h,p,g,m=0;m&lt;a;++m)c=(s=t[m]).source,f=(u=s.target).x+u.vx-c.x-c.vx||o(),h=u.y+u.vy-c.y-c.vy||o(),f*=p=((p=Math.sqrt(f*f+h*h))-n[m])/p*r*e[m],h*=p,u.vx-=f*(g=l[m]),u.vy-=h*g,c.vx+=f*(g=1-g),c.vy+=h*g}function m(){if(i){var a,o,c=i.length,h=t.length,p=r.map(i,f);for(a=0,s=new Array(c);a&lt;h;++a)(o=t[a]).index=a,&quot;object&quot;!=typeof o.source&amp;&amp;(o.source=u(p,o.source)),&quot;object&quot;!=typeof o.target&amp;&amp;(o.target=u(p,o.target)),s[o.source.index]=(s[o.source.index]||0)+1,s[o.target.index]=(s[o.target.index]||0)+1;for(a=0,l=new Array(h);a&lt;h;++a)o=t[a],l[a]=s[o.source.index]/(s[o.source.index]+s[o.target.index]);e=new Array(h),v(),n=new Array(h),y()}}function v(){if(i)for(var r=0,n=t.length;r&lt;n;++r)e[r]=+h(t[r],r,t)}function y(){if(i)for(var e=0,r=t.length;e&lt;r;++e)n[e]=+p(t[e],e,t)}return null==t&amp;&amp;(t=[]),g.initialize=function(t){i=t,m()},g.links=function(e){return arguments.length?(t=e,m(),g):t},g.id=function(t){return arguments.length?(f=t,g):f},g.iterations=function(t){return arguments.length?(d=+t,g):d},g.strength=function(t){return arguments.length?(h=&quot;function&quot;==typeof t?t:a(+t),v(),g):h},g.distance=function(t){return arguments.length?(p=&quot;function&quot;==typeof t?t:a(+t),y(),g):p},g},t.forceManyBody=function(){var t,r,n,i,s=a(-30),l=1,c=1/0,u=.81;function p(i){var a,o=t.length,s=e.quadtree(t,f,h).visitAfter(g);for(n=i,a=0;a&lt;o;++a)r=t[a],s.visit(m)}function d(){if(t){var e,r,n=t.length;for(i=new Array(n),e=0;e&lt;n;++e)r=t[e],i[r.index]=+s(r,e,t)}}function g(t){var e,r,n,a,o,s=0,l=0;if(t.length){for(n=a=o=0;o&lt;4;++o)(e=t[o])&amp;&amp;(r=Math.abs(e.value))&amp;&amp;(s+=e.value,l+=r,n+=r*e.x,a+=r*e.y);t.x=n/l,t.y=a/l}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=i[e.data.index]}while(e=e.next)}t.value=s}function m(t,e,a,s){if(!t.value)return!0;var f=t.x-r.x,h=t.y-r.y,p=s-e,d=f*f+h*h;if(p*p/u&lt;d)return d&lt;c&amp;&amp;(0===f&amp;&amp;(d+=(f=o())*f),0===h&amp;&amp;(d+=(h=o())*h),d&lt;l&amp;&amp;(d=Math.sqrt(l*d)),r.vx+=f*t.value*n/d,r.vy+=h*t.value*n/d),!0;if(!(t.length||d&gt;=c)){(t.data!==r||t.next)&amp;&amp;(0===f&amp;&amp;(d+=(f=o())*f),0===h&amp;&amp;(d+=(h=o())*h),d&lt;l&amp;&amp;(d=Math.sqrt(l*d)));do{t.data!==r&amp;&amp;(p=i[t.data.index]*n/d,r.vx+=f*p,r.vy+=h*p)}while(t=t.next)}}return p.initialize=function(e){t=e,d()},p.strength=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:a(+t),d(),p):s},p.distanceMin=function(t){return arguments.length?(l=t*t,p):Math.sqrt(l)},p.distanceMax=function(t){return arguments.length?(c=t*t,p):Math.sqrt(c)},p.theta=function(t){return arguments.length?(u=t*t,p):Math.sqrt(u)},p},t.forceRadial=function(t,e,r){var n,i,o,s=a(.1);function l(t){for(var a=0,s=n.length;a&lt;s;++a){var l=n[a],c=l.x-e||1e-6,u=l.y-r||1e-6,f=Math.sqrt(c*c+u*u),h=(o[a]-f)*i[a]*t/f;l.vx+=c*h,l.vy+=u*h}}function c(){if(n){var e,r=n.length;for(i=new Array(r),o=new Array(r),e=0;e&lt;r;++e)o[e]=+t(n[e],e,n),i[e]=isNaN(o[e])?0:+s(n[e],e,n)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(+t)),null==e&amp;&amp;(e=0),null==r&amp;&amp;(r=0),l.initialize=function(t){n=t,c()},l.strength=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:a(+t),c(),l):s},l.radius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),c(),l):t},l.x=function(t){return arguments.length?(e=+t,l):e},l.y=function(t){return arguments.length?(r=+t,l):r},l},t.forceSimulation=function(t){var e,a=1,o=.001,s=1-Math.pow(o,1/300),l=0,c=.6,u=r.map(),f=i.timer(d),h=n.dispatch(&quot;tick&quot;,&quot;end&quot;);function d(){g(),h.call(&quot;tick&quot;,e),a&lt;o&amp;&amp;(f.stop(),h.call(&quot;end&quot;,e))}function g(r){var n,i,o=t.length;void 0===r&amp;&amp;(r=1);for(var f=0;f&lt;r;++f)for(a+=(l-a)*s,u.each((function(t){t(a)})),n=0;n&lt;o;++n)null==(i=t[n]).fx?i.x+=i.vx*=c:(i.x=i.fx,i.vx=0),null==i.fy?i.y+=i.vy*=c:(i.y=i.fy,i.vy=0);return e}function m(){for(var e,r=0,n=t.length;r&lt;n;++r){if((e=t[r]).index=r,null!=e.fx&amp;&amp;(e.x=e.fx),null!=e.fy&amp;&amp;(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(r),a=r*p;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&amp;&amp;(e.vx=e.vy=0)}}function v(e){return e.initialize&amp;&amp;e.initialize(t),e}return null==t&amp;&amp;(t=[]),m(),e={tick:g,restart:function(){return f.restart(d),e},stop:function(){return f.stop(),e},nodes:function(r){return arguments.length?(t=r,m(),u.each(v),e):t},alpha:function(t){return arguments.length?(a=+t,e):a},alphaMin:function(t){return arguments.length?(o=+t,e):o},alphaDecay:function(t){return arguments.length?(s=+t,e):+s},alphaTarget:function(t){return arguments.length?(l=+t,e):l},velocityDecay:function(t){return arguments.length?(c=1-t,e):1-c},force:function(t,r){return arguments.length&gt;1?(null==r?u.remove(t):u.set(t,v(r)),e):u.get(t)},find:function(e,r,n){var i,a,o,s,l,c=0,u=t.length;for(null==n?n=1/0:n*=n,c=0;c&lt;u;++c)(o=(i=e-(s=t[c]).x)*i+(a=r-s.y)*a)&lt;n&amp;&amp;(l=s,n=o);return l},on:function(t,r){return arguments.length&gt;1?(h.on(t,r),e):h.on(t)}}},t.forceX=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a&lt;o;++a)(i=e[a]).vx+=(n[a]-i.x)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a&lt;o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:a(+t),s(),o):i},o.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),s(),o):t},o},t.forceY=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a&lt;o;++a)(i=e[a]).vy+=(n[a]-i.y)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a&lt;o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:a(+t),s(),o):i},o.y=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),s(),o):t},o},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-collection&quot;:157,&quot;d3-dispatch&quot;:159,&quot;d3-quadtree&quot;:164,&quot;d3-timer&quot;:168}],161:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){return t.parent===e.parent?1:2}function r(t,e){return t+e.x}function n(t,e){return Math.max(t,e.y)}function i(t){var e=0,r=t.children,n=r&amp;&amp;r.length;if(n)for(;--n&gt;=0;)e+=r[n].value;else e=1;t.value=e}function a(t,e){var r,n,i,a,s,u=new c(t),f=+t.value&amp;&amp;(u.value=t.value),h=[u];for(null==e&amp;&amp;(e=o);r=h.pop();)if(f&amp;&amp;(r.value=+r.data.value),(i=e(r.data))&amp;&amp;(s=i.length))for(r.children=new Array(s),a=s-1;a&gt;=0;--a)h.push(n=r.children[a]=new c(i[a])),n.parent=r,n.depth=r.depth+1;return u.eachBefore(l)}function o(t){return t.children}function s(t){t.data=t.data.data}function l(t){var e=0;do{t.height=e}while((t=t.parent)&amp;&amp;t.height&lt;++e)}function c(t){this.data=t,this.depth=this.height=0,this.parent=null}c.prototype=a.prototype={constructor:c,count:function(){return this.eachAfter(i)},each:function(t){var e,r,n,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),r=a.children)for(n=0,i=r.length;n&lt;i;++n)o.push(r[n])}while(o.length);return this},eachAfter:function(t){for(var e,r,n,i=this,a=[i],o=[];i=a.pop();)if(o.push(i),e=i.children)for(r=0,n=e.length;r&lt;n;++r)a.push(e[r]);for(;i=o.pop();)t(i);return this},eachBefore:function(t){for(var e,r,n=this,i=[n];n=i.pop();)if(t(n),e=n.children)for(r=e.length-1;r&gt;=0;--r)i.push(e[r]);return this},sum:function(t){return this.eachAfter((function(e){for(var r=+t(e.data)||0,n=e.children,i=n&amp;&amp;n.length;--i&gt;=0;)r+=n[i].value;e.value=r}))},sort:function(t){return this.eachBefore((function(e){e.children&amp;&amp;e.children.sort(t)}))},path:function(t){for(var e=this,r=function(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;t=r.pop(),e=n.pop();for(;t===e;)i=t,t=r.pop(),e=n.pop();return i}(e,t),n=[e];e!==r;)e=e.parent,n.push(e);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(r){r!==t&amp;&amp;e.push({source:r.parent,target:r})})),e},copy:function(){return a(this).eachBefore(s)}};var u=Array.prototype.slice;function f(t){for(var e,r,n=0,i=(t=function(t){for(var e,r,n=t.length;n;)r=Math.random()*n--|0,e=t[n],t[n]=t[r],t[r]=e;return t}(u.call(t))).length,a=[];n&lt;i;)e=t[n],r&amp;&amp;d(r,e)?++n:(r=m(a=h(a,e)),n=0);return r}function h(t,e){var r,n;if(g(e,t))return[e];for(r=0;r&lt;t.length;++r)if(p(e,t[r])&amp;&amp;g(v(t[r],e),t))return[t[r],e];for(r=0;r&lt;t.length-1;++r)for(n=r+1;n&lt;t.length;++n)if(p(v(t[r],t[n]),e)&amp;&amp;p(v(t[r],e),t[n])&amp;&amp;p(v(t[n],e),t[r])&amp;&amp;g(y(t[r],t[n],e),t))return[t[r],t[n],e];throw new Error}function p(t,e){var r=t.r-e.r,n=e.x-t.x,i=e.y-t.y;return r&lt;0||r*r&lt;n*n+i*i}function d(t,e){var r=t.r-e.r+1e-6,n=e.x-t.x,i=e.y-t.y;return r&gt;0&amp;&amp;r*r&gt;n*n+i*i}function g(t,e){for(var r=0;r&lt;e.length;++r)if(!d(t,e[r]))return!1;return!0}function m(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return v(t[0],t[1]);case 3:return y(t[0],t[1],t[2])}var e}function v(t,e){var r=t.x,n=t.y,i=t.r,a=e.x,o=e.y,s=e.r,l=a-r,c=o-n,u=s-i,f=Math.sqrt(l*l+c*c);return{x:(r+a+l/f*u)/2,y:(n+o+c/f*u)/2,r:(f+i+s)/2}}function y(t,e,r){var n=t.x,i=t.y,a=t.r,o=e.x,s=e.y,l=e.r,c=r.x,u=r.y,f=r.r,h=n-o,p=n-c,d=i-s,g=i-u,m=l-a,v=f-a,y=n*n+i*i-a*a,x=y-o*o-s*s+l*l,b=y-c*c-u*u+f*f,_=p*d-h*g,w=(d*b-g*x)/(2*_)-n,T=(g*m-d*v)/_,k=(p*x-h*b)/(2*_)-i,M=(h*v-p*m)/_,A=T*T+M*M-1,S=2*(a+w*T+k*M),E=w*w+k*k-a*a,C=-(A?(S+Math.sqrt(S*S-4*A*E))/(2*A):E/S);return{x:n+w+T*C,y:i+k+M*C,r:C}}function x(t,e,r){var n,i,a,o,s=t.x-e.x,l=t.y-e.y,c=s*s+l*l;c?(i=e.r+r.r,i*=i,o=t.r+r.r,i&gt;(o*=o)?(n=(c+o-i)/(2*c),a=Math.sqrt(Math.max(0,o/c-n*n)),r.x=t.x-n*s-a*l,r.y=t.y-n*l+a*s):(n=(c+i-o)/(2*c),a=Math.sqrt(Math.max(0,i/c-n*n)),r.x=e.x+n*s-a*l,r.y=e.y+n*l+a*s)):(r.x=e.x+r.r,r.y=e.y)}function b(t,e){var r=t.r+e.r-1e-6,n=e.x-t.x,i=e.y-t.y;return r&gt;0&amp;&amp;r*r&gt;n*n+i*i}function _(t){var e=t._,r=t.next._,n=e.r+r.r,i=(e.x*r.r+r.x*e.r)/n,a=(e.y*r.r+r.y*e.r)/n;return i*i+a*a}function w(t){this._=t,this.next=null,this.previous=null}function T(t){if(!(i=t.length))return 0;var e,r,n,i,a,o,s,l,c,u,h;if((e=t[0]).x=0,e.y=0,!(i&gt;1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(i&gt;2))return e.r+r.r;x(r,e,n=t[2]),e=new w(e),r=new w(r),n=new w(n),e.next=n.previous=r,r.next=e.previous=n,n.next=r.previous=e;t:for(s=3;s&lt;i;++s){x(e._,r._,n=t[s]),n=new w(n),l=r.next,c=e.previous,u=r._.r,h=e._.r;do{if(u&lt;=h){if(b(l._,n._)){r=l,e.next=r,r.previous=e,--s;continue t}u+=l._.r,l=l.next}else{if(b(c._,n._)){(e=c).next=r,r.previous=e,--s;continue t}h+=c._.r,c=c.previous}}while(l!==c.next);for(n.previous=e,n.next=r,e.next=r.previous=r=n,a=_(e);(n=n.next)!==r;)(o=_(n))&lt;a&amp;&amp;(e=n,a=o);r=e.next}for(e=[r._],n=r;(n=n.next)!==r;)e.push(n._);for(n=f(e),s=0;s&lt;i;++s)(e=t[s]).x-=n.x,e.y-=n.y;return n.r}function k(t){return null==t?null:M(t)}function M(t){if(&quot;function&quot;!=typeof t)throw new Error;return t}function A(){return 0}function S(t){return function(){return t}}function E(t){return Math.sqrt(t.value)}function C(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function L(t,e){return function(r){if(n=r.children){var n,i,a,o=n.length,s=t(r)*e||0;if(s)for(i=0;i&lt;o;++i)n[i].r+=s;if(a=T(n),s)for(i=0;i&lt;o;++i)n[i].r-=s;r.r=a+s}}}function I(t){return function(e){var r=e.parent;e.r*=t,r&amp;&amp;(e.x=r.x+t*e.x,e.y=r.y+t*e.y)}}function P(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function z(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&amp;&amp;(n-e)/t.value;++s&lt;l;)(a=o[s]).y0=r,a.y1=i,a.x0=e,a.x1=e+=a.value*c}var O={depth:-1},D={};function R(t){return t.id}function F(t){return t.parentId}function B(t,e){return t.parent===e.parent?1:2}function N(t){var e=t.children;return e?e[0]:t.t}function j(t){var e=t.children;return e?e[e.length-1]:t.t}function U(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function V(t,e,r){return t.a.parent===e.parent?t.a:r}function q(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function H(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&amp;&amp;(i-r)/t.value;++s&lt;l;)(a=o[s]).x0=e,a.x1=n,a.y0=r,a.y1=r+=a.value*c}q.prototype=Object.create(c.prototype);var G=(1+Math.sqrt(5))/2;function Y(t,e,r,n,i,a){for(var o,s,l,c,u,f,h,p,d,g,m,v=[],y=e.children,x=0,b=0,_=y.length,w=e.value;x&lt;_;){l=i-r,c=a-n;do{u=y[b++].value}while(!u&amp;&amp;b&lt;_);for(f=h=u,m=u*u*(g=Math.max(c/l,l/c)/(w*t)),d=Math.max(h/m,m/f);b&lt;_;++b){if(u+=s=y[b].value,s&lt;f&amp;&amp;(f=s),s&gt;h&amp;&amp;(h=s),m=u*u*g,(p=Math.max(h/m,m/f))&gt;d){u-=s;break}d=p}v.push(o={value:u,dice:l&lt;c,children:y.slice(x,b)}),o.dice?z(o,r,n,i,w?n+=c*u/w:a):H(o,r,n,w?r+=l*u/w:i,a),w-=u,x=b}return v}var W=function t(e){function r(t,r,n,i,a){Y(e,t,r,n,i,a)}return r.ratio=function(e){return t((e=+e)&gt;1?e:1)},r}(G);var X=function t(e){function r(t,r,n,i,a){if((o=t._squarify)&amp;&amp;o.ratio===e)for(var o,s,l,c,u,f=-1,h=o.length,p=t.value;++f&lt;h;){for(l=(s=o[f]).children,c=s.value=0,u=l.length;c&lt;u;++c)s.value+=l[c].value;s.dice?z(s,r,n,i,n+=(a-n)*s.value/p):H(s,r,n,r+=(i-r)*s.value/p,a),p-=s.value}else t._squarify=o=Y(e,t,r,n,i,a),o.ratio=e}return r.ratio=function(e){return t((e=+e)&gt;1?e:1)},r}(G);t.cluster=function(){var t=e,i=1,a=1,o=!1;function s(e){var s,l=0;e.eachAfter((function(e){var i=e.children;i?(e.x=function(t){return t.reduce(r,0)/t.length}(i),e.y=function(t){return 1+t.reduce(n,0)}(i)):(e.x=s?l+=t(e,s):0,e.y=0,s=e)}));var c=function(t){for(var e;e=t.children;)t=e[0];return t}(e),u=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(e),f=c.x-t(c,u)/2,h=u.x+t(u,c)/2;return e.eachAfter(o?function(t){t.x=(t.x-e.x)*i,t.y=(e.y-t.y)*a}:function(t){t.x=(t.x-f)/(h-f)*i,t.y=(1-(e.y?t.y/e.y:1))*a})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(o=!1,i=+t[0],a=+t[1],s):o?null:[i,a]},s.nodeSize=function(t){return arguments.length?(o=!0,i=+t[0],a=+t[1],s):o?[i,a]:null},s},t.hierarchy=a,t.pack=function(){var t=null,e=1,r=1,n=A;function i(i){return i.x=e/2,i.y=r/2,t?i.eachBefore(C(t)).eachAfter(L(n,.5)).eachBefore(I(1)):i.eachBefore(C(E)).eachAfter(L(A,1)).eachAfter(L(n,i.r/Math.min(e,r))).eachBefore(I(Math.min(e,r)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=k(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],r=+t[1],i):[e,r]},i.padding=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:S(+t),i):n},i},t.packEnclose=f,t.packSiblings=function(t){return T(t),t},t.partition=function(){var t=1,e=1,r=0,n=!1;function i(i){var a=i.height+1;return i.x0=i.y0=r,i.x1=t,i.y1=e/a,i.eachBefore(function(t,e){return function(n){n.children&amp;&amp;z(n,n.x0,t*(n.depth+1)/e,n.x1,t*(n.depth+2)/e);var i=n.x0,a=n.y0,o=n.x1-r,s=n.y1-r;o&lt;i&amp;&amp;(i=o=(i+o)/2),s&lt;a&amp;&amp;(a=s=(a+s)/2),n.x0=i,n.y0=a,n.x1=o,n.y1=s}}(e,a)),n&amp;&amp;i.eachBefore(P),i}return i.round=function(t){return arguments.length?(n=!!t,i):n},i.size=function(r){return arguments.length?(t=+r[0],e=+r[1],i):[t,e]},i.padding=function(t){return arguments.length?(r=+t,i):r},i},t.stratify=function(){var t=R,e=F;function r(r){var n,i,a,o,s,u,f,h=r.length,p=new Array(h),d={};for(i=0;i&lt;h;++i)n=r[i],s=p[i]=new c(n),null!=(u=t(n,i,r))&amp;&amp;(u+=&quot;&quot;)&amp;&amp;(d[f=&quot;$&quot;+(s.id=u)]=f in d?D:s);for(i=0;i&lt;h;++i)if(s=p[i],null!=(u=e(r[i],i,r))&amp;&amp;(u+=&quot;&quot;)){if(!(o=d[&quot;$&quot;+u]))throw new Error(&quot;missing: &quot;+u);if(o===D)throw new Error(&quot;ambiguous: &quot;+u);o.children?o.children.push(s):o.children=[s],s.parent=o}else{if(a)throw new Error(&quot;multiple roots&quot;);a=s}if(!a)throw new Error(&quot;no root&quot;);if(a.parent=O,a.eachBefore((function(t){t.depth=t.parent.depth+1,--h})).eachBefore(l),a.parent=null,h&gt;0)throw new Error(&quot;cycle&quot;);return a}return r.id=function(e){return arguments.length?(t=M(e),r):t},r.parentId=function(t){return arguments.length?(e=M(t),r):e},r},t.tree=function(){var t=B,e=1,r=1,n=null;function i(i){var l=function(t){for(var e,r,n,i,a,o=new q(t,0),s=[o];e=s.pop();)if(n=e._.children)for(e.children=new Array(a=n.length),i=a-1;i&gt;=0;--i)s.push(r=e.children[i]=new q(n[i],i)),r.parent=e;return(o.parent=new q(null,0)).children=[o],o}(i);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(o),n)i.eachBefore(s);else{var c=i,u=i,f=i;i.eachBefore((function(t){t.x&lt;c.x&amp;&amp;(c=t),t.x&gt;u.x&amp;&amp;(u=t),t.depth&gt;f.depth&amp;&amp;(f=t)}));var h=c===u?1:t(c,u)/2,p=h-c.x,d=e/(u.x+h+p),g=r/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*g}))}return i}function a(e){var r=e.children,n=e.parent.children,i=e.i?n[e.i-1]:null;if(r){!function(t){for(var e,r=0,n=0,i=t.children,a=i.length;--a&gt;=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(e);var a=(r[0].z+r[r.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&amp;&amp;(e.z=i.z+t(e._,i._));e.parent.A=function(e,r,n){if(r){for(var i,a=e,o=e,s=r,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=j(s),a=N(a),s&amp;&amp;a;)l=N(l),(o=j(o)).a=e,(i=s.z+f-a.z-c+t(s._,a._))&gt;0&amp;&amp;(U(V(s,e,n),e,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&amp;&amp;!j(o)&amp;&amp;(o.t=s,o.m+=f-u),a&amp;&amp;!N(l)&amp;&amp;(l.t=a,l.m+=c-h,n=e)}return n}(e,i,e.parent.A||n[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*r}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(n=!1,e=+t[0],r=+t[1],i):n?null:[e,r]},i.nodeSize=function(t){return arguments.length?(n=!0,e=+t[0],r=+t[1],i):n?[e,r]:null},i},t.treemap=function(){var t=W,e=!1,r=1,n=1,i=[0],a=A,o=A,s=A,l=A,c=A;function u(t){return t.x0=t.y0=0,t.x1=r,t.y1=n,t.eachBefore(f),i=[0],e&amp;&amp;t.eachBefore(P),t}function f(e){var r=i[e.depth],n=e.x0+r,u=e.y0+r,f=e.x1-r,h=e.y1-r;f&lt;n&amp;&amp;(n=f=(n+f)/2),h&lt;u&amp;&amp;(u=h=(u+h)/2),e.x0=n,e.y0=u,e.x1=f,e.y1=h,e.children&amp;&amp;(r=i[e.depth+1]=a(e)/2,n+=c(e)-r,u+=o(e)-r,(f-=s(e)-r)&lt;n&amp;&amp;(n=f=(n+f)/2),(h-=l(e)-r)&lt;u&amp;&amp;(u=h=(u+h)/2),t(e,n,u,f,h))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(r=+t[0],n=+t[1],u):[r,n]},u.tile=function(e){return arguments.length?(t=M(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:S(+t),u):a},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:S(+t),u):o},u.paddingRight=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:S(+t),u):s},u.paddingBottom=function(t){return arguments.length?(l=&quot;function&quot;==typeof t?t:S(+t),u):l},u.paddingLeft=function(t){return arguments.length?(c=&quot;function&quot;==typeof t?t:S(+t),u):c},u},t.treemapBinary=function(t,e,r,n,i){var a,o,s=t.children,l=s.length,c=new Array(l+1);for(c[0]=o=a=0;a&lt;l;++a)c[a+1]=o+=s[a].value;!function t(e,r,n,i,a,o,l){if(e&gt;=r-1){var u=s[e];return u.x0=i,u.y0=a,u.x1=o,void(u.y1=l)}var f=c[e],h=n/2+f,p=e+1,d=r-1;for(;p&lt;d;){var g=p+d&gt;&gt;&gt;1;c[g]&lt;h?p=g+1:d=g}h-c[p-1]&lt;c[p]-h&amp;&amp;e+1&lt;p&amp;&amp;--p;var m=c[p]-f,v=n-m;if(o-i&gt;l-a){var y=(i*v+o*m)/n;t(e,p,m,i,a,y,l),t(p,r,v,y,a,o,l)}else{var x=(a*v+l*m)/n;t(e,p,m,i,a,o,x),t(p,r,v,i,x,o,l)}}(0,l,t.value,e,r,n,i)},t.treemapDice=z,t.treemapResquarify=X,t.treemapSlice=H,t.treemapSliceDice=function(t,e,r,n,i){(1&amp;t.depth?H:z)(t,e,r,n,i)},t.treemapSquarify=W,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],162:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-color&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}function n(t){var e=t.length-1;return function(n){var i=n&lt;=0?n=0:n&gt;=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i&gt;0?t[i-1]:2*a-o,l=i&lt;e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,l)}}function i(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)&lt;0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],l=t[(i+2)%e];return r((n-i/e)*e,a,o,s,l)}}function a(t){return function(){return t}}function o(t,e){return function(r){return t+r*e}}function s(t,e){var r=e-t;return r?o(t,r&gt;180||r&lt;-180?r-360*Math.round(r/360):r):a(isNaN(t)?e:t)}function l(t){return 1==(t=+t)?c:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):a(isNaN(e)?r:e)}}function c(t,e){var r=e-t;return r?o(t,r):a(isNaN(t)?e:t)}var u=function t(r){var n=l(r);function i(t,r){var i=n((t=e.rgb(t)).r,(r=e.rgb(r)).r),a=n(t.g,r.g),o=n(t.b,r.b),s=c(t.opacity,r.opacity);return function(e){return t.r=i(e),t.g=a(e),t.b=o(e),t.opacity=s(e),t+&quot;&quot;}}return i.gamma=t,i}(1);function f(t){return function(r){var n,i,a=r.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;n&lt;a;++n)i=e.rgb(r[n]),o[n]=i.r||0,s[n]=i.g||0,l[n]=i.b||0;return o=t(o),s=t(s),l=t(l),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=l(t),i+&quot;&quot;}}}var h=f(n),p=f(i);function d(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(r=0;r&lt;n;++r)i[r]=t[r]*(1-a)+e[r]*a;return i}}function g(t){return ArrayBuffer.isView(t)&amp;&amp;!(t instanceof DataView)}function m(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,a=new Array(i),o=new Array(n);for(r=0;r&lt;i;++r)a[r]=T(t[r],e[r]);for(;r&lt;n;++r)o[r]=e[r];return function(t){for(r=0;r&lt;i;++r)o[r]=a[r](t);return o}}function v(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function y(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function x(t,e){var r,n={},i={};for(r in null!==t&amp;&amp;&quot;object&quot;==typeof t||(t={}),null!==e&amp;&amp;&quot;object&quot;==typeof e||(e={}),e)r in t?n[r]=T(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var b=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(b.source,&quot;g&quot;);function w(t,e){var r,n,i,a=b.lastIndex=_.lastIndex=0,o=-1,s=[],l=[];for(t+=&quot;&quot;,e+=&quot;&quot;;(r=b.exec(t))&amp;&amp;(n=_.exec(e));)(i=n.index)&gt;a&amp;&amp;(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:y(r,n)})),a=_.lastIndex;return a&lt;e.length&amp;&amp;(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length&lt;2?l[0]?function(t){return function(e){return t(e)+&quot;&quot;}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var r,n=0;n&lt;e;++n)s[(r=l[n]).i]=r.x(t);return s.join(&quot;&quot;)})}function T(t,r){var n,i=typeof r;return null==r||&quot;boolean&quot;===i?a(r):(&quot;number&quot;===i?y:&quot;string&quot;===i?(n=e.color(r))?(r=n,u):w:r instanceof e.color?u:r instanceof Date?v:g(r)?d:Array.isArray(r)?m:&quot;function&quot;!=typeof r.valueOf&amp;&amp;&quot;function&quot;!=typeof r.toString||isNaN(r)?x:y)(t,r)}var k,M,A,S,E=180/Math.PI,C={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function L(t,e,r,n,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&amp;&amp;(t/=o,e/=o),(l=t*r+e*n)&amp;&amp;(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&amp;&amp;(r/=s,n/=s,l/=s),t*n&lt;e*r&amp;&amp;(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*E,skewX:Math.atan(l)*E,scaleX:o,scaleY:s}}function I(t,e,r,n){function i(t){return t.length?t.pop()+&quot; &quot;:&quot;&quot;}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,n,i,a,o,s){if(t!==i||n!==a){var l=o.push(&quot;translate(&quot;,null,e,null,r);s.push({i:l-4,x:y(t,i)},{i:l-2,x:y(n,a)})}else(i||a)&amp;&amp;o.push(&quot;translate(&quot;+i+e+a+r)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,r,a){t!==e?(t-e&gt;180?e+=360:e-t&gt;180&amp;&amp;(t+=360),a.push({i:r.push(i(r)+&quot;rotate(&quot;,null,n)-2,x:y(t,e)})):e&amp;&amp;r.push(i(r)+&quot;rotate(&quot;+e+n)}(a.rotate,o.rotate,s,l),function(t,e,r,a){t!==e?a.push({i:r.push(i(r)+&quot;skewX(&quot;,null,n)-2,x:y(t,e)}):e&amp;&amp;r.push(i(r)+&quot;skewX(&quot;+e+n)}(a.skewX,o.skewX,s,l),function(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+&quot;scale(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);o.push({i:s-4,x:y(t,r)},{i:s-2,x:y(e,n)})}else 1===r&amp;&amp;1===n||a.push(i(a)+&quot;scale(&quot;+r+&quot;,&quot;+n+&quot;)&quot;)}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,r=-1,n=l.length;++r&lt;n;)s[(e=l[r]).i]=e.x(t);return s.join(&quot;&quot;)}}}var P=I((function(t){return&quot;none&quot;===t?C:(k||(k=document.createElement(&quot;DIV&quot;),M=document.documentElement,A=document.defaultView),k.style.transform=t,t=A.getComputedStyle(M.appendChild(k),null).getPropertyValue(&quot;transform&quot;),M.removeChild(k),L(+(t=t.slice(7,-1).split(&quot;,&quot;))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),&quot;px, &quot;,&quot;px)&quot;,&quot;deg)&quot;),z=I((function(t){return null==t?C:(S||(S=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;)),S.setAttribute(&quot;transform&quot;,t),(t=S.transform.baseVal.consolidate())?L((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):C)}),&quot;, &quot;,&quot;)&quot;,&quot;)&quot;),O=Math.SQRT2;function D(t){return((t=Math.exp(t))+1/t)/2}function R(t){return function(r,n){var i=t((r=e.hsl(r)).h,(n=e.hsl(n)).h),a=c(r.s,n.s),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.s=a(t),r.l=o(t),r.opacity=s(t),r+&quot;&quot;}}}var F=R(s),B=R(c);function N(t){return function(r,n){var i=t((r=e.hcl(r)).h,(n=e.hcl(n)).h),a=c(r.c,n.c),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.c=a(t),r.l=o(t),r.opacity=s(t),r+&quot;&quot;}}}var j=N(s),U=N(c);function V(t){return function r(n){function i(r,i){var a=t((r=e.cubehelix(r)).h,(i=e.cubehelix(i)).h),o=c(r.s,i.s),s=c(r.l,i.l),l=c(r.opacity,i.opacity);return function(t){return r.h=a(t),r.s=o(t),r.l=s(Math.pow(t,n)),r.opacity=l(t),r+&quot;&quot;}}return n=+n,i.gamma=r,i}(1)}var q=V(s),H=V(c);t.interpolate=T,t.interpolateArray=function(t,e){return(g(e)?d:m)(t,e)},t.interpolateBasis=n,t.interpolateBasisClosed=i,t.interpolateCubehelix=q,t.interpolateCubehelixLong=H,t.interpolateDate=v,t.interpolateDiscrete=function(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}},t.interpolateHcl=j,t.interpolateHclLong=U,t.interpolateHsl=F,t.interpolateHslLong=B,t.interpolateHue=function(t,e){var r=s(+t,+e);return function(t){var e=r(t);return e-360*Math.floor(e/360)}},t.interpolateLab=function(t,r){var n=c((t=e.lab(t)).l,(r=e.lab(r)).l),i=c(t.a,r.a),a=c(t.b,r.b),o=c(t.opacity,r.opacity);return function(e){return t.l=n(e),t.a=i(e),t.b=a(e),t.opacity=o(e),t+&quot;&quot;}},t.interpolateNumber=y,t.interpolateNumberArray=d,t.interpolateObject=x,t.interpolateRgb=u,t.interpolateRgbBasis=h,t.interpolateRgbBasisClosed=p,t.interpolateRound=function(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}},t.interpolateString=w,t.interpolateTransformCss=P,t.interpolateTransformSvg=z,t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h&lt;1e-12)n=Math.log(c/o)/O,r=function(t){return[i+t*u,a+t*f,o*Math.exp(O*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),g=(c*c-o*o-4*h)/(2*c*2*p),m=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(g*g+1)-g);n=(v-m)/O,r=function(t){var e,r=t*n,s=D(m),l=o/(2*p)*(s*(e=O*r+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[i+l*u,a+l*f,o*s/D(O*r+m)]}}return r.duration=1e3*n,r},t.piecewise=function(t,e){for(var r=0,n=e.length-1,i=e[0],a=new Array(n&lt;0?0:n);r&lt;n;)a[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return a[e](t-e)}},t.quantize=function(t,e){for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=t(n/(e-1));return r},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-color&quot;:158}],163:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e=Math.PI,r=2*e,n=r-1e-6;function i(){this._x0=this._y0=this._x1=this._y1=null,this._=&quot;&quot;}function a(){return new i}i.prototype=a.prototype={constructor:i,moveTo:function(t,e){this._+=&quot;M&quot;+(this._x0=this._x1=+t)+&quot;,&quot;+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&amp;&amp;(this._x1=this._x0,this._y1=this._y0,this._+=&quot;Z&quot;)},lineTo:function(t,e){this._+=&quot;L&quot;+(this._x1=+t)+&quot;,&quot;+(this._y1=+e)},quadraticCurveTo:function(t,e,r,n){this._+=&quot;Q&quot;+ +t+&quot;,&quot;+ +e+&quot;,&quot;+(this._x1=+r)+&quot;,&quot;+(this._y1=+n)},bezierCurveTo:function(t,e,r,n,i,a){this._+=&quot;C&quot;+ +t+&quot;,&quot;+ +e+&quot;,&quot;+ +r+&quot;,&quot;+ +n+&quot;,&quot;+(this._x1=+i)+&quot;,&quot;+(this._y1=+a)},arcTo:function(t,r,n,i,a){t=+t,r=+r,n=+n,i=+i,a=+a;var o=this._x1,s=this._y1,l=n-t,c=i-r,u=o-t,f=s-r,h=u*u+f*f;if(a&lt;0)throw new Error(&quot;negative radius: &quot;+a);if(null===this._x1)this._+=&quot;M&quot;+(this._x1=t)+&quot;,&quot;+(this._y1=r);else if(h&gt;1e-6)if(Math.abs(f*l-c*u)&gt;1e-6&amp;&amp;a){var p=n-o,d=i-s,g=l*l+c*c,m=p*p+d*d,v=Math.sqrt(g),y=Math.sqrt(h),x=a*Math.tan((e-Math.acos((g+h-m)/(2*v*y)))/2),b=x/y,_=x/v;Math.abs(b-1)&gt;1e-6&amp;&amp;(this._+=&quot;L&quot;+(t+b*u)+&quot;,&quot;+(r+b*f)),this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,0,&quot;+ +(f*p&gt;u*d)+&quot;,&quot;+(this._x1=t+_*l)+&quot;,&quot;+(this._y1=r+_*c)}else this._+=&quot;L&quot;+(this._x1=t)+&quot;,&quot;+(this._y1=r);else;},arc:function(t,i,a,o,s,l){t=+t,i=+i,l=!!l;var c=(a=+a)*Math.cos(o),u=a*Math.sin(o),f=t+c,h=i+u,p=1^l,d=l?o-s:s-o;if(a&lt;0)throw new Error(&quot;negative radius: &quot;+a);null===this._x1?this._+=&quot;M&quot;+f+&quot;,&quot;+h:(Math.abs(this._x1-f)&gt;1e-6||Math.abs(this._y1-h)&gt;1e-6)&amp;&amp;(this._+=&quot;L&quot;+f+&quot;,&quot;+h),a&amp;&amp;(d&lt;0&amp;&amp;(d=d%r+r),d&gt;n?this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,1,&quot;+p+&quot;,&quot;+(t-c)+&quot;,&quot;+(i-u)+&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,1,&quot;+p+&quot;,&quot;+(this._x1=f)+&quot;,&quot;+(this._y1=h):d&gt;1e-6&amp;&amp;(this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,&quot;+ +(d&gt;=e)+&quot;,&quot;+p+&quot;,&quot;+(this._x1=t+a*Math.cos(s))+&quot;,&quot;+(this._y1=i+a*Math.sin(s))))},rect:function(t,e,r,n){this._+=&quot;M&quot;+(this._x0=this._x1=+t)+&quot;,&quot;+(this._y0=this._y1=+e)+&quot;h&quot;+ +r+&quot;v&quot;+ +n+&quot;h&quot;+-r+&quot;Z&quot;},toString:function(){return this._}},t.path=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],164:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var i,a,o,s,l,c,u,f,h,p=t._root,d={data:n},g=t._x0,m=t._y0,v=t._x1,y=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((c=e&gt;=(a=(g+v)/2))?g=a:v=a,(u=r&gt;=(o=(m+y)/2))?m=o:y=o,i=p,!(p=p[f=u&lt;&lt;1|c]))return i[f]=d,t;if(s=+t._x.call(null,p.data),l=+t._y.call(null,p.data),e===s&amp;&amp;r===l)return d.next=p,i?i[f]=d:t._root=d,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(c=e&gt;=(a=(g+v)/2))?g=a:v=a,(u=r&gt;=(o=(m+y)/2))?m=o:y=o}while((f=u&lt;&lt;1|c)==(h=(l&gt;=o)&lt;&lt;1|s&gt;=a));return i[h]=p,i[f]=d,t}function r(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i}function n(t){return t[0]}function i(t){return t[1]}function a(t,e,r){var a=new o(null==e?n:e,null==r?i:r,NaN,NaN,NaN,NaN);return null==t?a:a.addAll(t)}function o(t,e,r,n,i,a){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function s(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var l=a.prototype=o.prototype;l.copy=function(){var t,e,r=new o(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=s(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var i=0;i&lt;4;++i)(e=n.source[i])&amp;&amp;(e.length?t.push({source:e,target:n.target[i]=new Array(4)}):n.target[i]=s(e));return r},l.add=function(t){var r=+this._x.call(null,t),n=+this._y.call(null,t);return e(this.cover(r,n),r,n,t)},l.addAll=function(t){var r,n,i,a,o=t.length,s=new Array(o),l=new Array(o),c=1/0,u=1/0,f=-1/0,h=-1/0;for(n=0;n&lt;o;++n)isNaN(i=+this._x.call(null,r=t[n]))||isNaN(a=+this._y.call(null,r))||(s[n]=i,l[n]=a,i&lt;c&amp;&amp;(c=i),i&gt;f&amp;&amp;(f=i),a&lt;u&amp;&amp;(u=a),a&gt;h&amp;&amp;(h=a));if(c&gt;f||u&gt;h)return this;for(this.cover(c,u).cover(f,h),n=0;n&lt;o;++n)e(this,s[n],l[n],t[n]);return this},l.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,n=this._y0,i=this._x1,a=this._y1;if(isNaN(r))i=(r=Math.floor(t))+1,a=(n=Math.floor(e))+1;else{for(var o,s,l=i-r,c=this._root;r&gt;t||t&gt;=i||n&gt;e||e&gt;=a;)switch(s=(e&lt;n)&lt;&lt;1|t&lt;r,(o=new Array(4))[s]=c,c=o,l*=2,s){case 0:i=r+l,a=n+l;break;case 1:r=i-l,a=n+l;break;case 2:i=r+l,n=a-l;break;case 3:r=i-l,n=a-l}this._root&amp;&amp;this._root.length&amp;&amp;(this._root=c)}return this._x0=r,this._y0=n,this._x1=i,this._y1=a,this},l.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},l.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},l.find=function(t,e,n){var i,a,o,s,l,c,u,f=this._x0,h=this._y0,p=this._x1,d=this._y1,g=[],m=this._root;for(m&amp;&amp;g.push(new r(m,f,h,p,d)),null==n?n=1/0:(f=t-n,h=e-n,p=t+n,d=e+n,n*=n);c=g.pop();)if(!(!(m=c.node)||(a=c.x0)&gt;p||(o=c.y0)&gt;d||(s=c.x1)&lt;f||(l=c.y1)&lt;h))if(m.length){var v=(a+s)/2,y=(o+l)/2;g.push(new r(m[3],v,y,s,l),new r(m[2],a,y,v,l),new r(m[1],v,o,s,y),new r(m[0],a,o,v,y)),(u=(e&gt;=y)&lt;&lt;1|t&gt;=v)&amp;&amp;(c=g[g.length-1],g[g.length-1]=g[g.length-1-u],g[g.length-1-u]=c)}else{var x=t-+this._x.call(null,m.data),b=e-+this._y.call(null,m.data),_=x*x+b*b;if(_&lt;n){var w=Math.sqrt(n=_);f=t-w,h=e-w,p=t+w,d=e+w,i=m.data}}return i},l.remove=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,r,n,i,a,o,s,l,c,u,f,h,p=this._root,d=this._x0,g=this._y0,m=this._x1,v=this._y1;if(!p)return this;if(p.length)for(;;){if((c=a&gt;=(s=(d+m)/2))?d=s:m=s,(u=o&gt;=(l=(g+v)/2))?g=l:v=l,e=p,!(p=p[f=u&lt;&lt;1|c]))return this;if(!p.length)break;(e[f+1&amp;3]||e[f+2&amp;3]||e[f+3&amp;3])&amp;&amp;(r=e,h=f)}for(;p.data!==t;)if(n=p,!(p=p.next))return this;return(i=p.next)&amp;&amp;delete p.next,n?(i?n.next=i:delete n.next,this):e?(i?e[f]=i:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&amp;&amp;p===(e[3]||e[2]||e[1]||e[0])&amp;&amp;!p.length&amp;&amp;(r?r[h]=p:this._root=p),this):(this._root=i,this)},l.removeAll=function(t){for(var e=0,r=t.length;e&lt;r;++e)this.remove(t[e]);return this},l.root=function(){return this._root},l.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},l.visit=function(t){var e,n,i,a,o,s,l=[],c=this._root;for(c&amp;&amp;l.push(new r(c,this._x0,this._y0,this._x1,this._y1));e=l.pop();)if(!t(c=e.node,i=e.x0,a=e.y0,o=e.x1,s=e.y1)&amp;&amp;c.length){var u=(i+o)/2,f=(a+s)/2;(n=c[3])&amp;&amp;l.push(new r(n,u,f,o,s)),(n=c[2])&amp;&amp;l.push(new r(n,i,f,u,s)),(n=c[1])&amp;&amp;l.push(new r(n,u,a,o,f)),(n=c[0])&amp;&amp;l.push(new r(n,i,a,u,f))}return this},l.visitAfter=function(t){var e,n=[],i=[];for(this._root&amp;&amp;n.push(new r(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var a=e.node;if(a.length){var o,s=e.x0,l=e.y0,c=e.x1,u=e.y1,f=(s+c)/2,h=(l+u)/2;(o=a[0])&amp;&amp;n.push(new r(o,s,l,f,h)),(o=a[1])&amp;&amp;n.push(new r(o,f,l,c,h)),(o=a[2])&amp;&amp;n.push(new r(o,s,h,f,u)),(o=a[3])&amp;&amp;n.push(new r(o,f,h,c,u))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},l.x=function(t){return arguments.length?(this._x=t,this):this._x},l.y=function(t){return arguments.length?(this._y=t,this):this._y},t.quadtree=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],165:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-path&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t){return function(){return t}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,c=Math.sqrt,u=Math.PI,f=u/2,h=2*u;function p(t){return t&gt;1?0:t&lt;-1?u:Math.acos(t)}function d(t){return t&gt;=1?f:t&lt;=-1?-f:Math.asin(t)}function g(t){return t.innerRadius}function m(t){return t.outerRadius}function v(t){return t.startAngle}function y(t){return t.endAngle}function x(t){return t&amp;&amp;t.padAngle}function b(t,e,r,n,i,a,o,s){var l=r-t,c=n-e,u=o-i,f=s-a,h=f*l-u*c;if(!(h*h&lt;1e-12))return[t+(h=(u*(e-a)-f*(t-i))/h)*l,e+h*c]}function _(t,e,r,n,i,a,s){var l=t-r,u=e-n,f=(s?a:-a)/c(l*l+u*u),h=f*u,p=-f*l,d=t+h,g=e+p,m=r+h,v=n+p,y=(d+m)/2,x=(g+v)/2,b=m-d,_=v-g,w=b*b+_*_,T=i-a,k=d*v-m*g,M=(_&lt;0?-1:1)*c(o(0,T*T*w-k*k)),A=(k*_-b*M)/w,S=(-k*b-_*M)/w,E=(k*_+b*M)/w,C=(-k*b+_*M)/w,L=A-y,I=S-x,P=E-y,z=C-x;return L*L+I*I&gt;P*P+z*z&amp;&amp;(A=E,S=C),{cx:A,cy:S,x01:-h,y01:-p,x11:A*(i/T-1),y11:S*(i/T-1)}}function w(t){this._context=t}function T(t){return new w(t)}function k(t){return t[0]}function M(t){return t[1]}function A(){var t=k,n=M,i=r(!0),a=null,o=T,s=null;function l(r){var l,c,u,f=r.length,h=!1;for(null==a&amp;&amp;(s=o(u=e.path())),l=0;l&lt;=f;++l)!(l&lt;f&amp;&amp;i(c=r[l],l,r))===h&amp;&amp;((h=!h)?s.lineStart():s.lineEnd()),h&amp;&amp;s.point(+t(c,l,r),+n(c,l,r));if(u)return s=null,u+&quot;&quot;||null}return l.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),l):t},l.y=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:r(+t),l):n},l.defined=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(!!t),l):i},l.curve=function(t){return arguments.length?(o=t,null!=a&amp;&amp;(s=o(a)),l):o},l.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),l):a},l}function S(){var t=k,n=null,i=r(0),a=M,o=r(!0),s=null,l=T,c=null;function u(r){var u,f,h,p,d,g=r.length,m=!1,v=new Array(g),y=new Array(g);for(null==s&amp;&amp;(c=l(d=e.path())),u=0;u&lt;=g;++u){if(!(u&lt;g&amp;&amp;o(p=r[u],u,r))===m)if(m=!m)f=u,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),h=u-1;h&gt;=f;--h)c.point(v[h],y[h]);c.lineEnd(),c.areaEnd()}m&amp;&amp;(v[u]=+t(p,u,r),y[u]=+i(p,u,r),c.point(n?+n(p,u,r):v[u],a?+a(p,u,r):y[u]))}if(d)return c=null,d+&quot;&quot;||null}function f(){return A().defined(o).curve(l).context(s)}return u.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),n=null,u):t},u.x0=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),u):t},u.x1=function(t){return arguments.length?(n=null==t?null:&quot;function&quot;==typeof t?t:r(+t),u):n},u.y=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),a=null,u):i},u.y0=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),u):i},u.y1=function(t){return arguments.length?(a=null==t?null:&quot;function&quot;==typeof t?t:r(+t),u):a},u.lineX0=u.lineY0=function(){return f().x(t).y(i)},u.lineY1=function(){return f().x(t).y(a)},u.lineX1=function(){return f().x(n).y(i)},u.defined=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(!!t),u):o},u.curve=function(t){return arguments.length?(l=t,null!=s&amp;&amp;(c=l(s)),u):l},u.context=function(t){return arguments.length?(null==t?s=c=null:c=l(s=t),u):s},u}function E(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN}function C(t){return t}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var L=P(T);function I(t){this._curve=t}function P(t){function e(e){return new I(t(e))}return e._curve=t,e}function z(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(P(t)):e()._curve},t}function O(){return z(A().curve(L))}function D(){var t=S().curve(L),e=t.curve,r=t.lineX0,n=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return z(r())},delete t.lineX0,t.lineEndAngle=function(){return z(n())},delete t.lineX1,t.lineInnerRadius=function(){return z(i())},delete t.lineY0,t.lineOuterRadius=function(){return z(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(P(t)):e()._curve},t}function R(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}I.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var F=Array.prototype.slice;function B(t){return t.source}function N(t){return t.target}function j(t){var n=B,i=N,a=k,o=M,s=null;function l(){var r,l=F.call(arguments),c=n.apply(this,l),u=i.apply(this,l);if(s||(s=r=e.path()),t(s,+a.apply(this,(l[0]=c,l)),+o.apply(this,l),+a.apply(this,(l[0]=u,l)),+o.apply(this,l)),r)return s=null,r+&quot;&quot;||null}return l.source=function(t){return arguments.length?(n=t,l):n},l.target=function(t){return arguments.length?(i=t,l):i},l.x=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:r(+t),l):a},l.y=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),l):o},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function U(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,i,n,i)}function V(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e,r=(r+i)/2,n,r,n,i)}function q(t,e,r,n,i){var a=R(e,r),o=R(e,r=(r+i)/2),s=R(n,r),l=R(n,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}var H={draw:function(t,e){var r=Math.sqrt(e/u);t.moveTo(r,0),t.arc(0,0,r,0,h)}},G={draw:function(t,e){var r=Math.sqrt(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Y=Math.sqrt(1/3),W=2*Y,X={draw:function(t,e){var r=Math.sqrt(e/W),n=r*Y;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Z=Math.sin(u/10)/Math.sin(7*u/10),J=Math.sin(h/10)*Z,K=-Math.cos(h/10)*Z,Q={draw:function(t,e){var r=Math.sqrt(.8908130915292852*e),n=J*r,i=K*r;t.moveTo(0,-r),t.lineTo(n,i);for(var a=1;a&lt;5;++a){var o=h*a/5,s=Math.cos(o),l=Math.sin(o);t.lineTo(l*r,-s*r),t.lineTo(s*n-l*i,l*n+s*i)}t.closePath()}},$={draw:function(t,e){var r=Math.sqrt(e),n=-r/2;t.rect(n,n,r,r)}},tt=Math.sqrt(3),et={draw:function(t,e){var r=-Math.sqrt(e/(3*tt));t.moveTo(0,2*r),t.lineTo(-tt*r,-r),t.lineTo(tt*r,-r),t.closePath()}},rt=-.5,nt=Math.sqrt(3)/2,it=1/Math.sqrt(12),at=3*(it/2+1),ot={draw:function(t,e){var r=Math.sqrt(e/at),n=r/2,i=r*it,a=n,o=r*it+r,s=-a,l=o;t.moveTo(n,i),t.lineTo(a,o),t.lineTo(s,l),t.lineTo(rt*n-nt*i,nt*n+rt*i),t.lineTo(rt*a-nt*o,nt*a+rt*o),t.lineTo(rt*s-nt*l,nt*s+rt*l),t.lineTo(rt*n+nt*i,rt*i-nt*n),t.lineTo(rt*a+nt*o,rt*o-nt*a),t.lineTo(rt*s+nt*l,rt*l-nt*s),t.closePath()}},st=[H,G,X,$,Q,et,ot];function lt(){}function ct(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function ut(t){this._context=t}function ft(t){this._context=t}function ht(t){this._context=t}function pt(t,e){this._basis=new ut(t),this._beta=e}ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ct(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ft.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},pt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r&gt;0)for(var n,i=t[0],a=e[0],o=t[r]-i,s=e[r]-a,l=-1;++l&lt;=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+n*o),this._beta*e[l]+(1-this._beta)*(a+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var dt=function t(e){function r(t){return 1===e?new ut(t):new pt(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function gt(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function mt(t,e){this._context=t,this._k=(1-e)/6}mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:gt(this,this._x1,this._y1)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var vt=function t(e){function r(t){return new mt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function yt(t,e){this._context=t,this._k=(1-e)/6}yt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var xt=function t(e){function r(t){return new yt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function bt(t,e){this._context=t,this._k=(1-e)/6}bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var _t=function t(e){function r(t){return new bt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function wt(t,e,r){var n=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a&gt;1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a&gt;1e-12){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(n,i,a,o,t._x2,t._y2)}function Tt(t,e){this._context=t,this._alpha=e}Tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var kt=function t(e){function r(t){return e?new Tt(t,e):new mt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Mt(t,e){this._context=t,this._alpha=e}Mt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var At=function t(e){function r(t){return e?new Mt(t,e):new yt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function St(t,e){this._context=t,this._alpha=e}St.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Et=function t(e){function r(t){return e?new St(t,e):new bt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Ct(t){this._context=t}function Lt(t){return t&lt;0?-1:1}function It(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i&lt;0&amp;&amp;-0),o=(r-t._y1)/(i||n&lt;0&amp;&amp;-0),s=(a*i+o*n)/(n+i);return(Lt(a)+Lt(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Pt(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function zt(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-n)/3;t._context.bezierCurveTo(n+s,i+s*e,a-s,o-s*r,a,o)}function Ot(t){this._context=t}function Dt(t){this._context=new Rt(t)}function Rt(t){this._context=t}function Ft(t){this._context=t}function Bt(t){var e,r,n=t.length-1,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e&lt;n-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e&lt;n;++e)r=i[e]/a[e-1],a[e]-=r,o[e]-=r*o[e-1];for(i[n-1]=o[n-1]/a[n-1],e=n-2;e&gt;=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[n-1]=(t[n]+i[n-1])/2,e=0;e&lt;n-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function Nt(t,e){this._context=t,this._t=e}function jt(t,e){if((i=t.length)&gt;1)for(var r,n,i,a=1,o=t[e[0]],s=o.length;a&lt;i;++a)for(n=o,o=t[e[a]],r=0;r&lt;s;++r)o[r][1]+=o[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Ut(t){for(var e=t.length,r=new Array(e);--e&gt;=0;)r[e]=e;return r}function Vt(t,e){return t[e]}function qt(t){var e=t.map(Ht);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function Ht(t){for(var e,r=-1,n=0,i=t.length,a=-1/0;++r&lt;i;)(e=+t[r][1])&gt;a&amp;&amp;(a=e,n=r);return n}function Gt(t){var e=t.map(Yt);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function Yt(t){for(var e,r=0,n=-1,i=t.length;++n&lt;i;)(e=+t[n][1])&amp;&amp;(r+=e);return r}Ct.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._point=0},lineEnd:function(){this._point&amp;&amp;this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Ot.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:zt(this,this._t0,Pt(this,this._t0))}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,zt(this,Pt(this,r=It(this,t,e)),r);break;default:zt(this,this._t0,r=It(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Dt.prototype=Object.create(Ot.prototype)).point=function(t,e){Ot.prototype.point.call(this,e,t)},Rt.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}},Ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=Bt(t),i=Bt(e),a=0,o=1;o&lt;r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&amp;&amp;1===r)&amp;&amp;this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Nt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0&lt;this._t&amp;&amp;this._t&lt;1&amp;&amp;2===this._point&amp;&amp;this._context.lineTo(this._x,this._y),(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line&gt;=0&amp;&amp;(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t&lt;=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},t.arc=function(){var t=g,o=m,w=r(0),T=null,k=v,M=y,A=x,S=null;function E(){var r,g,m=+t.apply(this,arguments),v=+o.apply(this,arguments),y=k.apply(this,arguments)-f,x=M.apply(this,arguments)-f,E=n(x-y),C=x&gt;y;if(S||(S=r=e.path()),v&lt;m&amp;&amp;(g=v,v=m,m=g),v&gt;1e-12)if(E&gt;h-1e-12)S.moveTo(v*a(y),v*l(y)),S.arc(0,0,v,y,x,!C),m&gt;1e-12&amp;&amp;(S.moveTo(m*a(x),m*l(x)),S.arc(0,0,m,x,y,C));else{var L,I,P=y,z=x,O=y,D=x,R=E,F=E,B=A.apply(this,arguments)/2,N=B&gt;1e-12&amp;&amp;(T?+T.apply(this,arguments):c(m*m+v*v)),j=s(n(v-m)/2,+w.apply(this,arguments)),U=j,V=j;if(N&gt;1e-12){var q=d(N/m*l(B)),H=d(N/v*l(B));(R-=2*q)&gt;1e-12?(O+=q*=C?1:-1,D-=q):(R=0,O=D=(y+x)/2),(F-=2*H)&gt;1e-12?(P+=H*=C?1:-1,z-=H):(F=0,P=z=(y+x)/2)}var G=v*a(P),Y=v*l(P),W=m*a(D),X=m*l(D);if(j&gt;1e-12){var Z,J=v*a(z),K=v*l(z),Q=m*a(O),$=m*l(O);if(E&lt;u&amp;&amp;(Z=b(G,Y,Q,$,J,K,W,X))){var tt=G-Z[0],et=Y-Z[1],rt=J-Z[0],nt=K-Z[1],it=1/l(p((tt*rt+et*nt)/(c(tt*tt+et*et)*c(rt*rt+nt*nt)))/2),at=c(Z[0]*Z[0]+Z[1]*Z[1]);U=s(j,(m-at)/(it-1)),V=s(j,(v-at)/(it+1))}}F&gt;1e-12?V&gt;1e-12?(L=_(Q,$,G,Y,v,V,C),I=_(J,K,W,X,v,V,C),S.moveTo(L.cx+L.x01,L.cy+L.y01),V&lt;j?S.arc(L.cx,L.cy,V,i(L.y01,L.x01),i(I.y01,I.x01),!C):(S.arc(L.cx,L.cy,V,i(L.y01,L.x01),i(L.y11,L.x11),!C),S.arc(0,0,v,i(L.cy+L.y11,L.cx+L.x11),i(I.cy+I.y11,I.cx+I.x11),!C),S.arc(I.cx,I.cy,V,i(I.y11,I.x11),i(I.y01,I.x01),!C))):(S.moveTo(G,Y),S.arc(0,0,v,P,z,!C)):S.moveTo(G,Y),m&gt;1e-12&amp;&amp;R&gt;1e-12?U&gt;1e-12?(L=_(W,X,J,K,m,-U,C),I=_(G,Y,Q,$,m,-U,C),S.lineTo(L.cx+L.x01,L.cy+L.y01),U&lt;j?S.arc(L.cx,L.cy,U,i(L.y01,L.x01),i(I.y01,I.x01),!C):(S.arc(L.cx,L.cy,U,i(L.y01,L.x01),i(L.y11,L.x11),!C),S.arc(0,0,m,i(L.cy+L.y11,L.cx+L.x11),i(I.cy+I.y11,I.cx+I.x11),C),S.arc(I.cx,I.cy,U,i(I.y11,I.x11),i(I.y01,I.x01),!C))):S.arc(0,0,m,D,O,C):S.lineTo(W,X)}else S.moveTo(0,0);if(S.closePath(),r)return S=null,r+&quot;&quot;||null}return E.centroid=function(){var e=(+t.apply(this,arguments)+ +o.apply(this,arguments))/2,r=(+k.apply(this,arguments)+ +M.apply(this,arguments))/2-u/2;return[a(r)*e,l(r)*e]},E.innerRadius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),E):t},E.outerRadius=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),E):o},E.cornerRadius=function(t){return arguments.length?(w=&quot;function&quot;==typeof t?t:r(+t),E):w},E.padRadius=function(t){return arguments.length?(T=null==t?null:&quot;function&quot;==typeof t?t:r(+t),E):T},E.startAngle=function(t){return arguments.length?(k=&quot;function&quot;==typeof t?t:r(+t),E):k},E.endAngle=function(t){return arguments.length?(M=&quot;function&quot;==typeof t?t:r(+t),E):M},E.padAngle=function(t){return arguments.length?(A=&quot;function&quot;==typeof t?t:r(+t),E):A},E.context=function(t){return arguments.length?(S=null==t?null:t,E):S},E},t.area=S,t.areaRadial=D,t.curveBasis=function(t){return new ut(t)},t.curveBasisClosed=function(t){return new ft(t)},t.curveBasisOpen=function(t){return new ht(t)},t.curveBundle=dt,t.curveCardinal=vt,t.curveCardinalClosed=xt,t.curveCardinalOpen=_t,t.curveCatmullRom=kt,t.curveCatmullRomClosed=At,t.curveCatmullRomOpen=Et,t.curveLinear=T,t.curveLinearClosed=function(t){return new Ct(t)},t.curveMonotoneX=function(t){return new Ot(t)},t.curveMonotoneY=function(t){return new Dt(t)},t.curveNatural=function(t){return new Ft(t)},t.curveStep=function(t){return new Nt(t,.5)},t.curveStepAfter=function(t){return new Nt(t,1)},t.curveStepBefore=function(t){return new Nt(t,0)},t.line=A,t.lineRadial=O,t.linkHorizontal=function(){return j(U)},t.linkRadial=function(){var t=j(q);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},t.linkVertical=function(){return j(V)},t.pie=function(){var t=C,e=E,n=null,i=r(0),a=r(h),o=r(0);function s(r){var s,l,c,u,f,p=r.length,d=0,g=new Array(p),m=new Array(p),v=+i.apply(this,arguments),y=Math.min(h,Math.max(-h,a.apply(this,arguments)-v)),x=Math.min(Math.abs(y)/p,o.apply(this,arguments)),b=x*(y&lt;0?-1:1);for(s=0;s&lt;p;++s)(f=m[g[s]=s]=+t(r[s],s,r))&gt;0&amp;&amp;(d+=f);for(null!=e?g.sort((function(t,r){return e(m[t],m[r])})):null!=n&amp;&amp;g.sort((function(t,e){return n(r[t],r[e])})),s=0,c=d?(y-p*b)/d:0;s&lt;p;++s,v=u)l=g[s],u=v+((f=m[l])&gt;0?f*c:0)+b,m[l]={data:r[l],index:s,value:f,startAngle:v,endAngle:u,padAngle:x};return m}return s.value=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),s):i},s.endAngle=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:r(+t),s):a},s.padAngle=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),s):o},s},t.pointRadial=R,t.radialArea=D,t.radialLine=O,t.stack=function(){var t=r([]),e=Ut,n=jt,i=Vt;function a(r){var a,o,s=t.apply(this,arguments),l=r.length,c=s.length,u=new Array(c);for(a=0;a&lt;c;++a){for(var f,h=s[a],p=u[a]=new Array(l),d=0;d&lt;l;++d)p[d]=f=[0,+i(r[d],h,d,r)],f.data=r[d];p.key=h}for(a=0,o=e(u);a&lt;c;++a)u[o[a]].index=a;return n(u,o),u}return a.keys=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(F.call(e)),a):t},a.value=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),a):i},a.order=function(t){return arguments.length?(e=null==t?Ut:&quot;function&quot;==typeof t?t:r(F.call(t)),a):e},a.offset=function(t){return arguments.length?(n=null==t?jt:t,a):n},a},t.stackOffsetDiverging=function(t,e){if((s=t.length)&gt;0)for(var r,n,i,a,o,s,l=0,c=t[e[0]].length;l&lt;c;++l)for(a=o=0,r=0;r&lt;s;++r)(i=(n=t[e[r]][l])[1]-n[0])&gt;0?(n[0]=a,n[1]=a+=i):i&lt;0?(n[1]=o,n[0]=o+=i):(n[0]=0,n[1]=i)},t.stackOffsetExpand=function(t,e){if((n=t.length)&gt;0){for(var r,n,i,a=0,o=t[0].length;a&lt;o;++a){for(i=r=0;r&lt;n;++r)i+=t[r][a][1]||0;if(i)for(r=0;r&lt;n;++r)t[r][a][1]/=i}jt(t,e)}},t.stackOffsetNone=jt,t.stackOffsetSilhouette=function(t,e){if((r=t.length)&gt;0){for(var r,n=0,i=t[e[0]],a=i.length;n&lt;a;++n){for(var o=0,s=0;o&lt;r;++o)s+=t[o][n][1]||0;i[n][1]+=i[n][0]=-s/2}jt(t,e)}},t.stackOffsetWiggle=function(t,e){if((i=t.length)&gt;0&amp;&amp;(n=(r=t[e[0]]).length)&gt;0){for(var r,n,i,a=0,o=1;o&lt;n;++o){for(var s=0,l=0,c=0;s&lt;i;++s){for(var u=t[e[s]],f=u[o][1]||0,h=(f-(u[o-1][1]||0))/2,p=0;p&lt;s;++p){var d=t[e[p]];h+=(d[o][1]||0)-(d[o-1][1]||0)}l+=f,c+=h*f}r[o-1][1]+=r[o-1][0]=a,l&amp;&amp;(a-=c/l)}r[o-1][1]+=r[o-1][0]=a,jt(t,e)}},t.stackOrderAppearance=qt,t.stackOrderAscending=Gt,t.stackOrderDescending=function(t){return Gt(t).reverse()},t.stackOrderInsideOut=function(t){var e,r,n=t.length,i=t.map(Yt),a=qt(t),o=0,s=0,l=[],c=[];for(e=0;e&lt;n;++e)r=a[e],o&lt;s?(o+=i[r],l.push(r)):(s+=i[r],c.push(r));return c.reverse().concat(l)},t.stackOrderNone=Ut,t.stackOrderReverse=function(t){return Ut(t).reverse()},t.symbol=function(){var t=r(H),n=r(64),i=null;function a(){var r;if(i||(i=r=e.path()),t.apply(this,arguments).draw(i,+n.apply(this,arguments)),r)return i=null,r+&quot;&quot;||null}return a.type=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(e),a):t},a.size=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:r(+t),a):n},a.context=function(t){return arguments.length?(i=null==t?null:t,a):i},a},t.symbolCircle=H,t.symbolCross=G,t.symbolDiamond=X,t.symbolSquare=$,t.symbolStar=Q,t.symbolTriangle=et,t.symbolWye=ot,t.symbols=st,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-path&quot;:163}],166:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-time&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t){if(0&lt;=t.y&amp;&amp;t.y&lt;100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function n(t){if(0&lt;=t.y&amp;&amp;t.y&lt;100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function i(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function a(t){var a=t.dateTime,o=t.date,l=t.time,c=t.periods,u=t.days,f=t.shortDays,h=t.months,yt=t.shortMonths,xt=p(c),bt=d(c),_t=p(u),wt=d(u),Tt=p(f),kt=d(f),Mt=p(h),At=d(h),St=p(yt),Et=d(yt),Ct={a:function(t){return f[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return yt[t.getMonth()]},B:function(t){return h[t.getMonth()]},c:null,d:D,e:D,f:j,H:R,I:F,j:B,L:N,m:U,M:V,p:function(t){return c[+(t.getHours()&gt;=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:mt,s:vt,S:q,u:H,U:G,V:Y,w:W,W:X,x:null,X:null,y:Z,Y:J,Z:K,&quot;%&quot;:gt},Lt={a:function(t){return f[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return yt[t.getUTCMonth()]},B:function(t){return h[t.getUTCMonth()]},c:null,d:Q,e:Q,f:nt,H:$,I:tt,j:et,L:rt,m:it,M:at,p:function(t){return c[+(t.getUTCHours()&gt;=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:mt,s:vt,S:ot,u:st,U:lt,V:ct,w:ut,W:ft,x:null,X:null,y:ht,Y:pt,Z:dt,&quot;%&quot;:gt},It={a:function(t,e,r){var n=Tt.exec(e.slice(r));return n?(t.w=kt[n[0].toLowerCase()],r+n[0].length):-1},A:function(t,e,r){var n=_t.exec(e.slice(r));return n?(t.w=wt[n[0].toLowerCase()],r+n[0].length):-1},b:function(t,e,r){var n=St.exec(e.slice(r));return n?(t.m=Et[n[0].toLowerCase()],r+n[0].length):-1},B:function(t,e,r){var n=Mt.exec(e.slice(r));return n?(t.m=At[n[0].toLowerCase()],r+n[0].length):-1},c:function(t,e,r){return Ot(t,a,e,r)},d:M,e:M,f:I,H:S,I:S,j:A,L:L,m:k,M:E,p:function(t,e,r){var n=xt.exec(e.slice(r));return n?(t.p=bt[n[0].toLowerCase()],r+n[0].length):-1},q:T,Q:z,s:O,S:C,u:m,U:v,V:y,w:g,W:x,x:function(t,e,r){return Ot(t,o,e,r)},X:function(t,e,r){return Ot(t,l,e,r)},y:_,Y:b,Z:w,&quot;%&quot;:P};function Pt(t,e){return function(r){var n,i,a,o=[],l=-1,c=0,u=t.length;for(r instanceof Date||(r=new Date(+r));++l&lt;u;)37===t.charCodeAt(l)&amp;&amp;(o.push(t.slice(c,l)),null!=(i=s[n=t.charAt(++l)])?n=t.charAt(++l):i=&quot;e&quot;===n?&quot; &quot;:&quot;0&quot;,(a=e[n])&amp;&amp;(n=a(r,i)),o.push(n),c=l+1);return o.push(t.slice(c,l)),o.join(&quot;&quot;)}}function zt(t,a){return function(o){var s,l,c=i(1900,void 0,1);if(Ot(c,t,o+=&quot;&quot;,0)!=o.length)return null;if(&quot;Q&quot;in c)return new Date(c.Q);if(&quot;s&quot;in c)return new Date(1e3*c.s+(&quot;L&quot;in c?c.L:0));if(a&amp;&amp;!(&quot;Z&quot;in c)&amp;&amp;(c.Z=0),&quot;p&quot;in c&amp;&amp;(c.H=c.H%12+12*c.p),void 0===c.m&amp;&amp;(c.m=&quot;q&quot;in c?c.q:0),&quot;V&quot;in c){if(c.V&lt;1||c.V&gt;53)return null;&quot;w&quot;in c||(c.w=1),&quot;Z&quot;in c?(l=(s=n(i(c.y,0,1))).getUTCDay(),s=l&gt;4||0===l?e.utcMonday.ceil(s):e.utcMonday(s),s=e.utcDay.offset(s,7*(c.V-1)),c.y=s.getUTCFullYear(),c.m=s.getUTCMonth(),c.d=s.getUTCDate()+(c.w+6)%7):(l=(s=r(i(c.y,0,1))).getDay(),s=l&gt;4||0===l?e.timeMonday.ceil(s):e.timeMonday(s),s=e.timeDay.offset(s,7*(c.V-1)),c.y=s.getFullYear(),c.m=s.getMonth(),c.d=s.getDate()+(c.w+6)%7)}else(&quot;W&quot;in c||&quot;U&quot;in c)&amp;&amp;(&quot;w&quot;in c||(c.w=&quot;u&quot;in c?c.u%7:&quot;W&quot;in c?1:0),l=&quot;Z&quot;in c?n(i(c.y,0,1)).getUTCDay():r(i(c.y,0,1)).getDay(),c.m=0,c.d=&quot;W&quot;in c?(c.w+6)%7+7*c.W-(l+5)%7:c.w+7*c.U-(l+6)%7);return&quot;Z&quot;in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,n(c)):r(c)}}function Ot(t,e,r,n){for(var i,a,o=0,l=e.length,c=r.length;o&lt;l;){if(n&gt;=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=It[i in s?e.charAt(o++):i])||(n=a(t,r,n))&lt;0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return Ct.x=Pt(o,Ct),Ct.X=Pt(l,Ct),Ct.c=Pt(a,Ct),Lt.x=Pt(o,Lt),Lt.X=Pt(l,Lt),Lt.c=Pt(a,Lt),{format:function(t){var e=Pt(t+=&quot;&quot;,Ct);return e.toString=function(){return t},e},parse:function(t){var e=zt(t+=&quot;&quot;,!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=Pt(t+=&quot;&quot;,Lt);return e.toString=function(){return t},e},utcParse:function(t){var e=zt(t+=&quot;&quot;,!0);return e.toString=function(){return t},e}}}var o,s={&quot;-&quot;:&quot;&quot;,_:&quot; &quot;,0:&quot;0&quot;},l=/^\s*\d+/,c=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(t,e,r){var n=t&lt;0?&quot;-&quot;:&quot;&quot;,i=(n?-t:t)+&quot;&quot;,a=i.length;return n+(a&lt;r?new Array(r-a+1).join(e)+i:i)}function h(t){return t.replace(u,&quot;\\$&amp;&quot;)}function p(t){return new RegExp(&quot;^(?:&quot;+t.map(h).join(&quot;|&quot;)+&quot;)&quot;,&quot;i&quot;)}function d(t){for(var e={},r=-1,n=t.length;++r&lt;n;)e[t[r].toLowerCase()]=r;return e}function g(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function m(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function v(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function y(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function x(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function b(t,e,r){var n=l.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function _(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]&gt;68?1900:2e3),r+n[0].length):-1}function w(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||&quot;00&quot;)),r+n[0].length):-1}function T(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function k(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function M(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function A(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function S(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function E(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function C(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function L(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function I(t,e,r){var n=l.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function P(t,e,r){var n=c.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function z(t,e,r){var n=l.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function O(t,e,r){var n=l.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function D(t,e){return f(t.getDate(),e,2)}function R(t,e){return f(t.getHours(),e,2)}function F(t,e){return f(t.getHours()%12||12,e,2)}function B(t,r){return f(1+e.timeDay.count(e.timeYear(t),t),r,3)}function N(t,e){return f(t.getMilliseconds(),e,3)}function j(t,e){return N(t,e)+&quot;000&quot;}function U(t,e){return f(t.getMonth()+1,e,2)}function V(t,e){return f(t.getMinutes(),e,2)}function q(t,e){return f(t.getSeconds(),e,2)}function H(t){var e=t.getDay();return 0===e?7:e}function G(t,r){return f(e.timeSunday.count(e.timeYear(t)-1,t),r,2)}function Y(t,r){var n=t.getDay();return t=n&gt;=4||0===n?e.timeThursday(t):e.timeThursday.ceil(t),f(e.timeThursday.count(e.timeYear(t),t)+(4===e.timeYear(t).getDay()),r,2)}function W(t){return t.getDay()}function X(t,r){return f(e.timeMonday.count(e.timeYear(t)-1,t),r,2)}function Z(t,e){return f(t.getFullYear()%100,e,2)}function J(t,e){return f(t.getFullYear()%1e4,e,4)}function K(t){var e=t.getTimezoneOffset();return(e&gt;0?&quot;-&quot;:(e*=-1,&quot;+&quot;))+f(e/60|0,&quot;0&quot;,2)+f(e%60,&quot;0&quot;,2)}function Q(t,e){return f(t.getUTCDate(),e,2)}function $(t,e){return f(t.getUTCHours(),e,2)}function tt(t,e){return f(t.getUTCHours()%12||12,e,2)}function et(t,r){return f(1+e.utcDay.count(e.utcYear(t),t),r,3)}function rt(t,e){return f(t.getUTCMilliseconds(),e,3)}function nt(t,e){return rt(t,e)+&quot;000&quot;}function it(t,e){return f(t.getUTCMonth()+1,e,2)}function at(t,e){return f(t.getUTCMinutes(),e,2)}function ot(t,e){return f(t.getUTCSeconds(),e,2)}function st(t){var e=t.getUTCDay();return 0===e?7:e}function lt(t,r){return f(e.utcSunday.count(e.utcYear(t)-1,t),r,2)}function ct(t,r){var n=t.getUTCDay();return t=n&gt;=4||0===n?e.utcThursday(t):e.utcThursday.ceil(t),f(e.utcThursday.count(e.utcYear(t),t)+(4===e.utcYear(t).getUTCDay()),r,2)}function ut(t){return t.getUTCDay()}function ft(t,r){return f(e.utcMonday.count(e.utcYear(t)-1,t),r,2)}function ht(t,e){return f(t.getUTCFullYear()%100,e,2)}function pt(t,e){return f(t.getUTCFullYear()%1e4,e,4)}function dt(){return&quot;+0000&quot;}function gt(){return&quot;%&quot;}function mt(t){return+t}function vt(t){return Math.floor(+t/1e3)}function yt(e){return o=a(e),t.timeFormat=o.format,t.timeParse=o.parse,t.utcFormat=o.utcFormat,t.utcParse=o.utcParse,o}yt({dateTime:&quot;%x, %X&quot;,date:&quot;%-m/%-d/%Y&quot;,time:&quot;%-I:%M:%S %p&quot;,periods:[&quot;AM&quot;,&quot;PM&quot;],days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;]});var xt=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);var bt=+new Date(&quot;2000-01-01T00:00:00.000Z&quot;)?function(t){var e=new Date(t);return isNaN(e)?null:e}:t.utcParse(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);t.isoFormat=xt,t.isoParse=bt,t.timeFormatDefaultLocale=yt,t.timeFormatLocale=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-time&quot;:167}],167:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e=new Date,r=new Date;function n(t,i,a,o){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),i(e,1),t(e),e},s.round=function(t){var e=s(t),r=s.ceil(t);return t-e&lt;r-t?e:r},s.offset=function(t,e){return i(t=new Date(+t),null==e?1:Math.floor(e)),t},s.range=function(e,r,n){var a,o=[];if(e=s.ceil(e),n=null==n?1:Math.floor(n),!(e&lt;r&amp;&amp;n&gt;0))return o;do{o.push(a=new Date(+e)),i(e,n),t(e)}while(a&lt;e&amp;&amp;e&lt;r);return o},s.filter=function(e){return n((function(r){if(r&gt;=r)for(;t(r),!e(r);)r.setTime(r-1)}),(function(t,r){if(t&gt;=t)if(r&lt;0)for(;++r&lt;=0;)for(;i(t,-1),!e(t););else for(;--r&gt;=0;)for(;i(t,1),!e(t););}))},a&amp;&amp;(s.count=function(n,i){return e.setTime(+n),r.setTime(+i),t(e),t(r),Math.floor(a(e,r))},s.every=function(t){return t=Math.floor(t),isFinite(t)&amp;&amp;t&gt;0?t&gt;1?s.filter(o?function(e){return o(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}var i=n((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));i.every=function(t){return t=Math.floor(t),isFinite(t)&amp;&amp;t&gt;0?t&gt;1?n((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,r){e.setTime(+e+r*t)}),(function(e,r){return(r-e)/t})):i:null};var a=i.range,o=n((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()})),s=o.range,l=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()})),c=l.range,u=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()})),f=u.range,h=n((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1})),p=h.range;function d(t){return n((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var g=d(0),m=d(1),v=d(2),y=d(3),x=d(4),b=d(5),_=d(6),w=g.range,T=m.range,k=v.range,M=y.range,A=x.range,S=b.range,E=_.range,C=n((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),L=C.range,I=n((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));I.every=function(t){return isFinite(t=Math.floor(t))&amp;&amp;t&gt;0?n((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,r){e.setFullYear(e.getFullYear()+r*t)})):null};var P=I.range,z=n((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getUTCMinutes()})),O=z.range,D=n((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()})),R=D.range,F=n((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1})),B=F.range;function N(t){return n((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}var j=N(0),U=N(1),V=N(2),q=N(3),H=N(4),G=N(5),Y=N(6),W=j.range,X=U.range,Z=V.range,J=q.range,K=H.range,Q=G.range,$=Y.range,tt=n((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),et=tt.range,rt=n((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));rt.every=function(t){return isFinite(t=Math.floor(t))&amp;&amp;t&gt;0?n((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null};var nt=rt.range;t.timeDay=h,t.timeDays=p,t.timeFriday=b,t.timeFridays=S,t.timeHour=u,t.timeHours=f,t.timeInterval=n,t.timeMillisecond=i,t.timeMilliseconds=a,t.timeMinute=l,t.timeMinutes=c,t.timeMonday=m,t.timeMondays=T,t.timeMonth=C,t.timeMonths=L,t.timeSaturday=_,t.timeSaturdays=E,t.timeSecond=o,t.timeSeconds=s,t.timeSunday=g,t.timeSundays=w,t.timeThursday=x,t.timeThursdays=A,t.timeTuesday=v,t.timeTuesdays=k,t.timeWednesday=y,t.timeWednesdays=M,t.timeWeek=g,t.timeWeeks=w,t.timeYear=I,t.timeYears=P,t.utcDay=F,t.utcDays=B,t.utcFriday=G,t.utcFridays=Q,t.utcHour=D,t.utcHours=R,t.utcMillisecond=i,t.utcMilliseconds=a,t.utcMinute=z,t.utcMinutes=O,t.utcMonday=U,t.utcMondays=X,t.utcMonth=tt,t.utcMonths=et,t.utcSaturday=Y,t.utcSaturdays=$,t.utcSecond=o,t.utcSeconds=s,t.utcSunday=j,t.utcSundays=W,t.utcThursday=H,t.utcThursdays=K,t.utcTuesday=V,t.utcTuesdays=Z,t.utcWednesday=q,t.utcWednesdays=J,t.utcWeek=j,t.utcWeeks=W,t.utcYear=rt,t.utcYears=nt,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],168:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e,r,n=0,i=0,a=0,o=0,s=0,l=0,c=&quot;object&quot;==typeof performance&amp;&amp;performance.now?performance:Date,u=&quot;object&quot;==typeof window&amp;&amp;window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function f(){return s||(u(h),s=c.now()+l)}function h(){s=0}function p(){this._call=this._time=this._next=null}function d(t,e,r){var n=new p;return n.restart(t,e,r),n}function g(){f(),++n;for(var t,r=e;r;)(t=s-r._time)&gt;=0&amp;&amp;r._call.call(null,t),r=r._next;--n}function m(){s=(o=c.now())+l,n=i=0;try{g()}finally{n=0,function(){var t,n,i=e,a=1/0;for(;i;)i._call?(a&gt;i._time&amp;&amp;(a=i._time),t=i,i=i._next):(n=i._next,i._next=null,i=t?t._next=n:e=n);r=t,y(a)}(),s=0}}function v(){var t=c.now(),e=t-o;e&gt;1e3&amp;&amp;(l-=e,o=t)}function y(t){n||(i&amp;&amp;(i=clearTimeout(i)),t-s&gt;24?(t&lt;1/0&amp;&amp;(i=setTimeout(m,t-c.now()-l)),a&amp;&amp;(a=clearInterval(a))):(a||(o=c.now(),a=setInterval(v,1e3)),n=1,u(m)))}p.prototype=d.prototype={constructor:p,restart:function(t,n,i){if(&quot;function&quot;!=typeof t)throw new TypeError(&quot;callback is not a function&quot;);i=(null==i?f():+i)+(null==n?0:+n),this._next||r===this||(r?r._next=this:e=this,r=this),this._call=t,this._time=i,y()},stop:function(){this._call&amp;&amp;(this._call=null,this._time=1/0,y())}},t.interval=function(t,e,r){var n=new p,i=e;return null==e?(n.restart(t,e,r),n):(e=+e,r=null==r?f():+r,n.restart((function a(o){o+=i,n.restart(a,i+=e,r),t(o)}),e,r),n)},t.now=f,t.timeout=function(t,e,r){var n=new p;return e=null==e?0:+e,n.restart((function(r){n.stop(),t(r+e)}),e,r),n},t.timer=d,t.timerFlush=g,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],169:[function(t,e,r){!function(){var t={version:&quot;3.5.17&quot;},r=[].slice,n=function(t){return r.call(t)},i=this.document;function a(t){return t&amp;&amp;(t.ownerDocument||t.document||t).documentElement}function o(t){return t&amp;&amp;(t.ownerDocument&amp;&amp;t.ownerDocument.defaultView||t.document&amp;&amp;t||t.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch(t){n=function(t){for(var e=t.length,r=new Array(e);e--;)r[e]=t[e];return r}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement(&quot;DIV&quot;).style.setProperty(&quot;opacity&quot;,0,&quot;&quot;)}catch(t){var s=this.Element.prototype,l=s.setAttribute,c=s.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;s.setAttribute=function(t,e){l.call(this,t,e+&quot;&quot;)},s.setAttributeNS=function(t,e,r){c.call(this,t,e,r+&quot;&quot;)},u.setProperty=function(t,e,r){f.call(this,t,e+&quot;&quot;,r)}}function h(t,e){return t&lt;e?-1:t&gt;e?1:t&gt;=e?0:NaN}function p(t){return null===t?NaN:+t}function d(t){return!isNaN(t)}function g(t){return{left:function(e,r,n,i){for(arguments.length&lt;3&amp;&amp;(n=0),arguments.length&lt;4&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&lt;0?n=a+1:i=a}return n},right:function(e,r,n,i){for(arguments.length&lt;3&amp;&amp;(n=0),arguments.length&lt;4&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&gt;0?i=a:n=a+1}return n}}}t.ascending=h,t.descending=function(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN},t.min=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i&lt;a;)if(null!=(n=t[i])&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=t[i])&amp;&amp;r&gt;n&amp;&amp;(r=n)}else{for(;++i&lt;a;)if(null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=e.call(t,t[i],i))&amp;&amp;r&gt;n&amp;&amp;(r=n)}return r},t.max=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i&lt;a;)if(null!=(n=t[i])&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=t[i])&amp;&amp;n&gt;r&amp;&amp;(r=n)}else{for(;++i&lt;a;)if(null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;r&amp;&amp;(r=n)}return r},t.extent=function(t,e){var r,n,i,a=-1,o=t.length;if(1===arguments.length){for(;++a&lt;o;)if(null!=(n=t[a])&amp;&amp;n&gt;=n){r=i=n;break}for(;++a&lt;o;)null!=(n=t[a])&amp;&amp;(r&gt;n&amp;&amp;(r=n),i&lt;n&amp;&amp;(i=n))}else{for(;++a&lt;o;)if(null!=(n=e.call(t,t[a],a))&amp;&amp;n&gt;=n){r=i=n;break}for(;++a&lt;o;)null!=(n=e.call(t,t[a],a))&amp;&amp;(r&gt;n&amp;&amp;(r=n),i&lt;n&amp;&amp;(i=n))}return[r,i]},t.sum=function(t,e){var r,n=0,i=t.length,a=-1;if(1===arguments.length)for(;++a&lt;i;)d(r=+t[a])&amp;&amp;(n+=r);else for(;++a&lt;i;)d(r=+e.call(t,t[a],a))&amp;&amp;(n+=r);return n},t.mean=function(t,e){var r,n=0,i=t.length,a=-1,o=i;if(1===arguments.length)for(;++a&lt;i;)d(r=p(t[a]))?n+=r:--o;else for(;++a&lt;i;)d(r=p(e.call(t,t[a],a)))?n+=r:--o;if(o)return n/o},t.quantile=function(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i},t.median=function(e,r){var n,i=[],a=e.length,o=-1;if(1===arguments.length)for(;++o&lt;a;)d(n=p(e[o]))&amp;&amp;i.push(n);else for(;++o&lt;a;)d(n=p(r.call(e,e[o],o)))&amp;&amp;i.push(n);if(i.length)return t.quantile(i.sort(h),.5)},t.variance=function(t,e){var r,n,i=t.length,a=0,o=0,s=-1,l=0;if(1===arguments.length)for(;++s&lt;i;)d(r=p(t[s]))&amp;&amp;(o+=(n=r-a)*(r-(a+=n/++l)));else for(;++s&lt;i;)d(r=p(e.call(t,t[s],s)))&amp;&amp;(o+=(n=r-a)*(r-(a+=n/++l)));if(l&gt;1)return o/(l-1)},t.deviation=function(){var e=t.variance.apply(this,arguments);return e?Math.sqrt(e):e};var m=g(h);function v(t){return t.length}t.bisectLeft=m.left,t.bisect=t.bisectRight=m.right,t.bisector=function(t){return g(1===t.length?function(e,r){return h(t(e),r)}:t)},t.shuffle=function(t,e,r){(a=arguments.length)&lt;3&amp;&amp;(r=t.length,a&lt;2&amp;&amp;(e=0));for(var n,i,a=r-e;a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.pairs=function(t){for(var e=0,r=t.length-1,n=t[0],i=new Array(r&lt;0?0:r);e&lt;r;)i[e]=[n,n=t[++e]];return i},t.transpose=function(e){if(!(a=e.length))return[];for(var r=-1,n=t.min(e,v),i=new Array(n);++r&lt;n;)for(var a,o=-1,s=i[r]=new Array(a);++o&lt;a;)s[o]=e[o][r];return i},t.zip=function(){return t.transpose(arguments)},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a&lt;i;)o+=t[a].length;for(r=new Array(o);--i&gt;=0;)for(e=(n=t[i]).length;--e&gt;=0;)r[--o]=n[e];return r};var y=Math.abs;function x(t){for(var e=1;t*e%1;)e*=10;return e}function b(t,e){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],enumerable:!1})}function _(){this._=Object.create(null)}t.range=function(t,e,r){if(arguments.length&lt;3&amp;&amp;(r=1,arguments.length&lt;2&amp;&amp;(e=t,t=0)),(e-t)/r==1/0)throw new Error(&quot;infinite range&quot;);var n,i=[],a=x(y(r)),o=-1;if(t*=a,e*=a,(r*=a)&lt;0)for(;(n=t+r*++o)&gt;e;)i.push(n/a);else for(;(n=t+r*++o)&lt;e;)i.push(n/a);return i},t.map=function(t,e){var r=new _;if(t instanceof _)t.forEach((function(t,e){r.set(t,e)}));else if(Array.isArray(t)){var n,i=-1,a=t.length;if(1===arguments.length)for(;++i&lt;a;)r.set(i,t[i]);else for(;++i&lt;a;)r.set(e.call(t,n=t[i],i),n)}else for(var o in t)r.set(o,t[o]);return r};function w(t){return&quot;__proto__&quot;==(t+=&quot;&quot;)||&quot;\0&quot;===t[0]?&quot;\0&quot;+t:t}function T(t){return&quot;\0&quot;===(t+=&quot;&quot;)[0]?t.slice(1):t}function k(t){return w(t)in this._}function M(t){return(t=w(t))in this._&amp;&amp;delete this._[t]}function A(){var t=[];for(var e in this._)t.push(T(e));return t}function S(){var t=0;for(var e in this._)++t;return t}function E(){for(var t in this._)return!1;return!0}function C(){this._=Object.create(null)}function L(t){return t}function I(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}function P(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var r=0,n=z.length;r&lt;n;++r){var i=z[r]+e;if(i in t)return i}}b(_,{has:k,get:function(t){return this._[w(t)]},set:function(t,e){return this._[w(t)]=e},remove:M,keys:A,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:T(e),value:this._[e]});return t},size:S,empty:E,forEach:function(t){for(var e in this._)t.call(this,T(e),this._[e])}}),t.nest=function(){var e,r,n={},i=[],a=[];function o(t,a,s){if(s&gt;=i.length)return r?r.call(n,a):e?a.sort(e):a;for(var l,c,u,f,h=-1,p=a.length,d=i[s++],g=new _;++h&lt;p;)(f=g.get(l=d(c=a[h])))?f.push(c):g.set(l,[c]);return t?(c=t(),u=function(e,r){c.set(e,o(t,r,s))}):(c={},u=function(e,r){c[e]=o(t,r,s)}),g.forEach(u),c}return n.map=function(t,e){return o(e,t,0)},n.entries=function(e){return function t(e,r){if(r&gt;=i.length)return e;var n=[],o=a[r++];return e.forEach((function(e,i){n.push({key:e,values:t(i,r)})})),o?n.sort((function(t,e){return o(t.key,e.key)})):n}(o(t.map,e,0),0)},n.key=function(t){return i.push(t),n},n.sortKeys=function(t){return a[i.length-1]=t,n},n.sortValues=function(t){return e=t,n},n.rollup=function(t){return r=t,n},n},t.set=function(t){var e=new C;if(t)for(var r=0,n=t.length;r&lt;n;++r)e.add(t[r]);return e},b(C,{has:k,add:function(t){return this._[w(t+=&quot;&quot;)]=!0,t},remove:M,values:A,size:S,empty:E,forEach:function(t){for(var e in this._)t.call(this,T(e))}}),t.behavior={},t.rebind=function(t,e){for(var r,n=1,i=arguments.length;++n&lt;i;)t[r=arguments[n]]=I(t,e,e[r]);return t};var z=[&quot;webkit&quot;,&quot;ms&quot;,&quot;moz&quot;,&quot;Moz&quot;,&quot;o&quot;,&quot;O&quot;];function O(){}function D(){}function R(t){var e=[],r=new _;function n(){for(var r,n=e,i=-1,a=n.length;++i&lt;a;)(r=n[i].on)&amp;&amp;r.apply(this,arguments);return t}return n.on=function(n,i){var a,o=r.get(n);return arguments.length&lt;2?o&amp;&amp;o.on:(o&amp;&amp;(o.on=null,e=e.slice(0,a=e.indexOf(o)).concat(e.slice(a+1)),r.remove(n)),i&amp;&amp;e.push(r.set(n,{on:i})),t)},n}function F(){t.event.preventDefault()}function B(){for(var e,r=t.event;e=r.sourceEvent;)r=e;return r}function N(e){for(var r=new D,n=0,i=arguments.length;++n&lt;i;)r[arguments[n]]=R(r);return r.of=function(n,i){return function(a){try{var o=a.sourceEvent=t.event;a.target=e,t.event=a,r[a.type].apply(n,i)}finally{t.event=o}}},r}t.dispatch=function(){for(var t=new D,e=-1,r=arguments.length;++e&lt;r;)t[arguments[e]]=R(t);return t},D.prototype.on=function(t,e){var r=t.indexOf(&quot;.&quot;),n=&quot;&quot;;if(r&gt;=0&amp;&amp;(n=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length&lt;2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&amp;&amp;this[t].on(n,null);return this}},t.event=null,t.requote=function(t){return t.replace(j,&quot;\\$&amp;&quot;)};var j=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,U={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)t[r]=e[r]};function V(t){return U(t,Y),t}var q=function(t,e){return e.querySelector(t)},H=function(t,e){return e.querySelectorAll(t)},G=function(t,e){var r=t.matches||t[P(t,&quot;matchesSelector&quot;)];return(G=function(t,e){return r.call(t,e)})(t,e)};&quot;function&quot;==typeof Sizzle&amp;&amp;(q=function(t,e){return Sizzle(t,e)[0]||null},H=Sizzle,G=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Y=t.selection.prototype=[];function W(t){return&quot;function&quot;==typeof t?t:function(){return q(t,this)}}function X(t){return&quot;function&quot;==typeof t?t:function(){return H(t,this)}}Y.select=function(t){var e,r,n,i,a=[];t=W(t);for(var o=-1,s=this.length;++o&lt;s;){a.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var l=-1,c=n.length;++l&lt;c;)(i=n[l])?(e.push(r=t.call(i,i.__data__,l,o)),r&amp;&amp;&quot;__data__&quot;in i&amp;&amp;(r.__data__=i.__data__)):e.push(null)}return V(a)},Y.selectAll=function(t){var e,r,i=[];t=X(t);for(var a=-1,o=this.length;++a&lt;o;)for(var s=this[a],l=-1,c=s.length;++l&lt;c;)(r=s[l])&amp;&amp;(i.push(e=n(t.call(r,r.__data__,l,a))),e.parentNode=r);return V(i)};var Z=&quot;http://www.w3.org/1999/xhtml&quot;,J={svg:&quot;http://www.w3.org/2000/svg&quot;,xhtml:Z,xlink:&quot;http://www.w3.org/1999/xlink&quot;,xml:&quot;http://www.w3.org/XML/1998/namespace&quot;,xmlns:&quot;http://www.w3.org/2000/xmlns/&quot;};function K(e,r){return e=t.ns.qualify(e),null==r?e.local?function(){this.removeAttributeNS(e.space,e.local)}:function(){this.removeAttribute(e)}:&quot;function&quot;==typeof r?e.local?function(){var t=r.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}:function(){var t=r.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}:e.local?function(){this.setAttributeNS(e.space,e.local,r)}:function(){this.setAttribute(e,r)}}function Q(t){return t.trim().replace(/\s+/g,&quot; &quot;)}function $(e){return new RegExp(&quot;(?:^|\\s+)&quot;+t.requote(e)+&quot;(?:\\s+|$)&quot;,&quot;g&quot;)}function tt(t){return(t+&quot;&quot;).trim().split(/^|\s+/)}function et(t,e){var r=(t=tt(t).map(rt)).length;return&quot;function&quot;==typeof e?function(){for(var n=-1,i=e.apply(this,arguments);++n&lt;r;)t[n](this,i)}:function(){for(var n=-1;++n&lt;r;)t[n](this,e)}}function rt(t){var e=$(t);return function(r,n){if(i=r.classList)return n?i.add(t):i.remove(t);var i=r.getAttribute(&quot;class&quot;)||&quot;&quot;;n?(e.lastIndex=0,e.test(i)||r.setAttribute(&quot;class&quot;,Q(i+&quot; &quot;+t))):r.setAttribute(&quot;class&quot;,Q(i.replace(e,&quot; &quot;)))}}function nt(t,e,r){return null==e?function(){this.style.removeProperty(t)}:&quot;function&quot;==typeof e?function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}:function(){this.style.setProperty(t,e,r)}}function it(t,e){return null==e?function(){delete this[t]}:&quot;function&quot;==typeof e?function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}:function(){this[t]=e}}function at(e){return&quot;function&quot;==typeof e?e:(e=t.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Z&amp;&amp;t.documentElement.namespaceURI===Z?t.createElement(e):t.createElementNS(r,e)}}function ot(){var t=this.parentNode;t&amp;&amp;t.removeChild(this)}function st(t){return{__data__:t}}function lt(t){return function(){return G(this,t)}}function ct(t){return arguments.length||(t=h),function(e,r){return e&amp;&amp;r?t(e.__data__,r.__data__):!e-!r}}function ut(t,e){for(var r=0,n=t.length;r&lt;n;r++)for(var i,a=t[r],o=0,s=a.length;o&lt;s;o++)(i=a[o])&amp;&amp;e(i,o,r);return t}function ft(t){return U(t,ht),t}t.ns={prefix:J,qualify:function(t){var e=t.indexOf(&quot;:&quot;),r=t;return e&gt;=0&amp;&amp;&quot;xmlns&quot;!==(r=t.slice(0,e))&amp;&amp;(t=t.slice(e+1)),J.hasOwnProperty(r)?{space:J[r],local:t}:t}},Y.attr=function(e,r){if(arguments.length&lt;2){if(&quot;string&quot;==typeof e){var n=this.node();return(e=t.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(r in e)this.each(K(r,e[r]));return this}return this.each(K(e,r))},Y.classed=function(t,e){if(arguments.length&lt;2){if(&quot;string&quot;==typeof t){var r=this.node(),n=(t=tt(t)).length,i=-1;if(e=r.classList){for(;++i&lt;n;)if(!e.contains(t[i]))return!1}else for(e=r.getAttribute(&quot;class&quot;);++i&lt;n;)if(!$(t[i]).test(e))return!1;return!0}for(e in t)this.each(et(e,t[e]));return this}return this.each(et(t,e))},Y.style=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=&quot;&quot;),t)this.each(nt(r,t[r],e));return this}if(n&lt;2){var i=this.node();return o(i).getComputedStyle(i,null).getPropertyValue(t)}r=&quot;&quot;}return this.each(nt(t,e,r))},Y.property=function(t,e){if(arguments.length&lt;2){if(&quot;string&quot;==typeof t)return this.node()[t];for(e in t)this.each(it(e,t[e]));return this}return this.each(it(t,e))},Y.text=function(t){return arguments.length?this.each(&quot;function&quot;==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?&quot;&quot;:e}:null==t?function(){this.textContent=&quot;&quot;}:function(){this.textContent=t}):this.node().textContent},Y.html=function(t){return arguments.length?this.each(&quot;function&quot;==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?&quot;&quot;:e}:null==t?function(){this.innerHTML=&quot;&quot;}:function(){this.innerHTML=t}):this.node().innerHTML},Y.append=function(t){return t=at(t),this.select((function(){return this.appendChild(t.apply(this,arguments))}))},Y.insert=function(t,e){return t=at(t),e=W(e),this.select((function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)}))},Y.remove=function(){return this.each(ot)},Y.data=function(t,e){var r,n,i=-1,a=this.length;if(!arguments.length){for(t=new Array(a=(r=this[0]).length);++i&lt;a;)(n=r[i])&amp;&amp;(t[i]=n.__data__);return t}function o(t,r){var n,i,a,o=t.length,u=r.length,f=Math.min(o,u),h=new Array(u),p=new Array(u),d=new Array(o);if(e){var g,m=new _,v=new Array(o);for(n=-1;++n&lt;o;)(i=t[n])&amp;&amp;(m.has(g=e.call(i,i.__data__,n))?d[n]=i:m.set(g,i),v[n]=g);for(n=-1;++n&lt;u;)(i=m.get(g=e.call(r,a=r[n],n)))?!0!==i&amp;&amp;(h[n]=i,i.__data__=a):p[n]=st(a),m.set(g,!0);for(n=-1;++n&lt;o;)n in v&amp;&amp;!0!==m.get(v[n])&amp;&amp;(d[n]=t[n])}else{for(n=-1;++n&lt;f;)i=t[n],a=r[n],i?(i.__data__=a,h[n]=i):p[n]=st(a);for(;n&lt;u;++n)p[n]=st(r[n]);for(;n&lt;o;++n)d[n]=t[n]}p.update=h,p.parentNode=h.parentNode=d.parentNode=t.parentNode,s.push(p),l.push(h),c.push(d)}var s=ft([]),l=V([]),c=V([]);if(&quot;function&quot;==typeof t)for(;++i&lt;a;)o(r=this[i],t.call(r,r.parentNode.__data__,i));else for(;++i&lt;a;)o(r=this[i],t);return l.enter=function(){return s},l.exit=function(){return c},l},Y.datum=function(t){return arguments.length?this.property(&quot;__data__&quot;,t):this.property(&quot;__data__&quot;)},Y.filter=function(t){var e,r,n,i=[];&quot;function&quot;!=typeof t&amp;&amp;(t=lt(t));for(var a=0,o=this.length;a&lt;o;a++){i.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var s=0,l=r.length;s&lt;l;s++)(n=r[s])&amp;&amp;t.call(n,n.__data__,s,a)&amp;&amp;e.push(n)}return V(i)},Y.order=function(){for(var t=-1,e=this.length;++t&lt;e;)for(var r,n=this[t],i=n.length-1,a=n[i];--i&gt;=0;)(r=n[i])&amp;&amp;(a&amp;&amp;a!==r.nextSibling&amp;&amp;a.parentNode.insertBefore(r,a),a=r);return this},Y.sort=function(t){t=ct.apply(this,arguments);for(var e=-1,r=this.length;++e&lt;r;)this[e].sort(t);return this.order()},Y.each=function(t){return ut(this,(function(e,r,n){t.call(e,e.__data__,r,n)}))},Y.call=function(t){var e=n(arguments);return t.apply(e[0]=this,e),this},Y.empty=function(){return!this.node()},Y.node=function(){for(var t=0,e=this.length;t&lt;e;t++)for(var r=this[t],n=0,i=r.length;n&lt;i;n++){var a=r[n];if(a)return a}return null},Y.size=function(){var t=0;return ut(this,(function(){++t})),t};var ht=[];function pt(t){var e,r;return function(n,i,a){var o,s=t[a].update,l=s.length;for(a!=r&amp;&amp;(r=a,e=0),i&gt;=e&amp;&amp;(e=i+1);!(o=s[e])&amp;&amp;++e&lt;l;);return o}}function dt(e,r,i){var a=&quot;__on&quot;+e,o=e.indexOf(&quot;.&quot;),s=mt;o&gt;0&amp;&amp;(e=e.slice(0,o));var l=gt.get(e);function c(){var t=this[a];t&amp;&amp;(this.removeEventListener(e,t,t.$),delete this[a])}return l&amp;&amp;(e=l,s=vt),o?r?function(){var t=s(r,n(arguments));c.call(this),this.addEventListener(e,this[a]=t,t.$=i),t._=r}:c:r?O:function(){var r,n=new RegExp(&quot;^__on([^.]+)&quot;+t.requote(e)+&quot;$&quot;);for(var i in this)if(r=i.match(n)){var a=this[i];this.removeEventListener(r[1],a,a.$),delete this[i]}}}t.selection.enter=ft,t.selection.enter.prototype=ht,ht.append=Y.append,ht.empty=Y.empty,ht.node=Y.node,ht.call=Y.call,ht.size=Y.size,ht.select=function(t){for(var e,r,n,i,a,o=[],s=-1,l=this.length;++s&lt;l;){n=(i=this[s]).update,o.push(e=[]),e.parentNode=i.parentNode;for(var c=-1,u=i.length;++c&lt;u;)(a=i[c])?(e.push(n[c]=r=t.call(i.parentNode,a.__data__,c,s)),r.__data__=a.__data__):e.push(null)}return V(o)},ht.insert=function(t,e){return arguments.length&lt;2&amp;&amp;(e=pt(this)),Y.insert.call(this,t,e)},t.select=function(t){var e;return&quot;string&quot;==typeof t?(e=[q(t,i)]).parentNode=i.documentElement:(e=[t]).parentNode=a(t),V([e])},t.selectAll=function(t){var e;return&quot;string&quot;==typeof t?(e=n(H(t,i))).parentNode=i.documentElement:(e=n(t)).parentNode=null,V([e])},Y.on=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=!1),t)this.each(dt(r,t[r],e));return this}if(n&lt;2)return(n=this.node()[&quot;__on&quot;+t])&amp;&amp;n._;r=!1}return this.each(dt(t,e,r))};var gt=t.map({mouseenter:&quot;mouseover&quot;,mouseleave:&quot;mouseout&quot;});function mt(e,r){return function(n){var i=t.event;t.event=n,r[0]=this.__data__;try{e.apply(this,r)}finally{t.event=i}}}function vt(t,e){var r=mt(t,e);return function(t){var e=t.relatedTarget;e&amp;&amp;(e===this||8&amp;e.compareDocumentPosition(this))||r.call(this,t)}}i&amp;&amp;gt.forEach((function(t){&quot;on&quot;+t in i&amp;&amp;gt.remove(t)}));var yt,xt=0;function bt(e){var r=&quot;.dragsuppress-&quot;+ ++xt,n=&quot;click&quot;+r,i=t.select(o(e)).on(&quot;touchmove&quot;+r,F).on(&quot;dragstart&quot;+r,F).on(&quot;selectstart&quot;+r,F);if(null==yt&amp;&amp;(yt=!(&quot;onselectstart&quot;in e)&amp;&amp;P(e.style,&quot;userSelect&quot;)),yt){var s=a(e).style,l=s[yt];s[yt]=&quot;none&quot;}return function(t){if(i.on(r,null),yt&amp;&amp;(s[yt]=l),t){var e=function(){i.on(n,null)};i.on(n,(function(){F(),e()}),!0),setTimeout(e,0)}}}t.mouse=function(t){return wt(t,B())};var _t=this.navigator&amp;&amp;/WebKit/.test(this.navigator.userAgent)?-1:0;function wt(e,r){r.changedTouches&amp;&amp;(r=r.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();if(_t&lt;0){var a=o(e);if(a.scrollX||a.scrollY){var s=(n=t.select(&quot;body&quot;).append(&quot;svg&quot;).style({position:&quot;absolute&quot;,top:0,left:0,margin:0,padding:0,border:&quot;none&quot;},&quot;important&quot;))[0][0].getScreenCTM();_t=!(s.f||s.e),n.remove()}}return _t?(i.x=r.pageX,i.y=r.pageY):(i.x=r.clientX,i.y=r.clientY),[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}var l=e.getBoundingClientRect();return[r.clientX-l.left-e.clientLeft,r.clientY-l.top-e.clientTop]}function Tt(){return t.event.changedTouches[0].identifier}t.touch=function(t,e,r){if(arguments.length&lt;3&amp;&amp;(r=e,e=B().changedTouches),e)for(var n,i=0,a=e.length;i&lt;a;++i)if((n=e[i]).identifier===r)return wt(t,n)},t.behavior.drag=function(){var e=N(a,&quot;drag&quot;,&quot;dragstart&quot;,&quot;dragend&quot;),r=null,n=s(O,t.mouse,o,&quot;mousemove&quot;,&quot;mouseup&quot;),i=s(Tt,t.touch,L,&quot;touchmove&quot;,&quot;touchend&quot;);function a(){this.on(&quot;mousedown.drag&quot;,n).on(&quot;touchstart.drag&quot;,i)}function s(n,i,a,o,s){return function(){var l,c=this,u=t.event.target.correspondingElement||t.event.target,f=c.parentNode,h=e.of(c,arguments),p=0,d=n(),g=&quot;.drag&quot;+(null==d?&quot;&quot;:&quot;-&quot;+d),m=t.select(a(u)).on(o+g,x).on(s+g,b),v=bt(u),y=i(f,d);function x(){var t,e,r=i(f,d);r&amp;&amp;(t=r[0]-y[0],e=r[1]-y[1],p|=t|e,y=r,h({type:&quot;drag&quot;,x:r[0]+l[0],y:r[1]+l[1],dx:t,dy:e}))}function b(){i(f,d)&amp;&amp;(m.on(o+g,null).on(s+g,null),v(p),h({type:&quot;dragend&quot;}))}l=r?[(l=r.apply(c,arguments)).x-y[0],l.y-y[1]]:[0,0],h({type:&quot;dragstart&quot;})}}return a.origin=function(t){return arguments.length?(r=t,a):r},t.rebind(a,e,&quot;on&quot;)},t.touches=function(t,e){return arguments.length&lt;2&amp;&amp;(e=B().touches),e?n(e).map((function(e){var r=wt(t,e);return r.identifier=e.identifier,r})):[]};var kt=1e-6,Mt=1e-12,At=Math.PI,St=2*At,Et=St-kt,Ct=At/2,Lt=At/180,It=180/At;function Pt(t){return t&gt;0?1:t&lt;0?-1:0}function zt(t,e,r){return(e[0]-t[0])*(r[1]-t[1])-(e[1]-t[1])*(r[0]-t[0])}function Ot(t){return t&gt;1?0:t&lt;-1?At:Math.acos(t)}function Dt(t){return t&gt;1?Ct:t&lt;-1?-Ct:Math.asin(t)}function Rt(t){return((t=Math.exp(t))+1/t)/2}function Ft(t){return(t=Math.sin(t/2))*t}var Bt=Math.SQRT2;t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h&lt;Mt)n=Math.log(c/o)/Bt,r=function(t){return[i+t*u,a+t*f,o*Math.exp(Bt*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),g=(c*c-o*o-4*h)/(2*c*2*p),m=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(g*g+1)-g);n=(v-m)/Bt,r=function(t){var e,r=t*n,s=Rt(m),l=o/(2*p)*(s*(e=Bt*r+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[i+l*u,a+l*f,o*s/Rt(Bt*r+m)]}}return r.duration=1e3*n,r},t.behavior.zoom=function(){var e,r,n,a,s,l,c,u,f,h={x:0,y:0,k:1},p=[960,500],d=Ut,g=250,m=0,v=&quot;mousedown.zoom&quot;,y=&quot;mousemove.zoom&quot;,x=&quot;mouseup.zoom&quot;,b=&quot;touchstart.zoom&quot;,_=N(w,&quot;zoomstart&quot;,&quot;zoom&quot;,&quot;zoomend&quot;);function w(t){t.on(v,I).on(jt+&quot;.zoom&quot;,z).on(&quot;dblclick.zoom&quot;,O).on(b,P)}function T(t){return[(t[0]-h.x)/h.k,(t[1]-h.y)/h.k]}function k(t){h.k=Math.max(d[0],Math.min(d[1],t))}function M(t,e){e=function(t){return[t[0]*h.k+h.x,t[1]*h.k+h.y]}(e),h.x+=t[0]-e[0],h.y+=t[1]-e[1]}function A(e,n,i,a){e.__chart__={x:h.x,y:h.y,k:h.k},k(Math.pow(2,a)),M(r=n,i),e=t.select(e),g&gt;0&amp;&amp;(e=e.transition().duration(g)),e.call(w.event)}function S(){c&amp;&amp;c.domain(l.range().map((function(t){return(t-h.x)/h.k})).map(l.invert)),f&amp;&amp;f.domain(u.range().map((function(t){return(t-h.y)/h.k})).map(u.invert))}function E(t){m++||t({type:&quot;zoomstart&quot;})}function C(t){S(),t({type:&quot;zoom&quot;,scale:h.k,translate:[h.x,h.y]})}function L(t){--m||(t({type:&quot;zoomend&quot;}),r=null)}function I(){var e=this,r=_.of(e,arguments),n=0,i=t.select(o(e)).on(y,l).on(x,c),a=T(t.mouse(e)),s=bt(e);function l(){n=1,M(t.mouse(e),a),C(r)}function c(){i.on(y,null).on(x,null),s(n),L(r)}vs.call(e),E(r)}function P(){var e,r=this,n=_.of(r,arguments),i={},a=0,o=&quot;.zoom-&quot;+t.event.changedTouches[0].identifier,l=&quot;touchmove&quot;+o,c=&quot;touchend&quot;+o,u=[],f=t.select(r),p=bt(r);function d(){var n=t.touches(r);return e=h.k,n.forEach((function(t){t.identifier in i&amp;&amp;(i[t.identifier]=T(t))})),n}function g(){var e=t.event.target;t.select(e).on(l,m).on(c,y),u.push(e);for(var n=t.event.changedTouches,o=0,f=n.length;o&lt;f;++o)i[n[o].identifier]=null;var p=d(),g=Date.now();if(1===p.length){if(g-s&lt;500){var v=p[0];A(r,v,i[v.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),F()}s=g}else if(p.length&gt;1){v=p[0];var x=p[1],b=v[0]-x[0],_=v[1]-x[1];a=b*b+_*_}}function m(){var o,l,c,u,f=t.touches(r);vs.call(r);for(var h=0,p=f.length;h&lt;p;++h,u=null)if(c=f[h],u=i[c.identifier]){if(l)break;o=c,l=u}if(u){var d=(d=c[0]-o[0])*d+(d=c[1]-o[1])*d,g=a&amp;&amp;Math.sqrt(d/a);o=[(o[0]+c[0])/2,(o[1]+c[1])/2],l=[(l[0]+u[0])/2,(l[1]+u[1])/2],k(g*e)}s=null,M(o,l),C(n)}function y(){if(t.event.touches.length){for(var e=t.event.changedTouches,r=0,a=e.length;r&lt;a;++r)delete i[e[r].identifier];for(var s in i)return void d()}t.selectAll(u).on(o,null),f.on(v,I).on(b,P),p(),L(n)}g(),E(n),f.on(v,null).on(b,g)}function z(){var i=_.of(this,arguments);a?clearTimeout(a):(vs.call(this),e=T(r=n||t.mouse(this)),E(i)),a=setTimeout((function(){a=null,L(i)}),50),F(),k(Math.pow(2,.002*Nt())*h.k),M(r,e),C(i)}function O(){var e=t.mouse(this),r=Math.log(h.k)/Math.LN2;A(this,e,T(e),t.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)}return jt||(jt=&quot;onwheel&quot;in i?(Nt=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},&quot;wheel&quot;):&quot;onmousewheel&quot;in i?(Nt=function(){return t.event.wheelDelta},&quot;mousewheel&quot;):(Nt=function(){return-t.event.detail},&quot;MozMousePixelScroll&quot;)),w.event=function(e){e.each((function(){var e=_.of(this,arguments),n=h;bs?t.select(this).transition().each(&quot;start.zoom&quot;,(function(){h=this.__chart__||{x:0,y:0,k:1},E(e)})).tween(&quot;zoom:zoom&quot;,(function(){var i=p[0],a=p[1],o=r?r[0]:i/2,s=r?r[1]:a/2,l=t.interpolateZoom([(o-h.x)/h.k,(s-h.y)/h.k,i/h.k],[(o-n.x)/n.k,(s-n.y)/n.k,i/n.k]);return function(t){var r=l(t),n=i/r[2];this.__chart__=h={x:o-r[0]*n,y:s-r[1]*n,k:n},C(e)}})).each(&quot;interrupt.zoom&quot;,(function(){L(e)})).each(&quot;end.zoom&quot;,(function(){L(e)})):(this.__chart__=h,E(e),C(e),L(e))}))},w.translate=function(t){return arguments.length?(h={x:+t[0],y:+t[1],k:h.k},S(),w):[h.x,h.y]},w.scale=function(t){return arguments.length?(h={x:h.x,y:h.y,k:null},k(+t),S(),w):h.k},w.scaleExtent=function(t){return arguments.length?(d=null==t?Ut:[+t[0],+t[1]],w):d},w.center=function(t){return arguments.length?(n=t&amp;&amp;[+t[0],+t[1]],w):n},w.size=function(t){return arguments.length?(p=t&amp;&amp;[+t[0],+t[1]],w):p},w.duration=function(t){return arguments.length?(g=+t,w):g},w.x=function(t){return arguments.length?(c=t,l=t.copy(),h={x:0,y:0,k:1},w):c},w.y=function(t){return arguments.length?(f=t,u=t.copy(),h={x:0,y:0,k:1},w):f},t.rebind(w,_,&quot;on&quot;)};var Nt,jt,Ut=[0,1/0];function Vt(){}function qt(t,e,r){return this instanceof qt?(this.h=+t,this.s=+e,void(this.l=+r)):arguments.length&lt;2?t instanceof qt?new qt(t.h,t.s,t.l):le(&quot;&quot;+t,ce,qt):new qt(t,e,r)}t.color=Vt,Vt.prototype.toString=function(){return this.rgb()+&quot;&quot;},t.hsl=qt;var Ht=qt.prototype=new Vt;function Gt(t,e,r){var n,i;function a(t){return Math.round(255*function(t){return t&gt;360?t-=360:t&lt;0&amp;&amp;(t+=360),t&lt;60?n+(i-n)*t/60:t&lt;180?i:t&lt;240?n+(i-n)*(240-t)/60:n}(t))}return t=isNaN(t)?0:(t%=360)&lt;0?t+360:t,e=isNaN(e)||e&lt;0?0:e&gt;1?1:e,n=2*(r=r&lt;0?0:r&gt;1?1:r)-(i=r&lt;=.5?r*(1+e):r+e-r*e),new ne(a(t+120),a(t),a(t-120))}function Yt(e,r,n){return this instanceof Yt?(this.h=+e,this.c=+r,void(this.l=+n)):arguments.length&lt;2?e instanceof Yt?new Yt(e.h,e.c,e.l):$t(e instanceof Zt?e.l:(e=ue((e=t.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Yt(e,r,n)}Ht.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new qt(this.h,this.s,this.l/t)},Ht.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new qt(this.h,this.s,t*this.l)},Ht.rgb=function(){return Gt(this.h,this.s,this.l)},t.hcl=Yt;var Wt=Yt.prototype=new Vt;function Xt(t,e,r){return isNaN(t)&amp;&amp;(t=0),isNaN(e)&amp;&amp;(e=0),new Zt(r,Math.cos(t*=Lt)*e,Math.sin(t)*e)}function Zt(t,e,r){return this instanceof Zt?(this.l=+t,this.a=+e,void(this.b=+r)):arguments.length&lt;2?t instanceof Zt?new Zt(t.l,t.a,t.b):t instanceof Yt?Xt(t.h,t.c,t.l):ue((t=ne(t)).r,t.g,t.b):new Zt(t,e,r)}Wt.brighter=function(t){return new Yt(this.h,this.c,Math.min(100,this.l+Jt*(arguments.length?t:1)))},Wt.darker=function(t){return new Yt(this.h,this.c,Math.max(0,this.l-Jt*(arguments.length?t:1)))},Wt.rgb=function(){return Xt(this.h,this.c,this.l).rgb()},t.lab=Zt;var Jt=18,Kt=Zt.prototype=new Vt;function Qt(t,e,r){var n=(t+16)/116,i=n+e/500,a=n-r/200;return new ne(re(3.2404542*(i=.95047*te(i))-1.5371385*(n=1*te(n))-.4985314*(a=1.08883*te(a))),re(-.969266*i+1.8760108*n+.041556*a),re(.0556434*i-.2040259*n+1.0572252*a))}function $t(t,e,r){return t&gt;0?new Yt(Math.atan2(r,e)*It,Math.sqrt(e*e+r*r),t):new Yt(NaN,NaN,t)}function te(t){return t&gt;.206893034?t*t*t:(t-4/29)/7.787037}function ee(t){return t&gt;.008856?Math.pow(t,1/3):7.787037*t+4/29}function re(t){return Math.round(255*(t&lt;=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function ne(t,e,r){return this instanceof ne?(this.r=~~t,this.g=~~e,void(this.b=~~r)):arguments.length&lt;2?t instanceof ne?new ne(t.r,t.g,t.b):le(&quot;&quot;+t,ne,Gt):new ne(t,e,r)}function ie(t){return new ne(t&gt;&gt;16,t&gt;&gt;8&amp;255,255&amp;t)}function ae(t){return ie(t)+&quot;&quot;}Kt.brighter=function(t){return new Zt(Math.min(100,this.l+Jt*(arguments.length?t:1)),this.a,this.b)},Kt.darker=function(t){return new Zt(Math.max(0,this.l-Jt*(arguments.length?t:1)),this.a,this.b)},Kt.rgb=function(){return Qt(this.l,this.a,this.b)},t.rgb=ne;var oe=ne.prototype=new Vt;function se(t){return t&lt;16?&quot;0&quot;+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function le(t,e,r){var n,i,a,o=0,s=0,l=0;if(n=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=n[2].split(&quot;,&quot;),n[1]){case&quot;hsl&quot;:return r(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case&quot;rgb&quot;:return e(he(i[0]),he(i[1]),he(i[2]))}return(a=pe.get(t))?e(a.r,a.g,a.b):(null==t||&quot;#&quot;!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&amp;a)&gt;&gt;4,o|=o&gt;&gt;4,s=240&amp;a,s|=s&gt;&gt;4,l=15&amp;a,l|=l&lt;&lt;4):7===t.length&amp;&amp;(o=(16711680&amp;a)&gt;&gt;16,s=(65280&amp;a)&gt;&gt;8,l=255&amp;a)),e(o,s,l))}function ce(t,e,r){var n,i,a=Math.min(t/=255,e/=255,r/=255),o=Math.max(t,e,r),s=o-a,l=(o+a)/2;return s?(i=l&lt;.5?s/(o+a):s/(2-o-a),n=t==o?(e-r)/s+(e&lt;r?6:0):e==o?(r-t)/s+2:(t-e)/s+4,n*=60):(n=NaN,i=l&gt;0&amp;&amp;l&lt;1?0:n),new qt(n,i,l)}function ue(t,e,r){var n=ee((.4124564*(t=fe(t))+.3575761*(e=fe(e))+.1804375*(r=fe(r)))/.95047),i=ee((.2126729*t+.7151522*e+.072175*r)/1);return Zt(116*i-16,500*(n-i),200*(i-ee((.0193339*t+.119192*e+.9503041*r)/1.08883)))}function fe(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function he(t){var e=parseFloat(t);return&quot;%&quot;===t.charAt(t.length-1)?Math.round(2.55*e):e}oe.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,r=this.g,n=this.b,i=30;return e||r||n?(e&amp;&amp;e&lt;i&amp;&amp;(e=i),r&amp;&amp;r&lt;i&amp;&amp;(r=i),n&amp;&amp;n&lt;i&amp;&amp;(n=i),new ne(Math.min(255,e/t),Math.min(255,r/t),Math.min(255,n/t))):new ne(i,i,i)},oe.darker=function(t){return new ne((t=Math.pow(.7,arguments.length?t:1))*this.r,t*this.g,t*this.b)},oe.hsl=function(){return ce(this.r,this.g,this.b)},oe.toString=function(){return&quot;#&quot;+se(this.r)+se(this.g)+se(this.b)};var pe=t.map({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 de(t){return&quot;function&quot;==typeof t?t:function(){return t}}function ge(t){return function(e,r,n){return 2===arguments.length&amp;&amp;&quot;function&quot;==typeof r&amp;&amp;(n=r,r=null),me(e,r,t,n)}}function me(e,r,i,a){var o={},s=t.dispatch(&quot;beforesend&quot;,&quot;progress&quot;,&quot;load&quot;,&quot;error&quot;),l={},c=new XMLHttpRequest,u=null;function f(){var t,e=c.status;if(!e&amp;&amp;function(t){var e=t.responseType;return e&amp;&amp;&quot;text&quot;!==e?t.response:t.responseText}(c)||e&gt;=200&amp;&amp;e&lt;300||304===e){try{t=i.call(o,c)}catch(t){return void s.error.call(o,t)}s.load.call(o,t)}else s.error.call(o,c)}return this.XDomainRequest&amp;&amp;!(&quot;withCredentials&quot;in c)&amp;&amp;/^(http(s)?:)?\/\//.test(e)&amp;&amp;(c=new XDomainRequest),&quot;onload&quot;in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState&gt;3&amp;&amp;f()},c.onprogress=function(e){var r=t.event;t.event=e;try{s.progress.call(o,c)}finally{t.event=r}},o.header=function(t,e){return t=(t+&quot;&quot;).toLowerCase(),arguments.length&lt;2?l[t]:(null==e?delete l[t]:l[t]=e+&quot;&quot;,o)},o.mimeType=function(t){return arguments.length?(r=null==t?null:t+&quot;&quot;,o):r},o.responseType=function(t){return arguments.length?(u=t,o):u},o.response=function(t){return i=t,o},[&quot;get&quot;,&quot;post&quot;].forEach((function(t){o[t]=function(){return o.send.apply(o,[t].concat(n(arguments)))}})),o.send=function(t,n,i){if(2===arguments.length&amp;&amp;&quot;function&quot;==typeof n&amp;&amp;(i=n,n=null),c.open(t,e,!0),null==r||&quot;accept&quot;in l||(l.accept=r+&quot;,*/*&quot;),c.setRequestHeader)for(var a in l)c.setRequestHeader(a,l[a]);return null!=r&amp;&amp;c.overrideMimeType&amp;&amp;c.overrideMimeType(r),null!=u&amp;&amp;(c.responseType=u),null!=i&amp;&amp;o.on(&quot;error&quot;,i).on(&quot;load&quot;,(function(t){i(null,t)})),s.beforesend.call(o,c),c.send(null==n?null:n),o},o.abort=function(){return c.abort(),o},t.rebind(o,s,&quot;on&quot;),null==a?o:o.get(function(t){return 1===t.length?function(e,r){t(null==e?r:null)}:t}(a))}pe.forEach((function(t,e){pe.set(t,ie(e))})),t.functor=de,t.xhr=ge(L),t.dsv=function(t,e){var r=new RegExp('[&quot;'+t+&quot;\n]&quot;),n=t.charCodeAt(0);function i(t,r,n){arguments.length&lt;3&amp;&amp;(n=r,r=null);var i=me(t,e,null==r?a:o(r),n);return i.row=function(t){return arguments.length?i.response(null==(r=t)?a:o(t)):r},i}function a(t){return i.parse(t.responseText)}function o(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(l).join(t)}function l(t){return r.test(t)?'&quot;'+t.replace(/\&quot;/g,'&quot;&quot;')+'&quot;':t}return i.parse=function(t,e){var r;return i.parseRows(t,(function(t,n){if(r)return r(t,n-1);var i=new Function(&quot;d&quot;,&quot;return {&quot;+t.map((function(t,e){return JSON.stringify(t)+&quot;: d[&quot;+e+&quot;]&quot;})).join(&quot;,&quot;)+&quot;}&quot;);r=e?function(t,r){return e(i(t),r)}:i}))},i.parseRows=function(t,e){var r,i,a={},o={},s=[],l=t.length,c=0,u=0;function f(){if(c&gt;=l)return o;if(i)return i=!1,a;var e=c;if(34===t.charCodeAt(e)){for(var r=e;r++&lt;l;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return c=r+2,13===(s=t.charCodeAt(r+1))?(i=!0,10===t.charCodeAt(r+2)&amp;&amp;++c):10===s&amp;&amp;(i=!0),t.slice(e+1,r).replace(/&quot;&quot;/g,'&quot;')}for(;c&lt;l;){var s,u=1;if(10===(s=t.charCodeAt(c++)))i=!0;else if(13===s)i=!0,10===t.charCodeAt(c)&amp;&amp;(++c,++u);else if(s!==n)continue;return t.slice(e,c-u)}return t.slice(e)}for(;(r=f())!==o;){for(var h=[];r!==a&amp;&amp;r!==o;)h.push(r),r=f();e&amp;&amp;null==(h=e(h,u++))||s.push(h)}return s},i.format=function(e){if(Array.isArray(e[0]))return i.formatRows(e);var r=new C,n=[];return e.forEach((function(t){for(var e in t)r.has(e)||n.push(r.add(e))})),[n.map(l).join(t)].concat(e.map((function(e){return n.map((function(t){return l(e[t])})).join(t)}))).join(&quot;\n&quot;)},i.formatRows=function(t){return t.map(s).join(&quot;\n&quot;)},i},t.csv=t.dsv(&quot;,&quot;,&quot;text/csv&quot;),t.tsv=t.dsv(&quot;\t&quot;,&quot;text/tab-separated-values&quot;);var ve,ye,xe,be,_e=this[P(this,&quot;requestAnimationFrame&quot;)]||function(t){setTimeout(t,17)};function we(t,e,r){var n=arguments.length;n&lt;2&amp;&amp;(e=0),n&lt;3&amp;&amp;(r=Date.now());var i=r+e,a={c:t,t:i,n:null};return ye?ye.n=a:ve=a,ye=a,xe||(be=clearTimeout(be),xe=1,_e(Te)),a}function Te(){var t=ke(),e=Me()-t;e&gt;24?(isFinite(e)&amp;&amp;(clearTimeout(be),be=setTimeout(Te,e)),xe=0):(xe=1,_e(Te))}function ke(){for(var t=Date.now(),e=ve;e;)t&gt;=e.t&amp;&amp;e.c(t-e.t)&amp;&amp;(e.c=null),e=e.n;return t}function Me(){for(var t,e=ve,r=1/0;e;)e.c?(e.t&lt;r&amp;&amp;(r=e.t),e=(t=e).n):e=t?t.n=e.n:ve=e.n;return ye=t,r}function Ae(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}t.timer=function(){we.apply(this,arguments)},t.timer.flush=function(){ke(),Me()},t.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var Se=[&quot;y&quot;,&quot;z&quot;,&quot;a&quot;,&quot;f&quot;,&quot;p&quot;,&quot;n&quot;,&quot;\xb5&quot;,&quot;m&quot;,&quot;&quot;,&quot;k&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;,&quot;P&quot;,&quot;E&quot;,&quot;Z&quot;,&quot;Y&quot;].map((function(t,e){var r=Math.pow(10,3*y(8-e));return{scale:e&gt;8?function(t){return t/r}:function(t){return t*r},symbol:t}}));function Ee(e){var r=e.decimal,n=e.thousands,i=e.grouping,a=e.currency,o=i&amp;&amp;n?function(t,e){for(var r=t.length,a=[],o=0,s=i[0],l=0;r&gt;0&amp;&amp;s&gt;0&amp;&amp;(l+s+1&gt;e&amp;&amp;(s=Math.max(1,e-l)),a.push(t.substring(r-=s,r+s)),!((l+=s+1)&gt;e));)s=i[o=(o+1)%i.length];return a.reverse().join(n)}:L;return function(e){var n=Ce.exec(e),i=n[1]||&quot; &quot;,s=n[2]||&quot;&gt;&quot;,l=n[3]||&quot;-&quot;,c=n[4]||&quot;&quot;,u=n[5],f=+n[6],h=n[7],p=n[8],d=n[9],g=1,m=&quot;&quot;,v=&quot;&quot;,y=!1,x=!0;switch(p&amp;&amp;(p=+p.substring(1)),(u||&quot;0&quot;===i&amp;&amp;&quot;=&quot;===s)&amp;&amp;(u=i=&quot;0&quot;,s=&quot;=&quot;),d){case&quot;n&quot;:h=!0,d=&quot;g&quot;;break;case&quot;%&quot;:g=100,v=&quot;%&quot;,d=&quot;f&quot;;break;case&quot;p&quot;:g=100,v=&quot;%&quot;,d=&quot;r&quot;;break;case&quot;b&quot;:case&quot;o&quot;:case&quot;x&quot;:case&quot;X&quot;:&quot;#&quot;===c&amp;&amp;(m=&quot;0&quot;+d.toLowerCase());case&quot;c&quot;:x=!1;case&quot;d&quot;:y=!0,p=0;break;case&quot;s&quot;:g=-1,d=&quot;r&quot;}&quot;$&quot;===c&amp;&amp;(m=a[0],v=a[1]),&quot;r&quot;!=d||p||(d=&quot;g&quot;),null!=p&amp;&amp;(&quot;g&quot;==d?p=Math.max(1,Math.min(21,p)):&quot;e&quot;!=d&amp;&amp;&quot;f&quot;!=d||(p=Math.max(0,Math.min(20,p)))),d=Le.get(d)||Ie;var b=u&amp;&amp;h;return function(e){var n=v;if(y&amp;&amp;e%1)return&quot;&quot;;var a=e&lt;0||0===e&amp;&amp;1/e&lt;0?(e=-e,&quot;-&quot;):&quot;-&quot;===l?&quot;&quot;:l;if(g&lt;0){var c=t.formatPrefix(e,p);e=c.scale(e),n=c.symbol+v}else e*=g;var _,w,T=(e=d(e,p)).lastIndexOf(&quot;.&quot;);if(T&lt;0){var k=x?e.lastIndexOf(&quot;e&quot;):-1;k&lt;0?(_=e,w=&quot;&quot;):(_=e.substring(0,k),w=e.substring(k))}else _=e.substring(0,T),w=r+e.substring(T+1);!u&amp;&amp;h&amp;&amp;(_=o(_,1/0));var M=m.length+_.length+w.length+(b?0:a.length),A=M&lt;f?new Array(M=f-M+1).join(i):&quot;&quot;;return b&amp;&amp;(_=o(A+_,A.length?f-w.length:1/0)),a+=m,e=_+w,(&quot;&lt;&quot;===s?a+e+A:&quot;&gt;&quot;===s?A+a+e:&quot;^&quot;===s?A.substring(0,M&gt;&gt;=1)+a+e+A.substring(M):a+(b?e:A+e))+n}}}t.formatPrefix=function(e,r){var n=0;return(e=+e)&amp;&amp;(e&lt;0&amp;&amp;(e*=-1),r&amp;&amp;(e=t.round(e,Ae(e,r))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Se[8+n/3]};var Ce=/(?:([^{])?([&lt;&gt;=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Le=t.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(e,r){return(e=t.round(e,Ae(e,r))).toFixed(Math.max(0,Math.min(20,Ae(e*(1+1e-15),r))))}});function Ie(t){return t+&quot;&quot;}var Pe=t.time={},ze=Date;function Oe(){this._=new Date(arguments.length&gt;1?Date.UTC.apply(this,arguments):arguments[0])}Oe.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){De.setUTCDate.apply(this._,arguments)},setDay:function(){De.setUTCDay.apply(this._,arguments)},setFullYear:function(){De.setUTCFullYear.apply(this._,arguments)},setHours:function(){De.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){De.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){De.setUTCMinutes.apply(this._,arguments)},setMonth:function(){De.setUTCMonth.apply(this._,arguments)},setSeconds:function(){De.setUTCSeconds.apply(this._,arguments)},setTime:function(){De.setTime.apply(this._,arguments)}};var De=Date.prototype;function Re(t,e,r){function n(e){var r=t(e),n=a(r,1);return e-r&lt;n-e?r:n}function i(r){return e(r=t(new ze(r-1)),1),r}function a(t,r){return e(t=new ze(+t),r),t}function o(t,n,a){var o=i(t),s=[];if(a&gt;1)for(;o&lt;n;)r(o)%a||s.push(new Date(+o)),e(o,1);else for(;o&lt;n;)s.push(new Date(+o)),e(o,1);return s}t.floor=t,t.round=n,t.ceil=i,t.offset=a,t.range=o;var s=t.utc=Fe(t);return s.floor=s,s.round=Fe(n),s.ceil=Fe(i),s.offset=Fe(a),s.range=function(t,e,r){try{ze=Oe;var n=new Oe;return n._=t,o(n,e,r)}finally{ze=Date}},t}function Fe(t){return function(e,r){try{ze=Oe;var n=new Oe;return n._=e,t(n,r)._}finally{ze=Date}}}function Be(e){var r=e.dateTime,n=e.date,i=e.time,a=e.periods,o=e.days,s=e.shortDays,l=e.months,c=e.shortMonths;function u(t){var e=t.length;function r(r){for(var n,i,a,o=[],s=-1,l=0;++s&lt;e;)37===t.charCodeAt(s)&amp;&amp;(o.push(t.slice(l,s)),null!=(i=Ne[n=t.charAt(++s)])&amp;&amp;(n=t.charAt(++s)),(a=_[n])&amp;&amp;(n=a(r,null==i?&quot;e&quot;===n?&quot; &quot;:&quot;0&quot;:i)),o.push(n),l=s+1);return o.push(t.slice(l,s)),o.join(&quot;&quot;)}return r.parse=function(e){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(f(r,t,e,0)!=e.length)return null;&quot;p&quot;in r&amp;&amp;(r.H=r.H%12+12*r.p);var n=null!=r.Z&amp;&amp;ze!==Oe,i=new(n?Oe:ze);return&quot;j&quot;in r?i.setFullYear(r.y,0,r.j):&quot;W&quot;in r||&quot;U&quot;in r?(&quot;w&quot;in r||(r.w=&quot;W&quot;in r?1:0),i.setFullYear(r.y,0,1),i.setFullYear(r.y,0,&quot;W&quot;in r?(r.w+6)%7+7*r.W-(i.getDay()+5)%7:r.w+7*r.U-(i.getDay()+6)%7)):i.setFullYear(r.y,r.m,r.d),i.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),n?i._:i},r.toString=function(){return t},r}function f(t,e,r,n){for(var i,a,o,s=0,l=e.length,c=r.length;s&lt;l;){if(n&gt;=c)return-1;if(37===(i=e.charCodeAt(s++))){if(o=e.charAt(s++),!(a=w[o in Ne?e.charAt(s++):o])||(n=a(t,r,n))&lt;0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}u.utc=function(t){var e=u(t);function r(t){try{var r=new(ze=Oe);return r._=t,e(r)}finally{ze=Date}}return r.parse=function(t){try{ze=Oe;var r=e.parse(t);return r&amp;&amp;r._}finally{ze=Date}},r.toString=e.toString,r},u.multi=u.utc.multi=or;var h=t.map(),p=qe(o),d=He(o),g=qe(s),m=He(s),v=qe(l),y=He(l),x=qe(c),b=He(c);a.forEach((function(t,e){h.set(t.toLowerCase(),e)}));var _={a:function(t){return s[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return l[t.getMonth()]},c:u(r),d:function(t,e){return Ve(t.getDate(),e,2)},e:function(t,e){return Ve(t.getDate(),e,2)},H:function(t,e){return Ve(t.getHours(),e,2)},I:function(t,e){return Ve(t.getHours()%12||12,e,2)},j:function(t,e){return Ve(1+Pe.dayOfYear(t),e,3)},L:function(t,e){return Ve(t.getMilliseconds(),e,3)},m:function(t,e){return Ve(t.getMonth()+1,e,2)},M:function(t,e){return Ve(t.getMinutes(),e,2)},p:function(t){return a[+(t.getHours()&gt;=12)]},S:function(t,e){return Ve(t.getSeconds(),e,2)},U:function(t,e){return Ve(Pe.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Ve(Pe.mondayOfYear(t),e,2)},x:u(n),X:u(i),y:function(t,e){return Ve(t.getFullYear()%100,e,2)},Y:function(t,e){return Ve(t.getFullYear()%1e4,e,4)},Z:ir,&quot;%&quot;:function(){return&quot;%&quot;}},w={a:function(t,e,r){g.lastIndex=0;var n=g.exec(e.slice(r));return n?(t.w=m.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){p.lastIndex=0;var n=p.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){x.lastIndex=0;var n=x.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){v.lastIndex=0;var n=v.exec(e.slice(r));return n?(t.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,e,r){return f(t,_.c.toString(),e,r)},d:Qe,e:Qe,H:tr,I:tr,j:$e,L:nr,m:Ke,M:er,p:function(t,e,r){var n=h.get(e.slice(r,r+=2).toLowerCase());return null==n?-1:(t.p=n,r)},S:rr,U:Ye,w:Ge,W:We,x:function(t,e,r){return f(t,_.x.toString(),e,r)},X:function(t,e,r){return f(t,_.X.toString(),e,r)},y:Ze,Y:Xe,Z:Je,&quot;%&quot;:ar};return u}Pe.year=Re((function(t){return(t=Pe.day(t)).setMonth(0,1),t}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t){return t.getFullYear()})),Pe.years=Pe.year.range,Pe.years.utc=Pe.year.utc.range,Pe.day=Re((function(t){var e=new ze(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t){return t.getDate()-1})),Pe.days=Pe.day.range,Pe.days.utc=Pe.day.utc.range,Pe.dayOfYear=function(t){var e=Pe.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},[&quot;sunday&quot;,&quot;monday&quot;,&quot;tuesday&quot;,&quot;wednesday&quot;,&quot;thursday&quot;,&quot;friday&quot;,&quot;saturday&quot;].forEach((function(t,e){e=7-e;var r=Pe[t]=Re((function(t){return(t=Pe.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t}),(function(t,e){t.setDate(t.getDate()+7*Math.floor(e))}),(function(t){var r=Pe.year(t).getDay();return Math.floor((Pe.dayOfYear(t)+(r+e)%7)/7)-(r!==e)}));Pe[t+&quot;s&quot;]=r.range,Pe[t+&quot;s&quot;].utc=r.utc.range,Pe[t+&quot;OfYear&quot;]=function(t){var r=Pe.year(t).getDay();return Math.floor((Pe.dayOfYear(t)+(r+e)%7)/7)}})),Pe.week=Pe.sunday,Pe.weeks=Pe.sunday.range,Pe.weeks.utc=Pe.sunday.utc.range,Pe.weekOfYear=Pe.sundayOfYear;var Ne={&quot;-&quot;:&quot;&quot;,_:&quot; &quot;,0:&quot;0&quot;},je=/^\s*\d+/,Ue=/^%/;function Ve(t,e,r){var n=t&lt;0?&quot;-&quot;:&quot;&quot;,i=(n?-t:t)+&quot;&quot;,a=i.length;return n+(a&lt;r?new Array(r-a+1).join(e)+i:i)}function qe(e){return new RegExp(&quot;^(?:&quot;+e.map(t.requote).join(&quot;|&quot;)+&quot;)&quot;,&quot;i&quot;)}function He(t){for(var e=new _,r=-1,n=t.length;++r&lt;n;)e.set(t[r].toLowerCase(),r);return e}function Ge(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Ye(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r));return n?(t.U=+n[0],r+n[0].length):-1}function We(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r));return n?(t.W=+n[0],r+n[0].length):-1}function Xe(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Ze(t,e,r){je.lastIndex=0;var n,i=je.exec(e.slice(r,r+2));return i?(t.y=(n=+i[0])+(n&gt;68?1900:2e3),r+i[0].length):-1}function Je(t,e,r){return/^[+-]\d{4}$/.test(e=e.slice(r,r+5))?(t.Z=-e,r+5):-1}function Ke(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Qe(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function $e(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+3));return n?(t.j=+n[0],r+n[0].length):-1}function tr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function er(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function rr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function nr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function ir(t){var e=t.getTimezoneOffset(),r=e&gt;0?&quot;-&quot;:&quot;+&quot;,n=y(e)/60|0,i=y(e)%60;return r+Ve(n,&quot;0&quot;,2)+Ve(i,&quot;0&quot;,2)}function ar(t,e,r){Ue.lastIndex=0;var n=Ue.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function or(t){for(var e=t.length,r=-1;++r&lt;e;)t[r][0]=this(t[r][0]);return function(e){for(var r=0,n=t[r];!n[1](e);)n=t[++r];return n[0](e)}}t.locale=function(t){return{numberFormat:Ee(t),timeFormat:Be(t)}};var sr=t.locale({decimal:&quot;.&quot;,thousands:&quot;,&quot;,grouping:[3],currency:[&quot;$&quot;,&quot;&quot;],dateTime:&quot;%a %b %e %X %Y&quot;,date:&quot;%m/%d/%Y&quot;,time:&quot;%H:%M:%S&quot;,periods:[&quot;AM&quot;,&quot;PM&quot;],days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;]});function lr(){}t.format=sr.numberFormat,t.geo={},lr.prototype={s:0,t:0,add:function(t){ur(t,this.t,cr),ur(cr.s,this.s,this),this.s?this.t+=cr.t:this.s=cr.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var cr=new lr;function ur(t,e,r){var n=r.s=t+e,i=n-t,a=n-i;r.t=t-a+(e-i)}function fr(t,e){t&amp;&amp;pr.hasOwnProperty(t.type)&amp;&amp;pr[t.type](t,e)}t.geo.stream=function(t,e){t&amp;&amp;hr.hasOwnProperty(t.type)?hr[t.type](t,e):fr(t,e)};var hr={Feature:function(t,e){fr(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n&lt;i;)fr(r[n].geometry,e)}},pr={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)t=r[n],e.point(t[0],t[1],t[2])},LineString:function(t,e){dr(t.coordinates,e,0)},MultiLineString:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)dr(r[n],e,0)},Polygon:function(t,e){gr(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)gr(r[n],e)},GeometryCollection:function(t,e){for(var r=t.geometries,n=-1,i=r.length;++n&lt;i;)fr(r[n],e)}};function dr(t,e,r){var n,i=-1,a=t.length-r;for(e.lineStart();++i&lt;a;)n=t[i],e.point(n[0],n[1],n[2]);e.lineEnd()}function gr(t,e){var r=-1,n=t.length;for(e.polygonStart();++r&lt;n;)dr(t[r],e,1);e.polygonEnd()}t.geo.area=function(e){return mr=0,t.geo.stream(e,Cr),mr};var mr,vr,yr,xr,br,_r,wr,Tr,kr,Mr,Ar,Sr,Er=new lr,Cr={sphere:function(){mr+=4*At},point:O,lineStart:O,lineEnd:O,polygonStart:function(){Er.reset(),Cr.lineStart=Lr},polygonEnd:function(){var t=2*Er;mr+=t&lt;0?4*At+t:t,Cr.lineStart=Cr.lineEnd=Cr.point=O}};function Lr(){var t,e,r,n,i;function a(t,e){e=e*Lt/2+At/4;var a=(t*=Lt)-r,o=a&gt;=0?1:-1,s=o*a,l=Math.cos(e),c=Math.sin(e),u=i*c,f=n*l+u*Math.cos(s),h=u*o*Math.sin(s);Er.add(Math.atan2(h,f)),r=t,n=l,i=c}Cr.point=function(o,s){Cr.point=a,r=(t=o)*Lt,n=Math.cos(s=(e=s)*Lt/2+At/4),i=Math.sin(s)},Cr.lineEnd=function(){a(t,e)}}function Ir(t){var e=t[0],r=t[1],n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}function Pr(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function zr(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Or(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Dr(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Rr(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Fr(t){return[Math.atan2(t[1],t[0]),Dt(t[2])]}function Br(t,e){return y(t[0]-e[0])&lt;kt&amp;&amp;y(t[1]-e[1])&lt;kt}t.geo.bounds=function(){var e,r,n,i,a,o,s,l,c,u,f,h={point:p,lineStart:g,lineEnd:m,polygonStart:function(){h.point=v,h.lineStart=x,h.lineEnd=b,c=0,Cr.polygonStart()},polygonEnd:function(){Cr.polygonEnd(),h.point=p,h.lineStart=g,h.lineEnd=m,Er&lt;0?(e=-(n=180),r=-(i=90)):c&gt;kt?i=90:c&lt;-kt&amp;&amp;(r=-90),f[0]=e,f[1]=n}};function p(t,a){u.push(f=[e=t,n=t]),a&lt;r&amp;&amp;(r=a),a&gt;i&amp;&amp;(i=a)}function d(t,o){var s=Ir([t*Lt,o*Lt]);if(l){var c=zr(l,s),u=zr([c[1],-c[0],0],c);Rr(u),u=Fr(u);var f=t-a,h=f&gt;0?1:-1,d=u[0]*It*h,g=y(f)&gt;180;if(g^(h*a&lt;d&amp;&amp;d&lt;h*t))(m=u[1]*It)&gt;i&amp;&amp;(i=m);else if(g^(h*a&lt;(d=(d+360)%360-180)&amp;&amp;d&lt;h*t)){var m;(m=-u[1]*It)&lt;r&amp;&amp;(r=m)}else o&lt;r&amp;&amp;(r=o),o&gt;i&amp;&amp;(i=o);g?t&lt;a?_(e,t)&gt;_(e,n)&amp;&amp;(n=t):_(t,n)&gt;_(e,n)&amp;&amp;(e=t):n&gt;=e?(t&lt;e&amp;&amp;(e=t),t&gt;n&amp;&amp;(n=t)):t&gt;a?_(e,t)&gt;_(e,n)&amp;&amp;(n=t):_(t,n)&gt;_(e,n)&amp;&amp;(e=t)}else p(t,o);l=s,a=t}function g(){h.point=d}function m(){f[0]=e,f[1]=n,h.point=p,l=null}function v(t,e){if(l){var r=t-a;c+=y(r)&gt;180?r+(r&gt;0?360:-360):r}else o=t,s=e;Cr.point(t,e),d(t,e)}function x(){Cr.lineStart()}function b(){v(o,s),Cr.lineEnd(),y(c)&gt;kt&amp;&amp;(e=-(n=180)),f[0]=e,f[1]=n,l=null}function _(t,e){return(e-=t)&lt;0?e+360:e}function w(t,e){return t[0]-e[0]}function T(t,e){return e[0]&lt;=e[1]?e[0]&lt;=t&amp;&amp;t&lt;=e[1]:t&lt;e[0]||e[1]&lt;t}return function(a){if(i=n=-(e=r=1/0),u=[],t.geo.stream(a,h),c=u.length){u.sort(w);for(var o=1,s=[g=u[0]];o&lt;c;++o)T((p=u[o])[0],g)||T(p[1],g)?(_(g[0],p[1])&gt;_(g[0],g[1])&amp;&amp;(g[1]=p[1]),_(p[0],g[1])&gt;_(g[0],g[1])&amp;&amp;(g[0]=p[0])):s.push(g=p);for(var l,c,p,d=-1/0,g=(o=0,s[c=s.length-1]);o&lt;=c;g=p,++o)p=s[o],(l=_(g[1],p[0]))&gt;d&amp;&amp;(d=l,e=p[0],n=g[1])}return u=f=null,e===1/0||r===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,r],[n,i]]}}(),t.geo.centroid=function(e){vr=yr=xr=br=_r=wr=Tr=kr=Mr=Ar=Sr=0,t.geo.stream(e,Nr);var r=Mr,n=Ar,i=Sr,a=r*r+n*n+i*i;return a&lt;Mt&amp;&amp;(r=wr,n=Tr,i=kr,yr&lt;kt&amp;&amp;(r=xr,n=br,i=_r),(a=r*r+n*n+i*i)&lt;Mt)?[NaN,NaN]:[Math.atan2(n,r)*It,Dt(i/Math.sqrt(a))*It]};var Nr={sphere:O,point:jr,lineStart:Vr,lineEnd:qr,polygonStart:function(){Nr.lineStart=Hr},polygonEnd:function(){Nr.lineStart=Vr}};function jr(t,e){t*=Lt;var r=Math.cos(e*=Lt);Ur(r*Math.cos(t),r*Math.sin(t),Math.sin(e))}function Ur(t,e,r){++vr,xr+=(t-xr)/vr,br+=(e-br)/vr,_r+=(r-_r)/vr}function Vr(){var t,e,r;function n(n,i){n*=Lt;var a=Math.cos(i*=Lt),o=a*Math.cos(n),s=a*Math.sin(n),l=Math.sin(i),c=Math.atan2(Math.sqrt((c=e*l-r*s)*c+(c=r*o-t*l)*c+(c=t*s-e*o)*c),t*o+e*s+r*l);yr+=c,wr+=c*(t+(t=o)),Tr+=c*(e+(e=s)),kr+=c*(r+(r=l)),Ur(t,e,r)}Nr.point=function(i,a){i*=Lt;var o=Math.cos(a*=Lt);t=o*Math.cos(i),e=o*Math.sin(i),r=Math.sin(a),Nr.point=n,Ur(t,e,r)}}function qr(){Nr.point=jr}function Hr(){var t,e,r,n,i;function a(t,e){t*=Lt;var a=Math.cos(e*=Lt),o=a*Math.cos(t),s=a*Math.sin(t),l=Math.sin(e),c=n*l-i*s,u=i*o-r*l,f=r*s-n*o,h=Math.sqrt(c*c+u*u+f*f),p=r*o+n*s+i*l,d=h&amp;&amp;-Ot(p)/h,g=Math.atan2(h,p);Mr+=d*c,Ar+=d*u,Sr+=d*f,yr+=g,wr+=g*(r+(r=o)),Tr+=g*(n+(n=s)),kr+=g*(i+(i=l)),Ur(r,n,i)}Nr.point=function(o,s){t=o,e=s,Nr.point=a,o*=Lt;var l=Math.cos(s*=Lt);r=l*Math.cos(o),n=l*Math.sin(o),i=Math.sin(s),Ur(r,n,i)},Nr.lineEnd=function(){a(t,e),Nr.lineEnd=qr,Nr.point=jr}}function Gr(t,e){function r(r,n){return r=t(r,n),e(r[0],r[1])}return t.invert&amp;&amp;e.invert&amp;&amp;(r.invert=function(r,n){return(r=e.invert(r,n))&amp;&amp;t.invert(r[0],r[1])}),r}function Yr(){return!0}function Wr(t,e,r,n,i){var a=[],o=[];if(t.forEach((function(t){if(!((e=t.length-1)&lt;=0)){var e,r=t[0],n=t[e];if(Br(r,n)){i.lineStart();for(var s=0;s&lt;e;++s)i.point((r=t[s])[0],r[1]);i.lineEnd()}else{var l=new Zr(r,t,null,!0),c=new Zr(r,null,l,!1);l.o=c,a.push(l),o.push(c),l=new Zr(n,t,null,!1),c=new Zr(n,null,l,!0),l.o=c,a.push(l),o.push(c)}}})),o.sort(e),Xr(a),Xr(o),a.length){for(var s=0,l=r,c=o.length;s&lt;c;++s)o[s].e=l=!l;for(var u,f,h=a[0];;){for(var p=h,d=!0;p.v;)if((p=p.n)===h)return;u=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(s=0,c=u.length;s&lt;c;++s)i.point((f=u[s])[0],f[1]);else n(p.x,p.n.x,1,i);p=p.n}else{if(d)for(s=(u=p.p.z).length-1;s&gt;=0;--s)i.point((f=u[s])[0],f[1]);else n(p.x,p.p.x,-1,i);p=p.p}u=(p=p.o).z,d=!d}while(!p.v);i.lineEnd()}}}function Xr(t){if(e=t.length){for(var e,r,n=0,i=t[0];++n&lt;e;)i.n=r=t[n],r.p=i,i=r;i.n=r=t[0],r.p=i}}function Zr(t,e,r,n){this.x=t,this.z=e,this.o=r,this.e=n,this.v=!1,this.n=this.p=null}function Jr(e,r,n,i){return function(a,o){var s,l=r(o),c=a.invert(i[0],i[1]),u={point:f,lineStart:p,lineEnd:d,polygonStart:function(){u.point=b,u.lineStart=_,u.lineEnd=w,s=[],g=[]},polygonEnd:function(){u.point=f,u.lineStart=p,u.lineEnd=d,s=t.merge(s);var e=function(t,e){var r=t[0],n=t[1],i=[Math.sin(r),-Math.cos(r),0],a=0,o=0;Er.reset();for(var s=0,l=e.length;s&lt;l;++s){var c=e[s],u=c.length;if(u)for(var f=c[0],h=f[0],p=f[1]/2+At/4,d=Math.sin(p),g=Math.cos(p),m=1;;){m===u&amp;&amp;(m=0);var v=(t=c[m])[0],y=t[1]/2+At/4,x=Math.sin(y),b=Math.cos(y),_=v-h,w=_&gt;=0?1:-1,T=w*_,k=T&gt;At,M=d*x;if(Er.add(Math.atan2(M*w*Math.sin(T),g*b+M*Math.cos(T))),a+=k?_+w*St:_,k^h&gt;=r^v&gt;=r){var A=zr(Ir(f),Ir(t));Rr(A);var S=zr(i,A);Rr(S);var E=(k^_&gt;=0?-1:1)*Dt(S[2]);(n&gt;E||n===E&amp;&amp;(A[0]||A[1]))&amp;&amp;(o+=k^_&gt;=0?1:-1)}if(!m++)break;h=v,d=x,g=b,f=t}}return(a&lt;-kt||a&lt;kt&amp;&amp;Er&lt;-kt)^1&amp;o}(c,g);s.length?(x||(o.polygonStart(),x=!0),Wr(s,$r,e,n,o)):e&amp;&amp;(x||(o.polygonStart(),x=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),x&amp;&amp;(o.polygonEnd(),x=!1),s=g=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function f(t,r){var n=a(t,r);e(t=n[0],r=n[1])&amp;&amp;o.point(t,r)}function h(t,e){var r=a(t,e);l.point(r[0],r[1])}function p(){u.point=h,l.lineStart()}function d(){u.point=f,l.lineEnd()}var g,m,v=Qr(),y=r(v),x=!1;function b(t,e){m.push([t,e]);var r=a(t,e);y.point(r[0],r[1])}function _(){y.lineStart(),m=[]}function w(){b(m[0][0],m[0][1]),y.lineEnd();var t,e=y.clean(),r=v.buffer(),n=r.length;if(m.pop(),g.push(m),m=null,n)if(1&amp;e){var i,a=-1;if((n=(t=r[0]).length-1)&gt;0){for(x||(o.polygonStart(),x=!0),o.lineStart();++a&lt;n;)o.point((i=t[a])[0],i[1]);o.lineEnd()}}else n&gt;1&amp;&amp;2&amp;e&amp;&amp;r.push(r.pop().concat(r.shift())),s.push(r.filter(Kr))}return u}}function Kr(t){return t.length&gt;1}function Qr(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,r){t.push([e,r])},lineEnd:O,buffer:function(){var r=e;return e=[],t=null,r},rejoin:function(){e.length&gt;1&amp;&amp;e.push(e.pop().concat(e.shift()))}}}function $r(t,e){return((t=t.x)[0]&lt;0?t[1]-Ct-kt:Ct-t[1])-((e=e.x)[0]&lt;0?e[1]-Ct-kt:Ct-e[1])}var tn=Jr(Yr,(function(t){var e,r=NaN,n=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a&gt;0?At:-At,l=y(a-r);y(l-At)&lt;kt?(t.point(r,n=(n+o)/2&gt;0?Ct:-Ct),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),t.point(a,n),e=0):i!==s&amp;&amp;l&gt;=At&amp;&amp;(y(r-i)&lt;kt&amp;&amp;(r-=i*kt),y(a-s)&lt;kt&amp;&amp;(a-=s*kt),n=function(t,e,r,n){var i,a,o=Math.sin(t-r);return y(o)&gt;kt?Math.atan((Math.sin(e)*(a=Math.cos(n))*Math.sin(r)-Math.sin(n)*(i=Math.cos(e))*Math.sin(t))/(i*a*o)):(e+n)/2}(r,n,a,o),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),e=0),t.point(r=a,n=o),i=s},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}}),(function(t,e,r,n){var i;if(null==t)i=r*Ct,n.point(-At,i),n.point(0,i),n.point(At,i),n.point(At,0),n.point(At,-i),n.point(0,-i),n.point(-At,-i),n.point(-At,0),n.point(-At,i);else if(y(t[0]-e[0])&gt;kt){var a=t[0]&lt;e[0]?At:-At;i=r*a/2,n.point(-a,i),n.point(0,i),n.point(a,i)}else n.point(e[0],e[1])}),[-At,-At/2]);function en(t){var e=Math.cos(t),r=e&gt;0,n=y(e)&gt;kt;return Jr(i,(function(t){var e,s,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(f,h){var p,d=[f,h],g=i(f,h),m=r?g?0:o(f,h):g?o(f+(f&lt;0?At:-At),h):0;if(!e&amp;&amp;(c=l=g)&amp;&amp;t.lineStart(),g!==l&amp;&amp;(p=a(e,d),(Br(e,p)||Br(d,p))&amp;&amp;(d[0]+=kt,d[1]+=kt,g=i(d[0],d[1]))),g!==l)u=0,g?(t.lineStart(),p=a(d,e),t.point(p[0],p[1])):(p=a(e,d),t.point(p[0],p[1]),t.lineEnd()),e=p;else if(n&amp;&amp;e&amp;&amp;r^g){var v;m&amp;s||!(v=a(d,e,!0))||(u=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!g||e&amp;&amp;Br(e,d)||t.point(d[0],d[1]),e=d,l=g,s=m},lineEnd:function(){l&amp;&amp;t.lineEnd(),e=null},clean:function(){return u|(c&amp;&amp;l)&lt;&lt;1}}}),Bn(t,6*Lt),r?[0,-t]:[-At,t-At]);function i(t,r){return Math.cos(t)*Math.cos(r)&gt;e}function a(t,r,n){var i=[1,0,0],a=zr(Ir(t),Ir(r)),o=Pr(a,a),s=a[0],l=o-s*s;if(!l)return!n&amp;&amp;t;var c=e*o/l,u=-e*s/l,f=zr(i,a),h=Dr(i,c);Or(h,Dr(a,u));var p=f,d=Pr(h,p),g=Pr(p,p),m=d*d-g*(Pr(h,h)-1);if(!(m&lt;0)){var v=Math.sqrt(m),x=Dr(p,(-d-v)/g);if(Or(x,h),x=Fr(x),!n)return x;var b,_=t[0],w=r[0],T=t[1],k=r[1];w&lt;_&amp;&amp;(b=_,_=w,w=b);var M=w-_,A=y(M-At)&lt;kt;if(!A&amp;&amp;k&lt;T&amp;&amp;(b=T,T=k,k=b),A||M&lt;kt?A?T+k&gt;0^x[1]&lt;(y(x[0]-_)&lt;kt?T:k):T&lt;=x[1]&amp;&amp;x[1]&lt;=k:M&gt;At^(_&lt;=x[0]&amp;&amp;x[0]&lt;=w)){var S=Dr(p,(-d+v)/g);return Or(S,h),[x,Fr(S)]}}}function o(e,n){var i=r?t:At-t,a=0;return e&lt;-i?a|=1:e&gt;i&amp;&amp;(a|=2),n&lt;-i?a|=4:n&gt;i&amp;&amp;(a|=8),a}}function rn(t,e,r,n){return function(i){var a,o=i.a,s=i.b,l=o.x,c=o.y,u=0,f=1,h=s.x-l,p=s.y-c;if(a=t-l,h||!(a&gt;0)){if(a/=h,h&lt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}else if(h&gt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}if(a=r-l,h||!(a&lt;0)){if(a/=h,h&lt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}else if(h&gt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}if(a=e-c,p||!(a&gt;0)){if(a/=p,p&lt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}else if(p&gt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}if(a=n-c,p||!(a&lt;0)){if(a/=p,p&lt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}else if(p&gt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}return u&gt;0&amp;&amp;(i.a={x:l+u*h,y:c+u*p}),f&lt;1&amp;&amp;(i.b={x:l+f*h,y:c+f*p}),i}}}}}}function nn(e,r,n,i){return function(l){var c,u,f,h,p,d,g,m,v,y,x,b=l,_=Qr(),w=rn(e,r,n,i),T={point:A,lineStart:function(){T.point=S,u&amp;&amp;u.push(f=[]);y=!0,v=!1,g=m=NaN},lineEnd:function(){c&amp;&amp;(S(h,p),d&amp;&amp;v&amp;&amp;_.rejoin(),c.push(_.buffer()));T.point=A,v&amp;&amp;l.lineEnd()},polygonStart:function(){l=_,c=[],u=[],x=!0},polygonEnd:function(){l=b,c=t.merge(c);var r=function(t){for(var e=0,r=u.length,n=t[1],i=0;i&lt;r;++i)for(var a,o=1,s=u[i],l=s.length,c=s[0];o&lt;l;++o)a=s[o],c[1]&lt;=n?a[1]&gt;n&amp;&amp;zt(c,a,t)&gt;0&amp;&amp;++e:a[1]&lt;=n&amp;&amp;zt(c,a,t)&lt;0&amp;&amp;--e,c=a;return 0!==e}([e,i]),n=x&amp;&amp;r,a=c.length;(n||a)&amp;&amp;(l.polygonStart(),n&amp;&amp;(l.lineStart(),k(null,null,1,l),l.lineEnd()),a&amp;&amp;Wr(c,o,r,k,l),l.polygonEnd()),c=u=f=null}};function k(t,o,l,c){var u=0,f=0;if(null==t||(u=a(t,l))!==(f=a(o,l))||s(t,o)&lt;0^l&gt;0)do{c.point(0===u||3===u?e:n,u&gt;1?i:r)}while((u=(u+l+4)%4)!==f);else c.point(o[0],o[1])}function M(t,a){return e&lt;=t&amp;&amp;t&lt;=n&amp;&amp;r&lt;=a&amp;&amp;a&lt;=i}function A(t,e){M(t,e)&amp;&amp;l.point(t,e)}function S(t,e){var r=M(t=Math.max(-1e9,Math.min(1e9,t)),e=Math.max(-1e9,Math.min(1e9,e)));if(u&amp;&amp;f.push([t,e]),y)h=t,p=e,d=r,y=!1,r&amp;&amp;(l.lineStart(),l.point(t,e));else if(r&amp;&amp;v)l.point(t,e);else{var n={a:{x:g,y:m},b:{x:t,y:e}};w(n)?(v||(l.lineStart(),l.point(n.a.x,n.a.y)),l.point(n.b.x,n.b.y),r||l.lineEnd(),x=!1):r&amp;&amp;(l.lineStart(),l.point(t,e),x=!1)}g=t,m=e,v=r}return T};function a(t,i){return y(t[0]-e)&lt;kt?i&gt;0?0:3:y(t[0]-n)&lt;kt?i&gt;0?2:1:y(t[1]-r)&lt;kt?i&gt;0?1:0:i&gt;0?3:2}function o(t,e){return s(t.x,e.x)}function s(t,e){var r=a(t,1),n=a(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}}function an(t){var e=0,r=At/3,n=Ln(t),i=n(e,r);return i.parallels=function(t){return arguments.length?n(e=t[0]*At/180,r=t[1]*At/180):[e/At*180,r/At*180]},i}function on(t,e){var r=Math.sin(t),n=(r+Math.sin(e))/2,i=1+r*(2*n-r),a=Math.sqrt(i)/n;function o(t,e){var r=Math.sqrt(i-2*n*Math.sin(e))/n;return[r*Math.sin(t*=n),a-r*Math.cos(t)]}return o.invert=function(t,e){var r=a-e;return[Math.atan2(t,r)/n,Dt((i-(t*t+r*r)*n*n)/(2*n))]},o}t.geo.clipExtent=function(){var t,e,r,n,i,a,o={stream:function(t){return i&amp;&amp;(i.valid=!1),(i=a(t)).valid=!0,i},extent:function(s){return arguments.length?(a=nn(t=+s[0][0],e=+s[0][1],r=+s[1][0],n=+s[1][1]),i&amp;&amp;(i.valid=!1,i=null),o):[[t,e],[r,n]]}};return o.extent([[0,0],[960,500]])},(t.geo.conicEqualArea=function(){return an(on)}).raw=on,t.geo.albers=function(){return t.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},t.geo.albersUsa=function(){var e,r,n,i,a=t.geo.albers(),o=t.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=t.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,r){e=[t,r]}};function c(t){var a=t[0],o=t[1];return e=null,r(a,o),e||(n(a,o),e)||i(a,o),e}return c.invert=function(t){var e=a.scale(),r=a.translate(),n=(t[0]-r[0])/e,i=(t[1]-r[1])/e;return(i&gt;=.12&amp;&amp;i&lt;.234&amp;&amp;n&gt;=-.425&amp;&amp;n&lt;-.214?o:i&gt;=.166&amp;&amp;i&lt;.234&amp;&amp;n&gt;=-.214&amp;&amp;n&lt;-.115?s:a).invert(t)},c.stream=function(t){var e=a.stream(t),r=o.stream(t),n=s.stream(t);return{point:function(t,i){e.point(t,i),r.point(t,i),n.point(t,i)},sphere:function(){e.sphere(),r.sphere(),n.sphere()},lineStart:function(){e.lineStart(),r.lineStart(),n.lineStart()},lineEnd:function(){e.lineEnd(),r.lineEnd(),n.lineEnd()},polygonStart:function(){e.polygonStart(),r.polygonStart(),n.polygonStart()},polygonEnd:function(){e.polygonEnd(),r.polygonEnd(),n.polygonEnd()}}},c.precision=function(t){return arguments.length?(a.precision(t),o.precision(t),s.precision(t),c):a.precision()},c.scale=function(t){return arguments.length?(a.scale(t),o.scale(.35*t),s.scale(t),c.translate(a.translate())):a.scale()},c.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),u=+t[0],f=+t[1];return r=a.translate(t).clipExtent([[u-.455*e,f-.238*e],[u+.455*e,f+.238*e]]).stream(l).point,n=o.translate([u-.307*e,f+.201*e]).clipExtent([[u-.425*e+kt,f+.12*e+kt],[u-.214*e-kt,f+.234*e-kt]]).stream(l).point,i=s.translate([u-.205*e,f+.212*e]).clipExtent([[u-.214*e+kt,f+.166*e+kt],[u-.115*e-kt,f+.234*e-kt]]).stream(l).point,c},c.scale(1070)};var sn,ln,cn,un,fn,hn,pn={point:O,lineStart:O,lineEnd:O,polygonStart:function(){ln=0,pn.lineStart=dn},polygonEnd:function(){pn.lineStart=pn.lineEnd=pn.point=O,sn+=y(ln/2)}};function dn(){var t,e,r,n;function i(t,e){ln+=n*t-r*e,r=t,n=e}pn.point=function(a,o){pn.point=i,t=r=a,e=n=o},pn.lineEnd=function(){i(t,e)}}var gn={point:function(t,e){t&lt;cn&amp;&amp;(cn=t);t&gt;fn&amp;&amp;(fn=t);e&lt;un&amp;&amp;(un=e);e&gt;hn&amp;&amp;(hn=e)},lineStart:O,lineEnd:O,polygonStart:O,polygonEnd:O};function mn(){var t=vn(4.5),e=[],r={point:n,lineStart:function(){r.point=i},lineEnd:o,polygonStart:function(){r.lineEnd=s},polygonEnd:function(){r.lineEnd=o,r.point=n},pointRadius:function(e){return t=vn(e),r},result:function(){if(e.length){var t=e.join(&quot;&quot;);return e=[],t}}};function n(r,n){e.push(&quot;M&quot;,r,&quot;,&quot;,n,t)}function i(t,n){e.push(&quot;M&quot;,t,&quot;,&quot;,n),r.point=a}function a(t,r){e.push(&quot;L&quot;,t,&quot;,&quot;,r)}function o(){r.point=n}function s(){e.push(&quot;Z&quot;)}return r}function vn(t){return&quot;m0,&quot;+t+&quot;a&quot;+t+&quot;,&quot;+t+&quot; 0 1,1 0,&quot;+-2*t+&quot;a&quot;+t+&quot;,&quot;+t+&quot; 0 1,1 0,&quot;+2*t+&quot;z&quot;}var yn,xn={point:bn,lineStart:_n,lineEnd:wn,polygonStart:function(){xn.lineStart=Tn},polygonEnd:function(){xn.point=bn,xn.lineStart=_n,xn.lineEnd=wn}};function bn(t,e){xr+=t,br+=e,++_r}function _n(){var t,e;function r(r,n){var i=r-t,a=n-e,o=Math.sqrt(i*i+a*a);wr+=o*(t+r)/2,Tr+=o*(e+n)/2,kr+=o,bn(t=r,e=n)}xn.point=function(n,i){xn.point=r,bn(t=n,e=i)}}function wn(){xn.point=bn}function Tn(){var t,e,r,n;function i(t,e){var i=t-r,a=e-n,o=Math.sqrt(i*i+a*a);wr+=o*(r+t)/2,Tr+=o*(n+e)/2,kr+=o,Mr+=(o=n*t-r*e)*(r+t),Ar+=o*(n+e),Sr+=3*o,bn(r=t,n=e)}xn.point=function(a,o){xn.point=i,bn(t=r=a,e=n=o)},xn.lineEnd=function(){i(t,e)}}function kn(t){var e=4.5,r={point:n,lineStart:function(){r.point=i},lineEnd:o,polygonStart:function(){r.lineEnd=s},polygonEnd:function(){r.lineEnd=o,r.point=n},pointRadius:function(t){return e=t,r},result:O};function n(r,n){t.moveTo(r+e,n),t.arc(r,n,e,0,St)}function i(e,n){t.moveTo(e,n),r.point=a}function a(e,r){t.lineTo(e,r)}function o(){r.point=n}function s(){t.closePath()}return r}function Mn(t){var e=.5,r=Math.cos(30*Lt),n=16;function i(t){return(n?o:a)(t)}function a(e){return En(e,(function(r,n){r=t(r,n),e.point(r[0],r[1])}))}function o(e){var r,i,a,o,l,c,u,f,h,p,d,g,m={point:v,lineStart:y,lineEnd:b,polygonStart:function(){e.polygonStart(),m.lineStart=_},polygonEnd:function(){e.polygonEnd(),m.lineStart=y}};function v(r,n){r=t(r,n),e.point(r[0],r[1])}function y(){f=NaN,m.point=x,e.lineStart()}function x(r,i){var a=Ir([r,i]),o=t(r,i);s(f,h,u,p,d,g,f=o[0],h=o[1],u=r,p=a[0],d=a[1],g=a[2],n,e),e.point(f,h)}function b(){m.point=v,e.lineEnd()}function _(){y(),m.point=w,m.lineEnd=T}function w(t,e){x(r=t,e),i=f,a=h,o=p,l=d,c=g,m.point=x}function T(){s(f,h,u,p,d,g,i,a,r,o,l,c,n,e),m.lineEnd=b,b()}return m}function s(n,i,a,o,l,c,u,f,h,p,d,g,m,v){var x=u-n,b=f-i,_=x*x+b*b;if(_&gt;4*e&amp;&amp;m--){var w=o+p,T=l+d,k=c+g,M=Math.sqrt(w*w+T*T+k*k),A=Math.asin(k/=M),S=y(y(k)-1)&lt;kt||y(a-h)&lt;kt?(a+h)/2:Math.atan2(T,w),E=t(S,A),C=E[0],L=E[1],I=C-n,P=L-i,z=b*I-x*P;(z*z/_&gt;e||y((x*I+b*P)/_-.5)&gt;.3||o*p+l*d+c*g&lt;r)&amp;&amp;(s(n,i,a,o,l,c,C,L,S,w/=M,T/=M,k,m,v),v.point(C,L),s(C,L,S,w,T,k,u,f,h,p,d,g,m,v))}}return i.precision=function(t){return arguments.length?(n=(e=t*t)&gt;0&amp;&amp;16,i):Math.sqrt(e)},i}function An(t){var e=Mn((function(e,r){return t([e*It,r*It])}));return function(t){return In(e(t))}}function Sn(t){this.stream=t}function En(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function Cn(t){return Ln((function(){return t}))()}function Ln(e){var r,n,i,a,o,s,l=Mn((function(t,e){return[(t=r(t,e))[0]*c+a,o-t[1]*c]})),c=150,u=480,f=250,h=0,p=0,d=0,g=0,m=0,v=tn,y=L,x=null,b=null;function _(t){return[(t=i(t[0]*Lt,t[1]*Lt))[0]*c+a,o-t[1]*c]}function w(t){return(t=i.invert((t[0]-a)/c,(o-t[1])/c))&amp;&amp;[t[0]*It,t[1]*It]}function T(){i=Gr(n=On(d,g,m),r);var t=r(h,p);return a=u-t[0]*c,o=f+t[1]*c,k()}function k(){return s&amp;&amp;(s.valid=!1,s=null),_}return _.stream=function(t){return s&amp;&amp;(s.valid=!1),(s=In(v(n,l(y(t))))).valid=!0,s},_.clipAngle=function(t){return arguments.length?(v=null==t?(x=t,tn):en((x=+t)*Lt),k()):x},_.clipExtent=function(t){return arguments.length?(b=t,y=t?nn(t[0][0],t[0][1],t[1][0],t[1][1]):L,k()):b},_.scale=function(t){return arguments.length?(c=+t,T()):c},_.translate=function(t){return arguments.length?(u=+t[0],f=+t[1],T()):[u,f]},_.center=function(t){return arguments.length?(h=t[0]%360*Lt,p=t[1]%360*Lt,T()):[h*It,p*It]},_.rotate=function(t){return arguments.length?(d=t[0]%360*Lt,g=t[1]%360*Lt,m=t.length&gt;2?t[2]%360*Lt:0,T()):[d*It,g*It,m*It]},t.rebind(_,l,&quot;precision&quot;),function(){return r=e.apply(this,arguments),_.invert=r.invert&amp;&amp;w,T()}}function In(t){return En(t,(function(e,r){t.point(e*Lt,r*Lt)}))}function Pn(t,e){return[t,e]}function zn(t,e){return[t&gt;At?t-St:t&lt;-At?t+St:t,e]}function On(t,e,r){return t?e||r?Gr(Rn(t),Fn(e,r)):Rn(t):e||r?Fn(e,r):zn}function Dn(t){return function(e,r){return[(e+=t)&gt;At?e-St:e&lt;-At?e+St:e,r]}}function Rn(t){var e=Dn(t);return e.invert=Dn(-t),e}function Fn(t,e){var r=Math.cos(t),n=Math.sin(t),i=Math.cos(e),a=Math.sin(e);function o(t,e){var o=Math.cos(e),s=Math.cos(t)*o,l=Math.sin(t)*o,c=Math.sin(e),u=c*r+s*n;return[Math.atan2(l*i-u*a,s*r-c*n),Dt(u*i+l*a)]}return o.invert=function(t,e){var o=Math.cos(e),s=Math.cos(t)*o,l=Math.sin(t)*o,c=Math.sin(e),u=c*i-l*a;return[Math.atan2(l*i+c*a,s*r+u*n),Dt(u*r-s*n)]},o}function Bn(t,e){var r=Math.cos(t),n=Math.sin(t);return function(i,a,o,s){var l=o*e;null!=i?(i=Nn(r,i),a=Nn(r,a),(o&gt;0?i&lt;a:i&gt;a)&amp;&amp;(i+=o*St)):(i=t+o*St,a=t-.5*l);for(var c,u=i;o&gt;0?u&gt;a:u&lt;a;u-=l)s.point((c=Fr([r,-n*Math.cos(u),-n*Math.sin(u)]))[0],c[1])}}function Nn(t,e){var r=Ir(e);r[0]-=t,Rr(r);var n=Ot(-r[1]);return((-r[2]&lt;0?-n:n)+2*Math.PI-kt)%(2*Math.PI)}function jn(e,r,n){var i=t.range(e,r-kt,n).concat(r);return function(t){return i.map((function(e){return[t,e]}))}}function Un(e,r,n){var i=t.range(e,r-kt,n).concat(r);return function(t){return i.map((function(e){return[e,t]}))}}function Vn(t){return t.source}function qn(t){return t.target}t.geo.path=function(){var e,r,n,i,a,o=4.5;function s(e){return e&amp;&amp;(&quot;function&quot;==typeof o&amp;&amp;i.pointRadius(+o.apply(this,arguments)),a&amp;&amp;a.valid||(a=n(i)),t.geo.stream(e,a)),i.result()}function l(){return a=null,s}return s.area=function(e){return sn=0,t.geo.stream(e,n(pn)),sn},s.centroid=function(e){return xr=br=_r=wr=Tr=kr=Mr=Ar=Sr=0,t.geo.stream(e,n(xn)),Sr?[Mr/Sr,Ar/Sr]:kr?[wr/kr,Tr/kr]:_r?[xr/_r,br/_r]:[NaN,NaN]},s.bounds=function(e){return fn=hn=-(cn=un=1/0),t.geo.stream(e,n(gn)),[[cn,un],[fn,hn]]},s.projection=function(t){return arguments.length?(n=(e=t)?t.stream||An(t):L,l()):e},s.context=function(t){return arguments.length?(i=null==(r=t)?new mn:new kn(t),&quot;function&quot;!=typeof o&amp;&amp;i.pointRadius(o),l()):r},s.pointRadius=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:(i.pointRadius(+t),+t),s):o},s.projection(t.geo.albersUsa()).context(null)},t.geo.transform=function(t){return{stream:function(e){var r=new Sn(e);for(var n in t)r[n]=t[n];return r}}},Sn.prototype={point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},t.geo.projection=Cn,t.geo.projectionMutator=Ln,(t.geo.equirectangular=function(){return Cn(Pn)}).raw=Pn.invert=Pn,t.geo.rotation=function(t){function e(e){return(e=t(e[0]*Lt,e[1]*Lt))[0]*=It,e[1]*=It,e}return t=On(t[0]%360*Lt,t[1]*Lt,t.length&gt;2?t[2]*Lt:0),e.invert=function(e){return(e=t.invert(e[0]*Lt,e[1]*Lt))[0]*=It,e[1]*=It,e},e},zn.invert=Pn,t.geo.circle=function(){var t,e,r=[0,0],n=6;function i(){var t=&quot;function&quot;==typeof r?r.apply(this,arguments):r,n=On(-t[0]*Lt,-t[1]*Lt,0).invert,i=[];return e(null,null,1,{point:function(t,e){i.push(t=n(t,e)),t[0]*=It,t[1]*=It}}),{type:&quot;Polygon&quot;,coordinates:[i]}}return i.origin=function(t){return arguments.length?(r=t,i):r},i.angle=function(r){return arguments.length?(e=Bn((t=+r)*Lt,n*Lt),i):t},i.precision=function(r){return arguments.length?(e=Bn(t*Lt,(n=+r)*Lt),i):n},i.angle(90)},t.geo.distance=function(t,e){var r,n=(e[0]-t[0])*Lt,i=t[1]*Lt,a=e[1]*Lt,o=Math.sin(n),s=Math.cos(n),l=Math.sin(i),c=Math.cos(i),u=Math.sin(a),f=Math.cos(a);return Math.atan2(Math.sqrt((r=f*o)*r+(r=c*u-l*f*s)*r),l*u+c*f*s)},t.geo.graticule=function(){var e,r,n,i,a,o,s,l,c,u,f,h,p=10,d=p,g=90,m=360,v=2.5;function x(){return{type:&quot;MultiLineString&quot;,coordinates:b()}}function b(){return t.range(Math.ceil(i/g)*g,n,g).map(f).concat(t.range(Math.ceil(l/m)*m,s,m).map(h)).concat(t.range(Math.ceil(r/p)*p,e,p).filter((function(t){return y(t%g)&gt;kt})).map(c)).concat(t.range(Math.ceil(o/d)*d,a,d).filter((function(t){return y(t%m)&gt;kt})).map(u))}return x.lines=function(){return b().map((function(t){return{type:&quot;LineString&quot;,coordinates:t}}))},x.outline=function(){return{type:&quot;Polygon&quot;,coordinates:[f(i).concat(h(s).slice(1),f(n).reverse().slice(1),h(l).reverse().slice(1))]}},x.extent=function(t){return arguments.length?x.majorExtent(t).minorExtent(t):x.minorExtent()},x.majorExtent=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],l=+t[0][1],s=+t[1][1],i&gt;n&amp;&amp;(t=i,i=n,n=t),l&gt;s&amp;&amp;(t=l,l=s,s=t),x.precision(v)):[[i,l],[n,s]]},x.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],o=+t[0][1],a=+t[1][1],r&gt;e&amp;&amp;(t=r,r=e,e=t),o&gt;a&amp;&amp;(t=o,o=a,a=t),x.precision(v)):[[r,o],[e,a]]},x.step=function(t){return arguments.length?x.majorStep(t).minorStep(t):x.minorStep()},x.majorStep=function(t){return arguments.length?(g=+t[0],m=+t[1],x):[g,m]},x.minorStep=function(t){return arguments.length?(p=+t[0],d=+t[1],x):[p,d]},x.precision=function(t){return arguments.length?(v=+t,c=jn(o,a,90),u=Un(r,e,v),f=jn(l,s,90),h=Un(i,n,v),x):v},x.majorExtent([[-180,-90+kt],[180,90-kt]]).minorExtent([[-180,-80-kt],[180,80+kt]])},t.geo.greatArc=function(){var e,r,n=Vn,i=qn;function a(){return{type:&quot;LineString&quot;,coordinates:[e||n.apply(this,arguments),r||i.apply(this,arguments)]}}return a.distance=function(){return t.geo.distance(e||n.apply(this,arguments),r||i.apply(this,arguments))},a.source=function(t){return arguments.length?(n=t,e=&quot;function&quot;==typeof t?null:t,a):n},a.target=function(t){return arguments.length?(i=t,r=&quot;function&quot;==typeof t?null:t,a):i},a.precision=function(){return arguments.length?a:0},a},t.geo.interpolate=function(t,e){return r=t[0]*Lt,n=t[1]*Lt,i=e[0]*Lt,a=e[1]*Lt,o=Math.cos(n),s=Math.sin(n),l=Math.cos(a),c=Math.sin(a),u=o*Math.cos(r),f=o*Math.sin(r),h=l*Math.cos(i),p=l*Math.sin(i),d=2*Math.asin(Math.sqrt(Ft(a-n)+o*l*Ft(i-r))),g=1/Math.sin(d),(m=d?function(t){var e=Math.sin(t*=d)*g,r=Math.sin(d-t)*g,n=r*u+e*h,i=r*f+e*p,a=r*s+e*c;return[Math.atan2(i,n)*It,Math.atan2(a,Math.sqrt(n*n+i*i))*It]}:function(){return[r*It,n*It]}).distance=d,m;var r,n,i,a,o,s,l,c,u,f,h,p,d,g,m},t.geo.length=function(e){return yn=0,t.geo.stream(e,Hn),yn};var Hn={sphere:O,point:O,lineStart:function(){var t,e,r;function n(n,i){var a=Math.sin(i*=Lt),o=Math.cos(i),s=y((n*=Lt)-t),l=Math.cos(s);yn+=Math.atan2(Math.sqrt((s=o*Math.sin(s))*s+(s=r*a-e*o*l)*s),e*a+r*o*l),t=n,e=a,r=o}Hn.point=function(i,a){t=i*Lt,e=Math.sin(a*=Lt),r=Math.cos(a),Hn.point=n},Hn.lineEnd=function(){Hn.point=Hn.lineEnd=O}},lineEnd:O,polygonStart:O,polygonEnd:O};function Gn(t,e){function r(e,r){var n=Math.cos(e),i=Math.cos(r),a=t(n*i);return[a*i*Math.sin(e),a*Math.sin(r)]}return r.invert=function(t,r){var n=Math.sqrt(t*t+r*r),i=e(n),a=Math.sin(i),o=Math.cos(i);return[Math.atan2(t*a,n*o),Math.asin(n&amp;&amp;r*a/n)]},r}var Yn=Gn((function(t){return Math.sqrt(2/(1+t))}),(function(t){return 2*Math.asin(t/2)}));(t.geo.azimuthalEqualArea=function(){return Cn(Yn)}).raw=Yn;var Wn=Gn((function(t){var e=Math.acos(t);return e&amp;&amp;e/Math.sin(e)}),L);function Xn(t,e){var r=Math.cos(t),n=function(t){return Math.tan(At/4+t/2)},i=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(n(e)/n(t)),a=r*Math.pow(n(t),i)/i;if(!i)return Kn;function o(t,e){a&gt;0?e&lt;-Ct+kt&amp;&amp;(e=-Ct+kt):e&gt;Ct-kt&amp;&amp;(e=Ct-kt);var r=a/Math.pow(n(e),i);return[r*Math.sin(i*t),a-r*Math.cos(i*t)]}return o.invert=function(t,e){var r=a-e,n=Pt(i)*Math.sqrt(t*t+r*r);return[Math.atan2(t,r)/i,2*Math.atan(Math.pow(a/n,1/i))-Ct]},o}function Zn(t,e){var r=Math.cos(t),n=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),i=r/n+t;if(y(n)&lt;kt)return Pn;function a(t,e){var r=i-e;return[r*Math.sin(n*t),i-r*Math.cos(n*t)]}return a.invert=function(t,e){var r=i-e;return[Math.atan2(t,r)/n,i-Pt(n)*Math.sqrt(t*t+r*r)]},a}(t.geo.azimuthalEquidistant=function(){return Cn(Wn)}).raw=Wn,(t.geo.conicConformal=function(){return an(Xn)}).raw=Xn,(t.geo.conicEquidistant=function(){return an(Zn)}).raw=Zn;var Jn=Gn((function(t){return 1/t}),Math.atan);function Kn(t,e){return[t,Math.log(Math.tan(At/4+e/2))]}function Qn(t){var e,r=Cn(t),n=r.scale,i=r.translate,a=r.clipExtent;return r.scale=function(){var t=n.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.translate=function(){var t=i.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.clipExtent=function(t){var o=a.apply(r,arguments);if(o===r){if(e=null==t){var s=At*n(),l=i();a([[l[0]-s,l[1]-s],[l[0]+s,l[1]+s]])}}else e&amp;&amp;(o=null);return o},r.clipExtent(null)}(t.geo.gnomonic=function(){return Cn(Jn)}).raw=Jn,Kn.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Ct]},(t.geo.mercator=function(){return Qn(Kn)}).raw=Kn;var $n=Gn((function(){return 1}),Math.asin);(t.geo.orthographic=function(){return Cn($n)}).raw=$n;var ti=Gn((function(t){return 1/(1+t)}),(function(t){return 2*Math.atan(t)}));function ei(t,e){return[Math.log(Math.tan(At/4+e/2)),-t]}function ri(t){return t[0]}function ni(t){return t[1]}function ii(t){for(var e=t.length,r=[0,1],n=2,i=2;i&lt;e;i++){for(;n&gt;1&amp;&amp;zt(t[r[n-2]],t[r[n-1]],t[i])&lt;=0;)--n;r[n++]=i}return r.slice(0,n)}function ai(t,e){return t[0]-e[0]||t[1]-e[1]}(t.geo.stereographic=function(){return Cn(ti)}).raw=ti,ei.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Ct]},(t.geo.transverseMercator=function(){var t=Qn(ei),e=t.center,r=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return t?r([t[0],t[1],t.length&gt;2?t[2]+90:90]):[(t=r())[0],t[1],t[2]-90]},r([0,0,90])}).raw=ei,t.geom={},t.geom.hull=function(t){var e=ri,r=ni;if(arguments.length)return n(t);function n(t){if(t.length&lt;3)return[];var n,i=de(e),a=de(r),o=t.length,s=[],l=[];for(n=0;n&lt;o;n++)s.push([+i.call(this,t[n],n),+a.call(this,t[n],n),n]);for(s.sort(ai),n=0;n&lt;o;n++)l.push([s[n][0],-s[n][1]]);var c=ii(s),u=ii(l),f=u[0]===c[0],h=u[u.length-1]===c[c.length-1],p=[];for(n=c.length-1;n&gt;=0;--n)p.push(t[s[c[n]][2]]);for(n=+f;n&lt;u.length-h;++n)p.push(t[s[u[n]][2]]);return p}return n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n},t.geom.polygon=function(t){return U(t,oi),t};var oi=t.geom.polygon.prototype=[];function si(t,e,r){return(r[0]-e[0])*(t[1]-e[1])&lt;(r[1]-e[1])*(t[0]-e[0])}function li(t,e,r,n){var i=t[0],a=r[0],o=e[0]-i,s=n[0]-a,l=t[1],c=r[1],u=e[1]-l,f=n[1]-c,h=(s*(l-c)-f*(i-a))/(f*o-s*u);return[i+h*o,l+h*u]}function ci(t){var e=t[0],r=t[t.length-1];return!(e[0]-r[0]||e[1]-r[1])}oi.area=function(){for(var t,e=-1,r=this.length,n=this[r-1],i=0;++e&lt;r;)t=n,n=this[e],i+=t[1]*n[0]-t[0]*n[1];return.5*i},oi.centroid=function(t){var e,r,n=-1,i=this.length,a=0,o=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++n&lt;i;)e=s,s=this[n],r=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*r,o+=(e[1]+s[1])*r;return[a*t,o*t]},oi.clip=function(t){for(var e,r,n,i,a,o,s=ci(t),l=-1,c=this.length-ci(this),u=this[c-1];++l&lt;c;){for(e=t.slice(),t.length=0,i=this[l],a=e[(n=e.length-s)-1],r=-1;++r&lt;n;)si(o=e[r],u,i)?(si(a,u,i)||t.push(li(a,o,u,i)),t.push(o)):si(a,u,i)&amp;&amp;t.push(li(a,o,u,i)),a=o;s&amp;&amp;t.push(t[0]),u=i}return t};var ui,fi,hi,pi,di,gi=[],mi=[];function vi(){Ri(this),this.edge=this.site=this.circle=null}function yi(t){var e=gi.pop()||new vi;return e.site=t,e}function xi(t){Ei(t),hi.remove(t),gi.push(t),Ri(t)}function bi(t){var e=t.circle,r=e.x,n=e.cy,i={x:r,y:n},a=t.P,o=t.N,s=[t];xi(t);for(var l=a;l.circle&amp;&amp;y(r-l.circle.x)&lt;kt&amp;&amp;y(n-l.circle.cy)&lt;kt;)a=l.P,s.unshift(l),xi(l),l=a;s.unshift(l),Ei(l);for(var c=o;c.circle&amp;&amp;y(r-c.circle.x)&lt;kt&amp;&amp;y(n-c.circle.cy)&lt;kt;)o=c.N,s.push(c),xi(c),c=o;s.push(c),Ei(c);var u,f=s.length;for(u=1;u&lt;f;++u)c=s[u],l=s[u-1],zi(c.edge,l.site,c.site,i);l=s[0],(c=s[f-1]).edge=Ii(l.site,c.site,null,i),Si(l),Si(c)}function _i(t){for(var e,r,n,i,a=t.x,o=t.y,s=hi._;s;)if((n=wi(s,o)-a)&gt;kt)s=s.L;else{if(!((i=a-Ti(s,o))&gt;kt)){n&gt;-kt?(e=s.P,r=s):i&gt;-kt?(e=s,r=s.N):e=r=s;break}if(!s.R){e=s;break}s=s.R}var l=yi(t);if(hi.insert(e,l),e||r){if(e===r)return Ei(e),r=yi(e.site),hi.insert(l,r),l.edge=r.edge=Ii(e.site,l.site),Si(e),void Si(r);if(r){Ei(e),Ei(r);var c=e.site,u=c.x,f=c.y,h=t.x-u,p=t.y-f,d=r.site,g=d.x-u,m=d.y-f,v=2*(h*m-p*g),y=h*h+p*p,x=g*g+m*m,b={x:(m*y-p*x)/v+u,y:(h*x-g*y)/v+f};zi(r.edge,c,d,b),l.edge=Ii(c,t,null,b),r.edge=Ii(t,d,null,b),Si(e),Si(r)}else l.edge=Ii(e.site,l.site)}}function wi(t,e){var r=t.site,n=r.x,i=r.y,a=i-e;if(!a)return n;var o=t.P;if(!o)return-1/0;var s=(r=o.site).x,l=r.y,c=l-e;if(!c)return s;var u=s-n,f=1/a-1/c,h=u/c;return f?(-h+Math.sqrt(h*h-2*f*(u*u/(-2*c)-l+c/2+i-a/2)))/f+n:(n+s)/2}function Ti(t,e){var r=t.N;if(r)return wi(r,e);var n=t.site;return n.y===e?n.x:1/0}function ki(t){this.site=t,this.edges=[]}function Mi(t,e){return e.angle-t.angle}function Ai(){Ri(this),this.x=this.y=this.arc=this.site=this.cy=null}function Si(t){var e=t.P,r=t.N;if(e&amp;&amp;r){var n=e.site,i=t.site,a=r.site;if(n!==a){var o=i.x,s=i.y,l=n.x-o,c=n.y-s,u=a.x-o,f=2*(l*(m=a.y-s)-c*u);if(!(f&gt;=-Mt)){var h=l*l+c*c,p=u*u+m*m,d=(m*h-c*p)/f,g=(l*p-u*h)/f,m=g+s,v=mi.pop()||new Ai;v.arc=t,v.site=i,v.x=d+o,v.y=m+Math.sqrt(d*d+g*g),v.cy=m,t.circle=v;for(var y=null,x=di._;x;)if(v.y&lt;x.y||v.y===x.y&amp;&amp;v.x&lt;=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}di.insert(y,v),y||(pi=v)}}}}function Ei(t){var e=t.circle;e&amp;&amp;(e.P||(pi=e.N),di.remove(e),mi.push(e),Ri(e),t.circle=null)}function Ci(t,e){var r=t.b;if(r)return!0;var n,i,a=t.a,o=e[0][0],s=e[1][0],l=e[0][1],c=e[1][1],u=t.l,f=t.r,h=u.x,p=u.y,d=f.x,g=f.y,m=(h+d)/2,v=(p+g)/2;if(g===p){if(m&lt;o||m&gt;=s)return;if(h&gt;d){if(a){if(a.y&gt;=c)return}else a={x:m,y:l};r={x:m,y:c}}else{if(a){if(a.y&lt;l)return}else a={x:m,y:c};r={x:m,y:l}}}else if(i=v-(n=(h-d)/(g-p))*m,n&lt;-1||n&gt;1)if(h&gt;d){if(a){if(a.y&gt;=c)return}else a={x:(l-i)/n,y:l};r={x:(c-i)/n,y:c}}else{if(a){if(a.y&lt;l)return}else a={x:(c-i)/n,y:c};r={x:(l-i)/n,y:l}}else if(p&lt;g){if(a){if(a.x&gt;=s)return}else a={x:o,y:n*o+i};r={x:s,y:n*s+i}}else{if(a){if(a.x&lt;o)return}else a={x:s,y:n*s+i};r={x:o,y:n*o+i}}return t.a=a,t.b=r,!0}function Li(t,e){this.l=t,this.r=e,this.a=this.b=null}function Ii(t,e,r,n){var i=new Li(t,e);return ui.push(i),r&amp;&amp;zi(i,t,e,r),n&amp;&amp;zi(i,e,t,n),fi[t.i].edges.push(new Oi(i,t,e)),fi[e.i].edges.push(new Oi(i,e,t)),i}function Pi(t,e,r){var n=new Li(t,null);return n.a=e,n.b=r,ui.push(n),n}function zi(t,e,r,n){t.a||t.b?t.l===r?t.b=n:t.a=n:(t.a=n,t.l=e,t.r=r)}function Oi(t,e,r){var n=t.a,i=t.b;this.edge=t,this.site=e,this.angle=r?Math.atan2(r.y-e.y,r.x-e.x):t.l===e?Math.atan2(i.x-n.x,n.y-i.y):Math.atan2(n.x-i.x,i.y-n.y)}function Di(){this._=null}function Ri(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Fi(t,e){var r=e,n=e.R,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.R=n.L,r.R&amp;&amp;(r.R.U=r),n.L=r}function Bi(t,e){var r=e,n=e.L,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.L=n.R,r.L&amp;&amp;(r.L.U=r),n.R=r}function Ni(t){for(;t.L;)t=t.L;return t}function ji(t,e){var r,n,i,a=t.sort(Ui).pop();for(ui=[],fi=new Array(t.length),hi=new Di,di=new Di;;)if(i=pi,a&amp;&amp;(!i||a.y&lt;i.y||a.y===i.y&amp;&amp;a.x&lt;i.x))a.x===r&amp;&amp;a.y===n||(fi[a.i]=new ki(a),_i(a),r=a.x,n=a.y),a=t.pop();else{if(!i)break;bi(i.arc)}e&amp;&amp;(function(t){for(var e,r=ui,n=rn(t[0][0],t[0][1],t[1][0],t[1][1]),i=r.length;i--;)(!Ci(e=r[i],t)||!n(e)||y(e.a.x-e.b.x)&lt;kt&amp;&amp;y(e.a.y-e.b.y)&lt;kt)&amp;&amp;(e.a=e.b=null,r.splice(i,1))}(e),function(t){for(var e,r,n,i,a,o,s,l,c,u,f=t[0][0],h=t[1][0],p=t[0][1],d=t[1][1],g=fi,m=g.length;m--;)if((a=g[m])&amp;&amp;a.prepare())for(l=(s=a.edges).length,o=0;o&lt;l;)n=(u=s[o].end()).x,i=u.y,e=(c=s[++o%l].start()).x,r=c.y,(y(n-e)&gt;kt||y(i-r)&gt;kt)&amp;&amp;(s.splice(o,0,new Oi(Pi(a.site,u,y(n-f)&lt;kt&amp;&amp;d-i&gt;kt?{x:f,y:y(e-f)&lt;kt?r:d}:y(i-d)&lt;kt&amp;&amp;h-n&gt;kt?{x:y(r-d)&lt;kt?e:h,y:d}:y(n-h)&lt;kt&amp;&amp;i-p&gt;kt?{x:h,y:y(e-h)&lt;kt?r:p}:y(i-p)&lt;kt&amp;&amp;n-f&gt;kt?{x:y(r-p)&lt;kt?e:f,y:p}:null),a.site,null)),++l)}(e));var o={cells:fi,edges:ui};return hi=di=ui=fi=null,o}function Ui(t,e){return e.y-t.y||e.x-t.x}ki.prototype.prepare=function(){for(var t,e=this.edges,r=e.length;r--;)(t=e[r].edge).b&amp;&amp;t.a||e.splice(r,1);return e.sort(Mi),e.length},Oi.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Di.prototype={insert:function(t,e){var r,n,i;if(t){if(e.P=t,e.N=t.N,t.N&amp;&amp;(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;r=t}else this._?(t=Ni(this._),e.P=null,e.N=t,t.P=t.L=e,r=t):(e.P=e.N=null,this._=e,r=null);for(e.L=e.R=null,e.U=r,e.C=!0,t=e;r&amp;&amp;r.C;)r===(n=r.U).L?(i=n.R)&amp;&amp;i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.R&amp;&amp;(Fi(this,r),r=(t=r).U),r.C=!1,n.C=!0,Bi(this,n)):(i=n.L)&amp;&amp;i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.L&amp;&amp;(Bi(this,r),r=(t=r).U),r.C=!1,n.C=!0,Fi(this,n)),r=t.U;this._.C=!1},remove:function(t){t.N&amp;&amp;(t.N.P=t.P),t.P&amp;&amp;(t.P.N=t.N),t.N=t.P=null;var e,r,n,i=t.U,a=t.L,o=t.R;if(r=a?o?Ni(o):a:o,i?i.L===t?i.L=r:i.R=r:this._=r,a&amp;&amp;o?(n=r.C,r.C=t.C,r.L=a,a.U=r,r!==o?(i=r.U,r.U=t.U,t=r.R,i.L=t,r.R=o,o.U=r):(r.U=i,i=r,t=r.R)):(n=t.C,t=r),t&amp;&amp;(t.U=i),!n)if(t&amp;&amp;t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&amp;&amp;(e.C=!1,i.C=!0,Fi(this,i),e=i.R),e.L&amp;&amp;e.L.C||e.R&amp;&amp;e.R.C){e.R&amp;&amp;e.R.C||(e.L.C=!1,e.C=!0,Bi(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,Fi(this,i),t=this._;break}}else if((e=i.L).C&amp;&amp;(e.C=!1,i.C=!0,Bi(this,i),e=i.L),e.L&amp;&amp;e.L.C||e.R&amp;&amp;e.R.C){e.L&amp;&amp;e.L.C||(e.R.C=!1,e.C=!0,Fi(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,Bi(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&amp;&amp;(t.C=!1)}}},t.geom.voronoi=function(t){var e=ri,r=ni,n=e,i=r,a=Vi;if(t)return o(t);function o(t){var e=new Array(t.length),r=a[0][0],n=a[0][1],i=a[1][0],o=a[1][1];return ji(s(t),a).cells.forEach((function(a,s){var l=a.edges,c=a.site;(e[s]=l.length?l.map((function(t){var e=t.start();return[e.x,e.y]})):c.x&gt;=r&amp;&amp;c.x&lt;=i&amp;&amp;c.y&gt;=n&amp;&amp;c.y&lt;=o?[[r,o],[i,o],[i,n],[r,n]]:[]).point=t[s]})),e}function s(t){return t.map((function(t,e){return{x:Math.round(n(t,e)/kt)*kt,y:Math.round(i(t,e)/kt)*kt,i:e}}))}return o.links=function(t){return ji(s(t)).edges.filter((function(t){return t.l&amp;&amp;t.r})).map((function(e){return{source:t[e.l.i],target:t[e.r.i]}}))},o.triangles=function(t){var e=[];return ji(s(t)).cells.forEach((function(r,n){for(var i,a,o,s,l=r.site,c=r.edges.sort(Mi),u=-1,f=c.length,h=c[f-1].edge,p=h.l===l?h.r:h.l;++u&lt;f;)h,i=p,p=(h=c[u].edge).l===l?h.r:h.l,n&lt;i.i&amp;&amp;n&lt;p.i&amp;&amp;(o=i,s=p,((a=l).x-s.x)*(o.y-a.y)-(a.x-o.x)*(s.y-a.y)&lt;0)&amp;&amp;e.push([t[n],t[i.i],t[p.i]])})),e},o.x=function(t){return arguments.length?(n=de(e=t),o):e},o.y=function(t){return arguments.length?(i=de(r=t),o):r},o.clipExtent=function(t){return arguments.length?(a=null==t?Vi:t,o):a===Vi?null:a},o.size=function(t){return arguments.length?o.clipExtent(t&amp;&amp;[[0,0],t]):a===Vi?null:a&amp;&amp;a[1]},o};var Vi=[[-1e6,-1e6],[1e6,1e6]];function qi(t){return t.x}function Hi(t){return t.y}function Gi(t,e,r,n,i,a){if(!t(e,r,n,i,a)){var o=.5*(r+i),s=.5*(n+a),l=e.nodes;l[0]&amp;&amp;Gi(t,l[0],r,n,o,s),l[1]&amp;&amp;Gi(t,l[1],o,n,i,s),l[2]&amp;&amp;Gi(t,l[2],r,s,o,a),l[3]&amp;&amp;Gi(t,l[3],o,s,i,a)}}function Yi(t,e,r,n,i,a,o){var s,l=1/0;return function t(c,u,f,h,p){if(!(u&gt;a||f&gt;o||h&lt;n||p&lt;i)){if(d=c.point){var d,g=e-c.x,m=r-c.y,v=g*g+m*m;if(v&lt;l){var y=Math.sqrt(l=v);n=e-y,i=r-y,a=e+y,o=r+y,s=d}}for(var x=c.nodes,b=.5*(u+h),_=.5*(f+p),w=(r&gt;=_)&lt;&lt;1|e&gt;=b,T=w+4;w&lt;T;++w)if(c=x[3&amp;w])switch(3&amp;w){case 0:t(c,u,f,b,_);break;case 1:t(c,b,f,h,_);break;case 2:t(c,u,_,b,p);break;case 3:t(c,b,_,h,p)}}}(t,n,i,a,o),s}function Wi(e,r){e=t.rgb(e),r=t.rgb(r);var n=e.r,i=e.g,a=e.b,o=r.r-n,s=r.g-i,l=r.b-a;return function(t){return&quot;#&quot;+se(Math.round(n+o*t))+se(Math.round(i+s*t))+se(Math.round(a+l*t))}}function Xi(t,e){var r,n={},i={};for(r in t)r in e?n[r]=$i(t[r],e[r]):i[r]=t[r];for(r in e)r in t||(i[r]=e[r]);return function(t){for(r in n)i[r]=n[r](t);return i}}function Zi(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Ji(t,e){var r,n,i,a=Ki.lastIndex=Qi.lastIndex=0,o=-1,s=[],l=[];for(t+=&quot;&quot;,e+=&quot;&quot;;(r=Ki.exec(t))&amp;&amp;(n=Qi.exec(e));)(i=n.index)&gt;a&amp;&amp;(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:Zi(r,n)})),a=Qi.lastIndex;return a&lt;e.length&amp;&amp;(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length&lt;2?l[0]?(e=l[0].x,function(t){return e(t)+&quot;&quot;}):function(){return e}:(e=l.length,function(t){for(var r,n=0;n&lt;e;++n)s[(r=l[n]).i]=r.x(t);return s.join(&quot;&quot;)})}t.geom.delaunay=function(e){return t.geom.voronoi().triangles(e)},t.geom.quadtree=function(t,e,r,n,i){var a,o=ri,s=ni;if(a=arguments.length)return o=qi,s=Hi,3===a&amp;&amp;(i=r,n=e,r=e=0),l(t);function l(t){var l,c,u,f,h,p,d,g,m,v=de(o),x=de(s);if(null!=e)p=e,d=r,g=n,m=i;else if(g=m=-(p=d=1/0),c=[],u=[],h=t.length,a)for(f=0;f&lt;h;++f)(l=t[f]).x&lt;p&amp;&amp;(p=l.x),l.y&lt;d&amp;&amp;(d=l.y),l.x&gt;g&amp;&amp;(g=l.x),l.y&gt;m&amp;&amp;(m=l.y),c.push(l.x),u.push(l.y);else for(f=0;f&lt;h;++f){var b=+v(l=t[f],f),_=+x(l,f);b&lt;p&amp;&amp;(p=b),_&lt;d&amp;&amp;(d=_),b&gt;g&amp;&amp;(g=b),_&gt;m&amp;&amp;(m=_),c.push(b),u.push(_)}var w=g-p,T=m-d;function k(t,e,r,n,i,a,o,s){if(!isNaN(r)&amp;&amp;!isNaN(n))if(t.leaf){var l=t.x,c=t.y;if(null!=l)if(y(l-r)+y(c-n)&lt;.01)M(t,e,r,n,i,a,o,s);else{var u=t.point;t.x=t.y=t.point=null,M(t,u,l,c,i,a,o,s),M(t,e,r,n,i,a,o,s)}else t.x=r,t.y=n,t.point=e}else M(t,e,r,n,i,a,o,s)}function M(t,e,r,n,i,a,o,s){var l=.5*(i+o),c=.5*(a+s),u=r&gt;=l,f=n&gt;=c,h=f&lt;&lt;1|u;t.leaf=!1,u?i=l:o=l,f?a=c:s=c,k(t=t.nodes[h]||(t.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null}),e,r,n,i,a,o,s)}w&gt;T?m=d+w:g=p+T;var A={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){k(A,t,+v(t,++f),+x(t,f),p,d,g,m)},visit:function(t){Gi(t,A,p,d,g,m)},find:function(t){return Yi(A,t[0],t[1],p,d,g,m)}};if(f=-1,null==e){for(;++f&lt;h;)k(A,t[f],c[f],u[f],p,d,g,m);--f}else t.forEach(A.add);return c=u=t=l=null,A}return l.x=function(t){return arguments.length?(o=t,l):o},l.y=function(t){return arguments.length?(s=t,l):s},l.extent=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=+t[0][0],r=+t[0][1],n=+t[1][0],i=+t[1][1]),l):null==e?null:[[e,r],[n,i]]},l.size=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=r=0,n=+t[0],i=+t[1]),l):null==e?null:[n-e,i-r]},l},t.interpolateRgb=Wi,t.interpolateObject=Xi,t.interpolateNumber=Zi,t.interpolateString=Ji;var Ki=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qi=new RegExp(Ki.source,&quot;g&quot;);function $i(e,r){for(var n,i=t.interpolators.length;--i&gt;=0&amp;&amp;!(n=t.interpolators[i](e,r)););return n}function ta(t,e){var r,n=[],i=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(r=0;r&lt;s;++r)n.push($i(t[r],e[r]));for(;r&lt;a;++r)i[r]=t[r];for(;r&lt;o;++r)i[r]=e[r];return function(t){for(r=0;r&lt;s;++r)i[r]=n[r](t);return i}}t.interpolate=$i,t.interpolators=[function(t,e){var r=typeof e;return(&quot;string&quot;===r?pe.has(e.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(e)?Wi:Ji:e instanceof Vt?Wi:Array.isArray(e)?ta:&quot;object&quot;===r&amp;&amp;isNaN(e)?Xi:Zi)(t,e)}],t.interpolateArray=ta;var ea=function(){return L},ra=t.map({linear:ea,poly:function(t){return function(e){return Math.pow(e,t)}},quad:function(){return sa},cubic:function(){return la},sin:function(){return ua},exp:function(){return fa},circle:function(){return ha},elastic:function(t,e){var r;arguments.length&lt;2&amp;&amp;(e=.45);arguments.length?r=e/St*Math.asin(1/t):(t=1,r=e/4);return function(n){return 1+t*Math.pow(2,-10*n)*Math.sin((n-r)*St/e)}},back:function(t){t||(t=1.70158);return function(e){return e*e*((t+1)*e-t)}},bounce:function(){return pa}}),na=t.map({in:L,out:aa,&quot;in-out&quot;:oa,&quot;out-in&quot;:function(t){return oa(aa(t))}});function ia(t){return function(e){return e&lt;=0?0:e&gt;=1?1:t(e)}}function aa(t){return function(e){return 1-t(1-e)}}function oa(t){return function(e){return.5*(e&lt;.5?t(2*e):2-t(2-2*e))}}function sa(t){return t*t}function la(t){return t*t*t}function ca(t){if(t&lt;=0)return 0;if(t&gt;=1)return 1;var e=t*t,r=e*t;return 4*(t&lt;.5?r:3*(t-e)+r-.75)}function ua(t){return 1-Math.cos(t*Ct)}function fa(t){return Math.pow(2,10*(t-1))}function ha(t){return 1-Math.sqrt(1-t*t)}function pa(t){return t&lt;1/2.75?7.5625*t*t:t&lt;2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t&lt;2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function da(t,e){return e-=t,function(r){return Math.round(t+e*r)}}function ga(t){var e,r,n,i=[t.a,t.b],a=[t.c,t.d],o=va(i),s=ma(i,a),l=va(((e=a)[0]+=(n=-s)*(r=i)[0],e[1]+=n*r[1],e))||0;i[0]*a[1]&lt;a[0]*i[1]&amp;&amp;(i[0]*=-1,i[1]*=-1,o*=-1,s*=-1),this.rotate=(o?Math.atan2(i[1],i[0]):Math.atan2(-a[0],a[1]))*It,this.translate=[t.e,t.f],this.scale=[o,l],this.skew=l?Math.atan2(s,l)*It:0}function ma(t,e){return t[0]*e[0]+t[1]*e[1]}function va(t){var e=Math.sqrt(ma(t,t));return e&amp;&amp;(t[0]/=e,t[1]/=e),e}t.ease=function(t){var e=t.indexOf(&quot;-&quot;),n=e&gt;=0?t.slice(0,e):t,i=e&gt;=0?t.slice(e+1):&quot;in&quot;;return n=ra.get(n)||ea,ia((i=na.get(i)||L)(n.apply(null,r.call(arguments,1))))},t.interpolateHcl=function(e,r){e=t.hcl(e),r=t.hcl(r);var n=e.h,i=e.c,a=e.l,o=r.h-n,s=r.c-i,l=r.l-a;isNaN(s)&amp;&amp;(s=0,i=isNaN(i)?r.c:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o&gt;180?o-=360:o&lt;-180&amp;&amp;(o+=360);return function(t){return Xt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateHsl=function(e,r){e=t.hsl(e),r=t.hsl(r);var n=e.h,i=e.s,a=e.l,o=r.h-n,s=r.s-i,l=r.l-a;isNaN(s)&amp;&amp;(s=0,i=isNaN(i)?r.s:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o&gt;180?o-=360:o&lt;-180&amp;&amp;(o+=360);return function(t){return Gt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateLab=function(e,r){e=t.lab(e),r=t.lab(r);var n=e.l,i=e.a,a=e.b,o=r.l-n,s=r.a-i,l=r.b-a;return function(t){return Qt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateRound=da,t.transform=function(e){var r=i.createElementNS(t.ns.prefix.svg,&quot;g&quot;);return(t.transform=function(t){if(null!=t){r.setAttribute(&quot;transform&quot;,t);var e=r.transform.baseVal.consolidate()}return new ga(e?e.matrix:ya)})(e)},ga.prototype.toString=function(){return&quot;translate(&quot;+this.translate+&quot;)rotate(&quot;+this.rotate+&quot;)skewX(&quot;+this.skew+&quot;)scale(&quot;+this.scale+&quot;)&quot;};var ya={a:1,b:0,c:0,d:1,e:0,f:0};function xa(t){return t.length?t.pop()+&quot;,&quot;:&quot;&quot;}function ba(e,r){var n=[],i=[];return e=t.transform(e),r=t.transform(r),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(&quot;translate(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);n.push({i:i-4,x:Zi(t[0],e[0])},{i:i-2,x:Zi(t[1],e[1])})}else(e[0]||e[1])&amp;&amp;r.push(&quot;translate(&quot;+e+&quot;)&quot;)}(e.translate,r.translate,n,i),function(t,e,r,n){t!==e?(t-e&gt;180?e+=360:e-t&gt;180&amp;&amp;(t+=360),n.push({i:r.push(xa(r)+&quot;rotate(&quot;,null,&quot;)&quot;)-2,x:Zi(t,e)})):e&amp;&amp;r.push(xa(r)+&quot;rotate(&quot;+e+&quot;)&quot;)}(e.rotate,r.rotate,n,i),function(t,e,r,n){t!==e?n.push({i:r.push(xa(r)+&quot;skewX(&quot;,null,&quot;)&quot;)-2,x:Zi(t,e)}):e&amp;&amp;r.push(xa(r)+&quot;skewX(&quot;+e+&quot;)&quot;)}(e.skew,r.skew,n,i),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(xa(r)+&quot;scale(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);n.push({i:i-4,x:Zi(t[0],e[0])},{i:i-2,x:Zi(t[1],e[1])})}else 1===e[0]&amp;&amp;1===e[1]||r.push(xa(r)+&quot;scale(&quot;+e+&quot;)&quot;)}(e.scale,r.scale,n,i),e=r=null,function(t){for(var e,r=-1,a=i.length;++r&lt;a;)n[(e=i[r]).i]=e.x(t);return n.join(&quot;&quot;)}}function _a(t,e){return e=(e-=t=+t)||1/e,function(r){return(r-t)/e}}function wa(t,e){return e=(e-=t=+t)||1/e,function(r){return Math.max(0,Math.min(1,(r-t)/e))}}function Ta(t){for(var e=t.source,r=t.target,n=function(t,e){if(t===e)return t;var r=ka(t),n=ka(e),i=r.pop(),a=n.pop(),o=null;for(;i===a;)o=i,i=r.pop(),a=n.pop();return o}(e,r),i=[e];e!==n;)e=e.parent,i.push(e);for(var a=i.length;r!==n;)i.splice(a,0,r),r=r.parent;return i}function ka(t){for(var e=[],r=t.parent;null!=r;)e.push(t),t=r,r=r.parent;return e.push(t),e}function Ma(t){t.fixed|=2}function Aa(t){t.fixed&amp;=-7}function Sa(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Ea(t){t.fixed&amp;=-5}t.interpolateTransform=ba,t.layout={},t.layout.bundle=function(){return function(t){for(var e=[],r=-1,n=t.length;++r&lt;n;)e.push(Ta(t[r]));return e}},t.layout.chord=function(){var e,r,n,i,a,o,s,l={},c=0;function u(){var l,u,h,p,d,g={},m=[],v=t.range(i),y=[];for(e=[],r=[],l=0,p=-1;++p&lt;i;){for(u=0,d=-1;++d&lt;i;)u+=n[p][d];m.push(u),y.push(t.range(i)),l+=u}for(a&amp;&amp;v.sort((function(t,e){return a(m[t],m[e])})),o&amp;&amp;y.forEach((function(t,e){t.sort((function(t,r){return o(n[e][t],n[e][r])}))})),l=(St-c*i)/l,u=0,p=-1;++p&lt;i;){for(h=u,d=-1;++d&lt;i;){var x=v[p],b=y[x][d],_=n[x][b],w=u,T=u+=_*l;g[x+&quot;-&quot;+b]={index:x,subindex:b,startAngle:w,endAngle:T,value:_}}r[x]={index:x,startAngle:h,endAngle:u,value:m[x]},u+=c}for(p=-1;++p&lt;i;)for(d=p-1;++d&lt;i;){var k=g[p+&quot;-&quot;+d],M=g[d+&quot;-&quot;+p];(k.value||M.value)&amp;&amp;e.push(k.value&lt;M.value?{source:M,target:k}:{source:k,target:M})}s&amp;&amp;f()}function f(){e.sort((function(t,e){return s((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)}))}return l.matrix=function(t){return arguments.length?(i=(n=t)&amp;&amp;n.length,e=r=null,l):n},l.padding=function(t){return arguments.length?(c=t,e=r=null,l):c},l.sortGroups=function(t){return arguments.length?(a=t,e=r=null,l):a},l.sortSubgroups=function(t){return arguments.length?(o=t,e=null,l):o},l.sortChords=function(t){return arguments.length?(s=t,e&amp;&amp;f(),l):s},l.chords=function(){return e||u(),e},l.groups=function(){return r||u(),r},l},t.layout.force=function(){var e,r,n,i,a,o,s={},l=t.dispatch(&quot;start&quot;,&quot;tick&quot;,&quot;end&quot;),c=[1,1],u=.9,f=Ca,h=La,p=-30,d=Ia,g=.1,m=.64,v=[],y=[];function x(t){return function(e,r,n,i){if(e.point!==t){var a=e.cx-t.x,o=e.cy-t.y,s=i-r,l=a*a+o*o;if(s*s/m&lt;l){if(l&lt;d){var c=e.charge/l;t.px-=a*c,t.py-=o*c}return!0}if(e.point&amp;&amp;l&amp;&amp;l&lt;d){c=e.pointCharge/l;t.px-=a*c,t.py-=o*c}}return!e.charge}}function b(e){e.px=t.event.x,e.py=t.event.y,s.resume()}return s.tick=function(){if((n*=.99)&lt;.005)return e=null,l.end({type:&quot;end&quot;,alpha:n=0}),!0;var r,s,f,h,d,m,b,_,w,T=v.length,k=y.length;for(s=0;s&lt;k;++s)h=(f=y[s]).source,(m=(_=(d=f.target).x-h.x)*_+(w=d.y-h.y)*w)&amp;&amp;(_*=m=n*a[s]*((m=Math.sqrt(m))-i[s])/m,w*=m,d.x-=_*(b=h.weight+d.weight?h.weight/(h.weight+d.weight):.5),d.y-=w*b,h.x+=_*(b=1-b),h.y+=w*b);if((b=n*g)&amp;&amp;(_=c[0]/2,w=c[1]/2,s=-1,b))for(;++s&lt;T;)(f=v[s]).x+=(_-f.x)*b,f.y+=(w-f.y)*b;if(p)for(!function t(e,r,n){var i=0,a=0;if(e.charge=0,!e.leaf)for(var o,s=e.nodes,l=s.length,c=-1;++c&lt;l;)null!=(o=s[c])&amp;&amp;(t(o,r,n),e.charge+=o.charge,i+=o.charge*o.cx,a+=o.charge*o.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var u=r*n[e.point.index];e.charge+=e.pointCharge=u,i+=u*e.point.x,a+=u*e.point.y}e.cx=i/e.charge,e.cy=a/e.charge}(r=t.geom.quadtree(v),n,o),s=-1;++s&lt;T;)(f=v[s]).fixed||r.visit(x(f));for(s=-1;++s&lt;T;)(f=v[s]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*u,f.y-=(f.py-(f.py=f.y))*u);l.tick({type:&quot;tick&quot;,alpha:n})},s.nodes=function(t){return arguments.length?(v=t,s):v},s.links=function(t){return arguments.length?(y=t,s):y},s.size=function(t){return arguments.length?(c=t,s):c},s.linkDistance=function(t){return arguments.length?(f=&quot;function&quot;==typeof t?t:+t,s):f},s.distance=s.linkDistance,s.linkStrength=function(t){return arguments.length?(h=&quot;function&quot;==typeof t?t:+t,s):h},s.friction=function(t){return arguments.length?(u=+t,s):u},s.charge=function(t){return arguments.length?(p=&quot;function&quot;==typeof t?t:+t,s):p},s.chargeDistance=function(t){return arguments.length?(d=t*t,s):Math.sqrt(d)},s.gravity=function(t){return arguments.length?(g=+t,s):g},s.theta=function(t){return arguments.length?(m=t*t,s):Math.sqrt(m)},s.alpha=function(t){return arguments.length?(t=+t,n?t&gt;0?n=t:(e.c=null,e.t=NaN,e=null,l.end({type:&quot;end&quot;,alpha:n=0})):t&gt;0&amp;&amp;(l.start({type:&quot;start&quot;,alpha:n=t}),e=we(s.tick)),s):n},s.start=function(){var t,e,r,n=v.length,l=y.length,u=c[0],d=c[1];for(t=0;t&lt;n;++t)(r=v[t]).index=t,r.weight=0;for(t=0;t&lt;l;++t)&quot;number&quot;==typeof(r=y[t]).source&amp;&amp;(r.source=v[r.source]),&quot;number&quot;==typeof r.target&amp;&amp;(r.target=v[r.target]),++r.source.weight,++r.target.weight;for(t=0;t&lt;n;++t)r=v[t],isNaN(r.x)&amp;&amp;(r.x=g(&quot;x&quot;,u)),isNaN(r.y)&amp;&amp;(r.y=g(&quot;y&quot;,d)),isNaN(r.px)&amp;&amp;(r.px=r.x),isNaN(r.py)&amp;&amp;(r.py=r.y);if(i=[],&quot;function&quot;==typeof f)for(t=0;t&lt;l;++t)i[t]=+f.call(this,y[t],t);else for(t=0;t&lt;l;++t)i[t]=f;if(a=[],&quot;function&quot;==typeof h)for(t=0;t&lt;l;++t)a[t]=+h.call(this,y[t],t);else for(t=0;t&lt;l;++t)a[t]=h;if(o=[],&quot;function&quot;==typeof p)for(t=0;t&lt;n;++t)o[t]=+p.call(this,v[t],t);else for(t=0;t&lt;n;++t)o[t]=p;function g(r,i){if(!e){for(e=new Array(n),c=0;c&lt;n;++c)e[c]=[];for(c=0;c&lt;l;++c){var a=y[c];e[a.source.index].push(a.target),e[a.target.index].push(a.source)}}for(var o,s=e[t],c=-1,u=s.length;++c&lt;u;)if(!isNaN(o=s[c][r]))return o;return Math.random()*i}return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){if(r||(r=t.behavior.drag().origin(L).on(&quot;dragstart.force&quot;,Ma).on(&quot;drag.force&quot;,b).on(&quot;dragend.force&quot;,Aa)),!arguments.length)return r;this.on(&quot;mouseover.force&quot;,Sa).on(&quot;mouseout.force&quot;,Ea).call(r)},t.rebind(s,l,&quot;on&quot;)};var Ca=20,La=1,Ia=1/0;function Pa(e,r){return t.rebind(e,r,&quot;sort&quot;,&quot;children&quot;,&quot;value&quot;),e.nodes=e,e.links=Ba,e}function za(t,e){for(var r=[t];null!=(t=r.pop());)if(e(t),(i=t.children)&amp;&amp;(n=i.length))for(var n,i;--n&gt;=0;)r.push(i[n])}function Oa(t,e){for(var r=[t],n=[];null!=(t=r.pop());)if(n.push(t),(a=t.children)&amp;&amp;(i=a.length))for(var i,a,o=-1;++o&lt;i;)r.push(a[o]);for(;null!=(t=n.pop());)e(t)}function Da(t){return t.children}function Ra(t){return t.value}function Fa(t,e){return e.value-t.value}function Ba(e){return t.merge(e.map((function(t){return(t.children||[]).map((function(e){return{source:t,target:e}}))})))}t.layout.hierarchy=function(){var t=Fa,e=Da,r=Ra;function n(i){var a,o=[i],s=[];for(i.depth=0;null!=(a=o.pop());)if(s.push(a),(c=e.call(n,a,a.depth))&amp;&amp;(l=c.length)){for(var l,c,u;--l&gt;=0;)o.push(u=c[l]),u.parent=a,u.depth=a.depth+1;r&amp;&amp;(a.value=0),a.children=c}else r&amp;&amp;(a.value=+r.call(n,a,a.depth)||0),delete a.children;return Oa(i,(function(e){var n,i;t&amp;&amp;(n=e.children)&amp;&amp;n.sort(t),r&amp;&amp;(i=e.parent)&amp;&amp;(i.value+=e.value)})),s}return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&amp;&amp;(za(t,(function(t){t.children&amp;&amp;(t.value=0)})),Oa(t,(function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&amp;&amp;(e.value+=t.value)}))),t},n},t.layout.partition=function(){var e=t.layout.hierarchy(),r=[1,1];function n(t,n){var i=e.call(this,t,n);return function t(e,r,n,i){var a=e.children;if(e.x=r,e.y=e.depth*i,e.dx=n,e.dy=i,a&amp;&amp;(o=a.length)){var o,s,l,c=-1;for(n=e.value?n/e.value:0;++c&lt;o;)t(s=a[c],r,l=s.value*n,i),r+=l}}(i[0],0,r[0],r[1]/function t(e){var r=e.children,n=0;if(r&amp;&amp;(i=r.length))for(var i,a=-1;++a&lt;i;)n=Math.max(n,t(r[a]));return 1+n}(i[0])),i}return n.size=function(t){return arguments.length?(r=t,n):r},Pa(n,e)},t.layout.pie=function(){var e=Number,r=Na,n=0,i=St,a=0;function o(s){var l,c=s.length,u=s.map((function(t,r){return+e.call(o,t,r)})),f=+(&quot;function&quot;==typeof n?n.apply(this,arguments):n),h=(&quot;function&quot;==typeof i?i.apply(this,arguments):i)-f,p=Math.min(Math.abs(h)/c,+(&quot;function&quot;==typeof a?a.apply(this,arguments):a)),d=p*(h&lt;0?-1:1),g=t.sum(u),m=g?(h-c*d)/g:0,v=t.range(c),y=[];return null!=r&amp;&amp;v.sort(r===Na?function(t,e){return u[e]-u[t]}:function(t,e){return r(s[t],s[e])}),v.forEach((function(t){y[t]={data:s[t],value:l=u[t],startAngle:f,endAngle:f+=l*m+d,padAngle:p}})),y}return o.value=function(t){return arguments.length?(e=t,o):e},o.sort=function(t){return arguments.length?(r=t,o):r},o.startAngle=function(t){return arguments.length?(n=t,o):n},o.endAngle=function(t){return arguments.length?(i=t,o):i},o.padAngle=function(t){return arguments.length?(a=t,o):a},o};var Na={};function ja(t){return t.x}function Ua(t){return t.y}function Va(t,e,r){t.y0=e,t.y=r}t.layout.stack=function(){var e=L,r=Ga,n=Ya,i=Va,a=ja,o=Ua;function s(l,c){if(!(p=l.length))return l;var u=l.map((function(t,r){return e.call(s,t,r)})),f=u.map((function(t){return t.map((function(t,e){return[a.call(s,t,e),o.call(s,t,e)]}))})),h=r.call(s,f,c);u=t.permute(u,h),f=t.permute(f,h);var p,d,g,m,v=n.call(s,f,c),y=u[0].length;for(g=0;g&lt;y;++g)for(i.call(s,u[0][g],m=v[g],f[0][g][1]),d=1;d&lt;p;++d)i.call(s,u[d][g],m+=f[d-1][g][1],f[d][g][1]);return l}return s.values=function(t){return arguments.length?(e=t,s):e},s.order=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:qa.get(t)||Ga,s):r},s.offset=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:Ha.get(t)||Ya,s):n},s.x=function(t){return arguments.length?(a=t,s):a},s.y=function(t){return arguments.length?(o=t,s):o},s.out=function(t){return arguments.length?(i=t,s):i},s};var qa=t.map({&quot;inside-out&quot;:function(e){var r,n,i=e.length,a=e.map(Wa),o=e.map(Xa),s=t.range(i).sort((function(t,e){return a[t]-a[e]})),l=0,c=0,u=[],f=[];for(r=0;r&lt;i;++r)n=s[r],l&lt;c?(l+=o[n],u.push(n)):(c+=o[n],f.push(n));return f.reverse().concat(u)},reverse:function(e){return t.range(e.length).reverse()},default:Ga}),Ha=t.map({silhouette:function(t){var e,r,n,i=t.length,a=t[0].length,o=[],s=0,l=[];for(r=0;r&lt;a;++r){for(e=0,n=0;e&lt;i;e++)n+=t[e][r][1];n&gt;s&amp;&amp;(s=n),o.push(n)}for(r=0;r&lt;a;++r)l[r]=(s-o[r])/2;return l},wiggle:function(t){var e,r,n,i,a,o,s,l,c,u=t.length,f=t[0],h=f.length,p=[];for(p[0]=l=c=0,r=1;r&lt;h;++r){for(e=0,i=0;e&lt;u;++e)i+=t[e][r][1];for(e=0,a=0,s=f[r][0]-f[r-1][0];e&lt;u;++e){for(n=0,o=(t[e][r][1]-t[e][r-1][1])/(2*s);n&lt;e;++n)o+=(t[n][r][1]-t[n][r-1][1])/s;a+=o*t[e][r][1]}p[r]=l-=i?a/i*s:0,l&lt;c&amp;&amp;(c=l)}for(r=0;r&lt;h;++r)p[r]-=c;return p},expand:function(t){var e,r,n,i=t.length,a=t[0].length,o=1/i,s=[];for(r=0;r&lt;a;++r){for(e=0,n=0;e&lt;i;e++)n+=t[e][r][1];if(n)for(e=0;e&lt;i;e++)t[e][r][1]/=n;else for(e=0;e&lt;i;e++)t[e][r][1]=o}for(r=0;r&lt;a;++r)s[r]=0;return s},zero:Ya});function Ga(e){return t.range(e.length)}function Ya(t){for(var e=-1,r=t[0].length,n=[];++e&lt;r;)n[e]=0;return n}function Wa(t){for(var e,r=1,n=0,i=t[0][1],a=t.length;r&lt;a;++r)(e=t[r][1])&gt;i&amp;&amp;(n=r,i=e);return n}function Xa(t){return t.reduce(Za,0)}function Za(t,e){return t+e[1]}function Ja(t,e){return Ka(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Ka(t,e){for(var r=-1,n=+t[0],i=(t[1]-n)/e,a=[];++r&lt;=e;)a[r]=i*r+n;return a}function Qa(e){return[t.min(e),t.max(e)]}function $a(t,e){return t.value-e.value}function to(t,e){var r=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=r,r._pack_prev=e}function eo(t,e){t._pack_next=e,e._pack_prev=t}function ro(t,e){var r=e.x-t.x,n=e.y-t.y,i=t.r+e.r;return.999*i*i&gt;r*r+n*n}function no(t){if((e=t.children)&amp;&amp;(l=e.length)){var e,r,n,i,a,o,s,l,c=1/0,u=-1/0,f=1/0,h=-1/0;if(e.forEach(io),(r=e[0]).x=-r.r,r.y=0,x(r),l&gt;1&amp;&amp;((n=e[1]).x=n.r,n.y=0,x(n),l&gt;2))for(oo(r,n,i=e[2]),x(i),to(r,i),r._pack_prev=i,to(i,n),n=r._pack_next,a=3;a&lt;l;a++){oo(r,n,i=e[a]);var p=0,d=1,g=1;for(o=n._pack_next;o!==n;o=o._pack_next,d++)if(ro(o,i)){p=1;break}if(1==p)for(s=r._pack_prev;s!==o._pack_prev&amp;&amp;!ro(s,i);s=s._pack_prev,g++);p?(d&lt;g||d==g&amp;&amp;n.r&lt;r.r?eo(r,n=o):eo(r=s,n),a--):(to(r,i),n=i,x(i))}var m=(c+u)/2,v=(f+h)/2,y=0;for(a=0;a&lt;l;a++)(i=e[a]).x-=m,i.y-=v,y=Math.max(y,i.r+Math.sqrt(i.x*i.x+i.y*i.y));t.r=y,e.forEach(ao)}function x(t){c=Math.min(t.x-t.r,c),u=Math.max(t.x+t.r,u),f=Math.min(t.y-t.r,f),h=Math.max(t.y+t.r,h)}}function io(t){t._pack_next=t._pack_prev=t}function ao(t){delete t._pack_next,delete t._pack_prev}function oo(t,e,r){var n=t.r+r.r,i=e.x-t.x,a=e.y-t.y;if(n&amp;&amp;(i||a)){var o=e.r+r.r,s=i*i+a*a,l=.5+((n*=n)-(o*=o))/(2*s),c=Math.sqrt(Math.max(0,2*o*(n+s)-(n-=s)*n-o*o))/(2*s);r.x=t.x+l*i+c*a,r.y=t.y+l*a-c*i}else r.x=t.x+n,r.y=t.y}function so(t,e){return t.parent==e.parent?1:2}function lo(t){var e=t.children;return e.length?e[0]:t.t}function co(t){var e,r=t.children;return(e=r.length)?r[e-1]:t.t}function uo(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function fo(t,e,r){return t.a.parent===e.parent?t.a:r}function ho(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function po(t,e){var r=t.x+e[3],n=t.y+e[0],i=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return i&lt;0&amp;&amp;(r+=i/2,i=0),a&lt;0&amp;&amp;(n+=a/2,a=0),{x:r,y:n,dx:i,dy:a}}function go(t){var e=t[0],r=t[t.length-1];return e&lt;r?[e,r]:[r,e]}function mo(t){return t.rangeExtent?t.rangeExtent():go(t.range())}function vo(t,e,r,n){var i=r(t[0],t[1]),a=n(e[0],e[1]);return function(t){return a(i(t))}}function yo(t,e){var r,n=0,i=t.length-1,a=t[n],o=t[i];return o&lt;a&amp;&amp;(r=n,n=i,i=r,r=a,a=o,o=r),t[n]=e.floor(a),t[i]=e.ceil(o),t}function xo(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:bo}t.layout.histogram=function(){var e=!0,r=Number,n=Qa,i=Ja;function a(a,o){for(var s,l,c=[],u=a.map(r,this),f=n.call(this,u,o),h=i.call(this,f,u,o),p=(o=-1,u.length),d=h.length-1,g=e?1:1/p;++o&lt;d;)(s=c[o]=[]).dx=h[o+1]-(s.x=h[o]),s.y=0;if(d&gt;0)for(o=-1;++o&lt;p;)(l=u[o])&gt;=f[0]&amp;&amp;l&lt;=f[1]&amp;&amp;((s=c[t.bisect(h,l,1,d)-1]).y+=g,s.push(a[o]));return c}return a.value=function(t){return arguments.length?(r=t,a):r},a.range=function(t){return arguments.length?(n=de(t),a):n},a.bins=function(t){return arguments.length?(i=&quot;number&quot;==typeof t?function(e){return Ka(e,t)}:de(t),a):i},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},t.layout.pack=function(){var e,r=t.layout.hierarchy().sort($a),n=0,i=[1,1];function a(t,a){var o=r.call(this,t,a),s=o[0],l=i[0],c=i[1],u=null==e?Math.sqrt:&quot;function&quot;==typeof e?e:function(){return e};if(s.x=s.y=0,Oa(s,(function(t){t.r=+u(t.value)})),Oa(s,no),n){var f=n*(e?1:Math.max(2*s.r/l,2*s.r/c))/2;Oa(s,(function(t){t.r+=f})),Oa(s,no),Oa(s,(function(t){t.r-=f}))}return function t(e,r,n,i){var a=e.children;if(e.x=r+=i*e.x,e.y=n+=i*e.y,e.r*=i,a)for(var o=-1,s=a.length;++o&lt;s;)t(a[o],r,n,i)}(s,l/2,c/2,e?1:1/Math.max(2*s.r/l,2*s.r/c)),o}return a.size=function(t){return arguments.length?(i=t,a):i},a.radius=function(t){return arguments.length?(e=null==t||&quot;function&quot;==typeof t?t:+t,a):e},a.padding=function(t){return arguments.length?(n=+t,a):n},Pa(a,r)},t.layout.tree=function(){var e=t.layout.hierarchy().sort(null).value(null),r=so,n=[1,1],i=null;function a(t,a){var c=e.call(this,t,a),u=c[0],f=function(t){var e,r={A:null,children:[t]},n=[r];for(;null!=(e=n.pop());)for(var i,a=e.children,o=0,s=a.length;o&lt;s;++o)n.push((a[o]=i={_:a[o],parent:e,children:(i=a[o].children)&amp;&amp;i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return r.children[0]}(u);if(Oa(f,o),f.parent.m=-f.z,za(f,s),i)za(u,l);else{var h=u,p=u,d=u;za(u,(function(t){t.x&lt;h.x&amp;&amp;(h=t),t.x&gt;p.x&amp;&amp;(p=t),t.depth&gt;d.depth&amp;&amp;(d=t)}));var g=r(h,p)/2-h.x,m=n[0]/(p.x+r(p,h)/2+g),v=n[1]/(d.depth||1);za(u,(function(t){t.x=(t.x+g)*m,t.y=t.depth*v}))}return c}function o(t){var e=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(e.length){!function(t){var e,r=0,n=0,i=t.children,a=i.length;for(;--a&gt;=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(t);var a=(e[0].z+e[e.length-1].z)/2;i?(t.z=i.z+r(t._,i._),t.m=t.z-a):t.z=a}else i&amp;&amp;(t.z=i.z+r(t._,i._));t.parent.A=function(t,e,n){if(e){for(var i,a=t,o=t,s=e,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=co(s),a=lo(a),s&amp;&amp;a;)l=lo(l),(o=co(o)).a=t,(i=s.z+f-a.z-c+r(s._,a._))&gt;0&amp;&amp;(uo(fo(s,t,n),t,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&amp;&amp;!co(o)&amp;&amp;(o.t=s,o.m+=f-u),a&amp;&amp;!lo(l)&amp;&amp;(l.t=a,l.m+=c-h,n=t)}return n}(t,i,t.parent.A||n[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function l(t){t.x*=n[0],t.y=t.depth*n[1]}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t)?l:null,a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null==(n=t)?null:l,a):i?n:null},Pa(a,e)},t.layout.cluster=function(){var e=t.layout.hierarchy().sort(null).value(null),r=so,n=[1,1],i=!1;function a(a,o){var s,l=e.call(this,a,o),c=l[0],u=0;Oa(c,(function(e){var n=e.children;n&amp;&amp;n.length?(e.x=function(t){return t.reduce((function(t,e){return t+e.x}),0)/t.length}(n),e.y=function(e){return 1+t.max(e,(function(t){return t.y}))}(n)):(e.x=s?u+=r(e,s):0,e.y=0,s=e)}));var f=function t(e){var r=e.children;return r&amp;&amp;r.length?t(r[0]):e}(c),h=function t(e){var r,n=e.children;return n&amp;&amp;(r=n.length)?t(n[r-1]):e}(c),p=f.x-r(f,h)/2,d=h.x+r(h,f)/2;return Oa(c,i?function(t){t.x=(t.x-c.x)*n[0],t.y=(c.y-t.y)*n[1]}:function(t){t.x=(t.x-p)/(d-p)*n[0],t.y=(1-(c.y?t.y/c.y:1))*n[1]}),l}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t),a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null!=(n=t),a):i?n:null},Pa(a,e)},t.layout.treemap=function(){var e,r=t.layout.hierarchy(),n=Math.round,i=[1,1],a=null,o=ho,s=!1,l=&quot;squarify&quot;,c=.5*(1+Math.sqrt(5));function u(t,e){for(var r,n,i=-1,a=t.length;++i&lt;a;)n=(r=t[i]).value*(e&lt;0?0:e),r.area=isNaN(n)||n&lt;=0?0:n}function f(t){var e=t.children;if(e&amp;&amp;e.length){var r,n,i,a=o(t),s=[],c=e.slice(),h=1/0,g=&quot;slice&quot;===l?a.dx:&quot;dice&quot;===l?a.dy:&quot;slice-dice&quot;===l?1&amp;t.depth?a.dy:a.dx:Math.min(a.dx,a.dy);for(u(c,a.dx*a.dy/t.value),s.area=0;(i=c.length)&gt;0;)s.push(r=c[i-1]),s.area+=r.area,&quot;squarify&quot;!==l||(n=p(s,g))&lt;=h?(c.pop(),h=n):(s.area-=s.pop().area,d(s,g,a,!1),g=Math.min(a.dx,a.dy),s.length=s.area=0,h=1/0);s.length&amp;&amp;(d(s,g,a,!0),s.length=s.area=0),e.forEach(f)}}function h(t){var e=t.children;if(e&amp;&amp;e.length){var r,n=o(t),i=e.slice(),a=[];for(u(i,n.dx*n.dy/t.value),a.area=0;r=i.pop();)a.push(r),a.area+=r.area,null!=r.z&amp;&amp;(d(a,r.z?n.dx:n.dy,n,!i.length),a.length=a.area=0);e.forEach(h)}}function p(t,e){for(var r,n=t.area,i=0,a=1/0,o=-1,s=t.length;++o&lt;s;)(r=t[o].area)&amp;&amp;(r&lt;a&amp;&amp;(a=r),r&gt;i&amp;&amp;(i=r));return e*=e,(n*=n)?Math.max(e*i*c/n,n/(e*a*c)):1/0}function d(t,e,r,i){var a,o=-1,s=t.length,l=r.x,c=r.y,u=e?n(t.area/e):0;if(e==r.dx){for((i||u&gt;r.dy)&amp;&amp;(u=r.dy);++o&lt;s;)(a=t[o]).x=l,a.y=c,a.dy=u,l+=a.dx=Math.min(r.x+r.dx-l,u?n(a.area/u):0);a.z=!0,a.dx+=r.x+r.dx-l,r.y+=u,r.dy-=u}else{for((i||u&gt;r.dx)&amp;&amp;(u=r.dx);++o&lt;s;)(a=t[o]).x=l,a.y=c,a.dx=u,c+=a.dy=Math.min(r.y+r.dy-c,u?n(a.area/u):0);a.z=!1,a.dy+=r.y+r.dy-c,r.x+=u,r.dx-=u}}function g(t){var n=e||r(t),a=n[0];return a.x=a.y=0,a.value?(a.dx=i[0],a.dy=i[1]):a.dx=a.dy=0,e&amp;&amp;r.revalue(a),u([a],a.dx*a.dy/a.value),(e?h:f)(a),s&amp;&amp;(e=n),n}return g.size=function(t){return arguments.length?(i=t,g):i},g.padding=function(t){if(!arguments.length)return a;function e(e){var r=t.call(g,e,e.depth);return null==r?ho(e):po(e,&quot;number&quot;==typeof r?[r,r,r,r]:r)}function r(e){return po(e,t)}var n;return o=null==(a=t)?ho:&quot;function&quot;==(n=typeof t)?e:&quot;number&quot;===n?(t=[t,t,t,t],r):r,g},g.round=function(t){return arguments.length?(n=t?Math.round:Number,g):n!=Number},g.sticky=function(t){return arguments.length?(s=t,e=null,g):s},g.ratio=function(t){return arguments.length?(c=t,g):c},g.mode=function(t){return arguments.length?(l=t+&quot;&quot;,g):l},Pa(g,r)},t.random={normal:function(t,e){var r=arguments.length;return r&lt;2&amp;&amp;(e=1),r&lt;1&amp;&amp;(t=0),function(){var r,n,i;do{i=(r=2*Math.random()-1)*r+(n=2*Math.random()-1)*n}while(!i||i&gt;1);return t+e*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=t.random.normal.apply(t,arguments);return function(){return Math.exp(e())}},bates:function(e){var r=t.random.irwinHall(e);return function(){return r()/e}},irwinHall:function(t){return function(){for(var e=0,r=0;r&lt;t;r++)e+=Math.random();return e}}},t.scale={};var bo={floor:L,ceil:L};function _o(e,r,n,i){var a=[],o=[],s=0,l=Math.min(e.length,r.length)-1;for(e[l]&lt;e[0]&amp;&amp;(e=e.slice().reverse(),r=r.slice().reverse());++s&lt;=l;)a.push(n(e[s-1],e[s])),o.push(i(r[s-1],r[s]));return function(r){var n=t.bisect(e,r,1,l)-1;return o[n](a[n](r))}}function wo(e,r){return t.rebind(e,r,&quot;range&quot;,&quot;rangeRound&quot;,&quot;interpolate&quot;,&quot;clamp&quot;)}function To(t,e){return yo(t,xo(ko(t,e)[2])),yo(t,xo(ko(t,e)[2])),t}function ko(t,e){null==e&amp;&amp;(e=10);var r=go(t),n=r[1]-r[0],i=Math.pow(10,Math.floor(Math.log(n/e)/Math.LN10)),a=e/n*i;return a&lt;=.15?i*=10:a&lt;=.35?i*=5:a&lt;=.75&amp;&amp;(i*=2),r[0]=Math.ceil(r[0]/i)*i,r[1]=Math.floor(r[1]/i)*i+.5*i,r[2]=i,r}function Mo(e,r){return t.range.apply(t,ko(e,r))}function Ao(e,r,n){var i=ko(e,r);if(n){var a=Ce.exec(n);if(a.shift(),&quot;s&quot;===a[8]){var o=t.formatPrefix(Math.max(y(i[0]),y(i[1])));return a[7]||(a[7]=&quot;.&quot;+Eo(o.scale(i[2]))),a[8]=&quot;f&quot;,n=t.format(a.join(&quot;&quot;)),function(t){return n(o.scale(t))+o.symbol}}a[7]||(a[7]=&quot;.&quot;+function(t,e){var r=Eo(e[2]);return t in So?Math.abs(r-Eo(Math.max(y(e[0]),y(e[1]))))+ +(&quot;e&quot;!==t):r-2*(&quot;%&quot;===t)}(a[8],i)),n=a.join(&quot;&quot;)}else n=&quot;,.&quot;+Eo(i[2])+&quot;f&quot;;return t.format(n)}t.scale.linear=function(){return function t(e,r,n,i){var a,o;function s(){var t=Math.min(e.length,r.length)&gt;2?_o:vo,s=i?wa:_a;return a=t(e,r,s,n),o=t(r,e,s,$i),l}function l(t){return a(t)}return l.invert=function(t){return o(t)},l.domain=function(t){return arguments.length?(e=t.map(Number),s()):e},l.range=function(t){return arguments.length?(r=t,s()):r},l.rangeRound=function(t){return l.range(t).interpolate(da)},l.clamp=function(t){return arguments.length?(i=t,s()):i},l.interpolate=function(t){return arguments.length?(n=t,s()):n},l.ticks=function(t){return Mo(e,t)},l.tickFormat=function(t,r){return Ao(e,t,r)},l.nice=function(t){return To(e,t),s()},l.copy=function(){return t(e,r,n,i)},s()}([0,1],[0,1],$i,!1)};var So={s:1,g:1,p:1,r:1,e:1};function Eo(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}t.scale.log=function(){return function e(r,n,i,a){function o(t){return(i?Math.log(t&lt;0?0:t):-Math.log(t&gt;0?0:-t))/Math.log(n)}function s(t){return i?Math.pow(n,t):-Math.pow(n,-t)}function l(t){return r(o(t))}return l.invert=function(t){return s(r.invert(t))},l.domain=function(t){return arguments.length?(i=t[0]&gt;=0,r.domain((a=t.map(Number)).map(o)),l):a},l.base=function(t){return arguments.length?(n=+t,r.domain(a.map(o)),l):n},l.nice=function(){var t=yo(a.map(o),i?Math:Lo);return r.domain(t),a=t.map(s),l},l.ticks=function(){var t=go(a),e=[],r=t[0],l=t[1],c=Math.floor(o(r)),u=Math.ceil(o(l)),f=n%1?2:n;if(isFinite(u-c)){if(i){for(;c&lt;u;c++)for(var h=1;h&lt;f;h++)e.push(s(c)*h);e.push(s(c))}else for(e.push(s(c));c++&lt;u;)for(h=f-1;h&gt;0;h--)e.push(s(c)*h);for(c=0;e[c]&lt;r;c++);for(u=e.length;e[u-1]&gt;l;u--);e=e.slice(c,u)}return e},l.tickFormat=function(e,r){if(!arguments.length)return Co;arguments.length&lt;2?r=Co:&quot;function&quot;!=typeof r&amp;&amp;(r=t.format(r));var i=Math.max(1,n*e/l.ticks().length);return function(t){var e=t/s(Math.round(o(t)));return e*n&lt;n-.5&amp;&amp;(e*=n),e&lt;=i?r(t):&quot;&quot;}},l.copy=function(){return e(r.copy(),n,i,a)},wo(l,r)}(t.scale.linear().domain([0,1]),10,!0,[1,10])};var Co=t.format(&quot;.0e&quot;),Lo={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function Io(t){return function(e){return e&lt;0?-Math.pow(-e,t):Math.pow(e,t)}}t.scale.pow=function(){return function t(e,r,n){var i=Io(r),a=Io(1/r);function o(t){return e(i(t))}return o.invert=function(t){return a(e.invert(t))},o.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(i)),o):n},o.ticks=function(t){return Mo(n,t)},o.tickFormat=function(t,e){return Ao(n,t,e)},o.nice=function(t){return o.domain(To(n,t))},o.exponent=function(t){return arguments.length?(i=Io(r=t),a=Io(1/r),e.domain(n.map(i)),o):r},o.copy=function(){return t(e.copy(),r,n)},wo(o,e)}(t.scale.linear(),1,[0,1])},t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return function e(r,n){var i,a,o;function s(t){return a[((i.get(t)||(&quot;range&quot;===n.t?i.set(t,r.push(t)):NaN))-1)%a.length]}function l(e,n){return t.range(r.length).map((function(t){return e+n*t}))}return s.domain=function(t){if(!arguments.length)return r;r=[],i=new _;for(var e,a=-1,o=t.length;++a&lt;o;)i.has(e=t[a])||i.set(e,r.push(e));return s[n.t].apply(s,n.a)},s.range=function(t){return arguments.length?(a=t,o=0,n={t:&quot;range&quot;,a:arguments},s):a},s.rangePoints=function(t,e){arguments.length&lt;2&amp;&amp;(e=0);var i=t[0],c=t[1],u=r.length&lt;2?(i=(i+c)/2,0):(c-i)/(r.length-1+e);return a=l(i+u*e/2,u),o=0,n={t:&quot;rangePoints&quot;,a:arguments},s},s.rangeRoundPoints=function(t,e){arguments.length&lt;2&amp;&amp;(e=0);var i=t[0],c=t[1],u=r.length&lt;2?(i=c=Math.round((i+c)/2),0):(c-i)/(r.length-1+e)|0;return a=l(i+Math.round(u*e/2+(c-i-(r.length-1+e)*u)/2),u),o=0,n={t:&quot;rangeRoundPoints&quot;,a:arguments},s},s.rangeBands=function(t,e,i){arguments.length&lt;2&amp;&amp;(e=0),arguments.length&lt;3&amp;&amp;(i=e);var c=t[1]&lt;t[0],u=t[c-0],f=t[1-c],h=(f-u)/(r.length-e+2*i);return a=l(u+h*i,h),c&amp;&amp;a.reverse(),o=h*(1-e),n={t:&quot;rangeBands&quot;,a:arguments},s},s.rangeRoundBands=function(t,e,i){arguments.length&lt;2&amp;&amp;(e=0),arguments.length&lt;3&amp;&amp;(i=e);var c=t[1]&lt;t[0],u=t[c-0],f=t[1-c],h=Math.floor((f-u)/(r.length-e+2*i));return a=l(u+Math.round((f-u-(r.length-e)*h)/2),h),c&amp;&amp;a.reverse(),o=Math.round(h*(1-e)),n={t:&quot;rangeRoundBands&quot;,a:arguments},s},s.rangeBand=function(){return o},s.rangeExtent=function(){return go(n.a[0])},s.copy=function(){return e(r,n)},s.domain(r)}([],{t:&quot;range&quot;,a:[[]]})},t.scale.category10=function(){return t.scale.ordinal().range(Po)},t.scale.category20=function(){return t.scale.ordinal().range(zo)},t.scale.category20b=function(){return t.scale.ordinal().range(Oo)},t.scale.category20c=function(){return t.scale.ordinal().range(Do)};var Po=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(ae),zo=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(ae),Oo=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(ae),Do=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(ae);function Ro(){return 0}t.scale.quantile=function(){return function e(r,n){var i;function a(){var e=0,a=n.length;for(i=[];++e&lt;a;)i[e-1]=t.quantile(r,e/a);return o}function o(e){if(!isNaN(e=+e))return n[t.bisect(i,e)]}return o.domain=function(t){return arguments.length?(r=t.map(p).filter(d).sort(h),a()):r},o.range=function(t){return arguments.length?(n=t,a()):n},o.quantiles=function(){return i},o.invertExtent=function(t){return(t=n.indexOf(t))&lt;0?[NaN,NaN]:[t&gt;0?i[t-1]:r[0],t&lt;i.length?i[t]:r[r.length-1]]},o.copy=function(){return e(r,n)},a()}([],[])},t.scale.quantize=function(){return function t(e,r,n){var i,a;function o(t){return n[Math.max(0,Math.min(a,Math.floor(i*(t-e))))]}function s(){return i=n.length/(r-e),a=n.length-1,o}return o.domain=function(t){return arguments.length?(e=+t[0],r=+t[t.length-1],s()):[e,r]},o.range=function(t){return arguments.length?(n=t,s()):n},o.invertExtent=function(t){return[t=(t=n.indexOf(t))&lt;0?NaN:t/i+e,t+1/i]},o.copy=function(){return t(e,r,n)},s()}(0,1,[0,1])},t.scale.threshold=function(){return function e(r,n){function i(e){if(e&lt;=e)return n[t.bisect(r,e)]}return i.domain=function(t){return arguments.length?(r=t,i):r},i.range=function(t){return arguments.length?(n=t,i):n},i.invertExtent=function(t){return t=n.indexOf(t),[r[t-1],r[t]]},i.copy=function(){return e(r,n)},i}([.5],[0,1])},t.scale.identity=function(){return function t(e){function r(t){return+t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=t.map(r),r):e},r.ticks=function(t){return Mo(e,t)},r.tickFormat=function(t,r){return Ao(e,t,r)},r.copy=function(){return t(e)},r}([0,1])},t.svg={},t.svg.arc=function(){var t=Bo,e=No,r=Ro,n=Fo,i=jo,a=Uo,o=Vo;function s(){var s=Math.max(0,+t.apply(this,arguments)),c=Math.max(0,+e.apply(this,arguments)),u=i.apply(this,arguments)-Ct,f=a.apply(this,arguments)-Ct,h=Math.abs(f-u),p=u&gt;f?0:1;if(c&lt;s&amp;&amp;(d=c,c=s,s=d),h&gt;=Et)return l(c,p)+(s?l(s,1-p):&quot;&quot;)+&quot;Z&quot;;var d,g,m,v,y,x,b,_,w,T,k,M,A=0,S=0,E=[];if((v=(+o.apply(this,arguments)||0)/2)&amp;&amp;(m=n===Fo?Math.sqrt(s*s+c*c):+n.apply(this,arguments),p||(S*=-1),c&amp;&amp;(S=Dt(m/c*Math.sin(v))),s&amp;&amp;(A=Dt(m/s*Math.sin(v)))),c){y=c*Math.cos(u+S),x=c*Math.sin(u+S),b=c*Math.cos(f-S),_=c*Math.sin(f-S);var C=Math.abs(f-u-2*S)&lt;=At?0:1;if(S&amp;&amp;qo(y,x,b,_)===p^C){var L=(u+f)/2;y=c*Math.cos(L),x=c*Math.sin(L),b=_=null}}else y=x=0;if(s){w=s*Math.cos(f-A),T=s*Math.sin(f-A),k=s*Math.cos(u+A),M=s*Math.sin(u+A);var I=Math.abs(u-f+2*A)&lt;=At?0:1;if(A&amp;&amp;qo(w,T,k,M)===1-p^I){var P=(u+f)/2;w=s*Math.cos(P),T=s*Math.sin(P),k=M=null}}else w=T=0;if(h&gt;kt&amp;&amp;(d=Math.min(Math.abs(c-s)/2,+r.apply(this,arguments)))&gt;.001){g=s&lt;c^p?0:1;var z=d,O=d;if(h&lt;At){var D=null==k?[w,T]:null==b?[y,x]:li([y,x],[k,M],[b,_],[w,T]),R=y-D[0],F=x-D[1],B=b-D[0],N=_-D[1],j=1/Math.sin(Math.acos((R*B+F*N)/(Math.sqrt(R*R+F*F)*Math.sqrt(B*B+N*N)))/2),U=Math.sqrt(D[0]*D[0]+D[1]*D[1]);O=Math.min(d,(s-U)/(j-1)),z=Math.min(d,(c-U)/(j+1))}if(null!=b){var V=Ho(null==k?[w,T]:[k,M],[y,x],c,z,p),q=Ho([b,_],[w,T],c,z,p);d===z?E.push(&quot;M&quot;,V[0],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,g,&quot; &quot;,V[1],&quot;A&quot;,c,&quot;,&quot;,c,&quot; 0 &quot;,1-p^qo(V[1][0],V[1][1],q[1][0],q[1][1]),&quot;,&quot;,p,&quot; &quot;,q[1],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,g,&quot; &quot;,q[0]):E.push(&quot;M&quot;,V[0],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 1,&quot;,g,&quot; &quot;,q[0])}else E.push(&quot;M&quot;,y,&quot;,&quot;,x);if(null!=k){var H=Ho([y,x],[k,M],s,-O,p),G=Ho([w,T],null==b?[y,x]:[b,_],s,-O,p);d===O?E.push(&quot;L&quot;,G[0],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,G[1],&quot;A&quot;,s,&quot;,&quot;,s,&quot; 0 &quot;,p^qo(G[1][0],G[1][1],H[1][0],H[1][1]),&quot;,&quot;,1-p,&quot; &quot;,H[1],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,H[0]):E.push(&quot;L&quot;,G[0],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,H[0])}else E.push(&quot;L&quot;,w,&quot;,&quot;,T)}else E.push(&quot;M&quot;,y,&quot;,&quot;,x),null!=b&amp;&amp;E.push(&quot;A&quot;,c,&quot;,&quot;,c,&quot; 0 &quot;,C,&quot;,&quot;,p,&quot; &quot;,b,&quot;,&quot;,_),E.push(&quot;L&quot;,w,&quot;,&quot;,T),null!=k&amp;&amp;E.push(&quot;A&quot;,s,&quot;,&quot;,s,&quot; 0 &quot;,I,&quot;,&quot;,1-p,&quot; &quot;,k,&quot;,&quot;,M);return E.push(&quot;Z&quot;),E.join(&quot;&quot;)}function l(t,e){return&quot;M0,&quot;+t+&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 1,&quot;+e+&quot; 0,&quot;+-t+&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 1,&quot;+e+&quot; 0,&quot;+t}return s.innerRadius=function(e){return arguments.length?(t=de(e),s):t},s.outerRadius=function(t){return arguments.length?(e=de(t),s):e},s.cornerRadius=function(t){return arguments.length?(r=de(t),s):r},s.padRadius=function(t){return arguments.length?(n=t==Fo?Fo:de(t),s):n},s.startAngle=function(t){return arguments.length?(i=de(t),s):i},s.endAngle=function(t){return arguments.length?(a=de(t),s):a},s.padAngle=function(t){return arguments.length?(o=de(t),s):o},s.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Ct;return[Math.cos(n)*r,Math.sin(n)*r]},s};var Fo=&quot;auto&quot;;function Bo(t){return t.innerRadius}function No(t){return t.outerRadius}function jo(t){return t.startAngle}function Uo(t){return t.endAngle}function Vo(t){return t&amp;&amp;t.padAngle}function qo(t,e,r,n){return(t-r)*e-(e-n)*t&gt;0?0:1}function Ho(t,e,r,n,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?n:-n)/Math.sqrt(a*a+o*o),l=s*o,c=-s*a,u=t[0]+l,f=t[1]+c,h=e[0]+l,p=e[1]+c,d=(u+h)/2,g=(f+p)/2,m=h-u,v=p-f,y=m*m+v*v,x=r-n,b=u*p-h*f,_=(v&lt;0?-1:1)*Math.sqrt(Math.max(0,x*x*y-b*b)),w=(b*v-m*_)/y,T=(-b*m-v*_)/y,k=(b*v+m*_)/y,M=(-b*m+v*_)/y,A=w-d,S=T-g,E=k-d,C=M-g;return A*A+S*S&gt;E*E+C*C&amp;&amp;(w=k,T=M),[[w-l,T-c],[w*r/x,T*r/x]]}function Go(t){var e=ri,r=ni,n=Yr,i=Wo,a=i.key,o=.7;function s(a){var s,l=[],c=[],u=-1,f=a.length,h=de(e),p=de(r);function d(){l.push(&quot;M&quot;,i(t(c),o))}for(;++u&lt;f;)n.call(this,s=a[u],u)?c.push([+h.call(this,s,u),+p.call(this,s,u)]):c.length&amp;&amp;(d(),c=[]);return c.length&amp;&amp;d(),l.length?l.join(&quot;&quot;):null}return s.x=function(t){return arguments.length?(e=t,s):e},s.y=function(t){return arguments.length?(r=t,s):r},s.defined=function(t){return arguments.length?(n=t,s):n},s.interpolate=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?i=t:(i=Yo.get(t)||Wo).key,s):a},s.tension=function(t){return arguments.length?(o=t,s):o},s}t.svg.line=function(){return Go(L)};var Yo=t.map({linear:Wo,&quot;linear-closed&quot;:Xo,step:function(t){var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];for(;++e&lt;r;)i.push(&quot;H&quot;,(n[0]+(n=t[e])[0])/2,&quot;V&quot;,n[1]);r&gt;1&amp;&amp;i.push(&quot;H&quot;,n[0]);return i.join(&quot;&quot;)},&quot;step-before&quot;:Zo,&quot;step-after&quot;:Jo,basis:$o,&quot;basis-open&quot;:function(t){if(t.length&lt;4)return Wo(t);var e,r=[],n=-1,i=t.length,a=[0],o=[0];for(;++n&lt;3;)e=t[n],a.push(e[0]),o.push(e[1]);r.push(ts(ns,a)+&quot;,&quot;+ts(ns,o)),--n;for(;++n&lt;i;)e=t[n],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),is(r,a,o);return r.join(&quot;&quot;)},&quot;basis-closed&quot;:function(t){var e,r,n=-1,i=t.length,a=i+4,o=[],s=[];for(;++n&lt;4;)r=t[n%i],o.push(r[0]),s.push(r[1]);e=[ts(ns,o),&quot;,&quot;,ts(ns,s)],--n;for(;++n&lt;a;)r=t[n%i],o.shift(),o.push(r[0]),s.shift(),s.push(r[1]),is(e,o,s);return e.join(&quot;&quot;)},bundle:function(t,e){var r=t.length-1;if(r)for(var n,i,a=t[0][0],o=t[0][1],s=t[r][0]-a,l=t[r][1]-o,c=-1;++c&lt;=r;)n=t[c],i=c/r,n[0]=e*n[0]+(1-e)*(a+i*s),n[1]=e*n[1]+(1-e)*(o+i*l);return $o(t)},cardinal:function(t,e){return t.length&lt;3?Wo(t):t[0]+Ko(t,Qo(t,e))},&quot;cardinal-open&quot;:function(t,e){return t.length&lt;4?Wo(t):t[1]+Ko(t.slice(1,-1),Qo(t,e))},&quot;cardinal-closed&quot;:function(t,e){return t.length&lt;3?Xo(t):t[0]+Ko((t.push(t[0]),t),Qo([t[t.length-2]].concat(t,[t[1]]),e))},monotone:function(t){return t.length&lt;3?Wo(t):t[0]+Ko(t,function(t){var e,r,n,i,a=[],o=function(t){var e=0,r=t.length-1,n=[],i=t[0],a=t[1],o=n[0]=as(i,a);for(;++e&lt;r;)n[e]=(o+(o=as(i=a,a=t[e+1])))/2;return n[e]=o,n}(t),s=-1,l=t.length-1;for(;++s&lt;l;)e=as(t[s],t[s+1]),y(e)&lt;kt?o[s]=o[s+1]=0:(r=o[s]/e,n=o[s+1]/e,(i=r*r+n*n)&gt;9&amp;&amp;(i=3*e/Math.sqrt(i),o[s]=i*r,o[s+1]=i*n));s=-1;for(;++s&lt;=l;)i=(t[Math.min(l,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}(t))}});function Wo(t){return t.length&gt;1?t.join(&quot;L&quot;):t+&quot;Z&quot;}function Xo(t){return t.join(&quot;L&quot;)+&quot;Z&quot;}function Zo(t){for(var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];++e&lt;r;)i.push(&quot;V&quot;,(n=t[e])[1],&quot;H&quot;,n[0]);return i.join(&quot;&quot;)}function Jo(t){for(var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];++e&lt;r;)i.push(&quot;H&quot;,(n=t[e])[0],&quot;V&quot;,n[1]);return i.join(&quot;&quot;)}function Ko(t,e){if(e.length&lt;1||t.length!=e.length&amp;&amp;t.length!=e.length+2)return Wo(t);var r=t.length!=e.length,n=&quot;&quot;,i=t[0],a=t[1],o=e[0],s=o,l=1;if(r&amp;&amp;(n+=&quot;Q&quot;+(a[0]-2*o[0]/3)+&quot;,&quot;+(a[1]-2*o[1]/3)+&quot;,&quot;+a[0]+&quot;,&quot;+a[1],i=t[1],l=2),e.length&gt;1){s=e[1],a=t[l],l++,n+=&quot;C&quot;+(i[0]+o[0])+&quot;,&quot;+(i[1]+o[1])+&quot;,&quot;+(a[0]-s[0])+&quot;,&quot;+(a[1]-s[1])+&quot;,&quot;+a[0]+&quot;,&quot;+a[1];for(var c=2;c&lt;e.length;c++,l++)a=t[l],s=e[c],n+=&quot;S&quot;+(a[0]-s[0])+&quot;,&quot;+(a[1]-s[1])+&quot;,&quot;+a[0]+&quot;,&quot;+a[1]}if(r){var u=t[l];n+=&quot;Q&quot;+(a[0]+2*s[0]/3)+&quot;,&quot;+(a[1]+2*s[1]/3)+&quot;,&quot;+u[0]+&quot;,&quot;+u[1]}return n}function Qo(t,e){for(var r,n=[],i=(1-e)/2,a=t[0],o=t[1],s=1,l=t.length;++s&lt;l;)r=a,a=o,o=t[s],n.push([i*(o[0]-r[0]),i*(o[1]-r[1])]);return n}function $o(t){if(t.length&lt;3)return Wo(t);var e=1,r=t.length,n=t[0],i=n[0],a=n[1],o=[i,i,i,(n=t[1])[0]],s=[a,a,a,n[1]],l=[i,&quot;,&quot;,a,&quot;L&quot;,ts(ns,o),&quot;,&quot;,ts(ns,s)];for(t.push(t[r-1]);++e&lt;=r;)n=t[e],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),is(l,o,s);return t.pop(),l.push(&quot;L&quot;,n),l.join(&quot;&quot;)}function ts(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}Yo.forEach((function(t,e){e.key=t,e.closed=/-closed$/.test(t)}));var es=[0,2/3,1/3,0],rs=[0,1/3,2/3,0],ns=[0,1/6,2/3,1/6];function is(t,e,r){t.push(&quot;C&quot;,ts(es,e),&quot;,&quot;,ts(es,r),&quot;,&quot;,ts(rs,e),&quot;,&quot;,ts(rs,r),&quot;,&quot;,ts(ns,e),&quot;,&quot;,ts(ns,r))}function as(t,e){return(e[1]-t[1])/(e[0]-t[0])}function os(t){for(var e,r,n,i=-1,a=t.length;++i&lt;a;)r=(e=t[i])[0],n=e[1]-Ct,e[0]=r*Math.cos(n),e[1]=r*Math.sin(n);return t}function ss(t){var e=ri,r=ri,n=0,i=ni,a=Yr,o=Wo,s=o.key,l=o,c=&quot;L&quot;,u=.7;function f(s){var f,h,p,d=[],g=[],m=[],v=-1,y=s.length,x=de(e),b=de(n),_=e===r?function(){return h}:de(r),w=n===i?function(){return p}:de(i);function T(){d.push(&quot;M&quot;,o(t(m),u),c,l(t(g.reverse()),u),&quot;Z&quot;)}for(;++v&lt;y;)a.call(this,f=s[v],v)?(g.push([h=+x.call(this,f,v),p=+b.call(this,f,v)]),m.push([+_.call(this,f,v),+w.call(this,f,v)])):g.length&amp;&amp;(T(),g=[],m=[]);return g.length&amp;&amp;T(),d.length?d.join(&quot;&quot;):null}return f.x=function(t){return arguments.length?(e=r=t,f):r},f.x0=function(t){return arguments.length?(e=t,f):e},f.x1=function(t){return arguments.length?(r=t,f):r},f.y=function(t){return arguments.length?(n=i=t,f):i},f.y0=function(t){return arguments.length?(n=t,f):n},f.y1=function(t){return arguments.length?(i=t,f):i},f.defined=function(t){return arguments.length?(a=t,f):a},f.interpolate=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?o=t:(o=Yo.get(t)||Wo).key,l=o.reverse||o,c=o.closed?&quot;M&quot;:&quot;L&quot;,f):s},f.tension=function(t){return arguments.length?(u=t,f):u},f}function ls(t){return t.radius}function cs(t){return[t.x,t.y]}function us(t){return function(){var e=t.apply(this,arguments),r=e[0],n=e[1]-Ct;return[r*Math.cos(n),r*Math.sin(n)]}}function fs(){return 64}function hs(){return&quot;circle&quot;}function ps(t){var e=Math.sqrt(t/At);return&quot;M0,&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,&quot;+-e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,&quot;+e+&quot;Z&quot;}t.svg.line.radial=function(){var t=Go(os);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},Zo.reverse=Jo,Jo.reverse=Zo,t.svg.area=function(){return ss(L)},t.svg.area.radial=function(){var t=ss(os);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},t.svg.chord=function(){var t=Vn,e=qn,r=ls,n=jo,i=Uo;function a(r,n){var i,a,c=o(this,t,r,n),u=o(this,e,r,n);return&quot;M&quot;+c.p0+s(c.r,c.p1,c.a1-c.a0)+(a=u,((i=c).a0==a.a0&amp;&amp;i.a1==a.a1?l(c.r,c.p1,c.r,c.p0):l(c.r,c.p1,u.r,u.p0)+s(u.r,u.p1,u.a1-u.a0)+l(u.r,u.p1,c.r,c.p0))+&quot;Z&quot;)}function o(t,e,a,o){var s=e.call(t,a,o),l=r.call(t,s,o),c=n.call(t,s,o)-Ct,u=i.call(t,s,o)-Ct;return{r:l,a0:c,a1:u,p0:[l*Math.cos(c),l*Math.sin(c)],p1:[l*Math.cos(u),l*Math.sin(u)]}}function s(t,e,r){return&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 &quot;+ +(r&gt;At)+&quot;,1 &quot;+e}function l(t,e,r,n){return&quot;Q 0,0 &quot;+n}return a.radius=function(t){return arguments.length?(r=de(t),a):r},a.source=function(e){return arguments.length?(t=de(e),a):t},a.target=function(t){return arguments.length?(e=de(t),a):e},a.startAngle=function(t){return arguments.length?(n=de(t),a):n},a.endAngle=function(t){return arguments.length?(i=de(t),a):i},a},t.svg.diagonal=function(){var t=Vn,e=qn,r=cs;function n(n,i){var a=t.call(this,n,i),o=e.call(this,n,i),s=(a.y+o.y)/2,l=[a,{x:a.x,y:s},{x:o.x,y:s},o];return&quot;M&quot;+(l=l.map(r))[0]+&quot;C&quot;+l[1]+&quot; &quot;+l[2]+&quot; &quot;+l[3]}return n.source=function(e){return arguments.length?(t=de(e),n):t},n.target=function(t){return arguments.length?(e=de(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},t.svg.diagonal.radial=function(){var e=t.svg.diagonal(),r=cs,n=e.projection;return e.projection=function(t){return arguments.length?n(us(r=t)):r},e},t.svg.symbol=function(){var t=hs,e=fs;function r(r,n){return(ds.get(t.call(this,r,n))||ps)(e.call(this,r,n))}return r.type=function(e){return arguments.length?(t=de(e),r):t},r.size=function(t){return arguments.length?(e=de(t),r):e},r};var ds=t.map({circle:ps,cross:function(t){var e=Math.sqrt(t/5)/2;return&quot;M&quot;+-3*e+&quot;,&quot;+-e+&quot;H&quot;+-e+&quot;V&quot;+-3*e+&quot;H&quot;+e+&quot;V&quot;+-e+&quot;H&quot;+3*e+&quot;V&quot;+e+&quot;H&quot;+e+&quot;V&quot;+3*e+&quot;H&quot;+-e+&quot;V&quot;+e+&quot;H&quot;+-3*e+&quot;Z&quot;},diamond:function(t){var e=Math.sqrt(t/(2*ms)),r=e*ms;return&quot;M0,&quot;+-e+&quot;L&quot;+r+&quot;,0 0,&quot;+e+&quot; &quot;+-r+&quot;,0Z&quot;},square:function(t){var e=Math.sqrt(t)/2;return&quot;M&quot;+-e+&quot;,&quot;+-e+&quot;L&quot;+e+&quot;,&quot;+-e+&quot; &quot;+e+&quot;,&quot;+e+&quot; &quot;+-e+&quot;,&quot;+e+&quot;Z&quot;},&quot;triangle-down&quot;:function(t){var e=Math.sqrt(t/gs),r=e*gs/2;return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,&quot;+-r+&quot; &quot;+-e+&quot;,&quot;+-r+&quot;Z&quot;},&quot;triangle-up&quot;:function(t){var e=Math.sqrt(t/gs),r=e*gs/2;return&quot;M0,&quot;+-r+&quot;L&quot;+e+&quot;,&quot;+r+&quot; &quot;+-e+&quot;,&quot;+r+&quot;Z&quot;}});t.svg.symbolTypes=ds.keys();var gs=Math.sqrt(3),ms=Math.tan(30*Lt);Y.transition=function(t){for(var e,r,n=bs||++Ts,i=As(t),a=[],o=_s||{time:Date.now(),ease:ca,delay:0,duration:250},s=-1,l=this.length;++s&lt;l;){a.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u&lt;f;)(r=c[u])&amp;&amp;Ss(r,u,i,n,o),e.push(r)}return xs(a,i,n)},Y.interrupt=function(t){return this.each(null==t?vs:ys(As(t)))};var vs=ys(As());function ys(t){return function(){var e,r,n;(e=this[t])&amp;&amp;(n=e[r=e.active])&amp;&amp;(n.timer.c=null,n.timer.t=NaN,--e.count?delete e[r]:delete this[t],e.active+=.5,n.event&amp;&amp;n.event.interrupt.call(this,this.__data__,n.index))}}function xs(t,e,r){return U(t,ws),t.namespace=e,t.id=r,t}var bs,_s,ws=[],Ts=0;function ks(t,e,r,n){var i=t.id,a=t.namespace;return ut(t,&quot;function&quot;==typeof r?function(t,o,s){t[a][i].tween.set(e,n(r.call(t,t.__data__,o,s)))}:(r=n(r),function(t){t[a][i].tween.set(e,r)}))}function Ms(t){return null==t&amp;&amp;(t=&quot;&quot;),function(){this.textContent=t}}function As(t){return null==t?&quot;__transition__&quot;:&quot;__transition_&quot;+t+&quot;__&quot;}function Ss(t,e,r,n,i){var a,o,s,l,c,u=t[r]||(t[r]={active:0,count:0}),f=u[n];function h(r){var i=u.active,h=u[i];for(var d in h&amp;&amp;(h.timer.c=null,h.timer.t=NaN,--u.count,delete u[i],h.event&amp;&amp;h.event.interrupt.call(t,t.__data__,h.index)),u)if(+d&lt;n){var g=u[d];g.timer.c=null,g.timer.t=NaN,--u.count,delete u[d]}o.c=p,we((function(){return o.c&amp;&amp;p(r||1)&amp;&amp;(o.c=null,o.t=NaN),1}),0,a),u.active=n,f.event&amp;&amp;f.event.start.call(t,t.__data__,e),c=[],f.tween.forEach((function(r,n){(n=n.call(t,t.__data__,e))&amp;&amp;c.push(n)})),l=f.ease,s=f.duration}function p(i){for(var a=i/s,o=l(a),h=c.length;h&gt;0;)c[--h].call(t,o);if(a&gt;=1)return f.event&amp;&amp;f.event.end.call(t,t.__data__,e),--u.count?delete u[n]:delete t[r],1}f||(a=i.time,o=we((function(t){var e=f.delay;if(o.t=e+a,e&lt;=t)return h(t-e);o.c=h}),0,a),f=u[n]={tween:new _,time:a,timer:o,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++u.count)}ws.call=Y.call,ws.empty=Y.empty,ws.node=Y.node,ws.size=Y.size,t.transition=function(e,r){return e&amp;&amp;e.transition?bs?e.transition(r):e:t.selection().transition(e)},t.transition.prototype=ws,ws.select=function(t){var e,r,n,i=this.id,a=this.namespace,o=[];t=W(t);for(var s=-1,l=this.length;++s&lt;l;){o.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u&lt;f;)(n=c[u])&amp;&amp;(r=t.call(n,n.__data__,u,s))?(&quot;__data__&quot;in n&amp;&amp;(r.__data__=n.__data__),Ss(r,u,a,i,n[a][i]),e.push(r)):e.push(null)}return xs(o,a,i)},ws.selectAll=function(t){var e,r,n,i,a,o=this.id,s=this.namespace,l=[];t=X(t);for(var c=-1,u=this.length;++c&lt;u;)for(var f=this[c],h=-1,p=f.length;++h&lt;p;)if(n=f[h]){a=n[s][o],r=t.call(n,n.__data__,h,c),l.push(e=[]);for(var d=-1,g=r.length;++d&lt;g;)(i=r[d])&amp;&amp;Ss(i,d,s,o,a),e.push(i)}return xs(l,s,o)},ws.filter=function(t){var e,r,n=[];&quot;function&quot;!=typeof t&amp;&amp;(t=lt(t));for(var i=0,a=this.length;i&lt;a;i++){n.push(e=[]);for(var o,s=0,l=(o=this[i]).length;s&lt;l;s++)(r=o[s])&amp;&amp;t.call(r,r.__data__,s,i)&amp;&amp;e.push(r)}return xs(n,this.namespace,this.id)},ws.tween=function(t,e){var r=this.id,n=this.namespace;return arguments.length&lt;2?this.node()[n][r].tween.get(t):ut(this,null==e?function(e){e[n][r].tween.remove(t)}:function(i){i[n][r].tween.set(t,e)})},ws.attr=function(e,r){if(arguments.length&lt;2){for(r in e)this.attr(r,e[r]);return this}var n=&quot;transform&quot;==e?ba:$i,i=t.ns.qualify(e);function a(){this.removeAttribute(i)}function o(){this.removeAttributeNS(i.space,i.local)}function s(t){return null==t?a:(t+=&quot;&quot;,function(){var e,r=this.getAttribute(i);return r!==t&amp;&amp;(e=n(r,t),function(t){this.setAttribute(i,e(t))})})}function l(t){return null==t?o:(t+=&quot;&quot;,function(){var e,r=this.getAttributeNS(i.space,i.local);return r!==t&amp;&amp;(e=n(r,t),function(t){this.setAttributeNS(i.space,i.local,e(t))})})}return ks(this,&quot;attr.&quot;+e,r,i.local?l:s)},ws.attrTween=function(e,r){var n=t.ns.qualify(e);return this.tween(&quot;attr.&quot;+e,n.local?function(t,e){var i=r.call(this,t,e,this.getAttributeNS(n.space,n.local));return i&amp;&amp;function(t){this.setAttributeNS(n.space,n.local,i(t))}}:function(t,e){var i=r.call(this,t,e,this.getAttribute(n));return i&amp;&amp;function(t){this.setAttribute(n,i(t))}})},ws.style=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=&quot;&quot;),t)this.style(r,t[r],e);return this}r=&quot;&quot;}function i(){this.style.removeProperty(t)}function a(e){return null==e?i:(e+=&quot;&quot;,function(){var n,i=o(this).getComputedStyle(this,null).getPropertyValue(t);return i!==e&amp;&amp;(n=$i(i,e),function(e){this.style.setProperty(t,n(e),r)})})}return ks(this,&quot;style.&quot;+t,e,a)},ws.styleTween=function(t,e,r){function n(n,i){var a=e.call(this,n,i,o(this).getComputedStyle(this,null).getPropertyValue(t));return a&amp;&amp;function(e){this.style.setProperty(t,a(e),r)}}return arguments.length&lt;3&amp;&amp;(r=&quot;&quot;),this.tween(&quot;style.&quot;+t,n)},ws.text=function(t){return ks(this,&quot;text&quot;,t,Ms)},ws.remove=function(){var t=this.namespace;return this.each(&quot;end.transition&quot;,(function(){var e;this[t].count&lt;2&amp;&amp;(e=this.parentNode)&amp;&amp;e.removeChild(this)}))},ws.ease=function(e){var r=this.id,n=this.namespace;return arguments.length&lt;1?this.node()[n][r].ease:(&quot;function&quot;!=typeof e&amp;&amp;(e=t.ease.apply(t,arguments)),ut(this,(function(t){t[n][r].ease=e})))},ws.delay=function(t){var e=this.id,r=this.namespace;return arguments.length&lt;1?this.node()[r][e].delay:ut(this,&quot;function&quot;==typeof t?function(n,i,a){n[r][e].delay=+t.call(n,n.__data__,i,a)}:(t=+t,function(n){n[r][e].delay=t}))},ws.duration=function(t){var e=this.id,r=this.namespace;return arguments.length&lt;1?this.node()[r][e].duration:ut(this,&quot;function&quot;==typeof t?function(n,i,a){n[r][e].duration=Math.max(1,t.call(n,n.__data__,i,a))}:(t=Math.max(1,t),function(n){n[r][e].duration=t}))},ws.each=function(e,r){var n=this.id,i=this.namespace;if(arguments.length&lt;2){var a=_s,o=bs;try{bs=n,ut(this,(function(t,r,a){_s=t[i][n],e.call(t,t.__data__,r,a)}))}finally{_s=a,bs=o}}else ut(this,(function(a){var o=a[i][n];(o.event||(o.event=t.dispatch(&quot;start&quot;,&quot;end&quot;,&quot;interrupt&quot;))).on(e,r)}));return this},ws.transition=function(){for(var t,e,r,n=this.id,i=++Ts,a=this.namespace,o=[],s=0,l=this.length;s&lt;l;s++){o.push(t=[]);for(var c,u=0,f=(c=this[s]).length;u&lt;f;u++)(e=c[u])&amp;&amp;Ss(e,u,a,i,{time:(r=e[a][n]).time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration}),t.push(e)}return xs(o,a,i)},t.svg.axis=function(){var e,r=t.scale.linear(),i=Es,a=6,o=6,s=3,l=[10],c=null;function u(n){n.each((function(){var n,u=t.select(this),f=this.__chart__||r,h=this.__chart__=r.copy(),p=null==c?h.ticks?h.ticks.apply(h,l):h.domain():c,d=null==e?h.tickFormat?h.tickFormat.apply(h,l):L:e,g=u.selectAll(&quot;.tick&quot;).data(p,h),m=g.enter().insert(&quot;g&quot;,&quot;.domain&quot;).attr(&quot;class&quot;,&quot;tick&quot;).style(&quot;opacity&quot;,kt),v=t.transition(g.exit()).style(&quot;opacity&quot;,kt).remove(),y=t.transition(g.order()).style(&quot;opacity&quot;,1),x=Math.max(a,0)+s,b=mo(h),_=u.selectAll(&quot;.domain&quot;).data([0]),w=(_.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;domain&quot;),t.transition(_));m.append(&quot;line&quot;),m.append(&quot;text&quot;);var T,k,M,A,S=m.select(&quot;line&quot;),E=y.select(&quot;line&quot;),C=g.select(&quot;text&quot;).text(d),I=m.select(&quot;text&quot;),P=y.select(&quot;text&quot;),z=&quot;top&quot;===i||&quot;left&quot;===i?-1:1;if(&quot;bottom&quot;===i||&quot;top&quot;===i?(n=Ls,T=&quot;x&quot;,M=&quot;y&quot;,k=&quot;x2&quot;,A=&quot;y2&quot;,C.attr(&quot;dy&quot;,z&lt;0?&quot;0em&quot;:&quot;.71em&quot;).style(&quot;text-anchor&quot;,&quot;middle&quot;),w.attr(&quot;d&quot;,&quot;M&quot;+b[0]+&quot;,&quot;+z*o+&quot;V0H&quot;+b[1]+&quot;V&quot;+z*o)):(n=Is,T=&quot;y&quot;,M=&quot;x&quot;,k=&quot;y2&quot;,A=&quot;x2&quot;,C.attr(&quot;dy&quot;,&quot;.32em&quot;).style(&quot;text-anchor&quot;,z&lt;0?&quot;end&quot;:&quot;start&quot;),w.attr(&quot;d&quot;,&quot;M&quot;+z*o+&quot;,&quot;+b[0]+&quot;H0V&quot;+b[1]+&quot;H&quot;+z*o)),S.attr(A,z*a),I.attr(M,z*x),E.attr(k,0).attr(A,z*a),P.attr(T,0).attr(M,z*x),h.rangeBand){var O=h,D=O.rangeBand()/2;f=h=function(t){return O(t)+D}}else f.rangeBand?f=h:v.call(n,h,f);m.call(n,f,h),y.call(n,h,h)}))}return u.scale=function(t){return arguments.length?(r=t,u):r},u.orient=function(t){return arguments.length?(i=t in Cs?t+&quot;&quot;:Es,u):i},u.ticks=function(){return arguments.length?(l=n(arguments),u):l},u.tickValues=function(t){return arguments.length?(c=t,u):c},u.tickFormat=function(t){return arguments.length?(e=t,u):e},u.tickSize=function(t){var e=arguments.length;return e?(a=+t,o=+arguments[e-1],u):a},u.innerTickSize=function(t){return arguments.length?(a=+t,u):a},u.outerTickSize=function(t){return arguments.length?(o=+t,u):o},u.tickPadding=function(t){return arguments.length?(s=+t,u):s},u.tickSubdivide=function(){return arguments.length&amp;&amp;u},u};var Es=&quot;bottom&quot;,Cs={top:1,right:1,bottom:1,left:1};function Ls(t,e,r){t.attr(&quot;transform&quot;,(function(t){var n=e(t);return&quot;translate(&quot;+(isFinite(n)?n:r(t))+&quot;,0)&quot;}))}function Is(t,e,r){t.attr(&quot;transform&quot;,(function(t){var n=e(t);return&quot;translate(0,&quot;+(isFinite(n)?n:r(t))+&quot;)&quot;}))}t.svg.brush=function(){var e,r,n=N(h,&quot;brushstart&quot;,&quot;brush&quot;,&quot;brushend&quot;),i=null,a=null,s=[0,0],l=[0,0],c=!0,u=!0,f=zs[0];function h(e){e.each((function(){var e=t.select(this).style(&quot;pointer-events&quot;,&quot;all&quot;).style(&quot;-webkit-tap-highlight-color&quot;,&quot;rgba(0,0,0,0)&quot;).on(&quot;mousedown.brush&quot;,m).on(&quot;touchstart.brush&quot;,m),r=e.selectAll(&quot;.background&quot;).data([0]);r.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;background&quot;).style(&quot;visibility&quot;,&quot;hidden&quot;).style(&quot;cursor&quot;,&quot;crosshair&quot;),e.selectAll(&quot;.extent&quot;).data([0]).enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;extent&quot;).style(&quot;cursor&quot;,&quot;move&quot;);var n=e.selectAll(&quot;.resize&quot;).data(f,L);n.exit().remove(),n.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;resize &quot;+t})).style(&quot;cursor&quot;,(function(t){return Ps[t]})).append(&quot;rect&quot;).attr(&quot;x&quot;,(function(t){return/[ew]$/.test(t)?-3:null})).attr(&quot;y&quot;,(function(t){return/^[ns]/.test(t)?-3:null})).attr(&quot;width&quot;,6).attr(&quot;height&quot;,6).style(&quot;visibility&quot;,&quot;hidden&quot;),n.style(&quot;display&quot;,h.empty()?&quot;none&quot;:null);var o,s=t.transition(e),l=t.transition(r);i&amp;&amp;(o=mo(i),l.attr(&quot;x&quot;,o[0]).attr(&quot;width&quot;,o[1]-o[0]),d(s)),a&amp;&amp;(o=mo(a),l.attr(&quot;y&quot;,o[0]).attr(&quot;height&quot;,o[1]-o[0]),g(s)),p(s)}))}function p(t){t.selectAll(&quot;.resize&quot;).attr(&quot;transform&quot;,(function(t){return&quot;translate(&quot;+s[+/e$/.test(t)]+&quot;,&quot;+l[+/^s/.test(t)]+&quot;)&quot;}))}function d(t){t.select(&quot;.extent&quot;).attr(&quot;x&quot;,s[0]),t.selectAll(&quot;.extent,.n&gt;rect,.s&gt;rect&quot;).attr(&quot;width&quot;,s[1]-s[0])}function g(t){t.select(&quot;.extent&quot;).attr(&quot;y&quot;,l[0]),t.selectAll(&quot;.extent,.e&gt;rect,.w&gt;rect&quot;).attr(&quot;height&quot;,l[1]-l[0])}function m(){var f,m,v=this,y=t.select(t.event.target),x=n.of(v,arguments),b=t.select(v),_=y.datum(),w=!/^(n|s)$/.test(_)&amp;&amp;i,T=!/^(e|w)$/.test(_)&amp;&amp;a,k=y.classed(&quot;extent&quot;),M=bt(v),A=t.mouse(v),S=t.select(o(v)).on(&quot;keydown.brush&quot;,L).on(&quot;keyup.brush&quot;,I);if(t.event.changedTouches?S.on(&quot;touchmove.brush&quot;,P).on(&quot;touchend.brush&quot;,O):S.on(&quot;mousemove.brush&quot;,P).on(&quot;mouseup.brush&quot;,O),b.interrupt().selectAll(&quot;*&quot;).interrupt(),k)A[0]=s[0]-A[0],A[1]=l[0]-A[1];else if(_){var E=+/w$/.test(_),C=+/^n/.test(_);m=[s[1-E]-A[0],l[1-C]-A[1]],A[0]=s[E],A[1]=l[C]}else t.event.altKey&amp;&amp;(f=A.slice());function L(){32==t.event.keyCode&amp;&amp;(k||(f=null,A[0]-=s[1],A[1]-=l[1],k=2),F())}function I(){32==t.event.keyCode&amp;&amp;2==k&amp;&amp;(A[0]+=s[1],A[1]+=l[1],k=0,F())}function P(){var e=t.mouse(v),r=!1;m&amp;&amp;(e[0]+=m[0],e[1]+=m[1]),k||(t.event.altKey?(f||(f=[(s[0]+s[1])/2,(l[0]+l[1])/2]),A[0]=s[+(e[0]&lt;f[0])],A[1]=l[+(e[1]&lt;f[1])]):f=null),w&amp;&amp;z(e,i,0)&amp;&amp;(d(b),r=!0),T&amp;&amp;z(e,a,1)&amp;&amp;(g(b),r=!0),r&amp;&amp;(p(b),x({type:&quot;brush&quot;,mode:k?&quot;move&quot;:&quot;resize&quot;}))}function z(t,n,i){var a,o,h=mo(n),p=h[0],d=h[1],g=A[i],m=i?l:s,v=m[1]-m[0];if(k&amp;&amp;(p-=g,d-=v+g),a=(i?u:c)?Math.max(p,Math.min(d,t[i])):t[i],k?o=(a+=g)+v:(f&amp;&amp;(g=Math.max(p,Math.min(d,2*f[i]-a))),g&lt;a?(o=a,a=g):o=g),m[0]!=a||m[1]!=o)return i?r=null:e=null,m[0]=a,m[1]=o,!0}function O(){P(),b.style(&quot;pointer-events&quot;,&quot;all&quot;).selectAll(&quot;.resize&quot;).style(&quot;display&quot;,h.empty()?&quot;none&quot;:null),t.select(&quot;body&quot;).style(&quot;cursor&quot;,null),S.on(&quot;mousemove.brush&quot;,null).on(&quot;mouseup.brush&quot;,null).on(&quot;touchmove.brush&quot;,null).on(&quot;touchend.brush&quot;,null).on(&quot;keydown.brush&quot;,null).on(&quot;keyup.brush&quot;,null),M(),x({type:&quot;brushend&quot;})}b.style(&quot;pointer-events&quot;,&quot;none&quot;).selectAll(&quot;.resize&quot;).style(&quot;display&quot;,null),t.select(&quot;body&quot;).style(&quot;cursor&quot;,y.style(&quot;cursor&quot;)),x({type:&quot;brushstart&quot;}),P()}return h.event=function(i){i.each((function(){var i=n.of(this,arguments),a={x:s,y:l,i:e,j:r},o=this.__chart__||a;this.__chart__=a,bs?t.select(this).transition().each(&quot;start.brush&quot;,(function(){e=o.i,r=o.j,s=o.x,l=o.y,i({type:&quot;brushstart&quot;})})).tween(&quot;brush:brush&quot;,(function(){var t=ta(s,a.x),n=ta(l,a.y);return e=r=null,function(e){s=a.x=t(e),l=a.y=n(e),i({type:&quot;brush&quot;,mode:&quot;resize&quot;})}})).each(&quot;end.brush&quot;,(function(){e=a.i,r=a.j,i({type:&quot;brush&quot;,mode:&quot;resize&quot;}),i({type:&quot;brushend&quot;})})):(i({type:&quot;brushstart&quot;}),i({type:&quot;brush&quot;,mode:&quot;resize&quot;}),i({type:&quot;brushend&quot;}))}))},h.x=function(t){return arguments.length?(f=zs[!(i=t)&lt;&lt;1|!a],h):i},h.y=function(t){return arguments.length?(f=zs[!i&lt;&lt;1|!(a=t)],h):a},h.clamp=function(t){return arguments.length?(i&amp;&amp;a?(c=!!t[0],u=!!t[1]):i?c=!!t:a&amp;&amp;(u=!!t),h):i&amp;&amp;a?[c,u]:i?c:a?u:null},h.extent=function(t){var n,o,c,u,f;return arguments.length?(i&amp;&amp;(n=t[0],o=t[1],a&amp;&amp;(n=n[0],o=o[0]),e=[n,o],i.invert&amp;&amp;(n=i(n),o=i(o)),o&lt;n&amp;&amp;(f=n,n=o,o=f),n==s[0]&amp;&amp;o==s[1]||(s=[n,o])),a&amp;&amp;(c=t[0],u=t[1],i&amp;&amp;(c=c[1],u=u[1]),r=[c,u],a.invert&amp;&amp;(c=a(c),u=a(u)),u&lt;c&amp;&amp;(f=c,c=u,u=f),c==l[0]&amp;&amp;u==l[1]||(l=[c,u])),h):(i&amp;&amp;(e?(n=e[0],o=e[1]):(n=s[0],o=s[1],i.invert&amp;&amp;(n=i.invert(n),o=i.invert(o)),o&lt;n&amp;&amp;(f=n,n=o,o=f))),a&amp;&amp;(r?(c=r[0],u=r[1]):(c=l[0],u=l[1],a.invert&amp;&amp;(c=a.invert(c),u=a.invert(u)),u&lt;c&amp;&amp;(f=c,c=u,u=f))),i&amp;&amp;a?[[n,c],[o,u]]:i?[n,o]:a&amp;&amp;[c,u])},h.clear=function(){return h.empty()||(s=[0,0],l=[0,0],e=r=null),h},h.empty=function(){return!!i&amp;&amp;s[0]==s[1]||!!a&amp;&amp;l[0]==l[1]},t.rebind(h,n,&quot;on&quot;)};var Ps={n:&quot;ns-resize&quot;,e:&quot;ew-resize&quot;,s:&quot;ns-resize&quot;,w:&quot;ew-resize&quot;,nw:&quot;nwse-resize&quot;,ne:&quot;nesw-resize&quot;,se:&quot;nwse-resize&quot;,sw:&quot;nesw-resize&quot;},zs=[[&quot;n&quot;,&quot;e&quot;,&quot;s&quot;,&quot;w&quot;,&quot;nw&quot;,&quot;ne&quot;,&quot;se&quot;,&quot;sw&quot;],[&quot;e&quot;,&quot;w&quot;],[&quot;n&quot;,&quot;s&quot;],[]],Os=Pe.format=sr.timeFormat,Ds=Os.utc,Rs=Ds(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);function Fs(t){return t.toISOString()}function Bs(e,r,n){function i(t){return e(t)}function a(e,n){var i=(e[1]-e[0])/n,a=t.bisect(js,i);return a==js.length?[r.year,ko(e.map((function(t){return t/31536e6})),n)[2]]:a?r[i/js[a-1]&lt;js[a]/i?a-1:a]:[qs,ko(e,n)[2]]}return i.invert=function(t){return Ns(e.invert(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain().map(Ns)},i.nice=function(t,e){var r=i.domain(),n=go(r),o=null==t?a(n,10):&quot;number&quot;==typeof t&amp;&amp;a(n,t);function s(r){return!isNaN(r)&amp;&amp;!t.range(r,Ns(+r+1),e).length}return o&amp;&amp;(t=o[0],e=o[1]),i.domain(yo(r,e&gt;1?{floor:function(e){for(;s(e=t.floor(e));)e=Ns(e-1);return e},ceil:function(e){for(;s(e=t.ceil(e));)e=Ns(+e+1);return e}}:t))},i.ticks=function(t,e){var r=go(i.domain()),n=null==t?a(r,10):&quot;number&quot;==typeof t?a(r,t):!t.range&amp;&amp;[{range:t},e];return n&amp;&amp;(t=n[0],e=n[1]),t.range(r[0],Ns(+r[1]+1),e&lt;1?1:e)},i.tickFormat=function(){return n},i.copy=function(){return Bs(e.copy(),r,n)},wo(i,e)}function Ns(t){return new Date(t)}Os.iso=Date.prototype.toISOString&amp;&amp;+new Date(&quot;2000-01-01T00:00:00.000Z&quot;)?Fs:Rs,Fs.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},Fs.toString=Rs.toString,Pe.second=Re((function(t){return new ze(1e3*Math.floor(t/1e3))}),(function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))}),(function(t){return t.getSeconds()})),Pe.seconds=Pe.second.range,Pe.seconds.utc=Pe.second.utc.range,Pe.minute=Re((function(t){return new ze(6e4*Math.floor(t/6e4))}),(function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))}),(function(t){return t.getMinutes()})),Pe.minutes=Pe.minute.range,Pe.minutes.utc=Pe.minute.utc.range,Pe.hour=Re((function(t){var e=t.getTimezoneOffset()/60;return new ze(36e5*(Math.floor(t/36e5-e)+e))}),(function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))}),(function(t){return t.getHours()})),Pe.hours=Pe.hour.range,Pe.hours.utc=Pe.hour.utc.range,Pe.month=Re((function(t){return(t=Pe.day(t)).setDate(1),t}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t){return t.getMonth()})),Pe.months=Pe.month.range,Pe.months.utc=Pe.month.utc.range;var js=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Us=[[Pe.second,1],[Pe.second,5],[Pe.second,15],[Pe.second,30],[Pe.minute,1],[Pe.minute,5],[Pe.minute,15],[Pe.minute,30],[Pe.hour,1],[Pe.hour,3],[Pe.hour,6],[Pe.hour,12],[Pe.day,1],[Pe.day,2],[Pe.week,1],[Pe.month,1],[Pe.month,3],[Pe.year,1]],Vs=Os.multi([[&quot;.%L&quot;,function(t){return t.getMilliseconds()}],[&quot;:%S&quot;,function(t){return t.getSeconds()}],[&quot;%I:%M&quot;,function(t){return t.getMinutes()}],[&quot;%I %p&quot;,function(t){return t.getHours()}],[&quot;%a %d&quot;,function(t){return t.getDay()&amp;&amp;1!=t.getDate()}],[&quot;%b %d&quot;,function(t){return 1!=t.getDate()}],[&quot;%B&quot;,function(t){return t.getMonth()}],[&quot;%Y&quot;,Yr]]),qs={range:function(e,r,n){return t.range(Math.ceil(e/n)*n,+r,n).map(Ns)},floor:L,ceil:L};Us.year=Pe.year,Pe.scale=function(){return Bs(t.scale.linear(),Us,Vs)};var Hs=Us.map((function(t){return[t[0].utc,t[1]]})),Gs=Ds.multi([[&quot;.%L&quot;,function(t){return t.getUTCMilliseconds()}],[&quot;:%S&quot;,function(t){return t.getUTCSeconds()}],[&quot;%I:%M&quot;,function(t){return t.getUTCMinutes()}],[&quot;%I %p&quot;,function(t){return t.getUTCHours()}],[&quot;%a %d&quot;,function(t){return t.getUTCDay()&amp;&amp;1!=t.getUTCDate()}],[&quot;%b %d&quot;,function(t){return 1!=t.getUTCDate()}],[&quot;%B&quot;,function(t){return t.getUTCMonth()}],[&quot;%Y&quot;,Yr]]);function Ys(t){return JSON.parse(t.responseText)}function Ws(t){var e=i.createRange();return e.selectNode(i.body),e.createContextualFragment(t.responseText)}Hs.year=Pe.year.utc,Pe.scale.utc=function(){return Bs(t.scale.linear(),Hs,Gs)},t.text=ge((function(t){return t.responseText})),t.json=function(t,e){return me(t,&quot;application/json&quot;,Ys,e)},t.html=function(t,e){return me(t,&quot;text/html&quot;,Ws,e)},t.xml=ge((function(t){return t.responseXML})),&quot;object&quot;==typeof e&amp;&amp;e.exports?e.exports=t:this.d3=t}()},{}],170:[function(t,e,r){e.exports=function(){for(var t=0;t&lt;arguments.length;t++)if(void 0!==arguments[t])return arguments[t]}},{}],171:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;incremental-convex-hull&quot;),i=t(&quot;uniq&quot;);function a(t,e){this.point=t,this.index=e}function o(t,e){for(var r=t.point,n=e.point,i=r.length,a=0;a&lt;i;++a){var o=n[a]-r[a];if(o)return o}return 0}e.exports=function(t,e){var r=t.length;if(0===r)return[];var s=t[0].length;if(s&lt;1)return[];if(1===s)return function(t,e,r){if(1===t)return r?[[-1,0]]:[];var n=e.map((function(t,e){return[t[0],e]}));n.sort((function(t,e){return t[0]-e[0]}));for(var i=new Array(t-1),a=1;a&lt;t;++a){var o=n[a-1],s=n[a];i[a-1]=[o[1],s[1]]}r&amp;&amp;i.push([-1,i[0][1]],[i[t-1][1],-1]);return i}(r,t,e);for(var l=new Array(r),c=1,u=0;u&lt;r;++u){for(var f=t[u],h=new Array(s+1),p=0,d=0;d&lt;s;++d){var g=f[d];h[d]=g,p+=g*g}h[s]=p,l[u]=new a(h,u),c=Math.max(p,c)}i(l,o),r=l.length;var m=new Array(r+s+1),v=new Array(r+s+1),y=(s+1)*(s+1)*c,x=new Array(s+1);for(u=0;u&lt;=s;++u)x[u]=0;x[s]=y,m[0]=x.slice(),v[0]=-1;for(u=0;u&lt;=s;++u){(h=x.slice())[u]=1,m[u+1]=h,v[u+1]=-1}for(u=0;u&lt;r;++u){var b=l[u];m[u+s+1]=b.point,v[u+s+1]=b.index}var _=n(m,!1);_=e?_.filter((function(t){for(var e=0,r=0;r&lt;=s;++r){var n=v[t[r]];if(n&lt;0&amp;&amp;++e&gt;=2)return!1;t[r]=n}return!0})):_.filter((function(t){for(var e=0;e&lt;=s;++e){var r=v[t[e]];if(r&lt;0)return!1;t[e]=r}return!0}));if(1&amp;s)for(u=0;u&lt;_.length;++u){h=(b=_[u])[0];b[0]=b[1],b[1]=h}return _}},{&quot;incremental-convex-hull&quot;:459,uniq:597}],172:[function(t,e,r){&quot;use strict&quot;;e.exports=a;var n=(a.canvas=document.createElement(&quot;canvas&quot;)).getContext(&quot;2d&quot;),i=o([32,126]);function a(t,e){Array.isArray(t)&amp;&amp;(t=t.join(&quot;, &quot;));var r,a={},s=16,l=.05;e&amp;&amp;(2===e.length&amp;&amp;&quot;number&quot;==typeof e[0]?r=o(e):Array.isArray(e)?r=e:(e.o?r=o(e.o):e.pairs&amp;&amp;(r=e.pairs),e.fontSize&amp;&amp;(s=e.fontSize),null!=e.threshold&amp;&amp;(l=e.threshold))),r||(r=i),n.font=s+&quot;px &quot;+t;for(var c=0;c&lt;r.length;c++){var u=r[c],f=n.measureText(u[0]).width+n.measureText(u[1]).width,h=n.measureText(u).width;if(Math.abs(f-h)&gt;s*l){var p=(h-f)/s;a[u]=1e3*p}}return a}function o(t){for(var e=[],r=t[0];r&lt;=t[1];r++)for(var n=String.fromCharCode(r),i=t[0];i&lt;t[1];i++){var a=n+String.fromCharCode(i);e.push(a)}return e}a.createPairs=o,a.ascii=i},{}],173:[function(t,e,r){(function(t){(function(){var r=!1;if(&quot;undefined&quot;!=typeof Float64Array){var n=new Float64Array(1),i=new Uint32Array(n.buffer);if(n[0]=1,r=!0,1072693248===i[1]){e.exports=function(t){return n[0]=t,[i[0],i[1]]},e.exports.pack=function(t,e){return i[0]=t,i[1]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[0]},e.exports.hi=function(t){return n[0]=t,i[1]}}else if(1072693248===i[0]){e.exports=function(t){return n[0]=t,[i[1],i[0]]},e.exports.pack=function(t,e){return i[1]=t,i[0]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[1]},e.exports.hi=function(t){return n[0]=t,i[0]}}else r=!1}if(!r){var a=new t(8);e.exports=function(t){return a.writeDoubleLE(t,0,!0),[a.readUInt32LE(0,!0),a.readUInt32LE(4,!0)]},e.exports.pack=function(t,e){return a.writeUInt32LE(t,0,!0),a.writeUInt32LE(e,4,!0),a.readDoubleLE(0,!0)},e.exports.lo=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(0,!0)},e.exports.hi=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(4,!0)}}e.exports.sign=function(t){return e.exports.hi(t)&gt;&gt;&gt;31},e.exports.exponent=function(t){return(e.exports.hi(t)&lt;&lt;1&gt;&gt;&gt;21)-1023},e.exports.fraction=function(t){var r=e.exports.lo(t),n=e.exports.hi(t),i=1048575&amp;n;return 2146435072&amp;n&amp;&amp;(i+=1&lt;&lt;20),[r,i]},e.exports.denormalized=function(t){return!(2146435072&amp;e.exports.hi(t))}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{buffer:111}],174:[function(t,e,r){var n=t(&quot;abs-svg-path&quot;),i=t(&quot;normalize-svg-path&quot;),a={M:&quot;moveTo&quot;,C:&quot;bezierCurveTo&quot;};e.exports=function(t,e){t.beginPath(),i(n(e)).forEach((function(e){var r=e[0],n=e.slice(1);t[a[r]].apply(t,n)})),t.closePath()}},{&quot;abs-svg-path&quot;:65,&quot;normalize-svg-path&quot;:497}],175:[function(t,e,r){e.exports=function(t){switch(t){case&quot;int8&quot;:return Int8Array;case&quot;int16&quot;:return Int16Array;case&quot;int32&quot;:return Int32Array;case&quot;uint8&quot;:return Uint8Array;case&quot;uint16&quot;:return Uint16Array;case&quot;uint32&quot;:return Uint32Array;case&quot;float32&quot;:return Float32Array;case&quot;float64&quot;:return Float64Array;case&quot;array&quot;:return Array;case&quot;uint8_clamped&quot;:return Uint8ClampedArray}}},{}],176:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){switch(&quot;undefined&quot;==typeof e&amp;&amp;(e=0),typeof t){case&quot;number&quot;:if(t&gt;0)return function(t,e){var r,n;for(r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}(0|t,e);break;case&quot;object&quot;:if(&quot;number&quot;==typeof t.length)return function t(e,r,n){var i=0|e[n];if(i&lt;=0)return[];var a,o=new Array(i);if(n===e.length-1)for(a=0;a&lt;i;++a)o[a]=r;else for(a=0;a&lt;i;++a)o[a]=t(e,r,n+1);return o}(t,e,0)}return[]}},{}],177:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){r=r||2;var n,s,l,c,u,p,d,m=e&amp;&amp;e.length,v=m?e[0]*r:t.length,y=i(t,0,v,r,!0),x=[];if(!y||y.next===y.prev)return x;if(m&amp;&amp;(y=function(t,e,r,n){var o,s,l,c,u,p=[];for(o=0,s=e.length;o&lt;s;o++)l=e[o]*n,c=o&lt;s-1?e[o+1]*n:t.length,(u=i(t,l,c,n,!1))===u.next&amp;&amp;(u.steiner=!0),p.push(g(u));for(p.sort(f),o=0;o&lt;p.length;o++)h(p[o],r),r=a(r,r.next);return r}(t,e,y,r)),t.length&gt;80*r){n=l=t[0],s=c=t[1];for(var b=r;b&lt;v;b+=r)(u=t[b])&lt;n&amp;&amp;(n=u),(p=t[b+1])&lt;s&amp;&amp;(s=p),u&gt;l&amp;&amp;(l=u),p&gt;c&amp;&amp;(c=p);d=0!==(d=Math.max(l-n,c-s))?1/d:0}return o(y,x,r,n,s,d),x}function i(t,e,r,n,i){var a,o;if(i===E(t,e,r,n)&gt;0)for(a=e;a&lt;r;a+=n)o=M(a,t[a],t[a+1],o);else for(a=r-n;a&gt;=e;a-=n)o=M(a,t[a],t[a+1],o);return o&amp;&amp;x(o,o.next)&amp;&amp;(A(o),o=o.next),o}function a(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!x(n,n.next)&amp;&amp;0!==y(n.prev,n,n.next))n=n.next;else{if(A(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function o(t,e,r,n,i,f,h){if(t){!h&amp;&amp;f&amp;&amp;function(t,e,r,n){var i=t;do{null===i.z&amp;&amp;(i.z=d(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e&lt;c&amp;&amp;(s++,n=n.nextZ);e++);for(l=c;s&gt;0||l&gt;0&amp;&amp;n;)0!==s&amp;&amp;(0===l||!n||r.z&lt;=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o&gt;1)}(i)}(t,n,i,f);for(var p,g,m=t;t.prev!==t.next;)if(p=t.prev,g=t.next,f?l(t,n,i,f):s(t))e.push(p.i/r),e.push(t.i/r),e.push(g.i/r),A(t),t=g.next,m=g.next;else if((t=g)===m){h?1===h?o(t=c(a(t),e,r),e,r,n,i,f,2):2===h&amp;&amp;u(t,e,r,n,i,f):o(a(t),e,r,n,i,f,1);break}}}function s(t){var e=t.prev,r=t,n=t.next;if(y(e,r,n)&gt;=0)return!1;for(var i=t.next.next;i!==t.prev;){if(m(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&amp;&amp;y(i.prev,i,i.next)&gt;=0)return!1;i=i.next}return!0}function l(t,e,r,n){var i=t.prev,a=t,o=t.next;if(y(i,a,o)&gt;=0)return!1;for(var s=i.x&lt;a.x?i.x&lt;o.x?i.x:o.x:a.x&lt;o.x?a.x:o.x,l=i.y&lt;a.y?i.y&lt;o.y?i.y:o.y:a.y&lt;o.y?a.y:o.y,c=i.x&gt;a.x?i.x&gt;o.x?i.x:o.x:a.x&gt;o.x?a.x:o.x,u=i.y&gt;a.y?i.y&gt;o.y?i.y:o.y:a.y&gt;o.y?a.y:o.y,f=d(s,l,e,r,n),h=d(c,u,e,r,n),p=t.prevZ,g=t.nextZ;p&amp;&amp;p.z&gt;=f&amp;&amp;g&amp;&amp;g.z&lt;=h;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;y(p.prev,p,p.next)&gt;=0)return!1;if(p=p.prevZ,g!==t.prev&amp;&amp;g!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&amp;&amp;y(g.prev,g,g.next)&gt;=0)return!1;g=g.nextZ}for(;p&amp;&amp;p.z&gt;=f;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;y(p.prev,p,p.next)&gt;=0)return!1;p=p.prevZ}for(;g&amp;&amp;g.z&lt;=h;){if(g!==t.prev&amp;&amp;g!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&amp;&amp;y(g.prev,g,g.next)&gt;=0)return!1;g=g.nextZ}return!0}function c(t,e,r){var n=t;do{var i=n.prev,o=n.next.next;!x(i,o)&amp;&amp;b(i,n,n.next,o)&amp;&amp;T(i,o)&amp;&amp;T(o,i)&amp;&amp;(e.push(i.i/r),e.push(n.i/r),e.push(o.i/r),A(n),A(n.next),n=t=o),n=n.next}while(n!==t);return a(n)}function u(t,e,r,n,i,s){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&amp;&amp;v(l,c)){var u=k(l,c);return l=a(l,l.next),u=a(u,u.next),o(l,e,r,n,i,s),void o(u,e,r,n,i,s)}c=c.next}l=l.next}while(l!==t)}function f(t,e){return t.x-e.x}function h(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a&lt;=n.y&amp;&amp;a&gt;=n.next.y&amp;&amp;n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s&lt;=i&amp;&amp;s&gt;o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x&lt;n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,h=1/0;n=r;do{i&gt;=n.x&amp;&amp;n.x&gt;=u&amp;&amp;i!==n.x&amp;&amp;m(a&lt;f?i:o,a,u,f,a&lt;f?o:i,a,n.x,n.y)&amp;&amp;(l=Math.abs(a-n.y)/(i-n.x),T(n,t)&amp;&amp;(l&lt;h||l===h&amp;&amp;(n.x&gt;r.x||n.x===r.x&amp;&amp;p(r,n)))&amp;&amp;(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e)){var r=k(e,t);a(e,e.next),a(r,r.next)}}function p(t,e){return y(t.prev,t,e.prev)&lt;0&amp;&amp;y(e.next,t,t.next)&lt;0}function d(t,e,r,n,i){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t=32767*(t-r)*i)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e=32767*(e-n)*i)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1}function g(t){var e=t,r=t;do{(e.x&lt;r.x||e.x===r.x&amp;&amp;e.y&lt;r.y)&amp;&amp;(r=e),e=e.next}while(e!==t);return r}function m(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)&gt;=0&amp;&amp;(t-o)*(n-s)-(r-o)*(e-s)&gt;=0&amp;&amp;(r-o)*(a-s)-(i-o)*(n-s)&gt;=0}function v(t,e){return t.next.i!==e.i&amp;&amp;t.prev.i!==e.i&amp;&amp;!function(t,e){var r=t;do{if(r.i!==t.i&amp;&amp;r.next.i!==t.i&amp;&amp;r.i!==e.i&amp;&amp;r.next.i!==e.i&amp;&amp;b(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&amp;&amp;(T(t,e)&amp;&amp;T(e,t)&amp;&amp;function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y&gt;a!=r.next.y&gt;a&amp;&amp;r.next.y!==r.y&amp;&amp;i&lt;(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&amp;&amp;(n=!n),r=r.next}while(r!==t);return n}(t,e)&amp;&amp;(y(t.prev,t,e.prev)||y(t,e.prev,e))||x(t,e)&amp;&amp;y(t.prev,t,t.next)&gt;0&amp;&amp;y(e.prev,e,e.next)&gt;0)}function y(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function x(t,e){return t.x===e.x&amp;&amp;t.y===e.y}function b(t,e,r,n){var i=w(y(t,e,r)),a=w(y(t,e,n)),o=w(y(r,n,t)),s=w(y(r,n,e));return i!==a&amp;&amp;o!==s||(!(0!==i||!_(t,r,e))||(!(0!==a||!_(t,n,e))||(!(0!==o||!_(r,t,n))||!(0!==s||!_(r,e,n)))))}function _(t,e,r){return e.x&lt;=Math.max(t.x,r.x)&amp;&amp;e.x&gt;=Math.min(t.x,r.x)&amp;&amp;e.y&lt;=Math.max(t.y,r.y)&amp;&amp;e.y&gt;=Math.min(t.y,r.y)}function w(t){return t&gt;0?1:t&lt;0?-1:0}function T(t,e){return y(t.prev,t,t.next)&lt;0?y(t,e,t.next)&gt;=0&amp;&amp;y(t,t.prev,e)&gt;=0:y(t,e,t.prev)&lt;0||y(t,t.next,e)&lt;0}function k(t,e){var r=new S(t.i,t.x,t.y),n=new S(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function M(t,e,r,n){var i=new S(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function A(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&amp;&amp;(t.prevZ.nextZ=t.nextZ),t.nextZ&amp;&amp;(t.nextZ.prevZ=t.prevZ)}function S(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function E(t,e,r,n){for(var i=0,a=e,o=r-n;a&lt;r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}e.exports=n,e.exports.default=n,n.deviation=function(t,e,r,n){var i=e&amp;&amp;e.length,a=i?e[0]*r:t.length,o=Math.abs(E(t,0,a,r));if(i)for(var s=0,l=e.length;s&lt;l;s++){var c=e[s]*r,u=s&lt;l-1?e[s+1]*r:t.length;o-=Math.abs(E(t,c,u,r))}var f=0;for(s=0;s&lt;n.length;s+=3){var h=n[s]*r,p=n[s+1]*r,d=n[s+2]*r;f+=Math.abs((t[h]-t[d])*(t[p+1]-t[h+1])-(t[h]-t[p])*(t[d+1]-t[h+1]))}return 0===o&amp;&amp;0===f?0:Math.abs((f-o)/o)},n.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i&lt;t.length;i++){for(var a=0;a&lt;t[i].length;a++)for(var o=0;o&lt;e;o++)r.vertices.push(t[i][a][o]);i&gt;0&amp;&amp;(n+=t[i-1].length,r.holes.push(n))}return r}},{}],178:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.length;if(&quot;number&quot;!=typeof e){e=0;for(var i=0;i&lt;r;++i){var a=t[i];e=Math.max(e,a[0],a[1])}e=1+(0|e)}e|=0;var o=new Array(e);for(i=0;i&lt;e;++i)o[i]=[];for(i=0;i&lt;r;++i){a=t[i];o[a[0]].push(a[1]),o[a[1]].push(a[0])}for(var s=0;s&lt;e;++s)n(o[s],(function(t,e){return t-e}));return o};var n=t(&quot;uniq&quot;)},{uniq:597}],179:[function(t,e,r){var n=t(&quot;strongly-connected-components&quot;);e.exports=function(t,e){var r,i=[],a=[],o=[],s={},l=[];function c(t){var e,n,i=!1;for(a.push(t),o[t]=!0,e=0;e&lt;l[t].length;e++)(n=l[t][e])===r?(u(r,a),i=!0):o[n]||(i=c(n));if(i)!function t(e){o[e]=!1,s.hasOwnProperty(e)&amp;&amp;Object.keys(s[e]).forEach((function(r){delete s[e][r],o[r]&amp;&amp;t(r)}))}(t);else for(e=0;e&lt;l[t].length;e++){n=l[t][e];var f=s[n];f||(f={},s[n]=f),f[n]=!0}return a.pop(),i}function u(t,r){var n=[].concat(r).concat(t);e?e(c):i.push(n)}function f(e){!function(e){for(var r=0;r&lt;t.length;r++)r&lt;e&amp;&amp;(t[r]=[]),t[r]=t[r].filter((function(t){return t&gt;=e}))}(e);for(var r,i=n(t).components.filter((function(t){return t.length&gt;1})),a=1/0,o=0;o&lt;i.length;o++)for(var s=0;s&lt;i[o].length;s++)i[o][s]&lt;a&amp;&amp;(a=i[o][s],r=o);var l=i[r];return!!l&amp;&amp;{leastVertex:a,adjList:t.map((function(t,e){return-1===l.indexOf(e)?[]:t.filter((function(t){return-1!==l.indexOf(t)}))}))}}r=0;for(var h=t.length;r&lt;h;){var p=f(r);if(r=p.leastVertex,l=p.adjList){for(var d=0;d&lt;l.length;d++)for(var g=0;g&lt;l[d].length;g++){var m=l[d][g];o[+m]=!1,s[m]={}}c(r),r+=1}else r=h}return e?void 0:i}},{&quot;strongly-connected-components&quot;:569}],180:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../object/valid-value&quot;);e.exports=function(){return n(this).length=0,this}},{&quot;../../object/valid-value&quot;:211}],181:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Array.from:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:182,&quot;./shim&quot;:183}],182:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e,r=Array.from;return&quot;function&quot;==typeof r&amp;&amp;(e=r(t=[&quot;raz&quot;,&quot;dwa&quot;]),Boolean(e&amp;&amp;e!==t&amp;&amp;&quot;dwa&quot;===e[1]))}},{}],183:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es6-symbol&quot;).iterator,i=t(&quot;../../function/is-arguments&quot;),a=t(&quot;../../function/is-function&quot;),o=t(&quot;../../number/to-pos-integer&quot;),s=t(&quot;../../object/valid-callable&quot;),l=t(&quot;../../object/valid-value&quot;),c=t(&quot;../../object/is-value&quot;),u=t(&quot;../../string/is-string&quot;),f=Array.isArray,h=Function.prototype.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},d=Object.defineProperty;e.exports=function(t){var e,r,g,m,v,y,x,b,_,w,T=arguments[1],k=arguments[2];if(t=Object(l(t)),c(T)&amp;&amp;s(T),this&amp;&amp;this!==Array&amp;&amp;a(this))e=this;else{if(!T){if(i(t))return 1!==(v=t.length)?Array.apply(null,t):((m=new Array(1))[0]=t[0],m);if(f(t)){for(m=new Array(v=t.length),r=0;r&lt;v;++r)m[r]=t[r];return m}}m=[]}if(!f(t))if(void 0!==(_=t[n])){for(x=s(_).call(t),e&amp;&amp;(m=new e),b=x.next(),r=0;!b.done;)w=T?h.call(T,k,b.value,r):b.value,e?(p.value=w,d(m,r,p)):m[r]=w,b=x.next(),++r;v=r}else if(u(t)){for(v=t.length,e&amp;&amp;(m=new e),r=0,g=0;r&lt;v;++r)w=t[r],r+1&lt;v&amp;&amp;(y=w.charCodeAt(0))&gt;=55296&amp;&amp;y&lt;=56319&amp;&amp;(w+=t[++r]),w=T?h.call(T,k,w,g):w,e?(p.value=w,d(m,g,p)):m[g]=w,++g;v=g}if(void 0===v)for(v=o(t.length),e&amp;&amp;(m=new e(v)),r=0;r&lt;v;++r)w=T?h.call(T,k,t[r],r):t[r],e?(p.value=w,d(m,r,p)):m[r]=w;return e&amp;&amp;(p.value=null,m.length=v),m}},{&quot;../../function/is-arguments&quot;:184,&quot;../../function/is-function&quot;:185,&quot;../../number/to-pos-integer&quot;:191,&quot;../../object/is-value&quot;:200,&quot;../../object/valid-callable&quot;:209,&quot;../../object/valid-value&quot;:211,&quot;../../string/is-string&quot;:215,&quot;es6-symbol&quot;:225}],184:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=n.call(function(){return arguments}());e.exports=function(t){return n.call(t)===i}},{}],185:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);e.exports=function(t){return&quot;function&quot;==typeof t&amp;&amp;i(n.call(t))}},{}],186:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){}},{}],187:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Math.sign:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:188,&quot;./shim&quot;:189}],188:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t=Math.sign;return&quot;function&quot;==typeof t&amp;&amp;(1===t(10)&amp;&amp;-1===t(-20))}},{}],189:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t=Number(t),isNaN(t)||0===t?t:t&gt;0?1:-1}},{}],190:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../math/sign&quot;),i=Math.abs,a=Math.floor;e.exports=function(t){return isNaN(t)?0:0!==(t=Number(t))&amp;&amp;isFinite(t)?n(t)*a(i(t)):t}},{&quot;../math/sign&quot;:187}],191:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./to-integer&quot;),i=Math.max;e.exports=function(t){return i(0,n(t))}},{&quot;./to-integer&quot;:190}],192:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./valid-callable&quot;),i=t(&quot;./valid-value&quot;),a=Function.prototype.bind,o=Function.prototype.call,s=Object.keys,l=Object.prototype.propertyIsEnumerable;e.exports=function(t,e){return function(r,c){var u,f=arguments[2],h=arguments[3];return r=Object(i(r)),n(c),u=s(r),h&amp;&amp;u.sort(&quot;function&quot;==typeof h?a.call(h,r):void 0),&quot;function&quot;!=typeof t&amp;&amp;(t=u[t]),o.call(t,u,(function(t,n){return l.call(r,t)?o.call(c,f,r[t],t,r,n):e}))}}},{&quot;./valid-callable&quot;:209,&quot;./valid-value&quot;:211}],193:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.assign:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:194,&quot;./shim&quot;:195}],194:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e=Object.assign;return&quot;function&quot;==typeof e&amp;&amp;(e(t={foo:&quot;raz&quot;},{bar:&quot;dwa&quot;},{trzy:&quot;trzy&quot;}),t.foo+t.bar+t.trzy===&quot;razdwatrzy&quot;)}},{}],195:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../keys&quot;),i=t(&quot;../valid-value&quot;),a=Math.max;e.exports=function(t,e){var r,o,s,l=a(arguments.length,2);for(t=Object(i(t)),s=function(n){try{t[n]=e[n]}catch(t){r||(r=t)}},o=1;o&lt;l;++o)n(e=arguments[o]).forEach(s);if(void 0!==r)throw r;return t}},{&quot;../keys&quot;:201,&quot;../valid-value&quot;:211}],196:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../array/from&quot;),i=t(&quot;./assign&quot;),a=t(&quot;./valid-value&quot;);e.exports=function(t){var e=Object(a(t)),r=arguments[1],o=Object(arguments[2]);if(e!==t&amp;&amp;!r)return e;var s={};return r?n(r,(function(e){(o.ensure||e in t)&amp;&amp;(s[e]=t[e])})):i(s,t),s}},{&quot;../array/from&quot;:181,&quot;./assign&quot;:193,&quot;./valid-value&quot;:211}],197:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o,s=Object.create;t(&quot;./set-prototype-of/is-implemented&quot;)()||(n=t(&quot;./set-prototype-of/shim&quot;)),e.exports=n?1!==n.level?s:(i={},a={},o={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach((function(t){a[t]=&quot;__proto__&quot;!==t?o:{configurable:!0,enumerable:!1,writable:!0,value:void 0}})),Object.defineProperties(i,a),Object.defineProperty(n,&quot;nullPolyfill&quot;,{configurable:!1,enumerable:!1,writable:!1,value:i}),function(t,e){return s(null===t?i:t,e)}):s},{&quot;./set-prototype-of/is-implemented&quot;:207,&quot;./set-prototype-of/shim&quot;:208}],198:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./_iterate&quot;)(&quot;forEach&quot;)},{&quot;./_iterate&quot;:192}],199:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;),i={function:!0,object:!0};e.exports=function(t){return n(t)&amp;&amp;i[typeof t]||!1}},{&quot;./is-value&quot;:200}],200:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../function/noop&quot;)();e.exports=function(t){return t!==n&amp;&amp;null!==t}},{&quot;../function/noop&quot;:186}],201:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.keys:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:202,&quot;./shim&quot;:203}],202:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){try{return Object.keys(&quot;primitive&quot;),!0}catch(t){return!1}}},{}],203:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../is-value&quot;),i=Object.keys;e.exports=function(t){return i(n(t)?Object(t):t)}},{&quot;../is-value&quot;:200}],204:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./valid-callable&quot;),i=t(&quot;./for-each&quot;),a=Function.prototype.call;e.exports=function(t,e){var r={},o=arguments[2];return n(e),i(t,(function(t,n,i,s){r[n]=a.call(e,o,t,n,i,s)})),r}},{&quot;./for-each&quot;:198,&quot;./valid-callable&quot;:209}],205:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;),i=Array.prototype.forEach,a=Object.create,o=function(t,e){var r;for(r in t)e[r]=t[r]};e.exports=function(t){var e=a(null);return i.call(arguments,(function(t){n(t)&amp;&amp;o(Object(t),e)})),e}},{&quot;./is-value&quot;:200}],206:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.setPrototypeOf:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:207,&quot;./shim&quot;:208}],207:[function(t,e,r){&quot;use strict&quot;;var n=Object.create,i=Object.getPrototypeOf,a={};e.exports=function(){var t=Object.setPrototypeOf,e=arguments[0]||n;return&quot;function&quot;==typeof t&amp;&amp;i(t(e(null),a))===a}},{}],208:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;../is-object&quot;),a=t(&quot;../valid-value&quot;),o=Object.prototype.isPrototypeOf,s=Object.defineProperty,l={configurable:!0,enumerable:!1,writable:!0,value:void 0};n=function(t,e){if(a(t),null===e||i(e))return t;throw new TypeError(&quot;Prototype must be null or an object&quot;)},e.exports=function(t){var e,r;return t?(2===t.level?t.set?(r=t.set,e=function(t,e){return r.call(n(t,e),e),t}):e=function(t,e){return n(t,e).__proto__=e,t}:e=function t(e,r){var i;return n(e,r),(i=o.call(t.nullPolyfill,e))&amp;&amp;delete t.nullPolyfill.__proto__,null===r&amp;&amp;(r=t.nullPolyfill),e.__proto__=r,i&amp;&amp;s(t.nullPolyfill,&quot;__proto__&quot;,l),e},Object.defineProperty(e,&quot;level&quot;,{configurable:!1,enumerable:!1,writable:!1,value:t.level})):null}(function(){var t,e=Object.create(null),r={},n=Object.getOwnPropertyDescriptor(Object.prototype,&quot;__proto__&quot;);if(n){try{(t=n.set).call(e,r)}catch(t){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:((e={}).__proto__=r,Object.getPrototypeOf(e)===r&amp;&amp;{level:1})}()),t(&quot;../create&quot;)},{&quot;../create&quot;:197,&quot;../is-object&quot;:199,&quot;../valid-value&quot;:211}],209:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){if(&quot;function&quot;!=typeof t)throw new TypeError(t+&quot; is not a function&quot;);return t}},{}],210:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-object&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not an Object&quot;);return t}},{&quot;./is-object&quot;:199}],211:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;);e.exports=function(t){if(!n(t))throw new TypeError(&quot;Cannot use null or undefined&quot;);return t}},{&quot;./is-value&quot;:200}],212:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?String.prototype.contains:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:213,&quot;./shim&quot;:214}],213:[function(t,e,r){&quot;use strict&quot;;var n=&quot;razdwatrzy&quot;;e.exports=function(){return&quot;function&quot;==typeof n.contains&amp;&amp;(!0===n.contains(&quot;dwa&quot;)&amp;&amp;!1===n.contains(&quot;foo&quot;))}},{}],214:[function(t,e,r){&quot;use strict&quot;;var n=String.prototype.indexOf;e.exports=function(t){return n.call(this,t,arguments[1])&gt;-1}},{}],215:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=n.call(&quot;&quot;);e.exports=function(t){return&quot;string&quot;==typeof t||t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;(t instanceof String||n.call(t)===i)||!1}},{}],216:[function(t,e,r){&quot;use strict&quot;;var n=Object.create(null),i=Math.random;e.exports=function(){var t;do{t=i().toString(36).slice(2)}while(n[t]);return t}},{}],217:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/set-prototype-of&quot;),a=t(&quot;es5-ext/string/#/contains&quot;),o=t(&quot;d&quot;),s=t(&quot;es6-symbol&quot;),l=t(&quot;./&quot;),c=Object.defineProperty;n=e.exports=function(t,e){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);l.call(this,t),e=e?a.call(e,&quot;key+value&quot;)?&quot;key+value&quot;:a.call(e,&quot;key&quot;)?&quot;key&quot;:&quot;value&quot;:&quot;value&quot;,c(this,&quot;__kind__&quot;,o(&quot;&quot;,e))},i&amp;&amp;i(n,l),delete n.prototype.constructor,n.prototype=Object.create(l.prototype,{_resolve:o((function(t){return&quot;value&quot;===this.__kind__?this.__list__[t]:&quot;key+value&quot;===this.__kind__?[t,this.__list__[t]]:t}))}),c(n.prototype,s.toStringTag,o(&quot;c&quot;,&quot;Array Iterator&quot;))},{&quot;./&quot;:220,d:155,&quot;es5-ext/object/set-prototype-of&quot;:206,&quot;es5-ext/string/#/contains&quot;:212,&quot;es6-symbol&quot;:225}],218:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/object/valid-callable&quot;),a=t(&quot;es5-ext/string/is-string&quot;),o=t(&quot;./get&quot;),s=Array.isArray,l=Function.prototype.call,c=Array.prototype.some;e.exports=function(t,e){var r,u,f,h,p,d,g,m,v=arguments[2];if(s(t)||n(t)?r=&quot;array&quot;:a(t)?r=&quot;string&quot;:t=o(t),i(e),f=function(){h=!0},&quot;array&quot;!==r)if(&quot;string&quot;!==r)for(u=t.next();!u.done;){if(l.call(e,v,u.value,f),h)return;u=t.next()}else for(d=t.length,p=0;p&lt;d&amp;&amp;(g=t[p],p+1&lt;d&amp;&amp;(m=g.charCodeAt(0))&gt;=55296&amp;&amp;m&lt;=56319&amp;&amp;(g+=t[++p]),l.call(e,v,g,f),!h);++p);else c.call(t,(function(t){return l.call(e,v,t,f),h}))}},{&quot;./get&quot;:219,&quot;es5-ext/function/is-arguments&quot;:184,&quot;es5-ext/object/valid-callable&quot;:209,&quot;es5-ext/string/is-string&quot;:215}],219:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/string/is-string&quot;),a=t(&quot;./array&quot;),o=t(&quot;./string&quot;),s=t(&quot;./valid-iterable&quot;),l=t(&quot;es6-symbol&quot;).iterator;e.exports=function(t){return&quot;function&quot;==typeof s(t)[l]?t[l]():n(t)?new a(t):i(t)?new o(t):new a(t)}},{&quot;./array&quot;:217,&quot;./string&quot;:222,&quot;./valid-iterable&quot;:223,&quot;es5-ext/function/is-arguments&quot;:184,&quot;es5-ext/string/is-string&quot;:215,&quot;es6-symbol&quot;:225}],220:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/array/#/clear&quot;),a=t(&quot;es5-ext/object/assign&quot;),o=t(&quot;es5-ext/object/valid-callable&quot;),s=t(&quot;es5-ext/object/valid-value&quot;),l=t(&quot;d&quot;),c=t(&quot;d/auto-bind&quot;),u=t(&quot;es6-symbol&quot;),f=Object.defineProperty,h=Object.defineProperties;e.exports=n=function(t,e){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);h(this,{__list__:l(&quot;w&quot;,s(t)),__context__:l(&quot;w&quot;,e),__nextIndex__:l(&quot;w&quot;,0)}),e&amp;&amp;(o(e.on),e.on(&quot;_add&quot;,this._onAdd),e.on(&quot;_delete&quot;,this._onDelete),e.on(&quot;_clear&quot;,this._onClear))},delete n.prototype.constructor,h(n.prototype,a({_next:l((function(){var t;if(this.__list__)return this.__redo__&amp;&amp;void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__&lt;this.__list__.length?this.__nextIndex__++:void this._unBind()})),next:l((function(){return this._createResult(this._next())})),_createResult:l((function(t){return void 0===t?{done:!0,value:void 0}:{done:!1,value:this._resolve(t)}})),_resolve:l((function(t){return this.__list__[t]})),_unBind:l((function(){this.__list__=null,delete this.__redo__,this.__context__&amp;&amp;(this.__context__.off(&quot;_add&quot;,this._onAdd),this.__context__.off(&quot;_delete&quot;,this._onDelete),this.__context__.off(&quot;_clear&quot;,this._onClear),this.__context__=null)})),toString:l((function(){return&quot;[object &quot;+(this[u.toStringTag]||&quot;Object&quot;)+&quot;]&quot;}))},c({_onAdd:l((function(t){t&gt;=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach((function(e,r){e&gt;=t&amp;&amp;(this.__redo__[r]=++e)}),this),this.__redo__.push(t)):f(this,&quot;__redo__&quot;,l(&quot;c&quot;,[t])))})),_onDelete:l((function(t){var e;t&gt;=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&amp;&amp;(-1!==(e=this.__redo__.indexOf(t))&amp;&amp;this.__redo__.splice(e,1),this.__redo__.forEach((function(e,r){e&gt;t&amp;&amp;(this.__redo__[r]=--e)}),this)))})),_onClear:l((function(){this.__redo__&amp;&amp;i.call(this.__redo__),this.__nextIndex__=0}))}))),f(n.prototype,u.iterator,l((function(){return this})))},{d:155,&quot;d/auto-bind&quot;:154,&quot;es5-ext/array/#/clear&quot;:180,&quot;es5-ext/object/assign&quot;:193,&quot;es5-ext/object/valid-callable&quot;:209,&quot;es5-ext/object/valid-value&quot;:211,&quot;es6-symbol&quot;:225}],221:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/object/is-value&quot;),a=t(&quot;es5-ext/string/is-string&quot;),o=t(&quot;es6-symbol&quot;).iterator,s=Array.isArray;e.exports=function(t){return!!i(t)&amp;&amp;(!!s(t)||(!!a(t)||(!!n(t)||&quot;function&quot;==typeof t[o])))}},{&quot;es5-ext/function/is-arguments&quot;:184,&quot;es5-ext/object/is-value&quot;:200,&quot;es5-ext/string/is-string&quot;:215,&quot;es6-symbol&quot;:225}],222:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/set-prototype-of&quot;),a=t(&quot;d&quot;),o=t(&quot;es6-symbol&quot;),s=t(&quot;./&quot;),l=Object.defineProperty;n=e.exports=function(t){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);t=String(t),s.call(this,t),l(this,&quot;__length__&quot;,a(&quot;&quot;,t.length))},i&amp;&amp;i(n,s),delete n.prototype.constructor,n.prototype=Object.create(s.prototype,{_next:a((function(){if(this.__list__)return this.__nextIndex__&lt;this.__length__?this.__nextIndex__++:void this._unBind()})),_resolve:a((function(t){var e,r=this.__list__[t];return this.__nextIndex__===this.__length__?r:(e=r.charCodeAt(0))&gt;=55296&amp;&amp;e&lt;=56319?r+this.__list__[this.__nextIndex__++]:r}))}),l(n.prototype,o.toStringTag,a(&quot;c&quot;,&quot;String Iterator&quot;))},{&quot;./&quot;:220,d:155,&quot;es5-ext/object/set-prototype-of&quot;:206,&quot;es6-symbol&quot;:225}],223:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-iterable&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not iterable&quot;);return t}},{&quot;./is-iterable&quot;:221}],224:[function(t,e,r){(function(n,i){(function(){
/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
 * @version   v4.2.8+1e68dce6
 */
!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?e.exports=n():t.ES6Promise=n()}(this,(function(){&quot;use strict&quot;;function e(t){return&quot;function&quot;==typeof t}var r=Array.isArray?Array.isArray:function(t){return&quot;[object Array]&quot;===Object.prototype.toString.call(t)},a=0,o=void 0,s=void 0,l=function(t,e){g[a]=t,g[a+1]=e,2===(a+=2)&amp;&amp;(s?s(m):_())};var c=&quot;undefined&quot;!=typeof window?window:void 0,u=c||{},f=u.MutationObserver||u.WebKitMutationObserver,h=&quot;undefined&quot;==typeof self&amp;&amp;&quot;undefined&quot;!=typeof n&amp;&amp;&quot;[object process]&quot;==={}.toString.call(n),p=&quot;undefined&quot;!=typeof Uint8ClampedArray&amp;&amp;&quot;undefined&quot;!=typeof importScripts&amp;&amp;&quot;undefined&quot;!=typeof MessageChannel;function d(){var t=setTimeout;return function(){return t(m,1)}}var g=new Array(1e3);function m(){for(var t=0;t&lt;a;t+=2){(0,g[t])(g[t+1]),g[t]=void 0,g[t+1]=void 0}a=0}var v,y,x,b,_=void 0;function w(t,e){var r=this,n=new this.constructor(M);void 0===n[k]&amp;&amp;D(n);var i=r._state;if(i){var a=arguments[i-1];l((function(){return z(i,n,a,r._result)}))}else I(r,n,t,e);return n}function T(t){if(t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;t.constructor===this)return t;var e=new this(M);return S(e,t),e}h?_=function(){return n.nextTick(m)}:f?(y=0,x=new f(m),b=document.createTextNode(&quot;&quot;),x.observe(b,{characterData:!0}),_=function(){b.data=y=++y%2}):p?((v=new MessageChannel).port1.onmessage=m,_=function(){return v.port2.postMessage(0)}):_=void 0===c&amp;&amp;&quot;function&quot;==typeof t?function(){try{var t=Function(&quot;return this&quot;)().require(&quot;vertx&quot;);return&quot;undefined&quot;!=typeof(o=t.runOnLoop||t.runOnContext)?function(){o(m)}:d()}catch(t){return d()}}():d();var k=Math.random().toString(36).substring(2);function M(){}function A(t,r,n){r.constructor===t.constructor&amp;&amp;n===w&amp;&amp;r.constructor.resolve===T?function(t,e){1===e._state?C(t,e._result):2===e._state?L(t,e._result):I(e,void 0,(function(e){return S(t,e)}),(function(e){return L(t,e)}))}(t,r):void 0===n?C(t,r):e(n)?function(t,e,r){l((function(t){var n=!1,i=function(t,e,r,n){try{t.call(e,r,n)}catch(t){return t}}(r,e,(function(r){n||(n=!0,e!==r?S(t,r):C(t,r))}),(function(e){n||(n=!0,L(t,e))}),t._label);!n&amp;&amp;i&amp;&amp;(n=!0,L(t,i))}),t)}(t,r,n):C(t,r)}function S(t,e){if(t===e)L(t,new TypeError(&quot;You cannot resolve a promise with itself&quot;));else if(i=typeof(n=e),null===n||&quot;object&quot;!==i&amp;&amp;&quot;function&quot;!==i)C(t,e);else{var r=void 0;try{r=e.then}catch(e){return void L(t,e)}A(t,e,r)}var n,i}function E(t){t._onerror&amp;&amp;t._onerror(t._result),P(t)}function C(t,e){void 0===t._state&amp;&amp;(t._result=e,t._state=1,0!==t._subscribers.length&amp;&amp;l(P,t))}function L(t,e){void 0===t._state&amp;&amp;(t._state=2,t._result=e,l(E,t))}function I(t,e,r,n){var i=t._subscribers,a=i.length;t._onerror=null,i[a]=e,i[a+1]=r,i[a+2]=n,0===a&amp;&amp;t._state&amp;&amp;l(P,t)}function P(t){var e=t._subscribers,r=t._state;if(0!==e.length){for(var n=void 0,i=void 0,a=t._result,o=0;o&lt;e.length;o+=3)n=e[o],i=e[o+r],n?z(r,n,i,a):i(a);t._subscribers.length=0}}function z(t,r,n,i){var a=e(n),o=void 0,s=void 0,l=!0;if(a){try{o=n(i)}catch(t){l=!1,s=t}if(r===o)return void L(r,new TypeError(&quot;A promises callback cannot return that same promise.&quot;))}else o=i;void 0!==r._state||(a&amp;&amp;l?S(r,o):!1===l?L(r,s):1===t?C(r,o):2===t&amp;&amp;L(r,o))}var O=0;function D(t){t[k]=O++,t._state=void 0,t._result=void 0,t._subscribers=[]}var R=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(M),this.promise[k]||D(this.promise),r(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?C(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&amp;&amp;C(this.promise,this._result))):L(this.promise,new Error(&quot;Array Methods must be provided an Array&quot;))}return t.prototype._enumerate=function(t){for(var e=0;void 0===this._state&amp;&amp;e&lt;t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,n=r.resolve;if(n===T){var i=void 0,a=void 0,o=!1;try{i=t.then}catch(t){o=!0,a=t}if(i===w&amp;&amp;void 0!==t._state)this._settledAt(t._state,e,t._result);else if(&quot;function&quot;!=typeof i)this._remaining--,this._result[e]=t;else if(r===F){var s=new r(M);o?L(s,a):A(s,t,i),this._willSettleAt(s,e)}else this._willSettleAt(new r((function(e){return e(t)})),e)}else this._willSettleAt(n(t),e)},t.prototype._settledAt=function(t,e,r){var n=this.promise;void 0===n._state&amp;&amp;(this._remaining--,2===t?L(n,r):this._result[e]=r),0===this._remaining&amp;&amp;C(n,this._result)},t.prototype._willSettleAt=function(t,e){var r=this;I(t,void 0,(function(t){return r._settledAt(1,e,t)}),(function(t){return r._settledAt(2,e,t)}))},t}();var F=function(){function t(e){this[k]=O++,this._result=this._state=void 0,this._subscribers=[],M!==e&amp;&amp;(&quot;function&quot;!=typeof e&amp;&amp;function(){throw new TypeError(&quot;You must pass a resolver function as the first argument to the promise constructor&quot;)}(),this instanceof t?function(t,e){try{e((function(e){S(t,e)}),(function(e){L(t,e)}))}catch(e){L(t,e)}}(this,e):function(){throw new TypeError(&quot;Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.&quot;)}())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var r=this.constructor;return e(t)?this.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){throw e}))})):this.then(t,t)},t}();return F.prototype.then=w,F.all=function(t){return new R(this,t).promise},F.race=function(t){var e=this;return r(t)?new e((function(r,n){for(var i=t.length,a=0;a&lt;i;a++)e.resolve(t[a]).then(r,n)})):new e((function(t,e){return e(new TypeError(&quot;You must pass an array to race.&quot;))}))},F.resolve=T,F.reject=function(t){var e=new this(M);return L(e,t),e},F._setScheduler=function(t){s=t},F._setAsap=function(t){l=t},F._asap=l,F.polyfill=function(){var t=void 0;if(&quot;undefined&quot;!=typeof i)t=i;else if(&quot;undefined&quot;!=typeof self)t=self;else try{t=Function(&quot;return this&quot;)()}catch(t){throw new Error(&quot;polyfill failed because global object is unavailable in this environment&quot;)}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if(&quot;[object Promise]&quot;===r&amp;&amp;!e.cast)return}t.Promise=F},F.Promise=F,F}))}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{_process:526}],225:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?t(&quot;ext/global-this&quot;).Symbol:t(&quot;./polyfill&quot;)},{&quot;./is-implemented&quot;:226,&quot;./polyfill&quot;:231,&quot;ext/global-this&quot;:238}],226:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ext/global-this&quot;),i={object:!0,symbol:!0};e.exports=function(){var t,e=n.Symbol;if(&quot;function&quot;!=typeof e)return!1;t=e(&quot;test symbol&quot;);try{String(t)}catch(t){return!1}return!!i[typeof e.iterator]&amp;&amp;(!!i[typeof e.toPrimitive]&amp;&amp;!!i[typeof e.toStringTag])}},{&quot;ext/global-this&quot;:238}],227:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return!!t&amp;&amp;(&quot;symbol&quot;==typeof t||!!t.constructor&amp;&amp;(&quot;Symbol&quot;===t.constructor.name&amp;&amp;&quot;Symbol&quot;===t[t.constructor.toStringTag]))}},{}],228:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=Object.create,a=Object.defineProperty,o=Object.prototype,s=i(null);e.exports=function(t){for(var e,r,i=0;s[t+(i||&quot;&quot;)];)++i;return s[t+=i||&quot;&quot;]=!0,a(o,e=&quot;@@&quot;+t,n.gs(null,(function(t){r||(r=!0,a(this,e,n(t)),r=!1)}))),e}},{d:155}],229:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=t(&quot;ext/global-this&quot;).Symbol;e.exports=function(t){return Object.defineProperties(t,{hasInstance:n(&quot;&quot;,i&amp;&amp;i.hasInstance||t(&quot;hasInstance&quot;)),isConcatSpreadable:n(&quot;&quot;,i&amp;&amp;i.isConcatSpreadable||t(&quot;isConcatSpreadable&quot;)),iterator:n(&quot;&quot;,i&amp;&amp;i.iterator||t(&quot;iterator&quot;)),match:n(&quot;&quot;,i&amp;&amp;i.match||t(&quot;match&quot;)),replace:n(&quot;&quot;,i&amp;&amp;i.replace||t(&quot;replace&quot;)),search:n(&quot;&quot;,i&amp;&amp;i.search||t(&quot;search&quot;)),species:n(&quot;&quot;,i&amp;&amp;i.species||t(&quot;species&quot;)),split:n(&quot;&quot;,i&amp;&amp;i.split||t(&quot;split&quot;)),toPrimitive:n(&quot;&quot;,i&amp;&amp;i.toPrimitive||t(&quot;toPrimitive&quot;)),toStringTag:n(&quot;&quot;,i&amp;&amp;i.toStringTag||t(&quot;toStringTag&quot;)),unscopables:n(&quot;&quot;,i&amp;&amp;i.unscopables||t(&quot;unscopables&quot;))})}},{d:155,&quot;ext/global-this&quot;:238}],230:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=t(&quot;../../../validate-symbol&quot;),a=Object.create(null);e.exports=function(t){return Object.defineProperties(t,{for:n((function(e){return a[e]?a[e]:a[e]=t(String(e))})),keyFor:n((function(t){var e;for(e in i(t),a)if(a[e]===t)return e}))})}},{&quot;../../../validate-symbol&quot;:232,d:155}],231:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o=t(&quot;d&quot;),s=t(&quot;./validate-symbol&quot;),l=t(&quot;ext/global-this&quot;).Symbol,c=t(&quot;./lib/private/generate-name&quot;),u=t(&quot;./lib/private/setup/standard-symbols&quot;),f=t(&quot;./lib/private/setup/symbol-registry&quot;),h=Object.create,p=Object.defineProperties,d=Object.defineProperty;if(&quot;function&quot;==typeof l)try{String(l()),a=!0}catch(t){}else l=null;i=function(t){if(this instanceof i)throw new TypeError(&quot;Symbol is not a constructor&quot;);return n(t)},e.exports=n=function t(e){var r;if(this instanceof t)throw new TypeError(&quot;Symbol is not a constructor&quot;);return a?l(e):(r=h(i.prototype),e=void 0===e?&quot;&quot;:String(e),p(r,{__description__:o(&quot;&quot;,e),__name__:o(&quot;&quot;,c(e))}))},u(n),f(n),p(i.prototype,{constructor:o(n),toString:o(&quot;&quot;,(function(){return this.__name__}))}),p(n.prototype,{toString:o((function(){return&quot;Symbol (&quot;+s(this).__description__+&quot;)&quot;})),valueOf:o((function(){return s(this)}))}),d(n.prototype,n.toPrimitive,o(&quot;&quot;,(function(){var t=s(this);return&quot;symbol&quot;==typeof t?t:t.toString()}))),d(n.prototype,n.toStringTag,o(&quot;c&quot;,&quot;Symbol&quot;)),d(i.prototype,n.toStringTag,o(&quot;c&quot;,n.prototype[n.toStringTag])),d(i.prototype,n.toPrimitive,o(&quot;c&quot;,n.prototype[n.toPrimitive]))},{&quot;./lib/private/generate-name&quot;:228,&quot;./lib/private/setup/standard-symbols&quot;:229,&quot;./lib/private/setup/symbol-registry&quot;:230,&quot;./validate-symbol&quot;:232,d:155,&quot;ext/global-this&quot;:238}],232:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-symbol&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not a symbol&quot;);return t}},{&quot;./is-symbol&quot;:227}],233:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?WeakMap:t(&quot;./polyfill&quot;)},{&quot;./is-implemented&quot;:234,&quot;./polyfill&quot;:236}],234:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e;if(&quot;function&quot;!=typeof WeakMap)return!1;try{t=new WeakMap([[e={},&quot;one&quot;],[{},&quot;two&quot;],[{},&quot;three&quot;]])}catch(t){return!1}return&quot;[object WeakMap]&quot;===String(t)&amp;&amp;(&quot;function&quot;==typeof t.set&amp;&amp;(t.set({},1)===t&amp;&amp;(&quot;function&quot;==typeof t.delete&amp;&amp;(&quot;function&quot;==typeof t.has&amp;&amp;&quot;one&quot;===t.get(e)))))}},{}],235:[function(t,e,r){&quot;use strict&quot;;e.exports=&quot;function&quot;==typeof WeakMap&amp;&amp;&quot;[object WeakMap]&quot;===Object.prototype.toString.call(new WeakMap)},{}],236:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/is-value&quot;),a=t(&quot;es5-ext/object/set-prototype-of&quot;),o=t(&quot;es5-ext/object/valid-object&quot;),s=t(&quot;es5-ext/object/valid-value&quot;),l=t(&quot;es5-ext/string/random-uniq&quot;),c=t(&quot;d&quot;),u=t(&quot;es6-iterator/get&quot;),f=t(&quot;es6-iterator/for-of&quot;),h=t(&quot;es6-symbol&quot;).toStringTag,p=t(&quot;./is-native-implemented&quot;),d=Array.isArray,g=Object.defineProperty,m=Object.prototype.hasOwnProperty,v=Object.getPrototypeOf;e.exports=n=function(){var t,e=arguments[0];if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);return t=p&amp;&amp;a&amp;&amp;WeakMap!==n?a(new WeakMap,v(this)):this,i(e)&amp;&amp;(d(e)||(e=u(e))),g(t,&quot;__weakMapData__&quot;,c(&quot;c&quot;,&quot;$weakMap$&quot;+l())),e?(f(e,(function(e){s(e),t.set(e[0],e[1])})),t):t},p&amp;&amp;(a&amp;&amp;a(n,WeakMap),n.prototype=Object.create(WeakMap.prototype,{constructor:c(n)})),Object.defineProperties(n.prototype,{delete:c((function(t){return!!m.call(o(t),this.__weakMapData__)&amp;&amp;(delete t[this.__weakMapData__],!0)})),get:c((function(t){if(m.call(o(t),this.__weakMapData__))return t[this.__weakMapData__]})),has:c((function(t){return m.call(o(t),this.__weakMapData__)})),set:c((function(t,e){return g(o(t),this.__weakMapData__,c(&quot;c&quot;,e)),this})),toString:c((function(){return&quot;[object WeakMap]&quot;}))}),g(n.prototype,h,c(&quot;c&quot;,&quot;WeakMap&quot;))},{&quot;./is-native-implemented&quot;:235,d:155,&quot;es5-ext/object/is-value&quot;:200,&quot;es5-ext/object/set-prototype-of&quot;:206,&quot;es5-ext/object/valid-object&quot;:210,&quot;es5-ext/object/valid-value&quot;:211,&quot;es5-ext/string/random-uniq&quot;:216,&quot;es6-iterator/for-of&quot;:218,&quot;es6-iterator/get&quot;:219,&quot;es6-symbol&quot;:225}],237:[function(t,e,r){var n=function(){if(&quot;object&quot;==typeof self&amp;&amp;self)return self;if(&quot;object&quot;==typeof window&amp;&amp;window)return window;throw new Error(&quot;Unable to resolve global `this`&quot;)};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,&quot;__global__&quot;,{get:function(){return this},configurable:!0})}catch(t){return n()}try{return __global__||n()}finally{delete Object.prototype.__global__}}()},{}],238:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?globalThis:t(&quot;./implementation&quot;)},{&quot;./implementation&quot;:237,&quot;./is-implemented&quot;:239}],239:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){return&quot;object&quot;==typeof globalThis&amp;&amp;(!!globalThis&amp;&amp;globalThis.Array===Array)}},{}],240:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n=e||0,i=r||1;return[[t[12]+t[0],t[13]+t[1],t[14]+t[2],t[15]+t[3]],[t[12]-t[0],t[13]-t[1],t[14]-t[2],t[15]-t[3]],[t[12]+t[4],t[13]+t[5],t[14]+t[6],t[15]+t[7]],[t[12]-t[4],t[13]-t[5],t[14]-t[6],t[15]-t[7]],[n*t[12]+t[8],n*t[13]+t[9],n*t[14]+t[10],n*t[15]+t[11]],[i*t[12]-t[8],i*t[13]-t[9],i*t[14]-t[10],i*t[15]-t[11]]]}},{}],241:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-string-blank&quot;);e.exports=function(t){var e=typeof t;if(&quot;string&quot;===e){var r=t;if(0===(t=+t)&amp;&amp;n(r))return!1}else if(&quot;number&quot;!==e)return!1;return t-t&lt;1}},{&quot;is-string-blank&quot;:470}],242:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){switch(arguments.length){case 0:return new o([0],[0],0);case 1:return&quot;number&quot;==typeof t?new o(n=l(t),n,0):new o(t,l(t.length),0);case 2:if(&quot;number&quot;==typeof e){var n=l(t.length);return new o(t,n,+e)}r=0;case 3:if(t.length!==e.length)throw new Error(&quot;state and velocity lengths must match&quot;);return new o(t,e,r)}};var n=t(&quot;cubic-hermite&quot;),i=t(&quot;binary-search-bounds&quot;);function a(t,e,r){return Math.min(e,Math.max(t,r))}function o(t,e,r){this.dimension=t.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var n=0;n&lt;this.dimension;++n)this.bounds[0][n]=-1/0,this.bounds[1][n]=1/0;this._state=t.slice().reverse(),this._velocity=e.slice().reverse(),this._time=[r],this._scratch=[t.slice(),t.slice(),t.slice(),t.slice(),t.slice()]}var s=o.prototype;function l(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=0;return e}s.flush=function(t){var e=i.gt(this._time,t)-1;e&lt;=0||(this._time.splice(0,e),this._state.splice(0,e*this.dimension),this._velocity.splice(0,e*this.dimension))},s.curve=function(t){var e=this._time,r=e.length,o=i.le(e,t),s=this._scratch[0],l=this._state,c=this._velocity,u=this.dimension,f=this.bounds;if(o&lt;0)for(var h=u-1,p=0;p&lt;u;++p,--h)s[p]=l[h];else if(o&gt;=r-1){h=l.length-1;var d=t-e[r-1];for(p=0;p&lt;u;++p,--h)s[p]=l[h]+d*c[h]}else{h=u*(o+1)-1;var g=e[o],m=e[o+1]-g||1,v=this._scratch[1],y=this._scratch[2],x=this._scratch[3],b=this._scratch[4],_=!0;for(p=0;p&lt;u;++p,--h)v[p]=l[h],x[p]=c[h]*m,y[p]=l[h+u],b[p]=c[h+u]*m,_=_&amp;&amp;v[p]===y[p]&amp;&amp;x[p]===b[p]&amp;&amp;0===x[p];if(_)for(p=0;p&lt;u;++p)s[p]=v[p];else n(v,x,y,b,(t-g)/m,s)}var w=f[0],T=f[1];for(p=0;p&lt;u;++p)s[p]=a(w[p],T[p],s[p]);return s},s.dcurve=function(t){var e=this._time,r=e.length,a=i.le(e,t),o=this._scratch[0],s=this._state,l=this._velocity,c=this.dimension;if(a&gt;=r-1)for(var u=s.length-1,f=(e[r-1],0);f&lt;c;++f,--u)o[f]=l[u];else{u=c*(a+1)-1;var h=e[a],p=e[a+1]-h||1,d=this._scratch[1],g=this._scratch[2],m=this._scratch[3],v=this._scratch[4],y=!0;for(f=0;f&lt;c;++f,--u)d[f]=s[u],m[f]=l[u]*p,g[f]=s[u+c],v[f]=l[u+c]*p,y=y&amp;&amp;d[f]===g[f]&amp;&amp;m[f]===v[f]&amp;&amp;0===m[f];if(y)for(f=0;f&lt;c;++f)o[f]=0;else{n.derivative(d,m,g,v,(t-h)/p,o);for(f=0;f&lt;c;++f)o[f]/=p}}return o},s.lastT=function(){var t=this._time;return t[t.length-1]},s.stable=function(){for(var t=this._velocity,e=t.length,r=this.dimension-1;r&gt;=0;--r)if(t[--e])return!1;return!0},s.jump=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1];this._time.push(e,t);for(var u=0;u&lt;2;++u)for(var f=0;f&lt;r;++f)n.push(n[o++]),i.push(0);this._time.push(t);for(f=r;f&gt;0;--f)n.push(a(l[f-1],c[f-1],arguments[f])),i.push(0)}},s.push=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=t-e,l=this.bounds,c=l[0],u=l[1],f=s&gt;1e-6?1/s:0;this._time.push(t);for(var h=r;h&gt;0;--h){var p=a(c[h-1],u[h-1],arguments[h]);n.push(p),i.push((p-n[o++])*f)}}},s.set=function(t){var e=this.dimension;if(!(t&lt;this.lastT()||arguments.length!==e+1)){var r=this._state,n=this._velocity,i=this.bounds,o=i[0],s=i[1];this._time.push(t);for(var l=e;l&gt;0;--l)r.push(a(o[l-1],s[l-1],arguments[l])),n.push(0)}},s.move=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;=e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1],u=t-e,f=u&gt;1e-6?1/u:0;this._time.push(t);for(var h=r;h&gt;0;--h){var p=arguments[h];n.push(a(l[h-1],c[h-1],n[o++]+p)),i.push(p*f)}}},s.idle=function(t){var e=this.lastT();if(!(t&lt;e)){var r=this.dimension,n=this._state,i=this._velocity,o=n.length-r,s=this.bounds,l=s[0],c=s[1],u=t-e;this._time.push(t);for(var f=r-1;f&gt;=0;--f)n.push(a(l[f],c[f],n[o]+u*i[o])),i.push(0),o+=1}}},{&quot;binary-search-bounds&quot;:243,&quot;cubic-hermite&quot;:150}],243:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i,a){var o=[&quot;function &quot;,t,&quot;(a,l,h,&quot;,n.join(&quot;,&quot;),&quot;){&quot;,a?&quot;&quot;:&quot;var i=&quot;,r?&quot;l-1&quot;:&quot;h+1&quot;,&quot;;while(l&lt;=h){var m=(l+h)&gt;&gt;&gt;1,x=a&quot;,i?&quot;.get(m)&quot;:&quot;[m]&quot;];return a?e.indexOf(&quot;c&quot;)&lt;0?o.push(&quot;;if(x===y){return m}else if(x&lt;=y){&quot;):o.push(&quot;;var p=c(x,y);if(p===0){return m}else if(p&lt;=0){&quot;):o.push(&quot;;if(&quot;,e,&quot;){i=m;&quot;),r?o.push(&quot;l=m+1}else{h=m-1}&quot;):o.push(&quot;h=m-1}else{l=m+1}&quot;),o.push(&quot;}&quot;),a?o.push(&quot;return -1};&quot;):o.push(&quot;return i};&quot;),o.join(&quot;&quot;)}function i(t,e,r,i){return new Function([n(&quot;A&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],!1,i),n(&quot;B&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],!0,i),n(&quot;P&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],!1,i),n(&quot;Q&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],!0,i),&quot;function dispatchBsearch&quot;,r,&quot;(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch&quot;,r].join(&quot;&quot;))()}e.exports={ge:i(&quot;&gt;=&quot;,!1,&quot;GE&quot;),gt:i(&quot;&gt;&quot;,!1,&quot;GT&quot;),lt:i(&quot;&lt;&quot;,!0,&quot;LT&quot;),le:i(&quot;&lt;=&quot;,!0,&quot;LE&quot;),eq:i(&quot;-&quot;,!0,&quot;EQ&quot;,!0)}},{}],244:[function(t,e,r){var n=t(&quot;dtype&quot;);e.exports=function(t,e,r){if(!t)throw new TypeError(&quot;must specify data as first parameter&quot;);if(r=0|+(r||0),Array.isArray(t)&amp;&amp;t[0]&amp;&amp;&quot;number&quot;==typeof t[0][0]){var i,a,o,s,l=t[0].length,c=t.length*l;e&amp;&amp;&quot;string&quot;!=typeof e||(e=new(n(e||&quot;float32&quot;))(c+r));var u=e.length-r;if(c!==u)throw new Error(&quot;source length &quot;+c+&quot; (&quot;+l+&quot;x&quot;+t.length+&quot;) does not match destination length &quot;+u);for(i=0,o=r;i&lt;t.length;i++)for(a=0;a&lt;l;a++)e[o++]=null===t[i][a]?NaN:t[i][a]}else if(e&amp;&amp;&quot;string&quot;!=typeof e)e.set(t,r);else{var f=n(e||&quot;float32&quot;);if(Array.isArray(t)||&quot;array&quot;===e)for(e=new f(t.length+r),i=0,o=r,s=e.length;o&lt;s;o++,i++)e[o]=null===t[i]?NaN:t[i];else 0===r?e=new f(t):(e=new f(t.length+r)).set(t,r)}return e}},{dtype:175}],245:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font/stringify&quot;),i=[32,126];e.exports=function(t){var e=(t=t||{}).shape?t.shape:t.canvas?[t.canvas.width,t.canvas.height]:[512,512],r=t.canvas||document.createElement(&quot;canvas&quot;),a=t.font,o=&quot;number&quot;==typeof t.step?[t.step,t.step]:t.step||[32,32],s=t.chars||i;a&amp;&amp;&quot;string&quot;!=typeof a&amp;&amp;(a=n(a));if(Array.isArray(s)){if(2===s.length&amp;&amp;&quot;number&quot;==typeof s[0]&amp;&amp;&quot;number&quot;==typeof s[1]){for(var l=[],c=s[0],u=0;c&lt;=s[1];c++)l[u++]=String.fromCharCode(c);s=l}}else s=String(s).split(&quot;&quot;);e=e.slice(),r.width=e[0],r.height=e[1];var f=r.getContext(&quot;2d&quot;);f.fillStyle=&quot;#000&quot;,f.fillRect(0,0,r.width,r.height),f.font=a,f.textAlign=&quot;center&quot;,f.textBaseline=&quot;middle&quot;,f.fillStyle=&quot;#fff&quot;;var h=o[0]/2,p=o[1]/2;for(c=0;c&lt;s.length;c++)f.fillText(s[c],h,p),(h+=o[0])&gt;e[0]-o[0]/2&amp;&amp;(h=o[0]/2,p+=o[1]);return r}},{&quot;css-font/stringify&quot;:147}],246:[function(t,e,r){&quot;use strict&quot;;function n(t,e){e||(e={}),(&quot;string&quot;==typeof t||Array.isArray(t))&amp;&amp;(e.family=t);var r=Array.isArray(e.family)?e.family.join(&quot;, &quot;):e.family;if(!r)throw Error(&quot;`family` must be defined&quot;);var s=e.size||e.fontSize||e.em||48,l=e.weight||e.fontWeight||&quot;&quot;,c=(t=[e.style||e.fontStyle||&quot;&quot;,l,s].join(&quot; &quot;)+&quot;px &quot;+r,e.origin||&quot;top&quot;);if(n.cache[r]&amp;&amp;s&lt;=n.cache[r].em)return i(n.cache[r],c);var u=e.canvas||n.canvas,f=u.getContext(&quot;2d&quot;),h={upper:void 0!==e.upper?e.upper:&quot;H&quot;,lower:void 0!==e.lower?e.lower:&quot;x&quot;,descent:void 0!==e.descent?e.descent:&quot;p&quot;,ascent:void 0!==e.ascent?e.ascent:&quot;h&quot;,tittle:void 0!==e.tittle?e.tittle:&quot;i&quot;,overshoot:void 0!==e.overshoot?e.overshoot:&quot;O&quot;},p=Math.ceil(1.5*s);u.height=p,u.width=.5*p,f.font=t;var d={top:0};f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillStyle=&quot;black&quot;,f.fillText(&quot;H&quot;,0,0);var g=a(f.getImageData(0,0,p,p));f.clearRect(0,0,p,p),f.textBaseline=&quot;bottom&quot;,f.fillText(&quot;H&quot;,0,p);var m=a(f.getImageData(0,0,p,p));d.lineHeight=d.bottom=p-m+g,f.clearRect(0,0,p,p),f.textBaseline=&quot;alphabetic&quot;,f.fillText(&quot;H&quot;,0,p);var v=p-a(f.getImageData(0,0,p,p))-1+g;d.baseline=d.alphabetic=v,f.clearRect(0,0,p,p),f.textBaseline=&quot;middle&quot;,f.fillText(&quot;H&quot;,0,.5*p);var y=a(f.getImageData(0,0,p,p));d.median=d.middle=p-y-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=&quot;hanging&quot;,f.fillText(&quot;H&quot;,0,.5*p);var x=a(f.getImageData(0,0,p,p));d.hanging=p-x-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=&quot;ideographic&quot;,f.fillText(&quot;H&quot;,0,p);var b=a(f.getImageData(0,0,p,p));if(d.ideographic=p-b-1+g,h.upper&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.upper,0,0),d.upper=a(f.getImageData(0,0,p,p)),d.capHeight=d.baseline-d.upper),h.lower&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.lower,0,0),d.lower=a(f.getImageData(0,0,p,p)),d.xHeight=d.baseline-d.lower),h.tittle&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.tittle,0,0),d.tittle=a(f.getImageData(0,0,p,p))),h.ascent&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.ascent,0,0),d.ascent=a(f.getImageData(0,0,p,p))),h.descent&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.descent,0,0),d.descent=o(f.getImageData(0,0,p,p))),h.overshoot){f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.overshoot,0,0);var _=o(f.getImageData(0,0,p,p));d.overshoot=_-v}for(var w in d)d[w]/=s;return d.em=s,n.cache[r]=d,i(d,c)}function i(t,e){var r={};for(var n in&quot;string&quot;==typeof e&amp;&amp;(e=t[e]),t)&quot;em&quot;!==n&amp;&amp;(r[n]=t[n]-e);return r}function a(t){for(var e=t.height,r=t.data,n=3;n&lt;r.length;n+=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}function o(t){for(var e=t.height,r=t.data,n=r.length-1;n&gt;0;n-=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}e.exports=n,n.canvas=document.createElement(&quot;canvas&quot;),n.cache={}},{}],247:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return new s(t||g,null)};function n(t,e,r,n,i,a){this._color=t,this.key=e,this.value=r,this.left=n,this.right=i,this._count=a}function i(t){return new n(t._color,t.key,t.value,t.left,t.right,t._count)}function a(t,e){return new n(t,e.key,e.value,e.left,e.right,e._count)}function o(t){t._count=1+(t.left?t.left._count:0)+(t.right?t.right._count:0)}function s(t,e){this._compare=t,this.root=e}var l=s.prototype;function c(t,e){var r;if(e.left&amp;&amp;(r=c(t,e.left)))return r;return(r=t(e.key,e.value))||(e.right?c(t,e.right):void 0)}function u(t,e,r,n){if(e(t,n.key)&lt;=0){var i;if(n.left)if(i=u(t,e,r,n.left))return i;if(i=r(n.key,n.value))return i}if(n.right)return u(t,e,r,n.right)}function f(t,e,r,n,i){var a,o=r(t,i.key),s=r(e,i.key);if(o&lt;=0){if(i.left&amp;&amp;(a=f(t,e,r,n,i.left)))return a;if(s&gt;0&amp;&amp;(a=n(i.key,i.value)))return a}if(s&gt;0&amp;&amp;i.right)return f(t,e,r,n,i.right)}function h(t,e){this.tree=t,this._stack=e}Object.defineProperty(l,&quot;keys&quot;,{get:function(){var t=[];return this.forEach((function(e,r){t.push(e)})),t}}),Object.defineProperty(l,&quot;values&quot;,{get:function(){var t=[];return this.forEach((function(e,r){t.push(r)})),t}}),Object.defineProperty(l,&quot;length&quot;,{get:function(){return this.root?this.root._count:0}}),l.insert=function(t,e){for(var r=this._compare,i=this.root,l=[],c=[];i;){var u=r(t,i.key);l.push(i),c.push(u),i=u&lt;=0?i.left:i.right}l.push(new n(0,t,e,null,null,1));for(var f=l.length-2;f&gt;=0;--f){i=l[f];c[f]&lt;=0?l[f]=new n(i._color,i.key,i.value,l[f+1],i.right,i._count+1):l[f]=new n(i._color,i.key,i.value,i.left,l[f+1],i._count+1)}for(f=l.length-1;f&gt;1;--f){var h=l[f-1];i=l[f];if(1===h._color||1===i._color)break;var p=l[f-2];if(p.left===h)if(h.left===i){if(!(d=p.right)||0!==d._color){if(p._color=0,p.left=h.right,h._color=1,h.right=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f&gt;=3)(g=l[f-3]).left===p?g.left=h:g.right=h;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else{if(!(d=p.right)||0!==d._color){if(h.right=i.left,p._color=0,p.left=i.right,i._color=1,i.left=h,i.right=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f&gt;=3)(g=l[f-3]).left===p?g.left=i:g.right=i;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else if(h.right===i){if(!(d=p.left)||0!==d._color){if(p._color=0,p.right=h.left,h._color=1,h.left=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f&gt;=3)(g=l[f-3]).right===p?g.right=h:g.left=h;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}else{var d;if(!(d=p.left)||0!==d._color){var g;if(h.left=i.right,p._color=0,p.right=i.left,i._color=1,i.right=h,i.left=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f&gt;=3)(g=l[f-3]).right===p?g.right=i:g.left=i;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}}return l[0]._color=1,new s(r,l[0])},l.forEach=function(t,e,r){if(this.root)switch(arguments.length){case 1:return c(t,this.root);case 2:return u(e,this._compare,t,this.root);case 3:if(this._compare(e,r)&gt;=0)return;return f(e,r,this._compare,t,this.root)}},Object.defineProperty(l,&quot;begin&quot;,{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.left;return new h(this,t)}}),Object.defineProperty(l,&quot;end&quot;,{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.right;return new h(this,t)}}),l.at=function(t){if(t&lt;0)return new h(this,[]);for(var e=this.root,r=[];;){if(r.push(e),e.left){if(t&lt;e.left._count){e=e.left;continue}t-=e.left._count}if(!t)return new h(this,r);if(t-=1,!e.right)break;if(t&gt;=e.right._count)break;e=e.right}return new h(this,[])},l.ge=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&lt;=0&amp;&amp;(i=n.length),r=a&lt;=0?r.left:r.right}return n.length=i,new h(this,n)},l.gt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&lt;0&amp;&amp;(i=n.length),r=a&lt;0?r.left:r.right}return n.length=i,new h(this,n)},l.lt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&gt;0&amp;&amp;(i=n.length),r=a&lt;=0?r.left:r.right}return n.length=i,new h(this,n)},l.le=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&gt;=0&amp;&amp;(i=n.length),r=a&lt;0?r.left:r.right}return n.length=i,new h(this,n)},l.find=function(t){for(var e=this._compare,r=this.root,n=[];r;){var i=e(t,r.key);if(n.push(r),0===i)return new h(this,n);r=i&lt;=0?r.left:r.right}return new h(this,[])},l.remove=function(t){var e=this.find(t);return e?e.remove():this},l.get=function(t){for(var e=this._compare,r=this.root;r;){var n=e(t,r.key);if(0===n)return r.value;r=n&lt;=0?r.left:r.right}};var p=h.prototype;function d(t,e){t.key=e.key,t.value=e.value,t.left=e.left,t.right=e.right,t._color=e._color,t._count=e._count}function g(t,e){return t&lt;e?-1:t&gt;e?1:0}Object.defineProperty(p,&quot;valid&quot;,{get:function(){return this._stack.length&gt;0}}),Object.defineProperty(p,&quot;node&quot;,{get:function(){return this._stack.length&gt;0?this._stack[this._stack.length-1]:null},enumerable:!0}),p.clone=function(){return new h(this.tree,this._stack.slice())},p.remove=function(){var t=this._stack;if(0===t.length)return this.tree;var e=new Array(t.length),r=t[t.length-1];e[e.length-1]=new n(r._color,r.key,r.value,r.left,r.right,r._count);for(var l=t.length-2;l&gt;=0;--l){(r=t[l]).left===t[l+1]?e[l]=new n(r._color,r.key,r.value,e[l+1],r.right,r._count):e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count)}if((r=e[e.length-1]).left&amp;&amp;r.right){var c=e.length;for(r=r.left;r.right;)e.push(r),r=r.right;var u=e[c-1];e.push(new n(r._color,u.key,u.value,r.left,r.right,r._count)),e[c-1].key=r.key,e[c-1].value=r.value;for(l=e.length-2;l&gt;=c;--l)r=e[l],e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count);e[c-1].left=e[c]}if(0===(r=e[e.length-1])._color){var f=e[e.length-2];f.left===r?f.left=null:f.right===r&amp;&amp;(f.right=null),e.pop();for(l=0;l&lt;e.length;++l)e[l]._count--;return new s(this.tree._compare,e[0])}if(r.left||r.right){r.left?d(r,r.left):r.right&amp;&amp;d(r,r.right),r._color=1;for(l=0;l&lt;e.length-1;++l)e[l]._count--;return new s(this.tree._compare,e[0])}if(1===e.length)return new s(this.tree._compare,null);for(l=0;l&lt;e.length;++l)e[l]._count--;var h=e[e.length-2];return function(t){for(var e,r,n,s,l=t.length-1;l&gt;=0;--l){if(e=t[l],0===l)return void(e._color=1);if((r=t[l-1]).left===e){if((n=r.right).right&amp;&amp;0===n.right._color){if(s=(n=r.right=i(n)).right=i(n.right),r.right=n.left,n.left=r,n.right=s,n._color=r._color,e._color=1,r._color=1,s._color=1,o(r),o(n),l&gt;1)(c=t[l-2]).left===r?c.left=n:c.right=n;return void(t[l-1]=n)}if(n.left&amp;&amp;0===n.left._color){if(s=(n=r.right=i(n)).left=i(n.left),r.right=s.left,n.left=s.right,s.left=r,s.right=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l&gt;1)(c=t[l-2]).left===r?c.left=s:c.right=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.right=a(0,n));r.right=a(0,n);continue}n=i(n),r.right=n.left,n.left=r,n._color=r._color,r._color=0,o(r),o(n),l&gt;1&amp;&amp;((c=t[l-2]).left===r?c.left=n:c.right=n),t[l-1]=n,t[l]=r,l+1&lt;t.length?t[l+1]=e:t.push(e),l+=2}else{if((n=r.left).left&amp;&amp;0===n.left._color){if(s=(n=r.left=i(n)).left=i(n.left),r.left=n.right,n.right=r,n.left=s,n._color=r._color,e._color=1,r._color=1,s._color=1,o(r),o(n),l&gt;1)(c=t[l-2]).right===r?c.right=n:c.left=n;return void(t[l-1]=n)}if(n.right&amp;&amp;0===n.right._color){if(s=(n=r.left=i(n)).right=i(n.right),r.left=s.right,n.right=s.left,s.right=r,s.left=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l&gt;1)(c=t[l-2]).right===r?c.right=s:c.left=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.left=a(0,n));r.left=a(0,n);continue}var c;n=i(n),r.left=n.right,n.right=r,n._color=r._color,r._color=0,o(r),o(n),l&gt;1&amp;&amp;((c=t[l-2]).right===r?c.right=n:c.left=n),t[l-1]=n,t[l]=r,l+1&lt;t.length?t[l+1]=e:t.push(e),l+=2}}}(e),h.left===r?h.left=null:h.right=null,new s(this.tree._compare,e[0])},Object.defineProperty(p,&quot;key&quot;,{get:function(){if(this._stack.length&gt;0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(p,&quot;value&quot;,{get:function(){if(this._stack.length&gt;0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(p,&quot;index&quot;,{get:function(){var t=0,e=this._stack;if(0===e.length){var r=this.tree.root;return r?r._count:0}e[e.length-1].left&amp;&amp;(t=e[e.length-1].left._count);for(var n=e.length-2;n&gt;=0;--n)e[n+1]===e[n].right&amp;&amp;(++t,e[n].left&amp;&amp;(t+=e[n].left._count));return t},enumerable:!0}),p.next=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.right)for(e=e.right;e;)t.push(e),e=e.left;else for(t.pop();t.length&gt;0&amp;&amp;t[t.length-1].right===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,&quot;hasNext&quot;,{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].right)return!0;for(var e=t.length-1;e&gt;0;--e)if(t[e-1].left===t[e])return!0;return!1}}),p.update=function(t){var e=this._stack;if(0===e.length)throw new Error(&quot;Can't update empty node!&quot;);var r=new Array(e.length),i=e[e.length-1];r[r.length-1]=new n(i._color,i.key,t,i.left,i.right,i._count);for(var a=e.length-2;a&gt;=0;--a)(i=e[a]).left===e[a+1]?r[a]=new n(i._color,i.key,i.value,r[a+1],i.right,i._count):r[a]=new n(i._color,i.key,i.value,i.left,r[a+1],i._count);return new s(this.tree._compare,r[0])},p.prev=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.left)for(e=e.left;e;)t.push(e),e=e.right;else for(t.pop();t.length&gt;0&amp;&amp;t[t.length-1].left===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,&quot;hasPrev&quot;,{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].left)return!0;for(var e=t.length-1;e&gt;0;--e)if(t[e-1].right===t[e])return!0;return!1}})},{}],248:[function(t,e,r){var n=[.9999999999998099,676.5203681218851,-1259.1392167224028,771.3234287776531,-176.6150291621406,12.507343278686905,-.13857109526572012,9984369578019572e-21,1.5056327351493116e-7],i=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function a(t){if(t&lt;0)return Number(&quot;0/0&quot;);for(var e=i[0],r=i.length-1;r&gt;0;--r)e+=i[r]/(t+r);var n=t+607/128+.5;return.5*Math.log(2*Math.PI)+(t+.5)*Math.log(n)-n+Math.log(e)-Math.log(t)}e.exports=function t(e){if(e&lt;.5)return Math.PI/(Math.sin(Math.PI*e)*t(1-e));if(e&gt;100)return Math.exp(a(e));e-=1;for(var r=n[0],i=1;i&lt;9;i++)r+=n[i]/(e+i);var o=e+7+.5;return Math.sqrt(2*Math.PI)*Math.pow(o,e+.5)*Math.exp(-o)*r},e.exports.log=a},{}],249:[function(t,e,r){e.exports=function(t,e){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;must specify type string&quot;);if(e=e||{},&quot;undefined&quot;==typeof document&amp;&amp;!e.canvas)return null;var r=e.canvas||document.createElement(&quot;canvas&quot;);&quot;number&quot;==typeof e.width&amp;&amp;(r.width=e.width);&quot;number&quot;==typeof e.height&amp;&amp;(r.height=e.height);var n,i=e;try{var a=[t];0===t.indexOf(&quot;webgl&quot;)&amp;&amp;a.push(&quot;experimental-&quot;+t);for(var o=0;o&lt;a.length;o++)if(n=r.getContext(a[o],i))return n}catch(t){n=null}return n||null}},{}],250:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=new u(t);return r.update(e),r};var n=t(&quot;./lib/text.js&quot;),i=t(&quot;./lib/lines.js&quot;),a=t(&quot;./lib/background.js&quot;),o=t(&quot;./lib/cube.js&quot;),s=t(&quot;./lib/ticks.js&quot;),l=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t){this.gl=t,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=[&quot;auto&quot;,&quot;auto&quot;,&quot;auto&quot;],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],this.labelEnable=[!0,!0,!0],this.labelFont=&quot;sans-serif&quot;,this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=[&quot;auto&quot;,&quot;auto&quot;,&quot;auto&quot;],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=a(t)}var f=u.prototype;function h(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}f.update=function(t){function e(e,r,n){if(n in t){var i,a=t[n],o=this[n];(e?Array.isArray(a)&amp;&amp;Array.isArray(a[0]):Array.isArray(a))?this[n]=i=[r(a[0]),r(a[1]),r(a[2])]:this[n]=i=[r(a),r(a),r(a)];for(var s=0;s&lt;3;++s)if(i[s]!==o[s])return!0}return!1}t=t||{};var r,a=e.bind(this,!1,Number),o=e.bind(this,!1,Boolean),l=e.bind(this,!1,String),c=e.bind(this,!0,(function(t){if(Array.isArray(t)){if(3===t.length)return[+t[0],+t[1],+t[2],1];if(4===t.length)return[+t[0],+t[1],+t[2],+t[3]]}return[0,0,0,1]})),u=!1,f=!1;if(&quot;bounds&quot;in t)for(var h=t.bounds,p=0;p&lt;2;++p)for(var d=0;d&lt;3;++d)h[p][d]!==this.bounds[p][d]&amp;&amp;(f=!0),this.bounds[p][d]=h[p][d];if(&quot;ticks&quot;in t){r=t.ticks,u=!0,this.autoTicks=!1;for(p=0;p&lt;3;++p)this.tickSpacing[p]=0}else a(&quot;tickSpacing&quot;)&amp;&amp;(this.autoTicks=!0,f=!0);if(this._firstInit&amp;&amp;(&quot;ticks&quot;in t||&quot;tickSpacing&quot;in t||(this.autoTicks=!0),f=!0,u=!0,this._firstInit=!1),f&amp;&amp;this.autoTicks&amp;&amp;(r=s.create(this.bounds,this.tickSpacing),u=!0),u){for(p=0;p&lt;3;++p)r[p].sort((function(t,e){return t.x-e.x}));s.equal(r,this.ticks)?u=!1:this.ticks=r}o(&quot;tickEnable&quot;),l(&quot;tickFont&quot;)&amp;&amp;(u=!0),a(&quot;tickSize&quot;),a(&quot;tickAngle&quot;),a(&quot;tickPad&quot;),c(&quot;tickColor&quot;);var g=l(&quot;labels&quot;);l(&quot;labelFont&quot;)&amp;&amp;(g=!0),o(&quot;labelEnable&quot;),a(&quot;labelSize&quot;),a(&quot;labelPad&quot;),c(&quot;labelColor&quot;),o(&quot;lineEnable&quot;),o(&quot;lineMirror&quot;),a(&quot;lineWidth&quot;),c(&quot;lineColor&quot;),o(&quot;lineTickEnable&quot;),o(&quot;lineTickMirror&quot;),a(&quot;lineTickLength&quot;),a(&quot;lineTickWidth&quot;),c(&quot;lineTickColor&quot;),o(&quot;gridEnable&quot;),a(&quot;gridWidth&quot;),c(&quot;gridColor&quot;),o(&quot;zeroEnable&quot;),c(&quot;zeroLineColor&quot;),a(&quot;zeroLineWidth&quot;),o(&quot;backgroundEnable&quot;),c(&quot;backgroundColor&quot;),this._text?this._text&amp;&amp;(g||u)&amp;&amp;this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=n(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&amp;&amp;u&amp;&amp;(this._lines.dispose(),this._lines=null),this._lines||(this._lines=i(this.gl,this.bounds,this.ticks))};var p=[new h,new h,new h];function d(t,e,r,n,i){for(var a=t.primalOffset,o=t.primalMinor,s=t.mirrorOffset,l=t.mirrorMinor,c=n[e],u=0;u&lt;3;++u)if(e!==u){var f=a,h=s,p=o,d=l;c&amp;1&lt;&lt;u&amp;&amp;(f=s,h=a,p=l,d=o),f[u]=r[0][u],h[u]=r[1][u],i[u]&gt;0?(p[u]=-1,d[u]=0):(p[u]=0,d[u]=1)}}var g=[0,0,0],m={model:l,view:l,projection:l,_ortho:!1};f.isOpaque=function(){return!0},f.isTransparent=function(){return!1},f.drawTransparent=function(t){};var v=[0,0,0],y=[0,0,0],x=[0,0,0];f.draw=function(t){t=t||m;for(var e=this.gl,r=t.model||l,n=t.view||l,i=t.projection||l,a=this.bounds,s=t._ortho||!1,u=o(r,n,i,a,s),f=u.cubeEdges,h=u.axis,b=n[12],_=n[13],w=n[14],T=n[15],k=(s?2:1)*this.pixelRatio*(i[3]*b+i[7]*_+i[11]*w+i[15]*T)/e.drawingBufferHeight,M=0;M&lt;3;++M)this.lastCubeProps.cubeEdges[M]=f[M],this.lastCubeProps.axis[M]=h[M];var A=p;for(M=0;M&lt;3;++M)d(p[M],M,this.bounds,f,h);e=this.gl;var S,E=g;for(M=0;M&lt;3;++M)this.backgroundEnable[M]?E[M]=h[M]:E[M]=0;this._background.draw(r,n,i,a,E,this.backgroundColor),this._lines.bind(r,n,i,this);for(M=0;M&lt;3;++M){var C=[0,0,0];h[M]&gt;0?C[M]=a[1][M]:C[M]=a[0][M];for(var L=0;L&lt;2;++L){var I=(M+1+L)%3,P=(M+1+(1^L))%3;this.gridEnable[I]&amp;&amp;this._lines.drawGrid(I,P,this.bounds,C,this.gridColor[I],this.gridWidth[I]*this.pixelRatio)}for(L=0;L&lt;2;++L){I=(M+1+L)%3,P=(M+1+(1^L))%3;this.zeroEnable[P]&amp;&amp;Math.min(a[0][P],a[1][P])&lt;=0&amp;&amp;Math.max(a[0][P],a[1][P])&gt;=0&amp;&amp;this._lines.drawZero(I,P,this.bounds,C,this.zeroLineColor[P],this.zeroLineWidth[P]*this.pixelRatio)}}for(M=0;M&lt;3;++M){this.lineEnable[M]&amp;&amp;this._lines.drawAxisLine(M,this.bounds,A[M].primalOffset,this.lineColor[M],this.lineWidth[M]*this.pixelRatio),this.lineMirror[M]&amp;&amp;this._lines.drawAxisLine(M,this.bounds,A[M].mirrorOffset,this.lineColor[M],this.lineWidth[M]*this.pixelRatio);var z=c(v,A[M].primalMinor),O=c(y,A[M].mirrorMinor),D=this.lineTickLength;for(L=0;L&lt;3;++L){var R=k/r[5*L];z[L]*=D[L]*R,O[L]*=D[L]*R}this.lineTickEnable[M]&amp;&amp;this._lines.drawAxisTicks(M,A[M].primalOffset,z,this.lineTickColor[M],this.lineTickWidth[M]*this.pixelRatio),this.lineTickMirror[M]&amp;&amp;this._lines.drawAxisTicks(M,A[M].mirrorOffset,O,this.lineTickColor[M],this.lineTickWidth[M]*this.pixelRatio)}this._lines.unbind(),this._text.bind(r,n,i,this.pixelRatio);var F,B;function N(t){(B=[0,0,0])[t]=1}function j(t,e,r){var n=(t+1)%3,i=(t+2)%3,a=e[n],o=e[i],s=r[n],l=r[i];a&gt;0&amp;&amp;l&gt;0||a&gt;0&amp;&amp;l&lt;0||a&lt;0&amp;&amp;l&gt;0||a&lt;0&amp;&amp;l&lt;0?N(n):(o&gt;0&amp;&amp;s&gt;0||o&gt;0&amp;&amp;s&lt;0||o&lt;0&amp;&amp;s&gt;0||o&lt;0&amp;&amp;s&lt;0)&amp;&amp;N(i)}for(M=0;M&lt;3;++M){var U=A[M].primalMinor,V=A[M].mirrorMinor,q=c(x,A[M].primalOffset);for(L=0;L&lt;3;++L)this.lineTickEnable[M]&amp;&amp;(q[L]+=k*U[L]*Math.max(this.lineTickLength[L],0)/r[5*L]);var H=[0,0,0];if(H[M]=1,this.tickEnable[M]){-3600===this.tickAngle[M]?(this.tickAngle[M]=0,this.tickAlign[M]=&quot;auto&quot;):this.tickAlign[M]=-1,F=1,&quot;auto&quot;===(S=[this.tickAlign[M],.5,F])[0]?S[0]=0:S[0]=parseInt(&quot;&quot;+S[0]),B=[0,0,0],j(M,U,V);for(L=0;L&lt;3;++L)q[L]+=k*U[L]*this.tickPad[L]/r[5*L];this._text.drawTicks(M,this.tickSize[M],this.tickAngle[M],q,this.tickColor[M],H,B,S)}if(this.labelEnable[M]){F=0,B=[0,0,0],this.labels[M].length&gt;4&amp;&amp;(N(M),F=1),&quot;auto&quot;===(S=[this.labelAlign[M],.5,F])[0]?S[0]=0:S[0]=parseInt(&quot;&quot;+S[0]);for(L=0;L&lt;3;++L)q[L]+=k*U[L]*this.labelPad[L]/r[5*L];q[M]+=.5*(a[0][M]+a[1][M]),this._text.drawLabel(M,this.labelSize[M],this.labelAngle[M],q,this.labelColor[M],[0,0,0],B,S)}}this._text.unbind()},f.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},{&quot;./lib/background.js&quot;:251,&quot;./lib/cube.js&quot;:252,&quot;./lib/lines.js&quot;:253,&quot;./lib/text.js&quot;:255,&quot;./lib/ticks.js&quot;:256}],251:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=[],r=[],s=0,l=0;l&lt;3;++l)for(var c=(l+1)%3,u=(l+2)%3,f=[0,0,0],h=[0,0,0],p=-1;p&lt;=1;p+=2){r.push(s,s+2,s+1,s+1,s+2,s+3),f[l]=p,h[l]=p;for(var d=-1;d&lt;=1;d+=2){f[c]=d;for(var g=-1;g&lt;=1;g+=2)f[u]=g,e.push(f[0],f[1],f[2],h[0],h[1],h[2]),s+=1}var m=c;c=u,u=m}var v=n(t,new Float32Array(e)),y=n(t,new Uint16Array(r),t.ELEMENT_ARRAY_BUFFER),x=i(t,[{buffer:v,type:t.FLOAT,size:3,offset:0,stride:24},{buffer:v,type:t.FLOAT,size:3,offset:12,stride:24}],y),b=a(t);return b.attributes.position.location=0,b.attributes.normal.location=1,new o(t,v,x,b)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders&quot;).bg;function o(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n}var s=o.prototype;s.draw=function(t,e,r,n,i,a){for(var o=!1,s=0;s&lt;3;++s)o=o||i[s];if(o){var l=this.gl;l.enable(l.POLYGON_OFFSET_FILL),l.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:t,view:e,projection:r,bounds:n,enable:i,colors:a},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),l.disable(l.POLYGON_OFFSET_FILL)}},s.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:254,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],252:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,p){i(s,e,t),i(s,r,s);for(var y=0,x=0;x&lt;2;++x){u[2]=a[x][2];for(var b=0;b&lt;2;++b){u[1]=a[b][1];for(var _=0;_&lt;2;++_)u[0]=a[_][0],h(l[y],u,s),y+=1}}var w=-1;for(x=0;x&lt;8;++x){for(var T=l[x][3],k=0;k&lt;3;++k)c[x][k]=l[x][k]/T;p&amp;&amp;(c[x][2]*=-1),T&lt;0&amp;&amp;(w&lt;0||c[x][2]&lt;c[w][2])&amp;&amp;(w=x)}if(w&lt;0){w=0;for(var M=0;M&lt;3;++M){for(var A=(M+2)%3,S=(M+1)%3,E=-1,C=-1,L=0;L&lt;2;++L){var I=(z=L&lt;&lt;M)+(L&lt;&lt;A)+(1-L&lt;&lt;S),P=z+(1-L&lt;&lt;A)+(L&lt;&lt;S);o(c[z],c[I],c[P],f)&lt;0||(L?E=1:C=1)}if(E&lt;0||C&lt;0)C&gt;E&amp;&amp;(w|=1&lt;&lt;M);else{for(L=0;L&lt;2;++L){I=(z=L&lt;&lt;M)+(L&lt;&lt;A)+(1-L&lt;&lt;S),P=z+(1-L&lt;&lt;A)+(L&lt;&lt;S);var z,O=d([l[z],l[I],l[P],l[z+(1&lt;&lt;A)+(1&lt;&lt;S)]]);L?E=O:C=O}C&gt;E&amp;&amp;(w|=1&lt;&lt;M)}}}var D=7^w,R=-1;for(x=0;x&lt;8;++x)x!==w&amp;&amp;x!==D&amp;&amp;(R&lt;0||c[R][1]&gt;c[x][1])&amp;&amp;(R=x);var F=-1;for(x=0;x&lt;3;++x){if((N=R^1&lt;&lt;x)!==w&amp;&amp;N!==D)F&lt;0&amp;&amp;(F=N),(S=c[N])[0]&lt;c[F][0]&amp;&amp;(F=N)}var B=-1;for(x=0;x&lt;3;++x){var N;if((N=R^1&lt;&lt;x)!==w&amp;&amp;N!==D&amp;&amp;N!==F)B&lt;0&amp;&amp;(B=N),(S=c[N])[0]&gt;c[B][0]&amp;&amp;(B=N)}var j=g;j[0]=j[1]=j[2]=0,j[n.log2(F^R)]=R&amp;F,j[n.log2(R^B)]=R&amp;B;var U=7^B;U===w||U===D?(U=7^F,j[n.log2(B^U)]=U&amp;B):j[n.log2(F^U)]=U&amp;F;var V=m,q=w;for(M=0;M&lt;3;++M)V[M]=q&amp;1&lt;&lt;M?-1:1;return v};var n=t(&quot;bit-twiddle&quot;),i=t(&quot;gl-mat4/multiply&quot;),a=t(&quot;split-polygon&quot;),o=t(&quot;robust-orientation&quot;),s=new Array(16),l=new Array(8),c=new Array(8),u=new Array(3),f=[0,0,0];function h(t,e,r){for(var n=0;n&lt;4;++n){t[n]=r[12+n];for(var i=0;i&lt;3;++i)t[n]+=e[i]*r[4*i+n]}}!function(){for(var t=0;t&lt;8;++t)l[t]=[1,1,1,1],c[t]=[1,1,1]}();var p=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function d(t){for(var e=0;e&lt;p.length;++e)if((t=a.positive(t,p[e])).length&lt;3)return 0;var r=t[0],n=r[0]/r[3],i=r[1]/r[3],o=0;for(e=1;e+1&lt;t.length;++e){var s=t[e],l=t[e+1],c=s[0]/s[3]-n,u=s[1]/s[3]-i,f=l[0]/l[3]-n,h=l[1]/l[3]-i;o+=Math.abs(c*h-u*f)}return o}var g=[1,1,1],m=[0,0,0],v={cubeEdges:g,axis:m}},{&quot;bit-twiddle&quot;:97,&quot;gl-mat4/multiply&quot;:295,&quot;robust-orientation&quot;:548,&quot;split-polygon&quot;:566}],253:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var o=[],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[0,0,0];o.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var f=0;f&lt;3;++f){for(var h=o.length/3|0,d=0;d&lt;r[f].length;++d){var g=+r[f][d].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}var m=o.length/3|0;s[f]=h,l[f]=m-h;h=o.length/3|0;for(var v=0;v&lt;r[f].length;++v){g=+r[f][v].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}m=o.length/3|0;c[f]=h,u[f]=m-h}var y=n(t,new Float32Array(o)),x=i(t,[{buffer:y,type:t.FLOAT,size:3,stride:0,offset:0}]),b=a(t);return b.attributes.position.location=0,new p(t,y,x,b,l,s,u,c)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders&quot;).line,o=[0,0,0],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[1,1];function f(t){return t[0]=t[1]=t[2]=0,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function p(t,e,r,n,i,a,o,s){this.gl=t,this.vertBuffer=e,this.vao=r,this.shader=n,this.tickCount=i,this.tickOffset=a,this.gridCount=o,this.gridOffset=s}var d=p.prototype;d.bind=function(t,e,r){this.shader.bind(),this.shader.uniforms.model=t,this.shader.uniforms.view=e,this.shader.uniforms.projection=r,u[0]=this.gl.drawingBufferWidth,u[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=u,this.vao.bind()},d.unbind=function(){this.vao.unbind()},d.drawAxisLine=function(t,e,r,n,i){var a=f(s);this.shader.uniforms.majorAxis=s,a[t]=e[1][t]-e[0][t],this.shader.uniforms.minorAxis=a;var o,u=h(c,r);u[t]+=e[0][t],this.shader.uniforms.offset=u,this.shader.uniforms.lineWidth=i,this.shader.uniforms.color=n,(o=f(l))[(t+2)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6),(o=f(l))[(t+1)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6)},d.drawAxisTicks=function(t,e,r,n,i){if(this.tickCount[t]){var a=f(o);a[t]=1,this.shader.uniforms.majorAxis=a,this.shader.uniforms.offset=e,this.shader.uniforms.minorAxis=r,this.shader.uniforms.color=n,this.shader.uniforms.lineWidth=i;var s=f(l);s[t]=1,this.shader.uniforms.screenAxis=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t])}},d.drawGrid=function(t,e,r,n,i,a){if(this.gridCount[t]){var u=f(s);u[e]=r[1][e]-r[0][e],this.shader.uniforms.minorAxis=u;var p=h(c,n);p[e]+=r[0][e],this.shader.uniforms.offset=p;var d=f(o);d[t]=1,this.shader.uniforms.majorAxis=d;var g=f(l);g[t]=1,this.shader.uniforms.screenAxis=g,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,this.gridCount[t],this.gridOffset[t])}},d.drawZero=function(t,e,r,n,i,a){var o=f(s);this.shader.uniforms.majorAxis=o,o[t]=r[1][t]-r[0][t],this.shader.uniforms.minorAxis=o;var u=h(c,n);u[t]+=r[0][t],this.shader.uniforms.offset=u;var p=f(l);p[e]=1,this.shader.uniforms.screenAxis=p,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,6)},d.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:254,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],254:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, majorAxis, minorAxis, screenAxis;\nuniform float lineWidth;\nuniform vec2 screenShape;\n\nvec3 project(vec3 p) {\n  vec4 pp = projection * view * model * vec4(p, 1.0);\n  return pp.xyz / max(pp.w, 0.0001);\n}\n\nvoid main() {\n  vec3 major = position.x * majorAxis;\n  vec3 minor = position.y * minorAxis;\n\n  vec3 vPosition = major + minor + offset;\n  vec3 pPosition = project(vPosition);\n  vec3 offset = project(vPosition + screenAxis * position.z);\n\n  vec2 screen = normalize((offset - pPosition).xy * screenShape) / screenShape;\n\n  gl_Position = vec4(pPosition + vec3(0.5 * screen * lineWidth, 0), 1.0);\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = color;\n}&quot;]);r.line=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;}])};var s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, axis, alignDir, alignOpt;\nuniform float scale, angle, pixelScale;\nuniform vec2 resolution;\n\nvec3 project(vec3 p) {\n  vec4 pp = projection * view * model * vec4(p, 1.0);\n  return pp.xyz / max(pp.w, 0.0001);\n}\n\nfloat computeViewAngle(vec3 a, vec3 b) {\n  vec3 A = project(a);\n  vec3 B = project(b);\n\n  return atan(\n    (B.y - A.y) * resolution.y,\n    (B.x - A.x) * resolution.x\n  );\n}\n\nconst float PI = 3.141592;\nconst float TWO_PI = 2.0 * PI;\nconst float HALF_PI = 0.5 * PI;\nconst float ONE_AND_HALF_PI = 1.5 * PI;\n\nint option = int(floor(alignOpt.x + 0.001));\nfloat hv_ratio =       alignOpt.y;\nbool enableAlign =    (alignOpt.z != 0.0);\n\nfloat mod_angle(float a) {\n  return mod(a, PI);\n}\n\nfloat positive_angle(float a) {\n  return mod_angle((a &lt; 0.0) ?\n    a + TWO_PI :\n    a\n  );\n}\n\nfloat look_upwards(float a) {\n  float b = positive_angle(a);\n  return ((b &gt; HALF_PI) &amp;&amp; (b &lt;= ONE_AND_HALF_PI)) ?\n    b - PI :\n    b;\n}\n\nfloat look_horizontal_or_vertical(float a, float ratio) {\n  // ratio controls the ratio between being horizontal to (vertical + horizontal)\n  // if ratio is set to 0.5 then it is 50%, 50%.\n  // when using a higher ratio e.g. 0.75 the result would\n  // likely be more horizontal than vertical.\n\n  float b = positive_angle(a);\n\n  return\n    (b &lt; (      ratio) * HALF_PI) ? 0.0 :\n    (b &lt; (2.0 - ratio) * HALF_PI) ? -HALF_PI :\n    (b &lt; (2.0 + ratio) * HALF_PI) ? 0.0 :\n    (b &lt; (4.0 - ratio) * HALF_PI) ? HALF_PI :\n                                    0.0;\n}\n\nfloat roundTo(float a, float b) {\n  return float(b * floor((a + 0.5 * b) / b));\n}\n\nfloat look_round_n_directions(float a, int n) {\n  float b = positive_angle(a);\n  float div = TWO_PI / float(n);\n  float c = roundTo(b, div);\n  return look_upwards(c);\n}\n\nfloat applyAlignOption(float rawAngle, float delta) {\n  return\n    (option &gt;  2) ? look_round_n_directions(rawAngle + delta, option) :       // option 3-n: round to n directions\n    (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\n    (option == 1) ? rawAngle + delta :       // use free angle, and flip to align with one direction of the axis\n    (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\n    (option ==-1) ? 0.0 :                    // useful for backward compatibility, all texts remains horizontal\n                    rawAngle;                // otherwise return back raw input angle\n}\n\nbool isAxisTitle = (axis.x == 0.0) &amp;&amp;\n                   (axis.y == 0.0) &amp;&amp;\n                   (axis.z == 0.0);\n\nvoid main() {\n  //Compute world offset\n  float axisDistance = position.z;\n  vec3 dataPosition = axisDistance * axis + offset;\n\n  float beta = angle; // i.e. user defined attributes for each tick\n\n  float axisAngle;\n  float clipAngle;\n  float flip;\n\n  if (enableAlign) {\n    axisAngle = (isAxisTitle) ? HALF_PI :\n                      computeViewAngle(dataPosition, dataPosition + axis);\n    clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\n\n    axisAngle += (sin(axisAngle) &lt; 0.0) ? PI : 0.0;\n    clipAngle += (sin(clipAngle) &lt; 0.0) ? PI : 0.0;\n\n    flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\n                vec2(sin(clipAngle),-cos(clipAngle))) &gt; 0.0) ? 1.0 : 0.0;\n\n    beta += applyAlignOption(clipAngle, flip * PI);\n  }\n\n  //Compute plane offset\n  vec2 planeCoord = position.xy * pixelScale;\n\n  mat2 planeXform = scale * mat2(\n     cos(beta), sin(beta),\n    -sin(beta), cos(beta)\n  );\n\n  vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\n\n  //Compute clip position\n  vec3 clipPosition = project(dataPosition);\n\n  //Apply text offset in clip coordinates\n  clipPosition += vec3(viewOffset, 0.0);\n\n  //Done\n  gl_Position = vec4(clipPosition, 1.0);\n}&quot;]),l=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = color;\n}&quot;]);r.text=function(t){return i(t,s,l,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;}])};var c=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec3 normal;\n\nuniform mat4 model, view, projection;\nuniform vec3 enable;\nuniform vec3 bounds[2];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n\n  vec3 signAxis = sign(bounds[1] - bounds[0]);\n\n  vec3 realNormal = signAxis * normal;\n\n  if(dot(realNormal, enable) &gt; 0.0) {\n    vec3 minRange = min(bounds[0], bounds[1]);\n    vec3 maxRange = max(bounds[0], bounds[1]);\n    vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\n    gl_Position = projection * view * model * vec4(nPosition, 1.0);\n  } else {\n    gl_Position = vec4(0,0,0,0);\n  }\n\n  colorChannel = abs(realNormal);\n}&quot;]),u=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 colors[3];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n  gl_FragColor = colorChannel.x * colors[0] +\n                 colorChannel.y * colors[1] +\n                 colorChannel.z * colors[2];\n}&quot;]);r.bg=function(t){return i(t,c,u,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}])}},{&quot;gl-shader&quot;:335,glslify:257}],255:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;e.exports=function(t,e,r,a,s,l){var u=n(t),f=i(t,[{buffer:u,size:3}]),h=o(t);h.attributes.position.location=0;var p=new c(t,h,u,f);return p.update(e,r,a,s,l),p};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;vectorize-text&quot;),o=t(&quot;./shaders&quot;).text,s=window||r.global||{},l=s.__TEXT_CACHE||{};s.__TEXT_CACHE={};function c(t,e,r,n){this.gl=t,this.shader=e,this.buffer=r,this.vao=n,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var u=c.prototype,f=[0,0];u.bind=function(t,e,r,n){this.vao.bind(),this.shader.bind();var i=this.shader.uniforms;i.model=t,i.view=e,i.projection=r,i.pixelScale=n,f[0]=this.gl.drawingBufferWidth,f[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=f},u.unbind=function(){this.vao.unbind()},u.update=function(t,e,r,n,i){var o=[];function s(t,e,r,n,i,s){var c=l[r];c||(c=l[r]={});var u=c[e];u||(u=c[e]=function(t,e){try{return a(t,e)}catch(e){return console.warn('error vectorizing text:&quot;'+t+'&quot; error:',e),{cells:[],positions:[]}}}(e,{triangles:!0,font:r,textAlign:&quot;center&quot;,textBaseline:&quot;middle&quot;,lineSpacing:i,styletags:s}));for(var f=(n||12)/12,h=u.positions,p=u.cells,d=0,g=p.length;d&lt;g;++d)for(var m=p[d],v=2;v&gt;=0;--v){var y=h[m[v]];o.push(f*y[0],-f*y[1],t)}}for(var c=[0,0,0],u=[0,0,0],f=[0,0,0],h=[0,0,0],p={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},d=0;d&lt;3;++d){f[d]=o.length/3|0,s(.5*(t[0][d]+t[1][d]),e[d],r[d],12,1.25,p),h[d]=(o.length/3|0)-f[d],c[d]=o.length/3|0;for(var g=0;g&lt;n[d].length;++g)n[d][g].text&amp;&amp;s(n[d][g].x,n[d][g].text,n[d][g].font||i,n[d][g].fontSize||12,1.25,p);u[d]=(o.length/3|0)-c[d]}this.buffer.update(o),this.tickOffset=c,this.tickCount=u,this.labelOffset=f,this.labelCount=h},u.drawTicks=function(t,e,r,n,i,a,o,s){this.tickCount[t]&amp;&amp;(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t]))},u.drawLabel=function(t,e,r,n,i,a,o,s){this.labelCount[t]&amp;&amp;(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.labelCount[t],this.labelOffset[t]))},u.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()}}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./shaders&quot;:254,_process:526,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358,&quot;vectorize-text&quot;:600}],256:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=t+&quot;&quot;,n=r.indexOf(&quot;.&quot;),i=0;n&gt;=0&amp;&amp;(i=r.length-n-1);var a=Math.pow(10,i),o=Math.round(t*e*a),s=o+&quot;&quot;;if(s.indexOf(&quot;e&quot;)&gt;=0)return s;var l=o/a,c=o%a;o&lt;0?(l=0|-Math.ceil(l),c=0|-c):(l=0|Math.floor(l),c|=0);var u=&quot;&quot;+l;if(o&lt;0&amp;&amp;(u=&quot;-&quot;+u),i){for(var f=&quot;&quot;+c;f.length&lt;i;)f=&quot;0&quot;+f;return u+&quot;.&quot;+f}return u}r.create=function(t,e){for(var r=[],i=0;i&lt;3;++i){for(var a=[],o=(t[0][i],t[1][i],0);o*e[i]&lt;=t[1][i];++o)a.push({x:o*e[i],text:n(e[i],o)});for(o=-1;o*e[i]&gt;=t[0][i];--o)a.push({x:o*e[i],text:n(e[i],o)});r.push(a)}return r},r.equal=function(t,e){for(var r=0;r&lt;3;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n&lt;t[r].length;++n){var i=t[r][n],a=e[r][n];if(i.x!==a.x||i.text!==a.text||i.font!==a.font||i.fontColor!==a.fontColor||i.fontSize!==a.fontSize||i.dx!==a.dx||i.dy!==a.dy)return!1}}return!0}},{}],257:[function(t,e,r){e.exports=function(t){&quot;string&quot;==typeof t&amp;&amp;(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n&lt;t.length-1;n++)r.push(t[n],e[n]||&quot;&quot;);return r.push(t[n]),r.join(&quot;&quot;)}},{}],258:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,l,f){var h=e.model||c,p=e.view||c,v=e.projection||c,y=e._ortho||!1,x=t.bounds,b=(f=f||a(h,p,v,x,y)).axis;o(u,p,h),o(u,v,u);for(var _=g,w=0;w&lt;3;++w)_[w].lo=1/0,_[w].hi=-1/0,_[w].pixelsPerDataUnit=1/0;var T=n(s(u,u));s(u,u);for(var k=0;k&lt;3;++k){var M=(k+1)%3,A=(k+2)%3,S=m;t:for(w=0;w&lt;2;++w){var E=[];if(b[k]&lt;0!=!!w){S[k]=x[w][k];for(var C=0;C&lt;2;++C){S[M]=x[C^w][M];for(var L=0;L&lt;2;++L)S[A]=x[L^C^w][A],E.push(S.slice())}var I=y?5:4;for(C=I;C===I;++C){if(0===E.length)continue t;E=i.positive(E,T[C])}for(C=0;C&lt;E.length;++C){A=E[C];var P=d(m,u,A,r,l);for(L=0;L&lt;3;++L)_[L].lo=Math.min(_[L].lo,A[L]),_[L].hi=Math.max(_[L].hi,A[L]),L!==k&amp;&amp;(_[L].pixelsPerDataUnit=Math.min(_[L].pixelsPerDataUnit,Math.abs(P[L])))}}}}return _};var n=t(&quot;extract-frustum-planes&quot;),i=t(&quot;split-polygon&quot;),a=t(&quot;./lib/cube.js&quot;),o=t(&quot;gl-mat4/multiply&quot;),s=t(&quot;gl-mat4/transpose&quot;),l=t(&quot;gl-vec4/transformMat4&quot;),c=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),u=new Float32Array(16);function f(t,e,r){this.lo=t,this.hi=e,this.pixelsPerDataUnit=r}var h=[0,0,0,1],p=[0,0,0,1];function d(t,e,r,n,i){for(var a=0;a&lt;3;++a){for(var o=h,s=p,c=0;c&lt;3;++c)s[c]=o[c]=r[c];s[3]=o[3]=1,s[a]+=1,l(s,s,e),s[3]&lt;0&amp;&amp;(t[a]=1/0),o[a]-=1,l(o,o,e),o[3]&lt;0&amp;&amp;(t[a]=1/0);var u=(o[0]/o[3]-s[0]/s[3])*n,f=(o[1]/o[3]-s[1]/s[3])*i;t[a]=.25*Math.sqrt(u*u+f*f)}return t}var g=[new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0)],m=[0,0,0]},{&quot;./lib/cube.js&quot;:252,&quot;extract-frustum-planes&quot;:240,&quot;gl-mat4/multiply&quot;:295,&quot;gl-mat4/transpose&quot;:306,&quot;gl-vec4/transformMat4&quot;:429,&quot;split-polygon&quot;:566}],259:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=t(&quot;ndarray-ops&quot;),a=t(&quot;ndarray&quot;),o=[&quot;uint8&quot;,&quot;uint8_clamped&quot;,&quot;uint16&quot;,&quot;uint32&quot;,&quot;int8&quot;,&quot;int16&quot;,&quot;int32&quot;,&quot;float32&quot;];function s(t,e,r,n,i){this.gl=t,this.type=e,this.handle=r,this.length=n,this.usage=i}var l=s.prototype;function c(t,e,r,n,i,a){var o=i.length*i.BYTES_PER_ELEMENT;if(a&lt;0)return t.bufferData(e,i,n),o;if(o+a&gt;r)throw new Error(&quot;gl-buffer: If resizing buffer, must not specify offset&quot;);return t.bufferSubData(e,a,i),r}function u(t,e){for(var r=n.malloc(t.length,e),i=t.length,a=0;a&lt;i;++a)r[a]=t[a];return r}l.bind=function(){this.gl.bindBuffer(this.type,this.handle)},l.unbind=function(){this.gl.bindBuffer(this.type,null)},l.dispose=function(){this.gl.deleteBuffer(this.handle)},l.update=function(t,e){if(&quot;number&quot;!=typeof e&amp;&amp;(e=-1),this.bind(),&quot;object&quot;==typeof t&amp;&amp;&quot;undefined&quot;!=typeof t.shape){var r=t.dtype;if(o.indexOf(r)&lt;0&amp;&amp;(r=&quot;float32&quot;),this.type===this.gl.ELEMENT_ARRAY_BUFFER)r=gl.getExtension(&quot;OES_element_index_uint&quot;)&amp;&amp;&quot;uint16&quot;!==r?&quot;uint32&quot;:&quot;uint16&quot;;if(r===t.dtype&amp;&amp;function(t,e){for(var r=1,n=e.length-1;n&gt;=0;--n){if(e[n]!==r)return!1;r*=t[n]}return!0}(t.shape,t.stride))0===t.offset&amp;&amp;t.data.length===t.shape[0]?this.length=c(this.gl,this.type,this.length,this.usage,t.data,e):this.length=c(this.gl,this.type,this.length,this.usage,t.data.subarray(t.offset,t.shape[0]),e);else{var s=n.malloc(t.size,r),l=a(s,t.shape);i.assign(l,t),this.length=c(this.gl,this.type,this.length,this.usage,e&lt;0?s:s.subarray(0,t.size),e),n.free(s)}}else if(Array.isArray(t)){var f;f=this.type===this.gl.ELEMENT_ARRAY_BUFFER?u(t,&quot;uint16&quot;):u(t,&quot;float32&quot;),this.length=c(this.gl,this.type,this.length,this.usage,e&lt;0?f:f.subarray(0,t.length),e),n.free(f)}else if(&quot;object&quot;==typeof t&amp;&amp;&quot;number&quot;==typeof t.length)this.length=c(this.gl,this.type,this.length,this.usage,t,e);else{if(&quot;number&quot;!=typeof t&amp;&amp;void 0!==t)throw new Error(&quot;gl-buffer: Invalid data type&quot;);if(e&gt;=0)throw new Error(&quot;gl-buffer: Cannot specify offset when resizing buffer&quot;);(t|=0)&lt;=0&amp;&amp;(t=1),this.gl.bufferData(this.type,0|t,this.usage),this.length=t}},e.exports=function(t,e,r,n){if(r=r||t.ARRAY_BUFFER,n=n||t.DYNAMIC_DRAW,r!==t.ARRAY_BUFFER&amp;&amp;r!==t.ELEMENT_ARRAY_BUFFER)throw new Error(&quot;gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER&quot;);if(n!==t.DYNAMIC_DRAW&amp;&amp;n!==t.STATIC_DRAW&amp;&amp;n!==t.STREAM_DRAW)throw new Error(&quot;gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW&quot;);var i=t.createBuffer(),a=new s(t,r,i,0,n);return a.update(e),a}},{ndarray:495,&quot;ndarray-ops&quot;:490,&quot;typedarray-pool&quot;:595}],260:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-vec3&quot;);e.exports=function(t,e){var r=t.positions,i=t.vectors,a={positions:[],vertexIntensity:[],vertexIntensityBounds:t.vertexIntensityBounds,vectors:[],cells:[],coneOffset:t.coneOffset,colormap:t.colormap};if(0===t.positions.length)return e&amp;&amp;(e[0]=[0,0,0],e[1]=[0,0,0]),a;for(var o=0,s=1/0,l=-1/0,c=1/0,u=-1/0,f=1/0,h=-1/0,p=null,d=null,g=[],m=1/0,v=!1,y=0;y&lt;r.length;y++){var x=r[y];s=Math.min(x[0],s),l=Math.max(x[0],l),c=Math.min(x[1],c),u=Math.max(x[1],u),f=Math.min(x[2],f),h=Math.max(x[2],h);var b=i[y];if(n.length(b)&gt;o&amp;&amp;(o=n.length(b)),y){var _=2*n.distance(p,x)/(n.length(d)+n.length(b));_?(m=Math.min(m,_),v=!1):v=!0}v||(p=x,d=b),g.push(b)}var w=[s,c,f],T=[l,u,h];e&amp;&amp;(e[0]=w,e[1]=T),0===o&amp;&amp;(o=1);var k=1/o;isFinite(m)||(m=1),a.vectorScale=m;var M=t.coneSize||.5;t.absoluteConeSize&amp;&amp;(M=t.absoluteConeSize*k),a.coneScale=M;y=0;for(var A=0;y&lt;r.length;y++)for(var S=(x=r[y])[0],E=x[1],C=x[2],L=g[y],I=n.length(L)*k,P=0;P&lt;8;P++){a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vertexIntensity.push(I,I,I),a.vertexIntensity.push(I,I,I);var z=a.positions.length;a.cells.push([z-6,z-5,z-4],[z-3,z-2,z-1])}return a};var i=t(&quot;./lib/shaders&quot;);e.exports.createMesh=t(&quot;./create_mesh&quot;),e.exports.createConeMesh=function(t,r){return e.exports.createMesh(t,r,{shaders:i,traceType:&quot;cone&quot;})}},{&quot;./create_mesh&quot;:261,&quot;./lib/shaders&quot;:262,&quot;gl-vec3&quot;:377}],261:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;gl-mat4/multiply&quot;),l=t(&quot;gl-mat4/invert&quot;),c=t(&quot;ndarray&quot;),u=t(&quot;colormap&quot;),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e,r,n,i,a,o,s,l,c,u){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.pickShader=n,this.trianglePositions=i,this.triangleVectors=a,this.triangleColors=s,this.triangleUVs=l,this.triangleIds=o,this.triangleVAO=c,this.triangleCount=0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.traceType=u,this.tubeScale=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=f,this._view=f,this._projection=f,this._resolution=[1,1]}var p=h.prototype;function d(t,e){var r=n(t,e.meshShader.vertex,e.meshShader.fragment,null,e.meshShader.attributes);return r.attributes.position.location=0,r.attributes.color.location=2,r.attributes.uv.location=3,r.attributes.vector.location=4,r}function g(t,e){var r=n(t,e.pickShader.vertex,e.pickShader.fragment,null,e.pickShader.attributes);return r.attributes.position.location=0,r.attributes.id.location=1,r.attributes.vector.location=4,r}p.isOpaque=function(){return this.opacity&gt;=1},p.isTransparent=function(){return this.opacity&lt;1},p.pickSlots=1,p.setPickBase=function(t){this.pickId=t},p.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,&quot;lightPosition&quot;in t&amp;&amp;(this.lightPosition=t.lightPosition),&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity),&quot;ambient&quot;in t&amp;&amp;(this.ambientLight=t.ambient),&quot;diffuse&quot;in t&amp;&amp;(this.diffuseLight=t.diffuse),&quot;specular&quot;in t&amp;&amp;(this.specularLight=t.specular),&quot;roughness&quot;in t&amp;&amp;(this.roughness=t.roughness),&quot;fresnel&quot;in t&amp;&amp;(this.fresnel=t.fresnel),void 0!==t.tubeScale&amp;&amp;(this.tubeScale=t.tubeScale),void 0!==t.vectorScale&amp;&amp;(this.vectorScale=t.vectorScale),void 0!==t.coneScale&amp;&amp;(this.coneScale=t.coneScale),void 0!==t.coneOffset&amp;&amp;(this.coneOffset=t.coneOffset),t.colormap&amp;&amp;(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t){for(var e=u({colormap:t,nshades:256,format:&quot;rgba&quot;}),r=new Uint8Array(1024),n=0;n&lt;256;++n){for(var i=e[n],a=0;a&lt;3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return c(r,[256,256,4],[4,0,1])}(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions,i=t.vectors;if(n&amp;&amp;r&amp;&amp;i){var a=[],o=[],s=[],l=[],f=[];this.cells=r,this.positions=n,this.vectors=i;var h=t.meshColor||[1,1,1,1],p=t.vertexIntensity,d=1/0,g=-1/0;if(p)if(t.vertexIntensityBounds)d=+t.vertexIntensityBounds[0],g=+t.vertexIntensityBounds[1];else for(var m=0;m&lt;p.length;++m){var v=p[m];d=Math.min(d,v),g=Math.max(g,v)}else for(m=0;m&lt;n.length;++m){v=n[m][2];d=Math.min(d,v),g=Math.max(g,v)}this.intensity=p||function(t){for(var e=t.length,r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n][2];return r}(n),this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(m=0;m&lt;n.length;++m)for(var y=n[m],x=0;x&lt;3;++x)!isNaN(y[x])&amp;&amp;isFinite(y[x])&amp;&amp;(this.bounds[0][x]=Math.min(this.bounds[0][x],y[x]),this.bounds[1][x]=Math.max(this.bounds[1][x],y[x]));var b=0;t:for(m=0;m&lt;r.length;++m){var _=r[m];switch(_.length){case 3:for(x=0;x&lt;3;++x){y=n[T=_[x]];for(var w=0;w&lt;3;++w)if(isNaN(y[w])||!isFinite(y[w]))continue t}for(x=0;x&lt;3;++x){var T;y=n[T=_[2-x]];a.push(y[0],y[1],y[2],y[3]);var k=i[T];o.push(k[0],k[1],k[2],k[3]||0);var M,A=h;3===A.length?s.push(A[0],A[1],A[2],1):s.push(A[0],A[1],A[2],A[3]),M=p?[(p[T]-d)/(g-d),0]:[(y[2]-d)/(g-d),0],l.push(M[0],M[1]),f.push(m)}b+=1}}this.triangleCount=b,this.trianglePositions.update(a),this.triangleVectors.update(o),this.triangleColors.update(s),this.triangleUVs.update(l),this.triangleIds.update(new Uint32Array(f))}},p.drawTransparent=p.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var c={model:r,view:n,projection:i,inverseModel:f.slice(),clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,texture:0};c.inverseModel=l(c.inverseModel,c.model),e.disable(e.CULL_FACE),this.texture.bind(0);var u=new Array(16);s(u,c.view,c.model),s(u,c.projection,u),l(u,u);for(o=0;o&lt;3;++o)c.eyePosition[o]=u[12+o]/u[15];var h=u[15];for(o=0;o&lt;3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o&lt;3;++o){for(var p=u[12+o],d=0;d&lt;3;++d)p+=u[4*d+o]*this.lightPosition[d];c.lightPosition[o]=p/h}if(this.triangleCount&gt;0){var g=this.triShader;g.bind(),g.uniforms=c,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}},p.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s={model:r,view:n,projection:i,clipBounds:a,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},l=this.pickShader;l.bind(),l.uniforms=s,this.triangleCount&gt;0&amp;&amp;(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind())},p.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions[r[1]].slice(0,3),i={position:n,dataCoordinate:n,index:Math.floor(r[1]/48)};return&quot;cone&quot;===this.traceType?i.index=Math.floor(r[1]/48):&quot;streamtube&quot;===this.traceType&amp;&amp;(i.intensity=this.intensity[r[1]],i.velocity=this.vectors[r[1]].slice(0,3),i.divergence=this.vectors[r[1]][3],i.index=e),i},p.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()},e.exports=function(t,e,r){var n=r.shaders;1===arguments.length&amp;&amp;(t=(e=t).gl);var s=d(t,n),l=g(t,n),u=o(t,c(new Uint8Array([255,255,255,255]),[1,1,4]));u.generateMipmap(),u.minFilter=t.LINEAR_MIPMAP_LINEAR,u.magFilter=t.LINEAR;var f=i(t),p=i(t),m=i(t),v=i(t),y=i(t),x=a(t,[{buffer:f,type:t.FLOAT,size:4},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:m,type:t.FLOAT,size:4},{buffer:v,type:t.FLOAT,size:2},{buffer:p,type:t.FLOAT,size:4}]),b=new h(t,u,s,l,f,p,y,m,v,x,r.traceType||&quot;cone&quot;);return b.update(e),b}},{colormap:131,&quot;gl-buffer&quot;:259,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/multiply&quot;:295,&quot;gl-shader&quot;:335,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495}],262:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n//   segment + 0 top vertex\n//   segment + 1 perimeter vertex a+1\n//   segment + 2 perimeter vertex a\n//   segment + 3 center base vertex\n//   segment + 4 perimeter vertex a\n//   segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n  const float segmentCount = 8.0;\n\n  float index = rawIndex - floor(rawIndex /\n    (segmentCount * 6.0)) *\n    (segmentCount * 6.0);\n\n  float segment = floor(0.001 + index/6.0);\n  float segmentIndex = index - (segment*6.0);\n\n  normal = -normalize(d);\n\n  if (segmentIndex &gt; 2.99 &amp;&amp; segmentIndex &lt; 3.01) {\n    return mix(vec3(0.0), -d, coneOffset);\n  }\n\n  float nextAngle = (\n    (segmentIndex &gt; 0.99 &amp;&amp;  segmentIndex &lt; 1.01) ||\n    (segmentIndex &gt; 4.99 &amp;&amp;  segmentIndex &lt; 5.01)\n  ) ? 1.0 : 0.0;\n  float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n  vec3 v1 = mix(d, vec3(0.0), coneOffset);\n  vec3 v2 = v1 - d;\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d)*0.25;\n  vec3 y = v * sin(angle) * length(d)*0.25;\n  vec3 v3 = v2 + x + y;\n  if (segmentIndex &lt; 3.0) {\n    vec3 tx = u * sin(angle);\n    vec3 ty = v * -cos(angle);\n    vec3 tangent = tx + ty;\n    normal = normalize(cross(v3 - v1, tangent));\n  }\n\n  if (segmentIndex == 0.0) {\n    return mix(d, vec3(0.0), coneOffset);\n  }\n  return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  // Scale the vector magnitude to stay constant with\n  // model &amp; view changes.\n  vec3 normal;\n  vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n  vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * conePosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  // vec4 m_position  = model * vec4(conePosition, 1.0);\n  vec4 t_position  = view * conePosition;\n  gl_Position      = projection * t_position;\n\n  f_color          = color;\n  f_data           = conePosition.xyz;\n  f_position       = position.xyz;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * opacity;\n}\n&quot;]),o=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n//   segment + 0 top vertex\n//   segment + 1 perimeter vertex a+1\n//   segment + 2 perimeter vertex a\n//   segment + 3 center base vertex\n//   segment + 4 perimeter vertex a\n//   segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n  const float segmentCount = 8.0;\n\n  float index = rawIndex - floor(rawIndex /\n    (segmentCount * 6.0)) *\n    (segmentCount * 6.0);\n\n  float segment = floor(0.001 + index/6.0);\n  float segmentIndex = index - (segment*6.0);\n\n  normal = -normalize(d);\n\n  if (segmentIndex &gt; 2.99 &amp;&amp; segmentIndex &lt; 3.01) {\n    return mix(vec3(0.0), -d, coneOffset);\n  }\n\n  float nextAngle = (\n    (segmentIndex &gt; 0.99 &amp;&amp;  segmentIndex &lt; 1.01) ||\n    (segmentIndex &gt; 4.99 &amp;&amp;  segmentIndex &lt; 5.01)\n  ) ? 1.0 : 0.0;\n  float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n  vec3 v1 = mix(d, vec3(0.0), coneOffset);\n  vec3 v2 = v1 - d;\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d)*0.25;\n  vec3 y = v * sin(angle) * length(d)*0.25;\n  vec3 v3 = v2 + x + y;\n  if (segmentIndex &lt; 3.0) {\n    vec3 tx = u * sin(angle);\n    vec3 ty = v * -cos(angle);\n    vec3 tangent = tx + ty;\n    normal = normalize(cross(v3 - v1, tangent));\n  }\n\n  if (segmentIndex == 0.0) {\n    return mix(d, vec3(0.0), coneOffset);\n  }\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float vectorScale, coneScale, coneOffset;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  vec3 normal;\n  vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);\n  vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n  gl_Position = projection * view * conePosition;\n  f_id        = id;\n  f_position  = position.xyz;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;vector&quot;,type:&quot;vec3&quot;}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;},{name:&quot;vector&quot;,type:&quot;vec3&quot;}]}},{glslify:263}],263:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],264:[function(t,e,r){e.exports={0:&quot;NONE&quot;,1:&quot;ONE&quot;,2:&quot;LINE_LOOP&quot;,3:&quot;LINE_STRIP&quot;,4:&quot;TRIANGLES&quot;,5:&quot;TRIANGLE_STRIP&quot;,6:&quot;TRIANGLE_FAN&quot;,256:&quot;DEPTH_BUFFER_BIT&quot;,512:&quot;NEVER&quot;,513:&quot;LESS&quot;,514:&quot;EQUAL&quot;,515:&quot;LEQUAL&quot;,516:&quot;GREATER&quot;,517:&quot;NOTEQUAL&quot;,518:&quot;GEQUAL&quot;,519:&quot;ALWAYS&quot;,768:&quot;SRC_COLOR&quot;,769:&quot;ONE_MINUS_SRC_COLOR&quot;,770:&quot;SRC_ALPHA&quot;,771:&quot;ONE_MINUS_SRC_ALPHA&quot;,772:&quot;DST_ALPHA&quot;,773:&quot;ONE_MINUS_DST_ALPHA&quot;,774:&quot;DST_COLOR&quot;,775:&quot;ONE_MINUS_DST_COLOR&quot;,776:&quot;SRC_ALPHA_SATURATE&quot;,1024:&quot;STENCIL_BUFFER_BIT&quot;,1028:&quot;FRONT&quot;,1029:&quot;BACK&quot;,1032:&quot;FRONT_AND_BACK&quot;,1280:&quot;INVALID_ENUM&quot;,1281:&quot;INVALID_VALUE&quot;,1282:&quot;INVALID_OPERATION&quot;,1285:&quot;OUT_OF_MEMORY&quot;,1286:&quot;INVALID_FRAMEBUFFER_OPERATION&quot;,2304:&quot;CW&quot;,2305:&quot;CCW&quot;,2849:&quot;LINE_WIDTH&quot;,2884:&quot;CULL_FACE&quot;,2885:&quot;CULL_FACE_MODE&quot;,2886:&quot;FRONT_FACE&quot;,2928:&quot;DEPTH_RANGE&quot;,2929:&quot;DEPTH_TEST&quot;,2930:&quot;DEPTH_WRITEMASK&quot;,2931:&quot;DEPTH_CLEAR_VALUE&quot;,2932:&quot;DEPTH_FUNC&quot;,2960:&quot;STENCIL_TEST&quot;,2961:&quot;STENCIL_CLEAR_VALUE&quot;,2962:&quot;STENCIL_FUNC&quot;,2963:&quot;STENCIL_VALUE_MASK&quot;,2964:&quot;STENCIL_FAIL&quot;,2965:&quot;STENCIL_PASS_DEPTH_FAIL&quot;,2966:&quot;STENCIL_PASS_DEPTH_PASS&quot;,2967:&quot;STENCIL_REF&quot;,2968:&quot;STENCIL_WRITEMASK&quot;,2978:&quot;VIEWPORT&quot;,3024:&quot;DITHER&quot;,3042:&quot;BLEND&quot;,3088:&quot;SCISSOR_BOX&quot;,3089:&quot;SCISSOR_TEST&quot;,3106:&quot;COLOR_CLEAR_VALUE&quot;,3107:&quot;COLOR_WRITEMASK&quot;,3317:&quot;UNPACK_ALIGNMENT&quot;,3333:&quot;PACK_ALIGNMENT&quot;,3379:&quot;MAX_TEXTURE_SIZE&quot;,3386:&quot;MAX_VIEWPORT_DIMS&quot;,3408:&quot;SUBPIXEL_BITS&quot;,3410:&quot;RED_BITS&quot;,3411:&quot;GREEN_BITS&quot;,3412:&quot;BLUE_BITS&quot;,3413:&quot;ALPHA_BITS&quot;,3414:&quot;DEPTH_BITS&quot;,3415:&quot;STENCIL_BITS&quot;,3553:&quot;TEXTURE_2D&quot;,4352:&quot;DONT_CARE&quot;,4353:&quot;FASTEST&quot;,4354:&quot;NICEST&quot;,5120:&quot;BYTE&quot;,5121:&quot;UNSIGNED_BYTE&quot;,5122:&quot;SHORT&quot;,5123:&quot;UNSIGNED_SHORT&quot;,5124:&quot;INT&quot;,5125:&quot;UNSIGNED_INT&quot;,5126:&quot;FLOAT&quot;,5386:&quot;INVERT&quot;,5890:&quot;TEXTURE&quot;,6401:&quot;STENCIL_INDEX&quot;,6402:&quot;DEPTH_COMPONENT&quot;,6406:&quot;ALPHA&quot;,6407:&quot;RGB&quot;,6408:&quot;RGBA&quot;,6409:&quot;LUMINANCE&quot;,6410:&quot;LUMINANCE_ALPHA&quot;,7680:&quot;KEEP&quot;,7681:&quot;REPLACE&quot;,7682:&quot;INCR&quot;,7683:&quot;DECR&quot;,7936:&quot;VENDOR&quot;,7937:&quot;RENDERER&quot;,7938:&quot;VERSION&quot;,9728:&quot;NEAREST&quot;,9729:&quot;LINEAR&quot;,9984:&quot;NEAREST_MIPMAP_NEAREST&quot;,9985:&quot;LINEAR_MIPMAP_NEAREST&quot;,9986:&quot;NEAREST_MIPMAP_LINEAR&quot;,9987:&quot;LINEAR_MIPMAP_LINEAR&quot;,10240:&quot;TEXTURE_MAG_FILTER&quot;,10241:&quot;TEXTURE_MIN_FILTER&quot;,10242:&quot;TEXTURE_WRAP_S&quot;,10243:&quot;TEXTURE_WRAP_T&quot;,10497:&quot;REPEAT&quot;,10752:&quot;POLYGON_OFFSET_UNITS&quot;,16384:&quot;COLOR_BUFFER_BIT&quot;,32769:&quot;CONSTANT_COLOR&quot;,32770:&quot;ONE_MINUS_CONSTANT_COLOR&quot;,32771:&quot;CONSTANT_ALPHA&quot;,32772:&quot;ONE_MINUS_CONSTANT_ALPHA&quot;,32773:&quot;BLEND_COLOR&quot;,32774:&quot;FUNC_ADD&quot;,32777:&quot;BLEND_EQUATION_RGB&quot;,32778:&quot;FUNC_SUBTRACT&quot;,32779:&quot;FUNC_REVERSE_SUBTRACT&quot;,32819:&quot;UNSIGNED_SHORT_4_4_4_4&quot;,32820:&quot;UNSIGNED_SHORT_5_5_5_1&quot;,32823:&quot;POLYGON_OFFSET_FILL&quot;,32824:&quot;POLYGON_OFFSET_FACTOR&quot;,32854:&quot;RGBA4&quot;,32855:&quot;RGB5_A1&quot;,32873:&quot;TEXTURE_BINDING_2D&quot;,32926:&quot;SAMPLE_ALPHA_TO_COVERAGE&quot;,32928:&quot;SAMPLE_COVERAGE&quot;,32936:&quot;SAMPLE_BUFFERS&quot;,32937:&quot;SAMPLES&quot;,32938:&quot;SAMPLE_COVERAGE_VALUE&quot;,32939:&quot;SAMPLE_COVERAGE_INVERT&quot;,32968:&quot;BLEND_DST_RGB&quot;,32969:&quot;BLEND_SRC_RGB&quot;,32970:&quot;BLEND_DST_ALPHA&quot;,32971:&quot;BLEND_SRC_ALPHA&quot;,33071:&quot;CLAMP_TO_EDGE&quot;,33170:&quot;GENERATE_MIPMAP_HINT&quot;,33189:&quot;DEPTH_COMPONENT16&quot;,33306:&quot;DEPTH_STENCIL_ATTACHMENT&quot;,33635:&quot;UNSIGNED_SHORT_5_6_5&quot;,33648:&quot;MIRRORED_REPEAT&quot;,33901:&quot;ALIASED_POINT_SIZE_RANGE&quot;,33902:&quot;ALIASED_LINE_WIDTH_RANGE&quot;,33984:&quot;TEXTURE0&quot;,33985:&quot;TEXTURE1&quot;,33986:&quot;TEXTURE2&quot;,33987:&quot;TEXTURE3&quot;,33988:&quot;TEXTURE4&quot;,33989:&quot;TEXTURE5&quot;,33990:&quot;TEXTURE6&quot;,33991:&quot;TEXTURE7&quot;,33992:&quot;TEXTURE8&quot;,33993:&quot;TEXTURE9&quot;,33994:&quot;TEXTURE10&quot;,33995:&quot;TEXTURE11&quot;,33996:&quot;TEXTURE12&quot;,33997:&quot;TEXTURE13&quot;,33998:&quot;TEXTURE14&quot;,33999:&quot;TEXTURE15&quot;,34e3:&quot;TEXTURE16&quot;,34001:&quot;TEXTURE17&quot;,34002:&quot;TEXTURE18&quot;,34003:&quot;TEXTURE19&quot;,34004:&quot;TEXTURE20&quot;,34005:&quot;TEXTURE21&quot;,34006:&quot;TEXTURE22&quot;,34007:&quot;TEXTURE23&quot;,34008:&quot;TEXTURE24&quot;,34009:&quot;TEXTURE25&quot;,34010:&quot;TEXTURE26&quot;,34011:&quot;TEXTURE27&quot;,34012:&quot;TEXTURE28&quot;,34013:&quot;TEXTURE29&quot;,34014:&quot;TEXTURE30&quot;,34015:&quot;TEXTURE31&quot;,34016:&quot;ACTIVE_TEXTURE&quot;,34024:&quot;MAX_RENDERBUFFER_SIZE&quot;,34041:&quot;DEPTH_STENCIL&quot;,34055:&quot;INCR_WRAP&quot;,34056:&quot;DECR_WRAP&quot;,34067:&quot;TEXTURE_CUBE_MAP&quot;,34068:&quot;TEXTURE_BINDING_CUBE_MAP&quot;,34069:&quot;TEXTURE_CUBE_MAP_POSITIVE_X&quot;,34070:&quot;TEXTURE_CUBE_MAP_NEGATIVE_X&quot;,34071:&quot;TEXTURE_CUBE_MAP_POSITIVE_Y&quot;,34072:&quot;TEXTURE_CUBE_MAP_NEGATIVE_Y&quot;,34073:&quot;TEXTURE_CUBE_MAP_POSITIVE_Z&quot;,34074:&quot;TEXTURE_CUBE_MAP_NEGATIVE_Z&quot;,34076:&quot;MAX_CUBE_MAP_TEXTURE_SIZE&quot;,34338:&quot;VERTEX_ATTRIB_ARRAY_ENABLED&quot;,34339:&quot;VERTEX_ATTRIB_ARRAY_SIZE&quot;,34340:&quot;VERTEX_ATTRIB_ARRAY_STRIDE&quot;,34341:&quot;VERTEX_ATTRIB_ARRAY_TYPE&quot;,34342:&quot;CURRENT_VERTEX_ATTRIB&quot;,34373:&quot;VERTEX_ATTRIB_ARRAY_POINTER&quot;,34466:&quot;NUM_COMPRESSED_TEXTURE_FORMATS&quot;,34467:&quot;COMPRESSED_TEXTURE_FORMATS&quot;,34660:&quot;BUFFER_SIZE&quot;,34661:&quot;BUFFER_USAGE&quot;,34816:&quot;STENCIL_BACK_FUNC&quot;,34817:&quot;STENCIL_BACK_FAIL&quot;,34818:&quot;STENCIL_BACK_PASS_DEPTH_FAIL&quot;,34819:&quot;STENCIL_BACK_PASS_DEPTH_PASS&quot;,34877:&quot;BLEND_EQUATION_ALPHA&quot;,34921:&quot;MAX_VERTEX_ATTRIBS&quot;,34922:&quot;VERTEX_ATTRIB_ARRAY_NORMALIZED&quot;,34930:&quot;MAX_TEXTURE_IMAGE_UNITS&quot;,34962:&quot;ARRAY_BUFFER&quot;,34963:&quot;ELEMENT_ARRAY_BUFFER&quot;,34964:&quot;ARRAY_BUFFER_BINDING&quot;,34965:&quot;ELEMENT_ARRAY_BUFFER_BINDING&quot;,34975:&quot;VERTEX_ATTRIB_ARRAY_BUFFER_BINDING&quot;,35040:&quot;STREAM_DRAW&quot;,35044:&quot;STATIC_DRAW&quot;,35048:&quot;DYNAMIC_DRAW&quot;,35632:&quot;FRAGMENT_SHADER&quot;,35633:&quot;VERTEX_SHADER&quot;,35660:&quot;MAX_VERTEX_TEXTURE_IMAGE_UNITS&quot;,35661:&quot;MAX_COMBINED_TEXTURE_IMAGE_UNITS&quot;,35663:&quot;SHADER_TYPE&quot;,35664:&quot;FLOAT_VEC2&quot;,35665:&quot;FLOAT_VEC3&quot;,35666:&quot;FLOAT_VEC4&quot;,35667:&quot;INT_VEC2&quot;,35668:&quot;INT_VEC3&quot;,35669:&quot;INT_VEC4&quot;,35670:&quot;BOOL&quot;,35671:&quot;BOOL_VEC2&quot;,35672:&quot;BOOL_VEC3&quot;,35673:&quot;BOOL_VEC4&quot;,35674:&quot;FLOAT_MAT2&quot;,35675:&quot;FLOAT_MAT3&quot;,35676:&quot;FLOAT_MAT4&quot;,35678:&quot;SAMPLER_2D&quot;,35680:&quot;SAMPLER_CUBE&quot;,35712:&quot;DELETE_STATUS&quot;,35713:&quot;COMPILE_STATUS&quot;,35714:&quot;LINK_STATUS&quot;,35715:&quot;VALIDATE_STATUS&quot;,35716:&quot;INFO_LOG_LENGTH&quot;,35717:&quot;ATTACHED_SHADERS&quot;,35718:&quot;ACTIVE_UNIFORMS&quot;,35719:&quot;ACTIVE_UNIFORM_MAX_LENGTH&quot;,35720:&quot;SHADER_SOURCE_LENGTH&quot;,35721:&quot;ACTIVE_ATTRIBUTES&quot;,35722:&quot;ACTIVE_ATTRIBUTE_MAX_LENGTH&quot;,35724:&quot;SHADING_LANGUAGE_VERSION&quot;,35725:&quot;CURRENT_PROGRAM&quot;,36003:&quot;STENCIL_BACK_REF&quot;,36004:&quot;STENCIL_BACK_VALUE_MASK&quot;,36005:&quot;STENCIL_BACK_WRITEMASK&quot;,36006:&quot;FRAMEBUFFER_BINDING&quot;,36007:&quot;RENDERBUFFER_BINDING&quot;,36048:&quot;FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE&quot;,36049:&quot;FRAMEBUFFER_ATTACHMENT_OBJECT_NAME&quot;,36050:&quot;FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL&quot;,36051:&quot;FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE&quot;,36053:&quot;FRAMEBUFFER_COMPLETE&quot;,36054:&quot;FRAMEBUFFER_INCOMPLETE_ATTACHMENT&quot;,36055:&quot;FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT&quot;,36057:&quot;FRAMEBUFFER_INCOMPLETE_DIMENSIONS&quot;,36061:&quot;FRAMEBUFFER_UNSUPPORTED&quot;,36064:&quot;COLOR_ATTACHMENT0&quot;,36096:&quot;DEPTH_ATTACHMENT&quot;,36128:&quot;STENCIL_ATTACHMENT&quot;,36160:&quot;FRAMEBUFFER&quot;,36161:&quot;RENDERBUFFER&quot;,36162:&quot;RENDERBUFFER_WIDTH&quot;,36163:&quot;RENDERBUFFER_HEIGHT&quot;,36164:&quot;RENDERBUFFER_INTERNAL_FORMAT&quot;,36168:&quot;STENCIL_INDEX8&quot;,36176:&quot;RENDERBUFFER_RED_SIZE&quot;,36177:&quot;RENDERBUFFER_GREEN_SIZE&quot;,36178:&quot;RENDERBUFFER_BLUE_SIZE&quot;,36179:&quot;RENDERBUFFER_ALPHA_SIZE&quot;,36180:&quot;RENDERBUFFER_DEPTH_SIZE&quot;,36181:&quot;RENDERBUFFER_STENCIL_SIZE&quot;,36194:&quot;RGB565&quot;,36336:&quot;LOW_FLOAT&quot;,36337:&quot;MEDIUM_FLOAT&quot;,36338:&quot;HIGH_FLOAT&quot;,36339:&quot;LOW_INT&quot;,36340:&quot;MEDIUM_INT&quot;,36341:&quot;HIGH_INT&quot;,36346:&quot;SHADER_COMPILER&quot;,36347:&quot;MAX_VERTEX_UNIFORM_VECTORS&quot;,36348:&quot;MAX_VARYING_VECTORS&quot;,36349:&quot;MAX_FRAGMENT_UNIFORM_VECTORS&quot;,37440:&quot;UNPACK_FLIP_Y_WEBGL&quot;,37441:&quot;UNPACK_PREMULTIPLY_ALPHA_WEBGL&quot;,37442:&quot;CONTEXT_LOST_WEBGL&quot;,37443:&quot;UNPACK_COLORSPACE_CONVERSION_WEBGL&quot;,37444:&quot;BROWSER_DEFAULT_WEBGL&quot;}},{}],265:[function(t,e,r){var n=t(&quot;./1.0/numbers&quot;);e.exports=function(t){return n[t]}},{&quot;./1.0/numbers&quot;:264}],266:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),o=i(e,[{buffer:r,type:e.FLOAT,size:3,offset:0,stride:40},{buffer:r,type:e.FLOAT,size:4,offset:12,stride:40},{buffer:r,type:e.FLOAT,size:3,offset:28,stride:40}]),l=a(e);l.attributes.position.location=0,l.attributes.color.location=1,l.attributes.offset.location=2;var c=new s(e,r,o,l);return c.update(t),c};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders/index&quot;),o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.shader=n,this.buffer=e,this.vao=r,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var l=s.prototype;function c(t,e){for(var r=0;r&lt;3;++r)t[0][r]=Math.min(t[0][r],e[r]),t[1][r]=Math.max(t[1][r],e[r])}l.isOpaque=function(){return!this.hasAlpha},l.isTransparent=function(){return this.hasAlpha},l.drawTransparent=l.draw=function(t){var e=this.gl,r=this.shader.uniforms;this.shader.bind();var n=r.view=t.view||o,i=r.projection=t.projection||o;r.model=t.model||o,r.clipBounds=this.clipBounds,r.opacity=this.opacity;var a=n[12],s=n[13],l=n[14],c=n[15],u=(t._ortho||!1?2:1)*this.pixelRatio*(i[3]*a+i[7]*s+i[11]*l+i[15]*c)/e.drawingBufferHeight;this.vao.bind();for(var f=0;f&lt;3;++f)e.lineWidth(this.lineWidth[f]*this.pixelRatio),r.capSize=this.capSize[f]*u,this.lineCount[f]&amp;&amp;e.drawArrays(e.LINES,this.lineOffset[f],this.lineCount[f]);this.vao.unbind()};var u=function(){for(var t=new Array(3),e=0;e&lt;3;++e){for(var r=[],n=1;n&lt;=2;++n)for(var i=-1;i&lt;=1;i+=2){var a=[0,0,0];a[(n+e)%3]=i,r.push(a)}t[e]=r}return t}();function f(t,e,r,n){for(var i=u[n],a=0;a&lt;i.length;++a){var o=i[a];t.push(e[0],e[1],e[2],r[0],r[1],r[2],r[3],o[0],o[1],o[2])}return i.length}l.update=function(t){&quot;lineWidth&quot;in(t=t||{})&amp;&amp;(this.lineWidth=t.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),&quot;capSize&quot;in t&amp;&amp;(this.capSize=t.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=+t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0));var e=t.color||[[0,0,0],[0,0,0],[0,0,0]],r=t.position,n=t.error;if(Array.isArray(e[0])||(e=[e,e,e]),r&amp;&amp;n){var i=[],a=r.length,o=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var s=0;s&lt;3;++s){this.lineOffset[s]=o;t:for(var l=0;l&lt;a;++l){for(var u=r[l],h=0;h&lt;3;++h)if(isNaN(u[h])||!isFinite(u[h]))continue t;var p=n[l],d=e[s];if(Array.isArray(d[0])&amp;&amp;(d=e[l]),3===d.length?d=[d[0],d[1],d[2],1]:4===d.length&amp;&amp;(d=[d[0],d[1],d[2],d[3]],!this.hasAlpha&amp;&amp;d[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),!isNaN(p[0][s])&amp;&amp;!isNaN(p[1][s])){var g;if(p[0][s]&lt;0)(g=u.slice())[s]+=p[0][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s);if(p[1][s]&gt;0)(g=u.slice())[s]+=p[1][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s)}}this.lineCount[s]=o-this.lineOffset[s]}this.buffer.update(i)}},l.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},{&quot;./shaders/index&quot;:268,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],267:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],268:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, offset;\nattribute vec4 color;\nuniform mat4 model, view, projection;\nuniform float capSize;\nvarying vec4 fragColor;\nvarying vec3 fragPosition;\n\nvoid main() {\n  vec4 worldPosition  = model * vec4(position, 1.0);\n  worldPosition       = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\n  gl_Position         = projection * view * worldPosition;\n  fragColor           = color;\n  fragPosition        = position;\n}&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float opacity;\nvarying vec3 fragPosition;\nvarying vec4 fragColor;\n\nvoid main() {\n  if (\n    outOfRange(clipBounds[0], clipBounds[1], fragPosition) ||\n    fragColor.a * opacity == 0.\n  ) discard;\n\n  gl_FragColor = opacity * fragColor;\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;offset&quot;,type:&quot;vec3&quot;}])}},{&quot;gl-shader&quot;:335,glslify:267}],269:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-texture2d&quot;);e.exports=function(t,e,r,n){i||(i=t.FRAMEBUFFER_UNSUPPORTED,a=t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,o=t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,s=t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var c=t.getExtension(&quot;WEBGL_draw_buffers&quot;);!l&amp;&amp;c&amp;&amp;function(t,e){var r=t.getParameter(e.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(r+1);for(var n=0;n&lt;=r;++n){for(var i=new Array(r),a=0;a&lt;n;++a)i[a]=t.COLOR_ATTACHMENT0+a;for(a=n;a&lt;r;++a)i[a]=t.NONE;l[n]=i}}(t,c);Array.isArray(e)&amp;&amp;(n=r,r=0|e[1],e=0|e[0]);if(&quot;number&quot;!=typeof e)throw new Error(&quot;gl-fbo: Missing shape parameter&quot;);var u=t.getParameter(t.MAX_RENDERBUFFER_SIZE);if(e&lt;0||e&gt;u||r&lt;0||r&gt;u)throw new Error(&quot;gl-fbo: Parameters are too large for FBO&quot;);var f=1;if(&quot;color&quot;in(n=n||{})){if((f=Math.max(0|n.color,0))&lt;0)throw new Error(&quot;gl-fbo: Must specify a nonnegative number of colors&quot;);if(f&gt;1){if(!c)throw new Error(&quot;gl-fbo: Multiple draw buffer extension not supported&quot;);if(f&gt;t.getParameter(c.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error(&quot;gl-fbo: Context does not support &quot;+f+&quot; draw buffers&quot;)}}var h=t.UNSIGNED_BYTE,p=t.getExtension(&quot;OES_texture_float&quot;);if(n.float&amp;&amp;f&gt;0){if(!p)throw new Error(&quot;gl-fbo: Context does not support floating point textures&quot;);h=t.FLOAT}else n.preferFloat&amp;&amp;f&gt;0&amp;&amp;p&amp;&amp;(h=t.FLOAT);var g=!0;&quot;depth&quot;in n&amp;&amp;(g=!!n.depth);var m=!1;&quot;stencil&quot;in n&amp;&amp;(m=!!n.stencil);return new d(t,e,r,h,f,g,m,c)};var i,a,o,s,l=null;function c(t){return[t.getParameter(t.FRAMEBUFFER_BINDING),t.getParameter(t.RENDERBUFFER_BINDING),t.getParameter(t.TEXTURE_BINDING_2D)]}function u(t,e){t.bindFramebuffer(t.FRAMEBUFFER,e[0]),t.bindRenderbuffer(t.RENDERBUFFER,e[1]),t.bindTexture(t.TEXTURE_2D,e[2])}function f(t){switch(t){case i:throw new Error(&quot;gl-fbo: Framebuffer unsupported&quot;);case a:throw new Error(&quot;gl-fbo: Framebuffer incomplete attachment&quot;);case o:throw new Error(&quot;gl-fbo: Framebuffer incomplete dimensions&quot;);case s:throw new Error(&quot;gl-fbo: Framebuffer incomplete missing attachment&quot;);default:throw new Error(&quot;gl-fbo: Framebuffer failed for unspecified reason&quot;)}}function h(t,e,r,i,a,o){if(!i)return null;var s=n(t,e,r,a,i);return s.magFilter=t.NEAREST,s.minFilter=t.NEAREST,s.mipSamples=1,s.bind(),t.framebufferTexture2D(t.FRAMEBUFFER,o,t.TEXTURE_2D,s.handle,0),s}function p(t,e,r,n,i){var a=t.createRenderbuffer();return t.bindRenderbuffer(t.RENDERBUFFER,a),t.renderbufferStorage(t.RENDERBUFFER,n,e,r),t.framebufferRenderbuffer(t.FRAMEBUFFER,i,t.RENDERBUFFER,a),a}function d(t,e,r,n,i,a,o,s){this.gl=t,this._shape=[0|e,0|r],this._destroyed=!1,this._ext=s,this.color=new Array(i);for(var d=0;d&lt;i;++d)this.color[d]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=n,this._useDepth=a,this._useStencil=o;var g=this,m=[0|e,0|r];Object.defineProperties(m,{0:{get:function(){return g._shape[0]},set:function(t){return g.width=t}},1:{get:function(){return g._shape[1]},set:function(t){return g.height=t}}}),this._shapeVector=m,function(t){var e=c(t.gl),r=t.gl,n=t.handle=r.createFramebuffer(),i=t._shape[0],a=t._shape[1],o=t.color.length,s=t._ext,d=t._useStencil,g=t._useDepth,m=t._colorType;r.bindFramebuffer(r.FRAMEBUFFER,n);for(var v=0;v&lt;o;++v)t.color[v]=h(r,i,a,m,r.RGBA,r.COLOR_ATTACHMENT0+v);0===o?(t._color_rb=p(r,i,a,r.RGBA4,r.COLOR_ATTACHMENT0),s&amp;&amp;s.drawBuffersWEBGL(l[0])):o&gt;1&amp;&amp;s.drawBuffersWEBGL(l[o]);var y=r.getExtension(&quot;WEBGL_depth_texture&quot;);y?d?t.depth=h(r,i,a,y.UNSIGNED_INT_24_8_WEBGL,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g&amp;&amp;(t.depth=h(r,i,a,r.UNSIGNED_SHORT,r.DEPTH_COMPONENT,r.DEPTH_ATTACHMENT)):g&amp;&amp;d?t._depth_rb=p(r,i,a,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g?t._depth_rb=p(r,i,a,r.DEPTH_COMPONENT16,r.DEPTH_ATTACHMENT):d&amp;&amp;(t._depth_rb=p(r,i,a,r.STENCIL_INDEX,r.STENCIL_ATTACHMENT));var x=r.checkFramebufferStatus(r.FRAMEBUFFER);if(x!==r.FRAMEBUFFER_COMPLETE){t._destroyed=!0,r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(t.handle),t.handle=null,t.depth&amp;&amp;(t.depth.dispose(),t.depth=null),t._depth_rb&amp;&amp;(r.deleteRenderbuffer(t._depth_rb),t._depth_rb=null);for(v=0;v&lt;t.color.length;++v)t.color[v].dispose(),t.color[v]=null;t._color_rb&amp;&amp;(r.deleteRenderbuffer(t._color_rb),t._color_rb=null),u(r,e),f(x)}u(r,e)}(this)}var g=d.prototype;function m(t,e,r){if(t._destroyed)throw new Error(&quot;gl-fbo: Can't resize destroyed FBO&quot;);if(t._shape[0]!==e||t._shape[1]!==r){var n=t.gl,i=n.getParameter(n.MAX_RENDERBUFFER_SIZE);if(e&lt;0||e&gt;i||r&lt;0||r&gt;i)throw new Error(&quot;gl-fbo: Can't resize FBO, invalid dimensions&quot;);t._shape[0]=e,t._shape[1]=r;for(var a=c(n),o=0;o&lt;t.color.length;++o)t.color[o].shape=t._shape;t._color_rb&amp;&amp;(n.bindRenderbuffer(n.RENDERBUFFER,t._color_rb),n.renderbufferStorage(n.RENDERBUFFER,n.RGBA4,t._shape[0],t._shape[1])),t.depth&amp;&amp;(t.depth.shape=t._shape),t._depth_rb&amp;&amp;(n.bindRenderbuffer(n.RENDERBUFFER,t._depth_rb),t._useDepth&amp;&amp;t._useStencil?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t._shape[0],t._shape[1]):t._useDepth?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_COMPONENT16,t._shape[0],t._shape[1]):t._useStencil&amp;&amp;n.renderbufferStorage(n.RENDERBUFFER,n.STENCIL_INDEX,t._shape[0],t._shape[1])),n.bindFramebuffer(n.FRAMEBUFFER,t.handle);var s=n.checkFramebufferStatus(n.FRAMEBUFFER);s!==n.FRAMEBUFFER_COMPLETE&amp;&amp;(t.dispose(),u(n,a),f(s)),u(n,a)}}Object.defineProperties(g,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(t){if(Array.isArray(t)||(t=[0|t,0|t]),2!==t.length)throw new Error(&quot;gl-fbo: Shape vector must be length 2&quot;);var e=0|t[0],r=0|t[1];return m(this,e,r),[e,r]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(t){return m(this,t|=0,this._shape[1]),t},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(t){return t|=0,m(this,this._shape[0],t),t},enumerable:!1}}),g.bind=function(){if(!this._destroyed){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,this.handle),t.viewport(0,0,this._shape[0],this._shape[1])}},g.dispose=function(){if(!this._destroyed){this._destroyed=!0;var t=this.gl;t.deleteFramebuffer(this.handle),this.handle=null,this.depth&amp;&amp;(this.depth.dispose(),this.depth=null),this._depth_rb&amp;&amp;(t.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var e=0;e&lt;this.color.length;++e)this.color[e].dispose(),this.color[e]=null;this._color_rb&amp;&amp;(t.deleteRenderbuffer(this._color_rb),this._color_rb=null)}}},{&quot;gl-texture2d&quot;:353}],270:[function(t,e,r){var n=t(&quot;sprintf-js&quot;).sprintf,i=t(&quot;gl-constants/lookup&quot;),a=t(&quot;glsl-shader-name&quot;),o=t(&quot;add-line-numbers&quot;);e.exports=function(t,e,r){&quot;use strict&quot;;var s=a(e)||&quot;of unknown name (see npm glsl-shader-name)&quot;,l=&quot;unknown type&quot;;void 0!==r&amp;&amp;(l=r===i.FRAGMENT_SHADER?&quot;fragment&quot;:&quot;vertex&quot;);for(var c=n(&quot;Error compiling %s shader %s:\n&quot;,l,s),u=n(&quot;%s%s&quot;,c,t),f=t.split(&quot;\n&quot;),h={},p=0;p&lt;f.length;p++){var d=f[p];if(&quot;&quot;!==d&amp;&amp;&quot;\0&quot;!==d){var g=parseInt(d.split(&quot;:&quot;)[2]);if(isNaN(g))throw new Error(n(&quot;Could not parse error: %s&quot;,d));h[g]=d}}var m=o(e).split(&quot;\n&quot;);for(p=0;p&lt;m.length;p++)if(h[p+3]||h[p+2]||h[p+1]){var v=m[p];if(c+=v+&quot;\n&quot;,h[p+1]){var y=h[p+1];y=y.substr(y.split(&quot;:&quot;,3).join(&quot;:&quot;).length+1).trim(),c+=n(&quot;^^^ %s\n\n&quot;,y)}}return{long:c.trim(),short:u.trim()}}},{&quot;add-line-numbers&quot;:66,&quot;gl-constants/lookup&quot;:265,&quot;glsl-shader-name&quot;:431,&quot;sprintf-js&quot;:567}],271:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.gl,n=o(r,l.vertex,l.fragment),i=o(r,l.pickVertex,l.pickFragment),a=s(r),u=s(r),f=s(r),h=s(r),p=new c(t,n,i,a,u,f,h);return p.update(e),t.addObject(p),p};var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;iota-array&quot;),a=t(&quot;typedarray-pool&quot;),o=t(&quot;gl-shader&quot;),s=t(&quot;gl-buffer&quot;),l=t(&quot;./lib/shaders&quot;);function c(t,e,r,n,i,a,o){this.plot=t,this.shader=e,this.pickShader=r,this.positionBuffer=n,this.weightBuffer=i,this.colorBuffer=a,this.idBuffer=o,this.xData=[],this.yData=[],this.shape=[0,0],this.bounds=[1/0,1/0,-1/0,-1/0],this.pickOffset=0}var u,f=c.prototype,h=[0,0,1,0,0,1,1,0,1,1,0,1];f.draw=(u=[1,0,0,0,1,0,0,0,1],function(){var t=this.plot,e=this.shader,r=this.bounds,n=this.numVertices;if(!(n&lt;=0)){var i=t.gl,a=t.dataBox,o=r[2]-r[0],s=r[3]-r[1],l=a[2]-a[0],c=a[3]-a[1];u[0]=2*o/l,u[4]=2*s/c,u[6]=2*(r[0]-a[0])/l-1,u[7]=2*(r[1]-a[1])/c-1,e.bind();var f=e.uniforms;f.viewTransform=u,f.shape=this.shape;var h=e.attributes;this.positionBuffer.bind(),h.position.pointer(),this.weightBuffer.bind(),h.weight.pointer(i.UNSIGNED_BYTE,!1),this.colorBuffer.bind(),h.color.pointer(i.UNSIGNED_BYTE,!0),i.drawArrays(i.TRIANGLES,0,n)}}),f.drawPick=function(){var t=[1,0,0,0,1,0,0,0,1],e=[0,0,0,0];return function(r){var n=this.plot,i=this.pickShader,a=this.bounds,o=this.numVertices;if(!(o&lt;=0)){var s=n.gl,l=n.dataBox,c=a[2]-a[0],u=a[3]-a[1],f=l[2]-l[0],h=l[3]-l[1];t[0]=2*c/f,t[4]=2*u/h,t[6]=2*(a[0]-l[0])/f-1,t[7]=2*(a[1]-l[1])/h-1;for(var p=0;p&lt;4;++p)e[p]=r&gt;&gt;8*p&amp;255;this.pickOffset=r,i.bind();var d=i.uniforms;d.viewTransform=t,d.pickOffset=e,d.shape=this.shape;var g=i.attributes;return this.positionBuffer.bind(),g.position.pointer(),this.weightBuffer.bind(),g.weight.pointer(s.UNSIGNED_BYTE,!1),this.idBuffer.bind(),g.pickId.pointer(s.UNSIGNED_BYTE,!1),s.drawArrays(s.TRIANGLES,0,o),r+this.shape[0]*this.shape[1]}}}(),f.pick=function(t,e,r){var n=this.pickOffset,i=this.shape[0]*this.shape[1];if(r&lt;n||r&gt;=n+i)return null;var a=r-n,o=this.xData,s=this.yData;return{object:this,pointId:a,dataCoord:[o[a%this.shape[0]],s[a/this.shape[0]|0]]}},f.update=function(t){var e=(t=t||{}).shape||[0,0],r=t.x||i(e[0]),o=t.y||i(e[1]),s=t.z||new Float32Array(e[0]*e[1]),l=!1!==t.zsmooth;this.xData=r,this.yData=o;var c,u,f,p,d=t.colorLevels||[0],g=t.colorValues||[0,0,0,1],m=d.length,v=this.bounds;l?(c=v[0]=r[0],u=v[1]=o[0],f=v[2]=r[r.length-1],p=v[3]=o[o.length-1]):(c=v[0]=r[0]+(r[1]-r[0])/2,u=v[1]=o[0]+(o[1]-o[0])/2,f=v[2]=r[r.length-1]+(r[r.length-1]-r[r.length-2])/2,p=v[3]=o[o.length-1]+(o[o.length-1]-o[o.length-2])/2);var y=1/(f-c),x=1/(p-u),b=e[0],_=e[1];this.shape=[b,_];var w=(l?(b-1)*(_-1):b*_)*(h.length&gt;&gt;&gt;1);this.numVertices=w;for(var T=a.mallocUint8(4*w),k=a.mallocFloat32(2*w),M=a.mallocUint8(2*w),A=a.mallocUint32(w),S=0,E=l?b-1:b,C=l?_-1:_,L=0;L&lt;C;++L){var I,P;l?(I=x*(o[L]-u),P=x*(o[L+1]-u)):(I=L&lt;_-1?x*(o[L]-(o[L+1]-o[L])/2-u):x*(o[L]-(o[L]-o[L-1])/2-u),P=L&lt;_-1?x*(o[L]+(o[L+1]-o[L])/2-u):x*(o[L]+(o[L]-o[L-1])/2-u));for(var z=0;z&lt;E;++z){var O,D;l?(O=y*(r[z]-c),D=y*(r[z+1]-c)):(O=z&lt;b-1?y*(r[z]-(r[z+1]-r[z])/2-c):y*(r[z]-(r[z]-r[z-1])/2-c),D=z&lt;b-1?y*(r[z]+(r[z+1]-r[z])/2-c):y*(r[z]+(r[z]-r[z-1])/2-c));for(var R=0;R&lt;h.length;R+=2){var F,B,N,j,U=h[R],V=h[R+1],q=s[l?(L+V)*b+(z+U):L*b+z],H=n.le(d,q);if(H&lt;0)F=g[0],B=g[1],N=g[2],j=g[3];else if(H===m-1)F=g[4*m-4],B=g[4*m-3],N=g[4*m-2],j=g[4*m-1];else{var G=(q-d[H])/(d[H+1]-d[H]),Y=1-G,W=4*H,X=4*(H+1);F=Y*g[W]+G*g[X],B=Y*g[W+1]+G*g[X+1],N=Y*g[W+2]+G*g[X+2],j=Y*g[W+3]+G*g[X+3]}T[4*S]=255*F,T[4*S+1]=255*B,T[4*S+2]=255*N,T[4*S+3]=255*j,k[2*S]=.5*O+.5*D,k[2*S+1]=.5*I+.5*P,M[2*S]=U,M[2*S+1]=V,A[S]=L*b+z,S+=1}}}this.positionBuffer.update(k),this.weightBuffer.update(M),this.colorBuffer.update(T),this.idBuffer.update(A),a.free(k),a.free(T),a.free(M),a.free(A)},f.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.positionBuffer.dispose(),this.weightBuffer.dispose(),this.colorBuffer.dispose(),this.idBuffer.dispose(),this.plot.removeObject(this)}},{&quot;./lib/shaders&quot;:272,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335,&quot;iota-array&quot;:463,&quot;typedarray-pool&quot;:595}],272:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;);e.exports={fragment:n([&quot;precision lowp float;\n#define GLSLIFY 1\nvarying vec4 fragColor;\nvoid main() {\n  gl_FragColor = vec4(fragColor.rgb * fragColor.a, fragColor.a);\n}\n&quot;]),vertex:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 color;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragColor;\n\nvoid main() {\n  vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n  fragColor = color;\n  gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n&quot;]),pickFragment:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nuniform vec2 shape;\nuniform vec4 pickOffset;\n\nvoid main() {\n  vec2 d = step(.5, vWeight);\n  vec4 id = fragId + pickOffset;\n  id.x += d.x + d.y*shape.x;\n\n  id.y += floor(id.x / 256.0);\n  id.x -= floor(id.x / 256.0) * 256.0;\n\n  id.z += floor(id.y / 256.0);\n  id.y -= floor(id.y / 256.0) * 256.0;\n\n  id.w += floor(id.z / 256.0);\n  id.z -= floor(id.z / 256.0) * 256.0;\n\n  gl_FragColor = id/255.;\n}\n&quot;]),pickVertex:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nvoid main() {\n  vWeight = weight;\n\n  fragId = pickId;\n\n  vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n  gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n&quot;])}},{glslify:273}],273:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],274:[function(t,e,r){var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, nextPosition;\nattribute float arcLength, lineWidth;\nattribute vec4 color;\n\nuniform vec2 screenShape;\nuniform float pixelRatio;\nuniform mat4 model, view, projection;\n\nvarying vec4 fragColor;\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\n\nvec4 project(vec3 p) {\n  return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n  vec4 startPoint = project(position);\n  vec4 endPoint   = project(nextPosition);\n\n  vec2 A = startPoint.xy / startPoint.w;\n  vec2 B =   endPoint.xy /   endPoint.w;\n\n  float clipAngle = atan(\n    (B.y - A.y) * screenShape.y,\n    (B.x - A.x) * screenShape.x\n  );\n\n  vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\n    sin(clipAngle),\n    -cos(clipAngle)\n  ) / screenShape;\n\n  gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\n\n  worldPosition = position;\n  pixelArcLength = arcLength;\n  fragColor = color;\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3      clipBounds[2];\nuniform sampler2D dashTexture;\nuniform float     dashScale;\nuniform float     opacity;\n\nvarying vec3    worldPosition;\nvarying float   pixelArcLength;\nvarying vec4    fragColor;\n\nvoid main() {\n  if (\n    outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||\n    fragColor.a * opacity == 0.\n  ) discard;\n\n  float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\n  if(dashWeight &lt; 0.5) {\n    discard;\n  }\n  gl_FragColor = fragColor * opacity;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\n#define FLOAT_MAX  1.70141184e38\n#define FLOAT_MIN  1.17549435e-38\n\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl\nvec4 packFloat(float v) {\n  float av = abs(v);\n\n  //Handle special cases\n  if(av &lt; FLOAT_MIN) {\n    return vec4(0.0, 0.0, 0.0, 0.0);\n  } else if(v &gt; FLOAT_MAX) {\n    return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\n  } else if(v &lt; -FLOAT_MAX) {\n    return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\n  }\n\n  vec4 c = vec4(0,0,0,0);\n\n  //Compute exponent and mantissa\n  float e = floor(log2(av));\n  float m = av * pow(2.0, -e) - 1.0;\n\n  //Unpack mantissa\n  c[1] = floor(128.0 * m);\n  m -= c[1] / 128.0;\n  c[2] = floor(32768.0 * m);\n  m -= c[2] / 32768.0;\n  c[3] = floor(8388608.0 * m);\n\n  //Unpack exponent\n  float ebias = e + 127.0;\n  c[0] = floor(ebias / 2.0);\n  ebias -= c[0] * 2.0;\n  c[1] += floor(ebias) * 128.0;\n\n  //Unpack sign bit\n  c[0] += 128.0 * step(0.0, -v);\n\n  //Scale back to range\n  return c / 255.0;\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform float pickId;\nuniform vec3 clipBounds[2];\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\n\n  gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);\n}&quot;]),l=[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;nextPosition&quot;,type:&quot;vec3&quot;},{name:&quot;arcLength&quot;,type:&quot;float&quot;},{name:&quot;lineWidth&quot;,type:&quot;float&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;}];r.createShader=function(t){return i(t,a,o,null,l)},r.createPickShader=function(t){return i(t,a,s,null,l)}},{&quot;gl-shader&quot;:335,glslify:276}],275:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl||t.scene&amp;&amp;t.scene.gl,r=f(e);r.attributes.position.location=0,r.attributes.nextPosition.location=1,r.attributes.arcLength.location=2,r.attributes.lineWidth.location=3,r.attributes.color.location=4;var o=h(e);o.attributes.position.location=0,o.attributes.nextPosition.location=1,o.attributes.arcLength.location=2,o.attributes.lineWidth.location=3,o.attributes.color.location=4;for(var s=n(e),l=i(e,[{buffer:s,size:3,offset:0,stride:48},{buffer:s,size:3,offset:12,stride:48},{buffer:s,size:1,offset:24,stride:48},{buffer:s,size:1,offset:28,stride:48},{buffer:s,size:4,offset:32,stride:48}]),u=c(new Array(1024),[256,1,4]),p=0;p&lt;1024;++p)u.data[p]=255;var d=a(e,u);d.wrap=e.REPEAT;var g=new v(e,r,o,s,l,d);return g.update(t),g};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;gl-texture2d&quot;),o=new Uint8Array(4),s=new Float32Array(o.buffer);var l=t(&quot;binary-search-bounds&quot;),c=t(&quot;ndarray&quot;),u=t(&quot;./lib/shaders&quot;),f=u.createShader,h=u.createPickShader,p=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function d(t,e){for(var r=0,n=0;n&lt;3;++n){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)}function g(t){for(var e=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],r=0;r&lt;3;++r)e[0][r]=Math.max(t[0][r],e[0][r]),e[1][r]=Math.min(t[1][r],e[1][r]);return e}function m(t,e,r,n){this.arcLength=t,this.position=e,this.index=r,this.dataCoordinate=n}function v(t,e,r,n,i,a){this.gl=t,this.shader=e,this.pickShader=r,this.buffer=n,this.vao=i,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=a,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var y=v.prototype;y.isTransparent=function(){return this.hasAlpha},y.isOpaque=function(){return!this.hasAlpha},y.pickSlots=1,y.setPickBase=function(t){this.pickId=t},y.drawTransparent=y.draw=function(t){if(this.vertexCount){var e=this.gl,r=this.shader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,clipBounds:g(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.drawPick=function(t){if(this.vertexCount){var e=this.gl,r=this.pickShader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,pickId:this.pickId,clipBounds:g(this.clipBounds),screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.update=function(t){var e,r;this.dirty=!0;var n=!!t.connectGaps;&quot;dashScale&quot;in t&amp;&amp;(this.dashScale=t.dashScale),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=+t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0));var i=[],a=[],o=[],s=0,u=0,f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],h=t.position||t.positions;if(h){var p=t.color||t.colors||[0,0,0,1],g=t.lineWidth||1,m=!1;t:for(e=1;e&lt;h.length;++e){var v,y,x,b=h[e-1],_=h[e];for(a.push(s),o.push(b.slice()),r=0;r&lt;3;++r){if(isNaN(b[r])||isNaN(_[r])||!isFinite(b[r])||!isFinite(_[r])){if(!n&amp;&amp;i.length&gt;0){for(var w=0;w&lt;24;++w)i.push(i[i.length-12]);u+=2,m=!0}continue t}f[0][r]=Math.min(f[0][r],b[r],_[r]),f[1][r]=Math.max(f[1][r],b[r],_[r])}Array.isArray(p[0])?(v=p.length&gt;e-1?p[e-1]:p.length&gt;0?p[p.length-1]:[0,0,0,1],y=p.length&gt;e?p[e]:p.length&gt;0?p[p.length-1]:[0,0,0,1]):v=y=p,3===v.length&amp;&amp;(v=[v[0],v[1],v[2],1]),3===y.length&amp;&amp;(y=[y[0],y[1],y[2],1]),!this.hasAlpha&amp;&amp;v[3]&lt;1&amp;&amp;(this.hasAlpha=!0),x=Array.isArray(g)?g.length&gt;e-1?g[e-1]:g.length&gt;0?g[g.length-1]:[0,0,0,1]:g;var T=s;if(s+=d(b,_),m){for(r=0;r&lt;2;++r)i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3]);u+=2,m=!1}i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3],b[0],b[1],b[2],_[0],_[1],_[2],T,-x,v[0],v[1],v[2],v[3],_[0],_[1],_[2],b[0],b[1],b[2],s,-x,y[0],y[1],y[2],y[3],_[0],_[1],_[2],b[0],b[1],b[2],s,x,y[0],y[1],y[2],y[3]),u+=4}}if(this.buffer.update(i),a.push(s),o.push(h[h.length-1].slice()),this.bounds=f,this.vertexCount=u,this.points=o,this.arcLength=a,&quot;dashes&quot;in t){var k=t.dashes.slice();for(k.unshift(0),e=1;e&lt;k.length;++e)k[e]=k[e-1]+k[e];var M=c(new Array(1024),[256,1,4]);for(e=0;e&lt;256;++e){for(r=0;r&lt;4;++r)M.set(e,0,r,0);1&amp;l.le(k,k[k.length-1]*e/255)?M.set(e,0,0,0):M.set(e,0,0,255)}this.texture.setPixels(M)}},y.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},y.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=function(t,e,r,n){return o[0]=n,o[1]=r,o[2]=e,o[3]=t,s[0]}(t.value[0],t.value[1],t.value[2],0),r=l.le(this.arcLength,e);if(r&lt;0)return null;if(r===this.arcLength.length-1)return new m(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),r);for(var n=this.points[r],i=this.points[Math.min(r+1,this.points.length-1)],a=(e-this.arcLength[r])/(this.arcLength[r+1]-this.arcLength[r]),c=1-a,u=[0,0,0],f=0;f&lt;3;++f)u[f]=c*n[f]+a*i[f];var h=Math.min(a&lt;.5?r:r+1,this.points.length-1);return new m(e,u,h,this.points[h])}},{&quot;./lib/shaders&quot;:274,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495}],276:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],277:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15];return t[0]=s*(h*v-p*m)-f*(l*v-c*m)+g*(l*p-c*h),t[1]=-(n*(h*v-p*m)-f*(i*v-a*m)+g*(i*p-a*h)),t[2]=n*(l*v-c*m)-s*(i*v-a*m)+g*(i*c-a*l),t[3]=-(n*(l*p-c*h)-s*(i*p-a*h)+f*(i*c-a*l)),t[4]=-(o*(h*v-p*m)-u*(l*v-c*m)+d*(l*p-c*h)),t[5]=r*(h*v-p*m)-u*(i*v-a*m)+d*(i*p-a*h),t[6]=-(r*(l*v-c*m)-o*(i*v-a*m)+d*(i*c-a*l)),t[7]=r*(l*p-c*h)-o*(i*p-a*h)+u*(i*c-a*l),t[8]=o*(f*v-p*g)-u*(s*v-c*g)+d*(s*p-c*f),t[9]=-(r*(f*v-p*g)-u*(n*v-a*g)+d*(n*p-a*f)),t[10]=r*(s*v-c*g)-o*(n*v-a*g)+d*(n*c-a*s),t[11]=-(r*(s*p-c*f)-o*(n*p-a*f)+u*(n*c-a*s)),t[12]=-(o*(f*m-h*g)-u*(s*m-l*g)+d*(s*h-l*f)),t[13]=r*(f*m-h*g)-u*(n*m-i*g)+d*(n*h-i*f),t[14]=-(r*(s*m-l*g)-o*(n*m-i*g)+d*(n*l-i*s)),t[15]=r*(s*h-l*f)-o*(n*h-i*f)+u*(n*l-i*s),t}},{}],278:[function(t,e,r){e.exports=function(t){var e=new Float32Array(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},{}],279:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],280:[function(t,e,r){e.exports=function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],281:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],f=t[10],h=t[11],p=t[12],d=t[13],g=t[14],m=t[15];return(e*o-r*a)*(f*m-h*g)-(e*s-n*a)*(u*m-h*d)+(e*l-i*a)*(u*g-f*d)+(r*s-n*o)*(c*m-h*p)-(r*l-i*o)*(c*g-f*p)+(n*l-i*s)*(c*d-u*p)}},{}],282:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,c=r*o,u=n*o,f=n*s,h=i*o,p=i*s,d=i*l,g=a*o,m=a*s,v=a*l;return t[0]=1-f-d,t[1]=u+v,t[2]=h-m,t[3]=0,t[4]=u-v,t[5]=1-c-d,t[6]=p+g,t[7]=0,t[8]=h+m,t[9]=p-g,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],283:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o=r[0],s=r[1],l=r[2],c=Math.sqrt(o*o+s*s+l*l);if(Math.abs(c)&lt;1e-6)return null;return o*=c=1/c,s*=c,l*=c,n=Math.sin(e),i=Math.cos(e),a=1-i,t[0]=o*o*a+i,t[1]=s*o*a+l*n,t[2]=l*o*a-s*n,t[3]=0,t[4]=o*s*a-l*n,t[5]=s*s*a+i,t[6]=l*s*a+o*n,t[7]=0,t[8]=o*l*a+s*n,t[9]=s*l*a-o*n,t[10]=l*l*a+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],284:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=n+n,l=i+i,c=a+a,u=n*s,f=n*l,h=n*c,p=i*l,d=i*c,g=a*c,m=o*s,v=o*l,y=o*c;return t[0]=1-(p+g),t[1]=f+y,t[2]=h-v,t[3]=0,t[4]=f-y,t[5]=1-(u+g),t[6]=d+m,t[7]=0,t[8]=h+v,t[9]=d-m,t[10]=1-(u+p),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}},{}],285:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],286:[function(t,e,r){e.exports=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}},{}],287:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],288:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],289:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],290:[function(t,e,r){e.exports=function(t,e,r,n,i,a,o){var s=1/(r-e),l=1/(i-n),c=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(i+n)*l,t[10]=(o+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*c,t[15]=0,t}},{}],291:[function(t,e,r){e.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],292:[function(t,e,r){e.exports={create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),copy:t(&quot;./copy&quot;),identity:t(&quot;./identity&quot;),transpose:t(&quot;./transpose&quot;),invert:t(&quot;./invert&quot;),adjoint:t(&quot;./adjoint&quot;),determinant:t(&quot;./determinant&quot;),multiply:t(&quot;./multiply&quot;),translate:t(&quot;./translate&quot;),scale:t(&quot;./scale&quot;),rotate:t(&quot;./rotate&quot;),rotateX:t(&quot;./rotateX&quot;),rotateY:t(&quot;./rotateY&quot;),rotateZ:t(&quot;./rotateZ&quot;),fromRotation:t(&quot;./fromRotation&quot;),fromRotationTranslation:t(&quot;./fromRotationTranslation&quot;),fromScaling:t(&quot;./fromScaling&quot;),fromTranslation:t(&quot;./fromTranslation&quot;),fromXRotation:t(&quot;./fromXRotation&quot;),fromYRotation:t(&quot;./fromYRotation&quot;),fromZRotation:t(&quot;./fromZRotation&quot;),fromQuat:t(&quot;./fromQuat&quot;),frustum:t(&quot;./frustum&quot;),perspective:t(&quot;./perspective&quot;),perspectiveFromFieldOfView:t(&quot;./perspectiveFromFieldOfView&quot;),ortho:t(&quot;./ortho&quot;),lookAt:t(&quot;./lookAt&quot;),str:t(&quot;./str&quot;)}},{&quot;./adjoint&quot;:277,&quot;./clone&quot;:278,&quot;./copy&quot;:279,&quot;./create&quot;:280,&quot;./determinant&quot;:281,&quot;./fromQuat&quot;:282,&quot;./fromRotation&quot;:283,&quot;./fromRotationTranslation&quot;:284,&quot;./fromScaling&quot;:285,&quot;./fromTranslation&quot;:286,&quot;./fromXRotation&quot;:287,&quot;./fromYRotation&quot;:288,&quot;./fromZRotation&quot;:289,&quot;./frustum&quot;:290,&quot;./identity&quot;:291,&quot;./invert&quot;:293,&quot;./lookAt&quot;:294,&quot;./multiply&quot;:295,&quot;./ortho&quot;:296,&quot;./perspective&quot;:297,&quot;./perspectiveFromFieldOfView&quot;:298,&quot;./rotate&quot;:299,&quot;./rotateX&quot;:300,&quot;./rotateY&quot;:301,&quot;./rotateZ&quot;:302,&quot;./scale&quot;:303,&quot;./str&quot;:304,&quot;./translate&quot;:305,&quot;./transpose&quot;:306}],293:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*g-f*d,M=u*m-h*d,A=u*v-p*d,S=f*m-h*g,E=f*v-p*g,C=h*v-p*m,L=y*C-x*E+b*S+_*A-w*M+T*k;if(!L)return null;return L=1/L,t[0]=(s*C-l*E+c*S)*L,t[1]=(i*E-n*C-a*S)*L,t[2]=(g*T-m*w+v*_)*L,t[3]=(h*w-f*T-p*_)*L,t[4]=(l*A-o*C-c*M)*L,t[5]=(r*C-i*A+a*M)*L,t[6]=(m*b-d*T-v*x)*L,t[7]=(u*T-h*b+p*x)*L,t[8]=(o*E-s*A+c*k)*L,t[9]=(n*A-r*E-a*k)*L,t[10]=(d*w-g*b+v*y)*L,t[11]=(f*b-u*w-p*y)*L,t[12]=(s*M-o*S-l*k)*L,t[13]=(r*S-n*M+i*k)*L,t[14]=(g*x-d*_-m*y)*L,t[15]=(u*_-f*x+h*y)*L,t}},{}],294:[function(t,e,r){var n=t(&quot;./identity&quot;);e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g=e[0],m=e[1],v=e[2],y=i[0],x=i[1],b=i[2],_=r[0],w=r[1],T=r[2];if(Math.abs(g-_)&lt;1e-6&amp;&amp;Math.abs(m-w)&lt;1e-6&amp;&amp;Math.abs(v-T)&lt;1e-6)return n(t);f=g-_,h=m-w,p=v-T,d=1/Math.sqrt(f*f+h*h+p*p),a=x*(p*=d)-b*(h*=d),o=b*(f*=d)-y*p,s=y*h-x*f,(d=Math.sqrt(a*a+o*o+s*s))?(a*=d=1/d,o*=d,s*=d):(a=0,o=0,s=0);l=h*s-p*o,c=p*a-f*s,u=f*o-h*a,(d=Math.sqrt(l*l+c*c+u*u))?(l*=d=1/d,c*=d,u*=d):(l=0,c=0,u=0);return t[0]=a,t[1]=l,t[2]=f,t[3]=0,t[4]=o,t[5]=c,t[6]=h,t[7]=0,t[8]=s,t[9]=u,t[10]=p,t[11]=0,t[12]=-(a*g+o*m+s*v),t[13]=-(l*g+c*m+u*v),t[14]=-(f*g+h*m+p*v),t[15]=1,t}},{&quot;./identity&quot;:291}],295:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],m=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*m,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,x=r[4],b=r[5],_=r[6],w=r[7],t[4]=x*n+b*s+_*f+w*g,t[5]=x*i+b*l+_*h+w*m,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,x=r[8],b=r[9],_=r[10],w=r[11],t[8]=x*n+b*s+_*f+w*g,t[9]=x*i+b*l+_*h+w*m,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,x=r[12],b=r[13],_=r[14],w=r[15],t[12]=x*n+b*s+_*f+w*g,t[13]=x*i+b*l+_*h+w*m,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}},{}],296:[function(t,e,r){e.exports=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t}},{}],297:[function(t,e,r){e.exports=function(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t}},{}],298:[function(t,e,r){e.exports=function(t,e,r,n){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),c=2/(i+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(i-a)*c*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t}},{}],299:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S,E=n[0],C=n[1],L=n[2],I=Math.sqrt(E*E+C*C+L*L);if(Math.abs(I)&lt;1e-6)return null;E*=I=1/I,C*=I,L*=I,i=Math.sin(r),a=Math.cos(r),o=1-a,s=e[0],l=e[1],c=e[2],u=e[3],f=e[4],h=e[5],p=e[6],d=e[7],g=e[8],m=e[9],v=e[10],y=e[11],x=E*E*o+a,b=C*E*o+L*i,_=L*E*o-C*i,w=E*C*o-L*i,T=C*C*o+a,k=L*C*o+E*i,M=E*L*o+C*i,A=C*L*o-E*i,S=L*L*o+a,t[0]=s*x+f*b+g*_,t[1]=l*x+h*b+m*_,t[2]=c*x+p*b+v*_,t[3]=u*x+d*b+y*_,t[4]=s*w+f*T+g*k,t[5]=l*w+h*T+m*k,t[6]=c*w+p*T+v*k,t[7]=u*w+d*T+y*k,t[8]=s*M+f*A+g*S,t[9]=l*M+h*A+m*S,t[10]=c*M+p*A+v*S,t[11]=u*M+d*A+y*S,e!==t&amp;&amp;(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t}},{}],300:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t}},{}],301:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i-c*n,t[1]=o*i-u*n,t[2]=s*i-f*n,t[3]=l*i-h*n,t[8]=a*n+c*i,t[9]=o*n+u*i,t[10]=s*n+f*i,t[11]=l*n+h*i,t}},{}],302:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t}},{}],303:[function(t,e,r){e.exports=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],304:[function(t,e,r){e.exports=function(t){return&quot;mat4(&quot;+t[0]+&quot;, &quot;+t[1]+&quot;, &quot;+t[2]+&quot;, &quot;+t[3]+&quot;, &quot;+t[4]+&quot;, &quot;+t[5]+&quot;, &quot;+t[6]+&quot;, &quot;+t[7]+&quot;, &quot;+t[8]+&quot;, &quot;+t[9]+&quot;, &quot;+t[10]+&quot;, &quot;+t[11]+&quot;, &quot;+t[12]+&quot;, &quot;+t[13]+&quot;, &quot;+t[14]+&quot;, &quot;+t[15]+&quot;)&quot;}},{}],305:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],m=r[1],v=r[2];e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*m+f*v+e[12],t[13]=i*g+l*m+h*v+e[13],t[14]=a*g+c*m+p*v+e[14],t[15]=o*g+u*m+d*v+e[15]);return t}},{}],306:[function(t,e,r){e.exports=function(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}},{}],307:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;barycentric&quot;),i=t(&quot;polytope-closest-point/lib/closest_point_2d.js&quot;);function a(t,e){for(var r=[0,0,0,0],n=0;n&lt;4;++n)for(var i=0;i&lt;4;++i)r[i]+=t[4*n+i]*e[n];return r}function o(t,e,r,n,i){for(var o=a(n,a(r,a(e,[t[0],t[1],t[2],1]))),s=0;s&lt;3;++s)o[s]/=o[3];return[.5*i[0]*(1+o[0]),.5*i[1]*(1-o[1])]}function s(t,e){for(var r=[0,0,0],n=0;n&lt;t.length;++n)for(var i=t[n],a=e[n],o=0;o&lt;3;++o)r[o]+=a*i[o];return r}e.exports=function(t,e,r,a,l,c){if(1===t.length)return[0,t[0].slice()];for(var u=new Array(t.length),f=0;f&lt;t.length;++f)u[f]=o(t[f],r,a,l,c);var h=0,p=1/0;for(f=0;f&lt;u.length;++f){for(var d=0,g=0;g&lt;2;++g)d+=Math.pow(u[f][g]-e[g],2);d&lt;p&amp;&amp;(p=d,h=f)}var m=function(t,e){if(2===t.length){for(var r=0,a=0,o=0;o&lt;2;++o)r+=Math.pow(e[o]-t[0][o],2),a+=Math.pow(e[o]-t[1][o],2);return r=Math.sqrt(r),a=Math.sqrt(a),r+a&lt;1e-6?[1,0]:[a/(r+a),r/(a+r)]}if(3===t.length){var s=[0,0];return i(t[0],t[1],t[2],e,s),n(t,s)}return[]}(u,e),v=0;for(f=0;f&lt;3;++f){if(m[f]&lt;-.001||m[f]&gt;1.0001)return null;v+=m[f]}if(Math.abs(v-1)&gt;.001)return null;return[h,s(t,m),m]}},{barycentric:78,&quot;polytope-closest-point/lib/closest_point_2d.js&quot;:525}],308:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n           , view\n           , projection\n           , inverseModel;\nuniform vec3 eyePosition\n           , lightPosition;\n\nvarying vec3 f_normal\n           , f_lightDirection\n           , f_eyeDirection\n           , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvec4 project(vec3 p) {\n  return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n  gl_Position      = project(position);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * vec4(position , 1.0);\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal  = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  f_color          = color;\n  f_data           = position;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n            , fresnel\n            , kambient\n            , kdiffuse\n            , kspecular;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n           , f_lightDirection\n           , f_eyeDirection\n           , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (f_color.a == 0.0 ||\n    outOfRange(clipBounds[0], clipBounds[1], f_data)\n  ) discard;\n\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\n\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * f_color.a;\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model, view, projection;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n  f_color = color;\n  f_data  = position;\n  f_uv    = uv;\n}&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\n\n  gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}&quot;]),l=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\nattribute float pointSize;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0);\n  } else {\n    gl_Position = projection * view * model * vec4(position, 1.0);\n  }\n  gl_PointSize = pointSize;\n  f_color = color;\n  f_uv = uv;\n}&quot;]),c=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5);\n  if(dot(pointR, pointR) &gt; 0.25) {\n    discard;\n  }\n  gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}&quot;]),u=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n  f_id        = id;\n  f_position  = position;\n}&quot;]),f=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]),h=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3  position;\nattribute float pointSize;\nattribute vec4  id;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0.0, 0.0, 0.0, 0.0);\n  } else {\n    gl_Position  = projection * view * model * vec4(position, 1.0);\n    gl_PointSize = pointSize;\n  }\n  f_id         = id;\n  f_position   = position;\n}&quot;]),p=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n}&quot;]),d=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec3 contourColor;\n\nvoid main() {\n  gl_FragColor = vec4(contourColor, 1.0);\n}\n&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;}]},r.wireShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;}]},r.pointShader={vertex:l,fragment:c,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;pointSize&quot;,type:&quot;float&quot;}]},r.pickShader={vertex:u,fragment:f,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}]},r.pointPickShader={vertex:h,fragment:f,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;pointSize&quot;,type:&quot;float&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}]},r.contourShader={vertex:p,fragment:d,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;}]}},{glslify:310}],309:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;normals&quot;),l=t(&quot;gl-mat4/multiply&quot;),c=t(&quot;gl-mat4/invert&quot;),u=t(&quot;ndarray&quot;),f=t(&quot;colormap&quot;),h=t(&quot;simplicial-complex-contour&quot;),p=t(&quot;typedarray-pool&quot;),d=t(&quot;./lib/shaders&quot;),g=t(&quot;./lib/closest-point&quot;),m=d.meshShader,v=d.wireShader,y=d.pointShader,x=d.pickShader,b=d.pointPickShader,_=d.contourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function T(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,T,k,M,A,S){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleColors=u,this.triangleNormals=h,this.triangleUVs=f,this.triangleIds=c,this.triangleVAO=p,this.triangleCount=0,this.lineWidth=1,this.edgePositions=d,this.edgeColors=m,this.edgeUVs=v,this.edgeIds=g,this.edgeVAO=y,this.edgeCount=0,this.pointPositions=x,this.pointColors=_,this.pointUVs=T,this.pointSizes=k,this.pointIds=b,this.pointVAO=M,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=A,this.contourVAO=S,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=w,this._view=w,this._projection=w,this._resolution=[1,1]}var k=T.prototype;function M(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;r&lt;e.length;++r){if(e.length&lt;2)return 1;if(e[r][0]===t)return e[r][1];if(e[r][0]&gt;t&amp;&amp;r&gt;0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}function A(t){var e=n(t,m.vertex,m.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.normal.location=4,e}function S(t){var e=n(t,v.vertex,v.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e}function E(t){var e=n(t,y.vertex,y.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.pointSize.location=4,e}function C(t){var e=n(t,x.vertex,x.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e}function L(t){var e=n(t,b.vertex,b.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e.attributes.pointSize.location=4,e}function I(t){var e=n(t,_.vertex,_.fragment);return e.attributes.position.location=0,e}k.isOpaque=function(){return!this.hasAlpha},k.isTransparent=function(){return this.hasAlpha},k.pickSlots=1,k.setPickBase=function(t){this.pickId=t},k.highlight=function(t){if(t&amp;&amp;this.contourEnable){for(var e=h(this.cells,this.intensity,t.intensity),r=e.cells,n=e.vertexIds,i=e.vertexWeights,a=r.length,o=p.mallocFloat32(6*a),s=0,l=0;l&lt;a;++l)for(var c=r[l],u=0;u&lt;2;++u){var f=c[0];2===c.length&amp;&amp;(f=c[u]);for(var d=n[f][0],g=n[f][1],m=i[f],v=1-m,y=this.positions[d],x=this.positions[g],b=0;b&lt;3;++b)o[s++]=m*y[b]+v*x[b]}this.contourCount=s/3|0,this.contourPositions.update(o.subarray(0,s)),p.free(o)}else this.contourCount=0},k.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,&quot;contourEnable&quot;in t&amp;&amp;(this.contourEnable=t.contourEnable),&quot;contourColor&quot;in t&amp;&amp;(this.contourColor=t.contourColor),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;lightPosition&quot;in t&amp;&amp;(this.lightPosition=t.lightPosition),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0)),&quot;opacityscale&quot;in t&amp;&amp;(this.opacityscale=t.opacityscale,this.hasAlpha=!0),&quot;ambient&quot;in t&amp;&amp;(this.ambientLight=t.ambient),&quot;diffuse&quot;in t&amp;&amp;(this.diffuseLight=t.diffuse),&quot;specular&quot;in t&amp;&amp;(this.specularLight=t.specular),&quot;roughness&quot;in t&amp;&amp;(this.roughness=t.roughness),&quot;fresnel&quot;in t&amp;&amp;(this.fresnel=t.fresnel),t.texture?(this.texture.dispose(),this.texture=o(e,t.texture)):t.colormap&amp;&amp;(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t,e){for(var r=f({colormap:t,nshades:256,format:&quot;rgba&quot;}),n=new Uint8Array(1024),i=0;i&lt;256;++i){for(var a=r[i],o=0;o&lt;3;++o)n[4*i+o]=a[o];n[4*i+3]=e?255*M(i/255,e):255*a[3]}return u(n,[256,256,4],[4,0,1])}(t.colormap,this.opacityscale)),this.texture.generateMipmap());var r=t.cells,n=t.positions;if(n&amp;&amp;r){var i=[],a=[],l=[],c=[],h=[],p=[],d=[],g=[],m=[],v=[],y=[],x=[],b=[],_=[];this.cells=r,this.positions=n;var w=t.vertexNormals,T=t.cellNormals,k=void 0===t.vertexNormalsEpsilon?1e-6:t.vertexNormalsEpsilon,A=void 0===t.faceNormalsEpsilon?1e-6:t.faceNormalsEpsilon;t.useFacetNormals&amp;&amp;!T&amp;&amp;(T=s.faceNormals(r,n,A)),T||w||(w=s.vertexNormals(r,n,k));var S=t.vertexColors,E=t.cellColors,C=t.meshColor||[1,1,1,1],L=t.vertexUVs,I=t.vertexIntensity,P=t.cellUVs,z=t.cellIntensity,O=1/0,D=-1/0;if(!L&amp;&amp;!P)if(I)if(t.vertexIntensityBounds)O=+t.vertexIntensityBounds[0],D=+t.vertexIntensityBounds[1];else for(var R=0;R&lt;I.length;++R){var F=I[R];O=Math.min(O,F),D=Math.max(D,F)}else if(z)if(t.cellIntensityBounds)O=+t.cellIntensityBounds[0],D=+t.cellIntensityBounds[1];else for(R=0;R&lt;z.length;++R){F=z[R];O=Math.min(O,F),D=Math.max(D,F)}else for(R=0;R&lt;n.length;++R){F=n[R][2];O=Math.min(O,F),D=Math.max(D,F)}this.intensity=I||(z||function(t){for(var e=t.length,r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n][2];return r}(n)),this.pickVertex=!(z||E);var B=t.pointSizes,N=t.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(R=0;R&lt;n.length;++R)for(var j=n[R],U=0;U&lt;3;++U)!isNaN(j[U])&amp;&amp;isFinite(j[U])&amp;&amp;(this.bounds[0][U]=Math.min(this.bounds[0][U],j[U]),this.bounds[1][U]=Math.max(this.bounds[1][U],j[U]));var V=0,q=0,H=0;t:for(R=0;R&lt;r.length;++R){var G=r[R];switch(G.length){case 1:for(j=n[W=G[0]],U=0;U&lt;3;++U)if(isNaN(j[U])||!isFinite(j[U]))continue t;v.push(j[0],j[1],j[2]),X=S?S[W]:E?E[R]:C,this.opacityscale&amp;&amp;I?a.push(X[0],X[1],X[2],this.opacity*M((I[W]-O)/(D-O),this.opacityscale)):3===X.length?y.push(X[0],X[1],X[2],this.opacity):(y.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),Z=L?L[W]:I?[(I[W]-O)/(D-O),0]:P?P[R]:z?[(z[R]-O)/(D-O),0]:[(j[2]-O)/(D-O),0],x.push(Z[0],Z[1]),B?b.push(B[W]):b.push(N),_.push(R),H+=1;break;case 2:for(U=0;U&lt;2;++U){j=n[W=G[U]];for(var Y=0;Y&lt;3;++Y)if(isNaN(j[Y])||!isFinite(j[Y]))continue t}for(U=0;U&lt;2;++U){j=n[W=G[U]];p.push(j[0],j[1],j[2]),X=S?S[W]:E?E[R]:C,this.opacityscale&amp;&amp;I?a.push(X[0],X[1],X[2],this.opacity*M((I[W]-O)/(D-O),this.opacityscale)):3===X.length?d.push(X[0],X[1],X[2],this.opacity):(d.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),Z=L?L[W]:I?[(I[W]-O)/(D-O),0]:P?P[R]:z?[(z[R]-O)/(D-O),0]:[(j[2]-O)/(D-O),0],g.push(Z[0],Z[1]),m.push(R)}q+=1;break;case 3:for(U=0;U&lt;3;++U)for(j=n[W=G[U]],Y=0;Y&lt;3;++Y)if(isNaN(j[Y])||!isFinite(j[Y]))continue t;for(U=0;U&lt;3;++U){var W,X,Z,J;j=n[W=G[2-U]];i.push(j[0],j[1],j[2]),(X=S?S[W]:E?E[R]:C)?this.opacityscale&amp;&amp;I?a.push(X[0],X[1],X[2],this.opacity*M((I[W]-O)/(D-O),this.opacityscale)):3===X.length?a.push(X[0],X[1],X[2],this.opacity):(a.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)):a.push(.5,.5,.5,1),Z=L?L[W]:I?[(I[W]-O)/(D-O),0]:P?P[R]:z?[(z[R]-O)/(D-O),0]:[(j[2]-O)/(D-O),0],c.push(Z[0],Z[1]),J=w?w[W]:T[R],l.push(J[0],J[1],J[2]),h.push(R)}V+=1}}this.pointCount=H,this.edgeCount=q,this.triangleCount=V,this.pointPositions.update(v),this.pointColors.update(y),this.pointUVs.update(x),this.pointSizes.update(b),this.pointIds.update(new Uint32Array(_)),this.edgePositions.update(p),this.edgeColors.update(d),this.edgeUVs.update(g),this.edgeIds.update(new Uint32Array(m)),this.trianglePositions.update(i),this.triangleColors.update(a),this.triangleUVs.update(c),this.triangleNormals.update(l),this.triangleIds.update(new Uint32Array(h))}},k.drawTransparent=k.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var s={model:r,view:n,projection:i,inverseModel:w.slice(),clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],contourColor:this.contourColor,texture:0};s.inverseModel=c(s.inverseModel,s.model),e.disable(e.CULL_FACE),this.texture.bind(0);var u=new Array(16);l(u,s.view,s.model),l(u,s.projection,u),c(u,u);for(o=0;o&lt;3;++o)s.eyePosition[o]=u[12+o]/u[15];var f,h=u[15];for(o=0;o&lt;3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o&lt;3;++o){for(var p=u[12+o],d=0;d&lt;3;++d)p+=u[4*d+o]*this.lightPosition[d];s.lightPosition[o]=p/h}this.triangleCount&gt;0&amp;&amp;((f=this.triShader).bind(),f.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind());this.edgeCount&gt;0&amp;&amp;this.lineWidth&gt;0&amp;&amp;((f=this.lineShader).bind(),f.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind());this.pointCount&gt;0&amp;&amp;((f=this.pointShader).bind(),f.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind());this.contourEnable&amp;&amp;this.contourCount&gt;0&amp;&amp;this.contourLineWidth&gt;0&amp;&amp;((f=this.contourShader).bind(),f.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind())},k.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s,l={model:r,view:n,projection:i,clipBounds:a,pickId:this.pickId/255};((s=this.pickShader).bind(),s.uniforms=l,this.triangleCount&gt;0&amp;&amp;(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount&gt;0&amp;&amp;(this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount&gt;0)&amp;&amp;((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind())},k.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;for(var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions,i=new Array(r.length),a=0;a&lt;r.length;++a)i[a]=n[r[a]];var o=t.coord[0],s=t.coord[1];if(!this.pickVertex){var l=this.positions[r[0]],c=this.positions[r[1]],u=this.positions[r[2]],f=[(l[0]+c[0]+u[0])/3,(l[1]+c[1]+u[1])/3,(l[2]+c[2]+u[2])/3];return{_cellCenter:!0,position:[o,s],index:e,cell:r,cellId:e,intensity:this.intensity[e],dataCoordinate:f}}var h=g(i,[o*this.pixelRatio,this._resolution[1]-s*this.pixelRatio],this._model,this._view,this._projection,this._resolution);if(!h)return null;var p=h[2],d=0;for(a=0;a&lt;r.length;++a)d+=p[a]*this.intensity[r[a]];return{position:h[1],index:r[h[0]],cell:r,cellId:e,intensity:d,dataCoordinate:this.positions[r[h[0]]]}},k.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.lineShader.dispose(),this.pointShader.dispose(),this.pickShader.dispose(),this.pointPickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose(),this.contourShader.dispose()},e.exports=function(t,e){1===arguments.length&amp;&amp;(t=(e=t).gl);var r=t.getExtension(&quot;OES_standard_derivatives&quot;)||t.getExtension(&quot;MOZ_OES_standard_derivatives&quot;)||t.getExtension(&quot;WEBKIT_OES_standard_derivatives&quot;);if(!r)throw new Error(&quot;derivatives not supported&quot;);var n=A(t),s=S(t),l=E(t),c=C(t),f=L(t),h=I(t),p=o(t,u(new Uint8Array([255,255,255,255]),[1,1,4]));p.generateMipmap(),p.minFilter=t.LINEAR_MIPMAP_LINEAR,p.magFilter=t.LINEAR;var d=i(t),g=i(t),m=i(t),v=i(t),y=i(t),x=a(t,[{buffer:d,type:t.FLOAT,size:3},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:g,type:t.FLOAT,size:4},{buffer:m,type:t.FLOAT,size:2},{buffer:v,type:t.FLOAT,size:3}]),b=i(t),_=i(t),w=i(t),k=i(t),M=a(t,[{buffer:b,type:t.FLOAT,size:3},{buffer:k,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:_,type:t.FLOAT,size:4},{buffer:w,type:t.FLOAT,size:2}]),P=i(t),z=i(t),O=i(t),D=i(t),R=i(t),F=a(t,[{buffer:P,type:t.FLOAT,size:3},{buffer:R,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:z,type:t.FLOAT,size:4},{buffer:O,type:t.FLOAT,size:2},{buffer:D,type:t.FLOAT,size:1}]),B=i(t),N=a(t,[{buffer:B,type:t.FLOAT,size:3}]),j=new T(t,p,n,s,l,c,f,h,d,y,g,m,v,x,b,k,_,w,M,P,R,z,O,D,F,B,N);return j.update(e),j}},{&quot;./lib/closest-point&quot;:307,&quot;./lib/shaders&quot;:308,colormap:131,&quot;gl-buffer&quot;:259,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/multiply&quot;:295,&quot;gl-shader&quot;:335,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495,normals:498,&quot;simplicial-complex-contour&quot;:556,&quot;typedarray-pool&quot;:595}],310:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],311:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[0,0,0,1,1,0,1,1]),s=i(e,a.boxVert,a.lineFrag);return new o(t,r,s)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;./shaders&quot;);function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawBox=(s=[0,0],l=[0,0],function(t,e,r,n,i){var a=this.plot,o=this.shader,c=a.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,o.uniforms.lo=s,o.uniforms.hi=l,o.uniforms.color=i,c.drawArrays(c.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:314,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],312:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),a=i(e,o.gridVert,o.gridFrag),l=i(e,o.tickVert,o.gridFrag);return new s(t,r,a,l)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;binary-search-bounds&quot;),o=t(&quot;./shaders&quot;);function s(t,e,r,n){this.plot=t,this.vbo=e,this.shader=r,this.tickShader=n,this.ticks=[[],[]]}function l(t,e){return t-e}var c,u,f,h,p,d=s.prototype;d.draw=(c=[0,0],u=[0,0],f=[0,0],function(){for(var t=this.plot,e=this.vbo,r=this.shader,n=this.ticks,i=t.gl,a=t._tickBounds,o=t.dataBox,s=t.viewBox,l=t.gridLineWidth,h=t.gridLineColor,p=t.gridLineEnable,d=t.pixelRatio,g=0;g&lt;2;++g){var m=a[g],v=a[g+2]-m,y=.5*(o[g+2]+o[g]),x=o[g+2]-o[g];u[g]=2*v/x,c[g]=2*(m-y)/x}r.bind(),e.bind(),r.attributes.dataCoord.pointer(),r.uniforms.dataShift=c,r.uniforms.dataScale=u;var b=0;for(g=0;g&lt;2;++g){f[0]=f[1]=0,f[g]=1,r.uniforms.dataAxis=f,r.uniforms.lineWidth=l[g]/(s[g+2]-s[g])*d,r.uniforms.color=h[g];var _=6*n[g].length;p[g]&amp;&amp;_&amp;&amp;i.drawArrays(i.TRIANGLES,b,_),b+=_}}),d.drawTickMarks=function(){var t=[0,0],e=[0,0],r=[1,0],n=[0,1],i=[0,0],o=[0,0];return function(){for(var s=this.plot,c=this.vbo,u=this.tickShader,f=this.ticks,h=s.gl,p=s._tickBounds,d=s.dataBox,g=s.viewBox,m=s.pixelRatio,v=s.screenBox,y=v[2]-v[0],x=v[3]-v[1],b=g[2]-g[0],_=g[3]-g[1],w=0;w&lt;2;++w){var T=p[w],k=p[w+2]-T,M=.5*(d[w+2]+d[w]),A=d[w+2]-d[w];e[w]=2*k/A,t[w]=2*(T-M)/A}e[0]*=b/y,t[0]*=b/y,e[1]*=_/x,t[1]*=_/x,u.bind(),c.bind(),u.attributes.dataCoord.pointer();var S=u.uniforms;S.dataShift=t,S.dataScale=e;var E=s.tickMarkLength,C=s.tickMarkWidth,L=s.tickMarkColor,I=6*f[0].length,P=Math.min(a.ge(f[0],(d[0]-p[0])/(p[2]-p[0]),l),f[0].length),z=Math.min(a.gt(f[0],(d[2]-p[0])/(p[2]-p[0]),l),f[0].length),O=0+6*P,D=6*Math.max(0,z-P),R=Math.min(a.ge(f[1],(d[1]-p[1])/(p[3]-p[1]),l),f[1].length),F=Math.min(a.gt(f[1],(d[3]-p[1])/(p[3]-p[1]),l),f[1].length),B=I+6*R,N=6*Math.max(0,F-R);i[0]=2*(g[0]-E[1])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[1]*m/y,o[1]=C[1]*m/x,N&amp;&amp;(S.color=L[1],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,B,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[1]-E[0])/x-1,o[0]=C[0]*m/y,o[1]=E[0]*m/x,D&amp;&amp;(S.color=L[0],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,O,D)),i[0]=2*(g[2]+E[3])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[3]*m/y,o[1]=C[3]*m/x,N&amp;&amp;(S.color=L[3],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,B,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[3]+E[2])/x-1,o[0]=C[2]*m/y,o[1]=E[2]*m/x,D&amp;&amp;(S.color=L[2],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,O,D))}}(),d.update=(h=[1,1,-1,-1,1,-1],p=[1,-1,1,1,-1,-1],function(t){for(var e=t.ticks,r=t.bounds,n=new Float32Array(18*(e[0].length+e[1].length)),i=(this.plot.zeroLineEnable,0),a=[[],[]],o=0;o&lt;2;++o)for(var s=a[o],l=e[o],c=r[o],u=r[o+2],f=0;f&lt;l.length;++f){var d=(l[f].x-c)/(u-c);s.push(d);for(var g=0;g&lt;6;++g)n[i++]=d,n[i++]=h[g],n[i++]=p[g]}this.ticks=a,this.vbo.update(n)}),d.dispose=function(){this.vbo.dispose(),this.shader.dispose(),this.tickShader.dispose()}},{&quot;./shaders&quot;:314,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],313:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[-1,-1,-1,1,1,-1,1,1]),s=i(e,a.lineVert,a.lineFrag);return new o(t,r,s)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;./shaders&quot;);function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawLine=(s=[0,0],l=[0,0],function(t,e,r,n,i,a){var o=this.plot,c=this.shader,u=o.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,c.uniforms.start=s,c.uniforms.end=l,c.uniforms.width=i*o.pixelRatio,c.uniforms.color=a,u.drawArrays(u.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:314,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],314:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=n([&quot;precision lowp float;\n#define GLSLIFY 1\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = vec4(color.xyz * color.w, color.w);\n}\n&quot;]);e.exports={lineVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 start, end;\nuniform float width;\n\nvec2 perp(vec2 v) {\n  return vec2(v.y, -v.x);\n}\n\nvec2 screen(vec2 v) {\n  return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n  vec2 delta = normalize(perp(start - end));\n  vec2 offset = mix(start, end, 0.5 * (coord.y+1.0));\n  gl_Position = vec4(screen(offset + 0.5 * width * delta * coord.x), 0, 1);\n}\n&quot;]),lineFrag:i,textVert:n([&quot;#define GLSLIFY 1\nattribute vec3 textCoordinate;\n\nuniform vec2 dataScale, dataShift, dataAxis, screenOffset, textScale;\nuniform float angle;\n\nvoid main() {\n  float dataOffset  = textCoordinate.z;\n  vec2 glyphOffset  = textCoordinate.xy;\n  mat2 glyphMatrix = mat2(cos(angle), sin(angle), -sin(angle), cos(angle));\n  vec2 screenCoordinate = dataAxis * (dataScale * dataOffset + dataShift) +\n    glyphMatrix * glyphOffset * textScale + screenOffset;\n  gl_Position = vec4(screenCoordinate, 0, 1);\n}\n&quot;]),textFrag:i,gridVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale;\nuniform float lineWidth;\n\nvoid main() {\n  vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n  pos += 10.0 * dataCoord.y * vec2(dataAxis.y, -dataAxis.x) + dataCoord.z * lineWidth;\n  gl_Position = vec4(pos, 0, 1);\n}\n&quot;]),gridFrag:i,boxVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 lo, hi;\n\nvec2 screen(vec2 v) {\n  return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n  gl_Position = vec4(screen(mix(lo, hi, coord)), 0, 1);\n}\n&quot;]),tickVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale, screenOffset, tickScale;\n\nvoid main() {\n  vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n  gl_Position = vec4(pos + tickScale*dataCoord.yz + screenOffset, 0, 1);\n}\n&quot;])}},{glslify:316}],315:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),a=i(e,s.textVert,s.textFrag);return new l(t,r,a)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;text-cache&quot;),o=t(&quot;binary-search-bounds&quot;),s=t(&quot;./shaders&quot;);function l(t,e,r){this.plot=t,this.vbo=e,this.shader=r,this.tickOffset=[[],[]],this.tickX=[[],[]],this.labelOffset=[0,0],this.labelCount=[0,0]}var c,u,f,h,p,d,g=l.prototype;g.drawTicks=(c=[0,0],u=[0,0],f=[0,0],function(t){var e=this.plot,r=this.shader,n=this.tickX[t],i=this.tickOffset[t],a=e.gl,s=e.viewBox,l=e.dataBox,h=e.screenBox,p=e.pixelRatio,d=e.tickEnable,g=e.tickPad,m=e.tickColor,v=e.tickAngle,y=e.labelEnable,x=e.labelPad,b=e.labelColor,_=e.labelAngle,w=this.labelOffset[t],T=this.labelCount[t],k=o.lt(n,l[t]),M=o.le(n,l[t+2]);c[0]=c[1]=0,c[t]=1,u[t]=(s[2+t]+s[t])/(h[2+t]-h[t])-1;var A=2/h[2+(1^t)]-h[1^t];u[1^t]=A*s[1^t]-1,d[t]&amp;&amp;(u[1^t]-=A*p*g[t],k&lt;M&amp;&amp;i[M]&gt;i[k]&amp;&amp;(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=m[t],r.uniforms.angle=v[t],a.drawArrays(a.TRIANGLES,i[k],i[M]-i[k]))),y[t]&amp;&amp;T&amp;&amp;(u[1^t]-=A*p*x[t],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t],r.uniforms.angle=_[t],a.drawArrays(a.TRIANGLES,w,T)),u[1^t]=A*s[2+(1^t)]-1,d[t+2]&amp;&amp;(u[1^t]+=A*p*g[t+2],k&lt;M&amp;&amp;i[M]&gt;i[k]&amp;&amp;(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=m[t+2],r.uniforms.angle=v[t+2],a.drawArrays(a.TRIANGLES,i[k],i[M]-i[k]))),y[t+2]&amp;&amp;T&amp;&amp;(u[1^t]+=A*p*x[t+2],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t+2],r.uniforms.angle=_[t+2],a.drawArrays(a.TRIANGLES,w,T))}),g.drawTitle=function(){var t=[0,0],e=[0,0];return function(){var r=this.plot,n=this.shader,i=r.gl,a=r.screenBox,o=r.titleCenter,s=r.titleAngle,l=r.titleColor,c=r.pixelRatio;if(this.titleCount){for(var u=0;u&lt;2;++u)e[u]=2*(o[u]*c-a[u])/(a[2+u]-a[u])-1;n.bind(),n.uniforms.dataAxis=t,n.uniforms.screenOffset=e,n.uniforms.angle=s,n.uniforms.color=l,i.drawArrays(i.TRIANGLES,this.titleOffset,this.titleCount)}}}(),g.bind=(h=[0,0],p=[0,0],d=[0,0],function(){var t=this.plot,e=this.shader,r=t._tickBounds,n=t.dataBox,i=t.screenBox,a=t.viewBox;e.bind();for(var o=0;o&lt;2;++o){var s=r[o],l=r[o+2]-s,c=.5*(n[o+2]+n[o]),u=n[o+2]-n[o],f=a[o],g=a[o+2]-f,m=i[o],v=i[o+2]-m;p[o]=2*l/u*g/v,h[o]=2*(s-c)/u*g/v}d[1]=2*t.pixelRatio/(i[3]-i[1]),d[0]=d[1]*(i[3]-i[1])/(i[2]-i[0]),e.uniforms.dataScale=p,e.uniforms.dataShift=h,e.uniforms.textScale=d,this.vbo.bind(),e.attributes.textCoordinate.pointer()}),g.update=function(t){var e,r,n,i,o,s=[],l=t.ticks,c=t.bounds;for(o=0;o&lt;2;++o){var u=[Math.floor(s.length/3)],f=[-1/0],h=l[o];for(e=0;e&lt;h.length;++e){var p=h[e],d=p.x,g=p.text,m=p.font||&quot;sans-serif&quot;;i=p.fontSize||12;for(var v=1/(c[o+2]-c[o]),y=c[o],x=g.split(&quot;\n&quot;),b=0;b&lt;x.length;b++)for(n=a(m,x[b]).data,r=0;r&lt;n.length;r+=2)s.push(n[r]*i,-n[r+1]*i-b*i*1.2,(d-y)*v);u.push(Math.floor(s.length/3)),f.push(d)}this.tickOffset[o]=u,this.tickX[o]=f}for(o=0;o&lt;2;++o){for(this.labelOffset[o]=Math.floor(s.length/3),n=a(t.labelFont[o],t.labels[o],{textAlign:&quot;center&quot;}).data,i=t.labelSize[o],e=0;e&lt;n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.labelCount[o]=Math.floor(s.length/3)-this.labelOffset[o]}for(this.titleOffset=Math.floor(s.length/3),n=a(t.titleFont,t.title).data,i=t.titleSize,e=0;e&lt;n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.titleCount=Math.floor(s.length/3)-this.titleOffset,this.vbo.update(s)},g.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:314,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335,&quot;text-cache&quot;:575}],316:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],317:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[e.drawingBufferWidth,e.drawingBufferHeight]),c=new l(e,r);return c.grid=i(c),c.text=a(c),c.line=o(c),c.box=s(c),c.update(t),c};var n=t(&quot;gl-select-static&quot;),i=t(&quot;./lib/grid&quot;),a=t(&quot;./lib/text&quot;),o=t(&quot;./lib/line&quot;),s=t(&quot;./lib/box&quot;);function l(t,e){this.gl=t,this.pickBuffer=e,this.screenBox=[0,0,t.drawingBufferWidth,t.drawingBufferHeight],this.viewBox=[0,0,0,0],this.dataBox=[-10,-10,10,10],this.gridLineEnable=[!0,!0],this.gridLineWidth=[1,1],this.gridLineColor=[[0,0,0,1],[0,0,0,1]],this.pixelRatio=1,this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickEnable=[!0,!0,!0,!0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[15,15,15,15],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelEnable=[!0,!0,!0,!0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.titleCenter=[0,0],this.titleEnable=!0,this.titleAngle=0,this.titleColor=[0,0,0,1],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[4,4],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderLineEnable=[!0,!0,!0,!0],this.borderLineWidth=[2,2,2,2],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.grid=null,this.text=null,this.line=null,this.box=null,this.objects=[],this.overlays=[],this._tickBounds=[1/0,1/0,-1/0,-1/0],this.static=!1,this.dirty=!1,this.pickDirty=!1,this.pickDelay=120,this.pickRadius=10,this._pickTimeout=null,this._drawPick=this.drawPick.bind(this),this._depthCounter=0}var c=l.prototype;function u(t){for(var e=t.slice(),r=0;r&lt;e.length;++r)e[r]=e[r].slice();return e}function f(t,e){return t.x-e.x}c.setDirty=function(){this.dirty=this.pickDirty=!0},c.setOverlayDirty=function(){this.dirty=!0},c.nextDepthValue=function(){return this._depthCounter++/65536},c.draw=function(){var t=this.gl,e=this.screenBox,r=this.viewBox,n=this.dataBox,i=this.pixelRatio,a=this.grid,o=this.line,s=this.text,l=this.objects;if(this._depthCounter=0,this.pickDirty&amp;&amp;(this._pickTimeout&amp;&amp;clearTimeout(this._pickTimeout),this.pickDirty=!1,this._pickTimeout=setTimeout(this._drawPick,this.pickDelay)),this.dirty){if(this.dirty=!1,t.bindFramebuffer(t.FRAMEBUFFER,null),t.enable(t.SCISSOR_TEST),t.disable(t.DEPTH_TEST),t.depthFunc(t.LESS),t.depthMask(!1),t.enable(t.BLEND),t.blendEquation(t.FUNC_ADD,t.FUNC_ADD),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),this.borderColor){t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]);var c=this.borderColor;t.clearColor(c[0]*c[3],c[1]*c[3],c[2]*c[3],c[3]),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}t.scissor(r[0],r[1],r[2]-r[0],r[3]-r[1]),t.viewport(r[0],r[1],r[2]-r[0],r[3]-r[1]);var u=this.backgroundColor;t.clearColor(u[0]*u[3],u[1]*u[3],u[2]*u[3],u[3]),t.clear(t.COLOR_BUFFER_BIT),a.draw();var f=this.zeroLineEnable,h=this.zeroLineColor,p=this.zeroLineWidth;if(f[0]||f[1]){o.bind();for(var d=0;d&lt;2;++d)if(f[d]&amp;&amp;n[d]&lt;=0&amp;&amp;n[d+2]&gt;=0){var g=e[d]-n[d]*(e[d+2]-e[d])/(n[d+2]-n[d]);0===d?o.drawLine(g,e[1],g,e[3],p[d],h[d]):o.drawLine(e[0],g,e[2],g,p[d],h[d])}}for(d=0;d&lt;l.length;++d)l[d].draw();t.viewport(e[0],e[1],e[2]-e[0],e[3]-e[1]),t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]),this.grid.drawTickMarks(),o.bind();var m=this.borderLineEnable,v=this.borderLineWidth,y=this.borderLineColor;for(m[1]&amp;&amp;o.drawLine(r[0],r[1]-.5*v[1]*i,r[0],r[3]+.5*v[3]*i,v[1],y[1]),m[0]&amp;&amp;o.drawLine(r[0]-.5*v[0]*i,r[1],r[2]+.5*v[2]*i,r[1],v[0],y[0]),m[3]&amp;&amp;o.drawLine(r[2],r[1]-.5*v[1]*i,r[2],r[3]+.5*v[3]*i,v[3],y[3]),m[2]&amp;&amp;o.drawLine(r[0]-.5*v[0]*i,r[3],r[2]+.5*v[2]*i,r[3],v[2],y[2]),s.bind(),d=0;d&lt;2;++d)s.drawTicks(d);this.titleEnable&amp;&amp;s.drawTitle();var x=this.overlays;for(d=0;d&lt;x.length;++d)x[d].draw();t.disable(t.SCISSOR_TEST),t.disable(t.BLEND),t.depthMask(!0)}},c.drawPick=function(){if(!this.static){var t=this.pickBuffer;this.gl,this._pickTimeout=null,t.begin();for(var e=1,r=this.objects,n=0;n&lt;r.length;++n)e=r[n].drawPick(e);t.end()}},c.pick=function(t,e){if(!this.static){var r=this.pixelRatio,n=this.pickPixelRatio,i=this.viewBox,a=0|Math.round((t-i[0]/r)*n),o=0|Math.round((e-i[1]/r)*n),s=this.pickBuffer.query(a,o,this.pickRadius);if(!s)return null;for(var l=s.id+(s.value[0]&lt;&lt;8)+(s.value[1]&lt;&lt;16)+(s.value[2]&lt;&lt;24),c=this.objects,u=0;u&lt;c.length;++u){var f=c[u].pick(a,o,l);if(f)return f}return null}},c.setScreenBox=function(t){var e=this.screenBox,r=this.pixelRatio;e[0]=0|Math.round(t[0]*r),e[1]=0|Math.round(t[1]*r),e[2]=0|Math.round(t[2]*r),e[3]=0|Math.round(t[3]*r),this.setDirty()},c.setDataBox=function(t){var e=this.dataBox;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3])&amp;&amp;(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],this.setDirty())},c.setViewBox=function(t){var e=this.pixelRatio,r=this.viewBox;r[0]=0|Math.round(t[0]*e),r[1]=0|Math.round(t[1]*e),r[2]=0|Math.round(t[2]*e),r[3]=0|Math.round(t[3]*e);var n=this.pickPixelRatio;this.pickBuffer.shape=[0|Math.round((t[2]-t[0])*n),0|Math.round((t[3]-t[1])*n)],this.setDirty()},c.update=function(t){t=t||{};var e=this.gl;this.pixelRatio=t.pixelRatio||1;var r=this.pixelRatio;this.pickPixelRatio=Math.max(r,1),this.setScreenBox(t.screenBox||[0,0,e.drawingBufferWidth/r,e.drawingBufferHeight/r]);this.screenBox;this.setViewBox(t.viewBox||[.125*(this.screenBox[2]-this.screenBox[0])/r,.125*(this.screenBox[3]-this.screenBox[1])/r,.875*(this.screenBox[2]-this.screenBox[0])/r,.875*(this.screenBox[3]-this.screenBox[1])/r]);var n=this.viewBox,i=(n[2]-n[0])/(n[3]-n[1]);this.setDataBox(t.dataBox||[-10,-10/i,10,10/i]),this.borderColor=!1!==t.borderColor&amp;&amp;(t.borderColor||[0,0,0,0]).slice(),this.backgroundColor=(t.backgroundColor||[0,0,0,0]).slice(),this.gridLineEnable=(t.gridLineEnable||[!0,!0]).slice(),this.gridLineWidth=(t.gridLineWidth||[1,1]).slice(),this.gridLineColor=u(t.gridLineColor||[[.5,.5,.5,1],[.5,.5,.5,1]]),this.zeroLineEnable=(t.zeroLineEnable||[!0,!0]).slice(),this.zeroLineWidth=(t.zeroLineWidth||[4,4]).slice(),this.zeroLineColor=u(t.zeroLineColor||[[0,0,0,1],[0,0,0,1]]),this.tickMarkLength=(t.tickMarkLength||[0,0,0,0]).slice(),this.tickMarkWidth=(t.tickMarkWidth||[0,0,0,0]).slice(),this.tickMarkColor=u(t.tickMarkColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.titleCenter=(t.titleCenter||[.5*(n[0]+n[2])/r,(n[3]+120)/r]).slice(),this.titleEnable=!(&quot;titleEnable&quot;in t)||!!t.titleEnable,this.titleAngle=t.titleAngle||0,this.titleColor=(t.titleColor||[0,0,0,1]).slice(),this.labelPad=(t.labelPad||[15,15,15,15]).slice(),this.labelAngle=(t.labelAngle||[0,Math.PI/2,0,3*Math.PI/2]).slice(),this.labelEnable=(t.labelEnable||[!0,!0,!0,!0]).slice(),this.labelColor=u(t.labelColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.tickPad=(t.tickPad||[15,15,15,15]).slice(),this.tickAngle=(t.tickAngle||[0,0,0,0]).slice(),this.tickEnable=(t.tickEnable||[!0,!0,!0,!0]).slice(),this.tickColor=u(t.tickColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.borderLineEnable=(t.borderLineEnable||[!0,!0,!0,!0]).slice(),this.borderLineWidth=(t.borderLineWidth||[2,2,2,2]).slice(),this.borderLineColor=u(t.borderLineColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]);var a=t.ticks||[[],[]],o=this._tickBounds;o[0]=o[1]=1/0,o[2]=o[3]=-1/0;for(var s=0;s&lt;2;++s){var l=a[s].slice(0);0!==l.length&amp;&amp;(l.sort(f),o[s]=Math.min(o[s],l[0].x),o[s+2]=Math.max(o[s+2],l[l.length-1].x))}this.grid.update({bounds:o,ticks:a}),this.text.update({bounds:o,ticks:a,labels:t.labels||[&quot;x&quot;,&quot;y&quot;],labelSize:t.labelSize||[12,12],labelFont:t.labelFont||[&quot;sans-serif&quot;,&quot;sans-serif&quot;],title:t.title||&quot;&quot;,titleSize:t.titleSize||18,titleFont:t.titleFont||&quot;sans-serif&quot;}),this.static=!!t.static,this.setDirty()},c.dispose=function(){this.box.dispose(),this.grid.dispose(),this.text.dispose(),this.line.dispose();for(var t=this.objects.length-1;t&gt;=0;--t)this.objects[t].dispose();this.objects.length=0;for(t=this.overlays.length-1;t&gt;=0;--t)this.overlays[t].dispose();this.overlays.length=0,this.gl=null},c.addObject=function(t){this.objects.indexOf(t)&lt;0&amp;&amp;(this.objects.push(t),this.setDirty())},c.removeObject=function(t){for(var e=this.objects,r=0;r&lt;e.length;++r)if(e[r]===t){e.splice(r,1),this.setDirty();break}},c.addOverlay=function(t){this.overlays.indexOf(t)&lt;0&amp;&amp;(this.overlays.push(t),this.setOverlayDirty())},c.removeOverlay=function(t){for(var e=this.overlays,r=0;r&lt;e.length;++r)if(e[r]===t){e.splice(r,1),this.setOverlayDirty();break}}},{&quot;./lib/box&quot;:311,&quot;./lib/grid&quot;:312,&quot;./lib/line&quot;:313,&quot;./lib/text&quot;:315,&quot;gl-select-static&quot;:334}],318:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){t=t||document.body,e=e||{};var r=[.01,1/0];&quot;distanceLimits&quot;in e&amp;&amp;(r[0]=e.distanceLimits[0],r[1]=e.distanceLimits[1]);&quot;zoomMin&quot;in e&amp;&amp;(r[0]=e.zoomMin);&quot;zoomMax&quot;in e&amp;&amp;(r[1]=e.zoomMax);var c=i({center:e.center||[0,0,0],up:e.up||[0,1,0],eye:e.eye||[0,0,10],mode:e.mode||&quot;orbit&quot;,distanceLimits:r}),u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],f=0,h=t.clientWidth,p=t.clientHeight,d={keyBindingMode:&quot;rotate&quot;,enableWheel:!0,view:c,element:t,delay:e.delay||16,rotateSpeed:e.rotateSpeed||1,zoomSpeed:e.zoomSpeed||1,translateSpeed:e.translateSpeed||1,flipX:!!e.flipX,flipY:!!e.flipY,modes:c.modes,_ortho:e._ortho||e.projection&amp;&amp;&quot;orthographic&quot;===e.projection.type||!1,tick:function(){var e=n(),r=this.delay,i=e-2*r;c.idle(e-r),c.recalcMatrix(i),c.flush(e-(100+2*r));for(var a=!0,o=c.computedMatrix,s=0;s&lt;16;++s)a=a&amp;&amp;u[s]===o[s],u[s]=o[s];var l=t.clientWidth===h&amp;&amp;t.clientHeight===p;return h=t.clientWidth,p=t.clientHeight,a?!l:(f=Math.exp(c.computedRadius[0]),!0)},lookAt:function(t,e,r){c.lookAt(c.lastT(),t,e,r)},rotate:function(t,e,r){c.rotate(c.lastT(),t,e,r)},pan:function(t,e,r){c.pan(c.lastT(),t,e,r)},translate:function(t,e,r){c.translate(c.lastT(),t,e,r)}};return Object.defineProperties(d,{matrix:{get:function(){return c.computedMatrix},set:function(t){return c.setMatrix(c.lastT(),t),c.computedMatrix},enumerable:!0},mode:{get:function(){return c.getMode()},set:function(t){var e=c.computedUp.slice(),r=c.computedEye.slice(),i=c.computedCenter.slice();if(c.setMode(t),&quot;turntable&quot;===t){var a=n();c._active.lookAt(a,r,i,e),c._active.lookAt(a+500,r,i,[0,0,1]),c._active.flush(a)}return c.getMode()},enumerable:!0},center:{get:function(){return c.computedCenter},set:function(t){return c.lookAt(c.lastT(),null,t),c.computedCenter},enumerable:!0},eye:{get:function(){return c.computedEye},set:function(t){return c.lookAt(c.lastT(),t),c.computedEye},enumerable:!0},up:{get:function(){return c.computedUp},set:function(t){return c.lookAt(c.lastT(),null,null,t),c.computedUp},enumerable:!0},distance:{get:function(){return f},set:function(t){return c.setDistance(c.lastT(),t),t},enumerable:!0},distanceLimits:{get:function(){return c.getDistanceLimits(r)},set:function(t){return c.setDistanceLimits(t),t},enumerable:!0}}),t.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault(),!1})),d._lastX=-1,d._lastY=-1,d._lastMods={shift:!1,control:!1,alt:!1,meta:!1},d.enableMouseListeners=function(){function e(e,r,i,a){var o=d.keyBindingMode;if(!1!==o){var s=&quot;rotate&quot;===o,l=&quot;pan&quot;===o,u=&quot;zoom&quot;===o,h=!!a.control,p=!!a.alt,g=!!a.shift,m=!!(1&amp;e),v=!!(2&amp;e),y=!!(4&amp;e),x=1/t.clientHeight,b=x*(r-d._lastX),_=x*(i-d._lastY),w=d.flipX?1:-1,T=d.flipY?1:-1,k=Math.PI*d.rotateSpeed,M=n();if(-1!==d._lastX&amp;&amp;-1!==d._lastY&amp;&amp;((s&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||m&amp;&amp;!h&amp;&amp;!p&amp;&amp;g)&amp;&amp;c.rotate(M,w*k*b,-T*k*_,0),(l&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||v||m&amp;&amp;h&amp;&amp;!p&amp;&amp;!g)&amp;&amp;c.pan(M,-d.translateSpeed*b*f,d.translateSpeed*_*f,0),u&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||y||m&amp;&amp;!h&amp;&amp;p&amp;&amp;!g)){var A=-d.zoomSpeed*_/window.innerHeight*(M-c.lastT())*100;c.pan(M,0,0,f*(Math.exp(A)-1))}return d._lastX=r,d._lastY=i,d._lastMods=a,!0}}d.mouseListener=a(t,e),t.addEventListener(&quot;touchstart&quot;,(function(r){var n=s(r.changedTouches[0],t);e(0,n[0],n[1],d._lastMods),e(1,n[0],n[1],d._lastMods)}),!!l&amp;&amp;{passive:!0}),t.addEventListener(&quot;touchmove&quot;,(function(r){var n=s(r.changedTouches[0],t);e(1,n[0],n[1],d._lastMods),r.preventDefault()}),!!l&amp;&amp;{passive:!1}),t.addEventListener(&quot;touchend&quot;,(function(t){e(0,d._lastX,d._lastY,d._lastMods)}),!!l&amp;&amp;{passive:!0}),d.wheelListener=o(t,(function(t,e){if(!1!==d.keyBindingMode&amp;&amp;d.enableWheel){var r=d.flipX?1:-1,i=d.flipY?1:-1,a=n();if(Math.abs(t)&gt;Math.abs(e))c.rotate(a,0,0,-t*r*Math.PI*d.rotateSpeed/window.innerWidth);else if(!d._ortho){var o=-d.zoomSpeed*i*e/window.innerHeight*(a-c.lastT())/20;c.pan(a,0,0,f*(Math.exp(o)-1))}}}),!0)},d.enableMouseListeners(),d};var n=t(&quot;right-now&quot;),i=t(&quot;3d-view&quot;),a=t(&quot;mouse-change&quot;),o=t(&quot;mouse-wheel&quot;),s=t(&quot;mouse-event-offset&quot;),l=t(&quot;has-passive-events&quot;)},{&quot;3d-view&quot;:54,&quot;has-passive-events&quot;:441,&quot;mouse-change&quot;:483,&quot;mouse-event-offset&quot;:484,&quot;mouse-wheel&quot;:486,&quot;right-now&quot;:542}],319:[function(t,e,r){var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision mediump float;\n#define GLSLIFY 1\nattribute vec2 position;\nvarying vec2 uv;\nvoid main() {\n  uv = position;\n  gl_Position = vec4(position, 0, 1);\n}&quot;]),o=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform sampler2D accumBuffer;\nvarying vec2 uv;\n\nvoid main() {\n  vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\n  gl_FragColor = min(vec4(1,1,1,1), accum);\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec2&quot;}])}},{&quot;gl-shader&quot;:335,glslify:320}],320:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],321:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./camera.js&quot;),i=t(&quot;gl-axes3d&quot;),a=t(&quot;gl-axes3d/properties&quot;),o=t(&quot;gl-spikes3d&quot;),s=t(&quot;gl-select-static&quot;),l=t(&quot;gl-fbo&quot;),c=t(&quot;a-big-triangle&quot;),u=t(&quot;mouse-change&quot;),f=t(&quot;gl-mat4/perspective&quot;),h=t(&quot;gl-mat4/ortho&quot;),p=t(&quot;./lib/shader&quot;),d=t(&quot;is-mobile&quot;)({tablet:!0,featureDetect:!0});function g(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function m(t){var e=Math.round(Math.log(Math.abs(t))/Math.log(10));if(e&lt;0){var r=Math.round(Math.pow(10,-e));return Math.ceil(t*r)/r}if(e&gt;0){r=Math.round(Math.pow(10,e));return Math.ceil(t/r)*r}return Math.ceil(t)}function v(t){return&quot;boolean&quot;!=typeof t||t}e.exports={createScene:function(t){(t=t||{}).camera=t.camera||{};var e=t.canvas;if(!e){if(e=document.createElement(&quot;canvas&quot;),t.container)t.container.appendChild(e);else document.body.appendChild(e)}var r=t.gl;r||(t.glOptions&amp;&amp;(d=!!t.glOptions.preserveDrawingBuffer),r=function(t,e){var r=null;try{(r=t.getContext(&quot;webgl&quot;,e))||(r=t.getContext(&quot;experimental-webgl&quot;,e))}catch(t){return null}return r}(e,t.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:d}));if(!r)throw new Error(&quot;webgl not supported&quot;);var y=t.bounds||[[-10,-10,-10],[10,10,10]],x=new g,b=l(r,r.drawingBufferWidth,r.drawingBufferHeight,{preferFloat:!d}),_=p(r),w=t.cameraObject&amp;&amp;!0===t.cameraObject._ortho||t.camera.projection&amp;&amp;&quot;orthographic&quot;===t.camera.projection.type||!1,T={eye:t.camera.eye||[2,0,0],center:t.camera.center||[0,0,0],up:t.camera.up||[0,1,0],zoomMin:t.camera.zoomMax||.1,zoomMax:t.camera.zoomMin||100,mode:t.camera.mode||&quot;turntable&quot;,_ortho:w},k=t.axes||{},M=i(r,k);M.enable=!k.disable;var A=t.spikes||{},S=o(r,A),E=[],C=[],L=[],I=[],P=!0,z=!0,O=new Array(16),D=new Array(16),R={view:null,projection:O,model:D,_ortho:!1},F=(z=!0,[r.drawingBufferWidth,r.drawingBufferHeight]),B=t.cameraObject||n(e,T),N={gl:r,contextLost:!1,pixelRatio:t.pixelRatio||1,canvas:e,selection:x,camera:B,axes:M,axesPixels:null,spikes:S,bounds:y,objects:E,shape:F,aspect:t.aspectRatio||[1,1,1],pickRadius:t.pickRadius||10,zNear:t.zNear||.01,zFar:t.zFar||1e3,fovy:t.fovy||Math.PI/4,clearColor:t.clearColor||[0,0,0,0],autoResize:v(t.autoResize),autoBounds:v(t.autoBounds),autoScale:!!t.autoScale,autoCenter:v(t.autoCenter),clipToBounds:v(t.clipToBounds),snapToData:!!t.snapToData,onselect:t.onselect||null,onrender:t.onrender||null,onclick:t.onclick||null,cameraParams:R,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(t){this.aspect[0]=t.x,this.aspect[1]=t.y,this.aspect[2]=t.z,z=!0},setBounds:function(t,e){this.bounds[0][t]=e.min,this.bounds[1][t]=e.max},setClearColor:function(t){this.clearColor=t},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},j=[r.drawingBufferWidth/N.pixelRatio|0,r.drawingBufferHeight/N.pixelRatio|0];function U(){if(!N._stopped&amp;&amp;N.autoResize){var t=e.parentNode,r=1,n=1;t&amp;&amp;t!==document.body?(r=t.clientWidth,n=t.clientHeight):(r=window.innerWidth,n=window.innerHeight);var i=0|Math.ceil(r*N.pixelRatio),a=0|Math.ceil(n*N.pixelRatio);if(i!==e.width||a!==e.height){e.width=i,e.height=a;var o=e.style;o.position=o.position||&quot;absolute&quot;,o.left=&quot;0px&quot;,o.top=&quot;0px&quot;,o.width=r+&quot;px&quot;,o.height=n+&quot;px&quot;,P=!0}}}N.autoResize&amp;&amp;U();function V(){for(var t=E.length,e=I.length,n=0;n&lt;e;++n)L[n]=0;t:for(n=0;n&lt;t;++n){var i=E[n],a=i.pickSlots;if(a){for(var o=0;o&lt;e;++o)if(L[o]+a&lt;255){C[n]=o,i.setPickBase(L[o]+1),L[o]+=a;continue t}var l=s(r,F);C[n]=e,I.push(l),L.push(a),i.setPickBase(1),e+=1}else C[n]=-1}for(;e&gt;0&amp;&amp;0===L[e-1];)L.pop(),I.pop().dispose()}function q(){if(N.contextLost)return!0;r.isContextLost()&amp;&amp;(N.contextLost=!0,N.mouseListener.enabled=!1,N.selection.object=null,N.oncontextloss&amp;&amp;N.oncontextloss())}window.addEventListener(&quot;resize&quot;,U),N.update=function(t){N._stopped||(t=t||{},P=!0,z=!0)},N.add=function(t){N._stopped||(t.axes=M,E.push(t),C.push(-1),P=!0,z=!0,V())},N.remove=function(t){if(!N._stopped){var e=E.indexOf(t);e&lt;0||(E.splice(e,1),C.pop(),P=!0,z=!0,V())}},N.dispose=function(){if(!N._stopped&amp;&amp;(N._stopped=!0,window.removeEventListener(&quot;resize&quot;,U),e.removeEventListener(&quot;webglcontextlost&quot;,q),N.mouseListener.enabled=!1,!N.contextLost)){M.dispose(),S.dispose();for(var t=0;t&lt;E.length;++t)E[t].dispose();b.dispose();for(t=0;t&lt;I.length;++t)I[t].dispose();_.dispose(),r=null,M=null,S=null,E=[]}},N._mouseRotating=!1,N._prevButtons=0,N.enableMouseListeners=function(){N.mouseListener=u(e,(function(t,e,r){if(!N._stopped){var n=I.length,i=E.length,a=x.object;x.distance=1/0,x.mouse[0]=e,x.mouse[1]=r,x.object=null,x.screen=null,x.dataCoordinate=x.dataPosition=null;var o=!1;if(t&amp;&amp;N._prevButtons)N._mouseRotating=!0;else{N._mouseRotating&amp;&amp;(z=!0),N._mouseRotating=!1;for(var s=0;s&lt;n;++s){var l=I[s].query(e,j[1]-r-1,N.pickRadius);if(l){if(l.distance&gt;x.distance)continue;for(var c=0;c&lt;i;++c){var u=E[c];if(C[c]===s){var f=u.pick(l);f&amp;&amp;(x.buttons=t,x.screen=l.coord,x.distance=l.distance,x.object=u,x.index=f.distance,x.dataPosition=f.position,x.dataCoordinate=f.dataCoordinate,x.data=f,o=!0)}}}}}a&amp;&amp;a!==x.object&amp;&amp;(a.highlight&amp;&amp;a.highlight(null),P=!0),x.object&amp;&amp;(x.object.highlight&amp;&amp;x.object.highlight(x.data),P=!0),(o=o||x.object!==a)&amp;&amp;N.onselect&amp;&amp;N.onselect(x),1&amp;t&amp;&amp;!(1&amp;N._prevButtons)&amp;&amp;N.onclick&amp;&amp;N.onclick(x),N._prevButtons=t}}))},e.addEventListener(&quot;webglcontextlost&quot;,q);var H=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],G=[H[0].slice(),H[1].slice()];function Y(){if(!q()){U();var t=N.camera.tick();R.view=N.camera.matrix,P=P||t,z=z||t,M.pixelRatio=N.pixelRatio,S.pixelRatio=N.pixelRatio;var e=E.length,n=H[0],i=H[1];n[0]=n[1]=n[2]=1/0,i[0]=i[1]=i[2]=-1/0;for(var o=0;o&lt;e;++o){(L=E[o]).pixelRatio=N.pixelRatio,L.axes=N.axes,P=P||!!L.dirty,z=z||!!L.dirty;var s=L.bounds;if(s)for(var l=s[0],u=s[1],p=0;p&lt;3;++p)n[p]=Math.min(n[p],l[p]),i[p]=Math.max(i[p],u[p])}var d=N.bounds;if(N.autoBounds)for(p=0;p&lt;3;++p){if(i[p]&lt;n[p])n[p]=-1,i[p]=1;else{n[p]===i[p]&amp;&amp;(n[p]-=1,i[p]+=1);var g=.05*(i[p]-n[p]);n[p]=n[p]-g,i[p]=i[p]+g}d[0][p]=n[p],d[1][p]=i[p]}var v=!1;for(p=0;p&lt;3;++p)v=v||G[0][p]!==d[0][p]||G[1][p]!==d[1][p],G[0][p]=d[0][p],G[1][p]=d[1][p];if(z=z||v,P=P||v){if(v){var y=[0,0,0];for(o=0;o&lt;3;++o)y[o]=m((d[1][o]-d[0][o])/10);M.autoTicks?M.update({bounds:d,tickSpacing:y}):M.update({bounds:d})}var T=r.drawingBufferWidth,k=r.drawingBufferHeight;F[0]=T,F[1]=k,j[0]=0|Math.max(T/N.pixelRatio,1),j[1]=0|Math.max(k/N.pixelRatio,1),function(t,e){var r=t.bounds,n=t.cameraParams,i=n.projection,a=n.model,o=t.gl.drawingBufferWidth,s=t.gl.drawingBufferHeight,l=t.zNear,c=t.zFar,u=t.fovy,p=o/s;e?(h(i,-p,p,-1,1,l,c),n._ortho=!0):(f(i,u,p,l,c),n._ortho=!1);for(var d=0;d&lt;16;++d)a[d]=0;a[15]=1;var g=0;for(d=0;d&lt;3;++d)g=Math.max(g,r[1][d]-r[0][d]);for(d=0;d&lt;3;++d)t.autoScale?a[5*d]=t.aspect[d]/(r[1][d]-r[0][d]):a[5*d]=1/g,t.autoCenter&amp;&amp;(a[12+d]=.5*-a[5*d]*(r[0][d]+r[1][d]))}(N,w);for(o=0;o&lt;e;++o){(L=E[o]).axesBounds=d,N.clipToBounds&amp;&amp;(L.clipBounds=d)}x.object&amp;&amp;(N.snapToData?S.position=x.dataCoordinate:S.position=x.dataPosition,S.bounds=d),z&amp;&amp;(z=!1,function(){if(!q()){r.colorMask(!0,!0,!0,!0),r.depthMask(!0),r.disable(r.BLEND),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL);for(var t=E.length,e=I.length,n=0;n&lt;e;++n){var i=I[n];i.shape=j,i.begin();for(var a=0;a&lt;t;++a)if(C[a]===n){var o=E[a];o.drawPick&amp;&amp;(o.pixelRatio=1,o.drawPick(R))}i.end()}}}()),N.axesPixels=a(N.axes,R,T,k),N.onrender&amp;&amp;N.onrender(),r.bindFramebuffer(r.FRAMEBUFFER,null),r.viewport(0,0,T,k),N.clearRGBA(),r.depthMask(!0),r.colorMask(!0,!0,!0,!0),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL),r.disable(r.BLEND),r.disable(r.CULL_FACE);var A=!1;M.enable&amp;&amp;(A=A||M.isTransparent(),M.draw(R)),S.axes=M,x.object&amp;&amp;S.draw(R),r.disable(r.CULL_FACE);for(o=0;o&lt;e;++o){(L=E[o]).axes=M,L.pixelRatio=N.pixelRatio,L.isOpaque&amp;&amp;L.isOpaque()&amp;&amp;L.draw(R),L.isTransparent&amp;&amp;L.isTransparent()&amp;&amp;(A=!0)}if(A){b.shape=F,b.bind(),r.clear(r.DEPTH_BUFFER_BIT),r.colorMask(!1,!1,!1,!1),r.depthMask(!0),r.depthFunc(r.LESS),M.enable&amp;&amp;M.isTransparent()&amp;&amp;M.drawTransparent(R);for(o=0;o&lt;e;++o){(L=E[o]).isOpaque&amp;&amp;L.isOpaque()&amp;&amp;L.draw(R)}r.enable(r.BLEND),r.blendEquation(r.FUNC_ADD),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.colorMask(!0,!0,!0,!0),r.depthMask(!1),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),M.isTransparent()&amp;&amp;M.drawTransparent(R);for(o=0;o&lt;e;++o){var L;(L=E[o]).isTransparent&amp;&amp;L.isTransparent()&amp;&amp;L.drawTransparent(R)}r.bindFramebuffer(r.FRAMEBUFFER,null),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.disable(r.DEPTH_TEST),_.bind(),b.color[0].bind(0),_.uniforms.accumBuffer=0,c(r),r.disable(r.BLEND)}P=!1;for(o=0;o&lt;e;++o)E[o].dirty=!1}}}return N.enableMouseListeners(),function t(){if(N._stopped||N.contextLost)return;Y(),requestAnimationFrame(t)}(),N.redraw=function(){N._stopped||(P=!0,Y())},N},createCamera:n}},{&quot;./camera.js&quot;:318,&quot;./lib/shader&quot;:319,&quot;a-big-triangle&quot;:64,&quot;gl-axes3d&quot;:250,&quot;gl-axes3d/properties&quot;:258,&quot;gl-fbo&quot;:269,&quot;gl-mat4/ortho&quot;:296,&quot;gl-mat4/perspective&quot;:297,&quot;gl-select-static&quot;:334,&quot;gl-spikes3d&quot;:345,&quot;is-mobile&quot;:467,&quot;mouse-change&quot;:483}],322:[function(t,e,r){var n=t(&quot;glslify&quot;);r.pointVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform float pointCloud;\n\nhighp float rand(vec2 co) {\n  highp float a = 12.9898;\n  highp float b = 78.233;\n  highp float c = 43758.5453;\n  highp float d = dot(co.xy, vec2(a, b));\n  highp float e = mod(d, 3.14);\n  return fract(sin(e) * c);\n}\n\nvoid main() {\n  vec3 hgPosition = matrix * vec3(position, 1);\n  gl_Position  = vec4(hgPosition.xy, 0, hgPosition.z);\n    // if we don't jitter the point size a bit, overall point cloud\n    // saturation 'jumps' on zooming, which is disturbing and confusing\n  gl_PointSize = pointSize * ((19.5 + rand(position)) / 20.0);\n  if(pointCloud != 0.0) { // pointCloud is truthy\n    // get the same square surface as circle would be\n    gl_PointSize *= 0.886;\n  }\n}&quot;]),r.pointFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color, borderColor;\nuniform float centerFraction;\nuniform float pointCloud;\n\nvoid main() {\n  float radius;\n  vec4 baseColor;\n  if(pointCloud != 0.0) { // pointCloud is truthy\n    if(centerFraction == 1.0) {\n      gl_FragColor = color;\n    } else {\n      gl_FragColor = mix(borderColor, color, centerFraction);\n    }\n  } else {\n    radius = length(2.0 * gl_PointCoord.xy - 1.0);\n    if(radius &gt; 1.0) {\n      discard;\n    }\n    baseColor = mix(borderColor, color, step(radius, centerFraction));\n    gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\n  }\n}\n&quot;]),r.pickVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform vec4 pickOffset;\n\nvarying vec4 fragId;\n\nvoid main() {\n  vec3 hgPosition = matrix * vec3(position, 1);\n  gl_Position  = vec4(hgPosition.xy, 0, hgPosition.z);\n  gl_PointSize = pointSize;\n\n  vec4 id = pickId + pickOffset;\n  id.y += floor(id.x / 256.0);\n  id.x -= floor(id.x / 256.0) * 256.0;\n\n  id.z += floor(id.y / 256.0);\n  id.y -= floor(id.y / 256.0) * 256.0;\n\n  id.w += floor(id.z / 256.0);\n  id.z -= floor(id.z / 256.0) * 256.0;\n\n  fragId = id;\n}\n&quot;]),r.pickFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\n\nvoid main() {\n  float radius = length(2.0 * gl_PointCoord.xy - 1.0);\n  if(radius &gt; 1.0) {\n    discard;\n  }\n  gl_FragColor = fragId / 255.0;\n}\n&quot;])},{glslify:323}],323:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],324:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;typedarray-pool&quot;),o=t(&quot;./lib/shader&quot;);function s(t,e,r,n,i){this.plot=t,this.offsetBuffer=e,this.pickBuffer=r,this.shader=n,this.pickShader=i,this.sizeMin=.5,this.sizeMinCap=2,this.sizeMax=20,this.areaRatio=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.blend=!1,this.pickOffset=0,this.points=null}e.exports=function(t,e){var r=t.gl,a=i(r),l=i(r),c=n(r,o.pointVertex,o.pointFragment),u=n(r,o.pickVertex,o.pickFragment),f=new s(t,a,l,c,u);return f.update(e),t.addObject(f),f};var l,c,u=s.prototype;u.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.plot.removeObject(this)},u.update=function(t){var e;function r(e,r){return e in t?t[e]:r}t=t||{},this.sizeMin=r(&quot;sizeMin&quot;,.5),this.sizeMax=r(&quot;sizeMax&quot;,20),this.color=r(&quot;color&quot;,[1,0,0,1]).slice(),this.areaRatio=r(&quot;areaRatio&quot;,1),this.borderColor=r(&quot;borderColor&quot;,[0,0,0,1]).slice(),this.blend=r(&quot;blend&quot;,!1);var n=t.positions.length&gt;&gt;&gt;1,i=t.positions instanceof Float32Array,o=t.idToIndex instanceof Int32Array&amp;&amp;t.idToIndex.length&gt;=n,s=t.positions,l=i?s:a.mallocFloat32(s.length),c=o?t.idToIndex:a.mallocInt32(n);if(i||l.set(s),!o)for(l.set(s),e=0;e&lt;n;e++)c[e]=e;this.points=s,this.offsetBuffer.update(l),this.pickBuffer.update(c),i||a.free(l),o||a.free(c),this.pointCount=n,this.pickOffset=0},u.unifiedDraw=(l=[1,0,0,0,1,0,0,0,1],c=[0,0,0,0],function(t){var e=void 0!==t,r=e?this.pickShader:this.shader,n=this.plot.gl,i=this.plot.dataBox;if(0===this.pointCount)return t;var a=i[2]-i[0],o=i[3]-i[1],s=function(t,e){var r,n=0,i=t.length&gt;&gt;&gt;1;for(r=0;r&lt;i;r++){var a=t[2*r],o=t[2*r+1];a&gt;=e[0]&amp;&amp;a&lt;=e[2]&amp;&amp;o&gt;=e[1]&amp;&amp;o&lt;=e[3]&amp;&amp;n++}return n}(this.points,i),u=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(s,.33333)));l[0]=2/a,l[4]=2/o,l[6]=-2*i[0]/a-1,l[7]=-2*i[1]/o-1,this.offsetBuffer.bind(),r.bind(),r.attributes.position.pointer(),r.uniforms.matrix=l,r.uniforms.color=this.color,r.uniforms.borderColor=this.borderColor,r.uniforms.pointCloud=u&lt;5,r.uniforms.pointSize=u,r.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),e&amp;&amp;(c[0]=255&amp;t,c[1]=t&gt;&gt;8&amp;255,c[2]=t&gt;&gt;16&amp;255,c[3]=t&gt;&gt;24&amp;255,this.pickBuffer.bind(),r.attributes.pickId.pointer(n.UNSIGNED_BYTE),r.uniforms.pickOffset=c,this.pickOffset=t);var f=n.getParameter(n.BLEND),h=n.getParameter(n.DITHER);return f&amp;&amp;!this.blend&amp;&amp;n.disable(n.BLEND),h&amp;&amp;n.disable(n.DITHER),n.drawArrays(n.POINTS,0,this.pointCount),f&amp;&amp;!this.blend&amp;&amp;n.enable(n.BLEND),h&amp;&amp;n.enable(n.DITHER),t+this.pointCount}),u.draw=u.unifiedDraw,u.drawPick=u.unifiedDraw,u.pick=function(t,e,r){var n=this.pickOffset,i=this.pointCount;if(r&lt;n||r&gt;=n+i)return null;var a=r-n,o=this.points;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}}},{&quot;./lib/shader&quot;:322,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335,&quot;typedarray-pool&quot;:595}],325:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c=e[0],u=e[1],f=e[2],h=e[3],p=r[0],d=r[1],g=r[2],m=r[3];(a=c*p+u*d+f*g+h*m)&lt;0&amp;&amp;(a=-a,p=-p,d=-d,g=-g,m=-m);1-a&gt;1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n);return t[0]=s*c+l*p,t[1]=s*u+l*d,t[2]=s*f+l*g,t[3]=s*h+l*m,t}},{}],326:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t||0===t?t.toString():&quot;&quot;}},{}],327:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;vectorize-text&quot;);e.exports=function(t,e,r){var a=i[e];a||(a=i[e]={});if(t in a)return a[t];var o={textAlign:&quot;center&quot;,textBaseline:&quot;middle&quot;,lineHeight:1,font:e,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},triangles:!0},s=n(t,o);o.triangles=!1;var l,c,u=n(t,o);if(r&amp;&amp;1!==r){for(l=0;l&lt;s.positions.length;++l)for(c=0;c&lt;s.positions[l].length;++c)s.positions[l][c]/=r;for(l=0;l&lt;u.positions.length;++l)for(c=0;c&lt;u.positions[l].length;++c)u.positions[l][c]/=r}var f=[[1/0,1/0],[-1/0,-1/0]],h=u.positions.length;for(l=0;l&lt;h;++l){var p=u.positions[l];for(c=0;c&lt;2;++c)f[0][c]=Math.min(f[0][c],p[c]),f[1][c]=Math.max(f[1][c],p[c])}return a[t]=[s,u,f]};var i={}},{&quot;vectorize-text&quot;:600}],328:[function(t,e,r){var n=t(&quot;gl-shader&quot;),i=t(&quot;glslify&quot;),a=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform vec4 highlightId;\nuniform float highlightScale;\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float scale = 1.0;\n    if(distance(highlightId, id) &lt; 0.0001) {\n      scale = highlightScale;\n    }\n\n    vec4 worldPosition = model * vec4(position, 1);\n    vec4 viewPosition = view * worldPosition;\n    viewPosition = viewPosition / viewPosition.w;\n    vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\n\n    gl_Position = clipPosition;\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = position;\n  }\n}&quot;]),o=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float highlightScale, pixelRatio;\nuniform vec4 highlightId;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float scale = pixelRatio;\n    if(distance(highlightId.bgr, id.bgr) &lt; 0.001) {\n      scale *= highlightScale;\n    }\n\n    vec4 worldPosition = model * vec4(position, 1.0);\n    vec4 viewPosition = view * worldPosition;\n    vec4 clipPosition = projection * viewPosition;\n    clipPosition /= clipPosition.w;\n\n    gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = position;\n  }\n}&quot;]),s=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform float highlightScale;\nuniform vec4 highlightId;\nuniform vec3 axes[2];\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float scale, pixelRatio;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float lscale = pixelRatio * scale;\n    if(distance(highlightId, id) &lt; 0.0001) {\n      lscale *= highlightScale;\n    }\n\n    vec4 clipCenter   = projection * view * model * vec4(position, 1);\n    vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\n    vec4 clipPosition = projection * view * model * vec4(dataPosition, 1);\n\n    gl_Position = clipPosition;\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = dataPosition;\n  }\n}\n&quot;]),l=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float opacity;\n\nvarying vec4 interpColor;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (\n    outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) ||\n    interpColor.a * opacity == 0.\n  ) discard;\n  gl_FragColor = interpColor * opacity;\n}\n&quot;]),c=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float pickGroup;\n\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\n\n  gl_FragColor = vec4(pickGroup, pickId.bgr);\n}&quot;]),u=[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;glyph&quot;,type:&quot;vec2&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}],f={vertex:a,fragment:l,attributes:u},h={vertex:o,fragment:l,attributes:u},p={vertex:s,fragment:l,attributes:u},d={vertex:a,fragment:c,attributes:u},g={vertex:o,fragment:c,attributes:u},m={vertex:s,fragment:c,attributes:u};function v(t,e){var r=n(t,e),i=r.attributes;return i.position.location=0,i.color.location=1,i.glyph.location=2,i.id.location=3,r}r.createPerspective=function(t){return v(t,f)},r.createOrtho=function(t){return v(t,h)},r.createProject=function(t){return v(t,p)},r.createPickPerspective=function(t){return v(t,d)},r.createPickOrtho=function(t){return v(t,g)},r.createPickProject=function(t){return v(t,m)}},{&quot;gl-shader&quot;:335,glslify:329}],329:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],330:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-string-blank&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;typedarray-pool&quot;),s=t(&quot;gl-mat4/multiply&quot;),l=t(&quot;./lib/shaders&quot;),c=t(&quot;./lib/glyphs&quot;),u=t(&quot;./lib/get-simple-string&quot;),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];return t[0]=e[0]*r+e[4]*n+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*n+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*n+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*n+e[11]*i+e[15]*a,t}function p(t,e,r,n){return h(n,n),h(n,n),h(n,n)}function d(t,e){this.index=t,this.dataCoordinate=this.position=e}function g(t){return!0===t||t&gt;1?1:t}function m(t,e,r,n,i,a,o,s,l,c,u,f){this.gl=t,this.pixelRatio=1,this.shader=e,this.orthoShader=r,this.projectShader=n,this.pointBuffer=i,this.colorBuffer=a,this.glyphBuffer=o,this.idBuffer=s,this.vao=l,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[2/3,2/3,2/3],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=c,this.pickOrthoShader=u,this.pickProjectShader=f,this.points=[],this._selectResult=new d(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}e.exports=function(t){var e=t.gl,r=l.createPerspective(e),n=l.createOrtho(e),o=l.createProject(e),s=l.createPickPerspective(e),c=l.createPickOrtho(e),u=l.createPickProject(e),f=i(e),h=i(e),p=i(e),d=i(e),g=a(e,[{buffer:f,size:3,type:e.FLOAT},{buffer:h,size:4,type:e.FLOAT},{buffer:p,size:2,type:e.FLOAT},{buffer:d,size:4,type:e.UNSIGNED_BYTE,normalized:!0}]),v=new m(e,r,n,o,f,h,p,d,g,s,c,u);return v.update(t),v};var v=m.prototype;v.pickSlots=1,v.setPickBase=function(t){this.pickId=t},v.isTransparent=function(){if(this.hasAlpha)return!0;for(var t=0;t&lt;3;++t)if(this.axesProject[t]&amp;&amp;this.projectHasAlpha)return!0;return!1},v.isOpaque=function(){if(!this.hasAlpha)return!0;for(var t=0;t&lt;3;++t)if(this.axesProject[t]&amp;&amp;!this.projectHasAlpha)return!0;return!1};var y=[0,0],x=[0,0,0],b=[0,0,0],_=[0,0,0,1],w=[0,0,0,1],T=f.slice(),k=[0,0,0],M=[[0,0,0],[0,0,0]];function A(t){return t[0]=t[1]=t[2]=0,t}function S(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=1,t}function E(t,e,r,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[r]=n,t}function C(t,e,r,n){var i,a=e.axesProject,o=e.gl,l=t.uniforms,c=r.model||f,u=r.view||f,h=r.projection||f,d=e.axesBounds,g=function(t){for(var e=M,r=0;r&lt;2;++r)for(var n=0;n&lt;3;++n)e[r][n]=Math.max(Math.min(t[r][n],1e8),-1e8);return e}(e.clipBounds);i=e.axes&amp;&amp;e.axes.lastCubeProps?e.axes.lastCubeProps.axis:[1,1,1],y[0]=2/o.drawingBufferWidth,y[1]=2/o.drawingBufferHeight,t.bind(),l.view=u,l.projection=h,l.screenSize=y,l.highlightId=e.highlightId,l.highlightScale=e.highlightScale,l.clipBounds=g,l.pickGroup=e.pickId/255,l.pixelRatio=n;for(var m=0;m&lt;3;++m)if(a[m]){l.scale=e.projectScale[m],l.opacity=e.projectOpacity[m];for(var v=T,C=0;C&lt;16;++C)v[C]=0;for(C=0;C&lt;4;++C)v[5*C]=1;v[5*m]=0,i[m]&lt;0?v[12+m]=d[0][m]:v[12+m]=d[1][m],s(v,c,v),l.model=v;var L=(m+1)%3,I=(m+2)%3,P=A(x),z=A(b);P[L]=1,z[I]=1;var O=p(0,0,0,S(_,P)),D=p(0,0,0,S(w,z));if(Math.abs(O[1])&gt;Math.abs(D[1])){var R=O;O=D,D=R,R=P,P=z,z=R;var F=L;L=I,I=F}O[0]&lt;0&amp;&amp;(P[L]=-1),D[1]&gt;0&amp;&amp;(z[I]=-1);var B=0,N=0;for(C=0;C&lt;4;++C)B+=Math.pow(c[4*L+C],2),N+=Math.pow(c[4*I+C],2);P[L]/=Math.sqrt(B),z[I]/=Math.sqrt(N),l.axes[0]=P,l.axes[1]=z,l.fragClipBounds[0]=E(k,g[0],m,-1e8),l.fragClipBounds[1]=E(k,g[1],m,1e8),e.vao.bind(),e.vao.draw(o.TRIANGLES,e.vertexCount),e.lineWidth&gt;0&amp;&amp;(o.lineWidth(e.lineWidth*n),e.vao.draw(o.LINES,e.lineVertexCount,e.vertexCount)),e.vao.unbind()}}var L=[[-1e8,-1e8,-1e8],[1e8,1e8,1e8]];function I(t,e,r,n,i,a,o){var s=r.gl;if((a===r.projectHasAlpha||o)&amp;&amp;C(e,r,n,i),a===r.hasAlpha||o){t.bind();var l=t.uniforms;l.model=n.model||f,l.view=n.view||f,l.projection=n.projection||f,y[0]=2/s.drawingBufferWidth,y[1]=2/s.drawingBufferHeight,l.screenSize=y,l.highlightId=r.highlightId,l.highlightScale=r.highlightScale,l.fragClipBounds=L,l.clipBounds=r.axes.bounds,l.opacity=r.opacity,l.pickGroup=r.pickId/255,l.pixelRatio=i,r.vao.bind(),r.vao.draw(s.TRIANGLES,r.vertexCount),r.lineWidth&gt;0&amp;&amp;(s.lineWidth(r.lineWidth*i),r.vao.draw(s.LINES,r.lineVertexCount,r.vertexCount)),r.vao.unbind()}}function P(t,e,r,i){var a;a=Array.isArray(t)?e&lt;t.length?t[e]:void 0:t,a=u(a);var o=!0;n(a)&amp;&amp;(a=&quot;\u25bc&quot;,o=!1);var s=c(a,r,i);return{mesh:s[0],lines:s[1],bounds:s[2],visible:o}}v.draw=function(t){I(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,this.pixelRatio,!1,!1)},v.drawTransparent=function(t){I(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,this.pixelRatio,!0,!1)},v.drawPick=function(t){I(this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader,this.pickProjectShader,this,t,1,!0,!0)},v.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[2]+(t.value[1]&lt;&lt;8)+(t.value[0]&lt;&lt;16);if(e&gt;=this.pointCount||e&lt;0)return null;var r=this.points[e],n=this._selectResult;n.index=e;for(var i=0;i&lt;3;++i)n.position[i]=n.dataCoordinate[i]=r[i];return n},v.highlight=function(t){if(t){var e=t.index,r=255&amp;e,n=e&gt;&gt;8&amp;255,i=e&gt;&gt;16&amp;255;this.highlightId=[r/255,n/255,i/255,0]}else this.highlightId=[1,1,1,1]},v.update=function(t){if(&quot;perspective&quot;in(t=t||{})&amp;&amp;(this.useOrtho=!t.perspective),&quot;orthographic&quot;in t&amp;&amp;(this.useOrtho=!!t.orthographic),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;project&quot;in t)if(Array.isArray(t.project))this.axesProject=t.project;else{var e=!!t.project;this.axesProject=[e,e,e]}if(&quot;projectScale&quot;in t)if(Array.isArray(t.projectScale))this.projectScale=t.projectScale.slice();else{var r=+t.projectScale;this.projectScale=[r,r,r]}if(this.projectHasAlpha=!1,&quot;projectOpacity&quot;in t){if(Array.isArray(t.projectOpacity))this.projectOpacity=t.projectOpacity.slice();else{r=+t.projectOpacity;this.projectOpacity=[r,r,r]}for(var n=0;n&lt;3;++n)this.projectOpacity[n]=g(this.projectOpacity[n]),this.projectOpacity[n]&lt;1&amp;&amp;(this.projectHasAlpha=!0)}this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=g(t.opacity),this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0)),this.dirty=!0;var i,a,s=t.position,l=t.font||&quot;normal&quot;,c=t.alignment||[0,0];if(2===c.length)i=c[0],a=c[1];else{i=[],a=[];for(n=0;n&lt;c.length;++n)i[n]=c[n][0],a[n]=c[n][1]}var u=[1/0,1/0,1/0],f=[-1/0,-1/0,-1/0],h=t.glyph,p=t.color,d=t.size,m=t.angle,v=t.lineColor,y=-1,x=0,b=0,_=0;if(s.length){_=s.length;t:for(n=0;n&lt;_;++n){for(var w=s[n],T=0;T&lt;3;++T)if(isNaN(w[T])||!isFinite(w[T]))continue t;var k=(N=P(h,n,l,this.pixelRatio)).mesh,M=N.lines,A=N.bounds;x+=3*k.cells.length,b+=2*M.edges.length}}var S=x+b,E=o.mallocFloat(3*S),C=o.mallocFloat(4*S),L=o.mallocFloat(2*S),I=o.mallocUint32(S);if(S&gt;0){var z=0,O=x,D=[0,0,0,1],R=[0,0,0,1],F=Array.isArray(p)&amp;&amp;Array.isArray(p[0]),B=Array.isArray(v)&amp;&amp;Array.isArray(v[0]);t:for(n=0;n&lt;_;++n){y+=1;for(w=s[n],T=0;T&lt;3;++T){if(isNaN(w[T])||!isFinite(w[T]))continue t;f[T]=Math.max(f[T],w[T]),u[T]=Math.min(u[T],w[T])}k=(N=P(h,n,l,this.pixelRatio)).mesh,M=N.lines,A=N.bounds;var N,j=N.visible;if(j)if(Array.isArray(p)){if(3===(U=F?n&lt;p.length?p[n]:[0,0,0,0]:p).length){for(T=0;T&lt;3;++T)D[T]=U[T];D[3]=1}else if(4===U.length){for(T=0;T&lt;4;++T)D[T]=U[T];!this.hasAlpha&amp;&amp;U[3]&lt;1&amp;&amp;(this.hasAlpha=!0)}}else D[0]=D[1]=D[2]=0,D[3]=1;else D=[1,1,1,0];if(j)if(Array.isArray(v)){var U;if(3===(U=B?n&lt;v.length?v[n]:[0,0,0,0]:v).length){for(T=0;T&lt;3;++T)R[T]=U[T];R[T]=1}else if(4===U.length){for(T=0;T&lt;4;++T)R[T]=U[T];!this.hasAlpha&amp;&amp;U[3]&lt;1&amp;&amp;(this.hasAlpha=!0)}}else R[0]=R[1]=R[2]=0,R[3]=1;else R=[1,1,1,0];var V=.5;j?Array.isArray(d)?V=n&lt;d.length?+d[n]:12:d?V=+d:this.useOrtho&amp;&amp;(V=12):V=0;var q=0;Array.isArray(m)?q=n&lt;m.length?+m[n]:0:m&amp;&amp;(q=+m);var H=Math.cos(q),G=Math.sin(q);for(w=s[n],T=0;T&lt;3;++T)f[T]=Math.max(f[T],w[T]),u[T]=Math.min(u[T],w[T]);var Y=i,W=a;Y=0;Array.isArray(i)?Y=n&lt;i.length?i[n]:0:i&amp;&amp;(Y=i);W=0;Array.isArray(a)?W=n&lt;a.length?a[n]:0:a&amp;&amp;(W=a);var X=[Y*=Y&gt;0?1-A[0][0]:Y&lt;0?1+A[1][0]:1,W*=W&gt;0?1-A[0][1]:W&lt;0?1+A[1][1]:1],Z=k.cells||[],J=k.positions||[];for(T=0;T&lt;Z.length;++T)for(var K=Z[T],Q=0;Q&lt;3;++Q){for(var $=0;$&lt;3;++$)E[3*z+$]=w[$];for($=0;$&lt;4;++$)C[4*z+$]=D[$];I[z]=y;var tt=J[K[Q]];L[2*z]=V*(H*tt[0]-G*tt[1]+X[0]),L[2*z+1]=V*(G*tt[0]+H*tt[1]+X[1]),z+=1}for(Z=M.edges,J=M.positions,T=0;T&lt;Z.length;++T)for(K=Z[T],Q=0;Q&lt;2;++Q){for($=0;$&lt;3;++$)E[3*O+$]=w[$];for($=0;$&lt;4;++$)C[4*O+$]=R[$];I[O]=y;tt=J[K[Q]];L[2*O]=V*(H*tt[0]-G*tt[1]+X[0]),L[2*O+1]=V*(G*tt[0]+H*tt[1]+X[1]),O+=1}}}this.bounds=[u,f],this.points=s,this.pointCount=s.length,this.vertexCount=x,this.lineVertexCount=b,this.pointBuffer.update(E),this.colorBuffer.update(C),this.glyphBuffer.update(L),this.idBuffer.update(I),o.free(E),o.free(C),o.free(L),o.free(I)},v.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()}},{&quot;./lib/get-simple-string&quot;:326,&quot;./lib/glyphs&quot;:327,&quot;./lib/shaders&quot;:328,&quot;gl-buffer&quot;:259,&quot;gl-mat4/multiply&quot;:295,&quot;gl-vao&quot;:358,&quot;is-string-blank&quot;:470,&quot;typedarray-pool&quot;:595}],331:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;);r.boxVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 vertex;\n\nuniform vec2 cornerA, cornerB;\n\nvoid main() {\n  gl_Position = vec4(mix(cornerA, cornerB, vertex), 0, 1);\n}\n&quot;]),r.boxFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color;\n\nvoid main() {\n  gl_FragColor = color;\n}\n&quot;])},{glslify:332}],332:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],333:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;./lib/shaders&quot;);function o(t,e,r){this.plot=t,this.boxBuffer=e,this.boxShader=r,this.enabled=!0,this.selectBox=[1/0,1/0,-1/0,-1/0],this.borderColor=[0,0,0,1],this.innerFill=!1,this.innerColor=[0,0,0,.25],this.outerFill=!0,this.outerColor=[0,0,0,.5],this.borderWidth=10}e.exports=function(t,e){var r=t.gl,s=i(r,[0,0,0,1,1,0,1,1]),l=n(r,a.boxVertex,a.boxFragment),c=new o(t,s,l);return c.update(e),t.addOverlay(c),c};var s=o.prototype;s.draw=function(){if(this.enabled){var t=this.plot,e=this.selectBox,r=this.borderWidth,n=(this.innerFill,this.innerColor),i=(this.outerFill,this.outerColor),a=this.borderColor,o=t.box,s=t.screenBox,l=t.dataBox,c=t.viewBox,u=t.pixelRatio,f=(e[0]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],h=(e[1]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1],p=(e[2]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],d=(e[3]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1];if(f=Math.max(f,c[0]),h=Math.max(h,c[1]),p=Math.min(p,c[2]),d=Math.min(d,c[3]),!(p&lt;f||d&lt;h)){o.bind();var g=s[2]-s[0],m=s[3]-s[1];if(this.outerFill&amp;&amp;(o.drawBox(0,0,g,h,i),o.drawBox(0,h,f,d,i),o.drawBox(0,d,g,m,i),o.drawBox(p,h,g,d,i)),this.innerFill&amp;&amp;o.drawBox(f,h,p,d,n),r&gt;0){var v=r*u;o.drawBox(f-v,h-v,p+v,h+v,a),o.drawBox(f-v,d-v,p+v,d+v,a),o.drawBox(f-v,h-v,f+v,d+v,a),o.drawBox(p-v,h-v,p+v,d+v,a)}}}},s.update=function(t){t=t||{},this.innerFill=!!t.innerFill,this.outerFill=!!t.outerFill,this.innerColor=(t.innerColor||[0,0,0,.5]).slice(),this.outerColor=(t.outerColor||[0,0,0,.5]).slice(),this.borderColor=(t.borderColor||[0,0,0,1]).slice(),this.borderWidth=t.borderWidth||0,this.selectBox=(t.selectBox||this.selectBox).slice()},s.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)}},{&quot;./lib/shaders&quot;:331,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],334:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=e[0],a=e[1],o=n(t,r,a,{}),s=i.mallocUint8(r*a*4);return new l(t,o,s)};var n=t(&quot;gl-fbo&quot;),i=t(&quot;typedarray-pool&quot;),a=t(&quot;ndarray&quot;),o=t(&quot;bit-twiddle&quot;).nextPow2;function s(t,e,r,n,i){this.coord=[t,e],this.id=r,this.value=n,this.distance=i}function l(t,e,r){this.gl=t,this.fbo=e,this.buffer=r,this._readTimeout=null;var n=this;this._readCallback=function(){n.gl&amp;&amp;(e.bind(),t.readPixels(0,0,e.shape[0],e.shape[1],t.RGBA,t.UNSIGNED_BYTE,n.buffer),n._readTimeout=null)}}var c=l.prototype;Object.defineProperty(c,&quot;shape&quot;,{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(t){if(this.gl){this.fbo.shape=t;var e=this.fbo.shape[0],r=this.fbo.shape[1];if(r*e*4&gt;this.buffer.length){i.free(this.buffer);for(var n=this.buffer=i.mallocUint8(o(r*e*4)),a=0;a&lt;r*e*4;++a)n[a]=255}return t}}}),c.begin=function(){var t=this.gl;this.shape;t&amp;&amp;(this.fbo.bind(),t.clearColor(1,1,1,1),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT))},c.end=function(){var t=this.gl;t&amp;&amp;(t.bindFramebuffer(t.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},c.query=function(t,e,r){if(!this.gl)return null;var n=this.fbo.shape.slice();t|=0,e|=0,&quot;number&quot;!=typeof r&amp;&amp;(r=1);var i=0|Math.min(Math.max(t-r,0),n[0]),o=0|Math.min(Math.max(t+r,0),n[0]),l=0|Math.min(Math.max(e-r,0),n[1]),c=0|Math.min(Math.max(e+r,0),n[1]);if(o&lt;=i||c&lt;=l)return null;var u=[o-i,c-l],f=a(this.buffer,[u[0],u[1],4],[4,4*n[0],1],4*(i+n[0]*l)),h=function(t,e,r){for(var n=1e8,i=-1,a=-1,o=t.shape[0],s=t.shape[1],l=0;l&lt;o;l++)for(var c=0;c&lt;s;c++){var u=t.get(l,c,0),f=t.get(l,c,1),h=t.get(l,c,2),p=t.get(l,c,3);if(u&lt;255||f&lt;255||h&lt;255||p&lt;255){var d=e-l,g=r-c,m=d*d+g*g;m&lt;n&amp;&amp;(n=m,i=l,a=c)}}return[i,a,n]}(f.hi(u[0],u[1],1),r,r),p=h[0],d=h[1];return p&lt;0||Math.pow(this.radius,2)&lt;h[2]?null:new s(p+i|0,d+l|0,f.get(p,d,0),[f.get(p,d,1),f.get(p,d,2),f.get(p,d,3)],Math.sqrt(h[2]))},c.dispose=function(){this.gl&amp;&amp;(this.fbo.dispose(),i.free(this.buffer),this.gl=null,this._readTimeout&amp;&amp;clearTimeout(this._readTimeout))}},{&quot;bit-twiddle&quot;:97,&quot;gl-fbo&quot;:269,ndarray:495,&quot;typedarray-pool&quot;:595}],335:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/create-uniforms&quot;),i=t(&quot;./lib/create-attributes&quot;),a=t(&quot;./lib/reflect&quot;),o=t(&quot;./lib/shader-cache&quot;),s=t(&quot;./lib/runtime-reflect&quot;),l=t(&quot;./lib/GLError&quot;);function c(t){this.gl=t,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}var u=c.prototype;function f(t,e){return t.name&lt;e.name?-1:1}u.bind=function(){var t;this.program||this._relink();var e=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),r=this.gl.lastAttribCount;if(e&gt;r)for(t=r;t&lt;e;t++)this.gl.enableVertexAttribArray(t);else if(r&gt;e)for(t=e;t&lt;r;t++)this.gl.disableVertexAttribArray(t);this.gl.lastAttribCount=e,this.gl.useProgram(this.program)},u.dispose=function(){for(var t=this.gl.lastAttribCount,e=0;e&lt;t;e++)this.gl.disableVertexAttribArray(e);this.gl.lastAttribCount=0,this._fref&amp;&amp;this._fref.dispose(),this._vref&amp;&amp;this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null},u.update=function(t,e,r,c){if(!e||1===arguments.length){var u=t;t=u.vertex,e=u.fragment,r=u.uniforms,c=u.attributes}var h=this,p=h.gl,d=h._vref;h._vref=o.shader(p,p.VERTEX_SHADER,t),d&amp;&amp;d.dispose(),h.vertShader=h._vref.shader;var g=this._fref;if(h._fref=o.shader(p,p.FRAGMENT_SHADER,e),g&amp;&amp;g.dispose(),h.fragShader=h._fref.shader,!r||!c){var m=p.createProgram();if(p.attachShader(m,h.fragShader),p.attachShader(m,h.vertShader),p.linkProgram(m),!p.getProgramParameter(m,p.LINK_STATUS)){var v=p.getProgramInfoLog(m);throw new l(v,&quot;Error linking program:&quot;+v)}r=r||s.uniforms(p,m),c=c||s.attributes(p,m),p.deleteProgram(m)}(c=c.slice()).sort(f);var y,x=[],b=[],_=[];for(y=0;y&lt;c.length;++y){var w=c[y];if(w.type.indexOf(&quot;mat&quot;)&gt;=0){for(var T=0|w.type.charAt(w.type.length-1),k=new Array(T),M=0;M&lt;T;++M)k[M]=_.length,b.push(w.name+&quot;[&quot;+M+&quot;]&quot;),&quot;number&quot;==typeof w.location?_.push(w.location+M):Array.isArray(w.location)&amp;&amp;w.location.length===T&amp;&amp;&quot;number&quot;==typeof w.location[M]?_.push(0|w.location[M]):_.push(-1);x.push({name:w.name,type:w.type,locations:k})}else x.push({name:w.name,type:w.type,locations:[_.length]}),b.push(w.name),&quot;number&quot;==typeof w.location?_.push(0|w.location):_.push(-1)}var A=0;for(y=0;y&lt;_.length;++y)if(_[y]&lt;0){for(;_.indexOf(A)&gt;=0;)A+=1;_[y]=A}var S=new Array(r.length);function E(){h.program=o.program(p,h._vref,h._fref,b,_);for(var t=0;t&lt;r.length;++t)S[t]=p.getUniformLocation(h.program,r[t].name)}E(),h._relink=E,h.types={uniforms:a(r),attributes:a(c)},h.attributes=i(p,h,x,_),Object.defineProperty(h,&quot;uniforms&quot;,n(p,h,r,S))},e.exports=function(t,e,r,n,i){var a=new c(t);return a.update(e,r,n,i),a}},{&quot;./lib/GLError&quot;:336,&quot;./lib/create-attributes&quot;:337,&quot;./lib/create-uniforms&quot;:338,&quot;./lib/reflect&quot;:339,&quot;./lib/runtime-reflect&quot;:340,&quot;./lib/shader-cache&quot;:341}],336:[function(t,e,r){function n(t,e,r){this.shortMessage=e||&quot;&quot;,this.longMessage=r||&quot;&quot;,this.rawError=t||&quot;&quot;,this.message=&quot;gl-shader: &quot;+(e||t||&quot;&quot;)+(r?&quot;\n&quot;+r:&quot;&quot;),this.stack=(new Error).stack}n.prototype=new Error,n.prototype.name=&quot;GLError&quot;,n.prototype.constructor=n,e.exports=n},{}],337:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,i){for(var a={},l=0,c=r.length;l&lt;c;++l){var u=r[l],f=u.name,h=u.type,p=u.locations;switch(h){case&quot;bool&quot;:case&quot;int&quot;:case&quot;float&quot;:o(t,e,p[0],i,1,a,f);break;default:if(h.indexOf(&quot;vec&quot;)&gt;=0){if((d=h.charCodeAt(h.length-1)-48)&lt;2||d&gt;4)throw new n(&quot;&quot;,&quot;Invalid data type for attribute &quot;+f+&quot;: &quot;+h);o(t,e,p[0],i,d,a,f)}else{if(!(h.indexOf(&quot;mat&quot;)&gt;=0))throw new n(&quot;&quot;,&quot;Unknown data type for attribute &quot;+f+&quot;: &quot;+h);var d;if((d=h.charCodeAt(h.length-1)-48)&lt;2||d&gt;4)throw new n(&quot;&quot;,&quot;Invalid data type for attribute &quot;+f+&quot;: &quot;+h);s(t,e,p,i,d,a,f)}}}return a};var n=t(&quot;./GLError&quot;);function i(t,e,r,n,i,a){this._gl=t,this._wrapper=e,this._index=r,this._locations=n,this._dimension=i,this._constFunc=a}var a=i.prototype;function o(t,e,r,n,a,o,s){for(var l=[&quot;gl&quot;,&quot;v&quot;],c=[],u=0;u&lt;a;++u)l.push(&quot;x&quot;+u),c.push(&quot;x&quot;+u);l.push(&quot;if(x0.length===void 0){return gl.vertexAttrib&quot;+a+&quot;f(v,&quot;+c.join()+&quot;)}else{return gl.vertexAttrib&quot;+a+&quot;fv(v,x0)}&quot;);var f=Function.apply(null,l),h=new i(t,e,r,n,a,f);Object.defineProperty(o,s,{set:function(e){return t.disableVertexAttribArray(n[r]),f(t,n[r],e),e},get:function(){return h},enumerable:!0})}function s(t,e,r,n,i,a,s){for(var l=new Array(i),c=new Array(i),u=0;u&lt;i;++u)o(t,e,r[u],n,i,l,u),c[u]=l[u];Object.defineProperty(l,&quot;location&quot;,{set:function(t){if(Array.isArray(t))for(var e=0;e&lt;i;++e)c[e].location=t[e];else for(e=0;e&lt;i;++e)c[e].location=t+e;return t},get:function(){for(var t=new Array(i),e=0;e&lt;i;++e)t[e]=n[r[e]];return t},enumerable:!0}),l.pointer=function(e,a,o,s){e=e||t.FLOAT,a=!!a,o=o||i*i,s=s||0;for(var l=0;l&lt;i;++l){var c=n[r[l]];t.vertexAttribPointer(c,i,e,a,o,s+l*i),t.enableVertexAttribArray(c)}};var f=new Array(i),h=t[&quot;vertexAttrib&quot;+i+&quot;fv&quot;];Object.defineProperty(a,s,{set:function(e){for(var a=0;a&lt;i;++a){var o=n[r[a]];if(t.disableVertexAttribArray(o),Array.isArray(e[0]))h.call(t,o,e[a]);else{for(var s=0;s&lt;i;++s)f[s]=e[i*a+s];h.call(t,o,f)}}return e},get:function(){return l},enumerable:!0})}a.pointer=function(t,e,r,n){var i=this._gl,a=this._locations[this._index];i.vertexAttribPointer(a,this._dimension,t||i.FLOAT,!!e,r||0,n||0),i.enableVertexAttribArray(a)},a.set=function(t,e,r,n){return this._constFunc(this._locations[this._index],t,e,r,n)},Object.defineProperty(a,&quot;location&quot;,{get:function(){return this._locations[this._index]},set:function(t){return t!==this._locations[this._index]&amp;&amp;(this._locations[this._index]=0|t,this._wrapper.program=null),0|t}})},{&quot;./GLError&quot;:336}],338:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./reflect&quot;),i=t(&quot;./GLError&quot;);function a(t){return new Function(&quot;y&quot;,&quot;return function(){return y}&quot;)(t)}function o(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}e.exports=function(t,e,r,s){function l(t,e,r){switch(r){case&quot;bool&quot;:case&quot;int&quot;:case&quot;sampler2D&quot;:case&quot;samplerCube&quot;:return&quot;gl.uniform1i(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;case&quot;float&quot;:return&quot;gl.uniform1f(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;default:var n=r.indexOf(&quot;vec&quot;);if(!(0&lt;=n&amp;&amp;n&lt;=1&amp;&amp;r.length===4+n)){if(0===r.indexOf(&quot;mat&quot;)&amp;&amp;4===r.length){var a;if((a=r.charCodeAt(r.length-1)-48)&lt;2||a&gt;4)throw new i(&quot;&quot;,&quot;Invalid uniform dimension type for matrix &quot;+name+&quot;: &quot;+r);return&quot;gl.uniformMatrix&quot;+a+&quot;fv(locations[&quot;+e+&quot;],false,obj&quot;+t+&quot;)&quot;}throw new i(&quot;&quot;,&quot;Unknown uniform data type for &quot;+name+&quot;: &quot;+r)}if((a=r.charCodeAt(r.length-1)-48)&lt;2||a&gt;4)throw new i(&quot;&quot;,&quot;Invalid data type&quot;);switch(r.charAt(0)){case&quot;b&quot;:case&quot;i&quot;:return&quot;gl.uniform&quot;+a+&quot;iv(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;case&quot;v&quot;:return&quot;gl.uniform&quot;+a+&quot;fv(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;default:throw new i(&quot;&quot;,&quot;Unrecognized data type for vector &quot;+name+&quot;: &quot;+r)}}}function c(e){for(var n=[&quot;return function updateProperty(obj){&quot;],i=function t(e,r){if(&quot;object&quot;!=typeof r)return[[e,r]];var n=[];for(var i in r){var a=r[i],o=e;parseInt(i)+&quot;&quot;===i?o+=&quot;[&quot;+i+&quot;]&quot;:o+=&quot;.&quot;+i,&quot;object&quot;==typeof a?n.push.apply(n,t(o,a)):n.push([o,a])}return n}(&quot;&quot;,e),a=0;a&lt;i.length;++a){var o=i[a],c=o[0],u=o[1];s[u]&amp;&amp;n.push(l(c,u,r[u].type))}return n.push(&quot;return obj}&quot;),new Function(&quot;gl&quot;,&quot;locations&quot;,n.join(&quot;\n&quot;))(t,s)}function u(n,l,u){if(&quot;object&quot;==typeof u){var h=f(u);Object.defineProperty(n,l,{get:a(h),set:c(u),enumerable:!0,configurable:!1})}else s[u]?Object.defineProperty(n,l,{get:(p=u,new Function(&quot;gl&quot;,&quot;wrapper&quot;,&quot;locations&quot;,&quot;return function(){return gl.getUniform(wrapper.program,locations[&quot;+p+&quot;])}&quot;)(t,e,s)),set:c(u),enumerable:!0,configurable:!1}):n[l]=function(t){switch(t){case&quot;bool&quot;:return!1;case&quot;int&quot;:case&quot;sampler2D&quot;:case&quot;samplerCube&quot;:case&quot;float&quot;:return 0;default:var e=t.indexOf(&quot;vec&quot;);if(0&lt;=e&amp;&amp;e&lt;=1&amp;&amp;t.length===4+e){if((r=t.charCodeAt(t.length-1)-48)&lt;2||r&gt;4)throw new i(&quot;&quot;,&quot;Invalid data type&quot;);return&quot;b&quot;===t.charAt(0)?o(r,!1):o(r,0)}if(0===t.indexOf(&quot;mat&quot;)&amp;&amp;4===t.length){var r;if((r=t.charCodeAt(t.length-1)-48)&lt;2||r&gt;4)throw new i(&quot;&quot;,&quot;Invalid uniform dimension type for matrix &quot;+name+&quot;: &quot;+t);return o(r*r,0)}throw new i(&quot;&quot;,&quot;Unknown uniform data type for &quot;+name+&quot;: &quot;+t)}}(r[u].type);var p}function f(t){var e;if(Array.isArray(t)){e=new Array(t.length);for(var r=0;r&lt;t.length;++r)u(e,r,t[r])}else for(var n in e={},t)u(e,n,t[n]);return e}var h=n(r,!0);return{get:a(f(h)),set:c(h),enumerable:!0,configurable:!0}}},{&quot;./GLError&quot;:336,&quot;./reflect&quot;:339}],339:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r={},n=0;n&lt;t.length;++n)for(var i=t[n].name.split(&quot;.&quot;),a=r,o=0;o&lt;i.length;++o){var s=i[o].split(&quot;[&quot;);if(s.length&gt;1){s[0]in a||(a[s[0]]=[]),a=a[s[0]];for(var l=1;l&lt;s.length;++l){var c=parseInt(s[l]);l&lt;s.length-1||o&lt;i.length-1?(c in a||(l&lt;s.length-1?a[c]=[]:a[c]={}),a=a[c]):a[c]=e?n:t[n].type}}else o&lt;i.length-1?(s[0]in a||(a[s[0]]={}),a=a[s[0]]):a[s[0]]=e?n:t[n].type}return r}},{}],340:[function(t,e,r){&quot;use strict&quot;;r.uniforms=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),n=[],i=0;i&lt;r;++i){var o=t.getActiveUniform(e,i);if(o){var s=a(t,o.type);if(o.size&gt;1)for(var l=0;l&lt;o.size;++l)n.push({name:o.name.replace(&quot;[0]&quot;,&quot;[&quot;+l+&quot;]&quot;),type:s});else n.push({name:o.name,type:s})}}return n},r.attributes=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),n=[],i=0;i&lt;r;++i){var o=t.getActiveAttrib(e,i);o&amp;&amp;n.push({name:o.name,type:a(t,o.type)})}return n};var n={FLOAT:&quot;float&quot;,FLOAT_VEC2:&quot;vec2&quot;,FLOAT_VEC3:&quot;vec3&quot;,FLOAT_VEC4:&quot;vec4&quot;,INT:&quot;int&quot;,INT_VEC2:&quot;ivec2&quot;,INT_VEC3:&quot;ivec3&quot;,INT_VEC4:&quot;ivec4&quot;,BOOL:&quot;bool&quot;,BOOL_VEC2:&quot;bvec2&quot;,BOOL_VEC3:&quot;bvec3&quot;,BOOL_VEC4:&quot;bvec4&quot;,FLOAT_MAT2:&quot;mat2&quot;,FLOAT_MAT3:&quot;mat3&quot;,FLOAT_MAT4:&quot;mat4&quot;,SAMPLER_2D:&quot;sampler2D&quot;,SAMPLER_CUBE:&quot;samplerCube&quot;},i=null;function a(t,e){if(!i){var r=Object.keys(n);i={};for(var a=0;a&lt;r.length;++a){var o=r[a];i[t[o]]=n[o]}}return i[e]}},{}],341:[function(t,e,r){&quot;use strict&quot;;r.shader=function(t,e,r){return u(t).getShaderReference(e,r)},r.program=function(t,e,r,n,i){return u(t).getProgram(e,r,n,i)};var n=t(&quot;./GLError&quot;),i=t(&quot;gl-format-compiler-error&quot;),a=new(&quot;undefined&quot;==typeof WeakMap?t(&quot;weakmap-shim&quot;):WeakMap),o=0;function s(t,e,r,n,i,a,o){this.id=t,this.src=e,this.type=r,this.shader=n,this.count=a,this.programs=[],this.cache=o}function l(t){this.gl=t,this.shaders=[{},{}],this.programs={}}s.prototype.dispose=function(){if(0==--this.count){for(var t=this.cache,e=t.gl,r=this.programs,n=0,i=r.length;n&lt;i;++n){var a=t.programs[r[n]];a&amp;&amp;(delete t.programs[n],e.deleteProgram(a))}e.deleteShader(this.shader),delete t.shaders[this.type===e.FRAGMENT_SHADER|0][this.src]}};var c=l.prototype;function u(t){var e=a.get(t);return e||(e=new l(t),a.set(t,e)),e}c.getShaderReference=function(t,e){var r=this.gl,a=this.shaders[t===r.FRAGMENT_SHADER|0],l=a[e];if(l&amp;&amp;r.isShader(l.shader))l.count+=1;else{var c=function(t,e,r){var a=t.createShader(e);if(t.shaderSource(a,r),t.compileShader(a),!t.getShaderParameter(a,t.COMPILE_STATUS)){var o=t.getShaderInfoLog(a);try{var s=i(o,r,e)}catch(t){throw console.warn(&quot;Failed to format compiler error: &quot;+t),new n(o,&quot;Error compiling shader:\n&quot;+o)}throw new n(o,s.short,s.long)}return a}(r,t,e);l=a[e]=new s(o++,e,t,c,[],1,this)}return l},c.getProgram=function(t,e,r,i){var a=[t.id,e.id,r.join(&quot;:&quot;),i.join(&quot;:&quot;)].join(&quot;@&quot;),o=this.programs[a];return o&amp;&amp;this.gl.isProgram(o)||(this.programs[a]=o=function(t,e,r,i,a){var o=t.createProgram();t.attachShader(o,e),t.attachShader(o,r);for(var s=0;s&lt;i.length;++s)t.bindAttribLocation(o,a[s],i[s]);if(t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS)){var l=t.getProgramInfoLog(o);throw new n(l,&quot;Error linking program: &quot;+l)}return o}(this.gl,t.shader,e.shader,r,i),t.programs.push(a),e.programs.push(a)),o}},{&quot;./GLError&quot;:336,&quot;gl-format-compiler-error&quot;:270,&quot;weakmap-shim&quot;:605}],342:[function(t,e,r){&quot;use strict&quot;;function n(t){this.plot=t,this.enable=[!0,!0,!1,!1],this.width=[1,1,1,1],this.color=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.center=[1/0,1/0]}e.exports=function(t,e){var r=new n(t);return r.update(e),t.addOverlay(r),r};var i=n.prototype;i.update=function(t){t=t||{},this.enable=(t.enable||[!0,!0,!1,!1]).slice(),this.width=(t.width||[1,1,1,1]).slice(),this.color=(t.color||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]).map((function(t){return t.slice()})),this.center=(t.center||[1/0,1/0]).slice(),this.plot.setOverlayDirty()},i.draw=function(){var t=this.enable,e=this.width,r=this.color,n=this.center,i=this.plot,a=i.line,o=i.dataBox,s=i.viewBox;if(a.bind(),o[0]&lt;=n[0]&amp;&amp;n[0]&lt;=o[2]&amp;&amp;o[1]&lt;=n[1]&amp;&amp;n[1]&lt;=o[3]){var l=s[0]+(n[0]-o[0])/(o[2]-o[0])*(s[2]-s[0]),c=s[1]+(n[1]-o[1])/(o[3]-o[1])*(s[3]-s[1]);t[0]&amp;&amp;a.drawLine(l,c,s[0],c,e[0],r[0]),t[1]&amp;&amp;a.drawLine(l,c,l,s[1],e[1],r[1]),t[2]&amp;&amp;a.drawLine(l,c,s[2],c,e[2],r[2]),t[3]&amp;&amp;a.drawLine(l,c,l,s[3],e[3],r[3])}},i.dispose=function(){this.plot.removeOverlay(this)}},{}],343:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],344:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position, color;\nattribute float weight;\n\nuniform mat4 model, view, projection;\nuniform vec3 coordinates[3];\nuniform vec4 colors[3];\nuniform vec2 screenShape;\nuniform float lineWidth;\n\nvarying vec4 fragColor;\n\nvoid main() {\n  vec3 vertexPosition = mix(coordinates[0],\n    mix(coordinates[2], coordinates[1], 0.5 * (position + 1.0)), abs(position));\n\n  vec4 clipPos = projection * view * model * vec4(vertexPosition, 1.0);\n  vec2 clipOffset = (projection * view * model * vec4(color, 0.0)).xy;\n  vec2 delta = weight * clipOffset * screenShape;\n  vec2 lineOffset = normalize(vec2(delta.y, -delta.x)) / screenShape;\n\n  gl_Position   = vec4(clipPos.xy + clipPos.w * 0.5 * lineWidth * lineOffset, clipPos.z, clipPos.w);\n  fragColor     = color.x * colors[0] + color.y * colors[1] + color.z * colors[2];\n}\n&quot;]),o=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n  gl_FragColor = fragColor;\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec3&quot;},{name:&quot;weight&quot;,type:&quot;float&quot;}])}},{&quot;gl-shader&quot;:335,glslify:343}],345:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders/index&quot;);e.exports=function(t,e){var r=[];function o(t,e,n,i,a,o){var s=[t,e,n,0,0,0,1];s[i+3]=1,s[i]=a,r.push.apply(r,s),s[6]=-1,r.push.apply(r,s),s[i]=o,r.push.apply(r,s),r.push.apply(r,s),s[6]=1,r.push.apply(r,s),s[i]=a,r.push.apply(r,s)}o(0,0,0,0,0,1),o(0,0,0,1,0,1),o(0,0,0,2,0,1),o(1,0,0,1,-1,1),o(1,0,0,2,-1,1),o(0,1,0,0,-1,1),o(0,1,0,2,-1,1),o(0,0,1,0,-1,1),o(0,0,1,1,-1,1);var l=n(t,r),c=i(t,[{type:t.FLOAT,buffer:l,size:3,offset:0,stride:28},{type:t.FLOAT,buffer:l,size:3,offset:12,stride:28},{type:t.FLOAT,buffer:l,size:1,offset:24,stride:28}]),u=a(t);u.attributes.position.location=0,u.attributes.color.location=1,u.attributes.weight.location=2;var f=new s(t,l,c,u);return f.update(e),f};var o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n,this.pixelRatio=1,this.bounds=[[-1e3,-1e3,-1e3],[1e3,1e3,1e3]],this.position=[0,0,0],this.lineWidth=[2,2,2],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.enabled=[!0,!0,!0],this.drawSides=[!0,!0,!0],this.axes=null}var l=s.prototype,c=[0,0,0],u=[0,0,0],f=[0,0];l.isTransparent=function(){return!1},l.drawTransparent=function(t){},l.draw=function(t){var e=this.gl,r=this.vao,n=this.shader;r.bind(),n.bind();var i,a=t.model||o,s=t.view||o,l=t.projection||o;this.axes&amp;&amp;(i=this.axes.lastCubeProps.axis);for(var h=c,p=u,d=0;d&lt;3;++d)i&amp;&amp;i[d]&lt;0?(h[d]=this.bounds[0][d],p[d]=this.bounds[1][d]):(h[d]=this.bounds[1][d],p[d]=this.bounds[0][d]);f[0]=e.drawingBufferWidth,f[1]=e.drawingBufferHeight,n.uniforms.model=a,n.uniforms.view=s,n.uniforms.projection=l,n.uniforms.coordinates=[this.position,h,p],n.uniforms.colors=this.colors,n.uniforms.screenShape=f;for(d=0;d&lt;3;++d)n.uniforms.lineWidth=this.lineWidth[d]*this.pixelRatio,this.enabled[d]&amp;&amp;(r.draw(e.TRIANGLES,6,6*d),this.drawSides[d]&amp;&amp;r.draw(e.TRIANGLES,12,18+12*d));r.unbind()},l.update=function(t){t&amp;&amp;(&quot;bounds&quot;in t&amp;&amp;(this.bounds=t.bounds),&quot;position&quot;in t&amp;&amp;(this.position=t.position),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;colors&quot;in t&amp;&amp;(this.colors=t.colors),&quot;enabled&quot;in t&amp;&amp;(this.enabled=t.enabled),&quot;drawSides&quot;in t&amp;&amp;(this.drawSides=t.drawSides))},l.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{&quot;./shaders/index&quot;:344,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],346:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n  float segmentCount = 8.0;\n\n  float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d);\n  vec3 y = v * sin(angle) * length(d);\n  vec3 v3 = x + y;\n\n  normal = normalize(v3);\n\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, tubeScale;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  // Scale the vector magnitude to stay constant with\n  // model &amp; view changes.\n  vec3 normal;\n  vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n  vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * tubePosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  // vec4 m_position  = model * vec4(tubePosition, 1.0);\n  vec4 t_position  = view * tubePosition;\n  gl_Position      = projection * t_position;\n\n  f_color          = color;\n  f_data           = tubePosition.xyz;\n  f_position       = position.xyz;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * opacity;\n}\n&quot;]),o=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n  float segmentCount = 8.0;\n\n  float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d);\n  vec3 y = v * sin(angle) * length(d);\n  vec3 v3 = x + y;\n\n  normal = normalize(v3);\n\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float tubeScale;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  vec3 normal;\n  vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n  vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  gl_Position = projection * view * tubePosition;\n  f_id        = id;\n  f_position  = position.xyz;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;vector&quot;,type:&quot;vec4&quot;}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;},{name:&quot;vector&quot;,type:&quot;vec4&quot;}]}},{glslify:347}],347:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],348:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-vec3&quot;),i=t(&quot;gl-vec4&quot;),a=[&quot;xyz&quot;,&quot;xzy&quot;,&quot;yxz&quot;,&quot;yzx&quot;,&quot;zxy&quot;,&quot;zyx&quot;],o=function(t,e,r,a){for(var o=0,s=0;s&lt;t.length;s++)for(var l=t[s].velocities,c=0;c&lt;l.length;c++)o=Math.max(o,n.length(l[c]));var u=t.map((function(t){return function(t,e,r,a){for(var o=t.points,s=t.velocities,l=t.divergences,c=[],u=[],f=[],h=[],p=[],d=[],g=0,m=0,v=i.create(),y=i.create(),x=0;x&lt;o.length;x++){var b=o[x],_=s[x],w=l[x];0===e&amp;&amp;(w=.05*r),m=n.length(_)/a,v=i.create(),n.copy(v,_),v[3]=w;for(var T=0;T&lt;8;T++)p[T]=[b[0],b[1],b[2],T];if(h.length&gt;0)for(T=0;T&lt;8;T++){var k=(T+1)%8;c.push(h[T],p[T],p[k],p[k],h[k],h[T]),f.push(y,v,v,v,y,y),d.push(g,m,m,m,g,g);var M=c.length;u.push([M-6,M-5,M-4],[M-3,M-2,M-1])}var A=h;h=p,p=A;var S=y;y=v,v=S;var E=g;g=m,m=E}return{positions:c,cells:u,vectors:f,vertexIntensity:d}}(t,r,a,o)})),f=[],h=[],p=[],d=[];for(s=0;s&lt;u.length;s++){var g=u[s],m=f.length;f=f.concat(g.positions),p=p.concat(g.vectors),d=d.concat(g.vertexIntensity);for(c=0;c&lt;g.cells.length;c++){var v=g.cells[c],y=[];h.push(y);for(var x=0;x&lt;v.length;x++)y.push(v[x]+m)}}return{positions:f,cells:h,vectors:p,vertexIntensity:d,colormap:e}},s=function(t,e){var r,n=t.length;for(r=0;r&lt;n;r++){var i=t[r];if(i===e)return r;if(i&gt;e)return r-1}return r},l=function(t,e,r){return t&lt;e?e:t&gt;r?r:t},c=function(t){var e=1/0;t.sort((function(t,e){return t-e}));for(var r=t.length,n=1;n&lt;r;n++){var i=Math.abs(t[n]-t[n-1]);i&lt;e&amp;&amp;(e=i)}return e};e.exports=function(t,e){var r=t.startingPositions,i=t.maxLength||1e3,u=t.tubeSize||1,f=t.absoluteTubeSize,h=t.gridFill||&quot;+x+y+z&quot;,p={};-1!==h.indexOf(&quot;-x&quot;)&amp;&amp;(p.reversedX=!0),-1!==h.indexOf(&quot;-y&quot;)&amp;&amp;(p.reversedY=!0),-1!==h.indexOf(&quot;-z&quot;)&amp;&amp;(p.reversedZ=!0),p.filled=a.indexOf(h.replace(/-/g,&quot;&quot;).replace(/\+/g,&quot;&quot;));var d=t.getVelocity||function(e){return function(t,e,r){var i=e.vectors,a=e.meshgrid,o=t[0],c=t[1],u=t[2],f=a[0].length,h=a[1].length,p=a[2].length,d=s(a[0],o),g=s(a[1],c),m=s(a[2],u),v=d+1,y=g+1,x=m+1;if(d=l(d,0,f-1),v=l(v,0,f-1),g=l(g,0,h-1),y=l(y,0,h-1),m=l(m,0,p-1),x=l(x,0,p-1),d&lt;0||g&lt;0||m&lt;0||v&gt;f-1||y&gt;h-1||x&gt;p-1)return n.create();var b,_,w,T,k,M,A=a[0][d],S=a[0][v],E=a[1][g],C=a[1][y],L=a[2][m],I=(o-A)/(S-A),P=(c-E)/(C-E),z=(u-L)/(a[2][x]-L);switch(isFinite(I)||(I=.5),isFinite(P)||(P=.5),isFinite(z)||(z=.5),r.reversedX&amp;&amp;(d=f-1-d,v=f-1-v),r.reversedY&amp;&amp;(g=h-1-g,y=h-1-y),r.reversedZ&amp;&amp;(m=p-1-m,x=p-1-x),r.filled){case 5:k=m,M=x,w=g*p,T=y*p,b=d*p*h,_=v*p*h;break;case 4:k=m,M=x,b=d*p,_=v*p,w=g*p*f,T=y*p*f;break;case 3:w=g,T=y,k=m*h,M=x*h,b=d*h*p,_=v*h*p;break;case 2:w=g,T=y,b=d*h,_=v*h,k=m*h*f,M=x*h*f;break;case 1:b=d,_=v,k=m*f,M=x*f,w=g*f*p,T=y*f*p;break;default:b=d,_=v,w=g*f,T=y*f,k=m*f*h,M=x*f*h}var O=i[b+w+k],D=i[b+w+M],R=i[b+T+k],F=i[b+T+M],B=i[_+w+k],N=i[_+w+M],j=i[_+T+k],U=i[_+T+M],V=n.create(),q=n.create(),H=n.create(),G=n.create();n.lerp(V,O,B,I),n.lerp(q,D,N,I),n.lerp(H,R,j,I),n.lerp(G,F,U,I);var Y=n.create(),W=n.create();n.lerp(Y,V,H,P),n.lerp(W,q,G,P);var X=n.create();return n.lerp(X,Y,W,z),X}(e,t,p)},g=t.getDivergence||function(t,e){var r=n.create(),i=1e-4;n.add(r,t,[i,0,0]);var a=d(r);n.subtract(a,a,e),n.scale(a,a,1/i),n.add(r,t,[0,i,0]);var o=d(r);n.subtract(o,o,e),n.scale(o,o,1/i),n.add(r,t,[0,0,i]);var s=d(r);return n.subtract(s,s,e),n.scale(s,s,1/i),n.add(r,a,o),n.add(r,r,s),r},m=[],v=e[0][0],y=e[0][1],x=e[0][2],b=e[1][0],_=e[1][1],w=e[1][2],T=function(t){var e=t[0],r=t[1],n=t[2];return!(e&lt;v||e&gt;b||r&lt;y||r&gt;_||n&lt;x||n&gt;w)},k=10*n.distance(e[0],e[1])/i,M=k*k,A=1,S=0,E=r.length;E&gt;1&amp;&amp;(A=function(t){for(var e=[],r=[],n=[],i={},a={},o={},s=t.length,l=0;l&lt;s;l++){var u=t[l],f=u[0],h=u[1],p=u[2];i[f]||(e.push(f),i[f]=!0),a[h]||(r.push(h),a[h]=!0),o[p]||(n.push(p),o[p]=!0)}var d=c(e),g=c(r),m=c(n),v=Math.min(d,g,m);return isFinite(v)?v:1}(r));for(var C=0;C&lt;E;C++){var L=n.create();n.copy(L,r[C]);var I=[L],P=[],z=d(L),O=L;P.push(z);var D=[],R=g(L,z),F=n.length(R);isFinite(F)&amp;&amp;F&gt;S&amp;&amp;(S=F),D.push(F),m.push({points:I,velocities:P,divergences:D});for(var B=0;B&lt;100*i&amp;&amp;I.length&lt;i&amp;&amp;T(L);){B++;var N=n.clone(z),j=n.squaredLength(N);if(0===j)break;if(j&gt;M&amp;&amp;n.scale(N,N,k/Math.sqrt(j)),n.add(N,N,L),z=d(N),n.squaredDistance(O,N)-M&gt;-1e-4*M){I.push(N),O=N,P.push(z);R=g(N,z),F=n.length(R);isFinite(F)&amp;&amp;F&gt;S&amp;&amp;(S=F),D.push(F)}L=N}}var U=o(m,t.colormap,S,A);return f?U.tubeScale=f:(0===S&amp;&amp;(S=1),U.tubeScale=.5*u*A/S),U};var u=t(&quot;./lib/shaders&quot;),f=t(&quot;gl-cone3d&quot;).createMesh;e.exports.createTubeMesh=function(t,e){return f(t,e,{shaders:u,traceType:&quot;streamtube&quot;})}},{&quot;./lib/shaders&quot;:346,&quot;gl-cone3d&quot;:260,&quot;gl-vec3&quot;:377,&quot;gl-vec4&quot;:413}],349:[function(t,e,r){var n=t(&quot;gl-shader&quot;),i=t(&quot;glslify&quot;),a=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute vec3 f;\nattribute vec3 normal;\n\nuniform vec3 objectOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 lightPosition, eyePosition;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  vec3 localCoordinate = vec3(uv.zw, f.x);\n  worldCoordinate = objectOffset + localCoordinate;\n  vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n  vec4 clipPosition = projection * view * worldPosition;\n  gl_Position = clipPosition;\n  kill = f.y;\n  value = f.z;\n  planeCoordinate = uv.xy;\n\n  vColor = texture2D(colormap, vec2(value, value));\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * worldPosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  lightDirection = lightPosition - cameraCoordinate.xyz;\n  eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  surfaceNormal  = normalize((vec4(normal,0) * inverseModel).xyz);\n}\n&quot;]),o=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat beckmannSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness) {\n  return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 lowerBound, upperBound;\nuniform float contourTint;\nuniform vec4 contourColor;\nuniform sampler2D colormap;\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform float vertexColor;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  if (\n    kill &gt; 0.0 ||\n    vColor.a == 0.0 ||\n    outOfRange(clipBounds[0], clipBounds[1], worldCoordinate)\n  ) discard;\n\n  vec3 N = normalize(surfaceNormal);\n  vec3 V = normalize(eyeDirection);\n  vec3 L = normalize(lightDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = max(beckmannSpecular(L, V, N, roughness), 0.);\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  //decide how to interpolate color \u2014 in vertex or in fragment\n  vec4 surfaceColor =\n    step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) +\n    step(.5, vertexColor) * vColor;\n\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\n}\n&quot;]),s=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute float f;\n\nuniform vec3 objectOffset;\nuniform mat3 permutation;\nuniform mat4 model, view, projection;\nuniform float height, zOffset;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  vec3 dataCoordinate = permutation * vec3(uv.xy, height);\n  worldCoordinate = objectOffset + dataCoordinate;\n  vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n\n  vec4 clipPosition = projection * view * worldPosition;\n  clipPosition.z += zOffset;\n\n  gl_Position = clipPosition;\n  value = f + objectOffset.z;\n  kill = -1.0;\n  planeCoordinate = uv.zw;\n\n  vColor = texture2D(colormap, vec2(value, value));\n\n  //Don't do lighting for contours\n  surfaceNormal   = vec3(1,0,0);\n  eyeDirection    = vec3(0,1,0);\n  lightDirection  = vec3(0,0,1);\n}\n&quot;]),l=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec2 shape;\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 surfaceNormal;\n\nvec2 splitFloat(float v) {\n  float vh = 255.0 * v;\n  float upper = floor(vh);\n  float lower = fract(vh);\n  return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\n}\n\nvoid main() {\n  if ((kill &gt; 0.0) ||\n      (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\n\n  vec2 ux = splitFloat(planeCoordinate.x / shape.x);\n  vec2 uy = splitFloat(planeCoordinate.y / shape.y);\n  gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\n}\n&quot;]);r.createShader=function(t){var e=n(t,a,o,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createPickShader=function(t){var e=n(t,a,l,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createContourShader=function(t){var e=n(t,s,o,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;float&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e},r.createPickContourShader=function(t){var e=n(t,s,l,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;float&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e}},{&quot;gl-shader&quot;:335,glslify:350}],350:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],351:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=y(e),n=b(e),s=x(e),l=_(e),c=i(e),u=a(e,[{buffer:c,size:4,stride:40,offset:0},{buffer:c,size:3,stride:40,offset:16},{buffer:c,size:3,stride:40,offset:28}]),f=i(e),h=a(e,[{buffer:f,size:4,stride:20,offset:0},{buffer:f,size:1,stride:20,offset:16}]),p=i(e),d=a(e,[{buffer:p,size:2,type:e.FLOAT}]),g=o(e,1,256,e.RGBA,e.UNSIGNED_BYTE);g.minFilter=e.LINEAR,g.magFilter=e.LINEAR;var m=new A(e,[0,0],[[0,0,0],[0,0,0]],r,n,c,u,g,s,l,f,h,p,d,[0,0,0]),v={levels:[[],[],[]]};for(var w in t)v[w]=t[w];return v.colormap=v.colormap||&quot;jet&quot;,m.update(v),m};var n=t(&quot;bit-twiddle&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;typedarray-pool&quot;),l=t(&quot;colormap&quot;),c=t(&quot;ndarray-ops&quot;),u=t(&quot;ndarray-pack&quot;),f=t(&quot;ndarray&quot;),h=t(&quot;surface-nets&quot;),p=t(&quot;gl-mat4/multiply&quot;),d=t(&quot;gl-mat4/invert&quot;),g=t(&quot;binary-search-bounds&quot;),m=t(&quot;ndarray-gradient&quot;),v=t(&quot;./lib/shaders&quot;),y=v.createShader,x=v.createContourShader,b=v.createPickShader,_=v.createPickContourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],k=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];function M(t,e,r,n,i){this.position=t,this.index=e,this.uv=r,this.level=n,this.dataCoordinate=i}!function(){for(var t=0;t&lt;3;++t){var e=k[t],r=(t+2)%3;e[(t+1)%3+0]=1,e[r+3]=1,e[t+6]=1}}();function A(t,e,r,n,i,a,o,l,c,u,h,p,d,g,m){this.gl=t,this.shape=e,this.bounds=r,this.objectOffset=m,this.intensityBounds=[],this._shader=n,this._pickShader=i,this._coordinateBuffer=a,this._vao=o,this._colorMap=l,this._contourShader=c,this._contourPickShader=u,this._contourBuffer=h,this._contourVAO=p,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new M([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=d,this._dynamicVAO=g,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var S=A.prototype;S.genColormap=function(t,e){var r=!1,n=u([l({colormap:t,nshades:256,format:&quot;rgba&quot;}).map((function(t,n){var i=e?function(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;r&lt;e.length;++r){if(e.length&lt;2)return 1;if(e[r][0]===t)return e[r][1];if(e[r][0]&gt;t&amp;&amp;r&gt;0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}(n/255,e):t[3];return i&lt;1&amp;&amp;(r=!0),[t[0],t[1],t[2],255*i]}))]);return c.divseq(n,255),this.hasAlphaScale=r,n},S.isTransparent=function(){return this.opacity&lt;1||this.hasAlphaScale},S.isOpaque=function(){return!this.isTransparent()},S.pickSlots=1,S.setPickBase=function(t){this.pickId=t};var E=[0,0,0],C={showSurface:!1,showContour:!1,projections:[w.slice(),w.slice(),w.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function L(t,e){var r,n,i,a=e.axes&amp;&amp;e.axes.lastCubeProps.axis||E,o=e.showSurface,s=e.showContour;for(r=0;r&lt;3;++r)for(o=o||e.surfaceProject[r],n=0;n&lt;3;++n)s=s||e.contourProject[r][n];for(r=0;r&lt;3;++r){var l=C.projections[r];for(n=0;n&lt;16;++n)l[n]=0;for(n=0;n&lt;4;++n)l[5*n]=1;l[5*r]=0,l[12+r]=e.axesBounds[+(a[r]&gt;0)][r],p(l,t.model,l);var c=C.clipBounds[r];for(i=0;i&lt;2;++i)for(n=0;n&lt;3;++n)c[i][n]=t.clipBounds[i][n];c[0][r]=-1e8,c[1][r]=1e8}return C.showSurface=o,C.showContour=s,C}var I={model:w,view:w,projection:w,inverseModel:w.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},P=w.slice(),z=[1,0,0,0,1,0,0,0,1];function O(t,e){t=t||{};var r=this.gl;r.disable(r.CULL_FACE),this._colorMap.bind(0);var n=I;n.model=t.model||w,n.view=t.view||w,n.projection=t.projection||w,n.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],n.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],n.objectOffset=this.objectOffset,n.contourColor=this.contourColor[0],n.inverseModel=d(n.inverseModel,n.model);for(var i=0;i&lt;2;++i)for(var a=n.clipBounds[i],o=0;o&lt;3;++o)a[o]=Math.min(Math.max(this.clipBounds[i][o],-1e8),1e8);n.kambient=this.ambientLight,n.kdiffuse=this.diffuseLight,n.kspecular=this.specularLight,n.roughness=this.roughness,n.fresnel=this.fresnel,n.opacity=this.opacity,n.height=0,n.permutation=z,n.vertexColor=this.vertexColor;var s=P;for(p(s,n.view,n.model),p(s,n.projection,s),d(s,s),i=0;i&lt;3;++i)n.eyePosition[i]=s[12+i]/s[15];var l=s[15];for(i=0;i&lt;3;++i)l+=this.lightPosition[i]*s[4*i+3];for(i=0;i&lt;3;++i){var c=s[12+i];for(o=0;o&lt;3;++o)c+=s[4*o+i]*this.lightPosition[o];n.lightPosition[i]=c/l}var u=L(n,this);if(u.showSurface){for(this._shader.bind(),this._shader.uniforms=n,this._vao.bind(),this.showSurface&amp;&amp;this._vertexCount&amp;&amp;this._vao.draw(r.TRIANGLES,this._vertexCount),i=0;i&lt;3;++i)this.surfaceProject[i]&amp;&amp;this.vertexCount&amp;&amp;(this._shader.uniforms.model=u.projections[i],this._shader.uniforms.clipBounds=u.clipBounds[i],this._vao.draw(r.TRIANGLES,this._vertexCount));this._vao.unbind()}if(u.showContour){var f=this._contourShader;n.kambient=1,n.kdiffuse=0,n.kspecular=0,n.opacity=1,f.bind(),f.uniforms=n;var h=this._contourVAO;for(h.bind(),i=0;i&lt;3;++i)for(f.uniforms.permutation=k[i],r.lineWidth(this.contourWidth[i]*this.pixelRatio),o=0;o&lt;this.contourLevels[i].length;++o)o===this.highlightLevel[i]?(f.uniforms.contourColor=this.highlightColor[i],f.uniforms.contourTint=this.highlightTint[i]):0!==o&amp;&amp;o-1!==this.highlightLevel[i]||(f.uniforms.contourColor=this.contourColor[i],f.uniforms.contourTint=this.contourTint[i]),this._contourCounts[i][o]&amp;&amp;(f.uniforms.height=this.contourLevels[i][o],h.draw(r.LINES,this._contourCounts[i][o],this._contourOffsets[i][o]));for(i=0;i&lt;3;++i)for(f.uniforms.model=u.projections[i],f.uniforms.clipBounds=u.clipBounds[i],o=0;o&lt;3;++o)if(this.contourProject[i][o]){f.uniforms.permutation=k[o],r.lineWidth(this.contourWidth[o]*this.pixelRatio);for(var g=0;g&lt;this.contourLevels[o].length;++g)g===this.highlightLevel[o]?(f.uniforms.contourColor=this.highlightColor[o],f.uniforms.contourTint=this.highlightTint[o]):0!==g&amp;&amp;g-1!==this.highlightLevel[o]||(f.uniforms.contourColor=this.contourColor[o],f.uniforms.contourTint=this.contourTint[o]),this._contourCounts[o][g]&amp;&amp;(f.uniforms.height=this.contourLevels[o][g],h.draw(r.LINES,this._contourCounts[o][g],this._contourOffsets[o][g]))}for(h.unbind(),(h=this._dynamicVAO).bind(),i=0;i&lt;3;++i)if(0!==this._dynamicCounts[i])for(f.uniforms.model=n.model,f.uniforms.clipBounds=n.clipBounds,f.uniforms.permutation=k[i],r.lineWidth(this.dynamicWidth[i]*this.pixelRatio),f.uniforms.contourColor=this.dynamicColor[i],f.uniforms.contourTint=this.dynamicTint[i],f.uniforms.height=this.dynamicLevel[i],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]),o=0;o&lt;3;++o)this.contourProject[o][i]&amp;&amp;(f.uniforms.model=u.projections[o],f.uniforms.clipBounds=u.clipBounds[o],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]));h.unbind()}}S.draw=function(t){return O.call(this,t,!1)},S.drawTransparent=function(t){return O.call(this,t,!0)};var D={model:w,view:w,projection:w,inverseModel:w,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,objectOffset:[0,0,0],permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};function R(t,e){return Array.isArray(t)?[e(t[0]),e(t[1]),e(t[2])]:[e(t),e(t),e(t)]}function F(t){return Array.isArray(t)?3===t.length?[t[0],t[1],t[2],1]:[t[0],t[1],t[2],t[3]]:[0,0,0,1]}function B(t){if(Array.isArray(t)){if(Array.isArray(t))return[F(t[0]),F(t[1]),F(t[2])];var e=F(t);return[e.slice(),e.slice(),e.slice()]}}S.drawPick=function(t){t=t||{};var e=this.gl;e.disable(e.CULL_FACE);var r=D;r.model=t.model||w,r.view=t.view||w,r.projection=t.projection||w,r.shape=this._field[2].shape,r.pickId=this.pickId/255,r.lowerBound=this.bounds[0],r.upperBound=this.bounds[1],r.objectOffset=this.objectOffset,r.permutation=z;for(var n=0;n&lt;2;++n)for(var i=r.clipBounds[n],a=0;a&lt;3;++a)i[a]=Math.min(Math.max(this.clipBounds[n][a],-1e8),1e8);var o=L(r,this);if(o.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=r,this._vao.bind(),this._vao.draw(e.TRIANGLES,this._vertexCount),n=0;n&lt;3;++n)this.surfaceProject[n]&amp;&amp;(this._pickShader.uniforms.model=o.projections[n],this._pickShader.uniforms.clipBounds=o.clipBounds[n],this._vao.draw(e.TRIANGLES,this._vertexCount));this._vao.unbind()}if(o.showContour){var s=this._contourPickShader;s.bind(),s.uniforms=r;var l=this._contourVAO;for(l.bind(),a=0;a&lt;3;++a)for(e.lineWidth(this.contourWidth[a]*this.pixelRatio),s.uniforms.permutation=k[a],n=0;n&lt;this.contourLevels[a].length;++n)this._contourCounts[a][n]&amp;&amp;(s.uniforms.height=this.contourLevels[a][n],l.draw(e.LINES,this._contourCounts[a][n],this._contourOffsets[a][n]));for(n=0;n&lt;3;++n)for(s.uniforms.model=o.projections[n],s.uniforms.clipBounds=o.clipBounds[n],a=0;a&lt;3;++a)if(this.contourProject[n][a]){s.uniforms.permutation=k[a],e.lineWidth(this.contourWidth[a]*this.pixelRatio);for(var c=0;c&lt;this.contourLevels[a].length;++c)this._contourCounts[a][c]&amp;&amp;(s.uniforms.height=this.contourLevels[a][c],l.draw(e.LINES,this._contourCounts[a][c],this._contourOffsets[a][c]))}l.unbind()}},S.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=this._field[2].shape,r=this._pickResult,n=e[0]*(t.value[0]+(t.value[2]&gt;&gt;4)/16)/255,i=Math.floor(n),a=n-i,o=e[1]*(t.value[1]+(15&amp;t.value[2])/16)/255,s=Math.floor(o),l=o-s;i+=1,s+=1;var c=r.position;c[0]=c[1]=c[2]=0;for(var u=0;u&lt;2;++u)for(var f=u?a:1-a,h=0;h&lt;2;++h)for(var p=i+u,d=s+h,m=f*(h?l:1-l),v=0;v&lt;3;++v)c[v]+=this._field[v].get(p,d)*m;for(var y=this._pickResult.level,x=0;x&lt;3;++x)if(y[x]=g.le(this.contourLevels[x],c[x]),y[x]&lt;0)this.contourLevels[x].length&gt;0&amp;&amp;(y[x]=0);else if(y[x]&lt;this.contourLevels[x].length-1){var b=this.contourLevels[x][y[x]],_=this.contourLevels[x][y[x]+1];Math.abs(b-c[x])&gt;Math.abs(_-c[x])&amp;&amp;(y[x]+=1)}for(r.index[0]=a&lt;.5?i:i+1,r.index[1]=l&lt;.5?s:s+1,r.uv[0]=n/e[0],r.uv[1]=o/e[1],v=0;v&lt;3;++v)r.dataCoordinate[v]=this._field[v].get(r.index[0],r.index[1]);return r},S.padField=function(t,e){var r=e.shape.slice(),n=t.shape.slice();c.assign(t.lo(1,1).hi(r[0],r[1]),e),c.assign(t.lo(1).hi(r[0],1),e.hi(r[0],1)),c.assign(t.lo(1,n[1]-1).hi(r[0],1),e.lo(0,r[1]-1).hi(r[0],1)),c.assign(t.lo(0,1).hi(1,r[1]),e.hi(1)),c.assign(t.lo(n[0]-1,1).hi(1,r[1]),e.lo(r[0]-1)),t.set(0,0,e.get(0,0)),t.set(0,n[1]-1,e.get(0,r[1]-1)),t.set(n[0]-1,0,e.get(r[0]-1,0)),t.set(n[0]-1,n[1]-1,e.get(r[0]-1,r[1]-1))},S.update=function(t){t=t||{},this.objectOffset=t.objectOffset||this.objectOffset,this.dirty=!0,&quot;contourWidth&quot;in t&amp;&amp;(this.contourWidth=R(t.contourWidth,Number)),&quot;showContour&quot;in t&amp;&amp;(this.showContour=R(t.showContour,Boolean)),&quot;showSurface&quot;in t&amp;&amp;(this.showSurface=!!t.showSurface),&quot;contourTint&quot;in t&amp;&amp;(this.contourTint=R(t.contourTint,Boolean)),&quot;contourColor&quot;in t&amp;&amp;(this.contourColor=B(t.contourColor)),&quot;contourProject&quot;in t&amp;&amp;(this.contourProject=R(t.contourProject,(function(t){return R(t,Boolean)}))),&quot;surfaceProject&quot;in t&amp;&amp;(this.surfaceProject=t.surfaceProject),&quot;dynamicColor&quot;in t&amp;&amp;(this.dynamicColor=B(t.dynamicColor)),&quot;dynamicTint&quot;in t&amp;&amp;(this.dynamicTint=R(t.dynamicTint,Number)),&quot;dynamicWidth&quot;in t&amp;&amp;(this.dynamicWidth=R(t.dynamicWidth,Number)),&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity),&quot;opacityscale&quot;in t&amp;&amp;(this.opacityscale=t.opacityscale),&quot;colorBounds&quot;in t&amp;&amp;(this.colorBounds=t.colorBounds),&quot;vertexColor&quot;in t&amp;&amp;(this.vertexColor=t.vertexColor?1:0),&quot;colormap&quot;in t&amp;&amp;this._colorMap.setPixels(this.genColormap(t.colormap,this.opacityscale));var e=t.field||t.coords&amp;&amp;t.coords[2]||null,r=!1;if(e||(e=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),&quot;field&quot;in t||&quot;coords&quot;in t){var i=(e.shape[0]+2)*(e.shape[1]+2);i&gt;this._field[2].data.length&amp;&amp;(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(n.nextPow2(i))),this._field[2]=f(this._field[2].data,[e.shape[0]+2,e.shape[1]+2]),this.padField(this._field[2],e),this.shape=e.shape.slice();for(var a=this.shape,o=0;o&lt;2;++o)this._field[2].size&gt;this._field[o].data.length&amp;&amp;(s.freeFloat(this._field[o].data),this._field[o].data=s.mallocFloat(this._field[2].size)),this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2]);if(t.coords){var l=t.coords;if(!Array.isArray(l)||3!==l.length)throw new Error(&quot;gl-surface: invalid coordinates for x/y&quot;);for(o=0;o&lt;2;++o){var c=l[o];for(v=0;v&lt;2;++v)if(c.shape[v]!==a[v])throw new Error(&quot;gl-surface: coords have incorrect shape&quot;);this.padField(this._field[o],c)}}else if(t.ticks){var u=t.ticks;if(!Array.isArray(u)||2!==u.length)throw new Error(&quot;gl-surface: invalid ticks&quot;);for(o=0;o&lt;2;++o){var p=u[o];if((Array.isArray(p)||p.length)&amp;&amp;(p=f(p)),p.shape[0]!==a[o])throw new Error(&quot;gl-surface: invalid tick length&quot;);var d=f(p.data,a);d.stride[o]=p.stride[0],d.stride[1^o]=0,this.padField(this._field[o],d)}}else{for(o=0;o&lt;2;++o){var g=[0,0];g[o]=1,this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2],g,0)}this._field[0].set(0,0,0);for(var v=0;v&lt;a[0];++v)this._field[0].set(v+1,0,v);for(this._field[0].set(a[0]+1,0,a[0]-1),this._field[1].set(0,0,0),v=0;v&lt;a[1];++v)this._field[1].set(0,v+1,v);this._field[1].set(0,a[1]+1,a[1]-1)}var y=this._field,x=f(s.mallocFloat(3*y[2].size*2),[3,a[0]+2,a[1]+2,2]);for(o=0;o&lt;3;++o)m(x.pick(o),y[o],&quot;mirror&quot;);var b=f(s.mallocFloat(3*y[2].size),[a[0]+2,a[1]+2,3]);for(o=0;o&lt;a[0]+2;++o)for(v=0;v&lt;a[1]+2;++v){var _=x.get(0,o,v,0),w=x.get(0,o,v,1),k=x.get(1,o,v,0),M=x.get(1,o,v,1),A=x.get(2,o,v,0),S=x.get(2,o,v,1),E=k*S-M*A,C=A*w-S*_,L=_*M-w*k,I=Math.sqrt(E*E+C*C+L*L);I&lt;1e-8?(I=Math.max(Math.abs(E),Math.abs(C),Math.abs(L)))&lt;1e-8?(L=1,C=E=0,I=1):I=1/I:I=1/Math.sqrt(I),b.set(o,v,0,E*I),b.set(o,v,1,C*I),b.set(o,v,2,L*I)}s.free(x.data);var P=[1/0,1/0,1/0],z=[-1/0,-1/0,-1/0],O=1/0,D=-1/0,F=(a[0]-1)*(a[1]-1)*6,N=s.mallocFloat(n.nextPow2(10*F)),j=0,U=0;for(o=0;o&lt;a[0]-1;++o)t:for(v=0;v&lt;a[1]-1;++v){for(var V=0;V&lt;2;++V)for(var q=0;q&lt;2;++q)for(var H=0;H&lt;3;++H){var G=this._field[H].get(1+o+V,1+v+q);if(isNaN(G)||!isFinite(G))continue t}for(H=0;H&lt;6;++H){var Y=o+T[H][0],W=v+T[H][1],X=this._field[0].get(Y+1,W+1),Z=this._field[1].get(Y+1,W+1);G=this._field[2].get(Y+1,W+1),E=b.get(Y+1,W+1,0),C=b.get(Y+1,W+1,1),L=b.get(Y+1,W+1,2),t.intensity&amp;&amp;(J=t.intensity.get(Y,W));var J=t.intensity?t.intensity.get(Y,W):G+this.objectOffset[2];N[j++]=Y,N[j++]=W,N[j++]=X,N[j++]=Z,N[j++]=G,N[j++]=0,N[j++]=J,N[j++]=E,N[j++]=C,N[j++]=L,P[0]=Math.min(P[0],X+this.objectOffset[0]),P[1]=Math.min(P[1],Z+this.objectOffset[1]),P[2]=Math.min(P[2],G+this.objectOffset[2]),O=Math.min(O,J),z[0]=Math.max(z[0],X+this.objectOffset[0]),z[1]=Math.max(z[1],Z+this.objectOffset[1]),z[2]=Math.max(z[2],G+this.objectOffset[2]),D=Math.max(D,J),U+=1}}for(t.intensityBounds&amp;&amp;(O=+t.intensityBounds[0],D=+t.intensityBounds[1]),o=6;o&lt;j;o+=10)N[o]=(N[o]-O)/(D-O);this._vertexCount=U,this._coordinateBuffer.update(N.subarray(0,j)),s.freeFloat(N),s.free(b.data),this.bounds=[P,z],this.intensity=t.intensity||this._field[2],this.intensityBounds[0]===O&amp;&amp;this.intensityBounds[1]===D||(r=!0),this.intensityBounds=[O,D]}if(&quot;levels&quot;in t){var K=t.levels;for(K=Array.isArray(K[0])?K.slice():[[],[],K],o=0;o&lt;3;++o)K[o]=K[o].slice(),K[o].sort((function(t,e){return t-e}));for(o=0;o&lt;3;++o)for(v=0;v&lt;K[o].length;++v)K[o][v]-=this.objectOffset[o];t:for(o=0;o&lt;3;++o){if(K[o].length!==this.contourLevels[o].length){r=!0;break}for(v=0;v&lt;K[o].length;++v)if(K[o][v]!==this.contourLevels[o][v]){r=!0;break t}}this.contourLevels=K}if(r){y=this._field,a=this.shape;for(var Q=[],$=0;$&lt;3;++$){var tt=this.contourLevels[$],et=[],rt=[],nt=[0,0,0];for(o=0;o&lt;tt.length;++o){var it=h(this._field[$],tt[o]);et.push(Q.length/5|0),U=0;t:for(v=0;v&lt;it.cells.length;++v){var at=it.cells[v];for(H=0;H&lt;2;++H){var ot=it.positions[at[H]],st=ot[0],lt=0|Math.floor(st),ct=st-lt,ut=ot[1],ft=0|Math.floor(ut),ht=ut-ft,pt=!1;e:for(var dt=0;dt&lt;3;++dt){nt[dt]=0;var gt=($+dt+1)%3;for(V=0;V&lt;2;++V){var mt=V?ct:1-ct;for(Y=0|Math.min(Math.max(lt+V,0),a[0]),q=0;q&lt;2;++q){var vt=q?ht:1-ht;if(W=0|Math.min(Math.max(ft+q,0),a[1]),G=dt&lt;2?this._field[gt].get(Y,W):(this.intensity.get(Y,W)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(G)||isNaN(G)){pt=!0;break e}var yt=mt*vt;nt[dt]+=yt*G}}}if(pt){if(H&gt;0){for(var xt=0;xt&lt;5;++xt)Q.pop();U-=1}continue t}Q.push(nt[0],nt[1],ot[0],ot[1],nt[2]),U+=1}}rt.push(U)}this._contourOffsets[$]=et,this._contourCounts[$]=rt}var bt=s.mallocFloat(Q.length);for(o=0;o&lt;Q.length;++o)bt[o]=Q[o];this._contourBuffer.update(bt),s.freeFloat(bt)}},S.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var t=0;t&lt;3;++t)s.freeFloat(this._field[t].data)},S.highlight=function(t){var e,r;if(!t)return this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],void(this.highlightLevel=[-1,-1,-1]);for(e=0;e&lt;3;++e)this.enableHighlight[e]?this.highlightLevel[e]=t.level[e]:this.highlightLevel[e]=-1;for(r=this.snapToData?t.dataCoordinate:t.position,e=0;e&lt;3;++e)r[e]-=this.objectOffset[e];if(this.enableDynamic[0]&amp;&amp;r[0]!==this.dynamicLevel[0]||this.enableDynamic[1]&amp;&amp;r[1]!==this.dynamicLevel[1]||this.enableDynamic[2]&amp;&amp;r[2]!==this.dynamicLevel[2]){for(var n=0,i=this.shape,a=s.mallocFloat(12*i[0]*i[1]),o=0;o&lt;3;++o)if(this.enableDynamic[o]){this.dynamicLevel[o]=r[o];var l=(o+1)%3,c=(o+2)%3,u=this._field[o],f=this._field[l],p=this._field[c],d=h(u,r[o]),g=d.cells,m=d.positions;for(this._dynamicOffsets[o]=n,e=0;e&lt;g.length;++e)for(var v=g[e],y=0;y&lt;2;++y){var x=m[v[y]],b=+x[0],_=0|b,w=0|Math.min(_+1,i[0]),T=b-_,k=1-T,M=+x[1],A=0|M,S=0|Math.min(A+1,i[1]),E=M-A,C=1-E,L=k*C,I=k*E,P=T*C,z=T*E,O=L*f.get(_,A)+I*f.get(_,S)+P*f.get(w,A)+z*f.get(w,S),D=L*p.get(_,A)+I*p.get(_,S)+P*p.get(w,A)+z*p.get(w,S);if(isNaN(O)||isNaN(D)){y&amp;&amp;(n-=1);break}a[2*n+0]=O,a[2*n+1]=D,n+=1}this._dynamicCounts[o]=n-this._dynamicOffsets[o]}else this.dynamicLevel[o]=NaN,this._dynamicCounts[o]=0;this._dynamicBuffer.update(a.subarray(0,2*n)),s.freeFloat(a)}}},{&quot;./lib/shaders&quot;:349,&quot;binary-search-bounds&quot;:96,&quot;bit-twiddle&quot;:97,colormap:131,&quot;gl-buffer&quot;:259,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/multiply&quot;:295,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495,&quot;ndarray-gradient&quot;:488,&quot;ndarray-ops&quot;:490,&quot;ndarray-pack&quot;:491,&quot;surface-nets&quot;:570,&quot;typedarray-pool&quot;:595}],352:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font&quot;),i=t(&quot;pick-by-alias&quot;),a=t(&quot;regl&quot;),o=t(&quot;gl-util/context&quot;),s=t(&quot;es6-weak-map&quot;),l=t(&quot;color-normalize&quot;),c=t(&quot;font-atlas&quot;),u=t(&quot;typedarray-pool&quot;),f=t(&quot;parse-rect&quot;),h=t(&quot;is-plain-obj&quot;),p=t(&quot;parse-unit&quot;),d=t(&quot;to-px&quot;),g=t(&quot;detect-kerning&quot;),m=t(&quot;object-assign&quot;),v=t(&quot;font-measure&quot;),y=t(&quot;flatten-vertex-data&quot;),x=t(&quot;bit-twiddle&quot;).nextPow2,b=new s,_=!1;if(document.body){var w=document.body.appendChild(document.createElement(&quot;div&quot;));w.style.font=&quot;italic small-caps bold condensed 16px/2 cursive&quot;,getComputedStyle(w).fontStretch&amp;&amp;(_=!0),document.body.removeChild(w)}var T=function(t){!function(t){return&quot;function&quot;==typeof t&amp;&amp;t._gl&amp;&amp;t.prop&amp;&amp;t.texture&amp;&amp;t.buffer}(t)?this.gl=o(t):(t={regl:t},this.gl=t.regl._gl),this.shader=b.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||a({gl:this.gl}),this.charBuffer=this.regl.buffer({type:&quot;uint8&quot;,usage:&quot;stream&quot;}),this.sizeBuffer=this.regl.buffer({type:&quot;float&quot;,usage:&quot;stream&quot;}),this.shader||(this.shader=this.createShader(),b.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(t)?t:{})};T.prototype.createShader=function(){var t=this.regl,e=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},stencil:{enable:!1},depth:{enable:!1},count:t.prop(&quot;count&quot;),offset:t.prop(&quot;offset&quot;),attributes:{charOffset:{offset:4,stride:8,buffer:t.this(&quot;sizeBuffer&quot;)},width:{offset:0,stride:8,buffer:t.this(&quot;sizeBuffer&quot;)},char:t.this(&quot;charBuffer&quot;),position:t.this(&quot;position&quot;)},uniforms:{atlasSize:function(t,e){return[e.atlas.width,e.atlas.height]},atlasDim:function(t,e){return[e.atlas.cols,e.atlas.rows]},atlas:function(t,e){return e.atlas.texture},charStep:function(t,e){return e.atlas.step},em:function(t,e){return e.atlas.em},color:t.prop(&quot;color&quot;),opacity:t.prop(&quot;opacity&quot;),viewport:t.this(&quot;viewportArray&quot;),scale:t.this(&quot;scale&quot;),align:t.prop(&quot;align&quot;),baseline:t.prop(&quot;baseline&quot;),translate:t.this(&quot;translate&quot;),positionOffset:t.prop(&quot;positionOffset&quot;)},primitive:&quot;points&quot;,viewport:t.this(&quot;viewport&quot;),vert:&quot;\n\t\t\tprecision highp float;\n\t\t\tattribute float width, charOffset, char;\n\t\t\tattribute vec2 position;\n\t\t\tuniform float fontSize, charStep, em, align, baseline;\n\t\t\tuniform vec4 viewport;\n\t\t\tuniform vec4 color;\n\t\t\tuniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvoid main () {\n\t\t\t\t&quot;+(T.normalViewport?&quot;&quot;:&quot;vec2 positionOffset = vec2(positionOffset.x,- positionOffset.y);&quot;)+&quot;\n\n\t\t\t\tvec2 offset = floor(em * (vec2(align + charOffset, baseline)\n\t\t\t\t\t+ positionOffset))\n\t\t\t\t\t/ (viewport.zw * scale.xy);\n\n\t\t\t\tvec2 position = (position + translate) * scale;\n\t\t\t\tposition += offset * scale;\n\n\t\t\t\t&quot;+(T.normalViewport?&quot;position.y = 1. - position.y;&quot;:&quot;&quot;)+&quot;\n\n\t\t\t\tcharCoord = position * viewport.zw + viewport.xy;\n\n\t\t\t\tgl_Position = vec4(position * 2. - 1., 0, 1);\n\n\t\t\t\tgl_PointSize = charStep;\n\n\t\t\t\tcharId.x = mod(char, atlasDim.x);\n\t\t\t\tcharId.y = floor(char / atlasDim.x);\n\n\t\t\t\tcharWidth = width * em;\n\n\t\t\t\tfontColor = color / 255.;\n\t\t\t}&quot;,frag:&quot;\n\t\t\tprecision highp float;\n\t\t\tuniform sampler2D atlas;\n\t\t\tuniform float fontSize, charStep, opacity;\n\t\t\tuniform vec2 atlasSize;\n\t\t\tuniform vec4 viewport;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\n\t\t\tfloat lightness(vec4 color) {\n\t\t\t\treturn color.r * 0.299 + color.g * 0.587 + color.b * 0.114;\n\t\t\t}\n\n\t\t\tvoid main () {\n\t\t\t\tvec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;\n\t\t\t\tfloat halfCharStep = floor(charStep * .5 + .5);\n\n\t\t\t\t// invert y and shift by 1px (FF expecially needs that)\n\t\t\t\tuv.y = charStep - uv.y;\n\n\t\t\t\t// ignore points outside of character bounding box\n\t\t\t\tfloat halfCharWidth = ceil(charWidth * .5);\n\t\t\t\tif (floor(uv.x) &gt; halfCharStep + halfCharWidth ||\n\t\t\t\t\tfloor(uv.x) &lt; halfCharStep - halfCharWidth) return;\n\n\t\t\t\tuv += charId * charStep;\n\t\t\t\tuv = uv / atlasSize;\n\n\t\t\t\tvec4 color = fontColor;\n\t\t\t\tvec4 mask = texture2D(atlas, uv);\n\n\t\t\t\tfloat maskY = lightness(mask);\n\t\t\t\t// float colorY = lightness(color);\n\t\t\t\tcolor.a *= maskY;\n\t\t\t\tcolor.a *= opacity;\n\n\t\t\t\t// color.a += .1;\n\n\t\t\t\t// antialiasing, see yiq color space y-channel formula\n\t\t\t\t// color.rgb += (1. - color.rgb) * (1. - mask.rgb);\n\n\t\t\t\tgl_FragColor = color;\n\t\t\t}&quot;});return{regl:t,draw:e,atlas:{}}},T.prototype.update=function(t){var e=this;if(&quot;string&quot;==typeof t)t={text:t};else if(!t)return;null!=(t=i(t,{position:&quot;position positions coord coords coordinates&quot;,font:&quot;font fontFace fontface typeface cssFont css-font family fontFamily&quot;,fontSize:&quot;fontSize fontsize size font-size&quot;,text:&quot;text texts chars characters value values symbols&quot;,align:&quot;align alignment textAlign textbaseline&quot;,baseline:&quot;baseline textBaseline textbaseline&quot;,direction:&quot;dir direction textDirection&quot;,color:&quot;color colour fill fill-color fillColor textColor textcolor&quot;,kerning:&quot;kerning kern&quot;,range:&quot;range dataBox&quot;,viewport:&quot;vp viewport viewBox viewbox viewPort&quot;,opacity:&quot;opacity alpha transparency visible visibility opaque&quot;,offset:&quot;offset positionOffset padding shift indent indentation&quot;},!0)).opacity&amp;&amp;(Array.isArray(t.opacity)?this.opacity=t.opacity.map((function(t){return parseFloat(t)})):this.opacity=parseFloat(t.opacity)),null!=t.viewport&amp;&amp;(this.viewport=f(t.viewport),T.normalViewport&amp;&amp;(this.viewport.y=this.canvas.height-this.viewport.y-this.viewport.height),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null==this.viewport&amp;&amp;(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null!=t.kerning&amp;&amp;(this.kerning=t.kerning),null!=t.offset&amp;&amp;(&quot;number&quot;==typeof t.offset&amp;&amp;(t.offset=[t.offset,0]),this.positionOffset=y(t.offset)),t.direction&amp;&amp;(this.direction=t.direction),t.range&amp;&amp;(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&amp;&amp;(this.scale=t.scale),t.translate&amp;&amp;(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),this.font.length||t.font||(t.font=T.baseFontSize+&quot;px sans-serif&quot;);var r,a=!1,o=!1;if(t.font&amp;&amp;(Array.isArray(t.font)?t.font:[t.font]).forEach((function(t,r){if(&quot;string&quot;==typeof t)try{t=n.parse(t)}catch(e){t=n.parse(T.baseFontSize+&quot;px &quot;+t)}else t=n.parse(n.stringify(t));var i=n.stringify({size:T.baseFontSize,family:t.family,stretch:_?t.stretch:void 0,variant:t.variant,weight:t.weight,style:t.style}),s=p(t.size),l=Math.round(s[0]*d(s[1]));if(l!==e.fontSize[r]&amp;&amp;(o=!0,e.fontSize[r]=l),!(e.font[r]&amp;&amp;i==e.font[r].baseString||(a=!0,e.font[r]=T.fonts[i],e.font[r]))){var c=t.family.join(&quot;, &quot;),u=[t.style];t.style!=t.variant&amp;&amp;u.push(t.variant),t.variant!=t.weight&amp;&amp;u.push(t.weight),_&amp;&amp;t.weight!=t.stretch&amp;&amp;u.push(t.stretch),e.font[r]={baseString:i,family:c,weight:t.weight,stretch:t.stretch,style:t.style,variant:t.variant,width:{},kerning:{},metrics:v(c,{origin:&quot;top&quot;,fontSize:T.baseFontSize,fontStyle:u.join(&quot; &quot;)})},T.fonts[i]=e.font[r]}})),(a||o)&amp;&amp;this.font.forEach((function(r,i){var a=n.stringify({size:e.fontSize[i],family:r.family,stretch:_?r.stretch:void 0,variant:r.variant,weight:r.weight,style:r.style});if(e.fontAtlas[i]=e.shader.atlas[a],!e.fontAtlas[i]){var o=r.metrics;e.shader.atlas[a]=e.fontAtlas[i]={fontString:a,step:2*Math.ceil(e.fontSize[i]*o.bottom*.5),em:e.fontSize[i],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:e.regl.texture()}}null==t.text&amp;&amp;(t.text=e.text)})),&quot;string&quot;==typeof t.text&amp;&amp;t.position&amp;&amp;t.position.length&gt;2){for(var s=Array(.5*t.position.length),h=0;h&lt;s.length;h++)s[h]=t.text;t.text=s}if(null!=t.text||a){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var b=1;b&lt;t.text.length;b++)this.textOffsets[b]=this.textOffsets[b-1]+t.text[b-1].length,this.count+=t.text[b].length,this.counts.push(t.text[b].length);this.text=t.text.join(&quot;&quot;)}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];r=[],this.font.forEach((function(t,n){T.atlasContext.font=t.baseString;for(var i=e.fontAtlas[n],a=0;a&lt;e.text.length;a++){var o=e.text.charAt(a);if(null==i.ids[o]&amp;&amp;(i.ids[o]=i.chars.length,i.chars.push(o),r.push(o)),null==t.width[o]&amp;&amp;(t.width[o]=T.atlasContext.measureText(o).width/T.baseFontSize,e.kerning)){var s=[];for(var l in t.width)s.push(l+o,o+l);m(t.kerning,g(t.family,{pairs:s}))}}}))}if(t.position)if(t.position.length&gt;2){for(var w=!t.position[0].length,k=u.mallocFloat(2*this.count),M=0,A=0;M&lt;this.counts.length;M++){var S=this.counts[M];if(w)for(var E=0;E&lt;S;E++)k[A++]=t.position[2*M],k[A++]=t.position[2*M+1];else for(var C=0;C&lt;S;C++)k[A++]=t.position[M][0],k[A++]=t.position[M][1]}this.position.call?this.position({type:&quot;float&quot;,data:k}):this.position=this.regl.buffer({type:&quot;float&quot;,data:k}),u.freeFloat(k)}else this.position.destroy&amp;&amp;this.position.destroy(),this.position={constant:t.position};if(t.text||a){var L=u.mallocUint8(this.count),I=u.mallocFloat(2*this.count);this.textWidth=[];for(var P=0,z=0;P&lt;this.counts.length;P++){for(var O=this.counts[P],D=this.font[P]||this.font[0],R=this.fontAtlas[P]||this.fontAtlas[0],F=0;F&lt;O;F++){var B=this.text.charAt(z),N=this.text.charAt(z-1);if(L[z]=R.ids[B],I[2*z]=D.width[B],F){var j=I[2*z-2],U=I[2*z],V=I[2*z-1]+.5*j+.5*U;if(this.kerning){var q=D.kerning[N+B];q&amp;&amp;(V+=.001*q)}I[2*z+1]=V}else I[2*z+1]=.5*I[2*z];z++}this.textWidth.push(I.length?.5*I[2*z-2]+I[2*z-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:L,type:&quot;uint8&quot;,usage:&quot;stream&quot;}),this.sizeBuffer({data:I,type:&quot;float&quot;,usage:&quot;stream&quot;}),u.freeUint8(L),u.freeFloat(I),r.length&amp;&amp;this.font.forEach((function(t,r){var n=e.fontAtlas[r],i=n.step,a=Math.floor(T.maxAtlasSize/i),o=Math.min(a,n.chars.length),s=Math.ceil(n.chars.length/o),l=x(o*i),u=x(s*i);n.width=l,n.height=u,n.rows=s,n.cols=o,n.em&amp;&amp;n.texture({data:c({canvas:T.atlasCanvas,font:n.fontString,chars:n.chars,shape:[l,u],step:[i,i]})})}))}if(t.align&amp;&amp;(this.align=t.align,this.alignOffset=this.textWidth.map((function(t,r){var n=Array.isArray(e.align)?e.align.length&gt;1?e.align[r]:e.align[0]:e.align;if(&quot;number&quot;==typeof n)return n;switch(n){case&quot;right&quot;:case&quot;end&quot;:return-t;case&quot;center&quot;:case&quot;centre&quot;:case&quot;middle&quot;:return.5*-t}return 0}))),null==this.baseline&amp;&amp;null==t.baseline&amp;&amp;(t.baseline=0),null!=t.baseline&amp;&amp;(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map((function(t,r){var n=(e.font[r]||e.font[0]).metrics,i=0;return i+=.5*n.bottom,i+=&quot;number&quot;==typeof t?t-n.baseline:-n[t],T.normalViewport||(i*=-1),i}))),null!=t.color)if(t.color||(t.color=&quot;transparent&quot;),&quot;string&quot;!=typeof t.color&amp;&amp;isNaN(t.color)){var H;if(&quot;number&quot;==typeof t.color[0]&amp;&amp;t.color.length&gt;this.counts.length){var G=t.color.length;H=u.mallocUint8(G);for(var Y=(t.color.subarray||t.color.slice).bind(t.color),W=0;W&lt;G;W+=4)H.set(l(Y(W,W+4),&quot;uint8&quot;),W)}else{var X=t.color.length;H=u.mallocUint8(4*X);for(var Z=0;Z&lt;X;Z++)H.set(l(t.color[Z]||0,&quot;uint8&quot;),4*Z)}this.color=H}else this.color=l(t.color,&quot;uint8&quot;);if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity)if(this.color.length&gt;4||this.baselineOffset.length&gt;1||this.align&amp;&amp;this.align.length&gt;1||this.fontAtlas.length&gt;1||this.positionOffset.length&gt;2){var J=Math.max(.5*this.position.length||0,.25*this.color.length||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,.5*this.positionOffset.length||0);this.batch=Array(J);for(var K=0;K&lt;this.batch.length;K++)this.batch[K]={count:this.counts.length&gt;1?this.counts[K]:this.counts[0],offset:this.textOffsets.length&gt;1?this.textOffsets[K]:this.textOffsets[0],color:this.color?this.color.length&lt;=4?this.color:this.color.subarray(4*K,4*K+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[K]:this.opacity,baseline:null!=this.baselineOffset[K]?this.baselineOffset[K]:this.baselineOffset[0],align:this.align?null!=this.alignOffset[K]?this.alignOffset[K]:this.alignOffset[0]:0,atlas:this.fontAtlas[K]||this.fontAtlas[0],positionOffset:this.positionOffset.length&gt;2?this.positionOffset.subarray(2*K,2*K+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]},T.prototype.destroy=function(){},T.prototype.kerning=!0,T.prototype.position={constant:new Float32Array(2)},T.prototype.translate=null,T.prototype.scale=null,T.prototype.font=null,T.prototype.text=&quot;&quot;,T.prototype.positionOffset=[0,0],T.prototype.opacity=1,T.prototype.color=new Uint8Array([0,0,0,255]),T.prototype.alignOffset=[0,0],T.normalViewport=!1,T.maxAtlasSize=1024,T.atlasCanvas=document.createElement(&quot;canvas&quot;),T.atlasContext=T.atlasCanvas.getContext(&quot;2d&quot;,{alpha:!1}),T.baseFontSize=64,T.fonts={},e.exports=T},{&quot;bit-twiddle&quot;:97,&quot;color-normalize&quot;:125,&quot;css-font&quot;:144,&quot;detect-kerning&quot;:172,&quot;es6-weak-map&quot;:233,&quot;flatten-vertex-data&quot;:244,&quot;font-atlas&quot;:245,&quot;font-measure&quot;:246,&quot;gl-util/context&quot;:354,&quot;is-plain-obj&quot;:469,&quot;object-assign&quot;:499,&quot;parse-rect&quot;:504,&quot;parse-unit&quot;:506,&quot;pick-by-alias&quot;:511,regl:540,&quot;to-px&quot;:578,&quot;typedarray-pool&quot;:595}],353:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ndarray&quot;),i=t(&quot;ndarray-ops&quot;),a=t(&quot;typedarray-pool&quot;);e.exports=function(t){if(arguments.length&lt;=1)throw new Error(&quot;gl-texture2d: Missing arguments for texture2d constructor&quot;);o||c(t);if(&quot;number&quot;==typeof arguments[1])return v(t,arguments[1],arguments[2],arguments[3]||t.RGBA,arguments[4]||t.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return v(t,0|arguments[1][0],0|arguments[1][1],arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(&quot;object&quot;==typeof arguments[1]){var e=arguments[1],r=u(e)?e:e.raw;if(r)return y(t,r,0|e.width,0|e.height,arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(e.shape&amp;&amp;e.data&amp;&amp;e.stride)return x(t,e)}throw new Error(&quot;gl-texture2d: Invalid arguments for texture2d constructor&quot;)};var o=null,s=null,l=null;function c(t){o=[t.LINEAR,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_NEAREST],s=[t.NEAREST,t.LINEAR,t.NEAREST_MIPMAP_NEAREST,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_LINEAR],l=[t.REPEAT,t.CLAMP_TO_EDGE,t.MIRRORED_REPEAT]}function u(t){return&quot;undefined&quot;!=typeof HTMLCanvasElement&amp;&amp;t instanceof HTMLCanvasElement||&quot;undefined&quot;!=typeof HTMLImageElement&amp;&amp;t instanceof HTMLImageElement||&quot;undefined&quot;!=typeof HTMLVideoElement&amp;&amp;t instanceof HTMLVideoElement||&quot;undefined&quot;!=typeof ImageData&amp;&amp;t instanceof ImageData}var f=function(t,e){i.muls(t,e,255)};function h(t,e,r){var n=t.gl,i=n.getParameter(n.MAX_TEXTURE_SIZE);if(e&lt;0||e&gt;i||r&lt;0||r&gt;i)throw new Error(&quot;gl-texture2d: Invalid texture size&quot;);return t._shape=[e,r],t.bind(),n.texImage2D(n.TEXTURE_2D,0,t.format,e,r,0,t.format,t.type,null),t._mipLevels=[0],t}function p(t,e,r,n,i,a){this.gl=t,this.handle=e,this.format=i,this.type=a,this._shape=[r,n],this._mipLevels=[0],this._magFilter=t.NEAREST,this._minFilter=t.NEAREST,this._wrapS=t.CLAMP_TO_EDGE,this._wrapT=t.CLAMP_TO_EDGE,this._anisoSamples=1;var o=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return o._wrapS},set:function(t){return o.wrapS=t}},{get:function(){return o._wrapT},set:function(t){return o.wrapT=t}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return o._shape[0]},set:function(t){return o.width=t}},{get:function(){return o._shape[1]},set:function(t){return o.height=t}}]),this._shapeVector=l}var d=p.prototype;function g(t,e){return 3===t.length?1===e[2]&amp;&amp;e[1]===t[0]*t[2]&amp;&amp;e[0]===t[2]:1===e[0]&amp;&amp;e[1]===t[0]}function m(t){var e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),e}function v(t,e,r,n,i){var a=t.getParameter(t.MAX_TEXTURE_SIZE);if(e&lt;0||e&gt;a||r&lt;0||r&gt;a)throw new Error(&quot;gl-texture2d: Invalid texture shape&quot;);if(i===t.FLOAT&amp;&amp;!t.getExtension(&quot;OES_texture_float&quot;))throw new Error(&quot;gl-texture2d: Floating point textures not supported on this platform&quot;);var o=m(t);return t.texImage2D(t.TEXTURE_2D,0,n,e,r,0,n,i,null),new p(t,o,e,r,n,i)}function y(t,e,r,n,i,a){var o=m(t);return t.texImage2D(t.TEXTURE_2D,0,i,i,a,e),new p(t,o,r,n,i,a)}function x(t,e){var r=e.dtype,o=e.shape.slice(),s=t.getParameter(t.MAX_TEXTURE_SIZE);if(o[0]&lt;0||o[0]&gt;s||o[1]&lt;0||o[1]&gt;s)throw new Error(&quot;gl-texture2d: Invalid texture size&quot;);var l=g(o,e.stride.slice()),c=0;&quot;float32&quot;===r?c=t.FLOAT:&quot;float64&quot;===r?(c=t.FLOAT,l=!1,r=&quot;float32&quot;):&quot;uint8&quot;===r?c=t.UNSIGNED_BYTE:(c=t.UNSIGNED_BYTE,l=!1,r=&quot;uint8&quot;);var u,h,d=0;if(2===o.length)d=t.LUMINANCE,o=[o[0],o[1],1],e=n(e.data,o,[e.stride[0],e.stride[1],1],e.offset);else{if(3!==o.length)throw new Error(&quot;gl-texture2d: Invalid shape for texture&quot;);if(1===o[2])d=t.ALPHA;else if(2===o[2])d=t.LUMINANCE_ALPHA;else if(3===o[2])d=t.RGB;else{if(4!==o[2])throw new Error(&quot;gl-texture2d: Invalid shape for pixel coords&quot;);d=t.RGBA}}c!==t.FLOAT||t.getExtension(&quot;OES_texture_float&quot;)||(c=t.UNSIGNED_BYTE,l=!1);var v=e.size;if(l)u=0===e.offset&amp;&amp;e.data.length===v?e.data:e.data.subarray(e.offset,e.offset+v);else{var y=[o[2],o[2]*o[0],1];h=a.malloc(v,r);var x=n(h,o,y,0);&quot;float32&quot;!==r&amp;&amp;&quot;float64&quot;!==r||c!==t.UNSIGNED_BYTE?i.assign(x,e):f(x,e),u=h.subarray(0,v)}var b=m(t);return t.texImage2D(t.TEXTURE_2D,0,d,o[0],o[1],0,d,c,u),l||a.free(h),new p(t,b,o[0],o[1],d,c)}Object.defineProperties(d,{minFilter:{get:function(){return this._minFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&amp;&amp;o.indexOf(t)&gt;=0&amp;&amp;(e.getExtension(&quot;OES_texture_float_linear&quot;)||(t=e.NEAREST)),s.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown filter mode &quot;+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t),this._minFilter=t}},magFilter:{get:function(){return this._magFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&amp;&amp;o.indexOf(t)&gt;=0&amp;&amp;(e.getExtension(&quot;OES_texture_float_linear&quot;)||(t=e.NEAREST)),s.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown filter mode &quot;+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t),this._magFilter=t}},mipSamples:{get:function(){return this._anisoSamples},set:function(t){var e=this._anisoSamples;if(this._anisoSamples=0|Math.max(t,1),e!==this._anisoSamples){var r=this.gl.getExtension(&quot;EXT_texture_filter_anisotropic&quot;);r&amp;&amp;this.gl.texParameterf(this.gl.TEXTURE_2D,r.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(t){if(this.bind(),l.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,t),this._wrapS=t}},wrapT:{get:function(){return this._wrapT},set:function(t){if(this.bind(),l.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,t),this._wrapT=t}},wrap:{get:function(){return this._wrapVector},set:function(t){if(Array.isArray(t)||(t=[t,t]),2!==t.length)throw new Error(&quot;gl-texture2d: Must specify wrap mode for rows and columns&quot;);for(var e=0;e&lt;2;++e)if(l.indexOf(t[e])&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);this._wrapS=t[0],this._wrapT=t[1];var r=this.gl;return this.bind(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,this._wrapS),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,this._wrapT),t}},shape:{get:function(){return this._shapeVector},set:function(t){if(Array.isArray(t)){if(2!==t.length)throw new Error(&quot;gl-texture2d: Invalid texture shape&quot;)}else t=[0|t,0|t];return h(this,0|t[0],0|t[1]),[0|t[0],0|t[1]]}},width:{get:function(){return this._shape[0]},set:function(t){return h(this,t|=0,this._shape[1]),t}},height:{get:function(){return this._shape[1]},set:function(t){return t|=0,h(this,this._shape[0],t),t}}}),d.bind=function(t){var e=this.gl;return void 0!==t&amp;&amp;e.activeTexture(e.TEXTURE0+(0|t)),e.bindTexture(e.TEXTURE_2D,this.handle),void 0!==t?0|t:e.getParameter(e.ACTIVE_TEXTURE)-e.TEXTURE0},d.dispose=function(){this.gl.deleteTexture(this.handle)},d.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var t=Math.min(this._shape[0],this._shape[1]),e=0;t&gt;0;++e,t&gt;&gt;&gt;=1)this._mipLevels.indexOf(e)&lt;0&amp;&amp;this._mipLevels.push(e)},d.setPixels=function(t,e,r,o){var s=this.gl;this.bind(),Array.isArray(e)?(o=r,r=0|e[1],e=0|e[0]):(e=e||0,r=r||0),o=o||0;var l=u(t)?t:t.raw;if(l){this._mipLevels.indexOf(o)&lt;0?(s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,this.type,l),this._mipLevels.push(o)):s.texSubImage2D(s.TEXTURE_2D,o,e,r,this.format,this.type,l)}else{if(!(t.shape&amp;&amp;t.stride&amp;&amp;t.data))throw new Error(&quot;gl-texture2d: Unsupported data type&quot;);if(t.shape.length&lt;2||e+t.shape[1]&gt;this._shape[1]&gt;&gt;&gt;o||r+t.shape[0]&gt;this._shape[0]&gt;&gt;&gt;o||e&lt;0||r&lt;0)throw new Error(&quot;gl-texture2d: Texture dimensions are out of bounds&quot;);!function(t,e,r,o,s,l,c,u){var h=u.dtype,p=u.shape.slice();if(p.length&lt;2||p.length&gt;3)throw new Error(&quot;gl-texture2d: Invalid ndarray, must be 2d or 3d&quot;);var d=0,m=0,v=g(p,u.stride.slice());&quot;float32&quot;===h?d=t.FLOAT:&quot;float64&quot;===h?(d=t.FLOAT,v=!1,h=&quot;float32&quot;):&quot;uint8&quot;===h?d=t.UNSIGNED_BYTE:(d=t.UNSIGNED_BYTE,v=!1,h=&quot;uint8&quot;);if(2===p.length)m=t.LUMINANCE,p=[p[0],p[1],1],u=n(u.data,p,[u.stride[0],u.stride[1],1],u.offset);else{if(3!==p.length)throw new Error(&quot;gl-texture2d: Invalid shape for texture&quot;);if(1===p[2])m=t.ALPHA;else if(2===p[2])m=t.LUMINANCE_ALPHA;else if(3===p[2])m=t.RGB;else{if(4!==p[2])throw new Error(&quot;gl-texture2d: Invalid shape for pixel coords&quot;);m=t.RGBA}p[2]}m!==t.LUMINANCE&amp;&amp;m!==t.ALPHA||s!==t.LUMINANCE&amp;&amp;s!==t.ALPHA||(m=s);if(m!==s)throw new Error(&quot;gl-texture2d: Incompatible texture format for setPixels&quot;);var y=u.size,x=c.indexOf(o)&lt;0;x&amp;&amp;c.push(o);if(d===l&amp;&amp;v)0===u.offset&amp;&amp;u.data.length===y?x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data):x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data.subarray(u.offset,u.offset+y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data.subarray(u.offset,u.offset+y));else{var b;b=l===t.FLOAT?a.mallocFloat32(y):a.mallocUint8(y);var _=n(b,p,[p[2],p[2]*p[0],1]);d===t.FLOAT&amp;&amp;l===t.UNSIGNED_BYTE?f(_,u):i.assign(_,u),x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,b.subarray(0,y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,b.subarray(0,y)),l===t.FLOAT?a.freeFloat32(b):a.freeUint8(b)}}(s,e,r,o,this.format,this.type,this._mipLevels,t)}}},{ndarray:495,&quot;ndarray-ops&quot;:490,&quot;typedarray-pool&quot;:595}],354:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;);function i(t){if(t.container)if(t.container==document.body)document.body.style.width||(t.canvas.width=t.width||t.pixelRatio*r.innerWidth),document.body.style.height||(t.canvas.height=t.height||t.pixelRatio*r.innerHeight);else{var e=t.container.getBoundingClientRect();t.canvas.width=t.width||e.right-e.left,t.canvas.height=t.height||e.bottom-e.top}}function a(t){return&quot;function&quot;==typeof t.getContext&amp;&amp;&quot;width&quot;in t&amp;&amp;&quot;height&quot;in t}function o(){var t=document.createElement(&quot;canvas&quot;);return t.style.position=&quot;absolute&quot;,t.style.top=0,t.style.left=0,t}e.exports=function(t){var e;if(t?&quot;string&quot;==typeof t&amp;&amp;(t={container:t}):t={},a(t)?t={container:t}:t=&quot;string&quot;==typeof(e=t).nodeName&amp;&amp;&quot;function&quot;==typeof e.appendChild&amp;&amp;&quot;function&quot;==typeof e.getBoundingClientRect?{container:t}:function(t){return&quot;function&quot;==typeof t.drawArrays||&quot;function&quot;==typeof t.drawElements}(t)?{gl:t}:n(t,{container:&quot;container target element el canvas holder parent parentNode wrapper use ref root node&quot;,gl:&quot;gl context webgl glContext&quot;,attrs:&quot;attributes attrs contextAttributes&quot;,pixelRatio:&quot;pixelRatio pxRatio px ratio pxratio pixelratio&quot;,width:&quot;w width&quot;,height:&quot;h height&quot;},!0),t.pixelRatio||(t.pixelRatio=r.pixelRatio||1),t.gl)return t.gl;if(t.canvas&amp;&amp;(t.container=t.canvas.parentNode),t.container){if(&quot;string&quot;==typeof t.container){var s=document.querySelector(t.container);if(!s)throw Error(&quot;Element &quot;+t.container+&quot; is not found&quot;);t.container=s}a(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=o(),t.container.appendChild(t.canvas),i(t))}else if(!t.canvas){if(&quot;undefined&quot;==typeof document)throw Error(&quot;Not DOM environment. Use headless-gl.&quot;);t.container=document.body||document.documentElement,t.canvas=o(),t.container.appendChild(t.canvas),i(t)}if(!t.gl)try{t.gl=t.canvas.getContext(&quot;webgl&quot;,t.attrs)}catch(e){try{t.gl=t.canvas.getContext(&quot;experimental-webgl&quot;,t.attrs)}catch(e){t.gl=t.canvas.getContext(&quot;webgl-experimental&quot;,t.attrs)}}return t.gl}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;pick-by-alias&quot;:511}],355:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){e?e.bind():t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null);var n=0|t.getParameter(t.MAX_VERTEX_ATTRIBS);if(r){if(r.length&gt;n)throw new Error(&quot;gl-vao: Too many vertex attributes&quot;);for(var i=0;i&lt;r.length;++i){var a=r[i];if(a.buffer){var o=a.buffer,s=a.size||4,l=a.type||t.FLOAT,c=!!a.normalized,u=a.stride||0,f=a.offset||0;o.bind(),t.enableVertexAttribArray(i),t.vertexAttribPointer(i,s,l,c,u,f)}else{if(&quot;number&quot;==typeof a)t.vertexAttrib1f(i,a);else if(1===a.length)t.vertexAttrib1f(i,a[0]);else if(2===a.length)t.vertexAttrib2f(i,a[0],a[1]);else if(3===a.length)t.vertexAttrib3f(i,a[0],a[1],a[2]);else{if(4!==a.length)throw new Error(&quot;gl-vao: Invalid vertex attribute&quot;);t.vertexAttrib4f(i,a[0],a[1],a[2],a[3])}t.disableVertexAttribArray(i)}}for(;i&lt;n;++i)t.disableVertexAttribArray(i)}else{t.bindBuffer(t.ARRAY_BUFFER,null);for(i=0;i&lt;n;++i)t.disableVertexAttribArray(i)}}},{}],356:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./do-bind.js&quot;);function i(t){this.gl=t,this._elements=null,this._attributes=null,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(){n(this.gl,this._elements,this._attributes)},i.prototype.update=function(t,e,r){this._elements=e,this._attributes=t,this._elementsType=r||this.gl.UNSIGNED_SHORT},i.prototype.dispose=function(){},i.prototype.unbind=function(){},i.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._elements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t){return new i(t)}},{&quot;./do-bind.js&quot;:355}],357:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./do-bind.js&quot;);function i(t,e,r,n,i,a){this.location=t,this.dimension=e,this.a=r,this.b=n,this.c=i,this.d=a}function a(t,e,r){this.gl=t,this._ext=e,this.handle=r,this._attribs=[],this._useElements=!1,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(t){switch(this.dimension){case 1:t.vertexAttrib1f(this.location,this.a);break;case 2:t.vertexAttrib2f(this.location,this.a,this.b);break;case 3:t.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:t.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d)}},a.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var t=0;t&lt;this._attribs.length;++t)this._attribs[t].bind(this.gl)},a.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},a.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},a.prototype.update=function(t,e,r){if(this.bind(),n(this.gl,e,t),this.unbind(),this._attribs.length=0,t)for(var a=0;a&lt;t.length;++a){var o=t[a];&quot;number&quot;==typeof o?this._attribs.push(new i(a,1,o)):Array.isArray(o)&amp;&amp;this._attribs.push(new i(a,o.length,o[0],o[1],o[2],o[3]))}this._useElements=!!e,this._elementsType=r||this.gl.UNSIGNED_SHORT},a.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._useElements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t,e){return new a(t,e,e.createVertexArrayOES())}},{&quot;./do-bind.js&quot;:355}],358:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/vao-native.js&quot;),i=t(&quot;./lib/vao-emulated.js&quot;);function a(t){this.bindVertexArrayOES=t.bindVertexArray.bind(t),this.createVertexArrayOES=t.createVertexArray.bind(t),this.deleteVertexArrayOES=t.deleteVertexArray.bind(t)}e.exports=function(t,e,r,o){var s,l=t.createVertexArray?new a(t):t.getExtension(&quot;OES_vertex_array_object&quot;);return(s=l?n(t,l):i(t)).update(e,r,o),s}},{&quot;./lib/vao-emulated.js&quot;:356,&quot;./lib/vao-native.js&quot;:357}],359:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}},{}],360:[function(t,e,r){e.exports=function(t,e){var r=n(t[0],t[1],t[2]),o=n(e[0],e[1],e[2]);i(r,r),i(o,o);var s=a(r,o);return s&gt;1?0:Math.acos(s)};var n=t(&quot;./fromValues&quot;),i=t(&quot;./normalize&quot;),a=t(&quot;./dot&quot;)},{&quot;./dot&quot;:370,&quot;./fromValues&quot;:376,&quot;./normalize&quot;:387}],361:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}},{}],362:[function(t,e,r){e.exports=function(t){var e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}},{}],363:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},{}],364:[function(t,e,r){e.exports=function(){var t=new Float32Array(3);return t[0]=0,t[1]=0,t[2]=0,t}},{}],365:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t}},{}],366:[function(t,e,r){e.exports=t(&quot;./distance&quot;)},{&quot;./distance&quot;:367}],367:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}},{}],368:[function(t,e,r){e.exports=t(&quot;./divide&quot;)},{&quot;./divide&quot;:369}],369:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}},{}],370:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}},{}],371:[function(t,e,r){e.exports=1e-6},{}],372:[function(t,e,r){e.exports=function(t,e){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(r-o)&lt;=n*Math.max(1,Math.abs(r),Math.abs(o))&amp;&amp;Math.abs(i-s)&lt;=n*Math.max(1,Math.abs(i),Math.abs(s))&amp;&amp;Math.abs(a-l)&lt;=n*Math.max(1,Math.abs(a),Math.abs(l))};var n=t(&quot;./epsilon&quot;)},{&quot;./epsilon&quot;:371}],373:[function(t,e,r){e.exports=function(t,e){return t[0]===e[0]&amp;&amp;t[1]===e[1]&amp;&amp;t[2]===e[2]}},{}],374:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}},{}],375:[function(t,e,r){e.exports=function(t,e,r,i,a,o){var s,l;e||(e=3);r||(r=0);l=i?Math.min(i*e+r,t.length):t.length;for(s=r;s&lt;l;s+=e)n[0]=t[s],n[1]=t[s+1],n[2]=t[s+2],a(n,n,o),t[s]=n[0],t[s+1]=n[1],t[s+2]=n[2];return t};var n=t(&quot;./create&quot;)()},{&quot;./create&quot;:364}],376:[function(t,e,r){e.exports=function(t,e,r){var n=new Float32Array(3);return n[0]=t,n[1]=e,n[2]=r,n}},{}],377:[function(t,e,r){e.exports={EPSILON:t(&quot;./epsilon&quot;),create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),angle:t(&quot;./angle&quot;),fromValues:t(&quot;./fromValues&quot;),copy:t(&quot;./copy&quot;),set:t(&quot;./set&quot;),equals:t(&quot;./equals&quot;),exactEquals:t(&quot;./exactEquals&quot;),add:t(&quot;./add&quot;),subtract:t(&quot;./subtract&quot;),sub:t(&quot;./sub&quot;),multiply:t(&quot;./multiply&quot;),mul:t(&quot;./mul&quot;),divide:t(&quot;./divide&quot;),div:t(&quot;./div&quot;),min:t(&quot;./min&quot;),max:t(&quot;./max&quot;),floor:t(&quot;./floor&quot;),ceil:t(&quot;./ceil&quot;),round:t(&quot;./round&quot;),scale:t(&quot;./scale&quot;),scaleAndAdd:t(&quot;./scaleAndAdd&quot;),distance:t(&quot;./distance&quot;),dist:t(&quot;./dist&quot;),squaredDistance:t(&quot;./squaredDistance&quot;),sqrDist:t(&quot;./sqrDist&quot;),length:t(&quot;./length&quot;),len:t(&quot;./len&quot;),squaredLength:t(&quot;./squaredLength&quot;),sqrLen:t(&quot;./sqrLen&quot;),negate:t(&quot;./negate&quot;),inverse:t(&quot;./inverse&quot;),normalize:t(&quot;./normalize&quot;),dot:t(&quot;./dot&quot;),cross:t(&quot;./cross&quot;),lerp:t(&quot;./lerp&quot;),random:t(&quot;./random&quot;),transformMat4:t(&quot;./transformMat4&quot;),transformMat3:t(&quot;./transformMat3&quot;),transformQuat:t(&quot;./transformQuat&quot;),rotateX:t(&quot;./rotateX&quot;),rotateY:t(&quot;./rotateY&quot;),rotateZ:t(&quot;./rotateZ&quot;),forEach:t(&quot;./forEach&quot;)}},{&quot;./add&quot;:359,&quot;./angle&quot;:360,&quot;./ceil&quot;:361,&quot;./clone&quot;:362,&quot;./copy&quot;:363,&quot;./create&quot;:364,&quot;./cross&quot;:365,&quot;./dist&quot;:366,&quot;./distance&quot;:367,&quot;./div&quot;:368,&quot;./divide&quot;:369,&quot;./dot&quot;:370,&quot;./epsilon&quot;:371,&quot;./equals&quot;:372,&quot;./exactEquals&quot;:373,&quot;./floor&quot;:374,&quot;./forEach&quot;:375,&quot;./fromValues&quot;:376,&quot;./inverse&quot;:378,&quot;./len&quot;:379,&quot;./length&quot;:380,&quot;./lerp&quot;:381,&quot;./max&quot;:382,&quot;./min&quot;:383,&quot;./mul&quot;:384,&quot;./multiply&quot;:385,&quot;./negate&quot;:386,&quot;./normalize&quot;:387,&quot;./random&quot;:388,&quot;./rotateX&quot;:389,&quot;./rotateY&quot;:390,&quot;./rotateZ&quot;:391,&quot;./round&quot;:392,&quot;./scale&quot;:393,&quot;./scaleAndAdd&quot;:394,&quot;./set&quot;:395,&quot;./sqrDist&quot;:396,&quot;./sqrLen&quot;:397,&quot;./squaredDistance&quot;:398,&quot;./squaredLength&quot;:399,&quot;./sub&quot;:400,&quot;./subtract&quot;:401,&quot;./transformMat3&quot;:402,&quot;./transformMat4&quot;:403,&quot;./transformQuat&quot;:404}],378:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}},{}],379:[function(t,e,r){e.exports=t(&quot;./length&quot;)},{&quot;./length&quot;:380}],380:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}},{}],381:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t}},{}],382:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}},{}],383:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}},{}],384:[function(t,e,r){e.exports=t(&quot;./multiply&quot;)},{&quot;./multiply&quot;:385}],385:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}},{}],386:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}},{}],387:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;a&gt;0&amp;&amp;(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a);return t}},{}],388:[function(t,e,r){e.exports=function(t,e){e=e||1;var r=2*Math.random()*Math.PI,n=2*Math.random()-1,i=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=n*e,t}},{}],389:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[1],a=r[2],o=e[1]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=e[0],t[1]=i+o*c-s*l,t[2]=a+o*l+s*c,t}},{}],390:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[2],o=e[0]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+s*l+o*c,t[1]=e[1],t[2]=a+s*c-o*l,t}},{}],391:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[1],o=e[0]-i,s=e[1]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+o*c-s*l,t[1]=a+o*l+s*c,t[2]=e[2],t}},{}],392:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}},{}],393:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}},{}],394:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}},{}],395:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}},{}],396:[function(t,e,r){e.exports=t(&quot;./squaredDistance&quot;)},{&quot;./squaredDistance&quot;:398}],397:[function(t,e,r){e.exports=t(&quot;./squaredLength&quot;)},{&quot;./squaredLength&quot;:399}],398:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}},{}],399:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}},{}],400:[function(t,e,r){e.exports=t(&quot;./subtract&quot;)},{&quot;./subtract&quot;:401}],401:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}},{}],402:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t}},{}],403:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,t[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,t[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,t}},{}],404:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t}},{}],405:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}},{}],406:[function(t,e,r){e.exports=function(t){var e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}},{}],407:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},{}],408:[function(t,e,r){e.exports=function(){var t=new Float32Array(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}},{}],409:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(r*r+n*n+i*i+a*a)}},{}],410:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}},{}],411:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}},{}],412:[function(t,e,r){e.exports=function(t,e,r,n){var i=new Float32Array(4);return i[0]=t,i[1]=e,i[2]=r,i[3]=n,i}},{}],413:[function(t,e,r){e.exports={create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),fromValues:t(&quot;./fromValues&quot;),copy:t(&quot;./copy&quot;),set:t(&quot;./set&quot;),add:t(&quot;./add&quot;),subtract:t(&quot;./subtract&quot;),multiply:t(&quot;./multiply&quot;),divide:t(&quot;./divide&quot;),min:t(&quot;./min&quot;),max:t(&quot;./max&quot;),scale:t(&quot;./scale&quot;),scaleAndAdd:t(&quot;./scaleAndAdd&quot;),distance:t(&quot;./distance&quot;),squaredDistance:t(&quot;./squaredDistance&quot;),length:t(&quot;./length&quot;),squaredLength:t(&quot;./squaredLength&quot;),negate:t(&quot;./negate&quot;),inverse:t(&quot;./inverse&quot;),normalize:t(&quot;./normalize&quot;),dot:t(&quot;./dot&quot;),lerp:t(&quot;./lerp&quot;),random:t(&quot;./random&quot;),transformMat4:t(&quot;./transformMat4&quot;),transformQuat:t(&quot;./transformQuat&quot;)}},{&quot;./add&quot;:405,&quot;./clone&quot;:406,&quot;./copy&quot;:407,&quot;./create&quot;:408,&quot;./distance&quot;:409,&quot;./divide&quot;:410,&quot;./dot&quot;:411,&quot;./fromValues&quot;:412,&quot;./inverse&quot;:414,&quot;./length&quot;:415,&quot;./lerp&quot;:416,&quot;./max&quot;:417,&quot;./min&quot;:418,&quot;./multiply&quot;:419,&quot;./negate&quot;:420,&quot;./normalize&quot;:421,&quot;./random&quot;:422,&quot;./scale&quot;:423,&quot;./scaleAndAdd&quot;:424,&quot;./set&quot;:425,&quot;./squaredDistance&quot;:426,&quot;./squaredLength&quot;:427,&quot;./subtract&quot;:428,&quot;./transformMat4&quot;:429,&quot;./transformQuat&quot;:430}],414:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}},{}],415:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return Math.sqrt(e*e+r*r+n*n+i*i)}},{}],416:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t}},{}],417:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}},{}],418:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}},{}],419:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}},{}],420:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}},{}],421:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a;o&gt;0&amp;&amp;(o=1/Math.sqrt(o),t[0]=r*o,t[1]=n*o,t[2]=i*o,t[3]=a*o);return t}},{}],422:[function(t,e,r){var n=t(&quot;./normalize&quot;),i=t(&quot;./scale&quot;);e.exports=function(t,e){return e=e||1,t[0]=Math.random(),t[1]=Math.random(),t[2]=Math.random(),t[3]=Math.random(),n(t,t),i(t,t,e),t}},{&quot;./normalize&quot;:421,&quot;./scale&quot;:423}],423:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}},{}],424:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t}},{}],425:[function(t,e,r){e.exports=function(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}},{}],426:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return r*r+n*n+i*i+a*a}},{}],427:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+i*i}},{}],428:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}},{}],429:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}},{}],430:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t[3]=e[3],t}},{}],431:[function(t,e,r){var n=t(&quot;glsl-tokenizer&quot;),i=t(&quot;atob-lite&quot;);e.exports=function(t){for(var e=Array.isArray(t)?t:n(t),r=0;r&lt;e.length;r++){var a=e[r];if(&quot;preprocessor&quot;===a.type){var o=a.data.match(/\#define\s+SHADER_NAME(_B64)?\s+(.+)$/);if(o&amp;&amp;o[2]){var s=o[1],l=o[2];return(s?i(l):l).trim()}}}}},{&quot;atob-lite&quot;:77,&quot;glsl-tokenizer&quot;:438}],432:[function(t,e,r){e.exports=function(t){var e,r,c,u=0,f=0,h=999,p=[],d=[],g=1,m=0,v=0,y=!1,x=!1,b=&quot;&quot;,_=a,w=n;&quot;300 es&quot;===(t=t||{}).version&amp;&amp;(_=s,w=o);var T={},k={};for(u=0;u&lt;_.length;u++)T[_[u]]=!0;for(u=0;u&lt;w.length;u++)k[w[u]]=!0;return function(t){return d=[],null!==t?function(t){u=0,t.toString&amp;&amp;(t=t.toString());var r;b+=t.replace(/\r\n/g,&quot;\n&quot;),c=b.length;for(;e=b[u],u&lt;c;){switch(r=u,h){case 0:u=C();break;case 1:case 2:u=E();break;case 3:u=L();break;case 4:u=z();break;case 11:u=P();break;case 5:u=O();break;case 9999:u=D();break;case 9:u=S();break;case 999:u=A()}if(r!==u)switch(b[r]){case&quot;\n&quot;:m=0,++g;break;default:++m}}return f+=u,b=b.slice(u),d}(t):function(t){p.length&amp;&amp;M(p.join(&quot;&quot;));return h=10,M(&quot;(eof)&quot;),d}()};function M(t){t.length&amp;&amp;d.push({type:l[h],data:t,position:v,line:g,column:m})}function A(){return p=p.length?[]:p,&quot;/&quot;===r&amp;&amp;&quot;*&quot;===e?(v=f+u-1,h=0,r=e,u+1):&quot;/&quot;===r&amp;&amp;&quot;/&quot;===e?(v=f+u-1,h=1,r=e,u+1):&quot;#&quot;===e?(h=2,v=f+u,u):/\s/.test(e)?(h=9,v=f+u,u):(y=/\d/.test(e),x=/[^\w_]/.test(e),v=f+u,h=y?4:x?3:9999,u)}function S(){return/[^\s]/g.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function E(){return&quot;\r&quot;!==e&amp;&amp;&quot;\n&quot;!==e||&quot;\\&quot;===r?(p.push(e),r=e,u+1):(M(p.join(&quot;&quot;)),h=999,u)}function C(){return&quot;/&quot;===e&amp;&amp;&quot;*&quot;===r?(p.push(e),M(p.join(&quot;&quot;)),h=999,u+1):(p.push(e),r=e,u+1)}function L(){if(&quot;.&quot;===r&amp;&amp;/\d/.test(e))return h=5,u;if(&quot;/&quot;===r&amp;&amp;&quot;*&quot;===e)return h=0,u;if(&quot;/&quot;===r&amp;&amp;&quot;/&quot;===e)return h=1,u;if(&quot;.&quot;===e&amp;&amp;p.length){for(;I(p););return h=5,u}if(&quot;;&quot;===e||&quot;)&quot;===e||&quot;(&quot;===e){if(p.length)for(;I(p););return M(e),h=999,u+1}var t=2===p.length&amp;&amp;&quot;=&quot;!==e;if(/[\w_\d\s]/.test(e)||t){for(;I(p););return h=999,u}return p.push(e),r=e,u+1}function I(t){for(var e,r,n=0;;){if(e=i.indexOf(t.slice(0,t.length+n).join(&quot;&quot;)),r=i[e],-1===e){if(n--+t.length&gt;0)continue;r=t.slice(0,1).join(&quot;&quot;)}return M(r),v+=r.length,(p=p.slice(r.length)).length}}function P(){return/[^a-fA-F0-9]/.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function z(){return&quot;.&quot;===e||/[eE]/.test(e)?(p.push(e),h=5,r=e,u+1):&quot;x&quot;===e&amp;&amp;1===p.length&amp;&amp;&quot;0&quot;===p[0]?(h=11,p.push(e),r=e,u+1):/[^\d]/.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function O(){return&quot;f&quot;===e&amp;&amp;(p.push(e),r=e,u+=1),/[eE]/.test(e)?(p.push(e),r=e,u+1):(&quot;-&quot;!==e&amp;&amp;&quot;+&quot;!==e||!/[eE]/.test(r))&amp;&amp;/[^\d]/.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function D(){if(/[^\d\w_]/.test(e)){var t=p.join(&quot;&quot;);return h=k[t]?8:T[t]?7:6,M(p.join(&quot;&quot;)),h=999,u}return p.push(e),r=e,u+1}};var n=t(&quot;./lib/literals&quot;),i=t(&quot;./lib/operators&quot;),a=t(&quot;./lib/builtins&quot;),o=t(&quot;./lib/literals-300es&quot;),s=t(&quot;./lib/builtins-300es&quot;),l=[&quot;block-comment&quot;,&quot;line-comment&quot;,&quot;preprocessor&quot;,&quot;operator&quot;,&quot;integer&quot;,&quot;float&quot;,&quot;ident&quot;,&quot;builtin&quot;,&quot;keyword&quot;,&quot;whitespace&quot;,&quot;eof&quot;,&quot;integer&quot;]},{&quot;./lib/builtins&quot;:434,&quot;./lib/builtins-300es&quot;:433,&quot;./lib/literals&quot;:436,&quot;./lib/literals-300es&quot;:435,&quot;./lib/operators&quot;:437}],433:[function(t,e,r){var n=t(&quot;./builtins&quot;);n=n.slice().filter((function(t){return!/^(gl\_|texture)/.test(t)})),e.exports=n.concat([&quot;gl_VertexID&quot;,&quot;gl_InstanceID&quot;,&quot;gl_Position&quot;,&quot;gl_PointSize&quot;,&quot;gl_FragCoord&quot;,&quot;gl_FrontFacing&quot;,&quot;gl_FragDepth&quot;,&quot;gl_PointCoord&quot;,&quot;gl_MaxVertexAttribs&quot;,&quot;gl_MaxVertexUniformVectors&quot;,&quot;gl_MaxVertexOutputVectors&quot;,&quot;gl_MaxFragmentInputVectors&quot;,&quot;gl_MaxVertexTextureImageUnits&quot;,&quot;gl_MaxCombinedTextureImageUnits&quot;,&quot;gl_MaxTextureImageUnits&quot;,&quot;gl_MaxFragmentUniformVectors&quot;,&quot;gl_MaxDrawBuffers&quot;,&quot;gl_MinProgramTexelOffset&quot;,&quot;gl_MaxProgramTexelOffset&quot;,&quot;gl_DepthRangeParameters&quot;,&quot;gl_DepthRange&quot;,&quot;trunc&quot;,&quot;round&quot;,&quot;roundEven&quot;,&quot;isnan&quot;,&quot;isinf&quot;,&quot;floatBitsToInt&quot;,&quot;floatBitsToUint&quot;,&quot;intBitsToFloat&quot;,&quot;uintBitsToFloat&quot;,&quot;packSnorm2x16&quot;,&quot;unpackSnorm2x16&quot;,&quot;packUnorm2x16&quot;,&quot;unpackUnorm2x16&quot;,&quot;packHalf2x16&quot;,&quot;unpackHalf2x16&quot;,&quot;outerProduct&quot;,&quot;transpose&quot;,&quot;determinant&quot;,&quot;inverse&quot;,&quot;texture&quot;,&quot;textureSize&quot;,&quot;textureProj&quot;,&quot;textureLod&quot;,&quot;textureOffset&quot;,&quot;texelFetch&quot;,&quot;texelFetchOffset&quot;,&quot;textureProjOffset&quot;,&quot;textureLodOffset&quot;,&quot;textureProjLod&quot;,&quot;textureProjLodOffset&quot;,&quot;textureGrad&quot;,&quot;textureGradOffset&quot;,&quot;textureProjGrad&quot;,&quot;textureProjGradOffset&quot;])},{&quot;./builtins&quot;:434}],434:[function(t,e,r){e.exports=[&quot;abs&quot;,&quot;acos&quot;,&quot;all&quot;,&quot;any&quot;,&quot;asin&quot;,&quot;atan&quot;,&quot;ceil&quot;,&quot;clamp&quot;,&quot;cos&quot;,&quot;cross&quot;,&quot;dFdx&quot;,&quot;dFdy&quot;,&quot;degrees&quot;,&quot;distance&quot;,&quot;dot&quot;,&quot;equal&quot;,&quot;exp&quot;,&quot;exp2&quot;,&quot;faceforward&quot;,&quot;floor&quot;,&quot;fract&quot;,&quot;gl_BackColor&quot;,&quot;gl_BackLightModelProduct&quot;,&quot;gl_BackLightProduct&quot;,&quot;gl_BackMaterial&quot;,&quot;gl_BackSecondaryColor&quot;,&quot;gl_ClipPlane&quot;,&quot;gl_ClipVertex&quot;,&quot;gl_Color&quot;,&quot;gl_DepthRange&quot;,&quot;gl_DepthRangeParameters&quot;,&quot;gl_EyePlaneQ&quot;,&quot;gl_EyePlaneR&quot;,&quot;gl_EyePlaneS&quot;,&quot;gl_EyePlaneT&quot;,&quot;gl_Fog&quot;,&quot;gl_FogCoord&quot;,&quot;gl_FogFragCoord&quot;,&quot;gl_FogParameters&quot;,&quot;gl_FragColor&quot;,&quot;gl_FragCoord&quot;,&quot;gl_FragData&quot;,&quot;gl_FragDepth&quot;,&quot;gl_FragDepthEXT&quot;,&quot;gl_FrontColor&quot;,&quot;gl_FrontFacing&quot;,&quot;gl_FrontLightModelProduct&quot;,&quot;gl_FrontLightProduct&quot;,&quot;gl_FrontMaterial&quot;,&quot;gl_FrontSecondaryColor&quot;,&quot;gl_LightModel&quot;,&quot;gl_LightModelParameters&quot;,&quot;gl_LightModelProducts&quot;,&quot;gl_LightProducts&quot;,&quot;gl_LightSource&quot;,&quot;gl_LightSourceParameters&quot;,&quot;gl_MaterialParameters&quot;,&quot;gl_MaxClipPlanes&quot;,&quot;gl_MaxCombinedTextureImageUnits&quot;,&quot;gl_MaxDrawBuffers&quot;,&quot;gl_MaxFragmentUniformComponents&quot;,&quot;gl_MaxLights&quot;,&quot;gl_MaxTextureCoords&quot;,&quot;gl_MaxTextureImageUnits&quot;,&quot;gl_MaxTextureUnits&quot;,&quot;gl_MaxVaryingFloats&quot;,&quot;gl_MaxVertexAttribs&quot;,&quot;gl_MaxVertexTextureImageUnits&quot;,&quot;gl_MaxVertexUniformComponents&quot;,&quot;gl_ModelViewMatrix&quot;,&quot;gl_ModelViewMatrixInverse&quot;,&quot;gl_ModelViewMatrixInverseTranspose&quot;,&quot;gl_ModelViewMatrixTranspose&quot;,&quot;gl_ModelViewProjectionMatrix&quot;,&quot;gl_ModelViewProjectionMatrixInverse&quot;,&quot;gl_ModelViewProjectionMatrixInverseTranspose&quot;,&quot;gl_ModelViewProjectionMatrixTranspose&quot;,&quot;gl_MultiTexCoord0&quot;,&quot;gl_MultiTexCoord1&quot;,&quot;gl_MultiTexCoord2&quot;,&quot;gl_MultiTexCoord3&quot;,&quot;gl_MultiTexCoord4&quot;,&quot;gl_MultiTexCoord5&quot;,&quot;gl_MultiTexCoord6&quot;,&quot;gl_MultiTexCoord7&quot;,&quot;gl_Normal&quot;,&quot;gl_NormalMatrix&quot;,&quot;gl_NormalScale&quot;,&quot;gl_ObjectPlaneQ&quot;,&quot;gl_ObjectPlaneR&quot;,&quot;gl_ObjectPlaneS&quot;,&quot;gl_ObjectPlaneT&quot;,&quot;gl_Point&quot;,&quot;gl_PointCoord&quot;,&quot;gl_PointParameters&quot;,&quot;gl_PointSize&quot;,&quot;gl_Position&quot;,&quot;gl_ProjectionMatrix&quot;,&quot;gl_ProjectionMatrixInverse&quot;,&quot;gl_ProjectionMatrixInverseTranspose&quot;,&quot;gl_ProjectionMatrixTranspose&quot;,&quot;gl_SecondaryColor&quot;,&quot;gl_TexCoord&quot;,&quot;gl_TextureEnvColor&quot;,&quot;gl_TextureMatrix&quot;,&quot;gl_TextureMatrixInverse&quot;,&quot;gl_TextureMatrixInverseTranspose&quot;,&quot;gl_TextureMatrixTranspose&quot;,&quot;gl_Vertex&quot;,&quot;greaterThan&quot;,&quot;greaterThanEqual&quot;,&quot;inversesqrt&quot;,&quot;length&quot;,&quot;lessThan&quot;,&quot;lessThanEqual&quot;,&quot;log&quot;,&quot;log2&quot;,&quot;matrixCompMult&quot;,&quot;max&quot;,&quot;min&quot;,&quot;mix&quot;,&quot;mod&quot;,&quot;normalize&quot;,&quot;not&quot;,&quot;notEqual&quot;,&quot;pow&quot;,&quot;radians&quot;,&quot;reflect&quot;,&quot;refract&quot;,&quot;sign&quot;,&quot;sin&quot;,&quot;smoothstep&quot;,&quot;sqrt&quot;,&quot;step&quot;,&quot;tan&quot;,&quot;texture2D&quot;,&quot;texture2DLod&quot;,&quot;texture2DProj&quot;,&quot;texture2DProjLod&quot;,&quot;textureCube&quot;,&quot;textureCubeLod&quot;,&quot;texture2DLodEXT&quot;,&quot;texture2DProjLodEXT&quot;,&quot;textureCubeLodEXT&quot;,&quot;texture2DGradEXT&quot;,&quot;texture2DProjGradEXT&quot;,&quot;textureCubeGradEXT&quot;]},{}],435:[function(t,e,r){var n=t(&quot;./literals&quot;);e.exports=n.slice().concat([&quot;layout&quot;,&quot;centroid&quot;,&quot;smooth&quot;,&quot;case&quot;,&quot;mat2x2&quot;,&quot;mat2x3&quot;,&quot;mat2x4&quot;,&quot;mat3x2&quot;,&quot;mat3x3&quot;,&quot;mat3x4&quot;,&quot;mat4x2&quot;,&quot;mat4x3&quot;,&quot;mat4x4&quot;,&quot;uvec2&quot;,&quot;uvec3&quot;,&quot;uvec4&quot;,&quot;samplerCubeShadow&quot;,&quot;sampler2DArray&quot;,&quot;sampler2DArrayShadow&quot;,&quot;isampler2D&quot;,&quot;isampler3D&quot;,&quot;isamplerCube&quot;,&quot;isampler2DArray&quot;,&quot;usampler2D&quot;,&quot;usampler3D&quot;,&quot;usamplerCube&quot;,&quot;usampler2DArray&quot;,&quot;coherent&quot;,&quot;restrict&quot;,&quot;readonly&quot;,&quot;writeonly&quot;,&quot;resource&quot;,&quot;atomic_uint&quot;,&quot;noperspective&quot;,&quot;patch&quot;,&quot;sample&quot;,&quot;subroutine&quot;,&quot;common&quot;,&quot;partition&quot;,&quot;active&quot;,&quot;filter&quot;,&quot;image1D&quot;,&quot;image2D&quot;,&quot;image3D&quot;,&quot;imageCube&quot;,&quot;iimage1D&quot;,&quot;iimage2D&quot;,&quot;iimage3D&quot;,&quot;iimageCube&quot;,&quot;uimage1D&quot;,&quot;uimage2D&quot;,&quot;uimage3D&quot;,&quot;uimageCube&quot;,&quot;image1DArray&quot;,&quot;image2DArray&quot;,&quot;iimage1DArray&quot;,&quot;iimage2DArray&quot;,&quot;uimage1DArray&quot;,&quot;uimage2DArray&quot;,&quot;image1DShadow&quot;,&quot;image2DShadow&quot;,&quot;image1DArrayShadow&quot;,&quot;image2DArrayShadow&quot;,&quot;imageBuffer&quot;,&quot;iimageBuffer&quot;,&quot;uimageBuffer&quot;,&quot;sampler1DArray&quot;,&quot;sampler1DArrayShadow&quot;,&quot;isampler1D&quot;,&quot;isampler1DArray&quot;,&quot;usampler1D&quot;,&quot;usampler1DArray&quot;,&quot;isampler2DRect&quot;,&quot;usampler2DRect&quot;,&quot;samplerBuffer&quot;,&quot;isamplerBuffer&quot;,&quot;usamplerBuffer&quot;,&quot;sampler2DMS&quot;,&quot;isampler2DMS&quot;,&quot;usampler2DMS&quot;,&quot;sampler2DMSArray&quot;,&quot;isampler2DMSArray&quot;,&quot;usampler2DMSArray&quot;])},{&quot;./literals&quot;:436}],436:[function(t,e,r){e.exports=[&quot;precision&quot;,&quot;highp&quot;,&quot;mediump&quot;,&quot;lowp&quot;,&quot;attribute&quot;,&quot;const&quot;,&quot;uniform&quot;,&quot;varying&quot;,&quot;break&quot;,&quot;continue&quot;,&quot;do&quot;,&quot;for&quot;,&quot;while&quot;,&quot;if&quot;,&quot;else&quot;,&quot;in&quot;,&quot;out&quot;,&quot;inout&quot;,&quot;float&quot;,&quot;int&quot;,&quot;uint&quot;,&quot;void&quot;,&quot;bool&quot;,&quot;true&quot;,&quot;false&quot;,&quot;discard&quot;,&quot;return&quot;,&quot;mat2&quot;,&quot;mat3&quot;,&quot;mat4&quot;,&quot;vec2&quot;,&quot;vec3&quot;,&quot;vec4&quot;,&quot;ivec2&quot;,&quot;ivec3&quot;,&quot;ivec4&quot;,&quot;bvec2&quot;,&quot;bvec3&quot;,&quot;bvec4&quot;,&quot;sampler1D&quot;,&quot;sampler2D&quot;,&quot;sampler3D&quot;,&quot;samplerCube&quot;,&quot;sampler1DShadow&quot;,&quot;sampler2DShadow&quot;,&quot;struct&quot;,&quot;asm&quot;,&quot;class&quot;,&quot;union&quot;,&quot;enum&quot;,&quot;typedef&quot;,&quot;template&quot;,&quot;this&quot;,&quot;packed&quot;,&quot;goto&quot;,&quot;switch&quot;,&quot;default&quot;,&quot;inline&quot;,&quot;noinline&quot;,&quot;volatile&quot;,&quot;public&quot;,&quot;static&quot;,&quot;extern&quot;,&quot;external&quot;,&quot;interface&quot;,&quot;long&quot;,&quot;short&quot;,&quot;double&quot;,&quot;half&quot;,&quot;fixed&quot;,&quot;unsigned&quot;,&quot;input&quot;,&quot;output&quot;,&quot;hvec2&quot;,&quot;hvec3&quot;,&quot;hvec4&quot;,&quot;dvec2&quot;,&quot;dvec3&quot;,&quot;dvec4&quot;,&quot;fvec2&quot;,&quot;fvec3&quot;,&quot;fvec4&quot;,&quot;sampler2DRect&quot;,&quot;sampler3DRect&quot;,&quot;sampler2DRectShadow&quot;,&quot;sizeof&quot;,&quot;cast&quot;,&quot;namespace&quot;,&quot;using&quot;]},{}],437:[function(t,e,r){e.exports=[&quot;&lt;&lt;=&quot;,&quot;&gt;&gt;=&quot;,&quot;++&quot;,&quot;--&quot;,&quot;&lt;&lt;&quot;,&quot;&gt;&gt;&quot;,&quot;&lt;=&quot;,&quot;&gt;=&quot;,&quot;==&quot;,&quot;!=&quot;,&quot;&amp;&amp;&quot;,&quot;||&quot;,&quot;+=&quot;,&quot;-=&quot;,&quot;*=&quot;,&quot;/=&quot;,&quot;%=&quot;,&quot;&amp;=&quot;,&quot;^^&quot;,&quot;^=&quot;,&quot;|=&quot;,&quot;(&quot;,&quot;)&quot;,&quot;[&quot;,&quot;]&quot;,&quot;.&quot;,&quot;!&quot;,&quot;~&quot;,&quot;*&quot;,&quot;/&quot;,&quot;%&quot;,&quot;+&quot;,&quot;-&quot;,&quot;&lt;&quot;,&quot;&gt;&quot;,&quot;&amp;&quot;,&quot;^&quot;,&quot;|&quot;,&quot;?&quot;,&quot;:&quot;,&quot;=&quot;,&quot;,&quot;,&quot;;&quot;,&quot;{&quot;,&quot;}&quot;]},{}],438:[function(t,e,r){var n=t(&quot;./index&quot;);e.exports=function(t,e){var r=n(e),i=[];return i=(i=i.concat(r(t))).concat(r(null))}},{&quot;./index&quot;:432}],439:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],440:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n,i=t(&quot;is-browser&quot;);n=&quot;function&quot;==typeof r.matchMedia?!r.matchMedia(&quot;(hover: none)&quot;).matches:i,e.exports=n}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;is-browser&quot;:464}],441:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-browser&quot;);e.exports=n&amp;&amp;function(){var t=!1;try{var e=Object.defineProperty({},&quot;passive&quot;,{get:function(){t=!0}});window.addEventListener(&quot;test&quot;,null,e),window.removeEventListener(&quot;test&quot;,null,e)}catch(e){t=!1}return t}()},{&quot;is-browser&quot;:464}],442:[function(t,e,r){r.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1&lt;&lt;s)-1,c=l&gt;&gt;1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&amp;(1&lt;&lt;-u)-1,p&gt;&gt;=-u,u+=s;u&gt;0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&amp;(1&lt;&lt;-u)-1,a&gt;&gt;=-u,u+=n;u&gt;0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1&lt;&lt;c)-1,f=u&gt;&gt;1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e&lt;0||0===e&amp;&amp;1/e&lt;0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))&lt;1&amp;&amp;(o--,l*=2),(e+=o+f&gt;=1?h/l:h*Math.pow(2,1-f))*l&gt;=2&amp;&amp;(o++,l/=2),o+f&gt;=u?(s=0,o=u):o+f&gt;=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i&gt;=8;t[r+p]=255&amp;s,p+=d,s/=256,i-=8);for(o=o&lt;&lt;i|s,c+=i;c&gt;0;t[r+p]=255&amp;o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g}},{}],443:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./types&quot;);e.exports=function(t,e){var r;for(r in n)if(n[r].detect(t,e))return r}},{&quot;./types&quot;:446}],444:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;fs&quot;),i=t(&quot;path&quot;),a=t(&quot;./types&quot;),o=t(&quot;./detector&quot;);function s(t,e){var r=o(t,e);if(r in a){var n=a[r].calculate(t,e);if(!1!==n)return n.type=r,n}throw new TypeError(&quot;unsupported file type: &quot;+r+&quot; (file: &quot;+e+&quot;)&quot;)}e.exports=function(t,e){if(r.isBuffer(t))return s(t);if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;invalid invocation&quot;);var a=i.resolve(t);if(&quot;function&quot;!=typeof e)return s(function(t){var e=n.openSync(t,&quot;r&quot;),i=n.fstatSync(e).size,a=Math.min(i,524288),o=r.alloc(a);return n.readSync(e,o,0,a,0),n.closeSync(e),o}(a),a);!function(t,e){n.open(t,&quot;r&quot;,(function(i,a){if(i)return e(i);n.fstat(a,(function(i,o){if(i)return e(i);var s=o.size;if(s&lt;=0)return e(new Error(&quot;File size is not greater than 0 \u2014\u2014 &quot;+t));var l=Math.min(s,524288),c=r.alloc(l);n.read(a,c,0,l,0,(function(t){if(t)return e(t);n.close(a,(function(t){e(t,c)}))}))}))}))}(a,(function(t,r){if(t)return e(t);var n;try{n=s(r,a)}catch(e){t=e}e(t,n)}))},e.exports.types=Object.keys(a)}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;./detector&quot;:443,&quot;./types&quot;:446,buffer:111,fs:109,path:507}],445:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){return r=r||0,t[&quot;readUInt&quot;+e+(n?&quot;BE&quot;:&quot;LE&quot;)].call(t,r)}},{}],446:[function(t,e,r){&quot;use strict&quot;;var n={bmp:t(&quot;./types/bmp&quot;),cur:t(&quot;./types/cur&quot;),dds:t(&quot;./types/dds&quot;),gif:t(&quot;./types/gif&quot;),icns:t(&quot;./types/icns&quot;),ico:t(&quot;./types/ico&quot;),jpg:t(&quot;./types/jpg&quot;),png:t(&quot;./types/png&quot;),psd:t(&quot;./types/psd&quot;),svg:t(&quot;./types/svg&quot;),tiff:t(&quot;./types/tiff&quot;),webp:t(&quot;./types/webp&quot;)};e.exports=n},{&quot;./types/bmp&quot;:447,&quot;./types/cur&quot;:448,&quot;./types/dds&quot;:449,&quot;./types/gif&quot;:450,&quot;./types/icns&quot;:451,&quot;./types/ico&quot;:452,&quot;./types/jpg&quot;:453,&quot;./types/png&quot;:454,&quot;./types/psd&quot;:455,&quot;./types/svg&quot;:456,&quot;./types/tiff&quot;:457,&quot;./types/webp&quot;:458}],447:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return&quot;BM&quot;===t.toString(&quot;ascii&quot;,0,2)},calculate:function(t){return{width:t.readUInt32LE(18),height:Math.abs(t.readInt32LE(22))}}}},{}],448:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return 0===t.readUInt16LE(0)&amp;&amp;2===t.readUInt16LE(2)},calculate:t(&quot;./ico&quot;).calculate}},{&quot;./ico&quot;:452}],449:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return 542327876===t.readUInt32LE(0)},calculate:function(t){return{height:t.readUInt32LE(12),width:t.readUInt32LE(16)}}}},{}],450:[function(t,e,r){&quot;use strict&quot;;var n=/^GIF8[79]a/;e.exports={detect:function(t){var e=t.toString(&quot;ascii&quot;,0,6);return n.test(e)},calculate:function(t){return{width:t.readUInt16LE(6),height:t.readUInt16LE(8)}}}},{}],451:[function(t,e,r){&quot;use strict&quot;;var n={ICON:32,&quot;ICN#&quot;:32,&quot;icm#&quot;:16,icm4:16,icm8:16,&quot;ics#&quot;:16,ics4:16,ics8:16,is32:16,s8mk:16,icp4:16,icl4:32,icl8:32,il32:32,l8mk:32,icp5:32,ic11:32,ich4:48,ich8:48,ih32:48,h8mk:48,icp6:64,ic12:32,it32:128,t8mk:128,ic07:128,ic08:256,ic13:256,ic09:512,ic14:512,ic10:1024};function i(t,e){var r=e+4;return[t.toString(&quot;ascii&quot;,e,r),t.readUInt32BE(r)]}function a(t){var e=n[t];return{width:e,height:e,type:t}}e.exports={detect:function(t){return&quot;icns&quot;===t.toString(&quot;ascii&quot;,0,4)},calculate:function(t){var e,r,n,o=t.length,s=8,l=t.readUInt32BE(4);if(r=a((e=i(t,s))[0]),(s+=e[1])===l)return r;for(n={width:r.width,height:r.height,images:[r]};s&lt;l&amp;&amp;s&lt;o;)r=a((e=i(t,s))[0]),s+=e[1],n.images.push(r);return n}}},{}],452:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=t.readUInt8(e);return 0===r?256:r}function i(t,e){var r=6+16*e;return{width:n(t,r),height:n(t,r+1)}}e.exports={detect:function(t){return 0===t.readUInt16LE(0)&amp;&amp;1===t.readUInt16LE(2)},calculate:function(t){var e,r=t.readUInt16LE(4),n=i(t,0);if(1===r)return n;for(n.images=[{width:n.width,height:n.height}],e=1;e&lt;r;e+=1)n.images.push(i(t,e));return n}}},{}],453:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../readUInt&quot;);function i(t){return&quot;45786966&quot;===t.toString(&quot;hex&quot;,2,6)}function a(t,e){return{height:t.readUInt16BE(e),width:t.readUInt16BE(e+2)}}function o(t,e){var r=t.slice(2,e),i=r.toString(&quot;hex&quot;,6,8),a=&quot;4d4d&quot;===i;if(a||&quot;4949&quot;===i)return function(t,e){for(var r,i,a=n(t,16,14,e),o=0;o&lt;a;o++){if(i=(r=16+12*o)+12,r&gt;t.length)return;var s=t.slice(r,i);if(274===n(s,16,0,e)){if(3!==n(s,16,2,e))return;if(1!==n(s,32,4,e))return;return n(s,16,8,e)}}}(r,a)}function s(t,e){if(e&gt;t.length)throw new TypeError(&quot;Corrupt JPG, exceeded buffer limits&quot;);if(255!==t[e])throw new TypeError(&quot;Invalid JPG, marker table corrupted&quot;)}e.exports={detect:function(t){return&quot;ffd8&quot;===t.toString(&quot;hex&quot;,0,2)},calculate:function(t){var e,r,n;for(t=t.slice(4);t.length;){if(r=t.readUInt16BE(0),i(t)&amp;&amp;(e=o(t,r)),s(t,r),192===(n=t[r+1])||193===n||194===n){var l=a(t,r+5);return e?{width:l.width,height:l.height,orientation:e}:l}t=t.slice(r+2)}throw new TypeError(&quot;Invalid JPG, no size found&quot;)}}},{&quot;../readUInt&quot;:445}],454:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){if(&quot;PNG\r\n\x1a\n&quot;===t.toString(&quot;ascii&quot;,1,8)){var e=t.toString(&quot;ascii&quot;,12,16);if(&quot;CgBI&quot;===e&amp;&amp;(e=t.toString(&quot;ascii&quot;,28,32)),&quot;IHDR&quot;!==e)throw new TypeError(&quot;invalid png&quot;);return!0}},calculate:function(t){return&quot;CgBI&quot;===t.toString(&quot;ascii&quot;,12,16)?{width:t.readUInt32BE(32),height:t.readUInt32BE(36)}:{width:t.readUInt32BE(16),height:t.readUInt32BE(20)}}}},{}],455:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return&quot;8BPS&quot;===t.toString(&quot;ascii&quot;,0,4)},calculate:function(t){return{width:t.readUInt32BE(18),height:t.readUInt32BE(14)}}}},{}],456:[function(t,e,r){&quot;use strict&quot;;var n=/&lt;svg\s([^&gt;&quot;']|&quot;[^&quot;]*&quot;|'[^']*')*&gt;/;var i={root:n,width:/\swidth=(['&quot;])([^%]+?)\1/,height:/\sheight=(['&quot;])([^%]+?)\1/,viewbox:/\sviewBox=(['&quot;])(.+?)\1/},a={cm:96/2.54,mm:96/2.54/10,m:96/2.54*100,pt:96/72,pc:96/72/12,em:16,ex:8};function o(t){var e=/([0-9.]+)([a-z]*)/.exec(t);if(e)return Math.round(parseFloat(e[1])*(a[e[2]]||1))}function s(t){var e=t.split(&quot; &quot;);return{width:o(e[2]),height:o(e[3])}}e.exports={detect:function(t){return n.test(t)},calculate:function(t){var e=t.toString(&quot;utf8&quot;).match(i.root);if(e){var r=function(t){var e=t.match(i.width),r=t.match(i.height),n=t.match(i.viewbox);return{width:e&amp;&amp;o(e[2]),height:r&amp;&amp;o(r[2]),viewbox:n&amp;&amp;s(n[2])}}(e[0]);if(r.width&amp;&amp;r.height)return function(t){return{width:t.width,height:t.height}}(r);if(r.viewbox)return function(t){var e=t.viewbox.width/t.viewbox.height;return t.width?{width:t.width,height:Math.floor(t.width/e)}:t.height?{width:Math.floor(t.height*e),height:t.height}:{width:t.viewbox.width,height:t.viewbox.height}}(r)}throw new TypeError(&quot;invalid svg&quot;)}}},{}],457:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;fs&quot;),i=t(&quot;../readUInt&quot;);function a(t,e){var r=i(t,16,8,e);return(i(t,16,10,e)&lt;&lt;16)+r}function o(t){if(t.length&gt;24)return t.slice(12)}e.exports={detect:function(t){var e=t.toString(&quot;hex&quot;,0,4);return&quot;49492a00&quot;===e||&quot;4d4d002a&quot;===e},calculate:function(t,e){if(!e)throw new TypeError(&quot;Tiff doesn't support buffer&quot;);var s=&quot;BE&quot;===function(t){var e=t.toString(&quot;ascii&quot;,0,2);return&quot;II&quot;===e?&quot;LE&quot;:&quot;MM&quot;===e?&quot;BE&quot;:void 0}(t),l=function(t,e){for(var r,n,s,l={};t&amp;&amp;t.length&amp;&amp;(r=i(t,16,0,e),n=i(t,16,2,e),s=i(t,32,4,e),0!==r);)1!==s||3!==n&amp;&amp;4!==n||(l[r]=a(t,e)),t=o(t);return l}(function(t,e,a){var o=i(t,32,4,a),s=1024,l=n.statSync(e).size;o+s&gt;l&amp;&amp;(s=l-o-10);var c=r.alloc(s),u=n.openSync(e,&quot;r&quot;);return n.readSync(u,c,0,s,o),c.slice(2)}(t,e,s),s),c=l[256],u=l[257];if(!c||!u)throw new TypeError(&quot;Invalid Tiff, missing tags&quot;);return{width:c,height:u}}}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;../readUInt&quot;:445,buffer:111,fs:109}],458:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){var e=&quot;RIFF&quot;===t.toString(&quot;ascii&quot;,0,4),r=&quot;WEBP&quot;===t.toString(&quot;ascii&quot;,8,12),n=&quot;VP8&quot;===t.toString(&quot;ascii&quot;,12,15);return e&amp;&amp;r&amp;&amp;n},calculate:function(t){var e=t.toString(&quot;ascii&quot;,12,16);if(t=t.slice(20,30),&quot;VP8X&quot;===e){var r=t[0];return!(!(0==(192&amp;r))||!(0==(1&amp;r)))&amp;&amp;function(t){return{width:1+t.readUIntLE(4,3),height:1+t.readUIntLE(7,3)}}(t)}if(&quot;VP8 &quot;===e&amp;&amp;47!==t[0])return function(t){return{width:16383&amp;t.readInt16LE(6),height:16383&amp;t.readInt16LE(8)}}(t);var n=t.toString(&quot;hex&quot;,3,6);return&quot;VP8L&quot;===e&amp;&amp;&quot;9d012a&quot;!==n&amp;&amp;function(t){return{width:1+((63&amp;t[2])&lt;&lt;8|t[1]),height:1+((15&amp;t[4])&lt;&lt;10|t[3]&lt;&lt;2|(192&amp;t[2])&gt;&gt;6)}}(t)}}},{}],459:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.length;if(0===r)throw new Error(&quot;Must have at least d+1 points&quot;);var i=t[0].length;if(r&lt;=i)throw new Error(&quot;Must input at least d+1 points&quot;);var o=t.slice(0,i+1),s=n.apply(void 0,o);if(0===s)throw new Error(&quot;Input not in general position&quot;);for(var l=new Array(i+1),u=0;u&lt;=i;++u)l[u]=u;s&lt;0&amp;&amp;(l[0]=1,l[1]=0);var f=new a(l,new Array(i+1),!1),h=f.adjacent,p=new Array(i+2);for(u=0;u&lt;=i;++u){for(var d=l.slice(),g=0;g&lt;=i;++g)g===u&amp;&amp;(d[g]=-1);var m=d[0];d[0]=d[1],d[1]=m;var v=new a(d,new Array(i+1),!0);h[u]=v,p[u]=v}p[i+1]=f;for(u=0;u&lt;=i;++u){d=h[u].vertices;var y=h[u].adjacent;for(g=0;g&lt;=i;++g){var x=d[g];if(x&lt;0)y[g]=f;else for(var b=0;b&lt;=i;++b)h[b].vertices.indexOf(x)&lt;0&amp;&amp;(y[g]=h[b])}}var _=new c(i,o,p),w=!!e;for(u=i+1;u&lt;r;++u)_.insert(t[u],w);return _.boundary()};var n=t(&quot;robust-orientation&quot;),i=t(&quot;simplicial-complex&quot;).compareCells;function a(t,e,r){this.vertices=t,this.adjacent=e,this.boundary=r,this.lastVisited=-1}function o(t,e,r){this.vertices=t,this.cell=e,this.index=r}function s(t,e){return i(t.vertices,e.vertices)}a.prototype.flip=function(){var t=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=t;var e=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=e};var l=[];function c(t,e,r){this.dimension=t,this.vertices=e,this.simplices=r,this.interior=r.filter((function(t){return!t.boundary})),this.tuple=new Array(t+1);for(var i=0;i&lt;=t;++i)this.tuple[i]=this.vertices[i];var a=l[t];a||(a=l[t]=function(t){for(var e=[&quot;function orient(){var tuple=this.tuple;return test(&quot;],r=0;r&lt;=t;++r)r&gt;0&amp;&amp;e.push(&quot;,&quot;),e.push(&quot;tuple[&quot;,r,&quot;]&quot;);e.push(&quot;)}return orient&quot;);var i=new Function(&quot;test&quot;,e.join(&quot;&quot;)),a=n[t+1];return a||(a=n),i(a)}(t)),this.orient=a}var u=c.prototype;u.handleBoundaryDegeneracy=function(t,e){var r=this.dimension,n=this.vertices.length-1,i=this.tuple,a=this.vertices,o=[t];for(t.lastVisited=-n;o.length&gt;0;){(t=o.pop()).vertices;for(var s=t.adjacent,l=0;l&lt;=r;++l){var c=s[l];if(c.boundary&amp;&amp;!(c.lastVisited&lt;=-n)){for(var u=c.vertices,f=0;f&lt;=r;++f){var h=u[f];i[f]=h&lt;0?e:a[h]}var p=this.orient();if(p&gt;0)return c;c.lastVisited=-n,0===p&amp;&amp;o.push(c)}}}return null},u.walk=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,a=this.tuple,o=e?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[o];t:for(;!s.boundary;){for(var l=s.vertices,c=s.adjacent,u=0;u&lt;=n;++u)a[u]=i[l[u]];s.lastVisited=r;for(u=0;u&lt;=n;++u){var f=c[u];if(!(f.lastVisited&gt;=r)){var h=a[u];a[u]=t;var p=this.orient();if(a[u]=h,p&lt;0){s=f;continue t}f.boundary?f.lastVisited=-r:f.lastVisited=r}}return}return s},u.addPeaks=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,l=this.tuple,c=this.interior,u=this.simplices,f=[e];e.lastVisited=r,e.vertices[e.vertices.indexOf(-1)]=r,e.boundary=!1,c.push(e);for(var h=[];f.length&gt;0;){var p=(e=f.pop()).vertices,d=e.adjacent,g=p.indexOf(r);if(!(g&lt;0))for(var m=0;m&lt;=n;++m)if(m!==g){var v=d[m];if(v.boundary&amp;&amp;!(v.lastVisited&gt;=r)){var y=v.vertices;if(v.lastVisited!==-r){for(var x=0,b=0;b&lt;=n;++b)y[b]&lt;0?(x=b,l[b]=t):l[b]=i[y[b]];if(this.orient()&gt;0){y[x]=r,v.boundary=!1,c.push(v),f.push(v),v.lastVisited=r;continue}v.lastVisited=-r}var _=v.adjacent,w=p.slice(),T=d.slice(),k=new a(w,T,!0);u.push(k);var M=_.indexOf(e);if(!(M&lt;0)){_[M]=k,T[g]=v,w[m]=-1,T[m]=e,d[m]=k,k.flip();for(b=0;b&lt;=n;++b){var A=w[b];if(!(A&lt;0||A===r)){for(var S=new Array(n-1),E=0,C=0;C&lt;=n;++C){var L=w[C];L&lt;0||C===b||(S[E++]=L)}h.push(new o(S,k,b))}}}}}}h.sort(s);for(m=0;m+1&lt;h.length;m+=2){var I=h[m],P=h[m+1],z=I.index,O=P.index;z&lt;0||O&lt;0||(I.cell.adjacent[I.index]=P.cell,P.cell.adjacent[P.index]=I.cell)}},u.insert=function(t,e){var r=this.vertices;r.push(t);var n=this.walk(t,e);if(n){for(var i=this.dimension,a=this.tuple,o=0;o&lt;=i;++o){var s=n.vertices[o];a[o]=s&lt;0?t:r[s]}var l=this.orient(a);l&lt;0||(0!==l||(n=this.handleBoundaryDegeneracy(n,t)))&amp;&amp;this.addPeaks(t,n)}},u.boundary=function(){for(var t=this.dimension,e=[],r=this.simplices,n=r.length,i=0;i&lt;n;++i){var a=r[i];if(a.boundary){for(var o=new Array(t),s=a.vertices,l=0,c=0,u=0;u&lt;=t;++u)s[u]&gt;=0?o[l++]=s[u]:c=1&amp;u;if(c===(1&amp;t)){var f=o[0];o[0]=o[1],o[1]=f}e.push(o)}}return e}},{&quot;robust-orientation&quot;:548,&quot;simplicial-complex&quot;:558}],460:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;);function i(t,e,r,n,i){this.mid=t,this.left=e,this.right=r,this.leftPoints=n,this.rightPoints=i,this.count=(e?e.count:0)+(r?r.count:0)+n.length}e.exports=function(t){if(!t||0===t.length)return new v(null);return new v(m(t))};var a=i.prototype;function o(t,e){t.mid=e.mid,t.left=e.left,t.right=e.right,t.leftPoints=e.leftPoints,t.rightPoints=e.rightPoints,t.count=e.count}function s(t,e){var r=m(e);t.mid=r.mid,t.left=r.left,t.right=r.right,t.leftPoints=r.leftPoints,t.rightPoints=r.rightPoints,t.count=r.count}function l(t,e){var r=t.intervals([]);r.push(e),s(t,r)}function c(t,e){var r=t.intervals([]),n=r.indexOf(e);return n&lt;0?0:(r.splice(n,1),s(t,r),1)}function u(t,e,r){for(var n=0;n&lt;t.length&amp;&amp;t[n][0]&lt;=e;++n){var i=r(t[n]);if(i)return i}}function f(t,e,r){for(var n=t.length-1;n&gt;=0&amp;&amp;t[n][1]&gt;=e;--n){var i=r(t[n]);if(i)return i}}function h(t,e){for(var r=0;r&lt;t.length;++r){var n=e(t[r]);if(n)return n}}function p(t,e){return t-e}function d(t,e){var r=t[0]-e[0];return r||t[1]-e[1]}function g(t,e){var r=t[1]-e[1];return r||t[0]-e[0]}function m(t){if(0===t.length)return null;for(var e=[],r=0;r&lt;t.length;++r)e.push(t[r][0],t[r][1]);e.sort(p);var n=e[e.length&gt;&gt;1],a=[],o=[],s=[];for(r=0;r&lt;t.length;++r){var l=t[r];l[1]&lt;n?a.push(l):n&lt;l[0]?o.push(l):s.push(l)}var c=s,u=s.slice();return c.sort(d),u.sort(g),new i(n,m(a),m(o),c,u)}function v(t){this.root=t}a.intervals=function(t){return t.push.apply(t,this.leftPoints),this.left&amp;&amp;this.left.intervals(t),this.right&amp;&amp;this.right.intervals(t),t},a.insert=function(t){var e=this.count-this.leftPoints.length;if(this.count+=1,t[1]&lt;this.mid)this.left?4*(this.left.count+1)&gt;3*(e+1)?l(this,t):this.left.insert(t):this.left=m([t]);else if(t[0]&gt;this.mid)this.right?4*(this.right.count+1)&gt;3*(e+1)?l(this,t):this.right.insert(t):this.right=m([t]);else{var r=n.ge(this.leftPoints,t,d),i=n.ge(this.rightPoints,t,g);this.leftPoints.splice(r,0,t),this.rightPoints.splice(i,0,t)}},a.remove=function(t){var e=this.count-this.leftPoints;if(t[1]&lt;this.mid)return this.left?4*(this.right?this.right.count:0)&gt;3*(e-1)?c(this,t):2===(s=this.left.remove(t))?(this.left=null,this.count-=1,1):(1===s&amp;&amp;(this.count-=1),s):0;if(t[0]&gt;this.mid)return this.right?4*(this.left?this.left.count:0)&gt;3*(e-1)?c(this,t):2===(s=this.right.remove(t))?(this.right=null,this.count-=1,1):(1===s&amp;&amp;(this.count-=1),s):0;if(1===this.count)return this.leftPoints[0]===t?2:0;if(1===this.leftPoints.length&amp;&amp;this.leftPoints[0]===t){if(this.left&amp;&amp;this.right){for(var r=this,i=this.left;i.right;)r=i,i=i.right;if(r===this)i.right=this.right;else{var a=this.left,s=this.right;r.count-=i.count,r.right=i.left,i.left=a,i.right=s}o(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?o(this,this.left):o(this,this.right);return 1}for(a=n.ge(this.leftPoints,t,d);a&lt;this.leftPoints.length&amp;&amp;this.leftPoints[a][0]===t[0];++a)if(this.leftPoints[a]===t){this.count-=1,this.leftPoints.splice(a,1);for(s=n.ge(this.rightPoints,t,g);s&lt;this.rightPoints.length&amp;&amp;this.rightPoints[s][1]===t[1];++s)if(this.rightPoints[s]===t)return this.rightPoints.splice(s,1),1}return 0},a.queryPoint=function(t,e){if(t&lt;this.mid){if(this.left)if(r=this.left.queryPoint(t,e))return r;return u(this.leftPoints,t,e)}if(t&gt;this.mid){var r;if(this.right)if(r=this.right.queryPoint(t,e))return r;return f(this.rightPoints,t,e)}return h(this.leftPoints,e)},a.queryInterval=function(t,e,r){var n;if(t&lt;this.mid&amp;&amp;this.left&amp;&amp;(n=this.left.queryInterval(t,e,r)))return n;if(e&gt;this.mid&amp;&amp;this.right&amp;&amp;(n=this.right.queryInterval(t,e,r)))return n;return e&lt;this.mid?u(this.leftPoints,e,r):t&gt;this.mid?f(this.rightPoints,t,r):h(this.leftPoints,r)};var y=v.prototype;y.insert=function(t){this.root?this.root.insert(t):this.root=new i(t[0],null,null,[t],[t])},y.remove=function(t){if(this.root){var e=this.root.remove(t);return 2===e&amp;&amp;(this.root=null),0!==e}return!1},y.queryPoint=function(t,e){if(this.root)return this.root.queryPoint(t,e)},y.queryInterval=function(t,e,r){if(t&lt;=e&amp;&amp;this.root)return this.root.queryInterval(t,e,r)},Object.defineProperty(y,&quot;count&quot;,{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(y,&quot;intervals&quot;,{get:function(){return this.root?this.root.intervals([]):[]}})},{&quot;binary-search-bounds&quot;:461}],461:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],462:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e=e||new Array(t.length);for(var r=0;r&lt;t.length;++r)e[t[r]]=r;return e}},{}],463:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=r;return e}},{}],464:[function(t,e,r){e.exports=!0},{}],465:[function(t,e,r){function n(t){return!!t.constructor&amp;&amp;&quot;function&quot;==typeof t.constructor.isBuffer&amp;&amp;t.constructor.isBuffer(t)}
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh &lt;https://feross.org&gt;
 * @license  MIT
 */
e.exports=function(t){return null!=t&amp;&amp;(n(t)||function(t){return&quot;function&quot;==typeof t.readFloatLE&amp;&amp;&quot;function&quot;==typeof t.slice&amp;&amp;n(t.slice(0,0))}(t)||!!t._isBuffer)}},{}],466:[function(t,e,r){&quot;use strict&quot;;e.exports=&quot;undefined&quot;!=typeof navigator&amp;&amp;(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))},{}],467:[function(t,e,r){&quot;use strict&quot;;e.exports=a,e.exports.isMobile=a,e.exports.default=a;var n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function a(t){t||(t={});var e=t.ua;if(e||&quot;undefined&quot;==typeof navigator||(e=navigator.userAgent),e&amp;&amp;e.headers&amp;&amp;&quot;string&quot;==typeof e.headers[&quot;user-agent&quot;]&amp;&amp;(e=e.headers[&quot;user-agent&quot;]),&quot;string&quot;!=typeof e)return!1;var r=t.tablet?i.test(e):n.test(e);return!r&amp;&amp;t.tablet&amp;&amp;t.featureDetect&amp;&amp;navigator&amp;&amp;navigator.maxTouchPoints&gt;1&amp;&amp;-1!==e.indexOf(&quot;Macintosh&quot;)&amp;&amp;-1!==e.indexOf(&quot;Safari&quot;)&amp;&amp;(r=!0),r}},{}],468:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=typeof t;return null!==t&amp;&amp;(&quot;object&quot;===e||&quot;function&quot;===e)}},{}],469:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString;e.exports=function(t){var e;return&quot;[object Object]&quot;===n.call(t)&amp;&amp;(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))}},{}],470:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e,r=t.length,n=0;n&lt;r;n++)if(((e=t.charCodeAt(n))&lt;9||e&gt;13)&amp;&amp;32!==e&amp;&amp;133!==e&amp;&amp;160!==e&amp;&amp;5760!==e&amp;&amp;6158!==e&amp;&amp;(e&lt;8192||e&gt;8205)&amp;&amp;8232!==e&amp;&amp;8233!==e&amp;&amp;8239!==e&amp;&amp;8287!==e&amp;&amp;8288!==e&amp;&amp;12288!==e&amp;&amp;65279!==e)return!1;return!0}},{}],471:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return&quot;string&quot;==typeof t&amp;&amp;(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&amp;&amp;/[\dz]$/i.test(t)&amp;&amp;t.length&gt;4))}},{}],472:[function(t,e,r){e.exports=function(t,e,r){return t*(1-r)+e*r}},{}],473:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?e.exports=n():(t=t||self).mapboxgl=n()}(this,(function(){&quot;use strict&quot;;var t,e,r;function n(n,i){if(t)if(e){var a=&quot;var sharedChunk = {}; (&quot;+t+&quot;)(sharedChunk); (&quot;+e+&quot;)(sharedChunk);&quot;,o={};t(o),(r=i(o)).workerUrl=window.URL.createObjectURL(new Blob([a],{type:&quot;text/javascript&quot;}))}else e=i;else t=i}return n(0,(function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r=n;function n(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}n.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},n.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},n.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},n.prototype.solveCurveX=function(t,e){var r,n,i,a,o;for(void 0===e&amp;&amp;(e=1e-6),i=t,o=0;o&lt;8;o++){if(a=this.sampleCurveX(i)-t,Math.abs(a)&lt;e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)&lt;1e-6)break;i-=a/s}if((i=t)&lt;(r=0))return r;if(i&gt;(n=1))return n;for(;r&lt;n;){if(a=this.sampleCurveX(i),Math.abs(a-t)&lt;e)return i;t&gt;a?r=i:n=i,i=.5*(n-r)+r}return i},n.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var i=a;function a(t,e){this.x=t,this.y=e}function o(t,e,n,i){var a=new r(t,e,n,i);return function(t){return a.solve(t)}}a.prototype={clone:function(){return new a(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&amp;&amp;this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=r*this.x+e*this.y;return this.x=e*this.x-r*this.y,this.y=n,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),i=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=e.x+r*(this.x-e.x)-n*(this.y-e.y),this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},a.convert=function(t){return t instanceof a?t:Array.isArray(t)?new a(t[0],t[1]):t};var s=o(.25,.1,.25,1);function l(t,e,r){return Math.min(r,Math.max(e,t))}function c(t,e,r){var n=r-e,i=((t-e)%n+n)%n+e;return i===e?r:i}function u(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}var f=1;function h(){return f++}function p(){return function t(e){return e?(e^16*Math.random()&gt;&gt;e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function d(t){return!!t&amp;&amp;/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function g(t,e){t.forEach((function(t){e[t]&amp;&amp;(e[t]=e[t].bind(e))}))}function m(t,e){return-1!==t.indexOf(e,t.length-e.length)}function v(t,e,r){var n={};for(var i in t)n[i]=e.call(r||this,t[i],i,t);return n}function y(t,e,r){var n={};for(var i in t)e.call(r||this,t[i],i,t)&amp;&amp;(n[i]=t[i]);return n}function x(t){return Array.isArray(t)?t.map(x):&quot;object&quot;==typeof t&amp;&amp;t?v(t,x):t}var b={};function _(t){b[t]||(&quot;undefined&quot;!=typeof console&amp;&amp;console.warn(t),b[t]=!0)}function w(t,e,r){return(r.y-t.y)*(e.x-t.x)&gt;(e.y-t.y)*(r.x-t.x)}function T(t){for(var e=0,r=0,n=t.length,i=n-1,a=void 0,o=void 0;r&lt;n;i=r++)e+=((o=t[i]).x-(a=t[r]).x)*(a.y+o.y);return e}function k(){return&quot;undefined&quot;!=typeof WorkerGlobalScope&amp;&amp;&quot;undefined&quot;!=typeof self&amp;&amp;self instanceof WorkerGlobalScope}function M(t){var e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)&lt;&gt;@\,;\:\\&quot;\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)&lt;&gt;@\,;\:\\&quot;\/\[\]\?\=\{\}\x7F]+)|(?:\&quot;((?:[^&quot;\\]|\\.)*)\&quot;)))?/g,(function(t,r,n,i){var a=n||i;return e[r]=!a||a.toLowerCase(),&quot;&quot;})),e[&quot;max-age&quot;]){var r=parseInt(e[&quot;max-age&quot;],10);isNaN(r)?delete e[&quot;max-age&quot;]:e[&quot;max-age&quot;]=r}return e}var A=null;function S(t){if(null==A){var e=t.navigator?t.navigator.userAgent:null;A=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match(&quot;Safari&quot;)&amp;&amp;!e.match(&quot;Chrome&quot;)))}return A}function E(t){try{var e=self[t];return e.setItem(&quot;_mapbox_test_&quot;,1),e.removeItem(&quot;_mapbox_test_&quot;),!0}catch(t){return!1}}var C,L,I,P,z=self.performance&amp;&amp;self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),O=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,D=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,R={now:z,frame:function(t){var e=O(t);return{cancel:function(){return D(e)}}},getImageData:function(t,e){void 0===e&amp;&amp;(e=0);var r=self.document.createElement(&quot;canvas&quot;),n=r.getContext(&quot;2d&quot;);if(!n)throw new Error(&quot;failed to create canvas 2d context&quot;);return r.width=t.width,r.height=t.height,n.drawImage(t,0,0,t.width,t.height),n.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return C||(C=self.document.createElement(&quot;a&quot;)),C.href=t,C.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&amp;&amp;(null==L&amp;&amp;(L=self.matchMedia(&quot;(prefers-reduced-motion: reduce)&quot;)),L.matches)}},F={API_URL:&quot;https://api.mapbox.com&quot;,get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf(&quot;https://api.mapbox.cn&quot;)?&quot;https://events.mapbox.cn/events/v2&quot;:0===this.API_URL.indexOf(&quot;https://api.mapbox.com&quot;)?&quot;https://events.mapbox.com/events/v2&quot;:null:null},FEEDBACK_URL:&quot;https://apps.mapbox.com/feedback&quot;,REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},B={supported:!1,testSupport:function(t){!N&amp;&amp;P&amp;&amp;(j?U(t):I=t)}},N=!1,j=!1;function U(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,P),t.isContextLost())return;B.supported=!0}catch(t){}t.deleteTexture(e),N=!0}self.document&amp;&amp;((P=self.document.createElement(&quot;img&quot;)).onload=function(){I&amp;&amp;U(I),I=null,j=!0},P.onerror=function(){N=!0,I=null},P.src=&quot;data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=&quot;);var V=&quot;01&quot;,q=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function H(t){return 0===t.indexOf(&quot;mapbox:&quot;)}q.prototype._createSkuToken=function(){var t=function(){for(var t=&quot;&quot;,e=0;e&lt;10;e++)t+=&quot;0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ&quot;[Math.floor(62*Math.random())];return{token:[&quot;1&quot;,V,t].join(&quot;&quot;),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},q.prototype._isSkuTokenExpired=function(){return Date.now()&gt;this._skuTokenExpiresAt},q.prototype.transformRequest=function(t,e){return this._transformRequestFn&amp;&amp;this._transformRequestFn(t,e)||{url:t}},q.prototype.normalizeStyleURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/styles/v1&quot;+r.path,this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeGlyphsURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/fonts/v1&quot;+r.path,this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeSourceURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/v4/&quot;+r.authority+&quot;.json&quot;,r.params.push(&quot;secure&quot;),this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeSpriteURL=function(t,e,r,n){var i=X(t);return H(t)?(i.path=&quot;/styles/v1&quot;+i.path+&quot;/sprite&quot;+e+r,this._makeAPIURL(i,this._customAccessToken||n)):(i.path+=&quot;&quot;+e+r,Z(i))},q.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&amp;&amp;this._createSkuToken(),t&amp;&amp;!H(t))return t;var r=X(t);r.path=r.path.replace(/(\.(png|jpg)\d*)(?=$)/,(R.devicePixelRatio&gt;=2||512===e?&quot;@2x&quot;:&quot;&quot;)+(B.supported?&quot;.webp&quot;:&quot;$1&quot;)),r.path=r.path.replace(/^.+\/v4\//,&quot;/&quot;),r.path=&quot;/v4&quot;+r.path;var n=this._customAccessToken||function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var n=r[e].match(/^access_token=(.*)$/);if(n)return n[1]}return null}(r.params)||F.ACCESS_TOKEN;return F.REQUIRE_ACCESS_TOKEN&amp;&amp;n&amp;&amp;this._skuToken&amp;&amp;r.params.push(&quot;sku=&quot;+this._skuToken),this._makeAPIURL(r,n)},q.prototype.canonicalizeTileURL=function(t,e){var r=X(t);if(!r.path.match(/(^\/v4\/)/)||!r.path.match(/\.[\w]+$/))return t;var n=&quot;mapbox://tiles/&quot;;n+=r.path.replace(&quot;/v4/&quot;,&quot;&quot;);var i=r.params;return e&amp;&amp;(i=i.filter((function(t){return!t.match(/^access_token=/)}))),i.length&amp;&amp;(n+=&quot;?&quot;+i.join(&quot;&amp;&quot;)),n},q.prototype.canonicalizeTileset=function(t,e){for(var r=!!e&amp;&amp;H(e),n=[],i=0,a=t.tiles||[];i&lt;a.length;i+=1){var o=a[i];Y(o)?n.push(this.canonicalizeTileURL(o,r)):n.push(o)}return n},q.prototype._makeAPIURL=function(t,e){var r=&quot;See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes&quot;,n=X(F.API_URL);if(t.protocol=n.protocol,t.authority=n.authority,&quot;/&quot;!==n.path&amp;&amp;(t.path=&quot;&quot;+n.path+t.path),!F.REQUIRE_ACCESS_TOKEN)return Z(t);if(!(e=e||F.ACCESS_TOKEN))throw new Error(&quot;An API access token is required to use Mapbox GL. &quot;+r);if(&quot;s&quot;===e[0])throw new Error(&quot;Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). &quot;+r);return t.params=t.params.filter((function(t){return-1===t.indexOf(&quot;access_token&quot;)})),t.params.push(&quot;access_token=&quot;+e),Z(t)};var G=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Y(t){return G.test(t)}var W=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function X(t){var e=t.match(W);if(!e)throw new Error(&quot;Unable to parse URL object&quot;);return{protocol:e[1],authority:e[2],path:e[3]||&quot;/&quot;,params:e[4]?e[4].split(&quot;&amp;&quot;):[]}}function Z(t){var e=t.params.length?&quot;?&quot;+t.params.join(&quot;&amp;&quot;):&quot;&quot;;return t.protocol+&quot;://&quot;+t.authority+t.path+e}function J(t){if(!t)return null;var e=t.split(&quot;.&quot;);if(!e||3!==e.length)return null;try{return JSON.parse(decodeURIComponent(self.atob(e[1]).split(&quot;&quot;).map((function(t){return&quot;%&quot;+(&quot;00&quot;+t.charCodeAt(0).toString(16)).slice(-2)})).join(&quot;&quot;)))}catch(t){return null}}var K=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};K.prototype.getStorageKey=function(t){var e,r=J(F.ACCESS_TOKEN);return e=r&amp;&amp;r.u?self.btoa(encodeURIComponent(r.u).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(Number(&quot;0x&quot;+e))}))):F.ACCESS_TOKEN||&quot;&quot;,t?&quot;mapbox.eventData.&quot;+t+&quot;:&quot;+e:&quot;mapbox.eventData:&quot;+e},K.prototype.fetchEventData=function(){var t=E(&quot;localStorage&quot;),e=this.getStorageKey(),r=this.getStorageKey(&quot;uuid&quot;);if(t)try{var n=self.localStorage.getItem(e);n&amp;&amp;(this.eventData=JSON.parse(n));var i=self.localStorage.getItem(r);i&amp;&amp;(this.anonId=i)}catch(t){_(&quot;Unable to read from LocalStorage&quot;)}},K.prototype.saveEventData=function(){var t=E(&quot;localStorage&quot;),e=this.getStorageKey(),r=this.getStorageKey(&quot;uuid&quot;);if(t)try{self.localStorage.setItem(r,this.anonId),Object.keys(this.eventData).length&gt;=1&amp;&amp;self.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){_(&quot;Unable to write to LocalStorage&quot;)}},K.prototype.processRequests=function(t){},K.prototype.postEvent=function(t,e,r,n){var i=this;if(F.EVENTS_URL){var a=X(F.EVENTS_URL);a.params.push(&quot;access_token=&quot;+(n||F.ACCESS_TOKEN||&quot;&quot;));var o={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:&quot;mapbox-gl-js&quot;,sdkVersion:&quot;1.10.1&quot;,skuId:V,userId:this.anonId},s=e?u(o,e):o,l={url:Z(a),headers:{&quot;Content-Type&quot;:&quot;text/plain&quot;},body:JSON.stringify([s])};this.pendingRequest=xt(l,(function(t){i.pendingRequest=null,r(t),i.saveEventData(),i.processRequests(n)}))}},K.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var Q,$,tt=function(t){function e(){t.call(this,&quot;map.load&quot;),this.success={},this.skuToken=&quot;&quot;}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.postMapLoadEvent=function(t,e,r,n){this.skuToken=r,(F.EVENTS_URL&amp;&amp;n||F.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return H(t)||Y(t)})))&amp;&amp;this.queueRequest({id:e,timestamp:Date.now()},n)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){var r=this.queue.shift(),n=r.id,i=r.timestamp;n&amp;&amp;this.success[n]||(this.anonId||this.fetchEventData(),d(this.anonId)||(this.anonId=p()),this.postEvent(i,{skuToken:this.skuToken},(function(t){t||n&amp;&amp;(e.success[n]=!0)}),t))}},e}(K),et=new(function(t){function e(e){t.call(this,&quot;appUserTurnstile&quot;),this._customAccessToken=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.postTurnstileEvent=function(t,e){F.EVENTS_URL&amp;&amp;F.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return H(t)||Y(t)}))&amp;&amp;this.queueRequest(Date.now(),e)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){this.anonId&amp;&amp;this.eventData.lastSuccess&amp;&amp;this.eventData.tokenU||this.fetchEventData();var r=J(F.ACCESS_TOKEN),n=r?r.u:F.ACCESS_TOKEN,i=n!==this.eventData.tokenU;d(this.anonId)||(this.anonId=p(),i=!0);var a=this.queue.shift();if(this.eventData.lastSuccess){var o=new Date(this.eventData.lastSuccess),s=new Date(a),l=(a-this.eventData.lastSuccess)/864e5;i=i||l&gt;=1||l&lt;-1||o.getDate()!==s.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(a,{&quot;enabled.telemetry&quot;:!1},(function(t){t||(e.eventData.lastSuccess=a,e.eventData.tokenU=n)}),t)}},e}(K)),rt=et.postTurnstileEvent.bind(et),nt=new tt,it=nt.postMapLoadEvent.bind(nt),at=500,ot=50;function st(){self.caches&amp;&amp;!Q&amp;&amp;(Q=self.caches.open(&quot;mapbox-tiles&quot;))}function lt(t){var e=t.indexOf(&quot;?&quot;);return e&lt;0?t:t.slice(0,e)}var ct,ut=1/0;function ft(){return null==ct&amp;&amp;(ct=self.OffscreenCanvas&amp;&amp;new self.OffscreenCanvas(1,1).getContext(&quot;2d&quot;)&amp;&amp;&quot;function&quot;==typeof self.createImageBitmap),ct}var ht={Unknown:&quot;Unknown&quot;,Style:&quot;Style&quot;,Source:&quot;Source&quot;,Tile:&quot;Tile&quot;,Glyphs:&quot;Glyphs&quot;,SpriteImage:&quot;SpriteImage&quot;,SpriteJSON:&quot;SpriteJSON&quot;,Image:&quot;Image&quot;};&quot;function&quot;==typeof Object.freeze&amp;&amp;Object.freeze(ht);var pt,dt,gt=function(t){function e(e,r,n){401===r&amp;&amp;Y(n)&amp;&amp;(e+=&quot;: you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes&quot;),t.call(this,e),this.status=r,this.url=n,this.name=this.constructor.name,this.message=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.toString=function(){return this.name+&quot;: &quot;+this.message+&quot; (&quot;+this.status+&quot;): &quot;+this.url},e}(Error),mt=k()?function(){return self.worker&amp;&amp;self.worker.referrer}:function(){return(&quot;blob:&quot;===self.location.protocol?self.parent:self).location.href},vt=function(t,e){if(!(/^file:/.test(r=t.url)||/^file:/.test(mt())&amp;&amp;!/^\w+:/.test(r))){if(self.fetch&amp;&amp;self.Request&amp;&amp;self.AbortController&amp;&amp;self.Request.prototype.hasOwnProperty(&quot;signal&quot;))return function(t,e){var r,n=new self.AbortController,i=new self.Request(t.url,{method:t.method||&quot;GET&quot;,body:t.body,credentials:t.credentials,headers:t.headers,referrer:mt(),signal:n.signal}),a=!1,o=!1,s=(r=i.url).indexOf(&quot;sku=&quot;)&gt;0&amp;&amp;Y(r);&quot;json&quot;===t.type&amp;&amp;i.headers.set(&quot;Accept&quot;,&quot;application/json&quot;);var l=function(r,n,a){if(!o){if(r&amp;&amp;&quot;SecurityError&quot;!==r.message&amp;&amp;_(r),n&amp;&amp;a)return c(n);var l=Date.now();self.fetch(i).then((function(r){if(r.ok){var n=s?r.clone():null;return c(r,n,l)}return e(new gt(r.statusText,r.status,t.url))})).catch((function(t){20!==t.code&amp;&amp;e(new Error(t.message))}))}},c=function(r,n,s){(&quot;arrayBuffer&quot;===t.type?r.arrayBuffer():&quot;json&quot;===t.type?r.json():r.text()).then((function(t){o||(n&amp;&amp;s&amp;&amp;function(t,e,r){if(st(),Q){var n={status:e.status,statusText:e.statusText,headers:new self.Headers};e.headers.forEach((function(t,e){return n.headers.set(e,t)}));var i=M(e.headers.get(&quot;Cache-Control&quot;)||&quot;&quot;);i[&quot;no-store&quot;]||(i[&quot;max-age&quot;]&amp;&amp;n.headers.set(&quot;Expires&quot;,new Date(r+1e3*i[&quot;max-age&quot;]).toUTCString()),new Date(n.headers.get(&quot;Expires&quot;)).getTime()-r&lt;42e4||function(t,e){if(void 0===$)try{new Response(new ReadableStream),$=!0}catch(t){$=!1}$?e(t.body):t.blob().then(e)}(e,(function(e){var r=new self.Response(e,n);st(),Q&amp;&amp;Q.then((function(e){return e.put(lt(t.url),r)})).catch((function(t){return _(t.message)}))})))}}(i,n,s),a=!0,e(null,t,r.headers.get(&quot;Cache-Control&quot;),r.headers.get(&quot;Expires&quot;)))})).catch((function(t){o||e(new Error(t.message))}))};return s?function(t,e){if(st(),!Q)return e(null);var r=lt(t.url);Q.then((function(t){t.match(r).then((function(n){var i=function(t){if(!t)return!1;var e=new Date(t.headers.get(&quot;Expires&quot;)||0),r=M(t.headers.get(&quot;Cache-Control&quot;)||&quot;&quot;);return e&gt;Date.now()&amp;&amp;!r[&quot;no-cache&quot;]}(n);t.delete(r),i&amp;&amp;t.put(r,n.clone()),e(null,n,i)})).catch(e)})).catch(e)}(i,l):l(null,null),{cancel:function(){o=!0,a||n.abort()}}}(t,e);if(k()&amp;&amp;self.worker&amp;&amp;self.worker.actor)return self.worker.actor.send(&quot;getResource&quot;,t,e,void 0,!0)}var r;return function(t,e){var r=new self.XMLHttpRequest;for(var n in r.open(t.method||&quot;GET&quot;,t.url,!0),&quot;arrayBuffer&quot;===t.type&amp;&amp;(r.responseType=&quot;arraybuffer&quot;),t.headers)r.setRequestHeader(n,t.headers[n]);return&quot;json&quot;===t.type&amp;&amp;(r.responseType=&quot;text&quot;,r.setRequestHeader(&quot;Accept&quot;,&quot;application/json&quot;)),r.withCredentials=&quot;include&quot;===t.credentials,r.onerror=function(){e(new Error(r.statusText))},r.onload=function(){if((r.status&gt;=200&amp;&amp;r.status&lt;300||0===r.status)&amp;&amp;null!==r.response){var n=r.response;if(&quot;json&quot;===t.type)try{n=JSON.parse(r.response)}catch(t){return e(t)}e(null,n,r.getResponseHeader(&quot;Cache-Control&quot;),r.getResponseHeader(&quot;Expires&quot;))}else e(new gt(r.statusText,r.status,t.url))},r.send(t.body),{cancel:function(){return r.abort()}}}(t,e)},yt=function(t,e){return vt(u(t,{type:&quot;arrayBuffer&quot;}),e)},xt=function(t,e){return vt(u(t,{method:&quot;POST&quot;}),e)};pt=[],dt=0;var bt=function(t,e){if(B.supported&amp;&amp;(t.headers||(t.headers={}),t.headers.accept=&quot;image/webp,*/*&quot;),dt&gt;=F.MAX_PARALLEL_IMAGE_REQUESTS){var r={requestParameters:t,callback:e,cancelled:!1,cancel:function(){this.cancelled=!0}};return pt.push(r),r}dt++;var n=!1,i=function(){if(!n)for(n=!0,dt--;pt.length&amp;&amp;dt&lt;F.MAX_PARALLEL_IMAGE_REQUESTS;){var t=pt.shift();t.cancelled||(t.cancel=bt(t.requestParameters,t.callback).cancel)}},a=yt(t,(function(t,r,n,a){i(),t?e(t):r&amp;&amp;(ft()?function(t,e){var r=new self.Blob([new Uint8Array(t)],{type:&quot;image/png&quot;});self.createImageBitmap(r).then((function(t){e(null,t)})).catch((function(t){e(new Error(&quot;Could not load image because of &quot;+t.message+&quot;. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.&quot;))}))}(r,e):function(t,e,r,n){var i=new self.Image,a=self.URL;i.onload=function(){e(null,i),a.revokeObjectURL(i.src)},i.onerror=function(){return e(new Error(&quot;Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.&quot;))};var o=new self.Blob([new Uint8Array(t)],{type:&quot;image/png&quot;});i.cacheControl=r,i.expires=n,i.src=t.byteLength?a.createObjectURL(o):&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=&quot;}(r,e,n,a))}));return{cancel:function(){a.cancel(),i()}}};function _t(t,e,r){r[t]&amp;&amp;-1!==r[t].indexOf(e)||(r[t]=r[t]||[],r[t].push(e))}function wt(t,e,r){if(r&amp;&amp;r[t]){var n=r[t].indexOf(e);-1!==n&amp;&amp;r[t].splice(n,1)}}var Tt=function(t,e){void 0===e&amp;&amp;(e={}),u(this,e),this.type=t},kt=function(t){function e(e,r){void 0===r&amp;&amp;(r={}),t.call(this,&quot;error&quot;,u({error:e},r))}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(Tt),Mt=function(){};Mt.prototype.on=function(t,e){return this._listeners=this._listeners||{},_t(t,e,this._listeners),this},Mt.prototype.off=function(t,e){return wt(t,e,this._listeners),wt(t,e,this._oneTimeListeners),this},Mt.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},_t(t,e,this._oneTimeListeners),this},Mt.prototype.fire=function(t,e){&quot;string&quot;==typeof t&amp;&amp;(t=new Tt(t,e||{}));var r=t.type;if(this.listens(r)){t.target=this;for(var n=0,i=this._listeners&amp;&amp;this._listeners[r]?this._listeners[r].slice():[];n&lt;i.length;n+=1)i[n].call(this,t);for(var a=0,o=this._oneTimeListeners&amp;&amp;this._oneTimeListeners[r]?this._oneTimeListeners[r].slice():[];a&lt;o.length;a+=1){var s=o[a];wt(r,s,this._oneTimeListeners),s.call(this,t)}var l=this._eventedParent;l&amp;&amp;(u(t,&quot;function&quot;==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),l.fire(t))}else t instanceof kt&amp;&amp;console.error(t.error);return this},Mt.prototype.listens=function(t){return this._listeners&amp;&amp;this._listeners[t]&amp;&amp;this._listeners[t].length&gt;0||this._oneTimeListeners&amp;&amp;this._oneTimeListeners[t]&amp;&amp;this._oneTimeListeners[t].length&gt;0||this._eventedParent&amp;&amp;this._eventedParent.listens(t)},Mt.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var At={$version:8,$root:{version:{required:!0,type:&quot;enum&quot;,values:[8]},name:{type:&quot;string&quot;},metadata:{type:&quot;*&quot;},center:{type:&quot;array&quot;,value:&quot;number&quot;},zoom:{type:&quot;number&quot;},bearing:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;},pitch:{type:&quot;number&quot;,default:0,units:&quot;degrees&quot;},light:{type:&quot;light&quot;},sources:{required:!0,type:&quot;sources&quot;},sprite:{type:&quot;string&quot;},glyphs:{type:&quot;string&quot;},transition:{type:&quot;transition&quot;},layers:{required:!0,type:&quot;array&quot;,value:&quot;layer&quot;}},sources:{&quot;*&quot;:{type:&quot;source&quot;}},source:[&quot;source_vector&quot;,&quot;source_raster&quot;,&quot;source_raster_dem&quot;,&quot;source_geojson&quot;,&quot;source_video&quot;,&quot;source_image&quot;],source_vector:{type:{required:!0,type:&quot;enum&quot;,values:{vector:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:&quot;enum&quot;,values:{xyz:{},tms:{}},default:&quot;xyz&quot;},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},attribution:{type:&quot;string&quot;},promoteId:{type:&quot;promoteId&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_raster:{type:{required:!0,type:&quot;enum&quot;,values:{raster:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},tileSize:{type:&quot;number&quot;,default:512,units:&quot;pixels&quot;},scheme:{type:&quot;enum&quot;,values:{xyz:{},tms:{}},default:&quot;xyz&quot;},attribution:{type:&quot;string&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_raster_dem:{type:{required:!0,type:&quot;enum&quot;,values:{&quot;raster-dem&quot;:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},tileSize:{type:&quot;number&quot;,default:512,units:&quot;pixels&quot;},attribution:{type:&quot;string&quot;},encoding:{type:&quot;enum&quot;,values:{terrarium:{},mapbox:{}},default:&quot;mapbox&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_geojson:{type:{required:!0,type:&quot;enum&quot;,values:{geojson:{}}},data:{type:&quot;*&quot;},maxzoom:{type:&quot;number&quot;,default:18},attribution:{type:&quot;string&quot;},buffer:{type:&quot;number&quot;,default:128,maximum:512,minimum:0},tolerance:{type:&quot;number&quot;,default:.375},cluster:{type:&quot;boolean&quot;,default:!1},clusterRadius:{type:&quot;number&quot;,default:50,minimum:0},clusterMaxZoom:{type:&quot;number&quot;},clusterProperties:{type:&quot;*&quot;},lineMetrics:{type:&quot;boolean&quot;,default:!1},generateId:{type:&quot;boolean&quot;,default:!1},promoteId:{type:&quot;promoteId&quot;}},source_video:{type:{required:!0,type:&quot;enum&quot;,values:{video:{}}},urls:{required:!0,type:&quot;array&quot;,value:&quot;string&quot;},coordinates:{required:!0,type:&quot;array&quot;,length:4,value:{type:&quot;array&quot;,length:2,value:&quot;number&quot;}}},source_image:{type:{required:!0,type:&quot;enum&quot;,values:{image:{}}},url:{required:!0,type:&quot;string&quot;},coordinates:{required:!0,type:&quot;array&quot;,length:4,value:{type:&quot;array&quot;,length:2,value:&quot;number&quot;}}},layer:{id:{type:&quot;string&quot;,required:!0},type:{type:&quot;enum&quot;,values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},&quot;fill-extrusion&quot;:{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:&quot;*&quot;},source:{type:&quot;string&quot;},&quot;source-layer&quot;:{type:&quot;string&quot;},minzoom:{type:&quot;number&quot;,minimum:0,maximum:24},maxzoom:{type:&quot;number&quot;,minimum:0,maximum:24},filter:{type:&quot;filter&quot;},layout:{type:&quot;layout&quot;},paint:{type:&quot;paint&quot;}},layout:[&quot;layout_fill&quot;,&quot;layout_line&quot;,&quot;layout_circle&quot;,&quot;layout_heatmap&quot;,&quot;layout_fill-extrusion&quot;,&quot;layout_symbol&quot;,&quot;layout_raster&quot;,&quot;layout_hillshade&quot;,&quot;layout_background&quot;],layout_background:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_fill:{&quot;fill-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_circle:{&quot;circle-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_heatmap:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},&quot;layout_fill-extrusion&quot;:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_line:{&quot;line-cap&quot;:{type:&quot;enum&quot;,values:{butt:{},round:{},square:{}},default:&quot;butt&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-join&quot;:{type:&quot;enum&quot;,values:{bevel:{},round:{},miter:{}},default:&quot;miter&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-miter-limit&quot;:{type:&quot;number&quot;,default:2,requires:[{&quot;line-join&quot;:&quot;miter&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-round-limit&quot;:{type:&quot;number&quot;,default:1.05,requires:[{&quot;line-join&quot;:&quot;round&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_symbol:{&quot;symbol-placement&quot;:{type:&quot;enum&quot;,values:{point:{},line:{},&quot;line-center&quot;:{}},default:&quot;point&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-spacing&quot;:{type:&quot;number&quot;,default:250,minimum:1,units:&quot;pixels&quot;,requires:[{&quot;symbol-placement&quot;:&quot;line&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-avoid-edges&quot;:{type:&quot;boolean&quot;,default:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;symbol-z-order&quot;:{type:&quot;enum&quot;,values:{auto:{},&quot;viewport-y&quot;:{},source:{}},default:&quot;auto&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-allow-overlap&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-ignore-placement&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-optional&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;,&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-rotation-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-size&quot;:{type:&quot;number&quot;,default:1,minimum:0,units:&quot;factor of the original icon size&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-text-fit&quot;:{type:&quot;enum&quot;,values:{none:{},width:{},height:{},both:{}},default:&quot;none&quot;,requires:[&quot;icon-image&quot;,&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-text-fit-padding&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[0,0,0,0],units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;,&quot;text-field&quot;,{&quot;icon-text-fit&quot;:[&quot;both&quot;,&quot;width&quot;,&quot;height&quot;]}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-image&quot;:{type:&quot;resolvedImage&quot;,tokens:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-padding&quot;:{type:&quot;number&quot;,default:2,minimum:0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-keep-upright&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;,{&quot;icon-rotation-alignment&quot;:&quot;map&quot;},{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-offset&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-anchor&quot;:{type:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},default:&quot;center&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-rotation-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-field&quot;:{type:&quot;formatted&quot;,default:&quot;&quot;,tokens:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-font&quot;:{type:&quot;array&quot;,value:&quot;string&quot;,default:[&quot;Open Sans Regular&quot;,&quot;Arial Unicode MS Regular&quot;],requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-size&quot;:{type:&quot;number&quot;,default:16,minimum:0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-max-width&quot;:{type:&quot;number&quot;,default:10,minimum:0,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-line-height&quot;:{type:&quot;number&quot;,default:1.2,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-letter-spacing&quot;:{type:&quot;number&quot;,default:0,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-justify&quot;:{type:&quot;enum&quot;,values:{auto:{},left:{},center:{},right:{}},default:&quot;center&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-radial-offset&quot;:{type:&quot;number&quot;,units:&quot;ems&quot;,default:0,requires:[&quot;text-field&quot;],&quot;property-type&quot;:&quot;data-driven&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]}},&quot;text-variable-anchor&quot;:{type:&quot;array&quot;,value:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;point&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-anchor&quot;:{type:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},default:&quot;center&quot;,requires:[&quot;text-field&quot;,{&quot;!&quot;:&quot;text-variable-anchor&quot;}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-max-angle&quot;:{type:&quot;number&quot;,default:45,units:&quot;degrees&quot;,requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-writing-mode&quot;:{type:&quot;array&quot;,value:&quot;enum&quot;,values:{horizontal:{},vertical:{}},requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;point&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-padding&quot;:{type:&quot;number&quot;,default:2,minimum:0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-keep-upright&quot;:{type:&quot;boolean&quot;,default:!0,requires:[&quot;text-field&quot;,{&quot;text-rotation-alignment&quot;:&quot;map&quot;},{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-transform&quot;:{type:&quot;enum&quot;,values:{none:{},uppercase:{},lowercase:{}},default:&quot;none&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-offset&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,units:&quot;ems&quot;,length:2,default:[0,0],requires:[&quot;text-field&quot;,{&quot;!&quot;:&quot;text-radial-offset&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-allow-overlap&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-ignore-placement&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-optional&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;,&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_raster:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_hillshade:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},filter:{type:&quot;array&quot;,value:&quot;*&quot;},filter_operator:{type:&quot;enum&quot;,values:{&quot;==&quot;:{},&quot;!=&quot;:{},&quot;&gt;&quot;:{},&quot;&gt;=&quot;:{},&quot;&lt;&quot;:{},&quot;&lt;=&quot;:{},in:{},&quot;!in&quot;:{},all:{},any:{},none:{},has:{},&quot;!has&quot;:{},within:{}}},geometry_type:{type:&quot;enum&quot;,values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:&quot;expression&quot;},stops:{type:&quot;array&quot;,value:&quot;function_stop&quot;},base:{type:&quot;number&quot;,default:1,minimum:0},property:{type:&quot;string&quot;,default:&quot;$zoom&quot;},type:{type:&quot;enum&quot;,values:{identity:{},exponential:{},interval:{},categorical:{}},default:&quot;exponential&quot;},colorSpace:{type:&quot;enum&quot;,values:{rgb:{},lab:{},hcl:{}},default:&quot;rgb&quot;},default:{type:&quot;*&quot;,required:!1}},function_stop:{type:&quot;array&quot;,minimum:0,maximum:24,value:[&quot;number&quot;,&quot;color&quot;],length:2},expression:{type:&quot;array&quot;,value:&quot;*&quot;,minimum:1},expression_name:{type:&quot;enum&quot;,values:{let:{group:&quot;Variable binding&quot;},var:{group:&quot;Variable binding&quot;},literal:{group:&quot;Types&quot;},array:{group:&quot;Types&quot;},at:{group:&quot;Lookup&quot;},in:{group:&quot;Lookup&quot;},&quot;index-of&quot;:{group:&quot;Lookup&quot;},slice:{group:&quot;Lookup&quot;},case:{group:&quot;Decision&quot;},match:{group:&quot;Decision&quot;},coalesce:{group:&quot;Decision&quot;},step:{group:&quot;Ramps, scales, curves&quot;},interpolate:{group:&quot;Ramps, scales, curves&quot;},&quot;interpolate-hcl&quot;:{group:&quot;Ramps, scales, curves&quot;},&quot;interpolate-lab&quot;:{group:&quot;Ramps, scales, curves&quot;},ln2:{group:&quot;Math&quot;},pi:{group:&quot;Math&quot;},e:{group:&quot;Math&quot;},typeof:{group:&quot;Types&quot;},string:{group:&quot;Types&quot;},number:{group:&quot;Types&quot;},boolean:{group:&quot;Types&quot;},object:{group:&quot;Types&quot;},collator:{group:&quot;Types&quot;},format:{group:&quot;Types&quot;},image:{group:&quot;Types&quot;},&quot;number-format&quot;:{group:&quot;Types&quot;},&quot;to-string&quot;:{group:&quot;Types&quot;},&quot;to-number&quot;:{group:&quot;Types&quot;},&quot;to-boolean&quot;:{group:&quot;Types&quot;},&quot;to-rgba&quot;:{group:&quot;Color&quot;},&quot;to-color&quot;:{group:&quot;Types&quot;},rgb:{group:&quot;Color&quot;},rgba:{group:&quot;Color&quot;},get:{group:&quot;Lookup&quot;},has:{group:&quot;Lookup&quot;},length:{group:&quot;Lookup&quot;},properties:{group:&quot;Feature data&quot;},&quot;feature-state&quot;:{group:&quot;Feature data&quot;},&quot;geometry-type&quot;:{group:&quot;Feature data&quot;},id:{group:&quot;Feature data&quot;},zoom:{group:&quot;Zoom&quot;},&quot;heatmap-density&quot;:{group:&quot;Heatmap&quot;},&quot;line-progress&quot;:{group:&quot;Feature data&quot;},accumulated:{group:&quot;Feature data&quot;},&quot;+&quot;:{group:&quot;Math&quot;},&quot;*&quot;:{group:&quot;Math&quot;},&quot;-&quot;:{group:&quot;Math&quot;},&quot;/&quot;:{group:&quot;Math&quot;},&quot;%&quot;:{group:&quot;Math&quot;},&quot;^&quot;:{group:&quot;Math&quot;},sqrt:{group:&quot;Math&quot;},log10:{group:&quot;Math&quot;},ln:{group:&quot;Math&quot;},log2:{group:&quot;Math&quot;},sin:{group:&quot;Math&quot;},cos:{group:&quot;Math&quot;},tan:{group:&quot;Math&quot;},asin:{group:&quot;Math&quot;},acos:{group:&quot;Math&quot;},atan:{group:&quot;Math&quot;},min:{group:&quot;Math&quot;},max:{group:&quot;Math&quot;},round:{group:&quot;Math&quot;},abs:{group:&quot;Math&quot;},ceil:{group:&quot;Math&quot;},floor:{group:&quot;Math&quot;},distance:{group:&quot;Math&quot;},&quot;==&quot;:{group:&quot;Decision&quot;},&quot;!=&quot;:{group:&quot;Decision&quot;},&quot;&gt;&quot;:{group:&quot;Decision&quot;},&quot;&lt;&quot;:{group:&quot;Decision&quot;},&quot;&gt;=&quot;:{group:&quot;Decision&quot;},&quot;&lt;=&quot;:{group:&quot;Decision&quot;},all:{group:&quot;Decision&quot;},any:{group:&quot;Decision&quot;},&quot;!&quot;:{group:&quot;Decision&quot;},within:{group:&quot;Decision&quot;},&quot;is-supported-script&quot;:{group:&quot;String&quot;},upcase:{group:&quot;String&quot;},downcase:{group:&quot;String&quot;},concat:{group:&quot;String&quot;},&quot;resolved-locale&quot;:{group:&quot;String&quot;}}},light:{anchor:{type:&quot;enum&quot;,default:&quot;viewport&quot;,values:{map:{},viewport:{}},&quot;property-type&quot;:&quot;data-constant&quot;,transition:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]}},position:{type:&quot;array&quot;,default:[1.15,210,30],length:3,value:&quot;number&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]}},color:{type:&quot;color&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,default:&quot;#ffffff&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},transition:!0},intensity:{type:&quot;number&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},transition:!0}},paint:[&quot;paint_fill&quot;,&quot;paint_line&quot;,&quot;paint_circle&quot;,&quot;paint_heatmap&quot;,&quot;paint_fill-extrusion&quot;,&quot;paint_symbol&quot;,&quot;paint_raster&quot;,&quot;paint_hillshade&quot;,&quot;paint_background&quot;],paint_fill:{&quot;fill-antialias&quot;:{type:&quot;boolean&quot;,default:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-outline-color&quot;:{type:&quot;color&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-pattern&quot;},{&quot;fill-antialias&quot;:!0}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;fill-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;}},&quot;paint_fill-extrusion&quot;:{&quot;fill-extrusion-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-extrusion-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;fill-extrusion-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;},&quot;fill-extrusion-height&quot;:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;meters&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-base&quot;:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;meters&quot;,transition:!0,requires:[&quot;fill-extrusion-height&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-vertical-gradient&quot;:{type:&quot;boolean&quot;,default:!0,transition:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_line:{&quot;line-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;line-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;line-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-width&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-gap-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-offset&quot;:{type:&quot;number&quot;,default:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-dasharray&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,minimum:0,transition:!0,units:&quot;line widths&quot;,requires:[{&quot;!&quot;:&quot;line-pattern&quot;}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;cross-faded&quot;},&quot;line-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;},&quot;line-gradient&quot;:{type:&quot;color&quot;,transition:!1,requires:[{&quot;!&quot;:&quot;line-dasharray&quot;},{&quot;!&quot;:&quot;line-pattern&quot;},{source:&quot;geojson&quot;,has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:[&quot;line-progress&quot;]},&quot;property-type&quot;:&quot;color-ramp&quot;}},paint_circle:{&quot;circle-radius&quot;:{type:&quot;number&quot;,default:5,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-blur&quot;:{type:&quot;number&quot;,default:0,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;circle-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-pitch-scale&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;viewport&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-stroke-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-stroke-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-stroke-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;}},paint_heatmap:{&quot;heatmap-radius&quot;:{type:&quot;number&quot;,default:30,minimum:1,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;heatmap-weight&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;heatmap-intensity&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;heatmap-color&quot;:{type:&quot;color&quot;,default:[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;heatmap-density&quot;],0,&quot;rgba(0, 0, 255, 0)&quot;,.1,&quot;royalblue&quot;,.3,&quot;cyan&quot;,.5,&quot;lime&quot;,.7,&quot;yellow&quot;,1,&quot;red&quot;],transition:!1,expression:{interpolated:!0,parameters:[&quot;heatmap-density&quot;]},&quot;property-type&quot;:&quot;color-ramp&quot;},&quot;heatmap-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_symbol:{&quot;icon-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-color&quot;:{type:&quot;color&quot;,default:&quot;rgba(0, 0, 0, 0)&quot;,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;icon-image&quot;,&quot;icon-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,overridable:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-color&quot;:{type:&quot;color&quot;,default:&quot;rgba(0, 0, 0, 0)&quot;,transition:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;text-field&quot;,&quot;text-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_raster:{&quot;raster-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-hue-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,transition:!0,units:&quot;degrees&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-brightness-min&quot;:{type:&quot;number&quot;,default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-brightness-max&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-saturation&quot;:{type:&quot;number&quot;,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-contrast&quot;:{type:&quot;number&quot;,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-resampling&quot;:{type:&quot;enum&quot;,values:{linear:{},nearest:{}},default:&quot;linear&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-fade-duration&quot;:{type:&quot;number&quot;,default:300,minimum:0,transition:!1,units:&quot;milliseconds&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_hillshade:{&quot;hillshade-illumination-direction&quot;:{type:&quot;number&quot;,default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-illumination-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;viewport&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-exaggeration&quot;:{type:&quot;number&quot;,default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-shadow-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-highlight-color&quot;:{type:&quot;color&quot;,default:&quot;#FFFFFF&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-accent-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_background:{&quot;background-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;background-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;background-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;cross-faded&quot;},&quot;background-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},transition:{duration:{type:&quot;number&quot;,default:300,minimum:0,units:&quot;milliseconds&quot;},delay:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;milliseconds&quot;}},&quot;property-type&quot;:{&quot;data-driven&quot;:{type:&quot;property-type&quot;},&quot;cross-faded&quot;:{type:&quot;property-type&quot;},&quot;cross-faded-data-driven&quot;:{type:&quot;property-type&quot;},&quot;color-ramp&quot;:{type:&quot;property-type&quot;},&quot;data-constant&quot;:{type:&quot;property-type&quot;},constant:{type:&quot;property-type&quot;}},promoteId:{&quot;*&quot;:{type:&quot;string&quot;}}},St=function(t,e,r,n){this.message=(t?t+&quot;: &quot;:&quot;&quot;)+r,n&amp;&amp;(this.identifier=n),null!=e&amp;&amp;e.__line__&amp;&amp;(this.line=e.__line__)};function Et(t){var e=t.value;return e?[new St(t.key,e,&quot;constants have been deprecated as of v8&quot;)]:[]}function Ct(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}function Lt(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function It(t){if(Array.isArray(t))return t.map(It);if(t instanceof Object&amp;&amp;!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var r in t)e[r]=It(t[r]);return e}return Lt(t)}var Pt=function(t){function e(e,r){t.call(this,r),this.message=r,this.key=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(Error),zt=function(t,e){void 0===e&amp;&amp;(e=[]),this.parent=t,this.bindings={};for(var r=0,n=e;r&lt;n.length;r+=1){var i=n[r];this.bindings[i[0]]=i[1]}};zt.prototype.concat=function(t){return new zt(this,t)},zt.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+&quot; not found in scope.&quot;)},zt.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&amp;&amp;this.parent.has(t)};var Ot={kind:&quot;null&quot;},Dt={kind:&quot;number&quot;},Rt={kind:&quot;string&quot;},Ft={kind:&quot;boolean&quot;},Bt={kind:&quot;color&quot;},Nt={kind:&quot;object&quot;},jt={kind:&quot;value&quot;},Ut={kind:&quot;collator&quot;},Vt={kind:&quot;formatted&quot;},qt={kind:&quot;resolvedImage&quot;};function Ht(t,e){return{kind:&quot;array&quot;,itemType:t,N:e}}function Gt(t){if(&quot;array&quot;===t.kind){var e=Gt(t.itemType);return&quot;number&quot;==typeof t.N?&quot;array&lt;&quot;+e+&quot;, &quot;+t.N+&quot;&gt;&quot;:&quot;value&quot;===t.itemType.kind?&quot;array&quot;:&quot;array&lt;&quot;+e+&quot;&gt;&quot;}return t.kind}var Yt=[Ot,Dt,Rt,Ft,Bt,Vt,Nt,Ht(jt),qt];function Wt(t,e){if(&quot;error&quot;===e.kind)return null;if(&quot;array&quot;===t.kind){if(&quot;array&quot;===e.kind&amp;&amp;(0===e.N&amp;&amp;&quot;value&quot;===e.itemType.kind||!Wt(t.itemType,e.itemType))&amp;&amp;(&quot;number&quot;!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(&quot;value&quot;===t.kind)for(var r=0,n=Yt;r&lt;n.length;r+=1)if(!Wt(n[r],e))return null}return&quot;Expected &quot;+Gt(t)+&quot; but found &quot;+Gt(e)+&quot; instead.&quot;}function Xt(t,e){return e.some((function(e){return e.kind===t.kind}))}function Zt(t,e){return e.some((function(e){return&quot;null&quot;===e?null===t:&quot;array&quot;===e?Array.isArray(t):&quot;object&quot;===e?t&amp;&amp;!Array.isArray(t)&amp;&amp;&quot;object&quot;==typeof t:e===typeof t}))}var Jt=e((function(t,e){var r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function n(t){return(t=Math.round(t))&lt;0?0:t&gt;255?255:t}function i(t){return n(&quot;%&quot;===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function a(t){return(e=&quot;%&quot;===t[t.length-1]?parseFloat(t)/100:parseFloat(t))&lt;0?0:e&gt;1?1:e;var e}function o(t,e,r){return r&lt;0?r+=1:r&gt;1&amp;&amp;(r-=1),6*r&lt;1?t+(e-t)*r*6:2*r&lt;1?e:3*r&lt;2?t+(e-t)*(2/3-r)*6:t}try{e.parseCSSColor=function(t){var e,s=t.replace(/ /g,&quot;&quot;).toLowerCase();if(s in r)return r[s].slice();if(&quot;#&quot;===s[0])return 4===s.length?(e=parseInt(s.substr(1),16))&gt;=0&amp;&amp;e&lt;=4095?[(3840&amp;e)&gt;&gt;4|(3840&amp;e)&gt;&gt;8,240&amp;e|(240&amp;e)&gt;&gt;4,15&amp;e|(15&amp;e)&lt;&lt;4,1]:null:7===s.length&amp;&amp;(e=parseInt(s.substr(1),16))&gt;=0&amp;&amp;e&lt;=16777215?[(16711680&amp;e)&gt;&gt;16,(65280&amp;e)&gt;&gt;8,255&amp;e,1]:null;var l=s.indexOf(&quot;(&quot;),c=s.indexOf(&quot;)&quot;);if(-1!==l&amp;&amp;c+1===s.length){var u=s.substr(0,l),f=s.substr(l+1,c-(l+1)).split(&quot;,&quot;),h=1;switch(u){case&quot;rgba&quot;:if(4!==f.length)return null;h=a(f.pop());case&quot;rgb&quot;:return 3!==f.length?null:[i(f[0]),i(f[1]),i(f[2]),h];case&quot;hsla&quot;:if(4!==f.length)return null;h=a(f.pop());case&quot;hsl&quot;:if(3!==f.length)return null;var p=(parseFloat(f[0])%360+360)%360/360,d=a(f[1]),g=a(f[2]),m=g&lt;=.5?g*(d+1):g+d-g*d,v=2*g-m;return[n(255*o(v,m,p+1/3)),n(255*o(v,m,p)),n(255*o(v,m,p-1/3)),h];default:return null}}return null}}catch(t){}})).parseCSSColor,Kt=function(t,e,r,n){void 0===n&amp;&amp;(n=1),this.r=t,this.g=e,this.b=r,this.a=n};Kt.parse=function(t){if(t){if(t instanceof Kt)return t;if(&quot;string&quot;==typeof t){var e=Jt(t);if(e)return new Kt(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},Kt.prototype.toString=function(){var t=this.toArray(),e=t[1],r=t[2],n=t[3];return&quot;rgba(&quot;+Math.round(t[0])+&quot;,&quot;+Math.round(e)+&quot;,&quot;+Math.round(r)+&quot;,&quot;+n+&quot;)&quot;},Kt.prototype.toArray=function(){var t=this.a;return 0===t?[0,0,0,0]:[255*this.r/t,255*this.g/t,255*this.b/t,t]},Kt.black=new Kt(0,0,0,1),Kt.white=new Kt(1,1,1,1),Kt.transparent=new Kt(0,0,0,0),Kt.red=new Kt(1,0,0,1);var Qt=function(t,e,r){this.sensitivity=t?e?&quot;variant&quot;:&quot;case&quot;:e?&quot;accent&quot;:&quot;base&quot;,this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:&quot;search&quot;})};Qt.prototype.compare=function(t,e){return this.collator.compare(t,e)},Qt.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var $t=function(t,e,r,n,i){this.text=t,this.image=e,this.scale=r,this.fontStack=n,this.textColor=i},te=function(t){this.sections=t};te.fromString=function(t){return new te([new $t(t,null,null,null,null)])},te.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&amp;&amp;0!==t.image.name.length}))},te.factory=function(t){return t instanceof te?t:te.fromString(t)},te.prototype.toString=function(){return 0===this.sections.length?&quot;&quot;:this.sections.map((function(t){return t.text})).join(&quot;&quot;)},te.prototype.serialize=function(){for(var t=[&quot;format&quot;],e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];if(n.image)t.push([&quot;image&quot;,n.image.name]);else{t.push(n.text);var i={};n.fontStack&amp;&amp;(i[&quot;text-font&quot;]=[&quot;literal&quot;,n.fontStack.split(&quot;,&quot;)]),n.scale&amp;&amp;(i[&quot;font-scale&quot;]=n.scale),n.textColor&amp;&amp;(i[&quot;text-color&quot;]=[&quot;rgba&quot;].concat(n.textColor.toArray())),t.push(i)}}return t};var ee=function(t){this.name=t.name,this.available=t.available};function re(t,e,r,n){return&quot;number&quot;==typeof t&amp;&amp;t&gt;=0&amp;&amp;t&lt;=255&amp;&amp;&quot;number&quot;==typeof e&amp;&amp;e&gt;=0&amp;&amp;e&lt;=255&amp;&amp;&quot;number&quot;==typeof r&amp;&amp;r&gt;=0&amp;&amp;r&lt;=255?void 0===n||&quot;number&quot;==typeof n&amp;&amp;n&gt;=0&amp;&amp;n&lt;=1?null:&quot;Invalid rgba value [&quot;+[t,e,r,n].join(&quot;, &quot;)+&quot;]: 'a' must be between 0 and 1.&quot;:&quot;Invalid rgba value [&quot;+(&quot;number&quot;==typeof n?[t,e,r,n]:[t,e,r]).join(&quot;, &quot;)+&quot;]: 'r', 'g', and 'b' must be between 0 and 255.&quot;}function ne(t){if(null===t)return!0;if(&quot;string&quot;==typeof t)return!0;if(&quot;boolean&quot;==typeof t)return!0;if(&quot;number&quot;==typeof t)return!0;if(t instanceof Kt)return!0;if(t instanceof Qt)return!0;if(t instanceof te)return!0;if(t instanceof ee)return!0;if(Array.isArray(t)){for(var e=0,r=t;e&lt;r.length;e+=1)if(!ne(r[e]))return!1;return!0}if(&quot;object&quot;==typeof t){for(var n in t)if(!ne(t[n]))return!1;return!0}return!1}function ie(t){if(null===t)return Ot;if(&quot;string&quot;==typeof t)return Rt;if(&quot;boolean&quot;==typeof t)return Ft;if(&quot;number&quot;==typeof t)return Dt;if(t instanceof Kt)return Bt;if(t instanceof Qt)return Ut;if(t instanceof te)return Vt;if(t instanceof ee)return qt;if(Array.isArray(t)){for(var e,r=t.length,n=0,i=t;n&lt;i.length;n+=1){var a=ie(i[n]);if(e){if(e===a)continue;e=jt;break}e=a}return Ht(e||jt,r)}return Nt}function ae(t){var e=typeof t;return null===t?&quot;&quot;:&quot;string&quot;===e||&quot;number&quot;===e||&quot;boolean&quot;===e?String(t):t instanceof Kt||t instanceof te||t instanceof ee?t.toString():JSON.stringify(t)}ee.prototype.toString=function(){return this.name},ee.fromString=function(t){return t?new ee({name:t,available:!1}):null},ee.prototype.serialize=function(){return[&quot;image&quot;,this.name]};var oe=function(t,e){this.type=t,this.value=e};oe.parse=function(t,e){if(2!==t.length)return e.error(&quot;'literal' expression requires exactly one argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);if(!ne(t[1]))return e.error(&quot;invalid value&quot;);var r=t[1],n=ie(r),i=e.expectedType;return&quot;array&quot;!==n.kind||0!==n.N||!i||&quot;array&quot;!==i.kind||&quot;number&quot;==typeof i.N&amp;&amp;0!==i.N||(n=i),new oe(n,r)},oe.prototype.evaluate=function(){return this.value},oe.prototype.eachChild=function(){},oe.prototype.outputDefined=function(){return!0},oe.prototype.serialize=function(){return&quot;array&quot;===this.type.kind||&quot;object&quot;===this.type.kind?[&quot;literal&quot;,this.value]:this.value instanceof Kt?[&quot;rgba&quot;].concat(this.value.toArray()):this.value instanceof te?this.value.serialize():this.value};var se=function(t){this.name=&quot;ExpressionEvaluationError&quot;,this.message=t};se.prototype.toJSON=function(){return this.message};var le={string:Rt,number:Dt,boolean:Ft,object:Nt},ce=function(t,e){this.type=t,this.args=e};ce.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r,n=1,i=t[0];if(&quot;array&quot;===i){var a,o;if(t.length&gt;2){var s=t[1];if(&quot;string&quot;!=typeof s||!(s in le)||&quot;object&quot;===s)return e.error('The item type argument of &quot;array&quot; must be one of string, number, boolean',1);a=le[s],n++}else a=jt;if(t.length&gt;3){if(null!==t[2]&amp;&amp;(&quot;number&quot;!=typeof t[2]||t[2]&lt;0||t[2]!==Math.floor(t[2])))return e.error('The length argument to &quot;array&quot; must be a positive integer literal',2);o=t[2],n++}r=Ht(a,o)}else r=le[i];for(var l=[];n&lt;t.length;n++){var c=e.parse(t[n],n,jt);if(!c)return null;l.push(c)}return new ce(r,l)},ce.prototype.evaluate=function(t){for(var e=0;e&lt;this.args.length;e++){var r=this.args[e].evaluate(t);if(!Wt(this.type,ie(r)))return r;if(e===this.args.length-1)throw new se(&quot;Expected value to be of type &quot;+Gt(this.type)+&quot;, but found &quot;+Gt(ie(r))+&quot; instead.&quot;)}return null},ce.prototype.eachChild=function(t){this.args.forEach(t)},ce.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ce.prototype.serialize=function(){var t=this.type,e=[t.kind];if(&quot;array&quot;===t.kind){var r=t.itemType;if(&quot;string&quot;===r.kind||&quot;number&quot;===r.kind||&quot;boolean&quot;===r.kind){e.push(r.kind);var n=t.N;(&quot;number&quot;==typeof n||this.args.length&gt;1)&amp;&amp;e.push(n)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var ue=function(t){this.type=Vt,this.sections=t};ue.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r=t[1];if(!Array.isArray(r)&amp;&amp;&quot;object&quot;==typeof r)return e.error(&quot;First argument must be an image or text section.&quot;);for(var n=[],i=!1,a=1;a&lt;=t.length-1;++a){var o=t[a];if(i&amp;&amp;&quot;object&quot;==typeof o&amp;&amp;!Array.isArray(o)){i=!1;var s=null;if(o[&quot;font-scale&quot;]&amp;&amp;!(s=e.parse(o[&quot;font-scale&quot;],1,Dt)))return null;var l=null;if(o[&quot;text-font&quot;]&amp;&amp;!(l=e.parse(o[&quot;text-font&quot;],1,Ht(Rt))))return null;var c=null;if(o[&quot;text-color&quot;]&amp;&amp;!(c=e.parse(o[&quot;text-color&quot;],1,Bt)))return null;var u=n[n.length-1];u.scale=s,u.font=l,u.textColor=c}else{var f=e.parse(t[a],1,jt);if(!f)return null;var h=f.type.kind;if(&quot;string&quot;!==h&amp;&amp;&quot;value&quot;!==h&amp;&amp;&quot;null&quot;!==h&amp;&amp;&quot;resolvedImage&quot;!==h)return e.error(&quot;Formatted text type must be 'string', 'value', 'image' or 'null'.&quot;);i=!0,n.push({content:f,scale:null,font:null,textColor:null})}}return new ue(n)},ue.prototype.evaluate=function(t){return new te(this.sections.map((function(e){var r=e.content.evaluate(t);return ie(r)===qt?new $t(&quot;&quot;,r,null,null,null):new $t(ae(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(&quot;,&quot;):null,e.textColor?e.textColor.evaluate(t):null)})))},ue.prototype.eachChild=function(t){for(var e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];t(n.content),n.scale&amp;&amp;t(n.scale),n.font&amp;&amp;t(n.font),n.textColor&amp;&amp;t(n.textColor)}},ue.prototype.outputDefined=function(){return!1},ue.prototype.serialize=function(){for(var t=[&quot;format&quot;],e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];t.push(n.content.serialize());var i={};n.scale&amp;&amp;(i[&quot;font-scale&quot;]=n.scale.serialize()),n.font&amp;&amp;(i[&quot;text-font&quot;]=n.font.serialize()),n.textColor&amp;&amp;(i[&quot;text-color&quot;]=n.textColor.serialize()),t.push(i)}return t};var fe=function(t){this.type=qt,this.input=t};fe.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected two arguments.&quot;);var r=e.parse(t[1],1,Rt);return r?new fe(r):e.error(&quot;No image name provided.&quot;)},fe.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=ee.fromString(e);return r&amp;&amp;t.availableImages&amp;&amp;(r.available=t.availableImages.indexOf(e)&gt;-1),r},fe.prototype.eachChild=function(t){t(this.input)},fe.prototype.outputDefined=function(){return!1},fe.prototype.serialize=function(){return[&quot;image&quot;,this.input.serialize()]};var he={&quot;to-boolean&quot;:Ft,&quot;to-color&quot;:Bt,&quot;to-number&quot;:Dt,&quot;to-string&quot;:Rt},pe=function(t,e){this.type=t,this.args=e};pe.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r=t[0];if((&quot;to-boolean&quot;===r||&quot;to-string&quot;===r)&amp;&amp;2!==t.length)return e.error(&quot;Expected one argument.&quot;);for(var n=he[r],i=[],a=1;a&lt;t.length;a++){var o=e.parse(t[a],a,jt);if(!o)return null;i.push(o)}return new pe(n,i)},pe.prototype.evaluate=function(t){if(&quot;boolean&quot;===this.type.kind)return Boolean(this.args[0].evaluate(t));if(&quot;color&quot;===this.type.kind){for(var e,r,n=0,i=this.args;n&lt;i.length;n+=1){if(r=null,(e=i[n].evaluate(t))instanceof Kt)return e;if(&quot;string&quot;==typeof e){var a=t.parseColor(e);if(a)return a}else if(Array.isArray(e)&amp;&amp;!(r=e.length&lt;3||e.length&gt;4?&quot;Invalid rbga value &quot;+JSON.stringify(e)+&quot;: expected an array containing either three or four numeric values.&quot;:re(e[0],e[1],e[2],e[3])))return new Kt(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new se(r||&quot;Could not parse color from value '&quot;+(&quot;string&quot;==typeof e?e:String(JSON.stringify(e)))+&quot;'&quot;)}if(&quot;number&quot;===this.type.kind){for(var o=null,s=0,l=this.args;s&lt;l.length;s+=1){if(null===(o=l[s].evaluate(t)))return 0;var c=Number(o);if(!isNaN(c))return c}throw new se(&quot;Could not convert &quot;+JSON.stringify(o)+&quot; to number.&quot;)}return&quot;formatted&quot;===this.type.kind?te.fromString(ae(this.args[0].evaluate(t))):&quot;resolvedImage&quot;===this.type.kind?ee.fromString(ae(this.args[0].evaluate(t))):ae(this.args[0].evaluate(t))},pe.prototype.eachChild=function(t){this.args.forEach(t)},pe.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},pe.prototype.serialize=function(){if(&quot;formatted&quot;===this.type.kind)return new ue([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(&quot;resolvedImage&quot;===this.type.kind)return new fe(this.args[0]).serialize();var t=[&quot;to-&quot;+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};var de=[&quot;Unknown&quot;,&quot;Point&quot;,&quot;LineString&quot;,&quot;Polygon&quot;],ge=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};ge.prototype.id=function(){return this.feature&amp;&amp;&quot;id&quot;in this.feature?this.feature.id:null},ge.prototype.geometryType=function(){return this.feature?&quot;number&quot;==typeof this.feature.type?de[this.feature.type]:this.feature.type:null},ge.prototype.geometry=function(){return this.feature&amp;&amp;&quot;geometry&quot;in this.feature?this.feature.geometry:null},ge.prototype.canonicalID=function(){return this.canonical},ge.prototype.properties=function(){return this.feature&amp;&amp;this.feature.properties||{}},ge.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=Kt.parse(t)),e};var me=function(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n};me.prototype.evaluate=function(t){return this._evaluate(t,this.args)},me.prototype.eachChild=function(t){this.args.forEach(t)},me.prototype.outputDefined=function(){return!1},me.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},me.parse=function(t,e){var r,n=t[0],i=me.definitions[n];if(!i)return e.error('Unknown expression &quot;'+n+'&quot;. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0);for(var a=Array.isArray(i)?i[0]:i.type,o=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=o.filter((function(e){var r=e[0];return!Array.isArray(r)||r.length===t.length-1})),l=null,c=0,u=s;c&lt;u.length;c+=1){var f=u[c],h=f[0],p=f[1];l=new Be(e.registry,e.path,null,e.scope);for(var d=[],g=!1,m=1;m&lt;t.length;m++){var v=t[m],y=Array.isArray(h)?h[m-1]:h.type,x=l.parse(v,1+d.length,y);if(!x){g=!0;break}d.push(x)}if(!g)if(Array.isArray(h)&amp;&amp;h.length!==d.length)l.error(&quot;Expected &quot;+h.length+&quot; arguments, but found &quot;+d.length+&quot; instead.&quot;);else{for(var b=0;b&lt;d.length;b++){var _=Array.isArray(h)?h[b]:h.type,w=d[b];l.concat(b+1).checkSubtype(_,w.type)}if(0===l.errors.length)return new me(n,a,p,d)}}if(1===s.length)(r=e.errors).push.apply(r,l.errors);else{for(var T=(s.length?s:o).map((function(t){var e;return e=t[0],Array.isArray(e)?&quot;(&quot;+e.map(Gt).join(&quot;, &quot;)+&quot;)&quot;:&quot;(&quot;+Gt(e.type)+&quot;...)&quot;})).join(&quot; | &quot;),k=[],M=1;M&lt;t.length;M++){var A=e.parse(t[M],1+k.length);if(!A)return null;k.push(Gt(A.type))}e.error(&quot;Expected arguments of type &quot;+T+&quot;, but found (&quot;+k.join(&quot;, &quot;)+&quot;) instead.&quot;)}return null},me.register=function(t,e){for(var r in me.definitions=e,e)t[r]=me};var ve=function(t,e,r){this.type=Ut,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};function ye(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function xe(t,e){return!(t[0]&lt;=e[0]||t[2]&gt;=e[2]||t[1]&lt;=e[1]||t[3]&gt;=e[3])}function be(t,e){var r=(180+t[0])/360,n=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,i=Math.pow(2,e.z);return[Math.round(r*i*8192),Math.round(n*i*8192)]}function _e(t,e,r){return e[1]&gt;t[1]!=r[1]&gt;t[1]&amp;&amp;t[0]&lt;(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function we(t,e){for(var r,n,i,a,o,s,l,c=!1,u=0,f=e.length;u&lt;f;u++)for(var h=e[u],p=0,d=h.length;p&lt;d-1;p++){if((a=(r=t)[0]-(n=h[p])[0])*(l=r[1]-(i=h[p+1])[1])-(s=r[0]-i[0])*(o=r[1]-n[1])==0&amp;&amp;a*s&lt;=0&amp;&amp;o*l&lt;=0)return!1;_e(t,h[p],h[p+1])&amp;&amp;(c=!c)}return c}function Te(t,e){for(var r=0;r&lt;e.length;r++)if(we(t,e[r]))return!0;return!1}function ke(t,e,r,n){var i=n[0]-r[0],a=n[1]-r[1],o=(t[0]-r[0])*a-i*(t[1]-r[1]),s=(e[0]-r[0])*a-i*(e[1]-r[1]);return o&gt;0&amp;&amp;s&lt;0||o&lt;0&amp;&amp;s&gt;0}function Me(t,e,r){for(var n=0,i=r;n&lt;i.length;n+=1)for(var a=i[n],o=0;o&lt;a.length-1;++o)if(0!=(f=[(u=a[o+1])[0]-(c=a[o])[0],u[1]-c[1]])[0]*(h=[(l=e)[0]-(s=t)[0],l[1]-s[1]])[1]-f[1]*h[0]&amp;&amp;ke(s,l,c,u)&amp;&amp;ke(c,u,s,l))return!0;var s,l,c,u,f,h;return!1}function Ae(t,e){for(var r=0;r&lt;t.length;++r)if(!we(t[r],e))return!1;for(var n=0;n&lt;t.length-1;++n)if(Me(t[n],t[n+1],e))return!1;return!0}function Se(t,e){for(var r=0;r&lt;e.length;r++)if(Ae(t,e[r]))return!0;return!1}function Ee(t,e,r){for(var n=[],i=0;i&lt;t.length;i++){for(var a=[],o=0;o&lt;t[i].length;o++){var s=be(t[i][o],r);ye(e,s),a.push(s)}n.push(a)}return n}function Ce(t,e,r){for(var n=[],i=0;i&lt;t.length;i++){var a=Ee(t[i],e,r);n.push(a)}return n}function Le(t,e,r,n){if(t[0]&lt;r[0]||t[0]&gt;r[2]){var i=.5*n,a=t[0]-r[0]&gt;i?-n:r[0]-t[0]&gt;i?n:0;0===a&amp;&amp;(a=t[0]-r[2]&gt;i?-n:r[2]-t[0]&gt;i?n:0),t[0]+=a}ye(e,t)}function Ie(t,e,r,n){for(var i=8192*Math.pow(2,n.z),a=[8192*n.x,8192*n.y],o=[],s=0,l=t;s&lt;l.length;s+=1)for(var c=0,u=l[s];c&lt;u.length;c+=1){var f=u[c],h=[f.x+a[0],f.y+a[1]];Le(h,e,r,i),o.push(h)}return o}function Pe(t,e,r,n){for(var i,a=8192*Math.pow(2,n.z),o=[8192*n.x,8192*n.y],s=[],l=0,c=t;l&lt;c.length;l+=1){for(var u=[],f=0,h=c[l];f&lt;h.length;f+=1){var p=h[f],d=[p.x+o[0],p.y+o[1]];ye(e,d),u.push(d)}s.push(u)}if(e[2]-e[0]&lt;=a/2){(i=e)[0]=i[1]=1/0,i[2]=i[3]=-1/0;for(var g=0,m=s;g&lt;m.length;g+=1)for(var v=0,y=m[g];v&lt;y.length;v+=1)Le(y[v],e,r,a)}return s}ve.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected one argument.&quot;);var r=t[1];if(&quot;object&quot;!=typeof r||Array.isArray(r))return e.error(&quot;Collator options argument must be an object.&quot;);var n=e.parse(void 0!==r[&quot;case-sensitive&quot;]&amp;&amp;r[&quot;case-sensitive&quot;],1,Ft);if(!n)return null;var i=e.parse(void 0!==r[&quot;diacritic-sensitive&quot;]&amp;&amp;r[&quot;diacritic-sensitive&quot;],1,Ft);if(!i)return null;var a=null;return r.locale&amp;&amp;!(a=e.parse(r.locale,1,Rt))?null:new ve(n,i,a)},ve.prototype.evaluate=function(t){return new Qt(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},ve.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&amp;&amp;t(this.locale)},ve.prototype.outputDefined=function(){return!1},ve.prototype.serialize=function(){var t={};return t[&quot;case-sensitive&quot;]=this.caseSensitive.serialize(),t[&quot;diacritic-sensitive&quot;]=this.diacriticSensitive.serialize(),this.locale&amp;&amp;(t.locale=this.locale.serialize()),[&quot;collator&quot;,t]};var ze=function(t,e){this.type=Ft,this.geojson=t,this.geometries=e};function Oe(t){if(t instanceof me){if(&quot;get&quot;===t.name&amp;&amp;1===t.args.length)return!1;if(&quot;feature-state&quot;===t.name)return!1;if(&quot;has&quot;===t.name&amp;&amp;1===t.args.length)return!1;if(&quot;properties&quot;===t.name||&quot;geometry-type&quot;===t.name||&quot;id&quot;===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof ze)return!1;var e=!0;return t.eachChild((function(t){e&amp;&amp;!Oe(t)&amp;&amp;(e=!1)})),e}function De(t){if(t instanceof me&amp;&amp;&quot;feature-state&quot;===t.name)return!1;var e=!0;return t.eachChild((function(t){e&amp;&amp;!De(t)&amp;&amp;(e=!1)})),e}function Re(t,e){if(t instanceof me&amp;&amp;e.indexOf(t.name)&gt;=0)return!1;var r=!0;return t.eachChild((function(t){r&amp;&amp;!Re(t,e)&amp;&amp;(r=!1)})),r}ze.parse=function(t,e){if(2!==t.length)return e.error(&quot;'within' expression requires exactly one argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);if(ne(t[1])){var r=t[1];if(&quot;FeatureCollection&quot;===r.type)for(var n=0;n&lt;r.features.length;++n){var i=r.features[n].geometry.type;if(&quot;Polygon&quot;===i||&quot;MultiPolygon&quot;===i)return new ze(r,r.features[n].geometry)}else if(&quot;Feature&quot;===r.type){var a=r.geometry.type;if(&quot;Polygon&quot;===a||&quot;MultiPolygon&quot;===a)return new ze(r,r.geometry)}else if(&quot;Polygon&quot;===r.type||&quot;MultiPolygon&quot;===r.type)return new ze(r,r)}return e.error(&quot;'within' expression requires valid geojson object that contains polygon geometry type.&quot;)},ze.prototype.evaluate=function(t){if(null!=t.geometry()&amp;&amp;null!=t.canonicalID()){if(&quot;Point&quot;===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(&quot;Polygon&quot;===e.type){var a=Ee(e.coordinates,n,i),o=Ie(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var s=0,l=o;s&lt;l.length;s+=1)if(!we(l[s],a))return!1}if(&quot;MultiPolygon&quot;===e.type){var c=Ce(e.coordinates,n,i),u=Ie(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var f=0,h=u;f&lt;h.length;f+=1)if(!Te(h[f],c))return!1}return!0}(t,this.geometries);if(&quot;LineString&quot;===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(&quot;Polygon&quot;===e.type){var a=Ee(e.coordinates,n,i),o=Pe(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var s=0,l=o;s&lt;l.length;s+=1)if(!Ae(l[s],a))return!1}if(&quot;MultiPolygon&quot;===e.type){var c=Ce(e.coordinates,n,i),u=Pe(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var f=0,h=u;f&lt;h.length;f+=1)if(!Se(h[f],c))return!1}return!0}(t,this.geometries)}return!1},ze.prototype.eachChild=function(){},ze.prototype.outputDefined=function(){return!0},ze.prototype.serialize=function(){return[&quot;within&quot;,this.geojson]};var Fe=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};Fe.parse=function(t,e){if(2!==t.length||&quot;string&quot;!=typeof t[1])return e.error(&quot;'var' expression requires exactly one string literal argument.&quot;);var r=t[1];return e.scope.has(r)?new Fe(r,e.scope.get(r)):e.error('Unknown variable &quot;'+r+'&quot;. Make sure &quot;'+r+'&quot; has been bound in an enclosing &quot;let&quot; expression before using it.',1)},Fe.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},Fe.prototype.eachChild=function(){},Fe.prototype.outputDefined=function(){return!1},Fe.prototype.serialize=function(){return[&quot;var&quot;,this.name]};var Be=function(t,e,r,n,i){void 0===e&amp;&amp;(e=[]),void 0===n&amp;&amp;(n=new zt),void 0===i&amp;&amp;(i=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return&quot;[&quot;+t+&quot;]&quot;})).join(&quot;&quot;),this.scope=n,this.errors=i,this.expectedType=r};function Ne(t,e){for(var r,n=t.length-1,i=0,a=n,o=0;i&lt;=a;)if((r=t[o=Math.floor((i+a)/2)])&lt;=e){if(o===n||e&lt;t[o+1])return o;i=o+1}else{if(!(r&gt;e))throw new se(&quot;Input is not a number.&quot;);a=o-1}return 0}Be.prototype.parse=function(t,e,r,n,i){return void 0===i&amp;&amp;(i={}),e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)},Be.prototype._parse=function(t,e){function r(t,e,r){return&quot;assert&quot;===r?new ce(e,[t]):&quot;coerce&quot;===r?new pe(e,[t]):t}if(null!==t&amp;&amp;&quot;string&quot;!=typeof t&amp;&amp;&quot;boolean&quot;!=typeof t&amp;&amp;&quot;number&quot;!=typeof t||(t=[&quot;literal&quot;,t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use [&quot;literal&quot;, []].');var n=t[0];if(&quot;string&quot;!=typeof n)return this.error(&quot;Expression name must be a string, but found &quot;+typeof n+' instead. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0),null;var i=this.registry[n];if(i){var a=i.parse(t,this);if(!a)return null;if(this.expectedType){var o=this.expectedType,s=a.type;if(&quot;string&quot;!==o.kind&amp;&amp;&quot;number&quot;!==o.kind&amp;&amp;&quot;boolean&quot;!==o.kind&amp;&amp;&quot;object&quot;!==o.kind&amp;&amp;&quot;array&quot;!==o.kind||&quot;value&quot;!==s.kind)if(&quot;color&quot;!==o.kind&amp;&amp;&quot;formatted&quot;!==o.kind&amp;&amp;&quot;resolvedImage&quot;!==o.kind||&quot;value&quot;!==s.kind&amp;&amp;&quot;string&quot;!==s.kind){if(this.checkSubtype(o,s))return null}else a=r(a,o,e.typeAnnotation||&quot;coerce&quot;);else a=r(a,o,e.typeAnnotation||&quot;assert&quot;)}if(!(a instanceof oe)&amp;&amp;&quot;resolvedImage&quot;!==a.type.kind&amp;&amp;function t(e){if(e instanceof Fe)return t(e.boundExpression);if(e instanceof me&amp;&amp;&quot;error&quot;===e.name)return!1;if(e instanceof ve)return!1;if(e instanceof ze)return!1;var r=e instanceof pe||e instanceof ce,n=!0;return e.eachChild((function(e){n=r?n&amp;&amp;t(e):n&amp;&amp;e instanceof oe})),!!n&amp;&amp;Oe(e)&amp;&amp;Re(e,[&quot;zoom&quot;,&quot;heatmap-density&quot;,&quot;line-progress&quot;,&quot;accumulated&quot;,&quot;is-supported-script&quot;])}(a)){var l=new ge;try{a=new oe(a.type,a.evaluate(l))}catch(t){return this.error(t.message),null}}return a}return this.error('Unknown expression &quot;'+n+'&quot;. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0)}return this.error(void 0===t?&quot;'undefined' value invalid. Use null instead.&quot;:&quot;object&quot;==typeof t?'Bare objects invalid. Use [&quot;literal&quot;, {...}] instead.':&quot;Expected an array, but found &quot;+typeof t+&quot; instead.&quot;)},Be.prototype.concat=function(t,e,r){var n=&quot;number&quot;==typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new Be(this.registry,n,e||null,i,this.errors)},Be.prototype.error=function(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];var n=&quot;&quot;+this.key+e.map((function(t){return&quot;[&quot;+t+&quot;]&quot;})).join(&quot;&quot;);this.errors.push(new Pt(n,t))},Be.prototype.checkSubtype=function(t,e){var r=Wt(t,e);return r&amp;&amp;this.error(r),r};var je=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,i=r;n&lt;i.length;n+=1){var a=i[n],o=a[1];this.labels.push(a[0]),this.outputs.push(o)}};function Ue(t,e,r){return t*(1-r)+e*r}je.parse=function(t,e){if(t.length-1&lt;4)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if((t.length-1)%2!=0)return e.error(&quot;Expected an even number of arguments.&quot;);var r=e.parse(t[1],1,Dt);if(!r)return null;var n=[],i=null;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(i=e.expectedType);for(var a=1;a&lt;t.length;a+=2){var o=1===a?-1/0:t[a],s=t[a+1],l=a,c=a+1;if(&quot;number&quot;!=typeof o)return e.error('Input/output pairs for &quot;step&quot; expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(n.length&amp;&amp;n[n.length-1][0]&gt;=o)return e.error('Input/output pairs for &quot;step&quot; expressions must be arranged with input values in strictly ascending order.',l);var u=e.parse(s,c,i);if(!u)return null;i=i||u.type,n.push([o,u])}return new je(i,r,n)},je.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n&lt;=e[0])return r[0].evaluate(t);var i=e.length;return n&gt;=e[i-1]?r[i-1].evaluate(t):r[Ne(e,n)].evaluate(t)},je.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1)t(r[e])},je.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},je.prototype.serialize=function(){for(var t=[&quot;step&quot;,this.input.serialize()],e=0;e&lt;this.labels.length;e++)e&gt;0&amp;&amp;t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var Ve=Object.freeze({__proto__:null,number:Ue,color:function(t,e,r){return new Kt(Ue(t.r,e.r,r),Ue(t.g,e.g,r),Ue(t.b,e.b,r),Ue(t.a,e.a,r))},array:function(t,e,r){return t.map((function(t,n){return Ue(t,e[n],r)}))}}),qe=6/29*3*(6/29),He=Math.PI/180,Ge=180/Math.PI;function Ye(t){return t&gt;.008856451679035631?Math.pow(t,1/3):t/qe+4/29}function We(t){return t&gt;6/29?t*t*t:qe*(t-4/29)}function Xe(t){return 255*(t&lt;=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ze(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Je(t){var e=Ze(t.r),r=Ze(t.g),n=Ze(t.b),i=Ye((.4124564*e+.3575761*r+.1804375*n)/.95047),a=Ye((.2126729*e+.7151522*r+.072175*n)/1);return{l:116*a-16,a:500*(i-a),b:200*(a-Ye((.0193339*e+.119192*r+.9503041*n)/1.08883)),alpha:t.a}}function Ke(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=1*We(e),r=.95047*We(r),n=1.08883*We(n),new Kt(Xe(3.2404542*r-1.5371385*e-.4985314*n),Xe(-.969266*r+1.8760108*e+.041556*n),Xe(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function Qe(t,e,r){var n=e-t;return t+r*(n&gt;180||n&lt;-180?n-360*Math.round(n/360):n)}var $e={forward:Je,reverse:Ke,interpolate:function(t,e,r){return{l:Ue(t.l,e.l,r),a:Ue(t.a,e.a,r),b:Ue(t.b,e.b,r),alpha:Ue(t.alpha,e.alpha,r)}}},tr={forward:function(t){var e=Je(t),r=e.l,n=e.a,i=e.b,a=Math.atan2(i,n)*Ge;return{h:a&lt;0?a+360:a,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}},reverse:function(t){var e=t.h*He,r=t.c;return Ke({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:Qe(t.h,e.h,r),c:Ue(t.c,e.c,r),l:Ue(t.l,e.l,r),alpha:Ue(t.alpha,e.alpha,r)}}},er=Object.freeze({__proto__:null,lab:$e,hcl:tr}),rr=function(t,e,r,n,i){this.type=t,this.operator=e,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var a=0,o=i;a&lt;o.length;a+=1){var s=o[a],l=s[1];this.labels.push(s[0]),this.outputs.push(l)}};function nr(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}rr.interpolationFactor=function(t,e,n,i){var a=0;if(&quot;exponential&quot;===t.name)a=nr(e,t.base,n,i);else if(&quot;linear&quot;===t.name)a=nr(e,1,n,i);else if(&quot;cubic-bezier&quot;===t.name){var o=t.controlPoints;a=new r(o[0],o[1],o[2],o[3]).solve(nr(e,1,n,i))}return a},rr.parse=function(t,e){var r=t[0],n=t[1],i=t[2],a=t.slice(3);if(!Array.isArray(n)||0===n.length)return e.error(&quot;Expected an interpolation type expression.&quot;,1);if(&quot;linear&quot;===n[0])n={name:&quot;linear&quot;};else if(&quot;exponential&quot;===n[0]){var o=n[1];if(&quot;number&quot;!=typeof o)return e.error(&quot;Exponential interpolation requires a numeric base.&quot;,1,1);n={name:&quot;exponential&quot;,base:o}}else{if(&quot;cubic-bezier&quot;!==n[0])return e.error(&quot;Unknown interpolation type &quot;+String(n[0]),1,0);var s=n.slice(1);if(4!==s.length||s.some((function(t){return&quot;number&quot;!=typeof t||t&lt;0||t&gt;1})))return e.error(&quot;Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.&quot;,1);n={name:&quot;cubic-bezier&quot;,controlPoints:s}}if(t.length-1&lt;4)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if((t.length-1)%2!=0)return e.error(&quot;Expected an even number of arguments.&quot;);if(!(i=e.parse(i,2,Dt)))return null;var l=[],c=null;&quot;interpolate-hcl&quot;===r||&quot;interpolate-lab&quot;===r?c=Bt:e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(c=e.expectedType);for(var u=0;u&lt;a.length;u+=2){var f=a[u],h=a[u+1],p=u+3,d=u+4;if(&quot;number&quot;!=typeof f)return e.error('Input/output pairs for &quot;interpolate&quot; expressions must be defined using literal numeric values (not computed expressions) for the input values.',p);if(l.length&amp;&amp;l[l.length-1][0]&gt;=f)return e.error('Input/output pairs for &quot;interpolate&quot; expressions must be arranged with input values in strictly ascending order.',p);var g=e.parse(h,d,c);if(!g)return null;c=c||g.type,l.push([f,g])}return&quot;number&quot;===c.kind||&quot;color&quot;===c.kind||&quot;array&quot;===c.kind&amp;&amp;&quot;number&quot;===c.itemType.kind&amp;&amp;&quot;number&quot;==typeof c.N?new rr(c,r,n,i,l):e.error(&quot;Type &quot;+Gt(c)+&quot; is not interpolatable.&quot;)},rr.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n&lt;=e[0])return r[0].evaluate(t);var i=e.length;if(n&gt;=e[i-1])return r[i-1].evaluate(t);var a=Ne(e,n),o=rr.interpolationFactor(this.interpolation,n,e[a],e[a+1]),s=r[a].evaluate(t),l=r[a+1].evaluate(t);return&quot;interpolate&quot;===this.operator?Ve[this.type.kind.toLowerCase()](s,l,o):&quot;interpolate-hcl&quot;===this.operator?tr.reverse(tr.interpolate(tr.forward(s),tr.forward(l),o)):$e.reverse($e.interpolate($e.forward(s),$e.forward(l),o))},rr.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1)t(r[e])},rr.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},rr.prototype.serialize=function(){var t;t=&quot;linear&quot;===this.interpolation.name?[&quot;linear&quot;]:&quot;exponential&quot;===this.interpolation.name?1===this.interpolation.base?[&quot;linear&quot;]:[&quot;exponential&quot;,this.interpolation.base]:[&quot;cubic-bezier&quot;].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],r=0;r&lt;this.labels.length;r++)e.push(this.labels[r],this.outputs[r].serialize());return e};var ir=function(t,e){this.type=t,this.args=e};ir.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expectected at least one argument.&quot;);var r=null,n=e.expectedType;n&amp;&amp;&quot;value&quot;!==n.kind&amp;&amp;(r=n);for(var i=[],a=0,o=t.slice(1);a&lt;o.length;a+=1){var s=e.parse(o[a],1+i.length,r,void 0,{typeAnnotation:&quot;omit&quot;});if(!s)return null;r=r||s.type,i.push(s)}var l=n&amp;&amp;i.some((function(t){return Wt(n,t.type)}));return new ir(l?jt:r,i)},ir.prototype.evaluate=function(t){for(var e,r=null,n=0,i=0,a=this.args;i&lt;a.length&amp;&amp;(n++,(r=a[i].evaluate(t))&amp;&amp;r instanceof ee&amp;&amp;!r.available&amp;&amp;(e||(e=r.name),r=null,n===this.args.length&amp;&amp;(r=e)),null===r);i+=1);return r},ir.prototype.eachChild=function(t){this.args.forEach(t)},ir.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ir.prototype.serialize=function(){var t=[&quot;coalesce&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var ar=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};ar.prototype.evaluate=function(t){return this.result.evaluate(t)},ar.prototype.eachChild=function(t){for(var e=0,r=this.bindings;e&lt;r.length;e+=1)t(r[e][1]);t(this.result)},ar.parse=function(t,e){if(t.length&lt;4)return e.error(&quot;Expected at least 3 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);for(var r=[],n=1;n&lt;t.length-1;n+=2){var i=t[n];if(&quot;string&quot;!=typeof i)return e.error(&quot;Expected string, but found &quot;+typeof i+&quot; instead.&quot;,n);if(/[^a-zA-Z0-9_]/.test(i))return e.error(&quot;Variable names must contain only alphanumeric characters or '_'.&quot;,n);var a=e.parse(t[n+1],n+1);if(!a)return null;r.push([i,a])}var o=e.parse(t[t.length-1],t.length-1,e.expectedType,r);return o?new ar(r,o):null},ar.prototype.outputDefined=function(){return this.result.outputDefined()},ar.prototype.serialize=function(){for(var t=[&quot;let&quot;],e=0,r=this.bindings;e&lt;r.length;e+=1){var n=r[e];t.push(n[0],n[1].serialize())}return t.push(this.result.serialize()),t};var or=function(t,e,r){this.type=t,this.index=e,this.input=r};or.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected 2 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,Dt),n=e.parse(t[2],2,Ht(e.expectedType||jt));return r&amp;&amp;n?new or(n.type.itemType,r,n):null},or.prototype.evaluate=function(t){var e=this.index.evaluate(t),r=this.input.evaluate(t);if(e&lt;0)throw new se(&quot;Array index out of bounds: &quot;+e+&quot; &lt; 0.&quot;);if(e&gt;=r.length)throw new se(&quot;Array index out of bounds: &quot;+e+&quot; &gt; &quot;+(r.length-1)+&quot;.&quot;);if(e!==Math.floor(e))throw new se(&quot;Array index must be an integer, but found &quot;+e+&quot; instead.&quot;);return r[e]},or.prototype.eachChild=function(t){t(this.index),t(this.input)},or.prototype.outputDefined=function(){return!1},or.prototype.serialize=function(){return[&quot;at&quot;,this.index.serialize(),this.input.serialize()]};var sr=function(t,e){this.type=Ft,this.needle=t,this.haystack=e};sr.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected 2 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,jt),n=e.parse(t[2],2,jt);return r&amp;&amp;n?Xt(r.type,[Ft,Rt,Dt,Ot,jt])?new sr(r,n):e.error(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(r.type)+&quot; instead&quot;):null},sr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!r)return!1;if(!Zt(e,[&quot;boolean&quot;,&quot;string&quot;,&quot;number&quot;,&quot;null&quot;]))throw new se(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(ie(e))+&quot; instead.&quot;);if(!Zt(r,[&quot;string&quot;,&quot;array&quot;]))throw new se(&quot;Expected second argument to be of type array or string, but found &quot;+Gt(ie(r))+&quot; instead.&quot;);return r.indexOf(e)&gt;=0},sr.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},sr.prototype.outputDefined=function(){return!0},sr.prototype.serialize=function(){return[&quot;in&quot;,this.needle.serialize(),this.haystack.serialize()]};var lr=function(t,e,r){this.type=Dt,this.needle=t,this.haystack=e,this.fromIndex=r};lr.parse=function(t,e){if(t.length&lt;=2||t.length&gt;=5)return e.error(&quot;Expected 3 or 4 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,jt),n=e.parse(t[2],2,jt);if(!r||!n)return null;if(!Xt(r.type,[Ft,Rt,Dt,Ot,jt]))return e.error(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(r.type)+&quot; instead&quot;);if(4===t.length){var i=e.parse(t[3],3,Dt);return i?new lr(r,n,i):null}return new lr(r,n)},lr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!Zt(e,[&quot;boolean&quot;,&quot;string&quot;,&quot;number&quot;,&quot;null&quot;]))throw new se(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(ie(e))+&quot; instead.&quot;);if(!Zt(r,[&quot;string&quot;,&quot;array&quot;]))throw new se(&quot;Expected second argument to be of type array or string, but found &quot;+Gt(ie(r))+&quot; instead.&quot;);if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},lr.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&amp;&amp;t(this.fromIndex)},lr.prototype.outputDefined=function(){return!1},lr.prototype.serialize=function(){if(null!=this.fromIndex&amp;&amp;void 0!==this.fromIndex){var t=this.fromIndex.serialize();return[&quot;index-of&quot;,this.needle.serialize(),this.haystack.serialize(),t]}return[&quot;index-of&quot;,this.needle.serialize(),this.haystack.serialize()]};var cr=function(t,e,r,n,i,a){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=a};cr.parse=function(t,e){if(t.length&lt;5)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if(t.length%2!=1)return e.error(&quot;Expected an even number of arguments.&quot;);var r,n;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(n=e.expectedType);for(var i={},a=[],o=2;o&lt;t.length-1;o+=2){var s=t[o],l=t[o+1];Array.isArray(s)||(s=[s]);var c=e.concat(o);if(0===s.length)return c.error(&quot;Expected at least one branch label.&quot;);for(var u=0,f=s;u&lt;f.length;u+=1){var h=f[u];if(&quot;number&quot;!=typeof h&amp;&amp;&quot;string&quot;!=typeof h)return c.error(&quot;Branch labels must be numbers or strings.&quot;);if(&quot;number&quot;==typeof h&amp;&amp;Math.abs(h)&gt;Number.MAX_SAFE_INTEGER)return c.error(&quot;Branch labels must be integers no larger than &quot;+Number.MAX_SAFE_INTEGER+&quot;.&quot;);if(&quot;number&quot;==typeof h&amp;&amp;Math.floor(h)!==h)return c.error(&quot;Numeric branch labels must be integer values.&quot;);if(r){if(c.checkSubtype(r,ie(h)))return null}else r=ie(h);if(void 0!==i[String(h)])return c.error(&quot;Branch labels must be unique.&quot;);i[String(h)]=a.length}var p=e.parse(l,o,n);if(!p)return null;n=n||p.type,a.push(p)}var d=e.parse(t[1],1,jt);if(!d)return null;var g=e.parse(t[t.length-1],t.length-1,n);return g?&quot;value&quot;!==d.type.kind&amp;&amp;e.concat(1).checkSubtype(r,d.type)?null:new cr(r,n,d,i,a,g):null},cr.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(ie(e)===this.inputType&amp;&amp;this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},cr.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},cr.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&amp;&amp;this.otherwise.outputDefined()},cr.prototype.serialize=function(){for(var t=this,e=[&quot;match&quot;,this.input.serialize()],r=[],n={},i=0,a=Object.keys(this.cases).sort();i&lt;a.length;i+=1){var o=a[i];void 0===(f=n[this.cases[o]])?(n[this.cases[o]]=r.length,r.push([this.cases[o],[o]])):r[f][1].push(o)}for(var s=function(e){return&quot;number&quot;===t.inputType.kind?Number(e):e},l=0,c=r;l&lt;c.length;l+=1){var u=c[l],f=u[0],h=u[1];e.push(1===h.length?s(h[0]):h.map(s)),e.push(this.outputs[outputIndex$1].serialize())}return e.push(this.otherwise.serialize()),e};var ur=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};ur.parse=function(t,e){if(t.length&lt;4)return e.error(&quot;Expected at least 3 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if(t.length%2!=0)return e.error(&quot;Expected an odd number of arguments.&quot;);var r;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(r=e.expectedType);for(var n=[],i=1;i&lt;t.length-1;i+=2){var a=e.parse(t[i],i,Ft);if(!a)return null;var o=e.parse(t[i+1],i+1,r);if(!o)return null;n.push([a,o]),r=r||o.type}var s=e.parse(t[t.length-1],t.length-1,r);return s?new ur(r,n,s):null},ur.prototype.evaluate=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var n=r[e],i=n[1];if(n[0].evaluate(t))return i.evaluate(t)}return this.otherwise.evaluate(t)},ur.prototype.eachChild=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var n=r[e],i=n[1];t(n[0]),t(i)}t(this.otherwise)},ur.prototype.outputDefined=function(){return this.branches.every((function(t){return t[1].outputDefined()}))&amp;&amp;this.otherwise.outputDefined()},ur.prototype.serialize=function(){var t=[&quot;case&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var fr=function(t,e,r,n){this.type=t,this.input=e,this.beginIndex=r,this.endIndex=n};function hr(t,e){return&quot;==&quot;===t||&quot;!=&quot;===t?&quot;boolean&quot;===e.kind||&quot;string&quot;===e.kind||&quot;number&quot;===e.kind||&quot;null&quot;===e.kind||&quot;value&quot;===e.kind:&quot;string&quot;===e.kind||&quot;number&quot;===e.kind||&quot;value&quot;===e.kind}function pr(t,e,r,n){return 0===n.compare(e,r)}function dr(t,e,r){var n=&quot;==&quot;!==t&amp;&amp;&quot;!=&quot;!==t;return function(){function i(t,e,r){this.type=Ft,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument=&quot;value&quot;===t.type.kind||&quot;value&quot;===e.type.kind}return i.parse=function(t,e){if(3!==t.length&amp;&amp;4!==t.length)return e.error(&quot;Expected two or three arguments.&quot;);var r=t[0],a=e.parse(t[1],1,jt);if(!a)return null;if(!hr(r,a.type))return e.concat(1).error('&quot;'+r+&quot;\&quot; comparisons are not supported for type '&quot;+Gt(a.type)+&quot;'.&quot;);var o=e.parse(t[2],2,jt);if(!o)return null;if(!hr(r,o.type))return e.concat(2).error('&quot;'+r+&quot;\&quot; comparisons are not supported for type '&quot;+Gt(o.type)+&quot;'.&quot;);if(a.type.kind!==o.type.kind&amp;&amp;&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind)return e.error(&quot;Cannot compare types '&quot;+Gt(a.type)+&quot;' and '&quot;+Gt(o.type)+&quot;'.&quot;);n&amp;&amp;(&quot;value&quot;===a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind?a=new ce(o.type,[a]):&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;===o.type.kind&amp;&amp;(o=new ce(a.type,[o])));var s=null;if(4===t.length){if(&quot;string&quot;!==a.type.kind&amp;&amp;&quot;string&quot;!==o.type.kind&amp;&amp;&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind)return e.error(&quot;Cannot use collator to compare non-string types.&quot;);if(!(s=e.parse(t[3],3,Ut)))return null}return new i(a,o,s)},i.prototype.evaluate=function(i){var a=this.lhs.evaluate(i),o=this.rhs.evaluate(i);if(n&amp;&amp;this.hasUntypedArgument){var s=ie(a),l=ie(o);if(s.kind!==l.kind||&quot;string&quot;!==s.kind&amp;&amp;&quot;number&quot;!==s.kind)throw new se('Expected arguments for &quot;'+t+'&quot; to be (string, string) or (number, number), but found ('+s.kind+&quot;, &quot;+l.kind+&quot;) instead.&quot;)}if(this.collator&amp;&amp;!n&amp;&amp;this.hasUntypedArgument){var c=ie(a),u=ie(o);if(&quot;string&quot;!==c.kind||&quot;string&quot;!==u.kind)return e(i,a,o)}return this.collator?r(i,a,o,this.collator.evaluate(i)):e(i,a,o)},i.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&amp;&amp;t(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},i}()}fr.parse=function(t,e){if(t.length&lt;=2||t.length&gt;=5)return e.error(&quot;Expected 3 or 4 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,jt),n=e.parse(t[2],2,Dt);if(!r||!n)return null;if(!Xt(r.type,[Ht(jt),Rt,jt]))return e.error(&quot;Expected first argument to be of type array or string, but found &quot;+Gt(r.type)+&quot; instead&quot;);if(4===t.length){var i=e.parse(t[3],3,Dt);return i?new fr(r.type,r,n,i):null}return new fr(r.type,r,n)},fr.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!Zt(e,[&quot;string&quot;,&quot;array&quot;]))throw new se(&quot;Expected first argument to be of type array or string, but found &quot;+Gt(ie(e))+&quot; instead.&quot;);if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},fr.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&amp;&amp;t(this.endIndex)},fr.prototype.outputDefined=function(){return!1},fr.prototype.serialize=function(){if(null!=this.endIndex&amp;&amp;void 0!==this.endIndex){var t=this.endIndex.serialize();return[&quot;slice&quot;,this.input.serialize(),this.beginIndex.serialize(),t]}return[&quot;slice&quot;,this.input.serialize(),this.beginIndex.serialize()]};var gr=dr(&quot;==&quot;,(function(t,e,r){return e===r}),pr),mr=dr(&quot;!=&quot;,(function(t,e,r){return e!==r}),(function(t,e,r,n){return!pr(0,e,r,n)})),vr=dr(&quot;&lt;&quot;,(function(t,e,r){return e&lt;r}),(function(t,e,r,n){return n.compare(e,r)&lt;0})),yr=dr(&quot;&gt;&quot;,(function(t,e,r){return e&gt;r}),(function(t,e,r,n){return n.compare(e,r)&gt;0})),xr=dr(&quot;&lt;=&quot;,(function(t,e,r){return e&lt;=r}),(function(t,e,r,n){return n.compare(e,r)&lt;=0})),br=dr(&quot;&gt;=&quot;,(function(t,e,r){return e&gt;=r}),(function(t,e,r,n){return n.compare(e,r)&gt;=0})),_r=function(t,e,r,n,i){this.type=Rt,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};_r.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected two arguments.&quot;);var r=e.parse(t[1],1,Dt);if(!r)return null;var n=t[2];if(&quot;object&quot;!=typeof n||Array.isArray(n))return e.error(&quot;NumberFormat options argument must be an object.&quot;);var i=null;if(n.locale&amp;&amp;!(i=e.parse(n.locale,1,Rt)))return null;var a=null;if(n.currency&amp;&amp;!(a=e.parse(n.currency,1,Rt)))return null;var o=null;if(n[&quot;min-fraction-digits&quot;]&amp;&amp;!(o=e.parse(n[&quot;min-fraction-digits&quot;],1,Dt)))return null;var s=null;return n[&quot;max-fraction-digits&quot;]&amp;&amp;!(s=e.parse(n[&quot;max-fraction-digits&quot;],1,Dt))?null:new _r(r,i,a,o,s)},_r.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?&quot;currency&quot;:&quot;decimal&quot;,currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},_r.prototype.eachChild=function(t){t(this.number),this.locale&amp;&amp;t(this.locale),this.currency&amp;&amp;t(this.currency),this.minFractionDigits&amp;&amp;t(this.minFractionDigits),this.maxFractionDigits&amp;&amp;t(this.maxFractionDigits)},_r.prototype.outputDefined=function(){return!1},_r.prototype.serialize=function(){var t={};return this.locale&amp;&amp;(t.locale=this.locale.serialize()),this.currency&amp;&amp;(t.currency=this.currency.serialize()),this.minFractionDigits&amp;&amp;(t[&quot;min-fraction-digits&quot;]=this.minFractionDigits.serialize()),this.maxFractionDigits&amp;&amp;(t[&quot;max-fraction-digits&quot;]=this.maxFractionDigits.serialize()),[&quot;number-format&quot;,this.number.serialize(),t]};var wr=function(t){this.type=Dt,this.input=t};wr.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected 1 argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1);return r?&quot;array&quot;!==r.type.kind&amp;&amp;&quot;string&quot;!==r.type.kind&amp;&amp;&quot;value&quot;!==r.type.kind?e.error(&quot;Expected argument of type string or array, but found &quot;+Gt(r.type)+&quot; instead.&quot;):new wr(r):null},wr.prototype.evaluate=function(t){var e=this.input.evaluate(t);if(&quot;string&quot;==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new se(&quot;Expected value to be of type string or array, but found &quot;+Gt(ie(e))+&quot; instead.&quot;)},wr.prototype.eachChild=function(t){t(this.input)},wr.prototype.outputDefined=function(){return!1},wr.prototype.serialize=function(){var t=[&quot;length&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var Tr={&quot;==&quot;:gr,&quot;!=&quot;:mr,&quot;&gt;&quot;:yr,&quot;&lt;&quot;:vr,&quot;&gt;=&quot;:br,&quot;&lt;=&quot;:xr,array:ce,at:or,boolean:ce,case:ur,coalesce:ir,collator:ve,format:ue,image:fe,in:sr,&quot;index-of&quot;:lr,interpolate:rr,&quot;interpolate-hcl&quot;:rr,&quot;interpolate-lab&quot;:rr,length:wr,let:ar,literal:oe,match:cr,number:ce,&quot;number-format&quot;:_r,object:ce,slice:fr,step:je,string:ce,&quot;to-boolean&quot;:pe,&quot;to-color&quot;:pe,&quot;to-number&quot;:pe,&quot;to-string&quot;:pe,var:Fe,within:ze};function kr(t,e){var r=e[0],n=e[1],i=e[2],a=e[3];r=r.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);var o=a?a.evaluate(t):1,s=re(r,n,i,o);if(s)throw new se(s);return new Kt(r/255*o,n/255*o,i/255*o,o)}function Mr(t,e){return t in e}function Ar(t,e){var r=e[t];return void 0===r?null:r}function Sr(t){return{type:t}}function Er(t){return{result:&quot;success&quot;,value:t}}function Cr(t){return{result:&quot;error&quot;,value:t}}function Lr(t){return&quot;data-driven&quot;===t[&quot;property-type&quot;]||&quot;cross-faded-data-driven&quot;===t[&quot;property-type&quot;]}function Ir(t){return!!t.expression&amp;&amp;t.expression.parameters.indexOf(&quot;zoom&quot;)&gt;-1}function Pr(t){return!!t.expression&amp;&amp;t.expression.interpolated}function zr(t){return t instanceof Number?&quot;number&quot;:t instanceof String?&quot;string&quot;:t instanceof Boolean?&quot;boolean&quot;:Array.isArray(t)?&quot;array&quot;:null===t?&quot;null&quot;:typeof t}function Or(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)}function Dr(t){return t}function Rr(t,e,r){return void 0!==t?t:void 0!==e?e:void 0!==r?r:void 0}function Fr(t,e,r,n,i){return Rr(typeof r===i?n[r]:void 0,t.default,e.default)}function Br(t,e,r){if(&quot;number&quot;!==zr(r))return Rr(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[n-1][0])return t.stops[n-1][1];var i=Ne(t.stops.map((function(t){return t[0]})),r);return t.stops[i][1]}function Nr(t,e,r){var n=void 0!==t.base?t.base:1;if(&quot;number&quot;!==zr(r))return Rr(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[i-1][0])return t.stops[i-1][1];var a=Ne(t.stops.map((function(t){return t[0]})),r),o=function(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}(r,n,t.stops[a][0],t.stops[a+1][0]),s=t.stops[a][1],l=t.stops[a+1][1],c=Ve[e.type]||Dr;if(t.colorSpace&amp;&amp;&quot;rgb&quot;!==t.colorSpace){var u=er[t.colorSpace];c=function(t,e){return u.reverse(u.interpolate(u.forward(t),u.forward(e),o))}}return&quot;function&quot;==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=s.evaluate.apply(void 0,t),n=l.evaluate.apply(void 0,t);if(void 0!==r&amp;&amp;void 0!==n)return c(r,n,o)}}:c(s,l,o)}function jr(t,e,r){return&quot;color&quot;===e.type?r=Kt.parse(r):&quot;formatted&quot;===e.type?r=te.fromString(r.toString()):&quot;resolvedImage&quot;===e.type?r=ee.fromString(r.toString()):zr(r)===e.type||&quot;enum&quot;===e.type&amp;&amp;e.values[r]||(r=void 0),Rr(r,t.default,e.default)}me.register(Tr,{error:[{kind:&quot;error&quot;},[Rt],function(t,e){throw new se(e[0].evaluate(t))}],typeof:[Rt,[jt],function(t,e){return Gt(ie(e[0].evaluate(t)))}],&quot;to-rgba&quot;:[Ht(Dt,4),[Bt],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Bt,[Dt,Dt,Dt],kr],rgba:[Bt,[Dt,Dt,Dt,Dt],kr],has:{type:Ft,overloads:[[[Rt],function(t,e){return Mr(e[0].evaluate(t),t.properties())}],[[Rt,Nt],function(t,e){var r=e[1];return Mr(e[0].evaluate(t),r.evaluate(t))}]]},get:{type:jt,overloads:[[[Rt],function(t,e){return Ar(e[0].evaluate(t),t.properties())}],[[Rt,Nt],function(t,e){var r=e[1];return Ar(e[0].evaluate(t),r.evaluate(t))}]]},&quot;feature-state&quot;:[jt,[Rt],function(t,e){return Ar(e[0].evaluate(t),t.featureState||{})}],properties:[Nt,[],function(t){return t.properties()}],&quot;geometry-type&quot;:[Rt,[],function(t){return t.geometryType()}],id:[jt,[],function(t){return t.id()}],zoom:[Dt,[],function(t){return t.globals.zoom}],&quot;heatmap-density&quot;:[Dt,[],function(t){return t.globals.heatmapDensity||0}],&quot;line-progress&quot;:[Dt,[],function(t){return t.globals.lineProgress||0}],accumulated:[jt,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],&quot;+&quot;:[Dt,Sr(Dt),function(t,e){for(var r=0,n=0,i=e;n&lt;i.length;n+=1)r+=i[n].evaluate(t);return r}],&quot;*&quot;:[Dt,Sr(Dt),function(t,e){for(var r=1,n=0,i=e;n&lt;i.length;n+=1)r*=i[n].evaluate(t);return r}],&quot;-&quot;:{type:Dt,overloads:[[[Dt,Dt],function(t,e){var r=e[1];return e[0].evaluate(t)-r.evaluate(t)}],[[Dt],function(t,e){return-e[0].evaluate(t)}]]},&quot;/&quot;:[Dt,[Dt,Dt],function(t,e){var r=e[1];return e[0].evaluate(t)/r.evaluate(t)}],&quot;%&quot;:[Dt,[Dt,Dt],function(t,e){var r=e[1];return e[0].evaluate(t)%r.evaluate(t)}],ln2:[Dt,[],function(){return Math.LN2}],pi:[Dt,[],function(){return Math.PI}],e:[Dt,[],function(){return Math.E}],&quot;^&quot;:[Dt,[Dt,Dt],function(t,e){var r=e[1];return Math.pow(e[0].evaluate(t),r.evaluate(t))}],sqrt:[Dt,[Dt],function(t,e){return Math.sqrt(e[0].evaluate(t))}],log10:[Dt,[Dt],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN10}],ln:[Dt,[Dt],function(t,e){return Math.log(e[0].evaluate(t))}],log2:[Dt,[Dt],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN2}],sin:[Dt,[Dt],function(t,e){return Math.sin(e[0].evaluate(t))}],cos:[Dt,[Dt],function(t,e){return Math.cos(e[0].evaluate(t))}],tan:[Dt,[Dt],function(t,e){return Math.tan(e[0].evaluate(t))}],asin:[Dt,[Dt],function(t,e){return Math.asin(e[0].evaluate(t))}],acos:[Dt,[Dt],function(t,e){return Math.acos(e[0].evaluate(t))}],atan:[Dt,[Dt],function(t,e){return Math.atan(e[0].evaluate(t))}],min:[Dt,Sr(Dt),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[Dt,Sr(Dt),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[Dt,[Dt],function(t,e){return Math.abs(e[0].evaluate(t))}],round:[Dt,[Dt],function(t,e){var r=e[0].evaluate(t);return r&lt;0?-Math.round(-r):Math.round(r)}],floor:[Dt,[Dt],function(t,e){return Math.floor(e[0].evaluate(t))}],ceil:[Dt,[Dt],function(t,e){return Math.ceil(e[0].evaluate(t))}],&quot;filter-==&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1];return t.properties()[r.value]===n.value}],&quot;filter-id-==&quot;:[Ft,[jt],function(t,e){var r=e[0];return t.id()===r.value}],&quot;filter-type-==&quot;:[Ft,[Rt],function(t,e){var r=e[0];return t.geometryType()===r.value}],&quot;filter-&lt;&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&lt;a}],&quot;filter-id-&lt;&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&lt;i}],&quot;filter-&gt;&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&gt;a}],&quot;filter-id-&gt;&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&gt;i}],&quot;filter-&lt;=&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&lt;=a}],&quot;filter-id-&lt;=&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&lt;=i}],&quot;filter-&gt;=&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&gt;=a}],&quot;filter-id-&gt;=&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&gt;=i}],&quot;filter-has&quot;:[Ft,[jt],function(t,e){return e[0].value in t.properties()}],&quot;filter-has-id&quot;:[Ft,[],function(t){return null!==t.id()&amp;&amp;void 0!==t.id()}],&quot;filter-type-in&quot;:[Ft,[Ht(Rt)],function(t,e){return e[0].value.indexOf(t.geometryType())&gt;=0}],&quot;filter-id-in&quot;:[Ft,[Ht(jt)],function(t,e){return e[0].value.indexOf(t.id())&gt;=0}],&quot;filter-in-small&quot;:[Ft,[Rt,Ht(jt)],function(t,e){var r=e[0];return e[1].value.indexOf(t.properties()[r.value])&gt;=0}],&quot;filter-in-large&quot;:[Ft,[Rt,Ht(jt)],function(t,e){var r=e[0],n=e[1];return function(t,e,r,n){for(;r&lt;=n;){var i=r+n&gt;&gt;1;if(e[i]===t)return!0;e[i]&gt;t?n=i-1:r=i+1}return!1}(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:Ft,overloads:[[[Ft,Ft],function(t,e){var r=e[1];return e[0].evaluate(t)&amp;&amp;r.evaluate(t)}],[Sr(Ft),function(t,e){for(var r=0,n=e;r&lt;n.length;r+=1)if(!n[r].evaluate(t))return!1;return!0}]]},any:{type:Ft,overloads:[[[Ft,Ft],function(t,e){var r=e[1];return e[0].evaluate(t)||r.evaluate(t)}],[Sr(Ft),function(t,e){for(var r=0,n=e;r&lt;n.length;r+=1)if(n[r].evaluate(t))return!0;return!1}]]},&quot;!&quot;:[Ft,[Ft],function(t,e){return!e[0].evaluate(t)}],&quot;is-supported-script&quot;:[Ft,[Rt],function(t,e){var r=t.globals&amp;&amp;t.globals.isSupportedScript;return!r||r(e[0].evaluate(t))}],upcase:[Rt,[Rt],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[Rt,[Rt],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[Rt,Sr(jt),function(t,e){return e.map((function(e){return ae(e.evaluate(t))})).join(&quot;&quot;)}],&quot;resolved-locale&quot;:[Rt,[Ut],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var Ur=function(t,e){this.expression=t,this._warningHistory={},this._evaluator=new ge,this._defaultValue=e?function(t){return&quot;color&quot;===t.type&amp;&amp;Or(t.default)?new Kt(0,0,0,0):&quot;color&quot;===t.type?Kt.parse(t.default)||null:void 0===t.default?null:t.default}(e):null,this._enumValues=e&amp;&amp;&quot;enum&quot;===e.type?e.values:null};function Vr(t){return Array.isArray(t)&amp;&amp;t.length&gt;0&amp;&amp;&quot;string&quot;==typeof t[0]&amp;&amp;t[0]in Tr}function qr(t,e){var r=new Be(Tr,[],e?function(t){var e={color:Bt,string:Rt,number:Dt,enum:Rt,boolean:Ft,formatted:Vt,resolvedImage:qt};return&quot;array&quot;===t.type?Ht(e[t.value]||jt,t.length):e[t.type]}(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&amp;&amp;&quot;string&quot;===e.type?{typeAnnotation:&quot;coerce&quot;}:void 0);return n?Er(new Ur(n,e)):Cr(r.errors)}Ur.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)},Ur.prototype.evaluate=function(t,e,r,n,i,a){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a||null;try{var o=this.expression.evaluate(this._evaluator);if(null==o||&quot;number&quot;==typeof o&amp;&amp;o!=o)return this._defaultValue;if(this._enumValues&amp;&amp;!(o in this._enumValues))throw new se(&quot;Expected value to be one of &quot;+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(&quot;, &quot;)+&quot;, but found &quot;+JSON.stringify(o)+&quot; instead.&quot;);return o}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,&quot;undefined&quot;!=typeof console&amp;&amp;console.warn(t.message)),this._defaultValue}};var Hr=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent=&quot;constant&quot;!==t&amp;&amp;!De(e.expression)};Hr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},Hr.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)};var Gr=function(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent=&quot;camera&quot;!==t&amp;&amp;!De(e.expression),this.interpolationType=n};function Yr(t,e){if(&quot;error&quot;===(t=qr(t,e)).result)return t;var r=t.value.expression,n=Oe(r);if(!n&amp;&amp;!Lr(e))return Cr([new Pt(&quot;&quot;,&quot;data expressions not supported&quot;)]);var i=Re(r,[&quot;zoom&quot;]);if(!i&amp;&amp;!Ir(e))return Cr([new Pt(&quot;&quot;,&quot;zoom expressions not supported&quot;)]);var a=function t(e){var r=null;if(e instanceof ar)r=t(e.result);else if(e instanceof ir)for(var n=0,i=e.args;n&lt;i.length&amp;&amp;!(r=t(i[n]));n+=1);else(e instanceof je||e instanceof rr)&amp;&amp;e.input instanceof me&amp;&amp;&quot;zoom&quot;===e.input.name&amp;&amp;(r=e);return r instanceof Pt||e.eachChild((function(e){var n=t(e);n instanceof Pt?r=n:!r&amp;&amp;n?r=new Pt(&quot;&quot;,'&quot;zoom&quot; expression may only be used as input to a top-level &quot;step&quot; or &quot;interpolate&quot; expression.'):r&amp;&amp;n&amp;&amp;r!==n&amp;&amp;(r=new Pt(&quot;&quot;,'Only one zoom-based &quot;step&quot; or &quot;interpolate&quot; subexpression may be used in an expression.'))})),r}(r);return a||i?a instanceof Pt?Cr([a]):a instanceof rr&amp;&amp;!Pr(e)?Cr([new Pt(&quot;&quot;,'&quot;interpolate&quot; expressions cannot be used with this property')]):Er(a?new Gr(n?&quot;camera&quot;:&quot;composite&quot;,t.value,a.labels,a instanceof rr?a.interpolation:void 0):new Hr(n?&quot;constant&quot;:&quot;source&quot;,t.value)):Cr([new Pt(&quot;&quot;,'&quot;zoom&quot; expression may only be used as input to a top-level &quot;step&quot; or &quot;interpolate&quot; expression.')])}Gr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},Gr.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)},Gr.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?rr.interpolationFactor(this.interpolationType,t,e,r):0};var Wr=function(t,e){this._parameters=t,this._specification=e,Ct(this,function t(e,r){var n,i,a,o=&quot;color&quot;===r.type,s=e.stops&amp;&amp;&quot;object&quot;==typeof e.stops[0][0],l=s||!(s||void 0!==e.property),c=e.type||(Pr(r)?&quot;exponential&quot;:&quot;interval&quot;);if(o&amp;&amp;((e=Ct({},e)).stops&amp;&amp;(e.stops=e.stops.map((function(t){return[t[0],Kt.parse(t[1])]}))),e.default=Kt.parse(e.default?e.default:r.default)),e.colorSpace&amp;&amp;&quot;rgb&quot;!==e.colorSpace&amp;&amp;!er[e.colorSpace])throw new Error(&quot;Unknown color space: &quot;+e.colorSpace);if(&quot;exponential&quot;===c)n=Nr;else if(&quot;interval&quot;===c)n=Br;else if(&quot;categorical&quot;===c){n=Fr,i=Object.create(null);for(var u=0,f=e.stops;u&lt;f.length;u+=1){var h=f[u];i[h[0]]=h[1]}a=typeof e.stops[0][0]}else{if(&quot;identity&quot;!==c)throw new Error('Unknown function type &quot;'+c+'&quot;');n=jr}if(s){for(var p={},d=[],g=0;g&lt;e.stops.length;g++){var m=e.stops[g],v=m[0].zoom;void 0===p[v]&amp;&amp;(p[v]={zoom:v,type:e.type,property:e.property,default:e.default,stops:[]},d.push(v)),p[v].stops.push([m[0].value,m[1]])}for(var y=[],x=0,b=d;x&lt;b.length;x+=1){var _=b[x];y.push([p[_].zoom,t(p[_],r)])}var w={name:&quot;linear&quot;};return{kind:&quot;composite&quot;,interpolationType:w,interpolationFactor:rr.interpolationFactor.bind(void 0,w),zoomStops:y.map((function(t){return t[0]})),evaluate:function(t,n){var i=t.zoom;return Nr({stops:y,base:e.base},r,i).evaluate(i,n)}}}if(l){var T=&quot;exponential&quot;===c?{name:&quot;exponential&quot;,base:void 0!==e.base?e.base:1}:null;return{kind:&quot;camera&quot;,interpolationType:T,interpolationFactor:rr.interpolationFactor.bind(void 0,T),zoomStops:e.stops.map((function(t){return t[0]})),evaluate:function(t){return n(e,r,t.zoom,i,a)}}}return{kind:&quot;source&quot;,evaluate:function(t,o){var s=o&amp;&amp;o.properties?o.properties[e.property]:void 0;return void 0===s?Rr(e.default,r.default):n(e,r,s,i,a)}}}(this._parameters,this._specification))};function Xr(t){var e=t.key,r=t.value,n=t.valueSpec||{},i=t.objectElementValidators||{},a=t.style,o=t.styleSpec,s=[],l=zr(r);if(&quot;object&quot;!==l)return[new St(e,r,&quot;object expected, &quot;+l+&quot; found&quot;)];for(var c in r){var u=c.split(&quot;.&quot;)[0],f=n[u]||n[&quot;*&quot;],h=void 0;if(i[u])h=i[u];else if(n[u])h=bn;else if(i[&quot;*&quot;])h=i[&quot;*&quot;];else{if(!n[&quot;*&quot;]){s.push(new St(e,r[c],'unknown property &quot;'+c+'&quot;'));continue}h=bn}s=s.concat(h({key:(e?e+&quot;.&quot;:e)+c,value:r[c],valueSpec:f,style:a,styleSpec:o,object:r,objectKey:c},r))}for(var p in n)i[p]||n[p].required&amp;&amp;void 0===n[p].default&amp;&amp;void 0===r[p]&amp;&amp;s.push(new St(e,r,'missing required property &quot;'+p+'&quot;'));return s}function Zr(t){var e=t.value,r=t.valueSpec,n=t.style,i=t.styleSpec,a=t.key,o=t.arrayElementValidator||bn;if(&quot;array&quot;!==zr(e))return[new St(a,e,&quot;array expected, &quot;+zr(e)+&quot; found&quot;)];if(r.length&amp;&amp;e.length!==r.length)return[new St(a,e,&quot;array length &quot;+r.length+&quot; expected, length &quot;+e.length+&quot; found&quot;)];if(r[&quot;min-length&quot;]&amp;&amp;e.length&lt;r[&quot;min-length&quot;])return[new St(a,e,&quot;array length at least &quot;+r[&quot;min-length&quot;]+&quot; expected, length &quot;+e.length+&quot; found&quot;)];var s={type:r.value,values:r.values};i.$version&lt;7&amp;&amp;(s.function=r.function),&quot;object&quot;===zr(r.value)&amp;&amp;(s=r.value);for(var l=[],c=0;c&lt;e.length;c++)l=l.concat(o({array:e,arrayIndex:c,value:e[c],valueSpec:s,style:n,styleSpec:i,key:a+&quot;[&quot;+c+&quot;]&quot;}));return l}function Jr(t){var e=t.key,r=t.value,n=t.valueSpec,i=zr(r);return&quot;number&quot;===i&amp;&amp;r!=r&amp;&amp;(i=&quot;NaN&quot;),&quot;number&quot;!==i?[new St(e,r,&quot;number expected, &quot;+i+&quot; found&quot;)]:&quot;minimum&quot;in n&amp;&amp;r&lt;n.minimum?[new St(e,r,r+&quot; is less than the minimum value &quot;+n.minimum)]:&quot;maximum&quot;in n&amp;&amp;r&gt;n.maximum?[new St(e,r,r+&quot; is greater than the maximum value &quot;+n.maximum)]:[]}function Kr(t){var e,r,n,i=t.valueSpec,a=Lt(t.value.type),o={},s=&quot;categorical&quot;!==a&amp;&amp;void 0===t.value.property,l=!s,c=&quot;array&quot;===zr(t.value.stops)&amp;&amp;&quot;array&quot;===zr(t.value.stops[0])&amp;&amp;&quot;object&quot;===zr(t.value.stops[0][0]),u=Xr({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if(&quot;identity&quot;===a)return[new St(t.key,t.value,'identity function may not have a &quot;stops&quot; property')];var e=[],r=t.value;return e=e.concat(Zr({key:t.key,value:r,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:f})),&quot;array&quot;===zr(r)&amp;&amp;0===r.length&amp;&amp;e.push(new St(t.key,r,&quot;array must have at least one stop&quot;)),e},default:function(t){return bn({key:t.key,value:t.value,valueSpec:i,style:t.style,styleSpec:t.styleSpec})}}});return&quot;identity&quot;===a&amp;&amp;s&amp;&amp;u.push(new St(t.key,t.value,'missing required property &quot;property&quot;')),&quot;identity&quot;===a||t.value.stops||u.push(new St(t.key,t.value,'missing required property &quot;stops&quot;')),&quot;exponential&quot;===a&amp;&amp;t.valueSpec.expression&amp;&amp;!Pr(t.valueSpec)&amp;&amp;u.push(new St(t.key,t.value,&quot;exponential functions not supported&quot;)),t.styleSpec.$version&gt;=8&amp;&amp;(l&amp;&amp;!Lr(t.valueSpec)?u.push(new St(t.key,t.value,&quot;property functions not supported&quot;)):s&amp;&amp;!Ir(t.valueSpec)&amp;&amp;u.push(new St(t.key,t.value,&quot;zoom functions not supported&quot;))),&quot;categorical&quot;!==a&amp;&amp;!c||void 0!==t.value.property||u.push(new St(t.key,t.value,'&quot;property&quot; property is required')),u;function f(t){var e=[],a=t.value,s=t.key;if(&quot;array&quot;!==zr(a))return[new St(s,a,&quot;array expected, &quot;+zr(a)+&quot; found&quot;)];if(2!==a.length)return[new St(s,a,&quot;array length 2 expected, length &quot;+a.length+&quot; found&quot;)];if(c){if(&quot;object&quot;!==zr(a[0]))return[new St(s,a,&quot;object expected, &quot;+zr(a[0])+&quot; found&quot;)];if(void 0===a[0].zoom)return[new St(s,a,&quot;object stop key must have zoom&quot;)];if(void 0===a[0].value)return[new St(s,a,&quot;object stop key must have value&quot;)];if(n&amp;&amp;n&gt;Lt(a[0].zoom))return[new St(s,a[0].zoom,&quot;stop zoom values must appear in ascending order&quot;)];Lt(a[0].zoom)!==n&amp;&amp;(n=Lt(a[0].zoom),r=void 0,o={}),e=e.concat(Xr({key:s+&quot;[0]&quot;,value:a[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:Jr,value:h}}))}else e=e.concat(h({key:s+&quot;[0]&quot;,value:a[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},a));return Vr(It(a[1]))?e.concat([new St(s+&quot;[1]&quot;,a[1],&quot;expressions are not allowed in function stops.&quot;)]):e.concat(bn({key:s+&quot;[1]&quot;,value:a[1],valueSpec:i,style:t.style,styleSpec:t.styleSpec}))}function h(t,n){var s=zr(t.value),l=Lt(t.value),c=null!==t.value?t.value:n;if(e){if(s!==e)return[new St(t.key,c,s+&quot; stop domain type must match previous stop domain type &quot;+e)]}else e=s;if(&quot;number&quot;!==s&amp;&amp;&quot;string&quot;!==s&amp;&amp;&quot;boolean&quot;!==s)return[new St(t.key,c,&quot;stop domain value must be a number, string, or boolean&quot;)];if(&quot;number&quot;!==s&amp;&amp;&quot;categorical&quot;!==a){var u=&quot;number expected, &quot;+s+&quot; found&quot;;return Lr(i)&amp;&amp;void 0===a&amp;&amp;(u+='\nIf you intended to use a categorical function, specify `&quot;type&quot;: &quot;categorical&quot;`.'),[new St(t.key,c,u)]}return&quot;categorical&quot;!==a||&quot;number&quot;!==s||isFinite(l)&amp;&amp;Math.floor(l)===l?&quot;categorical&quot;!==a&amp;&amp;&quot;number&quot;===s&amp;&amp;void 0!==r&amp;&amp;l&lt;r?[new St(t.key,c,&quot;stop domain values must appear in ascending order&quot;)]:(r=l,&quot;categorical&quot;===a&amp;&amp;l in o?[new St(t.key,c,&quot;stop domain values must be unique&quot;)]:(o[l]=!0,[])):[new St(t.key,c,&quot;integer expected, found &quot;+l)]}}function Qr(t){var e=(&quot;property&quot;===t.expressionContext?Yr:qr)(It(t.value),t.valueSpec);if(&quot;error&quot;===e.result)return e.value.map((function(e){return new St(&quot;&quot;+t.key+e.key,t.value,e.message)}));var r=e.value.expression||e.value._styleExpression.expression;if(&quot;property&quot;===t.expressionContext&amp;&amp;&quot;text-font&quot;===t.propertyKey&amp;&amp;!r.outputDefined())return[new St(t.key,t.value,'Invalid data expression for &quot;'+t.propertyKey+'&quot;. Output values must be contained as literals within the expression.')];if(&quot;property&quot;===t.expressionContext&amp;&amp;&quot;layout&quot;===t.propertyType&amp;&amp;!De(r))return[new St(t.key,t.value,'&quot;feature-state&quot; data expressions are not supported with layout properties.')];if(&quot;filter&quot;===t.expressionContext&amp;&amp;!De(r))return[new St(t.key,t.value,'&quot;feature-state&quot; data expressions are not supported with filters.')];if(t.expressionContext&amp;&amp;0===t.expressionContext.indexOf(&quot;cluster&quot;)){if(!Re(r,[&quot;zoom&quot;,&quot;feature-state&quot;]))return[new St(t.key,t.value,'&quot;zoom&quot; and &quot;feature-state&quot; expressions are not supported with cluster properties.')];if(&quot;cluster-initial&quot;===t.expressionContext&amp;&amp;!Oe(r))return[new St(t.key,t.value,&quot;Feature data expressions are not supported with initial expression part of cluster properties.&quot;)]}return[]}function $r(t){var e=t.key,r=t.value,n=t.valueSpec,i=[];return Array.isArray(n.values)?-1===n.values.indexOf(Lt(r))&amp;&amp;i.push(new St(e,r,&quot;expected one of [&quot;+n.values.join(&quot;, &quot;)+&quot;], &quot;+JSON.stringify(r)+&quot; found&quot;)):-1===Object.keys(n.values).indexOf(Lt(r))&amp;&amp;i.push(new St(e,r,&quot;expected one of [&quot;+Object.keys(n.values).join(&quot;, &quot;)+&quot;], &quot;+JSON.stringify(r)+&quot; found&quot;)),i}function tn(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case&quot;has&quot;:return t.length&gt;=2&amp;&amp;&quot;$id&quot;!==t[1]&amp;&amp;&quot;$type&quot;!==t[1];case&quot;in&quot;:return t.length&gt;=3&amp;&amp;(&quot;string&quot;!=typeof t[1]||Array.isArray(t[2]));case&quot;!in&quot;:case&quot;!has&quot;:case&quot;none&quot;:return!1;case&quot;==&quot;:case&quot;!=&quot;:case&quot;&gt;&quot;:case&quot;&gt;=&quot;:case&quot;&lt;&quot;:case&quot;&lt;=&quot;:return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case&quot;any&quot;:case&quot;all&quot;:for(var e=0,r=t.slice(1);e&lt;r.length;e+=1){var n=r[e];if(!tn(n)&amp;&amp;&quot;boolean&quot;!=typeof n)return!1}return!0;default:return!0}}Wr.deserialize=function(t){return new Wr(t._parameters,t._specification)},Wr.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var en={type:&quot;boolean&quot;,default:!1,transition:!1,&quot;property-type&quot;:&quot;data-driven&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]}};function rn(t){if(null==t)return{filter:function(){return!0},needGeometry:!1};tn(t)||(t=an(t));var e=qr(t,en);if(&quot;error&quot;===e.result)throw new Error(e.value.map((function(t){return t.key+&quot;: &quot;+t.message})).join(&quot;, &quot;));return{filter:function(t,r,n){return e.value.evaluate(t,r,{},n)},needGeometry:function t(e){if(!Array.isArray(e))return!1;if(&quot;within&quot;===e[0])return!0;for(var r=1;r&lt;e.length;r++)if(t(e[r]))return!0;return!1}(t)}}function nn(t,e){return t&lt;e?-1:t&gt;e?1:0}function an(t){if(!t)return!0;var e,r=t[0];return t.length&lt;=1?&quot;any&quot;!==r:&quot;==&quot;===r?on(t[1],t[2],&quot;==&quot;):&quot;!=&quot;===r?cn(on(t[1],t[2],&quot;==&quot;)):&quot;&lt;&quot;===r||&quot;&gt;&quot;===r||&quot;&lt;=&quot;===r||&quot;&gt;=&quot;===r?on(t[1],t[2],r):&quot;any&quot;===r?(e=t.slice(1),[&quot;any&quot;].concat(e.map(an))):&quot;all&quot;===r?[&quot;all&quot;].concat(t.slice(1).map(an)):&quot;none&quot;===r?[&quot;all&quot;].concat(t.slice(1).map(an).map(cn)):&quot;in&quot;===r?sn(t[1],t.slice(2)):&quot;!in&quot;===r?cn(sn(t[1],t.slice(2))):&quot;has&quot;===r?ln(t[1]):&quot;!has&quot;===r?cn(ln(t[1])):&quot;within&quot;!==r||t}function on(t,e,r){switch(t){case&quot;$type&quot;:return[&quot;filter-type-&quot;+r,e];case&quot;$id&quot;:return[&quot;filter-id-&quot;+r,e];default:return[&quot;filter-&quot;+r,t,e]}}function sn(t,e){if(0===e.length)return!1;switch(t){case&quot;$type&quot;:return[&quot;filter-type-in&quot;,[&quot;literal&quot;,e]];case&quot;$id&quot;:return[&quot;filter-id-in&quot;,[&quot;literal&quot;,e]];default:return e.length&gt;200&amp;&amp;!e.some((function(t){return typeof t!=typeof e[0]}))?[&quot;filter-in-large&quot;,t,[&quot;literal&quot;,e.sort(nn)]]:[&quot;filter-in-small&quot;,t,[&quot;literal&quot;,e]]}}function ln(t){switch(t){case&quot;$type&quot;:return!0;case&quot;$id&quot;:return[&quot;filter-has-id&quot;];default:return[&quot;filter-has&quot;,t]}}function cn(t){return[&quot;!&quot;,t]}function un(t){return tn(It(t.value))?Qr(Ct({},t,{expressionContext:&quot;filter&quot;,valueSpec:{value:&quot;boolean&quot;}})):function t(e){var r=e.value,n=e.key;if(&quot;array&quot;!==zr(r))return[new St(n,r,&quot;array expected, &quot;+zr(r)+&quot; found&quot;)];var i,a=e.styleSpec,o=[];if(r.length&lt;1)return[new St(n,r,&quot;filter array must have at least 1 element&quot;)];switch(o=o.concat($r({key:n+&quot;[0]&quot;,value:r[0],valueSpec:a.filter_operator,style:e.style,styleSpec:e.styleSpec})),Lt(r[0])){case&quot;&lt;&quot;:case&quot;&lt;=&quot;:case&quot;&gt;&quot;:case&quot;&gt;=&quot;:r.length&gt;=2&amp;&amp;&quot;$type&quot;===Lt(r[1])&amp;&amp;o.push(new St(n,r,'&quot;$type&quot; cannot be use with operator &quot;'+r[0]+'&quot;'));case&quot;==&quot;:case&quot;!=&quot;:3!==r.length&amp;&amp;o.push(new St(n,r,'filter array for operator &quot;'+r[0]+'&quot; must have 3 elements'));case&quot;in&quot;:case&quot;!in&quot;:r.length&gt;=2&amp;&amp;&quot;string&quot;!==(i=zr(r[1]))&amp;&amp;o.push(new St(n+&quot;[1]&quot;,r[1],&quot;string expected, &quot;+i+&quot; found&quot;));for(var s=2;s&lt;r.length;s++)i=zr(r[s]),&quot;$type&quot;===Lt(r[1])?o=o.concat($r({key:n+&quot;[&quot;+s+&quot;]&quot;,value:r[s],valueSpec:a.geometry_type,style:e.style,styleSpec:e.styleSpec})):&quot;string&quot;!==i&amp;&amp;&quot;number&quot;!==i&amp;&amp;&quot;boolean&quot;!==i&amp;&amp;o.push(new St(n+&quot;[&quot;+s+&quot;]&quot;,r[s],&quot;string, number, or boolean expected, &quot;+i+&quot; found&quot;));break;case&quot;any&quot;:case&quot;all&quot;:case&quot;none&quot;:for(var l=1;l&lt;r.length;l++)o=o.concat(t({key:n+&quot;[&quot;+l+&quot;]&quot;,value:r[l],style:e.style,styleSpec:e.styleSpec}));break;case&quot;has&quot;:case&quot;!has&quot;:i=zr(r[1]),2!==r.length?o.push(new St(n,r,'filter array for &quot;'+r[0]+'&quot; operator must have 2 elements')):&quot;string&quot;!==i&amp;&amp;o.push(new St(n+&quot;[1]&quot;,r[1],&quot;string expected, &quot;+i+&quot; found&quot;));break;case&quot;within&quot;:i=zr(r[1]),2!==r.length?o.push(new St(n,r,'filter array for &quot;'+r[0]+'&quot; operator must have 2 elements')):&quot;object&quot;!==i&amp;&amp;o.push(new St(n+&quot;[1]&quot;,r[1],&quot;object expected, &quot;+i+&quot; found&quot;))}return o}(t)}function fn(t,e){var r=t.key,n=t.style,i=t.styleSpec,a=t.value,o=t.objectKey,s=i[e+&quot;_&quot;+t.layerType];if(!s)return[];var l=o.match(/^(.*)-transition$/);if(&quot;paint&quot;===e&amp;&amp;l&amp;&amp;s[l[1]]&amp;&amp;s[l[1]].transition)return bn({key:r,value:a,valueSpec:i.transition,style:n,styleSpec:i});var c,u=t.valueSpec||s[o];if(!u)return[new St(r,a,'unknown property &quot;'+o+'&quot;')];if(&quot;string&quot;===zr(a)&amp;&amp;Lr(u)&amp;&amp;!u.tokens&amp;&amp;(c=/^{([^}]+)}$/.exec(a)))return[new St(r,a,'&quot;'+o+'&quot; does not support interpolation syntax\nUse an identity property function instead: `{ &quot;type&quot;: &quot;identity&quot;, &quot;property&quot;: '+JSON.stringify(c[1])+&quot; }`.&quot;)];var f=[];return&quot;symbol&quot;===t.layerType&amp;&amp;(&quot;text-field&quot;===o&amp;&amp;n&amp;&amp;!n.glyphs&amp;&amp;f.push(new St(r,a,'use of &quot;text-field&quot; requires a style &quot;glyphs&quot; property')),&quot;text-font&quot;===o&amp;&amp;Or(It(a))&amp;&amp;&quot;identity&quot;===Lt(a.type)&amp;&amp;f.push(new St(r,a,'&quot;text-font&quot; does not support identity functions'))),f.concat(bn({key:t.key,value:a,valueSpec:u,style:n,styleSpec:i,expressionContext:&quot;property&quot;,propertyType:e,propertyKey:o}))}function hn(t){return fn(t,&quot;paint&quot;)}function pn(t){return fn(t,&quot;layout&quot;)}function dn(t){var e=[],r=t.value,n=t.key,i=t.style,a=t.styleSpec;r.type||r.ref||e.push(new St(n,r,'either &quot;type&quot; or &quot;ref&quot; is required'));var o,s=Lt(r.type),l=Lt(r.ref);if(r.id)for(var c=Lt(r.id),u=0;u&lt;t.arrayIndex;u++){var f=i.layers[u];Lt(f.id)===c&amp;&amp;e.push(new St(n,r.id,'duplicate layer id &quot;'+r.id+'&quot;, previously used at line '+f.id.__line__))}if(&quot;ref&quot;in r)[&quot;type&quot;,&quot;source&quot;,&quot;source-layer&quot;,&quot;filter&quot;,&quot;layout&quot;].forEach((function(t){t in r&amp;&amp;e.push(new St(n,r[t],'&quot;'+t+'&quot; is prohibited for ref layers'))})),i.layers.forEach((function(t){Lt(t.id)===l&amp;&amp;(o=t)})),o?o.ref?e.push(new St(n,r.ref,&quot;ref cannot reference another ref layer&quot;)):s=Lt(o.type):e.push(new St(n,r.ref,'ref layer &quot;'+l+'&quot; not found'));else if(&quot;background&quot;!==s)if(r.source){var h=i.sources&amp;&amp;i.sources[r.source],p=h&amp;&amp;Lt(h.type);h?&quot;vector&quot;===p&amp;&amp;&quot;raster&quot;===s?e.push(new St(n,r.source,'layer &quot;'+r.id+'&quot; requires a raster source')):&quot;raster&quot;===p&amp;&amp;&quot;raster&quot;!==s?e.push(new St(n,r.source,'layer &quot;'+r.id+'&quot; requires a vector source')):&quot;vector&quot;!==p||r[&quot;source-layer&quot;]?&quot;raster-dem&quot;===p&amp;&amp;&quot;hillshade&quot;!==s?e.push(new St(n,r.source,&quot;raster-dem source can only be used with layer type 'hillshade'.&quot;)):&quot;line&quot;!==s||!r.paint||!r.paint[&quot;line-gradient&quot;]||&quot;geojson&quot;===p&amp;&amp;h.lineMetrics||e.push(new St(n,r,'layer &quot;'+r.id+'&quot; specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new St(n,r,'layer &quot;'+r.id+'&quot; must specify a &quot;source-layer&quot;')):e.push(new St(n,r.source,'source &quot;'+r.source+'&quot; not found'))}else e.push(new St(n,r,'missing required property &quot;source&quot;'));return e=e.concat(Xr({key:n,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(){return[]},type:function(){return bn({key:n+&quot;.type&quot;,value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,object:r,objectKey:&quot;type&quot;})},filter:un,layout:function(t){return Xr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(t){return pn(Ct({layerType:s},t))}}})},paint:function(t){return Xr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(t){return hn(Ct({layerType:s},t))}}})}}}))}function gn(t){var e=t.value,r=t.key,n=zr(e);return&quot;string&quot;!==n?[new St(r,e,&quot;string expected, &quot;+n+&quot; found&quot;)]:[]}var mn={promoteId:function(t){var e=t.key,r=t.value;if(&quot;string&quot;===zr(r))return gn({key:e,value:r});var n=[];for(var i in r)n.push.apply(n,gn({key:e+&quot;.&quot;+i,value:r[i]}));return n}};function vn(t){var e=t.value,r=t.key,n=t.styleSpec,i=t.style;if(!e.type)return[new St(r,e,'&quot;type&quot; is required')];var a,o=Lt(e.type);switch(o){case&quot;vector&quot;:case&quot;raster&quot;:case&quot;raster-dem&quot;:return Xr({key:r,value:e,valueSpec:n[&quot;source_&quot;+o.replace(&quot;-&quot;,&quot;_&quot;)],style:t.style,styleSpec:n,objectElementValidators:mn});case&quot;geojson&quot;:if(a=Xr({key:r,value:e,valueSpec:n.source_geojson,style:i,styleSpec:n,objectElementValidators:mn}),e.cluster)for(var s in e.clusterProperties){var l=e.clusterProperties[s],c=l[0],u=&quot;string&quot;==typeof c?[c,[&quot;accumulated&quot;],[&quot;get&quot;,s]]:c;a.push.apply(a,Qr({key:r+&quot;.&quot;+s+&quot;.map&quot;,value:l[1],expressionContext:&quot;cluster-map&quot;})),a.push.apply(a,Qr({key:r+&quot;.&quot;+s+&quot;.reduce&quot;,value:u,expressionContext:&quot;cluster-reduce&quot;}))}return a;case&quot;video&quot;:return Xr({key:r,value:e,valueSpec:n.source_video,style:i,styleSpec:n});case&quot;image&quot;:return Xr({key:r,value:e,valueSpec:n.source_image,style:i,styleSpec:n});case&quot;canvas&quot;:return[new St(r,null,&quot;Please use runtime APIs to add canvas sources, rather than including them in stylesheets.&quot;,&quot;source.canvas&quot;)];default:return $r({key:r+&quot;.type&quot;,value:e.type,valueSpec:{values:[&quot;vector&quot;,&quot;raster&quot;,&quot;raster-dem&quot;,&quot;geojson&quot;,&quot;video&quot;,&quot;image&quot;]},style:i,styleSpec:n})}}function yn(t){var e=t.value,r=t.styleSpec,n=r.light,i=t.style,a=[],o=zr(e);if(void 0===e)return a;if(&quot;object&quot;!==o)return a.concat([new St(&quot;light&quot;,e,&quot;object expected, &quot;+o+&quot; found&quot;)]);for(var s in e){var l=s.match(/^(.*)-transition$/);a=a.concat(l&amp;&amp;n[l[1]]&amp;&amp;n[l[1]].transition?bn({key:s,value:e[s],valueSpec:r.transition,style:i,styleSpec:r}):n[s]?bn({key:s,value:e[s],valueSpec:n[s],style:i,styleSpec:r}):[new St(s,e[s],'unknown property &quot;'+s+'&quot;')])}return a}var xn={&quot;*&quot;:function(){return[]},array:Zr,boolean:function(t){var e=t.value,r=t.key,n=zr(e);return&quot;boolean&quot;!==n?[new St(r,e,&quot;boolean expected, &quot;+n+&quot; found&quot;)]:[]},number:Jr,color:function(t){var e=t.key,r=t.value,n=zr(r);return&quot;string&quot;!==n?[new St(e,r,&quot;color expected, &quot;+n+&quot; found&quot;)]:null===Jt(r)?[new St(e,r,'color expected, &quot;'+r+'&quot; found')]:[]},constants:Et,enum:$r,filter:un,function:Kr,layer:dn,object:Xr,source:vn,light:yn,string:gn,formatted:function(t){return 0===gn(t).length?[]:Qr(t)},resolvedImage:function(t){return 0===gn(t).length?[]:Qr(t)}};function bn(t){var e=t.value,r=t.valueSpec,n=t.styleSpec;return r.expression&amp;&amp;Or(Lt(e))?Kr(t):r.expression&amp;&amp;Vr(It(e))?Qr(t):r.type&amp;&amp;xn[r.type]?xn[r.type](t):Xr(Ct({},t,{valueSpec:r.type?n[r.type]:r}))}function _n(t){var e=t.value,r=t.key,n=gn(t);return n.length||(-1===e.indexOf(&quot;{fontstack}&quot;)&amp;&amp;n.push(new St(r,e,'&quot;glyphs&quot; url must include a &quot;{fontstack}&quot; token')),-1===e.indexOf(&quot;{range}&quot;)&amp;&amp;n.push(new St(r,e,'&quot;glyphs&quot; url must include a &quot;{range}&quot; token'))),n}function wn(t,e){void 0===e&amp;&amp;(e=At);var r=[];return r=r.concat(bn({key:&quot;&quot;,value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:_n,&quot;*&quot;:function(){return[]}}})),t.constants&amp;&amp;(r=r.concat(Et({key:&quot;constants&quot;,value:t.constants,style:t,styleSpec:e}))),Tn(r)}function Tn(t){return[].concat(t).sort((function(t,e){return t.line-e.line}))}function kn(t){return function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return Tn(t.apply(this,e))}}wn.source=kn(vn),wn.light=kn(yn),wn.layer=kn(dn),wn.filter=kn(un),wn.paintProperty=kn(hn),wn.layoutProperty=kn(pn);var Mn=wn,An=Mn.light,Sn=Mn.paintProperty,En=Mn.layoutProperty;function Cn(t,e){var r=!1;if(e&amp;&amp;e.length)for(var n=0,i=e;n&lt;i.length;n+=1)t.fire(new kt(new Error(i[n].message))),r=!0;return r}var Ln=In;function In(t,e,r){var n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var i=new Int32Array(this.arrayBuffer);t=i[0],this.d=(e=i[1])+2*(r=i[2]);for(var a=0;a&lt;this.d*this.d;a++){var o=i[3+a],s=i[3+a+1];n.push(o===s?null:i.subarray(o,s))}var l=i[3+n.length+1];this.keys=i.subarray(i[3+n.length],l),this.bboxes=i.subarray(l),this.insert=this._insertReadonly}else{this.d=e+2*r;for(var c=0;c&lt;this.d*this.d;c++)n.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=r,this.scale=e/t,this.uid=0;var u=r/e*t;this.min=-u,this.max=t+u}In.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},In.prototype._insertReadonly=function(){throw&quot;Cannot insert into a GridIndex created from an ArrayBuffer.&quot;},In.prototype._insertCell=function(t,e,r,n,i,a){this.cells[i].push(a)},In.prototype.query=function(t,e,r,n,i){var a=this.min,o=this.max;if(t&lt;=a&amp;&amp;e&lt;=a&amp;&amp;o&lt;=r&amp;&amp;o&lt;=n&amp;&amp;!i)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(t,e,r,n,this._queryCell,s,{},i),s},In.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=this.cells[i];if(null!==l)for(var c=this.keys,u=this.bboxes,f=0;f&lt;l.length;f++){var h=l[f];if(void 0===o[h]){var p=4*h;(s?s(u[p+0],u[p+1],u[p+2],u[p+3]):t&lt;=u[p+2]&amp;&amp;e&lt;=u[p+3]&amp;&amp;r&gt;=u[p+0]&amp;&amp;n&gt;=u[p+1])?(o[h]=!0,a.push(c[h])):o[h]=!1}}},In.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToCellCoord(t),c=this._convertToCellCoord(e),u=this._convertToCellCoord(r),f=this._convertToCellCoord(n),h=l;h&lt;=u;h++)for(var p=c;p&lt;=f;p++){var d=this.d*p+h;if((!s||s(this._convertFromCellCoord(h),this._convertFromCellCoord(p),this._convertFromCellCoord(h+1),this._convertFromCellCoord(p+1)))&amp;&amp;i.call(this,t,e,r,n,d,a,o,s))return}},In.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},In.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},In.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,r=0,n=0;n&lt;this.cells.length;n++)r+=this.cells[n].length;var i=new Int32Array(e+r+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var a=e,o=0;o&lt;t.length;o++){var s=t[o];i[3+o]=a,i.set(s,a),a+=s.length}return i[3+t.length]=a,i.set(this.keys,a),i[3+t.length+1]=a+=this.keys.length,i.set(this.bboxes,a),a+=this.bboxes.length,i.buffer};var Pn=self.ImageData,zn=self.ImageBitmap,On={};function Dn(t,e,r){void 0===r&amp;&amp;(r={}),Object.defineProperty(e,&quot;_classRegistryKey&quot;,{value:t,writeable:!1}),On[t]={klass:e,omit:r.omit||[],shallow:r.shallow||[]}}for(var Rn in Dn(&quot;Object&quot;,Object),Ln.serialize=function(t,e){var r=t.toArrayBuffer();return e&amp;&amp;e.push(r),{buffer:r}},Ln.deserialize=function(t){return new Ln(t.buffer)},Dn(&quot;Grid&quot;,Ln),Dn(&quot;Color&quot;,Kt),Dn(&quot;Error&quot;,Error),Dn(&quot;ResolvedImage&quot;,ee),Dn(&quot;StylePropertyFunction&quot;,Wr),Dn(&quot;StyleExpression&quot;,Ur,{omit:[&quot;_evaluator&quot;]}),Dn(&quot;ZoomDependentExpression&quot;,Gr),Dn(&quot;ZoomConstantExpression&quot;,Hr),Dn(&quot;CompoundExpression&quot;,me,{omit:[&quot;_evaluate&quot;]}),Tr)Tr[Rn]._classRegistryKey||Dn(&quot;Expression_&quot;+Rn,Tr[Rn]);function Fn(t){return t&amp;&amp;&quot;undefined&quot;!=typeof ArrayBuffer&amp;&amp;(t instanceof ArrayBuffer||t.constructor&amp;&amp;&quot;ArrayBuffer&quot;===t.constructor.name)}function Bn(t){return zn&amp;&amp;t instanceof zn}function Nn(t,e){if(null==t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(Fn(t)||Bn(t))return e&amp;&amp;e.push(t),t;if(ArrayBuffer.isView(t)){var r=t;return e&amp;&amp;e.push(r.buffer),r}if(t instanceof Pn)return e&amp;&amp;e.push(t.data.buffer),t;if(Array.isArray(t)){for(var n=[],i=0,a=t;i&lt;a.length;i+=1)n.push(Nn(a[i],e));return n}if(&quot;object&quot;==typeof t){var o=t.constructor,s=o._classRegistryKey;if(!s)throw new Error(&quot;can't serialize object of unregistered class&quot;);var l=o.serialize?o.serialize(t,e):{};if(!o.serialize){for(var c in t)if(t.hasOwnProperty(c)&amp;&amp;!(On[s].omit.indexOf(c)&gt;=0)){var u=t[c];l[c]=On[s].shallow.indexOf(c)&gt;=0?u:Nn(u,e)}t instanceof Error&amp;&amp;(l.message=t.message)}if(l.$name)throw new Error(&quot;$name property is reserved for worker serialization logic.&quot;);return&quot;Object&quot;!==s&amp;&amp;(l.$name=s),l}throw new Error(&quot;can't serialize object of type &quot;+typeof t)}function jn(t){if(null==t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||Fn(t)||Bn(t)||ArrayBuffer.isView(t)||t instanceof Pn)return t;if(Array.isArray(t))return t.map(jn);if(&quot;object&quot;==typeof t){var e=t.$name||&quot;Object&quot;,r=On[e].klass;if(!r)throw new Error(&quot;can't deserialize unregistered class &quot;+e);if(r.deserialize)return r.deserialize(t);for(var n=Object.create(r.prototype),i=0,a=Object.keys(t);i&lt;a.length;i+=1){var o=a[i];if(&quot;$name&quot;!==o){var s=t[o];n[o]=On[e].shallow.indexOf(o)&gt;=0?s:jn(s)}}return n}throw new Error(&quot;can't deserialize object of type &quot;+typeof t)}var Un=function(){this.first=!0};Un.prototype.update=function(t,e){var r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom&gt;r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoom&lt;r&amp;&amp;(this.lastIntegerZoom=r,this.lastIntegerZoomTime=e),t!==this.lastZoom&amp;&amp;(this.lastZoom=t,this.lastFloorZoom=r,!0))};var Vn={&quot;Latin-1 Supplement&quot;:function(t){return t&gt;=128&amp;&amp;t&lt;=255},Arabic:function(t){return t&gt;=1536&amp;&amp;t&lt;=1791},&quot;Arabic Supplement&quot;:function(t){return t&gt;=1872&amp;&amp;t&lt;=1919},&quot;Arabic Extended-A&quot;:function(t){return t&gt;=2208&amp;&amp;t&lt;=2303},&quot;Hangul Jamo&quot;:function(t){return t&gt;=4352&amp;&amp;t&lt;=4607},&quot;Unified Canadian Aboriginal Syllabics&quot;:function(t){return t&gt;=5120&amp;&amp;t&lt;=5759},Khmer:function(t){return t&gt;=6016&amp;&amp;t&lt;=6143},&quot;Unified Canadian Aboriginal Syllabics Extended&quot;:function(t){return t&gt;=6320&amp;&amp;t&lt;=6399},&quot;General Punctuation&quot;:function(t){return t&gt;=8192&amp;&amp;t&lt;=8303},&quot;Letterlike Symbols&quot;:function(t){return t&gt;=8448&amp;&amp;t&lt;=8527},&quot;Number Forms&quot;:function(t){return t&gt;=8528&amp;&amp;t&lt;=8591},&quot;Miscellaneous Technical&quot;:function(t){return t&gt;=8960&amp;&amp;t&lt;=9215},&quot;Control Pictures&quot;:function(t){return t&gt;=9216&amp;&amp;t&lt;=9279},&quot;Optical Character Recognition&quot;:function(t){return t&gt;=9280&amp;&amp;t&lt;=9311},&quot;Enclosed Alphanumerics&quot;:function(t){return t&gt;=9312&amp;&amp;t&lt;=9471},&quot;Geometric Shapes&quot;:function(t){return t&gt;=9632&amp;&amp;t&lt;=9727},&quot;Miscellaneous Symbols&quot;:function(t){return t&gt;=9728&amp;&amp;t&lt;=9983},&quot;Miscellaneous Symbols and Arrows&quot;:function(t){return t&gt;=11008&amp;&amp;t&lt;=11263},&quot;CJK Radicals Supplement&quot;:function(t){return t&gt;=11904&amp;&amp;t&lt;=12031},&quot;Kangxi Radicals&quot;:function(t){return t&gt;=12032&amp;&amp;t&lt;=12255},&quot;Ideographic Description Characters&quot;:function(t){return t&gt;=12272&amp;&amp;t&lt;=12287},&quot;CJK Symbols and Punctuation&quot;:function(t){return t&gt;=12288&amp;&amp;t&lt;=12351},Hiragana:function(t){return t&gt;=12352&amp;&amp;t&lt;=12447},Katakana:function(t){return t&gt;=12448&amp;&amp;t&lt;=12543},Bopomofo:function(t){return t&gt;=12544&amp;&amp;t&lt;=12591},&quot;Hangul Compatibility Jamo&quot;:function(t){return t&gt;=12592&amp;&amp;t&lt;=12687},Kanbun:function(t){return t&gt;=12688&amp;&amp;t&lt;=12703},&quot;Bopomofo Extended&quot;:function(t){return t&gt;=12704&amp;&amp;t&lt;=12735},&quot;CJK Strokes&quot;:function(t){return t&gt;=12736&amp;&amp;t&lt;=12783},&quot;Katakana Phonetic Extensions&quot;:function(t){return t&gt;=12784&amp;&amp;t&lt;=12799},&quot;Enclosed CJK Letters and Months&quot;:function(t){return t&gt;=12800&amp;&amp;t&lt;=13055},&quot;CJK Compatibility&quot;:function(t){return t&gt;=13056&amp;&amp;t&lt;=13311},&quot;CJK Unified Ideographs Extension A&quot;:function(t){return t&gt;=13312&amp;&amp;t&lt;=19903},&quot;Yijing Hexagram Symbols&quot;:function(t){return t&gt;=19904&amp;&amp;t&lt;=19967},&quot;CJK Unified Ideographs&quot;:function(t){return t&gt;=19968&amp;&amp;t&lt;=40959},&quot;Yi Syllables&quot;:function(t){return t&gt;=40960&amp;&amp;t&lt;=42127},&quot;Yi Radicals&quot;:function(t){return t&gt;=42128&amp;&amp;t&lt;=42191},&quot;Hangul Jamo Extended-A&quot;:function(t){return t&gt;=43360&amp;&amp;t&lt;=43391},&quot;Hangul Syllables&quot;:function(t){return t&gt;=44032&amp;&amp;t&lt;=55215},&quot;Hangul Jamo Extended-B&quot;:function(t){return t&gt;=55216&amp;&amp;t&lt;=55295},&quot;Private Use Area&quot;:function(t){return t&gt;=57344&amp;&amp;t&lt;=63743},&quot;CJK Compatibility Ideographs&quot;:function(t){return t&gt;=63744&amp;&amp;t&lt;=64255},&quot;Arabic Presentation Forms-A&quot;:function(t){return t&gt;=64336&amp;&amp;t&lt;=65023},&quot;Vertical Forms&quot;:function(t){return t&gt;=65040&amp;&amp;t&lt;=65055},&quot;CJK Compatibility Forms&quot;:function(t){return t&gt;=65072&amp;&amp;t&lt;=65103},&quot;Small Form Variants&quot;:function(t){return t&gt;=65104&amp;&amp;t&lt;=65135},&quot;Arabic Presentation Forms-B&quot;:function(t){return t&gt;=65136&amp;&amp;t&lt;=65279},&quot;Halfwidth and Fullwidth Forms&quot;:function(t){return t&gt;=65280&amp;&amp;t&lt;=65519}};function qn(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(Hn(r[e].charCodeAt(0)))return!0;return!1}function Hn(t){return!(746!==t&amp;&amp;747!==t&amp;&amp;(t&lt;4352||!(Vn[&quot;Bopomofo Extended&quot;](t)||Vn.Bopomofo(t)||Vn[&quot;CJK Compatibility Forms&quot;](t)&amp;&amp;!(t&gt;=65097&amp;&amp;t&lt;=65103)||Vn[&quot;CJK Compatibility Ideographs&quot;](t)||Vn[&quot;CJK Compatibility&quot;](t)||Vn[&quot;CJK Radicals Supplement&quot;](t)||Vn[&quot;CJK Strokes&quot;](t)||!(!Vn[&quot;CJK Symbols and Punctuation&quot;](t)||t&gt;=12296&amp;&amp;t&lt;=12305||t&gt;=12308&amp;&amp;t&lt;=12319||12336===t)||Vn[&quot;CJK Unified Ideographs Extension A&quot;](t)||Vn[&quot;CJK Unified Ideographs&quot;](t)||Vn[&quot;Enclosed CJK Letters and Months&quot;](t)||Vn[&quot;Hangul Compatibility Jamo&quot;](t)||Vn[&quot;Hangul Jamo Extended-A&quot;](t)||Vn[&quot;Hangul Jamo Extended-B&quot;](t)||Vn[&quot;Hangul Jamo&quot;](t)||Vn[&quot;Hangul Syllables&quot;](t)||Vn.Hiragana(t)||Vn[&quot;Ideographic Description Characters&quot;](t)||Vn.Kanbun(t)||Vn[&quot;Kangxi Radicals&quot;](t)||Vn[&quot;Katakana Phonetic Extensions&quot;](t)||Vn.Katakana(t)&amp;&amp;12540!==t||!(!Vn[&quot;Halfwidth and Fullwidth Forms&quot;](t)||65288===t||65289===t||65293===t||t&gt;=65306&amp;&amp;t&lt;=65310||65339===t||65341===t||65343===t||t&gt;=65371&amp;&amp;t&lt;=65503||65507===t||t&gt;=65512&amp;&amp;t&lt;=65519)||!(!Vn[&quot;Small Form Variants&quot;](t)||t&gt;=65112&amp;&amp;t&lt;=65118||t&gt;=65123&amp;&amp;t&lt;=65126)||Vn[&quot;Unified Canadian Aboriginal Syllabics&quot;](t)||Vn[&quot;Unified Canadian Aboriginal Syllabics Extended&quot;](t)||Vn[&quot;Vertical Forms&quot;](t)||Vn[&quot;Yijing Hexagram Symbols&quot;](t)||Vn[&quot;Yi Syllables&quot;](t)||Vn[&quot;Yi Radicals&quot;](t))))}function Gn(t){return!(Hn(t)||function(t){return!!(Vn[&quot;Latin-1 Supplement&quot;](t)&amp;&amp;(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||Vn[&quot;General Punctuation&quot;](t)&amp;&amp;(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||Vn[&quot;Letterlike Symbols&quot;](t)||Vn[&quot;Number Forms&quot;](t)||Vn[&quot;Miscellaneous Technical&quot;](t)&amp;&amp;(t&gt;=8960&amp;&amp;t&lt;=8967||t&gt;=8972&amp;&amp;t&lt;=8991||t&gt;=8996&amp;&amp;t&lt;=9e3||9003===t||t&gt;=9085&amp;&amp;t&lt;=9114||t&gt;=9150&amp;&amp;t&lt;=9165||9167===t||t&gt;=9169&amp;&amp;t&lt;=9179||t&gt;=9186&amp;&amp;t&lt;=9215)||Vn[&quot;Control Pictures&quot;](t)&amp;&amp;9251!==t||Vn[&quot;Optical Character Recognition&quot;](t)||Vn[&quot;Enclosed Alphanumerics&quot;](t)||Vn[&quot;Geometric Shapes&quot;](t)||Vn[&quot;Miscellaneous Symbols&quot;](t)&amp;&amp;!(t&gt;=9754&amp;&amp;t&lt;=9759)||Vn[&quot;Miscellaneous Symbols and Arrows&quot;](t)&amp;&amp;(t&gt;=11026&amp;&amp;t&lt;=11055||t&gt;=11088&amp;&amp;t&lt;=11097||t&gt;=11192&amp;&amp;t&lt;=11243)||Vn[&quot;CJK Symbols and Punctuation&quot;](t)||Vn.Katakana(t)||Vn[&quot;Private Use Area&quot;](t)||Vn[&quot;CJK Compatibility Forms&quot;](t)||Vn[&quot;Small Form Variants&quot;](t)||Vn[&quot;Halfwidth and Fullwidth Forms&quot;](t)||8734===t||8756===t||8757===t||t&gt;=9984&amp;&amp;t&lt;=10087||t&gt;=10102&amp;&amp;t&lt;=10131||65532===t||65533===t)}(t))}function Yn(t){return t&gt;=1424&amp;&amp;t&lt;=2303||Vn[&quot;Arabic Presentation Forms-A&quot;](t)||Vn[&quot;Arabic Presentation Forms-B&quot;](t)}function Wn(t,e){return!(!e&amp;&amp;Yn(t)||t&gt;=2304&amp;&amp;t&lt;=3583||t&gt;=3840&amp;&amp;t&lt;=4255||Vn.Khmer(t))}function Xn(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(Yn(r[e].charCodeAt(0)))return!0;return!1}var Zn=null,Jn=&quot;unavailable&quot;,Kn=null,Qn=function(t){t&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;t.indexOf(&quot;NetworkError&quot;)&gt;-1&amp;&amp;(Jn=&quot;error&quot;),Zn&amp;&amp;Zn(t)};function $n(){ti.fire(new Tt(&quot;pluginStateChange&quot;,{pluginStatus:Jn,pluginURL:Kn}))}var ti=new Mt,ei=function(){return Jn},ri=function(){if(&quot;deferred&quot;!==Jn||!Kn)throw new Error(&quot;rtl-text-plugin cannot be downloaded unless a pluginURL is specified&quot;);Jn=&quot;loading&quot;,$n(),Kn&amp;&amp;yt({url:Kn},(function(t){t?Qn(t):(Jn=&quot;loaded&quot;,$n())}))},ni={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return&quot;loaded&quot;===Jn||null!=ni.applyArabicShaping},isLoading:function(){return&quot;loading&quot;===Jn},setState:function(t){Jn=t.pluginStatus,Kn=t.pluginURL},isParsed:function(){return null!=ni.applyArabicShaping&amp;&amp;null!=ni.processBidirectionalText&amp;&amp;null!=ni.processStyledBidirectionalText},getPluginURL:function(){return Kn}},ii=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Un,this.transition={})};ii.prototype.isSupportedScript=function(t){return function(t,e){for(var r=0,n=t;r&lt;n.length;r+=1)if(!Wn(n[r].charCodeAt(0),e))return!1;return!0}(t,ni.isLoaded())},ii.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},ii.prototype.getCrossfadeParameters=function(){var t=this.zoom,e=t-Math.floor(t),r=this.crossFadingFactor();return t&gt;this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}};var ai=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(Or(t))return new Wr(t,e);if(Vr(t)){var r=Yr(t,e);if(&quot;error&quot;===r.result)throw new Error(r.value.map((function(t){return t.key+&quot;: &quot;+t.message})).join(&quot;, &quot;));return r.value}var n=t;return&quot;string&quot;==typeof t&amp;&amp;&quot;color&quot;===e.type&amp;&amp;(n=Kt.parse(t)),{kind:&quot;constant&quot;,evaluate:function(){return n}}}(void 0===e?t.specification.default:e,t.specification)};ai.prototype.isDataDriven=function(){return&quot;source&quot;===this.expression.kind||&quot;composite&quot;===this.expression.kind},ai.prototype.possiblyEvaluate=function(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)};var oi=function(t){this.property=t,this.value=new ai(t,void 0)};oi.prototype.transitioned=function(t,e){return new li(this.property,this.value,e,u({},t.transition,this.transition),t.now)},oi.prototype.untransitioned=function(){return new li(this.property,this.value,null,{},0)};var si=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};si.prototype.getValue=function(t){return x(this._values[t].value.value)},si.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new oi(this._values[t].property)),this._values[t].value=new ai(this._values[t].property,null===e?void 0:x(e))},si.prototype.getTransition=function(t){return x(this._values[t].transition)},si.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new oi(this._values[t].property)),this._values[t].transition=x(e)||void 0},si.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&amp;&amp;(t[n]=i);var a=this.getTransition(n);void 0!==a&amp;&amp;(t[n+&quot;-transition&quot;]=a)}return t},si.prototype.transitioned=function(t,e){for(var r=new ci(this._properties),n=0,i=Object.keys(this._values);n&lt;i.length;n+=1){var a=i[n];r._values[a]=this._values[a].transitioned(t,e._values[a])}return r},si.prototype.untransitioned=function(){for(var t=new ci(this._properties),e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e];t._values[n]=this._values[n].untransitioned()}return t};var li=function(t,e,r,n,i){this.property=t,this.value=e,this.begin=i+n.delay||0,this.end=this.begin+n.duration||0,t.specification.transition&amp;&amp;(n.delay||n.duration)&amp;&amp;(this.prior=r)};li.prototype.possiblyEvaluate=function(t,e,r){var n=t.now||0,i=this.value.possiblyEvaluate(t,e,r),a=this.prior;if(a){if(n&gt;this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(n&lt;this.begin)return a.possiblyEvaluate(t,e,r);var o=(n-this.begin)/(this.end-this.begin);return this.property.interpolate(a.possiblyEvaluate(t,e,r),i,function(t){if(t&lt;=0)return 0;if(t&gt;=1)return 1;var e=t*t,r=e*t;return 4*(t&lt;.5?r:3*(t-e)+r-.75)}(o))}return i};var ci=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};ci.prototype.possiblyEvaluate=function(t,e,r){for(var n=new hi(this._properties),i=0,a=Object.keys(this._values);i&lt;a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n},ci.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t&lt;e.length;t+=1)if(this._values[e[t]].prior)return!0;return!1};var ui=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};ui.prototype.getValue=function(t){return x(this._values[t].value)},ui.prototype.setValue=function(t,e){this._values[t]=new ai(this._values[t].property,null===e?void 0:x(e))},ui.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&amp;&amp;(t[n]=i)}return t},ui.prototype.possiblyEvaluate=function(t,e,r){for(var n=new hi(this._properties),i=0,a=Object.keys(this._values);i&lt;a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n};var fi=function(t,e,r){this.property=t,this.value=e,this.parameters=r};fi.prototype.isConstant=function(){return&quot;constant&quot;===this.value.kind},fi.prototype.constantOr=function(t){return&quot;constant&quot;===this.value.kind?this.value.value:t},fi.prototype.evaluate=function(t,e,r,n){return this.property.evaluate(this.value,this.parameters,t,e,r,n)};var hi=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};hi.prototype.get=function(t){return this._values[t]};var pi=function(t){this.specification=t};pi.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},pi.prototype.interpolate=function(t,e,r){var n=Ve[this.specification.type];return n?n(t,e,r):t};var di=function(t,e){this.specification=t,this.overrides=e};di.prototype.possiblyEvaluate=function(t,e,r,n){return new fi(this,&quot;constant&quot;===t.expression.kind||&quot;camera&quot;===t.expression.kind?{kind:&quot;constant&quot;,value:t.expression.evaluate(e,null,{},r,n)}:t.expression,e)},di.prototype.interpolate=function(t,e,r){if(&quot;constant&quot;!==t.value.kind||&quot;constant&quot;!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new fi(this,{kind:&quot;constant&quot;,value:void 0},t.parameters);var n=Ve[this.specification.type];return n?new fi(this,{kind:&quot;constant&quot;,value:n(t.value.value,e.value.value,r)},t.parameters):t},di.prototype.evaluate=function(t,e,r,n,i,a){return&quot;constant&quot;===t.kind?t.value:t.evaluate(e,r,n,i,a)};var gi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0===t.value)return new fi(this,{kind:&quot;constant&quot;,value:void 0},e);if(&quot;constant&quot;===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n),a=&quot;resolvedImage&quot;===t.property.specification.type&amp;&amp;&quot;string&quot;!=typeof i?i.name:i,o=this._calculate(a,a,a,e);return new fi(this,{kind:&quot;constant&quot;,value:o},e)}if(&quot;camera&quot;===t.expression.kind){var s=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new fi(this,{kind:&quot;constant&quot;,value:s},e)}return new fi(this,t.expression,e)},e.prototype.evaluate=function(t,e,r,n,i,a){if(&quot;source&quot;===t.kind){var o=t.evaluate(e,r,n,i,a);return this._calculate(o,o,o,e)}return&quot;composite&quot;===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},r,n),t.evaluate({zoom:Math.floor(e.zoom)},r,n),t.evaluate({zoom:Math.floor(e.zoom)+1},r,n),e):t.value},e.prototype._calculate=function(t,e,r,n){return n.zoom&gt;n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},e.prototype.interpolate=function(t){return t},e}(di),mi=function(t){this.specification=t};mi.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0!==t.value){if(&quot;constant&quot;===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n);return this._calculate(i,i,i,e)}return this._calculate(t.expression.evaluate(new ii(Math.floor(e.zoom-1),e)),t.expression.evaluate(new ii(Math.floor(e.zoom),e)),t.expression.evaluate(new ii(Math.floor(e.zoom+1),e)),e)}},mi.prototype._calculate=function(t,e,r,n){return n.zoom&gt;n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},mi.prototype.interpolate=function(t){return t};var vi=function(t){this.specification=t};vi.prototype.possiblyEvaluate=function(t,e,r,n){return!!t.expression.evaluate(e,null,{},r,n)},vi.prototype.interpolate=function(){return!1};var yi=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var r=t[e];r.specification.overridable&amp;&amp;this.overridableProperties.push(e);var n=this.defaultPropertyValues[e]=new ai(r,void 0),i=this.defaultTransitionablePropertyValues[e]=new oi(r);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=n.possiblyEvaluate({})}};Dn(&quot;DataDrivenProperty&quot;,di),Dn(&quot;DataConstantProperty&quot;,pi),Dn(&quot;CrossFadedDataDrivenProperty&quot;,gi),Dn(&quot;CrossFadedProperty&quot;,mi),Dn(&quot;ColorRampProperty&quot;,vi);var xi=function(t){function e(e,r){if(t.call(this),this.id=e.id,this.type=e.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},&quot;custom&quot;!==e.type&amp;&amp;(this.metadata=(e=e).metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,&quot;background&quot;!==e.type&amp;&amp;(this.source=e.source,this.sourceLayer=e[&quot;source-layer&quot;],this.filter=e.filter),r.layout&amp;&amp;(this._unevaluatedLayout=new ui(r.layout)),r.paint)){for(var n in this._transitionablePaint=new si(r.paint),e.paint)this.setPaintProperty(n,e.paint[n],{validate:!1});for(var i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new hi(r.paint)}}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return&quot;visibility&quot;===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,r){void 0===r&amp;&amp;(r={}),null!=e&amp;&amp;this._validate(En,&quot;layers.&quot;+this.id+&quot;.layout.&quot;+t,t,e,r)||(&quot;visibility&quot;!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e)},e.prototype.getPaintProperty=function(t){return m(t,&quot;-transition&quot;)?this._transitionablePaint.getTransition(t.slice(0,-&quot;-transition&quot;.length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,r){if(void 0===r&amp;&amp;(r={}),null!=e&amp;&amp;this._validate(Sn,&quot;layers.&quot;+this.id+&quot;.paint.&quot;+t,t,e,r))return!1;if(m(t,&quot;-transition&quot;))return this._transitionablePaint.setTransition(t.slice(0,-&quot;-transition&quot;.length),e||void 0),!1;var n=this._transitionablePaint._values[t],i=&quot;cross-faded-data-driven&quot;===n.property.specification[&quot;property-type&quot;],a=n.value.isDataDriven(),o=n.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var s=this._transitionablePaint._values[t].value;return s.isDataDriven()||a||i||this._handleOverridablePaintPropertyUpdate(t,o,s)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype._handleOverridablePaintPropertyUpdate=function(t,e,r){return!1},e.prototype.isHidden=function(t){return!!(this.minzoom&amp;&amp;t&lt;this.minzoom)||!!(this.maxzoom&amp;&amp;t&gt;=this.maxzoom)||&quot;none&quot;===this.visibility},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t,e){t.getCrossfadeParameters&amp;&amp;(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&amp;&amp;(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,&quot;source-layer&quot;:this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&amp;&amp;this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&amp;&amp;this._transitionablePaint.serialize()};return this.visibility&amp;&amp;(t.layout=t.layout||{},t.layout.visibility=this.visibility),y(t,(function(t,e){return!(void 0===t||&quot;layout&quot;===e&amp;&amp;!Object.keys(t).length||&quot;paint&quot;===e&amp;&amp;!Object.keys(t).length)}))},e.prototype._validate=function(t,e,r,n,i){return void 0===i&amp;&amp;(i={}),(!i||!1!==i.validate)&amp;&amp;Cn(this,t.call(Mn,{key:e,layerType:this.type,objectKey:r,value:n,styleSpec:At,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof fi&amp;&amp;Lr(e.property.specification)&amp;&amp;(&quot;source&quot;===e.value.kind||&quot;composite&quot;===e.value.kind)&amp;&amp;e.value.isStateDependent)return!0}return!1},e}(Mt),bi={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},_i=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},wi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Ti(t,e){void 0===e&amp;&amp;(e=1);var r=0,n=0;return{members:t.map((function(t){var i=bi[t.type].BYTES_PER_ELEMENT,a=r=ki(r,Math.max(e,i)),o=t.components||1;return n=Math.max(n,i),r+=i*o,{name:t.name,type:t.type,components:o,offset:a}})),size:ki(r,Math.max(n,e)),alignment:e}}function ki(t,e){return Math.ceil(t/e)*e}wi.serialize=function(t,e){return t._trim(),e&amp;&amp;(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},wi.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},wi.prototype._trim=function(){this.length!==this.capacity&amp;&amp;(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},wi.prototype.clear=function(){this.length=0},wi.prototype.resize=function(t){this.reserve(t),this.length=t},wi.prototype.reserve=function(t){if(t&gt;this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&amp;&amp;this.uint8.set(e)}},wi.prototype._refreshViews=function(){throw new Error(&quot;_refreshViews() must be implemented by each concrete StructArray layout&quot;)};var Mi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.int16[n+0]=e,this.int16[n+1]=r,t},e}(wi);Mi.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout2i4&quot;,Mi);var Ai=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.int16[a+0]=e,this.int16[a+1]=r,this.int16[a+2]=n,this.int16[a+3]=i,t},e}(wi);Ai.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout4i8&quot;,Ai);var Si=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(wi);Si.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout2i4i12&quot;,Si);var Ei=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=4*t,l=8*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.uint8[l+4]=n,this.uint8[l+5]=i,this.uint8[l+6]=a,this.uint8[l+7]=o,t},e}(wi);Ei.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout2i4ub8&quot;,Ei);var Ci=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,n,i,a,o,s,l,c)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u){var f=9*t,h=18*t;return this.uint16[f+0]=e,this.uint16[f+1]=r,this.uint16[f+2]=n,this.uint16[f+3]=i,this.uint16[f+4]=a,this.uint16[f+5]=o,this.uint16[f+6]=s,this.uint16[f+7]=l,this.uint8[h+16]=c,this.uint8[h+17]=u,t},e}(wi);Ci.prototype.bytesPerElement=18,Dn(&quot;StructArrayLayout8ui2ub18&quot;,Ci);var Li=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f){var h=this.length;return this.resize(h+1),this.emplace(h,t,e,r,n,i,a,o,s,l,c,u,f)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=12*t;return this.int16[p+0]=e,this.int16[p+1]=r,this.int16[p+2]=n,this.int16[p+3]=i,this.uint16[p+4]=a,this.uint16[p+5]=o,this.uint16[p+6]=s,this.uint16[p+7]=l,this.int16[p+8]=c,this.int16[p+9]=u,this.int16[p+10]=f,this.int16[p+11]=h,t},e}(wi);Li.prototype.bytesPerElement=24,Dn(&quot;StructArrayLayout4i4ui4i24&quot;,Li);var Ii=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.float32[i+0]=e,this.float32[i+1]=r,this.float32[i+2]=n,t},e}(wi);Ii.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout3f12&quot;,Ii);var Pi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint32[1*t+0]=e,t},e}(wi);Pi.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout1ul4&quot;,Pi);var zi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,r,n,i,a,o,s,l)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c){var u=10*t,f=5*t;return this.int16[u+0]=e,this.int16[u+1]=r,this.int16[u+2]=n,this.int16[u+3]=i,this.int16[u+4]=a,this.int16[u+5]=o,this.uint32[f+3]=s,this.uint16[u+8]=l,this.uint16[u+9]=c,t},e}(wi);zi.prototype.bytesPerElement=20,Dn(&quot;StructArrayLayout6i1ul2ui20&quot;,zi);var Oi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(wi);Oi.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout2i2i2i12&quot;,Oi);var Di=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,n,i)},e.prototype.emplace=function(t,e,r,n,i,a){var o=4*t,s=8*t;return this.float32[o+0]=e,this.float32[o+1]=r,this.float32[o+2]=n,this.int16[s+6]=i,this.int16[s+7]=a,t},e}(wi);Di.prototype.bytesPerElement=16,Dn(&quot;StructArrayLayout2f1f2i16&quot;,Di);var Ri=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=12*t,o=3*t;return this.uint8[a+0]=e,this.uint8[a+1]=r,this.float32[o+1]=n,this.float32[o+2]=i,t},e}(wi);Ri.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout2ub2f12&quot;,Ri);var Fi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.uint16[i+0]=e,this.uint16[i+1]=r,this.uint16[i+2]=n,t},e}(wi);Fi.prototype.bytesPerElement=6,Dn(&quot;StructArrayLayout3ui6&quot;,Fi);var Bi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m){var v=this.length;return this.resize(v+1),this.emplace(v,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v){var y=24*t,x=12*t,b=48*t;return this.int16[y+0]=e,this.int16[y+1]=r,this.uint16[y+2]=n,this.uint16[y+3]=i,this.uint32[x+2]=a,this.uint32[x+3]=o,this.uint32[x+4]=s,this.uint16[y+10]=l,this.uint16[y+11]=c,this.uint16[y+12]=u,this.float32[x+7]=f,this.float32[x+8]=h,this.uint8[b+36]=p,this.uint8[b+37]=d,this.uint8[b+38]=g,this.uint32[x+10]=m,this.int16[y+22]=v,t},e}(wi);Bi.prototype.bytesPerElement=48,Dn(&quot;StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48&quot;,Bi);var Ni=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S){var E=this.length;return this.resize(E+1),this.emplace(E,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S,E){var C=34*t,L=17*t;return this.int16[C+0]=e,this.int16[C+1]=r,this.int16[C+2]=n,this.int16[C+3]=i,this.int16[C+4]=a,this.int16[C+5]=o,this.int16[C+6]=s,this.int16[C+7]=l,this.uint16[C+8]=c,this.uint16[C+9]=u,this.uint16[C+10]=f,this.uint16[C+11]=h,this.uint16[C+12]=p,this.uint16[C+13]=d,this.uint16[C+14]=g,this.uint16[C+15]=m,this.uint16[C+16]=v,this.uint16[C+17]=y,this.uint16[C+18]=x,this.uint16[C+19]=b,this.uint16[C+20]=_,this.uint16[C+21]=w,this.uint16[C+22]=T,this.uint32[L+12]=k,this.float32[L+13]=M,this.float32[L+14]=A,this.float32[L+15]=S,this.float32[L+16]=E,t},e}(wi);Ni.prototype.bytesPerElement=68,Dn(&quot;StructArrayLayout8i15ui1ul4f68&quot;,Ni);var ji=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.float32[1*t+0]=e,t},e}(wi);ji.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout1f4&quot;,ji);var Ui=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.int16[i+0]=e,this.int16[i+1]=r,this.int16[i+2]=n,t},e}(wi);Ui.prototype.bytesPerElement=6,Dn(&quot;StructArrayLayout3i6&quot;,Ui);var Vi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=4*t;return this.uint32[2*t+0]=e,this.uint16[i+2]=r,this.uint16[i+3]=n,t},e}(wi);Vi.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout1ul2ui8&quot;,Vi);var qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.uint16[n+0]=e,this.uint16[n+1]=r,t},e}(wi);qi.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout2ui4&quot;,qi);var Hi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint16[1*t+0]=e,t},e}(wi);Hi.prototype.bytesPerElement=2,Dn(&quot;StructArrayLayout1ui2&quot;,Hi);var Gi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.float32[n+0]=e,this.float32[n+1]=r,t},e}(wi);Gi.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout2f8&quot;,Gi);var Yi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=n,this.float32[a+3]=i,t},e}(wi);Yi.prototype.bytesPerElement=16,Dn(&quot;StructArrayLayout4f16&quot;,Yi);var Wi=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return r.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},r.x1.get=function(){return this._structArray.int16[this._pos2+2]},r.y1.get=function(){return this._structArray.int16[this._pos2+3]},r.x2.get=function(){return this._structArray.int16[this._pos2+4]},r.y2.get=function(){return this._structArray.int16[this._pos2+5]},r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.anchorPoint.get=function(){return new i(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,r),e}(_i);Wi.prototype.size=20;var Xi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new Wi(this,t)},e}(zi);Dn(&quot;CollisionBoxArray&quot;,Xi);var Zi=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},r.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},r.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},r.segment.get=function(){return this._structArray.uint16[this._pos2+10]},r.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},r.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},r.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},r.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},r.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},r.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},r.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},r.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},r.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},r.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(e.prototype,r),e}(_i);Zi.prototype.size=48;var Ji=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new Zi(this,t)},e}(Bi);Dn(&quot;PlacedSymbolArray&quot;,Ji);var Ki=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},r.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},r.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},r.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},r.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},r.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},r.key.get=function(){return this._structArray.uint16[this._pos2+8]},r.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},r.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},r.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},r.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},r.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},r.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},r.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},r.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},r.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},r.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},r.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},r.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},r.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+12]=t},r.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},r.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},r.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},r.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(e.prototype,r),e}(_i);Ki.prototype.size=68;var Qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new Ki(this,t)},e}(Ni);Dn(&quot;SymbolInstanceArray&quot;,Qi);var $i=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e}(ji);Dn(&quot;GlyphOffsetArray&quot;,$i);var ta=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e}(Ui);Dn(&quot;SymbolLineVertexArray&quot;,ta);var ea=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(e.prototype,r),e}(_i);ea.prototype.size=8;var ra=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new ea(this,t)},e}(Vi);Dn(&quot;FeatureIndexArray&quot;,ra);var na=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;}],4).members,ia=function(t){void 0===t&amp;&amp;(t=[]),this.segments=t};function aa(t,e){return 256*(t=l(Math.floor(t),0,255))+l(Math.floor(e),0,255)}ia.prototype.prepareSegment=function(t,e,r,n){var i=this.segments[this.segments.length-1];return t&gt;ia.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;_(&quot;Max vertices per segment is &quot;+ia.MAX_VERTEX_ARRAY_LENGTH+&quot;: bucket requested &quot;+t),(!i||i.vertexLength+t&gt;ia.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==n)&amp;&amp;(i={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},void 0!==n&amp;&amp;(i.sortKey=n),this.segments.push(i)),i},ia.prototype.get=function(){return this.segments},ia.prototype.destroy=function(){for(var t=0,e=this.segments;t&lt;e.length;t+=1){var r=e[t];for(var n in r.vaos)r.vaos[n].destroy()}},ia.simpleSegment=function(t,e,r,n){return new ia([{vertexOffset:t,primitiveOffset:e,vertexLength:r,primitiveLength:n,vaos:{},sortKey:0}])},ia.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Dn(&quot;SegmentVector&quot;,ia);var oa=Ti([{name:&quot;a_pattern_from&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pattern_to&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pixel_ratio_from&quot;,components:1,type:&quot;Uint8&quot;},{name:&quot;a_pixel_ratio_to&quot;,components:1,type:&quot;Uint8&quot;}]),sa=e((function(t){t.exports=function(t,e){var r,n,i,a,o,s,l,c;for(n=t.length-(r=3&amp;t.length),i=e,o=3432918353,s=461845907,c=0;c&lt;n;)l=255&amp;t.charCodeAt(c)|(255&amp;t.charCodeAt(++c))&lt;&lt;8|(255&amp;t.charCodeAt(++c))&lt;&lt;16|(255&amp;t.charCodeAt(++c))&lt;&lt;24,++c,i=27492+(65535&amp;(a=5*(65535&amp;(i=(i^=l=(65535&amp;(l=(l=(65535&amp;l)*o+(((l&gt;&gt;&gt;16)*o&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;13|i&gt;&gt;&gt;19))+((5*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295))+((58964+(a&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16);switch(l=0,r){case 3:l^=(255&amp;t.charCodeAt(c+2))&lt;&lt;16;case 2:l^=(255&amp;t.charCodeAt(c+1))&lt;&lt;8;case 1:i^=l=(65535&amp;(l=(l=(65535&amp;(l^=255&amp;t.charCodeAt(c)))*o+(((l&gt;&gt;&gt;16)*o&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295}return i^=t.length,i=2246822507*(65535&amp;(i^=i&gt;&gt;&gt;16))+((2246822507*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,i=3266489909*(65535&amp;(i^=i&gt;&gt;&gt;13))+((3266489909*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,(i^=i&gt;&gt;&gt;16)&gt;&gt;&gt;0}})),la=e((function(t){t.exports=function(t,e){for(var r,n=t.length,i=e^n,a=0;n&gt;=4;)r=1540483477*(65535&amp;(r=255&amp;t.charCodeAt(a)|(255&amp;t.charCodeAt(++a))&lt;&lt;8|(255&amp;t.charCodeAt(++a))&lt;&lt;16|(255&amp;t.charCodeAt(++a))&lt;&lt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),i=1540483477*(65535&amp;i)+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)^(r=1540483477*(65535&amp;(r^=r&gt;&gt;&gt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)),n-=4,++a;switch(n){case 3:i^=(255&amp;t.charCodeAt(a+2))&lt;&lt;16;case 2:i^=(255&amp;t.charCodeAt(a+1))&lt;&lt;8;case 1:i=1540483477*(65535&amp;(i^=255&amp;t.charCodeAt(a)))+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)}return i=1540483477*(65535&amp;(i^=i&gt;&gt;&gt;13))+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),(i^=i&gt;&gt;&gt;15)&gt;&gt;&gt;0}})),ca=sa,ua=la;ca.murmur3=sa,ca.murmur2=ua;var fa=function(){this.ids=[],this.positions=[],this.indexed=!1};fa.prototype.add=function(t,e,r,n){this.ids.push(pa(t)),this.positions.push(e,r,n)},fa.prototype.getPositions=function(t){for(var e=pa(t),r=0,n=this.ids.length-1;r&lt;n;){var i=r+n&gt;&gt;1;this.ids[i]&gt;=e?n=i:r=i+1}for(var a=[];this.ids[r]===e;)a.push({index:this.positions[3*r],start:this.positions[3*r+1],end:this.positions[3*r+2]}),r++;return a},fa.serialize=function(t,e){var r=new Float64Array(t.ids),n=new Uint32Array(t.positions);return function t(e,r,n,i){for(;n&lt;i;){for(var a=e[n+i&gt;&gt;1],o=n-1,s=i+1;;){do{o++}while(e[o]&lt;a);do{s--}while(e[s]&gt;a);if(o&gt;=s)break;da(e,o,s),da(r,3*o,3*s),da(r,3*o+1,3*s+1),da(r,3*o+2,3*s+2)}s-n&lt;i-s?(t(e,r,n,s),n=s+1):(t(e,r,s+1,i),i=s)}}(r,n,0,r.length-1),e&amp;&amp;e.push(r.buffer,n.buffer),{ids:r,positions:n}},fa.deserialize=function(t){var e=new fa;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e};var ha=Math.pow(2,53)-1;function pa(t){var e=+t;return!isNaN(e)&amp;&amp;e&lt;=ha?e:ca(String(t))}function da(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}Dn(&quot;FeaturePositionMap&quot;,fa);var ga=function(t,e){this.gl=t.gl,this.location=e},ma=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1i(this.location,t))},e}(ga),va=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1f(this.location,t))},e}(ga),ya=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0]}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))},e}(ga),xa=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0]}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))},e}(ga),ba=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0,0]}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]&amp;&amp;t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))},e}(ga),_a=function(t){function e(e,r){t.call(this,e,r),this.current=Kt.transparent}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t.r===this.current.r&amp;&amp;t.g===this.current.g&amp;&amp;t.b===this.current.b&amp;&amp;t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))},e}(ga),wa=new Float32Array(16),Ta=function(t){function e(e,r){t.call(this,e,r),this.current=wa}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(var e=1;e&lt;16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}},e}(ga);function ka(t){return[aa(255*t.r,255*t.g),aa(255*t.b,255*t.a)]}var Ma=function(t,e,r){this.value=t,this.uniformNames=e.map((function(t){return&quot;u_&quot;+t})),this.type=r};Ma.prototype.setUniform=function(t,e,r){t.set(r.constantOr(this.value))},Ma.prototype.getBinding=function(t,e,r){return&quot;color&quot;===this.type?new _a(t,e):new va(t,e)};var Aa=function(t,e){this.uniformNames=e.map((function(t){return&quot;u_&quot;+t})),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1};Aa.prototype.setConstantPatternPositions=function(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr},Aa.prototype.setUniform=function(t,e,r,n){var i=&quot;u_pattern_to&quot;===n?this.patternTo:&quot;u_pattern_from&quot;===n?this.patternFrom:&quot;u_pixel_ratio_to&quot;===n?this.pixelRatioTo:&quot;u_pixel_ratio_from&quot;===n?this.pixelRatioFrom:null;i&amp;&amp;t.set(i)},Aa.prototype.getBinding=function(t,e,r){return&quot;u_pattern&quot;===r.substr(0,9)?new ba(t,e):new va(t,e)};var Sa=function(t,e,r,n){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:&quot;a_&quot;+t,type:&quot;Float32&quot;,components:&quot;color&quot;===r?2:1,offset:0}})),this.paintVertexArray=new n};Sa.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.paintVertexArray.length,o=this.expression.evaluate(new ii(0),e,{},n,[],i);this.paintVertexArray.resize(t),this._setPaintValue(a,t,o)},Sa.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:0},r,n);this._setPaintValue(t,e,i)},Sa.prototype._setPaintValue=function(t,e,r){if(&quot;color&quot;===this.type)for(var n=ka(r),i=t;i&lt;e;i++)this.paintVertexArray.emplace(i,n[0],n[1]);else{for(var a=t;a&lt;e;a++)this.paintVertexArray.emplace(a,r);this.maxValue=Math.max(this.maxValue,Math.abs(r))}},Sa.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Sa.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()};var Ea=function(t,e,r,n,i,a){this.expression=t,this.uniformNames=e.map((function(t){return&quot;u_&quot;+t+&quot;_t&quot;})),this.type=r,this.useIntegerZoom=n,this.zoom=i,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:&quot;a_&quot;+t,type:&quot;Float32&quot;,components:&quot;color&quot;===r?4:2,offset:0}})),this.paintVertexArray=new a};Ea.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.expression.evaluate(new ii(this.zoom),e,{},n,[],i),o=this.expression.evaluate(new ii(this.zoom+1),e,{},n,[],i),s=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(s,t,a,o)},Ea.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:this.zoom},r,n),a=this.expression.evaluate({zoom:this.zoom+1},r,n);this._setPaintValue(t,e,i,a)},Ea.prototype._setPaintValue=function(t,e,r,n){if(&quot;color&quot;===this.type)for(var i=ka(r),a=ka(n),o=t;o&lt;e;o++)this.paintVertexArray.emplace(o,i[0],i[1],a[0],a[1]);else{for(var s=t;s&lt;e;s++)this.paintVertexArray.emplace(s,r,n);this.maxValue=Math.max(this.maxValue,Math.abs(r),Math.abs(n))}},Ea.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Ea.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()},Ea.prototype.setUniform=function(t,e){var r=this.useIntegerZoom?Math.floor(e.zoom):e.zoom,n=l(this.expression.interpolationFactor(r,this.zoom,this.zoom+1),0,1);t.set(n)},Ea.prototype.getBinding=function(t,e,r){return new va(t,e)};var Ca=function(t,e,r,n,i,a){this.expression=t,this.type=e,this.useIntegerZoom=r,this.zoom=n,this.layerId=a,this.zoomInPaintVertexArray=new i,this.zoomOutPaintVertexArray=new i};Ca.prototype.populatePaintArray=function(t,e,r){var n=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(n,t,e.patterns&amp;&amp;e.patterns[this.layerId],r)},Ca.prototype.updatePaintArray=function(t,e,r,n,i){this._setPaintValues(t,e,r.patterns&amp;&amp;r.patterns[this.layerId],i)},Ca.prototype._setPaintValues=function(t,e,r,n){if(n&amp;&amp;r){var i=n[r.min],a=n[r.mid],o=n[r.max];if(i&amp;&amp;a&amp;&amp;o)for(var s=t;s&lt;e;s++)this.zoomInPaintVertexArray.emplace(s,a.tl[0],a.tl[1],a.br[0],a.br[1],i.tl[0],i.tl[1],i.br[0],i.br[1],a.pixelRatio,i.pixelRatio),this.zoomOutPaintVertexArray.emplace(s,a.tl[0],a.tl[1],a.br[0],a.br[1],o.tl[0],o.tl[1],o.br[0],o.br[1],a.pixelRatio,o.pixelRatio)}},Ca.prototype.upload=function(t){this.zoomInPaintVertexArray&amp;&amp;this.zoomInPaintVertexArray.arrayBuffer&amp;&amp;this.zoomOutPaintVertexArray&amp;&amp;this.zoomOutPaintVertexArray.arrayBuffer&amp;&amp;(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,oa.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,oa.members,this.expression.isStateDependent))},Ca.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&amp;&amp;this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&amp;&amp;this.zoomInPaintVertexBuffer.destroy()};var La=function(t,e,r,n){this.binders={},this.layoutAttributes=n,this._buffers=[];var i=[];for(var a in t.paint._values)if(r(a)){var o=t.paint.get(a);if(o instanceof fi&amp;&amp;Lr(o.property.specification)){var s=Pa(a,t.type),l=o.value,c=o.property.specification.type,u=o.property.useIntegerZoom,f=o.property.specification[&quot;property-type&quot;],h=&quot;cross-faded&quot;===f||&quot;cross-faded-data-driven&quot;===f;if(&quot;constant&quot;===l.kind)this.binders[a]=h?new Aa(l.value,s):new Ma(l.value,s,c),i.push(&quot;/u_&quot;+a);else if(&quot;source&quot;===l.kind||h){var p=za(a,c,&quot;source&quot;);this.binders[a]=h?new Ca(l,c,u,e,p,t.id):new Sa(l,s,c,p),i.push(&quot;/a_&quot;+a)}else{var d=za(a,c,&quot;composite&quot;);this.binders[a]=new Ea(l,s,c,u,e,d),i.push(&quot;/z_&quot;+a)}}}this.cacheKey=i.sort().join(&quot;&quot;)};La.prototype.getMaxValue=function(t){var e=this.binders[t];return e instanceof Sa||e instanceof Ea?e.maxValue:0},La.prototype.populatePaintArrays=function(t,e,r,n,i){for(var a in this.binders){var o=this.binders[a];(o instanceof Sa||o instanceof Ea||o instanceof Ca)&amp;&amp;o.populatePaintArray(t,e,r,n,i)}},La.prototype.setConstantPatternPositions=function(t,e){for(var r in this.binders){var n=this.binders[r];n instanceof Aa&amp;&amp;n.setConstantPatternPositions(t,e)}},La.prototype.updatePaintArrays=function(t,e,r,n,i){var a=!1;for(var o in t)for(var s=0,l=e.getPositions(o);s&lt;l.length;s+=1){var c=l[s],u=r.feature(c.index);for(var f in this.binders){var h=this.binders[f];if((h instanceof Sa||h instanceof Ea||h instanceof Ca)&amp;&amp;!0===h.expression.isStateDependent){var p=n.paint.get(f);h.expression=p.value,h.updatePaintArray(c.start,c.end,u,t[o],i),a=!0}}}return a},La.prototype.defines=function(){var t=[];for(var e in this.binders){var r=this.binders[e];(r instanceof Ma||r instanceof Aa)&amp;&amp;t.push.apply(t,r.uniformNames.map((function(t){return&quot;#define HAS_UNIFORM_&quot;+t})))}return t},La.prototype.getPaintVertexBuffers=function(){return this._buffers},La.prototype.getUniforms=function(t,e){var r=[];for(var n in this.binders){var i=this.binders[n];if(i instanceof Ma||i instanceof Aa||i instanceof Ea)for(var a=0,o=i.uniformNames;a&lt;o.length;a+=1){var s=o[a];if(e[s]){var l=i.getBinding(t,e[s],s);r.push({name:s,property:n,binding:l})}}}return r},La.prototype.setUniforms=function(t,e,r,n){for(var i=0,a=e;i&lt;a.length;i+=1){var o=a[i],s=o.name,l=o.property;this.binders[l].setUniform(o.binding,n,r.get(l),s)}},La.prototype.updatePaintBuffers=function(t){for(var e in this._buffers=[],this.binders){var r=this.binders[e];if(t&amp;&amp;r instanceof Ca){var n=2===t.fromScale?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;n&amp;&amp;this._buffers.push(n)}else(r instanceof Sa||r instanceof Ea)&amp;&amp;r.paintVertexBuffer&amp;&amp;this._buffers.push(r.paintVertexBuffer)}},La.prototype.upload=function(t){for(var e in this.binders){var r=this.binders[e];(r instanceof Sa||r instanceof Ea||r instanceof Ca)&amp;&amp;r.upload(t)}this.updatePaintBuffers()},La.prototype.destroy=function(){for(var t in this.binders){var e=this.binders[t];(e instanceof Sa||e instanceof Ea||e instanceof Ca)&amp;&amp;e.destroy()}};var Ia=function(t,e,r,n){void 0===n&amp;&amp;(n=function(){return!0}),this.programConfigurations={};for(var i=0,a=e;i&lt;a.length;i+=1){var o=a[i];this.programConfigurations[o.id]=new La(o,r,n,t)}this.needsUpload=!1,this._featureMap=new fa,this._bufferOffset=0};function Pa(t,e){return{&quot;text-opacity&quot;:[&quot;opacity&quot;],&quot;icon-opacity&quot;:[&quot;opacity&quot;],&quot;text-color&quot;:[&quot;fill_color&quot;],&quot;icon-color&quot;:[&quot;fill_color&quot;],&quot;text-halo-color&quot;:[&quot;halo_color&quot;],&quot;icon-halo-color&quot;:[&quot;halo_color&quot;],&quot;text-halo-blur&quot;:[&quot;halo_blur&quot;],&quot;icon-halo-blur&quot;:[&quot;halo_blur&quot;],&quot;text-halo-width&quot;:[&quot;halo_width&quot;],&quot;icon-halo-width&quot;:[&quot;halo_width&quot;],&quot;line-gap-width&quot;:[&quot;gapwidth&quot;],&quot;line-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;],&quot;fill-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;],&quot;fill-extrusion-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;]}[t]||[t.replace(e+&quot;-&quot;,&quot;&quot;).replace(/-/g,&quot;_&quot;)]}function za(t,e,r){var n={color:{source:Gi,composite:Yi},number:{source:ji,composite:Gi}},i=function(t){return{&quot;line-pattern&quot;:{source:Ci,composite:Ci},&quot;fill-pattern&quot;:{source:Ci,composite:Ci},&quot;fill-extrusion-pattern&quot;:{source:Ci,composite:Ci}}[t]}(t);return i&amp;&amp;i[r]||n[e][r]}Ia.prototype.populatePaintArrays=function(t,e,r,n,i,a){for(var o in this.programConfigurations)this.programConfigurations[o].populatePaintArrays(t,e,n,i,a);void 0!==e.id&amp;&amp;this._featureMap.add(e.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0},Ia.prototype.updatePaintArrays=function(t,e,r,n){for(var i=0,a=r;i&lt;a.length;i+=1){var o=a[i];this.needsUpload=this.programConfigurations[o.id].updatePaintArrays(t,this._featureMap,e,o,n)||this.needsUpload}},Ia.prototype.get=function(t){return this.programConfigurations[t]},Ia.prototype.upload=function(t){if(this.needsUpload){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}},Ia.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},Dn(&quot;ConstantBinder&quot;,Ma),Dn(&quot;CrossFadedConstantBinder&quot;,Aa),Dn(&quot;SourceExpressionBinder&quot;,Sa),Dn(&quot;CrossFadedCompositeBinder&quot;,Ca),Dn(&quot;CompositeExpressionBinder&quot;,Ea),Dn(&quot;ProgramConfiguration&quot;,La,{omit:[&quot;_buffers&quot;]}),Dn(&quot;ProgramConfigurationSet&quot;,Ia);var Oa={min:-1*Math.pow(2,14),max:Math.pow(2,14)-1};function Da(t){for(var e=8192/t.extent,r=t.loadGeometry(),n=0;n&lt;r.length;n++)for(var i=r[n],a=0;a&lt;i.length;a++){var o=i[a];o.x=Math.round(o.x*e),o.y=Math.round(o.y*e),(o.x&lt;Oa.min||o.x&gt;Oa.max||o.y&lt;Oa.min||o.y&gt;Oa.max)&amp;&amp;(_(&quot;Geometry exceeds allowed extent, reduce your vector tile buffer size&quot;),o.x=l(o.x,Oa.min,Oa.max),o.y=l(o.y,Oa.min,Oa.max))}return r}function Ra(t,e,r,n,i){t.emplaceBack(2*e+(n+1)/2,2*r+(i+1)/2)}var Fa=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Mi,this.indexArray=new Fi,this.segments=new ia,this.programConfigurations=new Ia(na,t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Ba(t,e){for(var r=0;r&lt;t.length;r++)if(Wa(e,t[r]))return!0;for(var n=0;n&lt;e.length;n++)if(Wa(t,e[n]))return!0;return!!Va(t,e)}function Na(t,e,r){return!!Wa(t,e)||!!Ha(e,t,r)}function ja(t,e){if(1===t.length)return Ya(e,t[0]);for(var r=0;r&lt;e.length;r++)for(var n=e[r],i=0;i&lt;n.length;i++)if(Wa(t,n[i]))return!0;for(var a=0;a&lt;t.length;a++)if(Ya(e,t[a]))return!0;for(var o=0;o&lt;e.length;o++)if(Va(t,e[o]))return!0;return!1}function Ua(t,e,r){if(t.length&gt;1){if(Va(t,e))return!0;for(var n=0;n&lt;e.length;n++)if(Ha(e[n],t,r))return!0}for(var i=0;i&lt;t.length;i++)if(Ha(t[i],e,r))return!0;return!1}function Va(t,e){if(0===t.length||0===e.length)return!1;for(var r=0;r&lt;t.length-1;r++)for(var n=t[r],i=t[r+1],a=0;a&lt;e.length-1;a++)if(qa(n,i,e[a],e[a+1]))return!0;return!1}function qa(t,e,r,n){return w(t,r,n)!==w(e,r,n)&amp;&amp;w(t,e,r)!==w(t,e,n)}function Ha(t,e,r){var n=r*r;if(1===e.length)return t.distSqr(e[0])&lt;n;for(var i=1;i&lt;e.length;i++)if(Ga(t,e[i-1],e[i])&lt;n)return!0;return!1}function Ga(t,e,r){var n=e.distSqr(r);if(0===n)return t.distSqr(e);var i=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;return t.distSqr(i&lt;0?e:i&gt;1?r:r.sub(e)._mult(i)._add(e))}function Ya(t,e){for(var r,n,i,a=!1,o=0;o&lt;t.length;o++)for(var s=0,l=(r=t[o]).length-1;s&lt;r.length;l=s++)(n=r[s]).y&gt;e.y!=(i=r[l]).y&gt;e.y&amp;&amp;e.x&lt;(i.x-n.x)*(e.y-n.y)/(i.y-n.y)+n.x&amp;&amp;(a=!a);return a}function Wa(t,e){for(var r=!1,n=0,i=t.length-1;n&lt;t.length;i=n++){var a=t[n],o=t[i];a.y&gt;e.y!=o.y&gt;e.y&amp;&amp;e.x&lt;(o.x-a.x)*(e.y-a.y)/(o.y-a.y)+a.x&amp;&amp;(r=!r)}return r}function Xa(t,e,r){var n=r[0],i=r[2];if(t.x&lt;n.x&amp;&amp;e.x&lt;n.x||t.x&gt;i.x&amp;&amp;e.x&gt;i.x||t.y&lt;n.y&amp;&amp;e.y&lt;n.y||t.y&gt;i.y&amp;&amp;e.y&gt;i.y)return!1;var a=w(t,e,r[0]);return a!==w(t,e,r[1])||a!==w(t,e,r[2])||a!==w(t,e,r[3])}function Za(t,e,r){var n=e.paint.get(t).value;return&quot;constant&quot;===n.kind?n.value:r.programConfigurations.get(e.id).getMaxValue(t)}function Ja(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ka(t,e,r,n,a){if(!e[0]&amp;&amp;!e[1])return t;var o=i.convert(e)._mult(a);&quot;viewport&quot;===r&amp;&amp;o._rotate(-n);for(var s=[],l=0;l&lt;t.length;l++)s.push(t[l].sub(o));return s}Fa.prototype.populate=function(t,e,r){var n=this.layers[0],i=[],a=null;&quot;circle&quot;===n.type&amp;&amp;(a=n.layout.get(&quot;circle-sort-key&quot;));for(var o=0,s=t;o&lt;s.length;o+=1){var l=s[o],c=l.feature,u=l.id,f=l.index,h=l.sourceLayerIndex,p=this.layers[0]._featureFilter.needGeometry,d={type:c.type,id:u,properties:c.properties,geometry:p?Da(c):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),d,r)){p||(d.geometry=Da(c));var g=a?a.evaluate(d,{},r):void 0;i.push({id:u,properties:c.properties,type:c.type,sourceLayerIndex:h,index:f,geometry:d.geometry,patterns:{},sortKey:g})}}a&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var m=0,v=i;m&lt;v.length;m+=1){var y=v[m],x=y.geometry,b=y.index,_=y.sourceLayerIndex,w=t[b].feature;this.addFeature(y,x,b,r),e.featureIndex.insert(w,x,b,_,this.index)}},Fa.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Fa.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Fa.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Fa.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,na),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Fa.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Fa.prototype.addFeature=function(t,e,r,n){for(var i=0,a=e;i&lt;a.length;i+=1)for(var o=0,s=a[i];o&lt;s.length;o+=1){var l=s[o],c=l.x,u=l.y;if(!(c&lt;0||c&gt;=8192||u&lt;0||u&gt;=8192)){var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),h=f.vertexLength;Ra(this.layoutVertexArray,c,u,-1,-1),Ra(this.layoutVertexArray,c,u,1,-1),Ra(this.layoutVertexArray,c,u,1,1),Ra(this.layoutVertexArray,c,u,-1,1),this.indexArray.emplaceBack(h,h+1,h+2),this.indexArray.emplaceBack(h,h+3,h+2),f.vertexLength+=4,f.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{},n)},Dn(&quot;CircleBucket&quot;,Fa,{omit:[&quot;layers&quot;]});var Qa=new yi({&quot;circle-sort-key&quot;:new di(At.layout_circle[&quot;circle-sort-key&quot;])}),$a={paint:new yi({&quot;circle-radius&quot;:new di(At.paint_circle[&quot;circle-radius&quot;]),&quot;circle-color&quot;:new di(At.paint_circle[&quot;circle-color&quot;]),&quot;circle-blur&quot;:new di(At.paint_circle[&quot;circle-blur&quot;]),&quot;circle-opacity&quot;:new di(At.paint_circle[&quot;circle-opacity&quot;]),&quot;circle-translate&quot;:new pi(At.paint_circle[&quot;circle-translate&quot;]),&quot;circle-translate-anchor&quot;:new pi(At.paint_circle[&quot;circle-translate-anchor&quot;]),&quot;circle-pitch-scale&quot;:new pi(At.paint_circle[&quot;circle-pitch-scale&quot;]),&quot;circle-pitch-alignment&quot;:new pi(At.paint_circle[&quot;circle-pitch-alignment&quot;]),&quot;circle-stroke-width&quot;:new di(At.paint_circle[&quot;circle-stroke-width&quot;]),&quot;circle-stroke-color&quot;:new di(At.paint_circle[&quot;circle-stroke-color&quot;]),&quot;circle-stroke-opacity&quot;:new di(At.paint_circle[&quot;circle-stroke-opacity&quot;])}),layout:Qa},to=&quot;undefined&quot;!=typeof Float32Array?Float32Array:Array;function eo(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ro(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],m=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*m,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,t[4]=(x=r[4])*n+(b=r[5])*s+(_=r[6])*f+(w=r[7])*g,t[5]=x*i+b*l+_*h+w*m,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,t[8]=(x=r[8])*n+(b=r[9])*s+(_=r[10])*f+(w=r[11])*g,t[9]=x*i+b*l+_*h+w*m,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,t[12]=(x=r[12])*n+(b=r[13])*s+(_=r[14])*f+(w=r[15])*g,t[13]=x*i+b*l+_*h+w*m,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,r=arguments.length;r--;)e+=t[r]*t[r];return Math.sqrt(e)});var no,io=ro;function ao(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}no=new to(3),to!=Float32Array&amp;&amp;(no[0]=0,no[1]=0,no[2]=0),function(){var t=new to(4);to!=Float32Array&amp;&amp;(t[0]=0,t[1]=0,t[2]=0,t[3]=0)}();var oo=(function(){var t=new to(2);to!=Float32Array&amp;&amp;(t[0]=0,t[1]=0)}(),function(t){function e(e){t.call(this,e,$a)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new Fa(t)},e.prototype.queryRadius=function(t){var e=t;return Za(&quot;circle-radius&quot;,this,e)+Za(&quot;circle-stroke-width&quot;,this,e)+Ja(this.paint.get(&quot;circle-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o,s){for(var l=Ka(t,this.paint.get(&quot;circle-translate&quot;),this.paint.get(&quot;circle-translate-anchor&quot;),a.angle,o),c=this.paint.get(&quot;circle-radius&quot;).evaluate(e,r)+this.paint.get(&quot;circle-stroke-width&quot;).evaluate(e,r),u=&quot;map&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;),f=u?l:function(t,e){return t.map((function(t){return so(t,e)}))}(l,s),h=u?c*o:c,p=0,d=n;p&lt;d.length;p+=1)for(var g=0,m=d[p];g&lt;m.length;g+=1){var v=m[g],y=u?v:so(v,s),x=h,b=ao([],[v.x,v.y,0,1],s);if(&quot;viewport&quot;===this.paint.get(&quot;circle-pitch-scale&quot;)&amp;&amp;&quot;map&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;)?x*=b[3]/a.cameraToCenterDistance:&quot;map&quot;===this.paint.get(&quot;circle-pitch-scale&quot;)&amp;&amp;&quot;viewport&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;)&amp;&amp;(x*=a.cameraToCenterDistance/b[3]),Na(f,y,x))return!0}return!1},e}(xi));function so(t,e){var r=ao([],[t.x,t.y,0,1],e);return new i(r[0]/r[3],r[1]/r[3])}var lo=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(Fa);function co(t,e,r,n){var i=e.width,a=e.height;if(n){if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==i*a*r)throw new RangeError(&quot;mismatched image size&quot;)}else n=new Uint8Array(i*a*r);return t.width=i,t.height=a,t.data=n,t}function uo(t,e,r){var n=e.width,i=e.height;if(n!==t.width||i!==t.height){var a=co({},{width:n,height:i},r);fo(t,a,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,n),height:Math.min(t.height,i)},r),t.width=n,t.height=i,t.data=a.data}}function fo(t,e,r,n,i,a){if(0===i.width||0===i.height)return e;if(i.width&gt;t.width||i.height&gt;t.height||r.x&gt;t.width-i.width||r.y&gt;t.height-i.height)throw new RangeError(&quot;out of range source coordinates for image copy&quot;);if(i.width&gt;e.width||i.height&gt;e.height||n.x&gt;e.width-i.width||n.y&gt;e.height-i.height)throw new RangeError(&quot;out of range destination coordinates for image copy&quot;);for(var o=t.data,s=e.data,l=0;l&lt;i.height;l++)for(var c=((r.y+l)*t.width+r.x)*a,u=((n.y+l)*e.width+n.x)*a,f=0;f&lt;i.width*a;f++)s[u+f]=o[c+f];return e}Dn(&quot;HeatmapBucket&quot;,lo,{omit:[&quot;layers&quot;]});var ho=function(t,e){co(this,t,1,e)};ho.prototype.resize=function(t){uo(this,t,1)},ho.prototype.clone=function(){return new ho({width:this.width,height:this.height},new Uint8Array(this.data))},ho.copy=function(t,e,r,n,i){fo(t,e,r,n,i,1)};var po=function(t,e){co(this,t,4,e)};po.prototype.resize=function(t){uo(this,t,4)},po.prototype.replace=function(t,e){e?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t},po.prototype.clone=function(){return new po({width:this.width,height:this.height},new Uint8Array(this.data))},po.copy=function(t,e,r,n,i){fo(t,e,r,n,i,4)},Dn(&quot;AlphaImage&quot;,ho),Dn(&quot;RGBAImage&quot;,po);var go={paint:new yi({&quot;heatmap-radius&quot;:new di(At.paint_heatmap[&quot;heatmap-radius&quot;]),&quot;heatmap-weight&quot;:new di(At.paint_heatmap[&quot;heatmap-weight&quot;]),&quot;heatmap-intensity&quot;:new pi(At.paint_heatmap[&quot;heatmap-intensity&quot;]),&quot;heatmap-color&quot;:new vi(At.paint_heatmap[&quot;heatmap-color&quot;]),&quot;heatmap-opacity&quot;:new pi(At.paint_heatmap[&quot;heatmap-opacity&quot;])})};function mo(t,e){for(var r=new Uint8Array(1024),n={},i=0,a=0;i&lt;256;i++,a+=4){n[e]=i/255;var o=t.evaluate(n);r[a+0]=Math.floor(255*o.r/o.a),r[a+1]=Math.floor(255*o.g/o.a),r[a+2]=Math.floor(255*o.b/o.a),r[a+3]=Math.floor(255*o.a)}return new po({width:256,height:1},r)}var vo=function(t){function e(e){t.call(this,e,go),this._updateColorRamp()}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new lo(t)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){&quot;heatmap-color&quot;===t&amp;&amp;this._updateColorRamp()},e.prototype._updateColorRamp=function(){this.colorRamp=mo(this._transitionablePaint._values[&quot;heatmap-color&quot;].value.expression,&quot;heatmapDensity&quot;),this.colorRampTexture=null},e.prototype.resize=function(){this.heatmapFbo&amp;&amp;(this.heatmapFbo.destroy(),this.heatmapFbo=null)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(&quot;heatmap-opacity&quot;)&amp;&amp;&quot;none&quot;!==this.visibility},e}(xi),yo={paint:new yi({&quot;hillshade-illumination-direction&quot;:new pi(At.paint_hillshade[&quot;hillshade-illumination-direction&quot;]),&quot;hillshade-illumination-anchor&quot;:new pi(At.paint_hillshade[&quot;hillshade-illumination-anchor&quot;]),&quot;hillshade-exaggeration&quot;:new pi(At.paint_hillshade[&quot;hillshade-exaggeration&quot;]),&quot;hillshade-shadow-color&quot;:new pi(At.paint_hillshade[&quot;hillshade-shadow-color&quot;]),&quot;hillshade-highlight-color&quot;:new pi(At.paint_hillshade[&quot;hillshade-highlight-color&quot;]),&quot;hillshade-accent-color&quot;:new pi(At.paint_hillshade[&quot;hillshade-accent-color&quot;])})},xo=function(t){function e(e){t.call(this,e,yo)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(&quot;hillshade-exaggeration&quot;)&amp;&amp;&quot;none&quot;!==this.visibility},e}(xi),bo=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;}],4).members,_o=To,wo=To;function To(t,e,r){r=r||2;var n,i,a,o,s,l,c,u=e&amp;&amp;e.length,f=u?e[0]*r:t.length,h=ko(t,0,f,r,!0),p=[];if(!h||h.next===h.prev)return p;if(u&amp;&amp;(h=function(t,e,r,n){var i,a,o,s=[];for(i=0,a=e.length;i&lt;a;i++)(o=ko(t,e[i]*n,i&lt;a-1?e[i+1]*n:t.length,n,!1))===o.next&amp;&amp;(o.steiner=!0),s.push(Do(o));for(s.sort(Io),i=0;i&lt;s.length;i++)Po(s[i],r),r=Mo(r,r.next);return r}(t,e,h,r)),t.length&gt;80*r){n=a=t[0],i=o=t[1];for(var d=r;d&lt;f;d+=r)(s=t[d])&lt;n&amp;&amp;(n=s),(l=t[d+1])&lt;i&amp;&amp;(i=l),s&gt;a&amp;&amp;(a=s),l&gt;o&amp;&amp;(o=l);c=0!==(c=Math.max(a-n,o-i))?1/c:0}return Ao(h,p,r,n,i,c),p}function ko(t,e,r,n,i){var a,o;if(i===Xo(t,e,r,n)&gt;0)for(a=e;a&lt;r;a+=n)o=Go(a,t[a],t[a+1],o);else for(a=r-n;a&gt;=e;a-=n)o=Go(a,t[a],t[a+1],o);return o&amp;&amp;No(o,o.next)&amp;&amp;(Yo(o),o=o.next),o}function Mo(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!No(n,n.next)&amp;&amp;0!==Bo(n.prev,n,n.next))n=n.next;else{if(Yo(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function Ao(t,e,r,n,i,a,o){if(t){!o&amp;&amp;a&amp;&amp;function(t,e,r,n){var i=t;do{null===i.z&amp;&amp;(i.z=Oo(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e&lt;c&amp;&amp;(s++,n=n.nextZ);e++);for(l=c;s&gt;0||l&gt;0&amp;&amp;n;)0!==s&amp;&amp;(0===l||!n||r.z&lt;=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o&gt;1)}(i)}(t,n,i,a);for(var s,l,c=t;t.prev!==t.next;)if(s=t.prev,l=t.next,a?Eo(t,n,i,a):So(t))e.push(s.i/r),e.push(t.i/r),e.push(l.i/r),Yo(t),t=l.next,c=l.next;else if((t=l)===c){o?1===o?Ao(t=Co(Mo(t),e,r),e,r,n,i,a,2):2===o&amp;&amp;Lo(t,e,r,n,i,a):Ao(Mo(t),e,r,n,i,a,1);break}}}function So(t){var e=t.prev,r=t,n=t.next;if(Bo(e,r,n)&gt;=0)return!1;for(var i=t.next.next;i!==t.prev;){if(Ro(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&amp;&amp;Bo(i.prev,i,i.next)&gt;=0)return!1;i=i.next}return!0}function Eo(t,e,r,n){var i=t.prev,a=t,o=t.next;if(Bo(i,a,o)&gt;=0)return!1;for(var s=i.x&gt;a.x?i.x&gt;o.x?i.x:o.x:a.x&gt;o.x?a.x:o.x,l=i.y&gt;a.y?i.y&gt;o.y?i.y:o.y:a.y&gt;o.y?a.y:o.y,c=Oo(i.x&lt;a.x?i.x&lt;o.x?i.x:o.x:a.x&lt;o.x?a.x:o.x,i.y&lt;a.y?i.y&lt;o.y?i.y:o.y:a.y&lt;o.y?a.y:o.y,e,r,n),u=Oo(s,l,e,r,n),f=t.prevZ,h=t.nextZ;f&amp;&amp;f.z&gt;=c&amp;&amp;h&amp;&amp;h.z&lt;=u;){if(f!==t.prev&amp;&amp;f!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,f.x,f.y)&amp;&amp;Bo(f.prev,f,f.next)&gt;=0)return!1;if(f=f.prevZ,h!==t.prev&amp;&amp;h!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&amp;&amp;Bo(h.prev,h,h.next)&gt;=0)return!1;h=h.nextZ}for(;f&amp;&amp;f.z&gt;=c;){if(f!==t.prev&amp;&amp;f!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,f.x,f.y)&amp;&amp;Bo(f.prev,f,f.next)&gt;=0)return!1;f=f.prevZ}for(;h&amp;&amp;h.z&lt;=u;){if(h!==t.prev&amp;&amp;h!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&amp;&amp;Bo(h.prev,h,h.next)&gt;=0)return!1;h=h.nextZ}return!0}function Co(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!No(i,a)&amp;&amp;jo(i,n,n.next,a)&amp;&amp;qo(i,a)&amp;&amp;qo(a,i)&amp;&amp;(e.push(i.i/r),e.push(n.i/r),e.push(a.i/r),Yo(n),Yo(n.next),n=t=a),n=n.next}while(n!==t);return Mo(n)}function Lo(t,e,r,n,i,a){var o=t;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&amp;&amp;Fo(o,s)){var l=Ho(o,s);return o=Mo(o,o.next),l=Mo(l,l.next),Ao(o,e,r,n,i,a),void Ao(l,e,r,n,i,a)}s=s.next}o=o.next}while(o!==t)}function Io(t,e){return t.x-e.x}function Po(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a&lt;=n.y&amp;&amp;a&gt;=n.next.y&amp;&amp;n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s&lt;=i&amp;&amp;s&gt;o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x&lt;n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,h=1/0;n=r;do{i&gt;=n.x&amp;&amp;n.x&gt;=u&amp;&amp;i!==n.x&amp;&amp;Ro(a&lt;f?i:o,a,u,f,a&lt;f?o:i,a,n.x,n.y)&amp;&amp;(l=Math.abs(a-n.y)/(i-n.x),qo(n,t)&amp;&amp;(l&lt;h||l===h&amp;&amp;(n.x&gt;r.x||n.x===r.x&amp;&amp;zo(r,n)))&amp;&amp;(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e)){var r=Ho(e,t);Mo(e,e.next),Mo(r,r.next)}}function zo(t,e){return Bo(t.prev,t,e.prev)&lt;0&amp;&amp;Bo(e.next,t,t.next)&lt;0}function Oo(t,e,r,n,i){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t=32767*(t-r)*i)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e=32767*(e-n)*i)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1}function Do(t){var e=t,r=t;do{(e.x&lt;r.x||e.x===r.x&amp;&amp;e.y&lt;r.y)&amp;&amp;(r=e),e=e.next}while(e!==t);return r}function Ro(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)&gt;=0&amp;&amp;(t-o)*(n-s)-(r-o)*(e-s)&gt;=0&amp;&amp;(r-o)*(a-s)-(i-o)*(n-s)&gt;=0}function Fo(t,e){return t.next.i!==e.i&amp;&amp;t.prev.i!==e.i&amp;&amp;!function(t,e){var r=t;do{if(r.i!==t.i&amp;&amp;r.next.i!==t.i&amp;&amp;r.i!==e.i&amp;&amp;r.next.i!==e.i&amp;&amp;jo(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&amp;&amp;(qo(t,e)&amp;&amp;qo(e,t)&amp;&amp;function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y&gt;a!=r.next.y&gt;a&amp;&amp;r.next.y!==r.y&amp;&amp;i&lt;(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&amp;&amp;(n=!n),r=r.next}while(r!==t);return n}(t,e)&amp;&amp;(Bo(t.prev,t,e.prev)||Bo(t,e.prev,e))||No(t,e)&amp;&amp;Bo(t.prev,t,t.next)&gt;0&amp;&amp;Bo(e.prev,e,e.next)&gt;0)}function Bo(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function No(t,e){return t.x===e.x&amp;&amp;t.y===e.y}function jo(t,e,r,n){var i=Vo(Bo(t,e,r)),a=Vo(Bo(t,e,n)),o=Vo(Bo(r,n,t)),s=Vo(Bo(r,n,e));return i!==a&amp;&amp;o!==s||!(0!==i||!Uo(t,r,e))||!(0!==a||!Uo(t,n,e))||!(0!==o||!Uo(r,t,n))||!(0!==s||!Uo(r,e,n))}function Uo(t,e,r){return e.x&lt;=Math.max(t.x,r.x)&amp;&amp;e.x&gt;=Math.min(t.x,r.x)&amp;&amp;e.y&lt;=Math.max(t.y,r.y)&amp;&amp;e.y&gt;=Math.min(t.y,r.y)}function Vo(t){return t&gt;0?1:t&lt;0?-1:0}function qo(t,e){return Bo(t.prev,t,t.next)&lt;0?Bo(t,e,t.next)&gt;=0&amp;&amp;Bo(t,t.prev,e)&gt;=0:Bo(t,e,t.prev)&lt;0||Bo(t,t.next,e)&lt;0}function Ho(t,e){var r=new Wo(t.i,t.x,t.y),n=new Wo(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function Go(t,e,r,n){var i=new Wo(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Yo(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&amp;&amp;(t.prevZ.nextZ=t.nextZ),t.nextZ&amp;&amp;(t.nextZ.prevZ=t.prevZ)}function Wo(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Xo(t,e,r,n){for(var i=0,a=e,o=r-n;a&lt;r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}function Zo(t,e,r,n,i){!function t(e,r,n,i,a){for(;i&gt;n;){if(i-n&gt;600){var o=i-n+1,s=r-n+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2&lt;0?-1:1);t(e,r,Math.max(n,Math.floor(r-s*c/o+u)),Math.min(i,Math.floor(r+(o-s)*c/o+u)),a)}var f=e[r],h=n,p=i;for(Jo(e,n,r),a(e[i],f)&gt;0&amp;&amp;Jo(e,n,i);h&lt;p;){for(Jo(e,h,p),h++,p--;a(e[h],f)&lt;0;)h++;for(;a(e[p],f)&gt;0;)p--}0===a(e[n],f)?Jo(e,n,p):Jo(e,++p,i),p&lt;=r&amp;&amp;(n=p+1),r&lt;=p&amp;&amp;(i=p-1)}}(t,e,r||0,n||t.length-1,i||Ko)}function Jo(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Ko(t,e){return t&lt;e?-1:t&gt;e?1:0}function Qo(t,e){var r=t.length;if(r&lt;=1)return[t];for(var n,i,a=[],o=0;o&lt;r;o++){var s=T(t[o]);0!==s&amp;&amp;(t[o].area=Math.abs(s),void 0===i&amp;&amp;(i=s&lt;0),i===s&lt;0?(n&amp;&amp;a.push(n),n=[t[o]]):n.push(t[o]))}if(n&amp;&amp;a.push(n),e&gt;1)for(var l=0;l&lt;a.length;l++)a[l].length&lt;=e||(Zo(a[l],e,1,a[l].length-1,$o),a[l]=a[l].slice(0,e));return a}function $o(t,e){return e.area-t.area}function ts(t,e,r){for(var n=r.patternDependencies,i=!1,a=0,o=e;a&lt;o.length;a+=1){var s=o[a].paint.get(t+&quot;-pattern&quot;);s.isConstant()||(i=!0);var l=s.constantOr(null);l&amp;&amp;(i=!0,n[l.to]=!0,n[l.from]=!0)}return i}function es(t,e,r,n,i){for(var a=i.patternDependencies,o=0,s=e;o&lt;s.length;o+=1){var l=s[o],c=l.paint.get(t+&quot;-pattern&quot;).value;if(&quot;constant&quot;!==c.kind){var u=c.evaluate({zoom:n-1},r,{},i.availableImages),f=c.evaluate({zoom:n},r,{},i.availableImages),h=c.evaluate({zoom:n+1},r,{},i.availableImages);f=f&amp;&amp;f.name?f.name:f,h=h&amp;&amp;h.name?h.name:h,a[u=u&amp;&amp;u.name?u.name:u]=!0,a[f]=!0,a[h]=!0,r.patterns[l.id]={min:u,mid:f,max:h}}}return r}To.deviation=function(t,e,r,n){var i=e&amp;&amp;e.length,a=Math.abs(Xo(t,0,i?e[0]*r:t.length,r));if(i)for(var o=0,s=e.length;o&lt;s;o++)a-=Math.abs(Xo(t,e[o]*r,o&lt;s-1?e[o+1]*r:t.length,r));var l=0;for(o=0;o&lt;n.length;o+=3){var c=n[o]*r,u=n[o+1]*r,f=n[o+2]*r;l+=Math.abs((t[c]-t[f])*(t[u+1]-t[c+1])-(t[c]-t[u])*(t[f+1]-t[c+1]))}return 0===a&amp;&amp;0===l?0:Math.abs((l-a)/a)},To.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i&lt;t.length;i++){for(var a=0;a&lt;t[i].length;a++)for(var o=0;o&lt;e;o++)r.vertices.push(t[i][a][o]);i&gt;0&amp;&amp;r.holes.push(n+=t[i-1].length)}return r},_o.default=wo;var rs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Mi,this.indexArray=new Fi,this.indexArray2=new qi,this.programConfigurations=new Ia(bo,t.layers,t.zoom),this.segments=new ia,this.segments2=new ia,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};rs.prototype.populate=function(t,e,r){this.hasPattern=ts(&quot;fill&quot;,this.layers,e);for(var n=this.layers[0].layout.get(&quot;fill-sort-key&quot;),i=[],a=0,o=t;a&lt;o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,p={type:l.type,id:c,properties:l.properties,geometry:h?Da(l):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),p,r)){h||(p.geometry=Da(l));var d=n?n.evaluate(p,{},r,e.availableImages):void 0;i.push({id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:p.geometry,patterns:{},sortKey:d})}}n&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var g=0,m=i;g&lt;m.length;g+=1){var v=m[g],y=v.geometry,x=v.index,b=v.sourceLayerIndex;if(this.hasPattern){var _=es(&quot;fill&quot;,this.layers,v,this.zoom,e);this.patternFeatures.push(_)}else this.addFeature(v,y,x,r,{});e.featureIndex.insert(t[x].feature,y,x,b,this.index)}},rs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},rs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},rs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},rs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},rs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,bo),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0},rs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},rs.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=Qo(e,500);a&lt;o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c&lt;u.length;c+=1)l+=u[c].length;for(var f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray),h=f.vertexLength,p=[],d=[],g=0,m=s;g&lt;m.length;g+=1){var v=m[g];if(0!==v.length){v!==s[0]&amp;&amp;d.push(p.length/2);var y=this.segments2.prepareSegment(v.length,this.layoutVertexArray,this.indexArray2),x=y.vertexLength;this.layoutVertexArray.emplaceBack(v[0].x,v[0].y),this.indexArray2.emplaceBack(x+v.length-1,x),p.push(v[0].x),p.push(v[0].y);for(var b=1;b&lt;v.length;b++)this.layoutVertexArray.emplaceBack(v[b].x,v[b].y),this.indexArray2.emplaceBack(x+b-1,x+b),p.push(v[b].x),p.push(v[b].y);y.vertexLength+=v.length,y.primitiveLength+=v.length}}for(var _=_o(p,d),w=0;w&lt;_.length;w+=3)this.indexArray.emplaceBack(h+_[w],h+_[w+1],h+_[w+2]);f.vertexLength+=l,f.primitiveLength+=_.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Dn(&quot;FillBucket&quot;,rs,{omit:[&quot;layers&quot;,&quot;patternFeatures&quot;]});var ns=new yi({&quot;fill-sort-key&quot;:new di(At.layout_fill[&quot;fill-sort-key&quot;])}),is={paint:new yi({&quot;fill-antialias&quot;:new pi(At.paint_fill[&quot;fill-antialias&quot;]),&quot;fill-opacity&quot;:new di(At.paint_fill[&quot;fill-opacity&quot;]),&quot;fill-color&quot;:new di(At.paint_fill[&quot;fill-color&quot;]),&quot;fill-outline-color&quot;:new di(At.paint_fill[&quot;fill-outline-color&quot;]),&quot;fill-translate&quot;:new pi(At.paint_fill[&quot;fill-translate&quot;]),&quot;fill-translate-anchor&quot;:new pi(At.paint_fill[&quot;fill-translate-anchor&quot;]),&quot;fill-pattern&quot;:new gi(At.paint_fill[&quot;fill-pattern&quot;])}),layout:ns},as=function(t){function e(e){t.call(this,e,is)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r);var n=this.paint._values[&quot;fill-outline-color&quot;];&quot;constant&quot;===n.value.kind&amp;&amp;void 0===n.value.value&amp;&amp;(this.paint._values[&quot;fill-outline-color&quot;]=this.paint._values[&quot;fill-color&quot;])},e.prototype.createBucket=function(t){return new rs(t)},e.prototype.queryRadius=function(){return Ja(this.paint.get(&quot;fill-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o){return ja(Ka(t,this.paint.get(&quot;fill-translate&quot;),this.paint.get(&quot;fill-translate-anchor&quot;),a.angle,o),n)},e.prototype.isTileClipped=function(){return!0},e}(xi),os=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_normal_ed&quot;,components:4,type:&quot;Int16&quot;}],4).members,ss=ls;function ls(t,e,r,n,i){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=i,t.readFields(cs,this,e)}function cs(t,e,r){1==t?e.id=r.readVarint():2==t?function(t,e){for(var r=t.readVarint()+t.pos;t.pos&lt;r;){var n=e._keys[t.readVarint()],i=e._values[t.readVarint()];e.properties[n]=i}}(r,e):3==t?e.type=r.readVarint():4==t&amp;&amp;(e._geometry=r.pos)}function us(t){for(var e,r,n=0,i=0,a=t.length,o=a-1;i&lt;a;o=i++)n+=((r=t[o]).x-(e=t[i]).x)*(e.y+r.y);return n}ls.types=[&quot;Unknown&quot;,&quot;Point&quot;,&quot;LineString&quot;,&quot;Polygon&quot;],ls.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,r=t.readVarint()+t.pos,n=1,a=0,o=0,s=0,l=[];t.pos&lt;r;){if(a&lt;=0){var c=t.readVarint();n=7&amp;c,a=c&gt;&gt;3}if(a--,1===n||2===n)o+=t.readSVarint(),s+=t.readSVarint(),1===n&amp;&amp;(e&amp;&amp;l.push(e),e=[]),e.push(new i(o,s));else{if(7!==n)throw new Error(&quot;unknown command &quot;+n);e&amp;&amp;e.push(e[0].clone())}}return e&amp;&amp;l.push(e),l},ls.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,i=0,a=0,o=1/0,s=-1/0,l=1/0,c=-1/0;t.pos&lt;e;){if(n&lt;=0){var u=t.readVarint();r=7&amp;u,n=u&gt;&gt;3}if(n--,1===r||2===r)(i+=t.readSVarint())&lt;o&amp;&amp;(o=i),i&gt;s&amp;&amp;(s=i),(a+=t.readSVarint())&lt;l&amp;&amp;(l=a),a&gt;c&amp;&amp;(c=a);else if(7!==r)throw new Error(&quot;unknown command &quot;+r)}return[o,l,s,c]},ls.prototype.toGeoJSON=function(t,e,r){var n,i,a=this.extent*Math.pow(2,r),o=this.extent*t,s=this.extent*e,l=this.loadGeometry(),c=ls.types[this.type];function u(t){for(var e=0;e&lt;t.length;e++){var r=t[e];t[e]=[360*(r.x+o)/a-180,360/Math.PI*Math.atan(Math.exp((180-360*(r.y+s)/a)*Math.PI/180))-90]}}switch(this.type){case 1:var f=[];for(n=0;n&lt;l.length;n++)f[n]=l[n][0];u(l=f);break;case 2:for(n=0;n&lt;l.length;n++)u(l[n]);break;case 3:for(l=function(t){var e=t.length;if(e&lt;=1)return[t];for(var r,n,i=[],a=0;a&lt;e;a++){var o=us(t[a]);0!==o&amp;&amp;(void 0===n&amp;&amp;(n=o&lt;0),n===o&lt;0?(r&amp;&amp;i.push(r),r=[t[a]]):r.push(t[a]))}return r&amp;&amp;i.push(r),i}(l),n=0;n&lt;l.length;n++)for(i=0;i&lt;l[n].length;i++)u(l[n][i])}1===l.length?l=l[0]:c=&quot;Multi&quot;+c;var h={type:&quot;Feature&quot;,geometry:{type:c,coordinates:l},properties:this.properties};return&quot;id&quot;in this&amp;&amp;(h.id=this.id),h};var fs=hs;function hs(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(ps,this,e),this.length=this._features.length}function ps(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():5===t?e.extent=r.readVarint():2===t?e._features.push(r.pos):3===t?e._keys.push(r.readString()):4===t&amp;&amp;e._values.push(function(t){for(var e=null,r=t.readVarint()+t.pos;t.pos&lt;r;){var n=t.readVarint()&gt;&gt;3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}(r))}function ds(t,e,r){if(3===t){var n=new fs(r,r.readVarint()+r.pos);n.length&amp;&amp;(e[n.name]=n)}}hs.prototype.feature=function(t){if(t&lt;0||t&gt;=this._features.length)throw new Error(&quot;feature index out of bounds&quot;);this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new ss(this._pbf,e,this.extent,this._keys,this._values)};var gs={VectorTile:function(t,e){this.layers=t.readFields(ds,{},e)},VectorTileFeature:ss,VectorTileLayer:fs},ms=gs.VectorTileFeature.types,vs=Math.pow(2,13);function ys(t,e,r,n,i,a,o,s){t.emplaceBack(e,r,2*Math.floor(n*vs)+o,i*vs*2,a*vs*2,Math.round(s))}var xs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Si,this.indexArray=new Fi,this.programConfigurations=new Ia(os,t.layers,t.zoom),this.segments=new ia,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function bs(t,e){return t.x===e.x&amp;&amp;(t.x&lt;0||t.x&gt;8192)||t.y===e.y&amp;&amp;(t.y&lt;0||t.y&gt;8192)}xs.prototype.populate=function(t,e,r){this.features=[],this.hasPattern=ts(&quot;fill-extrusion&quot;,this.layers,e);for(var n=0,i=t;n&lt;i.length;n+=1){var a=i[n],o=a.feature,s=a.id,l=a.index,c=a.sourceLayerIndex,u=this.layers[0]._featureFilter.needGeometry,f={type:o.type,id:s,properties:o.properties,geometry:u?Da(o):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),f,r)){var h={id:s,sourceLayerIndex:c,index:l,geometry:u?f.geometry:Da(o),properties:o.properties,type:o.type,patterns:{}};void 0!==o.id&amp;&amp;(h.id=o.id),this.hasPattern?this.features.push(es(&quot;fill-extrusion&quot;,this.layers,h,this.zoom,e)):this.addFeature(h,h.geometry,l,r,{}),e.featureIndex.insert(o,h.geometry,l,c,this.index,!0)}}},xs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.features;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},xs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},xs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},xs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},xs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,os),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},xs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},xs.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=Qo(e,500);a&lt;o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c&lt;u.length;c+=1)l+=u[c].length;for(var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),h=0,p=s;h&lt;p.length;h+=1){var d=p[h];if(0!==d.length&amp;&amp;!((P=d).every((function(t){return t.x&lt;0}))||P.every((function(t){return t.x&gt;8192}))||P.every((function(t){return t.y&lt;0}))||P.every((function(t){return t.y&gt;8192}))))for(var g=0,m=0;m&lt;d.length;m++){var v=d[m];if(m&gt;=1){var y=d[m-1];if(!bs(v,y)){f.vertexLength+4&gt;ia.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var x=v.sub(y)._perp()._unit(),b=y.dist(v);g+b&gt;32768&amp;&amp;(g=0),ys(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,0,g),ys(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,1,g),ys(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,0,g+=b),ys(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,1,g);var _=f.vertexLength;this.indexArray.emplaceBack(_,_+2,_+1),this.indexArray.emplaceBack(_+1,_+2,_+3),f.vertexLength+=4,f.primitiveLength+=2}}}}if(f.vertexLength+l&gt;ia.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray)),&quot;Polygon&quot;===ms[t.type]){for(var w=[],T=[],k=f.vertexLength,M=0,A=s;M&lt;A.length;M+=1){var S=A[M];if(0!==S.length){S!==s[0]&amp;&amp;T.push(w.length/2);for(var E=0;E&lt;S.length;E++){var C=S[E];ys(this.layoutVertexArray,C.x,C.y,0,0,1,1,0),w.push(C.x),w.push(C.y)}}}for(var L=_o(w,T),I=0;I&lt;L.length;I+=3)this.indexArray.emplaceBack(k+L[I],k+L[I+2],k+L[I+1]);f.primitiveLength+=L.length/3,f.vertexLength+=l}}var P;this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Dn(&quot;FillExtrusionBucket&quot;,xs,{omit:[&quot;layers&quot;,&quot;features&quot;]});var _s={paint:new yi({&quot;fill-extrusion-opacity&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-opacity&quot;]),&quot;fill-extrusion-color&quot;:new di(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-color&quot;]),&quot;fill-extrusion-translate&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-translate&quot;]),&quot;fill-extrusion-translate-anchor&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-translate-anchor&quot;]),&quot;fill-extrusion-pattern&quot;:new gi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-pattern&quot;]),&quot;fill-extrusion-height&quot;:new di(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-height&quot;]),&quot;fill-extrusion-base&quot;:new di(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-base&quot;]),&quot;fill-extrusion-vertical-gradient&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-vertical-gradient&quot;])})},ws=function(t){function e(e){t.call(this,e,_s)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new xs(t)},e.prototype.queryRadius=function(){return Ja(this.paint.get(&quot;fill-extrusion-translate&quot;))},e.prototype.is3D=function(){return!0},e.prototype.queryIntersectsFeature=function(t,e,r,n,a,o,s,l){var c=Ka(t,this.paint.get(&quot;fill-extrusion-translate&quot;),this.paint.get(&quot;fill-extrusion-translate-anchor&quot;),o.angle,s),u=this.paint.get(&quot;fill-extrusion-height&quot;).evaluate(e,r),f=this.paint.get(&quot;fill-extrusion-base&quot;).evaluate(e,r),h=function(t,e,r,n){for(var a=[],o=0,s=t;o&lt;s.length;o+=1){var l=s[o],c=[l.x,l.y,0,1];ao(c,c,e),a.push(new i(c[0]/c[3],c[1]/c[3]))}return a}(c,l),p=function(t,e,r,n){for(var a=[],o=[],s=n[8]*e,l=n[9]*e,c=n[10]*e,u=n[11]*e,f=n[8]*r,h=n[9]*r,p=n[10]*r,d=n[11]*r,g=0,m=t;g&lt;m.length;g+=1){for(var v=[],y=[],x=0,b=m[g];x&lt;b.length;x+=1){var _=b[x],w=_.x,T=_.y,k=n[0]*w+n[4]*T+n[12],M=n[1]*w+n[5]*T+n[13],A=n[2]*w+n[6]*T+n[14],S=n[3]*w+n[7]*T+n[15],E=A+c,C=S+u,L=k+f,I=M+h,P=A+p,z=S+d,O=new i((k+s)/C,(M+l)/C);O.z=E/C,v.push(O);var D=new i(L/z,I/z);D.z=P/z,y.push(D)}a.push(v),o.push(y)}return[a,o]}(n,f,u,l);return function(t,e,r){var n=1/0;ja(r,e)&amp;&amp;(n=ks(r,e[0]));for(var i=0;i&lt;e.length;i++)for(var a=e[i],o=t[i],s=0;s&lt;a.length-1;s++){var l=a[s],c=[l,a[s+1],o[s+1],o[s],l];Ba(r,c)&amp;&amp;(n=Math.min(n,ks(r,c)))}return n!==1/0&amp;&amp;n}(p[0],p[1],h)},e}(xi);function Ts(t,e){return t.x*e.x+t.y*e.y}function ks(t,e){if(1===t.length){for(var r,n=0,i=e[n++];!r||i.equals(r);)if(!(r=e[n++]))return 1/0;for(;n&lt;e.length;n++){var a=e[n],o=t[0],s=r.sub(i),l=a.sub(i),c=o.sub(i),u=Ts(s,s),f=Ts(s,l),h=Ts(l,l),p=Ts(c,s),d=Ts(c,l),g=u*h-f*f,m=(h*p-f*d)/g,v=(u*d-f*p)/g,y=i.z*(1-m-v)+r.z*m+a.z*v;if(isFinite(y))return y}return 1/0}for(var x=1/0,b=0,_=e;b&lt;_.length;b+=1)x=Math.min(x,_[b].z);return x}var Ms=Ti([{name:&quot;a_pos_normal&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_data&quot;,components:4,type:&quot;Uint8&quot;}],4).members,As=gs.VectorTileFeature.types,Ss=Math.cos(Math.PI/180*37.5),Es=Math.pow(2,14)/.5,Cs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Ei,this.indexArray=new Fi,this.programConfigurations=new Ia(Ms,t.layers,t.zoom),this.segments=new ia,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};Cs.prototype.populate=function(t,e,r){this.hasPattern=ts(&quot;line&quot;,this.layers,e);for(var n=this.layers[0].layout.get(&quot;line-sort-key&quot;),i=[],a=0,o=t;a&lt;o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,p={type:l.type,id:c,properties:l.properties,geometry:h?Da(l):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),p,r)){h||(p.geometry=Da(l));var d=n?n.evaluate(p,{},r):void 0;i.push({id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:p.geometry,patterns:{},sortKey:d})}}n&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var g=0,m=i;g&lt;m.length;g+=1){var v=m[g],y=v.geometry,x=v.index,b=v.sourceLayerIndex;if(this.hasPattern){var _=es(&quot;line&quot;,this.layers,v,this.zoom,e);this.patternFeatures.push(_)}else this.addFeature(v,y,x,r,{});e.featureIndex.insert(t[x].feature,y,x,b,this.index)}},Cs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Cs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},Cs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Cs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Cs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ms),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Cs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Cs.prototype.addFeature=function(t,e,r,n,i){for(var a=this.layers[0].layout,o=a.get(&quot;line-join&quot;).evaluate(t,{}),s=a.get(&quot;line-cap&quot;),l=a.get(&quot;line-miter-limit&quot;),c=a.get(&quot;line-round-limit&quot;),u=0,f=e;u&lt;f.length;u+=1)this.addLine(f[u],t,o,s,l,c);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Cs.prototype.addLine=function(t,e,r,n,i,a){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,e.properties&amp;&amp;e.properties.hasOwnProperty(&quot;mapbox_clip_start&quot;)&amp;&amp;e.properties.hasOwnProperty(&quot;mapbox_clip_end&quot;)){this.clipStart=+e.properties.mapbox_clip_start,this.clipEnd=+e.properties.mapbox_clip_end;for(var o=0;o&lt;t.length-1;o++)this.totalDistance+=t[o].dist(t[o+1]);this.updateScaledDistance()}for(var s=&quot;Polygon&quot;===As[e.type],l=t.length;l&gt;=2&amp;&amp;t[l-1].equals(t[l-2]);)l--;for(var c=0;c&lt;l-1&amp;&amp;t[c].equals(t[c+1]);)c++;if(!(l&lt;(s?3:2))){&quot;bevel&quot;===r&amp;&amp;(i=1.05);var u,f=this.overscaling&lt;=16?122880/(512*this.overscaling):0,h=this.segments.prepareSegment(10*l,this.layoutVertexArray,this.indexArray),p=void 0,d=void 0,g=void 0,m=void 0;this.e1=this.e2=-1,s&amp;&amp;(m=t[c].sub(u=t[l-2])._unit()._perp());for(var v=c;v&lt;l;v++)if(!(d=v===l-1?s?t[c+1]:void 0:t[v+1])||!t[v].equals(d)){m&amp;&amp;(g=m),u&amp;&amp;(p=u),u=t[v],m=d?d.sub(u)._unit()._perp():g;var y=(g=g||m).add(m);0===y.x&amp;&amp;0===y.y||y._unit();var x=g.x*m.x+g.y*m.y,b=y.x*m.x+y.y*m.y,_=0!==b?1/b:1/0,w=2*Math.sqrt(2-2*b),T=b&lt;Ss&amp;&amp;p&amp;&amp;d,k=g.x*m.y-g.y*m.x&gt;0;if(T&amp;&amp;v&gt;c){var M=u.dist(p);if(M&gt;2*f){var A=u.sub(u.sub(p)._mult(f/M)._round());this.updateDistance(p,A),this.addCurrentVertex(A,g,0,0,h),p=A}}var S=p&amp;&amp;d,E=S?r:s?&quot;butt&quot;:n;if(S&amp;&amp;&quot;round&quot;===E&amp;&amp;(_&lt;a?E=&quot;miter&quot;:_&lt;=2&amp;&amp;(E=&quot;fakeround&quot;)),&quot;miter&quot;===E&amp;&amp;_&gt;i&amp;&amp;(E=&quot;bevel&quot;),&quot;bevel&quot;===E&amp;&amp;(_&gt;2&amp;&amp;(E=&quot;flipbevel&quot;),_&lt;i&amp;&amp;(E=&quot;miter&quot;)),p&amp;&amp;this.updateDistance(p,u),&quot;miter&quot;===E)y._mult(_),this.addCurrentVertex(u,y,0,0,h);else if(&quot;flipbevel&quot;===E){if(_&gt;100)y=m.mult(-1);else{var C=_*g.add(m).mag()/g.sub(m).mag();y._perp()._mult(C*(k?-1:1))}this.addCurrentVertex(u,y,0,0,h),this.addCurrentVertex(u,y.mult(-1),0,0,h)}else if(&quot;bevel&quot;===E||&quot;fakeround&quot;===E){var L=-Math.sqrt(_*_-1),I=k?L:0,P=k?0:L;if(p&amp;&amp;this.addCurrentVertex(u,g,I,P,h),&quot;fakeround&quot;===E)for(var z=Math.round(180*w/Math.PI/20),O=1;O&lt;z;O++){var D=O/z;if(.5!==D){var R=D-.5;D+=D*R*(D-1)*((1.0904+x*(x*(3.55645-1.43519*x)-3.2452))*R*R+(.848013+x*(.215638*x-1.06021)))}var F=m.sub(g)._mult(D)._add(g)._unit()._mult(k?-1:1);this.addHalfVertex(u,F.x,F.y,!1,k,0,h)}d&amp;&amp;this.addCurrentVertex(u,m,-I,-P,h)}else if(&quot;butt&quot;===E)this.addCurrentVertex(u,y,0,0,h);else if(&quot;square&quot;===E){var B=p?1:-1;this.addCurrentVertex(u,y,B,B,h)}else&quot;round&quot;===E&amp;&amp;(p&amp;&amp;(this.addCurrentVertex(u,g,0,0,h),this.addCurrentVertex(u,g,1,1,h,!0)),d&amp;&amp;(this.addCurrentVertex(u,m,-1,-1,h,!0),this.addCurrentVertex(u,m,0,0,h)));if(T&amp;&amp;v&lt;l-1){var N=u.dist(d);if(N&gt;2*f){var j=u.add(d.sub(u)._mult(f/N)._round());this.updateDistance(u,j),this.addCurrentVertex(j,m,0,0,h),u=j}}}}},Cs.prototype.addCurrentVertex=function(t,e,r,n,i,a){void 0===a&amp;&amp;(a=!1);var o=e.y*n-e.x,s=-e.y-e.x*n;this.addHalfVertex(t,e.x+e.y*r,e.y-e.x*r,a,!1,r,i),this.addHalfVertex(t,o,s,a,!0,-n,i),this.distance&gt;Es/2&amp;&amp;0===this.totalDistance&amp;&amp;(this.distance=0,this.addCurrentVertex(t,e,r,n,i,a))},Cs.prototype.addHalfVertex=function(t,e,r,n,i,a,o){var s=.5*this.scaledDistance;this.layoutVertexArray.emplaceBack((t.x&lt;&lt;1)+(n?1:0),(t.y&lt;&lt;1)+(i?1:0),Math.round(63*e)+128,Math.round(63*r)+128,1+(0===a?0:a&lt;0?-1:1)|(63&amp;s)&lt;&lt;2,s&gt;&gt;6);var l=o.vertexLength++;this.e1&gt;=0&amp;&amp;this.e2&gt;=0&amp;&amp;(this.indexArray.emplaceBack(this.e1,this.e2,l),o.primitiveLength++),i?this.e2=l:this.e1=l},Cs.prototype.updateScaledDistance=function(){this.scaledDistance=this.totalDistance&gt;0?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(Es-1):this.distance},Cs.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},Dn(&quot;LineBucket&quot;,Cs,{omit:[&quot;layers&quot;,&quot;patternFeatures&quot;]});var Ls=new yi({&quot;line-cap&quot;:new pi(At.layout_line[&quot;line-cap&quot;]),&quot;line-join&quot;:new di(At.layout_line[&quot;line-join&quot;]),&quot;line-miter-limit&quot;:new pi(At.layout_line[&quot;line-miter-limit&quot;]),&quot;line-round-limit&quot;:new pi(At.layout_line[&quot;line-round-limit&quot;]),&quot;line-sort-key&quot;:new di(At.layout_line[&quot;line-sort-key&quot;])}),Is={paint:new yi({&quot;line-opacity&quot;:new di(At.paint_line[&quot;line-opacity&quot;]),&quot;line-color&quot;:new di(At.paint_line[&quot;line-color&quot;]),&quot;line-translate&quot;:new pi(At.paint_line[&quot;line-translate&quot;]),&quot;line-translate-anchor&quot;:new pi(At.paint_line[&quot;line-translate-anchor&quot;]),&quot;line-width&quot;:new di(At.paint_line[&quot;line-width&quot;]),&quot;line-gap-width&quot;:new di(At.paint_line[&quot;line-gap-width&quot;]),&quot;line-offset&quot;:new di(At.paint_line[&quot;line-offset&quot;]),&quot;line-blur&quot;:new di(At.paint_line[&quot;line-blur&quot;]),&quot;line-dasharray&quot;:new mi(At.paint_line[&quot;line-dasharray&quot;]),&quot;line-pattern&quot;:new gi(At.paint_line[&quot;line-pattern&quot;]),&quot;line-gradient&quot;:new vi(At.paint_line[&quot;line-gradient&quot;])}),layout:Ls},Ps=new(function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(e,r){return r=new ii(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),t.prototype.possiblyEvaluate.call(this,e,r)},e.prototype.evaluate=function(e,r,n,i){return r=u({},r,{zoom:Math.floor(r.zoom)}),t.prototype.evaluate.call(this,e,r,n,i)},e}(di))(Is.paint.properties[&quot;line-width&quot;].specification);Ps.useIntegerZoom=!0;var zs=function(t){function e(e){t.call(this,e,Is)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){&quot;line-gradient&quot;===t&amp;&amp;this._updateGradient()},e.prototype._updateGradient=function(){this.gradient=mo(this._transitionablePaint._values[&quot;line-gradient&quot;].value.expression,&quot;lineProgress&quot;),this.gradientTexture=null},e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r),this.paint._values[&quot;line-floorwidth&quot;]=Ps.possiblyEvaluate(this._transitioningPaint._values[&quot;line-width&quot;].value,e)},e.prototype.createBucket=function(t){return new Cs(t)},e.prototype.queryRadius=function(t){var e=t,r=Os(Za(&quot;line-width&quot;,this,e),Za(&quot;line-gap-width&quot;,this,e)),n=Za(&quot;line-offset&quot;,this,e);return r/2+Math.abs(n)+Ja(this.paint.get(&quot;line-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,a,o,s){var l=Ka(t,this.paint.get(&quot;line-translate&quot;),this.paint.get(&quot;line-translate-anchor&quot;),o.angle,s),c=s/2*Os(this.paint.get(&quot;line-width&quot;).evaluate(e,r),this.paint.get(&quot;line-gap-width&quot;).evaluate(e,r)),u=this.paint.get(&quot;line-offset&quot;).evaluate(e,r);return u&amp;&amp;(n=function(t,e){for(var r=[],n=new i(0,0),a=0;a&lt;t.length;a++){for(var o=t[a],s=[],l=0;l&lt;o.length;l++){var c=o[l],u=o[l+1],f=0===l?n:c.sub(o[l-1])._unit()._perp(),h=l===o.length-1?n:u.sub(c)._unit()._perp(),p=f._add(h)._unit();p._mult(1/(p.x*h.x+p.y*h.y)),s.push(p._mult(e)._add(c))}r.push(s)}return r}(n,u*s)),function(t,e,r){for(var n=0;n&lt;e.length;n++){var i=e[n];if(t.length&gt;=3)for(var a=0;a&lt;i.length;a++)if(Wa(t,i[a]))return!0;if(Ua(t,i,r))return!0}return!1}(l,n,c)},e.prototype.isTileClipped=function(){return!0},e}(xi);function Os(t,e){return e&gt;0?e+2*t:t}var Ds=Ti([{name:&quot;a_pos_offset&quot;,components:4,type:&quot;Int16&quot;},{name:&quot;a_data&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pixeloffset&quot;,components:4,type:&quot;Int16&quot;}],4),Rs=Ti([{name:&quot;a_projected_pos&quot;,components:3,type:&quot;Float32&quot;}],4),Fs=(Ti([{name:&quot;a_fade_opacity&quot;,components:1,type:&quot;Uint32&quot;}],4),Ti([{name:&quot;a_placed&quot;,components:2,type:&quot;Uint8&quot;},{name:&quot;a_shift&quot;,components:2,type:&quot;Float32&quot;}])),Bs=(Ti([{type:&quot;Int16&quot;,name:&quot;anchorPointX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorPointY&quot;},{type:&quot;Int16&quot;,name:&quot;x1&quot;},{type:&quot;Int16&quot;,name:&quot;y1&quot;},{type:&quot;Int16&quot;,name:&quot;x2&quot;},{type:&quot;Int16&quot;,name:&quot;y2&quot;},{type:&quot;Uint32&quot;,name:&quot;featureIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;sourceLayerIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;bucketIndex&quot;}]),Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_anchor_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_extrude&quot;,components:2,type:&quot;Int16&quot;}],4)),Ns=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Float32&quot;},{name:&quot;a_radius&quot;,components:1,type:&quot;Float32&quot;},{name:&quot;a_flags&quot;,components:2,type:&quot;Int16&quot;}],4);function js(t,e,r){return t.sections.forEach((function(t){t.text=function(t,e,r){var n=e.layout.get(&quot;text-transform&quot;).evaluate(r,{});return&quot;uppercase&quot;===n?t=t.toLocaleUpperCase():&quot;lowercase&quot;===n&amp;&amp;(t=t.toLocaleLowerCase()),ni.applyArabicShaping&amp;&amp;(t=ni.applyArabicShaping(t)),t}(t.text,e,r)})),t}Ti([{name:&quot;triangle&quot;,components:3,type:&quot;Uint16&quot;}]),Ti([{type:&quot;Int16&quot;,name:&quot;anchorX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorY&quot;},{type:&quot;Uint16&quot;,name:&quot;glyphStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;numGlyphs&quot;},{type:&quot;Uint32&quot;,name:&quot;vertexStartIndex&quot;},{type:&quot;Uint32&quot;,name:&quot;lineStartIndex&quot;},{type:&quot;Uint32&quot;,name:&quot;lineLength&quot;},{type:&quot;Uint16&quot;,name:&quot;segment&quot;},{type:&quot;Uint16&quot;,name:&quot;lowerSize&quot;},{type:&quot;Uint16&quot;,name:&quot;upperSize&quot;},{type:&quot;Float32&quot;,name:&quot;lineOffsetX&quot;},{type:&quot;Float32&quot;,name:&quot;lineOffsetY&quot;},{type:&quot;Uint8&quot;,name:&quot;writingMode&quot;},{type:&quot;Uint8&quot;,name:&quot;placedOrientation&quot;},{type:&quot;Uint8&quot;,name:&quot;hidden&quot;},{type:&quot;Uint32&quot;,name:&quot;crossTileID&quot;},{type:&quot;Int16&quot;,name:&quot;associatedIconIndex&quot;}]),Ti([{type:&quot;Int16&quot;,name:&quot;anchorX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorY&quot;},{type:&quot;Int16&quot;,name:&quot;rightJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;centerJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;leftJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;verticalPlacedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;placedIconSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;verticalPlacedIconSymbolIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;key&quot;},{type:&quot;Uint16&quot;,name:&quot;textBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;textBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalTextBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalTextBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;iconBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;iconBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalIconBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalIconBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;featureIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;numHorizontalGlyphVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numVerticalGlyphVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numIconVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numVerticalIconVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;useRuntimeCollisionCircles&quot;},{type:&quot;Uint32&quot;,name:&quot;crossTileID&quot;},{type:&quot;Float32&quot;,name:&quot;textBoxScale&quot;},{type:&quot;Float32&quot;,components:2,name:&quot;textOffset&quot;},{type:&quot;Float32&quot;,name:&quot;collisionCircleDiameter&quot;}]),Ti([{type:&quot;Float32&quot;,name:&quot;offsetX&quot;}]),Ti([{type:&quot;Int16&quot;,name:&quot;x&quot;},{type:&quot;Int16&quot;,name:&quot;y&quot;},{type:&quot;Int16&quot;,name:&quot;tileUnitDistanceFromAnchor&quot;}]);var Us={&quot;!&quot;:&quot;\ufe15&quot;,&quot;#&quot;:&quot;\uff03&quot;,$:&quot;\uff04&quot;,&quot;%&quot;:&quot;\uff05&quot;,&quot;&amp;&quot;:&quot;\uff06&quot;,&quot;(&quot;:&quot;\ufe35&quot;,&quot;)&quot;:&quot;\ufe36&quot;,&quot;*&quot;:&quot;\uff0a&quot;,&quot;+&quot;:&quot;\uff0b&quot;,&quot;,&quot;:&quot;\ufe10&quot;,&quot;-&quot;:&quot;\ufe32&quot;,&quot;.&quot;:&quot;\u30fb&quot;,&quot;/&quot;:&quot;\uff0f&quot;,&quot;:&quot;:&quot;\ufe13&quot;,&quot;;&quot;:&quot;\ufe14&quot;,&quot;&lt;&quot;:&quot;\ufe3f&quot;,&quot;=&quot;:&quot;\uff1d&quot;,&quot;&gt;&quot;:&quot;\ufe40&quot;,&quot;?&quot;:&quot;\ufe16&quot;,&quot;@&quot;:&quot;\uff20&quot;,&quot;[&quot;:&quot;\ufe47&quot;,&quot;\\&quot;:&quot;\uff3c&quot;,&quot;]&quot;:&quot;\ufe48&quot;,&quot;^&quot;:&quot;\uff3e&quot;,_:&quot;\ufe33&quot;,&quot;`&quot;:&quot;\uff40&quot;,&quot;{&quot;:&quot;\ufe37&quot;,&quot;|&quot;:&quot;\u2015&quot;,&quot;}&quot;:&quot;\ufe38&quot;,&quot;~&quot;:&quot;\uff5e&quot;,&quot;\xa2&quot;:&quot;\uffe0&quot;,&quot;\xa3&quot;:&quot;\uffe1&quot;,&quot;\xa5&quot;:&quot;\uffe5&quot;,&quot;\xa6&quot;:&quot;\uffe4&quot;,&quot;\xac&quot;:&quot;\uffe2&quot;,&quot;\xaf&quot;:&quot;\uffe3&quot;,&quot;\u2013&quot;:&quot;\ufe32&quot;,&quot;\u2014&quot;:&quot;\ufe31&quot;,&quot;\u2018&quot;:&quot;\ufe43&quot;,&quot;\u2019&quot;:&quot;\ufe44&quot;,&quot;\u201c&quot;:&quot;\ufe41&quot;,&quot;\u201d&quot;:&quot;\ufe42&quot;,&quot;\u2026&quot;:&quot;\ufe19&quot;,&quot;\u2027&quot;:&quot;\u30fb&quot;,&quot;\u20a9&quot;:&quot;\uffe6&quot;,&quot;\u3001&quot;:&quot;\ufe11&quot;,&quot;\u3002&quot;:&quot;\ufe12&quot;,&quot;\u3008&quot;:&quot;\ufe3f&quot;,&quot;\u3009&quot;:&quot;\ufe40&quot;,&quot;\u300a&quot;:&quot;\ufe3d&quot;,&quot;\u300b&quot;:&quot;\ufe3e&quot;,&quot;\u300c&quot;:&quot;\ufe41&quot;,&quot;\u300d&quot;:&quot;\ufe42&quot;,&quot;\u300e&quot;:&quot;\ufe43&quot;,&quot;\u300f&quot;:&quot;\ufe44&quot;,&quot;\u3010&quot;:&quot;\ufe3b&quot;,&quot;\u3011&quot;:&quot;\ufe3c&quot;,&quot;\u3014&quot;:&quot;\ufe39&quot;,&quot;\u3015&quot;:&quot;\ufe3a&quot;,&quot;\u3016&quot;:&quot;\ufe17&quot;,&quot;\u3017&quot;:&quot;\ufe18&quot;,&quot;\uff01&quot;:&quot;\ufe15&quot;,&quot;\uff08&quot;:&quot;\ufe35&quot;,&quot;\uff09&quot;:&quot;\ufe36&quot;,&quot;\uff0c&quot;:&quot;\ufe10&quot;,&quot;\uff0d&quot;:&quot;\ufe32&quot;,&quot;\uff0e&quot;:&quot;\u30fb&quot;,&quot;\uff1a&quot;:&quot;\ufe13&quot;,&quot;\uff1b&quot;:&quot;\ufe14&quot;,&quot;\uff1c&quot;:&quot;\ufe3f&quot;,&quot;\uff1e&quot;:&quot;\ufe40&quot;,&quot;\uff1f&quot;:&quot;\ufe16&quot;,&quot;\uff3b&quot;:&quot;\ufe47&quot;,&quot;\uff3d&quot;:&quot;\ufe48&quot;,&quot;\uff3f&quot;:&quot;\ufe33&quot;,&quot;\uff5b&quot;:&quot;\ufe37&quot;,&quot;\uff5c&quot;:&quot;\u2015&quot;,&quot;\uff5d&quot;:&quot;\ufe38&quot;,&quot;\uff5f&quot;:&quot;\ufe35&quot;,&quot;\uff60&quot;:&quot;\ufe36&quot;,&quot;\uff61&quot;:&quot;\ufe12&quot;,&quot;\uff62&quot;:&quot;\ufe41&quot;,&quot;\uff63&quot;:&quot;\ufe42&quot;},Vs=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1&lt;&lt;s)-1,c=l&gt;&gt;1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&amp;(1&lt;&lt;-u)-1,p&gt;&gt;=-u,u+=s;u&gt;0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&amp;(1&lt;&lt;-u)-1,a&gt;&gt;=-u,u+=n;u&gt;0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},qs=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1&lt;&lt;c)-1,f=u&gt;&gt;1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e&lt;0||0===e&amp;&amp;1/e&lt;0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))&lt;1&amp;&amp;(o--,l*=2),(e+=o+f&gt;=1?h/l:h*Math.pow(2,1-f))*l&gt;=2&amp;&amp;(o++,l/=2),o+f&gt;=u?(s=0,o=u):o+f&gt;=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i&gt;=8;t[r+p]=255&amp;s,p+=d,s/=256,i-=8);for(o=o&lt;&lt;i|s,c+=i;c&gt;0;t[r+p]=255&amp;o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g},Hs=Gs;function Gs(t){this.buf=ArrayBuffer.isView&amp;&amp;ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Gs.Varint=0,Gs.Fixed64=1,Gs.Bytes=2,Gs.Fixed32=5;var Ys=&quot;undefined&quot;==typeof TextDecoder?null:new TextDecoder(&quot;utf8&quot;);function Ws(t){return t.type===Gs.Bytes?t.readVarint()+t.pos:t.pos+1}function Xs(t,e,r){return r?4294967296*e+(t&gt;&gt;&gt;0):4294967296*(e&gt;&gt;&gt;0)+(t&gt;&gt;&gt;0)}function Zs(t,e,r){var n=e&lt;=16383?1:e&lt;=2097151?2:e&lt;=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i&gt;=t;i--)r.buf[i+n]=r.buf[i]}function Js(t,e){for(var r=0;r&lt;t.length;r++)e.writeVarint(t[r])}function Ks(t,e){for(var r=0;r&lt;t.length;r++)e.writeSVarint(t[r])}function Qs(t,e){for(var r=0;r&lt;t.length;r++)e.writeFloat(t[r])}function $s(t,e){for(var r=0;r&lt;t.length;r++)e.writeDouble(t[r])}function tl(t,e){for(var r=0;r&lt;t.length;r++)e.writeBoolean(t[r])}function el(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed32(t[r])}function rl(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed32(t[r])}function nl(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed64(t[r])}function il(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed64(t[r])}function al(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+16777216*t[e+3]}function ol(t,e,r){t[r]=e,t[r+1]=e&gt;&gt;&gt;8,t[r+2]=e&gt;&gt;&gt;16,t[r+3]=e&gt;&gt;&gt;24}function sl(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+(t[e+3]&lt;&lt;24)}function ll(t,e,r){1===t&amp;&amp;r.readMessage(cl,e)}function cl(t,e,r){if(3===t){var n=r.readMessage(ul,{}),i=n.width,a=n.height,o=n.left,s=n.top,l=n.advance;e.push({id:n.id,bitmap:new ho({width:i+6,height:a+6},n.bitmap),metrics:{width:i,height:a,left:o,top:s,advance:l}})}}function ul(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&amp;&amp;(e.advance=r.readVarint())}function fl(t){for(var e=0,r=0,n=0,i=t;n&lt;i.length;n+=1){var a=i[n];e+=a.w*a.h,r=Math.max(r,a.w)}t.sort((function(t,e){return e.h-t.h}));for(var o=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}],s=0,l=0,c=0,u=t;c&lt;u.length;c+=1)for(var f=u[c],h=o.length-1;h&gt;=0;h--){var p=o[h];if(!(f.w&gt;p.w||f.h&gt;p.h)){if(f.x=p.x,f.y=p.y,l=Math.max(l,f.y+f.h),s=Math.max(s,f.x+f.w),f.w===p.w&amp;&amp;f.h===p.h){var d=o.pop();h&lt;o.length&amp;&amp;(o[h]=d)}else f.h===p.h?(p.x+=f.w,p.w-=f.w):f.w===p.w?(p.y+=f.h,p.h-=f.h):(o.push({x:p.x+f.w,y:p.y,w:p.w-f.w,h:f.h}),p.y+=f.h,p.h-=f.h);break}}return{w:s,h:l,fill:e/(s*l)||0}}Gs.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos&lt;r;){var n=this.readVarint(),i=n&gt;&gt;3,a=this.pos;this.type=7&amp;n,t(i,e,this),this.pos===a&amp;&amp;this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=al(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=sl(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=al(this.buf,this.pos)+4294967296*al(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=al(this.buf,this.pos)+4294967296*sl(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=Vs(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Vs(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return e=127&amp;(r=n[this.pos++]),r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;7,r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;14,r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;21,r&lt;128?e:function(t,e,r){var n,i,a=r.buf;if(n=(112&amp;(i=a[r.pos++]))&gt;&gt;4,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;3,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;10,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;17,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;24,i&lt;128)return Xs(t,n,e);if(n|=(1&amp;(i=a[r.pos++]))&lt;&lt;31,i&lt;128)return Xs(t,n,e);throw new Error(&quot;Expected varint not more than 10 bytes&quot;)}(e|=(15&amp;(r=n[this.pos]))&lt;&lt;28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e&gt;=12&amp;&amp;Ys?function(t,e,r){return Ys.decode(t.subarray(e,r))}(this.buf,e,t):function(t,e,r){for(var n=&quot;&quot;,i=e;i&lt;r;){var a,o,s,l=t[i],c=null,u=l&gt;239?4:l&gt;223?3:l&gt;191?2:1;if(i+u&gt;r)break;1===u?l&lt;128&amp;&amp;(c=l):2===u?128==(192&amp;(a=t[i+1]))&amp;&amp;(c=(31&amp;l)&lt;&lt;6|63&amp;a)&lt;=127&amp;&amp;(c=null):3===u?(o=t[i+2],128==(192&amp;(a=t[i+1]))&amp;&amp;128==(192&amp;o)&amp;&amp;((c=(15&amp;l)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;o)&lt;=2047||c&gt;=55296&amp;&amp;c&lt;=57343)&amp;&amp;(c=null)):4===u&amp;&amp;(o=t[i+2],s=t[i+3],128==(192&amp;(a=t[i+1]))&amp;&amp;128==(192&amp;o)&amp;&amp;128==(192&amp;s)&amp;&amp;((c=(15&amp;l)&lt;&lt;18|(63&amp;a)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;s)&lt;=65535||c&gt;=1114112)&amp;&amp;(c=null)),null===c?(c=65533,u=1):c&gt;65535&amp;&amp;(c-=65536,n+=String.fromCharCode(c&gt;&gt;&gt;10&amp;1023|55296),c=56320|1023&amp;c),n+=String.fromCharCode(c),i+=u}return n}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Gs.Bytes)return t.push(this.readVarint(e));var r=Ws(this);for(t=t||[];this.pos&lt;r;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==Gs.Bytes)return t.push(this.readSVarint());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==Gs.Bytes)return t.push(this.readBoolean());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==Gs.Bytes)return t.push(this.readFloat());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==Gs.Bytes)return t.push(this.readDouble());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==Gs.Bytes)return t.push(this.readFixed32());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==Gs.Bytes)return t.push(this.readSFixed32());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==Gs.Bytes)return t.push(this.readFixed64());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==Gs.Bytes)return t.push(this.readSFixed64());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&amp;t;if(e===Gs.Varint)for(;this.buf[this.pos++]&gt;127;);else if(e===Gs.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Gs.Fixed32)this.pos+=4;else{if(e!==Gs.Fixed64)throw new Error(&quot;Unimplemented type: &quot;+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t&lt;&lt;3|e)},realloc:function(t){for(var e=this.length||16;e&lt;this.pos+t;)e*=2;if(e!==this.length){var r=new Uint8Array(e);r.set(this.buf),this.buf=r,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),ol(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),ol(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),ol(this.buf,-1&amp;t,this.pos),ol(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),ol(this.buf,-1&amp;t,this.pos),ol(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)&gt;268435455||t&lt;0?function(t,e){var r,n;if(t&gt;=0?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,n=n+1|0)),t&gt;=0x10000000000000000||t&lt;-0x10000000000000000)throw new Error(&quot;Given varint doesn't fit into 10 bytes&quot;);e.realloc(10),function(t,e,r){r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,r.buf[r.pos]=127&amp;(t&gt;&gt;&gt;=7)}(r,0,e),function(t,e){var r=(7&amp;t)&lt;&lt;4;e.buf[e.pos++]|=r|((t&gt;&gt;&gt;=3)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t)))))}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&amp;t|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=t&gt;&gt;&gt;7&amp;127))))},writeSVarint:function(t){this.writeVarint(t&lt;0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,r){for(var n,i,a=0;a&lt;e.length;a++){if((n=e.charCodeAt(a))&gt;55295&amp;&amp;n&lt;57344){if(!i){n&gt;56319||a+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n&lt;56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296&lt;&lt;10|n-56320|65536,i=null}else i&amp;&amp;(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n&lt;128?t[r++]=n:(n&lt;2048?t[r++]=n&gt;&gt;6|192:(n&lt;65536?t[r++]=n&gt;&gt;12|224:(t[r++]=n&gt;&gt;18|240,t[r++]=n&gt;&gt;12&amp;63|128),t[r++]=n&gt;&gt;6&amp;63|128),t[r++]=63&amp;n|128)}return r}(this.buf,t,this.pos);var r=this.pos-e;r&gt;=128&amp;&amp;Zs(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),qs(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),qs(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r&lt;e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var n=this.pos-r;n&gt;=128&amp;&amp;Zs(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,Gs.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,Js,e)},writePackedSVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,Ks,e)},writePackedBoolean:function(t,e){e.length&amp;&amp;this.writeMessage(t,tl,e)},writePackedFloat:function(t,e){e.length&amp;&amp;this.writeMessage(t,Qs,e)},writePackedDouble:function(t,e){e.length&amp;&amp;this.writeMessage(t,$s,e)},writePackedFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,el,e)},writePackedSFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,rl,e)},writePackedFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,nl,e)},writePackedSFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,il,e)},writeBytesField:function(t,e){this.writeTag(t,Gs.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Gs.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Gs.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Gs.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Gs.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Gs.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Gs.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Gs.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Gs.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Gs.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var hl=function(t,e){var r=e.pixelRatio,n=e.version,i=e.stretchX,a=e.stretchY,o=e.content;this.paddedRect=t,this.pixelRatio=r,this.stretchX=i,this.stretchY=a,this.content=o,this.version=n},pl={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};pl.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},pl.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},pl.tlbr.get=function(){return this.tl.concat(this.br)},pl.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(hl.prototype,pl);var dl=function(t,e){var r={},n={};this.haveRenderCallbacks=[];var i=[];this.addImages(t,r,i),this.addImages(e,n,i);var a=fl(i),o=new po({width:a.w||1,height:a.h||1});for(var s in t){var l=t[s],c=r[s].paddedRect;po.copy(l.data,o,{x:0,y:0},{x:c.x+1,y:c.y+1},l.data)}for(var u in e){var f=e[u],h=n[u].paddedRect,p=h.x+1,d=h.y+1,g=f.data.width,m=f.data.height;po.copy(f.data,o,{x:0,y:0},{x:p,y:d},f.data),po.copy(f.data,o,{x:0,y:m-1},{x:p,y:d-1},{width:g,height:1}),po.copy(f.data,o,{x:0,y:0},{x:p,y:d+m},{width:g,height:1}),po.copy(f.data,o,{x:g-1,y:0},{x:p-1,y:d},{width:1,height:m}),po.copy(f.data,o,{x:0,y:0},{x:p+g,y:d},{width:1,height:m})}this.image=o,this.iconPositions=r,this.patternPositions=n};dl.prototype.addImages=function(t,e,r){for(var n in t){var i=t[n],a={x:0,y:0,w:i.data.width+2,h:i.data.height+2};r.push(a),e[n]=new hl(a,i),i.hasRenderCallback&amp;&amp;this.haveRenderCallbacks.push(n)}},dl.prototype.patchUpdatedImages=function(t,e){for(var r in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[r],t.getImage(r),e),this.patchUpdatedImage(this.patternPositions[r],t.getImage(r),e)},dl.prototype.patchUpdatedImage=function(t,e,r){if(t&amp;&amp;e&amp;&amp;t.version!==e.version){t.version=e.version;var n=t.tl;r.update(e.data,void 0,{x:n[0],y:n[1]})}},Dn(&quot;ImagePosition&quot;,hl),Dn(&quot;ImageAtlas&quot;,dl);var gl={horizontal:1,vertical:2,horizontalOnly:3},ml=function(){this.scale=1,this.fontStack=&quot;&quot;,this.imageName=null};ml.forText=function(t,e){var r=new ml;return r.scale=t||1,r.fontStack=e,r},ml.forImage=function(t){var e=new ml;return e.imageName=t,e};var vl=function(){this.text=&quot;&quot;,this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function yl(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g){var m,v=vl.fromFeature(t,i);f===gl.vertical&amp;&amp;v.verticalizePunctuation();var y=ni.processBidirectionalText,x=ni.processStyledBidirectionalText;if(y&amp;&amp;1===v.sections.length){m=[];for(var b=0,_=y(v.toString(),Ml(v,c,a,e,n,p,d));b&lt;_.length;b+=1){var w=_[b],T=new vl;T.text=w,T.sections=v.sections;for(var k=0;k&lt;w.length;k++)T.sectionIndex.push(0);m.push(T)}}else if(x){m=[];for(var M=0,A=x(v.text,v.sectionIndex,Ml(v,c,a,e,n,p,d));M&lt;A.length;M+=1){var S=A[M],E=new vl;E.text=S[0],E.sectionIndex=S[1],E.sections=v.sections,m.push(E)}}else m=function(t,e){for(var r=[],n=t.text,i=0,a=0,o=e;a&lt;o.length;a+=1){var s=o[a];r.push(t.substring(i,s)),i=s}return i&lt;n.length&amp;&amp;r.push(t.substring(i,n.length)),r}(v,Ml(v,c,a,e,n,p,d));var C=[],L={positionedLines:C,text:v.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:f,iconsInText:!1,verticalizable:!1};return function(t,e,r,n,i,a,o,s,l,c,u,f){for(var h=0,p=-17,d=0,g=0,m=&quot;right&quot;===s?1:&quot;left&quot;===s?0:.5,v=0,y=0,x=i;y&lt;x.length;y+=1){var b=x[y];b.trim();var _=b.getMaxScale(),w=24*(_-1),T={positionedGlyphs:[],lineOffset:0};t.positionedLines[v]=T;var k=T.positionedGlyphs,M=0;if(b.length()){for(var A=0;A&lt;b.length();A++){var S=b.getSection(A),E=b.getSectionIndex(A),C=b.getCharCode(A),L=0,I=null,P=null,z=null,O=24,D=!(l===gl.horizontal||!u&amp;&amp;!Hn(C)||u&amp;&amp;(xl[C]||(H=C,Vn.Arabic(H)||Vn[&quot;Arabic Supplement&quot;](H)||Vn[&quot;Arabic Extended-A&quot;](H)||Vn[&quot;Arabic Presentation Forms-A&quot;](H)||Vn[&quot;Arabic Presentation Forms-B&quot;](H))));if(S.imageName){var R=n[S.imageName];if(!R)continue;z=S.imageName,t.iconsInText=t.iconsInText||!0,P=R.paddedRect;var F=R.displaySize;S.scale=24*S.scale/f,L=w+(24-F[1]*S.scale),O=(I={width:F[0],height:F[1],left:1,top:-3,advance:D?F[1]:F[0]}).advance;var B=D?F[0]*S.scale-24*_:F[1]*S.scale-24*_;B&gt;0&amp;&amp;B&gt;M&amp;&amp;(M=B)}else{var N=r[S.fontStack],j=N&amp;&amp;N[C];if(j&amp;&amp;j.rect)P=j.rect,I=j.metrics;else{var U=e[S.fontStack],V=U&amp;&amp;U[C];if(!V)continue;I=V.metrics}L=24*(_-S.scale)}D?(t.verticalizable=!0,k.push({glyph:C,imageName:z,x:h,y:p+L,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:I,rect:P}),h+=O*S.scale+c):(k.push({glyph:C,imageName:z,x:h,y:p+L,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:I,rect:P}),h+=I.advance*S.scale+c)}0!==k.length&amp;&amp;(d=Math.max(h-c,d),Sl(k,0,k.length-1,m,M)),h=0;var q=a*_+M;T.lineOffset=Math.max(M,w),p+=q,g=Math.max(q,g),++v}else p+=a,++v}var H,G=p- -17,Y=Al(o),W=Y.horizontalAlign,X=Y.verticalAlign;(function(t,e,r,n,i,a,o,s,l){var c,u=(e-r)*i;c=a!==o?-s*n- -17:(-n*l+.5)*o;for(var f=0,h=t;f&lt;h.length;f+=1)for(var p=0,d=h[f].positionedGlyphs;p&lt;d.length;p+=1){var g=d[p];g.x+=u,g.y+=c}})(t.positionedLines,m,W,X,d,g,a,G,i.length),t.top+=-X*G,t.bottom=t.top+G,t.left+=-W*d,t.right=t.left+d}(L,e,r,n,m,o,s,l,f,c,h,g),!function(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(0!==r[e].positionedGlyphs.length)return!1;return!0}(C)&amp;&amp;L}vl.fromFeature=function(t,e){for(var r=new vl,n=0;n&lt;t.sections.length;n++){var i=t.sections[n];i.image?r.addImageSection(i):r.addTextSection(i,e)}return r},vl.prototype.length=function(){return this.text.length},vl.prototype.getSection=function(t){return this.sections[this.sectionIndex[t]]},vl.prototype.getSectionIndex=function(t){return this.sectionIndex[t]},vl.prototype.getCharCode=function(t){return this.text.charCodeAt(t)},vl.prototype.verticalizePunctuation=function(){this.text=function(t){for(var e=&quot;&quot;,r=0;r&lt;t.length;r++){var n=t.charCodeAt(r+1)||null,i=t.charCodeAt(r-1)||null;e+=n&amp;&amp;Gn(n)&amp;&amp;!Us[t[r+1]]||i&amp;&amp;Gn(i)&amp;&amp;!Us[t[r-1]]||!Us[t[r]]?t[r]:Us[t[r]]}return e}(this.text)},vl.prototype.trim=function(){for(var t=0,e=0;e&lt;this.text.length&amp;&amp;xl[this.text.charCodeAt(e)];e++)t++;for(var r=this.text.length,n=this.text.length-1;n&gt;=0&amp;&amp;n&gt;=t&amp;&amp;xl[this.text.charCodeAt(n)];n--)r--;this.text=this.text.substring(t,r),this.sectionIndex=this.sectionIndex.slice(t,r)},vl.prototype.substring=function(t,e){var r=new vl;return r.text=this.text.substring(t,e),r.sectionIndex=this.sectionIndex.slice(t,e),r.sections=this.sections,r},vl.prototype.toString=function(){return this.text},vl.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,r){return Math.max(e,t.sections[r].scale)}),0)},vl.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(ml.forText(t.scale,t.fontStack||e));for(var r=this.sections.length-1,n=0;n&lt;t.text.length;++n)this.sectionIndex.push(r)},vl.prototype.addImageSection=function(t){var e=t.image?t.image.name:&quot;&quot;;if(0!==e.length){var r=this.getNextImageSectionCharCode();r?(this.text+=String.fromCharCode(r),this.sections.push(ml.forImage(e)),this.sectionIndex.push(this.sections.length-1)):_(&quot;Reached maximum number of images 6401&quot;)}else _(&quot;Can't add FormattedSection with an empty image.&quot;)},vl.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID&gt;=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var xl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},bl={};function _l(t,e,r,n,i,a){if(e.imageName){var o=n[e.imageName];return o?o.displaySize[0]*e.scale*24/a+i:0}var s=r[e.fontStack],l=s&amp;&amp;s[t];return l?l.metrics.advance*e.scale+i:0}function wl(t,e,r,n){var i=Math.pow(t-e,2);return n?t&lt;e?i/2:2*i:i+Math.abs(r)*r}function Tl(t,e,r){var n=0;return 10===t&amp;&amp;(n-=1e4),r&amp;&amp;(n+=150),40!==t&amp;&amp;65288!==t||(n+=50),41!==e&amp;&amp;65289!==e||(n+=50),n}function kl(t,e,r,n,i,a){for(var o=null,s=wl(e,r,i,a),l=0,c=n;l&lt;c.length;l+=1){var u=c[l],f=wl(e-u.x,r,i,a)+u.badness;f&lt;=s&amp;&amp;(o=u,s=f)}return{index:t,x:e,priorBreak:o,badness:s}}function Ml(t,e,r,n,i,a,o){if(&quot;point&quot;!==a)return[];if(!t)return[];for(var s,l=[],c=function(t,e,r,n,i,a){for(var o=0,s=0;s&lt;t.length();s++){var l=t.getSection(s);o+=_l(t.getCharCode(s),l,n,i,e,a)}return o/Math.max(1,Math.ceil(o/r))}(t,e,r,n,i,o),u=t.text.indexOf(&quot;\u200b&quot;)&gt;=0,f=0,h=0;h&lt;t.length();h++){var p=t.getSection(h),d=t.getCharCode(h);if(xl[d]||(f+=_l(d,p,n,i,e,o)),h&lt;t.length()-1){var g=!((s=d)&lt;11904||!(Vn[&quot;Bopomofo Extended&quot;](s)||Vn.Bopomofo(s)||Vn[&quot;CJK Compatibility Forms&quot;](s)||Vn[&quot;CJK Compatibility Ideographs&quot;](s)||Vn[&quot;CJK Compatibility&quot;](s)||Vn[&quot;CJK Radicals Supplement&quot;](s)||Vn[&quot;CJK Strokes&quot;](s)||Vn[&quot;CJK Symbols and Punctuation&quot;](s)||Vn[&quot;CJK Unified Ideographs Extension A&quot;](s)||Vn[&quot;CJK Unified Ideographs&quot;](s)||Vn[&quot;Enclosed CJK Letters and Months&quot;](s)||Vn[&quot;Halfwidth and Fullwidth Forms&quot;](s)||Vn.Hiragana(s)||Vn[&quot;Ideographic Description Characters&quot;](s)||Vn[&quot;Kangxi Radicals&quot;](s)||Vn[&quot;Katakana Phonetic Extensions&quot;](s)||Vn.Katakana(s)||Vn[&quot;Vertical Forms&quot;](s)||Vn[&quot;Yi Radicals&quot;](s)||Vn[&quot;Yi Syllables&quot;](s)));(bl[d]||g||p.imageName)&amp;&amp;l.push(kl(h+1,f,c,l,Tl(d,t.getCharCode(h+1),g&amp;&amp;u),!1))}}return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(kl(t.length(),f,c,l,0,!0))}function Al(t){var e=.5,r=.5;switch(t){case&quot;right&quot;:case&quot;top-right&quot;:case&quot;bottom-right&quot;:e=1;break;case&quot;left&quot;:case&quot;top-left&quot;:case&quot;bottom-left&quot;:e=0}switch(t){case&quot;bottom&quot;:case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:r=1;break;case&quot;top&quot;:case&quot;top-right&quot;:case&quot;top-left&quot;:r=0}return{horizontalAlign:e,verticalAlign:r}}function Sl(t,e,r,n,i){if(n||i)for(var a=t[r],o=(t[r].x+a.metrics.advance*a.scale)*n,s=e;s&lt;=r;s++)t[s].x-=o,t[s].y+=i}function El(t,e,r,n,i,a){var o,s=t.image;if(s.content){var l=s.content,c=s.pixelRatio||1;o=[l[0]/c,l[1]/c,s.displaySize[0]-l[2]/c,s.displaySize[1]-l[3]/c]}var u,f,h,p,d=e.left*a,g=e.right*a;&quot;width&quot;===r||&quot;both&quot;===r?(p=i[0]+d-n[3],f=i[0]+g+n[1]):f=(p=i[0]+(d+g-s.displaySize[0])/2)+s.displaySize[0];var m=e.top*a,v=e.bottom*a;return&quot;height&quot;===r||&quot;both&quot;===r?(u=i[1]+m-n[0],h=i[1]+v+n[2]):h=(u=i[1]+(m+v-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:u,right:f,bottom:h,left:p,collisionPadding:o}}bl[10]=!0,bl[32]=!0,bl[38]=!0,bl[40]=!0,bl[41]=!0,bl[43]=!0,bl[45]=!0,bl[47]=!0,bl[173]=!0,bl[183]=!0,bl[8203]=!0,bl[8208]=!0,bl[8211]=!0,bl[8231]=!0;var Cl=function(t){function e(e,r,n,i){t.call(this,e,r),this.angle=n,void 0!==i&amp;&amp;(this.segment=i)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.clone=function(){return new e(this.x,this.y,this.angle,this.segment)},e}(i);function Ll(t,e){var r=e.expression;if(&quot;constant&quot;===r.kind)return{kind:&quot;constant&quot;,layoutSize:r.evaluate(new ii(t+1))};if(&quot;source&quot;===r.kind)return{kind:&quot;source&quot;};for(var n=r.zoomStops,i=r.interpolationType,a=0;a&lt;n.length&amp;&amp;n[a]&lt;=t;)a++;for(var o=a=Math.max(0,a-1);o&lt;n.length&amp;&amp;n[o]&lt;t+1;)o++;o=Math.min(n.length-1,o);var s=n[a],l=n[o];return&quot;composite&quot;===r.kind?{kind:&quot;composite&quot;,minZoom:s,maxZoom:l,interpolationType:i}:{kind:&quot;camera&quot;,minZoom:s,maxZoom:l,minSize:r.evaluate(new ii(s)),maxSize:r.evaluate(new ii(l)),interpolationType:i}}function Il(t,e,r){var n=e.uSize,i=r.lowerSize;return&quot;source&quot;===t.kind?i/128:&quot;composite&quot;===t.kind?Ue(i/128,r.upperSize/128,e.uSizeT):n}function Pl(t,e){var r=0,n=0;if(&quot;constant&quot;===t.kind)n=t.layoutSize;else if(&quot;source&quot;!==t.kind){var i=t.interpolationType,a=i?l(rr.interpolationFactor(i,e,t.minZoom,t.maxZoom),0,1):0;&quot;camera&quot;===t.kind?n=Ue(t.minSize,t.maxSize,a):r=a}return{uSizeT:r,uSize:n}}Dn(&quot;Anchor&quot;,Cl);var zl=Object.freeze({__proto__:null,getSizeData:Ll,evaluateSizeForFeature:Il,evaluateSizeForZoom:Pl,SIZE_PACK_FACTOR:128});function Ol(t,e,r,n,i){if(void 0===e.segment)return!0;for(var a=e,o=e.segment+1,s=0;s&gt;-r/2;){if(--o&lt;0)return!1;s-=t[o].dist(a),a=t[o]}s+=t[o].dist(t[o+1]),o++;for(var l=[],c=0;s&lt;r/2;){var u=t[o],f=t[o+1];if(!f)return!1;var h=t[o-1].angleTo(u)-u.angleTo(f);for(h=Math.abs((h+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:h}),c+=h;s-l[0].distance&gt;n;)c-=l.shift().angleDelta;if(c&gt;i)return!1;o++,s+=u.dist(f)}return!0}function Dl(t){for(var e=0,r=0;r&lt;t.length-1;r++)e+=t[r].dist(t[r+1]);return e}function Rl(t,e,r){return t?.6*e*r:0}function Fl(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function Bl(t,e,r,n,i,a){for(var o=Rl(r,i,a),s=Fl(r,n)*a,l=0,c=Dl(t)/2,u=0;u&lt;t.length-1;u++){var f=t[u],h=t[u+1],p=f.dist(h);if(l+p&gt;c){var d=(c-l)/p,g=Ue(f.x,h.x,d),m=Ue(f.y,h.y,d),v=new Cl(g,m,h.angleTo(f),u);return v._round(),!o||Ol(t,v,s,o,e)?v:void 0}l+=p}}function Nl(t,e,r,n,i,a,o,s,l){var c=Rl(n,a,o),u=Fl(n,i),f=u*o,h=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-f&lt;e/4&amp;&amp;(e=f+e/4),function t(e,r,n,i,a,o,s,l,c){for(var u=o/2,f=Dl(e),h=0,p=r-n,d=[],g=0;g&lt;e.length-1;g++){for(var m=e[g],v=e[g+1],y=m.dist(v),x=v.angleTo(m);p+n&lt;h+y;){var b=((p+=n)-h)/y,_=Ue(m.x,v.x,b),w=Ue(m.y,v.y,b);if(_&gt;=0&amp;&amp;_&lt;c&amp;&amp;w&gt;=0&amp;&amp;w&lt;c&amp;&amp;p-u&gt;=0&amp;&amp;p+u&lt;=f){var T=new Cl(_,w,x,g);T._round(),i&amp;&amp;!Ol(e,T,o,i,a)||d.push(T)}}h+=y}return l||d.length||s||(d=t(e,h/2,n,i,a,o,s,!0,c)),d}(t,h?e/2*s%e:(u/2+2*a)*o*s%e,e,c,r,f,h,!1,l)}function jl(t,e,r,n,a){for(var o=[],s=0;s&lt;t.length;s++)for(var l=t[s],c=void 0,u=0;u&lt;l.length-1;u++){var f=l[u],h=l[u+1];f.x&lt;e&amp;&amp;h.x&lt;e||(f.x&lt;e?f=new i(e,f.y+(e-f.x)/(h.x-f.x)*(h.y-f.y))._round():h.x&lt;e&amp;&amp;(h=new i(e,f.y+(e-f.x)/(h.x-f.x)*(h.y-f.y))._round()),f.y&lt;r&amp;&amp;h.y&lt;r||(f.y&lt;r?f=new i(f.x+(r-f.y)/(h.y-f.y)*(h.x-f.x),r)._round():h.y&lt;r&amp;&amp;(h=new i(f.x+(r-f.y)/(h.y-f.y)*(h.x-f.x),r)._round()),f.x&gt;=n&amp;&amp;h.x&gt;=n||(f.x&gt;=n?f=new i(n,f.y+(n-f.x)/(h.x-f.x)*(h.y-f.y))._round():h.x&gt;=n&amp;&amp;(h=new i(n,f.y+(n-f.x)/(h.x-f.x)*(h.y-f.y))._round()),f.y&gt;=a&amp;&amp;h.y&gt;=a||(f.y&gt;=a?f=new i(f.x+(a-f.y)/(h.y-f.y)*(h.x-f.x),a)._round():h.y&gt;=a&amp;&amp;(h=new i(f.x+(a-f.y)/(h.y-f.y)*(h.x-f.x),a)._round()),c&amp;&amp;f.equals(c[c.length-1])||o.push(c=[f]),c.push(h)))))}return o}function Ul(t,e,r,n){var a=[],o=t.image,s=o.pixelRatio,l=o.paddedRect.w-2,c=o.paddedRect.h-2,u=t.right-t.left,f=t.bottom-t.top,h=o.stretchX||[[0,l]],p=o.stretchY||[[0,c]],d=function(t,e){return t+e[1]-e[0]},g=h.reduce(d,0),m=p.reduce(d,0),v=l-g,y=c-m,x=0,b=g,_=0,w=m,T=0,k=v,M=0,A=y;if(o.content&amp;&amp;n){var S=o.content;x=Vl(h,0,S[0]),_=Vl(p,0,S[1]),b=Vl(h,S[0],S[2]),w=Vl(p,S[1],S[3]),T=S[0]-x,M=S[1]-_,k=S[2]-S[0]-b,A=S[3]-S[1]-w}var E=function(n,a,l,c){var h=Hl(n.stretch-x,b,u,t.left),p=Gl(n.fixed-T,k,n.stretch,g),d=Hl(a.stretch-_,w,f,t.top),v=Gl(a.fixed-M,A,a.stretch,m),y=Hl(l.stretch-x,b,u,t.left),S=Gl(l.fixed-T,k,l.stretch,g),E=Hl(c.stretch-_,w,f,t.top),C=Gl(c.fixed-M,A,c.stretch,m),L=new i(h,d),I=new i(y,d),P=new i(y,E),z=new i(h,E),O=new i(p/s,v/s),D=new i(S/s,C/s),R=e*Math.PI/180;if(R){var F=Math.sin(R),B=Math.cos(R),N=[B,-F,F,B];L._matMult(N),I._matMult(N),z._matMult(N),P._matMult(N)}var j=n.stretch+n.fixed,U=a.stretch+a.fixed;return{tl:L,tr:I,bl:z,br:P,tex:{x:o.paddedRect.x+1+j,y:o.paddedRect.y+1+U,w:l.stretch+l.fixed-j,h:c.stretch+c.fixed-U},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:O,pixelOffsetBR:D,minFontScaleX:k/s/u,minFontScaleY:A/s/f,isSDF:r}};if(n&amp;&amp;(o.stretchX||o.stretchY))for(var C=ql(h,v,g),L=ql(p,y,m),I=0;I&lt;C.length-1;I++)for(var P=C[I],z=C[I+1],O=0;O&lt;L.length-1;O++)a.push(E(P,L[O],z,L[O+1]));else a.push(E({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return a}function Vl(t,e,r){for(var n=0,i=0,a=t;i&lt;a.length;i+=1){var o=a[i];n+=Math.max(e,Math.min(r,o[1]))-Math.max(e,Math.min(r,o[0]))}return n}function ql(t,e,r){for(var n=[{fixed:-1,stretch:0}],i=0,a=t;i&lt;a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=n[n.length-1];n.push({fixed:s-c.stretch,stretch:c.stretch}),n.push({fixed:s-c.stretch,stretch:c.stretch+(l-s)})}return n.push({fixed:e+1,stretch:r}),n}function Hl(t,e,r,n){return t/e*r+n}function Gl(t,e,r,n){return t-e*r/n}var Yl=function(t,e,r,n,a,o,s,l,c,u){if(this.boxStartIndex=t.length,c){var f=o.top,h=o.bottom,p=o.collisionPadding;p&amp;&amp;(f-=p[1],h+=p[3]);var d=h-f;d&gt;0&amp;&amp;(d=Math.max(10,d),this.circleDiameter=d)}else{var g=o.top*s-l,m=o.bottom*s+l,v=o.left*s-l,y=o.right*s+l,x=o.collisionPadding;if(x&amp;&amp;(v-=x[0]*s,g-=x[1]*s,y+=x[2]*s,m+=x[3]*s),u){var b=new i(v,g),_=new i(y,g),w=new i(v,m),T=new i(y,m),k=u*Math.PI/180;b._rotate(k),_._rotate(k),w._rotate(k),T._rotate(k),v=Math.min(b.x,_.x,w.x,T.x),y=Math.max(b.x,_.x,w.x,T.x),g=Math.min(b.y,_.y,w.y,T.y),m=Math.max(b.y,_.y,w.y,T.y)}t.emplaceBack(e.x,e.y,v,g,y,m,r,n,a)}this.boxEndIndex=t.length},Wl=function(t,e){if(void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e=Xl),this.data=t,this.length=this.data.length,this.compare=e,this.length&gt;0)for(var r=(this.length&gt;&gt;1)-1;r&gt;=0;r--)this._down(r)};function Xl(t,e){return t&lt;e?-1:t&gt;e?1:0}function Zl(t,e,r){void 0===e&amp;&amp;(e=1),void 0===r&amp;&amp;(r=!1);for(var n=1/0,a=1/0,o=-1/0,s=-1/0,l=t[0],c=0;c&lt;l.length;c++){var u=l[c];(!c||u.x&lt;n)&amp;&amp;(n=u.x),(!c||u.y&lt;a)&amp;&amp;(a=u.y),(!c||u.x&gt;o)&amp;&amp;(o=u.x),(!c||u.y&gt;s)&amp;&amp;(s=u.y)}var f=Math.min(o-n,s-a),h=f/2,p=new Wl([],Jl);if(0===f)return new i(n,a);for(var d=n;d&lt;o;d+=f)for(var g=a;g&lt;s;g+=f)p.push(new Kl(d+h,g+h,h,t));for(var m=function(t){for(var e=0,r=0,n=0,i=t[0],a=0,o=i.length,s=o-1;a&lt;o;s=a++){var l=i[a],c=i[s],u=l.x*c.y-c.x*l.y;r+=(l.x+c.x)*u,n+=(l.y+c.y)*u,e+=3*u}return new Kl(r/e,n/e,0,t)}(t),v=p.length;p.length;){var y=p.pop();(y.d&gt;m.d||!m.d)&amp;&amp;(m=y,r&amp;&amp;console.log(&quot;found best %d after %d probes&quot;,Math.round(1e4*y.d)/1e4,v)),y.max-m.d&lt;=e||(p.push(new Kl(y.p.x-(h=y.h/2),y.p.y-h,h,t)),p.push(new Kl(y.p.x+h,y.p.y-h,h,t)),p.push(new Kl(y.p.x-h,y.p.y+h,h,t)),p.push(new Kl(y.p.x+h,y.p.y+h,h,t)),v+=4)}return r&amp;&amp;(console.log(&quot;num probes: &quot;+v),console.log(&quot;best distance: &quot;+m.d)),m.p}function Jl(t,e){return e.max-t.max}function Kl(t,e,r,n){this.p=new i(t,e),this.h=r,this.d=function(t,e){for(var r=!1,n=1/0,i=0;i&lt;e.length;i++)for(var a=e[i],o=0,s=a.length,l=s-1;o&lt;s;l=o++){var c=a[o],u=a[l];c.y&gt;t.y!=u.y&gt;t.y&amp;&amp;t.x&lt;(u.x-c.x)*(t.y-c.y)/(u.y-c.y)+c.x&amp;&amp;(r=!r),n=Math.min(n,Ga(t,c,u))}return(r?1:-1)*Math.sqrt(n)}(this.p,n),this.max=this.d+this.h*Math.SQRT2}Wl.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},Wl.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length&gt;0&amp;&amp;(this.data[0]=e,this._down(0)),t}},Wl.prototype.peek=function(){return this.data[0]},Wl.prototype._up=function(t){for(var e=this.data,r=this.compare,n=e[t];t&gt;0;){var i=t-1&gt;&gt;1,a=e[i];if(r(n,a)&gt;=0)break;e[t]=a,t=i}e[t]=n},Wl.prototype._down=function(t){for(var e=this.data,r=this.compare,n=this.length&gt;&gt;1,i=e[t];t&lt;n;){var a=1+(t&lt;&lt;1),o=e[a],s=a+1;if(s&lt;this.length&amp;&amp;r(e[s],o)&lt;0&amp;&amp;(a=s,o=e[s]),r(o,i)&gt;=0)break;e[t]=o,t=a}e[t]=i};var Ql=Number.POSITIVE_INFINITY;function $l(t,e){return e[1]!==Ql?function(t,e,r){var n=0,i=0;switch(e=Math.abs(e),r=Math.abs(r),t){case&quot;top-right&quot;:case&quot;top-left&quot;:case&quot;top&quot;:i=r-7;break;case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:case&quot;bottom&quot;:i=7-r}switch(t){case&quot;top-right&quot;:case&quot;bottom-right&quot;:case&quot;right&quot;:n=-e;break;case&quot;top-left&quot;:case&quot;bottom-left&quot;:case&quot;left&quot;:n=e}return[n,i]}(t,e[0],e[1]):function(t,e){var r=0,n=0;e&lt;0&amp;&amp;(e=0);var i=e/Math.sqrt(2);switch(t){case&quot;top-right&quot;:case&quot;top-left&quot;:n=i-7;break;case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:n=7-i;break;case&quot;bottom&quot;:n=7-e;break;case&quot;top&quot;:n=e-7}switch(t){case&quot;top-right&quot;:case&quot;bottom-right&quot;:r=-i;break;case&quot;top-left&quot;:case&quot;bottom-left&quot;:r=i;break;case&quot;left&quot;:r=e;break;case&quot;right&quot;:r=-e}return[r,n]}(t,e[0])}function tc(t){switch(t){case&quot;right&quot;:case&quot;top-right&quot;:case&quot;bottom-right&quot;:return&quot;right&quot;;case&quot;left&quot;:case&quot;top-left&quot;:case&quot;bottom-left&quot;:return&quot;left&quot;}return&quot;center&quot;}function ec(t,e,r,n,a,o,s,l,c,u,f,h,p,d,g){var m=function(t,e,r,n,a,o,s,l){for(var c=n.layout.get(&quot;text-rotate&quot;).evaluate(o,{})*Math.PI/180,u=[],f=0,h=e.positionedLines;f&lt;h.length;f+=1)for(var p=h[f],d=0,g=p.positionedGlyphs;d&lt;g.length;d+=1){var m=g[d];if(m.rect){var v=m.rect||{},y=4,x=!0,b=1,_=0,w=(a||l)&amp;&amp;m.vertical,T=m.metrics.advance*m.scale/2;if(l&amp;&amp;e.verticalizable&amp;&amp;(_=p.lineOffset/2-(m.imageName?-(24-m.metrics.width*m.scale)/2:24*(m.scale-1))),m.imageName){var k=s[m.imageName];x=k.sdf,y=1/(b=k.pixelRatio)}var M=a?[m.x+T,m.y]:[0,0],A=a?[0,0]:[m.x+T+r[0],m.y+r[1]-_],S=[0,0];w&amp;&amp;(S=A,A=[0,0]);var E=(m.metrics.left-y)*m.scale-T+A[0],C=(-m.metrics.top-y)*m.scale+A[1],L=E+v.w*m.scale/b,I=C+v.h*m.scale/b,P=new i(E,C),z=new i(L,C),O=new i(E,I),D=new i(L,I);if(w){var R=new i(-T,T- -17),F=-Math.PI/2,B=12-T,N=new i(22-B,-(m.imageName?B:0)),j=new(Function.prototype.bind.apply(i,[null].concat(S)));P._rotateAround(F,R)._add(N)._add(j),z._rotateAround(F,R)._add(N)._add(j),O._rotateAround(F,R)._add(N)._add(j),D._rotateAround(F,R)._add(N)._add(j)}if(c){var U=Math.sin(c),V=Math.cos(c),q=[V,-U,U,V];P._matMult(q),z._matMult(q),O._matMult(q),D._matMult(q)}var H=new i(0,0),G=new i(0,0);u.push({tl:P,tr:z,bl:O,br:D,tex:v,writingMode:e.writingMode,glyphOffset:M,sectionIndex:m.sectionIndex,isSDF:x,pixelOffsetTL:H,pixelOffsetBR:G,minFontScaleX:0,minFontScaleY:0})}}return u}(0,r,l,a,o,s,n,t.allowVerticalPlacement),v=t.textSizeData,y=null;&quot;source&quot;===v.kind?(y=[128*a.layout.get(&quot;text-size&quot;).evaluate(s,{})])[0]&gt;32640&amp;&amp;_(t.layerIds[0]+': Value for &quot;text-size&quot; is &gt;= 255. Reduce your &quot;text-size&quot;.'):&quot;composite&quot;===v.kind&amp;&amp;((y=[128*d.compositeTextSizes[0].evaluate(s,{},g),128*d.compositeTextSizes[1].evaluate(s,{},g)])[0]&gt;32640||y[1]&gt;32640)&amp;&amp;_(t.layerIds[0]+': Value for &quot;text-size&quot; is &gt;= 255. Reduce your &quot;text-size&quot;.'),t.addSymbols(t.text,m,y,l,o,s,u,e,c.lineStartIndex,c.lineLength,p,g);for(var x=0,b=f;x&lt;b.length;x+=1)h[b[x]]=t.text.placedSymbolArray.length-1;return 4*m.length}function rc(t){for(var e in t)return t[e];return null}function nc(t,e,r,n){var i=t.compareText;if(e in i){for(var a=i[e],o=a.length-1;o&gt;=0;o--)if(n.dist(a[o])&lt;r)return!0}else i[e]=[];return i[e].push(n),!1}var ic=gs.VectorTileFeature.types,ac=[{name:&quot;a_fade_opacity&quot;,components:1,type:&quot;Uint8&quot;,offset:0}];function oc(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=s?Math.min(32640,Math.round(s[0])):0,d=s?Math.min(32640,Math.round(s[1])):0;t.emplaceBack(e,r,Math.round(32*n),Math.round(32*i),a,o,(p&lt;&lt;1)+(l?1:0),d,16*c,16*u,256*f,256*h)}function sc(t,e,r){t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r)}function lc(t){for(var e=0,r=t.sections;e&lt;r.length;e+=1)if(Xn(r[e].text))return!0;return!1}var cc=function(t){this.layoutVertexArray=new Li,this.indexArray=new Fi,this.programConfigurations=t,this.segments=new ia,this.dynamicLayoutVertexArray=new Ii,this.opacityVertexArray=new Pi,this.placedSymbolArray=new Ji};cc.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&amp;&amp;0===this.indexArray.length&amp;&amp;0===this.dynamicLayoutVertexArray.length&amp;&amp;0===this.opacityVertexArray.length},cc.prototype.upload=function(t,e,r,n){this.isEmpty()||(r&amp;&amp;(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ds.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,Rs.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,ac,!0),this.opacityVertexBuffer.itemSize=1),(r||n)&amp;&amp;this.programConfigurations.upload(t))},cc.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},Dn(&quot;SymbolBuffers&quot;,cc);var uc=function(t,e,r){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new r,this.segments=new ia,this.collisionVertexArray=new Ri};uc.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,Fs.members,!0)},uc.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},Dn(&quot;CollisionBuffers&quot;,uc);var fc=function(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=eo([]),this.placementViewportMatrix=eo([]);var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Ll(this.zoom,e[&quot;text-size&quot;]),this.iconSizeData=Ll(this.zoom,e[&quot;icon-size&quot;]);var r=this.layers[0].layout,n=r.get(&quot;symbol-sort-key&quot;),i=r.get(&quot;symbol-z-order&quot;);this.sortFeaturesByKey=&quot;viewport-y&quot;!==i&amp;&amp;void 0!==n.constantOr(1),this.sortFeaturesByY=(&quot;viewport-y&quot;===i||&quot;auto&quot;===i&amp;&amp;!this.sortFeaturesByKey)&amp;&amp;(r.get(&quot;text-allow-overlap&quot;)||r.get(&quot;icon-allow-overlap&quot;)||r.get(&quot;text-ignore-placement&quot;)||r.get(&quot;icon-ignore-placement&quot;)),&quot;point&quot;===r.get(&quot;symbol-placement&quot;)&amp;&amp;(this.writingModes=r.get(&quot;text-writing-mode&quot;).map((function(t){return gl[t]}))),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id})),this.sourceID=t.sourceID};fc.prototype.createArrays=function(){this.text=new cc(new Ia(Ds.members,this.layers,this.zoom,(function(t){return/^text/.test(t)}))),this.icon=new cc(new Ia(Ds.members,this.layers,this.zoom,(function(t){return/^icon/.test(t)}))),this.glyphOffsetArray=new $i,this.lineVertexArray=new ta,this.symbolInstances=new Qi},fc.prototype.calculateGlyphDependencies=function(t,e,r,n,i){for(var a=0;a&lt;t.length;a++)if(e[t.charCodeAt(a)]=!0,(r||n)&amp;&amp;i){var o=Us[t.charAt(a)];o&amp;&amp;(e[o.charCodeAt(0)]=!0)}},fc.prototype.populate=function(t,e,r){var n=this.layers[0],i=n.layout,a=i.get(&quot;text-font&quot;),o=i.get(&quot;text-field&quot;),s=i.get(&quot;icon-image&quot;),l=(&quot;constant&quot;!==o.value.kind||o.value.value instanceof te&amp;&amp;!o.value.value.isEmpty()||o.value.value.toString().length&gt;0)&amp;&amp;(&quot;constant&quot;!==a.value.kind||a.value.value.length&gt;0),c=&quot;constant&quot;!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length&gt;0,u=i.get(&quot;symbol-sort-key&quot;);if(this.features=[],l||c){for(var f=e.iconDependencies,h=e.glyphDependencies,p=e.availableImages,d=new ii(this.zoom),g=0,m=t;g&lt;m.length;g+=1){var v=m[g],y=v.feature,x=v.id,b=v.index,_=v.sourceLayerIndex,w=n._featureFilter.needGeometry,T={type:y.type,id:x,properties:y.properties,geometry:w?Da(y):[]};if(n._featureFilter.filter(d,T,r)){w||(T.geometry=Da(y));var k=void 0;if(l){var M=n.getValueAndResolveTokens(&quot;text-field&quot;,T,r,p),A=te.factory(M);lc(A)&amp;&amp;(this.hasRTLText=!0),(!this.hasRTLText||&quot;unavailable&quot;===ei()||this.hasRTLText&amp;&amp;ni.isParsed())&amp;&amp;(k=js(A,n,T))}var S=void 0;if(c){var E=n.getValueAndResolveTokens(&quot;icon-image&quot;,T,r,p);S=E instanceof ee?E:ee.fromString(E)}if(k||S){var C=this.sortFeaturesByKey?u.evaluate(T,{},r):void 0,L={id:x,text:k,icon:S,index:b,sourceLayerIndex:_,geometry:Da(y),properties:y.properties,type:ic[y.type],sortKey:C};if(this.features.push(L),S&amp;&amp;(f[S.name]=!0),k){var I=a.evaluate(T,{},r).join(&quot;,&quot;),P=&quot;map&quot;===i.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==i.get(&quot;symbol-placement&quot;);this.allowVerticalPlacement=this.writingModes&amp;&amp;this.writingModes.indexOf(gl.vertical)&gt;=0;for(var z=0,O=k.sections;z&lt;O.length;z+=1){var D=O[z];if(D.image)f[D.image.name]=!0;else{var R=qn(k.toString()),F=D.fontStack||I,B=h[F]=h[F]||{};this.calculateGlyphDependencies(D.text,B,P,this.allowVerticalPlacement,R)}}}}}}&quot;line&quot;===i.get(&quot;symbol-placement&quot;)&amp;&amp;(this.features=function(t){var e={},r={},n=[],i=0;function a(e){n.push(t[e]),i++}function o(t,e,i){var a=r[t];return delete r[t],r[e]=a,n[a].geometry[0].pop(),n[a].geometry[0]=n[a].geometry[0].concat(i[0]),a}function s(t,r,i){var a=e[r];return delete e[r],e[t]=a,n[a].geometry[0].shift(),n[a].geometry[0]=i[0].concat(n[a].geometry[0]),a}function l(t,e,r){var n=r?e[0][e[0].length-1]:e[0][0];return t+&quot;:&quot;+n.x+&quot;:&quot;+n.y}for(var c=0;c&lt;t.length;c++){var u=t[c],f=u.geometry,h=u.text?u.text.toString():null;if(h){var p=l(h,f),d=l(h,f,!0);if(p in r&amp;&amp;d in e&amp;&amp;r[p]!==e[d]){var g=s(p,d,f),m=o(p,d,n[g].geometry);delete e[p],delete r[d],r[l(h,n[m].geometry,!0)]=m,n[g].geometry=null}else p in r?o(p,d,f):d in e?s(p,d,f):(a(c),e[p]=i-1,r[d]=i-1)}else a(c)}return n.filter((function(t){return t.geometry}))}(this.features)),this.sortFeaturesByKey&amp;&amp;this.features.sort((function(t,e){return t.sortKey-e.sortKey}))}},fc.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,r),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,r))},fc.prototype.isEmpty=function(){return 0===this.symbolInstances.length&amp;&amp;!this.hasRTLText},fc.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},fc.prototype.upload=function(t){!this.uploaded&amp;&amp;this.hasDebugData()&amp;&amp;(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},fc.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},fc.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&amp;&amp;this.destroyDebugData()},fc.prototype.addToLineVertexArray=function(t,e){var r=this.lineVertexArray.length;if(void 0!==t.segment){for(var n=t.dist(e[t.segment+1]),i=t.dist(e[t.segment]),a={},o=t.segment+1;o&lt;e.length;o++)a[o]={x:e[o].x,y:e[o].y,tileUnitDistanceFromAnchor:n},o&lt;e.length-1&amp;&amp;(n+=e[o+1].dist(e[o]));for(var s=t.segment||0;s&gt;=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s&gt;0&amp;&amp;(i+=e[s-1].dist(e[s]));for(var l=0;l&lt;e.length;l++){var c=a[l];this.lineVertexArray.emplaceBack(c.x,c.y,c.tileUnitDistanceFromAnchor)}}return{lineStartIndex:r,lineLength:this.lineVertexArray.length-r}},fc.prototype.addSymbols=function(t,e,r,n,i,a,o,s,l,c,u,f){for(var h=t.indexArray,p=t.layoutVertexArray,d=t.segments.prepareSegment(4*e.length,p,h,a.sortKey),g=this.glyphOffsetArray.length,m=d.vertexLength,v=this.allowVerticalPlacement&amp;&amp;o===gl.vertical?Math.PI/2:0,y=a.text&amp;&amp;a.text.sections,x=0;x&lt;e.length;x++){var b=e[x],_=b.tl,w=b.tr,T=b.bl,k=b.br,M=b.tex,A=b.pixelOffsetTL,S=b.pixelOffsetBR,E=b.minFontScaleX,C=b.minFontScaleY,L=b.glyphOffset,I=b.isSDF,P=b.sectionIndex,z=d.vertexLength,O=L[1];oc(p,s.x,s.y,_.x,O+_.y,M.x,M.y,r,I,A.x,A.y,E,C),oc(p,s.x,s.y,w.x,O+w.y,M.x+M.w,M.y,r,I,S.x,A.y,E,C),oc(p,s.x,s.y,T.x,O+T.y,M.x,M.y+M.h,r,I,A.x,S.y,E,C),oc(p,s.x,s.y,k.x,O+k.y,M.x+M.w,M.y+M.h,r,I,S.x,S.y,E,C),sc(t.dynamicLayoutVertexArray,s,v),h.emplaceBack(z,z+1,z+2),h.emplaceBack(z+1,z+2,z+3),d.vertexLength+=4,d.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(L[0]),x!==e.length-1&amp;&amp;P===e[x+1].sectionIndex||t.programConfigurations.populatePaintArrays(p.length,a,a.index,{},f,y&amp;&amp;y[P])}t.placedSymbolArray.emplaceBack(s.x,s.y,g,this.glyphOffsetArray.length-g,m,l,c,s.segment,r?r[0]:0,r?r[1]:0,n[0],n[1],o,0,!1,0,u)},fc.prototype._addCollisionDebugVertex=function(t,e,r,n,i,a){return e.emplaceBack(0,0),t.emplaceBack(r.x,r.y,n,i,Math.round(a.x),Math.round(a.y))},fc.prototype.addCollisionDebugVertices=function(t,e,r,n,a,o,s){var l=a.segments.prepareSegment(4,a.layoutVertexArray,a.indexArray),c=l.vertexLength,u=a.layoutVertexArray,f=a.collisionVertexArray,h=s.anchorX,p=s.anchorY;this._addCollisionDebugVertex(u,f,o,h,p,new i(t,e)),this._addCollisionDebugVertex(u,f,o,h,p,new i(r,e)),this._addCollisionDebugVertex(u,f,o,h,p,new i(r,n)),this._addCollisionDebugVertex(u,f,o,h,p,new i(t,n)),l.vertexLength+=4;var d=a.indexArray;d.emplaceBack(c,c+1),d.emplaceBack(c+1,c+2),d.emplaceBack(c+2,c+3),d.emplaceBack(c+3,c),l.primitiveLength+=4},fc.prototype.addDebugCollisionBoxes=function(t,e,r,n){for(var i=t;i&lt;e;i++){var a=this.collisionBoxArray.get(i);this.addCollisionDebugVertices(a.x1,a.y1,a.x2,a.y2,n?this.textCollisionBox:this.iconCollisionBox,a.anchorPoint,r)}},fc.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&amp;&amp;this.destroyDebugData(),this.textCollisionBox=new uc(Oi,Bs.members,qi),this.iconCollisionBox=new uc(Oi,Bs.members,qi);for(var t=0;t&lt;this.symbolInstances.length;t++){var e=this.symbolInstances.get(t);this.addDebugCollisionBoxes(e.textBoxStartIndex,e.textBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.verticalTextBoxStartIndex,e.verticalTextBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.iconBoxStartIndex,e.iconBoxEndIndex,e,!1),this.addDebugCollisionBoxes(e.verticalIconBoxStartIndex,e.verticalIconBoxEndIndex,e,!1)}},fc.prototype._deserializeCollisionBoxesForSymbol=function(t,e,r,n,i,a,o,s,l){for(var c={},u=e;u&lt;r;u++){var f=t.get(u);c.textBox={x1:f.x1,y1:f.y1,x2:f.x2,y2:f.y2,anchorPointX:f.anchorPointX,anchorPointY:f.anchorPointY},c.textFeatureIndex=f.featureIndex;break}for(var h=n;h&lt;i;h++){var p=t.get(h);c.verticalTextBox={x1:p.x1,y1:p.y1,x2:p.x2,y2:p.y2,anchorPointX:p.anchorPointX,anchorPointY:p.anchorPointY},c.verticalTextFeatureIndex=p.featureIndex;break}for(var d=a;d&lt;o;d++){var g=t.get(d);c.iconBox={x1:g.x1,y1:g.y1,x2:g.x2,y2:g.y2,anchorPointX:g.anchorPointX,anchorPointY:g.anchorPointY},c.iconFeatureIndex=g.featureIndex;break}for(var m=s;m&lt;l;m++){var v=t.get(m);c.verticalIconBox={x1:v.x1,y1:v.y1,x2:v.x2,y2:v.y2,anchorPointX:v.anchorPointX,anchorPointY:v.anchorPointY},c.verticalIconFeatureIndex=v.featureIndex;break}return c},fc.prototype.deserializeCollisionBoxes=function(t){this.collisionArrays=[];for(var e=0;e&lt;this.symbolInstances.length;e++){var r=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,r.textBoxStartIndex,r.textBoxEndIndex,r.verticalTextBoxStartIndex,r.verticalTextBoxEndIndex,r.iconBoxStartIndex,r.iconBoxEndIndex,r.verticalIconBoxStartIndex,r.verticalIconBoxEndIndex))}},fc.prototype.hasTextData=function(){return this.text.segments.get().length&gt;0},fc.prototype.hasIconData=function(){return this.icon.segments.get().length&gt;0},fc.prototype.hasDebugData=function(){return this.textCollisionBox&amp;&amp;this.iconCollisionBox},fc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&amp;&amp;this.textCollisionBox.segments.get().length&gt;0},fc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&amp;&amp;this.iconCollisionBox.segments.get().length&gt;0},fc.prototype.addIndicesForPlacedSymbol=function(t,e){for(var r=t.placedSymbolArray.get(e),n=r.vertexStartIndex+4*r.numGlyphs,i=r.vertexStartIndex;i&lt;n;i+=4)t.indexArray.emplaceBack(i,i+1,i+2),t.indexArray.emplaceBack(i+1,i+2,i+3)},fc.prototype.getSortedSymbolIndexes=function(t){if(this.sortedAngle===t&amp;&amp;void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var e=Math.sin(t),r=Math.cos(t),n=[],i=[],a=[],o=0;o&lt;this.symbolInstances.length;++o){a.push(o);var s=this.symbolInstances.get(o);n.push(0|Math.round(e*s.anchorX+r*s.anchorY)),i.push(s.featureIndex)}return a.sort((function(t,e){return n[t]-n[e]||i[e]-i[t]})),a},fc.prototype.addToSortKeyRanges=function(t,e){var r=this.sortKeyRanges[this.sortKeyRanges.length-1];r&amp;&amp;r.sortKey===e?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})},fc.prototype.sortFeatures=function(t){var e=this;if(this.sortFeaturesByY&amp;&amp;this.sortedAngle!==t&amp;&amp;!(this.text.segments.get().length&gt;1||this.icon.segments.get().length&gt;1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var r=0,n=this.symbolInstanceIndexes;r&lt;n.length;r+=1){var i=this.symbolInstances.get(n[r]);this.featureSortOrder.push(i.featureIndex),[i.rightJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.leftJustifiedTextSymbolIndex].forEach((function(t,r,n){t&gt;=0&amp;&amp;n.indexOf(t)===r&amp;&amp;e.addIndicesForPlacedSymbol(e.text,t)})),i.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.text,i.verticalPlacedTextSymbolIndex),i.placedIconSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.icon,i.placedIconSymbolIndex),i.verticalPlacedIconSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.icon,i.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&amp;&amp;this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&amp;&amp;this.icon.indexBuffer.updateData(this.icon.indexArray)}},Dn(&quot;SymbolBucket&quot;,fc,{omit:[&quot;layers&quot;,&quot;collisionBoxArray&quot;,&quot;features&quot;,&quot;compareText&quot;]}),fc.MAX_GLYPHS=65535,fc.addDynamicAttributes=sc;var hc=new yi({&quot;symbol-placement&quot;:new pi(At.layout_symbol[&quot;symbol-placement&quot;]),&quot;symbol-spacing&quot;:new pi(At.layout_symbol[&quot;symbol-spacing&quot;]),&quot;symbol-avoid-edges&quot;:new pi(At.layout_symbol[&quot;symbol-avoid-edges&quot;]),&quot;symbol-sort-key&quot;:new di(At.layout_symbol[&quot;symbol-sort-key&quot;]),&quot;symbol-z-order&quot;:new pi(At.layout_symbol[&quot;symbol-z-order&quot;]),&quot;icon-allow-overlap&quot;:new pi(At.layout_symbol[&quot;icon-allow-overlap&quot;]),&quot;icon-ignore-placement&quot;:new pi(At.layout_symbol[&quot;icon-ignore-placement&quot;]),&quot;icon-optional&quot;:new pi(At.layout_symbol[&quot;icon-optional&quot;]),&quot;icon-rotation-alignment&quot;:new pi(At.layout_symbol[&quot;icon-rotation-alignment&quot;]),&quot;icon-size&quot;:new di(At.layout_symbol[&quot;icon-size&quot;]),&quot;icon-text-fit&quot;:new pi(At.layout_symbol[&quot;icon-text-fit&quot;]),&quot;icon-text-fit-padding&quot;:new pi(At.layout_symbol[&quot;icon-text-fit-padding&quot;]),&quot;icon-image&quot;:new di(At.layout_symbol[&quot;icon-image&quot;]),&quot;icon-rotate&quot;:new di(At.layout_symbol[&quot;icon-rotate&quot;]),&quot;icon-padding&quot;:new pi(At.layout_symbol[&quot;icon-padding&quot;]),&quot;icon-keep-upright&quot;:new pi(At.layout_symbol[&quot;icon-keep-upright&quot;]),&quot;icon-offset&quot;:new di(At.layout_symbol[&quot;icon-offset&quot;]),&quot;icon-anchor&quot;:new di(At.layout_symbol[&quot;icon-anchor&quot;]),&quot;icon-pitch-alignment&quot;:new pi(At.layout_symbol[&quot;icon-pitch-alignment&quot;]),&quot;text-pitch-alignment&quot;:new pi(At.layout_symbol[&quot;text-pitch-alignment&quot;]),&quot;text-rotation-alignment&quot;:new pi(At.layout_symbol[&quot;text-rotation-alignment&quot;]),&quot;text-field&quot;:new di(At.layout_symbol[&quot;text-field&quot;]),&quot;text-font&quot;:new di(At.layout_symbol[&quot;text-font&quot;]),&quot;text-size&quot;:new di(At.layout_symbol[&quot;text-size&quot;]),&quot;text-max-width&quot;:new di(At.layout_symbol[&quot;text-max-width&quot;]),&quot;text-line-height&quot;:new pi(At.layout_symbol[&quot;text-line-height&quot;]),&quot;text-letter-spacing&quot;:new di(At.layout_symbol[&quot;text-letter-spacing&quot;]),&quot;text-justify&quot;:new di(At.layout_symbol[&quot;text-justify&quot;]),&quot;text-radial-offset&quot;:new di(At.layout_symbol[&quot;text-radial-offset&quot;]),&quot;text-variable-anchor&quot;:new pi(At.layout_symbol[&quot;text-variable-anchor&quot;]),&quot;text-anchor&quot;:new di(At.layout_symbol[&quot;text-anchor&quot;]),&quot;text-max-angle&quot;:new pi(At.layout_symbol[&quot;text-max-angle&quot;]),&quot;text-writing-mode&quot;:new pi(At.layout_symbol[&quot;text-writing-mode&quot;]),&quot;text-rotate&quot;:new di(At.layout_symbol[&quot;text-rotate&quot;]),&quot;text-padding&quot;:new pi(At.layout_symbol[&quot;text-padding&quot;]),&quot;text-keep-upright&quot;:new pi(At.layout_symbol[&quot;text-keep-upright&quot;]),&quot;text-transform&quot;:new di(At.layout_symbol[&quot;text-transform&quot;]),&quot;text-offset&quot;:new di(At.layout_symbol[&quot;text-offset&quot;]),&quot;text-allow-overlap&quot;:new pi(At.layout_symbol[&quot;text-allow-overlap&quot;]),&quot;text-ignore-placement&quot;:new pi(At.layout_symbol[&quot;text-ignore-placement&quot;]),&quot;text-optional&quot;:new pi(At.layout_symbol[&quot;text-optional&quot;])}),pc={paint:new yi({&quot;icon-opacity&quot;:new di(At.paint_symbol[&quot;icon-opacity&quot;]),&quot;icon-color&quot;:new di(At.paint_symbol[&quot;icon-color&quot;]),&quot;icon-halo-color&quot;:new di(At.paint_symbol[&quot;icon-halo-color&quot;]),&quot;icon-halo-width&quot;:new di(At.paint_symbol[&quot;icon-halo-width&quot;]),&quot;icon-halo-blur&quot;:new di(At.paint_symbol[&quot;icon-halo-blur&quot;]),&quot;icon-translate&quot;:new pi(At.paint_symbol[&quot;icon-translate&quot;]),&quot;icon-translate-anchor&quot;:new pi(At.paint_symbol[&quot;icon-translate-anchor&quot;]),&quot;text-opacity&quot;:new di(At.paint_symbol[&quot;text-opacity&quot;]),&quot;text-color&quot;:new di(At.paint_symbol[&quot;text-color&quot;],{runtimeType:Bt,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),&quot;text-halo-color&quot;:new di(At.paint_symbol[&quot;text-halo-color&quot;]),&quot;text-halo-width&quot;:new di(At.paint_symbol[&quot;text-halo-width&quot;]),&quot;text-halo-blur&quot;:new di(At.paint_symbol[&quot;text-halo-blur&quot;]),&quot;text-translate&quot;:new pi(At.paint_symbol[&quot;text-translate&quot;]),&quot;text-translate-anchor&quot;:new pi(At.paint_symbol[&quot;text-translate-anchor&quot;])}),layout:hc},dc=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Ot,this.defaultValue=t};dc.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&amp;&amp;e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&amp;&amp;t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},dc.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},dc.prototype.outputDefined=function(){return!1},dc.prototype.serialize=function(){return null},Dn(&quot;FormatSectionOverride&quot;,dc,{omit:[&quot;defaultValue&quot;]});var gc=function(t){function e(e){t.call(this,e,pc)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.recalculate=function(e,r){if(t.prototype.recalculate.call(this,e,r),&quot;auto&quot;===this.layout.get(&quot;icon-rotation-alignment&quot;)&amp;&amp;(this.layout._values[&quot;icon-rotation-alignment&quot;]=&quot;point&quot;!==this.layout.get(&quot;symbol-placement&quot;)?&quot;map&quot;:&quot;viewport&quot;),&quot;auto&quot;===this.layout.get(&quot;text-rotation-alignment&quot;)&amp;&amp;(this.layout._values[&quot;text-rotation-alignment&quot;]=&quot;point&quot;!==this.layout.get(&quot;symbol-placement&quot;)?&quot;map&quot;:&quot;viewport&quot;),&quot;auto&quot;===this.layout.get(&quot;text-pitch-alignment&quot;)&amp;&amp;(this.layout._values[&quot;text-pitch-alignment&quot;]=this.layout.get(&quot;text-rotation-alignment&quot;)),&quot;auto&quot;===this.layout.get(&quot;icon-pitch-alignment&quot;)&amp;&amp;(this.layout._values[&quot;icon-pitch-alignment&quot;]=this.layout.get(&quot;icon-rotation-alignment&quot;)),&quot;point&quot;===this.layout.get(&quot;symbol-placement&quot;)){var n=this.layout.get(&quot;text-writing-mode&quot;);if(n){for(var i=[],a=0,o=n;a&lt;o.length;a+=1){var s=o[a];i.indexOf(s)&lt;0&amp;&amp;i.push(s)}this.layout._values[&quot;text-writing-mode&quot;]=i}else this.layout._values[&quot;text-writing-mode&quot;]=[&quot;horizontal&quot;]}this._setPaintOverrides()},e.prototype.getValueAndResolveTokens=function(t,e,r,n){var i=this.layout.get(t).evaluate(e,{},r,n),a=this._unevaluatedLayout._values[t];return a.isDataDriven()||Vr(a.value)||!i?i:function(t,e){return e.replace(/{([^{}]+)}/g,(function(e,r){return r in t?String(t[r]):&quot;&quot;}))}(e.properties,i)},e.prototype.createBucket=function(t){return new fc(t)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype._setPaintOverrides=function(){for(var t=0,r=pc.paint.overridableProperties;t&lt;r.length;t+=1){var n=r[t];if(e.hasPaintOverride(this.layout,n)){var i,a=this.paint.get(n),o=new dc(a),s=new Ur(o,a.property.specification);i=&quot;constant&quot;===a.value.kind||&quot;source&quot;===a.value.kind?new Hr(&quot;source&quot;,s):new Gr(&quot;composite&quot;,s,a.value.zoomStops,a.value._interpolationType),this.paint._values[n]=new fi(a.property,i,a.parameters)}}},e.prototype._handleOverridablePaintPropertyUpdate=function(t,r,n){return!(!this.layout||r.isDataDriven()||n.isDataDriven())&amp;&amp;e.hasPaintOverride(this.layout,t)},e.hasPaintOverride=function(t,e){var r=t.get(&quot;text-field&quot;),n=pc.paint.properties[e],i=!1,a=function(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(n.overrides&amp;&amp;n.overrides.hasOverride(r[e]))return void(i=!0)};if(&quot;constant&quot;===r.value.kind&amp;&amp;r.value.value instanceof te)a(r.value.value.sections);else if(&quot;source&quot;===r.value.kind){var o=function(t){i||(t instanceof oe&amp;&amp;ie(t.value)===Vt?a(t.value.sections):t instanceof ue?a(t.sections):t.eachChild(o))},s=r.value;s._styleExpression&amp;&amp;o(s._styleExpression.expression)}return i},e}(xi),mc={paint:new yi({&quot;background-color&quot;:new pi(At.paint_background[&quot;background-color&quot;]),&quot;background-pattern&quot;:new mi(At.paint_background[&quot;background-pattern&quot;]),&quot;background-opacity&quot;:new pi(At.paint_background[&quot;background-opacity&quot;])})},vc=function(t){function e(e){t.call(this,e,mc)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(xi),yc={paint:new yi({&quot;raster-opacity&quot;:new pi(At.paint_raster[&quot;raster-opacity&quot;]),&quot;raster-hue-rotate&quot;:new pi(At.paint_raster[&quot;raster-hue-rotate&quot;]),&quot;raster-brightness-min&quot;:new pi(At.paint_raster[&quot;raster-brightness-min&quot;]),&quot;raster-brightness-max&quot;:new pi(At.paint_raster[&quot;raster-brightness-max&quot;]),&quot;raster-saturation&quot;:new pi(At.paint_raster[&quot;raster-saturation&quot;]),&quot;raster-contrast&quot;:new pi(At.paint_raster[&quot;raster-contrast&quot;]),&quot;raster-resampling&quot;:new pi(At.paint_raster[&quot;raster-resampling&quot;]),&quot;raster-fade-duration&quot;:new pi(At.paint_raster[&quot;raster-fade-duration&quot;])})},xc=function(t){function e(e){t.call(this,e,yc)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(xi),bc=function(t){function e(e){t.call(this,e,{}),this.implementation=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.is3D=function(){return&quot;3d&quot;===this.implementation.renderingMode},e.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},e.prototype.recalculate=function(){},e.prototype.updateTransitions=function(){},e.prototype.hasTransition=function(){},e.prototype.serialize=function(){},e.prototype.onAdd=function(t){this.implementation.onAdd&amp;&amp;this.implementation.onAdd(t,t.painter.context.gl)},e.prototype.onRemove=function(t){this.implementation.onRemove&amp;&amp;this.implementation.onRemove(t,t.painter.context.gl)},e}(xi),_c={circle:oo,heatmap:vo,hillshade:xo,fill:as,&quot;fill-extrusion&quot;:ws,line:zs,symbol:gc,background:vc,raster:xc},wc=self.HTMLImageElement,Tc=self.HTMLCanvasElement,kc=self.HTMLVideoElement,Mc=self.ImageData,Ac=self.ImageBitmap,Sc=function(t,e,r,n){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this.update(e,n)};Sc.prototype.update=function(t,e,r){var n=t.width,i=t.height,a=!(this.size&amp;&amp;this.size[0]===n&amp;&amp;this.size[1]===i||r),o=this.context,s=o.gl;if(this.useMipmap=Boolean(e&amp;&amp;e.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1),o.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&amp;&amp;(!e||!1!==e.premultiply)),a)this.size=[n,i],t instanceof wc||t instanceof Tc||t instanceof kc||t instanceof Mc||Ac&amp;&amp;t instanceof Ac?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,t):s.texImage2D(s.TEXTURE_2D,0,this.format,n,i,0,this.format,s.UNSIGNED_BYTE,t.data);else{var l=r||{x:0,y:0},c=l.x,u=l.y;t instanceof wc||t instanceof Tc||t instanceof kc||t instanceof Mc||Ac&amp;&amp;t instanceof Ac?s.texSubImage2D(s.TEXTURE_2D,0,c,u,s.RGBA,s.UNSIGNED_BYTE,t):s.texSubImage2D(s.TEXTURE_2D,0,c,u,n,i,s.RGBA,s.UNSIGNED_BYTE,t.data)}this.useMipmap&amp;&amp;this.isSizePowerOfTwo()&amp;&amp;s.generateMipmap(s.TEXTURE_2D)},Sc.prototype.bind=function(t,e,r){var n=this.context.gl;n.bindTexture(n.TEXTURE_2D,this.texture),r!==n.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(r=n.LINEAR),t!==this.filter&amp;&amp;(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,r||t),this.filter=t),e!==this.wrap&amp;&amp;(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)},Sc.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&amp;&amp;Math.log(this.size[0])/Math.LN2%1==0},Sc.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var Ec=function(t){var e=this;this._callback=t,this._triggered=!1,&quot;undefined&quot;!=typeof MessageChannel&amp;&amp;(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){e._triggered=!1,e._callback()})};Ec.prototype.trigger=function(){var t=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((function(){t._triggered=!1,t._callback()}),0))},Ec.prototype.remove=function(){delete this._channel,this._callback=function(){}};var Cc=function(t,e,r){this.target=t,this.parent=e,this.mapId=r,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},g([&quot;receive&quot;,&quot;process&quot;],this),this.invoker=new Ec(this.process),this.target.addEventListener(&quot;message&quot;,this.receive,!1),this.globalScope=k()?t:self};function Lc(t,e,r){var n=2*Math.PI*6378137/256/Math.pow(2,r);return[t*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}Cc.prototype.send=function(t,e,r,n,i){var a=this;void 0===i&amp;&amp;(i=!1);var o=Math.round(1e18*Math.random()).toString(36).substring(0,10);r&amp;&amp;(this.callbacks[o]=r);var s=S(this.globalScope)?void 0:[];return this.target.postMessage({id:o,type:t,hasCallback:!!r,targetMapId:n,mustQueue:i,sourceMapId:this.mapId,data:Nn(e,s)},s),{cancel:function(){r&amp;&amp;delete a.callbacks[o],a.target.postMessage({id:o,type:&quot;&lt;cancel&gt;&quot;,targetMapId:n,sourceMapId:a.mapId})}}},Cc.prototype.receive=function(t){var e=t.data,r=e.id;if(r&amp;&amp;(!e.targetMapId||this.mapId===e.targetMapId))if(&quot;&lt;cancel&gt;&quot;===e.type){delete this.tasks[r];var n=this.cancelCallbacks[r];delete this.cancelCallbacks[r],n&amp;&amp;n()}else k()||e.mustQueue?(this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger()):this.processTask(r,e)},Cc.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&amp;&amp;this.invoker.trigger(),e&amp;&amp;this.processTask(t,e)}},Cc.prototype.processTask=function(t,e){var r=this;if(&quot;&lt;response&gt;&quot;===e.type){var n=this.callbacks[t];delete this.callbacks[t],n&amp;&amp;(e.error?n(jn(e.error)):n(null,jn(e.data)))}else{var i=!1,a=S(this.globalScope)?void 0:[],o=e.hasCallback?function(e,n){i=!0,delete r.cancelCallbacks[t],r.target.postMessage({id:t,type:&quot;&lt;response&gt;&quot;,sourceMapId:r.mapId,error:e?Nn(e):null,data:Nn(n,a)},a)}:function(t){i=!0},s=null,l=jn(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,l,o);else if(this.parent.getWorkerSource){var c=e.type.split(&quot;.&quot;);s=this.parent.getWorkerSource(e.sourceMapId,c[0],l.source)[c[1]](l,o)}else o(new Error(&quot;Could not find function &quot;+e.type));!i&amp;&amp;s&amp;&amp;s.cancel&amp;&amp;(this.cancelCallbacks[t]=s.cancel)}},Cc.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener(&quot;message&quot;,this.receive,!1)};var Ic=function(t,e){t&amp;&amp;(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};Ic.prototype.setNorthEast=function(t){return this._ne=t instanceof Pc?new Pc(t.lng,t.lat):Pc.convert(t),this},Ic.prototype.setSouthWest=function(t){return this._sw=t instanceof Pc?new Pc(t.lng,t.lat):Pc.convert(t),this},Ic.prototype.extend=function(t){var e,r,n=this._sw,i=this._ne;if(t instanceof Pc)e=t,r=t;else{if(!(t instanceof Ic))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(Ic.convert(t)):this.extend(Pc.convert(t)):this;if(r=t._ne,!(e=t._sw)||!r)return this}return n||i?(n.lng=Math.min(e.lng,n.lng),n.lat=Math.min(e.lat,n.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this._sw=new Pc(e.lng,e.lat),this._ne=new Pc(r.lng,r.lat)),this},Ic.prototype.getCenter=function(){return new Pc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Ic.prototype.getSouthWest=function(){return this._sw},Ic.prototype.getNorthEast=function(){return this._ne},Ic.prototype.getNorthWest=function(){return new Pc(this.getWest(),this.getNorth())},Ic.prototype.getSouthEast=function(){return new Pc(this.getEast(),this.getSouth())},Ic.prototype.getWest=function(){return this._sw.lng},Ic.prototype.getSouth=function(){return this._sw.lat},Ic.prototype.getEast=function(){return this._ne.lng},Ic.prototype.getNorth=function(){return this._ne.lat},Ic.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Ic.prototype.toString=function(){return&quot;LngLatBounds(&quot;+this._sw.toString()+&quot;, &quot;+this._ne.toString()+&quot;)&quot;},Ic.prototype.isEmpty=function(){return!(this._sw&amp;&amp;this._ne)},Ic.prototype.contains=function(t){var e=Pc.convert(t),r=e.lng,n=e.lat,i=this._sw.lng&lt;=r&amp;&amp;r&lt;=this._ne.lng;return this._sw.lng&gt;this._ne.lng&amp;&amp;(i=this._sw.lng&gt;=r&amp;&amp;r&gt;=this._ne.lng),this._sw.lat&lt;=n&amp;&amp;n&lt;=this._ne.lat&amp;&amp;i},Ic.convert=function(t){return!t||t instanceof Ic?t:new Ic(t)};var Pc=function(t,e){if(isNaN(t)||isNaN(e))throw new Error(&quot;Invalid LngLat object: (&quot;+t+&quot;, &quot;+e+&quot;)&quot;);if(this.lng=+t,this.lat=+e,this.lat&gt;90||this.lat&lt;-90)throw new Error(&quot;Invalid LngLat latitude value: must be between -90 and 90&quot;)};Pc.prototype.wrap=function(){return new Pc(c(this.lng,-180,180),this.lat)},Pc.prototype.toArray=function(){return[this.lng,this.lat]},Pc.prototype.toString=function(){return&quot;LngLat(&quot;+this.lng+&quot;, &quot;+this.lat+&quot;)&quot;},Pc.prototype.distanceTo=function(t){var e=Math.PI/180,r=this.lat*e,n=t.lat*e,i=Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos((t.lng-this.lng)*e);return 6371008.8*Math.acos(Math.min(i,1))},Pc.prototype.toBounds=function(t){void 0===t&amp;&amp;(t=0);var e=360*t/40075017,r=e/Math.cos(Math.PI/180*this.lat);return new Ic(new Pc(this.lng-r,this.lat-e),new Pc(this.lng+r,this.lat+e))},Pc.convert=function(t){if(t instanceof Pc)return t;if(Array.isArray(t)&amp;&amp;(2===t.length||3===t.length))return new Pc(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;null!==t)return new Pc(Number(&quot;lng&quot;in t?t.lng:t.lon),Number(t.lat));throw new Error(&quot;`LngLatLike` argument must be specified as a LngLat instance, an object {lng: &lt;lng&gt;, lat: &lt;lat&gt;}, an object {lon: &lt;lng&gt;, lat: &lt;lat&gt;}, or an array of [&lt;lng&gt;, &lt;lat&gt;]&quot;)};var zc=2*Math.PI*6371008.8;function Oc(t){return zc*Math.cos(t*Math.PI/180)}function Dc(t){return(180+t)/360}function Rc(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Fc(t,e){return t/Oc(e)}function Bc(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}var Nc=function(t,e,r){void 0===r&amp;&amp;(r=0),this.x=+t,this.y=+e,this.z=+r};Nc.fromLngLat=function(t,e){void 0===e&amp;&amp;(e=0);var r=Pc.convert(t);return new Nc(Dc(r.lng),Rc(r.lat),Fc(e,r.lat))},Nc.prototype.toLngLat=function(){return new Pc(360*this.x-180,Bc(this.y))},Nc.prototype.toAltitude=function(){return this.z*Oc(Bc(this.y))},Nc.prototype.meterInMercatorCoordinateUnits=function(){return 1/zc*(t=Bc(this.y),1/Math.cos(t*Math.PI/180));var t};var jc=function(t,e,r){this.z=t,this.x=e,this.y=r,this.key=qc(0,t,t,e,r)};jc.prototype.equals=function(t){return this.z===t.z&amp;&amp;this.x===t.x&amp;&amp;this.y===t.y},jc.prototype.url=function(t,e){var r,n,i,a,o,s=(n=this.y,i=this.z,a=Lc(256*(r=this.x),256*(n=Math.pow(2,i)-n-1),i),o=Lc(256*(r+1),256*(n+1),i),a[0]+&quot;,&quot;+a[1]+&quot;,&quot;+o[0]+&quot;,&quot;+o[1]),l=function(t,e,r){for(var n,i=&quot;&quot;,a=t;a&gt;0;a--)i+=(e&amp;(n=1&lt;&lt;a-1)?1:0)+(r&amp;n?2:0);return i}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(&quot;{prefix}&quot;,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(&quot;{z}&quot;,String(this.z)).replace(&quot;{x}&quot;,String(this.x)).replace(&quot;{y}&quot;,String(&quot;tms&quot;===e?Math.pow(2,this.z)-this.y-1:this.y)).replace(&quot;{quadkey}&quot;,l).replace(&quot;{bbox-epsg-3857}&quot;,s)},jc.prototype.getTilePoint=function(t){var e=Math.pow(2,this.z);return new i(8192*(t.x*e-this.x),8192*(t.y*e-this.y))},jc.prototype.toString=function(){return this.z+&quot;/&quot;+this.x+&quot;/&quot;+this.y};var Uc=function(t,e){this.wrap=t,this.canonical=e,this.key=qc(t,e.z,e.z,e.x,e.y)},Vc=function(t,e,r,n,i){this.overscaledZ=t,this.wrap=e,this.canonical=new jc(r,+n,+i),this.key=qc(e,t,r,n,i)};function qc(t,e,r,n,i){(t*=2)&lt;0&amp;&amp;(t=-1*t-1);var a=1&lt;&lt;r;return(a*a*t+a*i+n).toString(36)+r.toString(36)+e.toString(36)}Vc.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&amp;&amp;this.wrap===t.wrap&amp;&amp;this.canonical.equals(t.canonical)},Vc.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t&gt;this.canonical.z?new Vc(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Vc(t,this.wrap,t,this.canonical.x&gt;&gt;e,this.canonical.y&gt;&gt;e)},Vc.prototype.calculateScaledKey=function(t,e){var r=this.canonical.z-t;return t&gt;this.canonical.z?qc(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):qc(this.wrap*+e,t,t,this.canonical.x&gt;&gt;r,this.canonical.y&gt;&gt;r)},Vc.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ&lt;this.overscaledZ&amp;&amp;t.canonical.x===this.canonical.x&gt;&gt;e&amp;&amp;t.canonical.y===this.canonical.y&gt;&gt;e},Vc.prototype.children=function(t){if(this.overscaledZ&gt;=t)return[new Vc(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,r=2*this.canonical.x,n=2*this.canonical.y;return[new Vc(e,this.wrap,e,r,n),new Vc(e,this.wrap,e,r+1,n),new Vc(e,this.wrap,e,r,n+1),new Vc(e,this.wrap,e,r+1,n+1)]},Vc.prototype.isLessThan=function(t){return this.wrap&lt;t.wrap||!(this.wrap&gt;t.wrap)&amp;&amp;(this.overscaledZ&lt;t.overscaledZ||!(this.overscaledZ&gt;t.overscaledZ)&amp;&amp;(this.canonical.x&lt;t.canonical.x||!(this.canonical.x&gt;t.canonical.x)&amp;&amp;this.canonical.y&lt;t.canonical.y))},Vc.prototype.wrapped=function(){return new Vc(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},Vc.prototype.unwrapTo=function(t){return new Vc(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},Vc.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},Vc.prototype.toUnwrapped=function(){return new Uc(this.wrap,this.canonical)},Vc.prototype.toString=function(){return this.overscaledZ+&quot;/&quot;+this.canonical.x+&quot;/&quot;+this.canonical.y},Vc.prototype.getTilePoint=function(t){return this.canonical.getTilePoint(new Nc(t.x-this.wrap,t.y))},Dn(&quot;CanonicalTileID&quot;,jc),Dn(&quot;OverscaledTileID&quot;,Vc,{omit:[&quot;posMatrix&quot;]});var Hc=function(t,e,r){if(this.uid=t,e.height!==e.width)throw new RangeError(&quot;DEM tiles must be square&quot;);if(r&amp;&amp;&quot;mapbox&quot;!==r&amp;&amp;&quot;terrarium&quot;!==r)return _('&quot;'+r+'&quot; is not a valid encoding type. Valid types include &quot;mapbox&quot; and &quot;terrarium&quot;.');this.stride=e.height;var n=this.dim=e.height-2;this.data=new Uint32Array(e.data.buffer),this.encoding=r||&quot;mapbox&quot;;for(var i=0;i&lt;n;i++)this.data[this._idx(-1,i)]=this.data[this._idx(0,i)],this.data[this._idx(n,i)]=this.data[this._idx(n-1,i)],this.data[this._idx(i,-1)]=this.data[this._idx(i,0)],this.data[this._idx(i,n)]=this.data[this._idx(i,n-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(n,-1)]=this.data[this._idx(n-1,0)],this.data[this._idx(-1,n)]=this.data[this._idx(0,n-1)],this.data[this._idx(n,n)]=this.data[this._idx(n-1,n-1)]};Hc.prototype.get=function(t,e){var r=new Uint8Array(this.data.buffer),n=4*this._idx(t,e);return(&quot;terrarium&quot;===this.encoding?this._unpackTerrarium:this._unpackMapbox)(r[n],r[n+1],r[n+2])},Hc.prototype.getUnpackVector=function(){return&quot;terrarium&quot;===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},Hc.prototype._idx=function(t,e){if(t&lt;-1||t&gt;=this.dim+1||e&lt;-1||e&gt;=this.dim+1)throw new RangeError(&quot;out of range source coordinates for DEM data&quot;);return(e+1)*this.stride+(t+1)},Hc.prototype._unpackMapbox=function(t,e,r){return(256*t*256+256*e+r)/10-1e4},Hc.prototype._unpackTerrarium=function(t,e,r){return 256*t+e+r/256-32768},Hc.prototype.getPixels=function(){return new po({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Hc.prototype.backfillBorder=function(t,e,r){if(this.dim!==t.dim)throw new Error(&quot;dem dimension mismatch&quot;);var n=e*this.dim,i=e*this.dim+this.dim,a=r*this.dim,o=r*this.dim+this.dim;switch(e){case-1:n=i-1;break;case 1:i=n+1}switch(r){case-1:a=o-1;break;case 1:o=a+1}for(var s=-e*this.dim,l=-r*this.dim,c=a;c&lt;o;c++)for(var u=n;u&lt;i;u++)this.data[this._idx(u,c)]=t.data[this._idx(u+s,c+l)]},Dn(&quot;DEMData&quot;,Hc);var Gc=function(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e&lt;t.length;e++){var r=t[e];this._stringToNumber[r]=e,this._numberToString[e]=r}};Gc.prototype.encode=function(t){return this._stringToNumber[t]},Gc.prototype.decode=function(t){return this._numberToString[t]};var Yc=function(t,e,r,n,i){this.type=&quot;Feature&quot;,this._vectorTileFeature=t,t._z=e,t._x=r,t._y=n,this.properties=t.properties,this.id=i},Wc={geometry:{configurable:!0}};Wc.geometry.get=function(){return void 0===this._geometry&amp;&amp;(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},Wc.geometry.set=function(t){this._geometry=t},Yc.prototype.toJSON=function(){var t={geometry:this.geometry};for(var e in this)&quot;_geometry&quot;!==e&amp;&amp;&quot;_vectorTileFeature&quot;!==e&amp;&amp;(t[e]=this[e]);return t},Object.defineProperties(Yc.prototype,Wc);var Xc=function(){this.state={},this.stateChanges={},this.deletedStates={}};Xc.prototype.updateState=function(t,e,r){var n=String(e);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][n]=this.stateChanges[t][n]||{},u(this.stateChanges[t][n],r),null===this.deletedStates[t])for(var i in this.deletedStates[t]={},this.state[t])i!==n&amp;&amp;(this.deletedStates[t][i]=null);else if(this.deletedStates[t]&amp;&amp;null===this.deletedStates[t][n])for(var a in this.deletedStates[t][n]={},this.state[t][n])r[a]||(this.deletedStates[t][n][a]=null);else for(var o in r)this.deletedStates[t]&amp;&amp;this.deletedStates[t][n]&amp;&amp;null===this.deletedStates[t][n][o]&amp;&amp;delete this.deletedStates[t][n][o]},Xc.prototype.removeFeatureState=function(t,e,r){if(null!==this.deletedStates[t]){var n=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},r&amp;&amp;void 0!==e)null!==this.deletedStates[t][n]&amp;&amp;(this.deletedStates[t][n]=this.deletedStates[t][n]||{},this.deletedStates[t][n][r]=null);else if(void 0!==e)if(this.stateChanges[t]&amp;&amp;this.stateChanges[t][n])for(r in this.deletedStates[t][n]={},this.stateChanges[t][n])this.deletedStates[t][n][r]=null;else this.deletedStates[t][n]=null;else this.deletedStates[t]=null}},Xc.prototype.getState=function(t,e){var r=String(e),n=u({},(this.state[t]||{})[r],(this.stateChanges[t]||{})[r]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){var i=this.deletedStates[t][e];if(null===i)return{};for(var a in i)delete n[a]}return n},Xc.prototype.initializeTileState=function(t,e){t.setFeatureState(this.state,e)},Xc.prototype.coalesceChanges=function(t,e){var r={};for(var n in this.stateChanges){this.state[n]=this.state[n]||{};var i={};for(var a in this.stateChanges[n])this.state[n][a]||(this.state[n][a]={}),u(this.state[n][a],this.stateChanges[n][a]),i[a]=this.state[n][a];r[n]=i}for(var o in this.deletedStates){this.state[o]=this.state[o]||{};var s={};if(null===this.deletedStates[o])for(var l in this.state[o])s[l]={},this.state[o][l]={};else for(var c in this.deletedStates[o]){if(null===this.deletedStates[o][c])this.state[o][c]={};else for(var f=0,h=Object.keys(this.deletedStates[o][c]);f&lt;h.length;f+=1)delete this.state[o][c][h[f]];s[c]=this.state[o][c]}r[o]=r[o]||{},u(r[o],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(r).length)for(var p in t)t[p].setFeatureState(r,e)};var Zc=function(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new Ln(8192,16,0),this.grid3D=new Ln(8192,16,0),this.featureIndexArray=new ra,this.promoteId=e};function Jc(t,e,r,n,i){return v(t,(function(t,a){var o=e instanceof hi?e.get(a):null;return o&amp;&amp;o.evaluate?o.evaluate(r,n,i):o}))}function Kc(t){for(var e=1/0,r=1/0,n=-1/0,i=-1/0,a=0,o=t;a&lt;o.length;a+=1){var s=o[a];e=Math.min(e,s.x),r=Math.min(r,s.y),n=Math.max(n,s.x),i=Math.max(i,s.y)}return{minX:e,minY:r,maxX:n,maxY:i}}function Qc(t,e){return e-t}Zc.prototype.insert=function(t,e,r,n,i,a){var o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,n,i);for(var s=a?this.grid3D:this.grid,l=0;l&lt;e.length;l++){for(var c=e[l],u=[1/0,1/0,-1/0,-1/0],f=0;f&lt;c.length;f++){var h=c[f];u[0]=Math.min(u[0],h.x),u[1]=Math.min(u[1],h.y),u[2]=Math.max(u[2],h.x),u[3]=Math.max(u[3],h.y)}u[0]&lt;8192&amp;&amp;u[1]&lt;8192&amp;&amp;u[2]&gt;=0&amp;&amp;u[3]&gt;=0&amp;&amp;s.insert(o,u[0],u[1],u[2],u[3])}},Zc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new gs.VectorTile(new Hs(this.rawTileData)).layers,this.sourceLayerCoder=new Gc(this.vtLayers?Object.keys(this.vtLayers).sort():[&quot;_geojsonTileLayer&quot;])),this.vtLayers},Zc.prototype.query=function(t,e,r,n){var a=this;this.loadVTLayers();for(var o=t.params||{},s=8192/t.tileSize/t.scale,l=rn(o.filter),c=t.queryGeometry,u=t.queryPadding*s,f=Kc(c),h=this.grid.query(f.minX-u,f.minY-u,f.maxX+u,f.maxY+u),p=Kc(t.cameraQueryGeometry),d=0,g=this.grid3D.query(p.minX-u,p.minY-u,p.maxX+u,p.maxY+u,(function(e,r,n,a){return function(t,e,r,n,a){for(var o=0,s=t;o&lt;s.length;o+=1){var l=s[o];if(e&lt;=l.x&amp;&amp;r&lt;=l.y&amp;&amp;n&gt;=l.x&amp;&amp;a&gt;=l.y)return!0}var c=[new i(e,r),new i(e,a),new i(n,a),new i(n,r)];if(t.length&gt;2)for(var u=0,f=c;u&lt;f.length;u+=1)if(Wa(t,f[u]))return!0;for(var h=0;h&lt;t.length-1;h++)if(Xa(t[h],t[h+1],c))return!0;return!1}(t.cameraQueryGeometry,e-u,r-u,n+u,a+u)}));d&lt;g.length;d+=1)h.push(g[d]);h.sort(Qc);for(var m,v={},y=function(i){var u=h[i];if(u!==m){m=u;var f=a.featureIndexArray.get(u),p=null;a.loadMatchingFeature(v,f.bucketIndex,f.sourceLayerIndex,f.featureIndex,l,o.layers,o.availableImages,e,r,n,(function(e,r,n){return p||(p=Da(e)),r.queryIntersectsFeature(c,e,n,p,a.z,t.transform,s,t.pixelPosMatrix)}))}},x=0;x&lt;h.length;x++)y(x);return v},Zc.prototype.loadMatchingFeature=function(t,e,r,n,i,a,o,s,l,c,u){var f=this.bucketLayerIDs[e];if(!a||function(t,e){for(var r=0;r&lt;t.length;r++)if(e.indexOf(t[r])&gt;=0)return!0;return!1}(a,f)){var h=this.sourceLayerCoder.decode(r),p=this.vtLayers[h].feature(n);if(i.filter(new ii(this.tileID.overscaledZ),p))for(var d=this.getId(p,h),g=0;g&lt;f.length;g++){var m=f[g];if(!(a&amp;&amp;a.indexOf(m)&lt;0)){var v=s[m];if(v){var y={};void 0!==d&amp;&amp;c&amp;&amp;(y=c.getState(v.sourceLayer||&quot;_geojsonTileLayer&quot;,d));var x=l[m];x.paint=Jc(x.paint,v.paint,p,y,o),x.layout=Jc(x.layout,v.layout,p,y,o);var b=!u||u(p,v,y);if(b){var _=new Yc(p,this.z,this.x,this.y,d);_.layer=x;var w=t[m];void 0===w&amp;&amp;(w=t[m]=[]),w.push({featureIndex:n,feature:_,intersectionZ:b})}}}}}},Zc.prototype.lookupSymbolFeatures=function(t,e,r,n,i,a,o,s){var l={};this.loadVTLayers();for(var c=rn(i),u=0,f=t;u&lt;f.length;u+=1)this.loadMatchingFeature(l,r,n,f[u],c,a,o,s,e);return l},Zc.prototype.hasLayer=function(t){for(var e=0,r=this.bucketLayerIDs;e&lt;r.length;e+=1)for(var n=0,i=r[e];n&lt;i.length;n+=1)if(t===i[n])return!0;return!1},Zc.prototype.getId=function(t,e){var r=t.id;return this.promoteId&amp;&amp;&quot;boolean&quot;==typeof(r=t.properties[&quot;string&quot;==typeof this.promoteId?this.promoteId:this.promoteId[e]])&amp;&amp;(r=Number(r)),r},Dn(&quot;FeatureIndex&quot;,Zc,{omit:[&quot;rawTileData&quot;,&quot;sourceLayerCoder&quot;]});var $c=function(t,e){this.tileID=t,this.uid=h(),this.uses=0,this.tileSize=e,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state=&quot;loading&quot;};$c.prototype.registerFadeDuration=function(t){var e=t+this.timeAdded;e&lt;R.now()||this.fadeEndTime&amp;&amp;e&lt;this.fadeEndTime||(this.fadeEndTime=e)},$c.prototype.wasRequested=function(){return&quot;errored&quot;===this.state||&quot;loaded&quot;===this.state||&quot;reloading&quot;===this.state},$c.prototype.loadVectorData=function(t,e,r){if(this.hasData()&amp;&amp;this.unloadVectorData(),this.state=&quot;loaded&quot;,t){for(var n in t.featureIndex&amp;&amp;(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&amp;&amp;(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,e){var r={};if(!e)return r;for(var n=function(){var t=a[i],n=t.layerIds.map((function(t){return e.getLayer(t)})).filter(Boolean);if(0!==n.length){t.layers=n,t.stateDependentLayerIds&amp;&amp;(t.stateDependentLayers=t.stateDependentLayerIds.map((function(t){return n.filter((function(e){return e.id===t}))[0]})));for(var o=0,s=n;o&lt;s.length;o+=1)r[s[o].id]=t}},i=0,a=t;i&lt;a.length;i+=1)n();return r}(t.buckets,e.style),this.hasSymbolBuckets=!1,this.buckets){var i=this.buckets[n];if(i instanceof fc){if(this.hasSymbolBuckets=!0,!r)break;i.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(var a in this.buckets){var o=this.buckets[a];if(o instanceof fc&amp;&amp;o.hasRTLText){this.hasRTLText=!0,ni.isLoading()||ni.isLoaded()||&quot;deferred&quot;!==ei()||ri();break}}for(var s in this.queryPadding=0,this.buckets){var l=this.buckets[s];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(s).queryRadius(l))}t.imageAtlas&amp;&amp;(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&amp;&amp;(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new Xi},$c.prototype.unloadVectorData=function(){for(var t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&amp;&amp;this.imageAtlasTexture.destroy(),this.imageAtlas&amp;&amp;(this.imageAtlas=null),this.glyphAtlasTexture&amp;&amp;this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state=&quot;unloaded&quot;},$c.prototype.getBucket=function(t){return this.buckets[t.id]},$c.prototype.upload=function(t){for(var e in this.buckets){var r=this.buckets[e];r.uploadPending()&amp;&amp;r.upload(t)}var n=t.gl;this.imageAtlas&amp;&amp;!this.imageAtlas.uploaded&amp;&amp;(this.imageAtlasTexture=new Sc(t,this.imageAtlas.image,n.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&amp;&amp;(this.glyphAtlasTexture=new Sc(t,this.glyphAtlasImage,n.ALPHA),this.glyphAtlasImage=null)},$c.prototype.prepare=function(t){this.imageAtlas&amp;&amp;this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)},$c.prototype.queryRenderedFeatures=function(t,e,r,n,i,a,o,s,l,c){return this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:n,cameraQueryGeometry:i,scale:a,tileSize:this.tileSize,pixelPosMatrix:c,transform:s,params:o,queryPadding:this.queryPadding*l},t,e,r):{}},$c.prototype.querySourceFeatures=function(t,e){var r=this.latestFeatureIndex;if(r&amp;&amp;r.rawTileData){var n=r.loadVTLayers(),i=e?e.sourceLayer:&quot;&quot;,a=n._geojsonTileLayer||n[i];if(a)for(var o=rn(e&amp;&amp;e.filter),s=this.tileID.canonical,l=s.z,c=s.x,u=s.y,f={z:l,x:c,y:u},h=0;h&lt;a.length;h++){var p=a.feature(h);if(o.filter(new ii(this.tileID.overscaledZ),p)){var d=r.getId(p,i),g=new Yc(p,l,c,u,d);g.tile=f,t.push(g)}}}},$c.prototype.hasData=function(){return&quot;loaded&quot;===this.state||&quot;reloading&quot;===this.state||&quot;expired&quot;===this.state},$c.prototype.patternsLoaded=function(){return this.imageAtlas&amp;&amp;!!Object.keys(this.imageAtlas.patternPositions).length},$c.prototype.setExpiryData=function(t){var e=this.expirationTime;if(t.cacheControl){var r=M(t.cacheControl);r[&quot;max-age&quot;]&amp;&amp;(this.expirationTime=Date.now()+1e3*r[&quot;max-age&quot;])}else t.expires&amp;&amp;(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){var n=Date.now(),i=!1;if(this.expirationTime&gt;n)i=!1;else if(e)if(this.expirationTime&lt;e)i=!0;else{var a=this.expirationTime-e;a?this.expirationTime=n+Math.max(a,3e4):i=!0}else i=!0;i?(this.expiredRequestCount++,this.state=&quot;expired&quot;):this.expiredRequestCount=0}},$c.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1&lt;&lt;Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},$c.prototype.setFeatureState=function(t,e){if(this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData&amp;&amp;0!==Object.keys(t).length){var r=this.latestFeatureIndex.loadVTLayers();for(var n in this.buckets)if(e.style.hasLayer(n)){var i=this.buckets[n],a=i.layers[0].sourceLayer||&quot;_geojsonTileLayer&quot;,o=r[a],s=t[a];if(o&amp;&amp;s&amp;&amp;0!==Object.keys(s).length){i.update(s,o,this.imageAtlas&amp;&amp;this.imageAtlas.patternPositions||{});var l=e&amp;&amp;e.style&amp;&amp;e.style.getLayer(n);l&amp;&amp;(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(i)))}}}},$c.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},$c.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil&lt;R.now()},$c.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},$c.prototype.setHoldDuration=function(t){this.symbolFadeHoldUntil=R.now()+t},$c.prototype.setDependencies=function(t,e){for(var r={},n=0,i=e;n&lt;i.length;n+=1)r[i[n]]=!0;this.dependencies[t]=r},$c.prototype.hasDependency=function(t,e){for(var r=0,n=t;r&lt;n.length;r+=1){var i=this.dependencies[n[r]];if(i)for(var a=0,o=e;a&lt;o.length;a+=1)if(i[o[a]])return!0}return!1};var tu=self.performance,eu=function(t){this._marks={start:[t.url,&quot;start&quot;].join(&quot;#&quot;),end:[t.url,&quot;end&quot;].join(&quot;#&quot;),measure:t.url.toString()},tu.mark(this._marks.start)};eu.prototype.finish=function(){tu.mark(this._marks.end);var t=tu.getEntriesByName(this._marks.measure);return 0===t.length&amp;&amp;(tu.measure(this._marks.measure,this._marks.start,this._marks.end),t=tu.getEntriesByName(this._marks.measure),tu.clearMarks(this._marks.start),tu.clearMarks(this._marks.end),tu.clearMeasures(this._marks.measure)),t},t.Actor=Cc,t.AlphaImage=ho,t.CanonicalTileID=jc,t.CollisionBoxArray=Xi,t.Color=Kt,t.DEMData=Hc,t.DataConstantProperty=pi,t.DictionaryCoder=Gc,t.EXTENT=8192,t.ErrorEvent=kt,t.EvaluationParameters=ii,t.Event=Tt,t.Evented=Mt,t.FeatureIndex=Zc,t.FillBucket=rs,t.FillExtrusionBucket=xs,t.ImageAtlas=dl,t.ImagePosition=hl,t.LineBucket=Cs,t.LngLat=Pc,t.LngLatBounds=Ic,t.MercatorCoordinate=Nc,t.ONE_EM=24,t.OverscaledTileID=Vc,t.Point=i,t.Point$1=i,t.Properties=yi,t.Protobuf=Hs,t.RGBAImage=po,t.RequestManager=q,t.RequestPerformance=eu,t.ResourceType=ht,t.SegmentVector=ia,t.SourceFeatureState=Xc,t.StructArrayLayout1ui2=Hi,t.StructArrayLayout2f1f2i16=Di,t.StructArrayLayout2i4=Mi,t.StructArrayLayout3ui6=Fi,t.StructArrayLayout4i8=Ai,t.SymbolBucket=fc,t.Texture=Sc,t.Tile=$c,t.Transitionable=si,t.Uniform1f=va,t.Uniform1i=ma,t.Uniform2f=ya,t.Uniform3f=xa,t.Uniform4f=ba,t.UniformColor=_a,t.UniformMatrix4f=Ta,t.UnwrappedTileID=Uc,t.ValidationError=St,t.WritingMode=gl,t.ZoomHistory=Un,t.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},t.addDynamicAttributes=sc,t.asyncAll=function(t,e,r){if(!t.length)return r(null,[]);var n=t.length,i=new Array(t.length),a=null;t.forEach((function(t,o){e(t,(function(t,e){t&amp;&amp;(a=t),i[o]=e,0==--n&amp;&amp;r(a,i)}))}))},t.bezier=o,t.bindAll=g,t.browser=R,t.cacheEntryPossiblyAdded=function(t){++ut&gt;ot&amp;&amp;(t.getActor().send(&quot;enforceCacheSizeLimit&quot;,at),ut=0)},t.clamp=l,t.clearTileCache=function(t){var e=self.caches.delete(&quot;mapbox-tiles&quot;);t&amp;&amp;e.catch(t).then((function(){return t()}))},t.clipLine=jl,t.clone=function(t){var e=new to(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=x,t.clone$2=function(t){var e=new to(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.collisionCircleLayout=Ns,t.config=F,t.create=function(){var t=new to(16);return to!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=function(){var t=new to(9);return to!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},t.create$2=function(){var t=new to(4);return to!=Float32Array&amp;&amp;(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=qr,t.createLayout=Ti,t.createStyleLayer=function(t){return&quot;custom&quot;===t.type?new bc(t):new _c[t.type](t)},t.cross=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t},t.deepEqual=function t(e,r){if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(var n=0;n&lt;e.length;n++)if(!t(e[n],r[n]))return!1;return!0}if(&quot;object&quot;==typeof e&amp;&amp;null!==e&amp;&amp;null!==r){if(&quot;object&quot;!=typeof r)return!1;if(Object.keys(e).length!==Object.keys(r).length)return!1;for(var i in e)if(!t(e[i],r[i]))return!1;return!0}return e===r},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},t.dot$1=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},t.ease=s,t.emitValidationErrors=Cn,t.endsWith=m,t.enforceCacheSizeLimit=function(t){st(),Q&amp;&amp;Q.then((function(e){e.keys().then((function(r){for(var n=0;n&lt;r.length-t;n++)e.delete(r[n])}))}))},t.evaluateSizeForFeature=Il,t.evaluateSizeForZoom=Pl,t.evaluateVariableOffset=$l,t.evented=ti,t.extend=u,t.featureFilter=rn,t.filterObject=y,t.fromRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},t.getAnchorAlignment=Al,t.getAnchorJustification=tc,t.getArrayBuffer=yt,t.getImage=bt,t.getJSON=function(t,e){return vt(u(t,{type:&quot;json&quot;}),e)},t.getRTLTextPluginStatus=ei,t.getReferrer=mt,t.getVideo=function(t,e){var r,n,i=self.document.createElement(&quot;video&quot;);i.muted=!0,i.onloadstart=function(){e(null,i)};for(var a=0;a&lt;t.length;a++){var o=self.document.createElement(&quot;source&quot;);r=t[a],n=void 0,(n=self.document.createElement(&quot;a&quot;)).href=r,(n.protocol!==self.document.location.protocol||n.host!==self.document.location.host)&amp;&amp;(i.crossOrigin=&quot;Anonymous&quot;),o.src=t[a],i.appendChild(o)}return{cancel:function(){}}},t.identity=eo,t.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*g-f*d,M=u*m-h*d,A=u*v-p*d,S=f*m-h*g,E=f*v-p*g,C=h*v-p*m,L=y*C-x*E+b*S+_*A-w*M+T*k;return L?(t[0]=(s*C-l*E+c*S)*(L=1/L),t[1]=(i*E-n*C-a*S)*L,t[2]=(g*T-m*w+v*_)*L,t[3]=(h*w-f*T-p*_)*L,t[4]=(l*A-o*C-c*M)*L,t[5]=(r*C-i*A+a*M)*L,t[6]=(m*b-d*T-v*x)*L,t[7]=(u*T-h*b+p*x)*L,t[8]=(o*E-s*A+c*k)*L,t[9]=(n*A-r*E-a*k)*L,t[10]=(d*w-g*b+v*y)*L,t[11]=(f*b-u*w-p*y)*L,t[12]=(s*M-o*S-l*k)*L,t[13]=(r*S-n*M+i*k)*L,t[14]=(g*x-d*_-m*y)*L,t[15]=(u*_-f*x+h*y)*L,t):null},t.isChar=Vn,t.isMapboxURL=H,t.keysDifference=function(t,e){var r=[];for(var n in t)n in e||r.push(n);return r},t.makeRequest=vt,t.mapObject=v,t.mercatorXfromLng=Dc,t.mercatorYfromLat=Rc,t.mercatorZfromAltitude=Fc,t.mul=io,t.multiply=ro,t.mvt=gs,t.normalize=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;return a&gt;0&amp;&amp;(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t},t.number=Ue,t.offscreenCanvasSupported=ft,t.ortho=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t},t.parseGlyphPBF=function(t){return new Hs(t).readFields(ll,[])},t.pbf=Hs,t.performSymbolLayout=function(t,e,r,n,i,a,o){t.createArrays(),t.tilePixelRatio=8192/(512*t.overscaling),t.compareText={},t.iconsNeedLinear=!1;var s=t.layers[0].layout,l=t.layers[0]._unevaluatedLayout._values,c={};if(&quot;composite&quot;===t.textSizeData.kind){var u=t.textSizeData,f=u.maxZoom;c.compositeTextSizes=[l[&quot;text-size&quot;].possiblyEvaluate(new ii(u.minZoom),o),l[&quot;text-size&quot;].possiblyEvaluate(new ii(f),o)]}if(&quot;composite&quot;===t.iconSizeData.kind){var h=t.iconSizeData,p=h.maxZoom;c.compositeIconSizes=[l[&quot;icon-size&quot;].possiblyEvaluate(new ii(h.minZoom),o),l[&quot;icon-size&quot;].possiblyEvaluate(new ii(p),o)]}c.layoutTextSize=l[&quot;text-size&quot;].possiblyEvaluate(new ii(t.zoom+1),o),c.layoutIconSize=l[&quot;icon-size&quot;].possiblyEvaluate(new ii(t.zoom+1),o),c.textMaxSize=l[&quot;text-size&quot;].possiblyEvaluate(new ii(18));for(var d=24*s.get(&quot;text-line-height&quot;),g=&quot;map&quot;===s.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==s.get(&quot;symbol-placement&quot;),m=s.get(&quot;text-keep-upright&quot;),v=s.get(&quot;text-size&quot;),y=function(){var a=b[x],l=s.get(&quot;text-font&quot;).evaluate(a,{},o).join(&quot;,&quot;),u=v.evaluate(a,{},o),f=c.layoutTextSize.evaluate(a,{},o),h=c.layoutIconSize.evaluate(a,{},o),p={horizontal:{},vertical:void 0},y=a.text,w=[0,0];if(y){var T=y.toString(),k=24*s.get(&quot;text-letter-spacing&quot;).evaluate(a,{},o),M=function(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(n=r[e].charCodeAt(0),Vn.Arabic(n)||Vn[&quot;Arabic Supplement&quot;](n)||Vn[&quot;Arabic Extended-A&quot;](n)||Vn[&quot;Arabic Presentation Forms-A&quot;](n)||Vn[&quot;Arabic Presentation Forms-B&quot;](n))return!1;var n;return!0}(T)?k:0,A=s.get(&quot;text-anchor&quot;).evaluate(a,{},o),S=s.get(&quot;text-variable-anchor&quot;);if(!S){var E=s.get(&quot;text-radial-offset&quot;).evaluate(a,{},o);w=E?$l(A,[24*E,Ql]):s.get(&quot;text-offset&quot;).evaluate(a,{},o).map((function(t){return 24*t}))}var C=g?&quot;center&quot;:s.get(&quot;text-justify&quot;).evaluate(a,{},o),L=s.get(&quot;symbol-placement&quot;),I=&quot;point&quot;===L?24*s.get(&quot;text-max-width&quot;).evaluate(a,{},o):0,P=function(){t.allowVerticalPlacement&amp;&amp;qn(T)&amp;&amp;(p.vertical=yl(y,e,r,i,l,I,d,A,&quot;left&quot;,M,w,gl.vertical,!0,L,f,u))};if(!g&amp;&amp;S){for(var z=&quot;auto&quot;===C?S.map((function(t){return tc(t)})):[C],O=!1,D=0;D&lt;z.length;D++){var R=z[D];if(!p.horizontal[R])if(O)p.horizontal[R]=p.horizontal[0];else{var F=yl(y,e,r,i,l,I,d,&quot;center&quot;,R,M,w,gl.horizontal,!1,L,f,u);F&amp;&amp;(p.horizontal[R]=F,O=1===F.positionedLines.length)}}P()}else{&quot;auto&quot;===C&amp;&amp;(C=tc(A));var B=yl(y,e,r,i,l,I,d,A,C,M,w,gl.horizontal,!1,L,f,u);B&amp;&amp;(p.horizontal[C]=B),P(),qn(T)&amp;&amp;g&amp;&amp;m&amp;&amp;(p.vertical=yl(y,e,r,i,l,I,d,A,C,M,w,gl.vertical,!1,L,f,u))}}var N=void 0,j=!1;if(a.icon&amp;&amp;a.icon.name){var U=n[a.icon.name];U&amp;&amp;(N=function(t,e,r){var n=Al(r),i=e[0]-t.displaySize[0]*n.horizontalAlign,a=e[1]-t.displaySize[1]*n.verticalAlign;return{image:t,top:a,bottom:a+t.displaySize[1],left:i,right:i+t.displaySize[0]}}(i[a.icon.name],s.get(&quot;icon-offset&quot;).evaluate(a,{},o),s.get(&quot;icon-anchor&quot;).evaluate(a,{},o)),j=U.sdf,void 0===t.sdfIcons?t.sdfIcons=U.sdf:t.sdfIcons!==U.sdf&amp;&amp;_(&quot;Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer&quot;),(U.pixelRatio!==t.pixelRatio||0!==s.get(&quot;icon-rotate&quot;).constantOr(1))&amp;&amp;(t.iconsNeedLinear=!0))}var V=rc(p.horizontal)||p.vertical;t.iconsInText=!!V&amp;&amp;V.iconsInText,(V||N)&amp;&amp;function(t,e,r,n,i,a,o,s,l,c,u){var f=a.textMaxSize.evaluate(e,{});void 0===f&amp;&amp;(f=o);var h,p=t.layers[0].layout,d=p.get(&quot;icon-offset&quot;).evaluate(e,{},u),g=rc(r.horizontal),m=o/24,v=t.tilePixelRatio*m,y=t.tilePixelRatio*f/24,x=t.tilePixelRatio*s,b=t.tilePixelRatio*p.get(&quot;symbol-spacing&quot;),w=p.get(&quot;text-padding&quot;)*t.tilePixelRatio,T=p.get(&quot;icon-padding&quot;)*t.tilePixelRatio,k=p.get(&quot;text-max-angle&quot;)/180*Math.PI,M=&quot;map&quot;===p.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==p.get(&quot;symbol-placement&quot;),A=&quot;map&quot;===p.get(&quot;icon-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==p.get(&quot;symbol-placement&quot;),S=p.get(&quot;symbol-placement&quot;),E=b/2,C=p.get(&quot;icon-text-fit&quot;);n&amp;&amp;&quot;none&quot;!==C&amp;&amp;(t.allowVerticalPlacement&amp;&amp;r.vertical&amp;&amp;(h=El(n,r.vertical,C,p.get(&quot;icon-text-fit-padding&quot;),d,m)),g&amp;&amp;(n=El(n,g,C,p.get(&quot;icon-text-fit-padding&quot;),d,m)));var L=function(s,f){f.x&lt;0||f.x&gt;=8192||f.y&lt;0||f.y&gt;=8192||function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,w,T,k,M){var A,S,E,C,L,I=t.addToLineVertexArray(e,r),P=0,z=0,O=0,D=0,R=-1,F=-1,B={},N=ca(&quot;&quot;),j=0,U=0;if(void 0===s._unevaluatedLayout.getValue(&quot;text-radial-offset&quot;)?(j=(A=s.layout.get(&quot;text-offset&quot;).evaluate(b,{},k).map((function(t){return 24*t})))[0],U=A[1]):(j=24*s.layout.get(&quot;text-radial-offset&quot;).evaluate(b,{},k),U=Ql),t.allowVerticalPlacement&amp;&amp;n.vertical){var V=s.layout.get(&quot;text-rotate&quot;).evaluate(b,{},k)+90;C=new Yl(l,e,c,u,f,n.vertical,h,p,d,V),o&amp;&amp;(L=new Yl(l,e,c,u,f,o,m,v,d,V))}if(i){var q=s.layout.get(&quot;icon-rotate&quot;).evaluate(b,{}),H=&quot;none&quot;!==s.layout.get(&quot;icon-text-fit&quot;),G=Ul(i,q,T,H),Y=o?Ul(o,q,T,H):void 0;E=new Yl(l,e,c,u,f,i,m,v,!1,q),P=4*G.length;var W=t.iconSizeData,X=null;&quot;source&quot;===W.kind?(X=[128*s.layout.get(&quot;icon-size&quot;).evaluate(b,{})])[0]&gt;32640&amp;&amp;_(t.layerIds[0]+': Value for &quot;icon-size&quot; is &gt;= 255. Reduce your &quot;icon-size&quot;.'):&quot;composite&quot;===W.kind&amp;&amp;((X=[128*w.compositeIconSizes[0].evaluate(b,{},k),128*w.compositeIconSizes[1].evaluate(b,{},k)])[0]&gt;32640||X[1]&gt;32640)&amp;&amp;_(t.layerIds[0]+': Value for &quot;icon-size&quot; is &gt;= 255. Reduce your &quot;icon-size&quot;.'),t.addSymbols(t.icon,G,X,x,y,b,!1,e,I.lineStartIndex,I.lineLength,-1,k),R=t.icon.placedSymbolArray.length-1,Y&amp;&amp;(z=4*Y.length,t.addSymbols(t.icon,Y,X,x,y,b,gl.vertical,e,I.lineStartIndex,I.lineLength,-1,k),F=t.icon.placedSymbolArray.length-1)}for(var Z in n.horizontal){var J=n.horizontal[Z];if(!S){N=ca(J.text);var K=s.layout.get(&quot;text-rotate&quot;).evaluate(b,{},k);S=new Yl(l,e,c,u,f,J,h,p,d,K)}var Q=1===J.positionedLines.length;if(O+=ec(t,e,J,a,s,d,b,g,I,n.vertical?gl.horizontal:gl.horizontalOnly,Q?Object.keys(n.horizontal):[Z],B,R,w,k),Q)break}n.vertical&amp;&amp;(D+=ec(t,e,n.vertical,a,s,d,b,g,I,gl.vertical,[&quot;vertical&quot;],B,F,w,k));var $=S?S.boxStartIndex:t.collisionBoxArray.length,tt=S?S.boxEndIndex:t.collisionBoxArray.length,et=C?C.boxStartIndex:t.collisionBoxArray.length,rt=C?C.boxEndIndex:t.collisionBoxArray.length,nt=E?E.boxStartIndex:t.collisionBoxArray.length,it=E?E.boxEndIndex:t.collisionBoxArray.length,at=L?L.boxStartIndex:t.collisionBoxArray.length,ot=L?L.boxEndIndex:t.collisionBoxArray.length,st=-1,lt=function(t,e){return t&amp;&amp;t.circleDiameter?Math.max(t.circleDiameter,e):e};st=lt(S,st),st=lt(C,st),st=lt(E,st);var ct=(st=lt(L,st))&gt;-1?1:0;ct&amp;&amp;(st*=M/24),t.glyphOffsetArray.length&gt;=fc.MAX_GLYPHS&amp;&amp;_(&quot;Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907&quot;),void 0!==b.sortKey&amp;&amp;t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey),t.symbolInstances.emplaceBack(e.x,e.y,B.right&gt;=0?B.right:-1,B.center&gt;=0?B.center:-1,B.left&gt;=0?B.left:-1,B.vertical||-1,R,F,N,$,tt,et,rt,nt,it,at,ot,c,O,D,P,z,ct,0,h,j,U,st)}(t,f,s,r,n,i,h,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,v,w,M,l,x,T,A,d,e,a,c,u,o)};if(&quot;line&quot;===S)for(var I=0,P=jl(e.geometry,0,0,8192,8192);I&lt;P.length;I+=1)for(var z=P[I],O=0,D=Nl(z,b,k,r.vertical||g,n,24,y,t.overscaling,8192);O&lt;D.length;O+=1){var R=D[O];g&amp;&amp;nc(t,g.text,E,R)||L(z,R)}else if(&quot;line-center&quot;===S)for(var F=0,B=e.geometry;F&lt;B.length;F+=1){var N=B[F];if(N.length&gt;1){var j=Bl(N,k,r.vertical||g,n,24,y);j&amp;&amp;L(N,j)}}else if(&quot;Polygon&quot;===e.type)for(var U=0,V=Qo(e.geometry,0);U&lt;V.length;U+=1){var q=V[U],H=Zl(q,16);L(q[0],new Cl(H.x,H.y,0))}else if(&quot;LineString&quot;===e.type)for(var G=0,Y=e.geometry;G&lt;Y.length;G+=1){var W=Y[G];L(W,new Cl(W[0].x,W[0].y,0))}else if(&quot;Point&quot;===e.type)for(var X=0,Z=e.geometry;X&lt;Z.length;X+=1)for(var J=0,K=Z[X];J&lt;K.length;J+=1){var Q=K[J];L([Q],new Cl(Q.x,Q.y,0))}}(t,a,p,N,n,c,f,h,w,j,o)},x=0,b=t.features;x&lt;b.length;x+=1)y();a&amp;&amp;t.generateCollisionDebugBuffers()},t.perspective=function(t,e,r,n,i){var a,o=1/Math.tan(e/2);return t[0]=o/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&amp;&amp;i!==1/0?(t[10]=(i+n)*(a=1/(n-i)),t[14]=2*i*n*a):(t[10]=-1,t[14]=-2*n),t},t.pick=function(t,e){for(var r={},n=0;n&lt;e.length;n++){var i=e[n];i in t&amp;&amp;(r[i]=t[i])}return r},t.plugin=ni,t.polygonIntersectsPolygon=Ba,t.postMapLoadEvent=it,t.postTurnstileEvent=rt,t.potpack=fl,t.refProperties=[&quot;type&quot;,&quot;source&quot;,&quot;source-layer&quot;,&quot;minzoom&quot;,&quot;maxzoom&quot;,&quot;filter&quot;,&quot;layout&quot;],t.register=Dn,t.registerForPluginStateChange=function(t){return t({pluginStatus:Jn,pluginURL:Kn}),ti.on(&quot;pluginStateChange&quot;,t),t},t.rotate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l+a*s,t[1]=i*l+o*s,t[2]=n*-s+a*l,t[3]=i*-s+o*l,t},t.rotateX=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];return e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t},t.rotateZ=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];return e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t},t.scale=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.scale$1=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t},t.scale$2=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t},t.setCacheLimits=function(t,e){at=t,ot=e},t.setRTLTextPlugin=function(t,e,r){if(void 0===r&amp;&amp;(r=!1),&quot;deferred&quot;===Jn||&quot;loading&quot;===Jn||&quot;loaded&quot;===Jn)throw new Error(&quot;setRTLTextPlugin cannot be called multiple times.&quot;);Kn=R.resolveURL(t),Jn=&quot;deferred&quot;,Zn=e,$n(),r||ri()},t.sphericalToCartesian=function(t){var e=t[0],r=t[1],n=t[2];return r+=90,r*=Math.PI/180,n*=Math.PI/180,{x:e*Math.cos(r)*Math.sin(n),y:e*Math.sin(r)*Math.sin(n),z:e*Math.cos(n)}},t.sqrLen=function(t){var e=t[0],r=t[1];return e*e+r*r},t.styleSpec=At,t.sub=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t},t.symbolSize=zl,t.transformMat3=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t},t.transformMat4=ao,t.translate=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],m=r[1],v=r[2];return e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n=e[0],t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*m+f*v+e[12],t[13]=i*g+l*m+h*v+e[13],t[14]=a*g+c*m+p*v+e[14],t[15]=o*g+u*m+d*v+e[15]),t},t.triggerPluginCompletionEvent=Qn,t.uniqueId=h,t.validateCustomStyleLayer=function(t){var e=[],r=t.id;return void 0===r&amp;&amp;e.push({message:&quot;layers.&quot;+r+': missing required property &quot;id&quot;'}),void 0===t.render&amp;&amp;e.push({message:&quot;layers.&quot;+r+': missing required method &quot;render&quot;'}),t.renderingMode&amp;&amp;&quot;2d&quot;!==t.renderingMode&amp;&amp;&quot;3d&quot;!==t.renderingMode&amp;&amp;e.push({message:&quot;layers.&quot;+r+': property &quot;renderingMode&quot; must be either &quot;2d&quot; or &quot;3d&quot;'}),e},t.validateLight=An,t.validateStyle=Mn,t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.vectorTile=gs,t.version=&quot;1.10.1&quot;,t.warnOnce=_,t.webpSupported=B,t.window=self,t.wrap=c})),n(0,(function(t){function e(t){var r=typeof t;if(&quot;number&quot;===r||&quot;boolean&quot;===r||&quot;string&quot;===r||null==t)return JSON.stringify(t);if(Array.isArray(t)){for(var n=&quot;[&quot;,i=0,a=t;i&lt;a.length;i+=1)n+=e(a[i])+&quot;,&quot;;return n+&quot;]&quot;}for(var o=Object.keys(t).sort(),s=&quot;{&quot;,l=0;l&lt;o.length;l++)s+=JSON.stringify(o[l])+&quot;:&quot;+e(t[o[l]])+&quot;,&quot;;return s+&quot;}&quot;}function r(r){for(var n=&quot;&quot;,i=0,a=t.refProperties;i&lt;a.length;i+=1)n+=&quot;/&quot;+e(r[a[i]]);return n}var n=function(t){this.keyCache={},t&amp;&amp;this.replace(t)};n.prototype.replace=function(t){this._layerConfigs={},this._layers={},this.update(t,[])},n.prototype.update=function(e,n){for(var i=this,a=0,o=e;a&lt;o.length;a+=1){var s=o[a];this._layerConfigs[s.id]=s;var l=this._layers[s.id]=t.createStyleLayer(s);l._featureFilter=t.featureFilter(l.filter),this.keyCache[s.id]&amp;&amp;delete this.keyCache[s.id]}for(var c=0,u=n;c&lt;u.length;c+=1){var f=u[c];delete this.keyCache[f],delete this._layerConfigs[f],delete this._layers[f]}this.familiesBySource={};for(var h=0,p=function(t,e){for(var n={},i=0;i&lt;t.length;i++){var a=e&amp;&amp;e[t[i].id]||r(t[i]);e&amp;&amp;(e[t[i].id]=a);var o=n[a];o||(o=n[a]=[]),o.push(t[i])}var s=[];for(var l in n)s.push(n[l]);return s}(t.values(this._layerConfigs),this.keyCache);h&lt;p.length;h+=1){var d=p[h].map((function(t){return i._layers[t.id]})),g=d[0];if(&quot;none&quot;!==g.visibility){var m=g.source||&quot;&quot;,v=this.familiesBySource[m];v||(v=this.familiesBySource[m]={});var y=g.sourceLayer||&quot;_geojsonTileLayer&quot;,x=v[y];x||(x=v[y]=[]),x.push(d)}}};var i=function(e){var r={},n=[];for(var i in e){var a=e[i],o=r[i]={};for(var s in a){var l=a[+s];if(l&amp;&amp;0!==l.bitmap.width&amp;&amp;0!==l.bitmap.height){var c={x:0,y:0,w:l.bitmap.width+2,h:l.bitmap.height+2};n.push(c),o[s]={rect:c,metrics:l.metrics}}}}var u=t.potpack(n),f=new t.AlphaImage({width:u.w||1,height:u.h||1});for(var h in e){var p=e[h];for(var d in p){var g=p[+d];if(g&amp;&amp;0!==g.bitmap.width&amp;&amp;0!==g.bitmap.height){var m=r[h][d].rect;t.AlphaImage.copy(g.bitmap,f,{x:0,y:0},{x:m.x+1,y:m.y+1},g.bitmap)}}}this.image=f,this.positions=r};t.register(&quot;GlyphAtlas&quot;,i);var a=function(e){this.tileID=new t.OverscaledTileID(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId};function o(e,r,n){for(var i=new t.EvaluationParameters(r),a=0,o=e;a&lt;o.length;a+=1)o[a].recalculate(i,n)}function s(e,r){var n=t.getArrayBuffer(e.request,(function(e,n,i,a){e?r(e):n&amp;&amp;r(null,{vectorTile:new t.vectorTile.VectorTile(new t.pbf(n)),rawData:n,cacheControl:i,expires:a})}));return function(){n.cancel(),r()}}a.prototype.parse=function(e,r,n,a,s){var l=this;this.status=&quot;parsing&quot;,this.data=e,this.collisionBoxArray=new t.CollisionBoxArray;var c=new t.DictionaryCoder(Object.keys(e.layers).sort()),u=new t.FeatureIndex(this.tileID,this.promoteId);u.bucketLayerIDs=[];var f,h,p,d,g={},m={featureIndex:u,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:n},v=r.familiesBySource[this.source];for(var y in v){var x=e.layers[y];if(x){1===x.version&amp;&amp;t.warnOnce('Vector tile source &quot;'+this.source+'&quot; layer &quot;'+y+'&quot; does not use vector tile spec v2 and therefore may have some rendering errors.');for(var b=c.encode(y),_=[],w=0;w&lt;x.length;w++){var T=x.feature(w),k=u.getId(T,y);_.push({feature:T,id:k,index:w,sourceLayerIndex:b})}for(var M=0,A=v[y];M&lt;A.length;M+=1){var S=A[M],E=S[0];E.minzoom&amp;&amp;this.zoom&lt;Math.floor(E.minzoom)||E.maxzoom&amp;&amp;this.zoom&gt;=E.maxzoom||&quot;none&quot;!==E.visibility&amp;&amp;(o(S,this.zoom,n),(g[E.id]=E.createBucket({index:u.bucketLayerIDs.length,layers:S,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:b,sourceID:this.source})).populate(_,m,this.tileID.canonical),u.bucketLayerIDs.push(S.map((function(t){return t.id}))))}}}var C=t.mapObject(m.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(C).length?a.send(&quot;getGlyphs&quot;,{uid:this.uid,stacks:C},(function(t,e){f||(f=t,h=e,P.call(l))})):h={};var L=Object.keys(m.iconDependencies);L.length?a.send(&quot;getImages&quot;,{icons:L,source:this.source,tileID:this.tileID,type:&quot;icons&quot;},(function(t,e){f||(f=t,p=e,P.call(l))})):p={};var I=Object.keys(m.patternDependencies);function P(){if(f)return s(f);if(h&amp;&amp;p&amp;&amp;d){var e=new i(h),r=new t.ImageAtlas(p,d);for(var a in g){var l=g[a];l instanceof t.SymbolBucket?(o(l.layers,this.zoom,n),t.performSymbolLayout(l,h,e.positions,p,r.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):l.hasPattern&amp;&amp;(l instanceof t.LineBucket||l instanceof t.FillBucket||l instanceof t.FillExtrusionBucket)&amp;&amp;(o(l.layers,this.zoom,n),l.addFeatures(m,this.tileID.canonical,r.patternPositions))}this.status=&quot;done&quot;,s(null,{buckets:t.values(g).filter((function(t){return!t.isEmpty()})),featureIndex:u,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:r,glyphMap:this.returnDependencies?h:null,iconMap:this.returnDependencies?p:null,glyphPositions:this.returnDependencies?e.positions:null})}}I.length?a.send(&quot;getImages&quot;,{icons:I,source:this.source,tileID:this.tileID,type:&quot;patterns&quot;},(function(t,e){f||(f=t,d=e,P.call(l))})):d={},P.call(this)};var l=function(t,e,r,n){this.actor=t,this.layerIndex=e,this.availableImages=r,this.loadVectorData=n||s,this.loading={},this.loaded={}};l.prototype.loadTile=function(e,r){var n=this,i=e.uid;this.loading||(this.loading={});var o=!!(e&amp;&amp;e.request&amp;&amp;e.request.collectResourceTiming)&amp;&amp;new t.RequestPerformance(e.request),s=this.loading[i]=new a(e);s.abort=this.loadVectorData(e,(function(e,a){if(delete n.loading[i],e||!a)return s.status=&quot;done&quot;,n.loaded[i]=s,r(e);var l=a.rawData,c={};a.expires&amp;&amp;(c.expires=a.expires),a.cacheControl&amp;&amp;(c.cacheControl=a.cacheControl);var u={};if(o){var f=o.finish();f&amp;&amp;(u.resourceTiming=JSON.parse(JSON.stringify(f)))}s.vectorTile=a.vectorTile,s.parse(a.vectorTile,n.layerIndex,n.availableImages,n.actor,(function(e,n){if(e||!n)return r(e);r(null,t.extend({rawTileData:l.slice(0)},n,c,u))})),n.loaded=n.loaded||{},n.loaded[i]=s}))},l.prototype.reloadTile=function(t,e){var r=this,n=this.loaded,i=t.uid,a=this;if(n&amp;&amp;n[i]){var o=n[i];o.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,n){var i=o.reloadCallback;i&amp;&amp;(delete o.reloadCallback,o.parse(o.vectorTile,a.layerIndex,r.availableImages,a.actor,i)),e(t,n)};&quot;parsing&quot;===o.status?o.reloadCallback=s:&quot;done&quot;===o.status&amp;&amp;(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},l.prototype.abortTile=function(t,e){var r=this.loading,n=t.uid;r&amp;&amp;r[n]&amp;&amp;r[n].abort&amp;&amp;(r[n].abort(),delete r[n]),e()},l.prototype.removeTile=function(t,e){var r=this.loaded,n=t.uid;r&amp;&amp;r[n]&amp;&amp;delete r[n],e()};var c=t.window.ImageBitmap,u=function(){this.loaded={}};function f(t,e){if(0!==t.length){h(t[0],e);for(var r=1;r&lt;t.length;r++)h(t[r],!e)}}function h(t,e){for(var r=0,n=0,i=t.length,a=i-1;n&lt;i;a=n++)r+=(t[n][0]-t[a][0])*(t[a][1]+t[n][1]);r&gt;=0!=!!e&amp;&amp;t.reverse()}u.prototype.loadTile=function(e,r){var n=e.uid,i=e.encoding,a=e.rawImageData,o=c&amp;&amp;a instanceof c?this.getImageData(a):a,s=new t.DEMData(n,o,i);this.loaded=this.loaded||{},this.loaded[n]=s,r(null,s)},u.prototype.getImageData=function(e){this.offscreenCanvas&amp;&amp;this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext(&quot;2d&quot;)),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);var r=this.offscreenCanvasContext.getImageData(-1,-1,e.width+2,e.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new t.RGBAImage({width:r.width,height:r.height},r.data)},u.prototype.removeTile=function(t){var e=this.loaded,r=t.uid;e&amp;&amp;e[r]&amp;&amp;delete e[r]};var p=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,d=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,&quot;id&quot;in e&amp;&amp;!isNaN(e.id)&amp;&amp;(this.id=parseInt(e.id,10))};d.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],r=0,n=this._feature.geometry;r&lt;n.length;r+=1){var i=n[r];e.push([new t.Point$1(i[0],i[1])])}return e}for(var a=[],o=0,s=this._feature.geometry;o&lt;s.length;o+=1){for(var l=[],c=0,u=s[o];c&lt;u.length;c+=1){var f=u[c];l.push(new t.Point$1(f[0],f[1]))}a.push(l)}return a},d.prototype.toGeoJSON=function(t,e,r){return p.call(this,t,e,r)};var g=function(e){this.layers={_geojsonTileLayer:this},this.name=&quot;_geojsonTileLayer&quot;,this.extent=t.EXTENT,this.length=e.length,this._features=e};g.prototype.feature=function(t){return new d(this._features[t])};var m=t.vectorTile.VectorTileFeature,v=y;function y(t,e){this.options=e||{},this.features=t,this.length=t.length}function x(t,e){this.id=&quot;number&quot;==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}y.prototype.feature=function(t){return new x(this.features[t],this.options.extent)},x.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var r=0;r&lt;e.length;r++){for(var n=e[r],i=[],a=0;a&lt;n.length;a++)i.push(new t.Point$1(n[a][0],n[a][1]));this.geometry.push(i)}return this.geometry},x.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,r=-1/0,n=1/0,i=-1/0,a=0;a&lt;t.length;a++)for(var o=t[a],s=0;s&lt;o.length;s++){var l=o[s];e=Math.min(e,l.x),r=Math.max(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.y)}return[e,n,r,i]},x.prototype.toGeoJSON=m.prototype.toGeoJSON;var b=w,_=v;function w(e){var r=new t.pbf;return function(t,e){for(var r in t.layers)e.writeMessage(3,T,t.layers[r])}(e,r),r.finish()}function T(t,e){var r;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||&quot;&quot;),e.writeVarintField(5,t.extent||4096);var n={keys:[],values:[],keycache:{},valuecache:{}};for(r=0;r&lt;t.length;r++)n.feature=t.feature(r),e.writeMessage(2,k,n);var i=n.keys;for(r=0;r&lt;i.length;r++)e.writeStringField(3,i[r]);var a=n.values;for(r=0;r&lt;a.length;r++)e.writeMessage(4,C,a[r])}function k(t,e){var r=t.feature;void 0!==r.id&amp;&amp;e.writeVarintField(1,r.id),e.writeMessage(2,M,t),e.writeVarintField(3,r.type),e.writeMessage(4,E,r)}function M(t,e){var r=t.feature,n=t.keys,i=t.values,a=t.keycache,o=t.valuecache;for(var s in r.properties){var l=a[s];void 0===l&amp;&amp;(n.push(s),a[s]=l=n.length-1),e.writeVarint(l);var c=r.properties[s],u=typeof c;&quot;string&quot;!==u&amp;&amp;&quot;boolean&quot;!==u&amp;&amp;&quot;number&quot;!==u&amp;&amp;(c=JSON.stringify(c));var f=u+&quot;:&quot;+c,h=o[f];void 0===h&amp;&amp;(i.push(c),o[f]=h=i.length-1),e.writeVarint(h)}}function A(t,e){return(e&lt;&lt;3)+(7&amp;t)}function S(t){return t&lt;&lt;1^t&gt;&gt;31}function E(t,e){for(var r=t.loadGeometry(),n=t.type,i=0,a=0,o=r.length,s=0;s&lt;o;s++){var l=r[s],c=1;1===n&amp;&amp;(c=l.length),e.writeVarint(A(1,c));for(var u=3===n?l.length-1:l.length,f=0;f&lt;u;f++){1===f&amp;&amp;1!==n&amp;&amp;e.writeVarint(A(2,u-1));var h=l[f].x-i,p=l[f].y-a;e.writeVarint(S(h)),e.writeVarint(S(p)),i+=h,a+=p}3===n&amp;&amp;e.writeVarint(A(7,1))}}function C(t,e){var r=typeof t;&quot;string&quot;===r?e.writeStringField(1,t):&quot;boolean&quot;===r?e.writeBooleanField(7,t):&quot;number&quot;===r&amp;&amp;(t%1!=0?e.writeDoubleField(3,t):t&lt;0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}function L(t,e,r,n){I(t,r,n),I(e,2*r,2*n),I(e,2*r+1,2*n+1)}function I(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function P(t,e,r,n){var i=t-r,a=e-n;return i*i+a*a}b.fromVectorTileJs=w,b.fromGeojsonVt=function(t,e){e=e||{};var r={};for(var n in t)r[n]=new v(t[n].features,e),r[n].name=n,r[n].version=e.version,r[n].extent=e.extent;return w({layers:r})},b.GeoJSONWrapper=_;var z=function(t){return t[0]},O=function(t){return t[1]},D=function(t,e,r,n,i){void 0===e&amp;&amp;(e=z),void 0===r&amp;&amp;(r=O),void 0===n&amp;&amp;(n=64),void 0===i&amp;&amp;(i=Float64Array),this.nodeSize=n,this.points=t;for(var a=t.length&lt;65536?Uint16Array:Uint32Array,o=this.ids=new a(t.length),s=this.coords=new i(2*t.length),l=0;l&lt;t.length;l++)o[l]=l,s[2*l]=e(t[l]),s[2*l+1]=r(t[l]);!function t(e,r,n,i,a,o){if(!(a-i&lt;=n)){var s=i+a&gt;&gt;1;!function t(e,r,n,i,a,o){for(;a&gt;i;){if(a-i&gt;600){var s=a-i+1,l=n-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2&lt;0?-1:1);t(e,r,n,Math.max(i,Math.floor(n-l*u/s+f)),Math.min(a,Math.floor(n+(s-l)*u/s+f)),o)}var h=r[2*n+o],p=i,d=a;for(L(e,r,i,n),r[2*a+o]&gt;h&amp;&amp;L(e,r,i,a);p&lt;d;){for(L(e,r,p,d),p++,d--;r[2*p+o]&lt;h;)p++;for(;r[2*d+o]&gt;h;)d--}r[2*i+o]===h?L(e,r,i,d):L(e,r,++d,a),d&lt;=n&amp;&amp;(i=d+1),n&lt;=d&amp;&amp;(a=d-1)}}(e,r,s,i,a,o%2),t(e,r,n,i,s-1,o+1),t(e,r,n,s+1,a,o+1)}}(o,s,n,0,o.length-1,0)};D.prototype.range=function(t,e,r,n){return function(t,e,r,n,i,a,o){for(var s,l,c=[0,t.length-1,0],u=[];c.length;){var f=c.pop(),h=c.pop(),p=c.pop();if(h-p&lt;=o)for(var d=p;d&lt;=h;d++)l=e[2*d+1],(s=e[2*d])&gt;=r&amp;&amp;s&lt;=i&amp;&amp;l&gt;=n&amp;&amp;l&lt;=a&amp;&amp;u.push(t[d]);else{var g=Math.floor((p+h)/2);l=e[2*g+1],(s=e[2*g])&gt;=r&amp;&amp;s&lt;=i&amp;&amp;l&gt;=n&amp;&amp;l&lt;=a&amp;&amp;u.push(t[g]);var m=(f+1)%2;(0===f?r&lt;=s:n&lt;=l)&amp;&amp;(c.push(p),c.push(g-1),c.push(m)),(0===f?i&gt;=s:a&gt;=l)&amp;&amp;(c.push(g+1),c.push(h),c.push(m))}}return u}(this.ids,this.coords,t,e,r,n,this.nodeSize)},D.prototype.within=function(t,e,r){return function(t,e,r,n,i,a){for(var o=[0,t.length-1,0],s=[],l=i*i;o.length;){var c=o.pop(),u=o.pop(),f=o.pop();if(u-f&lt;=a)for(var h=f;h&lt;=u;h++)P(e[2*h],e[2*h+1],r,n)&lt;=l&amp;&amp;s.push(t[h]);else{var p=Math.floor((f+u)/2),d=e[2*p],g=e[2*p+1];P(d,g,r,n)&lt;=l&amp;&amp;s.push(t[p]);var m=(c+1)%2;(0===c?r-i&lt;=d:n-i&lt;=g)&amp;&amp;(o.push(f),o.push(p-1),o.push(m)),(0===c?r+i&gt;=d:n+i&gt;=g)&amp;&amp;(o.push(p+1),o.push(u),o.push(m))}}return s}(this.ids,this.coords,t,e,r,this.nodeSize)};var R={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},F=function(t){this.options=H(Object.create(R),t),this.trees=new Array(this.options.maxZoom+1)};function B(t,e,r,n,i){return{x:t,y:e,zoom:1/0,id:r,parentId:-1,numPoints:n,properties:i}}function N(t,e){var r=t.geometry.coordinates,n=r[1];return{x:V(r[0]),y:q(n),zoom:1/0,index:e,parentId:-1}}function j(t){return{type:&quot;Feature&quot;,id:t.id,properties:U(t),geometry:{type:&quot;Point&quot;,coordinates:[(n=t.x,360*(n-.5)),(e=t.y,r=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(r))/Math.PI-90)]}};var e,r,n}function U(t){var e=t.numPoints,r=e&gt;=1e4?Math.round(e/1e3)+&quot;k&quot;:e&gt;=1e3?Math.round(e/100)/10+&quot;k&quot;:e;return H(H({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function V(t){return t/360+.5}function q(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function H(t,e){for(var r in e)t[r]=e[r];return t}function G(t){return t.x}function Y(t){return t.y}function W(t,e,r,n,i,a){var o=i-r,s=a-n;if(0!==o||0!==s){var l=((t-r)*o+(e-n)*s)/(o*o+s*s);l&gt;1?(r=i,n=a):l&gt;0&amp;&amp;(r+=o*l,n+=s*l)}return(o=t-r)*o+(s=e-n)*s}function X(t,e,r,n){var i={id:void 0===t?null:t,type:e,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,r=t.type;if(&quot;Point&quot;===r||&quot;MultiPoint&quot;===r||&quot;LineString&quot;===r)Z(t,e);else if(&quot;Polygon&quot;===r||&quot;MultiLineString&quot;===r)for(var n=0;n&lt;e.length;n++)Z(t,e[n]);else if(&quot;MultiPolygon&quot;===r)for(n=0;n&lt;e.length;n++)for(var i=0;i&lt;e[n].length;i++)Z(t,e[n][i])}(i),i}function Z(t,e){for(var r=0;r&lt;e.length;r+=3)t.minX=Math.min(t.minX,e[r]),t.minY=Math.min(t.minY,e[r+1]),t.maxX=Math.max(t.maxX,e[r]),t.maxY=Math.max(t.maxY,e[r+1])}function J(t,e,r,n){if(e.geometry){var i=e.geometry.coordinates,a=e.geometry.type,o=Math.pow(r.tolerance/((1&lt;&lt;r.maxZoom)*r.extent),2),s=[],l=e.id;if(r.promoteId?l=e.properties[r.promoteId]:r.generateId&amp;&amp;(l=n||0),&quot;Point&quot;===a)K(i,s);else if(&quot;MultiPoint&quot;===a)for(var c=0;c&lt;i.length;c++)K(i[c],s);else if(&quot;LineString&quot;===a)Q(i,s,o,!1);else if(&quot;MultiLineString&quot;===a){if(r.lineMetrics){for(c=0;c&lt;i.length;c++)Q(i[c],s=[],o,!1),t.push(X(l,&quot;LineString&quot;,s,e.properties));return}$(i,s,o,!1)}else if(&quot;Polygon&quot;===a)$(i,s,o,!0);else{if(&quot;MultiPolygon&quot;!==a){if(&quot;GeometryCollection&quot;===a){for(c=0;c&lt;e.geometry.geometries.length;c++)J(t,{id:l,geometry:e.geometry.geometries[c],properties:e.properties},r,n);return}throw new Error(&quot;Input data is not a valid GeoJSON object.&quot;)}for(c=0;c&lt;i.length;c++){var u=[];$(i[c],u,o,!0),s.push(u)}}t.push(X(l,a,s,e.properties))}}function K(t,e){e.push(tt(t[0])),e.push(et(t[1])),e.push(0)}function Q(t,e,r,n){for(var i,a,o=0,s=0;s&lt;t.length;s++){var l=tt(t[s][0]),c=et(t[s][1]);e.push(l),e.push(c),e.push(0),s&gt;0&amp;&amp;(o+=n?(i*c-l*a)/2:Math.sqrt(Math.pow(l-i,2)+Math.pow(c-a,2))),i=l,a=c}var u=e.length-3;e[2]=1,function t(e,r,n,i){for(var a,o=i,s=n-r&gt;&gt;1,l=n-r,c=e[r],u=e[r+1],f=e[n],h=e[n+1],p=r+3;p&lt;n;p+=3){var d=W(e[p],e[p+1],c,u,f,h);if(d&gt;o)a=p,o=d;else if(d===o){var g=Math.abs(p-s);g&lt;l&amp;&amp;(a=p,l=g)}}o&gt;i&amp;&amp;(a-r&gt;3&amp;&amp;t(e,r,a,i),e[a+2]=o,n-a&gt;3&amp;&amp;t(e,a,n,i))}(e,0,u,r),e[u+2]=1,e.size=Math.abs(o),e.start=0,e.end=e.size}function $(t,e,r,n){for(var i=0;i&lt;t.length;i++){var a=[];Q(t[i],a,r,n),e.push(a)}}function tt(t){return t/360+.5}function et(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function rt(t,e,r,n,i,a,o,s){if(n/=e,a&gt;=(r/=e)&amp;&amp;o&lt;n)return t;if(o&lt;r||a&gt;=n)return null;for(var l=[],c=0;c&lt;t.length;c++){var u=t[c],f=u.geometry,h=u.type,p=0===i?u.minX:u.minY,d=0===i?u.maxX:u.maxY;if(p&gt;=r&amp;&amp;d&lt;n)l.push(u);else if(!(d&lt;r||p&gt;=n)){var g=[];if(&quot;Point&quot;===h||&quot;MultiPoint&quot;===h)nt(f,g,r,n,i);else if(&quot;LineString&quot;===h)it(f,g,r,n,i,!1,s.lineMetrics);else if(&quot;MultiLineString&quot;===h)ot(f,g,r,n,i,!1);else if(&quot;Polygon&quot;===h)ot(f,g,r,n,i,!0);else if(&quot;MultiPolygon&quot;===h)for(var m=0;m&lt;f.length;m++){var v=[];ot(f[m],v,r,n,i,!0),v.length&amp;&amp;g.push(v)}if(g.length){if(s.lineMetrics&amp;&amp;&quot;LineString&quot;===h){for(m=0;m&lt;g.length;m++)l.push(X(u.id,h,g[m],u.tags));continue}&quot;LineString&quot;!==h&amp;&amp;&quot;MultiLineString&quot;!==h||(1===g.length?(h=&quot;LineString&quot;,g=g[0]):h=&quot;MultiLineString&quot;),&quot;Point&quot;!==h&amp;&amp;&quot;MultiPoint&quot;!==h||(h=3===g.length?&quot;Point&quot;:&quot;MultiPoint&quot;),l.push(X(u.id,h,g,u.tags))}}}return l.length?l:null}function nt(t,e,r,n,i){for(var a=0;a&lt;t.length;a+=3){var o=t[a+i];o&gt;=r&amp;&amp;o&lt;=n&amp;&amp;(e.push(t[a]),e.push(t[a+1]),e.push(t[a+2]))}}function it(t,e,r,n,i,a,o){for(var s,l,c=at(t),u=0===i?lt:ct,f=t.start,h=0;h&lt;t.length-3;h+=3){var p=t[h],d=t[h+1],g=t[h+2],m=t[h+3],v=t[h+4],y=0===i?p:d,x=0===i?m:v,b=!1;o&amp;&amp;(s=Math.sqrt(Math.pow(p-m,2)+Math.pow(d-v,2))),y&lt;r?x&gt;r&amp;&amp;(l=u(c,p,d,m,v,r),o&amp;&amp;(c.start=f+s*l)):y&gt;n?x&lt;n&amp;&amp;(l=u(c,p,d,m,v,n),o&amp;&amp;(c.start=f+s*l)):st(c,p,d,g),x&lt;r&amp;&amp;y&gt;=r&amp;&amp;(l=u(c,p,d,m,v,r),b=!0),x&gt;n&amp;&amp;y&lt;=n&amp;&amp;(l=u(c,p,d,m,v,n),b=!0),!a&amp;&amp;b&amp;&amp;(o&amp;&amp;(c.end=f+s*l),e.push(c),c=at(t)),o&amp;&amp;(f+=s)}var _=t.length-3;p=t[_],d=t[_+1],g=t[_+2],(y=0===i?p:d)&gt;=r&amp;&amp;y&lt;=n&amp;&amp;st(c,p,d,g),_=c.length-3,a&amp;&amp;_&gt;=3&amp;&amp;(c[_]!==c[0]||c[_+1]!==c[1])&amp;&amp;st(c,c[0],c[1],c[2]),c.length&amp;&amp;e.push(c)}function at(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function ot(t,e,r,n,i,a){for(var o=0;o&lt;t.length;o++)it(t[o],e,r,n,i,a,!1)}function st(t,e,r,n){t.push(e),t.push(r),t.push(n)}function lt(t,e,r,n,i,a){var o=(a-e)/(n-e);return t.push(a),t.push(r+(i-r)*o),t.push(1),o}function ct(t,e,r,n,i,a){var o=(a-r)/(i-r);return t.push(e+(n-e)*o),t.push(a),t.push(1),o}function ut(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i,a=t[n],o=a.type;if(&quot;Point&quot;===o||&quot;MultiPoint&quot;===o||&quot;LineString&quot;===o)i=ft(a.geometry,e);else if(&quot;MultiLineString&quot;===o||&quot;Polygon&quot;===o){i=[];for(var s=0;s&lt;a.geometry.length;s++)i.push(ft(a.geometry[s],e))}else if(&quot;MultiPolygon&quot;===o)for(i=[],s=0;s&lt;a.geometry.length;s++){for(var l=[],c=0;c&lt;a.geometry[s].length;c++)l.push(ft(a.geometry[s][c],e));i.push(l)}r.push(X(a.id,o,i,a.tags))}return r}function ft(t,e){var r=[];r.size=t.size,void 0!==t.start&amp;&amp;(r.start=t.start,r.end=t.end);for(var n=0;n&lt;t.length;n+=3)r.push(t[n]+e,t[n+1],t[n+2]);return r}function ht(t,e){if(t.transformed)return t;var r,n,i,a=1&lt;&lt;t.z,o=t.x,s=t.y;for(r=0;r&lt;t.features.length;r++){var l=t.features[r],c=l.geometry,u=l.type;if(l.geometry=[],1===u)for(n=0;n&lt;c.length;n+=2)l.geometry.push(pt(c[n],c[n+1],e,a,o,s));else for(n=0;n&lt;c.length;n++){var f=[];for(i=0;i&lt;c[n].length;i+=2)f.push(pt(c[n][i],c[n][i+1],e,a,o,s));l.geometry.push(f)}}return t.transformed=!0,t}function pt(t,e,r,n,i,a){return[Math.round(r*(t*n-i)),Math.round(r*(e*n-a))]}function dt(t,e,r,n,i){for(var a=e===i.maxZoom?0:i.tolerance/((1&lt;&lt;e)*i.extent),o={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:r,y:n,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s&lt;t.length;s++){o.numFeatures++,gt(o,t[s],a,i);var l=t[s].minX,c=t[s].minY,u=t[s].maxX,f=t[s].maxY;l&lt;o.minX&amp;&amp;(o.minX=l),c&lt;o.minY&amp;&amp;(o.minY=c),u&gt;o.maxX&amp;&amp;(o.maxX=u),f&gt;o.maxY&amp;&amp;(o.maxY=f)}return o}function gt(t,e,r,n){var i=e.geometry,a=e.type,o=[];if(&quot;Point&quot;===a||&quot;MultiPoint&quot;===a)for(var s=0;s&lt;i.length;s+=3)o.push(i[s]),o.push(i[s+1]),t.numPoints++,t.numSimplified++;else if(&quot;LineString&quot;===a)mt(o,i,t,r,!1,!1);else if(&quot;MultiLineString&quot;===a||&quot;Polygon&quot;===a)for(s=0;s&lt;i.length;s++)mt(o,i[s],t,r,&quot;Polygon&quot;===a,0===s);else if(&quot;MultiPolygon&quot;===a)for(var l=0;l&lt;i.length;l++){var c=i[l];for(s=0;s&lt;c.length;s++)mt(o,c[s],t,r,!0,0===s)}if(o.length){var u=e.tags||null;if(&quot;LineString&quot;===a&amp;&amp;n.lineMetrics){for(var f in u={},e.tags)u[f]=e.tags[f];u.mapbox_clip_start=i.start/i.size,u.mapbox_clip_end=i.end/i.size}var h={geometry:o,type:&quot;Polygon&quot;===a||&quot;MultiPolygon&quot;===a?3:&quot;LineString&quot;===a||&quot;MultiLineString&quot;===a?2:1,tags:u};null!==e.id&amp;&amp;(h.id=e.id),t.features.push(h)}}function mt(t,e,r,n,i,a){var o=n*n;if(n&gt;0&amp;&amp;e.size&lt;(i?o:n))r.numPoints+=e.length/3;else{for(var s=[],l=0;l&lt;e.length;l+=3)(0===n||e[l+2]&gt;o)&amp;&amp;(r.numSimplified++,s.push(e[l]),s.push(e[l+1])),r.numPoints++;i&amp;&amp;function(t,e){for(var r=0,n=0,i=t.length,a=i-2;n&lt;i;a=n,n+=2)r+=(t[n]-t[a])*(t[n+1]+t[a+1]);if(r&gt;0===e)for(n=0,i=t.length;n&lt;i/2;n+=2){var o=t[n],s=t[n+1];t[n]=t[i-2-n],t[n+1]=t[i-1-n],t[i-2-n]=o,t[i-1-n]=s}}(s,a),t.push(s)}}function vt(t,e){var r=(e=this.options=function(t,e){for(var r in e)t[r]=e[r];return t}(Object.create(this.options),e)).debug;if(r&amp;&amp;console.time(&quot;preprocess data&quot;),e.maxZoom&lt;0||e.maxZoom&gt;24)throw new Error(&quot;maxZoom should be in the 0-24 range&quot;);if(e.promoteId&amp;&amp;e.generateId)throw new Error(&quot;promoteId and generateId cannot be used together.&quot;);var n=function(t,e){var r=[];if(&quot;FeatureCollection&quot;===t.type)for(var n=0;n&lt;t.features.length;n++)J(r,t.features[n],e,n);else J(r,&quot;Feature&quot;===t.type?t:{geometry:t},e);return r}(t,e);this.tiles={},this.tileCoords=[],r&amp;&amp;(console.timeEnd(&quot;preprocess data&quot;),console.log(&quot;index: maxZoom: %d, maxPoints: %d&quot;,e.indexMaxZoom,e.indexMaxPoints),console.time(&quot;generate tiles&quot;),this.stats={},this.total=0),(n=function(t,e){var r=e.buffer/e.extent,n=t,i=rt(t,1,-1-r,r,0,-1,2,e),a=rt(t,1,1-r,2+r,0,-1,2,e);return(i||a)&amp;&amp;(n=rt(t,1,-r,1+r,0,-1,2,e)||[],i&amp;&amp;(n=ut(i,1).concat(n)),a&amp;&amp;(n=n.concat(ut(a,-1)))),n}(n,e)).length&amp;&amp;this.splitTile(n,0,0,0),r&amp;&amp;(n.length&amp;&amp;console.log(&quot;features: %d, points: %d&quot;,this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd(&quot;generate tiles&quot;),console.log(&quot;tiles generated:&quot;,this.total,JSON.stringify(this.stats)))}function yt(t,e,r){return 32*((1&lt;&lt;t)*r+e)+t}function xt(t,e){var r=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);var n=this._geoJSONIndex.getTile(r.z,r.x,r.y);if(!n)return e(null,null);var i=new g(n.features),a=b(i);0===a.byteOffset&amp;&amp;a.byteLength===a.buffer.byteLength||(a=new Uint8Array(a)),e(null,{vectorTile:i,rawData:a.buffer})}F.prototype.load=function(t){var e=this.options,r=e.log,n=e.minZoom,i=e.maxZoom,a=e.nodeSize;r&amp;&amp;console.time(&quot;total time&quot;);var o=&quot;prepare &quot;+t.length+&quot; points&quot;;r&amp;&amp;console.time(o),this.points=t;for(var s=[],l=0;l&lt;t.length;l++)t[l].geometry&amp;&amp;s.push(N(t[l],l));this.trees[i+1]=new D(s,G,Y,a,Float32Array),r&amp;&amp;console.timeEnd(o);for(var c=i;c&gt;=n;c--){var u=+Date.now();s=this._cluster(s,c),this.trees[c]=new D(s,G,Y,a,Float32Array),r&amp;&amp;console.log(&quot;z%d: %d clusters in %dms&quot;,c,s.length,+Date.now()-u)}return r&amp;&amp;console.timeEnd(&quot;total time&quot;),this},F.prototype.getClusters=function(t,e){var r=((t[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]&gt;=360)r=-180,i=180;else if(r&gt;i){var o=this.getClusters([r,n,180,a],e),s=this.getClusters([-180,n,i,a],e);return o.concat(s)}for(var l=this.trees[this._limitZoom(e)],c=[],u=0,f=l.range(V(r),q(a),V(i),q(n));u&lt;f.length;u+=1){var h=l.points[f[u]];c.push(h.numPoints?j(h):this.points[h.index])}return c},F.prototype.getChildren=function(t){var e=this._getOriginId(t),r=this._getOriginZoom(t),n=&quot;No cluster with the specified id.&quot;,i=this.trees[r];if(!i)throw new Error(n);var a=i.points[e];if(!a)throw new Error(n);for(var o=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=[],l=0,c=i.within(a.x,a.y,o);l&lt;c.length;l+=1){var u=i.points[c[l]];u.parentId===t&amp;&amp;s.push(u.numPoints?j(u):this.points[u.index])}if(0===s.length)throw new Error(n);return s},F.prototype.getLeaves=function(t,e,r){var n=[];return this._appendLeaves(n,t,e=e||10,r=r||0,0),n},F.prototype.getTile=function(t,e,r){var n=this.trees[this._limitZoom(t)],i=Math.pow(2,t),a=this.options,o=a.radius/a.extent,s=(r-o)/i,l=(r+1+o)/i,c={features:[]};return this._addTileFeatures(n.range((e-o)/i,s,(e+1+o)/i,l),n.points,e,r,i,c),0===e&amp;&amp;this._addTileFeatures(n.range(1-o/i,s,1,l),n.points,i,r,i,c),e===i-1&amp;&amp;this._addTileFeatures(n.range(0,s,o/i,l),n.points,-1,r,i,c),c.features.length?c:null},F.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e&lt;=this.options.maxZoom;){var r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e},F.prototype._appendLeaves=function(t,e,r,n,i){for(var a=0,o=this.getChildren(e);a&lt;o.length;a+=1){var s=o[a],l=s.properties;if(l&amp;&amp;l.cluster?i+l.point_count&lt;=n?i+=l.point_count:i=this._appendLeaves(t,l.cluster_id,r,n,i):i&lt;n?i++:t.push(s),t.length===r)break}return i},F.prototype._addTileFeatures=function(t,e,r,n,i,a){for(var o=0,s=t;o&lt;s.length;o+=1){var l=e[s[o]],c=l.numPoints,u={type:1,geometry:[[Math.round(this.options.extent*(l.x*i-r)),Math.round(this.options.extent*(l.y*i-n))]],tags:c?U(l):this.points[l.index].properties},f=void 0;c?f=l.id:this.options.generateId?f=l.index:this.points[l.index].id&amp;&amp;(f=this.points[l.index].id),void 0!==f&amp;&amp;(u.id=f),a.features.push(u)}},F.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},F.prototype._cluster=function(t,e){for(var r=[],n=this.options,i=n.reduce,a=n.radius/(n.extent*Math.pow(2,e)),o=0;o&lt;t.length;o++){var s=t[o];if(!(s.zoom&lt;=e)){s.zoom=e;for(var l=this.trees[e+1],c=l.within(s.x,s.y,a),u=s.numPoints||1,f=s.x*u,h=s.y*u,p=i&amp;&amp;u&gt;1?this._map(s,!0):null,d=(o&lt;&lt;5)+(e+1)+this.points.length,g=0,m=c;g&lt;m.length;g+=1){var v=l.points[m[g]];if(!(v.zoom&lt;=e)){v.zoom=e;var y=v.numPoints||1;f+=v.x*y,h+=v.y*y,u+=y,v.parentId=d,i&amp;&amp;(p||(p=this._map(s,!0)),i(p,this._map(v)))}}1===u?r.push(s):(s.parentId=d,r.push(B(f/u,h/u,d,u,p)))}}return r},F.prototype._getOriginId=function(t){return t-this.points.length&gt;&gt;5},F.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},F.prototype._map=function(t,e){if(t.numPoints)return e?H({},t.properties):t.properties;var r=this.points[t.index].properties,n=this.options.map(r);return e&amp;&amp;n===r?H({},n):n},vt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},vt.prototype.splitTile=function(t,e,r,n,i,a,o){for(var s=[t,e,r,n],l=this.options,c=l.debug;s.length;){n=s.pop(),r=s.pop(),e=s.pop(),t=s.pop();var u=1&lt;&lt;e,f=yt(e,r,n),h=this.tiles[f];if(!h&amp;&amp;(c&gt;1&amp;&amp;console.time(&quot;creation&quot;),h=this.tiles[f]=dt(t,e,r,n,l),this.tileCoords.push({z:e,x:r,y:n}),c)){c&gt;1&amp;&amp;(console.log(&quot;tile z%d-%d-%d (features: %d, points: %d, simplified: %d)&quot;,e,r,n,h.numFeatures,h.numPoints,h.numSimplified),console.timeEnd(&quot;creation&quot;));var p=&quot;z&quot;+e;this.stats[p]=(this.stats[p]||0)+1,this.total++}if(h.source=t,i){if(e===l.maxZoom||e===i)continue;var d=1&lt;&lt;i-e;if(r!==Math.floor(a/d)||n!==Math.floor(o/d))continue}else if(e===l.indexMaxZoom||h.numPoints&lt;=l.indexMaxPoints)continue;if(h.source=null,0!==t.length){c&gt;1&amp;&amp;console.time(&quot;clipping&quot;);var g,m,v,y,x,b,_=.5*l.buffer/l.extent,w=.5-_,T=.5+_,k=1+_;g=m=v=y=null,x=rt(t,u,r-_,r+T,0,h.minX,h.maxX,l),b=rt(t,u,r+w,r+k,0,h.minX,h.maxX,l),t=null,x&amp;&amp;(g=rt(x,u,n-_,n+T,1,h.minY,h.maxY,l),m=rt(x,u,n+w,n+k,1,h.minY,h.maxY,l),x=null),b&amp;&amp;(v=rt(b,u,n-_,n+T,1,h.minY,h.maxY,l),y=rt(b,u,n+w,n+k,1,h.minY,h.maxY,l),b=null),c&gt;1&amp;&amp;console.timeEnd(&quot;clipping&quot;),s.push(g||[],e+1,2*r,2*n),s.push(m||[],e+1,2*r,2*n+1),s.push(v||[],e+1,2*r+1,2*n),s.push(y||[],e+1,2*r+1,2*n+1)}}},vt.prototype.getTile=function(t,e,r){var n=this.options,i=n.extent,a=n.debug;if(t&lt;0||t&gt;24)return null;var o=1&lt;&lt;t,s=yt(t,e=(e%o+o)%o,r);if(this.tiles[s])return ht(this.tiles[s],i);a&gt;1&amp;&amp;console.log(&quot;drilling down to z%d-%d-%d&quot;,t,e,r);for(var l,c=t,u=e,f=r;!l&amp;&amp;c&gt;0;)c--,u=Math.floor(u/2),f=Math.floor(f/2),l=this.tiles[yt(c,u,f)];return l&amp;&amp;l.source?(a&gt;1&amp;&amp;console.log(&quot;found parent tile z%d-%d-%d&quot;,c,u,f),a&gt;1&amp;&amp;console.time(&quot;drilling down&quot;),this.splitTile(l.source,c,u,f,t,e,r),a&gt;1&amp;&amp;console.timeEnd(&quot;drilling down&quot;),this.tiles[s]?ht(this.tiles[s],i):null):null};var bt=function(e){function r(t,r,n,i){e.call(this,t,r,n,xt),i&amp;&amp;(this.loadGeoJSON=i)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.loadData=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&amp;&amp;&quot;Idle&quot;!==this._state?this._state=&quot;NeedsLoadData&quot;:(this._state=&quot;Coalescing&quot;,this._loadData())},r.prototype._loadData=function(){var e=this;if(this._pendingCallback&amp;&amp;this._pendingLoadDataParams){var r=this._pendingCallback,n=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var i=!!(n&amp;&amp;n.request&amp;&amp;n.request.collectResourceTiming)&amp;&amp;new t.RequestPerformance(n.request);this.loadGeoJSON(n,(function(a,o){if(a||!o)return r(a);if(&quot;object&quot;!=typeof o)return r(new Error(&quot;Input data given to '&quot;+n.source+&quot;' is not a valid GeoJSON object.&quot;));!function t(e,r){var n,i=e&amp;&amp;e.type;if(&quot;FeatureCollection&quot;===i)for(n=0;n&lt;e.features.length;n++)t(e.features[n],r);else if(&quot;GeometryCollection&quot;===i)for(n=0;n&lt;e.geometries.length;n++)t(e.geometries[n],r);else if(&quot;Feature&quot;===i)t(e.geometry,r);else if(&quot;Polygon&quot;===i)f(e.coordinates,r);else if(&quot;MultiPolygon&quot;===i)for(n=0;n&lt;e.coordinates.length;n++)f(e.coordinates[n],r);return e}(o,!0);try{e._geoJSONIndex=n.cluster?new F(function(e){var r=e.superclusterOptions,n=e.clusterProperties;if(!n||!r)return r;for(var i={},a={},o={accumulated:null,zoom:0},s={properties:null},l=Object.keys(n),c=0,u=l;c&lt;u.length;c+=1){var f=u[c],h=n[f],p=h[0],d=t.createExpression(h[1]),g=t.createExpression(&quot;string&quot;==typeof p?[p,[&quot;accumulated&quot;],[&quot;get&quot;,f]]:p);i[f]=d.value,a[f]=g.value}return r.map=function(t){s.properties=t;for(var e={},r=0,n=l;r&lt;n.length;r+=1){var a=n[r];e[a]=i[a].evaluate(o,s)}return e},r.reduce=function(t,e){s.properties=e;for(var r=0,n=l;r&lt;n.length;r+=1){var i=n[r];o.accumulated=t[i],t[i]=a[i].evaluate(o,s)}},r}(n)).load(o.features):function(t,e){return new vt(t,e)}(o,n.geojsonVtOptions)}catch(a){return r(a)}e.loaded={};var s={};if(i){var l=i.finish();l&amp;&amp;(s.resourceTiming={},s.resourceTiming[n.source]=JSON.parse(JSON.stringify(l)))}r(null,s)}))}},r.prototype.coalesce=function(){&quot;Coalescing&quot;===this._state?this._state=&quot;Idle&quot;:&quot;NeedsLoadData&quot;===this._state&amp;&amp;(this._state=&quot;Coalescing&quot;,this._loadData())},r.prototype.reloadTile=function(t,r){var n=this.loaded;return n&amp;&amp;n[t.uid]?e.prototype.reloadTile.call(this,t,r):this.loadTile(t,r)},r.prototype.loadGeoJSON=function(e,r){if(e.request)t.getJSON(e.request,r);else{if(&quot;string&quot;!=typeof e.data)return r(new Error(&quot;Input data given to '&quot;+e.source+&quot;' is not a valid GeoJSON object.&quot;));try{return r(null,JSON.parse(e.data))}catch(t){return r(new Error(&quot;Input data given to '&quot;+e.source+&quot;' is not a valid GeoJSON object.&quot;))}}},r.prototype.removeSource=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),e()},r.prototype.getClusterExpansionZoom=function(t,e){try{e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterChildren=function(t,e){try{e(null,this._geoJSONIndex.getChildren(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterLeaves=function(t,e){try{e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))}catch(t){e(t)}},r}(l),_t=function(e){var r=this;this.self=e,this.actor=new t.Actor(e,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:l,geojson:bt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(r.workerSourceTypes[t])throw new Error('Worker source with name &quot;'+t+'&quot; already registered.');r.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(e){if(t.plugin.isParsed())throw new Error(&quot;RTL text plugin already registered.&quot;);t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText,t.plugin.processStyledBidirectionalText=e.processStyledBidirectionalText}};return _t.prototype.setReferrer=function(t,e){this.referrer=e},_t.prototype.setImages=function(t,e,r){for(var n in this.availableImages[t]=e,this.workerSources[t]){var i=this.workerSources[t][n];for(var a in i)i[a].availableImages=e}r()},_t.prototype.setLayers=function(t,e,r){this.getLayerIndex(t).replace(e),r()},_t.prototype.updateLayers=function(t,e,r){this.getLayerIndex(t).update(e.layers,e.removedIds),r()},_t.prototype.loadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).loadTile(e,r)},_t.prototype.loadDEMTile=function(t,e,r){this.getDEMWorkerSource(t,e.source).loadTile(e,r)},_t.prototype.reloadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).reloadTile(e,r)},_t.prototype.abortTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).abortTile(e,r)},_t.prototype.removeTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).removeTile(e,r)},_t.prototype.removeDEMTile=function(t,e){this.getDEMWorkerSource(t,e.source).removeTile(e)},_t.prototype.removeSource=function(t,e,r){if(this.workerSources[t]&amp;&amp;this.workerSources[t][e.type]&amp;&amp;this.workerSources[t][e.type][e.source]){var n=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==n.removeSource?n.removeSource(e,r):r()}},_t.prototype.loadWorkerSource=function(t,e,r){try{this.self.importScripts(e.url),r()}catch(t){r(t.toString())}},_t.prototype.syncRTLPluginState=function(e,r,n){try{t.plugin.setState(r);var i=t.plugin.getPluginURL();if(t.plugin.isLoaded()&amp;&amp;!t.plugin.isParsed()&amp;&amp;null!=i){this.self.importScripts(i);var a=t.plugin.isParsed();n(a?void 0:new Error(&quot;RTL Text Plugin failed to import scripts from &quot;+i),a)}}catch(t){n(t.toString())}},_t.prototype.getAvailableImages=function(t){var e=this.availableImages[t];return e||(e=[]),e},_t.prototype.getLayerIndex=function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new n),e},_t.prototype.getWorkerSource=function(t,e,r){var n=this;return this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),this.workerSources[t][e][r]||(this.workerSources[t][e][r]=new this.workerSourceTypes[e]({send:function(e,r,i){n.actor.send(e,r,i,t)}},this.getLayerIndex(t),this.getAvailableImages(t))),this.workerSources[t][e][r]},_t.prototype.getDEMWorkerSource=function(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new u),this.demWorkerSources[t][e]},_t.prototype.enforceCacheSizeLimit=function(e,r){t.enforceCacheSizeLimit(r)},&quot;undefined&quot;!=typeof WorkerGlobalScope&amp;&amp;void 0!==t.window&amp;&amp;t.window instanceof WorkerGlobalScope&amp;&amp;(t.window.worker=new _t(t.window)),_t})),n(0,(function(t){var e=t.createCommonjsModule((function(t){function e(t){return!r(t)}function r(t){return&quot;undefined&quot;==typeof window||&quot;undefined&quot;==typeof document?&quot;not a browser&quot;:Array.prototype&amp;&amp;Array.prototype.every&amp;&amp;Array.prototype.filter&amp;&amp;Array.prototype.forEach&amp;&amp;Array.prototype.indexOf&amp;&amp;Array.prototype.lastIndexOf&amp;&amp;Array.prototype.map&amp;&amp;Array.prototype.some&amp;&amp;Array.prototype.reduce&amp;&amp;Array.prototype.reduceRight&amp;&amp;Array.isArray?Function.prototype&amp;&amp;Function.prototype.bind?Object.keys&amp;&amp;Object.create&amp;&amp;Object.getPrototypeOf&amp;&amp;Object.getOwnPropertyNames&amp;&amp;Object.isSealed&amp;&amp;Object.isFrozen&amp;&amp;Object.isExtensible&amp;&amp;Object.getOwnPropertyDescriptor&amp;&amp;Object.defineProperty&amp;&amp;Object.defineProperties&amp;&amp;Object.seal&amp;&amp;Object.freeze&amp;&amp;Object.preventExtensions?&quot;JSON&quot;in window&amp;&amp;&quot;parse&quot;in JSON&amp;&amp;&quot;stringify&quot;in JSON?function(){if(!(&quot;Worker&quot;in window&amp;&amp;&quot;Blob&quot;in window&amp;&amp;&quot;URL&quot;in window))return!1;var t,e,r=new Blob([&quot;&quot;],{type:&quot;text/javascript&quot;}),n=URL.createObjectURL(r);try{e=new Worker(n),t=!0}catch(e){t=!1}return e&amp;&amp;e.terminate(),URL.revokeObjectURL(n),t}()?&quot;Uint8ClampedArray&quot;in window?ArrayBuffer.isView?function(){var t=document.createElement(&quot;canvas&quot;);t.width=t.height=1;var e=t.getContext(&quot;2d&quot;);if(!e)return!1;var r=e.getImageData(0,0,1,1);return r&amp;&amp;r.width===t.width}()?(void 0===n[r=t&amp;&amp;t.failIfMajorPerformanceCaveat]&amp;&amp;(n[r]=function(t){var r=function(t){var r=document.createElement(&quot;canvas&quot;),n=Object.create(e.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=t,r.probablySupportsContext?r.probablySupportsContext(&quot;webgl&quot;,n)||r.probablySupportsContext(&quot;experimental-webgl&quot;,n):r.supportsContext?r.supportsContext(&quot;webgl&quot;,n)||r.supportsContext(&quot;experimental-webgl&quot;,n):r.getContext(&quot;webgl&quot;,n)||r.getContext(&quot;experimental-webgl&quot;,n)}(t);if(!r)return!1;var n=r.createShader(r.VERTEX_SHADER);return!(!n||r.isContextLost())&amp;&amp;(r.shaderSource(n,&quot;void main() {}&quot;),r.compileShader(n),!0===r.getShaderParameter(n,r.COMPILE_STATUS))}(r)),n[r]?void 0:&quot;insufficient WebGL support&quot;):&quot;insufficient Canvas/getImageData support&quot;:&quot;insufficient ArrayBuffer support&quot;:&quot;insufficient Uint8ClampedArray support&quot;:&quot;insufficient worker support&quot;:&quot;insufficient JSON support&quot;:&quot;insufficient Object support&quot;:&quot;insufficient Function support&quot;:&quot;insufficent Array support&quot;;var r}t.exports?t.exports=e:window&amp;&amp;(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=e,window.mapboxgl.notSupportedReason=r);var n={};e.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}})),r={create:function(e,r,n){var i=t.window.document.createElement(e);return void 0!==r&amp;&amp;(i.className=r),n&amp;&amp;n.appendChild(i),i},createNS:function(e,r){return t.window.document.createElementNS(e,r)}},n=t.window.document.documentElement.style;function i(t){if(!n)return t[0];for(var e=0;e&lt;t.length;e++)if(t[e]in n)return t[e];return t[0]}var a,o=i([&quot;userSelect&quot;,&quot;MozUserSelect&quot;,&quot;WebkitUserSelect&quot;,&quot;msUserSelect&quot;]);r.disableDrag=function(){n&amp;&amp;o&amp;&amp;(a=n[o],n[o]=&quot;none&quot;)},r.enableDrag=function(){n&amp;&amp;o&amp;&amp;(n[o]=a)};var s=i([&quot;transform&quot;,&quot;WebkitTransform&quot;]);r.setTransform=function(t,e){t.style[s]=e};var l=!1;try{var c=Object.defineProperty({},&quot;passive&quot;,{get:function(){l=!0}});t.window.addEventListener(&quot;test&quot;,c,c),t.window.removeEventListener(&quot;test&quot;,c,c)}catch(t){l=!1}r.addEventListener=function(t,e,r,n){void 0===n&amp;&amp;(n={}),t.addEventListener(e,r,&quot;passive&quot;in n&amp;&amp;l?n:n.capture)},r.removeEventListener=function(t,e,r,n){void 0===n&amp;&amp;(n={}),t.removeEventListener(e,r,&quot;passive&quot;in n&amp;&amp;l?n:n.capture)};var u=function(e){e.preventDefault(),e.stopPropagation(),t.window.removeEventListener(&quot;click&quot;,u,!0)};function f(t){var e=t.userImage;return!!(e&amp;&amp;e.render&amp;&amp;e.render())&amp;&amp;(t.data.replace(new Uint8Array(e.data.buffer)),!0)}r.suppressClick=function(){t.window.addEventListener(&quot;click&quot;,u,!0),t.window.setTimeout((function(){t.window.removeEventListener(&quot;click&quot;,u,!0)}),0)},r.mousePos=function(e,r){var n=e.getBoundingClientRect();return new t.Point(r.clientX-n.left-e.clientLeft,r.clientY-n.top-e.clientTop)},r.touchPos=function(e,r){for(var n=e.getBoundingClientRect(),i=[],a=0;a&lt;r.length;a++)i.push(new t.Point(r[a].clientX-n.left-e.clientLeft,r[a].clientY-n.top-e.clientTop));return i},r.mouseButton=function(e){return void 0!==t.window.InstallTrigger&amp;&amp;2===e.button&amp;&amp;e.ctrlKey&amp;&amp;t.window.navigator.platform.toUpperCase().indexOf(&quot;MAC&quot;)&gt;=0?0:e.button},r.remove=function(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)};var h=function(e){function r(){e.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.isLoaded=function(){return this.loaded},r.prototype.setLoaded=function(t){if(this.loaded!==t&amp;&amp;(this.loaded=t,t)){for(var e=0,r=this.requestors;e&lt;r.length;e+=1){var n=r[e];this._notify(n.ids,n.callback)}this.requestors=[]}},r.prototype.getImage=function(t){return this.images[t]},r.prototype.addImage=function(t,e){this._validate(t,e)&amp;&amp;(this.images[t]=e)},r.prototype._validate=function(e,r){var n=!0;return this._validateStretch(r.stretchX,r.data&amp;&amp;r.data.width)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;stretchX&quot; value'))),n=!1),this._validateStretch(r.stretchY,r.data&amp;&amp;r.data.height)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;stretchY&quot; value'))),n=!1),this._validateContent(r.content,r)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;content&quot; value'))),n=!1),n},r.prototype._validateStretch=function(t,e){if(!t)return!0;for(var r=0,n=0,i=t;n&lt;i.length;n+=1){var a=i[n];if(a[0]&lt;r||a[1]&lt;a[0]||e&lt;a[1])return!1;r=a[1]}return!0},r.prototype._validateContent=function(t,e){return!(t&amp;&amp;(4!==t.length||t[0]&lt;0||e.data.width&lt;t[0]||t[1]&lt;0||e.data.height&lt;t[1]||t[2]&lt;0||e.data.width&lt;t[2]||t[3]&lt;0||e.data.height&lt;t[3]||t[2]&lt;t[0]||t[3]&lt;t[1]))},r.prototype.updateImage=function(t,e){e.version=this.images[t].version+1,this.images[t]=e,this.updatedImages[t]=!0},r.prototype.removeImage=function(t){var e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&amp;&amp;e.userImage.onRemove&amp;&amp;e.userImage.onRemove()},r.prototype.listImages=function(){return Object.keys(this.images)},r.prototype.getImages=function(t,e){var r=!0;if(!this.isLoaded())for(var n=0,i=t;n&lt;i.length;n+=1)this.images[i[n]]||(r=!1);this.isLoaded()||r?this._notify(t,e):this.requestors.push({ids:t,callback:e})},r.prototype._notify=function(e,r){for(var n={},i=0,a=e;i&lt;a.length;i+=1){var o=a[i];this.images[o]||this.fire(new t.Event(&quot;styleimagemissing&quot;,{id:o}));var s=this.images[o];s?n[o]={data:s.data.clone(),pixelRatio:s.pixelRatio,sdf:s.sdf,version:s.version,stretchX:s.stretchX,stretchY:s.stretchY,content:s.content,hasRenderCallback:Boolean(s.userImage&amp;&amp;s.userImage.render)}:t.warnOnce('Image &quot;'+o+'&quot; could not be loaded. Please make sure you have added the image with map.addImage() or a &quot;sprite&quot; property in your style. You can provide missing images by listening for the &quot;styleimagemissing&quot; map event.')}r(null,n)},r.prototype.getPixelSize=function(){var t=this.atlasImage;return{width:t.width,height:t.height}},r.prototype.getPattern=function(e){var r=this.patterns[e],n=this.getImage(e);if(!n)return null;if(r&amp;&amp;r.position.version===n.version)return r.position;if(r)r.position.version=n.version;else{var i={w:n.data.width+2,h:n.data.height+2,x:0,y:0},a=new t.ImagePosition(i,n);this.patterns[e]={bin:i,position:a}}return this._updatePatternAtlas(),this.patterns[e].position},r.prototype.bind=function(e){var r=e.gl;this.atlasTexture?this.dirty&amp;&amp;(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new t.Texture(e,this.atlasImage,r.RGBA),this.atlasTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)},r.prototype._updatePatternAtlas=function(){var e=[];for(var r in this.patterns)e.push(this.patterns[r].bin);var n=t.potpack(e),i=n.w,a=n.h,o=this.atlasImage;for(var s in o.resize({width:i||1,height:a||1}),this.patterns){var l=this.patterns[s].bin,c=l.x+1,u=l.y+1,f=this.images[s].data,h=f.width,p=f.height;t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u},{width:h,height:p}),t.RGBAImage.copy(f,o,{x:0,y:p-1},{x:c,y:u-1},{width:h,height:1}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u+p},{width:h,height:1}),t.RGBAImage.copy(f,o,{x:h-1,y:0},{x:c-1,y:u},{width:1,height:p}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c+h,y:u},{width:1,height:p})}this.dirty=!0},r.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},r.prototype.dispatchRenderCallbacks=function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var n=r[e];if(!this.callbackDispatchedThisFrame[n]){this.callbackDispatchedThisFrame[n]=!0;var i=this.images[n];f(i)&amp;&amp;this.updateImage(n,i)}}},r}(t.Evented),p=m,d=m,g=1e20;function m(t,e,r,n,i,a){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=n||.25,this.fontFamily=i||&quot;sans-serif&quot;,this.fontWeight=a||&quot;normal&quot;,this.radius=r||8;var o=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement(&quot;canvas&quot;),this.canvas.width=this.canvas.height=o,this.ctx=this.canvas.getContext(&quot;2d&quot;),this.ctx.font=this.fontWeight+&quot; &quot;+this.fontSize+&quot;px &quot;+this.fontFamily,this.ctx.textBaseline=&quot;middle&quot;,this.ctx.fillStyle=&quot;black&quot;,this.gridOuter=new Float64Array(o*o),this.gridInner=new Float64Array(o*o),this.f=new Float64Array(o),this.d=new Float64Array(o),this.z=new Float64Array(o+1),this.v=new Int16Array(o),this.middle=Math.round(o/2*(navigator.userAgent.indexOf(&quot;Gecko/&quot;)&gt;=0?1.2:1))}function v(t,e,r,n,i,a,o){for(var s=0;s&lt;e;s++){for(var l=0;l&lt;r;l++)n[l]=t[l*e+s];for(y(n,i,a,o,r),l=0;l&lt;r;l++)t[l*e+s]=i[l]}for(l=0;l&lt;r;l++){for(s=0;s&lt;e;s++)n[s]=t[l*e+s];for(y(n,i,a,o,e),s=0;s&lt;e;s++)t[l*e+s]=Math.sqrt(i[s])}}function y(t,e,r,n,i){r[0]=0,n[0]=-g,n[1]=+g;for(var a=1,o=0;a&lt;i;a++){for(var s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);s&lt;=n[o];)o--,s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);r[++o]=a,n[o]=s,n[o+1]=+g}for(a=0,o=0;a&lt;i;a++){for(;n[o+1]&lt;a;)o++;e[a]=(a-r[o])*(a-r[o])+t[r[o]]}}m.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),r=new Uint8ClampedArray(this.size*this.size),n=0;n&lt;this.size*this.size;n++){var i=e.data[4*n+3]/255;this.gridOuter[n]=1===i?0:0===i?g:Math.pow(Math.max(0,.5-i),2),this.gridInner[n]=1===i?g:0===i?0:Math.pow(Math.max(0,i-.5),2)}for(v(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),v(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),n=0;n&lt;this.size*this.size;n++)r[n]=Math.max(0,Math.min(255,Math.round(255-255*((this.gridOuter[n]-this.gridInner[n])/this.radius+this.cutoff))));return r},p.default=d;var x=function(t,e){this.requestManager=t,this.localIdeographFontFamily=e,this.entries={}};x.prototype.setURL=function(t){this.url=t},x.prototype.getGlyphs=function(e,r){var n=this,i=[];for(var a in e)for(var o=0,s=e[a];o&lt;s.length;o+=1)i.push({stack:a,id:s[o]});t.asyncAll(i,(function(t,e){var r=t.stack,i=t.id,a=n.entries[r];a||(a=n.entries[r]={glyphs:{},requests:{},ranges:{}});var o=a.glyphs[i];if(void 0===o){if(o=n._tinySDF(a,r,i))return a.glyphs[i]=o,void e(null,{stack:r,id:i,glyph:o});var s=Math.floor(i/256);if(256*s&gt;65535)e(new Error(&quot;glyphs &gt; 65535 not supported&quot;));else if(a.ranges[s])e(null,{stack:r,id:i,glyph:o});else{var l=a.requests[s];l||(l=a.requests[s]=[],x.loadGlyphRange(r,s,n.url,n.requestManager,(function(t,e){if(e){for(var r in e)n._doesCharSupportLocalGlyph(+r)||(a.glyphs[+r]=e[+r]);a.ranges[s]=!0}for(var i=0,o=l;i&lt;o.length;i+=1)(0,o[i])(t,e);delete a.requests[s]}))),l.push((function(t,n){t?e(t):n&amp;&amp;e(null,{stack:r,id:i,glyph:n[i]||null})}))}}else e(null,{stack:r,id:i,glyph:o})}),(function(t,e){if(t)r(t);else if(e){for(var n={},i=0,a=e;i&lt;a.length;i+=1){var o=a[i],s=o.stack,l=o.id,c=o.glyph;(n[s]||(n[s]={}))[l]=c&amp;&amp;{id:c.id,bitmap:c.bitmap.clone(),metrics:c.metrics}}r(null,n)}}))},x.prototype._doesCharSupportLocalGlyph=function(e){return!!this.localIdeographFontFamily&amp;&amp;(t.isChar[&quot;CJK Unified Ideographs&quot;](e)||t.isChar[&quot;Hangul Syllables&quot;](e)||t.isChar.Hiragana(e)||t.isChar.Katakana(e))},x.prototype._tinySDF=function(e,r,n){var i=this.localIdeographFontFamily;if(i&amp;&amp;this._doesCharSupportLocalGlyph(n)){var a=e.tinySDF;if(!a){var o=&quot;400&quot;;/bold/i.test(r)?o=&quot;900&quot;:/medium/i.test(r)?o=&quot;500&quot;:/light/i.test(r)&amp;&amp;(o=&quot;200&quot;),a=e.tinySDF=new x.TinySDF(24,3,8,.25,i,o)}return{id:n,bitmap:new t.AlphaImage({width:30,height:30},a.draw(String.fromCharCode(n))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},x.loadGlyphRange=function(e,r,n,i,a){var o=256*r,s=o+255,l=i.transformRequest(i.normalizeGlyphsURL(n).replace(&quot;{fontstack}&quot;,e).replace(&quot;{range}&quot;,o+&quot;-&quot;+s),t.ResourceType.Glyphs);t.getArrayBuffer(l,(function(e,r){if(e)a(e);else if(r){for(var n={},i=0,o=t.parseGlyphPBF(r);i&lt;o.length;i+=1){var s=o[i];n[s.id]=s}a(null,n)}}))},x.TinySDF=p;var b=function(){this.specification=t.styleSpec.light.position};b.prototype.possiblyEvaluate=function(e,r){return t.sphericalToCartesian(e.expression.evaluate(r))},b.prototype.interpolate=function(e,r,n){return{x:t.number(e.x,r.x,n),y:t.number(e.y,r.y,n),z:t.number(e.z,r.z,n)}};var _=new t.Properties({anchor:new t.DataConstantProperty(t.styleSpec.light.anchor),position:new b,color:new t.DataConstantProperty(t.styleSpec.light.color),intensity:new t.DataConstantProperty(t.styleSpec.light.intensity)}),w=function(e){function r(r){e.call(this),this._transitionable=new t.Transitionable(_),this.setLight(r),this._transitioning=this._transitionable.untransitioned()}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getLight=function(){return this._transitionable.serialize()},r.prototype.setLight=function(e,r){if(void 0===r&amp;&amp;(r={}),!this._validate(t.validateLight,e,r))for(var n in e){var i=e[n];t.endsWith(n,&quot;-transition&quot;)?this._transitionable.setTransition(n.slice(0,-&quot;-transition&quot;.length),i):this._transitionable.setValue(n,i)}},r.prototype.updateTransitions=function(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)},r.prototype.hasTransition=function(){return this._transitioning.hasTransition()},r.prototype.recalculate=function(t){this.properties=this._transitioning.possiblyEvaluate(t)},r.prototype._validate=function(e,r,n){return(!n||!1!==n.validate)&amp;&amp;t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:r,style:{glyphs:!0,sprite:!0},styleSpec:t.styleSpec})))},r}(t.Evented),T=function(t,e){this.width=t,this.height=e,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}};T.prototype.getDash=function(t,e){var r=t.join(&quot;,&quot;)+String(e);return this.dashEntry[r]||(this.dashEntry[r]=this.addDash(t,e)),this.dashEntry[r]},T.prototype.getDashRanges=function(t,e,r){var n=[],i=t.length%2==1?-t[t.length-1]*r:0,a=t[0]*r,o=!0;n.push({left:i,right:a,isDash:o,zeroLength:0===t[0]});for(var s=t[0],l=1;l&lt;t.length;l++){var c=t[l];n.push({left:i=s*r,right:a=(s+=c)*r,isDash:o=!o,zeroLength:0===c})}return n},T.prototype.addRoundDash=function(t,e,r){for(var n=e/2,i=-r;i&lt;=r;i++)for(var a=this.width*(this.nextRow+r+i),o=0,s=t[o],l=0;l&lt;this.width;l++){l/s.right&gt;1&amp;&amp;(s=t[++o]);var c=Math.abs(l-s.left),u=Math.abs(l-s.right),f=Math.min(c,u),h=void 0,p=i/r*(n+1);if(s.isDash){var d=n-Math.abs(p);h=Math.sqrt(f*f+d*d)}else h=n-Math.sqrt(f*f+p*p);this.data[a+l]=Math.max(0,Math.min(255,h+128))}},T.prototype.addRegularDash=function(t){for(var e=t.length-1;e&gt;=0;--e){var r=t[e],n=t[e+1];r.zeroLength?t.splice(e,1):n&amp;&amp;n.isDash===r.isDash&amp;&amp;(n.left=r.left,t.splice(e,1))}var i=t[0],a=t[t.length-1];i.isDash===a.isDash&amp;&amp;(i.left=a.left-this.width,a.right=i.right+this.width);for(var o=this.width*this.nextRow,s=0,l=t[s],c=0;c&lt;this.width;c++){c/l.right&gt;1&amp;&amp;(l=t[++s]);var u=Math.abs(c-l.left),f=Math.abs(c-l.right),h=Math.min(u,f);this.data[o+c]=Math.max(0,Math.min(255,(l.isDash?h:-h)+128))}},T.prototype.addDash=function(e,r){var n=r?7:0,i=2*n+1;if(this.nextRow+i&gt;this.height)return t.warnOnce(&quot;LineAtlas out of space&quot;),null;for(var a=0,o=0;o&lt;e.length;o++)a+=e[o];if(0!==a){var s=this.width/a,l=this.getDashRanges(e,this.width,s);r?this.addRoundDash(l,s,n):this.addRegularDash(l)}var c={y:(this.nextRow+n+.5)/this.height,height:2*n/this.height,width:a};return this.nextRow+=i,this.dirty=!0,c},T.prototype.bind=function(t){var e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&amp;&amp;(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.ALPHA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.ALPHA,this.width,this.height,0,e.ALPHA,e.UNSIGNED_BYTE,this.data))};var k=function e(r,n){this.workerPool=r,this.actors=[],this.currentActor=0,this.id=t.uniqueId();for(var i=this.workerPool.acquire(this.id),a=0;a&lt;i.length;a++){var o=new e.Actor(i[a],n,this.id);o.name=&quot;Worker &quot;+a,this.actors.push(o)}};function M(e,r,n){var i=function(i,a){if(i)return n(i);if(a){var o=t.pick(t.extend(a,e),[&quot;tiles&quot;,&quot;minzoom&quot;,&quot;maxzoom&quot;,&quot;attribution&quot;,&quot;mapbox_logo&quot;,&quot;bounds&quot;,&quot;scheme&quot;,&quot;tileSize&quot;,&quot;encoding&quot;]);a.vector_layers&amp;&amp;(o.vectorLayers=a.vector_layers,o.vectorLayerIds=o.vectorLayers.map((function(t){return t.id}))),o.tiles=r.canonicalizeTileset(o,e.url),n(null,o)}};return e.url?t.getJSON(r.transformRequest(r.normalizeSourceURL(e.url),t.ResourceType.Source),i):t.browser.frame((function(){return i(null,e)}))}k.prototype.broadcast=function(e,r,n){t.asyncAll(this.actors,(function(t,n){t.send(e,r,n)}),n=n||function(){})},k.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},k.prototype.remove=function(){this.actors.forEach((function(t){t.remove()})),this.actors=[],this.workerPool.release(this.id)},k.Actor=t.Actor;var A=function(e,r,n){this.bounds=t.LngLatBounds.convert(this.validateBounds(e)),this.minzoom=r||0,this.maxzoom=n||24};A.prototype.validateBounds=function(t){return Array.isArray(t)&amp;&amp;4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]},A.prototype.contains=function(e){var r=Math.pow(2,e.z),n=Math.floor(t.mercatorXfromLng(this.bounds.getWest())*r),i=Math.floor(t.mercatorYfromLat(this.bounds.getNorth())*r),a=Math.ceil(t.mercatorXfromLng(this.bounds.getEast())*r),o=Math.ceil(t.mercatorYfromLat(this.bounds.getSouth())*r);return e.x&gt;=n&amp;&amp;e.x&lt;a&amp;&amp;e.y&gt;=i&amp;&amp;e.y&lt;o};var S=function(e){function r(r,n,i,a){if(e.call(this),this.id=r,this.dispatcher=i,this.type=&quot;vector&quot;,this.minzoom=0,this.maxzoom=22,this.scheme=&quot;xyz&quot;,this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,t.extend(this,t.pick(n,[&quot;url&quot;,&quot;scheme&quot;,&quot;tileSize&quot;,&quot;promoteId&quot;])),this._options=t.extend({type:&quot;vector&quot;},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error(&quot;vector tile sources must have a tileSize of 512&quot;);this.setEventedParent(a)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._tileJSONRequest=M(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(t.extend(e,n),n.bounds&amp;&amp;(e.tileBounds=new A(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles,e.map._requestManager._customAccessToken),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken,e.map._requestManager._customAccessToken),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme)),i={request:this.map._requestManager.transformRequest(n,t.ResourceType.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function a(n,i){return delete e.request,e.aborted?r(null):n&amp;&amp;404!==n.status?r(n):(i&amp;&amp;i.resourceTiming&amp;&amp;(e.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&amp;&amp;i&amp;&amp;e.setExpiryData(i),e.loadVectorData(i,this.map.painter),t.cacheEntryPossiblyAdded(this.dispatcher),r(null),void(e.reloadCallback&amp;&amp;(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}i.request.collectResourceTiming=this._collectResourceTiming,e.actor&amp;&amp;&quot;expired&quot;!==e.state?&quot;loading&quot;===e.state?e.reloadCallback=r:e.request=e.actor.send(&quot;reloadTile&quot;,i,a.bind(this)):(e.actor=this.dispatcher.getActor(),e.request=e.actor.send(&quot;loadTile&quot;,i,a.bind(this)))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.actor&amp;&amp;t.actor.send(&quot;abortTile&quot;,{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.unloadTile=function(t){t.unloadVectorData(),t.actor&amp;&amp;t.actor.send(&quot;removeTile&quot;,{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.hasTransition=function(){return!1},r}(t.Evented),E=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.dispatcher=i,this.setEventedParent(a),this.type=&quot;raster&quot;,this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme=&quot;xyz&quot;,this.tileSize=512,this._loaded=!1,this._options=t.extend({type:&quot;raster&quot;},n),t.extend(this,t.pick(n,[&quot;url&quot;,&quot;scheme&quot;,&quot;tileSize&quot;]))}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._tileJSONRequest=M(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(t.extend(e,n),n.bounds&amp;&amp;(e.tileBounds=new A(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.loadTile=function(e,r){var n=this,i=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);e.request=t.getImage(this.map._requestManager.transformRequest(i,t.ResourceType.Tile),(function(i,a){if(delete e.request,e.aborted)e.state=&quot;unloaded&quot;,r(null);else if(i)e.state=&quot;errored&quot;,r(i);else if(a){n.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(a),delete a.cacheControl,delete a.expires;var o=n.map.painter.context,s=o.gl;e.texture=n.map.painter.getTileTexture(a.width),e.texture?e.texture.update(a,{useMipmap:!0}):(e.texture=new t.Texture(o,a,s.RGBA,{useMipmap:!0}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),o.extTextureFilterAnisotropic&amp;&amp;s.texParameterf(s.TEXTURE_2D,o.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,o.extTextureFilterAnisotropicMax)),e.state=&quot;loaded&quot;,t.cacheEntryPossiblyAdded(n.dispatcher),r(null)}}))},r.prototype.abortTile=function(t,e){t.request&amp;&amp;(t.request.cancel(),delete t.request),e()},r.prototype.unloadTile=function(t,e){t.texture&amp;&amp;this.map.painter.saveTileTexture(t.texture),e()},r.prototype.hasTransition=function(){return!1},r}(t.Evented),C=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),this.type=&quot;raster-dem&quot;,this.maxzoom=22,this._options=t.extend({type:&quot;raster-dem&quot;},n),this.encoding=n.encoding||&quot;mapbox&quot;}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.serialize=function(){return{type:&quot;raster-dem&quot;,url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);function i(t,n){t&amp;&amp;(e.state=&quot;errored&quot;,r(t)),n&amp;&amp;(e.dem=n,e.needsHillshadePrepare=!0,e.state=&quot;loaded&quot;,r(null))}e.request=t.getImage(this.map._requestManager.transformRequest(n,t.ResourceType.Tile),function(n,a){if(delete e.request,e.aborted)e.state=&quot;unloaded&quot;,r(null);else if(n)e.state=&quot;errored&quot;,r(n);else if(a){this.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(a),delete a.cacheControl,delete a.expires;var o=t.window.ImageBitmap&amp;&amp;a instanceof t.window.ImageBitmap&amp;&amp;t.offscreenCanvasSupported()?a:t.browser.getImageData(a,1),s={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:o,encoding:this.encoding};e.actor&amp;&amp;&quot;expired&quot;!==e.state||(e.actor=this.dispatcher.getActor(),e.actor.send(&quot;loadDEMTile&quot;,s,i.bind(this)))}}.bind(this)),e.neighboringTiles=this._getNeighboringTiles(e.tileID)},r.prototype._getNeighboringTiles=function(e){var r=e.canonical,n=Math.pow(2,r.z),i=(r.x-1+n)%n,a=0===r.x?e.wrap-1:e.wrap,o=(r.x+1+n)%n,s=r.x+1===n?e.wrap+1:e.wrap,l={};return l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y).key]={backfilled:!1},r.y&gt;0&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y-1).key]={backfilled:!1}),r.y+1&lt;n&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y+1).key]={backfilled:!1}),l},r.prototype.unloadTile=function(t){t.demTexture&amp;&amp;this.map.painter.saveTileTexture(t.demTexture),t.fbo&amp;&amp;(t.fbo.destroy(),delete t.fbo),t.dem&amp;&amp;delete t.dem,delete t.neighboringTiles,t.state=&quot;unloaded&quot;,t.actor&amp;&amp;t.actor.send(&quot;removeDEMTile&quot;,{uid:t.uid,source:this.id})},r}(E),L=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.type=&quot;geojson&quot;,this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=i.getActor(),this.setEventedParent(a),this._data=n.data,this._options=t.extend({},n),this._collectResourceTiming=n.collectResourceTiming,this._resourceTiming=[],void 0!==n.maxzoom&amp;&amp;(this.maxzoom=n.maxzoom),n.type&amp;&amp;(this.type=n.type),n.attribution&amp;&amp;(this.attribution=n.attribution),this.promoteId=n.promoteId;var o=t.EXTENT/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*o,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*o,extent:t.EXTENT,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?Math.min(n.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,extent:t.EXTENT,radius:(n.clusterRadius||50)*o,log:!1,generateId:n.generateId||!1},clusterProperties:n.clusterProperties},n.workerOptions)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._updateWorkerData((function(r){if(r)e.fire(new t.ErrorEvent(r));else{var n={dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;};e._collectResourceTiming&amp;&amp;e._resourceTiming&amp;&amp;e._resourceTiming.length&gt;0&amp;&amp;(n.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event(&quot;data&quot;,n))}}))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setData=function(e){var r=this;return this._data=e,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._updateWorkerData((function(e){if(e)r.fire(new t.ErrorEvent(e));else{var n={dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;};r._collectResourceTiming&amp;&amp;r._resourceTiming&amp;&amp;r._resourceTiming.length&gt;0&amp;&amp;(n.resourceTiming=r._resourceTiming,r._resourceTiming=[]),r.fire(new t.Event(&quot;data&quot;,n))}})),this},r.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send(&quot;geojson.getClusterExpansionZoom&quot;,{clusterId:t,source:this.id},e),this},r.prototype.getClusterChildren=function(t,e){return this.actor.send(&quot;geojson.getClusterChildren&quot;,{clusterId:t,source:this.id},e),this},r.prototype.getClusterLeaves=function(t,e,r,n){return this.actor.send(&quot;geojson.getClusterLeaves&quot;,{source:this.id,clusterId:t,limit:e,offset:r},n),this},r.prototype._updateWorkerData=function(e){var r=this;this._loaded=!1;var n=t.extend({},this.workerOptions),i=this._data;&quot;string&quot;==typeof i?(n.request=this.map._requestManager.transformRequest(t.browser.resolveURL(i),t.ResourceType.Source),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(i),this.actor.send(this.type+&quot;.loadData&quot;,n,(function(t,i){r._removed||i&amp;&amp;i.abandoned||(r._loaded=!0,i&amp;&amp;i.resourceTiming&amp;&amp;i.resourceTiming[r.id]&amp;&amp;(r._resourceTiming=i.resourceTiming[r.id].slice(0)),r.actor.send(r.type+&quot;.coalesce&quot;,{source:n.source},null),e(t))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.loadTile=function(e,r){var n=this,i=e.actor?&quot;reloadTile&quot;:&quot;loadTile&quot;;e.actor=this.actor,e.request=this.actor.send(i,{type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(function(t,a){return delete e.request,e.unloadVectorData(),e.aborted?r(null):t?r(t):(e.loadVectorData(a,n.map.painter,&quot;reloadTile&quot;===i),r(null))}))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.aborted=!0},r.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send(&quot;removeTile&quot;,{uid:t.uid,type:this.type,source:this.id})},r.prototype.onRemove=function(){this._removed=!0,this.actor.send(&quot;removeSource&quot;,{type:this.type,source:this.id})},r.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},r.prototype.hasTransition=function(){return!1},r}(t.Evented),I=t.createLayout([{name:&quot;a_pos&quot;,type:&quot;Int16&quot;,components:2},{name:&quot;a_texture_pos&quot;,type:&quot;Int16&quot;,components:2}]),P=function(e){function r(t,r,n,i){e.call(this),this.id=t,this.dispatcher=n,this.coordinates=r.coordinates,this.type=&quot;image&quot;,this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=r}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(e,r){var n=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(function(i,a){n._loaded=!0,i?n.fire(new t.ErrorEvent(i)):a&amp;&amp;(n.image=a,e&amp;&amp;(n.coordinates=e),r&amp;&amp;r(),n._finishLoading())}))},r.prototype.loaded=function(){return this._loaded},r.prototype.updateImage=function(t){var e=this;return this.image&amp;&amp;t.url?(this.options.url=t.url,this.load(t.coordinates,(function(){e.texture=null})),this):this},r.prototype._finishLoading=function(){this.map&amp;&amp;(this.setCoordinates(this.coordinates),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setCoordinates=function(e){var r=this;this.coordinates=e;var n=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){for(var r=1/0,n=1/0,i=-1/0,a=-1/0,o=0,s=e;o&lt;s.length;o+=1){var l=s[o];r=Math.min(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.x),a=Math.max(a,l.y)}var c=Math.max(i-r,a-n),u=Math.max(0,Math.floor(-Math.log(c)/Math.LN2)),f=Math.pow(2,u);return new t.CanonicalTileID(u,Math.floor((r+i)/2*f),Math.floor((n+a)/2*f))}(n),this.minzoom=this.maxzoom=this.tileID.z;var i=n.map((function(t){return r.tileID.getTilePoint(t)._round()}));return this._boundsArray=new t.StructArrayLayout4i8,this._boundsArray.emplaceBack(i[0].x,i[0].y,0,0),this._boundsArray.emplaceBack(i[1].x,i[1].y,t.EXTENT,0),this._boundsArray.emplaceBack(i[3].x,i[3].y,0,t.EXTENT),this._boundsArray.emplaceBack(i[2].x,i[2].y,t.EXTENT,t.EXTENT),this.boundsBuffer&amp;&amp;(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})),this},r.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&amp;&amp;this.image){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new t.Texture(e,this.image,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];&quot;loaded&quot;!==i.state&amp;&amp;(i.state=&quot;loaded&quot;,i.texture=this.texture)}}},r.prototype.loadTile=function(t,e){this.tileID&amp;&amp;this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state=&quot;errored&quot;,e(null))},r.prototype.serialize=function(){return{type:&quot;image&quot;,url:this.options.url,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return!1},r}(t.Evented),z=function(e){function r(t,r,n,i){e.call(this,t,r,n,i),this.roundZoom=!0,this.type=&quot;video&quot;,this.options=r}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1;var r=this.options;this.urls=[];for(var n=0,i=r.urls;n&lt;i.length;n+=1)this.urls.push(this.map._requestManager.transformRequest(i[n],t.ResourceType.Source).url);t.getVideo(this.urls,(function(r,n){e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(e.video=n,e.video.loop=!0,e.video.addEventListener(&quot;playing&quot;,(function(){e.map.triggerRepaint()})),e.map&amp;&amp;e.video.play(),e._finishLoading())}))},r.prototype.pause=function(){this.video&amp;&amp;this.video.pause()},r.prototype.play=function(){this.video&amp;&amp;this.video.play()},r.prototype.seek=function(e){if(this.video){var r=this.video.seekable;e&lt;r.start(0)||e&gt;r.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+this.id,null,&quot;Playback for this video can be set only between the &quot;+r.start(0)+&quot; and &quot;+r.end(0)+&quot;-second mark.&quot;))):this.video.currentTime=e}},r.prototype.getVideo=function(){return this.video},r.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&amp;&amp;(this.video.play(),this.setCoordinates(this.coordinates)))},r.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState&lt;2)){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];&quot;loaded&quot;!==i.state&amp;&amp;(i.state=&quot;loaded&quot;,i.texture=this.texture)}}},r.prototype.serialize=function(){return{type:&quot;video&quot;,urls:this.urls,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this.video&amp;&amp;!this.video.paused},r}(P),O=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),n.coordinates?Array.isArray(n.coordinates)&amp;&amp;4===n.coordinates.length&amp;&amp;!n.coordinates.some((function(t){return!Array.isArray(t)||2!==t.length||t.some((function(t){return&quot;number&quot;!=typeof t}))}))||this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'&quot;coordinates&quot; property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'missing required property &quot;coordinates&quot;'))),n.animate&amp;&amp;&quot;boolean&quot;!=typeof n.animate&amp;&amp;this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'optional &quot;animate&quot; property must be a boolean value'))),n.canvas?&quot;string&quot;==typeof n.canvas||n.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'&quot;canvas&quot; must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'missing required property &quot;canvas&quot;'))),this.options=n,this.animate=void 0===n.animate||n.animate}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error(&quot;Canvas dimensions cannot be less than or equal to zero.&quot;))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&amp;&amp;(this.prepare(),this._playing=!1)},this._finishLoading())},r.prototype.getCanvas=function(){return this.canvas},r.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&amp;&amp;this.animate&amp;&amp;this.play()},r.prototype.onRemove=function(){this.pause()},r.prototype.prepare=function(){var e=!1;if(this.canvas.width!==this.width&amp;&amp;(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&amp;&amp;(this.height=this.canvas.height,e=!0),!this._hasInvalidDimensions()&amp;&amp;0!==Object.keys(this.tiles).length){var r=this.map.painter.context,n=r.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=r.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&amp;&amp;this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(r,this.canvas,n.RGBA,{premultiply:!0}),this.tiles){var a=this.tiles[i];&quot;loaded&quot;!==a.state&amp;&amp;(a.state=&quot;loaded&quot;,a.texture=this.texture)}}},r.prototype.serialize=function(){return{type:&quot;canvas&quot;,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this._playing},r.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];t&lt;e.length;t+=1){var r=e[t];if(isNaN(r)||r&lt;=0)return!0}return!1},r}(P),D={vector:S,raster:E,&quot;raster-dem&quot;:C,geojson:L,video:z,image:P,canvas:O};function R(e,r){var n=t.identity([]);return t.translate(n,n,[1,1,0]),t.scale(n,n,[.5*e.width,.5*e.height,1]),t.multiply(n,n,e.calculatePosMatrix(r.toUnwrapped()))}function F(t,e,r,n,i,a){var o=function(t,e,r){if(t)for(var n=0,i=t;n&lt;i.length;n+=1){var a=e[i[n]];if(a&amp;&amp;a.source===r&amp;&amp;&quot;fill-extrusion&quot;===a.type)return!0}else for(var o in e){var s=e[o];if(s.source===r&amp;&amp;&quot;fill-extrusion&quot;===s.type)return!0}return!1}(i&amp;&amp;i.layers,e,t.id),s=a.maxPitchScaleFactor(),l=t.tilesIn(n,s,o);l.sort(B);for(var c=[],u=0,f=l;u&lt;f.length;u+=1){var h=f[u];c.push({wrappedTileID:h.tileID.wrapped().key,queryResults:h.tile.queryRenderedFeatures(e,r,t._state,h.queryGeometry,h.cameraQueryGeometry,h.scale,i,a,s,R(t.transform,h.tileID))})}var p=function(t){for(var e={},r={},n=0,i=t;n&lt;i.length;n+=1){var a=i[n],o=a.queryResults,s=a.wrappedTileID,l=r[s]=r[s]||{};for(var c in o)for(var u=o[c],f=l[c]=l[c]||{},h=e[c]=e[c]||[],p=0,d=u;p&lt;d.length;p+=1){var g=d[p];f[g.featureIndex]||(f[g.featureIndex]=!0,h.push(g))}}return e}(c);for(var d in p)p[d].forEach((function(e){var r=e.feature,n=t.getFeatureState(r.layer[&quot;source-layer&quot;],r.id);r.source=r.layer.source,r.layer[&quot;source-layer&quot;]&amp;&amp;(r.sourceLayer=r.layer[&quot;source-layer&quot;]),r.state=n}));return p}function B(t,e){var r=t.tileID,n=e.tileID;return r.overscaledZ-n.overscaledZ||r.canonical.y-n.canonical.y||r.wrap-n.wrap||r.canonical.x-n.canonical.x}var N=function(t,e){this.max=t,this.onRemove=e,this.reset()};N.prototype.reset=function(){for(var t in this.data)for(var e=0,r=this.data[t];e&lt;r.length;e+=1){var n=r[e];n.timeout&amp;&amp;clearTimeout(n.timeout),this.onRemove(n.value)}return this.data={},this.order=[],this},N.prototype.add=function(t,e,r){var n=this,i=t.wrapped().key;void 0===this.data[i]&amp;&amp;(this.data[i]=[]);var a={value:e,timeout:void 0};if(void 0!==r&amp;&amp;(a.timeout=setTimeout((function(){n.remove(t,a)}),r)),this.data[i].push(a),this.order.push(i),this.order.length&gt;this.max){var o=this._getAndRemoveByKey(this.order[0]);o&amp;&amp;this.onRemove(o)}return this},N.prototype.has=function(t){return t.wrapped().key in this.data},N.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},N.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&amp;&amp;clearTimeout(e.timeout),0===this.data[t].length&amp;&amp;delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},N.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},N.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},N.prototype.remove=function(t,e){if(!this.has(t))return this;var r=t.wrapped().key,n=void 0===e?0:this.data[r].indexOf(e),i=this.data[r][n];return this.data[r].splice(n,1),i.timeout&amp;&amp;clearTimeout(i.timeout),0===this.data[r].length&amp;&amp;delete this.data[r],this.onRemove(i.value),this.order.splice(this.order.indexOf(r),1),this},N.prototype.setMaxSize=function(t){for(this.max=t;this.order.length&gt;this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&amp;&amp;this.onRemove(e)}return this},N.prototype.filter=function(t){var e=[];for(var r in this.data)for(var n=0,i=this.data[r];n&lt;i.length;n+=1){var a=i[n];t(a.value)||e.push(a)}for(var o=0,s=e;o&lt;s.length;o+=1){var l=s[o];this.remove(l.value.tileID,l)}};var j=function(t,e,r){this.context=t;var n=t.gl;this.buffer=n.createBuffer(),this.dynamicDraw=Boolean(r),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),n.bufferData(n.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};j.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},j.prototype.updateData=function(t){var e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)},j.prototype.destroy=function(){this.buffer&amp;&amp;(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var U={Int8:&quot;BYTE&quot;,Uint8:&quot;UNSIGNED_BYTE&quot;,Int16:&quot;SHORT&quot;,Uint16:&quot;UNSIGNED_SHORT&quot;,Int32:&quot;INT&quot;,Uint32:&quot;UNSIGNED_INT&quot;,Float32:&quot;FLOAT&quot;},V=function(t,e,r,n){this.length=e.length,this.attributes=r,this.itemSize=e.bytesPerElement,this.dynamicDraw=n,this.context=t;var i=t.gl;this.buffer=i.createBuffer(),t.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};V.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},V.prototype.updateData=function(t){var e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)},V.prototype.enableAttributes=function(t,e){for(var r=0;r&lt;this.attributes.length;r++){var n=e.attributes[this.attributes[r].name];void 0!==n&amp;&amp;t.enableVertexAttribArray(n)}},V.prototype.setVertexAttribPointers=function(t,e,r){for(var n=0;n&lt;this.attributes.length;n++){var i=this.attributes[n],a=e.attributes[i.name];void 0!==a&amp;&amp;t.vertexAttribPointer(a,i.components,t[U[i.type]],!1,this.itemSize,i.offset+this.itemSize*(r||0))}},V.prototype.destroy=function(){this.buffer&amp;&amp;(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var q=function(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};q.prototype.get=function(){return this.current},q.prototype.set=function(t){},q.prototype.getDefault=function(){return this.default},q.prototype.setDefault=function(){this.set(this.default)};var H=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),G=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 1},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearDepth(t),this.current=t,this.dirty=!1)},e}(q),Y=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearStencil(t),this.current=t,this.dirty=!1)},e}(q),W=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return[!0,!0,!0,!0]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),X=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthMask(t),this.current=t,this.dirty=!1)},e}(q),Z=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 255},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.stencilMask(t),this.current=t,this.dirty=!1)},e}(q),J=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},e.prototype.set=function(t){var e=this.current;(t.func!==e.func||t.ref!==e.ref||t.mask!==e.mask||this.dirty)&amp;&amp;(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)},e}(q),K=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||this.dirty)&amp;&amp;(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)},e}(q),Q=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}},e}(q),$=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return[0,1]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),tt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}},e}(q),et=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.LESS},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthFunc(t),this.current=t,this.dirty=!1)},e}(q),rt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}},e}(q),nt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.ONE,t.ZERO]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),it=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),at=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.FUNC_ADD},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.blendEquation(t),this.current=t,this.dirty=!1)},e}(q),ot=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}},e}(q),st=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.BACK},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.cullFace(t),this.current=t,this.dirty=!1)},e}(q),lt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.CCW},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.frontFace(t),this.current=t,this.dirty=!1)},e}(q),ct=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.useProgram(t),this.current=t,this.dirty=!1)},e}(q),ut=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.TEXTURE0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.activeTexture(t),this.current=t,this.dirty=!1)},e}(q),ft=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),ht=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}},e}(q),pt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(q),dt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}},e}(q),gt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}},e}(q),mt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1},e}(q),vt=function(t){function e(e){t.call(this,e),this.vao=e.extVertexArrayObject}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){this.vao&amp;&amp;(t!==this.current||this.dirty)&amp;&amp;(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1)},e}(q),yt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 4},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}},e}(q),xt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),bt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),_t=function(t){function e(e,r){t.call(this,e),this.context=e,this.parent=r}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e}(q),wt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.setDirty=function(){this.dirty=!0},e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},e}(_t),Tt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(_t),kt=function(t,e,r,n){this.context=t,this.width=e,this.height=r;var i=this.framebuffer=t.gl.createFramebuffer();this.colorAttachment=new wt(t,i),n&amp;&amp;(this.depthAttachment=new Tt(t,i))};kt.prototype.destroy=function(){var t=this.context.gl,e=this.colorAttachment.get();if(e&amp;&amp;t.deleteTexture(e),this.depthAttachment){var r=this.depthAttachment.get();r&amp;&amp;t.deleteRenderbuffer(r)}t.deleteFramebuffer(this.framebuffer)};var Mt=function(t,e,r){this.func=t,this.mask=e,this.range=r};Mt.ReadOnly=!1,Mt.ReadWrite=!0,Mt.disabled=new Mt(519,Mt.ReadOnly,[0,1]);var At=function(t,e,r,n,i,a){this.test=t,this.ref=e,this.mask=r,this.fail=n,this.depthFail=i,this.pass=a};At.disabled=new At({func:519,mask:0},0,0,7680,7680,7680);var St=function(t,e,r){this.blendFunction=t,this.blendColor=e,this.mask=r};St.disabled=new St(St.Replace=[1,0],t.Color.transparent,[!1,!1,!1,!1]),St.unblended=new St(St.Replace,t.Color.transparent,[!0,!0,!0,!0]),St.alphaBlended=new St([1,771],t.Color.transparent,[!0,!0,!0,!0]);var Et=function(t,e,r){this.enable=t,this.mode=e,this.frontFace=r};Et.disabled=new Et(!1,1029,2305),Et.backCCW=new Et(!0,1029,2305);var Ct=function(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension(&quot;OES_vertex_array_object&quot;),this.clearColor=new H(this),this.clearDepth=new G(this),this.clearStencil=new Y(this),this.colorMask=new W(this),this.depthMask=new X(this),this.stencilMask=new Z(this),this.stencilFunc=new J(this),this.stencilOp=new K(this),this.stencilTest=new Q(this),this.depthRange=new $(this),this.depthTest=new tt(this),this.depthFunc=new et(this),this.blend=new rt(this),this.blendFunc=new nt(this),this.blendColor=new it(this),this.blendEquation=new at(this),this.cullFace=new ot(this),this.cullFaceSide=new st(this),this.frontFace=new lt(this),this.program=new ct(this),this.activeTexture=new ut(this),this.viewport=new ft(this),this.bindFramebuffer=new ht(this),this.bindRenderbuffer=new pt(this),this.bindTexture=new dt(this),this.bindVertexBuffer=new gt(this),this.bindElementBuffer=new mt(this),this.bindVertexArrayOES=this.extVertexArrayObject&amp;&amp;new vt(this),this.pixelStoreUnpack=new yt(this),this.pixelStoreUnpackPremultiplyAlpha=new xt(this),this.pixelStoreUnpackFlipY=new bt(this),this.extTextureFilterAnisotropic=t.getExtension(&quot;EXT_texture_filter_anisotropic&quot;)||t.getExtension(&quot;MOZ_EXT_texture_filter_anisotropic&quot;)||t.getExtension(&quot;WEBKIT_EXT_texture_filter_anisotropic&quot;),this.extTextureFilterAnisotropic&amp;&amp;(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension(&quot;OES_texture_half_float&quot;),this.extTextureHalfFloat&amp;&amp;(t.getExtension(&quot;OES_texture_half_float_linear&quot;),this.extRenderToTextureHalfFloat=t.getExtension(&quot;EXT_color_buffer_half_float&quot;)),this.extTimerQuery=t.getExtension(&quot;EXT_disjoint_timer_query&quot;)};Ct.prototype.setDefault=function(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()},Ct.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&amp;&amp;(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},Ct.prototype.createIndexBuffer=function(t,e){return new j(this,t,e)},Ct.prototype.createVertexBuffer=function(t,e,r){return new V(this,t,e,r)},Ct.prototype.createRenderbuffer=function(t,e,r){var n=this.gl,i=n.createRenderbuffer();return this.bindRenderbuffer.set(i),n.renderbufferStorage(n.RENDERBUFFER,t,e,r),this.bindRenderbuffer.set(null),i},Ct.prototype.createFramebuffer=function(t,e,r){return new kt(this,t,e,r)},Ct.prototype.clear=function(t){var e=t.color,r=t.depth,n=this.gl,i=0;e&amp;&amp;(i|=n.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==r&amp;&amp;(i|=n.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(r),this.depthMask.set(!0)),n.clear(i)},Ct.prototype.setCullFace=function(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))},Ct.prototype.setDepthMode=function(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)},Ct.prototype.setStencilMode=function(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)},Ct.prototype.setColorMode=function(e){t.deepEqual(e.blendFunction,St.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)},Ct.prototype.unbindVAO=function(){this.extVertexArrayObject&amp;&amp;this.bindVertexArrayOES.set(null)};var Lt=function(e){function r(r,n,i){var a=this;e.call(this),this.id=r,this.dispatcher=i,this.on(&quot;data&quot;,(function(t){&quot;source&quot;===t.dataType&amp;&amp;&quot;metadata&quot;===t.sourceDataType&amp;&amp;(a._sourceLoaded=!0),a._sourceLoaded&amp;&amp;!a._paused&amp;&amp;&quot;source&quot;===t.dataType&amp;&amp;&quot;content&quot;===t.sourceDataType&amp;&amp;(a.reload(),a.transform&amp;&amp;a.update(a.transform))})),this.on(&quot;error&quot;,(function(){a._sourceErrored=!0})),this._source=function(e,r,n,i){var a=new D[r.type](e,r,n,i);if(a.id!==e)throw new Error(&quot;Expected Source id to be &quot;+e+&quot; instead of &quot;+a.id);return t.bindAll([&quot;load&quot;,&quot;abort&quot;,&quot;unload&quot;,&quot;serialize&quot;,&quot;prepare&quot;],a),a}(r,n,i,this),this._tiles={},this._cache=new N(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new t.SourceFeatureState}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.onAdd=function(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&amp;&amp;this._source.onAdd&amp;&amp;this._source.onAdd(t)},r.prototype.onRemove=function(t){this._source&amp;&amp;this._source.onRemove&amp;&amp;this._source.onRemove(t)},r.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var t in this._tiles){var e=this._tiles[t];if(&quot;loaded&quot;!==e.state&amp;&amp;&quot;errored&quot;!==e.state)return!1}return!0},r.prototype.getSource=function(){return this._source},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){if(this._paused){var t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&amp;&amp;this.reload(),this.transform&amp;&amp;this.update(this.transform)}},r.prototype._loadTile=function(t,e){return this._source.loadTile(t,e)},r.prototype._unloadTile=function(t){if(this._source.unloadTile)return this._source.unloadTile(t,(function(){}))},r.prototype._abortTile=function(t){if(this._source.abortTile)return this._source.abortTile(t,(function(){}))},r.prototype.serialize=function(){return this._source.serialize()},r.prototype.prepare=function(t){for(var e in this._source.prepare&amp;&amp;this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var r=this._tiles[e];r.upload(t),r.prepare(this.map.style.imageManager)}},r.prototype.getIds=function(){return t.values(this._tiles).map((function(t){return t.tileID})).sort(It).map((function(t){return t.key}))},r.prototype.getRenderableIds=function(e){var r=this,n=[];for(var i in this._tiles)this._isIdRenderable(i,e)&amp;&amp;n.push(this._tiles[i]);return e?n.sort((function(e,n){var i=e.tileID,a=n.tileID,o=new t.Point(i.canonical.x,i.canonical.y)._rotate(r.transform.angle),s=new t.Point(a.canonical.x,a.canonical.y)._rotate(r.transform.angle);return i.overscaledZ-a.overscaledZ||s.y-o.y||s.x-o.x})).map((function(t){return t.tileID.key})):n.map((function(t){return t.tileID})).sort(It).map((function(t){return t.key}))},r.prototype.hasRenderableParent=function(t){var e=this.findLoadedParent(t,0);return!!e&amp;&amp;this._isIdRenderable(e.tileID.key)},r.prototype._isIdRenderable=function(t,e){return this._tiles[t]&amp;&amp;this._tiles[t].hasData()&amp;&amp;!this._coveredTiles[t]&amp;&amp;(e||!this._tiles[t].holdingForFade())},r.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var t in this._cache.reset(),this._tiles)&quot;errored&quot;!==this._tiles[t].state&amp;&amp;this._reloadTile(t,&quot;reloading&quot;)},r.prototype._reloadTile=function(t,e){var r=this._tiles[t];r&amp;&amp;(&quot;loading&quot;!==r.state&amp;&amp;(r.state=e),this._loadTile(r,this._tileLoaded.bind(this,r,t,e)))},r.prototype._tileLoaded=function(e,r,n,i){if(i)return e.state=&quot;errored&quot;,void(404!==i.status?this._source.fire(new t.ErrorEvent(i,{tile:e})):this.update(this.transform));e.timeAdded=t.browser.now(),&quot;expired&quot;===n&amp;&amp;(e.refreshedUponExpiration=!0),this._setTileReloadTimer(r,e),&quot;raster-dem&quot;===this.getSource().type&amp;&amp;e.dem&amp;&amp;this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,tile:e,coord:e.tileID}))},r.prototype._backfillDEM=function(t){for(var e=this.getRenderableIds(),r=0;r&lt;e.length;r++){var n=e[r];if(t.neighboringTiles&amp;&amp;t.neighboringTiles[n]){var i=this.getTileByID(n);a(t,i),a(i,t)}}function a(t,e){t.needsHillshadePrepare=!0;var r=e.tileID.canonical.x-t.tileID.canonical.x,n=e.tileID.canonical.y-t.tileID.canonical.y,i=Math.pow(2,t.tileID.canonical.z),a=e.tileID.key;0===r&amp;&amp;0===n||Math.abs(n)&gt;1||(Math.abs(r)&gt;1&amp;&amp;(1===Math.abs(r+i)?r+=i:1===Math.abs(r-i)&amp;&amp;(r-=i)),e.dem&amp;&amp;t.dem&amp;&amp;(t.dem.backfillBorder(e.dem,r,n),t.neighboringTiles&amp;&amp;t.neighboringTiles[a]&amp;&amp;(t.neighboringTiles[a].backfilled=!0)))}},r.prototype.getTile=function(t){return this.getTileByID(t.key)},r.prototype.getTileByID=function(t){return this._tiles[t]},r.prototype._retainLoadedChildren=function(t,e,r,n){for(var i in this._tiles){var a=this._tiles[i];if(!(n[i]||!a.hasData()||a.tileID.overscaledZ&lt;=e||a.tileID.overscaledZ&gt;r)){for(var o=a.tileID;a&amp;&amp;a.tileID.overscaledZ&gt;e+1;){var s=a.tileID.scaledTo(a.tileID.overscaledZ-1);(a=this._tiles[s.key])&amp;&amp;a.hasData()&amp;&amp;(o=s)}for(var l=o;l.overscaledZ&gt;e;)if(t[(l=l.scaledTo(l.overscaledZ-1)).key]){n[o.key]=o;break}}}},r.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var r=this._loadedParentTiles[t.key];return r&amp;&amp;r.tileID.overscaledZ&gt;=e?r:null}for(var n=t.overscaledZ-1;n&gt;=e;n--){var i=t.scaledTo(n),a=this._getLoadedTile(i);if(a)return a}},r.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&amp;&amp;e.hasData()?e:this._cache.getByKey(t.wrapped().key)},r.prototype.updateCacheSize=function(t){var e=Math.ceil(t.width/this._source.tileSize)+1,r=Math.ceil(t.height/this._source.tileSize)+1,n=Math.floor(e*r*5),i=&quot;number&quot;==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,n):n;this._cache.setMaxSize(i)},r.prototype.handleWrapJump=function(t){var e=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);if(this._prevLng=t,e){var r={};for(var n in this._tiles){var i=this._tiles[n];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+e),r[i.tileID.key]=i}for(var a in this._tiles=r,this._timers)clearTimeout(this._timers[a]),delete this._timers[a];for(var o in this._tiles)this._setTileReloadTimer(o,this._tiles[o])}},r.prototype.update=function(e){var n=this;if(this.transform=e,this._sourceLoaded&amp;&amp;!this._paused){var i;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)})):(i=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&amp;&amp;(i=i.filter((function(t){return n._source.hasTile(t)})))):i=[];var a=e.coveringZoomLevel(this._source),o=Math.max(a-r.maxOverzooming,this._source.minzoom),s=Math.max(a+r.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(i,a);if(Pt(this._source.type)){for(var c={},u={},f=0,h=Object.keys(l);f&lt;h.length;f+=1){var p=h[f],d=l[p],g=this._tiles[p];if(g&amp;&amp;!(g.fadeEndTime&amp;&amp;g.fadeEndTime&lt;=t.browser.now())){var m=this.findLoadedParent(d,o);m&amp;&amp;(this._addTile(m.tileID),c[m.tileID.key]=m.tileID),u[p]=d}}for(var v in this._retainLoadedChildren(u,a,s,l),c)l[v]||(this._coveredTiles[v]=!0,l[v]=c[v])}for(var y in l)this._tiles[y].clearFadeHold();for(var x=0,b=t.keysDifference(this._tiles,l);x&lt;b.length;x+=1){var _=b[x],w=this._tiles[_];w.hasSymbolBuckets&amp;&amp;!w.holdingForFade()?w.setHoldDuration(this.map._fadeDuration):w.hasSymbolBuckets&amp;&amp;!w.symbolFadeFinished()||this._removeTile(_)}this._updateLoadedParentTileCache()}},r.prototype.releaseSymbolFadeTiles=function(){for(var t in this._tiles)this._tiles[t].holdingForFade()&amp;&amp;this._removeTile(t)},r.prototype._updateRetainedTiles=function(t,e){for(var n={},i={},a=Math.max(e-r.maxOverzooming,this._source.minzoom),o=Math.max(e+r.maxUnderzooming,this._source.minzoom),s={},l=0,c=t;l&lt;c.length;l+=1){var u=c[l],f=this._addTile(u);n[u.key]=u,f.hasData()||e&lt;this._source.maxzoom&amp;&amp;(s[u.key]=u)}this._retainLoadedChildren(s,e,o,n);for(var h=0,p=t;h&lt;p.length;h+=1){var d=p[h],g=this._tiles[d.key];if(!g.hasData()){if(e+1&gt;this._source.maxzoom){var m=d.children(this._source.maxzoom)[0],v=this.getTile(m);if(v&amp;&amp;v.hasData()){n[m.key]=m;continue}}else{var y=d.children(this._source.maxzoom);if(n[y[0].key]&amp;&amp;n[y[1].key]&amp;&amp;n[y[2].key]&amp;&amp;n[y[3].key])continue}for(var x=g.wasRequested(),b=d.overscaledZ-1;b&gt;=a;--b){var _=d.scaledTo(b);if(i[_.key])break;if(i[_.key]=!0,!(g=this.getTile(_))&amp;&amp;x&amp;&amp;(g=this._addTile(_)),g&amp;&amp;(n[_.key]=_,x=g.wasRequested(),g.hasData()))break}}}return n},r.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],r=void 0,n=this._tiles[t].tileID;n.overscaledZ&gt;0;){if(n.key in this._loadedParentTiles){r=this._loadedParentTiles[n.key];break}e.push(n.key);var i=n.scaledTo(n.overscaledZ-1);if(r=this._getLoadedTile(i))break;n=i}for(var a=0,o=e;a&lt;o.length;a+=1)this._loadedParentTiles[o[a]]=r}},r.prototype._addTile=function(e){var r=this._tiles[e.key];if(r)return r;(r=this._cache.getAndRemove(e))&amp;&amp;(this._setTileReloadTimer(e.key,r),r.tileID=e,this._state.initializeTileState(r,this.map?this.map.painter:null),this._cacheTimers[e.key]&amp;&amp;(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,r)));var n=Boolean(r);return n||(r=new t.Tile(e,this._source.tileSize*e.overscaleFactor()),this._loadTile(r,this._tileLoaded.bind(this,r,e.key,r.state))),r?(r.uses++,this._tiles[e.key]=r,n||this._source.fire(new t.Event(&quot;dataloading&quot;,{tile:r,coord:r.tileID,dataType:&quot;source&quot;})),r):null},r.prototype._setTileReloadTimer=function(t,e){var r=this;t in this._timers&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]);var n=e.getExpiryTimeout();n&amp;&amp;(this._timers[t]=setTimeout((function(){r._reloadTile(t,&quot;expired&quot;),delete r._timers[t]}),n))},r.prototype._removeTile=function(t){var e=this._tiles[t];e&amp;&amp;(e.uses--,delete this._tiles[t],this._timers[t]&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses&gt;0||(e.hasData()&amp;&amp;&quot;reloading&quot;!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},r.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},r.prototype.tilesIn=function(e,r,n){var i=this,a=[],o=this.transform;if(!o)return a;for(var s=n?o.getCameraQueryGeometry(e):e,l=e.map((function(t){return o.pointCoordinate(t)})),c=s.map((function(t){return o.pointCoordinate(t)})),u=this.getIds(),f=1/0,h=1/0,p=-1/0,d=-1/0,g=0,m=c;g&lt;m.length;g+=1){var v=m[g];f=Math.min(f,v.x),h=Math.min(h,v.y),p=Math.max(p,v.x),d=Math.max(d,v.y)}for(var y=function(e){var n=i._tiles[u[e]];if(!n.holdingForFade()){var s=n.tileID,g=Math.pow(2,o.zoom-n.tileID.overscaledZ),m=r*n.queryPadding*t.EXTENT/n.tileSize/g,v=[s.getTilePoint(new t.MercatorCoordinate(f,h)),s.getTilePoint(new t.MercatorCoordinate(p,d))];if(v[0].x-m&lt;t.EXTENT&amp;&amp;v[0].y-m&lt;t.EXTENT&amp;&amp;v[1].x+m&gt;=0&amp;&amp;v[1].y+m&gt;=0){var y=l.map((function(t){return s.getTilePoint(t)})),x=c.map((function(t){return s.getTilePoint(t)}));a.push({tile:n,tileID:s,queryGeometry:y,cameraQueryGeometry:x,scale:g})}}},x=0;x&lt;u.length;x++)y(x);return a},r.prototype.getVisibleCoordinates=function(t){for(var e=this,r=this.getRenderableIds(t).map((function(t){return e._tiles[t].tileID})),n=0,i=r;n&lt;i.length;n+=1){var a=i[n];a.posMatrix=this.transform.calculatePosMatrix(a.toUnwrapped())}return r},r.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(Pt(this._source.type))for(var e in this._tiles){var r=this._tiles[e];if(void 0!==r.fadeEndTime&amp;&amp;r.fadeEndTime&gt;=t.browser.now())return!0}return!1},r.prototype.setFeatureState=function(t,e,r){this._state.updateState(t=t||&quot;_geojsonTileLayer&quot;,e,r)},r.prototype.removeFeatureState=function(t,e,r){this._state.removeFeatureState(t=t||&quot;_geojsonTileLayer&quot;,e,r)},r.prototype.getFeatureState=function(t,e){return this._state.getState(t=t||&quot;_geojsonTileLayer&quot;,e)},r.prototype.setDependencies=function(t,e,r){var n=this._tiles[t];n&amp;&amp;n.setDependencies(e,r)},r.prototype.reloadTilesForDependencies=function(t,e){for(var r in this._tiles)this._tiles[r].hasDependency(t,e)&amp;&amp;this._reloadTile(r,&quot;reloading&quot;);this._cache.filter((function(r){return!r.hasDependency(t,e)}))},r}(t.Evented);function It(t,e){var r=Math.abs(2*t.wrap)-+(t.wrap&lt;0),n=Math.abs(2*e.wrap)-+(e.wrap&lt;0);return t.overscaledZ-e.overscaledZ||n-r||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function Pt(t){return&quot;raster&quot;===t||&quot;image&quot;===t||&quot;video&quot;===t}function zt(){return new t.window.Worker(Yi.workerUrl)}Lt.maxOverzooming=10,Lt.maxUnderzooming=3;var Ot=&quot;mapboxgl_preloaded_worker_pool&quot;,Dt=function(){this.active={}};Dt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length&lt;Dt.workerCount;)this.workers.push(new zt);return this.active[t]=!0,this.workers.slice()},Dt.prototype.release=function(t){delete this.active[t],0===this.numActive()&amp;&amp;(this.workers.forEach((function(t){t.terminate()})),this.workers=null)},Dt.prototype.isPreloaded=function(){return!!this.active[Ot]},Dt.prototype.numActive=function(){return Object.keys(this.active).length};var Rt,Ft=Math.floor(t.browser.hardwareConcurrency/2);function Bt(){return Rt||(Rt=new Dt),Rt}function Nt(e,r){var n={};for(var i in e)&quot;ref&quot;!==i&amp;&amp;(n[i]=e[i]);return t.refProperties.forEach((function(t){t in r&amp;&amp;(n[t]=r[t])})),n}function jt(t){t=t.slice();for(var e=Object.create(null),r=0;r&lt;t.length;r++)e[t[r].id]=t[r];for(var n=0;n&lt;t.length;n++)&quot;ref&quot;in t[n]&amp;&amp;(t[n]=Nt(t[n],e[t[n].ref]));return t}Dt.workerCount=Math.max(Math.min(Ft,6),1);var Ut={setStyle:&quot;setStyle&quot;,addLayer:&quot;addLayer&quot;,removeLayer:&quot;removeLayer&quot;,setPaintProperty:&quot;setPaintProperty&quot;,setLayoutProperty:&quot;setLayoutProperty&quot;,setFilter:&quot;setFilter&quot;,addSource:&quot;addSource&quot;,removeSource:&quot;removeSource&quot;,setGeoJSONSourceData:&quot;setGeoJSONSourceData&quot;,setLayerZoomRange:&quot;setLayerZoomRange&quot;,setLayerProperty:&quot;setLayerProperty&quot;,setCenter:&quot;setCenter&quot;,setZoom:&quot;setZoom&quot;,setBearing:&quot;setBearing&quot;,setPitch:&quot;setPitch&quot;,setSprite:&quot;setSprite&quot;,setGlyphs:&quot;setGlyphs&quot;,setTransition:&quot;setTransition&quot;,setLight:&quot;setLight&quot;};function Vt(t,e,r){r.push({command:Ut.addSource,args:[t,e[t]]})}function qt(t,e,r){e.push({command:Ut.removeSource,args:[t]}),r[t]=!0}function Ht(t,e,r,n){qt(t,r,n),Vt(t,e,r)}function Gt(e,r,n){var i;for(i in e[n])if(e[n].hasOwnProperty(i)&amp;&amp;&quot;data&quot;!==i&amp;&amp;!t.deepEqual(e[n][i],r[n][i]))return!1;for(i in r[n])if(r[n].hasOwnProperty(i)&amp;&amp;&quot;data&quot;!==i&amp;&amp;!t.deepEqual(e[n][i],r[n][i]))return!1;return!0}function Yt(e,r,n,i,a,o){var s;for(s in r=r||{},e=e||{})e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}));for(s in r)r.hasOwnProperty(s)&amp;&amp;!e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}))}function Wt(t){return t.id}function Xt(t,e){return t[e.id]=e,t}var Zt=function(t,e){this.reset(t,e)};Zt.prototype.reset=function(t,e){this.points=t||[],this._distances=[0];for(var r=1;r&lt;this.points.length;r++)this._distances[r]=this._distances[r-1]+this.points[r].dist(this.points[r-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(e||0,.5*this.length),this.paddedLength=this.length-2*this.padding},Zt.prototype.lerp=function(e){if(1===this.points.length)return this.points[0];e=t.clamp(e,0,1);for(var r=1,n=this._distances[r],i=e*this.paddedLength+this.padding;n&lt;i&amp;&amp;r&lt;this._distances.length;)n=this._distances[++r];var a=r-1,o=this._distances[a],s=n-o,l=s&gt;0?(i-o)/s:0;return this.points[a].mult(1-l).add(this.points[r].mult(l))};var Jt=function(t,e,r){var n=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(e/r);for(var a=0;a&lt;this.xCellCount*this.yCellCount;a++)n.push([]),i.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0};function Kt(e,r,n,i,a){var o=t.create();return r?(t.scale(o,o,[1/a,1/a,1]),n||t.rotateZ(o,o,i.angle)):t.multiply(o,i.labelPlaneMatrix,e),o}function Qt(e,r,n,i,a){if(r){var o=t.clone(e);return t.scale(o,o,[a,a,1]),n||t.rotateZ(o,o,-i.angle),o}return i.glCoordMatrix}function $t(e,r){var n=[e.x,e.y,0,1];ue(n,n,r);var i=n[3];return{point:new t.Point(n[0]/i,n[1]/i),signedDistanceFromCamera:i}}function te(t,e){return.5+t/e*.5}function ee(t,e){var r=t[0]/t[3],n=t[1]/t[3];return r&gt;=-e[0]&amp;&amp;r&lt;=e[0]&amp;&amp;n&gt;=-e[1]&amp;&amp;n&lt;=e[1]}function re(e,r,n,i,a,o,s,l){var c=i?e.textSizeData:e.iconSizeData,u=t.evaluateSizeForZoom(c,n.transform.zoom),f=[256/n.width*2+1,256/n.height*2+1],h=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;h.clear();for(var p=e.lineVertexArray,d=i?e.text.placedSymbolArray:e.icon.placedSymbolArray,g=n.transform.width/n.transform.height,m=!1,v=0;v&lt;d.length;v++){var y=d.get(v);if(y.hidden||y.writingMode===t.WritingMode.vertical&amp;&amp;!m)ce(y.numGlyphs,h);else{m=!1;var x=[y.anchorX,y.anchorY,0,1];if(t.transformMat4(x,x,r),ee(x,f)){var b=te(n.transform.cameraToCenterDistance,x[3]),_=t.evaluateSizeForFeature(c,u,y),w=s?_/b:_*b,T=new t.Point(y.anchorX,y.anchorY),k=$t(T,a).point,M={},A=ae(y,w,!1,l,r,a,o,e.glyphOffsetArray,p,h,k,T,M,g);m=A.useVertical,(A.notEnoughRoom||m||A.needsFlipping&amp;&amp;ae(y,w,!0,l,r,a,o,e.glyphOffsetArray,p,h,k,T,M,g).notEnoughRoom)&amp;&amp;ce(y.numGlyphs,h)}else ce(y.numGlyphs,h)}}i?e.text.dynamicLayoutVertexBuffer.updateData(h):e.icon.dynamicLayoutVertexBuffer.updateData(h)}function ne(t,e,r,n,i,a,o,s,l,c,u){var f=s.glyphStartIndex+s.numGlyphs,h=s.lineStartIndex,p=s.lineStartIndex+s.lineLength,d=e.getoffsetX(s.glyphStartIndex),g=e.getoffsetX(f-1),m=se(t*d,r,n,i,a,o,s.segment,h,p,l,c,u);if(!m)return null;var v=se(t*g,r,n,i,a,o,s.segment,h,p,l,c,u);return v?{first:m,last:v}:null}function ie(e,r,n,i){return e===t.WritingMode.horizontal&amp;&amp;Math.abs(n.y-r.y)&gt;Math.abs(n.x-r.x)*i?{useVertical:!0}:(e===t.WritingMode.vertical?r.y&lt;n.y:r.x&gt;n.x)?{needsFlipping:!0}:null}function ae(e,r,n,i,a,o,s,l,c,u,f,h,p,d){var g,m=r/24,v=e.lineOffsetX*m,y=e.lineOffsetY*m;if(e.numGlyphs&gt;1){var x=e.glyphStartIndex+e.numGlyphs,b=e.lineStartIndex,_=e.lineStartIndex+e.lineLength,w=ne(m,l,v,y,n,f,h,e,c,o,p);if(!w)return{notEnoughRoom:!0};var T=$t(w.first.point,s).point,k=$t(w.last.point,s).point;if(i&amp;&amp;!n){var M=ie(e.writingMode,T,k,d);if(M)return M}g=[w.first];for(var A=e.glyphStartIndex+1;A&lt;x-1;A++)g.push(se(m*l.getoffsetX(A),v,y,n,f,h,e.segment,b,_,c,o,p));g.push(w.last)}else{if(i&amp;&amp;!n){var S=$t(h,a).point,E=e.lineStartIndex+e.segment+1,C=new t.Point(c.getx(E),c.gety(E)),L=$t(C,a),I=L.signedDistanceFromCamera&gt;0?L.point:oe(h,C,S,1,a),P=ie(e.writingMode,S,I,d);if(P)return P}var z=se(m*l.getoffsetX(e.glyphStartIndex),v,y,n,f,h,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,c,o,p);if(!z)return{notEnoughRoom:!0};g=[z]}for(var O=0,D=g;O&lt;D.length;O+=1){var R=D[O];t.addDynamicAttributes(u,R.point,R.angle)}return{}}function oe(t,e,r,n,i){var a=$t(t.add(t.sub(e)._unit()),i).point,o=r.sub(a);return r.add(o._mult(n/o.mag()))}function se(e,r,n,i,a,o,s,l,c,u,f,h){var p=i?e-r:e+r,d=p&gt;0?1:-1,g=0;i&amp;&amp;(d*=-1,g=Math.PI),d&lt;0&amp;&amp;(g+=Math.PI);for(var m=d&gt;0?l+s:l+s+1,v=a,y=a,x=0,b=0,_=Math.abs(p),w=[];x+b&lt;=_;){if((m+=d)&lt;l||m&gt;=c)return null;if(y=v,w.push(v),void 0===(v=h[m])){var T=new t.Point(u.getx(m),u.gety(m)),k=$t(T,f);if(k.signedDistanceFromCamera&gt;0)v=h[m]=k.point;else{var M=m-d;v=oe(0===x?o:new t.Point(u.getx(M),u.gety(M)),T,y,_-x+1,f)}}x+=b,b=y.dist(v)}var A=(_-x)/b,S=v.sub(y),E=S.mult(A)._add(y);E._add(S._unit()._perp()._mult(n*d));var C=g+Math.atan2(v.y-y.y,v.x-y.x);return w.push(E),{point:E,angle:C,path:w}}Jt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Jt.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},Jt.prototype.insertCircle=function(t,e,r,n){this._forEachCell(e-n,r-n,e+n,r+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(r),this.circles.push(n)},Jt.prototype._insertBoxCell=function(t,e,r,n,i,a){this.boxCells[i].push(a)},Jt.prototype._insertCircleCell=function(t,e,r,n,i,a){this.circleCells[i].push(a)},Jt.prototype._query=function(t,e,r,n,i,a){if(r&lt;0||t&gt;this.width||n&lt;0||e&gt;this.height)return!i&amp;&amp;[];var o=[];if(t&lt;=0&amp;&amp;e&lt;=0&amp;&amp;this.width&lt;=r&amp;&amp;this.height&lt;=n){if(i)return!0;for(var s=0;s&lt;this.boxKeys.length;s++)o.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var l=0;l&lt;this.circleKeys.length;l++){var c=this.circles[3*l],u=this.circles[3*l+1],f=this.circles[3*l+2];o.push({key:this.circleKeys[l],x1:c-f,y1:u-f,x2:c+f,y2:u+f})}return a?o.filter(a):o}return this._forEachCell(t,e,r,n,this._queryCell,o,{hitTest:i,seenUids:{box:{},circle:{}}},a),i?o.length&gt;0:o},Jt.prototype._queryCircle=function(t,e,r,n,i){var a=t-r,o=t+r,s=e-r,l=e+r;if(o&lt;0||a&gt;this.width||l&lt;0||s&gt;this.height)return!n&amp;&amp;[];var c=[];return this._forEachCell(a,s,o,l,this._queryCellCircle,c,{hitTest:n,circle:{x:t,y:e,radius:r},seenUids:{box:{},circle:{}}},i),n?c.length&gt;0:c},Jt.prototype.query=function(t,e,r,n,i){return this._query(t,e,r,n,!1,i)},Jt.prototype.hitTest=function(t,e,r,n,i){return this._query(t,e,r,n,!0,i)},Jt.prototype.hitTestCircle=function(t,e,r,n){return this._queryCircle(t,e,r,!0,n)},Jt.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=o.seenUids,c=this.boxCells[i];if(null!==c)for(var u=this.bboxes,f=0,h=c;f&lt;h.length;f+=1){var p=h[f];if(!l.box[p]){l.box[p]=!0;var d=4*p;if(t&lt;=u[d+2]&amp;&amp;e&lt;=u[d+3]&amp;&amp;r&gt;=u[d+0]&amp;&amp;n&gt;=u[d+1]&amp;&amp;(!s||s(this.boxKeys[p]))){if(o.hitTest)return a.push(!0),!0;a.push({key:this.boxKeys[p],x1:u[d],y1:u[d+1],x2:u[d+2],y2:u[d+3]})}}}var g=this.circleCells[i];if(null!==g)for(var m=this.circles,v=0,y=g;v&lt;y.length;v+=1){var x=y[v];if(!l.circle[x]){l.circle[x]=!0;var b=3*x;if(this._circleAndRectCollide(m[b],m[b+1],m[b+2],t,e,r,n)&amp;&amp;(!s||s(this.circleKeys[x]))){if(o.hitTest)return a.push(!0),!0;var _=m[b],w=m[b+1],T=m[b+2];a.push({key:this.circleKeys[x],x1:_-T,y1:w-T,x2:_+T,y2:w+T})}}}},Jt.prototype._queryCellCircle=function(t,e,r,n,i,a,o,s){var l=o.circle,c=o.seenUids,u=this.boxCells[i];if(null!==u)for(var f=this.bboxes,h=0,p=u;h&lt;p.length;h+=1){var d=p[h];if(!c.box[d]){c.box[d]=!0;var g=4*d;if(this._circleAndRectCollide(l.x,l.y,l.radius,f[g+0],f[g+1],f[g+2],f[g+3])&amp;&amp;(!s||s(this.boxKeys[d])))return a.push(!0),!0}}var m=this.circleCells[i];if(null!==m)for(var v=this.circles,y=0,x=m;y&lt;x.length;y+=1){var b=x[y];if(!c.circle[b]){c.circle[b]=!0;var _=3*b;if(this._circlesCollide(v[_],v[_+1],v[_+2],l.x,l.y,l.radius)&amp;&amp;(!s||s(this.circleKeys[b])))return a.push(!0),!0}}},Jt.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToXCellCoord(t),c=this._convertToYCellCoord(e),u=this._convertToXCellCoord(r),f=this._convertToYCellCoord(n),h=l;h&lt;=u;h++)for(var p=c;p&lt;=f;p++)if(i.call(this,t,e,r,n,this.xCellCount*p+h,a,o,s))return},Jt.prototype._convertToXCellCoord=function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))},Jt.prototype._convertToYCellCoord=function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))},Jt.prototype._circlesCollide=function(t,e,r,n,i,a){var o=n-t,s=i-e,l=r+a;return l*l&gt;o*o+s*s},Jt.prototype._circleAndRectCollide=function(t,e,r,n,i,a,o){var s=(a-n)/2,l=Math.abs(t-(n+s));if(l&gt;s+r)return!1;var c=(o-i)/2,u=Math.abs(e-(i+c));if(u&gt;c+r)return!1;if(l&lt;=s||u&lt;=c)return!0;var f=l-s,h=u-c;return f*f+h*h&lt;=r*r};var le=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ce(t,e){for(var r=0;r&lt;t;r++){var n=e.length;e.resize(n+4),e.float32.set(le,3*n)}}function ue(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[4]*i+r[12],t[1]=r[1]*n+r[5]*i+r[13],t[3]=r[3]*n+r[7]*i+r[15],t}var fe=function(t,e,r){void 0===e&amp;&amp;(e=new Jt(t.width+200,t.height+200,25)),void 0===r&amp;&amp;(r=new Jt(t.width+200,t.height+200,25)),this.transform=t,this.grid=e,this.ignoredGrid=r,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200};function he(e,r,n){return r*(t.EXTENT/(e.tileSize*Math.pow(2,n-e.tileID.overscaledZ)))}fe.prototype.placeCollisionBox=function(t,e,r,n,i){var a=this.projectAndGetPerspectiveRatio(n,t.anchorPointX,t.anchorPointY),o=r*a.perspectiveRatio,s=t.x1*o+a.point.x,l=t.y1*o+a.point.y,c=t.x2*o+a.point.x,u=t.y2*o+a.point.y;return!this.isInsideGrid(s,l,c,u)||!e&amp;&amp;this.grid.hitTest(s,l,c,u,i)?{box:[],offscreen:!1}:{box:[s,l,c,u],offscreen:this.isOffscreen(s,l,c,u)}},fe.prototype.placeCollisionCircles=function(e,r,n,i,a,o,s,l,c,u,f,h,p){var d=[],g=new t.Point(r.anchorX,r.anchorY),m=$t(g,o),v=te(this.transform.cameraToCenterDistance,m.signedDistanceFromCamera),y=(u?a/v:a*v)/t.ONE_EM,x=$t(g,s).point,b=ne(y,i,r.lineOffsetX*y,r.lineOffsetY*y,!1,x,g,r,n,s,{}),_=!1,w=!1,T=!0;if(b){for(var k=.5*h*v+p,M=new t.Point(-100,-100),A=new t.Point(this.screenRightBoundary,this.screenBottomBoundary),S=new Zt,E=b.first,C=b.last,L=[],I=E.path.length-1;I&gt;=1;I--)L.push(E.path[I]);for(var P=1;P&lt;C.path.length;P++)L.push(C.path[P]);var z=2.5*k;if(l){var O=L.map((function(t){return $t(t,l)}));L=O.some((function(t){return t.signedDistanceFromCamera&lt;=0}))?[]:O.map((function(t){return t.point}))}var D=[];if(L.length&gt;0){for(var R=L[0].clone(),F=L[0].clone(),B=1;B&lt;L.length;B++)R.x=Math.min(R.x,L[B].x),R.y=Math.min(R.y,L[B].y),F.x=Math.max(F.x,L[B].x),F.y=Math.max(F.y,L[B].y);D=R.x&gt;=M.x&amp;&amp;F.x&lt;=A.x&amp;&amp;R.y&gt;=M.y&amp;&amp;F.y&lt;=A.y?[L]:F.x&lt;M.x||R.x&gt;A.x||F.y&lt;M.y||R.y&gt;A.y?[]:t.clipLine([L],M.x,M.y,A.x,A.y)}for(var N=0,j=D;N&lt;j.length;N+=1){var U;S.reset(j[N],.25*k),U=S.length&lt;=.5*k?1:Math.ceil(S.paddedLength/z)+1;for(var V=0;V&lt;U;V++){var q=V/Math.max(U-1,1),H=S.lerp(q),G=H.x+100,Y=H.y+100;d.push(G,Y,k,0);var W=G-k,X=Y-k,Z=G+k,J=Y+k;if(T=T&amp;&amp;this.isOffscreen(W,X,Z,J),w=w||this.isInsideGrid(W,X,Z,J),!e&amp;&amp;this.grid.hitTestCircle(G,Y,k,f)&amp;&amp;(_=!0,!c))return{circles:[],offscreen:!1,collisionDetected:_}}}}return{circles:!c&amp;&amp;_||!w?[]:d,offscreen:T,collisionDetected:_}},fe.prototype.queryRenderedSymbols=function(e){if(0===e.length||0===this.grid.keysLength()&amp;&amp;0===this.ignoredGrid.keysLength())return{};for(var r=[],n=1/0,i=1/0,a=-1/0,o=-1/0,s=0,l=e;s&lt;l.length;s+=1){var c=l[s],u=new t.Point(c.x+100,c.y+100);n=Math.min(n,u.x),i=Math.min(i,u.y),a=Math.max(a,u.x),o=Math.max(o,u.y),r.push(u)}for(var f={},h={},p=0,d=this.grid.query(n,i,a,o).concat(this.ignoredGrid.query(n,i,a,o));p&lt;d.length;p+=1){var g=d[p],m=g.key;if(void 0===f[m.bucketInstanceId]&amp;&amp;(f[m.bucketInstanceId]={}),!f[m.bucketInstanceId][m.featureIndex]){var v=[new t.Point(g.x1,g.y1),new t.Point(g.x2,g.y1),new t.Point(g.x2,g.y2),new t.Point(g.x1,g.y2)];t.polygonIntersectsPolygon(r,v)&amp;&amp;(f[m.bucketInstanceId][m.featureIndex]=!0,void 0===h[m.bucketInstanceId]&amp;&amp;(h[m.bucketInstanceId]=[]),h[m.bucketInstanceId].push(m.featureIndex))}}return h},fe.prototype.insertCollisionBox=function(t,e,r,n,i){(e?this.ignoredGrid:this.grid).insert({bucketInstanceId:r,featureIndex:n,collisionGroupID:i},t[0],t[1],t[2],t[3])},fe.prototype.insertCollisionCircles=function(t,e,r,n,i){for(var a=e?this.ignoredGrid:this.grid,o={bucketInstanceId:r,featureIndex:n,collisionGroupID:i},s=0;s&lt;t.length;s+=4)a.insertCircle(o,t[s],t[s+1],t[s+2])},fe.prototype.projectAndGetPerspectiveRatio=function(e,r,n){var i=[r,n,0,1];return ue(i,i,e),{point:new t.Point((i[0]/i[3]+1)/2*this.transform.width+100,(-i[1]/i[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/i[3]*.5}},fe.prototype.isOffscreen=function(t,e,r,n){return r&lt;100||t&gt;=this.screenRightBoundary||n&lt;100||e&gt;this.screenBottomBoundary},fe.prototype.isInsideGrid=function(t,e,r,n){return r&gt;=0&amp;&amp;t&lt;this.gridRightBoundary&amp;&amp;n&gt;=0&amp;&amp;e&lt;this.gridBottomBoundary},fe.prototype.getViewportMatrix=function(){var e=t.identity([]);return t.translate(e,e,[-100,-100,0]),e};var pe=function(t,e,r,n){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):n&amp;&amp;r?1:0,this.placed=r};pe.prototype.isHidden=function(){return 0===this.opacity&amp;&amp;!this.placed};var de=function(t,e,r,n,i){this.text=new pe(t?t.text:null,e,r,i),this.icon=new pe(t?t.icon:null,e,n,i)};de.prototype.isHidden=function(){return this.text.isHidden()&amp;&amp;this.icon.isHidden()};var ge=function(t,e,r){this.text=t,this.icon=e,this.skipFade=r},me=function(){this.invProjMatrix=t.create(),this.viewportMatrix=t.create(),this.circles=[]},ve=function(t,e,r,n,i){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=r,this.bucketIndex=n,this.tileID=i},ye=function(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}};function xe(e,r,n,i,a){var o=t.getAnchorAlignment(e),s=-(o.horizontalAlign-.5)*r,l=-(o.verticalAlign-.5)*n,c=t.evaluateVariableOffset(e,i);return new t.Point(s+c[0]*a,l+c[1]*a)}function be(e,r,n,i,a,o){var s=e.x1,l=e.x2,c=e.y1,u=e.y2,f=e.anchorPointX,h=e.anchorPointY,p=new t.Point(r,n);return i&amp;&amp;p._rotate(a?o:-o),{x1:s+p.x,y1:c+p.y,x2:l+p.x,y2:u+p.y,anchorPointX:f,anchorPointY:h}}ye.prototype.get=function(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){var e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:function(t){return t.collisionGroupID===e}}}return this.collisionGroups[t]};var _e=function(t,e,r,n){this.transform=t.clone(),this.collisionIndex=new fe(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new ye(r),this.collisionCircleArrays={},this.prevPlacement=n,n&amp;&amp;(n.prevPlacement=void 0),this.placedOrientations={}};function we(t,e,r,n,i){t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0)}_e.prototype.getBucketParts=function(e,r,n,i){var a=n.getBucket(r),o=n.latestFeatureIndex;if(a&amp;&amp;o&amp;&amp;r.id===a.layerIds[0]){var s=n.collisionBoxArray,l=a.layers[0].layout,c=Math.pow(2,this.transform.zoom-n.tileID.overscaledZ),u=n.tileSize/t.EXTENT,f=this.transform.calculatePosMatrix(n.tileID.toUnwrapped()),h=&quot;map&quot;===l.get(&quot;text-pitch-alignment&quot;),p=&quot;map&quot;===l.get(&quot;text-rotation-alignment&quot;),d=he(n,1,this.transform.zoom),g=Kt(f,h,p,this.transform,d),m=null;if(h){var v=Qt(f,h,p,this.transform,d);m=t.multiply([],this.transform.labelPlaneMatrix,v)}this.retainedQueryData[a.bucketInstanceId]=new ve(a.bucketInstanceId,o,a.sourceLayerIndex,a.index,n.tileID);var y={bucket:a,layout:l,posMatrix:f,textLabelPlaneMatrix:g,labelToScreenMatrix:m,scale:c,textPixelRatio:u,holdingForFade:n.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:t.evaluateSizeForZoom(a.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(a.sourceID)};if(i)for(var x=0,b=a.sortKeyRanges;x&lt;b.length;x+=1){var _=b[x];e.push({sortKey:_.sortKey,symbolInstanceStart:_.symbolInstanceStart,symbolInstanceEnd:_.symbolInstanceEnd,parameters:y})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:a.symbolInstances.length,parameters:y})}},_e.prototype.attemptAnchorPlacement=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d){var g,m=[f.textOffset0,f.textOffset1],v=xe(t,r,n,m,i),y=this.collisionIndex.placeCollisionBox(be(e,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate);if(!d||0!==this.collisionIndex.placeCollisionBox(be(d,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate).box.length)return y.box.length&gt;0?(this.prevPlacement&amp;&amp;this.prevPlacement.variableOffsets[f.crossTileID]&amp;&amp;this.prevPlacement.placements[f.crossTileID]&amp;&amp;this.prevPlacement.placements[f.crossTileID].text&amp;&amp;(g=this.prevPlacement.variableOffsets[f.crossTileID].anchor),this.variableOffsets[f.crossTileID]={textOffset:m,width:r,height:n,anchor:t,textBoxScale:i,prevAnchor:g},this.markUsedJustification(h,t,f,p),h.allowVerticalPlacement&amp;&amp;(this.markUsedOrientation(h,p,f),this.placedOrientations[f.crossTileID]=p),{shift:v,placedGlyphBoxes:y}):void 0},_e.prototype.placeLayerBucketPart=function(e,r,n){var i=this,a=e.parameters,o=a.bucket,s=a.layout,l=a.posMatrix,c=a.textLabelPlaneMatrix,u=a.labelToScreenMatrix,f=a.textPixelRatio,h=a.holdingForFade,p=a.collisionBoxArray,d=a.partiallyEvaluatedTextSize,g=a.collisionGroup,m=s.get(&quot;text-optional&quot;),v=s.get(&quot;icon-optional&quot;),y=s.get(&quot;text-allow-overlap&quot;),x=s.get(&quot;icon-allow-overlap&quot;),b=&quot;map&quot;===s.get(&quot;text-rotation-alignment&quot;),_=&quot;map&quot;===s.get(&quot;text-pitch-alignment&quot;),w=&quot;none&quot;!==s.get(&quot;icon-text-fit&quot;),T=&quot;viewport-y&quot;===s.get(&quot;symbol-z-order&quot;),k=y&amp;&amp;(x||!o.hasIconData()||v),M=x&amp;&amp;(y||!o.hasTextData()||m);!o.collisionArrays&amp;&amp;p&amp;&amp;o.deserializeCollisionBoxes(p);var A=function(e,a){if(!r[e.crossTileID])if(h)i.placements[e.crossTileID]=new ge(!1,!1,!1);else{var p,T=!1,A=!1,S=!0,E=null,C={box:null,offscreen:null},L={box:null,offscreen:null},I=null,P=null,z=0,O=0,D=0;a.textFeatureIndex?z=a.textFeatureIndex:e.useRuntimeCollisionCircles&amp;&amp;(z=e.featureIndex),a.verticalTextFeatureIndex&amp;&amp;(O=a.verticalTextFeatureIndex);var R=a.textBox;if(R){var F=function(r){var n=t.WritingMode.horizontal;if(o.allowVerticalPlacement&amp;&amp;!r&amp;&amp;i.prevPlacement){var a=i.prevPlacement.placedOrientations[e.crossTileID];a&amp;&amp;(i.placedOrientations[e.crossTileID]=a,i.markUsedOrientation(o,n=a,e))}return n},B=function(r,n){if(o.allowVerticalPlacement&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;a.verticalTextBox)for(var i=0,s=o.writingModes;i&lt;s.length&amp;&amp;(s[i]===t.WritingMode.vertical?(C=n(),L=C):C=r(),!(C&amp;&amp;C.box&amp;&amp;C.box.length));i+=1);else C=r()};if(s.get(&quot;text-variable-anchor&quot;)){var N=s.get(&quot;text-variable-anchor&quot;);if(i.prevPlacement&amp;&amp;i.prevPlacement.variableOffsets[e.crossTileID]){var j=i.prevPlacement.variableOffsets[e.crossTileID];N.indexOf(j.anchor)&gt;0&amp;&amp;(N=N.filter((function(t){return t!==j.anchor}))).unshift(j.anchor)}var U=function(t,r,n){for(var a=t.x2-t.x1,s=t.y2-t.y1,c=e.textBoxScale,u=w&amp;&amp;!x?r:null,h={box:[],offscreen:!1},p=y?2*N.length:N.length,d=0;d&lt;p;++d){var m=i.attemptAnchorPlacement(N[d%N.length],t,a,s,c,b,_,f,l,g,d&gt;=N.length,e,o,n,u);if(m&amp;&amp;(h=m.placedGlyphBoxes)&amp;&amp;h.box&amp;&amp;h.box.length){T=!0,E=m.shift;break}}return h};B((function(){return U(R,a.iconBox,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox;return o.allowVerticalPlacement&amp;&amp;!(C&amp;&amp;C.box&amp;&amp;C.box.length)&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;r?U(r,a.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),C&amp;&amp;(T=C.box,S=C.offscreen);var V=F(C&amp;&amp;C.box);if(!T&amp;&amp;i.prevPlacement){var q=i.prevPlacement.variableOffsets[e.crossTileID];q&amp;&amp;(i.variableOffsets[e.crossTileID]=q,i.markUsedJustification(o,q.anchor,e,V))}}else{var H=function(t,r){var n=i.collisionIndex.placeCollisionBox(t,y,f,l,g.predicate);return n&amp;&amp;n.box&amp;&amp;n.box.length&amp;&amp;(i.markUsedOrientation(o,r,e),i.placedOrientations[e.crossTileID]=r),n};B((function(){return H(R,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox;return o.allowVerticalPlacement&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;r?H(r,t.WritingMode.vertical):{box:null,offscreen:null}})),F(C&amp;&amp;C.box&amp;&amp;C.box.length)}}if(T=(p=C)&amp;&amp;p.box&amp;&amp;p.box.length&gt;0,S=p&amp;&amp;p.offscreen,e.useRuntimeCollisionCircles){var G=o.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),Y=t.evaluateSizeForFeature(o.textSizeData,d,G),W=s.get(&quot;text-padding&quot;);I=i.collisionIndex.placeCollisionCircles(y,G,o.lineVertexArray,o.glyphOffsetArray,Y,l,c,u,n,_,g.predicate,e.collisionCircleDiameter,W),T=y||I.circles.length&gt;0&amp;&amp;!I.collisionDetected,S=S&amp;&amp;I.offscreen}if(a.iconFeatureIndex&amp;&amp;(D=a.iconFeatureIndex),a.iconBox){var X=function(t){var e=w&amp;&amp;E?be(t,E.x,E.y,b,_,i.transform.angle):t;return i.collisionIndex.placeCollisionBox(e,x,f,l,g.predicate)};A=L&amp;&amp;L.box&amp;&amp;L.box.length&amp;&amp;a.verticalIconBox?(P=X(a.verticalIconBox)).box.length&gt;0:(P=X(a.iconBox)).box.length&gt;0,S=S&amp;&amp;P.offscreen}var Z=m||0===e.numHorizontalGlyphVertices&amp;&amp;0===e.numVerticalGlyphVertices,J=v||0===e.numIconVertices;if(Z||J?J?Z||(A=A&amp;&amp;T):T=A&amp;&amp;T:A=T=A&amp;&amp;T,T&amp;&amp;p&amp;&amp;p.box&amp;&amp;i.collisionIndex.insertCollisionBox(p.box,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,L&amp;&amp;L.box&amp;&amp;O?O:z,g.ID),A&amp;&amp;P&amp;&amp;i.collisionIndex.insertCollisionBox(P.box,s.get(&quot;icon-ignore-placement&quot;),o.bucketInstanceId,D,g.ID),I&amp;&amp;(T&amp;&amp;i.collisionIndex.insertCollisionCircles(I.circles,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,z,g.ID),n)){var K=o.bucketInstanceId,Q=i.collisionCircleArrays[K];void 0===Q&amp;&amp;(Q=i.collisionCircleArrays[K]=new me);for(var $=0;$&lt;I.circles.length;$+=4)Q.circles.push(I.circles[$+0]),Q.circles.push(I.circles[$+1]),Q.circles.push(I.circles[$+2]),Q.circles.push(I.collisionDetected?1:0)}i.placements[e.crossTileID]=new ge(T||k,A||M,S||o.justReloaded),r[e.crossTileID]=!0}};if(T)for(var S=o.getSortedSymbolIndexes(this.transform.angle),E=S.length-1;E&gt;=0;--E){var C=S[E];A(o.symbolInstances.get(C),o.collisionArrays[C])}else for(var L=e.symbolInstanceStart;L&lt;e.symbolInstanceEnd;L++)A(o.symbolInstances.get(L),o.collisionArrays[L]);if(n&amp;&amp;o.bucketInstanceId in this.collisionCircleArrays){var I=this.collisionCircleArrays[o.bucketInstanceId];t.invert(I.invProjMatrix,l),I.viewportMatrix=this.collisionIndex.getViewportMatrix()}o.justReloaded=!1},_e.prototype.markUsedJustification=function(e,r,n,i){var a;a=i===t.WritingMode.vertical?n.verticalPlacedTextSymbolIndex:{left:n.leftJustifiedTextSymbolIndex,center:n.centerJustifiedTextSymbolIndex,right:n.rightJustifiedTextSymbolIndex}[t.getAnchorJustification(r)];for(var o=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex,n.verticalPlacedTextSymbolIndex];o&lt;s.length;o+=1){var l=s[o];l&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(l).crossTileID=a&gt;=0&amp;&amp;l!==a?0:n.crossTileID)}},_e.prototype.markUsedOrientation=function(e,r,n){for(var i=r===t.WritingMode.horizontal||r===t.WritingMode.horizontalOnly?r:0,a=r===t.WritingMode.vertical?r:0,o=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex];o&lt;s.length;o+=1)e.text.placedSymbolArray.get(s[o]).placedOrientation=i;n.verticalPlacedTextSymbolIndex&amp;&amp;(e.text.placedSymbolArray.get(n.verticalPlacedTextSymbolIndex).placedOrientation=a)},_e.prototype.commit=function(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;var e=this.prevPlacement,r=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;var n=e?e.symbolFadeChange(t):1,i=e?e.opacities:{},a=e?e.variableOffsets:{},o=e?e.placedOrientations:{};for(var s in this.placements){var l=this.placements[s],c=i[s];c?(this.opacities[s]=new de(c,n,l.text,l.icon),r=r||l.text!==c.text.placed||l.icon!==c.icon.placed):(this.opacities[s]=new de(null,n,l.text,l.icon,l.skipFade),r=r||l.text||l.icon)}for(var u in i){var f=i[u];if(!this.opacities[u]){var h=new de(f,n,!1,!1);h.isHidden()||(this.opacities[u]=h,r=r||f.text.placed||f.icon.placed)}}for(var p in a)this.variableOffsets[p]||!this.opacities[p]||this.opacities[p].isHidden()||(this.variableOffsets[p]=a[p]);for(var d in o)this.placedOrientations[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.placedOrientations[d]=o[d]);r?this.lastPlacementChangeTime=t:&quot;number&quot;!=typeof this.lastPlacementChangeTime&amp;&amp;(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)},_e.prototype.updateLayerOpacities=function(t,e){for(var r={},n=0,i=e;n&lt;i.length;n+=1){var a=i[n],o=a.getBucket(t);o&amp;&amp;a.latestFeatureIndex&amp;&amp;t.id===o.layerIds[0]&amp;&amp;this.updateBucketOpacities(o,r,a.collisionBoxArray)}},_e.prototype.updateBucketOpacities=function(e,r,n){var i=this;e.hasTextData()&amp;&amp;e.text.opacityVertexArray.clear(),e.hasIconData()&amp;&amp;e.icon.opacityVertexArray.clear(),e.hasIconCollisionBoxData()&amp;&amp;e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&amp;&amp;e.textCollisionBox.collisionVertexArray.clear();var a=e.layers[0].layout,o=new de(null,0,!1,!1,!0),s=a.get(&quot;text-allow-overlap&quot;),l=a.get(&quot;icon-allow-overlap&quot;),c=a.get(&quot;text-variable-anchor&quot;),u=&quot;map&quot;===a.get(&quot;text-rotation-alignment&quot;),f=&quot;map&quot;===a.get(&quot;text-pitch-alignment&quot;),h=&quot;none&quot;!==a.get(&quot;icon-text-fit&quot;),p=new de(null,0,s&amp;&amp;(l||!e.hasIconData()||a.get(&quot;icon-optional&quot;)),l&amp;&amp;(s||!e.hasTextData()||a.get(&quot;text-optional&quot;)),!0);!e.collisionArrays&amp;&amp;n&amp;&amp;(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&amp;&amp;e.deserializeCollisionBoxes(n);for(var d=function(t,e,r){for(var n=0;n&lt;e/4;n++)t.opacityVertexArray.emplaceBack(r)},g=function(n){var a=e.symbolInstances.get(n),s=a.numHorizontalGlyphVertices,l=a.numVerticalGlyphVertices,g=a.crossTileID,m=i.opacities[g];r[g]?m=o:m||(i.opacities[g]=m=p),r[g]=!0;var v=a.numIconVertices&gt;0,y=i.placedOrientations[a.crossTileID],x=y===t.WritingMode.vertical,b=y===t.WritingMode.horizontal||y===t.WritingMode.horizontalOnly;if(s&gt;0||l&gt;0){var _=Le(m.text);d(e.text,s,x?Ie:_),d(e.text,l,b?Ie:_);var w=m.text.isHidden();[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((function(t){t&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(t).hidden=w||x?1:0)})),a.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).hidden=w||b?1:0);var T=i.variableOffsets[a.crossTileID];T&amp;&amp;i.markUsedJustification(e,T.anchor,a,y);var k=i.placedOrientations[a.crossTileID];k&amp;&amp;(i.markUsedJustification(e,&quot;left&quot;,a,k),i.markUsedOrientation(e,k,a))}if(v){var M=Le(m.icon),A=!(h&amp;&amp;a.verticalPlacedIconSymbolIndex&amp;&amp;x);a.placedIconSymbolIndex&gt;=0&amp;&amp;(d(e.icon,a.numIconVertices,A?M:Ie),e.icon.placedSymbolArray.get(a.placedIconSymbolIndex).hidden=m.icon.isHidden()),a.verticalPlacedIconSymbolIndex&gt;=0&amp;&amp;(d(e.icon,a.numVerticalIconVertices,A?Ie:M),e.icon.placedSymbolArray.get(a.verticalPlacedIconSymbolIndex).hidden=m.icon.isHidden())}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){var S=e.collisionArrays[n];if(S){var E=new t.Point(0,0);if(S.textBox||S.verticalTextBox){var C=!0;if(c){var L=i.variableOffsets[g];L?(E=xe(L.anchor,L.width,L.height,L.textOffset,L.textBoxScale),u&amp;&amp;E._rotate(f?i.transform.angle:-i.transform.angle)):C=!1}S.textBox&amp;&amp;we(e.textCollisionBox.collisionVertexArray,m.text.placed,!C||x,E.x,E.y),S.verticalTextBox&amp;&amp;we(e.textCollisionBox.collisionVertexArray,m.text.placed,!C||b,E.x,E.y)}var I=Boolean(!b&amp;&amp;S.verticalIconBox);S.iconBox&amp;&amp;we(e.iconCollisionBox.collisionVertexArray,m.icon.placed,I,h?E.x:0,h?E.y:0),S.verticalIconBox&amp;&amp;we(e.iconCollisionBox.collisionVertexArray,m.icon.placed,!I,h?E.x:0,h?E.y:0)}}},m=0;m&lt;e.symbolInstances.length;m++)g(m);if(e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&amp;&amp;(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&amp;&amp;e.text.opacityVertexBuffer&amp;&amp;e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&amp;&amp;e.icon.opacityVertexBuffer&amp;&amp;e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&amp;&amp;e.iconCollisionBox.collisionVertexBuffer&amp;&amp;e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&amp;&amp;e.textCollisionBox.collisionVertexBuffer&amp;&amp;e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.bucketInstanceId in this.collisionCircleArrays){var v=this.collisionCircleArrays[e.bucketInstanceId];e.placementInvProjMatrix=v.invProjMatrix,e.placementViewportMatrix=v.viewportMatrix,e.collisionCircleArray=v.circles,delete this.collisionCircleArrays[e.bucketInstanceId]}},_e.prototype.symbolFadeChange=function(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},_e.prototype.zoomAdjustment=function(t){return Math.max(0,(this.transform.zoom-t)/1.5)},_e.prototype.hasTransitions=function(t){return this.stale||t-this.lastPlacementChangeTime&lt;this.fadeDuration},_e.prototype.stillRecent=function(t,e){var r=this.zoomAtLastRecencyCheck===e?1-this.zoomAdjustment(e):1;return this.zoomAtLastRecencyCheck=e,this.commitTime+this.fadeDuration*r&gt;t},_e.prototype.setStale=function(){this.stale=!0};var Te=Math.pow(2,25),ke=Math.pow(2,24),Me=Math.pow(2,17),Ae=Math.pow(2,16),Se=Math.pow(2,9),Ee=Math.pow(2,8),Ce=Math.pow(2,1);function Le(t){if(0===t.opacity&amp;&amp;!t.placed)return 0;if(1===t.opacity&amp;&amp;t.placed)return 4294967295;var e=t.placed?1:0,r=Math.floor(127*t.opacity);return r*Te+e*ke+r*Me+e*Ae+r*Se+e*Ee+r*Ce+e}var Ie=0,Pe=function(t){this._sortAcrossTiles=&quot;viewport-y&quot;!==t.layout.get(&quot;symbol-z-order&quot;)&amp;&amp;void 0!==t.layout.get(&quot;symbol-sort-key&quot;).constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Pe.prototype.continuePlacement=function(t,e,r,n,i){for(var a=this._bucketParts;this._currentTileIndex&lt;t.length;)if(e.getBucketParts(a,n,t[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,i())return!0;for(this._sortAcrossTiles&amp;&amp;(this._sortAcrossTiles=!1,a.sort((function(t,e){return t.sortKey-e.sortKey})));this._currentPartIndex&lt;a.length;)if(e.placeLayerBucketPart(a[this._currentPartIndex],this._seenCrossTileIDs,r),this._currentPartIndex++,i())return!0;return!1};var ze=function(t,e,r,n,i,a,o){this.placement=new _e(t,i,a,o),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=n,this._done=!1};ze.prototype.isDone=function(){return this._done},ze.prototype.continuePlacement=function(e,r,n){for(var i=this,a=t.browser.now(),o=function(){var e=t.browser.now()-a;return!i._forceFullPlacement&amp;&amp;e&gt;2};this._currentPlacementIndex&gt;=0;){var s=r[e[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if(&quot;symbol&quot;===s.type&amp;&amp;(!s.minzoom||s.minzoom&lt;=l)&amp;&amp;(!s.maxzoom||s.maxzoom&gt;l)){if(this._inProgressLayer||(this._inProgressLayer=new Pe(s)),this._inProgressLayer.continuePlacement(n[s.source],this.placement,this._showCollisionBoxes,s,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},ze.prototype.commit=function(t){return this.placement.commit(t),this.placement};var Oe=512/t.EXTENT/2,De=function(t,e,r){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=r;for(var n=0;n&lt;e.length;n++){var i=e.get(n),a=i.key;this.indexedSymbolInstances[a]||(this.indexedSymbolInstances[a]=[]),this.indexedSymbolInstances[a].push({crossTileID:i.crossTileID,coord:this.getScaledCoordinates(i,t)})}};De.prototype.getScaledCoordinates=function(e,r){var n=Oe/Math.pow(2,r.canonical.z-this.tileID.canonical.z);return{x:Math.floor((r.canonical.x*t.EXTENT+e.anchorX)*n),y:Math.floor((r.canonical.y*t.EXTENT+e.anchorY)*n)}},De.prototype.findMatches=function(t,e,r){for(var n=this.tileID.canonical.z&lt;e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z),i=0;i&lt;t.length;i++){var a=t.get(i);if(!a.crossTileID){var o=this.indexedSymbolInstances[a.key];if(o)for(var s=this.getScaledCoordinates(a,e),l=0,c=o;l&lt;c.length;l+=1){var u=c[l];if(Math.abs(u.coord.x-s.x)&lt;=n&amp;&amp;Math.abs(u.coord.y-s.y)&lt;=n&amp;&amp;!r[u.crossTileID]){r[u.crossTileID]=!0,a.crossTileID=u.crossTileID;break}}}}};var Re=function(){this.maxCrossTileID=0};Re.prototype.generate=function(){return++this.maxCrossTileID};var Fe=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};Fe.prototype.handleWrapJump=function(t){var e=Math.round((t-this.lng)/360);if(0!==e)for(var r in this.indexes){var n=this.indexes[r],i={};for(var a in n){var o=n[a];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+e),i[o.tileID.key]=o}this.indexes[r]=i}this.lng=t},Fe.prototype.addBucket=function(t,e,r){if(this.indexes[t.overscaledZ]&amp;&amp;this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(var n=0;n&lt;e.symbolInstances.length;n++)e.symbolInstances.get(n).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});var i=this.usedCrossTileIDs[t.overscaledZ];for(var a in this.indexes){var o=this.indexes[a];if(Number(a)&gt;t.overscaledZ)for(var s in o){var l=o[s];l.tileID.isChildOf(t)&amp;&amp;l.findMatches(e.symbolInstances,t,i)}else{var c=o[t.scaledTo(Number(a)).key];c&amp;&amp;c.findMatches(e.symbolInstances,t,i)}}for(var u=0;u&lt;e.symbolInstances.length;u++){var f=e.symbolInstances.get(u);f.crossTileID||(f.crossTileID=r.generate(),i[f.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&amp;&amp;(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new De(t,e.symbolInstances,e.bucketInstanceId),!0},Fe.prototype.removeBucketCrossTileIDs=function(t,e){for(var r in e.indexedSymbolInstances)for(var n=0,i=e.indexedSymbolInstances[r];n&lt;i.length;n+=1)delete this.usedCrossTileIDs[t][i[n].crossTileID]},Fe.prototype.removeStaleBuckets=function(t){var e=!1;for(var r in this.indexes){var n=this.indexes[r];for(var i in n)t[n[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(r,n[i]),delete n[i],e=!0)}return e};var Be=function(){this.layerIndexes={},this.crossTileIDs=new Re,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};Be.prototype.addLayer=function(t,e,r){var n=this.layerIndexes[t.id];void 0===n&amp;&amp;(n=this.layerIndexes[t.id]=new Fe);var i=!1,a={};n.handleWrapJump(r);for(var o=0,s=e;o&lt;s.length;o+=1){var l=s[o],c=l.getBucket(t);c&amp;&amp;t.id===c.layerIds[0]&amp;&amp;(c.bucketInstanceId||(c.bucketInstanceId=++this.maxBucketInstanceId),n.addBucket(l.tileID,c,this.crossTileIDs)&amp;&amp;(i=!0),a[c.bucketInstanceId]=!0)}return n.removeStaleBuckets(a)&amp;&amp;(i=!0),i},Be.prototype.pruneUnusedLayers=function(t){var e={};for(var r in t.forEach((function(t){e[t]=!0})),this.layerIndexes)e[r]||delete this.layerIndexes[r]};var Ne=function(e,r){return t.emitValidationErrors(e,r&amp;&amp;r.filter((function(t){return&quot;source.canvas&quot;!==t.identifier})))},je=t.pick(Ut,[&quot;addLayer&quot;,&quot;removeLayer&quot;,&quot;setPaintProperty&quot;,&quot;setLayoutProperty&quot;,&quot;setFilter&quot;,&quot;addSource&quot;,&quot;removeSource&quot;,&quot;setLayerZoomRange&quot;,&quot;setLight&quot;,&quot;setTransition&quot;,&quot;setGeoJSONSourceData&quot;]),Ue=t.pick(Ut,[&quot;setCenter&quot;,&quot;setZoom&quot;,&quot;setBearing&quot;,&quot;setPitch&quot;]),Ve=function(){var e={},r=t.styleSpec.$version;for(var n in t.styleSpec.$root){var i,a=t.styleSpec.$root[n];a.required&amp;&amp;null!=(i=&quot;version&quot;===n?r:&quot;array&quot;===a.type?[]:{})&amp;&amp;(e[n]=i)}return e}(),qe=function(e){function r(n,i){var a=this;void 0===i&amp;&amp;(i={}),e.call(this),this.map=n,this.dispatcher=new k(Bt(),this),this.imageManager=new h,this.imageManager.setEventedParent(this),this.glyphManager=new x(n._requestManager,i.localIdeographFontFamily),this.lineAtlas=new T(256,512),this.crossTileSymbolIndex=new Be,this._layers={},this._serializedLayers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast(&quot;setReferrer&quot;,t.getReferrer());var o=this;this._rtlTextPluginCallback=r.registerForPluginStateChange((function(e){o.dispatcher.broadcast(&quot;syncRTLPluginState&quot;,{pluginStatus:e.pluginStatus,pluginURL:e.pluginURL},(function(e,r){if(t.triggerPluginCompletionEvent(e),r&amp;&amp;r.every((function(t){return t})))for(var n in o.sourceCaches)o.sourceCaches[n].reload()}))})),this.on(&quot;data&quot;,(function(t){if(&quot;source&quot;===t.dataType&amp;&amp;&quot;metadata&quot;===t.sourceDataType){var e=a.sourceCaches[t.sourceId];if(e){var r=e.getSource();if(r&amp;&amp;r.vectorLayerIds)for(var n in a._layers){var i=a._layers[n];i.source===r.id&amp;&amp;a._validateLayer(i)}}}}))}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.loadURL=function(e,r){var n=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;}));var i=&quot;boolean&quot;==typeof r.validate?r.validate:!t.isMapboxURL(e);e=this.map._requestManager.normalizeStyleURL(e,r.accessToken);var a=this.map._requestManager.transformRequest(e,t.ResourceType.Style);this._request=t.getJSON(a,(function(e,r){n._request=null,e?n.fire(new t.ErrorEvent(e)):r&amp;&amp;n._load(r,i)}))},r.prototype.loadJSON=function(e,r){var n=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;})),this._request=t.browser.frame((function(){n._request=null,n._load(e,!1!==r.validate)}))},r.prototype.loadEmpty=function(){this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;})),this._load(Ve,!1)},r.prototype._load=function(e,r){if(!r||!Ne(this,t.validateStyle(e))){for(var n in this._loaded=!0,this.stylesheet=e,e.sources)this.addSource(n,e.sources[n],{validate:!1});e.sprite?this._loadSprite(e.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(e.glyphs);var i=jt(this.stylesheet.layers);this._order=i.map((function(t){return t.id})),this._layers={},this._serializedLayers={};for(var a=0,o=i;a&lt;o.length;a+=1){var s=o[a];(s=t.createStyleLayer(s)).setEventedParent(this,{layer:{id:s.id}}),this._layers[s.id]=s,this._serializedLayers[s.id]=s.serialize()}this.dispatcher.broadcast(&quot;setLayers&quot;,this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;})),this.fire(new t.Event(&quot;style.load&quot;))}},r.prototype._loadSprite=function(e){var r=this;this._spriteRequest=function(e,r,n){var i,a,o,s=t.browser.devicePixelRatio&gt;1?&quot;@2x&quot;:&quot;&quot;,l=t.getJSON(r.transformRequest(r.normalizeSpriteURL(e,s,&quot;.json&quot;),t.ResourceType.SpriteJSON),(function(t,e){l=null,o||(o=t,i=e,u())})),c=t.getImage(r.transformRequest(r.normalizeSpriteURL(e,s,&quot;.png&quot;),t.ResourceType.SpriteImage),(function(t,e){c=null,o||(o=t,a=e,u())}));function u(){if(o)n(o);else if(i&amp;&amp;a){var e=t.browser.getImageData(a),r={};for(var s in i){var l=i[s],c=l.width,u=l.height,f=l.x,h=l.y,p=l.sdf,d=l.pixelRatio,g=l.stretchX,m=l.stretchY,v=l.content,y=new t.RGBAImage({width:c,height:u});t.RGBAImage.copy(e,y,{x:f,y:h},{x:0,y:0},{width:c,height:u}),r[s]={data:y,pixelRatio:d,sdf:p,stretchX:g,stretchY:m,content:v}}n(null,r)}}return{cancel:function(){l&amp;&amp;(l.cancel(),l=null),c&amp;&amp;(c.cancel(),c=null)}}}(e,this.map._requestManager,(function(e,n){if(r._spriteRequest=null,e)r.fire(new t.ErrorEvent(e));else if(n)for(var i in n)r.imageManager.addImage(i,n[i]);r.imageManager.setLoaded(!0),r._availableImages=r.imageManager.listImages(),r.dispatcher.broadcast(&quot;setImages&quot;,r._availableImages),r.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))}))},r.prototype._validateLayer=function(e){var r=this.sourceCaches[e.source];if(r){var n=e.sourceLayer;if(n){var i=r.getSource();(&quot;geojson&quot;===i.type||i.vectorLayerIds&amp;&amp;-1===i.vectorLayerIds.indexOf(n))&amp;&amp;this.fire(new t.ErrorEvent(new Error('Source layer &quot;'+n+'&quot; does not exist on source &quot;'+i.id+'&quot; as specified by style layer &quot;'+e.id+'&quot;')))}}},r.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},r.prototype._serializeLayers=function(t){for(var e=[],r=0,n=t;r&lt;n.length;r+=1){var i=this._layers[n[r]];&quot;custom&quot;!==i.type&amp;&amp;e.push(i.serialize())}return e},r.prototype.hasTransitions=function(){if(this.light&amp;&amp;this.light.hasTransition())return!0;for(var t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(var e in this._layers)if(this._layers[e].hasTransition())return!0;return!1},r.prototype._checkLoaded=function(){if(!this._loaded)throw new Error(&quot;Style is not done loading&quot;)},r.prototype.update=function(e){if(this._loaded){var r=this._changed;if(this._changed){var n=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);for(var a in(n.length||i.length)&amp;&amp;this._updateWorkerLayers(n,i),this._updatedSources){var o=this._updatedSources[a];&quot;reload&quot;===o?this._reloadSource(a):&quot;clear&quot;===o&amp;&amp;this._clearSource(a)}for(var s in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[s].updateTransitions(e);this.light.updateTransitions(e),this._resetUpdates()}for(var l in this.sourceCaches)this.sourceCaches[l].used=!1;for(var c=0,u=this._order;c&lt;u.length;c+=1){var f=this._layers[u[c]];f.recalculate(e,this._availableImages),!f.isHidden(e.zoom)&amp;&amp;f.source&amp;&amp;(this.sourceCaches[f.source].used=!0)}this.light.recalculate(e),this.z=e.zoom,r&amp;&amp;this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))}},r.prototype._updateTilesForChangedImages=function(){var t=Object.keys(this._changedImages);if(t.length){for(var e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies([&quot;icons&quot;,&quot;patterns&quot;],t);this._changedImages={}}},r.prototype._updateWorkerLayers=function(t,e){this.dispatcher.broadcast(&quot;updateLayers&quot;,{layers:this._serializeLayers(t),removedIds:e})},r.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}},r.prototype.setState=function(e){var r=this;if(this._checkLoaded(),Ne(this,t.validateStyle(e)))return!1;(e=t.clone$1(e)).layers=jt(e.layers);var n=function(e,r){if(!e)return[{command:Ut.setStyle,args:[r]}];var n=[];try{if(!t.deepEqual(e.version,r.version))return[{command:Ut.setStyle,args:[r]}];t.deepEqual(e.center,r.center)||n.push({command:Ut.setCenter,args:[r.center]}),t.deepEqual(e.zoom,r.zoom)||n.push({command:Ut.setZoom,args:[r.zoom]}),t.deepEqual(e.bearing,r.bearing)||n.push({command:Ut.setBearing,args:[r.bearing]}),t.deepEqual(e.pitch,r.pitch)||n.push({command:Ut.setPitch,args:[r.pitch]}),t.deepEqual(e.sprite,r.sprite)||n.push({command:Ut.setSprite,args:[r.sprite]}),t.deepEqual(e.glyphs,r.glyphs)||n.push({command:Ut.setGlyphs,args:[r.glyphs]}),t.deepEqual(e.transition,r.transition)||n.push({command:Ut.setTransition,args:[r.transition]}),t.deepEqual(e.light,r.light)||n.push({command:Ut.setLight,args:[r.light]});var i={},a=[];!function(e,r,n,i){var a;for(a in r=r||{},e=e||{})e.hasOwnProperty(a)&amp;&amp;(r.hasOwnProperty(a)||qt(a,n,i));for(a in r)r.hasOwnProperty(a)&amp;&amp;(e.hasOwnProperty(a)?t.deepEqual(e[a],r[a])||(&quot;geojson&quot;===e[a].type&amp;&amp;&quot;geojson&quot;===r[a].type&amp;&amp;Gt(e,r,a)?n.push({command:Ut.setGeoJSONSourceData,args:[a,r[a].data]}):Ht(a,r,n,i)):Vt(a,r,n))}(e.sources,r.sources,a,i);var o=[];e.layers&amp;&amp;e.layers.forEach((function(t){i[t.source]?n.push({command:Ut.removeLayer,args:[t.id]}):o.push(t)})),n=n.concat(a),function(e,r,n){r=r||[];var i,a,o,s,l,c,u,f=(e=e||[]).map(Wt),h=r.map(Wt),p=e.reduce(Xt,{}),d=r.reduce(Xt,{}),g=f.slice(),m=Object.create(null);for(i=0,a=0;i&lt;f.length;i++)d.hasOwnProperty(o=f[i])?a++:(n.push({command:Ut.removeLayer,args:[o]}),g.splice(g.indexOf(o,a),1));for(i=0,a=0;i&lt;h.length;i++)g[g.length-1-i]!==(o=h[h.length-1-i])&amp;&amp;(p.hasOwnProperty(o)?(n.push({command:Ut.removeLayer,args:[o]}),g.splice(g.lastIndexOf(o,g.length-a),1)):a++,n.push({command:Ut.addLayer,args:[d[o],c=g[g.length-i]]}),g.splice(g.length-i,0,o),m[o]=!0);for(i=0;i&lt;h.length;i++)if(s=p[o=h[i]],l=d[o],!m[o]&amp;&amp;!t.deepEqual(s,l))if(t.deepEqual(s.source,l.source)&amp;&amp;t.deepEqual(s[&quot;source-layer&quot;],l[&quot;source-layer&quot;])&amp;&amp;t.deepEqual(s.type,l.type)){for(u in Yt(s.layout,l.layout,n,o,null,Ut.setLayoutProperty),Yt(s.paint,l.paint,n,o,null,Ut.setPaintProperty),t.deepEqual(s.filter,l.filter)||n.push({command:Ut.setFilter,args:[o,l.filter]}),t.deepEqual(s.minzoom,l.minzoom)&amp;&amp;t.deepEqual(s.maxzoom,l.maxzoom)||n.push({command:Ut.setLayerZoomRange,args:[o,l.minzoom,l.maxzoom]}),s)s.hasOwnProperty(u)&amp;&amp;&quot;layout&quot;!==u&amp;&amp;&quot;paint&quot;!==u&amp;&amp;&quot;filter&quot;!==u&amp;&amp;&quot;metadata&quot;!==u&amp;&amp;&quot;minzoom&quot;!==u&amp;&amp;&quot;maxzoom&quot;!==u&amp;&amp;(0===u.indexOf(&quot;paint.&quot;)?Yt(s[u],l[u],n,o,u.slice(6),Ut.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:Ut.setLayerProperty,args:[o,u,l[u]]}));for(u in l)l.hasOwnProperty(u)&amp;&amp;!s.hasOwnProperty(u)&amp;&amp;&quot;layout&quot;!==u&amp;&amp;&quot;paint&quot;!==u&amp;&amp;&quot;filter&quot;!==u&amp;&amp;&quot;metadata&quot;!==u&amp;&amp;&quot;minzoom&quot;!==u&amp;&amp;&quot;maxzoom&quot;!==u&amp;&amp;(0===u.indexOf(&quot;paint.&quot;)?Yt(s[u],l[u],n,o,u.slice(6),Ut.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:Ut.setLayerProperty,args:[o,u,l[u]]}))}else n.push({command:Ut.removeLayer,args:[o]}),c=g[g.lastIndexOf(o)+1],n.push({command:Ut.addLayer,args:[l,c]})}(o,r.layers,n)}catch(t){console.warn(&quot;Unable to compute style diff:&quot;,t),n=[{command:Ut.setStyle,args:[r]}]}return n}(this.serialize(),e).filter((function(t){return!(t.command in Ue)}));if(0===n.length)return!1;var i=n.filter((function(t){return!(t.command in je)}));if(i.length&gt;0)throw new Error(&quot;Unimplemented: &quot;+i.map((function(t){return t.command})).join(&quot;, &quot;)+&quot;.&quot;);return n.forEach((function(t){&quot;setTransition&quot;!==t.command&amp;&amp;r[t.command].apply(r,t.args)})),this.stylesheet=e,!0},r.prototype.addImage=function(e,r){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error(&quot;An image with this name already exists.&quot;)));this.imageManager.addImage(e,r),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))},r.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},r.prototype.getImage=function(t){return this.imageManager.getImage(t)},r.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error(&quot;No image with this name exists.&quot;)));this.imageManager.removeImage(e),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))},r.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},r.prototype.addSource=function(e,r,n){var i=this;if(void 0===n&amp;&amp;(n={}),this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error(&quot;There is already a source with this ID&quot;);if(!r.type)throw new Error(&quot;The type property must be defined, but the only the following properties were given: &quot;+Object.keys(r).join(&quot;, &quot;)+&quot;.&quot;);if(!([&quot;vector&quot;,&quot;raster&quot;,&quot;geojson&quot;,&quot;video&quot;,&quot;image&quot;].indexOf(r.type)&gt;=0&amp;&amp;this._validate(t.validateStyle.source,&quot;sources.&quot;+e,r,null,n))){this.map&amp;&amp;this.map._collectResourceTiming&amp;&amp;(r.collectResourceTiming=!0);var a=this.sourceCaches[e]=new Lt(e,r,this.dispatcher);a.style=this,a.setEventedParent(this,(function(){return{isSourceLoaded:i.loaded(),source:a.serialize(),sourceId:e}})),a.onAdd(this.map),this._changed=!0}},r.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error(&quot;There is no source with this ID&quot;);for(var r in this._layers)if(this._layers[r].source===e)return this.fire(new t.ErrorEvent(new Error('Source &quot;'+e+'&quot; cannot be removed while layer &quot;'+r+'&quot; is using it.')));var n=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],n.fire(new t.Event(&quot;data&quot;,{sourceDataType:&quot;metadata&quot;,dataType:&quot;source&quot;,sourceId:e})),n.setEventedParent(null),n.clearTiles(),n.onRemove&amp;&amp;n.onRemove(this.map),this._changed=!0},r.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},r.prototype.getSource=function(t){return this.sourceCaches[t]&amp;&amp;this.sourceCaches[t].getSource()},r.prototype.addLayer=function(e,r,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var i=e.id;if(this.getLayer(i))this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+i+'&quot; already exists on this map')));else{var a;if(&quot;custom&quot;===e.type){if(Ne(this,t.validateCustomStyleLayer(e)))return;a=t.createStyleLayer(e)}else{if(&quot;object&quot;==typeof e.source&amp;&amp;(this.addSource(i,e.source),e=t.clone$1(e),e=t.extend(e,{source:i})),this._validate(t.validateStyle.layer,&quot;layers.&quot;+i,e,{arrayIndex:-1},n))return;a=t.createStyleLayer(e),this._validateLayer(a),a.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[a.id]=a.serialize()}var o=r?this._order.indexOf(r):this._order.length;if(r&amp;&amp;-1===o)this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+r+'&quot; does not exist on this map.')));else{if(this._order.splice(o,0,i),this._layerOrderChanged=!0,this._layers[i]=a,this._removedLayers[i]&amp;&amp;a.source&amp;&amp;&quot;custom&quot;!==a.type){var s=this._removedLayers[i];delete this._removedLayers[i],s.type!==a.type?this._updatedSources[a.source]=&quot;clear&quot;:(this._updatedSources[a.source]=&quot;reload&quot;,this.sourceCaches[a.source].pause())}this._updateLayer(a),a.onAdd&amp;&amp;a.onAdd(this.map)}}},r.prototype.moveLayer=function(e,r){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==r){var n=this._order.indexOf(e);this._order.splice(n,1);var i=r?this._order.indexOf(r):this._order.length;r&amp;&amp;-1===i?this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+r+'&quot; does not exist on this map.'))):(this._order.splice(i,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be moved.&quot;)))},r.prototype.removeLayer=function(e){this._checkLoaded();var r=this._layers[e];if(r){r.setEventedParent(null);var n=this._order.indexOf(e);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=r,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],r.onRemove&amp;&amp;r.onRemove(this.map)}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be removed.&quot;)))},r.prototype.getLayer=function(t){return this._layers[t]},r.prototype.hasLayer=function(t){return t in this._layers},r.prototype.setLayerZoomRange=function(e,r,n){this._checkLoaded();var i=this.getLayer(e);i?i.minzoom===r&amp;&amp;i.maxzoom===n||(null!=r&amp;&amp;(i.minzoom=r),null!=n&amp;&amp;(i.maxzoom=n),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot have zoom extent.&quot;)))},r.prototype.setFilter=function(e,r,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var i=this.getLayer(e);if(i){if(!t.deepEqual(i.filter,r))return null==r?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(t.validateStyle.filter,&quot;layers.&quot;+i.id+&quot;.filter&quot;,r,null,n)||(i.filter=t.clone$1(r),this._updateLayer(i)))}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be filtered.&quot;)))},r.prototype.getFilter=function(e){return t.clone$1(this.getLayer(e).filter)},r.prototype.setLayoutProperty=function(e,r,n,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getLayoutProperty(r),n)||(a.setLayoutProperty(r,n,i),this._updateLayer(a)):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be styled.&quot;)))},r.prototype.getLayoutProperty=function(e,r){var n=this.getLayer(e);if(n)return n.getLayoutProperty(r);this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style.&quot;)))},r.prototype.setPaintProperty=function(e,r,n,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getPaintProperty(r),n)||(a.setPaintProperty(r,n,i)&amp;&amp;this._updateLayer(a),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be styled.&quot;)))},r.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},r.prototype.setFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=e.sourceLayer,a=this.sourceCaches[n];if(void 0!==a){var o=a.getSource().type;&quot;geojson&quot;===o&amp;&amp;i?this.fire(new t.ErrorEvent(new Error(&quot;GeoJSON sources cannot have a sourceLayer parameter.&quot;))):&quot;vector&quot;!==o||i?(void 0===e.id&amp;&amp;this.fire(new t.ErrorEvent(new Error(&quot;The feature id parameter must be provided.&quot;))),a.setFeatureState(i,e.id,r)):this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+n+&quot;' does not exist in the map's style.&quot;)))},r.prototype.removeFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=this.sourceCaches[n];if(void 0!==i){var a=i.getSource().type,o=&quot;vector&quot;===a?e.sourceLayer:void 0;&quot;vector&quot;!==a||o?r&amp;&amp;&quot;string&quot;!=typeof e.id&amp;&amp;&quot;number&quot;!=typeof e.id?this.fire(new t.ErrorEvent(new Error(&quot;A feature id is requred to remove its specific state property.&quot;))):i.removeFeatureState(o,e.id,r):this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+n+&quot;' does not exist in the map's style.&quot;)))},r.prototype.getFeatureState=function(e){this._checkLoaded();var r=e.source,n=e.sourceLayer,i=this.sourceCaches[r];if(void 0!==i){if(&quot;vector&quot;!==i.getSource().type||n)return void 0===e.id&amp;&amp;this.fire(new t.ErrorEvent(new Error(&quot;The feature id parameter must be provided.&quot;))),i.getFeatureState(n,e.id);this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+r+&quot;' does not exist in the map's style.&quot;)))},r.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&amp;&amp;this.stylesheet.transition)},r.prototype.serialize=function(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,(function(t){return t.serialize()})),layers:this._serializeLayers(this._order)},(function(t){return void 0!==t}))},r.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&amp;&amp;!this._updatedSources[t.source]&amp;&amp;&quot;raster&quot;!==this.sourceCaches[t.source].getSource().type&amp;&amp;(this._updatedSources[t.source]=&quot;reload&quot;,this.sourceCaches[t.source].pause()),this._changed=!0},r.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,r=function(t){return&quot;fill-extrusion&quot;===e._layers[t].type},n={},i=[],a=this._order.length-1;a&gt;=0;a--){var o=this._order[a];if(r(o)){n[o]=a;for(var s=0,l=t;s&lt;l.length;s+=1){var c=l[s][o];if(c)for(var u=0,f=c;u&lt;f.length;u+=1)i.push(f[u])}}}i.sort((function(t,e){return e.intersectionZ-t.intersectionZ}));for(var h=[],p=this._order.length-1;p&gt;=0;p--){var d=this._order[p];if(r(d))for(var g=i.length-1;g&gt;=0;g--){var m=i[g].feature;if(n[m.layer.id]&lt;p)break;h.push(m),i.pop()}else for(var v=0,y=t;v&lt;y.length;v+=1){var x=y[v][d];if(x)for(var b=0,_=x;b&lt;_.length;b+=1)h.push(_[b].feature)}}return h},r.prototype.queryRenderedFeatures=function(e,r,n){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,&quot;queryRenderedFeatures.filter&quot;,r.filter,null,r);var i={};if(r&amp;&amp;r.layers){if(!Array.isArray(r.layers))return this.fire(new t.ErrorEvent(new Error(&quot;parameters.layers must be an Array.&quot;))),[];for(var a=0,o=r.layers;a&lt;o.length;a+=1){var s=o[a],l=this._layers[s];if(!l)return this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+s+&quot;' does not exist in the map's style and cannot be queried for features.&quot;))),[];i[l.source]=!0}}var c=[];for(var u in r.availableImages=this._availableImages,this.sourceCaches)r.layers&amp;&amp;!i[u]||c.push(F(this.sourceCaches[u],this._layers,this._serializedLayers,e,r,n));return this.placement&amp;&amp;c.push(function(t,e,r,n,i,a,o){for(var s={},l=a.queryRenderedSymbols(n),c=[],u=0,f=Object.keys(l).map(Number);u&lt;f.length;u+=1)c.push(o[f[u]]);c.sort(B);for(var h=function(){var r=d[p],n=r.featureIndex.lookupSymbolFeatures(l[r.bucketInstanceId],e,r.bucketIndex,r.sourceLayerIndex,i.filter,i.layers,i.availableImages,t);for(var a in n){var o=s[a]=s[a]||[],c=n[a];c.sort((function(t,e){var n=r.featureSortOrder;if(n){var i=n.indexOf(t.featureIndex);return n.indexOf(e.featureIndex)-i}return e.featureIndex-t.featureIndex}));for(var u=0,f=c;u&lt;f.length;u+=1)o.push(f[u])}},p=0,d=c;p&lt;d.length;p+=1)h();var g=function(e){s[e].forEach((function(n){var i=n.feature,a=r[t[e].source].getFeatureState(i.layer[&quot;source-layer&quot;],i.id);i.source=i.layer.source,i.layer[&quot;source-layer&quot;]&amp;&amp;(i.sourceLayer=i.layer[&quot;source-layer&quot;]),i.state=a}))};for(var m in s)g(m);return s}(this._layers,this._serializedLayers,this.sourceCaches,e,r,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(c)},r.prototype.querySourceFeatures=function(e,r){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,&quot;querySourceFeatures.filter&quot;,r.filter,null,r);var n=this.sourceCaches[e];return n?function(t,e){for(var r=t.getRenderableIds().map((function(e){return t.getTileByID(e)})),n=[],i={},a=0;a&lt;r.length;a++){var o=r[a],s=o.tileID.canonical.key;i[s]||(i[s]=!0,o.querySourceFeatures(n,e))}return n}(n,r):[]},r.prototype.addSourceType=function(t,e,n){return r.getSourceType(t)?n(new Error('A source type called &quot;'+t+'&quot; already exists.')):(r.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast(&quot;loadWorkerSource&quot;,{name:t,url:e.workerSourceURL},n):n(null,null))},r.prototype.getLight=function(){return this.light.getLight()},r.prototype.setLight=function(e,r){void 0===r&amp;&amp;(r={}),this._checkLoaded();var n=this.light.getLight(),i=!1;for(var a in e)if(!t.deepEqual(e[a],n[a])){i=!0;break}if(i){var o={now:t.browser.now(),transition:t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,r),this.light.updateTransitions(o)}},r.prototype._validate=function(e,r,n,i,a){return void 0===a&amp;&amp;(a={}),(!a||!1!==a.validate)&amp;&amp;Ne(this,e.call(t.validateStyle,t.extend({key:r,style:this.serialize(),value:n,styleSpec:t.styleSpec},i)))},r.prototype._remove=function(){for(var e in this._request&amp;&amp;(this._request.cancel(),this._request=null),this._spriteRequest&amp;&amp;(this._spriteRequest.cancel(),this._spriteRequest=null),t.evented.off(&quot;pluginStateChange&quot;,this._rtlTextPluginCallback),this._layers)this._layers[e].setEventedParent(null);for(var r in this.sourceCaches)this.sourceCaches[r].clearTiles(),this.sourceCaches[r].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()},r.prototype._clearSource=function(t){this.sourceCaches[t].clearTiles()},r.prototype._reloadSource=function(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()},r.prototype._updateSources=function(t){for(var e in this.sourceCaches)this.sourceCaches[e].update(t)},r.prototype._generateCollisionBoxes=function(){for(var t in this.sourceCaches)this._reloadSource(t)},r.prototype._updatePlacement=function(e,r,n,i,a){void 0===a&amp;&amp;(a=!1);for(var o=!1,s=!1,l={},c=0,u=this._order;c&lt;u.length;c+=1){var f=this._layers[u[c]];if(&quot;symbol&quot;===f.type){if(!l[f.source]){var h=this.sourceCaches[f.source];l[f.source]=h.getRenderableIds(!0).map((function(t){return h.getTileByID(t)})).sort((function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)}))}var p=this.crossTileSymbolIndex.addLayer(f,l[f.source],e.center.lng);o=o||p}}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((a=a||this._layerOrderChanged||0===n)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&amp;&amp;!this.placement.stillRecent(t.browser.now(),e.zoom))&amp;&amp;(this.pauseablePlacement=new ze(e,this._order,a,r,n,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&amp;&amp;(this.placement=this.pauseablePlacement.commit(t.browser.now()),s=!0),o&amp;&amp;this.pauseablePlacement.placement.setStale()),s||o)for(var d=0,g=this._order;d&lt;g.length;d+=1){var m=this._layers[g[d]];&quot;symbol&quot;===m.type&amp;&amp;this.placement.updateLayerOpacities(m,l[m.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(t.browser.now())},r.prototype._releaseSymbolFadeTiles=function(){for(var t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()},r.prototype.getImages=function(t,e,r){this.imageManager.getImages(e.icons,r),this._updateTilesForChangedImages();var n=this.sourceCaches[e.source];n&amp;&amp;n.setDependencies(e.tileID.key,e.type,e.icons)},r.prototype.getGlyphs=function(t,e,r){this.glyphManager.getGlyphs(e.stacks,r)},r.prototype.getResource=function(e,r,n){return t.makeRequest(r,n)},r}(t.Evented);qe.getSourceType=function(t){return D[t]},qe.setSourceType=function(t,e){D[t]=e},qe.registerForPluginStateChange=t.registerForPluginStateChange;var He=t.createLayout([{name:&quot;a_pos&quot;,type:&quot;Int16&quot;,components:2}]),Ge=vr(&quot;#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif&quot;,&quot;#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}&quot;),Ye=vr(&quot;uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),We=vr(&quot;uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}&quot;),Xe=vr(&quot;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width &lt; 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}&quot;),Ze=vr(&quot;void main() {gl_FragColor=vec4(1.0);}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),Je=vr(&quot;uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}&quot;),Ke=vr(&quot;uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}&quot;),Qe=vr(&quot;varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed &gt; 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed &gt; 0.5) {gl_FragColor*=.1;}}&quot;,&quot;attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}&quot;),$e=vr(&quot;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}&quot;,&quot;attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd  =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz  /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx &gt;=2.0)),mix(-1.0,1.0,float(vertexIdx &gt;=1.0 &amp;&amp; vertexIdx &lt;=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}&quot;),tr=vr(&quot;uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}&quot;,&quot;attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}&quot;),er=vr(&quot;#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),rr=vr(&quot;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}&quot;),nr=vr(&quot;uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}&quot;),ir=vr(&quot;uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}&quot;),ar=vr(&quot;varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t &gt; 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}&quot;),or=vr(&quot;uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t &gt; 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 &amp;&amp; normal.y==0.0 &amp;&amp; normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}&quot;),sr=vr(&quot;#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform float u_maxzoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom &lt; 2.0 ? 0.4 : u_zoom &lt; 4.5 ? 0.35 : 0.3;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}&quot;),lr=vr(&quot;uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y &gt; 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}&quot;),cr=vr(&quot;uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}&quot;),ur=vr(&quot;uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define MAX_LINE_DISTANCE 32767.0\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}&quot;),fr=vr(&quot;uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}&quot;),hr=vr(&quot;uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}&quot;),pr=vr(&quot;uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a &gt; 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a &gt; 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}&quot;),dr=vr(&quot;uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}&quot;),gr=vr(&quot;#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}&quot;),mr=vr(&quot;#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}&quot;);function vr(t,e){var r=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,n={};return{fragmentSource:t=t.replace(r,(function(t,e,r,i,a){return n[a]=!0,&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nvarying &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifdef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;})),vertexSource:e=e.replace(r,(function(t,e,r,i,a){var o=&quot;float&quot;===i?&quot;vec2&quot;:&quot;vec4&quot;,s=a.match(/color/)?&quot;color&quot;:o;return n[a]?&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nuniform lowp float u_&quot;+a+&quot;_t;\nattribute &quot;+r+&quot; &quot;+o+&quot; a_&quot;+a+&quot;;\nvarying &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;vec4&quot;===s?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+a+&quot; = a_&quot;+a+&quot;;\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+a+&quot; = unpack_mix_&quot;+s+&quot;(a_&quot;+a+&quot;, u_&quot;+a+&quot;_t);\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nuniform lowp float u_&quot;+a+&quot;_t;\nattribute &quot;+r+&quot; &quot;+o+&quot; a_&quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;vec4&quot;===s?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = a_&quot;+a+&quot;;\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = unpack_mix_&quot;+s+&quot;(a_&quot;+a+&quot;, u_&quot;+a+&quot;_t);\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;}))}}var yr=Object.freeze({__proto__:null,prelude:Ge,background:Ye,backgroundPattern:We,circle:Xe,clippingMask:Ze,heatmap:Je,heatmapTexture:Ke,collisionBox:Qe,collisionCircle:$e,debug:tr,fill:er,fillOutline:rr,fillOutlinePattern:nr,fillPattern:ir,fillExtrusion:ar,fillExtrusionPattern:or,hillshadePrepare:sr,hillshade:lr,line:cr,lineGradient:ur,linePattern:fr,lineSDF:hr,raster:pr,symbolIcon:dr,symbolSDF:gr,symbolTextAndIcon:mr}),xr=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};xr.prototype.bind=function(t,e,r,n,i,a,o,s){this.context=t;for(var l=this.boundPaintVertexBuffers.length!==n.length,c=0;!l&amp;&amp;c&lt;n.length;c++)this.boundPaintVertexBuffers[c]!==n[c]&amp;&amp;(l=!0);t.extVertexArrayObject&amp;&amp;this.vao&amp;&amp;this.boundProgram===e&amp;&amp;this.boundLayoutVertexBuffer===r&amp;&amp;!l&amp;&amp;this.boundIndexBuffer===i&amp;&amp;this.boundVertexOffset===a&amp;&amp;this.boundDynamicVertexBuffer===o&amp;&amp;this.boundDynamicVertexBuffer2===s?(t.bindVertexArrayOES.set(this.vao),o&amp;&amp;o.bind(),i&amp;&amp;i.dynamicDraw&amp;&amp;i.bind(),s&amp;&amp;s.bind()):this.freshBind(e,r,n,i,a,o,s)},xr.prototype.freshBind=function(t,e,r,n,i,a,o){var s,l=t.numAttributes,c=this.context,u=c.gl;if(c.extVertexArrayObject)this.vao&amp;&amp;this.destroy(),this.vao=c.extVertexArrayObject.createVertexArrayOES(),c.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=r,this.boundIndexBuffer=n,this.boundVertexOffset=i,this.boundDynamicVertexBuffer=a,this.boundDynamicVertexBuffer2=o;else{s=c.currentNumAttributes||0;for(var f=l;f&lt;s;f++)u.disableVertexAttribArray(f)}e.enableAttributes(u,t);for(var h=0,p=r;h&lt;p.length;h+=1)p[h].enableAttributes(u,t);a&amp;&amp;a.enableAttributes(u,t),o&amp;&amp;o.enableAttributes(u,t),e.bind(),e.setVertexAttribPointers(u,t,i);for(var d=0,g=r;d&lt;g.length;d+=1){var m=g[d];m.bind(),m.setVertexAttribPointers(u,t,i)}a&amp;&amp;(a.bind(),a.setVertexAttribPointers(u,t,i)),n&amp;&amp;n.bind(),o&amp;&amp;(o.bind(),o.setVertexAttribPointers(u,t,i)),c.currentNumAttributes=l},xr.prototype.destroy=function(){this.vao&amp;&amp;(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var br=function(t,e,r,n,i){var a=t.gl;this.program=a.createProgram();var o=r?r.defines():[];i&amp;&amp;o.push(&quot;#define OVERDRAW_INSPECTOR;&quot;);var s=o.concat(Ge.fragmentSource,e.fragmentSource).join(&quot;\n&quot;),l=o.concat(Ge.vertexSource,e.vertexSource).join(&quot;\n&quot;),c=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(c,s),a.compileShader(c),a.attachShader(this.program,c);var u=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(u,l),a.compileShader(u),a.attachShader(this.program,u);for(var f=r?r.layoutAttributes:[],h=0;h&lt;f.length;h++)a.bindAttribLocation(this.program,h,f[h].name);a.linkProgram(this.program),a.deleteShader(u),a.deleteShader(c),this.numAttributes=a.getProgramParameter(this.program,a.ACTIVE_ATTRIBUTES),this.attributes={};for(var p={},d=0;d&lt;this.numAttributes;d++){var g=a.getActiveAttrib(this.program,d);g&amp;&amp;(this.attributes[g.name]=a.getAttribLocation(this.program,g.name))}for(var m=a.getProgramParameter(this.program,a.ACTIVE_UNIFORMS),v=0;v&lt;m;v++){var y=a.getActiveUniform(this.program,v);y&amp;&amp;(p[y.name]=a.getUniformLocation(this.program,y.name))}this.fixedUniforms=n(t,p),this.binderUniforms=r?r.getUniforms(t,p):[]}}};function _r(t,e,r){var n=1/he(r,1,e.transform.tileZoom),i=Math.pow(2,r.tileID.overscaledZ),a=r.tileSize*Math.pow(2,e.transform.tileZoom)/i,o=a*(r.tileID.canonical.x+r.tileID.wrap*i),s=a*r.tileID.canonical.y;return{u_image:0,u_texsize:r.imageAtlasTexture.size,u_scale:[n,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[o&gt;&gt;16,s&gt;&gt;16],u_pixel_coord_lower:[65535&amp;o,65535&amp;s]}}br.prototype.draw=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g){var m,v=t.gl;if(!this.failedToCreate){for(var y in t.program.set(this.program),t.setDepthMode(r),t.setStencilMode(n),t.setColorMode(i),t.setCullFace(a),this.fixedUniforms)this.fixedUniforms[y].set(o[y]);p&amp;&amp;p.setUniforms(t,this.binderUniforms,f,{zoom:h});for(var x=(m={},m[v.LINES]=2,m[v.TRIANGLES]=3,m[v.LINE_STRIP]=1,m)[e],b=0,_=u.get();b&lt;_.length;b+=1){var w=_[b],T=w.vaos||(w.vaos={});(T[s]||(T[s]=new xr)).bind(t,this,l,p?p.getPaintVertexBuffers():[],c,w.vertexOffset,d,g),v.drawElements(e,w.primitiveLength*x,v.UNSIGNED_SHORT,w.primitiveOffset*x*2)}}};var wr=function(e,r,n,i){var a=r.style.light,o=a.properties.get(&quot;position&quot;),s=[o.x,o.y,o.z],l=t.create$1();&quot;viewport&quot;===a.properties.get(&quot;anchor&quot;)&amp;&amp;t.fromRotation(l,-r.transform.angle),t.transformMat3(s,s,l);var c=a.properties.get(&quot;color&quot;);return{u_matrix:e,u_lightpos:s,u_lightintensity:a.properties.get(&quot;intensity&quot;),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+n,u_opacity:i}},Tr=function(e,r,n,i,a,o,s){return t.extend(wr(e,r,n,i),_r(o,r,s),{u_height_factor:-Math.pow(2,a.overscaledZ)/s.tileSize/8})},kr=function(t){return{u_matrix:t}},Mr=function(e,r,n,i){return t.extend(kr(e),_r(n,r,i))},Ar=function(t,e){return{u_matrix:t,u_world:e}},Sr=function(e,r,n,i,a){return t.extend(Mr(e,r,n,i),{u_world:a})},Er=function(e,r,n,i){var a,o,s=e.transform;if(&quot;map&quot;===i.paint.get(&quot;circle-pitch-alignment&quot;)){var l=he(n,1,s.zoom);a=!0,o=[l,l]}else a=!1,o=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+(&quot;map&quot;===i.paint.get(&quot;circle-pitch-scale&quot;)),u_matrix:e.translatePosMatrix(r.posMatrix,n,i.paint.get(&quot;circle-translate&quot;),i.paint.get(&quot;circle-translate-anchor&quot;)),u_pitch_with_map:+a,u_device_pixel_ratio:t.browser.devicePixelRatio,u_extrude_scale:o}},Cr=function(t,e,r){var n=he(r,1,e.zoom),i=Math.pow(2,e.zoom-r.tileID.overscaledZ),a=r.tileID.overscaleFactor();return{u_matrix:t,u_camera_to_center_distance:e.cameraToCenterDistance,u_pixels_to_tile_units:n,u_extrude_scale:[e.pixelsToGLUnits[0]/(n*i),e.pixelsToGLUnits[1]/(n*i)],u_overscale_factor:a}},Lr=function(t,e,r){return{u_matrix:t,u_inv_matrix:e,u_camera_to_center_distance:r.cameraToCenterDistance,u_viewport_size:[r.width,r.height]}},Ir=function(t,e,r){return void 0===r&amp;&amp;(r=1),{u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:r}},Pr=function(t){return{u_matrix:t}},zr=function(t,e,r,n){return{u_matrix:t,u_extrude_scale:he(e,1,r),u_intensity:n}},Or=function(e,r,n){var i=e.transform;return{u_matrix:Nr(e,r,n),u_ratio:1/he(r,1,i.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},Dr=function(e,r,n){return t.extend(Or(e,r,n),{u_image:0})},Rr=function(e,r,n,i){var a=e.transform,o=Br(r,a);return{u_matrix:Nr(e,r,n),u_texsize:r.imageAtlasTexture.size,u_ratio:1/he(r,1,a.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_image:0,u_scale:[o,i.fromScale,i.toScale],u_fade:i.t,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]]}},Fr=function(e,r,n,i,a){var o=e.lineAtlas,s=Br(r,e.transform),l=&quot;round&quot;===n.layout.get(&quot;line-cap&quot;),c=o.getDash(i.from,l),u=o.getDash(i.to,l),f=c.width*a.fromScale,h=u.width*a.toScale;return t.extend(Or(e,r,n),{u_patternscale_a:[s/f,-c.height/2],u_patternscale_b:[s/h,-u.height/2],u_sdfgamma:o.width/(256*Math.min(f,h)*t.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:c.y,u_tex_y_b:u.y,u_mix:a.t})};function Br(t,e){return 1/he(t,1,e.tileZoom)}function Nr(t,e,r){return t.translatePosMatrix(e.tileID.posMatrix,e,r.paint.get(&quot;line-translate&quot;),r.paint.get(&quot;line-translate-anchor&quot;))}var jr=function(t,e,r,n,i){return{u_matrix:t,u_tl_parent:e,u_scale_parent:r,u_buffer_scale:1,u_fade_t:n.mix,u_opacity:n.opacity*i.paint.get(&quot;raster-opacity&quot;),u_image0:0,u_image1:1,u_brightness_low:i.paint.get(&quot;raster-brightness-min&quot;),u_brightness_high:i.paint.get(&quot;raster-brightness-max&quot;),u_saturation_factor:(o=i.paint.get(&quot;raster-saturation&quot;),o&gt;0?1-1/(1.001-o):-o),u_contrast_factor:(a=i.paint.get(&quot;raster-contrast&quot;),a&gt;0?1/(1-a):1+a),u_spin_weights:Ur(i.paint.get(&quot;raster-hue-rotate&quot;))};var a,o};function Ur(t){t*=Math.PI/180;var e=Math.sin(t),r=Math.cos(t);return[(2*r+1)/3,(-Math.sqrt(3)*e-r+1)/3,(Math.sqrt(3)*e-r+1)/3]}var Vr,qr=function(t,e,r,n,i,a,o,s,l,c){var u=i.transform;return{u_is_size_zoom_constant:+(&quot;constant&quot;===t||&quot;source&quot;===t),u_is_size_feature_constant:+(&quot;constant&quot;===t||&quot;camera&quot;===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:u.cameraToCenterDistance,u_pitch:u.pitch/360*2*Math.PI,u_rotate_symbol:+r,u_aspect_ratio:u.width/u.height,u_fade_change:i.options.fadeDuration?i.symbolFadeChange:1,u_matrix:a,u_label_plane_matrix:o,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+n,u_texsize:c,u_texture:0}},Hr=function(e,r,n,i,a,o,s,l,c,u,f){var h=a.transform;return t.extend(qr(e,r,n,i,a,o,s,l,c,u),{u_gamma_scale:i?Math.cos(h._pitch)*h.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+f})},Gr=function(e,r,n,i,a,o,s,l,c,u){return t.extend(Hr(e,r,n,i,a,o,s,l,!0,c,!0),{u_texsize_icon:u,u_texture_icon:1})},Yr=function(t,e,r){return{u_matrix:t,u_opacity:e,u_color:r}},Wr=function(e,r,n,i,a,o){return t.extend(function(t,e,r,n){var i=r.imageManager.getPattern(t.from.toString()),a=r.imageManager.getPattern(t.to.toString()),o=r.imageManager.getPixelSize(),s=o.width,l=o.height,c=Math.pow(2,n.tileID.overscaledZ),u=n.tileSize*Math.pow(2,r.transform.tileZoom)/c,f=u*(n.tileID.canonical.x+n.tileID.wrap*c),h=u*n.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[s,l],u_mix:e.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/he(n,1,r.transform.tileZoom),u_pixel_coord_upper:[f&gt;&gt;16,h&gt;&gt;16],u_pixel_coord_lower:[65535&amp;f,65535&amp;h]}}(i,o,n,a),{u_matrix:e,u_opacity:r})},Xr={fillExtrusion:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fillExtrusionPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,r.u_height_factor),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fill:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},fillPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},fillOutline:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world)}},fillOutlinePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},circle:function(e,r){return{u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,r.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},collisionBox:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,r.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,r.u_overscale_factor)}},collisionCircle:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,r.u_inv_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,r.u_viewport_size)}},debug:function(e,r){return{u_color:new t.UniformColor(e,r.u_color),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_overlay:new t.Uniform1i(e,r.u_overlay),u_overlay_scale:new t.Uniform1f(e,r.u_overlay_scale)}},clippingMask:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmap:function(e,r){return{u_extrude_scale:new t.Uniform1f(e,r.u_extrude_scale),u_intensity:new t.Uniform1f(e,r.u_intensity),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmapTexture:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_color_ramp:new t.Uniform1i(e,r.u_color_ramp),u_opacity:new t.Uniform1f(e,r.u_opacity)}},hillshade:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_latrange:new t.Uniform2f(e,r.u_latrange),u_light:new t.Uniform2f(e,r.u_light),u_shadow:new t.UniformColor(e,r.u_shadow),u_highlight:new t.UniformColor(e,r.u_highlight),u_accent:new t.UniformColor(e,r.u_accent)}},hillshadePrepare:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_dimension:new t.Uniform2f(e,r.u_dimension),u_zoom:new t.Uniform1f(e,r.u_zoom),u_maxzoom:new t.Uniform1f(e,r.u_maxzoom),u_unpack:new t.Uniform4f(e,r.u_unpack)}},line:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels)}},lineGradient:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_image:new t.Uniform1i(e,r.u_image)}},linePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_texsize:new t.Uniform2f(e,r.u_texsize),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_image:new t.Uniform1i(e,r.u_image),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},lineSDF:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,r.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,r.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,r.u_sdfgamma),u_image:new t.Uniform1i(e,r.u_image),u_tex_y_a:new t.Uniform1f(e,r.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,r.u_tex_y_b),u_mix:new t.Uniform1f(e,r.u_mix)}},raster:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_tl_parent:new t.Uniform2f(e,r.u_tl_parent),u_scale_parent:new t.Uniform1f(e,r.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,r.u_buffer_scale),u_fade_t:new t.Uniform1f(e,r.u_fade_t),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image0:new t.Uniform1i(e,r.u_image0),u_image1:new t.Uniform1i(e,r.u_image1),u_brightness_low:new t.Uniform1f(e,r.u_brightness_low),u_brightness_high:new t.Uniform1f(e,r.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,r.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,r.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,r.u_spin_weights)}},symbolIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture)}},symbolSDF:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},symbolTextAndIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texsize_icon:new t.Uniform2f(e,r.u_texsize_icon),u_texture:new t.Uniform1i(e,r.u_texture),u_texture_icon:new t.Uniform1i(e,r.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},background:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_color:new t.UniformColor(e,r.u_color)}},backgroundPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image:new t.Uniform1i(e,r.u_image),u_pattern_tl_a:new t.Uniform2f(e,r.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,r.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,r.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,r.u_pattern_br_b),u_texsize:new t.Uniform2f(e,r.u_texsize),u_mix:new t.Uniform1f(e,r.u_mix),u_pattern_size_a:new t.Uniform2f(e,r.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,r.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,r.u_scale_a),u_scale_b:new t.Uniform1f(e,r.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,r.u_tile_units_to_pixels)}}};function Zr(e,r,n,i,a,o,s){for(var l=e.context,c=l.gl,u=e.useProgram(&quot;collisionBox&quot;),f=[],h=0,p=0,d=0;d&lt;i.length;d++){var g=i[d],m=r.getTile(g),v=m.getBucket(n);if(v){var y=g.posMatrix;0===a[0]&amp;&amp;0===a[1]||(y=e.translatePosMatrix(g.posMatrix,m,a,o));var x=s?v.textCollisionBox:v.iconCollisionBox,b=v.collisionCircleArray;if(b.length&gt;0){var _=t.create(),w=y;t.mul(_,v.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul(_,_,v.placementViewportMatrix),f.push({circleArray:b,circleOffset:p,transform:w,invTransform:_}),p=h+=b.length/4}x&amp;&amp;u.draw(l,c.LINES,Mt.disabled,At.disabled,e.colorModeForRenderPass(),Et.disabled,Cr(y,e.transform,m),n.id,x.layoutVertexBuffer,x.indexBuffer,x.segments,null,e.transform.zoom,null,null,x.collisionVertexBuffer)}}if(s&amp;&amp;f.length){var T=e.useProgram(&quot;collisionCircle&quot;),k=new t.StructArrayLayout2f1f2i16;k.resize(4*h),k._trim();for(var M=0,A=0,S=f;A&lt;S.length;A+=1)for(var E=S[A],C=0;C&lt;E.circleArray.length/4;C++){var L=4*C,I=E.circleArray[L+0],P=E.circleArray[L+1],z=E.circleArray[L+2],O=E.circleArray[L+3];k.emplace(M++,I,P,z,O,0),k.emplace(M++,I,P,z,O,1),k.emplace(M++,I,P,z,O,2),k.emplace(M++,I,P,z,O,3)}(!Vr||Vr.length&lt;2*h)&amp;&amp;(Vr=function(e){var r=2*e,n=new t.StructArrayLayout3ui6;n.resize(r),n._trim();for(var i=0;i&lt;r;i++){var a=6*i;n.uint16[a+0]=4*i+0,n.uint16[a+1]=4*i+1,n.uint16[a+2]=4*i+2,n.uint16[a+3]=4*i+2,n.uint16[a+4]=4*i+3,n.uint16[a+5]=4*i+0}return n}(h));for(var D=l.createIndexBuffer(Vr,!0),R=l.createVertexBuffer(k,t.collisionCircleLayout.members,!0),F=0,B=f;F&lt;B.length;F+=1){var N=B[F],j=Lr(N.transform,N.invTransform,e.transform);T.draw(l,c.TRIANGLES,Mt.disabled,At.disabled,e.colorModeForRenderPass(),Et.disabled,j,n.id,R,D,t.SegmentVector.simpleSegment(0,2*N.circleOffset,N.circleArray.length,N.circleArray.length/2),null,e.transform.zoom,null,null,null)}R.destroy(),D.destroy()}}var Jr=t.identity(new Float32Array(16));function Kr(e,r,n,i,a,o){var s=t.getAnchorAlignment(e),l=-(s.horizontalAlign-.5)*r,c=-(s.verticalAlign-.5)*n,u=t.evaluateVariableOffset(e,i);return new t.Point((l/a+u[0])*o,(c/a+u[1])*o)}function Qr(e,r,n,i,a,o,s,l,c,u,f){var h=e.text.placedSymbolArray,p=e.text.dynamicLayoutVertexArray,d=e.icon.dynamicLayoutVertexArray,g={};p.clear();for(var m=0;m&lt;h.length;m++){var v=h.get(m),y=v.hidden||!v.crossTileID||e.allowVerticalPlacement&amp;&amp;!v.placedOrientation?null:i[v.crossTileID];if(y){var x=new t.Point(v.anchorX,v.anchorY),b=$t(x,n?l:s),_=te(o.cameraToCenterDistance,b.signedDistanceFromCamera),w=a.evaluateSizeForFeature(e.textSizeData,u,v)*_/t.ONE_EM;n&amp;&amp;(w*=e.tilePixelRatio/c);for(var T=Kr(y.anchor,y.width,y.height,y.textOffset,y.textBoxScale,w),k=n?$t(x.add(T),s).point:b.point.add(r?T.rotate(-o.angle):T),M=e.allowVerticalPlacement&amp;&amp;v.placedOrientation===t.WritingMode.vertical?Math.PI/2:0,A=0;A&lt;v.numGlyphs;A++)t.addDynamicAttributes(p,k,M);f&amp;&amp;v.associatedIconIndex&gt;=0&amp;&amp;(g[v.associatedIconIndex]={shiftedAnchor:k,angle:M})}else ce(v.numGlyphs,p)}if(f){d.clear();for(var S=e.icon.placedSymbolArray,E=0;E&lt;S.length;E++){var C=S.get(E);if(C.hidden)ce(C.numGlyphs,d);else{var L=g[E];if(L)for(var I=0;I&lt;C.numGlyphs;I++)t.addDynamicAttributes(d,L.shiftedAnchor,L.angle);else ce(C.numGlyphs,d)}}e.icon.dynamicLayoutVertexBuffer.updateData(d)}e.text.dynamicLayoutVertexBuffer.updateData(p)}function $r(t,e,r){return r.iconsInText&amp;&amp;e?&quot;symbolTextAndIcon&quot;:t?&quot;symbolSDF&quot;:&quot;symbolIcon&quot;}function tn(e,r,n,i,a,o,s,l,c,u,f,h){for(var p=e.context,d=p.gl,g=e.transform,m=&quot;map&quot;===l,v=&quot;map&quot;===c,y=m&amp;&amp;&quot;point&quot;!==n.layout.get(&quot;symbol-placement&quot;),x=m&amp;&amp;!v&amp;&amp;!y,b=void 0!==n.layout.get(&quot;symbol-sort-key&quot;).constantOr(1),_=e.depthModeForSublayer(0,Mt.ReadOnly),w=n.layout.get(&quot;text-variable-anchor&quot;),T=[],k=0,M=i;k&lt;M.length;k+=1){var A=M[k],S=r.getTile(A),E=S.getBucket(n);if(E){var C=a?E.text:E.icon;if(C&amp;&amp;C.segments.get().length){var L=C.programConfigurations.get(n.id),I=a||E.sdfIcons,P=a?E.textSizeData:E.iconSizeData,z=v||0!==g.pitch,O=e.useProgram($r(I,a,E),L),D=t.evaluateSizeForZoom(P,g.zoom),R=void 0,F=[0,0],B=void 0,N=void 0,j=null,U=void 0;if(a)B=S.glyphAtlasTexture,N=d.LINEAR,R=S.glyphAtlasTexture.size,E.iconsInText&amp;&amp;(F=S.imageAtlasTexture.size,j=S.imageAtlasTexture,U=z||e.options.rotating||e.options.zooming||&quot;composite&quot;===P.kind||&quot;camera&quot;===P.kind?d.LINEAR:d.NEAREST);else{var V=1!==n.layout.get(&quot;icon-size&quot;).constantOr(0)||E.iconsNeedLinear;B=S.imageAtlasTexture,N=I||e.options.rotating||e.options.zooming||V||z?d.LINEAR:d.NEAREST,R=S.imageAtlasTexture.size}var q=he(S,1,e.transform.zoom),H=Kt(A.posMatrix,v,m,e.transform,q),G=Qt(A.posMatrix,v,m,e.transform,q),Y=w&amp;&amp;E.hasTextData(),W=&quot;none&quot;!==n.layout.get(&quot;icon-text-fit&quot;)&amp;&amp;Y&amp;&amp;E.hasIconData();y&amp;&amp;re(E,A.posMatrix,e,a,H,G,v,u);var X=e.translatePosMatrix(A.posMatrix,S,o,s),Z=y||a&amp;&amp;w||W?Jr:H,J=e.translatePosMatrix(G,S,o,s,!0),K=I&amp;&amp;0!==n.paint.get(a?&quot;text-halo-width&quot;:&quot;icon-halo-width&quot;).constantOr(1),Q={program:O,buffers:C,uniformValues:I?E.iconsInText?Gr(P.kind,D,x,v,e,X,Z,J,R,F):Hr(P.kind,D,x,v,e,X,Z,J,a,R,!0):qr(P.kind,D,x,v,e,X,Z,J,a,R),atlasTexture:B,atlasTextureIcon:j,atlasInterpolation:N,atlasInterpolationIcon:U,isSDF:I,hasHalo:K};if(b)for(var $=0,tt=C.segments.get();$&lt;tt.length;$+=1){var et=tt[$];T.push({segments:new t.SegmentVector([et]),sortKey:et.sortKey,state:Q})}else T.push({segments:C.segments,sortKey:0,state:Q})}}}b&amp;&amp;T.sort((function(t,e){return t.sortKey-e.sortKey}));for(var rt=0,nt=T;rt&lt;nt.length;rt+=1){var it=nt[rt],at=it.state;if(p.activeTexture.set(d.TEXTURE0),at.atlasTexture.bind(at.atlasInterpolation,d.CLAMP_TO_EDGE),at.atlasTextureIcon&amp;&amp;(p.activeTexture.set(d.TEXTURE1),at.atlasTextureIcon&amp;&amp;at.atlasTextureIcon.bind(at.atlasInterpolationIcon,d.CLAMP_TO_EDGE)),at.isSDF){var ot=at.uniformValues;at.hasHalo&amp;&amp;(ot.u_is_halo=1,en(at.buffers,it.segments,n,e,at.program,_,f,h,ot)),ot.u_is_halo=0}en(at.buffers,it.segments,n,e,at.program,_,f,h,at.uniformValues)}}function en(t,e,r,n,i,a,o,s,l){var c=n.context;i.draw(c,c.gl.TRIANGLES,a,o,s,Et.disabled,l,r.id,t.layoutVertexBuffer,t.indexBuffer,e,r.paint,n.transform.zoom,t.programConfigurations.get(r.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function rn(t,e,r,n,i,a,o){var s,l,c,u,f,h=t.context.gl,p=r.paint.get(&quot;fill-pattern&quot;),d=p&amp;&amp;p.constantOr(1),g=r.getCrossfadeParameters();o?(l=d&amp;&amp;!r.getPaintProperty(&quot;fill-outline-color&quot;)?&quot;fillOutlinePattern&quot;:&quot;fillOutline&quot;,s=h.LINES):(l=d?&quot;fillPattern&quot;:&quot;fill&quot;,s=h.TRIANGLES);for(var m=0,v=n;m&lt;v.length;m+=1){var y=v[m],x=e.getTile(y);if(!d||x.patternsLoaded()){var b=x.getBucket(r);if(b){var _=b.programConfigurations.get(r.id),w=t.useProgram(l,_);d&amp;&amp;(t.context.activeTexture.set(h.TEXTURE0),x.imageAtlasTexture.bind(h.LINEAR,h.CLAMP_TO_EDGE),_.updatePaintBuffers(g));var T=p.constantOr(null);if(T&amp;&amp;x.imageAtlas){var k=x.imageAtlas,M=k.patternPositions[T.to.toString()],A=k.patternPositions[T.from.toString()];M&amp;&amp;A&amp;&amp;_.setConstantPatternPositions(M,A)}var S=t.translatePosMatrix(y.posMatrix,x,r.paint.get(&quot;fill-translate&quot;),r.paint.get(&quot;fill-translate-anchor&quot;));if(o){u=b.indexBuffer2,f=b.segments2;var E=[h.drawingBufferWidth,h.drawingBufferHeight];c=&quot;fillOutlinePattern&quot;===l&amp;&amp;d?Sr(S,t,g,x,E):Ar(S,E)}else u=b.indexBuffer,f=b.segments,c=d?Mr(S,t,g,x):kr(S);w.draw(t.context,s,i,t.stencilModeForClipping(y),a,Et.disabled,c,r.id,b.layoutVertexBuffer,u,f,r.paint,t.transform.zoom,_)}}}}function nn(t,e,r,n,i,a,o){for(var s=t.context,l=s.gl,c=r.paint.get(&quot;fill-extrusion-pattern&quot;),u=c.constantOr(1),f=r.getCrossfadeParameters(),h=r.paint.get(&quot;fill-extrusion-opacity&quot;),p=0,d=n;p&lt;d.length;p+=1){var g=d[p],m=e.getTile(g),v=m.getBucket(r);if(v){var y=v.programConfigurations.get(r.id),x=t.useProgram(u?&quot;fillExtrusionPattern&quot;:&quot;fillExtrusion&quot;,y);u&amp;&amp;(t.context.activeTexture.set(l.TEXTURE0),m.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),y.updatePaintBuffers(f));var b=c.constantOr(null);if(b&amp;&amp;m.imageAtlas){var _=m.imageAtlas,w=_.patternPositions[b.to.toString()],T=_.patternPositions[b.from.toString()];w&amp;&amp;T&amp;&amp;y.setConstantPatternPositions(w,T)}var k=t.translatePosMatrix(g.posMatrix,m,r.paint.get(&quot;fill-extrusion-translate&quot;),r.paint.get(&quot;fill-extrusion-translate-anchor&quot;)),M=r.paint.get(&quot;fill-extrusion-vertical-gradient&quot;),A=u?Tr(k,t,M,h,g,f,m):wr(k,t,M,h);x.draw(s,s.gl.TRIANGLES,i,a,o,Et.backCCW,A,r.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,r.paint,t.transform.zoom,y)}}}function an(e,r,n,i,a,o){var s=e.context,l=s.gl,c=r.fbo;if(c){var u=e.useProgram(&quot;hillshade&quot;);s.activeTexture.set(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,c.colorAttachment.get());var f=function(e,r,n){var i=n.paint.get(&quot;hillshade-shadow-color&quot;),a=n.paint.get(&quot;hillshade-highlight-color&quot;),o=n.paint.get(&quot;hillshade-accent-color&quot;),s=n.paint.get(&quot;hillshade-illumination-direction&quot;)*(Math.PI/180);&quot;viewport&quot;===n.paint.get(&quot;hillshade-illumination-anchor&quot;)&amp;&amp;(s-=e.transform.angle);var l,c,u,f=!e.options.moving;return{u_matrix:e.transform.calculatePosMatrix(r.tileID.toUnwrapped(),f),u_image:0,u_latrange:(l=r.tileID,c=Math.pow(2,l.canonical.z),u=l.canonical.y,[new t.MercatorCoordinate(0,u/c).toLngLat().lat,new t.MercatorCoordinate(0,(u+1)/c).toLngLat().lat]),u_light:[n.paint.get(&quot;hillshade-exaggeration&quot;),s],u_shadow:i,u_highlight:a,u_accent:o}}(e,r,n);u.draw(s,l.TRIANGLES,i,a,o,Et.disabled,f,n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}}function on(e,r,n,i,a,o,s){var l=e.context,c=l.gl,u=r.dem;if(u&amp;&amp;u.data){var f=u.dim,h=u.stride,p=u.getPixels();if(l.activeTexture.set(c.TEXTURE1),l.pixelStoreUnpackPremultiplyAlpha.set(!1),r.demTexture=r.demTexture||e.getTileTexture(h),r.demTexture){var d=r.demTexture;d.update(p,{premultiply:!1}),d.bind(c.NEAREST,c.CLAMP_TO_EDGE)}else r.demTexture=new t.Texture(l,p,c.RGBA,{premultiply:!1}),r.demTexture.bind(c.NEAREST,c.CLAMP_TO_EDGE);l.activeTexture.set(c.TEXTURE0);var g=r.fbo;if(!g){var m=new t.Texture(l,{width:f,height:f,data:null},c.RGBA);m.bind(c.LINEAR,c.CLAMP_TO_EDGE),(g=r.fbo=l.createFramebuffer(f,f,!0)).colorAttachment.set(m.texture)}l.bindFramebuffer.set(g.framebuffer),l.viewport.set([0,0,f,f]),e.useProgram(&quot;hillshadePrepare&quot;).draw(l,c.TRIANGLES,a,o,s,Et.disabled,function(e,r,n){var i=r.stride,a=t.create();return t.ortho(a,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(a,a,[0,-t.EXTENT,0]),{u_matrix:a,u_image:1,u_dimension:[i,i],u_zoom:e.overscaledZ,u_maxzoom:n,u_unpack:r.getUnpackVector()}}(r.tileID,u,i),n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),r.needsHillshadePrepare=!1}}function sn(e,r,n,i,a){var o=i.paint.get(&quot;raster-fade-duration&quot;);if(o&gt;0){var s=t.browser.now(),l=(s-e.timeAdded)/o,c=r?(s-r.timeAdded)/o:-1,u=n.getSource(),f=a.coveringZoomLevel({tileSize:u.tileSize,roundZoom:u.roundZoom}),h=!r||Math.abs(r.tileID.overscaledZ-f)&gt;Math.abs(e.tileID.overscaledZ-f),p=h&amp;&amp;e.refreshedUponExpiration?1:t.clamp(h?l:1-c,0,1);return e.refreshedUponExpiration&amp;&amp;l&gt;=1&amp;&amp;(e.refreshedUponExpiration=!1),r?{opacity:1,mix:1-p}:{opacity:p,mix:0}}return{opacity:1,mix:0}}var ln=new t.Color(1,0,0,1),cn=new t.Color(0,1,0,1),un=new t.Color(0,0,1,1),fn=new t.Color(1,0,1,1),hn=new t.Color(0,1,1,1);function pn(t,e,r,n){gn(t,0,e+r/2,t.transform.width,r,n)}function dn(t,e,r,n){gn(t,e-r/2,0,r,t.transform.height,n)}function gn(e,r,n,i,a,o){var s=e.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(r*t.browser.devicePixelRatio,n*t.browser.devicePixelRatio,i*t.browser.devicePixelRatio,a*t.browser.devicePixelRatio),s.clear({color:o}),l.disable(l.SCISSOR_TEST)}function mn(e,r,n){var i=e.context,a=i.gl,o=n.posMatrix,s=e.useProgram(&quot;debug&quot;),l=Mt.disabled,c=At.disabled,u=e.colorModeForRenderPass();i.activeTexture.set(a.TEXTURE0),e.emptyTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE),s.draw(i,a.LINE_STRIP,l,c,u,Et.disabled,Ir(o,t.Color.red),&quot;$debug&quot;,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);var f=r.getTileByID(n.key).latestRawTileData,h=Math.floor((f&amp;&amp;f.byteLength||0)/1024),p=r.getTile(n).tileSize,d=512/Math.min(p,512)*(n.overscaledZ/e.transform.zoom)*.5,g=n.canonical.toString();n.overscaledZ!==n.canonical.z&amp;&amp;(g+=&quot; =&gt; &quot;+n.overscaledZ),function(t,e){t.initDebugOverlayCanvas();var r=t.debugOverlayCanvas,n=t.context.gl,i=t.debugOverlayCanvas.getContext(&quot;2d&quot;);i.clearRect(0,0,r.width,r.height),i.shadowColor=&quot;white&quot;,i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle=&quot;white&quot;,i.textBaseline=&quot;top&quot;,i.font=&quot;bold 36px Open Sans, sans-serif&quot;,i.fillText(e,5,5),i.strokeText(e,5,5),t.debugOverlayTexture.update(r),t.debugOverlayTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}(e,g+&quot; &quot;+h+&quot;kb&quot;),s.draw(i,a.TRIANGLES,l,c,St.alphaBlended,Et.disabled,Ir(o,t.Color.transparent,d),&quot;$debug&quot;,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments)}var vn={symbol:function(e,r,n,i,a){if(&quot;translucent&quot;===e.renderPass){var o=At.disabled,s=e.colorModeForRenderPass();n.layout.get(&quot;text-variable-anchor&quot;)&amp;&amp;function(e,r,n,i,a,o,s){for(var l=r.transform,c=&quot;map&quot;===a,u=&quot;map&quot;===o,f=0,h=e;f&lt;h.length;f+=1){var p=h[f],d=i.getTile(p),g=d.getBucket(n);if(g&amp;&amp;g.text&amp;&amp;g.text.segments.get().length){var m=t.evaluateSizeForZoom(g.textSizeData,l.zoom),v=he(d,1,r.transform.zoom),y=Kt(p.posMatrix,u,c,r.transform,v),x=&quot;none&quot;!==n.layout.get(&quot;icon-text-fit&quot;)&amp;&amp;g.hasIconData();if(m){var b=Math.pow(2,l.zoom-d.tileID.overscaledZ);Qr(g,c,u,s,t.symbolSize,l,y,p.posMatrix,b,m,x)}}}}(i,e,n,r,n.layout.get(&quot;text-rotation-alignment&quot;),n.layout.get(&quot;text-pitch-alignment&quot;),a),0!==n.paint.get(&quot;icon-opacity&quot;).constantOr(1)&amp;&amp;tn(e,r,n,i,!1,n.paint.get(&quot;icon-translate&quot;),n.paint.get(&quot;icon-translate-anchor&quot;),n.layout.get(&quot;icon-rotation-alignment&quot;),n.layout.get(&quot;icon-pitch-alignment&quot;),n.layout.get(&quot;icon-keep-upright&quot;),o,s),0!==n.paint.get(&quot;text-opacity&quot;).constantOr(1)&amp;&amp;tn(e,r,n,i,!0,n.paint.get(&quot;text-translate&quot;),n.paint.get(&quot;text-translate-anchor&quot;),n.layout.get(&quot;text-rotation-alignment&quot;),n.layout.get(&quot;text-pitch-alignment&quot;),n.layout.get(&quot;text-keep-upright&quot;),o,s),r.map.showCollisionBoxes&amp;&amp;(Zr(e,r,n,i,n.paint.get(&quot;text-translate&quot;),n.paint.get(&quot;text-translate-anchor&quot;),!0),Zr(e,r,n,i,n.paint.get(&quot;icon-translate&quot;),n.paint.get(&quot;icon-translate-anchor&quot;),!1))}},circle:function(e,r,n,i){if(&quot;translucent&quot;===e.renderPass){var a=n.paint.get(&quot;circle-opacity&quot;),o=n.paint.get(&quot;circle-stroke-width&quot;),s=n.paint.get(&quot;circle-stroke-opacity&quot;),l=void 0!==n.layout.get(&quot;circle-sort-key&quot;).constantOr(1);if(0!==a.constantOr(1)||0!==o.constantOr(1)&amp;&amp;0!==s.constantOr(1)){for(var c=e.context,u=c.gl,f=e.depthModeForSublayer(0,Mt.ReadOnly),h=At.disabled,p=e.colorModeForRenderPass(),d=[],g=0;g&lt;i.length;g++){var m=i[g],v=r.getTile(m),y=v.getBucket(n);if(y){var x=y.programConfigurations.get(n.id),b={programConfiguration:x,program:e.useProgram(&quot;circle&quot;,x),layoutVertexBuffer:y.layoutVertexBuffer,indexBuffer:y.indexBuffer,uniformValues:Er(e,m,v,n)};if(l)for(var _=0,w=y.segments.get();_&lt;w.length;_+=1){var T=w[_];d.push({segments:new t.SegmentVector([T]),sortKey:T.sortKey,state:b})}else d.push({segments:y.segments,sortKey:0,state:b})}}l&amp;&amp;d.sort((function(t,e){return t.sortKey-e.sortKey}));for(var k=0,M=d;k&lt;M.length;k+=1){var A=M[k],S=A.state;S.program.draw(c,u.TRIANGLES,f,h,p,Et.disabled,S.uniformValues,n.id,S.layoutVertexBuffer,S.indexBuffer,A.segments,n.paint,e.transform.zoom,S.programConfiguration)}}}},heatmap:function(e,r,n,i){if(0!==n.paint.get(&quot;heatmap-opacity&quot;))if(&quot;offscreen&quot;===e.renderPass){var a=e.context,o=a.gl,s=At.disabled,l=new St([o.ONE,o.ONE],t.Color.transparent,[!0,!0,!0,!0]);!function(t,e,r){var n=t.gl;t.activeTexture.set(n.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);var i=r.heatmapFbo;if(i)n.bindTexture(n.TEXTURE_2D,i.colorAttachment.get()),t.bindFramebuffer.set(i.framebuffer);else{var a=n.createTexture();n.bindTexture(n.TEXTURE_2D,a),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),i=r.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4,!1),function(t,e,r,n){var i=t.gl;i.texImage2D(i.TEXTURE_2D,0,i.RGBA,e.width/4,e.height/4,0,i.RGBA,t.extRenderToTextureHalfFloat?t.extTextureHalfFloat.HALF_FLOAT_OES:i.UNSIGNED_BYTE,null),n.colorAttachment.set(r)}(t,e,a,i)}}(a,e,n),a.clear({color:t.Color.transparent});for(var c=0;c&lt;i.length;c++){var u=i[c];if(!r.hasRenderableParent(u)){var f=r.getTile(u),h=f.getBucket(n);if(h){var p=h.programConfigurations.get(n.id);e.useProgram(&quot;heatmap&quot;,p).draw(a,o.TRIANGLES,Mt.disabled,s,l,Et.disabled,zr(u.posMatrix,f,e.transform.zoom,n.paint.get(&quot;heatmap-intensity&quot;)),n.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,n.paint,e.transform.zoom,p)}}}a.viewport.set([0,0,e.width,e.height])}else&quot;translucent&quot;===e.renderPass&amp;&amp;(e.context.setColorMode(e.colorModeForRenderPass()),function(e,r){var n=e.context,i=n.gl,a=r.heatmapFbo;if(a){n.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),n.activeTexture.set(i.TEXTURE1);var o=r.colorRampTexture;o||(o=r.colorRampTexture=new t.Texture(n,r.colorRamp,i.RGBA)),o.bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram(&quot;heatmapTexture&quot;).draw(n,i.TRIANGLES,Mt.disabled,At.disabled,e.colorModeForRenderPass(),Et.disabled,function(e,r,n,i){var a=t.create();t.ortho(a,0,e.width,e.height,0,0,1);var o=e.context.gl;return{u_matrix:a,u_world:[o.drawingBufferWidth,o.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:r.paint.get(&quot;heatmap-opacity&quot;)}}(e,r),r.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,r.paint,e.transform.zoom)}}(e,n))},line:function(e,r,n,i){if(&quot;translucent&quot;===e.renderPass){var a=n.paint.get(&quot;line-opacity&quot;),o=n.paint.get(&quot;line-width&quot;);if(0!==a.constantOr(1)&amp;&amp;0!==o.constantOr(1)){var s=e.depthModeForSublayer(0,Mt.ReadOnly),l=e.colorModeForRenderPass(),c=n.paint.get(&quot;line-dasharray&quot;),u=n.paint.get(&quot;line-pattern&quot;),f=u.constantOr(1),h=n.paint.get(&quot;line-gradient&quot;),p=n.getCrossfadeParameters(),d=f?&quot;linePattern&quot;:c?&quot;lineSDF&quot;:h?&quot;lineGradient&quot;:&quot;line&quot;,g=e.context,m=g.gl,v=!0;if(h){g.activeTexture.set(m.TEXTURE0);var y=n.gradientTexture;if(!n.gradient)return;y||(y=n.gradientTexture=new t.Texture(g,n.gradient,m.RGBA)),y.bind(m.LINEAR,m.CLAMP_TO_EDGE)}for(var x=0,b=i;x&lt;b.length;x+=1){var _=b[x],w=r.getTile(_);if(!f||w.patternsLoaded()){var T=w.getBucket(n);if(T){var k=T.programConfigurations.get(n.id),M=e.context.program.get(),A=e.useProgram(d,k),S=v||A.program!==M,E=u.constantOr(null);if(E&amp;&amp;w.imageAtlas){var C=w.imageAtlas,L=C.patternPositions[E.to.toString()],I=C.patternPositions[E.from.toString()];L&amp;&amp;I&amp;&amp;k.setConstantPatternPositions(L,I)}var P=f?Rr(e,w,n,p):c?Fr(e,w,n,c,p):h?Dr(e,w,n):Or(e,w,n);f?(g.activeTexture.set(m.TEXTURE0),w.imageAtlasTexture.bind(m.LINEAR,m.CLAMP_TO_EDGE),k.updatePaintBuffers(p)):c&amp;&amp;(S||e.lineAtlas.dirty)&amp;&amp;(g.activeTexture.set(m.TEXTURE0),e.lineAtlas.bind(g)),A.draw(g,m.TRIANGLES,s,e.stencilModeForClipping(_),l,Et.disabled,P,n.id,T.layoutVertexBuffer,T.indexBuffer,T.segments,n.paint,e.transform.zoom,k),v=!1}}}}}},fill:function(e,r,n,i){var a=n.paint.get(&quot;fill-color&quot;),o=n.paint.get(&quot;fill-opacity&quot;);if(0!==o.constantOr(1)){var s=e.colorModeForRenderPass(),l=n.paint.get(&quot;fill-pattern&quot;),c=e.opaquePassEnabledForLayer()&amp;&amp;!l.constantOr(1)&amp;&amp;1===a.constantOr(t.Color.transparent).a&amp;&amp;1===o.constantOr(0)?&quot;opaque&quot;:&quot;translucent&quot;;if(e.renderPass===c){var u=e.depthModeForSublayer(1,&quot;opaque&quot;===e.renderPass?Mt.ReadWrite:Mt.ReadOnly);rn(e,r,n,i,u,s,!1)}if(&quot;translucent&quot;===e.renderPass&amp;&amp;n.paint.get(&quot;fill-antialias&quot;)){var f=e.depthModeForSublayer(n.getPaintProperty(&quot;fill-outline-color&quot;)?2:0,Mt.ReadOnly);rn(e,r,n,i,f,s,!0)}}},&quot;fill-extrusion&quot;:function(t,e,r,n){var i=r.paint.get(&quot;fill-extrusion-opacity&quot;);if(0!==i&amp;&amp;&quot;translucent&quot;===t.renderPass){var a=new Mt(t.context.gl.LEQUAL,Mt.ReadWrite,t.depthRangeFor3D);if(1!==i||r.paint.get(&quot;fill-extrusion-pattern&quot;).constantOr(1))nn(t,e,r,n,a,At.disabled,St.disabled),nn(t,e,r,n,a,t.stencilModeFor3D(),t.colorModeForRenderPass());else{var o=t.colorModeForRenderPass();nn(t,e,r,n,a,At.disabled,o)}}},hillshade:function(t,e,r,n){if(&quot;offscreen&quot;===t.renderPass||&quot;translucent&quot;===t.renderPass){for(var i=t.context,a=e.getSource().maxzoom,o=t.depthModeForSublayer(0,Mt.ReadOnly),s=t.colorModeForRenderPass(),l=&quot;translucent&quot;===t.renderPass?t.stencilConfigForOverlap(n):[{},n],c=l[0],u=0,f=l[1];u&lt;f.length;u+=1){var h=f[u],p=e.getTile(h);p.needsHillshadePrepare&amp;&amp;&quot;offscreen&quot;===t.renderPass?on(t,p,r,a,o,At.disabled,s):&quot;translucent&quot;===t.renderPass&amp;&amp;an(t,p,r,o,c[h.overscaledZ],s)}i.viewport.set([0,0,t.width,t.height])}},raster:function(t,e,r,n){if(&quot;translucent&quot;===t.renderPass&amp;&amp;0!==r.paint.get(&quot;raster-opacity&quot;)&amp;&amp;n.length)for(var i=t.context,a=i.gl,o=e.getSource(),s=t.useProgram(&quot;raster&quot;),l=t.colorModeForRenderPass(),c=o instanceof P?[{},n]:t.stencilConfigForOverlap(n),u=c[0],f=c[1],h=f[f.length-1].overscaledZ,p=!t.options.moving,d=0,g=f;d&lt;g.length;d+=1){var m=g[d],v=t.depthModeForSublayer(m.overscaledZ-h,1===r.paint.get(&quot;raster-opacity&quot;)?Mt.ReadWrite:Mt.ReadOnly,a.LESS),y=e.getTile(m),x=t.transform.calculatePosMatrix(m.toUnwrapped(),p);y.registerFadeDuration(r.paint.get(&quot;raster-fade-duration&quot;));var b=e.findLoadedParent(m,0),_=sn(y,b,e,r,t.transform),w=void 0,T=void 0,k=&quot;nearest&quot;===r.paint.get(&quot;raster-resampling&quot;)?a.NEAREST:a.LINEAR;i.activeTexture.set(a.TEXTURE0),y.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),i.activeTexture.set(a.TEXTURE1),b?(b.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),w=Math.pow(2,b.tileID.overscaledZ-y.tileID.overscaledZ),T=[y.tileID.canonical.x*w%1,y.tileID.canonical.y*w%1]):y.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST);var M=jr(x,T||[0,0],w||1,_,r);o instanceof P?s.draw(i,a.TRIANGLES,v,At.disabled,l,Et.disabled,M,r.id,o.boundsBuffer,t.quadTriangleIndexBuffer,o.boundsSegments):s.draw(i,a.TRIANGLES,v,u[m.overscaledZ],l,Et.disabled,M,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}},background:function(t,e,r){var n=r.paint.get(&quot;background-color&quot;),i=r.paint.get(&quot;background-opacity&quot;);if(0!==i){var a=t.context,o=a.gl,s=t.transform,l=s.tileSize,c=r.paint.get(&quot;background-pattern&quot;);if(!t.isPatternMissing(c)){var u=!c&amp;&amp;1===n.a&amp;&amp;1===i&amp;&amp;t.opaquePassEnabledForLayer()?&quot;opaque&quot;:&quot;translucent&quot;;if(t.renderPass===u){var f=At.disabled,h=t.depthModeForSublayer(0,&quot;opaque&quot;===u?Mt.ReadWrite:Mt.ReadOnly),p=t.colorModeForRenderPass(),d=t.useProgram(c?&quot;backgroundPattern&quot;:&quot;background&quot;),g=s.coveringTiles({tileSize:l});c&amp;&amp;(a.activeTexture.set(o.TEXTURE0),t.imageManager.bind(t.context));for(var m=r.getCrossfadeParameters(),v=0,y=g;v&lt;y.length;v+=1){var x=y[v],b=t.transform.calculatePosMatrix(x.toUnwrapped()),_=c?Wr(b,i,t,c,{tileID:x,tileSize:l},m):Yr(b,i,n);d.draw(a,o.TRIANGLES,h,f,p,Et.disabled,_,r.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments)}}}}},debug:function(t,e,r){for(var n=0;n&lt;r.length;n++)mn(t,e,r[n])},custom:function(t,e,r){var n=t.context,i=r.implementation;if(&quot;offscreen&quot;===t.renderPass){var a=i.prerender;a&amp;&amp;(t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),a.call(i,n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState())}else if(&quot;translucent&quot;===t.renderPass){t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),n.setStencilMode(At.disabled);var o=&quot;3d&quot;===i.renderingMode?new Mt(t.context.gl.LEQUAL,Mt.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,Mt.ReadOnly);n.setDepthMode(o),i.render(n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState(),n.bindFramebuffer.set(null)}}},yn=function(t,e){this.context=new Ct(t),this.transform=e,this._tileTextures={},this.setup(),this.numSublayers=Lt.maxUnderzooming+Lt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Be,this.gpuTimers={}};yn.prototype.resize=function(e,r){if(this.width=e*t.browser.devicePixelRatio,this.height=r*t.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var n=0,i=this.style._order;n&lt;i.length;n+=1)this.style._layers[i[n]].resize()},yn.prototype.setup=function(){var e=this.context,r=new t.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(t.EXTENT,0),r.emplaceBack(0,t.EXTENT),r.emplaceBack(t.EXTENT,t.EXTENT),this.tileExtentBuffer=e.createVertexBuffer(r,He.members),this.tileExtentSegments=t.SegmentVector.simpleSegment(0,0,4,2);var n=new t.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(t.EXTENT,0),n.emplaceBack(0,t.EXTENT),n.emplaceBack(t.EXTENT,t.EXTENT),this.debugBuffer=e.createVertexBuffer(n,He.members),this.debugSegments=t.SegmentVector.simpleSegment(0,0,4,5);var i=new t.StructArrayLayout4i8;i.emplaceBack(0,0,0,0),i.emplaceBack(t.EXTENT,0,t.EXTENT,0),i.emplaceBack(0,t.EXTENT,0,t.EXTENT),i.emplaceBack(t.EXTENT,t.EXTENT,t.EXTENT,t.EXTENT),this.rasterBoundsBuffer=e.createVertexBuffer(i,I.members),this.rasterBoundsSegments=t.SegmentVector.simpleSegment(0,0,4,2);var a=new t.StructArrayLayout2i4;a.emplaceBack(0,0),a.emplaceBack(1,0),a.emplaceBack(0,1),a.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(a,He.members),this.viewportSegments=t.SegmentVector.simpleSegment(0,0,4,2);var o=new t.StructArrayLayout1ui2;o.emplaceBack(0),o.emplaceBack(1),o.emplaceBack(3),o.emplaceBack(2),o.emplaceBack(0),this.tileBorderIndexBuffer=e.createIndexBuffer(o);var s=new t.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(s),this.emptyTexture=new t.Texture(e,{width:1,height:1,data:new Uint8Array([0,0,0,0])},e.gl.RGBA);var l=this.context.gl;this.stencilClearMode=new At({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)},yn.prototype.clearStencil=function(){var e=this.context,r=e.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var n=t.create();t.ortho(n,0,this.width,this.height,0,0,1),t.scale(n,n,[r.drawingBufferWidth,r.drawingBufferHeight,0]),this.useProgram(&quot;clippingMask&quot;).draw(e,r.TRIANGLES,Mt.disabled,this.stencilClearMode,St.disabled,Et.disabled,Pr(n),&quot;$clipping&quot;,this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},yn.prototype._renderTileClippingMasks=function(t,e){if(this.currentStencilSource!==t.source&amp;&amp;t.isTileClipped()&amp;&amp;e&amp;&amp;e.length){this.currentStencilSource=t.source;var r=this.context,n=r.gl;this.nextStencilID+e.length&gt;256&amp;&amp;this.clearStencil(),r.setColorMode(St.disabled),r.setDepthMode(Mt.disabled);var i=this.useProgram(&quot;clippingMask&quot;);this._tileClippingMaskIDs={};for(var a=0,o=e;a&lt;o.length;a+=1){var s=o[a],l=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;i.draw(r,n.TRIANGLES,Mt.disabled,new At({func:n.ALWAYS,mask:0},l,255,n.KEEP,n.KEEP,n.REPLACE),St.disabled,Et.disabled,Pr(s.posMatrix),&quot;$clipping&quot;,this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},yn.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1&gt;256&amp;&amp;this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new At({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},yn.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new At({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},yn.prototype.stencilConfigForOverlap=function(t){var e,r=this.context.gl,n=t.sort((function(t,e){return e.overscaledZ-t.overscaledZ})),i=n[n.length-1].overscaledZ,a=n[0].overscaledZ-i+1;if(a&gt;1){this.currentStencilSource=void 0,this.nextStencilID+a&gt;256&amp;&amp;this.clearStencil();for(var o={},s=0;s&lt;a;s++)o[s+i]=new At({func:r.GEQUAL,mask:255},s+this.nextStencilID,255,r.KEEP,r.KEEP,r.REPLACE);return this.nextStencilID+=a,[o,n]}return[(e={},e[i]=At.disabled,e),n]},yn.prototype.colorModeForRenderPass=function(){var e=this.context.gl;return this._showOverdrawInspector?new St([e.CONSTANT_COLOR,e.ONE],new t.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):&quot;opaque&quot;===this.renderPass?St.unblended:St.alphaBlended},yn.prototype.depthModeForSublayer=function(t,e,r){if(!this.opaquePassEnabledForLayer())return Mt.disabled;var n=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new Mt(r||this.context.gl.LEQUAL,e,[n,n])},yn.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer&lt;this.opaquePassCutoff},yn.prototype.render=function(e,r){var n=this;this.style=e,this.options=r,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(t.browser.now()),this.imageManager.beginFrame();var i=this.style._order,a=this.style.sourceCaches;for(var o in a){var s=a[o];s.used&amp;&amp;s.prepare(this.context)}var l,c,u={},f={},h={};for(var p in a){var d=a[p];u[p]=d.getVisibleCoordinates(),f[p]=u[p].slice().reverse(),h[p]=d.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(var g=0;g&lt;i.length;g++)if(this.style._layers[i[g]].is3D()){this.opaquePassCutoff=g;break}this.renderPass=&quot;offscreen&quot;;for(var m=0,v=i;m&lt;v.length;m+=1){var y=this.style._layers[v[m]];if(y.hasOffscreenPass()&amp;&amp;!y.isHidden(this.transform.zoom)){var x=f[y.source];(&quot;custom&quot;===y.type||x.length)&amp;&amp;this.renderLayer(this,a[y.source],y,x)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:r.showOverdrawInspector?t.Color.black:t.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=r.showOverdrawInspector,this.depthRangeFor3D=[0,1-(e._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass=&quot;opaque&quot;,this.currentLayer=i.length-1;this.currentLayer&gt;=0;this.currentLayer--){var b=this.style._layers[i[this.currentLayer]],_=a[b.source],w=u[b.source];this._renderTileClippingMasks(b,w),this.renderLayer(this,_,b,w)}for(this.renderPass=&quot;translucent&quot;,this.currentLayer=0;this.currentLayer&lt;i.length;this.currentLayer++){var T=this.style._layers[i[this.currentLayer]],k=a[T.source],M=(&quot;symbol&quot;===T.type?h:f)[T.source];this._renderTileClippingMasks(T,u[T.source]),this.renderLayer(this,k,T,M)}this.options.showTileBoundaries&amp;&amp;(t.values(this.style._layers).forEach((function(t){t.source&amp;&amp;!t.isHidden(n.transform.zoom)&amp;&amp;(t.source!==(c&amp;&amp;c.id)&amp;&amp;(c=n.style.sourceCaches[t.source]),(!l||l.getSource().maxzoom&lt;c.getSource().maxzoom)&amp;&amp;(l=c))})),l&amp;&amp;vn.debug(this,l,l.getVisibleCoordinates())),this.options.showPadding&amp;&amp;function(t){var e=t.transform.padding;pn(t,t.transform.height-(e.top||0),3,ln),pn(t,e.bottom||0,3,cn),dn(t,e.left||0,3,un),dn(t,t.transform.width-(e.right||0),3,fn);var r=t.transform.centerPoint;!function(t,e,r,n){gn(t,e-1,r-10,2,20,n),gn(t,e-10,r-1,20,2,n)}(t,r.x,t.transform.height-r.y,hn)}(this),this.context.setDefault()},yn.prototype.renderLayer=function(t,e,r,n){r.isHidden(this.transform.zoom)||(&quot;background&quot;===r.type||&quot;custom&quot;===r.type||n.length)&amp;&amp;(this.id=r.id,this.gpuTimingStart(r),vn[r.type](t,e,r,n,this.style.placement.variableOffsets),this.gpuTimingEnd())},yn.prototype.gpuTimingStart=function(t){if(this.options.gpuTiming){var e=this.context.extTimerQuery,r=this.gpuTimers[t.id];r||(r=this.gpuTimers[t.id]={calls:0,cpuTime:0,query:e.createQueryEXT()}),r.calls++,e.beginQueryEXT(e.TIME_ELAPSED_EXT,r.query)}},yn.prototype.gpuTimingEnd=function(){if(this.options.gpuTiming){var t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}},yn.prototype.collectGpuTimers=function(){var t=this.gpuTimers;return this.gpuTimers={},t},yn.prototype.queryGpuTimers=function(t){var e={};for(var r in t){var n=t[r],i=this.context.extTimerQuery,a=i.getQueryObjectEXT(n.query,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(n.query),e[r]=a}return e},yn.prototype.translatePosMatrix=function(e,r,n,i,a){if(!n[0]&amp;&amp;!n[1])return e;var o=a?&quot;map&quot;===i?this.transform.angle:0:&quot;viewport&quot;===i?-this.transform.angle:0;if(o){var s=Math.sin(o),l=Math.cos(o);n=[n[0]*l-n[1]*s,n[0]*s+n[1]*l]}var c=[a?n[0]:he(r,n[0],this.transform.zoom),a?n[1]:he(r,n[1],this.transform.zoom),0],u=new Float32Array(16);return t.translate(u,e,c),u},yn.prototype.saveTileTexture=function(t){var e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]},yn.prototype.getTileTexture=function(t){var e=this._tileTextures[t];return e&amp;&amp;e.length&gt;0?e.pop():null},yn.prototype.isPatternMissing=function(t){if(!t)return!1;if(!t.from||!t.to)return!0;var e=this.imageManager.getPattern(t.from.toString()),r=this.imageManager.getPattern(t.to.toString());return!e||!r},yn.prototype.useProgram=function(t,e){this.cache=this.cache||{};var r=&quot;&quot;+t+(e?e.cacheKey:&quot;&quot;)+(this._showOverdrawInspector?&quot;/overdraw&quot;:&quot;&quot;);return this.cache[r]||(this.cache[r]=new br(this.context,yr[t],e,Xr[t],this._showOverdrawInspector)),this.cache[r]},yn.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},yn.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)},yn.prototype.initDebugOverlayCanvas=function(){null==this.debugOverlayCanvas&amp;&amp;(this.debugOverlayCanvas=t.window.document.createElement(&quot;canvas&quot;),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},yn.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&amp;&amp;this.debugOverlayTexture.destroy()};var xn=function(t,e){this.points=t,this.planes=e};xn.fromInvProjectionMatrix=function(e,r,n){var i=Math.pow(2,n),a=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((function(r){return t.transformMat4([],r,e)})).map((function(e){return t.scale$1([],e,1/e[3]/r*i)})),o=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(e){var r=t.sub([],a[e[0]],a[e[1]]),n=t.sub([],a[e[2]],a[e[1]]),i=t.normalize([],t.cross([],r,n)),o=-t.dot(i,a[e[1]]);return i.concat(o)}));return new xn(a,o)};var bn=function(e,r){this.min=e,this.max=r,this.center=t.scale$2([],t.add([],this.min,this.max),.5)};bn.prototype.quadrant=function(e){for(var r=[e%2==0,e&lt;2],n=t.clone$2(this.min),i=t.clone$2(this.max),a=0;a&lt;r.length;a++)n[a]=r[a]?this.min[a]:this.center[a],i[a]=r[a]?this.center[a]:this.max[a];return i[2]=this.max[2],new bn(n,i)},bn.prototype.distanceX=function(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]},bn.prototype.distanceY=function(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]},bn.prototype.intersects=function(e){for(var r=[[this.min[0],this.min[1],0,1],[this.max[0],this.min[1],0,1],[this.max[0],this.max[1],0,1],[this.min[0],this.max[1],0,1]],n=!0,i=0;i&lt;e.planes.length;i++){for(var a=e.planes[i],o=0,s=0;s&lt;r.length;s++)o+=t.dot$1(a,r[s])&gt;=0;if(0===o)return 0;o!==r.length&amp;&amp;(n=!1)}if(n)return 2;for(var l=0;l&lt;3;l++){for(var c=Number.MAX_VALUE,u=-Number.MAX_VALUE,f=0;f&lt;e.points.length;f++){var h=e.points[f][l]-this.min[l];c=Math.min(c,h),u=Math.max(u,h)}if(u&lt;0||c&gt;this.max[l]-this.min[l])return 0}return 1};var _n=function(t,e,r,n){if(void 0===t&amp;&amp;(t=0),void 0===e&amp;&amp;(e=0),void 0===r&amp;&amp;(r=0),void 0===n&amp;&amp;(n=0),isNaN(t)||t&lt;0||isNaN(e)||e&lt;0||isNaN(r)||r&lt;0||isNaN(n)||n&lt;0)throw new Error(&quot;Invalid value for edge-insets, top, bottom, left and right must all be numbers&quot;);this.top=t,this.bottom=e,this.left=r,this.right=n};_n.prototype.interpolate=function(e,r,n){return null!=r.top&amp;&amp;null!=e.top&amp;&amp;(this.top=t.number(e.top,r.top,n)),null!=r.bottom&amp;&amp;null!=e.bottom&amp;&amp;(this.bottom=t.number(e.bottom,r.bottom,n)),null!=r.left&amp;&amp;null!=e.left&amp;&amp;(this.left=t.number(e.left,r.left,n)),null!=r.right&amp;&amp;null!=e.right&amp;&amp;(this.right=t.number(e.right,r.right,n)),this},_n.prototype.getCenter=function(e,r){var n=t.clamp((this.left+e-this.right)/2,0,e),i=t.clamp((this.top+r-this.bottom)/2,0,r);return new t.Point(n,i)},_n.prototype.equals=function(t){return this.top===t.top&amp;&amp;this.bottom===t.bottom&amp;&amp;this.left===t.left&amp;&amp;this.right===t.right},_n.prototype.clone=function(){return new _n(this.top,this.bottom,this.left,this.right)},_n.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var wn=function(e,r,n,i,a){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===a||a,this._minZoom=e||0,this._maxZoom=r||22,this._minPitch=null==n?0:n,this._maxPitch=null==i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new _n,this._posMatrixCache={},this._alignedPosMatrixCache={}},Tn={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};wn.prototype.clone=function(){var t=new wn(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._calcMatrices(),t},Tn.minZoom.get=function(){return this._minZoom},Tn.minZoom.set=function(t){this._minZoom!==t&amp;&amp;(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Tn.maxZoom.get=function(){return this._maxZoom},Tn.maxZoom.set=function(t){this._maxZoom!==t&amp;&amp;(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Tn.minPitch.get=function(){return this._minPitch},Tn.minPitch.set=function(t){this._minPitch!==t&amp;&amp;(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},Tn.maxPitch.get=function(){return this._maxPitch},Tn.maxPitch.set=function(t){this._maxPitch!==t&amp;&amp;(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},Tn.renderWorldCopies.get=function(){return this._renderWorldCopies},Tn.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&amp;&amp;(t=!1),this._renderWorldCopies=t},Tn.worldSize.get=function(){return this.tileSize*this.scale},Tn.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Tn.size.get=function(){return new t.Point(this.width,this.height)},Tn.bearing.get=function(){return-this.angle/Math.PI*180},Tn.bearing.set=function(e){var r=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==r&amp;&amp;(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Tn.pitch.get=function(){return this._pitch/Math.PI*180},Tn.pitch.set=function(e){var r=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==r&amp;&amp;(this._unmodified=!1,this._pitch=r,this._calcMatrices())},Tn.fov.get=function(){return this._fov/Math.PI*180},Tn.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&amp;&amp;(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Tn.zoom.get=function(){return this._zoom},Tn.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&amp;&amp;(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Tn.center.get=function(){return this._center},Tn.center.set=function(t){t.lat===this._center.lat&amp;&amp;t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Tn.padding.get=function(){return this._edgeInsets.toJSON()},Tn.padding.set=function(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())},Tn.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},wn.prototype.isPaddingEqual=function(t){return this._edgeInsets.equals(t)},wn.prototype.interpolatePadding=function(t,e,r){this._unmodified=!1,this._edgeInsets.interpolate(t,e,r),this._constrain(),this._calcMatrices()},wn.prototype.coveringZoomLevel=function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)},wn.prototype.getVisibleUnwrappedCoordinates=function(e){var r=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var n=this.pointCoordinate(new t.Point(0,0)),i=this.pointCoordinate(new t.Point(this.width,0)),a=this.pointCoordinate(new t.Point(this.width,this.height)),o=this.pointCoordinate(new t.Point(0,this.height)),s=Math.floor(Math.min(n.x,i.x,a.x,o.x)),l=Math.floor(Math.max(n.x,i.x,a.x,o.x)),c=s-1;c&lt;=l+1;c++)0!==c&amp;&amp;r.push(new t.UnwrappedTileID(c,e));return r},wn.prototype.coveringTiles=function(e){var r=this.coveringZoomLevel(e),n=r;if(void 0!==e.minzoom&amp;&amp;r&lt;e.minzoom)return[];void 0!==e.maxzoom&amp;&amp;r&gt;e.maxzoom&amp;&amp;(r=e.maxzoom);var i=t.MercatorCoordinate.fromLngLat(this.center),a=Math.pow(2,r),o=[a*i.x,a*i.y,0],s=xn.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,r),l=e.minzoom||0;this.pitch&lt;=60&amp;&amp;this._edgeInsets.top&lt;.1&amp;&amp;(l=r);var c=function(t){return{aabb:new bn([t*a,0,0],[(t+1)*a,a,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}},u=[],f=[],h=r,p=e.reparseOverscaled?n:r;if(this._renderWorldCopies)for(var d=1;d&lt;=3;d++)u.push(c(-d)),u.push(c(d));for(u.push(c(0));u.length&gt;0;){var g=u.pop(),m=g.x,v=g.y,y=g.fullyVisible;if(!y){var x=g.aabb.intersects(s);if(0===x)continue;y=2===x}var b=g.aabb.distanceX(o),_=g.aabb.distanceY(o),w=Math.max(Math.abs(b),Math.abs(_));if(g.zoom===h||w&gt;3+(1&lt;&lt;h-g.zoom)-2&amp;&amp;g.zoom&gt;=l)f.push({tileID:new t.OverscaledTileID(g.zoom===h?p:g.zoom,g.wrap,g.zoom,m,v),distanceSq:t.sqrLen([o[0]-.5-m,o[1]-.5-v])});else for(var T=0;T&lt;4;T++){var k=(m&lt;&lt;1)+T%2,M=(v&lt;&lt;1)+(T&gt;&gt;1);u.push({aabb:g.aabb.quadrant(T),zoom:g.zoom+1,x:k,y:M,wrap:g.wrap,fullyVisible:y})}}return f.sort((function(t,e){return t.distanceSq-e.distanceSq})).map((function(t){return t.tileID}))},wn.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Tn.unmodified.get=function(){return this._unmodified},wn.prototype.zoomScale=function(t){return Math.pow(2,t)},wn.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},wn.prototype.project=function(e){var r=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(r)*this.worldSize)},wn.prototype.unproject=function(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()},Tn.point.get=function(){return this.project(this.center)},wn.prototype.setLocationAtPoint=function(e,r){var n=this.pointCoordinate(r),i=this.pointCoordinate(this.centerPoint),a=this.locationCoordinate(e),o=new t.MercatorCoordinate(a.x-(n.x-i.x),a.y-(n.y-i.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&amp;&amp;(this.center=this.center.wrap())},wn.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},wn.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},wn.prototype.locationCoordinate=function(e){return t.MercatorCoordinate.fromLngLat(e)},wn.prototype.coordinateLocation=function(t){return t.toLngLat()},wn.prototype.pointCoordinate=function(e){var r=[e.x,e.y,0,1],n=[e.x,e.y,1,1];t.transformMat4(r,r,this.pixelMatrixInverse),t.transformMat4(n,n,this.pixelMatrixInverse);var i=r[3],a=n[3],o=r[1]/i,s=n[1]/a,l=r[2]/i,c=n[2]/a,u=l===c?0:(0-l)/(c-l);return new t.MercatorCoordinate(t.number(r[0]/i,n[0]/a,u)/this.worldSize,t.number(o,s,u)/this.worldSize)},wn.prototype.coordinatePoint=function(e){var r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix),new t.Point(r[0]/r[3],r[1]/r[3])},wn.prototype.getBounds=function(){return(new t.LngLatBounds).extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},wn.prototype.getMaxBounds=function(){return this.latRange&amp;&amp;2===this.latRange.length&amp;&amp;this.lngRange&amp;&amp;2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},wn.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},wn.prototype.calculatePosMatrix=function(e,r){void 0===r&amp;&amp;(r=!1);var n=e.key,i=r?this._alignedPosMatrixCache:this._posMatrixCache;if(i[n])return i[n];var a=e.canonical,o=this.worldSize/this.zoomScale(a.z),s=a.x+Math.pow(2,a.z)*e.wrap,l=t.identity(new Float64Array(16));return t.translate(l,l,[s*o,a.y*o,0]),t.scale(l,l,[o/t.EXTENT,o/t.EXTENT,1]),t.multiply(l,r?this.alignedProjMatrix:this.projMatrix,l),i[n]=new Float32Array(l),i[n]},wn.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},wn.prototype._constrain=function(){if(this.center&amp;&amp;this.width&amp;&amp;this.height&amp;&amp;!this._constraining){this._constraining=!0;var e,r,n,i,a=-90,o=90,s=-180,l=180,c=this.size,u=this._unmodified;if(this.latRange){var f=this.latRange;a=t.mercatorYfromLat(f[1])*this.worldSize,e=(o=t.mercatorYfromLat(f[0])*this.worldSize)-a&lt;c.y?c.y/(o-a):0}if(this.lngRange){var h=this.lngRange;s=t.mercatorXfromLng(h[0])*this.worldSize,r=(l=t.mercatorXfromLng(h[1])*this.worldSize)-s&lt;c.x?c.x/(l-s):0}var p=this.point,d=Math.max(r||0,e||0);if(d)return this.center=this.unproject(new t.Point(r?(l+s)/2:p.x,e?(o+a)/2:p.y)),this.zoom+=this.scaleZoom(d),this._unmodified=u,void(this._constraining=!1);if(this.latRange){var g=p.y,m=c.y/2;g-m&lt;a&amp;&amp;(i=a+m),g+m&gt;o&amp;&amp;(i=o-m)}if(this.lngRange){var v=p.x,y=c.x/2;v-y&lt;s&amp;&amp;(n=s+y),v+y&gt;l&amp;&amp;(n=l-y)}void 0===n&amp;&amp;void 0===i||(this.center=this.unproject(new t.Point(void 0!==n?n:p.x,void 0!==i?i:p.y))),this._unmodified=u,this._constraining=!1}},wn.prototype._calcMatrices=function(){if(this.height){var e=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var r=Math.PI/2+this._pitch,n=this._fov*(.5+e.y/this.height),i=Math.sin(n)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-r-n,.01,Math.PI-.01)),a=this.point,o=a.x,s=a.y,l=1.01*(Math.cos(Math.PI/2-this._pitch)*i+this.cameraToCenterDistance),c=this.height/50,u=new Float64Array(16);t.perspective(u,this._fov,this.width/this.height,c,l),u[8]=2*-e.x/this.width,u[9]=2*e.y/this.height,t.scale(u,u,[1,-1,1]),t.translate(u,u,[0,0,-this.cameraToCenterDistance]),t.rotateX(u,u,this._pitch),t.rotateZ(u,u,this.angle),t.translate(u,u,[-o,-s,0]),this.mercatorMatrix=t.scale([],u,[this.worldSize,this.worldSize,this.worldSize]),t.scale(u,u,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=u,this.invProjMatrix=t.invert([],this.projMatrix);var f=this.width%2/2,h=this.height%2/2,p=Math.cos(this.angle),d=Math.sin(this.angle),g=o-Math.round(o)+p*f+d*h,m=s-Math.round(s)+p*h+d*f,v=new Float64Array(u);if(t.translate(v,v,[g&gt;.5?g-1:g,m&gt;.5?m-1:m,0]),this.alignedProjMatrix=v,u=t.create(),t.scale(u,u,[this.width/2,-this.height/2,1]),t.translate(u,u,[1,-1,0]),this.labelPlaneMatrix=u,u=t.create(),t.scale(u,u,[1,-1,1]),t.translate(u,u,[-1,-1,0]),t.scale(u,u,[2/this.width,2/this.height,1]),this.glCoordMatrix=u,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(u=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error(&quot;failed to invert matrix&quot;);this.pixelMatrixInverse=u,this._posMatrixCache={},this._alignedPosMatrixCache={}}},wn.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)),r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance},wn.prototype.getCameraPoint=function(){var e=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,e))},wn.prototype.getCameraQueryGeometry=function(e){var r=this.getCameraPoint();if(1===e.length)return[e[0],r];for(var n=r.x,i=r.y,a=r.x,o=r.y,s=0,l=e;s&lt;l.length;s+=1){var c=l[s];n=Math.min(n,c.x),i=Math.min(i,c.y),a=Math.max(a,c.x),o=Math.max(o,c.y)}return[new t.Point(n,i),new t.Point(a,i),new t.Point(a,o),new t.Point(n,o),new t.Point(n,i)]},Object.defineProperties(wn.prototype,Tn);var kn=function(e){var r,n,i,a;this._hashName=e&amp;&amp;encodeURIComponent(e),t.bindAll([&quot;_getCurrentHash&quot;,&quot;_onHashChange&quot;,&quot;_updateHash&quot;],this),this._updateHash=(r=this._updateHashUnthrottled.bind(this),n=!1,i=null,a=function(){i=null,n&amp;&amp;(r(),i=setTimeout(a,300),n=!1)},function(){return n=!0,i||a(),i})};kn.prototype.addTo=function(e){return this._map=e,t.window.addEventListener(&quot;hashchange&quot;,this._onHashChange,!1),this._map.on(&quot;moveend&quot;,this._updateHash),this},kn.prototype.remove=function(){return t.window.removeEventListener(&quot;hashchange&quot;,this._onHashChange,!1),this._map.off(&quot;moveend&quot;,this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},kn.prototype.getHashString=function(e){var r=this._map.getCenter(),n=Math.round(100*this._map.getZoom())/100,i=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),a=Math.pow(10,i),o=Math.round(r.lng*a)/a,s=Math.round(r.lat*a)/a,l=this._map.getBearing(),c=this._map.getPitch(),u=&quot;&quot;;if(u+=e?&quot;/&quot;+o+&quot;/&quot;+s+&quot;/&quot;+n:n+&quot;/&quot;+s+&quot;/&quot;+o,(l||c)&amp;&amp;(u+=&quot;/&quot;+Math.round(10*l)/10),c&amp;&amp;(u+=&quot;/&quot;+Math.round(c)),this._hashName){var f=this._hashName,h=!1,p=t.window.location.hash.slice(1).split(&quot;&amp;&quot;).map((function(t){var e=t.split(&quot;=&quot;)[0];return e===f?(h=!0,e+&quot;=&quot;+u):t})).filter((function(t){return t}));return h||p.push(f+&quot;=&quot;+u),&quot;#&quot;+p.join(&quot;&amp;&quot;)}return&quot;#&quot;+u},kn.prototype._getCurrentHash=function(){var e,r=this,n=t.window.location.hash.replace(&quot;#&quot;,&quot;&quot;);return this._hashName?(n.split(&quot;&amp;&quot;).map((function(t){return t.split(&quot;=&quot;)})).forEach((function(t){t[0]===r._hashName&amp;&amp;(e=t)})),(e&amp;&amp;e[1]||&quot;&quot;).split(&quot;/&quot;)):n.split(&quot;/&quot;)},kn.prototype._onHashChange=function(){var t=this._getCurrentHash();if(t.length&gt;=3&amp;&amp;!t.some((function(t){return isNaN(t)}))){var e=this._map.dragRotate.isEnabled()&amp;&amp;this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},kn.prototype._updateHashUnthrottled=function(){var e=this.getHashString();try{t.window.history.replaceState(t.window.history.state,&quot;&quot;,e)}catch(t){}};var Mn={linearity:.3,easing:t.bezier(0,0,.3,1)},An=t.extend({deceleration:2500,maxSpeed:1400},Mn),Sn=t.extend({deceleration:20,maxSpeed:1400},Mn),En=t.extend({deceleration:1e3,maxSpeed:360},Mn),Cn=t.extend({deceleration:1e3,maxSpeed:90},Mn),Ln=function(t){this._map=t,this.clear()};function In(t,e){(!t.duration||t.duration&lt;e.duration)&amp;&amp;(t.duration=e.duration,t.easing=e.easing)}function Pn(e,r,n){var i=n.maxSpeed,a=n.linearity,o=n.deceleration,s=t.clamp(e*a/(r/1e3),-i,i),l=Math.abs(s)/(o*a);return{easing:n.easing,duration:1e3*l,amount:s*(l/2)}}Ln.prototype.clear=function(){this._inertiaBuffer=[]},Ln.prototype.record=function(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:t.browser.now(),settings:e})},Ln.prototype._drainInertiaBuffer=function(){for(var e=this._inertiaBuffer,r=t.browser.now();e.length&gt;0&amp;&amp;r-e[0].time&gt;160;)e.shift()},Ln.prototype._onMoveEnd=function(e){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length&lt;2)){for(var r={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0},n=0,i=this._inertiaBuffer;n&lt;i.length;n+=1){var a=i[n].settings;r.zoom+=a.zoomDelta||0,r.bearing+=a.bearingDelta||0,r.pitch+=a.pitchDelta||0,a.panDelta&amp;&amp;r.pan._add(a.panDelta),a.around&amp;&amp;(r.around=a.around),a.pinchAround&amp;&amp;(r.pinchAround=a.pinchAround)}var o=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,s={};if(r.pan.mag()){var l=Pn(r.pan.mag(),o,t.extend({},An,e||{}));s.offset=r.pan.mult(l.amount/r.pan.mag()),s.center=this._map.transform.center,In(s,l)}if(r.zoom){var c=Pn(r.zoom,o,Sn);s.zoom=this._map.transform.zoom+c.amount,In(s,c)}if(r.bearing){var u=Pn(r.bearing,o,En);s.bearing=this._map.transform.bearing+t.clamp(u.amount,-179,179),In(s,u)}if(r.pitch){var f=Pn(r.pitch,o,Cn);s.pitch=this._map.transform.pitch+f.amount,In(s,f)}if(s.zoom||s.bearing){var h=void 0===r.pinchAround?r.around:r.pinchAround;s.around=h?this._map.unproject(h):this._map.getCenter()}return this.clear(),t.extend(s,{noMoveStart:!0})}};var zn=function(e){function n(n,i,a,o){void 0===o&amp;&amp;(o={});var s=r.mousePos(i.getCanvasContainer(),a),l=i.unproject(s);e.call(this,n,t.extend({point:s,lngLat:l,originalEvent:a},o)),this._defaultPrevented=!1,this.target=i}e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),On=function(e){function n(n,i,a){var o=&quot;touchend&quot;===n?a.changedTouches:a.touches,s=r.touchPos(i.getCanvasContainer(),o),l=s.map((function(t){return i.unproject(t)})),c=s.reduce((function(t,e,r,n){return t.add(e.div(n.length))}),new t.Point(0,0)),u=i.unproject(c);e.call(this,n,{points:s,point:c,lngLats:l,lngLat:u,originalEvent:a}),this._defaultPrevented=!1}e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),Dn=function(t){function e(e,r,n){t.call(this,e,{originalEvent:n}),this._defaultPrevented=!1}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={defaultPrevented:{configurable:!0}};return e.prototype.preventDefault=function(){this._defaultPrevented=!0},r.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(e.prototype,r),e}(t.Event),Rn=function(t,e){this._map=t,this._clickTolerance=e.clickTolerance};Rn.prototype.reset=function(){delete this._mousedownPos},Rn.prototype.wheel=function(t){return this._firePreventable(new Dn(t.type,this._map,t))},Rn.prototype.mousedown=function(t,e){return this._mousedownPos=e,this._firePreventable(new zn(t.type,this._map,t))},Rn.prototype.mouseup=function(t){this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.click=function(t,e){this._mousedownPos&amp;&amp;this._mousedownPos.dist(e)&gt;=this._clickTolerance||this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.dblclick=function(t){return this._firePreventable(new zn(t.type,this._map,t))},Rn.prototype.mouseover=function(t){this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.mouseout=function(t){this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.touchstart=function(t){return this._firePreventable(new On(t.type,this._map,t))},Rn.prototype.touchmove=function(t){this._map.fire(new On(t.type,this._map,t))},Rn.prototype.touchend=function(t){this._map.fire(new On(t.type,this._map,t))},Rn.prototype.touchcancel=function(t){this._map.fire(new On(t.type,this._map,t))},Rn.prototype._firePreventable=function(t){if(this._map.fire(t),t.defaultPrevented)return{}},Rn.prototype.isEnabled=function(){return!0},Rn.prototype.isActive=function(){return!1},Rn.prototype.enable=function(){},Rn.prototype.disable=function(){};var Fn=function(t){this._map=t};Fn.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Fn.prototype.mousemove=function(t){this._map.fire(new zn(t.type,this._map,t))},Fn.prototype.mousedown=function(){this._delayContextMenu=!0},Fn.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&amp;&amp;(this._map.fire(new zn(&quot;contextmenu&quot;,this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Fn.prototype.contextmenu=function(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new zn(t.type,this._map,t)),this._map.listens(&quot;contextmenu&quot;)&amp;&amp;t.preventDefault()},Fn.prototype.isEnabled=function(){return!0},Fn.prototype.isActive=function(){return!1},Fn.prototype.enable=function(){},Fn.prototype.disable=function(){};var Bn=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1};function Nn(t,e){for(var r={},n=0;n&lt;t.length;n++)r[t[n].identifier]=e[n];return r}Bn.prototype.isEnabled=function(){return!!this._enabled},Bn.prototype.isActive=function(){return!!this._active},Bn.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Bn.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},Bn.prototype.mousedown=function(t,e){this.isEnabled()&amp;&amp;t.shiftKey&amp;&amp;0===t.button&amp;&amp;(r.disableDrag(),this._startPos=this._lastPos=e,this._active=!0)},Bn.prototype.mousemoveWindow=function(t,e){if(this._active){var n=e;if(!(this._lastPos.equals(n)||!this._box&amp;&amp;n.dist(this._startPos)&lt;this._clickTolerance)){var i=this._startPos;this._lastPos=n,this._box||(this._box=r.create(&quot;div&quot;,&quot;mapboxgl-boxzoom&quot;,this._container),this._container.classList.add(&quot;mapboxgl-crosshair&quot;),this._fireEvent(&quot;boxzoomstart&quot;,t));var a=Math.min(i.x,n.x),o=Math.max(i.x,n.x),s=Math.min(i.y,n.y),l=Math.max(i.y,n.y);r.setTransform(this._box,&quot;translate(&quot;+a+&quot;px,&quot;+s+&quot;px)&quot;),this._box.style.width=o-a+&quot;px&quot;,this._box.style.height=l-s+&quot;px&quot;}}},Bn.prototype.mouseupWindow=function(e,n){var i=this;if(this._active&amp;&amp;0===e.button){var a=this._startPos,o=n;if(this.reset(),r.suppressClick(),a.x!==o.x||a.y!==o.y)return this._map.fire(new t.Event(&quot;boxzoomend&quot;,{originalEvent:e})),{cameraAnimation:function(t){return t.fitScreenCoordinates(a,o,i._map.getBearing(),{linear:!0})}};this._fireEvent(&quot;boxzoomcancel&quot;,e)}},Bn.prototype.keydown=function(t){this._active&amp;&amp;27===t.keyCode&amp;&amp;(this.reset(),this._fireEvent(&quot;boxzoomcancel&quot;,t))},Bn.prototype.reset=function(){this._active=!1,this._container.classList.remove(&quot;mapboxgl-crosshair&quot;),this._box&amp;&amp;(r.remove(this._box),this._box=null),r.enableDrag(),delete this._startPos,delete this._lastPos},Bn.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,{originalEvent:r}))};var jn=function(t){this.reset(),this.numTouches=t.numTouches};jn.prototype.reset=function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1},jn.prototype.touchstart=function(e,r,n){(this.centroid||n.length&gt;this.numTouches)&amp;&amp;(this.aborted=!0),this.aborted||(void 0===this.startTime&amp;&amp;(this.startTime=e.timeStamp),n.length===this.numTouches&amp;&amp;(this.centroid=function(e){for(var r=new t.Point(0,0),n=0,i=e;n&lt;i.length;n+=1)r._add(i[n]);return r.div(e.length)}(r),this.touches=Nn(n,r)))},jn.prototype.touchmove=function(t,e,r){if(!this.aborted&amp;&amp;this.centroid){var n=Nn(r,e);for(var i in this.touches){var a=n[i];(!a||a.dist(this.touches[i])&gt;30)&amp;&amp;(this.aborted=!0)}}},jn.prototype.touchend=function(t,e,r){if((!this.centroid||t.timeStamp-this.startTime&gt;500)&amp;&amp;(this.aborted=!0),0===r.length){var n=!this.aborted&amp;&amp;this.centroid;if(this.reset(),n)return n}};var Un=function(t){this.singleTap=new jn(t),this.numTaps=t.numTaps,this.reset()};Un.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Un.prototype.touchstart=function(t,e,r){this.singleTap.touchstart(t,e,r)},Un.prototype.touchmove=function(t,e,r){this.singleTap.touchmove(t,e,r)},Un.prototype.touchend=function(t,e,r){var n=this.singleTap.touchend(t,e,r);if(n){var i=t.timeStamp-this.lastTime&lt;500,a=!this.lastTap||this.lastTap.dist(n)&lt;30;if(i&amp;&amp;a||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=n,this.count===this.numTaps)return this.reset(),n}};var Vn=function(){this._zoomIn=new Un({numTouches:1,numTaps:2}),this._zoomOut=new Un({numTouches:2,numTaps:1}),this.reset()};Vn.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Vn.prototype.touchstart=function(t,e,r){this._zoomIn.touchstart(t,e,r),this._zoomOut.touchstart(t,e,r)},Vn.prototype.touchmove=function(t,e,r){this._zoomIn.touchmove(t,e,r),this._zoomOut.touchmove(t,e,r)},Vn.prototype.touchend=function(t,e,r){var n=this,i=this._zoomIn.touchend(t,e,r),a=this._zoomOut.touchend(t,e,r);return i?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(i)},{originalEvent:t})}}):a?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(a)},{originalEvent:t})}}):void 0},Vn.prototype.touchcancel=function(){this.reset()},Vn.prototype.enable=function(){this._enabled=!0},Vn.prototype.disable=function(){this._enabled=!1,this.reset()},Vn.prototype.isEnabled=function(){return this._enabled},Vn.prototype.isActive=function(){return this._active};var qn=function(t){this.reset(),this._clickTolerance=t.clickTolerance||1};qn.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},qn.prototype._correctButton=function(t,e){return!1},qn.prototype._move=function(t,e){return{}},qn.prototype.mousedown=function(t,e){if(!this._lastPoint){var n=r.mouseButton(t);this._correctButton(t,n)&amp;&amp;(this._lastPoint=e,this._eventButton=n)}},qn.prototype.mousemoveWindow=function(t,e){var r=this._lastPoint;if(r&amp;&amp;(t.preventDefault(),this._moved||!(e.dist(r)&lt;this._clickTolerance)))return this._moved=!0,this._lastPoint=e,this._move(r,e)},qn.prototype.mouseupWindow=function(t){r.mouseButton(t)===this._eventButton&amp;&amp;(this._moved&amp;&amp;r.suppressClick(),this.reset())},qn.prototype.enable=function(){this._enabled=!0},qn.prototype.disable=function(){this._enabled=!1,this.reset()},qn.prototype.isEnabled=function(){return this._enabled},qn.prototype.isActive=function(){return this._active};var Hn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.mousedown=function(e,r){t.prototype.mousedown.call(this,e,r),this._lastPoint&amp;&amp;(this._active=!0)},e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;!t.ctrlKey},e.prototype._move=function(t,e){return{around:e,panDelta:e.sub(t)}},e}(qn),Gn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=.8*(e.x-t.x);if(r)return this._active=!0,{bearingDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(qn),Yn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=-.5*(e.y-t.y);if(r)return this._active=!0,{pitchDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(qn),Wn=function(t){this._minTouches=1,this._clickTolerance=t.clickTolerance||1,this.reset()};Wn.prototype.reset=function(){this._active=!1,this._touches={},this._sum=new t.Point(0,0)},Wn.prototype.touchstart=function(t,e,r){return this._calculateTransform(t,e,r)},Wn.prototype.touchmove=function(t,e,r){if(this._active)return t.preventDefault(),this._calculateTransform(t,e,r)},Wn.prototype.touchend=function(t,e,r){this._calculateTransform(t,e,r),this._active&amp;&amp;r.length&lt;this._minTouches&amp;&amp;this.reset()},Wn.prototype.touchcancel=function(){this.reset()},Wn.prototype._calculateTransform=function(e,r,n){n.length&gt;0&amp;&amp;(this._active=!0);var i=Nn(n,r),a=new t.Point(0,0),o=new t.Point(0,0),s=0;for(var l in i){var c=i[l],u=this._touches[l];u&amp;&amp;(a._add(c),o._add(c.sub(u)),s++,i[l]=c)}if(this._touches=i,!(s&lt;this._minTouches)&amp;&amp;o.mag()){var f=o.div(s);if(this._sum._add(f),!(this._sum.mag()&lt;this._clickTolerance))return{around:a.div(s),panDelta:f}}},Wn.prototype.enable=function(){this._enabled=!0},Wn.prototype.disable=function(){this._enabled=!1,this.reset()},Wn.prototype.isEnabled=function(){return this._enabled},Wn.prototype.isActive=function(){return this._active};var Xn=function(){this.reset()};function Zn(t,e,r){for(var n=0;n&lt;t.length;n++)if(t[n].identifier===r)return e[n]}function Jn(t,e){return Math.log(t/e)/Math.LN2}Xn.prototype.reset=function(){this._active=!1,delete this._firstTwoTouches},Xn.prototype._start=function(t){},Xn.prototype._move=function(t,e,r){return{}},Xn.prototype.touchstart=function(t,e,r){this._firstTwoTouches||r.length&lt;2||(this._firstTwoTouches=[r[0].identifier,r[1].identifier],this._start([e[0],e[1]]))},Xn.prototype.touchmove=function(t,e,r){if(this._firstTwoTouches){t.preventDefault();var n=this._firstTwoTouches,i=n[1],a=Zn(r,e,n[0]),o=Zn(r,e,i);if(a&amp;&amp;o){var s=this._aroundCenter?null:a.add(o).div(2);return this._move([a,o],s,t)}}},Xn.prototype.touchend=function(t,e,n){if(this._firstTwoTouches){var i=this._firstTwoTouches,a=i[1],o=Zn(n,e,i[0]),s=Zn(n,e,a);o&amp;&amp;s||(this._active&amp;&amp;r.suppressClick(),this.reset())}},Xn.prototype.touchcancel=function(){this.reset()},Xn.prototype.enable=function(t){this._enabled=!0,this._aroundCenter=!!t&amp;&amp;&quot;center&quot;===t.around},Xn.prototype.disable=function(){this._enabled=!1,this.reset()},Xn.prototype.isEnabled=function(){return this._enabled},Xn.prototype.isActive=function(){return this._active};var Kn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._distance,delete this._startDistance},e.prototype._start=function(t){this._startDistance=this._distance=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._distance;if(this._distance=t[0].dist(t[1]),this._active||!(Math.abs(Jn(this._distance,this._startDistance))&lt;.1))return this._active=!0,{zoomDelta:Jn(this._distance,r),pinchAround:e}},e}(Xn);function Qn(t,e){return 180*t.angleWith(e)/Math.PI}var $n=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._minDiameter,delete this._startVector,delete this._vector},e.prototype._start=function(t){this._startVector=this._vector=t[0].sub(t[1]),this._minDiameter=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._vector;if(this._vector=t[0].sub(t[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:Qn(this._vector,r),pinchAround:e}},e.prototype._isBelowThreshold=function(t){this._minDiameter=Math.min(this._minDiameter,t.mag());var e=25/(Math.PI*this._minDiameter)*360,r=Qn(t,this._startVector);return Math.abs(r)&lt;e},e}(Xn);function ti(t){return Math.abs(t.y)&gt;Math.abs(t.x)}var ei=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},e.prototype._start=function(t){this._lastPoints=t,ti(t[0].sub(t[1]))&amp;&amp;(this._valid=!1)},e.prototype._move=function(t,e,r){var n=t[0].sub(this._lastPoints[0]),i=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(n,i,r.timeStamp),this._valid)return this._lastPoints=t,this._active=!0,{pitchDelta:(n.y+i.y)/2*-.5}},e.prototype.gestureBeginsVertically=function(t,e,r){if(void 0!==this._valid)return this._valid;var n=t.mag()&gt;=2,i=e.mag()&gt;=2;if(n||i){if(!n||!i)return void 0===this._firstMove&amp;&amp;(this._firstMove=r),r-this._firstMove&lt;100&amp;&amp;void 0;var a=t.y&gt;0==e.y&gt;0;return ti(t)&amp;&amp;ti(e)&amp;&amp;a}},e}(Xn),ri={panStep:100,bearingStep:15,pitchStep:10},ni=function(){var t=ri;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep};function ii(t){return t*(2-t)}ni.prototype.reset=function(){this._active=!1},ni.prototype.keydown=function(t){var e=this;if(!(t.altKey||t.ctrlKey||t.metaKey)){var r=0,n=0,i=0,a=0,o=0;switch(t.keyCode){case 61:case 107:case 171:case 187:r=1;break;case 189:case 109:case 173:r=-1;break;case 37:t.shiftKey?n=-1:(t.preventDefault(),a=-1);break;case 39:t.shiftKey?n=1:(t.preventDefault(),a=1);break;case 38:t.shiftKey?i=1:(t.preventDefault(),o=-1);break;case 40:t.shiftKey?i=-1:(t.preventDefault(),o=1);break;default:return}return{cameraAnimation:function(s){var l=s.getZoom();s.easeTo({duration:300,easeId:&quot;keyboardHandler&quot;,easing:ii,zoom:r?Math.round(l)+r*(t.shiftKey?2:1):l,bearing:s.getBearing()+n*e._bearingStep,pitch:s.getPitch()+i*e._pitchStep,offset:[-a*e._panStep,-o*e._panStep],center:s.getCenter()},{originalEvent:t})}}}},ni.prototype.enable=function(){this._enabled=!0},ni.prototype.disable=function(){this._enabled=!1,this.reset()},ni.prototype.isEnabled=function(){return this._enabled},ni.prototype.isActive=function(){return this._active};var ai=function(e,r){this._map=e,this._el=e.getCanvasContainer(),this._handler=r,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,t.bindAll([&quot;_onWheel&quot;,&quot;_onTimeout&quot;,&quot;_onScrollFrame&quot;,&quot;_onScrollFinished&quot;],this)};ai.prototype.setZoomRate=function(t){this._defaultZoomRate=t},ai.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},ai.prototype.isEnabled=function(){return!!this._enabled},ai.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},ai.prototype.isZooming=function(){return!!this._zooming},ai.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&amp;&amp;&quot;center&quot;===t.around)},ai.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},ai.prototype.wheel=function(e){if(this.isEnabled()){var r=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,n=t.browser.now(),i=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==r&amp;&amp;r%4.000244140625==0?this._type=&quot;wheel&quot;:0!==r&amp;&amp;Math.abs(r)&lt;4?this._type=&quot;trackpad&quot;:i&gt;400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*r)&lt;200?&quot;trackpad&quot;:&quot;wheel&quot;,this._timeout&amp;&amp;(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),e.shiftKey&amp;&amp;r&amp;&amp;(r/=4),this._type&amp;&amp;(this._lastWheelEvent=e,this._delta-=r,this._active||this._start(e)),e.preventDefault()}},ai.prototype._onTimeout=function(t){this._type=&quot;wheel&quot;,this._delta-=this._lastValue,this._active||this._start(t)},ai.prototype._start=function(e){if(this._delta){this._frameId&amp;&amp;(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&amp;&amp;(clearTimeout(this._finishTimeout),delete this._finishTimeout);var n=r.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(n)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},ai.prototype.renderFrame=function(){return this._onScrollFrame()},ai.prototype._onScrollFrame=function(){var e=this;if(this._frameId&amp;&amp;(this._frameId=null,this.isActive())){var r=this._map.transform;if(0!==this._delta){var n=&quot;wheel&quot;===this._type&amp;&amp;Math.abs(this._delta)&gt;4.000244140625?this._wheelZoomRate:this._defaultZoomRate,i=2/(1+Math.exp(-Math.abs(this._delta*n)));this._delta&lt;0&amp;&amp;0!==i&amp;&amp;(i=1/i);var a=&quot;number&quot;==typeof this._targetZoom?r.zoomScale(this._targetZoom):r.scale;this._targetZoom=Math.min(r.maxZoom,Math.max(r.minZoom,r.scaleZoom(a*i))),&quot;wheel&quot;===this._type&amp;&amp;(this._startZoom=r.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var o,s=&quot;number&quot;==typeof this._targetZoom?this._targetZoom:r.zoom,l=this._startZoom,c=this._easing,u=!1;if(&quot;wheel&quot;===this._type&amp;&amp;l&amp;&amp;c){var f=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),h=c(f);o=t.number(l,s,h),f&lt;1?this._frameId||(this._frameId=!0):u=!0}else o=s,u=!0;return this._active=!0,u&amp;&amp;(this._active=!1,this._finishTimeout=setTimeout((function(){e._zooming=!1,e._handler._triggerRenderFrame(),delete e._targetZoom,delete e._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!u,zoomDelta:o-r.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},ai.prototype._smoothOutEasing=function(e){var r=t.ease;if(this._prevEase){var n=this._prevEase,i=(t.browser.now()-n.start)/n.duration,a=n.easing(i+.01)-n.easing(i),o=.27/Math.sqrt(a*a+1e-4)*.01,s=Math.sqrt(.0729-o*o);r=t.bezier(o,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:r},r},ai.prototype.reset=function(){this._active=!1};var oi=function(t,e){this._clickZoom=t,this._tapZoom=e};oi.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},oi.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},oi.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&amp;&amp;this._tapZoom.isEnabled()},oi.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var si=function(){this.reset()};si.prototype.reset=function(){this._active=!1},si.prototype.dblclick=function(t,e){return t.preventDefault(),{cameraAnimation:function(r){r.easeTo({duration:300,zoom:r.getZoom()+(t.shiftKey?-1:1),around:r.unproject(e)},{originalEvent:t})}}},si.prototype.enable=function(){this._enabled=!0},si.prototype.disable=function(){this._enabled=!1,this.reset()},si.prototype.isEnabled=function(){return this._enabled},si.prototype.isActive=function(){return this._active};var li=function(){this._tap=new Un({numTouches:1,numTaps:1}),this.reset()};li.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},li.prototype.touchstart=function(t,e,r){this._swipePoint||(this._tapTime&amp;&amp;t.timeStamp-this._tapTime&gt;500&amp;&amp;this.reset(),this._tapTime?r.length&gt;0&amp;&amp;(this._swipePoint=e[0],this._swipeTouch=r[0].identifier):this._tap.touchstart(t,e,r))},li.prototype.touchmove=function(t,e,r){if(this._tapTime){if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;var n=e[0],i=n.y-this._swipePoint.y;return this._swipePoint=n,t.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(t,e,r)},li.prototype.touchend=function(t,e,r){this._tapTime?this._swipePoint&amp;&amp;0===r.length&amp;&amp;this.reset():this._tap.touchend(t,e,r)&amp;&amp;(this._tapTime=t.timeStamp)},li.prototype.touchcancel=function(){this.reset()},li.prototype.enable=function(){this._enabled=!0},li.prototype.disable=function(){this._enabled=!1,this.reset()},li.prototype.isEnabled=function(){return this._enabled},li.prototype.isActive=function(){return this._active};var ci=function(t,e,r){this._el=t,this._mousePan=e,this._touchPan=r};ci.prototype.enable=function(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add(&quot;mapboxgl-touch-drag-pan&quot;)},ci.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove(&quot;mapboxgl-touch-drag-pan&quot;)},ci.prototype.isEnabled=function(){return this._mousePan.isEnabled()&amp;&amp;this._touchPan.isEnabled()},ci.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var ui=function(t,e,r){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=r};ui.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&amp;&amp;this._mousePitch.enable()},ui.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},ui.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&amp;&amp;(!this._pitchWithRotate||this._mousePitch.isEnabled())},ui.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var fi=function(t,e,r,n){this._el=t,this._touchZoom=e,this._touchRotate=r,this._tapDragZoom=n,this._rotationDisabled=!1,this._enabled=!0};fi.prototype.enable=function(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add(&quot;mapboxgl-touch-zoom-rotate&quot;)},fi.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove(&quot;mapboxgl-touch-zoom-rotate&quot;)},fi.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&amp;&amp;(this._rotationDisabled||this._touchRotate.isEnabled())&amp;&amp;this._tapDragZoom.isEnabled()},fi.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},fi.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},fi.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&amp;&amp;this._touchRotate.enable()};var hi=function(t){return t.zoom||t.drag||t.pitch||t.rotate},pi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(t.Event);function di(t){return t.panDelta&amp;&amp;t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var gi=function(e,n){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Ln(e),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(n),t.bindAll([&quot;handleEvent&quot;,&quot;handleWindowEvent&quot;],this);var i=this._el;this._listeners=[[i,&quot;touchstart&quot;,{passive:!1}],[i,&quot;touchmove&quot;,{passive:!1}],[i,&quot;touchend&quot;,void 0],[i,&quot;touchcancel&quot;,void 0],[i,&quot;mousedown&quot;,void 0],[i,&quot;mousemove&quot;,void 0],[i,&quot;mouseup&quot;,void 0],[t.window.document,&quot;mousemove&quot;,{capture:!0}],[t.window.document,&quot;mouseup&quot;,void 0],[i,&quot;mouseover&quot;,void 0],[i,&quot;mouseout&quot;,void 0],[i,&quot;dblclick&quot;,void 0],[i,&quot;click&quot;,void 0],[i,&quot;keydown&quot;,{capture:!1}],[i,&quot;keyup&quot;,void 0],[i,&quot;wheel&quot;,{passive:!1}],[i,&quot;contextmenu&quot;,void 0],[t.window,&quot;blur&quot;,void 0]];for(var a=0,o=this._listeners;a&lt;o.length;a+=1){var s=o[a],l=s[0];r.addEventListener(l,s[1],l===t.window.document?this.handleWindowEvent:this.handleEvent,s[2])}};gi.prototype.destroy=function(){for(var e=0,n=this._listeners;e&lt;n.length;e+=1){var i=n[e],a=i[0];r.removeEventListener(a,i[1],a===t.window.document?this.handleWindowEvent:this.handleEvent,i[2])}},gi.prototype._addDefaultHandlers=function(t){var e=this._map,r=e.getCanvasContainer();this._add(&quot;mapEvent&quot;,new Rn(e,t));var n=e.boxZoom=new Bn(e,t);this._add(&quot;boxZoom&quot;,n);var i=new Vn,a=new si;e.doubleClickZoom=new oi(a,i),this._add(&quot;tapZoom&quot;,i),this._add(&quot;clickZoom&quot;,a);var o=new li;this._add(&quot;tapDragZoom&quot;,o);var s=e.touchPitch=new ei;this._add(&quot;touchPitch&quot;,s);var l=new Gn(t),c=new Yn(t);e.dragRotate=new ui(t,l,c),this._add(&quot;mouseRotate&quot;,l,[&quot;mousePitch&quot;]),this._add(&quot;mousePitch&quot;,c,[&quot;mouseRotate&quot;]);var u=new Hn(t),f=new Wn(t);e.dragPan=new ci(r,u,f),this._add(&quot;mousePan&quot;,u),this._add(&quot;touchPan&quot;,f,[&quot;touchZoom&quot;,&quot;touchRotate&quot;]);var h=new $n,p=new Kn;e.touchZoomRotate=new fi(r,p,h,o),this._add(&quot;touchRotate&quot;,h,[&quot;touchPan&quot;,&quot;touchZoom&quot;]),this._add(&quot;touchZoom&quot;,p,[&quot;touchPan&quot;,&quot;touchRotate&quot;]);var d=e.scrollZoom=new ai(e,this);this._add(&quot;scrollZoom&quot;,d,[&quot;mousePan&quot;]);var g=e.keyboard=new ni;this._add(&quot;keyboard&quot;,g),this._add(&quot;blockableMapEvent&quot;,new Fn(e));for(var m=0,v=[&quot;boxZoom&quot;,&quot;doubleClickZoom&quot;,&quot;tapDragZoom&quot;,&quot;touchPitch&quot;,&quot;dragRotate&quot;,&quot;dragPan&quot;,&quot;touchZoomRotate&quot;,&quot;scrollZoom&quot;,&quot;keyboard&quot;];m&lt;v.length;m+=1){var y=v[m];t.interactive&amp;&amp;t[y]&amp;&amp;e[y].enable(t[y])}},gi.prototype._add=function(t,e,r){this._handlers.push({handlerName:t,handler:e,allowed:r}),this._handlersById[t]=e},gi.prototype.stop=function(){if(!this._updatingCamera){for(var t=0,e=this._handlers;t&lt;e.length;t+=1)e[t].handler.reset();this._inertia.clear(),this._fireEvents({},{}),this._changes=[]}},gi.prototype.isActive=function(){for(var t=0,e=this._handlers;t&lt;e.length;t+=1)if(e[t].handler.isActive())return!0;return!1},gi.prototype.isZooming=function(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()},gi.prototype.isRotating=function(){return!!this._eventsInProgress.rotate},gi.prototype.isMoving=function(){return Boolean(hi(this._eventsInProgress))||this.isZooming()},gi.prototype._blockedByActive=function(t,e,r){for(var n in t)if(n!==r&amp;&amp;(!e||e.indexOf(n)&lt;0))return!0;return!1},gi.prototype.handleWindowEvent=function(t){this.handleEvent(t,t.type+&quot;Window&quot;)},gi.prototype._getMapTouches=function(t){for(var e=[],r=0,n=t;r&lt;n.length;r+=1){var i=n[r];this._el.contains(i.target)&amp;&amp;e.push(i)}return e},gi.prototype.handleEvent=function(t,e){if(&quot;blur&quot;!==t.type){this._updatingCamera=!0;for(var n=&quot;renderFrame&quot;===t.type?void 0:t,i={needsRenderFrame:!1},a={},o={},s=t.touches?this._getMapTouches(t.touches):void 0,l=s?r.touchPos(this._el,s):r.mousePos(this._el,t),c=0,u=this._handlers;c&lt;u.length;c+=1){var f=u[c],h=f.handlerName,p=f.handler,d=f.allowed;if(p.isEnabled()){var g=void 0;this._blockedByActive(o,d,h)?p.reset():p[e||t.type]&amp;&amp;(g=p[e||t.type](t,l,s),this.mergeHandlerResult(i,a,g,h,n),g&amp;&amp;g.needsRenderFrame&amp;&amp;this._triggerRenderFrame()),(g||p.isActive())&amp;&amp;(o[h]=p)}}var m={};for(var v in this._previousActiveHandlers)o[v]||(m[v]=n);this._previousActiveHandlers=o,(Object.keys(m).length||di(i))&amp;&amp;(this._changes.push([i,a,m]),this._triggerRenderFrame()),(Object.keys(o).length||di(i))&amp;&amp;this._map._stop(!0),this._updatingCamera=!1;var y=i.cameraAnimation;y&amp;&amp;(this._inertia.clear(),this._fireEvents({},{}),this._changes=[],y(this._map))}else this.stop()},gi.prototype.mergeHandlerResult=function(e,r,n,i,a){if(n){t.extend(e,n);var o={handlerName:i,originalEvent:n.originalEvent||a};void 0!==n.zoomDelta&amp;&amp;(r.zoom=o),void 0!==n.panDelta&amp;&amp;(r.drag=o),void 0!==n.pitchDelta&amp;&amp;(r.pitch=o),void 0!==n.bearingDelta&amp;&amp;(r.rotate=o)}},gi.prototype._applyChanges=function(){for(var e={},r={},n={},i=0,a=this._changes;i&lt;a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=o[2];s.panDelta&amp;&amp;(e.panDelta=(e.panDelta||new t.Point(0,0))._add(s.panDelta)),s.zoomDelta&amp;&amp;(e.zoomDelta=(e.zoomDelta||0)+s.zoomDelta),s.bearingDelta&amp;&amp;(e.bearingDelta=(e.bearingDelta||0)+s.bearingDelta),s.pitchDelta&amp;&amp;(e.pitchDelta=(e.pitchDelta||0)+s.pitchDelta),void 0!==s.around&amp;&amp;(e.around=s.around),void 0!==s.pinchAround&amp;&amp;(e.pinchAround=s.pinchAround),s.noInertia&amp;&amp;(e.noInertia=s.noInertia),t.extend(r,l),t.extend(n,c)}this._updateMapTransform(e,r,n),this._changes=[]},gi.prototype._updateMapTransform=function(t,e,r){var n=this._map,i=n.transform;if(!di(t))return this._fireEvents(e,r);var a=t.panDelta,o=t.zoomDelta,s=t.bearingDelta,l=t.pitchDelta,c=t.around,u=t.pinchAround;void 0!==u&amp;&amp;(c=u),n._stop(!0),c=c||n.transform.centerPoint;var f=i.pointLocation(a?c.sub(a):c);s&amp;&amp;(i.bearing+=s),l&amp;&amp;(i.pitch+=l),o&amp;&amp;(i.zoom+=o),i.setLocationAtPoint(f,c),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(e,r)},gi.prototype._fireEvents=function(e,r){var n=this,i=hi(this._eventsInProgress),a=hi(e),o={};for(var s in e)this._eventsInProgress[s]||(o[s+&quot;start&quot;]=e[s].originalEvent),this._eventsInProgress[s]=e[s];for(var l in!i&amp;&amp;a&amp;&amp;this._fireEvent(&quot;movestart&quot;,a.originalEvent),o)this._fireEvent(l,o[l]);for(var c in e.rotate&amp;&amp;(this._bearingChanged=!0),a&amp;&amp;this._fireEvent(&quot;move&quot;,a.originalEvent),e)this._fireEvent(c,e[c].originalEvent);var u,f={};for(var h in this._eventsInProgress){var p=this._eventsInProgress[h],d=p.handlerName,g=p.originalEvent;this._handlersById[d].isActive()||(delete this._eventsInProgress[h],f[h+&quot;end&quot;]=u=r[d]||g)}for(var m in f)this._fireEvent(m,f[m]);var v=hi(this._eventsInProgress);if((i||a)&amp;&amp;!v){this._updatingCamera=!0;var y=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),x=function(t){return 0!==t&amp;&amp;-n._bearingSnap&lt;t&amp;&amp;t&lt;n._bearingSnap};y?(x(y.bearing||this._map.getBearing())&amp;&amp;(y.bearing=0),this._map.easeTo(y,{originalEvent:u})):(this._map.fire(new t.Event(&quot;moveend&quot;,{originalEvent:u})),x(this._map.getBearing())&amp;&amp;this._map.resetNorth()),this._bearingChanged=!1,this._updatingCamera=!1}},gi.prototype._fireEvent=function(e,r){this._map.fire(new t.Event(e,r?{originalEvent:r}:{}))},gi.prototype._triggerRenderFrame=function(){var t=this;void 0===this._frameId&amp;&amp;(this._frameId=this._map._requestRenderFrame((function(e){delete t._frameId,t.handleEvent(new pi(&quot;renderFrame&quot;,{timeStamp:e})),t._applyChanges()})))};var mi=function(e){function r(r,n){e.call(this),this._moving=!1,this._zooming=!1,this.transform=r,this._bearingSnap=n.bearingSnap,t.bindAll([&quot;_renderFrameCallback&quot;],this)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getCenter=function(){return new t.LngLat(this.transform.center.lng,this.transform.center.lat)},r.prototype.setCenter=function(t,e){return this.jumpTo({center:t},e)},r.prototype.panBy=function(e,r,n){return e=t.Point.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},r),n)},r.prototype.panTo=function(e,r,n){return this.easeTo(t.extend({center:e},r),n)},r.prototype.getZoom=function(){return this.transform.zoom},r.prototype.setZoom=function(t,e){return this.jumpTo({zoom:t},e),this},r.prototype.zoomTo=function(e,r,n){return this.easeTo(t.extend({zoom:e},r),n)},r.prototype.zoomIn=function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},r.prototype.zoomOut=function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},r.prototype.getBearing=function(){return this.transform.bearing},r.prototype.setBearing=function(t,e){return this.jumpTo({bearing:t},e),this},r.prototype.getPadding=function(){return this.transform.padding},r.prototype.setPadding=function(t,e){return this.jumpTo({padding:t},e),this},r.prototype.rotateTo=function(e,r,n){return this.easeTo(t.extend({bearing:e},r),n)},r.prototype.resetNorth=function(e,r){return this.rotateTo(0,t.extend({duration:1e3},e),r),this},r.prototype.resetNorthPitch=function(e,r){return this.easeTo(t.extend({bearing:0,pitch:0,duration:1e3},e),r),this},r.prototype.snapToNorth=function(t,e){return Math.abs(this.getBearing())&lt;this._bearingSnap?this.resetNorth(t,e):this},r.prototype.getPitch=function(){return this.transform.pitch},r.prototype.setPitch=function(t,e){return this.jumpTo({pitch:t},e),this},r.prototype.cameraForBounds=function(e,r){return e=t.LngLatBounds.convert(e),this._cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),0,r)},r.prototype._cameraForBoxAndBearing=function(e,r,n,i){var a={top:0,bottom:0,right:0,left:0};if(&quot;number&quot;==typeof(i=t.extend({padding:a,offset:[0,0],maxZoom:this.transform.maxZoom},i)).padding){var o=i.padding;i.padding={top:o,bottom:o,right:o,left:o}}i.padding=t.extend(a,i.padding);var s=this.transform,l=s.padding,c=s.project(t.LngLat.convert(e)),u=s.project(t.LngLat.convert(r)),f=c.rotate(-n*Math.PI/180),h=u.rotate(-n*Math.PI/180),p=new t.Point(Math.max(f.x,h.x),Math.max(f.y,h.y)),d=new t.Point(Math.min(f.x,h.x),Math.min(f.y,h.y)),g=p.sub(d),m=(s.width-(l.left+l.right+i.padding.left+i.padding.right))/g.x,v=(s.height-(l.top+l.bottom+i.padding.top+i.padding.bottom))/g.y;if(!(v&lt;0||m&lt;0)){var y=Math.min(s.scaleZoom(s.scale*Math.min(m,v)),i.maxZoom),x=t.Point.convert(i.offset),b=new t.Point(x.x+(i.padding.left-i.padding.right)/2,x.y+(i.padding.top-i.padding.bottom)/2).mult(s.scale/s.zoomScale(y));return{center:s.unproject(c.add(u).div(2).sub(b)),zoom:y,bearing:n}}t.warnOnce(&quot;Map cannot fit within canvas with the given bounds, padding, and/or offset.&quot;)},r.prototype.fitBounds=function(t,e,r){return this._fitInternal(this.cameraForBounds(t,e),e,r)},r.prototype.fitScreenCoordinates=function(e,r,n,i,a){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(t.Point.convert(e)),this.transform.pointLocation(t.Point.convert(r)),n,i),i,a)},r.prototype._fitInternal=function(e,r,n){return e?(delete(r=t.extend(e,r)).padding,r.linear?this.easeTo(r,n):this.flyTo(r,n)):this},r.prototype.jumpTo=function(e,r){this.stop();var n=this.transform,i=!1,a=!1,o=!1;return&quot;zoom&quot;in e&amp;&amp;n.zoom!==+e.zoom&amp;&amp;(i=!0,n.zoom=+e.zoom),void 0!==e.center&amp;&amp;(n.center=t.LngLat.convert(e.center)),&quot;bearing&quot;in e&amp;&amp;n.bearing!==+e.bearing&amp;&amp;(a=!0,n.bearing=+e.bearing),&quot;pitch&quot;in e&amp;&amp;n.pitch!==+e.pitch&amp;&amp;(o=!0,n.pitch=+e.pitch),null==e.padding||n.isPaddingEqual(e.padding)||(n.padding=e.padding),this.fire(new t.Event(&quot;movestart&quot;,r)).fire(new t.Event(&quot;move&quot;,r)),i&amp;&amp;this.fire(new t.Event(&quot;zoomstart&quot;,r)).fire(new t.Event(&quot;zoom&quot;,r)).fire(new t.Event(&quot;zoomend&quot;,r)),a&amp;&amp;this.fire(new t.Event(&quot;rotatestart&quot;,r)).fire(new t.Event(&quot;rotate&quot;,r)).fire(new t.Event(&quot;rotateend&quot;,r)),o&amp;&amp;this.fire(new t.Event(&quot;pitchstart&quot;,r)).fire(new t.Event(&quot;pitch&quot;,r)).fire(new t.Event(&quot;pitchend&quot;,r)),this.fire(new t.Event(&quot;moveend&quot;,r))},r.prototype.easeTo=function(e,r){var n=this;this._stop(!1,e.easeId),(!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate||!e.essential&amp;&amp;t.browser.prefersReducedMotion)&amp;&amp;(e.duration=0);var i=this.transform,a=this.getZoom(),o=this.getBearing(),s=this.getPitch(),l=this.getPadding(),c=&quot;zoom&quot;in e?+e.zoom:a,u=&quot;bearing&quot;in e?this._normalizeBearing(e.bearing,o):o,f=&quot;pitch&quot;in e?+e.pitch:s,h=&quot;padding&quot;in e?e.padding:i.padding,p=t.Point.convert(e.offset),d=i.centerPoint.add(p),g=i.pointLocation(d),m=t.LngLat.convert(e.center||g);this._normalizeCenter(m);var v,y,x=i.project(g),b=i.project(m).sub(x),_=i.zoomScale(c-a);e.around&amp;&amp;(v=t.LngLat.convert(e.around),y=i.locationPoint(v));var w={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||c!==a,this._rotating=this._rotating||o!==u,this._pitching=this._pitching||f!==s,this._padding=!i.isPaddingEqual(h),this._easeId=e.easeId,this._prepareEase(r,e.noMoveStart,w),clearTimeout(this._easeEndTimeoutID),this._ease((function(e){if(n._zooming&amp;&amp;(i.zoom=t.number(a,c,e)),n._rotating&amp;&amp;(i.bearing=t.number(o,u,e)),n._pitching&amp;&amp;(i.pitch=t.number(s,f,e)),n._padding&amp;&amp;(i.interpolatePadding(l,h,e),d=i.centerPoint.add(p)),v)i.setLocationAtPoint(v,y);else{var g=i.zoomScale(i.zoom-a),m=c&gt;a?Math.min(2,_):Math.max(.5,_),w=Math.pow(m,1-e),T=i.unproject(x.add(b.mult(e*w)).mult(g));i.setLocationAtPoint(i.renderWorldCopies?T.wrap():T,d)}n._fireMoveEvents(r)}),(function(t){n._afterEase(r,t)}),e),this},r.prototype._prepareEase=function(e,r,n){void 0===n&amp;&amp;(n={}),this._moving=!0,r||n.moving||this.fire(new t.Event(&quot;movestart&quot;,e)),this._zooming&amp;&amp;!n.zooming&amp;&amp;this.fire(new t.Event(&quot;zoomstart&quot;,e)),this._rotating&amp;&amp;!n.rotating&amp;&amp;this.fire(new t.Event(&quot;rotatestart&quot;,e)),this._pitching&amp;&amp;!n.pitching&amp;&amp;this.fire(new t.Event(&quot;pitchstart&quot;,e))},r.prototype._fireMoveEvents=function(e){this.fire(new t.Event(&quot;move&quot;,e)),this._zooming&amp;&amp;this.fire(new t.Event(&quot;zoom&quot;,e)),this._rotating&amp;&amp;this.fire(new t.Event(&quot;rotate&quot;,e)),this._pitching&amp;&amp;this.fire(new t.Event(&quot;pitch&quot;,e))},r.prototype._afterEase=function(e,r){if(!this._easeId||!r||this._easeId!==r){delete this._easeId;var n=this._zooming,i=this._rotating,a=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&amp;&amp;this.fire(new t.Event(&quot;zoomend&quot;,e)),i&amp;&amp;this.fire(new t.Event(&quot;rotateend&quot;,e)),a&amp;&amp;this.fire(new t.Event(&quot;pitchend&quot;,e)),this.fire(new t.Event(&quot;moveend&quot;,e))}},r.prototype.flyTo=function(e,r){var n=this;if(!e.essential&amp;&amp;t.browser.prefersReducedMotion){var i=t.pick(e,[&quot;center&quot;,&quot;zoom&quot;,&quot;bearing&quot;,&quot;pitch&quot;,&quot;around&quot;]);return this.jumpTo(i,r)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var a=this.transform,o=this.getZoom(),s=this.getBearing(),l=this.getPitch(),c=this.getPadding(),u=&quot;zoom&quot;in e?t.clamp(+e.zoom,a.minZoom,a.maxZoom):o,f=&quot;bearing&quot;in e?this._normalizeBearing(e.bearing,s):s,h=&quot;pitch&quot;in e?+e.pitch:l,p=&quot;padding&quot;in e?e.padding:a.padding,d=a.zoomScale(u-o),g=t.Point.convert(e.offset),m=a.centerPoint.add(g),v=a.pointLocation(m),y=t.LngLat.convert(e.center||v);this._normalizeCenter(y);var x=a.project(v),b=a.project(y).sub(x),_=e.curve,w=Math.max(a.width,a.height),T=w/d,k=b.mag();if(&quot;minZoom&quot;in e){var M=t.clamp(Math.min(e.minZoom,o,u),a.minZoom,a.maxZoom),A=w/a.zoomScale(M-o);_=Math.sqrt(A/k*2)}var S=_*_;function E(t){var e=(T*T-w*w+(t?-1:1)*S*S*k*k)/(2*(t?T:w)*S*k);return Math.log(Math.sqrt(e*e+1)-e)}function C(t){return(Math.exp(t)-Math.exp(-t))/2}function L(t){return(Math.exp(t)+Math.exp(-t))/2}var I=E(0),P=function(t){return L(I)/L(I+_*t)},z=function(t){return w*((L(I)*(C(e=I+_*t)/L(e))-C(I))/S)/k;var e},O=(E(1)-I)/_;if(Math.abs(k)&lt;1e-6||!isFinite(O)){if(Math.abs(w-T)&lt;1e-6)return this.easeTo(e,r);var D=T&lt;w?-1:1;O=Math.abs(Math.log(T/w))/_,z=function(){return 0},P=function(t){return Math.exp(D*_*t)}}return e.duration=&quot;duration&quot;in e?+e.duration:1e3*O/(&quot;screenSpeed&quot;in e?+e.screenSpeed/_:+e.speed),e.maxDuration&amp;&amp;e.duration&gt;e.maxDuration&amp;&amp;(e.duration=0),this._zooming=!0,this._rotating=s!==f,this._pitching=h!==l,this._padding=!a.isPaddingEqual(p),this._prepareEase(r,!1),this._ease((function(e){var i=e*O,d=1/P(i);a.zoom=1===e?u:o+a.scaleZoom(d),n._rotating&amp;&amp;(a.bearing=t.number(s,f,e)),n._pitching&amp;&amp;(a.pitch=t.number(l,h,e)),n._padding&amp;&amp;(a.interpolatePadding(c,p,e),m=a.centerPoint.add(g));var v=1===e?y:a.unproject(x.add(b.mult(z(i))).mult(d));a.setLocationAtPoint(a.renderWorldCopies?v.wrap():v,m),n._fireMoveEvents(r)}),(function(){return n._afterEase(r)}),e),this},r.prototype.isEasing=function(){return!!this._easeFrameId},r.prototype.stop=function(){return this._stop()},r.prototype._stop=function(t,e){if(this._easeFrameId&amp;&amp;(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,e)}if(!t){var n=this.handlers;n&amp;&amp;n.stop()}return this},r.prototype._ease=function(e,r,n){!1===n.animate||0===n.duration?(e(1),r()):(this._easeStart=t.browser.now(),this._easeOptions=n,this._onEaseFrame=e,this._onEaseEnd=r,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},r.prototype._renderFrameCallback=function(){var e=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e&lt;1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},r.prototype._normalizeBearing=function(e,r){e=t.wrap(e,-180,180);var n=Math.abs(e-r);return Math.abs(e-360-r)&lt;n&amp;&amp;(e-=360),Math.abs(e+360-r)&lt;n&amp;&amp;(e+=360),e},r.prototype._normalizeCenter=function(t){var e=this.transform;if(e.renderWorldCopies&amp;&amp;!e.lngRange){var r=t.lng-e.center.lng;t.lng+=r&gt;180?-360:r&lt;-180?360:0}},r}(t.Evented),vi=function(e){void 0===e&amp;&amp;(e={}),this.options=e,t.bindAll([&quot;_updateEditLink&quot;,&quot;_updateData&quot;,&quot;_updateCompact&quot;],this)};vi.prototype.getDefaultPosition=function(){return&quot;bottom-right&quot;},vi.prototype.onAdd=function(t){var e=this.options&amp;&amp;this.options.compact;return this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-attrib&quot;),this._innerContainer=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl-attrib-inner&quot;,this._container),e&amp;&amp;this._container.classList.add(&quot;mapboxgl-compact&quot;),this._updateAttributions(),this._updateEditLink(),this._map.on(&quot;styledata&quot;,this._updateData),this._map.on(&quot;sourcedata&quot;,this._updateData),this._map.on(&quot;moveend&quot;,this._updateEditLink),void 0===e&amp;&amp;(this._map.on(&quot;resize&quot;,this._updateCompact),this._updateCompact()),this._container},vi.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;styledata&quot;,this._updateData),this._map.off(&quot;sourcedata&quot;,this._updateData),this._map.off(&quot;moveend&quot;,this._updateEditLink),this._map.off(&quot;resize&quot;,this._updateCompact),this._map=void 0,this._attribHTML=void 0},vi.prototype._updateEditLink=function(){var e=this._editLink;e||(e=this._editLink=this._container.querySelector(&quot;.mapbox-improve-map&quot;));var r=[{key:&quot;owner&quot;,value:this.styleOwner},{key:&quot;id&quot;,value:this.styleId},{key:&quot;access_token&quot;,value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if(e){var n=r.reduce((function(t,e,n){return e.value&amp;&amp;(t+=e.key+&quot;=&quot;+e.value+(n&lt;r.length-1?&quot;&amp;&quot;:&quot;&quot;)),t}),&quot;?&quot;);e.href=t.config.FEEDBACK_URL+&quot;/&quot;+n+(this._map._hash?this._map._hash.getHashString(!0):&quot;&quot;),e.rel=&quot;noopener nofollow&quot;}},vi.prototype._updateData=function(t){!t||&quot;metadata&quot;!==t.sourceDataType&amp;&amp;&quot;style&quot;!==t.dataType||(this._updateAttributions(),this._updateEditLink())},vi.prototype._updateAttributions=function(){if(this._map.style){var t=[];if(this.options.customAttribution&amp;&amp;(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map((function(t){return&quot;string&quot;!=typeof t?&quot;&quot;:t}))):&quot;string&quot;==typeof this.options.customAttribution&amp;&amp;t.push(this.options.customAttribution)),this._map.style.stylesheet){var e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}var r=this._map.style.sourceCaches;for(var n in r){var i=r[n];if(i.used){var a=i.getSource();a.attribution&amp;&amp;t.indexOf(a.attribution)&lt;0&amp;&amp;t.push(a.attribution)}}t.sort((function(t,e){return t.length-e.length}));var o=(t=t.filter((function(e,r){for(var n=r+1;n&lt;t.length;n++)if(t[n].indexOf(e)&gt;=0)return!1;return!0}))).join(&quot; | &quot;);o!==this._attribHTML&amp;&amp;(this._attribHTML=o,t.length?(this._innerContainer.innerHTML=o,this._container.classList.remove(&quot;mapboxgl-attrib-empty&quot;)):this._container.classList.add(&quot;mapboxgl-attrib-empty&quot;),this._editLink=null)}},vi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth&lt;=640?this._container.classList.add(&quot;mapboxgl-compact&quot;):this._container.classList.remove(&quot;mapboxgl-compact&quot;)};var yi=function(){t.bindAll([&quot;_updateLogo&quot;],this),t.bindAll([&quot;_updateCompact&quot;],this)};yi.prototype.onAdd=function(t){this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl&quot;);var e=r.create(&quot;a&quot;,&quot;mapboxgl-ctrl-logo&quot;);return e.target=&quot;_blank&quot;,e.rel=&quot;noopener nofollow&quot;,e.href=&quot;https://www.mapbox.com/&quot;,e.setAttribute(&quot;aria-label&quot;,this._map._getUIString(&quot;LogoControl.Title&quot;)),e.setAttribute(&quot;rel&quot;,&quot;noopener nofollow&quot;),this._container.appendChild(e),this._container.style.display=&quot;none&quot;,this._map.on(&quot;sourcedata&quot;,this._updateLogo),this._updateLogo(),this._map.on(&quot;resize&quot;,this._updateCompact),this._updateCompact(),this._container},yi.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;sourcedata&quot;,this._updateLogo),this._map.off(&quot;resize&quot;,this._updateCompact)},yi.prototype.getDefaultPosition=function(){return&quot;bottom-left&quot;},yi.prototype._updateLogo=function(t){t&amp;&amp;&quot;metadata&quot;!==t.sourceDataType||(this._container.style.display=this._logoRequired()?&quot;block&quot;:&quot;none&quot;)},yi.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}},yi.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth&lt;250?e.classList.add(&quot;mapboxgl-compact&quot;):e.classList.remove(&quot;mapboxgl-compact&quot;)}};var xi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};xi.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},xi.prototype.remove=function(t){for(var e=this._currentlyRunning,r=0,n=e?this._queue.concat(e):this._queue;r&lt;n.length;r+=1){var i=n[r];if(i.id===t)return void(i.cancelled=!0)}},xi.prototype.run=function(t){void 0===t&amp;&amp;(t=0);var e=this._currentlyRunning=this._queue;this._queue=[];for(var r=0,n=e;r&lt;n.length;r+=1){var i=n[r];if(!i.cancelled&amp;&amp;(i.callback(t),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},xi.prototype.clear=function(){this._currentlyRunning&amp;&amp;(this._cleared=!0),this._queue=[]};var bi={&quot;FullscreenControl.Enter&quot;:&quot;Enter fullscreen&quot;,&quot;FullscreenControl.Exit&quot;:&quot;Exit fullscreen&quot;,&quot;GeolocateControl.FindMyLocation&quot;:&quot;Find my location&quot;,&quot;GeolocateControl.LocationNotAvailable&quot;:&quot;Location not available&quot;,&quot;LogoControl.Title&quot;:&quot;Mapbox logo&quot;,&quot;NavigationControl.ResetBearing&quot;:&quot;Reset bearing to north&quot;,&quot;NavigationControl.ZoomIn&quot;:&quot;Zoom in&quot;,&quot;NavigationControl.ZoomOut&quot;:&quot;Zoom out&quot;,&quot;ScaleControl.Feet&quot;:&quot;ft&quot;,&quot;ScaleControl.Meters&quot;:&quot;m&quot;,&quot;ScaleControl.Kilometers&quot;:&quot;km&quot;,&quot;ScaleControl.Miles&quot;:&quot;mi&quot;,&quot;ScaleControl.NauticalMiles&quot;:&quot;nm&quot;},_i=t.window.HTMLImageElement,wi=t.window.HTMLElement,Ti=t.window.ImageBitmap,ki={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:&quot;sans-serif&quot;,transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Mi=function(n){function i(e){var r=this;if(null!=(e=t.extend({},ki,e)).minZoom&amp;&amp;null!=e.maxZoom&amp;&amp;e.minZoom&gt;e.maxZoom)throw new Error(&quot;maxZoom must be greater than or equal to minZoom&quot;);if(null!=e.minPitch&amp;&amp;null!=e.maxPitch&amp;&amp;e.minPitch&gt;e.maxPitch)throw new Error(&quot;maxPitch must be greater than or equal to minPitch&quot;);if(null!=e.minPitch&amp;&amp;e.minPitch&lt;0)throw new Error(&quot;minPitch must be greater than or equal to 0&quot;);if(null!=e.maxPitch&amp;&amp;e.maxPitch&gt;60)throw new Error(&quot;maxPitch must be less than or equal to 60&quot;);var i=new wn(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies);if(n.call(this,i,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new xi,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},bi,e.locale),this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken),&quot;string&quot;==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error(&quot;Container '&quot;+e.container+&quot;' not found.&quot;)}else{if(!(e.container instanceof wi))throw new Error(&quot;Invalid type: 'container' must be a String or HTMLElement.&quot;);this._container=e.container}if(e.maxBounds&amp;&amp;this.setMaxBounds(e.maxBounds),t.bindAll([&quot;_onWindowOnline&quot;,&quot;_onWindowResize&quot;,&quot;_contextLost&quot;,&quot;_contextRestored&quot;],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error(&quot;Failed to initialize WebGL.&quot;);this.on(&quot;move&quot;,(function(){return r._update(!1)})),this.on(&quot;moveend&quot;,(function(){return r._update(!1)})),this.on(&quot;zoom&quot;,(function(){return r._update(!0)})),void 0!==t.window&amp;&amp;(t.window.addEventListener(&quot;online&quot;,this._onWindowOnline,!1),t.window.addEventListener(&quot;resize&quot;,this._onWindowResize,!1)),this.handlers=new gi(this,e),this._hash=e.hash&amp;&amp;new kn(&quot;string&quot;==typeof e.hash&amp;&amp;e.hash||void 0).addTo(this),this._hash&amp;&amp;this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&amp;&amp;(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&amp;&amp;this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&amp;&amp;this.addControl(new vi({customAttribution:e.customAttribution})),this.addControl(new yi,e.logoPosition),this.on(&quot;style.load&quot;,(function(){r.transform.unmodified&amp;&amp;r.jumpTo(r.style.stylesheet)})),this.on(&quot;data&quot;,(function(e){r._update(&quot;style&quot;===e.dataType),r.fire(new t.Event(e.dataType+&quot;data&quot;,e))})),this.on(&quot;dataloading&quot;,(function(e){r.fire(new t.Event(e.dataType+&quot;dataloading&quot;,e))}))}n&amp;&amp;(i.__proto__=n),(i.prototype=Object.create(n&amp;&amp;n.prototype)).constructor=i;var a={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return i.prototype._getMapId=function(){return this._mapId},i.prototype.addControl=function(e,r){if(void 0===r&amp;&amp;e.getDefaultPosition&amp;&amp;(r=e.getDefaultPosition()),void 0===r&amp;&amp;(r=&quot;top-right&quot;),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.&quot;)));var n=e.onAdd(this);this._controls.push(e);var i=this._controlPositions[r];return-1!==r.indexOf(&quot;bottom&quot;)?i.insertBefore(n,i.firstChild):i.appendChild(n),this},i.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.&quot;)));var r=this._controls.indexOf(e);return r&gt;-1&amp;&amp;this._controls.splice(r,1),e.onRemove(this),this},i.prototype.resize=function(e){var r=this._containerDimensions(),n=r[0],i=r[1];this._resizeCanvas(n,i),this.transform.resize(n,i),this.painter.resize(n,i);var a=!this._moving;return a&amp;&amp;(this.stop(),this.fire(new t.Event(&quot;movestart&quot;,e)).fire(new t.Event(&quot;move&quot;,e))),this.fire(new t.Event(&quot;resize&quot;,e)),a&amp;&amp;this.fire(new t.Event(&quot;moveend&quot;,e)),this},i.prototype.getBounds=function(){return this.transform.getBounds()},i.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},i.prototype.setMaxBounds=function(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()},i.prototype.setMinZoom=function(t){if((t=null==t?-2:t)&gt;=-2&amp;&amp;t&lt;=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()&lt;t&amp;&amp;this.setZoom(t),this;throw new Error(&quot;minZoom must be between -2 and the current maxZoom, inclusive&quot;)},i.prototype.getMinZoom=function(){return this.transform.minZoom},i.prototype.setMaxZoom=function(t){if((t=null==t?22:t)&gt;=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()&gt;t&amp;&amp;this.setZoom(t),this;throw new Error(&quot;maxZoom must be greater than the current minZoom&quot;)},i.prototype.getMaxZoom=function(){return this.transform.maxZoom},i.prototype.setMinPitch=function(t){if((t=null==t?0:t)&lt;0)throw new Error(&quot;minPitch must be greater than or equal to 0&quot;);if(t&gt;=0&amp;&amp;t&lt;=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()&lt;t&amp;&amp;this.setPitch(t),this;throw new Error(&quot;minPitch must be between 0 and the current maxPitch, inclusive&quot;)},i.prototype.getMinPitch=function(){return this.transform.minPitch},i.prototype.setMaxPitch=function(t){if((t=null==t?60:t)&gt;60)throw new Error(&quot;maxPitch must be less than or equal to 60&quot;);if(t&gt;=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()&gt;t&amp;&amp;this.setPitch(t),this;throw new Error(&quot;maxPitch must be greater than the current minPitch&quot;)},i.prototype.getMaxPitch=function(){return this.transform.maxPitch},i.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},i.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},i.prototype.project=function(e){return this.transform.locationPoint(t.LngLat.convert(e))},i.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},i.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},i.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},i.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},i.prototype._createDelegatedListener=function(t,e,r){var n,i=this;if(&quot;mouseenter&quot;===t||&quot;mouseover&quot;===t){var a=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){var o=i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[];o.length?a||(a=!0,r.call(i,new zn(t,i,n.originalEvent,{features:o}))):a=!1},mouseout:function(){a=!1}}}}if(&quot;mouseleave&quot;===t||&quot;mouseout&quot;===t){var o=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){(i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[]).length?o=!0:o&amp;&amp;(o=!1,r.call(i,new zn(t,i,n.originalEvent)))},mouseout:function(e){o&amp;&amp;(o=!1,r.call(i,new zn(t,i,e.originalEvent)))}}}}return{layer:e,listener:r,delegates:(n={},n[t]=function(t){var n=i.getLayer(e)?i.queryRenderedFeatures(t.point,{layers:[e]}):[];n.length&amp;&amp;(t.features=n,r.call(i,t),delete t.features)},n)}},i.prototype.on=function(t,e,r){if(void 0===r)return n.prototype.on.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(i),i.delegates)this.on(a,i.delegates[a]);return this},i.prototype.once=function(t,e,r){if(void 0===r)return n.prototype.once.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in i.delegates)this.once(a,i.delegates[a]);return this},i.prototype.off=function(t,e,r){var i=this;return void 0===r?n.prototype.off.call(this,t,e):(this._delegatedListeners&amp;&amp;this._delegatedListeners[t]&amp;&amp;function(n){for(var a=n[t],o=0;o&lt;a.length;o++){var s=a[o];if(s.layer===e&amp;&amp;s.listener===r){for(var l in s.delegates)i.off(l,s.delegates[l]);return a.splice(o,1),i}}}(this._delegatedListeners),this)},i.prototype.queryRenderedFeatures=function(e,r){if(!this.style)return[];var n;if(void 0!==r||void 0===e||e instanceof t.Point||Array.isArray(e)||(r=e,e=void 0),r=r||{},(e=e||[[0,0],[this.transform.width,this.transform.height]])instanceof t.Point||&quot;number&quot;==typeof e[0])n=[t.Point.convert(e)];else{var i=t.Point.convert(e[0]),a=t.Point.convert(e[1]);n=[i,new t.Point(a.x,i.y),a,new t.Point(i.x,a.y),i]}return this.style.queryRenderedFeatures(n,r,this.transform)},i.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},i.prototype.setStyle=function(e,r){return!1!==(r=t.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},r)).diff&amp;&amp;r.localIdeographFontFamily===this._localIdeographFontFamily&amp;&amp;this.style&amp;&amp;e?(this._diffStyle(e,r),this):(this._localIdeographFontFamily=r.localIdeographFontFamily,this._updateStyle(e,r))},i.prototype._getUIString=function(t){var e=this._locale[t];if(null==e)throw new Error(&quot;Missing UI string '&quot;+t+&quot;'&quot;);return e},i.prototype._updateStyle=function(t,e){return this.style&amp;&amp;(this.style.setEventedParent(null),this.style._remove()),t?(this.style=new qe(this,e||{}),this.style.setEventedParent(this,{style:this.style}),&quot;string&quot;==typeof t?this.style.loadURL(t):this.style.loadJSON(t),this):(delete this.style,this)},i.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new qe(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},i.prototype._diffStyle=function(e,r){var n=this;if(&quot;string&quot;==typeof e){var i=this._requestManager.normalizeStyleURL(e),a=this._requestManager.transformRequest(i,t.ResourceType.Style);t.getJSON(a,(function(e,i){e?n.fire(new t.ErrorEvent(e)):i&amp;&amp;n._updateDiff(i,r)}))}else&quot;object&quot;==typeof e&amp;&amp;this._updateDiff(e,r)},i.prototype._updateDiff=function(e,r){try{this.style.setState(e)&amp;&amp;this._update(!0)}catch(n){t.warnOnce(&quot;Unable to perform style diff: &quot;+(n.message||n.error||n)+&quot;.  Rebuilding the style from scratch.&quot;),this._updateStyle(e,r)}},i.prototype.getStyle=function(){if(this.style)return this.style.serialize()},i.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():t.warnOnce(&quot;There is no style added to the map.&quot;)},i.prototype.addSource=function(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)},i.prototype.isSourceLoaded=function(e){var r=this.style&amp;&amp;this.style.sourceCaches[e];if(void 0!==r)return r.loaded();this.fire(new t.ErrorEvent(new Error(&quot;There is no source with ID '&quot;+e+&quot;'&quot;)))},i.prototype.areTilesLoaded=function(){var t=this.style&amp;&amp;this.style.sourceCaches;for(var e in t){var r=t[e]._tiles;for(var n in r){var i=r[n];if(&quot;loaded&quot;!==i.state&amp;&amp;&quot;errored&quot;!==i.state)return!1}}return!0},i.prototype.addSourceType=function(t,e,r){return this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,r)},i.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0)},i.prototype.getSource=function(t){return this.style.getSource(t)},i.prototype.addImage=function(e,r,n){void 0===n&amp;&amp;(n={});var i=n.pixelRatio;void 0===i&amp;&amp;(i=1);var a=n.sdf;void 0===a&amp;&amp;(a=!1);var o=n.stretchX,s=n.stretchY,l=n.content;if(this._lazyInitEmptyStyle(),r instanceof _i||Ti&amp;&amp;r instanceof Ti){var c=t.browser.getImageData(r);this.style.addImage(e,{data:new t.RGBAImage({width:c.width,height:c.height},c.data),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:0})}else{if(void 0===r.width||void 0===r.height)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`&quot;)));var u=r;this.style.addImage(e,{data:new t.RGBAImage({width:r.width,height:r.height},new Uint8Array(r.data)),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:0,userImage:u}),u.onAdd&amp;&amp;u.onAdd(this,e)}},i.prototype.updateImage=function(e,r){var n=this.style.getImage(e);if(!n)return this.fire(new t.ErrorEvent(new Error(&quot;The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.&quot;)));var i=r instanceof _i||Ti&amp;&amp;r instanceof Ti?t.browser.getImageData(r):r,a=i.width,o=i.height,s=i.data;return void 0===a||void 0===o?this.fire(new t.ErrorEvent(new Error(&quot;Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`&quot;))):a!==n.data.width||o!==n.data.height?this.fire(new t.ErrorEvent(new Error(&quot;The width and height of the updated image must be that same as the previous version of the image&quot;))):(n.data.replace(s,!(r instanceof _i||Ti&amp;&amp;r instanceof Ti)),void this.style.updateImage(e,n))},i.prototype.hasImage=function(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error(&quot;Missing required image id&quot;))),!1)},i.prototype.removeImage=function(t){this.style.removeImage(t)},i.prototype.loadImage=function(e,r){t.getImage(this._requestManager.transformRequest(e,t.ResourceType.Image),r)},i.prototype.listImages=function(){return this.style.listImages()},i.prototype.addLayer=function(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)},i.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0)},i.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0)},i.prototype.getLayer=function(t){return this.style.getLayer(t)},i.prototype.setLayerZoomRange=function(t,e,r){return this.style.setLayerZoomRange(t,e,r),this._update(!0)},i.prototype.setFilter=function(t,e,r){return void 0===r&amp;&amp;(r={}),this.style.setFilter(t,e,r),this._update(!0)},i.prototype.getFilter=function(t){return this.style.getFilter(t)},i.prototype.setPaintProperty=function(t,e,r,n){return void 0===n&amp;&amp;(n={}),this.style.setPaintProperty(t,e,r,n),this._update(!0)},i.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},i.prototype.setLayoutProperty=function(t,e,r,n){return void 0===n&amp;&amp;(n={}),this.style.setLayoutProperty(t,e,r,n),this._update(!0)},i.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},i.prototype.setLight=function(t,e){return void 0===e&amp;&amp;(e={}),this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)},i.prototype.getLight=function(){return this.style.getLight()},i.prototype.setFeatureState=function(t,e){return this.style.setFeatureState(t,e),this._update()},i.prototype.removeFeatureState=function(t,e){return this.style.removeFeatureState(t,e),this._update()},i.prototype.getFeatureState=function(t){return this.style.getFeatureState(t)},i.prototype.getContainer=function(){return this._container},i.prototype.getCanvasContainer=function(){return this._canvasContainer},i.prototype.getCanvas=function(){return this._canvas},i.prototype._containerDimensions=function(){var t=0,e=0;return this._container&amp;&amp;(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]},i.prototype._detectMissingCSS=function(){&quot;rgb(250, 128, 114)&quot;!==t.window.getComputedStyle(this._missingCSSCanary).getPropertyValue(&quot;background-color&quot;)&amp;&amp;t.warnOnce(&quot;This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.&quot;)},i.prototype._setupContainer=function(){var t=this._container;t.classList.add(&quot;mapboxgl-map&quot;),(this._missingCSSCanary=r.create(&quot;div&quot;,&quot;mapboxgl-canary&quot;,t)).style.visibility=&quot;hidden&quot;,this._detectMissingCSS();var e=this._canvasContainer=r.create(&quot;div&quot;,&quot;mapboxgl-canvas-container&quot;,t);this._interactive&amp;&amp;e.classList.add(&quot;mapboxgl-interactive&quot;),this._canvas=r.create(&quot;canvas&quot;,&quot;mapboxgl-canvas&quot;,e),this._canvas.addEventListener(&quot;webglcontextlost&quot;,this._contextLost,!1),this._canvas.addEventListener(&quot;webglcontextrestored&quot;,this._contextRestored,!1),this._canvas.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),this._canvas.setAttribute(&quot;aria-label&quot;,&quot;Map&quot;);var n=this._containerDimensions();this._resizeCanvas(n[0],n[1]);var i=this._controlContainer=r.create(&quot;div&quot;,&quot;mapboxgl-control-container&quot;,t),a=this._controlPositions={};[&quot;top-left&quot;,&quot;top-right&quot;,&quot;bottom-left&quot;,&quot;bottom-right&quot;].forEach((function(t){a[t]=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl-&quot;+t,i)}))},i.prototype._resizeCanvas=function(e,r){var n=t.browser.devicePixelRatio||1;this._canvas.width=n*e,this._canvas.height=n*r,this._canvas.style.width=e+&quot;px&quot;,this._canvas.style.height=r+&quot;px&quot;},i.prototype._setupPainter=function(){var r=t.extend({},e.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),n=this._canvas.getContext(&quot;webgl&quot;,r)||this._canvas.getContext(&quot;experimental-webgl&quot;,r);n?(this.painter=new yn(n,this.transform),t.webpSupported.testSupport(n)):this.fire(new t.ErrorEvent(new Error(&quot;Failed to initialize WebGL&quot;)))},i.prototype._contextLost=function(e){e.preventDefault(),this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this.fire(new t.Event(&quot;webglcontextlost&quot;,{originalEvent:e}))},i.prototype._contextRestored=function(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event(&quot;webglcontextrestored&quot;,{originalEvent:e}))},i.prototype.loaded=function(){return!this._styleDirty&amp;&amp;!this._sourcesDirty&amp;&amp;!!this.style&amp;&amp;this.style.loaded()},i.prototype._update=function(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this},i.prototype._requestRenderFrame=function(t){return this._update(),this._renderTaskQueue.add(t)},i.prototype._cancelRenderFrame=function(t){this._renderTaskQueue.remove(t)},i.prototype._render=function(e){var r,n=this,i=0,a=this.painter.context.extTimerQuery;if(this.listens(&quot;gpu-timing-frame&quot;)&amp;&amp;(r=a.createQueryEXT(),a.beginQueryEXT(a.TIME_ELAPSED_EXT,r),i=t.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),!this._removed){var o=!1;if(this.style&amp;&amp;this._styleDirty){this._styleDirty=!1;var s=this.transform.zoom,l=t.browser.now();this.style.zoomHistory.update(s,l);var c=new t.EvaluationParameters(s,{now:l,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),u=c.crossFadingFactor();1===u&amp;&amp;u===this._crossFadingFactor||(o=!0,this._crossFadingFactor=u),this.style.update(c)}if(this.style&amp;&amp;this._sourcesDirty&amp;&amp;(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&amp;&amp;this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens(&quot;gpu-timing-layer&quot;)}),this.fire(new t.Event(&quot;render&quot;)),this.loaded()&amp;&amp;!this._loaded&amp;&amp;(this._loaded=!0,this.fire(new t.Event(&quot;load&quot;))),this.style&amp;&amp;(this.style.hasTransitions()||o)&amp;&amp;(this._styleDirty=!0),this.style&amp;&amp;!this._placementDirty&amp;&amp;this.style._releaseSymbolFadeTiles(),this.listens(&quot;gpu-timing-frame&quot;)){var f=t.browser.now()-i;a.endQueryEXT(a.TIME_ELAPSED_EXT,r),setTimeout((function(){var e=a.getQueryObjectEXT(r,a.QUERY_RESULT_EXT)/1e6;a.deleteQueryEXT(r),n.fire(new t.Event(&quot;gpu-timing-frame&quot;,{cpuTime:f,gpuTime:e}))}),50)}if(this.listens(&quot;gpu-timing-layer&quot;)){var h=this.painter.collectGpuTimers();setTimeout((function(){var e=n.painter.queryGpuTimers(h);n.fire(new t.Event(&quot;gpu-timing-layer&quot;,{layerTimes:e}))}),50)}return this._sourcesDirty||this._styleDirty||this._placementDirty||this._repaint?this.triggerRepaint():!this.isMoving()&amp;&amp;this.loaded()&amp;&amp;(this._fullyLoaded||(this._fullyLoaded=!0),this.fire(new t.Event(&quot;idle&quot;))),this}},i.prototype.remove=function(){this._hash&amp;&amp;this._hash.remove();for(var e=0,r=this._controls;e&lt;r.length;e+=1)r[e].onRemove(this);this._controls=[],this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),void 0!==t.window&amp;&amp;(t.window.removeEventListener(&quot;resize&quot;,this._onWindowResize,!1),t.window.removeEventListener(&quot;online&quot;,this._onWindowOnline,!1));var n=this.painter.context.gl.getExtension(&quot;WEBGL_lose_context&quot;);n&amp;&amp;n.loseContext(),Ai(this._canvasContainer),Ai(this._controlContainer),Ai(this._missingCSSCanary),this._container.classList.remove(&quot;mapboxgl-map&quot;),this._removed=!0,this.fire(new t.Event(&quot;remove&quot;))},i.prototype.triggerRepaint=function(){var e=this;this.style&amp;&amp;!this._frame&amp;&amp;(this._frame=t.browser.frame((function(t){e._frame=null,e._render(t)})))},i.prototype._onWindowOnline=function(){this._update()},i.prototype._onWindowResize=function(t){this._trackResize&amp;&amp;this.resize({originalEvent:t})._update()},a.showTileBoundaries.get=function(){return!!this._showTileBoundaries},a.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&amp;&amp;(this._showTileBoundaries=t,this._update())},a.showPadding.get=function(){return!!this._showPadding},a.showPadding.set=function(t){this._showPadding!==t&amp;&amp;(this._showPadding=t,this._update())},a.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},a.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&amp;&amp;(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())},a.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},a.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&amp;&amp;(this._showOverdrawInspector=t,this._update())},a.repaint.get=function(){return!!this._repaint},a.repaint.set=function(t){this._repaint!==t&amp;&amp;(this._repaint=t,this.triggerRepaint())},a.vertices.get=function(){return!!this._vertices},a.vertices.set=function(t){this._vertices=t,this._update()},i.prototype._setCacheLimits=function(e,r){t.setCacheLimits(e,r)},a.version.get=function(){return t.version},Object.defineProperties(i.prototype,a),i}(mi);function Ai(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)}var Si={showCompass:!0,showZoom:!0,visualizePitch:!1},Ei=function(e){var n=this;this.options=t.extend({},Si,e),this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),this._container.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault()})),this.options.showZoom&amp;&amp;(t.bindAll([&quot;_setButtonTitle&quot;,&quot;_updateZoomButtons&quot;],this),this._zoomInButton=this._createButton(&quot;mapboxgl-ctrl-zoom-in&quot;,(function(t){return n._map.zoomIn({},{originalEvent:t})})),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._zoomInButton).setAttribute(&quot;aria-hidden&quot;,!0),this._zoomOutButton=this._createButton(&quot;mapboxgl-ctrl-zoom-out&quot;,(function(t){return n._map.zoomOut({},{originalEvent:t})})),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._zoomOutButton).setAttribute(&quot;aria-hidden&quot;,!0)),this.options.showCompass&amp;&amp;(t.bindAll([&quot;_rotateCompassArrow&quot;],this),this._compass=this._createButton(&quot;mapboxgl-ctrl-compass&quot;,(function(t){n.options.visualizePitch?n._map.resetNorthPitch({},{originalEvent:t}):n._map.resetNorth({},{originalEvent:t})})),this._compassIcon=r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._compass),this._compassIcon.setAttribute(&quot;aria-hidden&quot;,!0))};Ei.prototype._updateZoomButtons=function(){var t=this._map.getZoom();this._zoomInButton.disabled=t===this._map.getMaxZoom(),this._zoomOutButton.disabled=t===this._map.getMinZoom()},Ei.prototype._rotateCompassArrow=function(){var t=this.options.visualizePitch?&quot;scale(&quot;+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+&quot;) rotateX(&quot;+this._map.transform.pitch+&quot;deg) rotateZ(&quot;+this._map.transform.angle*(180/Math.PI)+&quot;deg)&quot;:&quot;rotate(&quot;+this._map.transform.angle*(180/Math.PI)+&quot;deg)&quot;;this._compassIcon.style.transform=t},Ei.prototype.onAdd=function(t){return this._map=t,this.options.showZoom&amp;&amp;(this._setButtonTitle(this._zoomInButton,&quot;ZoomIn&quot;),this._setButtonTitle(this._zoomOutButton,&quot;ZoomOut&quot;),this._map.on(&quot;zoom&quot;,this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&amp;&amp;(this._setButtonTitle(this._compass,&quot;ResetBearing&quot;),this.options.visualizePitch&amp;&amp;this._map.on(&quot;pitch&quot;,this._rotateCompassArrow),this._map.on(&quot;rotate&quot;,this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Ci(this._map,this._compass,this.options.visualizePitch)),this._container},Ei.prototype.onRemove=function(){r.remove(this._container),this.options.showZoom&amp;&amp;this._map.off(&quot;zoom&quot;,this._updateZoomButtons),this.options.showCompass&amp;&amp;(this.options.visualizePitch&amp;&amp;this._map.off(&quot;pitch&quot;,this._rotateCompassArrow),this._map.off(&quot;rotate&quot;,this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map},Ei.prototype._createButton=function(t,e){var n=r.create(&quot;button&quot;,t,this._container);return n.type=&quot;button&quot;,n.addEventListener(&quot;click&quot;,e),n},Ei.prototype._setButtonTitle=function(t,e){var r=this._map._getUIString(&quot;NavigationControl.&quot;+e);t.title=r,t.setAttribute(&quot;aria-label&quot;,r)};var Ci=function(e,n,i){void 0===i&amp;&amp;(i=!1),this._clickTolerance=10,this.element=n,this.mouseRotate=new Gn({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,i&amp;&amp;(this.mousePitch=new Yn({clickTolerance:e.dragRotate._mousePitch._clickTolerance})),t.bindAll([&quot;mousedown&quot;,&quot;mousemove&quot;,&quot;mouseup&quot;,&quot;touchstart&quot;,&quot;touchmove&quot;,&quot;touchend&quot;,&quot;reset&quot;],this),r.addEventListener(n,&quot;mousedown&quot;,this.mousedown),r.addEventListener(n,&quot;touchstart&quot;,this.touchstart,{passive:!1}),r.addEventListener(n,&quot;touchmove&quot;,this.touchmove),r.addEventListener(n,&quot;touchend&quot;,this.touchend),r.addEventListener(n,&quot;touchcancel&quot;,this.reset)};function Li(e,r,n){if(e=new t.LngLat(e.lng,e.lat),r){var i=new t.LngLat(e.lng-360,e.lat),a=new t.LngLat(e.lng+360,e.lat),o=n.locationPoint(e).distSqr(r);n.locationPoint(i).distSqr(r)&lt;o?e=i:n.locationPoint(a).distSqr(r)&lt;o&amp;&amp;(e=a)}for(;Math.abs(e.lng-n.center.lng)&gt;180;){var s=n.locationPoint(e);if(s.x&gt;=0&amp;&amp;s.y&gt;=0&amp;&amp;s.x&lt;=n.width&amp;&amp;s.y&lt;=n.height)break;e.lng&gt;n.center.lng?e.lng-=360:e.lng+=360}return e}Ci.prototype.down=function(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&amp;&amp;this.mousePitch.mousedown(t,e),r.disableDrag()},Ci.prototype.move=function(t,e){var r=this.map,n=this.mouseRotate.mousemoveWindow(t,e);if(n&amp;&amp;n.bearingDelta&amp;&amp;r.setBearing(r.getBearing()+n.bearingDelta),this.mousePitch){var i=this.mousePitch.mousemoveWindow(t,e);i&amp;&amp;i.pitchDelta&amp;&amp;r.setPitch(r.getPitch()+i.pitchDelta)}},Ci.prototype.off=function(){var t=this.element;r.removeEventListener(t,&quot;mousedown&quot;,this.mousedown),r.removeEventListener(t,&quot;touchstart&quot;,this.touchstart,{passive:!1}),r.removeEventListener(t,&quot;touchmove&quot;,this.touchmove),r.removeEventListener(t,&quot;touchend&quot;,this.touchend),r.removeEventListener(t,&quot;touchcancel&quot;,this.reset),this.offTemp()},Ci.prototype.offTemp=function(){r.enableDrag(),r.removeEventListener(t.window,&quot;mousemove&quot;,this.mousemove),r.removeEventListener(t.window,&quot;mouseup&quot;,this.mouseup)},Ci.prototype.mousedown=function(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:function(){return e.preventDefault()}}),r.mousePos(this.element,e)),r.addEventListener(t.window,&quot;mousemove&quot;,this.mousemove),r.addEventListener(t.window,&quot;mouseup&quot;,this.mouseup)},Ci.prototype.mousemove=function(t){this.move(t,r.mousePos(this.element,t))},Ci.prototype.mouseup=function(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&amp;&amp;this.mousePitch.mouseupWindow(t),this.offTemp()},Ci.prototype.touchstart=function(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.down({type:&quot;mousedown&quot;,button:0,ctrlKey:!0,preventDefault:function(){return t.preventDefault()}},this._startPos))},Ci.prototype.touchmove=function(t){1!==t.targetTouches.length?this.reset():(this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:function(){return t.preventDefault()}},this._lastPos))},Ci.prototype.touchend=function(t){0===t.targetTouches.length&amp;&amp;this._startPos&amp;&amp;this._lastPos&amp;&amp;this._startPos.dist(this._lastPos)&lt;this._clickTolerance&amp;&amp;this.element.click(),this.reset()},Ci.prototype.reset=function(){this.mouseRotate.reset(),this.mousePitch&amp;&amp;this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()};var Ii={center:&quot;translate(-50%,-50%)&quot;,top:&quot;translate(-50%,0)&quot;,&quot;top-left&quot;:&quot;translate(0,0)&quot;,&quot;top-right&quot;:&quot;translate(-100%,0)&quot;,bottom:&quot;translate(-50%,-100%)&quot;,&quot;bottom-left&quot;:&quot;translate(0,-100%)&quot;,&quot;bottom-right&quot;:&quot;translate(-100%,-100%)&quot;,left:&quot;translate(0,-50%)&quot;,right:&quot;translate(-100%,-50%)&quot;};function Pi(t,e,r){var n=t.classList;for(var i in Ii)n.remove(&quot;mapboxgl-&quot;+r+&quot;-anchor-&quot;+i);n.add(&quot;mapboxgl-&quot;+r+&quot;-anchor-&quot;+e)}var zi,Oi=function(e){function n(n,i){var a=this;if(e.call(this),(n instanceof t.window.HTMLElement||i)&amp;&amp;(n=t.extend({element:n},i)),t.bindAll([&quot;_update&quot;,&quot;_onMove&quot;,&quot;_onUp&quot;,&quot;_addDragHandler&quot;,&quot;_onMapClick&quot;,&quot;_onKeyPress&quot;],this),this._anchor=n&amp;&amp;n.anchor||&quot;center&quot;,this._color=n&amp;&amp;n.color||&quot;#3FB1CE&quot;,this._draggable=n&amp;&amp;n.draggable||!1,this._state=&quot;inactive&quot;,this._rotation=n&amp;&amp;n.rotation||0,this._rotationAlignment=n&amp;&amp;n.rotationAlignment||&quot;auto&quot;,this._pitchAlignment=n&amp;&amp;n.pitchAlignment&amp;&amp;&quot;auto&quot;!==n.pitchAlignment?n.pitchAlignment:this._rotationAlignment,n&amp;&amp;n.element)this._element=n.element,this._offset=t.Point.convert(n&amp;&amp;n.offset||[0,0]);else{this._defaultMarker=!0,this._element=r.create(&quot;div&quot;),this._element.setAttribute(&quot;aria-label&quot;,&quot;Map marker&quot;);var o=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);o.setAttributeNS(null,&quot;display&quot;,&quot;block&quot;),o.setAttributeNS(null,&quot;height&quot;,&quot;41px&quot;),o.setAttributeNS(null,&quot;width&quot;,&quot;27px&quot;),o.setAttributeNS(null,&quot;viewBox&quot;,&quot;0 0 27 41&quot;);var s=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);s.setAttributeNS(null,&quot;stroke&quot;,&quot;none&quot;),s.setAttributeNS(null,&quot;stroke-width&quot;,&quot;1&quot;),s.setAttributeNS(null,&quot;fill&quot;,&quot;none&quot;),s.setAttributeNS(null,&quot;fill-rule&quot;,&quot;evenodd&quot;);var l=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);l.setAttributeNS(null,&quot;fill-rule&quot;,&quot;nonzero&quot;);var c=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);c.setAttributeNS(null,&quot;transform&quot;,&quot;translate(3.0, 29.0)&quot;),c.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;);for(var u=0,f=[{rx:&quot;10.5&quot;,ry:&quot;5.25002273&quot;},{rx:&quot;10.5&quot;,ry:&quot;5.25002273&quot;},{rx:&quot;9.5&quot;,ry:&quot;4.77275007&quot;},{rx:&quot;8.5&quot;,ry:&quot;4.29549936&quot;},{rx:&quot;7.5&quot;,ry:&quot;3.81822308&quot;},{rx:&quot;6.5&quot;,ry:&quot;3.34094679&quot;},{rx:&quot;5.5&quot;,ry:&quot;2.86367051&quot;},{rx:&quot;4.5&quot;,ry:&quot;2.38636864&quot;}];u&lt;f.length;u+=1){var h=f[u],p=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;ellipse&quot;);p.setAttributeNS(null,&quot;opacity&quot;,&quot;0.04&quot;),p.setAttributeNS(null,&quot;cx&quot;,&quot;10.5&quot;),p.setAttributeNS(null,&quot;cy&quot;,&quot;5.80029008&quot;),p.setAttributeNS(null,&quot;rx&quot;,h.rx),p.setAttributeNS(null,&quot;ry&quot;,h.ry),c.appendChild(p)}var d=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);d.setAttributeNS(null,&quot;fill&quot;,this._color);var g=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;path&quot;);g.setAttributeNS(null,&quot;d&quot;,&quot;M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z&quot;),d.appendChild(g);var m=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);m.setAttributeNS(null,&quot;opacity&quot;,&quot;0.25&quot;),m.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;);var v=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;path&quot;);v.setAttributeNS(null,&quot;d&quot;,&quot;M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z&quot;),m.appendChild(v);var y=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);y.setAttributeNS(null,&quot;transform&quot;,&quot;translate(6.0, 7.0)&quot;),y.setAttributeNS(null,&quot;fill&quot;,&quot;#FFFFFF&quot;);var x=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);x.setAttributeNS(null,&quot;transform&quot;,&quot;translate(8.0, 8.0)&quot;);var b=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;circle&quot;);b.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;),b.setAttributeNS(null,&quot;opacity&quot;,&quot;0.25&quot;),b.setAttributeNS(null,&quot;cx&quot;,&quot;5.5&quot;),b.setAttributeNS(null,&quot;cy&quot;,&quot;5.5&quot;),b.setAttributeNS(null,&quot;r&quot;,&quot;5.4999962&quot;);var _=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;circle&quot;);_.setAttributeNS(null,&quot;fill&quot;,&quot;#FFFFFF&quot;),_.setAttributeNS(null,&quot;cx&quot;,&quot;5.5&quot;),_.setAttributeNS(null,&quot;cy&quot;,&quot;5.5&quot;),_.setAttributeNS(null,&quot;r&quot;,&quot;5.4999962&quot;),x.appendChild(b),x.appendChild(_),l.appendChild(c),l.appendChild(d),l.appendChild(m),l.appendChild(y),l.appendChild(x),o.appendChild(l),this._element.appendChild(o),this._offset=t.Point.convert(n&amp;&amp;n.offset||[0,-14])}this._element.classList.add(&quot;mapboxgl-marker&quot;),this._element.addEventListener(&quot;dragstart&quot;,(function(t){t.preventDefault()})),this._element.addEventListener(&quot;mousedown&quot;,(function(t){t.preventDefault()})),this._element.addEventListener(&quot;focus&quot;,(function(){var t=a._map.getContainer();t.scrollTop=0,t.scrollLeft=0})),Pi(this._element,this._anchor,&quot;marker&quot;),this._popup=null}return e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n,n.prototype.addTo=function(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on(&quot;move&quot;,this._update),t.on(&quot;moveend&quot;,this._update),this.setDraggable(this._draggable),this._update(),this._map.on(&quot;click&quot;,this._onMapClick),this},n.prototype.remove=function(){return this._map&amp;&amp;(this._map.off(&quot;click&quot;,this._onMapClick),this._map.off(&quot;move&quot;,this._update),this._map.off(&quot;moveend&quot;,this._update),this._map.off(&quot;mousedown&quot;,this._addDragHandler),this._map.off(&quot;touchstart&quot;,this._addDragHandler),this._map.off(&quot;mouseup&quot;,this._onUp),this._map.off(&quot;touchend&quot;,this._onUp),this._map.off(&quot;mousemove&quot;,this._onMove),this._map.off(&quot;touchmove&quot;,this._onMove),delete this._map),r.remove(this._element),this._popup&amp;&amp;this._popup.remove(),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._popup&amp;&amp;this._popup.setLngLat(this._lngLat),this._update(),this},n.prototype.getElement=function(){return this._element},n.prototype.setPopup=function(t){if(this._popup&amp;&amp;(this._popup.remove(),this._popup=null,this._element.removeEventListener(&quot;keypress&quot;,this._onKeyPress),this._originalTabIndex||this._element.removeAttribute(&quot;tabindex&quot;)),t){if(!(&quot;offset&quot;in t.options)){var e=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],&quot;top-left&quot;:[0,0],&quot;top-right&quot;:[0,0],bottom:[0,-38.1],&quot;bottom-left&quot;:[e,-1*(24.6+e)],&quot;bottom-right&quot;:[-e,-1*(24.6+e)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._lngLat&amp;&amp;this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute(&quot;tabindex&quot;),this._originalTabIndex||this._element.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),this._element.addEventListener(&quot;keypress&quot;,this._onKeyPress)}return this},n.prototype._onKeyPress=function(t){var e=t.code,r=t.charCode||t.keyCode;&quot;Space&quot;!==e&amp;&amp;&quot;Enter&quot;!==e&amp;&amp;32!==r&amp;&amp;13!==r||this.togglePopup()},n.prototype._onMapClick=function(t){var e=t.originalEvent.target,r=this._element;this._popup&amp;&amp;(e===r||r.contains(e))&amp;&amp;this.togglePopup()},n.prototype.getPopup=function(){return this._popup},n.prototype.togglePopup=function(){var t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this},n.prototype._update=function(t){if(this._map){this._map.transform.renderWorldCopies&amp;&amp;(this._lngLat=Li(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);var e=&quot;&quot;;&quot;viewport&quot;===this._rotationAlignment||&quot;auto&quot;===this._rotationAlignment?e=&quot;rotateZ(&quot;+this._rotation+&quot;deg)&quot;:&quot;map&quot;===this._rotationAlignment&amp;&amp;(e=&quot;rotateZ(&quot;+(this._rotation-this._map.getBearing())+&quot;deg)&quot;);var n=&quot;&quot;;&quot;viewport&quot;===this._pitchAlignment||&quot;auto&quot;===this._pitchAlignment?n=&quot;rotateX(0deg)&quot;:&quot;map&quot;===this._pitchAlignment&amp;&amp;(n=&quot;rotateX(&quot;+this._map.getPitch()+&quot;deg)&quot;),t&amp;&amp;&quot;moveend&quot;!==t.type||(this._pos=this._pos.round()),r.setTransform(this._element,Ii[this._anchor]+&quot; translate(&quot;+this._pos.x+&quot;px, &quot;+this._pos.y+&quot;px) &quot;+n+&quot; &quot;+e)}},n.prototype.getOffset=function(){return this._offset},n.prototype.setOffset=function(e){return this._offset=t.Point.convert(e),this._update(),this},n.prototype._onMove=function(e){this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents=&quot;none&quot;,&quot;pending&quot;===this._state&amp;&amp;(this._state=&quot;active&quot;,this.fire(new t.Event(&quot;dragstart&quot;))),this.fire(new t.Event(&quot;drag&quot;))},n.prototype._onUp=function(){this._element.style.pointerEvents=&quot;auto&quot;,this._positionDelta=null,this._map.off(&quot;mousemove&quot;,this._onMove),this._map.off(&quot;touchmove&quot;,this._onMove),&quot;active&quot;===this._state&amp;&amp;this.fire(new t.Event(&quot;dragend&quot;)),this._state=&quot;inactive&quot;},n.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&amp;&amp;(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._state=&quot;pending&quot;,this._map.on(&quot;mousemove&quot;,this._onMove),this._map.on(&quot;touchmove&quot;,this._onMove),this._map.once(&quot;mouseup&quot;,this._onUp),this._map.once(&quot;touchend&quot;,this._onUp))},n.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&amp;&amp;(t?(this._map.on(&quot;mousedown&quot;,this._addDragHandler),this._map.on(&quot;touchstart&quot;,this._addDragHandler)):(this._map.off(&quot;mousedown&quot;,this._addDragHandler),this._map.off(&quot;touchstart&quot;,this._addDragHandler))),this},n.prototype.isDraggable=function(){return this._draggable},n.prototype.setRotation=function(t){return this._rotation=t||0,this._update(),this},n.prototype.getRotation=function(){return this._rotation},n.prototype.setRotationAlignment=function(t){return this._rotationAlignment=t||&quot;auto&quot;,this._update(),this},n.prototype.getRotationAlignment=function(){return this._rotationAlignment},n.prototype.setPitchAlignment=function(t){return this._pitchAlignment=t&amp;&amp;&quot;auto&quot;!==t?t:this._rotationAlignment,this._update(),this},n.prototype.getPitchAlignment=function(){return this._pitchAlignment},n}(t.Evented),Di={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Ri=0,Fi=!1,Bi=function(e){function n(r){e.call(this),this.options=t.extend({},Di,r),t.bindAll([&quot;_onSuccess&quot;,&quot;_onError&quot;,&quot;_onZoom&quot;,&quot;_finish&quot;,&quot;_setupUI&quot;,&quot;_updateCamera&quot;,&quot;_updateMarker&quot;],this)}return e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n,n.prototype.onAdd=function(e){var n;return this._map=e,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),n=this._setupUI,void 0!==zi?n(zi):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:&quot;geolocation&quot;}).then((function(t){n(zi=&quot;denied&quot;!==t.state)})):n(zi=!!t.window.navigator.geolocation),this._container},n.prototype.onRemove=function(){void 0!==this._geolocationWatchID&amp;&amp;(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&amp;&amp;this._userLocationDotMarker&amp;&amp;this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&amp;&amp;this._accuracyCircleMarker&amp;&amp;this._accuracyCircleMarker.remove(),r.remove(this._container),this._map.off(&quot;zoom&quot;,this._onZoom),this._map=void 0,Ri=0,Fi=!1},n.prototype._isOutOfMapMaxBounds=function(t){var e=this._map.getMaxBounds(),r=t.coords;return e&amp;&amp;(r.longitude&lt;e.getWest()||r.longitude&gt;e.getEast()||r.latitude&lt;e.getSouth()||r.latitude&gt;e.getNorth())},n.prototype._setErrorState=function(){switch(this._watchState){case&quot;WAITING_ACTIVE&quot;:this._watchState=&quot;ACTIVE_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;);break;case&quot;ACTIVE_LOCK&quot;:this._watchState=&quot;ACTIVE_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;);break;case&quot;BACKGROUND&quot;:this._watchState=&quot;BACKGROUND_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;)}},n.prototype._onSuccess=function(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event(&quot;outofmaxbounds&quot;,e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case&quot;WAITING_ACTIVE&quot;:case&quot;ACTIVE_LOCK&quot;:case&quot;ACTIVE_ERROR&quot;:this._watchState=&quot;ACTIVE_LOCK&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;BACKGROUND&quot;:case&quot;BACKGROUND_ERROR&quot;:this._watchState=&quot;BACKGROUND&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;)}this.options.showUserLocation&amp;&amp;&quot;OFF&quot;!==this._watchState&amp;&amp;this._updateMarker(e),this.options.trackUserLocation&amp;&amp;&quot;ACTIVE_LOCK&quot;!==this._watchState||this._updateCamera(e),this.options.showUserLocation&amp;&amp;this._dotElement.classList.remove(&quot;mapboxgl-user-location-dot-stale&quot;),this.fire(new t.Event(&quot;geolocate&quot;,e)),this._finish()}},n.prototype._updateCamera=function(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude),n=e.coords.accuracy,i=this._map.getBearing(),a=t.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(r.toBounds(n),a,{geolocateSource:!0})},n.prototype._updateMarker=function(e){if(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&amp;&amp;this.options.showAccuracyCircle&amp;&amp;this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},n.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),r=this._map.unproject([1,t]),n=e.distanceTo(r),i=Math.ceil(2*this._accuracy/n);this._circleElement.style.width=i+&quot;px&quot;,this._circleElement.style.height=i+&quot;px&quot;},n.prototype._onZoom=function(){this.options.showUserLocation&amp;&amp;this.options.showAccuracyCircle&amp;&amp;this._updateCircleRadius()},n.prototype._onError=function(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState=&quot;OFF&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.disabled=!0;var r=this._map._getUIString(&quot;GeolocateControl.LocationNotAvailable&quot;);this._geolocateButton.title=r,this._geolocateButton.setAttribute(&quot;aria-label&quot;,r),void 0!==this._geolocationWatchID&amp;&amp;this._clearWatch()}else{if(3===e.code&amp;&amp;Fi)return;this._setErrorState()}&quot;OFF&quot;!==this._watchState&amp;&amp;this.options.showUserLocation&amp;&amp;this._dotElement.classList.add(&quot;mapboxgl-user-location-dot-stale&quot;),this.fire(new t.Event(&quot;error&quot;,e)),this._finish()}},n.prototype._finish=function(){this._timeoutId&amp;&amp;clearTimeout(this._timeoutId),this._timeoutId=void 0},n.prototype._setupUI=function(e){var n=this;if(this._container.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault()})),this._geolocateButton=r.create(&quot;button&quot;,&quot;mapboxgl-ctrl-geolocate&quot;,this._container),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._geolocateButton).setAttribute(&quot;aria-hidden&quot;,!0),this._geolocateButton.type=&quot;button&quot;,!1===e){t.warnOnce(&quot;Geolocation support is not available so the GeolocateControl will be disabled.&quot;);var i=this._map._getUIString(&quot;GeolocateControl.LocationNotAvailable&quot;);this._geolocateButton.disabled=!0,this._geolocateButton.title=i,this._geolocateButton.setAttribute(&quot;aria-label&quot;,i)}else{var a=this._map._getUIString(&quot;GeolocateControl.FindMyLocation&quot;);this._geolocateButton.title=a,this._geolocateButton.setAttribute(&quot;aria-label&quot;,a)}this.options.trackUserLocation&amp;&amp;(this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;false&quot;),this._watchState=&quot;OFF&quot;),this.options.showUserLocation&amp;&amp;(this._dotElement=r.create(&quot;div&quot;,&quot;mapboxgl-user-location-dot&quot;),this._userLocationDotMarker=new Oi(this._dotElement),this._circleElement=r.create(&quot;div&quot;,&quot;mapboxgl-user-location-accuracy-circle&quot;),this._accuracyCircleMarker=new Oi({element:this._circleElement,pitchAlignment:&quot;map&quot;}),this.options.trackUserLocation&amp;&amp;(this._watchState=&quot;OFF&quot;),this._map.on(&quot;zoom&quot;,this._onZoom)),this._geolocateButton.addEventListener(&quot;click&quot;,this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&amp;&amp;this._map.on(&quot;movestart&quot;,(function(e){e.geolocateSource||&quot;ACTIVE_LOCK&quot;!==n._watchState||e.originalEvent&amp;&amp;&quot;resize&quot;===e.originalEvent.type||(n._watchState=&quot;BACKGROUND&quot;,n._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;),n._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),n.fire(new t.Event(&quot;trackuserlocationend&quot;)))}))},n.prototype.trigger=function(){if(!this._setup)return t.warnOnce(&quot;Geolocate control triggered before added to a map&quot;),!1;if(this.options.trackUserLocation){switch(this._watchState){case&quot;OFF&quot;:this._watchState=&quot;WAITING_ACTIVE&quot;,this.fire(new t.Event(&quot;trackuserlocationstart&quot;));break;case&quot;WAITING_ACTIVE&quot;:case&quot;ACTIVE_LOCK&quot;:case&quot;ACTIVE_ERROR&quot;:case&quot;BACKGROUND_ERROR&quot;:Ri--,Fi=!1,this._watchState=&quot;OFF&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this.fire(new t.Event(&quot;trackuserlocationend&quot;));break;case&quot;BACKGROUND&quot;:this._watchState=&quot;ACTIVE_LOCK&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._lastKnownPosition&amp;&amp;this._updateCamera(this._lastKnownPosition),this.fire(new t.Event(&quot;trackuserlocationstart&quot;))}switch(this._watchState){case&quot;WAITING_ACTIVE&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;ACTIVE_LOCK&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;ACTIVE_ERROR&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;);break;case&quot;BACKGROUND&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;);break;case&quot;BACKGROUND_ERROR&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background-error&quot;)}if(&quot;OFF&quot;===this._watchState&amp;&amp;void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var e;this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;true&quot;),++Ri&gt;1?(e={maximumAge:6e5,timeout:0},Fi=!0):(e=this.options.positionOptions,Fi=!1),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},n.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;false&quot;),this.options.showUserLocation&amp;&amp;this._updateMarker(null)},n}(t.Evented),Ni={maxWidth:100,unit:&quot;metric&quot;},ji=function(e){this.options=t.extend({},Ni,e),t.bindAll([&quot;_onMove&quot;,&quot;setUnit&quot;],this)};function Ui(t,e,r){var n=r&amp;&amp;r.maxWidth||100,i=t._container.clientHeight/2,a=t.unproject([0,i]),o=t.unproject([n,i]),s=a.distanceTo(o);if(r&amp;&amp;&quot;imperial&quot;===r.unit){var l=3.2808*s;l&gt;5280?Vi(e,n,l/5280,t._getUIString(&quot;ScaleControl.Miles&quot;)):Vi(e,n,l,t._getUIString(&quot;ScaleControl.Feet&quot;))}else r&amp;&amp;&quot;nautical&quot;===r.unit?Vi(e,n,s/1852,t._getUIString(&quot;ScaleControl.NauticalMiles&quot;)):s&gt;=1e3?Vi(e,n,s/1e3,t._getUIString(&quot;ScaleControl.Kilometers&quot;)):Vi(e,n,s,t._getUIString(&quot;ScaleControl.Meters&quot;))}function Vi(t,e,r,n){var i,a,o,s=(i=r,(a=Math.pow(10,(&quot;&quot;+Math.floor(i)).length-1))*(o=(o=i/a)&gt;=10?10:o&gt;=5?5:o&gt;=3?3:o&gt;=2?2:o&gt;=1?1:function(t){var e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(o)));t.style.width=e*(s/r)+&quot;px&quot;,t.innerHTML=s+&quot;&amp;nbsp;&quot;+n}ji.prototype.getDefaultPosition=function(){return&quot;bottom-left&quot;},ji.prototype._onMove=function(){Ui(this._map,this._container,this.options)},ji.prototype.onAdd=function(t){return this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-scale&quot;,t.getContainer()),this._map.on(&quot;move&quot;,this._onMove),this._onMove(),this._container},ji.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;move&quot;,this._onMove),this._map=void 0},ji.prototype.setUnit=function(t){this.options.unit=t,Ui(this._map,this._container,this.options)};var qi=function(e){this._fullscreen=!1,e&amp;&amp;e.container&amp;&amp;(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce(&quot;Full screen control 'container' must be a DOM element.&quot;)),t.bindAll([&quot;_onClickFullscreen&quot;,&quot;_changeIcon&quot;],this),&quot;onfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;fullscreenchange&quot;:&quot;onmozfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;mozfullscreenchange&quot;:&quot;onwebkitfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;webkitfullscreenchange&quot;:&quot;onmsfullscreenchange&quot;in t.window.document&amp;&amp;(this._fullscreenchange=&quot;MSFullscreenChange&quot;)};qi.prototype.onAdd=function(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display=&quot;none&quot;,t.warnOnce(&quot;This device does not support fullscreen mode.&quot;)),this._controlContainer},qi.prototype.onRemove=function(){r.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},qi.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},qi.prototype._setupUI=function(){var e=this._fullscreenButton=r.create(&quot;button&quot;,&quot;mapboxgl-ctrl-fullscreen&quot;,this._controlContainer);r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,e).setAttribute(&quot;aria-hidden&quot;,!0),e.type=&quot;button&quot;,this._updateTitle(),this._fullscreenButton.addEventListener(&quot;click&quot;,this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},qi.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute(&quot;aria-label&quot;,t),this._fullscreenButton.title=t},qi.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?&quot;FullscreenControl.Exit&quot;:&quot;FullscreenControl.Enter&quot;)},qi.prototype._isFullscreen=function(){return this._fullscreen},qi.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._container!==this._fullscreen&amp;&amp;(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle(&quot;mapboxgl-ctrl-shrink&quot;),this._fullscreenButton.classList.toggle(&quot;mapboxgl-ctrl-fullscreen&quot;),this._updateTitle())},qi.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&amp;&amp;t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&amp;&amp;this._container.webkitRequestFullscreen()};var Hi={closeButton:!0,closeOnClick:!0,className:&quot;&quot;,maxWidth:&quot;240px&quot;},Gi=function(e){function n(r){e.call(this),this.options=t.extend(Object.create(Hi),r),t.bindAll([&quot;_update&quot;,&quot;_onClose&quot;,&quot;remove&quot;,&quot;_onMouseMove&quot;,&quot;_onMouseUp&quot;,&quot;_onDrag&quot;],this)}return e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n,n.prototype.addTo=function(e){return this._map&amp;&amp;this.remove(),this._map=e,this.options.closeOnClick&amp;&amp;this._map.on(&quot;click&quot;,this._onClose),this.options.closeOnMove&amp;&amp;this._map.on(&quot;move&quot;,this._onClose),this._map.on(&quot;remove&quot;,this.remove),this._update(),this._trackPointer?(this._map.on(&quot;mousemove&quot;,this._onMouseMove),this._map.on(&quot;mouseup&quot;,this._onMouseUp),this._container&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.add(&quot;mapboxgl-track-pointer&quot;)):this._map.on(&quot;move&quot;,this._update),this.fire(new t.Event(&quot;open&quot;)),this},n.prototype.isOpen=function(){return!!this._map},n.prototype.remove=function(){return this._content&amp;&amp;r.remove(this._content),this._container&amp;&amp;(r.remove(this._container),delete this._container),this._map&amp;&amp;(this._map.off(&quot;move&quot;,this._update),this._map.off(&quot;move&quot;,this._onClose),this._map.off(&quot;click&quot;,this._onClose),this._map.off(&quot;remove&quot;,this.remove),this._map.off(&quot;mousemove&quot;,this._onMouseMove),this._map.off(&quot;mouseup&quot;,this._onMouseUp),this._map.off(&quot;drag&quot;,this._onDrag),delete this._map),this.fire(new t.Event(&quot;close&quot;)),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&amp;&amp;(this._map.on(&quot;move&quot;,this._update),this._map.off(&quot;mousemove&quot;,this._onMouseMove),this._container&amp;&amp;this._container.classList.remove(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.remove(&quot;mapboxgl-track-pointer&quot;)),this},n.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&amp;&amp;(this._map.off(&quot;move&quot;,this._update),this._map.on(&quot;mousemove&quot;,this._onMouseMove),this._map.on(&quot;drag&quot;,this._onDrag),this._container&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.add(&quot;mapboxgl-track-pointer&quot;)),this},n.prototype.getElement=function(){return this._container},n.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},n.prototype.setHTML=function(e){var r,n=t.window.document.createDocumentFragment(),i=t.window.document.createElement(&quot;body&quot;);for(i.innerHTML=e;r=i.firstChild;)n.appendChild(r);return this.setDOMContent(n)},n.prototype.getMaxWidth=function(){return this._container&amp;&amp;this._container.style.maxWidth},n.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},n.prototype.setDOMContent=function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},n.prototype.addClassName=function(t){this._container&amp;&amp;this._container.classList.add(t)},n.prototype.removeClassName=function(t){this._container&amp;&amp;this._container.classList.remove(t)},n.prototype.toggleClassName=function(t){if(this._container)return this._container.classList.toggle(t)},n.prototype._createContent=function(){this._content&amp;&amp;r.remove(this._content),this._content=r.create(&quot;div&quot;,&quot;mapboxgl-popup-content&quot;,this._container),this.options.closeButton&amp;&amp;(this._closeButton=r.create(&quot;button&quot;,&quot;mapboxgl-popup-close-button&quot;,this._content),this._closeButton.type=&quot;button&quot;,this._closeButton.setAttribute(&quot;aria-label&quot;,&quot;Close popup&quot;),this._closeButton.innerHTML=&quot;&amp;#215;&quot;,this._closeButton.addEventListener(&quot;click&quot;,this._onClose))},n.prototype._onMouseUp=function(t){this._update(t.point)},n.prototype._onMouseMove=function(t){this._update(t.point)},n.prototype._onDrag=function(t){this._update(t.point)},n.prototype._update=function(e){var n=this;if(this._map&amp;&amp;(this._lngLat||this._trackPointer)&amp;&amp;this._content&amp;&amp;(this._container||(this._container=r.create(&quot;div&quot;,&quot;mapboxgl-popup&quot;,this._map.getContainer()),this._tip=r.create(&quot;div&quot;,&quot;mapboxgl-popup-tip&quot;,this._container),this._container.appendChild(this._content),this.options.className&amp;&amp;this.options.className.split(&quot; &quot;).forEach((function(t){return n._container.classList.add(t)})),this._trackPointer&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;)),this.options.maxWidth&amp;&amp;this._container.style.maxWidth!==this.options.maxWidth&amp;&amp;(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&amp;&amp;!this._trackPointer&amp;&amp;(this._lngLat=Li(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||e)){var i=this._pos=this._trackPointer&amp;&amp;e?e:this._map.project(this._lngLat),a=this.options.anchor,o=function e(r){if(r){if(&quot;number&quot;==typeof r){var n=Math.round(Math.sqrt(.5*Math.pow(r,2)));return{center:new t.Point(0,0),top:new t.Point(0,r),&quot;top-left&quot;:new t.Point(n,n),&quot;top-right&quot;:new t.Point(-n,n),bottom:new t.Point(0,-r),&quot;bottom-left&quot;:new t.Point(n,-n),&quot;bottom-right&quot;:new t.Point(-n,-n),left:new t.Point(r,0),right:new t.Point(-r,0)}}if(r instanceof t.Point||Array.isArray(r)){var i=t.Point.convert(r);return{center:i,top:i,&quot;top-left&quot;:i,&quot;top-right&quot;:i,bottom:i,&quot;bottom-left&quot;:i,&quot;bottom-right&quot;:i,left:i,right:i}}return{center:t.Point.convert(r.center||[0,0]),top:t.Point.convert(r.top||[0,0]),&quot;top-left&quot;:t.Point.convert(r[&quot;top-left&quot;]||[0,0]),&quot;top-right&quot;:t.Point.convert(r[&quot;top-right&quot;]||[0,0]),bottom:t.Point.convert(r.bottom||[0,0]),&quot;bottom-left&quot;:t.Point.convert(r[&quot;bottom-left&quot;]||[0,0]),&quot;bottom-right&quot;:t.Point.convert(r[&quot;bottom-right&quot;]||[0,0]),left:t.Point.convert(r.left||[0,0]),right:t.Point.convert(r.right||[0,0])}}return e(new t.Point(0,0))}(this.options.offset);if(!a){var s,l=this._container.offsetWidth,c=this._container.offsetHeight;s=i.y+o.bottom.y&lt;c?[&quot;top&quot;]:i.y&gt;this._map.transform.height-c?[&quot;bottom&quot;]:[],i.x&lt;l/2?s.push(&quot;left&quot;):i.x&gt;this._map.transform.width-l/2&amp;&amp;s.push(&quot;right&quot;),a=0===s.length?&quot;bottom&quot;:s.join(&quot;-&quot;)}var u=i.add(o[a]).round();r.setTransform(this._container,Ii[a]+&quot; translate(&quot;+u.x+&quot;px,&quot;+u.y+&quot;px)&quot;),Pi(this._container,a,&quot;popup&quot;)}},n.prototype._onClose=function(){this.remove()},n}(t.Evented),Yi={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:Mi,NavigationControl:Ei,GeolocateControl:Bi,AttributionControl:vi,ScaleControl:ji,FullscreenControl:qi,Popup:Gi,Marker:Oi,Style:qe,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,config:t.config,prewarm:function(){Bt().acquire(Ot)},clearPrewarmedResources:function(){var t=Rt;t&amp;&amp;(t.isPreloaded()&amp;&amp;1===t.numActive()?(t.release(Ot),Rt=null):console.warn(&quot;Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()&quot;))},get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return Dt.workerCount},set workerCount(t){Dt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage:function(e){t.clearTileCache(e)},workerUrl:&quot;&quot;};return Yi})),r}))},{}],474:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=1&lt;&lt;t+1,r=new Array(e),n=0;n&lt;e;++n)r[n]=a(t,n);return r};var n=t(&quot;convex-hull&quot;);function i(t,e,r){for(var n=new Array(t),i=0;i&lt;t;++i)n[i]=0,i===e&amp;&amp;(n[i]+=.5),i===r&amp;&amp;(n[i]+=.5);return n}function a(t,e){if(0===e||e===(1&lt;&lt;t+1)-1)return[];for(var r=[],a=[],o=0;o&lt;=t;++o)if(e&amp;1&lt;&lt;o){r.push(i(t,o-1,o-1)),a.push(null);for(var s=0;s&lt;=t;++s)~e&amp;1&lt;&lt;s&amp;&amp;(r.push(i(t,o-1,s-1)),a.push([o,s]))}var l=n(r),c=[];t:for(o=0;o&lt;l.length;++o){var u=l[o],f=[];for(s=0;s&lt;u.length;++s){if(!a[u[s]])continue t;f.push(a[u[s]].slice())}c.push(f)}return c}},{&quot;convex-hull&quot;:135}],475:[function(t,e,r){var n=t(&quot;./normalize&quot;),i=t(&quot;gl-mat4/create&quot;),a=t(&quot;gl-mat4/clone&quot;),o=t(&quot;gl-mat4/determinant&quot;),s=t(&quot;gl-mat4/invert&quot;),l=t(&quot;gl-mat4/transpose&quot;),c={length:t(&quot;gl-vec3/length&quot;),normalize:t(&quot;gl-vec3/normalize&quot;),dot:t(&quot;gl-vec3/dot&quot;),cross:t(&quot;gl-vec3/cross&quot;)},u=i(),f=i(),h=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],d=[0,0,0];function g(t,e,r,n,i){t[0]=e[0]*n+r[0]*i,t[1]=e[1]*n+r[1]*i,t[2]=e[2]*n+r[2]*i}e.exports=function(t,e,r,i,m,v){if(e||(e=[0,0,0]),r||(r=[0,0,0]),i||(i=[0,0,0]),m||(m=[0,0,0,1]),v||(v=[0,0,0,1]),!n(u,t))return!1;if(a(f,u),f[3]=0,f[7]=0,f[11]=0,f[15]=1,Math.abs(o(f)&lt;1e-8))return!1;var y,x,b,_,w,T,k,M=u[3],A=u[7],S=u[11],E=u[12],C=u[13],L=u[14],I=u[15];if(0!==M||0!==A||0!==S){if(h[0]=M,h[1]=A,h[2]=S,h[3]=I,!s(f,f))return!1;l(f,f),y=m,b=f,_=(x=h)[0],w=x[1],T=x[2],k=x[3],y[0]=b[0]*_+b[4]*w+b[8]*T+b[12]*k,y[1]=b[1]*_+b[5]*w+b[9]*T+b[13]*k,y[2]=b[2]*_+b[6]*w+b[10]*T+b[14]*k,y[3]=b[3]*_+b[7]*w+b[11]*T+b[15]*k}else m[0]=m[1]=m[2]=0,m[3]=1;if(e[0]=E,e[1]=C,e[2]=L,function(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}(p,u),r[0]=c.length(p[0]),c.normalize(p[0],p[0]),i[0]=c.dot(p[0],p[1]),g(p[1],p[1],p[0],1,-i[0]),r[1]=c.length(p[1]),c.normalize(p[1],p[1]),i[0]/=r[1],i[1]=c.dot(p[0],p[2]),g(p[2],p[2],p[0],1,-i[1]),i[2]=c.dot(p[1],p[2]),g(p[2],p[2],p[1],1,-i[2]),r[2]=c.length(p[2]),c.normalize(p[2],p[2]),i[1]/=r[2],i[2]/=r[2],c.cross(d,p[1],p[2]),c.dot(p[0],d)&lt;0)for(var P=0;P&lt;3;P++)r[P]*=-1,p[P][0]*=-1,p[P][1]*=-1,p[P][2]*=-1;return v[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),v[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),v[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),v[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]&gt;p[1][2]&amp;&amp;(v[0]=-v[0]),p[0][2]&gt;p[2][0]&amp;&amp;(v[1]=-v[1]),p[1][0]&gt;p[0][1]&amp;&amp;(v[2]=-v[2]),!0}},{&quot;./normalize&quot;:476,&quot;gl-mat4/clone&quot;:278,&quot;gl-mat4/create&quot;:280,&quot;gl-mat4/determinant&quot;:281,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/transpose&quot;:306,&quot;gl-vec3/cross&quot;:365,&quot;gl-vec3/dot&quot;:370,&quot;gl-vec3/length&quot;:380,&quot;gl-vec3/normalize&quot;:387}],476:[function(t,e,r){e.exports=function(t,e){var r=e[15];if(0===r)return!1;for(var n=1/r,i=0;i&lt;16;i++)t[i]=e[i]*n;return!0}},{}],477:[function(t,e,r){var n=t(&quot;gl-vec3/lerp&quot;),i=t(&quot;mat4-recompose&quot;),a=t(&quot;mat4-decompose&quot;),o=t(&quot;gl-mat4/determinant&quot;),s=t(&quot;quat-slerp&quot;),l=f(),c=f(),u=f();function f(){return{translate:h(),scale:h(1),skew:h(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function h(t){return[t||0,t||0,t||0]}e.exports=function(t,e,r,f){if(0===o(e)||0===o(r))return!1;var h=a(e,l.translate,l.scale,l.skew,l.perspective,l.quaternion),p=a(r,c.translate,c.scale,c.skew,c.perspective,c.quaternion);return!(!h||!p)&amp;&amp;(n(u.translate,l.translate,c.translate,f),n(u.skew,l.skew,c.skew,f),n(u.scale,l.scale,c.scale,f),n(u.perspective,l.perspective,c.perspective,f),s(u.quaternion,l.quaternion,c.quaternion,f),i(t,u.translate,u.scale,u.skew,u.perspective,u.quaternion),!0)}},{&quot;gl-mat4/determinant&quot;:281,&quot;gl-vec3/lerp&quot;:381,&quot;mat4-decompose&quot;:475,&quot;mat4-recompose&quot;:478,&quot;quat-slerp&quot;:527}],478:[function(t,e,r){var n={identity:t(&quot;gl-mat4/identity&quot;),translate:t(&quot;gl-mat4/translate&quot;),multiply:t(&quot;gl-mat4/multiply&quot;),create:t(&quot;gl-mat4/create&quot;),scale:t(&quot;gl-mat4/scale&quot;),fromRotationTranslation:t(&quot;gl-mat4/fromRotationTranslation&quot;)},i=(n.create(),n.create());e.exports=function(t,e,r,a,o,s){return n.identity(t),n.fromRotationTranslation(t,s,e),t[3]=o[0],t[7]=o[1],t[11]=o[2],t[15]=o[3],n.identity(i),0!==a[2]&amp;&amp;(i[9]=a[2],n.multiply(t,t,i)),0!==a[1]&amp;&amp;(i[9]=0,i[8]=a[1],n.multiply(t,t,i)),0!==a[0]&amp;&amp;(i[8]=0,i[4]=a[0],n.multiply(t,t,i)),n.scale(t,t,r),t}},{&quot;gl-mat4/create&quot;:280,&quot;gl-mat4/fromRotationTranslation&quot;:284,&quot;gl-mat4/identity&quot;:291,&quot;gl-mat4/multiply&quot;:295,&quot;gl-mat4/scale&quot;:303,&quot;gl-mat4/translate&quot;:305}],479:[function(t,e,r){&quot;use strict&quot;;e.exports=Math.log2||function(t){return Math.log(t)*Math.LOG2E}},{}],480:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;mat4-interpolate&quot;),a=t(&quot;gl-mat4/invert&quot;),o=t(&quot;gl-mat4/rotateX&quot;),s=t(&quot;gl-mat4/rotateY&quot;),l=t(&quot;gl-mat4/rotateZ&quot;),c=t(&quot;gl-mat4/lookAt&quot;),u=t(&quot;gl-mat4/translate&quot;),f=(t(&quot;gl-mat4/scale&quot;),t(&quot;gl-vec3/normalize&quot;)),h=[0,0,0];function p(t){this._components=t.slice(),this._time=[0],this.prevMatrix=t.slice(),this.nextMatrix=t.slice(),this.computedMatrix=t.slice(),this.computedInverse=t.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}e.exports=function(t){return new p((t=t||{}).matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};var d=p.prototype;d.recalcMatrix=function(t){var e=this._time,r=n.le(e,t),o=this.computedMatrix;if(!(r&lt;0)){var s=this._components;if(r===e.length-1)for(var l=16*r,c=0;c&lt;16;++c)o[c]=s[l++];else{var u=e[r+1]-e[r],h=(l=16*r,this.prevMatrix),p=!0;for(c=0;c&lt;16;++c)h[c]=s[l++];var d=this.nextMatrix;for(c=0;c&lt;16;++c)d[c]=s[l++],p=p&amp;&amp;h[c]===d[c];if(u&lt;1e-6||p)for(c=0;c&lt;16;++c)o[c]=h[c];else i(o,h,d,(t-e[r])/u)}var g=this.computedUp;g[0]=o[1],g[1]=o[5],g[2]=o[9],f(g,g);var m=this.computedInverse;a(m,o);var v=this.computedEye,y=m[15];v[0]=m[12]/y,v[1]=m[13]/y,v[2]=m[14]/y;var x=this.computedCenter,b=Math.exp(this.computedRadius[0]);for(c=0;c&lt;3;++c)x[c]=v[c]-o[2+4*c]*b}},d.idle=function(t){if(!(t&lt;this.lastT())){for(var e=this._components,r=e.length-16,n=0;n&lt;16;++n)e.push(e[r++]);this._time.push(t)}},d.flush=function(t){var e=n.gt(this._time,t)-2;e&lt;0||(this._time.splice(0,e),this._components.splice(0,16*e))},d.lastT=function(){return this._time[this._time.length-1]},d.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||h,n=n||this.computedUp,this.setMatrix(t,c(this.computedMatrix,e,r,n));for(var i=0,a=0;a&lt;3;++a)i+=Math.pow(r[a]-e[a],2);i=Math.log(Math.sqrt(i)),this.computedRadius[0]=i},d.rotate=function(t,e,r,n){this.recalcMatrix(t);var i=this.computedInverse;e&amp;&amp;s(i,i,e),r&amp;&amp;o(i,i,r),n&amp;&amp;l(i,i,n),this.setMatrix(t,a(this.computedMatrix,i))};var g=[0,0,0];d.pan=function(t,e,r,n){g[0]=-(e||0),g[1]=-(r||0),g[2]=-(n||0),this.recalcMatrix(t);var i=this.computedInverse;u(i,i,g),this.setMatrix(t,a(i,i))},d.translate=function(t,e,r,n){g[0]=e||0,g[1]=r||0,g[2]=n||0,this.recalcMatrix(t);var i=this.computedMatrix;u(i,i,g),this.setMatrix(t,i)},d.setMatrix=function(t,e){if(!(t&lt;this.lastT())){this._time.push(t);for(var r=0;r&lt;16;++r)this._components.push(e[r])}},d.setDistance=function(t,e){this.computedRadius[0]=e},d.setDistanceLimits=function(t,e){var r=this._limits;r[0]=t,r[1]=e},d.getDistanceLimits=function(t){var e=this._limits;return t?(t[0]=e[0],t[1]=e[1],t):e}},{&quot;binary-search-bounds&quot;:481,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/lookAt&quot;:294,&quot;gl-mat4/rotateX&quot;:300,&quot;gl-mat4/rotateY&quot;:301,&quot;gl-mat4/rotateZ&quot;:302,&quot;gl-mat4/scale&quot;:303,&quot;gl-mat4/translate&quot;:305,&quot;gl-vec3/normalize&quot;:387,&quot;mat4-interpolate&quot;:477}],481:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],482:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(e&lt;3){for(var r=new Array(e),i=0;i&lt;e;++i)r[i]=i;return 2===e&amp;&amp;t[0][0]===t[1][0]&amp;&amp;t[0][1]===t[1][1]?[0]:r}var a=new Array(e);for(i=0;i&lt;e;++i)a[i]=i;a.sort((function(e,r){var n=t[e][0]-t[r][0];return n||t[e][1]-t[r][1]}));var o=[a[0],a[1]],s=[a[0],a[1]];for(i=2;i&lt;e;++i){for(var l=a[i],c=t[l],u=o.length;u&gt;1&amp;&amp;n(t[o[u-2]],t[o[u-1]],c)&lt;=0;)u-=1,o.pop();for(o.push(l),u=s.length;u&gt;1&amp;&amp;n(t[s[u-2]],t[s[u-1]],c)&gt;=0;)u-=1,s.pop();s.push(l)}r=new Array(s.length+o.length-2);for(var f=0,h=(i=0,o.length);i&lt;h;++i)r[f++]=o[i];for(var p=s.length-2;p&gt;0;--p)r[f++]=s[p];return r};var n=t(&quot;robust-orientation&quot;)[3]},{&quot;robust-orientation&quot;:548}],483:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e||(e=t,t=window);var r=0,i=0,a=0,o={shift:!1,alt:!1,control:!1,meta:!1},s=!1;function l(t){var e=!1;return&quot;altKey&quot;in t&amp;&amp;(e=e||t.altKey!==o.alt,o.alt=!!t.altKey),&quot;shiftKey&quot;in t&amp;&amp;(e=e||t.shiftKey!==o.shift,o.shift=!!t.shiftKey),&quot;ctrlKey&quot;in t&amp;&amp;(e=e||t.ctrlKey!==o.control,o.control=!!t.ctrlKey),&quot;metaKey&quot;in t&amp;&amp;(e=e||t.metaKey!==o.meta,o.meta=!!t.metaKey),e}function c(t,s){var c=n.x(s),u=n.y(s);&quot;buttons&quot;in s&amp;&amp;(t=0|s.buttons),(t!==r||c!==i||u!==a||l(s))&amp;&amp;(r=0|t,i=c||0,a=u||0,e&amp;&amp;e(r,i,a,o))}function u(t){c(0,t)}function f(){(r||i||a||o.shift||o.alt||o.meta||o.control)&amp;&amp;(i=a=0,r=0,o.shift=o.alt=o.control=o.meta=!1,e&amp;&amp;e(0,0,0,o))}function h(t){l(t)&amp;&amp;e&amp;&amp;e(r,i,a,o)}function p(t){0===n.buttons(t)?c(0,t):c(r,t)}function d(t){c(r|n.buttons(t),t)}function g(t){c(r&amp;~n.buttons(t),t)}function m(){s||(s=!0,t.addEventListener(&quot;mousemove&quot;,p),t.addEventListener(&quot;mousedown&quot;,d),t.addEventListener(&quot;mouseup&quot;,g),t.addEventListener(&quot;mouseleave&quot;,u),t.addEventListener(&quot;mouseenter&quot;,u),t.addEventListener(&quot;mouseout&quot;,u),t.addEventListener(&quot;mouseover&quot;,u),t.addEventListener(&quot;blur&quot;,f),t.addEventListener(&quot;keyup&quot;,h),t.addEventListener(&quot;keydown&quot;,h),t.addEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.addEventListener(&quot;blur&quot;,f),window.addEventListener(&quot;keyup&quot;,h),window.addEventListener(&quot;keydown&quot;,h),window.addEventListener(&quot;keypress&quot;,h)))}m();var v={element:t};return Object.defineProperties(v,{enabled:{get:function(){return s},set:function(e){e?m():function(){if(!s)return;s=!1,t.removeEventListener(&quot;mousemove&quot;,p),t.removeEventListener(&quot;mousedown&quot;,d),t.removeEventListener(&quot;mouseup&quot;,g),t.removeEventListener(&quot;mouseleave&quot;,u),t.removeEventListener(&quot;mouseenter&quot;,u),t.removeEventListener(&quot;mouseout&quot;,u),t.removeEventListener(&quot;mouseover&quot;,u),t.removeEventListener(&quot;blur&quot;,f),t.removeEventListener(&quot;keyup&quot;,h),t.removeEventListener(&quot;keydown&quot;,h),t.removeEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.removeEventListener(&quot;blur&quot;,f),window.removeEventListener(&quot;keyup&quot;,h),window.removeEventListener(&quot;keydown&quot;,h),window.removeEventListener(&quot;keypress&quot;,h))}()},enumerable:!0},buttons:{get:function(){return r},enumerable:!0},x:{get:function(){return i},enumerable:!0},y:{get:function(){return a},enumerable:!0},mods:{get:function(){return o},enumerable:!0}}),v};var n=t(&quot;mouse-event&quot;)},{&quot;mouse-event&quot;:485}],484:[function(t,e,r){var n={left:0,top:0};e.exports=function(t,e,r){e=e||t.currentTarget||t.srcElement,Array.isArray(r)||(r=[0,0]);var i=t.clientX||0,a=t.clientY||0,o=(s=e,s===window||s===document||s===document.body?n:s.getBoundingClientRect());var s;return r[0]=i-o.left,r[1]=a-o.top,r}},{}],485:[function(t,e,r){&quot;use strict&quot;;function n(t){return t.target||t.srcElement||window}r.buttons=function(t){if(&quot;object&quot;==typeof t){if(&quot;buttons&quot;in t)return t.buttons;if(&quot;which&quot;in t){if(2===(e=t.which))return 4;if(3===e)return 2;if(e&gt;0)return 1&lt;&lt;e-1}else if(&quot;button&quot;in t){var e;if(1===(e=t.button))return 4;if(2===e)return 2;if(e&gt;=0)return 1&lt;&lt;e}}return 0},r.element=n,r.x=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetX&quot;in t)return t.offsetX;var e=n(t).getBoundingClientRect();return t.clientX-e.left}return 0},r.y=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetY&quot;in t)return t.offsetY;var e=n(t).getBoundingClientRect();return t.clientY-e.top}return 0}},{}],486:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;to-px&quot;);e.exports=function(t,e,r){&quot;function&quot;==typeof t&amp;&amp;(r=!!e,e=t,t=window);var i=n(&quot;ex&quot;,t),a=function(t){r&amp;&amp;t.preventDefault();var n=t.deltaX||0,a=t.deltaY||0,o=t.deltaZ||0,s=1;switch(t.deltaMode){case 1:s=i;break;case 2:s=window.innerHeight}if(a*=s,o*=s,(n*=s)||a||o)return e(n,a,o,t)};return t.addEventListener(&quot;wheel&quot;,a),a}},{&quot;to-px&quot;:578}],487:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;);function i(t){return&quot;a&quot;+t}function a(t){return&quot;d&quot;+t}function o(t,e){return&quot;c&quot;+t+&quot;_&quot;+e}function s(t){return&quot;s&quot;+t}function l(t,e){return&quot;t&quot;+t+&quot;_&quot;+e}function c(t){return&quot;o&quot;+t}function u(t){return&quot;x&quot;+t}function f(t){return&quot;p&quot;+t}function h(t,e){return&quot;d&quot;+t+&quot;_&quot;+e}function p(t){return&quot;i&quot;+t}function d(t,e){return&quot;u&quot;+t+&quot;_&quot;+e}function g(t){return&quot;b&quot;+t}function m(t){return&quot;y&quot;+t}function v(t){return&quot;e&quot;+t}function y(t){return&quot;v&quot;+t}e.exports=function(t){function e(t){throw new Error(&quot;ndarray-extract-contour: &quot;+t)}&quot;object&quot;!=typeof t&amp;&amp;e(&quot;Must specify arguments&quot;);var r=t.order;Array.isArray(r)||e(&quot;Must specify order&quot;);var b=t.arrayArguments||1;b&lt;1&amp;&amp;e(&quot;Must have at least one array argument&quot;);var _=t.scalarArguments||0;_&lt;0&amp;&amp;e(&quot;Scalar arg count must be &gt; 0&quot;);&quot;function&quot;!=typeof t.vertex&amp;&amp;e(&quot;Must specify vertex creation function&quot;);&quot;function&quot;!=typeof t.cell&amp;&amp;e(&quot;Must specify cell creation function&quot;);&quot;function&quot;!=typeof t.phase&amp;&amp;e(&quot;Must specify phase function&quot;);for(var w=t.getters||[],T=new Array(b),k=0;k&lt;b;++k)w.indexOf(k)&gt;=0?T[k]=!0:T[k]=!1;return function(t,e,r,b,_,w){var T=w.length,k=_.length;if(k&lt;2)throw new Error(&quot;ndarray-extract-contour: Dimension must be at least 2&quot;);for(var M=&quot;extractContour&quot;+_.join(&quot;_&quot;),A=[],S=[],E=[],C=0;C&lt;T;++C)E.push(i(C));for(C=0;C&lt;b;++C)E.push(u(C));for(C=0;C&lt;k;++C)S.push(s(C)+&quot;=&quot;+i(0)+&quot;.shape[&quot;+C+&quot;]|0&quot;);for(C=0;C&lt;T;++C){S.push(a(C)+&quot;=&quot;+i(C)+&quot;.data&quot;,c(C)+&quot;=&quot;+i(C)+&quot;.offset|0&quot;);for(var L=0;L&lt;k;++L)S.push(l(C,L)+&quot;=&quot;+i(C)+&quot;.stride[&quot;+L+&quot;]|0&quot;)}for(C=0;C&lt;T;++C){S.push(f(C)+&quot;=&quot;+c(C)),S.push(o(C,0));for(L=1;L&lt;1&lt;&lt;k;++L){for(var I=[],P=0;P&lt;k;++P)L&amp;1&lt;&lt;P&amp;&amp;I.push(&quot;-&quot;+l(C,P));S.push(h(C,L)+&quot;=(&quot;+I.join(&quot;&quot;)+&quot;)|0&quot;),S.push(o(C,L)+&quot;=0&quot;)}}for(C=0;C&lt;T;++C)for(L=0;L&lt;k;++L){var z=[l(C,_[L])];L&gt;0&amp;&amp;z.push(l(C,_[L-1])+&quot;*&quot;+s(_[L-1])),S.push(d(C,_[L])+&quot;=(&quot;+z.join(&quot;-&quot;)+&quot;)|0&quot;)}for(C=0;C&lt;k;++C)S.push(p(C)+&quot;=0&quot;);S.push(&quot;N=0&quot;);var O=[&quot;2&quot;];for(C=k-2;C&gt;=0;--C)O.push(s(_[C]));S.push(&quot;Q=(&quot;+O.join(&quot;*&quot;)+&quot;)|0&quot;,&quot;P=mallocUint32(Q)&quot;,&quot;V=mallocUint32(Q)&quot;,&quot;X=0&quot;),S.push(g(0)+&quot;=0&quot;);for(L=1;L&lt;1&lt;&lt;k;++L){var D=[],R=[];for(P=0;P&lt;k;++P)L&amp;1&lt;&lt;P&amp;&amp;(0===R.length?D.push(&quot;1&quot;):D.unshift(R.join(&quot;*&quot;))),R.push(s(_[P]));var F=&quot;&quot;;D[0].indexOf(s(_[k-2]))&lt;0&amp;&amp;(F=&quot;-&quot;);var B=x(k,L,_);S.push(v(B)+&quot;=(-&quot;+D.join(&quot;-&quot;)+&quot;)|0&quot;,m(B)+&quot;=(&quot;+F+D.join(&quot;-&quot;)+&quot;)|0&quot;,g(B)+&quot;=0&quot;)}function N(t,e){A.push(&quot;for(&quot;,p(_[t]),&quot;=&quot;,e,&quot;;&quot;,p(_[t]),&quot;&lt;&quot;,s(_[t]),&quot;;&quot;,&quot;++&quot;,p(_[t]),&quot;){&quot;)}function j(t){for(var e=0;e&lt;T;++e)A.push(f(e),&quot;+=&quot;,d(e,_[t]),&quot;;&quot;);A.push(&quot;}&quot;)}function U(){for(var t=1;t&lt;1&lt;&lt;k;++t)A.push(&quot;T&quot;,&quot;=&quot;,v(t),&quot;;&quot;,v(t),&quot;=&quot;,m(t),&quot;;&quot;,m(t),&quot;=&quot;,&quot;T&quot;,&quot;;&quot;)}S.push(y(0)+&quot;=0&quot;,&quot;T=0&quot;),function t(e,r){if(e&lt;0)!function(t){for(var e=0;e&lt;T;++e)w[e]?A.push(o(e,0),&quot;=&quot;,a(e),&quot;.get(&quot;,f(e),&quot;);&quot;):A.push(o(e,0),&quot;=&quot;,a(e),&quot;[&quot;,f(e),&quot;];&quot;);var r=[];for(e=0;e&lt;T;++e)r.push(o(e,0));for(e=0;e&lt;b;++e)r.push(u(e));A.push(g(0),&quot;=&quot;,&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;]=phase(&quot;,r.join(),&quot;);&quot;);for(var n=1;n&lt;1&lt;&lt;k;++n)A.push(g(n),&quot;=&quot;,&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;+&quot;,v(n),&quot;];&quot;);var i=[];for(n=1;n&lt;1&lt;&lt;k;++n)i.push(&quot;(&quot;+g(0)+&quot;!==&quot;+g(n)+&quot;)&quot;);A.push(&quot;if(&quot;,i.join(&quot;||&quot;),&quot;){&quot;);var s=[];for(e=0;e&lt;k;++e)s.push(p(e));for(e=0;e&lt;T;++e){s.push(o(e,0));for(n=1;n&lt;1&lt;&lt;k;++n)w[e]?A.push(o(e,n),&quot;=&quot;,a(e),&quot;.get(&quot;,f(e),&quot;+&quot;,h(e,n),&quot;);&quot;):A.push(o(e,n),&quot;=&quot;,a(e),&quot;[&quot;,f(e),&quot;+&quot;,h(e,n),&quot;];&quot;),s.push(o(e,n))}for(e=0;e&lt;1&lt;&lt;k;++e)s.push(g(e));for(e=0;e&lt;b;++e)s.push(u(e));A.push(&quot;vertex(&quot;,s.join(),&quot;);&quot;,y(0),&quot;=&quot;,&quot;V&quot;,&quot;[&quot;,&quot;X&quot;,&quot;]=&quot;,&quot;N&quot;,&quot;++;&quot;);var l=(1&lt;&lt;k)-1,c=g(l);for(n=0;n&lt;k;++n)if(0==(t&amp;~(1&lt;&lt;n))){for(var d=l^1&lt;&lt;n,m=g(d),x=[],_=d;_&gt;0;_=_-1&amp;d)x.push(&quot;V[X+&quot;+v(_)+&quot;]&quot;);x.push(y(0));for(_=0;_&lt;T;++_)1&amp;n?x.push(o(_,l),o(_,d)):x.push(o(_,d),o(_,l));1&amp;n?x.push(c,m):x.push(m,c);for(_=0;_&lt;b;++_)x.push(u(_));A.push(&quot;if(&quot;,c,&quot;!==&quot;,m,&quot;){&quot;,&quot;face(&quot;,x.join(),&quot;)}&quot;)}A.push(&quot;}&quot;,&quot;X&quot;,&quot;+=1;&quot;)}(r);else{!function(t){for(var e=t-1;e&gt;=0;--e)N(e,0);var r=[];for(e=0;e&lt;T;++e)w[e]?r.push(a(e)+&quot;.get(&quot;+f(e)+&quot;)&quot;):r.push(a(e)+&quot;[&quot;+f(e)+&quot;]&quot;);for(e=0;e&lt;b;++e)r.push(u(e));for(A.push(&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;++]=phase(&quot;,r.join(),&quot;);&quot;),e=0;e&lt;t;++e)j(e);for(var n=0;n&lt;T;++n)A.push(f(n),&quot;+=&quot;,d(n,_[t]),&quot;;&quot;)}(e),A.push(&quot;if(&quot;,s(_[e]),&quot;&gt;0){&quot;,p(_[e]),&quot;=1;&quot;),t(e-1,r|1&lt;&lt;_[e]);for(var n=0;n&lt;T;++n)A.push(f(n),&quot;+=&quot;,d(n,_[e]),&quot;;&quot;);e===k-1&amp;&amp;(A.push(&quot;X&quot;,&quot;=0;&quot;),U()),N(e,2),t(e-1,r),e===k-1&amp;&amp;(A.push(&quot;if(&quot;,p(_[k-1]),&quot;&amp;1){&quot;,&quot;X&quot;,&quot;=0;}&quot;),U()),j(e),A.push(&quot;}&quot;)}}(k-1,0),A.push(&quot;freeUint32(&quot;,&quot;V&quot;,&quot;);freeUint32(&quot;,&quot;P&quot;,&quot;);&quot;);var V=[&quot;'use strict';&quot;,&quot;function &quot;,M,&quot;(&quot;,E.join(),&quot;){&quot;,&quot;var &quot;,S.join(),&quot;;&quot;,A.join(&quot;&quot;),&quot;}&quot;,&quot;return &quot;,M].join(&quot;&quot;);return new Function(&quot;vertex&quot;,&quot;face&quot;,&quot;phase&quot;,&quot;mallocUint32&quot;,&quot;freeUint32&quot;,V)(t,e,r,n.mallocUint32,n.freeUint32)}(t.vertex,t.cell,t.phase,_,r,T)};function x(t,e,r){for(var n=0,i=0;i&lt;t;++i)e&amp;1&lt;&lt;i&amp;&amp;(n|=1&lt;&lt;r[i]);return n}},{&quot;typedarray-pool&quot;:595}],488:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(Array.isArray(r)){if(r.length!==e.dimension)throw new Error(&quot;ndarray-gradient: invalid boundary conditions&quot;)}else r=n(e.dimension,&quot;string&quot;==typeof r?r:&quot;clamp&quot;);if(t.dimension!==e.dimension+1)throw new Error(&quot;ndarray-gradient: output dimension must be +1 input dimension&quot;);if(t.shape[e.dimension]!==e.dimension)throw new Error(&quot;ndarray-gradient: output shape must match input shape&quot;);for(var i=0;i&lt;e.dimension;++i)if(t.shape[i]!==e.shape[i])throw new Error(&quot;ndarray-gradient: shape mismatch&quot;);if(0===e.size)return t;if(e.dimension&lt;=0)return t.set(0),t;return function(t){var e=t.join();if(v=o[e])return v;var r=t.length,n=[&quot;function gradient(dst,src){var s=src.shape.slice();&quot;];function i(e){for(var i=r-e.length,a=[],o=[],s=[],l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0?s.push(&quot;0&quot;):e.indexOf(-(l+1))&gt;=0?s.push(&quot;s[&quot;+l+&quot;]-1&quot;):(s.push(&quot;-1&quot;),a.push(&quot;1&quot;),o.push(&quot;s[&quot;+l+&quot;]-2&quot;));var c=&quot;.lo(&quot;+a.join()+&quot;).hi(&quot;+o.join()+&quot;)&quot;;if(0===a.length&amp;&amp;(c=&quot;&quot;),i&gt;0){n.push(&quot;if(1&quot;);for(l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0||e.indexOf(-(l+1))&gt;=0||n.push(&quot;&amp;&amp;s[&quot;,l,&quot;]&gt;2&quot;);n.push(&quot;){grad&quot;,i,&quot;(src.pick(&quot;,s.join(),&quot;)&quot;,c);for(l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0||e.indexOf(-(l+1))&gt;=0||n.push(&quot;,dst.pick(&quot;,s.join(),&quot;,&quot;,l,&quot;)&quot;,c);n.push(&quot;);&quot;)}for(l=0;l&lt;e.length;++l){var u=Math.abs(e[l])-1,f=&quot;dst.pick(&quot;+s.join()+&quot;,&quot;+u+&quot;)&quot;+c;switch(t[u]){case&quot;clamp&quot;:var h=s.slice(),p=s.slice();e[l]&lt;0?h[u]=&quot;s[&quot;+u+&quot;]-2&quot;:p[u]=&quot;1&quot;,0===i?n.push(&quot;if(s[&quot;,u,&quot;]&gt;1){dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0.5*(src.get(&quot;,h.join(),&quot;)-src.get(&quot;,p.join(),&quot;)))}else{dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0)};&quot;):n.push(&quot;if(s[&quot;,u,&quot;]&gt;1){diff(&quot;,f,&quot;,src.pick(&quot;,h.join(),&quot;)&quot;,c,&quot;,src.pick(&quot;,p.join(),&quot;)&quot;,c,&quot;);}else{zero(&quot;,f,&quot;);};&quot;);break;case&quot;mirror&quot;:0===i?n.push(&quot;dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0);&quot;):n.push(&quot;zero(&quot;,f,&quot;);&quot;);break;case&quot;wrap&quot;:var d=s.slice(),g=s.slice();e[l]&lt;0?(d[u]=&quot;s[&quot;+u+&quot;]-2&quot;,g[u]=&quot;0&quot;):(d[u]=&quot;s[&quot;+u+&quot;]-1&quot;,g[u]=&quot;1&quot;),0===i?n.push(&quot;if(s[&quot;,u,&quot;]&gt;2){dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0.5*(src.get(&quot;,d.join(),&quot;)-src.get(&quot;,g.join(),&quot;)))}else{dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0)};&quot;):n.push(&quot;if(s[&quot;,u,&quot;]&gt;2){diff(&quot;,f,&quot;,src.pick(&quot;,d.join(),&quot;)&quot;,c,&quot;,src.pick(&quot;,g.join(),&quot;)&quot;,c,&quot;);}else{zero(&quot;,f,&quot;);};&quot;);break;default:throw new Error(&quot;ndarray-gradient: Invalid boundary condition&quot;)}}i&gt;0&amp;&amp;n.push(&quot;};&quot;)}for(var s=0;s&lt;1&lt;&lt;r;++s){for(var f=[],h=0;h&lt;r;++h)s&amp;1&lt;&lt;h&amp;&amp;f.push(h+1);for(var p=0;p&lt;1&lt;&lt;f.length;++p){var d=f.slice();for(h=0;h&lt;f.length;++h)p&amp;1&lt;&lt;h&amp;&amp;(d[h]=-d[h]);i(d)}}n.push(&quot;return dst;};return gradient&quot;);var g=[&quot;diff&quot;,&quot;zero&quot;],m=[l,c];for(s=1;s&lt;=r;++s)g.push(&quot;grad&quot;+s),m.push(u(s));g.push(n.join(&quot;&quot;));var v=Function.apply(void 0,g).apply(void 0,m);return a[e]=v,v}(r)(t,e)};var n=t(&quot;dup&quot;),i=t(&quot;cwise-compiler&quot;),a={},o={},s={body:&quot;&quot;,args:[],thisVars:[],localVars:[]},l=i({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:s,post:s,body:{args:[{name:&quot;out&quot;,lvalue:!0,rvalue:!1,count:1},{name:&quot;left&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;right&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;out=0.5*(left-right)&quot;,thisVars:[],localVars:[]},funcName:&quot;cdiff&quot;}),c=i({args:[&quot;array&quot;],pre:s,post:s,body:{args:[{name:&quot;out&quot;,lvalue:!0,rvalue:!1,count:1}],body:&quot;out=0&quot;,thisVars:[],localVars:[]},funcName:&quot;zero&quot;});function u(t){if(t in a)return a[t];for(var e=[],r=0;r&lt;t;++r)e.push(&quot;out&quot;,r,&quot;s=0.5*(inp&quot;,r,&quot;l-inp&quot;,r,&quot;r);&quot;);var o=[&quot;array&quot;],l=[&quot;junk&quot;];for(r=0;r&lt;t;++r){o.push(&quot;array&quot;),l.push(&quot;out&quot;+r+&quot;s&quot;);var c=n(t);c[r]=-1,o.push({array:0,offset:c.slice()}),c[r]=1,o.push({array:0,offset:c.slice()}),l.push(&quot;inp&quot;+r+&quot;l&quot;,&quot;inp&quot;+r+&quot;r&quot;)}return a[t]=i({args:o,pre:s,post:s,body:{body:e.join(&quot;&quot;),args:l.map((function(t){return{name:t,lvalue:0===t.indexOf(&quot;out&quot;),rvalue:0===t.indexOf(&quot;inp&quot;),count:&quot;junk&quot;!==t|0}})),thisVars:[],localVars:[]},funcName:&quot;fdTemplate&quot;+t})}},{&quot;cwise-compiler&quot;:151,dup:176}],489:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=Math.floor(e),n=e-r,i=0&lt;=r&amp;&amp;r&lt;t.shape[0],a=0&lt;=r+1&amp;&amp;r+1&lt;t.shape[0];return(1-n)*(i?+t.get(r):0)+n*(a?+t.get(r+1):0)}function i(t,e,r){var n=Math.floor(e),i=e-n,a=0&lt;=n&amp;&amp;n&lt;t.shape[0],o=0&lt;=n+1&amp;&amp;n+1&lt;t.shape[0],s=Math.floor(r),l=r-s,c=0&lt;=s&amp;&amp;s&lt;t.shape[1],u=0&lt;=s+1&amp;&amp;s+1&lt;t.shape[1],f=a&amp;&amp;c?t.get(n,s):0,h=a&amp;&amp;u?t.get(n,s+1):0;return(1-l)*((1-i)*f+i*(o&amp;&amp;c?t.get(n+1,s):0))+l*((1-i)*h+i*(o&amp;&amp;u?t.get(n+1,s+1):0))}function a(t,e,r,n){var i=Math.floor(e),a=e-i,o=0&lt;=i&amp;&amp;i&lt;t.shape[0],s=0&lt;=i+1&amp;&amp;i+1&lt;t.shape[0],l=Math.floor(r),c=r-l,u=0&lt;=l&amp;&amp;l&lt;t.shape[1],f=0&lt;=l+1&amp;&amp;l+1&lt;t.shape[1],h=Math.floor(n),p=n-h,d=0&lt;=h&amp;&amp;h&lt;t.shape[2],g=0&lt;=h+1&amp;&amp;h+1&lt;t.shape[2],m=o&amp;&amp;u&amp;&amp;d?t.get(i,l,h):0,v=o&amp;&amp;f&amp;&amp;d?t.get(i,l+1,h):0,y=s&amp;&amp;u&amp;&amp;d?t.get(i+1,l,h):0,x=s&amp;&amp;f&amp;&amp;d?t.get(i+1,l+1,h):0,b=o&amp;&amp;u&amp;&amp;g?t.get(i,l,h+1):0,_=o&amp;&amp;f&amp;&amp;g?t.get(i,l+1,h+1):0;return(1-p)*((1-c)*((1-a)*m+a*y)+c*((1-a)*v+a*x))+p*((1-c)*((1-a)*b+a*(s&amp;&amp;u&amp;&amp;g?t.get(i+1,l,h+1):0))+c*((1-a)*_+a*(s&amp;&amp;f&amp;&amp;g?t.get(i+1,l+1,h+1):0)))}function o(t){var e,r,n=0|t.shape.length,i=new Array(n),a=new Array(n),o=new Array(n),s=new Array(n);for(e=0;e&lt;n;++e)r=+arguments[e+1],i[e]=Math.floor(r),a[e]=r-i[e],o[e]=0&lt;=i[e]&amp;&amp;i[e]&lt;t.shape[e],s[e]=0&lt;=i[e]+1&amp;&amp;i[e]+1&lt;t.shape[e];var l,c,u,f=0;t:for(e=0;e&lt;1&lt;&lt;n;++e){for(c=1,u=t.offset,l=0;l&lt;n;++l)if(e&amp;1&lt;&lt;l){if(!s[l])continue t;c*=a[l],u+=t.stride[l]*(i[l]+1)}else{if(!o[l])continue t;c*=1-a[l],u+=t.stride[l]*i[l]}f+=c*t.data[u]}return f}e.exports=function(t,e,r,s){switch(t.shape.length){case 0:return 0;case 1:return n(t,e);case 2:return i(t,e,r);case 3:return a(t,e,r,s);default:return o.apply(void 0,arguments)}},e.exports.d1=n,e.exports.d2=i,e.exports.d3=a},{}],490:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;cwise-compiler&quot;),i={body:&quot;&quot;,args:[],thisVars:[],localVars:[]};function a(t){if(!t)return i;for(var e=0;e&lt;t.args.length;++e){var r=t.args[e];t.args[e]=0===e?{name:r,lvalue:!0,rvalue:!!t.rvalue,count:t.count||1}:{name:r,lvalue:!1,rvalue:!0,count:1}}return t.thisVars||(t.thisVars=[]),t.localVars||(t.localVars=[]),t}function o(t){for(var e=[],r=0;r&lt;t.args.length;++r)e.push(&quot;a&quot;+r);return new Function(&quot;P&quot;,[&quot;return function &quot;,t.funcName,&quot;_ndarrayops(&quot;,e.join(&quot;,&quot;),&quot;) {P(&quot;,e.join(&quot;,&quot;),&quot;);return a0}&quot;].join(&quot;&quot;))(function(t){return n({args:t.args,pre:a(t.pre),body:a(t.body),post:a(t.proc),funcName:t.funcName})}(t))}var s={add:&quot;+&quot;,sub:&quot;-&quot;,mul:&quot;*&quot;,div:&quot;/&quot;,mod:&quot;%&quot;,band:&quot;&amp;&quot;,bor:&quot;|&quot;,bxor:&quot;^&quot;,lshift:&quot;&lt;&lt;&quot;,rshift:&quot;&gt;&gt;&quot;,rrshift:&quot;&gt;&gt;&gt;&quot;};!function(){for(var t in s){var e=s[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=b&quot;+e+&quot;c&quot;},funcName:t}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a&quot;+e+&quot;=b&quot;},rvalue:!0,funcName:t+&quot;eq&quot;}),r[t+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;s&quot;],body:&quot;a=b&quot;+e+&quot;s&quot;},funcName:t+&quot;s&quot;}),r[t+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;s&quot;],body:&quot;a&quot;+e+&quot;=s&quot;},rvalue:!0,funcName:t+&quot;seq&quot;})}}();var l={not:&quot;!&quot;,bnot:&quot;~&quot;,neg:&quot;-&quot;,recip:&quot;1.0/&quot;};!function(){for(var t in l){var e=l[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=&quot;+e+&quot;b&quot;},funcName:t}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;],body:{args:[&quot;a&quot;],body:&quot;a=&quot;+e+&quot;a&quot;},rvalue:!0,count:2,funcName:t+&quot;eq&quot;})}}();var c={and:&quot;&amp;&amp;&quot;,or:&quot;||&quot;,eq:&quot;===&quot;,neq:&quot;!==&quot;,lt:&quot;&lt;&quot;,gt:&quot;&gt;&quot;,leq:&quot;&lt;=&quot;,geq:&quot;&gt;=&quot;};!function(){for(var t in c){var e=c[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=b&quot;+e+&quot;c&quot;},funcName:t}),r[t+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;s&quot;],body:&quot;a=b&quot;+e+&quot;s&quot;},funcName:t+&quot;s&quot;}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=a&quot;+e+&quot;b&quot;},rvalue:!0,count:2,funcName:t+&quot;eq&quot;}),r[t+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;s&quot;],body:&quot;a=a&quot;+e+&quot;s&quot;},rvalue:!0,count:2,funcName:t+&quot;seq&quot;})}}();var u=[&quot;abs&quot;,&quot;acos&quot;,&quot;asin&quot;,&quot;atan&quot;,&quot;ceil&quot;,&quot;cos&quot;,&quot;exp&quot;,&quot;floor&quot;,&quot;log&quot;,&quot;round&quot;,&quot;sin&quot;,&quot;sqrt&quot;,&quot;tan&quot;];!function(){for(var t=0;t&lt;u.length;++t){var e=u[t];r[e]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e}),r[e+&quot;eq&quot;]=o({args:[&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;],body:&quot;a=this_f(a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;eq&quot;})}}();var f=[&quot;max&quot;,&quot;min&quot;,&quot;atan2&quot;,&quot;pow&quot;];!function(){for(var t=0;t&lt;f.length;++t){var e=f[t];r[e]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(b,c)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e}),r[e+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(b,c)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;s&quot;}),r[e+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(a,b)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;eq&quot;}),r[e+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(a,b)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;seq&quot;})}}();var h=[&quot;atan2&quot;,&quot;pow&quot;];!function(){for(var t=0;t&lt;h.length;++t){var e=h[t];r[e+&quot;op&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(c,b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;op&quot;}),r[e+&quot;ops&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(c,b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;ops&quot;}),r[e+&quot;opeq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b,a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;opeq&quot;}),r[e+&quot;opseq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b,a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;opseq&quot;})}}(),r.any=n({args:[&quot;array&quot;],pre:i,body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(a){return true}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return false&quot;},funcName:&quot;any&quot;}),r.all=n({args:[&quot;array&quot;],pre:i,body:{args:[{name:&quot;x&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(!x){return false}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return true&quot;},funcName:&quot;all&quot;}),r.sum=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;this_s+=a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;sum&quot;}),r.prod=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=1&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;this_s*=a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;prod&quot;}),r.norm2squared=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:2}],body:&quot;this_s+=a*a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norm2squared&quot;}),r.norm2=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:2}],body:&quot;this_s+=a*a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return Math.sqrt(this_s)&quot;},funcName:&quot;norm2&quot;}),r.norminf=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:4}],body:&quot;if(-a&gt;this_s){this_s=-a}else if(a&gt;this_s){this_s=a}&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norminf&quot;}),r.norm1=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:3}],body:&quot;this_s+=a&lt;0?-a:a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norm1&quot;}),r.sup=n({args:[&quot;array&quot;],pre:{body:&quot;this_h=-Infinity&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]},body:{body:&quot;if(_inline_1_arg0_&gt;this_h)this_h=_inline_1_arg0_&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_h&quot;],localVars:[]},post:{body:&quot;return this_h&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]}}),r.inf=n({args:[&quot;array&quot;],pre:{body:&quot;this_h=Infinity&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]},body:{body:&quot;if(_inline_1_arg0_&lt;this_h)this_h=_inline_1_arg0_&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_h&quot;],localVars:[]},post:{body:&quot;return this_h&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]}}),r.argmin=n({args:[&quot;index&quot;,&quot;array&quot;,&quot;shape&quot;],pre:{body:&quot;{this_v=Infinity;this_i=_inline_0_arg2_.slice(0)}&quot;,args:[{name:&quot;_inline_0_arg0_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg1_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg2_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[]},body:{body:&quot;{if(_inline_1_arg1_&lt;this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k&lt;_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[&quot;_inline_1_k&quot;]},post:{body:&quot;{return this_i}&quot;,args:[],thisVars:[&quot;this_i&quot;],localVars:[]}}),r.argmax=n({args:[&quot;index&quot;,&quot;array&quot;,&quot;shape&quot;],pre:{body:&quot;{this_v=-Infinity;this_i=_inline_0_arg2_.slice(0)}&quot;,args:[{name:&quot;_inline_0_arg0_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg1_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg2_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[]},body:{body:&quot;{if(_inline_1_arg1_&gt;this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k&lt;_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[&quot;_inline_1_k&quot;]},post:{body:&quot;{return this_i}&quot;,args:[],thisVars:[&quot;this_i&quot;],localVars:[]}}),r.random=o({args:[&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.random&quot;,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;],body:&quot;a=this_f()&quot;,thisVars:[&quot;this_f&quot;]},funcName:&quot;random&quot;}),r.assign=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=b&quot;},funcName:&quot;assign&quot;}),r.assigns=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=b&quot;},funcName:&quot;assigns&quot;}),r.equals=n({args:[&quot;array&quot;,&quot;array&quot;],pre:i,body:{args:[{name:&quot;x&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;y&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(x!==y){return false}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return true&quot;},funcName:&quot;equals&quot;})},{&quot;cwise-compiler&quot;:151}],491:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ndarray&quot;),i=t(&quot;./doConvert.js&quot;);e.exports=function(t,e){for(var r=[],a=t,o=1;Array.isArray(a);)r.push(a.length),o*=a.length,a=a[0];return 0===r.length?n():(e||(e=n(new Float64Array(o),r)),i(e,t),e)}},{&quot;./doConvert.js&quot;:492,ndarray:495}],492:[function(t,e,r){e.exports=t(&quot;cwise-compiler&quot;)({args:[&quot;array&quot;,&quot;scalar&quot;,&quot;index&quot;],pre:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},body:{body:&quot;{\nvar _inline_1_v=_inline_1_arg1_,_inline_1_i\nfor(_inline_1_i=0;_inline_1_i&lt;_inline_1_arg2_.length-1;++_inline_1_i) {\n_inline_1_v=_inline_1_v[_inline_1_arg2_[_inline_1_i]]\n}\n_inline_1_arg0_=_inline_1_v[_inline_1_arg2_[_inline_1_arg2_.length-1]]\n}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!0,rvalue:!1,count:1},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg2_&quot;,lvalue:!1,rvalue:!0,count:4}],thisVars:[],localVars:[&quot;_inline_1_i&quot;,&quot;_inline_1_v&quot;]},post:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},funcName:&quot;convert&quot;,blockSize:64})},{&quot;cwise-compiler&quot;:151}],493:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=32;function a(t){switch(t){case&quot;uint8&quot;:return[n.mallocUint8,n.freeUint8];case&quot;uint16&quot;:return[n.mallocUint16,n.freeUint16];case&quot;uint32&quot;:return[n.mallocUint32,n.freeUint32];case&quot;int8&quot;:return[n.mallocInt8,n.freeInt8];case&quot;int16&quot;:return[n.mallocInt16,n.freeInt16];case&quot;int32&quot;:return[n.mallocInt32,n.freeInt32];case&quot;float32&quot;:return[n.mallocFloat,n.freeFloat];case&quot;float64&quot;:return[n.mallocDouble,n.freeDouble];default:return null}}function o(t){for(var e=[],r=0;r&lt;t;++r)e.push(&quot;s&quot;+r);for(r=0;r&lt;t;++r)e.push(&quot;n&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;d&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;e&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;f&quot;+r);return e}e.exports=function(t,e){var r=[&quot;'use strict'&quot;],n=[&quot;ndarraySortWrapper&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;);r.push([&quot;function &quot;,n,&quot;(&quot;,[&quot;array&quot;].join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));for(var s=[&quot;data=array.data,offset=array.offset|0,shape=array.shape,stride=array.stride&quot;],l=0;l&lt;t.length;++l)s.push([&quot;s&quot;,l,&quot;=stride[&quot;,l,&quot;]|0,n&quot;,l,&quot;=shape[&quot;,l,&quot;]|0&quot;].join(&quot;&quot;));var c=new Array(t.length),u=[];for(l=0;l&lt;t.length;++l){0!==(p=t[l])&amp;&amp;(0===u.length?c[p]=&quot;1&quot;:c[p]=u.join(&quot;*&quot;),u.push(&quot;n&quot;+p))}var f=-1,h=-1;for(l=0;l&lt;t.length;++l){var p,d=t[l];0!==d&amp;&amp;(f&gt;0?s.push([&quot;d&quot;,d,&quot;=s&quot;,d,&quot;-d&quot;,f,&quot;*n&quot;,f].join(&quot;&quot;)):s.push([&quot;d&quot;,d,&quot;=s&quot;,d].join(&quot;&quot;)),f=d),0!==(p=t.length-1-l)&amp;&amp;(h&gt;0?s.push([&quot;e&quot;,p,&quot;=s&quot;,p,&quot;-e&quot;,h,&quot;*n&quot;,h,&quot;,f&quot;,p,&quot;=&quot;,c[p],&quot;-f&quot;,h,&quot;*n&quot;,h].join(&quot;&quot;)):s.push([&quot;e&quot;,p,&quot;=s&quot;,p,&quot;,f&quot;,p,&quot;=&quot;,c[p]].join(&quot;&quot;)),h=p)}r.push(&quot;var &quot;+s.join(&quot;,&quot;));var g=[&quot;0&quot;,&quot;n0-1&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length));r.push([&quot;if(n0&lt;=&quot;,i,&quot;){&quot;,&quot;insertionSort(&quot;,g.join(&quot;,&quot;),&quot;)}else{&quot;,&quot;quickSort(&quot;,g.join(&quot;,&quot;),&quot;)}&quot;].join(&quot;&quot;)),r.push(&quot;}return &quot;+n);var m=new Function(&quot;insertionSort&quot;,&quot;quickSort&quot;,r.join(&quot;\n&quot;)),v=function(t,e){var r=[&quot;'use strict'&quot;],n=[&quot;ndarrayInsertionSort&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;),i=[&quot;left&quot;,&quot;right&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length)),s=a(e),l=[&quot;i,j,cptr,ptr=left*s0+offset&quot;];if(t.length&gt;1){for(var c=[],u=1;u&lt;t.length;++u)l.push(&quot;i&quot;+u),c.push(&quot;n&quot;+u);s?l.push(&quot;scratch=malloc(&quot;+c.join(&quot;*&quot;)+&quot;)&quot;):l.push(&quot;scratch=new Array(&quot;+c.join(&quot;*&quot;)+&quot;)&quot;),l.push(&quot;dptr&quot;,&quot;sptr&quot;,&quot;a&quot;,&quot;b&quot;)}else l.push(&quot;scratch&quot;);function f(t){return&quot;generic&quot;===e?[&quot;data.get(&quot;,t,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]&quot;].join(&quot;&quot;)}function h(t,r){return&quot;generic&quot;===e?[&quot;data.set(&quot;,t,&quot;,&quot;,r,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]=&quot;,r].join(&quot;&quot;)}if(r.push([&quot;function &quot;,n,&quot;(&quot;,i.join(&quot;,&quot;),&quot;){var &quot;,l.join(&quot;,&quot;)].join(&quot;&quot;),&quot;for(i=left+1;i&lt;=right;++i){&quot;,&quot;j=i;ptr+=s0&quot;,&quot;cptr=ptr&quot;),t.length&gt;1){r.push(&quot;dptr=0;sptr=ptr&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(&quot;scratch[dptr++]=&quot;,f(&quot;sptr&quot;));for(u=0;u&lt;t.length;++u){0!==(p=t[u])&amp;&amp;r.push(&quot;sptr+=d&quot;+p,&quot;}&quot;)}r.push(&quot;__g:while(j--\x3eleft){&quot;,&quot;dptr=0&quot;,&quot;sptr=cptr-s0&quot;);for(u=1;u&lt;t.length;++u)1===u&amp;&amp;r.push(&quot;__l:&quot;),r.push([&quot;for(i&quot;,u,&quot;=0;i&quot;,u,&quot;&lt;n&quot;,u,&quot;;++i&quot;,u,&quot;){&quot;].join(&quot;&quot;));r.push([&quot;a=&quot;,f(&quot;sptr&quot;),&quot;\nb=scratch[dptr]\nif(a&lt;b){break __g}\nif(a&gt;b){break __l}&quot;].join(&quot;&quot;));for(u=t.length-1;u&gt;=1;--u)r.push(&quot;sptr+=e&quot;+u,&quot;dptr+=f&quot;+u,&quot;}&quot;);r.push(&quot;dptr=cptr;sptr=cptr-s0&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(h(&quot;dptr&quot;,f(&quot;sptr&quot;)));for(u=0;u&lt;t.length;++u){0!==(p=t[u])&amp;&amp;r.push([&quot;dptr+=d&quot;,p,&quot;;sptr+=d&quot;,p].join(&quot;&quot;),&quot;}&quot;)}r.push(&quot;cptr-=s0\n}&quot;),r.push(&quot;dptr=cptr;sptr=0&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(h(&quot;dptr&quot;,&quot;scratch[sptr++]&quot;));for(u=0;u&lt;t.length;++u){var p;0!==(p=t[u])&amp;&amp;r.push(&quot;dptr+=d&quot;+p,&quot;}&quot;)}}else r.push(&quot;scratch=&quot;+f(&quot;ptr&quot;),&quot;while((j--\x3eleft)&amp;&amp;(&quot;+f(&quot;cptr-s0&quot;)+&quot;&gt;scratch)){&quot;,h(&quot;cptr&quot;,f(&quot;cptr-s0&quot;)),&quot;cptr-=s0&quot;,&quot;}&quot;,h(&quot;cptr&quot;,&quot;scratch&quot;));return r.push(&quot;}&quot;),t.length&gt;1&amp;&amp;s&amp;&amp;r.push(&quot;free(scratch)&quot;),r.push(&quot;} return &quot;+n),s?new Function(&quot;malloc&quot;,&quot;free&quot;,r.join(&quot;\n&quot;))(s[0],s[1]):new Function(r.join(&quot;\n&quot;))()}(t,e),y=function(t,e,r){var n=[&quot;'use strict'&quot;],s=[&quot;ndarrayQuickSort&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;),l=[&quot;left&quot;,&quot;right&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length)),c=a(e),u=0;n.push([&quot;function &quot;,s,&quot;(&quot;,l.join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));var f=[&quot;sixth=((right-left+1)/6)|0&quot;,&quot;index1=left+sixth&quot;,&quot;index5=right-sixth&quot;,&quot;index3=(left+right)&gt;&gt;1&quot;,&quot;index2=index3-sixth&quot;,&quot;index4=index3+sixth&quot;,&quot;el1=index1&quot;,&quot;el2=index2&quot;,&quot;el3=index3&quot;,&quot;el4=index4&quot;,&quot;el5=index5&quot;,&quot;less=left+1&quot;,&quot;great=right-1&quot;,&quot;pivots_are_equal=true&quot;,&quot;tmp&quot;,&quot;tmp0&quot;,&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;k&quot;,&quot;ptr0&quot;,&quot;ptr1&quot;,&quot;ptr2&quot;,&quot;comp_pivot1=0&quot;,&quot;comp_pivot2=0&quot;,&quot;comp=0&quot;];if(t.length&gt;1){for(var h=[],p=1;p&lt;t.length;++p)h.push(&quot;n&quot;+p),f.push(&quot;i&quot;+p);for(p=0;p&lt;8;++p)f.push(&quot;b_ptr&quot;+p);f.push(&quot;ptr3&quot;,&quot;ptr4&quot;,&quot;ptr5&quot;,&quot;ptr6&quot;,&quot;ptr7&quot;,&quot;pivot_ptr&quot;,&quot;ptr_shift&quot;,&quot;elementSize=&quot;+h.join(&quot;*&quot;)),c?f.push(&quot;pivot1=malloc(elementSize)&quot;,&quot;pivot2=malloc(elementSize)&quot;):f.push(&quot;pivot1=new Array(elementSize),pivot2=new Array(elementSize)&quot;)}else f.push(&quot;pivot1&quot;,&quot;pivot2&quot;);function d(t){return[&quot;(offset+&quot;,t,&quot;*s0)&quot;].join(&quot;&quot;)}function g(t){return&quot;generic&quot;===e?[&quot;data.get(&quot;,t,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]&quot;].join(&quot;&quot;)}function m(t,r){return&quot;generic&quot;===e?[&quot;data.set(&quot;,t,&quot;,&quot;,r,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]=&quot;,r].join(&quot;&quot;)}function v(e,r,i){if(1===e.length)n.push(&quot;ptr0=&quot;+d(e[0]));else for(var a=0;a&lt;e.length;++a)n.push([&quot;b_ptr&quot;,a,&quot;=s0*&quot;,e[a]].join(&quot;&quot;));r&amp;&amp;n.push(&quot;pivot_ptr=0&quot;),n.push(&quot;ptr_shift=offset&quot;);for(a=t.length-1;a&gt;=0;--a){0!==(o=t[a])&amp;&amp;n.push([&quot;for(i&quot;,o,&quot;=0;i&quot;,o,&quot;&lt;n&quot;,o,&quot;;++i&quot;,o,&quot;){&quot;].join(&quot;&quot;))}if(e.length&gt;1)for(a=0;a&lt;e.length;++a)n.push([&quot;ptr&quot;,a,&quot;=b_ptr&quot;,a,&quot;+ptr_shift&quot;].join(&quot;&quot;));n.push(i),r&amp;&amp;n.push(&quot;++pivot_ptr&quot;);for(a=0;a&lt;t.length;++a){var o;0!==(o=t[a])&amp;&amp;(e.length&gt;1?n.push(&quot;ptr_shift+=d&quot;+o):n.push(&quot;ptr0+=d&quot;+o),n.push(&quot;}&quot;))}}function y(e,r,i,a){if(1===r.length)n.push(&quot;ptr0=&quot;+d(r[0]));else{for(var o=0;o&lt;r.length;++o)n.push([&quot;b_ptr&quot;,o,&quot;=s0*&quot;,r[o]].join(&quot;&quot;));n.push(&quot;ptr_shift=offset&quot;)}i&amp;&amp;n.push(&quot;pivot_ptr=0&quot;),e&amp;&amp;n.push(e+&quot;:&quot;);for(o=1;o&lt;t.length;++o)n.push([&quot;for(i&quot;,o,&quot;=0;i&quot;,o,&quot;&lt;n&quot;,o,&quot;;++i&quot;,o,&quot;){&quot;].join(&quot;&quot;));if(r.length&gt;1)for(o=0;o&lt;r.length;++o)n.push([&quot;ptr&quot;,o,&quot;=b_ptr&quot;,o,&quot;+ptr_shift&quot;].join(&quot;&quot;));n.push(a);for(o=t.length-1;o&gt;=1;--o)i&amp;&amp;n.push(&quot;pivot_ptr+=f&quot;+o),r.length&gt;1?n.push(&quot;ptr_shift+=e&quot;+o):n.push(&quot;ptr0+=e&quot;+o),n.push(&quot;}&quot;)}function x(){t.length&gt;1&amp;&amp;c&amp;&amp;n.push(&quot;free(pivot1)&quot;,&quot;free(pivot2)&quot;)}function b(e,r){var i=&quot;el&quot;+e,a=&quot;el&quot;+r;if(t.length&gt;1){var o=&quot;__l&quot;+ ++u;y(o,[i,a],!1,[&quot;comp=&quot;,g(&quot;ptr0&quot;),&quot;-&quot;,g(&quot;ptr1&quot;),&quot;\n&quot;,&quot;if(comp&gt;0){tmp0=&quot;,i,&quot;;&quot;,i,&quot;=&quot;,a,&quot;;&quot;,a,&quot;=tmp0;break &quot;,o,&quot;}\n&quot;,&quot;if(comp&lt;0){break &quot;,o,&quot;}&quot;].join(&quot;&quot;))}else n.push([&quot;if(&quot;,g(d(i)),&quot;&gt;&quot;,g(d(a)),&quot;){tmp0=&quot;,i,&quot;;&quot;,i,&quot;=&quot;,a,&quot;;&quot;,a,&quot;=tmp0}&quot;].join(&quot;&quot;))}function _(e,r){t.length&gt;1?v([e,r],!1,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;))):n.push(m(d(e),g(d(r))))}function w(e,r,i){if(t.length&gt;1){var a=&quot;__l&quot;+ ++u;y(a,[r],!0,[e,&quot;=&quot;,g(&quot;ptr0&quot;),&quot;-pivot&quot;,i,&quot;[pivot_ptr]\n&quot;,&quot;if(&quot;,e,&quot;!==0){break &quot;,a,&quot;}&quot;].join(&quot;&quot;))}else n.push([e,&quot;=&quot;,g(d(r)),&quot;-pivot&quot;,i].join(&quot;&quot;))}function T(e,r){t.length&gt;1?v([e,r],!1,[&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,&quot;tmp&quot;)].join(&quot;&quot;)):n.push([&quot;ptr0=&quot;,d(e),&quot;\n&quot;,&quot;ptr1=&quot;,d(r),&quot;\n&quot;,&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,&quot;tmp&quot;)].join(&quot;&quot;))}function k(e,r,i){t.length&gt;1?(v([e,r,i],!1,[&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,g(&quot;ptr2&quot;)),&quot;\n&quot;,m(&quot;ptr2&quot;,&quot;tmp&quot;)].join(&quot;&quot;)),n.push(&quot;++&quot;+r,&quot;--&quot;+i)):n.push([&quot;ptr0=&quot;,d(e),&quot;\n&quot;,&quot;ptr1=&quot;,d(r),&quot;\n&quot;,&quot;ptr2=&quot;,d(i),&quot;\n&quot;,&quot;++&quot;,r,&quot;\n&quot;,&quot;--&quot;,i,&quot;\n&quot;,&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,g(&quot;ptr2&quot;)),&quot;\n&quot;,m(&quot;ptr2&quot;,&quot;tmp&quot;)].join(&quot;&quot;))}function M(t,e){T(t,e),n.push(&quot;--&quot;+e)}function A(e,r,i){t.length&gt;1?v([e,r],!0,[m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,[&quot;pivot&quot;,i,&quot;[pivot_ptr]&quot;].join(&quot;&quot;))].join(&quot;&quot;)):n.push(m(d(e),g(d(r))),m(d(r),&quot;pivot&quot;+i))}function S(e,r){n.push([&quot;if((&quot;,r,&quot;-&quot;,e,&quot;)&lt;=&quot;,i,&quot;){\n&quot;,&quot;insertionSort(&quot;,e,&quot;,&quot;,r,&quot;,data,offset,&quot;,o(t.length).join(&quot;,&quot;),&quot;)\n&quot;,&quot;}else{\n&quot;,s,&quot;(&quot;,e,&quot;,&quot;,r,&quot;,data,offset,&quot;,o(t.length).join(&quot;,&quot;),&quot;)\n&quot;,&quot;}&quot;].join(&quot;&quot;))}function E(e,r,i){t.length&gt;1?(n.push([&quot;__l&quot;,++u,&quot;:while(true){&quot;].join(&quot;&quot;)),v([e],!0,[&quot;if(&quot;,g(&quot;ptr0&quot;),&quot;!==pivot&quot;,r,&quot;[pivot_ptr]){break __l&quot;,u,&quot;}&quot;].join(&quot;&quot;)),n.push(i,&quot;}&quot;)):n.push([&quot;while(&quot;,g(d(e)),&quot;===pivot&quot;,r,&quot;){&quot;,i,&quot;}&quot;].join(&quot;&quot;))}return n.push(&quot;var &quot;+f.join(&quot;,&quot;)),b(1,2),b(4,5),b(1,3),b(2,3),b(1,4),b(3,4),b(2,5),b(2,3),b(4,5),t.length&gt;1?v([&quot;el1&quot;,&quot;el2&quot;,&quot;el3&quot;,&quot;el4&quot;,&quot;el5&quot;,&quot;index1&quot;,&quot;index3&quot;,&quot;index5&quot;],!0,[&quot;pivot1[pivot_ptr]=&quot;,g(&quot;ptr1&quot;),&quot;\n&quot;,&quot;pivot2[pivot_ptr]=&quot;,g(&quot;ptr3&quot;),&quot;\n&quot;,&quot;pivots_are_equal=pivots_are_equal&amp;&amp;(pivot1[pivot_ptr]===pivot2[pivot_ptr])\n&quot;,&quot;x=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,&quot;y=&quot;,g(&quot;ptr2&quot;),&quot;\n&quot;,&quot;z=&quot;,g(&quot;ptr4&quot;),&quot;\n&quot;,m(&quot;ptr5&quot;,&quot;x&quot;),&quot;\n&quot;,m(&quot;ptr6&quot;,&quot;y&quot;),&quot;\n&quot;,m(&quot;ptr7&quot;,&quot;z&quot;)].join(&quot;&quot;)):n.push([&quot;pivot1=&quot;,g(d(&quot;el2&quot;)),&quot;\n&quot;,&quot;pivot2=&quot;,g(d(&quot;el4&quot;)),&quot;\n&quot;,&quot;pivots_are_equal=pivot1===pivot2\n&quot;,&quot;x=&quot;,g(d(&quot;el1&quot;)),&quot;\n&quot;,&quot;y=&quot;,g(d(&quot;el3&quot;)),&quot;\n&quot;,&quot;z=&quot;,g(d(&quot;el5&quot;)),&quot;\n&quot;,m(d(&quot;index1&quot;),&quot;x&quot;),&quot;\n&quot;,m(d(&quot;index3&quot;),&quot;y&quot;),&quot;\n&quot;,m(d(&quot;index5&quot;),&quot;z&quot;)].join(&quot;&quot;)),_(&quot;index2&quot;,&quot;left&quot;),_(&quot;index4&quot;,&quot;right&quot;),n.push(&quot;if(pivots_are_equal){&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp&quot;,&quot;k&quot;,1),n.push(&quot;if(comp===0){continue}&quot;),n.push(&quot;if(comp&lt;0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&gt;0){&quot;),n.push(&quot;great--&quot;),n.push(&quot;}else if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;break&quot;),n.push(&quot;}else{&quot;),M(&quot;k&quot;,&quot;great&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}else{&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp_pivot1&quot;,&quot;k&quot;,1),n.push(&quot;if(comp_pivot1&lt;0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),w(&quot;comp_pivot2&quot;,&quot;k&quot;,2),n.push(&quot;if(comp_pivot2&gt;0){&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,2),n.push(&quot;if(comp&gt;0){&quot;),n.push(&quot;if(--great&lt;k){break}&quot;),n.push(&quot;continue&quot;),n.push(&quot;}else{&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;}else{&quot;),M(&quot;k&quot;,&quot;great&quot;),n.push(&quot;}&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),A(&quot;left&quot;,&quot;(less-1)&quot;,1),A(&quot;right&quot;,&quot;(great+1)&quot;,2),S(&quot;left&quot;,&quot;(less-2)&quot;),S(&quot;(great+2)&quot;,&quot;right&quot;),n.push(&quot;if(pivots_are_equal){&quot;),x(),n.push(&quot;return&quot;),n.push(&quot;}&quot;),n.push(&quot;if(less&lt;index1&amp;&amp;great&gt;index5){&quot;),E(&quot;less&quot;,1,&quot;++less&quot;),E(&quot;great&quot;,2,&quot;--great&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp_pivot1&quot;,&quot;k&quot;,1),n.push(&quot;if(comp_pivot1===0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),w(&quot;comp_pivot2&quot;,&quot;k&quot;,2),n.push(&quot;if(comp_pivot2===0){&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,2),n.push(&quot;if(comp===0){&quot;),n.push(&quot;if(--great&lt;k){break}&quot;),n.push(&quot;continue&quot;),n.push(&quot;}else{&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;}else{&quot;),M(&quot;k&quot;,&quot;great&quot;),n.push(&quot;}&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),x(),S(&quot;less&quot;,&quot;great&quot;),n.push(&quot;}return &quot;+s),t.length&gt;1&amp;&amp;c?new Function(&quot;insertionSort&quot;,&quot;malloc&quot;,&quot;free&quot;,n.join(&quot;\n&quot;))(r,c[0],c[1]):new Function(&quot;insertionSort&quot;,n.join(&quot;\n&quot;))(r)}(t,e,v);return m(v,y)}},{&quot;typedarray-pool&quot;:595}],494:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/compile_sort.js&quot;),i={};e.exports=function(t){var e=t.order,r=t.dtype,a=[e,r].join(&quot;:&quot;),o=i[a];return o||(i[a]=o=n(e,r)),o(t),t}},{&quot;./lib/compile_sort.js&quot;:493}],495:[function(t,e,r){var n=t(&quot;iota-array&quot;),i=t(&quot;is-buffer&quot;),a=&quot;undefined&quot;!=typeof Float64Array;function o(t,e){return t[0]-e[0]}function s(){var t,e=this.stride,r=new Array(e.length);for(t=0;t&lt;r.length;++t)r[t]=[Math.abs(e[t]),t];r.sort(o);var n=new Array(r.length);for(t=0;t&lt;n.length;++t)n[t]=r[t][1];return n}function l(t,e){var r=[&quot;View&quot;,e,&quot;d&quot;,t].join(&quot;&quot;);e&lt;0&amp;&amp;(r=&quot;View_Nil&quot;+t);var i=&quot;generic&quot;===t;if(-1===e){var a=&quot;function &quot;+r+&quot;(a){this.data=a;};var proto=&quot;+r+&quot;.prototype;proto.dtype='&quot;+t+&quot;';proto.index=function(){return -1};proto.size=0;proto.dimension=-1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function(){return new &quot;+r+&quot;(this.data);};proto.get=proto.set=function(){};proto.pick=function(){return null};return function construct_&quot;+r+&quot;(a){return new &quot;+r+&quot;(a);}&quot;;return new Function(a)()}if(0===e){a=&quot;function &quot;+r+&quot;(a,d) {this.data = a;this.offset = d};var proto=&quot;+r+&quot;.prototype;proto.dtype='&quot;+t+&quot;';proto.index=function(){return this.offset};proto.dimension=0;proto.size=1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function &quot;+r+&quot;_copy() {return new &quot;+r+&quot;(this.data,this.offset)};proto.pick=function &quot;+r+&quot;_pick(){return TrivialArray(this.data);};proto.valueOf=proto.get=function &quot;+r+&quot;_get(){return &quot;+(i?&quot;this.data.get(this.offset)&quot;:&quot;this.data[this.offset]&quot;)+&quot;};proto.set=function &quot;+r+&quot;_set(v){return &quot;+(i?&quot;this.data.set(this.offset,v)&quot;:&quot;this.data[this.offset]=v&quot;)+&quot;};return function construct_&quot;+r+&quot;(a,b,c,d){return new &quot;+r+&quot;(a,d)}&quot;;return new Function(&quot;TrivialArray&quot;,a)(c[t][0])}a=[&quot;'use strict'&quot;];var o=n(e),l=o.map((function(t){return&quot;i&quot;+t})),u=&quot;this.offset+&quot;+o.map((function(t){return&quot;this.stride[&quot;+t+&quot;]*i&quot;+t})).join(&quot;+&quot;),f=o.map((function(t){return&quot;b&quot;+t})).join(&quot;,&quot;),h=o.map((function(t){return&quot;c&quot;+t})).join(&quot;,&quot;);a.push(&quot;function &quot;+r+&quot;(a,&quot;+f+&quot;,&quot;+h+&quot;,d){this.data=a&quot;,&quot;this.shape=[&quot;+f+&quot;]&quot;,&quot;this.stride=[&quot;+h+&quot;]&quot;,&quot;this.offset=d|0}&quot;,&quot;var proto=&quot;+r+&quot;.prototype&quot;,&quot;proto.dtype='&quot;+t+&quot;'&quot;,&quot;proto.dimension=&quot;+e),a.push(&quot;Object.defineProperty(proto,'size',{get:function &quot;+r+&quot;_size(){return &quot;+o.map((function(t){return&quot;this.shape[&quot;+t+&quot;]&quot;})).join(&quot;*&quot;),&quot;}})&quot;),1===e?a.push(&quot;proto.order=[0]&quot;):(a.push(&quot;Object.defineProperty(proto,'order',{get:&quot;),e&lt;4?(a.push(&quot;function &quot;+r+&quot;_order(){&quot;),2===e?a.push(&quot;return (Math.abs(this.stride[0])&gt;Math.abs(this.stride[1]))?[1,0]:[0,1]}})&quot;):3===e&amp;&amp;a.push(&quot;var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0&gt;s1){if(s1&gt;s2){return [2,1,0];}else if(s0&gt;s2){return [1,2,0];}else{return [1,0,2];}}else if(s0&gt;s2){return [2,0,1];}else if(s2&gt;s1){return [0,1,2];}else{return [0,2,1];}}})&quot;)):a.push(&quot;ORDER})&quot;)),a.push(&quot;proto.set=function &quot;+r+&quot;_set(&quot;+l.join(&quot;,&quot;)+&quot;,v){&quot;),i?a.push(&quot;return this.data.set(&quot;+u+&quot;,v)}&quot;):a.push(&quot;return this.data[&quot;+u+&quot;]=v}&quot;),a.push(&quot;proto.get=function &quot;+r+&quot;_get(&quot;+l.join(&quot;,&quot;)+&quot;){&quot;),i?a.push(&quot;return this.data.get(&quot;+u+&quot;)}&quot;):a.push(&quot;return this.data[&quot;+u+&quot;]}&quot;),a.push(&quot;proto.index=function &quot;+r+&quot;_index(&quot;,l.join(),&quot;){return &quot;+u+&quot;}&quot;),a.push(&quot;proto.hi=function &quot;+r+&quot;_hi(&quot;+l.join(&quot;,&quot;)+&quot;){return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return[&quot;(typeof i&quot;,t,&quot;!=='number'||i&quot;,t,&quot;&lt;0)?this.shape[&quot;,t,&quot;]:i&quot;,t,&quot;|0&quot;].join(&quot;&quot;)})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;this.stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,this.offset)}&quot;);var p=o.map((function(t){return&quot;a&quot;+t+&quot;=this.shape[&quot;+t+&quot;]&quot;})),d=o.map((function(t){return&quot;c&quot;+t+&quot;=this.stride[&quot;+t+&quot;]&quot;}));a.push(&quot;proto.lo=function &quot;+r+&quot;_lo(&quot;+l.join(&quot;,&quot;)+&quot;){var b=this.offset,d=0,&quot;+p.join(&quot;,&quot;)+&quot;,&quot;+d.join(&quot;,&quot;));for(var g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'&amp;&amp;i&quot;+g+&quot;&gt;=0){d=i&quot;+g+&quot;|0;b+=c&quot;+g+&quot;*d;a&quot;+g+&quot;-=d}&quot;);a.push(&quot;return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return&quot;a&quot;+t})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;c&quot;+t})).join(&quot;,&quot;)+&quot;,b)}&quot;),a.push(&quot;proto.step=function &quot;+r+&quot;_step(&quot;+l.join(&quot;,&quot;)+&quot;){var &quot;+o.map((function(t){return&quot;a&quot;+t+&quot;=this.shape[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;b&quot;+t+&quot;=this.stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,c=this.offset,d=0,ceil=Math.ceil&quot;);for(g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'){d=i&quot;+g+&quot;|0;if(d&lt;0){c+=b&quot;+g+&quot;*(a&quot;+g+&quot;-1);a&quot;+g+&quot;=ceil(-a&quot;+g+&quot;/d)}else{a&quot;+g+&quot;=ceil(a&quot;+g+&quot;/d)}b&quot;+g+&quot;*=d}&quot;);a.push(&quot;return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return&quot;a&quot;+t})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;b&quot;+t})).join(&quot;,&quot;)+&quot;,c)}&quot;);var m=new Array(e),v=new Array(e);for(g=0;g&lt;e;++g)m[g]=&quot;a[i&quot;+g+&quot;]&quot;,v[g]=&quot;b[i&quot;+g+&quot;]&quot;;a.push(&quot;proto.transpose=function &quot;+r+&quot;_transpose(&quot;+l+&quot;){&quot;+l.map((function(t,e){return t+&quot;=(&quot;+t+&quot;===undefined?&quot;+e+&quot;:&quot;+t+&quot;|0)&quot;})).join(&quot;;&quot;),&quot;var a=this.shape,b=this.stride;return new &quot;+r+&quot;(this.data,&quot;+m.join(&quot;,&quot;)+&quot;,&quot;+v.join(&quot;,&quot;)+&quot;,this.offset)}&quot;),a.push(&quot;proto.pick=function &quot;+r+&quot;_pick(&quot;+l+&quot;){var a=[],b=[],c=this.offset&quot;);for(g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'&amp;&amp;i&quot;+g+&quot;&gt;=0){c=(c+this.stride[&quot;+g+&quot;]*i&quot;+g+&quot;)|0}else{a.push(this.shape[&quot;+g+&quot;]);b.push(this.stride[&quot;+g+&quot;])}&quot;);return a.push(&quot;var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}&quot;),a.push(&quot;return function construct_&quot;+r+&quot;(data,shape,stride,offset){return new &quot;+r+&quot;(data,&quot;+o.map((function(t){return&quot;shape[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,offset)}&quot;),new Function(&quot;CTOR_LIST&quot;,&quot;ORDER&quot;,a.join(&quot;\n&quot;))(c[t],s)}var c={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],bigint64:[],biguint64:[],buffer:[],generic:[]};e.exports=function(t,e,r,n){if(void 0===t)return(0,c.array[0])([]);&quot;number&quot;==typeof t&amp;&amp;(t=[t]),void 0===e&amp;&amp;(e=[t.length]);var o=e.length;if(void 0===r){r=new Array(o);for(var s=o-1,u=1;s&gt;=0;--s)r[s]=u,u*=e[s]}if(void 0===n){n=0;for(s=0;s&lt;o;++s)r[s]&lt;0&amp;&amp;(n-=(e[s]-1)*r[s])}for(var f=function(t){if(i(t))return&quot;buffer&quot;;if(a)switch(Object.prototype.toString.call(t)){case&quot;[object Float64Array]&quot;:return&quot;float64&quot;;case&quot;[object Float32Array]&quot;:return&quot;float32&quot;;case&quot;[object Int8Array]&quot;:return&quot;int8&quot;;case&quot;[object Int16Array]&quot;:return&quot;int16&quot;;case&quot;[object Int32Array]&quot;:return&quot;int32&quot;;case&quot;[object Uint8Array]&quot;:return&quot;uint8&quot;;case&quot;[object Uint16Array]&quot;:return&quot;uint16&quot;;case&quot;[object Uint32Array]&quot;:return&quot;uint32&quot;;case&quot;[object Uint8ClampedArray]&quot;:return&quot;uint8_clamped&quot;;case&quot;[object BigInt64Array]&quot;:return&quot;bigint64&quot;;case&quot;[object BigUint64Array]&quot;:return&quot;biguint64&quot;}return Array.isArray(t)?&quot;array&quot;:&quot;generic&quot;}(t),h=c[f];h.length&lt;=o+1;)h.push(l(f,h.length-1));return(0,h[o+1])(t,e,r,n)}},{&quot;iota-array&quot;:463,&quot;is-buffer&quot;:465}],496:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;double-bits&quot;),i=Math.pow(2,-1074);e.exports=function(t,e){if(isNaN(t)||isNaN(e))return NaN;if(t===e)return t;if(0===t)return e&lt;0?-i:i;var r=n.hi(t),a=n.lo(t);e&gt;t==t&gt;0?a===-1&gt;&gt;&gt;0?(r+=1,a=0):a+=1:0===a?(a=-1&gt;&gt;&gt;0,r-=1):a-=1;return n.pack(a,r)}},{&quot;double-bits&quot;:173}],497:[function(t,e,r){var n=Math.PI,i=c(120);function a(t,e,r,n){return[&quot;C&quot;,t,e,r,n,r,n]}function o(t,e,r,n,i,a){return[&quot;C&quot;,t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function s(t,e,r,a,o,c,u,f,h,p){if(p)T=p[0],k=p[1],_=p[2],w=p[3];else{var d=l(t,e,-o);t=d.x,e=d.y;var g=(t-(f=(d=l(f,h,-o)).x))/2,m=(e-(h=d.y))/2,v=g*g/(r*r)+m*m/(a*a);v&gt;1&amp;&amp;(r*=v=Math.sqrt(v),a*=v);var y=r*r,x=a*a,b=(c==u?-1:1)*Math.sqrt(Math.abs((y*x-y*m*m-x*g*g)/(y*m*m+x*g*g)));b==1/0&amp;&amp;(b=1);var _=b*r*m/a+(t+f)/2,w=b*-a*g/r+(e+h)/2,T=Math.asin(((e-w)/a).toFixed(9)),k=Math.asin(((h-w)/a).toFixed(9));(T=t&lt;_?n-T:T)&lt;0&amp;&amp;(T=2*n+T),(k=f&lt;_?n-k:k)&lt;0&amp;&amp;(k=2*n+k),u&amp;&amp;T&gt;k&amp;&amp;(T-=2*n),!u&amp;&amp;k&gt;T&amp;&amp;(k-=2*n)}if(Math.abs(k-T)&gt;i){var M=k,A=f,S=h;k=T+i*(u&amp;&amp;k&gt;T?1:-1);var E=s(f=_+r*Math.cos(k),h=w+a*Math.sin(k),r,a,o,0,u,A,S,[k,M,_,w])}var C=Math.tan((k-T)/4),L=4/3*r*C,I=4/3*a*C,P=[2*t-(t+L*Math.sin(T)),2*e-(e-I*Math.cos(T)),f+L*Math.sin(k),h-I*Math.cos(k),f,h];if(p)return P;E&amp;&amp;(P=P.concat(E));for(var z=0;z&lt;P.length;){var O=l(P[z],P[z+1],o);P[z++]=O.x,P[z++]=O.y}return P}function l(t,e,r){return{x:t*Math.cos(r)-e*Math.sin(r),y:t*Math.sin(r)+e*Math.cos(r)}}function c(t){return t*(n/180)}e.exports=function(t){for(var e,r=[],n=0,i=0,l=0,u=0,f=null,h=null,p=0,d=0,g=0,m=t.length;g&lt;m;g++){var v=t[g],y=v[0];switch(y){case&quot;M&quot;:l=v[1],u=v[2];break;case&quot;A&quot;:(v=s(p,d,v[1],v[2],c(v[3]),v[4],v[5],v[6],v[7])).unshift(&quot;C&quot;),v.length&gt;7&amp;&amp;(r.push(v.splice(0,7)),v.unshift(&quot;C&quot;));break;case&quot;S&quot;:var x=p,b=d;&quot;C&quot;!=e&amp;&amp;&quot;S&quot;!=e||(x+=x-n,b+=b-i),v=[&quot;C&quot;,x,b,v[1],v[2],v[3],v[4]];break;case&quot;T&quot;:&quot;Q&quot;==e||&quot;T&quot;==e?(f=2*p-f,h=2*d-h):(f=p,h=d),v=o(p,d,f,h,v[1],v[2]);break;case&quot;Q&quot;:f=v[1],h=v[2],v=o(p,d,v[1],v[2],v[3],v[4]);break;case&quot;L&quot;:v=a(p,d,v[1],v[2]);break;case&quot;H&quot;:v=a(p,d,v[1],d);break;case&quot;V&quot;:v=a(p,d,p,v[1]);break;case&quot;Z&quot;:v=a(p,d,l,u)}e=y,p=v[v.length-2],d=v[v.length-1],v.length&gt;4?(n=v[v.length-4],i=v[v.length-3]):(n=p,i=d),r.push(v)}return r}},{}],498:[function(t,e,r){r.vertexNormals=function(t,e,r){for(var n=e.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o&lt;n;++o)i[o]=[0,0,0];for(o=0;o&lt;t.length;++o)for(var s=t[o],l=0,c=s[s.length-1],u=s[0],f=0;f&lt;s.length;++f){l=c,c=u,u=s[(f+1)%s.length];for(var h=e[l],p=e[c],d=e[u],g=new Array(3),m=0,v=new Array(3),y=0,x=0;x&lt;3;++x)g[x]=h[x]-p[x],m+=g[x]*g[x],v[x]=d[x]-p[x],y+=v[x]*v[x];if(m*y&gt;a){var b=i[c],_=1/Math.sqrt(m*y);for(x=0;x&lt;3;++x){var w=(x+1)%3,T=(x+2)%3;b[x]+=_*(v[w]*g[T]-v[T]*g[w])}}}for(o=0;o&lt;n;++o){b=i[o];var k=0;for(x=0;x&lt;3;++x)k+=b[x]*b[x];if(k&gt;a)for(_=1/Math.sqrt(k),x=0;x&lt;3;++x)b[x]*=_;else for(x=0;x&lt;3;++x)b[x]=0}return i},r.faceNormals=function(t,e,r){for(var n=t.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o&lt;n;++o){for(var s=t[o],l=new Array(3),c=0;c&lt;3;++c)l[c]=e[s[c]];var u=new Array(3),f=new Array(3);for(c=0;c&lt;3;++c)u[c]=l[1][c]-l[0][c],f[c]=l[2][c]-l[0][c];var h=new Array(3),p=0;for(c=0;c&lt;3;++c){var d=(c+1)%3,g=(c+2)%3;h[c]=u[d]*f[g]-u[g]*f[d],p+=h[c]*h[c]}p=p&gt;a?1/Math.sqrt(p):0;for(c=0;c&lt;3;++c)h[c]*=p;i[o]=h}return i}},{}],499:[function(t,e,r){
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
&quot;use strict&quot;;var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError(&quot;Object.assign cannot be called with null or undefined&quot;);return Object(t)}e.exports=function(){try{if(!Object.assign)return!1;var t=new String(&quot;abc&quot;);if(t[5]=&quot;de&quot;,&quot;5&quot;===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r&lt;10;r++)e[&quot;_&quot;+String.fromCharCode(r)]=r;if(&quot;0123456789&quot;!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(&quot;&quot;))return!1;var n={};return&quot;abcdefghijklmnopqrst&quot;.split(&quot;&quot;).forEach((function(t){n[t]=t})),&quot;abcdefghijklmnopqrst&quot;===Object.keys(Object.assign({},n)).join(&quot;&quot;)}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,l=o(t),c=1;c&lt;arguments.length;c++){for(var u in r=Object(arguments[c]))i.call(r,u)&amp;&amp;(l[u]=r[u]);if(n){s=n(r);for(var f=0;f&lt;s.length;f++)a.call(r,s[f])&amp;&amp;(l[s[f]]=r[s[f]])}}return l}},{}],500:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a,o,s,l,c){var u=e+a+c;if(f&gt;0){var f=Math.sqrt(u+1);t[0]=.5*(o-l)/f,t[1]=.5*(s-n)/f,t[2]=.5*(r-a)/f,t[3]=.5*f}else{var h=Math.max(e,a,c);f=Math.sqrt(2*h-u+1);e&gt;=h?(t[0]=.5*f,t[1]=.5*(i+r)/f,t[2]=.5*(s+n)/f,t[3]=.5*(o-l)/f):a&gt;=h?(t[0]=.5*(r+i)/f,t[1]=.5*f,t[2]=.5*(l+o)/f,t[3]=.5*(s-n)/f):(t[0]=.5*(n+s)/f,t[1]=.5*(o+l)/f,t[2]=.5*f,t[3]=.5*(r-i)/f)}return t}},{}],501:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.rotation||[0,0,0,1],n=t.radius||1;e=[].slice.call(e,0,3),u(r=[].slice.call(r,0,4),r);var i=new f(r,e,Math.log(n));i.setDistanceLimits(t.zoomMin,t.zoomMax),(&quot;eye&quot;in t||&quot;up&quot;in t)&amp;&amp;i.lookAt(0,t.eye,t.center,t.up);return i};var n=t(&quot;filtered-vector&quot;),i=t(&quot;gl-mat4/lookAt&quot;),a=t(&quot;gl-mat4/fromQuat&quot;),o=t(&quot;gl-mat4/invert&quot;),s=t(&quot;./lib/quatFromFrame&quot;);function l(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function c(t,e,r,n){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2)+Math.pow(n,2))}function u(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=c(r,n,i,a);o&gt;1e-6?(t[0]=r/o,t[1]=n/o,t[2]=i/o,t[3]=a/o):(t[0]=t[1]=t[2]=0,t[3]=1)}function f(t,e,r){this.radius=n([r]),this.center=n(e),this.rotation=n(t),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var h=f.prototype;h.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},h.recalcMatrix=function(t){this.radius.curve(t),this.center.curve(t),this.rotation.curve(t);var e=this.computedRotation;u(e,e);var r=this.computedMatrix;a(r,e);var n=this.computedCenter,i=this.computedEye,o=this.computedUp,s=Math.exp(this.computedRadius[0]);i[0]=n[0]+s*r[2],i[1]=n[1]+s*r[6],i[2]=n[2]+s*r[10],o[0]=r[1],o[1]=r[5],o[2]=r[9];for(var l=0;l&lt;3;++l){for(var c=0,f=0;f&lt;3;++f)c+=r[l+4*f]*i[f];r[12+l]=-c}},h.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n&lt;16;++n)e[n]=r[n];return e}return r},h.idle=function(t){this.center.idle(t),this.radius.idle(t),this.rotation.idle(t)},h.flush=function(t){this.center.flush(t),this.radius.flush(t),this.rotation.flush(t)},h.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=i[1],o=i[5],s=i[9],c=l(a,o,s);a/=c,o/=c,s/=c;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=l(u-=a*p,f-=o*p,h-=s*p);u/=d,f/=d,h/=d;var g=i[2],m=i[6],v=i[10],y=g*a+m*o+v*s,x=g*u+m*f+v*h,b=l(g-=y*a+x*u,m-=y*o+x*f,v-=y*s+x*h);g/=b,m/=b,v/=b;var _=u*e+a*r,w=f*e+o*r,T=h*e+s*r;this.center.move(t,_,w,T);var k=Math.exp(this.computedRadius[0]);k=Math.max(1e-4,k+n),this.radius.set(t,Math.log(k))},h.rotate=function(t,e,r,n){this.recalcMatrix(t),e=e||0,r=r||0;var i=this.computedMatrix,a=i[0],o=i[4],s=i[8],u=i[1],f=i[5],h=i[9],p=i[2],d=i[6],g=i[10],m=e*a+r*u,v=e*o+r*f,y=e*s+r*h,x=-(d*y-g*v),b=-(g*m-p*y),_=-(p*v-d*m),w=Math.sqrt(Math.max(0,1-Math.pow(x,2)-Math.pow(b,2)-Math.pow(_,2))),T=c(x,b,_,w);T&gt;1e-6?(x/=T,b/=T,_/=T,w/=T):(x=b=_=0,w=1);var k=this.computedRotation,M=k[0],A=k[1],S=k[2],E=k[3],C=M*w+E*x+A*_-S*b,L=A*w+E*b+S*x-M*_,I=S*w+E*_+M*b-A*x,P=E*w-M*x-A*b-S*_;if(n){x=p,b=d,_=g;var z=Math.sin(n)/l(x,b,_);x*=z,b*=z,_*=z,P=P*(w=Math.cos(e))-(C=C*w+P*x+L*_-I*b)*x-(L=L*w+P*b+I*x-C*_)*b-(I=I*w+P*_+C*b-L*x)*_}var O=c(C,L,I,P);O&gt;1e-6?(C/=O,L/=O,I/=O,P/=O):(C=L=I=0,P=1),this.rotation.set(t,C,L,I,P)},h.lookAt=function(t,e,r,n){this.recalcMatrix(t),r=r||this.computedCenter,e=e||this.computedEye,n=n||this.computedUp;var a=this.computedMatrix;i(a,e,r,n);var o=this.computedRotation;s(o,a[0],a[1],a[2],a[4],a[5],a[6],a[8],a[9],a[10]),u(o,o),this.rotation.set(t,o[0],o[1],o[2],o[3]);for(var l=0,c=0;c&lt;3;++c)l+=Math.pow(r[c]-e[c],2);this.radius.set(t,.5*Math.log(Math.max(l,1e-6))),this.center.set(t,r[0],r[1],r[2])},h.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},h.setMatrix=function(t,e){var r=this.computedRotation;s(r,e[0],e[1],e[2],e[4],e[5],e[6],e[8],e[9],e[10]),u(r,r),this.rotation.set(t,r[0],r[1],r[2],r[3]);var n=this.computedMatrix;o(n,e);var i=n[15];if(Math.abs(i)&gt;1e-6){var a=n[12]/i,l=n[13]/i,c=n[14]/i;this.recalcMatrix(t);var f=Math.exp(this.computedRadius[0]);this.center.set(t,a-n[2]*f,l-n[6]*f,c-n[10]*f),this.radius.idle(t)}else this.center.idle(t),this.radius.idle(t)},h.setDistance=function(t,e){e&gt;0&amp;&amp;this.radius.set(t,Math.log(e))},h.setDistanceLimits=function(t,e){t=t&gt;0?Math.log(t):-1/0,e=e&gt;0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},h.getDistanceLimits=function(t){var e=this.radius.bounds;return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},h.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},h.fromJSON=function(t){var e=this.lastT(),r=t.center;r&amp;&amp;this.center.set(e,r[0],r[1],r[2]);var n=t.rotation;n&amp;&amp;this.rotation.set(e,n[0],n[1],n[2],n[3]);var i=t.distance;i&amp;&amp;i&gt;0&amp;&amp;this.radius.set(e,Math.log(i)),this.setDistanceLimits(t.zoomMin,t.zoomMax)}},{&quot;./lib/quatFromFrame&quot;:500,&quot;filtered-vector&quot;:242,&quot;gl-mat4/fromQuat&quot;:282,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/lookAt&quot;:294}],502:[function(t,e,r){
/*!
 * pad-left &lt;https://github.com/jonschlinkert/pad-left&gt;
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT license.
 */
&quot;use strict&quot;;var n=t(&quot;repeat-string&quot;);e.exports=function(t,e,r){return n(r=&quot;undefined&quot;!=typeof r?r+&quot;&quot;:&quot; &quot;,e)+t}},{&quot;repeat-string&quot;:541}],503:[function(t,e,r){&quot;use strict&quot;;function n(t,e){if(&quot;string&quot;!=typeof t)return[t];var r=[t];&quot;string&quot;==typeof e||Array.isArray(e)?e={brackets:e}:e||(e={});var n=e.brackets?Array.isArray(e.brackets)?e.brackets:[e.brackets]:[&quot;{}&quot;,&quot;[]&quot;,&quot;()&quot;],i=e.escape||&quot;___&quot;,a=!!e.flat;n.forEach((function(t){var e=new RegExp([&quot;\\&quot;,t[0],&quot;[^\\&quot;,t[0],&quot;\\&quot;,t[1],&quot;]*\\&quot;,t[1]].join(&quot;&quot;)),n=[];function a(e,a,o){var s=r.push(e.slice(t[0].length,-t[1].length))-1;return n.push(s),i+s+i}r.forEach((function(t,n){for(var i,o=0;t!=i;)if(i=t,t=t.replace(e,a),o++&gt;1e4)throw Error(&quot;References have circular dependency. Please, check them.&quot;);r[n]=t})),n=n.reverse(),r=r.map((function(e){return n.forEach((function(r){e=e.replace(new RegExp(&quot;(\\&quot;+i+r+&quot;\\&quot;+i+&quot;)&quot;,&quot;g&quot;),t[0]+&quot;$1&quot;+t[1])})),e}))}));var o=new RegExp(&quot;\\&quot;+i+&quot;([0-9]+)\\&quot;+i);return a?r:function t(e,r,n){for(var i,a=[],s=0;i=o.exec(e);){if(s++&gt;1e4)throw Error(&quot;Circular references in parenthesis&quot;);a.push(e.slice(0,i.index)),a.push(t(r[i[1]],r)),e=e.slice(i.index+i[0].length)}return a.push(e),a}(r[0],r)}function i(t,e){if(e&amp;&amp;e.flat){var r,n=e&amp;&amp;e.escape||&quot;___&quot;,i=t[0];if(!i)return&quot;&quot;;for(var a=new RegExp(&quot;\\&quot;+n+&quot;([0-9]+)\\&quot;+n),o=0;i!=r;){if(o++&gt;1e4)throw Error(&quot;Circular references in &quot;+t);r=i,i=i.replace(a,s)}return i}return t.reduce((function t(e,r){return Array.isArray(r)&amp;&amp;(r=r.reduce(t,&quot;&quot;)),e+r}),&quot;&quot;);function s(e,r){if(null==t[r])throw Error(&quot;Reference &quot;+r+&quot;is undefined&quot;);return t[r]}}function a(t,e){return Array.isArray(t)?i(t,e):n(t,e)}a.parse=n,a.stringify=i,e.exports=a},{}],504:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;);e.exports=function(t){var e;arguments.length&gt;1&amp;&amp;(t=arguments);&quot;string&quot;==typeof t?t=t.split(/\s/).map(parseFloat):&quot;number&quot;==typeof t&amp;&amp;(t=[t]);t.length&amp;&amp;&quot;number&quot;==typeof t[0]?e=1===t.length?{width:t[0],height:t[0],x:0,y:0}:2===t.length?{width:t[0],height:t[1],x:0,y:0}:{x:t[0],y:t[1],width:t[2]-t[0]||0,height:t[3]-t[1]||0}:t&amp;&amp;(t=n(t,{left:&quot;x l left Left&quot;,top:&quot;y t top Top&quot;,width:&quot;w width W Width&quot;,height:&quot;h height W Width&quot;,bottom:&quot;b bottom Bottom&quot;,right:&quot;r right Right&quot;}),e={x:t.left||0,y:t.top||0},null==t.width?t.right?e.width=t.right-e.x:e.width=0:e.width=t.width,null==t.height?t.bottom?e.height=t.bottom-e.y:e.height=0:e.height=t.height);return e}},{&quot;pick-by-alias&quot;:511}],505:[function(t,e,r){e.exports=function(t){var e=[];return t.replace(i,(function(t,r,i){var o=r.toLowerCase();for(i=function(t){var e=t.match(a);return e?e.map(Number):[]}(i),&quot;m&quot;==o&amp;&amp;i.length&gt;2&amp;&amp;(e.push([r].concat(i.splice(0,2))),o=&quot;l&quot;,r=&quot;m&quot;==r?&quot;l&quot;:&quot;L&quot;);;){if(i.length==n[o])return i.unshift(r),e.push(i);if(i.length&lt;n[o])throw new Error(&quot;malformed path data&quot;);e.push([r].concat(i.splice(0,n[o])))}})),e};var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var a=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},{}],506:[function(t,e,r){e.exports=function(t,e){e||(e=[0,&quot;&quot;]),t=String(t);var r=parseFloat(t,10);return e[0]=r,e[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||&quot;&quot;,e}},{}],507:[function(t,e,r){(function(t){(function(){&quot;use strict&quot;;function r(t){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;Path must be a string. Received &quot;+JSON.stringify(t))}function n(t,e){for(var r,n=&quot;&quot;,i=0,a=-1,o=0,s=0;s&lt;=t.length;++s){if(s&lt;t.length)r=t.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(a===s-1||1===o);else if(a!==s-1&amp;&amp;2===o){if(n.length&lt;2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length&gt;2){var l=n.lastIndexOf(&quot;/&quot;);if(l!==n.length-1){-1===l?(n=&quot;&quot;,i=0):i=(n=n.slice(0,l)).length-1-n.lastIndexOf(&quot;/&quot;),a=s,o=0;continue}}else if(2===n.length||1===n.length){n=&quot;&quot;,i=0,a=s,o=0;continue}e&amp;&amp;(n.length&gt;0?n+=&quot;/..&quot;:n=&quot;..&quot;,i=2)}else n.length&gt;0?n+=&quot;/&quot;+t.slice(a+1,s):n=t.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===r&amp;&amp;-1!==o?++o:o=-1}return n}var i={resolve:function(){for(var e,i=&quot;&quot;,a=!1,o=arguments.length-1;o&gt;=-1&amp;&amp;!a;o--){var s;o&gt;=0?s=arguments[o]:(void 0===e&amp;&amp;(e=t.cwd()),s=e),r(s),0!==s.length&amp;&amp;(i=s+&quot;/&quot;+i,a=47===s.charCodeAt(0))}return i=n(i,!a),a?i.length&gt;0?&quot;/&quot;+i:&quot;/&quot;:i.length&gt;0?i:&quot;.&quot;},normalize:function(t){if(r(t),0===t.length)return&quot;.&quot;;var e=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1);return 0!==(t=n(t,!e)).length||e||(t=&quot;.&quot;),t.length&gt;0&amp;&amp;i&amp;&amp;(t+=&quot;/&quot;),e?&quot;/&quot;+t:t},isAbsolute:function(t){return r(t),t.length&gt;0&amp;&amp;47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return&quot;.&quot;;for(var t,e=0;e&lt;arguments.length;++e){var n=arguments[e];r(n),n.length&gt;0&amp;&amp;(void 0===t?t=n:t+=&quot;/&quot;+n)}return void 0===t?&quot;.&quot;:i.normalize(t)},relative:function(t,e){if(r(t),r(e),t===e)return&quot;&quot;;if((t=i.resolve(t))===(e=i.resolve(e)))return&quot;&quot;;for(var n=1;n&lt;t.length&amp;&amp;47===t.charCodeAt(n);++n);for(var a=t.length,o=a-n,s=1;s&lt;e.length&amp;&amp;47===e.charCodeAt(s);++s);for(var l=e.length-s,c=o&lt;l?o:l,u=-1,f=0;f&lt;=c;++f){if(f===c){if(l&gt;c){if(47===e.charCodeAt(s+f))return e.slice(s+f+1);if(0===f)return e.slice(s+f)}else o&gt;c&amp;&amp;(47===t.charCodeAt(n+f)?u=f:0===f&amp;&amp;(u=0));break}var h=t.charCodeAt(n+f);if(h!==e.charCodeAt(s+f))break;47===h&amp;&amp;(u=f)}var p=&quot;&quot;;for(f=n+u+1;f&lt;=a;++f)f!==a&amp;&amp;47!==t.charCodeAt(f)||(0===p.length?p+=&quot;..&quot;:p+=&quot;/..&quot;);return p.length&gt;0?p+e.slice(s+u):(s+=u,47===e.charCodeAt(s)&amp;&amp;++s,e.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(r(t),0===t.length)return&quot;.&quot;;for(var e=t.charCodeAt(0),n=47===e,i=-1,a=!0,o=t.length-1;o&gt;=1;--o)if(47===(e=t.charCodeAt(o))){if(!a){i=o;break}}else a=!1;return-1===i?n?&quot;/&quot;:&quot;.&quot;:n&amp;&amp;1===i?&quot;//&quot;:t.slice(0,i)},basename:function(t,e){if(void 0!==e&amp;&amp;&quot;string&quot;!=typeof e)throw new TypeError('&quot;ext&quot; argument must be a string');r(t);var n,i=0,a=-1,o=!0;if(void 0!==e&amp;&amp;e.length&gt;0&amp;&amp;e.length&lt;=t.length){if(e.length===t.length&amp;&amp;e===t)return&quot;&quot;;var s=e.length-1,l=-1;for(n=t.length-1;n&gt;=0;--n){var c=t.charCodeAt(n);if(47===c){if(!o){i=n+1;break}}else-1===l&amp;&amp;(o=!1,l=n+1),s&gt;=0&amp;&amp;(c===e.charCodeAt(s)?-1==--s&amp;&amp;(a=n):(s=-1,a=l))}return i===a?a=l:-1===a&amp;&amp;(a=t.length),t.slice(i,a)}for(n=t.length-1;n&gt;=0;--n)if(47===t.charCodeAt(n)){if(!o){i=n+1;break}}else-1===a&amp;&amp;(o=!1,a=n+1);return-1===a?&quot;&quot;:t.slice(i,a)},extname:function(t){r(t);for(var e=-1,n=0,i=-1,a=!0,o=0,s=t.length-1;s&gt;=0;--s){var l=t.charCodeAt(s);if(47!==l)-1===i&amp;&amp;(a=!1,i=s+1),46===l?-1===e?e=s:1!==o&amp;&amp;(o=1):-1!==e&amp;&amp;(o=-1);else if(!a){n=s+1;break}}return-1===e||-1===i||0===o||1===o&amp;&amp;e===i-1&amp;&amp;e===n+1?&quot;&quot;:t.slice(e,i)},format:function(t){if(null===t||&quot;object&quot;!=typeof t)throw new TypeError('The &quot;pathObject&quot; argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||&quot;&quot;)+(e.ext||&quot;&quot;);return r?r===e.root?r+n:r+t+n:n}(&quot;/&quot;,t)},parse:function(t){r(t);var e={root:&quot;&quot;,dir:&quot;&quot;,base:&quot;&quot;,ext:&quot;&quot;,name:&quot;&quot;};if(0===t.length)return e;var n,i=t.charCodeAt(0),a=47===i;a?(e.root=&quot;/&quot;,n=1):n=0;for(var o=-1,s=0,l=-1,c=!0,u=t.length-1,f=0;u&gt;=n;--u)if(47!==(i=t.charCodeAt(u)))-1===l&amp;&amp;(c=!1,l=u+1),46===i?-1===o?o=u:1!==f&amp;&amp;(f=1):-1!==o&amp;&amp;(f=-1);else if(!c){s=u+1;break}return-1===o||-1===l||0===f||1===f&amp;&amp;o===l-1&amp;&amp;o===s+1?-1!==l&amp;&amp;(e.base=e.name=0===s&amp;&amp;a?t.slice(1,l):t.slice(s,l)):(0===s&amp;&amp;a?(e.name=t.slice(1,o),e.base=t.slice(1,l)):(e.name=t.slice(s,o),e.base=t.slice(s,l)),e.ext=t.slice(o,l)),s&gt;0?e.dir=t.slice(0,s-1):a&amp;&amp;(e.dir=&quot;/&quot;),e},sep:&quot;/&quot;,delimiter:&quot;:&quot;,win32:null,posix:null};i.posix=i,e.exports=i}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:526}],508:[function(t,e,r){(function(t){(function(){(function(){var r,n,i,a,o,s;&quot;undefined&quot;!=typeof performance&amp;&amp;null!==performance&amp;&amp;performance.now?e.exports=function(){return performance.now()}:&quot;undefined&quot;!=typeof t&amp;&amp;null!==t&amp;&amp;t.hrtime?(e.exports=function(){return(r()-o)/1e6},n=t.hrtime,a=(r=function(){var t;return 1e9*(t=n())[0]+t[1]})(),s=1e9*t.uptime(),o=a-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:526}],509:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(e&lt;32){for(var r=1,i=0;i&lt;e;++i)for(var a=0;a&lt;i;++a)if(t[i]&lt;t[a])r=-r;else if(t[i]===t[a])return 0;return r}var o=n.mallocUint8(e);for(i=0;i&lt;e;++i)o[i]=0;for(r=1,i=0;i&lt;e;++i)if(!o[i]){var s=1;o[i]=1;for(a=t[i];a!==i;a=t[a]){if(o[a])return n.freeUint8(o),0;s+=1,o[a]=1}1&amp;s||(r=-r)}return n.freeUint8(o),r};var n=t(&quot;typedarray-pool&quot;)},{&quot;typedarray-pool&quot;:595}],510:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=t(&quot;invert-permutation&quot;);r.rank=function(t){var e=t.length;switch(e){case 0:case 1:return 0;case 2:return t[1]}var r,a,o,s=n.mallocUint32(e),l=n.mallocUint32(e),c=0;for(i(t,l),o=0;o&lt;e;++o)s[o]=t[o];for(o=e-1;o&gt;0;--o)a=l[o],r=s[o],s[o]=s[a],s[a]=r,l[o]=l[r],l[r]=a,c=(c+r)*o;return n.freeUint32(l),n.freeUint32(s),c},r.unrank=function(t,e,r){switch(t){case 0:return r||[];case 1:return r?(r[0]=0,r):[0];case 2:return r?(e?(r[0]=0,r[1]=1):(r[0]=1,r[1]=0),r):e?[0,1]:[1,0]}var n,i,a,o=1;for((r=r||new Array(t))[0]=0,a=1;a&lt;t;++a)r[a]=a,o=o*a|0;for(a=t-1;a&gt;0;--a)e=e-(n=e/o|0)*o|0,o=o/a|0,i=0|r[a],r[a]=0|r[n],r[n]=0|i;return r}},{&quot;invert-permutation&quot;:462,&quot;typedarray-pool&quot;:595}],511:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n,a,o={};if(&quot;string&quot;==typeof e&amp;&amp;(e=i(e)),Array.isArray(e)){var s={};for(a=0;a&lt;e.length;a++)s[e[a]]=!0;e=s}for(n in e)e[n]=i(e[n]);var l={};for(n in e){var c=e[n];if(Array.isArray(c))for(a=0;a&lt;c.length;a++){var u=c[a];if(r&amp;&amp;(l[u]=!0),u in t){if(o[n]=t[u],r)for(var f=a;f&lt;c.length;f++)l[c[f]]=!0;break}}else n in t&amp;&amp;(e[n]&amp;&amp;(o[n]=t[n]),r&amp;&amp;(l[n]=!0))}if(r)for(n in t)l[n]||(o[n]=t[n]);return o};var n={};function i(t){return n[t]?n[t]:(&quot;string&quot;==typeof t&amp;&amp;(t=n[t]=t.split(/\s*,\s*|\s+/)),t)}},{}],512:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=0|e.length,i=t.length,a=[new Array(r),new Array(r)],o=0;o&lt;r;++o)a[0][o]=[],a[1][o]=[];for(o=0;o&lt;i;++o){var s=t[o];a[0][s[0]].push(s),a[1][s[1]].push(s)}var l=[];for(o=0;o&lt;r;++o)a[0][o].length+a[1][o].length===0&amp;&amp;l.push([o]);function c(t,e){var r=a[e][t[e]];r.splice(r.indexOf(t),1)}function u(t,r,i){for(var o,s,l,u=0;u&lt;2;++u)if(a[u][r].length&gt;0){o=a[u][r][0],l=u;break}s=o[1^l];for(var f=0;f&lt;2;++f)for(var h=a[f][r],p=0;p&lt;h.length;++p){var d=h[p],g=d[1^f];n(e[t],e[r],e[s],e[g])&gt;0&amp;&amp;(o=d,s=g,l=f)}return i||o&amp;&amp;c(o,l),s}function f(t,r){var i=a[r][t][0],o=[t];c(i,r);for(var s=i[1^r];;){for(;s!==t;)o.push(s),s=u(o[o.length-2],s,!1);if(a[0][t].length+a[1][t].length===0)break;var l=o[o.length-1],f=t,h=o[1],p=u(l,f,!0);if(n(e[l],e[f],e[h],e[p])&lt;0)break;o.push(t),s=u(l,f)}return o}function h(t,e){return e[1]===e[e.length-1]}for(o=0;o&lt;r;++o)for(var p=0;p&lt;2;++p){for(var d=[];a[p][o].length&gt;0;){a[0][o].length;var g=f(o,p);h(0,g)?d.push.apply(d,g):(d.length&gt;0&amp;&amp;l.push(d),d=g)}d.length&gt;0&amp;&amp;l.push(d)}return l};var n=t(&quot;compare-angle&quot;)},{&quot;compare-angle&quot;:132}],513:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=n(t,e.length),i=new Array(e.length),a=new Array(e.length),o=[],s=0;s&lt;e.length;++s){var l=r[s].length;a[s]=l,i[s]=!0,l&lt;=1&amp;&amp;o.push(s)}for(;o.length&gt;0;){var c=o.pop();i[c]=!1;var u=r[c];for(s=0;s&lt;u.length;++s){var f=u[s];0==--a[f]&amp;&amp;o.push(f)}}var h=new Array(e.length),p=[];for(s=0;s&lt;e.length;++s)if(i[s]){c=p.length;h[s]=c,p.push(e[s])}else h[s]=-1;var d=[];for(s=0;s&lt;t.length;++s){var g=t[s];i[g[0]]&amp;&amp;i[g[1]]&amp;&amp;d.push([h[g[0]],h[g[1]]])}return[d,p]};var n=t(&quot;edges-to-adjacency-list&quot;)},{&quot;edges-to-adjacency-list&quot;:178}],514:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=c(t,e);t=r[0];for(var f=(e=r[1]).length,h=(t.length,n(t,e.length)),p=0;p&lt;f;++p)if(h[p].length%2==1)throw new Error(&quot;planar-graph-to-polyline: graph must be manifold&quot;);var d=i(t,e);var g=(d=d.filter((function(t){for(var r=t.length,n=[0],i=0;i&lt;r;++i){var a=e[t[i]],l=e[t[(i+1)%r]],c=o(-a[0],a[1]),u=o(-a[0],l[1]),f=o(l[0],a[1]),h=o(l[0],l[1]);n=s(n,s(s(c,u),s(f,h)))}return n[n.length-1]&gt;0}))).length,m=new Array(g),v=new Array(g);for(p=0;p&lt;g;++p){m[p]=p;var y=new Array(g),x=d[p].map((function(t){return e[t]})),b=a([x]),_=0;t:for(var w=0;w&lt;g;++w)if(y[w]=0,p!==w){for(var T=(q=d[w]).length,k=0;k&lt;T;++k){var M=b(e[q[k]]);if(0!==M){M&lt;0&amp;&amp;(y[w]=1,_+=1);continue t}}y[w]=1,_+=1}v[p]=[_,p,y]}v.sort((function(t,e){return e[0]-t[0]}));for(p=0;p&lt;g;++p){var A=(y=v[p])[1],S=y[2];for(w=0;w&lt;g;++w)S[w]&amp;&amp;(m[w]=A)}var E=function(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=[];return e}(g);for(p=0;p&lt;g;++p)E[p].push(m[p]),E[m[p]].push(p);var C={},L=u(f,!1);for(p=0;p&lt;g;++p)for(T=(q=d[p]).length,w=0;w&lt;T;++w){var I=q[w],P=q[(w+1)%T],z=Math.min(I,P)+&quot;:&quot;+Math.max(I,P);if(z in C){var O=C[z];E[O].push(p),E[p].push(O),L[I]=L[P]=!0}else C[z]=p}function D(t){for(var e=t.length,r=0;r&lt;e;++r)if(!L[t[r]])return!1;return!0}var R=[],F=u(g,-1);for(p=0;p&lt;g;++p)m[p]!==p||D(d[p])?F[p]=-1:(R.push(p),F[p]=0);r=[];for(;R.length&gt;0;){var B=R.pop(),N=E[B];l(N,(function(t,e){return t-e}));var j,U=N.length,V=F[B];if(0===V){var q=d[B];j=[q]}for(p=0;p&lt;U;++p){var H=N[p];if(!(F[H]&gt;=0))if(F[H]=1^V,R.push(H),0===V)D(q=d[H])||(q.reverse(),j.push(q))}0===V&amp;&amp;r.push(j)}return r};var n=t(&quot;edges-to-adjacency-list&quot;),i=t(&quot;planar-dual&quot;),a=t(&quot;point-in-big-polygon&quot;),o=t(&quot;two-product&quot;),s=t(&quot;robust-sum&quot;),l=t(&quot;uniq&quot;),c=t(&quot;./lib/trim-leaves&quot;);function u(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}},{&quot;./lib/trim-leaves&quot;:513,&quot;edges-to-adjacency-list&quot;:178,&quot;planar-dual&quot;:512,&quot;point-in-big-polygon&quot;:516,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582,uniq:597}],515:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],516:[function(t,e,r){e.exports=function(t){for(var e=t.length,r=[],a=[],s=0;s&lt;e;++s)for(var u=t[s],f=u.length,h=f-1,p=0;p&lt;f;h=p++){var d=u[h],g=u[p];d[0]===g[0]?a.push([d,g]):r.push([d,g])}if(0===r.length)return 0===a.length?c:(m=l(a),function(t){return m(t[0],t[1])?0:1});var m;var v=i(r),y=function(t,e){return function(r){var i=o.le(e,r[0]);if(i&lt;0)return 1;var a=t[i];if(!a){if(!(i&gt;0&amp;&amp;e[i]===r[0]))return 1;a=t[i-1]}for(var s=1;a;){var l=a.key,c=n(r,l[0],l[1]);if(l[0][0]&lt;l[1][0])if(c&lt;0)a=a.left;else{if(!(c&gt;0))return 0;s=-1,a=a.right}else if(c&gt;0)a=a.left;else{if(!(c&lt;0))return 0;s=1,a=a.right}}return s}}(v.slabs,v.coordinates);return 0===a.length?y:function(t,e){return function(r){return t(r[0],r[1])?0:e(r)}}(l(a),y)};var n=t(&quot;robust-orientation&quot;)[3],i=t(&quot;slab-decomposition&quot;),a=t(&quot;interval-tree-1d&quot;),o=t(&quot;binary-search-bounds&quot;);function s(){return!0}function l(t){for(var e={},r=0;r&lt;t.length;++r){var n=t[r],i=n[0][0],o=n[0][1],l=n[1][1],c=[Math.min(o,l),Math.max(o,l)];i in e?e[i].push(c):e[i]=[c]}var u={},f=Object.keys(e);for(r=0;r&lt;f.length;++r){var h=e[f[r]];u[f[r]]=a(h)}return function(t){return function(e,r){var n=t[e];return!!n&amp;&amp;!!n.queryPoint(r,s)}}(u)}function c(t){return 1}},{&quot;binary-search-bounds&quot;:515,&quot;interval-tree-1d&quot;:460,&quot;robust-orientation&quot;:548,&quot;slab-decomposition&quot;:565}],517:[function(t,e,r){
/*
 * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
 * @license MIT
 * @preserve Project Home: https://github.com/voidqk/polybooljs
 */
var n,i=t(&quot;./lib/build-log&quot;),a=t(&quot;./lib/epsilon&quot;),o=t(&quot;./lib/intersecter&quot;),s=t(&quot;./lib/segment-chainer&quot;),l=t(&quot;./lib/segment-selector&quot;),c=t(&quot;./lib/geojson&quot;),u=!1,f=a();function h(t,e,r){var i=n.segments(t),a=n.segments(e),o=r(n.combine(i,a));return n.polygon(o)}n={buildLog:function(t){return!0===t?u=i():!1===t&amp;&amp;(u=!1),!1!==u&amp;&amp;u.list},epsilon:function(t){return f.epsilon(t)},segments:function(t){var e=o(!0,f,u);return t.regions.forEach(e.addRegion),{segments:e.calculate(t.inverted),inverted:t.inverted}},combine:function(t,e){return{combined:o(!1,f,u).calculate(t.segments,t.inverted,e.segments,e.inverted),inverted1:t.inverted,inverted2:e.inverted}},selectUnion:function(t){return{segments:l.union(t.combined,u),inverted:t.inverted1||t.inverted2}},selectIntersect:function(t){return{segments:l.intersect(t.combined,u),inverted:t.inverted1&amp;&amp;t.inverted2}},selectDifference:function(t){return{segments:l.difference(t.combined,u),inverted:t.inverted1&amp;&amp;!t.inverted2}},selectDifferenceRev:function(t){return{segments:l.differenceRev(t.combined,u),inverted:!t.inverted1&amp;&amp;t.inverted2}},selectXor:function(t){return{segments:l.xor(t.combined,u),inverted:t.inverted1!==t.inverted2}},polygon:function(t){return{regions:s(t.segments,f,u),inverted:t.inverted}},polygonFromGeoJSON:function(t){return c.toPolygon(n,t)},polygonToGeoJSON:function(t){return c.fromPolygon(n,f,t)},union:function(t,e){return h(t,e,n.selectUnion)},intersect:function(t,e){return h(t,e,n.selectIntersect)},difference:function(t,e){return h(t,e,n.selectDifference)},differenceRev:function(t,e){return h(t,e,n.selectDifferenceRev)},xor:function(t,e){return h(t,e,n.selectXor)}},&quot;object&quot;==typeof window&amp;&amp;(window.PolyBool=n),e.exports=n},{&quot;./lib/build-log&quot;:518,&quot;./lib/epsilon&quot;:519,&quot;./lib/geojson&quot;:520,&quot;./lib/intersecter&quot;:521,&quot;./lib/segment-chainer&quot;:523,&quot;./lib/segment-selector&quot;:524}],518:[function(t,e,r){e.exports=function(){var t,e=0,r=!1;function n(e,r){return t.list.push({type:e,data:r?JSON.parse(JSON.stringify(r)):void 0}),t}return t={list:[],segmentId:function(){return e++},checkIntersection:function(t,e){return n(&quot;check&quot;,{seg1:t,seg2:e})},segmentChop:function(t,e){return n(&quot;div_seg&quot;,{seg:t,pt:e}),n(&quot;chop&quot;,{seg:t,pt:e})},statusRemove:function(t){return n(&quot;pop_seg&quot;,{seg:t})},segmentUpdate:function(t){return n(&quot;seg_update&quot;,{seg:t})},segmentNew:function(t,e){return n(&quot;new_seg&quot;,{seg:t,primary:e})},segmentRemove:function(t){return n(&quot;rem_seg&quot;,{seg:t})},tempStatus:function(t,e,r){return n(&quot;temp_status&quot;,{seg:t,above:e,below:r})},rewind:function(t){return n(&quot;rewind&quot;,{seg:t})},status:function(t,e,r){return n(&quot;status&quot;,{seg:t,above:e,below:r})},vert:function(e){return e===r?t:(r=e,n(&quot;vert&quot;,{x:e}))},log:function(t){return&quot;string&quot;!=typeof t&amp;&amp;(t=JSON.stringify(t,!1,&quot;  &quot;)),n(&quot;log&quot;,{txt:t})},reset:function(){return n(&quot;reset&quot;)},selected:function(t){return n(&quot;selected&quot;,{segs:t})},chainStart:function(t){return n(&quot;chain_start&quot;,{seg:t})},chainRemoveHead:function(t,e){return n(&quot;chain_rem_head&quot;,{index:t,pt:e})},chainRemoveTail:function(t,e){return n(&quot;chain_rem_tail&quot;,{index:t,pt:e})},chainNew:function(t,e){return n(&quot;chain_new&quot;,{pt1:t,pt2:e})},chainMatch:function(t){return n(&quot;chain_match&quot;,{index:t})},chainClose:function(t){return n(&quot;chain_close&quot;,{index:t})},chainAddHead:function(t,e){return n(&quot;chain_add_head&quot;,{index:t,pt:e})},chainAddTail:function(t,e){return n(&quot;chain_add_tail&quot;,{index:t,pt:e})},chainConnect:function(t,e){return n(&quot;chain_con&quot;,{index1:t,index2:e})},chainReverse:function(t){return n(&quot;chain_rev&quot;,{index:t})},chainJoin:function(t,e){return n(&quot;chain_join&quot;,{index1:t,index2:e})},done:function(){return n(&quot;done&quot;)}}}},{}],519:[function(t,e,r){e.exports=function(t){&quot;number&quot;!=typeof t&amp;&amp;(t=1e-10);var e={epsilon:function(e){return&quot;number&quot;==typeof e&amp;&amp;(t=e),t},pointAboveOrOnLine:function(e,r,n){var i=r[0],a=r[1],o=n[0],s=n[1],l=e[0];return(o-i)*(e[1]-a)-(s-a)*(l-i)&gt;=-t},pointBetween:function(e,r,n){var i=e[1]-r[1],a=n[0]-r[0],o=e[0]-r[0],s=n[1]-r[1],l=o*a+i*s;return!(l&lt;t)&amp;&amp;!(l-(a*a+s*s)&gt;-t)},pointsSameX:function(e,r){return Math.abs(e[0]-r[0])&lt;t},pointsSameY:function(e,r){return Math.abs(e[1]-r[1])&lt;t},pointsSame:function(t,r){return e.pointsSameX(t,r)&amp;&amp;e.pointsSameY(t,r)},pointsCompare:function(t,r){return e.pointsSameX(t,r)?e.pointsSameY(t,r)?0:t[1]&lt;r[1]?-1:1:t[0]&lt;r[0]?-1:1},pointsCollinear:function(e,r,n){var i=e[0]-r[0],a=e[1]-r[1],o=r[0]-n[0],s=r[1]-n[1];return Math.abs(i*s-o*a)&lt;t},linesIntersect:function(e,r,n,i){var a=r[0]-e[0],o=r[1]-e[1],s=i[0]-n[0],l=i[1]-n[1],c=a*l-o*s;if(Math.abs(c)&lt;t)return!1;var u=e[0]-n[0],f=e[1]-n[1],h=(s*f-l*u)/c,p=(a*f-o*u)/c,d={alongA:0,alongB:0,pt:[e[0]+h*a,e[1]+h*o]};return d.alongA=h&lt;=-t?-2:h&lt;t?-1:h-1&lt;=-t?0:h-1&lt;t?1:2,d.alongB=p&lt;=-t?-2:p&lt;t?-1:p-1&lt;=-t?0:p-1&lt;t?1:2,d},pointInsideRegion:function(e,r){for(var n=e[0],i=e[1],a=r[r.length-1][0],o=r[r.length-1][1],s=!1,l=0;l&lt;r.length;l++){var c=r[l][0],u=r[l][1];u-i&gt;t!=o-i&gt;t&amp;&amp;(a-c)*(i-u)/(o-u)+c-n&gt;t&amp;&amp;(s=!s),a=c,o=u}return s}};return e}},{}],520:[function(t,e,r){var n={toPolygon:function(t,e){function r(e){if(e.length&lt;=0)return t.segments({inverted:!1,regions:[]});function r(e){var r=e.slice(0,e.length-1);return t.segments({inverted:!1,regions:[r]})}for(var n=r(e[0]),i=1;i&lt;e.length;i++)n=t.selectDifference(t.combine(n,r(e[i])));return n}if(&quot;Polygon&quot;===e.type)return t.polygon(r(e.coordinates));if(&quot;MultiPolygon&quot;===e.type){for(var n=t.segments({inverted:!1,regions:[]}),i=0;i&lt;e.coordinates.length;i++)n=t.selectUnion(t.combine(n,r(e.coordinates[i])));return t.polygon(n)}throw new Error(&quot;PolyBool: Cannot convert GeoJSON object to PolyBool polygon&quot;)},fromPolygon:function(t,e,r){function n(t,r){return e.pointInsideRegion([.5*(t[0][0]+t[1][0]),.5*(t[0][1]+t[1][1])],r)}function i(t){return{region:t,children:[]}}r=t.polygon(t.segments(r));var a=i(null);function o(t,e){for(var r=0;r&lt;t.children.length;r++){if(n(e,(s=t.children[r]).region))return void o(s,e)}var a=i(e);for(r=0;r&lt;t.children.length;r++){var s;n((s=t.children[r]).region,e)&amp;&amp;(a.children.push(s),t.children.splice(r,1),r--)}t.children.push(a)}for(var s=0;s&lt;r.regions.length;s++){var l=r.regions[s];l.length&lt;3||o(a,l)}function c(t,e){for(var r=0,n=t[t.length-1][0],i=t[t.length-1][1],a=[],o=0;o&lt;t.length;o++){var s=t[o][0],l=t[o][1];a.push([s,l]),r+=l*n-s*i,n=s,i=l}return r&lt;0!==e&amp;&amp;a.reverse(),a.push([a[0][0],a[0][1]]),a}var u=[];function f(t){var e=[c(t.region,!1)];u.push(e);for(var r=0;r&lt;t.children.length;r++)e.push(h(t.children[r]))}function h(t){for(var e=0;e&lt;t.children.length;e++)f(t.children[e]);return c(t.region,!0)}for(s=0;s&lt;a.children.length;s++)f(a.children[s]);return u.length&lt;=0?{type:&quot;Polygon&quot;,coordinates:[]}:1==u.length?{type:&quot;Polygon&quot;,coordinates:u[0]}:{type:&quot;MultiPolygon&quot;,coordinates:u}}};e.exports=n},{}],521:[function(t,e,r){var n=t(&quot;./linked-list&quot;);e.exports=function(t,e,r){function i(t,e,n){return{id:r?r.segmentId():-1,start:t,end:e,myFill:{above:n.myFill.above,below:n.myFill.below},otherFill:null}}var a=n.create();function o(t,r){a.insertBefore(t,(function(n){return function(t,r,n,i,a,o){var s=e.pointsCompare(r,a);return 0!==s?s:e.pointsSame(n,o)?0:t!==i?t?1:-1:e.pointAboveOrOnLine(n,i?a:o,i?o:a)?1:-1}(t.isStart,t.pt,r,n.isStart,n.pt,n.other.pt)&lt;0}))}function s(t,e){var r=function(t,e){var r=n.node({isStart:!0,pt:t.start,seg:t,primary:e,other:null,status:null});return o(r,t.end),r}(t,e);return function(t,e,r){var i=n.node({isStart:!1,pt:e.end,seg:e,primary:r,other:t,status:null});t.other=i,o(i,t.pt)}(r,t,e),r}function l(t,e){var n=i(e,t.seg.end,t.seg);return function(t,e){r&amp;&amp;r.segmentChop(t.seg,e),t.other.remove(),t.seg.end=e,t.other.pt=e,o(t.other,t.pt)}(t,e),s(n,t.primary)}function c(i,o){var s=n.create();function c(t){return s.findTransition((function(r){var n,i,a,o,s,l;return(n=t,i=r.ev,a=n.seg.start,o=n.seg.end,s=i.seg.start,l=i.seg.end,e.pointsCollinear(a,s,l)?e.pointsCollinear(o,s,l)||e.pointAboveOrOnLine(o,s,l)?1:-1:e.pointAboveOrOnLine(a,s,l)?1:-1)&gt;0}))}function u(t,n){var i=t.seg,a=n.seg,o=i.start,s=i.end,c=a.start,u=a.end;r&amp;&amp;r.checkIntersection(i,a);var f=e.linesIntersect(o,s,c,u);if(!1===f){if(!e.pointsCollinear(o,s,c))return!1;if(e.pointsSame(o,u)||e.pointsSame(s,c))return!1;var h=e.pointsSame(o,c),p=e.pointsSame(s,u);if(h&amp;&amp;p)return n;var d=!h&amp;&amp;e.pointBetween(o,c,u),g=!p&amp;&amp;e.pointBetween(s,c,u);if(h)return g?l(n,s):l(t,u),n;d&amp;&amp;(p||(g?l(n,s):l(t,u)),l(n,o))}else 0===f.alongA&amp;&amp;(-1===f.alongB?l(t,c):0===f.alongB?l(t,f.pt):1===f.alongB&amp;&amp;l(t,u)),0===f.alongB&amp;&amp;(-1===f.alongA?l(n,o):0===f.alongA?l(n,f.pt):1===f.alongA&amp;&amp;l(n,s));return!1}for(var f=[];!a.isEmpty();){var h=a.getHead();if(r&amp;&amp;r.vert(h.pt[0]),h.isStart){r&amp;&amp;r.segmentNew(h.seg,h.primary);var p=c(h),d=p.before?p.before.ev:null,g=p.after?p.after.ev:null;function m(){if(d){var t=u(h,d);if(t)return t}return!!g&amp;&amp;u(h,g)}r&amp;&amp;r.tempStatus(h.seg,!!d&amp;&amp;d.seg,!!g&amp;&amp;g.seg);var v,y=m();if(y){var x;if(t)(x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below)&amp;&amp;(y.seg.myFill.above=!y.seg.myFill.above);else y.seg.otherFill=h.seg.myFill;r&amp;&amp;r.segmentUpdate(y.seg),h.other.remove(),h.remove()}if(a.getHead()!==h){r&amp;&amp;r.rewind(h.seg);continue}if(t)x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below,h.seg.myFill.below=g?g.seg.myFill.above:i,h.seg.myFill.above=x?!h.seg.myFill.below:h.seg.myFill.below;else if(null===h.seg.otherFill)v=g?h.primary===g.primary?g.seg.otherFill.above:g.seg.myFill.above:h.primary?o:i,h.seg.otherFill={above:v,below:v};r&amp;&amp;r.status(h.seg,!!d&amp;&amp;d.seg,!!g&amp;&amp;g.seg),h.other.status=p.insert(n.node({ev:h}))}else{var b=h.status;if(null===b)throw new Error(&quot;PolyBool: Zero-length segment detected; your epsilon is probably too small or too large&quot;);if(s.exists(b.prev)&amp;&amp;s.exists(b.next)&amp;&amp;u(b.prev.ev,b.next.ev),r&amp;&amp;r.statusRemove(b.ev.seg),b.remove(),!h.primary){var _=h.seg.myFill;h.seg.myFill=h.seg.otherFill,h.seg.otherFill=_}f.push(h.seg)}a.getHead().remove()}return r&amp;&amp;r.done(),f}return t?{addRegion:function(t){for(var n,i,a,o=t[t.length-1],l=0;l&lt;t.length;l++){n=o,o=t[l];var c=e.pointsCompare(n,o);0!==c&amp;&amp;s((i=c&lt;0?n:o,a=c&lt;0?o:n,{id:r?r.segmentId():-1,start:i,end:a,myFill:{above:null,below:null},otherFill:null}),!0)}},calculate:function(t){return c(t,!1)}}:{calculate:function(t,e,r,n){return t.forEach((function(t){s(i(t.start,t.end,t),!0)})),r.forEach((function(t){s(i(t.start,t.end,t),!1)})),c(e,n)}}}},{&quot;./linked-list&quot;:522}],522:[function(t,e,r){e.exports={create:function(){var t={root:{root:!0,next:null},exists:function(e){return null!==e&amp;&amp;e!==t.root},isEmpty:function(){return null===t.root.next},getHead:function(){return t.root.next},insertBefore:function(e,r){for(var n=t.root,i=t.root.next;null!==i;){if(r(i))return e.prev=i.prev,e.next=i,i.prev.next=e,void(i.prev=e);n=i,i=i.next}n.next=e,e.prev=n,e.next=null},findTransition:function(e){for(var r=t.root,n=t.root.next;null!==n&amp;&amp;!e(n);)r=n,n=n.next;return{before:r===t.root?null:r,after:n,insert:function(t){return t.prev=r,t.next=n,r.next=t,null!==n&amp;&amp;(n.prev=t),t}}}};return t},node:function(t){return t.prev=null,t.next=null,t.remove=function(){t.prev.next=t.next,t.next&amp;&amp;(t.next.prev=t.prev),t.prev=null,t.next=null},t}}},{}],523:[function(t,e,r){e.exports=function(t,e,r){var n=[],i=[];return t.forEach((function(t){var a=t.start,o=t.end;if(e.pointsSame(a,o))console.warn(&quot;PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large&quot;);else{r&amp;&amp;r.chainStart(t);for(var s={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},c=s,u=0;u&lt;n.length;u++){var f=(m=n[u])[0],h=(m[1],m[m.length-1]);m[m.length-2];if(e.pointsSame(f,a)){if(k(u,!0,!0))break}else if(e.pointsSame(f,o)){if(k(u,!0,!1))break}else if(e.pointsSame(h,a)){if(k(u,!1,!0))break}else if(e.pointsSame(h,o)&amp;&amp;k(u,!1,!1))break}if(c===s)return n.push([a,o]),void(r&amp;&amp;r.chainNew(a,o));if(c===l){r&amp;&amp;r.chainMatch(s.index);var p=s.index,d=s.matches_pt1?o:a,g=s.matches_head,m=n[p],v=g?m[0]:m[m.length-1],y=g?m[1]:m[m.length-2],x=g?m[m.length-1]:m[0],b=g?m[m.length-2]:m[1];return e.pointsCollinear(y,v,d)&amp;&amp;(g?(r&amp;&amp;r.chainRemoveHead(s.index,d),m.shift()):(r&amp;&amp;r.chainRemoveTail(s.index,d),m.pop()),v=y),e.pointsSame(x,d)?(n.splice(p,1),e.pointsCollinear(b,x,v)&amp;&amp;(g?(r&amp;&amp;r.chainRemoveTail(s.index,v),m.pop()):(r&amp;&amp;r.chainRemoveHead(s.index,v),m.shift())),r&amp;&amp;r.chainClose(s.index),void i.push(m)):void(g?(r&amp;&amp;r.chainAddHead(s.index,d),m.unshift(d)):(r&amp;&amp;r.chainAddTail(s.index,d),m.push(d)))}var _=s.index,w=l.index;r&amp;&amp;r.chainConnect(_,w);var T=n[_].length&lt;n[w].length;s.matches_head?l.matches_head?T?(M(_),A(_,w)):(M(w),A(w,_)):A(w,_):l.matches_head?A(_,w):T?(M(_),A(w,_)):(M(w),A(_,w))}function k(t,e,r){return c.index=t,c.matches_head=e,c.matches_pt1=r,c===s?(c=l,!1):(c=null,!0)}function M(t){r&amp;&amp;r.chainReverse(t),n[t].reverse()}function A(t,i){var a=n[t],o=n[i],s=a[a.length-1],l=a[a.length-2],c=o[0],u=o[1];e.pointsCollinear(l,s,c)&amp;&amp;(r&amp;&amp;r.chainRemoveTail(t,s),a.pop(),s=l),e.pointsCollinear(s,c,u)&amp;&amp;(r&amp;&amp;r.chainRemoveHead(i,c),o.shift()),r&amp;&amp;r.chainJoin(t,i),n[t]=a.concat(o),n.splice(i,1)}})),i}},{}],524:[function(t,e,r){function n(t,e,r){var n=[];return t.forEach((function(t){var i=(t.myFill.above?8:0)+(t.myFill.below?4:0)+(t.otherFill&amp;&amp;t.otherFill.above?2:0)+(t.otherFill&amp;&amp;t.otherFill.below?1:0);0!==e[i]&amp;&amp;n.push({id:r?r.segmentId():-1,start:t.start,end:t.end,myFill:{above:1===e[i],below:2===e[i]},otherFill:null})})),r&amp;&amp;r.selected(n),n}var i={union:function(t,e){return n(t,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],e)},intersect:function(t,e){return n(t,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],e)},difference:function(t,e){return n(t,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],e)},differenceRev:function(t,e){return n(t,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],e)},xor:function(t,e){return n(t,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],e)}};e.exports=i},{}],525:[function(t,e,r){&quot;use strict&quot;;var n=new Float64Array(4),i=new Float64Array(4),a=new Float64Array(4);e.exports=function(t,e,r,o,s){n.length&lt;o.length&amp;&amp;(n=new Float64Array(o.length),i=new Float64Array(o.length),a=new Float64Array(o.length));for(var l=0;l&lt;o.length;++l)n[l]=t[l]-o[l],i[l]=e[l]-t[l],a[l]=r[l]-t[l];var c=0,u=0,f=0,h=0,p=0,d=0;for(l=0;l&lt;o.length;++l){var g=i[l],m=a[l],v=n[l];c+=g*g,u+=g*m,f+=m*m,h+=v*g,p+=v*m,d+=v*v}var y,x,b,_,w,T=Math.abs(c*f-u*u),k=u*p-f*h,M=u*h-c*p;if(k+M&lt;=T)if(k&lt;0)M&lt;0&amp;&amp;h&lt;0?(M=0,-h&gt;=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d):(k=0,p&gt;=0?(M=0,y=d):-p&gt;=f?(M=1,y=f+2*p+d):y=p*(M=-p/f)+d);else if(M&lt;0)M=0,h&gt;=0?(k=0,y=d):-h&gt;=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d;else{var A=1/T;y=(k*=A)*(c*k+u*(M*=A)+2*h)+M*(u*k+f*M+2*p)+d}else k&lt;0?(b=f+p)&gt;(x=u+h)?(_=b-x)&gt;=(w=c-2*u+f)?(k=1,M=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(M=1-k)+2*h)+M*(u*k+f*M+2*p)+d:(k=0,b&lt;=0?(M=1,y=f+2*p+d):p&gt;=0?(M=0,y=d):y=p*(M=-p/f)+d):M&lt;0?(b=c+h)&gt;(x=u+p)?(_=b-x)&gt;=(w=c-2*u+f)?(M=1,k=0,y=f+2*p+d):y=(k=1-(M=_/w))*(c*k+u*M+2*h)+M*(u*k+f*M+2*p)+d:(M=0,b&lt;=0?(k=1,y=c+2*h+d):h&gt;=0?(k=0,y=d):y=h*(k=-h/c)+d):(_=f+p-u-h)&lt;=0?(k=0,M=1,y=f+2*p+d):_&gt;=(w=c-2*u+f)?(k=1,M=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(M=1-k)+2*h)+M*(u*k+f*M+2*p)+d;var S=1-k-M;for(l=0;l&lt;o.length;++l)s[l]=S*t[l]+k*e[l]+M*r[l];return y&lt;0?0:y}},{}],526:[function(t,e,r){var n,i,a=e.exports={};function o(){throw new Error(&quot;setTimeout has not been defined&quot;)}function s(){throw new Error(&quot;clearTimeout has not been defined&quot;)}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&amp;&amp;setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n=&quot;function&quot;==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i=&quot;function&quot;==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,u=[],f=!1,h=-1;function p(){f&amp;&amp;c&amp;&amp;(f=!1,c.length?u=c.concat(u):h=-1,u.length&amp;&amp;d())}function d(){if(!f){var t=l(p);f=!0;for(var e=u.length;e;){for(c=u,u=[];++h&lt;e;)c&amp;&amp;c[h].run();h=-1,e=u.length}c=null,f=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&amp;&amp;clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function m(){}a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length&gt;1)for(var r=1;r&lt;arguments.length;r++)e[r-1]=arguments[r];u.push(new g(t,e)),1!==u.length||f||l(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},a.title=&quot;browser&quot;,a.browser=!0,a.env={},a.argv=[],a.version=&quot;&quot;,a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(t){return[]},a.binding=function(t){throw new Error(&quot;process.binding is not supported&quot;)},a.cwd=function(){return&quot;/&quot;},a.chdir=function(t){throw new Error(&quot;process.chdir is not supported&quot;)},a.umask=function(){return 0}},{}],527:[function(t,e,r){e.exports=t(&quot;gl-quat/slerp&quot;)},{&quot;gl-quat/slerp&quot;:325}],528:[function(t,e,r){(function(r){(function(){for(var n=t(&quot;performance-now&quot;),i=&quot;undefined&quot;==typeof window?r:window,a=[&quot;moz&quot;,&quot;webkit&quot;],o=&quot;AnimationFrame&quot;,s=i[&quot;request&quot;+o],l=i[&quot;cancel&quot;+o]||i[&quot;cancelRequest&quot;+o],c=0;!s&amp;&amp;c&lt;a.length;c++)s=i[a[c]+&quot;Request&quot;+o],l=i[a[c]+&quot;Cancel&quot;+o]||i[a[c]+&quot;CancelRequest&quot;+o];if(!s||!l){var u=0,f=0,h=[];s=function(t){if(0===h.length){var e=n(),r=Math.max(0,1e3/60-(e-u));u=r+e,setTimeout((function(){var t=h.slice(0);h.length=0;for(var e=0;e&lt;t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(r))}return h.push({handle:++f,callback:t,cancelled:!1}),f},l=function(t){for(var e=0;e&lt;h.length;e++)h[e].handle===t&amp;&amp;(h[e].cancelled=!0)}}e.exports=function(t){return s.call(i,t)},e.exports.cancel=function(){l.apply(i,arguments)},e.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=s,t.cancelAnimationFrame=l}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;performance-now&quot;:508}],529:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat/add&quot;);e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a&lt;r;++a)i[a]=n(t[a],e[a]);return i}},{&quot;big-rat/add&quot;:80}],530:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=new Array(t.length),r=0;r&lt;t.length;++r)e[r]=n(t[r]);return e};var n=t(&quot;big-rat&quot;)},{&quot;big-rat&quot;:83}],531:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat&quot;),i=t(&quot;big-rat/mul&quot;);e.exports=function(t,e){for(var r=n(e),a=t.length,o=new Array(a),s=0;s&lt;a;++s)o[s]=i(t[s],r);return o}},{&quot;big-rat&quot;:83,&quot;big-rat/mul&quot;:92}],532:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat/sub&quot;);e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a&lt;r;++a)i[a]=n(t[a],e[a]);return i}},{&quot;big-rat/sub&quot;:94}],533:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;compare-cell&quot;),i=t(&quot;compare-oriented-cell&quot;),a=t(&quot;cell-orientation&quot;);e.exports=function(t){t.sort(i);for(var e=t.length,r=0,o=0;o&lt;e;++o){var s=t[o],l=a(s);if(0!==l){if(r&gt;0){var c=t[r-1];if(0===n(s,c)&amp;&amp;a(c)!==l){r-=1;continue}}t[r++]=s}}return t.length=r,t}},{&quot;cell-orientation&quot;:117,&quot;compare-cell&quot;:133,&quot;compare-oriented-cell&quot;:134}],534:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;array-bounds&quot;),i=t(&quot;color-normalize&quot;),a=t(&quot;update-diff&quot;),o=t(&quot;pick-by-alias&quot;),s=t(&quot;object-assign&quot;),l=t(&quot;flatten-vertex-data&quot;),c=t(&quot;to-float32&quot;),u=c.float32,f=c.fract32;e.exports=function(t,e){&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):e=t;e.length&amp;&amp;(e.positions=e);if(!(t=e.regl).hasExtension(&quot;ANGLE_instanced_arrays&quot;))throw Error(&quot;regl-error2d: `ANGLE_instanced_arrays` extension should be enabled&quot;);var r,c,p,d,g,m,v=t._gl,y={color:&quot;black&quot;,capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},x=[];return d=t.buffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:new Uint8Array(0)}),c=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),p=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),g=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),m=t.buffer({usage:&quot;static&quot;,type:&quot;float&quot;,data:h}),T(e),r=t({vert:&quot;\n\t\tprecision highp float;\n\n\t\tattribute vec2 position, positionFract;\n\t\tattribute vec4 error;\n\t\tattribute vec4 color;\n\n\t\tattribute vec2 direction, lineOffset, capOffset;\n\n\t\tuniform vec4 viewport;\n\t\tuniform float lineWidth, capSize;\n\t\tuniform vec2 scale, scaleFract, translate, translateFract;\n\n\t\tvarying vec4 fragColor;\n\n\t\tvoid main() {\n\t\t\tfragColor = color / 255.;\n\n\t\t\tvec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;\n\n\t\t\tvec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;\n\n\t\t\tvec2 position = position + dxy;\n\n\t\t\tvec2 pos = (position + translate) * scale\n\t\t\t\t+ (positionFract + translateFract) * scale\n\t\t\t\t+ (position + translate) * scaleFract\n\t\t\t\t+ (positionFract + translateFract) * scaleFract;\n\n\t\t\tpos += pixelOffset / viewport.zw;\n\n\t\t\tgl_Position = vec4(pos * 2. - 1., 0, 1);\n\t\t}\n\t\t&quot;,frag:&quot;\n\t\tprecision highp float;\n\n\t\tvarying vec4 fragColor;\n\n\t\tuniform float opacity;\n\n\t\tvoid main() {\n\t\t\tgl_FragColor = fragColor;\n\t\t\tgl_FragColor.a *= opacity;\n\t\t}\n\t\t&quot;,uniforms:{range:t.prop(&quot;range&quot;),lineWidth:t.prop(&quot;lineWidth&quot;),capSize:t.prop(&quot;capSize&quot;),opacity:t.prop(&quot;opacity&quot;),scale:t.prop(&quot;scale&quot;),translate:t.prop(&quot;translate&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{color:{buffer:d,offset:function(t,e){return 4*e.offset},divisor:1},position:{buffer:c,offset:function(t,e){return 8*e.offset},divisor:1},positionFract:{buffer:p,offset:function(t,e){return 8*e.offset},divisor:1},error:{buffer:g,offset:function(t,e){return 16*e.offset},divisor:1},direction:{buffer:m,stride:24,offset:0},lineOffset:{buffer:m,stride:24,offset:8},capOffset:{buffer:m,stride:24,offset:16}},primitive:&quot;triangles&quot;,blend:{enable:!0,color:[0,0,0,0],equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},depth:{enable:!1},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;),stencil:!1,instances:t.prop(&quot;count&quot;),count:h.length}),s(b,{update:T,draw:_,destroy:k,regl:t,gl:v,canvas:v.canvas,groups:x}),b;function b(t){t?T(t):null===t&amp;&amp;k(),_()}function _(e){if(&quot;number&quot;==typeof e)return w(e);e&amp;&amp;!Array.isArray(e)&amp;&amp;(e=[e]),t._refresh(),x.forEach((function(t,r){t&amp;&amp;(e&amp;&amp;(e[r]?t.draw=!0:t.draw=!1),t.draw?w(r):t.draw=!0)}))}function w(t){&quot;number&quot;==typeof t&amp;&amp;(t=x[t]),null!=t&amp;&amp;t&amp;&amp;t.count&amp;&amp;t.color&amp;&amp;t.opacity&amp;&amp;t.positions&amp;&amp;t.positions.length&gt;1&amp;&amp;(t.scaleRatio=[t.scale[0]*t.viewport.width,t.scale[1]*t.viewport.height],r(t),t.after&amp;&amp;t.after(t))}function T(t){if(t){null!=t.length?&quot;number&quot;==typeof t[0]&amp;&amp;(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var e=0,r=0;if(b.groups=x=t.map((function(t,c){var u=x[c];return t?(&quot;function&quot;==typeof t?t={after:t}:&quot;number&quot;==typeof t[0]&amp;&amp;(t={positions:t}),t=o(t,{color:&quot;color colors fill&quot;,capSize:&quot;capSize cap capsize cap-size&quot;,lineWidth:&quot;lineWidth line-width width line thickness&quot;,opacity:&quot;opacity alpha&quot;,range:&quot;range dataBox&quot;,viewport:&quot;viewport viewBox&quot;,errors:&quot;errors error&quot;,positions:&quot;positions position data points&quot;}),u||(x[c]=u={id:c,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},t=s({},y,t)),a(u,t,[{lineWidth:function(t){return.5*+t},capSize:function(t){return.5*+t},opacity:parseFloat,errors:function(t){return t=l(t),r+=t.length,t},positions:function(t,r){return t=l(t,&quot;float64&quot;),r.count=Math.floor(t.length/2),r.bounds=n(t,2),r.offset=e,e+=r.count,t}},{color:function(t,e){var r=e.count;if(t||(t=&quot;transparent&quot;),!Array.isArray(t)||&quot;number&quot;==typeof t[0]){var n=t;t=Array(r);for(var a=0;a&lt;r;a++)t[a]=n}if(t.length&lt;r)throw Error(&quot;Not enough colors&quot;);for(var o=new Uint8Array(4*r),s=0;s&lt;r;s++){var l=i(t[s],&quot;uint8&quot;);o.set(l,4*s)}return o},range:function(t,e,r){var n=e.bounds;return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=f(e.scale),e.translateFract=f(e.translate),t},viewport:function(t){var e;return Array.isArray(t)?e={x:t[0],y:t[1],width:t[2]-t[0],height:t[3]-t[1]}:t?(e={x:t.x||t.left||0,y:t.y||t.top||0},t.right?e.width=t.right-e.x:e.width=t.w||t.width||0,t.bottom?e.height=t.bottom-e.y:e.height=t.h||t.height||0):e={x:0,y:0,width:v.drawingBufferWidth,height:v.drawingBufferHeight},e}}]),u):u})),e||r){var h=x.reduce((function(t,e,r){return t+(e?e.count:0)}),0),m=new Float64Array(2*h),_=new Uint8Array(4*h),w=new Float32Array(4*h);x.forEach((function(t,e){if(t){var r=t.positions,n=t.count,i=t.offset,a=t.color,o=t.errors;n&amp;&amp;(_.set(a,4*i),w.set(o,4*i),m.set(r,2*i))}})),c(u(m)),p(f(m)),d(_),g(w)}}}function k(){c.destroy(),p.destroy(),d.destroy(),g.destroy(),m.destroy()}};var h=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]]},{&quot;array-bounds&quot;:70,&quot;color-normalize&quot;:125,&quot;flatten-vertex-data&quot;:244,&quot;object-assign&quot;:499,&quot;pick-by-alias&quot;:511,&quot;to-float32&quot;:577,&quot;update-diff&quot;:599}],535:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-normalize&quot;),i=t(&quot;array-bounds&quot;),a=t(&quot;object-assign&quot;),o=t(&quot;glslify&quot;),s=t(&quot;pick-by-alias&quot;),l=t(&quot;flatten-vertex-data&quot;),c=t(&quot;earcut&quot;),u=t(&quot;array-normalize&quot;),f=t(&quot;to-float32&quot;),h=f.float32,p=f.fract32,d=t(&quot;es6-weak-map&quot;),g=t(&quot;parse-rect&quot;);function m(t,e){if(!(this instanceof m))return new m(t,e);if(&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):e=t,e.length&amp;&amp;(e.positions=e),!(t=e.regl).hasExtension(&quot;ANGLE_instanced_arrays&quot;))throw Error(&quot;regl-error2d: `ANGLE_instanced_arrays` extension should be enabled&quot;);this.gl=t._gl,this.regl=t,this.passes=[],this.shaders=m.shaders.has(t)?m.shaders.get(t):m.shaders.set(t,m.createShaders(t)).get(t),this.update(e)}e.exports=m,m.dashMult=2,m.maxPatternLength=256,m.precisionThreshold=3e6,m.maxPoints=1e4,m.maxLines=2048,m.shaders=new d,m.createShaders=function(t){var e,r=t.buffer({usage:&quot;static&quot;,type:&quot;float&quot;,data:[0,1,0,0,1,1,1,0]}),n={primitive:&quot;triangle strip&quot;,instances:t.prop(&quot;count&quot;),count:4,offset:0,uniforms:{miterMode:function(t,e){return&quot;round&quot;===e.join?2:1},miterLimit:t.prop(&quot;miterLimit&quot;),scale:t.prop(&quot;scale&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),translate:t.prop(&quot;translate&quot;),thickness:t.prop(&quot;thickness&quot;),dashPattern:t.prop(&quot;dashTexture&quot;),opacity:t.prop(&quot;opacity&quot;),pixelRatio:t.context(&quot;pixelRatio&quot;),id:t.prop(&quot;id&quot;),dashSize:t.prop(&quot;dashLength&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]},depth:t.prop(&quot;depth&quot;)},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},depth:{enable:function(t,e){return!e.overlay}},stencil:{enable:!1},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;)},i=t(a({vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;\nattribute vec4 color;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvec2 project(vec2 position, vec2 positionFract, vec2 scale, vec2 scaleFract, vec2 translate, vec2 translateFract) {\n\t// the order is important\n\treturn position * scale + translate\n       + positionFract * scale + translateFract\n       + position * scaleFract\n       + positionFract * scaleFract;\n}\n\nvoid main() {\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineOffset = lineTop * 2. - 1.;\n\n\tvec2 diff = (bCoord + bCoordFract - aCoord - aCoordFract);\n\ttangent = normalize(diff * scale * viewport.zw);\n\tvec2 normal = vec2(-tangent.y, tangent.x);\n\n\tvec2 position = project(aCoord, aCoordFract, scale, scaleFract, translate, translateFract) * lineStart\n\t\t+ project(bCoord, bCoordFract, scale, scaleFract, translate, translateFract) * lineEnd\n\n\t\t+ thickness * normal * .5 * lineOffset / viewport.zw;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\n\nuniform float dashSize, pixelRatio, thickness, opacity, id;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvoid main() {\n\tfloat alpha = 1.;\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n&quot;]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:16,divisor:1},aCoordFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:8,divisor:1},bCoordFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:16,divisor:1},color:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:0,divisor:1}}},n));try{e=t(a({cull:{enable:!0,face:&quot;back&quot;},vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, nextCoord, prevCoord;\nattribute vec4 aColor, bColor;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, translate;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\nuniform float miterLimit, miterMode;\n\nvarying vec4 fragColor;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 tangent;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nconst float REVERSE_THRESHOLD = -.875;\nconst float MIN_DIFF = 1e-6;\n\n// TODO: possible optimizations: avoid overcalculating all for vertices and calc just one instead\n// TODO: precalculate dot products, normalize things beforehead etc.\n// TODO: refactor to rectangular algorithm\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nbool isNaN( float val ){\n  return ( val &lt; 0.0 || 0.0 &lt; val || val == 0.0 ) ? false : true;\n}\n\nvoid main() {\n\tvec2 aCoord = aCoord, bCoord = bCoord, prevCoord = prevCoord, nextCoord = nextCoord;\n\n  vec2 adjustedScale;\n  adjustedScale.x = (abs(scale.x) &lt; MIN_DIFF) ? MIN_DIFF : scale.x;\n  adjustedScale.y = (abs(scale.y) &lt; MIN_DIFF) ? MIN_DIFF : scale.y;\n\n  vec2 scaleRatio = adjustedScale * viewport.zw;\n\tvec2 normalWidth = thickness / scaleRatio;\n\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineBot = 1. - lineTop;\n\n\tfragColor = (lineStart * aColor + lineEnd * bColor) / 255.;\n\n\tif (isNaN(aCoord.x) || isNaN(aCoord.y) || isNaN(bCoord.x) || isNaN(bCoord.y)) return;\n\n\tif (aCoord == prevCoord) prevCoord = aCoord + normalize(bCoord - aCoord);\n\tif (bCoord == nextCoord) nextCoord = bCoord - normalize(bCoord - aCoord);\n\n\tvec2 prevDiff = aCoord - prevCoord;\n\tvec2 currDiff = bCoord - aCoord;\n\tvec2 nextDiff = nextCoord - bCoord;\n\n\tvec2 prevTangent = normalize(prevDiff * scaleRatio);\n\tvec2 currTangent = normalize(currDiff * scaleRatio);\n\tvec2 nextTangent = normalize(nextDiff * scaleRatio);\n\n\tvec2 prevNormal = vec2(-prevTangent.y, prevTangent.x);\n\tvec2 currNormal = vec2(-currTangent.y, currTangent.x);\n\tvec2 nextNormal = vec2(-nextTangent.y, nextTangent.x);\n\n\tvec2 startJoinDirection = normalize(prevTangent - currTangent);\n\tvec2 endJoinDirection = normalize(currTangent - nextTangent);\n\n\t// collapsed/unidirectional segment cases\n\t// FIXME: there should be more elegant solution\n\tvec2 prevTanDiff = abs(prevTangent - currTangent);\n\tvec2 nextTanDiff = abs(nextTangent - currTangent);\n\tif (max(prevTanDiff.x, prevTanDiff.y) &lt; MIN_DIFF) {\n\t\tstartJoinDirection = currNormal;\n\t}\n\tif (max(nextTanDiff.x, nextTanDiff.y) &lt; MIN_DIFF) {\n\t\tendJoinDirection = currNormal;\n\t}\n\tif (aCoord == bCoord) {\n\t\tendJoinDirection = startJoinDirection;\n\t\tcurrNormal = prevNormal;\n\t\tcurrTangent = prevTangent;\n\t}\n\n\ttangent = currTangent;\n\n\t//calculate join shifts relative to normals\n\tfloat startJoinShift = dot(currNormal, startJoinDirection);\n\tfloat endJoinShift = dot(currNormal, endJoinDirection);\n\n\tfloat startMiterRatio = abs(1. / startJoinShift);\n\tfloat endMiterRatio = abs(1. / endJoinShift);\n\n\tvec2 startJoin = startJoinDirection * startMiterRatio;\n\tvec2 endJoin = endJoinDirection * endMiterRatio;\n\n\tvec2 startTopJoin, startBotJoin, endTopJoin, endBotJoin;\n\tstartTopJoin = sign(startJoinShift) * startJoin * .5;\n\tstartBotJoin = -startTopJoin;\n\n\tendTopJoin = sign(endJoinShift) * endJoin * .5;\n\tendBotJoin = -endTopJoin;\n\n\tvec2 aTopCoord = aCoord + normalWidth * startTopJoin;\n\tvec2 bTopCoord = bCoord + normalWidth * endTopJoin;\n\tvec2 aBotCoord = aCoord + normalWidth * startBotJoin;\n\tvec2 bBotCoord = bCoord + normalWidth * endBotJoin;\n\n\t//miter anti-clipping\n\tfloat baClipping = distToLine(bCoord, aCoord, aBotCoord) / dot(normalize(normalWidth * endBotJoin), normalize(normalWidth.yx * vec2(-startBotJoin.y, startBotJoin.x)));\n\tfloat abClipping = distToLine(aCoord, bCoord, bTopCoord) / dot(normalize(normalWidth * startBotJoin), normalize(normalWidth.yx * vec2(-endBotJoin.y, endBotJoin.x)));\n\n\t//prevent close to reverse direction switch\n\tbool prevReverse = dot(currTangent, prevTangent) &lt;= REVERSE_THRESHOLD &amp;&amp; abs(dot(currTangent, prevNormal)) * min(length(prevDiff), length(currDiff)) &lt;  length(normalWidth * currNormal);\n\tbool nextReverse = dot(currTangent, nextTangent) &lt;= REVERSE_THRESHOLD &amp;&amp; abs(dot(currTangent, nextNormal)) * min(length(nextDiff), length(currDiff)) &lt;  length(normalWidth * currNormal);\n\n\tif (prevReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * startJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / startMiterRatio, 1.);\n\t\taBotCoord = aCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\taTopCoord = aCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!nextReverse &amp;&amp; baClipping &gt; 0. &amp;&amp; baClipping &lt; length(normalWidth * endBotJoin)) {\n\t\t//handle miter clipping\n\t\tbTopCoord -= normalWidth * endTopJoin;\n\t\tbTopCoord += normalize(endTopJoin * normalWidth) * baClipping;\n\t}\n\n\tif (nextReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);\n\t\tbBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\tbTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!prevReverse &amp;&amp; abClipping &gt; 0. &amp;&amp; abClipping &lt; length(normalWidth * startBotJoin)) {\n\t\t//handle miter clipping\n\t\taBotCoord -= normalWidth * startBotJoin;\n\t\taBotCoord += normalize(startBotJoin * normalWidth) * abClipping;\n\t}\n\n\tvec2 aTopPosition = (aTopCoord) * adjustedScale + translate;\n\tvec2 aBotPosition = (aBotCoord) * adjustedScale + translate;\n\n\tvec2 bTopPosition = (bTopCoord) * adjustedScale + translate;\n\tvec2 bBotPosition = (bBotCoord) * adjustedScale + translate;\n\n\t//position is normalized 0..1 coord on the screen\n\tvec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;\n\n\tstartCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\tendCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\n\tgl_Position = vec4(position  * 2.0 - 1.0, depth, 1);\n\n\tenableStartMiter = step(dot(currTangent, prevTangent), .5);\n\tenableEndMiter = step(dot(currTangent, nextTangent), .5);\n\n\t//bevel miter cutoffs\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n\n\t//round miter cutoffs\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\nuniform float dashSize, pixelRatio, thickness, opacity, id, miterMode;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nvoid main() {\n\tfloat alpha = 1., distToStart, distToEnd;\n\tfloat cutoff = thickness * .5;\n\n\t//bevel miter\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart &lt; -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToStart + 1., 0.), 1.);\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd &lt; -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToEnd + 1., 0.), 1.);\n\t\t}\n\t}\n\n\t// round miter\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart &lt; 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - startCoord);\n\n\t\t\t\tif(radius &gt; cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd &lt; 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - endCoord);\n\n\t\t\t\tif(radius &gt; cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\t}\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n&quot;]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:0,divisor:1},bColor:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:4,divisor:1},prevCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:0,divisor:1},aCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:16,divisor:1},nextCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:24,divisor:1}}},n))}catch(t){e=i}return{fill:t({primitive:&quot;triangle&quot;,elements:function(t,e){return e.triangles},offset:0,vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 position, positionFract;\n\nuniform vec4 color;\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio, id;\nuniform vec4 viewport;\nuniform float opacity;\n\nvarying vec4 fragColor;\n\nconst float MAX_LINES = 256.;\n\nvoid main() {\n\tfloat depth = (MAX_LINES - 4. - id) / (MAX_LINES);\n\n\tvec2 position = position * scale + translate\n       + positionFract * scale + translateFract\n       + position * scaleFract\n       + positionFract * scaleFract;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n\tfragColor.a *= opacity;\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n\tgl_FragColor = fragColor;\n}\n&quot;]),uniforms:{scale:t.prop(&quot;scale&quot;),color:t.prop(&quot;fill&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),translate:t.prop(&quot;translate&quot;),opacity:t.prop(&quot;opacity&quot;),pixelRatio:t.context(&quot;pixelRatio&quot;),id:t.prop(&quot;id&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{position:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8},positionFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:8}},blend:n.blend,depth:{enable:!1},scissor:n.scissor,stencil:n.stencil,viewport:n.viewport}),rect:i,miter:e}},m.defaults={dashes:null,join:&quot;miter&quot;,miterLimit:1,thickness:10,cap:&quot;square&quot;,color:&quot;black&quot;,opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},m.prototype.render=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];e.length&amp;&amp;(t=this).update.apply(t,e),this.draw()},m.prototype.draw=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];return(e.length?e:this.passes).forEach((function(e,r){var n;if(e&amp;&amp;Array.isArray(e))return(n=t).draw.apply(n,e);&quot;number&quot;==typeof e&amp;&amp;(e=t.passes[e]),e&amp;&amp;e.count&gt;1&amp;&amp;e.opacity&amp;&amp;(t.regl._refresh(),e.fill&amp;&amp;e.triangles&amp;&amp;e.triangles.length&gt;2&amp;&amp;t.shaders.fill(e),e.thickness&amp;&amp;(e.scale[0]*e.viewport.width&gt;m.precisionThreshold||e.scale[1]*e.viewport.height&gt;m.precisionThreshold||&quot;rect&quot;===e.join||!e.join&amp;&amp;(e.thickness&lt;=2||e.count&gt;=m.maxPoints)?t.shaders.rect(e):t.shaders.miter(e)))})),this},m.prototype.update=function(t){var e=this;if(t){null!=t.length?&quot;number&quot;==typeof t[0]&amp;&amp;(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var r=this.regl,o=this.gl;if(t.forEach((function(t,f){var d=e.passes[f];if(void 0!==t)if(null!==t){if(&quot;number&quot;==typeof t[0]&amp;&amp;(t={positions:t}),t=s(t,{positions:&quot;positions points data coords&quot;,thickness:&quot;thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth&quot;,join:&quot;lineJoin linejoin join type mode&quot;,miterLimit:&quot;miterlimit miterLimit&quot;,dashes:&quot;dash dashes dasharray dash-array dashArray&quot;,color:&quot;color colour stroke colors colours stroke-color strokeColor&quot;,fill:&quot;fill fill-color fillColor&quot;,opacity:&quot;alpha opacity&quot;,overlay:&quot;overlay crease overlap intersect&quot;,close:&quot;closed close closed-path closePath&quot;,range:&quot;range dataBox&quot;,viewport:&quot;viewport viewBox&quot;,hole:&quot;holes hole hollow&quot;}),d||(e.passes[f]=d={id:f,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:&quot;linear&quot;,min:&quot;linear&quot;}),colorBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:new Uint8Array}),positionBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array}),positionFractBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array})},t=a({},m.defaults,t)),null!=t.thickness&amp;&amp;(d.thickness=parseFloat(t.thickness)),null!=t.opacity&amp;&amp;(d.opacity=parseFloat(t.opacity)),null!=t.miterLimit&amp;&amp;(d.miterLimit=parseFloat(t.miterLimit)),null!=t.overlay&amp;&amp;(d.overlay=!!t.overlay,f&lt;m.maxLines&amp;&amp;(d.depth=2*(m.maxLines-1-f%m.maxLines)/m.maxLines-1)),null!=t.join&amp;&amp;(d.join=t.join),null!=t.hole&amp;&amp;(d.hole=t.hole),null!=t.fill&amp;&amp;(d.fill=t.fill?n(t.fill,&quot;uint8&quot;):null),null!=t.viewport&amp;&amp;(d.viewport=g(t.viewport)),d.viewport||(d.viewport=g([o.drawingBufferWidth,o.drawingBufferHeight])),null!=t.close&amp;&amp;(d.close=t.close),null===t.positions&amp;&amp;(t.positions=[]),t.positions){var v,y;if(t.positions.x&amp;&amp;t.positions.y){var x=t.positions.x,b=t.positions.y;y=d.count=Math.max(x.length,b.length),v=new Float64Array(2*y);for(var _=0;_&lt;y;_++)v[2*_]=x[_],v[2*_+1]=b[_]}else v=l(t.positions,&quot;float64&quot;),y=d.count=Math.floor(v.length/2);var w=d.bounds=i(v,2);if(d.fill){for(var T=[],k={},M=0,A=0,S=0,E=d.count;A&lt;E;A++){var C=v[2*A],L=v[2*A+1];isNaN(C)||isNaN(L)||null==C||null==L?(C=v[2*M],L=v[2*M+1],k[A]=M):M=A,T[S++]=C,T[S++]=L}for(var I=c(T,d.hole||[]),P=0,z=I.length;P&lt;z;P++)null!=k[I[P]]&amp;&amp;(I[P]=k[I[P]]);d.triangles=I}var O=new Float64Array(v);u(O,2,w);var D=new Float64Array(2*y+6);d.close?v[0]===v[2*y-2]&amp;&amp;v[1]===v[2*y-1]?(D[0]=O[2*y-4],D[1]=O[2*y-3]):(D[0]=O[2*y-2],D[1]=O[2*y-1]):(D[0]=O[0],D[1]=O[1]),D.set(O,2),d.close?v[0]===v[2*y-2]&amp;&amp;v[1]===v[2*y-1]?(D[2*y+2]=O[2],D[2*y+3]=O[3],d.count-=1):(D[2*y+2]=O[0],D[2*y+3]=O[1],D[2*y+4]=O[2],D[2*y+5]=O[3]):(D[2*y+2]=O[2*y-2],D[2*y+3]=O[2*y-1],D[2*y+4]=O[2*y-2],D[2*y+5]=O[2*y-1]),d.positionBuffer(h(D)),d.positionFractBuffer(p(D))}if(t.range?d.range=t.range:d.range||(d.range=d.bounds),(t.range||t.positions)&amp;&amp;d.count){var R=d.bounds,F=R[2]-R[0],B=R[3]-R[1],N=d.range[2]-d.range[0],j=d.range[3]-d.range[1];d.scale=[F/N,B/j],d.translate=[-d.range[0]/N+R[0]/N||0,-d.range[1]/j+R[1]/j||0],d.scaleFract=p(d.scale),d.translateFract=p(d.translate)}if(t.dashes){var U,V=0;if(!t.dashes||t.dashes.length&lt;2)V=1,U=new Uint8Array([255,255,255,255,255,255,255,255]);else{V=0;for(var q=0;q&lt;t.dashes.length;++q)V+=t.dashes[q];U=new Uint8Array(V*m.dashMult);for(var H=0,G=255,Y=0;Y&lt;2;Y++)for(var W=0;W&lt;t.dashes.length;++W){for(var X=0,Z=t.dashes[W]*m.dashMult*.5;X&lt;Z;++X)U[H++]=G;G^=255}}d.dashLength=V,d.dashTexture({channels:1,data:U,width:U.length,height:1,mag:&quot;linear&quot;,min:&quot;linear&quot;},0,0)}if(t.color){var J=d.count,K=t.color;K||(K=&quot;transparent&quot;);var Q=new Uint8Array(4*J+4);if(Array.isArray(K)&amp;&amp;&quot;number&quot;!=typeof K[0]){for(var $=0;$&lt;J;$++){var tt=n(K[$],&quot;uint8&quot;);Q.set(tt,4*$)}Q.set(n(K[0],&quot;uint8&quot;),4*J)}else for(var et=n(K,&quot;uint8&quot;),rt=0;rt&lt;J+1;rt++)Q.set(et,4*rt);d.colorBuffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:Q})}}else e.passes[f]=null})),t.length&lt;this.passes.length){for(var f=t.length;f&lt;this.passes.length;f++){var d=this.passes[f];d&amp;&amp;(d.colorBuffer.destroy(),d.positionBuffer.destroy(),d.dashTexture.destroy())}this.passes.length=t.length}for(var v=[],y=0;y&lt;this.passes.length;y++)null!==this.passes[y]&amp;&amp;v.push(this.passes[y]);return this.passes=v,this}},m.prototype.destroy=function(){return this.passes.forEach((function(t){t.colorBuffer.destroy(),t.positionBuffer.destroy(),t.dashTexture.destroy()})),this.passes.length=0,this}},{&quot;array-bounds&quot;:70,&quot;array-normalize&quot;:71,&quot;color-normalize&quot;:125,earcut:177,&quot;es6-weak-map&quot;:233,&quot;flatten-vertex-data&quot;:244,glslify:536,&quot;object-assign&quot;:499,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511,&quot;to-float32&quot;:577}],536:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],537:[function(t,e,r){&quot;use strict&quot;;function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(&quot;undefined&quot;==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&amp;&amp;(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}(t,e)||a(t,e)||function(){throw new TypeError(&quot;Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.&quot;)}()}function i(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if(&quot;undefined&quot;!=typeof Symbol&amp;&amp;Symbol.iterator in Object(t))return Array.from(t)}(t)||a(t)||function(){throw new TypeError(&quot;Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.&quot;)}()}function a(t,e){if(t){if(&quot;string&quot;==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return&quot;Object&quot;===r&amp;&amp;t.constructor&amp;&amp;(r=t.constructor.name),&quot;Map&quot;===r||&quot;Set&quot;===r?Array.from(t):&quot;Arguments&quot;===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e&gt;t.length)&amp;&amp;(e=t.length);for(var r=0,n=new Array(e);r&lt;e;r++)n[r]=t[r];return n}var s=t(&quot;color-normalize&quot;),l=t(&quot;array-bounds&quot;),c=t(&quot;color-id&quot;),u=t(&quot;@plotly/point-cluster&quot;),f=t(&quot;object-assign&quot;),h=t(&quot;glslify&quot;),p=t(&quot;pick-by-alias&quot;),d=t(&quot;update-diff&quot;),g=t(&quot;flatten-vertex-data&quot;),m=t(&quot;is-iexplorer&quot;),v=t(&quot;to-float32&quot;),y=t(&quot;parse-rect&quot;),x=b;function b(t,e){var r=this;if(!(this instanceof b))return new b(t,e);&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):(e=t,t=null),e&amp;&amp;e.length&amp;&amp;(e.positions=e);var n,i=(t=e.regl)._gl,a=[];this.tooManyColors=m,n=t.texture({data:new Uint8Array(1020),width:255,height:1,type:&quot;uint8&quot;,format:&quot;rgba&quot;,wrapS:&quot;clamp&quot;,wrapT:&quot;clamp&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;}),f(this,{regl:t,gl:i,groups:[],markerCache:[null],markerTextures:[null],palette:a,paletteIds:{},paletteTexture:n,maxColors:255,maxSize:100,canvas:i.canvas}),this.update(e);var o={uniforms:{constPointSize:!!e.constPointSize,pixelRatio:t.context(&quot;pixelRatio&quot;),palette:n,paletteSize:function(t,e){return[r.tooManyColors?0:255,n.height]},scale:t.prop(&quot;scale&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translate:t.prop(&quot;translate&quot;),translateFract:t.prop(&quot;translateFract&quot;),opacity:t.prop(&quot;opacity&quot;),marker:t.prop(&quot;markerTexture&quot;)},attributes:{x:function(t,e){return e.xAttr||{buffer:e.positionBuffer,stride:8,offset:0}},y:function(t,e){return e.yAttr||{buffer:e.positionBuffer,stride:8,offset:4}},xFract:function(t,e){return e.xAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:0}},yFract:function(t,e){return e.yAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:4}},size:function(t,e){return e.size.length?{buffer:e.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(255*e.size/r.maxSize)]}},borderSize:function(t,e){return e.borderSize.length?{buffer:e.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(255*e.borderSize/r.maxSize)]}},colorId:function(t,e){return e.color.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(4*e.color,4*e.color+4):[e.color]}},borderColorId:function(t,e){return e.borderColor.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(4*e.borderColor,4*e.borderColor+4):[e.borderColor]}},isActive:function(t,e){return!0===e.activation?{constant:[1]}:e.activation?e.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;),stencil:{enable:!1},depth:{enable:!1},elements:t.prop(&quot;elements&quot;),count:t.prop(&quot;count&quot;),offset:t.prop(&quot;offset&quot;),primitive:&quot;points&quot;},s=f({},o);s.frag=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragWidth, fragBorderColorLevel, fragColorLevel;\n\nuniform sampler2D marker;\nuniform float opacity;\n\nfloat smoothStep(float x, float y) {\n  return 1.0 / (1.0 + exp(50.0*(x - y)));\n}\n\nvoid main() {\n  float dist = texture2D(marker, gl_PointCoord).r, delta = fragWidth;\n\n  // max-distance alpha\n  if (dist &lt; 0.003) discard;\n\n  // null-border case\n  if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {\n    float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);\n    gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);\n  }\n  else {\n    float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);\n    float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);\n\n    vec4 color = fragBorderColor;\n    color.a *= borderColorAmt;\n    color = mix(color, fragColor, colorAmt);\n    color.a *= opacity;\n\n    gl_FragColor = color;\n  }\n\n}\n&quot;]),s.vert=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform vec2 scale, scaleFract, translate, translateFract, paletteSize;\nuniform float pixelRatio;\nuniform bool constPointSize;\nuniform sampler2D palette;\n\nconst float maxSize = 100.;\nconst float borderLevel = .5;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x &lt; 1.);\n\nvec4 getColor(vec4 id) {\n  return isDirect ? id / 255. : texture2D(palette,\n    vec2(\n      (id.x + .5) / paletteSize.x,\n      (id.y + .5) / paletteSize.y\n    )\n  );\n}\n\nvoid main() {\n  // ignore inactive points\n  if (isActive == 0.) return;\n\n  vec2 position = vec2(x, y);\n  vec2 positionFract = vec2(xFract, yFract);\n\n  vec4 color = getColor(colorId);\n  vec4 borderColor = getColor(borderColorId);\n\n  float size = size * maxSize / 255.;\n  float borderSize = borderSize * maxSize / 255.;\n\n  gl_PointSize = 2. * size * pointSizeScale;\n  fragPointSize = size * pixelRatio;\n\n  vec2 pos = (position + translate) * scale\n      + (positionFract + translateFract) * scale\n      + (position + translate) * scaleFract\n      + (positionFract + translateFract) * scaleFract;\n\n  gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n  fragColor = color;\n  fragBorderColor = borderColor;\n  fragWidth = 1. / gl_PointSize;\n\n  fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);\n  fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);\n}&quot;]),this.drawMarker=t(s);var l=f({},o);l.frag=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\n\nuniform float opacity;\nvarying float fragBorderRadius, fragWidth;\n\nfloat smoothStep(float edge0, float edge1, float x) {\n\tfloat t;\n\tt = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\n\treturn t * t * (3.0 - 2.0 * t);\n}\n\nvoid main() {\n\tfloat radius, alpha = 1.0, delta = fragWidth;\n\n\tradius = length(2.0 * gl_PointCoord.xy - 1.0);\n\n\tif (radius &gt; 1.0 + delta) {\n\t\tdiscard;\n\t}\n\n\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\n\n\tfloat borderRadius = fragBorderRadius;\n\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\n\tvec4 color = mix(fragColor, fragBorderColor, ratio);\n\tcolor.a *= alpha * opacity;\n\tgl_FragColor = color;\n}\n&quot;]),l.vert=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio;\nuniform bool constPointSize;\nuniform sampler2D palette;\nuniform vec2 paletteSize;\n\nconst float maxSize = 100.;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x &lt; 1.);\n\nvec4 getColor(vec4 id) {\n  return isDirect ? id / 255. : texture2D(palette,\n    vec2(\n      (id.x + .5) / paletteSize.x,\n      (id.y + .5) / paletteSize.y\n    )\n  );\n}\n\nvoid main() {\n  // ignore inactive points\n  if (isActive == 0.) return;\n\n  vec2 position = vec2(x, y);\n  vec2 positionFract = vec2(xFract, yFract);\n\n  vec4 color = getColor(colorId);\n  vec4 borderColor = getColor(borderColorId);\n\n  float size = size * maxSize / 255.;\n  float borderSize = borderSize * maxSize / 255.;\n\n  gl_PointSize = (size + borderSize) * pointSizeScale;\n\n  vec2 pos = (position + translate) * scale\n      + (positionFract + translateFract) * scale\n      + (position + translate) * scaleFract\n      + (positionFract + translateFract) * scaleFract;\n\n  gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n  fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\n  fragColor = color;\n  fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\n  fragWidth = 1. / gl_PointSize;\n}\n&quot;]),m&amp;&amp;(l.frag=l.frag.replace(&quot;smoothstep&quot;,&quot;smoothStep&quot;),s.frag=s.frag.replace(&quot;smoothstep&quot;,&quot;smoothStep&quot;)),this.drawCircle=t(l)}b.defaults={color:&quot;black&quot;,borderColor:&quot;transparent&quot;,borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},b.prototype.render=function(){return arguments.length&amp;&amp;this.update.apply(this,arguments),this.draw(),this},b.prototype.draw=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n&lt;e;n++)r[n]=arguments[n];var i=this.groups;if(1===r.length&amp;&amp;Array.isArray(r[0])&amp;&amp;(null===r[0][0]||Array.isArray(r[0][0]))&amp;&amp;(r=r[0]),this.regl._refresh(),r.length)for(var a=0;a&lt;r.length;a++)this.drawItem(a,r[a]);else i.forEach((function(e,r){t.drawItem(r)}));return this},b.prototype.drawItem=function(t,e){var r=this.groups,n=r[t];if(&quot;number&quot;==typeof e&amp;&amp;(t=e,n=r[e],e=null),n&amp;&amp;n.count&amp;&amp;n.opacity){n.activation[0]&amp;&amp;this.drawCircle(this.getMarkerDrawOptions(0,n,e));for(var a=[],o=1;o&lt;n.activation.length;o++)n.activation[o]&amp;&amp;(!0===n.activation[o]||n.activation[o].data.length)&amp;&amp;a.push.apply(a,i(this.getMarkerDrawOptions(o,n,e)));a.length&amp;&amp;this.drawMarker(a)}},b.prototype.getMarkerDrawOptions=function(t,e,r){var i=e.range,a=e.tree,o=e.viewport,s=e.activation,l=e.selectionBuffer,c=e.count;this.regl;if(!a)return r?[f({},e,{markerTexture:this.markerTextures[t],activation:s[t],count:r.length,elements:r,offset:0})]:[f({},e,{markerTexture:this.markerTextures[t],activation:s[t],offset:0})];var u=[],h=a.range(i,{lod:!0,px:[(i[2]-i[0])/o.width,(i[3]-i[1])/o.height]});if(r){for(var p=s[t].data,d=new Uint8Array(c),g=0;g&lt;r.length;g++){var m=r[g];d[m]=p?p[m]:1}l.subdata(d)}for(var v=h.length;v--;){var y=n(h[v],2),x=y[0],b=y[1];u.push(f({},e,{markerTexture:this.markerTextures[t],activation:r?l:s[t],offset:x,count:b-x}))}return u},b.prototype.update=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n&lt;e;n++)r[n]=arguments[n];if(r.length){1===r.length&amp;&amp;Array.isArray(r[0])&amp;&amp;(r=r[0]);var i=this.groups,a=this.gl,o=this.regl,s=this.maxSize,c=this.maxColors,h=this.palette;this.groups=i=r.map((function(e,r){var n=i[r];if(void 0===e)return n;null===e?e={positions:null}:&quot;function&quot;==typeof e?e={ondraw:e}:&quot;number&quot;==typeof e[0]&amp;&amp;(e={positions:e}),null===(e=p(e,{positions:&quot;positions data points&quot;,snap:&quot;snap cluster lod tree&quot;,size:&quot;sizes size radius&quot;,borderSize:&quot;borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline&quot;,color:&quot;colors color fill fill-color fillColor&quot;,borderColor:&quot;borderColors borderColor stroke stroke-color strokeColor&quot;,marker:&quot;markers marker shape&quot;,range:&quot;range dataBox databox&quot;,viewport:&quot;viewport viewPort viewBox viewbox&quot;,opacity:&quot;opacity alpha transparency&quot;,bounds:&quot;bound bounds boundaries limits&quot;,tooManyColors:&quot;tooManyColors palette paletteMode optimizePalette enablePalette&quot;})).positions&amp;&amp;(e.positions=[]),null!=e.tooManyColors&amp;&amp;(t.tooManyColors=e.tooManyColors),n||(i[r]=n={id:r,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;stream&quot;,type:&quot;uint8&quot;}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;uint8&quot;}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;uint8&quot;}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;float&quot;}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;float&quot;})},e=f({},b.defaults,e)),e.positions&amp;&amp;!(&quot;marker&quot;in e)&amp;&amp;(e.marker=n.marker,delete n.marker),e.marker&amp;&amp;!(&quot;positions&quot;in e)&amp;&amp;(e.positions=n.positions,delete n.positions);var m=0,x=0;if(d(n,e,[{snap:!0,size:function(t,e){return null==t&amp;&amp;(t=b.defaults.size),m+=t&amp;&amp;t.length?1:0,t},borderSize:function(t,e){return null==t&amp;&amp;(t=b.defaults.borderSize),m+=t&amp;&amp;t.length?1:0,t},opacity:parseFloat,color:function(e,r){return null==e&amp;&amp;(e=b.defaults.color),e=t.updateColor(e),x++,e},borderColor:function(e,r){return null==e&amp;&amp;(e=b.defaults.borderColor),e=t.updateColor(e),x++,e},bounds:function(t,e,r){return&quot;range&quot;in r||(r.range=null),t},positions:function(t,e,r){var n=e.snap,i=e.positionBuffer,a=e.positionFractBuffer,s=e.selectionBuffer;if(t.x||t.y)return t.x.length?e.xAttr={buffer:o.buffer(t.x),offset:0,stride:4,count:t.x.length}:e.xAttr={buffer:t.x.buffer,offset:4*t.x.offset||0,stride:4*(t.x.stride||1),count:t.x.count},t.y.length?e.yAttr={buffer:o.buffer(t.y),offset:0,stride:4,count:t.y.length}:e.yAttr={buffer:t.y.buffer,offset:4*t.y.offset||0,stride:4*(t.y.stride||1),count:t.y.count},e.count=Math.max(e.xAttr.count,e.yAttr.count),t;t=g(t,&quot;float64&quot;);var c=e.count=Math.floor(t.length/2),f=e.bounds=c?l(t,2):null;if(r.range||e.range||(delete e.range,r.range=f),r.marker||e.marker||(delete e.marker,r.marker=null),n&amp;&amp;(!0===n||c&gt;n)?e.tree=u(t,{bounds:f}):n&amp;&amp;n.length&amp;&amp;(e.tree=n),e.tree){var h={primitive:&quot;points&quot;,usage:&quot;static&quot;,data:e.tree,type:&quot;uint32&quot;};e.elements?e.elements(h):e.elements=o.elements(h)}return i({data:v.float(t),usage:&quot;dynamic&quot;}),a({data:v.fract(t),usage:&quot;dynamic&quot;}),s({data:new Uint8Array(c),type:&quot;uint8&quot;,usage:&quot;stream&quot;}),t}},{marker:function(e,r,n){var i=r.activation;if(i.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),i.length=0,e&amp;&amp;&quot;number&quot;!=typeof e[0]){for(var a=[],s=0,l=Math.min(e.length,r.count);s&lt;l;s++){var c=t.addMarker(e[s]);a[c]||(a[c]=new Uint8Array(r.count)),a[c][s]=1}for(var u=0;u&lt;a.length;u++)if(a[u]){var f={data:a[u],type:&quot;uint8&quot;,usage:&quot;static&quot;};i[u]?i[u](f):i[u]=o.buffer(f),i[u].data=a[u]}}else{i[t.addMarker(e)]=!0}return e},range:function(t,e,r){var n=e.bounds;if(n)return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=v.fract(e.scale),e.translateFract=v.fract(e.translate),t},viewport:function(t){return y(t||[a.drawingBufferWidth,a.drawingBufferHeight])}}]),m){var _=n,w=_.count,T=_.size,k=_.borderSize,M=_.sizeBuffer,A=new Uint8Array(2*w);if(T.length||k.length)for(var S=0;S&lt;w;S++)A[2*S]=Math.round(255*(null==T[S]?T:T[S])/s),A[2*S+1]=Math.round(255*(null==k[S]?k:k[S])/s);M({data:A,usage:&quot;dynamic&quot;})}if(x){var E,C=n,L=C.count,I=C.color,P=C.borderColor,z=C.colorBuffer;if(t.tooManyColors){if(I.length||P.length){E=new Uint8Array(8*L);for(var O=0;O&lt;L;O++){var D=I[O];E[8*O]=h[4*D],E[8*O+1]=h[4*D+1],E[8*O+2]=h[4*D+2],E[8*O+3]=h[4*D+3];var R=P[O];E[8*O+4]=h[4*R],E[8*O+5]=h[4*R+1],E[8*O+6]=h[4*R+2],E[8*O+7]=h[4*R+3]}}}else if(I.length||P.length){E=new Uint8Array(4*L+2);for(var F=0;F&lt;L;F++)null!=I[F]&amp;&amp;(E[4*F]=I[F]%c,E[4*F+1]=Math.floor(I[F]/c)),null!=P[F]&amp;&amp;(E[4*F+2]=P[F]%c,E[4*F+3]=Math.floor(P[F]/c))}z({data:E||new Uint8Array(0),type:&quot;uint8&quot;,usage:&quot;dynamic&quot;})}return n}))}},b.prototype.addMarker=function(t){var e,r=this.markerTextures,n=this.regl,i=this.markerCache,a=null==t?0:i.indexOf(t);if(a&gt;=0)return a;if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)e=t;else{e=new Uint8Array(t.length);for(var o=0,s=t.length;o&lt;s;o++)e[o]=255*t[o]}var l=Math.floor(Math.sqrt(e.length));return a=r.length,i.push(t),r.push(n.texture({channels:1,data:e,radius:l,mag:&quot;linear&quot;,min:&quot;linear&quot;})),a},b.prototype.updateColor=function(t){var e=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(t)||(t=[t]);var i=[];if(&quot;number&quot;==typeof t[0]){var a=[];if(Array.isArray(t))for(var o=0;o&lt;t.length;o+=4)a.push(t.slice(o,o+4));else for(var l=0;l&lt;t.length;l+=4)a.push(t.subarray(l,l+4));t=a}for(var u=0;u&lt;t.length;u++){var f=t[u];f=s(f,&quot;uint8&quot;);var h=c(f,!1);if(null==e[h]){var p=r.length;e[h]=Math.floor(p/4),r[p]=f[0],r[p+1]=f[1],r[p+2]=f[2],r[p+3]=f[3]}i[u]=e[h]}return!this.tooManyColors&amp;&amp;r.length&gt;4*n&amp;&amp;(this.tooManyColors=!0),this.updatePalette(r),1===i.length?i[0]:i},b.prototype.updatePalette=function(t){if(!this.tooManyColors){var e=this.maxColors,r=this.paletteTexture,n=Math.ceil(.25*t.length/e);if(n&gt;1)for(var i=.25*(t=t.slice()).length%e;i&lt;n*e;i++)t.push(0,0,0,0);r.height&lt;n&amp;&amp;r.resize(e,n),r.subimage({width:Math.min(.25*t.length,e),height:n,data:t},0,0)}},b.prototype.destroy=function(){return this.groups.forEach((function(t){t.sizeBuffer.destroy(),t.positionBuffer.destroy(),t.positionFractBuffer.destroy(),t.colorBuffer.destroy(),t.activation.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),t.selectionBuffer.destroy(),t.elements&amp;&amp;t.elements.destroy()})),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),this};var _=t(&quot;object-assign&quot;);e.exports=function(t,e){var r=new x(t,e),n=r.render.bind(r);return _(n,{render:n,update:r.update.bind(r),draw:r.draw.bind(r),destroy:r.destroy.bind(r),regl:r.regl,gl:r.gl,canvas:r.gl.canvas,groups:r.groups,markers:r.markerCache,palette:r.palette}),n}},{&quot;@plotly/point-cluster&quot;:57,&quot;array-bounds&quot;:70,&quot;color-id&quot;:123,&quot;color-normalize&quot;:125,&quot;flatten-vertex-data&quot;:244,glslify:538,&quot;is-iexplorer&quot;:466,&quot;object-assign&quot;:499,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511,&quot;to-float32&quot;:577,&quot;update-diff&quot;:599}],538:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],539:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-scatter2d&quot;),i=t(&quot;pick-by-alias&quot;),a=t(&quot;array-bounds&quot;),o=t(&quot;raf&quot;),s=t(&quot;array-range&quot;),l=t(&quot;parse-rect&quot;),c=t(&quot;flatten-vertex-data&quot;);function u(t,e){if(!(this instanceof u))return new u(t,e);this.traces=[],this.passes={},this.regl=t,this.scatter=n(t),this.canvas=this.scatter.canvas}function f(t,e,r){return(null!=t.id?t.id:t)&lt;&lt;16|(255&amp;e)&lt;&lt;8|255&amp;r}function h(t,e,r){var n,i,a,o,s=t[e],l=t[r];return s.length&gt;2?(s[0],s[2],n=s[1],i=s[3]):s.length?(n=s[0],i=s[1]):(s.x,n=s.y,s.x+s.width,i=s.y+s.height),l.length&gt;2?(a=l[0],o=l[2],l[1],l[3]):l.length?(a=l[0],o=l[1]):(a=l.x,l.y,o=l.x+l.width,l.y+l.height),[a,n,o,i]}function p(t){if(&quot;number&quot;==typeof t)return[t,t,t,t];if(2===t.length)return[t[0],t[1],t[0],t[1]];var e=l(t);return[e.x,e.y,e.x+e.width,e.y+e.height]}e.exports=u,u.prototype.render=function(){for(var t,e=this,r=[],n=arguments.length;n--;)r[n]=arguments[n];return r.length&amp;&amp;(t=this).update.apply(t,r),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?null==this.planned&amp;&amp;(this.planned=o((function(){e.draw(),e.dirty=!0,e.planned=null}))):(this.draw(),this.dirty=!0,o((function(){e.dirty=!1}))),this)},u.prototype.update=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=0;n&lt;e.length;n++)this.updateItem(n,e[n]);this.traces=this.traces.filter(Boolean);for(var i=[],a=0,o=0;o&lt;this.traces.length;o++){for(var s=this.traces[o],l=this.traces[o].passes,c=0;c&lt;l.length;c++)i.push(this.passes[l[c]]);s.passOffset=a,a+=s.passes.length}return(t=this.scatter).update.apply(t,i),this}},u.prototype.updateItem=function(t,e){var r=this.regl;if(null===e)return this.traces[t]=null,this;if(!e)return this;var n,o=i(e,{data:&quot;data items columns rows values dimensions samples x&quot;,snap:&quot;snap cluster&quot;,size:&quot;sizes size radius&quot;,color:&quot;colors color fill fill-color fillColor&quot;,opacity:&quot;opacity alpha transparency opaque&quot;,borderSize:&quot;borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline&quot;,borderColor:&quot;borderColors borderColor bordercolor stroke stroke-color strokeColor&quot;,marker:&quot;markers marker shape&quot;,range:&quot;range ranges databox dataBox&quot;,viewport:&quot;viewport viewBox viewbox&quot;,domain:&quot;domain domains area areas&quot;,padding:&quot;pad padding paddings pads margin margins&quot;,transpose:&quot;transpose transposed&quot;,diagonal:&quot;diagonal diag showDiagonal&quot;,upper:&quot;upper up top upperhalf upperHalf showupperhalf showUpper showUpperHalf&quot;,lower:&quot;lower low bottom lowerhalf lowerHalf showlowerhalf showLowerHalf showLower&quot;}),s=this.traces[t]||(this.traces[t]={id:t,buffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array}),color:&quot;black&quot;,marker:null,size:12,borderColor:&quot;transparent&quot;,borderSize:1,viewport:l([r._gl.drawingBufferWidth,r._gl.drawingBufferHeight]),padding:[0,0,0,0],opacity:1,diagonal:!0,upper:!0,lower:!0});if(null!=o.color&amp;&amp;(s.color=o.color),null!=o.size&amp;&amp;(s.size=o.size),null!=o.marker&amp;&amp;(s.marker=o.marker),null!=o.borderColor&amp;&amp;(s.borderColor=o.borderColor),null!=o.borderSize&amp;&amp;(s.borderSize=o.borderSize),null!=o.opacity&amp;&amp;(s.opacity=o.opacity),o.viewport&amp;&amp;(s.viewport=l(o.viewport)),null!=o.diagonal&amp;&amp;(s.diagonal=o.diagonal),null!=o.upper&amp;&amp;(s.upper=o.upper),null!=o.lower&amp;&amp;(s.lower=o.lower),o.data){s.buffer(c(o.data)),s.columns=o.data.length,s.count=o.data[0].length,s.bounds=[];for(var u=0;u&lt;s.columns;u++)s.bounds[u]=a(o.data[u],1)}o.range&amp;&amp;(s.range=o.range,n=s.range&amp;&amp;&quot;number&quot;!=typeof s.range[0]),o.domain&amp;&amp;(s.domain=o.domain);var d=!1;null!=o.padding&amp;&amp;(Array.isArray(o.padding)&amp;&amp;o.padding.length===s.columns&amp;&amp;&quot;number&quot;==typeof o.padding[o.padding.length-1]?(s.padding=o.padding.map(p),d=!0):s.padding=p(o.padding));var g=s.columns,m=s.count,v=s.viewport.width,y=s.viewport.height,x=s.viewport.x,b=s.viewport.y,_=v/g,w=y/g;s.passes=[];for(var T=0;T&lt;g;T++)for(var k=0;k&lt;g;k++)if((s.diagonal||k!==T)&amp;&amp;(s.upper||!(T&gt;k))&amp;&amp;(s.lower||!(T&lt;k))){var M=f(s.id,T,k),A=this.passes[M]||(this.passes[M]={});if(o.data&amp;&amp;(o.transpose?A.positions={x:{buffer:s.buffer,offset:k,count:m,stride:g},y:{buffer:s.buffer,offset:T,count:m,stride:g}}:A.positions={x:{buffer:s.buffer,offset:k*m,count:m},y:{buffer:s.buffer,offset:T*m,count:m}},A.bounds=h(s.bounds,T,k)),o.domain||o.viewport||o.data){var S=d?h(s.padding,T,k):s.padding;if(s.domain){var E=h(s.domain,T,k),C=E[0],L=E[1],I=E[2],P=E[3];A.viewport=[x+C*v+S[0],b+L*y+S[1],x+I*v-S[2],b+P*y-S[3]]}else A.viewport=[x+k*_+_*S[0],b+T*w+w*S[1],x+(k+1)*_-_*S[2],b+(T+1)*w-w*S[3]]}o.color&amp;&amp;(A.color=s.color),o.size&amp;&amp;(A.size=s.size),o.marker&amp;&amp;(A.marker=s.marker),o.borderSize&amp;&amp;(A.borderSize=s.borderSize),o.borderColor&amp;&amp;(A.borderColor=s.borderColor),o.opacity&amp;&amp;(A.opacity=s.opacity),o.range&amp;&amp;(A.range=n?h(s.range,T,k):s.range||A.bounds),s.passes.push(M)}return this},u.prototype.draw=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=[],i=0;i&lt;e.length;i++)if(&quot;number&quot;==typeof e[i]){var a=this.traces[e[i]],o=a.passes,l=a.passOffset;n.push.apply(n,s(l,l+o.length))}else if(e[i].length){var c=e[i],u=this.traces[i],f=u.passes,h=u.passOffset;f=f.map((function(t,e){n[h+e]=c}))}(t=this.scatter).draw.apply(t,n)}else this.scatter.draw();return this},u.prototype.destroy=function(){return this.traces.forEach((function(t){t.buffer&amp;&amp;t.buffer.destroy&amp;&amp;t.buffer.destroy()})),this.traces=null,this.passes=null,this.scatter.destroy(),this}},{&quot;array-bounds&quot;:70,&quot;array-range&quot;:72,&quot;flatten-vertex-data&quot;:244,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511,raf:528,&quot;regl-scatter2d&quot;:537}],540:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?e.exports=n():t.createREGL=n()}(this,(function(){function t(t,e){this.id=V++,this.type=t,this.data=e}function e(t){return&quot;[&quot;+function t(e){if(0===e.length)return[];var r=e.charAt(0),n=e.charAt(e.length-1);if(1&lt;e.length&amp;&amp;r===n&amp;&amp;('&quot;'===r||&quot;'&quot;===r))return['&quot;'+e.substr(1,e.length-2).replace(/\\/g,&quot;\\\\&quot;).replace(/&quot;/g,'\\&quot;')+'&quot;'];if(r=/\[(false|true|null|\d+|'[^']*'|&quot;[^&quot;]*&quot;)\]/.exec(e))return t(e.substr(0,r.index)).concat(t(r[1])).concat(t(e.substr(r.index+r[0].length)));if(1===(r=e.split(&quot;.&quot;)).length)return['&quot;'+e.replace(/\\/g,&quot;\\\\&quot;).replace(/&quot;/g,'\\&quot;')+'&quot;'];for(e=[],n=0;n&lt;r.length;++n)e=e.concat(t(r[n]));return e}(t).join(&quot;][&quot;)+&quot;]&quot;}function r(t){return&quot;string&quot;==typeof t?t.split():t}function n(t){return&quot;string&quot;==typeof t?document.querySelector(t):t}function i(t){var e,i,a,o,s=t||{};t={};var l=[],c=[],u=&quot;undefined&quot;==typeof window?1:window.devicePixelRatio,f=!1,h=function(t){},p=function(){};if(&quot;string&quot;==typeof s?e=document.querySelector(s):&quot;object&quot;==typeof s&amp;&amp;(&quot;string&quot;==typeof s.nodeName&amp;&amp;&quot;function&quot;==typeof s.appendChild&amp;&amp;&quot;function&quot;==typeof s.getBoundingClientRect?e=s:&quot;function&quot;==typeof s.drawArrays||&quot;function&quot;==typeof s.drawElements?a=(o=s).canvas:(&quot;gl&quot;in s?o=s.gl:&quot;canvas&quot;in s?a=n(s.canvas):&quot;container&quot;in s&amp;&amp;(i=n(s.container)),&quot;attributes&quot;in s&amp;&amp;(t=s.attributes),&quot;extensions&quot;in s&amp;&amp;(l=r(s.extensions)),&quot;optionalExtensions&quot;in s&amp;&amp;(c=r(s.optionalExtensions)),&quot;onDone&quot;in s&amp;&amp;(h=s.onDone),&quot;profile&quot;in s&amp;&amp;(f=!!s.profile),&quot;pixelRatio&quot;in s&amp;&amp;(u=+s.pixelRatio))),e&amp;&amp;(&quot;canvas&quot;===e.nodeName.toLowerCase()?a=e:i=e),!o){if(!a){if(!(e=function(t,e,r){function n(){var e=window.innerWidth,n=window.innerHeight;t!==document.body&amp;&amp;(e=(n=t.getBoundingClientRect()).right-n.left,n=n.bottom-n.top),a.width=r*e,a.height=r*n,U(a.style,{width:e+&quot;px&quot;,height:n+&quot;px&quot;})}var i,a=document.createElement(&quot;canvas&quot;);return U(a.style,{border:0,margin:0,padding:0,top:0,left:0}),t.appendChild(a),t===document.body&amp;&amp;(a.style.position=&quot;absolute&quot;,U(t.style,{margin:0,padding:0})),t!==document.body&amp;&amp;&quot;function&quot;==typeof ResizeObserver?(i=new ResizeObserver((function(){setTimeout(n)}))).observe(t):window.addEventListener(&quot;resize&quot;,n,!1),n(),{canvas:a,onDestroy:function(){i?i.disconnect():window.removeEventListener(&quot;resize&quot;,n),t.removeChild(a)}}}(i||document.body,0,u)))return null;a=e.canvas,p=e.onDestroy}void 0===t.premultipliedAlpha&amp;&amp;(t.premultipliedAlpha=!0),o=function(t,e){function r(r){try{return t.getContext(r,e)}catch(t){return null}}return r(&quot;webgl&quot;)||r(&quot;experimental-webgl&quot;)||r(&quot;webgl-experimental&quot;)}(a,t)}return o?{gl:o,canvas:a,container:i,extensions:l,optionalExtensions:c,pixelRatio:u,profile:f,onDone:h,onDestroy:p}:(p(),h(&quot;webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org&quot;),null)}function a(t,e){for(var r=Array(t),n=0;n&lt;t;++n)r[n]=e(n);return r}function o(t){var e,r;return e=(65535&lt;t)&lt;&lt;4,e|=r=(255&lt;(t&gt;&gt;&gt;=e))&lt;&lt;3,(e|=r=(15&lt;(t&gt;&gt;&gt;=r))&lt;&lt;2)|(r=(3&lt;(t&gt;&gt;&gt;=r))&lt;&lt;1)|t&gt;&gt;&gt;r&gt;&gt;1}function s(){function t(t){t:{for(var e=16;268435456&gt;=e;e*=16)if(t&lt;=e){t=e;break t}t=0}return 0&lt;(e=r[o(t)&gt;&gt;2]).length?e.pop():new ArrayBuffer(t)}function e(t){r[o(t.byteLength)&gt;&gt;2].push(t)}var r=a(8,(function(){return[]}));return{alloc:t,free:e,allocType:function(e,r){var n=null;switch(e){case 5120:n=new Int8Array(t(r),0,r);break;case 5121:n=new Uint8Array(t(r),0,r);break;case 5122:n=new Int16Array(t(2*r),0,r);break;case 5123:n=new Uint16Array(t(2*r),0,r);break;case 5124:n=new Int32Array(t(4*r),0,r);break;case 5125:n=new Uint32Array(t(4*r),0,r);break;case 5126:n=new Float32Array(t(4*r),0,r);break;default:return null}return n.length!==r?n.subarray(0,r):n},freeType:function(t){e(t.buffer)}}}function l(t){return!!t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;Array.isArray(t.shape)&amp;&amp;Array.isArray(t.stride)&amp;&amp;&quot;number&quot;==typeof t.offset&amp;&amp;t.shape.length===t.stride.length&amp;&amp;(Array.isArray(t.data)||X(t.data))}function c(t,e,r,n,i,a){for(var o=0;o&lt;e;++o)for(var s=t[o],l=0;l&lt;r;++l)for(var c=s[l],u=0;u&lt;n;++u)i[a++]=c[u]}function u(t){return 0|K[Object.prototype.toString.call(t)]}function f(t,e){for(var r=0;r&lt;e.length;++r)t[r]=e[r]}function h(t,e,r,n,i,a,o){for(var s=0,l=0;l&lt;r;++l)for(var c=0;c&lt;n;++c)t[s++]=e[i*l+a*c+o]}function p(t,e,r,n){function i(e){this.id=c++,this.buffer=t.createBuffer(),this.type=e,this.usage=35044,this.byteLength=0,this.dimension=1,this.dtype=5121,this.persistentData=null,r.profile&amp;&amp;(this.stats={size:0})}function a(e,r,n){e.byteLength=r.byteLength,t.bufferData(e.type,r,n)}function o(t,e,r,n,i,o){if(t.usage=r,Array.isArray(e)){if(t.dtype=n||5126,0&lt;e.length)if(Array.isArray(e[0])){i=et(e);for(var s=n=1;s&lt;i.length;++s)n*=i[s];t.dimension=n,a(t,e=tt(e,i,t.dtype),r),o?t.persistentData=e:Y.freeType(e)}else&quot;number&quot;==typeof e[0]?(t.dimension=i,f(i=Y.allocType(t.dtype,e.length),e),a(t,i,r),o?t.persistentData=i:Y.freeType(i)):X(e[0])&amp;&amp;(t.dimension=e[0].length,t.dtype=n||u(e[0])||5126,a(t,e=tt(e,[e.length,e[0].length],t.dtype),r),o?t.persistentData=e:Y.freeType(e))}else if(X(e))t.dtype=n||u(e),t.dimension=i,a(t,e,r),o&amp;&amp;(t.persistentData=new Uint8Array(new Uint8Array(e.buffer)));else if(l(e)){i=e.shape;var c=e.stride,p=(s=e.offset,0),d=0,g=0,m=0;1===i.length?(p=i[0],d=1,g=c[0],m=0):2===i.length&amp;&amp;(p=i[0],d=i[1],g=c[0],m=c[1]),t.dtype=n||u(e.data)||5126,t.dimension=d,h(i=Y.allocType(t.dtype,p*d),e.data,p,d,g,m,s),a(t,i,r),o?t.persistentData=i:Y.freeType(i)}else e instanceof ArrayBuffer&amp;&amp;(t.dtype=5121,t.dimension=i,a(t,e,r),o&amp;&amp;(t.persistentData=new Uint8Array(new Uint8Array(e))))}function s(r){e.bufferCount--,n(r),t.deleteBuffer(r.buffer),r.buffer=null,delete p[r.id]}var c=0,p={};i.prototype.bind=function(){t.bindBuffer(this.type,this.buffer)},i.prototype.destroy=function(){s(this)};var d=[];return r.profile&amp;&amp;(e.getTotalBufferSize=function(){var t=0;return Object.keys(p).forEach((function(e){t+=p[e].stats.size})),t}),{create:function(n,a,c,d){function g(e){var n=35044,i=null,a=0,s=0,c=1;return Array.isArray(e)||X(e)||l(e)||e instanceof ArrayBuffer?i=e:&quot;number&quot;==typeof e?a=0|e:e&amp;&amp;(&quot;data&quot;in e&amp;&amp;(i=e.data),&quot;usage&quot;in e&amp;&amp;(n=$[e.usage]),&quot;type&quot;in e&amp;&amp;(s=Q[e.type]),&quot;dimension&quot;in e&amp;&amp;(c=0|e.dimension),&quot;length&quot;in e&amp;&amp;(a=0|e.length)),m.bind(),i?o(m,i,n,s,c,d):(a&amp;&amp;t.bufferData(m.type,a,n),m.dtype=s||5121,m.usage=n,m.dimension=c,m.byteLength=a),r.profile&amp;&amp;(m.stats.size=m.byteLength*rt[m.dtype]),g}e.bufferCount++;var m=new i(a);return p[m.id]=m,c||g(n),g._reglType=&quot;buffer&quot;,g._buffer=m,g.subdata=function(e,r){var n,i=0|(r||0);if(m.bind(),X(e)||e instanceof ArrayBuffer)t.bufferSubData(m.type,i,e);else if(Array.isArray(e)){if(0&lt;e.length)if(&quot;number&quot;==typeof e[0]){var a=Y.allocType(m.dtype,e.length);f(a,e),t.bufferSubData(m.type,i,a),Y.freeType(a)}else(Array.isArray(e[0])||X(e[0]))&amp;&amp;(n=et(e),a=tt(e,n,m.dtype),t.bufferSubData(m.type,i,a),Y.freeType(a))}else if(l(e)){n=e.shape;var o=e.stride,s=a=0,c=0,p=0;1===n.length?(a=n[0],s=1,c=o[0],p=0):2===n.length&amp;&amp;(a=n[0],s=n[1],c=o[0],p=o[1]),n=Array.isArray(e.data)?m.dtype:u(e.data),h(n=Y.allocType(n,a*s),e.data,a,s,c,p,e.offset),t.bufferSubData(m.type,i,n),Y.freeType(n)}return g},r.profile&amp;&amp;(g.stats=m.stats),g.destroy=function(){s(m)},g},createStream:function(t,e){var r=d.pop();return r||(r=new i(t)),r.bind(),o(r,e,35040,0,1,!1),r},destroyStream:function(t){d.push(t)},clear:function(){Z(p).forEach(s),d.forEach(s)},getBuffer:function(t){return t&amp;&amp;t._buffer instanceof i?t._buffer:null},restore:function(){Z(p).forEach((function(e){e.buffer=t.createBuffer(),t.bindBuffer(e.type,e.buffer),t.bufferData(e.type,e.persistentData||e.byteLength,e.usage)}))},_initBuffer:o}}function d(t,e,r,n){function i(t){this.id=c++,s[this.id]=this,this.buffer=t,this.primType=4,this.type=this.vertCount=0}function a(n,i,a,o,s,c,u){var f;if(n.buffer.bind(),i?((f=u)||X(i)&amp;&amp;(!l(i)||X(i.data))||(f=e.oes_element_index_uint?5125:5123),r._initBuffer(n.buffer,i,a,f,3)):(t.bufferData(34963,c,a),n.buffer.dtype=f||5121,n.buffer.usage=a,n.buffer.dimension=3,n.buffer.byteLength=c),f=u,!u){switch(n.buffer.dtype){case 5121:case 5120:f=5121;break;case 5123:case 5122:f=5123;break;case 5125:case 5124:f=5125}n.buffer.dtype=f}n.type=f,0&gt;(i=s)&amp;&amp;(i=n.buffer.byteLength,5123===f?i&gt;&gt;=1:5125===f&amp;&amp;(i&gt;&gt;=2)),n.vertCount=i,i=o,0&gt;o&amp;&amp;(i=4,1===(o=n.buffer.dimension)&amp;&amp;(i=0),2===o&amp;&amp;(i=1),3===o&amp;&amp;(i=4)),n.primType=i}function o(t){n.elementsCount--,delete s[t.id],t.buffer.destroy(),t.buffer=null}var s={},c=0,u={uint8:5121,uint16:5123};e.oes_element_index_uint&amp;&amp;(u.uint32=5125),i.prototype.bind=function(){this.buffer.bind()};var f=[];return{create:function(t,e){function s(t){if(t)if(&quot;number&quot;==typeof t)c(t),f.primType=4,f.vertCount=0|t,f.type=5121;else{var e=null,r=35044,n=-1,i=-1,o=0,h=0;Array.isArray(t)||X(t)||l(t)?e=t:(&quot;data&quot;in t&amp;&amp;(e=t.data),&quot;usage&quot;in t&amp;&amp;(r=$[t.usage]),&quot;primitive&quot;in t&amp;&amp;(n=nt[t.primitive]),&quot;count&quot;in t&amp;&amp;(i=0|t.count),&quot;type&quot;in t&amp;&amp;(h=u[t.type]),&quot;length&quot;in t?o=0|t.length:(o=i,5123===h||5122===h?o*=2:5125!==h&amp;&amp;5124!==h||(o*=4))),a(f,e,r,n,i,o,h)}else c(),f.primType=4,f.vertCount=0,f.type=5121;return s}var c=r.create(null,34963,!0),f=new i(c._buffer);return n.elementsCount++,s(t),s._reglType=&quot;elements&quot;,s._elements=f,s.subdata=function(t,e){return c.subdata(t,e),s},s.destroy=function(){o(f)},s},createStream:function(t){var e=f.pop();return e||(e=new i(r.create(null,34963,!0,!1)._buffer)),a(e,t,35040,-1,-1,0,0),e},destroyStream:function(t){f.push(t)},getElements:function(t){return&quot;function&quot;==typeof t&amp;&amp;t._elements instanceof i?t._elements:null},clear:function(){Z(s).forEach(o)}}}function g(t){for(var e=Y.allocType(5123,t.length),r=0;r&lt;t.length;++r)if(isNaN(t[r]))e[r]=65535;else if(1/0===t[r])e[r]=31744;else if(-1/0===t[r])e[r]=64512;else{it[0]=t[r];var n=(a=at[0])&gt;&gt;&gt;31&lt;&lt;15,i=(a&lt;&lt;1&gt;&gt;&gt;24)-127,a=a&gt;&gt;13&amp;1023;e[r]=-24&gt;i?n:-14&gt;i?n+(a+1024&gt;&gt;-14-i):15&lt;i?n+31744:n+(i+15&lt;&lt;10)+a}return e}function m(t){return Array.isArray(t)||X(t)}function v(t){return&quot;[object &quot;+t+&quot;]&quot;}function y(t){return Array.isArray(t)&amp;&amp;(0===t.length||&quot;number&quot;==typeof t[0])}function x(t){return!(!Array.isArray(t)||0===t.length||!m(t[0]))}function b(t){return Object.prototype.toString.call(t)}function _(t){if(!t)return!1;var e=b(t);return 0&lt;=gt.indexOf(e)||(y(t)||x(t)||l(t))}function w(t,e){36193===t.type?(t.data=g(e),Y.freeType(e)):t.data=e}function T(t,e,r,n,i,a){if(t=&quot;undefined&quot;!=typeof vt[t]?vt[t]:lt[t]*mt[e],a&amp;&amp;(t*=6),i){for(n=0;1&lt;=r;)n+=t*r*r,r/=2;return n}return t*r*n}function k(t,e,r,n,i,a,o){function s(){this.format=this.internalformat=6408,this.type=5121,this.flipY=this.premultiplyAlpha=this.compressed=!1,this.unpackAlignment=1,this.colorSpace=37444,this.channels=this.height=this.width=0}function c(t,e){t.internalformat=e.internalformat,t.format=e.format,t.type=e.type,t.compressed=e.compressed,t.premultiplyAlpha=e.premultiplyAlpha,t.flipY=e.flipY,t.unpackAlignment=e.unpackAlignment,t.colorSpace=e.colorSpace,t.width=e.width,t.height=e.height,t.channels=e.channels}function u(t,e){if(&quot;object&quot;==typeof e&amp;&amp;e){&quot;premultiplyAlpha&quot;in e&amp;&amp;(t.premultiplyAlpha=e.premultiplyAlpha),&quot;flipY&quot;in e&amp;&amp;(t.flipY=e.flipY),&quot;alignment&quot;in e&amp;&amp;(t.unpackAlignment=e.alignment),&quot;colorSpace&quot;in e&amp;&amp;(t.colorSpace=q[e.colorSpace]),&quot;type&quot;in e&amp;&amp;(t.type=H[e.type]);var r=t.width,n=t.height,i=t.channels,a=!1;&quot;shape&quot;in e?(r=e.shape[0],n=e.shape[1],3===e.shape.length&amp;&amp;(i=e.shape[2],a=!0)):(&quot;radius&quot;in e&amp;&amp;(r=n=e.radius),&quot;width&quot;in e&amp;&amp;(r=e.width),&quot;height&quot;in e&amp;&amp;(n=e.height),&quot;channels&quot;in e&amp;&amp;(i=e.channels,a=!0)),t.width=0|r,t.height=0|n,t.channels=0|i,r=!1,&quot;format&quot;in e&amp;&amp;(r=e.format,n=t.internalformat=G[r],t.format=at[n],r in H&amp;&amp;!(&quot;type&quot;in e)&amp;&amp;(t.type=H[r]),r in W&amp;&amp;(t.compressed=!0),r=!0),!a&amp;&amp;r?t.channels=lt[t.format]:a&amp;&amp;!r&amp;&amp;t.channels!==st[t.format]&amp;&amp;(t.format=t.internalformat=st[t.channels])}}function f(e){t.pixelStorei(37440,e.flipY),t.pixelStorei(37441,e.premultiplyAlpha),t.pixelStorei(37443,e.colorSpace),t.pixelStorei(3317,e.unpackAlignment)}function h(){s.call(this),this.yOffset=this.xOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function p(t,e){var r=null;if(_(e)?r=e:e&amp;&amp;(u(t,e),&quot;x&quot;in e&amp;&amp;(t.xOffset=0|e.x),&quot;y&quot;in e&amp;&amp;(t.yOffset=0|e.y),_(e.data)&amp;&amp;(r=e.data)),e.copy){var n=i.viewportWidth,a=i.viewportHeight;t.width=t.width||n-t.xOffset,t.height=t.height||a-t.yOffset,t.needsCopy=!0}else if(r){if(X(r))t.channels=t.channels||4,t.data=r,&quot;type&quot;in e||5121!==t.type||(t.type=0|K[Object.prototype.toString.call(r)]);else if(y(r)){switch(t.channels=t.channels||4,a=(n=r).length,t.type){case 5121:case 5123:case 5125:case 5126:(a=Y.allocType(t.type,a)).set(n),t.data=a;break;case 36193:t.data=g(n)}t.alignment=1,t.needsFree=!0}else if(l(r)){n=r.data,Array.isArray(n)||5121!==t.type||(t.type=0|K[Object.prototype.toString.call(n)]);a=r.shape;var o,s,c,f,h=r.stride;3===a.length?(c=a[2],f=h[2]):f=c=1,o=a[0],s=a[1],a=h[0],h=h[1],t.alignment=1,t.width=o,t.height=s,t.channels=c,t.format=t.internalformat=st[c],t.needsFree=!0,o=f,r=r.offset,c=t.width,f=t.height,s=t.channels;for(var p=Y.allocType(36193===t.type?5126:t.type,c*f*s),d=0,v=0;v&lt;f;++v)for(var T=0;T&lt;c;++T)for(var k=0;k&lt;s;++k)p[d++]=n[a*T+h*v+o*k+r];w(t,p)}else if(b(r)===ct||b(r)===ut||b(r)===ft)b(r)===ct||b(r)===ut?t.element=r:t.element=r.canvas,t.width=t.element.width,t.height=t.element.height,t.channels=4;else if(b(r)===ht)t.element=r,t.width=r.width,t.height=r.height,t.channels=4;else if(b(r)===pt)t.element=r,t.width=r.naturalWidth,t.height=r.naturalHeight,t.channels=4;else if(b(r)===dt)t.element=r,t.width=r.videoWidth,t.height=r.videoHeight,t.channels=4;else if(x(r)){for(n=t.width||r[0].length,a=t.height||r.length,h=t.channels,h=m(r[0][0])?h||r[0][0].length:h||1,o=J.shape(r),c=1,f=0;f&lt;o.length;++f)c*=o[f];c=Y.allocType(36193===t.type?5126:t.type,c),J.flatten(r,o,&quot;&quot;,c),w(t,c),t.alignment=1,t.width=n,t.height=a,t.channels=h,t.format=t.internalformat=st[h],t.needsFree=!0}}else t.width=t.width||1,t.height=t.height||1,t.channels=t.channels||4}function d(e,r,i,a,o){var s=e.element,l=e.data,c=e.internalformat,u=e.format,h=e.type,p=e.width,d=e.height;f(e),s?t.texSubImage2D(r,o,i,a,u,h,s):e.compressed?t.compressedTexSubImage2D(r,o,i,a,c,p,d,l):e.needsCopy?(n(),t.copyTexSubImage2D(r,o,i,a,e.xOffset,e.yOffset,p,d)):t.texSubImage2D(r,o,i,a,p,d,u,h,l)}function v(){return gt.pop()||new h}function k(t){t.needsFree&amp;&amp;Y.freeType(t.data),h.call(t),gt.push(t)}function M(){s.call(this),this.genMipmaps=!1,this.mipmapHint=4352,this.mipmask=0,this.images=Array(16)}function A(t,e,r){var n=t.images[0]=v();t.mipmask=1,n.width=t.width=e,n.height=t.height=r,n.channels=t.channels=4}function S(t,e){var r=null;if(_(e))c(r=t.images[0]=v(),t),p(r,e),t.mipmask=1;else if(u(t,e),Array.isArray(e.mipmap))for(var n=e.mipmap,i=0;i&lt;n.length;++i)c(r=t.images[i]=v(),t),r.width&gt;&gt;=i,r.height&gt;&gt;=i,p(r,n[i]),t.mipmask|=1&lt;&lt;i;else c(r=t.images[0]=v(),t),p(r,e),t.mipmask=1;c(t,t.images[0])}function E(e,r){for(var i=e.images,a=0;a&lt;i.length&amp;&amp;i[a];++a){var o=i[a],s=r,l=a,c=o.element,u=o.data,h=o.internalformat,p=o.format,d=o.type,g=o.width,m=o.height;f(o),c?t.texImage2D(s,l,p,p,d,c):o.compressed?t.compressedTexImage2D(s,l,h,g,m,0,u):o.needsCopy?(n(),t.copyTexImage2D(s,l,p,o.xOffset,o.yOffset,g,m,0)):t.texImage2D(s,l,p,g,m,0,p,d,u||null)}}function C(){var t=mt.pop()||new M;s.call(t);for(var e=t.mipmask=0;16&gt;e;++e)t.images[e]=null;return t}function L(t){for(var e=t.images,r=0;r&lt;e.length;++r)e[r]&amp;&amp;k(e[r]),e[r]=null;mt.push(t)}function I(){this.magFilter=this.minFilter=9728,this.wrapT=this.wrapS=33071,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=4352}function P(t,e){&quot;min&quot;in e&amp;&amp;(t.minFilter=V[e.min],0&lt;=ot.indexOf(t.minFilter)&amp;&amp;!(&quot;faces&quot;in e)&amp;&amp;(t.genMipmaps=!0)),&quot;mag&quot;in e&amp;&amp;(t.magFilter=j[e.mag]);var r=t.wrapS,n=t.wrapT;if(&quot;wrap&quot;in e){var i=e.wrap;&quot;string&quot;==typeof i?r=n=N[i]:Array.isArray(i)&amp;&amp;(r=N[i[0]],n=N[i[1]])}else&quot;wrapS&quot;in e&amp;&amp;(r=N[e.wrapS]),&quot;wrapT&quot;in e&amp;&amp;(n=N[e.wrapT]);if(t.wrapS=r,t.wrapT=n,&quot;anisotropic&quot;in e&amp;&amp;(t.anisotropic=e.anisotropic),&quot;mipmap&quot;in e){switch(r=!1,typeof e.mipmap){case&quot;string&quot;:t.mipmapHint=B[e.mipmap],r=t.genMipmaps=!0;break;case&quot;boolean&quot;:r=t.genMipmaps=e.mipmap;break;case&quot;object&quot;:t.genMipmaps=!1,r=!0}!r||&quot;min&quot;in e||(t.minFilter=9984)}}function z(r,n){t.texParameteri(n,10241,r.minFilter),t.texParameteri(n,10240,r.magFilter),t.texParameteri(n,10242,r.wrapS),t.texParameteri(n,10243,r.wrapT),e.ext_texture_filter_anisotropic&amp;&amp;t.texParameteri(n,34046,r.anisotropic),r.genMipmaps&amp;&amp;(t.hint(33170,r.mipmapHint),t.generateMipmap(n))}function O(e){s.call(this),this.mipmask=0,this.internalformat=6408,this.id=vt++,this.refCount=1,this.target=e,this.texture=t.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new I,o.profile&amp;&amp;(this.stats={size:0})}function D(e){t.activeTexture(33984),t.bindTexture(e.target,e.texture)}function R(){var e=bt[0];e?t.bindTexture(e.target,e.texture):t.bindTexture(3553,null)}function F(e){var r=e.texture,n=e.unit,i=e.target;0&lt;=n&amp;&amp;(t.activeTexture(33984+n),t.bindTexture(i,null),bt[n]=null),t.deleteTexture(r),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete yt[e.id],a.textureCount--}var B={&quot;don't care&quot;:4352,&quot;dont care&quot;:4352,nice:4354,fast:4353},N={repeat:10497,clamp:33071,mirror:33648},j={nearest:9728,linear:9729},V=U({mipmap:9987,&quot;nearest mipmap nearest&quot;:9984,&quot;linear mipmap nearest&quot;:9985,&quot;nearest mipmap linear&quot;:9986,&quot;linear mipmap linear&quot;:9987},j),q={none:0,browser:37444},H={uint8:5121,rgba4:32819,rgb565:33635,&quot;rgb5 a1&quot;:32820},G={alpha:6406,luminance:6409,&quot;luminance alpha&quot;:6410,rgb:6407,rgba:6408,rgba4:32854,&quot;rgb5 a1&quot;:32855,rgb565:36194},W={};e.ext_srgb&amp;&amp;(G.srgb=35904,G.srgba=35906),e.oes_texture_float&amp;&amp;(H.float32=H.float=5126),e.oes_texture_half_float&amp;&amp;(H.float16=H[&quot;half float&quot;]=36193),e.webgl_depth_texture&amp;&amp;(U(G,{depth:6402,&quot;depth stencil&quot;:34041}),U(H,{uint16:5123,uint32:5125,&quot;depth stencil&quot;:34042})),e.webgl_compressed_texture_s3tc&amp;&amp;U(W,{&quot;rgb s3tc dxt1&quot;:33776,&quot;rgba s3tc dxt1&quot;:33777,&quot;rgba s3tc dxt3&quot;:33778,&quot;rgba s3tc dxt5&quot;:33779}),e.webgl_compressed_texture_atc&amp;&amp;U(W,{&quot;rgb atc&quot;:35986,&quot;rgba atc explicit alpha&quot;:35987,&quot;rgba atc interpolated alpha&quot;:34798}),e.webgl_compressed_texture_pvrtc&amp;&amp;U(W,{&quot;rgb pvrtc 4bppv1&quot;:35840,&quot;rgb pvrtc 2bppv1&quot;:35841,&quot;rgba pvrtc 4bppv1&quot;:35842,&quot;rgba pvrtc 2bppv1&quot;:35843}),e.webgl_compressed_texture_etc1&amp;&amp;(W[&quot;rgb etc1&quot;]=36196);var Q=Array.prototype.slice.call(t.getParameter(34467));Object.keys(W).forEach((function(t){var e=W[t];0&lt;=Q.indexOf(e)&amp;&amp;(G[t]=e)}));var $=Object.keys(G);r.textureFormats=$;var tt=[];Object.keys(G).forEach((function(t){tt[G[t]]=t}));var et=[];Object.keys(H).forEach((function(t){et[H[t]]=t}));var rt=[];Object.keys(j).forEach((function(t){rt[j[t]]=t}));var nt=[];Object.keys(V).forEach((function(t){nt[V[t]]=t}));var it=[];Object.keys(N).forEach((function(t){it[N[t]]=t}));var at=$.reduce((function(t,r){var n=G[r];return 6409===n||6406===n||6409===n||6410===n||6402===n||34041===n||e.ext_srgb&amp;&amp;(35904===n||35906===n)?t[n]=n:32855===n||0&lt;=r.indexOf(&quot;rgba&quot;)?t[n]=6408:t[n]=6407,t}),{}),gt=[],mt=[],vt=0,yt={},xt=r.maxTextureUnits,bt=Array(xt).map((function(){return null}));return U(O.prototype,{bind:function(){this.bindCount+=1;var e=this.unit;if(0&gt;e){for(var r=0;r&lt;xt;++r){var n=bt[r];if(n){if(0&lt;n.bindCount)continue;n.unit=-1}bt[r]=this,e=r;break}o.profile&amp;&amp;a.maxTextureUnits&lt;e+1&amp;&amp;(a.maxTextureUnits=e+1),this.unit=e,t.activeTexture(33984+e),t.bindTexture(this.target,this.texture)}return e},unbind:function(){--this.bindCount},decRef:function(){0&gt;=--this.refCount&amp;&amp;F(this)}}),o.profile&amp;&amp;(a.getTotalTextureSize=function(){var t=0;return Object.keys(yt).forEach((function(e){t+=yt[e].stats.size})),t}),{create2D:function(e,r){function n(t,e){var r=i.texInfo;I.call(r);var a=C();return&quot;number&quot;==typeof t?A(a,0|t,&quot;number&quot;==typeof e?0|e:0|t):t?(P(r,t),S(a,t)):A(a,1,1),r.genMipmaps&amp;&amp;(a.mipmask=(a.width&lt;&lt;1)-1),i.mipmask=a.mipmask,c(i,a),i.internalformat=a.internalformat,n.width=a.width,n.height=a.height,D(i),E(a,3553),z(r,3553),R(),L(a),o.profile&amp;&amp;(i.stats.size=T(i.internalformat,i.type,a.width,a.height,r.genMipmaps,!1)),n.format=tt[i.internalformat],n.type=et[i.type],n.mag=rt[r.magFilter],n.min=nt[r.minFilter],n.wrapS=it[r.wrapS],n.wrapT=it[r.wrapT],n}var i=new O(3553);return yt[i.id]=i,a.textureCount++,n(e,r),n.subimage=function(t,e,r,a){e|=0,r|=0,a|=0;var o=v();return c(o,i),o.width=0,o.height=0,p(o,t),o.width=o.width||(i.width&gt;&gt;a)-e,o.height=o.height||(i.height&gt;&gt;a)-r,D(i),d(o,3553,e,r,a),R(),k(o),n},n.resize=function(e,r){var a=0|e,s=0|r||a;if(a===i.width&amp;&amp;s===i.height)return n;n.width=i.width=a,n.height=i.height=s,D(i);for(var l=0;i.mipmask&gt;&gt;l;++l){var c=a&gt;&gt;l,u=s&gt;&gt;l;if(!c||!u)break;t.texImage2D(3553,l,i.format,c,u,0,i.format,i.type,null)}return R(),o.profile&amp;&amp;(i.stats.size=T(i.internalformat,i.type,a,s,!1,!1)),n},n._reglType=&quot;texture2d&quot;,n._texture=i,o.profile&amp;&amp;(n.stats=i.stats),n.destroy=function(){i.decRef()},n},createCube:function(e,r,n,i,s,l){function f(t,e,r,n,i,a){var s,l=h.texInfo;for(I.call(l),s=0;6&gt;s;++s)g[s]=C();if(&quot;number&quot;!=typeof t&amp;&amp;t){if(&quot;object&quot;==typeof t)if(e)S(g[0],t),S(g[1],e),S(g[2],r),S(g[3],n),S(g[4],i),S(g[5],a);else if(P(l,t),u(h,t),&quot;faces&quot;in t)for(t=t.faces,s=0;6&gt;s;++s)c(g[s],h),S(g[s],t[s]);else for(s=0;6&gt;s;++s)S(g[s],t)}else for(t=0|t||1,s=0;6&gt;s;++s)A(g[s],t,t);for(c(h,g[0]),h.mipmask=l.genMipmaps?(g[0].width&lt;&lt;1)-1:g[0].mipmask,h.internalformat=g[0].internalformat,f.width=g[0].width,f.height=g[0].height,D(h),s=0;6&gt;s;++s)E(g[s],34069+s);for(z(l,34067),R(),o.profile&amp;&amp;(h.stats.size=T(h.internalformat,h.type,f.width,f.height,l.genMipmaps,!0)),f.format=tt[h.internalformat],f.type=et[h.type],f.mag=rt[l.magFilter],f.min=nt[l.minFilter],f.wrapS=it[l.wrapS],f.wrapT=it[l.wrapT],s=0;6&gt;s;++s)L(g[s]);return f}var h=new O(34067);yt[h.id]=h,a.cubeCount++;var g=Array(6);return f(e,r,n,i,s,l),f.subimage=function(t,e,r,n,i){r|=0,n|=0,i|=0;var a=v();return c(a,h),a.width=0,a.height=0,p(a,e),a.width=a.width||(h.width&gt;&gt;i)-r,a.height=a.height||(h.height&gt;&gt;i)-n,D(h),d(a,34069+t,r,n,i),R(),k(a),f},f.resize=function(e){if((e|=0)!==h.width){f.width=h.width=e,f.height=h.height=e,D(h);for(var r=0;6&gt;r;++r)for(var n=0;h.mipmask&gt;&gt;n;++n)t.texImage2D(34069+r,n,h.format,e&gt;&gt;n,e&gt;&gt;n,0,h.format,h.type,null);return R(),o.profile&amp;&amp;(h.stats.size=T(h.internalformat,h.type,f.width,f.height,!1,!0)),f}},f._reglType=&quot;textureCube&quot;,f._texture=h,o.profile&amp;&amp;(f.stats=h.stats),f.destroy=function(){h.decRef()},f},clear:function(){for(var e=0;e&lt;xt;++e)t.activeTexture(33984+e),t.bindTexture(3553,null),bt[e]=null;Z(yt).forEach(F),a.cubeCount=0,a.textureCount=0},getTexture:function(t){return null},restore:function(){for(var e=0;e&lt;xt;++e){var r=bt[e];r&amp;&amp;(r.bindCount=0,r.unit=-1,bt[e]=null)}Z(yt).forEach((function(e){e.texture=t.createTexture(),t.bindTexture(e.target,e.texture);for(var r=0;32&gt;r;++r)if(0!=(e.mipmask&amp;1&lt;&lt;r))if(3553===e.target)t.texImage2D(3553,r,e.internalformat,e.width&gt;&gt;r,e.height&gt;&gt;r,0,e.internalformat,e.type,null);else for(var n=0;6&gt;n;++n)t.texImage2D(34069+n,r,e.internalformat,e.width&gt;&gt;r,e.height&gt;&gt;r,0,e.internalformat,e.type,null);z(e.texInfo,e.target)}))}}}function M(t,e,r,n,i,a){function o(t,e,r){this.target=t,this.texture=e,this.renderbuffer=r;var n=t=0;e?(t=e.width,n=e.height):r&amp;&amp;(t=r.width,n=r.height),this.width=t,this.height=n}function s(t){t&amp;&amp;(t.texture&amp;&amp;t.texture._texture.decRef(),t.renderbuffer&amp;&amp;t.renderbuffer._renderbuffer.decRef())}function l(t,e,r){t&amp;&amp;(t.texture?t.texture._texture.refCount+=1:t.renderbuffer._renderbuffer.refCount+=1)}function c(e,r){r&amp;&amp;(r.texture?t.framebufferTexture2D(36160,e,r.target,r.texture._texture.texture,0):t.framebufferRenderbuffer(36160,e,36161,r.renderbuffer._renderbuffer.renderbuffer))}function u(t){var e=3553,r=null,n=null,i=t;return&quot;object&quot;==typeof t&amp;&amp;(i=t.data,&quot;target&quot;in t&amp;&amp;(e=0|t.target)),&quot;texture2d&quot;===(t=i._reglType)||&quot;textureCube&quot;===t?r=i:&quot;renderbuffer&quot;===t&amp;&amp;(n=i,e=36161),new o(e,r,n)}function f(t,e,r,a,s){return r?((t=n.create2D({width:t,height:e,format:a,type:s}))._texture.refCount=0,new o(3553,t,null)):((t=i.create({width:t,height:e,format:a}))._renderbuffer.refCount=0,new o(36161,null,t))}function h(t){return t&amp;&amp;(t.texture||t.renderbuffer)}function p(t,e,r){t&amp;&amp;(t.texture?t.texture.resize(e,r):t.renderbuffer&amp;&amp;t.renderbuffer.resize(e,r),t.width=e,t.height=r)}function d(){this.id=T++,k[this.id]=this,this.framebuffer=t.createFramebuffer(),this.height=this.width=0,this.colorAttachments=[],this.depthStencilAttachment=this.stencilAttachment=this.depthAttachment=null}function g(t){t.colorAttachments.forEach(s),s(t.depthAttachment),s(t.stencilAttachment),s(t.depthStencilAttachment)}function m(e){t.deleteFramebuffer(e.framebuffer),e.framebuffer=null,a.framebufferCount--,delete k[e.id]}function v(e){var n;t.bindFramebuffer(36160,e.framebuffer);var i=e.colorAttachments;for(n=0;n&lt;i.length;++n)c(36064+n,i[n]);for(n=i.length;n&lt;r.maxColorAttachments;++n)t.framebufferTexture2D(36160,36064+n,3553,null,0);t.framebufferTexture2D(36160,33306,3553,null,0),t.framebufferTexture2D(36160,36096,3553,null,0),t.framebufferTexture2D(36160,36128,3553,null,0),c(36096,e.depthAttachment),c(36128,e.stencilAttachment),c(33306,e.depthStencilAttachment),t.checkFramebufferStatus(36160),t.isContextLost(),t.bindFramebuffer(36160,x.next?x.next.framebuffer:null),x.cur=x.next,t.getError()}function y(t,e){function r(t,e){var i,a=0,o=0,s=!0,c=!0;i=null;var p=!0,d=&quot;rgba&quot;,m=&quot;uint8&quot;,y=1,x=null,w=null,T=null,k=!1;&quot;number&quot;==typeof t?(a=0|t,o=0|e||a):t?(&quot;shape&quot;in t?(a=(o=t.shape)[0],o=o[1]):(&quot;radius&quot;in t&amp;&amp;(a=o=t.radius),&quot;width&quot;in t&amp;&amp;(a=t.width),&quot;height&quot;in t&amp;&amp;(o=t.height)),(&quot;color&quot;in t||&quot;colors&quot;in t)&amp;&amp;(i=t.color||t.colors,Array.isArray(i)),i||(&quot;colorCount&quot;in t&amp;&amp;(y=0|t.colorCount),&quot;colorTexture&quot;in t&amp;&amp;(p=!!t.colorTexture,d=&quot;rgba4&quot;),&quot;colorType&quot;in t&amp;&amp;(m=t.colorType,!p)&amp;&amp;(&quot;half float&quot;===m||&quot;float16&quot;===m?d=&quot;rgba16f&quot;:&quot;float&quot;!==m&amp;&amp;&quot;float32&quot;!==m||(d=&quot;rgba32f&quot;)),&quot;colorFormat&quot;in t&amp;&amp;(d=t.colorFormat,0&lt;=b.indexOf(d)?p=!0:0&lt;=_.indexOf(d)&amp;&amp;(p=!1))),(&quot;depthTexture&quot;in t||&quot;depthStencilTexture&quot;in t)&amp;&amp;(k=!(!t.depthTexture&amp;&amp;!t.depthStencilTexture)),&quot;depth&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.depth?s=t.depth:(x=t.depth,c=!1)),&quot;stencil&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.stencil?c=t.stencil:(w=t.stencil,s=!1)),&quot;depthStencil&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.depthStencil?s=c=t.depthStencil:(T=t.depthStencil,c=s=!1))):a=o=1;var M=null,A=null,S=null,E=null;if(Array.isArray(i))M=i.map(u);else if(i)M=[u(i)];else for(M=Array(y),i=0;i&lt;y;++i)M[i]=f(a,o,p,d,m);for(a=a||M[0].width,o=o||M[0].height,x?A=u(x):s&amp;&amp;!c&amp;&amp;(A=f(a,o,k,&quot;depth&quot;,&quot;uint32&quot;)),w?S=u(w):c&amp;&amp;!s&amp;&amp;(S=f(a,o,!1,&quot;stencil&quot;,&quot;uint8&quot;)),T?E=u(T):!x&amp;&amp;!w&amp;&amp;c&amp;&amp;s&amp;&amp;(E=f(a,o,k,&quot;depth stencil&quot;,&quot;depth stencil&quot;)),s=null,i=0;i&lt;M.length;++i)l(M[i]),M[i]&amp;&amp;M[i].texture&amp;&amp;(c=bt[M[i].texture._texture.format]*_t[M[i].texture._texture.type],null===s&amp;&amp;(s=c));return l(A),l(S),l(E),g(n),n.width=a,n.height=o,n.colorAttachments=M,n.depthAttachment=A,n.stencilAttachment=S,n.depthStencilAttachment=E,r.color=M.map(h),r.depth=h(A),r.stencil=h(S),r.depthStencil=h(E),r.width=n.width,r.height=n.height,v(n),r}var n=new d;return a.framebufferCount++,r(t,e),U(r,{resize:function(t,e){var i=Math.max(0|t,1),a=Math.max(0|e||i,1);if(i===n.width&amp;&amp;a===n.height)return r;for(var o=n.colorAttachments,s=0;s&lt;o.length;++s)p(o[s],i,a);return p(n.depthAttachment,i,a),p(n.stencilAttachment,i,a),p(n.depthStencilAttachment,i,a),n.width=r.width=i,n.height=r.height=a,v(n),r},_reglType:&quot;framebuffer&quot;,_framebuffer:n,destroy:function(){m(n),g(n)},use:function(t){x.setFBO({framebuffer:r},t)}})}var x={cur:null,next:null,dirty:!1,setFBO:null},b=[&quot;rgba&quot;],_=[&quot;rgba4&quot;,&quot;rgb565&quot;,&quot;rgb5 a1&quot;];e.ext_srgb&amp;&amp;_.push(&quot;srgba&quot;),e.ext_color_buffer_half_float&amp;&amp;_.push(&quot;rgba16f&quot;,&quot;rgb16f&quot;),e.webgl_color_buffer_float&amp;&amp;_.push(&quot;rgba32f&quot;);var w=[&quot;uint8&quot;];e.oes_texture_half_float&amp;&amp;w.push(&quot;half float&quot;,&quot;float16&quot;),e.oes_texture_float&amp;&amp;w.push(&quot;float&quot;,&quot;float32&quot;);var T=0,k={};return U(x,{getFramebuffer:function(t){return&quot;function&quot;==typeof t&amp;&amp;&quot;framebuffer&quot;===t._reglType&amp;&amp;(t=t._framebuffer)instanceof d?t:null},create:y,createCube:function(t){function e(t){var i,a={color:null},o=0,s=null;i=&quot;rgba&quot;;var l=&quot;uint8&quot;,c=1;if(&quot;number&quot;==typeof t?o=0|t:t?(&quot;shape&quot;in t?o=t.shape[0]:(&quot;radius&quot;in t&amp;&amp;(o=0|t.radius),&quot;width&quot;in t?o=0|t.width:&quot;height&quot;in t&amp;&amp;(o=0|t.height)),(&quot;color&quot;in t||&quot;colors&quot;in t)&amp;&amp;(s=t.color||t.colors,Array.isArray(s)),s||(&quot;colorCount&quot;in t&amp;&amp;(c=0|t.colorCount),&quot;colorType&quot;in t&amp;&amp;(l=t.colorType),&quot;colorFormat&quot;in t&amp;&amp;(i=t.colorFormat)),&quot;depth&quot;in t&amp;&amp;(a.depth=t.depth),&quot;stencil&quot;in t&amp;&amp;(a.stencil=t.stencil),&quot;depthStencil&quot;in t&amp;&amp;(a.depthStencil=t.depthStencil)):o=1,s)if(Array.isArray(s))for(t=[],i=0;i&lt;s.length;++i)t[i]=s[i];else t=[s];else for(t=Array(c),s={radius:o,format:i,type:l},i=0;i&lt;c;++i)t[i]=n.createCube(s);for(a.color=Array(t.length),i=0;i&lt;t.length;++i)c=t[i],o=o||c.width,a.color[i]={target:34069,data:t[i]};for(i=0;6&gt;i;++i){for(c=0;c&lt;t.length;++c)a.color[c].target=34069+i;0&lt;i&amp;&amp;(a.depth=r[0].depth,a.stencil=r[0].stencil,a.depthStencil=r[0].depthStencil),r[i]?r[i](a):r[i]=y(a)}return U(e,{width:o,height:o,color:t})}var r=Array(6);return e(t),U(e,{faces:r,resize:function(t){var n=0|t;if(n===e.width)return e;var i=e.color;for(t=0;t&lt;i.length;++t)i[t].resize(n);for(t=0;6&gt;t;++t)r[t].resize(n);return e.width=e.height=n,e},_reglType:&quot;framebufferCube&quot;,destroy:function(){r.forEach((function(t){t.destroy()}))}})},clear:function(){Z(k).forEach(m)},restore:function(){x.cur=null,x.next=null,x.dirty=!0,Z(k).forEach((function(e){e.framebuffer=t.createFramebuffer(),v(e)}))}})}function A(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function S(t,e,r,n,i){function a(){this.id=++c,this.attributes=[];var t=e.oes_vertex_array_object;this.vao=t?t.createVertexArrayOES():null,u[this.id]=this,this.buffers=[]}var o=r.maxAttributes,s=Array(o);for(r=0;r&lt;o;++r)s[r]=new A;var c=0,u={},f={Record:A,scope:{},state:s,currentVAO:null,targetVAO:null,restore:e.oes_vertex_array_object?function(){e.oes_vertex_array_object&amp;&amp;Z(u).forEach((function(t){t.refresh()}))}:function(){},createVAO:function(t){function e(t){for(var n=0;n&lt;r.buffers.length;++n)r.buffers[n].destroy();r.buffers.length=0,(n=r.attributes).length=t.length;for(var a=0;a&lt;t.length;++a){var o=t[a],s=n[a]=new A;Array.isArray(o)||X(o)||l(o)?(o=i.create(o,34962,!1,!0),s.buffer=i.getBuffer(o),s.size=0|s.buffer.dimension,s.normalized=!1,s.type=s.buffer.dtype,s.offset=0,s.stride=0,s.divisor=0,s.state=1,r.buffers.push(o)):i.getBuffer(o)?(s.buffer=i.getBuffer(o),s.size=0|s.buffer.dimension,s.normalized=!1,s.type=s.buffer.dtype,s.offset=0,s.stride=0,s.divisor=0,s.state=1):i.getBuffer(o.buffer)?(s.buffer=i.getBuffer(o.buffer),s.size=0|(+o.size||s.buffer.dimension),s.normalized=!!o.normalized||!1,s.type=&quot;type&quot;in o?Q[o.type]:s.buffer.dtype,s.offset=0|(o.offset||0),s.stride=0|(o.stride||0),s.divisor=0|(o.divisor||0),s.state=1):&quot;x&quot;in o&amp;&amp;(s.x=+o.x||0,s.y=+o.y||0,s.z=+o.z||0,s.w=+o.w||0,s.state=2)}return r.refresh(),e}var r=new a;return n.vaoCount+=1,e.destroy=function(){r.destroy()},e._vao=r,e._reglType=&quot;vao&quot;,e(t)},getVAO:function(t){return&quot;function&quot;==typeof t&amp;&amp;t._vao?t._vao:null},destroyBuffer:function(e){for(var r=0;r&lt;s.length;++r){var n=s[r];n.buffer===e&amp;&amp;(t.disableVertexAttribArray(r),n.buffer=null)}},setVAO:e.oes_vertex_array_object?function(t){if(t!==f.currentVAO){var r=e.oes_vertex_array_object;t?r.bindVertexArrayOES(t.vao):r.bindVertexArrayOES(null),f.currentVAO=t}}:function(r){if(r!==f.currentVAO){if(r)r.bindAttrs();else for(var n=e.angle_instanced_arrays,i=0;i&lt;s.length;++i){var a=s[i];a.buffer?(t.enableVertexAttribArray(i),t.vertexAttribPointer(i,a.size,a.type,a.normalized,a.stride,a.offfset),n&amp;&amp;n.vertexAttribDivisorANGLE(i,a.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,a.x,a.y,a.z,a.w))}f.currentVAO=r}},clear:e.oes_vertex_array_object?function(){Z(u).forEach((function(t){t.destroy()}))}:function(){}};return a.prototype.bindAttrs=function(){for(var r=e.angle_instanced_arrays,n=this.attributes,i=0;i&lt;n.length;++i){var a=n[i];a.buffer?(t.enableVertexAttribArray(i),t.bindBuffer(34962,a.buffer.buffer),t.vertexAttribPointer(i,a.size,a.type,a.normalized,a.stride,a.offset),r&amp;&amp;r.vertexAttribDivisorANGLE(i,a.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,a.x,a.y,a.z,a.w))}for(r=n.length;r&lt;o;++r)t.disableVertexAttribArray(r)},a.prototype.refresh=function(){var t=e.oes_vertex_array_object;t&amp;&amp;(t.bindVertexArrayOES(this.vao),this.bindAttrs(),f.currentVAO=this)},a.prototype.destroy=function(){if(this.vao){var t=e.oes_vertex_array_object;this===f.currentVAO&amp;&amp;(f.currentVAO=null,t.bindVertexArrayOES(null)),t.deleteVertexArrayOES(this.vao),this.vao=null}u[this.id]&amp;&amp;(delete u[this.id],--n.vaoCount)},f}function E(t,e,r,n){function i(t,e,r,n){this.name=t,this.id=e,this.location=r,this.info=n}function a(t,e){for(var r=0;r&lt;t.length;++r)if(t[r].id===e.id)return void(t[r].location=e.location);t.push(e)}function o(r,n,i){if(!(o=(i=35632===r?c:u)[n])){var a=e.str(n),o=t.createShader(r);t.shaderSource(o,a),t.compileShader(o),i[n]=o}return o}function s(t,e){this.id=p++,this.fragId=t,this.vertId=e,this.program=null,this.uniforms=[],this.attributes=[],n.profile&amp;&amp;(this.stats={uniformsCount:0,attributesCount:0})}function l(r,s,l){var c;c=o(35632,r.fragId);var u=o(35633,r.vertId);if(s=r.program=t.createProgram(),t.attachShader(s,c),t.attachShader(s,u),l)for(c=0;c&lt;l.length;++c)u=l[c],t.bindAttribLocation(s,u[0],u[1]);t.linkProgram(s),u=t.getProgramParameter(s,35718),n.profile&amp;&amp;(r.stats.uniformsCount=u);var f=r.uniforms;for(c=0;c&lt;u;++c)if(l=t.getActiveUniform(s,c))if(1&lt;l.size)for(var h=0;h&lt;l.size;++h){var p=l.name.replace(&quot;[0]&quot;,&quot;[&quot;+h+&quot;]&quot;);a(f,new i(p,e.id(p),t.getUniformLocation(s,p),l))}else a(f,new i(l.name,e.id(l.name),t.getUniformLocation(s,l.name),l));for(u=t.getProgramParameter(s,35721),n.profile&amp;&amp;(r.stats.attributesCount=u),r=r.attributes,c=0;c&lt;u;++c)(l=t.getActiveAttrib(s,c))&amp;&amp;a(r,new i(l.name,e.id(l.name),t.getAttribLocation(s,l.name),l))}var c={},u={},f={},h=[],p=0;return n.profile&amp;&amp;(r.getMaxUniformsCount=function(){var t=0;return h.forEach((function(e){e.stats.uniformsCount&gt;t&amp;&amp;(t=e.stats.uniformsCount)})),t},r.getMaxAttributesCount=function(){var t=0;return h.forEach((function(e){e.stats.attributesCount&gt;t&amp;&amp;(t=e.stats.attributesCount)})),t}),{clear:function(){var e=t.deleteShader.bind(t);Z(c).forEach(e),c={},Z(u).forEach(e),u={},h.forEach((function(e){t.deleteProgram(e.program)})),h.length=0,f={},r.shaderCount=0},program:function(t,e,n,i){var a=f[e];a||(a=f[e]={});var o=a[t];return o&amp;&amp;!i?o:(e=new s(e,t),r.shaderCount++,l(e,n,i),o||(a[t]=e),h.push(e),e)},restore:function(){c={},u={};for(var t=0;t&lt;h.length;++t)l(h[t],null,h[t].attributes.map((function(t){return[t.location,t.name]})))},shader:o,frag:-1,vert:-1}}function C(t,e,r,n,i,a,o){function s(i){var a;a=null===e.next?5121:e.next.colorAttachments[0].texture._texture.type;var o=0,s=0,l=n.framebufferWidth,c=n.framebufferHeight,u=null;return X(i)?u=i:i&amp;&amp;(o=0|i.x,s=0|i.y,l=0|(i.width||n.framebufferWidth-o),c=0|(i.height||n.framebufferHeight-s),u=i.data||null),r(),i=l*c*4,u||(5121===a?u=new Uint8Array(i):5126===a&amp;&amp;(u=u||new Float32Array(i))),t.pixelStorei(3333,4),t.readPixels(o,s,l,c,6408,a,u),u}return function(t){return t&amp;&amp;&quot;framebuffer&quot;in t?function(t){var r;return e.setFBO({framebuffer:t.framebuffer},(function(){r=s(t)})),r}(t):s(t)}}function L(t){return Array.prototype.slice.call(t)}function I(t){return L(t).join(&quot;&quot;)}function P(){function t(){var t=[],e=[];return U((function(){t.push.apply(t,L(arguments))}),{def:function(){var n=&quot;v&quot;+r++;return e.push(n),0&lt;arguments.length&amp;&amp;(t.push(n,&quot;=&quot;),t.push.apply(t,L(arguments)),t.push(&quot;;&quot;)),n},toString:function(){return I([0&lt;e.length?&quot;var &quot;+e.join(&quot;,&quot;)+&quot;;&quot;:&quot;&quot;,I(t)])}})}function e(){function e(t,e){n(t,e,&quot;=&quot;,r.def(t,e),&quot;;&quot;)}var r=t(),n=t(),i=r.toString,a=n.toString;return U((function(){r.apply(r,L(arguments))}),{def:r.def,entry:r,exit:n,save:e,set:function(t,n,i){e(t,n),r(t,n,&quot;=&quot;,i,&quot;;&quot;)},toString:function(){return i()+a()}})}var r=0,n=[],i=[],a=t(),o={};return{global:a,link:function(t){for(var e=0;e&lt;i.length;++e)if(i[e]===t)return n[e];return e=&quot;g&quot;+r++,n.push(e),i.push(t),e},block:t,proc:function(t,r){function n(){var t=&quot;a&quot;+i.length;return i.push(t),t}var i=[];r=r||0;for(var a=0;a&lt;r;++a)n();var s=(a=e()).toString;return o[t]=U(a,{arg:n,toString:function(){return I([&quot;function(&quot;,i.join(),&quot;){&quot;,s(),&quot;}&quot;])}})},scope:e,cond:function(){var t=I(arguments),r=e(),n=e(),i=r.toString,a=n.toString;return U(r,{then:function(){return r.apply(r,L(arguments)),this},else:function(){return n.apply(n,L(arguments)),this},toString:function(){var e=a();return e&amp;&amp;(e=&quot;else{&quot;+e+&quot;}&quot;),I([&quot;if(&quot;,t,&quot;){&quot;,i(),&quot;}&quot;,e])}})},compile:function(){var t=['&quot;use strict&quot;;',a,&quot;return {&quot;];Object.keys(o).forEach((function(e){t.push('&quot;',e,'&quot;:',o[e].toString(),&quot;,&quot;)})),t.push(&quot;}&quot;);var e=I(t).replace(/;/g,&quot;;\n&quot;).replace(/}/g,&quot;}\n&quot;).replace(/{/g,&quot;{\n&quot;);return Function.apply(null,n.concat(e)).apply(null,i)}}}function z(t){return Array.isArray(t)||X(t)||l(t)}function O(t){return t.sort((function(t,e){return&quot;viewport&quot;===t?-1:&quot;viewport&quot;===e?1:t&lt;e?-1:1}))}function D(t,e,r,n){this.thisDep=t,this.contextDep=e,this.propDep=r,this.append=n}function R(t){return t&amp;&amp;!(t.thisDep||t.contextDep||t.propDep)}function F(t){return new D(!1,!1,!1,t)}function B(t,e){var r=t.type;return 0===r?new D(!0,1&lt;=(r=t.data.length),2&lt;=r,e):4===r?new D((r=t.data).thisDep,r.contextDep,r.propDep,e):new D(3===r,2===r,1===r,e)}function N(t,e,r,n,i,o,s,l,c,u,f,h,p,d,g){function v(t){return t.replace(&quot;.&quot;,&quot;_&quot;)}function y(t,e,r){var n=v(t);rt.push(t),et[n]=tt[n]=!!r,it[n]=e}function x(t,e,r){var n=v(t);rt.push(t),Array.isArray(r)?(tt[n]=r.slice(),et[n]=r.slice()):tt[n]=et[n]=r,at[n]=e}function b(){var t=P(),r=t.link,n=t.global;t.id=lt++,t.batchId=&quot;0&quot;;var i=r(ot),a=t.shared={props:&quot;a0&quot;};Object.keys(ot).forEach((function(t){a[t]=n.def(i,&quot;.&quot;,t)}));var o=t.next={},s=t.current={};Object.keys(at).forEach((function(t){Array.isArray(tt[t])&amp;&amp;(o[t]=n.def(a.next,&quot;.&quot;,t),s[t]=n.def(a.current,&quot;.&quot;,t))}));var l=t.constants={};Object.keys(st).forEach((function(t){l[t]=n.def(JSON.stringify(st[t]))})),t.invoke=function(e,n){switch(n.type){case 0:var i=[&quot;this&quot;,a.context,a.props,t.batchId];return e.def(r(n.data),&quot;.call(&quot;,i.slice(0,Math.max(n.data.length+1,4)),&quot;)&quot;);case 1:return e.def(a.props,n.data);case 2:return e.def(a.context,n.data);case 3:return e.def(&quot;this&quot;,n.data);case 4:return n.data.append(t,e),n.data.ref}},t.attribCache={};var c={};return t.scopeAttrib=function(t){if((t=e.id(t))in c)return c[t];var n=u.scope[t];return n||(n=u.scope[t]=new Z),c[t]=r(n)},t}function _(t,e){var r=t.static,n=t.dynamic;if(&quot;framebuffer&quot;in r){var i=r.framebuffer;return i?(i=l.getFramebuffer(i),F((function(t,e){var r=t.link(i),n=t.shared;return e.set(n.framebuffer,&quot;.next&quot;,r),n=n.context,e.set(n,&quot;.framebufferWidth&quot;,r+&quot;.width&quot;),e.set(n,&quot;.framebufferHeight&quot;,r+&quot;.height&quot;),r}))):F((function(t,e){var r=t.shared;return e.set(r.framebuffer,&quot;.next&quot;,&quot;null&quot;),r=r.context,e.set(r,&quot;.framebufferWidth&quot;,r+&quot;.drawingBufferWidth&quot;),e.set(r,&quot;.framebufferHeight&quot;,r+&quot;.drawingBufferHeight&quot;),&quot;null&quot;}))}if(&quot;framebuffer&quot;in n){var a=n.framebuffer;return B(a,(function(t,e){var r=t.invoke(e,a),n=t.shared,i=n.framebuffer;r=e.def(i,&quot;.getFramebuffer(&quot;,r,&quot;)&quot;);return e.set(i,&quot;.next&quot;,r),n=n.context,e.set(n,&quot;.framebufferWidth&quot;,r+&quot;?&quot;+r+&quot;.width:&quot;+n+&quot;.drawingBufferWidth&quot;),e.set(n,&quot;.framebufferHeight&quot;,r+&quot;?&quot;+r+&quot;.height:&quot;+n+&quot;.drawingBufferHeight&quot;),r}))}return null}function w(t,r,n){function i(t){if(t in a){var r=e.id(a[t]);return(t=F((function(){return r}))).id=r,t}if(t in o){var n=o[t];return B(n,(function(t,e){var r=t.invoke(e,n);return e.def(t.shared.strings,&quot;.id(&quot;,r,&quot;)&quot;)}))}return null}var a=t.static,o=t.dynamic,s=i(&quot;frag&quot;),l=i(&quot;vert&quot;),c=null;return R(s)&amp;&amp;R(l)?(c=f.program(l.id,s.id,null,n),t=F((function(t,e){return t.link(c)}))):t=new D(s&amp;&amp;s.thisDep||l&amp;&amp;l.thisDep,s&amp;&amp;s.contextDep||l&amp;&amp;l.contextDep,s&amp;&amp;s.propDep||l&amp;&amp;l.propDep,(function(t,e){var r,n,i=t.shared.shader;return r=s?s.append(t,e):e.def(i,&quot;.&quot;,&quot;frag&quot;),n=l?l.append(t,e):e.def(i,&quot;.&quot;,&quot;vert&quot;),e.def(i+&quot;.program(&quot;+n+&quot;,&quot;+r+&quot;)&quot;)})),{frag:s,vert:l,progVar:t,program:c}}function T(t,e){function r(t,e){if(t in n){var r=0|n[t];return F((function(t,n){return e&amp;&amp;(t.OFFSET=r),r}))}if(t in i){var o=i[t];return B(o,(function(t,r){var n=t.invoke(r,o);return e&amp;&amp;(t.OFFSET=n),n}))}return e&amp;&amp;a?F((function(t,e){return t.OFFSET=&quot;0&quot;,0})):null}var n=t.static,i=t.dynamic,a=function(){if(&quot;elements&quot;in n){var t=n.elements;z(t)?t=o.getElements(o.create(t,!0)):t&amp;&amp;(t=o.getElements(t));var e=F((function(e,r){if(t){var n=e.link(t);return e.ELEMENTS=n}return e.ELEMENTS=null}));return e.value=t,e}if(&quot;elements&quot;in i){var r=i.elements;return B(r,(function(t,e){var n=(i=t.shared).isBufferArgs,i=i.elements,a=t.invoke(e,r),o=e.def(&quot;null&quot;);n=e.def(n,&quot;(&quot;,a,&quot;)&quot;),a=t.cond(n).then(o,&quot;=&quot;,i,&quot;.createStream(&quot;,a,&quot;);&quot;).else(o,&quot;=&quot;,i,&quot;.getElements(&quot;,a,&quot;);&quot;);return e.entry(a),e.exit(t.cond(n).then(i,&quot;.destroyStream(&quot;,o,&quot;);&quot;)),t.ELEMENTS=o}))}return null}(),s=r(&quot;offset&quot;,!0);return{elements:a,primitive:function(){if(&quot;primitive&quot;in n){var t=n.primitive;return F((function(e,r){return nt[t]}))}if(&quot;primitive&quot;in i){var e=i.primitive;return B(e,(function(t,r){var n=t.constants.primTypes,i=t.invoke(r,e);return r.def(n,&quot;[&quot;,i,&quot;]&quot;)}))}return a?R(a)?a.value?F((function(t,e){return e.def(t.ELEMENTS,&quot;.primType&quot;)})):F((function(){return 4})):new D(a.thisDep,a.contextDep,a.propDep,(function(t,e){var r=t.ELEMENTS;return e.def(r,&quot;?&quot;,r,&quot;.primType:&quot;,4)})):null}(),count:function(){if(&quot;count&quot;in n){var t=0|n.count;return F((function(){return t}))}if(&quot;count&quot;in i){var e=i.count;return B(e,(function(t,r){return t.invoke(r,e)}))}return a?R(a)?a?s?new D(s.thisDep,s.contextDep,s.propDep,(function(t,e){return e.def(t.ELEMENTS,&quot;.vertCount-&quot;,t.OFFSET)})):F((function(t,e){return e.def(t.ELEMENTS,&quot;.vertCount&quot;)})):F((function(){return-1})):new D(a.thisDep||s.thisDep,a.contextDep||s.contextDep,a.propDep||s.propDep,(function(t,e){var r=t.ELEMENTS;return t.OFFSET?e.def(r,&quot;?&quot;,r,&quot;.vertCount-&quot;,t.OFFSET,&quot;:-1&quot;):e.def(r,&quot;?&quot;,r,&quot;.vertCount:-1&quot;)})):null}(),instances:r(&quot;instances&quot;,!1),offset:s}}function k(t,r){var n=t.static,a=t.dynamic,o={};return Object.keys(n).forEach((function(t){var r=n[t],a=e.id(t),s=new Z;if(z(r))s.state=1,s.buffer=i.getBuffer(i.create(r,34962,!1,!0)),s.type=0;else if(c=i.getBuffer(r))s.state=1,s.buffer=c,s.type=0;else if(&quot;constant&quot;in r){var l=r.constant;s.buffer=&quot;null&quot;,s.state=2,&quot;number&quot;==typeof l?s.x=l:wt.forEach((function(t,e){e&lt;l.length&amp;&amp;(s[t]=l[e])}))}else{var c=z(r.buffer)?i.getBuffer(i.create(r.buffer,34962,!1,!0)):i.getBuffer(r.buffer),u=0|r.offset,f=0|r.stride,h=0|r.size,p=!!r.normalized,d=0;&quot;type&quot;in r&amp;&amp;(d=Q[r.type]),r=0|r.divisor,s.buffer=c,s.state=1,s.size=h,s.normalized=p,s.type=d||c.dtype,s.offset=u,s.stride=f,s.divisor=r}o[t]=F((function(t,e){var r=t.attribCache;if(a in r)return r[a];var n={isStream:!1};return Object.keys(s).forEach((function(t){n[t]=s[t]})),s.buffer&amp;&amp;(n.buffer=t.link(s.buffer),n.type=n.type||n.buffer+&quot;.dtype&quot;),r[a]=n}))})),Object.keys(a).forEach((function(t){var e=a[t];o[t]=B(e,(function(t,r){function n(t){r(l[t],&quot;=&quot;,i,&quot;.&quot;,t,&quot;|0;&quot;)}var i=t.invoke(r,e),a=t.shared,o=t.constants,s=a.isBufferArgs,l=(a=a.buffer,{isStream:r.def(!1)}),c=new Z;c.state=1,Object.keys(c).forEach((function(t){l[t]=r.def(&quot;&quot;+c[t])}));var u=l.buffer,f=l.type;return r(&quot;if(&quot;,s,&quot;(&quot;,i,&quot;)){&quot;,l.isStream,&quot;=true;&quot;,u,&quot;=&quot;,a,&quot;.createStream(&quot;,34962,&quot;,&quot;,i,&quot;);&quot;,f,&quot;=&quot;,u,&quot;.dtype;&quot;,&quot;}else{&quot;,u,&quot;=&quot;,a,&quot;.getBuffer(&quot;,i,&quot;);&quot;,&quot;if(&quot;,u,&quot;){&quot;,f,&quot;=&quot;,u,&quot;.dtype;&quot;,'}else if(&quot;constant&quot; in ',i,&quot;){&quot;,l.state,&quot;=&quot;,2,&quot;;&quot;,&quot;if(typeof &quot;+i+'.constant === &quot;number&quot;){',l[wt[0]],&quot;=&quot;,i,&quot;.constant;&quot;,wt.slice(1).map((function(t){return l[t]})).join(&quot;=&quot;),&quot;=0;&quot;,&quot;}else{&quot;,wt.map((function(t,e){return l[t]+&quot;=&quot;+i+&quot;.constant.length&gt;&quot;+e+&quot;?&quot;+i+&quot;.constant[&quot;+e+&quot;]:0;&quot;})).join(&quot;&quot;),&quot;}}else{&quot;,&quot;if(&quot;,s,&quot;(&quot;,i,&quot;.buffer)){&quot;,u,&quot;=&quot;,a,&quot;.createStream(&quot;,34962,&quot;,&quot;,i,&quot;.buffer);&quot;,&quot;}else{&quot;,u,&quot;=&quot;,a,&quot;.getBuffer(&quot;,i,&quot;.buffer);&quot;,&quot;}&quot;,f,'=&quot;type&quot; in ',i,&quot;?&quot;,o.glTypes,&quot;[&quot;,i,&quot;.type]:&quot;,u,&quot;.dtype;&quot;,l.normalized,&quot;=!!&quot;,i,&quot;.normalized;&quot;),n(&quot;size&quot;),n(&quot;offset&quot;),n(&quot;stride&quot;),n(&quot;divisor&quot;),r(&quot;}}&quot;),r.exit(&quot;if(&quot;,l.isStream,&quot;){&quot;,a,&quot;.destroyStream(&quot;,u,&quot;);&quot;,&quot;}&quot;),l}))})),o}function M(t,e,n,i,o){function s(t){var e=c[t];e&amp;&amp;(h[t]=e)}var l=function(t,e){if(&quot;string&quot;==typeof(r=t.static).frag&amp;&amp;&quot;string&quot;==typeof r.vert){if(0&lt;Object.keys(e.dynamic).length)return null;var r=e.static,n=Object.keys(r);if(0&lt;n.length&amp;&amp;&quot;number&quot;==typeof r[n[0]]){for(var i=[],a=0;a&lt;n.length;++a)i.push([0|r[n[a]],n[a]]);return i}}return null}(t,e),c=function(t,e,r){function n(t){if(t in i){var r=i[t];t=!0;var n,o,s=0|r.x,l=0|r.y;return&quot;width&quot;in r?n=0|r.width:t=!1,&quot;height&quot;in r?o=0|r.height:t=!1,new D(!t&amp;&amp;e&amp;&amp;e.thisDep,!t&amp;&amp;e&amp;&amp;e.contextDep,!t&amp;&amp;e&amp;&amp;e.propDep,(function(t,e){var i=t.shared.context,a=n;&quot;width&quot;in r||(a=e.def(i,&quot;.&quot;,&quot;framebufferWidth&quot;,&quot;-&quot;,s));var c=o;return&quot;height&quot;in r||(c=e.def(i,&quot;.&quot;,&quot;framebufferHeight&quot;,&quot;-&quot;,l)),[s,l,a,c]}))}if(t in a){var c=a[t];return t=B(c,(function(t,e){var r=t.invoke(e,c),n=t.shared.context,i=e.def(r,&quot;.x|0&quot;),a=e.def(r,&quot;.y|0&quot;);return[i,a,e.def('&quot;width&quot; in ',r,&quot;?&quot;,r,&quot;.width|0:&quot;,&quot;(&quot;,n,&quot;.&quot;,&quot;framebufferWidth&quot;,&quot;-&quot;,i,&quot;)&quot;),r=e.def('&quot;height&quot; in ',r,&quot;?&quot;,r,&quot;.height|0:&quot;,&quot;(&quot;,n,&quot;.&quot;,&quot;framebufferHeight&quot;,&quot;-&quot;,a,&quot;)&quot;)]})),e&amp;&amp;(t.thisDep=t.thisDep||e.thisDep,t.contextDep=t.contextDep||e.contextDep,t.propDep=t.propDep||e.propDep),t}return e?new D(e.thisDep,e.contextDep,e.propDep,(function(t,e){var r=t.shared.context;return[0,0,e.def(r,&quot;.&quot;,&quot;framebufferWidth&quot;),e.def(r,&quot;.&quot;,&quot;framebufferHeight&quot;)]})):null}var i=t.static,a=t.dynamic;if(t=n(&quot;viewport&quot;)){var o=t;t=new D(t.thisDep,t.contextDep,t.propDep,(function(t,e){var r=o.append(t,e),n=t.shared.context;return e.set(n,&quot;.viewportWidth&quot;,r[2]),e.set(n,&quot;.viewportHeight&quot;,r[3]),r}))}return{viewport:t,scissor_box:n(&quot;scissor.box&quot;)}}(t,d=_(t)),f=T(t),h=function(t,e){var r=t.static,n=t.dynamic,i={};return rt.forEach((function(t){function e(e,a){if(t in r){var s=e(r[t]);i[o]=F((function(){return s}))}else if(t in n){var l=n[t];i[o]=B(l,(function(t,e){return a(t,e,t.invoke(e,l))}))}}var o=v(t);switch(t){case&quot;cull.enable&quot;:case&quot;blend.enable&quot;:case&quot;dither&quot;:case&quot;stencil.enable&quot;:case&quot;depth.enable&quot;:case&quot;scissor.enable&quot;:case&quot;polygonOffset.enable&quot;:case&quot;sample.alpha&quot;:case&quot;sample.enable&quot;:case&quot;depth.mask&quot;:return e((function(t){return t}),(function(t,e,r){return r}));case&quot;depth.func&quot;:return e((function(t){return Mt[t]}),(function(t,e,r){return e.def(t.constants.compareFuncs,&quot;[&quot;,r,&quot;]&quot;)}));case&quot;depth.range&quot;:return e((function(t){return t}),(function(t,e,r){return[e.def(&quot;+&quot;,r,&quot;[0]&quot;),e=e.def(&quot;+&quot;,r,&quot;[1]&quot;)]}));case&quot;blend.func&quot;:return e((function(t){return[kt[&quot;srcRGB&quot;in t?t.srcRGB:t.src],kt[&quot;dstRGB&quot;in t?t.dstRGB:t.dst],kt[&quot;srcAlpha&quot;in t?t.srcAlpha:t.src],kt[&quot;dstAlpha&quot;in t?t.dstAlpha:t.dst]]}),(function(t,e,r){function n(t,n){return e.def('&quot;',t,n,'&quot; in ',r,&quot;?&quot;,r,&quot;.&quot;,t,n,&quot;:&quot;,r,&quot;.&quot;,t)}t=t.constants.blendFuncs;var i=n(&quot;src&quot;,&quot;RGB&quot;),a=n(&quot;dst&quot;,&quot;RGB&quot;),o=(i=e.def(t,&quot;[&quot;,i,&quot;]&quot;),e.def(t,&quot;[&quot;,n(&quot;src&quot;,&quot;Alpha&quot;),&quot;]&quot;));return[i,a=e.def(t,&quot;[&quot;,a,&quot;]&quot;),o,t=e.def(t,&quot;[&quot;,n(&quot;dst&quot;,&quot;Alpha&quot;),&quot;]&quot;)]}));case&quot;blend.equation&quot;:return e((function(t){return&quot;string&quot;==typeof t?[J[t],J[t]]:&quot;object&quot;==typeof t?[J[t.rgb],J[t.alpha]]:void 0}),(function(t,e,r){var n=t.constants.blendEquations,i=e.def(),a=e.def();return(t=t.cond(&quot;typeof &quot;,r,'===&quot;string&quot;')).then(i,&quot;=&quot;,a,&quot;=&quot;,n,&quot;[&quot;,r,&quot;];&quot;),t.else(i,&quot;=&quot;,n,&quot;[&quot;,r,&quot;.rgb];&quot;,a,&quot;=&quot;,n,&quot;[&quot;,r,&quot;.alpha];&quot;),e(t),[i,a]}));case&quot;blend.color&quot;:return e((function(t){return a(4,(function(e){return+t[e]}))}),(function(t,e,r){return a(4,(function(t){return e.def(&quot;+&quot;,r,&quot;[&quot;,t,&quot;]&quot;)}))}));case&quot;stencil.mask&quot;:return e((function(t){return 0|t}),(function(t,e,r){return e.def(r,&quot;|0&quot;)}));case&quot;stencil.func&quot;:return e((function(t){return[Mt[t.cmp||&quot;keep&quot;],t.ref||0,&quot;mask&quot;in t?t.mask:-1]}),(function(t,e,r){return[t=e.def('&quot;cmp&quot; in ',r,&quot;?&quot;,t.constants.compareFuncs,&quot;[&quot;,r,&quot;.cmp]&quot;,&quot;:&quot;,7680),e.def(r,&quot;.ref|0&quot;),e=e.def('&quot;mask&quot; in ',r,&quot;?&quot;,r,&quot;.mask|0:-1&quot;)]}));case&quot;stencil.opFront&quot;:case&quot;stencil.opBack&quot;:return e((function(e){return[&quot;stencil.opBack&quot;===t?1029:1028,At[e.fail||&quot;keep&quot;],At[e.zfail||&quot;keep&quot;],At[e.zpass||&quot;keep&quot;]]}),(function(e,r,n){function i(t){return r.def('&quot;',t,'&quot; in ',n,&quot;?&quot;,a,&quot;[&quot;,n,&quot;.&quot;,t,&quot;]:&quot;,7680)}var a=e.constants.stencilOps;return[&quot;stencil.opBack&quot;===t?1029:1028,i(&quot;fail&quot;),i(&quot;zfail&quot;),i(&quot;zpass&quot;)]}));case&quot;polygonOffset.offset&quot;:return e((function(t){return[0|t.factor,0|t.units]}),(function(t,e,r){return[e.def(r,&quot;.factor|0&quot;),e=e.def(r,&quot;.units|0&quot;)]}));case&quot;cull.face&quot;:return e((function(t){var e=0;return&quot;front&quot;===t?e=1028:&quot;back&quot;===t&amp;&amp;(e=1029),e}),(function(t,e,r){return e.def(r,'===&quot;front&quot;?',1028,&quot;:&quot;,1029)}));case&quot;lineWidth&quot;:return e((function(t){return t}),(function(t,e,r){return r}));case&quot;frontFace&quot;:return e((function(t){return St[t]}),(function(t,e,r){return e.def(r+'===&quot;cw&quot;?2304:2305')}));case&quot;colorMask&quot;:return e((function(t){return t.map((function(t){return!!t}))}),(function(t,e,r){return a(4,(function(t){return&quot;!!&quot;+r+&quot;[&quot;+t+&quot;]&quot;}))}));case&quot;sample.coverage&quot;:return e((function(t){return[&quot;value&quot;in t?t.value:1,!!t.invert]}),(function(t,e,r){return[e.def('&quot;value&quot; in ',r,&quot;?+&quot;,r,&quot;.value:1&quot;),e=e.def(&quot;!!&quot;,r,&quot;.invert&quot;)]}))}})),i}(t),p=w(t,0,l);s(&quot;viewport&quot;),s(v(&quot;scissor.box&quot;));var d,g=0&lt;Object.keys(h).length;if((d={framebuffer:d,draw:f,shader:p,state:h,dirty:g,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}}).profile=function(t){var e,r=t.static;if(t=t.dynamic,&quot;profile&quot;in r){var n=!!r.profile;(e=F((function(t,e){return n}))).enable=n}else if(&quot;profile&quot;in t){var i=t.profile;e=B(i,(function(t,e){return t.invoke(e,i)}))}return e}(t),d.uniforms=function(t,e){var r=t.static,n=t.dynamic,i={};return Object.keys(r).forEach((function(t){var e,n=r[t];if(&quot;number&quot;==typeof n||&quot;boolean&quot;==typeof n)e=F((function(){return n}));else if(&quot;function&quot;==typeof n){var o=n._reglType;&quot;texture2d&quot;===o||&quot;textureCube&quot;===o?e=F((function(t){return t.link(n)})):&quot;framebuffer&quot;!==o&amp;&amp;&quot;framebufferCube&quot;!==o||(e=F((function(t){return t.link(n.color[0])})))}else m(n)&amp;&amp;(e=F((function(t){return t.global.def(&quot;[&quot;,a(n.length,(function(t){return n[t]})),&quot;]&quot;)})));e.value=n,i[t]=e})),Object.keys(n).forEach((function(t){var e=n[t];i[t]=B(e,(function(t,r){return t.invoke(r,e)}))})),i}(n),d.drawVAO=d.scopeVAO=function(t,e){var r=t.static,n=t.dynamic;if(&quot;vao&quot;in r){var i=r.vao;return null!==i&amp;&amp;null===u.getVAO(i)&amp;&amp;(i=u.createVAO(i)),F((function(t){return t.link(u.getVAO(i))}))}if(&quot;vao&quot;in n){var a=n.vao;return B(a,(function(t,e){var r=t.invoke(e,a);return e.def(t.shared.vao+&quot;.getVAO(&quot;+r+&quot;)&quot;)}))}return null}(t),!d.drawVAO&amp;&amp;p.program&amp;&amp;!l&amp;&amp;r.angle_instanced_arrays){var y=!0;if(t=p.program.attributes.map((function(t){return t=e.static[t],y=y&amp;&amp;!!t,t})),y&amp;&amp;0&lt;t.length){var x=u.getVAO(u.createVAO(t));d.drawVAO=new D(null,null,null,(function(t,e){return t.link(x)})),d.useVAO=!0}}return l?d.useVAO=!0:d.attributes=k(e),d.context=function(t){var e=t.static,r=t.dynamic,n={};return Object.keys(e).forEach((function(t){var r=e[t];n[t]=F((function(t,e){return&quot;number&quot;==typeof r||&quot;boolean&quot;==typeof r?&quot;&quot;+r:t.link(r)}))})),Object.keys(r).forEach((function(t){var e=r[t];n[t]=B(e,(function(t,r){return t.invoke(r,e)}))})),n}(i),d}function A(t,e,r){var n=t.shared.context,i=t.scope();Object.keys(r).forEach((function(a){e.save(n,&quot;.&quot;+a),i(n,&quot;.&quot;,a,&quot;=&quot;,r[a].append(t,e),&quot;;&quot;)})),e(i)}function S(t,e,r,n){var i,a=(s=t.shared).gl,o=s.framebuffer;$&amp;&amp;(i=e.def(s.extensions,&quot;.webgl_draw_buffers&quot;));var s=(l=t.constants).drawBuffer,l=l.backBuffer;t=r?r.append(t,e):e.def(o,&quot;.next&quot;),n||e(&quot;if(&quot;,t,&quot;!==&quot;,o,&quot;.cur){&quot;),e(&quot;if(&quot;,t,&quot;){&quot;,a,&quot;.bindFramebuffer(&quot;,36160,&quot;,&quot;,t,&quot;.framebuffer);&quot;),$&amp;&amp;e(i,&quot;.drawBuffersWEBGL(&quot;,s,&quot;[&quot;,t,&quot;.colorAttachments.length]);&quot;),e(&quot;}else{&quot;,a,&quot;.bindFramebuffer(&quot;,36160,&quot;,null);&quot;),$&amp;&amp;e(i,&quot;.drawBuffersWEBGL(&quot;,l,&quot;);&quot;),e(&quot;}&quot;,o,&quot;.cur=&quot;,t,&quot;;&quot;),n||e(&quot;}&quot;)}function E(t,e,r){var n=t.shared,i=n.gl,o=t.current,s=t.next,l=n.current,c=n.next,u=t.cond(l,&quot;.dirty&quot;);rt.forEach((function(e){var n,f;if(!((e=v(e))in r.state))if(e in s){n=s[e],f=o[e];var h=a(tt[e].length,(function(t){return u.def(n,&quot;[&quot;,t,&quot;]&quot;)}));u(t.cond(h.map((function(t,e){return t+&quot;!==&quot;+f+&quot;[&quot;+e+&quot;]&quot;})).join(&quot;||&quot;)).then(i,&quot;.&quot;,at[e],&quot;(&quot;,h,&quot;);&quot;,h.map((function(t,e){return f+&quot;[&quot;+e+&quot;]=&quot;+t})).join(&quot;;&quot;),&quot;;&quot;))}else n=u.def(c,&quot;.&quot;,e),h=t.cond(n,&quot;!==&quot;,l,&quot;.&quot;,e),u(h),e in it?h(t.cond(n).then(i,&quot;.enable(&quot;,it[e],&quot;);&quot;).else(i,&quot;.disable(&quot;,it[e],&quot;);&quot;),l,&quot;.&quot;,e,&quot;=&quot;,n,&quot;;&quot;):h(i,&quot;.&quot;,at[e],&quot;(&quot;,n,&quot;);&quot;,l,&quot;.&quot;,e,&quot;=&quot;,n,&quot;;&quot;)})),0===Object.keys(r.state).length&amp;&amp;u(l,&quot;.dirty=false;&quot;),e(u)}function C(t,e,r,n){var i=t.shared,a=t.current,o=i.current,s=i.gl;O(Object.keys(r)).forEach((function(i){var l=r[i];if(!n||n(l)){var c=l.append(t,e);if(it[i]){var u=it[i];R(l)?e(s,c?&quot;.enable(&quot;:&quot;.disable(&quot;,u,&quot;);&quot;):e(t.cond(c).then(s,&quot;.enable(&quot;,u,&quot;);&quot;).else(s,&quot;.disable(&quot;,u,&quot;);&quot;)),e(o,&quot;.&quot;,i,&quot;=&quot;,c,&quot;;&quot;)}else if(m(c)){var f=a[i];e(s,&quot;.&quot;,at[i],&quot;(&quot;,c,&quot;);&quot;,c.map((function(t,e){return f+&quot;[&quot;+e+&quot;]=&quot;+t})).join(&quot;;&quot;),&quot;;&quot;)}else e(s,&quot;.&quot;,at[i],&quot;(&quot;,c,&quot;);&quot;,o,&quot;.&quot;,i,&quot;=&quot;,c,&quot;;&quot;)}}))}function L(t,e){K&amp;&amp;(t.instancing=e.def(t.shared.extensions,&quot;.angle_instanced_arrays&quot;))}function I(t,e,r,n,i){function a(){return&quot;undefined&quot;==typeof performance?&quot;Date.now()&quot;:&quot;performance.now()&quot;}function o(t){t(c=e.def(),&quot;=&quot;,a(),&quot;;&quot;),&quot;string&quot;==typeof i?t(h,&quot;.count+=&quot;,i,&quot;;&quot;):t(h,&quot;.count++;&quot;),d&amp;&amp;(n?t(u=e.def(),&quot;=&quot;,g,&quot;.getNumPendingQueries();&quot;):t(g,&quot;.beginQuery(&quot;,h,&quot;);&quot;))}function s(t){t(h,&quot;.cpuTime+=&quot;,a(),&quot;-&quot;,c,&quot;;&quot;),d&amp;&amp;(n?t(g,&quot;.pushScopeStats(&quot;,u,&quot;,&quot;,g,&quot;.getNumPendingQueries(),&quot;,h,&quot;);&quot;):t(g,&quot;.endQuery();&quot;))}function l(t){var r=e.def(p,&quot;.profile&quot;);e(p,&quot;.profile=&quot;,t,&quot;;&quot;),e.exit(p,&quot;.profile=&quot;,r,&quot;;&quot;)}var c,u,f=t.shared,h=t.stats,p=f.current,g=f.timer;if(r=r.profile){if(R(r))return void(r.enable?(o(e),s(e.exit),l(&quot;true&quot;)):l(&quot;false&quot;));l(r=r.append(t,e))}else r=e.def(p,&quot;.profile&quot;);o(f=t.block()),e(&quot;if(&quot;,r,&quot;){&quot;,f,&quot;}&quot;),s(t=t.block()),e.exit(&quot;if(&quot;,r,&quot;){&quot;,t,&quot;}&quot;)}function N(t,e,r,n,i){function a(r,n,i){function a(){e(&quot;if(!&quot;,u,&quot;.buffer){&quot;,l,&quot;.enableVertexAttribArray(&quot;,c,&quot;);}&quot;);var r,a=i.type;r=i.size?e.def(i.size,&quot;||&quot;,n):n,e(&quot;if(&quot;,u,&quot;.type!==&quot;,a,&quot;||&quot;,u,&quot;.size!==&quot;,r,&quot;||&quot;,p.map((function(t){return u+&quot;.&quot;+t+&quot;!==&quot;+i[t]})).join(&quot;||&quot;),&quot;){&quot;,l,&quot;.bindBuffer(&quot;,34962,&quot;,&quot;,f,&quot;.buffer);&quot;,l,&quot;.vertexAttribPointer(&quot;,[c,r,a,i.normalized,i.stride,i.offset],&quot;);&quot;,u,&quot;.type=&quot;,a,&quot;;&quot;,u,&quot;.size=&quot;,r,&quot;;&quot;,p.map((function(t){return u+&quot;.&quot;+t+&quot;=&quot;+i[t]+&quot;;&quot;})).join(&quot;&quot;),&quot;}&quot;),K&amp;&amp;(a=i.divisor,e(&quot;if(&quot;,u,&quot;.divisor!==&quot;,a,&quot;){&quot;,t.instancing,&quot;.vertexAttribDivisorANGLE(&quot;,[c,a],&quot;);&quot;,u,&quot;.divisor=&quot;,a,&quot;;}&quot;))}function s(){e(&quot;if(&quot;,u,&quot;.buffer){&quot;,l,&quot;.disableVertexAttribArray(&quot;,c,&quot;);&quot;,u,&quot;.buffer=null;&quot;,&quot;}if(&quot;,wt.map((function(t,e){return u+&quot;.&quot;+t+&quot;!==&quot;+h[e]})).join(&quot;||&quot;),&quot;){&quot;,l,&quot;.vertexAttrib4f(&quot;,c,&quot;,&quot;,h,&quot;);&quot;,wt.map((function(t,e){return u+&quot;.&quot;+t+&quot;=&quot;+h[e]+&quot;;&quot;})).join(&quot;&quot;),&quot;}&quot;)}var l=o.gl,c=e.def(r,&quot;.location&quot;),u=e.def(o.attributes,&quot;[&quot;,c,&quot;]&quot;);r=i.state;var f=i.buffer,h=[i.x,i.y,i.z,i.w],p=[&quot;buffer&quot;,&quot;normalized&quot;,&quot;offset&quot;,&quot;stride&quot;];1===r?a():2===r?s():(e(&quot;if(&quot;,r,&quot;===&quot;,1,&quot;){&quot;),a(),e(&quot;}else{&quot;),s(),e(&quot;}&quot;))}var o=t.shared;n.forEach((function(n){var o,s=n.name,l=r.attributes[s];if(l){if(!i(l))return;o=l.append(t,e)}else{if(!i(Et))return;var c=t.scopeAttrib(s);o={},Object.keys(new Z).forEach((function(t){o[t]=e.def(c,&quot;.&quot;,t)}))}a(t.link(n),function(t){switch(t){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}(n.info.type),o)}))}function j(t,r,n,i,o){for(var s,l=t.shared,c=l.gl,u=0;u&lt;i.length;++u){var f,h=(g=i[u]).name,p=g.info.type,d=n.uniforms[h],g=t.link(g)+&quot;.location&quot;;if(d){if(!o(d))continue;if(R(d)){if(h=d.value,35678===p||35680===p)r(c,&quot;.uniform1i(&quot;,g,&quot;,&quot;,(p=t.link(h._texture||h.color[0]._texture))+&quot;.bind());&quot;),r.exit(p,&quot;.unbind();&quot;);else if(35674===p||35675===p||35676===p)d=2,35675===p?d=3:35676===p&amp;&amp;(d=4),r(c,&quot;.uniformMatrix&quot;,d,&quot;fv(&quot;,g,&quot;,false,&quot;,h=t.global.def(&quot;new Float32Array([&quot;+Array.prototype.slice.call(h)+&quot;])&quot;),&quot;);&quot;);else{switch(p){case 5126:s=&quot;1f&quot;;break;case 35664:s=&quot;2f&quot;;break;case 35665:s=&quot;3f&quot;;break;case 35666:s=&quot;4f&quot;;break;case 35670:case 5124:s=&quot;1i&quot;;break;case 35671:case 35667:s=&quot;2i&quot;;break;case 35672:case 35668:s=&quot;3i&quot;;break;case 35673:s=&quot;4i&quot;;break;case 35669:s=&quot;4i&quot;}r(c,&quot;.uniform&quot;,s,&quot;(&quot;,g,&quot;,&quot;,m(h)?Array.prototype.slice.call(h):h,&quot;);&quot;)}continue}f=d.append(t,r)}else{if(!o(Et))continue;f=r.def(l.uniforms,&quot;[&quot;,e.id(h),&quot;]&quot;)}switch(35678===p?r(&quot;if(&quot;,f,&quot;&amp;&amp;&quot;,f,'._reglType===&quot;framebuffer&quot;){',f,&quot;=&quot;,f,&quot;.color[0];&quot;,&quot;}&quot;):35680===p&amp;&amp;r(&quot;if(&quot;,f,&quot;&amp;&amp;&quot;,f,'._reglType===&quot;framebufferCube&quot;){',f,&quot;=&quot;,f,&quot;.color[0];&quot;,&quot;}&quot;),h=1,p){case 35678:case 35680:p=r.def(f,&quot;._texture&quot;),r(c,&quot;.uniform1i(&quot;,g,&quot;,&quot;,p,&quot;.bind());&quot;),r.exit(p,&quot;.unbind();&quot;);continue;case 5124:case 35670:s=&quot;1i&quot;;break;case 35667:case 35671:s=&quot;2i&quot;,h=2;break;case 35668:case 35672:s=&quot;3i&quot;,h=3;break;case 35669:case 35673:s=&quot;4i&quot;,h=4;break;case 5126:s=&quot;1f&quot;;break;case 35664:s=&quot;2f&quot;,h=2;break;case 35665:s=&quot;3f&quot;,h=3;break;case 35666:s=&quot;4f&quot;,h=4;break;case 35674:s=&quot;Matrix2fv&quot;;break;case 35675:s=&quot;Matrix3fv&quot;;break;case 35676:s=&quot;Matrix4fv&quot;}if(r(c,&quot;.uniform&quot;,s,&quot;(&quot;,g,&quot;,&quot;),&quot;M&quot;===s.charAt(0)){g=Math.pow(p-35674+2,2);var v=t.global.def(&quot;new Float32Array(&quot;,g,&quot;)&quot;);r(&quot;false,(Array.isArray(&quot;,f,&quot;)||&quot;,f,&quot; instanceof Float32Array)?&quot;,f,&quot;:(&quot;,a(g,(function(t){return v+&quot;[&quot;+t+&quot;]=&quot;+f+&quot;[&quot;+t+&quot;]&quot;})),&quot;,&quot;,v,&quot;)&quot;)}else r(1&lt;h?a(h,(function(t){return f+&quot;[&quot;+t+&quot;]&quot;})):f);r(&quot;);&quot;)}}function U(t,e,r,n){function i(i){var a=h[i];return a?a.contextDep&amp;&amp;n.contextDynamic||a.propDep?a.append(t,r):a.append(t,e):e.def(f,&quot;.&quot;,i)}function a(){function t(){r(l,&quot;.drawElementsInstancedANGLE(&quot;,[d,m,v,g+&quot;&lt;&lt;((&quot;+v+&quot;-5121)&gt;&gt;1)&quot;,s],&quot;);&quot;)}function e(){r(l,&quot;.drawArraysInstancedANGLE(&quot;,[d,g,m,s],&quot;);&quot;)}p?y?t():(r(&quot;if(&quot;,p,&quot;){&quot;),t(),r(&quot;}else{&quot;),e(),r(&quot;}&quot;)):e()}function o(){function t(){r(u+&quot;.drawElements(&quot;+[d,m,v,g+&quot;&lt;&lt;((&quot;+v+&quot;-5121)&gt;&gt;1)&quot;]+&quot;);&quot;)}function e(){r(u+&quot;.drawArrays(&quot;+[d,g,m]+&quot;);&quot;)}p?y?t():(r(&quot;if(&quot;,p,&quot;){&quot;),t(),r(&quot;}else{&quot;),e(),r(&quot;}&quot;)):e()}var s,l,c=t.shared,u=c.gl,f=c.draw,h=n.draw,p=function(){var i=h.elements,a=e;return i?((i.contextDep&amp;&amp;n.contextDynamic||i.propDep)&amp;&amp;(a=r),i=i.append(t,a)):i=a.def(f,&quot;.&quot;,&quot;elements&quot;),i&amp;&amp;a(&quot;if(&quot;+i+&quot;)&quot;+u+&quot;.bindBuffer(34963,&quot;+i+&quot;.buffer.buffer);&quot;),i}(),d=i(&quot;primitive&quot;),g=i(&quot;offset&quot;),m=function(){var i=h.count,a=e;return i?((i.contextDep&amp;&amp;n.contextDynamic||i.propDep)&amp;&amp;(a=r),i=i.append(t,a)):i=a.def(f,&quot;.&quot;,&quot;count&quot;),i}();if(&quot;number&quot;==typeof m){if(0===m)return}else r(&quot;if(&quot;,m,&quot;){&quot;),r.exit(&quot;}&quot;);K&amp;&amp;(s=i(&quot;instances&quot;),l=t.instancing);var v=p+&quot;.type&quot;,y=h.elements&amp;&amp;R(h.elements);K&amp;&amp;(&quot;number&quot;!=typeof s||0&lt;=s)?&quot;string&quot;==typeof s?(r(&quot;if(&quot;,s,&quot;&gt;0){&quot;),a(),r(&quot;}else if(&quot;,s,&quot;&lt;0){&quot;),o(),r(&quot;}&quot;)):a():o()}function V(t,e,r,n,i){return i=(e=b()).proc(&quot;body&quot;,i),K&amp;&amp;(e.instancing=i.def(e.shared.extensions,&quot;.angle_instanced_arrays&quot;)),t(e,i,r,n),e.compile().body}function H(t,e,r,n){L(t,e),r.useVAO?r.drawVAO?e(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,e),&quot;);&quot;):e(t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;):(e(t.shared.vao,&quot;.setVAO(null);&quot;),N(t,e,r,n.attributes,(function(){return!0}))),j(t,e,r,n.uniforms,(function(){return!0})),U(t,e,e,r)}function G(t,e,r,n){function i(){return!0}t.batchId=&quot;a1&quot;,L(t,e),N(t,e,r,n.attributes,i),j(t,e,r,n.uniforms,i),U(t,e,e,r)}function Y(t,e,r,n){function i(t){return t.contextDep&amp;&amp;o||t.propDep}function a(t){return!i(t)}L(t,e);var o=r.contextDep,s=e.def(),l=e.def();t.shared.props=l,t.batchId=s;var c=t.scope(),u=t.scope();e(c.entry,&quot;for(&quot;,s,&quot;=0;&quot;,s,&quot;&lt;&quot;,&quot;a1&quot;,&quot;;++&quot;,s,&quot;){&quot;,l,&quot;=&quot;,&quot;a0&quot;,&quot;[&quot;,s,&quot;];&quot;,u,&quot;}&quot;,c.exit),r.needsContext&amp;&amp;A(t,u,r.context),r.needsFramebuffer&amp;&amp;S(t,u,r.framebuffer),C(t,u,r.state,i),r.profile&amp;&amp;i(r.profile)&amp;&amp;I(t,u,r,!1,!0),n?(r.useVAO?r.drawVAO?i(r.drawVAO)?u(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,u),&quot;);&quot;):c(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,c),&quot;);&quot;):c(t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;):(c(t.shared.vao,&quot;.setVAO(null);&quot;),N(t,c,r,n.attributes,a),N(t,u,r,n.attributes,i)),j(t,c,r,n.uniforms,a),j(t,u,r,n.uniforms,i),U(t,c,u,r)):(e=t.global.def(&quot;{}&quot;),n=r.shader.progVar.append(t,u),l=u.def(n,&quot;.id&quot;),c=u.def(e,&quot;[&quot;,l,&quot;]&quot;),u(t.shared.gl,&quot;.useProgram(&quot;,n,&quot;.program);&quot;,&quot;if(!&quot;,c,&quot;){&quot;,c,&quot;=&quot;,e,&quot;[&quot;,l,&quot;]=&quot;,t.link((function(e){return V(G,t,r,e,2)})),&quot;(&quot;,n,&quot;);}&quot;,c,&quot;.call(this,a0[&quot;,s,&quot;],&quot;,s,&quot;);&quot;))}function W(t,r){function n(e){var n=r.shader[e];n&amp;&amp;i.set(a.shader,&quot;.&quot;+e,n.append(t,i))}var i=t.proc(&quot;scope&quot;,3);t.batchId=&quot;a2&quot;;var a=t.shared,o=a.current;A(t,i,r.context),r.framebuffer&amp;&amp;r.framebuffer.append(t,i),O(Object.keys(r.state)).forEach((function(e){var n=r.state[e].append(t,i);m(n)?n.forEach((function(r,n){i.set(t.next[e],&quot;[&quot;+n+&quot;]&quot;,r)})):i.set(a.next,&quot;.&quot;+e,n)})),I(t,i,r,!0,!0),[&quot;elements&quot;,&quot;offset&quot;,&quot;count&quot;,&quot;instances&quot;,&quot;primitive&quot;].forEach((function(e){var n=r.draw[e];n&amp;&amp;i.set(a.draw,&quot;.&quot;+e,&quot;&quot;+n.append(t,i))})),Object.keys(r.uniforms).forEach((function(n){i.set(a.uniforms,&quot;[&quot;+e.id(n)+&quot;]&quot;,r.uniforms[n].append(t,i))})),Object.keys(r.attributes).forEach((function(e){var n=r.attributes[e].append(t,i),a=t.scopeAttrib(e);Object.keys(new Z).forEach((function(t){i.set(a,&quot;.&quot;+t,n[t])}))})),r.scopeVAO&amp;&amp;i.set(a.vao,&quot;.targetVAO&quot;,r.scopeVAO.append(t,i)),n(&quot;vert&quot;),n(&quot;frag&quot;),0&lt;Object.keys(r.state).length&amp;&amp;(i(o,&quot;.dirty=true;&quot;),i.exit(o,&quot;.dirty=true;&quot;)),i(&quot;a1(&quot;,t.shared.context,&quot;,a0,&quot;,t.batchId,&quot;);&quot;)}function X(t,e,r){var n=e.static[r];if(n&amp;&amp;function(t){if(&quot;object&quot;==typeof t&amp;&amp;!m(t)){for(var e=Object.keys(t),r=0;r&lt;e.length;++r)if(q.isDynamic(t[e[r]]))return!0;return!1}}(n)){var i=t.global,a=Object.keys(n),o=!1,s=!1,l=!1,c=t.global.def(&quot;{}&quot;);a.forEach((function(e){var r=n[e];if(q.isDynamic(r))&quot;function&quot;==typeof r&amp;&amp;(r=n[e]=q.unbox(r)),e=B(r,null),o=o||e.thisDep,l=l||e.propDep,s=s||e.contextDep;else{switch(i(c,&quot;.&quot;,e,&quot;=&quot;),typeof r){case&quot;number&quot;:i(r);break;case&quot;string&quot;:i('&quot;',r,'&quot;');break;case&quot;object&quot;:Array.isArray(r)&amp;&amp;i(&quot;[&quot;,r.join(),&quot;]&quot;);break;default:i(t.link(r))}i(&quot;;&quot;)}})),e.dynamic[r]=new q.DynamicVariable(4,{thisDep:o,contextDep:s,propDep:l,ref:c,append:function(t,e){a.forEach((function(r){var i=n[r];q.isDynamic(i)&amp;&amp;(i=t.invoke(e,i),e(c,&quot;.&quot;,r,&quot;=&quot;,i,&quot;;&quot;))}))}}),delete e.static[r]}}var Z=u.Record,J={add:32774,subtract:32778,&quot;reverse subtract&quot;:32779};r.ext_blend_minmax&amp;&amp;(J.min=32775,J.max=32776);var K=r.angle_instanced_arrays,$=r.webgl_draw_buffers,tt={dirty:!0,profile:g.profile},et={},rt=[],it={},at={};y(&quot;dither&quot;,3024),y(&quot;blend.enable&quot;,3042),x(&quot;blend.color&quot;,&quot;blendColor&quot;,[0,0,0,0]),x(&quot;blend.equation&quot;,&quot;blendEquationSeparate&quot;,[32774,32774]),x(&quot;blend.func&quot;,&quot;blendFuncSeparate&quot;,[1,0,1,0]),y(&quot;depth.enable&quot;,2929,!0),x(&quot;depth.func&quot;,&quot;depthFunc&quot;,513),x(&quot;depth.range&quot;,&quot;depthRange&quot;,[0,1]),x(&quot;depth.mask&quot;,&quot;depthMask&quot;,!0),x(&quot;colorMask&quot;,&quot;colorMask&quot;,[!0,!0,!0,!0]),y(&quot;cull.enable&quot;,2884),x(&quot;cull.face&quot;,&quot;cullFace&quot;,1029),x(&quot;frontFace&quot;,&quot;frontFace&quot;,2305),x(&quot;lineWidth&quot;,&quot;lineWidth&quot;,1),y(&quot;polygonOffset.enable&quot;,32823),x(&quot;polygonOffset.offset&quot;,&quot;polygonOffset&quot;,[0,0]),y(&quot;sample.alpha&quot;,32926),y(&quot;sample.enable&quot;,32928),x(&quot;sample.coverage&quot;,&quot;sampleCoverage&quot;,[1,!1]),y(&quot;stencil.enable&quot;,2960),x(&quot;stencil.mask&quot;,&quot;stencilMask&quot;,-1),x(&quot;stencil.func&quot;,&quot;stencilFunc&quot;,[519,0,-1]),x(&quot;stencil.opFront&quot;,&quot;stencilOpSeparate&quot;,[1028,7680,7680,7680]),x(&quot;stencil.opBack&quot;,&quot;stencilOpSeparate&quot;,[1029,7680,7680,7680]),y(&quot;scissor.enable&quot;,3089),x(&quot;scissor.box&quot;,&quot;scissor&quot;,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),x(&quot;viewport&quot;,&quot;viewport&quot;,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var ot={gl:t,context:p,strings:e,next:et,current:tt,draw:h,elements:o,buffer:i,shader:f,attributes:u.state,vao:u,uniforms:c,framebuffer:l,extensions:r,timer:d,isBufferArgs:z},st={primTypes:nt,compareFuncs:Mt,blendFuncs:kt,blendEquations:J,stencilOps:At,glTypes:Q,orientationType:St};$&amp;&amp;(st.backBuffer=[1029],st.drawBuffer=a(n.maxDrawbuffers,(function(t){return 0===t?[0]:a(t,(function(t){return 36064+t}))})));var lt=0;return{next:et,current:tt,procs:function(){var t=b(),e=t.proc(&quot;poll&quot;),i=t.proc(&quot;refresh&quot;),o=t.block();e(o),i(o);var s,l=t.shared,c=l.gl,u=l.next,f=l.current;o(f,&quot;.dirty=false;&quot;),S(t,e),S(t,i,null,!0),K&amp;&amp;(s=t.link(K)),r.oes_vertex_array_object&amp;&amp;i(t.link(r.oes_vertex_array_object),&quot;.bindVertexArrayOES(null);&quot;);for(var h=0;h&lt;n.maxAttributes;++h){var p=i.def(l.attributes,&quot;[&quot;,h,&quot;]&quot;),d=t.cond(p,&quot;.buffer&quot;);d.then(c,&quot;.enableVertexAttribArray(&quot;,h,&quot;);&quot;,c,&quot;.bindBuffer(&quot;,34962,&quot;,&quot;,p,&quot;.buffer.buffer);&quot;,c,&quot;.vertexAttribPointer(&quot;,h,&quot;,&quot;,p,&quot;.size,&quot;,p,&quot;.type,&quot;,p,&quot;.normalized,&quot;,p,&quot;.stride,&quot;,p,&quot;.offset);&quot;).else(c,&quot;.disableVertexAttribArray(&quot;,h,&quot;);&quot;,c,&quot;.vertexAttrib4f(&quot;,h,&quot;,&quot;,p,&quot;.x,&quot;,p,&quot;.y,&quot;,p,&quot;.z,&quot;,p,&quot;.w);&quot;,p,&quot;.buffer=null;&quot;),i(d),K&amp;&amp;i(s,&quot;.vertexAttribDivisorANGLE(&quot;,h,&quot;,&quot;,p,&quot;.divisor);&quot;)}return i(t.shared.vao,&quot;.currentVAO=null;&quot;,t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;),Object.keys(it).forEach((function(r){var n=it[r],a=o.def(u,&quot;.&quot;,r),s=t.block();s(&quot;if(&quot;,a,&quot;){&quot;,c,&quot;.enable(&quot;,n,&quot;)}else{&quot;,c,&quot;.disable(&quot;,n,&quot;)}&quot;,f,&quot;.&quot;,r,&quot;=&quot;,a,&quot;;&quot;),i(s),e(&quot;if(&quot;,a,&quot;!==&quot;,f,&quot;.&quot;,r,&quot;){&quot;,s,&quot;}&quot;)})),Object.keys(at).forEach((function(r){var n,s,l=at[r],h=tt[r],p=t.block();p(c,&quot;.&quot;,l,&quot;(&quot;),m(h)?(l=h.length,n=t.global.def(u,&quot;.&quot;,r),s=t.global.def(f,&quot;.&quot;,r),p(a(l,(function(t){return n+&quot;[&quot;+t+&quot;]&quot;})),&quot;);&quot;,a(l,(function(t){return s+&quot;[&quot;+t+&quot;]=&quot;+n+&quot;[&quot;+t+&quot;];&quot;})).join(&quot;&quot;)),e(&quot;if(&quot;,a(l,(function(t){return n+&quot;[&quot;+t+&quot;]!==&quot;+s+&quot;[&quot;+t+&quot;]&quot;})).join(&quot;||&quot;),&quot;){&quot;,p,&quot;}&quot;)):(n=o.def(u,&quot;.&quot;,r),s=o.def(f,&quot;.&quot;,r),p(n,&quot;);&quot;,f,&quot;.&quot;,r,&quot;=&quot;,n,&quot;;&quot;),e(&quot;if(&quot;,n,&quot;!==&quot;,s,&quot;){&quot;,p,&quot;}&quot;)),i(p)})),t.compile()}(),compile:function(t,e,r,n,i){var a=b();return a.stats=a.link(i),Object.keys(e.static).forEach((function(t){X(a,e,t)})),Tt.forEach((function(e){X(a,t,e)})),r=M(t,e,r,n),function(t,e){var r=t.proc(&quot;draw&quot;,1);L(t,r),A(t,r,e.context),S(t,r,e.framebuffer),E(t,r,e),C(t,r,e.state),I(t,r,e,!1,!0);var n=e.shader.progVar.append(t,r);if(r(t.shared.gl,&quot;.useProgram(&quot;,n,&quot;.program);&quot;),e.shader.program)H(t,r,e,e.shader.program);else{r(t.shared.vao,&quot;.setVAO(null);&quot;);var i=t.global.def(&quot;{}&quot;),a=r.def(n,&quot;.id&quot;),o=r.def(i,&quot;[&quot;,a,&quot;]&quot;);r(t.cond(o).then(o,&quot;.call(this,a0);&quot;).else(o,&quot;=&quot;,i,&quot;[&quot;,a,&quot;]=&quot;,t.link((function(r){return V(H,t,e,r,1)})),&quot;(&quot;,n,&quot;);&quot;,o,&quot;.call(this,a0);&quot;))}0&lt;Object.keys(e.state).length&amp;&amp;r(t.shared.current,&quot;.dirty=true;&quot;)}(a,r),W(a,r),function(t,e){function r(t){return t.contextDep&amp;&amp;i||t.propDep}var n=t.proc(&quot;batch&quot;,2);t.batchId=&quot;0&quot;,L(t,n);var i=!1,a=!0;Object.keys(e.context).forEach((function(t){i=i||e.context[t].propDep})),i||(A(t,n,e.context),a=!1);var o=!1;if((s=e.framebuffer)?(s.propDep?i=o=!0:s.contextDep&amp;&amp;i&amp;&amp;(o=!0),o||S(t,n,s)):S(t,n,null),e.state.viewport&amp;&amp;e.state.viewport.propDep&amp;&amp;(i=!0),E(t,n,e),C(t,n,e.state,(function(t){return!r(t)})),e.profile&amp;&amp;r(e.profile)||I(t,n,e,!1,&quot;a1&quot;),e.contextDep=i,e.needsContext=a,e.needsFramebuffer=o,(a=e.shader.progVar).contextDep&amp;&amp;i||a.propDep)Y(t,n,e,null);else if(a=a.append(t,n),n(t.shared.gl,&quot;.useProgram(&quot;,a,&quot;.program);&quot;),e.shader.program)Y(t,n,e,e.shader.program);else{n(t.shared.vao,&quot;.setVAO(null);&quot;);var s=t.global.def(&quot;{}&quot;),l=(o=n.def(a,&quot;.id&quot;),n.def(s,&quot;[&quot;,o,&quot;]&quot;));n(t.cond(l).then(l,&quot;.call(this,a0,a1);&quot;).else(l,&quot;=&quot;,s,&quot;[&quot;,o,&quot;]=&quot;,t.link((function(r){return V(Y,t,e,r,2)})),&quot;(&quot;,a,&quot;);&quot;,l,&quot;.call(this,a0,a1);&quot;))}0&lt;Object.keys(e.state).length&amp;&amp;n(t.shared.current,&quot;.dirty=true;&quot;)}(a,r),a.compile()}}}function j(t,e){for(var r=0;r&lt;t.length;++r)if(t[r]===e)return r;return-1}var U=function(t,e){for(var r=Object.keys(e),n=0;n&lt;r.length;++n)t[r[n]]=e[r[n]];return t},V=0,q={DynamicVariable:t,define:function(r,n){return new t(r,e(n+&quot;&quot;))},isDynamic:function(e){return&quot;function&quot;==typeof e&amp;&amp;!e._reglType||e instanceof t},unbox:function(e,r){return&quot;function&quot;==typeof e?new t(0,e):e},accessor:e},H={next:&quot;function&quot;==typeof requestAnimationFrame?function(t){return requestAnimationFrame(t)}:function(t){return setTimeout(t,16)},cancel:&quot;function&quot;==typeof cancelAnimationFrame?function(t){return cancelAnimationFrame(t)}:clearTimeout},G=&quot;undefined&quot;!=typeof performance&amp;&amp;performance.now?function(){return performance.now()}:function(){return+new Date},Y=s();Y.zero=s();var W=function(t,e){var r=1;e.ext_texture_filter_anisotropic&amp;&amp;(r=t.getParameter(34047));var n=1,i=1;e.webgl_draw_buffers&amp;&amp;(n=t.getParameter(34852),i=t.getParameter(36063));var a=!!e.oes_texture_float;if(a){a=t.createTexture(),t.bindTexture(3553,a),t.texImage2D(3553,0,6408,1,1,0,6408,5126,null);var o=t.createFramebuffer();if(t.bindFramebuffer(36160,o),t.framebufferTexture2D(36160,36064,3553,a,0),t.bindTexture(3553,null),36053!==t.checkFramebufferStatus(36160))a=!1;else{t.viewport(0,0,1,1),t.clearColor(1,0,0,1),t.clear(16384);var s=Y.allocType(5126,4);t.readPixels(0,0,1,1,6408,5126,s),t.getError()?a=!1:(t.deleteFramebuffer(o),t.deleteTexture(a),a=1===s[0]),Y.freeType(s)}}return s=!0,&quot;undefined&quot;!=typeof navigator&amp;&amp;(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent))||(s=t.createTexture(),o=Y.allocType(5121,36),t.activeTexture(33984),t.bindTexture(34067,s),t.texImage2D(34069,0,6408,3,3,0,6408,5121,o),Y.freeType(o),t.bindTexture(34067,null),t.deleteTexture(s),s=!t.getError()),{colorBits:[t.getParameter(3410),t.getParameter(3411),t.getParameter(3412),t.getParameter(3413)],depthBits:t.getParameter(3414),stencilBits:t.getParameter(3415),subpixelBits:t.getParameter(3408),extensions:Object.keys(e).filter((function(t){return!!e[t]})),maxAnisotropic:r,maxDrawbuffers:n,maxColorAttachments:i,pointSizeDims:t.getParameter(33901),lineWidthDims:t.getParameter(33902),maxViewportDims:t.getParameter(3386),maxCombinedTextureUnits:t.getParameter(35661),maxCubeMapSize:t.getParameter(34076),maxRenderbufferSize:t.getParameter(34024),maxTextureUnits:t.getParameter(34930),maxTextureSize:t.getParameter(3379),maxAttributes:t.getParameter(34921),maxVertexUniforms:t.getParameter(36347),maxVertexTextureUnits:t.getParameter(35660),maxVaryingVectors:t.getParameter(36348),maxFragmentUniforms:t.getParameter(36349),glsl:t.getParameter(35724),renderer:t.getParameter(7937),vendor:t.getParameter(7936),version:t.getParameter(7938),readFloat:a,npotTextureCube:s}},X=function(t){return t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Float32Array||t instanceof Float64Array||t instanceof Uint8ClampedArray},Z=function(t){return Object.keys(t).map((function(e){return t[e]}))},J={shape:function(t){for(var e=[];t.length;t=t[0])e.push(t.length);return e},flatten:function(t,e,r,n){var i=1;if(e.length)for(var a=0;a&lt;e.length;++a)i*=e[a];else i=0;switch(r=n||Y.allocType(r,i),e.length){case 0:break;case 1:for(n=e[0],e=0;e&lt;n;++e)r[e]=t[e];break;case 2:for(n=e[0],e=e[1],a=i=0;a&lt;n;++a)for(var o=t[a],s=0;s&lt;e;++s)r[i++]=o[s];break;case 3:c(t,e[0],e[1],e[2],r,0);break;default:!function t(e,r,n,i,a){for(var o=1,s=n+1;s&lt;r.length;++s)o*=r[s];var l=r[n];if(4==r.length-n){var u=r[n+1],f=r[n+2];for(r=r[n+3],s=0;s&lt;l;++s)c(e[s],u,f,r,i,a),a+=o}else for(s=0;s&lt;l;++s)t(e[s],r,n+1,i,a),a+=o}(t,e,0,r,0)}return r}},K={&quot;[object Int8Array]&quot;:5120,&quot;[object Int16Array]&quot;:5122,&quot;[object Int32Array]&quot;:5124,&quot;[object Uint8Array]&quot;:5121,&quot;[object Uint8ClampedArray]&quot;:5121,&quot;[object Uint16Array]&quot;:5123,&quot;[object Uint32Array]&quot;:5125,&quot;[object Float32Array]&quot;:5126,&quot;[object Float64Array]&quot;:5121,&quot;[object ArrayBuffer]&quot;:5121},Q={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},$={dynamic:35048,stream:35040,static:35044},tt=J.flatten,et=J.shape,rt=[];rt[5120]=1,rt[5122]=2,rt[5124]=4,rt[5121]=1,rt[5123]=2,rt[5125]=4,rt[5126]=4;var nt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,&quot;line loop&quot;:2,&quot;line strip&quot;:3,&quot;triangle strip&quot;:5,&quot;triangle fan&quot;:6},it=new Float32Array(1),at=new Uint32Array(it.buffer),ot=[9984,9986,9985,9987],st=[0,6409,6410,6407,6408],lt={};lt[6409]=lt[6406]=lt[6402]=1,lt[34041]=lt[6410]=2,lt[6407]=lt[35904]=3,lt[6408]=lt[35906]=4;var ct=v(&quot;HTMLCanvasElement&quot;),ut=v(&quot;OffscreenCanvas&quot;),ft=v(&quot;CanvasRenderingContext2D&quot;),ht=v(&quot;ImageBitmap&quot;),pt=v(&quot;HTMLImageElement&quot;),dt=v(&quot;HTMLVideoElement&quot;),gt=Object.keys(K).concat([ct,ut,ft,ht,pt,dt]),mt=[];mt[5121]=1,mt[5126]=4,mt[36193]=2,mt[5123]=2,mt[5125]=4;var vt=[];vt[32854]=2,vt[32855]=2,vt[36194]=2,vt[34041]=4,vt[33776]=.5,vt[33777]=.5,vt[33778]=1,vt[33779]=1,vt[35986]=.5,vt[35987]=1,vt[34798]=1,vt[35840]=.5,vt[35841]=.25,vt[35842]=.5,vt[35843]=.25,vt[36196]=.5;var yt=[];yt[32854]=2,yt[32855]=2,yt[36194]=2,yt[33189]=2,yt[36168]=1,yt[34041]=4,yt[35907]=4,yt[34836]=16,yt[34842]=8,yt[34843]=6;var xt=function(t,e,r,n,i){function a(t){this.id=c++,this.refCount=1,this.renderbuffer=t,this.format=32854,this.height=this.width=0,i.profile&amp;&amp;(this.stats={size:0})}function o(e){var r=e.renderbuffer;t.bindRenderbuffer(36161,null),t.deleteRenderbuffer(r),e.renderbuffer=null,e.refCount=0,delete u[e.id],n.renderbufferCount--}var s={rgba4:32854,rgb565:36194,&quot;rgb5 a1&quot;:32855,depth:33189,stencil:36168,&quot;depth stencil&quot;:34041};e.ext_srgb&amp;&amp;(s.srgba=35907),e.ext_color_buffer_half_float&amp;&amp;(s.rgba16f=34842,s.rgb16f=34843),e.webgl_color_buffer_float&amp;&amp;(s.rgba32f=34836);var l=[];Object.keys(s).forEach((function(t){l[s[t]]=t}));var c=0,u={};return a.prototype.decRef=function(){0&gt;=--this.refCount&amp;&amp;o(this)},i.profile&amp;&amp;(n.getTotalRenderbufferSize=function(){var t=0;return Object.keys(u).forEach((function(e){t+=u[e].stats.size})),t}),{create:function(e,r){function o(e,r){var n=0,a=0,u=32854;if(&quot;object&quot;==typeof e&amp;&amp;e?(&quot;shape&quot;in e?(n=0|(a=e.shape)[0],a=0|a[1]):(&quot;radius&quot;in e&amp;&amp;(n=a=0|e.radius),&quot;width&quot;in e&amp;&amp;(n=0|e.width),&quot;height&quot;in e&amp;&amp;(a=0|e.height)),&quot;format&quot;in e&amp;&amp;(u=s[e.format])):&quot;number&quot;==typeof e?(n=0|e,a=&quot;number&quot;==typeof r?0|r:n):e||(n=a=1),n!==c.width||a!==c.height||u!==c.format)return o.width=c.width=n,o.height=c.height=a,c.format=u,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,u,n,a),i.profile&amp;&amp;(c.stats.size=yt[c.format]*c.width*c.height),o.format=l[c.format],o}var c=new a(t.createRenderbuffer());return u[c.id]=c,n.renderbufferCount++,o(e,r),o.resize=function(e,r){var n=0|e,a=0|r||n;return n===c.width&amp;&amp;a===c.height||(o.width=c.width=n,o.height=c.height=a,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,c.format,n,a),i.profile&amp;&amp;(c.stats.size=yt[c.format]*c.width*c.height)),o},o._reglType=&quot;renderbuffer&quot;,o._renderbuffer=c,i.profile&amp;&amp;(o.stats=c.stats),o.destroy=function(){c.decRef()},o},clear:function(){Z(u).forEach(o)},restore:function(){Z(u).forEach((function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,e.renderbuffer),t.renderbufferStorage(36161,e.format,e.width,e.height)})),t.bindRenderbuffer(36161,null)}}},bt=[];bt[6408]=4,bt[6407]=3;var _t=[];_t[5121]=1,_t[5126]=4,_t[36193]=2;var wt=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;w&quot;],Tt=&quot;blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset&quot;.split(&quot; &quot;),kt={0:0,1:1,zero:0,one:1,&quot;src color&quot;:768,&quot;one minus src color&quot;:769,&quot;src alpha&quot;:770,&quot;one minus src alpha&quot;:771,&quot;dst color&quot;:774,&quot;one minus dst color&quot;:775,&quot;dst alpha&quot;:772,&quot;one minus dst alpha&quot;:773,&quot;constant color&quot;:32769,&quot;one minus constant color&quot;:32770,&quot;constant alpha&quot;:32771,&quot;one minus constant alpha&quot;:32772,&quot;src alpha saturate&quot;:776},Mt={never:512,less:513,&quot;&lt;&quot;:513,equal:514,&quot;=&quot;:514,&quot;==&quot;:514,&quot;===&quot;:514,lequal:515,&quot;&lt;=&quot;:515,greater:516,&quot;&gt;&quot;:516,notequal:517,&quot;!=&quot;:517,&quot;!==&quot;:517,gequal:518,&quot;&gt;=&quot;:518,always:519},At={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,&quot;increment wrap&quot;:34055,&quot;decrement wrap&quot;:34056,invert:5386},St={cw:2304,ccw:2305},Et=new D(!1,!1,!1,(function(){}));return function(t){function e(){if(0===J.length)w&amp;&amp;w.update(),tt=null;else{tt=H.next(e),f();for(var t=J.length-1;0&lt;=t;--t){var r=J[t];r&amp;&amp;r(I,null,0)}m.flush(),w&amp;&amp;w.update()}}function r(){!tt&amp;&amp;0&lt;J.length&amp;&amp;(tt=H.next(e))}function n(){tt&amp;&amp;(H.cancel(e),tt=null)}function a(t){t.preventDefault(),n(),K.forEach((function(t){t()}))}function o(t){m.getError(),y.restore(),R.restore(),z.restore(),F.restore(),B.restore(),V.restore(),O.restore(),w&amp;&amp;w.restore(),Y.procs.refresh(),r(),Q.forEach((function(t){t()}))}function s(t){function e(t){var e={},r={};return Object.keys(t).forEach((function(n){var i=t[n];q.isDynamic(i)?r[n]=q.unbox(i,n):e[n]=i})),{dynamic:r,static:e}}var r=e(t.context||{}),n=e(t.uniforms||{}),i=e(t.attributes||{}),a=e(function(t){function e(t){if(t in r){var e=r[t];delete r[t],Object.keys(e).forEach((function(n){r[t+&quot;.&quot;+n]=e[n]}))}}var r=U({},t);return delete r.uniforms,delete r.attributes,delete r.context,delete r.vao,&quot;stencil&quot;in r&amp;&amp;r.stencil.op&amp;&amp;(r.stencil.opBack=r.stencil.opFront=r.stencil.op,delete r.stencil.op),e(&quot;blend&quot;),e(&quot;depth&quot;),e(&quot;cull&quot;),e(&quot;stencil&quot;),e(&quot;polygonOffset&quot;),e(&quot;scissor&quot;),e(&quot;sample&quot;),&quot;vao&quot;in t&amp;&amp;(r.vao=t.vao),r}(t));t={gpuTime:0,cpuTime:0,count:0};var o=(r=Y.compile(a,i,n,r,t)).draw,s=r.batch,l=r.scope,c=[];return U((function(t,e){var r;if(&quot;function&quot;==typeof t)return l.call(this,null,t,0);if(&quot;function&quot;==typeof e)if(&quot;number&quot;==typeof t)for(r=0;r&lt;t;++r)l.call(this,null,e,r);else{if(!Array.isArray(t))return l.call(this,t,e,0);for(r=0;r&lt;t.length;++r)l.call(this,t[r],e,r)}else if(&quot;number&quot;==typeof t){if(0&lt;t)return s.call(this,function(t){for(;c.length&lt;t;)c.push(null);return c}(0|t),0|t)}else{if(!Array.isArray(t))return o.call(this,t);if(t.length)return s.call(this,t,t.length)}}),{stats:t})}function l(t,e){var r=0;Y.procs.poll();var n=e.color;n&amp;&amp;(m.clearColor(+n[0]||0,+n[1]||0,+n[2]||0,+n[3]||0),r|=16384),&quot;depth&quot;in e&amp;&amp;(m.clearDepth(+e.depth),r|=256),&quot;stencil&quot;in e&amp;&amp;(m.clearStencil(0|e.stencil),r|=1024),m.clear(r)}function c(t){return J.push(t),r(),{cancel:function(){var e=j(J,t);J[e]=function t(){var e=j(J,t);J[e]=J[J.length-1],--J.length,0&gt;=J.length&amp;&amp;n()}}}}function u(){var t=X.viewport,e=X.scissor_box;t[0]=t[1]=e[0]=e[1]=0,I.viewportWidth=I.framebufferWidth=I.drawingBufferWidth=t[2]=e[2]=m.drawingBufferWidth,I.viewportHeight=I.framebufferHeight=I.drawingBufferHeight=t[3]=e[3]=m.drawingBufferHeight}function f(){I.tick+=1,I.time=g(),u(),Y.procs.poll()}function h(){u(),Y.procs.refresh(),w&amp;&amp;w.update()}function g(){return(G()-T)/1e3}if(!(t=i(t)))return null;var m=t.gl,v=m.getContextAttributes();m.isContextLost();var y=function(t,e){function r(e){var r;e=e.toLowerCase();try{r=n[e]=t.getExtension(e)}catch(t){}return!!r}for(var n={},i=0;i&lt;e.extensions.length;++i){var a=e.extensions[i];if(!r(a))return e.onDestroy(),e.onDone('&quot;'+a+'&quot; extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return e.optionalExtensions.forEach(r),{extensions:n,restore:function(){Object.keys(n).forEach((function(t){if(n[t]&amp;&amp;!r(t))throw Error(&quot;(regl): error restoring extension &quot;+t)}))}}}(m,t);if(!y)return null;var x=function(){var t={&quot;&quot;:0},e=[&quot;&quot;];return{id:function(r){var n=t[r];return n||(n=t[r]=e.length,e.push(r),n)},str:function(t){return e[t]}}}(),b={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},_=y.extensions,w=function(t,e){function r(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function n(t,e,n){var i=o.pop()||new r;i.startQueryIndex=t,i.endQueryIndex=e,i.sum=0,i.stats=n,s.push(i)}if(!e.ext_disjoint_timer_query)return null;var i=[],a=[],o=[],s=[],l=[],c=[];return{beginQuery:function(t){var r=i.pop()||e.ext_disjoint_timer_query.createQueryEXT();e.ext_disjoint_timer_query.beginQueryEXT(35007,r),a.push(r),n(a.length-1,a.length,t)},endQuery:function(){e.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:n,update:function(){var t,r;if(0!==(t=a.length)){c.length=Math.max(c.length,t+1),l.length=Math.max(l.length,t+1),l[0]=0;var n=c[0]=0;for(r=t=0;r&lt;a.length;++r){var u=a[r];e.ext_disjoint_timer_query.getQueryObjectEXT(u,34919)?(n+=e.ext_disjoint_timer_query.getQueryObjectEXT(u,34918),i.push(u)):a[t++]=u,l[r+1]=n,c[r+1]=t}for(a.length=t,r=t=0;r&lt;s.length;++r){var f=(n=s[r]).startQueryIndex;u=n.endQueryIndex;n.sum+=l[u]-l[f],f=c[f],(u=c[u])===f?(n.stats.gpuTime+=n.sum/1e6,o.push(n)):(n.startQueryIndex=f,n.endQueryIndex=u,s[t++]=n)}s.length=t}},getNumPendingQueries:function(){return a.length},clear:function(){i.push.apply(i,a);for(var t=0;t&lt;i.length;t++)e.ext_disjoint_timer_query.deleteQueryEXT(i[t]);a.length=0,i.length=0},restore:function(){a.length=0,i.length=0}}}(0,_),T=G(),A=m.drawingBufferWidth,L=m.drawingBufferHeight,I={tick:0,time:0,viewportWidth:A,viewportHeight:L,framebufferWidth:A,framebufferHeight:L,drawingBufferWidth:A,drawingBufferHeight:L,pixelRatio:t.pixelRatio},P=W(m,_),z=p(m,b,t,(function(t){return O.destroyBuffer(t)})),O=S(m,_,P,b,z),D=d(m,_,z,b),R=E(m,x,b,t),F=k(m,_,P,(function(){Y.procs.poll()}),I,b,t),B=xt(m,_,0,b,t),V=M(m,_,P,F,B,b),Y=N(m,x,_,P,z,D,0,V,{},O,R,{elements:null,primitive:4,count:-1,offset:0,instances:-1},I,w,t),X=(x=C(m,V,Y.procs.poll,I),Y.next),Z=m.canvas,J=[],K=[],Q=[],$=[t.onDestroy],tt=null;Z&amp;&amp;(Z.addEventListener(&quot;webglcontextlost&quot;,a,!1),Z.addEventListener(&quot;webglcontextrestored&quot;,o,!1));var et=V.setFBO=s({framebuffer:q.define.call(null,1,&quot;framebuffer&quot;)});return h(),v=U(s,{clear:function(t){if(&quot;framebuffer&quot;in t)if(t.framebuffer&amp;&amp;&quot;framebufferCube&quot;===t.framebuffer_reglType)for(var e=0;6&gt;e;++e)et(U({framebuffer:t.framebuffer.faces[e]},t),l);else et(t,l);else l(0,t)},prop:q.define.bind(null,1),context:q.define.bind(null,2),this:q.define.bind(null,3),draw:s({}),buffer:function(t){return z.create(t,34962,!1,!1)},elements:function(t){return D.create(t,!1)},texture:F.create2D,cube:F.createCube,renderbuffer:B.create,framebuffer:V.create,framebufferCube:V.createCube,vao:O.createVAO,attributes:v,frame:c,on:function(t,e){var r;switch(t){case&quot;frame&quot;:return c(e);case&quot;lost&quot;:r=K;break;case&quot;restore&quot;:r=Q;break;case&quot;destroy&quot;:r=$}return r.push(e),{cancel:function(){for(var t=0;t&lt;r.length;++t)if(r[t]===e){r[t]=r[r.length-1],r.pop();break}}}},limits:P,hasExtension:function(t){return 0&lt;=P.extensions.indexOf(t.toLowerCase())},read:x,destroy:function(){J.length=0,n(),Z&amp;&amp;(Z.removeEventListener(&quot;webglcontextlost&quot;,a),Z.removeEventListener(&quot;webglcontextrestored&quot;,o)),R.clear(),V.clear(),B.clear(),F.clear(),D.clear(),z.clear(),O.clear(),w&amp;&amp;w.clear(),$.forEach((function(t){t()}))},_gl:m,_refresh:h,poll:function(){f(),w&amp;&amp;w.update()},now:g,stats:b}),t.onDone(null,v),v}}))},{}],541:[function(t,e,r){
/*!
 * repeat-string &lt;https://github.com/jonschlinkert/repeat-string&gt;
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */
&quot;use strict&quot;;var n,i=&quot;&quot;;e.exports=function(t,e){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;expected a string&quot;);if(1===e)return t;if(2===e)return t+t;var r=t.length*e;if(n!==t||&quot;undefined&quot;==typeof n)n=t,i=&quot;&quot;;else if(i.length&gt;=r)return i.substr(0,r);for(;r&gt;i.length&amp;&amp;e&gt;1;)1&amp;e&amp;&amp;(i+=t),e&gt;&gt;=1,t+=t;return i=(i+=t).substr(0,r)}},{}],542:[function(t,e,r){(function(t){(function(){e.exports=t.performance&amp;&amp;t.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{}],543:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=t[t.length-1],n=e,i=e-2;i&gt;=0;--i){var a=r,o=t[i];(l=o-((r=a+o)-a))&amp;&amp;(t[--n]=r,r=l)}var s=0;for(i=n;i&lt;e;++i){var l;a=t[i];(l=(o=r)-((r=a+o)-a))&amp;&amp;(t[s++]=l)}return t[s++]=r,t.length=s,t}},{}],544:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-scale&quot;),o=t(&quot;robust-compress&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m[&quot;,r,&quot;][&quot;,n,&quot;]&quot;].join(&quot;&quot;)}return e}function c(t){if(2===t.length)return[&quot;sum(prod(&quot;,t[0][0],&quot;,&quot;,t[1][1],&quot;),prod(-&quot;,t[0][1],&quot;,&quot;,t[1][0],&quot;))&quot;].join(&quot;&quot;);for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,c(s(t,r)),&quot;,&quot;,(n=r,1&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return function t(e){if(1===e.length)return e[0];if(2===e.length)return[&quot;sum(&quot;,e[0],&quot;,&quot;,e[1],&quot;)&quot;].join(&quot;&quot;);var r=e.length&gt;&gt;1;return[&quot;sum(&quot;,t(e.slice(0,r)),&quot;,&quot;,t(e.slice(r)),&quot;)&quot;].join(&quot;&quot;)}(e);var n}function u(t){return new Function(&quot;sum&quot;,&quot;scale&quot;,&quot;prod&quot;,&quot;compress&quot;,[&quot;function robustDeterminant&quot;,t,&quot;(m){return compress(&quot;,c(l(t)),&quot;)};return robustDeterminant&quot;,t].join(&quot;&quot;))(i,a,n,o)}var f=[function(){return[0]},function(t){return[t[0][0]]}];!function(){for(;f.length&lt;6;)f.push(u(f.length));for(var t=[],r=[&quot;function robustDeterminant(m){switch(m.length){&quot;],n=0;n&lt;6;++n)t.push(&quot;det&quot;+n),r.push(&quot;case &quot;,n,&quot;:return det&quot;,n,&quot;(m);&quot;);r.push(&quot;}var det=CACHE[m.length];if(!det)det=CACHE[m.length]=gen(m.length);return det(m);}return robustDeterminant&quot;),t.push(&quot;CACHE&quot;,&quot;gen&quot;,r.join(&quot;&quot;));var i=Function.apply(void 0,t);for(e.exports=i.apply(void 0,f.concat([f,u])),n=0;n&lt;f.length;++n)e.exports[n]=f[n]}()},{&quot;robust-compress&quot;:543,&quot;robust-scale&quot;:550,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],545:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;);e.exports=function(t,e){for(var r=n(t[0],e[0]),a=1;a&lt;t.length;++a)r=i(r,n(t[a],e[a]));return r}},{&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],546:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-subtract&quot;),o=t(&quot;robust-scale&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){if(1===t.length)return t[0];if(2===t.length)return[&quot;sum(&quot;,t[0],&quot;,&quot;,t[1],&quot;)&quot;].join(&quot;&quot;);var e=t.length&gt;&gt;1;return[&quot;sum(&quot;,l(t.slice(0,e)),&quot;,&quot;,l(t.slice(e)),&quot;)&quot;].join(&quot;&quot;)}function c(t,e){if(&quot;m&quot;===t.charAt(0)){if(&quot;w&quot;===e.charAt(0)){var r=t.split(&quot;[&quot;);return[&quot;w&quot;,e.substr(1),&quot;m&quot;,r[0].substr(1)].join(&quot;&quot;)}return[&quot;prod(&quot;,t,&quot;,&quot;,e,&quot;)&quot;].join(&quot;&quot;)}return c(e,t)}function u(t){if(2===t.length)return[[&quot;diff(&quot;,c(t[0][0],t[1][1]),&quot;,&quot;,c(t[1][0],t[0][1]),&quot;)&quot;].join(&quot;&quot;)];for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,l(u(s(t,r))),&quot;,&quot;,(n=r,!0&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return e;var n}function f(t,e){for(var r=[],n=0;n&lt;e-2;++n)r.push([&quot;prod(m&quot;,t,&quot;[&quot;,n,&quot;],m&quot;,t,&quot;[&quot;,n,&quot;])&quot;].join(&quot;&quot;));return l(r)}function h(t){for(var e=[],r=[],c=function(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m&quot;,n,&quot;[&quot;,t-r-2,&quot;]&quot;].join(&quot;&quot;)}return e}(t),h=0;h&lt;t;++h)c[0][h]=&quot;1&quot;,c[t-1][h]=&quot;w&quot;+h;for(h=0;h&lt;t;++h)0==(1&amp;h)?e.push.apply(e,u(s(c,h))):r.push.apply(r,u(s(c,h)));var p=l(e),d=l(r),g=&quot;exactInSphere&quot;+t,m=[];for(h=0;h&lt;t;++h)m.push(&quot;m&quot;+h);var v=[&quot;function &quot;,g,&quot;(&quot;,m.join(),&quot;){&quot;];for(h=0;h&lt;t;++h){v.push(&quot;var w&quot;,h,&quot;=&quot;,f(h,t),&quot;;&quot;);for(var y=0;y&lt;t;++y)y!==h&amp;&amp;v.push(&quot;var w&quot;,h,&quot;m&quot;,y,&quot;=scale(w&quot;,h,&quot;,m&quot;,y,&quot;[0]);&quot;)}return v.push(&quot;var p=&quot;,p,&quot;,n=&quot;,d,&quot;,d=diff(p,n);return d[d.length-1];}return &quot;,g),new Function(&quot;sum&quot;,&quot;diff&quot;,&quot;prod&quot;,&quot;scale&quot;,v.join(&quot;&quot;))(i,a,n,o)}var p=[function(){return 0},function(){return 0},function(){return 0}];function d(t){var e=p[t.length];return e||(e=p[t.length]=h(t.length)),e.apply(void 0,t)}!function(){for(;p.length&lt;=6;)p.push(h(p.length));for(var t=[],r=[&quot;slow&quot;],n=0;n&lt;=6;++n)t.push(&quot;a&quot;+n),r.push(&quot;o&quot;+n);var i=[&quot;function testInSphere(&quot;,t.join(),&quot;){switch(arguments.length){case 0:case 1:return 0;&quot;];for(n=2;n&lt;=6;++n)i.push(&quot;case &quot;,n,&quot;:return o&quot;,n,&quot;(&quot;,t.slice(0,n).join(),&quot;);&quot;);i.push(&quot;}var s=new Array(arguments.length);for(var i=0;i&lt;arguments.length;++i){s[i]=arguments[i]};return slow(s);}return testInSphere&quot;),r.push(i.join(&quot;&quot;));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[d].concat(p)),n=0;n&lt;=6;++n)e.exports[n]=p[n]}()},{&quot;robust-scale&quot;:550,&quot;robust-subtract&quot;:552,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],547:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-determinant&quot;);function i(t){for(var e=&quot;robustLinearSolve&quot;+t+&quot;d&quot;,r=[&quot;function &quot;,e,&quot;(A,b){return [&quot;],i=0;i&lt;t;++i){r.push(&quot;det([&quot;);for(var a=0;a&lt;t;++a){a&gt;0&amp;&amp;r.push(&quot;,&quot;),r.push(&quot;[&quot;);for(var o=0;o&lt;t;++o)o&gt;0&amp;&amp;r.push(&quot;,&quot;),o===i?r.push(&quot;+b[&quot;,a,&quot;]&quot;):r.push(&quot;+A[&quot;,a,&quot;][&quot;,o,&quot;]&quot;);r.push(&quot;]&quot;)}r.push(&quot;]),&quot;)}r.push(&quot;det(A)]}return &quot;,e);var s=new Function(&quot;det&quot;,r.join(&quot;&quot;));return s(t&lt;6?n[t]:n)}var a=[function(){return[0]},function(t,e){return[[e[0]],[t[0][0]]]}];!function(){for(;a.length&lt;6;)a.push(i(a.length));for(var t=[],r=[&quot;function dispatchLinearSolve(A,b){switch(A.length){&quot;],n=0;n&lt;6;++n)t.push(&quot;s&quot;+n),r.push(&quot;case &quot;,n,&quot;:return s&quot;,n,&quot;(A,b);&quot;);r.push(&quot;}var s=CACHE[A.length];if(!s)s=CACHE[A.length]=g(A.length);return s(A,b)}return dispatchLinearSolve&quot;),t.push(&quot;CACHE&quot;,&quot;g&quot;,r.join(&quot;&quot;));var o=Function.apply(void 0,t);for(e.exports=o.apply(void 0,a.concat([a,i])),n=0;n&lt;6;++n)e.exports[n]=a[n]}()},{&quot;robust-determinant&quot;:544}],548:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-scale&quot;),o=t(&quot;robust-subtract&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){if(1===t.length)return t[0];if(2===t.length)return[&quot;sum(&quot;,t[0],&quot;,&quot;,t[1],&quot;)&quot;].join(&quot;&quot;);var e=t.length&gt;&gt;1;return[&quot;sum(&quot;,l(t.slice(0,e)),&quot;,&quot;,l(t.slice(e)),&quot;)&quot;].join(&quot;&quot;)}function c(t){if(2===t.length)return[[&quot;sum(prod(&quot;,t[0][0],&quot;,&quot;,t[1][1],&quot;),prod(-&quot;,t[0][1],&quot;,&quot;,t[1][0],&quot;))&quot;].join(&quot;&quot;)];for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,l(c(s(t,r))),&quot;,&quot;,(n=r,1&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return e;var n}function u(t){for(var e=[],r=[],u=function(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m&quot;,n,&quot;[&quot;,t-r-1,&quot;]&quot;].join(&quot;&quot;)}return e}(t),f=[],h=0;h&lt;t;++h)0==(1&amp;h)?e.push.apply(e,c(s(u,h))):r.push.apply(r,c(s(u,h))),f.push(&quot;m&quot;+h);var p=l(e),d=l(r),g=&quot;orientation&quot;+t+&quot;Exact&quot;,m=[&quot;function &quot;,g,&quot;(&quot;,f.join(),&quot;){var p=&quot;,p,&quot;,n=&quot;,d,&quot;,d=sub(p,n);return d[d.length-1];};return &quot;,g].join(&quot;&quot;);return new Function(&quot;sum&quot;,&quot;prod&quot;,&quot;scale&quot;,&quot;sub&quot;,m)(i,n,a,o)}var f=u(3),h=u(4),p=[function(){return 0},function(){return 0},function(t,e){return e[0]-t[0]},function(t,e,r){var n,i=(t[1]-r[1])*(e[0]-r[0]),a=(t[0]-r[0])*(e[1]-r[1]),o=i-a;if(i&gt;0){if(a&lt;=0)return o;n=i+a}else{if(!(i&lt;0))return o;if(a&gt;=0)return o;n=-(i+a)}var s=33306690738754716e-32*n;return o&gt;=s||o&lt;=-s?o:f(t,e,r)},function(t,e,r,n){var i=t[0]-n[0],a=e[0]-n[0],o=r[0]-n[0],s=t[1]-n[1],l=e[1]-n[1],c=r[1]-n[1],u=t[2]-n[2],f=e[2]-n[2],p=r[2]-n[2],d=a*c,g=o*l,m=o*s,v=i*c,y=i*l,x=a*s,b=u*(d-g)+f*(m-v)+p*(y-x),_=7771561172376103e-31*((Math.abs(d)+Math.abs(g))*Math.abs(u)+(Math.abs(m)+Math.abs(v))*Math.abs(f)+(Math.abs(y)+Math.abs(x))*Math.abs(p));return b&gt;_||-b&gt;_?b:h(t,e,r,n)}];function d(t){var e=p[t.length];return e||(e=p[t.length]=u(t.length)),e.apply(void 0,t)}!function(){for(;p.length&lt;=5;)p.push(u(p.length));for(var t=[],r=[&quot;slow&quot;],n=0;n&lt;=5;++n)t.push(&quot;a&quot;+n),r.push(&quot;o&quot;+n);var i=[&quot;function getOrientation(&quot;,t.join(),&quot;){switch(arguments.length){case 0:case 1:return 0;&quot;];for(n=2;n&lt;=5;++n)i.push(&quot;case &quot;,n,&quot;:return o&quot;,n,&quot;(&quot;,t.slice(0,n).join(),&quot;);&quot;);i.push(&quot;}var s=new Array(arguments.length);for(var i=0;i&lt;arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation&quot;),r.push(i.join(&quot;&quot;));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[d].concat(p)),n=0;n&lt;=5;++n)e.exports[n]=p[n]}()},{&quot;robust-scale&quot;:550,&quot;robust-subtract&quot;:552,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],549:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-sum&quot;),i=t(&quot;robust-scale&quot;);e.exports=function(t,e){if(1===t.length)return i(e,t[0]);if(1===e.length)return i(t,e[0]);if(0===t.length||0===e.length)return[0];var r=[0];if(t.length&lt;e.length)for(var a=0;a&lt;t.length;++a)r=n(r,i(e,t[a]));else for(a=0;a&lt;e.length;++a)r=n(r,i(t,e[a]));return r}},{&quot;robust-scale&quot;:550,&quot;robust-sum&quot;:553}],550:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;two-sum&quot;);e.exports=function(t,e){var r=t.length;if(1===r){var a=n(t[0],e);return a[0]?a:[a[1]]}var o=new Array(2*r),s=[.1,.1],l=[.1,.1],c=0;n(t[0],e,s),s[0]&amp;&amp;(o[c++]=s[0]);for(var u=1;u&lt;r;++u){n(t[u],e,l);var f=s[1];i(f,l[0],s),s[0]&amp;&amp;(o[c++]=s[0]);var h=l[1],p=s[1],d=h+p,g=p-(d-h);s[1]=d,g&amp;&amp;(o[c++]=g)}s[1]&amp;&amp;(o[c++]=s[1]);0===c&amp;&amp;(o[c++]=0);return o.length=c,o}},{&quot;two-product&quot;:582,&quot;two-sum&quot;:583}],551:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,i){var a=n(t,r,i),o=n(e,r,i);if(a&gt;0&amp;&amp;o&gt;0||a&lt;0&amp;&amp;o&lt;0)return!1;var s=n(r,t,e),l=n(i,t,e);if(s&gt;0&amp;&amp;l&gt;0||s&lt;0&amp;&amp;l&lt;0)return!1;if(0===a&amp;&amp;0===o&amp;&amp;0===s&amp;&amp;0===l)return function(t,e,r,n){for(var i=0;i&lt;2;++i){var a=t[i],o=e[i],s=Math.min(a,o),l=Math.max(a,o),c=r[i],u=n[i],f=Math.min(c,u);if(Math.max(c,u)&lt;s||l&lt;f)return!1}return!0}(t,e,r,i);return!0};var n=t(&quot;robust-orientation&quot;)[3]},{&quot;robust-orientation&quot;:548}],552:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&amp;&amp;1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],-e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=-e[c],d=u(p);h&lt;d?(a=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(a=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p)));l&lt;r&amp;&amp;h&lt;d||c&gt;=n?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p)));var g,m,v=i+a,y=v-i,x=a-y,b=x,_=v;for(;l&lt;r&amp;&amp;c&lt;n;)h&lt;d?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p))),(x=(a=b)-(y=(v=i+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g;for(;l&lt;r;)(x=(a=b)-(y=(v=(i=f)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(l+=1)&lt;r&amp;&amp;(f=t[l]);for(;c&lt;n;)(x=(a=b)-(y=(v=(i=p)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(c+=1)&lt;n&amp;&amp;(p=-e[c]);b&amp;&amp;(o[s++]=b);_&amp;&amp;(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],553:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&amp;&amp;1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=e[c],d=u(p);h&lt;d?(a=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(a=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p)));l&lt;r&amp;&amp;h&lt;d||c&gt;=n?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p)));var g,m,v=i+a,y=v-i,x=a-y,b=x,_=v;for(;l&lt;r&amp;&amp;c&lt;n;)h&lt;d?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p))),(x=(a=b)-(y=(v=i+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g;for(;l&lt;r;)(x=(a=b)-(y=(v=(i=f)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(l+=1)&lt;r&amp;&amp;(f=t[l]);for(;c&lt;n;)(x=(a=b)-(y=(v=(i=p)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(c+=1)&lt;n&amp;&amp;(p=e[c]);b&amp;&amp;(o[s++]=b);_&amp;&amp;(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],554:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t&lt;0?-1:t&gt;0?1:0}},{}],555:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return i(n(t))};var n=t(&quot;boundary-cells&quot;),i=t(&quot;reduce-simplicial-complex&quot;)},{&quot;boundary-cells&quot;:100,&quot;reduce-simplicial-complex&quot;:533}],556:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,s){r=r||0,&quot;undefined&quot;==typeof s&amp;&amp;(s=function(t){for(var e=t.length,r=0,n=0;n&lt;e;++n)r=0|Math.max(r,t[n].length);return r-1}(t));if(0===t.length||s&lt;1)return{cells:[],vertexIds:[],vertexWeights:[]};var l=function(t,e){for(var r=t.length,n=i.mallocUint8(r),a=0;a&lt;r;++a)n[a]=t[a]&lt;e|0;return n}(e,+r),c=function(t,e){for(var r=t.length,o=e*(e+1)/2*r|0,s=i.mallocUint32(2*o),l=0,c=0;c&lt;r;++c)for(var u=t[c],f=(e=u.length,0);f&lt;e;++f)for(var h=0;h&lt;f;++h){var p=u[h],d=u[f];s[l++]=0|Math.min(p,d),s[l++]=0|Math.max(p,d)}a(n(s,[l/2|0,2]));var g=2;for(c=2;c&lt;l;c+=2)s[c-2]===s[c]&amp;&amp;s[c-1]===s[c+1]||(s[g++]=s[c],s[g++]=s[c+1]);return n(s,[g/2|0,2])}(t,s),u=function(t,e,r,a){for(var o=t.data,s=t.shape[0],l=i.mallocDouble(s),c=0,u=0;u&lt;s;++u){var f=o[2*u],h=o[2*u+1];if(r[f]!==r[h]){var p=e[f],d=e[h];o[2*c]=f,o[2*c+1]=h,l[c++]=(d-a)/(d-p)}}return t.shape[0]=c,n(l,[c])}(c,e,l,+r),f=function(t,e){var r=i.mallocInt32(2*e),n=t.shape[0],a=t.data;r[0]=0;for(var o=0,s=0;s&lt;n;++s){var l=a[2*s];if(l!==o){for(r[2*o+1]=s;++o&lt;l;)r[2*o]=s,r[2*o+1]=s;r[2*o]=s}}r[2*o+1]=n;for(;++o&lt;e;)r[2*o]=r[2*o+1]=n;return r}(c,0|e.length),h=o(s)(t,c.data,f,l),p=function(t){for(var e=0|t.shape[0],r=t.data,n=new Array(e),i=0;i&lt;e;++i)n[i]=[r[2*i],r[2*i+1]];return n}(c),d=[].slice.call(u.data,0,u.shape[0]);return i.free(l),i.free(c.data),i.free(u.data),i.free(f),{cells:h,vertexIds:p,vertexWeights:d}};var n=t(&quot;ndarray&quot;),i=t(&quot;typedarray-pool&quot;),a=t(&quot;ndarray-sort&quot;),o=t(&quot;./lib/codegen&quot;)},{&quot;./lib/codegen&quot;:557,ndarray:495,&quot;ndarray-sort&quot;:494,&quot;typedarray-pool&quot;:595}],557:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=a[t];e||(e=a[t]=function(t){var e=0,r=new Array(t+1);r[0]=[[]];for(var a=1;a&lt;=t;++a)for(var o=r[a]=i(a),s=0;s&lt;o.length;++s)e=Math.max(e,o[a].length);var l=[&quot;function B(C,E,i,j){&quot;,&quot;var a=Math.min(i,j)|0,b=Math.max(i,j)|0,l=C[2*a],h=C[2*a+1];&quot;,&quot;while(l&lt;h){&quot;,&quot;var m=(l+h)&gt;&gt;1,v=E[2*m+1];&quot;,&quot;if(v===b){return m}&quot;,&quot;if(b&lt;v){h=m}else{l=m+1}&quot;,&quot;}&quot;,&quot;return l;&quot;,&quot;};&quot;,&quot;function getContour&quot;,t,&quot;d(F,E,C,S){&quot;,&quot;var n=F.length,R=[];&quot;,&quot;for(var i=0;i&lt;n;++i){var c=F[i],l=c.length;&quot;];function c(t){if(!(t.length&lt;=0)){l.push(&quot;R.push(&quot;);for(var e=0;e&lt;t.length;++e){var r=t[e];e&gt;0&amp;&amp;l.push(&quot;,&quot;),l.push(&quot;[&quot;);for(var n=0;n&lt;r.length;++n){var i=r[n];n&gt;0&amp;&amp;l.push(&quot;,&quot;),l.push(&quot;B(C,E,c[&quot;,i[0],&quot;],c[&quot;,i[1],&quot;])&quot;)}l.push(&quot;]&quot;)}l.push(&quot;);&quot;)}}for(a=t+1;a&gt;1;--a){a&lt;t+1&amp;&amp;l.push(&quot;else &quot;),l.push(&quot;if(l===&quot;,a,&quot;){&quot;);var u=[];for(s=0;s&lt;a;++s)u.push(&quot;(S[c[&quot;+s+&quot;]]&lt;&lt;&quot;+s+&quot;)&quot;);l.push(&quot;var M=&quot;,u.join(&quot;+&quot;),&quot;;if(M===0||M===&quot;,(1&lt;&lt;a)-1,&quot;){continue}switch(M){&quot;);for(o=r[a-1],s=0;s&lt;o.length;++s)l.push(&quot;case &quot;,s,&quot;:&quot;),c(o[s]),l.push(&quot;break;&quot;);l.push(&quot;}}&quot;)}return l.push(&quot;}return R;};return getContour&quot;,t,&quot;d&quot;),new Function(&quot;pool&quot;,l.join(&quot;&quot;))(n)}(t));return e};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;marching-simplex-table&quot;),a={}},{&quot;marching-simplex-table&quot;:474,&quot;typedarray-pool&quot;:595}],558:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bit-twiddle&quot;),i=t(&quot;union-find&quot;);function a(t,e){var r=t.length,n=t.length-e.length,i=Math.min;if(n)return n;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return(s=t[0]+t[1]-e[0]-e[1])||i(t[0],t[1])-i(e[0],e[1]);case 3:var a=t[0]+t[1],o=e[0]+e[1];if(s=a+t[2]-(o+e[2]))return s;var s,l=i(t[0],t[1]),c=i(e[0],e[1]);return(s=i(l,t[2])-i(c,e[2]))||i(l+t[2],a)-i(c+e[2],o);default:var u=t.slice(0);u.sort();var f=e.slice(0);f.sort();for(var h=0;h&lt;r;++h)if(n=u[h]-f[h])return n;return 0}}function o(t,e){return a(t[0],e[0])}function s(t,e){if(e){for(var r=t.length,n=new Array(r),i=0;i&lt;r;++i)n[i]=[t[i],e[i]];n.sort(o);for(i=0;i&lt;r;++i)t[i]=n[i][0],e[i]=n[i][1];return t}return t.sort(a),t}function l(t){if(0===t.length)return[];for(var e=1,r=t.length,n=1;n&lt;r;++n){var i=t[n];if(a(i,t[n-1])){if(n===e){e++;continue}t[e++]=i}}return t.length=e,t}function c(t,e){for(var r=0,n=t.length-1,i=-1;r&lt;=n;){var o=r+n&gt;&gt;1,s=a(t[o],e);s&lt;=0?(0===s&amp;&amp;(i=o),r=o+1):s&gt;0&amp;&amp;(n=o-1)}return i}function u(t,e){for(var r=new Array(t.length),i=0,o=r.length;i&lt;o;++i)r[i]=[];for(var s=[],l=(i=0,e.length);i&lt;l;++i)for(var u=e[i],f=u.length,h=1,p=1&lt;&lt;f;h&lt;p;++h){s.length=n.popCount(h);for(var d=0,g=0;g&lt;f;++g)h&amp;1&lt;&lt;g&amp;&amp;(s[d++]=u[g]);var m=c(t,s);if(!(m&lt;0))for(;r[m++].push(i),!(m&gt;=t.length||0!==a(t[m],s)););}return r}function f(t,e){if(e&lt;0)return[];for(var r=[],i=(1&lt;&lt;e+1)-1,a=0;a&lt;t.length;++a)for(var o=t[a],l=i;l&lt;1&lt;&lt;o.length;l=n.nextCombination(l)){for(var c=new Array(e+1),u=0,f=0;f&lt;o.length;++f)l&amp;1&lt;&lt;f&amp;&amp;(c[u++]=o[f]);r.push(c)}return s(r)}r.dimension=function(t){for(var e=0,r=Math.max,n=0,i=t.length;n&lt;i;++n)e=r(e,t[n].length);return e-1},r.countVertices=function(t){for(var e=-1,r=Math.max,n=0,i=t.length;n&lt;i;++n)for(var a=t[n],o=0,s=a.length;o&lt;s;++o)e=r(e,a[o]);return e+1},r.cloneCells=function(t){for(var e=new Array(t.length),r=0,n=t.length;r&lt;n;++r)e[r]=t[r].slice(0);return e},r.compareCells=a,r.normalize=s,r.unique=l,r.findCell=c,r.incidence=u,r.dual=function(t,e){if(!e)return u(l(f(t,0)),t);for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=[];n=0;for(var i=t.length;n&lt;i;++n)for(var a=t[n],o=0,s=a.length;o&lt;s;++o)r[a[o]].push(n);return r},r.explode=function(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0|i.length,o=1,l=1&lt;&lt;a;o&lt;l;++o){for(var c=[],u=0;u&lt;a;++u)o&gt;&gt;&gt;u&amp;1&amp;&amp;c.push(i[u]);e.push(c)}return s(e)},r.skeleton=f,r.boundary=function(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;++a){for(var l=new Array(i.length-1),c=0,u=0;c&lt;o;++c)c!==a&amp;&amp;(l[u++]=i[c]);e.push(l)}return s(e)},r.connectedComponents=function(t,e){return e?function(t,e){for(var r=new i(e),n=0;n&lt;t.length;++n)for(var a=t[n],o=0;o&lt;a.length;++o)for(var s=o+1;s&lt;a.length;++s)r.link(a[o],a[s]);var l=[],c=r.ranks;for(n=0;n&lt;c.length;++n)c[n]=-1;for(n=0;n&lt;t.length;++n){var u=r.find(t[n][0]);c[u]&lt;0?(c[u]=l.length,l.push([t[n].slice(0)])):l[c[u]].push(t[n].slice(0))}return l}(t,e):function(t){for(var e=l(s(f(t,0))),r=new i(e.length),n=0;n&lt;t.length;++n)for(var a=t[n],o=0;o&lt;a.length;++o)for(var u=c(e,[a[o]]),h=o+1;h&lt;a.length;++h)r.link(u,c(e,[a[h]]));var p=[],d=r.ranks;for(n=0;n&lt;d.length;++n)d[n]=-1;for(n=0;n&lt;t.length;++n){var g=r.find(c(e,[t[n][0]]));d[g]&lt;0?(d[g]=p.length,p.push([t[n].slice(0)])):p[d[g]].push(t[n].slice(0))}return p}(t)}},{&quot;bit-twiddle&quot;:97,&quot;union-find&quot;:596}],559:[function(t,e,r){arguments[4][97][0].apply(r,arguments)},{dup:97}],560:[function(t,e,r){arguments[4][558][0].apply(r,arguments)},{&quot;bit-twiddle&quot;:559,dup:558,&quot;union-find&quot;:561}],561:[function(t,e,r){&quot;use strict&quot;;function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e&lt;t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n,n.prototype.length=function(){return this.roots.length},n.prototype.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},n.prototype.find=function(t){for(var e=this.roots;e[t]!==t;){var r=e[t];e[t]=e[r],t=r}return t},n.prototype.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o&lt;s?a[r]=n:s&lt;o?a[n]=r:(a[n]=r,++i[r])}}},{}],562:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){for(var a=e.length,o=t.length,s=new Array(a),l=new Array(a),c=new Array(a),u=new Array(a),f=0;f&lt;a;++f)s[f]=l[f]=-1,c[f]=1/0,u[f]=!1;for(f=0;f&lt;o;++f){var h=t[f];if(2!==h.length)throw new Error(&quot;Input must be a graph&quot;);var p=h[1],d=h[0];-1!==l[d]?l[d]=-2:l[d]=p,-1!==s[p]?s[p]=-2:s[p]=d}function g(t){if(u[t])return 1/0;var r,i,a,o,c,f=s[t],h=l[t];return f&lt;0||h&lt;0?1/0:(r=e[t],i=e[f],a=e[h],o=Math.abs(n(r,i,a)),c=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)),o/c)}function m(t,e){var r=k[t],n=k[e];k[t]=n,k[e]=r,M[r]=e,M[n]=t}function v(t){return c[k[t]]}function y(t){return 1&amp;t?t-1&gt;&gt;1:(t&gt;&gt;1)-1}function x(t){for(var e=v(t);;){var r=e,n=2*t+1,i=2*(t+1),a=t;if(n&lt;A){var o=v(n);o&lt;r&amp;&amp;(a=n,r=o)}if(i&lt;A)v(i)&lt;r&amp;&amp;(a=i);if(a===t)return t;m(t,a),t=a}}function b(t){for(var e=v(t);t&gt;0;){var r=y(t);if(r&gt;=0)if(e&lt;v(r)){m(t,r),t=r;continue}return t}}function _(){if(A&gt;0){var t=k[0];return m(0,A-1),A-=1,x(0),t}return-1}function w(t,e){var r=k[t];return c[r]===e?t:(c[r]=-1/0,b(t),_(),c[r]=e,b((A+=1)-1))}function T(t){if(!u[t]){u[t]=!0;var e=s[t],r=l[t];s[r]&gt;=0&amp;&amp;(s[r]=e),l[e]&gt;=0&amp;&amp;(l[e]=r),M[e]&gt;=0&amp;&amp;w(M[e],g(e)),M[r]&gt;=0&amp;&amp;w(M[r],g(r))}}var k=[],M=new Array(a);for(f=0;f&lt;a;++f){(c[f]=g(f))&lt;1/0?(M[f]=k.length,k.push(f)):M[f]=-1}var A=k.length;for(f=A&gt;&gt;1;f&gt;=0;--f)x(f);for(;;){var S=_();if(S&lt;0||c[S]&gt;r)break;T(S)}var E=[];for(f=0;f&lt;a;++f)u[f]||(M[f]=E.length,E.push(e[f].slice()));E.length;function C(t,e){if(t[e]&lt;0)return e;var r=e,n=e;do{var i=t[n];if(!u[n]||i&lt;0||i===n)break;if(i=t[n=i],!u[n]||i&lt;0||i===n)break;n=i,r=t[r]}while(r!==n);for(var a=e;a!==n;a=t[a])t[a]=n;return n}var L=[];return t.forEach((function(t){var e=C(s,t[0]),r=C(l,t[1]);if(e&gt;=0&amp;&amp;r&gt;=0&amp;&amp;e!==r){var n=M[e],i=M[r];n!==i&amp;&amp;L.push([n,i])}})),i.unique(i.normalize(L)),{positions:E,edges:L}};var n=t(&quot;robust-orientation&quot;),i=t(&quot;simplicial-complex&quot;)},{&quot;robust-orientation&quot;:548,&quot;simplicial-complex&quot;:560}],563:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,a,o,s;if(e[0][0]&lt;e[1][0])r=e[0],a=e[1];else{if(!(e[0][0]&gt;e[1][0]))return i(e,t);r=e[1],a=e[0]}if(t[0][0]&lt;t[1][0])o=t[0],s=t[1];else{if(!(t[0][0]&gt;t[1][0]))return-i(t,e);o=t[1],s=t[0]}var l=n(r,a,s),c=n(r,a,o);if(l&lt;0){if(c&lt;=0)return l}else if(l&gt;0){if(c&gt;=0)return l}else if(c)return c;if(l=n(s,o,a),c=n(s,o,r),l&lt;0){if(c&lt;=0)return l}else if(l&gt;0){if(c&gt;=0)return l}else if(c)return c;return a[0]-s[0]};var n=t(&quot;robust-orientation&quot;);function i(t,e){var r,i,a,o;if(e[0][0]&lt;e[1][0])r=e[0],i=e[1];else{if(!(e[0][0]&gt;e[1][0])){var s=Math.min(t[0][1],t[1][1]),l=Math.max(t[0][1],t[1][1]),c=Math.min(e[0][1],e[1][1]),u=Math.max(e[0][1],e[1][1]);return l&lt;c?l-c:s&gt;u?s-u:l-u}r=e[1],i=e[0]}t[0][1]&lt;t[1][1]?(a=t[0],o=t[1]):(a=t[1],o=t[0]);var f=n(i,r,a);return f||((f=n(i,r,o))||o-i)}},{&quot;robust-orientation&quot;:548}],564:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],565:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=2*e,n=new Array(r),a=0;a&lt;e;++a){var l=t[a],c=l[0][0]&lt;l[1][0];n[2*a]=new f(l[0][0],l,c,a),n[2*a+1]=new f(l[1][0],l,!c,a)}n.sort((function(t,e){var r=t.x-e.x;return r||((r=t.create-e.create)||Math.min(t.segment[0][1],t.segment[1][1])-Math.min(e.segment[0][1],e.segment[1][1]))}));var h=i(o),p=[],d=[],g=[];for(a=0;a&lt;r;){for(var m=n[a].x,v=[];a&lt;r;){var y=n[a];if(y.x!==m)break;a+=1,y.segment[0][0]===y.x&amp;&amp;y.segment[1][0]===y.x?y.create&amp;&amp;(y.segment[0][1]&lt;y.segment[1][1]?(v.push(new u(y.segment[0][1],y.index,!0,!0)),v.push(new u(y.segment[1][1],y.index,!1,!1))):(v.push(new u(y.segment[1][1],y.index,!0,!1)),v.push(new u(y.segment[0][1],y.index,!1,!0)))):h=y.create?h.insert(y.segment,y.index):h.remove(y.segment)}p.push(h.root),d.push(m),g.push(v)}return new s(p,d,g)};var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;functional-red-black-tree&quot;),a=t(&quot;robust-orientation&quot;),o=t(&quot;./lib/order-segments&quot;);function s(t,e,r){this.slabs=t,this.coordinates=e,this.horizontal=r}function l(t,e){return t.y-e}function c(t,e){for(var r=null;t;){var n,i,o=t.key;o[0][0]&lt;o[1][0]?(n=o[0],i=o[1]):(n=o[1],i=o[0]);var s=a(n,i,e);if(s&lt;0)t=t.left;else if(s&gt;0)if(e[0]!==o[1][0])r=t,t=t.right;else{if(l=c(t.right,e))return l;t=t.left}else{if(e[0]!==o[1][0])return t;var l;if(l=c(t.right,e))return l;t=t.left}}return r}function u(t,e,r,n){this.y=t,this.index=e,this.start=r,this.closed=n}function f(t,e,r,n){this.x=t,this.segment=e,this.create=r,this.index=n}s.prototype.castUp=function(t){var e=n.le(this.coordinates,t[0]);if(e&lt;0)return-1;this.slabs[e];var r=c(this.slabs[e],t),i=-1;if(r&amp;&amp;(i=r.value),this.coordinates[e]===t[0]){var s=null;if(r&amp;&amp;(s=r.key),e&gt;0){var u=c(this.slabs[e-1],t);u&amp;&amp;(s?o(u.key,s)&gt;0&amp;&amp;(s=u.key,i=u.value):(i=u.value,s=u.key))}var f=this.horizontal[e];if(f.length&gt;0){var h=n.ge(f,t[1],l);if(h&lt;f.length){var p=f[h];if(t[1]===p.y){if(p.closed)return p.index;for(;h&lt;f.length-1&amp;&amp;f[h+1].y===t[1];)if((p=f[h+=1]).closed)return p.index;if(p.y===t[1]&amp;&amp;!p.start){if((h+=1)&gt;=f.length)return i;p=f[h]}}if(p.start)if(s){var d=a(s[0],s[1],[t[0],p.y]);s[0][0]&gt;s[1][0]&amp;&amp;(d=-d),d&gt;0&amp;&amp;(i=p.index)}else i=p.index;else p.y!==t[1]&amp;&amp;(i=p.index)}}}return i}},{&quot;./lib/order-segments&quot;:563,&quot;binary-search-bounds&quot;:564,&quot;functional-red-black-tree&quot;:247,&quot;robust-orientation&quot;:548}],566:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-dot-product&quot;),i=t(&quot;robust-sum&quot;);function a(t,e){var r=i(n(t,e),[e[e.length-1]]);return r[r.length-1]}function o(t,e,r,n){var i=-e/(n-e);i&lt;0?i=0:i&gt;1&amp;&amp;(i=1);for(var a=1-i,o=t.length,s=new Array(o),l=0;l&lt;o;++l)s[l]=i*t[l]+a*r[l];return s}e.exports=function(t,e){for(var r=[],n=[],i=a(t[t.length-1],e),s=t[t.length-1],l=t[0],c=0;c&lt;t.length;++c,s=l){var u=a(l=t[c],e);if(i&lt;0&amp;&amp;u&gt;0||i&gt;0&amp;&amp;u&lt;0){var f=o(s,u,l,i);r.push(f),n.push(f.slice())}u&lt;0?n.push(l.slice()):u&gt;0?r.push(l.slice()):(r.push(l.slice()),n.push(l.slice())),i=u}return{positive:r,negative:n}},e.exports.positive=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l&lt;t.length;++l,i=s){var c=a(s=t[l],e);(n&lt;0&amp;&amp;c&gt;0||n&gt;0&amp;&amp;c&lt;0)&amp;&amp;r.push(o(i,c,s,n)),c&gt;=0&amp;&amp;r.push(s.slice()),n=c}return r},e.exports.negative=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l&lt;t.length;++l,i=s){var c=a(s=t[l],e);(n&lt;0&amp;&amp;c&gt;0||n&gt;0&amp;&amp;c&lt;0)&amp;&amp;r.push(o(i,c,s,n)),c&lt;=0&amp;&amp;r.push(s.slice()),n=c}return r}},{&quot;robust-dot-product&quot;:545,&quot;robust-sum&quot;:553}],567:[function(t,e,r){!function(){&quot;use strict&quot;;var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(t){return i(o(t),arguments)}function n(t,r){return e.apply(null,[t].concat(r||[]))}function i(r,n){var i,a,o,s,l,c,u,f,h,p=1,d=r.length,g=&quot;&quot;;for(a=0;a&lt;d;a++)if(&quot;string&quot;==typeof r[a])g+=r[a];else if(&quot;object&quot;==typeof r[a]){if((s=r[a]).keys)for(i=n[p],o=0;o&lt;s.keys.length;o++){if(null==i)throw new Error(e('[sprintf] Cannot access property &quot;%s&quot; of undefined value &quot;%s&quot;',s.keys[o],s.keys[o-1]));i=i[s.keys[o]]}else i=s.param_no?n[s.param_no]:n[p++];if(t.not_type.test(s.type)&amp;&amp;t.not_primitive.test(s.type)&amp;&amp;i instanceof Function&amp;&amp;(i=i()),t.numeric_arg.test(s.type)&amp;&amp;&quot;number&quot;!=typeof i&amp;&amp;isNaN(i))throw new TypeError(e(&quot;[sprintf] expecting number but found %T&quot;,i));switch(t.number.test(s.type)&amp;&amp;(f=i&gt;=0),s.type){case&quot;b&quot;:i=parseInt(i,10).toString(2);break;case&quot;c&quot;:i=String.fromCharCode(parseInt(i,10));break;case&quot;d&quot;:case&quot;i&quot;:i=parseInt(i,10);break;case&quot;j&quot;:i=JSON.stringify(i,null,s.width?parseInt(s.width):0);break;case&quot;e&quot;:i=s.precision?parseFloat(i).toExponential(s.precision):parseFloat(i).toExponential();break;case&quot;f&quot;:i=s.precision?parseFloat(i).toFixed(s.precision):parseFloat(i);break;case&quot;g&quot;:i=s.precision?String(Number(i.toPrecision(s.precision))):parseFloat(i);break;case&quot;o&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(8);break;case&quot;s&quot;:i=String(i),i=s.precision?i.substring(0,s.precision):i;break;case&quot;t&quot;:i=String(!!i),i=s.precision?i.substring(0,s.precision):i;break;case&quot;T&quot;:i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=s.precision?i.substring(0,s.precision):i;break;case&quot;u&quot;:i=parseInt(i,10)&gt;&gt;&gt;0;break;case&quot;v&quot;:i=i.valueOf(),i=s.precision?i.substring(0,s.precision):i;break;case&quot;x&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(16);break;case&quot;X&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(16).toUpperCase()}t.json.test(s.type)?g+=i:(!t.number.test(s.type)||f&amp;&amp;!s.sign?h=&quot;&quot;:(h=f?&quot;+&quot;:&quot;-&quot;,i=i.toString().replace(t.sign,&quot;&quot;)),c=s.pad_char?&quot;0&quot;===s.pad_char?&quot;0&quot;:s.pad_char.charAt(1):&quot; &quot;,u=s.width-(h+i).length,l=s.width&amp;&amp;u&gt;0?c.repeat(u):&quot;&quot;,g+=s.align?h+i+l:&quot;0&quot;===c?h+l+i:l+h+i)}return g}var a=Object.create(null);function o(e){if(a[e])return a[e];for(var r,n=e,i=[],o=0;n;){if(null!==(r=t.text.exec(n)))i.push(r[0]);else if(null!==(r=t.modulo.exec(n)))i.push(&quot;%&quot;);else{if(null===(r=t.placeholder.exec(n)))throw new SyntaxError(&quot;[sprintf] unexpected placeholder&quot;);if(r[2]){o|=1;var s=[],l=r[2],c=[];if(null===(c=t.key.exec(l)))throw new SyntaxError(&quot;[sprintf] failed to parse named argument key&quot;);for(s.push(c[1]);&quot;&quot;!==(l=l.substring(c[0].length));)if(null!==(c=t.key_access.exec(l)))s.push(c[1]);else{if(null===(c=t.index_access.exec(l)))throw new SyntaxError(&quot;[sprintf] failed to parse named argument key&quot;);s.push(c[1])}r[2]=s}else o|=2;if(3===o)throw new Error(&quot;[sprintf] mixing positional and named placeholders is not (yet) supported&quot;);i.push({placeholder:r[0],param_no:r[1],keys:r[2],sign:r[3],pad_char:r[4],align:r[5],width:r[6],precision:r[7],type:r[8]})}n=n.substring(r[0].length)}return a[e]=i}&quot;undefined&quot;!=typeof r&amp;&amp;(r.sprintf=e,r.vsprintf=n),&quot;undefined&quot;!=typeof window&amp;&amp;(window.sprintf=e,window.vsprintf=n)}()},{}],568:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parenthesis&quot;);e.exports=function(t,e,r){if(null==t)throw Error(&quot;First argument should be a string&quot;);if(null==e)throw Error(&quot;Separator should be a string or a RegExp&quot;);r?(&quot;string&quot;==typeof r||Array.isArray(r))&amp;&amp;(r={ignore:r}):r={},null==r.escape&amp;&amp;(r.escape=!0),null==r.ignore?r.ignore=[&quot;[]&quot;,&quot;()&quot;,&quot;{}&quot;,&quot;&lt;&gt;&quot;,'&quot;&quot;',&quot;''&quot;,&quot;``&quot;,&quot;\u201c\u201d&quot;,&quot;\xab\xbb&quot;]:(&quot;string&quot;==typeof r.ignore&amp;&amp;(r.ignore=[r.ignore]),r.ignore=r.ignore.map((function(t){return 1===t.length&amp;&amp;(t+=t),t})));var i=n.parse(t,{flat:!0,brackets:r.ignore}),a=i[0].split(e);if(r.escape){for(var o=[],s=0;s&lt;a.length;s++){var l=a[s],c=a[s+1];&quot;\\&quot;===l[l.length-1]&amp;&amp;&quot;\\&quot;!==l[l.length-2]?(o.push(l+e+c),s++):o.push(l)}a=o}for(s=0;s&lt;a.length;s++)i[0]=a[s],a[s]=n.stringify(i,{flat:!0});return a}},{parenthesis:503}],569:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=new Array(e),n=new Array(e),i=new Array(e),a=new Array(e),o=new Array(e),s=new Array(e),l=0;l&lt;e;++l)r[l]=-1,n[l]=0,i[l]=!1,a[l]=0,o[l]=-1,s[l]=[];var c,u=0,f=[],h=[];function p(e){var l=[e],c=[e];for(r[e]=n[e]=u,i[e]=!0,u+=1;c.length&gt;0;){e=c[c.length-1];var p=t[e];if(a[e]&lt;p.length){for(var d=a[e];d&lt;p.length;++d){var g=p[d];if(r[g]&lt;0){r[g]=n[g]=u,i[g]=!0,u+=1,l.push(g),c.push(g);break}i[g]&amp;&amp;(n[e]=0|Math.min(n[e],n[g])),o[g]&gt;=0&amp;&amp;s[e].push(o[g])}a[e]=d}else{if(n[e]===r[e]){var m=[],v=[],y=0;for(d=l.length-1;d&gt;=0;--d){var x=l[d];if(i[x]=!1,m.push(x),v.push(s[x]),y+=s[x].length,o[x]=f.length,x===e){l.length=d;break}}f.push(m);var b=new Array(y);for(d=0;d&lt;v.length;d++)for(var _=0;_&lt;v[d].length;_++)b[--y]=v[d][_];h.push(b)}c.pop()}}}for(l=0;l&lt;e;++l)r[l]&lt;0&amp;&amp;p(l);for(l=0;l&lt;h.length;l++){var d=h[l];if(0!==d.length){d.sort((function(t,e){return t-e})),c=[d[0]];for(var g=1;g&lt;d.length;g++)d[g]!==d[g-1]&amp;&amp;c.push(d[g]);h[l]=c}}return{components:f,adjacencyList:h}}},{}],570:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(t.dimension&lt;=0)return{positions:[],cells:[]};if(1===t.dimension)return function(t,e){for(var r=a(t,e),n=r.length,i=new Array(n),o=new Array(n),s=0;s&lt;n;++s)i[s]=[r[s]],o[s]=[s];return{positions:i,cells:o}}(t,e);var r=t.order.join()+&quot;-&quot;+t.dtype,s=o[r];e=+e||0;s||(s=o[r]=function(t,e){var r=t.length,a=[&quot;'use strict';&quot;],o=&quot;surfaceNets&quot;+t.join(&quot;_&quot;)+&quot;d&quot;+e;a.push(&quot;var contour=genContour({&quot;,&quot;order:[&quot;,t.join(),&quot;],&quot;,&quot;scalarArguments: 3,&quot;,&quot;phase:function phaseFunc(p,a,b,c) { return (p &gt; c)|0 },&quot;),&quot;generic&quot;===e&amp;&amp;a.push(&quot;getters:[0],&quot;);for(var s=[],l=[],c=0;c&lt;r;++c)s.push(&quot;d&quot;+c),l.push(&quot;d&quot;+c);for(c=0;c&lt;1&lt;&lt;r;++c)s.push(&quot;v&quot;+c),l.push(&quot;v&quot;+c);for(c=0;c&lt;1&lt;&lt;r;++c)s.push(&quot;p&quot;+c),l.push(&quot;p&quot;+c);s.push(&quot;a&quot;,&quot;b&quot;,&quot;c&quot;),l.push(&quot;a&quot;,&quot;c&quot;),a.push(&quot;vertex:function vertexFunc(&quot;,s.join(),&quot;){&quot;);var u=[];for(c=0;c&lt;1&lt;&lt;r;++c)u.push(&quot;(p&quot;+c+&quot;&lt;&lt;&quot;+c+&quot;)&quot;);a.push(&quot;var m=(&quot;,u.join(&quot;+&quot;),&quot;)|0;if(m===0||m===&quot;,(1&lt;&lt;(1&lt;&lt;r))-1,&quot;){return}&quot;);var f=[],h=[];1&lt;&lt;(1&lt;&lt;r)&lt;=128?(a.push(&quot;switch(m){&quot;),h=a):a.push(&quot;switch(m&gt;&gt;&gt;7){&quot;);for(c=0;c&lt;1&lt;&lt;(1&lt;&lt;r);++c){if(1&lt;&lt;(1&lt;&lt;r)&gt;128&amp;&amp;c%128==0){f.length&gt;0&amp;&amp;h.push(&quot;}}&quot;);var p=&quot;vExtra&quot;+f.length;a.push(&quot;case &quot;,c&gt;&gt;&gt;7,&quot;:&quot;,p,&quot;(m&amp;0x7f,&quot;,l.join(),&quot;);break;&quot;),h=[&quot;function &quot;,p,&quot;(m,&quot;,l.join(),&quot;){switch(m){&quot;],f.push(h)}h.push(&quot;case &quot;,127&amp;c,&quot;:&quot;);for(var d=new Array(r),g=new Array(r),m=new Array(r),v=new Array(r),y=0,x=0;x&lt;r;++x)d[x]=[],g[x]=[],m[x]=0,v[x]=0;for(x=0;x&lt;1&lt;&lt;r;++x)for(var b=0;b&lt;r;++b){var _=x^1&lt;&lt;b;if(!(_&gt;x)&amp;&amp;!(c&amp;1&lt;&lt;_)!=!(c&amp;1&lt;&lt;x)){var w=1;c&amp;1&lt;&lt;_?g[b].push(&quot;v&quot;+_+&quot;-v&quot;+x):(g[b].push(&quot;v&quot;+x+&quot;-v&quot;+_),w=-w),w&lt;0?(d[b].push(&quot;-v&quot;+x+&quot;-v&quot;+_),m[b]+=2):(d[b].push(&quot;v&quot;+x+&quot;+v&quot;+_),m[b]-=2),y+=1;for(var T=0;T&lt;r;++T)T!==b&amp;&amp;(_&amp;1&lt;&lt;T?v[T]+=1:v[T]-=1)}}var k=[];for(b=0;b&lt;r;++b)if(0===d[b].length)k.push(&quot;d&quot;+b+&quot;-0.5&quot;);else{var M=&quot;&quot;;m[b]&lt;0?M=m[b]+&quot;*c&quot;:m[b]&gt;0&amp;&amp;(M=&quot;+&quot;+m[b]+&quot;*c&quot;);var A=d[b].length/y*.5,S=.5+v[b]/y*.5;k.push(&quot;d&quot;+b+&quot;-&quot;+S+&quot;-&quot;+A+&quot;*(&quot;+d[b].join(&quot;+&quot;)+M+&quot;)/(&quot;+g[b].join(&quot;+&quot;)+&quot;)&quot;)}h.push(&quot;a.push([&quot;,k.join(),&quot;]);&quot;,&quot;break;&quot;)}a.push(&quot;}},&quot;),f.length&gt;0&amp;&amp;h.push(&quot;}}&quot;);var E=[];for(c=0;c&lt;1&lt;&lt;r-1;++c)E.push(&quot;v&quot;+c);E.push(&quot;c0&quot;,&quot;c1&quot;,&quot;p0&quot;,&quot;p1&quot;,&quot;a&quot;,&quot;b&quot;,&quot;c&quot;),a.push(&quot;cell:function cellFunc(&quot;,E.join(),&quot;){&quot;);var C=i(r-1);a.push(&quot;if(p0){b.push(&quot;,C.map((function(t){return&quot;[&quot;+t.map((function(t){return&quot;v&quot;+t}))+&quot;]&quot;})).join(),&quot;)}else{b.push(&quot;,C.map((function(t){var e=t.slice();return e.reverse(),&quot;[&quot;+e.map((function(t){return&quot;v&quot;+t}))+&quot;]&quot;})).join(),&quot;)}}});function &quot;,o,&quot;(array,level){var verts=[],cells=[];contour(array,verts,cells,level);return {positions:verts,cells:cells};} return &quot;,o,&quot;;&quot;);for(c=0;c&lt;f.length;++c)a.push(f[c].join(&quot;&quot;));return new Function(&quot;genContour&quot;,a.join(&quot;&quot;))(n)}(t.order,t.dtype));return s(t,e)};var n=t(&quot;ndarray-extract-contour&quot;),i=t(&quot;triangulate-hypercube&quot;),a=t(&quot;zero-crossings&quot;);var o={}},{&quot;ndarray-extract-contour&quot;:487,&quot;triangulate-hypercube&quot;:580,&quot;zero-crossings&quot;:624}],571:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&amp;&amp;(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{!n&amp;&amp;s.return&amp;&amp;s.return()}finally{if(i)throw a}}return r}(t,e);throw new TypeError(&quot;Invalid attempt to destructure non-iterable instance&quot;)},i=2*Math.PI,a=function(t,e,r,n,i,a,o){var s=t.x,l=t.y;return{x:n*(s*=e)-i*(l*=r)+a,y:i*s+n*l+o}},o=function(t,e){var r=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),n=Math.cos(t),i=Math.sin(t),a=Math.cos(t+e),o=Math.sin(t+e);return[{x:n-i*r,y:i+n*r},{x:a+o*r,y:o-a*r},{x:a,y:o}]},s=function(t,e,r,n){var i=t*r+e*n;return i&gt;1&amp;&amp;(i=1),i&lt;-1&amp;&amp;(i=-1),(t*n-e*r&lt;0?-1:1)*Math.acos(i)};r.default=function(t){var e=t.px,r=t.py,l=t.cx,c=t.cy,u=t.rx,f=t.ry,h=t.xAxisRotation,p=void 0===h?0:h,d=t.largeArcFlag,g=void 0===d?0:d,m=t.sweepFlag,v=void 0===m?0:m,y=[];if(0===u||0===f)return[];var x=Math.sin(p*i/360),b=Math.cos(p*i/360),_=b*(e-l)/2+x*(r-c)/2,w=-x*(e-l)/2+b*(r-c)/2;if(0===_&amp;&amp;0===w)return[];u=Math.abs(u),f=Math.abs(f);var T=Math.pow(_,2)/Math.pow(u,2)+Math.pow(w,2)/Math.pow(f,2);T&gt;1&amp;&amp;(u*=Math.sqrt(T),f*=Math.sqrt(T));var k=function(t,e,r,n,a,o,l,c,u,f,h,p){var d=Math.pow(a,2),g=Math.pow(o,2),m=Math.pow(h,2),v=Math.pow(p,2),y=d*g-d*v-g*m;y&lt;0&amp;&amp;(y=0),y/=d*v+g*m;var x=(y=Math.sqrt(y)*(l===c?-1:1))*a/o*p,b=y*-o/a*h,_=f*x-u*b+(t+r)/2,w=u*x+f*b+(e+n)/2,T=(h-x)/a,k=(p-b)/o,M=(-h-x)/a,A=(-p-b)/o,S=s(1,0,T,k),E=s(T,k,M,A);return 0===c&amp;&amp;E&gt;0&amp;&amp;(E-=i),1===c&amp;&amp;E&lt;0&amp;&amp;(E+=i),[_,w,S,E]}(e,r,l,c,u,f,g,v,x,b,_,w),M=n(k,4),A=M[0],S=M[1],E=M[2],C=M[3],L=Math.abs(C)/(i/4);Math.abs(1-L)&lt;1e-7&amp;&amp;(L=1);var I=Math.max(Math.ceil(L),1);C/=I;for(var P=0;P&lt;I;P++)y.push(o(E,C)),E+=C;return y.map((function(t){var e=a(t[0],u,f,b,x,A,S),r=e.x,n=e.y,i=a(t[1],u,f,b,x,A,S),o=i.x,s=i.y,l=a(t[2],u,f,b,x,A,S);return{x1:r,y1:n,x2:o,y2:s,x:l.x,y:l.y}}))},e.exports=r.default},{}],572:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-svg-path&quot;),i=t(&quot;abs-svg-path&quot;),a=t(&quot;normalize-svg-path&quot;),o=t(&quot;is-svg-path&quot;),s=t(&quot;assert&quot;);e.exports=function(t){Array.isArray(t)&amp;&amp;1===t.length&amp;&amp;&quot;string&quot;==typeof t[0]&amp;&amp;(t=t[0]);&quot;string&quot;==typeof t&amp;&amp;(s(o(t),&quot;String is not an SVG path.&quot;),t=n(t));if(s(Array.isArray(t),&quot;Argument should be a string or an array of path segments.&quot;),t=i(t),!(t=a(t)).length)return[0,0,0,0];for(var e=[1/0,1/0,-1/0,-1/0],r=0,l=t.length;r&lt;l;r++)for(var c=t[r].slice(1),u=0;u&lt;c.length;u+=2)c[u+0]&lt;e[0]&amp;&amp;(e[0]=c[u+0]),c[u+1]&lt;e[1]&amp;&amp;(e[1]=c[u+1]),c[u+0]&gt;e[2]&amp;&amp;(e[2]=c[u+0]),c[u+1]&gt;e[3]&amp;&amp;(e[3]=c[u+1]);return e}},{&quot;abs-svg-path&quot;:65,assert:73,&quot;is-svg-path&quot;:471,&quot;normalize-svg-path&quot;:573,&quot;parse-svg-path&quot;:505}],573:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e,r=[],o=0,s=0,l=0,c=0,u=null,f=null,h=0,p=0,d=0,g=t.length;d&lt;g;d++){var m=t[d],v=m[0];switch(v){case&quot;M&quot;:l=m[1],c=m[2];break;case&quot;A&quot;:var y=n({px:h,py:p,cx:m[6],cy:m[7],rx:m[1],ry:m[2],xAxisRotation:m[3],largeArcFlag:m[4],sweepFlag:m[5]});if(!y.length)continue;for(var x,b=0;b&lt;y.length;b++)x=y[b],m=[&quot;C&quot;,x.x1,x.y1,x.x2,x.y2,x.x,x.y],b&lt;y.length-1&amp;&amp;r.push(m);break;case&quot;S&quot;:var _=h,w=p;&quot;C&quot;!=e&amp;&amp;&quot;S&quot;!=e||(_+=_-o,w+=w-s),m=[&quot;C&quot;,_,w,m[1],m[2],m[3],m[4]];break;case&quot;T&quot;:&quot;Q&quot;==e||&quot;T&quot;==e?(u=2*h-u,f=2*p-f):(u=h,f=p),m=a(h,p,u,f,m[1],m[2]);break;case&quot;Q&quot;:u=m[1],f=m[2],m=a(h,p,m[1],m[2],m[3],m[4]);break;case&quot;L&quot;:m=i(h,p,m[1],m[2]);break;case&quot;H&quot;:m=i(h,p,m[1],p);break;case&quot;V&quot;:m=i(h,p,h,m[1]);break;case&quot;Z&quot;:m=i(h,p,l,c)}e=v,h=m[m.length-2],p=m[m.length-1],m.length&gt;4?(o=m[m.length-4],s=m[m.length-3]):(o=h,s=p),r.push(m)}return r};var n=t(&quot;svg-arc-to-cubic-bezier&quot;);function i(t,e,r,n){return[&quot;C&quot;,t,e,r,n,r,n]}function a(t,e,r,n,i,a){return[&quot;C&quot;,t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}},{&quot;svg-arc-to-cubic-bezier&quot;:571}],574:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;svg-path-bounds&quot;),a=t(&quot;parse-svg-path&quot;),o=t(&quot;draw-svg-path&quot;),s=t(&quot;is-svg-path&quot;),l=t(&quot;bitmap-sdf&quot;),c=document.createElement(&quot;canvas&quot;),u=c.getContext(&quot;2d&quot;);e.exports=function(t,e){if(!s(t))throw Error(&quot;Argument should be valid svg path string&quot;);e||(e={});var r,f;e.shape?(r=e.shape[0],f=e.shape[1]):(r=c.width=e.w||e.width||200,f=c.height=e.h||e.height||200);var h=Math.min(r,f),p=e.stroke||0,d=e.viewbox||e.viewBox||i(t),g=[r/(d[2]-d[0]),f/(d[3]-d[1])],m=Math.min(g[0]||0,g[1]||0)/2;u.fillStyle=&quot;black&quot;,u.fillRect(0,0,r,f),u.fillStyle=&quot;white&quot;,p&amp;&amp;(&quot;number&quot;!=typeof p&amp;&amp;(p=1),u.strokeStyle=p&gt;0?&quot;white&quot;:&quot;black&quot;,u.lineWidth=Math.abs(p));if(u.translate(.5*r,.5*f),u.scale(m,m),function(){if(null!=n)return n;var t=document.createElement(&quot;canvas&quot;).getContext(&quot;2d&quot;);if(t.canvas.width=t.canvas.height=1,!window.Path2D)return n=!1;var e=new Path2D(&quot;M0,0h1v1h-1v-1Z&quot;);t.fillStyle=&quot;black&quot;,t.fill(e);var r=t.getImageData(0,0,1,1);return n=r&amp;&amp;r.data&amp;&amp;255===r.data[3]}()){var v=new Path2D(t);u.fill(v),p&amp;&amp;u.stroke(v)}else{var y=a(t);o(u,y),u.fill(),p&amp;&amp;u.stroke()}return u.setTransform(1,0,0,1,0,0),l(u,{cutoff:null!=e.cutoff?e.cutoff:.5,radius:null!=e.radius?e.radius:.5*h})}},{&quot;bitmap-sdf&quot;:98,&quot;draw-svg-path&quot;:174,&quot;is-svg-path&quot;:471,&quot;parse-svg-path&quot;:505,&quot;svg-path-bounds&quot;:572}],575:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;e.exports=function t(e,r,i){i=i||{};var o=a[e];o||(o=a[e]={&quot; &quot;:{data:new Float32Array(0),shape:.2}});var s=o[r];if(!s)if(r.length&lt;=1||!/\d/.test(r))s=o[r]=function(t){for(var e=t.cells,r=t.positions,n=new Float32Array(6*e.length),i=0,a=0,o=0;o&lt;e.length;++o)for(var s=e[o],l=0;l&lt;3;++l){var c=r[s[l]];n[i++]=c[0],n[i++]=c[1]+1.4,a=Math.max(c[0],a)}return{data:n,shape:a}}(n(r,{triangles:!0,font:e,textAlign:i.textAlign||&quot;left&quot;,textBaseline:&quot;alphabetic&quot;,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}}));else{for(var l=r.split(/(\d|\s)/),c=new Array(l.length),u=0,f=0,h=0;h&lt;l.length;++h)c[h]=t(e,l[h]),u+=c[h].data.length,f+=c[h].shape,h&gt;0&amp;&amp;(f+=.02);var p=new Float32Array(u),d=0,g=-.5*f;for(h=0;h&lt;c.length;++h){for(var m=c[h].data,v=0;v&lt;m.length;v+=2)p[d++]=m[v]+g,p[d++]=m[v+1];g+=c[h].shape+.02}s=o[r]={data:p,shape:f}}return s};var n=t(&quot;vectorize-text&quot;),i=window||r.global||{},a=i.__TEXT_CACHE||{};i.__TEXT_CACHE={}}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:526,&quot;vectorize-text&quot;:600}],576:[function(t,e,r){!function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,s=t.max,l=t.random;function c(e,l){if(l=l||{},(e=e||&quot;&quot;)instanceof c)return e;if(!(this instanceof c))return new c(e,l);var u=function(e){var i={r:0,g:0,b:0},a=1,l=null,c=null,u=null,f=!1,h=!1;&quot;string&quot;==typeof e&amp;&amp;(e=function(t){t=t.replace(r,&quot;&quot;).replace(n,&quot;&quot;).toLowerCase();var e,i=!1;if(S[t])t=S[t],i=!0;else if(&quot;transparent&quot;==t)return{r:0,g:0,b:0,a:0,format:&quot;name&quot;};if(e=j.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=j.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=j.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=j.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=j.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=j.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=j.hex8.exec(t))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),a:R(e[4]),format:i?&quot;name&quot;:&quot;hex8&quot;};if(e=j.hex6.exec(t))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),format:i?&quot;name&quot;:&quot;hex&quot;};if(e=j.hex4.exec(t))return{r:P(e[1]+&quot;&quot;+e[1]),g:P(e[2]+&quot;&quot;+e[2]),b:P(e[3]+&quot;&quot;+e[3]),a:R(e[4]+&quot;&quot;+e[4]),format:i?&quot;name&quot;:&quot;hex8&quot;};if(e=j.hex3.exec(t))return{r:P(e[1]+&quot;&quot;+e[1]),g:P(e[2]+&quot;&quot;+e[2]),b:P(e[3]+&quot;&quot;+e[3]),format:i?&quot;name&quot;:&quot;hex&quot;};return!1}(e));&quot;object&quot;==typeof e&amp;&amp;(U(e.r)&amp;&amp;U(e.g)&amp;&amp;U(e.b)?(p=e.r,d=e.g,g=e.b,i={r:255*L(p,255),g:255*L(d,255),b:255*L(g,255)},f=!0,h=&quot;%&quot;===String(e.r).substr(-1)?&quot;prgb&quot;:&quot;rgb&quot;):U(e.h)&amp;&amp;U(e.s)&amp;&amp;U(e.v)?(l=O(e.s),c=O(e.v),i=function(e,r,n){e=6*L(e,360),r=L(r,100),n=L(n,100);var i=t.floor(e),a=e-i,o=n*(1-r),s=n*(1-a*r),l=n*(1-(1-a)*r),c=i%6;return{r:255*[n,s,o,o,l,n][c],g:255*[l,n,n,s,o,o][c],b:255*[o,o,l,n,n,s][c]}}(e.h,l,c),f=!0,h=&quot;hsv&quot;):U(e.h)&amp;&amp;U(e.s)&amp;&amp;U(e.l)&amp;&amp;(l=O(e.s),u=O(e.l),i=function(t,e,r){var n,i,a;function o(t,e,r){return r&lt;0&amp;&amp;(r+=1),r&gt;1&amp;&amp;(r-=1),r&lt;1/6?t+6*(e-t)*r:r&lt;.5?e:r&lt;2/3?t+(e-t)*(2/3-r)*6:t}if(t=L(t,360),e=L(e,100),r=L(r,100),0===e)n=i=a=r;else{var s=r&lt;.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),i=o(l,s,t),a=o(l,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(e.h,l,u),f=!0,h=&quot;hsl&quot;),e.hasOwnProperty(&quot;a&quot;)&amp;&amp;(a=e.a));var p,d,g;return a=C(a),{ok:f,format:e.format||h,r:o(255,s(i.r,0)),g:o(255,s(i.g,0)),b:o(255,s(i.b,0)),a:a}}(e);this._originalInput=e,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=a(100*this._a)/100,this._format=l.format||u.format,this._gradientType=l.gradientType,this._r&lt;1&amp;&amp;(this._r=a(this._r)),this._g&lt;1&amp;&amp;(this._g=a(this._g)),this._b&lt;1&amp;&amp;(this._b=a(this._b)),this._ok=u.ok,this._tc_id=i++}function u(t,e,r){t=L(t,255),e=L(e,255),r=L(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=(a+l)/2;if(a==l)n=i=0;else{var u=a-l;switch(i=c&gt;.5?u/(2-a-l):u/(a+l),a){case t:n=(e-r)/u+(e&lt;r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:c}}function f(t,e,r){t=L(t,255),e=L(e,255),r=L(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=a,u=a-l;if(i=0===a?0:u/a,a==l)n=0;else{switch(a){case t:n=(e-r)/u+(e&lt;r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:c}}function h(t,e,r,n){var i=[z(a(t).toString(16)),z(a(e).toString(16)),z(a(r).toString(16))];return n&amp;&amp;i[0].charAt(0)==i[0].charAt(1)&amp;&amp;i[1].charAt(0)==i[1].charAt(1)&amp;&amp;i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(&quot;&quot;)}function p(t,e,r,n){return[z(D(n)),z(a(t).toString(16)),z(a(e).toString(16)),z(a(r).toString(16))].join(&quot;&quot;)}function d(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s-=e/100,r.s=I(r.s),c(r)}function g(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s+=e/100,r.s=I(r.s),c(r)}function m(t){return c(t).desaturate(100)}function v(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l+=e/100,r.l=I(r.l),c(r)}function y(t,e){e=0===e?0:e||10;var r=c(t).toRgb();return r.r=s(0,o(255,r.r-a(-e/100*255))),r.g=s(0,o(255,r.g-a(-e/100*255))),r.b=s(0,o(255,r.b-a(-e/100*255))),c(r)}function x(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l-=e/100,r.l=I(r.l),c(r)}function b(t,e){var r=c(t).toHsl(),n=(r.h+e)%360;return r.h=n&lt;0?360+n:n,c(r)}function _(t){var e=c(t).toHsl();return e.h=(e.h+180)%360,c(e)}function w(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+120)%360,s:e.s,l:e.l}),c({h:(r+240)%360,s:e.s,l:e.l})]}function T(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+90)%360,s:e.s,l:e.l}),c({h:(r+180)%360,s:e.s,l:e.l}),c({h:(r+270)%360,s:e.s,l:e.l})]}function k(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+72)%360,s:e.s,l:e.l}),c({h:(r+216)%360,s:e.s,l:e.l})]}function M(t,e,r){e=e||6,r=r||30;var n=c(t).toHsl(),i=360/r,a=[c(t)];for(n.h=(n.h-(i*e&gt;&gt;1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(c(n));return a}function A(t,e){e=e||6;for(var r=c(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(c({h:n,s:i,v:a})),a=(a+s)%1;return o}c.prototype={isDark:function(){return this.getBrightness()&lt;128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var e,r,n,i=this.toRgb();return e=i.r/255,r=i.g/255,n=i.b/255,.2126*(e&lt;=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(r&lt;=.03928?r/12.92:t.pow((r+.055)/1.055,2.4))+.0722*(n&lt;=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=C(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=f(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.v);return 1==this._a?&quot;hsv(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%)&quot;:&quot;hsva(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%, &quot;+this._roundA+&quot;)&quot;},toHsl:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=u(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.l);return 1==this._a?&quot;hsl(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%)&quot;:&quot;hsla(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%, &quot;+this._roundA+&quot;)&quot;},toHex:function(t){return h(this._r,this._g,this._b,t)},toHexString:function(t){return&quot;#&quot;+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[z(a(t).toString(16)),z(a(e).toString(16)),z(a(r).toString(16)),z(D(n))];if(i&amp;&amp;o[0].charAt(0)==o[0].charAt(1)&amp;&amp;o[1].charAt(0)==o[1].charAt(1)&amp;&amp;o[2].charAt(0)==o[2].charAt(1)&amp;&amp;o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join(&quot;&quot;)}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return&quot;#&quot;+this.toHex8(t)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?&quot;rgb(&quot;+a(this._r)+&quot;, &quot;+a(this._g)+&quot;, &quot;+a(this._b)+&quot;)&quot;:&quot;rgba(&quot;+a(this._r)+&quot;, &quot;+a(this._g)+&quot;, &quot;+a(this._b)+&quot;, &quot;+this._roundA+&quot;)&quot;},toPercentageRgb:function(){return{r:a(100*L(this._r,255))+&quot;%&quot;,g:a(100*L(this._g,255))+&quot;%&quot;,b:a(100*L(this._b,255))+&quot;%&quot;,a:this._a}},toPercentageRgbString:function(){return 1==this._a?&quot;rgb(&quot;+a(100*L(this._r,255))+&quot;%, &quot;+a(100*L(this._g,255))+&quot;%, &quot;+a(100*L(this._b,255))+&quot;%)&quot;:&quot;rgba(&quot;+a(100*L(this._r,255))+&quot;%, &quot;+a(100*L(this._g,255))+&quot;%, &quot;+a(100*L(this._b,255))+&quot;%, &quot;+this._roundA+&quot;)&quot;},toName:function(){return 0===this._a?&quot;transparent&quot;:!(this._a&lt;1)&amp;&amp;(E[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e=&quot;#&quot;+p(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?&quot;GradientType = 1, &quot;:&quot;&quot;;if(t){var i=c(t);r=&quot;#&quot;+p(i._r,i._g,i._b,i._a)}return&quot;progid:DXImageTransform.Microsoft.gradient(&quot;+n+&quot;startColorstr=&quot;+e+&quot;,endColorstr=&quot;+r+&quot;)&quot;},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a&lt;1&amp;&amp;this._a&gt;=0;return e||!n||&quot;hex&quot;!==t&amp;&amp;&quot;hex6&quot;!==t&amp;&amp;&quot;hex3&quot;!==t&amp;&amp;&quot;hex4&quot;!==t&amp;&amp;&quot;hex8&quot;!==t&amp;&amp;&quot;name&quot;!==t?(&quot;rgb&quot;===t&amp;&amp;(r=this.toRgbString()),&quot;prgb&quot;===t&amp;&amp;(r=this.toPercentageRgbString()),&quot;hex&quot;!==t&amp;&amp;&quot;hex6&quot;!==t||(r=this.toHexString()),&quot;hex3&quot;===t&amp;&amp;(r=this.toHexString(!0)),&quot;hex4&quot;===t&amp;&amp;(r=this.toHex8String(!0)),&quot;hex8&quot;===t&amp;&amp;(r=this.toHex8String()),&quot;name&quot;===t&amp;&amp;(r=this.toName()),&quot;hsl&quot;===t&amp;&amp;(r=this.toHslString()),&quot;hsv&quot;===t&amp;&amp;(r=this.toHsvString()),r||this.toHexString()):&quot;name&quot;===t&amp;&amp;0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},c.fromRatio=function(t,e){if(&quot;object&quot;==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&amp;&amp;(r[n]=&quot;a&quot;===n?t[n]:O(t[n]));t=r}return c(t,e)},c.equals=function(t,e){return!(!t||!e)&amp;&amp;c(t).toRgbString()==c(e).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})},c.mix=function(t,e,r){r=0===r?0:r||50;var n=c(t).toRgb(),i=c(e).toRgb(),a=r/100;return c({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},c.readability=function(e,r){var n=c(e),i=c(r);return(t.max(n.getLuminance(),i.getLuminance())+.05)/(t.min(n.getLuminance(),i.getLuminance())+.05)},c.isReadable=function(t,e,r){var n,i,a=c.readability(t,e);switch(i=!1,(n=function(t){var e,r;e=((t=t||{level:&quot;AA&quot;,size:&quot;small&quot;}).level||&quot;AA&quot;).toUpperCase(),r=(t.size||&quot;small&quot;).toLowerCase(),&quot;AA&quot;!==e&amp;&amp;&quot;AAA&quot;!==e&amp;&amp;(e=&quot;AA&quot;);&quot;small&quot;!==r&amp;&amp;&quot;large&quot;!==r&amp;&amp;(r=&quot;small&quot;);return{level:e,size:r}}(r)).level+n.size){case&quot;AAsmall&quot;:case&quot;AAAlarge&quot;:i=a&gt;=4.5;break;case&quot;AAlarge&quot;:i=a&gt;=3;break;case&quot;AAAsmall&quot;:i=a&gt;=7}return i},c.mostReadable=function(t,e,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var u=0;u&lt;e.length;u++)(n=c.readability(t,e[u]))&gt;l&amp;&amp;(l=n,s=c(e[u]));return c.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,c.mostReadable(t,[&quot;#fff&quot;,&quot;#000&quot;],r))};var S=c.names={aliceblue:&quot;f0f8ff&quot;,antiquewhite:&quot;faebd7&quot;,aqua:&quot;0ff&quot;,aquamarine:&quot;7fffd4&quot;,azure:&quot;f0ffff&quot;,beige:&quot;f5f5dc&quot;,bisque:&quot;ffe4c4&quot;,black:&quot;000&quot;,blanchedalmond:&quot;ffebcd&quot;,blue:&quot;00f&quot;,blueviolet:&quot;8a2be2&quot;,brown:&quot;a52a2a&quot;,burlywood:&quot;deb887&quot;,burntsienna:&quot;ea7e5d&quot;,cadetblue:&quot;5f9ea0&quot;,chartreuse:&quot;7fff00&quot;,chocolate:&quot;d2691e&quot;,coral:&quot;ff7f50&quot;,cornflowerblue:&quot;6495ed&quot;,cornsilk:&quot;fff8dc&quot;,crimson:&quot;dc143c&quot;,cyan:&quot;0ff&quot;,darkblue:&quot;00008b&quot;,darkcyan:&quot;008b8b&quot;,darkgoldenrod:&quot;b8860b&quot;,darkgray:&quot;a9a9a9&quot;,darkgreen:&quot;006400&quot;,darkgrey:&quot;a9a9a9&quot;,darkkhaki:&quot;bdb76b&quot;,darkmagenta:&quot;8b008b&quot;,darkolivegreen:&quot;556b2f&quot;,darkorange:&quot;ff8c00&quot;,darkorchid:&quot;9932cc&quot;,darkred:&quot;8b0000&quot;,darksalmon:&quot;e9967a&quot;,darkseagreen:&quot;8fbc8f&quot;,darkslateblue:&quot;483d8b&quot;,darkslategray:&quot;2f4f4f&quot;,darkslategrey:&quot;2f4f4f&quot;,darkturquoise:&quot;00ced1&quot;,darkviolet:&quot;9400d3&quot;,deeppink:&quot;ff1493&quot;,deepskyblue:&quot;00bfff&quot;,dimgray:&quot;696969&quot;,dimgrey:&quot;696969&quot;,dodgerblue:&quot;1e90ff&quot;,firebrick:&quot;b22222&quot;,floralwhite:&quot;fffaf0&quot;,forestgreen:&quot;228b22&quot;,fuchsia:&quot;f0f&quot;,gainsboro:&quot;dcdcdc&quot;,ghostwhite:&quot;f8f8ff&quot;,gold:&quot;ffd700&quot;,goldenrod:&quot;daa520&quot;,gray:&quot;808080&quot;,green:&quot;008000&quot;,greenyellow:&quot;adff2f&quot;,grey:&quot;808080&quot;,honeydew:&quot;f0fff0&quot;,hotpink:&quot;ff69b4&quot;,indianred:&quot;cd5c5c&quot;,indigo:&quot;4b0082&quot;,ivory:&quot;fffff0&quot;,khaki:&quot;f0e68c&quot;,lavender:&quot;e6e6fa&quot;,lavenderblush:&quot;fff0f5&quot;,lawngreen:&quot;7cfc00&quot;,lemonchiffon:&quot;fffacd&quot;,lightblue:&quot;add8e6&quot;,lightcoral:&quot;f08080&quot;,lightcyan:&quot;e0ffff&quot;,lightgoldenrodyellow:&quot;fafad2&quot;,lightgray:&quot;d3d3d3&quot;,lightgreen:&quot;90ee90&quot;,lightgrey:&quot;d3d3d3&quot;,lightpink:&quot;ffb6c1&quot;,lightsalmon:&quot;ffa07a&quot;,lightseagreen:&quot;20b2aa&quot;,lightskyblue:&quot;87cefa&quot;,lightslategray:&quot;789&quot;,lightslategrey:&quot;789&quot;,lightsteelblue:&quot;b0c4de&quot;,lightyellow:&quot;ffffe0&quot;,lime:&quot;0f0&quot;,limegreen:&quot;32cd32&quot;,linen:&quot;faf0e6&quot;,magenta:&quot;f0f&quot;,maroon:&quot;800000&quot;,mediumaquamarine:&quot;66cdaa&quot;,mediumblue:&quot;0000cd&quot;,mediumorchid:&quot;ba55d3&quot;,mediumpurple:&quot;9370db&quot;,mediumseagreen:&quot;3cb371&quot;,mediumslateblue:&quot;7b68ee&quot;,mediumspringgreen:&quot;00fa9a&quot;,mediumturquoise:&quot;48d1cc&quot;,mediumvioletred:&quot;c71585&quot;,midnightblue:&quot;191970&quot;,mintcream:&quot;f5fffa&quot;,mistyrose:&quot;ffe4e1&quot;,moccasin:&quot;ffe4b5&quot;,navajowhite:&quot;ffdead&quot;,navy:&quot;000080&quot;,oldlace:&quot;fdf5e6&quot;,olive:&quot;808000&quot;,olivedrab:&quot;6b8e23&quot;,orange:&quot;ffa500&quot;,orangered:&quot;ff4500&quot;,orchid:&quot;da70d6&quot;,palegoldenrod:&quot;eee8aa&quot;,palegreen:&quot;98fb98&quot;,paleturquoise:&quot;afeeee&quot;,palevioletred:&quot;db7093&quot;,papayawhip:&quot;ffefd5&quot;,peachpuff:&quot;ffdab9&quot;,peru:&quot;cd853f&quot;,pink:&quot;ffc0cb&quot;,plum:&quot;dda0dd&quot;,powderblue:&quot;b0e0e6&quot;,purple:&quot;800080&quot;,rebeccapurple:&quot;663399&quot;,red:&quot;f00&quot;,rosybrown:&quot;bc8f8f&quot;,royalblue:&quot;4169e1&quot;,saddlebrown:&quot;8b4513&quot;,salmon:&quot;fa8072&quot;,sandybrown:&quot;f4a460&quot;,seagreen:&quot;2e8b57&quot;,seashell:&quot;fff5ee&quot;,sienna:&quot;a0522d&quot;,silver:&quot;c0c0c0&quot;,skyblue:&quot;87ceeb&quot;,slateblue:&quot;6a5acd&quot;,slategray:&quot;708090&quot;,slategrey:&quot;708090&quot;,snow:&quot;fffafa&quot;,springgreen:&quot;00ff7f&quot;,steelblue:&quot;4682b4&quot;,tan:&quot;d2b48c&quot;,teal:&quot;008080&quot;,thistle:&quot;d8bfd8&quot;,tomato:&quot;ff6347&quot;,turquoise:&quot;40e0d0&quot;,violet:&quot;ee82ee&quot;,wheat:&quot;f5deb3&quot;,white:&quot;fff&quot;,whitesmoke:&quot;f5f5f5&quot;,yellow:&quot;ff0&quot;,yellowgreen:&quot;9acd32&quot;},E=c.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&amp;&amp;(e[t[r]]=r);return e}(S);function C(t){return t=parseFloat(t),(isNaN(t)||t&lt;0||t&gt;1)&amp;&amp;(t=1),t}function L(e,r){(function(t){return&quot;string&quot;==typeof t&amp;&amp;-1!=t.indexOf(&quot;.&quot;)&amp;&amp;1===parseFloat(t)})(e)&amp;&amp;(e=&quot;100%&quot;);var n=function(t){return&quot;string&quot;==typeof t&amp;&amp;-1!=t.indexOf(&quot;%&quot;)}(e);return e=o(r,s(0,parseFloat(e))),n&amp;&amp;(e=parseInt(e*r,10)/100),t.abs(e-r)&lt;1e-6?1:e%r/parseFloat(r)}function I(t){return o(1,s(0,t))}function P(t){return parseInt(t,16)}function z(t){return 1==t.length?&quot;0&quot;+t:&quot;&quot;+t}function O(t){return t&lt;=1&amp;&amp;(t=100*t+&quot;%&quot;),t}function D(e){return t.round(255*parseFloat(e)).toString(16)}function R(t){return P(t)/255}var F,B,N,j=(B=&quot;[\\s|\\(]+(&quot;+(F=&quot;(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)&quot;)+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)\\s*\\)?&quot;,N=&quot;[\\s|\\(]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)\\s*\\)?&quot;,{CSS_UNIT:new RegExp(F),rgb:new RegExp(&quot;rgb&quot;+B),rgba:new RegExp(&quot;rgba&quot;+N),hsl:new RegExp(&quot;hsl&quot;+B),hsla:new RegExp(&quot;hsla&quot;+N),hsv:new RegExp(&quot;hsv&quot;+B),hsva:new RegExp(&quot;hsva&quot;+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(t){return!!j.CSS_UNIT.exec(t)}&quot;undefined&quot;!=typeof e&amp;&amp;e.exports?e.exports=c:window.tinycolor=c}(Math)},{}],577:[function(t,e,r){&quot;use strict&quot;;e.exports=i,e.exports.float32=e.exports.float=i,e.exports.fract32=e.exports.fract=function(t){if(t.length){for(var e=i(t),r=0,n=e.length;r&lt;n;r++)e[r]=t[r]-e[r];return e}return i(t-i(t))};var n=new Float32Array(1);function i(t){if(t.length){if(t instanceof Float32Array)return t;var e=new Float32Array(t);return e.set(t),e}return n[0]=t,n[0]}},{}],578:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-unit&quot;);e.exports=a;function i(t,e){var r=n(getComputedStyle(t).getPropertyValue(e));return r[0]*a(r[1],t)}function a(t,e){switch(e=e||document.body,t=(t||&quot;px&quot;).trim().toLowerCase(),e!==window&amp;&amp;e!==document||(e=document.body),t){case&quot;%&quot;:return e.clientHeight/100;case&quot;ch&quot;:case&quot;ex&quot;:return function(t,e){var r=document.createElement(&quot;div&quot;);r.style[&quot;font-size&quot;]=&quot;128&quot;+t,e.appendChild(r);var n=i(r,&quot;font-size&quot;)/128;return e.removeChild(r),n}(t,e);case&quot;em&quot;:return i(e,&quot;font-size&quot;);case&quot;rem&quot;:return i(document.body,&quot;font-size&quot;);case&quot;vw&quot;:return window.innerWidth/100;case&quot;vh&quot;:return window.innerHeight/100;case&quot;vmin&quot;:return Math.min(window.innerWidth,window.innerHeight)/100;case&quot;vmax&quot;:return Math.max(window.innerWidth,window.innerHeight)/100;case&quot;in&quot;:return 96;case&quot;cm&quot;:return 96/2.54;case&quot;mm&quot;:return 96/25.4;case&quot;pt&quot;:return 96/72;case&quot;pc&quot;:return 16}return 1}},{&quot;parse-unit&quot;:506}],579:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).topojson=t.topojson||{})}(this,(function(t){&quot;use strict&quot;;function e(t){return t}function r(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c);for(u[0]=(r+=t[0])*i+o,u[1]=(n+=t[1])*a+s;l&lt;c;)u[l]=t[l],++l;return u}}function n(t){var e,n=r(t.transform),i=1/0,a=i,o=-i,s=-i;function l(t){(t=n(t))[0]&lt;i&amp;&amp;(i=t[0]),t[0]&gt;o&amp;&amp;(o=t[0]),t[1]&lt;a&amp;&amp;(a=t[1]),t[1]&gt;s&amp;&amp;(s=t[1])}function c(t){switch(t.type){case&quot;GeometryCollection&quot;:t.geometries.forEach(c);break;case&quot;Point&quot;:l(t.coordinates);break;case&quot;MultiPoint&quot;:t.coordinates.forEach(l)}}for(e in t.arcs.forEach((function(t){for(var e,r=-1,l=t.length;++r&lt;l;)(e=n(t[r],r))[0]&lt;i&amp;&amp;(i=e[0]),e[0]&gt;o&amp;&amp;(o=e[0]),e[1]&lt;a&amp;&amp;(a=e[1]),e[1]&gt;s&amp;&amp;(s=e[1])})),t.objects)c(t.objects[e]);return[i,a,o,s]}function i(t,e){var r=e.id,n=e.bbox,i=null==e.properties?{}:e.properties,o=a(t,e);return null==r&amp;&amp;null==n?{type:&quot;Feature&quot;,properties:i,geometry:o}:null==n?{type:&quot;Feature&quot;,id:r,properties:i,geometry:o}:{type:&quot;Feature&quot;,id:r,bbox:n,properties:i,geometry:o}}function a(t,e){var n=r(t.transform),i=t.arcs;function a(t,e){e.length&amp;&amp;e.pop();for(var r=i[t&lt;0?~t:t],a=0,o=r.length;a&lt;o;++a)e.push(n(r[a],a));t&lt;0&amp;&amp;function(t,e){for(var r,n=t.length,i=n-e;i&lt;--n;)r=t[i],t[i++]=t[n],t[n]=r}(e,o)}function o(t){return n(t)}function s(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)a(t[r],e);return e.length&lt;2&amp;&amp;e.push(e[0]),e}function l(t){for(var e=s(t);e.length&lt;4;)e.push(e[0]);return e}function c(t){return t.map(l)}return function t(e){var r,n=e.type;switch(n){case&quot;GeometryCollection&quot;:return{type:n,geometries:e.geometries.map(t)};case&quot;Point&quot;:r=o(e.coordinates);break;case&quot;MultiPoint&quot;:r=e.coordinates.map(o);break;case&quot;LineString&quot;:r=s(e.arcs);break;case&quot;MultiLineString&quot;:r=e.arcs.map(s);break;case&quot;Polygon&quot;:r=c(e.arcs);break;case&quot;MultiPolygon&quot;:r=e.arcs.map(c);break;default:return null}return{type:n,coordinates:r}}(e)}function o(t,e){var r={},n={},i={},a=[],o=-1;function s(t,e){for(var n in t){var i=t[n];delete e[i.start],delete i.start,delete i.end,i.forEach((function(t){r[t&lt;0?~t:t]=1})),a.push(i)}}return e.forEach((function(r,n){var i,a=t.arcs[r&lt;0?~r:r];a.length&lt;3&amp;&amp;!a[1][0]&amp;&amp;!a[1][1]&amp;&amp;(i=e[++o],e[o]=r,e[n]=i)})),e.forEach((function(e){var r,a,o=function(e){var r,n=t.arcs[e&lt;0?~e:e],i=n[0];t.transform?(r=[0,0],n.forEach((function(t){r[0]+=t[0],r[1]+=t[1]}))):r=n[n.length-1];return e&lt;0?[r,i]:[i,r]}(e),s=o[0],l=o[1];if(r=i[s])if(delete i[r.end],r.push(e),r.end=l,a=n[l]){delete n[a.start];var c=a===r?r:r.concat(a);n[c.start=r.start]=i[c.end=a.end]=c}else n[r.start]=i[r.end]=r;else if(r=n[l])if(delete n[r.start],r.unshift(e),r.start=s,a=i[s]){delete i[a.end];var u=a===r?r:a.concat(r);n[u.start=a.start]=i[u.end=r.end]=u}else n[r.start]=i[r.end]=r;else n[(r=[e]).start=s]=i[r.end=l]=r})),s(i,n),s(n,i),e.forEach((function(t){r[t&lt;0?~t:t]||a.push([t])})),a}function s(t,e,r){var n,i,a;if(arguments.length&gt;1)n=l(t,e,r);else for(i=0,n=new Array(a=t.arcs.length);i&lt;a;++i)n[i]=i;return{type:&quot;MultiLineString&quot;,arcs:o(t,n)}}function l(t,e,r){var n,i=[],a=[];function o(t){var e=t&lt;0?~t:t;(a[e]||(a[e]=[])).push({i:t,g:n})}function s(t){t.forEach(o)}function l(t){t.forEach(s)}return function t(e){switch(n=e,e.type){case&quot;GeometryCollection&quot;:e.geometries.forEach(t);break;case&quot;LineString&quot;:s(e.arcs);break;case&quot;MultiLineString&quot;:case&quot;Polygon&quot;:l(e.arcs);break;case&quot;MultiPolygon&quot;:!function(t){t.forEach(l)}(e.arcs)}}(e),a.forEach(null==r?function(t){i.push(t[0].i)}:function(t){r(t[0].g,t[t.length-1].g)&amp;&amp;i.push(t[0].i)}),i}function c(t,e){var r={},n=[],i=[];function s(t){t.forEach((function(e){e.forEach((function(e){(r[e=e&lt;0?~e:e]||(r[e]=[])).push(t)}))})),n.push(t)}function l(e){return function(t){for(var e,r=-1,n=t.length,i=t[n-1],a=0;++r&lt;n;)e=i,i=t[r],a+=e[0]*i[1]-e[1]*i[0];return Math.abs(a)}(a(t,{type:&quot;Polygon&quot;,arcs:[e]}).coordinates[0])}return e.forEach((function t(e){switch(e.type){case&quot;GeometryCollection&quot;:e.geometries.forEach(t);break;case&quot;Polygon&quot;:s(e.arcs);break;case&quot;MultiPolygon&quot;:e.arcs.forEach(s)}})),n.forEach((function(t){if(!t._){var e=[],n=[t];for(t._=1,i.push(e);t=n.pop();)e.push(t),t.forEach((function(t){t.forEach((function(t){r[t&lt;0?~t:t].forEach((function(t){t._||(t._=1,n.push(t))}))}))}))}})),n.forEach((function(t){delete t._})),{type:&quot;MultiPolygon&quot;,arcs:i.map((function(e){var n,i=[];if(e.forEach((function(t){t.forEach((function(t){t.forEach((function(t){r[t&lt;0?~t:t].length&lt;2&amp;&amp;i.push(t)}))}))})),(n=(i=o(t,i)).length)&gt;1)for(var a,s,c=1,u=l(i[0]);c&lt;n;++c)(a=l(i[c]))&gt;u&amp;&amp;(s=i[0],i[0]=i[c],i[c]=s,u=a);return i})).filter((function(t){return t.length&gt;0}))}}function u(t,e){for(var r=0,n=t.length;r&lt;n;){var i=r+n&gt;&gt;&gt;1;t[i]&lt;e?r=i+1:n=i}return r}function f(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c),f=Math.round((t[0]-o)/i),h=Math.round((t[1]-s)/a);for(u[0]=f-r,r=f,u[1]=h-n,n=h;l&lt;c;)u[l]=t[l],++l;return u}}t.bbox=n,t.feature=function(t,e){return&quot;string&quot;==typeof e&amp;&amp;(e=t.objects[e]),&quot;GeometryCollection&quot;===e.type?{type:&quot;FeatureCollection&quot;,features:e.geometries.map((function(e){return i(t,e)}))}:i(t,e)},t.merge=function(t){return a(t,c.apply(this,arguments))},t.mergeArcs=c,t.mesh=function(t){return a(t,s.apply(this,arguments))},t.meshArcs=s,t.neighbors=function(t){var e={},r=t.map((function(){return[]}));function n(t,r){t.forEach((function(t){t&lt;0&amp;&amp;(t=~t);var n=e[t];n?n.push(r):e[t]=[r]}))}function i(t,e){t.forEach((function(t){n(t,e)}))}var a={LineString:n,MultiLineString:i,Polygon:i,MultiPolygon:function(t,e){t.forEach((function(t){i(t,e)}))}};for(var o in t.forEach((function t(e,r){&quot;GeometryCollection&quot;===e.type?e.geometries.forEach((function(e){t(e,r)})):e.type in a&amp;&amp;a[e.type](e.arcs,r)})),e)for(var s=e[o],l=s.length,c=0;c&lt;l;++c)for(var f=c+1;f&lt;l;++f){var h,p=s[c],d=s[f];(h=r[p])[o=u(h,d)]!==d&amp;&amp;h.splice(o,0,d),(h=r[d])[o=u(h,p)]!==p&amp;&amp;h.splice(o,0,p)}return r},t.quantize=function(t,e){if(t.transform)throw new Error(&quot;already quantized&quot;);if(e&amp;&amp;e.scale)l=t.bbox;else{if(!((r=Math.floor(e))&gt;=2))throw new Error(&quot;n must be \u22652&quot;);var r,i=(l=t.bbox||n(t))[0],a=l[1],o=l[2],s=l[3];e={scale:[o-i?(o-i)/(r-1):1,s-a?(s-a)/(r-1):1],translate:[i,a]}}var l,c,u=f(e),h=t.objects,p={};function d(t){return u(t)}function g(t){var e;switch(t.type){case&quot;GeometryCollection&quot;:e={type:&quot;GeometryCollection&quot;,geometries:t.geometries.map(g)};break;case&quot;Point&quot;:e={type:&quot;Point&quot;,coordinates:d(t.coordinates)};break;case&quot;MultiPoint&quot;:e={type:&quot;MultiPoint&quot;,coordinates:t.coordinates.map(d)};break;default:return t}return null!=t.id&amp;&amp;(e.id=t.id),null!=t.bbox&amp;&amp;(e.bbox=t.bbox),null!=t.properties&amp;&amp;(e.properties=t.properties),e}for(c in h)p[c]=g(h[c]);return{type:&quot;Topology&quot;,bbox:l,transform:e,objects:p,arcs:t.arcs.map((function(t){var e,r=0,n=1,i=t.length,a=new Array(i);for(a[0]=u(t[0],0);++r&lt;i;)((e=u(t[r],r))[0]||e[1])&amp;&amp;(a[n++]=e);return 1===n&amp;&amp;(a[n++]=[0,0]),a.length=n,a}))}},t.transform=r,t.untransform=f,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],580:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){if(t&lt;0)return[];if(0===t)return[[0]];for(var e=0|Math.round(a(t+1)),r=[],o=0;o&lt;e;++o){for(var s=n.unrank(t,o),l=[0],c=0,u=0;u&lt;s.length;++u)c+=1&lt;&lt;s[u],l.push(c);i(s)&lt;1&amp;&amp;(l[0]=c,l[t]=0),r.push(l)}return r};var n=t(&quot;permutation-rank&quot;),i=t(&quot;permutation-parity&quot;),a=t(&quot;gamma&quot;)},{gamma:248,&quot;permutation-parity&quot;:509,&quot;permutation-rank&quot;:510}],581:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.up||[0,1,0],n=t.right||f(r),i=t.radius||1,a=t.theta||0,u=t.phi||0;if(e=[].slice.call(e,0,3),r=[].slice.call(r,0,3),s(r,r),n=[].slice.call(n,0,3),s(n,n),&quot;eye&quot;in t){var p=t.eye,d=[p[0]-e[0],p[1]-e[1],p[2]-e[2]];o(n,d,r),c(n[0],n[1],n[2])&lt;1e-6?n=f(r):s(n,n),i=c(d[0],d[1],d[2]);var g=l(r,d)/i,m=l(n,d)/i;u=Math.acos(g),a=Math.acos(m)}return i=Math.log(i),new h(t.zoomMin,t.zoomMax,e,r,n,i,a,u)};var n=t(&quot;filtered-vector&quot;),i=t(&quot;gl-mat4/invert&quot;),a=t(&quot;gl-mat4/rotate&quot;),o=t(&quot;gl-vec3/cross&quot;),s=t(&quot;gl-vec3/normalize&quot;),l=t(&quot;gl-vec3/dot&quot;);function c(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function u(t){return Math.min(1,Math.max(-1,t))}function f(t){var e=Math.abs(t[0]),r=Math.abs(t[1]),n=Math.abs(t[2]),i=[0,0,0];e&gt;Math.max(r,n)?i[2]=1:r&gt;Math.max(e,n)?i[0]=1:i[1]=1;for(var a=0,o=0,l=0;l&lt;3;++l)a+=t[l]*t[l],o+=i[l]*t[l];for(l=0;l&lt;3;++l)i[l]-=o/a*t[l];return s(i,i),i}function h(t,e,r,i,a,o,s,l){this.center=n(r),this.up=n(i),this.right=n(a),this.radius=n([o]),this.angle=n([s,l]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(t,e),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var c=0;c&lt;16;++c)this.computedMatrix[c]=.5;this.recalcMatrix(0)}var p=h.prototype;p.setDistanceLimits=function(t,e){t=t&gt;0?Math.log(t):-1/0,e=e&gt;0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},p.getDistanceLimits=function(t){var e=this.radius.bounds[0];return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},p.recalcMatrix=function(t){this.center.curve(t),this.up.curve(t),this.right.curve(t),this.radius.curve(t),this.angle.curve(t);for(var e=this.computedUp,r=this.computedRight,n=0,i=0,a=0;a&lt;3;++a)i+=e[a]*r[a],n+=e[a]*e[a];var l=Math.sqrt(n),u=0;for(a=0;a&lt;3;++a)r[a]-=e[a]*i/n,u+=r[a]*r[a],e[a]/=l;var f=Math.sqrt(u);for(a=0;a&lt;3;++a)r[a]/=f;var h=this.computedToward;o(h,e,r),s(h,h);var p=Math.exp(this.computedRadius[0]),d=this.computedAngle[0],g=this.computedAngle[1],m=Math.cos(d),v=Math.sin(d),y=Math.cos(g),x=Math.sin(g),b=this.computedCenter,_=m*y,w=v*y,T=x,k=-m*x,M=-v*x,A=y,S=this.computedEye,E=this.computedMatrix;for(a=0;a&lt;3;++a){var C=_*r[a]+w*h[a]+T*e[a];E[4*a+1]=k*r[a]+M*h[a]+A*e[a],E[4*a+2]=C,E[4*a+3]=0}var L=E[1],I=E[5],P=E[9],z=E[2],O=E[6],D=E[10],R=I*D-P*O,F=P*z-L*D,B=L*O-I*z,N=c(R,F,B);R/=N,F/=N,B/=N,E[0]=R,E[4]=F,E[8]=B;for(a=0;a&lt;3;++a)S[a]=b[a]+E[2+4*a]*p;for(a=0;a&lt;3;++a){u=0;for(var j=0;j&lt;3;++j)u+=E[a+4*j]*S[j];E[12+a]=-u}E[15]=1},p.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n&lt;16;++n)e[n]=r[n];return e}return r};var d=[0,0,0];p.rotate=function(t,e,r,n){if(this.angle.move(t,e,r),n){this.recalcMatrix(t);var i=this.computedMatrix;d[0]=i[2],d[1]=i[6],d[2]=i[10];for(var o=this.computedUp,s=this.computedRight,l=this.computedToward,c=0;c&lt;3;++c)i[4*c]=o[c],i[4*c+1]=s[c],i[4*c+2]=l[c];a(i,i,n,d);for(c=0;c&lt;3;++c)o[c]=i[4*c],s[c]=i[4*c+1];this.up.set(t,o[0],o[1],o[2]),this.right.set(t,s[0],s[1],s[2])}},p.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=(Math.exp(this.computedRadius[0]),i[1]),o=i[5],s=i[9],l=c(a,o,s);a/=l,o/=l,s/=l;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=c(u-=a*p,f-=o*p,h-=s*p),g=(u/=d)*e+a*r,m=(f/=d)*e+o*r,v=(h/=d)*e+s*r;this.center.move(t,g,m,v);var y=Math.exp(this.computedRadius[0]);y=Math.max(1e-4,y+n),this.radius.set(t,Math.log(y))},p.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},p.setMatrix=function(t,e,r,n){var a=1;&quot;number&quot;==typeof r&amp;&amp;(a=0|r),(a&lt;0||a&gt;3)&amp;&amp;(a=1);var o=(a+2)%3;e||(this.recalcMatrix(t),e=this.computedMatrix);var s=e[a],l=e[a+4],f=e[a+8];if(n){var h=Math.abs(s),p=Math.abs(l),d=Math.abs(f),g=Math.max(h,p,d);h===g?(s=s&lt;0?-1:1,l=f=0):d===g?(f=f&lt;0?-1:1,s=l=0):(l=l&lt;0?-1:1,s=f=0)}else{var m=c(s,l,f);s/=m,l/=m,f/=m}var v,y,x=e[o],b=e[o+4],_=e[o+8],w=x*s+b*l+_*f,T=c(x-=s*w,b-=l*w,_-=f*w),k=l*(_/=T)-f*(b/=T),M=f*(x/=T)-s*_,A=s*b-l*x,S=c(k,M,A);if(k/=S,M/=S,A/=S,this.center.jump(t,H,G,Y),this.radius.idle(t),this.up.jump(t,s,l,f),this.right.jump(t,x,b,_),2===a){var E=e[1],C=e[5],L=e[9],I=E*x+C*b+L*_,P=E*k+C*M+L*A;v=R&lt;0?-Math.PI/2:Math.PI/2,y=Math.atan2(P,I)}else{var z=e[2],O=e[6],D=e[10],R=z*s+O*l+D*f,F=z*x+O*b+D*_,B=z*k+O*M+D*A;v=Math.asin(u(R)),y=Math.atan2(B,F)}this.angle.jump(t,y,v),this.recalcMatrix(t);var N=e[2],j=e[6],U=e[10],V=this.computedMatrix;i(V,e);var q=V[15],H=V[12]/q,G=V[13]/q,Y=V[14]/q,W=Math.exp(this.computedRadius[0]);this.center.jump(t,H-N*W,G-j*W,Y-U*W)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(t){this.center.idle(t),this.up.idle(t),this.right.idle(t),this.radius.idle(t),this.angle.idle(t)},p.flush=function(t){this.center.flush(t),this.up.flush(t),this.right.flush(t),this.radius.flush(t),this.angle.flush(t)},p.setDistance=function(t,e){e&gt;0&amp;&amp;this.radius.set(t,Math.log(e))},p.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||this.computedCenter;var i=(n=n||this.computedUp)[0],a=n[1],o=n[2],s=c(i,a,o);if(!(s&lt;1e-6)){i/=s,a/=s,o/=s;var l=e[0]-r[0],f=e[1]-r[1],h=e[2]-r[2],p=c(l,f,h);if(!(p&lt;1e-6)){l/=p,f/=p,h/=p;var d=this.computedRight,g=d[0],m=d[1],v=d[2],y=i*g+a*m+o*v,x=c(g-=y*i,m-=y*a,v-=y*o);if(!(x&lt;.01&amp;&amp;(x=c(g=a*h-o*f,m=o*l-i*h,v=i*f-a*l))&lt;1e-6)){g/=x,m/=x,v/=x,this.up.set(t,i,a,o),this.right.set(t,g,m,v),this.center.set(t,r[0],r[1],r[2]),this.radius.set(t,Math.log(p));var b=a*v-o*m,_=o*g-i*v,w=i*m-a*g,T=c(b,_,w),k=i*l+a*f+o*h,M=g*l+m*f+v*h,A=(b/=T)*l+(_/=T)*f+(w/=T)*h,S=Math.asin(u(k)),E=Math.atan2(A,M),C=this.angle._state,L=C[C.length-1],I=C[C.length-2];L%=2*Math.PI;var P=Math.abs(L+2*Math.PI-E),z=Math.abs(L-E),O=Math.abs(L-2*Math.PI-E);P&lt;z&amp;&amp;(L+=2*Math.PI),O&lt;z&amp;&amp;(L-=2*Math.PI),this.angle.jump(this.angle.lastT(),L,I),this.angle.set(t,E,S)}}}}},{&quot;filtered-vector&quot;:242,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/rotate&quot;:299,&quot;gl-vec3/cross&quot;:365,&quot;gl-vec3/dot&quot;:370,&quot;gl-vec3/normalize&quot;:387}],582:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var i=t*e,a=n*t,o=a-(a-t),s=t-o,l=n*e,c=l-(l-e),u=e-c,f=s*u-(i-o*c-s*c-o*u);if(r)return r[0]=f,r[1]=i,r;return[f,i]};var n=+(Math.pow(2,27)+1)},{}],583:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n=t+e,i=n-t,a=e-i,o=t-(n-i);if(r)return r[0]=o+a,r[1]=n,r;return[o+a,n]}},{}],584:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../prototype/is&quot;);e.exports=function(t){if(&quot;function&quot;!=typeof t)return!1;if(!hasOwnProperty.call(t,&quot;length&quot;))return!1;try{if(&quot;number&quot;!=typeof t.length)return!1;if(&quot;function&quot;!=typeof t.call)return!1;if(&quot;function&quot;!=typeof t.apply)return!1}catch(t){return!1}return!n(t)}},{&quot;../prototype/is&quot;:591}],585:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i=t(&quot;../object/is&quot;),a=t(&quot;../string/coerce&quot;),o=t(&quot;./to-short-string&quot;),s=function(t,e){return t.replace(&quot;%v&quot;,o(e))};e.exports=function(t,e,r){if(!i(r))throw new TypeError(s(e,t));if(!n(t)){if(&quot;default&quot;in r)return r.default;if(r.isOptional)return null}var o=a(r.errorMessage);throw n(o)||(o=e),new TypeError(s(o,t))}},{&quot;../object/is&quot;:588,&quot;../string/coerce&quot;:592,&quot;../value/is&quot;:594,&quot;./to-short-string&quot;:587}],586:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){try{return t.toString()}catch(e){try{return String(t)}catch(t){return null}}}},{}],587:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./safe-to-string&quot;),i=/[\n\r\u2028\u2029]/g;e.exports=function(t){var e=n(t);return null===e?&quot;&lt;Non-coercible to string value&gt;&quot;:(e.length&gt;100&amp;&amp;(e=e.slice(0,99)+&quot;\u2026&quot;),e=e.replace(i,(function(t){switch(t){case&quot;\n&quot;:return&quot;\\n&quot;;case&quot;\r&quot;:return&quot;\\r&quot;;case&quot;\u2028&quot;:return&quot;\\u2028&quot;;case&quot;\u2029&quot;:return&quot;\\u2029&quot;;default:throw new Error(&quot;Unexpected character&quot;)}})))}},{&quot;./safe-to-string&quot;:586}],588:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i={object:!0,function:!0,undefined:!0};e.exports=function(t){return!!n(t)&amp;&amp;hasOwnProperty.call(i,typeof t)}},{&quot;../value/is&quot;:594}],589:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/resolve-exception&quot;),i=t(&quot;./is&quot;);e.exports=function(t){return i(t)?t:n(t,&quot;%v is not a plain function&quot;,arguments[1])}},{&quot;../lib/resolve-exception&quot;:585,&quot;./is&quot;:590}],590:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../function/is&quot;),i=/^\s*class[\s{/}]/,a=Function.prototype.toString;e.exports=function(t){return!!n(t)&amp;&amp;!i.test(a.call(t))}},{&quot;../function/is&quot;:584}],591:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../object/is&quot;);e.exports=function(t){if(!n(t))return!1;try{return!!t.constructor&amp;&amp;t.constructor.prototype===t}catch(t){return!1}}},{&quot;../object/is&quot;:588}],592:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i=t(&quot;../object/is&quot;),a=Object.prototype.toString;e.exports=function(t){if(!n(t))return null;if(i(t)){var e=t.toString;if(&quot;function&quot;!=typeof e)return null;if(e===a)return null}try{return&quot;&quot;+t}catch(t){return null}}},{&quot;../object/is&quot;:588,&quot;../value/is&quot;:594}],593:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/resolve-exception&quot;),i=t(&quot;./is&quot;);e.exports=function(t){return i(t)?t:n(t,&quot;Cannot use %v&quot;,arguments[1])}},{&quot;../lib/resolve-exception&quot;:585,&quot;./is&quot;:594}],594:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return null!=t}},{}],595:[function(t,e,r){(function(e){(function(){&quot;use strict&quot;;var n=t(&quot;bit-twiddle&quot;),i=t(&quot;dup&quot;),a=t(&quot;buffer&quot;).Buffer;e.__TYPEDARRAY_POOL||(e.__TYPEDARRAY_POOL={UINT8:i([32,0]),UINT16:i([32,0]),UINT32:i([32,0]),BIGUINT64:i([32,0]),INT8:i([32,0]),INT16:i([32,0]),INT32:i([32,0]),BIGINT64:i([32,0]),FLOAT:i([32,0]),DOUBLE:i([32,0]),DATA:i([32,0]),UINT8C:i([32,0]),BUFFER:i([32,0])});var o=&quot;undefined&quot;!=typeof Uint8ClampedArray,s=&quot;undefined&quot;!=typeof BigUint64Array,l=&quot;undefined&quot;!=typeof BigInt64Array,c=e.__TYPEDARRAY_POOL;c.UINT8C||(c.UINT8C=i([32,0])),c.BIGUINT64||(c.BIGUINT64=i([32,0])),c.BIGINT64||(c.BIGINT64=i([32,0])),c.BUFFER||(c.BUFFER=i([32,0]));var u=c.DATA,f=c.BUFFER;function h(t){if(t){var e=t.length||t.byteLength,r=n.log2(e);u[r].push(t)}}function p(t){t=n.nextPow2(t);var e=n.log2(t),r=u[e];return r.length&gt;0?r.pop():new ArrayBuffer(t)}function d(t){return new Uint8Array(p(t),0,t)}function g(t){return new Uint16Array(p(2*t),0,t)}function m(t){return new Uint32Array(p(4*t),0,t)}function v(t){return new Int8Array(p(t),0,t)}function y(t){return new Int16Array(p(2*t),0,t)}function x(t){return new Int32Array(p(4*t),0,t)}function b(t){return new Float32Array(p(4*t),0,t)}function _(t){return new Float64Array(p(8*t),0,t)}function w(t){return o?new Uint8ClampedArray(p(t),0,t):d(t)}function T(t){return s?new BigUint64Array(p(8*t),0,t):null}function k(t){return l?new BigInt64Array(p(8*t),0,t):null}function M(t){return new DataView(p(t),0,t)}function A(t){t=n.nextPow2(t);var e=n.log2(t),r=f[e];return r.length&gt;0?r.pop():new a(t)}r.free=function(t){if(a.isBuffer(t))f[n.log2(t.length)].push(t);else{if(&quot;[object ArrayBuffer]&quot;!==Object.prototype.toString.call(t)&amp;&amp;(t=t.buffer),!t)return;var e=t.length||t.byteLength,r=0|n.log2(e);u[r].push(t)}},r.freeUint8=r.freeUint16=r.freeUint32=r.freeBigUint64=r.freeInt8=r.freeInt16=r.freeInt32=r.freeBigInt64=r.freeFloat32=r.freeFloat=r.freeFloat64=r.freeDouble=r.freeUint8Clamped=r.freeDataView=function(t){h(t.buffer)},r.freeArrayBuffer=h,r.freeBuffer=function(t){f[n.log2(t.length)].push(t)},r.malloc=function(t,e){if(void 0===e||&quot;arraybuffer&quot;===e)return p(t);switch(e){case&quot;uint8&quot;:return d(t);case&quot;uint16&quot;:return g(t);case&quot;uint32&quot;:return m(t);case&quot;int8&quot;:return v(t);case&quot;int16&quot;:return y(t);case&quot;int32&quot;:return x(t);case&quot;float&quot;:case&quot;float32&quot;:return b(t);case&quot;double&quot;:case&quot;float64&quot;:return _(t);case&quot;uint8_clamped&quot;:return w(t);case&quot;bigint64&quot;:return k(t);case&quot;biguint64&quot;:return T(t);case&quot;buffer&quot;:return A(t);case&quot;data&quot;:case&quot;dataview&quot;:return M(t);default:return null}return null},r.mallocArrayBuffer=p,r.mallocUint8=d,r.mallocUint16=g,r.mallocUint32=m,r.mallocInt8=v,r.mallocInt16=y,r.mallocInt32=x,r.mallocFloat32=r.mallocFloat=b,r.mallocFloat64=r.mallocDouble=_,r.mallocUint8Clamped=w,r.mallocBigUint64=T,r.mallocBigInt64=k,r.mallocDataView=M,r.mallocBuffer=A,r.clearCache=function(){for(var t=0;t&lt;32;++t)c.UINT8[t].length=0,c.UINT16[t].length=0,c.UINT32[t].length=0,c.INT8[t].length=0,c.INT16[t].length=0,c.INT32[t].length=0,c.FLOAT[t].length=0,c.DOUBLE[t].length=0,c.BIGUINT64[t].length=0,c.BIGINT64[t].length=0,c.UINT8C[t].length=0,u[t].length=0,f[t].length=0}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;bit-twiddle&quot;:97,buffer:111,dup:176}],596:[function(t,e,r){&quot;use strict&quot;;function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e&lt;t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n;var i=n.prototype;Object.defineProperty(i,&quot;length&quot;,{get:function(){return this.roots.length}}),i.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},i.find=function(t){for(var e=t,r=this.roots;r[t]!==t;)t=r[t];for(;r[e]!==t;){var n=r[e];r[e]=t,e=n}return t},i.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o&lt;s?a[r]=n:s&lt;o?a[n]=r:(a[n]=r,++i[r])}}},{}],597:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return 0===t.length?t:e?(r||t.sort(e),function(t,e){for(var r=1,n=t.length,i=t[0],a=t[0],o=1;o&lt;n;++o)if(a=i,e(i=t[o],a)){if(o===r){r++;continue}t[r++]=i}return t.length=r,t}(t,e)):(r||t.sort(),function(t){for(var e=1,r=t.length,n=t[0],i=t[0],a=1;a&lt;r;++a,i=n)if(i=n,(n=t[a])!==i){if(a===e){e++;continue}t[e++]=n}return t.length=e,t}(t))}},{}],598:[function(t,e,r){var n=/[\'\&quot;]/;e.exports=function(t){return t?(n.test(t.charAt(0))&amp;&amp;(t=t.substr(1)),n.test(t.charAt(t.length-1))&amp;&amp;(t=t.substr(0,t.length-1)),t):&quot;&quot;}},{}],599:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){Array.isArray(r)||(r=[].slice.call(arguments,2));for(var n=0,i=r.length;n&lt;i;n++){var a=r[n];for(var o in a)if((void 0===e[o]||Array.isArray(e[o])||t[o]!==e[o])&amp;&amp;o in e){var s;if(!0===a[o])s=e[o];else{if(!1===a[o])continue;if(&quot;function&quot;==typeof a[o]&amp;&amp;void 0===(s=a[o](e[o],t,e)))continue}t[o]=s}}return t}},{}],600:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){&quot;object&quot;==typeof e&amp;&amp;null!==e||(e={});return n(t,e.canvas||i,e.context||a,e)};var n=t(&quot;./lib/vtext&quot;),i=null,a=null;&quot;undefined&quot;!=typeof document&amp;&amp;((i=document.createElement(&quot;canvas&quot;)).width=8192,i.height=1024,a=i.getContext(&quot;2d&quot;))},{&quot;./lib/vtext&quot;:601}],601:[function(t,e,r){e.exports=function(t,e,r,n){var a=64,o=1.25,s={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};n&amp;&amp;(n.size&amp;&amp;n.size&gt;0&amp;&amp;(a=n.size),n.lineSpacing&amp;&amp;n.lineSpacing&gt;0&amp;&amp;(o=n.lineSpacing),n.styletags&amp;&amp;n.styletags.breaklines&amp;&amp;(s.breaklines=!!n.styletags.breaklines),n.styletags&amp;&amp;n.styletags.bolds&amp;&amp;(s.bolds=!!n.styletags.bolds),n.styletags&amp;&amp;n.styletags.italics&amp;&amp;(s.italics=!!n.styletags.italics),n.styletags&amp;&amp;n.styletags.subscripts&amp;&amp;(s.subscripts=!!n.styletags.subscripts),n.styletags&amp;&amp;n.styletags.superscripts&amp;&amp;(s.superscripts=!!n.styletags.superscripts));return r.font=[n.fontStyle,n.fontVariant,n.fontWeight,a+&quot;px&quot;,n.font].filter((function(t){return t})).join(&quot; &quot;),r.textAlign=&quot;start&quot;,r.textBaseline=&quot;alphabetic&quot;,r.direction=&quot;ltr&quot;,h(function(t,e,r,n,a,o){r=r.replace(/\n/g,&quot;&quot;),r=!0===o.breaklines?r.replace(/\&lt;br\&gt;/g,&quot;\n&quot;):r.replace(/\&lt;br\&gt;/g,&quot; &quot;);var s=&quot;&quot;,l=[];for(p=0;p&lt;r.length;++p)l[p]=s;!0===o.bolds&amp;&amp;(l=c(&quot;b&quot;,&quot;b|&quot;,r,l));!0===o.italics&amp;&amp;(l=c(&quot;i&quot;,&quot;i|&quot;,r,l));!0===o.superscripts&amp;&amp;(l=c(&quot;sup&quot;,&quot;+1&quot;,r,l));!0===o.subscripts&amp;&amp;(l=c(&quot;sub&quot;,&quot;-1&quot;,r,l));var u=[],f=&quot;&quot;;for(p=0;p&lt;r.length;++p)null!==l[p]&amp;&amp;(f+=r[p],u.push(l[p]));var h,p,d,g,m,v=f.split(&quot;\n&quot;),y=v.length,x=Math.round(a*n),b=n,_=2*n,w=0,T=y*x+_;t.height&lt;T&amp;&amp;(t.height=T);e.fillStyle=&quot;#000&quot;,e.fillRect(0,0,t.width,t.height),e.fillStyle=&quot;#fff&quot;;var k=0,M=&quot;&quot;;function A(){if(&quot;&quot;!==M){var t=e.measureText(M).width;e.fillText(M,b+d,_+g),d+=t}}function S(){return Math.round(m)+&quot;px &quot;}function E(t,r){var n=&quot;&quot;+e.font;if(!0===o.subscripts){var i=t.indexOf(&quot;-&quot;),a=r.indexOf(&quot;-&quot;),s=i&gt;-1?parseInt(t[1+i]):0,l=a&gt;-1?parseInt(r[1+a]):0;s!==l&amp;&amp;(n=n.replace(S(),&quot;?px &quot;),m*=Math.pow(.75,l-s),n=n.replace(&quot;?px &quot;,S())),g+=.25*x*(l-s)}if(!0===o.superscripts){var c=t.indexOf(&quot;+&quot;),u=r.indexOf(&quot;+&quot;),f=c&gt;-1?parseInt(t[1+c]):0,h=u&gt;-1?parseInt(r[1+u]):0;f!==h&amp;&amp;(n=n.replace(S(),&quot;?px &quot;),m*=Math.pow(.75,h-f),n=n.replace(&quot;?px &quot;,S())),g-=.25*x*(h-f)}if(!0===o.bolds){var p=t.indexOf(&quot;b|&quot;)&gt;-1,d=r.indexOf(&quot;b|&quot;)&gt;-1;!p&amp;&amp;d&amp;&amp;(n=v?n.replace(&quot;italic &quot;,&quot;italic bold &quot;):&quot;bold &quot;+n),p&amp;&amp;!d&amp;&amp;(n=n.replace(&quot;bold &quot;,&quot;&quot;))}if(!0===o.italics){var v=t.indexOf(&quot;i|&quot;)&gt;-1,y=r.indexOf(&quot;i|&quot;)&gt;-1;!v&amp;&amp;y&amp;&amp;(n=&quot;italic &quot;+n),v&amp;&amp;!y&amp;&amp;(n=n.replace(&quot;italic &quot;,&quot;&quot;))}e.font=n}for(h=0;h&lt;y;++h){var C=v[h]+&quot;\n&quot;;for(d=0,g=h*x,m=n,M=&quot;&quot;,p=0;p&lt;C.length;++p){var L=p+k&lt;u.length?u[p+k]:u[u.length-1];s===L?M+=C[p]:(A(),M=C[p],void 0!==L&amp;&amp;(E(s,L),s=L))}A(),k+=C.length;var I=0|Math.round(d+2*b);w&lt;I&amp;&amp;(w=I)}var P=w,z=_+x*y;return i(e.getImageData(0,0,P,z).data,[z,P,4]).pick(-1,-1,0).transpose(1,0)}(e,r,t,a,o,s),n,a)},e.exports.processPixels=h;var n=t(&quot;surface-nets&quot;),i=t(&quot;ndarray&quot;),a=t(&quot;simplify-planar-graph&quot;),o=t(&quot;clean-pslg&quot;),s=t(&quot;cdt2d&quot;),l=t(&quot;planar-graph-to-polyline&quot;);function c(t,e,r,n){for(var i=&quot;&lt;&quot;+t+&quot;&gt;&quot;,a=&quot;&lt;/&quot;+t+&quot;&gt;&quot;,o=i.length,s=a.length,l=&quot;+&quot;===e[0]||&quot;-&quot;===e[0],c=0,u=-s;c&gt;-1&amp;&amp;-1!==(c=r.indexOf(i,c))&amp;&amp;-1!==(u=r.indexOf(a,c+o))&amp;&amp;!(u&lt;=c);){for(var f=c;f&lt;u+s;++f)if(f&lt;c+o||f&gt;=u)n[f]=null,r=r.substr(0,f)+&quot; &quot;+r.substr(f+1);else if(null!==n[f]){var h=n[f].indexOf(e[0]);-1===h?n[f]+=e:l&amp;&amp;(n[f]=n[f].substr(0,h+1)+(1+parseInt(n[f][h+1]))+n[f].substr(h+2))}var p=c+o,d=r.substr(p,u-p).indexOf(i);c=-1!==d?d:u+s}return n}function u(t,e){var r=n(t,128);return e?a(r.cells,r.positions,.25):{edges:r.cells,positions:r.positions}}function f(t,e,r,n){var i=u(t,n),a=function(t,e,r){for(var n=e.textAlign||&quot;start&quot;,i=e.textBaseline||&quot;alphabetic&quot;,a=[1&lt;&lt;30,1&lt;&lt;30],o=[0,0],s=t.length,l=0;l&lt;s;++l)for(var c=t[l],u=0;u&lt;2;++u)a[u]=0|Math.min(a[u],c[u]),o[u]=0|Math.max(o[u],c[u]);var f=0;switch(n){case&quot;center&quot;:f=-.5*(a[0]+o[0]);break;case&quot;right&quot;:case&quot;end&quot;:f=-o[0];break;case&quot;left&quot;:case&quot;start&quot;:f=-a[0];break;default:throw new Error(&quot;vectorize-text: Unrecognized textAlign: '&quot;+n+&quot;'&quot;)}var h=0;switch(i){case&quot;hanging&quot;:case&quot;top&quot;:h=-a[1];break;case&quot;middle&quot;:h=-.5*(a[1]+o[1]);break;case&quot;alphabetic&quot;:case&quot;ideographic&quot;:h=-3*r;break;case&quot;bottom&quot;:h=-o[1];break;default:throw new Error(&quot;vectorize-text: Unrecoginized textBaseline: '&quot;+i+&quot;'&quot;)}var p=1/r;return&quot;lineHeight&quot;in e?p*=+e.lineHeight:&quot;width&quot;in e?p=e.width/(o[0]-a[0]):&quot;height&quot;in e&amp;&amp;(p=e.height/(o[1]-a[1])),t.map((function(t){return[p*(t[0]+f),p*(t[1]+h)]}))}(i.positions,e,r),c=i.edges,f=&quot;ccw&quot;===e.orientation;if(o(a,c),e.polygons||e.polygon||e.polyline){for(var h=l(c,a),p=new Array(h.length),d=0;d&lt;h.length;++d){for(var g=h[d],m=new Array(g.length),v=0;v&lt;g.length;++v){for(var y=g[v],x=new Array(y.length),b=0;b&lt;y.length;++b)x[b]=a[y[b]].slice();f&amp;&amp;x.reverse(),m[v]=x}p[d]=m}return p}return e.triangles||e.triangulate||e.triangle?{cells:s(a,c,{delaunay:!1,exterior:!1,interior:!0}),positions:a}:{edges:c,positions:a}}function h(t,e,r){try{return f(t,e,r,!0)}catch(t){}try{return f(t,e,r,!1)}catch(t){}return e.polygons||e.polyline||e.polygon?[]:e.triangles||e.triangulate||e.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}},{cdt2d:112,&quot;clean-pslg&quot;:121,ndarray:495,&quot;planar-graph-to-polyline&quot;:514,&quot;simplify-planar-graph&quot;:562,&quot;surface-nets&quot;:570}],602:[function(t,e,r){!function(){&quot;use strict&quot;;if(&quot;undefined&quot;==typeof ses||!ses.ok||ses.ok()){&quot;undefined&quot;!=typeof ses&amp;&amp;(ses.weakMapPermitHostObjects=g);var t=!1;if(&quot;function&quot;==typeof WeakMap){var r=WeakMap;if(&quot;undefined&quot;!=typeof navigator&amp;&amp;/Firefox/.test(navigator.userAgent));else{var n=new r,i=Object.freeze({});if(n.set(i,1),1===n.get(i))return void(e.exports=WeakMap);t=!0}}Object.prototype.hasOwnProperty;var a=Object.getOwnPropertyNames,o=Object.defineProperty,s=Object.isExtensible,l=&quot;weakmap:ident:&quot;+Math.random()+&quot;___&quot;;if(&quot;undefined&quot;!=typeof crypto&amp;&amp;&quot;function&quot;==typeof crypto.getRandomValues&amp;&amp;&quot;function&quot;==typeof ArrayBuffer&amp;&amp;&quot;function&quot;==typeof Uint8Array){var c=new ArrayBuffer(25),u=new Uint8Array(c);crypto.getRandomValues(u),l=&quot;weakmap:rand:&quot;+Array.prototype.map.call(u,(function(t){return(t%36).toString(36)})).join(&quot;&quot;)+&quot;___&quot;}if(o(Object,&quot;getOwnPropertyNames&quot;,{value:function(t){return a(t).filter(m)}}),&quot;getPropertyNames&quot;in Object){var f=Object.getPropertyNames;o(Object,&quot;getPropertyNames&quot;,{value:function(t){return f(t).filter(m)}})}!function(){var t=Object.freeze;o(Object,&quot;freeze&quot;,{value:function(e){return v(e),t(e)}});var e=Object.seal;o(Object,&quot;seal&quot;,{value:function(t){return v(t),e(t)}});var r=Object.preventExtensions;o(Object,&quot;preventExtensions&quot;,{value:function(t){return v(t),r(t)}})}();var h=!1,p=0,d=function(){this instanceof d||x();var t=[],e=[],r=p++;return Object.create(d.prototype,{get___:{value:y((function(n,i){var a,o=v(n);return o?r in o?o[r]:i:(a=t.indexOf(n))&gt;=0?e[a]:i}))},has___:{value:y((function(e){var n=v(e);return n?r in n:t.indexOf(e)&gt;=0}))},set___:{value:y((function(n,i){var a,o=v(n);return o?o[r]=i:(a=t.indexOf(n))&gt;=0?e[a]=i:(a=t.length,e[a]=i,t[a]=n),this}))},delete___:{value:y((function(n){var i,a,o=v(n);return o?r in o&amp;&amp;delete o[r]:!((i=t.indexOf(n))&lt;0)&amp;&amp;(a=t.length-1,t[i]=void 0,e[i]=e[a],t[i]=t[a],t.length=a,e.length=a,!0)}))}})};d.prototype=Object.create(Object.prototype,{get:{value:function(t,e){return this.get___(t,e)},writable:!0,configurable:!0},has:{value:function(t){return this.has___(t)},writable:!0,configurable:!0},set:{value:function(t,e){return this.set___(t,e)},writable:!0,configurable:!0},delete:{value:function(t){return this.delete___(t)},writable:!0,configurable:!0}}),&quot;function&quot;==typeof r?function(){function n(){this instanceof d||x();var e,n=new r,i=void 0,a=!1;return e=t?function(t,e){return n.set(t,e),n.has(t)||(i||(i=new d),i.set(t,e)),this}:function(t,e){if(a)try{n.set(t,e)}catch(r){i||(i=new d),i.set___(t,e)}else n.set(t,e);return this},Object.create(d.prototype,{get___:{value:y((function(t,e){return i?n.has(t)?n.get(t):i.get___(t,e):n.get(t,e)}))},has___:{value:y((function(t){return n.has(t)||!!i&amp;&amp;i.has___(t)}))},set___:{value:y(e)},delete___:{value:y((function(t){var e=!!n.delete(t);return i&amp;&amp;i.delete___(t)||e}))},permitHostObjects___:{value:y((function(t){if(t!==g)throw new Error(&quot;bogus call to permitHostObjects___&quot;);a=!0}))}})}t&amp;&amp;&quot;undefined&quot;!=typeof Proxy&amp;&amp;(Proxy=void 0),n.prototype=d.prototype,e.exports=n,Object.defineProperty(WeakMap.prototype,&quot;constructor&quot;,{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(&quot;undefined&quot;!=typeof Proxy&amp;&amp;(Proxy=void 0),e.exports=d)}function g(t){t.permitHostObjects___&amp;&amp;t.permitHostObjects___(g)}function m(t){return!(&quot;weakmap:&quot;==t.substr(0,&quot;weakmap:&quot;.length)&amp;&amp;&quot;___&quot;===t.substr(t.length-3))}function v(t){if(t!==Object(t))throw new TypeError(&quot;Not an object: &quot;+t);var e=t[l];if(e&amp;&amp;e.key===t)return e;if(s(t)){e={key:t};try{return o(t,l,{value:e,writable:!1,enumerable:!1,configurable:!1}),e}catch(t){return}}}function y(t){return t.prototype=null,Object.freeze(t)}function x(){h||&quot;undefined&quot;==typeof console||(h=!0,console.warn(&quot;WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future.&quot;))}}()},{}],603:[function(t,e,r){var n=t(&quot;./hidden-store.js&quot;);e.exports=function(){var t={};return function(e){if((&quot;object&quot;!=typeof e||null===e)&amp;&amp;&quot;function&quot;!=typeof e)throw new Error(&quot;Weakmap-shim: Key must be object&quot;);var r=e.valueOf(t);return r&amp;&amp;r.identity===t?r:n(e,t)}}},{&quot;./hidden-store.js&quot;:604}],604:[function(t,e,r){e.exports=function(t,e){var r={identity:e},n=t.valueOf;return Object.defineProperty(t,&quot;valueOf&quot;,{value:function(t){return t!==e?n.apply(this,arguments):r},writable:!0}),r}},{}],605:[function(t,e,r){var n=t(&quot;./create-store.js&quot;);e.exports=function(){var t=n();return{get:function(e,r){var n=t(e);return n.hasOwnProperty(&quot;value&quot;)?n.value:r},set:function(e,r){return t(e).value=r,this},has:function(e){return&quot;value&quot;in t(e)},delete:function(e){return delete t(e).value}}}},{&quot;./create-store.js&quot;:603}],606:[function(t,e,r){var n=t(&quot;get-canvas-context&quot;);e.exports=function(t){return n(&quot;webgl&quot;,t)}},{&quot;get-canvas-context&quot;:249}],607:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Chinese&quot;,jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Chinese&quot;,epochs:[&quot;BEC&quot;,&quot;EC&quot;],monthNumbers:function(t,e){if(&quot;string&quot;==typeof t){var r=t.match(l);return r?r[0]:&quot;&quot;}var n=this._validateYear(t),i=t.month(),a=&quot;&quot;+this.toChineseMonth(n,i);return e&amp;&amp;a.length&lt;2&amp;&amp;(a=&quot;0&quot;+a),this.isIntercalaryMonth(n,i)&amp;&amp;(a+=&quot;i&quot;),a},monthNames:function(t){if(&quot;string&quot;==typeof t){var e=t.match(c);return e?e[0]:&quot;&quot;}var r=this._validateYear(t),n=t.month(),i=[&quot;\u4e00\u6708&quot;,&quot;\u4e8c\u6708&quot;,&quot;\u4e09\u6708&quot;,&quot;\u56db\u6708&quot;,&quot;\u4e94\u6708&quot;,&quot;\u516d\u6708&quot;,&quot;\u4e03\u6708&quot;,&quot;\u516b\u6708&quot;,&quot;\u4e5d\u6708&quot;,&quot;\u5341\u6708&quot;,&quot;\u5341\u4e00\u6708&quot;,&quot;\u5341\u4e8c\u6708&quot;][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&amp;&amp;(i=&quot;\u95f0&quot;+i),i},monthNamesShort:function(t){if(&quot;string&quot;==typeof t){var e=t.match(u);return e?e[0]:&quot;&quot;}var r=this._validateYear(t),n=t.month(),i=[&quot;\u4e00&quot;,&quot;\u4e8c&quot;,&quot;\u4e09&quot;,&quot;\u56db&quot;,&quot;\u4e94&quot;,&quot;\u516d&quot;,&quot;\u4e03&quot;,&quot;\u516b&quot;,&quot;\u4e5d&quot;,&quot;\u5341&quot;,&quot;\u5341\u4e00&quot;,&quot;\u5341\u4e8c&quot;][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&amp;&amp;(i=&quot;\u95f0&quot;+i),i},parseMonth:function(t,e){t=this._validateYear(t);var r,n=parseInt(e);if(isNaN(n))&quot;\u95f0&quot;===e[0]&amp;&amp;(r=!0,e=e.substring(1)),&quot;\u6708&quot;===e[e.length-1]&amp;&amp;(e=e.substring(0,e.length-1)),n=1+[&quot;\u4e00&quot;,&quot;\u4e8c&quot;,&quot;\u4e09&quot;,&quot;\u56db&quot;,&quot;\u4e94&quot;,&quot;\u516d&quot;,&quot;\u4e03&quot;,&quot;\u516b&quot;,&quot;\u4e5d&quot;,&quot;\u5341&quot;,&quot;\u5341\u4e00&quot;,&quot;\u5341\u4e8c&quot;].indexOf(e);else{var i=e[e.length-1];r=&quot;i&quot;===i||&quot;I&quot;===i}return this.toMonthIndex(t,n,r)},dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:1,isRTL:!1}},_validateYear:function(t,e){if(t.year&amp;&amp;(t=t.year()),&quot;number&quot;!=typeof t||t&lt;1888||t&gt;2111)throw e.replace(/\{0\}/,this.local.name);return t},toMonthIndex:function(t,e,r){var i=this.intercalaryMonth(t);if(r&amp;&amp;e!==i||e&lt;1||e&gt;12)throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return i?!r&amp;&amp;e&lt;=i?e-1:e:e-1},toChineseMonth:function(t,e){t.year&amp;&amp;(e=(t=t.year()).month());var r=this.intercalaryMonth(t);if(e&lt;0||e&gt;(r?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r?e&lt;r?e+1:e:e+1},intercalaryMonth:function(t){return t=this._validateYear(t),f[t-f[0]]&gt;&gt;13},isIntercalaryMonth:function(t,e){t.year&amp;&amp;(e=(t=t.year()).month());var r=this.intercalaryMonth(t);return!!r&amp;&amp;r===e},leapYear:function(t){return 0!==this.intercalaryMonth(t)},weekOfYear:function(t,e,r){var i,o=this._validateYear(t,n.local.invalidyear),s=h[o-h[0]],l=s&gt;&gt;9&amp;4095,c=s&gt;&gt;5&amp;15,u=31&amp;s;(i=a.newDate(l,c,u)).add(4-(i.dayOfWeek()||7),&quot;d&quot;);var f=this.toJD(t,e,r)-i.toJD();return 1+Math.floor(f/7)},monthsInYear:function(t){return this.leapYear(t)?13:12},daysInMonth:function(t,e){t.year&amp;&amp;(e=t.month(),t=t.year()),t=this._validateYear(t);var r=f[t-f[0]];if(e&gt;(r&gt;&gt;13?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r&amp;1&lt;&lt;12-e?30:29},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,s,r,n.local.invalidDate);t=this._validateYear(i.year()),e=i.month(),r=i.day();var o=this.isIntercalaryMonth(t,e),s=this.toChineseMonth(t,e),l=function(t,e,r,n,i){var a,o,s;if(&quot;object&quot;==typeof t)o=t,a=e||{};else{var l;if(!(&quot;number&quot;==typeof t&amp;&amp;t&gt;=1888&amp;&amp;t&lt;=2111))throw new Error(&quot;Lunar year outside range 1888-2111&quot;);if(!(&quot;number&quot;==typeof e&amp;&amp;e&gt;=1&amp;&amp;e&lt;=12))throw new Error(&quot;Lunar month outside range 1 - 12&quot;);if(!(&quot;number&quot;==typeof r&amp;&amp;r&gt;=1&amp;&amp;r&lt;=30))throw new Error(&quot;Lunar day outside range 1 - 30&quot;);&quot;object&quot;==typeof n?(l=!1,a=n):(l=!!n,a=i||{}),o={year:t,month:e,day:r,isIntercalary:l}}s=o.day-1;var c,u=f[o.year-f[0]],p=u&gt;&gt;13;c=p&amp;&amp;(o.month&gt;p||o.isIntercalary)?o.month:o.month-1;for(var d=0;d&lt;c;d++){s+=u&amp;1&lt;&lt;12-d?30:29}var g=h[o.year-h[0]],m=new Date(g&gt;&gt;9&amp;4095,(g&gt;&gt;5&amp;15)-1,(31&amp;g)+s);return a.year=m.getFullYear(),a.month=1+m.getMonth(),a.day=m.getDate(),a}(t,s,r,o);return a.toJD(l.year,l.month,l.day)},fromJD:function(t){var e=a.fromJD(t),r=function(t,e,r,n){var i,a;if(&quot;object&quot;==typeof t)i=t,a=e||{};else{if(!(&quot;number&quot;==typeof t&amp;&amp;t&gt;=1888&amp;&amp;t&lt;=2111))throw new Error(&quot;Solar year outside range 1888-2111&quot;);if(!(&quot;number&quot;==typeof e&amp;&amp;e&gt;=1&amp;&amp;e&lt;=12))throw new Error(&quot;Solar month outside range 1 - 12&quot;);if(!(&quot;number&quot;==typeof r&amp;&amp;r&gt;=1&amp;&amp;r&lt;=31))throw new Error(&quot;Solar day outside range 1 - 31&quot;);i={year:t,month:e,day:r},a=n||{}}var o=h[i.year-h[0]],s=i.year&lt;&lt;9|i.month&lt;&lt;5|i.day;a.year=s&gt;=o?i.year:i.year-1,o=h[a.year-h[0]];var l,c=new Date(o&gt;&gt;9&amp;4095,(o&gt;&gt;5&amp;15)-1,31&amp;o),u=new Date(i.year,i.month-1,i.day);l=Math.round((u-c)/864e5);var p,d=f[a.year-f[0]];for(p=0;p&lt;13;p++){var g=d&amp;1&lt;&lt;12-p?30:29;if(l&lt;g)break;l-=g}var m=d&gt;&gt;13;!m||p&lt;m?(a.isIntercalary=!1,a.month=1+p):p===m?(a.isIntercalary=!0,a.month=p):(a.isIntercalary=!1,a.month=p);return a.day=1+l,a}(e.year(),e.month(),e.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(t){var e=t.match(s),r=this._validateYear(+e[1]),n=+e[2],i=!!e[3],a=this.toMonthIndex(r,n,i),o=+e[4];return this.newDate(r,a,o)},add:function(t,e,r){var n=t.year(),i=t.month(),a=this.isIntercalaryMonth(n,i),s=this.toChineseMonth(n,i),l=Object.getPrototypeOf(o.prototype).add.call(this,t,e,r);if(&quot;y&quot;===r){var c=l.year(),u=l.month(),f=this.isIntercalaryMonth(c,s),h=a&amp;&amp;f?this.toMonthIndex(c,s,!0):this.toMonthIndex(c,s,!1);h!==u&amp;&amp;l.month(h)}return l}});var s=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,l=/^\d?\d[iI]?/m,c=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?\u6708/m,u=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?/m;n.calendars.chinese=o;var f=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],h=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],608:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Coptic&quot;,jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Coptic&quot;,epochs:[&quot;BAM&quot;,&quot;AM&quot;],monthNames:[&quot;Thout&quot;,&quot;Paopi&quot;,&quot;Hathor&quot;,&quot;Koiak&quot;,&quot;Tobi&quot;,&quot;Meshir&quot;,&quot;Paremhat&quot;,&quot;Paremoude&quot;,&quot;Pashons&quot;,&quot;Paoni&quot;,&quot;Epip&quot;,&quot;Mesori&quot;,&quot;Pi Kogi Enavot&quot;],monthNamesShort:[&quot;Tho&quot;,&quot;Pao&quot;,&quot;Hath&quot;,&quot;Koi&quot;,&quot;Tob&quot;,&quot;Mesh&quot;,&quot;Pat&quot;,&quot;Pad&quot;,&quot;Pash&quot;,&quot;Pao&quot;,&quot;Epi&quot;,&quot;Meso&quot;,&quot;PiK&quot;],dayNames:[&quot;Tkyriaka&quot;,&quot;Pesnau&quot;,&quot;Pshoment&quot;,&quot;Peftoou&quot;,&quot;Ptiou&quot;,&quot;Psoou&quot;,&quot;Psabbaton&quot;],dayNamesShort:[&quot;Tky&quot;,&quot;Pes&quot;,&quot;Psh&quot;,&quot;Pef&quot;,&quot;Pti&quot;,&quot;Pso&quot;,&quot;Psa&quot;],dayNamesMin:[&quot;Tk&quot;,&quot;Pes&quot;,&quot;Psh&quot;,&quot;Pef&quot;,&quot;Pt&quot;,&quot;Pso&quot;,&quot;Psa&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())&lt;0&amp;&amp;t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r&lt;=0&amp;&amp;r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.coptic=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],609:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Discworld&quot;,jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Discworld&quot;,epochs:[&quot;BUC&quot;,&quot;UC&quot;],monthNames:[&quot;Ick&quot;,&quot;Offle&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;Grune&quot;,&quot;August&quot;,&quot;Spune&quot;,&quot;Sektober&quot;,&quot;Ember&quot;,&quot;December&quot;],monthNamesShort:[&quot;Ick&quot;,&quot;Off&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Gru&quot;,&quot;Aug&quot;,&quot;Spu&quot;,&quot;Sek&quot;,&quot;Emb&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Octeday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Oct&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Oc&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:2,isRTL:!1}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),13},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),400},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(t,e,r){return(this._validate(t,e,r,n.local.invalidDate).day()+1)%8},weekDay:function(t,e,r){var n=this.dayOfWeek(t,e,r);return n&gt;=2&amp;&amp;n&lt;=6},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{century:o[Math.floor((i.year()-1)/100)+1]||&quot;&quot;}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year()+(i.year()&lt;0?1:0),e=i.month(),(r=i.day())+(e&gt;1?16:0)+(e&gt;2?32*(e-2):0)+400*(t-1)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t+.5)-Math.floor(this.jdEpoch)-1;var e=Math.floor(t/400)+1;t-=400*(e-1),t+=t&gt;15?16:0;var r=Math.floor(t/32)+1,n=t-32*(r-1)+1;return this.newDate(e&lt;=0?e-1:e,r,n)}});var o={20:&quot;Fruitbat&quot;,21:&quot;Anchovy&quot;};n.calendars.discworld=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],610:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Ethiopian&quot;,jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Ethiopian&quot;,epochs:[&quot;BEE&quot;,&quot;EE&quot;],monthNames:[&quot;Meskerem&quot;,&quot;Tikemet&quot;,&quot;Hidar&quot;,&quot;Tahesas&quot;,&quot;Tir&quot;,&quot;Yekatit&quot;,&quot;Megabit&quot;,&quot;Miazia&quot;,&quot;Genbot&quot;,&quot;Sene&quot;,&quot;Hamle&quot;,&quot;Nehase&quot;,&quot;Pagume&quot;],monthNamesShort:[&quot;Mes&quot;,&quot;Tik&quot;,&quot;Hid&quot;,&quot;Tah&quot;,&quot;Tir&quot;,&quot;Yek&quot;,&quot;Meg&quot;,&quot;Mia&quot;,&quot;Gen&quot;,&quot;Sen&quot;,&quot;Ham&quot;,&quot;Neh&quot;,&quot;Pag&quot;],dayNames:[&quot;Ehud&quot;,&quot;Segno&quot;,&quot;Maksegno&quot;,&quot;Irob&quot;,&quot;Hamus&quot;,&quot;Arb&quot;,&quot;Kidame&quot;],dayNamesShort:[&quot;Ehu&quot;,&quot;Seg&quot;,&quot;Mak&quot;,&quot;Iro&quot;,&quot;Ham&quot;,&quot;Arb&quot;,&quot;Kid&quot;],dayNamesMin:[&quot;Eh&quot;,&quot;Se&quot;,&quot;Ma&quot;,&quot;Ir&quot;,&quot;Ha&quot;,&quot;Ar&quot;,&quot;Ki&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())&lt;0&amp;&amp;t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r&lt;=0&amp;&amp;r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.ethiopian=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],611:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Hebrew&quot;,jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Hebrew&quot;,epochs:[&quot;BAM&quot;,&quot;AM&quot;],monthNames:[&quot;Nisan&quot;,&quot;Iyar&quot;,&quot;Sivan&quot;,&quot;Tammuz&quot;,&quot;Av&quot;,&quot;Elul&quot;,&quot;Tishrei&quot;,&quot;Cheshvan&quot;,&quot;Kislev&quot;,&quot;Tevet&quot;,&quot;Shevat&quot;,&quot;Adar&quot;,&quot;Adar II&quot;],monthNamesShort:[&quot;Nis&quot;,&quot;Iya&quot;,&quot;Siv&quot;,&quot;Tam&quot;,&quot;Av&quot;,&quot;Elu&quot;,&quot;Tis&quot;,&quot;Che&quot;,&quot;Kis&quot;,&quot;Tev&quot;,&quot;She&quot;,&quot;Ada&quot;,&quot;Ad2&quot;],dayNames:[&quot;Yom Rishon&quot;,&quot;Yom Sheni&quot;,&quot;Yom Shlishi&quot;,&quot;Yom Revi'i&quot;,&quot;Yom Chamishi&quot;,&quot;Yom Shishi&quot;,&quot;Yom Shabbat&quot;],dayNamesShort:[&quot;Ris&quot;,&quot;She&quot;,&quot;Shl&quot;,&quot;Rev&quot;,&quot;Cha&quot;,&quot;Shi&quot;,&quot;Sha&quot;],dayNamesMin:[&quot;Ri&quot;,&quot;She&quot;,&quot;Shl&quot;,&quot;Re&quot;,&quot;Ch&quot;,&quot;Shi&quot;,&quot;Sha&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return this._leapYear(e.year())},_leapYear:function(t){return o(7*(t=t&lt;0?t+1:t)+1,19)&lt;7},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),this._leapYear(t.year?t.year():t)?13:12},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),this.toJD(-1===t?1:t+1,7,1)-this.toJD(t,7,1)},daysInMonth:function(t,e){return t.year&amp;&amp;(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),12===e&amp;&amp;this.leapYear(t)||8===e&amp;&amp;5===o(this.daysInYear(t),10)?30:9===e&amp;&amp;3===o(this.daysInYear(t),10)?29:this.daysPerMonth[e-1]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{yearType:(this.leapYear(i)?&quot;embolismic&quot;:&quot;common&quot;)+&quot; &quot;+[&quot;deficient&quot;,&quot;regular&quot;,&quot;complete&quot;][this.daysInYear(i)%10-3]}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t&lt;=0?t+1:t,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(e&lt;7){for(var s=7;s&lt;=this.monthsInYear(t);s++)o+=this.daysInMonth(t,s);for(s=1;s&lt;e;s++)o+=this.daysInMonth(t,s)}else for(s=7;s&lt;e;s++)o+=this.daysInMonth(t,s);return o},_delay1:function(t){var e=Math.floor((235*t-234)/19),r=12084+13753*e,n=29*e+Math.floor(r/25920);return o(3*(n+1),7)&lt;3&amp;&amp;n++,n},_delay2:function(t){var e=this._delay1(t-1),r=this._delay1(t);return this._delay1(t+1)-r==356?2:r-e==382?1:0},fromJD:function(t){t=Math.floor(t)+.5;for(var e=Math.floor(98496*(t-this.jdEpoch)/35975351)-1;t&gt;=this.toJD(-1===e?1:e+1,7,1);)e++;for(var r=t&lt;this.toJD(e,1,1)?7:1;t&gt;this.toJD(e,r,this.daysInMonth(e,r));)r++;var n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.hebrew=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],612:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Islamic&quot;,jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Islamic&quot;,epochs:[&quot;BH&quot;,&quot;AH&quot;],monthNames:[&quot;Muharram&quot;,&quot;Safar&quot;,&quot;Rabi' al-awwal&quot;,&quot;Rabi' al-thani&quot;,&quot;Jumada al-awwal&quot;,&quot;Jumada al-thani&quot;,&quot;Rajab&quot;,&quot;Sha'aban&quot;,&quot;Ramadan&quot;,&quot;Shawwal&quot;,&quot;Dhu al-Qi'dah&quot;,&quot;Dhu al-Hijjah&quot;],monthNamesShort:[&quot;Muh&quot;,&quot;Saf&quot;,&quot;Rab1&quot;,&quot;Rab2&quot;,&quot;Jum1&quot;,&quot;Jum2&quot;,&quot;Raj&quot;,&quot;Sha'&quot;,&quot;Ram&quot;,&quot;Shaw&quot;,&quot;DhuQ&quot;,&quot;DhuH&quot;],dayNames:[&quot;Yawm al-ahad&quot;,&quot;Yawm al-ithnayn&quot;,&quot;Yawm ath-thulaathaa'&quot;,&quot;Yawm al-arbi'aa'&quot;,&quot;Yawm al-kham\u012bs&quot;,&quot;Yawm al-jum'a&quot;,&quot;Yawm as-sabt&quot;],dayNamesShort:[&quot;Aha&quot;,&quot;Ith&quot;,&quot;Thu&quot;,&quot;Arb&quot;,&quot;Kha&quot;,&quot;Jum&quot;,&quot;Sab&quot;],dayNamesMin:[&quot;Ah&quot;,&quot;It&quot;,&quot;Th&quot;,&quot;Ar&quot;,&quot;Kh&quot;,&quot;Ju&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!1}},leapYear:function(t){return(11*this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year()+14)%30&lt;11},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return this.leapYear(t)?355:354},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),t=t&lt;=0?t+1:t,(r=i.day())+Math.ceil(29.5*(e-1))+354*(t-1)+Math.floor((3+11*t)/30)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t)+.5;var e=Math.floor((30*(t-this.jdEpoch)+10646)/10631);e=e&lt;=0?e-1:e;var r=Math.min(12,Math.ceil((t-29-this.toJD(e,1,1))/29.5)+1),n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.islamic=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],613:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Julian&quot;,jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Julian&quot;,epochs:[&quot;BC&quot;,&quot;AD&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;mm/dd/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()&lt;0?e.year()+1:e.year())%4==0},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),r=i.day(),t&lt;0&amp;&amp;t++,e&lt;=2&amp;&amp;(t--,e+=12),Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r-1524.5},fromJD:function(t){var e=Math.floor(t+.5)+1524,r=Math.floor((e-122.1)/365.25),n=Math.floor(365.25*r),i=Math.floor((e-n)/30.6001),a=i-Math.floor(i&lt;14?1:13),o=r-Math.floor(a&gt;2?4716:4715),s=e-n-Math.floor(30.6001*i);return o&lt;=0&amp;&amp;o--,this.newDate(o,a,s)}}),n.calendars.julian=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],614:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}function s(t,e){return o(t-1,e)+1}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Mayan&quot;,jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{&quot;&quot;:{name:&quot;Mayan&quot;,epochs:[&quot;&quot;,&quot;&quot;],monthNames:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;],monthNamesShort:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;],dayNames:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],dayNamesShort:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],dayNamesMin:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],digits:null,dateFormat:&quot;YYYY.m.d&quot;,firstDay:0,isRTL:!1,haabMonths:[&quot;Pop&quot;,&quot;Uo&quot;,&quot;Zip&quot;,&quot;Zotz&quot;,&quot;Tzec&quot;,&quot;Xul&quot;,&quot;Yaxkin&quot;,&quot;Mol&quot;,&quot;Chen&quot;,&quot;Yax&quot;,&quot;Zac&quot;,&quot;Ceh&quot;,&quot;Mac&quot;,&quot;Kankin&quot;,&quot;Muan&quot;,&quot;Pax&quot;,&quot;Kayab&quot;,&quot;Cumku&quot;,&quot;Uayeb&quot;],tzolkinMonths:[&quot;Imix&quot;,&quot;Ik&quot;,&quot;Akbal&quot;,&quot;Kan&quot;,&quot;Chicchan&quot;,&quot;Cimi&quot;,&quot;Manik&quot;,&quot;Lamat&quot;,&quot;Muluc&quot;,&quot;Oc&quot;,&quot;Chuen&quot;,&quot;Eb&quot;,&quot;Ben&quot;,&quot;Ix&quot;,&quot;Men&quot;,&quot;Cib&quot;,&quot;Caban&quot;,&quot;Etznab&quot;,&quot;Cauac&quot;,&quot;Ahau&quot;]}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},formatYear:function(t){t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year();var e=Math.floor(t/400);return t%=400,t+=t&lt;0?400:0,e+&quot;.&quot;+Math.floor(t/20)+&quot;.&quot;+t%20},forYear:function(t){if((t=t.split(&quot;.&quot;)).length&lt;3)throw&quot;Invalid Mayan year&quot;;for(var e=0,r=0;r&lt;t.length;r++){var n=parseInt(t[r],10);if(Math.abs(n)&gt;19||r&gt;0&amp;&amp;n&lt;0)throw&quot;Invalid Mayan year&quot;;e=20*e+n}return e},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),18},weekOfYear:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),0},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),360},daysInMonth:function(t,e){return this._validate(t,e,this.minDay,n.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate).day()},weekDay:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),!0},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate).toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(t){var e=o((t-=this.jdEpoch)+8+340,365);return[Math.floor(e/20)+1,o(e,20)]},_toTzolkin:function(t){return[s((t-=this.jdEpoch)+20,20),s(t+4,13)]},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return i.day()+20*i.month()+360*i.year()+this.jdEpoch},fromJD:function(t){t=Math.floor(t)+.5-this.jdEpoch;var e=Math.floor(t/360);t%=360,t+=t&lt;0?360:0;var r=Math.floor(t/20),n=t%20;return this.newDate(e,r,n)}}),n.calendars.mayan=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],615:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar;var o=n.instance(&quot;gregorian&quot;);i(a.prototype,{name:&quot;Nanakshahi&quot;,jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Nanakshahi&quot;,epochs:[&quot;BN&quot;,&quot;AN&quot;],monthNames:[&quot;Chet&quot;,&quot;Vaisakh&quot;,&quot;Jeth&quot;,&quot;Harh&quot;,&quot;Sawan&quot;,&quot;Bhadon&quot;,&quot;Assu&quot;,&quot;Katak&quot;,&quot;Maghar&quot;,&quot;Poh&quot;,&quot;Magh&quot;,&quot;Phagun&quot;],monthNamesShort:[&quot;Che&quot;,&quot;Vai&quot;,&quot;Jet&quot;,&quot;Har&quot;,&quot;Saw&quot;,&quot;Bha&quot;,&quot;Ass&quot;,&quot;Kat&quot;,&quot;Mgr&quot;,&quot;Poh&quot;,&quot;Mgh&quot;,&quot;Pha&quot;],dayNames:[&quot;Somvaar&quot;,&quot;Mangalvar&quot;,&quot;Budhvaar&quot;,&quot;Veervaar&quot;,&quot;Shukarvaar&quot;,&quot;Sanicharvaar&quot;,&quot;Etvaar&quot;],dayNamesShort:[&quot;Som&quot;,&quot;Mangal&quot;,&quot;Budh&quot;,&quot;Veer&quot;,&quot;Shukar&quot;,&quot;Sanichar&quot;,&quot;Et&quot;],dayNamesMin:[&quot;So&quot;,&quot;Ma&quot;,&quot;Bu&quot;,&quot;Ve&quot;,&quot;Sh&quot;,&quot;Sa&quot;,&quot;Et&quot;],digits:null,dateFormat:&quot;dd-mm-yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear);return o.leapYear(e.year()+(e.year()&lt;1?1:0)+1469)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(1-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidMonth);(t=i.year())&lt;0&amp;&amp;t++;for(var a=i.day(),s=1;s&lt;i.month();s++)a+=this.daysPerMonth[s-1];return a+o.toJD(t+1468,3,13)},fromJD:function(t){t=Math.floor(t+.5);for(var e=Math.floor((t-(this.jdEpoch-1))/366);t&gt;=this.toJD(e+1,1,1);)e++;for(var r=t-Math.floor(this.toJD(e,1,1)+.5)+1,n=1;r&gt;this.daysInMonth(e,n);)r-=this.daysInMonth(e,n),n++;return this.newDate(e,n,r)}}),n.calendars.nanakshahi=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],616:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Nepali&quot;,jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{&quot;&quot;:{name:&quot;Nepali&quot;,epochs:[&quot;BBS&quot;,&quot;ABS&quot;],monthNames:[&quot;Baisakh&quot;,&quot;Jestha&quot;,&quot;Ashadh&quot;,&quot;Shrawan&quot;,&quot;Bhadra&quot;,&quot;Ashwin&quot;,&quot;Kartik&quot;,&quot;Mangsir&quot;,&quot;Paush&quot;,&quot;Mangh&quot;,&quot;Falgun&quot;,&quot;Chaitra&quot;],monthNamesShort:[&quot;Bai&quot;,&quot;Je&quot;,&quot;As&quot;,&quot;Shra&quot;,&quot;Bha&quot;,&quot;Ash&quot;,&quot;Kar&quot;,&quot;Mang&quot;,&quot;Pau&quot;,&quot;Ma&quot;,&quot;Fal&quot;,&quot;Chai&quot;],dayNames:[&quot;Aaitabaar&quot;,&quot;Sombaar&quot;,&quot;Manglbaar&quot;,&quot;Budhabaar&quot;,&quot;Bihibaar&quot;,&quot;Shukrabaar&quot;,&quot;Shanibaar&quot;],dayNamesShort:[&quot;Aaita&quot;,&quot;Som&quot;,&quot;Mangl&quot;,&quot;Budha&quot;,&quot;Bihi&quot;,&quot;Shukra&quot;,&quot;Shani&quot;],dayNamesMin:[&quot;Aai&quot;,&quot;So&quot;,&quot;Man&quot;,&quot;Bu&quot;,&quot;Bi&quot;,&quot;Shu&quot;,&quot;Sha&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:1,isRTL:!1}},leapYear:function(t){return this.daysInYear(t)!==this.daysPerYear},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){if(t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),&quot;undefined&quot;==typeof this.NEPALI_CALENDAR_DATA[t])return this.daysPerYear;for(var e=0,r=this.minMonth;r&lt;=12;r++)e+=this.NEPALI_CALENDAR_DATA[t][r];return e},daysInMonth:function(t,e){return t.year&amp;&amp;(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),&quot;undefined&quot;==typeof this.NEPALI_CALENDAR_DATA[t]?this.daysPerMonth[e-1]:this.NEPALI_CALENDAR_DATA[t][e]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=n.instance(),o=0,s=e,l=t;this._createMissingCalendarData(t);var c=t-(s&gt;9||9===s&amp;&amp;r&gt;=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(9!==e&amp;&amp;(o=r,s--);9!==s;)s&lt;=0&amp;&amp;(s=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][s],s--;return 9===e?(o+=r-this.NEPALI_CALENDAR_DATA[l][0])&lt;0&amp;&amp;(o+=a.daysInYear(c)):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(c,1,1).add(o,&quot;d&quot;).toJD()},fromJD:function(t){var e=n.instance().fromJD(t),r=e.year(),i=e.dayOfYear(),a=r+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i&gt;l;)++o&gt;12&amp;&amp;(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var c=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,c)},_createMissingCalendarData:function(t){var e=this.daysPerMonth.slice(0);e.unshift(17);for(var r=t-1;r&lt;t+2;r++)&quot;undefined&quot;==typeof this.NEPALI_CALENDAR_DATA[r]&amp;&amp;(this.NEPALI_CALENDAR_DATA[r]=e)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),n.calendars.nepali=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],617:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Persian&quot;,jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Persian&quot;,epochs:[&quot;BP&quot;,&quot;AP&quot;],monthNames:[&quot;Farvardin&quot;,&quot;Ordibehesht&quot;,&quot;Khordad&quot;,&quot;Tir&quot;,&quot;Mordad&quot;,&quot;Shahrivar&quot;,&quot;Mehr&quot;,&quot;Aban&quot;,&quot;Azar&quot;,&quot;Day&quot;,&quot;Bahman&quot;,&quot;Esfand&quot;],monthNamesShort:[&quot;Far&quot;,&quot;Ord&quot;,&quot;Kho&quot;,&quot;Tir&quot;,&quot;Mor&quot;,&quot;Sha&quot;,&quot;Meh&quot;,&quot;Aba&quot;,&quot;Aza&quot;,&quot;Day&quot;,&quot;Bah&quot;,&quot;Esf&quot;],dayNames:[&quot;Yekshambe&quot;,&quot;Doshambe&quot;,&quot;Seshambe&quot;,&quot;Ch\xe6harshambe&quot;,&quot;Panjshambe&quot;,&quot;Jom'e&quot;,&quot;Shambe&quot;],dayNamesShort:[&quot;Yek&quot;,&quot;Do&quot;,&quot;Se&quot;,&quot;Ch\xe6&quot;,&quot;Panj&quot;,&quot;Jom&quot;,&quot;Sha&quot;],dayNamesMin:[&quot;Ye&quot;,&quot;Do&quot;,&quot;Se&quot;,&quot;Ch&quot;,&quot;Pa&quot;,&quot;Jo&quot;,&quot;Sh&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 682*((e.year()-(e.year()&gt;0?474:473))%2820+474+38)%2816&lt;682},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-(n.dayOfWeek()+1)%7,&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t-(t&gt;=0?474:473),s=474+o(a,2820);return r+(e&lt;=7?31*(e-1):30*(e-1)+6)+Math.floor((682*s-110)/2816)+365*(s-1)+1029983*Math.floor(a/2820)+this.jdEpoch-1},fromJD:function(t){var e=(t=Math.floor(t)+.5)-this.toJD(475,1,1),r=Math.floor(e/1029983),n=o(e,1029983),i=2820;if(1029982!==n){var a=Math.floor(n/366),s=o(n,366);i=Math.floor((2134*a+2816*s+2815)/1028522)+a+1}var l=i+2820*r+474;l=l&lt;=0?l-1:l;var c=t-this.toJD(l,1,1)+1,u=c&lt;=186?Math.ceil(c/31):Math.ceil((c-6)/30),f=t-this.toJD(l,u,1)+1;return this.newDate(l,u,f)}}),n.calendars.persian=a,n.calendars.jalali=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],618:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Taiwan&quot;,jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Taiwan&quot;,epochs:[&quot;BROC&quot;,&quot;ROC&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:1,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t+this.yearsOffset+(t&gt;=-this.yearsOffset&amp;&amp;t&lt;=-1?1:0)},_g2tYear:function(t){return t-this.yearsOffset-(t&gt;=1&amp;&amp;t&lt;=this.yearsOffset?1:0)}}),n.calendars.taiwan=o},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],619:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Thai&quot;,jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Thai&quot;,epochs:[&quot;BBE&quot;,&quot;BE&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t-this.yearsOffset-(t&gt;=1&amp;&amp;t&lt;=this.yearsOffset?1:0)},_g2tYear:function(t){return t+this.yearsOffset+(t&gt;=-this.yearsOffset&amp;&amp;t&lt;=-1?1:0)}}),n.calendars.thai=o},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],620:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;UmmAlQura&quot;,hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Umm al-Qura&quot;,epochs:[&quot;BH&quot;,&quot;AH&quot;],monthNames:[&quot;Al-Muharram&quot;,&quot;Safar&quot;,&quot;Rabi' al-awwal&quot;,&quot;Rabi' Al-Thani&quot;,&quot;Jumada Al-Awwal&quot;,&quot;Jumada Al-Thani&quot;,&quot;Rajab&quot;,&quot;Sha'aban&quot;,&quot;Ramadan&quot;,&quot;Shawwal&quot;,&quot;Dhu al-Qi'dah&quot;,&quot;Dhu al-Hijjah&quot;],monthNamesShort:[&quot;Muh&quot;,&quot;Saf&quot;,&quot;Rab1&quot;,&quot;Rab2&quot;,&quot;Jum1&quot;,&quot;Jum2&quot;,&quot;Raj&quot;,&quot;Sha'&quot;,&quot;Ram&quot;,&quot;Shaw&quot;,&quot;DhuQ&quot;,&quot;DhuH&quot;],dayNames:[&quot;Yawm al-Ahad&quot;,&quot;Yawm al-Ithnain&quot;,&quot;Yawm al-Thal\u0101th\u0101\u2019&quot;,&quot;Yawm al-Arba\u2018\u0101\u2019&quot;,&quot;Yawm al-Kham\u012bs&quot;,&quot;Yawm al-Jum\u2018a&quot;,&quot;Yawm al-Sabt&quot;],dayNamesMin:[&quot;Ah&quot;,&quot;Ith&quot;,&quot;Th&quot;,&quot;Ar&quot;,&quot;Kh&quot;,&quot;Ju&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!0}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 355===this.daysInYear(e.year())},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){for(var e=0,r=1;r&lt;=12;r++)e+=this.daysInMonth(t,r);return e},daysInMonth:function(t,e){for(var r=this._validate(t,e,this.minDay,n.local.invalidMonth).toJD()-24e5+.5,i=0,a=0;a&lt;o.length;a++){if(o[a]&gt;r)return o[i]-o[i-1];i++}return 30},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate),a=12*(i.year()-1)+i.month()-15292;return i.day()+o[a-1]-1+24e5-.5},fromJD:function(t){for(var e=t-24e5+.5,r=0,n=0;n&lt;o.length&amp;&amp;!(o[n]&gt;e);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),s=a+1,l=i-12*a,c=e-o[r-1]+1;return this.newDate(s,l,c)},isValid:function(t,e,r){var i=n.baseCalendar.prototype.isValid.apply(this,arguments);return i&amp;&amp;(i=(t=null!=t.year?t.year:t)&gt;=1276&amp;&amp;t&lt;=1500),i},_validate:function(t,e,r,i){var a=n.baseCalendar.prototype._validate.apply(this,arguments);if(a.year&lt;1276||a.year&gt;1500)throw i.replace(/\{0\}/,this.local.name);return a}}),n.calendars.ummalqura=a;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],621:[function(t,e,r){var n=t(&quot;object-assign&quot;);function i(){this.regionalOptions=[],this.regionalOptions[&quot;&quot;]={invalidCalendar:&quot;Calendar {0} not found&quot;,invalidDate:&quot;Invalid {0} date&quot;,invalidMonth:&quot;Invalid {0} month&quot;,invalidYear:&quot;Invalid {0} year&quot;,differentCalendars:&quot;Cannot mix {0} and {1} dates&quot;},this.local=this.regionalOptions[&quot;&quot;],this.calendars={},this._localCals={}}function a(t,e,r,n){if(this._calendar=t,this._year=e,this._month=r,this._day=n,0===this._calendar._validateLevel&amp;&amp;!this._calendar.isValid(this._year,this._month,this._day))throw(c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function o(t,e){return&quot;000000&quot;.substring(0,e-(t=&quot;&quot;+t).length)+t}function s(){this.shortYearCutoff=&quot;+10&quot;}function l(t){this.local=this.regionalOptions[t]||this.regionalOptions[&quot;&quot;]}n(i.prototype,{instance:function(t,e){t=(t||&quot;gregorian&quot;).toLowerCase(),e=e||&quot;&quot;;var r=this._localCals[t+&quot;-&quot;+e];if(!r&amp;&amp;this.calendars[t]&amp;&amp;(r=new this.calendars[t](e),this._localCals[t+&quot;-&quot;+e]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[&quot;&quot;].invalidCalendar).replace(/\{0\}/,t);return r},newDate:function(t,e,r,n,i){return(n=(null!=t&amp;&amp;t.year?t.calendar():&quot;string&quot;==typeof n?this.instance(n,i):n)||this.instance()).newDate(t,e,r)},substituteDigits:function(t){return function(e){return(e+&quot;&quot;).replace(/[0-9]/g,(function(e){return t[e]}))}},substituteChineseDigits:function(t,e){return function(r){for(var n=&quot;&quot;,i=0;r&gt;0;){var a=r%10;n=(0===a?&quot;&quot;:t[a]+e[i])+n,i++,r=Math.floor(r/10)}return 0===n.indexOf(t[1]+e[1])&amp;&amp;(n=n.substr(1)),n||t[0]}}}),n(a.prototype,{newDate:function(t,e,r){return this._calendar.newDate(null==t?this:t,e,r)},year:function(t){return 0===arguments.length?this._year:this.set(t,&quot;y&quot;)},month:function(t){return 0===arguments.length?this._month:this.set(t,&quot;m&quot;)},day:function(t){return 0===arguments.length?this._day:this.set(t,&quot;d&quot;)},date:function(t,e,r){if(!this._calendar.isValid(t,e,r))throw(c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=t,this._month=e,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(t,e){return this._calendar.add(this,t,e)},set:function(t,e){return this._calendar.set(this,t,e)},compareTo:function(t){if(this._calendar.name!==t._calendar.name)throw(c.local.differentCalendars||c.regionalOptions[&quot;&quot;].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,t._calendar.local.name);var e=this._year!==t._year?this._year-t._year:this._month!==t._month?this.monthOfYear()-t.monthOfYear():this._day-t._day;return 0===e?0:e&lt;0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(t){return this._calendar.fromJD(t)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(t){return this._calendar.fromJSDate(t)},toString:function(){return(this.year()&lt;0?&quot;-&quot;:&quot;&quot;)+o(Math.abs(this.year()),4)+&quot;-&quot;+o(this.month(),2)+&quot;-&quot;+o(this.day(),2)}}),n(s.prototype,{_validateLevel:0,newDate:function(t,e,r){return null==t?this.today():(t.year&amp;&amp;(this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),r=t.day(),e=t.month(),t=t.year()),new a(this,t,e,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear).year()&lt;0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return(e.year()&lt;0?&quot;-&quot;:&quot;&quot;)+o(Math.abs(e.year()),4)},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear),12},monthOfYear:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(t,e){var r=(e+this.firstMonth-2*this.minMonth)%this.monthsInYear(t)+this.minMonth;return this._validate(t,r,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth),r},daysInYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return this.leapYear(e)?366:365},dayOfYear:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(t,e,r){return this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),{}},add:function(t,e,r){return this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),this._correctAdd(t,this._add(t,e,r),e,r)},_add:function(t,e,r){if(this._validateLevel++,&quot;d&quot;===r||&quot;w&quot;===r){var n=t.toJD()+e*(&quot;w&quot;===r?this.daysInWeek():1),i=t.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=t.year()+(&quot;y&quot;===r?e:0),o=t.monthOfYear()+(&quot;m&quot;===r?e:0);i=t.day();&quot;y&quot;===r?(t.month()!==this.fromMonthOfYear(a,o)&amp;&amp;(o=this.newDate(a,t.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):&quot;m&quot;===r&amp;&amp;(!function(t){for(;o&lt;t.minMonth;)a--,o+=t.monthsInYear(a);for(var e=t.monthsInYear(a);o&gt;e-1+t.minMonth;)a++,o-=e,e=t.monthsInYear(a)}(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var s=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,s}catch(t){throw this._validateLevel--,t}},_correctAdd:function(t,e,r,n){if(!(this.hasYearZero||&quot;y&quot;!==n&amp;&amp;&quot;m&quot;!==n||0!==e[0]&amp;&amp;t.year()&gt;0==e[0]&gt;0)){var i={y:[1,1,&quot;y&quot;],m:[1,this.monthsInYear(-1),&quot;m&quot;],w:[this.daysInWeek(),this.daysInYear(-1),&quot;d&quot;],d:[1,this.daysInYear(-1),&quot;d&quot;]}[n],a=r&lt;0?-1:1;e=this._add(t,r*i[0]+a*i[1],i[2])}return t.date(e[0],e[1],e[2])},set:function(t,e,r){this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);var n=&quot;y&quot;===r?e:t.year(),i=&quot;m&quot;===r?e:t.month(),a=&quot;d&quot;===r?e:t.day();return&quot;y&quot;!==r&amp;&amp;&quot;m&quot;!==r||(a=Math.min(a,this.daysInMonth(n,i))),t.date(n,i,a)},isValid:function(t,e,r){this._validateLevel++;var n=this.hasYearZero||0!==t;if(n){var i=this.newDate(t,e,this.minDay);n=e&gt;=this.minMonth&amp;&amp;e-this.minMonth&lt;this.monthsInYear(i)&amp;&amp;r&gt;=this.minDay&amp;&amp;r-this.minDay&lt;this.daysInMonth(i)}return this._validateLevel--,n},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return c.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(t){return this.fromJD(c.instance().fromJSDate(t).toJD())},_validate:function(t,e,r,n){if(t.year){if(0===this._validateLevel&amp;&amp;this.name!==t.calendar().name)throw(c.local.differentCalendars||c.regionalOptions[&quot;&quot;].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,t.calendar().local.name);return t}try{if(this._validateLevel++,1===this._validateLevel&amp;&amp;!this.isValid(t,e,r))throw n.replace(/\{0\}/,this.local.name);var i=this.newDate(t,e,r);return this._validateLevel--,i}catch(t){throw this._validateLevel--,t}}}),l.prototype=new s,n(l.prototype,{name:&quot;Gregorian&quot;,jdEpoch:1721425.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Gregorian&quot;,epochs:[&quot;BCE&quot;,&quot;CE&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;mm/dd/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==0&amp;&amp;(t%100!=0||t%400==0)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);t=n.year(),e=n.month(),r=n.day(),t&lt;0&amp;&amp;t++,e&lt;3&amp;&amp;(e+=12,t--);var i=Math.floor(t/100),a=2-i+Math.floor(i/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r+a-1524.5},fromJD:function(t){var e=Math.floor(t+.5),r=Math.floor((e-1867216.25)/36524.25),n=(r=e+1+r-Math.floor(r/4))+1524,i=Math.floor((n-122.1)/365.25),a=Math.floor(365.25*i),o=Math.floor((n-a)/30.6001),s=n-a-Math.floor(30.6001*o),l=o-(o&gt;13.5?13:1),c=i-(l&gt;2.5?4716:4715);return c&lt;=0&amp;&amp;c--,this.newDate(c,l,s)},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()&gt;12?i.getHours()+2:0),i},fromJSDate:function(t){return this.newDate(t.getFullYear(),t.getMonth()+1,t.getDate())}});var c=e.exports=new i;c.cdate=a,c.baseCalendar=s,c.calendars.gregorian=l},{&quot;object-assign&quot;:499}],622:[function(t,e,r){var n=t(&quot;object-assign&quot;),i=t(&quot;./main&quot;);n(i.regionalOptions[&quot;&quot;],{invalidArguments:&quot;Invalid arguments&quot;,invalidFormat:&quot;Cannot format a date from another calendar&quot;,missingNumberAt:&quot;Missing number at position {0}&quot;,unknownNameAt:&quot;Unknown name at position {0}&quot;,unexpectedLiteralAt:&quot;Unexpected literal at position {0}&quot;,unexpectedText:&quot;Additional text found at end&quot;}),i.local=i.regionalOptions[&quot;&quot;],n(i.cdate.prototype,{formatDate:function(t,e){return&quot;string&quot;!=typeof t&amp;&amp;(e=t,t=&quot;&quot;),this._calendar.formatDate(t||&quot;&quot;,this,e)}}),n(i.baseCalendar.prototype,{UNIX_EPOCH:i.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:i.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:&quot;yyyy-mm-dd&quot;,COOKIE:&quot;D, dd M yyyy&quot;,FULL:&quot;DD, MM d, yyyy&quot;,ISO_8601:&quot;yyyy-mm-dd&quot;,JULIAN:&quot;J&quot;,RFC_822:&quot;D, d M yy&quot;,RFC_850:&quot;DD, dd-M-yy&quot;,RFC_1036:&quot;D, d M yy&quot;,RFC_1123:&quot;D, d M yyyy&quot;,RFC_2822:&quot;D, d M yyyy&quot;,RSS:&quot;D, d M yy&quot;,TICKS:&quot;!&quot;,TIMESTAMP:&quot;@&quot;,W3C:&quot;yyyy-mm-dd&quot;,formatDate:function(t,e,r){if(&quot;string&quot;!=typeof t&amp;&amp;(r=e,e=t,t=&quot;&quot;),!e)return&quot;&quot;;if(e.calendar()!==this)throw i.local.invalidFormat||i.regionalOptions[&quot;&quot;].invalidFormat;t=t||this.local.dateFormat;for(var n,a,o,s,l=(r=r||{}).dayNamesShort||this.local.dayNamesShort,c=r.dayNames||this.local.dayNames,u=r.monthNumbers||this.local.monthNumbers,f=r.monthNamesShort||this.local.monthNamesShort,h=r.monthNames||this.local.monthNames,p=(r.calculateWeek||this.local.calculateWeek,function(e,r){for(var n=1;w+n&lt;t.length&amp;&amp;t.charAt(w+n)===e;)n++;return w+=n-1,Math.floor(n/(r||1))&gt;1}),d=function(t,e,r,n){var i=&quot;&quot;+e;if(p(t,n))for(;i.length&lt;r;)i=&quot;0&quot;+i;return i},g=this,m=function(t){return&quot;function&quot;==typeof u?u.call(g,t,p(&quot;m&quot;)):x(d(&quot;m&quot;,t.month(),2))},v=function(t,e){return e?&quot;function&quot;==typeof h?h.call(g,t):h[t.month()-g.minMonth]:&quot;function&quot;==typeof f?f.call(g,t):f[t.month()-g.minMonth]},y=this.local.digits,x=function(t){return r.localNumbers&amp;&amp;y?y(t):t},b=&quot;&quot;,_=!1,w=0;w&lt;t.length;w++)if(_)&quot;'&quot;!==t.charAt(w)||p(&quot;'&quot;)?b+=t.charAt(w):_=!1;else switch(t.charAt(w)){case&quot;d&quot;:b+=x(d(&quot;d&quot;,e.day(),2));break;case&quot;D&quot;:b+=(n=&quot;D&quot;,a=e.dayOfWeek(),o=l,s=c,p(n)?s[a]:o[a]);break;case&quot;o&quot;:b+=d(&quot;o&quot;,e.dayOfYear(),3);break;case&quot;w&quot;:b+=d(&quot;w&quot;,e.weekOfYear(),2);break;case&quot;m&quot;:b+=m(e);break;case&quot;M&quot;:b+=v(e,p(&quot;M&quot;));break;case&quot;y&quot;:b+=p(&quot;y&quot;,2)?e.year():(e.year()%100&lt;10?&quot;0&quot;:&quot;&quot;)+e.year()%100;break;case&quot;Y&quot;:p(&quot;Y&quot;,2),b+=e.formatYear();break;case&quot;J&quot;:b+=e.toJD();break;case&quot;@&quot;:b+=(e.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case&quot;!&quot;:b+=(e.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case&quot;'&quot;:p(&quot;'&quot;)?b+=&quot;'&quot;:_=!0;break;default:b+=t.charAt(w)}return b},parseDate:function(t,e,r){if(null==e)throw i.local.invalidArguments||i.regionalOptions[&quot;&quot;].invalidArguments;if(&quot;&quot;===(e=&quot;object&quot;==typeof e?e.toString():e+&quot;&quot;))return null;t=t||this.local.dateFormat;var n=(r=r||{}).shortYearCutoff||this.shortYearCutoff;n=&quot;string&quot;!=typeof n?n:this.today().year()%100+parseInt(n,10);for(var a=r.dayNamesShort||this.local.dayNamesShort,o=r.dayNames||this.local.dayNames,s=r.parseMonth||this.local.parseMonth,l=r.monthNumbers||this.local.monthNumbers,c=r.monthNamesShort||this.local.monthNamesShort,u=r.monthNames||this.local.monthNames,f=-1,h=-1,p=-1,d=-1,g=-1,m=!1,v=!1,y=function(e,r){for(var n=1;A+n&lt;t.length&amp;&amp;t.charAt(A+n)===e;)n++;return A+=n-1,Math.floor(n/(r||1))&gt;1},x=function(t,r){var n=y(t,r),a=[2,3,n?4:2,n?4:2,10,11,20][&quot;oyYJ@!&quot;.indexOf(t)+1],o=new RegExp(&quot;^-?\\d{1,&quot;+a+&quot;}&quot;),s=e.substring(M).match(o);if(!s)throw(i.local.missingNumberAt||i.regionalOptions[&quot;&quot;].missingNumberAt).replace(/\{0\}/,M);return M+=s[0].length,parseInt(s[0],10)},b=this,_=function(){if(&quot;function&quot;==typeof l){y(&quot;m&quot;);var t=l.call(b,e.substring(M));return M+=t.length,t}return x(&quot;m&quot;)},w=function(t,r,n,a){for(var o=y(t,a)?n:r,s=0;s&lt;o.length;s++)if(e.substr(M,o[s].length).toLowerCase()===o[s].toLowerCase())return M+=o[s].length,s+b.minMonth;throw(i.local.unknownNameAt||i.regionalOptions[&quot;&quot;].unknownNameAt).replace(/\{0\}/,M)},T=function(){if(&quot;function&quot;==typeof u){var t=y(&quot;M&quot;)?u.call(b,e.substring(M)):c.call(b,e.substring(M));return M+=t.length,t}return w(&quot;M&quot;,c,u)},k=function(){if(e.charAt(M)!==t.charAt(A))throw(i.local.unexpectedLiteralAt||i.regionalOptions[&quot;&quot;].unexpectedLiteralAt).replace(/\{0\}/,M);M++},M=0,A=0;A&lt;t.length;A++)if(v)&quot;'&quot;!==t.charAt(A)||y(&quot;'&quot;)?k():v=!1;else switch(t.charAt(A)){case&quot;d&quot;:d=x(&quot;d&quot;);break;case&quot;D&quot;:w(&quot;D&quot;,a,o);break;case&quot;o&quot;:g=x(&quot;o&quot;);break;case&quot;w&quot;:x(&quot;w&quot;);break;case&quot;m&quot;:p=_();break;case&quot;M&quot;:p=T();break;case&quot;y&quot;:var S=A;m=!y(&quot;y&quot;,2),A=S,h=x(&quot;y&quot;,2);break;case&quot;Y&quot;:h=x(&quot;Y&quot;,2);break;case&quot;J&quot;:f=x(&quot;J&quot;)+.5,&quot;.&quot;===e.charAt(M)&amp;&amp;(M++,x(&quot;J&quot;));break;case&quot;@&quot;:f=x(&quot;@&quot;)/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case&quot;!&quot;:f=x(&quot;!&quot;)/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case&quot;*&quot;:M=e.length;break;case&quot;'&quot;:y(&quot;'&quot;)?k():v=!0;break;default:k()}if(M&lt;e.length)throw i.local.unexpectedText||i.regionalOptions[&quot;&quot;].unexpectedText;if(-1===h?h=this.today().year():h&lt;100&amp;&amp;m&amp;&amp;(h+=-1===n?1900:this.today().year()-this.today().year()%100-(h&lt;=n?0:100)),&quot;string&quot;==typeof p&amp;&amp;(p=s.call(this,h,p)),g&gt;-1){p=1,d=g;for(var E=this.daysInMonth(h,p);d&gt;E;E=this.daysInMonth(h,p))p++,d-=E}return f&gt;-1?this.fromJD(f):this.newDate(h,p,d)},determineDate:function(t,e,r,n,i){r&amp;&amp;&quot;object&quot;!=typeof r&amp;&amp;(i=n,n=r,r=null),&quot;string&quot;!=typeof n&amp;&amp;(i=n,n=&quot;&quot;);var a=this;return e=e?e.newDate():null,t=null==t?e:&quot;string&quot;==typeof t?function(t){try{return a.parseDate(n,t,i)}catch(t){}for(var e=((t=t.toLowerCase()).match(/^c/)&amp;&amp;r?r.newDate():null)||a.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,s=o.exec(t);s;)e.add(parseInt(s[1],10),s[2]||&quot;d&quot;),s=o.exec(t);return e}(t):&quot;number&quot;==typeof t?isNaN(t)||t===1/0||t===-1/0?e:a.today().add(t,&quot;d&quot;):a.newDate(t)}})},{&quot;./main&quot;:621,&quot;object-assign&quot;:499}],623:[function(t,e,r){e.exports=t(&quot;cwise-compiler&quot;)({args:[&quot;array&quot;,{offset:[1],array:0},&quot;scalar&quot;,&quot;scalar&quot;,&quot;index&quot;],pre:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},post:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},body:{body:&quot;{\n        var _inline_1_da = _inline_1_arg0_ - _inline_1_arg3_\n        var _inline_1_db = _inline_1_arg1_ - _inline_1_arg3_\n        if((_inline_1_da &gt;= 0) !== (_inline_1_db &gt;= 0)) {\n          _inline_1_arg2_.push(_inline_1_arg4_[0] + 0.5 + 0.5 * (_inline_1_da + _inline_1_db) / (_inline_1_da - _inline_1_db))\n        }\n      }&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg2_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg3_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg4_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[],localVars:[&quot;_inline_1_da&quot;,&quot;_inline_1_db&quot;]},funcName:&quot;zeroCrossings&quot;})},{&quot;cwise-compiler&quot;:151}],624:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=[];return e=+e||0,n(t.hi(t.shape[0]-1),r,e),r};var n=t(&quot;./lib/zc-core&quot;)},{&quot;./lib/zc-core&quot;:623}],625:[function(t,e,r){&quot;use strict&quot;;e.exports=[{path:&quot;&quot;,backoff:0},{path:&quot;M-2.4,-3V3L0.6,0Z&quot;,backoff:.6},{path:&quot;M-3.7,-2.5V2.5L1.3,0Z&quot;,backoff:1.3},{path:&quot;M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z&quot;,backoff:1.55},{path:&quot;M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z&quot;,backoff:1.6},{path:&quot;M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z&quot;,backoff:2},{path:&quot;M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z&quot;,backoff:0,noRotate:!0},{path:&quot;M2,2V-2H-2V2Z&quot;,backoff:0,noRotate:!0}]},{}],626:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./arrow_paths&quot;),i=t(&quot;../../plots/font_attributes&quot;),a=t(&quot;../../plots/cartesian/constants&quot;),o=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=o(&quot;annotation&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},text:{valType:&quot;string&quot;,editType:&quot;calc+arraydraw&quot;},textangle:{valType:&quot;angle&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},font:i({editType:&quot;calc+arraydraw&quot;,colorEditType:&quot;arraydraw&quot;}),width:{valType:&quot;number&quot;,min:1,dflt:null,editType:&quot;calc+arraydraw&quot;},height:{valType:&quot;number&quot;,min:1,dflt:null,editType:&quot;calc+arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;center&quot;,editType:&quot;arraydraw&quot;},valign:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;,editType:&quot;arraydraw&quot;},bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},bordercolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},borderpad:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc+arraydraw&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc+arraydraw&quot;},showarrow:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},arrowcolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},arrowhead:{valType:&quot;integer&quot;,min:0,max:n.length,dflt:1,editType:&quot;arraydraw&quot;},startarrowhead:{valType:&quot;integer&quot;,min:0,max:n.length,dflt:1,editType:&quot;arraydraw&quot;},arrowside:{valType:&quot;flaglist&quot;,flags:[&quot;end&quot;,&quot;start&quot;],extras:[&quot;none&quot;],dflt:&quot;end&quot;,editType:&quot;arraydraw&quot;},arrowsize:{valType:&quot;number&quot;,min:.3,dflt:1,editType:&quot;calc+arraydraw&quot;},startarrowsize:{valType:&quot;number&quot;,min:.3,dflt:1,editType:&quot;calc+arraydraw&quot;},arrowwidth:{valType:&quot;number&quot;,min:.1,editType:&quot;calc+arraydraw&quot;},standoff:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc+arraydraw&quot;},startstandoff:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc+arraydraw&quot;},ax:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},ay:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},axref:{valType:&quot;enumerated&quot;,dflt:&quot;pixel&quot;,values:[&quot;pixel&quot;,a.idRegex.x.toString()],editType:&quot;calc&quot;},ayref:{valType:&quot;enumerated&quot;,dflt:&quot;pixel&quot;,values:[&quot;pixel&quot;,a.idRegex.y.toString()],editType:&quot;calc&quot;},xref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,a.idRegex.x.toString()],editType:&quot;calc&quot;},x:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;auto&quot;,editType:&quot;calc+arraydraw&quot;},xshift:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},yref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,a.idRegex.y.toString()],editType:&quot;calc&quot;},y:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;auto&quot;,editType:&quot;calc+arraydraw&quot;},yshift:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},clicktoshow:{valType:&quot;enumerated&quot;,values:[!1,&quot;onoff&quot;,&quot;onout&quot;],dflt:!1,editType:&quot;arraydraw&quot;},xclick:{valType:&quot;any&quot;,editType:&quot;arraydraw&quot;},yclick:{valType:&quot;any&quot;,editType:&quot;arraydraw&quot;},hovertext:{valType:&quot;string&quot;,editType:&quot;arraydraw&quot;},hoverlabel:{bgcolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},bordercolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},font:i({editType:&quot;arraydraw&quot;}),editType:&quot;arraydraw&quot;},captureevents:{valType:&quot;boolean&quot;,editType:&quot;arraydraw&quot;},editType:&quot;calc&quot;,_deprecated:{ref:{valType:&quot;string&quot;,editType:&quot;calc&quot;}}})},{&quot;../../constants/axis_placeable_objects&quot;:746,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834,&quot;../../plots/font_attributes&quot;:856,&quot;./arrow_paths&quot;:625}],627:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;./draw&quot;).draw;function o(t){var e=t._fullLayout;n.filterVisible(e.annotations).forEach((function(e){var r=i.getFromId(t,e.xref),n=i.getFromId(t,e.yref),a=i.getRefType(e.xref),o=i.getRefType(e.yref);e._extremes={},&quot;range&quot;===a&amp;&amp;s(e,r),&quot;range&quot;===o&amp;&amp;s(e,n)}))}function s(t,e){var r,n=e._id,a=n.charAt(0),o=t[a],s=t[&quot;a&quot;+a],l=t[a+&quot;ref&quot;],c=t[&quot;a&quot;+a+&quot;ref&quot;],u=t[&quot;_&quot;+a+&quot;padplus&quot;],f=t[&quot;_&quot;+a+&quot;padminus&quot;],h={x:1,y:-1}[a]*t[a+&quot;shift&quot;],p=3*t.arrowsize*t.arrowwidth||0,d=p+h,g=p-h,m=3*t.startarrowsize*t.arrowwidth||0,v=m+h,y=m-h;if(c===l){var x=i.findExtremes(e,[e.r2c(o)],{ppadplus:d,ppadminus:g}),b=i.findExtremes(e,[e.r2c(s)],{ppadplus:Math.max(u,v),ppadminus:Math.max(f,y)});r={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else v=s?v+s:v,y=s?y-s:y,r=i.findExtremes(e,[e.r2c(o)],{ppadplus:Math.max(u,d,v),ppadminus:Math.max(f,g,y)});t._extremes[n]=r}e.exports=function(t){var e=t._fullLayout;if(n.filterVisible(e.annotations).length&amp;&amp;t._fullData.length)return n.syncOrAsync([a,o],t)}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./draw&quot;:632}],628:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plot_api/plot_template&quot;).arrayEditor;function o(t,e){var r,n,i,a,o,l,c,u=t._fullLayout.annotations,f=[],h=[],p=[],d=(e||[]).length;for(r=0;r&lt;u.length;r++)if(a=(i=u[r]).clicktoshow){for(n=0;n&lt;d;n++)if(l=(o=e[n]).xaxis,c=o.yaxis,l._id===i.xref&amp;&amp;c._id===i.yref&amp;&amp;l.d2r(o.x)===s(i._xclick,l)&amp;&amp;c.d2r(o.y)===s(i._yclick,c)){(i.visible?&quot;onout&quot;===a?h:p:f).push(r);break}n===d&amp;&amp;i.visible&amp;&amp;&quot;onout&quot;===a&amp;&amp;h.push(r)}return{on:f,off:h,explicitOff:p}}function s(t,e){return&quot;log&quot;===e.type?e.l2r(t):e.d2r(t)}e.exports={hasClickToShow:function(t,e){var r=o(t,e);return r.on.length&gt;0||r.explicitOff.length&gt;0},onClick:function(t,e){var r,s,l=o(t,e),c=l.on,u=l.off.concat(l.explicitOff),f={},h=t._fullLayout.annotations;if(!c.length&amp;&amp;!u.length)return;for(r=0;r&lt;c.length;r++)(s=a(t.layout,&quot;annotations&quot;,h[c[r]])).modifyItem(&quot;visible&quot;,!0),n.extendFlat(f,s.getUpdateObj());for(r=0;r&lt;u.length;r++)(s=a(t.layout,&quot;annotations&quot;,h[u[r]])).modifyItem(&quot;visible&quot;,!1),n.extendFlat(f,s.getUpdateObj());return i.call(&quot;update&quot;,t,{},f)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../registry&quot;:911}],629:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;);e.exports=function(t,e,r,a){a(&quot;opacity&quot;);var o=a(&quot;bgcolor&quot;),s=a(&quot;bordercolor&quot;),l=i.opacity(s);a(&quot;borderpad&quot;);var c=a(&quot;borderwidth&quot;),u=a(&quot;showarrow&quot;);if(a(&quot;text&quot;,u?&quot; &quot;:r._dfltTitle.annotation),a(&quot;textangle&quot;),n.coerceFont(a,&quot;font&quot;,r.font),a(&quot;width&quot;),a(&quot;align&quot;),a(&quot;height&quot;)&amp;&amp;a(&quot;valign&quot;),u){var f,h,p=a(&quot;arrowside&quot;);-1!==p.indexOf(&quot;end&quot;)&amp;&amp;(f=a(&quot;arrowhead&quot;),h=a(&quot;arrowsize&quot;)),-1!==p.indexOf(&quot;start&quot;)&amp;&amp;(a(&quot;startarrowhead&quot;,f),a(&quot;startarrowsize&quot;,h)),a(&quot;arrowcolor&quot;,l?e.bordercolor:i.defaultLine),a(&quot;arrowwidth&quot;,2*(l&amp;&amp;c||1)),a(&quot;standoff&quot;),a(&quot;startstandoff&quot;)}var d=a(&quot;hovertext&quot;),g=r.hoverlabel||{};if(d){var m=a(&quot;hoverlabel.bgcolor&quot;,g.bgcolor||(i.opacity(o)?i.rgb(o):i.defaultLine)),v=a(&quot;hoverlabel.bordercolor&quot;,g.bordercolor||i.contrast(m));n.coerceFont(a,&quot;hoverlabel.font&quot;,{family:g.font.family,size:g.font.size,color:g.font.color||v})}a(&quot;captureevents&quot;,!!d)}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643}],630:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib/to_log_range&quot;);e.exports=function(t,e,r,a){e=e||{};var o=&quot;log&quot;===r&amp;&amp;&quot;linear&quot;===e.type,s=&quot;linear&quot;===r&amp;&amp;&quot;log&quot;===e.type;if(o||s)for(var l,c,u=t._fullLayout.annotations,f=e._id.charAt(0),h=0;h&lt;u.length;h++)l=u[h],c=&quot;annotations[&quot;+h+&quot;].&quot;,l[f+&quot;ref&quot;]===e._id&amp;&amp;p(f),l[&quot;a&quot;+f+&quot;ref&quot;]===e._id&amp;&amp;p(&quot;a&quot;+f);function p(t){var r=l[t],s=null;s=o?i(r,e.range):Math.pow(10,r),n(s)||(s=null),a(c+t,s)}}},{&quot;../../lib/to_log_range&quot;:805,&quot;fast-isnumeric&quot;:241}],631:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./common_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r){function a(r,i){return n.coerce(t,e,s,r,i)}var l=a(&quot;visible&quot;),c=a(&quot;clicktoshow&quot;);if(l||c){o(t,e,r,a);for(var u=e.showarrow,f=[&quot;x&quot;,&quot;y&quot;],h=[-10,-30],p={_fullLayout:r},d=0;d&lt;2;d++){var g=f[d],m=i.coerceRef(t,e,p,g,&quot;&quot;,&quot;paper&quot;);if(&quot;paper&quot;!==m)i.getFromId(p,m)._annIndices.push(e._index);if(i.coercePosition(e,p,a,m,g,.5),u){var v=&quot;a&quot;+g,y=i.coerceRef(t,e,p,v,&quot;pixel&quot;,[&quot;pixel&quot;,&quot;paper&quot;]);&quot;pixel&quot;!==y&amp;&amp;y!==m&amp;&amp;(y=e[v]=&quot;pixel&quot;);var x=&quot;pixel&quot;===y?h[d]:.4;i.coercePosition(e,p,a,y,v,x)}a(g+&quot;anchor&quot;),a(g+&quot;shift&quot;)}if(n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),u&amp;&amp;n.noneOrAll(t,e,[&quot;ax&quot;,&quot;ay&quot;]),c){var b=a(&quot;xclick&quot;),_=a(&quot;yclick&quot;);e._xclick=void 0===b?e.x:i.cleanPosition(b,p,e.xref),e._yclick=void 0===_?e.y:i.cleanPosition(_,p,e.yref)}}}e.exports=function(t,e){a(t,e,{name:&quot;annotations&quot;,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:626,&quot;./common_defaults&quot;:629}],632:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;../color&quot;),u=t(&quot;../drawing&quot;),f=t(&quot;../fx&quot;),h=t(&quot;../../lib/svg_text_utils&quot;),p=t(&quot;../../lib/setcursor&quot;),d=t(&quot;../dragelement&quot;),g=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,m=t(&quot;./draw_arrow_head&quot;);function v(t,e){var r=t._fullLayout.annotations[e]||{},n=l.getFromId(t,r.xref),i=l.getFromId(t,r.yref);n&amp;&amp;n.setScale(),i&amp;&amp;i.setScale(),x(t,r,e,!1,n,i)}function y(t,e,r,n,i){var a=i[r],o=i[r+&quot;ref&quot;],s=-1!==r.indexOf(&quot;y&quot;),c=&quot;domain&quot;===l.getRefType(o),u=s?n.h:n.w;return t?c?a+(s?-e:e)/t._length:t.p2r(t.r2p(a)+e):a+(s?-e:e)/u}function x(t,e,r,a,v,x){var b,_,w=t._fullLayout,T=t._fullLayout._size,k=t._context.edits;a?(b=&quot;annotation-&quot;+a,_=a+&quot;.annotations&quot;):(b=&quot;annotation&quot;,_=&quot;annotations&quot;);var M=g(t.layout,_,e),A=M.modifyBase,S=M.modifyItem,E=M.getUpdateObj;w._infolayer.selectAll(&quot;.&quot;+b+'[data-index=&quot;'+r+'&quot;]').remove();var C=&quot;clip&quot;+w._uid+&quot;_ann&quot;+r;if(e._input&amp;&amp;!1!==e.visible){var L={x:{},y:{}},I=+e.textangle||0,P=w._infolayer.append(&quot;g&quot;).classed(b,!0).attr(&quot;data-index&quot;,String(r)).style(&quot;opacity&quot;,e.opacity),z=P.append(&quot;g&quot;).classed(&quot;annotation-text-g&quot;,!0),O=k[e.showarrow?&quot;annotationTail&quot;:&quot;annotationPosition&quot;],D=e.captureevents||k.annotationText||O,R=z.append(&quot;g&quot;).style(&quot;pointer-events&quot;,D?&quot;all&quot;:null).call(p,&quot;pointer&quot;).on(&quot;click&quot;,(function(){t._dragging=!1,t.emit(&quot;plotly_clickannotation&quot;,Y(n.event))}));e.hovertext&amp;&amp;R.on(&quot;mouseover&quot;,(function(){var r=e.hoverlabel,n=r.font,i=this.getBoundingClientRect(),a=t.getBoundingClientRect();f.loneHover({x0:i.left-a.left,x1:i.right-a.left,y:(i.top+i.bottom)/2-a.top,text:e.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:w._hoverlayer.node(),outerContainer:w._paper.node(),gd:t})})).on(&quot;mouseout&quot;,(function(){f.loneUnhover(w._hoverlayer.node())}));var F=e.borderwidth,B=e.borderpad,N=F+B,j=R.append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bg&quot;).style(&quot;stroke-width&quot;,F+&quot;px&quot;).call(c.stroke,e.bordercolor).call(c.fill,e.bgcolor),U=e.width||e.height,V=w._topclips.selectAll(&quot;#&quot;+C).data(U?[0]:[]);V.enter().append(&quot;clipPath&quot;).classed(&quot;annclip&quot;,!0).attr(&quot;id&quot;,C).append(&quot;rect&quot;),V.exit().remove();var q=e.font,H=w._meta?o.templateString(e.text,w._meta):e.text,G=R.append(&quot;text&quot;).classed(&quot;annotation-text&quot;,!0).text(H);k.annotationText?G.call(h.makeEditable,{delegate:R,gd:t}).call(W).on(&quot;edit&quot;,(function(r){e.text=r,this.call(W),S(&quot;text&quot;,r),v&amp;&amp;v.autorange&amp;&amp;A(v._name+&quot;.autorange&quot;,!0),x&amp;&amp;x.autorange&amp;&amp;A(x._name+&quot;.autorange&quot;,!0),i.call(&quot;_guiRelayout&quot;,t,E())})):G.call(W)}else n.selectAll(&quot;#&quot;+C).remove();function Y(t){var n={index:r,annotation:e._input,fullAnnotation:e,event:t};return a&amp;&amp;(n.subplotId=a),n}function W(r){return r.call(u.font,q).attr({&quot;text-anchor&quot;:{left:&quot;start&quot;,right:&quot;end&quot;}[e.align]||&quot;middle&quot;}),h.convertToTspans(r,t,X),r}function X(){var r=G.selectAll(&quot;a&quot;);1===r.size()&amp;&amp;r.text()===G.text()&amp;&amp;R.insert(&quot;a&quot;,&quot;:first-child&quot;).attr({&quot;xlink:xlink:href&quot;:r.attr(&quot;xlink:href&quot;),&quot;xlink:xlink:show&quot;:r.attr(&quot;xlink:show&quot;)}).style({cursor:&quot;pointer&quot;}).node().appendChild(j.node());var n=R.select(&quot;.annotation-text-math-group&quot;),f=!n.empty(),g=u.bBox((f?n:G).node()),b=g.width,_=g.height,M=e.width||b,D=e.height||_,B=Math.round(M+2*N),q=Math.round(D+2*N);function H(t,e){return&quot;auto&quot;===e&amp;&amp;(e=t&lt;1/3?&quot;left&quot;:t&gt;2/3?&quot;right&quot;:&quot;center&quot;),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[e]}for(var W=!1,X=[&quot;x&quot;,&quot;y&quot;],Z=0;Z&lt;X.length;Z++){var J,K,Q,$,tt,et=X[Z],rt=e[et+&quot;ref&quot;]||et,nt=e[&quot;a&quot;+et+&quot;ref&quot;],it={x:v,y:x}[et],at=(I+(&quot;x&quot;===et?0:-90))*Math.PI/180,ot=B*Math.cos(at),st=q*Math.sin(at),lt=Math.abs(ot)+Math.abs(st),ct=e[et+&quot;anchor&quot;],ut=e[et+&quot;shift&quot;]*(&quot;x&quot;===et?1:-1),ft=L[et],ht=l.getRefType(rt);if(it&amp;&amp;&quot;domain&quot;!==ht){var pt=it.r2fraction(e[et]);(pt&lt;0||pt&gt;1)&amp;&amp;(nt===rt?((pt=it.r2fraction(e[&quot;a&quot;+et]))&lt;0||pt&gt;1)&amp;&amp;(W=!0):W=!0),J=it._offset+it.r2p(e[et]),$=.5}else{var dt=&quot;domain&quot;===ht;&quot;x&quot;===et?(Q=e[et],J=dt?it._offset+it._length*Q:J=T.l+T.w*Q):(Q=1-e[et],J=dt?it._offset+it._length*Q:J=T.t+T.h*Q),$=e.showarrow?.5:Q}if(e.showarrow){ft.head=J;var gt=e[&quot;a&quot;+et];if(tt=ot*H(.5,e.xanchor)-st*H(.5,e.yanchor),nt===rt){var mt=l.getRefType(nt);&quot;domain&quot;===mt?(&quot;y&quot;===et&amp;&amp;(gt=1-gt),ft.tail=it._offset+it._length*gt):&quot;paper&quot;===mt?&quot;y&quot;===et?(gt=1-gt,ft.tail=T.t+T.h*gt):ft.tail=T.l+T.w*gt:ft.tail=it._offset+it.r2p(gt),K=tt}else ft.tail=J+gt,K=tt+gt;ft.text=ft.tail+tt;var vt=w[&quot;x&quot;===et?&quot;width&quot;:&quot;height&quot;];if(&quot;paper&quot;===rt&amp;&amp;(ft.head=o.constrain(ft.head,1,vt-1)),&quot;pixel&quot;===nt){var yt=-Math.max(ft.tail-3,ft.text),xt=Math.min(ft.tail+3,ft.text)-vt;yt&gt;0?(ft.tail+=yt,ft.text+=yt):xt&gt;0&amp;&amp;(ft.tail-=xt,ft.text-=xt)}ft.tail+=ut,ft.head+=ut}else K=tt=lt*H($,ct),ft.text=J+tt;ft.text+=ut,tt+=ut,K+=ut,e[&quot;_&quot;+et+&quot;padplus&quot;]=lt/2+K,e[&quot;_&quot;+et+&quot;padminus&quot;]=lt/2-K,e[&quot;_&quot;+et+&quot;size&quot;]=lt,e[&quot;_&quot;+et+&quot;shift&quot;]=tt}if(W)R.remove();else{var bt=0,_t=0;if(&quot;left&quot;!==e.align&amp;&amp;(bt=(M-b)*(&quot;center&quot;===e.align?.5:1)),&quot;top&quot;!==e.valign&amp;&amp;(_t=(D-_)*(&quot;middle&quot;===e.valign?.5:1)),f)n.select(&quot;svg&quot;).attr({x:N+bt-1,y:N+_t}).call(u.setClipUrl,U?C:null,t);else{var wt=N+_t-g.top,Tt=N+bt-g.left;G.call(h.positionText,Tt,wt).call(u.setClipUrl,U?C:null,t)}V.select(&quot;rect&quot;).call(u.setRect,N,N,M,D),j.call(u.setRect,F/2,F/2,B-F,q-F),R.call(u.setTranslate,Math.round(L.x.text-B/2),Math.round(L.y.text-q/2)),z.attr({transform:&quot;rotate(&quot;+I+&quot;,&quot;+L.x.text+&quot;,&quot;+L.y.text+&quot;)&quot;});var kt,Mt=function(r,n){P.selectAll(&quot;.annotation-arrow-g&quot;).remove();var l=L.x.head,f=L.y.head,h=L.x.tail+r,p=L.y.tail+n,g=L.x.text+r,b=L.y.text+n,_=o.rotationXYMatrix(I,g,b),w=o.apply2DTransform(_),M=o.apply2DTransform2(_),C=+j.attr(&quot;width&quot;),O=+j.attr(&quot;height&quot;),D=g-.5*C,F=D+C,B=b-.5*O,N=B+O,U=[[D,B,D,N],[D,N,F,N],[F,N,F,B],[F,B,D,B]].map(M);if(!U.reduce((function(t,e){return t^!!o.segmentsIntersect(l,f,l+1e6,f+1e6,e[0],e[1],e[2],e[3])}),!1)){U.forEach((function(t){var e=o.segmentsIntersect(h,p,l,f,t[0],t[1],t[2],t[3]);e&amp;&amp;(h=e.x,p=e.y)}));var V=e.arrowwidth,q=e.arrowcolor,H=e.arrowside,G=P.append(&quot;g&quot;).style({opacity:c.opacity(q)}).classed(&quot;annotation-arrow-g&quot;,!0),Y=G.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M&quot;+h+&quot;,&quot;+p+&quot;L&quot;+l+&quot;,&quot;+f).style(&quot;stroke-width&quot;,V+&quot;px&quot;).call(c.stroke,c.rgb(q));if(m(Y,H,e),k.annotationPosition&amp;&amp;Y.node().parentNode&amp;&amp;!a){var W=l,X=f;if(e.standoff){var Z=Math.sqrt(Math.pow(l-h,2)+Math.pow(f-p,2));W+=e.standoff*(h-l)/Z,X+=e.standoff*(p-f)/Z}var J,K,Q=G.append(&quot;path&quot;).classed(&quot;annotation-arrow&quot;,!0).classed(&quot;anndrag&quot;,!0).classed(&quot;cursor-move&quot;,!0).attr({d:&quot;M3,3H-3V-3H3ZM0,0L&quot;+(h-W)+&quot;,&quot;+(p-X),transform:s(W,X)}).style(&quot;stroke-width&quot;,V+6+&quot;px&quot;).call(c.stroke,&quot;rgba(0,0,0,0)&quot;).call(c.fill,&quot;rgba(0,0,0,0)&quot;);d.init({element:Q.node(),gd:t,prepFn:function(){var t=u.getTranslate(R);J=t.x,K=t.y,v&amp;&amp;v.autorange&amp;&amp;A(v._name+&quot;.autorange&quot;,!0),x&amp;&amp;x.autorange&amp;&amp;A(x._name+&quot;.autorange&quot;,!0)},moveFn:function(t,r){var n=w(J,K),i=n[0]+t,a=n[1]+r;R.call(u.setTranslate,i,a),S(&quot;x&quot;,y(v,t,&quot;x&quot;,T,e)),S(&quot;y&quot;,y(x,r,&quot;y&quot;,T,e)),e.axref===e.xref&amp;&amp;S(&quot;ax&quot;,y(v,t,&quot;ax&quot;,T,e)),e.ayref===e.yref&amp;&amp;S(&quot;ay&quot;,y(x,r,&quot;ay&quot;,T,e)),G.attr(&quot;transform&quot;,s(t,r)),z.attr({transform:&quot;rotate(&quot;+I+&quot;,&quot;+i+&quot;,&quot;+a+&quot;)&quot;})},doneFn:function(){i.call(&quot;_guiRelayout&quot;,t,E());var e=document.querySelector(&quot;.js-notes-box-panel&quot;);e&amp;&amp;e.redraw(e.selectedObj)}})}}};if(e.showarrow&amp;&amp;Mt(0,0),O)d.init({element:R.node(),gd:t,prepFn:function(){kt=z.attr(&quot;transform&quot;)},moveFn:function(t,r){var n=&quot;pointer&quot;;if(e.showarrow)e.axref===e.xref?S(&quot;ax&quot;,y(v,t,&quot;ax&quot;,T,e)):S(&quot;ax&quot;,e.ax+t),e.ayref===e.yref?S(&quot;ay&quot;,y(x,r,&quot;ay&quot;,T.w,e)):S(&quot;ay&quot;,e.ay+r),Mt(t,r);else{if(a)return;var i,o;if(v)i=y(v,t,&quot;x&quot;,T,e);else{var l=e._xsize/T.w,c=e.x+(e._xshift-e.xshift)/T.w-l/2;i=d.align(c+t/T.w,l,0,1,e.xanchor)}if(x)o=y(x,r,&quot;y&quot;,T,e);else{var u=e._ysize/T.h,f=e.y-(e._yshift+e.yshift)/T.h-u/2;o=d.align(f-r/T.h,u,0,1,e.yanchor)}S(&quot;x&quot;,i),S(&quot;y&quot;,o),v&amp;&amp;x||(n=d.getCursor(v?.5:i,x?.5:o,e.xanchor,e.yanchor))}z.attr({transform:s(t,r)+kt}),p(R,n)},clickFn:function(r,n){e.captureevents&amp;&amp;t.emit(&quot;plotly_clickannotation&quot;,Y(n))},doneFn:function(){p(R),i.call(&quot;_guiRelayout&quot;,t,E());var e=document.querySelector(&quot;.js-notes-box-panel&quot;);e&amp;&amp;e.redraw(e.selectedObj)}})}}}e.exports={draw:function(t){var e=t._fullLayout;e._infolayer.selectAll(&quot;.annotation&quot;).remove();for(var r=0;r&lt;e.annotations.length;r++)e.annotations[r].visible&amp;&amp;v(t,r);return a.previousPromises(t)},drawOne:v,drawRaw:x}},{&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../fx&quot;:683,&quot;./draw_arrow_head&quot;:633,d3:169}],633:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../color&quot;),a=t(&quot;./arrow_paths&quot;),o=t(&quot;../../lib&quot;),s=o.strScale,l=o.strRotate,c=o.strTranslate;e.exports=function(t,e,r){var o,u,f,h,p=t.node(),d=a[r.arrowhead||0],g=a[r.startarrowhead||0],m=(r.arrowwidth||1)*(r.arrowsize||1),v=(r.arrowwidth||1)*(r.startarrowsize||1),y=e.indexOf(&quot;start&quot;)&gt;=0,x=e.indexOf(&quot;end&quot;)&gt;=0,b=d.backoff*m+r.standoff,_=g.backoff*v+r.startstandoff;if(&quot;line&quot;===p.nodeName){o={x:+t.attr(&quot;x1&quot;),y:+t.attr(&quot;y1&quot;)},u={x:+t.attr(&quot;x2&quot;),y:+t.attr(&quot;y2&quot;)};var w=o.x-u.x,T=o.y-u.y;if(h=(f=Math.atan2(T,w))+Math.PI,b&amp;&amp;_&amp;&amp;b+_&gt;Math.sqrt(w*w+T*T))return void O();if(b){if(b*b&gt;w*w+T*T)return void O();var k=b*Math.cos(f),M=b*Math.sin(f);u.x+=k,u.y+=M,t.attr({x2:u.x,y2:u.y})}if(_){if(_*_&gt;w*w+T*T)return void O();var A=_*Math.cos(f),S=_*Math.sin(f);o.x-=A,o.y-=S,t.attr({x1:o.x,y1:o.y})}}else if(&quot;path&quot;===p.nodeName){var E=p.getTotalLength(),C=&quot;&quot;;if(E&lt;b+_)return void O();var L=p.getPointAtLength(0),I=p.getPointAtLength(.1);f=Math.atan2(L.y-I.y,L.x-I.x),o=p.getPointAtLength(Math.min(_,E)),C=&quot;0px,&quot;+_+&quot;px,&quot;;var P=p.getPointAtLength(E),z=p.getPointAtLength(E-.1);h=Math.atan2(P.y-z.y,P.x-z.x),u=p.getPointAtLength(Math.max(0,E-b)),C+=E-(C?_+b:b)+&quot;px,&quot;+E+&quot;px&quot;,t.style(&quot;stroke-dasharray&quot;,C)}function O(){t.style(&quot;stroke-dasharray&quot;,&quot;0px,100px&quot;)}function D(e,a,o,u){e.path&amp;&amp;(e.noRotate&amp;&amp;(o=0),n.select(p.parentNode).append(&quot;path&quot;).attr({class:t.attr(&quot;class&quot;),d:e.path,transform:c(a.x,a.y)+l(180*o/Math.PI)+s(u)}).style({fill:i.rgb(r.arrowcolor),&quot;stroke-width&quot;:0}))}y&amp;&amp;D(g,o,f,v),x&amp;&amp;D(d,u,h,m)}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;./arrow_paths&quot;:625,d3:169}],634:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;),i=t(&quot;./click&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;annotations&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;annotations&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:i.hasClickToShow,onClick:i.onClick,convertCoords:t(&quot;./convert_coords&quot;)}},{&quot;../../plots/cartesian/include_components&quot;:840,&quot;./attributes&quot;:626,&quot;./calc_autorange&quot;:627,&quot;./click&quot;:628,&quot;./convert_coords&quot;:630,&quot;./defaults&quot;:631,&quot;./draw&quot;:632}],635:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/attributes&quot;),i=t(&quot;../../plot_api/edit_types&quot;).overrideAll,a=t(&quot;../../plot_api/plot_template&quot;).templatedArray;e.exports=i(a(&quot;annotation&quot;,{visible:n.visible,x:{valType:&quot;any&quot;},y:{valType:&quot;any&quot;},z:{valType:&quot;any&quot;},ax:{valType:&quot;number&quot;},ay:{valType:&quot;number&quot;},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,startarrowhead:n.startarrowhead,arrowside:n.arrowside,arrowsize:n.arrowsize,startarrowsize:n.startarrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,startstandoff:n.startstandoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents}),&quot;calc&quot;,&quot;from-root&quot;)},{&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../annotations/attributes&quot;:626}],636:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;);function a(t,e){var r=e.fullSceneLayout.domain,a=e.fullLayout._size,o={pdata:null,type:&quot;linear&quot;,autorange:!1,range:[-1/0,1/0]};t._xa={},n.extendFlat(t._xa,o),i.setConvert(t._xa),t._xa._offset=a.l+r.x[0]*a.w,t._xa.l2p=function(){return.5*(1+t._pdata[0]/t._pdata[3])*a.w*(r.x[1]-r.x[0])},t._ya={},n.extendFlat(t._ya,o),i.setConvert(t._ya),t._ya._offset=a.t+(1-r.y[1])*a.h,t._ya.l2p=function(){return.5*(1-t._pdata[1]/t._pdata[3])*a.h*(r.y[1]-r.y[0])}}e.exports=function(t){for(var e=t.fullSceneLayout.annotations,r=0;r&lt;e.length;r++)a(e[r],t);t.fullLayout._infolayer.selectAll(&quot;.annotation-&quot;+t.id).remove()}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],637:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;../annotations/common_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r,a){function l(r,i){return n.coerce(t,e,s,r,i)}function c(t){var n=t+&quot;axis&quot;,a={_fullLayout:{}};return a._fullLayout[n]=r[n],i.coercePosition(e,a,l,t,t,.5)}l(&quot;visible&quot;)&amp;&amp;(o(t,e,a.fullLayout,l),c(&quot;x&quot;),c(&quot;y&quot;),c(&quot;z&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;]),e.xref=&quot;x&quot;,e.yref=&quot;y&quot;,e.zref=&quot;z&quot;,l(&quot;xanchor&quot;),l(&quot;yanchor&quot;),l(&quot;xshift&quot;),l(&quot;yshift&quot;),e.showarrow&amp;&amp;(e.axref=&quot;pixel&quot;,e.ayref=&quot;pixel&quot;,l(&quot;ax&quot;,-10),l(&quot;ay&quot;,-30),n.noneOrAll(t,e,[&quot;ax&quot;,&quot;ay&quot;])))}e.exports=function(t,e,r){a(t,e,{name:&quot;annotations&quot;,handleItemDefaults:l,fullLayout:r.fullLayout})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;../annotations/common_defaults&quot;:629,&quot;./attributes&quot;:635}],638:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/draw&quot;).drawRaw,i=t(&quot;../../plots/gl3d/project&quot;),a=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];e.exports=function(t){for(var e=t.fullSceneLayout,r=t.dataScale,o=e.annotations,s=0;s&lt;o.length;s++){for(var l=o[s],c=!1,u=0;u&lt;3;u++){var f=a[u],h=l[f],p=e[f+&quot;axis&quot;].r2fraction(h);if(p&lt;0||p&gt;1){c=!0;break}}c?t.fullLayout._infolayer.select(&quot;.annotation-&quot;+t.id+'[data-index=&quot;'+s+'&quot;]').remove():(l._pdata=i(t.glplot.cameraParams,[e.xaxis.r2l(l.x)*r[0],e.yaxis.r2l(l.y)*r[1],e.zaxis.r2l(l.z)*r[2]]),n(t.graphDiv,l,s,t.id,l._xa,l._ya))}}},{&quot;../../plots/gl3d/project&quot;:879,&quot;../annotations/draw&quot;:632}],639:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;annotations3d&quot;,schema:{subplots:{scene:{annotations:t(&quot;./attributes&quot;)}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),includeBasePlot:function(t,e){var r=n.subplotsRegistry.gl3d;if(!r)return;for(var a=r.attrRegex,o=Object.keys(t),s=0;s&lt;o.length;s++){var l=o[s];a.test(l)&amp;&amp;(t[l].annotations||[]).length&amp;&amp;(i.pushUnique(e._basePlotModules,r),i.pushUnique(e._subplots.gl3d,l))}},convert:t(&quot;./convert&quot;),draw:t(&quot;./draw&quot;)}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:635,&quot;./convert&quot;:636,&quot;./defaults&quot;:637,&quot;./draw&quot;:638}],640:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;world-calendars/dist/main&quot;),t(&quot;world-calendars/dist/plus&quot;),t(&quot;world-calendars/dist/calendars/chinese&quot;),t(&quot;world-calendars/dist/calendars/coptic&quot;),t(&quot;world-calendars/dist/calendars/discworld&quot;),t(&quot;world-calendars/dist/calendars/ethiopian&quot;),t(&quot;world-calendars/dist/calendars/hebrew&quot;),t(&quot;world-calendars/dist/calendars/islamic&quot;),t(&quot;world-calendars/dist/calendars/julian&quot;),t(&quot;world-calendars/dist/calendars/mayan&quot;),t(&quot;world-calendars/dist/calendars/nanakshahi&quot;),t(&quot;world-calendars/dist/calendars/nepali&quot;),t(&quot;world-calendars/dist/calendars/persian&quot;),t(&quot;world-calendars/dist/calendars/taiwan&quot;),t(&quot;world-calendars/dist/calendars/thai&quot;),t(&quot;world-calendars/dist/calendars/ummalqura&quot;)},{&quot;world-calendars/dist/calendars/chinese&quot;:607,&quot;world-calendars/dist/calendars/coptic&quot;:608,&quot;world-calendars/dist/calendars/discworld&quot;:609,&quot;world-calendars/dist/calendars/ethiopian&quot;:610,&quot;world-calendars/dist/calendars/hebrew&quot;:611,&quot;world-calendars/dist/calendars/islamic&quot;:612,&quot;world-calendars/dist/calendars/julian&quot;:613,&quot;world-calendars/dist/calendars/mayan&quot;:614,&quot;world-calendars/dist/calendars/nanakshahi&quot;:615,&quot;world-calendars/dist/calendars/nepali&quot;:616,&quot;world-calendars/dist/calendars/persian&quot;:617,&quot;world-calendars/dist/calendars/taiwan&quot;:618,&quot;world-calendars/dist/calendars/thai&quot;:619,&quot;world-calendars/dist/calendars/ummalqura&quot;:620,&quot;world-calendars/dist/main&quot;:621,&quot;world-calendars/dist/plus&quot;:622}],641:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./calendars&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;),o=a.EPOCHJD,s=a.ONEDAY,l={valType:&quot;enumerated&quot;,values:Object.keys(n.calendars),editType:&quot;calc&quot;,dflt:&quot;gregorian&quot;},c=function(t,e,r,n){var a={};return a[r]=l,i.coerce(t,e,a,r,n)},u={d:{0:&quot;dd&quot;,&quot;-&quot;:&quot;d&quot;},e:{0:&quot;d&quot;,&quot;-&quot;:&quot;d&quot;},a:{0:&quot;D&quot;,&quot;-&quot;:&quot;D&quot;},A:{0:&quot;DD&quot;,&quot;-&quot;:&quot;DD&quot;},j:{0:&quot;oo&quot;,&quot;-&quot;:&quot;o&quot;},W:{0:&quot;ww&quot;,&quot;-&quot;:&quot;w&quot;},m:{0:&quot;mm&quot;,&quot;-&quot;:&quot;m&quot;},b:{0:&quot;M&quot;,&quot;-&quot;:&quot;M&quot;},B:{0:&quot;MM&quot;,&quot;-&quot;:&quot;MM&quot;},y:{0:&quot;yy&quot;,&quot;-&quot;:&quot;yy&quot;},Y:{0:&quot;yyyy&quot;,&quot;-&quot;:&quot;yyyy&quot;},U:&quot;##&quot;,w:&quot;##&quot;,c:{0:&quot;D M d %X yyyy&quot;,&quot;-&quot;:&quot;D M d %X yyyy&quot;},x:{0:&quot;mm/dd/yyyy&quot;,&quot;-&quot;:&quot;mm/dd/yyyy&quot;}};var f={};function h(t){var e=f[t];return e||(e=f[t]=n.instance(t))}function p(t){return i.extendFlat({},l,{description:t})}function d(t){return&quot;Sets the calendar system to use with `&quot;+t+&quot;` date data.&quot;}var g={xcalendar:p(d(&quot;x&quot;))},m=i.extendFlat({},g,{ycalendar:p(d(&quot;y&quot;))}),v=i.extendFlat({},m,{zcalendar:p(d(&quot;z&quot;))}),y=p([&quot;Sets the calendar system to use for `range` and `tick0`&quot;,&quot;if this is a date axis. This does not set the calendar for&quot;,&quot;interpreting data on this axis, that's specified in the trace&quot;,&quot;or via the global `layout.calendar`&quot;].join(&quot; &quot;));e.exports={moduleType:&quot;component&quot;,name:&quot;calendars&quot;,schema:{traces:{scatter:m,bar:m,box:m,heatmap:m,contour:m,histogram:m,histogram2d:m,histogram2dcontour:m,scatter3d:v,surface:v,mesh3d:v,scattergl:m,ohlc:g,candlestick:g},layout:{calendar:p([&quot;Sets the default calendar system to use for interpreting and&quot;,&quot;displaying dates throughout the plot.&quot;].join(&quot; &quot;))},subplots:{xaxis:{calendar:y},yaxis:{calendar:y},scene:{xaxis:{calendar:y},yaxis:{calendar:y},zaxis:{calendar:y}},polar:{radialaxis:{calendar:y}}},transforms:{filter:{valuecalendar:p([&quot;Sets the calendar system to use for `value`, if it is a date.&quot;].join(&quot; &quot;)),targetcalendar:p([&quot;Sets the calendar system to use for `target`, if it is an&quot;,&quot;array of dates. If `target` is a string (eg *x*) we use the&quot;,&quot;corresponding trace attribute (eg `xcalendar`) if it exists,&quot;,&quot;even if `targetcalendar` is provided.&quot;].join(&quot; &quot;))}}},layoutAttributes:l,handleDefaults:c,handleTraceDefaults:function(t,e,r,n){for(var i=0;i&lt;r.length;i++)c(t,e,r[i]+&quot;calendar&quot;,n.calendar)},CANONICAL_SUNDAY:{chinese:&quot;2000-01-02&quot;,coptic:&quot;2000-01-03&quot;,discworld:&quot;2000-01-03&quot;,ethiopian:&quot;2000-01-05&quot;,hebrew:&quot;5000-01-01&quot;,islamic:&quot;1000-01-02&quot;,julian:&quot;2000-01-03&quot;,mayan:&quot;5000-01-01&quot;,nanakshahi:&quot;1000-01-05&quot;,nepali:&quot;2000-01-05&quot;,persian:&quot;1000-01-01&quot;,jalali:&quot;1000-01-01&quot;,taiwan:&quot;1000-01-04&quot;,thai:&quot;2000-01-04&quot;,ummalqura:&quot;1400-01-06&quot;},CANONICAL_TICK:{chinese:&quot;2000-01-01&quot;,coptic:&quot;2000-01-01&quot;,discworld:&quot;2000-01-01&quot;,ethiopian:&quot;2000-01-01&quot;,hebrew:&quot;5000-01-01&quot;,islamic:&quot;1000-01-01&quot;,julian:&quot;2000-01-01&quot;,mayan:&quot;5000-01-01&quot;,nanakshahi:&quot;1000-01-01&quot;,nepali:&quot;2000-01-01&quot;,persian:&quot;1000-01-01&quot;,jalali:&quot;1000-01-01&quot;,taiwan:&quot;1000-01-01&quot;,thai:&quot;2000-01-01&quot;,ummalqura:&quot;1400-01-01&quot;},DFLTRANGE:{chinese:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],coptic:[&quot;1700-01-01&quot;,&quot;1701-01-01&quot;],discworld:[&quot;1800-01-01&quot;,&quot;1801-01-01&quot;],ethiopian:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],hebrew:[&quot;5700-01-01&quot;,&quot;5701-01-01&quot;],islamic:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],julian:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],mayan:[&quot;5200-01-01&quot;,&quot;5201-01-01&quot;],nanakshahi:[&quot;0500-01-01&quot;,&quot;0501-01-01&quot;],nepali:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],persian:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],jalali:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],taiwan:[&quot;0100-01-01&quot;,&quot;0101-01-01&quot;],thai:[&quot;2500-01-01&quot;,&quot;2501-01-01&quot;],ummalqura:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;]},getCal:h,worldCalFmt:function(t,e,r){for(var n,i,a,l,c,f=Math.floor((e+.05)/s)+o,p=h(r).fromJD(f),d=0;-1!==(d=t.indexOf(&quot;%&quot;,d));)&quot;0&quot;===(n=t.charAt(d+1))||&quot;-&quot;===n||&quot;_&quot;===n?(a=3,i=t.charAt(d+2),&quot;_&quot;===n&amp;&amp;(n=&quot;-&quot;)):(i=n,n=&quot;0&quot;,a=2),(l=u[i])?(c=&quot;##&quot;===l?&quot;##&quot;:p.formatDate(l[n]),t=t.substr(0,d)+c+t.substr(d+a),d+=c.length):d+=a;return t}}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./calendars&quot;:640}],642:[function(t,e,r){&quot;use strict&quot;;r.defaults=[&quot;#1f77b4&quot;,&quot;#ff7f0e&quot;,&quot;#2ca02c&quot;,&quot;#d62728&quot;,&quot;#9467bd&quot;,&quot;#8c564b&quot;,&quot;#e377c2&quot;,&quot;#7f7f7f&quot;,&quot;#bcbd22&quot;,&quot;#17becf&quot;],r.defaultLine=&quot;#444&quot;,r.lightLine=&quot;#eee&quot;,r.background=&quot;#fff&quot;,r.borderLine=&quot;#BEC8D9&quot;,r.lightFraction=1e3/11},{}],643:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;),i=t(&quot;fast-isnumeric&quot;),a=e.exports={},o=t(&quot;./attributes&quot;);a.defaults=o.defaults;var s=a.defaultLine=o.defaultLine;a.lightLine=o.lightLine;var l=a.background=o.background;function c(t){if(i(t)||&quot;string&quot;!=typeof t)return t;var e=t.trim();if(&quot;rgb&quot;!==e.substr(0,3))return t;var r=e.match(/^rgba?\s*\(([^()]*)\)$/);if(!r)return t;var n=r[1].trim().split(/\s*[\s,]\s*/),a=&quot;a&quot;===e.charAt(3)&amp;&amp;4===n.length;if(!a&amp;&amp;3!==n.length)return t;for(var o=0;o&lt;n.length;o++){if(!n[o].length)return t;if(n[o]=Number(n[o]),!(n[o]&gt;=0))return t;if(3===o)n[o]&gt;1&amp;&amp;(n[o]=1);else if(n[o]&gt;=1)return t}var s=Math.round(255*n[0])+&quot;, &quot;+Math.round(255*n[1])+&quot;, &quot;+Math.round(255*n[2]);return a?&quot;rgba(&quot;+s+&quot;, &quot;+n[3]+&quot;)&quot;:&quot;rgb(&quot;+s+&quot;)&quot;}a.tinyRGB=function(t){var e=t.toRgb();return&quot;rgb(&quot;+Math.round(e.r)+&quot;, &quot;+Math.round(e.g)+&quot;, &quot;+Math.round(e.b)+&quot;)&quot;},a.rgb=function(t){return a.tinyRGB(n(t))},a.opacity=function(t){return t?n(t).getAlpha():0},a.addOpacity=function(t,e){var r=n(t).toRgb();return&quot;rgba(&quot;+Math.round(r.r)+&quot;, &quot;+Math.round(r.g)+&quot;, &quot;+Math.round(r.b)+&quot;, &quot;+e+&quot;)&quot;},a.combine=function(t,e){var r=n(t).toRgb();if(1===r.a)return n(t).toRgbString();var i=n(e||l).toRgb(),a=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},o={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},a.contrast=function(t,e,r){var i=n(t);return 1!==i.getAlpha()&amp;&amp;(i=n(a.combine(t,l))),(i.isDark()?e?i.lighten(e):l:r?i.darken(r):s).toString()},a.stroke=function(t,e){var r=n(e);t.style({stroke:a.tinyRGB(r),&quot;stroke-opacity&quot;:r.getAlpha()})},a.fill=function(t,e){var r=n(e);t.style({fill:a.tinyRGB(r),&quot;fill-opacity&quot;:r.getAlpha()})},a.clean=function(t){if(t&amp;&amp;&quot;object&quot;==typeof t){var e,r,n,i,o=Object.keys(t);for(e=0;e&lt;o.length;e++)if(i=t[n=o[e]],&quot;color&quot;===n.substr(n.length-5))if(Array.isArray(i))for(r=0;r&lt;i.length;r++)i[r]=c(i[r]);else t[n]=c(i);else if(&quot;colorscale&quot;===n.substr(n.length-10)&amp;&amp;Array.isArray(i))for(r=0;r&lt;i.length;r++)Array.isArray(i[r])&amp;&amp;(i[r][1]=c(i[r][1]));else if(Array.isArray(i)){var s=i[0];if(!Array.isArray(s)&amp;&amp;s&amp;&amp;&quot;object&quot;==typeof s)for(r=0;r&lt;i.length;r++)a.clean(i[r])}else i&amp;&amp;&quot;object&quot;==typeof i&amp;&amp;a.clean(i)}}},{&quot;./attributes&quot;:642,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],644:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/layout_attributes&quot;),i=t(&quot;../../plots/font_attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll;e.exports=o({thicknessmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;pixels&quot;},thickness:{valType:&quot;number&quot;,min:0,dflt:30},lenmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;fraction&quot;},len:{valType:&quot;number&quot;,min:0,dflt:1},x:{valType:&quot;number&quot;,dflt:1.02,min:-2,max:3},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},xpad:{valType:&quot;number&quot;,min:0,dflt:10},y:{valType:&quot;number&quot;,dflt:.5,min:-2,max:3},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;},ypad:{valType:&quot;number&quot;,min:0,dflt:10},outlinecolor:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:&quot;number&quot;,min:0,dflt:0},bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;},tickmode:n.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:a({},n.ticks,{dflt:&quot;&quot;}),ticklabelposition:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;],dflt:&quot;outside&quot;},ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,showticklabels:n.showticklabels,tickfont:i({}),tickangle:n.tickangle,tickformat:n.tickformat,tickformatstops:n.tickformatstops,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,minexponent:n.minexponent,showexponent:n.showexponent,title:{text:{valType:&quot;string&quot;},font:i({}),side:{valType:&quot;enumerated&quot;,values:[&quot;right&quot;,&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;}},_deprecated:{title:{valType:&quot;string&quot;},titlefont:i({}),titleside:{valType:&quot;enumerated&quot;,values:[&quot;right&quot;,&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;}}},&quot;colorbars&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/font_attributes&quot;:856}],645:[function(t,e,r){&quot;use strict&quot;;e.exports={cn:{colorbar:&quot;colorbar&quot;,cbbg:&quot;cbbg&quot;,cbfill:&quot;cbfill&quot;,cbfills:&quot;cbfills&quot;,cbline:&quot;cbline&quot;,cblines:&quot;cblines&quot;,cbaxis:&quot;cbaxis&quot;,cbtitleunshift:&quot;cbtitleunshift&quot;,cbtitle:&quot;cbtitle&quot;,cboutline:&quot;cboutline&quot;,crisp:&quot;crisp&quot;,jsPlaceholder:&quot;js-placeholder&quot;}}},{}],646:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),o=t(&quot;../../plots/cartesian/tick_mark_defaults&quot;),s=t(&quot;../../plots/cartesian/tick_label_defaults&quot;),l=t(&quot;./attributes&quot;);e.exports=function(t,e,r){var c=i.newContainer(e,&quot;colorbar&quot;),u=t.colorbar||{};function f(t,e){return n.coerce(u,c,l,t,e)}var h=f(&quot;thicknessmode&quot;);f(&quot;thickness&quot;,&quot;fraction&quot;===h?30/(r.width-r.margin.l-r.margin.r):30);var p=f(&quot;lenmode&quot;);f(&quot;len&quot;,&quot;fraction&quot;===p?1:r.height-r.margin.t-r.margin.b),f(&quot;x&quot;),f(&quot;xanchor&quot;),f(&quot;xpad&quot;),f(&quot;y&quot;),f(&quot;yanchor&quot;),f(&quot;ypad&quot;),n.noneOrAll(u,c,[&quot;x&quot;,&quot;y&quot;]),f(&quot;outlinecolor&quot;),f(&quot;outlinewidth&quot;),f(&quot;bordercolor&quot;),f(&quot;borderwidth&quot;),f(&quot;bgcolor&quot;);var d=f(&quot;ticklabelposition&quot;);a(u,c,f,&quot;linear&quot;);var g={outerTicks:!1,font:r.font};-1!==d.indexOf(&quot;inside&quot;)&amp;&amp;(g.bgColor=&quot;black&quot;),s(u,c,f,&quot;linear&quot;,g),o(u,c,f,&quot;linear&quot;,g),f(&quot;title.text&quot;,r._dfltTitle.colorbar),n.coerceFont(f,&quot;title.font&quot;,r.font),f(&quot;title.side&quot;)}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/tick_label_defaults&quot;:849,&quot;../../plots/cartesian/tick_mark_defaults&quot;:850,&quot;../../plots/cartesian/tick_value_defaults&quot;:851,&quot;./attributes&quot;:644}],647:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=t(&quot;../dragelement&quot;),c=t(&quot;../../lib&quot;),u=c.strTranslate,f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../lib/setcursor&quot;),p=t(&quot;../drawing&quot;),d=t(&quot;../color&quot;),g=t(&quot;../titles&quot;),m=t(&quot;../../lib/svg_text_utils&quot;),v=t(&quot;../colorscale/helpers&quot;).flipScale,y=t(&quot;../../plots/cartesian/axis_defaults&quot;),x=t(&quot;../../plots/cartesian/position_defaults&quot;),b=t(&quot;../../plots/cartesian/layout_attributes&quot;),_=t(&quot;../../constants/alignment&quot;),w=_.LINE_SPACING,T=_.FROM_TL,k=_.FROM_BR,M=t(&quot;./constants&quot;).cn;e.exports={draw:function(t){var e=t._fullLayout._infolayer.selectAll(&quot;g.&quot;+M.colorbar).data(function(t){var e,r,n,i,a=t._fullLayout,o=t.calcdata,s=[];function l(t){return f(t,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){&quot;function&quot;==typeof i.calc?i.calc(t,n,e):(e._fillgradient=r.reversescale?v(r.colorscale):r.colorscale,e._zrange=[r[i.min],r[i.max]])}for(var u=0;u&lt;o.length;u++){var h=o[u],p=(n=h[0].trace)._module.colorbar;if(!0===n.visible&amp;&amp;p)for(var d=Array.isArray(p),g=d?p:[p],m=0;m&lt;g.length;m++){var y=(i=g[m]).container;(r=y?n[y]:n)&amp;&amp;r.showscale&amp;&amp;((e=l(r.colorbar))._id=&quot;cb&quot;+n.uid+(d&amp;&amp;y?&quot;-&quot;+y:&quot;&quot;),e._traceIndex=n.index,e._propPrefix=(y?y+&quot;.&quot;:&quot;&quot;)+&quot;colorbar.&quot;,e._meta=n._meta,c(),s.push(e))}}for(var x in a._colorAxes)if((r=a[x]).showscale){var b=a._colorAxes[x];(e=l(r.colorbar))._id=&quot;cb&quot;+x,e._propPrefix=x+&quot;.colorbar.&quot;,e._meta=a._meta,i={min:&quot;cmin&quot;,max:&quot;cmax&quot;},&quot;heatmap&quot;!==b[0]&amp;&amp;(n=b[1],i.calc=n._module.colorbar.calc),c(),s.push(e)}return s}(t),(function(t){return t._id}));e.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return t._id})).classed(M.colorbar,!0),e.each((function(e){var r=n.select(this);c.ensureSingle(r,&quot;rect&quot;,M.cbbg),c.ensureSingle(r,&quot;g&quot;,M.cbfills),c.ensureSingle(r,&quot;g&quot;,M.cblines),c.ensureSingle(r,&quot;g&quot;,M.cbaxis,(function(t){t.classed(M.crisp,!0)})),c.ensureSingle(r,&quot;g&quot;,M.cbtitleunshift,(function(t){t.append(&quot;g&quot;).classed(M.cbtitle,!0)})),c.ensureSingle(r,&quot;rect&quot;,M.cboutline);var v=function(t,e,r){var o=r._fullLayout,l=o._size,h=e._fillcolor,v=e._line,_=e.title,A=_.side,S=e._zrange||n.extent((&quot;function&quot;==typeof h?h:v.color).domain()),E=&quot;function&quot;==typeof v.color?v.color:function(){return v.color},C=&quot;function&quot;==typeof h?h:function(){return h},L=e._levels,I=function(t,e,r){var n,i,a=e._levels,o=[],s=[],l=a.end+a.size/100,c=a.size,u=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(i=0;i&lt;1e5&amp;&amp;(n=a.start+i*c,!(c&gt;0?n&gt;=l:n&lt;=l));i++)n&gt;u&amp;&amp;n&lt;f&amp;&amp;o.push(n);if(e._fillgradient)s=[0];else if(&quot;function&quot;==typeof e._fillcolor){var h=e._filllevels;if(h)for(l=h.end+h.size/100,c=h.size,i=0;i&lt;1e5&amp;&amp;(n=h.start+i*c,!(c&gt;0?n&gt;=l:n&lt;=l));i++)n&gt;r[0]&amp;&amp;n&lt;r[1]&amp;&amp;s.push(n);else(s=o.map((function(t){return t-a.size/2}))).push(s[s.length-1]+a.size)}else e._fillcolor&amp;&amp;&quot;string&quot;==typeof e._fillcolor&amp;&amp;(s=[0]);a.size&lt;0&amp;&amp;(o.reverse(),s.reverse());return{line:o,fill:s}}(0,e,S),P=I.fill,z=I.line,O=Math.round(e.thickness*(&quot;fraction&quot;===e.thicknessmode?l.w:1)),D=O/l.w,R=Math.round(e.len*(&quot;fraction&quot;===e.lenmode?l.h:1)),F=R/l.h,B=e.xpad/l.w,N=(e.borderwidth+e.outlinewidth)/2,j=e.ypad/l.h,U=Math.round(e.x*l.w+e.xpad),V=e.x-D*({middle:.5,right:1}[e.xanchor]||0),q=e.y+F*(({top:-.5,bottom:.5}[e.yanchor]||0)-.5),H=Math.round(l.h*(1-q)),G=H-R;e._lenFrac=F,e._thickFrac=D,e._xLeftFrac=V,e._yBottomFrac=q;var Y=e._axis=function(t,e,r){var n=t._fullLayout,i={type:&quot;linear&quot;,range:r,tickmode:e.tickmode,nticks:e.nticks,tick0:e.tick0,dtick:e.dtick,tickvals:e.tickvals,ticktext:e.ticktext,ticks:e.ticks,ticklen:e.ticklen,tickwidth:e.tickwidth,tickcolor:e.tickcolor,showticklabels:e.showticklabels,ticklabelposition:e.ticklabelposition,tickfont:e.tickfont,tickangle:e.tickangle,tickformat:e.tickformat,exponentformat:e.exponentformat,minexponent:e.minexponent,separatethousands:e.separatethousands,showexponent:e.showexponent,showtickprefix:e.showtickprefix,tickprefix:e.tickprefix,showticksuffix:e.showticksuffix,ticksuffix:e.ticksuffix,title:e.title,showline:!0,anchor:&quot;free&quot;,side:&quot;right&quot;,position:1},a={type:&quot;linear&quot;,_id:&quot;y&quot;+e._id},o={letter:&quot;y&quot;,font:n.font,noHover:!0,noTickson:!0,noTicklabelmode:!0,calendar:n.calendar};function s(t,e){return c.coerce(i,a,b,t,e)}return y(i,a,s,o,n),x(i,a,s,o),a}(r,e,S);Y.position=e.x+B+D,-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)&amp;&amp;(Y.title.side=A,Y.titlex=e.x+B,Y.titley=q+(&quot;top&quot;===_.side?F-j:j));if(v.color&amp;&amp;&quot;auto&quot;===e.tickmode){Y.tickmode=&quot;linear&quot;,Y.tick0=L.start;var W=L.size,X=c.constrain((H-G)/50,4,15)+1,Z=(S[1]-S[0])/((e.nticks||X)*W);if(Z&gt;1){var J=Math.pow(10,Math.floor(Math.log(Z)/Math.LN10));W*=J*c.roundUp(Z/J,[2,5,10]),(Math.abs(L.start)/L.size+1e-6)%1&lt;2e-6&amp;&amp;(Y.tick0=0)}Y.dtick=W}Y.domain=[q+j,q+F-j],Y.setScale(),t.attr(&quot;transform&quot;,u(Math.round(l.l),Math.round(l.t)));var K,Q=t.select(&quot;.&quot;+M.cbtitleunshift).attr(&quot;transform&quot;,u(-Math.round(l.l),-Math.round(l.t))),$=t.select(&quot;.&quot;+M.cbaxis),tt=0;function et(n,i){var a={propContainer:Y,propName:e._propPrefix+&quot;title&quot;,traceIndex:e._traceIndex,_meta:e._meta,placeholder:o._dfltTitle.colorbar,containerGroup:t.select(&quot;.&quot;+M.cbtitle)},s=&quot;h&quot;===n.charAt(0)?n.substr(1):&quot;h&quot;+n;t.selectAll(&quot;.&quot;+s+&quot;,.&quot;+s+&quot;-math-group&quot;).remove(),g.draw(r,n,f(a,i||{}))}return c.syncOrAsync([a.previousPromises,function(){if(-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)){var t,r=l.l+(e.x+B)*l.w,n=Y.title.font.size;t=&quot;top&quot;===A?(1-(q+F-j))*l.h+l.t+3+.75*n:(1-(q+j))*l.h+l.t-3-.25*n,et(Y._id+&quot;title&quot;,{attributes:{x:r,y:t,&quot;text-anchor&quot;:&quot;start&quot;}})}},function(){if(-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)){var a=t.select(&quot;.&quot;+M.cbtitle),o=a.select(&quot;text&quot;),f=[-e.outlinewidth/2,e.outlinewidth/2],h=a.select(&quot;.h&quot;+Y._id+&quot;title-math-group&quot;).node(),d=15.6;if(o.node()&amp;&amp;(d=parseInt(o.node().style.fontSize,10)*w),h?(tt=p.bBox(h).height)&gt;d&amp;&amp;(f[1]-=(tt-d)/2):o.node()&amp;&amp;!o.classed(M.jsPlaceholder)&amp;&amp;(tt=p.bBox(o.node()).height),tt){if(tt+=5,&quot;top&quot;===A)Y.domain[1]-=tt/l.h,f[1]*=-1;else{Y.domain[0]+=tt/l.h;var g=m.lineCount(o);f[1]+=(1-g)*d}a.attr(&quot;transform&quot;,u(f[0],f[1])),Y.setScale()}}t.selectAll(&quot;.&quot;+M.cbfills+&quot;,.&quot;+M.cblines).attr(&quot;transform&quot;,u(0,Math.round(l.h*(1-Y.domain[1])))),$.attr(&quot;transform&quot;,u(0,Math.round(-l.t)));var y=t.select(&quot;.&quot;+M.cbfills).selectAll(&quot;rect.&quot;+M.cbfill).attr(&quot;style&quot;,&quot;&quot;).data(P);y.enter().append(&quot;rect&quot;).classed(M.cbfill,!0).style(&quot;stroke&quot;,&quot;none&quot;),y.exit().remove();var x=S.map(Y.c2p).map(Math.round).sort((function(t,e){return t-e}));y.each((function(t,a){var o=[0===a?S[0]:(P[a]+P[a-1])/2,a===P.length-1?S[1]:(P[a]+P[a+1])/2].map(Y.c2p).map(Math.round);o[1]=c.constrain(o[1]+(o[1]&gt;o[0])?1:-1,x[0],x[1]);var s=n.select(this).attr({x:U,width:Math.max(O,2),y:n.min(o),height:Math.max(n.max(o)-n.min(o),2)});if(e._fillgradient)p.gradient(s,r,e._id,&quot;vertical&quot;,e._fillgradient,&quot;fill&quot;);else{var l=C(t).replace(&quot;e-&quot;,&quot;&quot;);s.attr(&quot;fill&quot;,i(l).toHexString())}}));var b=t.select(&quot;.&quot;+M.cblines).selectAll(&quot;path.&quot;+M.cbline).data(v.color&amp;&amp;v.width?z:[]);b.enter().append(&quot;path&quot;).classed(M.cbline,!0),b.exit().remove(),b.each((function(t){n.select(this).attr(&quot;d&quot;,&quot;M&quot;+U+&quot;,&quot;+(Math.round(Y.c2p(t))+v.width/2%1)+&quot;h&quot;+O).call(p.lineGroupStyle,v.width,E(t),v.dash)})),$.selectAll(&quot;g.&quot;+Y._id+&quot;tick,path&quot;).remove();var _=U+O+(e.outlinewidth||0)/2-(&quot;outside&quot;===e.ticks?1:0),T=s.calcTicks(Y),k=s.getTickSigns(Y)[2];return s.drawTicks(r,Y,{vals:&quot;inside&quot;===Y.ticks?s.clipEnds(Y,T):T,layer:$,path:s.makeTickPath(Y,_,k),transFn:s.makeTransTickFn(Y)}),s.drawLabels(r,Y,{vals:T,layer:$,transFn:s.makeTransTickLabelFn(Y),labelFns:s.makeLabelFns(Y,_)})},function(){if(-1===[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)){var t=Y.title.font.size,e=Y._offset+Y._length/2,i=l.l+(Y.position||0)*l.w+(&quot;right&quot;===Y.side?10+t*(Y.showticklabels?1:.5):-10-t*(Y.showticklabels?.5:0));et(&quot;h&quot;+Y._id+&quot;title&quot;,{avoid:{selection:n.select(r).selectAll(&quot;g.&quot;+Y._id+&quot;tick&quot;),side:A,offsetLeft:l.l,offsetTop:0,maxShift:o.width},attributes:{x:i,y:e,&quot;text-anchor&quot;:&quot;middle&quot;},transform:{rotate:&quot;-90&quot;,offset:0}})}},a.previousPromises,function(){var n=O+e.outlinewidth/2;if(-1===Y.ticklabelposition.indexOf(&quot;inside&quot;)&amp;&amp;(n+=p.bBox($.node()).width),(K=Q.select(&quot;text&quot;)).node()&amp;&amp;!K.classed(M.jsPlaceholder)){var i,o=Q.select(&quot;.h&quot;+Y._id+&quot;title-math-group&quot;).node();i=o&amp;&amp;-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)?p.bBox(o).width:p.bBox(Q.node()).right-U-l.l,n=Math.max(n,i)}var s=2*e.xpad+n+e.borderwidth+e.outlinewidth/2,c=H-G;t.select(&quot;.&quot;+M.cbbg).attr({x:U-e.xpad-(e.borderwidth+e.outlinewidth)/2,y:G-N,width:Math.max(s,2),height:Math.max(c+2*N,2)}).call(d.fill,e.bgcolor).call(d.stroke,e.bordercolor).style(&quot;stroke-width&quot;,e.borderwidth),t.selectAll(&quot;.&quot;+M.cboutline).attr({x:U,y:G+e.ypad+(&quot;top&quot;===A?tt:0),width:Math.max(O,2),height:Math.max(c-2*e.ypad-tt,2)}).call(d.stroke,e.outlinecolor).style({fill:&quot;none&quot;,&quot;stroke-width&quot;:e.outlinewidth});var f=({center:.5,right:1}[e.xanchor]||0)*s;t.attr(&quot;transform&quot;,u(l.l-f,l.t));var h={},g=T[e.yanchor],m=k[e.yanchor];&quot;pixels&quot;===e.lenmode?(h.y=e.y,h.t=c*g,h.b=c*m):(h.t=h.b=0,h.yt=e.y+e.len*g,h.yb=e.y-e.len*m);var v=T[e.xanchor],y=k[e.xanchor];if(&quot;pixels&quot;===e.thicknessmode)h.x=e.x,h.l=s*v,h.r=s*y;else{var x=s-O;h.l=x*v,h.r=x*y,h.xl=e.x-e.thickness*v,h.xr=e.x+e.thickness*y}a.autoMargin(r,e._id,h)}],r)}(r,e,t);v&amp;&amp;v.then&amp;&amp;(t._promises||[]).push(v),t._context.edits.colorbarPosition&amp;&amp;function(t,e,r){var n,i,a,s=r._fullLayout._size;l.init({element:t.node(),gd:r,prepFn:function(){n=t.attr(&quot;transform&quot;),h(t)},moveFn:function(r,o){t.attr(&quot;transform&quot;,n+u(r,o)),i=l.align(e._xLeftFrac+r/s.w,e._thickFrac,0,1,e.xanchor),a=l.align(e._yBottomFrac-o/s.h,e._lenFrac,0,1,e.yanchor);var c=l.getCursor(i,a,e.xanchor,e.yanchor);h(t,c)},doneFn:function(){if(h(t),void 0!==i&amp;&amp;void 0!==a){var n={};n[e._propPrefix+&quot;x&quot;]=i,n[e._propPrefix+&quot;y&quot;]=a,void 0!==e._traceIndex?o.call(&quot;_guiRestyle&quot;,r,n,e._traceIndex):o.call(&quot;_guiRelayout&quot;,r,n)}}})}(r,e,t)})),e.exit().each((function(e){a.autoMargin(t,e._id)})).remove(),e.order()}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/extend&quot;:768,&quot;../../lib/setcursor&quot;:799,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_defaults&quot;:830,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/cartesian/position_defaults&quot;:845,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../colorscale/helpers&quot;:654,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../titles&quot;:738,&quot;./constants&quot;:645,d3:169,tinycolor2:576}],648:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t){return n.isPlainObject(t.colorbar)}},{&quot;../../lib&quot;:778}],649:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;colorbar&quot;,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;).draw,hasColorbar:t(&quot;./has_colorbar&quot;)}},{&quot;./attributes&quot;:644,&quot;./defaults&quot;:646,&quot;./draw&quot;:647,&quot;./has_colorbar&quot;:648}],650:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../colorbar/attributes&quot;),i=t(&quot;../../lib/regex&quot;).counter,a=t(&quot;./scales.js&quot;).scales;Object.keys(a);function o(t){return&quot;`&quot;+t+&quot;`&quot;}e.exports=function(t,e){t=t||&quot;&quot;;var r,s=(e=e||{}).cLetter||&quot;c&quot;,l=(&quot;onlyIfNumerical&quot;in e?e.onlyIfNumerical:Boolean(t),&quot;noScale&quot;in e?e.noScale:&quot;marker.line&quot;===t),c=&quot;showScaleDflt&quot;in e?e.showScaleDflt:&quot;z&quot;===s,u=&quot;string&quot;==typeof e.colorscaleDflt?a[e.colorscaleDflt]:null,f=e.editTypeOverride||&quot;&quot;,h=t?t+&quot;.&quot;:&quot;&quot;;&quot;colorAttr&quot;in e?(r=e.colorAttr,e.colorAttr):o(h+(r={z:&quot;z&quot;,c:&quot;color&quot;}[s]));var p=s+&quot;auto&quot;,d=s+&quot;min&quot;,g=s+&quot;max&quot;,m=s+&quot;mid&quot;,v=(o(h+p),o(h+d),o(h+g),{});v[d]=v[g]=void 0;var y={};y[p]=!1;var x={};return&quot;color&quot;===r&amp;&amp;(x.color={valType:&quot;color&quot;,arrayOk:!0,editType:f||&quot;style&quot;},e.anim&amp;&amp;(x.color.anim=!0)),x[p]={valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:v},x[d]={valType:&quot;number&quot;,dflt:null,editType:f||&quot;plot&quot;,impliedEdits:y},x[g]={valType:&quot;number&quot;,dflt:null,editType:f||&quot;plot&quot;,impliedEdits:y},x[m]={valType:&quot;number&quot;,dflt:null,editType:&quot;calc&quot;,impliedEdits:v},x.colorscale={valType:&quot;colorscale&quot;,editType:&quot;calc&quot;,dflt:u,impliedEdits:{autocolorscale:!1}},x.autocolorscale={valType:&quot;boolean&quot;,dflt:!1!==e.autoColorDflt,editType:&quot;calc&quot;,impliedEdits:{colorscale:void 0}},x.reversescale={valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},l||(x.showscale={valType:&quot;boolean&quot;,dflt:c,editType:&quot;calc&quot;},x.colorbar=n),e.noColorAxis||(x.coloraxis={valType:&quot;subplotid&quot;,regex:i(&quot;coloraxis&quot;),dflt:null,editType:&quot;calc&quot;}),x}},{&quot;../../lib/regex&quot;:795,&quot;../colorbar/attributes&quot;:644,&quot;./scales.js&quot;:658}],651:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./helpers&quot;).extractOpts;e.exports=function(t,e,r){var o,s=t._fullLayout,l=r.vals,c=r.containerStr,u=c?i.nestedProperty(e,c).get():e,f=a(u),h=!1!==f.auto,p=f.min,d=f.max,g=f.mid,m=function(){return i.aggNums(Math.min,null,l)},v=function(){return i.aggNums(Math.max,null,l)};(void 0===p?p=m():h&amp;&amp;(p=u._colorAx&amp;&amp;n(p)?Math.min(p,m()):m()),void 0===d?d=v():h&amp;&amp;(d=u._colorAx&amp;&amp;n(d)?Math.max(d,v()):v()),h&amp;&amp;void 0!==g&amp;&amp;(d-g&gt;g-p?p=g-(d-g):d-g&lt;g-p&amp;&amp;(d=g+(g-p))),p===d&amp;&amp;(p-=.5,d+=.5),f._sync(&quot;min&quot;,p),f._sync(&quot;max&quot;,d),f.autocolorscale)&amp;&amp;(o=p*d&lt;0?s.colorscale.diverging:p&gt;=0?s.colorscale.sequential:s.colorscale.sequentialminus,f._sync(&quot;colorscale&quot;,o))}},{&quot;../../lib&quot;:778,&quot;./helpers&quot;:654,&quot;fast-isnumeric&quot;:241}],652:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./helpers&quot;).hasColorscale,a=t(&quot;./helpers&quot;).extractOpts;e.exports=function(t,e){function r(t,e){var r=t[&quot;_&quot;+e];void 0!==r&amp;&amp;(t[e]=r)}function o(t,i){var o=i.container?n.nestedProperty(t,i.container).get():t;if(o)if(o.coloraxis)o._colorAx=e[o.coloraxis];else{var s=a(o),l=s.auto;(l||void 0===s.min)&amp;&amp;r(o,i.min),(l||void 0===s.max)&amp;&amp;r(o,i.max),s.autocolorscale&amp;&amp;r(o,&quot;colorscale&quot;)}}for(var s=0;s&lt;t.length;s++){var l=t[s],c=l._module.colorbar;if(c)if(Array.isArray(c))for(var u=0;u&lt;c.length;u++)o(l,c[u]);else o(l,c);i(l,&quot;marker.line&quot;)&amp;&amp;o(l,{container:&quot;marker.line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;})}for(var f in e._colorAxes)o(e[f],{min:&quot;cmin&quot;,max:&quot;cmax&quot;})}},{&quot;../../lib&quot;:778,&quot;./helpers&quot;:654}],653:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../colorbar/has_colorbar&quot;),o=t(&quot;../colorbar/defaults&quot;),s=t(&quot;./scales&quot;).isValid,l=t(&quot;../../registry&quot;).traceIs;function c(t,e){var r=e.slice(0,e.length-1);return e?i.nestedProperty(t,r).get()||{}:t}e.exports=function t(e,r,u,f,h){var p=h.prefix,d=h.cLetter,g=&quot;_module&quot;in r,m=c(e,p),v=c(r,p),y=c(r._template||{},p)||{},x=function(){return delete e.coloraxis,delete r.coloraxis,t(e,r,u,f,h)};if(g){var b=u._colorAxes||{},_=f(p+&quot;coloraxis&quot;);if(_){var w=l(r,&quot;contour&quot;)&amp;&amp;i.nestedProperty(r,&quot;contours.coloring&quot;).get()||&quot;heatmap&quot;,T=b[_];return void(T?(T[2].push(x),T[0]!==w&amp;&amp;(T[0]=!1,i.warn([&quot;Ignoring coloraxis:&quot;,_,&quot;setting&quot;,&quot;as it is linked to incompatible colorscales.&quot;].join(&quot; &quot;)))):b[_]=[w,r,[x]])}}var k=m[d+&quot;min&quot;],M=m[d+&quot;max&quot;],A=n(k)&amp;&amp;n(M)&amp;&amp;k&lt;M;f(p+d+&quot;auto&quot;,!A)?f(p+d+&quot;mid&quot;):(f(p+d+&quot;min&quot;),f(p+d+&quot;max&quot;));var S,E,C=m.colorscale,L=y.colorscale;(void 0!==C&amp;&amp;(S=!s(C)),void 0!==L&amp;&amp;(S=!s(L)),f(p+&quot;autocolorscale&quot;,S),f(p+&quot;colorscale&quot;),f(p+&quot;reversescale&quot;),&quot;marker.line.&quot;!==p)&amp;&amp;(p&amp;&amp;g&amp;&amp;(E=a(m)),f(p+&quot;showscale&quot;,E)&amp;&amp;(p&amp;&amp;y&amp;&amp;(v._template=y),o(m,v,u)))}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../colorbar/defaults&quot;:646,&quot;../colorbar/has_colorbar&quot;:648,&quot;./scales&quot;:658,&quot;fast-isnumeric&quot;:241}],654:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../color&quot;),l=t(&quot;./scales&quot;).isValid;var c=[&quot;showscale&quot;,&quot;autocolorscale&quot;,&quot;colorscale&quot;,&quot;reversescale&quot;,&quot;colorbar&quot;],u=[&quot;min&quot;,&quot;max&quot;,&quot;mid&quot;,&quot;auto&quot;];function f(t){var e,r,n,i=t._colorAx,a=i||t,o={};for(r=0;r&lt;c.length;r++)o[n=c[r]]=a[n];if(i)for(e=&quot;c&quot;,r=0;r&lt;u.length;r++)o[n=u[r]]=a[&quot;c&quot;+n];else{var s;for(r=0;r&lt;u.length;r++)((s=&quot;c&quot;+(n=u[r]))in a||(s=&quot;z&quot;+n)in a)&amp;&amp;(o[n]=a[s]);e=s.charAt(0)}return o._sync=function(t,r){var n=-1!==u.indexOf(t)?e+t:t;a[n]=a[&quot;_&quot;+n]=r},o}function h(t){for(var e=f(t),r=e.min,n=e.max,i=e.reversescale?p(e.colorscale):e.colorscale,a=i.length,o=new Array(a),s=new Array(a),l=0;l&lt;a;l++){var c=i[l];o[l]=r+c[0]*(n-r),s[l]=c[1]}return{domain:o,range:s}}function p(t){for(var e=t.length,r=new Array(e),n=e-1,i=0;n&gt;=0;n--,i++){var a=t[n];r[i]=[1-a[0],a[1]]}return r}function d(t,e){e=e||{};for(var r=t.domain,o=t.range,l=o.length,c=new Array(l),u=0;u&lt;l;u++){var f=i(o[u]).toRgb();c[u]=[f.r,f.g,f.b,f.a]}var h,p=n.scale.linear().domain(r).range(c).clamp(!0),d=e.noNumericCheck,m=e.returnArray;return(h=d&amp;&amp;m?p:d?function(t){return g(p(t))}:m?function(t){return a(t)?p(t):i(t).isValid()?t:s.defaultLine}:function(t){return a(t)?g(p(t)):i(t).isValid()?t:s.defaultLine}).domain=p.domain,h.range=function(){return o},h}function g(t){var e={r:t[0],g:t[1],b:t[2],a:t[3]};return i(e).toRgbString()}e.exports={hasColorscale:function(t,e,r){var n=e?o.nestedProperty(t,e).get()||{}:t,i=n[r||&quot;color&quot;],s=!1;if(o.isArrayOrTypedArray(i))for(var c=0;c&lt;i.length;c++)if(a(i[c])){s=!0;break}return o.isPlainObject(n)&amp;&amp;(s||!0===n.showscale||a(n.cmin)&amp;&amp;a(n.cmax)||l(n.colorscale)||o.isPlainObject(n.colorbar))},extractOpts:f,extractScale:h,flipScale:p,makeColorScaleFunc:d,makeColorScaleFuncFromTrace:function(t,e){return d(h(t),e)}}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;./scales&quot;:658,d3:169,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],655:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./scales&quot;),i=t(&quot;./helpers&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;colorscale&quot;,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),handleDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),calc:t(&quot;./calc&quot;),scales:n.scales,defaultScale:n.defaultScale,getScale:n.get,isValidScale:n.isValid,hasColorscale:i.hasColorscale,extractOpts:i.extractOpts,extractScale:i.extractScale,flipScale:i.flipScale,makeColorScaleFunc:i.makeColorScaleFunc,makeColorScaleFuncFromTrace:i.makeColorScaleFuncFromTrace}},{&quot;./attributes&quot;:650,&quot;./calc&quot;:651,&quot;./cross_trace_defaults&quot;:652,&quot;./defaults&quot;:653,&quot;./helpers&quot;:654,&quot;./layout_attributes&quot;:656,&quot;./layout_defaults&quot;:657,&quot;./scales&quot;:658}],656:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;./attributes&quot;),a=t(&quot;./scales&quot;).scales;e.exports={editType:&quot;calc&quot;,colorscale:{editType:&quot;calc&quot;,sequential:{valType:&quot;colorscale&quot;,dflt:a.Reds,editType:&quot;calc&quot;},sequentialminus:{valType:&quot;colorscale&quot;,dflt:a.Blues,editType:&quot;calc&quot;},diverging:{valType:&quot;colorscale&quot;,dflt:a.RdBu,editType:&quot;calc&quot;}},coloraxis:n({_isSubplotObj:!0,editType:&quot;calc&quot;},i(&quot;&quot;,{colorAttr:&quot;corresponding trace color array(s)&quot;,noColorAxis:!0,showScaleDflt:!0}))}},{&quot;../../lib/extend&quot;:768,&quot;./attributes&quot;:650,&quot;./scales&quot;:658}],657:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;./layout_attributes&quot;),o=t(&quot;./defaults&quot;);e.exports=function(t,e){function r(r,i){return n.coerce(t,e,a,r,i)}r(&quot;colorscale.sequential&quot;),r(&quot;colorscale.sequentialminus&quot;),r(&quot;colorscale.diverging&quot;);var s,l,c=e._colorAxes;function u(t,e){return n.coerce(s,l,a.coloraxis,t,e)}for(var f in c){var h=c[f];if(h[0])s=t[f]||{},(l=i.newContainer(e,f,&quot;coloraxis&quot;))._name=f,o(s,l,e,u,{prefix:&quot;&quot;,cLetter:&quot;c&quot;});else{for(var p=0;p&lt;h[2].length;p++)h[2][p]();delete e._colorAxes[f]}}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;./defaults&quot;:653,&quot;./layout_attributes&quot;:656}],658:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;),i={Greys:[[0,&quot;rgb(0,0,0)&quot;],[1,&quot;rgb(255,255,255)&quot;]],YlGnBu:[[0,&quot;rgb(8,29,88)&quot;],[.125,&quot;rgb(37,52,148)&quot;],[.25,&quot;rgb(34,94,168)&quot;],[.375,&quot;rgb(29,145,192)&quot;],[.5,&quot;rgb(65,182,196)&quot;],[.625,&quot;rgb(127,205,187)&quot;],[.75,&quot;rgb(199,233,180)&quot;],[.875,&quot;rgb(237,248,217)&quot;],[1,&quot;rgb(255,255,217)&quot;]],Greens:[[0,&quot;rgb(0,68,27)&quot;],[.125,&quot;rgb(0,109,44)&quot;],[.25,&quot;rgb(35,139,69)&quot;],[.375,&quot;rgb(65,171,93)&quot;],[.5,&quot;rgb(116,196,118)&quot;],[.625,&quot;rgb(161,217,155)&quot;],[.75,&quot;rgb(199,233,192)&quot;],[.875,&quot;rgb(229,245,224)&quot;],[1,&quot;rgb(247,252,245)&quot;]],YlOrRd:[[0,&quot;rgb(128,0,38)&quot;],[.125,&quot;rgb(189,0,38)&quot;],[.25,&quot;rgb(227,26,28)&quot;],[.375,&quot;rgb(252,78,42)&quot;],[.5,&quot;rgb(253,141,60)&quot;],[.625,&quot;rgb(254,178,76)&quot;],[.75,&quot;rgb(254,217,118)&quot;],[.875,&quot;rgb(255,237,160)&quot;],[1,&quot;rgb(255,255,204)&quot;]],Bluered:[[0,&quot;rgb(0,0,255)&quot;],[1,&quot;rgb(255,0,0)&quot;]],RdBu:[[0,&quot;rgb(5,10,172)&quot;],[.35,&quot;rgb(106,137,247)&quot;],[.5,&quot;rgb(190,190,190)&quot;],[.6,&quot;rgb(220,170,132)&quot;],[.7,&quot;rgb(230,145,90)&quot;],[1,&quot;rgb(178,10,28)&quot;]],Reds:[[0,&quot;rgb(220,220,220)&quot;],[.2,&quot;rgb(245,195,157)&quot;],[.4,&quot;rgb(245,160,105)&quot;],[1,&quot;rgb(178,10,28)&quot;]],Blues:[[0,&quot;rgb(5,10,172)&quot;],[.35,&quot;rgb(40,60,190)&quot;],[.5,&quot;rgb(70,100,245)&quot;],[.6,&quot;rgb(90,120,245)&quot;],[.7,&quot;rgb(106,137,247)&quot;],[1,&quot;rgb(220,220,220)&quot;]],Picnic:[[0,&quot;rgb(0,0,255)&quot;],[.1,&quot;rgb(51,153,255)&quot;],[.2,&quot;rgb(102,204,255)&quot;],[.3,&quot;rgb(153,204,255)&quot;],[.4,&quot;rgb(204,204,255)&quot;],[.5,&quot;rgb(255,255,255)&quot;],[.6,&quot;rgb(255,204,255)&quot;],[.7,&quot;rgb(255,153,255)&quot;],[.8,&quot;rgb(255,102,204)&quot;],[.9,&quot;rgb(255,102,102)&quot;],[1,&quot;rgb(255,0,0)&quot;]],Rainbow:[[0,&quot;rgb(150,0,90)&quot;],[.125,&quot;rgb(0,0,200)&quot;],[.25,&quot;rgb(0,25,255)&quot;],[.375,&quot;rgb(0,152,255)&quot;],[.5,&quot;rgb(44,255,150)&quot;],[.625,&quot;rgb(151,255,0)&quot;],[.75,&quot;rgb(255,234,0)&quot;],[.875,&quot;rgb(255,111,0)&quot;],[1,&quot;rgb(255,0,0)&quot;]],Portland:[[0,&quot;rgb(12,51,131)&quot;],[.25,&quot;rgb(10,136,186)&quot;],[.5,&quot;rgb(242,211,56)&quot;],[.75,&quot;rgb(242,143,56)&quot;],[1,&quot;rgb(217,30,30)&quot;]],Jet:[[0,&quot;rgb(0,0,131)&quot;],[.125,&quot;rgb(0,60,170)&quot;],[.375,&quot;rgb(5,255,255)&quot;],[.625,&quot;rgb(255,255,0)&quot;],[.875,&quot;rgb(250,0,0)&quot;],[1,&quot;rgb(128,0,0)&quot;]],Hot:[[0,&quot;rgb(0,0,0)&quot;],[.3,&quot;rgb(230,0,0)&quot;],[.6,&quot;rgb(255,210,0)&quot;],[1,&quot;rgb(255,255,255)&quot;]],Blackbody:[[0,&quot;rgb(0,0,0)&quot;],[.2,&quot;rgb(230,0,0)&quot;],[.4,&quot;rgb(230,210,0)&quot;],[.7,&quot;rgb(255,255,255)&quot;],[1,&quot;rgb(160,200,255)&quot;]],Earth:[[0,&quot;rgb(0,0,130)&quot;],[.1,&quot;rgb(0,180,180)&quot;],[.2,&quot;rgb(40,210,40)&quot;],[.4,&quot;rgb(230,230,50)&quot;],[.6,&quot;rgb(120,70,20)&quot;],[1,&quot;rgb(255,255,255)&quot;]],Electric:[[0,&quot;rgb(0,0,0)&quot;],[.15,&quot;rgb(30,0,100)&quot;],[.4,&quot;rgb(120,0,100)&quot;],[.6,&quot;rgb(160,90,0)&quot;],[.8,&quot;rgb(230,200,0)&quot;],[1,&quot;rgb(255,250,220)&quot;]],Viridis:[[0,&quot;#440154&quot;],[.06274509803921569,&quot;#48186a&quot;],[.12549019607843137,&quot;#472d7b&quot;],[.18823529411764706,&quot;#424086&quot;],[.25098039215686274,&quot;#3b528b&quot;],[.3137254901960784,&quot;#33638d&quot;],[.3764705882352941,&quot;#2c728e&quot;],[.4392156862745098,&quot;#26828e&quot;],[.5019607843137255,&quot;#21918c&quot;],[.5647058823529412,&quot;#1fa088&quot;],[.6274509803921569,&quot;#28ae80&quot;],[.6901960784313725,&quot;#3fbc73&quot;],[.7529411764705882,&quot;#5ec962&quot;],[.8156862745098039,&quot;#84d44b&quot;],[.8784313725490196,&quot;#addc30&quot;],[.9411764705882353,&quot;#d8e219&quot;],[1,&quot;#fde725&quot;]],Cividis:[[0,&quot;rgb(0,32,76)&quot;],[.058824,&quot;rgb(0,42,102)&quot;],[.117647,&quot;rgb(0,52,110)&quot;],[.176471,&quot;rgb(39,63,108)&quot;],[.235294,&quot;rgb(60,74,107)&quot;],[.294118,&quot;rgb(76,85,107)&quot;],[.352941,&quot;rgb(91,95,109)&quot;],[.411765,&quot;rgb(104,106,112)&quot;],[.470588,&quot;rgb(117,117,117)&quot;],[.529412,&quot;rgb(131,129,120)&quot;],[.588235,&quot;rgb(146,140,120)&quot;],[.647059,&quot;rgb(161,152,118)&quot;],[.705882,&quot;rgb(176,165,114)&quot;],[.764706,&quot;rgb(192,177,109)&quot;],[.823529,&quot;rgb(209,191,102)&quot;],[.882353,&quot;rgb(225,204,92)&quot;],[.941176,&quot;rgb(243,219,79)&quot;],[1,&quot;rgb(255,233,69)&quot;]]},a=i.RdBu;function o(t){var e=0;if(!Array.isArray(t)||t.length&lt;2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r&lt;t.length;r++){var i=t[r];if(2!==i.length||+i[0]&lt;e||!n(i[1]).isValid())return!1;e=+i[0]}return!0}e.exports={scales:i,defaultScale:a,get:function(t,e){if(e||(e=a),!t)return e;function r(){try{t=i[t]||JSON.parse(t)}catch(r){t=e}}return&quot;string&quot;==typeof t&amp;&amp;(r(),&quot;string&quot;==typeof t&amp;&amp;r()),o(t)?t:e},isValid:function(t){return void 0!==i[t]||o(t)}}},{tinycolor2:576}],659:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=(t-r)/(n-r),o=a+e/(n-r),s=(a+o)/2;return&quot;left&quot;===i||&quot;bottom&quot;===i?a:&quot;center&quot;===i||&quot;middle&quot;===i?s:&quot;right&quot;===i||&quot;top&quot;===i?o:a&lt;2/3-s?a:o&gt;4/3-s?o:s}},{}],660:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=[[&quot;sw-resize&quot;,&quot;s-resize&quot;,&quot;se-resize&quot;],[&quot;w-resize&quot;,&quot;move&quot;,&quot;e-resize&quot;],[&quot;nw-resize&quot;,&quot;n-resize&quot;,&quot;ne-resize&quot;]];e.exports=function(t,e,r,a){return t=&quot;left&quot;===r?0:&quot;center&quot;===r?1:&quot;right&quot;===r?2:n.constrain(Math.floor(3*t),0,2),e=&quot;bottom&quot;===a?0:&quot;middle&quot;===a?1:&quot;top&quot;===a?2:n.constrain(Math.floor(3*e),0,2),i[e][t]}},{&quot;../../lib&quot;:778}],661:[function(t,e,r){&quot;use strict&quot;;r.selectMode=function(t){return&quot;lasso&quot;===t||&quot;select&quot;===t},r.drawMode=function(t){return&quot;drawclosedpath&quot;===t||&quot;drawopenpath&quot;===t||&quot;drawline&quot;===t||&quot;drawrect&quot;===t||&quot;drawcircle&quot;===t},r.openMode=function(t){return&quot;drawline&quot;===t||&quot;drawopenpath&quot;===t},r.rectMode=function(t){return&quot;select&quot;===t||&quot;drawline&quot;===t||&quot;drawrect&quot;===t||&quot;drawcircle&quot;===t},r.freeMode=function(t){return&quot;lasso&quot;===t||&quot;drawclosedpath&quot;===t||&quot;drawopenpath&quot;===t},r.selectingOrDrawing=function(t){return r.freeMode(t)||r.rectMode(t)}},{}],662:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mouse-event-offset&quot;),i=t(&quot;has-hover&quot;),a=t(&quot;has-passive-events&quot;),o=t(&quot;../../lib&quot;).removeElement,s=t(&quot;../../plots/cartesian/constants&quot;),l=e.exports={};l.align=t(&quot;./align&quot;),l.getCursor=t(&quot;./cursor&quot;);var c=t(&quot;./unhover&quot;);function u(){var t=document.createElement(&quot;div&quot;);t.className=&quot;dragcover&quot;;var e=t.style;return e.position=&quot;fixed&quot;,e.left=0,e.right=0,e.top=0,e.bottom=0,e.zIndex=999999999,e.background=&quot;none&quot;,document.body.appendChild(t),t}function f(t){return n(t.changedTouches?t.changedTouches[0]:t,document.body)}l.unhover=c.wrapped,l.unhoverRaw=c.raw,l.init=function(t){var e,r,n,c,h,p,d,g,m=t.gd,v=1,y=m._context.doubleClickDelay,x=t.element;m._mouseDownTime||(m._mouseDownTime=0),x.style.pointerEvents=&quot;all&quot;,x.onmousedown=_,a?(x._ontouchstart&amp;&amp;x.removeEventListener(&quot;touchstart&quot;,x._ontouchstart),x._ontouchstart=_,x.addEventListener(&quot;touchstart&quot;,_,{passive:!1})):x.ontouchstart=_;var b=t.clampFn||function(t,e,r){return Math.abs(t)&lt;r&amp;&amp;(t=0),Math.abs(e)&lt;r&amp;&amp;(e=0),[t,e]};function _(a){m._dragged=!1,m._dragging=!0;var o=f(a);e=o[0],r=o[1],d=a.target,p=a,g=2===a.buttons||a.ctrlKey,&quot;undefined&quot;==typeof a.clientX&amp;&amp;&quot;undefined&quot;==typeof a.clientY&amp;&amp;(a.clientX=e,a.clientY=r),(n=(new Date).getTime())-m._mouseDownTime&lt;y?v+=1:(v=1,m._mouseDownTime=n),t.prepFn&amp;&amp;t.prepFn(a,e,r),i&amp;&amp;!g?(h=u()).style.cursor=window.getComputedStyle(x).cursor:i||(h=document,c=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(x).cursor),document.addEventListener(&quot;mouseup&quot;,T),document.addEventListener(&quot;touchend&quot;,T),!1!==t.dragmode&amp;&amp;(a.preventDefault(),document.addEventListener(&quot;mousemove&quot;,w),document.addEventListener(&quot;touchmove&quot;,w,{passive:!1}))}function w(n){n.preventDefault();var i=f(n),a=t.minDrag||s.MINDRAG,o=b(i[0]-e,i[1]-r,a),c=o[0],u=o[1];(c||u)&amp;&amp;(m._dragged=!0,l.unhover(m)),m._dragged&amp;&amp;t.moveFn&amp;&amp;!g&amp;&amp;(m._dragdata={element:x,dx:c,dy:u},t.moveFn(c,u))}function T(e){if(delete m._dragdata,!1!==t.dragmode&amp;&amp;(e.preventDefault(),document.removeEventListener(&quot;mousemove&quot;,w),document.removeEventListener(&quot;touchmove&quot;,w)),document.removeEventListener(&quot;mouseup&quot;,T),document.removeEventListener(&quot;touchend&quot;,T),i?o(h):c&amp;&amp;(h.documentElement.style.cursor=c,c=null),m._dragging){if(m._dragging=!1,(new Date).getTime()-m._mouseDownTime&gt;y&amp;&amp;(v=Math.max(v-1,1)),m._dragged)t.doneFn&amp;&amp;t.doneFn();else if(t.clickFn&amp;&amp;t.clickFn(v,p),!g){var r;try{r=new MouseEvent(&quot;click&quot;,e)}catch(t){var n=f(e);(r=document.createEvent(&quot;MouseEvents&quot;)).initMouseEvent(&quot;click&quot;,e.bubbles,e.cancelable,e.view,e.detail,e.screenX,e.screenY,n[0],n[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget)}d.dispatchEvent(r)}m._dragging=!1,m._dragged=!1}else m._dragged=!1}},l.coverSlip=u},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/constants&quot;:834,&quot;./align&quot;:659,&quot;./cursor&quot;:660,&quot;./unhover&quot;:663,&quot;has-hover&quot;:440,&quot;has-passive-events&quot;:441,&quot;mouse-event-offset&quot;:484}],663:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/events&quot;),i=t(&quot;../../lib/throttle&quot;),a=t(&quot;../../lib/dom&quot;).getGraphDiv,o=t(&quot;../fx/constants&quot;),s=e.exports={};s.wrapped=function(t,e,r){(t=a(t))._fullLayout&amp;&amp;i.clear(t._fullLayout._uid+o.HOVERID),s.raw(t,e,r)},s.raw=function(t,e){var r=t._fullLayout,i=t._hoverdata;e||(e={}),e.target&amp;&amp;!1===n.triggerHandler(t,&quot;plotly_beforehover&quot;,e)||(r._hoverlayer.selectAll(&quot;g&quot;).remove(),r._hoverlayer.selectAll(&quot;line&quot;).remove(),r._hoverlayer.selectAll(&quot;circle&quot;).remove(),t._hoverdata=void 0,e.target&amp;&amp;i&amp;&amp;t.emit(&quot;plotly_unhover&quot;,{event:e,points:i}))}},{&quot;../../lib/dom&quot;:766,&quot;../../lib/events&quot;:767,&quot;../../lib/throttle&quot;:804,&quot;../fx/constants&quot;:677}],664:[function(t,e,r){&quot;use strict&quot;;r.dash={valType:&quot;string&quot;,values:[&quot;solid&quot;,&quot;dot&quot;,&quot;dash&quot;,&quot;longdash&quot;,&quot;dashdot&quot;,&quot;longdashdot&quot;],dflt:&quot;solid&quot;,editType:&quot;style&quot;}},{}],665:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../color&quot;),l=t(&quot;../colorscale&quot;),c=t(&quot;../../lib&quot;),u=c.strTranslate,f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../constants/xmlns_namespaces&quot;),p=t(&quot;../../constants/alignment&quot;).LINE_SPACING,d=t(&quot;../../constants/interactions&quot;).DESELECTDIM,g=t(&quot;../../traces/scatter/subtypes&quot;),m=t(&quot;../../traces/scatter/make_bubble_size_func&quot;),v=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,y=e.exports={};y.font=function(t,e,r,n){c.isPlainObject(e)&amp;&amp;(n=e.color,r=e.size,e=e.family),e&amp;&amp;t.style(&quot;font-family&quot;,e),r+1&amp;&amp;t.style(&quot;font-size&quot;,r+&quot;px&quot;),n&amp;&amp;t.call(s.fill,n)},y.setPosition=function(t,e,r){t.attr(&quot;x&quot;,e).attr(&quot;y&quot;,r)},y.setSize=function(t,e,r){t.attr(&quot;width&quot;,e).attr(&quot;height&quot;,r)},y.setRect=function(t,e,r,n,i){t.call(y.setPosition,e,r).call(y.setSize,n,i)},y.translatePoint=function(t,e,r,n){var a=r.c2p(t.x),o=n.c2p(t.y);return!!(i(a)&amp;&amp;i(o)&amp;&amp;e.node())&amp;&amp;(&quot;text&quot;===e.node().nodeName?e.attr(&quot;x&quot;,a).attr(&quot;y&quot;,o):e.attr(&quot;transform&quot;,u(a,o)),!0)},y.translatePoints=function(t,e,r){t.each((function(t){var i=n.select(this);y.translatePoint(t,i,e,r)}))},y.hideOutsideRangePoint=function(t,e,r,n,i,a){e.attr(&quot;display&quot;,r.isPtWithinRange(t,i)&amp;&amp;n.isPtWithinRange(t,a)?null:&quot;none&quot;)},y.hideOutsideRangePoints=function(t,e){if(e._hasClipOnAxisFalse){var r=e.xaxis,i=e.yaxis;t.each((function(e){var a=e[0].trace,s=a.xcalendar,l=a.ycalendar,c=o.traceIs(a,&quot;bar-like&quot;)?&quot;.bartext&quot;:&quot;.point,.textpoint&quot;;t.selectAll(c).each((function(t){y.hideOutsideRangePoint(t,n.select(this),r,i,s,l)}))}))}},y.crispRound=function(t,e,r){return e&amp;&amp;i(e)?t._context.staticPlot?e:e&lt;1?1:Math.round(e):r||0},y.singleLineStyle=function(t,e,r,n,i){e.style(&quot;fill&quot;,&quot;none&quot;);var a=(((t||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,l=i||a.dash||&quot;&quot;;s.stroke(e,n||a.color),y.dashLine(e,l,o)},y.lineGroupStyle=function(t,e,r,i){t.style(&quot;fill&quot;,&quot;none&quot;).each((function(t){var a=(((t||[])[0]||{}).trace||{}).line||{},o=e||a.width||0,l=i||a.dash||&quot;&quot;;n.select(this).call(s.stroke,r||a.color).call(y.dashLine,l,o)}))},y.dashLine=function(t,e,r){r=+r||0,e=y.dashStyle(e,r),t.style({&quot;stroke-dasharray&quot;:e,&quot;stroke-width&quot;:r+&quot;px&quot;})},y.dashStyle=function(t,e){e=+e||1;var r=Math.max(e,3);return&quot;solid&quot;===t?t=&quot;&quot;:&quot;dot&quot;===t?t=r+&quot;px,&quot;+r+&quot;px&quot;:&quot;dash&quot;===t?t=3*r+&quot;px,&quot;+3*r+&quot;px&quot;:&quot;longdash&quot;===t?t=5*r+&quot;px,&quot;+5*r+&quot;px&quot;:&quot;dashdot&quot;===t?t=3*r+&quot;px,&quot;+r+&quot;px,&quot;+r+&quot;px,&quot;+r+&quot;px&quot;:&quot;longdashdot&quot;===t&amp;&amp;(t=5*r+&quot;px,&quot;+2*r+&quot;px,&quot;+r+&quot;px,&quot;+2*r+&quot;px&quot;),t},y.singleFillStyle=function(t){var e=(((n.select(t.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;e&amp;&amp;t.call(s.fill,e)},y.fillGroupStyle=function(t){t.style(&quot;stroke-width&quot;,0).each((function(t){var e=n.select(this);t[0].trace&amp;&amp;e.call(s.fill,t[0].trace.fillcolor)}))};var x=t(&quot;./symbol_defs&quot;);y.symbolNames=[],y.symbolFuncs=[],y.symbolNeedLines={},y.symbolNoDot={},y.symbolNoFill={},y.symbolList=[],Object.keys(x).forEach((function(t){var e=x[t],r=e.n;y.symbolList.push(r,String(r),t,r+100,String(r+100),t+&quot;-open&quot;),y.symbolNames[r]=t,y.symbolFuncs[r]=e.f,e.needLine&amp;&amp;(y.symbolNeedLines[r]=!0),e.noDot?y.symbolNoDot[r]=!0:y.symbolList.push(r+200,String(r+200),t+&quot;-dot&quot;,r+300,String(r+300),t+&quot;-open-dot&quot;),e.noFill&amp;&amp;(y.symbolNoFill[r]=!0)}));var b=y.symbolNames.length;function _(t,e){var r=t%100;return y.symbolFuncs[r](e)+(t&gt;=200?&quot;M0,0.5L0.5,0L0,-0.5L-0.5,0Z&quot;:&quot;&quot;)}y.symbolNumber=function(t){if(i(t))t=+t;else if(&quot;string&quot;==typeof t){var e=0;t.indexOf(&quot;-open&quot;)&gt;0&amp;&amp;(e=100,t=t.replace(&quot;-open&quot;,&quot;&quot;)),t.indexOf(&quot;-dot&quot;)&gt;0&amp;&amp;(e+=200,t=t.replace(&quot;-dot&quot;,&quot;&quot;)),(t=y.symbolNames.indexOf(t))&gt;=0&amp;&amp;(t+=e)}return t%100&gt;=b||t&gt;=400?0:Math.floor(Math.max(t,0))};var w={x1:1,x2:0,y1:0,y2:0},T={x1:0,x2:0,y1:1,y2:0},k=n.format(&quot;~.1f&quot;),M={radial:{node:&quot;radialGradient&quot;},radialreversed:{node:&quot;radialGradient&quot;,reversed:!0},horizontal:{node:&quot;linearGradient&quot;,attrs:w},horizontalreversed:{node:&quot;linearGradient&quot;,attrs:w,reversed:!0},vertical:{node:&quot;linearGradient&quot;,attrs:T},verticalreversed:{node:&quot;linearGradient&quot;,attrs:T,reversed:!0}};y.gradient=function(t,e,r,i,o,l){for(var u=o.length,f=M[i],h=new Array(u),p=0;p&lt;u;p++)f.reversed?h[u-1-p]=[k(100*(1-o[p][0])),o[p][1]]:h[p]=[k(100*o[p][0]),o[p][1]];var d=e._fullLayout,g=&quot;g&quot;+d._uid+&quot;-&quot;+r,m=d._defs.select(&quot;.gradients&quot;).selectAll(&quot;#&quot;+g).data([i+h.join(&quot;;&quot;)],c.identity);m.exit().remove(),m.enter().append(f.node).each((function(){var t=n.select(this);f.attrs&amp;&amp;t.attr(f.attrs),t.attr(&quot;id&quot;,g);var e=t.selectAll(&quot;stop&quot;).data(h);e.exit().remove(),e.enter().append(&quot;stop&quot;),e.each((function(t){var e=a(t[1]);n.select(this).attr({offset:t[0]+&quot;%&quot;,&quot;stop-color&quot;:s.tinyRGB(e),&quot;stop-opacity&quot;:e.getAlpha()})}))})),t.style(l,O(g,e)).style(l+&quot;-opacity&quot;,null);var v=function(t){return&quot;.&quot;+t.attr(&quot;class&quot;).replace(/\s/g,&quot;.&quot;)},y=v(n.select(t.node().parentNode))+&quot;&gt;&quot;+v(t);d._gradientUrlQueryParts[y]=1},y.initGradients=function(t){var e=t._fullLayout;c.ensureSingle(e._defs,&quot;g&quot;,&quot;gradients&quot;).selectAll(&quot;linearGradient,radialGradient&quot;).remove(),e._gradientUrlQueryParts={}},y.pointStyle=function(t,e,r){if(t.size()){var i=y.makePointStyleFns(e);t.each((function(t){y.singlePointStyle(t,n.select(this),e,i,r)}))}},y.singlePointStyle=function(t,e,r,n,i){var a=r.marker,o=a.line;if(e.style(&quot;opacity&quot;,n.selectedOpacityFn?n.selectedOpacityFn(t):void 0===t.mo?a.opacity:t.mo),n.ms2mrc){var l;l=&quot;various&quot;===t.ms||&quot;various&quot;===a.size?3:n.ms2mrc(t.ms),t.mrc=l,n.selectedSizeFn&amp;&amp;(l=t.mrc=n.selectedSizeFn(t));var u=y.symbolNumber(t.mx||a.symbol)||0;t.om=u%200&gt;=100,e.attr(&quot;d&quot;,_(u,l))}var f,h,p,d=!1;if(t.so)p=o.outlierwidth,h=o.outliercolor,f=a.outliercolor;else{var g=(o||{}).width;p=(t.mlw+1||g+1||(t.trace?(t.trace.marker.line||{}).width:0)+1)-1||0,h=&quot;mlc&quot;in t?t.mlcc=n.lineScale(t.mlc):c.isArrayOrTypedArray(o.color)?s.defaultLine:o.color,c.isArrayOrTypedArray(a.color)&amp;&amp;(f=s.defaultLine,d=!0),f=&quot;mc&quot;in t?t.mcc=n.markerScale(t.mc):a.color||&quot;rgba(0,0,0,0)&quot;,n.selectedColorFn&amp;&amp;(f=n.selectedColorFn(t))}if(t.om)e.call(s.stroke,f).style({&quot;stroke-width&quot;:(p||1)+&quot;px&quot;,fill:&quot;none&quot;});else{e.style(&quot;stroke-width&quot;,(t.isBlank?0:p)+&quot;px&quot;);var m=a.gradient,v=t.mgt;if(v?d=!0:v=m&amp;&amp;m.type,Array.isArray(v)&amp;&amp;(v=v[0],M[v]||(v=0)),v&amp;&amp;&quot;none&quot;!==v){var x=t.mgc;x?d=!0:x=m.color;var b=r.uid;d&amp;&amp;(b+=&quot;-&quot;+t.i),y.gradient(e,i,b,v,[[0,x],[1,f]],&quot;fill&quot;)}else s.fill(e,f);p&amp;&amp;s.stroke(e,h)}},y.makePointStyleFns=function(t){var e={},r=t.marker;return e.markerScale=y.tryColorscale(r,&quot;&quot;),e.lineScale=y.tryColorscale(r,&quot;line&quot;),o.traceIs(t,&quot;symbols&quot;)&amp;&amp;(e.ms2mrc=g.isBubble(t)?m(t):function(){return(r.size||6)/2}),t.selectedpoints&amp;&amp;c.extendFlat(e,y.makeSelectedPointStyleFns(t)),e},y.makeSelectedPointStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.marker||{},a=r.marker||{},s=n.marker||{},l=i.opacity,u=a.opacity,f=s.opacity,h=void 0!==u,p=void 0!==f;(c.isArrayOrTypedArray(l)||h||p)&amp;&amp;(e.selectedOpacityFn=function(t){var e=void 0===t.mo?i.opacity:t.mo;return t.selected?h?u:e:p?f:d*e});var g=i.color,m=a.color,v=s.color;(m||v)&amp;&amp;(e.selectedColorFn=function(t){var e=t.mcc||g;return t.selected?m||e:v||e});var y=i.size,x=a.size,b=s.size,_=void 0!==x,w=void 0!==b;return o.traceIs(t,&quot;symbols&quot;)&amp;&amp;(_||w)&amp;&amp;(e.selectedSizeFn=function(t){var e=t.mrc||y/2;return t.selected?_?x/2:e:w?b/2:e}),e},y.makeSelectedTextStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.textfont||{},a=r.textfont||{},o=n.textfont||{},l=i.color,c=a.color,u=o.color;return e.selectedTextColorFn=function(t){var e=t.tc||l;return t.selected?c||e:u||(c?e:s.addOpacity(e,d))},e},y.selectedPointStyle=function(t,e){if(t.size()&amp;&amp;e.selectedpoints){var r=y.makeSelectedPointStyleFns(e),i=e.marker||{},a=[];r.selectedOpacityFn&amp;&amp;a.push((function(t,e){t.style(&quot;opacity&quot;,r.selectedOpacityFn(e))})),r.selectedColorFn&amp;&amp;a.push((function(t,e){s.fill(t,r.selectedColorFn(e))})),r.selectedSizeFn&amp;&amp;a.push((function(t,e){var n=e.mx||i.symbol||0,a=r.selectedSizeFn(e);t.attr(&quot;d&quot;,_(y.symbolNumber(n),a)),e.mrc2=a})),a.length&amp;&amp;t.each((function(t){for(var e=n.select(this),r=0;r&lt;a.length;r++)a[r](e,t)}))}},y.tryColorscale=function(t,e){var r=e?c.nestedProperty(t,e).get():t;if(r){var n=r.color;if((r.colorscale||r._colorAx)&amp;&amp;c.isArrayOrTypedArray(n))return l.makeColorScaleFuncFromTrace(r)}return c.identity};var A={start:1,end:-1,middle:0,bottom:1,top:-1};function S(t,e,r,i){var a=n.select(t.node().parentNode),o=-1!==e.indexOf(&quot;top&quot;)?&quot;top&quot;:-1!==e.indexOf(&quot;bottom&quot;)?&quot;bottom&quot;:&quot;middle&quot;,s=-1!==e.indexOf(&quot;left&quot;)?&quot;end&quot;:-1!==e.indexOf(&quot;right&quot;)?&quot;start&quot;:&quot;middle&quot;,l=i?i/.8+1:0,c=(f.lineCount(t)-1)*p+1,h=A[s]*l,d=.75*r+A[o]*l+(A[o]-1)*c*r/2;t.attr(&quot;text-anchor&quot;,s),a.attr(&quot;transform&quot;,u(h,d))}function E(t,e){var r=t.ts||e.textfont.size;return i(r)&amp;&amp;r&gt;0?r:0}y.textPointStyle=function(t,e,r){if(t.size()){var i;if(e.selectedpoints){var a=y.makeSelectedTextStyleFns(e);i=a.selectedTextColorFn}var o=e.texttemplate,s=r._fullLayout;t.each((function(t){var a=n.select(this),l=o?c.extractOption(t,e,&quot;txt&quot;,&quot;texttemplate&quot;):c.extractOption(t,e,&quot;tx&quot;,&quot;text&quot;);if(l||0===l){if(o){var u=e._module.formatLabels?e._module.formatLabels(t,e,s):{},h={};v(h,e,t.i);var p=e._meta||{};l=c.texttemplateString(l,u,s._d3locale,h,t,p)}var d=t.tp||e.textposition,g=E(t,e),m=i?i(t):t.tc||e.textfont.color;a.call(y.font,t.tf||e.textfont.family,g,m).text(l).call(f.convertToTspans,r).call(S,d,g,t.mrc)}else a.remove()}))}},y.selectedTextStyle=function(t,e){if(t.size()&amp;&amp;e.selectedpoints){var r=y.makeSelectedTextStyleFns(e);t.each((function(t){var i=n.select(this),a=r.selectedTextColorFn(t),o=t.tp||e.textposition,l=E(t,e);s.fill(i,a),S(i,o,l,t.mrc2||t.mrc)}))}};function C(t,e,r,i){var a=t[0]-e[0],o=t[1]-e[1],s=r[0]-e[0],l=r[1]-e[1],c=Math.pow(a*a+o*o,.25),u=Math.pow(s*s+l*l,.25),f=(u*u*a-c*c*s)*i,h=(u*u*o-c*c*l)*i,p=3*u*(c+u),d=3*c*(c+u);return[[n.round(e[0]+(p&amp;&amp;f/p),2),n.round(e[1]+(p&amp;&amp;h/p),2)],[n.round(e[0]-(d&amp;&amp;f/d),2),n.round(e[1]-(d&amp;&amp;h/d),2)]]}y.smoothopen=function(t,e){if(t.length&lt;3)return&quot;M&quot;+t.join(&quot;L&quot;);var r,n=&quot;M&quot;+t[0],i=[];for(r=1;r&lt;t.length-1;r++)i.push(C(t[r-1],t[r],t[r+1],e));for(n+=&quot;Q&quot;+i[0][0]+&quot; &quot;+t[1],r=2;r&lt;t.length-1;r++)n+=&quot;C&quot;+i[r-2][1]+&quot; &quot;+i[r-1][0]+&quot; &quot;+t[r];return n+=&quot;Q&quot;+i[t.length-3][1]+&quot; &quot;+t[t.length-1]},y.smoothclosed=function(t,e){if(t.length&lt;3)return&quot;M&quot;+t.join(&quot;L&quot;)+&quot;Z&quot;;var r,n=&quot;M&quot;+t[0],i=t.length-1,a=[C(t[i],t[0],t[1],e)];for(r=1;r&lt;i;r++)a.push(C(t[r-1],t[r],t[r+1],e));for(a.push(C(t[i-1],t[i],t[0],e)),r=1;r&lt;=i;r++)n+=&quot;C&quot;+a[r-1][1]+&quot; &quot;+a[r][0]+&quot; &quot;+t[r];return n+=&quot;C&quot;+a[i][1]+&quot; &quot;+a[0][0]+&quot; &quot;+t[0]+&quot;Z&quot;};var L={hv:function(t,e){return&quot;H&quot;+n.round(e[0],2)+&quot;V&quot;+n.round(e[1],2)},vh:function(t,e){return&quot;V&quot;+n.round(e[1],2)+&quot;H&quot;+n.round(e[0],2)},hvh:function(t,e){return&quot;H&quot;+n.round((t[0]+e[0])/2,2)+&quot;V&quot;+n.round(e[1],2)+&quot;H&quot;+n.round(e[0],2)},vhv:function(t,e){return&quot;V&quot;+n.round((t[1]+e[1])/2,2)+&quot;H&quot;+n.round(e[0],2)+&quot;V&quot;+n.round(e[1],2)}},I=function(t,e){return&quot;L&quot;+n.round(e[0],2)+&quot;,&quot;+n.round(e[1],2)};y.steps=function(t){var e=L[t]||I;return function(t){for(var r=&quot;M&quot;+n.round(t[0][0],2)+&quot;,&quot;+n.round(t[0][1],2),i=1;i&lt;t.length;i++)r+=e(t[i-1],t[i]);return r}},y.makeTester=function(){var t=c.ensureSingleById(n.select(&quot;body&quot;),&quot;svg&quot;,&quot;js-plotly-tester&quot;,(function(t){t.attr(h.svgAttrs).style({position:&quot;absolute&quot;,left:&quot;-10000px&quot;,top:&quot;-10000px&quot;,width:&quot;9000px&quot;,height:&quot;9000px&quot;,&quot;z-index&quot;:&quot;1&quot;})})),e=c.ensureSingle(t,&quot;path&quot;,&quot;js-reference-point&quot;,(function(t){t.attr(&quot;d&quot;,&quot;M0,0H1V1H0Z&quot;).style({&quot;stroke-width&quot;:0,fill:&quot;black&quot;})}));y.tester=t,y.testref=e},y.savedBBoxes={};var P=0;function z(t){var e=t.getAttribute(&quot;data-unformatted&quot;);if(null!==e)return e+t.getAttribute(&quot;data-math&quot;)+t.getAttribute(&quot;text-anchor&quot;)+t.getAttribute(&quot;style&quot;)}function O(t,e){if(!t)return null;var r=e._context;return&quot;url('&quot;+(r._exportedPlot?&quot;&quot;:r._baseUrl||&quot;&quot;)+&quot;#&quot;+t+&quot;')&quot;}y.bBox=function(t,e,r){var i,a,o;if(r||(r=z(t)),r){if(i=y.savedBBoxes[r])return c.extendFlat({},i)}else if(1===t.childNodes.length){var s=t.childNodes[0];if(r=z(s)){var l=+s.getAttribute(&quot;x&quot;)||0,u=+s.getAttribute(&quot;y&quot;)||0,h=s.getAttribute(&quot;transform&quot;);if(!h){var p=y.bBox(s,!1,r);return l&amp;&amp;(p.left+=l,p.right+=l),u&amp;&amp;(p.top+=u,p.bottom+=u),p}if(r+=&quot;~&quot;+l+&quot;~&quot;+u+&quot;~&quot;+h,i=y.savedBBoxes[r])return c.extendFlat({},i)}}e?a=t:(o=y.tester.node(),a=t.cloneNode(!0),o.appendChild(a)),n.select(a).attr(&quot;transform&quot;,null).call(f.positionText,0,0);var d=a.getBoundingClientRect(),g=y.testref.node().getBoundingClientRect();e||o.removeChild(a);var m={height:d.height,width:d.width,left:d.left-g.left,top:d.top-g.top,right:d.right-g.left,bottom:d.bottom-g.top};return P&gt;=1e4&amp;&amp;(y.savedBBoxes={},P=0),r&amp;&amp;(y.savedBBoxes[r]=m),P++,c.extendFlat({},m)},y.setClipUrl=function(t,e,r){t.attr(&quot;clip-path&quot;,O(e,r))},y.getTranslate=function(t){var e=(t[t.attr?&quot;attr&quot;:&quot;getAttribute&quot;](&quot;transform&quot;)||&quot;&quot;).replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(&quot; &quot;)})).split(&quot; &quot;);return{x:+e[0]||0,y:+e[1]||0}},y.setTranslate=function(t,e,r){var n=t.attr?&quot;attr&quot;:&quot;getAttribute&quot;,i=t.attr?&quot;attr&quot;:&quot;setAttribute&quot;,a=t[n](&quot;transform&quot;)||&quot;&quot;;return e=e||0,r=r||0,a=a.replace(/(\btranslate\(.*?\);?)/,&quot;&quot;).trim(),a=(a+=u(e,r)).trim(),t[i](&quot;transform&quot;,a),a},y.getScale=function(t){var e=(t[t.attr?&quot;attr&quot;:&quot;getAttribute&quot;](&quot;transform&quot;)||&quot;&quot;).replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(&quot; &quot;)})).split(&quot; &quot;);return{x:+e[0]||1,y:+e[1]||1}},y.setScale=function(t,e,r){var n=t.attr?&quot;attr&quot;:&quot;getAttribute&quot;,i=t.attr?&quot;attr&quot;:&quot;setAttribute&quot;,a=t[n](&quot;transform&quot;)||&quot;&quot;;return e=e||1,r=r||1,a=a.replace(/(\bscale\(.*?\);?)/,&quot;&quot;).trim(),a=(a+=&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;).trim(),t[i](&quot;transform&quot;,a),a};var D=/\s*sc.*/;y.setPointGroupScale=function(t,e,r){if(e=e||1,r=r||1,t){var n=1===e&amp;&amp;1===r?&quot;&quot;:&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;;t.each((function(){var t=(this.getAttribute(&quot;transform&quot;)||&quot;&quot;).replace(D,&quot;&quot;);t=(t+=n).trim(),this.setAttribute(&quot;transform&quot;,t)}))}};var R=/translate\([^)]*\)\s*$/;y.setTextPointsScale=function(t,e,r){t&amp;&amp;t.each((function(){var t,i=n.select(this),a=i.select(&quot;text&quot;);if(a.node()){var o=parseFloat(a.attr(&quot;x&quot;)||0),s=parseFloat(a.attr(&quot;y&quot;)||0),l=(i.attr(&quot;transform&quot;)||&quot;&quot;).match(R);t=1===e&amp;&amp;1===r?[]:[u(o,s),&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;,u(-o,-s)],l&amp;&amp;t.push(l),i.attr(&quot;transform&quot;,t.join(&quot;&quot;))}}))}},{&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/alignment&quot;:745,&quot;../../constants/interactions&quot;:752,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../registry&quot;:911,&quot;../../traces/scatter/make_bubble_size_func&quot;:1204,&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../color&quot;:643,&quot;../colorscale&quot;:655,&quot;./symbol_defs&quot;:666,d3:169,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],666:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports={circle:{n:0,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;}},square:{n:1,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;}},diamond:{n:2,f:function(t){var e=n.round(1.3*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;Z&quot;}},cross:{n:3,f:function(t){var e=n.round(.4*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+r+&quot;,&quot;+e+&quot;H&quot;+e+&quot;V&quot;+r+&quot;H-&quot;+e+&quot;V&quot;+e+&quot;H-&quot;+r+&quot;V-&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+r+&quot;H&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+r+&quot;Z&quot;}},x:{n:4,f:function(t){var e=n.round(.8*t/Math.sqrt(2),2),r=&quot;l&quot;+e+&quot;,&quot;+e,i=&quot;l&quot;+e+&quot;,-&quot;+e,a=&quot;l-&quot;+e+&quot;,-&quot;+e,o=&quot;l-&quot;+e+&quot;,&quot;+e;return&quot;M0,&quot;+e+r+i+a+i+a+o+a+o+r+o+r+&quot;Z&quot;}},&quot;triangle-up&quot;:{n:5,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+e+&quot;,&quot;+n.round(t/2,2)+&quot;H&quot;+e+&quot;L0,-&quot;+n.round(t,2)+&quot;Z&quot;}},&quot;triangle-down&quot;:{n:6,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+e+&quot;,-&quot;+n.round(t/2,2)+&quot;H&quot;+e+&quot;L0,&quot;+n.round(t,2)+&quot;Z&quot;}},&quot;triangle-left&quot;:{n:7,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M&quot;+n.round(t/2,2)+&quot;,-&quot;+e+&quot;V&quot;+e+&quot;L-&quot;+n.round(t,2)+&quot;,0Z&quot;}},&quot;triangle-right&quot;:{n:8,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+n.round(t/2,2)+&quot;,-&quot;+e+&quot;V&quot;+e+&quot;L&quot;+n.round(t,2)+&quot;,0Z&quot;}},&quot;triangle-ne&quot;:{n:9,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M-&quot;+r+&quot;,-&quot;+e+&quot;H&quot;+e+&quot;V&quot;+r+&quot;Z&quot;}},&quot;triangle-se&quot;:{n:10,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+e+&quot;H-&quot;+r+&quot;Z&quot;}},&quot;triangle-sw&quot;:{n:11,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+r+&quot;Z&quot;}},&quot;triangle-nw&quot;:{n:12,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M-&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+e+&quot;H&quot;+r+&quot;Z&quot;}},pentagon:{n:13,f:function(t){var e=n.round(.951*t,2),r=n.round(.588*t,2),i=n.round(-t,2),a=n.round(-.309*t,2);return&quot;M&quot;+e+&quot;,&quot;+a+&quot;L&quot;+r+&quot;,&quot;+n.round(.809*t,2)+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,&quot;+a+&quot;L0,&quot;+i+&quot;Z&quot;}},hexagon:{n:14,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return&quot;M&quot;+i+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;L0,&quot;+e+&quot;L-&quot;+i+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;L0,-&quot;+e+&quot;Z&quot;}},hexagon2:{n:15,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return&quot;M-&quot;+r+&quot;,&quot;+i+&quot;H&quot;+r+&quot;L&quot;+e+&quot;,0L&quot;+r+&quot;,-&quot;+i+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},octagon:{n:16,f:function(t){var e=n.round(.924*t,2),r=n.round(.383*t,2);return&quot;M-&quot;+r+&quot;,-&quot;+e+&quot;H&quot;+r+&quot;L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;L&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;Z&quot;}},star:{n:17,f:function(t){var e=1.4*t,r=n.round(.225*e,2),i=n.round(.951*e,2),a=n.round(.363*e,2),o=n.round(.588*e,2),s=n.round(-e,2),l=n.round(-.309*e,2),c=n.round(.118*e,2),u=n.round(.809*e,2);return&quot;M&quot;+r+&quot;,&quot;+l+&quot;H&quot;+i+&quot;L&quot;+a+&quot;,&quot;+c+&quot;L&quot;+o+&quot;,&quot;+u+&quot;L0,&quot;+n.round(.382*e,2)+&quot;L-&quot;+o+&quot;,&quot;+u+&quot;L-&quot;+a+&quot;,&quot;+c+&quot;L-&quot;+i+&quot;,&quot;+l+&quot;H-&quot;+r+&quot;L0,&quot;+s+&quot;Z&quot;}},hexagram:{n:18,f:function(t){var e=n.round(.66*t,2),r=n.round(.38*t,2),i=n.round(.76*t,2);return&quot;M-&quot;+i+&quot;,0l-&quot;+r+&quot;,-&quot;+e+&quot;h&quot;+i+&quot;l&quot;+r+&quot;,-&quot;+e+&quot;l&quot;+r+&quot;,&quot;+e+&quot;h&quot;+i+&quot;l-&quot;+r+&quot;,&quot;+e+&quot;l&quot;+r+&quot;,&quot;+e+&quot;h-&quot;+i+&quot;l-&quot;+r+&quot;,&quot;+e+&quot;l-&quot;+r+&quot;,-&quot;+e+&quot;h-&quot;+i+&quot;Z&quot;}},&quot;star-triangle-up&quot;:{n:19,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=&quot;A &quot;+a+&quot;,&quot;+a+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,&quot;+r+o+e+&quot;,&quot;+r+o+&quot;0,-&quot;+i+o+&quot;-&quot;+e+&quot;,&quot;+r+&quot;Z&quot;}},&quot;star-triangle-down&quot;:{n:20,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=&quot;A &quot;+a+&quot;,&quot;+a+&quot; 0 0 1 &quot;;return&quot;M&quot;+e+&quot;,-&quot;+r+o+&quot;-&quot;+e+&quot;,-&quot;+r+o+&quot;0,&quot;+i+o+e+&quot;,-&quot;+r+&quot;Z&quot;}},&quot;star-square&quot;:{n:21,f:function(t){var e=n.round(1.1*t,2),r=n.round(2*t,2),i=&quot;A &quot;+r+&quot;,&quot;+r+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,-&quot;+e+i+&quot;-&quot;+e+&quot;,&quot;+e+i+e+&quot;,&quot;+e+i+e+&quot;,-&quot;+e+i+&quot;-&quot;+e+&quot;,-&quot;+e+&quot;Z&quot;}},&quot;star-diamond&quot;:{n:22,f:function(t){var e=n.round(1.4*t,2),r=n.round(1.9*t,2),i=&quot;A &quot;+r+&quot;,&quot;+r+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,0&quot;+i+&quot;0,&quot;+e+i+e+&quot;,0&quot;+i+&quot;0,-&quot;+e+i+&quot;-&quot;+e+&quot;,0Z&quot;}},&quot;diamond-tall&quot;:{n:23,f:function(t){var e=n.round(.7*t,2),r=n.round(1.4*t,2);return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,0L0,-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},&quot;diamond-wide&quot;:{n:24,f:function(t){var e=n.round(1.4*t,2),r=n.round(.7*t,2);return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,0L0,-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},hourglass:{n:25,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;L&quot;+e+&quot;,-&quot;+e+&quot;H-&quot;+e+&quot;Z&quot;},noDot:!0},bowtie:{n:26,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;V-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e+&quot;V-&quot;+e+&quot;Z&quot;},noDot:!0},&quot;circle-cross&quot;:{n:27,f:function(t){var e=n.round(t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;},needLine:!0,noDot:!0},&quot;circle-x&quot;:{n:28,f:function(t){var e=n.round(t,2),r=n.round(t/Math.sqrt(2),2);return&quot;M&quot;+r+&quot;,&quot;+r+&quot;L-&quot;+r+&quot;,-&quot;+r+&quot;M&quot;+r+&quot;,-&quot;+r+&quot;L-&quot;+r+&quot;,&quot;+r+&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;},needLine:!0,noDot:!0},&quot;square-cross&quot;:{n:29,f:function(t){var e=n.round(t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;square-x&quot;:{n:30,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e+&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e+&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;diamond-cross&quot;:{n:31,f:function(t){var e=n.round(1.3*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;ZM0,-&quot;+e+&quot;V&quot;+e+&quot;M-&quot;+e+&quot;,0H&quot;+e},needLine:!0,noDot:!0},&quot;diamond-x&quot;:{n:32,f:function(t){var e=n.round(1.3*t,2),r=n.round(.65*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;ZM-&quot;+r+&quot;,-&quot;+r+&quot;L&quot;+r+&quot;,&quot;+r+&quot;M-&quot;+r+&quot;,&quot;+r+&quot;L&quot;+r+&quot;,-&quot;+r},needLine:!0,noDot:!0},&quot;cross-thin&quot;:{n:33,f:function(t){var e=n.round(1.4*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;x-thin&quot;:{n:34,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e+&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(t){var e=n.round(1.2*t,2),r=n.round(.85*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+r+&quot;,&quot;+r+&quot;L-&quot;+r+&quot;,-&quot;+r+&quot;M&quot;+r+&quot;,-&quot;+r+&quot;L-&quot;+r+&quot;,&quot;+r},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(t){var e=n.round(t/2,2),r=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;m-&quot;+r+&quot;,0V&quot;+r+&quot;M&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+r+&quot;m0,-&quot;+r+&quot;H&quot;+r},needLine:!0,noFill:!0},&quot;y-up&quot;:{n:37,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+e+&quot;,&quot;+i+&quot;L0,0M&quot;+e+&quot;,&quot;+i+&quot;L0,0M0,-&quot;+r+&quot;L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-down&quot;:{n:38,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+e+&quot;,-&quot;+i+&quot;L0,0M&quot;+e+&quot;,-&quot;+i+&quot;L0,0M0,&quot;+r+&quot;L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-left&quot;:{n:39,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M&quot;+i+&quot;,&quot;+e+&quot;L0,0M&quot;+i+&quot;,-&quot;+e+&quot;L0,0M-&quot;+r+&quot;,0L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-right&quot;:{n:40,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+i+&quot;,&quot;+e+&quot;L0,0M-&quot;+i+&quot;,-&quot;+e+&quot;L0,0M&quot;+r+&quot;,0L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;line-ew&quot;:{n:41,f:function(t){var e=n.round(1.4*t,2);return&quot;M&quot;+e+&quot;,0H-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-ns&quot;:{n:42,f:function(t){var e=n.round(1.4*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-ne&quot;:{n:43,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-nw&quot;:{n:44,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;arrow-up&quot;:{n:45,f:function(t){var e=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},noDot:!0},&quot;arrow-down&quot;:{n:46,f:function(t){var e=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,-&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},noDot:!0},&quot;arrow-left&quot;:{n:47,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,0L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},noDot:!0},&quot;arrow-right&quot;:{n:48,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},noDot:!0},&quot;arrow-bar-up&quot;:{n:49,f:function(t){var e=n.round(t,2);return&quot;M-&quot;+e+&quot;,0H&quot;+e+&quot;M0,0L-&quot;+e+&quot;,&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-down&quot;:{n:50,f:function(t){var e=n.round(t,2);return&quot;M-&quot;+e+&quot;,0H&quot;+e+&quot;M0,0L-&quot;+e+&quot;,-&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-left&quot;:{n:51,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,-&quot;+r+&quot;V&quot;+r+&quot;M0,0L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-right&quot;:{n:52,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,-&quot;+r+&quot;V&quot;+r+&quot;M0,0L-&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},needLine:!0,noDot:!0}}},{d3:169}],667:[function(t,e,r){&quot;use strict&quot;;e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;percent&quot;,&quot;constant&quot;,&quot;sqrt&quot;,&quot;data&quot;],editType:&quot;calc&quot;},symmetric:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},array:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},arrayminus:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},value:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;calc&quot;},valueminus:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;calc&quot;},traceref:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;style&quot;},tracerefminus:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;style&quot;},copy_ystyle:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},copy_zstyle:{valType:&quot;boolean&quot;,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},thickness:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;,_deprecated:{opacity:{valType:&quot;number&quot;,editType:&quot;style&quot;}}}},{}],668:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;./compute_error&quot;);function l(t,e,r,i){var l=e[&quot;error_&quot;+i]||{},c=[];if(l.visible&amp;&amp;-1!==[&quot;linear&quot;,&quot;log&quot;].indexOf(r.type)){for(var u=s(l),f=0;f&lt;t.length;f++){var h=t[f],p=h.i;if(void 0===p)p=f;else if(null===p)continue;var d=h[i];if(n(r.c2l(d))){var g=u(d,p);if(n(g[0])&amp;&amp;n(g[1])){var m=h[i+&quot;s&quot;]=d-g[0],v=h[i+&quot;h&quot;]=d+g[1];c.push(m,v)}}}var y=r._id,x=e._extremes[y],b=a.findExtremes(r,c,o.extendFlat({tozero:x.opts.tozero},{padded:!0}));x.min=x.min.concat(b.min),x.max=x.max.concat(b.max)}}e.exports=function(t){for(var e=t.calcdata,r=0;r&lt;e.length;r++){var n=e[r],o=n[0].trace;if(!0===o.visible&amp;&amp;i.traceIs(o,&quot;errorBarsOK&quot;)){var s=a.getFromId(t,o.xaxis),c=a.getFromId(t,o.yaxis);l(n,o,s,&quot;x&quot;),l(n,o,c,&quot;y&quot;)}}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./compute_error&quot;:669,&quot;fast-isnumeric&quot;:241}],669:[function(t,e,r){&quot;use strict&quot;;function n(t,e){return&quot;percent&quot;===t?function(t){return Math.abs(t*e/100)}:&quot;constant&quot;===t?function(){return Math.abs(e)}:&quot;sqrt&quot;===t?function(t){return Math.sqrt(Math.abs(t))}:void 0}e.exports=function(t){var e=t.type,r=t.symmetric;if(&quot;data&quot;===e){var i=t.array||[];if(r)return function(t,e){var r=+i[e];return[r,r]};var a=t.arrayminus||[];return function(t,e){var r=+i[e],n=+a[e];return isNaN(r)&amp;&amp;isNaN(n)?[NaN,NaN]:[n||0,r||0]}}var o=n(e,t.value),s=n(e,t.valueminus);return r||void 0===t.valueminus?function(t){var e=o(t);return[e,e]}:function(t){return[s(t),o(t)]}}},{}],670:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../plot_api/plot_template&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){var c=&quot;error_&quot;+l.axis,u=o.newContainer(e,c),f=t[c]||{};function h(t,e){return a.coerce(f,u,s,t,e)}if(!1!==h(&quot;visible&quot;,void 0!==f.array||void 0!==f.value||&quot;sqrt&quot;===f.type)){var p=h(&quot;type&quot;,&quot;array&quot;in f?&quot;data&quot;:&quot;percent&quot;),d=!0;&quot;sqrt&quot;!==p&amp;&amp;(d=h(&quot;symmetric&quot;,!((&quot;data&quot;===p?&quot;arrayminus&quot;:&quot;valueminus&quot;)in f))),&quot;data&quot;===p?(h(&quot;array&quot;),h(&quot;traceref&quot;),d||(h(&quot;arrayminus&quot;),h(&quot;tracerefminus&quot;))):&quot;percent&quot;!==p&amp;&amp;&quot;constant&quot;!==p||(h(&quot;value&quot;),d||h(&quot;valueminus&quot;));var g=&quot;copy_&quot;+l.inherit+&quot;style&quot;;if(l.inherit)(e[&quot;error_&quot;+l.inherit]||{}).visible&amp;&amp;h(g,!(f.color||n(f.thickness)||n(f.width)));l.inherit&amp;&amp;u[g]||(h(&quot;color&quot;,r),h(&quot;thickness&quot;),h(&quot;width&quot;,i.traceIs(e,&quot;gl3d&quot;)?0:4))}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../registry&quot;:911,&quot;./attributes&quot;:667,&quot;fast-isnumeric&quot;:241}],671:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/edit_types&quot;).overrideAll,a=t(&quot;./attributes&quot;),o={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var s={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a),error_z:n.extendFlat({},a)};delete s.error_x.copy_ystyle,delete s.error_y.copy_ystyle,delete s.error_z.copy_ystyle,delete s.error_z.copy_zstyle,e.exports={moduleType:&quot;component&quot;,name:&quot;errorbars&quot;,schema:{traces:{scatter:o,bar:o,histogram:o,scatter3d:i(s,&quot;calc&quot;,&quot;nested&quot;),scattergl:i(o,&quot;calc&quot;,&quot;nested&quot;)}},supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),makeComputeError:t(&quot;./compute_error&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverInfo:function(t,e,r){(e.error_y||{}).visible&amp;&amp;(r.yerr=t.yh-t.y,e.error_y.symmetric||(r.yerrneg=t.y-t.ys));(e.error_x||{}).visible&amp;&amp;(r.xerr=t.xh-t.x,e.error_x.symmetric||(r.xerrneg=t.x-t.xs))}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;./attributes&quot;:667,&quot;./calc&quot;:668,&quot;./compute_error&quot;:669,&quot;./defaults&quot;:670,&quot;./plot&quot;:672,&quot;./style&quot;:673}],672:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../drawing&quot;),o=t(&quot;../../traces/scatter/subtypes&quot;);e.exports=function(t,e,r,s){var l=r.xaxis,c=r.yaxis,u=s&amp;&amp;s.duration&gt;0;e.each((function(e){var f,h=e[0].trace,p=h.error_x||{},d=h.error_y||{};h.ids&amp;&amp;(f=function(t){return t.id});var g=o.hasMarkers(h)&amp;&amp;h.marker.maxdisplayed&gt;0;d.visible||p.visible||(e=[]);var m=n.select(this).selectAll(&quot;g.errorbar&quot;).data(e,f);if(m.exit().remove(),e.length){p.visible||m.selectAll(&quot;path.xerror&quot;).remove(),d.visible||m.selectAll(&quot;path.yerror&quot;).remove(),m.style(&quot;opacity&quot;,1);var v=m.enter().append(&quot;g&quot;).classed(&quot;errorbar&quot;,!0);u&amp;&amp;v.style(&quot;opacity&quot;,0).transition().duration(s.duration).style(&quot;opacity&quot;,1),a.setClipUrl(m,r.layerClipId,t),m.each((function(t){var e=n.select(this),r=function(t,e,r){var n={x:e.c2p(t.x),y:r.c2p(t.y)};void 0!==t.yh&amp;&amp;(n.yh=r.c2p(t.yh),n.ys=r.c2p(t.ys),i(n.ys)||(n.noYS=!0,n.ys=r.c2p(t.ys,!0)));void 0!==t.xh&amp;&amp;(n.xh=e.c2p(t.xh),n.xs=e.c2p(t.xs),i(n.xs)||(n.noXS=!0,n.xs=e.c2p(t.xs,!0)));return n}(t,l,c);if(!g||t.vis){var a,o=e.select(&quot;path.yerror&quot;);if(d.visible&amp;&amp;i(r.x)&amp;&amp;i(r.yh)&amp;&amp;i(r.ys)){var f=d.width;a=&quot;M&quot;+(r.x-f)+&quot;,&quot;+r.yh+&quot;h&quot;+2*f+&quot;m-&quot;+f+&quot;,0V&quot;+r.ys,r.noYS||(a+=&quot;m-&quot;+f+&quot;,0h&quot;+2*f),!o.size()?o=e.append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).classed(&quot;yerror&quot;,!0):u&amp;&amp;(o=o.transition().duration(s.duration).ease(s.easing)),o.attr(&quot;d&quot;,a)}else o.remove();var h=e.select(&quot;path.xerror&quot;);if(p.visible&amp;&amp;i(r.y)&amp;&amp;i(r.xh)&amp;&amp;i(r.xs)){var m=(p.copy_ystyle?d:p).width;a=&quot;M&quot;+r.xh+&quot;,&quot;+(r.y-m)+&quot;v&quot;+2*m+&quot;m0,-&quot;+m+&quot;H&quot;+r.xs,r.noXS||(a+=&quot;m0,-&quot;+m+&quot;v&quot;+2*m),!h.size()?h=e.append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).classed(&quot;xerror&quot;,!0):u&amp;&amp;(h=h.transition().duration(s.duration).ease(s.easing)),h.attr(&quot;d&quot;,a)}else h.remove()}}))}}))}},{&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../drawing&quot;:665,d3:169,&quot;fast-isnumeric&quot;:241}],673:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../color&quot;);e.exports=function(t){t.each((function(t){var e=t[0].trace,r=e.error_y||{},a=e.error_x||{},o=n.select(this);o.selectAll(&quot;path.yerror&quot;).style(&quot;stroke-width&quot;,r.thickness+&quot;px&quot;).call(i.stroke,r.color),a.copy_ystyle&amp;&amp;(a=r),o.selectAll(&quot;path.xerror&quot;).style(&quot;stroke-width&quot;,a.thickness+&quot;px&quot;).call(i.stroke,a.color)}))}},{&quot;../color&quot;:643,d3:169}],674:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;./layout_attributes&quot;).hoverlabel,a=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={hoverlabel:{bgcolor:a({},i.bgcolor,{arrayOk:!0}),bordercolor:a({},i.bordercolor,{arrayOk:!0}),font:n({arrayOk:!0,editType:&quot;none&quot;}),align:a({},i.align,{arrayOk:!0}),namelength:a({},i.namelength,{arrayOk:!0}),editType:&quot;none&quot;}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;./layout_attributes&quot;:684}],675:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;);function a(t,e,r,i){i=i||n.identity,Array.isArray(t)&amp;&amp;(e[0][r]=i(t))}e.exports=function(t){var e=t.calcdata,r=t._fullLayout;function o(t){return function(e){return n.coerceHoverinfo({hoverinfo:e},{_module:t._module},r)}}for(var s=0;s&lt;e.length;s++){var l=e[s],c=l[0].trace;if(!i.traceIs(c,&quot;pie-like&quot;)){var u=i.traceIs(c,&quot;2dMap&quot;)?a:n.fillArray;u(c.hoverinfo,l,&quot;hi&quot;,o(c)),c.hovertemplate&amp;&amp;u(c.hovertemplate,l,&quot;ht&quot;),c.hoverlabel&amp;&amp;(u(c.hoverlabel.bgcolor,l,&quot;hbg&quot;),u(c.hoverlabel.bordercolor,l,&quot;hbc&quot;),u(c.hoverlabel.font.size,l,&quot;hts&quot;),u(c.hoverlabel.font.color,l,&quot;htc&quot;),u(c.hoverlabel.font.family,l,&quot;htf&quot;),u(c.hoverlabel.namelength,l,&quot;hnl&quot;),u(c.hoverlabel.align,l,&quot;hta&quot;))}}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],676:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./hover&quot;).hover;e.exports=function(t,e,r){var a=n.getComponentMethod(&quot;annotations&quot;,&quot;onClick&quot;)(t,t._hoverdata);function o(){t.emit(&quot;plotly_click&quot;,{points:t._hoverdata,event:e})}void 0!==r&amp;&amp;i(t,e,r,!0),t._hoverdata&amp;&amp;e&amp;&amp;e.target&amp;&amp;(a&amp;&amp;a.then?a.then(o):o(),e.stopImmediatePropagation&amp;&amp;e.stopImmediatePropagation())}},{&quot;../../registry&quot;:911,&quot;./hover&quot;:680}],677:[function(t,e,r){&quot;use strict&quot;;e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:&quot;Arial, sans-serif&quot;,HOVERMINTIME:50,HOVERID:&quot;-hover&quot;}},{}],678:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./hoverlabel_defaults&quot;);e.exports=function(t,e,r,o){var s=n.extendFlat({},o.hoverlabel);e.hovertemplate&amp;&amp;(s.namelength=-1),a(t,e,(function(r,a){return n.coerce(t,e,i,r,a)}),s)}},{&quot;../../lib&quot;:778,&quot;./attributes&quot;:674,&quot;./hoverlabel_defaults&quot;:681}],679:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);r.getSubplot=function(t){return t.subplot||t.xaxis+t.yaxis||t.geo},r.isTraceInSubplots=function(t,e){if(&quot;splom&quot;===t.type){for(var n=t.xaxes||[],i=t.yaxes||[],a=0;a&lt;n.length;a++)for(var o=0;o&lt;i.length;o++)if(-1!==e.indexOf(n[a]+i[o]))return!0;return!1}return-1!==e.indexOf(r.getSubplot(t))},r.flat=function(t,e){for(var r=new Array(t.length),n=0;n&lt;t.length;n++)r[n]=e;return r},r.p2c=function(t,e){for(var r=new Array(t.length),n=0;n&lt;t.length;n++)r[n]=t[n].p2c(e);return r},r.getDistanceFunction=function(t,e,n,i){return&quot;closest&quot;===t?i||r.quadrature(e,n):&quot;x&quot;===t.charAt(0)?e:n},r.getClosest=function(t,e,r){if(!1!==r.index)r.index&gt;=0&amp;&amp;r.index&lt;t.length?r.distance=0:r.index=!1;else for(var n=0;n&lt;t.length;n++){var i=e(t[n]);i&lt;=r.distance&amp;&amp;(r.index=n,r.distance=i)}return r},r.inbox=function(t,e,r){return t*e&lt;0||0===t?r:1/0},r.quadrature=function(t,e){return function(r){var n=t(r),i=e(r);return Math.sqrt(n*n+i*i)}},r.makeEventData=function(t,e,n){var i=&quot;index&quot;in t?t.index:t.pointNumber,a={data:e._input,fullData:e,curveNumber:e.index,pointNumber:i};if(e._indexToPoints){var o=e._indexToPoints[i];1===o.length?a.pointIndex=o[0]:a.pointIndices=o}else a.pointIndex=i;return e._module.eventData?a=e._module.eventData(a,t,e,n,i):(&quot;xVal&quot;in t?a.x=t.xVal:&quot;x&quot;in t&amp;&amp;(a.x=t.x),&quot;yVal&quot;in t?a.y=t.yVal:&quot;y&quot;in t&amp;&amp;(a.y=t.y),t.xa&amp;&amp;(a.xaxis=t.xa),t.ya&amp;&amp;(a.yaxis=t.ya),void 0!==t.zLabelVal&amp;&amp;(a.z=t.zLabelVal)),r.appendArrayPointValue(a,e,i),a},r.appendArrayPointValue=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s&lt;i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){var u=o(n.nestedProperty(e,l).get(),r);void 0!==u&amp;&amp;(t[c]=u)}}},r.appendArrayMultiPointValues=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s&lt;i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){for(var u=n.nestedProperty(e,l).get(),f=new Array(r.length),h=0;h&lt;r.length;h++)f[h]=o(u,r[h]);t[c]=f}}};var i={ids:&quot;id&quot;,locations:&quot;location&quot;,labels:&quot;label&quot;,values:&quot;value&quot;,&quot;marker.colors&quot;:&quot;color&quot;,parents:&quot;parent&quot;};function a(t){return i[t]||t}function o(t,e){return Array.isArray(e)?Array.isArray(t)&amp;&amp;Array.isArray(t[e[0]])?t[e[0]][e[1]]:void 0:t[e]}var s={x:!0,y:!0},l={&quot;x unified&quot;:!0,&quot;y unified&quot;:!0};r.isUnifiedHover=function(t){return&quot;string&quot;==typeof t&amp;&amp;!!l[t]},r.isXYhover=function(t){return&quot;string&quot;==typeof t&amp;&amp;!!s[t]}},{&quot;../../lib&quot;:778}],680:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=o.strRotate,c=t(&quot;../../lib/events&quot;),u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../lib/override_cursor&quot;),h=t(&quot;../drawing&quot;),p=t(&quot;../color&quot;),d=t(&quot;../dragelement&quot;),g=t(&quot;../../plots/cartesian/axes&quot;),m=t(&quot;../../registry&quot;),v=t(&quot;./helpers&quot;),y=t(&quot;./constants&quot;),x=t(&quot;../legend/defaults&quot;),b=t(&quot;../legend/draw&quot;),_=y.YANGLE,w=Math.PI*_/180,T=1/Math.sin(w),k=Math.cos(w),M=Math.sin(w),A=y.HOVERARROWSIZE,S=y.HOVERTEXTPAD;function E(t){return[t.trace.index,t.index,t.x0,t.y0,t.name,t.attr,t.xa,t.ya||&quot;&quot;].join(&quot;,&quot;)}r.hover=function(t,e,r,a){t=o.getGraphDiv(t),o.throttle(t._fullLayout._uid+y.HOVERID,y.HOVERMINTIME,(function(){!function(t,e,r,a){r||(r=&quot;xy&quot;);var s=Array.isArray(r)?r:[r],l=t._fullLayout,u=l._plots||[],h=u[r],g=l._has(&quot;cartesian&quot;);if(h){var y=h.overlays.map((function(t){return t.id}));s=s.concat(y)}for(var x=s.length,b=new Array(x),_=new Array(x),w=!1,k=0;k&lt;x;k++){var M=s[k];if(u[M])w=!0,b[k]=u[M].xaxis,_[k]=u[M].yaxis;else{if(!l[M]||!l[M]._subplot)return void o.warn(&quot;Unrecognized subplot: &quot;+M);var A=l[M]._subplot;b[k]=A.xaxis,_[k]=A.yaxis}}var S=e.hovermode||l.hovermode;S&amp;&amp;!w&amp;&amp;(S=&quot;closest&quot;);if(-1===[&quot;x&quot;,&quot;y&quot;,&quot;closest&quot;,&quot;x unified&quot;,&quot;y unified&quot;].indexOf(S)||!t.calcdata||t.querySelector(&quot;.zoombox&quot;)||t._dragging)return d.unhoverRaw(t,e);var C,I,R,F,B,N,j,U,V,q,H,G,Y,W=-1===l.hoverdistance?1/0:l.hoverdistance,X=-1===l.spikedistance?1/0:l.spikedistance,Z=[],J=[],K={hLinePoint:null,vLinePoint:null},Q=!1;if(Array.isArray(e))for(S=&quot;array&quot;,R=0;R&lt;e.length;R++)(B=t.calcdata[e[R].curveNumber||0])&amp;&amp;(N=B[0].trace,&quot;skip&quot;!==B[0].trace.hoverinfo&amp;&amp;(J.push(B),&quot;h&quot;===N.orientation&amp;&amp;(Q=!0)));else{for(F=0;F&lt;t.calcdata.length;F++)B=t.calcdata[F],&quot;skip&quot;!==(N=B[0].trace).hoverinfo&amp;&amp;v.isTraceInSubplots(N,s)&amp;&amp;(J.push(B),&quot;h&quot;===N.orientation&amp;&amp;(Q=!0));var $,tt;if(!e.target)$=&quot;xpx&quot;in e?e.xpx:b[0]._length/2,tt=&quot;ypx&quot;in e?e.ypx:_[0]._length/2;else{if(!1===c.triggerHandler(t,&quot;plotly_beforehover&quot;,e))return;var et=e.target.getBoundingClientRect();$=e.clientX-et.left,tt=e.clientY-et.top,l._calcInverseTransform(t);var rt=o.apply3DTransform(l._invTransform)($,tt);if($=rt[0],tt=rt[1],$&lt;0||$&gt;b[0]._length||tt&lt;0||tt&gt;_[0]._length)return d.unhoverRaw(t,e)}if(e.pointerX=$+b[0]._offset,e.pointerY=tt+_[0]._offset,C=&quot;xval&quot;in e?v.flat(s,e.xval):v.p2c(b,$),I=&quot;yval&quot;in e?v.flat(s,e.yval):v.p2c(_,tt),!i(C[0])||!i(I[0]))return o.warn(&quot;Fx.hover failed&quot;,e,t),d.unhoverRaw(t,e)}var nt=1/0;function it(t,r){for(F=0;F&lt;J.length;F++)if((B=J[F])&amp;&amp;B[0]&amp;&amp;B[0].trace&amp;&amp;!0===(N=B[0].trace).visible&amp;&amp;0!==N._length&amp;&amp;-1===[&quot;carpet&quot;,&quot;contourcarpet&quot;].indexOf(N._module.name)){if(&quot;splom&quot;===N.type?j=s[U=0]:(j=v.getSubplot(N),U=s.indexOf(j)),V=S,v.isUnifiedHover(V)&amp;&amp;(V=V.charAt(0)),G={cd:B,trace:N,xa:b[U],ya:_[U],maxHoverDistance:W,maxSpikeDistance:X,index:!1,distance:Math.min(nt,W),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:p.defaultLine,name:N.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},l[j]&amp;&amp;(G.subplot=l[j]._subplot),l._splomScenes&amp;&amp;l._splomScenes[N.uid]&amp;&amp;(G.scene=l._splomScenes[N.uid]),Y=Z.length,&quot;array&quot;===V){var n=e[F];&quot;pointNumber&quot;in n?(G.index=n.pointNumber,V=&quot;closest&quot;):(V=&quot;&quot;,&quot;xval&quot;in n&amp;&amp;(q=n.xval,V=&quot;x&quot;),&quot;yval&quot;in n&amp;&amp;(H=n.yval,V=V?&quot;closest&quot;:&quot;y&quot;))}else void 0!==t&amp;&amp;void 0!==r?(q=t,H=r):(q=C[U],H=I[U]);if(0!==W)if(N._module&amp;&amp;N._module.hoverPoints){var a=N._module.hoverPoints(G,q,H,V,l._hoverlayer);if(a)for(var c,u=0;u&lt;a.length;u++)c=a[u],i(c.x0)&amp;&amp;i(c.y0)&amp;&amp;Z.push(z(c,S))}else o.log(&quot;Unrecognized trace type in hover:&quot;,N);if(&quot;closest&quot;===S&amp;&amp;Z.length&gt;Y&amp;&amp;(Z.splice(0,Y),nt=Z[0].distance),g&amp;&amp;0!==X&amp;&amp;0===Z.length){G.distance=X,G.index=!1;var f=N._module.hoverPoints(G,q,H,&quot;closest&quot;,l._hoverlayer);if(f&amp;&amp;(f=f.filter((function(t){return t.spikeDistance&lt;=X}))),f&amp;&amp;f.length){var h,d=f.filter((function(t){return t.xa.showspikes&amp;&amp;&quot;hovered data&quot;!==t.xa.spikesnap}));if(d.length){var m=d[0];i(m.x0)&amp;&amp;i(m.y0)&amp;&amp;(h=ot(m),(!K.vLinePoint||K.vLinePoint.spikeDistance&gt;h.spikeDistance)&amp;&amp;(K.vLinePoint=h))}var y=f.filter((function(t){return t.ya.showspikes&amp;&amp;&quot;hovered data&quot;!==t.ya.spikesnap}));if(y.length){var x=y[0];i(x.x0)&amp;&amp;i(x.y0)&amp;&amp;(h=ot(x),(!K.hLinePoint||K.hLinePoint.spikeDistance&gt;h.spikeDistance)&amp;&amp;(K.hLinePoint=h))}}}}}function at(t,e){for(var r,n=null,i=1/0,a=0;a&lt;t.length;a++)(r=t[a].spikeDistance)&lt;=i&amp;&amp;r&lt;=e&amp;&amp;(n=t[a],i=r);return n}function ot(t){return t?{xa:t.xa,ya:t.ya,x:void 0!==t.xSpike?t.xSpike:(t.x0+t.x1)/2,y:void 0!==t.ySpike?t.ySpike:(t.y0+t.y1)/2,distance:t.distance,spikeDistance:t.spikeDistance,curveNumber:t.trace.index,color:t.color,pointNumber:t.index}:null}it();var st={fullLayout:l,container:l._hoverlayer,outerContainer:l._paperdiv,event:e},lt=t._spikepoints,ct={vLinePoint:K.vLinePoint,hLinePoint:K.hLinePoint};if(t._spikepoints=ct,g&amp;&amp;0!==X&amp;&amp;0!==Z.length){var ut=at(Z.filter((function(t){return t.ya.showspikes})),X);K.hLinePoint=ot(ut);var ft=at(Z.filter((function(t){return t.xa.showspikes})),X);K.vLinePoint=ot(ft)}if(0===Z.length){var ht=d.unhoverRaw(t,e);return!g||null===K.hLinePoint&amp;&amp;null===K.vLinePoint||D(lt)&amp;&amp;O(t,K,st),ht}g&amp;&amp;D(lt)&amp;&amp;O(t,K,st);if(Z.sort((function(t,e){return t.distance-e.distance})),v.isXYhover(V)&amp;&amp;0!==Z[0].length&amp;&amp;&quot;splom&quot;!==Z[0].trace.type){var pt=Z[0],dt=pt.cd[pt.index],gt=&quot;group&quot;===l.boxmode||&quot;group&quot;===l.violinmode,mt=pt.xVal,vt=pt.xa;&quot;category&quot;===vt.type&amp;&amp;(mt=vt._categoriesMap[mt]),&quot;date&quot;===vt.type&amp;&amp;(mt=vt.d2c(mt)),dt&amp;&amp;dt.t&amp;&amp;dt.t.posLetter===vt._id&amp;&amp;gt&amp;&amp;(mt+=dt.t.dPos);var yt=pt.yVal;&quot;category&quot;===(vt=pt.ya).type&amp;&amp;(yt=vt._categoriesMap[yt]),&quot;date&quot;===vt.type&amp;&amp;(yt=vt.d2c(yt)),dt&amp;&amp;dt.t&amp;&amp;dt.t.posLetter===vt._id&amp;&amp;gt&amp;&amp;(yt+=dt.t.dPos),it(mt,yt);var xt={};Z=Z.filter((function(t){var e=E(t);if(!xt[e])return xt[e]=!0,xt[e]}))}var bt=t._hoverdata,_t=[];for(R=0;R&lt;Z.length;R++){var wt=Z[R],Tt=v.makeEventData(wt,wt.trace,wt.cd);if(!1!==wt.hovertemplate){var kt=!1;wt.cd[wt.index]&amp;&amp;wt.cd[wt.index].ht&amp;&amp;(kt=wt.cd[wt.index].ht),wt.hovertemplate=kt||wt.trace.hovertemplate||!1}wt.eventData=[Tt],_t.push(Tt)}t._hoverdata=_t;var Mt=&quot;y&quot;===S&amp;&amp;(J.length&gt;1||Z.length&gt;1)||&quot;closest&quot;===S&amp;&amp;Q&amp;&amp;Z.length&gt;1,At=p.combine(l.plot_bgcolor||p.background,l.paper_bgcolor),St={hovermode:S,rotateLabels:Mt,bgColor:At,container:l._hoverlayer,outerContainer:l._paperdiv,commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance},Et=L(Z,St,t);v.isUnifiedHover(S)||(!function(t,e,r){var n,i,a,o,s,l,c,u=0,f=1,h=t.size(),p=new Array(h),d=0;function g(t){var e=t[0],r=t[t.length-1];if(i=e.pmin-e.pos-e.dp+e.size,a=r.pos+r.dp+r.size-e.pmax,i&gt;.01){for(s=t.length-1;s&gt;=0;s--)t[s].dp+=i;n=!1}if(!(a&lt;.01)){if(i&lt;-.01){for(s=t.length-1;s&gt;=0;s--)t[s].dp-=a;n=!1}if(n){var c=0;for(o=0;o&lt;t.length;o++)(l=t[o]).pos+l.dp+l.size&gt;e.pmax&amp;&amp;c++;for(o=t.length-1;o&gt;=0&amp;&amp;!(c&lt;=0);o--)(l=t[o]).pos&gt;e.pmax-1&amp;&amp;(l.del=!0,c--);for(o=0;o&lt;t.length&amp;&amp;!(c&lt;=0);o++)if((l=t[o]).pos&lt;e.pmin+1)for(l.del=!0,c--,a=2*l.size,s=t.length-1;s&gt;=0;s--)t[s].dp-=a;for(o=t.length-1;o&gt;=0&amp;&amp;!(c&lt;=0);o--)(l=t[o]).pos+l.dp+l.size&gt;e.pmax&amp;&amp;(l.del=!0,c--)}}}t.each((function(t){var n=t[e],i=&quot;x&quot;===n._id.charAt(0),a=n.range;0===d&amp;&amp;a&amp;&amp;a[0]&gt;a[1]!==i&amp;&amp;(f=-1),p[d++]=[{datum:t,traceIndex:t.trace.index,dp:0,pos:t.pos,posref:t.posref,size:t.by*(i?T:1)/2,pmin:0,pmax:i?r.width:r.height}]})),p.sort((function(t,e){return t[0].posref-e[0].posref||f*(e[0].traceIndex-t[0].traceIndex)}));for(;!n&amp;&amp;u&lt;=h;){for(u++,n=!0,o=0;o&lt;p.length-1;){var m=p[o],v=p[o+1],y=m[m.length-1],x=v[0];if((i=y.pos+y.dp+y.size-x.pos-x.dp+x.size)&gt;.01&amp;&amp;y.pmin===x.pmin&amp;&amp;y.pmax===x.pmax){for(s=v.length-1;s&gt;=0;s--)v[s].dp+=i;for(m.push.apply(m,v),p.splice(o+1,1),c=0,s=m.length-1;s&gt;=0;s--)c+=m[s].dp;for(a=c/m.length,s=m.length-1;s&gt;=0;s--)m[s].dp-=a;n=!1}else o++}p.forEach(g)}for(o=p.length-1;o&gt;=0;o--){var b=p[o];for(s=b.length-1;s&gt;=0;s--){var _=b[s],w=_.datum;w.offset=_.dp,w.del=_.del}}}(Et,Mt?&quot;xa&quot;:&quot;ya&quot;,l),P(Et,Mt,l._invScaleX,l._invScaleY));if(e.target&amp;&amp;e.target.tagName){var Ct=m.getComponentMethod(&quot;annotations&quot;,&quot;hasClickToShow&quot;)(t,_t);f(n.select(e.target),Ct?&quot;pointer&quot;:&quot;&quot;)}if(!e.target||a||!function(t,e,r){if(!r||r.length!==t._hoverdata.length)return!0;for(var n=r.length-1;n&gt;=0;n--){var i=r[n],a=t._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers))return!0}return!1}(t,0,bt))return;bt&amp;&amp;t.emit(&quot;plotly_unhover&quot;,{event:e,points:bt});t.emit(&quot;plotly_hover&quot;,{event:e,points:t._hoverdata,xaxes:b,yaxes:_,xvals:C,yvals:I})}(t,e,r,a)}))},r.loneHover=function(t,e){var r=!0;Array.isArray(t)||(r=!1,t=[t]);var i=t.map((function(t){return{color:t.color||p.defaultLine,x0:t.x0||t.x||0,x1:t.x1||t.x||0,y0:t.y0||t.y||0,y1:t.y1||t.y||0,xLabel:t.xLabel,yLabel:t.yLabel,zLabel:t.zLabel,text:t.text,name:t.name,idealAlign:t.idealAlign,borderColor:t.borderColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontColor:t.fontColor,nameLength:t.nameLength,textAlign:t.textAlign,trace:t.trace||{index:0,hoverinfo:&quot;&quot;},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:t.hovertemplate||!1,eventData:t.eventData||!1,hovertemplateLabels:t.hovertemplateLabels||!1}})),a=n.select(e.container),o=e.outerContainer?n.select(e.outerContainer):a,s={hovermode:&quot;closest&quot;,rotateLabels:!1,bgColor:e.bgColor||p.background,container:a,outerContainer:o},l=L(i,s,e.gd),c=0,u=0;l.sort((function(t,e){return t.y0-e.y0})).each((function(t,r){var n=t.y0-t.by/2;t.offset=n-5&lt;c?c-n+5:0,c=n+t.by+t.offset,r===e.anchorIndex&amp;&amp;(u=t.offset)})).each((function(t){t.offset-=u}));var f=e.gd._fullLayout._invScaleX,h=e.gd._fullLayout._invScaleY;return P(l,s.rotateLabels,f,h),r?l:l.node()};var C=/&lt;extra&gt;([\s\S]*)&lt;\/extra&gt;/;function L(t,e,r){var i=r._fullLayout,a=e.hovermode,c=e.rotateLabels,f=e.bgColor,d=e.container,g=e.outerContainer,m=e.commonLabelOpts||{},w=e.fontFamily||y.HOVERFONT,T=e.fontSize||y.HOVERFONTSIZE,k=t[0],M=k.xa,C=k.ya,L=&quot;y&quot;===a.charAt(0)?&quot;yLabel&quot;:&quot;xLabel&quot;,P=k[L],z=(String(P)||&quot;&quot;).split(&quot; &quot;)[0],O=g.node().getBoundingClientRect(),D=O.top,R=O.width,F=O.height,B=void 0!==P&amp;&amp;k.distance&lt;=e.hoverdistance&amp;&amp;(&quot;x&quot;===a||&quot;y&quot;===a);if(B){var N,j,U=!0;for(N=0;N&lt;t.length;N++)if(U&amp;&amp;void 0===t[N].zLabel&amp;&amp;(U=!1),j=t[N].hoverinfo||t[N].trace.hoverinfo){var V=Array.isArray(j)?j:j.split(&quot;+&quot;);if(-1===V.indexOf(&quot;all&quot;)&amp;&amp;-1===V.indexOf(a)){B=!1;break}}U&amp;&amp;(B=!1)}var q=d.selectAll(&quot;g.axistext&quot;).data(B?[0]:[]);function H(t){return t.filter((function(t){return void 0!==t.zLabelVal||(t[L]||&quot;&quot;).split(&quot; &quot;)[0]===z}))}if(q.enter().append(&quot;g&quot;).classed(&quot;axistext&quot;,!0),q.exit().remove(),q.each((function(){var e=n.select(this),l=o.ensureSingle(e,&quot;path&quot;,&quot;&quot;,(function(t){t.style({&quot;stroke-width&quot;:&quot;1px&quot;})})),c=o.ensureSingle(e,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),f=m.bgcolor||p.defaultLine,d=m.bordercolor||p.contrast(f),g=p.contrast(f),v={family:m.font.family||w,size:m.font.size||T,color:m.font.color||g};l.style({fill:f,stroke:d}),c.text(P).call(h.font,v).call(u.positionText,0,0).call(u.convertToTspans,r),e.attr(&quot;transform&quot;,&quot;&quot;);var y,x,b=c.node().getBoundingClientRect();if(&quot;x&quot;===a){var _=&quot;top&quot;===M.side?&quot;-&quot;:&quot;&quot;;c.attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(u.positionText,0,&quot;top&quot;===M.side?D-b.bottom-A-S:D-b.top+A+S),y=M._offset+(k.x0+k.x1)/2,x=C._offset+(&quot;top&quot;===M.side?0:C._length);var E=b.width/2+S;y&lt;E?(y=E,l.attr(&quot;d&quot;,&quot;M-&quot;+(E-A)+&quot;,0L-&quot;+(E-2*A)+&quot;,&quot;+_+A+&quot;H&quot;+(S+b.width/2)+&quot;v&quot;+_+(2*S+b.height)+&quot;H-&quot;+E+&quot;V&quot;+_+A+&quot;Z&quot;)):y&gt;i.width-E?(y=i.width-E,l.attr(&quot;d&quot;,&quot;M&quot;+(E-A)+&quot;,0L&quot;+E+&quot;,&quot;+_+A+&quot;v&quot;+_+(2*S+b.height)+&quot;H-&quot;+E+&quot;V&quot;+_+A+&quot;H&quot;+(E-2*A)+&quot;Z&quot;)):l.attr(&quot;d&quot;,&quot;M0,0L&quot;+A+&quot;,&quot;+_+A+&quot;H&quot;+(S+b.width/2)+&quot;v&quot;+_+(2*S+b.height)+&quot;H-&quot;+(S+b.width/2)+&quot;V&quot;+_+A+&quot;H-&quot;+A+&quot;Z&quot;)}else{var L,I,z;&quot;right&quot;===C.side?(L=&quot;start&quot;,I=1,z=&quot;&quot;,y=M._offset+M._length):(L=&quot;end&quot;,I=-1,z=&quot;-&quot;,y=M._offset),x=C._offset+(k.y0+k.y1)/2,c.attr(&quot;text-anchor&quot;,L),l.attr(&quot;d&quot;,&quot;M0,0L&quot;+z+A+&quot;,&quot;+A+&quot;V&quot;+(S+b.height/2)+&quot;h&quot;+z+(2*S+b.width)+&quot;V-&quot;+(S+b.height/2)+&quot;H&quot;+z+A+&quot;V-&quot;+A+&quot;Z&quot;);var O,R=b.height/2,F=D-b.top-R,B=&quot;clip&quot;+i._uid+&quot;commonlabel&quot;+C._id;if(y&lt;b.width+2*S+A){O=&quot;M-&quot;+(A+S)+&quot;-&quot;+R+&quot;h-&quot;+(b.width-S)+&quot;V&quot;+R+&quot;h&quot;+(b.width-S)+&quot;Z&quot;;var N=b.width-y+S;u.positionText(c,N,F),&quot;end&quot;===L&amp;&amp;c.selectAll(&quot;tspan&quot;).each((function(){var t=n.select(this),e=h.tester.append(&quot;text&quot;).text(t.text()).call(h.font,v),r=e.node().getBoundingClientRect();Math.round(r.width)&lt;Math.round(b.width)&amp;&amp;t.attr(&quot;x&quot;,N-r.width),e.remove()}))}else u.positionText(c,I*(S+A),F),O=null;var j=i._topclips.selectAll(&quot;#&quot;+B).data(O?[0]:[]);j.enter().append(&quot;clipPath&quot;).attr(&quot;id&quot;,B).append(&quot;path&quot;),j.exit().remove(),j.select(&quot;path&quot;).attr(&quot;d&quot;,O),h.setClipUrl(c,O?B:null,r)}e.attr(&quot;transform&quot;,s(y,x)),t=H(t)})),v.isUnifiedHover(a)){if(d.selectAll(&quot;g.hovertext&quot;).remove(),void 0!==P&amp;&amp;k.distance&lt;=e.hoverdistance&amp;&amp;(t=H(t)),0===t.length)return;var G={showlegend:!0,legend:{title:{text:P,font:i.hoverlabel.font},font:i.hoverlabel.font,bgcolor:i.hoverlabel.bgcolor,bordercolor:i.hoverlabel.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:&quot;v&quot;}},Y={};x(G,Y,r._fullData);var W=Y.legend;W.entries=[];for(var X=0;X&lt;t.length;X++){var Z=I(t[X],!0,a,i,P),J=Z[0],K=Z[1],Q=t[X];Q.name=K,Q.text=&quot;&quot;!==K?K+&quot; : &quot;+J:J;var $=Q.cd[Q.index];$&amp;&amp;($.mc&amp;&amp;(Q.mc=$.mc),$.mcc&amp;&amp;(Q.mc=$.mcc),$.mlc&amp;&amp;(Q.mlc=$.mlc),$.mlcc&amp;&amp;(Q.mlc=$.mlcc),$.mlw&amp;&amp;(Q.mlw=$.mlw),$.mrc&amp;&amp;(Q.mrc=$.mrc),$.dir&amp;&amp;(Q.dir=$.dir)),Q._distinct=!0,W.entries.push([Q])}W.entries.sort((function(t,e){return t[0].trace.index-e[0].trace.index})),W.layer=d,b(r,W);var tt=o.mean(t.map((function(t){return(t.y0+t.y1)/2}))),et=o.mean(t.map((function(t){return(t.x0+t.x1)/2}))),rt=d.select(&quot;g.legend&quot;),nt=rt.node().getBoundingClientRect();et+=M._offset,tt+=C._offset-nt.height/2;var it=nt.width+2*S;!(et+it&lt;=R)&amp;&amp;et-it&gt;=0?et-=it:et+=2*S;var at=nt.height+2*S,ot=tt+at&gt;=F;return at&lt;=F&amp;&amp;(tt&lt;=D?tt=C._offset+2*S:ot&amp;&amp;(tt=F-at)),rt.attr(&quot;transform&quot;,s(et,tt)),rt}var st=d.selectAll(&quot;g.hovertext&quot;).data(t,(function(t){return E(t)}));return st.enter().append(&quot;g&quot;).classed(&quot;hovertext&quot;,!0).each((function(){var t=n.select(this);t.append(&quot;rect&quot;).call(p.fill,p.addOpacity(f,.8)),t.append(&quot;text&quot;).classed(&quot;name&quot;,!0),t.append(&quot;path&quot;).style(&quot;stroke-width&quot;,&quot;1px&quot;),t.append(&quot;text&quot;).classed(&quot;nums&quot;,!0).call(h.font,w,T)})),st.exit().remove(),st.each((function(t){var e=n.select(this).attr(&quot;transform&quot;,&quot;&quot;),o=t.color;Array.isArray(o)&amp;&amp;(o=o[t.eventData[0].pointNumber]);var d=t.bgcolor||o,g=p.combine(p.opacity(d)?d:p.defaultLine,f),m=p.combine(p.opacity(o)?o:p.defaultLine,f),v=t.borderColor||p.contrast(g),y=I(t,B,a,i,P,e),x=y[0],b=y[1],k=e.select(&quot;text.nums&quot;).call(h.font,t.fontFamily||w,t.fontSize||T,t.fontColor||v).text(x).attr(&quot;data-notex&quot;,1).call(u.positionText,0,0).call(u.convertToTspans,r),M=e.select(&quot;text.name&quot;),E=0,C=0;if(b&amp;&amp;b!==x){M.call(h.font,t.fontFamily||w,t.fontSize||T,m).text(b).attr(&quot;data-notex&quot;,1).call(u.positionText,0,0).call(u.convertToTspans,r);var L=M.node().getBoundingClientRect();E=L.width+2*S,C=L.height+2*S}else M.remove(),e.select(&quot;rect&quot;).remove();e.select(&quot;path&quot;).style({fill:g,stroke:v});var z,O,N=k.node().getBoundingClientRect(),j=t.xa._offset+(t.x0+t.x1)/2,U=t.ya._offset+(t.y0+t.y1)/2,V=Math.abs(t.x1-t.x0),q=Math.abs(t.y1-t.y0),H=N.width+A+S+E;if(t.ty0=D-N.top,t.bx=N.width+2*S,t.by=Math.max(N.height+2*S,C),t.anchor=&quot;start&quot;,t.txwidth=N.width,t.tx2width=E,t.offset=0,c)t.pos=j,z=U+q/2+H&lt;=F,O=U-q/2-H&gt;=0,&quot;top&quot;!==t.idealAlign&amp;&amp;z||!O?z?(U+=q/2,t.anchor=&quot;start&quot;):t.anchor=&quot;middle&quot;:(U-=q/2,t.anchor=&quot;end&quot;);else if(t.pos=U,z=j+V/2+H&lt;=R,O=j-V/2-H&gt;=0,&quot;left&quot;!==t.idealAlign&amp;&amp;z||!O)if(z)j+=V/2,t.anchor=&quot;start&quot;;else{t.anchor=&quot;middle&quot;;var G=H/2,Y=j+G-R,W=j-G;Y&gt;0&amp;&amp;(j-=Y),W&lt;0&amp;&amp;(j+=-W)}else j-=V/2,t.anchor=&quot;end&quot;;k.attr(&quot;text-anchor&quot;,t.anchor),E&amp;&amp;M.attr(&quot;text-anchor&quot;,t.anchor),e.attr(&quot;transform&quot;,s(j,U)+(c?l(_):&quot;&quot;))})),st}function I(t,e,r,n,i,a){var s=&quot;&quot;,l=&quot;&quot;;void 0!==t.nameOverride&amp;&amp;(t.name=t.nameOverride),t.name&amp;&amp;(t.trace._meta&amp;&amp;(t.name=o.templateString(t.name,t.trace._meta)),s=R(t.name,t.nameLength)),void 0!==t.zLabel?(void 0!==t.xLabel&amp;&amp;(l+=&quot;x: &quot;+t.xLabel+&quot;&lt;br&gt;&quot;),void 0!==t.yLabel&amp;&amp;(l+=&quot;y: &quot;+t.yLabel+&quot;&lt;br&gt;&quot;),&quot;choropleth&quot;!==t.trace.type&amp;&amp;&quot;choroplethmapbox&quot;!==t.trace.type&amp;&amp;(l+=(l?&quot;z: &quot;:&quot;&quot;)+t.zLabel)):e&amp;&amp;t[r.charAt(0)+&quot;Label&quot;]===i?l=t[(&quot;x&quot;===r.charAt(0)?&quot;y&quot;:&quot;x&quot;)+&quot;Label&quot;]||&quot;&quot;:void 0===t.xLabel?void 0!==t.yLabel&amp;&amp;&quot;scattercarpet&quot;!==t.trace.type&amp;&amp;(l=t.yLabel):l=void 0===t.yLabel?t.xLabel:&quot;(&quot;+t.xLabel+&quot;, &quot;+t.yLabel+&quot;)&quot;,!t.text&amp;&amp;0!==t.text||Array.isArray(t.text)||(l+=(l?&quot;&lt;br&gt;&quot;:&quot;&quot;)+t.text),void 0!==t.extraText&amp;&amp;(l+=(l?&quot;&lt;br&gt;&quot;:&quot;&quot;)+t.extraText),a&amp;&amp;&quot;&quot;===l&amp;&amp;!t.hovertemplate&amp;&amp;(&quot;&quot;===s&amp;&amp;a.remove(),l=s);var c=n._d3locale,u=t.hovertemplate||!1,f=t.hovertemplateLabels||t,h=t.eventData[0]||{};return u&amp;&amp;(l=(l=o.hovertemplateString(u,f,c,h,t.trace._meta)).replace(C,(function(e,r){return s=R(r,t.nameLength),&quot;&quot;}))),[l,s]}function P(t,e,r,i){var a=function(t){return t*r},o=function(t){return t*i};t.each((function(t){var r=n.select(this);if(t.del)return r.remove();var i=r.select(&quot;text.nums&quot;),s=t.anchor,l=&quot;end&quot;===s?-1:1,c={start:1,end:-1,middle:0}[s],f=c*(A+S),p=f+c*(t.txwidth+S),d=0,g=t.offset,m=&quot;middle&quot;===s;m&amp;&amp;(f-=t.tx2width/2,p+=t.txwidth/2+S),e&amp;&amp;(g*=-M,d=t.offset*k),r.select(&quot;path&quot;).attr(&quot;d&quot;,m?&quot;M-&quot;+a(t.bx/2+t.tx2width/2)+&quot;,&quot;+o(g-t.by/2)+&quot;h&quot;+a(t.bx)+&quot;v&quot;+o(t.by)+&quot;h-&quot;+a(t.bx)+&quot;Z&quot;:&quot;M0,0L&quot;+a(l*A+d)+&quot;,&quot;+o(A+g)+&quot;v&quot;+o(t.by/2-A)+&quot;h&quot;+a(l*t.bx)+&quot;v-&quot;+o(t.by)+&quot;H&quot;+a(l*A+d)+&quot;V&quot;+o(g-A)+&quot;Z&quot;);var v=d+f,y=g+t.ty0-t.by/2+S,x=t.textAlign||&quot;auto&quot;;&quot;auto&quot;!==x&amp;&amp;(&quot;left&quot;===x&amp;&amp;&quot;start&quot;!==s?(i.attr(&quot;text-anchor&quot;,&quot;start&quot;),v=m?-t.bx/2-t.tx2width/2+S:-t.bx-S):&quot;right&quot;===x&amp;&amp;&quot;end&quot;!==s&amp;&amp;(i.attr(&quot;text-anchor&quot;,&quot;end&quot;),v=m?t.bx/2-t.tx2width/2-S:t.bx+S)),i.call(u.positionText,a(v),o(y)),t.tx2width&amp;&amp;(r.select(&quot;text.name&quot;).call(u.positionText,a(p+c*S+d),o(g+t.ty0-t.by/2+S)),r.select(&quot;rect&quot;).call(h.setRect,a(p+(c-1)*t.tx2width/2+d),o(g-t.by/2-1),a(t.tx2width),o(t.by+2)))}))}function z(t,e){var r=t.index,n=t.trace||{},a=t.cd[0],s=t.cd[r]||{};function l(t){return t||i(t)&amp;&amp;0===t}var c=Array.isArray(r)?function(t,e){var i=o.castOption(a,r,t);return l(i)?i:o.extractOption({},n,&quot;&quot;,e)}:function(t,e){return o.extractOption(s,n,t,e)};function u(e,r,n){var i=c(r,n);l(i)&amp;&amp;(t[e]=i)}if(u(&quot;hoverinfo&quot;,&quot;hi&quot;,&quot;hoverinfo&quot;),u(&quot;bgcolor&quot;,&quot;hbg&quot;,&quot;hoverlabel.bgcolor&quot;),u(&quot;borderColor&quot;,&quot;hbc&quot;,&quot;hoverlabel.bordercolor&quot;),u(&quot;fontFamily&quot;,&quot;htf&quot;,&quot;hoverlabel.font.family&quot;),u(&quot;fontSize&quot;,&quot;hts&quot;,&quot;hoverlabel.font.size&quot;),u(&quot;fontColor&quot;,&quot;htc&quot;,&quot;hoverlabel.font.color&quot;),u(&quot;nameLength&quot;,&quot;hnl&quot;,&quot;hoverlabel.namelength&quot;),u(&quot;textAlign&quot;,&quot;hta&quot;,&quot;hoverlabel.align&quot;),t.posref=&quot;y&quot;===e||&quot;closest&quot;===e&amp;&amp;&quot;h&quot;===n.orientation?t.xa._offset+(t.x0+t.x1)/2:t.ya._offset+(t.y0+t.y1)/2,t.x0=o.constrain(t.x0,0,t.xa._length),t.x1=o.constrain(t.x1,0,t.xa._length),t.y0=o.constrain(t.y0,0,t.ya._length),t.y1=o.constrain(t.y1,0,t.ya._length),void 0!==t.xLabelVal&amp;&amp;(t.xLabel=&quot;xLabel&quot;in t?t.xLabel:g.hoverLabelText(t.xa,t.xLabelVal),t.xVal=t.xa.c2d(t.xLabelVal)),void 0!==t.yLabelVal&amp;&amp;(t.yLabel=&quot;yLabel&quot;in t?t.yLabel:g.hoverLabelText(t.ya,t.yLabelVal),t.yVal=t.ya.c2d(t.yLabelVal)),void 0!==t.zLabelVal&amp;&amp;void 0===t.zLabel&amp;&amp;(t.zLabel=String(t.zLabelVal)),!(isNaN(t.xerr)||&quot;log&quot;===t.xa.type&amp;&amp;t.xerr&lt;=0)){var f=g.tickText(t.xa,t.xa.c2l(t.xerr),&quot;hover&quot;).text;void 0!==t.xerrneg?t.xLabel+=&quot; +&quot;+f+&quot; / -&quot;+g.tickText(t.xa,t.xa.c2l(t.xerrneg),&quot;hover&quot;).text:t.xLabel+=&quot; \xb1 &quot;+f,&quot;x&quot;===e&amp;&amp;(t.distance+=1)}if(!(isNaN(t.yerr)||&quot;log&quot;===t.ya.type&amp;&amp;t.yerr&lt;=0)){var h=g.tickText(t.ya,t.ya.c2l(t.yerr),&quot;hover&quot;).text;void 0!==t.yerrneg?t.yLabel+=&quot; +&quot;+h+&quot; / -&quot;+g.tickText(t.ya,t.ya.c2l(t.yerrneg),&quot;hover&quot;).text:t.yLabel+=&quot; \xb1 &quot;+h,&quot;y&quot;===e&amp;&amp;(t.distance+=1)}var p=t.hoverinfo||t.trace.hoverinfo;return p&amp;&amp;&quot;all&quot;!==p&amp;&amp;(-1===(p=Array.isArray(p)?p:p.split(&quot;+&quot;)).indexOf(&quot;x&quot;)&amp;&amp;(t.xLabel=void 0),-1===p.indexOf(&quot;y&quot;)&amp;&amp;(t.yLabel=void 0),-1===p.indexOf(&quot;z&quot;)&amp;&amp;(t.zLabel=void 0),-1===p.indexOf(&quot;text&quot;)&amp;&amp;(t.text=void 0),-1===p.indexOf(&quot;name&quot;)&amp;&amp;(t.name=void 0)),t}function O(t,e,r){var n,i,o=r.container,s=r.fullLayout,l=s._size,c=r.event,u=!!e.hLinePoint,f=!!e.vLinePoint;if(o.selectAll(&quot;.spikeline&quot;).remove(),f||u){var d=p.combine(s.plot_bgcolor,s.paper_bgcolor);if(u){var m,v,y=e.hLinePoint;n=y&amp;&amp;y.xa,&quot;cursor&quot;===(i=y&amp;&amp;y.ya).spikesnap?(m=c.pointerX,v=c.pointerY):(m=n._offset+y.x,v=i._offset+y.y);var x,b,_=a.readability(y.color,d)&lt;1.5?p.contrast(d):y.color,w=i.spikemode,T=i.spikethickness,k=i.spikecolor||_,M=g.getPxPosition(t,i);if(-1!==w.indexOf(&quot;toaxis&quot;)||-1!==w.indexOf(&quot;across&quot;)){if(-1!==w.indexOf(&quot;toaxis&quot;)&amp;&amp;(x=M,b=m),-1!==w.indexOf(&quot;across&quot;)){var A=i._counterDomainMin,S=i._counterDomainMax;&quot;free&quot;===i.anchor&amp;&amp;(A=Math.min(A,i.position),S=Math.max(S,i.position)),x=l.l+A*l.w,b=l.l+S*l.w}o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:x,x2:b,y1:v,y2:v,&quot;stroke-width&quot;:T,stroke:k,&quot;stroke-dasharray&quot;:h.dashStyle(i.spikedash,T)}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0),o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:x,x2:b,y1:v,y2:v,&quot;stroke-width&quot;:T+2,stroke:d}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0)}-1!==w.indexOf(&quot;marker&quot;)&amp;&amp;o.insert(&quot;circle&quot;,&quot;:first-child&quot;).attr({cx:M+(&quot;right&quot;!==i.side?T:-T),cy:v,r:T,fill:k}).classed(&quot;spikeline&quot;,!0)}if(f){var E,C,L=e.vLinePoint;n=L&amp;&amp;L.xa,i=L&amp;&amp;L.ya,&quot;cursor&quot;===n.spikesnap?(E=c.pointerX,C=c.pointerY):(E=n._offset+L.x,C=i._offset+L.y);var I,P,z=a.readability(L.color,d)&lt;1.5?p.contrast(d):L.color,O=n.spikemode,D=n.spikethickness,R=n.spikecolor||z,F=g.getPxPosition(t,n);if(-1!==O.indexOf(&quot;toaxis&quot;)||-1!==O.indexOf(&quot;across&quot;)){if(-1!==O.indexOf(&quot;toaxis&quot;)&amp;&amp;(I=F,P=C),-1!==O.indexOf(&quot;across&quot;)){var B=n._counterDomainMin,N=n._counterDomainMax;&quot;free&quot;===n.anchor&amp;&amp;(B=Math.min(B,n.position),N=Math.max(N,n.position)),I=l.t+(1-N)*l.h,P=l.t+(1-B)*l.h}o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:E,x2:E,y1:I,y2:P,&quot;stroke-width&quot;:D,stroke:R,&quot;stroke-dasharray&quot;:h.dashStyle(n.spikedash,D)}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0),o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:E,x2:E,y1:I,y2:P,&quot;stroke-width&quot;:D+2,stroke:d}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0)}-1!==O.indexOf(&quot;marker&quot;)&amp;&amp;o.insert(&quot;circle&quot;,&quot;:first-child&quot;).attr({cx:E,cy:F-(&quot;top&quot;!==n.side?D:-D),r:D,fill:R}).classed(&quot;spikeline&quot;,!0)}}}function D(t,e){return!e||(e.vLinePoint!==t._spikepoints.vLinePoint||e.hLinePoint!==t._spikepoints.hLinePoint)}function R(t,e){return u.plainText(t||&quot;&quot;,{len:e,allowedTags:[&quot;br&quot;,&quot;sub&quot;,&quot;sup&quot;,&quot;b&quot;,&quot;i&quot;,&quot;em&quot;]})}},{&quot;../../lib&quot;:778,&quot;../../lib/events&quot;:767,&quot;../../lib/override_cursor&quot;:789,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../legend/defaults&quot;:695,&quot;../legend/draw&quot;:696,&quot;./constants&quot;:677,&quot;./helpers&quot;:679,d3:169,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],681:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;./helpers&quot;).isUnifiedHover;e.exports=function(t,e,r,o){function s(t){o.font[t]||(o.font[t]=e.legend?e.legend.font[t]:e.font[t])}o=o||{},e&amp;&amp;a(e.hovermode)&amp;&amp;(o.font||(o.font={}),s(&quot;size&quot;),s(&quot;family&quot;),s(&quot;color&quot;),e.legend?(o.bgcolor||(o.bgcolor=i.combine(e.legend.bgcolor,e.paper_bgcolor)),o.bordercolor||(o.bordercolor=e.legend.bordercolor)):o.bgcolor||(o.bgcolor=e.paper_bgcolor)),r(&quot;hoverlabel.bgcolor&quot;,o.bgcolor),r(&quot;hoverlabel.bordercolor&quot;,o.bordercolor),r(&quot;hoverlabel.namelength&quot;,o.namelength),n.coerceFont(r,&quot;hoverlabel.font&quot;,o.font),r(&quot;hoverlabel.align&quot;,o.align)}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;./helpers&quot;:679}],682:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){function a(r,a){return void 0!==e[r]?e[r]:n.coerce(t,e,i,r,a)}var o,s=a(&quot;clickmode&quot;);return e._has(&quot;cartesian&quot;)?s.indexOf(&quot;select&quot;)&gt;-1?o=&quot;closest&quot;:(e._isHoriz=function(t,e){for(var r=e._scatterStackOpts||{},n=0;n&lt;t.length;n++){var i=t[n],a=i.xaxis+i.yaxis,o=(r[a]||{})[i.stackgroup]||{};if(&quot;h&quot;!==i.orientation&amp;&amp;&quot;h&quot;!==o.orientation)return!1}return!0}(r,e),o=e._isHoriz?&quot;y&quot;:&quot;x&quot;):o=&quot;closest&quot;,a(&quot;hovermode&quot;,o)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:684}],683:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../dragelement&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;./layout_attributes&quot;),l=t(&quot;./hover&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;fx&quot;,constants:t(&quot;./constants&quot;),schema:{layout:s},attributes:t(&quot;./attributes&quot;),layoutAttributes:s,supplyLayoutGlobalDefaults:t(&quot;./layout_global_defaults&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(t,e,r){return i.castOption(t,e,&quot;hoverlabel.&quot;+r)},castHoverinfo:function(t,e,r){return i.castOption(t,r,&quot;hoverinfo&quot;,(function(r){return i.coerceHoverinfo({hoverinfo:r},{_module:t._module},e)}))},hover:l.hover,unhover:a.unhover,loneHover:l.loneHover,loneUnhover:function(t){var e=i.isD3Selection(t)?t:n.select(t);e.selectAll(&quot;g.hovertext&quot;).remove(),e.selectAll(&quot;.spikeline&quot;).remove()},click:t(&quot;./click&quot;)}},{&quot;../../lib&quot;:778,&quot;../dragelement&quot;:662,&quot;./attributes&quot;:674,&quot;./calc&quot;:675,&quot;./click&quot;:676,&quot;./constants&quot;:677,&quot;./defaults&quot;:678,&quot;./helpers&quot;:679,&quot;./hover&quot;:680,&quot;./layout_attributes&quot;:684,&quot;./layout_defaults&quot;:685,&quot;./layout_global_defaults&quot;:686,d3:169}],684:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../plots/font_attributes&quot;)({editType:&quot;none&quot;});i.family.dflt=n.HOVERFONT,i.size.dflt=n.HOVERFONTSIZE,e.exports={clickmode:{valType:&quot;flaglist&quot;,flags:[&quot;event&quot;,&quot;select&quot;],dflt:&quot;event&quot;,editType:&quot;plot&quot;,extras:[&quot;none&quot;]},dragmode:{valType:&quot;enumerated&quot;,values:[&quot;zoom&quot;,&quot;pan&quot;,&quot;select&quot;,&quot;lasso&quot;,&quot;drawclosedpath&quot;,&quot;drawopenpath&quot;,&quot;drawline&quot;,&quot;drawrect&quot;,&quot;drawcircle&quot;,&quot;orbit&quot;,&quot;turntable&quot;,!1],dflt:&quot;zoom&quot;,editType:&quot;modebar&quot;},hovermode:{valType:&quot;enumerated&quot;,values:[&quot;x&quot;,&quot;y&quot;,&quot;closest&quot;,!1,&quot;x unified&quot;,&quot;y unified&quot;],editType:&quot;modebar&quot;},hoverdistance:{valType:&quot;integer&quot;,min:-1,dflt:20,editType:&quot;none&quot;},spikedistance:{valType:&quot;integer&quot;,min:-1,dflt:20,editType:&quot;none&quot;},hoverlabel:{bgcolor:{valType:&quot;color&quot;,editType:&quot;none&quot;},bordercolor:{valType:&quot;color&quot;,editType:&quot;none&quot;},font:i,align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;right&quot;,&quot;auto&quot;],dflt:&quot;auto&quot;,editType:&quot;none&quot;},namelength:{valType:&quot;integer&quot;,min:-1,dflt:15,editType:&quot;none&quot;},editType:&quot;none&quot;},selectdirection:{valType:&quot;enumerated&quot;,values:[&quot;h&quot;,&quot;v&quot;,&quot;d&quot;,&quot;any&quot;],dflt:&quot;any&quot;,editType:&quot;none&quot;}}},{&quot;../../plots/font_attributes&quot;:856,&quot;./constants&quot;:677}],685:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./helpers&quot;).isUnifiedHover,a=t(&quot;./layout_attributes&quot;),o=t(&quot;./hovermode_defaults&quot;),s=t(&quot;./hoverlabel_defaults&quot;);e.exports=function(t,e,r){function l(r,i){return n.coerce(t,e,a,r,i)}var c=o(t,e,r);c&amp;&amp;(l(&quot;hoverdistance&quot;),l(&quot;spikedistance&quot;,i(c)?-1:void 0)),&quot;select&quot;===l(&quot;dragmode&quot;)&amp;&amp;l(&quot;selectdirection&quot;);var u=e._has(&quot;mapbox&quot;),f=e._has(&quot;geo&quot;),h=e._basePlotModules.length;&quot;zoom&quot;===e.dragmode&amp;&amp;((u||f)&amp;&amp;1===h||u&amp;&amp;f&amp;&amp;2===h)&amp;&amp;(e.dragmode=&quot;pan&quot;),s(t,e,l)}},{&quot;../../lib&quot;:778,&quot;./helpers&quot;:679,&quot;./hoverlabel_defaults&quot;:681,&quot;./hovermode_defaults&quot;:682,&quot;./layout_attributes&quot;:684}],686:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./hoverlabel_defaults&quot;),a=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){i(t,e,(function(r,i){return n.coerce(t,e,a,r,i)}))}},{&quot;../../lib&quot;:778,&quot;./hoverlabel_defaults&quot;:681,&quot;./layout_attributes&quot;:684}],687:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/regex&quot;).counter,a=t(&quot;../../plots/domain&quot;).attributes,o=t(&quot;../../plots/cartesian/constants&quot;).idRegex,s=t(&quot;../../plot_api/plot_template&quot;),l={rows:{valType:&quot;integer&quot;,min:1,editType:&quot;plot&quot;},roworder:{valType:&quot;enumerated&quot;,values:[&quot;top to bottom&quot;,&quot;bottom to top&quot;],dflt:&quot;top to bottom&quot;,editType:&quot;plot&quot;},columns:{valType:&quot;integer&quot;,min:1,editType:&quot;plot&quot;},subplots:{valType:&quot;info_array&quot;,freeLength:!0,dimensions:2,items:{valType:&quot;enumerated&quot;,values:[i(&quot;xy&quot;).toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},xaxes:{valType:&quot;info_array&quot;,freeLength:!0,items:{valType:&quot;enumerated&quot;,values:[o.x.toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},yaxes:{valType:&quot;info_array&quot;,freeLength:!0,items:{valType:&quot;enumerated&quot;,values:[o.y.toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},pattern:{valType:&quot;enumerated&quot;,values:[&quot;independent&quot;,&quot;coupled&quot;],dflt:&quot;coupled&quot;,editType:&quot;plot&quot;},xgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},ygap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},domain:a({name:&quot;grid&quot;,editType:&quot;plot&quot;,noGridCell:!0},{}),xside:{valType:&quot;enumerated&quot;,values:[&quot;bottom&quot;,&quot;bottom plot&quot;,&quot;top plot&quot;,&quot;top&quot;],dflt:&quot;bottom plot&quot;,editType:&quot;plot&quot;},yside:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;left plot&quot;,&quot;right plot&quot;,&quot;right&quot;],dflt:&quot;left plot&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;};function c(t,e,r){var n=e[r+&quot;axes&quot;],i=Object.keys((t._splomAxes||{})[r]||{});return Array.isArray(n)?n:i.length?i:void 0}function u(t,e,r,n,i,a){var o=e(t+&quot;gap&quot;,r),s=e(&quot;domain.&quot;+t);e(t+&quot;side&quot;,n);for(var l=new Array(i),c=s[0],u=(s[1]-c)/(i-o),f=u*(1-o),h=0;h&lt;i;h++){var p=c+u*h;l[a?i-1-h:h]=[p,p+f]}return l}function f(t,e,r,n,i){var a,o=new Array(r);function s(t,r){-1!==e.indexOf(r)&amp;&amp;void 0===n[r]?(o[t]=r,n[r]=t):o[t]=&quot;&quot;}if(Array.isArray(t))for(a=0;a&lt;r;a++)s(a,t[a]);else for(s(0,i),a=1;a&lt;r;a++)s(a,i+(a+1));return o}e.exports={moduleType:&quot;component&quot;,name:&quot;grid&quot;,schema:{layout:{grid:l}},layoutAttributes:l,sizeDefaults:function(t,e){var r=t.grid||{},i=c(e,r,&quot;x&quot;),a=c(e,r,&quot;y&quot;);if(t.grid||i||a){var o,f,h=Array.isArray(r.subplots)&amp;&amp;Array.isArray(r.subplots[0]),p=Array.isArray(i),d=Array.isArray(a),g=p&amp;&amp;i!==r.xaxes&amp;&amp;d&amp;&amp;a!==r.yaxes;h?(o=r.subplots.length,f=r.subplots[0].length):(d&amp;&amp;(o=a.length),p&amp;&amp;(f=i.length));var m=s.newContainer(e,&quot;grid&quot;),v=k(&quot;rows&quot;,o),y=k(&quot;columns&quot;,f);if(v*y&gt;1){if(!h&amp;&amp;!p&amp;&amp;!d)&quot;independent&quot;===k(&quot;pattern&quot;)&amp;&amp;(h=!0);m._hasSubplotGrid=h;var x,b,_=&quot;top to bottom&quot;===k(&quot;roworder&quot;),w=h?.2:.1,T=h?.3:.1;g&amp;&amp;e._splomGridDflt&amp;&amp;(x=e._splomGridDflt.xside,b=e._splomGridDflt.yside),m._domains={x:u(&quot;x&quot;,k,w,x,y),y:u(&quot;y&quot;,k,T,b,v,_)}}else delete e.grid}function k(t,e){return n.coerce(r,m,l,t,e)}},contentDefaults:function(t,e){var r=e.grid;if(r&amp;&amp;r._domains){var n,i,a,o,s,l,u,h=t.grid||{},p=e._subplots,d=r._hasSubplotGrid,g=r.rows,m=r.columns,v=&quot;independent&quot;===r.pattern,y=r._axisMap={};if(d){var x=h.subplots||[];l=r.subplots=new Array(g);var b=1;for(n=0;n&lt;g;n++){var _=l[n]=new Array(m),w=x[n]||[];for(i=0;i&lt;m;i++)if(v?(s=1===b?&quot;xy&quot;:&quot;x&quot;+b+&quot;y&quot;+b,b++):s=w[i],_[i]=&quot;&quot;,-1!==p.cartesian.indexOf(s)){if(u=s.indexOf(&quot;y&quot;),a=s.slice(0,u),o=s.slice(u),void 0!==y[a]&amp;&amp;y[a]!==i||void 0!==y[o]&amp;&amp;y[o]!==n)continue;_[i]=s,y[a]=i,y[o]=n}}}else{var T=c(e,h,&quot;x&quot;),k=c(e,h,&quot;y&quot;);r.xaxes=f(T,p.xaxis,m,y,&quot;x&quot;),r.yaxes=f(k,p.yaxis,g,y,&quot;y&quot;)}var M=r._anchors={},A=&quot;top to bottom&quot;===r.roworder;for(var S in y){var E,C,L,I=S.charAt(0),P=r[I+&quot;side&quot;];if(P.length&lt;8)M[S]=&quot;free&quot;;else if(&quot;x&quot;===I){if(&quot;t&quot;===P.charAt(0)===A?(E=0,C=1,L=g):(E=g-1,C=-1,L=-1),d){var z=y[S];for(n=E;n!==L;n+=C)if((s=l[n][z])&amp;&amp;(u=s.indexOf(&quot;y&quot;),s.slice(0,u)===S)){M[S]=s.slice(u);break}}else for(n=E;n!==L;n+=C)if(o=r.yaxes[n],-1!==p.cartesian.indexOf(S+o)){M[S]=o;break}}else if(&quot;l&quot;===P.charAt(0)?(E=0,C=1,L=m):(E=m-1,C=-1,L=-1),d){var O=y[S];for(n=E;n!==L;n+=C)if((s=l[O][n])&amp;&amp;(u=s.indexOf(&quot;y&quot;),s.slice(u)===S)){M[S]=s.slice(0,u);break}}else for(n=E;n!==L;n+=C)if(a=r.xaxes[n],-1!==p.cartesian.indexOf(a+S)){M[S]=a;break}}}}}},{&quot;../../lib&quot;:778,&quot;../../lib/regex&quot;:795,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834,&quot;../../plots/domain&quot;:855}],688:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/constants&quot;),i=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=i(&quot;image&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;arraydraw&quot;},source:{valType:&quot;string&quot;,editType:&quot;arraydraw&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;arraydraw&quot;},sizex:{valType:&quot;number&quot;,dflt:0,editType:&quot;arraydraw&quot;},sizey:{valType:&quot;number&quot;,dflt:0,editType:&quot;arraydraw&quot;},sizing:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;contain&quot;,&quot;stretch&quot;],dflt:&quot;contain&quot;,editType:&quot;arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},x:{valType:&quot;any&quot;,dflt:0,editType:&quot;arraydraw&quot;},y:{valType:&quot;any&quot;,dflt:0,editType:&quot;arraydraw&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;arraydraw&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;arraydraw&quot;},xref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,n.idRegex.x.toString()],dflt:&quot;paper&quot;,editType:&quot;arraydraw&quot;},yref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,n.idRegex.y.toString()],dflt:&quot;paper&quot;,editType:&quot;arraydraw&quot;},editType:&quot;arraydraw&quot;})},{&quot;../../constants/axis_placeable_objects&quot;:746,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834}],689:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib/to_log_range&quot;);e.exports=function(t,e,r,a){e=e||{};var o=&quot;log&quot;===r&amp;&amp;&quot;linear&quot;===e.type,s=&quot;linear&quot;===r&amp;&amp;&quot;log&quot;===e.type;if(o||s)for(var l,c,u=t._fullLayout.images,f=e._id.charAt(0),h=0;h&lt;u.length;h++)if(c=&quot;images[&quot;+h+&quot;].&quot;,(l=u[h])[f+&quot;ref&quot;]===e._id){var p=l[f],d=l[&quot;size&quot;+f],g=null,m=null;if(o){g=i(p,e.range);var v=d/Math.pow(10,g)/2;m=2*Math.log(v+Math.sqrt(1+v*v))/Math.LN10}else m=(g=Math.pow(10,p))*(Math.pow(10,d/2)-Math.pow(10,-d/2));n(g)?n(m)||(m=null):(g=null,m=null),a(c+f,g),a(c+&quot;size&quot;+f,m)}}},{&quot;../../lib/to_log_range&quot;:805,&quot;fast-isnumeric&quot;:241}],690:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}var s=a(&quot;source&quot;);if(!a(&quot;visible&quot;,!!s))return e;a(&quot;layer&quot;),a(&quot;xanchor&quot;),a(&quot;yanchor&quot;),a(&quot;sizex&quot;),a(&quot;sizey&quot;),a(&quot;sizing&quot;),a(&quot;opacity&quot;);for(var l={_fullLayout:r},c=[&quot;x&quot;,&quot;y&quot;],u=0;u&lt;2;u++){var f=c[u],h=i.coerceRef(t,e,l,f,&quot;paper&quot;,void 0);if(&quot;paper&quot;!==h)i.getFromId(l,h)._imgIndices.push(e._index);i.coercePosition(e,l,a,h,f,0)}return e}e.exports=function(t,e){a(t,e,{name:&quot;images&quot;,handleItemDefaults:s})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:688}],691:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../drawing&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/axis_ids&quot;),s=t(&quot;../../constants/xmlns_namespaces&quot;);e.exports=function(t){var e,r,l=t._fullLayout,c=[],u={},f=[];for(r=0;r&lt;l.images.length;r++){var h=l.images[r];if(h.visible)if(&quot;below&quot;===h.layer&amp;&amp;&quot;paper&quot;!==h.xref&amp;&amp;&quot;paper&quot;!==h.yref){e=o.ref2id(h.xref)+o.ref2id(h.yref);var p=l._plots[e];if(!p){f.push(h);continue}p.mainplot&amp;&amp;(e=p.mainplot.id),u[e]||(u[e]=[]),u[e].push(h)}else&quot;above&quot;===h.layer?c.push(h):f.push(h)}var d={left:{sizing:&quot;xMin&quot;,offset:0},center:{sizing:&quot;xMid&quot;,offset:-.5},right:{sizing:&quot;xMax&quot;,offset:-1}},g={top:{sizing:&quot;YMin&quot;,offset:0},middle:{sizing:&quot;YMid&quot;,offset:-.5},bottom:{sizing:&quot;YMax&quot;,offset:-1}};function m(e){var r=n.select(this);if(this._imgSrc!==e.source)if(r.attr(&quot;xmlns&quot;,s.svg),e.source&amp;&amp;&quot;data:&quot;===e.source.slice(0,5))r.attr(&quot;xlink:href&quot;,e.source),this._imgSrc=e.source;else{var i=new Promise(function(t){var n=new Image;function i(){r.remove(),t()}this.img=n,n.setAttribute(&quot;crossOrigin&quot;,&quot;anonymous&quot;),n.onerror=i,n.onload=function(){var e=document.createElement(&quot;canvas&quot;);e.width=this.width,e.height=this.height,e.getContext(&quot;2d&quot;).drawImage(this,0,0);var n=e.toDataURL(&quot;image/png&quot;);r.attr(&quot;xlink:href&quot;,n),t()},r.on(&quot;error&quot;,i),n.src=e.source,this._imgSrc=e.source}.bind(this));t._promises.push(i)}}function v(e){var r,o,s=n.select(this),c=a.getFromId(t,e.xref),u=a.getFromId(t,e.yref),f=&quot;domain&quot;===a.getRefType(e.xref),h=&quot;domain&quot;===a.getRefType(e.yref),p=l._size;r=void 0!==c?&quot;string&quot;==typeof e.xref&amp;&amp;f?c._length*e.sizex:Math.abs(c.l2p(e.sizex)-c.l2p(0)):e.sizex*p.w,o=void 0!==u?&quot;string&quot;==typeof e.yref&amp;&amp;h?u._length*e.sizey:Math.abs(u.l2p(e.sizey)-u.l2p(0)):e.sizey*p.h;var m,v,y=r*d[e.xanchor].offset,x=o*g[e.yanchor].offset,b=d[e.xanchor].sizing+g[e.yanchor].sizing;switch(m=void 0!==c?&quot;string&quot;==typeof e.xref&amp;&amp;f?c._length*e.x+c._offset:c.r2p(e.x)+c._offset:e.x*p.w+p.l,m+=y,v=void 0!==u?&quot;string&quot;==typeof e.yref&amp;&amp;h?u._length*(1-e.y)+u._offset:u.r2p(e.y)+u._offset:p.h-e.y*p.h+p.t,v+=x,e.sizing){case&quot;fill&quot;:b+=&quot; slice&quot;;break;case&quot;stretch&quot;:b=&quot;none&quot;}s.attr({x:m,y:v,width:r,height:o,preserveAspectRatio:b,opacity:e.opacity});var _=(c&amp;&amp;&quot;domain&quot;!==a.getRefType(e.xref)?c._id:&quot;&quot;)+(u&amp;&amp;&quot;domain&quot;!==a.getRefType(e.yref)?u._id:&quot;&quot;);i.setClipUrl(s,_?&quot;clip&quot;+l._uid+_:null,t)}var y=l._imageLowerLayer.selectAll(&quot;image&quot;).data(f),x=l._imageUpperLayer.selectAll(&quot;image&quot;).data(c);y.enter().append(&quot;image&quot;),x.enter().append(&quot;image&quot;),y.exit().remove(),x.exit().remove(),y.each((function(t){m.bind(this)(t),v.bind(this)(t)})),x.each((function(t){m.bind(this)(t),v.bind(this)(t)}));var b=Object.keys(l._plots);for(r=0;r&lt;b.length;r++){e=b[r];var _=l._plots[e];if(_.imagelayer){var w=_.imagelayer.selectAll(&quot;image&quot;).data(u[e]||[]);w.enter().append(&quot;image&quot;),w.exit().remove(),w.each((function(t){m.bind(this)(t),v.bind(this)(t)}))}}}},{&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../drawing&quot;:665,d3:169}],692:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;images&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;images&quot;),draw:t(&quot;./draw&quot;),convertCoords:t(&quot;./convert_coords&quot;)}},{&quot;../../plots/cartesian/include_components&quot;:840,&quot;./attributes&quot;:688,&quot;./convert_coords&quot;:689,&quot;./defaults&quot;:690,&quot;./draw&quot;:691}],693:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;);e.exports={bgcolor:{valType:&quot;color&quot;,editType:&quot;legend&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;legend&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;legend&quot;},font:n({editType:&quot;legend&quot;}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;v&quot;,editType:&quot;legend&quot;},traceorder:{valType:&quot;flaglist&quot;,flags:[&quot;reversed&quot;,&quot;grouped&quot;],extras:[&quot;normal&quot;],editType:&quot;legend&quot;},tracegroupgap:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;legend&quot;},itemsizing:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;constant&quot;],dflt:&quot;trace&quot;,editType:&quot;legend&quot;},itemwidth:{valType:&quot;number&quot;,min:30,dflt:30,editType:&quot;legend&quot;},itemclick:{valType:&quot;enumerated&quot;,values:[&quot;toggle&quot;,&quot;toggleothers&quot;,!1],dflt:&quot;toggle&quot;,editType:&quot;legend&quot;},itemdoubleclick:{valType:&quot;enumerated&quot;,values:[&quot;toggle&quot;,&quot;toggleothers&quot;,!1],dflt:&quot;toggleothers&quot;,editType:&quot;legend&quot;},x:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;legend&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;legend&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;legend&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;legend&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},valign:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;,editType:&quot;legend&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;legend&quot;},font:n({editType:&quot;legend&quot;}),side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;left&quot;,&quot;top left&quot;],editType:&quot;legend&quot;},editType:&quot;legend&quot;},editType:&quot;legend&quot;}},{&quot;../../plots/font_attributes&quot;:856,&quot;../color/attributes&quot;:642}],694:[function(t,e,r){&quot;use strict&quot;;e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:&quot;#808BA4&quot;,scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},{}],695:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../../plots/layout_attributes&quot;),l=t(&quot;./helpers&quot;);e.exports=function(t,e,r){for(var c=t.legend||{},u=0,f=!1,h=&quot;normal&quot;,p=0;p&lt;r.length;p++){var d=r[p];d.visible&amp;&amp;((d.showlegend||d._dfltShowLegend&amp;&amp;!(d._module&amp;&amp;d._module.attributes&amp;&amp;d._module.attributes.showlegend&amp;&amp;!1===d._module.attributes.showlegend.dflt))&amp;&amp;(u++,d.showlegend&amp;&amp;(f=!0,(n.traceIs(d,&quot;pie-like&quot;)||!0===d._input.showlegend)&amp;&amp;u++)),(n.traceIs(d,&quot;bar&quot;)&amp;&amp;&quot;stack&quot;===e.barmode||-1!==[&quot;tonextx&quot;,&quot;tonexty&quot;].indexOf(d.fill))&amp;&amp;(h=l.isGrouped({traceorder:h})?&quot;grouped+reversed&quot;:&quot;reversed&quot;),void 0!==d.legendgroup&amp;&amp;&quot;&quot;!==d.legendgroup&amp;&amp;(h=l.isReversed({traceorder:h})?&quot;reversed+grouped&quot;:&quot;grouped&quot;))}var g=i.coerce(t,e,s,&quot;showlegend&quot;,f&amp;&amp;u&gt;1);if(!1!==g||c.uirevision){var m=a.newContainer(e,&quot;legend&quot;);if(_(&quot;uirevision&quot;,e.uirevision),!1!==g){_(&quot;bgcolor&quot;,e.paper_bgcolor),_(&quot;bordercolor&quot;),_(&quot;borderwidth&quot;),i.coerceFont(_,&quot;font&quot;,e.font);var v,y,x,b=_(&quot;orientation&quot;);&quot;h&quot;===b?(v=0,n.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(t.xaxis)?(y=1.1,x=&quot;bottom&quot;):(y=-.1,x=&quot;top&quot;)):(v=1.02,y=1,x=&quot;auto&quot;),_(&quot;traceorder&quot;,h),l.isGrouped(e.legend)&amp;&amp;_(&quot;tracegroupgap&quot;),_(&quot;itemsizing&quot;),_(&quot;itemwidth&quot;),_(&quot;itemclick&quot;),_(&quot;itemdoubleclick&quot;),_(&quot;x&quot;,v),_(&quot;xanchor&quot;),_(&quot;y&quot;,y),_(&quot;yanchor&quot;,x),_(&quot;valign&quot;),i.noneOrAll(c,m,[&quot;x&quot;,&quot;y&quot;]),_(&quot;title.text&quot;)&amp;&amp;(_(&quot;title.side&quot;,&quot;h&quot;===b?&quot;left&quot;:&quot;top&quot;),i.coerceFont(_,&quot;title.font&quot;,e.font))}}function _(t,e){return i.coerce(c,m,o,t,e)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/layout_attributes&quot;:882,&quot;../../registry&quot;:911,&quot;./attributes&quot;:693,&quot;./helpers&quot;:699}],696:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib/events&quot;),l=t(&quot;../dragelement&quot;),c=t(&quot;../drawing&quot;),u=t(&quot;../color&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;./handle_click&quot;),p=t(&quot;./constants&quot;),d=t(&quot;../../constants/alignment&quot;),g=d.LINE_SPACING,m=d.FROM_TL,v=d.FROM_BR,y=t(&quot;./get_legend_data&quot;),x=t(&quot;./style&quot;),b=t(&quot;./helpers&quot;);function _(t,e,r,n,i){var a=r.data()[0][0].trace,l={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a._expandedIndex,data:t.data,layout:t.layout,frames:t._transitionData._frames,config:t._context,fullData:t._fullData,fullLayout:t._fullLayout};if(a._group&amp;&amp;(l.group=a._group),o.traceIs(a,&quot;pie-like&quot;)&amp;&amp;(l.label=r.datum()[0].label),!1!==s.triggerHandler(t,&quot;plotly_legendclick&quot;,l))if(1===n)e._clickTimeout=setTimeout((function(){h(r,t,n)}),t._context.doubleClickDelay);else if(2===n){e._clickTimeout&amp;&amp;clearTimeout(e._clickTimeout),t._legendMouseDownTime=0,!1!==s.triggerHandler(t,&quot;plotly_legenddoubleclick&quot;,l)&amp;&amp;h(r,t,n)}}function w(t,e,r){var n,a=t.data()[0][0],s=a.trace,l=o.traceIs(s,&quot;pie-like&quot;),u=s.index,h=r._main&amp;&amp;e._context.edits.legendText&amp;&amp;!l,d=r._maxNameLength;r.entries?n=a.text:(n=l?a.label:s.name,s._meta&amp;&amp;(n=i.templateString(n,s._meta)));var g=i.ensureSingle(t,&quot;text&quot;,&quot;legendtext&quot;);g.attr(&quot;text-anchor&quot;,&quot;start&quot;).call(c.font,r.font).text(h?T(n,d):n);var m=r.itemwidth+2*p.itemGap;f.positionText(g,m,0),h?g.call(f.makeEditable,{gd:e,text:n}).call(M,t,e,r).on(&quot;edit&quot;,(function(n){this.text(T(n,d)).call(M,t,e,r);var s=a.trace._fullInput||{},l={};if(o.hasTransform(s,&quot;groupby&quot;)){var c=o.getTransformIndices(s,&quot;groupby&quot;),f=c[c.length-1],h=i.keyedContainer(s,&quot;transforms[&quot;+f+&quot;].styles&quot;,&quot;target&quot;,&quot;value.name&quot;);h.set(a.trace._group,n),l=h.constructUpdate()}else l.name=n;return o.call(&quot;_guiRestyle&quot;,e,l,u)})):M(g,t,e,r)}function T(t,e){var r=Math.max(4,e);if(t&amp;&amp;t.trim().length&gt;=r/2)return t;for(var n=r-(t=t||&quot;&quot;).length;n&gt;0;n--)t+=&quot; &quot;;return t}function k(t,e){var r,a=e._context.doubleClickDelay,o=1,s=i.ensureSingle(t,&quot;rect&quot;,&quot;legendtoggle&quot;,(function(t){e._context.staticPlot||t.style(&quot;cursor&quot;,&quot;pointer&quot;).attr(&quot;pointer-events&quot;,&quot;all&quot;),t.call(u.fill,&quot;rgba(0,0,0,0)&quot;)}));e._context.staticPlot||(s.on(&quot;mousedown&quot;,(function(){(r=(new Date).getTime())-e._legendMouseDownTime&lt;a?o+=1:(o=1,e._legendMouseDownTime=r)})),s.on(&quot;mouseup&quot;,(function(){if(!e._dragged&amp;&amp;!e._editing){var r=e._fullLayout.legend;(new Date).getTime()-e._legendMouseDownTime&gt;a&amp;&amp;(o=Math.max(o-1,1)),_(e,r,t,o,n.event)}})))}function M(t,e,r,n){n._main||t.attr(&quot;data-notex&quot;,!0),f.convertToTspans(t,r,(function(){!function(t,e,r){var n=t.data()[0][0];if(r._main&amp;&amp;n&amp;&amp;!n.trace.showlegend)return void t.remove();var i=t.select(&quot;g[class*=math-group]&quot;),a=i.node();r||(r=e._fullLayout.legend);var o,s,l=r.borderwidth,u=(n?r:r.title).font.size*g;if(a){var h=c.bBox(a);o=h.height,s=h.width,n?c.setTranslate(i,0,.25*o):c.setTranslate(i,l,.75*o+l)}else{var d=t.select(n?&quot;.legendtext&quot;:&quot;.legendtitletext&quot;),m=f.lineCount(d),v=d.node();o=u*m,s=v?c.bBox(v).width:0;var y=u*((m-1)/2-.3);if(n){var x=r.itemwidth+2*p.itemGap;f.positionText(d,x,-y)}else f.positionText(d,p.titlePad+l,u+l)}n?(n.lineHeight=u,n.height=Math.max(o,16)+3,n.width=s):(r._titleWidth=s,r._titleHeight=o)}(e,r,n)}))}function A(t){return i.isRightAnchor(t)?&quot;right&quot;:i.isCenterAnchor(t)?&quot;center&quot;:&quot;left&quot;}function S(t){return i.isBottomAnchor(t)?&quot;bottom&quot;:i.isMiddleAnchor(t)?&quot;middle&quot;:&quot;top&quot;}e.exports=function(t,e){var r,s=t._fullLayout,f=&quot;legend&quot;+s._uid;if(e?(r=e.layer,f+=&quot;-hover&quot;):((e=s.legend||{})._main=!0,r=s._infolayer),r){var h;if(t._legendMouseDownTime||(t._legendMouseDownTime=0),e._main){if(!t.calcdata)return;h=s.showlegend&amp;&amp;y(t.calcdata,e)}else{if(!e.entries)return;h=y(e.entries,e)}var d=s.hiddenlabels||[];if(e._main&amp;&amp;(!s.showlegend||!h.length))return r.selectAll(&quot;.legend&quot;).remove(),s._topdefs.select(&quot;#&quot;+f).remove(),a.autoMargin(t,&quot;legend&quot;);var g=i.ensureSingle(r,&quot;g&quot;,&quot;legend&quot;,(function(t){e._main&amp;&amp;t.attr(&quot;pointer-events&quot;,&quot;all&quot;)})),T=i.ensureSingleById(s._topdefs,&quot;clipPath&quot;,f,(function(t){t.append(&quot;rect&quot;)})),E=i.ensureSingle(g,&quot;rect&quot;,&quot;bg&quot;,(function(t){t.attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)}));E.call(u.stroke,e.bordercolor).call(u.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;);var C=i.ensureSingle(g,&quot;g&quot;,&quot;scrollbox&quot;),L=e.title;if(e._titleWidth=0,e._titleHeight=0,L.text){var I=i.ensureSingle(C,&quot;text&quot;,&quot;legendtitletext&quot;);I.attr(&quot;text-anchor&quot;,&quot;start&quot;).call(c.font,L.font).text(L.text),M(I,C,t,e)}else C.selectAll(&quot;.legendtitletext&quot;).remove();var P=i.ensureSingle(g,&quot;rect&quot;,&quot;scrollbar&quot;,(function(t){t.attr(p.scrollBarEnterAttrs).call(u.fill,p.scrollBarColor)})),z=C.selectAll(&quot;g.groups&quot;).data(h);z.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;groups&quot;),z.exit().remove();var O=z.selectAll(&quot;g.traces&quot;).data(i.identity);O.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;traces&quot;),O.exit().remove(),O.style(&quot;opacity&quot;,(function(t){var e=t[0].trace;return o.traceIs(e,&quot;pie-like&quot;)?-1!==d.indexOf(t[0].label)?.5:1:&quot;legendonly&quot;===e.visible?.5:1})).each((function(){n.select(this).call(w,t,e)})).call(x,t,e).each((function(){e._main&amp;&amp;n.select(this).call(k,t)})),i.syncOrAsync([a.previousPromises,function(){return function(t,e,r,i){var a=t._fullLayout;i||(i=a.legend);var o=a._size,s=b.isVertical(i),l=b.isGrouped(i),u=i.borderwidth,f=2*u,h=p.itemGap,d=i.itemwidth+2*h,g=2*(u+h),m=S(i),v=i.y&lt;0||0===i.y&amp;&amp;&quot;top&quot;===m,y=i.y&gt;1||1===i.y&amp;&amp;&quot;bottom&quot;===m;i._maxHeight=Math.max(v||y?a.height/2:o.h,30);var x=0;i._width=0,i._height=0;var _=function(t){var e=0,r=0,n=t.title.side;n&amp;&amp;(-1!==n.indexOf(&quot;left&quot;)&amp;&amp;(e=t._titleWidth),-1!==n.indexOf(&quot;top&quot;)&amp;&amp;(r=t._titleHeight));return[e,r]}(i);if(s)r.each((function(t){var e=t[0].height;c.setTranslate(this,u+_[0],u+_[1]+i._height+e/2+h),i._height+=e,i._width=Math.max(i._width,t[0].width)})),x=d+i._width,i._width+=h+d+f,i._height+=g,l&amp;&amp;(e.each((function(t,e){c.setTranslate(this,0,e*i.tracegroupgap)})),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var w=A(i),T=i.x&lt;0||0===i.x&amp;&amp;&quot;right&quot;===w,k=i.x&gt;1||1===i.x&amp;&amp;&quot;left&quot;===w,M=y||v,E=a.width/2;i._maxWidth=Math.max(T?M&amp;&amp;&quot;left&quot;===w?o.l+o.w:E:k?M&amp;&amp;&quot;right&quot;===w?o.r+o.w:E:o.w,2*d);var C=0,L=0;r.each((function(t){var e=t[0].width+d;C=Math.max(C,e),L+=e})),x=null;var I=0;if(l){var P=0,z=0,O=0;e.each((function(){var t=0,e=0;n.select(this).selectAll(&quot;g.traces&quot;).each((function(r){var n=r[0].height;c.setTranslate(this,_[0],_[1]+u+h+n/2+e),e+=n,t=Math.max(t,d+r[0].width)})),P=Math.max(P,e);var r=t+h;r+u+z&gt;i._maxWidth&amp;&amp;(I=Math.max(I,z),z=0,O+=P+i.tracegroupgap,P=e),c.setTranslate(this,z,O),z+=r})),i._width=Math.max(I,z)+u,i._height=O+P+g}else{var D=r.size(),R=L+f+(D-1)*h&lt;i._maxWidth,F=0,B=0,N=0,j=0;r.each((function(t){var e=t[0].height,r=d+t[0].width,n=(R?r:C)+h;n+u+B-h&gt;=i._maxWidth&amp;&amp;(I=Math.max(I,j),B=0,N+=F,i._height+=F,F=0),c.setTranslate(this,_[0]+u+B,_[1]+u+N+e/2+h),j=B+r+h,B+=n,F=Math.max(F,e)})),R?(i._width=B+f,i._height=F+g):(i._width=Math.max(I,j)+f,i._height+=F+g)}}i._width=Math.ceil(Math.max(i._width+_[0],i._titleWidth+2*(u+p.titlePad))),i._height=Math.ceil(Math.max(i._height+_[1],i._titleHeight+2*(u+p.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var U=t._context.edits,V=U.legendText||U.legendPosition;r.each((function(t){var e=n.select(this).select(&quot;.legendtoggle&quot;),r=t[0].height,i=V?d:x||d+t[0].width;s||(i+=h/2),c.setRect(e,0,-r/2,i,r)}))}(t,z,O,e)},function(){if(!e._main||!function(t){var e=t._fullLayout.legend,r=A(e),n=S(e);return a.autoMargin(t,&quot;legend&quot;,{x:e.x,y:e.y,l:e._width*m[r],r:e._width*v[r],b:e._effHeight*v[n],t:e._effHeight*m[n]})}(t)){var u,h,d,y,x=s._size,b=e.borderwidth,w=x.l+x.w*e.x-m[A(e)]*e._width,k=x.t+x.h*(1-e.y)-m[S(e)]*e._effHeight;if(e._main&amp;&amp;s.margin.autoexpand){var M=w,L=k;w=i.constrain(w,0,s.width-e._width),k=i.constrain(k,0,s.height-e._effHeight),w!==M&amp;&amp;i.log(&quot;Constrain legend.x to make legend fit inside graph&quot;),k!==L&amp;&amp;i.log(&quot;Constrain legend.y to make legend fit inside graph&quot;)}if(e._main&amp;&amp;c.setTranslate(g,w,k),P.on(&quot;.drag&quot;,null),g.on(&quot;wheel&quot;,null),!e._main||e._height&lt;=e._maxHeight||t._context.staticPlot){var I=e._effHeight;e._main||(I=e._height),E.attr({width:e._width-b,height:I-b,x:b/2,y:b/2}),c.setTranslate(C,0,0),T.select(&quot;rect&quot;).attr({width:e._width-2*b,height:I-2*b,x:b,y:b}),c.setClipUrl(C,f,t),c.setRect(P,0,0,0,0),delete e._scrollY}else{var z,O,D,R=Math.max(p.scrollBarMinHeight,e._effHeight*e._effHeight/e._height),F=e._effHeight-R-2*p.scrollBarMargin,B=e._height-e._effHeight,N=F/B,j=Math.min(e._scrollY||0,B);E.attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-b,x:b/2,y:b/2}),T.select(&quot;rect&quot;).attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-2*b,x:b,y:b+j}),c.setClipUrl(C,f,t),q(j,R,N),g.on(&quot;wheel&quot;,(function(){q(j=i.constrain(e._scrollY+n.event.deltaY/F*B,0,B),R,N),0!==j&amp;&amp;j!==B&amp;&amp;n.event.preventDefault()}));var U=n.behavior.drag().on(&quot;dragstart&quot;,(function(){var t=n.event.sourceEvent;z=&quot;touchstart&quot;===t.type?t.changedTouches[0].clientY:t.clientY,D=j})).on(&quot;drag&quot;,(function(){var t=n.event.sourceEvent;2===t.buttons||t.ctrlKey||(O=&quot;touchmove&quot;===t.type?t.changedTouches[0].clientY:t.clientY,q(j=function(t,e,r){var n=(r-e)/N+t;return i.constrain(n,0,B)}(D,z,O),R,N))}));P.call(U);var V=n.behavior.drag().on(&quot;dragstart&quot;,(function(){var t=n.event.sourceEvent;&quot;touchstart&quot;===t.type&amp;&amp;(z=t.changedTouches[0].clientY,D=j)})).on(&quot;drag&quot;,(function(){var t=n.event.sourceEvent;&quot;touchmove&quot;===t.type&amp;&amp;(O=t.changedTouches[0].clientY,q(j=function(t,e,r){var n=(e-r)/N+t;return i.constrain(n,0,B)}(D,z,O),R,N))}));C.call(V)}if(t._context.edits.legendPosition)g.classed(&quot;cursor-move&quot;,!0),l.init({element:g.node(),gd:t,prepFn:function(){var t=c.getTranslate(g);d=t.x,y=t.y},moveFn:function(t,r){var n=d+t,i=y+r;c.setTranslate(g,n,i),u=l.align(n,0,x.l,x.l+x.w,e.xanchor),h=l.align(i,0,x.t+x.h,x.t,e.yanchor)},doneFn:function(){void 0!==u&amp;&amp;void 0!==h&amp;&amp;o.call(&quot;_guiRelayout&quot;,t,{&quot;legend.x&quot;:u,&quot;legend.y&quot;:h})},clickFn:function(e,n){var i=r.selectAll(&quot;g.traces&quot;).filter((function(){var t=this.getBoundingClientRect();return n.clientX&gt;=t.left&amp;&amp;n.clientX&lt;=t.right&amp;&amp;n.clientY&gt;=t.top&amp;&amp;n.clientY&lt;=t.bottom}));i.size()&gt;0&amp;&amp;_(t,g,i,e,n)}})}function q(r,n,i){e._scrollY=t._fullLayout.legend._scrollY=r,c.setTranslate(C,0,-r),c.setRect(P,e._width,p.scrollBarMargin+r*i,p.scrollBarWidth,n),T.select(&quot;rect&quot;).attr(&quot;y&quot;,b+r)}}],t)}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/events&quot;:767,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;./constants&quot;:694,&quot;./get_legend_data&quot;:697,&quot;./handle_click&quot;:698,&quot;./helpers&quot;:699,&quot;./style&quot;:701,d3:169}],697:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./helpers&quot;);e.exports=function(t,e){var r,a,o={},s=[],l=!1,c={},u=0,f=0,h=e._main;function p(t,r){if(&quot;&quot;!==t&amp;&amp;i.isGrouped(e))-1===s.indexOf(t)?(s.push(t),l=!0,o[t]=[[r]]):o[t].push([r]);else{var n=&quot;~~i&quot;+u;s.push(n),o[n]=[[r]],u++}}for(r=0;r&lt;t.length;r++){var d=t[r],g=d[0],m=g.trace,v=m.legendgroup;if(!h||m.visible&amp;&amp;m.showlegend)if(n.traceIs(m,&quot;pie-like&quot;))for(c[v]||(c[v]={}),a=0;a&lt;d.length;a++){var y=d[a].label;c[v][y]||(p(v,{label:y,color:d[a].color,i:d[a].i,trace:m,pts:d[a].pts}),c[v][y]=!0,f=Math.max(f,(y||&quot;&quot;).length))}else p(v,g),f=Math.max(f,(m.name||&quot;&quot;).length)}if(!s.length)return[];var x,b,_=s.length;if(l&amp;&amp;i.isGrouped(e))for(b=new Array(_),r=0;r&lt;_;r++)x=o[s[r]],b[r]=i.isReversed(e)?x.reverse():x;else{for(b=[new Array(_)],r=0;r&lt;_;r++)x=o[s[r]][0],b[0][i.isReversed(e)?_-r-1:r]=x;_=1}return e._lgroupsLength=_,e._maxNameLength=f,b}},{&quot;../../registry&quot;:911,&quot;./helpers&quot;:699}],698:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=!0;e.exports=function(t,e,r){var o=e._fullLayout;if(!e._dragged&amp;&amp;!e._editing){var s,l=o.legend.itemclick,c=o.legend.itemdoubleclick;if(1===r&amp;&amp;&quot;toggle&quot;===l&amp;&amp;&quot;toggleothers&quot;===c&amp;&amp;a&amp;&amp;e.data&amp;&amp;e._context.showTips?(n.notifier(n._(e,&quot;Double-click on legend to isolate one trace&quot;),&quot;long&quot;),a=!1):a=!1,1===r?s=l:2===r&amp;&amp;(s=c),s){var u,f,h,p,d,g=o.hiddenlabels?o.hiddenlabels.slice():[],m=t.data()[0][0],v=e._fullData,y=m.trace,x=y.legendgroup,b={},_=[],w=[],T=[];if(i.traceIs(y,&quot;pie-like&quot;)){var k=m.label,M=g.indexOf(k);&quot;toggle&quot;===s?-1===M?g.push(k):g.splice(M,1):&quot;toggleothers&quot;===s&amp;&amp;(g=[],e.calcdata[0].forEach((function(t){k!==t.label&amp;&amp;g.push(t.label)})),e._fullLayout.hiddenlabels&amp;&amp;e._fullLayout.hiddenlabels.length===g.length&amp;&amp;-1===M&amp;&amp;(g=[])),i.call(&quot;_guiRelayout&quot;,e,&quot;hiddenlabels&quot;,g)}else{var A,S=x&amp;&amp;x.length,E=[];if(S)for(u=0;u&lt;v.length;u++)(A=v[u]).visible&amp;&amp;A.legendgroup===x&amp;&amp;E.push(u);if(&quot;toggle&quot;===s){var C;switch(y.visible){case!0:C=&quot;legendonly&quot;;break;case!1:C=!1;break;case&quot;legendonly&quot;:C=!0}if(S)for(u=0;u&lt;v.length;u++)!1!==v[u].visible&amp;&amp;v[u].legendgroup===x&amp;&amp;B(v[u],C);else B(y,C)}else if(&quot;toggleothers&quot;===s){var L,I,P,z,O=!0;for(u=0;u&lt;v.length;u++)if(L=v[u]===y,P=!0!==v[u].showlegend,!(L||P||(I=S&amp;&amp;v[u].legendgroup===x)||!0!==v[u].visible||i.traceIs(v[u],&quot;notLegendIsolatable&quot;))){O=!1;break}for(u=0;u&lt;v.length;u++)if(!1!==v[u].visible&amp;&amp;!i.traceIs(v[u],&quot;notLegendIsolatable&quot;))switch(y.visible){case&quot;legendonly&quot;:B(v[u],!0);break;case!0:z=!!O||&quot;legendonly&quot;,L=v[u]===y,P=!0!==v[u].showlegend&amp;&amp;!v[u].legendgroup,I=L||S&amp;&amp;v[u].legendgroup===x,B(v[u],!(!I&amp;&amp;!P)||z)}}for(u=0;u&lt;w.length;u++)if(h=w[u]){var D=h.constructUpdate(),R=Object.keys(D);for(f=0;f&lt;R.length;f++)p=R[f],(b[p]=b[p]||[])[T[u]]=D[p]}for(d=Object.keys(b),u=0;u&lt;d.length;u++)for(p=d[u],f=0;f&lt;_.length;f++)b[p].hasOwnProperty(f)||(b[p][f]=void 0);i.call(&quot;_guiRestyle&quot;,e,b,_)}}}function F(t,e,r){var n=_.indexOf(t),i=b[e];return i||(i=b[e]=[]),-1===_.indexOf(t)&amp;&amp;(_.push(t),n=_.length-1),i[n]=r,n}function B(t,e){var r=t._fullInput;if(i.hasTransform(r,&quot;groupby&quot;)){var a=w[r.index];if(!a){var o=i.getTransformIndices(r,&quot;groupby&quot;),s=o[o.length-1];a=n.keyedContainer(r,&quot;transforms[&quot;+s+&quot;].styles&quot;,&quot;target&quot;,&quot;value.visible&quot;),w[r.index]=a}var l=a.get(t._group);void 0===l&amp;&amp;(l=!0),!1!==l&amp;&amp;a.set(t._group,e),T[r.index]=F(r.index,&quot;visible&quot;,!1!==r.visible)}else{var c=!1!==r.visible&amp;&amp;e;F(r.index,&quot;visible&quot;,c)}}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],699:[function(t,e,r){&quot;use strict&quot;;r.isGrouped=function(t){return-1!==(t.traceorder||&quot;&quot;).indexOf(&quot;grouped&quot;)},r.isVertical=function(t){return&quot;h&quot;!==t.orientation},r.isReversed=function(t){return-1!==(t.traceorder||&quot;&quot;).indexOf(&quot;reversed&quot;)}},{}],700:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;legend&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;),style:t(&quot;./style&quot;)}},{&quot;./attributes&quot;:693,&quot;./defaults&quot;:695,&quot;./draw&quot;:696,&quot;./style&quot;:701}],701:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.strTranslate,s=t(&quot;../drawing&quot;),l=t(&quot;../color&quot;),c=t(&quot;../colorscale/helpers&quot;).extractOpts,u=t(&quot;../../traces/scatter/subtypes&quot;),f=t(&quot;../../traces/pie/style_one&quot;),h=t(&quot;../../traces/pie/helpers&quot;).castOption,p=t(&quot;./constants&quot;);function d(t,e){return(e?&quot;radial&quot;:&quot;horizontal&quot;)+(t?&quot;&quot;:&quot;reversed&quot;)}e.exports=function(t,e,r){var g=e._fullLayout;r||(r=g.legend);var m=&quot;constant&quot;===r.itemsizing,v=r.itemwidth,y=(v+2*p.itemGap)/2,x=o(y,0),b=function(t,e,r,n){var i;if(t+1)i=t;else{if(!(e&amp;&amp;e.width&gt;0))return 0;i=e.width}return m?n:Math.min(i,r)};function _(t,e,r){var a=t[0].trace,o=a.marker||{},s=o.line||{},c=r?a.visible&amp;&amp;a.type===r:i.traceIs(a,&quot;bar&quot;),u=n.select(e).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend&quot;+r).data(c?[t]:[]);u.enter().append(&quot;path&quot;).classed(&quot;legend&quot;+r,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,x),u.exit().remove(),u.each((function(t){var e=n.select(this),r=t[0],i=b(r.mlw,o.line,5,2);e.style(&quot;stroke-width&quot;,i+&quot;px&quot;).call(l.fill,r.mc||o.color),i&amp;&amp;l.stroke(e,r.mlc||s.color)}))}function w(t,e,r){var o=t[0],s=o.trace,l=r?s.visible&amp;&amp;s.type===r:i.traceIs(s,r),c=n.select(e).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend&quot;+r).data(l?[t]:[]);if(c.enter().append(&quot;path&quot;).classed(&quot;legend&quot;+r,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,x),c.exit().remove(),c.size()){var u=(s.marker||{}).line,p=b(h(u.width,o.pts),u,5,2),d=a.minExtend(s,{marker:{line:{width:p}}});d.marker.line.color=u.color;var g=a.minExtend(o,{trace:d});f(c,g,d)}}t.each((function(t){var e=n.select(this),i=a.ensureSingle(e,&quot;g&quot;,&quot;layers&quot;);i.style(&quot;opacity&quot;,t[0].trace.opacity);var s=r.valign,l=t[0].lineHeight,c=t[0].height;if(&quot;middle&quot;!==s&amp;&amp;l&amp;&amp;c){var u={top:1,bottom:-1}[s]*(.5*(l-c+3));i.attr(&quot;transform&quot;,o(0,u))}else i.attr(&quot;transform&quot;,null);i.selectAll(&quot;g.legendfill&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendfill&quot;,!0),i.selectAll(&quot;g.legendlines&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendlines&quot;,!0);var f=i.selectAll(&quot;g.legendsymbols&quot;).data([t]);f.enter().append(&quot;g&quot;).classed(&quot;legendsymbols&quot;,!0),f.selectAll(&quot;g.legendpoints&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendpoints&quot;,!0)})).each((function(t){var r,i=t[0].trace,o=[];if(i.visible)switch(i.type){case&quot;histogram2d&quot;:case&quot;heatmap&quot;:o=[[&quot;M-15,-2V4H15V-2Z&quot;]],r=!0;break;case&quot;choropleth&quot;:case&quot;choroplethmapbox&quot;:o=[[&quot;M-6,-6V6H6V-6Z&quot;]],r=!0;break;case&quot;densitymapbox&quot;:o=[[&quot;M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0&quot;]],r=&quot;radial&quot;;break;case&quot;cone&quot;:o=[[&quot;M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z&quot;],[&quot;M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z&quot;],[&quot;M-6,-2 A2,2 0 0,0 -6,2 L6,0Z&quot;]],r=!1;break;case&quot;streamtube&quot;:o=[[&quot;M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z&quot;],[&quot;M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z&quot;],[&quot;M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z&quot;]],r=!1;break;case&quot;surface&quot;:o=[[&quot;M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z&quot;],[&quot;M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z&quot;]],r=!0;break;case&quot;mesh3d&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6H6L0,6Z&quot;]],r=!1;break;case&quot;volume&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6H6L0,6Z&quot;]],r=!0;break;case&quot;isosurface&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6 A12,24 0 0,0 6,-6 L0,6Z&quot;]],r=!1}var u=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend3dandfriends&quot;).data(o);u.enter().append(&quot;path&quot;).classed(&quot;legend3dandfriends&quot;,!0).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),u.exit().remove(),u.each((function(t,o){var u,f=n.select(this),h=c(i),p=h.colorscale,g=h.reversescale;if(p){if(!r){var m=p.length;u=0===o?p[g?m-1:0][1]:1===o?p[g?0:m-1][1]:p[Math.floor((m-1)/2)][1]}}else{var v=i.vertexcolor||i.facecolor||i.color;u=a.isArrayOrTypedArray(v)?v[o]||v[0]:v}f.attr(&quot;d&quot;,t[0]),u?f.call(l.fill,u):f.call((function(t){if(t.size()){var n=&quot;legendfill-&quot;+i.uid;s.gradient(t,e,n,d(g,&quot;radial&quot;===r),p,&quot;fill&quot;)}}))}))})).each((function(t){var e=t[0].trace,r=&quot;waterfall&quot;===e.type;if(t[0]._distinct&amp;&amp;r){var i=t[0].trace[t[0].dir].marker;return t[0].mc=i.color,t[0].mlw=i.line.width,t[0].mlc=i.line.color,_(t,this,&quot;waterfall&quot;)}var a=[];e.visible&amp;&amp;r&amp;&amp;(a=t[0].hasTotals?[[&quot;increasing&quot;,&quot;M-6,-6V6H0Z&quot;],[&quot;totals&quot;,&quot;M6,6H0L-6,-6H-0Z&quot;],[&quot;decreasing&quot;,&quot;M6,6V-6H0Z&quot;]]:[[&quot;increasing&quot;,&quot;M-6,-6V6H6Z&quot;],[&quot;decreasing&quot;,&quot;M6,6V-6H-6Z&quot;]]);var o=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendwaterfall&quot;).data(a);o.enter().append(&quot;path&quot;).classed(&quot;legendwaterfall&quot;,!0).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),o.exit().remove(),o.each((function(t){var r=n.select(this),i=e[t[0]].marker,a=b(void 0,i.line,5,2);r.attr(&quot;d&quot;,t[1]).style(&quot;stroke-width&quot;,a+&quot;px&quot;).call(l.fill,i.color),a&amp;&amp;r.call(l.stroke,i.line.color)}))})).each((function(t){_(t,this,&quot;funnel&quot;)})).each((function(t){_(t,this)})).each((function(t){var r=t[0].trace,o=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendbox&quot;).data(r.visible&amp;&amp;i.traceIs(r,&quot;box-violin&quot;)?[t]:[]);o.enter().append(&quot;path&quot;).classed(&quot;legendbox&quot;,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,x),o.exit().remove(),o.each((function(){var t=n.select(this);if(&quot;all&quot;!==r.boxpoints&amp;&amp;&quot;all&quot;!==r.points||0!==l.opacity(r.fillcolor)||0!==l.opacity((r.line||{}).color)){var i=b(void 0,r.line,5,2);t.style(&quot;stroke-width&quot;,i+&quot;px&quot;).call(l.fill,r.fillcolor),i&amp;&amp;l.stroke(t,r.line.color)}else{var c=a.minExtend(r,{marker:{size:m?12:a.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:&quot;diameter&quot;}});o.call(s.pointStyle,c,e)}}))})).each((function(t){w(t,this,&quot;funnelarea&quot;)})).each((function(t){w(t,this,&quot;pie&quot;)})).each((function(t){var r,i,o=t[0],l=o.trace,f=l.visible&amp;&amp;l.fill&amp;&amp;&quot;none&quot;!==l.fill,h=u.hasLines(l),p=l.contours,g=!1,m=!1,y=c(l),x=y.colorscale,_=y.reversescale;if(p){var w=p.coloring;&quot;lines&quot;===w?g=!0:h=&quot;none&quot;===w||&quot;heatmap&quot;===w||p.showlines,&quot;constraint&quot;===p.type?f=&quot;=&quot;!==p._operation:&quot;fill&quot;!==w&amp;&amp;&quot;heatmap&quot;!==w||(m=!0)}var T=u.hasMarkers(l)||u.hasText(l),k=f||m,M=h||g,A=T||!k?&quot;M5,0&quot;:M?&quot;M5,-2&quot;:&quot;M5,-3&quot;,S=n.select(this),E=S.select(&quot;.legendfill&quot;).selectAll(&quot;path&quot;).data(f||m?[t]:[]);if(E.enter().append(&quot;path&quot;).classed(&quot;js-fill&quot;,!0),E.exit().remove(),E.attr(&quot;d&quot;,A+&quot;h&quot;+v+&quot;v6h-&quot;+v+&quot;z&quot;).call(f?s.fillGroupStyle:function(t){if(t.size()){var r=&quot;legendfill-&quot;+l.uid;s.gradient(t,e,r,d(_),x,&quot;fill&quot;)}}),h||g){var C=b(void 0,l.line,10,5);i=a.minExtend(l,{line:{width:C}}),r=[a.minExtend(o,{trace:i})]}var L=S.select(&quot;.legendlines&quot;).selectAll(&quot;path&quot;).data(h||g?[r]:[]);L.enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0),L.exit().remove(),L.attr(&quot;d&quot;,A+(g?&quot;l&quot;+v+&quot;,0.0001&quot;:&quot;h&quot;+v)).call(h?s.lineGroupStyle:function(t){if(t.size()){var r=&quot;legendline-&quot;+l.uid;s.lineGroupStyle(t),s.gradient(t,e,r,d(_),x,&quot;stroke&quot;)}})})).each((function(t){var r,i,o=t[0],l=o.trace,c=u.hasMarkers(l),f=u.hasText(l),h=u.hasLines(l);function p(t,e,r,n){var i=a.nestedProperty(l,t).get(),o=a.isArrayOrTypedArray(i)&amp;&amp;e?e(i):i;if(m&amp;&amp;o&amp;&amp;void 0!==n&amp;&amp;(o=n),r){if(o&lt;r[0])return r[0];if(o&gt;r[1])return r[1]}return o}function d(t){return o._distinct&amp;&amp;o.index&amp;&amp;t[o.index]?t[o.index]:t[0]}if(c||f||h){var g={},v={};if(c){g.mc=p(&quot;marker.color&quot;,d),g.mx=p(&quot;marker.symbol&quot;,d),g.mo=p(&quot;marker.opacity&quot;,a.mean,[.2,1]),g.mlc=p(&quot;marker.line.color&quot;,d),g.mlw=p(&quot;marker.line.width&quot;,a.mean,[0,5],2),v.marker={sizeref:1,sizemin:1,sizemode:&quot;diameter&quot;};var y=p(&quot;marker.size&quot;,a.mean,[2,16],12);g.ms=y,v.marker.size=y}h&amp;&amp;(v.line={width:p(&quot;line.width&quot;,d,[0,10],5)}),f&amp;&amp;(g.tx=&quot;Aa&quot;,g.tp=p(&quot;textposition&quot;,d),g.ts=10,g.tc=p(&quot;textfont.color&quot;,d),g.tf=p(&quot;textfont.family&quot;,d)),r=[a.minExtend(o,g)],(i=a.minExtend(l,v)).selectedpoints=null,i.texttemplate=null}var b=n.select(this).select(&quot;g.legendpoints&quot;),_=b.selectAll(&quot;path.scatterpts&quot;).data(c?r:[]);_.enter().insert(&quot;path&quot;,&quot;:first-child&quot;).classed(&quot;scatterpts&quot;,!0).attr(&quot;transform&quot;,x),_.exit().remove(),_.call(s.pointStyle,i,e),c&amp;&amp;(r[0].mrc=3);var w=b.selectAll(&quot;g.pointtext&quot;).data(f?r:[]);w.enter().append(&quot;g&quot;).classed(&quot;pointtext&quot;,!0).append(&quot;text&quot;).attr(&quot;transform&quot;,x),w.exit().remove(),w.selectAll(&quot;text&quot;).call(s.textPointStyle,i,e)})).each((function(t){var e=t[0].trace,r=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendcandle&quot;).data(e.visible&amp;&amp;&quot;candlestick&quot;===e.type?[t,t]:[]);r.enter().append(&quot;path&quot;).classed(&quot;legendcandle&quot;,!0).attr(&quot;d&quot;,(function(t,e){return e?&quot;M-15,0H-8M-8,6V-6H8Z&quot;:&quot;M15,0H8M8,-6V6H-8Z&quot;})).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?&quot;increasing&quot;:&quot;decreasing&quot;],o=b(void 0,a.line,5,2);i.style(&quot;stroke-width&quot;,o+&quot;px&quot;).call(l.fill,a.fillcolor),o&amp;&amp;l.stroke(i,a.line.color)}))})).each((function(t){var e=t[0].trace,r=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendohlc&quot;).data(e.visible&amp;&amp;&quot;ohlc&quot;===e.type?[t,t]:[]);r.enter().append(&quot;path&quot;).classed(&quot;legendohlc&quot;,!0).attr(&quot;d&quot;,(function(t,e){return e?&quot;M-15,0H0M-8,-6V0&quot;:&quot;M15,0H0M8,6V0&quot;})).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?&quot;increasing&quot;:&quot;decreasing&quot;],o=b(void 0,a.line,5,2);i.style(&quot;fill&quot;,&quot;none&quot;).call(s.dashLine,a.line.dash,o),o&amp;&amp;l.stroke(i,a.line.color)}))}))}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../../traces/pie/helpers&quot;:1166,&quot;../../traces/pie/style_one&quot;:1172,&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../color&quot;:643,&quot;../colorscale/helpers&quot;:654,&quot;../drawing&quot;:665,&quot;./constants&quot;:694,d3:169}],702:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../fonts/ploticon&quot;),s=t(&quot;../shapes/draw&quot;).eraseActiveShape,l=t(&quot;../../lib&quot;),c=l._,u=e.exports={};function f(t,e){var r,i,o=e.currentTarget,s=o.getAttribute(&quot;data-attr&quot;),l=o.getAttribute(&quot;data-val&quot;)||!0,c=t._fullLayout,u={},f=a.list(t,null,!0),h=c._cartesianSpikesEnabled;if(&quot;zoom&quot;===s){var p,d=&quot;in&quot;===l?.5:2,g=(1+d)/2,m=(1-d)/2;for(i=0;i&lt;f.length;i++)if(!(r=f[i]).fixedrange)if(p=r._name,&quot;auto&quot;===l)u[p+&quot;.autorange&quot;]=!0;else if(&quot;reset&quot;===l){if(void 0===r._rangeInitial)u[p+&quot;.autorange&quot;]=!0;else{var v=r._rangeInitial.slice();u[p+&quot;.range[0]&quot;]=v[0],u[p+&quot;.range[1]&quot;]=v[1]}void 0!==r._showSpikeInitial&amp;&amp;(u[p+&quot;.showspikes&quot;]=r._showSpikeInitial,&quot;on&quot;!==h||r._showSpikeInitial||(h=&quot;off&quot;))}else{var y=[r.r2l(r.range[0]),r.r2l(r.range[1])],x=[g*y[0]+m*y[1],g*y[1]+m*y[0]];u[p+&quot;.range[0]&quot;]=r.l2r(x[0]),u[p+&quot;.range[1]&quot;]=r.l2r(x[1])}}else&quot;hovermode&quot;!==s||&quot;x&quot;!==l&amp;&amp;&quot;y&quot;!==l||(l=c._isHoriz?&quot;y&quot;:&quot;x&quot;,o.setAttribute(&quot;data-val&quot;,l)),u[s]=l;c._cartesianSpikesEnabled=h,n.call(&quot;_guiRelayout&quot;,t,u)}function h(t,e){for(var r=e.currentTarget,i=r.getAttribute(&quot;data-attr&quot;),a=r.getAttribute(&quot;data-val&quot;)||!0,o=t._fullLayout._subplots.gl3d||[],s={},l=i.split(&quot;.&quot;),c=0;c&lt;o.length;c++)s[o[c]+&quot;.&quot;+l[1]]=a;var u=&quot;pan&quot;===a?a:&quot;zoom&quot;;s.dragmode=u,n.call(&quot;_guiRelayout&quot;,t,s)}function p(t,e){for(var r=e.currentTarget.getAttribute(&quot;data-attr&quot;),i=&quot;resetLastSave&quot;===r,a=&quot;resetDefault&quot;===r,o=t._fullLayout,s=o._subplots.gl3d||[],l={},c=0;c&lt;s.length;c++){var u,f=s[c],h=f+&quot;.camera&quot;,p=f+&quot;.aspectratio&quot;,d=f+&quot;.aspectmode&quot;,g=o[f]._scene;i?(l[h+&quot;.up&quot;]=g.viewInitial.up,l[h+&quot;.eye&quot;]=g.viewInitial.eye,l[h+&quot;.center&quot;]=g.viewInitial.center,u=!0):a&amp;&amp;(l[h+&quot;.up&quot;]=null,l[h+&quot;.eye&quot;]=null,l[h+&quot;.center&quot;]=null,u=!0),u&amp;&amp;(l[p+&quot;.x&quot;]=g.viewInitial.aspectratio.x,l[p+&quot;.y&quot;]=g.viewInitial.aspectratio.y,l[p+&quot;.z&quot;]=g.viewInitial.aspectratio.z,l[d]=g.viewInitial.aspectmode)}n.call(&quot;_guiRelayout&quot;,t,l)}function d(t,e){var r=e.currentTarget,n=r._previousVal,i=t._fullLayout,a=i._subplots.gl3d||[],o=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;],s={},l={};if(n)l=n,r._previousVal=null;else{for(var c=0;c&lt;a.length;c++){var u=a[c],f=i[u],h=u+&quot;.hovermode&quot;;s[h]=f.hovermode,l[h]=!1;for(var p=0;p&lt;3;p++){var d=o[p],g=u+&quot;.&quot;+d+&quot;.showspikes&quot;;l[g]=!1,s[g]=f[d].showspikes}}r._previousVal=s}return l}function g(t,e){for(var r=e.currentTarget,i=r.getAttribute(&quot;data-attr&quot;),a=r.getAttribute(&quot;data-val&quot;)||!0,o=t._fullLayout,s=o._subplots.geo||[],l=0;l&lt;s.length;l++){var c=s[l],u=o[c];if(&quot;zoom&quot;===i){var f=u.projection.scale,h=&quot;in&quot;===a?2*f:.5*f;n.call(&quot;_guiRelayout&quot;,t,c+&quot;.projection.scale&quot;,h)}}&quot;reset&quot;===i&amp;&amp;x(t,&quot;geo&quot;)}function m(t){var e=t._fullLayout;return!e.hovermode&amp;&amp;(e._has(&quot;cartesian&quot;)?e._isHoriz?&quot;y&quot;:&quot;x&quot;:&quot;closest&quot;)}function v(t){var e=m(t);n.call(&quot;_guiRelayout&quot;,t,&quot;hovermode&quot;,e)}function y(t,e){for(var r=e.currentTarget.getAttribute(&quot;data-val&quot;),i=t._fullLayout,a=i._subplots.mapbox||[],o={},s=0;s&lt;a.length;s++){var l=a[s],c=i[l].zoom,u=&quot;in&quot;===r?1.05*c:c/1.05;o[l+&quot;.zoom&quot;]=u}n.call(&quot;_guiRelayout&quot;,t,o)}function x(t,e){for(var r=t._fullLayout,i=r._subplots[e]||[],a={},o=0;o&lt;i.length;o++)for(var s=i[o],l=r[s]._subplot.viewInitial,c=Object.keys(l),u=0;u&lt;c.length;u++){var f=c[u];a[s+&quot;.&quot;+f]=l[f]}n.call(&quot;_guiRelayout&quot;,t,a)}u.toImage={name:&quot;toImage&quot;,title:function(t){var e=(t._context.toImageButtonOptions||{}).format||&quot;png&quot;;return c(t,&quot;png&quot;===e?&quot;Download plot as a png&quot;:&quot;Download plot&quot;)},icon:o.camera,click:function(t){var e=t._context.toImageButtonOptions,r={format:e.format||&quot;png&quot;};l.notifier(c(t,&quot;Taking snapshot - this may take a few seconds&quot;),&quot;long&quot;),&quot;svg&quot;!==r.format&amp;&amp;l.isIE()&amp;&amp;(l.notifier(c(t,&quot;IE only supports svg.  Changing format to svg.&quot;),&quot;long&quot;),r.format=&quot;svg&quot;),[&quot;filename&quot;,&quot;width&quot;,&quot;height&quot;,&quot;scale&quot;].forEach((function(t){t in e&amp;&amp;(r[t]=e[t])})),n.call(&quot;downloadImage&quot;,t,r).then((function(e){l.notifier(c(t,&quot;Snapshot succeeded&quot;)+&quot; - &quot;+e,&quot;long&quot;)})).catch((function(){l.notifier(c(t,&quot;Sorry, there was a problem downloading your snapshot!&quot;),&quot;long&quot;)}))}},u.sendDataToCloud={name:&quot;sendDataToCloud&quot;,title:function(t){return c(t,&quot;Edit in Chart Studio&quot;)},icon:o.disk,click:function(t){i.sendDataToCloud(t)}},u.editInChartStudio={name:&quot;editInChartStudio&quot;,title:function(t){return c(t,&quot;Edit in Chart Studio&quot;)},icon:o.pencil,click:function(t){i.sendDataToCloud(t)}},u.zoom2d={name:&quot;zoom2d&quot;,title:function(t){return c(t,&quot;Zoom&quot;)},attr:&quot;dragmode&quot;,val:&quot;zoom&quot;,icon:o.zoombox,click:f},u.pan2d={name:&quot;pan2d&quot;,title:function(t){return c(t,&quot;Pan&quot;)},attr:&quot;dragmode&quot;,val:&quot;pan&quot;,icon:o.pan,click:f},u.select2d={name:&quot;select2d&quot;,title:function(t){return c(t,&quot;Box Select&quot;)},attr:&quot;dragmode&quot;,val:&quot;select&quot;,icon:o.selectbox,click:f},u.lasso2d={name:&quot;lasso2d&quot;,title:function(t){return c(t,&quot;Lasso Select&quot;)},attr:&quot;dragmode&quot;,val:&quot;lasso&quot;,icon:o.lasso,click:f},u.drawclosedpath={name:&quot;drawclosedpath&quot;,title:function(t){return c(t,&quot;Draw closed freeform&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawclosedpath&quot;,icon:o.drawclosedpath,click:f},u.drawopenpath={name:&quot;drawopenpath&quot;,title:function(t){return c(t,&quot;Draw open freeform&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawopenpath&quot;,icon:o.drawopenpath,click:f},u.drawline={name:&quot;drawline&quot;,title:function(t){return c(t,&quot;Draw line&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawline&quot;,icon:o.drawline,click:f},u.drawrect={name:&quot;drawrect&quot;,title:function(t){return c(t,&quot;Draw rectangle&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawrect&quot;,icon:o.drawrect,click:f},u.drawcircle={name:&quot;drawcircle&quot;,title:function(t){return c(t,&quot;Draw circle&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawcircle&quot;,icon:o.drawcircle,click:f},u.eraseshape={name:&quot;eraseshape&quot;,title:function(t){return c(t,&quot;Erase active shape&quot;)},icon:o.eraseshape,click:s},u.zoomIn2d={name:&quot;zoomIn2d&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:f},u.zoomOut2d={name:&quot;zoomOut2d&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:f},u.autoScale2d={name:&quot;autoScale2d&quot;,title:function(t){return c(t,&quot;Autoscale&quot;)},attr:&quot;zoom&quot;,val:&quot;auto&quot;,icon:o.autoscale,click:f},u.resetScale2d={name:&quot;resetScale2d&quot;,title:function(t){return c(t,&quot;Reset axes&quot;)},attr:&quot;zoom&quot;,val:&quot;reset&quot;,icon:o.home,click:f},u.hoverClosestCartesian={name:&quot;hoverClosestCartesian&quot;,title:function(t){return c(t,&quot;Show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:&quot;closest&quot;,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:f},u.hoverCompareCartesian={name:&quot;hoverCompareCartesian&quot;,title:function(t){return c(t,&quot;Compare data on hover&quot;)},attr:&quot;hovermode&quot;,val:function(t){return t._fullLayout._isHoriz?&quot;y&quot;:&quot;x&quot;},icon:o.tooltip_compare,gravity:&quot;ne&quot;,click:f},u.zoom3d={name:&quot;zoom3d&quot;,title:function(t){return c(t,&quot;Zoom&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;zoom&quot;,icon:o.zoombox,click:h},u.pan3d={name:&quot;pan3d&quot;,title:function(t){return c(t,&quot;Pan&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;pan&quot;,icon:o.pan,click:h},u.orbitRotation={name:&quot;orbitRotation&quot;,title:function(t){return c(t,&quot;Orbital rotation&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;orbit&quot;,icon:o[&quot;3d_rotate&quot;],click:h},u.tableRotation={name:&quot;tableRotation&quot;,title:function(t){return c(t,&quot;Turntable rotation&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;turntable&quot;,icon:o[&quot;z-axis&quot;],click:h},u.resetCameraDefault3d={name:&quot;resetCameraDefault3d&quot;,title:function(t){return c(t,&quot;Reset camera to default&quot;)},attr:&quot;resetDefault&quot;,icon:o.home,click:p},u.resetCameraLastSave3d={name:&quot;resetCameraLastSave3d&quot;,title:function(t){return c(t,&quot;Reset camera to last save&quot;)},attr:&quot;resetLastSave&quot;,icon:o.movie,click:p},u.hoverClosest3d={name:&quot;hoverClosest3d&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:function(t,e){var r=d(t,e);n.call(&quot;_guiRelayout&quot;,t,r)}},u.zoomInGeo={name:&quot;zoomInGeo&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:g},u.zoomOutGeo={name:&quot;zoomOutGeo&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:g},u.resetGeo={name:&quot;resetGeo&quot;,title:function(t){return c(t,&quot;Reset&quot;)},attr:&quot;reset&quot;,val:null,icon:o.autoscale,click:g},u.hoverClosestGeo={name:&quot;hoverClosestGeo&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.hoverClosestGl2d={name:&quot;hoverClosestGl2d&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.hoverClosestPie={name:&quot;hoverClosestPie&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:&quot;closest&quot;,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.resetViewSankey={name:&quot;resetSankeyGroup&quot;,title:function(t){return c(t,&quot;Reset view&quot;)},icon:o.home,click:function(t){for(var e={&quot;node.groups&quot;:[],&quot;node.x&quot;:[],&quot;node.y&quot;:[]},r=0;r&lt;t._fullData.length;r++){var i=t._fullData[r]._viewInitial;e[&quot;node.groups&quot;].push(i.node.groups.slice()),e[&quot;node.x&quot;].push(i.node.x.slice()),e[&quot;node.y&quot;].push(i.node.y.slice())}n.call(&quot;restyle&quot;,t,e)}},u.toggleHover={name:&quot;toggleHover&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:function(t,e){var r=d(t,e);r.hovermode=m(t),n.call(&quot;_guiRelayout&quot;,t,r)}},u.resetViews={name:&quot;resetViews&quot;,title:function(t){return c(t,&quot;Reset views&quot;)},icon:o.home,click:function(t,e){var r=e.currentTarget;r.setAttribute(&quot;data-attr&quot;,&quot;zoom&quot;),r.setAttribute(&quot;data-val&quot;,&quot;reset&quot;),f(t,e),r.setAttribute(&quot;data-attr&quot;,&quot;resetLastSave&quot;),p(t,e),x(t,&quot;geo&quot;),x(t,&quot;mapbox&quot;)}},u.toggleSpikelines={name:&quot;toggleSpikelines&quot;,title:function(t){return c(t,&quot;Toggle Spike Lines&quot;)},icon:o.spikeline,attr:&quot;_cartesianSpikesEnabled&quot;,val:&quot;on&quot;,click:function(t){var e=t._fullLayout,r=e._cartesianSpikesEnabled;e._cartesianSpikesEnabled=&quot;on&quot;===r?&quot;off&quot;:&quot;on&quot;,n.call(&quot;_guiRelayout&quot;,t,function(t){for(var e=&quot;on&quot;===t._fullLayout._cartesianSpikesEnabled,r=a.list(t,null,!0),n={},i=0;i&lt;r.length;i++){var o=r[i];n[o._name+&quot;.showspikes&quot;]=!!e||o._showSpikeInitial}return n}(t))}},u.resetViewMapbox={name:&quot;resetViewMapbox&quot;,title:function(t){return c(t,&quot;Reset view&quot;)},attr:&quot;reset&quot;,icon:o.home,click:function(t){x(t,&quot;mapbox&quot;)}},u.zoomInMapbox={name:&quot;zoomInMapbox&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:y},u.zoomOutMapbox={name:&quot;zoomOutMapbox&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:y}},{&quot;../../fonts/ploticon&quot;:757,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../shapes/draw&quot;:724}],703:[function(t,e,r){&quot;use strict&quot;;r.manage=t(&quot;./manage&quot;)},{&quot;./manage&quot;:704}],704:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;),i=t(&quot;../../traces/scatter/subtypes&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../fx/helpers&quot;).isUnifiedHover,s=t(&quot;./modebar&quot;),l=t(&quot;./buttons&quot;);e.exports=function(t){var e=t._fullLayout,r=t._context,u=e._modeBar;if(r.displayModeBar||r.watermark){if(!Array.isArray(r.modeBarButtonsToRemove))throw new Error([&quot;*modeBarButtonsToRemove* configuration options&quot;,&quot;must be an array.&quot;].join(&quot; &quot;));if(!Array.isArray(r.modeBarButtonsToAdd))throw new Error([&quot;*modeBarButtonsToAdd* configuration options&quot;,&quot;must be an array.&quot;].join(&quot; &quot;));var f,h=r.modeBarButtons;f=Array.isArray(h)&amp;&amp;h.length?function(t){for(var e=0;e&lt;t.length;e++)for(var r=t[e],n=0;n&lt;r.length;n++){var i=r[n];if(&quot;string&quot;==typeof i){if(void 0===l[i])throw new Error([&quot;*modeBarButtons* configuration options&quot;,&quot;invalid button name&quot;].join(&quot; &quot;));t[e][n]=l[i]}}return t}(h):!r.displayModeBar&amp;&amp;r.watermark?[]:function(t){var e=t._fullLayout,r=t._fullData,s=t._context,u=s.modeBarButtonsToRemove,f=s.modeBarButtonsToAdd,h=e._has(&quot;cartesian&quot;),p=e._has(&quot;gl3d&quot;),d=e._has(&quot;geo&quot;),g=e._has(&quot;pie&quot;),m=e._has(&quot;funnelarea&quot;),v=e._has(&quot;gl2d&quot;),y=e._has(&quot;ternary&quot;),x=e._has(&quot;mapbox&quot;),b=e._has(&quot;polar&quot;),_=e._has(&quot;sankey&quot;),w=function(t){for(var e=n.list({_fullLayout:t},null,!0),r=0;r&lt;e.length;r++)if(!e[r].fixedrange)return!1;return!0}(e),T=o(e.hovermode),k=[];function M(t){if(t.length){for(var e=[],r=0;r&lt;t.length;r++){var n=t[r];-1===u.indexOf(n)&amp;&amp;e.push(l[n])}k.push(e)}}var A=[&quot;toImage&quot;];s.showEditInChartStudio?A.push(&quot;editInChartStudio&quot;):s.showSendToCloud&amp;&amp;A.push(&quot;sendDataToCloud&quot;);M(A);var S=[],E=[],C=[],L=[];(h||v||g||m||y)+d+p+x+b&gt;1?(E=[&quot;toggleHover&quot;],C=[&quot;resetViews&quot;]):d?(S=[&quot;zoomInGeo&quot;,&quot;zoomOutGeo&quot;],E=[&quot;hoverClosestGeo&quot;],C=[&quot;resetGeo&quot;]):p?(E=[&quot;hoverClosest3d&quot;],C=[&quot;resetCameraDefault3d&quot;,&quot;resetCameraLastSave3d&quot;]):x?(S=[&quot;zoomInMapbox&quot;,&quot;zoomOutMapbox&quot;],E=[&quot;toggleHover&quot;],C=[&quot;resetViewMapbox&quot;]):v?E=[&quot;hoverClosestGl2d&quot;]:g?E=[&quot;hoverClosestPie&quot;]:_?(E=[&quot;hoverClosestCartesian&quot;,&quot;hoverCompareCartesian&quot;],C=[&quot;resetViewSankey&quot;]):E=[&quot;toggleHover&quot;];h&amp;&amp;(E=[&quot;toggleSpikelines&quot;,&quot;hoverClosestCartesian&quot;,&quot;hoverCompareCartesian&quot;]);(function(t){for(var e=0;e&lt;t.length;e++)if(!a.traceIs(t[e],&quot;noHover&quot;))return!1;return!0}(r)||T)&amp;&amp;(E=[]);!h&amp;&amp;!v||w||(S=[&quot;zoomIn2d&quot;,&quot;zoomOut2d&quot;,&quot;autoScale2d&quot;],&quot;resetViews&quot;!==C[0]&amp;&amp;(C=[&quot;resetScale2d&quot;]));p?L=[&quot;zoom3d&quot;,&quot;pan3d&quot;,&quot;orbitRotation&quot;,&quot;tableRotation&quot;]:(h||v)&amp;&amp;!w||y?L=[&quot;zoom2d&quot;,&quot;pan2d&quot;]:x||d?L=[&quot;pan2d&quot;]:b&amp;&amp;(L=[&quot;zoom2d&quot;]);(function(t){for(var e=!1,r=0;r&lt;t.length&amp;&amp;!e;r++){var n=t[r];n._module&amp;&amp;n._module.selectPoints&amp;&amp;(a.traceIs(n,&quot;scatter-like&quot;)?(i.hasMarkers(n)||i.hasText(n))&amp;&amp;(e=!0):a.traceIs(n,&quot;box-violin&quot;)&amp;&amp;&quot;all&quot;!==n.boxpoints&amp;&amp;&quot;all&quot;!==n.points||(e=!0))}return e})(r)&amp;&amp;L.push(&quot;select2d&quot;,&quot;lasso2d&quot;);if(Array.isArray(f)){for(var I=[],P=0;P&lt;f.length;P++){var z=f[P];&quot;string&quot;==typeof z?-1!==c.indexOf(z)&amp;&amp;(e._has(&quot;mapbox&quot;)||e._has(&quot;cartesian&quot;))&amp;&amp;L.push(z):I.push(z)}f=I}return M(L),M(S.concat(C)),M(E),function(t,e){if(e.length)if(Array.isArray(e[0]))for(var r=0;r&lt;e.length;r++)t.push(e[r]);else t.push(e);return t}(k,f)}(t),u?u.update(t,f):e._modeBar=s(t,f)}else u&amp;&amp;(u.destroy(),delete e._modeBar)};var c=[&quot;drawline&quot;,&quot;drawopenpath&quot;,&quot;drawclosedpath&quot;,&quot;drawcircle&quot;,&quot;drawrect&quot;,&quot;eraseshape&quot;]},{&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../registry&quot;:911,&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../fx/helpers&quot;:679,&quot;./buttons&quot;:702,&quot;./modebar&quot;:705}],705:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../fonts/ploticon&quot;),s=new DOMParser;function l(t){this.container=t.container,this.element=document.createElement(&quot;div&quot;),this.update(t.graphInfo,t.buttons),this.container.appendChild(this.element)}var c=l.prototype;c.update=function(t,e){this.graphInfo=t;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i=&quot;modebar-&quot;+n._uid;this.element.setAttribute(&quot;id&quot;,i),this._uid=i,this.element.className=&quot;modebar&quot;,&quot;hover&quot;===r.displayModeBar&amp;&amp;(this.element.className+=&quot; modebar--hover ease-bg&quot;),&quot;v&quot;===n.modebar.orientation&amp;&amp;(this.element.className+=&quot; vertical&quot;,e=e.reverse());var o=n.modebar,s=&quot;hover&quot;===r.displayModeBar?&quot;.js-plotly-plot .plotly:hover &quot;:&quot;&quot;;a.deleteRelatedStyleRule(i),a.addRelatedStyleRule(i,s+&quot;#&quot;+i+&quot; .modebar-group&quot;,&quot;background-color: &quot;+o.bgcolor),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn .icon path&quot;,&quot;fill: &quot;+o.color),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn:hover .icon path&quot;,&quot;fill: &quot;+o.activecolor),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn.active .icon path&quot;,&quot;fill: &quot;+o.activecolor);var l=!this.hasButtons(e),c=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(l||c||u)&amp;&amp;(this.removeAllButtons(),this.updateButtons(e),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&amp;&amp;(f.className=f.className+&quot; watermark&quot;),&quot;v&quot;===n.modebar.orientation?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton()},c.updateButtons=function(t){var e=this;this.buttons=t,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(t){var r=e.createGroup();t.forEach((function(t){var n=t.name;if(!n)throw new Error(&quot;must provide button 'name' in button config&quot;);if(-1!==e.buttonsNames.indexOf(n))throw new Error(&quot;button name '&quot;+n+&quot;' is taken&quot;);e.buttonsNames.push(n);var i=e.createButton(t);e.buttonElements.push(i),r.appendChild(i)})),e.element.appendChild(r)}))},c.createGroup=function(){var t=document.createElement(&quot;div&quot;);return t.className=&quot;modebar-group&quot;,t},c.createButton=function(t){var e=this,r=document.createElement(&quot;a&quot;);r.setAttribute(&quot;rel&quot;,&quot;tooltip&quot;),r.className=&quot;modebar-btn&quot;;var i=t.title;void 0===i?i=t.name:&quot;function&quot;==typeof i&amp;&amp;(i=i(this.graphInfo)),(i||0===i)&amp;&amp;r.setAttribute(&quot;data-title&quot;,i),void 0!==t.attr&amp;&amp;r.setAttribute(&quot;data-attr&quot;,t.attr);var a=t.val;if(void 0!==a&amp;&amp;(&quot;function&quot;==typeof a&amp;&amp;(a=a(this.graphInfo)),r.setAttribute(&quot;data-val&quot;,a)),&quot;function&quot;!=typeof t.click)throw new Error(&quot;must provide button 'click' function in button config&quot;);r.addEventListener(&quot;click&quot;,(function(r){t.click(e.graphInfo,r),e.updateActiveButton(r.currentTarget)})),r.setAttribute(&quot;data-toggle&quot;,t.toggle||!1),t.toggle&amp;&amp;n.select(r).classed(&quot;active&quot;,!0);var s=t.icon;return&quot;function&quot;==typeof s?r.appendChild(s()):r.appendChild(this.createIcon(s||o.question)),r.setAttribute(&quot;data-gravity&quot;,t.gravity||&quot;n&quot;),r},c.createIcon=function(t){var e,r=i(t.height)?Number(t.height):t.ascent-t.descent,n=&quot;http://www.w3.org/2000/svg&quot;;if(t.path){(e=document.createElementNS(n,&quot;svg&quot;)).setAttribute(&quot;viewBox&quot;,[0,0,t.width,r].join(&quot; &quot;)),e.setAttribute(&quot;class&quot;,&quot;icon&quot;);var a=document.createElementNS(n,&quot;path&quot;);a.setAttribute(&quot;d&quot;,t.path),t.transform?a.setAttribute(&quot;transform&quot;,t.transform):void 0!==t.ascent&amp;&amp;a.setAttribute(&quot;transform&quot;,&quot;matrix(1 0 0 -1 0 &quot;+t.ascent+&quot;)&quot;),e.appendChild(a)}t.svg&amp;&amp;(e=s.parseFromString(t.svg,&quot;application/xml&quot;).childNodes[0]);return e.setAttribute(&quot;height&quot;,&quot;1em&quot;),e.setAttribute(&quot;width&quot;,&quot;1em&quot;),e},c.updateActiveButton=function(t){var e=this.graphInfo._fullLayout,r=void 0!==t?t.getAttribute(&quot;data-attr&quot;):null;this.buttonElements.forEach((function(t){var i=t.getAttribute(&quot;data-val&quot;)||!0,o=t.getAttribute(&quot;data-attr&quot;),s=&quot;true&quot;===t.getAttribute(&quot;data-toggle&quot;),l=n.select(t);if(s)o===r&amp;&amp;l.classed(&quot;active&quot;,!l.classed(&quot;active&quot;));else{var c=null===o?o:a.nestedProperty(e,o).get();l.classed(&quot;active&quot;,c===i)}}))},c.hasButtons=function(t){var e=this.buttons;if(!e)return!1;if(t.length!==e.length)return!1;for(var r=0;r&lt;t.length;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n&lt;t[r].length;n++)if(t[r][n].name!==e[r][n].name)return!1}return!0},c.getLogo=function(){var t=this.createGroup(),e=document.createElement(&quot;a&quot;);return e.href=&quot;https://plotly.com/&quot;,e.target=&quot;_blank&quot;,e.setAttribute(&quot;data-title&quot;,a._(this.graphInfo,&quot;Produced with Plotly&quot;)),e.className=&quot;modebar-btn plotlyjsicon modebar-btn--logo&quot;,e.appendChild(this.createIcon(o.newplotlylogo)),t.appendChild(e),t},c.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},c.destroy=function(){a.removeElement(this.container.querySelector(&quot;.modebar&quot;)),a.deleteRelatedStyleRule(this._uid)},e.exports=function(t,e){var r=t._fullLayout,i=new l({graphInfo:t,container:r._modebardiv.node(),buttons:e});return r._privateplot&amp;&amp;n.select(i.element).append(&quot;span&quot;).classed(&quot;badge-private float--left&quot;,!0).text(&quot;PRIVATE&quot;),i}},{&quot;../../fonts/ploticon&quot;:757,&quot;../../lib&quot;:778,d3:169,&quot;fast-isnumeric&quot;:241}],706:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;),a=(0,t(&quot;../../plot_api/plot_template&quot;).templatedArray)(&quot;button&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},step:{valType:&quot;enumerated&quot;,values:[&quot;month&quot;,&quot;year&quot;,&quot;day&quot;,&quot;hour&quot;,&quot;minute&quot;,&quot;second&quot;,&quot;all&quot;],dflt:&quot;month&quot;,editType:&quot;plot&quot;},stepmode:{valType:&quot;enumerated&quot;,values:[&quot;backward&quot;,&quot;todate&quot;],dflt:&quot;backward&quot;,editType:&quot;plot&quot;},count:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},label:{valType:&quot;string&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;});e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},buttons:a,x:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;plot&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;plot&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;plot&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;bottom&quot;,editType:&quot;plot&quot;},font:n({editType:&quot;plot&quot;}),bgcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;plot&quot;},activecolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;plot&quot;}},{&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/font_attributes&quot;:856,&quot;../color/attributes&quot;:642}],707:[function(t,e,r){&quot;use strict&quot;;e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},{}],708:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;../../plots/array_container_defaults&quot;),s=t(&quot;./attributes&quot;),l=t(&quot;./constants&quot;);function c(t,e,r,i){var a=i.calendar;function o(r,i){return n.coerce(t,e,s.buttons,r,i)}if(o(&quot;visible&quot;)){var l=o(&quot;step&quot;);&quot;all&quot;!==l&amp;&amp;(!a||&quot;gregorian&quot;===a||&quot;month&quot;!==l&amp;&amp;&quot;year&quot;!==l?o(&quot;stepmode&quot;):e.stepmode=&quot;backward&quot;,o(&quot;count&quot;)),o(&quot;label&quot;)}}e.exports=function(t,e,r,u,f){var h=t.rangeselector||{},p=a.newContainer(e,&quot;rangeselector&quot;);function d(t,e){return n.coerce(h,p,s,t,e)}if(d(&quot;visible&quot;,o(h,p,{name:&quot;buttons&quot;,handleItemDefaults:c,calendar:f}).length&gt;0)){var g=function(t,e,r){for(var n=r.filter((function(r){return e[r].anchor===t._id})),i=0,a=0;a&lt;n.length;a++){var o=e[n[a]].domain;o&amp;&amp;(i=Math.max(o[1],i))}return[t.domain[0],i+l.yPad]}(e,r,u);d(&quot;x&quot;,g[0]),d(&quot;y&quot;,g[1]),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),d(&quot;xanchor&quot;),d(&quot;yanchor&quot;),n.coerceFont(d,&quot;font&quot;,r.font);var m=d(&quot;bgcolor&quot;);d(&quot;activecolor&quot;,i.contrast(m,l.lightAmount,l.darkAmount)),d(&quot;bordercolor&quot;),d(&quot;borderwidth&quot;)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/array_container_defaults&quot;:823,&quot;../color&quot;:643,&quot;./attributes&quot;:706,&quot;./constants&quot;:707}],709:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../color&quot;),s=t(&quot;../drawing&quot;),l=t(&quot;../../lib&quot;),c=l.strTranslate,u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../plots/cartesian/axis_ids&quot;),h=t(&quot;../../constants/alignment&quot;),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR,m=t(&quot;./constants&quot;),v=t(&quot;./get_update_object&quot;);function y(t){return t._id}function x(t,e,r){var n=l.ensureSingle(t,&quot;rect&quot;,&quot;selector-rect&quot;,(function(t){t.attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)}));n.attr({rx:m.rx,ry:m.ry}),n.call(o.stroke,e.bordercolor).call(o.fill,function(t,e){return e._isActive||e._isHovered?t.activecolor:t.bgcolor}(e,r)).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;)}function b(t,e,r,n){l.ensureSingle(t,&quot;text&quot;,&quot;selector-text&quot;,(function(t){t.attr(&quot;text-anchor&quot;,&quot;middle&quot;)})).call(s.font,e.font).text(function(t,e){if(t.label)return e?l.templateString(t.label,e):t.label;return&quot;all&quot;===t.step?&quot;all&quot;:t.count+t.step.charAt(0)}(r,n._fullLayout._meta)).call((function(t){u.convertToTspans(t,n)}))}e.exports=function(t){var e=t._fullLayout._infolayer.selectAll(&quot;.rangeselector&quot;).data(function(t){for(var e=f.list(t,&quot;x&quot;,!0),r=[],n=0;n&lt;e.length;n++){var i=e[n];i.rangeselector&amp;&amp;i.rangeselector.visible&amp;&amp;r.push(i)}return r}(t),y);e.enter().append(&quot;g&quot;).classed(&quot;rangeselector&quot;,!0),e.exit().remove(),e.style({cursor:&quot;pointer&quot;,&quot;pointer-events&quot;:&quot;all&quot;}),e.each((function(e){var r=n.select(this),o=e,f=o.rangeselector,h=r.selectAll(&quot;g.button&quot;).data(l.filterVisible(f.buttons));h.enter().append(&quot;g&quot;).classed(&quot;button&quot;,!0),h.exit().remove(),h.each((function(e){var r=n.select(this),a=v(o,e);e._isActive=function(t,e,r){if(&quot;all&quot;===e.step)return!0===t.autorange;var n=Object.keys(r);return t.range[0]===r[n[0]]&amp;&amp;t.range[1]===r[n[1]]}(o,e,a),r.call(x,f,e),r.call(b,f,e,t),r.on(&quot;click&quot;,(function(){t._dragged||i.call(&quot;_guiRelayout&quot;,t,a)})),r.on(&quot;mouseover&quot;,(function(){e._isHovered=!0,r.call(x,f,e)})),r.on(&quot;mouseout&quot;,(function(){e._isHovered=!1,r.call(x,f,e)}))})),function(t,e,r,i,o){var f=0,h=0,v=r.borderwidth;e.each((function(){var t=n.select(this).select(&quot;.selector-text&quot;),e=r.font.size*p,i=Math.max(e*u.lineCount(t),16)+3;h=Math.max(h,i)})),e.each((function(){var t=n.select(this),e=t.select(&quot;.selector-rect&quot;),i=t.select(&quot;.selector-text&quot;),a=i.node()&amp;&amp;s.bBox(i.node()).width,o=r.font.size*p,l=u.lineCount(i),d=Math.max(a+10,m.minButtonWidth);t.attr(&quot;transform&quot;,c(v+f,v)),e.attr({x:0,y:0,width:d,height:h}),u.positionText(i,d/2,h/2-(l-1)*o/2+3),f+=d+5}));var y=t._fullLayout._size,x=y.l+y.w*r.x,b=y.t+y.h*(1-r.y),_=&quot;left&quot;;l.isRightAnchor(r)&amp;&amp;(x-=f,_=&quot;right&quot;);l.isCenterAnchor(r)&amp;&amp;(x-=f/2,_=&quot;center&quot;);var w=&quot;top&quot;;l.isBottomAnchor(r)&amp;&amp;(b-=h,w=&quot;bottom&quot;);l.isMiddleAnchor(r)&amp;&amp;(b-=h/2,w=&quot;middle&quot;);f=Math.ceil(f),h=Math.ceil(h),x=Math.round(x),b=Math.round(b),a.autoMargin(t,i+&quot;-range-selector&quot;,{x:r.x,y:r.y,l:f*d[_],r:f*g[_],b:h*g[w],t:h*d[w]}),o.attr(&quot;transform&quot;,c(x,b))}(t,h,f,o._name,r)}))}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../drawing&quot;:665,&quot;./constants&quot;:707,&quot;./get_update_object&quot;:710,d3:169}],710:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t,e){var r=t._name,i={};if(&quot;all&quot;===e.step)i[r+&quot;.autorange&quot;]=!0;else{var a=function(t,e){var r,i=t.range,a=new Date(t.r2l(i[1])),o=e.step,s=e.count;switch(e.stepmode){case&quot;backward&quot;:r=t.l2r(+n.time[o].utc.offset(a,-s));break;case&quot;todate&quot;:var l=n.time[o].utc.offset(a,-s);r=t.l2r(+n.time[o].utc.ceil(l))}var c=i[1];return[r,c]}(t,e);i[r+&quot;.range[0]&quot;]=a[0],i[r+&quot;.range[1]&quot;]=a[1]}return i}},{d3:169}],711:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;rangeselector&quot;,schema:{subplots:{xaxis:{rangeselector:t(&quot;./attributes&quot;)}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;)}},{&quot;./attributes&quot;:706,&quot;./defaults&quot;:708,&quot;./draw&quot;:709}],712:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../color/attributes&quot;);e.exports={bgcolor:{valType:&quot;color&quot;,dflt:n.background,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:n.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;integer&quot;,dflt:0,min:0,editType:&quot;plot&quot;},autorange:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:{&quot;range[0]&quot;:void 0,&quot;range[1]&quot;:void 0}},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;calc&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],editType:&quot;calc&quot;,impliedEdits:{autorange:!1}},thickness:{valType:&quot;number&quot;,dflt:.15,min:0,max:1,editType:&quot;plot&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;}},{&quot;../color/attributes&quot;:642}],713:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;).list,i=t(&quot;../../plots/cartesian/autorange&quot;).getAutoRange,a=t(&quot;./constants&quot;);e.exports=function(t){for(var e=n(t,&quot;x&quot;,!0),r=0;r&lt;e.length;r++){var o=e[r],s=o[a.name];s&amp;&amp;s.visible&amp;&amp;s.autorange&amp;&amp;(s._input.autorange=!0,s._input.range=s.range=i(t,o))}}},{&quot;../../plots/cartesian/autorange&quot;:827,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;./constants&quot;:714}],714:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;rangeslider&quot;,containerClassName:&quot;rangeslider-container&quot;,bgClassName:&quot;rangeslider-bg&quot;,rangePlotClassName:&quot;rangeslider-rangeplot&quot;,maskMinClassName:&quot;rangeslider-mask-min&quot;,maskMaxClassName:&quot;rangeslider-mask-max&quot;,slideBoxClassName:&quot;rangeslider-slidebox&quot;,grabberMinClassName:&quot;rangeslider-grabber-min&quot;,grabAreaMinClassName:&quot;rangeslider-grabarea-min&quot;,handleMinClassName:&quot;rangeslider-handle-min&quot;,grabberMaxClassName:&quot;rangeslider-grabber-max&quot;,grabAreaMaxClassName:&quot;rangeslider-grabarea-max&quot;,handleMaxClassName:&quot;rangeslider-handle-max&quot;,maskMinOppAxisClassName:&quot;rangeslider-mask-min-opp-axis&quot;,maskMaxOppAxisClassName:&quot;rangeslider-mask-max-opp-axis&quot;,maskColor:&quot;rgba(0,0,0,0.4)&quot;,maskOppAxisColor:&quot;rgba(0,0,0,0.2)&quot;,slideBoxFill:&quot;transparent&quot;,slideBoxCursor:&quot;ew-resize&quot;,grabAreaFill:&quot;transparent&quot;,grabAreaCursor:&quot;col-resize&quot;,grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},{}],715:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;./oppaxis_attributes&quot;);e.exports=function(t,e,r){var l=t[r],c=e[r];if(l.rangeslider||e._requestRangeslider[c._id]){n.isPlainObject(l.rangeslider)||(l.rangeslider={});var u,f,h=l.rangeslider,p=i.newContainer(c,&quot;rangeslider&quot;);if(_(&quot;visible&quot;)){_(&quot;bgcolor&quot;,e.plot_bgcolor),_(&quot;bordercolor&quot;),_(&quot;borderwidth&quot;),_(&quot;thickness&quot;),_(&quot;autorange&quot;,!c.isValidRange(h.range)),_(&quot;range&quot;);var d=e._subplots;if(d)for(var g=d.cartesian.filter((function(t){return t.substr(0,t.indexOf(&quot;y&quot;))===a.name2id(r)})).map((function(t){return t.substr(t.indexOf(&quot;y&quot;),t.length)})),m=n.simpleMap(g,a.id2name),v=0;v&lt;m.length;v++){var y=m[v];u=h[y]||{},f=i.newContainer(p,y,&quot;yaxis&quot;);var x,b=e[y];u.range&amp;&amp;b.isValidRange(u.range)&amp;&amp;(x=&quot;fixed&quot;),&quot;match&quot;!==w(&quot;rangemode&quot;,x)&amp;&amp;w(&quot;range&quot;,b.range.slice())}p._input=h}}function _(t,e){return n.coerce(h,p,o,t,e)}function w(t,e){return n.coerce(u,f,s,t,e)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;./attributes&quot;:712,&quot;./oppaxis_attributes&quot;:719}],716:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../drawing&quot;),c=t(&quot;../color&quot;),u=t(&quot;../titles&quot;),f=t(&quot;../../plots/cartesian&quot;),h=t(&quot;../../plots/cartesian/axis_ids&quot;),p=t(&quot;../dragelement&quot;),d=t(&quot;../../lib/setcursor&quot;),g=t(&quot;./constants&quot;);function m(t,e,r,n){var i=o.ensureSingle(t,&quot;rect&quot;,g.bgClassName,(function(t){t.attr({x:0,y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})),a=n.borderwidth%2==0?n.borderwidth:n.borderwidth-1,c=-n._offsetShift,u=l.crispRound(e,n.borderwidth);i.attr({width:n._width+a,height:n._height+a,transform:s(c,c),fill:n.bgcolor,stroke:n.bordercolor,&quot;stroke-width&quot;:u})}function v(t,e,r,n){var i=e._fullLayout;o.ensureSingleById(i._topdefs,&quot;clipPath&quot;,n._clipId,(function(t){t.append(&quot;rect&quot;).attr({x:0,y:0})})).select(&quot;rect&quot;).attr({width:n._width,height:n._height})}function y(t,e,r,i){var s,c=e.calcdata,u=t.selectAll(&quot;g.&quot;+g.rangePlotClassName).data(r._subplotsWith,o.identity);u.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return g.rangePlotClassName+&quot; &quot;+t})).call(l.setClipUrl,i._clipId,e),u.order(),u.exit().remove(),u.each((function(t,o){var l=n.select(this),u=0===o,p=h.getFromId(e,t,&quot;y&quot;),d=p._name,g=i[d],m={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:i.range.slice(),calendar:r.calendar},width:i._width,height:i._height,margin:{t:0,b:0,l:0,r:0}},_context:e._context};r.rangebreaks&amp;&amp;(m.layout.xaxis.rangebreaks=r.rangebreaks),m.layout[d]={type:p.type,domain:[0,1],range:&quot;match&quot;!==g.rangemode?g.range.slice():p.range.slice(),calendar:p.calendar},p.rangebreaks&amp;&amp;(m.layout[d].rangebreaks=p.rangebreaks),a.supplyDefaults(m);var v=m._fullLayout.xaxis,y=m._fullLayout[d];v.clearCalc(),v.setScale(),y.clearCalc(),y.setScale();var x={id:t,plotgroup:l,xaxis:v,yaxis:y,isRangePlot:!0};u?s=x:(x.mainplot=&quot;xy&quot;,x.mainplotinfo=s),f.rangePlot(e,x,function(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i=t[n],a=i[0].trace;a.xaxis+a.yaxis===e&amp;&amp;r.push(i)}return r}(c,t))}))}function x(t,e,r,n,i){(o.ensureSingle(t,&quot;rect&quot;,g.maskMinClassName,(function(t){t.attr({x:0,y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;height&quot;,n._height).call(c.fill,g.maskColor),o.ensureSingle(t,&quot;rect&quot;,g.maskMaxClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;height&quot;,n._height).call(c.fill,g.maskColor),&quot;match&quot;!==i.rangemode)&amp;&amp;(o.ensureSingle(t,&quot;rect&quot;,g.maskMinOppAxisClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;width&quot;,n._width).call(c.fill,g.maskOppAxisColor),o.ensureSingle(t,&quot;rect&quot;,g.maskMaxOppAxisClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;width&quot;,n._width).style(&quot;border-top&quot;,g.maskOppBorder).call(c.fill,g.maskOppAxisColor))}function b(t,e,r,n){e._context.staticPlot||o.ensureSingle(t,&quot;rect&quot;,g.slideBoxClassName,(function(t){t.attr({y:0,cursor:g.slideBoxCursor,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr({height:n._height,fill:g.slideBoxFill})}function _(t,e,r,n){var i=o.ensureSingle(t,&quot;g&quot;,g.grabberMinClassName),a=o.ensureSingle(t,&quot;g&quot;,g.grabberMaxClassName),s={x:0,width:g.handleWidth,rx:g.handleRadius,fill:c.background,stroke:c.defaultLine,&quot;stroke-width&quot;:g.handleStrokeWidth,&quot;shape-rendering&quot;:&quot;crispEdges&quot;},l={y:Math.round(n._height/4),height:Math.round(n._height/2)};o.ensureSingle(i,&quot;rect&quot;,g.handleMinClassName,(function(t){t.attr(s)})).attr(l),o.ensureSingle(a,&quot;rect&quot;,g.handleMaxClassName,(function(t){t.attr(s)})).attr(l);var u={width:g.grabAreaWidth,x:0,y:0,fill:g.grabAreaFill,cursor:e._context.staticPlot?void 0:g.grabAreaCursor};o.ensureSingle(i,&quot;rect&quot;,g.grabAreaMinClassName,(function(t){t.attr(u)})).attr(&quot;height&quot;,n._height),o.ensureSingle(a,&quot;rect&quot;,g.grabAreaMaxClassName,(function(t){t.attr(u)})).attr(&quot;height&quot;,n._height)}e.exports=function(t){for(var e=t._fullLayout,r=e._rangeSliderData,a=0;a&lt;r.length;a++){var l=r[a][g.name];l._clipId=l._id+&quot;-&quot;+e._uid}var c=e._infolayer.selectAll(&quot;g.&quot;+g.containerClassName).data(r,(function(t){return t._name}));c.exit().each((function(t){var r=t[g.name];e._topdefs.select(&quot;#&quot;+r._clipId).remove()})).remove(),0!==r.length&amp;&amp;(c.enter().append(&quot;g&quot;).classed(g.containerClassName,!0).attr(&quot;pointer-events&quot;,&quot;all&quot;),c.each((function(r){var a=n.select(this),l=r[g.name],c=e[h.id2name(r.anchor)],f=l[h.id2name(r.anchor)];if(l.range){var w,T=o.simpleMap(l.range,r.r2l),k=o.simpleMap(r.range,r.r2l);w=k[0]&lt;k[1]?[Math.min(T[0],k[0]),Math.max(T[1],k[1])]:[Math.max(T[0],k[0]),Math.min(T[1],k[1])],l.range=l._input.range=o.simpleMap(w,r.l2r)}r.cleanRange(&quot;rangeslider.range&quot;);var M=e._size,A=r.domain;l._width=M.w*(A[1]-A[0]);var S=Math.round(M.l+M.w*A[0]),E=Math.round(M.t+M.h*(1-r._counterDomainMin)+(&quot;bottom&quot;===r.side?r._depth:0)+l._offsetShift+g.extraPad);a.attr(&quot;transform&quot;,s(S,E)),l._rl=o.simpleMap(l.range,r.r2l);var C=l._rl[0],L=l._rl[1],I=L-C;if(l.p2d=function(t){return t/l._width*I+C},l.d2p=function(t){return(t-C)/I*l._width},r.rangebreaks){var P=r.locateBreaks(C,L);if(P.length){var z,O,D=0;for(z=0;z&lt;P.length;z++)D+=(O=P[z]).max-O.min;var R=l._width/(L-C-D),F=[-R*C];for(z=0;z&lt;P.length;z++)O=P[z],F.push(F[F.length-1]-R*(O.max-O.min));for(l.d2p=function(t){for(var e=F[0],r=0;r&lt;P.length;r++){var n=P[r];if(t&gt;=n.max)e=F[r+1];else if(t&lt;n.min)break}return e+R*t},z=0;z&lt;P.length;z++)(O=P[z]).pmin=l.d2p(O.min),O.pmax=l.d2p(O.max);l.p2d=function(t){for(var e=F[0],r=0;r&lt;P.length;r++){var n=P[r];if(t&gt;=n.pmax)e=F[r+1];else if(t&lt;n.pmin)break}return(t-e)/R}}}if(&quot;match&quot;!==f.rangemode){var B=c.r2l(f.range[0]),N=c.r2l(f.range[1])-B;l.d2pOppAxis=function(t){return(t-B)/N*l._height}}a.call(m,t,r,l).call(v,t,r,l).call(y,t,r,l).call(x,t,r,l,f).call(b,t,r,l).call(_,t,r,l),function(t,e,r,a){if(e._context.staticPlot)return;var s=t.select(&quot;rect.&quot;+g.slideBoxClassName).node(),l=t.select(&quot;rect.&quot;+g.grabAreaMinClassName).node(),c=t.select(&quot;rect.&quot;+g.grabAreaMaxClassName).node();function u(){var u=n.event,f=u.target,h=u.clientX||u.touches[0].clientX,g=h-t.node().getBoundingClientRect().left,m=a.d2p(r._rl[0]),v=a.d2p(r._rl[1]),y=p.coverSlip();function x(t){var u,p,x,b=+(t.clientX||t.touches[0].clientX)-h;switch(f){case s:x=&quot;ew-resize&quot;,u=m+b,p=v+b;break;case l:x=&quot;col-resize&quot;,u=m+b,p=v;break;case c:x=&quot;col-resize&quot;,u=m,p=v+b;break;default:x=&quot;ew-resize&quot;,u=g,p=g+b}if(p&lt;u){var _=p;p=u,u=_}a._pixelMin=u,a._pixelMax=p,d(n.select(y),x),function(t,e,r,n){function a(t){return r.l2r(o.constrain(t,n._rl[0],n._rl[1]))}var s=a(n.p2d(n._pixelMin)),l=a(n.p2d(n._pixelMax));window.requestAnimationFrame((function(){i.call(&quot;_guiRelayout&quot;,e,r._name+&quot;.range&quot;,[s,l])}))}(0,e,r,a)}function b(){y.removeEventListener(&quot;mousemove&quot;,x),y.removeEventListener(&quot;mouseup&quot;,b),this.removeEventListener(&quot;touchmove&quot;,x),this.removeEventListener(&quot;touchend&quot;,b),o.removeElement(y)}this.addEventListener(&quot;touchmove&quot;,x),this.addEventListener(&quot;touchend&quot;,b),y.addEventListener(&quot;mousemove&quot;,x),y.addEventListener(&quot;mouseup&quot;,b)}t.on(&quot;mousedown&quot;,u),t.on(&quot;touchstart&quot;,u)}(a,t,r,l),function(t,e,r,n,i,a){var l=g.handleWidth/2;function c(t){return o.constrain(t,0,n._width)}function u(t){return o.constrain(t,0,n._height)}function f(t){return o.constrain(t,-l,n._width+l)}var h=c(n.d2p(r._rl[0])),p=c(n.d2p(r._rl[1]));if(t.select(&quot;rect.&quot;+g.slideBoxClassName).attr(&quot;x&quot;,h).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.maskMinClassName).attr(&quot;width&quot;,h),t.select(&quot;rect.&quot;+g.maskMaxClassName).attr(&quot;x&quot;,p).attr(&quot;width&quot;,n._width-p),&quot;match&quot;!==a.rangemode){var d=n._height-u(n.d2pOppAxis(i._rl[1])),m=n._height-u(n.d2pOppAxis(i._rl[0]));t.select(&quot;rect.&quot;+g.maskMinOppAxisClassName).attr(&quot;x&quot;,h).attr(&quot;height&quot;,d).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.maskMaxOppAxisClassName).attr(&quot;x&quot;,h).attr(&quot;y&quot;,m).attr(&quot;height&quot;,n._height-m).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.slideBoxClassName).attr(&quot;y&quot;,d).attr(&quot;height&quot;,m-d)}var v=Math.round(f(h-l))-.5,y=Math.round(f(p-l))+.5;t.select(&quot;g.&quot;+g.grabberMinClassName).attr(&quot;transform&quot;,s(v,.5)),t.select(&quot;g.&quot;+g.grabberMaxClassName).attr(&quot;transform&quot;,s(y,.5))}(a,0,r,l,c,f),&quot;bottom&quot;===r.side&amp;&amp;u.draw(t,r._id+&quot;title&quot;,{propContainer:r,propName:r._name+&quot;.title&quot;,placeholder:e._dfltTitle.x,attributes:{x:r._offset+r._length/2,y:E+l._height+l._offsetShift+10+1.5*r.title.font.size,&quot;text-anchor&quot;:&quot;middle&quot;}})})))}},{&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../plots/cartesian&quot;:841,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../titles&quot;:738,&quot;./constants&quot;:714,d3:169}],717:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;),i=t(&quot;../../lib/svg_text_utils&quot;),a=t(&quot;./constants&quot;),o=t(&quot;../../constants/alignment&quot;).LINE_SPACING,s=a.name;function l(t){var e=t&amp;&amp;t[s];return e&amp;&amp;e.visible}r.isVisible=l,r.makeData=function(t){var e=n.list({_fullLayout:t},&quot;x&quot;,!0),r=t.margin,i=[];if(!t._has(&quot;gl2d&quot;))for(var a=0;a&lt;e.length;a++){var o=e[a];if(l(o)){i.push(o);var c=o[s];c._id=s+o._id,c._height=(t.height-r.b-r.t)*c.thickness,c._offsetShift=Math.floor(c.borderwidth/2)}}t._rangeSliderData=i},r.autoMarginOpts=function(t,e){var r=t._fullLayout,n=e[s],l=e._id.charAt(0),c=0,u=0;&quot;bottom&quot;===e.side&amp;&amp;(c=e._depth,e.title.text!==r._dfltTitle[l]&amp;&amp;(u=1.5*e.title.font.size+10+n._offsetShift,u+=(e.title.text.match(i.BR_TAG_ALL)||[]).length*e.title.font.size*o));return{x:0,y:e._counterDomainMin,l:0,r:0,t:0,b:n._height+c+Math.max(r.margin.b,u),pad:a.extraPad+2*n._offsetShift}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;./constants&quot;:714}],718:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./oppaxis_attributes&quot;),o=t(&quot;./helpers&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;rangeslider&quot;,schema:{subplots:{xaxis:{rangeslider:n.extendFlat({},i,{yaxis:a})}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:t(&quot;./draw&quot;),isVisible:o.isVisible,makeData:o.makeData,autoMarginOpts:o.autoMarginOpts}},{&quot;../../lib&quot;:778,&quot;./attributes&quot;:712,&quot;./calc_autorange&quot;:713,&quot;./defaults&quot;:715,&quot;./draw&quot;:716,&quot;./helpers&quot;:717,&quot;./oppaxis_attributes&quot;:719}],719:[function(t,e,r){&quot;use strict&quot;;e.exports={_isSubplotObj:!0,rangemode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;fixed&quot;,&quot;match&quot;],dflt:&quot;match&quot;,editType:&quot;calc&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;},{valType:&quot;any&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},editType:&quot;calc&quot;}},{}],720:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/attributes&quot;),i=t(&quot;../../traces/scatter/attributes&quot;).line,a=t(&quot;../drawing/attributes&quot;).dash,o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=s(&quot;shape&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;circle&quot;,&quot;rect&quot;,&quot;path&quot;,&quot;line&quot;],editType:&quot;calc+arraydraw&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;arraydraw&quot;},xref:o({},n.xref,{}),xsizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;pixel&quot;],dflt:&quot;scaled&quot;,editType:&quot;calc+arraydraw&quot;},xanchor:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},x0:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},x1:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},yref:o({},n.yref,{}),ysizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;pixel&quot;],dflt:&quot;scaled&quot;,editType:&quot;calc+arraydraw&quot;},yanchor:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},y0:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},y1:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},path:{valType:&quot;string&quot;,editType:&quot;calc+arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},line:{color:o({},i.color,{editType:&quot;arraydraw&quot;}),width:o({},i.width,{editType:&quot;calc+arraydraw&quot;}),dash:o({},a,{editType:&quot;arraydraw&quot;}),editType:&quot;calc+arraydraw&quot;},fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},fillrule:{valType:&quot;enumerated&quot;,values:[&quot;evenodd&quot;,&quot;nonzero&quot;],dflt:&quot;evenodd&quot;,editType:&quot;arraydraw&quot;},editable:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc+arraydraw&quot;},editType:&quot;arraydraw&quot;})},{&quot;../../constants/axis_placeable_objects&quot;:746,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../../traces/scatter/attributes&quot;:1187,&quot;../annotations/attributes&quot;:626,&quot;../drawing/attributes&quot;:664}],721:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;./constants&quot;),o=t(&quot;./helpers&quot;);function s(t){return c(t.line.width,t.xsizemode,t.x0,t.x1,t.path,!1)}function l(t){return c(t.line.width,t.ysizemode,t.y0,t.y1,t.path,!0)}function c(t,e,r,i,s,l){var c=t/2,u=l;if(&quot;pixel&quot;===e){var f=s?o.extractPathCoords(s,l?a.paramIsY:a.paramIsX):[r,i],h=n.aggNums(Math.max,null,f),p=n.aggNums(Math.min,null,f),d=p&lt;0?Math.abs(p)+c:c,g=h&gt;0?h+c:c;return{ppad:c,ppadplus:u?d:g,ppadminus:u?g:d}}return{ppad:c}}function u(t,e,r,n,i){var s=&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?t.r2c:t.d2c;if(void 0!==e)return[s(e),s(r)];if(n){var l,c,u,f,h=1/0,p=-1/0,d=n.match(a.segmentRE);for(&quot;date&quot;===t.type&amp;&amp;(s=o.decodeDate(s)),l=0;l&lt;d.length;l++)void 0!==(c=i[d[l].charAt(0)].drawn)&amp;&amp;(!(u=d[l].substr(1).match(a.paramRE))||u.length&lt;c||((f=s(u[c]))&lt;h&amp;&amp;(h=f),f&gt;p&amp;&amp;(p=f)));return p&gt;=h?[h,p]:void 0}}e.exports=function(t){var e=t._fullLayout,r=n.filterVisible(e.shapes);if(r.length&amp;&amp;t._fullData.length)for(var o=0;o&lt;r.length;o++){var c,f,h=r[o];h._extremes={};var p=i.getRefType(h.xref),d=i.getRefType(h.yref);if(&quot;paper&quot;!==h.xref&amp;&amp;&quot;domain&quot;!==p){var g=&quot;pixel&quot;===h.xsizemode?h.xanchor:h.x0,m=&quot;pixel&quot;===h.xsizemode?h.xanchor:h.x1;(f=u(c=i.getFromId(t,h.xref),g,m,h.path,a.paramIsX))&amp;&amp;(h._extremes[c._id]=i.findExtremes(c,f,s(h)))}if(&quot;paper&quot;!==h.yref&amp;&amp;&quot;domain&quot;!==d){var v=&quot;pixel&quot;===h.ysizemode?h.yanchor:h.y0,y=&quot;pixel&quot;===h.ysizemode?h.yanchor:h.y1;(f=u(c=i.getFromId(t,h.yref),v,y,h.path,a.paramIsY))&amp;&amp;(h._extremes[c._id]=i.findExtremes(c,f,l(h)))}}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./constants&quot;:722,&quot;./helpers&quot;:731}],722:[function(t,e,r){&quot;use strict&quot;;e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},{}],723:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;./helpers&quot;);function l(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}if(a(&quot;visible&quot;)){var l=a(&quot;path&quot;),c=a(&quot;type&quot;,l?&quot;path&quot;:&quot;rect&quot;);&quot;path&quot;!==e.type&amp;&amp;delete e.path,a(&quot;editable&quot;),a(&quot;layer&quot;),a(&quot;opacity&quot;),a(&quot;fillcolor&quot;),a(&quot;fillrule&quot;),a(&quot;line.width&quot;)&amp;&amp;(a(&quot;line.color&quot;),a(&quot;line.dash&quot;));for(var u=a(&quot;xsizemode&quot;),f=a(&quot;ysizemode&quot;),h=[&quot;x&quot;,&quot;y&quot;],p=0;p&lt;2;p++){var d,g,m,v=h[p],y=v+&quot;anchor&quot;,x=&quot;x&quot;===v?u:f,b={_fullLayout:r},_=i.coerceRef(t,e,b,v,void 0,&quot;paper&quot;);if(&quot;range&quot;===i.getRefType(_)?((d=i.getFromId(b,_))._shapeIndices.push(e._index),m=s.rangeToShapePosition(d),g=s.shapePositionToRange(d)):g=m=n.identity,&quot;path&quot;!==c){var w=v+&quot;0&quot;,T=v+&quot;1&quot;,k=t[w],M=t[T];t[w]=g(t[w],!0),t[T]=g(t[T],!0),&quot;pixel&quot;===x?(a(w,0),a(T,10)):(i.coercePosition(e,b,a,_,w,.25),i.coercePosition(e,b,a,_,T,.75)),e[w]=m(e[w]),e[T]=m(e[T]),t[w]=k,t[T]=M}if(&quot;pixel&quot;===x){var A=t[y];t[y]=g(t[y],!0),i.coercePosition(e,b,a,_,y,.25),e[y]=m(e[y]),t[y]=A}}&quot;path&quot;===c?a(&quot;path&quot;):n.noneOrAll(t,e,[&quot;x0&quot;,&quot;x1&quot;,&quot;y0&quot;,&quot;y1&quot;])}}e.exports=function(t,e){a(t,e,{name:&quot;shapes&quot;,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:720,&quot;./helpers&quot;:731}],724:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;./draw_newshape/helpers&quot;).readPaths,s=t(&quot;./draw_newshape/display_outlines&quot;),l=t(&quot;../../plots/cartesian/handle_outline&quot;).clearOutlineControllers,c=t(&quot;../color&quot;),u=t(&quot;../drawing&quot;),f=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,h=t(&quot;../dragelement&quot;),p=t(&quot;../../lib/setcursor&quot;),d=t(&quot;./constants&quot;),g=t(&quot;./helpers&quot;);function m(t){var e=t._fullLayout;for(var r in e._shapeUpperLayer.selectAll(&quot;path&quot;).remove(),e._shapeLowerLayer.selectAll(&quot;path&quot;).remove(),e._plots){var n=e._plots[r].shapelayer;n&amp;&amp;n.selectAll(&quot;path&quot;).remove()}for(var i=0;i&lt;e.shapes.length;i++)e.shapes[i].visible&amp;&amp;x(t,i)}function v(t){return!!t._fullLayout._drawing}function y(t){return!t._context.edits.shapePosition}function x(t,e){t._fullLayout._paperdiv.selectAll('.shapelayer [data-index=&quot;'+e+'&quot;]').remove();var r=g.makeOptionsAndPlotinfo(t,e),l=r.options,x=r.plotinfo;if(l._input&amp;&amp;!1!==l.visible)if(&quot;below&quot;!==l.layer)k(t._fullLayout._shapeUpperLayer);else if(&quot;paper&quot;===l.xref||&quot;paper&quot;===l.yref)k(t._fullLayout._shapeLowerLayer);else{if(x._hadPlotinfo)k((x.mainplotinfo||x).shapelayer);else k(t._fullLayout._shapeLowerLayer)}function k(r){var k=_(t,l),M={&quot;data-index&quot;:e,&quot;fill-rule&quot;:l.fillrule,d:k},A=l.opacity,S=l.fillcolor,E=l.line.width?l.line.color:&quot;rgba(0,0,0,0)&quot;,C=l.line.width,L=l.line.dash;C||!0!==l.editable||(C=5,L=&quot;solid&quot;);var I=&quot;Z&quot;!==k[k.length-1],P=y(t)&amp;&amp;l.editable&amp;&amp;t._fullLayout._activeShapeIndex===e;P&amp;&amp;(S=I?&quot;rgba(0,0,0,0)&quot;:t._fullLayout.activeshape.fillcolor,A=t._fullLayout.activeshape.opacity);var z,O=r.append(&quot;path&quot;).attr(M).style(&quot;opacity&quot;,A).call(c.stroke,E).call(c.fill,S).call(u.dashLine,L,C);if(b(O,t,l),(P||t._context.edits.shapePosition)&amp;&amp;(z=f(t.layout,&quot;shapes&quot;,l)),P){O.style({cursor:&quot;move&quot;});var D={element:O.node(),plotinfo:x,gd:t,editHelpers:z,isActiveShape:!0},R=o(k,t);s(R,O,D)}else t._context.edits.shapePosition?function(t,e,r,o,s,l){var c,f,m,y,x,T,k,M,A,S,E,C,L,I,P,z,O=&quot;pixel&quot;===r.xsizemode,D=&quot;pixel&quot;===r.ysizemode,R=&quot;line&quot;===r.type,F=&quot;path&quot;===r.type,B=l.modifyItem,N=a.getFromId(t,r.xref),j=a.getRefType(r.xref),U=a.getFromId(t,r.yref),V=a.getRefType(r.yref),q=g.getDataToPixel(t,N,!1,j),H=g.getDataToPixel(t,U,!0,V),G=g.getPixelToData(t,N,!1,j),Y=g.getPixelToData(t,U,!0,V),W=R?function(){var t=Math.max(r.line.width,10),n=s.append(&quot;g&quot;).attr(&quot;data-index&quot;,o);n.append(&quot;path&quot;).attr(&quot;d&quot;,e.attr(&quot;d&quot;)).style({cursor:&quot;move&quot;,&quot;stroke-width&quot;:t,&quot;stroke-opacity&quot;:&quot;0&quot;});var i={&quot;fill-opacity&quot;:&quot;0&quot;},a=Math.max(t/2,10);return n.append(&quot;circle&quot;).attr({&quot;data-line-point&quot;:&quot;start-point&quot;,cx:O?q(r.xanchor)+r.x0:q(r.x0),cy:D?H(r.yanchor)-r.y0:H(r.y0),r:a}).style(i).classed(&quot;cursor-grab&quot;,!0),n.append(&quot;circle&quot;).attr({&quot;data-line-point&quot;:&quot;end-point&quot;,cx:O?q(r.xanchor)+r.x1:q(r.x1),cy:D?H(r.yanchor)-r.y1:H(r.y1),r:a}).style(i).classed(&quot;cursor-grab&quot;,!0),n}():e,X={element:W.node(),gd:t,prepFn:function(n){if(v(t))return;O&amp;&amp;(x=q(r.xanchor));D&amp;&amp;(T=H(r.yanchor));&quot;path&quot;===r.type?P=r.path:(c=O?r.x0:q(r.x0),f=D?r.y0:H(r.y0),m=O?r.x1:q(r.x1),y=D?r.y1:H(r.y1));c&lt;m?(A=c,L=&quot;x0&quot;,S=m,I=&quot;x1&quot;):(A=m,L=&quot;x1&quot;,S=c,I=&quot;x0&quot;);!D&amp;&amp;f&lt;y||D&amp;&amp;f&gt;y?(k=f,E=&quot;y0&quot;,M=y,C=&quot;y1&quot;):(k=y,E=&quot;y1&quot;,M=f,C=&quot;y0&quot;);Z(n),Q(s,r),function(t,e,r){var n=e.xref,i=e.yref,o=a.getFromId(r,n),s=a.getFromId(r,i),l=&quot;&quot;;&quot;paper&quot;===n||o.autorange||(l+=n);&quot;paper&quot;===i||s.autorange||(l+=i);u.setClipUrl(t,l?&quot;clip&quot;+r._fullLayout._uid+l:null,r)}(e,r,t),X.moveFn=&quot;move&quot;===z?J:K,X.altKey=n.altKey},doneFn:function(){if(v(t))return;p(e),$(s),b(e,t,r),n.call(&quot;_guiRelayout&quot;,t,l.getUpdateObj())},clickFn:function(){if(v(t))return;$(s)}};function Z(r){if(v(t))z=null;else if(R)z=&quot;path&quot;===r.target.tagName?&quot;move&quot;:&quot;start-point&quot;===r.target.attributes[&quot;data-line-point&quot;].value?&quot;resize-over-start-point&quot;:&quot;resize-over-end-point&quot;;else{var n=X.element.getBoundingClientRect(),i=n.right-n.left,a=n.bottom-n.top,o=r.clientX-n.left,s=r.clientY-n.top,l=!F&amp;&amp;i&gt;10&amp;&amp;a&gt;10&amp;&amp;!r.shiftKey?h.getCursor(o/i,1-s/a):&quot;move&quot;;p(e,l),z=l.split(&quot;-&quot;)[0]}}function J(n,i){if(&quot;path&quot;===r.type){var a=function(t){return t},o=a,l=a;O?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(o=function(t){return G(q(t)+n)},N&amp;&amp;&quot;date&quot;===N.type&amp;&amp;(o=g.encodeDate(o))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(l=function(t){return Y(H(t)+i)},U&amp;&amp;&quot;date&quot;===U.type&amp;&amp;(l=g.encodeDate(l))),B(&quot;path&quot;,r.path=w(P,o,l))}else O?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(B(&quot;x0&quot;,r.x0=G(c+n)),B(&quot;x1&quot;,r.x1=G(m+n))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(B(&quot;y0&quot;,r.y0=Y(f+i)),B(&quot;y1&quot;,r.y1=Y(y+i)));e.attr(&quot;d&quot;,_(t,r)),Q(s,r)}function K(n,i){if(F){var a=function(t){return t},o=a,l=a;O?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(o=function(t){return G(q(t)+n)},N&amp;&amp;&quot;date&quot;===N.type&amp;&amp;(o=g.encodeDate(o))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(l=function(t){return Y(H(t)+i)},U&amp;&amp;&quot;date&quot;===U.type&amp;&amp;(l=g.encodeDate(l))),B(&quot;path&quot;,r.path=w(P,o,l))}else if(R){if(&quot;resize-over-start-point&quot;===z){var u=c+n,h=D?f-i:f+i;B(&quot;x0&quot;,r.x0=O?u:G(u)),B(&quot;y0&quot;,r.y0=D?h:Y(h))}else if(&quot;resize-over-end-point&quot;===z){var p=m+n,d=D?y-i:y+i;B(&quot;x1&quot;,r.x1=O?p:G(p)),B(&quot;y1&quot;,r.y1=D?d:Y(d))}}else{var v=function(t){return-1!==z.indexOf(t)},b=v(&quot;n&quot;),j=v(&quot;s&quot;),V=v(&quot;w&quot;),W=v(&quot;e&quot;),X=b?k+i:k,Z=j?M+i:M,J=V?A+n:A,K=W?S+n:S;D&amp;&amp;(b&amp;&amp;(X=k-i),j&amp;&amp;(Z=M-i)),(!D&amp;&amp;Z-X&gt;10||D&amp;&amp;X-Z&gt;10)&amp;&amp;(B(E,r[E]=D?X:Y(X)),B(C,r[C]=D?Z:Y(Z))),K-J&gt;10&amp;&amp;(B(L,r[L]=O?J:G(J)),B(I,r[I]=O?K:G(K)))}e.attr(&quot;d&quot;,_(t,r)),Q(s,r)}function Q(t,e){(O||D)&amp;&amp;function(){var r=&quot;path&quot;!==e.type,n=t.selectAll(&quot;.visual-cue&quot;).data([0]);n.enter().append(&quot;path&quot;).attr({fill:&quot;#fff&quot;,&quot;fill-rule&quot;:&quot;evenodd&quot;,stroke:&quot;#000&quot;,&quot;stroke-width&quot;:1}).classed(&quot;visual-cue&quot;,!0);var a=q(O?e.xanchor:i.midRange(r?[e.x0,e.x1]:g.extractPathCoords(e.path,d.paramIsX))),o=H(D?e.yanchor:i.midRange(r?[e.y0,e.y1]:g.extractPathCoords(e.path,d.paramIsY)));if(a=g.roundPositionForSharpStrokeRendering(a,1),o=g.roundPositionForSharpStrokeRendering(o,1),O&amp;&amp;D){var s=&quot;M&quot;+(a-1-1)+&quot;,&quot;+(o-1-1)+&quot;h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z&quot;;n.attr(&quot;d&quot;,s)}else if(O){var l=&quot;M&quot;+(a-1-1)+&quot;,&quot;+(o-9-1)+&quot;v18 h2 v-18 Z&quot;;n.attr(&quot;d&quot;,l)}else{var c=&quot;M&quot;+(a-9-1)+&quot;,&quot;+(o-1-1)+&quot;h18 v2 h-18 Z&quot;;n.attr(&quot;d&quot;,c)}}()}function $(t){t.selectAll(&quot;.visual-cue&quot;).remove()}h.init(X),W.node().onmousemove=Z}(t,O,l,e,r,z):!0===l.editable&amp;&amp;O.style(&quot;pointer-events&quot;,I||c.opacity(S)*A&lt;=.5?&quot;stroke&quot;:&quot;all&quot;);O.node().addEventListener(&quot;click&quot;,(function(){return function(t,e){if(!y(t))return;var r=+e.node().getAttribute(&quot;data-index&quot;);if(r&gt;=0){if(r===t._fullLayout._activeShapeIndex)return void T(t);t._fullLayout._activeShapeIndex=r,t._fullLayout._deactivateShape=T,m(t)}}(t,O)}))}}function b(t,e,r){var n=(r.xref+r.yref).replace(/paper/g,&quot;&quot;).replace(/[xyz][1-9]* *domain/g,&quot;&quot;);u.setClipUrl(t,n?&quot;clip&quot;+e._fullLayout._uid+n:null,e)}function _(t,e){var r,n,o,s,l,c,u,f,h=e.type,p=a.getRefType(e.xref),m=a.getRefType(e.yref),v=a.getFromId(t,e.xref),y=a.getFromId(t,e.yref),x=t._fullLayout._size;if(v?&quot;domain&quot;===p?n=function(t){return v._offset+v._length*t}:(r=g.shapePositionToRange(v),n=function(t){return v._offset+v.r2p(r(t,!0))}):n=function(t){return x.l+x.w*t},y?&quot;domain&quot;===m?s=function(t){return y._offset+y._length*(1-t)}:(o=g.shapePositionToRange(y),s=function(t){return y._offset+y.r2p(o(t,!0))}):s=function(t){return x.t+x.h*(1-t)},&quot;path&quot;===h)return v&amp;&amp;&quot;date&quot;===v.type&amp;&amp;(n=g.decodeDate(n)),y&amp;&amp;&quot;date&quot;===y.type&amp;&amp;(s=g.decodeDate(s)),function(t,e,r){var n=t.path,a=t.xsizemode,o=t.ysizemode,s=t.xanchor,l=t.yanchor;return n.replace(d.segmentRE,(function(t){var n=0,c=t.charAt(0),u=d.paramIsX[c],f=d.paramIsY[c],h=d.numParams[c],p=t.substr(1).replace(d.paramRE,(function(t){return u[n]?t=&quot;pixel&quot;===a?e(s)+Number(t):e(t):f[n]&amp;&amp;(t=&quot;pixel&quot;===o?r(l)-Number(t):r(t)),++n&gt;h&amp;&amp;(t=&quot;X&quot;),t}));return n&gt;h&amp;&amp;(p=p.replace(/[\s,]*X.*/,&quot;&quot;),i.log(&quot;Ignoring extra params in segment &quot;+t)),c+p}))}(e,n,s);if(&quot;pixel&quot;===e.xsizemode){var b=n(e.xanchor);l=b+e.x0,c=b+e.x1}else l=n(e.x0),c=n(e.x1);if(&quot;pixel&quot;===e.ysizemode){var _=s(e.yanchor);u=_-e.y0,f=_-e.y1}else u=s(e.y0),f=s(e.y1);if(&quot;line&quot;===h)return&quot;M&quot;+l+&quot;,&quot;+u+&quot;L&quot;+c+&quot;,&quot;+f;if(&quot;rect&quot;===h)return&quot;M&quot;+l+&quot;,&quot;+u+&quot;H&quot;+c+&quot;V&quot;+f+&quot;H&quot;+l+&quot;Z&quot;;var w=(l+c)/2,T=(u+f)/2,k=Math.abs(w-l),M=Math.abs(T-u),A=&quot;A&quot;+k+&quot;,&quot;+M,S=w+k+&quot;,&quot;+T;return&quot;M&quot;+S+A+&quot; 0 1,1 &quot;+(w+&quot;,&quot;+(T-M))+A+&quot; 0 0,1 &quot;+S+&quot;Z&quot;}function w(t,e,r){return t.replace(d.segmentRE,(function(t){var n=0,i=t.charAt(0),a=d.paramIsX[i],o=d.paramIsY[i],s=d.numParams[i];return i+t.substr(1).replace(d.paramRE,(function(t){return n&gt;=s||(a[n]?t=e(t):o[n]&amp;&amp;(t=r(t)),n++),t}))}))}function T(t){y(t)&amp;&amp;(t._fullLayout._activeShapeIndex&gt;=0&amp;&amp;(l(t),delete t._fullLayout._activeShapeIndex,m(t)))}e.exports={draw:m,drawOne:x,eraseActiveShape:function(t){if(!y(t))return;l(t);var e=t._fullLayout._activeShapeIndex,r=(t.layout||{}).shapes||[];if(e&lt;r.length){for(var i=[],a=0;a&lt;r.length;a++)a!==e&amp;&amp;i.push(r[a]);delete t._fullLayout._activeShapeIndex,n.call(&quot;_guiRelayout&quot;,t,{shapes:i})}}}},{&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/handle_outline&quot;:838,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;./constants&quot;:722,&quot;./draw_newshape/display_outlines&quot;:728,&quot;./draw_newshape/helpers&quot;:729,&quot;./helpers&quot;:731}],725:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../drawing/attributes&quot;).dash,i=t(&quot;../../../lib/extend&quot;).extendFlat;e.exports={newshape:{line:{color:{valType:&quot;color&quot;,editType:&quot;none&quot;},width:{valType:&quot;number&quot;,min:0,dflt:4,editType:&quot;none&quot;},dash:i({},n,{dflt:&quot;solid&quot;,editType:&quot;none&quot;}),editType:&quot;none&quot;},fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;none&quot;},fillrule:{valType:&quot;enumerated&quot;,values:[&quot;evenodd&quot;,&quot;nonzero&quot;],dflt:&quot;evenodd&quot;,editType:&quot;none&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;none&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;none&quot;},drawdirection:{valType:&quot;enumerated&quot;,values:[&quot;ortho&quot;,&quot;horizontal&quot;,&quot;vertical&quot;,&quot;diagonal&quot;],dflt:&quot;diagonal&quot;,editType:&quot;none&quot;},editType:&quot;none&quot;},activeshape:{fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgb(255,0,255)&quot;,editType:&quot;none&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;none&quot;},editType:&quot;none&quot;}}},{&quot;../../../lib/extend&quot;:768,&quot;../../drawing/attributes&quot;:664}],726:[function(t,e,r){&quot;use strict&quot;;e.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},{}],727:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../color&quot;);e.exports=function(t,e,r){if(r(&quot;newshape.drawdirection&quot;),r(&quot;newshape.layer&quot;),r(&quot;newshape.fillcolor&quot;),r(&quot;newshape.fillrule&quot;),r(&quot;newshape.opacity&quot;),r(&quot;newshape.line.width&quot;)){var i=(t||{}).plot_bgcolor||&quot;#FFF&quot;;r(&quot;newshape.line.color&quot;,n.contrast(i)),r(&quot;newshape.line.dash&quot;)}r(&quot;activeshape.fillcolor&quot;),r(&quot;activeshape.opacity&quot;)}},{&quot;../../color&quot;:643}],728:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../dragelement&quot;),i=t(&quot;../../dragelement/helpers&quot;).drawMode,a=t(&quot;../../../registry&quot;),o=t(&quot;./constants&quot;),s=o.i000,l=o.i090,c=o.i180,u=o.i270,f=t(&quot;../../../plots/cartesian/handle_outline&quot;).clearOutlineControllers,h=t(&quot;./helpers&quot;),p=h.pointsShapeRectangle,d=h.pointsShapeEllipse,g=h.writePaths,m=t(&quot;./newshapes&quot;);e.exports=function t(e,r,o,h){h||(h=0);var v=o.gd;function y(){t(e,r,o,h++),d(e[0])&amp;&amp;x({redrawing:!0})}function x(t){o.isActiveShape=!1;var e=m(r,o);Object.keys(e).length&amp;&amp;a.call((t||{}).redrawing?&quot;relayout&quot;:&quot;_guiRelayout&quot;,v,e)}var b,_,w,T,k,M=o.isActiveShape,A=v._fullLayout._zoomlayer,S=o.dragmode;(i(S)?v._fullLayout._drawing=!0:v._fullLayout._activeShapeIndex&gt;=0&amp;&amp;f(v),r.attr(&quot;d&quot;,g(e)),M&amp;&amp;!h)&amp;&amp;(k=function(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r];t[r]=[];for(var i=0;i&lt;n.length;i++){t[r][i]=[];for(var a=0;a&lt;n[i].length;a++)t[r][i][a]=n[i][a]}}return t}([],e),function(t){b=[];for(var r=0;r&lt;e.length;r++){var i=e[r],a=!p(i)&amp;&amp;d(i);b[r]=[];for(var o=0;o&lt;i.length;o++)if(&quot;Z&quot;!==i[o][0]&amp;&amp;(!a||o===s||o===l||o===c||o===u)){var f=i[o][1],h=i[o][2],g=t.append(&quot;circle&quot;).classed(&quot;cursor-grab&quot;,!0).attr(&quot;data-i&quot;,r).attr(&quot;data-j&quot;,o).attr(&quot;cx&quot;,f).attr(&quot;cy&quot;,h).attr(&quot;r&quot;,4).style({&quot;mix-blend-mode&quot;:&quot;luminosity&quot;,fill:&quot;black&quot;,stroke:&quot;white&quot;,&quot;stroke-width&quot;:1});b[r][o]={element:g.node(),gd:v,prepFn:E,doneFn:L,clickFn:I},n.init(b[r][o])}}}(A.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;outline-controllers&quot;)),function(){if(_=[],!e.length)return;_[0]={element:r[0][0],gd:v,prepFn:z,doneFn:O},n.init(_[0])}());function E(t){w=+t.srcElement.getAttribute(&quot;data-i&quot;),T=+t.srcElement.getAttribute(&quot;data-j&quot;),b[w][T].moveFn=C}function C(t,r){if(e.length){var n=k[w][T][1],i=k[w][T][2],a=e[w],o=a.length;if(p(a)){for(var s=0;s&lt;o;s++)if(s!==T){var l=a[s];l[1]===a[T][1]&amp;&amp;(l[1]=n+t),l[2]===a[T][2]&amp;&amp;(l[2]=i+r)}if(a[T][1]=n+t,a[T][2]=i+r,!p(a))for(var c=0;c&lt;o;c++)for(var u=0;u&lt;a[c].length;u++)a[c][u]=k[w][c][u]}else a[T][1]=n+t,a[T][2]=i+r;y()}}function L(){x()}function I(t,r){if(2===t){w=+r.srcElement.getAttribute(&quot;data-i&quot;),T=+r.srcElement.getAttribute(&quot;data-j&quot;);var n=e[w];p(n)||d(n)||function(){if(e.length&amp;&amp;e[w]&amp;&amp;e[w].length){for(var t=[],r=0;r&lt;e[w].length;r++)r!==T&amp;&amp;t.push(e[w][r]);t.length&gt;1&amp;&amp;(2!==t.length||&quot;Z&quot;!==t[1][0])&amp;&amp;(0===T&amp;&amp;(t[0][0]=&quot;M&quot;),e[w]=t,y(),x())}}()}}function P(t,r){!function(t,r){if(e.length)for(var n=0;n&lt;e.length;n++)for(var i=0;i&lt;e[n].length;i++)for(var a=0;a+2&lt;e[n][i].length;a+=2)e[n][i][a+1]=k[n][i][a+1]+t,e[n][i][a+2]=k[n][i][a+2]+r}(t,r),y()}function z(t){(w=+t.srcElement.getAttribute(&quot;data-i&quot;))||(w=0),_[w].moveFn=P}function O(){x()}}},{&quot;../../../plots/cartesian/handle_outline&quot;:838,&quot;../../../registry&quot;:911,&quot;../../dragelement&quot;:662,&quot;../../dragelement/helpers&quot;:661,&quot;./constants&quot;:726,&quot;./helpers&quot;:729,&quot;./newshapes&quot;:730}],729:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-svg-path&quot;),i=t(&quot;./constants&quot;),a=i.CIRCLE_SIDES,o=i.SQRT2,s=t(&quot;../../../plots/cartesian/helpers&quot;),l=s.p2r,c=s.r2p,u=[0,3,4,5,6,1,2],f=[0,3,4,1,2];function h(t,e){return Math.abs(t-e)&lt;=1e-6}function p(t,e){var r=e[1]-t[1],n=e[2]-t[2];return Math.sqrt(r*r+n*n)}r.writePaths=function(t){var e=t.length;if(!e)return&quot;M0,0Z&quot;;for(var r=&quot;&quot;,n=0;n&lt;e;n++)for(var i=t[n].length,a=0;a&lt;i;a++){var o=t[n][a][0];if(&quot;Z&quot;===o)r+=&quot;Z&quot;;else for(var s=t[n][a].length,l=0;l&lt;s;l++){var c=l;&quot;Q&quot;===o||&quot;S&quot;===o?c=f[l]:&quot;C&quot;===o&amp;&amp;(c=u[l]),r+=t[n][a][c],l&gt;0&amp;&amp;l&lt;s-1&amp;&amp;(r+=&quot;,&quot;)}}return r},r.readPaths=function(t,e,r,i){var o,s,u,f=n(t),h=[],p=-1,d=0,g=0,m=function(){s=d,u=g};m();for(var v=0;v&lt;f.length;v++){var y,x,b,_,w=[],T=f[v][0],k=T;switch(T){case&quot;M&quot;:p++,h[p]=[],d=+f[v][1],g=+f[v][2],w.push([k,d,g]),m();break;case&quot;Q&quot;:case&quot;S&quot;:y=+f[v][1],b=+f[v][2],d=+f[v][3],g=+f[v][4],w.push([k,d,g,y,b]);break;case&quot;C&quot;:y=+f[v][1],b=+f[v][2],x=+f[v][3],_=+f[v][4],d=+f[v][5],g=+f[v][6],w.push([k,d,g,y,b,x,_]);break;case&quot;T&quot;:case&quot;L&quot;:d=+f[v][1],g=+f[v][2],w.push([k,d,g]);break;case&quot;H&quot;:k=&quot;L&quot;,d=+f[v][1],w.push([k,d,g]);break;case&quot;V&quot;:k=&quot;L&quot;,g=+f[v][1],w.push([k,d,g]);break;case&quot;A&quot;:k=&quot;L&quot;;var M=+f[v][1],A=+f[v][2];+f[v][4]||(M=-M,A=-A);var S=d-M,E=g;for(o=1;o&lt;=a/2;o++){var C=2*Math.PI*o/a;w.push([k,S+M*Math.cos(C),E+A*Math.sin(C)])}break;case&quot;Z&quot;:d===s&amp;&amp;g===u||(d=s,g=u,w.push([k,d,g]))}for(var L=(r||{}).domain,I=e._fullLayout._size,P=r&amp;&amp;&quot;pixel&quot;===r.xsizemode,z=r&amp;&amp;&quot;pixel&quot;===r.ysizemode,O=!1===i,D=0;D&lt;w.length;D++){for(o=0;o+2&lt;7;o+=2){var R=w[D][o+1],F=w[D][o+2];void 0!==R&amp;&amp;void 0!==F&amp;&amp;(d=R,g=F,r&amp;&amp;(r.xaxis&amp;&amp;r.xaxis.p2r?(O&amp;&amp;(R-=r.xaxis._offset),R=P?c(r.xaxis,r.xanchor)+R:l(r.xaxis,R)):(O&amp;&amp;(R-=I.l),L?R=L.x[0]+R/I.w:R/=I.w),r.yaxis&amp;&amp;r.yaxis.p2r?(O&amp;&amp;(F-=r.yaxis._offset),F=z?c(r.yaxis,r.yanchor)-F:l(r.yaxis,F)):(O&amp;&amp;(F-=I.t),F=L?L.y[1]-F/I.h:1-F/I.h)),w[D][o+1]=R,w[D][o+2]=F)}h[p].push(w[D].slice())}}return h},r.pointsShapeRectangle=function(t){if(5!==t.length)return!1;for(var e=1;e&lt;3;e++){if(!h(t[0][e]-t[1][e],t[3][e]-t[2][e]))return!1;if(!h(t[0][e]-t[3][e],t[1][e]-t[2][e]))return!1}return!(!h(t[0][1],t[1][1])&amp;&amp;!h(t[0][1],t[3][1]))&amp;&amp;!!(p(t[0],t[1])*p(t[0],t[3]))},r.pointsShapeEllipse=function(t){var e=t.length;if(e!==a+1)return!1;e=a;for(var r=0;r&lt;e;r++){var n=(2*e-r)%e,i=(e/2+n)%e,o=(e/2+r)%e;if(!h(p(t[r],t[o]),p(t[n],t[i])))return!1}return!0},r.handleEllipse=function(t,e,n){if(!t)return[e,n];var i=r.ellipseOver({x0:e[0],y0:e[1],x1:n[0],y1:n[1]}),s=(i.x1+i.x0)/2,l=(i.y1+i.y0)/2,c=(i.x1-i.x0)/2,u=(i.y1-i.y0)/2;c||(c=u/=o),u||(u=c/=o);for(var f=[],h=0;h&lt;a;h++){var p=2*h*Math.PI/a;f.push([s+c*Math.cos(p),l+u*Math.sin(p)])}return f},r.ellipseOver=function(t){var e=t.x0,r=t.y0,n=t.x1,i=t.y1,a=n-e,s=i-r,l=((e-=a)+n)/2,c=((r-=s)+i)/2;return{x0:l-(a*=o),y0:c-(s*=o),x1:l+a,y1:c+s}}},{&quot;../../../plots/cartesian/helpers&quot;:839,&quot;./constants&quot;:726,&quot;parse-svg-path&quot;:505}],730:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../dragelement/helpers&quot;),i=n.drawMode,a=n.openMode,o=t(&quot;./constants&quot;),s=o.i000,l=o.i090,c=o.i180,u=o.i270,f=o.cos45,h=o.sin45,p=t(&quot;../../../plots/cartesian/helpers&quot;),d=p.p2r,g=p.r2p,m=t(&quot;../../../plots/cartesian/handle_outline&quot;).clearSelect,v=t(&quot;./helpers&quot;),y=v.readPaths,x=v.writePaths,b=v.ellipseOver;e.exports=function(t,e){if(t.length){var r=t[0][0];if(r){var n=r.getAttribute(&quot;d&quot;),o=e.gd,p=o._fullLayout.newshape,v=e.plotinfo,_=v.xaxis,w=v.yaxis,T=!!v.domain||!v.xaxis,k=!!v.domain||!v.yaxis,M=e.isActiveShape,A=e.dragmode,S=(o.layout||{}).shapes||[];if(!i(A)&amp;&amp;void 0!==M){var E=o._fullLayout._activeShapeIndex;if(E&lt;S.length)switch(o._fullLayout.shapes[E].type){case&quot;rect&quot;:A=&quot;drawrect&quot;;break;case&quot;circle&quot;:A=&quot;drawcircle&quot;;break;case&quot;line&quot;:A=&quot;drawline&quot;;break;case&quot;path&quot;:var C=S[E].path||&quot;&quot;;A=&quot;Z&quot;===C[C.length-1]?&quot;drawclosedpath&quot;:&quot;drawopenpath&quot;}}var L,I=a(A),P=y(n,o,v,M),z={editable:!0,xref:T?&quot;paper&quot;:_._id,yref:k?&quot;paper&quot;:w._id,layer:p.layer,opacity:p.opacity,line:{color:p.line.color,width:p.line.width,dash:p.line.dash}};if(I||(z.fillcolor=p.fillcolor,z.fillrule=p.fillrule),1===P.length&amp;&amp;(L=P[0]),L&amp;&amp;&quot;drawrect&quot;===A)z.type=&quot;rect&quot;,z.x0=L[0][1],z.y0=L[0][2],z.x1=L[2][1],z.y1=L[2][2];else if(L&amp;&amp;&quot;drawline&quot;===A)z.type=&quot;line&quot;,z.x0=L[0][1],z.y0=L[0][2],z.x1=L[1][1],z.y1=L[1][2];else if(L&amp;&amp;&quot;drawcircle&quot;===A){z.type=&quot;circle&quot;;var O=L[s][1],D=L[l][1],R=L[c][1],F=L[u][1],B=L[s][2],N=L[l][2],j=L[c][2],U=L[u][2],V=v.xaxis&amp;&amp;(&quot;date&quot;===v.xaxis.type||&quot;log&quot;===v.xaxis.type),q=v.yaxis&amp;&amp;(&quot;date&quot;===v.yaxis.type||&quot;log&quot;===v.yaxis.type);V&amp;&amp;(O=g(v.xaxis,O),D=g(v.xaxis,D),R=g(v.xaxis,R),F=g(v.xaxis,F)),q&amp;&amp;(B=g(v.yaxis,B),N=g(v.yaxis,N),j=g(v.yaxis,j),U=g(v.yaxis,U));var H=(D+F)/2,G=(B+j)/2,Y=b({x0:H,y0:G,x1:H+(F-D+R-O)/2*f,y1:G+(U-N+j-B)/2*h});V&amp;&amp;(Y.x0=d(v.xaxis,Y.x0),Y.x1=d(v.xaxis,Y.x1)),q&amp;&amp;(Y.y0=d(v.yaxis,Y.y0),Y.y1=d(v.yaxis,Y.y1)),z.x0=Y.x0,z.y0=Y.y0,z.x1=Y.x1,z.y1=Y.y1}else z.type=&quot;path&quot;,_&amp;&amp;w&amp;&amp;function(t,e,r){var n=&quot;date&quot;===e.type,i=&quot;date&quot;===r.type;if(!n&amp;&amp;!i)return t;for(var a=0;a&lt;t.length;a++)for(var o=0;o&lt;t[a].length;o++)for(var s=0;s+2&lt;t[a][o].length;s+=2)n&amp;&amp;(t[a][o][s+1]=t[a][o][s+1].replace(&quot; &quot;,&quot;_&quot;)),i&amp;&amp;(t[a][o][s+2]=t[a][o][s+2].replace(&quot; &quot;,&quot;_&quot;))}(P,_,w),z.path=x(P),L=null;m(o);for(var W=e.editHelpers,X=(W||{}).modifyItem,Z=[],J=0;J&lt;S.length;J++){var K=o._fullLayout.shapes[J];if(Z[J]=K._input,void 0!==M&amp;&amp;J===o._fullLayout._activeShapeIndex){var Q=z;switch(K.type){case&quot;line&quot;:case&quot;rect&quot;:case&quot;circle&quot;:X(&quot;x0&quot;,Q.x0),X(&quot;x1&quot;,Q.x1),X(&quot;y0&quot;,Q.y0),X(&quot;y1&quot;,Q.y1);break;case&quot;path&quot;:X(&quot;path&quot;,Q.path)}}}return void 0===M?(Z.push(z),Z):W?W.getUpdateObj():{}}}}},{&quot;../../../plots/cartesian/handle_outline&quot;:838,&quot;../../../plots/cartesian/helpers&quot;:839,&quot;../../dragelement/helpers&quot;:661,&quot;./constants&quot;:726,&quot;./helpers&quot;:729}],731:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib&quot;);r.rangeToShapePosition=function(t){return&quot;log&quot;===t.type?t.r2d:function(t){return t}},r.shapePositionToRange=function(t){return&quot;log&quot;===t.type?t.d2r:function(t){return t}},r.decodeDate=function(t){return function(e){return e.replace&amp;&amp;(e=e.replace(&quot;_&quot;,&quot; &quot;)),t(e)}},r.encodeDate=function(t){return function(e){return t(e).replace(&quot; &quot;,&quot;_&quot;)}},r.extractPathCoords=function(t,e){var r=[];return t.match(n.segmentRE).forEach((function(t){var a=e[t.charAt(0)].drawn;if(void 0!==a){var o=t.substr(1).match(n.paramRE);!o||o.length&lt;a||r.push(i.cleanNumber(o[a]))}})),r},r.getDataToPixel=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if(&quot;domain&quot;===i)a=function(t){return e._length*(n?1-t:t)+e._offset};else{var s=r.shapePositionToRange(e);a=function(t){return e._offset+e.r2p(s(t,!0))},&quot;date&quot;===e.type&amp;&amp;(a=r.decodeDate(a))}else a=n?function(t){return o.t+o.h*(1-t)}:function(t){return o.l+o.w*t};return a},r.getPixelToData=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if(&quot;domain&quot;===i)a=function(t){var r=(t-e._offset)/e._length;return n?1-r:r};else{var s=r.rangeToShapePosition(e);a=function(t){return s(e.p2r(t-e._offset))}}else a=n?function(t){return 1-(t-o.t)/o.h}:function(t){return(t-o.l)/o.w};return a},r.roundPositionForSharpStrokeRendering=function(t,e){var r=1===Math.round(e%2),n=Math.round(t);return r?n+.5:n},r.makeOptionsAndPlotinfo=function(t,e){var r=t._fullLayout.shapes[e]||{},n=t._fullLayout._plots[r.xref+r.yref];return!!n?n._hadPlotinfo=!0:(n={},r.xref&amp;&amp;&quot;paper&quot;!==r.xref&amp;&amp;(n.xaxis=t._fullLayout[r.xref+&quot;axis&quot;]),r.yref&amp;&amp;&quot;paper&quot;!==r.yref&amp;&amp;(n.yaxis=t._fullLayout[r.yref+&quot;axis&quot;])),n.xsizemode=r.xsizemode,n.ysizemode=r.ysizemode,n.xanchor=r.xanchor,n.yanchor=r.yanchor,{options:r,plotinfo:n}}},{&quot;../../lib&quot;:778,&quot;./constants&quot;:722}],732:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;shapes&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),supplyDrawNewShapeDefaults:t(&quot;./draw_newshape/defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;shapes&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:n.draw,drawOne:n.drawOne}},{&quot;../../plots/cartesian/include_components&quot;:840,&quot;./attributes&quot;:720,&quot;./calc_autorange&quot;:721,&quot;./defaults&quot;:723,&quot;./draw&quot;:724,&quot;./draw_newshape/defaults&quot;:727}],733:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../plots/pad_attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendDeepAll,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../plots/animation_attributes&quot;),l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=t(&quot;./constants&quot;),u=l(&quot;step&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},method:{valType:&quot;enumerated&quot;,values:[&quot;restyle&quot;,&quot;relayout&quot;,&quot;animate&quot;,&quot;update&quot;,&quot;skip&quot;],dflt:&quot;restyle&quot;},args:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},label:{valType:&quot;string&quot;},value:{valType:&quot;string&quot;},execute:{valType:&quot;boolean&quot;,dflt:!0}});e.exports=o(l(&quot;slider&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},active:{valType:&quot;number&quot;,min:0,dflt:0},steps:u,lenmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;fraction&quot;},len:{valType:&quot;number&quot;,min:0,dflt:1},x:{valType:&quot;number&quot;,min:-2,max:3,dflt:0},pad:a(i({editType:&quot;arraydraw&quot;}),{},{t:{dflt:20}}),xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,dflt:0},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;},transition:{duration:{valType:&quot;number&quot;,min:0,dflt:150},easing:{valType:&quot;enumerated&quot;,values:s.transition.easing.values,dflt:&quot;cubic-in-out&quot;}},currentvalue:{visible:{valType:&quot;boolean&quot;,dflt:!0},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},offset:{valType:&quot;number&quot;,dflt:10},prefix:{valType:&quot;string&quot;},suffix:{valType:&quot;string&quot;},font:n({})},font:n({}),activebgcolor:{valType:&quot;color&quot;,dflt:c.gripBgActiveColor},bgcolor:{valType:&quot;color&quot;,dflt:c.railBgColor},bordercolor:{valType:&quot;color&quot;,dflt:c.railBorderColor},borderwidth:{valType:&quot;number&quot;,min:0,dflt:c.railBorderWidth},ticklen:{valType:&quot;number&quot;,min:0,dflt:c.tickLength},tickcolor:{valType:&quot;color&quot;,dflt:c.tickColor},tickwidth:{valType:&quot;number&quot;,min:0,dflt:1},minorticklen:{valType:&quot;number&quot;,min:0,dflt:c.minorTickLength}}),&quot;arraydraw&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/animation_attributes&quot;:822,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/pad_attributes&quot;:890,&quot;./constants&quot;:734}],734:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;sliders&quot;,containerClassName:&quot;slider-container&quot;,groupClassName:&quot;slider-group&quot;,inputAreaClass:&quot;slider-input-area&quot;,railRectClass:&quot;slider-rail-rect&quot;,railTouchRectClass:&quot;slider-rail-touch-rect&quot;,gripRectClass:&quot;slider-grip-rect&quot;,tickRectClass:&quot;slider-tick-rect&quot;,inputProxyClass:&quot;slider-input-proxy&quot;,labelsClass:&quot;slider-labels&quot;,labelGroupClass:&quot;slider-label-group&quot;,labelClass:&quot;slider-label&quot;,currentValueClass:&quot;slider-current-value&quot;,railHeight:5,menuIndexAttrName:&quot;slider-active-index&quot;,autoMarginIdRoot:&quot;slider-&quot;,minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:&quot;#bec8d9&quot;,railBgColor:&quot;#f8fafc&quot;,railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:&quot;#bec8d9&quot;,gripBgColor:&quot;#f6f8fa&quot;,gripBgActiveColor:&quot;#dbdde0&quot;,labelPadding:8,labelOffset:0,tickWidth:1,tickColor:&quot;#333&quot;,tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:&quot;#333&quot;,minorTickLength:4,currentValuePadding:8,currentValueInset:0}},{}],735:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;).name,s=a.steps;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}for(var s=i(t,e,{name:&quot;steps&quot;,handleItemDefaults:c}),l=0,u=0;u&lt;s.length;u++)s[u].visible&amp;&amp;l++;if(l&lt;2?e.visible=!1:o(&quot;visible&quot;)){e._stepCount=l;var f=e._visibleSteps=n.filterVisible(s);(s[o(&quot;active&quot;)]||{}).visible||(e.active=f[0]._index),o(&quot;x&quot;),o(&quot;y&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),o(&quot;xanchor&quot;),o(&quot;yanchor&quot;),o(&quot;len&quot;),o(&quot;lenmode&quot;),o(&quot;pad.t&quot;),o(&quot;pad.r&quot;),o(&quot;pad.b&quot;),o(&quot;pad.l&quot;),n.coerceFont(o,&quot;font&quot;,r.font),o(&quot;currentvalue.visible&quot;)&amp;&amp;(o(&quot;currentvalue.xanchor&quot;),o(&quot;currentvalue.prefix&quot;),o(&quot;currentvalue.suffix&quot;),o(&quot;currentvalue.offset&quot;),n.coerceFont(o,&quot;currentvalue.font&quot;,e.font)),o(&quot;transition.duration&quot;),o(&quot;transition.easing&quot;),o(&quot;bgcolor&quot;),o(&quot;activebgcolor&quot;),o(&quot;bordercolor&quot;),o(&quot;borderwidth&quot;),o(&quot;ticklen&quot;),o(&quot;tickwidth&quot;),o(&quot;tickcolor&quot;),o(&quot;minorticklen&quot;)}}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}if(&quot;skip&quot;===t.method||Array.isArray(t.args)?r(&quot;visible&quot;):e.visible=!1){r(&quot;method&quot;),r(&quot;args&quot;);var i=r(&quot;label&quot;,&quot;step-&quot;+e._index);r(&quot;value&quot;,i),r(&quot;execute&quot;)}}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;./attributes&quot;:733,&quot;./constants&quot;:734}],736:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../color&quot;),o=t(&quot;../drawing&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,f=t(&quot;./constants&quot;),h=t(&quot;../../constants/alignment&quot;),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR;function m(t){return f.autoMarginIdRoot+t._index}function v(t){return t._index}function y(t,e){var r=o.tester.selectAll(&quot;g.&quot;+f.labelGroupClass).data(e._visibleSteps);r.enter().append(&quot;g&quot;).classed(f.labelGroupClass,!0);var a=0,l=0;r.each((function(t){var r=_(n.select(this),{step:t},e).node();if(r){var i=o.bBox(r);l=Math.max(l,i.height),a=Math.max(a,i.width)}})),r.remove();var u=e._dims={};u.inputAreaWidth=Math.max(f.railWidth,f.gripHeight);var h=t._fullLayout._size;u.lx=h.l+h.w*e.x,u.ly=h.t+h.h*(1-e.y),&quot;fraction&quot;===e.lenmode?u.outerLength=Math.round(h.w*e.len):u.outerLength=e.len,u.inputAreaStart=0,u.inputAreaLength=Math.round(u.outerLength-e.pad.l-e.pad.r);var p=(u.inputAreaLength-2*f.stepInset)/(e._stepCount-1),v=a+f.labelPadding;if(u.labelStride=Math.max(1,Math.ceil(v/p)),u.labelHeight=l,u.currentValueMaxWidth=0,u.currentValueHeight=0,u.currentValueTotalHeight=0,u.currentValueMaxLines=1,e.currentvalue.visible){var y=o.tester.append(&quot;g&quot;);r.each((function(t){var r=x(y,e,t.label),n=r.node()&amp;&amp;o.bBox(r.node())||{width:0,height:0},i=c.lineCount(r);u.currentValueMaxWidth=Math.max(u.currentValueMaxWidth,Math.ceil(n.width)),u.currentValueHeight=Math.max(u.currentValueHeight,Math.ceil(n.height)),u.currentValueMaxLines=Math.max(u.currentValueMaxLines,i)})),u.currentValueTotalHeight=u.currentValueHeight+e.currentvalue.offset,y.remove()}u.height=u.currentValueTotalHeight+f.tickOffset+e.ticklen+f.labelOffset+u.labelHeight+e.pad.t+e.pad.b;var b=&quot;left&quot;;s.isRightAnchor(e)&amp;&amp;(u.lx-=u.outerLength,b=&quot;right&quot;),s.isCenterAnchor(e)&amp;&amp;(u.lx-=u.outerLength/2,b=&quot;center&quot;);var w=&quot;top&quot;;s.isBottomAnchor(e)&amp;&amp;(u.ly-=u.height,w=&quot;bottom&quot;),s.isMiddleAnchor(e)&amp;&amp;(u.ly-=u.height/2,w=&quot;middle&quot;),u.outerLength=Math.ceil(u.outerLength),u.height=Math.ceil(u.height),u.lx=Math.round(u.lx),u.ly=Math.round(u.ly);var T={y:e.y,b:u.height*g[w],t:u.height*d[w]};&quot;fraction&quot;===e.lenmode?(T.l=0,T.xl=e.x-e.len*d[b],T.r=0,T.xr=e.x+e.len*g[b]):(T.x=e.x,T.l=u.outerLength*d[b],T.r=u.outerLength*g[b]),i.autoMargin(t,m(e),T)}function x(t,e,r){if(e.currentvalue.visible){var n,i,a=e._dims;switch(e.currentvalue.xanchor){case&quot;right&quot;:n=a.inputAreaLength-f.currentValueInset-a.currentValueMaxWidth,i=&quot;left&quot;;break;case&quot;center&quot;:n=.5*a.inputAreaLength,i=&quot;middle&quot;;break;default:n=f.currentValueInset,i=&quot;left&quot;}var l=s.ensureSingle(t,&quot;text&quot;,f.labelClass,(function(t){t.attr({&quot;text-anchor&quot;:i,&quot;data-notex&quot;:1})})),u=e.currentvalue.prefix?e.currentvalue.prefix:&quot;&quot;;if(&quot;string&quot;==typeof r)u+=r;else{var h=e.steps[e.active].label,d=e._gd._fullLayout._meta;d&amp;&amp;(h=s.templateString(h,d)),u+=h}e.currentvalue.suffix&amp;&amp;(u+=e.currentvalue.suffix),l.call(o.font,e.currentvalue.font).text(u).call(c.convertToTspans,e._gd);var g=c.lineCount(l),m=(a.currentValueMaxLines+1-g)*e.currentvalue.font.size*p;return c.positionText(l,n,m),l}}function b(t,e,r){s.ensureSingle(t,&quot;rect&quot;,f.gripRectClass,(function(n){n.call(M,e,t,r).style(&quot;pointer-events&quot;,&quot;all&quot;)})).attr({width:f.gripWidth,height:f.gripHeight,rx:f.gripRadius,ry:f.gripRadius}).call(a.stroke,r.bordercolor).call(a.fill,r.bgcolor).style(&quot;stroke-width&quot;,r.borderwidth+&quot;px&quot;)}function _(t,e,r){var n=s.ensureSingle(t,&quot;text&quot;,f.labelClass,(function(t){t.attr({&quot;text-anchor&quot;:&quot;middle&quot;,&quot;data-notex&quot;:1})})),i=e.step.label,a=r._gd._fullLayout._meta;return a&amp;&amp;(i=s.templateString(i,a)),n.call(o.font,r.font).text(i).call(c.convertToTspans,r._gd),n}function w(t,e){var r=s.ensureSingle(t,&quot;g&quot;,f.labelsClass),i=e._dims,a=r.selectAll(&quot;g.&quot;+f.labelGroupClass).data(i.labelSteps);a.enter().append(&quot;g&quot;).classed(f.labelGroupClass,!0),a.exit().remove(),a.each((function(t){var r=n.select(this);r.call(_,t,e),o.setTranslate(r,E(e,t.fraction),f.tickOffset+e.ticklen+e.font.size*p+f.labelOffset+i.currentValueTotalHeight)}))}function T(t,e,r,n,i){var a=Math.round(n*(r._stepCount-1)),o=r._visibleSteps[a]._index;o!==r.active&amp;&amp;k(t,e,r,o,!0,i)}function k(t,e,r,n,a,o){var s=r.active;r.active=n,u(t.layout,f.name,r).applyUpdate(&quot;active&quot;,n);var l=r.steps[r.active];e.call(S,r,o),e.call(x,r),t.emit(&quot;plotly_sliderchange&quot;,{slider:r,step:r.steps[r.active],interaction:a,previousActive:s}),l&amp;&amp;l.method&amp;&amp;a&amp;&amp;(e._nextMethod?(e._nextMethod.step=l,e._nextMethod.doCallback=a,e._nextMethod.doTransition=o):(e._nextMethod={step:l,doCallback:a,doTransition:o},e._nextMethodRaf=window.requestAnimationFrame((function(){var r=e._nextMethod.step;r.method&amp;&amp;(r.execute&amp;&amp;i.executeAPICommand(t,r.method,r.args),e._nextMethod=null,e._nextMethodRaf=null)}))))}function M(t,e,r){var i=r.node(),o=n.select(e);function s(){return r.data()[0]}t.on(&quot;mousedown&quot;,(function(){var t=s();e.emit(&quot;plotly_sliderstart&quot;,{slider:t});var l=r.select(&quot;.&quot;+f.gripRectClass);n.event.stopPropagation(),n.event.preventDefault(),l.call(a.fill,t.activebgcolor);var c=C(t,n.mouse(i)[0]);T(e,r,t,c,!0),t._dragging=!0,o.on(&quot;mousemove&quot;,(function(){var t=s(),a=C(t,n.mouse(i)[0]);T(e,r,t,a,!1)})),o.on(&quot;mouseup&quot;,(function(){var t=s();t._dragging=!1,l.call(a.fill,t.bgcolor),o.on(&quot;mouseup&quot;,null),o.on(&quot;mousemove&quot;,null),e.emit(&quot;plotly_sliderend&quot;,{slider:t,step:t.steps[t.active]})}))}))}function A(t,e){var r=t.selectAll(&quot;rect.&quot;+f.tickRectClass).data(e._visibleSteps),i=e._dims;r.enter().append(&quot;rect&quot;).classed(f.tickRectClass,!0),r.exit().remove(),r.attr({width:e.tickwidth+&quot;px&quot;,&quot;shape-rendering&quot;:&quot;crispEdges&quot;}),r.each((function(t,r){var s=r%i.labelStride==0,l=n.select(this);l.attr({height:s?e.ticklen:e.minorticklen}).call(a.fill,e.tickcolor),o.setTranslate(l,E(e,r/(e._stepCount-1))-.5*e.tickwidth,(s?f.tickOffset:f.minorTickOffset)+i.currentValueTotalHeight)}))}function S(t,e,r){for(var n=t.select(&quot;rect.&quot;+f.gripRectClass),i=0,a=0;a&lt;e._stepCount;a++)if(e._visibleSteps[a]._index===e.active){i=a;break}var o=E(e,i/(e._stepCount-1));if(!e._invokingCommand){var s=n;r&amp;&amp;e.transition.duration&gt;0&amp;&amp;(s=s.transition().duration(e.transition.duration).ease(e.transition.easing)),s.attr(&quot;transform&quot;,l(o-.5*f.gripWidth,e._dims.currentValueTotalHeight))}}function E(t,e){var r=t._dims;return r.inputAreaStart+f.stepInset+(r.inputAreaLength-2*f.stepInset)*Math.min(1,Math.max(0,e))}function C(t,e){var r=t._dims;return Math.min(1,Math.max(0,(e-f.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*f.stepInset-2*r.inputAreaStart)))}function L(t,e,r){var n=r._dims,i=s.ensureSingle(t,&quot;rect&quot;,f.railTouchRectClass,(function(n){n.call(M,e,t,r).style(&quot;pointer-events&quot;,&quot;all&quot;)}));i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,f.tickOffset+r.ticklen+n.labelHeight)}).call(a.fill,r.bgcolor).attr(&quot;opacity&quot;,0),o.setTranslate(i,0,n.currentValueTotalHeight)}function I(t,e){var r=e._dims,n=r.inputAreaLength-2*f.railInset,i=s.ensureSingle(t,&quot;rect&quot;,f.railRectClass);i.attr({width:n,height:f.railWidth,rx:f.railRadius,ry:f.railRadius,&quot;shape-rendering&quot;:&quot;crispEdges&quot;}).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;),o.setTranslate(i,f.railInset,.5*(r.inputAreaWidth-f.railWidth)+r.currentValueTotalHeight)}e.exports=function(t){var e=t._fullLayout,r=function(t,e){for(var r=t[f.name],n=[],i=0;i&lt;r.length;i++){var a=r[i];a.visible&amp;&amp;(a._gd=e,n.push(a))}return n}(e,t),a=e._infolayer.selectAll(&quot;g.&quot;+f.containerClassName).data(r.length&gt;0?[0]:[]);function s(e){e._commandObserver&amp;&amp;(e._commandObserver.remove(),delete e._commandObserver),i.autoMargin(t,m(e))}if(a.enter().append(&quot;g&quot;).classed(f.containerClassName,!0).style(&quot;cursor&quot;,&quot;ew-resize&quot;),a.exit().each((function(){n.select(this).selectAll(&quot;g.&quot;+f.groupClassName).each(s)})).remove(),0!==r.length){var l=a.selectAll(&quot;g.&quot;+f.groupClassName).data(r,v);l.enter().append(&quot;g&quot;).classed(f.groupClassName,!0),l.exit().each(s).remove();for(var c=0;c&lt;r.length;c++){var u=r[c];y(t,u)}l.each((function(e){var r=n.select(this);!function(t){var e=t._dims;e.labelSteps=[];for(var r=t._stepCount,n=0;n&lt;r;n+=e.labelStride)e.labelSteps.push({fraction:n/(r-1),step:t._visibleSteps[n]})}(e),i.manageCommandObserver(t,e,e._visibleSteps,(function(e){var n=r.data()[0];n.active!==e.index&amp;&amp;(n._dragging||k(t,r,n,e.index,!1,!0))})),function(t,e,r){(r.steps[r.active]||{}).visible||(r.active=r._visibleSteps[0]._index);e.call(x,r).call(I,r).call(w,r).call(A,r).call(L,t,r).call(b,t,r);var n=r._dims;o.setTranslate(e,n.lx+r.pad.l,n.ly+r.pad.t),e.call(S,r,!1),e.call(x,r)}(t,n.select(this),e)}))}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/plots&quot;:891,&quot;../color&quot;:643,&quot;../drawing&quot;:665,&quot;./constants&quot;:734,d3:169}],737:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);e.exports={moduleType:&quot;component&quot;,name:n.name,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;)}},{&quot;./attributes&quot;:733,&quot;./constants&quot;:734,&quot;./defaults&quot;:735,&quot;./draw&quot;:736}],738:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../drawing&quot;),u=t(&quot;../color&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../constants/interactions&quot;),p=t(&quot;../../constants/alignment&quot;).OPPOSITE_SIDE,d=/ [XY][0-9]* /;e.exports={draw:function(t,e,r){var g,m=r.propContainer,v=r.propName,y=r.placeholder,x=r.traceIndex,b=r.avoid||{},_=r.attributes,w=r.transform,T=r.containerGroup,k=t._fullLayout,M=1,A=!1,S=m.title,E=(S&amp;&amp;S.text?S.text:&quot;&quot;).trim(),C=S&amp;&amp;S.font?S.font:{},L=C.family,I=C.size,P=C.color;&quot;title.text&quot;===v?g=&quot;titleText&quot;:-1!==v.indexOf(&quot;axis&quot;)?g=&quot;axisTitleText&quot;:v.indexOf(!0)&amp;&amp;(g=&quot;colorbarTitleText&quot;);var z=t._context.edits[g];&quot;&quot;===E?M=0:E.replace(d,&quot; % &quot;)===y.replace(d,&quot; % &quot;)&amp;&amp;(M=.2,A=!0,z||(E=&quot;&quot;)),r._meta?E=s.templateString(E,r._meta):k._meta&amp;&amp;(E=s.templateString(E,k._meta));var O=E||z;T||(T=s.ensureSingle(k._infolayer,&quot;g&quot;,&quot;g-&quot;+e));var D=T.selectAll(&quot;text&quot;).data(O?[0]:[]);if(D.enter().append(&quot;text&quot;),D.text(E).attr(&quot;class&quot;,e),D.exit().remove(),!O)return T;function R(t){s.syncOrAsync([F,B],t)}function F(e){var r;return w?(r=&quot;&quot;,w.rotate&amp;&amp;(r+=&quot;rotate(&quot;+[w.rotate,_.x,_.y]+&quot;)&quot;),w.offset&amp;&amp;(r+=l(0,w.offset))):r=null,e.attr(&quot;transform&quot;,r),e.style({&quot;font-family&quot;:L,&quot;font-size&quot;:n.round(I,2)+&quot;px&quot;,fill:u.rgb(P),opacity:M*u.opacity(P),&quot;font-weight&quot;:a.fontWeight}).attr(_).call(f.convertToTspans,t),a.previousPromises(t)}function B(t){var e=n.select(t.node().parentNode);if(b&amp;&amp;b.selection&amp;&amp;b.side&amp;&amp;E){e.attr(&quot;transform&quot;,null);var r=p[b.side],a=&quot;left&quot;===b.side||&quot;top&quot;===b.side?-1:1,o=i(b.pad)?b.pad:2,u=c.bBox(e.node()),f={left:0,top:0,right:k.width,bottom:k.height},h=b.maxShift||a*(f[b.side]-u[b.side]),d=0;if(h&lt;0)d=h;else{var g=b.offsetLeft||0,m=b.offsetTop||0;u.left-=g,u.right-=g,u.top-=m,u.bottom-=m,b.selection.each((function(){var t=c.bBox(this);s.bBoxIntersect(u,t,o)&amp;&amp;(d=Math.max(d,a*(t[b.side]-u[r])+o))})),d=Math.min(h,d)}if(d&gt;0||h&lt;0){var v={left:[-d,0],right:[d,0],top:[0,-d],bottom:[0,d]}[b.side];e.attr(&quot;transform&quot;,l(v[0],v[1]))}}}return D.call(R),z&amp;&amp;(E?D.on(&quot;.opacity&quot;,null):(M=0,A=!0,D.text(y).on(&quot;mouseover.opacity&quot;,(function(){n.select(this).transition().duration(h.SHOW_PLACEHOLDER).style(&quot;opacity&quot;,1)})).on(&quot;mouseout.opacity&quot;,(function(){n.select(this).transition().duration(h.HIDE_PLACEHOLDER).style(&quot;opacity&quot;,0)}))),D.call(f.makeEditable,{gd:t}).on(&quot;edit&quot;,(function(e){void 0!==x?o.call(&quot;_guiRestyle&quot;,t,v,e,x):o.call(&quot;_guiRelayout&quot;,t,v,e)})).on(&quot;cancel&quot;,(function(){this.text(this.attr(&quot;data-unformatted&quot;)).call(R)})).on(&quot;input&quot;,(function(t){this.text(t||&quot; &quot;).call(f.positionText,_.x,_.y)}))),D.classed(&quot;js-placeholder&quot;,A),T}}},{&quot;../../constants/alignment&quot;:745,&quot;../../constants/interactions&quot;:752,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../drawing&quot;:665,d3:169,&quot;fast-isnumeric&quot;:241}],739:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../plots/pad_attributes&quot;),l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=l(&quot;button&quot;,{visible:{valType:&quot;boolean&quot;},method:{valType:&quot;enumerated&quot;,values:[&quot;restyle&quot;,&quot;relayout&quot;,&quot;animate&quot;,&quot;update&quot;,&quot;skip&quot;],dflt:&quot;restyle&quot;},args:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},args2:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},label:{valType:&quot;string&quot;,dflt:&quot;&quot;},execute:{valType:&quot;boolean&quot;,dflt:!0}});e.exports=o(l(&quot;updatemenu&quot;,{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:&quot;boolean&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;dropdown&quot;,&quot;buttons&quot;],dflt:&quot;dropdown&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;right&quot;,&quot;up&quot;,&quot;down&quot;],dflt:&quot;down&quot;},active:{valType:&quot;integer&quot;,min:-1,dflt:0},showactive:{valType:&quot;boolean&quot;,dflt:!0},buttons:c,x:{valType:&quot;number&quot;,min:-2,max:3,dflt:-.05},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;right&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,dflt:1},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;},pad:a(s({editType:&quot;arraydraw&quot;}),{}),font:n({}),bgcolor:{valType:&quot;color&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.borderLine},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;arraydraw&quot;}}),&quot;arraydraw&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/pad_attributes&quot;:890,&quot;../color/attributes&quot;:642}],740:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;updatemenus&quot;,containerClassName:&quot;updatemenu-container&quot;,headerGroupClassName:&quot;updatemenu-header-group&quot;,headerClassName:&quot;updatemenu-header&quot;,headerArrowClassName:&quot;updatemenu-header-arrow&quot;,dropdownButtonGroupClassName:&quot;updatemenu-dropdown-button-group&quot;,dropdownButtonClassName:&quot;updatemenu-dropdown-button&quot;,buttonClassName:&quot;updatemenu-button&quot;,itemRectClassName:&quot;updatemenu-item-rect&quot;,itemTextClassName:&quot;updatemenu-item-text&quot;,menuIndexAttrName:&quot;updatemenu-active-index&quot;,autoMarginIdRoot:&quot;updatemenu-&quot;,blankHeaderOpts:{label:&quot;  &quot;},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:&quot;#F4FAFF&quot;,hoverColor:&quot;#F4FAFF&quot;,arrowSymbol:{left:&quot;\u25c4&quot;,right:&quot;\u25ba&quot;,up:&quot;\u25b2&quot;,down:&quot;\u25bc&quot;}}},{}],741:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;).name,s=a.buttons;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}o(&quot;visible&quot;,i(t,e,{name:&quot;buttons&quot;,handleItemDefaults:c}).length&gt;0)&amp;&amp;(o(&quot;active&quot;),o(&quot;direction&quot;),o(&quot;type&quot;),o(&quot;showactive&quot;),o(&quot;x&quot;),o(&quot;y&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),o(&quot;xanchor&quot;),o(&quot;yanchor&quot;),o(&quot;pad.t&quot;),o(&quot;pad.r&quot;),o(&quot;pad.b&quot;),o(&quot;pad.l&quot;),n.coerceFont(o,&quot;font&quot;,r.font),o(&quot;bgcolor&quot;,r.paper_bgcolor),o(&quot;bordercolor&quot;),o(&quot;borderwidth&quot;))}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}r(&quot;visible&quot;,&quot;skip&quot;===t.method||Array.isArray(t.args))&amp;&amp;(r(&quot;method&quot;),r(&quot;args&quot;),r(&quot;args2&quot;),r(&quot;label&quot;),r(&quot;execute&quot;))}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;./attributes&quot;:739,&quot;./constants&quot;:740}],742:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../color&quot;),o=t(&quot;../drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,u=t(&quot;../../constants/alignment&quot;).LINE_SPACING,f=t(&quot;./constants&quot;),h=t(&quot;./scrollbox&quot;);function p(t){return t._index}function d(t,e){return+t.attr(f.menuIndexAttrName)===e._index}function g(t,e,r,n,i,a,o,s){e.active=o,c(t.layout,f.name,e).applyUpdate(&quot;active&quot;,o),&quot;buttons&quot;===e.type?v(t,n,null,null,e):&quot;dropdown&quot;===e.type&amp;&amp;(i.attr(f.menuIndexAttrName,&quot;-1&quot;),m(t,n,i,a,e),s||v(t,n,i,a,e))}function m(t,e,r,n,i){var a=s.ensureSingle(e,&quot;g&quot;,f.headerClassName,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)})),l=i._dims,c=i.active,u=i.buttons[c]||f.blankHeaderOpts,h={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},p={width:l.headerWidth,height:l.headerHeight};a.call(y,i,u,t).call(A,i,h,p),s.ensureSingle(e,&quot;text&quot;,f.headerArrowClassName,(function(t){t.attr(&quot;text-anchor&quot;,&quot;end&quot;).call(o.font,i.font).text(f.arrowSymbol[i.direction])})).attr({x:l.headerWidth-f.arrowOffsetX+i.pad.l,y:l.headerHeight/2+f.textOffsetY+i.pad.t}),a.on(&quot;click&quot;,(function(){r.call(S,String(d(r,i)?-1:i._index)),v(t,e,r,n,i)})),a.on(&quot;mouseover&quot;,(function(){a.call(w)})),a.on(&quot;mouseout&quot;,(function(){a.call(T,i)})),o.setTranslate(e,l.lx,l.ly)}function v(t,e,r,a,o){r||(r=e).attr(&quot;pointer-events&quot;,&quot;all&quot;);var l=function(t){return-1==+t.attr(f.menuIndexAttrName)}(r)&amp;&amp;&quot;buttons&quot;!==o.type?[]:o.buttons,c=&quot;dropdown&quot;===o.type?f.dropdownButtonClassName:f.buttonClassName,u=r.selectAll(&quot;g.&quot;+c).data(s.filterVisible(l)),h=u.enter().append(&quot;g&quot;).classed(c,!0),p=u.exit();&quot;dropdown&quot;===o.type?(h.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;),p.transition().attr(&quot;opacity&quot;,&quot;0&quot;).remove()):p.remove();var d=0,m=0,v=o._dims,x=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(o.direction);&quot;dropdown&quot;===o.type&amp;&amp;(x?m=v.headerHeight+f.gapButtonHeader:d=v.headerWidth+f.gapButtonHeader),&quot;dropdown&quot;===o.type&amp;&amp;&quot;up&quot;===o.direction&amp;&amp;(m=-f.gapButtonHeader+f.gapButton-v.openHeight),&quot;dropdown&quot;===o.type&amp;&amp;&quot;left&quot;===o.direction&amp;&amp;(d=-f.gapButtonHeader+f.gapButton-v.openWidth);var b={x:v.lx+d+o.pad.l,y:v.ly+m+o.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},k={l:b.x+o.borderwidth,t:b.y+o.borderwidth};u.each((function(s,l){var c=n.select(this);c.call(y,o,s,t).call(A,o,b),c.on(&quot;click&quot;,(function(){n.event.defaultPrevented||(s.execute&amp;&amp;(s.args2&amp;&amp;o.active===l?(g(t,o,0,e,r,a,-1),i.executeAPICommand(t,s.method,s.args2)):(g(t,o,0,e,r,a,l),i.executeAPICommand(t,s.method,s.args))),t.emit(&quot;plotly_buttonclicked&quot;,{menu:o,button:s,active:o.active}))})),c.on(&quot;mouseover&quot;,(function(){c.call(w)})),c.on(&quot;mouseout&quot;,(function(){c.call(T,o),u.call(_,o)}))})),u.call(_,o),x?(k.w=Math.max(v.openWidth,v.headerWidth),k.h=b.y-k.t):(k.w=b.x-k.l,k.h=Math.max(v.openHeight,v.headerHeight)),k.direction=o.direction,a&amp;&amp;(u.size()?function(t,e,r,n,i,a){var o,s,l,c=i.direction,u=&quot;up&quot;===c||&quot;down&quot;===c,h=i._dims,p=i.active;if(u)for(s=0,l=0;l&lt;p;l++)s+=h.heights[l]+f.gapButton;else for(o=0,l=0;l&lt;p;l++)o+=h.widths[l]+f.gapButton;n.enable(a,o,s),n.hbar&amp;&amp;n.hbar.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;);n.vbar&amp;&amp;n.vbar.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;)}(0,0,0,a,o,k):function(t){var e=!!t.hbar,r=!!t.vbar;e&amp;&amp;t.hbar.transition().attr(&quot;opacity&quot;,&quot;0&quot;).each(&quot;end&quot;,(function(){e=!1,r||t.disable()}));r&amp;&amp;t.vbar.transition().attr(&quot;opacity&quot;,&quot;0&quot;).each(&quot;end&quot;,(function(){r=!1,e||t.disable()}))}(a))}function y(t,e,r,n){t.call(x,e).call(b,e,r,n)}function x(t,e){s.ensureSingle(t,&quot;rect&quot;,f.itemRectClassName,(function(t){t.attr({rx:f.rx,ry:f.ry,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;)}function b(t,e,r,n){var i=s.ensureSingle(t,&quot;text&quot;,f.itemTextClassName,(function(t){t.attr({&quot;text-anchor&quot;:&quot;start&quot;,&quot;data-notex&quot;:1})})),a=r.label,c=n._fullLayout._meta;c&amp;&amp;(a=s.templateString(a,c)),i.call(o.font,e.font).text(a).call(l.convertToTspans,n)}function _(t,e){var r=e.active;t.each((function(t,i){var o=n.select(this);i===r&amp;&amp;e.showactive&amp;&amp;o.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,f.activeColor)}))}function w(t){t.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,f.hoverColor)}function T(t,e){t.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,e.bgcolor)}function k(t,e){var r=e._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},a=o.tester.selectAll(&quot;g.&quot;+f.dropdownButtonClassName).data(s.filterVisible(e.buttons));a.enter().append(&quot;g&quot;).classed(f.dropdownButtonClassName,!0);var c=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(e.direction);a.each((function(i,a){var s=n.select(this);s.call(y,e,i,t);var h=s.select(&quot;.&quot;+f.itemTextClassName),p=h.node()&amp;&amp;o.bBox(h.node()).width,d=Math.max(p+f.textPadX,f.minWidth),g=e.font.size*u,m=l.lineCount(h),v=Math.max(g*m,f.minHeight)+f.textOffsetY;v=Math.ceil(v),d=Math.ceil(d),r.widths[a]=d,r.heights[a]=v,r.height1=Math.max(r.height1,v),r.width1=Math.max(r.width1,d),c?(r.totalWidth=Math.max(r.totalWidth,d),r.openWidth=r.totalWidth,r.totalHeight+=v+f.gapButton,r.openHeight+=v+f.gapButton):(r.totalWidth+=d+f.gapButton,r.openWidth+=d+f.gapButton,r.totalHeight=Math.max(r.totalHeight,v),r.openHeight=r.totalHeight)})),c?r.totalHeight-=f.gapButton:r.totalWidth-=f.gapButton,r.headerWidth=r.width1+f.arrowPadX,r.headerHeight=r.height1,&quot;dropdown&quot;===e.type&amp;&amp;(c?(r.width1+=f.arrowPadX,r.totalHeight=r.height1):r.totalWidth=r.width1,r.totalWidth+=f.arrowPadX),a.remove();var h=r.totalWidth+e.pad.l+e.pad.r,p=r.totalHeight+e.pad.t+e.pad.b,d=t._fullLayout._size;r.lx=d.l+d.w*e.x,r.ly=d.t+d.h*(1-e.y);var g=&quot;left&quot;;s.isRightAnchor(e)&amp;&amp;(r.lx-=h,g=&quot;right&quot;),s.isCenterAnchor(e)&amp;&amp;(r.lx-=h/2,g=&quot;center&quot;);var m=&quot;top&quot;;s.isBottomAnchor(e)&amp;&amp;(r.ly-=p,m=&quot;bottom&quot;),s.isMiddleAnchor(e)&amp;&amp;(r.ly-=p/2,m=&quot;middle&quot;),r.totalWidth=Math.ceil(r.totalWidth),r.totalHeight=Math.ceil(r.totalHeight),r.lx=Math.round(r.lx),r.ly=Math.round(r.ly),i.autoMargin(t,M(e),{x:e.x,y:e.y,l:h*({right:1,center:.5}[g]||0),r:h*({left:1,center:.5}[g]||0),b:p*({top:1,middle:.5}[m]||0),t:p*({bottom:1,middle:.5}[m]||0)})}function M(t){return f.autoMarginIdRoot+t._index}function A(t,e,r,n){n=n||{};var i=t.select(&quot;.&quot;+f.itemRectClassName),a=t.select(&quot;.&quot;+f.itemTextClassName),s=e.borderwidth,c=r.index,h=e._dims;o.setTranslate(t,s+r.x,s+r.y);var p=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(e.direction),d=n.height||(p?h.heights[c]:h.height1);i.attr({x:0,y:0,width:n.width||(p?h.width1:h.widths[c]),height:d});var g=e.font.size*u,m=(l.lineCount(a)-1)*g/2;l.positionText(a,f.textOffsetX,d/2-m+f.textOffsetY),p?r.y+=h.heights[c]+r.yPad:r.x+=h.widths[c]+r.xPad,r.index++}function S(t,e){t.attr(f.menuIndexAttrName,e||&quot;-1&quot;).selectAll(&quot;g.&quot;+f.dropdownButtonClassName).remove()}e.exports=function(t){var e=t._fullLayout,r=s.filterVisible(e[f.name]);function a(e){i.autoMargin(t,M(e))}var o=e._menulayer.selectAll(&quot;g.&quot;+f.containerClassName).data(r.length&gt;0?[0]:[]);if(o.enter().append(&quot;g&quot;).classed(f.containerClassName,!0).style(&quot;cursor&quot;,&quot;pointer&quot;),o.exit().each((function(){n.select(this).selectAll(&quot;g.&quot;+f.headerGroupClassName).each(a)})).remove(),0!==r.length){var l=o.selectAll(&quot;g.&quot;+f.headerGroupClassName).data(r,p);l.enter().append(&quot;g&quot;).classed(f.headerGroupClassName,!0);for(var c=s.ensureSingle(o,&quot;g&quot;,f.dropdownButtonGroupClassName,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)})),u=0;u&lt;r.length;u++){var y=r[u];k(t,y)}var x=&quot;updatemenus&quot;+e._uid,b=new h(t,c,x);l.enter().size()&amp;&amp;(c.node().parentNode.appendChild(c.node()),c.call(S)),l.exit().each((function(t){c.call(S),a(t)})).remove(),l.each((function(e){var r=n.select(this),a=&quot;dropdown&quot;===e.type?c:null;i.manageCommandObserver(t,e,e.buttons,(function(n){g(t,e,e.buttons[n.index],r,a,b,n.index,!0)})),&quot;dropdown&quot;===e.type?(m(t,r,c,b,e),d(c,e)&amp;&amp;v(t,r,c,b,e)):v(t,r,null,null,e)}))}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/plots&quot;:891,&quot;../color&quot;:643,&quot;../drawing&quot;:665,&quot;./constants&quot;:740,&quot;./scrollbox&quot;:744,d3:169}],743:[function(t,e,r){arguments[4][737][0].apply(r,arguments)},{&quot;./attributes&quot;:739,&quot;./constants&quot;:740,&quot;./defaults&quot;:741,&quot;./draw&quot;:742,dup:737}],744:[function(t,e,r){&quot;use strict&quot;;e.exports=s;var n=t(&quot;d3&quot;),i=t(&quot;../color&quot;),a=t(&quot;../drawing&quot;),o=t(&quot;../../lib&quot;);function s(t,e,r){this.gd=t,this.container=e,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll(&quot;rect.scrollbox-bg&quot;).data([0]),this.bg.exit().on(&quot;.drag&quot;,null).on(&quot;wheel&quot;,null).remove(),this.bg.enter().append(&quot;rect&quot;).classed(&quot;scrollbox-bg&quot;,!0).style(&quot;pointer-events&quot;,&quot;all&quot;).attr({opacity:0,x:0,y:0,width:0,height:0})}s.barWidth=2,s.barLength=20,s.barRadius=2,s.barPad=1,s.barColor=&quot;#808BA4&quot;,s.prototype.enable=function(t,e,r){var o=this.gd._fullLayout,l=o.width,c=o.height;this.position=t;var u,f,h,p,d=this.position.l,g=this.position.w,m=this.position.t,v=this.position.h,y=this.position.direction,x=&quot;down&quot;===y,b=&quot;left&quot;===y,_=&quot;up&quot;===y,w=g,T=v;x||b||&quot;right&quot;===y||_||(this.position.direction=&quot;down&quot;,x=!0),x||_?(f=(u=d)+w,x?(h=m,T=(p=Math.min(h+T,c))-h):T=(p=m+T)-(h=Math.max(p-T,0))):(p=(h=m)+T,b?w=(f=d+w)-(u=Math.max(f-w,0)):(u=d,w=(f=Math.min(u+w,l))-u)),this._box={l:u,t:h,w:w,h:T};var k=g&gt;w,M=s.barLength+2*s.barPad,A=s.barWidth+2*s.barPad,S=d,E=m+v;E+A&gt;c&amp;&amp;(E=c-A);var C=this.container.selectAll(&quot;rect.scrollbar-horizontal&quot;).data(k?[0]:[]);C.exit().on(&quot;.drag&quot;,null).remove(),C.enter().append(&quot;rect&quot;).classed(&quot;scrollbar-horizontal&quot;,!0).call(i.fill,s.barColor),k?(this.hbar=C.attr({rx:s.barRadius,ry:s.barRadius,x:S,y:E,width:M,height:A}),this._hbarXMin=S+M/2,this._hbarTranslateMax=w-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var L=v&gt;T,I=s.barWidth+2*s.barPad,P=s.barLength+2*s.barPad,z=d+g,O=m;z+I&gt;l&amp;&amp;(z=l-I);var D=this.container.selectAll(&quot;rect.scrollbar-vertical&quot;).data(L?[0]:[]);D.exit().on(&quot;.drag&quot;,null).remove(),D.enter().append(&quot;rect&quot;).classed(&quot;scrollbar-vertical&quot;,!0).call(i.fill,s.barColor),L?(this.vbar=D.attr({rx:s.barRadius,ry:s.barRadius,x:z,y:O,width:I,height:P}),this._vbarYMin=O+P/2,this._vbarTranslateMax=T-P):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var R=this.id,F=u-.5,B=L?f+I+.5:f+.5,N=h-.5,j=k?p+A+.5:p+.5,U=o._topdefs.selectAll(&quot;#&quot;+R).data(k||L?[0]:[]);if(U.exit().remove(),U.enter().append(&quot;clipPath&quot;).attr(&quot;id&quot;,R).append(&quot;rect&quot;),k||L?(this._clipRect=U.select(&quot;rect&quot;).attr({x:Math.floor(F),y:Math.floor(N),width:Math.ceil(B)-Math.floor(F),height:Math.ceil(j)-Math.floor(N)}),this.container.call(a.setClipUrl,R,this.gd),this.bg.attr({x:d,y:m,width:g,height:v})):(this.bg.attr({width:0,height:0}),this.container.on(&quot;wheel&quot;,null).on(&quot;.drag&quot;,null).call(a.setClipUrl,null),delete this._clipRect),k||L){var V=n.behavior.drag().on(&quot;dragstart&quot;,(function(){n.event.sourceEvent.preventDefault()})).on(&quot;drag&quot;,this._onBoxDrag.bind(this));this.container.on(&quot;wheel&quot;,null).on(&quot;wheel&quot;,this._onBoxWheel.bind(this)).on(&quot;.drag&quot;,null).call(V);var q=n.behavior.drag().on(&quot;dragstart&quot;,(function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()})).on(&quot;drag&quot;,this._onBarDrag.bind(this));k&amp;&amp;this.hbar.on(&quot;.drag&quot;,null).call(q),L&amp;&amp;this.vbar.on(&quot;.drag&quot;,null).call(q)}this.setTranslate(e,r)},s.prototype.disable=function(){(this.hbar||this.vbar)&amp;&amp;(this.bg.attr({width:0,height:0}),this.container.on(&quot;wheel&quot;,null).on(&quot;.drag&quot;,null).call(a.setClipUrl,null),delete this._clipRect),this.hbar&amp;&amp;(this.hbar.on(&quot;.drag&quot;,null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&amp;&amp;(this.vbar.on(&quot;.drag&quot;,null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},s.prototype._onBoxDrag=function(){var t=this.translateX,e=this.translateY;this.hbar&amp;&amp;(t-=n.event.dx),this.vbar&amp;&amp;(e-=n.event.dy),this.setTranslate(t,e)},s.prototype._onBoxWheel=function(){var t=this.translateX,e=this.translateY;this.hbar&amp;&amp;(t+=n.event.deltaY),this.vbar&amp;&amp;(e+=n.event.deltaY),this.setTranslate(t,e)},s.prototype._onBarDrag=function(){var t=this.translateX,e=this.translateY;if(this.hbar){var r=t+this._hbarXMin,i=r+this._hbarTranslateMax;t=(o.constrain(n.event.x,r,i)-r)/(i-r)*(this.position.w-this._box.w)}if(this.vbar){var a=e+this._vbarYMin,s=a+this._vbarTranslateMax;e=(o.constrain(n.event.y,a,s)-a)/(s-a)*(this.position.h-this._box.h)}this.setTranslate(t,e)},s.prototype.setTranslate=function(t,e){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=o.constrain(t||0,0,r),e=o.constrain(e||0,0,n),this.translateX=t,this.translateY=e,this.container.call(a.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-e),this._clipRect&amp;&amp;this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+e-.5)}),this.hbar){var i=t/r;this.hbar.call(a.setTranslate,t+i*this._hbarTranslateMax,e)}if(this.vbar){var s=e/n;this.vbar.call(a.setTranslate,t,e+s*this._vbarTranslateMax)}}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;../drawing&quot;:665,d3:169}],745:[function(t,e,r){&quot;use strict&quot;;e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:&quot;right&quot;,right:&quot;left&quot;,top:&quot;bottom&quot;,bottom:&quot;top&quot;}}},{}],746:[function(t,e,r){&quot;use strict&quot;;e.exports={axisRefDescription:function(t,e,r){return[&quot;If set to a&quot;,t,&quot;axis id (e.g. *&quot;+t+&quot;* or&quot;,&quot;*&quot;+t+&quot;2*), the `&quot;+t+&quot;` position refers to a&quot;,t,&quot;coordinate. If set to *paper*, the `&quot;+t+&quot;`&quot;,&quot;position refers to the distance from the&quot;,e,&quot;of the plotting&quot;,&quot;area in normalized coordinates where *0* (*1*) corresponds to the&quot;,e,&quot;(&quot;+r+&quot;). If set to a&quot;,t,&quot;axis ID followed by&quot;,&quot;*domain* (separated by a space), the position behaves like for&quot;,&quot;*paper*, but refers to the distance in fractions of the domain&quot;,&quot;length from the&quot;,e,&quot;of the domain of that axis: e.g.,&quot;,&quot;*&quot;+t+&quot;2 domain* refers to the domain of the second&quot;,t,&quot; axis and a&quot;,t,&quot;position of 0.5 refers to the&quot;,&quot;point between the&quot;,e,&quot;and the&quot;,r,&quot;of the domain of the&quot;,&quot;second&quot;,t,&quot;axis.&quot;].join(&quot; &quot;)}}},{}],747:[function(t,e,r){&quot;use strict&quot;;e.exports={INCREASING:{COLOR:&quot;#3D9970&quot;,SYMBOL:&quot;\u25b2&quot;},DECREASING:{COLOR:&quot;#FF4136&quot;,SYMBOL:&quot;\u25bc&quot;}}},{}],748:[function(t,e,r){&quot;use strict&quot;;e.exports={FORMAT_LINK:&quot;https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format&quot;,DATE_FORMAT_LINK:&quot;https://github.com/d3/d3-time-format#locale_format&quot;}},{}],749:[function(t,e,r){&quot;use strict&quot;;e.exports={COMPARISON_OPS:[&quot;=&quot;,&quot;!=&quot;,&quot;&lt;&quot;,&quot;&gt;=&quot;,&quot;&gt;&quot;,&quot;&lt;=&quot;],COMPARISON_OPS2:[&quot;=&quot;,&quot;&lt;&quot;,&quot;&gt;=&quot;,&quot;&gt;&quot;,&quot;&lt;=&quot;],INTERVAL_OPS:[&quot;[]&quot;,&quot;()&quot;,&quot;[)&quot;,&quot;(]&quot;,&quot;][&quot;,&quot;)(&quot;,&quot;](&quot;,&quot;)[&quot;],SET_OPS:[&quot;{}&quot;,&quot;}{&quot;],CONSTRAINT_REDUCTION:{&quot;=&quot;:&quot;=&quot;,&quot;&lt;&quot;:&quot;&lt;&quot;,&quot;&lt;=&quot;:&quot;&lt;&quot;,&quot;&gt;&quot;:&quot;&gt;&quot;,&quot;&gt;=&quot;:&quot;&gt;&quot;,&quot;[]&quot;:&quot;[]&quot;,&quot;()&quot;:&quot;[]&quot;,&quot;[)&quot;:&quot;[]&quot;,&quot;(]&quot;:&quot;[]&quot;,&quot;][&quot;:&quot;][&quot;,&quot;)(&quot;:&quot;][&quot;,&quot;](&quot;:&quot;][&quot;,&quot;)[&quot;:&quot;][&quot;}}},{}],750:[function(t,e,r){&quot;use strict&quot;;e.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},{}],751:[function(t,e,r){&quot;use strict&quot;;e.exports={circle:&quot;\u25cf&quot;,&quot;circle-open&quot;:&quot;\u25cb&quot;,square:&quot;\u25a0&quot;,&quot;square-open&quot;:&quot;\u25a1&quot;,diamond:&quot;\u25c6&quot;,&quot;diamond-open&quot;:&quot;\u25c7&quot;,cross:&quot;+&quot;,x:&quot;\u274c&quot;}},{}],752:[function(t,e,r){&quot;use strict&quot;;e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},{}],753:[function(t,e,r){&quot;use strict&quot;;e.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:&quot;\u2212&quot;}},{}],754:[function(t,e,r){&quot;use strict&quot;;r.xmlns=&quot;http://www.w3.org/2000/xmlns/&quot;,r.svg=&quot;http://www.w3.org/2000/svg&quot;,r.xlink=&quot;http://www.w3.org/1999/xlink&quot;,r.svgAttrs={xmlns:r.svg,&quot;xmlns:xlink&quot;:r.xlink}},{}],755:[function(t,e,r){&quot;use strict&quot;;r.version=t(&quot;./version&quot;).version,t(&quot;es6-promise&quot;).polyfill(),t(&quot;../build/plotcss&quot;),t(&quot;./fonts/mathjax_config&quot;)();for(var n=t(&quot;./registry&quot;),i=r.register=n.register,a=t(&quot;./plot_api&quot;),o=Object.keys(a),s=0;s&lt;o.length;s++){var l=o[s];&quot;_&quot;!==l.charAt(0)&amp;&amp;(r[l]=a[l]),i({moduleType:&quot;apiMethod&quot;,name:l,fn:a[l]})}i(t(&quot;./traces/scatter&quot;)),i([t(&quot;./components/legend&quot;),t(&quot;./components/fx&quot;),t(&quot;./components/annotations&quot;),t(&quot;./components/annotations3d&quot;),t(&quot;./components/shapes&quot;),t(&quot;./components/images&quot;),t(&quot;./components/updatemenus&quot;),t(&quot;./components/sliders&quot;),t(&quot;./components/rangeslider&quot;),t(&quot;./components/rangeselector&quot;),t(&quot;./components/grid&quot;),t(&quot;./components/errorbars&quot;),t(&quot;./components/colorscale&quot;),t(&quot;./components/colorbar&quot;)]),i([t(&quot;./locale-en&quot;),t(&quot;./locale-en-us&quot;)]),window.PlotlyLocales&amp;&amp;Array.isArray(window.PlotlyLocales)&amp;&amp;(i(window.PlotlyLocales),delete window.PlotlyLocales),r.Icons=t(&quot;./fonts/ploticon&quot;),r.Plots=t(&quot;./plots/plots&quot;),r.Fx=t(&quot;./components/fx&quot;),r.Snapshot=t(&quot;./snapshot&quot;),r.PlotSchema=t(&quot;./plot_api/plot_schema&quot;),r.Queue=t(&quot;./lib/queue&quot;),r.d3=t(&quot;d3&quot;)},{&quot;../build/plotcss&quot;:1,&quot;./components/annotations&quot;:634,&quot;./components/annotations3d&quot;:639,&quot;./components/colorbar&quot;:649,&quot;./components/colorscale&quot;:655,&quot;./components/errorbars&quot;:671,&quot;./components/fx&quot;:683,&quot;./components/grid&quot;:687,&quot;./components/images&quot;:692,&quot;./components/legend&quot;:700,&quot;./components/rangeselector&quot;:711,&quot;./components/rangeslider&quot;:718,&quot;./components/shapes&quot;:732,&quot;./components/sliders&quot;:737,&quot;./components/updatemenus&quot;:743,&quot;./fonts/mathjax_config&quot;:756,&quot;./fonts/ploticon&quot;:757,&quot;./lib/queue&quot;:794,&quot;./locale-en&quot;:808,&quot;./locale-en-us&quot;:807,&quot;./plot_api&quot;:812,&quot;./plot_api/plot_schema&quot;:816,&quot;./plots/plots&quot;:891,&quot;./registry&quot;:911,&quot;./snapshot&quot;:916,&quot;./traces/scatter&quot;:1199,&quot;./version&quot;:1370,d3:169,&quot;es6-promise&quot;:224}],756:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){&quot;undefined&quot;!=typeof MathJax&amp;&amp;(&quot;local&quot;!==(window.PlotlyConfig||{}).MathJaxConfig&amp;&amp;(MathJax.Hub.Config({messageStyle:&quot;none&quot;,skipStartupTypeset:!0,displayAlign:&quot;left&quot;,tex2jax:{inlineMath:[[&quot;$&quot;,&quot;$&quot;],[&quot;\\(&quot;,&quot;\\)&quot;]]}}),MathJax.Hub.Configured()))}},{}],757:[function(t,e,r){&quot;use strict&quot;;e.exports={undo:{width:857.1,height:1e3,path:&quot;m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},home:{width:928.6,height:1e3,path:&quot;m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;camera-retro&quot;:{width:1e3,height:1e3,path:&quot;m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoombox:{width:1e3,height:1e3,path:&quot;m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},pan:{width:1e3,height:1e3,path:&quot;m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoom_plus:{width:875,height:1e3,path:&quot;m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoom_minus:{width:875,height:1e3,path:&quot;m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},autoscale:{width:1e3,height:1e3,path:&quot;m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},tooltip_basic:{width:1500,height:1e3,path:&quot;m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},tooltip_compare:{width:1125,height:1e3,path:&quot;m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},plotlylogo:{width:1542,height:1e3,path:&quot;m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;z-axis&quot;:{width:1e3,height:1e3,path:&quot;m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;3d_rotate&quot;:{width:1e3,height:1e3,path:&quot;m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},camera:{width:1e3,height:1e3,path:&quot;m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},movie:{width:1e3,height:1e3,path:&quot;m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},question:{width:857.1,height:1e3,path:&quot;m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},disk:{width:857.1,height:1e3,path:&quot;m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},drawopenpath:{width:70,height:70,path:&quot;M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z&quot;,transform:&quot;matrix(1 0 0 1 -15 -15)&quot;},drawclosedpath:{width:90,height:90,path:&quot;M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z&quot;,transform:&quot;matrix(1 0 0 1 -5 -5)&quot;},lasso:{width:1031,height:1e3,path:&quot;m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},selectbox:{width:1e3,height:1e3,path:&quot;m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},drawline:{width:70,height:70,path:&quot;M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z&quot;,transform:&quot;matrix(1 0 0 1 -15 -15)&quot;},drawrect:{width:80,height:80,path:&quot;M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},drawcircle:{width:80,height:80,path:&quot;M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},eraseshape:{width:80,height:80,path:&quot;M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},spikeline:{width:1e3,height:1e3,path:&quot;M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z&quot;,transform:&quot;matrix(1.5 0 0 -1.5 0 850)&quot;},pencil:{width:1792,height:1792,path:&quot;M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z&quot;,transform:&quot;matrix(1 0 0 1 0 1)&quot;},newplotlylogo:{name:&quot;newplotlylogo&quot;,svg:&quot;&lt;svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'&gt;&lt;defs&gt;&lt;style&gt;.cls-1 {fill: #3f4f75;} .cls-2 {fill: #80cfbe;} .cls-3 {fill: #fff;}&lt;/style&gt;&lt;/defs&gt;&lt;title&gt;plotly-logomark&lt;/title&gt;&lt;g id='symbol'&gt;&lt;rect class='cls-1' width='132' height='132' rx='6' ry='6'/&gt;&lt;circle class='cls-2' cx='78' cy='54' r='6'/&gt;&lt;circle class='cls-2' cx='102' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='78' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='54' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='30' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='30' cy='54' r='6'/&gt;&lt;path class='cls-3' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/&gt;&lt;path class='cls-3' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/&gt;&lt;path class='cls-3' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/&gt;&lt;path class='cls-3' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;}}},{}],758:[function(t,e,r){&quot;use strict&quot;;r.isLeftAnchor=function(t){return&quot;left&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&lt;=1/3},r.isCenterAnchor=function(t){return&quot;center&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&gt;1/3&amp;&amp;t.x&lt;2/3},r.isRightAnchor=function(t){return&quot;right&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&gt;=2/3},r.isTopAnchor=function(t){return&quot;top&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&gt;=2/3},r.isMiddleAnchor=function(t){return&quot;middle&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&gt;1/3&amp;&amp;t.y&lt;2/3},r.isBottomAnchor=function(t){return&quot;bottom&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&lt;=1/3}},{}],759:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./mod&quot;),i=n.mod,a=n.modHalf,o=Math.PI,s=2*o;function l(t){return Math.abs(t[1]-t[0])&gt;s-1e-14}function c(t,e){return a(e-t,s)}function u(t,e){if(l(e))return!0;var r,n;e[0]&lt;e[1]?(r=e[0],n=e[1]):(r=e[1],n=e[0]),(r=i(r,s))&gt;(n=i(n,s))&amp;&amp;(n+=s);var a=i(t,s),o=a+s;return a&gt;=r&amp;&amp;a&lt;=n||o&gt;=r&amp;&amp;o&lt;=n}function f(t,e,r,n,i,a,c){i=i||0,a=a||0;var u,f,h,p,d,g=l([r,n]);function m(t,e){return[t*Math.cos(e)+i,a-t*Math.sin(e)]}g?(u=0,f=o,h=s):r&lt;n?(u=r,h=n):(u=n,h=r),t&lt;e?(p=t,d=e):(p=e,d=t);var v,y=Math.abs(h-u)&lt;=o?0:1;function x(t,e,r){return&quot;A&quot;+[t,t]+&quot; &quot;+[0,y,r]+&quot; &quot;+m(t,e)}return g?v=null===p?&quot;M&quot;+m(d,u)+x(d,f,0)+x(d,h,0)+&quot;Z&quot;:&quot;M&quot;+m(p,u)+x(p,f,0)+x(p,h,0)+&quot;ZM&quot;+m(d,u)+x(d,f,1)+x(d,h,1)+&quot;Z&quot;:null===p?(v=&quot;M&quot;+m(d,u)+x(d,h,0),c&amp;&amp;(v+=&quot;L0,0Z&quot;)):v=&quot;M&quot;+m(p,u)+&quot;L&quot;+m(d,u)+x(d,h,0)+&quot;L&quot;+m(p,h)+x(p,u,1)+&quot;Z&quot;,v}e.exports={deg2rad:function(t){return t/180*o},rad2deg:function(t){return t/o*180},angleDelta:c,angleDist:function(t,e){return Math.abs(c(t,e))},isFullCircle:l,isAngleInsideSector:u,isPtInsideSector:function(t,e,r,n){return!!u(e,n)&amp;&amp;(r[0]&lt;r[1]?(i=r[0],a=r[1]):(i=r[1],a=r[0]),t&gt;=i&amp;&amp;t&lt;=a);var i,a},pathArc:function(t,e,r,n,i){return f(null,t,e,r,n,i,0)},pathSector:function(t,e,r,n,i){return f(null,t,e,r,n,i,1)},pathAnnulus:function(t,e,r,n,i,a){return f(t,e,r,n,i,a,1)}}},{&quot;./mod&quot;:785}],760:[function(t,e,r){&quot;use strict&quot;;var n=Array.isArray,i=&quot;undefined&quot;!=typeof ArrayBuffer&amp;&amp;ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}},a=&quot;undefined&quot;==typeof DataView?function(){}:DataView;function o(t){return i.isView(t)&amp;&amp;!(t instanceof a)}function s(t){return n(t)||o(t)}function l(t,e,r){if(s(t)){if(s(t[0])){for(var n=r,i=0;i&lt;t.length;i++)n=e(n,t[i].length);return n}return t.length}return 0}r.isTypedArray=o,r.isArrayOrTypedArray=s,r.isArray1D=function(t){return!s(t[0])},r.ensureArray=function(t,e){return n(t)||(t=[]),t.length=e,t},r.concat=function(){var t,e,r,i,a,o,s,l,c=[],u=!0,f=0;for(r=0;r&lt;arguments.length;r++)(o=(i=arguments[r]).length)&amp;&amp;(e?c.push(i):(e=i,a=o),n(i)?t=!1:(u=!1,f?t!==i.constructor&amp;&amp;(t=!1):t=i.constructor),f+=o);if(!f)return[];if(!c.length)return e;if(u)return e.concat.apply(e,c);if(t){for((s=new t(f)).set(e),r=0;r&lt;c.length;r++)i=c[r],s.set(i,a),a+=i.length;return s}for(s=new Array(f),l=0;l&lt;e.length;l++)s[l]=e[l];for(r=0;r&lt;c.length;r++){for(i=c[r],l=0;l&lt;i.length;l++)s[a+l]=i[l];a+=l}return s},r.maxRowLength=function(t){return l(t,Math.max,0)},r.minRowLength=function(t){return l(t,Math.min,1/0)}},{}],761:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../constants/numerical&quot;).BADNUM,a=/^['&quot;%,$#\s']+|[, ]|['&quot;%,$#\s']+$/g;e.exports=function(t){return&quot;string&quot;==typeof t&amp;&amp;(t=t.replace(a,&quot;&quot;)),n(t)?Number(t):i}},{&quot;../constants/numerical&quot;:753,&quot;fast-isnumeric&quot;:241}],762:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t._fullLayout;e._glcanvas&amp;&amp;e._glcanvas.size()&amp;&amp;e._glcanvas.each((function(t){t.regl&amp;&amp;t.regl.clear({color:!0,depth:!0})}))}},{}],763:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){t._responsiveChartHandler&amp;&amp;(window.removeEventListener(&quot;resize&quot;,t._responsiveChartHandler),delete t._responsiveChartHandler)}},{}],764:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../plots/attributes&quot;),o=t(&quot;../components/colorscale/scales&quot;),s=t(&quot;../constants/interactions&quot;).DESELECTDIM,l=t(&quot;./nested_property&quot;),c=t(&quot;./regex&quot;).counter,u=t(&quot;./mod&quot;).modHalf,f=t(&quot;./array&quot;).isArrayOrTypedArray;function h(t,e){var n=r.valObjectMeta[e.valType];if(e.arrayOk&amp;&amp;f(t))return!0;if(n.validateFunction)return n.validateFunction(t,e);var i={},a=i,o={set:function(t){a=t}};return n.coerceFunction(t,o,i,e),a!==i}r.valObjectMeta={data_array:{coerceFunction:function(t,e,r){f(t)?e.set(t):void 0!==r&amp;&amp;e.set(r)}},enumerated:{coerceFunction:function(t,e,r,n){n.coerceNumber&amp;&amp;(t=+t),-1===n.values.indexOf(t)?e.set(r):e.set(t)},validateFunction:function(t,e){e.coerceNumber&amp;&amp;(t=+t);for(var r=e.values,n=0;n&lt;r.length;n++){var i=String(r[n]);if(&quot;/&quot;===i.charAt(0)&amp;&amp;&quot;/&quot;===i.charAt(i.length-1)){if(new RegExp(i.substr(1,i.length-2)).test(t))return!0}else if(t===r[n])return!0}return!1}},boolean:{coerceFunction:function(t,e,r){!0===t||!1===t?e.set(t):e.set(r)}},number:{coerceFunction:function(t,e,r,i){!n(t)||void 0!==i.min&amp;&amp;t&lt;i.min||void 0!==i.max&amp;&amp;t&gt;i.max?e.set(r):e.set(+t)}},integer:{coerceFunction:function(t,e,r,i){t%1||!n(t)||void 0!==i.min&amp;&amp;t&lt;i.min||void 0!==i.max&amp;&amp;t&gt;i.max?e.set(r):e.set(+t)}},string:{coerceFunction:function(t,e,r,n){if(&quot;string&quot;!=typeof t){var i=&quot;number&quot;==typeof t;!0!==n.strict&amp;&amp;i?e.set(String(t)):e.set(r)}else n.noBlank&amp;&amp;!t?e.set(r):e.set(t)}},color:{coerceFunction:function(t,e,r){i(t).isValid()?e.set(t):e.set(r)}},colorlist:{coerceFunction:function(t,e,r){Array.isArray(t)&amp;&amp;t.length&amp;&amp;t.every((function(t){return i(t).isValid()}))?e.set(t):e.set(r)}},colorscale:{coerceFunction:function(t,e,r){e.set(o.get(t,r))}},angle:{coerceFunction:function(t,e,r){&quot;auto&quot;===t?e.set(&quot;auto&quot;):n(t)?e.set(u(+t,360)):e.set(r)}},subplotid:{coerceFunction:function(t,e,r,n){var i=n.regex||c(r);&quot;string&quot;==typeof t&amp;&amp;i.test(t)?e.set(t):e.set(r)},validateFunction:function(t,e){var r=e.dflt;return t===r||&quot;string&quot;==typeof t&amp;&amp;!!c(r).test(t)}},flaglist:{coerceFunction:function(t,e,r,n){if(&quot;string&quot;==typeof t)if(-1===(n.extras||[]).indexOf(t)){for(var i=t.split(&quot;+&quot;),a=0;a&lt;i.length;){var o=i[a];-1===n.flags.indexOf(o)||i.indexOf(o)&lt;a?i.splice(a,1):a++}i.length?e.set(i.join(&quot;+&quot;)):e.set(r)}else e.set(t);else e.set(r)}},any:{coerceFunction:function(t,e,r){void 0===t?e.set(r):e.set(t)}},info_array:{coerceFunction:function(t,e,n,i){function a(t,e,n){var i,a={set:function(t){i=t}};return void 0===n&amp;&amp;(n=e.dflt),r.valObjectMeta[e.valType].coerceFunction(t,a,n,e),i}var o=2===i.dimensions||&quot;1-2&quot;===i.dimensions&amp;&amp;Array.isArray(t)&amp;&amp;Array.isArray(t[0]);if(Array.isArray(t)){var s,l,c,u,f,h,p=i.items,d=[],g=Array.isArray(p),m=g&amp;&amp;o&amp;&amp;Array.isArray(p[0]),v=o&amp;&amp;g&amp;&amp;!m,y=g&amp;&amp;!v?p.length:t.length;if(n=Array.isArray(n)?n:[],o)for(s=0;s&lt;y;s++)for(d[s]=[],c=Array.isArray(t[s])?t[s]:[],f=v?p.length:g?p[s].length:c.length,l=0;l&lt;f;l++)u=v?p[l]:g?p[s][l]:p,void 0!==(h=a(c[l],u,(n[s]||[])[l]))&amp;&amp;(d[s][l]=h);else for(s=0;s&lt;y;s++)void 0!==(h=a(t[s],g?p[s]:p,n[s]))&amp;&amp;(d[s]=h);e.set(d)}else e.set(n)},validateFunction:function(t,e){if(!Array.isArray(t))return!1;var r=e.items,n=Array.isArray(r),i=2===e.dimensions;if(!e.freeLength&amp;&amp;t.length!==r.length)return!1;for(var a=0;a&lt;t.length;a++)if(i){if(!Array.isArray(t[a])||!e.freeLength&amp;&amp;t[a].length!==r[a].length)return!1;for(var o=0;o&lt;t[a].length;o++)if(!h(t[a][o],n?r[a][o]:r))return!1}else if(!h(t[a],n?r[a]:r))return!1;return!0}}},r.coerce=function(t,e,n,i,a){var o=l(n,i).get(),s=l(t,i),c=l(e,i),u=s.get(),p=e._template;if(void 0===u&amp;&amp;p&amp;&amp;(u=l(p,i).get(),p=0),void 0===a&amp;&amp;(a=o.dflt),o.arrayOk&amp;&amp;f(u))return c.set(u),u;var d=r.valObjectMeta[o.valType].coerceFunction;d(u,c,a,o);var g=c.get();return p&amp;&amp;g===a&amp;&amp;!h(u,o)&amp;&amp;(d(u=l(p,i).get(),c,a,o),g=c.get()),g},r.coerce2=function(t,e,n,i,a){var o=l(t,i),s=r.coerce(t,e,n,i,a),c=o.get();return null!=c&amp;&amp;s},r.coerceFont=function(t,e,r){var n={};return r=r||{},n.family=t(e+&quot;.family&quot;,r.family),n.size=t(e+&quot;.size&quot;,r.size),n.color=t(e+&quot;.color&quot;,r.color),n},r.coerceHoverinfo=function(t,e,n){var i,o=e._module.attributes,s=o.hoverinfo?o:a,l=s.hoverinfo;if(1===n._dataLength){var c=&quot;all&quot;===l.dflt?l.flags.slice():l.dflt.split(&quot;+&quot;);c.splice(c.indexOf(&quot;name&quot;),1),i=c.join(&quot;+&quot;)}return r.coerce(t,e,s,&quot;hoverinfo&quot;,i)},r.coerceSelectionMarkerOpacity=function(t,e){if(t.marker){var r,n,i=t.marker.opacity;if(void 0!==i)f(i)||t.selected||t.unselected||(r=i,n=s*i),e(&quot;selected.marker.opacity&quot;,r),e(&quot;unselected.marker.opacity&quot;,n)}},r.validate=h},{&quot;../components/colorscale/scales&quot;:658,&quot;../constants/interactions&quot;:752,&quot;../plots/attributes&quot;:824,&quot;./array&quot;:760,&quot;./mod&quot;:785,&quot;./nested_property&quot;:786,&quot;./regex&quot;:795,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],765:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;d3-time-format&quot;).timeFormat,o=t(&quot;fast-isnumeric&quot;),s=t(&quot;./loggers&quot;),l=t(&quot;./mod&quot;).mod,c=t(&quot;../constants/numerical&quot;),u=c.BADNUM,f=c.ONEDAY,h=c.ONEHOUR,p=c.ONEMIN,d=c.ONESEC,g=c.EPOCHJD,m=t(&quot;../registry&quot;),v=t(&quot;d3-time-format&quot;).utcFormat,y=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,x=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,b=(new Date).getFullYear()-70;function _(t){return t&amp;&amp;m.componentsRegistry.calendars&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;&quot;gregorian&quot;!==t}function w(t,e){return String(t+Math.pow(10,e)).substr(1)}r.dateTick0=function(t,e){var n=function(t,e){return _(t)?e?m.getComponentMethod(&quot;calendars&quot;,&quot;CANONICAL_SUNDAY&quot;)[t]:m.getComponentMethod(&quot;calendars&quot;,&quot;CANONICAL_TICK&quot;)[t]:e?&quot;2000-01-02&quot;:&quot;2000-01-01&quot;}(t,!!e);if(e&lt;2)return n;var i=r.dateTime2ms(n,t);return i+=f*(e-1),r.ms2DateTime(i,0,t)},r.dfltRange=function(t){return _(t)?m.getComponentMethod(&quot;calendars&quot;,&quot;DFLTRANGE&quot;)[t]:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;]},r.isJSDate=function(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t&amp;&amp;&quot;function&quot;==typeof t.getTime},r.dateTime2ms=function(t,e){if(r.isJSDate(t)){var a=t.getTimezoneOffset()*p,o=(t.getUTCMinutes()-t.getMinutes())*p+(t.getUTCSeconds()-t.getSeconds())*d+(t.getUTCMilliseconds()-t.getMilliseconds());if(o){var s=3*p;a=a-s/2+l(o-a+s/2,s)}return(t=Number(t)-a)&gt;=n&amp;&amp;t&lt;=i?t:u}if(&quot;string&quot;!=typeof t&amp;&amp;&quot;number&quot;!=typeof t)return u;t=String(t);var c=_(e),v=t.charAt(0);!c||&quot;G&quot;!==v&amp;&amp;&quot;g&quot;!==v||(t=t.substr(1),e=&quot;&quot;);var w=c&amp;&amp;&quot;chinese&quot;===e.substr(0,7),T=t.match(w?x:y);if(!T)return u;var k=T[1],M=T[3]||&quot;1&quot;,A=Number(T[5]||1),S=Number(T[7]||0),E=Number(T[9]||0),C=Number(T[11]||0);if(c){if(2===k.length)return u;var L;k=Number(k);try{var I=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(e);if(w){var P=&quot;i&quot;===M.charAt(M.length-1);M=parseInt(M,10),L=I.newDate(k,I.toMonthIndex(k,M,P),A)}else L=I.newDate(k,Number(M),A)}catch(t){return u}return L?(L.toJD()-g)*f+S*h+E*p+C*d:u}k=2===k.length?(Number(k)+2e3-b)%100+b:Number(k),M-=1;var z=new Date(Date.UTC(2e3,M,A,S,E));return z.setUTCFullYear(k),z.getUTCMonth()!==M||z.getUTCDate()!==A?u:z.getTime()+C*d},n=r.MIN_MS=r.dateTime2ms(&quot;-9999&quot;),i=r.MAX_MS=r.dateTime2ms(&quot;9999-12-31 23:59:59.9999&quot;),r.isDateTime=function(t,e){return r.dateTime2ms(t,e)!==u};var T=90*f,k=3*h,M=5*p;function A(t,e,r,n,i){if((e||r||n||i)&amp;&amp;(t+=&quot; &quot;+w(e,2)+&quot;:&quot;+w(r,2),(n||i)&amp;&amp;(t+=&quot;:&quot;+w(n,2),i))){for(var a=4;i%10==0;)a-=1,i/=10;t+=&quot;.&quot;+w(i,a)}return t}r.ms2DateTime=function(t,e,r){if(&quot;number&quot;!=typeof t||!(t&gt;=n&amp;&amp;t&lt;=i))return u;e||(e=0);var a,o,s,c,y,x,b=Math.floor(10*l(t+.05,1)),w=Math.round(t-b/10);if(_(r)){var S=Math.floor(w/f)+g,E=Math.floor(l(t,f));try{a=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(r).fromJD(S).formatDate(&quot;yyyy-mm-dd&quot;)}catch(t){a=v(&quot;G%Y-%m-%d&quot;)(new Date(w))}if(&quot;-&quot;===a.charAt(0))for(;a.length&lt;11;)a=&quot;-0&quot;+a.substr(1);else for(;a.length&lt;10;)a=&quot;0&quot;+a;o=e&lt;T?Math.floor(E/h):0,s=e&lt;T?Math.floor(E%h/p):0,c=e&lt;k?Math.floor(E%p/d):0,y=e&lt;M?E%d*10+b:0}else x=new Date(w),a=v(&quot;%Y-%m-%d&quot;)(x),o=e&lt;T?x.getUTCHours():0,s=e&lt;T?x.getUTCMinutes():0,c=e&lt;k?x.getUTCSeconds():0,y=e&lt;M?10*x.getUTCMilliseconds()+b:0;return A(a,o,s,c,y)},r.ms2DateTimeLocal=function(t){if(!(t&gt;=n+f&amp;&amp;t&lt;=i-f))return u;var e=Math.floor(10*l(t+.05,1)),r=new Date(Math.round(t-e/10));return A(a(&quot;%Y-%m-%d&quot;)(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+e)},r.cleanDate=function(t,e,n){if(t===u)return e;if(r.isJSDate(t)||&quot;number&quot;==typeof t&amp;&amp;isFinite(t)){if(_(n))return s.error(&quot;JS Dates and milliseconds are incompatible with world calendars&quot;,t),e;if(!(t=r.ms2DateTimeLocal(+t))&amp;&amp;void 0!==e)return e}else if(!r.isDateTime(t,n))return s.error(&quot;unrecognized date&quot;,t),e;return t};var S=/%\d?f/g;function E(t,e,r,n){t=t.replace(S,(function(t){var r=Math.min(+t.charAt(1)||6,6);return(e/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,&quot;&quot;)||&quot;0&quot;}));var i=new Date(Math.floor(e+.05));if(_(n))try{t=m.getComponentMethod(&quot;calendars&quot;,&quot;worldCalFmt&quot;)(t,e,n)}catch(t){return&quot;Invalid&quot;}return r(t)(i)}var C=[59,59.9,59.99,59.999,59.9999];r.formatDate=function(t,e,r,n,i,a){if(i=_(i)&amp;&amp;i,!e)if(&quot;y&quot;===r)e=a.year;else if(&quot;m&quot;===r)e=a.month;else{if(&quot;d&quot;!==r)return function(t,e){var r=l(t+.05,f),n=w(Math.floor(r/h),2)+&quot;:&quot;+w(l(Math.floor(r/p),60),2);if(&quot;M&quot;!==e){o(e)||(e=0);var i=(100+Math.min(l(t/d,60),C[e])).toFixed(e).substr(1);e&gt;0&amp;&amp;(i=i.replace(/0+$/,&quot;&quot;).replace(/[\.]$/,&quot;&quot;)),n+=&quot;:&quot;+i}return n}(t,r)+&quot;\n&quot;+E(a.dayMonthYear,t,n,i);e=a.dayMonth+&quot;\n&quot;+a.year}return E(e,t,n,i)};var L=3*f;r.incrementMonth=function(t,e,r){r=_(r)&amp;&amp;r;var n=l(t,f);if(t=Math.round(t-n),r)try{var i=Math.round(t/f)+g,a=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(r),o=a.fromJD(i);return e%12?a.add(o,e,&quot;m&quot;):a.add(o,e/12,&quot;y&quot;),(o.toJD()-g)*f+n}catch(e){s.error(&quot;invalid ms &quot;+t+&quot; in calendar &quot;+r)}var c=new Date(t+L);return c.setUTCMonth(c.getUTCMonth()+e)+n-L},r.findExactDates=function(t,e){for(var r,n,i=0,a=0,s=0,l=0,c=_(e)&amp;&amp;m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(e),u=0;u&lt;t.length;u++)if(n=t[u],o(n)){if(!(n%f))if(c)try{1===(r=c.fromJD(n/f+g)).day()?1===r.month()?i++:a++:s++}catch(t){}else 1===(r=new Date(n)).getUTCDate()?0===r.getUTCMonth()?i++:a++:s++}else l++;s+=a+=i;var h=t.length-l;return{exactYears:i/h,exactMonths:a/h,exactDays:s/h}}},{&quot;../constants/numerical&quot;:753,&quot;../registry&quot;:911,&quot;./loggers&quot;:782,&quot;./mod&quot;:785,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],766:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;./loggers&quot;),a=t(&quot;./matrix&quot;),o=t(&quot;gl-mat4&quot;);function s(t){var e=t&amp;&amp;t.parentNode;e&amp;&amp;e.removeChild(t)}function l(t,e,r){var n=&quot;plotly.js-style-&quot;+t,a=document.getElementById(n);a||((a=document.createElement(&quot;style&quot;)).setAttribute(&quot;id&quot;,n),a.appendChild(document.createTextNode(&quot;&quot;)),document.head.appendChild(a));var o=a.sheet;o.insertRule?o.insertRule(e+&quot;{&quot;+r+&quot;}&quot;,0):o.addRule?o.addRule(e,r,0):i.warn(&quot;addStyleRule failed&quot;)}function c(t){var e=window.getComputedStyle(t,null),r=e.getPropertyValue(&quot;-webkit-transform&quot;)||e.getPropertyValue(&quot;-moz-transform&quot;)||e.getPropertyValue(&quot;-ms-transform&quot;)||e.getPropertyValue(&quot;-o-transform&quot;)||e.getPropertyValue(&quot;transform&quot;);return&quot;none&quot;===r?null:r.replace(&quot;matrix&quot;,&quot;&quot;).replace(&quot;3d&quot;,&quot;&quot;).slice(1,-1).split(&quot;,&quot;).map((function(t){return+t}))}function u(t){for(var e=[];f(t);)e.push(t),t=t.parentNode;return e}function f(t){return t&amp;&amp;(t instanceof Element||t instanceof HTMLElement)}e.exports={getGraphDiv:function(t){var e;if(&quot;string&quot;==typeof t){if(null===(e=document.getElementById(t)))throw new Error(&quot;No DOM element with id '&quot;+t+&quot;' exists on the page.&quot;);return e}if(null==t)throw new Error(&quot;DOM element provided is null or undefined&quot;);return t},isPlotDiv:function(t){var e=n.select(t);return e.node()instanceof HTMLElement&amp;&amp;e.size()&amp;&amp;e.classed(&quot;js-plotly-plot&quot;)},removeElement:s,addStyleRule:function(t,e){l(&quot;global&quot;,t,e)},addRelatedStyleRule:l,deleteRelatedStyleRule:function(t){var e=&quot;plotly.js-style-&quot;+t,r=document.getElementById(e);r&amp;&amp;s(r)},getFullTransformMatrix:function(t){var e=u(t),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach((function(t){var e=c(t);if(e){var n=a.convertCssMatrix(e);r=o.multiply(r,r,n)}})),r},getElementTransformMatrix:c,getElementAndAncestors:u,equalDomRects:function(t,e){return t&amp;&amp;e&amp;&amp;t.x===e.x&amp;&amp;t.y===e.y&amp;&amp;t.top===e.top&amp;&amp;t.left===e.left&amp;&amp;t.right===e.right&amp;&amp;t.bottom===e.bottom}}},{&quot;./loggers&quot;:782,&quot;./matrix&quot;:784,d3:169,&quot;gl-mat4&quot;:292}],767:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;events&quot;).EventEmitter,i={init:function(t){if(t._ev instanceof n)return t;var e=new n,r=new n;return t._ev=e,t._internalEv=r,t.on=e.on.bind(e),t.once=e.once.bind(e),t.removeListener=e.removeListener.bind(e),t.removeAllListeners=e.removeAllListeners.bind(e),t._internalOn=r.on.bind(r),t._internalOnce=r.once.bind(r),t._removeInternalListener=r.removeListener.bind(r),t._removeAllInternalListeners=r.removeAllListeners.bind(r),t.emit=function(n,i){&quot;undefined&quot;!=typeof jQuery&amp;&amp;jQuery(t).trigger(n,i),e.emit(n,i),r.emit(n,i)},t},triggerHandler:function(t,e,r){var n,i;&quot;undefined&quot;!=typeof jQuery&amp;&amp;(n=jQuery(t).triggerHandler(e,r));var a=t._ev;if(!a)return n;var o,s=a._events[e];if(!s)return n;function l(t){return t.listener?(a.removeListener(e,t.listener),t.fired?void 0:(t.fired=!0,t.listener.apply(a,[r]))):t.apply(a,[r])}for(s=Array.isArray(s)?s:[s],o=0;o&lt;s.length-1;o++)l(s[o]);return i=l(s[o]),void 0!==n?n:i},purge:function(t){return delete t._ev,delete t.on,delete t.once,delete t.removeListener,delete t.removeAllListeners,delete t.emit,delete t._ev,delete t._internalEv,delete t._internalOn,delete t._internalOnce,delete t._removeInternalListener,delete t._removeAllInternalListeners,t}};e.exports=i},{events:110}],768:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is_plain_object.js&quot;),i=Array.isArray;function a(t,e,r,o){var s,l,c,u,f,h,p=t[0],d=t.length;if(2===d&amp;&amp;i(p)&amp;&amp;i(t[1])&amp;&amp;0===p.length){if(function(t,e){var r,n;for(r=0;r&lt;t.length;r++){if(null!==(n=t[r])&amp;&amp;&quot;object&quot;==typeof n)return!1;void 0!==n&amp;&amp;(e[r]=n)}return!0}(t[1],p))return p;p.splice(0,p.length)}for(var g=1;g&lt;d;g++)for(l in s=t[g])c=p[l],u=s[l],o&amp;&amp;i(u)?p[l]=u:e&amp;&amp;u&amp;&amp;(n(u)||(f=i(u)))?(f?(f=!1,h=c&amp;&amp;i(c)?c:[]):h=c&amp;&amp;n(c)?c:{},p[l]=a([h,u],e,r,o)):(&quot;undefined&quot;!=typeof u||r)&amp;&amp;(p[l]=u);return p}r.extendFlat=function(){return a(arguments,!1,!1,!1)},r.extendDeep=function(){return a(arguments,!0,!1,!1)},r.extendDeepAll=function(){return a(arguments,!0,!0,!1)},r.extendDeepNoArrays=function(){return a(arguments,!0,!1,!0)}},{&quot;./is_plain_object.js&quot;:779}],769:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e={},r=[],n=0,i=0;i&lt;t.length;i++){var a=t[i];1!==e[a]&amp;&amp;(e[a]=1,r[n++]=a)}return r}},{}],770:[function(t,e,r){&quot;use strict&quot;;function n(t){return!0===t.visible}function i(t){var e=t[0].trace;return!0===e.visible&amp;&amp;0!==e._length}e.exports=function(t){for(var e,r=(e=t,Array.isArray(e)&amp;&amp;Array.isArray(e[0])&amp;&amp;e[0][0]&amp;&amp;e[0][0].trace?i:n),a=[],o=0;o&lt;t.length;o++){var s=t[o];r(s)&amp;&amp;a.push(s)}return a}},{}],771:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;country-regex&quot;),a=t(&quot;@turf/area&quot;),o=t(&quot;@turf/centroid&quot;),s=t(&quot;@turf/bbox&quot;),l=t(&quot;./identity&quot;),c=t(&quot;./loggers&quot;),u=t(&quot;./is_plain_object&quot;),f=t(&quot;./nested_property&quot;),h=t(&quot;./polygon&quot;),p=Object.keys(i),d={&quot;ISO-3&quot;:l,&quot;USA-states&quot;:l,&quot;country names&quot;:function(t){for(var e=0;e&lt;p.length;e++){var r=p[e];if(new RegExp(i[r]).test(t.trim().toLowerCase()))return r}return c.log(&quot;Unrecognized country name: &quot;+t+&quot;.&quot;),!1}};function g(t){var e=t.geojson,r=window.PlotlyGeoAssets||{},n=&quot;string&quot;==typeof e?r[e]:e;return u(n)?n:(c.error(&quot;Oops ... something went wrong when fetching &quot;+e),!1)}e.exports={locationToFeature:function(t,e,r){if(!e||&quot;string&quot;!=typeof e)return!1;var n,i,a,o=d[t](e);if(o){if(&quot;USA-states&quot;===t)for(n=[],a=0;a&lt;r.length;a++)(i=r[a]).properties&amp;&amp;i.properties.gu&amp;&amp;&quot;USA&quot;===i.properties.gu&amp;&amp;n.push(i);else n=r;for(a=0;a&lt;n.length;a++)if((i=n[a]).id===o)return i;c.log([&quot;Location with id&quot;,o,&quot;does not have a matching topojson feature at this resolution.&quot;].join(&quot; &quot;))}return!1},feature2polygons:function(t){var e,r,n,i,a=t.geometry,o=a.coordinates,s=t.id,l=[];function c(t){for(var e=0;e&lt;t.length-1;e++)if(t[e][0]&gt;0&amp;&amp;t[e+1][0]&lt;0)return e;return null}switch(e=&quot;RUS&quot;===s||&quot;FJI&quot;===s?function(t){var e;if(null===c(t))e=t;else for(e=new Array(t.length),i=0;i&lt;t.length;i++)e[i]=[t[i][0]&lt;0?t[i][0]+360:t[i][0],t[i][1]];l.push(h.tester(e))}:&quot;ATA&quot;===s?function(t){var e=c(t);if(null===e)return l.push(h.tester(t));var r=new Array(t.length+1),n=0;for(i=0;i&lt;t.length;i++)i&gt;e?r[n++]=[t[i][0]+360,t[i][1]]:i===e?(r[n++]=t[i],r[n++]=[t[i][0],-90]):r[n++]=t[i];var a=h.tester(r);a.pts.pop(),l.push(a)}:function(t){l.push(h.tester(t))},a.type){case&quot;MultiPolygon&quot;:for(r=0;r&lt;o.length;r++)for(n=0;n&lt;o[r].length;n++)e(o[r][n]);break;case&quot;Polygon&quot;:for(r=0;r&lt;o.length;r++)e(o[r])}return l},getTraceGeojson:g,extractTraceFeature:function(t){var e=t[0].trace,r=g(e);if(!r)return!1;var n,i={},s=[];for(n=0;n&lt;e._length;n++){var l=t[n];(l.loc||0===l.loc)&amp;&amp;(i[l.loc]=l)}function u(t){var r=f(t,e.featureidkey||&quot;id&quot;).get(),n=i[r];if(n){var l=t.geometry;if(&quot;Polygon&quot;===l.type||&quot;MultiPolygon&quot;===l.type){var u={type:&quot;Feature&quot;,id:r,geometry:l,properties:{}};u.properties.ct=function(t){var e,r=t.geometry;if(&quot;MultiPolygon&quot;===r.type)for(var n=r.coordinates,i=0,s=0;s&lt;n.length;s++){var l={type:&quot;Polygon&quot;,coordinates:n[s]},c=a.default(l);c&gt;i&amp;&amp;(i=c,e=l)}else e=r;return o.default(e).geometry.coordinates}(u),n.fIn=t,n.fOut=u,s.push(u)}else c.log([&quot;Location&quot;,n.loc,&quot;does not have a valid GeoJSON geometry.&quot;,&quot;Traces with locationmode *geojson-id* only support&quot;,&quot;*Polygon* and *MultiPolygon* geometries.&quot;].join(&quot; &quot;))}delete i[r]}switch(r.type){case&quot;FeatureCollection&quot;:var h=r.features;for(n=0;n&lt;h.length;n++)u(h[n]);break;case&quot;Feature&quot;:u(r);break;default:return c.warn([&quot;Invalid GeoJSON type&quot;,(r.type||&quot;none&quot;)+&quot;.&quot;,&quot;Traces with locationmode *geojson-id* only support&quot;,&quot;*FeatureCollection* and *Feature* types.&quot;].join(&quot; &quot;)),!1}for(var p in i)c.log([&quot;Location *&quot;+p+&quot;*&quot;,&quot;does not have a matching feature with id-key&quot;,&quot;*&quot;+e.featureidkey+&quot;*.&quot;].join(&quot; &quot;));return s},fetchTraceGeoData:function(t){var e=window.PlotlyGeoAssets||{},r=[];function i(t){return new Promise((function(r,i){n.json(t,(function(n,a){if(n){delete e[t];var o=404===n.status?'GeoJSON at URL &quot;'+t+'&quot; does not exist.':&quot;Unexpected error while fetching from &quot;+t;return i(new Error(o))}return e[t]=a,r(a)}))}))}function a(t){return new Promise((function(r,n){var i=0,a=setInterval((function(){return e[t]&amp;&amp;&quot;pending&quot;!==e[t]?(clearInterval(a),r(e[t])):i&gt;100?(clearInterval(a),n(&quot;Unexpected error while fetching from &quot;+t)):void i++}),50)}))}for(var o=0;o&lt;t.length;o++){var s=t[o][0].trace.geojson;&quot;string&quot;==typeof s&amp;&amp;(e[s]?&quot;pending&quot;===e[s]&amp;&amp;r.push(a(s)):(e[s]=&quot;pending&quot;,r.push(i(s))))}return r},computeBbox:function(t){return s.default(t)}}},{&quot;./identity&quot;:776,&quot;./is_plain_object&quot;:779,&quot;./loggers&quot;:782,&quot;./nested_property&quot;:786,&quot;./polygon&quot;:790,&quot;@turf/area&quot;:59,&quot;@turf/bbox&quot;:60,&quot;@turf/centroid&quot;:61,&quot;country-regex&quot;:139,d3:169}],772:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../constants/numerical&quot;).BADNUM;r.calcTraceToLineCoords=function(t){for(var e=t[0].trace.connectgaps,r=[],i=[],a=0;a&lt;t.length;a++){var o=t[a].lonlat;o[0]!==n?i.push(o):!e&amp;&amp;i.length&gt;0&amp;&amp;(r.push(i),i=[])}return i.length&gt;0&amp;&amp;r.push(i),r},r.makeLine=function(t){return 1===t.length?{type:&quot;LineString&quot;,coordinates:t[0]}:{type:&quot;MultiLineString&quot;,coordinates:t}},r.makePolygon=function(t){if(1===t.length)return{type:&quot;Polygon&quot;,coordinates:t};for(var e=new Array(t.length),r=0;r&lt;t.length;r++)e[r]=[t[r]];return{type:&quot;MultiPolygon&quot;,coordinates:e}},r.makeBlank=function(){return{type:&quot;Point&quot;,coordinates:[]}}},{&quot;../constants/numerical&quot;:753}],773:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o=t(&quot;./mod&quot;).mod;function s(t,e,r,n,i,a,o,s){var l=r-t,c=i-t,u=o-i,f=n-e,h=a-e,p=s-a,d=l*p-u*f;if(0===d)return null;var g=(c*p-u*h)/d,m=(c*f-l*h)/d;return m&lt;0||m&gt;1||g&lt;0||g&gt;1?null:{x:t+l*g,y:e+f*g}}function l(t,e,r,n,i){var a=n*t+i*e;if(a&lt;0)return n*n+i*i;if(a&gt;r){var o=n-t,s=i-e;return o*o+s*s}var l=n*e-i*t;return l*l/r}r.segmentsIntersect=s,r.segmentDistance=function(t,e,r,n,i,a,o,c){if(s(t,e,r,n,i,a,o,c))return 0;var u=r-t,f=n-e,h=o-i,p=c-a,d=u*u+f*f,g=h*h+p*p,m=Math.min(l(u,f,d,i-t,a-e),l(u,f,d,o-t,c-e),l(h,p,g,t-i,e-a),l(h,p,g,r-i,n-a));return Math.sqrt(m)},r.getTextLocation=function(t,e,r,s){if(t===i&amp;&amp;s===a||(n={},i=t,a=s),n[r])return n[r];var l=t.getPointAtLength(o(r-s/2,e)),c=t.getPointAtLength(o(r+s/2,e)),u=Math.atan((c.y-l.y)/(c.x-l.x)),f=t.getPointAtLength(o(r,e)),h={x:(4*f.x+l.x+c.x)/6,y:(4*f.y+l.y+c.y)/6,theta:u};return n[r]=h,h},r.clearLocationCache=function(){i=null},r.getVisibleSegment=function(t,e,r){var n,i,a=e.left,o=e.right,s=e.top,l=e.bottom,c=0,u=t.getTotalLength(),f=u;function h(e){var r=t.getPointAtLength(e);0===e?n=r:e===u&amp;&amp;(i=r);var c=r.x&lt;a?a-r.x:r.x&gt;o?r.x-o:0,f=r.y&lt;s?s-r.y:r.y&gt;l?r.y-l:0;return Math.sqrt(c*c+f*f)}for(var p=h(c);p;){if((c+=p+r)&gt;f)return;p=h(c)}for(p=h(f);p;){if(c&gt;(f-=p+r))return;p=h(f)}return{min:c,max:f,len:f-c,total:u,isClosed:0===c&amp;&amp;f===u&amp;&amp;Math.abs(n.x-i.x)&lt;.1&amp;&amp;Math.abs(n.y-i.y)&lt;.1}},r.findPointOnPath=function(t,e,r,n){for(var i,a,o,s=(n=n||{}).pathLength||t.getTotalLength(),l=n.tolerance||.001,c=n.iterationLimit||30,u=t.getPointAtLength(0)[r]&gt;t.getPointAtLength(s)[r]?-1:1,f=0,h=0,p=s;f&lt;c;){if(i=(h+p)/2,o=(a=t.getPointAtLength(i))[r]-e,Math.abs(o)&lt;l)return a;u*o&gt;0?p=i:h=i,f++}return a}},{&quot;./mod&quot;:785}],774:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;color-normalize&quot;),o=t(&quot;../components/colorscale&quot;),s=t(&quot;../components/color/attributes&quot;).defaultLine,l=t(&quot;./array&quot;).isArrayOrTypedArray,c=a(s);function u(t,e){var r=t;return r[3]*=e,r}function f(t){if(n(t))return c;var e=a(t);return e.length?e:c}function h(t){return n(t)?t:1}e.exports={formatColor:function(t,e,r){var n,i,s,p,d,g=t.color,m=l(g),v=l(e),y=o.extractOpts(t),x=[];if(n=void 0!==y.colorscale?o.makeColorScaleFuncFromTrace(t):f,i=m?function(t,e){return void 0===t[e]?c:a(n(t[e]))}:f,s=v?function(t,e){return void 0===t[e]?1:h(t[e])}:h,m||v)for(var b=0;b&lt;r;b++)p=i(g,b),d=s(e,b),x[b]=u(p,d);else x=u(a(g),e);return x},parseColorScale:function(t){var e=o.extractOpts(t),r=e.colorscale;return e.reversescale&amp;&amp;(r=o.flipScale(e.colorscale)),r.map((function(t){var e=t[0],r=i(t[1]).toRgb();return{index:e,rgb:[r.r,r.g,r.b,r.a]}}))}}},{&quot;../components/color/attributes&quot;:642,&quot;../components/colorscale&quot;:655,&quot;./array&quot;:760,&quot;color-normalize&quot;:125,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],775:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./identity&quot;);function i(t){return[t]}e.exports={keyFun:function(t){return t.key},repeat:i,descend:n,wrap:i,unwrap:function(t){return t[0]}}},{&quot;./identity&quot;:776}],776:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t}},{}],777:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(!e)return t;var r=1/Math.abs(e),n=r&gt;1?(r*t+r*e)/r:t+e,i=String(n).length;if(i&gt;16){var a=String(e).length;if(i&gt;=String(t).length+a){var o=parseFloat(n).toPrecision(12);-1===o.indexOf(&quot;e+&quot;)&amp;&amp;(n=+o)}}return n}},{}],778:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-time-format&quot;).utcFormat,a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../constants/numerical&quot;),s=o.FP_SAFE,l=o.BADNUM,c=e.exports={};c.nestedProperty=t(&quot;./nested_property&quot;),c.keyedContainer=t(&quot;./keyed_container&quot;),c.relativeAttr=t(&quot;./relative_attr&quot;),c.isPlainObject=t(&quot;./is_plain_object&quot;),c.toLogRange=t(&quot;./to_log_range&quot;),c.relinkPrivateKeys=t(&quot;./relink_private&quot;);var u=t(&quot;./array&quot;);c.isTypedArray=u.isTypedArray,c.isArrayOrTypedArray=u.isArrayOrTypedArray,c.isArray1D=u.isArray1D,c.ensureArray=u.ensureArray,c.concat=u.concat,c.maxRowLength=u.maxRowLength,c.minRowLength=u.minRowLength;var f=t(&quot;./mod&quot;);c.mod=f.mod,c.modHalf=f.modHalf;var h=t(&quot;./coerce&quot;);c.valObjectMeta=h.valObjectMeta,c.coerce=h.coerce,c.coerce2=h.coerce2,c.coerceFont=h.coerceFont,c.coerceHoverinfo=h.coerceHoverinfo,c.coerceSelectionMarkerOpacity=h.coerceSelectionMarkerOpacity,c.validate=h.validate;var p=t(&quot;./dates&quot;);c.dateTime2ms=p.dateTime2ms,c.isDateTime=p.isDateTime,c.ms2DateTime=p.ms2DateTime,c.ms2DateTimeLocal=p.ms2DateTimeLocal,c.cleanDate=p.cleanDate,c.isJSDate=p.isJSDate,c.formatDate=p.formatDate,c.incrementMonth=p.incrementMonth,c.dateTick0=p.dateTick0,c.dfltRange=p.dfltRange,c.findExactDates=p.findExactDates,c.MIN_MS=p.MIN_MS,c.MAX_MS=p.MAX_MS;var d=t(&quot;./search&quot;);c.findBin=d.findBin,c.sorterAsc=d.sorterAsc,c.sorterDes=d.sorterDes,c.distinctVals=d.distinctVals,c.roundUp=d.roundUp,c.sort=d.sort,c.findIndexOfMin=d.findIndexOfMin;var g=t(&quot;./stats&quot;);c.aggNums=g.aggNums,c.len=g.len,c.mean=g.mean,c.median=g.median,c.midRange=g.midRange,c.variance=g.variance,c.stdev=g.stdev,c.interp=g.interp;var m=t(&quot;./matrix&quot;);c.init2dArray=m.init2dArray,c.transposeRagged=m.transposeRagged,c.dot=m.dot,c.translationMatrix=m.translationMatrix,c.rotationMatrix=m.rotationMatrix,c.rotationXYMatrix=m.rotationXYMatrix,c.apply3DTransform=m.apply3DTransform,c.apply2DTransform=m.apply2DTransform,c.apply2DTransform2=m.apply2DTransform2,c.convertCssMatrix=m.convertCssMatrix,c.inverseTransformMatrix=m.inverseTransformMatrix;var v=t(&quot;./angles&quot;);c.deg2rad=v.deg2rad,c.rad2deg=v.rad2deg,c.angleDelta=v.angleDelta,c.angleDist=v.angleDist,c.isFullCircle=v.isFullCircle,c.isAngleInsideSector=v.isAngleInsideSector,c.isPtInsideSector=v.isPtInsideSector,c.pathArc=v.pathArc,c.pathSector=v.pathSector,c.pathAnnulus=v.pathAnnulus;var y=t(&quot;./anchor_utils&quot;);c.isLeftAnchor=y.isLeftAnchor,c.isCenterAnchor=y.isCenterAnchor,c.isRightAnchor=y.isRightAnchor,c.isTopAnchor=y.isTopAnchor,c.isMiddleAnchor=y.isMiddleAnchor,c.isBottomAnchor=y.isBottomAnchor;var x=t(&quot;./geometry2d&quot;);c.segmentsIntersect=x.segmentsIntersect,c.segmentDistance=x.segmentDistance,c.getTextLocation=x.getTextLocation,c.clearLocationCache=x.clearLocationCache,c.getVisibleSegment=x.getVisibleSegment,c.findPointOnPath=x.findPointOnPath;var b=t(&quot;./extend&quot;);c.extendFlat=b.extendFlat,c.extendDeep=b.extendDeep,c.extendDeepAll=b.extendDeepAll,c.extendDeepNoArrays=b.extendDeepNoArrays;var _=t(&quot;./loggers&quot;);c.log=_.log,c.warn=_.warn,c.error=_.error;var w=t(&quot;./regex&quot;);c.counterRegex=w.counter;var T=t(&quot;./throttle&quot;);c.throttle=T.throttle,c.throttleDone=T.done,c.clearThrottle=T.clear;var k=t(&quot;./dom&quot;);function M(t){var e={};for(var r in t)for(var n=t[r],i=0;i&lt;n.length;i++)e[n[i]]=+r;return e}c.getGraphDiv=k.getGraphDiv,c.isPlotDiv=k.isPlotDiv,c.removeElement=k.removeElement,c.addStyleRule=k.addStyleRule,c.addRelatedStyleRule=k.addRelatedStyleRule,c.deleteRelatedStyleRule=k.deleteRelatedStyleRule,c.getFullTransformMatrix=k.getFullTransformMatrix,c.getElementTransformMatrix=k.getElementTransformMatrix,c.getElementAndAncestors=k.getElementAndAncestors,c.equalDomRects=k.equalDomRects,c.clearResponsive=t(&quot;./clear_responsive&quot;),c.preserveDrawingBuffer=t(&quot;./preserve_drawing_buffer&quot;),c.makeTraceGroups=t(&quot;./make_trace_groups&quot;),c._=t(&quot;./localize&quot;),c.notifier=t(&quot;./notifier&quot;),c.filterUnique=t(&quot;./filter_unique&quot;),c.filterVisible=t(&quot;./filter_visible&quot;),c.pushUnique=t(&quot;./push_unique&quot;),c.increment=t(&quot;./increment&quot;),c.cleanNumber=t(&quot;./clean_number&quot;),c.ensureNumber=function(t){return a(t)?(t=Number(t))&lt;-s||t&gt;s?l:a(t)?Number(t):l:l},c.isIndex=function(t,e){return!(void 0!==e&amp;&amp;t&gt;=e)&amp;&amp;(a(t)&amp;&amp;t&gt;=0&amp;&amp;t%1==0)},c.noop=t(&quot;./noop&quot;),c.identity=t(&quot;./identity&quot;),c.repeat=function(t,e){for(var r=new Array(e),n=0;n&lt;e;n++)r[n]=t;return r},c.swapAttrs=function(t,e,r,n){r||(r=&quot;x&quot;),n||(n=&quot;y&quot;);for(var i=0;i&lt;e.length;i++){var a=e[i],o=c.nestedProperty(t,a.replace(&quot;?&quot;,r)),s=c.nestedProperty(t,a.replace(&quot;?&quot;,n)),l=o.get();o.set(s.get()),s.set(l)}},c.raiseToTop=function(t){t.parentNode.appendChild(t)},c.cancelTransition=function(t){return t.transition().duration(0)},c.constrain=function(t,e,r){return e&gt;r?Math.max(r,Math.min(e,t)):Math.max(e,Math.min(r,t))},c.bBoxIntersect=function(t,e,r){return r=r||0,t.left&lt;=e.right+r&amp;&amp;e.left&lt;=t.right+r&amp;&amp;t.top&lt;=e.bottom+r&amp;&amp;e.top&lt;=t.bottom+r},c.simpleMap=function(t,e,r,n,i){for(var a=t.length,o=new Array(a),s=0;s&lt;a;s++)o[s]=e(t[s],r,n,i);return o},c.randstr=function t(e,r,n,i){if(n||(n=16),void 0===r&amp;&amp;(r=24),r&lt;=0)return&quot;0&quot;;var a,o,s=Math.log(Math.pow(2,r))/Math.log(n),l=&quot;&quot;;for(a=2;s===1/0;a*=2)s=Math.log(Math.pow(2,r/a))/Math.log(n)*a;var u=s-Math.floor(s);for(a=0;a&lt;Math.floor(s);a++)l=Math.floor(Math.random()*n).toString(n)+l;u&amp;&amp;(o=Math.pow(n,u),l=Math.floor(Math.random()*o).toString(n)+l);var f=parseInt(l,n);return e&amp;&amp;e[l]||f!==1/0&amp;&amp;f&gt;=Math.pow(2,r)?i&gt;10?(c.warn(&quot;randstr failed uniqueness&quot;),l):t(e,r,n,(i||0)+1):l},c.OptionControl=function(t,e){t||(t={}),e||(e=&quot;opt&quot;);var r={optionList:[],_newoption:function(n){n[e]=t,r[n.name]=n,r.optionList.push(n)}};return r[&quot;_&quot;+e]=t,r},c.smooth=function(t,e){if((e=Math.round(e)||0)&lt;2)return t;var r,n,i,a,o=t.length,s=2*o,l=2*e-1,c=new Array(l),u=new Array(o);for(r=0;r&lt;l;r++)c[r]=(1-Math.cos(Math.PI*(r+1)/e))/(2*e);for(r=0;r&lt;o;r++){for(a=0,n=0;n&lt;l;n++)(i=r+n+1-e)&lt;-o?i-=s*Math.round(i/s):i&gt;=s&amp;&amp;(i-=s*Math.floor(i/s)),i&lt;0?i=-1-i:i&gt;=o&amp;&amp;(i=s-1-i),a+=t[i]*c[n];u[r]=a}return u},c.syncOrAsync=function(t,e,r){var n;function i(){return c.syncOrAsync(t,e,r)}for(;t.length;)if((n=(0,t.splice(0,1)[0])(e))&amp;&amp;n.then)return n.then(i).then(void 0,c.promiseError);return r&amp;&amp;r(e)},c.stripTrailingSlash=function(t){return&quot;/&quot;===t.substr(-1)?t.substr(0,t.length-1):t},c.noneOrAll=function(t,e,r){if(t){var n,i=!1,a=!0;for(n=0;n&lt;r.length;n++)null!=t[r[n]]?i=!0:a=!1;if(i&amp;&amp;!a)for(n=0;n&lt;r.length;n++)t[r[n]]=e[r[n]]}},c.mergeArray=function(t,e,r,n){var i=&quot;function&quot;==typeof n;if(c.isArrayOrTypedArray(t))for(var a=Math.min(t.length,e.length),o=0;o&lt;a;o++){var s=t[o];e[o][r]=i?n(s):s}},c.mergeArrayCastPositive=function(t,e,r){return c.mergeArray(t,e,r,(function(t){var e=+t;return isFinite(e)&amp;&amp;e&gt;0?e:0}))},c.fillArray=function(t,e,r,n){if(n=n||c.identity,c.isArrayOrTypedArray(t))for(var i=0;i&lt;e.length;i++)e[i][r]=n(t[i])},c.castOption=function(t,e,r,n){n=n||c.identity;var i=c.nestedProperty(t,r).get();return c.isArrayOrTypedArray(i)?Array.isArray(e)&amp;&amp;c.isArrayOrTypedArray(i[e[0]])?n(i[e[0]][e[1]]):n(i[e]):i},c.extractOption=function(t,e,r,n){if(r in t)return t[r];var i=c.nestedProperty(e,n).get();return Array.isArray(i)?void 0:i},c.tagSelected=function(t,e,r){var n,i,a=e.selectedpoints,o=e._indexToPoints;o&amp;&amp;(n=M(o));for(var s=0;s&lt;a.length;s++){var l=a[s];if(c.isIndex(l)||c.isArrayOrTypedArray(l)&amp;&amp;c.isIndex(l[0])&amp;&amp;c.isIndex(l[1])){var u=n?n[l]:l,f=r?r[u]:u;void 0!==(i=f)&amp;&amp;i&lt;t.length&amp;&amp;(t[f].selected=1)}}},c.selIndices2selPoints=function(t){var e=t.selectedpoints,r=t._indexToPoints;if(r){for(var n=M(r),i=[],a=0;a&lt;e.length;a++){var o=e[a];if(c.isIndex(o)){var s=n[o];c.isIndex(s)&amp;&amp;i.push(s)}}return i}return e},c.getTargetArray=function(t,e){var r=e.target;if(&quot;string&quot;==typeof r&amp;&amp;r){var n=c.nestedProperty(t,r).get();return!!Array.isArray(n)&amp;&amp;n}return!!Array.isArray(r)&amp;&amp;r},c.minExtend=function(t,e){var r={};&quot;object&quot;!=typeof e&amp;&amp;(e={});var n,i,a,o=Object.keys(t);for(n=0;n&lt;o.length;n++)a=t[i=o[n]],&quot;_&quot;!==i.charAt(0)&amp;&amp;&quot;function&quot;!=typeof a&amp;&amp;(&quot;module&quot;===i?r[i]=a:Array.isArray(a)?r[i]=&quot;colorscale&quot;===i?a.slice():a.slice(0,3):c.isTypedArray(a)?r[i]=a.subarray(0,3):r[i]=a&amp;&amp;&quot;object&quot;==typeof a?c.minExtend(t[i],e[i]):a);for(o=Object.keys(e),n=0;n&lt;o.length;n++)&quot;object&quot;==typeof(a=e[i=o[n]])&amp;&amp;i in r&amp;&amp;&quot;object&quot;==typeof r[i]||(r[i]=a);return r},c.titleCase=function(t){return t.charAt(0).toUpperCase()+t.substr(1)},c.containsAny=function(t,e){for(var r=0;r&lt;e.length;r++)if(-1!==t.indexOf(e[r]))return!0;return!1},c.isIE=function(){return&quot;undefined&quot;!=typeof window.navigator.msSaveBlob};var A=/MSIE [1-9]\./;c.isIE9orBelow=function(){return c.isIE()&amp;&amp;A.test(window.navigator.userAgent)};var S=/Version\/[\d\.]+.*Safari/;c.isSafari=function(){return S.test(window.navigator.userAgent)};var E=/iPad|iPhone|iPod/;c.isIOS=function(){return E.test(window.navigator.userAgent)},c.isD3Selection=function(t){return t&amp;&amp;&quot;function&quot;==typeof t.classed},c.ensureSingle=function(t,e,r,n){var i=t.select(e+(r?&quot;.&quot;+r:&quot;&quot;));if(i.size())return i;var a=t.append(e);return r&amp;&amp;a.classed(r,!0),n&amp;&amp;a.call(n),a},c.ensureSingleById=function(t,e,r,n){var i=t.select(e+&quot;#&quot;+r);if(i.size())return i;var a=t.append(e).attr(&quot;id&quot;,r);return n&amp;&amp;a.call(n),a},c.objectFromPath=function(t,e){for(var r,n=t.split(&quot;.&quot;),i=r={},a=0;a&lt;n.length;a++){var o=n[a],s=null,l=n[a].match(/(.*)\[([0-9]+)\]/);l?(o=l[1],s=l[2],r=r[o]=[],a===n.length-1?r[s]=e:r[s]={},r=r[s]):(a===n.length-1?r[o]=e:r[o]={},r=r[o])}return i};var C=/^([^\[\.]+)\.(.+)?/,L=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;c.expandObjectPaths=function(t){var e,r,n,i,a,o,s;if(&quot;object&quot;==typeof t&amp;&amp;!Array.isArray(t))for(r in t)t.hasOwnProperty(r)&amp;&amp;((e=r.match(C))?(i=t[r],n=e[1],delete t[r],t[n]=c.extendDeepNoArrays(t[n]||{},c.objectFromPath(r,c.expandObjectPaths(i))[n])):(e=r.match(L))?(i=t[r],n=e[1],a=parseInt(e[2]),delete t[r],t[n]=t[n]||[],&quot;.&quot;===e[3]?(s=e[4],o=t[n][a]=t[n][a]||{},c.extendDeepNoArrays(o,c.objectFromPath(s,c.expandObjectPaths(i)))):t[n][a]=c.expandObjectPaths(i)):t[r]=c.expandObjectPaths(t[r]));return t},c.numSeparate=function(t,e,r){if(r||(r=!1),&quot;string&quot;!=typeof e||0===e.length)throw new Error(&quot;Separator string required for formatting!&quot;);&quot;number&quot;==typeof t&amp;&amp;(t=String(t));var n=/(\d+)(\d{3})/,i=e.charAt(0),a=e.charAt(1),o=t.split(&quot;.&quot;),s=o[0],l=o.length&gt;1?i+o[1]:&quot;&quot;;if(a&amp;&amp;(o.length&gt;1||s.length&gt;4||r))for(;n.test(s);)s=s.replace(n,&quot;$1&quot;+a+&quot;$2&quot;);return s+l},c.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var I=/^\w*$/;c.templateString=function(t,e){var r={};return t.replace(c.TEMPLATE_STRING_REGEX,(function(t,n){var i;return I.test(n)?i=e[n]:(r[n]=r[n]||c.nestedProperty(e,n).get,i=r[n]()),c.isValidTextValue(i)?i:&quot;&quot;}))};var P={max:10,count:0,name:&quot;hovertemplate&quot;};c.hovertemplateString=function(){return D.apply(P,arguments)};var z={max:10,count:0,name:&quot;texttemplate&quot;};c.texttemplateString=function(){return D.apply(z,arguments)};var O=/^[:|\|]/;function D(t,e,r){var a=this,o=arguments;e||(e={});var s={};return t.replace(c.TEMPLATE_STRING_REGEX,(function(t,l,u){var f,h,p,d;for(p=3;p&lt;o.length;p++)if(f=o[p]){if(f.hasOwnProperty(l)){h=f[l];break}if(I.test(l)||(h=s[l]||c.nestedProperty(f,l).get())&amp;&amp;(s[l]=h),void 0!==h)break}if(void 0===h&amp;&amp;a)return a.count&lt;a.max&amp;&amp;(c.warn(&quot;Variable '&quot;+l+&quot;' in &quot;+a.name+&quot; could not be found!&quot;),h=t),a.count===a.max&amp;&amp;c.warn(&quot;Too many &quot;+a.name+&quot; warnings - additional warnings will be suppressed&quot;),a.count++,t;if(u){if(&quot;:&quot;===u[0]&amp;&amp;(h=(d=r?r.numberFormat:n.format)(u.replace(O,&quot;&quot;))(h)),&quot;|&quot;===u[0]){d=r?r.timeFormat:i;var g=c.dateTime2ms(h);h=c.formatDate(g,u.replace(O,&quot;&quot;),!1,d)}}else e.hasOwnProperty(l+&quot;Label&quot;)&amp;&amp;(h=e[l+&quot;Label&quot;]);return h}))}c.subplotSort=function(t,e){for(var r=Math.min(t.length,e.length)+1,n=0,i=0,a=0;a&lt;r;a++){var o=t.charCodeAt(a)||0,s=e.charCodeAt(a)||0,l=o&gt;=48&amp;&amp;o&lt;=57,c=s&gt;=48&amp;&amp;s&lt;=57;if(l&amp;&amp;(n=10*n+o-48),c&amp;&amp;(i=10*i+s-48),!l||!c){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var R=2e9;c.seedPseudoRandom=function(){R=2e9},c.pseudoRandom=function(){var t=R;return R=(69069*R+1)%4294967296,Math.abs(R-t)&lt;429496729?c.pseudoRandom():R/4294967296},c.fillText=function(t,e,r){var n=Array.isArray(r)?function(t){r.push(t)}:function(t){r.text=t},i=c.extractOption(t,e,&quot;htx&quot;,&quot;hovertext&quot;);if(c.isValidTextValue(i))return n(i);var a=c.extractOption(t,e,&quot;tx&quot;,&quot;text&quot;);return c.isValidTextValue(a)?n(a):void 0},c.isValidTextValue=function(t){return t||0===t},c.formatPercent=function(t,e){e=e||0;for(var r=(Math.round(100*t*Math.pow(10,e))*Math.pow(.1,e)).toFixed(e)+&quot;%&quot;,n=0;n&lt;e;n++)-1!==r.indexOf(&quot;.&quot;)&amp;&amp;(r=(r=r.replace(&quot;0%&quot;,&quot;%&quot;)).replace(&quot;.%&quot;,&quot;%&quot;));return r},c.isHidden=function(t){var e=window.getComputedStyle(t).display;return!e||&quot;none&quot;===e},c.strTranslate=function(t,e){return t||e?&quot;translate(&quot;+t+&quot;,&quot;+e+&quot;)&quot;:&quot;&quot;},c.strRotate=function(t){return t?&quot;rotate(&quot;+t+&quot;)&quot;:&quot;&quot;},c.strScale=function(t){return 1!==t?&quot;scale(&quot;+t+&quot;)&quot;:&quot;&quot;},c.getTextTransform=function(t){var e=t.noCenter,r=t.textX,n=t.textY,i=t.targetX,a=t.targetY,o=t.anchorX||0,s=t.anchorY||0,l=t.rotate,u=t.scale;return u?u&gt;1&amp;&amp;(u=1):u=0,c.strTranslate(i-u*(r+o),a-u*(n+s))+c.strScale(u)+(l?&quot;rotate(&quot;+l+(e?&quot;&quot;:&quot; &quot;+r+&quot; &quot;+n)+&quot;)&quot;:&quot;&quot;)},c.ensureUniformFontSize=function(t,e){var r=c.extendFlat({},e);return r.size=Math.max(e.size,t._fullLayout.uniformtext.minsize||0),r},c.join2=function(t,e,r){var n=t.length;return n&gt;1?t.slice(0,-1).join(e)+r+t[n-1]:t.join(e)}},{&quot;../constants/numerical&quot;:753,&quot;./anchor_utils&quot;:758,&quot;./angles&quot;:759,&quot;./array&quot;:760,&quot;./clean_number&quot;:761,&quot;./clear_responsive&quot;:763,&quot;./coerce&quot;:764,&quot;./dates&quot;:765,&quot;./dom&quot;:766,&quot;./extend&quot;:768,&quot;./filter_unique&quot;:769,&quot;./filter_visible&quot;:770,&quot;./geometry2d&quot;:773,&quot;./identity&quot;:776,&quot;./increment&quot;:777,&quot;./is_plain_object&quot;:779,&quot;./keyed_container&quot;:780,&quot;./localize&quot;:781,&quot;./loggers&quot;:782,&quot;./make_trace_groups&quot;:783,&quot;./matrix&quot;:784,&quot;./mod&quot;:785,&quot;./nested_property&quot;:786,&quot;./noop&quot;:787,&quot;./notifier&quot;:788,&quot;./preserve_drawing_buffer&quot;:792,&quot;./push_unique&quot;:793,&quot;./regex&quot;:795,&quot;./relative_attr&quot;:796,&quot;./relink_private&quot;:797,&quot;./search&quot;:798,&quot;./stats&quot;:801,&quot;./throttle&quot;:804,&quot;./to_log_range&quot;:805,d3:169,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],779:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return window&amp;&amp;window.process&amp;&amp;window.process.versions?&quot;[object Object]&quot;===Object.prototype.toString.call(t):&quot;[object Object]&quot;===Object.prototype.toString.call(t)&amp;&amp;Object.getPrototypeOf(t)===Object.prototype}},{}],780:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./nested_property&quot;),i=/^\w*$/;e.exports=function(t,e,r,a){var o,s,l;r=r||&quot;name&quot;,a=a||&quot;value&quot;;var c={};e&amp;&amp;e.length?(l=n(t,e),s=l.get()):s=t,e=e||&quot;&quot;;var u={};if(s)for(o=0;o&lt;s.length;o++)u[s[o][r]]=o;var f=i.test(a),h={set:function(t,e){var i=null===e?4:0;if(!s){if(!l||4===i)return;s=[],l.set(s)}var o=u[t];if(void 0===o){if(4===i)return;i|=3,o=s.length,u[t]=o}else e!==(f?s[o][a]:n(s[o],a).get())&amp;&amp;(i|=2);var p=s[o]=s[o]||{};return p[r]=t,f?p[a]=e:n(p,a).set(e),null!==e&amp;&amp;(i&amp;=-5),c[o]=c[o]|i,h},get:function(t){if(s){var e=u[t];return void 0===e?void 0:f?s[e][a]:n(s[e],a).get()}},rename:function(t,e){var n=u[t];return void 0===n||(c[n]=1|c[n],u[e]=n,delete u[t],s[n][r]=e),h},remove:function(t){var e=u[t];if(void 0===e)return h;var i=s[e];if(Object.keys(i).length&gt;2)return c[e]=2|c[e],h.set(t,null);if(f){for(o=e;o&lt;s.length;o++)c[o]=3|c[o];for(o=e;o&lt;s.length;o++)u[s[o][r]]--;s.splice(e,1),delete u[t]}else n(i,a).set(null),c[e]=6|c[e];return h},constructUpdate:function(){for(var t,i,o={},l=Object.keys(c),u=0;u&lt;l.length;u++)i=l[u],t=e+&quot;[&quot;+i+&quot;]&quot;,s[i]?(1&amp;c[i]&amp;&amp;(o[t+&quot;.&quot;+r]=s[i][r]),2&amp;c[i]&amp;&amp;(o[t+&quot;.&quot;+a]=f?4&amp;c[i]?null:s[i][a]:4&amp;c[i]?null:n(s[i],a).get())):o[t]=null;return o}};return h}},{&quot;./nested_property&quot;:786}],781:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);e.exports=function(t,e){for(var r=t._context.locale,i=0;i&lt;2;i++){for(var a=t._context.locales,o=0;o&lt;2;o++){var s=(a[r]||{}).dictionary;if(s){var l=s[e];if(l)return l}a=n.localeRegistry}var c=r.split(&quot;-&quot;)[0];if(c===r)break;r=c}return e}},{&quot;../registry&quot;:911}],782:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../plot_api/plot_config&quot;).dfltConfig,i=t(&quot;./notifier&quot;),a=e.exports={};function o(t,e){if(t&amp;&amp;t.apply)try{return void t.apply(console,e)}catch(t){}for(var r=0;r&lt;e.length;r++)try{t(e[r])}catch(t){console.log(e[r])}}a.log=function(){var t;if(n.logging&gt;1){var e=[&quot;LOG:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);o(console.trace||console.log,e)}if(n.notifyOnLogging&gt;1){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;long&quot;)}},a.warn=function(){var t;if(n.logging&gt;0){var e=[&quot;WARN:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);o(console.trace||console.log,e)}if(n.notifyOnLogging&gt;0){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;stick&quot;)}},a.error=function(){var t;if(n.logging&gt;0){var e=[&quot;ERROR:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);o(console.error,e)}if(n.notifyOnLogging&gt;0){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;stick&quot;)}}},{&quot;../plot_api/plot_config&quot;:815,&quot;./notifier&quot;:788}],783:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t,e,r){var i=t.selectAll(&quot;g.&quot;+r.replace(/\s/g,&quot;.&quot;)).data(e,(function(t){return t[0].trace.uid}));i.exit().remove(),i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,r),i.order();var a=t.classed(&quot;rangeplot&quot;)?&quot;nodeRangePlot3&quot;:&quot;node3&quot;;return i.each((function(t){t[0][a]=n.select(this)})),i}},{d3:169}],784:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mat4&quot;);r.init2dArray=function(t,e){for(var r=new Array(t),n=0;n&lt;t;n++)r[n]=new Array(e);return r},r.transposeRagged=function(t){var e,r,n=0,i=t.length;for(e=0;e&lt;i;e++)n=Math.max(n,t[e].length);var a=new Array(n);for(e=0;e&lt;n;e++)for(a[e]=new Array(i),r=0;r&lt;i;r++)a[e][r]=t[r][e];return a},r.dot=function(t,e){if(!t.length||!e.length||t.length!==e.length)return null;var n,i,a=t.length;if(t[0].length)for(n=new Array(a),i=0;i&lt;a;i++)n[i]=r.dot(t[i],e);else if(e[0].length){var o=r.transposeRagged(e);for(n=new Array(o.length),i=0;i&lt;o.length;i++)n[i]=r.dot(t,o[i])}else for(n=0,i=0;i&lt;a;i++)n+=t[i]*e[i];return n},r.translationMatrix=function(t,e){return[[1,0,t],[0,1,e],[0,0,1]]},r.rotationMatrix=function(t){var e=t*Math.PI/180;return[[Math.cos(e),-Math.sin(e),0],[Math.sin(e),Math.cos(e),0],[0,0,1]]},r.rotationXYMatrix=function(t,e,n){return r.dot(r.dot(r.translationMatrix(e,n),r.rotationMatrix(t)),r.translationMatrix(-e,-n))},r.apply3DTransform=function(t){return function(){var e=arguments,n=1===arguments.length?e[0]:[e[0],e[1],e[2]||0];return r.dot(t,[n[0],n[1],n[2],1]).slice(0,3)}},r.apply2DTransform=function(t){return function(){var e=arguments;3===e.length&amp;&amp;(e=e[0]);var n=1===arguments.length?e[0]:[e[0],e[1]];return r.dot(t,[n[0],n[1],1]).slice(0,2)}},r.apply2DTransform2=function(t){var e=r.apply2DTransform(t);return function(t){return e(t.slice(0,2)).concat(e(t.slice(2,4)))}},r.convertCssMatrix=function(t){if(t){var e=t.length;if(16===e)return t;if(6===e)return[t[0],t[1],0,0,t[2],t[3],0,0,0,0,1,0,t[4],t[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},r.inverseTransformMatrix=function(t){var e=[];return n.invert(e,t),[[e[0],e[1],e[2],e[3]],[e[4],e[5],e[6],e[7]],[e[8],e[9],e[10],e[11]],[e[12],e[13],e[14],e[15]]]}},{&quot;gl-mat4&quot;:292}],785:[function(t,e,r){&quot;use strict&quot;;e.exports={mod:function(t,e){var r=t%e;return r&lt;0?r+e:r},modHalf:function(t,e){return Math.abs(t)&gt;e/2?t-Math.round(t/e)*e:t}}},{}],786:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./array&quot;).isArrayOrTypedArray;function a(t,e){return function(){var r,n,o,s,l,c=t;for(s=0;s&lt;e.length-1;s++){if(-1===(r=e[s])){for(n=!0,o=[],l=0;l&lt;c.length;l++)o[l]=a(c[l],e.slice(s+1))(),o[l]!==o[0]&amp;&amp;(n=!1);return n?o[0]:o}if(&quot;number&quot;==typeof r&amp;&amp;!i(c))return;if(&quot;object&quot;!=typeof(c=c[r])||null===c)return}if(&quot;object&quot;==typeof c&amp;&amp;null!==c&amp;&amp;null!==(o=c[e[s]]))return o}}e.exports=function(t,e){if(n(e))e=String(e);else if(&quot;string&quot;!=typeof e||&quot;[-1]&quot;===e.substr(e.length-4))throw&quot;bad property string&quot;;for(var r,i,o,s=0,c=e.split(&quot;.&quot;);s&lt;c.length;){if(r=String(c[s]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(r[1])c[s]=r[1];else{if(0!==s)throw&quot;bad property string&quot;;c.splice(0,1)}for(i=r[2].substr(1,r[2].length-2).split(&quot;][&quot;),o=0;o&lt;i.length;o++)s++,c.splice(s,0,Number(i[o]))}s++}return&quot;object&quot;!=typeof t?function(t,e,r){return{set:function(){throw&quot;bad container&quot;},get:function(){},astr:e,parts:r,obj:t}}(t,e,c):{set:l(t,c,e),get:a(t,c),astr:e,parts:c,obj:t}};var o=/(^|\.)args\[/;function s(t,e){return void 0===t||null===t&amp;&amp;!e.match(o)}function l(t,e,r){return function(n){var a,o,l=t,h=&quot;&quot;,p=[[t,h]],d=s(n,r);for(o=0;o&lt;e.length-1;o++){if(&quot;number&quot;==typeof(a=e[o])&amp;&amp;!i(l))throw&quot;array index but container is not an array&quot;;if(-1===a){if(d=!u(l,e.slice(o+1),n,r))break;return}if(!f(l,a,e[o+1],d))break;if(&quot;object&quot;!=typeof(l=l[a])||null===l)throw&quot;container is not an object&quot;;h=c(h,a),p.push([l,h])}if(d){if(o===e.length-1&amp;&amp;(delete l[e[o]],Array.isArray(l)&amp;&amp;+e[o]==l.length-1))for(;l.length&amp;&amp;void 0===l[l.length-1];)l.pop()}else l[e[o]]=n}}function c(t,e){var r=e;return n(e)?r=&quot;[&quot;+e+&quot;]&quot;:t&amp;&amp;(r=&quot;.&quot;+e),t+r}function u(t,e,r,n){var a,o=i(r),c=!0,u=r,h=n.replace(&quot;-1&quot;,0),p=!o&amp;&amp;s(r,h),d=e[0];for(a=0;a&lt;t.length;a++)h=n.replace(&quot;-1&quot;,a),o&amp;&amp;(p=s(u=r[a%r.length],h)),p&amp;&amp;(c=!1),f(t,a,d,p)&amp;&amp;l(t[a],e,n.replace(&quot;-1&quot;,a))(u);return c}function f(t,e,r,n){if(void 0===t[e]){if(n)return!1;t[e]=&quot;number&quot;==typeof r?[]:{}}return!0}},{&quot;./array&quot;:760,&quot;fast-isnumeric&quot;:241}],787:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){}},{}],788:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=[];e.exports=function(t,e){if(-1===a.indexOf(t)){a.push(t);var r=1e3;i(e)?r=e:&quot;long&quot;===e&amp;&amp;(r=3e3);var o=n.select(&quot;body&quot;).selectAll(&quot;.plotly-notifier&quot;).data([0]);o.enter().append(&quot;div&quot;).classed(&quot;plotly-notifier&quot;,!0),o.selectAll(&quot;.notifier-note&quot;).data(a).enter().append(&quot;div&quot;).classed(&quot;notifier-note&quot;,!0).style(&quot;opacity&quot;,0).each((function(t){var i=n.select(this);i.append(&quot;button&quot;).classed(&quot;notifier-close&quot;,!0).html(&quot;&amp;times;&quot;).on(&quot;click&quot;,(function(){i.transition().call(s)}));for(var a=i.append(&quot;p&quot;),o=t.split(/&lt;br\s*\/?&gt;/g),l=0;l&lt;o.length;l++)l&amp;&amp;a.append(&quot;br&quot;),a.append(&quot;span&quot;).text(o[l]);&quot;stick&quot;===e?i.transition().duration(350).style(&quot;opacity&quot;,1):i.transition().duration(700).style(&quot;opacity&quot;,1).transition().delay(r).call(s)}))}function s(t){t.duration(700).style(&quot;opacity&quot;,0).each(&quot;end&quot;,(function(t){var e=a.indexOf(t);-1!==e&amp;&amp;a.splice(e,1),n.select(this).remove()}))}}},{d3:169,&quot;fast-isnumeric&quot;:241}],789:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./setcursor&quot;),i=&quot;data-savedcursor&quot;;e.exports=function(t,e){var r=t.attr(i);if(e){if(!r){for(var a=(t.attr(&quot;class&quot;)||&quot;&quot;).split(&quot; &quot;),o=0;o&lt;a.length;o++){var s=a[o];0===s.indexOf(&quot;cursor-&quot;)&amp;&amp;t.attr(i,s.substr(7)).classed(s,!1)}t.attr(i)||t.attr(i,&quot;!!&quot;)}n(t,e)}else r&amp;&amp;(t.attr(i,null),&quot;!!&quot;===r?n(t):n(t,r))}},{&quot;./setcursor&quot;:799}],790:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./matrix&quot;).dot,i=t(&quot;../constants/numerical&quot;).BADNUM,a=e.exports={};a.tester=function(t){var e,r=t.slice(),n=r[0][0],a=n,o=r[0][1],s=o;for(r.push(r[0]),e=1;e&lt;r.length;e++)n=Math.min(n,r[e][0]),a=Math.max(a,r[e][0]),o=Math.min(o,r[e][1]),s=Math.max(s,r[e][1]);var l,c=!1;5===r.length&amp;&amp;(r[0][0]===r[1][0]?r[2][0]===r[3][0]&amp;&amp;r[0][1]===r[3][1]&amp;&amp;r[1][1]===r[2][1]&amp;&amp;(c=!0,l=function(t){return t[0]===r[0][0]}):r[0][1]===r[1][1]&amp;&amp;r[2][1]===r[3][1]&amp;&amp;r[0][0]===r[3][0]&amp;&amp;r[1][0]===r[2][0]&amp;&amp;(c=!0,l=function(t){return t[1]===r[0][1]}));var u=!0,f=r[0];for(e=1;e&lt;r.length;e++)if(f[0]!==r[e][0]||f[1]!==r[e][1]){u=!1;break}return{xmin:n,xmax:a,ymin:o,ymax:s,pts:r,contains:c?function(t,e){var r=t[0],c=t[1];return!(r===i||r&lt;n||r&gt;a||c===i||c&lt;o||c&gt;s)&amp;&amp;(!e||!l(t))}:function(t,e){var l=t[0],c=t[1];if(l===i||l&lt;n||l&gt;a||c===i||c&lt;o||c&gt;s)return!1;var u,f,h,p,d,g=r.length,m=r[0][0],v=r[0][1],y=0;for(u=1;u&lt;g;u++)if(f=m,h=v,m=r[u][0],v=r[u][1],!(l&lt;(p=Math.min(f,m))||l&gt;Math.max(f,m)||c&gt;Math.max(h,v)))if(c&lt;Math.min(h,v))l!==p&amp;&amp;y++;else{if(c===(d=m===f?c:h+(l-f)*(v-h)/(m-f)))return 1!==u||!e;c&lt;=d&amp;&amp;l!==p&amp;&amp;y++}return y%2==1},isRect:c,degenerate:u}},a.isSegmentBent=function(t,e,r,i){var a,o,s,l=t[e],c=[t[r][0]-l[0],t[r][1]-l[1]],u=n(c,c),f=Math.sqrt(u),h=[-c[1]/f,c[0]/f];for(a=e+1;a&lt;r;a++)if(o=[t[a][0]-l[0],t[a][1]-l[1]],(s=n(o,c))&lt;0||s&gt;u||Math.abs(n(o,h))&gt;i)return!0;return!1},a.filter=function(t,e){var r=[t[0]],n=0,i=0;function o(o){t.push(o);var s=r.length,l=n;r.splice(i+1);for(var c=l+1;c&lt;t.length;c++)(c===t.length-1||a.isSegmentBent(t,l,c+1,e))&amp;&amp;(r.push(t[c]),r.length&lt;s-2&amp;&amp;(n=c,i=r.length-1),l=c)}t.length&gt;1&amp;&amp;o(t.pop());return{addPt:o,raw:t,filtered:r}}},{&quot;../constants/numerical&quot;:753,&quot;./matrix&quot;:784}],791:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;./show_no_webgl_msg&quot;),i=t(&quot;regl&quot;);e.exports=function(t,e){var a=t._fullLayout,o=!0;return a._glcanvas.each((function(n){if(!n.regl&amp;&amp;(!n.pick||a._has(&quot;parcoords&quot;))){try{n.regl=i({canvas:this,attributes:{antialias:!n.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||r.devicePixelRatio,extensions:e||[]})}catch(t){o=!1}n.regl||(o=!1),o&amp;&amp;this.addEventListener(&quot;webglcontextlost&quot;,(function(e){t&amp;&amp;t.emit&amp;&amp;t.emit(&quot;plotly_webglcontextlost&quot;,{event:e,layer:n.key})}),!1)}})),o||n({container:a._glcontainer.node()}),o}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;./show_no_webgl_msg&quot;:800,regl:540}],792:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;is-mobile&quot;);e.exports=function(t){var e;if(&quot;string&quot;!=typeof(e=t&amp;&amp;t.hasOwnProperty(&quot;userAgent&quot;)?t.userAgent:function(){var t;&quot;undefined&quot;!=typeof navigator&amp;&amp;(t=navigator.userAgent);t&amp;&amp;t.headers&amp;&amp;&quot;string&quot;==typeof t.headers[&quot;user-agent&quot;]&amp;&amp;(t=t.headers[&quot;user-agent&quot;]);return t}()))return!0;var r=i({ua:{headers:{&quot;user-agent&quot;:e}},tablet:!0,featureDetect:!1});if(!r)for(var a=e.split(&quot; &quot;),o=1;o&lt;a.length;o++){if(-1!==a[o].indexOf(&quot;Safari&quot;))for(var s=o-1;s&gt;-1;s--){var l=a[s];if(&quot;Version/&quot;===l.substr(0,8)){var c=l.substr(8).split(&quot;.&quot;)[0];if(n(c)&amp;&amp;(c=+c),c&gt;=13)return!0}}}return r}},{&quot;fast-isnumeric&quot;:241,&quot;is-mobile&quot;:467}],793:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(e instanceof RegExp){for(var r=e.toString(),n=0;n&lt;t.length;n++)if(t[n]instanceof RegExp&amp;&amp;t[n].toString()===r)return t;t.push(e)}else!e&amp;&amp;0!==e||-1!==t.indexOf(e)||t.push(e);return t}},{}],794:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_config&quot;).dfltConfig;var a={add:function(t,e,r,n,a){var o,s;t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},s=t.undoQueue.index,t.autoplay?t.undoQueue.inSequence||(t.autoplay=!1):(!t.undoQueue.sequence||t.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},t.undoQueue.queue.splice(s,t.undoQueue.queue.length-s,o),t.undoQueue.index+=1):o=t.undoQueue.queue[s-1],t.undoQueue.beginSequence=!1,o&amp;&amp;(o.undo.calls.unshift(e),o.undo.args.unshift(r),o.redo.calls.push(n),o.redo.args.push(a)),t.undoQueue.queue.length&gt;i.queueLength&amp;&amp;(t.undoQueue.queue.shift(),t.undoQueue.index--))},startSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!0,t.undoQueue.beginSequence=!0},stopSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!1,t.undoQueue.beginSequence=!1},undo:function(t){var e,r;if(t.framework&amp;&amp;t.framework.isPolar)t.framework.undo();else if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index&lt;=0)){for(t.undoQueue.index--,e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r&lt;e.undo.calls.length;r++)a.plotDo(t,e.undo.calls[r],e.undo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1}},redo:function(t){var e,r;if(t.framework&amp;&amp;t.framework.isPolar)t.framework.redo();else if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index&gt;=t.undoQueue.queue.length)){for(e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r&lt;e.redo.calls.length;r++)a.plotDo(t,e.redo.calls[r],e.redo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1,t.undoQueue.index++}}};a.plotDo=function(t,e,r){t.autoplay=!0,r=function(t,e){for(var r,i=[],a=0;a&lt;e.length;a++)r=e[a],i[a]=r===t?r:&quot;object&quot;==typeof r?Array.isArray(r)?n.extendDeep([],r):n.extendDeepAll({},r):r;return i}(t,r),e.apply(null,r)},e.exports=a},{&quot;../lib&quot;:778,&quot;../plot_api/plot_config&quot;:815}],795:[function(t,e,r){&quot;use strict&quot;;r.counter=function(t,e,r,n){var i=(e||&quot;&quot;)+(r?&quot;&quot;:&quot;$&quot;),a=!1===n?&quot;&quot;:&quot;^&quot;;return&quot;xy&quot;===t?new RegExp(a+&quot;x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?&quot;+i):new RegExp(a+t+&quot;([2-9]|[1-9][0-9]+)?&quot;+i)}},{}],796:[function(t,e,r){&quot;use strict&quot;;var n=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,i=/^[^\.\[\]]+$/;e.exports=function(t,e){for(;e;){var r=t.match(n);if(r)t=r[1];else{if(!t.match(i))throw new Error(&quot;bad relativeAttr call:&quot;+[t,e]);t=&quot;&quot;}if(&quot;^&quot;!==e.charAt(0))break;e=e.slice(1)}return t&amp;&amp;&quot;[&quot;!==e.charAt(0)?t+&quot;.&quot;+e:t+e}},{}],797:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./array&quot;).isArrayOrTypedArray,i=t(&quot;./is_plain_object&quot;);e.exports=function t(e,r){for(var a in r){var o=r[a],s=e[a];if(s!==o)if(&quot;_&quot;===a.charAt(0)||&quot;function&quot;==typeof o){if(a in e)continue;e[a]=o}else if(n(o)&amp;&amp;n(s)&amp;&amp;i(o[0])){if(&quot;customdata&quot;===a||&quot;ids&quot;===a)continue;for(var l=Math.min(o.length,s.length),c=0;c&lt;l;c++)s[c]!==o[c]&amp;&amp;i(o[c])&amp;&amp;i(s[c])&amp;&amp;t(s[c],o[c])}else i(o)&amp;&amp;i(s)&amp;&amp;(t(s,o),Object.keys(s).length||delete e[a])}}},{&quot;./array&quot;:760,&quot;./is_plain_object&quot;:779}],798:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./loggers&quot;),a=t(&quot;./identity&quot;),o=t(&quot;../constants/numerical&quot;).BADNUM;function s(t,e){return t&lt;e}function l(t,e){return t&lt;=e}function c(t,e){return t&gt;e}function u(t,e){return t&gt;=e}r.findBin=function(t,e,r){if(n(e.start))return r?Math.ceil((t-e.start)/e.size-1e-9)-1:Math.floor((t-e.start)/e.size+1e-9);var a,o,f=0,h=e.length,p=0,d=h&gt;1?(e[h-1]-e[0])/(h-1):1;for(o=d&gt;=0?r?s:l:r?u:c,t+=1e-9*d*(r?-1:1)*(d&gt;=0?1:-1);f&lt;h&amp;&amp;p++&lt;100;)o(e[a=Math.floor((f+h)/2)],t)?f=a+1:h=a;return p&gt;90&amp;&amp;i.log(&quot;Long binary search...&quot;),f-1},r.sorterAsc=function(t,e){return t-e},r.sorterDes=function(t,e){return e-t},r.distinctVals=function(t,e){var n,i=(e||{}).unitMinDiff,a=t.slice();for(a.sort(r.sorterAsc),n=a.length-1;n&gt;-1&amp;&amp;a[n]===o;n--);var s=1;i||(s=a[n]-a[0]||1);for(var l,c=s/(n||1)/1e4,u=[],f=0;f&lt;=n;f++){var h=a[f],p=h-l;void 0===l?(u.push(h),l=h):p&gt;c&amp;&amp;(s=Math.min(s,p),u.push(h),l=h)}return{vals:u,minDiff:s}},r.roundUp=function(t,e,r){for(var n,i=0,a=e.length-1,o=0,s=r?0:1,l=r?1:0,c=r?Math.ceil:Math.floor;i&lt;a&amp;&amp;o++&lt;100;)e[n=c((i+a)/2)]&lt;=t?i=n+s:a=n-l;return e[i]},r.sort=function(t,e){for(var r=0,n=0,i=1;i&lt;t.length;i++){var a=e(t[i],t[i-1]);if(a&lt;0?r=1:a&gt;0&amp;&amp;(n=1),r&amp;&amp;n)return t.sort(e)}return n?t:t.reverse()},r.findIndexOfMin=function(t,e){e=e||a;for(var r,n=1/0,i=0;i&lt;t.length;i++){var o=e(t[i]);o&lt;n&amp;&amp;(n=o,r=i)}return r}},{&quot;../constants/numerical&quot;:753,&quot;./identity&quot;:776,&quot;./loggers&quot;:782,&quot;fast-isnumeric&quot;:241}],799:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){(t.attr(&quot;class&quot;)||&quot;&quot;).split(&quot; &quot;).forEach((function(e){0===e.indexOf(&quot;cursor-&quot;)&amp;&amp;t.classed(e,!1)})),e&amp;&amp;t.classed(&quot;cursor-&quot;+e,!0)}},{}],800:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../components/color&quot;),i=function(){};e.exports=function(t){for(var e in t)&quot;function&quot;==typeof t[e]&amp;&amp;(t[e]=i);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var r=document.createElement(&quot;div&quot;);r.className=&quot;no-webgl&quot;,r.style.cursor=&quot;pointer&quot;,r.style.fontSize=&quot;24px&quot;,r.style.color=n.defaults[0],r.style.position=&quot;absolute&quot;,r.style.left=r.style.top=&quot;0px&quot;,r.style.width=r.style.height=&quot;100%&quot;,r.style[&quot;background-color&quot;]=n.lightLine,r.style[&quot;z-index&quot;]=30;var a=document.createElement(&quot;p&quot;);return a.textContent=&quot;WebGL is not supported by your browser - visit https://get.webgl.org for more info&quot;,a.style.position=&quot;relative&quot;,a.style.top=&quot;50%&quot;,a.style.left=&quot;50%&quot;,a.style.height=&quot;30%&quot;,a.style.width=&quot;50%&quot;,a.style.margin=&quot;-15% 0 0 -25%&quot;,r.appendChild(a),t.container.appendChild(r),t.container.style.background=&quot;#FFFFFF&quot;,t.container.onclick=function(){window.open(&quot;https://get.webgl.org&quot;)},!1}},{&quot;../components/color&quot;:643}],801:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./array&quot;).isArrayOrTypedArray;r.aggNums=function(t,e,a,o){var s,l;if((!o||o&gt;a.length)&amp;&amp;(o=a.length),n(e)||(e=!1),i(a[0])){for(l=new Array(o),s=0;s&lt;o;s++)l[s]=r.aggNums(t,e,a[s]);a=l}for(s=0;s&lt;o;s++)n(e)?n(a[s])&amp;&amp;(e=t(+e,+a[s])):e=a[s];return e},r.len=function(t){return r.aggNums((function(t){return t+1}),0,t)},r.mean=function(t,e){return e||(e=r.len(t)),r.aggNums((function(t,e){return t+e}),0,t)/e},r.midRange=function(t){if(void 0!==t&amp;&amp;0!==t.length)return(r.aggNums(Math.max,null,t)+r.aggNums(Math.min,null,t))/2},r.variance=function(t,e,i){return e||(e=r.len(t)),n(i)||(i=r.mean(t,e)),r.aggNums((function(t,e){return t+Math.pow(e-i,2)}),0,t)/e},r.stdev=function(t,e,n){return Math.sqrt(r.variance(t,e,n))},r.median=function(t){var e=t.slice().sort();return r.interp(e,.5)},r.interp=function(t,e){if(!n(e))throw&quot;n should be a finite number&quot;;if((e=e*t.length-.5)&lt;0)return t[0];if(e&gt;t.length-1)return t[t.length-1];var r=e%1;return r*t[Math.ceil(e)]+(1-r)*t[Math.floor(e)]}},{&quot;./array&quot;:760,&quot;fast-isnumeric&quot;:241}],802:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-normalize&quot;);e.exports=function(t){return t?n(t):[0,0,0,1]}},{&quot;color-normalize&quot;:125}],803:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../lib&quot;),a=i.strTranslate,o=t(&quot;../constants/xmlns_namespaces&quot;),s=t(&quot;../constants/alignment&quot;).LINE_SPACING;function l(t,e){return t.node().getBoundingClientRect()[e]}var c=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;r.convertToTspans=function(t,e,A){var S=t.text(),C=!t.attr(&quot;data-notex&quot;)&amp;&amp;&quot;undefined&quot;!=typeof MathJax&amp;&amp;S.match(c),L=n.select(t.node().parentNode);if(!L.empty()){var I=t.attr(&quot;class&quot;)?t.attr(&quot;class&quot;).split(&quot; &quot;)[0]:&quot;text&quot;;return I+=&quot;-math&quot;,L.selectAll(&quot;svg.&quot;+I).remove(),L.selectAll(&quot;g.&quot;+I+&quot;-group&quot;).remove(),t.style(&quot;display&quot;,null).attr({&quot;data-unformatted&quot;:S,&quot;data-math&quot;:&quot;N&quot;}),C?(e&amp;&amp;e._promises||[]).push(new Promise((function(e){t.style(&quot;display&quot;,&quot;none&quot;);var r=parseInt(t.node().style.fontSize,10),o={fontSize:r};!function(t,e,r){var a,o,s,l;MathJax.Hub.Queue((function(){return o=i.extendDeepAll({},MathJax.Hub.config),s=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&amp;&amp;(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:&quot;none&quot;,tex2jax:{inlineMath:[[&quot;$&quot;,&quot;$&quot;],[&quot;\\(&quot;,&quot;\\)&quot;]]},displayAlign:&quot;left&quot;})}),(function(){if(&quot;SVG&quot;!==(a=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer(&quot;SVG&quot;)}),(function(){var r=&quot;math-output-&quot;+i.randstr({},64);return l=n.select(&quot;body&quot;).append(&quot;div&quot;).attr({id:r}).style({visibility:&quot;hidden&quot;,position:&quot;absolute&quot;}).style({&quot;font-size&quot;:e.fontSize+&quot;px&quot;}).text(t.replace(u,&quot;\\lt &quot;).replace(f,&quot;\\gt &quot;)),MathJax.Hub.Typeset(l.node())}),(function(){var e=n.select(&quot;body&quot;).select(&quot;#MathJax_SVG_glyphs&quot;);if(l.select(&quot;.MathJax_SVG&quot;).empty()||!l.select(&quot;svg&quot;).node())i.log(&quot;There was an error in the tex syntax.&quot;,t),r();else{var o=l.select(&quot;svg&quot;).node().getBoundingClientRect();r(l.select(&quot;.MathJax_SVG&quot;),e,o)}if(l.remove(),&quot;SVG&quot;!==a)return MathJax.Hub.setRenderer(a)}),(function(){return void 0!==s&amp;&amp;(MathJax.Hub.processSectionDelay=s),MathJax.Hub.Config(o)}))}(C[2],o,(function(n,i,o){L.selectAll(&quot;svg.&quot;+I).remove(),L.selectAll(&quot;g.&quot;+I+&quot;-group&quot;).remove();var s=n&amp;&amp;n.select(&quot;svg&quot;);if(!s||!s.node())return P(),void e();var c=L.append(&quot;g&quot;).classed(I+&quot;-group&quot;,!0).attr({&quot;pointer-events&quot;:&quot;none&quot;,&quot;data-unformatted&quot;:S,&quot;data-math&quot;:&quot;Y&quot;});c.node().appendChild(s.node()),i&amp;&amp;i.node()&amp;&amp;s.node().insertBefore(i.node().cloneNode(!0),s.node().firstChild),s.attr({class:I,height:o.height,preserveAspectRatio:&quot;xMinYMin meet&quot;}).style({overflow:&quot;visible&quot;,&quot;pointer-events&quot;:&quot;none&quot;});var u=t.node().style.fill||&quot;black&quot;,f=s.select(&quot;g&quot;);f.attr({fill:u,stroke:u});var h=l(f,&quot;width&quot;),p=l(f,&quot;height&quot;),d=+t.attr(&quot;x&quot;)-h*{start:0,middle:.5,end:1}[t.attr(&quot;text-anchor&quot;)||&quot;start&quot;],g=-(r||l(t,&quot;height&quot;))/4;&quot;y&quot;===I[0]?(c.attr({transform:&quot;rotate(&quot;+[-90,+t.attr(&quot;x&quot;),+t.attr(&quot;y&quot;)]+&quot;)&quot;+a(-h/2,g-p/2)}),s.attr({x:+t.attr(&quot;x&quot;),y:+t.attr(&quot;y&quot;)})):&quot;l&quot;===I[0]?s.attr({x:t.attr(&quot;x&quot;),y:g-p/2}):&quot;a&quot;===I[0]&amp;&amp;0!==I.indexOf(&quot;atitle&quot;)?s.attr({x:0,y:g}):s.attr({x:d,y:+t.attr(&quot;y&quot;)+g-p/2}),A&amp;&amp;A.call(t,c),e(c)}))}))):P(),t}function P(){L.empty()||(I=t.attr(&quot;class&quot;)+&quot;-math&quot;,L.select(&quot;svg.&quot;+I).remove()),t.text(&quot;&quot;).style(&quot;white-space&quot;,&quot;pre&quot;),function(t,e){e=e.replace(m,&quot; &quot;);var r,a=!1,l=[],c=-1;function u(){c++;var e=document.createElementNS(o.svg,&quot;tspan&quot;);n.select(e).attr({class:&quot;line&quot;,dy:c*s+&quot;em&quot;}),t.appendChild(e),r=e;var i=l;if(l=[{node:e}],i.length&gt;1)for(var a=1;a&lt;i.length;a++)f(i[a])}function f(t){var e,i=t.type,a={};if(&quot;a&quot;===i){e=&quot;a&quot;;var s=t.target,c=t.href,u=t.popup;c&amp;&amp;(a={&quot;xlink:xlink:show&quot;:&quot;_blank&quot;===s||&quot;_&quot;!==s.charAt(0)?&quot;new&quot;:&quot;replace&quot;,target:s,&quot;xlink:xlink:href&quot;:c},u&amp;&amp;(a.onclick='window.open(this.href.baseVal,this.target.baseVal,&quot;'+u+'&quot;);return false;'))}else e=&quot;tspan&quot;;t.style&amp;&amp;(a.style=t.style);var f=document.createElementNS(o.svg,e);if(&quot;sup&quot;===i||&quot;sub&quot;===i){A(r,&quot;\u200b&quot;),r.appendChild(f);var h=document.createElementNS(o.svg,&quot;tspan&quot;);A(h,&quot;\u200b&quot;),n.select(h).attr(&quot;dy&quot;,d[i]),a.dy=p[i],r.appendChild(f),r.appendChild(h)}else r.appendChild(f);n.select(f).attr(a),r=t.node=f,l.push(t)}function A(t,e){t.appendChild(document.createTextNode(e))}function S(t){if(1!==l.length){var n=l.pop();t!==n.type&amp;&amp;i.log(&quot;Start tag &lt;&quot;+n.type+&quot;&gt; doesnt match end tag &lt;&quot;+t+&quot;&gt;. Pretending it did match.&quot;,e),r=l[l.length-1].node}else i.log(&quot;Ignoring unexpected end tag &lt;/&quot;+t+&quot;&gt;.&quot;,e)}x.test(e)?u():(r=t,l=[{node:t}]);for(var C=e.split(v),L=0;L&lt;C.length;L++){var I=C[L],P=I.match(y),z=P&amp;&amp;P[2].toLowerCase(),O=h[z];if(&quot;br&quot;===z)u();else if(void 0===O)A(r,E(I));else if(P[1])S(z);else{var D=P[4],R={type:z},F=k(D,b);if(F?(F=F.replace(M,&quot;$1 fill:&quot;),O&amp;&amp;(F+=&quot;;&quot;+O)):O&amp;&amp;(F=O),F&amp;&amp;(R.style=F),&quot;a&quot;===z){a=!0;var B=k(D,_);if(B){var N=document.createElement(&quot;a&quot;);N.href=B,-1!==g.indexOf(N.protocol)&amp;&amp;(R.href=encodeURI(decodeURI(B)),R.target=k(D,w)||&quot;_blank&quot;,R.popup=k(D,T))}}f(R)}}return a}(t.node(),S)&amp;&amp;t.style(&quot;pointer-events&quot;,&quot;all&quot;),r.positionText(t),A&amp;&amp;A.call(t)}};var u=/(&lt;|&amp;lt;|&amp;#60;)/g,f=/(&gt;|&amp;gt;|&amp;#62;)/g;var h={sup:&quot;font-size:70%&quot;,sub:&quot;font-size:70%&quot;,b:&quot;font-weight:bold&quot;,i:&quot;font-style:italic&quot;,a:&quot;cursor:pointer&quot;,span:&quot;&quot;,em:&quot;font-style:italic;font-weight:bold&quot;},p={sub:&quot;0.3em&quot;,sup:&quot;-0.6em&quot;},d={sub:&quot;-0.21em&quot;,sup:&quot;0.42em&quot;},g=[&quot;http:&quot;,&quot;https:&quot;,&quot;mailto:&quot;,&quot;&quot;,void 0,&quot;:&quot;],m=r.NEWLINES=/(\r\n?|\n)/g,v=/(&lt;[^&lt;&gt;]*&gt;)/,y=/&lt;(\/?)([^ &gt;]*)(\s+(.*))?&gt;/i,x=/&lt;br(\s+.*)?&gt;/i;r.BR_TAG_ALL=/&lt;br(\s+.*)?&gt;/gi;var b=/(^|[\s&quot;'])style\s*=\s*(&quot;([^&quot;]*);?&quot;|'([^']*);?')/i,_=/(^|[\s&quot;'])href\s*=\s*(&quot;([^&quot;]*)&quot;|'([^']*)')/i,w=/(^|[\s&quot;'])target\s*=\s*(&quot;([^&quot;\s]*)&quot;|'([^'\s]*)')/i,T=/(^|[\s&quot;'])popup\s*=\s*(&quot;([\w=,]*)&quot;|'([\w=,]*)')/i;function k(t,e){if(!t)return null;var r=t.match(e),n=r&amp;&amp;(r[3]||r[4]);return n&amp;&amp;E(n)}var M=/(^|;)\s*color:/;r.plainText=function(t,e){for(var r=void 0!==(e=e||{}).len&amp;&amp;-1!==e.len?e.len:1/0,n=void 0!==e.allowedTags?e.allowedTags:[&quot;br&quot;],i=&quot;...&quot;.length,a=t.split(v),o=[],s=&quot;&quot;,l=0,c=0;c&lt;a.length;c++){var u=a[c],f=u.match(y),h=f&amp;&amp;f[2].toLowerCase();if(h)-1!==n.indexOf(h)&amp;&amp;(o.push(u),s=h);else{var p=u.length;if(l+p&lt;r)o.push(u),l+=p;else if(l&lt;r){var d=r-l;s&amp;&amp;(&quot;br&quot;!==s||d&lt;=i||p&lt;=i)&amp;&amp;o.pop(),r&gt;i?o.push(u.substr(0,d-i)+&quot;...&quot;):o.push(u.substr(0,d));break}s=&quot;&quot;}}return o.join(&quot;&quot;)};var A={mu:&quot;\u03bc&quot;,amp:&quot;&amp;&quot;,lt:&quot;&lt;&quot;,gt:&quot;&gt;&quot;,nbsp:&quot;\xa0&quot;,times:&quot;\xd7&quot;,plusmn:&quot;\xb1&quot;,deg:&quot;\xb0&quot;},S=/&amp;(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function E(t){return t.replace(S,(function(t,e){return(&quot;#&quot;===e.charAt(0)?function(t){if(t&gt;1114111)return;var e=String.fromCodePoint;if(e)return e(t);var r=String.fromCharCode;return t&lt;=65535?r(t):r(55232+(t&gt;&gt;10),t%1024+56320)}(&quot;x&quot;===e.charAt(1)?parseInt(e.substr(2),16):parseInt(e.substr(1),10)):A[e])||t}))}function C(t,e,r){var n,a,o,s=r.horizontalAlign,l=r.verticalAlign||&quot;top&quot;,c=t.node().getBoundingClientRect(),u=e.node().getBoundingClientRect();return a=&quot;bottom&quot;===l?function(){return c.bottom-n.height}:&quot;middle&quot;===l?function(){return c.top+(c.height-n.height)/2}:function(){return c.top},o=&quot;right&quot;===s?function(){return c.right-n.width}:&quot;center&quot;===s?function(){return c.left+(c.width-n.width)/2}:function(){return c.left},function(){n=this.node().getBoundingClientRect();var t=o()-u.left,e=a()-u.top,s=r.gd||{};if(r.gd){s._fullLayout._calcInverseTransform(s);var l=i.apply3DTransform(s._fullLayout._invTransform)(t,e);t=l[0],e=l[1]}return this.style({top:e+&quot;px&quot;,left:t+&quot;px&quot;,&quot;z-index&quot;:1e3}),this}}r.convertEntities=E,r.sanitizeHTML=function(t){t=t.replace(m,&quot; &quot;);for(var e=document.createElement(&quot;p&quot;),r=e,i=[],a=t.split(v),o=0;o&lt;a.length;o++){var s=a[o],l=s.match(y),c=l&amp;&amp;l[2].toLowerCase();if(c in h)if(l[1])i.length&amp;&amp;(r=i.pop());else{var u=l[4],f=k(u,b),p=f?{style:f}:{};if(&quot;a&quot;===c){var d=k(u,_);if(d){var x=document.createElement(&quot;a&quot;);if(x.href=d,-1!==g.indexOf(x.protocol)){p.href=encodeURI(decodeURI(d));var T=k(u,w);T&amp;&amp;(p.target=T)}}}var M=document.createElement(c);r.appendChild(M),n.select(M).attr(p),r=M,i.push(M)}else r.appendChild(document.createTextNode(E(s)))}return e.innerHTML},r.lineCount=function(t){return t.selectAll(&quot;tspan.line&quot;).size()||1},r.positionText=function(t,e,r){return t.each((function(){var t=n.select(this);function i(e,r){return void 0===r?null===(r=t.attr(e))&amp;&amp;(t.attr(e,0),r=0):t.attr(e,r),r}var a=i(&quot;x&quot;,e),o=i(&quot;y&quot;,r);&quot;text&quot;===this.nodeName&amp;&amp;t.selectAll(&quot;tspan.line&quot;).attr({x:a,y:o})}))},r.makeEditable=function(t,e){var r=e.gd,i=e.delegate,a=n.dispatch(&quot;edit&quot;,&quot;input&quot;,&quot;cancel&quot;),o=i||t;if(t.style({&quot;pointer-events&quot;:i?&quot;none&quot;:&quot;all&quot;}),1!==t.size())throw new Error(&quot;boo&quot;);function s(){!function(){var i=n.select(r).select(&quot;.svg-container&quot;),o=i.append(&quot;div&quot;),s=t.node().style,c=parseFloat(s.fontSize||12),u=e.text;void 0===u&amp;&amp;(u=t.attr(&quot;data-unformatted&quot;));o.classed(&quot;plugin-editable editable&quot;,!0).style({position:&quot;absolute&quot;,&quot;font-family&quot;:s.fontFamily||&quot;Arial&quot;,&quot;font-size&quot;:c,color:e.fill||s.fill||&quot;black&quot;,opacity:1,&quot;background-color&quot;:e.background||&quot;transparent&quot;,outline:&quot;#ffffff33 1px solid&quot;,margin:[-c/8+1,0,0,-1].join(&quot;px &quot;)+&quot;px&quot;,padding:&quot;0&quot;,&quot;box-sizing&quot;:&quot;border-box&quot;}).attr({contenteditable:!0}).text(u).call(C(t,i,e)).on(&quot;blur&quot;,(function(){r._editing=!1,t.text(this.textContent).style({opacity:1});var e,i=n.select(this).attr(&quot;class&quot;);(e=i?&quot;.&quot;+i.split(&quot; &quot;)[0]+&quot;-math-group&quot;:&quot;[class*=-math-group]&quot;)&amp;&amp;n.select(t.node().parentNode).select(e).style({opacity:0});var o=this.textContent;n.select(this).transition().duration(0).remove(),n.select(document).on(&quot;mouseup&quot;,null),a.edit.call(t,o)})).on(&quot;focus&quot;,(function(){var t=this;r._editing=!0,n.select(document).on(&quot;mouseup&quot;,(function(){if(n.event.target===t)return!1;document.activeElement===o.node()&amp;&amp;o.node().blur()}))})).on(&quot;keyup&quot;,(function(){27===n.event.which?(r._editing=!1,t.style({opacity:1}),n.select(this).style({opacity:0}).on(&quot;blur&quot;,(function(){return!1})).transition().remove(),a.cancel.call(t,this.textContent)):(a.input.call(t,this.textContent),n.select(this).call(C(t,i,e)))})).on(&quot;keydown&quot;,(function(){13===n.event.which&amp;&amp;this.blur()})).call(l)}(),t.style({opacity:0});var i,s=o.attr(&quot;class&quot;);(i=s?&quot;.&quot;+s.split(&quot; &quot;)[0]+&quot;-math-group&quot;:&quot;[class*=-math-group]&quot;)&amp;&amp;n.select(t.node().parentNode).select(i).style({opacity:0})}function l(t){var e=t.node(),r=document.createRange();r.selectNodeContents(e);var n=window.getSelection();n.removeAllRanges(),n.addRange(r),e.focus()}return e.immediate?s():o.on(&quot;click&quot;,s),n.rebind(t,a,&quot;on&quot;)}},{&quot;../constants/alignment&quot;:745,&quot;../constants/xmlns_namespaces&quot;:754,&quot;../lib&quot;:778,d3:169}],804:[function(t,e,r){&quot;use strict&quot;;var n={};function i(t){t&amp;&amp;null!==t.timer&amp;&amp;(clearTimeout(t.timer),t.timer=null)}r.throttle=function(t,e,r){var a=n[t],o=Date.now();if(!a){for(var s in n)n[s].ts&lt;o-6e4&amp;&amp;delete n[s];a=n[t]={ts:0,timer:null}}function l(){r(),a.ts=Date.now(),a.onDone&amp;&amp;(a.onDone(),a.onDone=null)}i(a),o&gt;a.ts+e?l():a.timer=setTimeout((function(){l(),a.timer=null}),e)},r.done=function(t){var e=n[t];return e&amp;&amp;e.timer?new Promise((function(t){var r=e.onDone;e.onDone=function(){r&amp;&amp;r(),t(),e.onDone=null}})):Promise.resolve()},r.clear=function(t){if(t)i(n[t]),delete n[t];else for(var e in n)r.clear(e)}},{}],805:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports=function(t,e){if(t&gt;0)return Math.log(t)/Math.LN10;var r=Math.log(Math.min(e[0],e[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(e[0],e[1]))/Math.LN10-6),r}},{&quot;fast-isnumeric&quot;:241}],806:[function(t,e,r){&quot;use strict&quot;;var n=e.exports={},i=t(&quot;../plots/geo/constants&quot;).locationmodeToLayer,a=t(&quot;topojson-client&quot;).feature;n.getTopojsonName=function(t){return[t.scope.replace(/ /g,&quot;-&quot;),&quot;_&quot;,t.resolution.toString(),&quot;m&quot;].join(&quot;&quot;)},n.getTopojsonPath=function(t,e){return t+e+&quot;.json&quot;},n.getTopojsonFeatures=function(t,e){var r=i[t.locationmode],n=e.objects[r];return a(e,n).features}},{&quot;../plots/geo/constants&quot;:858,&quot;topojson-client&quot;:579}],807:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;locale&quot;,name:&quot;en-US&quot;,dictionary:{&quot;Click to enter Colorscale title&quot;:&quot;Click to enter Colorscale title&quot;},format:{date:&quot;%m/%d/%Y&quot;}}},{}],808:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;locale&quot;,name:&quot;en&quot;,dictionary:{&quot;Click to enter Colorscale title&quot;:&quot;Click to enter Colourscale title&quot;},format:{days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],periods:[&quot;AM&quot;,&quot;PM&quot;],dateTime:&quot;%a %b %e %X %Y&quot;,date:&quot;%d/%m/%Y&quot;,time:&quot;%H:%M:%S&quot;,decimal:&quot;.&quot;,thousands:&quot;,&quot;,grouping:[3],currency:[&quot;$&quot;,&quot;&quot;],year:&quot;%Y&quot;,month:&quot;%b %Y&quot;,dayMonth:&quot;%b %-d&quot;,dayMonthYear:&quot;%b %-d, %Y&quot;}}},{}],809:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);e.exports=function(t){for(var e,r,i=n.layoutArrayContainers,a=n.layoutArrayRegexes,o=t.split(&quot;[&quot;)[0],s=0;s&lt;a.length;s++)if((r=t.match(a[s]))&amp;&amp;0===r.index){e=r[0];break}if(e||(e=i[i.indexOf(o)]),!e)return!1;var l=t.substr(e.length);return l?!!(r=l.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&amp;&amp;{array:e,index:Number(r[1]),property:r[3]||&quot;&quot;}:{array:e,index:&quot;&quot;,property:&quot;&quot;}}},{&quot;../registry&quot;:911}],810:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=n.extendFlat,a=n.isPlainObject,o={valType:&quot;flaglist&quot;,extras:[&quot;none&quot;],flags:[&quot;calc&quot;,&quot;clearAxisTypes&quot;,&quot;plot&quot;,&quot;style&quot;,&quot;markerSize&quot;,&quot;colorbars&quot;]},s={valType:&quot;flaglist&quot;,extras:[&quot;none&quot;],flags:[&quot;calc&quot;,&quot;plot&quot;,&quot;legend&quot;,&quot;ticks&quot;,&quot;axrange&quot;,&quot;layoutstyle&quot;,&quot;modebar&quot;,&quot;camera&quot;,&quot;arraydraw&quot;,&quot;colorbars&quot;]},l=o.flags.slice().concat([&quot;fullReplot&quot;]),c=s.flags.slice().concat(&quot;layoutReplot&quot;);function u(t){for(var e={},r=0;r&lt;t.length;r++)e[t[r]]=!1;return e}function f(t,e,r){var n=i({},t);for(var o in n){var s=n[o];a(s)&amp;&amp;(n[o]=h(s,e,r,o))}return&quot;from-root&quot;===r&amp;&amp;(n.editType=e),n}function h(t,e,r,n){if(t.valType){var a=i({},t);if(a.editType=e,Array.isArray(t.items)){a.items=new Array(t.items.length);for(var o=0;o&lt;t.items.length;o++)a.items[o]=h(t.items[o],e,&quot;from-root&quot;)}return a}return f(t,e,&quot;_&quot;===n.charAt(0)?&quot;nested&quot;:&quot;from-root&quot;)}e.exports={traces:o,layout:s,traceFlags:function(){return u(l)},layoutFlags:function(){return u(c)},update:function(t,e){var r=e.editType;if(r&amp;&amp;&quot;none&quot;!==r)for(var n=r.split(&quot;+&quot;),i=0;i&lt;n.length;i++)t[n[i]]=!0},overrideAll:f}},{&quot;../lib&quot;:778}],811:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;gl-mat4/fromQuat&quot;),a=t(&quot;../registry&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../plots/plots&quot;),l=t(&quot;../plots/cartesian/axis_ids&quot;),c=t(&quot;../components/color&quot;),u=l.cleanId,f=l.getFromTrace,h=a.traceIs;function p(t,e){var r=t[e],n=e.charAt(0);r&amp;&amp;&quot;paper&quot;!==r&amp;&amp;(t[e]=u(r,n,!0))}function d(t){function e(e,r){var n=t[e],i=t.title&amp;&amp;t.title[r];n&amp;&amp;!i&amp;&amp;(t.title||(t.title={}),t.title[r]=t[e],delete t[e])}t&amp;&amp;(&quot;string&quot;!=typeof t.title&amp;&amp;&quot;number&quot;!=typeof t.title||(t.title={text:t.title}),e(&quot;titlefont&quot;,&quot;font&quot;),e(&quot;titleposition&quot;,&quot;position&quot;),e(&quot;titleside&quot;,&quot;side&quot;),e(&quot;titleoffset&quot;,&quot;offset&quot;))}function g(t){if(!o.isPlainObject(t))return!1;var e=t.name;return delete t.name,delete t.showlegend,(&quot;string&quot;==typeof e||&quot;number&quot;==typeof e)&amp;&amp;String(e)}function m(t,e,r,n){if(r&amp;&amp;!n)return t;if(n&amp;&amp;!r)return e;if(!t.trim())return e;if(!e.trim())return t;var i,a=Math.min(t.length,e.length);for(i=0;i&lt;a&amp;&amp;t.charAt(i)===e.charAt(i);i++);return t.substr(0,i).trim()}function v(t){var e=&quot;middle&quot;,r=&quot;center&quot;;return&quot;string&quot;==typeof t&amp;&amp;(-1!==t.indexOf(&quot;top&quot;)?e=&quot;top&quot;:-1!==t.indexOf(&quot;bottom&quot;)&amp;&amp;(e=&quot;bottom&quot;),-1!==t.indexOf(&quot;left&quot;)?r=&quot;left&quot;:-1!==t.indexOf(&quot;right&quot;)&amp;&amp;(r=&quot;right&quot;)),e+&quot; &quot;+r}function y(t,e){return e in t&amp;&amp;&quot;object&quot;==typeof t[e]&amp;&amp;0===Object.keys(t[e]).length}r.clearPromiseQueue=function(t){Array.isArray(t._promises)&amp;&amp;t._promises.length&gt;0&amp;&amp;o.log(&quot;Clearing previous rejected promises from queue.&quot;),t._promises=[]},r.cleanLayout=function(t){var e,n;t||(t={}),t.xaxis1&amp;&amp;(t.xaxis||(t.xaxis=t.xaxis1),delete t.xaxis1),t.yaxis1&amp;&amp;(t.yaxis||(t.yaxis=t.yaxis1),delete t.yaxis1),t.scene1&amp;&amp;(t.scene||(t.scene=t.scene1),delete t.scene1);var a=(s.subplotsRegistry.cartesian||{}).attrRegex,l=(s.subplotsRegistry.polar||{}).attrRegex,f=(s.subplotsRegistry.ternary||{}).attrRegex,h=(s.subplotsRegistry.gl3d||{}).attrRegex,g=Object.keys(t);for(e=0;e&lt;g.length;e++){var m=g[e];if(a&amp;&amp;a.test(m)){var v=t[m];v.anchor&amp;&amp;&quot;free&quot;!==v.anchor&amp;&amp;(v.anchor=u(v.anchor)),v.overlaying&amp;&amp;(v.overlaying=u(v.overlaying)),v.type||(v.isdate?v.type=&quot;date&quot;:v.islog?v.type=&quot;log&quot;:!1===v.isdate&amp;&amp;!1===v.islog&amp;&amp;(v.type=&quot;linear&quot;)),&quot;withzero&quot;!==v.autorange&amp;&amp;&quot;tozero&quot;!==v.autorange||(v.autorange=!0,v.rangemode=&quot;tozero&quot;),delete v.islog,delete v.isdate,delete v.categories,y(v,&quot;domain&quot;)&amp;&amp;delete v.domain,void 0!==v.autotick&amp;&amp;(void 0===v.tickmode&amp;&amp;(v.tickmode=v.autotick?&quot;auto&quot;:&quot;linear&quot;),delete v.autotick),d(v)}else if(l&amp;&amp;l.test(m)){d(t[m].radialaxis)}else if(f&amp;&amp;f.test(m)){var x=t[m];d(x.aaxis),d(x.baxis),d(x.caxis)}else if(h&amp;&amp;h.test(m)){var b=t[m],_=b.cameraposition;if(Array.isArray(_)&amp;&amp;4===_[0].length){var w=_[0],T=_[1],k=_[2],M=i([],w),A=[];for(n=0;n&lt;3;++n)A[n]=T[n]+k*M[2+4*n];b.camera={eye:{x:A[0],y:A[1],z:A[2]},center:{x:T[0],y:T[1],z:T[2]},up:{x:0,y:0,z:1}},delete b.cameraposition}d(b.xaxis),d(b.yaxis),d(b.zaxis)}}var S=Array.isArray(t.annotations)?t.annotations.length:0;for(e=0;e&lt;S;e++){var E=t.annotations[e];o.isPlainObject(E)&amp;&amp;(E.ref&amp;&amp;(&quot;paper&quot;===E.ref?(E.xref=&quot;paper&quot;,E.yref=&quot;paper&quot;):&quot;data&quot;===E.ref&amp;&amp;(E.xref=&quot;x&quot;,E.yref=&quot;y&quot;),delete E.ref),p(E,&quot;xref&quot;),p(E,&quot;yref&quot;))}var C=Array.isArray(t.shapes)?t.shapes.length:0;for(e=0;e&lt;C;e++){var L=t.shapes[e];o.isPlainObject(L)&amp;&amp;(p(L,&quot;xref&quot;),p(L,&quot;yref&quot;))}var I=Array.isArray(t.images)?t.images.length:0;for(e=0;e&lt;I;e++){var P=t.images[e];o.isPlainObject(P)&amp;&amp;(p(P,&quot;xref&quot;),p(P,&quot;yref&quot;))}var z=t.legend;return z&amp;&amp;(z.x&gt;3?(z.x=1.02,z.xanchor=&quot;left&quot;):z.x&lt;-2&amp;&amp;(z.x=-.02,z.xanchor=&quot;right&quot;),z.y&gt;3?(z.y=1.02,z.yanchor=&quot;bottom&quot;):z.y&lt;-2&amp;&amp;(z.y=-.02,z.yanchor=&quot;top&quot;)),d(t),&quot;rotate&quot;===t.dragmode&amp;&amp;(t.dragmode=&quot;orbit&quot;),c.clean(t),t.template&amp;&amp;t.template.layout&amp;&amp;r.cleanLayout(t.template.layout),t},r.cleanData=function(t){for(var e=0;e&lt;t.length;e++){var n,i=t[e];if(&quot;histogramy&quot;===i.type&amp;&amp;&quot;xbins&quot;in i&amp;&amp;!(&quot;ybins&quot;in i)&amp;&amp;(i.ybins=i.xbins,delete i.xbins),i.error_y&amp;&amp;&quot;opacity&quot;in i.error_y){var l=c.defaults,f=i.error_y.color||(h(i,&quot;bar&quot;)?c.defaultLine:l[e%l.length]);i.error_y.color=c.addOpacity(c.rgb(f),c.opacity(f)*i.error_y.opacity),delete i.error_y.opacity}if(&quot;bardir&quot;in i&amp;&amp;(&quot;h&quot;!==i.bardir||!h(i,&quot;bar&quot;)&amp;&amp;&quot;histogram&quot;!==i.type.substr(0,9)||(i.orientation=&quot;h&quot;,r.swapXYData(i)),delete i.bardir),&quot;histogramy&quot;===i.type&amp;&amp;r.swapXYData(i),&quot;histogramx&quot;!==i.type&amp;&amp;&quot;histogramy&quot;!==i.type||(i.type=&quot;histogram&quot;),&quot;scl&quot;in i&amp;&amp;!(&quot;colorscale&quot;in i)&amp;&amp;(i.colorscale=i.scl,delete i.scl),&quot;reversescl&quot;in i&amp;&amp;!(&quot;reversescale&quot;in i)&amp;&amp;(i.reversescale=i.reversescl,delete i.reversescl),i.xaxis&amp;&amp;(i.xaxis=u(i.xaxis,&quot;x&quot;)),i.yaxis&amp;&amp;(i.yaxis=u(i.yaxis,&quot;y&quot;)),h(i,&quot;gl3d&quot;)&amp;&amp;i.scene&amp;&amp;(i.scene=s.subplotsRegistry.gl3d.cleanId(i.scene)),!h(i,&quot;pie-like&quot;)&amp;&amp;!h(i,&quot;bar-like&quot;))if(Array.isArray(i.textposition))for(n=0;n&lt;i.textposition.length;n++)i.textposition[n]=v(i.textposition[n]);else i.textposition&amp;&amp;(i.textposition=v(i.textposition));var p=a.getModule(i);if(p&amp;&amp;p.colorbar){var x=p.colorbar.container,b=x?i[x]:i;b&amp;&amp;b.colorscale&amp;&amp;(&quot;YIGnBu&quot;===b.colorscale&amp;&amp;(b.colorscale=&quot;YlGnBu&quot;),&quot;YIOrRd&quot;===b.colorscale&amp;&amp;(b.colorscale=&quot;YlOrRd&quot;))}if(&quot;surface&quot;===i.type&amp;&amp;o.isPlainObject(i.contours)){var _=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(n=0;n&lt;_.length;n++){var w=i.contours[_[n]];o.isPlainObject(w)&amp;&amp;(w.highlightColor&amp;&amp;(w.highlightcolor=w.highlightColor,delete w.highlightColor),w.highlightWidth&amp;&amp;(w.highlightwidth=w.highlightWidth,delete w.highlightWidth))}}if(&quot;candlestick&quot;===i.type||&quot;ohlc&quot;===i.type){var T=!1!==(i.increasing||{}).showlegend,k=!1!==(i.decreasing||{}).showlegend,M=g(i.increasing),A=g(i.decreasing);if(!1!==M&amp;&amp;!1!==A){var S=m(M,A,T,k);S&amp;&amp;(i.name=S)}else!M&amp;&amp;!A||i.name||(i.name=M||A)}if(Array.isArray(i.transforms)){var E=i.transforms;for(n=0;n&lt;E.length;n++){var C=E[n];if(o.isPlainObject(C))switch(C.type){case&quot;filter&quot;:C.filtersrc&amp;&amp;(C.target=C.filtersrc,delete C.filtersrc),C.calendar&amp;&amp;(C.valuecalendar||(C.valuecalendar=C.calendar),delete C.calendar);break;case&quot;groupby&quot;:if(C.styles=C.styles||C.style,C.styles&amp;&amp;!Array.isArray(C.styles)){var L=C.styles,I=Object.keys(L);C.styles=[];for(var P=0;P&lt;I.length;P++)C.styles.push({target:I[P],value:L[I[P]]})}}}}y(i,&quot;line&quot;)&amp;&amp;delete i.line,&quot;marker&quot;in i&amp;&amp;(y(i.marker,&quot;line&quot;)&amp;&amp;delete i.marker.line,y(i,&quot;marker&quot;)&amp;&amp;delete i.marker),c.clean(i),i.autobinx&amp;&amp;(delete i.autobinx,delete i.xbins),i.autobiny&amp;&amp;(delete i.autobiny,delete i.ybins),d(i),i.colorbar&amp;&amp;d(i.colorbar),i.marker&amp;&amp;i.marker.colorbar&amp;&amp;d(i.marker.colorbar),i.line&amp;&amp;i.line.colorbar&amp;&amp;d(i.line.colorbar),i.aaxis&amp;&amp;d(i.aaxis),i.baxis&amp;&amp;d(i.baxis)}},r.swapXYData=function(t){var e;if(o.swapAttrs(t,[&quot;?&quot;,&quot;?0&quot;,&quot;d?&quot;,&quot;?bins&quot;,&quot;nbins?&quot;,&quot;autobin?&quot;,&quot;?src&quot;,&quot;error_?&quot;]),Array.isArray(t.z)&amp;&amp;Array.isArray(t.z[0])&amp;&amp;(t.transpose?delete t.transpose:t.transpose=!0),t.error_x&amp;&amp;t.error_y){var r=t.error_y,n=&quot;copy_ystyle&quot;in r?r.copy_ystyle:!(r.color||r.thickness||r.width);o.swapAttrs(t,[&quot;error_?.copy_ystyle&quot;]),n&amp;&amp;o.swapAttrs(t,[&quot;error_?.color&quot;,&quot;error_?.thickness&quot;,&quot;error_?.width&quot;])}if(&quot;string&quot;==typeof t.hoverinfo){var i=t.hoverinfo.split(&quot;+&quot;);for(e=0;e&lt;i.length;e++)&quot;x&quot;===i[e]?i[e]=&quot;y&quot;:&quot;y&quot;===i[e]&amp;&amp;(i[e]=&quot;x&quot;);t.hoverinfo=i.join(&quot;+&quot;)}},r.coerceTraceIndices=function(t,e){if(n(e))return[e];if(!Array.isArray(e)||!e.length)return t.data.map((function(t,e){return e}));if(Array.isArray(e)){for(var r=[],i=0;i&lt;e.length;i++)o.isIndex(e[i],t.data.length)?r.push(e[i]):o.warn(&quot;trace index (&quot;,e[i],&quot;) is not a number or is out of bounds&quot;);return r}return e},r.manageArrayContainers=function(t,e,r){var i=t.obj,a=t.parts,s=a.length,l=a[s-1],c=n(l);if(c&amp;&amp;null===e){var u=a.slice(0,s-1).join(&quot;.&quot;);o.nestedProperty(i,u).get().splice(l,1)}else c&amp;&amp;void 0===t.get()?(void 0===t.get()&amp;&amp;(r[t.astr]=null),t.set(e)):t.set(e)};var x=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function b(t){var e=t.search(x);if(e&gt;0)return t.substr(0,e)}r.hasParent=function(t,e){for(var r=b(e);r;){if(r in t)return!0;r=b(r)}return!1};var _=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];r.clearAxisTypes=function(t,e,r){for(var n=0;n&lt;e.length;n++)for(var i=t._fullData[n],a=0;a&lt;3;a++){var s=f(t,i,_[a]);if(s&amp;&amp;&quot;log&quot;!==s.type){var l=s._name,c=s._id.substr(1);if(&quot;scene&quot;===c.substr(0,5)){if(void 0!==r[c])continue;l=c+&quot;.&quot;+l}var u=l+&quot;.type&quot;;void 0===r[l]&amp;&amp;void 0===r[u]&amp;&amp;o.nestedProperty(t.layout,u).set(null)}}}},{&quot;../components/color&quot;:643,&quot;../lib&quot;:778,&quot;../plots/cartesian/axis_ids&quot;:831,&quot;../plots/plots&quot;:891,&quot;../registry&quot;:911,&quot;fast-isnumeric&quot;:241,&quot;gl-mat4/fromQuat&quot;:282}],812:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./plot_api&quot;);r.plot=n.plot,r.newPlot=n.newPlot,r.restyle=n.restyle,r.relayout=n.relayout,r.redraw=n.redraw,r.update=n.update,r._guiRestyle=n._guiRestyle,r._guiRelayout=n._guiRelayout,r._guiUpdate=n._guiUpdate,r._storeDirectGUIEdit=n._storeDirectGUIEdit,r.react=n.react,r.extendTraces=n.extendTraces,r.prependTraces=n.prependTraces,r.addTraces=n.addTraces,r.deleteTraces=n.deleteTraces,r.moveTraces=n.moveTraces,r.purge=n.purge,r.addFrames=n.addFrames,r.deleteFrames=n.deleteFrames,r.animate=n.animate,r.setPlotConfig=n.setPlotConfig,r.toImage=t(&quot;./to_image&quot;),r.validate=t(&quot;./validate&quot;),r.downloadImage=t(&quot;../snapshot/download&quot;);var i=t(&quot;./template_api&quot;);r.makeTemplate=i.makeTemplate,r.validateTemplate=i.validateTemplate},{&quot;../snapshot/download&quot;:913,&quot;./plot_api&quot;:814,&quot;./template_api&quot;:819,&quot;./to_image&quot;:820,&quot;./validate&quot;:821}],813:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/is_plain_object&quot;),i=t(&quot;../lib/noop&quot;),a=t(&quot;../lib/loggers&quot;),o=t(&quot;../lib/search&quot;).sorterAsc,s=t(&quot;../registry&quot;);r.containerArrayMatch=t(&quot;./container_array_match&quot;);var l=r.isAddVal=function(t){return&quot;add&quot;===t||n(t)},c=r.isRemoveVal=function(t){return null===t||&quot;remove&quot;===t};r.applyContainerArrayChanges=function(t,e,r,n,u){var f=e.astr,h=s.getComponentMethod(f,&quot;supplyLayoutDefaults&quot;),p=s.getComponentMethod(f,&quot;draw&quot;),d=s.getComponentMethod(f,&quot;drawOne&quot;),g=n.replot||n.recalc||h===i||p===i,m=t.layout,v=t._fullLayout;if(r[&quot;&quot;]){Object.keys(r).length&gt;1&amp;&amp;a.warn(&quot;Full array edits are incompatible with other edits&quot;,f);var y=r[&quot;&quot;][&quot;&quot;];if(c(y))e.set(null);else{if(!Array.isArray(y))return a.warn(&quot;Unrecognized full array edit value&quot;,f,y),!0;e.set(y)}return!g&amp;&amp;(h(m,v),p(t),!0)}var x,b,_,w,T,k,M,A,S=Object.keys(r).map(Number).sort(o),E=e.get(),C=E||[],L=u(v,f).get(),I=[],P=-1,z=C.length;for(x=0;x&lt;S.length;x++)if(w=r[_=S[x]],T=Object.keys(w),k=w[&quot;&quot;],M=l(k),_&lt;0||_&gt;C.length-(M?0:1))a.warn(&quot;index out of range&quot;,f,_);else if(void 0!==k)T.length&gt;1&amp;&amp;a.warn(&quot;Insertion &amp; removal are incompatible with edits to the same index.&quot;,f,_),c(k)?I.push(_):M?(&quot;add&quot;===k&amp;&amp;(k={}),C.splice(_,0,k),L&amp;&amp;L.splice(_,0,{})):a.warn(&quot;Unrecognized full object edit value&quot;,f,_,k),-1===P&amp;&amp;(P=_);else for(b=0;b&lt;T.length;b++)A=f+&quot;[&quot;+_+&quot;].&quot;,u(C[_],T[b],A).set(w[T[b]]);for(x=I.length-1;x&gt;=0;x--)C.splice(I[x],1),L&amp;&amp;L.splice(I[x],1);if(C.length?E||e.set(C):e.set(null),g)return!1;if(h(m,v),d!==i){var O;if(-1===P)O=S;else{for(z=Math.max(C.length,z),O=[],x=0;x&lt;S.length&amp;&amp;!((_=S[x])&gt;=P);x++)O.push(_);for(x=P;x&lt;z;x++)O.push(x)}for(x=0;x&lt;O.length;x++)d(t,O[x])}else p(t);return!0}},{&quot;../lib/is_plain_object&quot;:779,&quot;../lib/loggers&quot;:782,&quot;../lib/noop&quot;:787,&quot;../lib/search&quot;:798,&quot;../registry&quot;:911,&quot;./container_array_match&quot;:809}],814:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;has-hover&quot;),o=t(&quot;../lib&quot;),s=o.nestedProperty,l=t(&quot;../lib/events&quot;),c=t(&quot;../lib/queue&quot;),u=t(&quot;../registry&quot;),f=t(&quot;./plot_schema&quot;),h=t(&quot;../plots/plots&quot;),p=t(&quot;../plots/polar/legacy&quot;),d=t(&quot;../plots/cartesian/axes&quot;),g=t(&quot;../components/drawing&quot;),m=t(&quot;../components/color&quot;),v=t(&quot;../plots/cartesian/graph_interact&quot;).initInteractions,y=t(&quot;../constants/xmlns_namespaces&quot;),x=t(&quot;../lib/svg_text_utils&quot;),b=t(&quot;../plots/cartesian/select&quot;).clearSelect,_=t(&quot;./plot_config&quot;).dfltConfig,w=t(&quot;./manage_arrays&quot;),T=t(&quot;./helpers&quot;),k=t(&quot;./subroutines&quot;),M=t(&quot;./edit_types&quot;),A=t(&quot;../plots/cartesian/constants&quot;).AX_NAME_PATTERN,S=0;function E(t){var e=t._fullLayout;e._redrawFromAutoMarginCount?e._redrawFromAutoMarginCount--:t.emit(&quot;plotly_afterplot&quot;)}function C(t,e){try{t._fullLayout._paper.style(&quot;background&quot;,e)}catch(t){o.error(t)}}function L(t,e){C(t,m.combine(e,&quot;white&quot;))}function I(t,e){if(!t._context){t._context=o.extendDeep({},_);var r=n.select(&quot;base&quot;);t._context._baseUrl=r.size()&amp;&amp;r.attr(&quot;href&quot;)?window.location.href.split(&quot;#&quot;)[0]:&quot;&quot;}var i,s,l,c=t._context;if(e){for(s=Object.keys(e),i=0;i&lt;s.length;i++)&quot;editable&quot;!==(l=s[i])&amp;&amp;&quot;edits&quot;!==l&amp;&amp;l in c&amp;&amp;(&quot;setBackground&quot;===l&amp;&amp;&quot;opaque&quot;===e[l]?c[l]=L:c[l]=e[l]);e.plot3dPixelRatio&amp;&amp;!c.plotGlPixelRatio&amp;&amp;(c.plotGlPixelRatio=c.plot3dPixelRatio);var u=e.editable;if(void 0!==u)for(c.editable=u,s=Object.keys(c.edits),i=0;i&lt;s.length;i++)c.edits[s[i]]=u;if(e.edits)for(s=Object.keys(e.edits),i=0;i&lt;s.length;i++)(l=s[i])in c.edits&amp;&amp;(c.edits[l]=e.edits[l]);c._exportedPlot=e._exportedPlot}c.staticPlot&amp;&amp;(c.editable=!1,c.edits={},c.autosizable=!1,c.scrollZoom=!1,c.doubleClick=!1,c.showTips=!1,c.showLink=!1,c.displayModeBar=!1),&quot;hover&quot;!==c.displayModeBar||a||(c.displayModeBar=!0),&quot;transparent&quot;!==c.setBackground&amp;&amp;&quot;function&quot;==typeof c.setBackground||(c.setBackground=C),c._hasZeroHeight=c._hasZeroHeight||0===t.clientHeight,c._hasZeroWidth=c._hasZeroWidth||0===t.clientWidth;var f=c.scrollZoom,h=c._scrollZoom={};if(!0===f)h.cartesian=1,h.gl3d=1,h.geo=1,h.mapbox=1;else if(&quot;string&quot;==typeof f){var p=f.split(&quot;+&quot;);for(i=0;i&lt;p.length;i++)h[p[i]]=1}else!1!==f&amp;&amp;(h.gl3d=1,h.geo=1,h.mapbox=1)}function P(t,e){var r,n,i=e+1,a=[];for(r=0;r&lt;t.length;r++)(n=t[r])&lt;0?a.push(i+n):a.push(n);return a}function z(t,e,r){var n,i;for(n=0;n&lt;e.length;n++){if((i=e[n])!==parseInt(i,10))throw new Error(&quot;all values in &quot;+r+&quot; must be integers&quot;);if(i&gt;=t.data.length||i&lt;-t.data.length)throw new Error(r+&quot; must be valid indices for gd.data.&quot;);if(e.indexOf(i,n+1)&gt;-1||i&gt;=0&amp;&amp;e.indexOf(-t.data.length+i)&gt;-1||i&lt;0&amp;&amp;e.indexOf(t.data.length+i)&gt;-1)throw new Error(&quot;each index in &quot;+r+&quot; must be unique.&quot;)}}function O(t,e,r){if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array.&quot;);if(&quot;undefined&quot;==typeof e)throw new Error(&quot;currentIndices is a required argument.&quot;);if(Array.isArray(e)||(e=[e]),z(t,e,&quot;currentIndices&quot;),&quot;undefined&quot;==typeof r||Array.isArray(r)||(r=[r]),&quot;undefined&quot;!=typeof r&amp;&amp;z(t,r,&quot;newIndices&quot;),&quot;undefined&quot;!=typeof r&amp;&amp;e.length!==r.length)throw new Error(&quot;current and new indices must be of equal length.&quot;)}function D(t,e,r,n,a){!function(t,e,r,n){var i=o.isPlainObject(n);if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array&quot;);if(!o.isPlainObject(e))throw new Error(&quot;update must be a key:value object&quot;);if(&quot;undefined&quot;==typeof r)throw new Error(&quot;indices must be an integer or array of integers&quot;);for(var a in z(t,r,&quot;indices&quot;),e){if(!Array.isArray(e[a])||e[a].length!==r.length)throw new Error(&quot;attribute &quot;+a+&quot; must be an array of length equal to indices array length&quot;);if(i&amp;&amp;(!(a in n)||!Array.isArray(n[a])||n[a].length!==e[a].length))throw new Error(&quot;when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object&quot;)}}(t,e,r,n);for(var l=function(t,e,r,n){var a,l,c,u,f,h=o.isPlainObject(n),p=[];for(var d in Array.isArray(r)||(r=[r]),r=P(r,t.data.length-1),e)for(var g=0;g&lt;r.length;g++){if(a=t.data[r[g]],l=(c=s(a,d)).get(),u=e[d][g],!o.isArrayOrTypedArray(u))throw new Error(&quot;attribute: &quot;+d+&quot; index: &quot;+g+&quot; must be an array&quot;);if(!o.isArrayOrTypedArray(l))throw new Error(&quot;cannot extend missing or non-array attribute: &quot;+d);if(l.constructor!==u.constructor)throw new Error(&quot;cannot extend array with an array of a different type: &quot;+d);f=h?n[d][g]:n,i(f)||(f=-1),p.push({prop:c,target:l,insert:u,maxp:Math.floor(f)})}return p}(t,e,r,n),c={},u={},f=0;f&lt;l.length;f++){var h=l[f].prop,p=l[f].maxp,d=a(l[f].target,l[f].insert,p);h.set(d[0]),Array.isArray(c[h.astr])||(c[h.astr]=[]),c[h.astr].push(d[1]),Array.isArray(u[h.astr])||(u[h.astr]=[]),u[h.astr].push(l[f].target.length)}return{update:c,maxPoints:u}}function R(t,e){var r=new t.constructor(t.length+e.length);return r.set(t),r.set(e,t.length),r}function F(t,e,n,i){t=o.getGraphDiv(t),T.clearPromiseQueue(t);var a={};if(&quot;string&quot;==typeof e)a[e]=n;else{if(!o.isPlainObject(e))return o.warn(&quot;Restyle fail.&quot;,e,n,i),Promise.reject();a=o.extendFlat({},e),void 0===i&amp;&amp;(i=n)}Object.keys(a).length&amp;&amp;(t.changed=!0);var s=T.coerceTraceIndices(t,i),l=U(t,a,s),u=l.flags;u.calc&amp;&amp;(t.calcdata=void 0),u.clearAxisTypes&amp;&amp;T.clearAxisTypes(t,s,{});var f=[];u.fullReplot?f.push(r.plot):(f.push(h.previousPromises),h.supplyDefaults(t),u.markerSize&amp;&amp;(h.doCalcdata(t),G(f)),u.style&amp;&amp;f.push(k.doTraceStyle),u.colorbars&amp;&amp;f.push(k.doColorBars),f.push(E)),f.push(h.rehover,h.redrag),c.add(t,F,[t,l.undoit,l.traces],F,[t,l.redoit,l.traces]);var p=o.syncOrAsync(f,t);return p&amp;&amp;p.then||(p=Promise.resolve()),p.then((function(){return t.emit(&quot;plotly_restyle&quot;,l.eventData),t}))}function B(t){return void 0===t?null:t}function N(t,e){return e?function(e,r,n){var i=s(e,r),a=i.set;return i.set=function(e){j((n||&quot;&quot;)+r,i.get(),e,t),a(e)},i}:s}function j(t,e,r,n){if(Array.isArray(e)||Array.isArray(r))for(var i=Array.isArray(e)?e:[],a=Array.isArray(r)?r:[],s=Math.max(i.length,a.length),l=0;l&lt;s;l++)j(t+&quot;[&quot;+l+&quot;]&quot;,i[l],a[l],n);else if(o.isPlainObject(e)||o.isPlainObject(r)){var c=o.isPlainObject(e)?e:{},u=o.isPlainObject(r)?r:{},f=o.extendFlat({},c,u);for(var h in f)j(t+&quot;.&quot;+h,c[h],u[h],n)}else void 0===n[t]&amp;&amp;(n[t]=B(e))}function U(t,e,r){var n,i=t._fullLayout,a=t._fullData,l=t.data,c=i._guiEditing,p=N(i._preGUI,c),g=o.extendDeepAll({},e);V(e);var m,v=M.traceFlags(),y={},x={};function b(){return r.map((function(){}))}function _(t){var e=d.id2name(t);-1===m.indexOf(e)&amp;&amp;m.push(e)}function w(t){return&quot;LAYOUT&quot;+t+&quot;.autorange&quot;}function k(t){return&quot;LAYOUT&quot;+t+&quot;.range&quot;}function A(t){for(var e=t;e&lt;a.length;e++)if(a[e]._input===l[t])return a[e]}function S(n,a,o){if(Array.isArray(n))n.forEach((function(t){S(t,a,o)}));else if(!(n in e)&amp;&amp;!T.hasParent(e,n)){var s;if(&quot;LAYOUT&quot;===n.substr(0,6))s=p(t.layout,n.replace(&quot;LAYOUT&quot;,&quot;&quot;));else{var u=r[o];s=N(i._tracePreGUI[A(u)._fullInput.uid],c)(l[u],n)}n in x||(x[n]=b()),void 0===x[n][o]&amp;&amp;(x[n][o]=B(s.get())),void 0!==a&amp;&amp;s.set(a)}}function E(t){return function(e){return a[e][t]}}function C(t){return function(e,n){return!1===e?a[r[n]][t]:null}}for(var L in e){if(T.hasParent(e,L))throw new Error(&quot;cannot set &quot;+L+&quot; and a parent attribute simultaneously&quot;);var I,P,z,O,D,R,F=e[L];if(&quot;autobinx&quot;!==L&amp;&amp;&quot;autobiny&quot;!==L||(L=L.charAt(L.length-1)+&quot;bins&quot;,F=Array.isArray(F)?F.map(C(L)):!1===F?r.map(E(L)):null),y[L]=F,&quot;LAYOUT&quot;!==L.substr(0,6)){for(x[L]=b(),n=0;n&lt;r.length;n++){if(I=l[r[n]],P=A(r[n]),O=(z=N(i._tracePreGUI[P._fullInput.uid],c)(I,L)).get(),void 0!==(D=Array.isArray(F)?F[n%F.length]:F)){var j=z.parts[z.parts.length-1],U=L.substr(0,L.length-j.length-1),q=U?U+&quot;.&quot;:&quot;&quot;,H=U?s(P,U).get():P;if((R=f.getTraceValObject(P,z.parts))&amp;&amp;R.impliedEdits&amp;&amp;null!==D)for(var G in R.impliedEdits)S(o.relativeAttr(L,G),R.impliedEdits[G],n);else if(&quot;thicknessmode&quot;!==j&amp;&amp;&quot;lenmode&quot;!==j||O===D||&quot;fraction&quot;!==D&amp;&amp;&quot;pixels&quot;!==D||!H){if(&quot;type&quot;===L&amp;&amp;(&quot;pie&quot;===D!=(&quot;pie&quot;===O)||&quot;funnelarea&quot;===D!=(&quot;funnelarea&quot;===O))){var Y=&quot;x&quot;,W=&quot;y&quot;;&quot;bar&quot;!==D&amp;&amp;&quot;bar&quot;!==O||&quot;h&quot;!==I.orientation||(Y=&quot;y&quot;,W=&quot;x&quot;),o.swapAttrs(I,[&quot;?&quot;,&quot;?src&quot;],&quot;labels&quot;,Y),o.swapAttrs(I,[&quot;d?&quot;,&quot;?0&quot;],&quot;label&quot;,Y),o.swapAttrs(I,[&quot;?&quot;,&quot;?src&quot;],&quot;values&quot;,W),&quot;pie&quot;===O||&quot;funnelarea&quot;===O?(s(I,&quot;marker.color&quot;).set(s(I,&quot;marker.colors&quot;).get()),i._pielayer.selectAll(&quot;g.trace&quot;).remove()):u.traceIs(I,&quot;cartesian&quot;)&amp;&amp;s(I,&quot;marker.colors&quot;).set(s(I,&quot;marker.color&quot;).get())}}else{var X=i._size,Z=H.orient,J=&quot;top&quot;===Z||&quot;bottom&quot;===Z;if(&quot;thicknessmode&quot;===j){var K=J?X.h:X.w;S(q+&quot;thickness&quot;,H.thickness*(&quot;fraction&quot;===D?1/K:K),n)}else{var Q=J?X.w:X.h;S(q+&quot;len&quot;,H.len*(&quot;fraction&quot;===D?1/Q:Q),n)}}x[L][n]=B(O);if(-1!==[&quot;swapxy&quot;,&quot;swapxyaxes&quot;,&quot;orientation&quot;,&quot;orientationaxes&quot;].indexOf(L)){if(&quot;orientation&quot;===L){z.set(D);var $=I.x&amp;&amp;!I.y?&quot;h&quot;:&quot;v&quot;;if((z.get()||$)===P.orientation)continue}else&quot;orientationaxes&quot;===L&amp;&amp;(I.orientation={v:&quot;h&quot;,h:&quot;v&quot;}[P.orientation]);T.swapXYData(I),v.calc=v.clearAxisTypes=!0}else-1!==h.dataArrayContainers.indexOf(z.parts[0])?(T.manageArrayContainers(z,D,x),v.calc=!0):(R?R.arrayOk&amp;&amp;!u.traceIs(P,&quot;regl&quot;)&amp;&amp;(o.isArrayOrTypedArray(D)||o.isArrayOrTypedArray(O))?v.calc=!0:M.update(v,R):v.calc=!0,z.set(D))}}if(-1!==[&quot;swapxyaxes&quot;,&quot;orientationaxes&quot;].indexOf(L)&amp;&amp;d.swap(t,r),&quot;orientationaxes&quot;===L){var tt=s(t.layout,&quot;hovermode&quot;),et=tt.get();&quot;x&quot;===et?tt.set(&quot;y&quot;):&quot;y&quot;===et?tt.set(&quot;x&quot;):&quot;x unified&quot;===et?tt.set(&quot;y unified&quot;):&quot;y unified&quot;===et&amp;&amp;tt.set(&quot;x unified&quot;)}if(-1!==[&quot;orientation&quot;,&quot;type&quot;].indexOf(L)){for(m=[],n=0;n&lt;r.length;n++){var rt=l[r[n]];u.traceIs(rt,&quot;cartesian&quot;)&amp;&amp;(_(rt.xaxis||&quot;x&quot;),_(rt.yaxis||&quot;y&quot;))}S(m.map(w),!0,0),S(m.map(k),[0,1],0)}}else z=p(t.layout,L.replace(&quot;LAYOUT&quot;,&quot;&quot;)),x[L]=[B(z.get())],z.set(Array.isArray(F)?F[0]:F),v.calc=!0}return(v.calc||v.plot)&amp;&amp;(v.fullReplot=!0),{flags:v,undoit:x,redoit:y,traces:r,eventData:o.extendDeepNoArrays([],[g,r])}}function V(t){var e,r,n,i=o.counterRegex(&quot;axis&quot;,&quot;.title&quot;,!1,!1),a=/colorbar\.title$/,s=Object.keys(t);for(e=0;e&lt;s.length;e++)r=s[e],n=t[r],&quot;title&quot;!==r&amp;&amp;!i.test(r)&amp;&amp;!a.test(r)||&quot;string&quot;!=typeof n&amp;&amp;&quot;number&quot;!=typeof n?r.indexOf(&quot;titlefont&quot;)&gt;-1?l(r,r.replace(&quot;titlefont&quot;,&quot;title.font&quot;)):r.indexOf(&quot;titleposition&quot;)&gt;-1?l(r,r.replace(&quot;titleposition&quot;,&quot;title.position&quot;)):r.indexOf(&quot;titleside&quot;)&gt;-1?l(r,r.replace(&quot;titleside&quot;,&quot;title.side&quot;)):r.indexOf(&quot;titleoffset&quot;)&gt;-1&amp;&amp;l(r,r.replace(&quot;titleoffset&quot;,&quot;title.offset&quot;)):l(r,r.replace(&quot;title&quot;,&quot;title.text&quot;));function l(e,r){t[r]=t[e],delete t[e]}}function q(t,e,r){if(t=o.getGraphDiv(t),T.clearPromiseQueue(t),t.framework&amp;&amp;t.framework.isPolar)return Promise.resolve(t);var n={};if(&quot;string&quot;==typeof e)n[e]=r;else{if(!o.isPlainObject(e))return o.warn(&quot;Relayout fail.&quot;,e,r),Promise.reject();n=o.extendFlat({},e)}Object.keys(n).length&amp;&amp;(t.changed=!0);var i=Z(t,n),a=i.flags;a.calc&amp;&amp;(t.calcdata=void 0);var s=[h.previousPromises];a.layoutReplot?s.push(k.layoutReplot):Object.keys(n).length&amp;&amp;(H(t,a,i)||h.supplyDefaults(t),a.legend&amp;&amp;s.push(k.doLegend),a.layoutstyle&amp;&amp;s.push(k.layoutStyles),a.axrange&amp;&amp;G(s,i.rangesAltered),a.ticks&amp;&amp;s.push(k.doTicksRelayout),a.modebar&amp;&amp;s.push(k.doModeBar),a.camera&amp;&amp;s.push(k.doCamera),a.colorbars&amp;&amp;s.push(k.doColorBars),s.push(E)),s.push(h.rehover,h.redrag),c.add(t,q,[t,i.undoit],q,[t,i.redoit]);var l=o.syncOrAsync(s,t);return l&amp;&amp;l.then||(l=Promise.resolve(t)),l.then((function(){return t.emit(&quot;plotly_relayout&quot;,i.eventData),t}))}function H(t,e,r){var n=t._fullLayout;if(!e.axrange)return!1;for(var i in e)if(&quot;axrange&quot;!==i&amp;&amp;e[i])return!1;for(var a in r.rangesAltered){var o=d.id2name(a),s=t.layout[o],l=n[o];if(l.autorange=s.autorange,s.range&amp;&amp;(l.range=s.range.slice()),l.cleanRange(),l._matchGroup)for(var c in l._matchGroup)if(c!==a){var u=n[d.id2name(c)];u.autorange=l.autorange,u.range=l.range.slice(),u._input.range=l.range.slice()}}return!0}function G(t,e){var r=e?function(t){var r=[],n=!0;for(var i in e){var a=d.getFromId(t,i);if(r.push(i),-1!==(a.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;a._anchorAxis&amp;&amp;r.push(a._anchorAxis._id),a._matchGroup)for(var o in a._matchGroup)e[o]||r.push(o);a.automargin&amp;&amp;(n=!1)}return d.draw(t,r,{skipTitle:n})}:function(t){return d.draw(t,&quot;redraw&quot;)};t.push(b,k.doAutoRangeAndConstraints,r,k.drawData,k.finalDraw)}var Y=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,W=/^[xyz]axis[0-9]*\.autorange$/,X=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Z(t,e){var r,n,i,a=t.layout,l=t._fullLayout,c=l._guiEditing,h=N(l._preGUI,c),p=Object.keys(e),g=d.list(t),m=o.extendDeepAll({},e),v={};for(V(e),p=Object.keys(e),n=0;n&lt;p.length;n++)if(0===p[n].indexOf(&quot;allaxes&quot;)){for(i=0;i&lt;g.length;i++){var y=g[i]._id.substr(1),x=-1!==y.indexOf(&quot;scene&quot;)?y+&quot;.&quot;:&quot;&quot;,b=p[n].replace(&quot;allaxes&quot;,x+g[i]._name);e[b]||(e[b]=e[p[n]])}delete e[p[n]]}var _=M.layoutFlags(),k={},S={};function E(t,r){if(Array.isArray(t))t.forEach((function(t){E(t,r)}));else if(!(t in e)&amp;&amp;!T.hasParent(e,t)){var n=h(a,t);t in S||(S[t]=B(n.get())),void 0!==r&amp;&amp;n.set(r)}}var C,L={};function I(t){var e=d.name2id(t.split(&quot;.&quot;)[0]);return L[e]=1,e}for(var P in e){if(T.hasParent(e,P))throw new Error(&quot;cannot set &quot;+P+&quot; and a parent attribute simultaneously&quot;);for(var z=h(a,P),O=e[P],D=z.parts.length-1;D&gt;0&amp;&amp;&quot;string&quot;!=typeof z.parts[D];)D--;var R=z.parts[D],F=z.parts[D-1]+&quot;.&quot;+R,j=z.parts.slice(0,D).join(&quot;.&quot;),U=s(t.layout,j).get(),q=s(l,j).get(),H=z.get();if(void 0!==O){k[P]=O,S[P]=&quot;reverse&quot;===R?O:B(H);var G=f.getLayoutValObject(l,z.parts);if(G&amp;&amp;G.impliedEdits&amp;&amp;null!==O)for(var Z in G.impliedEdits)E(o.relativeAttr(P,Z),G.impliedEdits[Z]);if(-1!==[&quot;width&quot;,&quot;height&quot;].indexOf(P))if(O){E(&quot;autosize&quot;,null);var K=&quot;height&quot;===P?&quot;width&quot;:&quot;height&quot;;E(K,l[K])}else l[P]=t._initialAutoSize[P];else if(&quot;autosize&quot;===P)E(&quot;width&quot;,O?null:l.width),E(&quot;height&quot;,O?null:l.height);else if(F.match(Y))I(F),s(l,j+&quot;._inputRange&quot;).set(null);else if(F.match(W)){I(F),s(l,j+&quot;._inputRange&quot;).set(null);var Q=s(l,j).get();Q._inputDomain&amp;&amp;(Q._input.domain=Q._inputDomain.slice())}else F.match(X)&amp;&amp;s(l,j+&quot;._inputDomain&quot;).set(null);if(&quot;type&quot;===R){C=U;var $=&quot;linear&quot;===q.type&amp;&amp;&quot;log&quot;===O,tt=&quot;log&quot;===q.type&amp;&amp;&quot;linear&quot;===O;if($||tt){if(C&amp;&amp;C.range)if(q.autorange)$&amp;&amp;(C.range=C.range[1]&gt;C.range[0]?[1,2]:[2,1]);else{var et=C.range[0],rt=C.range[1];$?(et&lt;=0&amp;&amp;rt&lt;=0&amp;&amp;E(j+&quot;.autorange&quot;,!0),et&lt;=0?et=rt/1e6:rt&lt;=0&amp;&amp;(rt=et/1e6),E(j+&quot;.range[0]&quot;,Math.log(et)/Math.LN10),E(j+&quot;.range[1]&quot;,Math.log(rt)/Math.LN10)):(E(j+&quot;.range[0]&quot;,Math.pow(10,et)),E(j+&quot;.range[1]&quot;,Math.pow(10,rt)))}else E(j+&quot;.autorange&quot;,!0);Array.isArray(l._subplots.polar)&amp;&amp;l._subplots.polar.length&amp;&amp;l[z.parts[0]]&amp;&amp;&quot;radialaxis&quot;===z.parts[1]&amp;&amp;delete l[z.parts[0]]._subplot.viewInitial[&quot;radialaxis.range&quot;],u.getComponentMethod(&quot;annotations&quot;,&quot;convertCoords&quot;)(t,q,O,E),u.getComponentMethod(&quot;images&quot;,&quot;convertCoords&quot;)(t,q,O,E)}else E(j+&quot;.autorange&quot;,!0),E(j+&quot;.range&quot;,null);s(l,j+&quot;._inputRange&quot;).set(null)}else if(R.match(A)){var nt=s(l,P).get(),it=(O||{}).type;it&amp;&amp;&quot;-&quot;!==it||(it=&quot;linear&quot;),u.getComponentMethod(&quot;annotations&quot;,&quot;convertCoords&quot;)(t,nt,it,E),u.getComponentMethod(&quot;images&quot;,&quot;convertCoords&quot;)(t,nt,it,E)}var at=w.containerArrayMatch(P);if(at){r=at.array,n=at.index;var ot=at.property,st=G||{editType:&quot;calc&quot;};&quot;&quot;!==n&amp;&amp;&quot;&quot;===ot&amp;&amp;(w.isAddVal(O)?S[P]=null:w.isRemoveVal(O)?S[P]=(s(a,r).get()||[])[n]:o.warn(&quot;unrecognized full object value&quot;,e)),M.update(_,st),v[r]||(v[r]={});var lt=v[r][n];lt||(lt=v[r][n]={}),lt[ot]=O,delete e[P]}else&quot;reverse&quot;===R?(U.range?U.range.reverse():(E(j+&quot;.autorange&quot;,!0),U.range=[1,0]),q.autorange?_.calc=!0:_.plot=!0):(l._has(&quot;scatter-like&quot;)&amp;&amp;l._has(&quot;regl&quot;)&amp;&amp;&quot;dragmode&quot;===P&amp;&amp;(&quot;lasso&quot;===O||&quot;select&quot;===O)&amp;&amp;&quot;lasso&quot;!==H&amp;&amp;&quot;select&quot;!==H||l._has(&quot;gl2d&quot;)?_.plot=!0:G?M.update(_,G):_.calc=!0,z.set(O))}}for(r in v){w.applyContainerArrayChanges(t,h(a,r),v[r],_,h)||(_.plot=!0)}for(var ct in L){var ut=(C=d.getFromId(t,ct))&amp;&amp;C._constraintGroup;if(ut)for(var ft in _.calc=!0,ut)L[ft]||(d.getFromId(t,ft)._constraintShrinkable=!0)}return(J(t)||e.height||e.width)&amp;&amp;(_.plot=!0),(_.plot||_.calc)&amp;&amp;(_.layoutReplot=!0),{flags:_,rangesAltered:L,undoit:S,redoit:k,eventData:m}}function J(t){var e=t._fullLayout,r=e.width,n=e.height;return t.layout.autosize&amp;&amp;h.plotAutoSize(t,t.layout,e),e.width!==r||e.height!==n}function K(t,e,n,i){if(t=o.getGraphDiv(t),T.clearPromiseQueue(t),t.framework&amp;&amp;t.framework.isPolar)return Promise.resolve(t);o.isPlainObject(e)||(e={}),o.isPlainObject(n)||(n={}),Object.keys(e).length&amp;&amp;(t.changed=!0),Object.keys(n).length&amp;&amp;(t.changed=!0);var a=T.coerceTraceIndices(t,i),s=U(t,o.extendFlat({},e),a),l=s.flags,u=Z(t,o.extendFlat({},n)),f=u.flags;(l.calc||f.calc)&amp;&amp;(t.calcdata=void 0),l.clearAxisTypes&amp;&amp;T.clearAxisTypes(t,a,n);var p=[];f.layoutReplot?p.push(k.layoutReplot):l.fullReplot?p.push(r.plot):(p.push(h.previousPromises),H(t,f,u)||h.supplyDefaults(t),l.style&amp;&amp;p.push(k.doTraceStyle),(l.colorbars||f.colorbars)&amp;&amp;p.push(k.doColorBars),f.legend&amp;&amp;p.push(k.doLegend),f.layoutstyle&amp;&amp;p.push(k.layoutStyles),f.axrange&amp;&amp;G(p,u.rangesAltered),f.ticks&amp;&amp;p.push(k.doTicksRelayout),f.modebar&amp;&amp;p.push(k.doModeBar),f.camera&amp;&amp;p.push(k.doCamera),p.push(E)),p.push(h.rehover,h.redrag),c.add(t,K,[t,s.undoit,u.undoit,s.traces],K,[t,s.redoit,u.redoit,s.traces]);var d=o.syncOrAsync(p,t);return d&amp;&amp;d.then||(d=Promise.resolve(t)),d.then((function(){return t.emit(&quot;plotly_update&quot;,{data:s.eventData,layout:u.eventData}),t}))}function Q(t){return function(e){e._fullLayout._guiEditing=!0;var r=t.apply(null,arguments);return e._fullLayout._guiEditing=!1,r}}var $=[{pattern:/^hiddenlabels/,attr:&quot;legend.uirevision&quot;},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:&quot;modebar.uirevision&quot;},{pattern:/(hover|drag)mode$/,attr:&quot;modebar.uirevision&quot;},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:&quot;editrevision&quot;},{pattern:/^(shapes|annotations)/,attr:&quot;editrevision&quot;},{pattern:/^title\.text$/,attr:&quot;editrevision&quot;}],tt=[{pattern:/^selectedpoints$/,attr:&quot;selectionrevision&quot;},{pattern:/(^|value\.)visible$/,attr:&quot;legend.uirevision&quot;},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:&quot;editrevision&quot;}];function et(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r],i=t.match(n.pattern);if(i)return{head:i[1],attr:n.attr}}}function rt(t,e){var r=s(e,t).get();if(void 0!==r)return r;var n=t.split(&quot;.&quot;);for(n.pop();n.length&gt;1;)if(n.pop(),void 0!==(r=s(e,n.join(&quot;.&quot;)+&quot;.uirevision&quot;).get()))return r;return e.uirevision}function nt(t,e){for(var r=0;r&lt;e.length;r++)if(e[r]._fullInput.uid===t)return r;return-1}function it(t,e,r){for(var n=0;n&lt;e.length;n++)if(e[n].uid===t)return n;return!e[r]||e[r].uid?-1:r}function at(t,e){var r=o.isPlainObject(t),n=Array.isArray(t);return r||n?(r&amp;&amp;o.isPlainObject(e)||n&amp;&amp;Array.isArray(e))&amp;&amp;JSON.stringify(t)===JSON.stringify(e):t===e}function ot(t,e,r,n){var i,a,l,c=n.getValObject,u=n.flags,f=n.immutable,h=n.inArray,p=n.arrayIndex;function d(){var t=i.editType;h&amp;&amp;-1!==t.indexOf(&quot;arraydraw&quot;)?o.pushUnique(u.arrays[h],p):(M.update(u,i),&quot;none&quot;!==t&amp;&amp;u.nChanges++,n.transition&amp;&amp;i.anim&amp;&amp;u.nChangesAnim++,(Y.test(l)||W.test(l))&amp;&amp;(u.rangesAltered[r[0]]=1),X.test(l)&amp;&amp;s(e,&quot;_inputDomain&quot;).set(null),&quot;datarevision&quot;===a&amp;&amp;(u.newDataRevision=1))}function g(t){return&quot;data_array&quot;===t.valType||t.arrayOk}for(a in t){if(u.calc&amp;&amp;!n.transition)return;var m=t[a],v=e[a],y=r.concat(a);if(l=y.join(&quot;.&quot;),&quot;_&quot;!==a.charAt(0)&amp;&amp;&quot;function&quot;!=typeof m&amp;&amp;m!==v){if((&quot;tick0&quot;===a||&quot;dtick&quot;===a)&amp;&amp;&quot;geo&quot;!==r[0]){var x=e.tickmode;if(&quot;auto&quot;===x||&quot;array&quot;===x||!x)continue}if((&quot;range&quot;!==a||!e.autorange)&amp;&amp;(&quot;zmin&quot;!==a&amp;&amp;&quot;zmax&quot;!==a||&quot;contourcarpet&quot;!==e.type)&amp;&amp;(i=c(y))&amp;&amp;(!i._compareAsJSON||JSON.stringify(m)!==JSON.stringify(v))){var b,_=i.valType,w=g(i),T=Array.isArray(m),k=Array.isArray(v);if(T&amp;&amp;k){var A=&quot;_input_&quot;+a,S=t[A],E=e[A];if(Array.isArray(S)&amp;&amp;S===E)continue}if(void 0===v)w&amp;&amp;T?u.calc=!0:d();else if(i._isLinkedToArray){var C=[],L=!1;h||(u.arrays[a]=C);var I=Math.min(m.length,v.length),P=Math.max(m.length,v.length);if(I!==P){if(&quot;arraydraw&quot;!==i.editType){d();continue}L=!0}for(b=0;b&lt;I;b++)ot(m[b],v[b],y.concat(b),o.extendFlat({inArray:a,arrayIndex:b},n));if(L)for(b=I;b&lt;P;b++)C.push(b)}else!_&amp;&amp;o.isPlainObject(m)?ot(m,v,y,n):w?T&amp;&amp;k?(f&amp;&amp;(u.calc=!0),(f||n.newDataRevision)&amp;&amp;d()):T!==k?u.calc=!0:d():T&amp;&amp;k&amp;&amp;m.length===v.length&amp;&amp;String(m)===String(v)||d()}}}for(a in e)if(!(a in t)&amp;&amp;&quot;_&quot;!==a.charAt(0)&amp;&amp;&quot;function&quot;!=typeof e[a]){if(g(i=c(r.concat(a)))&amp;&amp;Array.isArray(e[a]))return void(u.calc=!0);d()}}function st(t){var e=t._fullLayout,r=t.getBoundingClientRect();if(!o.equalDomRects(r,e._lastBBox)){var n=e._invTransform=o.inverseTransformMatrix(o.getFullTransformMatrix(t));e._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),e._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),e._lastBBox=r}}function lt(t){var e=n.select(t),r=t._fullLayout;if(r._calcInverseTransform=st,r._calcInverseTransform(t),r._container=e.selectAll(&quot;.plot-container&quot;).data([0]),r._container.enter().insert(&quot;div&quot;,&quot;:first-child&quot;).classed(&quot;plot-container&quot;,!0).classed(&quot;plotly&quot;,!0),r._paperdiv=r._container.selectAll(&quot;.svg-container&quot;).data([0]),r._paperdiv.enter().append(&quot;div&quot;).classed(&quot;user-select-none&quot;,!0).classed(&quot;svg-container&quot;,!0).style(&quot;position&quot;,&quot;relative&quot;),r._glcontainer=r._paperdiv.selectAll(&quot;.gl-container&quot;).data([{}]),r._glcontainer.enter().append(&quot;div&quot;).classed(&quot;gl-container&quot;,!0),r._paperdiv.selectAll(&quot;.main-svg&quot;).remove(),r._paperdiv.select(&quot;.modebar-container&quot;).remove(),r._paper=r._paperdiv.insert(&quot;svg&quot;,&quot;:first-child&quot;).classed(&quot;main-svg&quot;,!0),r._toppaper=r._paperdiv.append(&quot;svg&quot;).classed(&quot;main-svg&quot;,!0),r._modebardiv=r._paperdiv.append(&quot;div&quot;),delete r._modeBar,r._hoverpaper=r._paperdiv.append(&quot;svg&quot;).classed(&quot;main-svg&quot;,!0),!r._uid){var i={};n.selectAll(&quot;defs&quot;).each((function(){this.id&amp;&amp;(i[this.id.split(&quot;-&quot;)[1]]=1)})),r._uid=o.randstr(i)}r._paperdiv.selectAll(&quot;.main-svg&quot;).attr(y.svgAttrs),r._defs=r._paper.append(&quot;defs&quot;).attr(&quot;id&quot;,&quot;defs-&quot;+r._uid),r._clips=r._defs.append(&quot;g&quot;).classed(&quot;clips&quot;,!0),r._topdefs=r._toppaper.append(&quot;defs&quot;).attr(&quot;id&quot;,&quot;topdefs-&quot;+r._uid),r._topclips=r._topdefs.append(&quot;g&quot;).classed(&quot;clips&quot;,!0),r._bgLayer=r._paper.append(&quot;g&quot;).classed(&quot;bglayer&quot;,!0),r._draggers=r._paper.append(&quot;g&quot;).classed(&quot;draglayer&quot;,!0);var a=r._paper.append(&quot;g&quot;).classed(&quot;layer-below&quot;,!0);r._imageLowerLayer=a.append(&quot;g&quot;).classed(&quot;imagelayer&quot;,!0),r._shapeLowerLayer=a.append(&quot;g&quot;).classed(&quot;shapelayer&quot;,!0),r._cartesianlayer=r._paper.append(&quot;g&quot;).classed(&quot;cartesianlayer&quot;,!0),r._polarlayer=r._paper.append(&quot;g&quot;).classed(&quot;polarlayer&quot;,!0),r._ternarylayer=r._paper.append(&quot;g&quot;).classed(&quot;ternarylayer&quot;,!0),r._geolayer=r._paper.append(&quot;g&quot;).classed(&quot;geolayer&quot;,!0),r._funnelarealayer=r._paper.append(&quot;g&quot;).classed(&quot;funnelarealayer&quot;,!0),r._pielayer=r._paper.append(&quot;g&quot;).classed(&quot;pielayer&quot;,!0),r._treemaplayer=r._paper.append(&quot;g&quot;).classed(&quot;treemaplayer&quot;,!0),r._sunburstlayer=r._paper.append(&quot;g&quot;).classed(&quot;sunburstlayer&quot;,!0),r._indicatorlayer=r._toppaper.append(&quot;g&quot;).classed(&quot;indicatorlayer&quot;,!0),r._glimages=r._paper.append(&quot;g&quot;).classed(&quot;glimages&quot;,!0);var s=r._toppaper.append(&quot;g&quot;).classed(&quot;layer-above&quot;,!0);r._imageUpperLayer=s.append(&quot;g&quot;).classed(&quot;imagelayer&quot;,!0),r._shapeUpperLayer=s.append(&quot;g&quot;).classed(&quot;shapelayer&quot;,!0),r._infolayer=r._toppaper.append(&quot;g&quot;).classed(&quot;infolayer&quot;,!0),r._menulayer=r._toppaper.append(&quot;g&quot;).classed(&quot;menulayer&quot;,!0),r._zoomlayer=r._toppaper.append(&quot;g&quot;).classed(&quot;zoomlayer&quot;,!0),r._hoverlayer=r._hoverpaper.append(&quot;g&quot;).classed(&quot;hoverlayer&quot;,!0),r._modebardiv.classed(&quot;modebar-container&quot;,!0).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;top&quot;,&quot;0px&quot;).style(&quot;right&quot;,&quot;0px&quot;),t.emit(&quot;plotly_framework&quot;)}r.animate=function(t,e,r){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t+&quot;. It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/&quot;);var n=t._transitionData;n._frameQueue||(n._frameQueue=[]);var i=(r=h.supplyAnimationDefaults(r)).transition,a=r.frame;function s(t){return Array.isArray(i)?t&gt;=i.length?i[0]:i[t]:i}function l(t){return Array.isArray(a)?t&gt;=a.length?a[0]:a[t]:a}function c(t,e){var r=0;return function(){if(t&amp;&amp;++r===e)return t()}}return void 0===n._frameWaitingCnt&amp;&amp;(n._frameWaitingCnt=0),new Promise((function(a,u){function f(){n._currentFrame&amp;&amp;n._currentFrame.onComplete&amp;&amp;n._currentFrame.onComplete();var e=n._currentFrame=n._frameQueue.shift();if(e){var r=e.name?e.name.toString():null;t._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=e.frameOpts.duration,h.transition(t,e.frame.data,e.frame.layout,T.coerceTraceIndices(t,e.frame.traces),e.frameOpts,e.transitionOpts).then((function(){e.onComplete&amp;&amp;e.onComplete()})),t.emit(&quot;plotly_animatingframe&quot;,{name:r,frame:e.frame,animation:{frame:e.frameOpts,transition:e.transitionOpts}})}else t.emit(&quot;plotly_animated&quot;),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function p(){t.emit(&quot;plotly_animating&quot;),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var e=function(){n._animationRaf=window.requestAnimationFrame(e),Date.now()-n._lastFrameAt&gt;n._timeToNext&amp;&amp;f()};e()}var d,g,m=0;function v(t){return Array.isArray(i)?m&gt;=i.length?t.transitionOpts=i[m]:t.transitionOpts=i[0]:t.transitionOpts=i,m++,t}var y=[],x=null==e,b=Array.isArray(e);if(!x&amp;&amp;!b&amp;&amp;o.isPlainObject(e))y.push({type:&quot;object&quot;,data:v(o.extendFlat({},e))});else if(x||-1!==[&quot;string&quot;,&quot;number&quot;].indexOf(typeof e))for(d=0;d&lt;n._frames.length;d++)(g=n._frames[d])&amp;&amp;(x||String(g.group)===String(e))&amp;&amp;y.push({type:&quot;byname&quot;,name:String(g.name),data:v({name:g.name})});else if(b)for(d=0;d&lt;e.length;d++){var _=e[d];-1!==[&quot;number&quot;,&quot;string&quot;].indexOf(typeof _)?(_=String(_),y.push({type:&quot;byname&quot;,name:_,data:v({name:_})})):o.isPlainObject(_)&amp;&amp;y.push({type:&quot;object&quot;,data:v(o.extendFlat({},_))})}for(d=0;d&lt;y.length;d++)if(&quot;byname&quot;===(g=y[d]).type&amp;&amp;!n._frameHash[g.data.name])return o.warn('animate failure: frame not found: &quot;'+g.data.name+'&quot;'),void u();-1!==[&quot;next&quot;,&quot;immediate&quot;].indexOf(r.mode)&amp;&amp;function(){if(0!==n._frameQueue.length){for(;n._frameQueue.length;){var e=n._frameQueue.pop();e.onInterrupt&amp;&amp;e.onInterrupt()}t.emit(&quot;plotly_animationinterrupted&quot;,[])}}(),&quot;reverse&quot;===r.direction&amp;&amp;y.reverse();var w=t._fullLayout._currentFrame;if(w&amp;&amp;r.fromcurrent){var k=-1;for(d=0;d&lt;y.length;d++)if(&quot;byname&quot;===(g=y[d]).type&amp;&amp;g.name===w){k=d;break}if(k&gt;0&amp;&amp;k&lt;y.length-1){var M=[];for(d=0;d&lt;y.length;d++)g=y[d],(&quot;byname&quot;!==y[d].type||d&gt;k)&amp;&amp;M.push(g);y=M}}y.length&gt;0?function(e){if(0!==e.length){for(var i=0;i&lt;e.length;i++){var o;o=&quot;byname&quot;===e[i].type?h.computeFrame(t,e[i].name):e[i].data;var f=l(i),d=s(i);d.duration=Math.min(d.duration,f.duration);var g={frame:o,name:e[i].name,frameOpts:f,transitionOpts:d};i===e.length-1&amp;&amp;(g.onComplete=c(a,2),g.onInterrupt=u),n._frameQueue.push(g)}&quot;immediate&quot;===r.mode&amp;&amp;(n._lastFrameAt=-1/0),n._animationRaf||p()}}(y):(t.emit(&quot;plotly_animated&quot;),a())}))},r.addFrames=function(t,e,r){if(t=o.getGraphDiv(t),null==e)return Promise.resolve();if(!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t+&quot;. It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/&quot;);var n,i,a,s,l=t._transitionData._frames,u=t._transitionData._frameHash;if(!Array.isArray(e))throw new Error(&quot;addFrames failure: frameList must be an Array of frame definitions&quot;+e);var f=l.length+2*e.length,p=[],d={};for(n=e.length-1;n&gt;=0;n--)if(o.isPlainObject(e[n])){var g=e[n].name,m=(u[g]||d[g]||{}).name,v=e[n].name,y=u[m]||d[m];m&amp;&amp;v&amp;&amp;&quot;number&quot;==typeof v&amp;&amp;y&amp;&amp;S&lt;5&amp;&amp;(S++,o.warn('addFrames: overwriting frame &quot;'+(u[m]||d[m]).name+'&quot; with a frame whose name of type &quot;number&quot; also equates to &quot;'+m+'&quot;. This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===S&amp;&amp;o.warn(&quot;addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.&quot;)),d[g]={name:g},p.push({frame:h.supplyFrameDefaults(e[n]),index:r&amp;&amp;void 0!==r[n]&amp;&amp;null!==r[n]?r[n]:f+n})}p.sort((function(t,e){return t.index&gt;e.index?-1:t.index&lt;e.index?1:0}));var x=[],b=[],_=l.length;for(n=p.length-1;n&gt;=0;n--){if(&quot;number&quot;==typeof(i=p[n].frame).name&amp;&amp;o.warn(&quot;Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings&quot;),!i.name)for(;u[i.name=&quot;frame &quot;+t._transitionData._counter++];);if(u[i.name]){for(a=0;a&lt;l.length&amp;&amp;(l[a]||{}).name!==i.name;a++);x.push({type:&quot;replace&quot;,index:a,value:i}),b.unshift({type:&quot;replace&quot;,index:a,value:l[a]})}else s=Math.max(0,Math.min(p[n].index,_)),x.push({type:&quot;insert&quot;,index:s,value:i}),b.unshift({type:&quot;delete&quot;,index:s}),_++}var w=h.modifyFrames,T=h.modifyFrames,k=[t,b],M=[t,x];return c&amp;&amp;c.add(t,w,k,T,M),h.modifyFrames(t,x)},r.deleteFrames=function(t,e){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t);var r,n,i=t._transitionData._frames,a=[],s=[];if(!e)for(e=[],r=0;r&lt;i.length;r++)e.push(r);for((e=e.slice()).sort(),r=e.length-1;r&gt;=0;r--)n=e[r],a.push({type:&quot;delete&quot;,index:n}),s.unshift({type:&quot;insert&quot;,index:n,value:i[n]});var l=h.modifyFrames,u=h.modifyFrames,f=[t,s],p=[t,a];return c&amp;&amp;c.add(t,l,f,u,p),h.modifyFrames(t,a)},r.addTraces=function t(e,n,i){e=o.getGraphDiv(e);var a,s,l=[],u=r.deleteTraces,f=t,h=[e,l],p=[e,n];for(function(t,e,r){var n,i;if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array.&quot;);if(&quot;undefined&quot;==typeof e)throw new Error(&quot;traces must be defined.&quot;);for(Array.isArray(e)||(e=[e]),n=0;n&lt;e.length;n++)if(&quot;object&quot;!=typeof(i=e[n])||Array.isArray(i)||null===i)throw new Error(&quot;all values in traces array must be non-array objects&quot;);if(&quot;undefined&quot;==typeof r||Array.isArray(r)||(r=[r]),&quot;undefined&quot;!=typeof r&amp;&amp;r.length!==e.length)throw new Error(&quot;if indices is specified, traces.length must equal indices.length&quot;)}(e,n,i),Array.isArray(n)||(n=[n]),n=n.map((function(t){return o.extendFlat({},t)})),T.cleanData(n),a=0;a&lt;n.length;a++)e.data.push(n[a]);for(a=0;a&lt;n.length;a++)l.push(-n.length+a);if(&quot;undefined&quot;==typeof i)return s=r.redraw(e),c.add(e,u,h,f,p),s;Array.isArray(i)||(i=[i]);try{O(e,l,i)}catch(t){throw e.data.splice(e.data.length-n.length,n.length),t}return c.startSequence(e),c.add(e,u,h,f,p),s=r.moveTraces(e,l,i),c.stopSequence(e),s},r.deleteTraces=function t(e,n){e=o.getGraphDiv(e);var i,a,s=[],l=r.addTraces,u=t,f=[e,s,n],h=[e,n];if(&quot;undefined&quot;==typeof n)throw new Error(&quot;indices must be an integer or array of integers.&quot;);for(Array.isArray(n)||(n=[n]),z(e,n,&quot;indices&quot;),(n=P(n,e.data.length-1)).sort(o.sorterDes),i=0;i&lt;n.length;i+=1)a=e.data.splice(n[i],1)[0],s.push(a);var p=r.redraw(e);return c.add(e,l,f,u,h),p},r.extendTraces=function t(e,n,i,a){function s(t,e,r){var n,i;if(o.isTypedArray(t))if(r&lt;0){var a=new t.constructor(0),s=R(t,e);r&lt;0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r&lt;e.length){var l=e.length-r;n.set(e.subarray(l)),i.set(t),i.set(e.subarray(0,l),t.length)}else{var c=r-e.length,u=t.length-c;n.set(t.subarray(u)),n.set(e,c),i.set(t.subarray(0,u))}else n=t.concat(e),i=r&gt;=0&amp;&amp;r&lt;n.length?n.splice(0,n.length-r):[];return[n,i]}var l=D(e=o.getGraphDiv(e),n,i,a,s),u=r.redraw(e),f=[e,l.update,i,l.maxPoints];return c.add(e,r.prependTraces,f,t,arguments),u},r.moveTraces=function t(e,n,i){var a,s=[],l=[],u=t,f=t,h=[e=o.getGraphDiv(e),i,n],p=[e,n,i];if(O(e,n,i),n=Array.isArray(n)?n:[n],&quot;undefined&quot;==typeof i)for(i=[],a=0;a&lt;n.length;a++)i.push(-n.length+a);for(i=Array.isArray(i)?i:[i],n=P(n,e.data.length-1),i=P(i,e.data.length-1),a=0;a&lt;e.data.length;a++)-1===n.indexOf(a)&amp;&amp;s.push(e.data[a]);for(a=0;a&lt;n.length;a++)l.push({newIndex:i[a],trace:e.data[n[a]]});for(l.sort((function(t,e){return t.newIndex-e.newIndex})),a=0;a&lt;l.length;a+=1)s.splice(l[a].newIndex,0,l[a].trace);e.data=s;var d=r.redraw(e);return c.add(e,u,h,f,p),d},r.prependTraces=function t(e,n,i,a){function s(t,e,r){var n,i;if(o.isTypedArray(t))if(r&lt;=0){var a=new t.constructor(0),s=R(e,t);r&lt;0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r&lt;e.length){var l=e.length-r;n.set(e.subarray(0,l)),i.set(e.subarray(l)),i.set(t,l)}else{var c=r-e.length;n.set(e),n.set(t.subarray(0,c),e.length),i.set(t.subarray(c))}else n=e.concat(t),i=r&gt;=0&amp;&amp;r&lt;n.length?n.splice(r,n.length):[];return[n,i]}var l=D(e=o.getGraphDiv(e),n,i,a,s),u=r.redraw(e),f=[e,l.update,i,l.maxPoints];return c.add(e,r.extendTraces,f,t,arguments),u},r.newPlot=function(t,e,n,i){return t=o.getGraphDiv(t),h.cleanPlot([],{},t._fullData||[],t._fullLayout||{}),h.purge(t),r.plot(t,e,n,i)},r.plot=function(t,e,i,a){var s;if(t=o.getGraphDiv(t),l.init(t),o.isPlainObject(e)){var c=e;e=c.data,i=c.layout,a=c.config,s=c.frames}if(!1===l.triggerHandler(t,&quot;plotly_beforeplot&quot;,[e,i,a]))return Promise.reject();e||i||o.isPlotDiv(t)||o.warn(&quot;Calling Plotly.plot as if redrawing but this container doesn't yet have a plot.&quot;,t),I(t,a),i||(i={}),n.select(t).classed(&quot;js-plotly-plot&quot;,!0),g.makeTester(),Array.isArray(t._promises)||(t._promises=[]);var f=0===(t.data||[]).length&amp;&amp;Array.isArray(e);Array.isArray(e)&amp;&amp;(T.cleanData(e),f?t.data=e:t.data.push.apply(t.data,e),t.empty=!1),t.layout&amp;&amp;!f||(t.layout=T.cleanLayout(i)),h.supplyDefaults(t);var m=t._fullLayout,y=m._has(&quot;cartesian&quot;);if(!m._has(&quot;polar&quot;)&amp;&amp;e&amp;&amp;e[0]&amp;&amp;e[0].r)return o.log(&quot;Legacy polar charts are deprecated!&quot;),function(t,e,r){var i=n.select(t).selectAll(&quot;.plot-container&quot;).data([0]);i.enter().insert(&quot;div&quot;,&quot;:first-child&quot;).classed(&quot;plot-container plotly&quot;,!0);var a=i.selectAll(&quot;.svg-container&quot;).data([0]);a.enter().append(&quot;div&quot;).classed(&quot;svg-container&quot;,!0).style(&quot;position&quot;,&quot;relative&quot;),a.html(&quot;&quot;),e&amp;&amp;(t.data=e);r&amp;&amp;(t.layout=r);p.manager.fillLayout(t),a.style({width:t._fullLayout.width+&quot;px&quot;,height:t._fullLayout.height+&quot;px&quot;}),t.framework=p.manager.framework(t),t.framework({data:t.data,layout:t.layout},a.node()),t.framework.setUndoPoint();var s=t.framework.svg(),l=1,c=t._fullLayout.title?t._fullLayout.title.text:&quot;&quot;;&quot;&quot;!==c&amp;&amp;c||(l=0);var u=function(){this.call(x.convertToTspans,t)},f=s.select(&quot;.title-group text&quot;).call(u);if(t._context.edits.titleText){var d=o._(t,&quot;Click to enter Plot title&quot;);c&amp;&amp;c!==d||(l=.2,f.attr({&quot;data-unformatted&quot;:d}).text(d).style({opacity:l}).on(&quot;mouseover.opacity&quot;,(function(){n.select(this).transition().duration(100).style(&quot;opacity&quot;,1)})).on(&quot;mouseout.opacity&quot;,(function(){n.select(this).transition().duration(1e3).style(&quot;opacity&quot;,0)})));var g=function(){this.call(x.makeEditable,{gd:t}).on(&quot;edit&quot;,(function(e){t.framework({layout:{title:{text:e}}}),this.text(e).call(u),this.call(g)})).on(&quot;cancel&quot;,(function(){var t=this.attr(&quot;data-unformatted&quot;);this.text(t).call(u)}))};f.call(g)}return t._context.setBackground(t,t._fullLayout.paper_bgcolor),h.addLinks(t),Promise.resolve()}(t,e,i);m._replotting=!0,(f||m._shouldCreateBgLayer)&amp;&amp;(lt(t),m._shouldCreateBgLayer&amp;&amp;delete m._shouldCreateBgLayer),t.framework!==lt&amp;&amp;(t.framework=lt,lt(t)),g.initGradients(t),f&amp;&amp;d.saveShowSpikeInitial(t);var b=!t.calcdata||t.calcdata.length!==(t._fullData||[]).length;b&amp;&amp;h.doCalcdata(t);for(var _=0;_&lt;t.calcdata.length;_++)t.calcdata[_][0].trace=t._fullData[_];t._context.responsive?t._responsiveChartHandler||(t._responsiveChartHandler=function(){o.isHidden(t)||h.resize(t)},window.addEventListener(&quot;resize&quot;,t._responsiveChartHandler)):o.clearResponsive(t);var w=o.extendFlat({},m._size),M=0;function A(){if(h.clearAutoMarginIds(t),k.drawMarginPushers(t),d.allowAutoMargin(t),m._has(&quot;pie&quot;))for(var e=t._fullData,r=0;r&lt;e.length;r++){var n=e[r];&quot;pie&quot;===n.type&amp;&amp;n.automargin&amp;&amp;h.allowAutoMargin(t,&quot;pie.&quot;+n.uid+&quot;.automargin&quot;)}return h.doAutoMargin(t),h.previousPromises(t)}function S(){t._transitioning||(k.doAutoRangeAndConstraints(t),f&amp;&amp;d.saveRangeInitial(t),u.getComponentMethod(&quot;rangeslider&quot;,&quot;calcAutorange&quot;)(t))}var C=[h.previousPromises,function(){if(s)return r.addFrames(t,s)},function e(){for(var r=m._basePlotModules,n=0;n&lt;r.length;n++)r[n].drawFramework&amp;&amp;r[n].drawFramework(t);if(!m._glcanvas&amp;&amp;m._has(&quot;gl&quot;)&amp;&amp;(m._glcanvas=m._glcontainer.selectAll(&quot;.gl-canvas&quot;).data([{key:&quot;contextLayer&quot;,context:!0,pick:!1},{key:&quot;focusLayer&quot;,context:!1,pick:!1},{key:&quot;pickLayer&quot;,context:!1,pick:!0}],(function(t){return t.key})),m._glcanvas.enter().append(&quot;canvas&quot;).attr(&quot;class&quot;,(function(t){return&quot;gl-canvas gl-canvas-&quot;+t.key.replace(&quot;Layer&quot;,&quot;&quot;)})).style({position:&quot;absolute&quot;,top:0,left:0,overflow:&quot;visible&quot;,&quot;pointer-events&quot;:&quot;none&quot;})),m._glcanvas){m._glcanvas.attr(&quot;width&quot;,m.width).attr(&quot;height&quot;,m.height);var i=m._glcanvas.data()[0].regl;if(i&amp;&amp;(Math.floor(m.width)!==i._gl.drawingBufferWidth||Math.floor(m.height)!==i._gl.drawingBufferHeight)){var a=&quot;WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.&quot;;if(!M)return o.log(a+&quot; Clearing graph and plotting again.&quot;),h.cleanPlot([],{},t._fullData,m),h.supplyDefaults(t),m=t._fullLayout,h.doCalcdata(t),M++,e();o.error(a)}}return&quot;h&quot;===m.modebar.orientation?m._modebardiv.style(&quot;height&quot;,null).style(&quot;width&quot;,&quot;100%&quot;):m._modebardiv.style(&quot;width&quot;,null).style(&quot;height&quot;,m.height+&quot;px&quot;),h.previousPromises(t)},A,function(){if(h.didMarginChange(w,m._size))return o.syncOrAsync([A,k.layoutStyles],t)}];y&amp;&amp;C.push((function(){if(b)return o.syncOrAsync([u.getComponentMethod(&quot;shapes&quot;,&quot;calcAutorange&quot;),u.getComponentMethod(&quot;annotations&quot;,&quot;calcAutorange&quot;),S],t);S()})),C.push(k.layoutStyles),y&amp;&amp;C.push((function(){return d.draw(t,f?&quot;&quot;:&quot;redraw&quot;)}),(function(t){t._fullLayout._insideTickLabelsAutorange&amp;&amp;q(t,t._fullLayout._insideTickLabelsAutorange).then((function(){t._fullLayout._insideTickLabelsAutorange=void 0}))})),C.push(k.drawData,k.finalDraw,v,h.addLinks,h.rehover,h.redrag,h.doAutoMargin,(function(t){t._fullLayout._insideTickLabelsAutorange&amp;&amp;f&amp;&amp;d.saveRangeInitial(t,!0)}),h.previousPromises);var L=o.syncOrAsync(C,t);return L&amp;&amp;L.then||(L=Promise.resolve()),L.then((function(){return E(t),t}))},r.purge=function(t){var e=(t=o.getGraphDiv(t))._fullLayout||{},r=t._fullData||[];return h.cleanPlot([],{},r,e),h.purge(t),l.purge(t),e._container&amp;&amp;e._container.remove(),delete t._context,t},r.react=function(t,e,n,i){var a,l;t=o.getGraphDiv(t),T.clearPromiseQueue(t);var c=t._fullData,p=t._fullLayout;if(o.isPlotDiv(t)&amp;&amp;c&amp;&amp;p){if(o.isPlainObject(e)){var d=e;e=d.data,n=d.layout,i=d.config,a=d.frames}var g=!1;if(i){var m=o.extendDeep({},t._context);t._context=void 0,I(t,i),g=function t(e,r){var n;for(n in e)if(&quot;_&quot;!==n.charAt(0)){var i=e[n],a=r[n];if(i!==a)if(o.isPlainObject(i)&amp;&amp;o.isPlainObject(a)){if(t(i,a))return!0}else{if(!Array.isArray(i)||!Array.isArray(a))return!0;if(i.length!==a.length)return!0;for(var s=0;s&lt;i.length;s++)if(i[s]!==a[s]){if(!o.isPlainObject(i[s])||!o.isPlainObject(a[s]))return!0;if(t(i[s],a[s]))return!0}}}}(m,t._context)}t.data=e||[],T.cleanData(t.data),t.layout=n||{},T.cleanLayout(t.layout),function(t,e,r,n){var i,a,l,c,u,f,h,p,d=n._preGUI,g=[],m={};for(i in d){if(u=et(i,$)){if(a=u.attr||u.head+&quot;.uirevision&quot;,(c=(l=s(n,a).get())&amp;&amp;rt(a,e))&amp;&amp;c===l&amp;&amp;(null===(f=d[i])&amp;&amp;(f=void 0),at(p=(h=s(e,i)).get(),f))){void 0===p&amp;&amp;&quot;autorange&quot;===i.substr(i.length-9)&amp;&amp;g.push(i.substr(0,i.length-10)),h.set(B(s(n,i).get()));continue}}else o.warn(&quot;unrecognized GUI edit: &quot;+i);delete d[i],&quot;range[&quot;===i.substr(i.length-8,6)&amp;&amp;(m[i.substr(0,i.length-9)]=1)}for(var v=0;v&lt;g.length;v++){var y=g[v];if(m[y]){var x=s(e,y).get();x&amp;&amp;delete x.autorange}}var b=n._tracePreGUI;for(var _ in b){var w,T=b[_],k=null;for(i in T){if(!k){var M=nt(_,r);if(M&lt;0){delete b[_];break}var A=it(_,t,(w=r[M]._fullInput).index);if(A&lt;0){delete b[_];break}k=t[A]}if(u=et(i,tt)){if(u.attr?c=(l=s(n,u.attr).get())&amp;&amp;rt(u.attr,e):(l=w.uirevision,void 0===(c=k.uirevision)&amp;&amp;(c=e.uirevision)),c&amp;&amp;c===l&amp;&amp;(null===(f=T[i])&amp;&amp;(f=void 0),at(p=(h=s(k,i)).get(),f))){h.set(B(s(w,i).get()));continue}}else o.warn(&quot;unrecognized GUI edit: &quot;+i+&quot; in trace uid &quot;+_);delete T[i]}}}(t.data,t.layout,c,p),h.supplyDefaults(t,{skipUpdateCalc:!0});var v=t._fullData,y=t._fullLayout,x=void 0===y.datarevision,b=y.transition,_=function(t,e,r,n,i){var a=M.layoutFlags();function o(t){return f.getLayoutValObject(r,t)}a.arrays={},a.rangesAltered={},a.nChanges=0,a.nChangesAnim=0,ot(e,r,[],{getValObject:o,flags:a,immutable:n,transition:i,gd:t}),(a.plot||a.calc)&amp;&amp;(a.layoutReplot=!0);i&amp;&amp;a.nChanges&amp;&amp;a.nChangesAnim&amp;&amp;(a.anim=a.nChanges===a.nChangesAnim?&quot;all&quot;:&quot;some&quot;);return a}(t,p,y,x,b),w=_.newDataRevision,A=function(t,e,r,n,i,a){var o=e.length===r.length;if(!i&amp;&amp;!o)return{fullReplot:!0,calc:!0};var s,l,c=M.traceFlags();c.arrays={},c.nChanges=0,c.nChangesAnim=0;var u={getValObject:function(t){var e=f.getTraceValObject(l,t);return!l._module.animatable&amp;&amp;e.anim&amp;&amp;(e.anim=!1),e},flags:c,immutable:n,transition:i,newDataRevision:a,gd:t},p={};for(s=0;s&lt;e.length;s++)if(r[s]){if(l=r[s]._fullInput,h.hasMakesDataTransform(l)&amp;&amp;(l=r[s]),p[l.uid])continue;p[l.uid]=1,ot(e[s]._fullInput,l,[],u)}(c.calc||c.plot)&amp;&amp;(c.fullReplot=!0);i&amp;&amp;c.nChanges&amp;&amp;c.nChangesAnim&amp;&amp;(c.anim=c.nChanges===c.nChangesAnim&amp;&amp;o?&quot;all&quot;:&quot;some&quot;);return c}(t,c,v,x,b,w);if(J(t)&amp;&amp;(_.layoutReplot=!0),A.calc||_.calc){t.calcdata=void 0;for(var S=Object.getOwnPropertyNames(y),C=0;C&lt;S.length;C++){var L=S[C],P=L.substring(0,5);if(&quot;xaxis&quot;===P||&quot;yaxis&quot;===P){var z=y[L]._emptyCategories;z&amp;&amp;z()}}}else h.supplyDefaultsUpdateCalc(t.calcdata,v);var O=[];if(a&amp;&amp;(t._transitionData={},h.createTransitionData(t),O.push((function(){return r.addFrames(t,a)}))),y.transition&amp;&amp;!g&amp;&amp;(A.anim||_.anim))_.ticks&amp;&amp;O.push(k.doTicksRelayout),h.doCalcdata(t),k.doAutoRangeAndConstraints(t),O.push((function(){return h.transitionFromReact(t,A,_,p)}));else if(A.fullReplot||_.layoutReplot||g)t._fullLayout._skipDefaults=!0,O.push(r.plot);else{for(var D in _.arrays){var R=_.arrays[D];if(R.length){var F=u.getComponentMethod(D,&quot;drawOne&quot;);if(F!==o.noop)for(var N=0;N&lt;R.length;N++)F(t,R[N]);else{var j=u.getComponentMethod(D,&quot;draw&quot;);if(j===o.noop)throw new Error(&quot;cannot draw components: &quot;+D);j(t)}}}O.push(h.previousPromises),A.style&amp;&amp;O.push(k.doTraceStyle),(A.colorbars||_.colorbars)&amp;&amp;O.push(k.doColorBars),_.legend&amp;&amp;O.push(k.doLegend),_.layoutstyle&amp;&amp;O.push(k.layoutStyles),_.axrange&amp;&amp;G(O),_.ticks&amp;&amp;O.push(k.doTicksRelayout),_.modebar&amp;&amp;O.push(k.doModeBar),_.camera&amp;&amp;O.push(k.doCamera),O.push(E)}O.push(h.rehover,h.redrag),(l=o.syncOrAsync(O,t))&amp;&amp;l.then||(l=Promise.resolve(t))}else l=r.newPlot(t,e,n,i);return l.then((function(){return t.emit(&quot;plotly_react&quot;,{data:e,layout:n}),t}))},r.redraw=function(t){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t);return T.cleanData(t.data),T.cleanLayout(t.layout),t.calcdata=void 0,r.plot(t).then((function(){return t.emit(&quot;plotly_redraw&quot;),t}))},r.relayout=q,r.restyle=F,r.setPlotConfig=function(t){return o.extendFlat(_,t)},r.update=K,r._guiRelayout=Q(q),r._guiRestyle=Q(F),r._guiUpdate=Q(K),r._storeDirectGUIEdit=function(t,e,r){for(var n in r){j(n,s(t,n).get(),r[n],e)}}},{&quot;../components/color&quot;:643,&quot;../components/drawing&quot;:665,&quot;../constants/xmlns_namespaces&quot;:754,&quot;../lib&quot;:778,&quot;../lib/events&quot;:767,&quot;../lib/queue&quot;:794,&quot;../lib/svg_text_utils&quot;:803,&quot;../plots/cartesian/axes&quot;:828,&quot;../plots/cartesian/constants&quot;:834,&quot;../plots/cartesian/graph_interact&quot;:837,&quot;../plots/cartesian/select&quot;:847,&quot;../plots/plots&quot;:891,&quot;../plots/polar/legacy&quot;:899,&quot;../registry&quot;:911,&quot;./edit_types&quot;:810,&quot;./helpers&quot;:811,&quot;./manage_arrays&quot;:813,&quot;./plot_config&quot;:815,&quot;./plot_schema&quot;:816,&quot;./subroutines&quot;:818,d3:169,&quot;fast-isnumeric&quot;:241,&quot;has-hover&quot;:440}],815:[function(t,e,r){&quot;use strict&quot;;var n={staticPlot:{valType:&quot;boolean&quot;,dflt:!1},plotlyServerURL:{valType:&quot;string&quot;,dflt:&quot;&quot;},editable:{valType:&quot;boolean&quot;,dflt:!1},edits:{annotationPosition:{valType:&quot;boolean&quot;,dflt:!1},annotationTail:{valType:&quot;boolean&quot;,dflt:!1},annotationText:{valType:&quot;boolean&quot;,dflt:!1},axisTitleText:{valType:&quot;boolean&quot;,dflt:!1},colorbarPosition:{valType:&quot;boolean&quot;,dflt:!1},colorbarTitleText:{valType:&quot;boolean&quot;,dflt:!1},legendPosition:{valType:&quot;boolean&quot;,dflt:!1},legendText:{valType:&quot;boolean&quot;,dflt:!1},shapePosition:{valType:&quot;boolean&quot;,dflt:!1},titleText:{valType:&quot;boolean&quot;,dflt:!1}},autosizable:{valType:&quot;boolean&quot;,dflt:!1},responsive:{valType:&quot;boolean&quot;,dflt:!1},fillFrame:{valType:&quot;boolean&quot;,dflt:!1},frameMargins:{valType:&quot;number&quot;,dflt:0,min:0,max:.5},scrollZoom:{valType:&quot;flaglist&quot;,flags:[&quot;cartesian&quot;,&quot;gl3d&quot;,&quot;geo&quot;,&quot;mapbox&quot;],extras:[!0,!1],dflt:&quot;gl3d+geo+mapbox&quot;},doubleClick:{valType:&quot;enumerated&quot;,values:[!1,&quot;reset&quot;,&quot;autosize&quot;,&quot;reset+autosize&quot;],dflt:&quot;reset+autosize&quot;},doubleClickDelay:{valType:&quot;number&quot;,dflt:300,min:0},showAxisDragHandles:{valType:&quot;boolean&quot;,dflt:!0},showAxisRangeEntryBoxes:{valType:&quot;boolean&quot;,dflt:!0},showTips:{valType:&quot;boolean&quot;,dflt:!0},showLink:{valType:&quot;boolean&quot;,dflt:!1},linkText:{valType:&quot;string&quot;,dflt:&quot;Edit chart&quot;,noBlank:!0},sendData:{valType:&quot;boolean&quot;,dflt:!0},showSources:{valType:&quot;any&quot;,dflt:!1},displayModeBar:{valType:&quot;enumerated&quot;,values:[&quot;hover&quot;,!0,!1],dflt:&quot;hover&quot;},showSendToCloud:{valType:&quot;boolean&quot;,dflt:!1},showEditInChartStudio:{valType:&quot;boolean&quot;,dflt:!1},modeBarButtonsToRemove:{valType:&quot;any&quot;,dflt:[]},modeBarButtonsToAdd:{valType:&quot;any&quot;,dflt:[]},modeBarButtons:{valType:&quot;any&quot;,dflt:!1},toImageButtonOptions:{valType:&quot;any&quot;,dflt:{}},displaylogo:{valType:&quot;boolean&quot;,dflt:!0},watermark:{valType:&quot;boolean&quot;,dflt:!1},plotGlPixelRatio:{valType:&quot;number&quot;,dflt:2,min:1,max:4},setBackground:{valType:&quot;any&quot;,dflt:&quot;transparent&quot;},topojsonURL:{valType:&quot;string&quot;,noBlank:!0,dflt:&quot;https://cdn.plot.ly/&quot;},mapboxAccessToken:{valType:&quot;string&quot;,dflt:null},logging:{valType:&quot;integer&quot;,min:0,max:2,dflt:1},notifyOnLogging:{valType:&quot;integer&quot;,min:0,max:2,dflt:0},queueLength:{valType:&quot;integer&quot;,min:0,dflt:0},globalTransforms:{valType:&quot;any&quot;,dflt:[]},locale:{valType:&quot;string&quot;,dflt:&quot;en-US&quot;},locales:{valType:&quot;any&quot;,dflt:{}}},i={};!function t(e,r){for(var n in e){var i=e[n];i.valType?r[n]=i.dflt:(r[n]||(r[n]={}),t(i,r[n]))}}(n,i),e.exports={configAttributes:n,dfltConfig:i}},{}],816:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../plots/attributes&quot;),o=t(&quot;../plots/layout_attributes&quot;),s=t(&quot;../plots/frame_attributes&quot;),l=t(&quot;../plots/animation_attributes&quot;),c=t(&quot;./plot_config&quot;).configAttributes,u=t(&quot;../plots/polar/legacy/area_attributes&quot;),f=t(&quot;../plots/polar/legacy/axis_attributes&quot;),h=t(&quot;./edit_types&quot;),p=i.extendFlat,d=i.extendDeepAll,g=i.isPlainObject,m=i.isArrayOrTypedArray,v=i.nestedProperty,y=i.valObjectMeta,x=[&quot;_isSubplotObj&quot;,&quot;_isLinkedToArray&quot;,&quot;_arrayAttrRegexps&quot;,&quot;_deprecated&quot;];function b(t,e,r){if(!t)return!1;if(t._isLinkedToArray)if(_(e[r]))r++;else if(r&lt;e.length)return!1;for(;r&lt;e.length;r++){var n=t[e[r]];if(!g(n))break;if(t=n,r===e.length-1)break;if(t._isLinkedToArray){if(!_(e[++r]))return!1}else if(&quot;info_array&quot;===t.valType){var i=e[++r];if(!_(i))return!1;var a=t.items;if(Array.isArray(a)){if(i&gt;=a.length)return!1;if(2===t.dimensions){if(r++,e.length===r)return t;var o=e[r];if(!_(o))return!1;t=a[i][o]}else t=a[i]}else t=a}}return t}function _(t){return t===Math.round(t)&amp;&amp;t&gt;=0}function w(){var t,e,r={};for(t in d(r,o),n.subplotsRegistry){if((e=n.subplotsRegistry[t]).layoutAttributes)if(Array.isArray(e.attr))for(var i=0;i&lt;e.attr.length;i++)M(r,e,e.attr[i]);else M(r,e,&quot;subplot&quot;===e.attr?e.name:e.attr)}for(t in r=function(t){return p(t,{radialaxis:f.radialaxis,angularaxis:f.angularaxis}),p(t,f.layout),t}(r),n.componentsRegistry){var a=(e=n.componentsRegistry[t]).schema;if(a&amp;&amp;(a.subplots||a.layout)){var s=a.subplots;if(s&amp;&amp;s.xaxis&amp;&amp;!s.yaxis)for(var l in s.xaxis)delete r.yaxis[l]}else&quot;colorscale&quot;===e.name?d(r,e.layoutAttributes):e.layoutAttributes&amp;&amp;A(r,e.layoutAttributes,e.name)}return{layoutAttributes:k(r)}}function T(){var t={frames:d({},s)};return k(t),t.frames}function k(t){return function(t){r.crawl(t,(function(t,e,n){r.isValObject(t)?&quot;data_array&quot;===t.valType?(t.role=&quot;data&quot;,n[e+&quot;src&quot;]={valType:&quot;string&quot;,editType:&quot;none&quot;}):!0===t.arrayOk&amp;&amp;(n[e+&quot;src&quot;]={valType:&quot;string&quot;,editType:&quot;none&quot;}):g(t)&amp;&amp;(t.role=&quot;object&quot;)}))}(t),function(t){r.crawl(t,(function(t,e,r){if(t){var n=t._isLinkedToArray;n&amp;&amp;(delete t._isLinkedToArray,r[e]={items:{}},r[e].items[n]=t,r[e].role=&quot;object&quot;)}}))}(t),function(t){!function t(e){for(var r in e)if(g(e[r]))t(e[r]);else if(Array.isArray(e[r]))for(var n=0;n&lt;e[r].length;n++)t(e[r][n]);else e[r]instanceof RegExp&amp;&amp;(e[r]=e[r].toString())}(t)}(t),t}function M(t,e,r){var n=v(t,r),i=d({},e.layoutAttributes);i._isSubplotObj=!0,n.set(i)}function A(t,e,r){var n=v(t,r);n.set(d(n.get()||{},e))}r.IS_SUBPLOT_OBJ=&quot;_isSubplotObj&quot;,r.IS_LINKED_TO_ARRAY=&quot;_isLinkedToArray&quot;,r.DEPRECATED=&quot;_deprecated&quot;,r.UNDERSCORE_ATTRS=x,r.get=function(){var t={};n.allTypes.concat(&quot;area&quot;).forEach((function(e){t[e]=function(t){var e,i;&quot;area&quot;===t?(e={attributes:u},i={}):(e=n.modules[t]._module,i=e.basePlotModule);var o={type:null},s=d({},a),l=d({},e.attributes);r.crawl(l,(function(t,e,r,n,i){v(s,i).set(void 0),void 0===t&amp;&amp;v(l,i).set(void 0)})),d(o,s),n.traceIs(t,&quot;noOpacity&quot;)&amp;&amp;delete o.opacity;n.traceIs(t,&quot;showLegend&quot;)||(delete o.showlegend,delete o.legendgroup);n.traceIs(t,&quot;noHover&quot;)&amp;&amp;(delete o.hoverinfo,delete o.hoverlabel);e.selectPoints||delete o.selectedpoints;d(o,l),i.attributes&amp;&amp;d(o,i.attributes);o.type=t;var c={meta:e.meta||{},categories:e.categories||{},animatable:Boolean(e.animatable),type:t,attributes:k(o)};if(e.layoutAttributes){var f={};d(f,e.layoutAttributes),c.layoutAttributes=k(f)}e.animatable||r.crawl(c,(function(t){r.isValObject(t)&amp;&amp;&quot;anim&quot;in t&amp;&amp;delete t.anim}));return c}(e)}));var e={};return Object.keys(n.transformsRegistry).forEach((function(t){e[t]=function(t){var e=n.transformsRegistry[t],r=d({},e.attributes);return Object.keys(n.componentsRegistry).forEach((function(e){var i=n.componentsRegistry[e];i.schema&amp;&amp;i.schema.transforms&amp;&amp;i.schema.transforms[t]&amp;&amp;Object.keys(i.schema.transforms[t]).forEach((function(e){A(r,i.schema.transforms[t][e],e)}))})),{attributes:k(r)}}(t)})),{defs:{valObjects:y,metaKeys:x.concat([&quot;description&quot;,&quot;role&quot;,&quot;editType&quot;,&quot;impliedEdits&quot;]),editType:{traces:h.traces,layout:h.layout},impliedEdits:{}},traces:t,layout:w(),transforms:e,frames:T(),animation:k(l),config:k(c)}},r.crawl=function(t,e,n,i){var a=n||0;i=i||&quot;&quot;,Object.keys(t).forEach((function(n){var o=t[n];if(-1===x.indexOf(n)){var s=(i?i+&quot;.&quot;:&quot;&quot;)+n;e(o,n,t,a,s),r.isValObject(o)||g(o)&amp;&amp;&quot;impliedEdits&quot;!==n&amp;&amp;r.crawl(o,e,a+1,s)}}))},r.isValObject=function(t){return t&amp;&amp;void 0!==t.valType},r.findArrayAttributes=function(t){var e,n,i=[],o=[],s=[];function l(t,r,a,l){o=o.slice(0,l).concat([r]),s=s.slice(0,l).concat([t&amp;&amp;t._isLinkedToArray]),t&amp;&amp;(&quot;data_array&quot;===t.valType||!0===t.arrayOk)&amp;&amp;!(&quot;colorbar&quot;===o[l-1]&amp;&amp;(&quot;ticktext&quot;===r||&quot;tickvals&quot;===r))&amp;&amp;function t(e,r,a){var l=e[o[r]],c=a+o[r];if(r===o.length-1)m(l)&amp;&amp;i.push(n+c);else if(s[r]){if(Array.isArray(l))for(var u=0;u&lt;l.length;u++)g(l[u])&amp;&amp;t(l[u],r+1,c+&quot;[&quot;+u+&quot;].&quot;)}else g(l)&amp;&amp;t(l,r+1,c+&quot;.&quot;)}(e,0,&quot;&quot;)}e=t,n=&quot;&quot;,r.crawl(a,l),t._module&amp;&amp;t._module.attributes&amp;&amp;r.crawl(t._module.attributes,l);var c=t.transforms;if(c)for(var u=0;u&lt;c.length;u++){var f=c[u],h=f._module;h&amp;&amp;(n=&quot;transforms[&quot;+u+&quot;].&quot;,e=f,r.crawl(h.attributes,l))}return i},r.getTraceValObject=function(t,e){var r,i,o=e[0],s=1;if(&quot;transforms&quot;===o){if(1===e.length)return a.transforms;var l=t.transforms;if(!Array.isArray(l)||!l.length)return!1;var c=e[1];if(!_(c)||c&gt;=l.length)return!1;i=(r=(n.transformsRegistry[l[c].type]||{}).attributes)&amp;&amp;r[e[2]],s=3}else if(&quot;area&quot;===t.type)i=u[o];else{var f=t._module;if(f||(f=(n.modules[t.type||a.type.dflt]||{})._module),!f)return!1;if(!(i=(r=f.attributes)&amp;&amp;r[o])){var h=f.basePlotModule;h&amp;&amp;h.attributes&amp;&amp;(i=h.attributes[o])}i||(i=a[o])}return b(i,e,s)},r.getLayoutValObject=function(t,e){return b(function(t,e){var r,i,a,s,l=t._basePlotModules;if(l){var c;for(r=0;r&lt;l.length;r++){if((a=l[r]).attrRegex&amp;&amp;a.attrRegex.test(e)){if(a.layoutAttrOverrides)return a.layoutAttrOverrides;!c&amp;&amp;a.layoutAttributes&amp;&amp;(c=a.layoutAttributes)}var u=a.baseLayoutAttrOverrides;if(u&amp;&amp;e in u)return u[e]}if(c)return c}var h=t._modules;if(h)for(r=0;r&lt;h.length;r++)if((s=h[r].layoutAttributes)&amp;&amp;e in s)return s[e];for(i in n.componentsRegistry){if(&quot;colorscale&quot;===(a=n.componentsRegistry[i]).name&amp;&amp;0===e.indexOf(&quot;coloraxis&quot;))return a.layoutAttributes[e];if(!a.schema&amp;&amp;e===a.name)return a.layoutAttributes}if(e in o)return o[e];if(&quot;radialaxis&quot;===e||&quot;angularaxis&quot;===e)return f[e];return f.layout[e]||!1}(t,e[0]),e,1)}},{&quot;../lib&quot;:778,&quot;../plots/animation_attributes&quot;:822,&quot;../plots/attributes&quot;:824,&quot;../plots/frame_attributes&quot;:857,&quot;../plots/layout_attributes&quot;:882,&quot;../plots/polar/legacy/area_attributes&quot;:897,&quot;../plots/polar/legacy/axis_attributes&quot;:898,&quot;../registry&quot;:911,&quot;./edit_types&quot;:810,&quot;./plot_config&quot;:815}],817:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/attributes&quot;),a={name:{valType:&quot;string&quot;,editType:&quot;none&quot;}};function o(t){return t&amp;&amp;&quot;string&quot;==typeof t}function s(t){var e=t.length-1;return&quot;s&quot;!==t.charAt(e)&amp;&amp;n.warn(&quot;bad argument to arrayDefaultKey: &quot;+t),t.substr(0,t.length-1)+&quot;defaults&quot;}a.templateitemname={valType:&quot;string&quot;,editType:&quot;calc&quot;},r.templatedArray=function(t,e){return e._isLinkedToArray=t,e.name=a.name,e.templateitemname=a.templateitemname,e},r.traceTemplater=function(t){var e,r,a={};for(e in t)r=t[e],Array.isArray(r)&amp;&amp;r.length&amp;&amp;(a[e]=0);return{newTrace:function(o){var s={type:e=n.coerce(o,{},i,&quot;type&quot;),_template:null};if(e in a){r=t[e];var l=a[e]%r.length;a[e]++,s._template=r[l]}return s}}},r.newContainer=function(t,e,r){var i=t._template,a=i&amp;&amp;(i[e]||r&amp;&amp;i[r]);return n.isPlainObject(a)||(a=null),t[e]={_template:a}},r.arrayTemplater=function(t,e,r){var n=t._template,i=n&amp;&amp;n[s(e)],a=n&amp;&amp;n[e];Array.isArray(a)&amp;&amp;a.length||(a=[]);var l={};return{newItem:function(t){var e={name:t.name,_input:t},n=e.templateitemname=t.templateitemname;if(!o(n))return e._template=i,e;for(var s=0;s&lt;a.length;s++){var c=a[s];if(c.name===n)return l[n]=1,e._template=c,e}return e[r]=t[r]||!1,e._template=!1,e},defaultItems:function(){for(var t=[],e=0;e&lt;a.length;e++){var r=a[e],n=r.name;if(o(n)&amp;&amp;!l[n]){var i={_template:r,name:n,_input:{_templateitemname:n}};i.templateitemname=r.templateitemname,t.push(i),l[n]=1}}return t}}},r.arrayDefaultKey=s,r.arrayEditor=function(t,e,r){var i=(n.nestedProperty(t,e).get()||[]).length,a=r._index,o=a&gt;=i&amp;&amp;(r._input||{})._templateitemname;o&amp;&amp;(a=i);var s,l=e+&quot;[&quot;+a+&quot;]&quot;;function c(){s={},o&amp;&amp;(s[l]={},s[l].templateitemname=o)}function u(t,e){o?n.nestedProperty(s[l],t).set(e):s[l+&quot;.&quot;+t]=e}function f(){var t=s;return c(),t}return c(),{modifyBase:function(t,e){s[t]=e},modifyItem:u,getUpdateObj:f,applyUpdate:function(e,r){e&amp;&amp;u(e,r);var i=f();for(var a in i)n.nestedProperty(t,a).set(i[a])}}}},{&quot;../lib&quot;:778,&quot;../plots/attributes&quot;:824}],818:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../registry&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../lib/clear_gl_canvases&quot;),l=t(&quot;../components/color&quot;),c=t(&quot;../components/drawing&quot;),u=t(&quot;../components/titles&quot;),f=t(&quot;../components/modebar&quot;),h=t(&quot;../plots/cartesian/axes&quot;),p=t(&quot;../constants/alignment&quot;),d=t(&quot;../plots/cartesian/constraints&quot;),g=d.enforce,m=d.clean,v=t(&quot;../plots/cartesian/autorange&quot;).doAutoRange;function y(t,e,r){for(var n=0;n&lt;r.length;n++){var i=r[n][0],a=r[n][1];if(!(i[0]&gt;=t[1]||i[1]&lt;=t[0])&amp;&amp;(a[0]&lt;e[1]&amp;&amp;a[1]&gt;e[0]))return!0}return!1}function x(t){var e,i,s,u,d,g,m=t._fullLayout,v=m._size,x=v.p,_=h.list(t,&quot;&quot;,!0);if(m._paperdiv.style({width:t._context.responsive&amp;&amp;m.autosize&amp;&amp;!t._context._hasZeroWidth&amp;&amp;!t.layout.width?&quot;100%&quot;:m.width+&quot;px&quot;,height:t._context.responsive&amp;&amp;m.autosize&amp;&amp;!t._context._hasZeroHeight&amp;&amp;!t.layout.height?&quot;100%&quot;:m.height+&quot;px&quot;}).selectAll(&quot;.main-svg&quot;).call(c.setSize,m.width,m.height),t._context.setBackground(t,m.paper_bgcolor),r.drawMainTitle(t),f.manage(t),!m._has(&quot;cartesian&quot;))return a.previousPromises(t);function T(t,e,r){var n=t._lw/2;return&quot;x&quot;===t._id.charAt(0)?e?&quot;top&quot;===r?e._offset-x-n:e._offset+e._length+x+n:v.t+v.h*(1-(t.position||0))+n%1:e?&quot;right&quot;===r?e._offset+e._length+x+n:e._offset-x-n:v.l+v.w*(t.position||0)+n%1}for(e=0;e&lt;_.length;e++){var k=(u=_[e])._anchorAxis;u._linepositions={},u._lw=c.crispRound(t,u.linewidth,1),u._mainLinePosition=T(u,k,u.side),u._mainMirrorPosition=u.mirror&amp;&amp;k?T(u,k,p.OPPOSITE_SIDE[u.side]):null}var M=[],A=[],S=[],E=1===l.opacity(m.paper_bgcolor)&amp;&amp;1===l.opacity(m.plot_bgcolor)&amp;&amp;m.paper_bgcolor===m.plot_bgcolor;for(i in m._plots)if((s=m._plots[i]).mainplot)s.bg&amp;&amp;s.bg.remove(),s.bg=void 0;else{var C=s.xaxis.domain,L=s.yaxis.domain,I=s.plotgroup;if(y(C,L,S)){var P=I.node(),z=s.bg=o.ensureSingle(I,&quot;rect&quot;,&quot;bg&quot;);P.insertBefore(z.node(),P.childNodes[0]),A.push(i)}else I.select(&quot;rect.bg&quot;).remove(),S.push([C,L]),E||(M.push(i),A.push(i))}var O,D,R,F,B,N,j,U,V,q,H,G,Y,W=m._bgLayer.selectAll(&quot;.bg&quot;).data(M);for(W.enter().append(&quot;rect&quot;).classed(&quot;bg&quot;,!0),W.exit().remove(),W.each((function(t){m._plots[t].bg=n.select(this)})),e=0;e&lt;A.length;e++)s=m._plots[A[e]],d=s.xaxis,g=s.yaxis,s.bg&amp;&amp;void 0!==d._offset&amp;&amp;void 0!==g._offset&amp;&amp;s.bg.call(c.setRect,d._offset-x,g._offset-x,d._length+2*x,g._length+2*x).call(l.fill,m.plot_bgcolor).style(&quot;stroke-width&quot;,0);if(!m._hasOnlyLargeSploms)for(i in m._plots){s=m._plots[i],d=s.xaxis,g=s.yaxis;var X,Z,J=s.clipId=&quot;clip&quot;+m._uid+i+&quot;plot&quot;,K=o.ensureSingleById(m._clips,&quot;clipPath&quot;,J,(function(t){t.classed(&quot;plotclip&quot;,!0).append(&quot;rect&quot;)}));s.clipRect=K.select(&quot;rect&quot;).attr({width:d._length,height:g._length}),c.setTranslate(s.plot,d._offset,g._offset),s._hasClipOnAxisFalse?(X=null,Z=J):(X=J,Z=null),c.setClipUrl(s.plot,X,t),s.layerClipId=Z}function Q(t){return&quot;M&quot;+O+&quot;,&quot;+t+&quot;H&quot;+D}function $(t){return&quot;M&quot;+d._offset+&quot;,&quot;+t+&quot;h&quot;+d._length}function tt(t){return&quot;M&quot;+t+&quot;,&quot;+U+&quot;V&quot;+j}function et(t){return&quot;M&quot;+t+&quot;,&quot;+g._offset+&quot;v&quot;+g._length}function rt(t,e,r){if(!t.showline||i!==t._mainSubplot)return&quot;&quot;;if(!t._anchorAxis)return r(t._mainLinePosition);var n=e(t._mainLinePosition);return t.mirror&amp;&amp;(n+=e(t._mainMirrorPosition)),n}for(i in m._plots){s=m._plots[i],d=s.xaxis,g=s.yaxis;var nt=&quot;M0,0&quot;;b(d,i)&amp;&amp;(B=w(d,&quot;left&quot;,g,_),O=d._offset-(B?x+B:0),N=w(d,&quot;right&quot;,g,_),D=d._offset+d._length+(N?x+N:0),R=T(d,g,&quot;bottom&quot;),F=T(d,g,&quot;top&quot;),!(Y=!d._anchorAxis||i!==d._mainSubplot)||&quot;allticks&quot;!==d.mirror&amp;&amp;&quot;all&quot;!==d.mirror||(d._linepositions[i]=[R,F]),nt=rt(d,Q,$),Y&amp;&amp;d.showline&amp;&amp;(&quot;all&quot;===d.mirror||&quot;allticks&quot;===d.mirror)&amp;&amp;(nt+=Q(R)+Q(F)),s.xlines.style(&quot;stroke-width&quot;,d._lw+&quot;px&quot;).call(l.stroke,d.showline?d.linecolor:&quot;rgba(0,0,0,0)&quot;)),s.xlines.attr(&quot;d&quot;,nt);var it=&quot;M0,0&quot;;b(g,i)&amp;&amp;(H=w(g,&quot;bottom&quot;,d,_),j=g._offset+g._length+(H?x:0),G=w(g,&quot;top&quot;,d,_),U=g._offset-(G?x:0),V=T(g,d,&quot;left&quot;),q=T(g,d,&quot;right&quot;),!(Y=!g._anchorAxis||i!==g._mainSubplot)||&quot;allticks&quot;!==g.mirror&amp;&amp;&quot;all&quot;!==g.mirror||(g._linepositions[i]=[V,q]),it=rt(g,tt,et),Y&amp;&amp;g.showline&amp;&amp;(&quot;all&quot;===g.mirror||&quot;allticks&quot;===g.mirror)&amp;&amp;(it+=tt(V)+tt(q)),s.ylines.style(&quot;stroke-width&quot;,g._lw+&quot;px&quot;).call(l.stroke,g.showline?g.linecolor:&quot;rgba(0,0,0,0)&quot;)),s.ylines.attr(&quot;d&quot;,it)}return h.makeClipPaths(t),a.previousPromises(t)}function b(t,e){return(t.ticks||t.showline)&amp;&amp;(e===t._mainSubplot||&quot;all&quot;===t.mirror||&quot;allticks&quot;===t.mirror)}function _(t,e,r){if(!r.showline||!r._lw)return!1;if(&quot;all&quot;===r.mirror||&quot;allticks&quot;===r.mirror)return!0;var n=r._anchorAxis;if(!n)return!1;var i=p.FROM_BL[e];return r.side===e?n.domain[i]===t.domain[i]:r.mirror&amp;&amp;n.domain[1-i]===t.domain[1-i]}function w(t,e,r,n){if(_(t,e,r))return r._lw;for(var i=0;i&lt;n.length;i++){var a=n[i];if(a._mainAxis===r._mainAxis&amp;&amp;_(t,e,a))return a._lw}return 0}function T(t,e){var r=t.title,n=t._size,i=0;switch(&quot;start&quot;===e?i=r.pad.l:&quot;end&quot;===e&amp;&amp;(i=-r.pad.r),r.xref){case&quot;paper&quot;:return n.l+n.w*r.x+i;case&quot;container&quot;:default:return t.width*r.x+i}}function k(t,e){var r=t.title,n=t._size,i=0;if(&quot;0em&quot;!==e&amp;&amp;e?e===p.CAP_SHIFT+&quot;em&quot;&amp;&amp;(i=r.pad.t):i=-r.pad.b,&quot;auto&quot;===r.y)return n.t/2;switch(r.yref){case&quot;paper&quot;:return n.t+n.h-n.h*r.y+i;case&quot;container&quot;:default:return t.height-t.height*r.y+i}}r.layoutStyles=function(t){return o.syncOrAsync([a.doAutoMargin,x],t)},r.drawMainTitle=function(t){var e=t._fullLayout,r=function(t){var e=t.title,r=&quot;middle&quot;;o.isRightAnchor(e)?r=&quot;end&quot;:o.isLeftAnchor(e)&amp;&amp;(r=&quot;start&quot;);return r}(e),n=function(t){var e=t.title,r=&quot;0em&quot;;o.isTopAnchor(e)?r=p.CAP_SHIFT+&quot;em&quot;:o.isMiddleAnchor(e)&amp;&amp;(r=p.MID_SHIFT+&quot;em&quot;);return r}(e);u.draw(t,&quot;gtitle&quot;,{propContainer:e,propName:&quot;title.text&quot;,placeholder:e._dfltTitle.plot,attributes:{x:T(e,r),y:k(e,n),&quot;text-anchor&quot;:r,dy:n}})},r.doTraceStyle=function(t){var e,n=t.calcdata,o=[];for(e=0;e&lt;n.length;e++){var l=n[e],c=l[0]||{},u=c.trace||{},f=u._module||{},h=f.arraysToCalcdata;h&amp;&amp;h(l,u);var p=f.editStyle;p&amp;&amp;o.push({fn:p,cd0:c})}if(o.length){for(e=0;e&lt;o.length;e++){var d=o[e];d.fn(t,d.cd0)}s(t),r.redrawReglTraces(t)}return a.style(t),i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.doColorBars=function(t){return i.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.layoutReplot=function(t){var e=t.layout;return t.layout=void 0,i.call(&quot;plot&quot;,t,&quot;&quot;,e)},r.doLegend=function(t){return i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.doTicksRelayout=function(t){return h.draw(t,&quot;redraw&quot;),t._fullLayout._hasOnlyLargeSploms&amp;&amp;(i.subplotsRegistry.splom.updateGrid(t),s(t),r.redrawReglTraces(t)),r.drawMainTitle(t),a.previousPromises(t)},r.doModeBar=function(t){var e=t._fullLayout;f.manage(t);for(var r=0;r&lt;e._basePlotModules.length;r++){var n=e._basePlotModules[r].updateFx;n&amp;&amp;n(t)}return a.previousPromises(t)},r.doCamera=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n&lt;r.length;n++){var i=e[r[n]];i._scene.setViewport(i)}},r.drawData=function(t){var e=t._fullLayout;s(t);for(var n=e._basePlotModules,o=0;o&lt;n.length;o++)n[o].plot(t);return r.redrawReglTraces(t),a.style(t),i.getComponentMethod(&quot;shapes&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;annotations&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;images&quot;,&quot;draw&quot;)(t),e._replotting=!1,a.previousPromises(t)},r.redrawReglTraces=function(t){var e=t._fullLayout;if(e._has(&quot;regl&quot;)){var r,n,i=t._fullData,a=[],s=[];for(e._hasOnlyLargeSploms&amp;&amp;e._splomGrid.draw(),r=0;r&lt;i.length;r++){var l=i[r];!0===l.visible&amp;&amp;0!==l._length&amp;&amp;(&quot;splom&quot;===l.type?e._splomScenes[l.uid].draw():&quot;scattergl&quot;===l.type?o.pushUnique(a,l.xaxis+l.yaxis):&quot;scatterpolargl&quot;===l.type&amp;&amp;o.pushUnique(s,l.subplot))}for(r=0;r&lt;a.length;r++)(n=e._plots[a[r]])._scene&amp;&amp;n._scene.draw();for(r=0;r&lt;s.length;r++)(n=e[s[r]]._subplot)._scene&amp;&amp;n._scene.draw()}},r.doAutoRangeAndConstraints=function(t){for(var e,r=h.list(t,&quot;&quot;,!0),n={},i=0;i&lt;r.length;i++)if(!n[(e=r[i])._id]){n[e._id]=1,m(t,e),v(t,e);var a=e._matchGroup;if(a)for(var o in a){var s=h.getFromId(t,o);v(t,s,e.range),n[o]=1}}g(t)},r.finalDraw=function(t){i.getComponentMethod(&quot;rangeslider&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;rangeselector&quot;,&quot;draw&quot;)(t)},r.drawMarginPushers=function(t){i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;rangeselector&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;sliders&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;updatemenus&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t)}},{&quot;../components/color&quot;:643,&quot;../components/drawing&quot;:665,&quot;../components/modebar&quot;:703,&quot;../components/titles&quot;:738,&quot;../constants/alignment&quot;:745,&quot;../lib&quot;:778,&quot;../lib/clear_gl_canvases&quot;:762,&quot;../plots/cartesian/autorange&quot;:827,&quot;../plots/cartesian/axes&quot;:828,&quot;../plots/cartesian/constraints&quot;:835,&quot;../plots/plots&quot;:891,&quot;../registry&quot;:911,d3:169}],819:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=n.isPlainObject,a=t(&quot;./plot_schema&quot;),o=t(&quot;../plots/plots&quot;),s=t(&quot;../plots/attributes&quot;),l=t(&quot;./plot_template&quot;),c=t(&quot;./plot_config&quot;).dfltConfig;function u(t,e){t=n.extendDeep({},t);var r,a,o=Object.keys(t).sort();function s(e,r,n){if(i(r)&amp;&amp;i(e))u(e,r);else if(Array.isArray(r)&amp;&amp;Array.isArray(e)){var o=l.arrayTemplater({_template:t},n);for(a=0;a&lt;r.length;a++){var s=r[a],c=o.newItem(s)._template;c&amp;&amp;u(c,s)}var f=o.defaultItems();for(a=0;a&lt;f.length;a++)r.push(f[a]._template);for(a=0;a&lt;r.length;a++)delete r[a].templateitemname}}for(r=0;r&lt;o.length;r++){var c=o[r],h=t[c];if(c in e?s(h,e[c],c):e[c]=h,f(c)===c)for(var p in e){var d=f(p);p===d||d!==c||p in t||s(h,e[p],c)}}}function f(t){return t.replace(/[0-9]+$/,&quot;&quot;)}function h(t,e,r,a,o){var s=o&amp;&amp;r(o);for(var c in t){var u=t[c],p=g(t,c,a),d=g(t,c,o),m=r(d);if(!m){var v=f(c);v!==c&amp;&amp;(m=r(d=g(t,v,o)))}if((!s||s!==m)&amp;&amp;!(!m||m._noTemplating||&quot;data_array&quot;===m.valType||m.arrayOk&amp;&amp;Array.isArray(u)))if(!m.valType&amp;&amp;i(u))h(u,e,r,p,d);else if(m._isLinkedToArray&amp;&amp;Array.isArray(u))for(var y=!1,x=0,b={},_=0;_&lt;u.length;_++){var w=u[_];if(i(w)){var T=w.name;if(T)b[T]||(h(w,e,r,g(u,x,p),g(u,x,d)),x++,b[T]=1);else if(!y){var k=g(t,l.arrayDefaultKey(c),a),M=g(u,x,p);h(w,e,r,M,g(u,x,d));var A=n.nestedProperty(e,M);n.nestedProperty(e,k).set(A.get()),A.set(null),y=!0}}}else{n.nestedProperty(e,p).set(u)}}}function p(t,e){return a.getLayoutValObject(t,n.nestedProperty({},e).parts)}function d(t,e){return a.getTraceValObject(t,n.nestedProperty({},e).parts)}function g(t,e,r){return r?Array.isArray(t)?r+&quot;[&quot;+e+&quot;]&quot;:r+&quot;.&quot;+e:e}function m(t){for(var e=0;e&lt;t.length;e++)if(i(t[e]))return!0}function v(t){var e;switch(t.code){case&quot;data&quot;:e=&quot;The template has no key data.&quot;;break;case&quot;layout&quot;:e=&quot;The template has no key layout.&quot;;break;case&quot;missing&quot;:e=t.path?&quot;There are no templates for item &quot;+t.path+&quot; with name &quot;+t.templateitemname:&quot;There are no templates for trace &quot;+t.index+&quot;, of type &quot;+t.traceType+&quot;.&quot;;break;case&quot;unused&quot;:e=t.path?&quot;The template item at &quot;+t.path+&quot; was not used in constructing the plot.&quot;:t.dataCount?&quot;Some of the templates of type &quot;+t.traceType+&quot; were not used. The template has &quot;+t.templateCount+&quot; traces, the data only has &quot;+t.dataCount+&quot; of this type.&quot;:&quot;The template has &quot;+t.templateCount+&quot; traces of type &quot;+t.traceType+&quot; but there are none in the data.&quot;;break;case&quot;reused&quot;:e=&quot;Some of the templates of type &quot;+t.traceType+&quot; were used more than once. The template has &quot;+t.templateCount+&quot; traces, the data has &quot;+t.dataCount+&quot; of this type.&quot;}return t.msg=e,t}r.makeTemplate=function(t){t=n.isPlainObject(t)?t:n.getGraphDiv(t),t=n.extendDeep({_context:c},{data:t.data,layout:t.layout}),o.supplyDefaults(t);var e=t.data||[],r=t.layout||{};r._basePlotModules=t._fullLayout._basePlotModules,r._modules=t._fullLayout._modules;var a={data:{},layout:{}};e.forEach((function(t){var e={};h(t,e,d.bind(null,t));var r=n.coerce(t,{},s,&quot;type&quot;),i=a.data[r];i||(i=a.data[r]=[]),i.push(e)})),h(r,a.layout,p.bind(null,r)),delete a.layout.template;var l=r.template;if(i(l)){var f,g,m,v,y,x,b=l.layout;i(b)&amp;&amp;u(b,a.layout);var _=l.data;if(i(_)){for(g in a.data)if(m=_[g],Array.isArray(m)){for(x=(y=a.data[g]).length,v=m.length,f=0;f&lt;x;f++)u(m[f%v],y[f]);for(f=x;f&lt;v;f++)y.push(n.extendDeep({},m[f]))}for(g in _)g in a.data||(a.data[g]=n.extendDeep([],_[g]))}}return a},r.validateTemplate=function(t,e){var r=n.extendDeep({},{_context:c,data:t.data,layout:t.layout}),a=r.layout||{};i(e)||(e=a.template||{});var s=e.layout,l=e.data,u=[];r.layout=a,r.layout.template=e,o.supplyDefaults(r);var h=r._fullLayout,p=r._fullData,d={};if(i(s)?(!function t(e,r){for(var n in e)if(&quot;_&quot;!==n.charAt(0)&amp;&amp;i(e[n])){var a,o=f(n),s=[];for(a=0;a&lt;r.length;a++)s.push(g(e,n,r[a])),o!==n&amp;&amp;s.push(g(e,o,r[a]));for(a=0;a&lt;s.length;a++)d[s[a]]=1;t(e[n],s)}}(h,[&quot;layout&quot;]),function t(e,r){for(var n in e)if(-1===n.indexOf(&quot;defaults&quot;)&amp;&amp;i(e[n])){var a=g(e,n,r);d[a]?t(e[n],a):u.push({code:&quot;unused&quot;,path:a})}}(s,&quot;layout&quot;)):u.push({code:&quot;layout&quot;}),i(l)){for(var y,x={},b=0;b&lt;p.length;b++){var _=p[b];x[y=_.type]=(x[y]||0)+1,_._fullInput._template||u.push({code:&quot;missing&quot;,index:_._fullInput.index,traceType:y})}for(y in l){var w=l[y].length,T=x[y]||0;w&gt;T?u.push({code:&quot;unused&quot;,traceType:y,templateCount:w,dataCount:T}):T&gt;w&amp;&amp;u.push({code:&quot;reused&quot;,traceType:y,templateCount:w,dataCount:T})}}else u.push({code:&quot;data&quot;});if(function t(e,r){for(var n in e)if(&quot;_&quot;!==n.charAt(0)){var a=e[n],o=g(e,n,r);i(a)?(Array.isArray(e)&amp;&amp;!1===a._template&amp;&amp;a.templateitemname&amp;&amp;u.push({code:&quot;missing&quot;,path:o,templateitemname:a.templateitemname}),t(a,o)):Array.isArray(a)&amp;&amp;m(a)&amp;&amp;t(a,o)}}({data:p,layout:h},&quot;&quot;),u.length)return u.map(v)}},{&quot;../lib&quot;:778,&quot;../plots/attributes&quot;:824,&quot;../plots/plots&quot;:891,&quot;./plot_config&quot;:815,&quot;./plot_schema&quot;:816,&quot;./plot_template&quot;:817}],820:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./plot_api&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../snapshot/helpers&quot;),l=t(&quot;../snapshot/tosvg&quot;),c=t(&quot;../snapshot/svgtoimg&quot;),u=t(&quot;../version&quot;).version,f={format:{valType:&quot;enumerated&quot;,values:[&quot;png&quot;,&quot;jpeg&quot;,&quot;webp&quot;,&quot;svg&quot;,&quot;full-json&quot;],dflt:&quot;png&quot;},width:{valType:&quot;number&quot;,min:1},height:{valType:&quot;number&quot;,min:1},scale:{valType:&quot;number&quot;,min:0,dflt:1},setBackground:{valType:&quot;any&quot;,dflt:!1},imageDataOnly:{valType:&quot;boolean&quot;,dflt:!1}};e.exports=function(t,e){var r,h,p,d;function g(t){return!(t in e)||o.validate(e[t],f[t])}if(e=e||{},o.isPlainObject(t)?(r=t.data||[],h=t.layout||{},p=t.config||{},d={}):(t=o.getGraphDiv(t),r=o.extendDeep([],t.data),h=o.extendDeep({},t.layout),p=t._context,d=t._fullLayout||{}),!g(&quot;width&quot;)&amp;&amp;null!==e.width||!g(&quot;height&quot;)&amp;&amp;null!==e.height)throw new Error(&quot;Height and width should be pixel values.&quot;);if(!g(&quot;format&quot;))throw new Error(&quot;Export format is not &quot;+o.join2(f.format.values,&quot;, &quot;,&quot; or &quot;)+&quot;.&quot;);var m={};function v(t,r){return o.coerce(e,m,f,t,r)}var y=v(&quot;format&quot;),x=v(&quot;width&quot;),b=v(&quot;height&quot;),_=v(&quot;scale&quot;),w=v(&quot;setBackground&quot;),T=v(&quot;imageDataOnly&quot;),k=document.createElement(&quot;div&quot;);k.style.position=&quot;absolute&quot;,k.style.left=&quot;-5000px&quot;,document.body.appendChild(k);var M=o.extendFlat({},h);x?M.width=x:null===e.width&amp;&amp;n(d.width)&amp;&amp;(M.width=d.width),b?M.height=b:null===e.height&amp;&amp;n(d.height)&amp;&amp;(M.height=d.height);var A=o.extendFlat({},p,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),S=s.getRedrawFunc(k);function E(){return new Promise((function(t){setTimeout(t,s.getDelay(k._fullLayout))}))}function C(){return new Promise((function(t,e){var r=l(k,y,_),n=k._fullLayout.width,f=k._fullLayout.height;function h(){i.purge(k),document.body.removeChild(k)}if(&quot;full-json&quot;===y){var p=a.graphJson(k,!1,&quot;keepdata&quot;,&quot;object&quot;,!0,!0);return p.version=u,p=JSON.stringify(p),h(),t(T?p:s.encodeJSON(p))}if(h(),&quot;svg&quot;===y)return t(T?r:s.encodeSVG(r));var d=document.createElement(&quot;canvas&quot;);d.id=o.randstr(),c({format:y,width:n,height:f,scale:_,canvas:d,svg:r,promise:!0}).then(t).catch(e)}))}return new Promise((function(t,e){i.plot(k,r,M,A).then(S).then(E).then(C).then((function(e){t(function(t){return T?t.replace(s.IMAGE_URL_PREFIX,&quot;&quot;):t}(e))})).catch((function(t){e(t)}))}))}},{&quot;../lib&quot;:778,&quot;../plots/plots&quot;:891,&quot;../snapshot/helpers&quot;:915,&quot;../snapshot/svgtoimg&quot;:917,&quot;../snapshot/tosvg&quot;:919,&quot;../version&quot;:1370,&quot;./plot_api&quot;:814,&quot;fast-isnumeric&quot;:241}],821:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/plots&quot;),a=t(&quot;./plot_schema&quot;),o=t(&quot;./plot_config&quot;).dfltConfig,s=n.isPlainObject,l=Array.isArray,c=n.isArrayOrTypedArray;function u(t,e,r,i,a,o){o=o||[];for(var f=Object.keys(t),h=0;h&lt;f.length;h++){var p=f[h];if(&quot;transforms&quot;!==p){var v=o.slice();v.push(p);var y=t[p],x=e[p],b=m(r,p),_=(b||{}).valType,w=&quot;info_array&quot;===_,T=&quot;colorscale&quot;===_,k=(b||{}).items;if(g(r,p))if(s(y)&amp;&amp;s(x)&amp;&amp;&quot;any&quot;!==_)u(y,x,b,i,a,v);else if(w&amp;&amp;l(y)){y.length&gt;x.length&amp;&amp;i.push(d(&quot;unused&quot;,a,v.concat(x.length)));var M,A,S,E,C,L=x.length,I=Array.isArray(k);if(I&amp;&amp;(L=Math.min(L,k.length)),2===b.dimensions)for(A=0;A&lt;L;A++)if(l(y[A])){y[A].length&gt;x[A].length&amp;&amp;i.push(d(&quot;unused&quot;,a,v.concat(A,x[A].length)));var P=x[A].length;for(M=0;M&lt;(I?Math.min(P,k[A].length):P);M++)S=I?k[A][M]:k,E=y[A][M],C=x[A][M],n.validate(E,S)?C!==E&amp;&amp;C!==+E&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v.concat(A,M),E,C)):i.push(d(&quot;value&quot;,a,v.concat(A,M),E))}else i.push(d(&quot;array&quot;,a,v.concat(A),y[A]));else for(A=0;A&lt;L;A++)S=I?k[A]:k,E=y[A],C=x[A],n.validate(E,S)?C!==E&amp;&amp;C!==+E&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v.concat(A),E,C)):i.push(d(&quot;value&quot;,a,v.concat(A),E))}else if(b.items&amp;&amp;!w&amp;&amp;l(y)){var z,O,D=k[Object.keys(k)[0]],R=[];for(z=0;z&lt;x.length;z++){var F=x[z]._index||z;if((O=v.slice()).push(F),s(y[F])&amp;&amp;s(x[z])){R.push(F);var B=y[F],N=x[z];s(B)&amp;&amp;!1!==B.visible&amp;&amp;!1===N.visible?i.push(d(&quot;invisible&quot;,a,O)):u(B,N,D,i,a,O)}}for(z=0;z&lt;y.length;z++)(O=v.slice()).push(z),s(y[z])?-1===R.indexOf(z)&amp;&amp;i.push(d(&quot;unused&quot;,a,O)):i.push(d(&quot;object&quot;,a,O,y[z]))}else!s(y)&amp;&amp;s(x)?i.push(d(&quot;object&quot;,a,v,y)):c(y)||!c(x)||w||T?p in e?n.validate(y,b)?&quot;enumerated&quot;===b.valType&amp;&amp;(b.coerceNumber&amp;&amp;y!==+x||y!==x)&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v,y,x)):i.push(d(&quot;value&quot;,a,v,y)):i.push(d(&quot;unused&quot;,a,v,y)):i.push(d(&quot;array&quot;,a,v,y));else i.push(d(&quot;schema&quot;,a,v))}}return i}function f(t,e){for(var r=t.layout.layoutAttributes,i=0;i&lt;e.length;i++){var a=e[i],o=t.traces[a.type],s=o.layoutAttributes;s&amp;&amp;(a.subplot?n.extendFlat(r[o.attributes.subplot.dflt],s):n.extendFlat(r,s))}return r}e.exports=function(t,e){void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e={});var r,c,h=a.get(),p=[],g={_context:n.extendFlat({},o)};l(t)?(g.data=n.extendDeep([],t),r=t):(g.data=[],r=[],p.push(d(&quot;array&quot;,&quot;data&quot;))),s(e)?(g.layout=n.extendDeep({},e),c=e):(g.layout={},c={},arguments.length&gt;1&amp;&amp;p.push(d(&quot;object&quot;,&quot;layout&quot;))),i.supplyDefaults(g);for(var m=g._fullData,v=r.length,y=0;y&lt;v;y++){var x=r[y],b=[&quot;data&quot;,y];if(s(x)){var _=m[y],w=_.type,T=h.traces[w].attributes;T.type={valType:&quot;enumerated&quot;,values:[w]},!1===_.visible&amp;&amp;!1!==x.visible&amp;&amp;p.push(d(&quot;invisible&quot;,b)),u(x,_,T,p,b);var k=x.transforms,M=_.transforms;if(k){l(k)||p.push(d(&quot;array&quot;,b,[&quot;transforms&quot;])),b.push(&quot;transforms&quot;);for(var A=0;A&lt;k.length;A++){var S=[&quot;transforms&quot;,A],E=k[A].type;if(s(k[A])){var C=h.transforms[E]?h.transforms[E].attributes:{};C.type={valType:&quot;enumerated&quot;,values:Object.keys(h.transforms)},u(k[A],M[A],C,p,b,S)}else p.push(d(&quot;object&quot;,b,S))}}}else p.push(d(&quot;object&quot;,b))}var L=g._fullLayout,I=f(h,m);return u(c,L,I,p,&quot;layout&quot;),0===p.length?void 0:p};var h={object:function(t,e){return(&quot;layout&quot;===t&amp;&amp;&quot;&quot;===e?&quot;The layout argument&quot;:&quot;data&quot;===t[0]&amp;&amp;&quot;&quot;===e?&quot;Trace &quot;+t[1]+&quot; in the data argument&quot;:p(t)+&quot;key &quot;+e)+&quot; must be linked to an object container&quot;},array:function(t,e){return(&quot;data&quot;===t?&quot;The data argument&quot;:p(t)+&quot;key &quot;+e)+&quot; must be linked to an array container&quot;},schema:function(t,e){return p(t)+&quot;key &quot;+e+&quot; is not part of the schema&quot;},unused:function(t,e,r){var n=s(r)?&quot;container&quot;:&quot;key&quot;;return p(t)+n+&quot; &quot;+e+&quot; did not get coerced&quot;},dynamic:function(t,e,r,n){return[p(t)+&quot;key&quot;,e,&quot;(set to '&quot;+r+&quot;')&quot;,&quot;got reset to&quot;,&quot;'&quot;+n+&quot;'&quot;,&quot;during defaults.&quot;].join(&quot; &quot;)},invisible:function(t,e){return(e?p(t)+&quot;item &quot;+e:&quot;Trace &quot;+t[1])+&quot; got defaulted to be not visible&quot;},value:function(t,e,r){return[p(t)+&quot;key &quot;+e,&quot;is set to an invalid value (&quot;+r+&quot;)&quot;].join(&quot; &quot;)}};function p(t){return l(t)?&quot;In data trace &quot;+t[1]+&quot;, &quot;:&quot;In &quot;+t+&quot;, &quot;}function d(t,e,r,i,a){var o,s;r=r||&quot;&quot;,l(e)?(o=e[0],s=e[1]):(o=e,s=null);var c=function(t){if(!l(t))return String(t);for(var e=&quot;&quot;,r=0;r&lt;t.length;r++){var n=t[r];&quot;number&quot;==typeof n?e=e.substr(0,e.length-1)+&quot;[&quot;+n+&quot;]&quot;:e+=n,r&lt;t.length-1&amp;&amp;(e+=&quot;.&quot;)}return e}(r),u=h[t](e,c,i,a);return n.log(u),{code:t,container:o,trace:s,path:r,astr:c,msg:u}}function g(t,e){var r=y(e),n=r.keyMinusId,i=r.id;return!!(n in t&amp;&amp;t[n]._isSubplotObj&amp;&amp;i)||e in t}function m(t,e){return e in t?t[e]:t[y(e).keyMinusId]}var v=n.counterRegex(&quot;([a-z]+)&quot;);function y(t){var e=t.match(v);return{keyMinusId:e&amp;&amp;e[1],id:e&amp;&amp;e[2]}}},{&quot;../lib&quot;:778,&quot;../plots/plots&quot;:891,&quot;./plot_config&quot;:815,&quot;./plot_schema&quot;:816}],822:[function(t,e,r){&quot;use strict&quot;;e.exports={mode:{valType:&quot;enumerated&quot;,dflt:&quot;afterall&quot;,values:[&quot;immediate&quot;,&quot;next&quot;,&quot;afterall&quot;]},direction:{valType:&quot;enumerated&quot;,values:[&quot;forward&quot;,&quot;reverse&quot;],dflt:&quot;forward&quot;},fromcurrent:{valType:&quot;boolean&quot;,dflt:!1},frame:{duration:{valType:&quot;number&quot;,min:0,dflt:500},redraw:{valType:&quot;boolean&quot;,dflt:!0}},transition:{duration:{valType:&quot;number&quot;,min:0,dflt:500,editType:&quot;none&quot;},easing:{valType:&quot;enumerated&quot;,dflt:&quot;cubic-in-out&quot;,values:[&quot;linear&quot;,&quot;quad&quot;,&quot;cubic&quot;,&quot;sin&quot;,&quot;exp&quot;,&quot;circle&quot;,&quot;elastic&quot;,&quot;back&quot;,&quot;bounce&quot;,&quot;linear-in&quot;,&quot;quad-in&quot;,&quot;cubic-in&quot;,&quot;sin-in&quot;,&quot;exp-in&quot;,&quot;circle-in&quot;,&quot;elastic-in&quot;,&quot;back-in&quot;,&quot;bounce-in&quot;,&quot;linear-out&quot;,&quot;quad-out&quot;,&quot;cubic-out&quot;,&quot;sin-out&quot;,&quot;exp-out&quot;,&quot;circle-out&quot;,&quot;elastic-out&quot;,&quot;back-out&quot;,&quot;bounce-out&quot;,&quot;linear-in-out&quot;,&quot;quad-in-out&quot;,&quot;cubic-in-out&quot;,&quot;sin-in-out&quot;,&quot;exp-in-out&quot;,&quot;circle-in-out&quot;,&quot;elastic-in-out&quot;,&quot;back-in-out&quot;,&quot;bounce-in-out&quot;],editType:&quot;none&quot;},ordering:{valType:&quot;enumerated&quot;,values:[&quot;layout first&quot;,&quot;traces first&quot;],dflt:&quot;layout first&quot;,editType:&quot;none&quot;}}}},{}],823:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_template&quot;);e.exports=function(t,e,r){var a,o,s=r.name,l=r.inclusionAttr||&quot;visible&quot;,c=e[s],u=n.isArrayOrTypedArray(t[s])?t[s]:[],f=e[s]=[],h=i.arrayTemplater(e,s,l);for(a=0;a&lt;u.length;a++){var p=u[a];n.isPlainObject(p)?o=h.newItem(p):(o=h.newItem({}))[l]=!1,o._index=a,!1!==o[l]&amp;&amp;r.handleItemDefaults(p,o,e,r),f.push(o)}var d=h.defaultItems();for(a=0;a&lt;d.length;a++)(o=d[a])._index=f.length,r.handleItemDefaults({},o,e,r,{}),f.push(o);if(n.isArrayOrTypedArray(c)){var g=Math.min(c.length,f.length);for(a=0;a&lt;g;a++)n.relinkPrivateKeys(f[a],c[a])}return f}},{&quot;../lib&quot;:778,&quot;../plot_api/plot_template&quot;:817}],824:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../components/fx/attributes&quot;);e.exports={type:{valType:&quot;enumerated&quot;,values:[],dflt:&quot;scatter&quot;,editType:&quot;calc+clearAxisTypes&quot;,_noTemplating:!0},visible:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;legendonly&quot;],dflt:!0,editType:&quot;calc&quot;},showlegend:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;style&quot;},legendgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;style&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;style&quot;},name:{valType:&quot;string&quot;,editType:&quot;style&quot;},uid:{valType:&quot;string&quot;,editType:&quot;plot&quot;,anim:!0},ids:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;,anim:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},meta:{valType:&quot;any&quot;,arrayOk:!0,editType:&quot;plot&quot;},selectedpoints:{valType:&quot;any&quot;,editType:&quot;calc&quot;},hoverinfo:{valType:&quot;flaglist&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;],extras:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],arrayOk:!0,dflt:&quot;all&quot;,editType:&quot;none&quot;},hoverlabel:n.hoverlabel,stream:{token:{valType:&quot;string&quot;,noBlank:!0,strict:!0,editType:&quot;calc&quot;},maxpoints:{valType:&quot;number&quot;,min:0,max:1e4,dflt:500,editType:&quot;calc&quot;},editType:&quot;calc&quot;},transforms:{_isLinkedToArray:&quot;transform&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;}}},{&quot;../components/fx/attributes&quot;:674}],825:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=i.dateTime2ms,o=i.incrementMonth,s=t(&quot;../../constants/numerical&quot;).ONEAVGMONTH;e.exports=function(t,e,r,i){if(&quot;date&quot;!==e.type)return i;var l=t[r+&quot;periodalignment&quot;];if(!l)return i;var c,u=t[r+&quot;period&quot;];if(n(u)){if((u=+u)&lt;=0)return i}else if(&quot;string&quot;==typeof u&amp;&amp;&quot;M&quot;===u.charAt(0)){var f=+u.substring(1);if(!(f&gt;0&amp;&amp;Math.round(f)===f))return i;c=f}for(var h=e.calendar,p=&quot;start&quot;===l,d=&quot;end&quot;===l,g=t[r+&quot;period0&quot;],m=a(g,h)||0,v=[],y=i.length,x=0;x&lt;y;x++){var b,_,w,T=i[x];if(c){for(b=Math.round((T-m)/(c*s)),w=o(m,c*b,h);w&gt;T;)w=o(w,-c,h);for(;w&lt;=T;)w=o(w,c,h);_=o(w,-c,h)}else{for(w=m+(b=Math.round((T-m)/u))*u;w&gt;T;)w-=u;for(;w&lt;=T;)w+=u;_=w-u}v[x]=p?_:d?w:(_+w)/2}return v}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],826:[function(t,e,r){&quot;use strict&quot;;e.exports={xaxis:{valType:&quot;subplotid&quot;,dflt:&quot;x&quot;,editType:&quot;calc+clearAxisTypes&quot;},yaxis:{valType:&quot;subplotid&quot;,dflt:&quot;y&quot;,editType:&quot;calc+clearAxisTypes&quot;}}},{}],827:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).FP_SAFE,o=t(&quot;../../registry&quot;),s=t(&quot;./axis_ids&quot;),l=s.getFromId,c=s.isLinked;function u(t,e){var r,n,a=[],o=t._fullLayout,s=h(o,e,0),l=h(o,e,1),c=p(t,e),u=c.min,d=c.max;if(0===u.length||0===d.length)return i.simpleMap(e.range,e.r2l);var g=u[0].val,m=d[0].val;for(r=1;r&lt;u.length&amp;&amp;g===m;r++)g=Math.min(g,u[r].val);for(r=1;r&lt;d.length&amp;&amp;g===m;r++)m=Math.max(m,d[r].val);var v=!1;if(e.range){var y=i.simpleMap(e.range,e.r2l);v=y[1]&lt;y[0]}&quot;reversed&quot;===e.autorange&amp;&amp;(v=!0,e.autorange=!0);var x,b,_,w,T,k,M=e.rangemode,A=&quot;tozero&quot;===M,S=&quot;nonnegative&quot;===M,E=e._length,C=E/10,L=0;for(r=0;r&lt;u.length;r++)for(x=u[r],n=0;n&lt;d.length;n++)(k=(b=d[n]).val-x.val-f(e,x.val,b.val))&gt;0&amp;&amp;((T=E-s(x)-l(b))&gt;C?k/T&gt;L&amp;&amp;(_=x,w=b,L=k/T):k/E&gt;L&amp;&amp;(_={val:x.val,nopad:1},w={val:b.val,nopad:1},L=k/E));if(g===m){var I=g-1,P=g+1;if(A)if(0===g)a=[0,1];else{var z=(g&gt;0?d:u).reduce((function(t,e){return Math.max(t,l(e))}),0),O=g/(1-Math.min(.5,z/E));a=g&gt;0?[0,O]:[O,0]}else a=S?[Math.max(0,I),Math.max(1,P)]:[I,P]}else A?(_.val&gt;=0&amp;&amp;(_={val:0,nopad:1}),w.val&lt;=0&amp;&amp;(w={val:0,nopad:1})):S&amp;&amp;(_.val-L*s(_)&lt;0&amp;&amp;(_={val:0,nopad:1}),w.val&lt;=0&amp;&amp;(w={val:1,nopad:1})),L=(w.val-_.val-f(e,x.val,b.val))/(E-s(_)-l(w)),a=[_.val-L*s(_),w.val+L*l(w)];return v&amp;&amp;a.reverse(),i.simpleMap(a,e.l2r||Number)}function f(t,e,r){var n=0;if(t.rangebreaks)for(var i=t.locateBreaks(e,r),a=0;a&lt;i.length;a++){var o=i[a];n+=o.max-o.min}return n}function h(t,e,r){var n=.05*e._length,a=e._anchorAxis||{};if(-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)||-1!==(a.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)){var o=&quot;reversed&quot;===e.autorange;if(!o){var s=i.simpleMap(e.range,e.r2l);o=s[1]&lt;s[0]}o&amp;&amp;(r=!r)}var l=0;return c(t,e._id)||(l=function(t,e){var r=0,n=t._anchorAxis||{};if(-1!==(n.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;(!e&amp;&amp;(&quot;left&quot;===n.side||&quot;bottom&quot;===n.side)||e&amp;&amp;(&quot;top&quot;===n.side||&quot;right&quot;===n.side))){var a=&quot;x&quot;===t._id.charAt(0);if(n._vals){var o=i.deg2rad(n._tickAngles[n._id+&quot;tick&quot;]||0),s=Math.abs(Math.cos(o)),l=Math.abs(Math.sin(o));n._vals.forEach((function(t){if(t.bb){var e=6+t.bb.width,n=6+t.bb.height;r=Math.max(r,a?Math.max(e*s,n*l):Math.max(n*s,e*l))}}))}&quot;inside&quot;===n.ticks&amp;&amp;&quot;inside&quot;===n.ticklabelposition&amp;&amp;(r+=n.ticklen||0)}return r}(e,r)),n=Math.max(l,n),&quot;domain&quot;===e.constrain&amp;&amp;e._inputDomain&amp;&amp;(n*=(e._inputDomain[1]-e._inputDomain[0])/(e.domain[1]-e.domain[0])),function(t){return t.nopad?0:t.pad+(t.extrapad?n:l)}}e.exports={getAutoRange:u,makePadFn:h,doAutoRange:function(t,e,r){if(e.setScale(),e.autorange){e.range=r?r.slice():u(t,e),e._r=e.range.slice(),e._rl=i.simpleMap(e._r,e.r2l);var n=e._input,a={};a[e._attr+&quot;.range&quot;]=e.range,a[e._attr+&quot;.autorange&quot;]=e.autorange,o.call(&quot;_storeDirectGUIEdit&quot;,t.layout,t._fullLayout._preGUI,a),n.range=e.range.slice(),n.autorange=e.autorange}var s=e._anchorAxis;if(s&amp;&amp;s.rangeslider){var l=s.rangeslider[e._name];l&amp;&amp;&quot;auto&quot;===l.rangemode&amp;&amp;(l.range=u(t,e)),s._input.rangeslider[e._name]=i.extendFlat({},l)}},findExtremes:function(t,e,r){r||(r={});t._m||t.setScale();var i,o,s,l,c,u,f,h,p,m=[],y=[],x=e.length,b=r.padded||!1,_=r.tozero&amp;&amp;(&quot;linear&quot;===t.type||&quot;-&quot;===t.type),w=&quot;log&quot;===t.type,T=!1,k=r.vpadLinearized||!1;function M(t){if(Array.isArray(t))return T=!0,function(e){return Math.max(Number(t[e]||0),0)};var e=Math.max(Number(t||0),0);return function(){return e}}var A=M((t._m&gt;0?r.ppadplus:r.ppadminus)||r.ppad||0),S=M((t._m&gt;0?r.ppadminus:r.ppadplus)||r.ppad||0),E=M(r.vpadplus||r.vpad),C=M(r.vpadminus||r.vpad);if(!T){if(h=1/0,p=-1/0,w)for(i=0;i&lt;x;i++)(o=e[i])&lt;h&amp;&amp;o&gt;0&amp;&amp;(h=o),o&gt;p&amp;&amp;o&lt;a&amp;&amp;(p=o);else for(i=0;i&lt;x;i++)(o=e[i])&lt;h&amp;&amp;o&gt;-a&amp;&amp;(h=o),o&gt;p&amp;&amp;o&lt;a&amp;&amp;(p=o);e=[h,p],x=2}var L={tozero:_,extrapad:b};function I(r){s=e[r],n(s)&amp;&amp;(u=A(r),f=S(r),k?(l=t.c2l(s)-C(r),c=t.c2l(s)+E(r)):(h=s-C(r),p=s+E(r),w&amp;&amp;h&lt;p/10&amp;&amp;(h=p/10),l=t.c2l(h),c=t.c2l(p)),_&amp;&amp;(l=Math.min(0,l),c=Math.max(0,c)),v(l)&amp;&amp;d(m,l,f,L),v(c)&amp;&amp;g(y,c,u,L))}var P=Math.min(6,x);for(i=0;i&lt;P;i++)I(i);for(i=x-1;i&gt;=P;i--)I(i);return{min:m,max:y,opts:r}},concatExtremes:p};function p(t,e,r){var n,i,a,o=e._id,s=t._fullData,c=t._fullLayout,u=[],f=[];function h(t,e){for(n=0;n&lt;e.length;n++){var r=t[e[n]],s=(r._extremes||{})[o];if(!0===r.visible&amp;&amp;s){for(i=0;i&lt;s.min.length;i++)a=s.min[i],d(u,a.val,a.pad,{extrapad:a.extrapad});for(i=0;i&lt;s.max.length;i++)a=s.max[i],g(f,a.val,a.pad,{extrapad:a.extrapad})}}}if(h(s,e._traceIndices),h(c.annotations||[],e._annIndices||[]),h(c.shapes||[],e._shapeIndices||[]),e._matchGroup&amp;&amp;!r)for(var m in e._matchGroup)if(m!==e._id){var v=l(t,m),y=p(t,v,!0),x=e._length/v._length;for(i=0;i&lt;y.min.length;i++)a=y.min[i],d(u,a.val,a.pad*x,{extrapad:a.extrapad});for(i=0;i&lt;y.max.length;i++)a=y.max[i],g(f,a.val,a.pad*x,{extrapad:a.extrapad})}return{min:u,max:f}}function d(t,e,r,n){m(t,e,r,n,y)}function g(t,e,r,n){m(t,e,r,n,x)}function m(t,e,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l&lt;t.length&amp;&amp;s;l++){var c=t[l];if(i(c.val,e)&amp;&amp;c.pad&gt;=r&amp;&amp;(c.extrapad||!o)){s=!1;break}i(e,c.val)&amp;&amp;c.pad&lt;=r&amp;&amp;(o||!c.extrapad)&amp;&amp;(t.splice(l,1),l--)}if(s){var u=a&amp;&amp;0===e;t.push({val:e,pad:u?0:r,extrapad:!u&amp;&amp;o})}}function v(t){return n(t)&amp;&amp;Math.abs(t)&lt;a}function y(t,e){return t&lt;=e}function x(t,e){return t&gt;=e}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./axis_ids&quot;:831,&quot;fast-isnumeric&quot;:241}],828:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/titles&quot;),f=t(&quot;../../components/color&quot;),h=t(&quot;../../components/drawing&quot;),p=t(&quot;./layout_attributes&quot;),d=t(&quot;./clean_ticks&quot;),g=t(&quot;../../constants/numerical&quot;),m=g.ONEMAXYEAR,v=g.ONEAVGYEAR,y=g.ONEMINYEAR,x=g.ONEMAXQUARTER,b=g.ONEAVGQUARTER,_=g.ONEMINQUARTER,w=g.ONEMAXMONTH,T=g.ONEAVGMONTH,k=g.ONEMINMONTH,M=g.ONEWEEK,A=g.ONEDAY,S=A/2,E=g.ONEHOUR,C=g.ONEMIN,L=g.ONESEC,I=g.MINUS_SIGN,P=g.BADNUM,z=t(&quot;../../constants/alignment&quot;),O=z.MID_SHIFT,D=z.CAP_SHIFT,R=z.LINE_SPACING,F=z.OPPOSITE_SIDE,B=e.exports={};B.setConvert=t(&quot;./set_convert&quot;);var N=t(&quot;./axis_autotype&quot;),j=t(&quot;./axis_ids&quot;),U=j.idSort,V=j.isLinked;B.id2name=j.id2name,B.name2id=j.name2id,B.cleanId=j.cleanId,B.list=j.list,B.listIds=j.listIds,B.getFromId=j.getFromId,B.getFromTrace=j.getFromTrace;var q=t(&quot;./autorange&quot;);B.getAutoRange=q.getAutoRange,B.findExtremes=q.findExtremes;function H(t){var e=1e-4*(t[1]-t[0]);return[t[0]-e,t[1]+e]}B.coerceRef=function(t,e,r,n,i,a){var o=n.charAt(n.length-1),l=r._fullLayout._subplots[o+&quot;axis&quot;],c=n+&quot;ref&quot;,u={};return i||(i=l[0]||(&quot;string&quot;==typeof a?a:a[0])),a||(a=i),l=l.concat(l.map((function(t){return t+&quot; domain&quot;}))),u[c]={valType:&quot;enumerated&quot;,values:l.concat(a?&quot;string&quot;==typeof a?[a]:a:[]),dflt:i},s.coerce(t,e,u,c)},B.getRefType=function(t){return void 0===t?t:&quot;paper&quot;===t?&quot;paper&quot;:&quot;pixel&quot;===t?&quot;pixel&quot;:/( domain)$/.test(t)?&quot;domain&quot;:&quot;range&quot;},B.coercePosition=function(t,e,r,n,i,a){var o,l;if(&quot;range&quot;!==B.getRefType(n))o=s.ensureNumber,l=r(i,a);else{var c=B.getFromId(e,n);l=r(i,a=c.fraction2r(a)),o=c.cleanPos}t[i]=o(l)},B.cleanPosition=function(t,e,r){return(&quot;paper&quot;===r||&quot;pixel&quot;===r?s.ensureNumber:B.getFromId(e,r).cleanPos)(t)},B.redrawComponents=function(t,e){e=e||B.listIds(t);var r=t._fullLayout;function n(n,i,a,s){for(var l=o.getComponentMethod(n,i),c={},u=0;u&lt;e.length;u++)for(var f=r[B.id2name(e[u])][a],h=0;h&lt;f.length;h++){var p=f[h];if(!c[p]&amp;&amp;(l(t,p),c[p]=1,s))return}}n(&quot;annotations&quot;,&quot;drawOne&quot;,&quot;_annIndices&quot;),n(&quot;shapes&quot;,&quot;drawOne&quot;,&quot;_shapeIndices&quot;),n(&quot;images&quot;,&quot;draw&quot;,&quot;_imgIndices&quot;,!0)};var G=B.getDataConversions=function(t,e,r,n){var i,a=&quot;x&quot;===r||&quot;y&quot;===r||&quot;z&quot;===r?r:n;if(Array.isArray(a)){if(i={type:N(n,void 0,{autotypenumbers:t._fullLayout.autotypenumbers}),_categories:[]},B.setConvert(i),&quot;category&quot;===i.type)for(var o=0;o&lt;n.length;o++)i.d2c(n[o])}else i=B.getFromTrace(t,e,a);return i?{d2c:i.d2c,c2d:i.c2d}:&quot;ids&quot;===a?{d2c:W,c2d:W}:{d2c:Y,c2d:Y}};function Y(t){return+t}function W(t){return String(t)}function X(t){return+t.substring(1)}B.getDataToCoordFunc=function(t,e,r,n){return G(t,e,r,n).d2c},B.counterLetter=function(t){var e=t.charAt(0);return&quot;x&quot;===e?&quot;y&quot;:&quot;y&quot;===e?&quot;x&quot;:void 0},B.minDtick=function(t,e,r,n){-1===[&quot;log&quot;,&quot;category&quot;,&quot;multicategory&quot;].indexOf(t.type)&amp;&amp;n?void 0===t._minDtick?(t._minDtick=e,t._forceTick0=r):t._minDtick&amp;&amp;((t._minDtick/e+1e-6)%1&lt;2e-6&amp;&amp;((r-t._forceTick0)/e%1+1.000001)%1&lt;2e-6?(t._minDtick=e,t._forceTick0=r):((e/t._minDtick+1e-6)%1&gt;2e-6||((r-t._forceTick0)/t._minDtick%1+1.000001)%1&gt;2e-6)&amp;&amp;(t._minDtick=0)):t._minDtick=0},B.saveRangeInitial=function(t,e){for(var r=B.list(t,&quot;&quot;,!0),n=!1,i=0;i&lt;r.length;i++){var a=r[i],o=void 0===a._rangeInitial,s=o||!(a.range[0]===a._rangeInitial[0]&amp;&amp;a.range[1]===a._rangeInitial[1]);(o&amp;&amp;!1===a.autorange||e&amp;&amp;s)&amp;&amp;(a._rangeInitial=a.range.slice(),n=!0)}return n},B.saveShowSpikeInitial=function(t,e){for(var r=B.list(t,&quot;&quot;,!0),n=!1,i=&quot;on&quot;,a=0;a&lt;r.length;a++){var o=r[a],s=void 0===o._showSpikeInitial,l=s||!(o.showspikes===o._showspikes);(s||e&amp;&amp;l)&amp;&amp;(o._showSpikeInitial=o.showspikes,n=!0),&quot;on&quot;!==i||o.showspikes||(i=&quot;off&quot;)}return t._fullLayout._cartesianSpikesEnabled=i,n},B.autoBin=function(t,e,r,n,a,o){var l,c=s.aggNums(Math.min,null,t),u=s.aggNums(Math.max,null,t);if(&quot;category&quot;===e.type||&quot;multicategory&quot;===e.type)return{start:c-.5,end:u+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:u-c};if(a||(a=e.calendar),l=&quot;log&quot;===e.type?{type:&quot;linear&quot;,range:[c,u]}:{type:e.type,range:s.simpleMap([c,u],e.c2r,0,a),calendar:a},B.setConvert(l),o=o&amp;&amp;d.dtick(o,l.type))l.dtick=o,l.tick0=d.tick0(void 0,l.type,a);else{var f;if(r)f=(u-c)/r;else{var h=s.distinctVals(t),p=Math.pow(10,Math.floor(Math.log(h.minDiff)/Math.LN10)),g=p*s.roundUp(h.minDiff/p,[.9,1.9,4.9,9.9],!0);f=Math.max(g,2*s.stdev(t)/Math.pow(t.length,n?.25:.4)),i(f)||(f=1)}B.autoTicks(l,f)}var m,v=l.dtick,y=B.tickIncrement(B.tickFirst(l),v,&quot;reverse&quot;,a);if(&quot;number&quot;==typeof v)m=(y=function(t,e,r,n,a){var o=0,s=0,l=0,c=0;function u(e){return(1+100*(e-t)/r.dtick)%100&lt;2}for(var f=0;f&lt;e.length;f++)e[f]%1==0?l++:i(e[f])||c++,u(e[f])&amp;&amp;o++,u(e[f]+r.dtick/2)&amp;&amp;s++;var h=e.length-c;if(l===h&amp;&amp;&quot;date&quot;!==r.type)r.dtick&lt;1?t=n-.5*r.dtick:(t-=.5)+r.dtick&lt;n&amp;&amp;(t+=r.dtick);else if(s&lt;.1*h&amp;&amp;(o&gt;.3*h||u(n)||u(a))){var p=r.dtick/2;t+=t+p&lt;n?p:-p}return t}(y,t,l,c,u))+(1+Math.floor((u-y)/v))*v;else for(&quot;M&quot;===l.dtick.charAt(0)&amp;&amp;(y=function(t,e,r,n,i){var a=s.findExactDates(e,i);if(a.exactDays&gt;.8){var o=Number(r.substr(1));a.exactYears&gt;.8&amp;&amp;o%12==0?t=B.tickIncrement(t,&quot;M6&quot;,&quot;reverse&quot;)+1.5*A:a.exactMonths&gt;.8?t=B.tickIncrement(t,&quot;M1&quot;,&quot;reverse&quot;)+15.5*A:t-=S;var l=B.tickIncrement(t,r);if(l&lt;=n)return l}return t}(y,t,v,c,a)),m=y,0;m&lt;=u;)m=B.tickIncrement(m,v,!1,a);return{start:e.c2r(y,0,a),end:e.c2r(m,0,a),size:v,_dataSpan:u-c}},B.prepTicks=function(t,e){var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if(t._dtickInit=t.dtick,t._tick0Init=t.tick0,&quot;auto&quot;===t.tickmode||!t.dtick){var n,a=t.nticks;a||(&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?(n=t.tickfont?1.2*(t.tickfont.size||12):15,a=t._length/n):(n=&quot;y&quot;===t._id.charAt(0)?40:80,a=s.constrain(t._length/n,4,9)+1),&quot;radialaxis&quot;===t._name&amp;&amp;(a*=2)),&quot;array&quot;===t.tickmode&amp;&amp;(a*=100),t._roughDTick=Math.abs(r[1]-r[0])/a,B.autoTicks(t,t._roughDTick),t._minDtick&gt;0&amp;&amp;t.dtick&lt;2*t._minDtick&amp;&amp;(t.dtick=t._minDtick,t.tick0=t.l2r(t._forceTick0))}&quot;period&quot;===t.ticklabelmode&amp;&amp;function(t){var e;function r(){return!(i(t.dtick)||&quot;M&quot;!==t.dtick.charAt(0))}var n=r(),a=B.getTickFormat(t);if(a){var o=t._dtickInit!==t.dtick;/%[fLQsSMX]/.test(a)||(/%[HI]/.test(a)?(e=E,o&amp;&amp;!n&amp;&amp;t.dtick&lt;E&amp;&amp;(t.dtick=E)):/%p/.test(a)?(e=S,o&amp;&amp;!n&amp;&amp;t.dtick&lt;S&amp;&amp;(t.dtick=S)):/%[Aadejuwx]/.test(a)?(e=A,o&amp;&amp;!n&amp;&amp;t.dtick&lt;A&amp;&amp;(t.dtick=A)):/%[UVW]/.test(a)?(e=M,o&amp;&amp;!n&amp;&amp;t.dtick&lt;M&amp;&amp;(t.dtick=M)):/%[Bbm]/.test(a)?(e=T,o&amp;&amp;(n?X(t.dtick)&lt;1:t.dtick&lt;k)&amp;&amp;(t.dtick=&quot;M1&quot;)):/%[q]/.test(a)?(e=b,o&amp;&amp;(n?X(t.dtick)&lt;3:t.dtick&lt;_)&amp;&amp;(t.dtick=&quot;M3&quot;)):/%[Yy]/.test(a)&amp;&amp;(e=v,o&amp;&amp;(n?X(t.dtick)&lt;12:t.dtick&lt;y)&amp;&amp;(t.dtick=&quot;M12&quot;)))}(n=r())&amp;&amp;t.tick0===t._dowTick0&amp;&amp;(t.tick0=t._rawTick0);t._definedDelta=e}(t),t.tick0||(t.tick0=&quot;date&quot;===t.type?&quot;2000-01-01&quot;:0),&quot;date&quot;===t.type&amp;&amp;t.dtick&lt;.1&amp;&amp;(t.dtick=.1),nt(t)},B.calcTicks=function(t,e){B.prepTicks(t,e);var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if(&quot;array&quot;===t.tickmode)return function(t){var e=t.tickvals,r=t.ticktext,n=new Array(e.length),i=H(s.simpleMap(t.range,t.r2l)),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]),l=0;Array.isArray(r)||(r=[]);var c=&quot;category&quot;===t.type?t.d2l_noadd:t.d2l;&quot;log&quot;===t.type&amp;&amp;&quot;L&quot;!==String(t.dtick).charAt(0)&amp;&amp;(t.dtick=&quot;L&quot;+Math.pow(10,Math.floor(Math.min(t.range[0],t.range[1]))-1));for(var u=0;u&lt;e.length;u++){var f=c(e[u]);f&gt;a&amp;&amp;f&lt;o&amp;&amp;(void 0===r[u]?n[l]=B.tickText(t,f):n[l]=it(t,f,String(r[u])),l++)}l&lt;e.length&amp;&amp;n.splice(l,e.length-l);t.rangebreaks&amp;&amp;(n=n.filter((function(e){return t.maskBreaks(e.x)!==P})));return n}(t);var n=H(r),a=n[0],o=n[1],l=r[1]&lt;r[0],c=Math.min(r[0],r[1]),u=Math.max(r[0],r[1]),f=&quot;log&quot;===t.type&amp;&amp;!(i(t.dtick)||&quot;L&quot;===t.dtick.charAt(0)),h=&quot;period&quot;===t.ticklabelmode;if(t._tmin=B.tickFirst(t,e),t._tmin&lt;a!==l)return[];&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(o=l?Math.max(-.5,o):Math.min(t._categories.length-.5,o));var p=t._tmin;t.rangebreaks&amp;&amp;t._tick0Init!==t.tick0&amp;&amp;(p=wt(p,t),l||(p=B.tickIncrement(p,t.dtick,!l,t.calendar))),h&amp;&amp;(p=B.tickIncrement(p,t.dtick,!l,t.calendar));for(var d,g=Math.max(1e3,t._length||0),C=[],L=null;l?p&gt;=o:p&lt;=o;p=B.tickIncrement(p,t.dtick,l,t.calendar)){if(t.rangebreaks&amp;&amp;!l){if(p&lt;a)continue;if(t.maskBreaks(p)===P&amp;&amp;wt(p,t)&gt;=u)break}if(C.length&gt;g||p===L)break;L=p;var I=!1;f&amp;&amp;p!==(0|p)&amp;&amp;(I=!0),C.push({minor:I,value:p})}if(h&amp;&amp;function(t,e,r){for(var n=0;n&lt;t.length;n++){var i=t[n].value,a=n,o=n+1;n&lt;t.length-1?(a=n,o=n+1):n&gt;0?(a=n-1,o=n):(a=n,o=n);var s,l=t[a].value,c=t[o].value,u=Math.abs(c-l),f=r||u,h=0;f&gt;=y?h=u&gt;=y&amp;&amp;u&lt;=m?u:v:r===b&amp;&amp;f&gt;=_?h=u&gt;=_&amp;&amp;u&lt;=x?u:b:f&gt;=k?h=u&gt;=k&amp;&amp;u&lt;=w?u:T:r===M&amp;&amp;f&gt;=M?h=M:f&gt;=A?h=A:r===S&amp;&amp;f&gt;=S?h=S:r===E&amp;&amp;f&gt;=E&amp;&amp;(h=E),h&gt;=u&amp;&amp;(h=u,s=!0);var p=i+h;if(e.rangebreaks&amp;&amp;h&gt;0){for(var d=0,g=0;g&lt;84;g++){var C=(g+.5)/84;e.maskBreaks(i*(1-C)+C*p)!==P&amp;&amp;d++}(h*=d/84)||(t[n].drop=!0),s&amp;&amp;u&gt;M&amp;&amp;(h=u)}(h&gt;0||0===n)&amp;&amp;(t[n].periodX=i+h/2)}}(C,t,t._definedDelta),t.rangebreaks){var z=&quot;y&quot;===t._id.charAt(0),O=1;&quot;auto&quot;===t.tickmode&amp;&amp;(O=t.tickfont?t.tickfont.size:12);var D=NaN;for(d=C.length-1;d&gt;-1;d--)if(C[d].drop)C.splice(d,1);else{C[d].value=wt(C[d].value,t);var R=t.c2p(C[d].value);(z?D&gt;R-O:D&lt;R+O)?C.splice(l?d+1:d,1):D=R}}_t(t)&amp;&amp;360===Math.abs(r[1]-r[0])&amp;&amp;C.pop(),t._tmax=(C[C.length-1]||{}).value,t._prevDateHead=&quot;&quot;,t._inCalcTicks=!0;var F,N,j=[];for(d=0;d&lt;C.length;d++){var U=C[d].minor,V=C[d].value;F=B.tickText(t,V,!1,U),void 0!==(N=C[d].periodX)&amp;&amp;(F.periodX=N,(N&gt;u||N&lt;c)&amp;&amp;(N&gt;u&amp;&amp;(F.periodX=u),N&lt;c&amp;&amp;(F.periodX=c),F.text=&quot; &quot;,t._prevDateHead=&quot;&quot;)),j.push(F)}return t._inCalcTicks=!1,j};var Z=[2,5,10],J=[1,2,3,6,12],K=[1,2,5,10,15,30],Q=[1,2,3,7,14],$=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],tt=[-.301,0,.301,.699,1],et=[15,30,45,90,180];function rt(t,e,r){return e*s.roundUp(t/e,r)}function nt(t){var e=t.dtick;if(t._tickexponent=0,i(e)||&quot;string&quot;==typeof e||(e=1),&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(t._tickround=null),&quot;date&quot;===t.type){var r=t.r2l(t.tick0),n=t.l2r(r).replace(/(^-|i)/g,&quot;&quot;),a=n.length;if(&quot;M&quot;===String(e).charAt(0))a&gt;10||&quot;01-01&quot;!==n.substr(5)?t._tickround=&quot;d&quot;:t._tickround=+e.substr(1)%12==0?&quot;y&quot;:&quot;m&quot;;else if(e&gt;=A&amp;&amp;a&lt;=10||e&gt;=15*A)t._tickround=&quot;d&quot;;else if(e&gt;=C&amp;&amp;a&lt;=16||e&gt;=E)t._tickround=&quot;M&quot;;else if(e&gt;=L&amp;&amp;a&lt;=19||e&gt;=C)t._tickround=&quot;S&quot;;else{var o=t.l2r(r+e).replace(/^-/,&quot;&quot;).length;t._tickround=Math.max(a,o)-20,t._tickround&lt;0&amp;&amp;(t._tickround=4)}}else if(i(e)||&quot;L&quot;===e.charAt(0)){var s=t.range.map(t.r2d||Number);i(e)||(e=Number(e.substr(1))),t._tickround=2-Math.floor(Math.log(e)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),c=Math.floor(Math.log(l)/Math.LN10+.01),u=void 0===t.minexponent?3:t.minexponent;Math.abs(c)&gt;u&amp;&amp;(ot(t.exponentformat)&amp;&amp;!st(c)?t._tickexponent=3*Math.round((c-1)/3):t._tickexponent=c)}else t._tickround=null}function it(t,e,r){var n=t.tickfont||{};return{x:e,dx:0,dy:0,text:r||&quot;&quot;,fontSize:n.size,font:n.family,fontColor:n.color}}B.autoTicks=function(t,e){var r;function n(t){return Math.pow(t,Math.floor(Math.log(e)/Math.LN10))}if(&quot;date&quot;===t.type){t.tick0=s.dateTick0(t.calendar,0);var a=2*e;if(a&gt;v)e/=v,r=n(10),t.dtick=&quot;M&quot;+12*rt(e,r,Z);else if(a&gt;T)e/=T,t.dtick=&quot;M&quot;+rt(e,1,J);else if(a&gt;A){t.dtick=rt(e,A,t._hasDayOfWeekBreaks?[1,2,7,14]:Q);var o=B.getTickFormat(t),l=&quot;period&quot;===t.ticklabelmode;l&amp;&amp;(t._rawTick0=t.tick0),/%[uVW]/.test(o)?t.tick0=s.dateTick0(t.calendar,2):t.tick0=s.dateTick0(t.calendar,1),l&amp;&amp;(t._dowTick0=t.tick0)}else a&gt;E?t.dtick=rt(e,E,J):a&gt;C?t.dtick=rt(e,C,K):a&gt;L?t.dtick=rt(e,L,K):(r=n(10),t.dtick=rt(e,r,Z))}else if(&quot;log&quot;===t.type){t.tick0=0;var c=s.simpleMap(t.range,t.r2l);if(e&gt;.7)t.dtick=Math.ceil(e);else if(Math.abs(c[1]-c[0])&lt;1){var u=1.5*Math.abs((c[1]-c[0])/e);e=Math.abs(Math.pow(10,c[1])-Math.pow(10,c[0]))/u,r=n(10),t.dtick=&quot;L&quot;+rt(e,r,Z)}else t.dtick=e&gt;.3?&quot;D2&quot;:&quot;D1&quot;}else&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?(t.tick0=0,t.dtick=Math.ceil(Math.max(e,1))):_t(t)?(t.tick0=0,r=1,t.dtick=rt(e,r,et)):(t.tick0=0,r=n(10),t.dtick=rt(e,r,Z));if(0===t.dtick&amp;&amp;(t.dtick=1),!i(t.dtick)&amp;&amp;&quot;string&quot;!=typeof t.dtick){var f=t.dtick;throw t.dtick=1,&quot;ax.dtick error: &quot;+String(f)}},B.tickIncrement=function(t,e,r,a){var o=r?-1:1;if(i(e))return s.increment(t,o*e);var l=e.charAt(0),c=o*Number(e.substr(1));if(&quot;M&quot;===l)return s.incrementMonth(t,c,a);if(&quot;L&quot;===l)return Math.log(Math.pow(10,t)+c)/Math.LN10;if(&quot;D&quot;===l){var u=&quot;D2&quot;===e?tt:$,f=t+.01*o,h=s.roundUp(s.mod(f,1),u,r);return Math.floor(f)+Math.log(n.round(Math.pow(10,h),1))/Math.LN10}throw&quot;unrecognized dtick &quot;+String(e)},B.tickFirst=function(t,e){var r=t.r2l||Number,a=s.simpleMap(t.range,r,void 0,void 0,e),o=a[1]&lt;a[0],l=o?Math.floor:Math.ceil,c=H(a)[0],u=t.dtick,f=r(t.tick0);if(i(u)){var h=l((c-f)/u)*u+f;return&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(h=s.constrain(h,0,t._categories.length-1)),h}var p=u.charAt(0),d=Number(u.substr(1));if(&quot;M&quot;===p){for(var g,m,v,y=0,x=f;y&lt;10;){if(((g=B.tickIncrement(x,u,o,t.calendar))-c)*(x-c)&lt;=0)return o?Math.min(x,g):Math.max(x,g);m=(c-(x+g)/2)/(g-x),v=p+(Math.abs(Math.round(m))||1)*d,x=B.tickIncrement(x,v,m&lt;0?!o:o,t.calendar),y++}return s.error(&quot;tickFirst did not converge&quot;,t),x}if(&quot;L&quot;===p)return Math.log(l((Math.pow(10,c)-f)/d)*d+f)/Math.LN10;if(&quot;D&quot;===p){var b=&quot;D2&quot;===u?tt:$,_=s.roundUp(s.mod(c,1),b,o);return Math.floor(c)+Math.log(n.round(Math.pow(10,_),1))/Math.LN10}throw&quot;unrecognized dtick &quot;+String(u)},B.tickText=function(t,e,r,n){var a,o=it(t,e),l=&quot;array&quot;===t.tickmode,c=r||l,u=t.type,f=&quot;category&quot;===u?t.d2l_noadd:t.d2l;if(l&amp;&amp;Array.isArray(t.ticktext)){var h=s.simpleMap(t.range,t.r2l),p=(Math.abs(h[1]-h[0])-(t._lBreaks||0))/1e4;for(a=0;a&lt;t.ticktext.length&amp;&amp;!(Math.abs(e-f(t.tickvals[a]))&lt;p);a++);if(a&lt;t.ticktext.length)return o.text=String(t.ticktext[a]),o}function d(n){if(void 0===n)return!0;if(r)return&quot;none&quot;===n;var i={first:t._tmin,last:t._tmax}[n];return&quot;all&quot;!==n&amp;&amp;e!==i}var g=r?&quot;never&quot;:&quot;none&quot;!==t.exponentformat&amp;&amp;d(t.showexponent)?&quot;hide&quot;:&quot;&quot;;if(&quot;date&quot;===u?function(t,e,r,n){var a=t._tickround,o=r&amp;&amp;t.hoverformat||B.getTickFormat(t);n&amp;&amp;(a=i(a)?4:{y:&quot;m&quot;,m:&quot;d&quot;,d:&quot;M&quot;,M:&quot;S&quot;,S:4}[a]);var l,c=s.formatDate(e.x,o,a,t._dateFormat,t.calendar,t._extraFormat),u=c.indexOf(&quot;\n&quot;);-1!==u&amp;&amp;(l=c.substr(u+1),c=c.substr(0,u));n&amp;&amp;(&quot;00:00:00&quot;===c||&quot;00:00&quot;===c?(c=l,l=&quot;&quot;):8===c.length&amp;&amp;(c=c.replace(/:00$/,&quot;&quot;)));if(l)if(r)&quot;d&quot;===a?c+=&quot;, &quot;+l:c=l+(c?&quot;, &quot;+c:&quot;&quot;);else if(t._inCalcTicks&amp;&amp;t._prevDateHead===l){var f=-1!==(t.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;),h=t._realSide||t.side;(!f&amp;&amp;&quot;top&quot;===h||f&amp;&amp;&quot;bottom&quot;===h)&amp;&amp;(c+=&quot;&lt;br&gt; &quot;)}else t._prevDateHead=l,c+=&quot;&lt;br&gt;&quot;+l;e.text=c}(t,o,r,c):&quot;log&quot;===u?function(t,e,r,n,a){var o=t.dtick,l=e.x,c=t.tickformat,u=&quot;string&quot;==typeof o&amp;&amp;o.charAt(0);&quot;never&quot;===a&amp;&amp;(a=&quot;&quot;);n&amp;&amp;&quot;L&quot;!==u&amp;&amp;(o=&quot;L3&quot;,u=&quot;L&quot;);if(c||&quot;L&quot;===u)e.text=lt(Math.pow(10,l),t,a,n);else if(i(o)||&quot;D&quot;===u&amp;&amp;s.mod(l+.01,1)&lt;.1){var f=Math.round(l),h=Math.abs(f),p=t.exponentformat;&quot;power&quot;===p||ot(p)&amp;&amp;st(f)?(e.text=0===f?1:1===f?&quot;10&quot;:&quot;10&lt;sup&gt;&quot;+(f&gt;1?&quot;&quot;:I)+h+&quot;&lt;/sup&gt;&quot;,e.fontSize*=1.25):(&quot;e&quot;===p||&quot;E&quot;===p)&amp;&amp;h&gt;2?e.text=&quot;1&quot;+p+(f&gt;0?&quot;+&quot;:I)+h:(e.text=lt(Math.pow(10,l),t,&quot;&quot;,&quot;fakehover&quot;),&quot;D1&quot;===o&amp;&amp;&quot;y&quot;===t._id.charAt(0)&amp;&amp;(e.dy-=e.fontSize/6))}else{if(&quot;D&quot;!==u)throw&quot;unrecognized dtick &quot;+String(o);e.text=String(Math.round(Math.pow(10,s.mod(l,1)))),e.fontSize*=.75}if(&quot;D1&quot;===t.dtick){var d=String(e.text).charAt(0);&quot;0&quot;!==d&amp;&amp;&quot;1&quot;!==d||(&quot;y&quot;===t._id.charAt(0)?e.dx-=e.fontSize/4:(e.dy+=e.fontSize/2,e.dx+=(t.range[1]&gt;t.range[0]?1:-1)*e.fontSize*(l&lt;0?.5:.25)))}}(t,o,0,c,g):&quot;category&quot;===u?function(t,e){var r=t._categories[Math.round(e.x)];void 0===r&amp;&amp;(r=&quot;&quot;);e.text=String(r)}(t,o):&quot;multicategory&quot;===u?function(t,e,r){var n=Math.round(e.x),i=t._categories[n]||[],a=void 0===i[1]?&quot;&quot;:String(i[1]),o=void 0===i[0]?&quot;&quot;:String(i[0]);r?e.text=o+&quot; - &quot;+a:(e.text=a,e.text2=o)}(t,o,r):_t(t)?function(t,e,r,n,i){if(&quot;radians&quot;!==t.thetaunit||r)e.text=lt(e.x,t,i,n);else{var a=e.x/180;if(0===a)e.text=&quot;0&quot;;else{var o=function(t){function e(t,e){return Math.abs(t-e)&lt;=1e-6}var r=function(t){for(var r=1;!e(Math.round(t*r)/r,t);)r*=10;return r}(t),n=t*r,i=Math.abs(function t(r,n){return e(n,0)?r:t(n,r%n)}(n,r));return[Math.round(n/i),Math.round(r/i)]}(a);if(o[1]&gt;=100)e.text=lt(s.deg2rad(e.x),t,i,n);else{var l=e.x&lt;0;1===o[1]?1===o[0]?e.text=&quot;\u03c0&quot;:e.text=o[0]+&quot;\u03c0&quot;:e.text=[&quot;&lt;sup&gt;&quot;,o[0],&quot;&lt;/sup&gt;&quot;,&quot;\u2044&quot;,&quot;&lt;sub&gt;&quot;,o[1],&quot;&lt;/sub&gt;&quot;,&quot;\u03c0&quot;].join(&quot;&quot;),l&amp;&amp;(e.text=I+e.text)}}}}(t,o,r,c,g):function(t,e,r,n,i){&quot;never&quot;===i?i=&quot;&quot;:&quot;all&quot;===t.showexponent&amp;&amp;Math.abs(e.x/t.dtick)&lt;1e-6&amp;&amp;(i=&quot;hide&quot;);e.text=lt(e.x,t,i,n)}(t,o,0,c,g),n||(t.tickprefix&amp;&amp;!d(t.showtickprefix)&amp;&amp;(o.text=t.tickprefix+o.text),t.ticksuffix&amp;&amp;!d(t.showticksuffix)&amp;&amp;(o.text+=t.ticksuffix)),&quot;boundaries&quot;===t.tickson||t.showdividers){var m=function(e){var r=t.l2p(e);return r&gt;=0&amp;&amp;r&lt;=t._length?e:null};o.xbnd=[m(o.x-.5),m(o.x+t.dtick-.5)]}return o},B.hoverLabelText=function(t,e,r){if(r!==P&amp;&amp;r!==e)return B.hoverLabelText(t,e)+&quot; - &quot;+B.hoverLabelText(t,r);var n=&quot;log&quot;===t.type&amp;&amp;e&lt;=0,i=B.tickText(t,t.c2l(n?-e:e),&quot;hover&quot;).text;return n?0===e?&quot;0&quot;:I+i:i};var at=[&quot;f&quot;,&quot;p&quot;,&quot;n&quot;,&quot;\u03bc&quot;,&quot;m&quot;,&quot;&quot;,&quot;k&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;];function ot(t){return&quot;SI&quot;===t||&quot;B&quot;===t}function st(t){return t&gt;14||t&lt;-15}function lt(t,e,r,n){var a=t&lt;0,o=e._tickround,l=r||e.exponentformat||&quot;B&quot;,c=e._tickexponent,u=B.getTickFormat(e),f=e.separatethousands;if(n){var h={exponentformat:l,minexponent:e.minexponent,dtick:&quot;none&quot;===e.showexponent?e.dtick:i(t)&amp;&amp;Math.abs(t)||1,range:&quot;none&quot;===e.showexponent?e.range.map(e.r2d):[0,t||1]};nt(h),o=(Number(h._tickround)||0)+4,c=h._tickexponent,e.hoverformat&amp;&amp;(u=e.hoverformat)}if(u)return e._numFormat(u)(t).replace(/-/g,I);var p,d=Math.pow(10,-o)/2;if(&quot;none&quot;===l&amp;&amp;(c=0),(t=Math.abs(t))&lt;d)t=&quot;0&quot;,a=!1;else{if(t+=d,c&amp;&amp;(t*=Math.pow(10,-c),o+=c),0===o)t=String(Math.floor(t));else if(o&lt;0){t=(t=String(Math.round(t))).substr(0,t.length+o);for(var g=o;g&lt;0;g++)t+=&quot;0&quot;}else{var m=(t=String(t)).indexOf(&quot;.&quot;)+1;m&amp;&amp;(t=t.substr(0,m+o).replace(/\.?0+$/,&quot;&quot;))}t=s.numSeparate(t,e._separators,f)}c&amp;&amp;&quot;hide&quot;!==l&amp;&amp;(ot(l)&amp;&amp;st(c)&amp;&amp;(l=&quot;power&quot;),p=c&lt;0?I+-c:&quot;power&quot;!==l?&quot;+&quot;+c:String(c),&quot;e&quot;===l||&quot;E&quot;===l?t+=l+p:&quot;power&quot;===l?t+=&quot;\xd710&lt;sup&gt;&quot;+p+&quot;&lt;/sup&gt;&quot;:&quot;B&quot;===l&amp;&amp;9===c?t+=&quot;B&quot;:ot(l)&amp;&amp;(t+=at[c/3+5]));return a?I+t:t}function ct(t,e){for(var r=[],n={},i=0;i&lt;e.length;i++){var a=e[i];n[a.text2]?n[a.text2].push(a.x):n[a.text2]=[a.x]}for(var o in n)r.push(it(t,s.interp(n[o],.5),o));return r}function ut(t){return void 0!==t.periodX?t.periodX:t.x}function ft(t){return[t.text,t.x,t.axInfo,t.font,t.fontSize,t.fontColor].join(&quot;_&quot;)}function ht(t){var e=t.title.font.size,r=(t.title.text.match(c.BR_TAG_ALL)||[]).length;return t.title.hasOwnProperty(&quot;standoff&quot;)?r?e*(D+r*R):e*D:r?e*(r+1)*R:e}function pt(t,e){var r=t.l2p(e);return r&gt;1&amp;&amp;r&lt;t._length-1}function dt(t){var e=n.select(t),r=e.select(&quot;.text-math-group&quot;);return r.empty()?e.select(&quot;text&quot;):r}function gt(t){return t._id+&quot;.automargin&quot;}function mt(t){return gt(t)+&quot;.mirror&quot;}function vt(t){return t._id+&quot;.rangeslider&quot;}function yt(t,e){for(var r=0;r&lt;e.length;r++)-1===t.indexOf(e[r])&amp;&amp;t.push(e[r])}function xt(t,e,r){var n,i,a=[],o=[],l=t.layout;for(n=0;n&lt;e.length;n++)a.push(B.getFromId(t,e[n]));for(n=0;n&lt;r.length;n++)o.push(B.getFromId(t,r[n]));var c=Object.keys(p),u=[&quot;anchor&quot;,&quot;domain&quot;,&quot;overlaying&quot;,&quot;position&quot;,&quot;side&quot;,&quot;tickangle&quot;,&quot;editType&quot;],f=[&quot;linear&quot;,&quot;log&quot;];for(n=0;n&lt;c.length;n++){var h=c[n],d=a[0][h],g=o[0][h],m=!0,v=!1,y=!1;if(&quot;_&quot;!==h.charAt(0)&amp;&amp;&quot;function&quot;!=typeof d&amp;&amp;-1===u.indexOf(h)){for(i=1;i&lt;a.length&amp;&amp;m;i++){var x=a[i][h];&quot;type&quot;===h&amp;&amp;-1!==f.indexOf(d)&amp;&amp;-1!==f.indexOf(x)&amp;&amp;d!==x?v=!0:x!==d&amp;&amp;(m=!1)}for(i=1;i&lt;o.length&amp;&amp;m;i++){var b=o[i][h];&quot;type&quot;===h&amp;&amp;-1!==f.indexOf(g)&amp;&amp;-1!==f.indexOf(b)&amp;&amp;g!==b?y=!0:o[i][h]!==g&amp;&amp;(m=!1)}m&amp;&amp;(v&amp;&amp;(l[a[0]._name].type=&quot;linear&quot;),y&amp;&amp;(l[o[0]._name].type=&quot;linear&quot;),bt(l,h,a,o,t._fullLayout._dfltTitle))}}for(n=0;n&lt;t._fullLayout.annotations.length;n++){var _=t._fullLayout.annotations[n];-1!==e.indexOf(_.xref)&amp;&amp;-1!==r.indexOf(_.yref)&amp;&amp;s.swapAttrs(l.annotations[n],[&quot;?&quot;])}}function bt(t,e,r,n,i){var a,o=s.nestedProperty,l=o(t[r[0]._name],e).get(),c=o(t[n[0]._name],e).get();for(&quot;title&quot;===e&amp;&amp;(l&amp;&amp;l.text===i.x&amp;&amp;(l.text=i.y),c&amp;&amp;c.text===i.y&amp;&amp;(c.text=i.x)),a=0;a&lt;r.length;a++)o(t,r[a]._name+&quot;.&quot;+e).set(c);for(a=0;a&lt;n.length;a++)o(t,n[a]._name+&quot;.&quot;+e).set(l)}function _t(t){return&quot;angularaxis&quot;===t._id}function wt(t,e){for(var r=e._rangebreaks.length,n=0;n&lt;r;n++){var i=e._rangebreaks[n];if(t&gt;=i.min&amp;&amp;t&lt;i.max)return i.max}return t}B.getTickFormat=function(t){var e,r,n,i,a,o,s,l;function c(t){return&quot;string&quot;!=typeof t?t:Number(t.replace(&quot;M&quot;,&quot;&quot;))*T}function u(t,e){var r=[&quot;L&quot;,&quot;D&quot;];if(typeof t==typeof e){if(&quot;number&quot;==typeof t)return t-e;var n=r.indexOf(t.charAt(0)),i=r.indexOf(e.charAt(0));return n===i?Number(t.replace(/(L|D)/g,&quot;&quot;))-Number(e.replace(/(L|D)/g,&quot;&quot;)):n-i}return&quot;number&quot;==typeof t?1:-1}function f(t,e){var r=null===e[0],n=null===e[1],i=u(t,e[0])&gt;=0,a=u(t,e[1])&lt;=0;return(r||i)&amp;&amp;(n||a)}if(t.tickformatstops&amp;&amp;t.tickformatstops.length&gt;0)switch(t.type){case&quot;date&quot;:case&quot;linear&quot;:for(e=0;e&lt;t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&amp;&amp;(i=t.dtick,a=n.dtickrange,o=void 0,s=void 0,l=void 0,o=c||function(t){return t},s=a[0],l=a[1],(!s&amp;&amp;&quot;number&quot;!=typeof s||o(s)&lt;=o(i))&amp;&amp;(!l&amp;&amp;&quot;number&quot;!=typeof l||o(l)&gt;=o(i)))){r=n;break}break;case&quot;log&quot;:for(e=0;e&lt;t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&amp;&amp;f(t.dtick,n.dtickrange)){r=n;break}}return r?r.value:t.tickformat},B.getSubplots=function(t,e){var r=t._fullLayout._subplots,n=r.cartesian.concat(r.gl2d||[]),i=e?B.findSubplotsWithAxis(n,e):n;return i.sort((function(t,e){var r=t.substr(1).split(&quot;y&quot;),n=e.substr(1).split(&quot;y&quot;);return r[0]===n[0]?+r[1]-+n[1]:+r[0]-+n[0]})),i},B.findSubplotsWithAxis=function(t,e){for(var r=new RegExp(&quot;x&quot;===e._id.charAt(0)?&quot;^&quot;+e._id+&quot;y&quot;:e._id+&quot;$&quot;),n=[],i=0;i&lt;t.length;i++){var a=t[i];r.test(a)&amp;&amp;n.push(a)}return n},B.makeClipPaths=function(t){var e=t._fullLayout;if(!e._hasOnlyLargeSploms){var r,i,a={_offset:0,_length:e.width,_id:&quot;&quot;},o={_offset:0,_length:e.height,_id:&quot;&quot;},s=B.list(t,&quot;x&quot;,!0),l=B.list(t,&quot;y&quot;,!0),c=[];for(r=0;r&lt;s.length;r++)for(c.push({x:s[r],y:o}),i=0;i&lt;l.length;i++)0===r&amp;&amp;c.push({x:a,y:l[i]}),c.push({x:s[r],y:l[i]});var u=e._clips.selectAll(&quot;.axesclip&quot;).data(c,(function(t){return t.x._id+t.y._id}));u.enter().append(&quot;clipPath&quot;).classed(&quot;axesclip&quot;,!0).attr(&quot;id&quot;,(function(t){return&quot;clip&quot;+e._uid+t.x._id+t.y._id})).append(&quot;rect&quot;),u.exit().remove(),u.each((function(t){n.select(this).select(&quot;rect&quot;).attr({x:t.x._offset||0,y:t.y._offset||0,width:t.x._length||1,height:t.y._length||1})}))}},B.draw=function(t,e,r){var n=t._fullLayout;&quot;redraw&quot;===e&amp;&amp;n._paper.selectAll(&quot;g.subplot&quot;).each((function(t){var e=t[0],r=n._plots[e];if(r){var i=r.xaxis,a=r.yaxis;r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;tick&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;tick&quot;).remove(),r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;tick2&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;tick2&quot;).remove(),r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;divider&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;divider&quot;).remove(),r.gridlayer&amp;&amp;r.gridlayer.selectAll(&quot;path&quot;).remove(),r.zerolinelayer&amp;&amp;r.zerolinelayer.selectAll(&quot;path&quot;).remove(),n._infolayer.select(&quot;.g-&quot;+i._id+&quot;title&quot;).remove(),n._infolayer.select(&quot;.g-&quot;+a._id+&quot;title&quot;).remove()}}));var i=e&amp;&amp;&quot;redraw&quot;!==e?e:B.listIds(t);return s.syncOrAsync(i.map((function(e){return function(){if(e){var n=B.getFromId(t,e),i=B.drawOne(t,n,r);return n._r=n.range.slice(),n._rl=s.simpleMap(n._r,n.r2l),i}}})))},B.drawOne=function(t,e,r){var n,i,l;r=r||{},e.setScale();var c=t._fullLayout,p=e._id,d=p.charAt(0),g=B.counterLetter(p),m=c._plots[e._mainSubplot];if(m){var v=m[d+&quot;axislayer&quot;],y=e._mainLinePosition,x=e._mainMirrorPosition,b=e._vals=B.calcTicks(e),_=[e.mirror,y,x].join(&quot;_&quot;);for(n=0;n&lt;b.length;n++)b[n].axInfo=_;e._selections={},e._tickAngles&amp;&amp;(e._prevTickAngles=e._tickAngles),e._tickAngles={},e._depth=null;var w={};if(e.visible){var T,k,M=B.makeTransTickFn(e),A=B.makeTransTickLabelFn(e),S=&quot;inside&quot;===e.ticks,E=&quot;outside&quot;===e.ticks;if(&quot;boundaries&quot;===e.tickson){var C=function(t,e){var r,n=[],i=function(t,e){var r=t.xbnd[e];null!==r&amp;&amp;n.push(s.extendFlat({},t,{x:r}))};if(e.length){for(r=0;r&lt;e.length;r++)i(e[r],0);i(e[r-1],1)}return n}(0,b);k=B.clipEnds(e,C),T=S?k:C}else k=B.clipEnds(e,b),T=S&amp;&amp;&quot;period&quot;!==e.ticklabelmode?k:b;var L=e._gridVals=k,I=function(t,e){var r,n,i=[],a=e.length&amp;&amp;e[e.length-1].x&lt;e[0].x,o=function(t,e){var r=t.xbnd[e];null!==r&amp;&amp;i.push(s.extendFlat({},t,{x:r}))};if(t.showdividers&amp;&amp;e.length){for(r=0;r&lt;e.length;r++){var l=e[r];l.text2!==n&amp;&amp;o(l,a?1:0),n=l.text2}o(e[r-1],a?0:1)}return i}(e,b);if(!c._hasOnlyLargeSploms){var P=e._subplotsWith,z={};for(n=0;n&lt;P.length;n++){i=P[n];var O=(l=c._plots[i])[g+&quot;axis&quot;],D=O._mainAxis._id;if(!z[D]){z[D]=1;var N=&quot;x&quot;===d?&quot;M0,&quot;+O._offset+&quot;v&quot;+O._length:&quot;M&quot;+O._offset+&quot;,0h&quot;+O._length;B.drawGrid(t,e,{vals:L,counterAxis:O,layer:l.gridlayer.select(&quot;.&quot;+p),path:N,transFn:M}),B.drawZeroLine(t,e,{counterAxis:O,layer:l.zerolinelayer,path:N,transFn:M})}}}var j=B.getTickSigns(e),U=[];if(e.ticks){var V,q,H,G=B.makeTickPath(e,y,j[2]);if(e._anchorAxis&amp;&amp;e.mirror&amp;&amp;!0!==e.mirror?(V=B.makeTickPath(e,x,j[3]),q=G+V):(V=&quot;&quot;,q=G),e.showdividers&amp;&amp;E&amp;&amp;&quot;boundaries&quot;===e.tickson){var Y={};for(n=0;n&lt;I.length;n++)Y[I[n].x]=1;H=function(t){return Y[t.x]?V:q}}else H=q;B.drawTicks(t,e,{vals:T,layer:v,path:H,transFn:M}),&quot;allticks&quot;===e.mirror&amp;&amp;(U=Object.keys(e._linepositions||{}))}for(n=0;n&lt;U.length;n++){i=U[n],l=c._plots[i];var W=e._linepositions[i]||[],X=B.makeTickPath(e,W[0],j[0])+B.makeTickPath(e,W[1],j[1]);B.drawTicks(t,e,{vals:T,layer:l[d+&quot;axislayer&quot;],path:X,transFn:M})}var Z=[];if(Z.push((function(){return B.drawLabels(t,e,{vals:b,layer:v,transFn:A,labelFns:B.makeLabelFns(e,y)})})),&quot;multicategory&quot;===e.type){var J={x:2,y:10}[d];Z.push((function(){var r={x:&quot;height&quot;,y:&quot;width&quot;}[d],n=Q()[r]+J+(e._tickAngles[p+&quot;tick&quot;]?e.tickfont.size*R:0);return B.drawLabels(t,e,{vals:ct(e,b),layer:v,cls:p+&quot;tick2&quot;,repositionOnUpdate:!0,secondary:!0,transFn:M,labelFns:B.makeLabelFns(e,y+n*j[4])})})),Z.push((function(){return e._depth=j[4]*(Q(&quot;tick2&quot;)[e.side]-y),function(t,e,r){var n=e._id+&quot;divider&quot;,i=r.vals,a=r.layer.selectAll(&quot;path.&quot;+n).data(i,ft);a.exit().remove(),a.enter().insert(&quot;path&quot;,&quot;:first-child&quot;).classed(n,1).classed(&quot;crisp&quot;,1).call(f.stroke,e.dividercolor).style(&quot;stroke-width&quot;,h.crispRound(t,e.dividerwidth,1)+&quot;px&quot;),a.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path)}(t,e,{vals:I,layer:v,path:B.makeTickPath(e,y,j[4],e._depth),transFn:M})}))}else e.title.hasOwnProperty(&quot;standoff&quot;)&amp;&amp;Z.push((function(){e._depth=j[4]*(Q()[e.side]-y)}));var K=o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(e);return Z.push((function(){var r,n,i,s,l=e.side.charAt(0),u=F[e.side].charAt(0),f=B.getPxPosition(t,e),h=E?e.ticklen:0;if((e.automargin||K)&amp;&amp;(&quot;multicategory&quot;===e.type?r=Q(&quot;tick2&quot;):(r=Q(),&quot;x&quot;===d&amp;&amp;&quot;b&quot;===l&amp;&amp;(e._depth=Math.max(r.width&gt;0?r.bottom-f:0,h)))),e.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var p=[0,1];if(&quot;x&quot;===d){if(&quot;b&quot;===l?n[l]=e._depth:(n[l]=e._depth=Math.max(r.width&gt;0?f-r.top:0,h),p.reverse()),r.width&gt;0){var m=r.right-(e._offset+e._length);m&gt;0&amp;&amp;(n.xr=1,n.r=m);var v=e._offset-r.left;v&gt;0&amp;&amp;(n.xl=0,n.l=v)}}else if(&quot;l&quot;===l?n[l]=e._depth=Math.max(r.height&gt;0?f-r.left:0,h):(n[l]=e._depth=Math.max(r.height&gt;0?r.right-f:0,h),p.reverse()),r.height&gt;0){var y=r.bottom-(e._offset+e._length);y&gt;0&amp;&amp;(n.yb=0,n.b=y);var x=e._offset-r.top;x&gt;0&amp;&amp;(n.yt=1,n.t=x)}n[g]=&quot;free&quot;===e.anchor?e.position:e._anchorAxis.domain[p[0]],e.title.text!==c._dfltTitle[d]&amp;&amp;(n[l]+=ht(e)+(e.title.standoff||0)),e.mirror&amp;&amp;&quot;free&quot;!==e.anchor&amp;&amp;((i={x:0,y:0,r:0,l:0,t:0,b:0})[u]=e.linewidth,e.mirror&amp;&amp;!0!==e.mirror&amp;&amp;(i[u]+=h),!0===e.mirror||&quot;ticks&quot;===e.mirror?i[g]=e._anchorAxis.domain[p[1]]:&quot;all&quot;!==e.mirror&amp;&amp;&quot;allticks&quot;!==e.mirror||(i[g]=[e._counterDomainMin,e._counterDomainMax][p[1]]))}K&amp;&amp;(s=o.getComponentMethod(&quot;rangeslider&quot;,&quot;autoMarginOpts&quot;)(t,e)),a.autoMargin(t,gt(e),n),a.autoMargin(t,mt(e),i),a.autoMargin(t,vt(e),s)})),r.skipTitle||K&amp;&amp;&quot;bottom&quot;===e.side||Z.push((function(){return function(t,e){var r,n=t._fullLayout,i=e._id,a=i.charAt(0),o=e.title.font.size;if(e.title.hasOwnProperty(&quot;standoff&quot;))r=e._depth+e.title.standoff+ht(e);else{var s=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;);if(&quot;multicategory&quot;===e.type)r=e._depth;else{var l=1.5*o;s&amp;&amp;(l=.5*o,&quot;outside&quot;===e.ticks&amp;&amp;(l+=e.ticklen)),r=10+l+(e.linewidth?e.linewidth-1:0)}s||(r+=&quot;x&quot;===a?&quot;top&quot;===e.side?o*(e.showticklabels?1:0):o*(e.showticklabels?1.5:.5):&quot;right&quot;===e.side?o*(e.showticklabels?1:.5):o*(e.showticklabels?.5:0))}var c,f,p,d,g=B.getPxPosition(t,e);&quot;x&quot;===a?(f=e._offset+e._length/2,p=&quot;top&quot;===e.side?g-r:g+r):(p=e._offset+e._length/2,f=&quot;right&quot;===e.side?g+r:g-r,c={rotate:&quot;-90&quot;,offset:0});if(&quot;multicategory&quot;!==e.type){var m=e._selections[e._id+&quot;tick&quot;];if(d={selection:m,side:e.side},m&amp;&amp;m.node()&amp;&amp;m.node().parentNode){var v=h.getTranslate(m.node().parentNode);d.offsetLeft=v.x,d.offsetTop=v.y}e.title.hasOwnProperty(&quot;standoff&quot;)&amp;&amp;(d.pad=0)}return u.draw(t,i+&quot;title&quot;,{propContainer:e,propName:e._name+&quot;.title.text&quot;,placeholder:n._dfltTitle[a],avoid:d,transform:c,attributes:{x:f,y:p,&quot;text-anchor&quot;:&quot;middle&quot;}})}(t,e)})),s.syncOrAsync(Z)}}function Q(t){var r=p+(t||&quot;tick&quot;);return w[r]||(w[r]=function(t,e){var r,n,i,a;t._selections[e].size()?(r=1/0,n=-1/0,i=1/0,a=-1/0,t._selections[e].each((function(){var t=dt(this),e=h.bBox(t.node().parentNode);r=Math.min(r,e.top),n=Math.max(n,e.bottom),i=Math.min(i,e.left),a=Math.max(a,e.right)}))):(r=0,n=0,i=0,a=0);return{top:r,bottom:n,left:i,right:a,height:n-r,width:a-i}}(e,r)),w[r]}},B.getTickSigns=function(t){var e=t._id.charAt(0),r={x:&quot;top&quot;,y:&quot;right&quot;}[e],n=t.side===r?1:-1,i=[-1,1,n,-n];return&quot;inside&quot;!==t.ticks==(&quot;x&quot;===e)&amp;&amp;(i=i.map((function(t){return-t}))),t.side&amp;&amp;i.push({l:-1,t:-1,r:1,b:1}[t.side.charAt(0)]),i},B.makeTransTickFn=function(t){return&quot;x&quot;===t._id.charAt(0)?function(e){return l(t._offset+t.l2p(e.x),0)}:function(e){return l(0,t._offset+t.l2p(e.x))}},B.makeTransTickLabelFn=function(t){var e=function(t){var e=t.ticklabelposition||&quot;&quot;,r=function(t){return-1!==e.indexOf(t)},n=r(&quot;top&quot;),i=r(&quot;left&quot;),a=r(&quot;right&quot;),o=r(&quot;bottom&quot;),s=r(&quot;inside&quot;),l=o||i||n||a;if(!l&amp;&amp;!s)return[0,0];var c=t.side,u=l?(t.tickwidth||0)/2:0,f=3,h=t.tickfont?t.tickfont.size:12;(o||n)&amp;&amp;(u+=h*D,f+=(t.linewidth||0)/2);(i||a)&amp;&amp;(u+=(t.linewidth||0)/2,f+=3);s&amp;&amp;&quot;top&quot;===c&amp;&amp;(f-=h*(1-D));(i||n)&amp;&amp;(u=-u);&quot;bottom&quot;!==c&amp;&amp;&quot;right&quot;!==c||(f=-f);return[l?u:0,s?f:0]}(t),r=e[0],n=e[1];return&quot;x&quot;===t._id.charAt(0)?function(e){return l(r+t._offset+t.l2p(ut(e)),n)}:function(e){return l(n,r+t._offset+t.l2p(ut(e)))}},B.makeTickPath=function(t,e,r,n){n=void 0!==n?n:t.ticklen;var i=t._id.charAt(0),a=(t.linewidth||1)/2;return&quot;x&quot;===i?&quot;M0,&quot;+(e+a*r)+&quot;v&quot;+n*r:&quot;M&quot;+(e+a*r)+&quot;,0h&quot;+n*r},B.makeLabelFns=function(t,e,r){var n=t.ticklabelposition||&quot;&quot;,a=function(t){return-1!==n.indexOf(t)},o=a(&quot;top&quot;),l=a(&quot;left&quot;),c=a(&quot;right&quot;),u=a(&quot;bottom&quot;)||l||o||c,f=a(&quot;inside&quot;),h=&quot;inside&quot;===n&amp;&amp;&quot;inside&quot;===t.ticks||!f&amp;&amp;&quot;outside&quot;===t.ticks&amp;&amp;&quot;boundaries&quot;!==t.tickson,p=0,d=0,g=h?t.ticklen:0;if(f?g*=-1:u&amp;&amp;(g=0),h&amp;&amp;(p+=g,r)){var m=s.deg2rad(r);p=g*Math.cos(m)+1,d=g*Math.sin(m)}t.showticklabels&amp;&amp;(h||t.showline)&amp;&amp;(p+=.2*t.tickfont.size);var v,y,x,b,_,w={labelStandoff:p+=(t.linewidth||1)/2*(f?-1:1),labelShift:d},T=0,k=t.side,M=t._id.charAt(0),A=t.tickangle;if(&quot;x&quot;===M)b=(_=!f&amp;&amp;&quot;bottom&quot;===k||f&amp;&amp;&quot;top&quot;===k)?1:-1,f&amp;&amp;(b*=-1),v=d*b,y=e+p*b,x=_?1:-.2,90===Math.abs(A)&amp;&amp;(f?x+=O:x=-90===A&amp;&amp;&quot;bottom&quot;===k?D:90===A&amp;&amp;&quot;top&quot;===k?O:.5,T=O/2*(A/90)),w.xFn=function(t){return t.dx+v+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*x},w.anchorFn=function(t,e){if(u){if(l)return&quot;end&quot;;if(c)return&quot;start&quot;}return i(e)&amp;&amp;0!==e&amp;&amp;180!==e?e*b&lt;0!==f?&quot;end&quot;:&quot;start&quot;:&quot;middle&quot;},w.heightFn=function(e,r,n){return r&lt;-60||r&gt;60?-.5*n:&quot;top&quot;===t.side!==f?-n:0};else if(&quot;y&quot;===M){if(b=(_=!f&amp;&amp;&quot;left&quot;===k||f&amp;&amp;&quot;right&quot;===k)?1:-1,f&amp;&amp;(b*=-1),v=p,y=d*b,x=0,f||90!==Math.abs(A)||(x=-90===A&amp;&amp;&quot;left&quot;===k||90===A&amp;&amp;&quot;right&quot;===k?D:.5),f){var S=i(A)?+A:0;if(0!==S){var E=s.deg2rad(S);T=Math.abs(Math.sin(E))*D*b,x=0}}w.xFn=function(t){return t.dx+e-(v+t.fontSize*x)*b+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*O},w.anchorFn=function(t,e){return i(e)&amp;&amp;90===Math.abs(e)?&quot;middle&quot;:_?&quot;end&quot;:&quot;start&quot;},w.heightFn=function(e,r,n){return&quot;right&quot;===t.side&amp;&amp;(r*=-1),r&lt;-30?-n:r&lt;30?-.5*n:0}}return w},B.drawTicks=function(t,e,r){r=r||{};var n=e._id+&quot;tick&quot;,i=r.vals;&quot;period&quot;===e.ticklabelmode&amp;&amp;(i=i.slice()).shift();var a=r.layer.selectAll(&quot;path.&quot;+n).data(e.ticks?i:[],ft);a.exit().remove(),a.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;ticks&quot;,1).classed(&quot;crisp&quot;,!1!==r.crisp).call(f.stroke,e.tickcolor).style(&quot;stroke-width&quot;,h.crispRound(t,e.tickwidth,1)+&quot;px&quot;).attr(&quot;d&quot;,r.path),a.attr(&quot;transform&quot;,r.transFn)},B.drawGrid=function(t,e,r){r=r||{};var n=e._id+&quot;grid&quot;,i=r.vals,a=r.counterAxis;if(!1===e.showgrid)i=[];else if(a&amp;&amp;B.shouldShowZeroLine(t,e,a))for(var o=&quot;array&quot;===e.tickmode,s=0;s&lt;i.length;s++){var l=i[s].x;if(o?!l:Math.abs(l)&lt;e.dtick/100){if(i=i.slice(0,s).concat(i.slice(s+1)),!o)break;s--}}var c=r.layer.selectAll(&quot;path.&quot;+n).data(i,ft);c.exit().remove(),c.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;crisp&quot;,!1!==r.crisp),e._gw=h.crispRound(t,e.gridwidth,1),c.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path).call(f.stroke,e.gridcolor||&quot;#ddd&quot;).style(&quot;stroke-width&quot;,e._gw+&quot;px&quot;),&quot;function&quot;==typeof r.path&amp;&amp;c.attr(&quot;d&quot;,r.path)},B.drawZeroLine=function(t,e,r){r=r||r;var n=e._id+&quot;zl&quot;,i=B.shouldShowZeroLine(t,e,r.counterAxis),a=r.layer.selectAll(&quot;path.&quot;+n).data(i?[{x:0,id:e._id}]:[]);a.exit().remove(),a.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;zl&quot;,1).classed(&quot;crisp&quot;,!1!==r.crisp).each((function(){r.layer.selectAll(&quot;path&quot;).sort((function(t,e){return U(t.id,e.id)}))})),a.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path).call(f.stroke,e.zerolinecolor||f.defaultLine).style(&quot;stroke-width&quot;,h.crispRound(t,e.zerolinewidth,e._gw||1)+&quot;px&quot;)},B.drawLabels=function(t,e,r){r=r||{};var a=t._fullLayout,o=e._id,u=o.charAt(0),f=r.cls||o+&quot;tick&quot;,p=r.vals,d=r.labelFns,g=r.secondary?0:e.tickangle,m=(e._prevTickAngles||{})[f],v=r.layer.selectAll(&quot;g.&quot;+f).data(e.showticklabels?p:[],ft),y=[];function x(t,a){var o=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;);t.each((function(t){var s=n.select(this),u=s.select(&quot;.text-math-group&quot;),f=d.anchorFn(t,a),p=r.transFn.call(s.node(),t)+(i(a)&amp;&amp;0!=+a?&quot; rotate(&quot;+a+&quot;,&quot;+d.xFn(t)+&quot;,&quot;+(d.yFn(t)-t.fontSize/2)+&quot;)&quot;:&quot;&quot;),g=c.lineCount(s),m=R*t.fontSize,v=d.heightFn(t,i(a)?+a:0,(g-1)*m);if(v&amp;&amp;(p+=l(0,v)),u.empty()){var y=s.select(&quot;text&quot;);y.attr({transform:p,&quot;text-anchor&quot;:f}),o&amp;&amp;(y.style({opacity:100}),e._hideOutOfRangeInsideTickLabels&amp;&amp;e._hideOutOfRangeInsideTickLabels())}else{var x=h.bBox(u.node()).width*{end:-.5,start:.5}[f];u.attr(&quot;transform&quot;,p+l(x,0))}}))}v.enter().append(&quot;g&quot;).classed(f,1).append(&quot;text&quot;).attr(&quot;text-anchor&quot;,&quot;middle&quot;).each((function(e){var r=n.select(this),i=t._promises.length;r.call(c.positionText,d.xFn(e),d.yFn(e)).call(h.font,e.font,e.fontSize,e.fontColor).text(e.text).call(c.convertToTspans,t),t._promises[i]?y.push(t._promises.pop().then((function(){x(r,g)}))):x(r,g)})),v.exit().remove(),r.repositionOnUpdate&amp;&amp;v.each((function(t){n.select(this).select(&quot;text&quot;).call(c.positionText,d.xFn(t),d.yFn(t))})),e._hideOutOfRangeInsideTickLabels=void 0,-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;(e._hideOutOfRangeInsideTickLabels=function(){var t=s.simpleMap(e.range,e.r2l),r=e.l2p(t[0]),i=e.l2p(t[1]),a=Math.min(r,i)+e._offset,o=Math.max(r,i)+e._offset,l=&quot;x&quot;===e._id.charAt(0);v.each((function(t){var r=n.select(this);if(r.select(&quot;.text-math-group&quot;).empty()){var i=h.bBox(r.node()),s=!1;l?(i.right&gt;o||i.left&lt;a)&amp;&amp;(s=!0):(i.bottom&gt;o||i.top+(e.tickangle?0:t.fontSize/4)&lt;a)&amp;&amp;(s=!0),s&amp;&amp;r.select(&quot;text&quot;).style({opacity:0})}}))}),x(v,m+1?m:g);var b=null;e._selections&amp;&amp;(e._selections[f]=v);var _=[function(){return y.length&amp;&amp;Promise.all(y)}];e.automargin&amp;&amp;a._redrawFromAutoMarginCount&amp;&amp;90===m?(b=90,_.push((function(){x(v,m)}))):_.push((function(){if(x(v,g),p.length&amp;&amp;&quot;x&quot;===u&amp;&amp;!i(g)&amp;&amp;(&quot;log&quot;!==e.type||&quot;D&quot;!==String(e.dtick).charAt(0))){b=0;var t,n=0,a=[];if(v.each((function(t){n=Math.max(n,t.fontSize);var r=e.l2p(t.x),i=dt(this),o=h.bBox(i.node());a.push({top:0,bottom:10,height:10,left:r-o.width/2,right:r+o.width/2+2,width:o.width+2})})),&quot;boundaries&quot;!==e.tickson&amp;&amp;!e.showdividers||r.secondary){var o=p.length,l=Math.abs((p[o-1].x-p[0].x)*e._m)/(o-1),c=e.ticklabelposition||&quot;&quot;,f=function(t){return-1!==c.indexOf(t)},d=f(&quot;top&quot;),m=f(&quot;left&quot;),y=f(&quot;right&quot;),_=f(&quot;bottom&quot;)||m||d||y?(e.tickwidth||0)+6:0,w=l&lt;2.5*n||&quot;multicategory&quot;===e.type;for(t=0;t&lt;a.length-1;t++)if(s.bBoxIntersect(a[t],a[t+1],_)){b=w?90:30;break}}else{var T=2;for(e.ticks&amp;&amp;(T+=e.tickwidth/2),t=0;t&lt;a.length;t++){var k=p[t].xbnd,M=a[t];if(null!==k[0]&amp;&amp;M.left-e.l2p(k[0])&lt;T||null!==k[1]&amp;&amp;e.l2p(k[1])-M.right&lt;T){b=90;break}}}b&amp;&amp;x(v,b)}})),e._tickAngles&amp;&amp;_.push((function(){e._tickAngles[f]=null===b?i(g)?g:0:b}));var w=e._anchorAxis;w&amp;&amp;w.autorange&amp;&amp;-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;!V(a,e._id)&amp;&amp;(a._insideTickLabelsAutorange||(a._insideTickLabelsAutorange={}),a._insideTickLabelsAutorange[w._name+&quot;.autorange&quot;]=w.autorange,_.push((function(){v.each((function(t,r){var n=dt(this);e._vals[r].bb=h.bBox(n.node())}))})));var T=s.syncOrAsync(_);return T&amp;&amp;T.then&amp;&amp;t._promises.push(T),T},B.getPxPosition=function(t,e){var r,n=t._fullLayout._size,i=e._id.charAt(0),a=e.side;return&quot;free&quot;!==e.anchor?r=e._anchorAxis:&quot;x&quot;===i?r={_offset:n.t+(1-(e.position||0))*n.h,_length:0}:&quot;y&quot;===i&amp;&amp;(r={_offset:n.l+(e.position||0)*n.w,_length:0}),&quot;top&quot;===a||&quot;left&quot;===a?r._offset:&quot;bottom&quot;===a||&quot;right&quot;===a?r._offset+r._length:void 0},B.shouldShowZeroLine=function(t,e,r){var n=s.simpleMap(e.range,e.r2l);return n[0]*n[1]&lt;=0&amp;&amp;e.zeroline&amp;&amp;(&quot;linear&quot;===e.type||&quot;-&quot;===e.type)&amp;&amp;!(e.rangebreaks&amp;&amp;e.maskBreaks(0)===P)&amp;&amp;(pt(e,0)||!function(t,e,r,n){var i=r._mainAxis;if(!i)return;var a=t._fullLayout,o=e._id.charAt(0),s=B.counterLetter(e._id),l=e._offset+(Math.abs(n[0])&lt;Math.abs(n[1])==(&quot;x&quot;===o)?0:e._length);function c(t){if(!t.showline||!t.linewidth)return!1;var r=Math.max((t.linewidth+e.zerolinewidth)/2,1);function n(t){return&quot;number&quot;==typeof t&amp;&amp;Math.abs(t-l)&lt;r}if(n(t._mainLinePosition)||n(t._mainMirrorPosition))return!0;var i=t._linepositions||{};for(var a in i)if(n(i[a][0])||n(i[a][1]))return!0}var u=a._plots[r._mainSubplot];if(!(u.mainplotinfo||u).overlays.length)return c(r);for(var f=B.list(t,s),h=0;h&lt;f.length;h++){var p=f[h];if(p._mainAxis===i&amp;&amp;c(p))return!0}}(t,e,r,n)||function(t,e){for(var r=t._fullData,n=e._mainSubplot,i=e._id.charAt(0),a=0;a&lt;r.length;a++){var s=r[a];if(!0===s.visible&amp;&amp;s.xaxis+s.yaxis===n){if(o.traceIs(s,&quot;bar-like&quot;)&amp;&amp;s.orientation==={x:&quot;h&quot;,y:&quot;v&quot;}[i])return!0;if(s.fill&amp;&amp;s.fill.charAt(s.fill.length-1)===i)return!0}}return!1}(t,e))},B.clipEnds=function(t,e){return e.filter((function(e){return pt(t,e.x)}))},B.allowAutoMargin=function(t){for(var e=B.list(t,&quot;&quot;,!0),r=0;r&lt;e.length;r++){var n=e[r];n.automargin&amp;&amp;(a.allowAutoMargin(t,gt(n)),n.mirror&amp;&amp;a.allowAutoMargin(t,mt(n))),o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(n)&amp;&amp;a.allowAutoMargin(t,vt(n))}},B.swap=function(t,e){for(var r=function(t,e){var r,n,i=[];for(r=0;r&lt;e.length;r++){var a=[],o=t._fullData[e[r]].xaxis,s=t._fullData[e[r]].yaxis;if(o&amp;&amp;s){for(n=0;n&lt;i.length;n++)-1===i[n].x.indexOf(o)&amp;&amp;-1===i[n].y.indexOf(s)||a.push(n);if(a.length){var l,c=i[a[0]];if(a.length&gt;1)for(n=1;n&lt;a.length;n++)l=i[a[n]],yt(c.x,l.x),yt(c.y,l.y);yt(c.x,[o]),yt(c.y,[s])}else i.push({x:[o],y:[s]})}}return i}(t,e),n=0;n&lt;r.length;n++)xt(t,r[n].x,r[n].y)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../components/titles&quot;:738,&quot;../../constants/alignment&quot;:745,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;./autorange&quot;:827,&quot;./axis_autotype&quot;:829,&quot;./axis_ids&quot;:831,&quot;./clean_ticks&quot;:833,&quot;./layout_attributes&quot;:842,&quot;./set_convert&quot;:848,d3:169,&quot;fast-isnumeric&quot;:241}],829:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM,o=i.isArrayOrTypedArray,s=i.isDateTime,l=i.cleanNumber,c=Math.round;function u(t,e){return e?n(t):&quot;number&quot;==typeof t}function f(t){return Math.max(1,(t-1)/1e3)}e.exports=function(t,e,r){var i=t,h=r.noMultiCategory;if(o(i)&amp;&amp;!i.length)return&quot;-&quot;;if(!h&amp;&amp;function(t){return o(t[0])&amp;&amp;o(t[1])}(i))return&quot;multicategory&quot;;if(h&amp;&amp;Array.isArray(i[0])){for(var p=[],d=0;d&lt;i.length;d++)if(o(i[d]))for(var g=0;g&lt;i[d].length;g++)p.push(i[d][g]);i=p}if(function(t,e){for(var r=t.length,i=f(r),a=0,o=0,l={},u=0;u&lt;r;u+=i){var h=c(u),p=t[h],d=String(p);l[d]||(l[d]=1,s(p,e)&amp;&amp;a++,n(p)&amp;&amp;o++)}return a&gt;2*o}(i,e))return&quot;date&quot;;var m=&quot;strict&quot;!==r.autotypenumbers;return function(t,e){for(var r=t.length,n=f(r),i=0,o=0,s={},u=0;u&lt;r;u+=n){var h=c(u),p=t[h],d=String(p);if(!s[d]){s[d]=1;var g=typeof p;&quot;boolean&quot;===g?o++:(e?l(p)!==a:&quot;number&quot;===g)?i++:&quot;string&quot;===g&amp;&amp;o++}}return o&gt;2*i}(i,m)?&quot;category&quot;:function(t,e){for(var r=t.length,n=0;n&lt;r;n++)if(u(t[n],e))return!0;return!1}(i,m)?&quot;linear&quot;:&quot;-&quot;}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],830:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../array_container_defaults&quot;),s=t(&quot;./layout_attributes&quot;),l=t(&quot;./tick_value_defaults&quot;),c=t(&quot;./tick_mark_defaults&quot;),u=t(&quot;./tick_label_defaults&quot;),f=t(&quot;./category_order_defaults&quot;),h=t(&quot;./line_grid_defaults&quot;),p=t(&quot;./set_convert&quot;),d=t(&quot;./constants&quot;).WEEKDAY_PATTERN,g=t(&quot;./constants&quot;).HOUR_PATTERN;function m(t,e,r){function i(r,n){return a.coerce(t,e,s.rangebreaks,r,n)}if(i(&quot;enabled&quot;)){var o=i(&quot;bounds&quot;);if(o&amp;&amp;o.length&gt;=2){var l,c,u=&quot;&quot;;if(2===o.length)for(l=0;l&lt;2;l++)if(c=y(o[l])){u=d;break}var f=i(&quot;pattern&quot;,u);if(f===d)for(l=0;l&lt;2;l++)(c=y(o[l]))&amp;&amp;(e.bounds[l]=o[l]=c-1);if(f)for(l=0;l&lt;2;l++)switch(c=o[l],f){case d:if(!n(c))return void(e.enabled=!1);if((c=+c)!==Math.floor(c)||c&lt;0||c&gt;=7)return void(e.enabled=!1);e.bounds[l]=o[l]=c;break;case g:if(!n(c))return void(e.enabled=!1);if((c=+c)&lt;0||c&gt;24)return void(e.enabled=!1);e.bounds[l]=o[l]=c}if(!1===r.autorange){var h=r.range;if(h[0]&lt;h[1]){if(o[0]&lt;h[0]&amp;&amp;o[1]&gt;h[1])return void(e.enabled=!1)}else if(o[0]&gt;h[0]&amp;&amp;o[1]&lt;h[1])return void(e.enabled=!1)}}else{var p=i(&quot;values&quot;);if(!p||!p.length)return void(e.enabled=!1);i(&quot;dvalue&quot;)}}}e.exports=function(t,e,r,n,g){var v,y=n.letter,x=n.font||{},b=n.splomStash||{},_=r(&quot;visible&quot;,!n.visibleDflt),w=e._template||{},T=e.type||w.type||&quot;-&quot;;&quot;date&quot;===T&amp;&amp;(i.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;,n.calendar),n.noTicklabelmode||(v=r(&quot;ticklabelmode&quot;)));n.noTicklabelposition&amp;&amp;&quot;multicategory&quot;!==T||a.coerce(t,e,{ticklabelposition:{valType:&quot;enumerated&quot;,dflt:&quot;outside&quot;,values:&quot;period&quot;===v?[&quot;outside&quot;,&quot;inside&quot;]:&quot;x&quot;===y?[&quot;outside&quot;,&quot;inside&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;]:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;]}},&quot;ticklabelposition&quot;),p(e,g);var k=!e.isValidRange(t.range);k&amp;&amp;n.reverseDflt&amp;&amp;(k=&quot;reversed&quot;),!r(&quot;autorange&quot;,k)||&quot;linear&quot;!==T&amp;&amp;&quot;-&quot;!==T||r(&quot;rangemode&quot;),r(&quot;range&quot;),e.cleanRange(),f(t,e,r,n),&quot;category&quot;===T||n.noHover||r(&quot;hoverformat&quot;);var M=r(&quot;color&quot;),A=M!==s.color.dflt?M:x.color,S=b.label||g._dfltTitle[y];if(u(t,e,r,T,n,{pass:1}),!_)return e;r(&quot;title.text&quot;,S),a.coerceFont(r,&quot;title.font&quot;,{family:x.family,size:Math.round(1.2*x.size),color:A}),l(t,e,r,T),u(t,e,r,T,n,{pass:2}),c(t,e,r,n),h(t,e,r,{dfltColor:M,bgColor:n.bgColor,showGrid:n.showGrid,attributes:s}),(e.showline||e.ticks)&amp;&amp;r(&quot;mirror&quot;),n.automargin&amp;&amp;r(&quot;automargin&quot;);var E,C=&quot;multicategory&quot;===T;n.noTickson||&quot;category&quot;!==T&amp;&amp;!C||!e.ticks&amp;&amp;!e.showgrid||(C&amp;&amp;(E=&quot;boundaries&quot;),&quot;boundaries&quot;===r(&quot;tickson&quot;,E)&amp;&amp;delete e.ticklabelposition);C&amp;&amp;(r(&quot;showdividers&quot;)&amp;&amp;(r(&quot;dividercolor&quot;),r(&quot;dividerwidth&quot;)));if(&quot;date&quot;===T)if(o(t,e,{name:&quot;rangebreaks&quot;,inclusionAttr:&quot;enabled&quot;,handleItemDefaults:m}),e.rangebreaks.length){for(var L=0;L&lt;e.rangebreaks.length;L++)if(e.rangebreaks[L].pattern===d){e._hasDayOfWeekBreaks=!0;break}if(p(e,g),g._has(&quot;scattergl&quot;)||g._has(&quot;splom&quot;))for(var I=0;I&lt;n.data.length;I++){var P=n.data[I];&quot;scattergl&quot;!==P.type&amp;&amp;&quot;splom&quot;!==P.type||(P.visible=!1,a.warn(P.type+&quot; traces do not work on axes with rangebreaks. Setting trace &quot;+P.index+&quot; to `visible: false`.&quot;))}}else delete e.rangebreaks;return e};var v={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function y(t){if(&quot;string&quot;==typeof t)return v[t.substr(0,3).toLowerCase()]}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../array_container_defaults&quot;:823,&quot;./category_order_defaults&quot;:832,&quot;./constants&quot;:834,&quot;./layout_attributes&quot;:842,&quot;./line_grid_defaults&quot;:844,&quot;./set_convert&quot;:848,&quot;./tick_label_defaults&quot;:849,&quot;./tick_mark_defaults&quot;:850,&quot;./tick_value_defaults&quot;:851,&quot;fast-isnumeric&quot;:241}],831:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./constants&quot;);function a(t,e){if(e&amp;&amp;e.length)for(var r=0;r&lt;e.length;r++)if(e[r][t])return!0;return!1}r.id2name=function(t){if(&quot;string&quot;==typeof t&amp;&amp;t.match(i.AX_ID_PATTERN)){var e=t.split(&quot; &quot;)[0].substr(1);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),t.charAt(0)+&quot;axis&quot;+e}},r.name2id=function(t){if(t.match(i.AX_NAME_PATTERN)){var e=t.substr(5);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),t.charAt(0)+e}},r.cleanId=function(t,e,r){var n=/( domain)$/.test(t);if(&quot;string&quot;==typeof t&amp;&amp;t.match(i.AX_ID_PATTERN)&amp;&amp;(!e||t.charAt(0)===e)&amp;&amp;(!n||r)){var a=t.split(&quot; &quot;)[0].substr(1).replace(/^0+/,&quot;&quot;);return&quot;1&quot;===a&amp;&amp;(a=&quot;&quot;),t.charAt(0)+a+(n&amp;&amp;r?&quot; domain&quot;:&quot;&quot;)}},r.list=function(t,e,n){var i=t._fullLayout;if(!i)return[];var a,o=r.listIds(t,e),s=new Array(o.length);for(a=0;a&lt;o.length;a++){var l=o[a];s[a]=i[l.charAt(0)+&quot;axis&quot;+l.substr(1)]}if(!n){var c=i._subplots.gl3d||[];for(a=0;a&lt;c.length;a++){var u=i[c[a]];e?s.push(u[e+&quot;axis&quot;]):s.push(u.xaxis,u.yaxis,u.zaxis)}}return s},r.listIds=function(t,e){var r=t._fullLayout;if(!r)return[];var n=r._subplots;return e?n[e+&quot;axis&quot;]:n.xaxis.concat(n.yaxis)},r.getFromId=function(t,e,n){var i=t._fullLayout;return e=void 0===e||&quot;string&quot;!=typeof e?e:e.replace(&quot; domain&quot;,&quot;&quot;),&quot;x&quot;===n?e=e.replace(/y[0-9]*/,&quot;&quot;):&quot;y&quot;===n&amp;&amp;(e=e.replace(/x[0-9]*/,&quot;&quot;)),i[r.id2name(e)]},r.getFromTrace=function(t,e,i){var a=t._fullLayout,o=null;if(n.traceIs(e,&quot;gl3d&quot;)){var s=e.scene;&quot;scene&quot;===s.substr(0,5)&amp;&amp;(o=a[s][i+&quot;axis&quot;])}else o=r.getFromId(t,e[i+&quot;axis&quot;]||i);return o},r.idSort=function(t,e){var r=t.charAt(0),n=e.charAt(0);return r!==n?r&gt;n?1:-1:+(t.substr(1)||1)-+(e.substr(1)||1)},r.ref2id=function(t){return!!/^[xyz]/.test(t)&amp;&amp;t.split(&quot; &quot;)[0]},r.isLinked=function(t,e){return a(e,t._axisMatchGroups)||a(e,t._axisConstraintGroups)}},{&quot;../../registry&quot;:911,&quot;./constants&quot;:834}],832:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){if(&quot;category&quot;===e.type){var i,a=t.categoryarray,o=Array.isArray(a)&amp;&amp;a.length&gt;0;o&amp;&amp;(i=&quot;array&quot;);var s,l=r(&quot;categoryorder&quot;,i);&quot;array&quot;===l&amp;&amp;(s=r(&quot;categoryarray&quot;)),o||&quot;array&quot;!==l||(l=e.categoryorder=&quot;trace&quot;),&quot;trace&quot;===l?e._initialCategories=[]:&quot;array&quot;===l?e._initialCategories=s.slice():(s=function(t,e){var r,n,i,a=e.dataAttr||t._id.charAt(0),o={};if(e.axData)r=e.axData;else for(r=[],n=0;n&lt;e.data.length;n++){var s=e.data[n];s[a+&quot;axis&quot;]===t._id&amp;&amp;r.push(s)}for(n=0;n&lt;r.length;n++){var l=r[n][a];for(i=0;i&lt;l.length;i++){var c=l[i];null!=c&amp;&amp;(o[c]=1)}}return Object.keys(o)}(e,n).sort(),&quot;category ascending&quot;===l?e._initialCategories=s:&quot;category descending&quot;===l&amp;&amp;(e._initialCategories=s.reverse()))}}},{}],833:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;),o=a.ONEDAY,s=a.ONEWEEK;r.dtick=function(t,e){var r=&quot;log&quot;===e,i=&quot;date&quot;===e,a=&quot;category&quot;===e,s=i?o:1;if(!t)return s;if(n(t))return(t=Number(t))&lt;=0?s:a?Math.max(1,Math.round(t)):i?Math.max(.1,t):t;if(&quot;string&quot;!=typeof t||!i&amp;&amp;!r)return s;var l=t.charAt(0),c=t.substr(1);return(c=n(c)?Number(c):0)&lt;=0||!(i&amp;&amp;&quot;M&quot;===l&amp;&amp;c===Math.round(c)||r&amp;&amp;&quot;L&quot;===l||r&amp;&amp;&quot;D&quot;===l&amp;&amp;(1===c||2===c))?s:t},r.tick0=function(t,e,r,a){return&quot;date&quot;===e?i.cleanDate(t,i.dateTick0(r,a%s==0?1:0)):&quot;D1&quot;!==a&amp;&amp;&quot;D2&quot;!==a?n(t)?Number(t):0:void 0}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],834:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/regex&quot;).counter;e.exports={idRegex:{x:n(&quot;x&quot;,&quot;( domain)?&quot;),y:n(&quot;y&quot;,&quot;( domain)?&quot;)},attrRegex:n(&quot;[xy]axis&quot;),xAxisMatch:n(&quot;xaxis&quot;),yAxisMatch:n(&quot;yaxis&quot;),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:&quot;hour&quot;,WEEKDAY_PATTERN:&quot;day of week&quot;,MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:&quot;-select&quot;,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:[&quot;imagelayer&quot;,&quot;heatmaplayer&quot;,&quot;contourcarpetlayer&quot;,&quot;contourlayer&quot;,&quot;funnellayer&quot;,&quot;waterfalllayer&quot;,&quot;barlayer&quot;,&quot;carpetlayer&quot;,&quot;violinlayer&quot;,&quot;boxlayer&quot;,&quot;ohlclayer&quot;,&quot;scattercarpetlayer&quot;,&quot;scatterlayer&quot;],clipOnAxisFalseQuery:[&quot;.scatterlayer&quot;,&quot;.barlayer&quot;,&quot;.funnellayer&quot;,&quot;.waterfalllayer&quot;],layerValue2layerClass:{&quot;above traces&quot;:&quot;above&quot;,&quot;below traces&quot;:&quot;below&quot;}}},{&quot;../../lib/regex&quot;:795}],835:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./autorange&quot;),a=t(&quot;./axis_ids&quot;).id2name,o=t(&quot;./layout_attributes&quot;),s=t(&quot;./scale_zoom&quot;),l=t(&quot;./set_convert&quot;),c=t(&quot;../../constants/numerical&quot;).ALMOST_EQUAL,u=t(&quot;../../constants/alignment&quot;).FROM_BL;function f(t,e,r){var i=r.axIds,s=r.layoutOut,l=r.hasImage,c=s._axisConstraintGroups,u=s._axisMatchGroups,f=e._id,g=f.charAt(0),m=((s._splomAxes||{})[g]||{})[f]||{},v=e._id,y=&quot;x&quot;===v.charAt(0);function x(r,i){return n.coerce(t,e,o,r,i)}e._matchGroup=null,e._constraintGroup=null,x(&quot;constrain&quot;,l?&quot;domain&quot;:&quot;range&quot;),n.coerce(t,e,{constraintoward:{valType:&quot;enumerated&quot;,values:y?[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;]:[&quot;bottom&quot;,&quot;middle&quot;,&quot;top&quot;],dflt:y?&quot;center&quot;:&quot;middle&quot;}},&quot;constraintoward&quot;);var b,_,w=e.type,T=[];for(b=0;b&lt;i.length;b++){if((_=i[b])!==v)s[a(_)].type===w&amp;&amp;T.push(_)}var k=p(c,v);if(k){var M=[];for(b=0;b&lt;T.length;b++)k[_=T[b]]||M.push(_);T=M}var A,S,E=T.length;E&amp;&amp;(t.matches||m.matches)&amp;&amp;(A=n.coerce(t,e,{matches:{valType:&quot;enumerated&quot;,values:T,dflt:-1!==T.indexOf(m.matches)?m.matches:void 0}},&quot;matches&quot;));var C=l&amp;&amp;!y?e.anchor:void 0;if(E&amp;&amp;!A&amp;&amp;(t.scaleanchor||C)&amp;&amp;(S=n.coerce(t,e,{scaleanchor:{valType:&quot;enumerated&quot;,values:T}},&quot;scaleanchor&quot;,C)),A){e._matchGroup=d(u,v,A,1);var L=s[a(A)],I=h(s,e)/h(s,L);y!==(&quot;x&quot;===A.charAt(0))&amp;&amp;(I=(y?&quot;x&quot;:&quot;y&quot;)+I),d(c,v,A,I)}else t.matches&amp;&amp;-1!==i.indexOf(t.matches)&amp;&amp;n.warn(&quot;ignored &quot;+e._name+'.matches: &quot;'+t.matches+'&quot; to avoid an infinite loop');if(S){var P=x(&quot;scaleratio&quot;);P||(P=e.scaleratio=1),d(c,v,S,P)}else t.scaleanchor&amp;&amp;-1!==i.indexOf(t.scaleanchor)&amp;&amp;n.warn(&quot;ignored &quot;+e._name+'.scaleanchor: &quot;'+t.scaleanchor+'&quot; to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function h(t,e){var r=e.domain;return r||(r=t[a(e.overlaying)].domain),r[1]-r[0]}function p(t,e){for(var r=0;r&lt;t.length;r++)if(t[r][e])return t[r];return null}function d(t,e,r,n){var i,a,o,s,l,c=p(t,e);null===c?((c={})[e]=1,l=t.length,t.push(c)):l=t.indexOf(c);var u=Object.keys(c);for(i=0;i&lt;t.length;i++)if(o=t[i],i!==l&amp;&amp;o[r]){var f=o[r];for(a=0;a&lt;u.length;a++)o[s=u[a]]=g(f,g(n,c[s]));return void t.splice(l,1)}if(1!==n)for(a=0;a&lt;u.length;a++){var h=u[a];c[h]=g(n,c[h])}c[r]=1}function g(t,e){var r,n,i=&quot;&quot;,a=&quot;&quot;;&quot;string&quot;==typeof t&amp;&amp;(r=(i=t.match(/^[xy]*/)[0]).length,t=+t.substr(r)),&quot;string&quot;==typeof e&amp;&amp;(n=(a=e.match(/^[xy]*/)[0]).length,e=+e.substr(n));var o=t*e;return r||n?r&amp;&amp;n&amp;&amp;i.charAt(0)!==a.charAt(0)?r===n?o:(r&gt;n?i.substr(n):a.substr(r))+o:i+a+t*e:o}function m(t,e){for(var r=e._size,n=r.h/r.w,i={},a=Object.keys(t),o=0;o&lt;a.length;o++){var s=a[o],l=t[s];if(&quot;string&quot;==typeof l){var c=l.match(/^[xy]*/)[0],u=c.length;l=+l.substr(u);for(var f=&quot;y&quot;===c.charAt(0)?n:1/n,h=0;h&lt;u;h++)l*=f}i[s]=l}return i}function v(t,e){var r=t._inputDomain,n=u[t.constraintoward],i=r[0]+(r[1]-r[0])*n;t.domain=t._input.domain=[i+(r[0]-i)/e,i+(r[1]-i)/e],t.setScale()}r.handleDefaults=function(t,e,r){var i,o,s,c,u,h,p,d,g=r.axIds,m=r.axHasImage,v=e._axisConstraintGroups=[],y=e._axisMatchGroups=[];for(i=0;i&lt;g.length;i++)f(u=t[c=a(g[i])],h=e[c],{axIds:g,layoutOut:e,hasImage:m[c]});function x(t,r){for(i=0;i&lt;t.length;i++)for(s in o=t[i])e[a(s)][r]=o}for(x(y,&quot;_matchGroup&quot;),i=0;i&lt;v.length;i++)for(s in o=v[i])if((h=e[a(s)]).fixedrange){for(var b in o){var _=a(b);!1===(t[_]||{}).fixedrange&amp;&amp;n.warn(&quot;fixedrange was specified as false for axis &quot;+_+&quot; but was overridden because another axis in its constraint group has fixedrange true&quot;),e[_].fixedrange=!0}break}for(i=0;i&lt;v.length;){for(s in o=v[i]){(h=e[a(s)])._matchGroup&amp;&amp;Object.keys(h._matchGroup).length===Object.keys(o).length&amp;&amp;(v.splice(i,1),i--);break}i++}x(v,&quot;_constraintGroup&quot;);var w=[&quot;constrain&quot;,&quot;range&quot;,&quot;autorange&quot;,&quot;rangemode&quot;,&quot;rangebreaks&quot;,&quot;categoryorder&quot;,&quot;categoryarray&quot;],T=!1,k=!1;function M(){d=h[p],&quot;rangebreaks&quot;===p&amp;&amp;(k=h._hasDayOfWeekBreaks)}for(i=0;i&lt;y.length;i++){o=y[i];for(var A=0;A&lt;w.length;A++){var S;for(s in p=w[A],d=null,o)if(u=t[c=a(s)],h=e[c],p in h){if(!h.matches&amp;&amp;(S=h,p in u)){M();break}null===d&amp;&amp;p in u&amp;&amp;M()}if(&quot;range&quot;===p&amp;&amp;d&amp;&amp;(T=!0),&quot;autorange&quot;===p&amp;&amp;null===d&amp;&amp;T&amp;&amp;(d=!1),null===d&amp;&amp;p in S&amp;&amp;(d=S[p]),null!==d)for(s in o)(h=e[a(s)])[p]=&quot;range&quot;===p?d.slice():d,&quot;rangebreaks&quot;===p&amp;&amp;(h._hasDayOfWeekBreaks=k,l(h,e))}}},r.enforce=function(t){var e,r,n,o,l,u,f,h,p=t._fullLayout,d=p._axisConstraintGroups||[];for(e=0;e&lt;d.length;e++){n=m(d[e],p);var g=Object.keys(n),y=1/0,x=0,b=1/0,_={},w={},T=!1;for(r=0;r&lt;g.length;r++)w[o=g[r]]=l=p[a(o)],l._inputDomain?l.domain=l._inputDomain.slice():l._inputDomain=l.domain.slice(),l._inputRange||(l._inputRange=l.range.slice()),l.setScale(),_[o]=u=Math.abs(l._m)/n[o],y=Math.min(y,u),&quot;domain&quot;!==l.constrain&amp;&amp;l._constraintShrinkable||(b=Math.min(b,u)),delete l._constraintShrinkable,x=Math.max(x,u),&quot;domain&quot;===l.constrain&amp;&amp;(T=!0);if(!(y&gt;c*x)||T)for(r=0;r&lt;g.length;r++)if(u=_[o=g[r]],f=(l=w[o]).constrain,u!==b||&quot;domain&quot;===f)if(h=u/b,&quot;range&quot;===f)s(l,h);else{var k=l._inputDomain,M=(l.domain[1]-l.domain[0])/(k[1]-k[0]),A=(l.r2l(l.range[1])-l.r2l(l.range[0]))/(l.r2l(l._inputRange[1])-l.r2l(l._inputRange[0]));if((h/=M)*A&lt;1){l.domain=l._input.domain=k.slice(),s(l,h);continue}if(A&lt;1&amp;&amp;(l.range=l._input.range=l._inputRange.slice(),h*=A),l.autorange){var S=l.r2l(l.range[0]),E=l.r2l(l.range[1]),C=(S+E)/2,L=C,I=C,P=Math.abs(E-C),z=C-P*h*1.0001,O=C+P*h*1.0001,D=i.makePadFn(p,l,0),R=i.makePadFn(p,l,1);v(l,h);var F,B,N=Math.abs(l._m),j=i.concatExtremes(t,l),U=j.min,V=j.max;for(B=0;B&lt;U.length;B++)(F=U[B].val-D(U[B])/N)&gt;z&amp;&amp;F&lt;L&amp;&amp;(L=F);for(B=0;B&lt;V.length;B++)(F=V[B].val+R(V[B])/N)&lt;O&amp;&amp;F&gt;I&amp;&amp;(I=F);h/=(I-L)/(2*P),L=l.l2r(L),I=l.l2r(I),l.range=l._input.range=S&lt;E?[L,I]:[I,L]}v(l,h)}}},r.getAxisGroup=function(t,e){for(var r=t._axisMatchGroups,n=0;n&lt;r.length;n++){if(r[n][e])return&quot;g&quot;+n}return e},r.clean=function(t,e){if(e._inputDomain){for(var r=!1,n=e._id,i=t._fullLayout._axisConstraintGroups,a=0;a&lt;i.length;a++)if(i[a][n]){r=!0;break}r&amp;&amp;&quot;domain&quot;===e.constrain||(e._input.domain=e.domain=e._inputDomain,delete e._inputDomain)}}},{&quot;../../constants/alignment&quot;:745,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./autorange&quot;:827,&quot;./axis_ids&quot;:831,&quot;./layout_attributes&quot;:842,&quot;./scale_zoom&quot;:846,&quot;./set_convert&quot;:848}],836:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;has-passive-events&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/color&quot;),f=t(&quot;../../components/drawing&quot;),h=t(&quot;../../components/fx&quot;),p=t(&quot;./axes&quot;),d=t(&quot;../../lib/setcursor&quot;),g=t(&quot;../../components/dragelement&quot;),m=t(&quot;../../components/dragelement/helpers&quot;),v=m.selectingOrDrawing,y=m.freeMode,x=t(&quot;../../constants/alignment&quot;).FROM_TL,b=t(&quot;../../lib/clear_gl_canvases&quot;),_=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,w=t(&quot;../plots&quot;),T=t(&quot;./axis_ids&quot;).getFromId,k=t(&quot;./select&quot;).prepSelect,M=t(&quot;./select&quot;).clearSelect,A=t(&quot;./select&quot;).selectOnClick,S=t(&quot;./scale_zoom&quot;),E=t(&quot;./constants&quot;),C=E.MINDRAG,L=E.MINZOOM,I=!0;function P(t,e,r,n){var i=s.ensureSingle(t.draglayer,e,r,(function(e){e.classed(&quot;drag&quot;,!0).style({fill:&quot;transparent&quot;,&quot;stroke-width&quot;:0}).attr(&quot;data-subplot&quot;,t.id)}));return i.call(d,n),i.node()}function z(t,e,r,i,a,o,s){var l=P(t,&quot;rect&quot;,e,r);return n.select(l).call(f.setRect,i,a,o,s),l}function O(t,e){for(var r=0;r&lt;t.length;r++)if(!t[r].fixedrange)return e;return&quot;&quot;}function D(t,e,r,n,i){for(var a=0;a&lt;t.length;a++){var o=t[a];if(!o.fixedrange)if(o.rangebreaks){var s=&quot;y&quot;===o._id.charAt(0),l=s?1-e:e,c=s?1-r:r;n[o._name+&quot;.range[0]&quot;]=o.l2r(o.p2l(l*o._length)),n[o._name+&quot;.range[1]&quot;]=o.l2r(o.p2l(c*o._length))}else{var u=o._rl[0],f=o._rl[1]-u;n[o._name+&quot;.range[0]&quot;]=o.l2r(u+f*e),n[o._name+&quot;.range[1]&quot;]=o.l2r(u+f*r)}}if(i&amp;&amp;i.length){var h=(e+(1-r))/2;D(i,h,1-h,n,[])}}function R(t,e){for(var r=0;r&lt;t.length;r++){var n=t[r];if(!n.fixedrange)if(n.rangebreaks){var i=n._length,a=(n.p2l(0+e)-n.p2l(0)+(n.p2l(i+e)-n.p2l(i)))/2;n.range=[n.l2r(n._rl[0]-a),n.l2r(n._rl[1]-a)]}else n.range=[n.l2r(n._rl[0]-e/n._m),n.l2r(n._rl[1]-e/n._m)]}}function F(t){return 1-(t&gt;=0?Math.min(t,.9):1/(1/Math.max(t,-.3)+3.222))}function B(t,e,r,n,i){return t.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox&quot;).style({fill:e&gt;.2?&quot;rgba(0,0,0,0)&quot;:&quot;rgba(255,255,255,0)&quot;,&quot;stroke-width&quot;:0}).attr(&quot;transform&quot;,l(r,n)).attr(&quot;d&quot;,i+&quot;Z&quot;)}function N(t,e,r){return t.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).style({fill:u.background,stroke:u.defaultLine,&quot;stroke-width&quot;:1,opacity:0}).attr(&quot;transform&quot;,l(e,r)).attr(&quot;d&quot;,&quot;M0,0Z&quot;)}function j(t,e,r,n,i,a){t.attr(&quot;d&quot;,n+&quot;M&quot;+r.l+&quot;,&quot;+r.t+&quot;v&quot;+r.h+&quot;h&quot;+r.w+&quot;v-&quot;+r.h+&quot;h-&quot;+r.w+&quot;Z&quot;),U(t,e,i,a)}function U(t,e,r,n){r||(t.transition().style(&quot;fill&quot;,n&gt;.2?&quot;rgba(0,0,0,0.4)&quot;:&quot;rgba(255,255,255,0.3)&quot;).duration(200),e.transition().style(&quot;opacity&quot;,1).duration(200))}function V(t){n.select(t).selectAll(&quot;.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners&quot;).remove()}function q(t){I&amp;&amp;t.data&amp;&amp;t._context.showTips&amp;&amp;(s.notifier(s._(t,&quot;Double-click to zoom back out&quot;),&quot;long&quot;),I=!1)}function H(t){var e=Math.floor(Math.min(t.b-t.t,t.r-t.l,L)/2);return&quot;M&quot;+(t.l-3.5)+&quot;,&quot;+(t.t-.5+e)+&quot;h3v&quot;+-e+&quot;h&quot;+e+&quot;v-3h-&quot;+(e+3)+&quot;ZM&quot;+(t.r+3.5)+&quot;,&quot;+(t.t-.5+e)+&quot;h-3v&quot;+-e+&quot;h&quot;+-e+&quot;v-3h&quot;+(e+3)+&quot;ZM&quot;+(t.r+3.5)+&quot;,&quot;+(t.b+.5-e)+&quot;h-3v&quot;+e+&quot;h&quot;+-e+&quot;v3h&quot;+(e+3)+&quot;ZM&quot;+(t.l-3.5)+&quot;,&quot;+(t.b+.5-e)+&quot;h3v&quot;+e+&quot;h&quot;+e+&quot;v3h-&quot;+(e+3)+&quot;Z&quot;}function G(t,e,r,n,i){for(var a,o,l,c,u=!1,f={},h={},p=(i||{}).xaHash,d=(i||{}).yaHash,g=0;g&lt;e.length;g++){var m=e[g];for(a in r)if(m[a]){for(l in m)i&amp;&amp;(p[l]||d[l])||(&quot;x&quot;===l.charAt(0)?r:n)[l]||(f[l]=a);for(o in n)i&amp;&amp;(p[o]||d[o])||!m[o]||(u=!0)}for(o in n)if(m[o])for(c in m)i&amp;&amp;(p[c]||d[c])||(&quot;x&quot;===c.charAt(0)?r:n)[c]||(h[c]=o)}u&amp;&amp;(s.extendFlat(f,h),h={});var v={},y=[];for(l in f){var x=T(t,l);y.push(x),v[x._id]=x}var b={},_=[];for(c in h){var w=T(t,c);_.push(w),b[w._id]=w}return{xaHash:v,yaHash:b,xaxes:y,yaxes:_,xLinks:f,yLinks:h,isSubplotConstrained:u}}function Y(t,e){if(a){var r=void 0!==t.onwheel?&quot;wheel&quot;:&quot;mousewheel&quot;;t._onwheel&amp;&amp;t.removeEventListener(r,t._onwheel),t._onwheel=e,t.addEventListener(r,e,{passive:!1})}else void 0!==t.onwheel?t.onwheel=e:void 0!==t.onmousewheel?t.onmousewheel=e:t.isAddedWheelEvent||(t.isAddedWheelEvent=!0,t.addEventListener(&quot;wheel&quot;,e,{passive:!1}))}function W(t){var e=[];for(var r in t)e.push(t[r]);return e}e.exports={makeDragBox:function(t,e,r,a,l,u,d,m){var I,P,U,X,Z,J,K,Q,$,tt,et,rt,nt,it,at,ot,st,lt,ct,ut,ft,ht,pt,dt=t._fullLayout._zoomlayer,gt=d+m===&quot;nsew&quot;,mt=1===(d+m).length;function vt(){if(I=e.xaxis,P=e.yaxis,$=I._length,tt=P._length,K=I._offset,Q=P._offset,(U={})[I._id]=I,(X={})[P._id]=P,d&amp;&amp;m)for(var r=e.overlays,n=0;n&lt;r.length;n++){var i=r[n].xaxis;U[i._id]=i;var a=r[n].yaxis;X[a._id]=a}Z=W(U),J=W(X),nt=O(Z,m),it=O(J,d),at=!it&amp;&amp;!nt,rt=G(t,t._fullLayout._axisMatchGroups,U,X);var o=(et=G(t,t._fullLayout._axisConstraintGroups,U,X,rt)).isSubplotConstrained||rt.isSubplotConstrained;ot=m||o,st=d||o;var s=t._fullLayout;lt=s._has(&quot;scattergl&quot;),ct=s._has(&quot;splom&quot;),ut=s._has(&quot;svg&quot;)}vt();var yt=function(t,e,r){if(!t)return&quot;pointer&quot;;if(&quot;nsew&quot;===t)return r?&quot;&quot;:&quot;pan&quot;===e?&quot;move&quot;:&quot;crosshair&quot;;return t.toLowerCase()+&quot;-resize&quot;}(it+nt,t._fullLayout.dragmode,gt),xt=z(e,d+m+&quot;drag&quot;,yt,r,a,l,u);if(at&amp;&amp;!gt)return xt.onmousedown=null,xt.style.pointerEvents=&quot;none&quot;,xt;var bt,_t,wt,Tt,kt,Mt,At,St,Et,Ct,Lt={element:xt,gd:t,plotinfo:e};function It(){Lt.plotinfo.selection=!1,M(t)}function Pt(t,r){var i=Lt.gd;if(i._fullLayout._activeShapeIndex&gt;=0)i._fullLayout._deactivateShape(i);else{var a=i._fullLayout.clickmode;if(V(i),2!==t||mt||qt(),gt)a.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;A(r,i,Z,J,e.id,Lt),a.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;h.click(i,r,e.id);else if(1===t&amp;&amp;mt){var s=d?P:I,l=&quot;s&quot;===d||&quot;w&quot;===m?0:1,u=s._name+&quot;.range[&quot;+l+&quot;]&quot;,f=function(t,e){var r,i=t.range[e],a=Math.abs(i-t.range[1-e]);return&quot;date&quot;===t.type?i:&quot;log&quot;===t.type?(r=Math.ceil(Math.max(0,-Math.log(a)/Math.LN10))+3,n.format(&quot;.&quot;+r+&quot;g&quot;)(Math.pow(10,i))):(r=Math.floor(Math.log(Math.abs(i))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,n.format(&quot;.&quot;+String(r)+&quot;g&quot;)(i))}(s,l),p=&quot;left&quot;,g=&quot;middle&quot;;if(s.fixedrange)return;d?(g=&quot;n&quot;===d?&quot;top&quot;:&quot;bottom&quot;,&quot;right&quot;===s.side&amp;&amp;(p=&quot;right&quot;)):&quot;e&quot;===m&amp;&amp;(p=&quot;right&quot;),i._context.showAxisRangeEntryBoxes&amp;&amp;n.select(xt).call(c.makeEditable,{gd:i,immediate:!0,background:i._fullLayout.paper_bgcolor,text:String(f),fill:s.tickfont?s.tickfont.color:&quot;#444&quot;,horizontalAlign:p,verticalAlign:g}).on(&quot;edit&quot;,(function(t){var e=s.d2r(t);void 0!==e&amp;&amp;o.call(&quot;_guiRelayout&quot;,i,u,e)}))}}}function zt(e,r){if(t._transitioningWithDuration)return!1;var n=Math.max(0,Math.min($,ht*e+bt)),i=Math.max(0,Math.min(tt,pt*r+_t)),a=Math.abs(n-bt),o=Math.abs(i-_t);function s(){At=&quot;&quot;,wt.r=wt.l,wt.t=wt.b,Et.attr(&quot;d&quot;,&quot;M0,0Z&quot;)}if(wt.l=Math.min(bt,n),wt.r=Math.max(bt,n),wt.t=Math.min(_t,i),wt.b=Math.max(_t,i),et.isSubplotConstrained)a&gt;L||o&gt;L?(At=&quot;xy&quot;,a/$&gt;o/tt?(o=a*tt/$,_t&gt;i?wt.t=_t-o:wt.b=_t+o):(a=o*$/tt,bt&gt;n?wt.l=bt-a:wt.r=bt+a),Et.attr(&quot;d&quot;,H(wt))):s();else if(rt.isSubplotConstrained)if(a&gt;L||o&gt;L){At=&quot;xy&quot;;var l=Math.min(wt.l/$,(tt-wt.b)/tt),c=Math.max(wt.r/$,(tt-wt.t)/tt);wt.l=l*$,wt.r=c*$,wt.b=(1-l)*tt,wt.t=(1-c)*tt,Et.attr(&quot;d&quot;,H(wt))}else s();else!it||o&lt;Math.min(Math.max(.6*a,C),L)?a&lt;C||!nt?s():(wt.t=0,wt.b=tt,At=&quot;x&quot;,Et.attr(&quot;d&quot;,function(t,e){return&quot;M&quot;+(t.l-.5)+&quot;,&quot;+(e-L-.5)+&quot;h-3v&quot;+(2*L+1)+&quot;h3ZM&quot;+(t.r+.5)+&quot;,&quot;+(e-L-.5)+&quot;h3v&quot;+(2*L+1)+&quot;h-3Z&quot;}(wt,_t))):!nt||a&lt;Math.min(.6*o,L)?(wt.l=0,wt.r=$,At=&quot;y&quot;,Et.attr(&quot;d&quot;,function(t,e){return&quot;M&quot;+(e-L-.5)+&quot;,&quot;+(t.t-.5)+&quot;v-3h&quot;+(2*L+1)+&quot;v3ZM&quot;+(e-L-.5)+&quot;,&quot;+(t.b+.5)+&quot;v3h&quot;+(2*L+1)+&quot;v-3Z&quot;}(wt,bt))):(At=&quot;xy&quot;,Et.attr(&quot;d&quot;,H(wt)));wt.w=wt.r-wt.l,wt.h=wt.b-wt.t,At&amp;&amp;(Ct=!0),t._dragged=Ct,j(St,Et,wt,kt,Mt,Tt),Ot(),t.emit(&quot;plotly_relayouting&quot;,ft),Mt=!0}function Ot(){ft={},&quot;xy&quot;!==At&amp;&amp;&quot;x&quot;!==At||(D(Z,wt.l/$,wt.r/$,ft,et.xaxes),Ut(&quot;x&quot;,ft)),&quot;xy&quot;!==At&amp;&amp;&quot;y&quot;!==At||(D(J,(tt-wt.b)/tt,(tt-wt.t)/tt,ft,et.yaxes),Ut(&quot;y&quot;,ft))}function Dt(){Ot(),V(t),Ht(),q(t)}Lt.prepFn=function(e,r,n){var a=Lt.dragmode,o=t._fullLayout.dragmode;o!==a&amp;&amp;(Lt.dragmode=o),vt(),ht=t._fullLayout._invScaleX,pt=t._fullLayout._invScaleY,at||(gt?e.shiftKey?&quot;pan&quot;===o?o=&quot;zoom&quot;:v(o)||(o=&quot;pan&quot;):e.ctrlKey&amp;&amp;(o=&quot;pan&quot;):o=&quot;pan&quot;),y(o)?Lt.minDrag=1:Lt.minDrag=void 0,v(o)?(Lt.xaxes=Z,Lt.yaxes=J,k(e,r,n,Lt,o)):(Lt.clickFn=Pt,v(a)&amp;&amp;It(),at||(&quot;zoom&quot;===o?(Lt.moveFn=zt,Lt.doneFn=Dt,Lt.minDrag=1,function(e,r,n){var a=xt.getBoundingClientRect();bt=r-a.left,_t=n-a.top,t._fullLayout._calcInverseTransform(t);var o=s.apply3DTransform(t._fullLayout._invTransform)(bt,_t);bt=o[0],_t=o[1],wt={l:bt,r:bt,w:0,t:_t,b:_t,h:0},Tt=t._hmpixcount?t._hmlumcount/t._hmpixcount:i(t._fullLayout.plot_bgcolor).getLuminance(),Mt=!1,At=&quot;xy&quot;,Ct=!1,St=B(dt,Tt,K,Q,kt=&quot;M0,0H&quot;+$+&quot;V&quot;+tt+&quot;H0V0&quot;),Et=N(dt,K,Q)}(0,r,n)):&quot;pan&quot;===o&amp;&amp;(Lt.moveFn=jt,Lt.doneFn=Ht))),t._fullLayout._redrag=function(){var e=t._dragdata;if(e&amp;&amp;e.element===xt){var r=t._fullLayout.dragmode;v(r)||(vt(),Gt([0,0,$,tt]),Lt.moveFn(e.dx,e.dy))}}},g.init(Lt);var Rt=[0,0,$,tt],Ft=null,Bt=E.REDRAWDELAY,Nt=e.mainplot?t._fullLayout._plots[e.mainplot]:e;function jt(e,r){if(e*=ht,r*=pt,!t._transitioningWithDuration){if(t._fullLayout._replotting=!0,&quot;ew&quot;===nt||&quot;ns&quot;===it){var n=nt?-e:0,i=it?-r:0;if(rt.isSubplotConstrained){if(nt&amp;&amp;it){var a=(e/$-r/tt)/2;n=-(e=a*$),i=-(r=-a*tt)}it?n=-i*$/tt:i=-n*tt/$}return nt&amp;&amp;(R(Z,e),Ut(&quot;x&quot;)),it&amp;&amp;(R(J,r),Ut(&quot;y&quot;)),Gt([n,i,$,tt]),Vt(),void t.emit(&quot;plotly_relayouting&quot;,ft)}var o,s,l=&quot;w&quot;===nt==(&quot;n&quot;===it)?1:-1;if(nt&amp;&amp;it&amp;&amp;(et.isSubplotConstrained||rt.isSubplotConstrained)){var c=(e/$+l*r/tt)/2;e=c*$,r=l*c*tt}if(&quot;w&quot;===nt?e=p(Z,0,e):&quot;e&quot;===nt?e=p(Z,1,-e):nt||(e=0),&quot;n&quot;===it?r=p(J,1,r):&quot;s&quot;===it?r=p(J,0,-r):it||(r=0),o=&quot;w&quot;===nt?e:0,s=&quot;n&quot;===it?r:0,et.isSubplotConstrained&amp;&amp;!rt.isSubplotConstrained||rt.isSubplotConstrained&amp;&amp;nt&amp;&amp;it&amp;&amp;l&gt;0){var u;if(rt.isSubplotConstrained||!nt&amp;&amp;1===it.length){for(u=0;u&lt;Z.length;u++)Z[u].range=Z[u]._r.slice(),S(Z[u],1-r/tt);o=(e=r*$/tt)/2}if(rt.isSubplotConstrained||!it&amp;&amp;1===nt.length){for(u=0;u&lt;J.length;u++)J[u].range=J[u]._r.slice(),S(J[u],1-e/$);s=(r=e*tt/$)/2}}rt.isSubplotConstrained&amp;&amp;it||Ut(&quot;x&quot;),rt.isSubplotConstrained&amp;&amp;nt||Ut(&quot;y&quot;);var f=$-e,h=tt-r;!rt.isSubplotConstrained||nt&amp;&amp;it||(nt?(s=o?0:e*tt/$,h=f*tt/$):(o=s?0:r*$/tt,f=h*$/tt)),Gt([o,s,f,h]),Vt(),t.emit(&quot;plotly_relayouting&quot;,ft)}function p(t,e,r){for(var n,i,a=1-e,o=0;o&lt;t.length;o++){var s=t[o];if(!s.fixedrange){n=s,i=s._rl[a]+(s._rl[e]-s._rl[a])/F(r/s._length);var l=s.l2r(i);!1!==l&amp;&amp;void 0!==l&amp;&amp;(s.range[e]=l)}}return n._length*(n._rl[e]-i)/(n._rl[e]-n._rl[a])}}function Ut(t,e){for(var r=rt.isSubplotConstrained?{x:J,y:Z}[t]:rt[t+&quot;axes&quot;],n=rt.isSubplotConstrained?{x:Z,y:J}[t]:[],i=0;i&lt;r.length;i++){var a=r[i],o=a._id,s=rt.xLinks[o]||rt.yLinks[o],l=n[0]||U[s]||X[s];l&amp;&amp;(e?(e[a._name+&quot;.range[0]&quot;]=e[l._name+&quot;.range[0]&quot;],e[a._name+&quot;.range[1]&quot;]=e[l._name+&quot;.range[1]&quot;]):a.range=l.range.slice())}}function Vt(){var e,r=[];function n(t){for(e=0;e&lt;t.length;e++)t[e].fixedrange||r.push(t[e]._id)}for(ot&amp;&amp;(n(Z),n(et.xaxes),n(rt.xaxes)),st&amp;&amp;(n(J),n(et.yaxes),n(rt.yaxes)),ft={},e=0;e&lt;r.length;e++){var i=r[e],a=T(t,i);p.drawOne(t,a,{skipTitle:!0}),ft[a._name+&quot;.range[0]&quot;]=a.range[0],ft[a._name+&quot;.range[1]&quot;]=a.range[1]}p.redrawComponents(t,r)}function qt(){if(!t._transitioningWithDuration){var e=t._context.doubleClick,r=[];nt&amp;&amp;(r=r.concat(Z)),it&amp;&amp;(r=r.concat(J)),rt.xaxes&amp;&amp;(r=r.concat(rt.xaxes)),rt.yaxes&amp;&amp;(r=r.concat(rt.yaxes));var n,i,a,s={};if(&quot;reset+autosize&quot;===e)for(e=&quot;autosize&quot;,i=0;i&lt;r.length;i++)if((n=r[i])._rangeInitial&amp;&amp;(n.range[0]!==n._rangeInitial[0]||n.range[1]!==n._rangeInitial[1])||!n._rangeInitial&amp;&amp;!n.autorange){e=&quot;reset&quot;;break}if(&quot;autosize&quot;===e)for(i=0;i&lt;r.length;i++)(n=r[i]).fixedrange||(s[n._name+&quot;.autorange&quot;]=!0);else if(&quot;reset&quot;===e)for((nt||et.isSubplotConstrained)&amp;&amp;(r=r.concat(et.xaxes)),it&amp;&amp;!et.isSubplotConstrained&amp;&amp;(r=r.concat(et.yaxes)),et.isSubplotConstrained&amp;&amp;(nt?it||(r=r.concat(J)):r=r.concat(Z)),i=0;i&lt;r.length;i++)(n=r[i]).fixedrange||(n._rangeInitial?(a=n._rangeInitial,s[n._name+&quot;.range[0]&quot;]=a[0],s[n._name+&quot;.range[1]&quot;]=a[1]):s[n._name+&quot;.autorange&quot;]=!0);t.emit(&quot;plotly_doubleclick&quot;,null),o.call(&quot;_guiRelayout&quot;,t,s)}}function Ht(){Gt([0,0,$,tt]),s.syncOrAsync([w.previousPromises,function(){t._fullLayout._replotting=!1,o.call(&quot;_guiRelayout&quot;,t,ft)}],t)}function Gt(e){var r,n,i,a,l=t._fullLayout,c=l._plots,u=l._subplots.cartesian;if(ct&amp;&amp;o.subplotsRegistry.splom.drag(t),lt)for(r=0;r&lt;u.length;r++)if(i=(n=c[u[r]]).xaxis,a=n.yaxis,n._scene){var h=s.simpleMap(i.range,i.r2l),p=s.simpleMap(a.range,a.r2l);n._scene.update({range:[h[0],p[0],h[1],p[1]]})}if((ct||lt)&amp;&amp;(b(t),_(t)),ut){var g=e[2]/I._length,v=e[3]/P._length;for(r=0;r&lt;u.length;r++){i=(n=c[u[r]]).xaxis,a=n.yaxis;var y,x,w,T,k=(ot||rt.isSubplotConstrained)&amp;&amp;!i.fixedrange&amp;&amp;U[i._id],M=(st||rt.isSubplotConstrained)&amp;&amp;!a.fixedrange&amp;&amp;X[a._id];if(k?(y=g,w=m||rt.isSubplotConstrained?e[0]:Xt(i,y)):rt.xaHash[i._id]?(y=g,w=e[0]*i._length/I._length):rt.yaHash[i._id]?(y=v,w=&quot;ns&quot;===it?-e[1]*i._length/P._length:Xt(i,y,{n:&quot;top&quot;,s:&quot;bottom&quot;}[it])):w=Wt(i,y=Yt(i,g,v)),M?(x=v,T=d||rt.isSubplotConstrained?e[1]:Xt(a,x)):rt.yaHash[a._id]?(x=v,T=e[1]*a._length/P._length):rt.xaHash[a._id]?(x=g,T=&quot;ew&quot;===nt?-e[0]*a._length/I._length:Xt(a,x,{e:&quot;right&quot;,w:&quot;left&quot;}[nt])):T=Wt(a,x=Yt(a,g,v)),y||x){y||(y=1),x||(x=1);var A=i._offset-w/y,S=a._offset-T/x;n.clipRect.call(f.setTranslate,w,T).call(f.setScale,y,x),n.plot.call(f.setTranslate,A,S).call(f.setScale,1/y,1/x),y===n.xScaleFactor&amp;&amp;x===n.yScaleFactor||(f.setPointGroupScale(n.zoomScalePts,y,x),f.setTextPointsScale(n.zoomScaleTxt,y,x)),f.hideOutsideRangePoints(n.clipOnAxisFalseTraces,n),n.xScaleFactor=y,n.yScaleFactor=x}}}}function Yt(t,e,r){return t.fixedrange?0:ot&amp;&amp;et.xaHash[t._id]?e:st&amp;&amp;(et.isSubplotConstrained?et.xaHash:et.yaHash)[t._id]?r:0}function Wt(t,e){return e?(t.range=t._r.slice(),S(t,e),Xt(t,e)):0}function Xt(t,e,r){return t._length*(1-e)*x[r||t.constraintoward||&quot;middle&quot;]}return d.length*m.length!=1&amp;&amp;Y(xt,(function(e){if(t._context._scrollZoom.cartesian||t._fullLayout._enablescrollzoom){if(It(),t._transitioningWithDuration)return e.preventDefault(),void e.stopPropagation();vt(),clearTimeout(Ft);var r=-e.deltaY;if(isFinite(r)||(r=e.wheelDelta/10),isFinite(r)){var n,i=Math.exp(-Math.min(Math.max(r,-20),20)/200),a=Nt.draglayer.select(&quot;.nsewdrag&quot;).node().getBoundingClientRect(),o=(e.clientX-a.left)/a.width,l=(a.bottom-e.clientY)/a.height;if(ot){for(m||(o=.5),n=0;n&lt;Z.length;n++)c(Z[n],o,i);Ut(&quot;x&quot;),Rt[2]*=i,Rt[0]+=Rt[2]*o*(1/i-1)}if(st){for(d||(l=.5),n=0;n&lt;J.length;n++)c(J[n],l,i);Ut(&quot;y&quot;),Rt[3]*=i,Rt[1]+=Rt[3]*(1-l)*(1/i-1)}Gt(Rt),Vt(),t.emit(&quot;plotly_relayouting&quot;,ft),Ft=setTimeout((function(){Rt=[0,0,$,tt],Ht()}),Bt),e.preventDefault()}else s.log(&quot;Did not find wheel motion attributes: &quot;,e)}function c(t,e,r){if(!t.fixedrange){var n=s.simpleMap(t.range,t.r2l),i=n[0]+(n[1]-n[0])*e;t.range=n.map((function(e){return t.l2r(i+(e-i)*r)}))}}})),xt},makeDragger:P,makeRectDragger:z,makeZoombox:B,makeCorners:N,updateZoombox:j,xyCorners:H,transitionZoombox:U,removeZoombox:V,showDoubleClickNotifier:q,attachWheelEventHandler:Y}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/clear_gl_canvases&quot;:762,&quot;../../lib/setcursor&quot;:799,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/subroutines&quot;:818,&quot;../../registry&quot;:911,&quot;../plots&quot;:891,&quot;./axes&quot;:828,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./scale_zoom&quot;:846,&quot;./select&quot;:847,d3:169,&quot;has-passive-events&quot;:441,tinycolor2:576}],837:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/fx&quot;),a=t(&quot;../../components/dragelement&quot;),o=t(&quot;../../lib/setcursor&quot;),s=t(&quot;./dragbox&quot;).makeDragBox,l=t(&quot;./constants&quot;).DRAGGERSIZE;r.initInteractions=function(t){var e=t._fullLayout;if(t._context.staticPlot)n.select(t).selectAll(&quot;.drag&quot;).remove();else if(e._has(&quot;cartesian&quot;)||e._has(&quot;splom&quot;)){Object.keys(e._plots||{}).sort((function(t,r){if((e._plots[t].mainplot&amp;&amp;!0)===(e._plots[r].mainplot&amp;&amp;!0)){var n=t.split(&quot;y&quot;),i=r.split(&quot;y&quot;);return n[0]===i[0]?Number(n[1]||1)-Number(i[1]||1):Number(n[0]||1)-Number(i[0]||1)}return e._plots[t].mainplot?1:-1})).forEach((function(r){var n=e._plots[r],o=n.xaxis,c=n.yaxis;if(!n.mainplot){var u=s(t,n,o._offset,c._offset,o._length,c._length,&quot;ns&quot;,&quot;ew&quot;);u.onmousemove=function(e){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===r&amp;&amp;t._fullLayout._plots[r]&amp;&amp;i.hover(t,e,r)},i.hover(t,e,r),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=r},u.onmouseout=function(e){t._dragging||(t._fullLayout._hoversubplot=null,a.unhover(t,e))},t._context.showAxisDragHandles&amp;&amp;(s(t,n,o._offset-l,c._offset-l,l,l,&quot;n&quot;,&quot;w&quot;),s(t,n,o._offset+o._length,c._offset-l,l,l,&quot;n&quot;,&quot;e&quot;),s(t,n,o._offset-l,c._offset+c._length,l,l,&quot;s&quot;,&quot;w&quot;),s(t,n,o._offset+o._length,c._offset+c._length,l,l,&quot;s&quot;,&quot;e&quot;))}if(t._context.showAxisDragHandles){if(r===o._mainSubplot){var f=o._mainLinePosition;&quot;top&quot;===o.side&amp;&amp;(f-=l),s(t,n,o._offset+.1*o._length,f,.8*o._length,l,&quot;&quot;,&quot;ew&quot;),s(t,n,o._offset,f,.1*o._length,l,&quot;&quot;,&quot;w&quot;),s(t,n,o._offset+.9*o._length,f,.1*o._length,l,&quot;&quot;,&quot;e&quot;)}if(r===c._mainSubplot){var h=c._mainLinePosition;&quot;right&quot;!==c.side&amp;&amp;(h-=l),s(t,n,h,c._offset+.1*c._length,l,.8*c._length,&quot;ns&quot;,&quot;&quot;),s(t,n,h,c._offset+.9*c._length,l,.1*c._length,&quot;s&quot;,&quot;&quot;),s(t,n,h,c._offset,l,.1*c._length,&quot;n&quot;,&quot;&quot;)}}}));var o=e._hoverlayer.node();o.onmousemove=function(r){r.target=t._fullLayout._lasthover,i.hover(t,r,e._hoversubplot)},o.onclick=function(e){e.target=t._fullLayout._lasthover,i.click(t,e)},o.onmousedown=function(e){t._fullLayout._lasthover.onmousedown(e)},r.updateFx(t)}},r.updateFx=function(t){var e=t._fullLayout,r=&quot;pan&quot;===e.dragmode?&quot;move&quot;:&quot;crosshair&quot;;o(e._draggers,r)}},{&quot;../../components/dragelement&quot;:662,&quot;../../components/fx&quot;:683,&quot;../../lib/setcursor&quot;:799,&quot;./constants&quot;:834,&quot;./dragbox&quot;:836,d3:169}],838:[function(t,e,r){&quot;use strict&quot;;e.exports={clearOutlineControllers:function(t){var e=t._fullLayout._zoomlayer;e&amp;&amp;e.selectAll(&quot;.outline-controllers&quot;).remove()},clearSelect:function(t){var e=t._fullLayout._zoomlayer;e&amp;&amp;e.selectAll(&quot;.select-outline&quot;).remove(),t._fullLayout._drawing=!1}}},{}],839:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).strTranslate;function i(t,e){switch(t.type){case&quot;log&quot;:return t.p2d(e);case&quot;date&quot;:return t.p2r(e,0,t.calendar);default:return t.p2r(e)}}e.exports={p2r:i,r2p:function(t,e){switch(t.type){case&quot;log&quot;:return t.d2p(e);case&quot;date&quot;:return t.r2p(e,0,t.calendar);default:return t.r2p(e)}},axValue:function(t){var e=&quot;y&quot;===t._id.charAt(0)?1:0;return function(r){return i(t,r[e])}},getTransform:function(t){return n(t.xaxis._offset,t.yaxis._offset)}}},{&quot;../../lib&quot;:778}],840:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./axis_ids&quot;);e.exports=function(t){return function(e,r){var o=e[t];if(Array.isArray(o))for(var s=n.subplotsRegistry.cartesian,l=s.idRegex,c=r._subplots,u=c.xaxis,f=c.yaxis,h=c.cartesian,p=r._has(&quot;cartesian&quot;)||r._has(&quot;gl2d&quot;),d=0;d&lt;o.length;d++){var g=o[d];if(i.isPlainObject(g)){var m=a.cleanId(g.xref,&quot;x&quot;,!1),v=a.cleanId(g.yref,&quot;y&quot;,!1),y=l.x.test(m),x=l.y.test(v);if(y||x){p||i.pushUnique(r._basePlotModules,s);var b=!1;y&amp;&amp;-1===u.indexOf(m)&amp;&amp;(u.push(m),b=!0),x&amp;&amp;-1===f.indexOf(v)&amp;&amp;(f.push(v),b=!0),b&amp;&amp;y&amp;&amp;x&amp;&amp;h.push(m+v)}}}}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./axis_ids&quot;:831}],841:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../plots&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../get_data&quot;).getModuleCalcData,c=t(&quot;./axis_ids&quot;),u=t(&quot;./constants&quot;),f=t(&quot;../../constants/xmlns_namespaces&quot;),h=a.ensureSingle;function p(t,e,r){return a.ensureSingle(t,e,r,(function(t){t.datum(r)}))}function d(t,e,r,a,o){for(var c,f,h,p=u.traceLayerClasses,d=t._fullLayout,g=d._modules,m=[],v=[],y=0;y&lt;g.length;y++){var x=(c=g[y]).name,b=i.modules[x].categories;if(b.svg){var _=c.layerName||x+&quot;layer&quot;,w=c.plot;h=(f=l(r,w))[0],r=f[1],h.length&amp;&amp;m.push({i:p.indexOf(_),className:_,plotMethod:w,cdModule:h}),b.zoomScale&amp;&amp;v.push(&quot;.&quot;+_)}}m.sort((function(t,e){return t.i-e.i}));var T=e.plot.selectAll(&quot;g.mlayer&quot;).data(m,(function(t){return t.className}));if(T.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return t.className})).classed(&quot;mlayer&quot;,!0).classed(&quot;rangeplot&quot;,e.isRangePlot),T.exit().remove(),T.order(),T.each((function(r){var i=n.select(this),l=r.className;r.plotMethod(t,e,r.cdModule,i,a,o),-1===u.clipOnAxisFalseQuery.indexOf(&quot;.&quot;+l)&amp;&amp;s.setClipUrl(i,e.layerClipId,t)})),d._has(&quot;scattergl&quot;)&amp;&amp;(c=i.getModule(&quot;scattergl&quot;),h=l(r,c)[0],c.plot(t,e,h)),!t._context.staticPlot&amp;&amp;(e._hasClipOnAxisFalse&amp;&amp;(e.clipOnAxisFalseTraces=e.plot.selectAll(u.clipOnAxisFalseQuery.join(&quot;,&quot;)).selectAll(&quot;.trace&quot;)),v.length)){var k=e.plot.selectAll(v.join(&quot;,&quot;)).selectAll(&quot;.trace&quot;);e.zoomScalePts=k.selectAll(&quot;path.point&quot;),e.zoomScaleTxt=k.selectAll(&quot;.textpoint&quot;)}}function g(t,e){var r=e.plotgroup,n=e.id,i=u.layerValue2layerClass[e.xaxis.layer],a=u.layerValue2layerClass[e.yaxis.layer],o=t._fullLayout._hasOnlyLargeSploms;if(e.mainplot){var s=e.mainplotinfo,l=s.plotgroup,f=n+&quot;-x&quot;,d=n+&quot;-y&quot;;e.gridlayer=s.gridlayer,e.zerolinelayer=s.zerolinelayer,h(s.overlinesBelow,&quot;path&quot;,f),h(s.overlinesBelow,&quot;path&quot;,d),h(s.overaxesBelow,&quot;g&quot;,f),h(s.overaxesBelow,&quot;g&quot;,d),e.plot=h(s.overplot,&quot;g&quot;,n),h(s.overlinesAbove,&quot;path&quot;,f),h(s.overlinesAbove,&quot;path&quot;,d),h(s.overaxesAbove,&quot;g&quot;,f),h(s.overaxesAbove,&quot;g&quot;,d),e.xlines=l.select(&quot;.overlines-&quot;+i).select(&quot;.&quot;+f),e.ylines=l.select(&quot;.overlines-&quot;+a).select(&quot;.&quot;+d),e.xaxislayer=l.select(&quot;.overaxes-&quot;+i).select(&quot;.&quot;+f),e.yaxislayer=l.select(&quot;.overaxes-&quot;+a).select(&quot;.&quot;+d)}else if(o)e.xlines=h(r,&quot;path&quot;,&quot;xlines-above&quot;),e.ylines=h(r,&quot;path&quot;,&quot;ylines-above&quot;),e.xaxislayer=h(r,&quot;g&quot;,&quot;xaxislayer-above&quot;),e.yaxislayer=h(r,&quot;g&quot;,&quot;yaxislayer-above&quot;);else{var g=h(r,&quot;g&quot;,&quot;layer-subplot&quot;);e.shapelayer=h(g,&quot;g&quot;,&quot;shapelayer&quot;),e.imagelayer=h(g,&quot;g&quot;,&quot;imagelayer&quot;),e.gridlayer=h(r,&quot;g&quot;,&quot;gridlayer&quot;),e.zerolinelayer=h(r,&quot;g&quot;,&quot;zerolinelayer&quot;),h(r,&quot;path&quot;,&quot;xlines-below&quot;),h(r,&quot;path&quot;,&quot;ylines-below&quot;),e.overlinesBelow=h(r,&quot;g&quot;,&quot;overlines-below&quot;),h(r,&quot;g&quot;,&quot;xaxislayer-below&quot;),h(r,&quot;g&quot;,&quot;yaxislayer-below&quot;),e.overaxesBelow=h(r,&quot;g&quot;,&quot;overaxes-below&quot;),e.plot=h(r,&quot;g&quot;,&quot;plot&quot;),e.overplot=h(r,&quot;g&quot;,&quot;overplot&quot;),e.xlines=h(r,&quot;path&quot;,&quot;xlines-above&quot;),e.ylines=h(r,&quot;path&quot;,&quot;ylines-above&quot;),e.overlinesAbove=h(r,&quot;g&quot;,&quot;overlines-above&quot;),h(r,&quot;g&quot;,&quot;xaxislayer-above&quot;),h(r,&quot;g&quot;,&quot;yaxislayer-above&quot;),e.overaxesAbove=h(r,&quot;g&quot;,&quot;overaxes-above&quot;),e.xlines=r.select(&quot;.xlines-&quot;+i),e.ylines=r.select(&quot;.ylines-&quot;+a),e.xaxislayer=r.select(&quot;.xaxislayer-&quot;+i),e.yaxislayer=r.select(&quot;.yaxislayer-&quot;+a)}o||(p(e.gridlayer,&quot;g&quot;,e.xaxis._id),p(e.gridlayer,&quot;g&quot;,e.yaxis._id),e.gridlayer.selectAll(&quot;g&quot;).map((function(t){return t[0]})).sort(c.idSort)),e.xlines.style(&quot;fill&quot;,&quot;none&quot;).classed(&quot;crisp&quot;,!0),e.ylines.style(&quot;fill&quot;,&quot;none&quot;).classed(&quot;crisp&quot;,!0)}function m(t,e){if(t){var r={};for(var i in t.each((function(t){var i=t[0];n.select(this).remove(),v(i,e),r[i]=!0})),e._plots)for(var a=e._plots[i].overlays||[],o=0;o&lt;a.length;o++){var s=a[o];r[s.id]&amp;&amp;s.plot.selectAll(&quot;.trace&quot;).remove()}}}function v(t,e){e._draggers.selectAll(&quot;g.&quot;+t).remove(),e._defs.select(&quot;#clip&quot;+e._uid+t+&quot;plot&quot;).remove()}r.name=&quot;cartesian&quot;,r.attr=[&quot;xaxis&quot;,&quot;yaxis&quot;],r.idRoot=[&quot;x&quot;,&quot;y&quot;],r.idRegex=u.idRegex,r.attrRegex=u.attrRegex,r.attributes=t(&quot;./attributes&quot;),r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.transitionAxes=t(&quot;./transition_axes&quot;),r.finalizeSubplots=function(t,e){var r,n,i,o=e._subplots,s=o.xaxis,l=o.yaxis,f=o.cartesian,h=f.concat(o.gl2d||[]),p={},d={};for(r=0;r&lt;h.length;r++){var g=h[r].split(&quot;y&quot;);p[g[0]]=1,d[&quot;y&quot;+g[1]]=1}for(r=0;r&lt;s.length;r++)p[n=s[r]]||(i=(t[c.id2name(n)]||{}).anchor,u.idRegex.y.test(i)||(i=&quot;y&quot;),f.push(n+i),h.push(n+i),d[i]||(d[i]=1,a.pushUnique(l,i)));for(r=0;r&lt;l.length;r++)d[i=l[r]]||(n=(t[c.id2name(i)]||{}).anchor,u.idRegex.x.test(n)||(n=&quot;x&quot;),f.push(n+i),h.push(n+i),p[n]||(p[n]=1,a.pushUnique(s,n)));if(!h.length){for(var m in n=&quot;&quot;,i=&quot;&quot;,t){if(u.attrRegex.test(m))&quot;x&quot;===m.charAt(0)?(!n||+m.substr(5)&lt;+n.substr(5))&amp;&amp;(n=m):(!i||+m.substr(5)&lt;+i.substr(5))&amp;&amp;(i=m)}n=n?c.name2id(n):&quot;x&quot;,i=i?c.name2id(i):&quot;y&quot;,s.push(n),l.push(i),f.push(n+i)}},r.plot=function(t,e,r,n){var i,a=t._fullLayout,o=a._subplots.cartesian,s=t.calcdata;if(!Array.isArray(e))for(e=[],i=0;i&lt;s.length;i++)e.push(i);for(i=0;i&lt;o.length;i++){for(var l,c=o[i],u=a._plots[c],f=[],h=0;h&lt;s.length;h++){var p=s[h],g=p[0].trace;g.xaxis+g.yaxis===c&amp;&amp;((-1!==e.indexOf(g.index)||g.carpet)&amp;&amp;(l&amp;&amp;l[0].trace.xaxis+l[0].trace.yaxis===c&amp;&amp;-1!==[&quot;tonextx&quot;,&quot;tonexty&quot;,&quot;tonext&quot;].indexOf(g.fill)&amp;&amp;-1===f.indexOf(l)&amp;&amp;f.push(l),f.push(p)),l=p)}d(t,u,f,r,n)}},r.clean=function(t,e,r,n){var i,a,o,s=n._plots||{},l=e._plots||{},u=n._subplots||{};if(n._hasOnlyLargeSploms&amp;&amp;!e._hasOnlyLargeSploms)for(o in s)(i=s[o]).plotgroup&amp;&amp;i.plotgroup.remove();var f=n._has&amp;&amp;n._has(&quot;gl&quot;),h=e._has&amp;&amp;e._has(&quot;gl&quot;);if(f&amp;&amp;!h)for(o in s)(i=s[o])._scene&amp;&amp;i._scene.destroy();if(u.xaxis&amp;&amp;u.yaxis){var p=c.listIds({_fullLayout:n});for(a=0;a&lt;p.length;a++){var d=p[a];e[c.id2name(d)]||n._infolayer.selectAll(&quot;.g-&quot;+d+&quot;title&quot;).remove()}}var g=n._has&amp;&amp;n._has(&quot;cartesian&quot;),y=e._has&amp;&amp;e._has(&quot;cartesian&quot;);if(g&amp;&amp;!y)m(n._cartesianlayer.selectAll(&quot;.subplot&quot;),n),n._defs.selectAll(&quot;.axesclip&quot;).remove(),delete n._axisConstraintGroups,delete n._axisMatchGroups;else if(u.cartesian)for(a=0;a&lt;u.cartesian.length;a++){var x=u.cartesian[a];if(!l[x]){var b=&quot;.&quot;+x+&quot;,.&quot;+x+&quot;-x,.&quot;+x+&quot;-y&quot;;n._cartesianlayer.selectAll(b).remove(),v(x,n)}}},r.drawFramework=function(t){var e=t._fullLayout,r=function(t){var e,r,n,i,a,o,s=t._fullLayout,l=s._subplots.cartesian,c=l.length,u=[],f=[];for(e=0;e&lt;c;e++){n=l[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var h=a._mainAxis,p=o._mainAxis,d=h._id+p._id,g=s._plots[d];i.overlays=[],d!==n&amp;&amp;g?(i.mainplot=d,i.mainplotinfo=g,f.push(n)):(i.mainplot=void 0,i.mainplotinfo=void 0,u.push(n))}for(e=0;e&lt;f.length;e++)n=f[e],(i=s._plots[n]).mainplotinfo.overlays.push(i);var m=u.concat(f),v=new Array(c);for(e=0;e&lt;c;e++){n=m[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var y=[n,a.layer,o.layer,a.overlaying||&quot;&quot;,o.overlaying||&quot;&quot;];for(r=0;r&lt;i.overlays.length;r++)y.push(i.overlays[r].id);v[e]=y}return v}(t),i=e._cartesianlayer.selectAll(&quot;.subplot&quot;).data(r,String);i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;subplot &quot;+t[0]})),i.order(),i.exit().call(m,e),i.each((function(r){var i=r[0],a=e._plots[i];a.plotgroup=n.select(this),g(t,a),a.draglayer=h(e._draggers,&quot;g&quot;,i)}))},r.rangePlot=function(t,e,r){g(t,e),d(t,e,r),o.style(t)},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(&quot;.svg-container&quot;);r.filter((function(t,e){return e===r.size()-1})).selectAll(&quot;.gl-canvas-context, .gl-canvas-focus&quot;).each((function(){var t=this.toDataURL(&quot;image/png&quot;);e.append(&quot;svg:image&quot;).attr({xmlns:f.svg,&quot;xlink:href&quot;:t,preserveAspectRatio:&quot;none&quot;,x:0,y:0,width:this.width,height:this.height})}))},r.updateFx=t(&quot;./graph_interact&quot;).updateFx},{&quot;../../components/drawing&quot;:665,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../get_data&quot;:865,&quot;../plots&quot;:891,&quot;./attributes&quot;:826,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./graph_interact&quot;:837,&quot;./layout_attributes&quot;:842,&quot;./layout_defaults&quot;:843,&quot;./transition_axes&quot;:852,d3:169}],842:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../font_attributes&quot;),i=t(&quot;../../components/color/attributes&quot;),a=t(&quot;../../components/drawing/attributes&quot;).dash,o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/plot_template&quot;).templatedArray,l=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,t(&quot;../../constants/docs&quot;).DATE_FORMAT_LINK,t(&quot;../../constants/numerical&quot;).ONEDAY),c=t(&quot;./constants&quot;),u=c.HOUR_PATTERN,f=c.WEEKDAY_PATTERN;e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},title:{text:{valType:&quot;string&quot;,editType:&quot;ticks&quot;},font:n({editType:&quot;ticks&quot;}),standoff:{valType:&quot;number&quot;,min:0,editType:&quot;ticks&quot;},editType:&quot;ticks&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;,&quot;multicategory&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;,_noTemplating:!0},autotypenumbers:{valType:&quot;enumerated&quot;,values:[&quot;convert types&quot;,&quot;strict&quot;],dflt:&quot;convert types&quot;,editType:&quot;calc&quot;},autorange:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],dflt:!0,editType:&quot;axrange&quot;,impliedEdits:{&quot;range[0]&quot;:void 0,&quot;range[1]&quot;:void 0}},rangemode:{valType:&quot;enumerated&quot;,values:[&quot;normal&quot;,&quot;tozero&quot;,&quot;nonnegative&quot;],dflt:&quot;normal&quot;,editType:&quot;plot&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;axrange&quot;,impliedEdits:{&quot;^autorange&quot;:!1},anim:!0},{valType:&quot;any&quot;,editType:&quot;axrange&quot;,impliedEdits:{&quot;^autorange&quot;:!1},anim:!0}],editType:&quot;axrange&quot;,impliedEdits:{autorange:!1},anim:!0},fixedrange:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},scaleanchor:{valType:&quot;enumerated&quot;,values:[c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;plot&quot;},scaleratio:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},constrain:{valType:&quot;enumerated&quot;,values:[&quot;range&quot;,&quot;domain&quot;],editType:&quot;plot&quot;},constraintoward:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;plot&quot;},matches:{valType:&quot;enumerated&quot;,values:[c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;calc&quot;},rangebreaks:s(&quot;rangebreak&quot;,{enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},bounds:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},pattern:{valType:&quot;enumerated&quot;,values:[f,u,&quot;&quot;],editType:&quot;calc&quot;},values:{valType:&quot;info_array&quot;,freeLength:!0,editType:&quot;calc&quot;,items:{valType:&quot;any&quot;,editType:&quot;calc&quot;}},dvalue:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0,dflt:l},editType:&quot;calc&quot;}),tickmode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;linear&quot;,&quot;array&quot;],editType:&quot;ticks&quot;,impliedEdits:{tick0:void 0,dtick:void 0}},nticks:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;ticks&quot;},tick0:{valType:&quot;any&quot;,editType:&quot;ticks&quot;,impliedEdits:{tickmode:&quot;linear&quot;}},dtick:{valType:&quot;any&quot;,editType:&quot;ticks&quot;,impliedEdits:{tickmode:&quot;linear&quot;}},tickvals:{valType:&quot;data_array&quot;,editType:&quot;ticks&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;ticks&quot;},ticks:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;&quot;],editType:&quot;ticks&quot;},tickson:{valType:&quot;enumerated&quot;,values:[&quot;labels&quot;,&quot;boundaries&quot;],dflt:&quot;labels&quot;,editType:&quot;ticks&quot;},ticklabelmode:{valType:&quot;enumerated&quot;,values:[&quot;instant&quot;,&quot;period&quot;],dflt:&quot;instant&quot;,editType:&quot;ticks&quot;},ticklabelposition:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;],dflt:&quot;outside&quot;,editType:&quot;calc&quot;},mirror:{valType:&quot;enumerated&quot;,values:[!0,&quot;ticks&quot;,!1,&quot;all&quot;,&quot;allticks&quot;],dflt:!1,editType:&quot;ticks+layoutstyle&quot;},ticklen:{valType:&quot;number&quot;,min:0,dflt:5,editType:&quot;ticks&quot;},tickwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks&quot;},tickcolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},showticklabels:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},automargin:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks&quot;},showspikes:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;modebar&quot;},spikecolor:{valType:&quot;color&quot;,dflt:null,editType:&quot;none&quot;},spikethickness:{valType:&quot;number&quot;,dflt:3,editType:&quot;none&quot;},spikedash:o({},a,{dflt:&quot;dash&quot;,editType:&quot;none&quot;}),spikemode:{valType:&quot;flaglist&quot;,flags:[&quot;toaxis&quot;,&quot;across&quot;,&quot;marker&quot;],dflt:&quot;toaxis&quot;,editType:&quot;none&quot;},spikesnap:{valType:&quot;enumerated&quot;,values:[&quot;data&quot;,&quot;cursor&quot;,&quot;hovered data&quot;],dflt:&quot;data&quot;,editType:&quot;none&quot;},tickfont:n({editType:&quot;ticks&quot;}),tickangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;ticks&quot;},tickprefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},showtickprefix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},ticksuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},showticksuffix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},showexponent:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},exponentformat:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;e&quot;,&quot;E&quot;,&quot;power&quot;,&quot;SI&quot;,&quot;B&quot;],dflt:&quot;B&quot;,editType:&quot;ticks&quot;},minexponent:{valType:&quot;number&quot;,dflt:3,min:0,editType:&quot;ticks&quot;},separatethousands:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks&quot;},tickformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},tickformatstops:s(&quot;tickformatstop&quot;,{enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},dtickrange:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;ticks&quot;},{valType:&quot;any&quot;,editType:&quot;ticks&quot;}],editType:&quot;ticks&quot;},value:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},editType:&quot;ticks&quot;}),hoverformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;none&quot;},showline:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks+layoutstyle&quot;},linecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;layoutstyle&quot;},linewidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks+layoutstyle&quot;},showgrid:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},gridcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;ticks&quot;},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks&quot;},zeroline:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},zerolinecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},zerolinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;ticks&quot;},showdividers:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},dividercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},dividerwidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;ticks&quot;},anchor:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;,c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;right&quot;],editType:&quot;plot&quot;},overlaying:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;,c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;plot&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;above traces&quot;,&quot;below traces&quot;],dflt:&quot;above traces&quot;,editType:&quot;plot&quot;},domain:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;}],dflt:[0,1],editType:&quot;plot&quot;},position:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;plot&quot;},categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;,&quot;total ascending&quot;,&quot;total descending&quot;,&quot;min ascending&quot;,&quot;min descending&quot;,&quot;max ascending&quot;,&quot;max descending&quot;,&quot;sum ascending&quot;,&quot;sum descending&quot;,&quot;mean ascending&quot;,&quot;mean descending&quot;,&quot;median ascending&quot;,&quot;median descending&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;,_deprecated:{autotick:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},title:{valType:&quot;string&quot;,editType:&quot;ticks&quot;},titlefont:n({editType:&quot;ticks&quot;})}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../components/drawing/attributes&quot;:664,&quot;../../constants/docs&quot;:748,&quot;../../constants/numerical&quot;:753,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../font_attributes&quot;:856,&quot;./constants&quot;:834}],843:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/fx/helpers&quot;).isUnifiedHover,o=t(&quot;../../components/fx/hovermode_defaults&quot;),s=t(&quot;../../plot_api/plot_template&quot;),l=t(&quot;../layout_attributes&quot;),c=t(&quot;./layout_attributes&quot;),u=t(&quot;./type_defaults&quot;),f=t(&quot;./axis_defaults&quot;),h=t(&quot;./constraints&quot;),p=t(&quot;./position_defaults&quot;),d=t(&quot;./axis_ids&quot;),g=d.id2name,m=d.name2id,v=t(&quot;./constants&quot;).AX_ID_PATTERN,y=t(&quot;../../registry&quot;),x=y.traceIs,b=y.getComponentMethod;function _(t,e,r){Array.isArray(t[e])?t[e].push(r):t[e]=[r]}e.exports=function(t,e,r){var y,w,T=e.autotypenumbers,k={},M={},A={},S={},E={},C={},L={},I={},P={},z={};for(y=0;y&lt;r.length;y++){var O=r[y];if(x(O,&quot;cartesian&quot;)||x(O,&quot;gl2d&quot;)){var D,R;if(O.xaxis)D=g(O.xaxis),_(k,D,O);else if(O.xaxes)for(w=0;w&lt;O.xaxes.length;w++)_(k,g(O.xaxes[w]),O);if(O.yaxis)R=g(O.yaxis),_(k,R,O);else if(O.yaxes)for(w=0;w&lt;O.yaxes.length;w++)_(k,g(O.yaxes[w]),O);if(&quot;funnel&quot;===O.type?&quot;h&quot;===O.orientation?(D&amp;&amp;(M[D]=!0),R&amp;&amp;(L[R]=!0)):R&amp;&amp;(A[R]=!0):&quot;image&quot;===O.type?(R&amp;&amp;(I[R]=!0),D&amp;&amp;(I[D]=!0)):(R&amp;&amp;(E[R]=!0,C[R]=!0),x(O,&quot;carpet&quot;)&amp;&amp;(&quot;carpet&quot;!==O.type||O._cheater)||D&amp;&amp;(S[D]=!0)),&quot;carpet&quot;===O.type&amp;&amp;O._cheater&amp;&amp;D&amp;&amp;(M[D]=!0),x(O,&quot;2dMap&quot;)&amp;&amp;(P[D]=!0,P[R]=!0),x(O,&quot;oriented&quot;))z[&quot;h&quot;===O.orientation?R:D]=!0}}var F=e._subplots,B=F.xaxis,N=F.yaxis,j=n.simpleMap(B,g),U=n.simpleMap(N,g),V=j.concat(U),q=i.background;B.length&amp;&amp;N.length&amp;&amp;(q=n.coerce(t,e,l,&quot;plot_bgcolor&quot;));var H,G,Y,W,X,Z=i.combine(q,e.paper_bgcolor);function J(){var t=k[H]||[];X._traceIndices=t.map((function(t){return t._expandedIndex})),X._annIndices=[],X._shapeIndices=[],X._imgIndices=[],X._subplotsWith=[],X._counterAxes=[],X._name=X._attr=H,X._id=G}function K(t,e){return n.coerce(W,X,c,t,e)}function Q(t,e){return n.coerce2(W,X,c,t,e)}function $(t){return&quot;x&quot;===t?N:B}function tt(e,r){for(var n=&quot;x&quot;===e?j:U,i=[],a=0;a&lt;n.length;a++){var o=n[a];o===r||(t[o]||{}).overlaying||i.push(m(o))}return i}var et={x:$(&quot;x&quot;),y:$(&quot;y&quot;)},rt=et.x.concat(et.y),nt={},it=[];function at(){var t=W.matches;v.test(t)&amp;&amp;-1===rt.indexOf(t)&amp;&amp;(nt[t]=W.type,it=Object.keys(nt))}var ot=o(t,e,r),st=a(ot);for(y=0;y&lt;V.length;y++){H=V[y],G=m(H),Y=H.charAt(0),n.isPlainObject(t[H])||(t[H]={}),W=t[H],X=s.newContainer(e,H,Y+&quot;axis&quot;),J();var lt=&quot;x&quot;===Y&amp;&amp;!S[H]&amp;&amp;M[H]||&quot;y&quot;===Y&amp;&amp;!E[H]&amp;&amp;A[H],ct=&quot;y&quot;===Y&amp;&amp;(!C[H]&amp;&amp;L[H]||I[H]),ut={letter:Y,font:e.font,outerTicks:P[H],showGrid:!z[H],data:k[H]||[],bgColor:Z,calendar:e.calendar,automargin:!0,visibleDflt:lt,reverseDflt:ct,autotypenumbersDflt:T,splomStash:((e._splomAxes||{})[Y]||{})[G]};K(&quot;uirevision&quot;,e.uirevision),u(W,X,K,ut),f(W,X,K,ut,e);var ft=st&amp;&amp;Y===ot.charAt(0),ht=Q(&quot;spikecolor&quot;,st?X.color:void 0),pt=Q(&quot;spikethickness&quot;,st?1.5:void 0),dt=Q(&quot;spikedash&quot;,st?&quot;dot&quot;:void 0),gt=Q(&quot;spikemode&quot;,st?&quot;across&quot;:void 0),mt=Q(&quot;spikesnap&quot;,st?&quot;hovered data&quot;:void 0);K(&quot;showspikes&quot;,!!(ft||ht||pt||dt||gt||mt))||(delete X.spikecolor,delete X.spikethickness,delete X.spikedash,delete X.spikemode,delete X.spikesnap),p(W,X,K,{letter:Y,counterAxes:et[Y],overlayableAxes:tt(Y,H),grid:e.grid}),K(&quot;title.standoff&quot;),at(),X._input=W}for(y=0;y&lt;it.length;){G=it[y++],Y=(H=g(G)).charAt(0),n.isPlainObject(t[H])||(t[H]={}),W=t[H],X=s.newContainer(e,H,Y+&quot;axis&quot;),J();var vt={letter:Y,font:e.font,outerTicks:P[H],showGrid:!z[H],data:[],bgColor:Z,calendar:e.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:T,splomStash:((e._splomAxes||{})[Y]||{})[G]};K(&quot;uirevision&quot;,e.uirevision),X.type=nt[G]||&quot;linear&quot;,f(W,X,K,vt,e),p(W,X,K,{letter:Y,counterAxes:et[Y],overlayableAxes:tt(Y,H),grid:e.grid}),K(&quot;fixedrange&quot;),at(),X._input=W}var yt=b(&quot;rangeslider&quot;,&quot;handleDefaults&quot;),xt=b(&quot;rangeselector&quot;,&quot;handleDefaults&quot;);for(y=0;y&lt;j.length;y++)H=j[y],W=t[H],X=e[H],yt(t,e,H),&quot;date&quot;===X.type&amp;&amp;xt(W,X,e,U,X.calendar),K(&quot;fixedrange&quot;);for(y=0;y&lt;U.length;y++){H=U[y],W=t[H],X=e[H];var bt=e[g(X.anchor)];K(&quot;fixedrange&quot;,b(&quot;rangeslider&quot;,&quot;isVisible&quot;)(bt))}h.handleDefaults(t,e,{axIds:rt.concat(it).sort(d.idSort),axHasImage:I})}},{&quot;../../components/color&quot;:643,&quot;../../components/fx/helpers&quot;:679,&quot;../../components/fx/hovermode_defaults&quot;:682,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../registry&quot;:911,&quot;../layout_attributes&quot;:882,&quot;./axis_defaults&quot;:830,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./constraints&quot;:835,&quot;./layout_attributes&quot;:842,&quot;./position_defaults&quot;:845,&quot;./type_defaults&quot;:853}],844:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;).mix,i=t(&quot;../../components/color/attributes&quot;).lightFraction,a=t(&quot;../../lib&quot;);e.exports=function(t,e,r,o){var s=(o=o||{}).dfltColor;function l(r,n){return a.coerce2(t,e,o.attributes,r,n)}var c=l(&quot;linecolor&quot;,s),u=l(&quot;linewidth&quot;);r(&quot;showline&quot;,o.showLine||!!c||!!u)||(delete e.linecolor,delete e.linewidth);var f=l(&quot;gridcolor&quot;,n(s,o.bgColor,o.blend||i).toRgbString()),h=l(&quot;gridwidth&quot;);if(r(&quot;showgrid&quot;,o.showGrid||!!f||!!h)||(delete e.gridcolor,delete e.gridwidth),!o.noZeroLine){var p=l(&quot;zerolinecolor&quot;,s),d=l(&quot;zerolinewidth&quot;);r(&quot;zeroline&quot;,o.showGrid||!!p||!!d)||(delete e.zerolinecolor,delete e.zerolinewidth)}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib&quot;:778,tinycolor2:576}],845:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o,s,l,c,u=a.counterAxes||[],f=a.overlayableAxes||[],h=a.letter,p=a.grid;p&amp;&amp;(s=p._domains[h][p._axisMap[e._id]],o=p._anchors[e._id],s&amp;&amp;(l=p[h+&quot;side&quot;].split(&quot; &quot;)[0],c=p.domain[h][&quot;right&quot;===l||&quot;top&quot;===l?1:0])),s=s||[0,1],o=o||(n(t.position)?&quot;free&quot;:u[0]||&quot;free&quot;),l=l||(&quot;x&quot;===h?&quot;bottom&quot;:&quot;left&quot;),c=c||0,&quot;free&quot;===i.coerce(t,e,{anchor:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;].concat(u),dflt:o}},&quot;anchor&quot;)&amp;&amp;r(&quot;position&quot;,c),i.coerce(t,e,{side:{valType:&quot;enumerated&quot;,values:&quot;x&quot;===h?[&quot;bottom&quot;,&quot;top&quot;]:[&quot;left&quot;,&quot;right&quot;],dflt:l}},&quot;side&quot;);var d=!1;if(f.length&amp;&amp;(d=i.coerce(t,e,{overlaying:{valType:&quot;enumerated&quot;,values:[!1].concat(f),dflt:!1}},&quot;overlaying&quot;)),!d){var g=r(&quot;domain&quot;,s);g[0]&gt;g[1]-1/4096&amp;&amp;(e.domain=s),i.noneOrAll(t.domain,e.domain,s)}return r(&quot;layer&quot;),e}},{&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],846:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/alignment&quot;).FROM_BL;e.exports=function(t,e,r){void 0===r&amp;&amp;(r=n[t.constraintoward||&quot;center&quot;]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*r;t.range=t._input.range=[t.l2r(a+(i[0]-a)*e),t.l2r(a+(i[1]-a)*e)],t.setScale()}},{&quot;../../constants/alignment&quot;:745}],847:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;polybooljs&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/drawing&quot;).dashStyle,o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;../../components/fx/helpers&quot;).makeEventData,c=t(&quot;../../components/dragelement/helpers&quot;),u=c.freeMode,f=c.rectMode,h=c.drawMode,p=c.openMode,d=c.selectMode,g=t(&quot;../../components/shapes/draw_newshape/display_outlines&quot;),m=t(&quot;../../components/shapes/draw_newshape/helpers&quot;).handleEllipse,v=t(&quot;../../components/shapes/draw_newshape/newshapes&quot;),y=t(&quot;../../lib&quot;),x=t(&quot;../../lib/polygon&quot;),b=t(&quot;../../lib/throttle&quot;),_=t(&quot;./axis_ids&quot;).getFromId,w=t(&quot;../../lib/clear_gl_canvases&quot;),T=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,k=t(&quot;./constants&quot;),M=k.MINSELECT,A=x.filter,S=x.tester,E=t(&quot;./handle_outline&quot;).clearSelect,C=t(&quot;./helpers&quot;),L=C.p2r,I=C.axValue,P=C.getTransform;function z(t,e,r,n,i,a,o){var s,l,c,u,f,h,d,m,v,y=e._hoverdata,x=e._fullLayout.clickmode.indexOf(&quot;event&quot;)&gt;-1,b=[];if(function(t){return t&amp;&amp;Array.isArray(t)&amp;&amp;!0!==t[0].hoverOnBox}(y)){F(t,e,a);var _=function(t,e){var r,n,i=t[0],a=-1,o=[];for(n=0;n&lt;e.length;n++)if(r=e[n],i.fullData._expandedIndex===r.cd[0].trace._expandedIndex){if(!0===i.hoverOnBox)break;void 0!==i.pointNumber?a=i.pointNumber:void 0!==i.binNumber&amp;&amp;(a=i.binNumber,o=i.pointNumbers);break}return{pointNumber:a,pointNumbers:o,searchInfo:r}}(y,s=N(e,r,n,i));if(_.pointNumbers.length&gt;0?function(t,e){var r,n,i,a=[];for(i=0;i&lt;t.length;i++)(r=t[i]).cd[0].trace.selectedpoints&amp;&amp;r.cd[0].trace.selectedpoints.length&gt;0&amp;&amp;a.push(r);if(1===a.length&amp;&amp;a[0]===e.searchInfo&amp;&amp;(n=e.searchInfo.cd[0].trace).selectedpoints.length===e.pointNumbers.length){for(i=0;i&lt;e.pointNumbers.length;i++)if(n.selectedpoints.indexOf(e.pointNumbers[i])&lt;0)return!1;return!0}return!1}(s,_):function(t){var e,r,n,i=0;for(n=0;n&lt;t.length;n++)if(e=t[n],(r=e.cd[0].trace).selectedpoints){if(r.selectedpoints.length&gt;1)return!1;if((i+=r.selectedpoints.length)&gt;1)return!1}return 1===i}(s)&amp;&amp;(h=j(_))){for(o&amp;&amp;o.remove(),v=0;v&lt;s.length;v++)(l=s[v])._module.selectPoints(l,!1);U(e,s),B(a),x&amp;&amp;e.emit(&quot;plotly_deselect&quot;,null)}else{for(d=t.shiftKey&amp;&amp;(void 0!==h?h:j(_)),c=function(t,e,r){return{pointNumber:t,searchInfo:e,subtract:r}}(_.pointNumber,_.searchInfo,d),u=R(a.selectionDefs.concat([c])),v=0;v&lt;s.length;v++)if(f=V(s[v]._module.selectPoints(s[v],u),s[v]),b.length)for(var w=0;w&lt;f.length;w++)b.push(f[w]);else b=f;if(U(e,s,m={points:b}),c&amp;&amp;a&amp;&amp;a.selectionDefs.push(c),o){var T=a.mergedPolygons,k=p(a.dragmode);g(q(T,k),o,a)}x&amp;&amp;e.emit(&quot;plotly_selected&quot;,m)}}}function O(t){return&quot;pointNumber&quot;in t&amp;&amp;&quot;searchInfo&quot;in t}function D(t){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(e,r,n,i){var a=t.searchInfo.cd[0].trace._expandedIndex;return i.cd[0].trace._expandedIndex===a&amp;&amp;n===t.pointNumber},isRect:!1,degenerate:!1,subtract:t.subtract}}function R(t){for(var e=[],r=O(t[0])?0:t[0][0][0],n=r,i=O(t[0])?0:t[0][0][1],a=i,o=0;o&lt;t.length;o++)if(O(t[o]))e.push(D(t[o]));else{var s=x.tester(t[o]);s.subtract=t[o].subtract,e.push(s),r=Math.min(r,s.xmin),n=Math.max(n,s.xmax),i=Math.min(i,s.ymin),a=Math.max(a,s.ymax)}return{xmin:r,xmax:n,ymin:i,ymax:a,pts:[],contains:function(t,r,n,i){for(var a=!1,o=0;o&lt;e.length;o++)e[o].contains(t,r,n,i)&amp;&amp;(a=!1===e[o].subtract);return a},isRect:!1,degenerate:!1}}function F(t,e,r){e._fullLayout._drawing=!1;var n=e._fullLayout,i=r.plotinfo,a=r.dragmode,o=n._lastSelectedSubplot&amp;&amp;n._lastSelectedSubplot===i.id,s=(t.shiftKey||t.altKey)&amp;&amp;!(h(a)&amp;&amp;p(a));o&amp;&amp;s&amp;&amp;i.selection&amp;&amp;i.selection.selectionDefs&amp;&amp;!r.selectionDefs?(r.selectionDefs=i.selection.selectionDefs,r.mergedPolygons=i.selection.mergedPolygons):s&amp;&amp;i.selection||B(r),o||(E(e),n._lastSelectedSubplot=i.id)}function B(t){var e=t.dragmode,r=t.plotinfo,n=t.gd;if(n._fullLayout._activeShapeIndex&gt;=0&amp;&amp;n._fullLayout._deactivateShape(n),h(e)){var a=n._fullLayout._zoomlayer.selectAll(&quot;.select-outline-&quot;+r.id);if(a&amp;&amp;n._fullLayout._drawing){var o=v(a,t);o&amp;&amp;i.call(&quot;_guiRelayout&quot;,n,{shapes:o}),n._fullLayout._drawing=!1}}r.selection={},r.selection.selectionDefs=t.selectionDefs=[],r.selection.mergedPolygons=t.mergedPolygons=[]}function N(t,e,r,n){var i,a,o,s=[],l=e.map((function(t){return t._id})),c=r.map((function(t){return t._id}));for(o=0;o&lt;t.calcdata.length;o++)if(!0===(a=(i=t.calcdata[o])[0].trace).visible&amp;&amp;a._module&amp;&amp;a._module.selectPoints)if(!n||a.subplot!==n&amp;&amp;a.geo!==n)if(&quot;splom&quot;===a.type&amp;&amp;a._xaxes[l[0]]&amp;&amp;a._yaxes[c[0]]){var u=h(a._module,i,e[0],r[0]);u.scene=t._fullLayout._splomScenes[a.uid],s.push(u)}else if(&quot;sankey&quot;===a.type){var f=h(a._module,i,e[0],r[0]);s.push(f)}else{if(-1===l.indexOf(a.xaxis))continue;if(-1===c.indexOf(a.yaxis))continue;s.push(h(a._module,i,_(t,a.xaxis),_(t,a.yaxis)))}else s.push(h(a._module,i,e[0],r[0]));return s;function h(t,e,r,n){return{_module:t,cd:e,xaxis:r,yaxis:n}}}function j(t){var e=t.searchInfo.cd[0].trace,r=t.pointNumber,n=t.pointNumbers,i=n.length&gt;0?n[0]:r;return!!e.selectedpoints&amp;&amp;e.selectedpoints.indexOf(i)&gt;-1}function U(t,e,r){var n,a,o,s;for(n=0;n&lt;e.length;n++){var l=e[n].cd[0].trace._fullInput,c=t._fullLayout._tracePreGUI[l.uid]||{};void 0===c.selectedpoints&amp;&amp;(c.selectedpoints=l._input.selectedpoints||null)}if(r){var u=r.points||[];for(n=0;n&lt;e.length;n++)(s=e[n].cd[0].trace)._input.selectedpoints=s._fullInput.selectedpoints=[],s._fullInput!==s&amp;&amp;(s.selectedpoints=[]);for(n=0;n&lt;u.length;n++){var f=u[n],h=f.data,p=f.fullData;f.pointIndices?([].push.apply(h.selectedpoints,f.pointIndices),s._fullInput!==s&amp;&amp;[].push.apply(p.selectedpoints,f.pointIndices)):(h.selectedpoints.push(f.pointIndex),s._fullInput!==s&amp;&amp;p.selectedpoints.push(f.pointIndex))}}else for(n=0;n&lt;e.length;n++)delete(s=e[n].cd[0].trace).selectedpoints,delete s._input.selectedpoints,s._fullInput!==s&amp;&amp;delete s._fullInput.selectedpoints;var d=!1;for(n=0;n&lt;e.length;n++){s=(o=(a=e[n]).cd)[0].trace,i.traceIs(s,&quot;regl&quot;)&amp;&amp;(d=!0);var g=a._module,m=g.styleOnSelect||g.style;m&amp;&amp;(m(t,o,o[0].node3),o[0].nodeRangePlot3&amp;&amp;m(t,o,o[0].nodeRangePlot3))}d&amp;&amp;(w(t),T(t))}function V(t,e){if(Array.isArray(t))for(var r=e.cd,n=e.cd[0].trace,i=0;i&lt;t.length;i++)t[i]=l(t[i],n,r);return t}function q(t,e){for(var r=[],n=0;n&lt;t.length;n++){r[n]=[];for(var i=0;i&lt;t[n].length;i++){r[n][i]=[],r[n][i][0]=i?&quot;L&quot;:&quot;M&quot;;for(var a=0;a&lt;t[n][i].length;a++)r[n][i].push(t[n][i][a])}e||r[n].push([&quot;Z&quot;,r[n][0][1],r[n][0][2]])}return r}e.exports={prepSelect:function(t,e,r,i,l){var c=u(l),v=f(l),x=p(l),_=h(l),w=d(l),T=&quot;drawcircle&quot;===l,E=&quot;drawline&quot;===l||T,C=i.gd,O=C._fullLayout,D=O._zoomlayer,j=i.element.getBoundingClientRect(),H=i.plotinfo,G=P(H),Y=e-j.left,W=r-j.top;O._calcInverseTransform(C);var X=y.apply3DTransform(O._invTransform)(Y,W);Y=X[0],W=X[1];var Z,J,K,Q,$,tt,et,rt=O._invScaleX,nt=O._invScaleY,it=Y,at=W,ot=&quot;M&quot;+Y+&quot;,&quot;+W,st=i.xaxes[0]._length,lt=i.yaxes[0]._length,ct=i.xaxes.concat(i.yaxes),ut=t.altKey&amp;&amp;!(h(l)&amp;&amp;x);F(t,C,i),c&amp;&amp;(Z=A([[Y,W]],k.BENDPX));var ft=D.selectAll(&quot;path.select-outline-&quot;+H.id).data(_?[0]:[1,2]),ht=O.newshape;ft.enter().append(&quot;path&quot;).attr(&quot;class&quot;,(function(t){return&quot;select-outline select-outline-&quot;+t+&quot; select-outline-&quot;+H.id})).style(_?{opacity:ht.opacity/2,fill:x?void 0:ht.fillcolor,stroke:ht.line.color,&quot;stroke-dasharray&quot;:a(ht.line.dash,ht.line.width),&quot;stroke-width&quot;:ht.line.width+&quot;px&quot;}:{}).attr(&quot;fill-rule&quot;,ht.fillrule).classed(&quot;cursor-move&quot;,!!_).attr(&quot;transform&quot;,G).attr(&quot;d&quot;,ot+&quot;Z&quot;);var pt,dt=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).style({fill:o.background,stroke:o.defaultLine,&quot;stroke-width&quot;:1}).attr(&quot;transform&quot;,G).attr(&quot;d&quot;,&quot;M0,0Z&quot;),gt=O._uid+k.SELECTID,mt=[],vt=N(C,i.xaxes,i.yaxes,i.subplot);function yt(t,e){return t-e}pt=H.fillRangeItems?H.fillRangeItems:v?function(t,e){var r=t.range={};for($=0;$&lt;ct.length;$++){var n=ct[$],i=n._id.charAt(0);r[n._id]=[L(n,e[i+&quot;min&quot;]),L(n,e[i+&quot;max&quot;])].sort(yt)}}:function(t,e,r){var n=t.lassoPoints={};for($=0;$&lt;ct.length;$++){var i=ct[$];n[i._id]=r.filtered.map(I(i))}},i.moveFn=function(t,e){it=Math.max(0,Math.min(st,rt*t+Y)),at=Math.max(0,Math.min(lt,nt*e+W));var r=Math.abs(it-Y),a=Math.abs(at-W);if(v){var o,s,l;if(w){var u=O.selectdirection;switch(o=&quot;any&quot;===u?a&lt;Math.min(.6*r,M)?&quot;h&quot;:r&lt;Math.min(.6*a,M)?&quot;v&quot;:&quot;d&quot;:u){case&quot;h&quot;:s=T?lt/2:0,l=lt;break;case&quot;v&quot;:s=T?st/2:0,l=st}}if(_)switch(O.newshape.drawdirection){case&quot;vertical&quot;:o=&quot;h&quot;,s=T?lt/2:0,l=lt;break;case&quot;horizontal&quot;:o=&quot;v&quot;,s=T?st/2:0,l=st;break;case&quot;ortho&quot;:r&lt;a?(o=&quot;h&quot;,s=W,l=at):(o=&quot;v&quot;,s=Y,l=it);break;default:o=&quot;d&quot;}&quot;h&quot;===o?((Q=E?m(T,[it,s],[it,l]):[[Y,s],[Y,l],[it,l],[it,s]]).xmin=E?it:Math.min(Y,it),Q.xmax=E?it:Math.max(Y,it),Q.ymin=Math.min(s,l),Q.ymax=Math.max(s,l),dt.attr(&quot;d&quot;,&quot;M&quot;+Q.xmin+&quot;,&quot;+(W-M)+&quot;h-4v&quot;+2*M+&quot;h4ZM&quot;+(Q.xmax-1)+&quot;,&quot;+(W-M)+&quot;h4v&quot;+2*M+&quot;h-4Z&quot;)):&quot;v&quot;===o?((Q=E?m(T,[s,at],[l,at]):[[s,W],[s,at],[l,at],[l,W]]).xmin=Math.min(s,l),Q.xmax=Math.max(s,l),Q.ymin=E?at:Math.min(W,at),Q.ymax=E?at:Math.max(W,at),dt.attr(&quot;d&quot;,&quot;M&quot;+(Y-M)+&quot;,&quot;+Q.ymin+&quot;v-4h&quot;+2*M+&quot;v4ZM&quot;+(Y-M)+&quot;,&quot;+(Q.ymax-1)+&quot;v4h&quot;+2*M+&quot;v-4Z&quot;)):&quot;d&quot;===o&amp;&amp;((Q=E?m(T,[Y,W],[it,at]):[[Y,W],[Y,at],[it,at],[it,W]]).xmin=Math.min(Y,it),Q.xmax=Math.max(Y,it),Q.ymin=Math.min(W,at),Q.ymax=Math.max(W,at),dt.attr(&quot;d&quot;,&quot;M0,0Z&quot;))}else c&amp;&amp;(Z.addPt([it,at]),Q=Z.filtered);i.selectionDefs&amp;&amp;i.selectionDefs.length?(K=function(t,e,r){if(r)return n.difference({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions;return n.union({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions}(i.mergedPolygons,Q,ut),Q.subtract=ut,J=R(i.selectionDefs.concat([Q]))):(K=[Q],J=S(Q)),g(q(K,x),ft,i),w&amp;&amp;b.throttle(gt,k.SELECTDELAY,(function(){var t;mt=[];var e,r=[];for($=0;$&lt;vt.length;$++)if(e=(tt=vt[$])._module.selectPoints(tt,J),r.push(e),t=V(e,tt),mt.length)for(var n=0;n&lt;t.length;n++)mt.push(t[n]);else mt=t;U(C,vt,et={points:mt}),pt(et,Q,Z),i.gd.emit(&quot;plotly_selecting&quot;,et)}))},i.clickFn=function(t,e){if(dt.remove(),C._fullLayout._activeShapeIndex&gt;=0)C._fullLayout._deactivateShape(C);else if(!_){var r=O.clickmode;b.done(gt).then((function(){if(b.clear(gt),2===t){for(ft.remove(),$=0;$&lt;vt.length;$++)(tt=vt[$])._module.selectPoints(tt,!1);U(C,vt),B(i),C.emit(&quot;plotly_deselect&quot;,null)}else r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;z(e,C,i.xaxes,i.yaxes,i.subplot,i,ft),&quot;event&quot;===r&amp;&amp;C.emit(&quot;plotly_selected&quot;,void 0);s.click(C,e)})).catch(y.error)}},i.doneFn=function(){dt.remove(),b.done(gt).then((function(){b.clear(gt),i.gd.emit(&quot;plotly_selected&quot;,et),Q&amp;&amp;i.selectionDefs&amp;&amp;(Q.subtract=ut,i.selectionDefs.push(Q),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,K)),i.doneFnCompleted&amp;&amp;i.doneFnCompleted(mt)})).catch(y.error),_&amp;&amp;B(i)}},clearSelect:E,clearSelectionsCache:B,selectOnClick:z}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../components/fx/helpers&quot;:679,&quot;../../components/shapes/draw_newshape/display_outlines&quot;:728,&quot;../../components/shapes/draw_newshape/helpers&quot;:729,&quot;../../components/shapes/draw_newshape/newshapes&quot;:730,&quot;../../lib&quot;:778,&quot;../../lib/clear_gl_canvases&quot;:762,&quot;../../lib/polygon&quot;:790,&quot;../../lib/throttle&quot;:804,&quot;../../plot_api/subroutines&quot;:818,&quot;../../registry&quot;:911,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./handle_outline&quot;:838,&quot;./helpers&quot;:839,polybooljs:517}],848:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-time-format&quot;).utcFormat,a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../lib&quot;),s=o.cleanNumber,l=o.ms2DateTime,c=o.dateTime2ms,u=o.ensureNumber,f=o.isArrayOrTypedArray,h=t(&quot;../../constants/numerical&quot;),p=h.FP_SAFE,d=h.BADNUM,g=h.LOG_CLIP,m=h.ONEWEEK,v=h.ONEDAY,y=h.ONEHOUR,x=h.ONEMIN,b=h.ONESEC,_=t(&quot;./axis_ids&quot;),w=t(&quot;./constants&quot;),T=w.HOUR_PATTERN,k=w.WEEKDAY_PATTERN;function M(t){return Math.pow(10,t)}function A(t){return null!=t}e.exports=function(t,e){e=e||{};var r=t._id||&quot;x&quot;,h=r.charAt(0);function S(e,r){if(e&gt;0)return Math.log(e)/Math.LN10;if(e&lt;=0&amp;&amp;r&amp;&amp;t.range&amp;&amp;2===t.range.length){var n=t.range[0],i=t.range[1];return.5*(n+i-2*g*Math.abs(n-i))}return d}function E(e,r,n,i){if((i||{}).msUTC&amp;&amp;a(e))return+e;var s=c(e,n||t.calendar);if(s===d){if(!a(e))return d;e=+e;var l=Math.floor(10*o.mod(e+.05,1)),u=Math.round(e-l/10);s=c(new Date(u))+l/10}return s}function C(e,r,n){return l(e,r,n||t.calendar)}function L(e){return t._categories[Math.round(e)]}function I(e){if(A(e)){if(void 0===t._categoriesMap&amp;&amp;(t._categoriesMap={}),void 0!==t._categoriesMap[e])return t._categoriesMap[e];t._categories.push(&quot;number&quot;==typeof e?String(e):e);var r=t._categories.length-1;return t._categoriesMap[e]=r,r}return d}function P(e){if(t._categoriesMap)return t._categoriesMap[e]}function z(t){var e=P(t);return void 0!==e?e:a(t)?+t:void 0}function O(t){return a(t)?+t:P(t)}function D(t,e,r){return n.round(r+e*t,2)}function R(t,e,r){return(t-r)/e}var F=function(e){return a(e)?D(e,t._m,t._b):d},B=function(e){return R(e,t._m,t._b)};if(t.rangebreaks){var N=&quot;y&quot;===h;F=function(e){if(!a(e))return d;var r=t._rangebreaks.length;if(!r)return D(e,t._m,t._b);var n=N;t.range[0]&gt;t.range[1]&amp;&amp;(n=!n);for(var i=n?-1:1,o=i*e,s=0,l=0;l&lt;r;l++){var c=i*t._rangebreaks[l].min,u=i*t._rangebreaks[l].max;if(o&lt;c)break;if(!(o&gt;u)){s=o&lt;(c+u)/2?l:l+1;break}s=l+1}var f=t._B[s]||0;return isFinite(f)?D(e,t._m2,f):0},B=function(e){var r=t._rangebreaks.length;if(!r)return R(e,t._m,t._b);for(var n=0,i=0;i&lt;r&amp;&amp;!(e&lt;t._rangebreaks[i].pmin);i++)e&gt;t._rangebreaks[i].pmax&amp;&amp;(n=i+1);return R(e,t._m2,t._B[n])}}t.c2l=&quot;log&quot;===t.type?S:u,t.l2c=&quot;log&quot;===t.type?M:u,t.l2p=F,t.p2l=B,t.c2p=&quot;log&quot;===t.type?function(t,e){return F(S(t,e))}:F,t.p2c=&quot;log&quot;===t.type?function(t){return M(B(t))}:B,-1!==[&quot;linear&quot;,&quot;-&quot;].indexOf(t.type)?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=s,t.c2d=t.c2r=t.l2d=t.l2r=u,t.d2p=t.r2p=function(e){return t.l2p(s(e))},t.p2d=t.p2r=B,t.cleanPos=u):&quot;log&quot;===t.type?(t.d2r=t.d2l=function(t,e){return S(s(t),e)},t.r2d=t.r2c=function(t){return M(s(t))},t.d2c=t.r2l=s,t.c2d=t.l2r=u,t.c2r=S,t.l2d=M,t.d2p=function(e,r){return t.l2p(t.d2r(e,r))},t.p2d=function(t){return M(B(t))},t.r2p=function(e){return t.l2p(s(e))},t.p2r=B,t.cleanPos=u):&quot;date&quot;===t.type?(t.d2r=t.r2d=o.identity,t.d2c=t.r2c=t.d2l=t.r2l=E,t.c2d=t.c2r=t.l2d=t.l2r=C,t.d2p=t.r2p=function(e,r,n){return t.l2p(E(e,0,n))},t.p2d=t.p2r=function(t,e,r){return C(B(t),e,r)},t.cleanPos=function(e){return o.cleanDate(e,d,t.calendar)}):&quot;category&quot;===t.type?(t.d2c=t.d2l=I,t.r2d=t.c2d=t.l2d=L,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=O(e);return void 0!==r?r:t.fraction2r(.5)},t.l2r=t.c2r=u,t.r2l=O,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return L(B(t))},t.r2p=t.d2p,t.p2r=B,t.cleanPos=function(t){return&quot;string&quot;==typeof t&amp;&amp;&quot;&quot;!==t?t:u(t)}):&quot;multicategory&quot;===t.type&amp;&amp;(t.r2d=t.c2d=t.l2d=L,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=z(e);return void 0!==r?r:t.fraction2r(.5)},t.r2c_just_indices=P,t.l2r=t.c2r=u,t.r2l=z,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return L(B(t))},t.r2p=t.d2p,t.p2r=B,t.cleanPos=function(t){return Array.isArray(t)||&quot;string&quot;==typeof t&amp;&amp;&quot;&quot;!==t?t:u(t)},t.setupMultiCategory=function(n){var i,a,s=t._traceIndices,l=t._matchGroup;if(l&amp;&amp;0===t._categories.length)for(var c in l)if(c!==r){var u=e[_.id2name(c)];s=s.concat(u._traceIndices)}var p=[[0,{}],[0,{}]],d=[];for(i=0;i&lt;s.length;i++){var g=n[s[i]];if(h in g){var m=g[h],v=g._length||o.minRowLength(m);if(f(m[0])&amp;&amp;f(m[1]))for(a=0;a&lt;v;a++){var y=m[0][a],x=m[1][a];A(y)&amp;&amp;A(x)&amp;&amp;(d.push([y,x]),y in p[0][1]||(p[0][1][y]=p[0][0]++),x in p[1][1]||(p[1][1][x]=p[1][0]++))}}}for(d.sort((function(t,e){var r=p[0][1],n=r[t[0]]-r[e[0]];if(n)return n;var i=p[1][1];return i[t[1]]-i[e[1]]})),i=0;i&lt;d.length;i++)I(d[i])}),t.fraction2r=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return t.l2r(r+e*(n-r))},t.r2fraction=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return(t.r2l(e)-r)/(n-r)},t.cleanRange=function(e,r){r||(r={}),e||(e=&quot;range&quot;);var n,i,s=o.nestedProperty(t,e).get();if(i=(i=&quot;date&quot;===t.type?o.dfltRange(t.calendar):&quot;y&quot;===h?w.DFLTRANGEY:r.dfltRange||w.DFLTRANGEX).slice(),&quot;tozero&quot;!==t.rangemode&amp;&amp;&quot;nonnegative&quot;!==t.rangemode||(i[0]=0),s&amp;&amp;2===s.length)for(&quot;date&quot;!==t.type||t.autorange||(s[0]=o.cleanDate(s[0],d,t.calendar),s[1]=o.cleanDate(s[1],d,t.calendar)),n=0;n&lt;2;n++)if(&quot;date&quot;===t.type){if(!o.isDateTime(s[n],t.calendar)){t[e]=i;break}if(t.r2l(s[0])===t.r2l(s[1])){var l=o.constrain(t.r2l(s[0]),o.MIN_MS+1e3,o.MAX_MS-1e3);s[0]=t.l2r(l-1e3),s[1]=t.l2r(l+1e3);break}}else{if(!a(s[n])){if(!a(s[1-n])){t[e]=i;break}s[n]=s[1-n]*(n?10:.1)}if(s[n]&lt;-p?s[n]=-p:s[n]&gt;p&amp;&amp;(s[n]=p),s[0]===s[1]){var c=Math.max(1,Math.abs(1e-6*s[0]));s[0]-=c,s[1]+=c}}else o.nestedProperty(t,e).set(i)},t.setScale=function(r){var n=e._size;if(t.overlaying){var i=_.getFromId({_fullLayout:e},t.overlaying);t.domain=i.domain}var a=r&amp;&amp;t._r?&quot;_r&quot;:&quot;range&quot;,o=t.calendar;t.cleanRange(a);var s,l,c=t.r2l(t[a][0],o),u=t.r2l(t[a][1],o),f=&quot;y&quot;===h;if((f?(t._offset=n.t+(1-t.domain[1])*n.h,t._length=n.h*(t.domain[1]-t.domain[0]),t._m=t._length/(c-u),t._b=-t._m*u):(t._offset=n.l+t.domain[0]*n.w,t._length=n.w*(t.domain[1]-t.domain[0]),t._m=t._length/(u-c),t._b=-t._m*c),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks)&amp;&amp;(t._rangebreaks=t.locateBreaks(Math.min(c,u),Math.max(c,u)),t._rangebreaks.length)){for(s=0;s&lt;t._rangebreaks.length;s++)l=t._rangebreaks[s],t._lBreaks+=Math.abs(l.max-l.min);var p=f;c&gt;u&amp;&amp;(p=!p),p&amp;&amp;t._rangebreaks.reverse();var d=p?-1:1;for(t._m2=d*t._length/(Math.abs(u-c)-t._lBreaks),t._B.push(-t._m2*(f?u:c)),s=0;s&lt;t._rangebreaks.length;s++)l=t._rangebreaks[s],t._B.push(t._B[t._B.length-1]-d*t._m2*(l.max-l.min));for(s=0;s&lt;t._rangebreaks.length;s++)(l=t._rangebreaks[s]).pmin=F(l.min),l.pmax=F(l.max)}if(!isFinite(t._m)||!isFinite(t._b)||t._length&lt;0)throw e._replotting=!1,new Error(&quot;Something went wrong with axis scaling&quot;)},t.maskBreaks=function(e){for(var r,n,i,a,l,c=t.rangebreaks||[],u=0;u&lt;c.length;u++){var f=c[u];if(f.enabled)if(f.bounds){var h=f.pattern;switch(n=(r=o.simpleMap(f.bounds,h?s:t.d2c))[0],i=r[1],h){case k:a=(l=new Date(e)).getUTCDay(),n&gt;i&amp;&amp;(i+=7,a&lt;n&amp;&amp;(a+=7));break;case T:a=(l=new Date(e)).getUTCHours()+(l.getUTCMinutes()/60+l.getUTCSeconds()/3600+l.getUTCMilliseconds()/36e5),n&gt;i&amp;&amp;(i+=24,a&lt;n&amp;&amp;(a+=24));break;case&quot;&quot;:a=e}if(a&gt;=n&amp;&amp;a&lt;i)return d}else for(var p=o.simpleMap(f.values,t.d2c).sort(o.sorterAsc),g=0;g&lt;p.length;g++)if(i=(n=p[g])+f.dvalue,e&gt;=n&amp;&amp;e&lt;i)return d}return e},t.locateBreaks=function(e,r){var n,i,a,l,c=[];if(!t.rangebreaks)return c;var u=t.rangebreaks.slice().sort((function(t,e){return t.pattern===k&amp;&amp;e.pattern===T?-1:e.pattern===k&amp;&amp;t.pattern===T?1:0})),f=function(t,n){if((t=o.constrain(t,e,r))!==(n=o.constrain(n,e,r))){for(var i=!0,a=0;a&lt;c.length;a++){var s=c[a];t&lt;s.max&amp;&amp;n&gt;=s.min&amp;&amp;(t&lt;s.min&amp;&amp;(s.min=t),n&gt;s.max&amp;&amp;(s.max=n),i=!1)}i&amp;&amp;c.push({min:t,max:n})}};for(n=0;n&lt;u.length;n++){var h=u[n];if(h.enabled)if(h.bounds){var p=e,d=r;h.pattern&amp;&amp;(p=Math.floor(p)),a=(i=o.simpleMap(h.bounds,h.pattern?s:t.r2l))[0],l=i[1];var g,_,w=new Date(p);switch(h.pattern){case k:_=m,g=(l-a+(l&lt;a?7:0))*v,p+=a*v-(w.getUTCDay()*v+w.getUTCHours()*y+w.getUTCMinutes()*x+w.getUTCSeconds()*b+w.getUTCMilliseconds());break;case T:_=v,g=(l-a+(l&lt;a?24:0))*y,p+=a*y-(w.getUTCHours()*y+w.getUTCMinutes()*x+w.getUTCSeconds()*b+w.getUTCMilliseconds());break;default:p=Math.min(i[0],i[1]),g=_=(d=Math.max(i[0],i[1]))-p}for(var M=p;M&lt;d;M+=_)f(M,M+g)}else for(var A=o.simpleMap(h.values,t.d2c),S=0;S&lt;A.length;S++)f(a=A[S],l=a+h.dvalue)}return c.sort((function(t,e){return t.min-e.min})),c},t.makeCalcdata=function(e,r,n){var i,a,s,l,c=t.type,u=&quot;date&quot;===c&amp;&amp;e[r+&quot;calendar&quot;];if(r in e){if(i=e[r],l=e._length||o.minRowLength(i),o.isTypedArray(i)&amp;&amp;(&quot;linear&quot;===c||&quot;log&quot;===c)){if(l===i.length)return i;if(i.subarray)return i.subarray(0,l)}if(&quot;multicategory&quot;===c)return function(t,e){for(var r=new Array(e),n=0;n&lt;e;n++){var i=(t[0]||[])[n],a=(t[1]||[])[n];r[n]=P([i,a])}return r}(i,l);for(a=new Array(l),s=0;s&lt;l;s++)a[s]=t.d2c(i[s],0,u,n)}else{var f=r+&quot;0&quot;in e?t.d2c(e[r+&quot;0&quot;],0,u):0,h=e[&quot;d&quot;+r]?Number(e[&quot;d&quot;+r]):1;for(i=e[{x:&quot;y&quot;,y:&quot;x&quot;}[r]],l=e._length||i.length,a=new Array(l),s=0;s&lt;l;s++)a[s]=f+s*h}if(t.rangebreaks)for(s=0;s&lt;l;s++)a[s]=t.maskBreaks(a[s]);return a},t.isValidRange=function(e){return Array.isArray(e)&amp;&amp;2===e.length&amp;&amp;a(t.r2l(e[0]))&amp;&amp;a(t.r2l(e[1]))},t.isPtWithinRange=function(e,r){var n=t.c2l(e[h],null,r),i=t.r2l(t.range[0]),a=t.r2l(t.range[1]);return i&lt;a?i&lt;=n&amp;&amp;n&lt;=a:a&lt;=n&amp;&amp;n&lt;=i},t._emptyCategories=function(){t._categories=[],t._categoriesMap={}},t.clearCalc=function(){var r=t._matchGroup;if(r){var n=null,i=null;for(var a in r){var o=e[_.id2name(a)];if(o._categories){n=o._categories,i=o._categoriesMap;break}}n&amp;&amp;i?(t._categories=n,t._categoriesMap=i):t._emptyCategories()}else t._emptyCategories();if(t._initialCategories)for(var s=0;s&lt;t._initialCategories.length;s++)I(t._initialCategories[s])},t.sortByInitialCategories=function(){var n=[];if(t._emptyCategories(),t._initialCategories)for(var i=0;i&lt;t._initialCategories.length;i++)I(t._initialCategories[i]);n=n.concat(t._traceIndices);var a=t._matchGroup;for(var o in a)if(r!==o){var s=e[_.id2name(o)];s._categories=t._categories,s._categoriesMap=t._categoriesMap,n=n.concat(s._traceIndices)}return n};var j=e._d3locale;&quot;date&quot;===t.type&amp;&amp;(t._dateFormat=j?j.timeFormat:i,t._extraFormat=e._extraFormat),t._separators=e.separators,t._numFormat=j?j.numberFormat:n.format,delete t._minDtick,delete t._forceTick0}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,d3:169,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],849:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;).contrast,a=t(&quot;./layout_attributes&quot;),o=t(&quot;../array_container_defaults&quot;);function s(t){var e=[&quot;showexponent&quot;,&quot;showtickprefix&quot;,&quot;showticksuffix&quot;].filter((function(e){return void 0!==t[e]}));if(e.every((function(r){return t[r]===t[e[0]]}))||1===e.length)return t[e[0]]}function l(t,e){function r(r,i){return n.coerce(t,e,a.tickformatstops,r,i)}r(&quot;enabled&quot;)&amp;&amp;(r(&quot;dtickrange&quot;),r(&quot;value&quot;))}e.exports=function(t,e,r,c,u,f){f&amp;&amp;1!==f.pass||function(t,e,r,n,i){var a=s(t);r(&quot;tickprefix&quot;)&amp;&amp;r(&quot;showtickprefix&quot;,a);r(&quot;ticksuffix&quot;,i.tickSuffixDflt)&amp;&amp;r(&quot;showticksuffix&quot;,a)}(t,0,r,0,u),f&amp;&amp;2!==f.pass||function(t,e,r,c,u){var f=s(t);r(&quot;tickprefix&quot;)&amp;&amp;r(&quot;showtickprefix&quot;,f);r(&quot;ticksuffix&quot;,u.tickSuffixDflt)&amp;&amp;r(&quot;showticksuffix&quot;,f);if(r(&quot;showticklabels&quot;)){var h=u.font||{},p=e.color,d=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)?i(u.bgColor):p&amp;&amp;p!==a.color.dflt?p:h.color;if(n.coerceFont(r,&quot;tickfont&quot;,{family:h.family,size:h.size,color:d}),r(&quot;tickangle&quot;),&quot;category&quot;!==c){var g=r(&quot;tickformat&quot;);o(t,e,{name:&quot;tickformatstops&quot;,inclusionAttr:&quot;enabled&quot;,handleItemDefaults:l}),e.tickformatstops.length||delete e.tickformatstops,g||&quot;date&quot;===c||(r(&quot;showexponent&quot;,f),r(&quot;exponentformat&quot;),r(&quot;minexponent&quot;),r(&quot;separatethousands&quot;))}}}(t,e,r,c,u)}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../array_container_defaults&quot;:823,&quot;./layout_attributes&quot;:842}],850:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r,a){var o=n.coerce2(t,e,i,&quot;ticklen&quot;),s=n.coerce2(t,e,i,&quot;tickwidth&quot;),l=n.coerce2(t,e,i,&quot;tickcolor&quot;,e.color);r(&quot;ticks&quot;,a.outerTicks||o||s||l?&quot;outside&quot;:&quot;&quot;)||(delete e.ticklen,delete e.tickwidth,delete e.tickcolor)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:842}],851:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./clean_ticks&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a){function o(r){var n=t[r];return void 0!==n?n:(e._template||{})[r]}var s=o(&quot;tick0&quot;),l=o(&quot;dtick&quot;),c=o(&quot;tickvals&quot;),u=r(&quot;tickmode&quot;,i(c)?&quot;array&quot;:l?&quot;linear&quot;:&quot;auto&quot;);if(&quot;auto&quot;===u)r(&quot;nticks&quot;);else if(&quot;linear&quot;===u){var f=e.dtick=n.dtick(l,a);e.tick0=n.tick0(s,a,e.calendar,f)}else if(&quot;multicategory&quot;!==a){void 0===r(&quot;tickvals&quot;)?e.tickmode=&quot;auto&quot;:r(&quot;ticktext&quot;)}}},{&quot;../../lib&quot;:778,&quot;./clean_ticks&quot;:833}],852:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;./axes&quot;);e.exports=function(t,e,r,l){var c=t._fullLayout;if(0!==e.length){var u,f,h,p;l&amp;&amp;(u=l());var d=n.ease(r.easing);return t._transitionData._interruptCallbacks.push((function(){return window.cancelAnimationFrame(p),p=null,function(){for(var r={},n=0;n&lt;e.length;n++){var a=e[n],o=a.plotinfo.xaxis,s=a.plotinfo.yaxis;a.xr0&amp;&amp;(r[o._name+&quot;.range&quot;]=a.xr0.slice()),a.yr0&amp;&amp;(r[s._name+&quot;.range&quot;]=a.yr0.slice())}return i.call(&quot;relayout&quot;,t,r).then((function(){for(var t=0;t&lt;e.length;t++)g(e[t].plotinfo)}))}()})),f=Date.now(),p=window.requestAnimationFrame((function n(){h=Date.now();for(var a=Math.min(1,(h-f)/r.duration),o=d(a),s=0;s&lt;e.length;s++)m(e[s],o);h-f&gt;r.duration?(!function(){for(var r={},n=0;n&lt;e.length;n++){var a=e[n],o=a.plotinfo.xaxis,s=a.plotinfo.yaxis;a.xr1&amp;&amp;(r[o._name+&quot;.range&quot;]=a.xr1.slice()),a.yr1&amp;&amp;(r[s._name+&quot;.range&quot;]=a.yr1.slice())}u&amp;&amp;u(),i.call(&quot;relayout&quot;,t,r).then((function(){for(var t=0;t&lt;e.length;t++)g(e[t].plotinfo)}))}(),p=window.cancelAnimationFrame(n)):p=window.requestAnimationFrame(n)})),Promise.resolve()}function g(t){var e=t.xaxis,r=t.yaxis;c._defs.select(&quot;#&quot;+t.clipId+&quot;&gt; rect&quot;).call(o.setTranslate,0,0).call(o.setScale,1,1),t.plot.call(o.setTranslate,e._offset,r._offset).call(o.setScale,1,1);var n=t.plot.selectAll(&quot;.scatterlayer .trace&quot;);n.selectAll(&quot;.point&quot;).call(o.setPointGroupScale,1,1),n.selectAll(&quot;.textpoint&quot;).call(o.setTextPointsScale,1,1),n.call(o.hideOutsideRangePoints,t)}function m(e,r){var n=e.plotinfo,i=n.xaxis,l=n.yaxis,c=i._length,u=l._length,f=!!e.xr1,h=!!e.yr1,p=[];if(f){var d=a.simpleMap(e.xr0,i.r2l),g=a.simpleMap(e.xr1,i.r2l),m=d[1]-d[0],v=g[1]-g[0];p[0]=(d[0]*(1-r)+r*g[0]-d[0])/(d[1]-d[0])*c,p[2]=c*(1-r+r*v/m),i.range[0]=i.l2r(d[0]*(1-r)+r*g[0]),i.range[1]=i.l2r(d[1]*(1-r)+r*g[1])}else p[0]=0,p[2]=c;if(h){var y=a.simpleMap(e.yr0,l.r2l),x=a.simpleMap(e.yr1,l.r2l),b=y[1]-y[0],_=x[1]-x[0];p[1]=(y[1]*(1-r)+r*x[1]-y[1])/(y[0]-y[1])*u,p[3]=u*(1-r+r*_/b),l.range[0]=i.l2r(y[0]*(1-r)+r*x[0]),l.range[1]=l.l2r(y[1]*(1-r)+r*x[1])}else p[1]=0,p[3]=u;s.drawOne(t,i,{skipTitle:!0}),s.drawOne(t,l,{skipTitle:!0}),s.redrawComponents(t,[i._id,l._id]);var w=f?c/p[2]:1,T=h?u/p[3]:1,k=f?p[0]:0,M=h?p[1]:0,A=f?p[0]/p[2]*c:0,S=h?p[1]/p[3]*u:0,E=i._offset-A,C=l._offset-S;n.clipRect.call(o.setTranslate,k,M).call(o.setScale,1/w,1/T),n.plot.call(o.setTranslate,E,C).call(o.setScale,w,T),o.setPointGroupScale(n.zoomScalePts,1/w,1/T),o.setTextPointsScale(n.zoomScaleTxt,1/w,1/T)}s.redrawComponents(t)}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./axes&quot;:828,d3:169}],853:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;).traceIs,i=t(&quot;./axis_autotype&quot;);function a(t){return{v:&quot;x&quot;,h:&quot;y&quot;}[t.orientation||&quot;v&quot;]}function o(t,e){var r=a(t),i=n(t,&quot;box-violin&quot;),o=n(t._fullInput||{},&quot;candlestick&quot;);return i&amp;&amp;!o&amp;&amp;e===r&amp;&amp;void 0===t[r]&amp;&amp;void 0===t[r+&quot;0&quot;]}e.exports=function(t,e,r,s){r(&quot;autotypenumbers&quot;,s.autotypenumbersDflt),&quot;-&quot;===r(&quot;type&quot;,(s.splomStash||{}).type)&amp;&amp;(!function(t,e){if(&quot;-&quot;!==t.type)return;var r,s=t._id,l=s.charAt(0);-1!==s.indexOf(&quot;scene&quot;)&amp;&amp;(s=l);var c=function(t,e,r){for(var n=0;n&lt;t.length;n++){var i=t[n];if(&quot;splom&quot;===i.type&amp;&amp;i._length&gt;0&amp;&amp;(i[&quot;_&quot;+r+&quot;axes&quot;]||{})[e])return i;if((i[r+&quot;axis&quot;]||r)===e){if(o(i,r))return i;if((i[r]||[]).length||i[r+&quot;0&quot;])return i}}}(e,s,l);if(!c)return;if(&quot;histogram&quot;===c.type&amp;&amp;l==={v:&quot;y&quot;,h:&quot;x&quot;}[c.orientation||&quot;v&quot;])return void(t.type=&quot;linear&quot;);var u=l+&quot;calendar&quot;,f=c[u],h={noMultiCategory:!n(c,&quot;cartesian&quot;)||n(c,&quot;noMultiCategory&quot;)};&quot;box&quot;===c.type&amp;&amp;c._hasPreCompStats&amp;&amp;l==={h:&quot;x&quot;,v:&quot;y&quot;}[c.orientation||&quot;v&quot;]&amp;&amp;(h.noMultiCategory=!0);if(h.autotypenumbers=t.autotypenumbers,o(c,l)){var p=a(c),d=[];for(r=0;r&lt;e.length;r++){var g=e[r];n(g,&quot;box-violin&quot;)&amp;&amp;(g[l+&quot;axis&quot;]||l)===s&amp;&amp;(void 0!==g[p]?d.push(g[p][0]):void 0!==g.name?d.push(g.name):d.push(&quot;text&quot;),g[u]!==f&amp;&amp;(f=void 0))}t.type=i(d,f,h)}else if(&quot;splom&quot;===c.type){var m=c.dimensions[c._axesDim[s]];m.visible&amp;&amp;(t.type=i(m.values,f,h))}else t.type=i(c[l]||[c[l+&quot;0&quot;]],f,h)}(e,s.data),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:t.type=e.type)}},{&quot;../../registry&quot;:911,&quot;./axis_autotype&quot;:829}],854:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;);function a(t,e,r){var n,a,o,s=!1;if(&quot;data&quot;===e.type)n=t._fullData[null!==e.traces?e.traces[0]:0];else{if(&quot;layout&quot;!==e.type)return!1;n=t._fullLayout}return a=i.nestedProperty(n,e.prop).get(),(o=r[e.type]=r[e.type]||{}).hasOwnProperty(e.prop)&amp;&amp;o[e.prop]!==a&amp;&amp;(s=!0),o[e.prop]=a,{changed:s,value:a}}function o(t,e){var r=[],n=e[0],a={};if(&quot;string&quot;==typeof n)a[n]=e[1];else{if(!i.isPlainObject(n))return r;a=n}return l(a,(function(t,e,n){r.push({type:&quot;layout&quot;,prop:t,value:n})}),&quot;&quot;,0),r}function s(t,e){var r,n,a,o,s=[];if(n=e[0],a=e[1],r=e[2],o={},&quot;string&quot;==typeof n)o[n]=a;else{if(!i.isPlainObject(n))return s;o=n,void 0===r&amp;&amp;(r=a)}return void 0===r&amp;&amp;(r=null),l(o,(function(e,n,i){var a,o;if(Array.isArray(i)){o=i.slice();var l=Math.min(o.length,t.data.length);r&amp;&amp;(l=Math.min(l,r.length)),a=[];for(var c=0;c&lt;l;c++)a[c]=r?r[c]:c}else o=i,a=r?r.slice():null;if(null===a)Array.isArray(o)&amp;&amp;(o=o[0]);else if(Array.isArray(a)){if(!Array.isArray(o)){var u=o;o=[];for(var f=0;f&lt;a.length;f++)o[f]=u}o.length=Math.min(a.length,o.length)}s.push({type:&quot;data&quot;,prop:e,traces:a,value:o})}),&quot;&quot;,0),s}function l(t,e,r,n){Object.keys(t).forEach((function(a){var o=t[a];if(&quot;_&quot;!==a[0]){var s=r+(n&gt;0?&quot;.&quot;:&quot;&quot;)+a;i.isPlainObject(o)?l(o,e,s,n+1):e(s,a,o)}}))}r.manageCommandObserver=function(t,e,n,o){var s={},l=!0;e&amp;&amp;e._commandObserver&amp;&amp;(s=e._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var c=r.hasSimpleAPICommandBindings(t,n,s.lookupTable);if(e&amp;&amp;e._commandObserver){if(c)return s;if(e._commandObserver.remove)return e._commandObserver.remove(),e._commandObserver=null,s}if(c){a(t,c,s.cache),s.check=function(){if(l){var e=a(t,c,s.cache);return e.changed&amp;&amp;o&amp;&amp;void 0!==s.lookupTable[e.value]&amp;&amp;(s.disable(),Promise.resolve(o({value:e.value,type:c.type,prop:c.prop,traces:c.traces,index:s.lookupTable[e.value]})).then(s.enable,s.enable)),e.changed}};for(var u=[&quot;plotly_relayout&quot;,&quot;plotly_redraw&quot;,&quot;plotly_restyle&quot;,&quot;plotly_update&quot;,&quot;plotly_animatingframe&quot;,&quot;plotly_afterplot&quot;],f=0;f&lt;u.length;f++)t._internalOn(u[f],s.check);s.remove=function(){for(var e=0;e&lt;u.length;e++)t._removeInternalListener(u[e],s.check)}}else i.log(&quot;Unable to automatically bind plot updates to API command&quot;),s.lookupTable={},s.remove=function(){};return s.disable=function(){l=!1},s.enable=function(){l=!0},e&amp;&amp;(e._commandObserver=s),s},r.hasSimpleAPICommandBindings=function(t,e,n){var i,a,o=e.length;for(i=0;i&lt;o;i++){var s,l=e[i],c=l.method,u=l.args;if(Array.isArray(u)||(u=[]),!c)return!1;var f=r.computeAPICommandBindings(t,c,u);if(1!==f.length)return!1;if(a){if((s=f[0]).type!==a.type)return!1;if(s.prop!==a.prop)return!1;if(Array.isArray(a.traces)){if(!Array.isArray(s.traces))return!1;s.traces.sort();for(var h=0;h&lt;a.traces.length;h++)if(a.traces[h]!==s.traces[h])return!1}else if(s.prop!==a.prop)return!1}else a=f[0],Array.isArray(a.traces)&amp;&amp;a.traces.sort();var p=(s=f[0]).value;if(Array.isArray(p)){if(1!==p.length)return!1;p=p[0]}n&amp;&amp;(n[p]=i)}return a},r.executeAPICommand=function(t,e,r){if(&quot;skip&quot;===e)return Promise.resolve();var a=n.apiMethodRegistry[e],o=[t];Array.isArray(r)||(r=[]);for(var s=0;s&lt;r.length;s++)o.push(r[s]);return a.apply(null,o).catch((function(t){return i.warn(&quot;API call to Plotly.&quot;+e+&quot; rejected.&quot;,t),Promise.reject(t)}))},r.computeAPICommandBindings=function(t,e,r){var n;switch(Array.isArray(r)||(r=[]),e){case&quot;restyle&quot;:n=s(t,r);break;case&quot;relayout&quot;:n=o(t,r);break;case&quot;update&quot;:n=s(t,[r[0],r[2]]).concat(o(t,[r[1]]));break;case&quot;animate&quot;:n=function(t,e){return Array.isArray(e[0])&amp;&amp;1===e[0].length&amp;&amp;-1!==[&quot;string&quot;,&quot;number&quot;].indexOf(typeof e[0][0])?[{type:&quot;layout&quot;,prop:&quot;_currentFrame&quot;,value:e[0][0].toString()}]:[]}(0,r);break;default:n=[]}return n}},{&quot;../lib&quot;:778,&quot;../registry&quot;:911}],855:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/extend&quot;).extendFlat;r.attributes=function(t,e){e=e||{};var r={valType:&quot;info_array&quot;,editType:(t=t||{}).editType,items:[{valType:&quot;number&quot;,min:0,max:1,editType:t.editType},{valType:&quot;number&quot;,min:0,max:1,editType:t.editType}],dflt:[0,1]},i=(t.name&amp;&amp;t.name,t.trace,e.description&amp;&amp;e.description,{x:n({},r,{}),y:n({},r,{}),editType:t.editType});return t.noGridCell||(i.row={valType:&quot;integer&quot;,min:0,dflt:0,editType:t.editType},i.column={valType:&quot;integer&quot;,min:0,dflt:0,editType:t.editType}),i},r.defaults=function(t,e,r,n){var i=n&amp;&amp;n.x||[0,1],a=n&amp;&amp;n.y||[0,1],o=e.grid;if(o){var s=r(&quot;domain.column&quot;);void 0!==s&amp;&amp;(s&lt;o.columns?i=o._domains.x[s]:delete t.domain.column);var l=r(&quot;domain.row&quot;);void 0!==l&amp;&amp;(l&lt;o.rows?a=o._domains.y[l]:delete t.domain.row)}var c=r(&quot;domain.x&quot;,i),u=r(&quot;domain.y&quot;,a);c[0]&lt;c[1]||(t.domain.x=i.slice()),u[0]&lt;u[1]||(t.domain.y=a.slice())}},{&quot;../lib/extend&quot;:768}],856:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.editType,r=t.colorEditType;void 0===r&amp;&amp;(r=e);var n={family:{valType:&quot;string&quot;,noBlank:!0,strict:!0,editType:e},size:{valType:&quot;number&quot;,min:1,editType:e},color:{valType:&quot;color&quot;,editType:r},editType:e};return t.arrayOk&amp;&amp;(n.family.arrayOk=!0,n.size.arrayOk=!0,n.color.arrayOk=!0),n}},{}],857:[function(t,e,r){&quot;use strict&quot;;e.exports={_isLinkedToArray:&quot;frames_entry&quot;,group:{valType:&quot;string&quot;},name:{valType:&quot;string&quot;},traces:{valType:&quot;any&quot;},baseframe:{valType:&quot;string&quot;},data:{valType:&quot;any&quot;},layout:{valType:&quot;any&quot;}}},{}],858:[function(t,e,r){&quot;use strict&quot;;r.projNames={equirectangular:&quot;equirectangular&quot;,mercator:&quot;mercator&quot;,orthographic:&quot;orthographic&quot;,&quot;natural earth&quot;:&quot;naturalEarth&quot;,kavrayskiy7:&quot;kavrayskiy7&quot;,miller:&quot;miller&quot;,robinson:&quot;robinson&quot;,eckert4:&quot;eckert4&quot;,&quot;azimuthal equal area&quot;:&quot;azimuthalEqualArea&quot;,&quot;azimuthal equidistant&quot;:&quot;azimuthalEquidistant&quot;,&quot;conic equal area&quot;:&quot;conicEqualArea&quot;,&quot;conic conformal&quot;:&quot;conicConformal&quot;,&quot;conic equidistant&quot;:&quot;conicEquidistant&quot;,gnomonic:&quot;gnomonic&quot;,stereographic:&quot;stereographic&quot;,mollweide:&quot;mollweide&quot;,hammer:&quot;hammer&quot;,&quot;transverse mercator&quot;:&quot;transverseMercator&quot;,&quot;albers usa&quot;:&quot;albersUsa&quot;,&quot;winkel tripel&quot;:&quot;winkel3&quot;,aitoff:&quot;aitoff&quot;,sinusoidal:&quot;sinusoidal&quot;},r.axesNames=[&quot;lonaxis&quot;,&quot;lataxis&quot;],r.lonaxisSpan={orthographic:180,&quot;azimuthal equal area&quot;:360,&quot;azimuthal equidistant&quot;:360,&quot;conic conformal&quot;:180,gnomonic:160,stereographic:180,&quot;transverse mercator&quot;:180,&quot;*&quot;:360},r.lataxisSpan={&quot;conic conformal&quot;:150,stereographic:179.5,&quot;*&quot;:180},r.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:&quot;equirectangular&quot;,projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:&quot;albers usa&quot;},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:&quot;conic conformal&quot;,projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:&quot;mercator&quot;,projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:&quot;mercator&quot;,projRotate:[0,0,0]},&quot;north america&quot;:{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:&quot;conic conformal&quot;,projRotate:[-100,0,0],projParallels:[29.5,45.5]},&quot;south america&quot;:{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:&quot;mercator&quot;,projRotate:[0,0,0]}},r.clipPad=.001,r.precision=.1,r.landColor=&quot;#F0DC82&quot;,r.waterColor=&quot;#3399FF&quot;,r.locationmodeToLayer={&quot;ISO-3&quot;:&quot;countries&quot;,&quot;USA-states&quot;:&quot;subunits&quot;,&quot;country names&quot;:&quot;countries&quot;},r.sphereSVG={type:&quot;Sphere&quot;},r.fillLayers={ocean:1,land:1,lakes:1},r.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},r.layers=[&quot;bg&quot;,&quot;ocean&quot;,&quot;land&quot;,&quot;lakes&quot;,&quot;subunits&quot;,&quot;countries&quot;,&quot;coastlines&quot;,&quot;rivers&quot;,&quot;lataxis&quot;,&quot;lonaxis&quot;,&quot;frame&quot;,&quot;backplot&quot;,&quot;frontplot&quot;],r.layersForChoropleth=[&quot;bg&quot;,&quot;ocean&quot;,&quot;land&quot;,&quot;subunits&quot;,&quot;countries&quot;,&quot;coastlines&quot;,&quot;lataxis&quot;,&quot;lonaxis&quot;,&quot;frame&quot;,&quot;backplot&quot;,&quot;rivers&quot;,&quot;lakes&quot;,&quot;frontplot&quot;],r.layerNameToAdjective={ocean:&quot;ocean&quot;,land:&quot;land&quot;,lakes:&quot;lake&quot;,subunits:&quot;subunit&quot;,countries:&quot;country&quot;,coastlines:&quot;coastline&quot;,rivers:&quot;river&quot;,frame:&quot;frame&quot;}},{}],859:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.strTranslate,s=t(&quot;../../components/color&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../components/fx&quot;),u=t(&quot;../plots&quot;),f=t(&quot;../cartesian/axes&quot;),h=t(&quot;../cartesian/autorange&quot;).getAutoRange,p=t(&quot;../../components/dragelement&quot;),d=t(&quot;../cartesian/select&quot;).prepSelect,g=t(&quot;../cartesian/select&quot;).clearSelect,m=t(&quot;../cartesian/select&quot;).selectOnClick,v=t(&quot;./zoom&quot;),y=t(&quot;./constants&quot;),x=t(&quot;../../lib/geo_location_utils&quot;),b=t(&quot;../../lib/topojson_utils&quot;),_=t(&quot;topojson-client&quot;).feature;function w(t){this.id=t.id,this.graphDiv=t.graphDiv,this.container=t.container,this.topojsonURL=t.topojsonURL,this.isStatic=t.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}t(&quot;./projections&quot;)(n);var T=w.prototype;function k(t,e){var r=y.clipPad,n=t[0]+r,i=t[1]-r,a=e[0]+r,o=e[1]-r;n&gt;0&amp;&amp;i&lt;0&amp;&amp;(i+=360);var s=(i-n)/4;return{type:&quot;Polygon&quot;,coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}e.exports=function(t){return new w(t)},T.plot=function(t,e,r){var n=this,i=e[this.id],a=[],o=!1;for(var s in y.layerNameToAdjective)if(&quot;frame&quot;!==s&amp;&amp;i[&quot;show&quot;+s]){o=!0;break}for(var l=0;l&lt;t.length;l++)if(t[0][0].trace.locationmode){o=!0;break}if(o){var c=b.getTopojsonName(i);null!==n.topojson&amp;&amp;c===n.topojsonName||(n.topojsonName=c,void 0===PlotlyGeoAssets.topojson[n.topojsonName]&amp;&amp;a.push(n.fetchTopojson()))}a=a.concat(x.fetchTraceGeoData(t)),r.push(new Promise((function(r,i){Promise.all(a).then((function(){n.topojson=PlotlyGeoAssets.topojson[n.topojsonName],n.update(t,e),r()})).catch(i)})))},T.fetchTopojson=function(){var t=this,e=b.getTopojsonPath(t.topojsonURL,t.topojsonName);return new Promise((function(r,i){n.json(e,(function(n,a){if(n)return 404===n.status?i(new Error([&quot;plotly.js could not find topojson file at&quot;,e,&quot;.&quot;,&quot;Make sure the *topojsonURL* plot config option&quot;,&quot;is set properly.&quot;].join(&quot; &quot;))):i(new Error([&quot;unexpected error while fetching topojson file at&quot;,e].join(&quot; &quot;)));PlotlyGeoAssets.topojson[t.topojsonName]=a,r()}))}))},T.update=function(t,e){var r=e[this.id];this.hasChoropleth=!1;for(var n=0;n&lt;t.length;n++){var i=t[n],a=i[0].trace;&quot;choropleth&quot;===a.type&amp;&amp;(this.hasChoropleth=!0),!0===a.visible&amp;&amp;a._length&gt;0&amp;&amp;a._module.calcGeoJSON(i,e)}if(!this.updateProjection(t,e)){this.viewInitial&amp;&amp;this.scope===r.scope||this.saveViewInitial(r),this.scope=r.scope,this.updateBaseLayers(e,r),this.updateDims(e,r),this.updateFx(e,r),u.generalUpdatePerTraceModule(this.graphDiv,this,t,r);var o=this.layers.frontplot.select(&quot;.scatterlayer&quot;);this.dataPoints.point=o.selectAll(&quot;.point&quot;),this.dataPoints.text=o.selectAll(&quot;text&quot;),this.dataPaths.line=o.selectAll(&quot;.js-line&quot;);var s=this.layers.backplot.select(&quot;.choroplethlayer&quot;);this.dataPaths.choropleth=s.selectAll(&quot;path&quot;),this.render()}},T.updateProjection=function(t,e){var r=this.graphDiv,o=e[this.id],s=e._size,l=o.domain,c=o.projection,u=o.lonaxis,f=o.lataxis,p=u._ax,d=f._ax,g=this.projection=function(t){for(var e=t.projection.type,r=n.geo[y.projNames[e]](),i=t._isClipped?y.lonaxisSpan[e]/2:null,a=[&quot;center&quot;,&quot;rotate&quot;,&quot;parallels&quot;,&quot;clipExtent&quot;],o=function(t){return t?r:[]},s=0;s&lt;a.length;s++){var l=a[s];&quot;function&quot;!=typeof r[l]&amp;&amp;(r[l]=o)}r.isLonLatOverEdges=function(t){if(null===r(t))return!0;if(i){var e=r.rotate();return n.geo.distance(t,[-e[0],-e[1]])&gt;i*Math.PI/180}return!1},r.getPath=function(){return n.geo.path().projection(r)},r.getBounds=function(t){return r.getPath().bounds(t)},r.fitExtent=function(t,e){var n=t[1][0]-t[0][0],i=t[1][1]-t[0][1],a=r.clipExtent&amp;&amp;r.clipExtent();r.scale(150).translate([0,0]),a&amp;&amp;r.clipExtent(null);var o=r.getBounds(e),s=Math.min(n/(o[1][0]-o[0][0]),i/(o[1][1]-o[0][1])),l=+t[0][0]+(n-s*(o[1][0]+o[0][0]))/2,c=+t[0][1]+(i-s*(o[1][1]+o[0][1]))/2;return a&amp;&amp;r.clipExtent(a),r.scale(150*s).translate([l,c])},r.precision(y.precision),i&amp;&amp;r.clipAngle(i-y.clipPad);return r}(o),m=[[s.l+s.w*l.x[0],s.t+s.h*(1-l.y[1])],[s.l+s.w*l.x[1],s.t+s.h*(1-l.y[0])]],v=o.center||{},x=c.rotation||{},b=u.range||[],_=f.range||[];if(o.fitbounds){p._length=m[1][0]-m[0][0],d._length=m[1][1]-m[0][1],p.range=h(r,p),d.range=h(r,d);var w=(p.range[0]+p.range[1])/2,T=(d.range[0]+d.range[1])/2;if(o._isScoped)v={lon:w,lat:T};else if(o._isClipped){v={lon:w,lat:T},x={lon:w,lat:T,roll:x.roll};var M=c.type,A=y.lonaxisSpan[M]/2||180,S=y.lataxisSpan[M]/2||90;b=[w-A,w+A],_=[T-S,T+S]}else v={lon:w,lat:T},x={lon:w,lat:x.lat,roll:x.roll}}g.center([v.lon-x.lon,v.lat-x.lat]).rotate([-x.lon,-x.lat,x.roll]).parallels(c.parallels);var E=k(b,_);g.fitExtent(m,E);var C=this.bounds=g.getBounds(E),L=this.fitScale=g.scale(),I=g.translate();if(!isFinite(C[0][0])||!isFinite(C[0][1])||!isFinite(C[1][0])||!isFinite(C[1][1])||isNaN(I[0])||isNaN(I[0])){for(var P=[&quot;fitbounds&quot;,&quot;projection.rotation&quot;,&quot;center&quot;,&quot;lonaxis.range&quot;,&quot;lataxis.range&quot;],z=&quot;Invalid geo settings, relayout'ing to default view.&quot;,O={},D=0;D&lt;P.length;D++)O[this.id+&quot;.&quot;+P[D]]=null;return this.viewInitial=null,a.warn(z),r._promises.push(i.call(&quot;relayout&quot;,r,O)),z}if(o.fitbounds){var R=g.getBounds(k(p.range,d.range)),F=Math.min((C[1][0]-C[0][0])/(R[1][0]-R[0][0]),(C[1][1]-C[0][1])/(R[1][1]-R[0][1]));isFinite(F)?g.scale(F*L):a.warn(&quot;Something went wrong during&quot;+this.id+&quot;fitbounds computations.&quot;)}else g.scale(c.scale*L);var B=this.midPt=[(C[0][0]+C[1][0])/2,(C[0][1]+C[1][1])/2];if(g.translate([I[0]+(B[0]-I[0]),I[1]+(B[1]-I[1])]).clipExtent(C),o._isAlbersUsa){var N=g([v.lon,v.lat]),j=g.translate();g.translate([j[0]-(N[0]-j[0]),j[1]-(N[1]-j[1])])}},T.updateBaseLayers=function(t,e){var r=this,i=r.topojson,a=r.layers,o=r.basePaths;function c(t){return&quot;lonaxis&quot;===t||&quot;lataxis&quot;===t}function u(t){return Boolean(y.lineLayers[t])}function h(t){return Boolean(y.fillLayers[t])}var p=(this.hasChoropleth?y.layersForChoropleth:y.layers).filter((function(t){return u(t)||h(t)?e[&quot;show&quot;+t]:!c(t)||e[t].showgrid})),d=r.framework.selectAll(&quot;.layer&quot;).data(p,String);d.exit().each((function(t){delete a[t],delete o[t],n.select(this).remove()})),d.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;layer &quot;+t})).each((function(t){var e=a[t]=n.select(this);&quot;bg&quot;===t?r.bgRect=e.append(&quot;rect&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;):c(t)?o[t]=e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;):&quot;backplot&quot;===t?e.append(&quot;g&quot;).classed(&quot;choroplethlayer&quot;,!0):&quot;frontplot&quot;===t?e.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0):u(t)?o[t]=e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;).style(&quot;stroke-miterlimit&quot;,2):h(t)&amp;&amp;(o[t]=e.append(&quot;path&quot;).style(&quot;stroke&quot;,&quot;none&quot;))})),d.order(),d.each((function(r){var n=o[r],a=y.layerNameToAdjective[r];&quot;frame&quot;===r?n.datum(y.sphereSVG):u(r)||h(r)?n.datum(_(i,i.objects[r])):c(r)&amp;&amp;n.datum(function(t,e,r){var n,i,a,o=e[t],s=y.scopeDefaults[e.scope];&quot;lonaxis&quot;===t?(n=s.lonaxisRange,i=s.lataxisRange,a=function(t,e){return[t,e]}):&quot;lataxis&quot;===t&amp;&amp;(n=s.lataxisRange,i=s.lonaxisRange,a=function(t,e){return[e,t]});var l={type:&quot;linear&quot;,range:[n[0],n[1]-1e-6],tick0:o.tick0,dtick:o.dtick};f.setConvert(l,r);var c=f.calcTicks(l);e.isScoped||&quot;lonaxis&quot;!==t||c.pop();for(var u=c.length,h=new Array(u),p=0;p&lt;u;p++)for(var d=c[p].x,g=h[p]=[],m=i[0];m&lt;i[1]+2.5;m+=2.5)g.push(a(d,m));return{type:&quot;MultiLineString&quot;,coordinates:h}}(r,e,t)).call(s.stroke,e[r].gridcolor).call(l.dashLine,&quot;&quot;,e[r].gridwidth),u(r)?n.call(s.stroke,e[a+&quot;color&quot;]).call(l.dashLine,&quot;&quot;,e[a+&quot;width&quot;]):h(r)&amp;&amp;n.call(s.fill,e[a+&quot;color&quot;])}))},T.updateDims=function(t,e){var r=this.bounds,n=(e.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,c=r[1][1]-a+n;l.setRect(this.clipRect,i,a,o,c),this.bgRect.call(l.setRect,i,a,o,c).call(s.fill,e.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=c},T.updateFx=function(t,e){var r=this,a=r.graphDiv,o=r.bgRect,s=t.dragmode,l=t.clickmode;if(!r.isStatic){var u;&quot;select&quot;===s?u=function(t,e){(t.range={})[r.id]=[h([e.xmin,e.ymin]),h([e.xmax,e.ymax])]}:&quot;lasso&quot;===s&amp;&amp;(u=function(t,e,n){(t.lassoPoints={})[r.id]=n.filtered.map(h)});var f={element:r.bgRect.node(),gd:a,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(t){2===t&amp;&amp;g(a)}};&quot;pan&quot;===s?(o.node().onmousedown=null,o.call(v(r,e)),o.on(&quot;dblclick.zoom&quot;,(function(){var t=r.viewInitial,e={};for(var n in t)e[r.id+&quot;.&quot;+n]=t[n];i.call(&quot;_guiRelayout&quot;,a,e),a.emit(&quot;plotly_doubleclick&quot;,null)})),a._context._scrollZoom.geo||o.on(&quot;wheel.zoom&quot;,null)):&quot;select&quot;!==s&amp;&amp;&quot;lasso&quot;!==s||(o.on(&quot;.zoom&quot;,null),f.prepFn=function(t,e,r){d(t,e,r,f,s)},p.init(f)),o.on(&quot;mousemove&quot;,(function(){var t=r.projection.invert(n.mouse(this));if(!t||isNaN(t[0])||isNaN(t[1]))return p.unhover(a,n.event);r.xaxis.p2c=function(){return t[0]},r.yaxis.p2c=function(){return t[1]},c.hover(a,n.event,r.id)})),o.on(&quot;mouseout&quot;,(function(){a._dragging||p.unhover(a,n.event)})),o.on(&quot;click&quot;,(function(){&quot;select&quot;!==s&amp;&amp;&quot;lasso&quot;!==s&amp;&amp;(l.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;m(n.event,a,[r.xaxis],[r.yaxis],r.id,f),l.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;c.click(a,n.event))}))}function h(t){return r.projection.invert([t[0]+r.xaxis._offset,t[1]+r.yaxis._offset])}},T.makeFramework=function(){var t=this,e=t.graphDiv,r=e._fullLayout,i=&quot;clip&quot;+r._uid+t.id;t.clipDef=r._clips.append(&quot;clipPath&quot;).attr(&quot;id&quot;,i),t.clipRect=t.clipDef.append(&quot;rect&quot;),t.framework=n.select(t.container).append(&quot;g&quot;).attr(&quot;class&quot;,&quot;geo &quot;+t.id).call(l.setClipUrl,i,e),t.project=function(e){var r=t.projection(e);return r?[r[0]-t.xaxis._offset,r[1]-t.yaxis._offset]:[null,null]},t.xaxis={_id:&quot;x&quot;,c2p:function(e){return t.project(e)[0]}},t.yaxis={_id:&quot;y&quot;,c2p:function(e){return t.project(e)[1]}},t.mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},f.setConvert(t.mockAxis,r)},T.saveViewInitial=function(t){var e,r=t.center||{},n=t.projection,i=n.rotation||{};this.viewInitial={fitbounds:t.fitbounds,&quot;projection.scale&quot;:n.scale},e=t._isScoped?{&quot;center.lon&quot;:r.lon,&quot;center.lat&quot;:r.lat}:t._isClipped?{&quot;projection.rotation.lon&quot;:i.lon,&quot;projection.rotation.lat&quot;:i.lat}:{&quot;center.lon&quot;:r.lon,&quot;center.lat&quot;:r.lat,&quot;projection.rotation.lon&quot;:i.lon},a.extendFlat(this.viewInitial,e)},T.render=function(){var t,e=this.projection,r=e.getPath();function n(t){var r=e(t.lonlat);return r?o(r[0],r[1]):null}function i(t){return e.isLonLatOverEdges(t.lonlat)?&quot;none&quot;:null}for(t in this.basePaths)this.basePaths[t].attr(&quot;d&quot;,r);for(t in this.dataPaths)this.dataPaths[t].attr(&quot;d&quot;,(function(t){return r(t.geojson)}));for(t in this.dataPoints)this.dataPoints[t].attr(&quot;display&quot;,i).attr(&quot;transform&quot;,n)}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/topojson_utils&quot;:806,&quot;../../registry&quot;:911,&quot;../cartesian/autorange&quot;:827,&quot;../cartesian/axes&quot;:828,&quot;../cartesian/select&quot;:847,&quot;../plots&quot;:891,&quot;./constants&quot;:858,&quot;./projections&quot;:863,&quot;./zoom&quot;:864,d3:169,&quot;topojson-client&quot;:579}],860:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,i=t(&quot;../../lib&quot;).counterRegex,a=t(&quot;./geo&quot;),o=&quot;geo&quot;,s=i(o),l={};l.geo={valType:&quot;subplotid&quot;,dflt:o,editType:&quot;calc&quot;},e.exports={attr:o,name:o,idRoot:o,idRegex:s,attrRegex:s,attributes:l,layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots.geo,s=0;s&lt;i.length;s++){var l=i[s],c=n(r,o,l),u=e[l]._subplot;u||(u=a({id:l,graphDiv:t,container:e._geolayer.node(),topojsonURL:t._context.topojsonURL,staticPlot:t._context.staticPlot}),e[l]._subplot=u),u.plot(c,e,t._promises)}},updateFx:function(t){for(var e=t._fullLayout,r=e._subplots.geo,n=0;n&lt;r.length;n++){var i=e[r[n]];i._subplot.updateFx(e,i)}},clean:function(t,e,r,n){for(var i=n._subplots.geo||[],a=0;a&lt;i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&amp;&amp;s&amp;&amp;(s.framework.remove(),s.clipDef.remove())}}}},{&quot;../../lib&quot;:778,&quot;../../plots/get_data&quot;:865,&quot;./geo&quot;:859,&quot;./layout_attributes&quot;:861,&quot;./layout_defaults&quot;:862}],861:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../domain&quot;).attributes,a=t(&quot;./constants&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s={range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},showgrid:{valType:&quot;boolean&quot;,dflt:!1},tick0:{valType:&quot;number&quot;,dflt:0},dtick:{valType:&quot;number&quot;},gridcolor:{valType:&quot;color&quot;,dflt:n.lightLine},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1}};(e.exports=o({domain:i({name:&quot;geo&quot;},{}),fitbounds:{valType:&quot;enumerated&quot;,values:[!1,&quot;locations&quot;,&quot;geojson&quot;],dflt:!1,editType:&quot;plot&quot;},resolution:{valType:&quot;enumerated&quot;,values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:&quot;enumerated&quot;,values:Object.keys(a.scopeDefaults),dflt:&quot;world&quot;},projection:{type:{valType:&quot;enumerated&quot;,values:Object.keys(a.projNames)},rotation:{lon:{valType:&quot;number&quot;},lat:{valType:&quot;number&quot;},roll:{valType:&quot;number&quot;}},parallels:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},scale:{valType:&quot;number&quot;,min:0,dflt:1}},center:{lon:{valType:&quot;number&quot;},lat:{valType:&quot;number&quot;}},visible:{valType:&quot;boolean&quot;,dflt:!0},showcoastlines:{valType:&quot;boolean&quot;},coastlinecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},coastlinewidth:{valType:&quot;number&quot;,min:0,dflt:1},showland:{valType:&quot;boolean&quot;,dflt:!1},landcolor:{valType:&quot;color&quot;,dflt:a.landColor},showocean:{valType:&quot;boolean&quot;,dflt:!1},oceancolor:{valType:&quot;color&quot;,dflt:a.waterColor},showlakes:{valType:&quot;boolean&quot;,dflt:!1},lakecolor:{valType:&quot;color&quot;,dflt:a.waterColor},showrivers:{valType:&quot;boolean&quot;,dflt:!1},rivercolor:{valType:&quot;color&quot;,dflt:a.waterColor},riverwidth:{valType:&quot;number&quot;,min:0,dflt:1},showcountries:{valType:&quot;boolean&quot;},countrycolor:{valType:&quot;color&quot;,dflt:n.defaultLine},countrywidth:{valType:&quot;number&quot;,min:0,dflt:1},showsubunits:{valType:&quot;boolean&quot;},subunitcolor:{valType:&quot;color&quot;,dflt:n.defaultLine},subunitwidth:{valType:&quot;number&quot;,min:0,dflt:1},showframe:{valType:&quot;boolean&quot;},framecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},framewidth:{valType:&quot;number&quot;,min:0,dflt:1},bgcolor:{valType:&quot;color&quot;,dflt:n.background},lonaxis:s,lataxis:s},&quot;plot&quot;,&quot;from-root&quot;)).uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../plot_api/edit_types&quot;:810,&quot;../domain&quot;:855,&quot;./constants&quot;:858}],862:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../subplot_defaults&quot;),a=t(&quot;../get_data&quot;).getSubplotData,o=t(&quot;./constants&quot;),s=t(&quot;./layout_attributes&quot;),l=o.axesNames;function c(t,e,r,i){var s=a(i.fullData,&quot;geo&quot;,i.id).map((function(t){return t._expandedIndex})),c=r(&quot;resolution&quot;),u=r(&quot;scope&quot;),f=o.scopeDefaults[u],h=r(&quot;projection.type&quot;,f.projType),p=e._isAlbersUsa=&quot;albers usa&quot;===h;p&amp;&amp;(u=e.scope=&quot;usa&quot;);var d=e._isScoped=&quot;world&quot;!==u,g=e._isConic=-1!==h.indexOf(&quot;conic&quot;),m=e._isClipped=!!o.lonaxisSpan[h];if(!1===t.visible){var v=n.extendDeep({},e._template);v.showcoastlines=!1,v.showcountries=!1,v.showframe=!1,v.showlakes=!1,v.showland=!1,v.showocean=!1,v.showrivers=!1,v.showsubunits=!1,v.lonaxis&amp;&amp;(v.lonaxis.showgrid=!1),v.lataxis&amp;&amp;(v.lataxis.showgrid=!1),e._template=v}for(var y=r(&quot;visible&quot;),x=0;x&lt;l.length;x++){var b,_=l[x],w=[30,10][x];if(d)b=f[_+&quot;Range&quot;];else{var T=o[_+&quot;Span&quot;],k=(T[h]||T[&quot;*&quot;])/2,M=r(&quot;projection.rotation.&quot;+_.substr(0,3),f.projRotate[x]);b=[M-k,M+k]}var A=r(_+&quot;.range&quot;,b);r(_+&quot;.tick0&quot;),r(_+&quot;.dtick&quot;,w),r(_+&quot;.showgrid&quot;,!!y&amp;&amp;void 0)&amp;&amp;(r(_+&quot;.gridcolor&quot;),r(_+&quot;.gridwidth&quot;)),e[_]._ax={type:&quot;linear&quot;,_id:_.slice(0,3),_traceIndices:s,setScale:n.identity,c2l:n.identity,r2l:n.identity,autorange:!0,range:A.slice(),_m:1,_input:{}}}var S=e.lonaxis.range,E=e.lataxis.range,C=S[0],L=S[1];C&gt;0&amp;&amp;L&lt;0&amp;&amp;(L+=360);var I,P,z,O=(C+L)/2;if(!p){var D=d?f.projRotate:[O,0,0];I=r(&quot;projection.rotation.lon&quot;,D[0]),r(&quot;projection.rotation.lat&quot;,D[1]),r(&quot;projection.rotation.roll&quot;,D[2]),r(&quot;showcoastlines&quot;,!d&amp;&amp;y)&amp;&amp;(r(&quot;coastlinecolor&quot;),r(&quot;coastlinewidth&quot;)),r(&quot;showocean&quot;,!!y&amp;&amp;void 0)&amp;&amp;r(&quot;oceancolor&quot;)}(p?(P=-96.6,z=38.7):(P=d?O:I,z=(E[0]+E[1])/2),r(&quot;center.lon&quot;,P),r(&quot;center.lat&quot;,z),g)&amp;&amp;r(&quot;projection.parallels&quot;,f.projParallels||[0,60]);r(&quot;projection.scale&quot;),r(&quot;showland&quot;,!!y&amp;&amp;void 0)&amp;&amp;r(&quot;landcolor&quot;),r(&quot;showlakes&quot;,!!y&amp;&amp;void 0)&amp;&amp;r(&quot;lakecolor&quot;),r(&quot;showrivers&quot;,!!y&amp;&amp;void 0)&amp;&amp;(r(&quot;rivercolor&quot;),r(&quot;riverwidth&quot;)),r(&quot;showcountries&quot;,d&amp;&amp;&quot;usa&quot;!==u&amp;&amp;y)&amp;&amp;(r(&quot;countrycolor&quot;),r(&quot;countrywidth&quot;)),(&quot;usa&quot;===u||&quot;north america&quot;===u&amp;&amp;50===c)&amp;&amp;(r(&quot;showsubunits&quot;,y),r(&quot;subunitcolor&quot;),r(&quot;subunitwidth&quot;)),d||r(&quot;showframe&quot;,y)&amp;&amp;(r(&quot;framecolor&quot;),r(&quot;framewidth&quot;)),r(&quot;bgcolor&quot;),r(&quot;fitbounds&quot;)&amp;&amp;(delete e.projection.scale,d?(delete e.center.lon,delete e.center.lat):m?(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon,delete e.projection.rotation.lat,delete e.lonaxis.range,delete e.lataxis.range):(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon))}e.exports=function(t,e,r){i(t,e,r,{type:&quot;geo&quot;,attributes:s,handleDefaults:c,fullData:r,partition:&quot;y&quot;})}},{&quot;../../lib&quot;:778,&quot;../get_data&quot;:865,&quot;../subplot_defaults&quot;:905,&quot;./constants&quot;:858,&quot;./layout_attributes&quot;:861}],863:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){function e(t,e){return{type:&quot;Feature&quot;,id:t.id,properties:t.properties,geometry:r(t.geometry,e)}}function r(e,n){if(!e)return null;if(&quot;GeometryCollection&quot;===e.type)return{type:&quot;GeometryCollection&quot;,geometries:object.geometries.map((function(t){return r(t,n)}))};if(!c.hasOwnProperty(e.type))return null;var i=c[e.type];return t.geo.stream(e,n(i)),i.result()}t.geo.project=function(t,e){var i=e.stream;if(!i)throw new Error(&quot;not yet supported&quot;);return(t&amp;&amp;n.hasOwnProperty(t.type)?n[t.type]:r)(t,i)};var n={Feature:e,FeatureCollection:function(t,r){return{type:&quot;FeatureCollection&quot;,features:t.features.map((function(t){return e(t,r)}))}}},i=[],a=[],o={point:function(t,e){i.push([t,e])},result:function(){var t=i.length?i.length&lt;2?{type:&quot;Point&quot;,coordinates:i[0]}:{type:&quot;MultiPoint&quot;,coordinates:i}:null;return i=[],t}},s={lineStart:u,point:function(t,e){i.push([t,e])},lineEnd:function(){i.length&amp;&amp;(a.push(i),i=[])},result:function(){var t=a.length?a.length&lt;2?{type:&quot;LineString&quot;,coordinates:a[0]}:{type:&quot;MultiLineString&quot;,coordinates:a}:null;return a=[],t}},l={polygonStart:u,lineStart:u,point:function(t,e){i.push([t,e])},lineEnd:function(){var t=i.length;if(t){do{i.push(i[0].slice())}while(++t&lt;4);a.push(i),i=[]}},polygonEnd:u,result:function(){if(!a.length)return null;var t=[],e=[];return a.forEach((function(r){!function(t){if((e=t.length)&lt;4)return!1;var e,r=0,n=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];for(;++r&lt;e;)n+=t[r-1][1]*t[r][0]-t[r-1][0]*t[r][1];return n&lt;=0}(r)?e.push(r):t.push([r])})),e.forEach((function(e){var r=e[0];t.some((function(t){if(function(t,e){for(var r=e[0],n=e[1],i=!1,a=0,o=t.length,s=o-1;a&lt;o;s=a++){var l=t[a],c=l[0],u=l[1],f=t[s],h=f[0],p=f[1];u&gt;n^p&gt;n&amp;&amp;r&lt;(h-c)*(n-u)/(p-u)+c&amp;&amp;(i=!i)}return i}(t[0],r))return t.push(e),!0}))||t.push([e])})),a=[],t.length?t.length&gt;1?{type:&quot;MultiPolygon&quot;,coordinates:t}:{type:&quot;Polygon&quot;,coordinates:t[0]}:null}},c={Point:o,MultiPoint:o,LineString:s,MultiLineString:s,Polygon:l,MultiPolygon:l,Sphere:l};function u(){}var f=1e-6,h=Math.PI,p=h/2,d=(Math.sqrt(h),h/180),g=180/h;function m(t){return t&gt;1?p:t&lt;-1?-p:Math.asin(t)}function v(t){return t&gt;1?0:t&lt;-1?h:Math.acos(t)}var y=t.geo.projection,x=t.geo.projectionMutator;function b(t,e){var r=(2+p)*Math.sin(e);e/=2;for(var n=0,i=1/0;n&lt;10&amp;&amp;Math.abs(i)&gt;f;n++){var a=Math.cos(e);e-=i=(e+Math.sin(e)*(a+2)-r)/(2*a*(1+a))}return[2/Math.sqrt(h*(4+h))*t*(1+Math.cos(e)),2*Math.sqrt(h/(4+h))*Math.sin(e)]}t.geo.interrupt=function(e){var r,n=[[[[-h,0],[0,p],[h,0]]],[[[-h,0],[0,-p],[h,0]]]];function i(t,r){for(var i=r&lt;0?-1:1,a=n[+(r&lt;0)],o=0,s=a.length-1;o&lt;s&amp;&amp;t&gt;a[o][2][0];++o);var l=e(t-a[o][1][0],r);return l[0]+=e(a[o][1][0],i*r&gt;i*a[o][0][1]?a[o][0][1]:r)[0],l}function a(){r=n.map((function(t){return t.map((function(t){var r,n=e(t[0][0],t[0][1])[0],i=e(t[2][0],t[2][1])[0],a=e(t[1][0],t[0][1])[1],o=e(t[1][0],t[1][1])[1];return a&gt;o&amp;&amp;(r=a,a=o,o=r),[[n,a],[i,o]]}))}))}e.invert&amp;&amp;(i.invert=function(t,a){for(var o=r[+(a&lt;0)],s=n[+(a&lt;0)],l=0,u=o.length;l&lt;u;++l){var f=o[l];if(f[0][0]&lt;=t&amp;&amp;t&lt;f[1][0]&amp;&amp;f[0][1]&lt;=a&amp;&amp;a&lt;f[1][1]){var h=e.invert(t-e(s[l][1][0],0)[0],a);return h[0]+=s[l][1][0],c(i(h[0],h[1]),[t,a])?h:null}}});var o=t.geo.projection(i),s=o.stream;function l(t,e){for(var r,n,i,a=-1,o=t.length,s=t[0],l=[];++a&lt;o;){n=((r=t[a])[0]-s[0])/e,i=(r[1]-s[1])/e;for(var c=0;c&lt;e;++c)l.push([s[0]+c*n,s[1]+c*i]);s=r}return l.push(r),l}function c(t,e){return Math.abs(t[0]-e[0])&lt;f&amp;&amp;Math.abs(t[1]-e[1])&lt;f}return o.stream=function(e){var r=o.rotate(),i=s(e),a=(o.rotate([0,0]),s(e));return o.rotate(r),i.sphere=function(){t.geo.stream(function(){for(var e=1e-6,r=[],i=0,a=n[0].length;i&lt;a;++i){var o=180*(p=n[0][i])[0][0]/h,s=180*p[0][1]/h,c=180*p[1][1]/h,u=180*p[2][0]/h,f=180*p[2][1]/h;r.push(l([[o+e,s+e],[o+e,c-e],[u-e,c-e],[u-e,f+e]],30))}for(i=n[1].length-1;i&gt;=0;--i){var p;o=180*(p=n[1][i])[0][0]/h,s=180*p[0][1]/h,c=180*p[1][1]/h,u=180*p[2][0]/h,f=180*p[2][1]/h;r.push(l([[u-e,f-e],[u-e,c+e],[o+e,c+e],[o+e,s-e]],30))}return{type:&quot;Polygon&quot;,coordinates:[t.merge(r)]}}(),a)},i},o.lobes=function(t){return arguments.length?(n=t.map((function(t){return t.map((function(t){return[[t[0][0]*h/180,t[0][1]*h/180],[t[1][0]*h/180,t[1][1]*h/180],[t[2][0]*h/180,t[2][1]*h/180]]}))})),a(),o):n.map((function(t){return t.map((function(t){return[[180*t[0][0]/h,180*t[0][1]/h],[180*t[1][0]/h,180*t[1][1]/h],[180*t[2][0]/h,180*t[2][1]/h]]}))}))},o},b.invert=function(t,e){var r=.5*e*Math.sqrt((4+h)/h),n=m(r),i=Math.cos(n);return[t/(2/Math.sqrt(h*(4+h))*(1+i)),m((n+r*(i+2))/(2+p))]},(t.geo.eckert4=function(){return y(b)}).raw=b;var _=t.geo.azimuthalEqualArea.raw;function w(t,e){if(arguments.length&lt;2&amp;&amp;(e=t),1===e)return _;if(e===1/0)return T;function r(r,n){var i=_(r/e,n);return i[0]*=t,i}return r.invert=function(r,n){var i=_.invert(r/t,n);return i[0]*=e,i},r}function T(t,e){return[t*Math.cos(e)/Math.cos(e/=2),2*Math.sin(e)]}function k(t,e){return[3*t/(2*h)*Math.sqrt(h*h/3-e*e),e]}function M(t,e){return[t,1.25*Math.log(Math.tan(h/4+.4*e))]}function A(t){return function(e){var r,n=t*Math.sin(e),i=30;do{e-=r=(e+Math.sin(e)-n)/(1+Math.cos(e))}while(Math.abs(r)&gt;f&amp;&amp;--i&gt;0);return e/2}}T.invert=function(t,e){var r=2*m(e/2);return[t*Math.cos(r/2)/Math.cos(r),r]},(t.geo.hammer=function(){var t=2,e=x(w),r=e(t);return r.coefficient=function(r){return arguments.length?e(t=+r):t},r}).raw=w,k.invert=function(t,e){return[2/3*h*t/Math.sqrt(h*h/3-e*e),e]},(t.geo.kavrayskiy7=function(){return y(k)}).raw=k,M.invert=function(t,e){return[t,2.5*Math.atan(Math.exp(.8*e))-.625*h]},(t.geo.miller=function(){return y(M)}).raw=M,A(h);var S=function(t,e,r){var n=A(r);function i(r,i){return[t*r*Math.cos(i=n(i)),e*Math.sin(i)]}return i.invert=function(n,i){var a=m(i/e);return[n/(t*Math.cos(a)),m((2*a+Math.sin(2*a))/r)]},i}(Math.SQRT2/p,Math.SQRT2,h);function E(t,e){var r=e*e,n=r*r;return[t*(.8707-.131979*r+n*(n*(.003971*r-.001529*n)-.013791)),e*(1.007226+r*(.015085+n*(.028874*r-.044475-.005916*n)))]}(t.geo.mollweide=function(){return y(S)}).raw=S,E.invert=function(t,e){var r,n=e,i=25;do{var a=n*n,o=a*a;n-=r=(n*(1.007226+a*(.015085+o*(.028874*a-.044475-.005916*o)))-e)/(1.007226+a*(.045255+o*(.259866*a-.311325-.005916*11*o)))}while(Math.abs(r)&gt;f&amp;&amp;--i&gt;0);return[t/(.8707+(a=n*n)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),n]},(t.geo.naturalEarth=function(){return y(E)}).raw=E;var C=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function L(t,e){var r,n=Math.min(18,36*Math.abs(e)/h),i=Math.floor(n),a=n-i,o=(r=C[i])[0],s=r[1],l=(r=C[++i])[0],c=r[1],u=(r=C[Math.min(19,++i)])[0],f=r[1];return[t*(l+a*(u-o)/2+a*a*(u-2*l+o)/2),(e&gt;0?p:-p)*(c+a*(f-s)/2+a*a*(f-2*c+s)/2)]}function I(t,e){return[t*Math.cos(e),e]}function P(t,e){var r,n=Math.cos(e),i=(r=v(n*Math.cos(t/=2)))?r/Math.sin(r):1;return[2*n*Math.sin(t)*i,Math.sin(e)*i]}function z(t,e){var r=P(t,e);return[(r[0]+t/p)/2,(r[1]+e)/2]}C.forEach((function(t){t[1]*=1.0144})),L.invert=function(t,e){var r=e/p,n=90*r,i=Math.min(18,Math.abs(n/5)),a=Math.max(0,Math.floor(i));do{var o=C[a][1],s=C[a+1][1],l=C[Math.min(19,a+2)][1],c=l-o,u=l-2*s+o,f=2*(Math.abs(r)-s)/c,h=u/c,m=f*(1-h*f*(1-2*h*f));if(m&gt;=0||1===a){n=(e&gt;=0?5:-5)*(m+i);var v,y=50;do{m=(i=Math.min(18,Math.abs(n)/5))-(a=Math.floor(i)),o=C[a][1],s=C[a+1][1],l=C[Math.min(19,a+2)][1],n-=(v=(e&gt;=0?p:-p)*(s+m*(l-o)/2+m*m*(l-2*s+o)/2)-e)*g}while(Math.abs(v)&gt;1e-12&amp;&amp;--y&gt;0);break}}while(--a&gt;=0);var x=C[a][0],b=C[a+1][0],_=C[Math.min(19,a+2)][0];return[t/(b+m*(_-x)/2+m*m*(_-2*b+x)/2),n*d]},(t.geo.robinson=function(){return y(L)}).raw=L,I.invert=function(t,e){return[t/Math.cos(e),e]},(t.geo.sinusoidal=function(){return y(I)}).raw=I,P.invert=function(t,e){if(!(t*t+4*e*e&gt;h*h+f)){var r=t,n=e,i=25;do{var a,o=Math.sin(r),s=Math.sin(r/2),l=Math.cos(r/2),c=Math.sin(n),u=Math.cos(n),p=Math.sin(2*n),d=c*c,g=u*u,m=s*s,y=1-g*l*l,x=y?v(u*l)*Math.sqrt(a=1/y):a=0,b=2*x*u*s-t,_=x*c-e,w=a*(g*m+x*u*l*d),T=a*(.5*o*p-2*x*c*s),k=.25*a*(p*s-x*c*g*o),M=a*(d*l+x*m*u),A=T*k-M*w;if(!A)break;var S=(_*T-b*M)/A,E=(b*k-_*w)/A;r-=S,n-=E}while((Math.abs(S)&gt;f||Math.abs(E)&gt;f)&amp;&amp;--i&gt;0);return[r,n]}},(t.geo.aitoff=function(){return y(P)}).raw=P,z.invert=function(t,e){var r=t,n=e,i=25;do{var a,o=Math.cos(n),s=Math.sin(n),l=Math.sin(2*n),c=s*s,u=o*o,h=Math.sin(r),d=Math.cos(r/2),g=Math.sin(r/2),m=g*g,y=1-u*d*d,x=y?v(o*d)*Math.sqrt(a=1/y):a=0,b=.5*(2*x*o*g+r/p)-t,_=.5*(x*s+n)-e,w=.5*a*(u*m+x*o*d*c)+.5/p,T=a*(h*l/4-x*s*g),k=.125*a*(l*g-x*s*u*h),M=.5*a*(c*d+x*m*o)+.5,A=T*k-M*w,S=(_*T-b*M)/A,E=(b*k-_*w)/A;r-=S,n-=E}while((Math.abs(S)&gt;f||Math.abs(E)&gt;f)&amp;&amp;--i&gt;0);return[r,n]},(t.geo.winkel3=function(){return y(z)}).raw=z}},{}],864:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;),o=Math.PI/180,s=180/Math.PI,l={cursor:&quot;pointer&quot;},c={cursor:&quot;auto&quot;};function u(t,e){return n.behavior.zoom().translate(e.translate()).scale(e.scale())}function f(t,e,r){var n=t.id,o=t.graphDiv,s=o.layout,l=s[n],c=o._fullLayout,u=c[n],f={},h={};function p(t,e){f[n+&quot;.&quot;+t]=i.nestedProperty(l,t).get(),a.call(&quot;_storeDirectGUIEdit&quot;,s,c._preGUI,f);var r=i.nestedProperty(u,t);r.get()!==e&amp;&amp;(r.set(e),i.nestedProperty(l,t).set(e),h[n+&quot;.&quot;+t]=e)}r(p),p(&quot;projection.scale&quot;,e.scale()/t.fitScale),p(&quot;fitbounds&quot;,!1),o.emit(&quot;plotly_relayout&quot;,h)}function h(t,e){var r=u(0,e);function i(r){var n=e.invert(t.midPt);r(&quot;center.lon&quot;,n[0]),r(&quot;center.lat&quot;,n[1])}return r.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l)})).on(&quot;zoom&quot;,(function(){e.scale(n.event.scale).translate(n.event.translate),t.render();var r=e.invert(t.midPt);t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.center.lon&quot;:r[0],&quot;geo.center.lat&quot;:r[1]})})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),f(t,e,i)})),r}function p(t,e){var r,i,a,o,s,h,p,d,g,m=u(0,e);function v(t){return e.invert(t)}function y(r){var n=e.rotate(),i=e.invert(t.midPt);r(&quot;projection.rotation.lon&quot;,-n[0]),r(&quot;center.lon&quot;,i[0]),r(&quot;center.lat&quot;,i[1])}return m.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l),r=n.mouse(this),i=e.rotate(),a=e.translate(),o=i,s=v(r)})).on(&quot;zoom&quot;,(function(){if(h=n.mouse(this),function(t){var r=v(t);if(!r)return!0;var n=e(r);return Math.abs(n[0]-t[0])&gt;2||Math.abs(n[1]-t[1])&gt;2}(r))return m.scale(e.scale()),void m.translate(e.translate());e.scale(n.event.scale),e.translate([a[0],n.event.translate[1]]),s?v(h)&amp;&amp;(d=v(h),p=[o[0]+(d[0]-s[0]),i[1],i[2]],e.rotate(p),o=p):s=v(r=h),g=!0,t.render();var l=e.rotate(),c=e.invert(t.midPt);t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.center.lon&quot;:c[0],&quot;geo.center.lat&quot;:c[1],&quot;geo.projection.rotation.lon&quot;:-l[0]})})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),g&amp;&amp;f(t,e,y)})),m}function d(t,e){var r,i={r:e.rotate(),k:e.scale()},a=u(0,e),o=function(t){var e=0,r=arguments.length,i=[];for(;++e&lt;r;)i.push(arguments[e]);var a=n.dispatch.apply(null,i);return a.of=function(e,r){return function(i){var o;try{o=i.sourceEvent=n.event,i.target=t,n.event=i,a[i.type].apply(e,r)}finally{n.event=o}}},a}(a,&quot;zoomstart&quot;,&quot;zoom&quot;,&quot;zoomend&quot;),s=0,h=a.on;function p(t){s++||t({type:&quot;zoomstart&quot;})}function d(t){t({type:&quot;zoom&quot;})}function b(t){--s||t({type:&quot;zoomend&quot;})}function _(t){var r=e.rotate();t(&quot;projection.rotation.lon&quot;,-r[0]),t(&quot;projection.rotation.lat&quot;,-r[1])}return a.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l);var t=n.mouse(this),s=e.rotate(),c=s,u=e.translate(),f=m(s);r=g(e,t),h.call(a,&quot;zoom&quot;,(function(){var a=n.mouse(this);if(e.scale(i.k=n.event.scale),r){if(g(e,a)){e.rotate(s).translate(u);var l=g(e,a),h=y(r,l),p=T(v(f,h)),m=i.r=x(p,r,c);isFinite(m[0])&amp;&amp;isFinite(m[1])&amp;&amp;isFinite(m[2])||(m=c),e.rotate(m),c=m}}else r=g(e,t=a);d(o.of(this,arguments))})),p(o.of(this,arguments))})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),h.call(a,&quot;zoom&quot;,null),b(o.of(this,arguments)),f(t,e,_)})).on(&quot;zoom.redraw&quot;,(function(){t.render();var r=e.rotate();t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.projection.rotation.lon&quot;:-r[0],&quot;geo.projection.rotation.lat&quot;:-r[1]})})),n.rebind(a,o,&quot;on&quot;)}function g(t,e){var r=t.invert(e);return r&amp;&amp;isFinite(r[0])&amp;&amp;isFinite(r[1])&amp;&amp;function(t){var e=t[0]*o,r=t[1]*o,n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}(r)}function m(t){var e=.5*t[0]*o,r=.5*t[1]*o,n=.5*t[2]*o,i=Math.sin(e),a=Math.cos(e),s=Math.sin(r),l=Math.cos(r),c=Math.sin(n),u=Math.cos(n);return[a*l*u+i*s*c,i*l*u-a*s*c,a*s*u+i*l*c,a*l*c-i*s*u]}function v(t,e){var r=t[0],n=t[1],i=t[2],a=t[3],o=e[0],s=e[1],l=e[2],c=e[3];return[r*o-n*s-i*l-a*c,r*s+n*o+i*c-a*l,r*l-n*c+i*o+a*s,r*c+n*l-i*s+a*o]}function y(t,e){if(t&amp;&amp;e){var r=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(t,e),n=Math.sqrt(k(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,k(t,e)))),a=Math.sin(i)/n;return n&amp;&amp;[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function x(t,e,r){var n=w(e,2,t[0]);n=w(n,1,t[1]),n=w(n,0,t[2]-r[2]);var i,a,o=e[0],l=e[1],c=e[2],u=n[0],f=n[1],h=n[2],p=Math.atan2(l,o)*s,d=Math.sqrt(o*o+l*l);Math.abs(f)&gt;d?(a=(f&gt;0?90:-90)-p,i=0):(a=Math.asin(f/d)*s-p,i=Math.sqrt(d*d-f*f));var g=180-a-2*p,m=(Math.atan2(h,u)-Math.atan2(c,i))*s,v=(Math.atan2(h,u)-Math.atan2(c,-i))*s;return b(r[0],r[1],a,m)&lt;=b(r[0],r[1],g,v)?[a,m,r[2]]:[g,v,r[2]]}function b(t,e,r,n){var i=_(r-t),a=_(n-e);return Math.sqrt(i*i+a*a)}function _(t){return(t%360+540)%360-180}function w(t,e,r){var n=r*o,i=t.slice(),a=0===e?1:0,s=2===e?1:2,l=Math.cos(n),c=Math.sin(n);return i[a]=t[a]*l-t[s]*c,i[s]=t[s]*l+t[a]*c,i}function T(t){return[Math.atan2(2*(t[0]*t[1]+t[2]*t[3]),1-2*(t[1]*t[1]+t[2]*t[2]))*s,Math.asin(Math.max(-1,Math.min(1,2*(t[0]*t[2]-t[3]*t[1]))))*s,Math.atan2(2*(t[0]*t[3]+t[1]*t[2]),1-2*(t[2]*t[2]+t[3]*t[3]))*s]}function k(t,e){for(var r=0,n=0,i=t.length;n&lt;i;++n)r+=t[n]*e[n];return r}e.exports=function(t,e){var r=t.projection;return(e._isScoped?h:e._isClipped?d:p)(t,r)}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,d3:169}],865:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;./cartesian/constants&quot;).SUBPLOT_PATTERN;r.getSubplotCalcData=function(t,e,r){var i=n.subplotsRegistry[e];if(!i)return[];for(var a=i.attr,o=[],s=0;s&lt;t.length;s++){var l=t[s];l[0].trace[a]===r&amp;&amp;o.push(l)}return o},r.getModuleCalcData=function(t,e){var r,i=[],a=[];if(!(r=&quot;string&quot;==typeof e?n.getModule(e).plot:&quot;function&quot;==typeof e?e:e.plot))return[i,t];for(var o=0;o&lt;t.length;o++){var s=t[o],l=s[0].trace;!0===l.visible&amp;&amp;0!==l._length&amp;&amp;(l._module.plot===r?i.push(s):a.push(s))}return[i,a]},r.getSubplotData=function(t,e,r){if(!n.subplotsRegistry[e])return[];var a,o,s,l=n.subplotsRegistry[e].attr,c=[];if(&quot;gl2d&quot;===e){var u=r.match(i);o=&quot;x&quot;+u[1],s=&quot;y&quot;+u[2]}for(var f=0;f&lt;t.length;f++)a=t[f],&quot;gl2d&quot;===e&amp;&amp;n.traceIs(a,&quot;gl2d&quot;)?a[l[0]]===o&amp;&amp;a[l[1]]===s&amp;&amp;c.push(a):a[l]===r&amp;&amp;c.push(a);return c}},{&quot;../registry&quot;:911,&quot;./cartesian/constants&quot;:834}],866:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mouse-change&quot;),i=t(&quot;mouse-wheel&quot;),a=t(&quot;mouse-event-offset&quot;),o=t(&quot;../cartesian/constants&quot;),s=t(&quot;has-passive-events&quot;);function l(t,e){this.element=t,this.plot=e,this.mouseListener=null,this.wheelListener=null,this.lastInputTime=Date.now(),this.lastPos=[0,0],this.boxEnabled=!1,this.boxInited=!1,this.boxStart=[0,0],this.boxEnd=[0,0],this.dragStart=[0,0]}e.exports=function(t){var e=t.mouseContainer,r=t.glplot,c=new l(e,r);function u(){t.xaxis.autorange=!1,t.yaxis.autorange=!1}function f(e,n,i){var a,s,l=t.calcDataBox(),f=r.viewBox,h=c.lastPos[0],p=c.lastPos[1],d=o.MINDRAG*r.pixelRatio,g=o.MINZOOM*r.pixelRatio;function m(e,r,n){var i=Math.min(r,n),a=Math.max(r,n);i!==a?(l[e]=i,l[e+2]=a,c.dataBox=l,t.setRanges(l)):(t.selectBox.selectBox=[0,0,1,1],t.glplot.setDirty())}switch(n*=r.pixelRatio,i*=r.pixelRatio,i=f[3]-f[1]-i,t.fullLayout.dragmode){case&quot;zoom&quot;:if(e){var v=n/(f[2]-f[0])*(l[2]-l[0])+l[0],y=i/(f[3]-f[1])*(l[3]-l[1])+l[1];c.boxInited||(c.boxStart[0]=v,c.boxStart[1]=y,c.dragStart[0]=n,c.dragStart[1]=i),c.boxEnd[0]=v,c.boxEnd[1]=y,c.boxInited=!0,c.boxEnabled||c.boxStart[0]===c.boxEnd[0]&amp;&amp;c.boxStart[1]===c.boxEnd[1]||(c.boxEnabled=!0);var x=Math.abs(c.dragStart[0]-n)&lt;g,b=Math.abs(c.dragStart[1]-i)&lt;g;if(!function(){for(var e=t.graphDiv._fullLayout._axisConstraintGroups,r=t.xaxis._id,n=t.yaxis._id,i=0;i&lt;e.length;i++)if(-1!==e[i][r]){if(-1!==e[i][n])return!0;break}return!1}()||x&amp;&amp;b)x&amp;&amp;(c.boxEnd[0]=c.boxStart[0]),b&amp;&amp;(c.boxEnd[1]=c.boxStart[1]);else{a=c.boxEnd[0]-c.boxStart[0],s=c.boxEnd[1]-c.boxStart[1];var _=(l[3]-l[1])/(l[2]-l[0]);Math.abs(a*_)&gt;Math.abs(s)?(c.boxEnd[1]=c.boxStart[1]+Math.abs(a)*_*(s&gt;=0?1:-1),c.boxEnd[1]&lt;l[1]?(c.boxEnd[1]=l[1],c.boxEnd[0]=c.boxStart[0]+(l[1]-c.boxStart[1])/Math.abs(_)):c.boxEnd[1]&gt;l[3]&amp;&amp;(c.boxEnd[1]=l[3],c.boxEnd[0]=c.boxStart[0]+(l[3]-c.boxStart[1])/Math.abs(_))):(c.boxEnd[0]=c.boxStart[0]+Math.abs(s)/_*(a&gt;=0?1:-1),c.boxEnd[0]&lt;l[0]?(c.boxEnd[0]=l[0],c.boxEnd[1]=c.boxStart[1]+(l[0]-c.boxStart[0])*Math.abs(_)):c.boxEnd[0]&gt;l[2]&amp;&amp;(c.boxEnd[0]=l[2],c.boxEnd[1]=c.boxStart[1]+(l[2]-c.boxStart[0])*Math.abs(_)))}}else c.boxEnabled?(a=c.boxStart[0]!==c.boxEnd[0],s=c.boxStart[1]!==c.boxEnd[1],a||s?(a&amp;&amp;(m(0,c.boxStart[0],c.boxEnd[0]),t.xaxis.autorange=!1),s&amp;&amp;(m(1,c.boxStart[1],c.boxEnd[1]),t.yaxis.autorange=!1),t.relayoutCallback()):t.glplot.setDirty(),c.boxEnabled=!1,c.boxInited=!1):c.boxInited&amp;&amp;(c.boxInited=!1);break;case&quot;pan&quot;:c.boxEnabled=!1,c.boxInited=!1,e?(c.panning||(c.dragStart[0]=n,c.dragStart[1]=i),Math.abs(c.dragStart[0]-n)&lt;d&amp;&amp;(n=c.dragStart[0]),Math.abs(c.dragStart[1]-i)&lt;d&amp;&amp;(i=c.dragStart[1]),a=(h-n)*(l[2]-l[0])/(r.viewBox[2]-r.viewBox[0]),s=(p-i)*(l[3]-l[1])/(r.viewBox[3]-r.viewBox[1]),l[0]+=a,l[2]+=a,l[1]+=s,l[3]+=s,t.setRanges(l),c.panning=!0,c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations()):c.panning&amp;&amp;(c.panning=!1,t.relayoutCallback())}c.lastPos[0]=n,c.lastPos[1]=i}return c.mouseListener=n(e,f),e.addEventListener(&quot;touchstart&quot;,(function(t){var r=a(t.changedTouches[0],e);f(0,r[0],r[1]),f(1,r[0],r[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),e.addEventListener(&quot;touchmove&quot;,(function(t){t.preventDefault();var r=a(t.changedTouches[0],e);f(1,r[0],r[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),e.addEventListener(&quot;touchend&quot;,(function(t){f(0,c.lastPos[0],c.lastPos[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),c.wheelListener=i(e,(function(e,n){if(!t.scrollZoom)return!1;var i=t.calcDataBox(),a=r.viewBox,o=c.lastPos[0],s=c.lastPos[1],l=Math.exp(5*n/(a[3]-a[1])),f=o/(a[2]-a[0])*(i[2]-i[0])+i[0],h=s/(a[3]-a[1])*(i[3]-i[1])+i[1];return i[0]=(i[0]-f)*l+f,i[2]=(i[2]-f)*l+f,i[1]=(i[1]-h)*l+h,i[3]=(i[3]-h)*l+h,t.setRanges(i),c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations(),t.relayoutCallback(),!0}),!0),c}},{&quot;../cartesian/constants&quot;:834,&quot;has-passive-events&quot;:441,&quot;mouse-change&quot;:483,&quot;mouse-event-offset&quot;:484,&quot;mouse-wheel&quot;:486}],867:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../cartesian/axes&quot;),i=t(&quot;../../lib/str2rgbarray&quot;);function a(t){this.scene=t,this.gl=t.gl,this.pixelRatio=t.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=[&quot;x&quot;,&quot;y&quot;],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title=&quot;&quot;,this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont=&quot;sans-serif&quot;,this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}var o=a.prototype,s=[&quot;xaxis&quot;,&quot;yaxis&quot;];o.merge=function(t){var e,r,n,a,o,l,c,u,f,h,p;for(this.titleEnable=!1,this.backgroundColor=i(t.plot_bgcolor),h=0;h&lt;2;++h){var d=(e=s[h]).charAt(0);for(n=(r=t[this.scene[e]._name]).title.text===this.scene.fullLayout._dfltTitle[d]?&quot;&quot;:r.title.text,p=0;p&lt;=2;p+=2)this.labelEnable[h+p]=!1,this.labels[h+p]=n,this.labelColor[h+p]=i(r.title.font.color),this.labelFont[h+p]=r.title.font.family,this.labelSize[h+p]=r.title.font.size,this.labelPad[h+p]=this.getLabelPad(e,r),this.tickEnable[h+p]=!1,this.tickColor[h+p]=i((r.tickfont||{}).color),this.tickAngle[h+p]=&quot;auto&quot;===r.tickangle?0:Math.PI*-r.tickangle/180,this.tickPad[h+p]=this.getTickPad(r),this.tickMarkLength[h+p]=0,this.tickMarkWidth[h+p]=r.tickwidth||0,this.tickMarkColor[h+p]=i(r.tickcolor),this.borderLineEnable[h+p]=!1,this.borderLineColor[h+p]=i(r.linecolor),this.borderLineWidth[h+p]=r.linewidth||0;c=this.hasSharedAxis(r),o=this.hasAxisInDfltPos(e,r)&amp;&amp;!c,l=this.hasAxisInAltrPos(e,r)&amp;&amp;!c,a=r.mirror||!1,u=c?-1!==String(a).indexOf(&quot;all&quot;):!!a,f=c?&quot;allticks&quot;===a:-1!==String(a).indexOf(&quot;ticks&quot;),o?this.labelEnable[h]=!0:l&amp;&amp;(this.labelEnable[h+2]=!0),o?this.tickEnable[h]=r.showticklabels:l&amp;&amp;(this.tickEnable[h+2]=r.showticklabels),(o||u)&amp;&amp;(this.borderLineEnable[h]=r.showline),(l||u)&amp;&amp;(this.borderLineEnable[h+2]=r.showline),(o||f)&amp;&amp;(this.tickMarkLength[h]=this.getTickMarkLength(r)),(l||f)&amp;&amp;(this.tickMarkLength[h+2]=this.getTickMarkLength(r)),this.gridLineEnable[h]=r.showgrid,this.gridLineColor[h]=i(r.gridcolor),this.gridLineWidth[h]=r.gridwidth,this.zeroLineEnable[h]=r.zeroline,this.zeroLineColor[h]=i(r.zerolinecolor),this.zeroLineWidth[h]=r.zerolinewidth}},o.hasSharedAxis=function(t){var e=this.scene,r=e.fullLayout._subplots.gl2d;return 0!==n.findSubplotsWithAxis(r,t).indexOf(e.id)},o.hasAxisInDfltPos=function(t,e){var r=e.side;return&quot;xaxis&quot;===t?&quot;bottom&quot;===r:&quot;yaxis&quot;===t?&quot;left&quot;===r:void 0},o.hasAxisInAltrPos=function(t,e){var r=e.side;return&quot;xaxis&quot;===t?&quot;top&quot;===r:&quot;yaxis&quot;===t?&quot;right&quot;===r:void 0},o.getLabelPad=function(t,e){var r=e.title.font.size,n=e.showticklabels;return&quot;xaxis&quot;===t?&quot;top&quot;===e.side?r*(1.5+(n?1:0))-10:r*(1.5+(n?.5:0))-10:&quot;yaxis&quot;===t?&quot;right&quot;===e.side?10+r*(1.5+(n?1:.5)):10+r*(1.5+(n?.5:0)):void 0},o.getTickPad=function(t){return&quot;outside&quot;===t.ticks?10+t.ticklen:15},o.getTickMarkLength=function(t){if(!t.ticks)return 0;var e=t.ticklen;return&quot;inside&quot;===t.ticks?-e:e},e.exports=function(t){return new a(t)}},{&quot;../../lib/str2rgbarray&quot;:802,&quot;../cartesian/axes&quot;:828}],868:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;./scene2d&quot;),a=t(&quot;../layout_attributes&quot;),o=t(&quot;../../constants/xmlns_namespaces&quot;),s=t(&quot;../cartesian/constants&quot;),l=t(&quot;../cartesian&quot;),c=t(&quot;../../components/fx/layout_attributes&quot;),u=t(&quot;../get_data&quot;).getSubplotData;r.name=&quot;gl2d&quot;,r.attr=[&quot;xaxis&quot;,&quot;yaxis&quot;],r.idRoot=[&quot;x&quot;,&quot;y&quot;],r.idRegex=s.idRegex,r.attrRegex=s.attrRegex,r.attributes=t(&quot;../cartesian/attributes&quot;),r.supplyLayoutDefaults=function(t,e,r){e._has(&quot;cartesian&quot;)||l.supplyLayoutDefaults(t,e,r)},r.layoutAttrOverrides=n(l.layoutAttributes,&quot;plot&quot;,&quot;from-root&quot;),r.baseLayoutAttrOverrides=n({plot_bgcolor:a.plot_bgcolor,hoverlabel:c.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl2d,a=0;a&lt;n.length;a++){var o=n[a],s=e._plots[o],l=u(r,&quot;gl2d&quot;,o),c=s._scene2d;void 0===c&amp;&amp;(c=new i({id:o,graphDiv:t,container:t.querySelector(&quot;.gl-container&quot;),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio},e),s._scene2d=c),c.plot(l,t.calcdata,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl2d||[],a=0;a&lt;i.length;a++){var o=i[a],s=n._plots[o];if(s._scene2d){var c=u(t,&quot;gl2d&quot;,o);0===c.length&amp;&amp;(s._scene2d.destroy(),delete n._plots[o])}}l.clean.apply(this,arguments)},r.drawFramework=function(t){t._context.staticPlot||l.drawFramework(t)},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n&lt;r.length;n++){var i=e._plots[r[n]]._scene2d,a=i.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:o.svg,&quot;xlink:href&quot;:a,x:0,y:0,width:&quot;100%&quot;,height:&quot;100%&quot;,preserveAspectRatio:&quot;none&quot;}),i.destroy()}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n&lt;r.length;n++){e._plots[r[n]]._scene2d.updateFx(e.dragmode)}}},{&quot;../../components/fx/layout_attributes&quot;:684,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../plot_api/edit_types&quot;:810,&quot;../cartesian&quot;:841,&quot;../cartesian/attributes&quot;:826,&quot;../cartesian/constants&quot;:834,&quot;../get_data&quot;:865,&quot;../layout_attributes&quot;:882,&quot;./scene2d&quot;:869}],869:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;../../registry&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;gl-plot2d&quot;),c=t(&quot;gl-spikes2d&quot;),u=t(&quot;gl-select-box&quot;),f=t(&quot;webgl-context&quot;),h=t(&quot;./convert&quot;),p=t(&quot;./camera&quot;),d=t(&quot;../../lib/show_no_webgl_msg&quot;),g=t(&quot;../cartesian/constraints&quot;),m=g.enforce,v=g.clean,y=t(&quot;../cartesian/autorange&quot;).doAutoRange,x=t(&quot;../../components/dragelement/helpers&quot;),b=x.drawMode,_=x.selectMode,w=[&quot;xaxis&quot;,&quot;yaxis&quot;],T=t(&quot;../cartesian/constants&quot;).SUBPLOT_PATTERN;function k(t,e){this.container=t.container,this.graphDiv=t.graphDiv,this.pixelRatio=t.plotGlPixelRatio||window.devicePixelRatio,this.id=t.id,this.staticPlot=!!t.staticPlot,this.scrollZoom=this.graphDiv._context._scrollZoom.cartesian,this.fullData=null,this.updateRefs(e),this.makeFramework(),this.stopped||(this.glplotOptions=h(this),this.glplotOptions.merge(e),this.glplot=l(this.glplotOptions),this.camera=p(this),this.traces={},this.spikes=c(this.glplot),this.selectBox=u(this.glplot,{innerFill:!1,outerFill:!0}),this.lastButtonState=0,this.pickResult=null,this.isMouseOver=!0,this.stopped=!1,this.redraw=this.draw.bind(this),this.redraw())}e.exports=k;var M=k.prototype;M.makeFramework=function(){if(this.staticPlot){if(!(i||(n=document.createElement(&quot;canvas&quot;),i=f({canvas:n,preserveDrawingBuffer:!1,premultipliedAlpha:!0,antialias:!0}))))throw new Error(&quot;Error creating static canvas/context for image server&quot;);this.canvas=n,this.gl=i}else{var t=this.container.querySelector(&quot;.gl-canvas-focus&quot;),e=f({canvas:t,preserveDrawingBuffer:!0,premultipliedAlpha:!0});if(!e)return d(this),void(this.stopped=!0);this.canvas=t,this.gl=e}var r=this.canvas;r.style.width=&quot;100%&quot;,r.style.height=&quot;100%&quot;,r.style.position=&quot;absolute&quot;,r.style.top=&quot;0px&quot;,r.style.left=&quot;0px&quot;,r.style[&quot;pointer-events&quot;]=&quot;none&quot;,this.updateSize(r);var a=this.svgContainer=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);a.style.position=&quot;absolute&quot;,a.style.top=a.style.left=&quot;0px&quot;,a.style.width=a.style.height=&quot;100%&quot;,a.style[&quot;z-index&quot;]=20,a.style[&quot;pointer-events&quot;]=&quot;none&quot;;var o=this.mouseContainer=document.createElement(&quot;div&quot;);o.style.position=&quot;absolute&quot;,o.style[&quot;pointer-events&quot;]=&quot;auto&quot;,this.pickCanvas=this.container.querySelector(&quot;.gl-canvas-pick&quot;);var s=this.container;s.appendChild(a),s.appendChild(o);var l=this;o.addEventListener(&quot;mouseout&quot;,(function(){l.isMouseOver=!1,l.unhover()})),o.addEventListener(&quot;mouseover&quot;,(function(){l.isMouseOver=!0}))},M.toImage=function(t){t||(t=&quot;png&quot;),this.stopped=!0,this.staticPlot&amp;&amp;this.container.appendChild(n),this.updateSize(this.canvas);var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.clearColor(1,1,1,0),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),this.glplot.setDirty(),this.glplot.draw(),e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a);for(var o=0,s=i-1;o&lt;s;++o,--s)for(var l=0;l&lt;r;++l)for(var c=0;c&lt;4;++c){var u=a[4*(r*o+l)+c];a[4*(r*o+l)+c]=a[4*(r*s+l)+c],a[4*(r*s+l)+c]=u}var f=document.createElement(&quot;canvas&quot;);f.width=r,f.height=i;var h,p=f.getContext(&quot;2d&quot;),d=p.createImageData(r,i);switch(d.data.set(a),p.putImageData(d,0,0),t){case&quot;jpeg&quot;:h=f.toDataURL(&quot;image/jpeg&quot;);break;case&quot;webp&quot;:h=f.toDataURL(&quot;image/webp&quot;);break;default:h=f.toDataURL(&quot;image/png&quot;)}return this.staticPlot&amp;&amp;this.container.removeChild(n),h},M.updateSize=function(t){t||(t=this.canvas);var e=this.pixelRatio,r=this.fullLayout,n=r.width,i=r.height,a=0|Math.ceil(e*n),o=0|Math.ceil(e*i);return t.width===a&amp;&amp;t.height===o||(t.width=a,t.height=o),t},M.computeTickMarks=function(){this.xaxis.setScale(),this.yaxis.setScale();for(var t=[o.calcTicks(this.xaxis),o.calcTicks(this.yaxis)],e=0;e&lt;2;++e)for(var r=0;r&lt;t[e].length;++r)t[e][r].text=t[e][r].text+&quot;&quot;;return t},M.updateRefs=function(t){this.fullLayout=t;var e=this.id.match(T),r=&quot;xaxis&quot;+e[1],n=&quot;yaxis&quot;+e[2];this.xaxis=this.fullLayout[r],this.yaxis=this.fullLayout[n]},M.relayoutCallback=function(){var t=this.graphDiv,e=this.xaxis,r=this.yaxis,n=t.layout,i={},o=i[e._name+&quot;.range&quot;]=e.range.slice(),s=i[r._name+&quot;.range&quot;]=r.range.slice();i[e._name+&quot;.autorange&quot;]=e.autorange,i[r._name+&quot;.autorange&quot;]=r.autorange,a.call(&quot;_storeDirectGUIEdit&quot;,t.layout,t._fullLayout._preGUI,i);var l=n[e._name];l.range=o,l.autorange=e.autorange;var c=n[r._name];c.range=s,c.autorange=r.autorange,i.lastInputTime=this.camera.lastInputTime,t.emit(&quot;plotly_relayout&quot;,i)},M.cameraChanged=function(){var t=this.camera;this.glplot.setDataBox(this.calcDataBox());var e=this.computeTickMarks();(function(t,e){for(var r=0;r&lt;2;++r){var n=t[r],i=e[r];if(n.length!==i.length)return!0;for(var a=0;a&lt;n.length;++a)if(n[a].x!==i[a].x)return!0}return!1})(e,this.glplotOptions.ticks)&amp;&amp;(this.glplotOptions.ticks=e,this.glplotOptions.dataBox=t.dataBox,this.glplot.update(this.glplotOptions),this.handleAnnotations())},M.handleAnnotations=function(){for(var t=this.graphDiv,e=this.fullLayout.annotations,r=0;r&lt;e.length;r++){var n=e[r];n.xref===this.xaxis._id&amp;&amp;n.yref===this.yaxis._id&amp;&amp;a.getComponentMethod(&quot;annotations&quot;,&quot;drawOne&quot;)(t,r)}},M.destroy=function(){if(this.glplot){var t=this.traces;t&amp;&amp;Object.keys(t).map((function(e){t[e].dispose(),delete t[e]})),this.glplot.dispose(),this.container.removeChild(this.svgContainer),this.container.removeChild(this.mouseContainer),this.fullData=null,this.glplot=null,this.stopped=!0,this.camera.mouseListener.enabled=!1,this.mouseContainer.removeEventListener(&quot;wheel&quot;,this.camera.wheelListener),this.camera=null}},M.plot=function(t,e,r){var n=this.glplot;this.updateRefs(r),this.xaxis.clearCalc(),this.yaxis.clearCalc(),this.updateTraces(t,e),this.updateFx(r.dragmode);var i=r.width,a=r.height;this.updateSize(this.canvas);var o=this.glplotOptions;o.merge(r),o.screenBox=[0,0,i,a];var s={_fullLayout:{_axisConstraintGroups:this.graphDiv._fullLayout._axisConstraintGroups,xaxis:this.xaxis,yaxis:this.yaxis}};v(s,this.xaxis),v(s,this.yaxis);var l,c,u=r._size,f=this.xaxis.domain,h=this.yaxis.domain;for(o.viewBox=[u.l+f[0]*u.w,u.b+h[0]*u.h,i-u.r-(1-f[1])*u.w,a-u.t-(1-h[1])*u.h],this.mouseContainer.style.width=u.w*(f[1]-f[0])+&quot;px&quot;,this.mouseContainer.style.height=u.h*(h[1]-h[0])+&quot;px&quot;,this.mouseContainer.height=u.h*(h[1]-h[0]),this.mouseContainer.style.left=u.l+f[0]*u.w+&quot;px&quot;,this.mouseContainer.style.top=u.t+(1-h[1])*u.h+&quot;px&quot;,c=0;c&lt;2;++c)(l=this[w[c]])._length=o.viewBox[c+2]-o.viewBox[c],y(this.graphDiv,l),l.setScale();m(s),o.ticks=this.computeTickMarks(),o.dataBox=this.calcDataBox(),o.merge(r),n.update(o),this.glplot.draw()},M.calcDataBox=function(){var t=this.xaxis,e=this.yaxis,r=t.range,n=e.range,i=t.r2l,a=e.r2l;return[i(r[0]),a(n[0]),i(r[1]),a(n[1])]},M.setRanges=function(t){var e=this.xaxis,r=this.yaxis,n=e.l2r,i=r.l2r;e.range=[n(t[0]),n(t[2])],r.range=[i(t[1]),i(t[3])]},M.updateTraces=function(t,e){var r,n,i,a=Object.keys(this.traces);this.fullData=t;t:for(r=0;r&lt;a.length;r++){var o=a[r],s=this.traces[o];for(n=0;n&lt;t.length;n++)if((i=t[n]).uid===o&amp;&amp;i.type===s.type)continue t;s.dispose(),delete this.traces[o]}for(r=0;r&lt;t.length;r++){i=t[r];var l=e[r],c=this.traces[i.uid];c?c.update(i,l):(c=i._module.plot(this,i,l),this.traces[i.uid]=c)}this.glplot.objects.sort((function(t,e){return t._trace.index-e._trace.index}))},M.updateFx=function(t){_(t)||b(t)?(this.pickCanvas.style[&quot;pointer-events&quot;]=&quot;none&quot;,this.mouseContainer.style[&quot;pointer-events&quot;]=&quot;none&quot;):(this.pickCanvas.style[&quot;pointer-events&quot;]=&quot;auto&quot;,this.mouseContainer.style[&quot;pointer-events&quot;]=&quot;auto&quot;),this.mouseContainer.style.cursor=&quot;pan&quot;===t?&quot;move&quot;:&quot;zoom&quot;===t?&quot;crosshair&quot;:null},M.emitPointAction=function(t,e){for(var r,n=t.trace.uid,i=t.pointIndex,a=0;a&lt;this.fullData.length;a++)this.fullData[a].uid===n&amp;&amp;(r=this.fullData[a]);var o={x:t.traceCoord[0],y:t.traceCoord[1],curveNumber:r.index,pointNumber:i,data:r._input,fullData:this.fullData,xaxis:this.xaxis,yaxis:this.yaxis};s.appendArrayPointValue(o,r,i),this.graphDiv.emit(e,{points:[o]})},M.draw=function(){if(!this.stopped){requestAnimationFrame(this.redraw);var t=this.glplot,e=this.camera,r=e.mouseListener,n=1===this.lastButtonState&amp;&amp;0===r.buttons,i=this.fullLayout;this.lastButtonState=r.buttons,this.cameraChanged();var a,o=r.x*t.pixelRatio,l=this.canvas.height-t.pixelRatio*r.y;if(e.boxEnabled&amp;&amp;&quot;zoom&quot;===i.dragmode){this.selectBox.enabled=!0;for(var c=this.selectBox.selectBox=[Math.min(e.boxStart[0],e.boxEnd[0]),Math.min(e.boxStart[1],e.boxEnd[1]),Math.max(e.boxStart[0],e.boxEnd[0]),Math.max(e.boxStart[1],e.boxEnd[1])],u=0;u&lt;2;u++)e.boxStart[u]===e.boxEnd[u]&amp;&amp;(c[u]=t.dataBox[u],c[u+2]=t.dataBox[u+2]);t.setDirty()}else if(!e.panning&amp;&amp;this.isMouseOver){this.selectBox.enabled=!1;var f=i._size,h=this.xaxis.domain,p=this.yaxis.domain,d=(a=t.pick(o/t.pixelRatio+f.l+h[0]*f.w,l/t.pixelRatio-(f.t+(1-p[1])*f.h)))&amp;&amp;a.object._trace.handlePick(a);if(d&amp;&amp;n&amp;&amp;this.emitPointAction(d,&quot;plotly_click&quot;),a&amp;&amp;&quot;skip&quot;!==a.object._trace.hoverinfo&amp;&amp;i.hovermode&amp;&amp;d&amp;&amp;(!this.lastPickResult||this.lastPickResult.traceUid!==d.trace.uid||this.lastPickResult.dataCoord[0]!==d.dataCoord[0]||this.lastPickResult.dataCoord[1]!==d.dataCoord[1])){var g=d;this.lastPickResult={traceUid:d.trace?d.trace.uid:null,dataCoord:d.dataCoord.slice()},this.spikes.update({center:a.dataCoord}),g.screenCoord=[((t.viewBox[2]-t.viewBox[0])*(a.dataCoord[0]-t.dataBox[0])/(t.dataBox[2]-t.dataBox[0])+t.viewBox[0])/t.pixelRatio,(this.canvas.height-(t.viewBox[3]-t.viewBox[1])*(a.dataCoord[1]-t.dataBox[1])/(t.dataBox[3]-t.dataBox[1])-t.viewBox[1])/t.pixelRatio],this.emitPointAction(d,&quot;plotly_hover&quot;);var m=this.fullData[g.trace.index]||{},v=g.pointIndex,y=s.castHoverinfo(m,i,v);if(y&amp;&amp;&quot;all&quot;!==y){var x=y.split(&quot;+&quot;);-1===x.indexOf(&quot;x&quot;)&amp;&amp;(g.traceCoord[0]=void 0),-1===x.indexOf(&quot;y&quot;)&amp;&amp;(g.traceCoord[1]=void 0),-1===x.indexOf(&quot;z&quot;)&amp;&amp;(g.traceCoord[2]=void 0),-1===x.indexOf(&quot;text&quot;)&amp;&amp;(g.textLabel=void 0),-1===x.indexOf(&quot;name&quot;)&amp;&amp;(g.name=void 0)}s.loneHover({x:g.screenCoord[0],y:g.screenCoord[1],xLabel:this.hoverFormatter(&quot;xaxis&quot;,g.traceCoord[0]),yLabel:this.hoverFormatter(&quot;yaxis&quot;,g.traceCoord[1]),zLabel:g.traceCoord[2],text:g.textLabel,name:g.name,color:s.castHoverOption(m,v,&quot;bgcolor&quot;)||g.color,borderColor:s.castHoverOption(m,v,&quot;bordercolor&quot;),fontFamily:s.castHoverOption(m,v,&quot;font.family&quot;),fontSize:s.castHoverOption(m,v,&quot;font.size&quot;),fontColor:s.castHoverOption(m,v,&quot;font.color&quot;),nameLength:s.castHoverOption(m,v,&quot;namelength&quot;),textAlign:s.castHoverOption(m,v,&quot;align&quot;)},{container:this.svgContainer,gd:this.graphDiv})}}a||this.unhover(),t.draw()}},M.unhover=function(){this.lastPickResult&amp;&amp;(this.spikes.update({}),this.lastPickResult=null,this.graphDiv.emit(&quot;plotly_unhover&quot;),s.loneUnhover(this.svgContainer))},M.hoverFormatter=function(t,e){if(void 0!==e){var r=this[t];return o.tickText(r,r.c2l(e),&quot;hover&quot;).text}}},{&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/fx&quot;:683,&quot;../../lib/show_no_webgl_msg&quot;:800,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../cartesian/autorange&quot;:827,&quot;../cartesian/constants&quot;:834,&quot;../cartesian/constraints&quot;:835,&quot;./camera&quot;:866,&quot;./convert&quot;:867,&quot;gl-plot2d&quot;:317,&quot;gl-select-box&quot;:333,&quot;gl-spikes2d&quot;:342,&quot;webgl-context&quot;:606}],870:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;../../components/fx/layout_attributes&quot;),a=t(&quot;./scene&quot;),o=t(&quot;../get_data&quot;).getSubplotData,s=t(&quot;../../lib&quot;),l=t(&quot;../../constants/xmlns_namespaces&quot;);r.name=&quot;gl3d&quot;,r.attr=&quot;scene&quot;,r.idRoot=&quot;scene&quot;,r.idRegex=r.attrRegex=s.counterRegex(&quot;scene&quot;),r.attributes=t(&quot;./layout/attributes&quot;),r.layoutAttributes=t(&quot;./layout/layout_attributes&quot;),r.baseLayoutAttrOverrides=n({hoverlabel:i.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.supplyLayoutDefaults=t(&quot;./layout/defaults&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl3d,i=0;i&lt;n.length;i++){var s=n[i],l=o(r,&quot;gl3d&quot;,s),c=e[s],u=c.camera,f=c._scene;f||(f=new a({id:s,graphDiv:t,container:t.querySelector(&quot;.gl-container&quot;),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio,camera:u},e),c._scene=f),f.viewInitial||(f.viewInitial={up:{x:u.up.x,y:u.up.y,z:u.up.z},eye:{x:u.eye.x,y:u.eye.y,z:u.eye.z},center:{x:u.center.x,y:u.center.y,z:u.center.z}}),f.plot(l,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl3d||[],a=0;a&lt;i.length;a++){var o=i[a];!e[o]&amp;&amp;n[o]._scene&amp;&amp;(n[o]._scene.destroy(),n._infolayer&amp;&amp;n._infolayer.selectAll(&quot;.annotation-&quot;+o).remove())}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=e._size,i=0;i&lt;r.length;i++){var a=e[r[i]],o=a.domain,s=a._scene,c=s.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:l.svg,&quot;xlink:href&quot;:c,x:n.l+n.w*o.x[0],y:n.t+n.h*(1-o.y[1]),width:n.w*(o.x[1]-o.x[0]),height:n.h*(o.y[1]-o.y[0]),preserveAspectRatio:&quot;none&quot;}),s.destroy()}},r.cleanId=function(t){if(t.match(/^scene[0-9]*$/)){var e=t.substr(5);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),&quot;scene&quot;+e}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n&lt;r.length;n++){e[r[n]]._scene.updateFx(e.dragmode,e.hovermode)}}},{&quot;../../components/fx/layout_attributes&quot;:684,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;../get_data&quot;:865,&quot;./layout/attributes&quot;:871,&quot;./layout/defaults&quot;:875,&quot;./layout/layout_attributes&quot;:876,&quot;./scene&quot;:880}],871:[function(t,e,r){&quot;use strict&quot;;e.exports={scene:{valType:&quot;subplotid&quot;,dflt:&quot;scene&quot;,editType:&quot;calc+clearAxisTypes&quot;}}},{}],872:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../components/color&quot;),i=t(&quot;../../cartesian/layout_attributes&quot;),a=t(&quot;../../../lib/extend&quot;).extendFlat,o=t(&quot;../../../plot_api/edit_types&quot;).overrideAll;e.exports=o({visible:i.visible,showspikes:{valType:&quot;boolean&quot;,dflt:!0},spikesides:{valType:&quot;boolean&quot;,dflt:!0},spikethickness:{valType:&quot;number&quot;,min:0,dflt:2},spikecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},showbackground:{valType:&quot;boolean&quot;,dflt:!1},backgroundcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(204, 204, 204, 0.5)&quot;},showaxeslabels:{valType:&quot;boolean&quot;,dflt:!0},color:i.color,categoryorder:i.categoryorder,categoryarray:i.categoryarray,title:{text:i.title.text,font:i.title.font},type:a({},i.type,{values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;]}),autotypenumbers:i.autotypenumbers,autorange:i.autorange,rangemode:i.rangemode,range:a({},i.range,{items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],anim:!1}),tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,mirror:i.mirror,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,tickfont:i.tickfont,tickangle:i.tickangle,tickprefix:i.tickprefix,showtickprefix:i.showtickprefix,ticksuffix:i.ticksuffix,showticksuffix:i.showticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickformat:i.tickformat,tickformatstops:i.tickformatstops,hoverformat:i.hoverformat,showline:i.showline,linecolor:i.linecolor,linewidth:i.linewidth,showgrid:i.showgrid,gridcolor:a({},i.gridcolor,{dflt:&quot;rgb(204, 204, 204)&quot;}),gridwidth:i.gridwidth,zeroline:i.zeroline,zerolinecolor:i.zerolinecolor,zerolinewidth:i.zerolinewidth,_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}},&quot;plot&quot;,&quot;from-root&quot;)},{&quot;../../../components/color&quot;:643,&quot;../../../lib/extend&quot;:768,&quot;../../../plot_api/edit_types&quot;:810,&quot;../../cartesian/layout_attributes&quot;:842}],873:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;).mix,i=t(&quot;../../../lib&quot;),a=t(&quot;../../../plot_api/plot_template&quot;),o=t(&quot;./axis_attributes&quot;),s=t(&quot;../../cartesian/type_defaults&quot;),l=t(&quot;../../cartesian/axis_defaults&quot;),c=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];e.exports=function(t,e,r){var u,f;function h(t,e){return i.coerce(u,f,o,t,e)}for(var p=0;p&lt;c.length;p++){var d=c[p];u=t[d]||{},(f=a.newContainer(e,d))._id=d[0]+r.scene,f._name=d,s(u,f,h,r),l(u,f,h,{font:r.font,letter:d[0],data:r.data,showGrid:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelposition:!0,bgColor:r.bgColor,calendar:r.calendar},r.fullLayout),h(&quot;gridcolor&quot;,n(f.color,r.bgColor,13600/187).toRgbString()),h(&quot;title.text&quot;,d[0]),f.setScale=i.noop,h(&quot;showspikes&quot;)&amp;&amp;(h(&quot;spikesides&quot;),h(&quot;spikethickness&quot;),h(&quot;spikecolor&quot;,f.color)),h(&quot;showaxeslabels&quot;),h(&quot;showbackground&quot;)&amp;&amp;h(&quot;backgroundcolor&quot;)}}},{&quot;../../../lib&quot;:778,&quot;../../../plot_api/plot_template&quot;:817,&quot;../../cartesian/axis_defaults&quot;:830,&quot;../../cartesian/type_defaults&quot;:853,&quot;./axis_attributes&quot;:872,tinycolor2:576}],874:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib/str2rgbarray&quot;),i=t(&quot;../../../lib&quot;),a=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function o(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],this.labelEnable=[!0,!0,!0],this.labelFont=[&quot;Open Sans&quot;,&quot;Open Sans&quot;,&quot;Open Sans&quot;],this.labelSize=[20,20,20],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}o.prototype.merge=function(t,e){for(var r=0;r&lt;3;++r){var o=e[a[r]];o.visible?(this.labels[r]=t._meta?i.templateString(o.title.text,t._meta):o.title.text,&quot;font&quot;in o.title&amp;&amp;(o.title.font.color&amp;&amp;(this.labelColor[r]=n(o.title.font.color)),o.title.font.family&amp;&amp;(this.labelFont[r]=o.title.font.family),o.title.font.size&amp;&amp;(this.labelSize[r]=o.title.font.size)),&quot;showline&quot;in o&amp;&amp;(this.lineEnable[r]=o.showline),&quot;linecolor&quot;in o&amp;&amp;(this.lineColor[r]=n(o.linecolor)),&quot;linewidth&quot;in o&amp;&amp;(this.lineWidth[r]=o.linewidth),&quot;showgrid&quot;in o&amp;&amp;(this.gridEnable[r]=o.showgrid),&quot;gridcolor&quot;in o&amp;&amp;(this.gridColor[r]=n(o.gridcolor)),&quot;gridwidth&quot;in o&amp;&amp;(this.gridWidth[r]=o.gridwidth),&quot;log&quot;===o.type?this.zeroEnable[r]=!1:&quot;zeroline&quot;in o&amp;&amp;(this.zeroEnable[r]=o.zeroline),&quot;zerolinecolor&quot;in o&amp;&amp;(this.zeroLineColor[r]=n(o.zerolinecolor)),&quot;zerolinewidth&quot;in o&amp;&amp;(this.zeroLineWidth[r]=o.zerolinewidth),&quot;ticks&quot;in o&amp;&amp;o.ticks?this.lineTickEnable[r]=!0:this.lineTickEnable[r]=!1,&quot;ticklen&quot;in o&amp;&amp;(this.lineTickLength[r]=this._defaultLineTickLength[r]=o.ticklen),&quot;tickcolor&quot;in o&amp;&amp;(this.lineTickColor[r]=n(o.tickcolor)),&quot;tickwidth&quot;in o&amp;&amp;(this.lineTickWidth[r]=o.tickwidth),&quot;tickangle&quot;in o&amp;&amp;(this.tickAngle[r]=&quot;auto&quot;===o.tickangle?-3600:Math.PI*-o.tickangle/180),&quot;showticklabels&quot;in o&amp;&amp;(this.tickEnable[r]=o.showticklabels),&quot;tickfont&quot;in o&amp;&amp;(o.tickfont.color&amp;&amp;(this.tickColor[r]=n(o.tickfont.color)),o.tickfont.family&amp;&amp;(this.tickFont[r]=o.tickfont.family),o.tickfont.size&amp;&amp;(this.tickSize[r]=o.tickfont.size)),&quot;mirror&quot;in o?-1!==[&quot;ticks&quot;,&quot;all&quot;,&quot;allticks&quot;].indexOf(o.mirror)?(this.lineTickMirror[r]=!0,this.lineMirror[r]=!0):!0===o.mirror?(this.lineTickMirror[r]=!1,this.lineMirror[r]=!0):(this.lineTickMirror[r]=!1,this.lineMirror[r]=!1):this.lineMirror[r]=!1,&quot;showbackground&quot;in o&amp;&amp;!1!==o.showbackground?(this.backgroundEnable[r]=!0,this.backgroundColor[r]=n(o.backgroundcolor)):this.backgroundEnable[r]=!1):(this.tickEnable[r]=!1,this.labelEnable[r]=!1,this.lineEnable[r]=!1,this.lineTickEnable[r]=!1,this.gridEnable[r]=!1,this.zeroEnable[r]=!1,this.backgroundEnable[r]=!1)}},e.exports=function(t,e){var r=new o;return r.merge(t,e),r}},{&quot;../../../lib&quot;:778,&quot;../../../lib/str2rgbarray&quot;:802}],875:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib&quot;),i=t(&quot;../../../components/color&quot;),a=t(&quot;../../../registry&quot;),o=t(&quot;../../subplot_defaults&quot;),s=t(&quot;./axis_defaults&quot;),l=t(&quot;./layout_attributes&quot;),c=t(&quot;../../get_data&quot;).getSubplotData;function u(t,e,r,n){for(var o=r(&quot;bgcolor&quot;),l=i.combine(o,n.paper_bgcolor),u=[&quot;up&quot;,&quot;center&quot;,&quot;eye&quot;],f=0;f&lt;u.length;f++)r(&quot;camera.&quot;+u[f]+&quot;.x&quot;),r(&quot;camera.&quot;+u[f]+&quot;.y&quot;),r(&quot;camera.&quot;+u[f]+&quot;.z&quot;);r(&quot;camera.projection.type&quot;);var h=!!r(&quot;aspectratio.x&quot;)&amp;&amp;!!r(&quot;aspectratio.y&quot;)&amp;&amp;!!r(&quot;aspectratio.z&quot;),p=r(&quot;aspectmode&quot;,h?&quot;manual&quot;:&quot;auto&quot;);h||(t.aspectratio=e.aspectratio={x:1,y:1,z:1},&quot;manual&quot;===p&amp;&amp;(e.aspectmode=&quot;auto&quot;),t.aspectmode=e.aspectmode);var d=c(n.fullData,&quot;gl3d&quot;,n.id);s(t,e,{font:n.font,scene:n.id,data:d,bgColor:l,calendar:n.calendar,autotypenumbersDflt:n.autotypenumbersDflt,fullLayout:n.fullLayout}),a.getComponentMethod(&quot;annotations3d&quot;,&quot;handleDefaults&quot;)(t,e,n);var g=n.getDfltFromLayout(&quot;dragmode&quot;);if(!1!==g&amp;&amp;!g)if(g=&quot;orbit&quot;,t.camera&amp;&amp;t.camera.up){var m=t.camera.up.x,v=t.camera.up.y,y=t.camera.up.z;0!==y&amp;&amp;(m&amp;&amp;v&amp;&amp;y?y/Math.sqrt(m*m+v*v+y*y)&gt;.999&amp;&amp;(g=&quot;turntable&quot;):g=&quot;turntable&quot;)}else g=&quot;turntable&quot;;r(&quot;dragmode&quot;,g),r(&quot;hovermode&quot;,n.getDfltFromLayout(&quot;hovermode&quot;))}e.exports=function(t,e,r){var i=e._basePlotModules.length&gt;1;o(t,e,r,{type:&quot;gl3d&quot;,attributes:l,handleDefaults:u,fullLayout:e,font:e.font,fullData:r,getDfltFromLayout:function(e){if(!i)return n.validate(t[e],l[e])?t[e]:void 0},autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,calendar:e.calendar})}},{&quot;../../../components/color&quot;:643,&quot;../../../lib&quot;:778,&quot;../../../registry&quot;:911,&quot;../../get_data&quot;:865,&quot;../../subplot_defaults&quot;:905,&quot;./axis_defaults&quot;:873,&quot;./layout_attributes&quot;:876}],876:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./axis_attributes&quot;),i=t(&quot;../../domain&quot;).attributes,a=t(&quot;../../../lib/extend&quot;).extendFlat,o=t(&quot;../../../lib&quot;).counterRegex;function s(t,e,r){return{x:{valType:&quot;number&quot;,dflt:t,editType:&quot;camera&quot;},y:{valType:&quot;number&quot;,dflt:e,editType:&quot;camera&quot;},z:{valType:&quot;number&quot;,dflt:r,editType:&quot;camera&quot;},editType:&quot;camera&quot;}}e.exports={_arrayAttrRegexps:[o(&quot;scene&quot;,&quot;.annotations&quot;,!0)],bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;plot&quot;},camera:{up:a(s(0,0,1),{}),center:a(s(0,0,0),{}),eye:a(s(1.25,1.25,1.25),{}),projection:{type:{valType:&quot;enumerated&quot;,values:[&quot;perspective&quot;,&quot;orthographic&quot;],dflt:&quot;perspective&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;camera&quot;},domain:i({name:&quot;scene&quot;,editType:&quot;plot&quot;}),aspectmode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;cube&quot;,&quot;data&quot;,&quot;manual&quot;],dflt:&quot;auto&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;aspectratio.x&quot;:void 0,&quot;aspectratio.y&quot;:void 0,&quot;aspectratio.z&quot;:void 0}},aspectratio:{x:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},y:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},z:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},editType:&quot;plot&quot;,impliedEdits:{aspectmode:&quot;manual&quot;}},xaxis:n,yaxis:n,zaxis:n,dragmode:{valType:&quot;enumerated&quot;,values:[&quot;orbit&quot;,&quot;turntable&quot;,&quot;zoom&quot;,&quot;pan&quot;,!1],editType:&quot;plot&quot;},hovermode:{valType:&quot;enumerated&quot;,values:[&quot;closest&quot;,!1],dflt:&quot;closest&quot;,editType:&quot;modebar&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;plot&quot;,_deprecated:{cameraposition:{valType:&quot;info_array&quot;,editType:&quot;camera&quot;}}}},{&quot;../../../lib&quot;:778,&quot;../../../lib/extend&quot;:768,&quot;../../domain&quot;:855,&quot;./axis_attributes&quot;:872}],877:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib/str2rgbarray&quot;),i=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function a(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}a.prototype.merge=function(t){for(var e=0;e&lt;3;++e){var r=t[i[e]];r.visible?(this.enabled[e]=r.showspikes,this.colors[e]=n(r.spikecolor),this.drawSides[e]=r.spikesides,this.lineWidth[e]=r.spikethickness):(this.enabled[e]=!1,this.drawSides[e]=!1)}},e.exports=function(t){var e=new a;return e.merge(t),e}},{&quot;../../../lib/str2rgbarray&quot;:802}],878:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.axesOptions,r=t.glplot.axesPixels,s=t.fullSceneLayout,l=[[],[],[]],c=0;c&lt;3;++c){var u=s[a[c]];if(u._length=(r[c].hi-r[c].lo)*r[c].pixelsPerDataUnit/t.dataScale[c],Math.abs(u._length)===1/0||isNaN(u._length))l[c]=[];else{u._input_range=u.range.slice(),u.range[0]=r[c].lo/t.dataScale[c],u.range[1]=r[c].hi/t.dataScale[c],u._m=1/(t.dataScale[c]*r[c].pixelsPerDataUnit),u.range[0]===u.range[1]&amp;&amp;(u.range[0]-=1,u.range[1]+=1);var f=u.tickmode;if(&quot;auto&quot;===u.tickmode){u.tickmode=&quot;linear&quot;;var h=u.nticks||i.constrain(u._length/40,4,9);n.autoTicks(u,Math.abs(u.range[1]-u.range[0])/h)}for(var p=n.calcTicks(u,{msUTC:!0}),d=0;d&lt;p.length;++d)p[d].x=p[d].x*t.dataScale[c],&quot;date&quot;===u.type&amp;&amp;(p[d].text=p[d].text.replace(/\&lt;br\&gt;/g,&quot; &quot;));l[c]=p,u.tickmode=f}}e.ticks=l;for(c=0;c&lt;3;++c){o[c]=.5*(t.glplot.bounds[0][c]+t.glplot.bounds[1][c]);for(d=0;d&lt;2;++d)e.bounds[d][c]=t.glplot.bounds[d][c]}t.contourLevels=function(t){for(var e=new Array(3),r=0;r&lt;3;++r){for(var n=t[r],i=new Array(n.length),a=0;a&lt;n.length;++a)i[a]=n[a].x;e[r]=i}return e}(l)};var n=t(&quot;../../cartesian/axes&quot;),i=t(&quot;../../../lib&quot;),a=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;],o=[0,0,0]},{&quot;../../../lib&quot;:778,&quot;../../cartesian/axes&quot;:828}],879:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r,n,i=[0,0,0,0];for(r=0;r&lt;4;++r)for(n=0;n&lt;4;++n)i[n]+=t[4*r+n]*e[r];return i}e.exports=function(t,e){return n(t.projection,n(t.view,n(t.model,[e[0],e[1],e[2],1])))}},{}],880:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;gl-plot3d&quot;),o=a.createCamera,s=a.createScene,l=t(&quot;webgl-context&quot;),c=t(&quot;has-passive-events&quot;),u=t(&quot;../../registry&quot;),f=t(&quot;../../lib&quot;),h=f.preserveDrawingBuffer(),p=t(&quot;../../plots/cartesian/axes&quot;),d=t(&quot;../../components/fx&quot;),g=t(&quot;../../lib/str2rgbarray&quot;),m=t(&quot;../../lib/show_no_webgl_msg&quot;),v=t(&quot;./project&quot;),y=t(&quot;./layout/convert&quot;),x=t(&quot;./layout/spikes&quot;),b=t(&quot;./layout/tick_marks&quot;);function _(t,e){var r=document.createElement(&quot;div&quot;),n=t.container;this.graphDiv=t.graphDiv;var i=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);i.style.position=&quot;absolute&quot;,i.style.top=i.style.left=&quot;0px&quot;,i.style.width=i.style.height=&quot;100%&quot;,i.style[&quot;z-index&quot;]=20,i.style[&quot;pointer-events&quot;]=&quot;none&quot;,r.appendChild(i),this.svgContainer=i,r.id=t.id,r.style.position=&quot;absolute&quot;,r.style.top=r.style.left=&quot;0px&quot;,r.style.width=r.style.height=&quot;100%&quot;,n.appendChild(r),this.fullLayout=e,this.id=t.id||&quot;scene&quot;,this.fullSceneLayout=e[this.id],this.plotArgs=[[],{},{}],this.axesOptions=y(e,e[this.id]),this.spikeOptions=x(e[this.id]),this.container=r,this.staticMode=!!t.staticPlot,this.pixelRatio=this.pixelRatio||t.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=u.getComponentMethod(&quot;annotations3d&quot;,&quot;convert&quot;),this.drawAnnotations=u.getComponentMethod(&quot;annotations3d&quot;,&quot;draw&quot;),this.initializeGLPlot()}var w=_.prototype;w.prepareOptions=function(){var t={canvas:this.canvas,gl:this.gl,glOptions:{preserveDrawingBuffer:h,premultipliedAlpha:!0,antialias:!0},container:this.container,axes:this.axesOptions,spikes:this.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:this.camera,pixelRatio:this.pixelRatio};if(this.staticMode){if(!(i||(n=document.createElement(&quot;canvas&quot;),i=l({canvas:n,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error(&quot;error creating static canvas/context for image server&quot;);t.gl=i,t.canvas=n}return t};var T=!0;w.tryCreatePlot=function(){var t=this.prepareOptions(),e=!0;try{this.glplot=s(t)}catch(r){if(this.staticMode||!T||h)e=!1;else{f.warn([&quot;webgl setup failed possibly due to&quot;,&quot;false preserveDrawingBuffer config.&quot;,&quot;The mobile/tablet device may not be detected by is-mobile module.&quot;,&quot;Enabling preserveDrawingBuffer in second attempt to create webgl scene...&quot;].join(&quot; &quot;));try{h=t.glOptions.preserveDrawingBuffer=!0,this.glplot=s(t)}catch(r){h=t.glOptions.preserveDrawingBuffer=!1,e=!1}}}return T=!1,e},w.initializeGLCamera=function(){var t=this.fullSceneLayout.camera,e=&quot;orthographic&quot;===t.projection.type;this.camera=o(this.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:e,zoomMin:.01,zoomMax:100,mode:&quot;orbit&quot;})},w.initializeGLPlot=function(){var t=this;if(t.initializeGLCamera(),!t.tryCreatePlot())return m(t);t.traces={},t.make4thDimension();var e=t.graphDiv,r=e.layout,n=function(){var e={};return t.isCameraChanged(r)&amp;&amp;(e[t.id+&quot;.camera&quot;]=t.getCamera()),t.isAspectChanged(r)&amp;&amp;(e[t.id+&quot;.aspectratio&quot;]=t.glplot.getAspectratio(),&quot;manual&quot;!==r[t.id].aspectmode&amp;&amp;(t.fullSceneLayout.aspectmode=r[t.id].aspectmode=e[t.id+&quot;.aspectmode&quot;]=&quot;manual&quot;)),e},i=function(t){if(!1!==t.fullSceneLayout.dragmode){var e=n();t.saveLayout(r),t.graphDiv.emit(&quot;plotly_relayout&quot;,e)}};return t.glplot.canvas&amp;&amp;(t.glplot.canvas.addEventListener(&quot;mouseup&quot;,(function(){i(t)})),t.glplot.canvas.addEventListener(&quot;wheel&quot;,(function(r){if(e._context._scrollZoom.gl3d){if(t.camera._ortho){var n=r.deltaX&gt;r.deltaY?1.1:1/1.1,a=t.glplot.getAspectratio();t.glplot.setAspectratio({x:n*a.x,y:n*a.y,z:n*a.z})}i(t)}}),!!c&amp;&amp;{passive:!1}),t.glplot.canvas.addEventListener(&quot;mousemove&quot;,(function(){if(!1!==t.fullSceneLayout.dragmode&amp;&amp;0!==t.camera.mouseListener.buttons){var e=n();t.graphDiv.emit(&quot;plotly_relayouting&quot;,e)}})),t.staticMode||t.glplot.canvas.addEventListener(&quot;webglcontextlost&quot;,(function(r){e&amp;&amp;e.emit&amp;&amp;e.emit(&quot;plotly_webglcontextlost&quot;,{event:r,layer:t.id})}),!1)),t.glplot.oncontextloss=function(){t.recoverContext()},t.glplot.onrender=function(){t.render()},!0},w.render=function(){var t,e=this,r=e.graphDiv,n=e.svgContainer,i=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var a=r._fullLayout._invScaleX,o=r._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,&quot;viewBox&quot;,&quot;0 0 &quot;+s+&quot; &quot;+l),n.setAttributeNS(null,&quot;width&quot;,s),n.setAttributeNS(null,&quot;height&quot;,l),b(e),e.glplot.axes.update(e.axesOptions);for(var c,u=Object.keys(e.traces),h=null,g=e.glplot.selection,m=0;m&lt;u.length;++m)&quot;skip&quot;!==(t=e.traces[u[m]]).data.hoverinfo&amp;&amp;t.handlePick(g)&amp;&amp;(h=t),t.setContourLevels&amp;&amp;t.setContourLevels();function y(t,r){var n=e.fullSceneLayout[t];return p.tickText(n,n.d2l(r),&quot;hover&quot;).text}if(null!==h){var x=v(e.glplot.cameraParams,g.dataCoordinate);t=h.data;var _,w=r._fullData[t.index],T=g.index,k={xLabel:y(&quot;xaxis&quot;,g.traceCoordinate[0]),yLabel:y(&quot;yaxis&quot;,g.traceCoordinate[1]),zLabel:y(&quot;zaxis&quot;,g.traceCoordinate[2])},M=d.castHoverinfo(w,e.fullLayout,T),A=(M||&quot;&quot;).split(&quot;+&quot;),S=M&amp;&amp;&quot;all&quot;===M;w.hovertemplate||S||(-1===A.indexOf(&quot;x&quot;)&amp;&amp;(k.xLabel=void 0),-1===A.indexOf(&quot;y&quot;)&amp;&amp;(k.yLabel=void 0),-1===A.indexOf(&quot;z&quot;)&amp;&amp;(k.zLabel=void 0),-1===A.indexOf(&quot;text&quot;)&amp;&amp;(g.textLabel=void 0),-1===A.indexOf(&quot;name&quot;)&amp;&amp;(h.name=void 0));var E=[];&quot;cone&quot;===t.type||&quot;streamtube&quot;===t.type?(k.uLabel=y(&quot;xaxis&quot;,g.traceCoordinate[3]),(S||-1!==A.indexOf(&quot;u&quot;))&amp;&amp;E.push(&quot;u: &quot;+k.uLabel),k.vLabel=y(&quot;yaxis&quot;,g.traceCoordinate[4]),(S||-1!==A.indexOf(&quot;v&quot;))&amp;&amp;E.push(&quot;v: &quot;+k.vLabel),k.wLabel=y(&quot;zaxis&quot;,g.traceCoordinate[5]),(S||-1!==A.indexOf(&quot;w&quot;))&amp;&amp;E.push(&quot;w: &quot;+k.wLabel),k.normLabel=g.traceCoordinate[6].toPrecision(3),(S||-1!==A.indexOf(&quot;norm&quot;))&amp;&amp;E.push(&quot;norm: &quot;+k.normLabel),&quot;streamtube&quot;===t.type&amp;&amp;(k.divergenceLabel=g.traceCoordinate[7].toPrecision(3),(S||-1!==A.indexOf(&quot;divergence&quot;))&amp;&amp;E.push(&quot;divergence: &quot;+k.divergenceLabel)),g.textLabel&amp;&amp;E.push(g.textLabel),_=E.join(&quot;&lt;br&gt;&quot;)):&quot;isosurface&quot;===t.type||&quot;volume&quot;===t.type?(k.valueLabel=p.tickText(e._mockAxis,e._mockAxis.d2l(g.traceCoordinate[3]),&quot;hover&quot;).text,E.push(&quot;value: &quot;+k.valueLabel),g.textLabel&amp;&amp;E.push(g.textLabel),_=E.join(&quot;&lt;br&gt;&quot;)):_=g.textLabel;var C={x:g.traceCoordinate[0],y:g.traceCoordinate[1],z:g.traceCoordinate[2],data:w._input,fullData:w,curveNumber:w.index,pointNumber:T};d.appendArrayPointValue(C,w,T),t._module.eventData&amp;&amp;(C=w._module.eventData(C,g,w,{},T));var L={points:[C]};e.fullSceneLayout.hovermode&amp;&amp;d.loneHover({trace:w,x:(.5+.5*x[0]/x[3])*s,y:(.5-.5*x[1]/x[3])*l,xLabel:k.xLabel,yLabel:k.yLabel,zLabel:k.zLabel,text:_,name:h.name,color:d.castHoverOption(w,T,&quot;bgcolor&quot;)||h.color,borderColor:d.castHoverOption(w,T,&quot;bordercolor&quot;),fontFamily:d.castHoverOption(w,T,&quot;font.family&quot;),fontSize:d.castHoverOption(w,T,&quot;font.size&quot;),fontColor:d.castHoverOption(w,T,&quot;font.color&quot;),nameLength:d.castHoverOption(w,T,&quot;namelength&quot;),textAlign:d.castHoverOption(w,T,&quot;align&quot;),hovertemplate:f.castOption(w,T,&quot;hovertemplate&quot;),hovertemplateLabels:f.extendFlat({},C,k),eventData:[C]},{container:n,gd:r}),g.buttons&amp;&amp;g.distance&lt;5?r.emit(&quot;plotly_click&quot;,L):r.emit(&quot;plotly_hover&quot;,L),c=L}else d.loneUnhover(n),r.emit(&quot;plotly_unhover&quot;,c);e.drawAnnotations(e)},w.recoverContext=function(){var t=this;t.glplot.dispose();var e=function(){t.glplot.gl.isContextLost()?requestAnimationFrame(e):t.initializeGLPlot()?t.plot.apply(t,t.plotArgs):f.error(&quot;Catastrophic and unrecoverable WebGL error. Context lost.&quot;)};requestAnimationFrame(e)};var k=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function M(t,e,r){for(var n=t.fullSceneLayout,i=0;i&lt;3;i++){var a=k[i],o=a.charAt(0),s=n[a],l=e[o],c=e[o+&quot;calendar&quot;],u=e[&quot;_&quot;+o+&quot;length&quot;];if(f.isArrayOrTypedArray(l))for(var h,p=0;p&lt;(u||l.length);p++)if(f.isArrayOrTypedArray(l[p]))for(var d=0;d&lt;l[p].length;++d)h=s.d2l(l[p][d],0,c),!isNaN(h)&amp;&amp;isFinite(h)&amp;&amp;(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else h=s.d2l(l[p],0,c),!isNaN(h)&amp;&amp;isFinite(h)&amp;&amp;(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],u-1)}}w.plot=function(t,e,r){if(this.plotArgs=[t,e,r],!this.glplot.contextLost){var n,i,a,o,s,l,c=e[this.id],u=r[this.id];this.fullLayout=e,this.fullSceneLayout=c,this.axesOptions.merge(e,c),this.spikeOptions.merge(c),this.setViewport(c),this.updateFx(c.dragmode,c.hovermode),this.camera.enableWheel=this.graphDiv._context._scrollZoom.gl3d,this.glplot.setClearColor(g(c.bgcolor)),this.setConvert(s),t?Array.isArray(t)||(t=[t]):t=[];var f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(a=0;a&lt;t.length;++a)!0===(n=t[a]).visible&amp;&amp;0!==n._length&amp;&amp;M(this,n,f);!function(t,e){for(var r=t.fullSceneLayout,n=r.annotations||[],i=0;i&lt;3;i++)for(var a=k[i],o=a.charAt(0),s=r[a],l=0;l&lt;n.length;l++){var c=n[l];if(c.visible){var u=s.r2l(c[o]);!isNaN(u)&amp;&amp;isFinite(u)&amp;&amp;(e[0][i]=Math.min(e[0][i],u),e[1][i]=Math.max(e[1][i],u))}}}(this,f);var h=[1,1,1];for(o=0;o&lt;3;++o)f[1][o]===f[0][o]?h[o]=1:h[o]=1/(f[1][o]-f[0][o]);for(this.dataScale=h,this.convertAnnotations(this),a=0;a&lt;t.length;++a)!0===(n=t[a]).visible&amp;&amp;0!==n._length&amp;&amp;((i=this.traces[n.uid])?i.data.type===n.type?i.update(n):(i.dispose(),i=n._module.plot(this,n),this.traces[n.uid]=i):(i=n._module.plot(this,n),this.traces[n.uid]=i),i.name=n.name);var p=Object.keys(this.traces);t:for(a=0;a&lt;p.length;++a){for(o=0;o&lt;t.length;++o)if(t[o].uid===p[a]&amp;&amp;!0===t[o].visible&amp;&amp;0!==t[o]._length)continue t;(i=this.traces[p[a]]).dispose(),delete this.traces[p[a]]}this.glplot.objects.sort((function(t,e){return t._trace.data.index-e._trace.data.index}));var d,m=[[0,0,0],[0,0,0]],v=[],y={};for(a=0;a&lt;3;++a){if((l=(s=c[k[a]]).type)in y?(y[l].acc*=h[a],y[l].count+=1):y[l]={acc:h[a],count:1},s.autorange){m[0][a]=1/0,m[1][a]=-1/0;var x=this.glplot.objects,b=this.fullSceneLayout.annotations||[],_=s._name.charAt(0);for(o=0;o&lt;x.length;o++){var w=x[o],T=w.bounds,A=w._trace.data._pad||0;&quot;ErrorBars&quot;===w.constructor.name&amp;&amp;s._lowerLogErrorBound?m[0][a]=Math.min(m[0][a],s._lowerLogErrorBound):m[0][a]=Math.min(m[0][a],T[0][a]/h[a]-A),m[1][a]=Math.max(m[1][a],T[1][a]/h[a]+A)}for(o=0;o&lt;b.length;o++){var S=b[o];if(S.visible){var E=s.r2l(S[_]);m[0][a]=Math.min(m[0][a],E),m[1][a]=Math.max(m[1][a],E)}}if(&quot;rangemode&quot;in s&amp;&amp;&quot;tozero&quot;===s.rangemode&amp;&amp;(m[0][a]=Math.min(m[0][a],0),m[1][a]=Math.max(m[1][a],0)),m[0][a]&gt;m[1][a])m[0][a]=-1,m[1][a]=1;else{var C=m[1][a]-m[0][a];m[0][a]-=C/32,m[1][a]+=C/32}if(&quot;reversed&quot;===s.autorange){var L=m[0][a];m[0][a]=m[1][a],m[1][a]=L}}else{var I=s.range;m[0][a]=s.r2l(I[0]),m[1][a]=s.r2l(I[1])}m[0][a]===m[1][a]&amp;&amp;(m[0][a]-=1,m[1][a]+=1),v[a]=m[1][a]-m[0][a],this.glplot.setBounds(a,{min:m[0][a]*h[a],max:m[1][a]*h[a]})}var P=c.aspectmode;if(&quot;cube&quot;===P)d=[1,1,1];else if(&quot;manual&quot;===P){var z=c.aspectratio;d=[z.x,z.y,z.z]}else{if(&quot;auto&quot;!==P&amp;&amp;&quot;data&quot;!==P)throw new Error(&quot;scene.js aspectRatio was not one of the enumerated types&quot;);var O=[1,1,1];for(a=0;a&lt;3;++a){var D=y[l=(s=c[k[a]]).type];O[a]=Math.pow(D.acc,1/D.count)/h[a]}d=&quot;data&quot;===P||Math.max.apply(null,O)/Math.min.apply(null,O)&lt;=4?O:[1,1,1]}c.aspectratio.x=u.aspectratio.x=d[0],c.aspectratio.y=u.aspectratio.y=d[1],c.aspectratio.z=u.aspectratio.z=d[2],this.glplot.setAspectratio(c.aspectratio),this.viewInitial.aspectratio||(this.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),this.viewInitial.aspectmode||(this.viewInitial.aspectmode=c.aspectmode);var R=c.domain||null,F=e._size||null;if(R&amp;&amp;F){var B=this.container.style;B.position=&quot;absolute&quot;,B.left=F.l+R.x[0]*F.w+&quot;px&quot;,B.top=F.t+(1-R.y[1])*F.h+&quot;px&quot;,B.width=F.w*(R.x[1]-R.x[0])+&quot;px&quot;,B.height=F.h*(R.y[1]-R.y[0])+&quot;px&quot;}this.glplot.redraw()}},w.destroy=function(){this.glplot&amp;&amp;(this.camera.mouseListener.enabled=!1,this.container.removeEventListener(&quot;wheel&quot;,this.camera.wheelListener),this.camera=null,this.glplot.dispose(),this.container.parentNode.removeChild(this.container),this.glplot=null)},w.getCamera=function(){var t;return this.camera.view.recalcMatrix(this.camera.view.lastT()),{up:{x:(t=this.camera).up[0],y:t.up[1],z:t.up[2]},center:{x:t.center[0],y:t.center[1],z:t.center[2]},eye:{x:t.eye[0],y:t.eye[1],z:t.eye[2]},projection:{type:!0===t._ortho?&quot;orthographic&quot;:&quot;perspective&quot;}}},w.setViewport=function(t){var e,r=t.camera;this.camera.lookAt.apply(this,[[(e=r).eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]),this.glplot.setAspectratio(t.aspectratio),&quot;orthographic&quot;===r.projection.type!==this.camera._ortho&amp;&amp;(this.glplot.redraw(),this.glplot.clearRGBA(),this.glplot.dispose(),this.initializeGLPlot())},w.isCameraChanged=function(t){var e=this.getCamera(),r=f.nestedProperty(t,this.id+&quot;.camera&quot;).get();function n(t,e,r,n){var i=[&quot;up&quot;,&quot;center&quot;,&quot;eye&quot;],a=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];return e[i[r]]&amp;&amp;t[i[r]][a[n]]===e[i[r]][a[n]]}var i=!1;if(void 0===r)i=!0;else{for(var a=0;a&lt;3;a++)for(var o=0;o&lt;3;o++)if(!n(e,r,a,o)){i=!0;break}(!r.projection||e.projection&amp;&amp;e.projection.type!==r.projection.type)&amp;&amp;(i=!0)}return i},w.isAspectChanged=function(t){var e=this.glplot.getAspectratio(),r=f.nestedProperty(t,this.id+&quot;.aspectratio&quot;).get();return void 0===r||r.x!==e.x||r.y!==e.y||r.z!==e.z},w.saveLayout=function(t){var e,r,n,i,a,o,s=this.fullLayout,l=this.isCameraChanged(t),c=this.isAspectChanged(t),h=l||c;if(h){var p={};if(l&amp;&amp;(e=this.getCamera(),n=(r=f.nestedProperty(t,this.id+&quot;.camera&quot;)).get(),p[this.id+&quot;.camera&quot;]=n),c&amp;&amp;(i=this.glplot.getAspectratio(),o=(a=f.nestedProperty(t,this.id+&quot;.aspectratio&quot;)).get(),p[this.id+&quot;.aspectratio&quot;]=o),u.call(&quot;_storeDirectGUIEdit&quot;,t,s._preGUI,p),l)r.set(e),f.nestedProperty(s,this.id+&quot;.camera&quot;).set(e);if(c)a.set(i),f.nestedProperty(s,this.id+&quot;.aspectratio&quot;).set(i),this.glplot.redraw()}return h},w.updateFx=function(t,e){var r=this.camera;if(r)if(&quot;orbit&quot;===t)r.mode=&quot;orbit&quot;,r.keyBindingMode=&quot;rotate&quot;;else if(&quot;turntable&quot;===t){r.up=[0,0,1],r.mode=&quot;turntable&quot;,r.keyBindingMode=&quot;rotate&quot;;var n=this.graphDiv,i=n._fullLayout,a=this.fullSceneLayout.camera,o=a.up.x,s=a.up.y,l=a.up.z;if(l/Math.sqrt(o*o+s*s+l*l)&lt;.999){var c=this.id+&quot;.camera.up&quot;,h={x:0,y:0,z:1},p={};p[c]=h;var d=n.layout;u.call(&quot;_storeDirectGUIEdit&quot;,d,i._preGUI,p),a.up=h,f.nestedProperty(d,c).set(h)}}else r.keyBindingMode=t;this.fullSceneLayout.hovermode=e},w.toImage=function(t){t||(t=&quot;png&quot;),this.staticMode&amp;&amp;this.container.appendChild(n),this.glplot.redraw();var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a),function(t,e,r){for(var n=0,i=r-1;n&lt;i;++n,--i)for(var a=0;a&lt;e;++a)for(var o=0;o&lt;4;++o){var s=4*(e*n+a)+o,l=4*(e*i+a)+o,c=t[s];t[s]=t[l],t[l]=c}}(a,r,i),function(t,e,r){for(var n=0;n&lt;r;++n)for(var i=0;i&lt;e;++i){var a=4*(e*n+i),o=t[a+3];if(o&gt;0)for(var s=255/o,l=0;l&lt;3;++l)t[a+l]=Math.min(s*t[a+l],255)}}(a,r,i);var o=document.createElement(&quot;canvas&quot;);o.width=r,o.height=i;var s,l=o.getContext(&quot;2d&quot;),c=l.createImageData(r,i);switch(c.data.set(a),l.putImageData(c,0,0),t){case&quot;jpeg&quot;:s=o.toDataURL(&quot;image/jpeg&quot;);break;case&quot;webp&quot;:s=o.toDataURL(&quot;image/webp&quot;);break;default:s=o.toDataURL(&quot;image/png&quot;)}return this.staticMode&amp;&amp;this.container.removeChild(n),s},w.setConvert=function(){for(var t=0;t&lt;3;t++){var e=this.fullSceneLayout[k[t]];p.setConvert(e,this.fullLayout),e.setScale=f.noop}},w.make4thDimension=function(){var t=this.graphDiv._fullLayout;this._mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},p.setConvert(this._mockAxis,t)},e.exports=_},{&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/show_no_webgl_msg&quot;:800,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./layout/convert&quot;:874,&quot;./layout/spikes&quot;:877,&quot;./layout/tick_marks&quot;:878,&quot;./project&quot;:879,&quot;gl-plot3d&quot;:321,&quot;has-passive-events&quot;:441,&quot;webgl-context&quot;:606}],881:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){n=n||t.length;for(var i=new Array(n),a=0;a&lt;n;a++)i[a]=[t[a],e[a],r[a]];return i}},{}],882:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./font_attributes&quot;),i=t(&quot;./animation_attributes&quot;),a=t(&quot;../components/color/attributes&quot;),o=t(&quot;../components/shapes/draw_newshape/attributes&quot;),s=t(&quot;./pad_attributes&quot;),l=t(&quot;../lib/extend&quot;).extendFlat,c=n({editType:&quot;calc&quot;});c.family.dflt='&quot;Open Sans&quot;, verdana, arial, sans-serif',c.size.dflt=12,c.color.dflt=a.defaultLine,e.exports={font:c,title:{text:{valType:&quot;string&quot;,editType:&quot;layoutstyle&quot;},font:n({editType:&quot;layoutstyle&quot;}),xref:{valType:&quot;enumerated&quot;,dflt:&quot;container&quot;,values:[&quot;container&quot;,&quot;paper&quot;],editType:&quot;layoutstyle&quot;},yref:{valType:&quot;enumerated&quot;,dflt:&quot;container&quot;,values:[&quot;container&quot;,&quot;paper&quot;],editType:&quot;layoutstyle&quot;},x:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;layoutstyle&quot;},y:{valType:&quot;number&quot;,min:0,max:1,dflt:&quot;auto&quot;,editType:&quot;layoutstyle&quot;},xanchor:{valType:&quot;enumerated&quot;,dflt:&quot;auto&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;layoutstyle&quot;},yanchor:{valType:&quot;enumerated&quot;,dflt:&quot;auto&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;layoutstyle&quot;},pad:l(s({editType:&quot;layoutstyle&quot;}),{}),editType:&quot;layoutstyle&quot;},uniformtext:{mode:{valType:&quot;enumerated&quot;,values:[!1,&quot;hide&quot;,&quot;show&quot;],dflt:!1,editType:&quot;plot&quot;},minsize:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},autosize:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;none&quot;},width:{valType:&quot;number&quot;,min:10,dflt:700,editType:&quot;plot&quot;},height:{valType:&quot;number&quot;,min:10,dflt:450,editType:&quot;plot&quot;},margin:{l:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},r:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},t:{valType:&quot;number&quot;,min:0,dflt:100,editType:&quot;plot&quot;},b:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},pad:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},autoexpand:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},computed:{valType:&quot;any&quot;,editType:&quot;none&quot;},paper_bgcolor:{valType:&quot;color&quot;,dflt:a.background,editType:&quot;plot&quot;},plot_bgcolor:{valType:&quot;color&quot;,dflt:a.background,editType:&quot;layoutstyle&quot;},autotypenumbers:{valType:&quot;enumerated&quot;,values:[&quot;convert types&quot;,&quot;strict&quot;],dflt:&quot;convert types&quot;,editType:&quot;calc&quot;},separators:{valType:&quot;string&quot;,editType:&quot;plot&quot;},hidesources:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},showlegend:{valType:&quot;boolean&quot;,editType:&quot;legend&quot;},colorway:{valType:&quot;colorlist&quot;,dflt:a.defaults,editType:&quot;calc&quot;},datarevision:{valType:&quot;any&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editrevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},selectionrevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},template:{valType:&quot;any&quot;,editType:&quot;calc&quot;},modebar:{orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;,editType:&quot;modebar&quot;},bgcolor:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},color:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},activecolor:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;modebar&quot;},newshape:o.newshape,activeshape:o.activeshape,meta:{valType:&quot;any&quot;,arrayOk:!0,editType:&quot;plot&quot;},transition:l({},i.transition,{editType:&quot;none&quot;}),_deprecated:{title:{valType:&quot;string&quot;,editType:&quot;layoutstyle&quot;},titlefont:n({editType:&quot;layoutstyle&quot;})}}},{&quot;../components/color/attributes&quot;:642,&quot;../components/shapes/draw_newshape/attributes&quot;:725,&quot;../lib/extend&quot;:768,&quot;./animation_attributes&quot;:822,&quot;./font_attributes&quot;:856,&quot;./pad_attributes&quot;:890}],883:[function(t,e,r){&quot;use strict&quot;;var n={&quot;open-street-map&quot;:{id:&quot;osm&quot;,version:8,sources:{&quot;plotly-osm-tiles&quot;:{type:&quot;raster&quot;,attribution:'&lt;a href=&quot;http://www.openstreetmap.org/about/&quot; target=&quot;_blank&quot;&gt;\xa9 OpenStreetMap&lt;/a&gt;',tiles:[&quot;https://a.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;,&quot;https://b.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-osm-tiles&quot;,type:&quot;raster&quot;,source:&quot;plotly-osm-tiles&quot;,minzoom:0,maxzoom:22}]},&quot;white-bg&quot;:{id:&quot;white-bg&quot;,version:8,sources:{},layers:[{id:&quot;white-bg&quot;,type:&quot;background&quot;,paint:{&quot;background-color&quot;:&quot;#FFFFFF&quot;},minzoom:0,maxzoom:22}]},&quot;carto-positron&quot;:{id:&quot;carto-positron&quot;,version:8,sources:{&quot;plotly-carto-positron&quot;:{type:&quot;raster&quot;,attribution:'&lt;a href=&quot;https://carto.com/&quot; target=&quot;_blank&quot;&gt;\xa9 CARTO&lt;/a&gt;',tiles:[&quot;https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-carto-positron&quot;,type:&quot;raster&quot;,source:&quot;plotly-carto-positron&quot;,minzoom:0,maxzoom:22}]},&quot;carto-darkmatter&quot;:{id:&quot;carto-darkmatter&quot;,version:8,sources:{&quot;plotly-carto-darkmatter&quot;:{type:&quot;raster&quot;,attribution:'&lt;a href=&quot;https://carto.com/&quot; target=&quot;_blank&quot;&gt;\xa9 CARTO&lt;/a&gt;',tiles:[&quot;https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-carto-darkmatter&quot;,type:&quot;raster&quot;,source:&quot;plotly-carto-darkmatter&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-terrain&quot;:{id:&quot;stamen-terrain&quot;,version:8,sources:{&quot;plotly-stamen-terrain&quot;:{type:&quot;raster&quot;,attribution:'Map tiles by &lt;a href=&quot;http://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt; | Data by &lt;a href=&quot;http://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt;, under &lt;a href=&quot;http://www.openstreetmap.org/copyright&quot;&gt;ODbL&lt;/a&gt;.',tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-terrain&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-terrain&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-toner&quot;:{id:&quot;stamen-toner&quot;,version:8,sources:{&quot;plotly-stamen-toner&quot;:{type:&quot;raster&quot;,attribution:'Map tiles by &lt;a href=&quot;http://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt; | Data by &lt;a href=&quot;http://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt;, under &lt;a href=&quot;http://www.openstreetmap.org/copyright&quot;&gt;ODbL&lt;/a&gt;.',tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-toner&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-toner&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-watercolor&quot;:{id:&quot;stamen-watercolor&quot;,version:8,sources:{&quot;plotly-stamen-watercolor&quot;:{type:&quot;raster&quot;,attribution:'Map tiles by &lt;a href=&quot;http://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt; | Data by &lt;a href=&quot;http://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by-sa/3.0&quot;&gt;CC BY SA&lt;/a&gt;.',tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-watercolor&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-watercolor&quot;,minzoom:0,maxzoom:22}]}},i=Object.keys(n);e.exports={requiredVersion:&quot;1.10.1&quot;,styleUrlPrefix:&quot;mapbox://styles/mapbox/&quot;,styleUrlSuffix:&quot;v9&quot;,styleValuesMapbox:[&quot;basic&quot;,&quot;streets&quot;,&quot;outdoors&quot;,&quot;light&quot;,&quot;dark&quot;,&quot;satellite&quot;,&quot;satellite-streets&quot;],styleValueDflt:&quot;basic&quot;,stylesNonMapbox:n,styleValuesNonMapbox:i,traceLayerPrefix:&quot;plotly-trace-layer-&quot;,layoutLayerPrefix:&quot;plotly-layout-layer-&quot;,wrongVersionErrorMsg:[&quot;Your custom plotly.js bundle is not using the correct mapbox-gl version&quot;,&quot;Please install mapbox-gl@1.10.1.&quot;].join(&quot;\n&quot;),noAccessTokenErrorMsg:[&quot;Missing Mapbox access token.&quot;,&quot;Mapbox trace type require a Mapbox access token to be registered.&quot;,&quot;For example:&quot;,&quot;  Plotly.plot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });&quot;,&quot;More info here: https://www.mapbox.com/help/define-access-token/&quot;].join(&quot;\n&quot;),missingStyleErrorMsg:[&quot;No valid mapbox style found, please set `mapbox.style` to one of:&quot;,i.join(&quot;, &quot;),&quot;or register a Mapbox access token to use a Mapbox-served style.&quot;].join(&quot;\n&quot;),multipleTokensErrorMsg:[&quot;Set multiple mapbox access token across different mapbox subplot,&quot;,&quot;using first token found as mapbox-gl does not allow multipleaccess tokens on the same page.&quot;].join(&quot;\n&quot;),mapOnErrorMsg:&quot;Mapbox error.&quot;,mapboxLogo:{path0:&quot;m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z&quot;,path1:&quot;M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z&quot;,path2:&quot;M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z&quot;,polygon:&quot;11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34&quot;},styleRules:{map:&quot;overflow:hidden;position:relative;&quot;,&quot;missing-css&quot;:&quot;display:none;&quot;,canary:&quot;background-color:salmon;&quot;,&quot;ctrl-bottom-left&quot;:&quot;position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;&quot;,&quot;ctrl-bottom-right&quot;:&quot;position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;&quot;,ctrl:&quot;clear: both; pointer-events: auto; transform: translate(0, 0);&quot;,&quot;ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner&quot;:&quot;display: none;&quot;,&quot;ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner&quot;:&quot;display: block; margin-top:2px&quot;,&quot;ctrl-attrib.mapboxgl-compact:hover&quot;:&quot;padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;&quot;,&quot;ctrl-attrib.mapboxgl-compact::after&quot;:'content: &quot;&quot;; cursor: pointer; position: absolute; background-image: url(\'data:image/svg+xml;charset=utf-8,%3Csvg viewBox=&quot;0 0 20 20&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;%3E %3Cpath fill=&quot;%23333333&quot; fill-rule=&quot;evenodd&quot; d=&quot;M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0&quot;/%3E %3C/svg%3E\'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;',&quot;ctrl-attrib.mapboxgl-compact&quot;:&quot;min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;&quot;,&quot;ctrl-bottom-right &gt; .mapboxgl-ctrl-attrib.mapboxgl-compact::after&quot;:&quot;bottom: 0; right: 0&quot;,&quot;ctrl-bottom-left &gt; .mapboxgl-ctrl-attrib.mapboxgl-compact::after&quot;:&quot;bottom: 0; left: 0&quot;,&quot;ctrl-bottom-left .mapboxgl-ctrl&quot;:&quot;margin: 0 0 10px 10px; float: left;&quot;,&quot;ctrl-bottom-right .mapboxgl-ctrl&quot;:&quot;margin: 0 10px 10px 0; float: right;&quot;,&quot;ctrl-attrib&quot;:&quot;color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px&quot;,&quot;ctrl-attrib a&quot;:&quot;color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px&quot;,&quot;ctrl-attrib a:hover&quot;:&quot;color: inherit; text-decoration: underline;&quot;,&quot;ctrl-attrib .mapbox-improve-map&quot;:&quot;font-weight: bold; margin-left: 2px;&quot;,&quot;attrib-empty&quot;:&quot;display: none;&quot;,&quot;ctrl-logo&quot;:'display:block; width: 21px; height: 21px; background-image: url(\'data:image/svg+xml;charset=utf-8,%3C?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?%3E %3Csvg version=&quot;1.1&quot; id=&quot;Layer_1&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; x=&quot;0px&quot; y=&quot;0px&quot; viewBox=&quot;0 0 21 21&quot; style=&quot;enable-background:new 0 0 21 21;&quot; xml:space=&quot;preserve&quot;%3E%3Cg transform=&quot;translate(0,0.01)&quot;%3E%3Cpath d=&quot;m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z&quot; style=&quot;opacity:0.9;fill:%23ffffff;enable-background:new&quot; class=&quot;st0&quot;/%3E%3Cpath d=&quot;M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z&quot; style=&quot;opacity:0.35;enable-background:new&quot; class=&quot;st1&quot;/%3E%3Cpath d=&quot;M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z&quot; style=&quot;opacity:0.35;enable-background:new&quot; class=&quot;st1&quot;/%3E%3Cpolygon points=&quot;11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 &quot; style=&quot;opacity:0.9;fill:%23ffffff;enable-background:new&quot; class=&quot;st0&quot;/%3E%3C/g%3E%3C/svg%3E\')'}}},{}],884:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=t.split(&quot; &quot;),i=r[0],a=r[1],o=n.isArrayOrTypedArray(e)?n.mean(e):e,s=.5+o/100,l=1.5+o/100,c=[&quot;&quot;,&quot;&quot;],u=[0,0];switch(i){case&quot;top&quot;:c[0]=&quot;top&quot;,u[1]=-l;break;case&quot;bottom&quot;:c[0]=&quot;bottom&quot;,u[1]=l}switch(a){case&quot;left&quot;:c[1]=&quot;right&quot;,u[0]=-s;break;case&quot;right&quot;:c[1]=&quot;left&quot;,u[0]=s}return{anchor:c[0]&amp;&amp;c[1]?c.join(&quot;-&quot;):c[0]?c[0]:c[1]?c[1]:&quot;center&quot;,offset:u}}},{&quot;../../lib&quot;:778}],885:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mapbox-gl&quot;),i=t(&quot;../../lib&quot;),a=i.strTranslate,o=i.strScale,s=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,l=t(&quot;../../constants/xmlns_namespaces&quot;),c=t(&quot;d3&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;./mapbox&quot;),p=r.constants=t(&quot;./constants&quot;);function d(t){return&quot;string&quot;==typeof t&amp;&amp;(-1!==p.styleValuesMapbox.indexOf(t)||0===t.indexOf(&quot;mapbox://&quot;))}r.name=&quot;mapbox&quot;,r.attr=&quot;subplot&quot;,r.idRoot=&quot;mapbox&quot;,r.idRegex=r.attrRegex=i.counterRegex(&quot;mapbox&quot;),r.attributes={subplot:{valType:&quot;subplotid&quot;,dflt:&quot;mapbox&quot;,editType:&quot;calc&quot;}},r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.plot=function(t){var e=t._fullLayout,r=t.calcdata,a=e._subplots.mapbox;if(n.version!==p.requiredVersion)throw new Error(p.wrongVersionErrorMsg);var o=function(t,e){var r=t._fullLayout;if(&quot;&quot;===t._context.mapboxAccessToken)return&quot;&quot;;for(var n=[],a=[],o=!1,s=!1,l=0;l&lt;e.length;l++){var c=r[e[l]],u=c.accesstoken;d(c.style)&amp;&amp;(u?i.pushUnique(n,u):(d(c._input.style)&amp;&amp;(i.error(&quot;Uses Mapbox map style, but did not set an access token.&quot;),o=!0),s=!0)),u&amp;&amp;i.pushUnique(a,u)}if(s){var f=o?p.noAccessTokenErrorMsg:p.missingStyleErrorMsg;throw i.error(f),new Error(f)}return n.length?(n.length&gt;1&amp;&amp;i.warn(p.multipleTokensErrorMsg),n[0]):(a.length&amp;&amp;i.log([&quot;Listed mapbox access token(s)&quot;,a.join(&quot;,&quot;),&quot;but did not use a Mapbox map style, ignoring token(s).&quot;].join(&quot; &quot;)),&quot;&quot;)}(t,a);n.accessToken=o;for(var l=0;l&lt;a.length;l++){var c=a[l],u=s(r,&quot;mapbox&quot;,c),f=e[c],g=f._subplot;g||(g=new h(t,c),e[c]._subplot=g),g.viewInitial||(g.viewInitial={center:i.extendFlat({},f.center),zoom:f.zoom,bearing:f.bearing,pitch:f.pitch}),g.plot(u,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.mapbox||[],a=0;a&lt;i.length;a++){var o=i[a];!e[o]&amp;&amp;n[o]._subplot&amp;&amp;n[o]._subplot.destroy()}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=e._size,i=0;i&lt;r.length;i++){var s=e[r[i]],h=s.domain,d=s._subplot.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:l.svg,&quot;xlink:href&quot;:d,x:n.l+n.w*h.x[0],y:n.t+n.h*(1-h.y[1]),width:n.w*(h.x[1]-h.x[0]),height:n.h*(h.y[1]-h.y[0]),preserveAspectRatio:&quot;none&quot;});var g=c.select(s._subplot.div);if(!(null===g.select(&quot;.mapboxgl-ctrl-logo&quot;).node().offsetParent)){var m=e._glimages.append(&quot;g&quot;);m.attr(&quot;transform&quot;,a(n.l+n.w*h.x[0]+10,n.t+n.h*(1-h.y[0])-31)),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path0).style({opacity:.9,fill:&quot;#ffffff&quot;,&quot;enable-background&quot;:&quot;new&quot;}),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path1).style(&quot;opacity&quot;,.35).style(&quot;enable-background&quot;,&quot;new&quot;),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path2).style(&quot;opacity&quot;,.35).style(&quot;enable-background&quot;,&quot;new&quot;),m.append(&quot;polygon&quot;).attr(&quot;points&quot;,p.mapboxLogo.polygon).style({opacity:.9,fill:&quot;#ffffff&quot;,&quot;enable-background&quot;:&quot;new&quot;})}var v=g.select(&quot;.mapboxgl-ctrl-attrib&quot;).text().replace(&quot;Improve this map&quot;,&quot;&quot;),y=e._glimages.append(&quot;g&quot;),x=y.append(&quot;text&quot;);x.text(v).classed(&quot;static-attribution&quot;,!0).attr({&quot;font-size&quot;:12,&quot;font-family&quot;:&quot;Arial&quot;,color:&quot;rgba(0, 0, 0, 0.75)&quot;,&quot;text-anchor&quot;:&quot;end&quot;,&quot;data-unformatted&quot;:v});var b=u.bBox(x.node()),_=n.w*(h.x[1]-h.x[0]);if(b.width&gt;_/2){var w=v.split(&quot;|&quot;).join(&quot;&lt;br&gt;&quot;);x.text(w).attr(&quot;data-unformatted&quot;,w).call(f.convertToTspans,t),b=u.bBox(x.node())}x.attr(&quot;transform&quot;,a(-3,8-b.height)),y.insert(&quot;rect&quot;,&quot;.static-attribution&quot;).attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:&quot;rgba(255, 255, 255, 0.75)&quot;});var T=1;b.width+6&gt;_&amp;&amp;(T=_/(b.width+6));var k=[n.l+n.w*h.x[1],n.t+n.h*(1-h.y[0])];y.attr(&quot;transform&quot;,a(k[0],k[1])+o(T))}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=0;n&lt;r.length;n++){e[r[n]]._subplot.updateFx(e)}}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/get_data&quot;:865,&quot;./constants&quot;:883,&quot;./layout_attributes&quot;:887,&quot;./layout_defaults&quot;:888,&quot;./mapbox&quot;:889,d3:169,&quot;mapbox-gl&quot;:473}],886:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/svg_text_utils&quot;).sanitizeHTML,a=t(&quot;./convert_text_opts&quot;),o=t(&quot;./constants&quot;);function s(t,e){this.subplot=t,this.uid=t.uid+&quot;-&quot;+e,this.index=e,this.idSource=&quot;source-&quot;+this.uid,this.idLayer=o.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var l=s.prototype;function c(t){if(!t.visible)return!1;var e=t.source;if(Array.isArray(e)&amp;&amp;e.length&gt;0){for(var r=0;r&lt;e.length;r++)if(&quot;string&quot;!=typeof e[r]||0===e[r].length)return!1;return!0}return n.isPlainObject(e)||&quot;string&quot;==typeof e&amp;&amp;e.length&gt;0}function u(t){var e={},r={};switch(t.type){case&quot;circle&quot;:n.extendFlat(r,{&quot;circle-radius&quot;:t.circle.radius,&quot;circle-color&quot;:t.color,&quot;circle-opacity&quot;:t.opacity});break;case&quot;line&quot;:n.extendFlat(r,{&quot;line-width&quot;:t.line.width,&quot;line-color&quot;:t.color,&quot;line-opacity&quot;:t.opacity,&quot;line-dasharray&quot;:t.line.dash});break;case&quot;fill&quot;:n.extendFlat(r,{&quot;fill-color&quot;:t.color,&quot;fill-outline-color&quot;:t.fill.outlinecolor,&quot;fill-opacity&quot;:t.opacity});break;case&quot;symbol&quot;:var i=t.symbol,o=a(i.textposition,i.iconsize);n.extendFlat(e,{&quot;icon-image&quot;:i.icon+&quot;-15&quot;,&quot;icon-size&quot;:i.iconsize/10,&quot;text-field&quot;:i.text,&quot;text-size&quot;:i.textfont.size,&quot;text-anchor&quot;:o.anchor,&quot;text-offset&quot;:o.offset,&quot;symbol-placement&quot;:i.placement}),n.extendFlat(r,{&quot;icon-color&quot;:t.color,&quot;text-color&quot;:i.textfont.color,&quot;text-opacity&quot;:t.opacity});break;case&quot;raster&quot;:n.extendFlat(r,{&quot;raster-fade-duration&quot;:0,&quot;raster-opacity&quot;:t.opacity})}return{layout:e,paint:r}}l.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=c(t)},l.needsNewImage=function(t){return this.subplot.map.getSource(this.idSource)&amp;&amp;&quot;image&quot;===this.sourceType&amp;&amp;&quot;image&quot;===t.sourcetype&amp;&amp;(this.source!==t.source||JSON.stringify(this.coordinates)!==JSON.stringify(t.coordinates))},l.needsNewSource=function(t){return this.sourceType!==t.sourcetype||JSON.stringify(this.source)!==JSON.stringify(t.source)||this.layerType!==t.type},l.needsNewLayer=function(t){return this.layerType!==t.type||this.below!==this.subplot.belowLookup[&quot;layout-&quot;+this.index]},l.lookupBelow=function(){return this.subplot.belowLookup[&quot;layout-&quot;+this.index]},l.updateImage=function(t){this.subplot.map.getSource(this.idSource).updateImage({url:t.source,coordinates:t.coordinates});var e=this.findFollowingMapboxLayerId(this.lookupBelow());null!==e&amp;&amp;this.subplot.map.moveLayer(this.idLayer,e)},l.updateSource=function(t){var e=this.subplot.map;if(e.getSource(this.idSource)&amp;&amp;e.removeSource(this.idSource),this.sourceType=t.sourcetype,this.source=t.source,c(t)){var r=function(t){var e,r=t.sourcetype,n=t.source,a={type:r};&quot;geojson&quot;===r?e=&quot;data&quot;:&quot;vector&quot;===r?e=&quot;string&quot;==typeof n?&quot;url&quot;:&quot;tiles&quot;:&quot;raster&quot;===r?(e=&quot;tiles&quot;,a.tileSize=256):&quot;image&quot;===r&amp;&amp;(e=&quot;url&quot;,a.coordinates=t.coordinates);a[e]=n,t.sourceattribution&amp;&amp;(a.attribution=i(t.sourceattribution));return a}(t);e.addSource(this.idSource,r)}},l.findFollowingMapboxLayerId=function(t){if(&quot;traces&quot;===t)for(var e=this.subplot.getMapLayers(),r=0;r&lt;e.length;r++){var n=e[r].id;if(&quot;string&quot;==typeof n&amp;&amp;0===n.indexOf(o.traceLayerPrefix)){t=n;break}}return t},l.updateLayer=function(t){var e=this.subplot,r=u(t),n=this.lookupBelow(),i=this.findFollowingMapboxLayerId(n);this.removeLayer(),c(t)&amp;&amp;e.addLayer({id:this.idLayer,source:this.idSource,&quot;source-layer&quot;:t.sourcelayer||&quot;&quot;,type:t.type,minzoom:t.minzoom,maxzoom:t.maxzoom,layout:r.layout,paint:r.paint},i),this.layerType=t.type,this.below=n},l.updateStyle=function(t){if(c(t)){var e=u(t);this.subplot.setOptions(this.idLayer,&quot;setLayoutProperty&quot;,e.layout),this.subplot.setOptions(this.idLayer,&quot;setPaintProperty&quot;,e.paint)}},l.removeLayer=function(){var t=this.subplot.map;t.getLayer(this.idLayer)&amp;&amp;t.removeLayer(this.idLayer)},l.dispose=function(){var t=this.subplot.map;t.getLayer(this.idLayer)&amp;&amp;t.removeLayer(this.idLayer),t.getSource(this.idSource)&amp;&amp;t.removeSource(this.idSource)},e.exports=function(t,e,r){var n=new s(t,e);return n.update(r),n}},{&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;./constants&quot;:883,&quot;./convert_text_opts&quot;:884}],887:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;).defaultLine,a=t(&quot;../domain&quot;).attributes,o=t(&quot;../font_attributes&quot;),s=t(&quot;../../traces/scatter/attributes&quot;).textposition,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll,c=t(&quot;../../plot_api/plot_template&quot;).templatedArray,u=t(&quot;./constants&quot;),f=o({});f.family.dflt=&quot;Open Sans Regular, Arial Unicode MS Regular&quot;,(e.exports=l({_arrayAttrRegexps:[n.counterRegex(&quot;mapbox&quot;,&quot;.layers&quot;,!0)],domain:a({name:&quot;mapbox&quot;}),accesstoken:{valType:&quot;string&quot;,noBlank:!0,strict:!0},style:{valType:&quot;any&quot;,values:u.styleValuesMapbox.concat(u.styleValuesNonMapbox),dflt:u.styleValueDflt},center:{lon:{valType:&quot;number&quot;,dflt:0},lat:{valType:&quot;number&quot;,dflt:0}},zoom:{valType:&quot;number&quot;,dflt:1},bearing:{valType:&quot;number&quot;,dflt:0},pitch:{valType:&quot;number&quot;,dflt:0},layers:c(&quot;layer&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},sourcetype:{valType:&quot;enumerated&quot;,values:[&quot;geojson&quot;,&quot;vector&quot;,&quot;raster&quot;,&quot;image&quot;],dflt:&quot;geojson&quot;},source:{valType:&quot;any&quot;},sourcelayer:{valType:&quot;string&quot;,dflt:&quot;&quot;},sourceattribution:{valType:&quot;string&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;circle&quot;,&quot;line&quot;,&quot;fill&quot;,&quot;symbol&quot;,&quot;raster&quot;],dflt:&quot;circle&quot;},coordinates:{valType:&quot;any&quot;},below:{valType:&quot;string&quot;},color:{valType:&quot;color&quot;,dflt:i},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},minzoom:{valType:&quot;number&quot;,min:0,max:24,dflt:0},maxzoom:{valType:&quot;number&quot;,min:0,max:24,dflt:24},circle:{radius:{valType:&quot;number&quot;,dflt:15}},line:{width:{valType:&quot;number&quot;,dflt:2},dash:{valType:&quot;data_array&quot;}},fill:{outlinecolor:{valType:&quot;color&quot;,dflt:i}},symbol:{icon:{valType:&quot;string&quot;,dflt:&quot;marker&quot;},iconsize:{valType:&quot;number&quot;,dflt:10},text:{valType:&quot;string&quot;,dflt:&quot;&quot;},placement:{valType:&quot;enumerated&quot;,values:[&quot;point&quot;,&quot;line&quot;,&quot;line-center&quot;],dflt:&quot;point&quot;},textfont:f,textposition:n.extendFlat({},s,{arrayOk:!1})}})},&quot;plot&quot;,&quot;from-root&quot;)).uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../traces/scatter/attributes&quot;:1187,&quot;../domain&quot;:855,&quot;../font_attributes&quot;:856,&quot;./constants&quot;:883}],888:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../subplot_defaults&quot;),a=t(&quot;../array_container_defaults&quot;),o=t(&quot;./layout_attributes&quot;);function s(t,e,r,n){r(&quot;accesstoken&quot;,n.accessToken),r(&quot;style&quot;),r(&quot;center.lon&quot;),r(&quot;center.lat&quot;),r(&quot;zoom&quot;),r(&quot;bearing&quot;),r(&quot;pitch&quot;),a(t,e,{name:&quot;layers&quot;,handleItemDefaults:l}),e._input=t}function l(t,e){function r(r,i){return n.coerce(t,e,o.layers,r,i)}if(r(&quot;visible&quot;)){var i,a=r(&quot;sourcetype&quot;),s=&quot;raster&quot;===a||&quot;image&quot;===a;r(&quot;source&quot;),r(&quot;sourceattribution&quot;),&quot;vector&quot;===a&amp;&amp;r(&quot;sourcelayer&quot;),&quot;image&quot;===a&amp;&amp;r(&quot;coordinates&quot;),s&amp;&amp;(i=&quot;raster&quot;);var l=r(&quot;type&quot;,i);s&amp;&amp;&quot;raster&quot;!==l&amp;&amp;(l=e.type=&quot;raster&quot;,n.log(&quot;Source types *raster* and *image* must drawn *raster* layer type.&quot;)),r(&quot;below&quot;),r(&quot;color&quot;),r(&quot;opacity&quot;),r(&quot;minzoom&quot;),r(&quot;maxzoom&quot;),&quot;circle&quot;===l&amp;&amp;r(&quot;circle.radius&quot;),&quot;line&quot;===l&amp;&amp;(r(&quot;line.width&quot;),r(&quot;line.dash&quot;)),&quot;fill&quot;===l&amp;&amp;r(&quot;fill.outlinecolor&quot;),&quot;symbol&quot;===l&amp;&amp;(r(&quot;symbol.icon&quot;),r(&quot;symbol.iconsize&quot;),r(&quot;symbol.text&quot;),n.coerceFont(r,&quot;symbol.textfont&quot;),r(&quot;symbol.textposition&quot;),r(&quot;symbol.placement&quot;))}}e.exports=function(t,e,r){i(t,e,r,{type:&quot;mapbox&quot;,attributes:o,handleDefaults:s,partition:&quot;y&quot;,accessToken:e._mapboxAccessToken})}},{&quot;../../lib&quot;:778,&quot;../array_container_defaults&quot;:823,&quot;../subplot_defaults&quot;:905,&quot;./layout_attributes&quot;:887}],889:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mapbox-gl&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/geo_location_utils&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../cartesian/axes&quot;),l=t(&quot;../../components/dragelement&quot;),c=t(&quot;../../components/fx&quot;),u=t(&quot;../../components/dragelement/helpers&quot;),f=u.rectMode,h=u.drawMode,p=u.selectMode,d=t(&quot;../cartesian/select&quot;).prepSelect,g=t(&quot;../cartesian/select&quot;).clearSelect,m=t(&quot;../cartesian/select&quot;).clearSelectionsCache,v=t(&quot;../cartesian/select&quot;).selectOnClick,y=t(&quot;./constants&quot;),x=t(&quot;./layers&quot;);function b(t,e){this.id=e,this.gd=t;var r=t._fullLayout,n=t._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+&quot;-&quot;+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var _=b.prototype;_.plot=function(t,e,r){var n,i=this,a=e[i.id];i.map&amp;&amp;a.accesstoken!==i.accessToken&amp;&amp;(i.map.remove(),i.map=null,i.styleObj=null,i.traceHash={},i.layerList=[]),n=i.map?new Promise((function(r,n){i.updateMap(t,e,r,n)})):new Promise((function(r,n){i.createMap(t,e,r,n)})),r.push(n)},_.createMap=function(t,e,r,i){var o=this,s=e[o.id],l=o.styleObj=T(s.style);o.accessToken=s.accesstoken;var c=o.map=new n.Map({container:o.div,style:l.style,center:M(s.center),zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,interactive:!o.isStatic,preserveDrawingBuffer:o.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new n.AttributionControl({compact:!0}));c._canvas.style.left=&quot;0px&quot;,c._canvas.style.top=&quot;0px&quot;,o.rejectOnError(i),o.isStatic||o.initFx(t,e);var u=[];u.push(new Promise((function(t){c.once(&quot;load&quot;,t)}))),u=u.concat(a.fetchTraceGeoData(t)),Promise.all(u).then((function(){o.fillBelowLookup(t,e),o.updateData(t),o.updateLayout(e),o.resolveOnRender(r)})).catch(i)},_.updateMap=function(t,e,r,n){var i=this,o=i.map,s=e[this.id];i.rejectOnError(n);var l=[],c=T(s.style);JSON.stringify(i.styleObj)!==JSON.stringify(c)&amp;&amp;(i.styleObj=c,o.setStyle(c.style),i.traceHash={},l.push(new Promise((function(t){o.once(&quot;styledata&quot;,t)})))),l=l.concat(a.fetchTraceGeoData(t)),Promise.all(l).then((function(){i.fillBelowLookup(t,e),i.updateData(t),i.updateLayout(e),i.resolveOnRender(r)})).catch(n)},_.fillBelowLookup=function(t,e){var r,n,i=e[this.id].layers,a=this.belowLookup={},o=!1;for(r=0;r&lt;t.length;r++){var s=t[r][0].trace,l=s._module;&quot;string&quot;==typeof s.below?n=s.below:l.getBelow&amp;&amp;(n=l.getBelow(s,this)),&quot;&quot;===n&amp;&amp;(o=!0),a[&quot;trace-&quot;+s.uid]=n||&quot;&quot;}for(r=0;r&lt;i.length;r++){var c=i[r];n=&quot;string&quot;==typeof c.below?c.below:o?&quot;traces&quot;:&quot;&quot;,a[&quot;layout-&quot;+r]=n}var u,f,h={};for(u in a)h[n=a[u]]?h[n].push(u):h[n]=[u];for(n in h){var p=h[n];if(p.length&gt;1)for(r=0;r&lt;p.length;r++)0===(u=p[r]).indexOf(&quot;trace-&quot;)?(f=u.split(&quot;trace-&quot;)[1],this.traceHash[f]&amp;&amp;(this.traceHash[f].below=null)):0===u.indexOf(&quot;layout-&quot;)&amp;&amp;(f=u.split(&quot;layout-&quot;)[1],this.layerList[f]&amp;&amp;(this.layerList[f].below=null))}};var w={choroplethmapbox:0,densitymapbox:1,scattermapbox:2};function T(t){var e={};return i.isPlainObject(t)?(e.id=t.id,e.style=t):&quot;string&quot;==typeof t?(e.id=t,-1!==y.styleValuesMapbox.indexOf(t)?e.style=k(t):y.stylesNonMapbox[t]?e.style=y.stylesNonMapbox[t]:e.style=t):(e.id=y.styleValueDflt,e.style=k(y.styleValueDflt)),e.transition={duration:0,delay:0},e}function k(t){return y.styleUrlPrefix+t+&quot;-&quot;+y.styleUrlSuffix}function M(t){return[t.lon,t.lat]}_.updateData=function(t){var e,r,n,i,a=this.traceHash,o=t.slice().sort((function(t,e){return w[t[0].trace.type]-w[e[0].trace.type]}));for(n=0;n&lt;o.length;n++){var s=o[n],l=!1;(e=a[(r=s[0].trace).uid])&amp;&amp;(e.type===r.type?(e.update(s),l=!0):e.dispose()),!l&amp;&amp;r._module&amp;&amp;(a[r.uid]=r._module.plot(this,s))}var c=Object.keys(a);t:for(n=0;n&lt;c.length;n++){var u=c[n];for(i=0;i&lt;t.length;i++)if(u===(r=t[i][0].trace).uid)continue t;(e=a[u]).dispose(),delete a[u]}},_.updateLayout=function(t){var e=this.map,r=t[this.id];this.dragging||this.wheeling||(e.setCenter(M(r.center)),e.setZoom(r.zoom),e.setBearing(r.bearing),e.setPitch(r.pitch)),this.updateLayers(t),this.updateFramework(t),this.updateFx(t),this.map.resize(),this.gd._context._scrollZoom.mapbox?e.scrollZoom.enable():e.scrollZoom.disable()},_.resolveOnRender=function(t){var e=this.map;e.on(&quot;render&quot;,(function r(){e.loaded()&amp;&amp;(e.off(&quot;render&quot;,r),setTimeout(t,10))}))},_.rejectOnError=function(t){var e=this.map;function r(){t(new Error(y.mapOnErrorMsg))}e.once(&quot;error&quot;,r),e.once(&quot;style.error&quot;,r),e.once(&quot;source.error&quot;,r),e.once(&quot;tile.error&quot;,r),e.once(&quot;layer.error&quot;,r)},_.createFramework=function(t){var e=this,r=e.div=document.createElement(&quot;div&quot;);r.id=e.uid,r.style.position=&quot;absolute&quot;,e.container.appendChild(r),e.xaxis={_id:&quot;x&quot;,c2p:function(t){return e.project(t).x}},e.yaxis={_id:&quot;y&quot;,c2p:function(t){return e.project(t).y}},e.updateFramework(t),e.mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},s.setConvert(e.mockAxis,t)},_.initFx=function(t,e){var r=this,n=r.gd,i=r.map;function a(){c.loneUnhover(e._hoverlayer)}function s(){var t=r.getView();n.emit(&quot;plotly_relayouting&quot;,r.getViewEditsWithDerived(t))}i.on(&quot;moveend&quot;,(function(t){if(r.map){var e=n._fullLayout;if(t.originalEvent||r.wheeling){var i=e[r.id];o.call(&quot;_storeDirectGUIEdit&quot;,n.layout,e._preGUI,r.getViewEdits(i));var a=r.getView();i._input.center=i.center=a.center,i._input.zoom=i.zoom=a.zoom,i._input.bearing=i.bearing=a.bearing,i._input.pitch=i.pitch=a.pitch,n.emit(&quot;plotly_relayout&quot;,r.getViewEditsWithDerived(a))}t.originalEvent&amp;&amp;&quot;mouseup&quot;===t.originalEvent.type?r.dragging=!1:r.wheeling&amp;&amp;(r.wheeling=!1),e._rehover&amp;&amp;e._rehover()}})),i.on(&quot;wheel&quot;,(function(){r.wheeling=!0})),i.on(&quot;mousemove&quot;,(function(t){var e=r.div.getBoundingClientRect(),a=[t.originalEvent.offsetX,t.originalEvent.offsetY];t.target.getBoundingClientRect=function(){return e},r.xaxis.p2c=function(){return i.unproject(a).lng},r.yaxis.p2c=function(){return i.unproject(a).lat},n._fullLayout._rehover=function(){n._fullLayout._hoversubplot===r.id&amp;&amp;n._fullLayout[r.id]&amp;&amp;c.hover(n,t,r.id)},c.hover(n,t,r.id),n._fullLayout._hoversubplot=r.id})),i.on(&quot;dragstart&quot;,(function(){r.dragging=!0,a()})),i.on(&quot;zoomstart&quot;,a),i.on(&quot;mouseout&quot;,(function(){n._fullLayout._hoversubplot=null})),i.on(&quot;drag&quot;,s),i.on(&quot;zoom&quot;,s),i.on(&quot;dblclick&quot;,(function(){var t=n._fullLayout[r.id];o.call(&quot;_storeDirectGUIEdit&quot;,n.layout,n._fullLayout._preGUI,r.getViewEdits(t));var e=r.viewInitial;i.setCenter(M(e.center)),i.setZoom(e.zoom),i.setBearing(e.bearing),i.setPitch(e.pitch);var a=r.getView();t._input.center=t.center=a.center,t._input.zoom=t.zoom=a.zoom,t._input.bearing=t.bearing=a.bearing,t._input.pitch=t.pitch=a.pitch,n.emit(&quot;plotly_doubleclick&quot;,null),n.emit(&quot;plotly_relayout&quot;,r.getViewEditsWithDerived(a))})),r.clearSelect=function(){m(r.dragOptions),g(r.dragOptions.gd)},r.onClickInPanFn=function(t){return function(e){var i=n._fullLayout.clickmode;i.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;v(e.originalEvent,n,[r.xaxis],[r.yaxis],r.id,t),i.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;c.click(n,e.originalEvent)}}},_.updateFx=function(t){var e=this,r=e.map,n=e.gd;if(!e.isStatic){var a,o=t.dragmode;a=f(o)?function(t,r){(t.range={})[e.id]=[c([r.xmin,r.ymin]),c([r.xmax,r.ymax])]}:function(t,r,n){(t.lassoPoints={})[e.id]=n.filtered.map(c)};var s=e.dragOptions;e.dragOptions=i.extendDeep(s||{},{dragmode:t.dragmode,element:e.div,gd:n,plotinfo:{id:e.id,domain:t[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis,fillRangeItems:a},xaxes:[e.xaxis],yaxes:[e.yaxis],subplot:e.id}),r.off(&quot;click&quot;,e.onClickInPanHandler),p(o)||h(o)?(r.dragPan.disable(),r.on(&quot;zoomstart&quot;,e.clearSelect),e.dragOptions.prepFn=function(t,r,n){d(t,r,n,e.dragOptions,o)},l.init(e.dragOptions)):(r.dragPan.enable(),r.off(&quot;zoomstart&quot;,e.clearSelect),e.div.onmousedown=null,e.onClickInPanHandler=e.onClickInPanFn(e.dragOptions),r.on(&quot;click&quot;,e.onClickInPanHandler))}function c(t){var r=e.map.unproject(t);return[r.lng,r.lat]}},_.updateFramework=function(t){var e=t[this.id].domain,r=t._size,n=this.div.style;n.width=r.w*(e.x[1]-e.x[0])+&quot;px&quot;,n.height=r.h*(e.y[1]-e.y[0])+&quot;px&quot;,n.left=r.l+e.x[0]*r.w+&quot;px&quot;,n.top=r.t+(1-e.y[1])*r.h+&quot;px&quot;,this.xaxis._offset=r.l+e.x[0]*r.w,this.xaxis._length=r.w*(e.x[1]-e.x[0]),this.yaxis._offset=r.t+(1-e.y[1])*r.h,this.yaxis._length=r.h*(e.y[1]-e.y[0])},_.updateLayers=function(t){var e,r=t[this.id].layers,n=this.layerList;if(r.length!==n.length){for(e=0;e&lt;n.length;e++)n[e].dispose();for(n=this.layerList=[],e=0;e&lt;r.length;e++)n.push(x(this,e,r[e]))}else for(e=0;e&lt;r.length;e++)n[e].update(r[e])},_.destroy=function(){this.map&amp;&amp;(this.map.remove(),this.map=null,this.container.removeChild(this.div))},_.toImage=function(){return this.map.stop(),this.map.getCanvas().toDataURL()},_.setOptions=function(t,e,r){for(var n in r)this.map[e](t,n,r[n])},_.getMapLayers=function(){return this.map.getStyle().layers},_.addLayer=function(t,e){var r=this.map;if(&quot;string&quot;==typeof e){if(&quot;&quot;===e)return void r.addLayer(t,e);for(var n=this.getMapLayers(),a=0;a&lt;n.length;a++)if(e===n[a].id)return void r.addLayer(t,e);i.warn([&quot;Trying to add layer with *below* value&quot;,e,&quot;referencing a layer that does not exist&quot;,&quot;or that does not yet exist.&quot;].join(&quot; &quot;))}r.addLayer(t)},_.project=function(t){return this.map.project(new n.LngLat(t[0],t[1]))},_.getView=function(){var t=this.map,e=t.getCenter(),r={lon:e.lng,lat:e.lat},n=t.getCanvas(),i=n.width,a=n.height;return{center:r,zoom:t.getZoom(),bearing:t.getBearing(),pitch:t.getPitch(),_derived:{coordinates:[t.unproject([0,0]).toArray(),t.unproject([i,0]).toArray(),t.unproject([i,a]).toArray(),t.unproject([0,a]).toArray()]}}},_.getViewEdits=function(t){for(var e=this.id,r=[&quot;center&quot;,&quot;zoom&quot;,&quot;bearing&quot;,&quot;pitch&quot;],n={},i=0;i&lt;r.length;i++){var a=r[i];n[e+&quot;.&quot;+a]=t[a]}return n},_.getViewEditsWithDerived=function(t){var e=this.id,r=this.getViewEdits(t);return r[e+&quot;._derived&quot;]=t._derived,r},e.exports=b},{&quot;../../components/dragelement&quot;:662,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../registry&quot;:911,&quot;../cartesian/axes&quot;:828,&quot;../cartesian/select&quot;:847,&quot;./constants&quot;:883,&quot;./layers&quot;:886,&quot;mapbox-gl&quot;:473}],890:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.editType;return{t:{valType:&quot;number&quot;,dflt:0,editType:e},r:{valType:&quot;number&quot;,dflt:0,editType:e},b:{valType:&quot;number&quot;,dflt:0,editType:e},l:{valType:&quot;number&quot;,dflt:0,editType:e},editType:e}}},{}],891:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-time-format&quot;).timeFormatLocale,a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../registry&quot;),s=t(&quot;../plot_api/plot_schema&quot;),l=t(&quot;../plot_api/plot_template&quot;),c=t(&quot;../lib&quot;),u=t(&quot;../components/color&quot;),f=t(&quot;../constants/numerical&quot;).BADNUM,h=t(&quot;./cartesian/axis_ids&quot;),p=t(&quot;./cartesian/handle_outline&quot;).clearSelect,d=t(&quot;./animation_attributes&quot;),g=t(&quot;./frame_attributes&quot;),m=t(&quot;../plots/get_data&quot;).getModuleCalcData,v=c.relinkPrivateKeys,y=c._,x=e.exports={};c.extendFlat(x,o),x.attributes=t(&quot;./attributes&quot;),x.attributes.type.values=x.allTypes,x.fontAttrs=t(&quot;./font_attributes&quot;),x.layoutAttributes=t(&quot;./layout_attributes&quot;),x.fontWeight=&quot;normal&quot;;var b=x.transformsRegistry,_=t(&quot;./command&quot;);x.executeAPICommand=_.executeAPICommand,x.computeAPICommandBindings=_.computeAPICommandBindings,x.manageCommandObserver=_.manageCommandObserver,x.hasSimpleAPICommandBindings=_.hasSimpleAPICommandBindings,x.redrawText=function(t){var e=(t=c.getGraphDiv(t))._fullLayout||{};if(!(!(e._has&amp;&amp;e._has(&quot;polar&quot;))&amp;&amp;t.data&amp;&amp;t.data[0]&amp;&amp;t.data[0].r))return new Promise((function(e){setTimeout((function(){o.getComponentMethod(&quot;annotations&quot;,&quot;draw&quot;)(t),o.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),o.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t),e(x.previousPromises(t))}),300)}))},x.resize=function(t){var e;t=c.getGraphDiv(t);var r=new Promise((function(r,n){t&amp;&amp;!c.isHidden(t)||n(new Error(&quot;Resize must be passed a displayed plot div element.&quot;)),t._redrawTimer&amp;&amp;clearTimeout(t._redrawTimer),t._resolveResize&amp;&amp;(e=t._resolveResize),t._resolveResize=r,t._redrawTimer=setTimeout((function(){if(!t.layout||t.layout.width&amp;&amp;t.layout.height||c.isHidden(t))r(t);else{delete t.layout.width,delete t.layout.height;var e=t.changed;t.autoplay=!0,o.call(&quot;relayout&quot;,t,{autosize:!0}).then((function(){t.changed=e,t._resolveResize===r&amp;&amp;(delete t._resolveResize,r(t))}))}}),100)}));return e&amp;&amp;e(r),r},x.previousPromises=function(t){if((t._promises||[]).length)return Promise.all(t._promises).then((function(){t._promises=[]}))},x.addLinks=function(t){if(t._context.showLink||t._context.showSources){var e=t._fullLayout,r=c.ensureSingle(e._paper,&quot;text&quot;,&quot;js-plot-link-container&quot;,(function(t){t.style({&quot;font-family&quot;:'&quot;Open Sans&quot;, Arial, sans-serif',&quot;font-size&quot;:&quot;12px&quot;,fill:u.defaultLine,&quot;pointer-events&quot;:&quot;all&quot;}).each((function(){var t=n.select(this);t.append(&quot;tspan&quot;).classed(&quot;js-link-to-tool&quot;,!0),t.append(&quot;tspan&quot;).classed(&quot;js-link-spacer&quot;,!0),t.append(&quot;tspan&quot;).classed(&quot;js-sourcelinks&quot;,!0)}))})),i=r.node(),a={y:e._paper.attr(&quot;height&quot;)-9};document.body.contains(i)&amp;&amp;i.getComputedTextLength()&gt;=e.width-20?(a[&quot;text-anchor&quot;]=&quot;start&quot;,a.x=5):(a[&quot;text-anchor&quot;]=&quot;end&quot;,a.x=e._paper.attr(&quot;width&quot;)-7),r.attr(a);var o=r.select(&quot;.js-link-to-tool&quot;),s=r.select(&quot;.js-link-spacer&quot;),l=r.select(&quot;.js-sourcelinks&quot;);t._context.showSources&amp;&amp;t._context.showSources(t),t._context.showLink&amp;&amp;function(t,e){e.text(&quot;&quot;);var r=e.append(&quot;a&quot;).attr({&quot;xlink:xlink:href&quot;:&quot;#&quot;,class:&quot;link--impt link--embedview&quot;,&quot;font-weight&quot;:&quot;bold&quot;}).text(t._context.linkText+&quot; &quot;+String.fromCharCode(187));if(t._context.sendData)r.on(&quot;click&quot;,(function(){x.sendDataToCloud(t)}));else{var n=window.location.pathname.split(&quot;/&quot;),i=window.location.search;r.attr({&quot;xlink:xlink:show&quot;:&quot;new&quot;,&quot;xlink:xlink:href&quot;:&quot;/&quot;+n[2].split(&quot;.&quot;)[0]+&quot;/&quot;+n[1]+i})}}(t,o),s.text(o.text()&amp;&amp;l.text()?&quot; - &quot;:&quot;&quot;)}},x.sendDataToCloud=function(t){var e=(window.PLOTLYENV||{}).BASE_URL||t._context.plotlyServerURL;if(e){t.emit(&quot;plotly_beforeexport&quot;);var r=n.select(t).append(&quot;div&quot;).attr(&quot;id&quot;,&quot;hiddenform&quot;).style(&quot;display&quot;,&quot;none&quot;),i=r.append(&quot;form&quot;).attr({action:e+&quot;/external&quot;,method:&quot;post&quot;,target:&quot;_blank&quot;});return i.append(&quot;input&quot;).attr({type:&quot;text&quot;,name:&quot;data&quot;}).node().value=x.graphJson(t,!1,&quot;keepdata&quot;),i.node().submit(),r.remove(),t.emit(&quot;plotly_afterexport&quot;),!1}};var w=[&quot;days&quot;,&quot;shortDays&quot;,&quot;months&quot;,&quot;shortMonths&quot;,&quot;periods&quot;,&quot;dateTime&quot;,&quot;date&quot;,&quot;time&quot;,&quot;decimal&quot;,&quot;thousands&quot;,&quot;grouping&quot;,&quot;currency&quot;],T=[&quot;year&quot;,&quot;month&quot;,&quot;dayMonth&quot;,&quot;dayMonthYear&quot;];function k(t,e){var r=t._context.locale;r||(r=&quot;en-US&quot;);var n=!1,i={};function a(t){for(var r=!0,a=0;a&lt;e.length;a++){var o=e[a];i[o]||(t[o]?i[o]=t[o]:r=!1)}r&amp;&amp;(n=!0)}for(var s=0;s&lt;2;s++){for(var l=t._context.locales,c=0;c&lt;2;c++){var u=(l[r]||{}).format;if(u&amp;&amp;(a(u),n))break;l=o.localeRegistry}var f=r.split(&quot;-&quot;)[0];if(n||f===r)break;r=f}return n||a(o.localeRegistry.en.format),i}function M(t,e){var r={_fullLayout:e},n=&quot;x&quot;===t._id.charAt(0),i=t._mainAxis._anchorAxis,a=&quot;&quot;,o=&quot;&quot;,s=&quot;&quot;;if(i&amp;&amp;(s=i._mainAxis._id,a=n?t._id+s:s+t._id),!a||!e._plots[a]){a=&quot;&quot;;for(var l=t._counterAxes,c=0;c&lt;l.length;c++){var u=l[c],f=n?t._id+u:u+t._id;o||(o=f);var p=h.getFromId(r,u);if(s&amp;&amp;p.overlaying===s){a=f;break}}}return a||o}function A(t){var e=t.transforms;if(Array.isArray(e)&amp;&amp;e.length)for(var r=0;r&lt;e.length;r++){var n=e[r],i=n._module||b[n.type];if(i&amp;&amp;i.makesData)return!0}return!1}function S(t,e,r,n){for(var i=t.transforms,a=[t],o=0;o&lt;i.length;o++){var s=i[o],l=b[s.type];l&amp;&amp;l.transform&amp;&amp;(a=l.transform(a,{transform:s,fullTrace:t,fullData:e,layout:r,fullLayout:n,transformIndex:o}))}return a}function E(t){return&quot;string&quot;==typeof t&amp;&amp;&quot;px&quot;===t.substr(t.length-2)&amp;&amp;parseFloat(t)}function C(t){var e=t.margin;if(!t._size){var r=t._size={l:Math.round(e.l),r:Math.round(e.r),t:Math.round(e.t),b:Math.round(e.b),p:Math.round(e.pad)};r.w=Math.round(t.width)-r.l-r.r,r.h=Math.round(t.height)-r.t-r.b}t._pushmargin||(t._pushmargin={}),t._pushmarginIds||(t._pushmarginIds={})}x.supplyDefaults=function(t,e){var r=e&amp;&amp;e.skipUpdateCalc,a=t._fullLayout||{};if(a._skipDefaults)delete a._skipDefaults;else{var s,l=t._fullLayout={},u=t.layout||{},f=t._fullData||[],h=t._fullData=[],d=t.data||[],g=t.calcdata||[],m=t._context||{};t._transitionData||x.createTransitionData(t),l._dfltTitle={plot:y(t,&quot;Click to enter Plot title&quot;),x:y(t,&quot;Click to enter X axis title&quot;),y:y(t,&quot;Click to enter Y axis title&quot;),colorbar:y(t,&quot;Click to enter Colorscale title&quot;),annotation:y(t,&quot;new text&quot;)},l._traceWord=y(t,&quot;trace&quot;);var b=k(t,w);if(l._mapboxAccessToken=m.mapboxAccessToken,a._initialAutoSizeIsDone){var _=a.width,M=a.height;x.supplyLayoutGlobalDefaults(u,l,b),u.width||(l.width=_),u.height||(l.height=M),x.sanitizeMargins(l)}else{x.supplyLayoutGlobalDefaults(u,l,b);var A=!u.width||!u.height,S=l.autosize,E=m.autosizable;A&amp;&amp;(S||E)?x.plotAutoSize(t,u,l):A&amp;&amp;x.sanitizeMargins(l),!S&amp;&amp;A&amp;&amp;(u.width=l.width,u.height=l.height)}l._d3locale=function(t,e){return t.decimal=e.charAt(0),t.thousands=e.charAt(1),{numberFormat:n.locale(t).numberFormat,timeFormat:i(t).utcFormat}}(b,l.separators),l._extraFormat=k(t,T),l._initialAutoSizeIsDone=!0,l._dataLength=d.length,l._modules=[],l._visibleModules=[],l._basePlotModules=[];var L=l._subplots=function(){var t,e,r=o.collectableSubplotTypes,n={};if(!r){r=[];var i=o.subplotsRegistry;for(var a in i){var s=i[a].attr;if(s&amp;&amp;(r.push(a),Array.isArray(s)))for(e=0;e&lt;s.length;e++)c.pushUnique(r,s[e])}}for(t=0;t&lt;r.length;t++)n[r[t]]=[];return n}(),I=l._splomAxes={x:{},y:{}},P=l._splomSubplots={};l._splomGridDflt={},l._scatterStackOpts={},l._firstScatter={},l._alignmentOpts={},l._colorAxes={},l._requestRangeslider={},l._traceUids=function(t,e){var r,n,i=e.length,a=[];for(r=0;r&lt;t.length;r++){var o=t[r]._fullInput;o!==n&amp;&amp;a.push(o),n=o}var s=a.length,l=new Array(i),u={};function f(t,e){l[e]=t,u[t]=1}function h(t,e){if(t&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;!u[t])return f(t,e),!0}for(r=0;r&lt;i;r++){var p=e[r].uid;&quot;number&quot;==typeof p&amp;&amp;(p=String(p)),h(p,r)||(r&lt;s&amp;&amp;h(a[r].uid,r)||f(c.randstr(u),r))}return l}(f,d),l._globalTransforms=(t._context||{}).globalTransforms,x.supplyDataDefaults(d,h,u,l);var z=Object.keys(I.x),O=Object.keys(I.y);if(z.length&gt;1&amp;&amp;O.length&gt;1){for(o.getComponentMethod(&quot;grid&quot;,&quot;sizeDefaults&quot;)(u,l),s=0;s&lt;z.length;s++)c.pushUnique(L.xaxis,z[s]);for(s=0;s&lt;O.length;s++)c.pushUnique(L.yaxis,O[s]);for(var D in P)c.pushUnique(L.cartesian,D)}if(l._has=x._hasPlotType.bind(l),f.length===h.length)for(s=0;s&lt;h.length;s++)v(h[s],f[s]);x.supplyLayoutModuleDefaults(u,l,h,t._transitionData);var R=l._visibleModules,F=[];for(s=0;s&lt;R.length;s++){var B=R[s].crossTraceDefaults;B&amp;&amp;c.pushUnique(F,B)}for(s=0;s&lt;F.length;s++)F[s](h,l);l._hasOnlyLargeSploms=1===l._basePlotModules.length&amp;&amp;&quot;splom&quot;===l._basePlotModules[0].name&amp;&amp;z.length&gt;15&amp;&amp;O.length&gt;15&amp;&amp;0===l.shapes.length&amp;&amp;0===l.images.length,l._hasCartesian=l._has(&quot;cartesian&quot;),l._hasGeo=l._has(&quot;geo&quot;),l._hasGL3D=l._has(&quot;gl3d&quot;),l._hasGL2D=l._has(&quot;gl2d&quot;),l._hasTernary=l._has(&quot;ternary&quot;),l._hasPie=l._has(&quot;pie&quot;),x.linkSubplots(h,l,f,a),x.cleanPlot(h,l,f,a);var N=!(!a._has||!a._has(&quot;gl2d&quot;)),j=!(!l._has||!l._has(&quot;gl2d&quot;)),U=!(!a._has||!a._has(&quot;cartesian&quot;))||N,V=!(!l._has||!l._has(&quot;cartesian&quot;))||j;U&amp;&amp;!V?a._bgLayer.remove():V&amp;&amp;!U&amp;&amp;(l._shouldCreateBgLayer=!0),a._zoomlayer&amp;&amp;!t._dragging&amp;&amp;p({_fullLayout:a}),function(t,e){var r,n=[];e.meta&amp;&amp;(r=e._meta={meta:e.meta,layout:{meta:e.meta}});for(var i=0;i&lt;t.length;i++){var a=t[i];a.meta?n[a.index]=a._meta={meta:a.meta}:e.meta&amp;&amp;(a._meta={meta:e.meta}),e.meta&amp;&amp;(a._meta.layout={meta:e.meta})}n.length&amp;&amp;(r||(r=e._meta={}),r.data=n)}(h,l),v(l,a),o.getComponentMethod(&quot;colorscale&quot;,&quot;crossTraceDefaults&quot;)(h,l),l._preGUI||(l._preGUI={}),l._tracePreGUI||(l._tracePreGUI={});var q,H=l._tracePreGUI,G={};for(q in H)G[q]=&quot;old&quot;;for(s=0;s&lt;h.length;s++)G[q=h[s]._fullInput.uid]||(H[q]={}),G[q]=&quot;new&quot;;for(q in G)&quot;old&quot;===G[q]&amp;&amp;delete H[q];C(l),o.getComponentMethod(&quot;rangeslider&quot;,&quot;makeData&quot;)(l),r||g.length!==h.length||x.supplyDefaultsUpdateCalc(g,h)}},x.supplyDefaultsUpdateCalc=function(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r],i=(t[r]||[])[0];if(i&amp;&amp;i.trace){var a=i.trace;if(a._hasCalcTransform){var o,s,l,u=a._arrayAttrs;for(o=0;o&lt;u.length;o++)s=u[o],l=c.nestedProperty(a,s).get().slice(),c.nestedProperty(n,s).set(l)}i.trace=n}}},x.createTransitionData=function(t){t._transitionData||(t._transitionData={}),t._transitionData._frames||(t._transitionData._frames=[]),t._transitionData._frameHash||(t._transitionData._frameHash={}),t._transitionData._counter||(t._transitionData._counter=0),t._transitionData._interruptCallbacks||(t._transitionData._interruptCallbacks=[])},x._hasPlotType=function(t){var e,r=this._basePlotModules||[];for(e=0;e&lt;r.length;e++)if(r[e].name===t)return!0;var n=this._modules||[];for(e=0;e&lt;n.length;e++){var i=n[e].name;if(i===t)return!0;var a=o.modules[i];if(a&amp;&amp;a.categories[t])return!0}return!1},x.cleanPlot=function(t,e,r,n){var i,a,o=n._basePlotModules||[];for(i=0;i&lt;o.length;i++){var s=o[i];s.clean&amp;&amp;s.clean(t,e,r,n)}var l=n._has&amp;&amp;n._has(&quot;gl&quot;),c=e._has&amp;&amp;e._has(&quot;gl&quot;);l&amp;&amp;!c&amp;&amp;void 0!==n._glcontainer&amp;&amp;(n._glcontainer.selectAll(&quot;.gl-canvas&quot;).remove(),n._glcontainer.selectAll(&quot;.no-webgl&quot;).remove(),n._glcanvas=null);var u=!!n._infolayer;t:for(i=0;i&lt;r.length;i++){var f=r[i].uid;for(a=0;a&lt;t.length;a++){if(f===t[a].uid)continue t}u&amp;&amp;n._infolayer.select(&quot;.cb&quot;+f).remove()}},x.linkSubplots=function(t,e,r,n){var i,a,s=n._plots||{},l=e._plots={},u=e._subplots,f={_fullData:t,_fullLayout:e},p=u.cartesian.concat(u.gl2d||[]);for(i=0;i&lt;p.length;i++){var d,g=p[i],m=s[g],v=h.getFromId(f,g,&quot;x&quot;),y=h.getFromId(f,g,&quot;y&quot;);for(m?d=l[g]=m:(d=l[g]={}).id=g,v._counterAxes.push(y._id),y._counterAxes.push(v._id),v._subplotsWith.push(g),y._subplotsWith.push(g),d.xaxis=v,d.yaxis=y,d._hasClipOnAxisFalse=!1,a=0;a&lt;t.length;a++){var x=t[a];if(x.xaxis===d.xaxis._id&amp;&amp;x.yaxis===d.yaxis._id&amp;&amp;!1===x.cliponaxis){d._hasClipOnAxisFalse=!0;break}}}var b,_=h.list(f,null,!0);for(i=0;i&lt;_.length;i++){var w=null;(b=_[i]).overlaying&amp;&amp;(w=h.getFromId(f,b.overlaying))&amp;&amp;w.overlaying&amp;&amp;(b.overlaying=!1,w=null),b._mainAxis=w||b,w&amp;&amp;(b.domain=w.domain.slice()),b._anchorAxis=&quot;free&quot;===b.anchor?null:h.getFromId(f,b.anchor)}for(i=0;i&lt;_.length;i++)if((b=_[i])._counterAxes.sort(h.idSort),b._subplotsWith.sort(c.subplotSort),b._mainSubplot=M(b,e),b._counterAxes.length&amp;&amp;(b.spikemode&amp;&amp;-1!==b.spikemode.indexOf(&quot;across&quot;)||b.automargin&amp;&amp;b.mirror&amp;&amp;&quot;free&quot;!==b.anchor||o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(b))){var T=1,k=0;for(a=0;a&lt;b._counterAxes.length;a++){var A=h.getFromId(f,b._counterAxes[a]);T=Math.min(T,A.domain[0]),k=Math.max(k,A.domain[1])}T&lt;k&amp;&amp;(b._counterDomainMin=T,b._counterDomainMax=k)}},x.clearExpandedTraceDefaultColors=function(t){var e,r,n;for(r=[],(e=t._module._colorAttrs)||(t._module._colorAttrs=e=[],s.crawl(t._module.attributes,(function(t,n,i,a){r[a]=n,r.length=a+1,&quot;color&quot;===t.valType&amp;&amp;void 0===t.dflt&amp;&amp;e.push(r.join(&quot;.&quot;))}))),n=0;n&lt;e.length;n++){c.nestedProperty(t,&quot;_input.&quot;+e[n]).get()||c.nestedProperty(t,e[n]).set(null)}},x.supplyDataDefaults=function(t,e,r,n){var i,a,s,u=n._modules,f=n._visibleModules,h=n._basePlotModules,p=0,d=0;function g(t){e.push(t);var r=t._module;r&amp;&amp;(c.pushUnique(u,r),!0===t.visible&amp;&amp;c.pushUnique(f,r),c.pushUnique(h,t._module.basePlotModule),p++,!1!==t._input.visible&amp;&amp;d++)}n._transformModules=[];var m={},y=[],b=(r.template||{}).data||{},_=l.traceTemplater(b);for(i=0;i&lt;t.length;i++){if(s=t[i],(a=_.newTrace(s)).uid=n._traceUids[i],x.supplyTraceDefaults(s,a,d,n,i),a.index=i,a._input=s,a._expandedIndex=p,a.transforms&amp;&amp;a.transforms.length)for(var w=!1!==s.visible&amp;&amp;!1===a.visible,T=S(a,e,r,n),k=0;k&lt;T.length;k++){var M=T[k],A={_template:a._template,type:a.type,uid:a.uid+k};w&amp;&amp;!1===M.visible&amp;&amp;delete M.visible,x.supplyTraceDefaults(M,A,p,n,i),v(A,M),A.index=i,A._input=s,A._fullInput=a,A._expandedIndex=p,A._expandedInput=M,g(A)}else a._fullInput=a,a._expandedInput=a,g(a);o.traceIs(a,&quot;carpetAxis&quot;)&amp;&amp;(m[a.carpet]=a),o.traceIs(a,&quot;carpetDependent&quot;)&amp;&amp;y.push(i)}for(i=0;i&lt;y.length;i++)if((a=e[y[i]]).visible){var E=m[a.carpet];a._carpet=E,E&amp;&amp;E.visible?(a.xaxis=E.xaxis,a.yaxis=E.yaxis):a.visible=!1}},x.supplyAnimationDefaults=function(t){var e;t=t||{};var r={};function n(e,n){return c.coerce(t||{},r,d,e,n)}if(n(&quot;mode&quot;),n(&quot;direction&quot;),n(&quot;fromcurrent&quot;),Array.isArray(t.frame))for(r.frame=[],e=0;e&lt;t.frame.length;e++)r.frame[e]=x.supplyAnimationFrameDefaults(t.frame[e]||{});else r.frame=x.supplyAnimationFrameDefaults(t.frame||{});if(Array.isArray(t.transition))for(r.transition=[],e=0;e&lt;t.transition.length;e++)r.transition[e]=x.supplyAnimationTransitionDefaults(t.transition[e]||{});else r.transition=x.supplyAnimationTransitionDefaults(t.transition||{});return r},x.supplyAnimationFrameDefaults=function(t){var e={};function r(r,n){return c.coerce(t||{},e,d.frame,r,n)}return r(&quot;duration&quot;),r(&quot;redraw&quot;),e},x.supplyAnimationTransitionDefaults=function(t){var e={};function r(r,n){return c.coerce(t||{},e,d.transition,r,n)}return r(&quot;duration&quot;),r(&quot;easing&quot;),e},x.supplyFrameDefaults=function(t){var e={};function r(r,n){return c.coerce(t,e,g,r,n)}return r(&quot;group&quot;),r(&quot;name&quot;),r(&quot;traces&quot;),r(&quot;baseframe&quot;),r(&quot;data&quot;),r(&quot;layout&quot;),e},x.supplyTraceDefaults=function(t,e,r,n,i){var a,s=n.colorway||u.defaults,l=s[r%s.length];function f(r,n){return c.coerce(t,e,x.attributes,r,n)}var h=f(&quot;visible&quot;);f(&quot;type&quot;),f(&quot;name&quot;,n._traceWord+&quot; &quot;+i),f(&quot;uirevision&quot;,n.uirevision);var p=x.getModule(e);if(e._module=p,p){var d=p.basePlotModule,g=d.attr,m=d.attributes;if(g&amp;&amp;m){var v=n._subplots,y=&quot;&quot;;if(h||&quot;gl2d&quot;!==d.name){if(Array.isArray(g))for(a=0;a&lt;g.length;a++){var b=g[a],_=c.coerce(t,e,m,b);v[b]&amp;&amp;c.pushUnique(v[b],_),y+=_}else y=c.coerce(t,e,m,g);v[d.name]&amp;&amp;c.pushUnique(v[d.name],y)}}}return h&amp;&amp;(f(&quot;customdata&quot;),f(&quot;ids&quot;),f(&quot;meta&quot;),o.traceIs(e,&quot;showLegend&quot;)?(c.coerce(t,e,p.attributes.showlegend?p.attributes:x.attributes,&quot;showlegend&quot;),f(&quot;legendgroup&quot;),e._dfltShowLegend=!0):e._dfltShowLegend=!1,p&amp;&amp;p.supplyDefaults(t,e,l,n),o.traceIs(e,&quot;noOpacity&quot;)||f(&quot;opacity&quot;),o.traceIs(e,&quot;notLegendIsolatable&quot;)&amp;&amp;(e.visible=!!e.visible),o.traceIs(e,&quot;noHover&quot;)||(e.hovertemplate||c.coerceHoverinfo(t,e,n),&quot;parcats&quot;!==e.type&amp;&amp;o.getComponentMethod(&quot;fx&quot;,&quot;supplyDefaults&quot;)(t,e,l,n)),p&amp;&amp;p.selectPoints&amp;&amp;f(&quot;selectedpoints&quot;),x.supplyTransformDefaults(t,e,n)),e},x.hasMakesDataTransform=A,x.supplyTransformDefaults=function(t,e,r){if(e._length||A(t)){var n=r._globalTransforms||[],i=r._transformModules||[];if(Array.isArray(t.transforms)||0!==n.length)for(var a=t.transforms||[],o=n.concat(a),s=e.transforms=[],l=0;l&lt;o.length;l++){var u,f=o[l],h=f.type,p=b[h],d=!(f._module&amp;&amp;f._module===p),g=p&amp;&amp;&quot;function&quot;==typeof p.transform;p||c.warn(&quot;Unrecognized transform type &quot;+h+&quot;.&quot;),p&amp;&amp;p.supplyDefaults&amp;&amp;(d||g)?((u=p.supplyDefaults(f,e,r,t)).type=h,u._module=p,c.pushUnique(i,p)):u=c.extendFlat({},f),s.push(u)}}},x.supplyLayoutGlobalDefaults=function(t,e,r){function n(r,n){return c.coerce(t,e,x.layoutAttributes,r,n)}var i=t.template;c.isPlainObject(i)&amp;&amp;(e.template=i,e._template=i.layout,e._dataTemplate=i.data),n(&quot;autotypenumbers&quot;);var a=c.coerceFont(n,&quot;font&quot;);n(&quot;title.text&quot;,e._dfltTitle.plot),c.coerceFont(n,&quot;title.font&quot;,{family:a.family,size:Math.round(1.4*a.size),color:a.color}),n(&quot;title.xref&quot;),n(&quot;title.yref&quot;),n(&quot;title.x&quot;),n(&quot;title.y&quot;),n(&quot;title.xanchor&quot;),n(&quot;title.yanchor&quot;),n(&quot;title.pad.t&quot;),n(&quot;title.pad.r&quot;),n(&quot;title.pad.b&quot;),n(&quot;title.pad.l&quot;),n(&quot;uniformtext.mode&quot;)&amp;&amp;n(&quot;uniformtext.minsize&quot;),n(&quot;autosize&quot;,!(t.width&amp;&amp;t.height)),n(&quot;width&quot;),n(&quot;height&quot;),n(&quot;margin.l&quot;),n(&quot;margin.r&quot;),n(&quot;margin.t&quot;),n(&quot;margin.b&quot;),n(&quot;margin.pad&quot;),n(&quot;margin.autoexpand&quot;),t.width&amp;&amp;t.height&amp;&amp;x.sanitizeMargins(e),o.getComponentMethod(&quot;grid&quot;,&quot;sizeDefaults&quot;)(t,e),n(&quot;paper_bgcolor&quot;),n(&quot;separators&quot;,r.decimal+r.thousands),n(&quot;hidesources&quot;),n(&quot;colorway&quot;),n(&quot;datarevision&quot;);var s=n(&quot;uirevision&quot;);n(&quot;editrevision&quot;,s),n(&quot;selectionrevision&quot;,s),n(&quot;modebar.orientation&quot;),n(&quot;modebar.bgcolor&quot;,u.addOpacity(e.paper_bgcolor,.5));var l=u.contrast(u.rgb(e.modebar.bgcolor));n(&quot;modebar.color&quot;,u.addOpacity(l,.3)),n(&quot;modebar.activecolor&quot;,u.addOpacity(l,.7)),n(&quot;modebar.uirevision&quot;,s),o.getComponentMethod(&quot;shapes&quot;,&quot;supplyDrawNewShapeDefaults&quot;)(t,e,n),n(&quot;meta&quot;),c.isPlainObject(t.transition)&amp;&amp;(n(&quot;transition.duration&quot;),n(&quot;transition.easing&quot;),n(&quot;transition.ordering&quot;)),o.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;),o.getComponentMethod(&quot;fx&quot;,&quot;supplyLayoutGlobalDefaults&quot;)(t,e,n)},x.plotAutoSize=function(t,e,r){var n,i,o=t._context||{},s=o.frameMargins,l=c.isPlotDiv(t);if(l&amp;&amp;t.emit(&quot;plotly_autosize&quot;),o.fillFrame)n=window.innerWidth,i=window.innerHeight,document.body.style.overflow=&quot;hidden&quot;;else{var u=l?window.getComputedStyle(t):{};if(n=E(u.width)||E(u.maxWidth)||r.width,i=E(u.height)||E(u.maxHeight)||r.height,a(s)&amp;&amp;s&gt;0){var f=1-2*s;n=Math.round(f*n),i=Math.round(f*i)}}var h=x.layoutAttributes.width.min,p=x.layoutAttributes.height.min;n&lt;h&amp;&amp;(n=h),i&lt;p&amp;&amp;(i=p);var d=!e.width&amp;&amp;Math.abs(r.width-n)&gt;1,g=!e.height&amp;&amp;Math.abs(r.height-i)&gt;1;(g||d)&amp;&amp;(d&amp;&amp;(r.width=n),g&amp;&amp;(r.height=i)),t._initialAutoSize||(t._initialAutoSize={width:n,height:i}),x.sanitizeMargins(r)},x.supplyLayoutModuleDefaults=function(t,e,r,n){var i,a,s,l=o.componentsRegistry,u=e._basePlotModules,f=o.subplotsRegistry.cartesian;for(i in l)(s=l[i]).includeBasePlot&amp;&amp;s.includeBasePlot(t,e);for(var h in u.length||u.push(f),e._has(&quot;cartesian&quot;)&amp;&amp;(o.getComponentMethod(&quot;grid&quot;,&quot;contentDefaults&quot;)(t,e),f.finalizeSubplots(t,e)),e._subplots)e._subplots[h].sort(c.subplotSort);for(a=0;a&lt;u.length;a++)(s=u[a]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r);var p=e._modules;for(a=0;a&lt;p.length;a++)(s=p[a]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r);var d=e._transformModules;for(a=0;a&lt;d.length;a++)(s=d[a]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r,n);for(i in l)(s=l[i]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r)},x.purge=function(t){var e=t._fullLayout||{};void 0!==e._glcontainer&amp;&amp;(e._glcontainer.selectAll(&quot;.gl-canvas&quot;).remove(),e._glcontainer.remove(),e._glcanvas=null),e._modeBar&amp;&amp;e._modeBar.destroy(),t._transitionData&amp;&amp;(t._transitionData._interruptCallbacks&amp;&amp;(t._transitionData._interruptCallbacks.length=0),t._transitionData._animationRaf&amp;&amp;window.cancelAnimationFrame(t._transitionData._animationRaf)),c.clearThrottle(),c.clearResponsive(t),delete t.data,delete t.layout,delete t._fullData,delete t._fullLayout,delete t.calcdata,delete t.framework,delete t.empty,delete t.fid,delete t.undoqueue,delete t.undonum,delete t.autoplay,delete t.changed,delete t._promises,delete t._redrawTimer,delete t._hmlumcount,delete t._hmpixcount,delete t._transitionData,delete t._transitioning,delete t._initialAutoSize,delete t._transitioningWithDuration,delete t._dragging,delete t._dragged,delete t._dragdata,delete t._hoverdata,delete t._snapshotInProgress,delete t._editing,delete t._mouseDownTime,delete t._legendMouseDownTime,t.removeAllListeners&amp;&amp;t.removeAllListeners()},x.style=function(t){var e,r=t._fullLayout._visibleModules,n=[];for(e=0;e&lt;r.length;e++){var i=r[e];i.style&amp;&amp;c.pushUnique(n,i.style)}for(e=0;e&lt;n.length;e++)n[e](t)},x.sanitizeMargins=function(t){if(t&amp;&amp;t.margin){var e,r=t.width,n=t.height,i=t.margin,a=r-(i.l+i.r),o=n-(i.t+i.b);a&lt;0&amp;&amp;(e=(r-1)/(i.l+i.r),i.l=Math.floor(e*i.l),i.r=Math.floor(e*i.r)),o&lt;0&amp;&amp;(e=(n-1)/(i.t+i.b),i.t=Math.floor(e*i.t),i.b=Math.floor(e*i.b))}},x.clearAutoMarginIds=function(t){t._fullLayout._pushmarginIds={}},x.allowAutoMargin=function(t,e){t._fullLayout._pushmarginIds[e]=1};x.autoMargin=function(t,e,r){var n=t._fullLayout,i=n.width,a=n.height,o=n.margin,s=c.constrain(i-o.l-o.r,2,64),l=c.constrain(a-o.t-o.b,2,64),u=Math.max(0,i-s),f=Math.max(0,a-l),h=n._pushmargin,p=n._pushmarginIds;if(!1!==o.autoexpand){if(r){var d=r.pad;if(void 0===d&amp;&amp;(d=Math.min(12,o.l,o.r,o.t,o.b)),u){var g=(r.l+r.r)/u;g&gt;1&amp;&amp;(r.l/=g,r.r/=g)}if(f){var m=(r.t+r.b)/f;m&gt;1&amp;&amp;(r.t/=m,r.b/=m)}var v=void 0!==r.xl?r.xl:r.x,y=void 0!==r.xr?r.xr:r.x,b=void 0!==r.yt?r.yt:r.y,_=void 0!==r.yb?r.yb:r.y;h[e]={l:{val:v,size:r.l+d},r:{val:y,size:r.r+d},b:{val:_,size:r.b+d},t:{val:b,size:r.t+d}},p[e]=1}else delete h[e],delete p[e];if(!n._replotting)return x.doAutoMargin(t)}},x.doAutoMargin=function(t){var e=t._fullLayout,r=e.width,n=e.height;e._size||(e._size={}),C(e);var i=e._size,s=e.margin,l=c.extendFlat({},i),u=s.l,f=s.r,p=s.t,d=s.b,g=e._pushmargin,m=e._pushmarginIds;if(!1!==e.margin.autoexpand){for(var v in g)m[v]||delete g[v];for(var y in g.base={l:{val:0,size:u},r:{val:1,size:f},t:{val:1,size:p},b:{val:0,size:d}},g){var b=g[y].l||{},_=g[y].b||{},w=b.val,T=b.size,k=_.val,M=_.size;for(var A in g){if(a(T)&amp;&amp;g[A].r){var S=g[A].r.val,E=g[A].r.size;if(S&gt;w){var L=(T*S+(E-r)*w)/(S-w),I=(E*(1-w)+(T-r)*(1-S))/(S-w);L+I&gt;u+f&amp;&amp;(u=L,f=I)}}if(a(M)&amp;&amp;g[A].t){var P=g[A].t.val,z=g[A].t.size;if(P&gt;k){var O=(M*P+(z-n)*k)/(P-k),D=(z*(1-k)+(M-n)*(1-P))/(P-k);O+D&gt;d+p&amp;&amp;(d=O,p=D)}}}}}var R=c.constrain(r-s.l-s.r,2,64),F=c.constrain(n-s.t-s.b,2,64),B=Math.max(0,r-R),N=Math.max(0,n-F);if(B){var j=(u+f)/B;j&gt;1&amp;&amp;(u/=j,f/=j)}if(N){var U=(d+p)/N;U&gt;1&amp;&amp;(d/=U,p/=U)}if(i.l=Math.round(u),i.r=Math.round(f),i.t=Math.round(p),i.b=Math.round(d),i.p=Math.round(s.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!e._replotting&amp;&amp;x.didMarginChange(l,i)){&quot;_redrawFromAutoMarginCount&quot;in e?e._redrawFromAutoMarginCount++:e._redrawFromAutoMarginCount=1;var V=3*(1+Object.keys(m).length);if(e._redrawFromAutoMarginCount&lt;V)return o.call(&quot;plot&quot;,t);e._size=l,c.warn(&quot;Too many auto-margin redraws.&quot;)}!function(t){for(var e=h.list(t,&quot;&quot;,!0),r=0;r&lt;e.length;r++){var n=e[r]._hideOutOfRangeInsideTickLabels;n&amp;&amp;n()}}(t)};var L=[&quot;l&quot;,&quot;r&quot;,&quot;t&quot;,&quot;b&quot;,&quot;p&quot;,&quot;w&quot;,&quot;h&quot;];function I(t,e,r){var n=!1;var i=[x.previousPromises,function(){if(t._transitionData)return t._transitioning=!1,function(t){var e=Promise.resolve();if(!t)return e;for(;t.length;)e=e.then(t.shift());return e}(t._transitionData._interruptCallbacks)},r.prepareFn,x.rehover,function(){return t.emit(&quot;plotly_transitioning&quot;,[]),new Promise((function(i){t._transitioning=!0,e.duration&gt;0&amp;&amp;(t._transitioningWithDuration=!0),t._transitionData._interruptCallbacks.push((function(){n=!0})),r.redraw&amp;&amp;t._transitionData._interruptCallbacks.push((function(){return o.call(&quot;redraw&quot;,t)})),t._transitionData._interruptCallbacks.push((function(){t.emit(&quot;plotly_transitioninterrupted&quot;,[])}));var a=0,s=0;function l(){return a++,function(){s++,n||s!==a||function(e){if(!t._transitionData)return;(function(t){if(t)for(;t.length;)t.shift()})(t._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return o.call(&quot;redraw&quot;,t)})).then((function(){t._transitioning=!1,t._transitioningWithDuration=!1,t.emit(&quot;plotly_transitioned&quot;,[])})).then(e)}(i)}}r.runFn(l),setTimeout(l())}))}],a=c.syncOrAsync(i,t);return a&amp;&amp;a.then||(a=Promise.resolve()),a.then((function(){return t}))}x.didMarginChange=function(t,e){for(var r=0;r&lt;L.length;r++){var n=L[r],i=t[n],o=e[n];if(!a(i)||Math.abs(o-i)&gt;1)return!0}return!1},x.graphJson=function(t,e,r,n,i,a){(i&amp;&amp;e&amp;&amp;!t._fullData||i&amp;&amp;!e&amp;&amp;!t._fullLayout)&amp;&amp;x.supplyDefaults(t);var o=i?t._fullData:t.data,s=i?t._fullLayout:t.layout,l=(t._transitionData||{})._frames;function u(t,e){if(&quot;function&quot;==typeof t)return e?&quot;_function_&quot;:null;if(c.isPlainObject(t)){var n,i={};return Object.keys(t).sort().forEach((function(a){if(-1===[&quot;_&quot;,&quot;[&quot;].indexOf(a.charAt(0)))if(&quot;function&quot;!=typeof t[a]){if(&quot;keepdata&quot;===r){if(&quot;src&quot;===a.substr(a.length-3))return}else if(&quot;keepstream&quot;===r){if(&quot;string&quot;==typeof(n=t[a+&quot;src&quot;])&amp;&amp;n.indexOf(&quot;:&quot;)&gt;0&amp;&amp;!c.isPlainObject(t.stream))return}else if(&quot;keepall&quot;!==r&amp;&amp;&quot;string&quot;==typeof(n=t[a+&quot;src&quot;])&amp;&amp;n.indexOf(&quot;:&quot;)&gt;0)return;i[a]=u(t[a],e)}else e&amp;&amp;(i[a]=&quot;_function&quot;)})),i}return Array.isArray(t)?t.map((function(t){return u(t,e)})):c.isTypedArray(t)?c.simpleMap(t,c.identity):c.isJSDate(t)?c.ms2DateTimeLocal(+t):t}var f={data:(o||[]).map((function(t){var r=u(t);return e&amp;&amp;delete r.fit,r}))};if(!e&amp;&amp;(f.layout=u(s),i)){var h=s._size;f.layout.computed={margin:{b:h.b,l:h.l,r:h.r,t:h.t}}}return t.framework&amp;&amp;t.framework.isPolar&amp;&amp;(f=t.framework.getConfig()),l&amp;&amp;(f.frames=u(l)),a&amp;&amp;(f.config=u(t._context,!0)),&quot;object&quot;===n?f:JSON.stringify(f)},x.modifyFrames=function(t,e){var r,n,i,a=t._transitionData._frames,o=t._transitionData._frameHash;for(r=0;r&lt;e.length;r++)switch((n=e[r]).type){case&quot;replace&quot;:i=n.value;var s=(a[n.index]||{}).name,l=i.name;a[n.index]=o[l]=i,l!==s&amp;&amp;(delete o[s],o[l]=i);break;case&quot;insert&quot;:o[(i=n.value).name]=i,a.splice(n.index,0,i);break;case&quot;delete&quot;:delete o[(i=a[n.index]).name],a.splice(n.index,1)}return Promise.resolve()},x.computeFrame=function(t,e){var r,n,i,a,o=t._transitionData._frameHash;if(!e)throw new Error(&quot;computeFrame must be given a string frame name&quot;);var s=o[e.toString()];if(!s)return!1;for(var l=[s],c=[s.name];s.baseframe&amp;&amp;(s=o[s.baseframe.toString()])&amp;&amp;-1===c.indexOf(s.name);)l.push(s),c.push(s.name);for(var u={};s=l.pop();)if(s.layout&amp;&amp;(u.layout=x.extendLayout(u.layout,s.layout)),s.data){if(u.data||(u.data=[]),!(n=s.traces))for(n=[],r=0;r&lt;s.data.length;r++)n[r]=r;for(u.traces||(u.traces=[]),r=0;r&lt;s.data.length;r++)null!=(i=n[r])&amp;&amp;(-1===(a=u.traces.indexOf(i))&amp;&amp;(a=u.data.length,u.traces[a]=i),u.data[a]=x.extendTrace(u.data[a],s.data[r]))}return u},x.recomputeFrameHash=function(t){for(var e=t._transitionData._frameHash={},r=t._transitionData._frames,n=0;n&lt;r.length;n++){var i=r[n];i&amp;&amp;i.name&amp;&amp;(e[i.name]=i)}},x.extendObjectWithContainers=function(t,e,r){var n,i,a,o,s,l,u,f=c.extendDeepNoArrays({},e||{}),h=c.expandObjectPaths(f),p={};if(r&amp;&amp;r.length)for(a=0;a&lt;r.length;a++)void 0===(i=(n=c.nestedProperty(h,r[a])).get())?c.nestedProperty(p,r[a]).set(null):(n.set(null),c.nestedProperty(p,r[a]).set(i));if(t=c.extendDeepNoArrays(t||{},h),r&amp;&amp;r.length)for(a=0;a&lt;r.length;a++)if(l=c.nestedProperty(p,r[a]).get()){for(u=(s=c.nestedProperty(t,r[a])).get(),Array.isArray(u)||(u=[],s.set(u)),o=0;o&lt;l.length;o++){var d=l[o];u[o]=null===d?null:x.extendObjectWithContainers(u[o],d)}s.set(u)}return t},x.dataArrayContainers=[&quot;transforms&quot;,&quot;dimensions&quot;],x.layoutArrayContainers=o.layoutArrayContainers,x.extendTrace=function(t,e){return x.extendObjectWithContainers(t,e,x.dataArrayContainers)},x.extendLayout=function(t,e){return x.extendObjectWithContainers(t,e,x.layoutArrayContainers)},x.transition=function(t,e,r,n,i,a){var o={redraw:i.redraw},s={},l=[];return o.prepareFn=function(){for(var i=Array.isArray(e)?e.length:0,a=n.slice(0,i),o=0;o&lt;a.length;o++){var u=a[o],f=t._fullData[u]._module;if(f){if(f.animatable){var h=f.basePlotModule.name;s[h]||(s[h]=[]),s[h].push(u)}t.data[a[o]]=x.extendTrace(t.data[a[o]],e[o])}}var p=c.expandObjectPaths(c.extendDeepNoArrays({},r)),d=/^[xy]axis[0-9]*$/;for(var g in p)d.test(g)&amp;&amp;delete p[g].range;x.extendLayout(t.layout,p),delete t.calcdata,x.supplyDefaults(t),x.doCalcdata(t);var m=c.expandObjectPaths(r);if(m){var v=t._fullLayout._plots;for(var y in v){var b=v[y],_=b.xaxis,w=b.yaxis,T=_.range.slice(),k=w.range.slice(),M=null,A=null,S=null,E=null;Array.isArray(m[_._name+&quot;.range&quot;])?M=m[_._name+&quot;.range&quot;].slice():Array.isArray((m[_._name]||{}).range)&amp;&amp;(M=m[_._name].range.slice()),Array.isArray(m[w._name+&quot;.range&quot;])?A=m[w._name+&quot;.range&quot;].slice():Array.isArray((m[w._name]||{}).range)&amp;&amp;(A=m[w._name].range.slice()),T&amp;&amp;M&amp;&amp;(_.r2l(T[0])!==_.r2l(M[0])||_.r2l(T[1])!==_.r2l(M[1]))&amp;&amp;(S={xr0:T,xr1:M}),k&amp;&amp;A&amp;&amp;(w.r2l(k[0])!==w.r2l(A[0])||w.r2l(k[1])!==w.r2l(A[1]))&amp;&amp;(E={yr0:k,yr1:A}),(S||E)&amp;&amp;l.push(c.extendFlat({plotinfo:b},S,E))}}return Promise.resolve()},o.runFn=function(e){var n,i,o=t._fullLayout._basePlotModules,u=l.length;if(r)for(i=0;i&lt;o.length;i++)o[i].transitionAxes&amp;&amp;o[i].transitionAxes(t,l,a,e);for(var f in u?((n=c.extendFlat({},a)).duration=0,delete s.cartesian):n=a,s){var h=s[f];t._fullData[h[0]]._module.basePlotModule.plot(t,h,n,e)}},I(t,a,o)},x.transitionFromReact=function(t,e,r,n){var i=t._fullLayout,a=i.transition,o={},s=[];return o.prepareFn=function(){var t=i._plots;for(var a in o.redraw=!1,&quot;some&quot;===e.anim&amp;&amp;(o.redraw=!0),&quot;some&quot;===r.anim&amp;&amp;(o.redraw=!0),t){var l=t[a],u=l.xaxis,f=l.yaxis,h=n[u._name].range.slice(),p=n[f._name].range.slice(),d=u.range.slice(),g=f.range.slice();u.setScale(),f.setScale();var m=null,v=null;u.r2l(h[0])===u.r2l(d[0])&amp;&amp;u.r2l(h[1])===u.r2l(d[1])||(m={xr0:h,xr1:d}),f.r2l(p[0])===f.r2l(g[0])&amp;&amp;f.r2l(p[1])===f.r2l(g[1])||(v={yr0:p,yr1:g}),(m||v)&amp;&amp;s.push(c.extendFlat({plotinfo:l},m,v))}return Promise.resolve()},o.runFn=function(r){for(var n,i,o,l=t._fullData,u=t._fullLayout._basePlotModules,f=[],h=0;h&lt;l.length;h++)f.push(h);function p(){for(var e=0;e&lt;u.length;e++)u[e].transitionAxes&amp;&amp;u[e].transitionAxes(t,s,n,r)}function d(){for(var e=0;e&lt;u.length;e++)u[e].plot(t,o,i,r)}s.length&amp;&amp;e.anim?&quot;traces first&quot;===a.ordering?(n=c.extendFlat({},a,{duration:0}),o=f,i=a,setTimeout(p,a.duration),d()):(n=a,o=null,i=c.extendFlat({},a,{duration:0}),setTimeout(d,n.duration),p()):s.length?(n=a,p()):e.anim&amp;&amp;(o=f,i=a,d())},I(t,a,o)},x.doCalcdata=function(t,e){var r,n,i,a,l=h.list(t),u=t._fullData,p=t._fullLayout,d=new Array(u.length),g=(t.calcdata||[]).slice();for(t.calcdata=d,p._numBoxes=0,p._numViolins=0,p._violinScaleGroupStats={},t._hmpixcount=0,t._hmlumcount=0,p._piecolormap={},p._sunburstcolormap={},p._treemapcolormap={},p._funnelareacolormap={},i=0;i&lt;u.length;i++)Array.isArray(e)&amp;&amp;-1===e.indexOf(i)&amp;&amp;(d[i]=g[i]);for(i=0;i&lt;u.length;i++)(r=u[i])._arrayAttrs=s.findArrayAttributes(r),r._extremes={};var m=p._subplots.polar||[];for(i=0;i&lt;m.length;i++)l.push(p[m[i]].radialaxis,p[m[i]].angularaxis);for(var v in p._colorAxes){var y=p[v];!1!==y.cauto&amp;&amp;(delete y.cmin,delete y.cmax)}var x=!1;function _(e){if(r=u[e],n=r._module,!0===r.visible&amp;&amp;r.transforms){if(n&amp;&amp;n.calc){var i=n.calc(t,r);i[0]&amp;&amp;i[0].t&amp;&amp;i[0].t._scene&amp;&amp;delete i[0].t._scene.dirty}for(a=0;a&lt;r.transforms.length;a++){var o=r.transforms[a];(n=b[o.type])&amp;&amp;n.calcTransform&amp;&amp;(r._hasCalcTransform=!0,x=!0,n.calcTransform(t,r,o))}}}function w(e,i){if(r=u[e],!!(n=r._module).isContainer===i){var o=[];if(!0===r.visible&amp;&amp;0!==r._length){delete r._indexToPoints;var s=r.transforms||[];for(a=s.length-1;a&gt;=0;a--)if(s[a].enabled){r._indexToPoints=s[a]._indexToPoints;break}n&amp;&amp;n.calc&amp;&amp;(o=n.calc(t,r))}Array.isArray(o)&amp;&amp;o[0]||(o=[{x:f,y:f}]),o[0].t||(o[0].t={}),o[0].trace=r,d[e]=o}}for(z(l,u,p),i=0;i&lt;u.length;i++)w(i,!0);for(i=0;i&lt;u.length;i++)_(i);for(x&amp;&amp;z(l,u,p),i=0;i&lt;u.length;i++)w(i,!0);for(i=0;i&lt;u.length;i++)w(i,!1);O(t);var T=function(t,e){var r,n,i,a,s,l=[];function u(t,r,n){var i=r._id.charAt(0);if(&quot;histogram2dcontour&quot;===t){var a=r._counterAxes[0],o=h.getFromId(e,a),s=&quot;x&quot;===i||&quot;x&quot;===a&amp;&amp;&quot;category&quot;===o.type,l=&quot;y&quot;===i||&quot;y&quot;===a&amp;&amp;&quot;category&quot;===o.type;return function(t,e){return 0===t||0===e||s&amp;&amp;t===n[e].length-1||l&amp;&amp;e===n.length-1?-1:(&quot;y&quot;===i?e:t)-1}}return function(t,e){return&quot;y&quot;===i?e:t}}var f={min:function(t){return c.aggNums(Math.min,null,t)},max:function(t){return c.aggNums(Math.max,null,t)},sum:function(t){return c.aggNums((function(t,e){return t+e}),null,t)},total:function(t){return c.aggNums((function(t,e){return t+e}),null,t)},mean:function(t){return c.mean(t)},median:function(t){return c.median(t)}};for(r=0;r&lt;t.length;r++){var p=t[r];if(&quot;category&quot;===p.type){var d=p.categoryorder.match(P);if(d){var g=d[1],m=d[2],v=p._id.charAt(0),y=&quot;x&quot;===v,x=[];for(n=0;n&lt;p._categories.length;n++)x.push([p._categories[n],[]]);for(n=0;n&lt;p._traceIndices.length;n++){var b=p._traceIndices[n],_=e._fullData[b];if(!0===_.visible){var w=_.type;o.traceIs(_,&quot;histogram&quot;)&amp;&amp;(delete _._xautoBinFinished,delete _._yautoBinFinished);var T=&quot;splom&quot;===w,k=&quot;scattergl&quot;===w,M=e.calcdata[b];for(i=0;i&lt;M.length;i++){var A,S,E=M[i];if(T){var C=_._axesDim[p._id];if(!y){var L=_._diag[C][0];L&amp;&amp;(p=e._fullLayout[h.id2name(L)])}var I=E.trace.dimensions[C].values;for(a=0;a&lt;I.length;a++)for(A=p._categoriesMap[I[a]],s=0;s&lt;E.trace.dimensions.length;s++)if(s!==C){var z=E.trace.dimensions[s];x[A][1].push(z.values[a])}}else if(k){for(a=0;a&lt;E.t.x.length;a++)y?(A=E.t.x[a],S=E.t.y[a]):(A=E.t.y[a],S=E.t.x[a]),x[A][1].push(S);E.t&amp;&amp;E.t._scene&amp;&amp;delete E.t._scene.dirty}else if(E.hasOwnProperty(&quot;z&quot;)){S=E.z;var O=u(_.type,p,S);for(a=0;a&lt;S.length;a++)for(s=0;s&lt;S[a].length;s++)(A=O(s,a))+1&amp;&amp;x[A][1].push(S[a][s])}else for(void 0===(A=E.p)&amp;&amp;(A=E[v]),void 0===(S=E.s)&amp;&amp;(S=E.v),void 0===S&amp;&amp;(S=y?E.y:E.x),Array.isArray(S)||(S=void 0===S?[]:[S]),a=0;a&lt;S.length;a++)x[A][1].push(S[a])}}}p._categoriesValue=x;var D=[];for(n=0;n&lt;x.length;n++)D.push([x[n][0],f[g](x[n][1])]);D.sort((function(t,e){return t[1]-e[1]})),p._categoriesAggregatedValue=D,p._initialCategories=D.map((function(t){return t[0]})),&quot;descending&quot;===m&amp;&amp;p._initialCategories.reverse(),l=l.concat(p.sortByInitialCategories())}}}return l}(l,t);if(T.length){for(p._numBoxes=0,p._numViolins=0,i=0;i&lt;T.length;i++)w(T[i],!0);for(i=0;i&lt;T.length;i++)w(T[i],!1);O(t)}o.getComponentMethod(&quot;fx&quot;,&quot;calc&quot;)(t),o.getComponentMethod(&quot;errorbars&quot;,&quot;calc&quot;)(t)};var P=/(total|sum|min|max|mean|median) (ascending|descending)/;function z(t,e,r){var n={};function i(t){t.clearCalc(),&quot;multicategory&quot;===t.type&amp;&amp;t.setupMultiCategory(e),n[t._id]=1}c.simpleMap(t,i);for(var a=r._axisMatchGroups||[],o=0;o&lt;a.length;o++)for(var s in a[o])n[s]||i(r[h.id2name(s)])}function O(t){var e,r,n,i=t._fullLayout,a=i._visibleModules,o={};for(r=0;r&lt;a.length;r++){var s=a[r],l=s.crossTraceCalc;if(l){var u=s.basePlotModule.name;o[u]?c.pushUnique(o[u],l):o[u]=[l]}}for(n in o){var f=o[n],h=i._subplots[n];if(Array.isArray(h))for(e=0;e&lt;h.length;e++){var p=h[e],d=&quot;cartesian&quot;===n?i._plots[p]:i[p];for(r=0;r&lt;f.length;r++)f[r](t,d,p)}else for(r=0;r&lt;f.length;r++)f[r](t)}}x.rehover=function(t){t._fullLayout._rehover&amp;&amp;t._fullLayout._rehover()},x.redrag=function(t){t._fullLayout._redrag&amp;&amp;t._fullLayout._redrag()},x.generalUpdatePerTraceModule=function(t,e,r,n){var i,a=e.traceHash,o={};for(i=0;i&lt;r.length;i++){var s=r[i],l=s[0].trace;l.visible&amp;&amp;(o[l.type]=o[l.type]||[],o[l.type].push(s))}for(var u in a)if(!o[u]){var f=a[u][0];f[0].trace.visible=!1,o[u]=[f]}for(var h in o){var p=o[h];p[0][0].trace._module.plot(t,e,c.filterVisible(p),n)}e.traceHash=o},x.plotBasePlot=function(t,e,r,n,i){var a=o.getModule(t),s=m(e.calcdata,a)[0];a.plot(e,s,n,i)},x.cleanBasePlot=function(t,e,r,n,i){var a=i._has&amp;&amp;i._has(t),o=r._has&amp;&amp;r._has(t);a&amp;&amp;!o&amp;&amp;i[&quot;_&quot;+t+&quot;layer&quot;].selectAll(&quot;g.trace&quot;).remove()}},{&quot;../components/color&quot;:643,&quot;../constants/numerical&quot;:753,&quot;../lib&quot;:778,&quot;../plot_api/plot_schema&quot;:816,&quot;../plot_api/plot_template&quot;:817,&quot;../plots/get_data&quot;:865,&quot;../registry&quot;:911,&quot;./animation_attributes&quot;:822,&quot;./attributes&quot;:824,&quot;./cartesian/axis_ids&quot;:831,&quot;./cartesian/handle_outline&quot;:838,&quot;./command&quot;:854,&quot;./font_attributes&quot;:856,&quot;./frame_attributes&quot;:857,&quot;./layout_attributes&quot;:882,d3:169,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],892:[function(t,e,r){&quot;use strict&quot;;e.exports={attr:&quot;subplot&quot;,name:&quot;polar&quot;,axisNames:[&quot;angularaxis&quot;,&quot;radialaxis&quot;],axisName2dataArray:{angularaxis:&quot;theta&quot;,radialaxis:&quot;r&quot;},layerNames:[&quot;draglayer&quot;,&quot;plotbg&quot;,&quot;backplot&quot;,&quot;angular-grid&quot;,&quot;radial-grid&quot;,&quot;frontplot&quot;,&quot;angular-line&quot;,&quot;radial-line&quot;,&quot;angular-axis&quot;,&quot;radial-axis&quot;],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}},{}],893:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/polygon&quot;).tester,a=n.findIndexOfMin,o=n.isAngleInsideSector,s=n.angleDelta,l=n.angleDist;function c(t,e,r,n){var i,a,o=n[0],s=n[1],l=f(Math.sin(e)-Math.sin(t)),c=f(Math.cos(e)-Math.cos(t)),u=Math.tan(r),h=f(1/u),p=l/c,d=s-p*o;return h?l&amp;&amp;c?a=u*(i=d/(u-p)):c?(i=s*h,a=s):(i=o,a=o*u):l&amp;&amp;c?(i=0,a=d):c?(i=0,a=s):i=a=NaN,[i,a]}function u(t,e,r,i){return n.isFullCircle([e,r])?function(t,e){var r,n=e.length,i=new Array(n+1);for(r=0;r&lt;n;r++){var a=e[r];i[r]=[t*Math.cos(a),t*Math.sin(a)]}return i[r]=i[0].slice(),i}(t,i):function(t,e,r,i){var s,u,f=i.length,h=[];function p(e){return[t*Math.cos(e),t*Math.sin(e)]}function d(t,e,r){return c(t,e,r,p(t))}function g(t){return n.mod(t,f)}function m(t){return o(t,[e,r])}var v=a(i,(function(t){return m(t)?l(t,e):1/0})),y=d(i[v],i[g(v-1)],e);for(h.push(y),s=v,u=0;u&lt;f;s++,u++){var x=i[g(s)];if(!m(x))break;h.push(p(x))}var b=a(i,(function(t){return m(t)?l(t,r):1/0})),_=d(i[b],i[g(b+1)],r);return h.push(_),h.push([0,0]),h.push(h[0].slice()),h}(t,e,r,i)}function f(t){return Math.abs(t)&gt;1e-10?t:0}function h(t,e,r){e=e||0,r=r||0;for(var n=t.length,i=new Array(n),a=0;a&lt;n;a++){var o=t[a];i[a]=[e+o[0],r-o[1]]}return i}e.exports={isPtInsidePolygon:function(t,e,r,n,a){if(!o(e,n))return!1;var s,l;r[0]&lt;r[1]?(s=r[0],l=r[1]):(s=r[1],l=r[0]);var c=i(u(s,n[0],n[1],a)),f=i(u(l,n[0],n[1],a)),h=[t*Math.cos(e),t*Math.sin(e)];return f.contains(h)&amp;&amp;!c.contains(h)},findPolygonOffset:function(t,e,r,n){for(var i=1/0,a=1/0,o=u(t,e,r,n),s=0;s&lt;o.length;s++){var l=o[s];i=Math.min(i,l[0]),a=Math.min(a,-l[1])}return[i,a]},findEnclosingVertexAngles:function(t,e){var r=a(e,(function(e){var r=s(e,t);return r&gt;0?r:1/0})),i=n.mod(r+1,e.length);return[e[r],e[i]]},findIntersectionXY:c,findXYatLength:function(t,e,r,n){var i=-e*r,a=e*e+1,o=2*(e*i-r),s=i*i+r*r-t*t,l=Math.sqrt(o*o-4*a*s),c=(-o+l)/(2*a),u=(-o-l)/(2*a);return[[c,e*c+i+n],[u,e*u+i+n]]},clampTiny:f,pathPolygon:function(t,e,r,n,i,a){return&quot;M&quot;+h(u(t,e,r,n),i,a).join(&quot;L&quot;)},pathPolygonAnnulus:function(t,e,r,n,i,a,o){var s,l;t&lt;e?(s=t,l=e):(s=e,l=t);var c=h(u(s,r,n,i),a,o);return&quot;M&quot;+h(u(l,r,n,i),a,o).reverse().join(&quot;L&quot;)+&quot;M&quot;+c.join(&quot;L&quot;)}}},{&quot;../../lib&quot;:778,&quot;../../lib/polygon&quot;:790}],894:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../get_data&quot;).getSubplotCalcData,i=t(&quot;../../lib&quot;).counterRegex,a=t(&quot;./polar&quot;),o=t(&quot;./constants&quot;),s=o.attr,l=o.name,c=i(l),u={};u[s]={valType:&quot;subplotid&quot;,dflt:l,editType:&quot;calc&quot;},e.exports={attr:s,name:l,idRoot:l,idRegex:c,attrRegex:c,attributes:u,layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots[l],o=0;o&lt;i.length;o++){var s=i[o],c=n(r,l,s),u=e[s]._subplot;u||(u=a(t,s),e[s]._subplot=u),u.plot(c,e,t._promises)}},clean:function(t,e,r,n){for(var i=n._subplots[l]||[],a=n._has&amp;&amp;n._has(&quot;gl&quot;),o=e._has&amp;&amp;e._has(&quot;gl&quot;),s=a&amp;&amp;!o,c=0;c&lt;i.length;c++){var u=i[c],f=n[u]._subplot;if(!e[u]&amp;&amp;f)for(var h in f.framework.remove(),f.layers[&quot;radial-axis-title&quot;].remove(),f.clipPaths)f.clipPaths[h].remove();s&amp;&amp;f._scene&amp;&amp;(f._scene.destroy(),f._scene=null)}},toSVG:t(&quot;../cartesian&quot;).toSVG}},{&quot;../../lib&quot;:778,&quot;../cartesian&quot;:841,&quot;../get_data&quot;:865,&quot;./constants&quot;:892,&quot;./layout_attributes&quot;:895,&quot;./layout_defaults&quot;:896,&quot;./polar&quot;:903}],895:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../cartesian/layout_attributes&quot;),a=t(&quot;../domain&quot;).attributes,o=t(&quot;../../lib&quot;).extendFlat,s=t(&quot;../../plot_api/edit_types&quot;).overrideAll,l=s({color:i.color,showline:o({},i.showline,{dflt:!0}),linecolor:i.linecolor,linewidth:i.linewidth,showgrid:o({},i.showgrid,{dflt:!0}),gridcolor:i.gridcolor,gridwidth:i.gridwidth},&quot;plot&quot;,&quot;from-root&quot;),c=s({tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,showtickprefix:i.showtickprefix,tickprefix:i.tickprefix,showticksuffix:i.showticksuffix,ticksuffix:i.ticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickfont:i.tickfont,tickangle:i.tickangle,tickformat:i.tickformat,tickformatstops:i.tickformatstops,layer:i.layer},&quot;plot&quot;,&quot;from-root&quot;),u={visible:o({},i.visible,{dflt:!0}),type:o({},i.type,{values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;]}),autotypenumbers:i.autotypenumbers,autorange:o({},i.autorange,{editType:&quot;plot&quot;}),rangemode:{valType:&quot;enumerated&quot;,values:[&quot;tozero&quot;,&quot;nonnegative&quot;,&quot;normal&quot;],dflt:&quot;tozero&quot;,editType:&quot;calc&quot;},range:o({},i.range,{items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],editType:&quot;plot&quot;}),categoryorder:i.categoryorder,categoryarray:i.categoryarray,angle:{valType:&quot;angle&quot;,editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;],dflt:&quot;clockwise&quot;,editType:&quot;plot&quot;},title:{text:o({},i.title.text,{editType:&quot;plot&quot;,dflt:&quot;&quot;}),font:o({},i.title.font,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},hoverformat:i.hoverformat,uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;,_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}};o(u,l,c);var f={visible:o({},i.visible,{dflt:!0}),type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;category&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;,_noTemplating:!0},autotypenumbers:i.autotypenumbers,categoryorder:i.categoryorder,categoryarray:i.categoryarray,thetaunit:{valType:&quot;enumerated&quot;,values:[&quot;radians&quot;,&quot;degrees&quot;],dflt:&quot;degrees&quot;,editType:&quot;calc&quot;},period:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0},direction:{valType:&quot;enumerated&quot;,values:[&quot;counterclockwise&quot;,&quot;clockwise&quot;],dflt:&quot;counterclockwise&quot;,editType:&quot;calc&quot;},rotation:{valType:&quot;angle&quot;,editType:&quot;calc&quot;},hoverformat:i.hoverformat,uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;};o(f,l,c),e.exports={domain:a({name:&quot;polar&quot;,editType:&quot;plot&quot;}),sector:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],dflt:[0,360],editType:&quot;plot&quot;},hole:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;plot&quot;},bgcolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;,dflt:n.background},radialaxis:u,angularaxis:f,gridshape:{valType:&quot;enumerated&quot;,values:[&quot;circular&quot;,&quot;linear&quot;],dflt:&quot;circular&quot;,editType:&quot;plot&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;../cartesian/layout_attributes&quot;:842,&quot;../domain&quot;:855}],896:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;../subplot_defaults&quot;),s=t(&quot;../get_data&quot;).getSubplotData,l=t(&quot;../cartesian/tick_value_defaults&quot;),c=t(&quot;../cartesian/tick_mark_defaults&quot;),u=t(&quot;../cartesian/tick_label_defaults&quot;),f=t(&quot;../cartesian/category_order_defaults&quot;),h=t(&quot;../cartesian/line_grid_defaults&quot;),p=t(&quot;../cartesian/axis_autotype&quot;),d=t(&quot;./layout_attributes&quot;),g=t(&quot;./set_convert&quot;),m=t(&quot;./constants&quot;),v=m.axisNames;function y(t,e,r,o){var p=r(&quot;bgcolor&quot;);o.bgColor=i.combine(p,o.paper_bgcolor);var y=r(&quot;sector&quot;);r(&quot;hole&quot;);var b,_=s(o.fullData,m.name,o.id),w=o.layoutOut;function T(t,e){return r(b+&quot;.&quot;+t,e)}for(var k=0;k&lt;v.length;k++){b=v[k],n.isPlainObject(t[b])||(t[b]={});var M=t[b],A=a.newContainer(e,b);A._id=A._name=b,A._attr=o.id+&quot;.&quot;+b,A._traceIndices=_.map((function(t){return t._expandedIndex}));var S=m.axisName2dataArray[b],E=x(M,A,T,_,S,o);f(M,A,T,{axData:_,dataAttr:S});var C,L,I=T(&quot;visible&quot;);switch(g(A,e,w),T(&quot;uirevision&quot;,e.uirevision),I&amp;&amp;(L=(C=T(&quot;color&quot;))===M.color?C:o.font.color),A._m=1,b){case&quot;radialaxis&quot;:var P=T(&quot;autorange&quot;,!A.isValidRange(M.range));M.autorange=P,!P||&quot;linear&quot;!==E&amp;&amp;&quot;-&quot;!==E||T(&quot;rangemode&quot;),&quot;reversed&quot;===P&amp;&amp;(A._m=-1),T(&quot;range&quot;),A.cleanRange(&quot;range&quot;,{dfltRange:[0,1]}),I&amp;&amp;(T(&quot;side&quot;),T(&quot;angle&quot;,y[0]),T(&quot;title.text&quot;),n.coerceFont(T,&quot;title.font&quot;,{family:o.font.family,size:Math.round(1.2*o.font.size),color:L}));break;case&quot;angularaxis&quot;:if(&quot;date&quot;===E){n.log(&quot;Polar plots do not support date angular axes yet.&quot;);for(var z=0;z&lt;_.length;z++)_[z].visible=!1;E=M.type=A.type=&quot;linear&quot;}T(&quot;linear&quot;===E?&quot;thetaunit&quot;:&quot;period&quot;);var O=T(&quot;direction&quot;);T(&quot;rotation&quot;,{counterclockwise:0,clockwise:90}[O])}if(I)l(M,A,T,A.type),u(M,A,T,A.type,{tickSuffixDflt:&quot;degrees&quot;===A.thetaunit?&quot;\xb0&quot;:void 0}),c(M,A,T,{outerTicks:!0}),T(&quot;showticklabels&quot;)&amp;&amp;(n.coerceFont(T,&quot;tickfont&quot;,{family:o.font.family,size:o.font.size,color:L}),T(&quot;tickangle&quot;),T(&quot;tickformat&quot;)),h(M,A,T,{dfltColor:C,bgColor:o.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:d[b]}),T(&quot;layer&quot;);&quot;category&quot;!==E&amp;&amp;T(&quot;hoverformat&quot;),A._input=M}&quot;category&quot;===e.angularaxis.type&amp;&amp;r(&quot;gridshape&quot;)}function x(t,e,r,n,i,a){var o=r(&quot;autotypenumbers&quot;,a.autotypenumbersDflt);if(&quot;-&quot;===r(&quot;type&quot;)){for(var s,l=0;l&lt;n.length;l++)if(n[l].visible){s=n[l];break}s&amp;&amp;s[i]&amp;&amp;(e.type=p(s[i],&quot;gregorian&quot;,{noMultiCategory:!0,autotypenumbers:o})),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:t.type=e.type}return e.type}e.exports=function(t,e,r){o(t,e,r,{type:m.name,attributes:d,handleDefaults:y,font:e.font,autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,fullData:r,layoutOut:e})}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../cartesian/axis_autotype&quot;:829,&quot;../cartesian/category_order_defaults&quot;:832,&quot;../cartesian/line_grid_defaults&quot;:844,&quot;../cartesian/tick_label_defaults&quot;:849,&quot;../cartesian/tick_mark_defaults&quot;:850,&quot;../cartesian/tick_value_defaults&quot;:851,&quot;../get_data&quot;:865,&quot;../subplot_defaults&quot;:905,&quot;./constants&quot;:892,&quot;./layout_attributes&quot;:895,&quot;./set_convert&quot;:904}],897:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../traces/scatter/attributes&quot;),i=n.marker,a=t(&quot;../../../lib/extend&quot;).extendFlat;[&quot;Area traces are deprecated!&quot;,&quot;Please switch to the *barpolar* trace type.&quot;].join(&quot; &quot;);e.exports={r:a({},n.r,{}),t:a({},n.t,{}),marker:{color:a({},i.color,{}),size:a({},i.size,{}),symbol:a({},i.symbol,{}),opacity:a({},i.opacity,{}),editType:&quot;calc&quot;}}},{&quot;../../../lib/extend&quot;:768,&quot;../../../traces/scatter/attributes&quot;:1187}],898:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../cartesian/layout_attributes&quot;),i=t(&quot;../../../lib/extend&quot;).extendFlat,a=t(&quot;../../../plot_api/edit_types&quot;).overrideAll,o=[&quot;Legacy polar charts are deprecated!&quot;,&quot;Please switch to *polar* subplots.&quot;].join(&quot; &quot;),s=i({},n.domain,{});function l(t,e){return i({},e,{showline:{valType:&quot;boolean&quot;},showticklabels:{valType:&quot;boolean&quot;},tickorientation:{valType:&quot;enumerated&quot;,values:[&quot;horizontal&quot;,&quot;vertical&quot;]},ticklen:{valType:&quot;number&quot;,min:0},tickcolor:{valType:&quot;color&quot;},ticksuffix:{valType:&quot;string&quot;},endpadding:{valType:&quot;number&quot;,description:o},visible:{valType:&quot;boolean&quot;}})}e.exports=a({radialaxis:l(0,{range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},domain:s,orientation:{valType:&quot;number&quot;}}),angularaxis:l(0,{range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,dflt:0},{valType:&quot;number&quot;,dflt:360}]},domain:s}),layout:{direction:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;]},orientation:{valType:&quot;angle&quot;}}},&quot;plot&quot;,&quot;nested&quot;)},{&quot;../../../lib/extend&quot;:768,&quot;../../../plot_api/edit_types&quot;:810,&quot;../../cartesian/layout_attributes&quot;:842}],899:[function(t,e,r){&quot;use strict&quot;;(e.exports=t(&quot;./micropolar&quot;)).manager=t(&quot;./micropolar_manager&quot;)},{&quot;./micropolar&quot;:900,&quot;./micropolar_manager&quot;:901}],900:[function(t,e,r){var n=t(&quot;d3&quot;),i=t(&quot;../../../lib&quot;).extendDeepAll,a=t(&quot;../../../constants/alignment&quot;).MID_SHIFT,o=e.exports={version:&quot;0.2.2&quot;};o.Axis=function(){var t,e,r,s,l={data:[],layout:{}},c={},u={},f=n.dispatch(&quot;hover&quot;),h={};return h.render=function(c){return function(c){e=c||e;var f=l.data,h=l.layout;(&quot;string&quot;==typeof e||e.nodeName)&amp;&amp;(e=n.select(e)),e.datum(f).each((function(e,l){var c=e.slice();u={data:o.util.cloneJson(c),layout:o.util.cloneJson(h)};var f=0;c.forEach((function(t,e){t.color||(t.color=h.defaultColorRange[f],f=(f+1)%h.defaultColorRange.length),t.strokeColor||(t.strokeColor=&quot;LinePlot&quot;===t.geometry?t.color:n.rgb(t.color).darker().toString()),u.data[e].color=t.color,u.data[e].strokeColor=t.strokeColor,u.data[e].strokeDash=t.strokeDash,u.data[e].strokeSize=t.strokeSize}));var p=c.filter((function(t,e){var r=t.visible;return&quot;undefined&quot;==typeof r||!0===r})),d=!1,g=p.map((function(t,e){return d=d||&quot;undefined&quot;!=typeof t.groupId,t}));if(d){var m=n.nest().key((function(t,e){return&quot;undefined&quot;!=typeof t.groupId?t.groupId:&quot;unstacked&quot;})).entries(g),v=[],y=m.map((function(t,e){if(&quot;unstacked&quot;===t.key)return t.values;var r=t.values[0].r.map((function(t,e){return 0}));return t.values.forEach((function(t,e,n){t.yStack=[r],v.push(r),r=o.util.sumArrays(t.r,r)})),t.values}));p=n.merge(y)}p.forEach((function(t,e){t.t=Array.isArray(t.t[0])?t.t:[t.t],t.r=Array.isArray(t.r[0])?t.r:[t.r]}));var x=Math.min(h.width-h.margin.left-h.margin.right,h.height-h.margin.top-h.margin.bottom)/2;x=Math.max(10,x);var b,_=[h.margin.left+x,h.margin.top+x];d?b=[0,n.max(o.util.sumArrays(o.util.arrayLast(p).r[0],o.util.arrayLast(v)))]:b=n.extent(o.util.flattenArray(p.map((function(t,e){return t.r}))));h.radialAxis.domain!=o.DATAEXTENT&amp;&amp;(b[0]=0),r=n.scale.linear().domain(h.radialAxis.domain!=o.DATAEXTENT&amp;&amp;h.radialAxis.domain?h.radialAxis.domain:b).range([0,x]),u.layout.radialAxis.domain=r.domain();var w,T=o.util.flattenArray(p.map((function(t,e){return t.t}))),k=&quot;string&quot;==typeof T[0];k&amp;&amp;(T=o.util.deduplicate(T),w=T.slice(),T=n.range(T.length),p=p.map((function(t,e){var r=t;return t.t=[T],d&amp;&amp;(r.yStack=t.yStack),r})));var M=p.filter((function(t,e){return&quot;LinePlot&quot;===t.geometry||&quot;DotPlot&quot;===t.geometry})).length===p.length,A=null===h.needsEndSpacing?k||!M:h.needsEndSpacing,S=h.angularAxis.domain&amp;&amp;h.angularAxis.domain!=o.DATAEXTENT&amp;&amp;!k&amp;&amp;h.angularAxis.domain[0]&gt;=0?h.angularAxis.domain:n.extent(T),E=Math.abs(T[1]-T[0]);M&amp;&amp;!k&amp;&amp;(E=0);var C=S.slice();A&amp;&amp;k&amp;&amp;(C[1]+=E);var L=h.angularAxis.ticksCount||4;L&gt;8&amp;&amp;(L=L/(L/8)+L%8),h.angularAxis.ticksStep&amp;&amp;(L=(C[1]-C[0])/L);var I=h.angularAxis.ticksStep||(C[1]-C[0])/(L*(h.minorTicks+1));w&amp;&amp;(I=Math.max(Math.round(I),1)),C[2]||(C[2]=I);var P=n.range.apply(this,C);if(P=P.map((function(t,e){return parseFloat(t.toPrecision(12))})),s=n.scale.linear().domain(C.slice(0,2)).range(&quot;clockwise&quot;===h.direction?[0,360]:[360,0]),u.layout.angularAxis.domain=s.domain(),u.layout.angularAxis.endPadding=A?E:0,&quot;undefined&quot;==typeof(t=n.select(this).select(&quot;svg.chart-root&quot;))||t.empty()){var z=(new DOMParser).parseFromString(&quot;&lt;svg xmlns='http://www.w3.org/2000/svg' class='chart-root'&gt;' + '&lt;g class='outer-group'&gt;' + '&lt;g class='chart-group'&gt;' + '&lt;circle class='background-circle'&gt;&lt;/circle&gt;' + '&lt;g class='geometry-group'&gt;&lt;/g&gt;' + '&lt;g class='radial axis-group'&gt;' + '&lt;circle class='outside-circle'&gt;&lt;/circle&gt;' + '&lt;/g&gt;' + '&lt;g class='angular axis-group'&gt;&lt;/g&gt;' + '&lt;g class='guides-group'&gt;&lt;line&gt;&lt;/line&gt;&lt;circle r='0'&gt;&lt;/circle&gt;&lt;/g&gt;' + '&lt;/g&gt;' + '&lt;g class='legend-group'&gt;&lt;/g&gt;' + '&lt;g class='tooltips-group'&gt;&lt;/g&gt;' + '&lt;g class='title-group'&gt;&lt;text&gt;&lt;/text&gt;&lt;/g&gt;' + '&lt;/g&gt;' + '&lt;/svg&gt;&quot;,&quot;application/xml&quot;),O=this.appendChild(this.ownerDocument.importNode(z.documentElement,!0));t=n.select(O)}t.select(&quot;.guides-group&quot;).style({&quot;pointer-events&quot;:&quot;none&quot;}),t.select(&quot;.angular.axis-group&quot;).style({&quot;pointer-events&quot;:&quot;none&quot;}),t.select(&quot;.radial.axis-group&quot;).style({&quot;pointer-events&quot;:&quot;none&quot;});var D,R=t.select(&quot;.chart-group&quot;),F={fill:&quot;none&quot;,stroke:h.tickColor},B={&quot;font-size&quot;:h.font.size,&quot;font-family&quot;:h.font.family,fill:h.font.color,&quot;text-shadow&quot;:[&quot;-1px 0px&quot;,&quot;1px -1px&quot;,&quot;-1px 1px&quot;,&quot;1px 1px&quot;].map((function(t,e){return&quot; &quot;+t+&quot; 0 &quot;+h.font.outlineColor})).join(&quot;,&quot;)};if(h.showLegend){D=t.select(&quot;.legend-group&quot;).attr({transform:&quot;translate(&quot;+[x,h.margin.top]+&quot;)&quot;}).style({display:&quot;block&quot;});var N=p.map((function(t,e){var r=o.util.cloneJson(t);return r.symbol=&quot;DotPlot&quot;===t.geometry?t.dotType||&quot;circle&quot;:&quot;LinePlot&quot;!=t.geometry?&quot;square&quot;:&quot;line&quot;,r.visibleInLegend=&quot;undefined&quot;==typeof t.visibleInLegend||t.visibleInLegend,r.color=&quot;LinePlot&quot;===t.geometry?t.strokeColor:t.color,r}));o.Legend().config({data:p.map((function(t,e){return t.name||&quot;Element&quot;+e})),legendConfig:i({},o.Legend.defaultConfig().legendConfig,{container:D,elements:N,reverseOrder:h.legend.reverseOrder})})();var j=D.node().getBBox();x=Math.min(h.width-j.width-h.margin.left-h.margin.right,h.height-h.margin.top-h.margin.bottom)/2,x=Math.max(10,x),_=[h.margin.left+x,h.margin.top+x],r.range([0,x]),u.layout.radialAxis.domain=r.domain(),D.attr(&quot;transform&quot;,&quot;translate(&quot;+[_[0]+x,_[1]-x]+&quot;)&quot;)}else D=t.select(&quot;.legend-group&quot;).style({display:&quot;none&quot;});t.attr({width:h.width,height:h.height}).style({opacity:h.opacity}),R.attr(&quot;transform&quot;,&quot;translate(&quot;+_+&quot;)&quot;).style({cursor:&quot;crosshair&quot;});var U=[(h.width-(h.margin.left+h.margin.right+2*x+(j?j.width:0)))/2,(h.height-(h.margin.top+h.margin.bottom+2*x))/2];if(U[0]=Math.max(0,U[0]),U[1]=Math.max(0,U[1]),t.select(&quot;.outer-group&quot;).attr(&quot;transform&quot;,&quot;translate(&quot;+U+&quot;)&quot;),h.title&amp;&amp;h.title.text){var V=t.select(&quot;g.title-group text&quot;).style(B).text(h.title.text),q=V.node().getBBox();V.attr({x:_[0]-q.width/2,y:_[1]-x-20})}var H=t.select(&quot;.radial.axis-group&quot;);if(h.radialAxis.gridLinesVisible){var G=H.selectAll(&quot;circle.grid-circle&quot;).data(r.ticks(5));G.enter().append(&quot;circle&quot;).attr({class:&quot;grid-circle&quot;}).style(F),G.attr(&quot;r&quot;,r),G.exit().remove()}H.select(&quot;circle.outside-circle&quot;).attr({r:x}).style(F);var Y=t.select(&quot;circle.background-circle&quot;).attr({r:x}).style({fill:h.backgroundColor,stroke:h.stroke});function W(t,e){return s(t)%360+h.orientation}if(h.radialAxis.visible){var X=n.svg.axis().scale(r).ticks(5).tickSize(5);H.call(X).attr({transform:&quot;rotate(&quot;+h.radialAxis.orientation+&quot;)&quot;}),H.selectAll(&quot;.domain&quot;).style(F),H.selectAll(&quot;g&gt;text&quot;).text((function(t,e){return this.textContent+h.radialAxis.ticksSuffix})).style(B).style({&quot;text-anchor&quot;:&quot;start&quot;}).attr({x:0,y:0,dx:0,dy:0,transform:function(t,e){return&quot;horizontal&quot;===h.radialAxis.tickOrientation?&quot;rotate(&quot;+-h.radialAxis.orientation+&quot;) translate(&quot;+[0,B[&quot;font-size&quot;]]+&quot;)&quot;:&quot;translate(&quot;+[0,B[&quot;font-size&quot;]]+&quot;)&quot;}}),H.selectAll(&quot;g&gt;line&quot;).style({stroke:&quot;black&quot;})}var Z=t.select(&quot;.angular.axis-group&quot;).selectAll(&quot;g.angular-tick&quot;).data(P),J=Z.enter().append(&quot;g&quot;).classed(&quot;angular-tick&quot;,!0);Z.attr({transform:function(t,e){return&quot;rotate(&quot;+W(t)+&quot;)&quot;}}).style({display:h.angularAxis.visible?&quot;block&quot;:&quot;none&quot;}),Z.exit().remove(),J.append(&quot;line&quot;).classed(&quot;grid-line&quot;,!0).classed(&quot;major&quot;,(function(t,e){return e%(h.minorTicks+1)==0})).classed(&quot;minor&quot;,(function(t,e){return!(e%(h.minorTicks+1)==0)})).style(F),J.selectAll(&quot;.minor&quot;).style({stroke:h.minorTickColor}),Z.select(&quot;line.grid-line&quot;).attr({x1:h.tickLength?x-h.tickLength:0,x2:x}).style({display:h.angularAxis.gridLinesVisible?&quot;block&quot;:&quot;none&quot;}),J.append(&quot;text&quot;).classed(&quot;axis-text&quot;,!0).style(B);var K=Z.select(&quot;text.axis-text&quot;).attr({x:x+h.labelOffset,dy:a+&quot;em&quot;,transform:function(t,e){var r=W(t),n=x+h.labelOffset,i=h.angularAxis.tickOrientation;return&quot;horizontal&quot;==i?&quot;rotate(&quot;+-r+&quot; &quot;+n+&quot; 0)&quot;:&quot;radial&quot;==i?r&lt;270&amp;&amp;r&gt;90?&quot;rotate(180 &quot;+n+&quot; 0)&quot;:null:&quot;rotate(&quot;+(r&lt;=180&amp;&amp;r&gt;0?-90:90)+&quot; &quot;+n+&quot; 0)&quot;}}).style({&quot;text-anchor&quot;:&quot;middle&quot;,display:h.angularAxis.labelsVisible?&quot;block&quot;:&quot;none&quot;}).text((function(t,e){return e%(h.minorTicks+1)!=0?&quot;&quot;:w?w[t]+h.angularAxis.ticksSuffix:t+h.angularAxis.ticksSuffix})).style(B);h.angularAxis.rewriteTicks&amp;&amp;K.text((function(t,e){return e%(h.minorTicks+1)!=0?&quot;&quot;:h.angularAxis.rewriteTicks(this.textContent,e)}));var Q=n.max(R.selectAll(&quot;.angular-tick text&quot;)[0].map((function(t,e){return t.getCTM().e+t.getBBox().width})));D.attr({transform:&quot;translate(&quot;+[x+Q,h.margin.top]+&quot;)&quot;});var $=t.select(&quot;g.geometry-group&quot;).selectAll(&quot;g&quot;).size()&gt;0,tt=t.select(&quot;g.geometry-group&quot;).selectAll(&quot;g.geometry&quot;).data(p);if(tt.enter().append(&quot;g&quot;).attr({class:function(t,e){return&quot;geometry geometry&quot;+e}}),tt.exit().remove(),p[0]||$){var et=[];p.forEach((function(t,e){var n={};n.radialScale=r,n.angularScale=s,n.container=tt.filter((function(t,r){return r==e})),n.geometry=t.geometry,n.orientation=h.orientation,n.direction=h.direction,n.index=e,et.push({data:t,geometryConfig:n})}));var rt=n.nest().key((function(t,e){return&quot;undefined&quot;!=typeof t.data.groupId||&quot;unstacked&quot;})).entries(et),nt=[];rt.forEach((function(t,e){&quot;unstacked&quot;===t.key?nt=nt.concat(t.values.map((function(t,e){return[t]}))):nt.push(t.values)})),nt.forEach((function(t,e){var r;r=Array.isArray(t)?t[0].geometryConfig.geometry:t.geometryConfig.geometry;var n=t.map((function(t,e){return i(o[r].defaultConfig(),t)}));o[r]().config(n)()}))}var it,at,ot=t.select(&quot;.guides-group&quot;),st=t.select(&quot;.tooltips-group&quot;),lt=o.tooltipPanel().config({container:st,fontSize:8})(),ct=o.tooltipPanel().config({container:st,fontSize:8})(),ut=o.tooltipPanel().config({container:st,hasTick:!0})();if(!k){var ft=ot.select(&quot;line&quot;).attr({x1:0,y1:0,y2:0}).style({stroke:&quot;grey&quot;,&quot;pointer-events&quot;:&quot;none&quot;});R.on(&quot;mousemove.angular-guide&quot;,(function(t,e){var r=o.util.getMousePos(Y).angle;ft.attr({x2:-x,transform:&quot;rotate(&quot;+r+&quot;)&quot;}).style({opacity:.5});var n=(r+180+360-h.orientation)%360;it=s.invert(n);var i=o.util.convertToCartesian(x+12,r+180);lt.text(o.util.round(it)).move([i[0]+_[0],i[1]+_[1]])})).on(&quot;mouseout.angular-guide&quot;,(function(t,e){ot.select(&quot;line&quot;).style({opacity:0})}))}var ht=ot.select(&quot;circle&quot;).style({stroke:&quot;grey&quot;,fill:&quot;none&quot;});R.on(&quot;mousemove.radial-guide&quot;,(function(t,e){var n=o.util.getMousePos(Y).radius;ht.attr({r:n}).style({opacity:.5}),at=r.invert(o.util.getMousePos(Y).radius);var i=o.util.convertToCartesian(n,h.radialAxis.orientation);ct.text(o.util.round(at)).move([i[0]+_[0],i[1]+_[1]])})).on(&quot;mouseout.radial-guide&quot;,(function(t,e){ht.style({opacity:0}),ut.hide(),lt.hide(),ct.hide()})),t.selectAll(&quot;.geometry-group .mark&quot;).on(&quot;mouseover.tooltip&quot;,(function(e,r){var i=n.select(this),a=this.style.fill,s=&quot;black&quot;,l=this.style.opacity||1;if(i.attr({&quot;data-opacity&quot;:l}),a&amp;&amp;&quot;none&quot;!==a){i.attr({&quot;data-fill&quot;:a}),s=n.hsl(a).darker().toString(),i.style({fill:s,opacity:1});var c={t:o.util.round(e[0]),r:o.util.round(e[1])};k&amp;&amp;(c.t=w[e[0]]);var u=&quot;t: &quot;+c.t+&quot;, r: &quot;+c.r,f=this.getBoundingClientRect(),h=t.node().getBoundingClientRect(),p=[f.left+f.width/2-U[0]-h.left,f.top+f.height/2-U[1]-h.top];ut.config({color:s}).text(u),ut.move(p)}else a=this.style.stroke||&quot;black&quot;,i.attr({&quot;data-stroke&quot;:a}),s=n.hsl(a).darker().toString(),i.style({stroke:s,opacity:1})})).on(&quot;mousemove.tooltip&quot;,(function(t,e){if(0!=n.event.which)return!1;n.select(this).attr(&quot;data-fill&quot;)&amp;&amp;ut.show()})).on(&quot;mouseout.tooltip&quot;,(function(t,e){ut.hide();var r=n.select(this),i=r.attr(&quot;data-fill&quot;);i?r.style({fill:i,opacity:r.attr(&quot;data-opacity&quot;)}):r.style({stroke:r.attr(&quot;data-stroke&quot;),opacity:r.attr(&quot;data-opacity&quot;)})}))}))}(c),this},h.config=function(t){if(!arguments.length)return l;var e=o.util.cloneJson(t);return e.data.forEach((function(t,e){l.data[e]||(l.data[e]={}),i(l.data[e],o.Axis.defaultConfig().data[0]),i(l.data[e],t)})),i(l.layout,o.Axis.defaultConfig().layout),i(l.layout,e.layout),this},h.getLiveConfig=function(){return u},h.getinputConfig=function(){return c},h.radialScale=function(t){return r},h.angularScale=function(t){return s},h.svg=function(){return t},n.rebind(h,f,&quot;on&quot;),h},o.Axis.defaultConfig=function(t,e){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:&quot;Line1&quot;,geometry:&quot;LinePlot&quot;,color:null,strokeDash:&quot;solid&quot;,strokeColor:null,strokeSize:&quot;1&quot;,visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:n.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:&quot;gray&quot;,outlineColor:&quot;white&quot;,family:&quot;Tahoma, sans-serif&quot;},direction:&quot;clockwise&quot;,orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:&quot;&quot;,visible:!0,gridLinesVisible:!0,tickOrientation:&quot;horizontal&quot;,rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:&quot;&quot;,visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:&quot;horizontal&quot;,rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:&quot;silver&quot;,minorTickColor:&quot;#eee&quot;,backgroundColor:&quot;none&quot;,needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},o.util={},o.DATAEXTENT=&quot;dataExtent&quot;,o.AREA=&quot;AreaChart&quot;,o.LINE=&quot;LinePlot&quot;,o.DOT=&quot;DotPlot&quot;,o.BAR=&quot;BarChart&quot;,o.util._override=function(t,e){for(var r in t)r in e&amp;&amp;(e[r]=t[r])},o.util._extend=function(t,e){for(var r in t)e[r]=t[r]},o.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},o.util.dataFromEquation2=function(t,e){var r=e||6;return n.range(0,360+r,r).map((function(e,r){var n=e*Math.PI/180;return[e,t(n)]}))},o.util.dataFromEquation=function(t,e,r){var i=e||6,a=[],o=[];n.range(0,360+i,i).forEach((function(e,r){var n=e*Math.PI/180,i=t(n);a.push(e),o.push(i)}));var s={t:a,r:o};return r&amp;&amp;(s.name=r),s},o.util.ensureArray=function(t,e){if(&quot;undefined&quot;==typeof t)return null;var r=[].concat(t);return n.range(e).map((function(t,e){return r[e]||r[0]}))},o.util.fillArrays=function(t,e,r){return e.forEach((function(e,n){t[e]=o.util.ensureArray(t[e],r)})),t},o.util.cloneJson=function(t){return JSON.parse(JSON.stringify(t))},o.util.validateKeys=function(t,e){&quot;string&quot;==typeof e&amp;&amp;(e=e.split(&quot;.&quot;));var r=e.shift();return t[r]&amp;&amp;(!e.length||objHasKeys(t[r],e))},o.util.sumArrays=function(t,e){return n.zip(t,e).map((function(t,e){return n.sum(t)}))},o.util.arrayLast=function(t){return t[t.length-1]},o.util.arrayEqual=function(t,e){for(var r=Math.max(t.length,e.length,1);r-- &gt;=0&amp;&amp;t[r]===e[r];);return-2===r},o.util.flattenArray=function(t){for(var e=[];!o.util.arrayEqual(e,t);)e=t,t=[].concat.apply([],t);return t},o.util.deduplicate=function(t){return t.filter((function(t,e,r){return r.indexOf(t)==e}))},o.util.convertToCartesian=function(t,e){var r=e*Math.PI/180;return[t*Math.cos(r),t*Math.sin(r)]},o.util.round=function(t,e){var r=e||2,n=Math.pow(10,r);return Math.round(t*n)/n},o.util.getMousePos=function(t){var e=n.mouse(t.node()),r=e[0],i=e[1],a={};return a.x=r,a.y=i,a.pos=e,a.angle=180*(Math.atan2(i,r)+Math.PI)/Math.PI,a.radius=Math.sqrt(r*r+i*i),a},o.util.duplicatesCount=function(t){for(var e,r={},n={},i=0,a=t.length;i&lt;a;i++)(e=t[i])in r?(r[e]++,n[e]=r[e]):r[e]=1;return n},o.util.duplicates=function(t){return Object.keys(o.util.duplicatesCount(t))},o.util.translator=function(t,e,r,n){if(n){var i=r.slice();r=e,e=i}var a=e.reduce((function(t,e){if(&quot;undefined&quot;!=typeof t)return t[e]}),t);&quot;undefined&quot;!=typeof a&amp;&amp;(e.reduce((function(t,r,n){if(&quot;undefined&quot;!=typeof t)return n===e.length-1&amp;&amp;delete t[r],t[r]}),t),r.reduce((function(t,e,n){return&quot;undefined&quot;==typeof t[e]&amp;&amp;(t[e]={}),n===r.length-1&amp;&amp;(t[e]=a),t[e]}),t))},o.PolyChart=function(){var t=[o.PolyChart.defaultConfig()],e=n.dispatch(&quot;hover&quot;),r={solid:&quot;none&quot;,dash:[5,2],dot:[2,5]};function a(){var e=t[0].geometryConfig,i=e.container;&quot;string&quot;==typeof i&amp;&amp;(i=n.select(i)),i.datum(t).each((function(t,i){var a=!!t[0].data.yStack,o=t.map((function(t,e){return a?n.zip(t.data.t[0],t.data.r[0],t.data.yStack[0]):n.zip(t.data.t[0],t.data.r[0])})),s=e.angularScale,l=e.radialScale.domain()[0],c={bar:function(r,i,a){var o=t[a].data,l=e.radialScale(r[1])-e.radialScale(0),c=e.radialScale(r[2]||0),u=o.barWidth;n.select(this).attr({class:&quot;mark bar&quot;,d:&quot;M&quot;+[[l+c,-u/2],[l+c,u/2],[c,u/2],[c,-u/2]].join(&quot;L&quot;)+&quot;Z&quot;,transform:function(t,r){return&quot;rotate(&quot;+(e.orientation+s(t[0]))+&quot;)&quot;}})}};c.dot=function(r,i,a){var o=r[2]?[r[0],r[1]+r[2]]:r,s=n.svg.symbol().size(t[a].data.dotSize).type(t[a].data.dotType)(r,i);n.select(this).attr({class:&quot;mark dot&quot;,d:s,transform:function(t,r){var n,i,a,s=(n=function(t,r){var n=e.radialScale(t[1]),i=(e.angularScale(t[0])+e.orientation)*Math.PI/180;return{r:n,t:i}}(o),i=n.r*Math.cos(n.t),a=n.r*Math.sin(n.t),{x:i,y:a});return&quot;translate(&quot;+[s.x,s.y]+&quot;)&quot;}})};var u=n.svg.line.radial().interpolate(t[0].data.lineInterpolation).radius((function(t){return e.radialScale(t[1])})).angle((function(t){return e.angularScale(t[0])*Math.PI/180}));c.line=function(r,i,a){var s=r[2]?o[a].map((function(t,e){return[t[0],t[1]+t[2]]})):o[a];if(n.select(this).each(c.dot).style({opacity:function(e,r){return+t[a].data.dotVisible},fill:d.stroke(r,i,a)}).attr({class:&quot;mark dot&quot;}),!(i&gt;0)){var l=n.select(this.parentNode).selectAll(&quot;path.line&quot;).data([0]);l.enter().insert(&quot;path&quot;),l.attr({class:&quot;line&quot;,d:u(s),transform:function(t,r){return&quot;rotate(&quot;+(e.orientation+90)+&quot;)&quot;},&quot;pointer-events&quot;:&quot;none&quot;}).style({fill:function(t,e){return d.fill(r,i,a)},&quot;fill-opacity&quot;:0,stroke:function(t,e){return d.stroke(r,i,a)},&quot;stroke-width&quot;:function(t,e){return d[&quot;stroke-width&quot;](r,i,a)},&quot;stroke-dasharray&quot;:function(t,e){return d[&quot;stroke-dasharray&quot;](r,i,a)},opacity:function(t,e){return d.opacity(r,i,a)},display:function(t,e){return d.display(r,i,a)}})}};var f=e.angularScale.range(),h=Math.abs(f[1]-f[0])/o[0].length*Math.PI/180,p=n.svg.arc().startAngle((function(t){return-h/2})).endAngle((function(t){return h/2})).innerRadius((function(t){return e.radialScale(l+(t[2]||0))})).outerRadius((function(t){return e.radialScale(l+(t[2]||0))+e.radialScale(t[1])}));c.arc=function(t,r,i){n.select(this).attr({class:&quot;mark arc&quot;,d:p,transform:function(t,r){return&quot;rotate(&quot;+(e.orientation+s(t[0])+90)+&quot;)&quot;}})};var d={fill:function(e,r,n){return t[n].data.color},stroke:function(e,r,n){return t[n].data.strokeColor},&quot;stroke-width&quot;:function(e,r,n){return t[n].data.strokeSize+&quot;px&quot;},&quot;stroke-dasharray&quot;:function(e,n,i){return r[t[i].data.strokeDash]},opacity:function(e,r,n){return t[n].data.opacity},display:function(e,r,n){return&quot;undefined&quot;==typeof t[n].data.visible||t[n].data.visible?&quot;block&quot;:&quot;none&quot;}},g=n.select(this).selectAll(&quot;g.layer&quot;).data(o);g.enter().append(&quot;g&quot;).attr({class:&quot;layer&quot;});var m=g.selectAll(&quot;path.mark&quot;).data((function(t,e){return t}));m.enter().append(&quot;path&quot;).attr({class:&quot;mark&quot;}),m.style(d).each(c[e.geometryType]),m.exit().remove(),g.exit().remove()}))}return a.config=function(e){return arguments.length?(e.forEach((function(e,r){t[r]||(t[r]={}),i(t[r],o.PolyChart.defaultConfig()),i(t[r],e)})),this):t},a.getColorScale=function(){},n.rebind(a,e,&quot;on&quot;),a},o.PolyChart.defaultConfig=function(){return{data:{name:&quot;geom1&quot;,t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:&quot;circle&quot;,dotSize:64,dotVisible:!1,barWidth:20,color:&quot;#ffa500&quot;,strokeSize:1,strokeColor:&quot;silver&quot;,strokeDash:&quot;solid&quot;,opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:&quot;LinePlot&quot;,geometryType:&quot;arc&quot;,direction:&quot;clockwise&quot;,orientation:0,container:&quot;body&quot;,radialScale:null,angularScale:null,colorScale:n.scale.category20()}}},o.BarChart=function(){return o.PolyChart()},o.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;bar&quot;}}},o.AreaChart=function(){return o.PolyChart()},o.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;arc&quot;}}},o.DotPlot=function(){return o.PolyChart()},o.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;dot&quot;,dotType:&quot;circle&quot;}}},o.LinePlot=function(){return o.PolyChart()},o.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;line&quot;}}},o.Legend=function(){var t=o.Legend.defaultConfig(),e=n.dispatch(&quot;hover&quot;);function r(){var e=t.legendConfig,a=t.data.map((function(t,r){return[].concat(t).map((function(t,n){var a=i({},e.elements[r]);return a.name=t,a.color=[].concat(e.elements[r].color)[n],a}))})),o=n.merge(a);o=o.filter((function(t,r){return e.elements[r]&amp;&amp;(e.elements[r].visibleInLegend||&quot;undefined&quot;==typeof e.elements[r].visibleInLegend)})),e.reverseOrder&amp;&amp;(o=o.reverse());var s=e.container;(&quot;string&quot;==typeof s||s.nodeName)&amp;&amp;(s=n.select(s));var l=o.map((function(t,e){return t.color})),c=e.fontSize,u=null==e.isContinuous?&quot;number&quot;==typeof o[0]:e.isContinuous,f=u?e.height:c*o.length,h=s.classed(&quot;legend-group&quot;,!0).selectAll(&quot;svg&quot;).data([0]),p=h.enter().append(&quot;svg&quot;).attr({width:300,height:f+c,xmlns:&quot;http://www.w3.org/2000/svg&quot;,&quot;xmlns:xlink&quot;:&quot;http://www.w3.org/1999/xlink&quot;,version:&quot;1.1&quot;});p.append(&quot;g&quot;).classed(&quot;legend-axis&quot;,!0),p.append(&quot;g&quot;).classed(&quot;legend-marks&quot;,!0);var d=n.range(o.length),g=n.scale[u?&quot;linear&quot;:&quot;ordinal&quot;]().domain(d).range(l),m=n.scale[u?&quot;linear&quot;:&quot;ordinal&quot;]().domain(d)[u?&quot;range&quot;:&quot;rangePoints&quot;]([0,f]);if(u){var v=h.select(&quot;.legend-marks&quot;).append(&quot;defs&quot;).append(&quot;linearGradient&quot;).attr({id:&quot;grad1&quot;,x1:&quot;0%&quot;,y1:&quot;0%&quot;,x2:&quot;0%&quot;,y2:&quot;100%&quot;}).selectAll(&quot;stop&quot;).data(l);v.enter().append(&quot;stop&quot;),v.attr({offset:function(t,e){return e/(l.length-1)*100+&quot;%&quot;}}).style({&quot;stop-color&quot;:function(t,e){return t}}),h.append(&quot;rect&quot;).classed(&quot;legend-mark&quot;,!0).attr({height:e.height,width:e.colorBandWidth,fill:&quot;url(#grad1)&quot;})}else{var y=h.select(&quot;.legend-marks&quot;).selectAll(&quot;path.legend-mark&quot;).data(o);y.enter().append(&quot;path&quot;).classed(&quot;legend-mark&quot;,!0),y.attr({transform:function(t,e){return&quot;translate(&quot;+[c/2,m(e)+c/2]+&quot;)&quot;},d:function(t,e){var r,i,a,o=t.symbol;return a=3*(i=c),&quot;line&quot;===(r=o)?&quot;M&quot;+[[-i/2,-i/12],[i/2,-i/12],[i/2,i/12],[-i/2,i/12]]+&quot;Z&quot;:-1!=n.svg.symbolTypes.indexOf(r)?n.svg.symbol().type(r).size(a)():n.svg.symbol().type(&quot;square&quot;).size(a)()},fill:function(t,e){return g(e)}}),y.exit().remove()}var x=n.svg.axis().scale(m).orient(&quot;right&quot;),b=h.select(&quot;g.legend-axis&quot;).attr({transform:&quot;translate(&quot;+[u?e.colorBandWidth:c,c/2]+&quot;)&quot;}).call(x);return b.selectAll(&quot;.domain&quot;).style({fill:&quot;none&quot;,stroke:&quot;none&quot;}),b.selectAll(&quot;line&quot;).style({fill:&quot;none&quot;,stroke:u?e.textColor:&quot;none&quot;}),b.selectAll(&quot;text&quot;).style({fill:e.textColor,&quot;font-size&quot;:e.fontSize}).text((function(t,e){return o[e].name})),r}return r.config=function(e){return arguments.length?(i(t,e),this):t},n.rebind(r,e,&quot;on&quot;),r},o.Legend.defaultConfig=function(t,e){return{data:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],legendConfig:{elements:[{symbol:&quot;line&quot;,color:&quot;red&quot;},{symbol:&quot;square&quot;,color:&quot;yellow&quot;},{symbol:&quot;diamond&quot;,color:&quot;limegreen&quot;}],height:150,colorBandWidth:30,fontSize:12,container:&quot;body&quot;,isContinuous:null,textColor:&quot;grey&quot;,reverseOrder:!1}}},o.tooltipPanel=function(){var t,e,r,a={container:null,hasTick:!1,fontSize:12,color:&quot;white&quot;,padding:5},s=&quot;tooltip-&quot;+o.tooltipPanel.uid++,l=10,c=function(){var n=(t=a.container.selectAll(&quot;g.&quot;+s).data([0])).enter().append(&quot;g&quot;).classed(s,!0).style({&quot;pointer-events&quot;:&quot;none&quot;,display:&quot;none&quot;});return r=n.append(&quot;path&quot;).style({fill:&quot;white&quot;,&quot;fill-opacity&quot;:.9}).attr({d:&quot;M0 0&quot;}),e=n.append(&quot;text&quot;).attr({dx:a.padding+l,dy:.3*+a.fontSize}),c};return c.text=function(i){var o=n.hsl(a.color).l,s=o&gt;=.5?&quot;#aaa&quot;:&quot;white&quot;,u=o&gt;=.5?&quot;black&quot;:&quot;white&quot;,f=i||&quot;&quot;;e.style({fill:u,&quot;font-size&quot;:a.fontSize+&quot;px&quot;}).text(f);var h=a.padding,p=e.node().getBBox(),d={fill:a.color,stroke:s,&quot;stroke-width&quot;:&quot;2px&quot;},g=p.width+2*h+l,m=p.height+2*h;return r.attr({d:&quot;M&quot;+[[l,-m/2],[l,-m/4],[a.hasTick?0:l,0],[l,m/4],[l,m/2],[g,m/2],[g,-m/2]].join(&quot;L&quot;)+&quot;Z&quot;}).style(d),t.attr({transform:&quot;translate(&quot;+[l,-m/2+2*h]+&quot;)&quot;}),t.style({display:&quot;block&quot;}),c},c.move=function(e){if(t)return t.attr({transform:&quot;translate(&quot;+[e[0],e[1]]+&quot;)&quot;}).style({display:&quot;block&quot;}),c},c.hide=function(){if(t)return t.style({display:&quot;none&quot;}),c},c.show=function(){if(t)return t.style({display:&quot;block&quot;}),c},c.config=function(t){return i(a,t),c},c},o.tooltipPanel.uid=1,o.adapter={},o.adapter.plotly=function(){var t={convert:function(t,e){var r={};if(t.data&amp;&amp;(r.data=t.data.map((function(t,r){var n=i({},t);return[[n,[&quot;marker&quot;,&quot;color&quot;],[&quot;color&quot;]],[n,[&quot;marker&quot;,&quot;opacity&quot;],[&quot;opacity&quot;]],[n,[&quot;marker&quot;,&quot;line&quot;,&quot;color&quot;],[&quot;strokeColor&quot;]],[n,[&quot;marker&quot;,&quot;line&quot;,&quot;dash&quot;],[&quot;strokeDash&quot;]],[n,[&quot;marker&quot;,&quot;line&quot;,&quot;width&quot;],[&quot;strokeSize&quot;]],[n,[&quot;marker&quot;,&quot;symbol&quot;],[&quot;dotType&quot;]],[n,[&quot;marker&quot;,&quot;size&quot;],[&quot;dotSize&quot;]],[n,[&quot;marker&quot;,&quot;barWidth&quot;],[&quot;barWidth&quot;]],[n,[&quot;line&quot;,&quot;interpolation&quot;],[&quot;lineInterpolation&quot;]],[n,[&quot;showlegend&quot;],[&quot;visibleInLegend&quot;]]].forEach((function(t,r){o.util.translator.apply(null,t.concat(e))})),e||delete n.marker,e&amp;&amp;delete n.groupId,e?(&quot;LinePlot&quot;===n.geometry?(n.type=&quot;scatter&quot;,!0===n.dotVisible?(delete n.dotVisible,n.mode=&quot;lines+markers&quot;):n.mode=&quot;lines&quot;):&quot;DotPlot&quot;===n.geometry?(n.type=&quot;scatter&quot;,n.mode=&quot;markers&quot;):&quot;AreaChart&quot;===n.geometry?n.type=&quot;area&quot;:&quot;BarChart&quot;===n.geometry&amp;&amp;(n.type=&quot;bar&quot;),delete n.geometry):(&quot;scatter&quot;===n.type?&quot;lines&quot;===n.mode?n.geometry=&quot;LinePlot&quot;:&quot;markers&quot;===n.mode?n.geometry=&quot;DotPlot&quot;:&quot;lines+markers&quot;===n.mode&amp;&amp;(n.geometry=&quot;LinePlot&quot;,n.dotVisible=!0):&quot;area&quot;===n.type?n.geometry=&quot;AreaChart&quot;:&quot;bar&quot;===n.type&amp;&amp;(n.geometry=&quot;BarChart&quot;),delete n.mode,delete n.type),n})),!e&amp;&amp;t.layout&amp;&amp;&quot;stack&quot;===t.layout.barmode)){var a=o.util.duplicates(r.data.map((function(t,e){return t.geometry})));r.data.forEach((function(t,e){var n=a.indexOf(t.geometry);-1!=n&amp;&amp;(r.data[e].groupId=n)}))}if(t.layout){var s=i({},t.layout);if([[s,[&quot;plot_bgcolor&quot;],[&quot;backgroundColor&quot;]],[s,[&quot;showlegend&quot;],[&quot;showLegend&quot;]],[s,[&quot;radialaxis&quot;],[&quot;radialAxis&quot;]],[s,[&quot;angularaxis&quot;],[&quot;angularAxis&quot;]],[s.angularaxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.angularaxis,[&quot;showticklabels&quot;],[&quot;labelsVisible&quot;]],[s.angularaxis,[&quot;nticks&quot;],[&quot;ticksCount&quot;]],[s.angularaxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.angularaxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.angularaxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.angularaxis,[&quot;endpadding&quot;],[&quot;endPadding&quot;]],[s.radialaxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.radialaxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.radialaxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.radialaxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.angularAxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.angularAxis,[&quot;showticklabels&quot;],[&quot;labelsVisible&quot;]],[s.angularAxis,[&quot;nticks&quot;],[&quot;ticksCount&quot;]],[s.angularAxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.angularAxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.angularAxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.angularAxis,[&quot;endpadding&quot;],[&quot;endPadding&quot;]],[s.radialAxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.radialAxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.radialAxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.radialAxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.font,[&quot;outlinecolor&quot;],[&quot;outlineColor&quot;]],[s.legend,[&quot;traceorder&quot;],[&quot;reverseOrder&quot;]],[s,[&quot;labeloffset&quot;],[&quot;labelOffset&quot;]],[s,[&quot;defaultcolorrange&quot;],[&quot;defaultColorRange&quot;]]].forEach((function(t,r){o.util.translator.apply(null,t.concat(e))})),e?(&quot;undefined&quot;!=typeof s.tickLength&amp;&amp;(s.angularaxis.ticklen=s.tickLength,delete s.tickLength),s.tickColor&amp;&amp;(s.angularaxis.tickcolor=s.tickColor,delete s.tickColor)):(s.angularAxis&amp;&amp;&quot;undefined&quot;!=typeof s.angularAxis.ticklen&amp;&amp;(s.tickLength=s.angularAxis.ticklen),s.angularAxis&amp;&amp;&quot;undefined&quot;!=typeof s.angularAxis.tickcolor&amp;&amp;(s.tickColor=s.angularAxis.tickcolor)),s.legend&amp;&amp;&quot;boolean&quot;!=typeof s.legend.reverseOrder&amp;&amp;(s.legend.reverseOrder=&quot;normal&quot;!=s.legend.reverseOrder),s.legend&amp;&amp;&quot;boolean&quot;==typeof s.legend.traceorder&amp;&amp;(s.legend.traceorder=s.legend.traceorder?&quot;reversed&quot;:&quot;normal&quot;,delete s.legend.reverseOrder),s.margin&amp;&amp;&quot;undefined&quot;!=typeof s.margin.t){var l=[&quot;t&quot;,&quot;r&quot;,&quot;b&quot;,&quot;l&quot;,&quot;pad&quot;],c=[&quot;top&quot;,&quot;right&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;pad&quot;],u={};n.entries(s.margin).forEach((function(t,e){u[c[l.indexOf(t.key)]]=t.value})),s.margin=u}e&amp;&amp;(delete s.needsEndSpacing,delete s.minorTickColor,delete s.minorTicks,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksStep,delete s.angularaxis.rewriteTicks,delete s.angularaxis.nticks,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksStep,delete s.radialaxis.rewriteTicks,delete s.radialaxis.nticks),r.layout=s}return r}};return t}},{&quot;../../../constants/alignment&quot;:745,&quot;../../../lib&quot;:778,d3:169}],901:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../../lib&quot;),a=t(&quot;../../../components/color&quot;),o=t(&quot;./micropolar&quot;),s=t(&quot;./undo_manager&quot;),l=i.extendDeepAll,c=e.exports={};c.framework=function(t){var e,r,i,a,u,f=new s;function h(r,s){return s&amp;&amp;(u=s),n.select(n.select(u).node().parentNode).selectAll(&quot;.svg-container&gt;*:not(.chart-root)&quot;).remove(),e=e?l(e,r):r,i||(i=o.Axis()),a=o.adapter.plotly().convert(e),i.config(a).render(u),t.data=e.data,t.layout=e.layout,c.fillLayout(t),e}return h.isPolar=!0,h.svg=function(){return i.svg()},h.getConfig=function(){return e},h.getLiveConfig=function(){return o.adapter.plotly().convert(i.getLiveConfig(),!0)},h.getLiveScales=function(){return{t:i.angularScale(),r:i.radialScale()}},h.setUndoPoint=function(){var t,n,i=this,a=o.util.cloneJson(e);t=a,n=r,f.add({undo:function(){n&amp;&amp;i(n)},redo:function(){i(t)}}),r=o.util.cloneJson(a)},h.undo=function(){f.undo()},h.redo=function(){f.redo()},h},c.fillLayout=function(t){var e=n.select(t).selectAll(&quot;.plot-container&quot;),r=e.selectAll(&quot;.svg-container&quot;),i=t.framework&amp;&amp;t.framework.svg&amp;&amp;t.framework.svg(),o={width:800,height:600,paper_bgcolor:a.background,_container:e,_paperdiv:r,_paper:i};t._fullLayout=l(o,t.layout)}},{&quot;../../../components/color&quot;:643,&quot;../../../lib&quot;:778,&quot;./micropolar&quot;:900,&quot;./undo_manager&quot;:902,d3:169}],902:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e=[],r=-1,n=!1;function i(t,e){return t?(n=!0,t[e](),n=!1,this):this}return{add:function(t){return n||(e.splice(r+1,e.length-r),e.push(t),r=e.length-1),this},setCallback:function(e){t=e},undo:function(){var n=e[r];return n?(i(n,&quot;undo&quot;),r-=1,t&amp;&amp;t(n.undo),this):this},redo:function(){var n=e[r+1];return n?(i(n,&quot;redo&quot;),r+=1,t&amp;&amp;t(n.redo),this):this},clear:function(){e=[],r=-1},hasUndo:function(){return-1!==r},hasRedo:function(){return r&lt;e.length-1},getCommands:function(){return e},getPreviousCommand:function(){return e[r-1]},getIndex:function(){return r}}}},{}],903:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=o.strRotate,l=o.strTranslate,c=t(&quot;../../components/color&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../plots&quot;),h=t(&quot;../../plots/cartesian/axes&quot;),p=t(&quot;../cartesian/set_convert&quot;),d=t(&quot;./set_convert&quot;),g=t(&quot;../cartesian/autorange&quot;).doAutoRange,m=t(&quot;../cartesian/dragbox&quot;),v=t(&quot;../../components/dragelement&quot;),y=t(&quot;../../components/fx&quot;),x=t(&quot;../../components/titles&quot;),b=t(&quot;../cartesian/select&quot;).prepSelect,_=t(&quot;../cartesian/select&quot;).selectOnClick,w=t(&quot;../cartesian/select&quot;).clearSelect,T=t(&quot;../../lib/setcursor&quot;),k=t(&quot;../../lib/clear_gl_canvases&quot;),M=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,A=t(&quot;../../constants/alignment&quot;).MID_SHIFT,S=t(&quot;./constants&quot;),E=t(&quot;./helpers&quot;),C=o._,L=o.mod,I=o.deg2rad,P=o.rad2deg;function z(t,e){this.id=e,this.gd=t,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var r=t._fullLayout,n=&quot;clip&quot;+r._uid+e;this.clipIds.forTraces=n+&quot;-for-traces&quot;,this.clipPaths.forTraces=r._clips.append(&quot;clipPath&quot;).attr(&quot;id&quot;,this.clipIds.forTraces),this.clipPaths.forTraces.append(&quot;path&quot;),this.framework=r._polarlayer.append(&quot;g&quot;).attr(&quot;class&quot;,e),this.radialTickLayout=null,this.angularTickLayout=null}var O=z.prototype;function D(t){var e=t.ticks+String(t.ticklen)+String(t.showticklabels);return&quot;side&quot;in t&amp;&amp;(e+=t.side),e}function R(t,e){return e[o.findIndexOfMin(e,(function(e){return o.angleDist(t,e)}))]}function F(t,e,r){return e?(t.attr(&quot;display&quot;,null),t.attr(r)):t&amp;&amp;t.attr(&quot;display&quot;,&quot;none&quot;),t}e.exports=function(t,e){return new z(t,e)},O.plot=function(t,e){var r=e[this.id];this._hasClipOnAxisFalse=!1;for(var n=0;n&lt;t.length;n++){if(!1===t[n][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(e,r),this.updateLayout(e,r),f.generalUpdatePerTraceModule(this.gd,this,t,r),this.updateFx(e,r)},O.updateLayers=function(t,e){var r=this.layers,i=e.radialaxis,a=e.angularaxis,o=S.layerNames,s=o.indexOf(&quot;frontplot&quot;),l=o.slice(0,s),c=&quot;below traces&quot;===a.layer,u=&quot;below traces&quot;===i.layer;c&amp;&amp;l.push(&quot;angular-line&quot;),u&amp;&amp;l.push(&quot;radial-line&quot;),c&amp;&amp;l.push(&quot;angular-axis&quot;),u&amp;&amp;l.push(&quot;radial-axis&quot;),l.push(&quot;frontplot&quot;),c||l.push(&quot;angular-line&quot;),u||l.push(&quot;radial-line&quot;),c||l.push(&quot;angular-axis&quot;),u||l.push(&quot;radial-axis&quot;);var f=this.framework.selectAll(&quot;.polarsublayer&quot;).data(l,String);f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;polarsublayer &quot;+t})).each((function(t){var e=r[t]=n.select(this);switch(t){case&quot;frontplot&quot;:e.append(&quot;g&quot;).classed(&quot;barlayer&quot;,!0),e.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0);break;case&quot;backplot&quot;:e.append(&quot;g&quot;).classed(&quot;maplayer&quot;,!0);break;case&quot;plotbg&quot;:r.bg=e.append(&quot;path&quot;);break;case&quot;radial-grid&quot;:case&quot;angular-grid&quot;:e.style(&quot;fill&quot;,&quot;none&quot;);break;case&quot;radial-line&quot;:e.append(&quot;line&quot;).style(&quot;fill&quot;,&quot;none&quot;);break;case&quot;angular-line&quot;:e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;)}})),f.order()},O.updateLayout=function(t,e){var r=this.layers,n=t._size,i=e.radialaxis,a=e.angularaxis,o=e.domain.x,s=e.domain.y;this.xOffset=n.l+n.w*o[0],this.yOffset=n.t+n.h*(1-s[1]);var f=this.xLength=n.w*(o[1]-o[0]),h=this.yLength=n.h*(s[1]-s[0]),p=e.sector;this.sectorInRad=p.map(I);var d,g,m,v,y,x=this.sectorBBox=function(t){var e,r,n,i,a=t[0],o=t[1]-a,s=L(a,360),l=s+o,c=Math.cos(I(s)),u=Math.sin(I(s)),f=Math.cos(I(l)),h=Math.sin(I(l));i=s&lt;=90&amp;&amp;l&gt;=90||s&gt;90&amp;&amp;l&gt;=450?1:u&lt;=0&amp;&amp;h&lt;=0?0:Math.max(u,h);e=s&lt;=180&amp;&amp;l&gt;=180||s&gt;180&amp;&amp;l&gt;=540?-1:c&gt;=0&amp;&amp;f&gt;=0?0:Math.min(c,f);r=s&lt;=270&amp;&amp;l&gt;=270||s&gt;270&amp;&amp;l&gt;=630?-1:u&gt;=0&amp;&amp;h&gt;=0?0:Math.min(u,h);n=l&gt;=360?1:c&lt;=0&amp;&amp;f&lt;=0?0:Math.max(c,f);return[e,r,n,i]}(p),b=x[2]-x[0],_=x[3]-x[1],w=h/f,T=Math.abs(_/b);w&gt;T?(d=f,y=(h-(g=f*T))/n.h/2,m=[o[0],o[1]],v=[s[0]+y,s[1]-y]):(g=h,y=(f-(d=h/T))/n.w/2,m=[o[0]+y,o[1]-y],v=[s[0],s[1]]),this.xLength2=d,this.yLength2=g,this.xDomain2=m,this.yDomain2=v;var k=this.xOffset2=n.l+n.w*m[0],M=this.yOffset2=n.t+n.h*(1-v[1]),A=this.radius=d/b,S=this.innerRadius=e.hole*A,E=this.cx=k-A*x[0],C=this.cy=M+A*x[3],P=this.cxx=E-k,z=this.cyy=C-M;this.radialAxis=this.mockAxis(t,e,i,{_id:&quot;x&quot;,side:{counterclockwise:&quot;top&quot;,clockwise:&quot;bottom&quot;}[i.side],_realSide:i.side,domain:[S/n.w,A/n.w]}),this.angularAxis=this.mockAxis(t,e,a,{side:&quot;right&quot;,domain:[0,Math.PI],autorange:!1}),this.doAutoRange(t,e),this.updateAngularAxis(t,e),this.updateRadialAxis(t,e),this.updateRadialAxisTitle(t,e),this.xaxis=this.mockCartesianAxis(t,e,{_id:&quot;x&quot;,domain:m}),this.yaxis=this.mockCartesianAxis(t,e,{_id:&quot;y&quot;,domain:v});var O=this.pathSubplot();this.clipPaths.forTraces.select(&quot;path&quot;).attr(&quot;d&quot;,O).attr(&quot;transform&quot;,l(P,z)),r.frontplot.attr(&quot;transform&quot;,l(k,M)).call(u.setClipUrl,this._hasClipOnAxisFalse?null:this.clipIds.forTraces,this.gd),r.bg.attr(&quot;d&quot;,O).attr(&quot;transform&quot;,l(E,C)).call(c.fill,e.bgcolor)},O.mockAxis=function(t,e,r,n){var i=o.extendFlat({},r,n);return d(i,e,t),i},O.mockCartesianAxis=function(t,e,r){var n=this,i=r._id,a=o.extendFlat({type:&quot;linear&quot;},r);p(a,t);var s={x:[0,2],y:[1,3]};return a.setRange=function(){var t=n.sectorBBox,r=s[i],o=n.radialAxis._rl,l=(o[1]-o[0])/(1-e.hole);a.range=[t[r[0]]*l,t[r[1]]*l]},a.isPtWithinRange=&quot;x&quot;===i?function(t){return n.isPtInside(t)}:function(){return!0},a.setRange(),a.setScale(),a},O.doAutoRange=function(t,e){var r=this.gd,n=this.radialAxis,i=e.radialaxis;n.setScale(),g(r,n);var a=n.range;i.range=a.slice(),i._input.range=a.slice(),n._rl=[n.r2l(a[0],null,&quot;gregorian&quot;),n.r2l(a[1],null,&quot;gregorian&quot;)]},O.updateRadialAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=e.radialaxis,g=L(e.sector[0],360),m=r.radialAxis,v=u&lt;a;r.fillViewInitialKey(&quot;radialaxis.angle&quot;,d.angle),r.fillViewInitialKey(&quot;radialaxis.range&quot;,m.range.slice()),m.setGeometry(),&quot;auto&quot;===m.tickangle&amp;&amp;g&gt;90&amp;&amp;g&lt;=270&amp;&amp;(m.tickangle=180);var y=function(t){return l(m.l2p(t.x)+u,0)},x=D(d);if(r.radialTickLayout!==x&amp;&amp;(i[&quot;radial-axis&quot;].selectAll(&quot;.xtick&quot;).remove(),r.radialTickLayout=x),v){m.setScale();var b=h.calcTicks(m),_=h.clipEnds(m,b),w=h.getTickSigns(m)[2];h.drawTicks(n,m,{vals:b,layer:i[&quot;radial-axis&quot;],path:h.makeTickPath(m,0,w),transFn:y,crisp:!1}),h.drawGrid(n,m,{vals:_,layer:i[&quot;radial-grid&quot;],path:function(t){return r.pathArc(m.r2p(t.x)+u)},transFn:o.noop,crisp:!1}),h.drawLabels(n,m,{vals:b,layer:i[&quot;radial-axis&quot;],transFn:y,labelFns:h.makeLabelFns(m,0)})}var T=r.radialAxisAngle=r.vangles?P(R(I(d.angle),r.vangles)):d.angle,k=l(f,p),M=k+s(-T);F(i[&quot;radial-axis&quot;],v&amp;&amp;(d.showticklabels||d.ticks),{transform:M}),F(i[&quot;radial-grid&quot;],v&amp;&amp;d.showgrid,{transform:k}),F(i[&quot;radial-line&quot;].select(&quot;line&quot;),v&amp;&amp;d.showline,{x1:u,y1:0,x2:a,y2:0,transform:M}).attr(&quot;stroke-width&quot;,d.linewidth).call(c.stroke,d.linecolor)},O.updateRadialAxisTitle=function(t,e,r){var n=this.gd,i=this.radius,a=this.cx,o=this.cy,s=e.radialaxis,l=this.id+&quot;title&quot;,c=void 0!==r?r:this.radialAxisAngle,f=I(c),h=Math.cos(f),p=Math.sin(f),d=0;if(s.title){var g=u.bBox(this.layers[&quot;radial-axis&quot;].node()).height,m=s.title.font.size;d=&quot;counterclockwise&quot;===s.side?-g-.4*m:g+.8*m}this.layers[&quot;radial-axis-title&quot;]=x.draw(n,l,{propContainer:s,propName:this.id+&quot;.radialaxis.title&quot;,placeholder:C(n,&quot;Click to enter radial axis title&quot;),attributes:{x:a+i/2*h+d*p,y:o-i/2*p+d*h,&quot;text-anchor&quot;:&quot;middle&quot;},transform:{rotate:-c}})},O.updateAngularAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=e.angularaxis,g=r.angularAxis;r.fillViewInitialKey(&quot;angularaxis.rotation&quot;,d.rotation),g.setGeometry(),g.setScale();var m=function(t){return g.t2g(t.x)};&quot;linear&quot;===g.type&amp;&amp;&quot;radians&quot;===g.thetaunit&amp;&amp;(g.tick0=P(g.tick0),g.dtick=P(g.dtick));var v=function(t){return l(f+a*Math.cos(t),p-a*Math.sin(t))},y=h.makeLabelFns(g,0).labelStandoff,x={xFn:function(t){var e=m(t);return Math.cos(e)*y},yFn:function(t){var e=m(t),r=Math.sin(e)&gt;0?.2:1;return-Math.sin(e)*(y+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*A)},anchorFn:function(t){var e=m(t),r=Math.cos(e);return Math.abs(r)&lt;.1?&quot;middle&quot;:r&gt;0?&quot;start&quot;:&quot;end&quot;},heightFn:function(t,e,r){var n=m(t);return-.5*(1+Math.sin(n))*r}},b=D(d);r.angularTickLayout!==b&amp;&amp;(i[&quot;angular-axis&quot;].selectAll(&quot;.&quot;+g._id+&quot;tick&quot;).remove(),r.angularTickLayout=b);var _,w=h.calcTicks(g);if(&quot;linear&quot;===e.gridshape?(_=w.map(m),o.angleDelta(_[0],_[1])&lt;0&amp;&amp;(_=_.slice().reverse())):_=null,r.vangles=_,&quot;category&quot;===g.type&amp;&amp;(w=w.filter((function(t){return o.isAngleInsideSector(m(t),r.sectorInRad)}))),g.visible){var T=&quot;inside&quot;===g.ticks?-1:1,k=(g.linewidth||1)/2;h.drawTicks(n,g,{vals:w,layer:i[&quot;angular-axis&quot;],path:&quot;M&quot;+T*k+&quot;,0h&quot;+T*g.ticklen,transFn:function(t){var e=m(t);return v(e)+s(-P(e))},crisp:!1}),h.drawGrid(n,g,{vals:w,layer:i[&quot;angular-grid&quot;],path:function(t){var e=m(t),r=Math.cos(e),n=Math.sin(e);return&quot;M&quot;+[f+u*r,p-u*n]+&quot;L&quot;+[f+a*r,p-a*n]},transFn:o.noop,crisp:!1}),h.drawLabels(n,g,{vals:w,layer:i[&quot;angular-axis&quot;],repositionOnUpdate:!0,transFn:function(t){return v(m(t))},labelFns:x})}F(i[&quot;angular-line&quot;].select(&quot;path&quot;),d.showline,{d:r.pathSubplot(),transform:l(f,p)}).attr(&quot;stroke-width&quot;,d.linewidth).call(c.stroke,d.linecolor)},O.updateFx=function(t,e){this.gd._context.staticPlot||(this.updateAngularDrag(t),this.updateRadialDrag(t,e,0),this.updateRadialDrag(t,e,1),this.updateMainDrag(t))},O.updateMainDrag=function(t){var e,r,s=this,c=s.gd,u=s.layers,f=t._zoomlayer,h=S.MINZOOM,p=S.OFFEDGE,d=s.radius,g=s.innerRadius,x=s.cx,T=s.cy,k=s.cxx,M=s.cyy,A=s.sectorInRad,C=s.vangles,L=s.radialAxis,I=E.clampTiny,P=E.findXYatLength,z=E.findEnclosingVertexAngles,O=S.cornerHalfWidth,D=S.cornerLen/2,R=m.makeDragger(u,&quot;path&quot;,&quot;maindrag&quot;,&quot;crosshair&quot;);n.select(R).attr(&quot;d&quot;,s.pathSubplot()).attr(&quot;transform&quot;,l(x,T));var F,B,N,j,U,V,q,H,G,Y={element:R,gd:c,subplot:s.id,plotinfo:{id:s.id,xaxis:s.xaxis,yaxis:s.yaxis},xaxes:[s.xaxis],yaxes:[s.yaxis]};function W(t,e){return Math.sqrt(t*t+e*e)}function X(t,e){return W(t-k,e-M)}function Z(t,e){return Math.atan2(M-e,t-k)}function J(t,e){return[t*Math.cos(e),t*Math.sin(-e)]}function K(t,e){if(0===t)return s.pathSector(2*O);var r=D/t,n=e-r,i=e+r,a=Math.max(0,Math.min(t,d)),o=a-O,l=a+O;return&quot;M&quot;+J(o,n)+&quot;A&quot;+[o,o]+&quot; 0,0,0 &quot;+J(o,i)+&quot;L&quot;+J(l,i)+&quot;A&quot;+[l,l]+&quot; 0,0,1 &quot;+J(l,n)+&quot;Z&quot;}function Q(t,e,r){if(0===t)return s.pathSector(2*O);var n,i,a=J(t,e),o=J(t,r),l=I((a[0]+o[0])/2),c=I((a[1]+o[1])/2);if(l&amp;&amp;c){var u=c/l,f=-1/u,h=P(O,u,l,c);n=P(D,f,h[0][0],h[0][1]),i=P(D,f,h[1][0],h[1][1])}else{var p,d;c?(p=D,d=O):(p=O,d=D),n=[[l-p,c-d],[l+p,c-d]],i=[[l-p,c+d],[l+p,c+d]]}return&quot;M&quot;+n.join(&quot;L&quot;)+&quot;L&quot;+i.reverse().join(&quot;L&quot;)+&quot;Z&quot;}function $(t,e){return e=Math.max(Math.min(e,d),g),t&lt;p?t=0:d-t&lt;p?t=d:e&lt;p?e=0:d-e&lt;p&amp;&amp;(e=d),Math.abs(e-t)&gt;h?(t&lt;e?(N=t,j=e):(N=e,j=t),!0):(N=null,j=null,!1)}function tt(t,e){t=t||U,e=e||&quot;M0,0Z&quot;,H.attr(&quot;d&quot;,t),G.attr(&quot;d&quot;,e),m.transitionZoombox(H,G,V,q),V=!0;var r={};at(r),c.emit(&quot;plotly_relayouting&quot;,r)}function et(t,n){var i,a,o=F+(t*=e),l=B+(n*=r),c=X(F,B),u=Math.min(X(o,l),d),f=Z(F,B);$(c,u)&amp;&amp;(i=U+s.pathSector(j),N&amp;&amp;(i+=s.pathSector(N)),a=K(N,f)+K(j,f)),tt(i,a)}function rt(t,e,r,n){var i=E.findIntersectionXY(r,n,r,[t-k,M-e]);return W(i[0],i[1])}function nt(t,e){var r,n,i=F+t,a=B+e,o=Z(F,B),l=Z(i,a),c=z(o,C),u=z(l,C);$(rt(F,B,c[0],c[1]),Math.min(rt(i,a,u[0],u[1]),d))&amp;&amp;(r=U+s.pathSector(j),N&amp;&amp;(r+=s.pathSector(N)),n=[Q(N,c[0],c[1]),Q(j,c[0],c[1])].join(&quot; &quot;)),tt(r,n)}function it(){if(m.removeZoombox(c),null!==N&amp;&amp;null!==j){var t={};at(t),m.showDoubleClickNotifier(c),a.call(&quot;_guiRelayout&quot;,c,t)}}function at(t){var e=L._rl,r=(e[1]-e[0])/(1-g/d)/d,n=[e[0]+(N-g)*r,e[0]+(j-g)*r];t[s.id+&quot;.radialaxis.range&quot;]=n}function ot(t,e){var r=c._fullLayout.clickmode;if(m.removeZoombox(c),2===t){var n={};for(var i in s.viewInitial)n[s.id+&quot;.&quot;+i]=s.viewInitial[i];c.emit(&quot;plotly_doubleclick&quot;,null),a.call(&quot;_guiRelayout&quot;,c,n)}r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;1===t&amp;&amp;_(e,c,[s.xaxis],[s.yaxis],s.id,Y),r.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;y.click(c,e,s.id)}Y.prepFn=function(t,n,a){var l=c._fullLayout.dragmode,u=R.getBoundingClientRect();c._fullLayout._calcInverseTransform(c);var h=c._fullLayout._invTransform;e=c._fullLayout._invScaleX,r=c._fullLayout._invScaleY;var p=o.apply3DTransform(h)(n-u.left,a-u.top);if(F=p[0],B=p[1],C){var g=E.findPolygonOffset(d,A[0],A[1],C);F+=k+g[0],B+=M+g[1]}switch(l){case&quot;zoom&quot;:Y.moveFn=C?nt:et,Y.clickFn=ot,Y.doneFn=it,function(){N=null,j=null,U=s.pathSubplot(),V=!1;var t=c._fullLayout[s.id];q=i(t.bgcolor).getLuminance(),(H=m.makeZoombox(f,q,x,T,U)).attr(&quot;fill-rule&quot;,&quot;evenodd&quot;),G=m.makeCorners(f,x,T),w(c)}();break;case&quot;select&quot;:case&quot;lasso&quot;:b(t,n,a,Y,l)}},R.onmousemove=function(t){y.hover(c,t,s.id),c._fullLayout._lasthover=R,c._fullLayout._hoversubplot=s.id},R.onmouseout=function(t){c._dragging||v.unhover(c,t)},v.init(Y)},O.updateRadialDrag=function(t,e,r){var i=this,c=i.gd,u=i.layers,f=i.radius,h=i.innerRadius,p=i.cx,d=i.cy,g=i.radialAxis,y=S.radialDragBoxSize,x=y/2;if(g.visible){var b,_,T,A=I(i.radialAxisAngle),E=g._rl,C=E[0],L=E[1],z=E[r],O=.75*(E[1]-E[0])/(1-e.hole)/f;r?(b=p+(f+x)*Math.cos(A),_=d-(f+x)*Math.sin(A),T=&quot;radialdrag&quot;):(b=p+(h-x)*Math.cos(A),_=d-(h-x)*Math.sin(A),T=&quot;radialdrag-inner&quot;);var D,B,N,j=m.makeRectDragger(u,T,&quot;crosshair&quot;,-x,-x,y,y),U={element:j,gd:c};F(n.select(j),g.visible&amp;&amp;h&lt;f,{transform:l(b,_)}),U.prepFn=function(){D=null,B=null,N=null,U.moveFn=V,U.doneFn=q,w(c)},U.clampFn=function(t,e){return Math.sqrt(t*t+e*e)&lt;S.MINDRAG&amp;&amp;(t=0,e=0),[t,e]},v.init(U)}function V(t,e){if(D)D(t,e);else{var n=[t,-e],a=[Math.cos(A),Math.sin(A)],s=Math.abs(o.dot(n,a)/Math.sqrt(o.dot(n,n)));isNaN(s)||(D=s&lt;.5?H:G)}var l={};!function(t){null!==B?t[i.id+&quot;.radialaxis.angle&quot;]=B:null!==N&amp;&amp;(t[i.id+&quot;.radialaxis.range[&quot;+r+&quot;]&quot;]=N)}(l),c.emit(&quot;plotly_relayouting&quot;,l)}function q(){null!==B?a.call(&quot;_guiRelayout&quot;,c,i.id+&quot;.radialaxis.angle&quot;,B):null!==N&amp;&amp;a.call(&quot;_guiRelayout&quot;,c,i.id+&quot;.radialaxis.range[&quot;+r+&quot;]&quot;,N)}function H(t,e){if(0!==r){var n=b+t,a=_+e;B=Math.atan2(d-a,n-p),i.vangles&amp;&amp;(B=R(B,i.vangles)),B=P(B);var o=l(p,d)+s(-B);u[&quot;radial-axis&quot;].attr(&quot;transform&quot;,o),u[&quot;radial-line&quot;].select(&quot;line&quot;).attr(&quot;transform&quot;,o);var c=i.gd._fullLayout,f=c[i.id];i.updateRadialAxisTitle(c,f,B)}}function G(t,e){var n=o.dot([t,-e],[Math.cos(A),Math.sin(A)]);if(N=z-O*n,O&gt;0==(r?N&gt;C:N&lt;L)){var s=c._fullLayout,l=s[i.id];g.range[r]=N,g._rl[r]=N,i.updateRadialAxis(s,l),i.xaxis.setRange(),i.xaxis.setScale(),i.yaxis.setRange(),i.yaxis.setScale();var u=!1;for(var f in i.traceHash){var h=i.traceHash[f],p=o.filterVisible(h);h[0][0].trace._module.plot(c,i,p,l),a.traceIs(f,&quot;gl&quot;)&amp;&amp;p.length&amp;&amp;(u=!0)}u&amp;&amp;(k(c),M(c))}else N=null}},O.updateAngularDrag=function(t){var e=this,r=e.gd,i=e.layers,c=e.radius,f=e.angularAxis,h=e.cx,p=e.cy,d=e.cxx,g=e.cyy,y=S.angularDragBoxSize,x=m.makeDragger(i,&quot;path&quot;,&quot;angulardrag&quot;,&quot;move&quot;),b={element:x,gd:r};function _(t,e){return Math.atan2(g+y-e,t-d-y)}n.select(x).attr(&quot;d&quot;,e.pathAnnulus(c,c+y)).attr(&quot;transform&quot;,l(h,p)).call(T,&quot;move&quot;);var A,E,C,L,I,z,O=i.frontplot.select(&quot;.scatterlayer&quot;).selectAll(&quot;.trace&quot;),D=O.selectAll(&quot;.point&quot;),R=O.selectAll(&quot;.textpoint&quot;);function F(c,m){var v=e.gd._fullLayout,y=v[e.id],x=_(A+c*t._invScaleX,E+m*t._invScaleY),b=P(x-z);if(L=C+b,i.frontplot.attr(&quot;transform&quot;,l(e.xOffset2,e.yOffset2)+s([-b,d,g])),e.vangles){I=e.radialAxisAngle+b;var w=l(h,p)+s(-b),T=l(h,p)+s(-I);i.bg.attr(&quot;transform&quot;,w),i[&quot;radial-grid&quot;].attr(&quot;transform&quot;,w),i[&quot;radial-axis&quot;].attr(&quot;transform&quot;,T),i[&quot;radial-line&quot;].select(&quot;line&quot;).attr(&quot;transform&quot;,T),e.updateRadialAxisTitle(v,y,I)}else e.clipPaths.forTraces.select(&quot;path&quot;).attr(&quot;transform&quot;,l(d,g)+s(b));D.each((function(){var t=n.select(this),e=u.getTranslate(t);t.attr(&quot;transform&quot;,l(e.x,e.y)+s([b]))})),R.each((function(){var t=n.select(this),e=t.select(&quot;text&quot;),r=u.getTranslate(t);t.attr(&quot;transform&quot;,s([b,e.attr(&quot;x&quot;),e.attr(&quot;y&quot;)])+l(r.x,r.y))})),f.rotation=o.modHalf(L,360),e.updateAngularAxis(v,y),e._hasClipOnAxisFalse&amp;&amp;!o.isFullCircle(e.sectorInRad)&amp;&amp;O.call(u.hideOutsideRangePoints,e);var S=!1;for(var F in e.traceHash)if(a.traceIs(F,&quot;gl&quot;)){var N=e.traceHash[F],j=o.filterVisible(N);N[0][0].trace._module.plot(r,e,j,y),j.length&amp;&amp;(S=!0)}S&amp;&amp;(k(r),M(r));var U={};B(U),r.emit(&quot;plotly_relayouting&quot;,U)}function B(t){t[e.id+&quot;.angularaxis.rotation&quot;]=L,e.vangles&amp;&amp;(t[e.id+&quot;.radialaxis.angle&quot;]=I)}function N(){R.select(&quot;text&quot;).attr(&quot;transform&quot;,null);var t={};B(t),a.call(&quot;_guiRelayout&quot;,r,t)}b.prepFn=function(n,i,a){var s=t[e.id];C=s.angularaxis.rotation;var l=x.getBoundingClientRect();A=i-l.left,E=a-l.top,r._fullLayout._calcInverseTransform(r);var c=o.apply3DTransform(t._invTransform)(A,E);A=c[0],E=c[1],z=_(A,E),b.moveFn=F,b.doneFn=N,w(r)},e.vangles&amp;&amp;!o.isFullCircle(e.sectorInRad)&amp;&amp;(b.prepFn=o.noop,T(n.select(x),null)),v.init(b)},O.isPtInside=function(t){var e=this.sectorInRad,r=this.vangles,n=this.angularAxis.c2g(t.theta),i=this.radialAxis,a=i.c2l(t.r),s=i._rl;return(r?E.isPtInsidePolygon:o.isPtInsideSector)(a,n,s,e,r)},O.pathArc=function(t){var e=this.sectorInRad,r=this.vangles;return(r?E.pathPolygon:o.pathArc)(t,e[0],e[1],r)},O.pathSector=function(t){var e=this.sectorInRad,r=this.vangles;return(r?E.pathPolygon:o.pathSector)(t,e[0],e[1],r)},O.pathAnnulus=function(t,e){var r=this.sectorInRad,n=this.vangles;return(n?E.pathPolygonAnnulus:o.pathAnnulus)(t,e,r[0],r[1],n)},O.pathSubplot=function(){var t=this.innerRadius,e=this.radius;return t?this.pathAnnulus(t,e):this.pathSector(e)},O.fillViewInitialKey=function(t,e){t in this.viewInitial||(this.viewInitial[t]=e)}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../components/titles&quot;:738,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/clear_gl_canvases&quot;:762,&quot;../../lib/setcursor&quot;:799,&quot;../../plot_api/subroutines&quot;:818,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../cartesian/autorange&quot;:827,&quot;../cartesian/dragbox&quot;:836,&quot;../cartesian/select&quot;:847,&quot;../cartesian/set_convert&quot;:848,&quot;../plots&quot;:891,&quot;./constants&quot;:892,&quot;./helpers&quot;:893,&quot;./set_convert&quot;:904,d3:169,tinycolor2:576}],904:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../cartesian/set_convert&quot;),a=n.deg2rad,o=n.rad2deg;e.exports=function(t,e,r){switch(i(t,r),t._id){case&quot;x&quot;:case&quot;radialaxis&quot;:!function(t,e){var r=e._subplot;t.setGeometry=function(){var e=t._rl[0],n=t._rl[1],i=r.innerRadius,a=(r.radius-i)/(n-e),o=i/a,s=e&gt;n?function(t){return t&lt;=0}:function(t){return t&gt;=0};t.c2g=function(r){var n=t.c2l(r)-e;return(s(n)?n:0)+o},t.g2c=function(r){return t.l2c(r+e-o)},t.g2p=function(t){return t*a},t.c2p=function(e){return t.g2p(t.c2g(e))}}}(t,e);break;case&quot;angularaxis&quot;:!function(t,e){var r=t.type;if(&quot;linear&quot;===r){var i=t.d2c,s=t.c2d;t.d2c=function(t,e){return function(t,e){return&quot;degrees&quot;===e?a(t):t}(i(t),e)},t.c2d=function(t,e){return s(function(t,e){return&quot;degrees&quot;===e?o(t):t}(t,e))}}t.makeCalcdata=function(e,i){var a,o,s=e[i],l=e._length,c=function(r){return t.d2c(r,e.thetaunit)};if(s){if(n.isTypedArray(s)&amp;&amp;&quot;linear&quot;===r){if(l===s.length)return s;if(s.subarray)return s.subarray(0,l)}for(a=new Array(l),o=0;o&lt;l;o++)a[o]=c(s[o])}else{var u=i+&quot;0&quot;,f=&quot;d&quot;+i,h=u in e?c(e[u]):0,p=e[f]?c(e[f]):(t.period||2*Math.PI)/l;for(a=new Array(l),o=0;o&lt;l;o++)a[o]=h+o*p}return a},t.setGeometry=function(){var i,s,l,c,u=e.sector,f=u.map(a),h={clockwise:-1,counterclockwise:1}[t.direction],p=a(t.rotation),d=function(t){return h*t+p},g=function(t){return(t-p)/h};switch(r){case&quot;linear&quot;:s=i=n.identity,c=a,l=o,t.range=n.isFullCircle(f)?[u[0],u[0]+360]:f.map(g).map(o);break;case&quot;category&quot;:var m=t._categories.length,v=t.period?Math.max(t.period,m):m;0===v&amp;&amp;(v=1),s=c=function(t){return 2*t*Math.PI/v},i=l=function(t){return t*v/Math.PI/2},t.range=[0,v]}t.c2g=function(t){return d(s(t))},t.g2c=function(t){return i(g(t))},t.t2g=function(t){return d(c(t))},t.g2t=function(t){return l(g(t))}}}(t,e)}}},{&quot;../../lib&quot;:778,&quot;../cartesian/set_convert&quot;:848}],905:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_template&quot;),a=t(&quot;./domain&quot;).defaults;e.exports=function(t,e,r,o){var s,l,c=o.type,u=o.attributes,f=o.handleDefaults,h=o.partition||&quot;x&quot;,p=e._subplots[c],d=p.length,g=d&amp;&amp;p[0].replace(/\d+$/,&quot;&quot;);function m(t,e){return n.coerce(s,l,u,t,e)}for(var v=0;v&lt;d;v++){var y=p[v];s=t[y]?t[y]:t[y]={},l=i.newContainer(e,y,g),m(&quot;uirevision&quot;,e.uirevision);var x={};x[h]=[v/d,(v+1)/d],a(l,e,m,x),o.id=y,f(s,l,m,o)}}},{&quot;../lib&quot;:778,&quot;../plot_api/plot_template&quot;:817,&quot;./domain&quot;:855}],906:[function(t,e,r){&quot;use strict&quot;;['Variables are inserted using %{variable}, for example &quot;y: %{y}&quot;.','Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example &quot;Price: %{y:$.2f}&quot;.',t(&quot;../constants/docs&quot;).FORMAT_LINK,&quot;for details on the formatting syntax.&quot;,'Dates are formatted using d3-time-format\'s syntax %{variable|d3-time-format}, for example &quot;Day: %{2019-01-01|%A}&quot;.',t(&quot;../constants/docs&quot;).DATE_FORMAT_LINK,&quot;for details on the date formatting syntax.&quot;].join(&quot; &quot;);function n(t){var e=t.description?&quot; &quot;+t.description:&quot;&quot;,r=t.keys||[];if(r.length&gt;0){for(var n=[],i=0;i&lt;r.length;i++)n[i]=&quot;`&quot;+r[i]+&quot;`&quot;;e+=&quot;Finally, the template string has access to &quot;,e=1===r.length?&quot;variable &quot;+n[0]:&quot;variables &quot;+n.slice(0,-1).join(&quot;, &quot;)+&quot; and &quot;+n.slice(-1)+&quot;.&quot;}return e}r.hovertemplateAttrs=function(t,e){t=t||{};n(e=e||{});var r={valType:&quot;string&quot;,dflt:&quot;&quot;,editType:t.editType||&quot;none&quot;};return!1!==t.arrayOk&amp;&amp;(r.arrayOk=!0),r},r.texttemplateAttrs=function(t,e){t=t||{};n(e=e||{});var r={valType:&quot;string&quot;,dflt:&quot;&quot;,editType:t.editType||&quot;calc&quot;};return!1!==t.arrayOk&amp;&amp;(r.arrayOk=!0),r}},{&quot;../constants/docs&quot;:748}],907:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./ternary&quot;),i=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,a=t(&quot;../../lib&quot;).counterRegex;r.name=&quot;ternary&quot;;var o=r.attr=&quot;subplot&quot;;r.idRoot=&quot;ternary&quot;,r.idRegex=r.attrRegex=a(&quot;ternary&quot;),(r.attributes={})[o]={valType:&quot;subplotid&quot;,dflt:&quot;ternary&quot;,editType:&quot;calc&quot;},r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t.calcdata,a=e._subplots.ternary,o=0;o&lt;a.length;o++){var s=a[o],l=i(r,&quot;ternary&quot;,s),c=e[s]._subplot;c||(c=new n({id:s,graphDiv:t,container:e._ternarylayer.node()},e),e[s]._subplot=c),c.plot(l,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.ternary||[],a=0;a&lt;i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&amp;&amp;s&amp;&amp;(s.plotContainer.remove(),s.clipDef.remove(),s.clipDefRelative.remove(),s.layers[&quot;a-title&quot;].remove(),s.layers[&quot;b-title&quot;].remove(),s.layers[&quot;c-title&quot;].remove())}}},{&quot;../../lib&quot;:778,&quot;../../plots/get_data&quot;:865,&quot;./layout_attributes&quot;:908,&quot;./layout_defaults&quot;:909,&quot;./ternary&quot;:910}],908:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../domain&quot;).attributes,a=t(&quot;../cartesian/layout_attributes&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../lib/extend&quot;).extendFlat,l={title:{text:a.title.text,font:a.title.font},color:a.color,tickmode:a.tickmode,nticks:s({},a.nticks,{dflt:6,min:1}),tick0:a.tick0,dtick:a.dtick,tickvals:a.tickvals,ticktext:a.ticktext,ticks:a.ticks,ticklen:a.ticklen,tickwidth:a.tickwidth,tickcolor:a.tickcolor,showticklabels:a.showticklabels,showtickprefix:a.showtickprefix,tickprefix:a.tickprefix,showticksuffix:a.showticksuffix,ticksuffix:a.ticksuffix,showexponent:a.showexponent,exponentformat:a.exponentformat,minexponent:a.minexponent,separatethousands:a.separatethousands,tickfont:a.tickfont,tickangle:a.tickangle,tickformat:a.tickformat,tickformatstops:a.tickformatstops,hoverformat:a.hoverformat,showline:s({},a.showline,{dflt:!0}),linecolor:a.linecolor,linewidth:a.linewidth,showgrid:s({},a.showgrid,{dflt:!0}),gridcolor:a.gridcolor,gridwidth:a.gridwidth,layer:a.layer,min:{valType:&quot;number&quot;,dflt:0,min:0},_deprecated:{title:a._deprecated.title,titlefont:a._deprecated.titlefont}},c=e.exports=o({domain:i({name:&quot;ternary&quot;}),bgcolor:{valType:&quot;color&quot;,dflt:n.background},sum:{valType:&quot;number&quot;,dflt:1,min:0},aaxis:l,baxis:l,caxis:l},&quot;plot&quot;,&quot;from-root&quot;);c.uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;},c.aaxis.uirevision=c.baxis.uirevision=c.caxis.uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../cartesian/layout_attributes&quot;:842,&quot;../domain&quot;:855}],909:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../subplot_defaults&quot;),s=t(&quot;../cartesian/tick_label_defaults&quot;),l=t(&quot;../cartesian/tick_mark_defaults&quot;),c=t(&quot;../cartesian/tick_value_defaults&quot;),u=t(&quot;../cartesian/line_grid_defaults&quot;),f=t(&quot;./layout_attributes&quot;),h=[&quot;aaxis&quot;,&quot;baxis&quot;,&quot;caxis&quot;];function p(t,e,r,a){var o,s,l,c=r(&quot;bgcolor&quot;),u=r(&quot;sum&quot;);a.bgColor=n.combine(c,a.paper_bgcolor);for(var f=0;f&lt;h.length;f++)s=t[o=h[f]]||{},(l=i.newContainer(e,o))._name=o,d(s,l,a,e);var p=e.aaxis,g=e.baxis,m=e.caxis;p.min+g.min+m.min&gt;=u&amp;&amp;(p.min=0,g.min=0,m.min=0,t.aaxis&amp;&amp;delete t.aaxis.min,t.baxis&amp;&amp;delete t.baxis.min,t.caxis&amp;&amp;delete t.caxis.min)}function d(t,e,r,n){var i=f[e._name];function o(r,n){return a.coerce(t,e,i,r,n)}o(&quot;uirevision&quot;,n.uirevision),e.type=&quot;linear&quot;;var h=o(&quot;color&quot;),p=h!==i.color.dflt?h:r.font.color,d=e._name.charAt(0).toUpperCase(),g=&quot;Component &quot;+d,m=o(&quot;title.text&quot;,g);e._hovertitle=m===g?m:d,a.coerceFont(o,&quot;title.font&quot;,{family:r.font.family,size:Math.round(1.2*r.font.size),color:p}),o(&quot;min&quot;),c(t,e,o,&quot;linear&quot;),s(t,e,o,&quot;linear&quot;,{}),l(t,e,o,{outerTicks:!0}),o(&quot;showticklabels&quot;)&amp;&amp;(a.coerceFont(o,&quot;tickfont&quot;,{family:r.font.family,size:r.font.size,color:p}),o(&quot;tickangle&quot;),o(&quot;tickformat&quot;)),u(t,e,o,{dfltColor:h,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),o(&quot;hoverformat&quot;),o(&quot;layer&quot;)}e.exports=function(t,e,r){o(t,e,r,{type:&quot;ternary&quot;,attributes:f,handleDefaults:p,font:e.font,paper_bgcolor:e.paper_bgcolor})}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../cartesian/line_grid_defaults&quot;:844,&quot;../cartesian/tick_label_defaults&quot;:849,&quot;../cartesian/tick_mark_defaults&quot;:850,&quot;../cartesian/tick_value_defaults&quot;:851,&quot;../subplot_defaults&quot;:905,&quot;./layout_attributes&quot;:908}],910:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=o._,c=t(&quot;../../components/color&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../cartesian/set_convert&quot;),h=t(&quot;../../lib/extend&quot;).extendFlat,p=t(&quot;../plots&quot;),d=t(&quot;../cartesian/axes&quot;),g=t(&quot;../../components/dragelement&quot;),m=t(&quot;../../components/fx&quot;),v=t(&quot;../../components/dragelement/helpers&quot;),y=v.freeMode,x=v.rectMode,b=t(&quot;../../components/titles&quot;),_=t(&quot;../cartesian/select&quot;).prepSelect,w=t(&quot;../cartesian/select&quot;).selectOnClick,T=t(&quot;../cartesian/select&quot;).clearSelect,k=t(&quot;../cartesian/select&quot;).clearSelectionsCache,M=t(&quot;../cartesian/constants&quot;);function A(t,e){this.id=t.id,this.graphDiv=t.graphDiv,this.init(e),this.makeFramework(e),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}e.exports=A;var S=A.prototype;S.init=function(t){this.container=t._ternarylayer,this.defs=t._defs,this.layoutId=t._uid,this.traceHash={},this.layers={}},S.plot=function(t,e){var r=e[this.id],n=e._size;this._hasClipOnAxisFalse=!1;for(var i=0;i&lt;t.length;i++){if(!1===t[i][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(r),this.adjustLayout(r,n),p.generalUpdatePerTraceModule(this.graphDiv,this,t,r),this.layers.plotbg.select(&quot;path&quot;).call(c.fill,r.bgcolor)},S.makeFramework=function(t){var e=this.graphDiv,r=t[this.id],n=this.clipId=&quot;clip&quot;+this.layoutId+this.id,i=this.clipIdRelative=&quot;clip-relative&quot;+this.layoutId+this.id;this.clipDef=o.ensureSingleById(t._clips,&quot;clipPath&quot;,n,(function(t){t.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;)})),this.clipDefRelative=o.ensureSingleById(t._clips,&quot;clipPath&quot;,i,(function(t){t.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;)})),this.plotContainer=o.ensureSingle(this.container,&quot;g&quot;,this.id),this.updateLayers(r),u.setClipUrl(this.layers.backplot,n,e),u.setClipUrl(this.layers.grids,n,e)},S.updateLayers=function(t){var e=this.layers,r=[&quot;draglayer&quot;,&quot;plotbg&quot;,&quot;backplot&quot;,&quot;grids&quot;];&quot;below traces&quot;===t.aaxis.layer&amp;&amp;r.push(&quot;aaxis&quot;,&quot;aline&quot;),&quot;below traces&quot;===t.baxis.layer&amp;&amp;r.push(&quot;baxis&quot;,&quot;bline&quot;),&quot;below traces&quot;===t.caxis.layer&amp;&amp;r.push(&quot;caxis&quot;,&quot;cline&quot;),r.push(&quot;frontplot&quot;),&quot;above traces&quot;===t.aaxis.layer&amp;&amp;r.push(&quot;aaxis&quot;,&quot;aline&quot;),&quot;above traces&quot;===t.baxis.layer&amp;&amp;r.push(&quot;baxis&quot;,&quot;bline&quot;),&quot;above traces&quot;===t.caxis.layer&amp;&amp;r.push(&quot;caxis&quot;,&quot;cline&quot;);var i=this.plotContainer.selectAll(&quot;g.toplevel&quot;).data(r,String),a=[&quot;agrid&quot;,&quot;bgrid&quot;,&quot;cgrid&quot;];i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;toplevel &quot;+t})).each((function(t){var r=n.select(this);e[t]=r,&quot;frontplot&quot;===t?r.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0):&quot;backplot&quot;===t?r.append(&quot;g&quot;).classed(&quot;maplayer&quot;,!0):&quot;plotbg&quot;===t?r.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;):&quot;aline&quot;===t||&quot;bline&quot;===t||&quot;cline&quot;===t?r.append(&quot;path&quot;):&quot;grids&quot;===t&amp;&amp;a.forEach((function(t){e[t]=r.append(&quot;g&quot;).classed(&quot;grid &quot;+t,!0)}))})),i.order()};var E=Math.sqrt(4/3);S.adjustLayout=function(t,e){var r,n,i,a,o,l,p=this,d=t.domain,g=(d.x[0]+d.x[1])/2,m=(d.y[0]+d.y[1])/2,v=d.x[1]-d.x[0],y=d.y[1]-d.y[0],x=v*e.w,b=y*e.h,_=t.sum,w=t.aaxis.min,T=t.baxis.min,k=t.caxis.min;x&gt;E*b?i=(a=b)*E:a=(i=x)/E,o=v*i/x,l=y*a/b,r=e.l+e.w*g-i/2,n=e.t+e.h*(1-m)-a/2,p.x0=r,p.y0=n,p.w=i,p.h=a,p.sum=_,p.xaxis={type:&quot;linear&quot;,range:[w+2*k-_,_-w-2*T],domain:[g-o/2,g+o/2],_id:&quot;x&quot;},f(p.xaxis,p.graphDiv._fullLayout),p.xaxis.setScale(),p.xaxis.isPtWithinRange=function(t){return t.a&gt;=p.aaxis.range[0]&amp;&amp;t.a&lt;=p.aaxis.range[1]&amp;&amp;t.b&gt;=p.baxis.range[1]&amp;&amp;t.b&lt;=p.baxis.range[0]&amp;&amp;t.c&gt;=p.caxis.range[1]&amp;&amp;t.c&lt;=p.caxis.range[0]},p.yaxis={type:&quot;linear&quot;,range:[w,_-T-k],domain:[m-l/2,m+l/2],_id:&quot;y&quot;},f(p.yaxis,p.graphDiv._fullLayout),p.yaxis.setScale(),p.yaxis.isPtWithinRange=function(){return!0};var M=p.yaxis.domain[0],A=p.aaxis=h({},t.aaxis,{range:[w,_-T-k],side:&quot;left&quot;,tickangle:(+t.aaxis.tickangle||0)-30,domain:[M,M+l*E],anchor:&quot;free&quot;,position:0,_id:&quot;y&quot;,_length:i});f(A,p.graphDiv._fullLayout),A.setScale();var S=p.baxis=h({},t.baxis,{range:[_-w-k,T],side:&quot;bottom&quot;,domain:p.xaxis.domain,anchor:&quot;free&quot;,position:0,_id:&quot;x&quot;,_length:i});f(S,p.graphDiv._fullLayout),S.setScale();var C=p.caxis=h({},t.caxis,{range:[_-w-T,k],side:&quot;right&quot;,tickangle:(+t.caxis.tickangle||0)+30,domain:[M,M+l*E],anchor:&quot;free&quot;,position:0,_id:&quot;y&quot;,_length:i});f(C,p.graphDiv._fullLayout),C.setScale();var L=&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;h&quot;+i+&quot;l-&quot;+i/2+&quot;,-&quot;+a+&quot;Z&quot;;p.clipDef.select(&quot;path&quot;).attr(&quot;d&quot;,L),p.layers.plotbg.select(&quot;path&quot;).attr(&quot;d&quot;,L);var I=&quot;M0,&quot;+a+&quot;h&quot;+i+&quot;l-&quot;+i/2+&quot;,-&quot;+a+&quot;Z&quot;;p.clipDefRelative.select(&quot;path&quot;).attr(&quot;d&quot;,I);var P=s(r,n);p.plotContainer.selectAll(&quot;.scatterlayer,.maplayer&quot;).attr(&quot;transform&quot;,P),p.clipDefRelative.select(&quot;path&quot;).attr(&quot;transform&quot;,null);var z=s(r-S._offset,n+a);p.layers.baxis.attr(&quot;transform&quot;,z),p.layers.bgrid.attr(&quot;transform&quot;,z);var O=s(r+i/2,n)+&quot;rotate(30)&quot;+s(0,-A._offset);p.layers.aaxis.attr(&quot;transform&quot;,O),p.layers.agrid.attr(&quot;transform&quot;,O);var D=s(r+i/2,n)+&quot;rotate(-30)&quot;+s(0,-C._offset);p.layers.caxis.attr(&quot;transform&quot;,D),p.layers.cgrid.attr(&quot;transform&quot;,D),p.drawAxes(!0),p.layers.aline.select(&quot;path&quot;).attr(&quot;d&quot;,A.showline?&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;l&quot;+i/2+&quot;,-&quot;+a:&quot;M0,0&quot;).call(c.stroke,A.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(A.linewidth||0)+&quot;px&quot;),p.layers.bline.select(&quot;path&quot;).attr(&quot;d&quot;,S.showline?&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;h&quot;+i:&quot;M0,0&quot;).call(c.stroke,S.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(S.linewidth||0)+&quot;px&quot;),p.layers.cline.select(&quot;path&quot;).attr(&quot;d&quot;,C.showline?&quot;M&quot;+(r+i/2)+&quot;,&quot;+n+&quot;l&quot;+i/2+&quot;,&quot;+a:&quot;M0,0&quot;).call(c.stroke,C.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(C.linewidth||0)+&quot;px&quot;),p.graphDiv._context.staticPlot||p.initInteractions(),u.setClipUrl(p.layers.frontplot,p._hasClipOnAxisFalse?null:p.clipId,p.graphDiv)},S.drawAxes=function(t){var e=this.graphDiv,r=this.id.substr(7)+&quot;title&quot;,n=this.layers,i=this.aaxis,a=this.baxis,o=this.caxis;if(this.drawAx(i),this.drawAx(a),this.drawAx(o),t){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(o.showticklabels?.75*o.tickfont.size:0)+(&quot;outside&quot;===o.ticks?.87*o.ticklen:0)),c=(a.showticklabels?a.tickfont.size:0)+(&quot;outside&quot;===a.ticks?a.ticklen:0)+3;n[&quot;a-title&quot;]=b.draw(e,&quot;a&quot;+r,{propContainer:i,propName:this.id+&quot;.aaxis.title&quot;,placeholder:l(e,&quot;Click to enter Component A title&quot;),attributes:{x:this.x0+this.w/2,y:this.y0-i.title.font.size/3-s,&quot;text-anchor&quot;:&quot;middle&quot;}}),n[&quot;b-title&quot;]=b.draw(e,&quot;b&quot;+r,{propContainer:a,propName:this.id+&quot;.baxis.title&quot;,placeholder:l(e,&quot;Click to enter Component B title&quot;),attributes:{x:this.x0-c,y:this.y0+this.h+.83*a.title.font.size+c,&quot;text-anchor&quot;:&quot;middle&quot;}}),n[&quot;c-title&quot;]=b.draw(e,&quot;c&quot;+r,{propContainer:o,propName:this.id+&quot;.caxis.title&quot;,placeholder:l(e,&quot;Click to enter Component C title&quot;),attributes:{x:this.x0+this.w+c,y:this.y0+this.h+.83*o.title.font.size+c,&quot;text-anchor&quot;:&quot;middle&quot;}})}},S.drawAx=function(t){var e,r=this.graphDiv,n=t._name,i=n.charAt(0),a=t._id,s=this.layers[n],l=i+&quot;tickLayout&quot;,c=(e=t).ticks+String(e.ticklen)+String(e.showticklabels);this[l]!==c&amp;&amp;(s.selectAll(&quot;.&quot;+a+&quot;tick&quot;).remove(),this[l]=c),t.setScale();var u=d.calcTicks(t),f=d.clipEnds(t,u),h=d.makeTransTickFn(t),p=d.getTickSigns(t)[2],g=o.deg2rad(30),m=p*(t.linewidth||1)/2,v=p*t.ticklen,y=this.w,x=this.h,b=&quot;b&quot;===i?&quot;M0,&quot;+m+&quot;l&quot;+Math.sin(g)*v+&quot;,&quot;+Math.cos(g)*v:&quot;M&quot;+m+&quot;,0l&quot;+Math.cos(g)*v+&quot;,&quot;+-Math.sin(g)*v,_={a:&quot;M0,0l&quot;+x+&quot;,-&quot;+y/2,b:&quot;M0,0l-&quot;+y/2+&quot;,-&quot;+x,c:&quot;M0,0l-&quot;+x+&quot;,&quot;+y/2}[i];d.drawTicks(r,t,{vals:&quot;inside&quot;===t.ticks?f:u,layer:s,path:b,transFn:h,crisp:!1}),d.drawGrid(r,t,{vals:f,layer:this.layers[i+&quot;grid&quot;],path:_,transFn:h,crisp:!1}),d.drawLabels(r,t,{vals:u,layer:s,transFn:h,labelFns:d.makeLabelFns(t,0,30)})};var C=M.MINZOOM/2+.87,L=&quot;m-0.87,.5h&quot;+C+&quot;v3h-&quot;+(C+5.2)+&quot;l&quot;+(C/2+2.6)+&quot;,-&quot;+(.87*C+4.5)+&quot;l2.6,1.5l-&quot;+C/2+&quot;,&quot;+.87*C+&quot;Z&quot;,I=&quot;m0.87,.5h-&quot;+C+&quot;v3h&quot;+(C+5.2)+&quot;l-&quot;+(C/2+2.6)+&quot;,-&quot;+(.87*C+4.5)+&quot;l-2.6,1.5l&quot;+C/2+&quot;,&quot;+.87*C+&quot;Z&quot;,P=&quot;m0,1l&quot;+C/2+&quot;,&quot;+.87*C+&quot;l2.6,-1.5l-&quot;+(C/2+2.6)+&quot;,-&quot;+(.87*C+4.5)+&quot;l-&quot;+(C/2+2.6)+&quot;,&quot;+(.87*C+4.5)+&quot;l2.6,1.5l&quot;+C/2+&quot;,-&quot;+.87*C+&quot;Z&quot;,z=!0;function O(t){n.select(t).selectAll(&quot;.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners&quot;).remove()}S.clearSelect=function(){k(this.dragOptions),T(this.dragOptions.gd)},S.initInteractions=function(){var t,e,r,n,f,h,p,d,v,b,T,k,A=this,S=A.layers.plotbg.select(&quot;path&quot;).node(),C=A.graphDiv,D=C._fullLayout._zoomlayer;function R(t){var e={};return e[A.id+&quot;.aaxis.min&quot;]=t.a,e[A.id+&quot;.baxis.min&quot;]=t.b,e[A.id+&quot;.caxis.min&quot;]=t.c,e}function F(t,e){var r=C._fullLayout.clickmode;O(C),2===t&amp;&amp;(C.emit(&quot;plotly_doubleclick&quot;,null),a.call(&quot;_guiRelayout&quot;,C,R({a:0,b:0,c:0}))),r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;1===t&amp;&amp;w(e,C,[A.xaxis],[A.yaxis],A.id,A.dragOptions),r.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;m.click(C,e,A.id)}function B(t,e){return 1-e/A.h}function N(t,e){return 1-(t+(A.h-e)/Math.sqrt(3))/A.w}function j(t,e){return(t-(A.h-e)/Math.sqrt(3))/A.w}function U(i,a){var o=r+i*t,s=n+a*e,l=Math.max(0,Math.min(1,B(0,n),B(0,s))),c=Math.max(0,Math.min(1,N(r,n),N(o,s))),u=Math.max(0,Math.min(1,j(r,n),j(o,s))),g=(l/2+u)*A.w,m=(1-l/2-c)*A.w,y=(g+m)/2,x=m-g,_=(1-l)*A.h,w=_-x/E;x&lt;M.MINZOOM?(p=f,T.attr(&quot;d&quot;,v),k.attr(&quot;d&quot;,&quot;M0,0Z&quot;)):(p={a:f.a+l*h,b:f.b+c*h,c:f.c+u*h},T.attr(&quot;d&quot;,v+&quot;M&quot;+g+&quot;,&quot;+_+&quot;H&quot;+m+&quot;L&quot;+y+&quot;,&quot;+w+&quot;L&quot;+g+&quot;,&quot;+_+&quot;Z&quot;),k.attr(&quot;d&quot;,&quot;M&quot;+r+&quot;,&quot;+n+&quot;m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2ZM&quot;+g+&quot;,&quot;+_+L+&quot;M&quot;+m+&quot;,&quot;+_+I+&quot;M&quot;+y+&quot;,&quot;+w+P)),b||(T.transition().style(&quot;fill&quot;,d&gt;.2?&quot;rgba(0,0,0,0.4)&quot;:&quot;rgba(255,255,255,0.3)&quot;).duration(200),k.transition().style(&quot;opacity&quot;,1).duration(200),b=!0),C.emit(&quot;plotly_relayouting&quot;,R(p))}function V(){O(C),p!==f&amp;&amp;(a.call(&quot;_guiRelayout&quot;,C,R(p)),z&amp;&amp;C.data&amp;&amp;C._context.showTips&amp;&amp;(o.notifier(l(C,&quot;Double-click to zoom back out&quot;),&quot;long&quot;),z=!1))}function q(t,e){var r=t/A.xaxis._m,n=e/A.yaxis._m,i=[(p={a:f.a-n,b:f.b+(r+n)/2,c:f.c-(r-n)/2}).a,p.b,p.c].sort(o.sorterAsc),a=i.indexOf(p.a),l=i.indexOf(p.b),c=i.indexOf(p.c);i[0]&lt;0&amp;&amp;(i[1]+i[0]/2&lt;0?(i[2]+=i[0]+i[1],i[0]=i[1]=0):(i[2]+=i[0]/2,i[1]+=i[0]/2,i[0]=0),p={a:i[a],b:i[l],c:i[c]},e=(f.a-p.a)*A.yaxis._m,t=(f.c-p.c-f.b+p.b)*A.xaxis._m);var h=s(A.x0+t,A.y0+e);A.plotContainer.selectAll(&quot;.scatterlayer,.maplayer&quot;).attr(&quot;transform&quot;,h);var d=s(-t,-e);A.clipDefRelative.select(&quot;path&quot;).attr(&quot;transform&quot;,d),A.aaxis.range=[p.a,A.sum-p.b-p.c],A.baxis.range=[A.sum-p.a-p.c,p.b],A.caxis.range=[A.sum-p.a-p.b,p.c],A.drawAxes(!1),A._hasClipOnAxisFalse&amp;&amp;A.plotContainer.select(&quot;.scatterlayer&quot;).selectAll(&quot;.trace&quot;).call(u.hideOutsideRangePoints,A),C.emit(&quot;plotly_relayouting&quot;,R(p))}function H(){a.call(&quot;_guiRelayout&quot;,C,R(p))}this.dragOptions={element:S,gd:C,plotinfo:{id:A.id,domain:C._fullLayout[A.id].domain,xaxis:A.xaxis,yaxis:A.yaxis},subplot:A.id,prepFn:function(a,l,u){A.dragOptions.xaxes=[A.xaxis],A.dragOptions.yaxes=[A.yaxis],t=C._fullLayout._invScaleX,e=C._fullLayout._invScaleY;var g=A.dragOptions.dragmode=C._fullLayout.dragmode;y(g)?A.dragOptions.minDrag=1:A.dragOptions.minDrag=void 0,&quot;zoom&quot;===g?(A.dragOptions.moveFn=U,A.dragOptions.clickFn=F,A.dragOptions.doneFn=V,function(t,e,a){var l=S.getBoundingClientRect();r=e-l.left,n=a-l.top,C._fullLayout._calcInverseTransform(C);var u=C._fullLayout._invTransform,g=o.apply3DTransform(u)(r,n);r=g[0],n=g[1],f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},p=f,h=A.aaxis.range[1]-f.a,d=i(A.graphDiv._fullLayout[A.id].bgcolor).getLuminance(),v=&quot;M0,&quot;+A.h+&quot;L&quot;+A.w/2+&quot;, 0L&quot;+A.w+&quot;,&quot;+A.h+&quot;Z&quot;,b=!1,T=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox&quot;).attr(&quot;transform&quot;,s(A.x0,A.y0)).style({fill:d&gt;.2?&quot;rgba(0,0,0,0)&quot;:&quot;rgba(255,255,255,0)&quot;,&quot;stroke-width&quot;:0}).attr(&quot;d&quot;,v),k=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).attr(&quot;transform&quot;,s(A.x0,A.y0)).style({fill:c.background,stroke:c.defaultLine,&quot;stroke-width&quot;:1,opacity:0}).attr(&quot;d&quot;,&quot;M0,0Z&quot;),A.clearSelect(C)}(0,l,u)):&quot;pan&quot;===g?(A.dragOptions.moveFn=q,A.dragOptions.clickFn=F,A.dragOptions.doneFn=H,f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},p=f,A.clearSelect(C)):(x(g)||y(g))&amp;&amp;_(a,l,u,A.dragOptions,g)}},S.onmousemove=function(t){m.hover(C,t,A.id),C._fullLayout._lasthover=S,C._fullLayout._hoversubplot=A.id},S.onmouseout=function(t){C._dragging||g.unhover(C,t)},g.init(this.dragOptions)}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../components/titles&quot;:738,&quot;../../lib&quot;:778,&quot;../../lib/extend&quot;:768,&quot;../../registry&quot;:911,&quot;../cartesian/axes&quot;:828,&quot;../cartesian/constants&quot;:834,&quot;../cartesian/select&quot;:847,&quot;../cartesian/set_convert&quot;:848,&quot;../plots&quot;:891,d3:169,tinycolor2:576}],911:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/loggers&quot;),i=t(&quot;./lib/noop&quot;),a=t(&quot;./lib/push_unique&quot;),o=t(&quot;./lib/is_plain_object&quot;),s=t(&quot;./lib/dom&quot;).addStyleRule,l=t(&quot;./lib/extend&quot;),c=t(&quot;./plots/attributes&quot;),u=t(&quot;./plots/layout_attributes&quot;),f=l.extendFlat,h=l.extendDeepAll;function p(t){var e=t.name,i=t.categories,a=t.meta;if(r.modules[e])n.log(&quot;Type &quot;+e+&quot; already registered&quot;);else{r.subplotsRegistry[t.basePlotModule.name]||function(t){var e=t.name;if(r.subplotsRegistry[e])return void n.log(&quot;Plot type &quot;+e+&quot; already registered.&quot;);for(var i in v(t),r.subplotsRegistry[e]=t,r.componentsRegistry)b(i,t.name)}(t.basePlotModule);for(var o={},l=0;l&lt;i.length;l++)o[i[l]]=!0,r.allCategories[i[l]]=!0;for(var c in r.modules[e]={_module:t,categories:o},a&amp;&amp;Object.keys(a).length&amp;&amp;(r.modules[e].meta=a),r.allTypes.push(e),r.componentsRegistry)y(c,e);t.layoutAttributes&amp;&amp;f(r.traceLayoutAttributes,t.layoutAttributes);var u=t.basePlotModule,h=u.name;if(&quot;mapbox&quot;===h){var p=u.constants.styleRules;for(var d in p)s(&quot;.js-plotly-plot .plotly .mapboxgl-&quot;+d,p[d])}&quot;geo&quot;!==h&amp;&amp;&quot;mapbox&quot;!==h||void 0===typeof window||void 0!==window.PlotlyGeoAssets||(window.PlotlyGeoAssets={topojson:{}})}}function d(t){if(&quot;string&quot;!=typeof t.name)throw new Error(&quot;Component module *name* must be a string.&quot;);var e=t.name;for(var n in r.componentsRegistry[e]=t,t.layoutAttributes&amp;&amp;(t.layoutAttributes._isLinkedToArray&amp;&amp;a(r.layoutArrayContainers,e),v(t)),r.modules)y(e,n);for(var i in r.subplotsRegistry)b(e,i);for(var o in r.transformsRegistry)x(e,o);t.schema&amp;&amp;t.schema.layout&amp;&amp;h(u,t.schema.layout)}function g(t){if(&quot;string&quot;!=typeof t.name)throw new Error(&quot;Transform module *name* must be a string.&quot;);var e=&quot;Transform module &quot;+t.name,i=&quot;function&quot;==typeof t.transform,a=&quot;function&quot;==typeof t.calcTransform;if(!i&amp;&amp;!a)throw new Error(e+&quot; is missing a *transform* or *calcTransform* method.&quot;);for(var s in i&amp;&amp;a&amp;&amp;n.log([e+&quot; has both a *transform* and *calcTransform* methods.&quot;,&quot;Please note that all *transform* methods are executed&quot;,&quot;before all *calcTransform* methods.&quot;].join(&quot; &quot;)),o(t.attributes)||n.log(e+&quot; registered without an *attributes* object.&quot;),&quot;function&quot;!=typeof t.supplyDefaults&amp;&amp;n.log(e+&quot; registered without a *supplyDefaults* method.&quot;),r.transformsRegistry[t.name]=t,r.componentsRegistry)x(s,t.name)}function m(t){var e=t.name,n=e.split(&quot;-&quot;)[0],i=t.dictionary,a=t.format,o=i&amp;&amp;Object.keys(i).length,s=a&amp;&amp;Object.keys(a).length,l=r.localeRegistry,c=l[e];if(c||(l[e]=c={}),n!==e){var u=l[n];u||(l[n]=u={}),o&amp;&amp;u.dictionary===c.dictionary&amp;&amp;(u.dictionary=i),s&amp;&amp;u.format===c.format&amp;&amp;(u.format=a)}o&amp;&amp;(c.dictionary=i),s&amp;&amp;(c.format=a)}function v(t){if(t.layoutAttributes){var e=t.layoutAttributes._arrayAttrRegexps;if(e)for(var n=0;n&lt;e.length;n++)a(r.layoutArrayRegexes,e[n])}}function y(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.traces){var i=n.traces[e];i&amp;&amp;h(r.modules[e]._module.attributes,i)}}function x(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.transforms){var i=n.transforms[e];i&amp;&amp;h(r.transformsRegistry[e].attributes,i)}}function b(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.subplots){var i=r.subplotsRegistry[e],a=i.layoutAttributes,o=&quot;subplot&quot;===i.attr?i.name:i.attr;Array.isArray(o)&amp;&amp;(o=o[0]);var s=n.subplots[o];a&amp;&amp;s&amp;&amp;h(a,s)}}function _(t){return&quot;object&quot;==typeof t&amp;&amp;(t=t.type),t}r.modules={},r.allCategories={},r.allTypes=[],r.subplotsRegistry={},r.transformsRegistry={},r.componentsRegistry={},r.layoutArrayContainers=[],r.layoutArrayRegexes=[],r.traceLayoutAttributes={},r.localeRegistry={},r.apiMethodRegistry={},r.collectableSubplotTypes=null,r.register=function(t){if(r.collectableSubplotTypes=null,!t)throw new Error(&quot;No argument passed to Plotly.register.&quot;);t&amp;&amp;!Array.isArray(t)&amp;&amp;(t=[t]);for(var e=0;e&lt;t.length;e++){var n=t[e];if(!n)throw new Error(&quot;Invalid module was attempted to be registered!&quot;);switch(n.moduleType){case&quot;trace&quot;:p(n);break;case&quot;transform&quot;:g(n);break;case&quot;component&quot;:d(n);break;case&quot;locale&quot;:m(n);break;case&quot;apiMethod&quot;:var i=n.name;r.apiMethodRegistry[i]=n.fn;break;default:throw new Error(&quot;Invalid module was attempted to be registered!&quot;)}}},r.getModule=function(t){var e=r.modules[_(t)];return!!e&amp;&amp;e._module},r.traceIs=function(t,e){if(&quot;various&quot;===(t=_(t)))return!1;var i=r.modules[t];return i||(t&amp;&amp;&quot;area&quot;!==t&amp;&amp;n.log(&quot;Unrecognized trace type &quot;+t+&quot;.&quot;),i=r.modules[c.type.dflt]),!!i.categories[e]},r.getTransformIndices=function(t,e){for(var r=[],n=t.transforms||[],i=0;i&lt;n.length;i++)n[i].type===e&amp;&amp;r.push(i);return r},r.hasTransform=function(t,e){for(var r=t.transforms||[],n=0;n&lt;r.length;n++)if(r[n].type===e)return!0;return!1},r.getComponentMethod=function(t,e){var n=r.componentsRegistry[t];return n&amp;&amp;n[e]||i},r.call=function(){var t=arguments[0],e=[].slice.call(arguments,1);return r.apiMethodRegistry[t].apply(null,e)}},{&quot;./lib/dom&quot;:766,&quot;./lib/extend&quot;:768,&quot;./lib/is_plain_object&quot;:779,&quot;./lib/loggers&quot;:782,&quot;./lib/noop&quot;:787,&quot;./lib/push_unique&quot;:793,&quot;./plots/attributes&quot;:824,&quot;./plots/layout_attributes&quot;:882}],912:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;),a=i.extendFlat,o=i.extendDeep;function s(t){var e;switch(t){case&quot;themes__thumb&quot;:e={autosize:!0,width:150,height:150,title:{text:&quot;&quot;},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case&quot;thumbnail&quot;:e={title:{text:&quot;&quot;},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:&quot;&quot;,margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:e={}}return e}e.exports=function(t,e){var r;t.framework&amp;&amp;t.framework.isPolar&amp;&amp;(t=t.framework.getConfig());var i,l=t.data,c=t.layout,u=o([],l),f=o({},c,s(e.tileClass)),h=t._context||{};if(e.width&amp;&amp;(f.width=e.width),e.height&amp;&amp;(f.height=e.height),&quot;thumbnail&quot;===e.tileClass||&quot;themes__thumb&quot;===e.tileClass){f.annotations=[];var p=Object.keys(f);for(r=0;r&lt;p.length;r++)i=p[r],[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;].indexOf(i.slice(0,5))&gt;-1&amp;&amp;(f[p[r]].title={text:&quot;&quot;});for(r=0;r&lt;u.length;r++){var d=u[r];d.showscale=!1,d.marker&amp;&amp;(d.marker.showscale=!1),n.traceIs(d,&quot;pie-like&quot;)&amp;&amp;(d.textposition=&quot;none&quot;)}}if(Array.isArray(e.annotations))for(r=0;r&lt;e.annotations.length;r++)f.annotations.push(e.annotations[r]);var g=Object.keys(f).filter((function(t){return t.match(/^scene\d*$/)}));if(g.length){var m={};for(&quot;thumbnail&quot;===e.tileClass&amp;&amp;(m={title:{text:&quot;&quot;},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),r=0;r&lt;g.length;r++){var v=f[g[r]];v.xaxis||(v.xaxis={}),v.yaxis||(v.yaxis={}),v.zaxis||(v.zaxis={}),a(v.xaxis,m),a(v.yaxis,m),a(v.zaxis,m),v._scene=null}}var y=document.createElement(&quot;div&quot;);e.tileClass&amp;&amp;(y.className=e.tileClass);var x={gd:y,td:y,layout:f,data:u,config:{staticPlot:void 0===e.staticPlot||e.staticPlot,plotGlPixelRatio:void 0===e.plotGlPixelRatio?2:e.plotGlPixelRatio,displaylogo:e.displaylogo||!1,showLink:e.showLink||!1,showTips:e.showTips||!1,mapboxAccessToken:h.mapboxAccessToken}};return&quot;transparent&quot;!==e.setBackground&amp;&amp;(x.config.setBackground=e.setBackground||&quot;opaque&quot;),x.gd.defaultLayout=s(e.tileClass),x}},{&quot;../lib&quot;:778,&quot;../registry&quot;:911}],913:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/to_image&quot;),a=t(&quot;./filesaver&quot;),o=t(&quot;./helpers&quot;);e.exports=function(t,e){var r;return n.isPlainObject(t)||(r=n.getGraphDiv(t)),(e=e||{}).format=e.format||&quot;png&quot;,e.width=e.width||null,e.height=e.height||null,e.imageDataOnly=!0,new Promise((function(s,l){r&amp;&amp;r._snapshotInProgress&amp;&amp;l(new Error(&quot;Snapshotting already in progress.&quot;)),n.isIE()&amp;&amp;&quot;svg&quot;!==e.format&amp;&amp;l(new Error(o.MSG_IE_BAD_FORMAT)),r&amp;&amp;(r._snapshotInProgress=!0);var c=i(t,e),u=e.filename||t.fn||&quot;newplot&quot;;u+=&quot;.&quot;+e.format.replace(&quot;-&quot;,&quot;.&quot;),c.then((function(t){return r&amp;&amp;(r._snapshotInProgress=!1),a(t,u,e.format)})).then((function(t){s(t)})).catch((function(t){r&amp;&amp;(r._snapshotInProgress=!1),l(t)}))}))}},{&quot;../lib&quot;:778,&quot;../plot_api/to_image&quot;:820,&quot;./filesaver&quot;:914,&quot;./helpers&quot;:915}],914:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;./helpers&quot;);e.exports=function(t,e,r){var a=document.createElement(&quot;a&quot;),o=&quot;download&quot;in a;return new Promise((function(s,l){var c,u;if(n.isIE9orBelow()&amp;&amp;l(new Error(&quot;IE &lt; 10 unsupported&quot;)),n.isSafari()){var f=&quot;svg&quot;===r?&quot;,&quot;:&quot;;base64,&quot;;return i.octetStream(f+encodeURIComponent(t)),s(e)}return n.isIE()?(c=i.createBlob(t,&quot;svg&quot;),window.navigator.msSaveBlob(c,e),c=null,s(e)):o?(c=i.createBlob(t,r),u=i.createObjectURL(c),a.href=u,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),i.revokeObjectURL(u),c=null,s(e)):void l(new Error(&quot;download error&quot;))}))}},{&quot;../lib&quot;:778,&quot;./helpers&quot;:915}],915:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);r.getDelay=function(t){return t._has&amp;&amp;(t._has(&quot;gl3d&quot;)||t._has(&quot;gl2d&quot;)||t._has(&quot;mapbox&quot;))?500:0},r.getRedrawFunc=function(t){return function(){var e=t._fullLayout||{};!(e._has&amp;&amp;e._has(&quot;polar&quot;))&amp;&amp;t.data&amp;&amp;t.data[0]&amp;&amp;t.data[0].r||n.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t)}},r.encodeSVG=function(t){return&quot;data:image/svg+xml,&quot;+encodeURIComponent(t)},r.encodeJSON=function(t){return&quot;data:application/json,&quot;+encodeURIComponent(t)};var i=window.URL||window.webkitURL;r.createObjectURL=function(t){return i.createObjectURL(t)},r.revokeObjectURL=function(t){return i.revokeObjectURL(t)},r.createBlob=function(t,e){if(&quot;svg&quot;===e)return new window.Blob([t],{type:&quot;image/svg+xml;charset=utf-8&quot;});if(&quot;full-json&quot;===e)return new window.Blob([t],{type:&quot;application/json;charset=utf-8&quot;});var r=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r),i=0;i&lt;e;i++)n[i]=t.charCodeAt(i);return r}(window.atob(t));return new window.Blob([r],{type:&quot;image/&quot;+e})},r.octetStream=function(t){document.location.href=&quot;data:application/octet-stream&quot;+t},r.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/,r.MSG_IE_BAD_FORMAT=&quot;Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.&quot;},{&quot;../registry&quot;:911}],916:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./helpers&quot;),i={getDelay:n.getDelay,getRedrawFunc:n.getRedrawFunc,clone:t(&quot;./cloneplot&quot;),toSVG:t(&quot;./tosvg&quot;),svgToImg:t(&quot;./svgtoimg&quot;),toImage:t(&quot;./toimage&quot;),downloadImage:t(&quot;./download&quot;)};e.exports=i},{&quot;./cloneplot&quot;:912,&quot;./download&quot;:913,&quot;./helpers&quot;:915,&quot;./svgtoimg&quot;:917,&quot;./toimage&quot;:918,&quot;./tosvg&quot;:919}],917:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;events&quot;).EventEmitter,a=t(&quot;./helpers&quot;);e.exports=function(t){var e=t.emitter||new i,r=new Promise((function(i,o){var s=window.Image,l=t.svg,c=t.format||&quot;png&quot;;if(n.isIE()&amp;&amp;&quot;svg&quot;!==c){var u=new Error(a.MSG_IE_BAD_FORMAT);return o(u),t.promise?r:e.emit(&quot;error&quot;,u)}var f,h,p=t.canvas,d=t.scale||1,g=t.width||300,m=t.height||150,v=d*g,y=d*m,x=p.getContext(&quot;2d&quot;),b=new s;&quot;svg&quot;===c||n.isIE9orBelow()||n.isSafari()?h=a.encodeSVG(l):(f=a.createBlob(l,&quot;svg&quot;),h=a.createObjectURL(f)),p.width=v,p.height=y,b.onload=function(){var r;switch(f=null,a.revokeObjectURL(h),&quot;svg&quot;!==c&amp;&amp;x.drawImage(b,0,0,v,y),c){case&quot;jpeg&quot;:r=p.toDataURL(&quot;image/jpeg&quot;);break;case&quot;png&quot;:r=p.toDataURL(&quot;image/png&quot;);break;case&quot;webp&quot;:r=p.toDataURL(&quot;image/webp&quot;);break;case&quot;svg&quot;:r=h;break;default:var n=&quot;Image format is not jpeg, png, svg or webp.&quot;;if(o(new Error(n)),!t.promise)return e.emit(&quot;error&quot;,n)}i(r),t.promise||e.emit(&quot;success&quot;,r)},b.onerror=function(r){if(f=null,a.revokeObjectURL(h),o(r),!t.promise)return e.emit(&quot;error&quot;,r)},b.src=h}));return t.promise?r:e}},{&quot;../lib&quot;:778,&quot;./helpers&quot;:915,events:110}],918:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;events&quot;).EventEmitter,i=t(&quot;../registry&quot;),a=t(&quot;../lib&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;./cloneplot&quot;),l=t(&quot;./tosvg&quot;),c=t(&quot;./svgtoimg&quot;);e.exports=function(t,e){var r=new n,u=s(t,{format:&quot;png&quot;}),f=u.gd;f.style.position=&quot;absolute&quot;,f.style.left=&quot;-5000px&quot;,document.body.appendChild(f);var h=o.getRedrawFunc(f);return i.call(&quot;plot&quot;,f,u.data,u.layout,u.config).then(h).then((function(){var t=o.getDelay(f._fullLayout);setTimeout((function(){var t=l(f),n=document.createElement(&quot;canvas&quot;);n.id=a.randstr(),(r=c({format:e.format,width:f._fullLayout.width,height:f._fullLayout.height,canvas:n,emitter:r,svg:t})).clean=function(){f&amp;&amp;document.body.removeChild(f)}}),t)})).catch((function(t){r.emit(&quot;error&quot;,t)})),r}},{&quot;../lib&quot;:778,&quot;../registry&quot;:911,&quot;./cloneplot&quot;:912,&quot;./helpers&quot;:915,&quot;./svgtoimg&quot;:917,&quot;./tosvg&quot;:919,events:110}],919:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../components/drawing&quot;),o=t(&quot;../components/color&quot;),s=t(&quot;../constants/xmlns_namespaces&quot;),l=/&quot;/g,c=new RegExp('(&quot;TOBESTRIPPED)|(TOBESTRIPPED&quot;)',&quot;g&quot;);e.exports=function(t,e,r){var u,f=t._fullLayout,h=f._paper,p=f._toppaper,d=f.width,g=f.height;h.insert(&quot;rect&quot;,&quot;:first-child&quot;).call(a.setRect,0,0,d,g).call(o.fill,f.paper_bgcolor);var m=f._basePlotModules||[];for(u=0;u&lt;m.length;u++){var v=m[u];v.toSVG&amp;&amp;v.toSVG(t)}if(p){var y=p.node().childNodes,x=Array.prototype.slice.call(y);for(u=0;u&lt;x.length;u++){var b=x[u];b.childNodes.length&amp;&amp;h.node().appendChild(b)}}if(f._draggers&amp;&amp;f._draggers.remove(),h.node().style.background=&quot;&quot;,h.selectAll(&quot;text&quot;).attr({&quot;data-unformatted&quot;:null,&quot;data-math&quot;:null}).each((function(){var t=n.select(this);if(&quot;hidden&quot;!==this.style.visibility&amp;&amp;&quot;none&quot;!==this.style.display){t.style({visibility:null,display:null});var e=this.style.fontFamily;e&amp;&amp;-1!==e.indexOf('&quot;')&amp;&amp;t.style(&quot;font-family&quot;,e.replace(l,&quot;TOBESTRIPPED&quot;))}else t.remove()})),f._gradientUrlQueryParts){var _=[];for(var w in f._gradientUrlQueryParts)_.push(w);_.length&amp;&amp;h.selectAll(_.join(&quot;,&quot;)).each((function(){var t=n.select(this),e=this.style.fill;e&amp;&amp;-1!==e.indexOf(&quot;url(&quot;)&amp;&amp;t.style(&quot;fill&quot;,e.replace(l,&quot;TOBESTRIPPED&quot;));var r=this.style.stroke;r&amp;&amp;-1!==r.indexOf(&quot;url(&quot;)&amp;&amp;t.style(&quot;stroke&quot;,r.replace(l,&quot;TOBESTRIPPED&quot;))}))}&quot;pdf&quot;!==e&amp;&amp;&quot;eps&quot;!==e||h.selectAll(&quot;#MathJax_SVG_glyphs path&quot;).attr(&quot;stroke-width&quot;,0),h.node().setAttributeNS(s.xmlns,&quot;xmlns&quot;,s.svg),h.node().setAttributeNS(s.xmlns,&quot;xmlns:xlink&quot;,s.xlink),&quot;svg&quot;===e&amp;&amp;r&amp;&amp;(h.attr(&quot;width&quot;,r*d),h.attr(&quot;height&quot;,r*g),h.attr(&quot;viewBox&quot;,&quot;0 0 &quot;+d+&quot; &quot;+g));var T=(new window.XMLSerializer).serializeToString(h.node());return T=function(t){var e=n.select(&quot;body&quot;).append(&quot;div&quot;).style({display:&quot;none&quot;}).html(&quot;&quot;),r=t.replace(/(&amp;[^;]*;)/gi,(function(t){return&quot;&amp;lt;&quot;===t?&quot;&amp;#60;&quot;:&quot;&amp;rt;&quot;===t?&quot;&amp;#62;&quot;:-1!==t.indexOf(&quot;&lt;&quot;)||-1!==t.indexOf(&quot;&gt;&quot;)?&quot;&quot;:e.html(t).text()}));return e.remove(),r}(T),T=(T=T.replace(/&amp;(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,&quot;&amp;amp;&quot;)).replace(c,&quot;'&quot;),i.isIE()&amp;&amp;(T=(T=(T=T.replace(/&quot;/gi,&quot;'&quot;)).replace(/(\('#)([^']*)('\))/gi,'(&quot;#$2&quot;)')).replace(/(\\')/gi,'&quot;')),T}},{&quot;../components/color&quot;:643,&quot;../components/drawing&quot;:665,&quot;../constants/xmlns_namespaces&quot;:754,&quot;../lib&quot;:778,d3:169}],920:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;);var i=e.marker;if(i){n.mergeArray(i.opacity,t,&quot;mo&quot;,!0),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;a&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;))}}},{&quot;../../lib&quot;:778}],921:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/font_attributes&quot;),l=t(&quot;./constants&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat,u=s({editType:&quot;calc&quot;,arrayOk:!0,colorEditType:&quot;style&quot;}),f=c({},n.marker.line.width,{dflt:0}),h=c({width:f,editType:&quot;calc&quot;},o(&quot;marker.line&quot;)),p=c({line:h,editType:&quot;calc&quot;},o(&quot;marker&quot;),{opacity:{valType:&quot;number&quot;,arrayOk:!0,dflt:1,min:0,max:1,editType:&quot;style&quot;}});e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,text:n.text,texttemplate:a({editType:&quot;plot&quot;},{keys:l.eventDataKeys}),hovertext:n.hovertext,hovertemplate:i({},{keys:l.eventDataKeys}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;auto&quot;,&quot;none&quot;],dflt:&quot;none&quot;,arrayOk:!0,editType:&quot;calc&quot;},insidetextanchor:{valType:&quot;enumerated&quot;,values:[&quot;end&quot;,&quot;middle&quot;,&quot;start&quot;],dflt:&quot;end&quot;,editType:&quot;plot&quot;},textangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;plot&quot;},textfont:c({},u,{}),insidetextfont:c({},u,{}),outsidetextfont:c({},u,{}),constraintext:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;both&quot;,&quot;none&quot;],dflt:&quot;both&quot;,editType:&quot;calc&quot;},cliponaxis:c({},n.cliponaxis,{}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc+clearAxisTypes&quot;},base:{valType:&quot;any&quot;,dflt:null,arrayOk:!0,editType:&quot;calc&quot;},offset:{valType:&quot;number&quot;,dflt:null,arrayOk:!0,editType:&quot;calc&quot;},width:{valType:&quot;number&quot;,dflt:null,min:0,arrayOk:!0,editType:&quot;calc&quot;},marker:p,offsetgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},alignmentgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},selected:{marker:{opacity:n.selected.marker.opacity,color:n.selected.marker.color,editType:&quot;style&quot;},textfont:n.selected.textfont,editType:&quot;style&quot;},unselected:{marker:{opacity:n.unselected.marker.opacity,color:n.unselected.marker.color,editType:&quot;style&quot;},textfont:n.unselected.textfont,editType:&quot;style&quot;},r:n.r,t:n.t,_deprecated:{bardir:{valType:&quot;enumerated&quot;,editType:&quot;calc&quot;,values:[&quot;v&quot;,&quot;h&quot;]}}}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:923}],922:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,o=t(&quot;../../components/colorscale/calc&quot;),s=t(&quot;./arrays_to_calcdata&quot;),l=t(&quot;../scatter/calc_selection&quot;);e.exports=function(t,e){var r,c,u,f,h=n.getFromId(t,e.xaxis||&quot;x&quot;),p=n.getFromId(t,e.yaxis||&quot;y&quot;),d={msUTC:!(!e.base&amp;&amp;0!==e.base)};&quot;h&quot;===e.orientation?(r=h.makeCalcdata(e,&quot;x&quot;,d),u=p.makeCalcdata(e,&quot;y&quot;),c=i(e,p,&quot;y&quot;,u),f=!!e.yperiodalignment):(r=p.makeCalcdata(e,&quot;y&quot;,d),u=h.makeCalcdata(e,&quot;x&quot;),c=i(e,h,&quot;x&quot;,u),f=!!e.xperiodalignment);for(var g=Math.min(c.length,r.length),m=new Array(g),v=0;v&lt;g;v++)m[v]={p:c[v],s:r[v]},f&amp;&amp;(m[v].orig_p=u[v]),e.ids&amp;&amp;(m[v].id=String(e.ids[v]));return a(e,&quot;marker&quot;)&amp;&amp;o(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),a(e,&quot;marker.line&quot;)&amp;&amp;o(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}),s(m,e),l(m,e),m}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc_selection&quot;:1189,&quot;./arrays_to_calcdata&quot;:920}],923:[function(t,e,r){&quot;use strict&quot;;e.exports={TEXTPAD:3,eventDataKeys:[&quot;value&quot;,&quot;label&quot;]}},{}],924:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray,a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../registry&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,c=t(&quot;./sieve.js&quot;);function u(t,e,r,o,u){if(o.length){var b,_,w,T;switch(function(t,e){var r,a;for(r=0;r&lt;e.length;r++){var o,s=e[r],l=s[0].trace,c=&quot;funnel&quot;===l.type?l._base:l.base,u=&quot;h&quot;===l.orientation?l.xcalendar:l.ycalendar,f=&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?function(){return null}:t.d2c;if(i(c)){for(a=0;a&lt;Math.min(c.length,s.length);a++)o=f(c[a],0,u),n(o)?(s[a].b=+o,s[a].hasB=1):s[a].b=0;for(;a&lt;s.length;a++)s[a].b=0}else{o=f(c,0,u);var h=n(o);for(o=h?o:0,a=0;a&lt;s.length;a++)s[a].b=o,h&amp;&amp;(s[a].hasB=1)}}}(r,o),u.mode){case&quot;overlay&quot;:f(e,r,o,u);break;case&quot;group&quot;:for(b=[],_=[],w=0;w&lt;o.length;w++)void 0===(T=o[w])[0].trace.offset?_.push(T):b.push(T);_.length&amp;&amp;function(t,e,r,n,i){var o=new c(n,{sepNegVal:!1,overlapNoMerge:!i.norm});(function(t,e,r,n){for(var i=t._fullLayout,a=r.positions,o=r.distinctPositions,s=r.minDiff,c=r.traces,u=c.length,f=a.length!==o.length,h=s*(1-n.gap),m=l(i,e._id)+c[0][0].trace.orientation,v=i._alignmentOpts[m]||{},y=0;y&lt;u;y++){var x,b,_=c[y],w=_[0].trace,T=v[w.alignmentgroup]||{},k=Object.keys(T.offsetGroups||{}).length,M=(x=k?h/k:f?h/u:h)*(1-(n.groupgap||0));b=k?((2*w._offsetIndex+1-k)*x-M)/2:f?((2*y+1-u)*x-M)/2:-M/2;var A=_[0].t;A.barwidth=M,A.poffset=b,A.bargroupwidth=h,A.bardelta=s}r.binWidth=c[0][0].t.barwidth/100,p(r),d(e,r),g(e,r,f)})(t,e,o,i),function(t){for(var e=t.traces,r=0;r&lt;e.length;r++){var n=e[r];if(void 0===n[0].trace.base)for(var i=new c([n],{sepNegVal:!0,overlapNoMerge:!0}),o=0;o&lt;n.length;o++){var s=n[o];if(s.p!==a){var l=i.put(s.p,s.b+s.s);l&amp;&amp;(s.b=l)}}}}(o),i.norm?(v(o),y(r,o,i)):m(r,o)}(t,e,r,_,u),b.length&amp;&amp;f(e,r,b,u);break;case&quot;stack&quot;:case&quot;relative&quot;:for(b=[],_=[],w=0;w&lt;o.length;w++)void 0===(T=o[w])[0].trace.base?_.push(T):b.push(T);_.length&amp;&amp;function(t,e,r,n,i){var o=new c(n,{sepNegVal:&quot;relative&quot;===i.mode,overlapNoMerge:!(i.norm||&quot;stack&quot;===i.mode||&quot;relative&quot;===i.mode)});h(e,o,i),function(t,e,r){var n,i,o,l,c,u,f=x(t),h=e.traces;for(l=0;l&lt;h.length;l++)if(n=h[l],&quot;funnel&quot;===(i=n[0].trace).type)for(c=0;c&lt;n.length;c++)(u=n[c]).s!==a&amp;&amp;e.put(u.p,-.5*u.s);for(l=0;l&lt;h.length;l++){n=h[l],i=n[0].trace,o=&quot;funnel&quot;===i.type;var p=[];for(c=0;c&lt;n.length;c++)if((u=n[c]).s!==a){var d;d=o?u.s:u.s+u.b;var g=e.put(u.p,d),m=g+d;u.b=g,u[f]=m,r.norm||(p.push(m),u.hasB&amp;&amp;p.push(g))}r.norm||(i._extremes[t._id]=s.findExtremes(t,p,{tozero:!0,padded:!0}))}}(r,o,i);for(var l=0;l&lt;n.length;l++)for(var u=n[l],f=0;f&lt;u.length;f++){var p=u[f];if(p.s!==a)p.b+p.s===o.get(p.p,p.s)&amp;&amp;(p._outmost=!0)}i.norm&amp;&amp;y(r,o,i)}(0,e,r,_,u),b.length&amp;&amp;f(e,r,b,u)}!function(t,e){var r,i,a,o=x(e),s={},l=1/0,c=-1/0;for(r=0;r&lt;t.length;r++)for(a=t[r],i=0;i&lt;a.length;i++){var u=a[i].p;n(u)&amp;&amp;(l=Math.min(l,u),c=Math.max(c,u))}var f=1e4/(c-l),h=s.round=function(t){return String(Math.round(f*(t-l)))};for(r=0;r&lt;t.length;r++){(a=t[r])[0].t.extents=s;var p=a[0].t.poffset,d=Array.isArray(p);for(i=0;i&lt;a.length;i++){var g=a[i],m=g[o]-g.w/2;if(n(m)){var v=g[o]+g.w/2,y=h(g.p);s[y]?s[y]=[Math.min(m,s[y][0]),Math.max(v,s[y][1])]:s[y]=[m,v]}g.p0=g.p+(d?p[i]:p),g.p1=g.p0+g.w,g.s0=g.b,g.s1=g.s0+g.s}}}(o,e)}}function f(t,e,r,n){for(var i=0;i&lt;r.length;i++){var a=r[i],o=new c([a],{unitMinDiff:n.xCat||n.yCat,sepNegVal:!1,overlapNoMerge:!n.norm});h(t,o,n),n.norm?(v(o),y(e,o,n)):m(e,o)}}function h(t,e,r){for(var n=e.minDiff,i=e.traces,a=n*(1-r.gap),o=a*(1-(r.groupgap||0)),s=-o/2,l=0;l&lt;i.length;l++){var c=i[l][0].t;c.barwidth=o,c.poffset=s,c.bargroupwidth=a,c.bardelta=n}e.binWidth=i[0][0].t.barwidth/100,p(e),d(t,e),g(t,e)}function p(t){var e,r,a=t.traces;for(e=0;e&lt;a.length;e++){var o,s=a[e],l=s[0],c=l.trace,u=l.t,f=c._offset||c.offset,h=u.poffset;if(i(f)){for(o=Array.prototype.slice.call(f,0,s.length),r=0;r&lt;o.length;r++)n(o[r])||(o[r]=h);for(r=o.length;r&lt;s.length;r++)o.push(h);u.poffset=o}else void 0!==f&amp;&amp;(u.poffset=f);var p=c._width||c.width,d=u.barwidth;if(i(p)){var g=Array.prototype.slice.call(p,0,s.length);for(r=0;r&lt;g.length;r++)n(g[r])||(g[r]=d);for(r=g.length;r&lt;s.length;r++)g.push(d);if(u.barwidth=g,void 0===f){for(o=[],r=0;r&lt;s.length;r++)o.push(h+(d-g[r])/2);u.poffset=o}}else void 0!==p&amp;&amp;(u.barwidth=p,void 0===f&amp;&amp;(u.poffset=h+(d-p)/2))}}function d(t,e){for(var r=e.traces,n=x(t),i=0;i&lt;r.length;i++)for(var a=r[i],o=a[0].t,s=o.poffset,l=Array.isArray(s),c=o.barwidth,u=Array.isArray(c),f=0;f&lt;a.length;f++){var h=a[f],p=h.w=u?c[f]:c;h[n]=h.p+(l?s[f]:s)+p/2}}function g(t,e,r){var n=e.traces,i=e.minDiff/2;s.minDtick(t,e.minDiff,e.distinctPositions[0],r);for(var a=0;a&lt;n.length;a++){var o,l,c,u,f=n[a],h=f[0],p=h.trace,d=[];for(u=0;u&lt;f.length;u++)l=(o=f[u]).p-i,c=o.p+i,d.push(l,c);if(p.width||p.offset){var g=h.t,m=g.poffset,v=g.barwidth,y=Array.isArray(m),x=Array.isArray(v);for(u=0;u&lt;f.length;u++){o=f[u];var b=y?m[u]:m,_=x?v[u]:v;c=(l=o.p+b)+_,d.push(l,c)}}p._extremes[t._id]=s.findExtremes(t,d,{padded:!1})}}function m(t,e){for(var r=e.traces,n=x(t),i=0;i&lt;r.length;i++){for(var a=r[i],o=a[0].trace,l=[],c=!1,u=0;u&lt;a.length;u++){var f=a[u],h=f.b,p=h+f.s;f[n]=p,l.push(p),f.hasB&amp;&amp;l.push(h),f.hasB&amp;&amp;f.b||(c=!0)}o._extremes[t._id]=s.findExtremes(t,l,{tozero:c,padded:!0})}}function v(t){for(var e=t.traces,r=0;r&lt;e.length;r++)for(var n=e[r],i=0;i&lt;n.length;i++){var o=n[i];o.s!==a&amp;&amp;t.put(o.p,o.b+o.s)}}function y(t,e,r){var i=e.traces,o=x(t),l=&quot;fraction&quot;===r.norm?1:100,c=l/1e9,u=t.l2c(t.c2l(0)),f=&quot;stack&quot;===r.mode?l:u;function h(e){return n(t.c2l(e))&amp;&amp;(e&lt;u-c||e&gt;f+c||!n(u))}for(var p=0;p&lt;i.length;p++){for(var d=i[p],g=d[0].trace,m=[],v=!1,y=!1,b=0;b&lt;d.length;b++){var _=d[b];if(_.s!==a){var w=Math.abs(l/e.get(_.p,_.s));_.b*=w,_.s*=w;var T=_.b,k=T+_.s;_[o]=k,m.push(k),y=y||h(k),_.hasB&amp;&amp;(m.push(T),y=y||h(T)),_.hasB&amp;&amp;_.b||(v=!0)}}g._extremes[t._id]=s.findExtremes(t,m,{tozero:v,padded:y})}}function x(t){return t._id.charAt(0)}e.exports={crossTraceCalc:function(t,e){for(var r=e.xaxis,n=e.yaxis,i=t._fullLayout,a=t._fullData,s=t.calcdata,l=[],c=[],f=0;f&lt;a.length;f++){var h=a[f];if(!0===h.visible&amp;&amp;o.traceIs(h,&quot;bar&quot;)&amp;&amp;h.xaxis===r._id&amp;&amp;h.yaxis===n._id&amp;&amp;(&quot;h&quot;===h.orientation?l.push(s[f]):c.push(s[f]),h._computePh))for(var p=t.calcdata[f],d=0;d&lt;p.length;d++)&quot;function&quot;==typeof p[d].ph0&amp;&amp;(p[d].ph0=p[d].ph0()),&quot;function&quot;==typeof p[d].ph1&amp;&amp;(p[d].ph1=p[d].ph1())}var g={xCat:&quot;category&quot;===r.type||&quot;multicategory&quot;===r.type,yCat:&quot;category&quot;===n.type||&quot;multicategory&quot;===n.type,mode:i.barmode,norm:i.barnorm,gap:i.bargap,groupgap:i.bargroupgap};u(t,r,n,c,g),u(t,n,r,l,g)},setGroupPositions:u}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/constraints&quot;:835,&quot;../../registry&quot;:911,&quot;./sieve.js&quot;:934,&quot;fast-isnumeric&quot;:241}],925:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./style_defaults&quot;),c=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,u=t(&quot;./attributes&quot;),f=n.coerceFont;function h(t,e,r,n){var i=e.orientation,a=e[{v:&quot;x&quot;,h:&quot;y&quot;}[i]+&quot;axis&quot;],o=c(r,a)+i,s=r._alignmentOpts||{},l=n(&quot;alignmentgroup&quot;),u=s[o];u||(u=s[o]={});var f=u[l];f?f.traces.push(e):f=u[l]={traces:[e],alignmentIndex:Object.keys(u).length,offsetGroups:{}};var h=n(&quot;offsetgroup&quot;),p=f.offsetGroups,d=p[h];h&amp;&amp;(d||(d=p[h]={offsetIndex:Object.keys(p).length}),e._offsetIndex=d.offsetIndex)}function p(t,e,r,i,a,o){var s=!(!1===(o=o||{}).moduleHasSelected),l=!(!1===o.moduleHasUnselected),c=!(!1===o.moduleHasConstrain),u=!(!1===o.moduleHasCliponaxis),h=!(!1===o.moduleHasTextangle),p=!(!1===o.moduleHasInsideanchor),d=!!o.hasPathbar,g=Array.isArray(a)||&quot;auto&quot;===a,m=g||&quot;inside&quot;===a,v=g||&quot;outside&quot;===a;if(m||v){var y=f(i,&quot;textfont&quot;,r.font),x=n.extendFlat({},y),b=!(t.textfont&amp;&amp;t.textfont.color);if(b&amp;&amp;delete x.color,f(i,&quot;insidetextfont&quot;,x),d){var _=n.extendFlat({},y);b&amp;&amp;delete _.color,f(i,&quot;pathbar.textfont&quot;,_)}v&amp;&amp;f(i,&quot;outsidetextfont&quot;,y),s&amp;&amp;i(&quot;selected.textfont.color&quot;),l&amp;&amp;i(&quot;unselected.textfont.color&quot;),c&amp;&amp;i(&quot;constraintext&quot;),u&amp;&amp;i(&quot;cliponaxis&quot;),h&amp;&amp;i(&quot;textangle&quot;),i(&quot;texttemplate&quot;)}m&amp;&amp;p&amp;&amp;i(&quot;insidetextanchor&quot;)}e.exports={supplyDefaults:function(t,e,r,c){function f(r,i){return n.coerce(t,e,u,r,i)}if(o(t,e,c,f)){s(t,e,c,f),f(&quot;orientation&quot;,e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;),f(&quot;base&quot;),f(&quot;offset&quot;),f(&quot;width&quot;),f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;);var h=f(&quot;textposition&quot;);p(t,e,c,f,h,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),l(t,e,f,r,c);var d=(e.marker.line||{}).color,g=a.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);g(t,e,d||i.defaultLine,{axis:&quot;y&quot;}),g(t,e,d||i.defaultLine,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1},crossTraceDefaults:function(t,e){var r;function i(t){return n.coerce(r._input,r,u,t)}if(&quot;group&quot;===e.barmode)for(var a=0;a&lt;t.length;a++)&quot;bar&quot;===(r=t[a]).type&amp;&amp;(r._input,h(0,r,e,i))},handleGroupingDefaults:h,handleText:p}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/constraints&quot;:835,&quot;../../registry&quot;:911,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:921,&quot;./style_defaults&quot;:936}],926:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),&quot;h&quot;===r.orientation?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}},{}],927:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../lib&quot;).isArrayOrTypedArray;r.coerceString=function(t,e,r){if(&quot;string&quot;==typeof e){if(e||!t.noBlank)return e}else if((&quot;number&quot;==typeof e||!0===e)&amp;&amp;!t.strict)return String(e);return void 0!==r?r:t.dflt},r.coerceNumber=function(t,e,r){if(n(e)){e=+e;var i=t.min,a=t.max;if(!(void 0!==i&amp;&amp;e&lt;i||void 0!==a&amp;&amp;e&gt;a))return e}return void 0!==r?r:t.dflt},r.coerceColor=function(t,e,r){return i(e).isValid()?e:void 0!==r?r:t.dflt},r.coerceEnumerated=function(t,e,r){return t.coerceNumber&amp;&amp;(e=+e),-1!==t.values.indexOf(e)?e:void 0!==r?r:t.dflt},r.getValue=function(t,e){var r;return Array.isArray(t)?e&lt;t.length&amp;&amp;(r=t[e]):r=t,r},r.getLineWidth=function(t,e){return 0&lt;e.mlw?e.mlw:a(t.marker.line.width)?0:t.marker.line.width}},{&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],928:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../lib&quot;).fillText,s=t(&quot;./helpers&quot;).getLineWidth,l=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText,c=t(&quot;../../constants/numerical&quot;).BADNUM;function u(t,e,r,i){var a,s,u,f,h,p,d,g=t.cd,m=g[0].trace,v=g[0].t,y=&quot;closest&quot;===i,x=&quot;waterfall&quot;===m.type,b=t.maxHoverDistance;function _(t){return t[u]-t.w/2}function w(t){return t[u]+t.w/2}var T=y?_:function(t){return Math.min(_(t),t.p-v.bardelta/2)},k=y?w:function(t){return Math.max(w(t),t.p+v.bardelta/2)};function M(t,e){return n.inbox(t-a,e-a,b+Math.min(1,Math.abs(e-t)/d)-1)}function A(t){return M(T(t),k(t))}function S(t){var e=s,r=t.b,i=t[f];if(x){var a=Math.abs(t.rawS)||0;e&gt;0?i+=a:e&lt;0&amp;&amp;(i-=a)}return n.inbox(r-e,i-e,b+(i-e)/(i-r)-1)}&quot;h&quot;===m.orientation?(a=r,s=e,u=&quot;y&quot;,f=&quot;x&quot;,h=S,p=A):(a=e,s=r,u=&quot;x&quot;,f=&quot;y&quot;,p=S,h=A);var E=t[u+&quot;a&quot;],C=t[f+&quot;a&quot;];d=Math.abs(E.r2c(E.range[1])-E.r2c(E.range[0]));var L=n.getDistanceFunction(i,h,p,(function(t){return(h(t)+p(t))/2}));if(n.getClosest(g,L,t),!1!==t.index&amp;&amp;g[t.index].p!==c){y||(T=function(t){return Math.min(_(t),t.p-v.bargroupwidth/2)},k=function(t){return Math.max(w(t),t.p+v.bargroupwidth/2)});var I=g[t.index],P=m.base?I.b+I.s:I.s;t[f+&quot;0&quot;]=t[f+&quot;1&quot;]=C.c2p(I[f],!0),t[f+&quot;LabelVal&quot;]=P;var z=v.extents[v.extents.round(I.p)];t[u+&quot;0&quot;]=E.c2p(y?T(I):z[0],!0),t[u+&quot;1&quot;]=E.c2p(y?k(I):z[1],!0);var O=void 0!==I.orig_p;return t[u+&quot;LabelVal&quot;]=O?I.orig_p:I.p,t.labelLabel=l(E,t[u+&quot;LabelVal&quot;]),t.valueLabel=l(C,t[f+&quot;LabelVal&quot;]),t.baseLabel=l(C,I.b),t.spikeDistance=(S(I)+function(t){return M(_(t),w(t))}(I))/2-b,t[u+&quot;Spike&quot;]=E.c2p(I.p,!0),o(I,m,t),t.hovertemplate=m.hovertemplate,t}}function f(t,e){var r=e.mcc||t.marker.color,n=e.mlcc||t.marker.line.color,i=s(t,e);return a.opacity(r)?r:a.opacity(n)&amp;&amp;i?n:void 0}e.exports={hoverPoints:function(t,e,r,n){var a=u(t,e,r,n);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=f(s,l),i.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(l,s,a),[a]}},hoverOnBars:u,getTraceColor:f}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./helpers&quot;:927}],929:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;).crossTraceCalc,colorbar:t(&quot;../scatter/marker_colorbar&quot;),arraysToCalcdata:t(&quot;./arrays_to_calcdata&quot;),plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;bar&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;bar&quot;,&quot;oriented&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],animatable:!0,meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./arrays_to_calcdata&quot;:920,&quot;./attributes&quot;:921,&quot;./calc&quot;:922,&quot;./cross_trace_calc&quot;:924,&quot;./defaults&quot;:925,&quot;./event_data&quot;:926,&quot;./hover&quot;:928,&quot;./layout_attributes&quot;:930,&quot;./layout_defaults&quot;:931,&quot;./plot&quot;:932,&quot;./select&quot;:933,&quot;./style&quot;:935}],930:[function(t,e,r){&quot;use strict&quot;;e.exports={barmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;group&quot;,&quot;overlay&quot;,&quot;relative&quot;],dflt:&quot;group&quot;,editType:&quot;calc&quot;},barnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;fraction&quot;,&quot;percent&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},bargap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},bargroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],931:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){function s(r,n){return a.coerce(t,e,o,r,n)}for(var l=!1,c=!1,u=!1,f={},h=s(&quot;barmode&quot;),p=0;p&lt;r.length;p++){var d=r[p];if(n.traceIs(d,&quot;bar&quot;)&amp;&amp;d.visible){if(l=!0,&quot;group&quot;===h){var g=d.xaxis+d.yaxis;f[g]&amp;&amp;(u=!0),f[g]=!0}if(d.visible&amp;&amp;&quot;histogram&quot;===d.type)&quot;category&quot;!==i.getFromId({_fullLayout:e},d[&quot;v&quot;===d.orientation?&quot;xaxis&quot;:&quot;yaxis&quot;]).type&amp;&amp;(c=!0)}}l?(&quot;overlay&quot;!==h&amp;&amp;s(&quot;barnorm&quot;),s(&quot;bargap&quot;,c&amp;&amp;!u?0:.2),s(&quot;bargroupgap&quot;)):delete e.barmode}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./layout_attributes&quot;:930}],932:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;../../components/color&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../registry&quot;),u=t(&quot;../../plots/cartesian/axes&quot;).tickText,f=t(&quot;./uniform_text&quot;),h=f.recordMinTextSize,p=f.clearMinTextSize,d=t(&quot;./style&quot;),g=t(&quot;./helpers&quot;),m=t(&quot;./constants&quot;),v=t(&quot;./attributes&quot;),y=v.text,x=v.textposition,b=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,_=m.TEXTPAD;function w(t){return t.id}function T(t){if(t.ids)return w}function k(t,e){return t&lt;e?1:-1}function M(t,e,r,n){var i;return!e.uniformtext.mode&amp;&amp;A(r)?(n&amp;&amp;(i=n()),t.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){i&amp;&amp;i()})).each(&quot;interrupt&quot;,(function(){i&amp;&amp;i()}))):t}function A(t){return t&amp;&amp;t.duration&gt;0}function S(t){return&quot;auto&quot;===t?0:t}function E(t,e){var r=Math.PI/180*e,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:t.width*i+t.height*n,y:t.width*n+t.height*i}}function C(t,e,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,c=a.anchor||&quot;end&quot;,u=&quot;end&quot;===c,f=&quot;start&quot;===c,h=((a.leftToRight||0)+1)/2,p=1-h,d=i.width,g=i.height,m=Math.abs(e-t),v=Math.abs(n-r),y=m&gt;2*_&amp;&amp;v&gt;2*_?_:0;m-=2*y,v-=2*y;var x=S(l);&quot;auto&quot;!==l||d&lt;=m&amp;&amp;g&lt;=v||!(d&gt;m||g&gt;v)||(d&gt;v||g&gt;m)&amp;&amp;d&lt;g==m&lt;v||(x+=90);var b=E(i,x),w=1;s&amp;&amp;(w=Math.min(1,m/b.x,v/b.y));var T=i.left*p+i.right*h,M=(i.top+i.bottom)/2,A=(t+_)*p+(e-_)*h,C=(r+n)/2,L=0,I=0;if(f||u){var P=(o?b.x:b.y)/2,z=o?k(t,e):k(r,n);o?f?(A=t+z*y,L=-z*P):(A=e-z*y,L=z*P):f?(C=r+z*y,I=-z*P):(C=n-z*y,I=z*P)}return{textX:T,textY:M,targetX:A,targetY:C,anchorX:L,anchorY:I,scale:w,rotate:x}}e.exports={plot:function(t,e,r,f,m,v){var w=e.xaxis,L=e.yaxis,I=t._fullLayout;m||(m={mode:I.barmode,norm:I.barmode,gap:I.bargap,groupgap:I.bargroupgap},p(&quot;bar&quot;,I));var P=a.makeTraceGroups(f,r,&quot;trace bars&quot;).each((function(r){var c=n.select(this),f=r[0].trace,p=&quot;waterfall&quot;===f.type,P=&quot;funnel&quot;===f.type,z=&quot;bar&quot;===f.type||P,O=0;p&amp;&amp;f.connector.visible&amp;&amp;&quot;between&quot;===f.connector.mode&amp;&amp;(O=f.connector.line.width/2);var D=&quot;h&quot;===f.orientation,R=A(m),F=a.ensureSingle(c,&quot;g&quot;,&quot;points&quot;),B=T(f),N=F.selectAll(&quot;g.point&quot;).data(a.identity,B);N.enter().append(&quot;g&quot;).classed(&quot;point&quot;,!0),N.exit().remove(),N.each((function(c,p){var T,A,P=n.select(this),F=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),n?[i,a]:[a,i]}(c,w,L,D),B=F[0][0],N=F[0][1],j=F[1][0],U=F[1][1],V=0==(D?N-B:U-j);if(V&amp;&amp;z&amp;&amp;g.getLineWidth(f,c)&amp;&amp;(V=!1),V||(V=!(i(B)&amp;&amp;i(N)&amp;&amp;i(j)&amp;&amp;i(U))),c.isBlank=V,V&amp;&amp;(D?N=B:U=j),O&amp;&amp;!V&amp;&amp;(D?(B-=k(B,N)*O,N+=k(B,N)*O):(j-=k(j,U)*O,U+=k(j,U)*O)),&quot;waterfall&quot;===f.type){if(!V){var q=f[c.dir].marker;T=q.line.width,A=q.color}}else T=g.getLineWidth(f,c),A=c.mc||f.marker.color;function H(t){var e=n.round(T/2%1,2);return 0===m.gap&amp;&amp;0===m.groupgap?n.round(Math.round(t)-e,2):t}if(!t._context.staticPlot){var G=s.opacity(A)&lt;1||T&gt;.01?H:function(t,e,r){return r&amp;&amp;t===e?t:Math.abs(t-e)&gt;=2?H(t):t&gt;e?Math.ceil(t):Math.floor(t)};B=G(B,N,D),N=G(N,B,D),j=G(j,U,!D),U=G(U,j,!D)}var Y=M(a.ensureSingle(P,&quot;path&quot;),I,m,v);if(Y.style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;d&quot;,isNaN((N-B)*(U-j))||V&amp;&amp;t._context.staticPlot?&quot;M0,0Z&quot;:&quot;M&quot;+B+&quot;,&quot;+j+&quot;V&quot;+U+&quot;H&quot;+N+&quot;V&quot;+j+&quot;Z&quot;).call(l.setClipUrl,e.layerClipId,t),!I.uniformtext.mode&amp;&amp;R){var W=l.makePointStyleFns(f);l.singlePointStyle(c,Y,f,W,t)}!function(t,e,r,n,i,s,c,f,p,m,v){var w,T=e.xaxis,A=e.yaxis,L=t._fullLayout;function I(e,r,n){return a.ensureSingle(e,&quot;text&quot;).text(r).attr({class:&quot;bartext bartext-&quot;+w,&quot;text-anchor&quot;:&quot;middle&quot;,&quot;data-notex&quot;:1}).call(l.font,n).call(o.convertToTspans,t)}var P=n[0].trace,z=&quot;h&quot;===P.orientation,O=function(t,e,r,n,i){var o,s=e[0].trace;o=s.texttemplate?function(t,e,r,n,i){var o=e[0].trace,s=a.castOption(o,r,&quot;texttemplate&quot;);if(!s)return&quot;&quot;;var l,c,f,h,p=&quot;waterfall&quot;===o.type,d=&quot;funnel&quot;===o.type;&quot;h&quot;===o.orientation?(l=&quot;y&quot;,c=i,f=&quot;x&quot;,h=n):(l=&quot;x&quot;,c=n,f=&quot;y&quot;,h=i);function g(t){return u(h,+t,!0).text}var m=e[r],v={};v.label=m.p,v.labelLabel=v[l+&quot;Label&quot;]=(y=m.p,u(c,y,!0).text);var y;var x=a.castOption(o,m.i,&quot;text&quot;);(0===x||x)&amp;&amp;(v.text=x);v.value=m.s,v.valueLabel=v[f+&quot;Label&quot;]=g(m.s);var _={};b(_,o,m.i),p&amp;&amp;(v.delta=+m.rawS||m.s,v.deltaLabel=g(v.delta),v.final=m.v,v.finalLabel=g(v.final),v.initial=v.final-v.delta,v.initialLabel=g(v.initial));d&amp;&amp;(v.value=m.s,v.valueLabel=g(v.value),v.percentInitial=m.begR,v.percentInitialLabel=a.formatPercent(m.begR),v.percentPrevious=m.difR,v.percentPreviousLabel=a.formatPercent(m.difR),v.percentTotal=m.sumR,v.percenTotalLabel=a.formatPercent(m.sumR));var w=a.castOption(o,m.i,&quot;customdata&quot;);w&amp;&amp;(v.customdata=w);return a.texttemplateString(s,v,t._d3locale,_,v,o._meta||{})}(t,e,r,n,i):s.textinfo?function(t,e,r,n){var i=t[0].trace,o=&quot;h&quot;===i.orientation,s=&quot;waterfall&quot;===i.type,l=&quot;funnel&quot;===i.type;function c(t){return u(o?r:n,+t,!0).text}var f,h=i.textinfo,p=t[e],d=h.split(&quot;+&quot;),g=[],m=function(t){return-1!==d.indexOf(t)};m(&quot;label&quot;)&amp;&amp;g.push((v=t[e].p,u(o?n:r,v,!0).text));var v;m(&quot;text&quot;)&amp;&amp;(0===(f=a.castOption(i,p.i,&quot;text&quot;))||f)&amp;&amp;g.push(f);if(s){var y=+p.rawS||p.s,x=p.v,b=x-y;m(&quot;initial&quot;)&amp;&amp;g.push(c(b)),m(&quot;delta&quot;)&amp;&amp;g.push(c(y)),m(&quot;final&quot;)&amp;&amp;g.push(c(x))}if(l){m(&quot;value&quot;)&amp;&amp;g.push(c(p.s));var _=0;m(&quot;percent initial&quot;)&amp;&amp;_++,m(&quot;percent previous&quot;)&amp;&amp;_++,m(&quot;percent total&quot;)&amp;&amp;_++;var w=_&gt;1;m(&quot;percent initial&quot;)&amp;&amp;(f=a.formatPercent(p.begR),w&amp;&amp;(f+=&quot; of initial&quot;),g.push(f)),m(&quot;percent previous&quot;)&amp;&amp;(f=a.formatPercent(p.difR),w&amp;&amp;(f+=&quot; of previous&quot;),g.push(f)),m(&quot;percent total&quot;)&amp;&amp;(f=a.formatPercent(p.sumR),w&amp;&amp;(f+=&quot; of total&quot;),g.push(f))}return g.join(&quot;&lt;br&gt;&quot;)}(e,r,n,i):g.getValue(s.text,r);return g.coerceString(y,o)}(L,n,i,T,A);w=function(t,e){var r=g.getValue(t.textposition,e);return g.coerceEnumerated(x,r)}(P,i);var D=&quot;stack&quot;===m.mode||&quot;relative&quot;===m.mode,R=n[i],F=!D||R._outmost;if(!O||&quot;none&quot;===w||(R.isBlank||s===c||f===p)&amp;&amp;(&quot;auto&quot;===w||&quot;inside&quot;===w))return void r.select(&quot;text&quot;).remove();var B=L.font,N=d.getBarColor(n[i],P),j=d.getInsideTextFont(P,i,B,N),U=d.getOutsideTextFont(P,i,B),V=r.datum();z?&quot;log&quot;===T.type&amp;&amp;V.s0&lt;=0&amp;&amp;(s=T.range[0]&lt;T.range[1]?0:T._length):&quot;log&quot;===A.type&amp;&amp;V.s0&lt;=0&amp;&amp;(f=A.range[0]&lt;A.range[1]?A._length:0);var q,H,G,Y,W,X=Math.abs(c-s)-2*_,Z=Math.abs(p-f)-2*_;&quot;outside&quot;===w&amp;&amp;(F||R.hasB||(w=&quot;inside&quot;));if(&quot;auto&quot;===w)if(F){w=&quot;inside&quot;,W=a.ensureUniformFontSize(t,j),q=I(r,O,W),H=l.bBox(q.node()),G=H.width,Y=H.height;var J=G&lt;=X&amp;&amp;Y&lt;=Z,K=G&lt;=Z&amp;&amp;Y&lt;=X,Q=z?X&gt;=G*(Z/Y):Z&gt;=Y*(X/G);G&gt;0&amp;&amp;Y&gt;0&amp;&amp;(J||K||Q)?w=&quot;inside&quot;:(w=&quot;outside&quot;,q.remove(),q=null)}else w=&quot;inside&quot;;if(!q){W=a.ensureUniformFontSize(t,&quot;outside&quot;===w?U:j);var $=(q=I(r,O,W)).attr(&quot;transform&quot;);if(q.attr(&quot;transform&quot;,&quot;&quot;),H=l.bBox(q.node()),G=H.width,Y=H.height,q.attr(&quot;transform&quot;,$),G&lt;=0||Y&lt;=0)return void q.remove()}var tt,et,rt=P.textangle;&quot;outside&quot;===w?(et=&quot;both&quot;===P.constraintext||&quot;outside&quot;===P.constraintext,tt=function(t,e,r,n,i,a){var o,s=!!a.isHorizontal,l=!!a.constrained,c=a.angle||0,u=i.width,f=i.height,h=Math.abs(e-t),p=Math.abs(n-r);o=s?p&gt;2*_?_:0:h&gt;2*_?_:0;var d=1;l&amp;&amp;(d=s?Math.min(1,p/f):Math.min(1,h/u));var g=S(c),m=E(i,g),v=(s?m.x:m.y)/2,y=(i.left+i.right)/2,x=(i.top+i.bottom)/2,b=(t+e)/2,w=(r+n)/2,T=0,M=0,A=s?k(e,t):k(r,n);s?(b=e-A*o,T=A*v):(w=n+A*o,M=-A*v);return{textX:y,textY:x,targetX:b,targetY:w,anchorX:T,anchorY:M,scale:d,rotate:g}}(s,c,f,p,H,{isHorizontal:z,constrained:et,angle:rt})):(et=&quot;both&quot;===P.constraintext||&quot;inside&quot;===P.constraintext,tt=C(s,c,f,p,H,{isHorizontal:z,constrained:et,angle:rt,anchor:P.insidetextanchor}));tt.fontSize=W.size,h(P.type,tt,L),R.transform=tt,M(q,L,m,v).attr(&quot;transform&quot;,a.getTextTransform(tt))}(t,e,P,r,p,B,N,j,U,m,v),e.layerClipId&amp;&amp;l.hideOutsideRangePoint(c,P.select(&quot;text&quot;),w,L,f.xcalendar,f.ycalendar)}));var j=!1===f.cliponaxis;l.setClipUrl(c,j?null:e.layerClipId,t)}));c.getComponentMethod(&quot;errorbars&quot;,&quot;plot&quot;)(t,P,e,m)},toMoveInsideBar:C}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../components/fx/helpers&quot;:679,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./attributes&quot;:921,&quot;./constants&quot;:923,&quot;./helpers&quot;:927,&quot;./style&quot;:935,&quot;./uniform_text&quot;:937,d3:169,&quot;fast-isnumeric&quot;:241}],933:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i){var a=e.c2p(n?t.s0:t.p0,!0),o=e.c2p(n?t.s1:t.p1,!0),s=r.c2p(n?t.p0:t.s0,!0),l=r.c2p(n?t.p1:t.s1,!0);return i?[(a+o)/2,(s+l)/2]:n?[o,(s+l)/2]:[(a+o)/2,l]}e.exports=function(t,e){var r,i=t.cd,a=t.xaxis,o=t.yaxis,s=i[0].trace,l=&quot;funnel&quot;===s.type,c=&quot;h&quot;===s.orientation,u=[];if(!1===e)for(r=0;r&lt;i.length;r++)i[r].selected=0;else for(r=0;r&lt;i.length;r++){var f=i[r],h=&quot;ct&quot;in f?f.ct:n(f,a,o,c,l);e.contains(h,!1,r,t)?(u.push({pointNumber:r,x:a.c2d(f.x),y:o.c2d(f.y)}),f.selected=1):f.selected=0}return u}},{}],934:[function(t,e,r){&quot;use strict&quot;;e.exports=a;var n=t(&quot;../../lib&quot;).distinctVals,i=t(&quot;../../constants/numerical&quot;).BADNUM;function a(t,e){this.traces=t,this.sepNegVal=e.sepNegVal,this.overlapNoMerge=e.overlapNoMerge;for(var r=1/0,a=[],o=0;o&lt;t.length;o++){for(var s=t[o],l=0;l&lt;s.length;l++){var c=s[l];c.p!==i&amp;&amp;a.push(c.p)}s[0]&amp;&amp;s[0].width1&amp;&amp;(r=Math.min(s[0].width1,r))}this.positions=a;var u=n(a,{unitMinDiff:e.unitMinDiff});this.distinctPositions=u.vals,1===u.vals.length&amp;&amp;r!==1/0?this.minDiff=r:this.minDiff=Math.min(u.minDiff,r),this.binWidth=this.minDiff,this.bins={}}a.prototype.put=function(t,e){var r=this.getLabel(t,e),n=this.bins[r]||0;return this.bins[r]=n+e,n},a.prototype.get=function(t,e){var r=this.getLabel(t,e);return this.bins[r]||0},a.prototype.getLabel=function(t,e){return(e&lt;0&amp;&amp;this.sepNegVal?&quot;v&quot;:&quot;^&quot;)+(this.overlapNoMerge?t:Math.round(t/this.binWidth))}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778}],935:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../registry&quot;),l=t(&quot;./uniform_text&quot;).resizeText,c=t(&quot;./attributes&quot;),u=c.textfont,f=c.insidetextfont,h=c.outsidetextfont,p=t(&quot;./helpers&quot;);function d(t,e,r){a.pointStyle(t.selectAll(&quot;path&quot;),e,r),g(t,e,r)}function g(t,e,r){t.selectAll(&quot;text&quot;).each((function(t){var i=n.select(this),s=o.ensureUniformFontSize(r,m(i,t,e,r));a.font(i,s)}))}function m(t,e,r,n){var i=n._fullLayout.font,a=r.textfont;if(t.classed(&quot;bartext-inside&quot;)){var o=_(e,r);a=y(r,e.i,i,o)}else t.classed(&quot;bartext-outside&quot;)&amp;&amp;(a=x(r,e.i,i));return a}function v(t,e,r){return b(u,t.textfont,e,r)}function y(t,e,r,n){var a=v(t,e,r);return(void 0===t._input.textfont||void 0===t._input.textfont.color||Array.isArray(t.textfont.color)&amp;&amp;void 0===t.textfont.color[e])&amp;&amp;(a={color:i.contrast(n),family:a.family,size:a.size}),b(f,t.insidetextfont,e,a)}function x(t,e,r){var n=v(t,e,r);return b(h,t.outsidetextfont,e,n)}function b(t,e,r,n){e=e||{};var i=p.getValue(e.family,r),a=p.getValue(e.size,r),o=p.getValue(e.color,r);return{family:p.coerceString(t.family,i,n.family),size:p.coerceNumber(t.size,a,n.size),color:p.coerceColor(t.color,o,n.color)}}function _(t,e){return&quot;waterfall&quot;===e.type?e[t.dir].marker.color:t.mc||e.marker.color}e.exports={style:function(t){var e=n.select(t).selectAll(&quot;g.barlayer&quot;).selectAll(&quot;g.trace&quot;);l(t,e,&quot;bar&quot;);var r=e.size(),i=t._fullLayout;e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})).each((function(t){(&quot;stack&quot;===i.barmode&amp;&amp;r&gt;1||0===i.bargap&amp;&amp;0===i.bargroupgap&amp;&amp;!t[0].trace.marker.line.width)&amp;&amp;n.select(this).attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)})),e.selectAll(&quot;g.points&quot;).each((function(e){d(n.select(this),e[0].trace,t)})),s.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(e)},styleTextPoints:g,styleOnSelect:function(t,e,r){var i=e[0].trace;i.selectedpoints?function(t,e,r){a.selectedPointStyle(t.selectAll(&quot;path&quot;),e),function(t,e,r){t.each((function(t){var i,s=n.select(this);if(t.selected){i=o.ensureUniformFontSize(r,m(s,t,e,r));var l=e.selected.textfont&amp;&amp;e.selected.textfont.color;l&amp;&amp;(i.color=l),a.font(s,i)}else a.selectedTextStyle(s,e)}))}(t.selectAll(&quot;text&quot;),e,r)}(r,i,t):(d(r,i,t),s.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(r))},getInsideTextFont:y,getOutsideTextFont:x,getBarColor:_,resizeText:l}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:921,&quot;./helpers&quot;:927,&quot;./uniform_text&quot;:937,d3:169}],936:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;);e.exports=function(t,e,r,o,s){r(&quot;marker.color&quot;,o),i(t,&quot;marker&quot;)&amp;&amp;a(t,e,s,r,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),r(&quot;marker.line.color&quot;,n.defaultLine),i(t,&quot;marker.line&quot;)&amp;&amp;a(t,e,s,r,{prefix:&quot;marker.line.&quot;,cLetter:&quot;c&quot;}),r(&quot;marker.line.width&quot;),r(&quot;marker.opacity&quot;),r(&quot;selected.marker.color&quot;),r(&quot;unselected.marker.color&quot;)}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654}],937:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;);function a(t){return&quot;_&quot;+t+&quot;Text_minsize&quot;}e.exports={recordMinTextSize:function(t,e,r){if(r.uniformtext.mode){var n=a(t),i=r.uniformtext.minsize,o=e.scale*e.fontSize;e.hide=o&lt;i,r[n]=r[n]||1/0,e.hide||(r[n]=Math.min(r[n],Math.max(o,i)))}},clearMinTextSize:function(t,e){e[a(t)]=void 0},resizeText:function(t,e,r){var a=t._fullLayout,o=a[&quot;_&quot;+r+&quot;Text_minsize&quot;];if(o){var s,l=&quot;hide&quot;===a.uniformtext.mode;switch(r){case&quot;funnelarea&quot;:case&quot;pie&quot;:case&quot;sunburst&quot;:s=&quot;g.slice&quot;;break;case&quot;treemap&quot;:s=&quot;g.slice, g.pathbar&quot;;break;default:s=&quot;g.points &gt; g.point&quot;}e.selectAll(s).each((function(t){var e=t.transform;e&amp;&amp;(e.scale=l&amp;&amp;e.hide?0:o/e.fontSize,n.select(this).select(&quot;text&quot;).attr(&quot;transform&quot;,i.getTextTransform(e)))}))}}}},{&quot;../../lib&quot;:778,d3:169}],938:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../scatterpolar/attributes&quot;),o=t(&quot;../bar/attributes&quot;);e.exports={r:a.r,theta:a.theta,r0:a.r0,dr:a.dr,theta0:a.theta0,dtheta:a.dtheta,thetaunit:a.thetaunit,base:i({},o.base,{}),offset:i({},o.offset,{}),width:i({},o.width,{}),text:i({},o.text,{}),hovertext:i({},o.hovertext,{}),marker:o.marker,hoverinfo:a.hoverinfo,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatterpolar/attributes&quot;:1261}],939:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,i=t(&quot;../../components/colorscale/calc&quot;),a=t(&quot;../bar/arrays_to_calcdata&quot;),o=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions,s=t(&quot;../scatter/calc_selection&quot;),l=t(&quot;../../registry&quot;).traceIs,c=t(&quot;../../lib&quot;).extendFlat;e.exports={calc:function(t,e){for(var r=t._fullLayout,o=e.subplot,l=r[o].radialaxis,c=r[o].angularaxis,u=l.makeCalcdata(e,&quot;r&quot;),f=c.makeCalcdata(e,&quot;theta&quot;),h=e._length,p=new Array(h),d=u,g=f,m=0;m&lt;h;m++)p[m]={p:g[m],s:d[m]};function v(t){var r=e[t];void 0!==r&amp;&amp;(e[&quot;_&quot;+t]=Array.isArray(r)?c.makeCalcdata(e,t):c.d2c(r,e.thetaunit))}return&quot;linear&quot;===c.type&amp;&amp;(v(&quot;width&quot;),v(&quot;offset&quot;)),n(e,&quot;marker&quot;)&amp;&amp;i(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),n(e,&quot;marker.line&quot;)&amp;&amp;i(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}),a(p,e),s(p,e),p},crossTraceCalc:function(t,e,r){for(var n=t.calcdata,i=[],a=0;a&lt;n.length;a++){var s=n[a],u=s[0].trace;!0===u.visible&amp;&amp;l(u,&quot;bar&quot;)&amp;&amp;u.subplot===r&amp;&amp;i.push(s)}var f=c({},e.radialaxis,{_id:&quot;x&quot;}),h=e.angularaxis;o(t,h,f,i,{mode:e.barmode,norm:e.barnorm,gap:e.bargap,groupgap:e.bargroupgap})}}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../bar/arrays_to_calcdata&quot;:920,&quot;../bar/cross_trace_calc&quot;:924,&quot;../scatter/calc_selection&quot;:1189}],940:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatterpolar/defaults&quot;).handleRThetaDefaults,a=t(&quot;../bar/style_defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,s,l)?(l(&quot;thetaunit&quot;),l(&quot;base&quot;),l(&quot;offset&quot;),l(&quot;width&quot;),l(&quot;text&quot;),l(&quot;hovertext&quot;),l(&quot;hovertemplate&quot;),a(t,e,l,r,s),n.coerceSelectionMarkerOpacity(e,l)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../bar/style_defaults&quot;:936,&quot;../scatterpolar/defaults&quot;:1263,&quot;./attributes&quot;:938}],941:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../bar/hover&quot;).getTraceColor,o=i.fillText,s=t(&quot;../scatterpolar/hover&quot;).makeHoverPointText,l=t(&quot;../../plots/polar/helpers&quot;).isPtInsidePolygon;e.exports=function(t,e,r){var c=t.cd,u=c[0].trace,f=t.subplot,h=f.radialAxis,p=f.angularAxis,d=f.vangles,g=d?l:i.isPtInsideSector,m=t.maxHoverDistance,v=p._period||2*Math.PI,y=Math.abs(h.g2p(Math.sqrt(e*e+r*r))),x=Math.atan2(r,e);h.range[0]&gt;h.range[1]&amp;&amp;(x+=Math.PI);if(n.getClosest(c,(function(t){return g(y,x,[t.rp0,t.rp1],[t.thetag0,t.thetag1],d)?m+Math.min(1,Math.abs(t.thetag1-t.thetag0)/v)-1+(t.rp1-y)/(t.rp1-t.rp0)-1:1/0}),t),!1!==t.index){var b=c[t.index];t.x0=t.x1=b.ct[0],t.y0=t.y1=b.ct[1];var _=i.extendFlat({},b,{r:b.s,theta:b.p});return o(b,u,t),s(_,u,f,t),t.hovertemplate=u.hovertemplate,t.color=a(u,b),t.xLabelVal=t.yLabelVal=void 0,b.s&lt;0&amp;&amp;(t.idealAlign=&quot;left&quot;),[t]}}},{&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../plots/polar/helpers&quot;:893,&quot;../bar/hover&quot;:928,&quot;../scatterpolar/hover&quot;:1265}],942:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;barpolar&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;polar&quot;,&quot;bar&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;../scatterpolar/format_labels&quot;),style:t(&quot;../bar/style&quot;).style,styleOnSelect:t(&quot;../bar/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../bar/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:894,&quot;../bar/select&quot;:933,&quot;../bar/style&quot;:935,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatterpolar/format_labels&quot;:1264,&quot;./attributes&quot;:938,&quot;./calc&quot;:939,&quot;./defaults&quot;:940,&quot;./hover&quot;:941,&quot;./layout_attributes&quot;:943,&quot;./layout_defaults&quot;:944,&quot;./plot&quot;:945}],943:[function(t,e,r){&quot;use strict&quot;;e.exports={barmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;overlay&quot;],dflt:&quot;stack&quot;,editType:&quot;calc&quot;},bargap:{valType:&quot;number&quot;,dflt:.1,min:0,max:1,editType:&quot;calc&quot;}}},{}],944:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a,o={};function s(r,o){return n.coerce(t[a]||{},e[a],i,r,o)}for(var l=0;l&lt;r.length;l++){var c=r[l];&quot;barpolar&quot;===c.type&amp;&amp;!0===c.visible&amp;&amp;(o[a=c.subplot]||(s(&quot;barmode&quot;),s(&quot;bargap&quot;),o[a]=1))}}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:943}],945:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../plots/polar/helpers&quot;);e.exports=function(t,e,r){var l=e.xaxis,c=e.yaxis,u=e.radialAxis,f=e.angularAxis,h=function(t){var e=t.cxx,r=t.cyy;if(t.vangles)return function(n,i,o,l){var c,u;a.angleDelta(o,l)&gt;0?(c=o,u=l):(c=l,u=o);var f=[s.findEnclosingVertexAngles(c,t.vangles)[0],(c+u)/2,s.findEnclosingVertexAngles(u,t.vangles)[1]];return s.pathPolygonAnnulus(n,i,c,u,f,e,r)};return function(t,n,i,o){return a.pathAnnulus(t,n,i,o,e,r)}}(e),p=e.layers.frontplot.select(&quot;g.barlayer&quot;);a.makeTraceGroups(p,r,&quot;trace bars&quot;).each((function(){var r=n.select(this),s=a.ensureSingle(r,&quot;g&quot;,&quot;points&quot;).selectAll(&quot;g.point&quot;).data(a.identity);s.enter().append(&quot;g&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).style(&quot;stroke-miterlimit&quot;,2).classed(&quot;point&quot;,!0),s.exit().remove(),s.each((function(t){var e,r=n.select(this),o=t.rp0=u.c2p(t.s0),s=t.rp1=u.c2p(t.s1),p=t.thetag0=f.c2g(t.p0),d=t.thetag1=f.c2g(t.p1);if(i(o)&amp;&amp;i(s)&amp;&amp;i(p)&amp;&amp;i(d)&amp;&amp;o!==s&amp;&amp;p!==d){var g=u.c2g(t.s1),m=(p+d)/2;t.ct=[l.c2p(g*Math.cos(m)),c.c2p(g*Math.sin(m))],e=h(o,s,p,d)}else e=&quot;M0,0Z&quot;;a.ensureSingle(r,&quot;path&quot;).attr(&quot;d&quot;,e)})),o.setClipUrl(r,e._hasClipOnAxisFalse?e.clipIds.forTraces:null,t)}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../plots/polar/helpers&quot;:893,d3:169,&quot;fast-isnumeric&quot;:241}],946:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../bar/attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../lib/extend&quot;).extendFlat,l=n.marker,c=l.line;e.exports={y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},x0:{valType:&quot;any&quot;,editType:&quot;calc+clearAxisTypes&quot;},y0:{valType:&quot;any&quot;,editType:&quot;calc+clearAxisTypes&quot;},dx:{valType:&quot;number&quot;,editType:&quot;calc&quot;},dy:{valType:&quot;number&quot;,editType:&quot;calc&quot;},xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,name:{valType:&quot;string&quot;,editType:&quot;calc+clearAxisTypes&quot;},q1:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},median:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},q3:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},lowerfence:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},upperfence:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},notched:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},notchwidth:{valType:&quot;number&quot;,min:0,max:.5,dflt:.25,editType:&quot;calc&quot;},notchspan:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},boxpoints:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;outliers&quot;,&quot;suspectedoutliers&quot;,!1],editType:&quot;calc&quot;},jitter:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},pointpos:{valType:&quot;number&quot;,min:-2,max:2,editType:&quot;calc&quot;},boxmean:{valType:&quot;enumerated&quot;,values:[!0,&quot;sd&quot;,!1],editType:&quot;calc&quot;},mean:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sd:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc+clearAxisTypes&quot;},quartilemethod:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;exclusive&quot;,&quot;inclusive&quot;],dflt:&quot;linear&quot;,editType:&quot;calc&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},marker:{outliercolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0, 0, 0, 0)&quot;,editType:&quot;style&quot;},symbol:s({},l.symbol,{arrayOk:!1,editType:&quot;plot&quot;}),opacity:s({},l.opacity,{arrayOk:!1,dflt:1,editType:&quot;style&quot;}),size:s({},l.size,{arrayOk:!1,editType:&quot;calc&quot;}),color:s({},l.color,{arrayOk:!1,editType:&quot;style&quot;}),line:{color:s({},c.color,{arrayOk:!1,dflt:a.defaultLine,editType:&quot;style&quot;}),width:s({},c.width,{arrayOk:!1,dflt:0,editType:&quot;style&quot;}),outliercolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},outlierwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;plot&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},editType:&quot;plot&quot;},fillcolor:n.fillcolor,whiskerwidth:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;calc&quot;},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup,selected:{marker:n.selected.marker,editType:&quot;style&quot;},unselected:{marker:n.unselected.marker,editType:&quot;style&quot;},text:s({},n.text,{}),hovertext:s({},n.hovertext,{}),hovertemplate:o({}),hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;boxes&quot;,&quot;points&quot;],dflt:&quot;boxes+points&quot;,editType:&quot;style&quot;}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib/extend&quot;:768,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatter/attributes&quot;:1187}],947:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/cartesian/align_period&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=o._;e.exports=function(t,e){var r,c,y,x,b,_,w,T=t._fullLayout,k=i.getFromId(t,e.xaxis||&quot;x&quot;),M=i.getFromId(t,e.yaxis||&quot;y&quot;),A=[],S=&quot;violin&quot;===e.type?&quot;_numViolins&quot;:&quot;_numBoxes&quot;;&quot;h&quot;===e.orientation?(y=k,x=&quot;x&quot;,b=M,_=&quot;y&quot;,w=!!e.yperiodalignment):(y=M,x=&quot;y&quot;,b=k,_=&quot;x&quot;,w=!!e.xperiodalignment);var E,C,L,I,P,z,O=function(t,e,r,i){var s,l=e+&quot;0&quot;in t,c=&quot;d&quot;+e in t;if(e in t||l&amp;&amp;c){var u=r.makeCalcdata(t,e);return[a(t,r,e,u),u]}s=l?t[e+&quot;0&quot;]:&quot;name&quot;in t&amp;&amp;(&quot;category&quot;===r.type||n(t.name)&amp;&amp;-1!==[&quot;linear&quot;,&quot;log&quot;].indexOf(r.type)||o.isDateTime(t.name)&amp;&amp;&quot;date&quot;===r.type)?t.name:i;for(var f=&quot;multicategory&quot;===r.type?r.r2c_just_indices(s):r.d2c(s,0,t[e+&quot;calendar&quot;]),h=t._length,p=new Array(h),d=0;d&lt;h;d++)p[d]=f;return[p]}(e,_,b,T[S]),D=O[0],R=O[1],F=o.distinctVals(D),B=F.vals,N=F.minDiff/2,j=&quot;all&quot;===(e.boxpoints||e.points)?o.identity:function(t){return t.v&lt;E.lf||t.v&gt;E.uf};if(e._hasPreCompStats){var U=e[x],V=function(t){return y.d2c((e[t]||[])[r])},q=1/0,H=-1/0;for(r=0;r&lt;e._length;r++){var G=D[r];if(n(G)){if((E={}).pos=E[_]=G,w&amp;&amp;R&amp;&amp;(E.orig_p=R[r]),E.q1=V(&quot;q1&quot;),E.med=V(&quot;median&quot;),E.q3=V(&quot;q3&quot;),C=[],U&amp;&amp;o.isArrayOrTypedArray(U[r]))for(c=0;c&lt;U[r].length;c++)(z=y.d2c(U[r][c]))!==s&amp;&amp;(u(P={v:z,i:[r,c]},e,[r,c]),C.push(P));if(E.pts=C.sort(f),I=(L=E[x]=C.map(h)).length,E.med!==s&amp;&amp;E.q1!==s&amp;&amp;E.q3!==s&amp;&amp;E.med&gt;=E.q1&amp;&amp;E.q3&gt;=E.med){var Y=V(&quot;lowerfence&quot;);E.lf=Y!==s&amp;&amp;Y&lt;=E.q1?Y:p(E,L,I);var W=V(&quot;upperfence&quot;);E.uf=W!==s&amp;&amp;W&gt;=E.q3?W:d(E,L,I);var X=V(&quot;mean&quot;);E.mean=X!==s?X:I?o.mean(L,I):(E.q1+E.q3)/2;var Z=V(&quot;sd&quot;);E.sd=X!==s&amp;&amp;Z&gt;=0?Z:I?o.stdev(L,I,E.mean):E.q3-E.q1,E.lo=g(E),E.uo=m(E);var J=V(&quot;notchspan&quot;);J=J!==s&amp;&amp;J&gt;0?J:v(E,I),E.ln=E.med-J,E.un=E.med+J;var K=E.lf,Q=E.uf;e.boxpoints&amp;&amp;L.length&amp;&amp;(K=Math.min(K,L[0]),Q=Math.max(Q,L[I-1])),e.notched&amp;&amp;(K=Math.min(K,E.ln),Q=Math.max(Q,E.un)),E.min=K,E.max=Q}else{var $;o.warn([&quot;Invalid input - make sure that q1 &lt;= median &lt;= q3&quot;,&quot;q1 = &quot;+E.q1,&quot;median = &quot;+E.med,&quot;q3 = &quot;+E.q3].join(&quot;\n&quot;)),$=E.med!==s?E.med:E.q1!==s?E.q3!==s?(E.q1+E.q3)/2:E.q1:E.q3!==s?E.q3:0,E.med=$,E.q1=E.q3=$,E.lf=E.uf=$,E.mean=E.sd=$,E.ln=E.un=$,E.min=E.max=$}q=Math.min(q,E.min),H=Math.max(H,E.max),E.pts2=C.filter(j),A.push(E)}}e._extremes[y._id]=i.findExtremes(y,[q,H],{padded:!0})}else{var tt=y.makeCalcdata(e,x),et=function(t,e){for(var r=t.length,n=new Array(r+1),i=0;i&lt;r;i++)n[i]=t[i]-e;return n[r]=t[r-1]+e,n}(B,N),rt=B.length,nt=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=[];return e}(rt);for(r=0;r&lt;e._length;r++)if(z=tt[r],n(z)){var it=o.findBin(D[r],et);it&gt;=0&amp;&amp;it&lt;rt&amp;&amp;(u(P={v:z,i:r},e,r),nt[it].push(P))}var at=1/0,ot=-1/0,st=e.quartilemethod,lt=&quot;exclusive&quot;===st,ct=&quot;inclusive&quot;===st;for(r=0;r&lt;rt;r++)if(nt[r].length&gt;0){var ut,ft;if((E={}).pos=E[_]=B[r],C=E.pts=nt[r].sort(f),I=(L=E[x]=C.map(h)).length,E.min=L[0],E.max=L[I-1],E.mean=o.mean(L,I),E.sd=o.stdev(L,I,E.mean),E.med=o.interp(L,.5),I%2&amp;&amp;(lt||ct))lt?(ut=L.slice(0,I/2),ft=L.slice(I/2+1)):ct&amp;&amp;(ut=L.slice(0,I/2+1),ft=L.slice(I/2)),E.q1=o.interp(ut,.5),E.q3=o.interp(ft,.5);else E.q1=o.interp(L,.25),E.q3=o.interp(L,.75);E.lf=p(E,L,I),E.uf=d(E,L,I),E.lo=g(E),E.uo=m(E);var ht=v(E,I);E.ln=E.med-ht,E.un=E.med+ht,at=Math.min(at,E.ln),ot=Math.max(ot,E.un),E.pts2=C.filter(j),A.push(E)}e._extremes[y._id]=i.findExtremes(y,e.notched?tt.concat([at,ot]):tt,{padded:!0})}return function(t,e){if(o.isArrayOrTypedArray(e.selectedpoints))for(var r=0;r&lt;t.length;r++){for(var n=t[r].pts||[],i={},a=0;a&lt;n.length;a++)i[n[a].i]=a;o.tagSelected(n,e,i)}}(A,e),A.length&gt;0?(A[0].t={num:T[S],dPos:N,posLetter:_,valLetter:x,labels:{med:l(t,&quot;median:&quot;),min:l(t,&quot;min:&quot;),q1:l(t,&quot;q1:&quot;),q3:l(t,&quot;q3:&quot;),max:l(t,&quot;max:&quot;),mean:&quot;sd&quot;===e.boxmean?l(t,&quot;mean \xb1 \u03c3:&quot;):l(t,&quot;mean:&quot;),lf:l(t,&quot;lower fence:&quot;),uf:l(t,&quot;upper fence:&quot;)}},T[S]++,A):[{t:{empty:!0}}]};var c={text:&quot;tx&quot;,hovertext:&quot;htx&quot;};function u(t,e,r){for(var n in c)o.isArrayOrTypedArray(e[n])&amp;&amp;(Array.isArray(r)?o.isArrayOrTypedArray(e[n][r[0]])&amp;&amp;(t[c[n]]=e[n][r[0]][r[1]]):t[c[n]]=e[n][r])}function f(t,e){return t.v-e.v}function h(t){return t.v}function p(t,e,r){return 0===r?t.q1:Math.min(t.q1,e[Math.min(o.findBin(2.5*t.q1-1.5*t.q3,e,!0)+1,r-1)])}function d(t,e,r){return 0===r?t.q3:Math.max(t.q3,e[Math.max(o.findBin(2.5*t.q3-1.5*t.q1,e),0)])}function g(t){return 4*t.q1-3*t.q3}function m(t){return 4*t.q3-3*t.q1}function v(t,e){return 0===e?0:1.57*(t.q3-t.q1)/Math.sqrt(e)}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;fast-isnumeric&quot;:241}],948:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,o=[&quot;v&quot;,&quot;h&quot;];function s(t,e,r,o){var s,l,c,u=e.calcdata,f=e._fullLayout,h=o._id,p=h.charAt(0),d=[],g=0;for(s=0;s&lt;r.length;s++)for(c=u[r[s]],l=0;l&lt;c.length;l++)d.push(o.c2l(c[l].pos,!0)),g+=(c[l].pts2||[]).length;if(d.length){var m=i.distinctVals(d,{unitMinDiff:&quot;category&quot;===o.type||&quot;multicategory&quot;===o.type}),v=m.minDiff/2;n.minDtick(o,m.minDiff,m.vals[0],!0);var y=f[&quot;violin&quot;===t?&quot;_numViolins&quot;:&quot;_numBoxes&quot;],x=&quot;group&quot;===f[t+&quot;mode&quot;]&amp;&amp;y&gt;1,b=1-f[t+&quot;gap&quot;],_=1-f[t+&quot;groupgap&quot;];for(s=0;s&lt;r.length;s++){var w,T,k,M,A,S,E=(c=u[r[s]])[0].trace,C=c[0].t,L=E.width,I=E.side;if(L)w=T=M=L/2,k=0;else if(w=v,x){var P=a(f,o._id)+E.orientation,z=(f._alignmentOpts[P]||{})[E.alignmentgroup]||{},O=Object.keys(z.offsetGroups||{}).length,D=O||y;T=w*b*_/D,k=2*w*(((O?E._offsetIndex:C.num)+.5)/D-.5)*b,M=w*b/D}else T=w*b*_,k=0,M=w;C.dPos=w,C.bPos=k,C.bdPos=T,C.wHover=M;var R,F,B,N,j,U,V=k+T,q=Boolean(L);if(&quot;positive&quot;===I?(A=w*(L?1:.5),R=V,S=R=k):&quot;negative&quot;===I?(A=R=k,S=w*(L?1:.5),F=V):(A=S=w,R=F=V),(E.boxpoints||E.points)&amp;&amp;g&gt;0){var H=E.pointpos,G=E.jitter,Y=E.marker.size/2,W=0;H+G&gt;=0&amp;&amp;((W=V*(H+G))&gt;A?(q=!0,j=Y,B=W):W&gt;R&amp;&amp;(j=Y,B=A)),W&lt;=A&amp;&amp;(B=A);var X=0;H-G&lt;=0&amp;&amp;((X=-V*(H-G))&gt;S?(q=!0,U=Y,N=X):X&gt;F&amp;&amp;(U=Y,N=S)),X&lt;=S&amp;&amp;(N=S)}else B=A,N=S;var Z=new Array(c.length);for(l=0;l&lt;c.length;l++)Z[l]=c[l].pos;E._extremes[h]=n.findExtremes(o,Z,{padded:q,vpadminus:N,vpadplus:B,vpadLinearized:!0,ppadminus:{x:U,y:j}[p],ppadplus:{x:j,y:U}[p]})}}}e.exports={crossTraceCalc:function(t,e){for(var r=t.calcdata,n=e.xaxis,i=e.yaxis,a=0;a&lt;o.length;a++){for(var l=o[a],c=&quot;h&quot;===l?i:n,u=[],f=0;f&lt;r.length;f++){var h=r[f],p=h[0].t,d=h[0].trace;!0!==d.visible||&quot;box&quot;!==d.type&amp;&amp;&quot;candlestick&quot;!==d.type||p.empty||(d.orientation||&quot;v&quot;)!==l||d.xaxis!==n._id||d.yaxis!==i._id||u.push(f)}s(&quot;box&quot;,t,u,c)}},setPositionOffset:s}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/constraints&quot;:835}],949:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../scatter/period_defaults&quot;),s=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,l=t(&quot;../../plots/cartesian/axis_autotype&quot;),c=t(&quot;./attributes&quot;);function u(t,e,r,a){function o(t){var e=0;return t&amp;&amp;t.length&amp;&amp;(e+=1,n.isArrayOrTypedArray(t[0])&amp;&amp;t[0].length&amp;&amp;(e+=1)),e}function s(e){return n.validate(t[e],c[e])}var u,f=r(&quot;y&quot;),h=r(&quot;x&quot;);if(&quot;box&quot;===e.type){var p=r(&quot;q1&quot;),d=r(&quot;median&quot;),g=r(&quot;q3&quot;);e._hasPreCompStats=p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length&amp;&amp;g&amp;&amp;g.length,u=Math.min(n.minRowLength(p),n.minRowLength(d),n.minRowLength(g))}var m,v,y=o(f),x=o(h),b=y&amp;&amp;n.minRowLength(f),_=x&amp;&amp;n.minRowLength(h),w=a.calendar,T={autotypenumbers:a.autotypenumbers};if(e._hasPreCompStats)switch(String(x)+String(y)){case&quot;00&quot;:var k=s(&quot;x0&quot;)||s(&quot;dx&quot;);m=(s(&quot;y0&quot;)||s(&quot;dy&quot;))&amp;&amp;!k?&quot;h&quot;:&quot;v&quot;,v=u;break;case&quot;10&quot;:m=&quot;v&quot;,v=Math.min(u,_);break;case&quot;20&quot;:m=&quot;h&quot;,v=Math.min(u,h.length);break;case&quot;01&quot;:m=&quot;h&quot;,v=Math.min(u,b);break;case&quot;02&quot;:m=&quot;v&quot;,v=Math.min(u,f.length);break;case&quot;12&quot;:m=&quot;v&quot;,v=Math.min(u,_,f.length);break;case&quot;21&quot;:m=&quot;h&quot;,v=Math.min(u,h.length,b);break;case&quot;11&quot;:v=0;break;case&quot;22&quot;:var M,A=!1;for(M=0;M&lt;h.length;M++)if(&quot;category&quot;===l(h[M],w,T)){A=!0;break}if(A)m=&quot;v&quot;,v=Math.min(u,_,f.length);else{for(M=0;M&lt;f.length;M++)if(&quot;category&quot;===l(f[M],w,T)){A=!0;break}A?(m=&quot;h&quot;,v=Math.min(u,h.length,b)):(m=&quot;v&quot;,v=Math.min(u,_,f.length))}}else y&gt;0?(m=&quot;v&quot;,v=x&gt;0?Math.min(_,b):Math.min(b)):x&gt;0?(m=&quot;h&quot;,v=Math.min(_)):v=0;if(v){e._length=v;var S=r(&quot;orientation&quot;,m);e._hasPreCompStats?&quot;v&quot;===S&amp;&amp;0===x?(r(&quot;x0&quot;,0),r(&quot;dx&quot;,1)):&quot;h&quot;===S&amp;&amp;0===y&amp;&amp;(r(&quot;y0&quot;,0),r(&quot;dy&quot;,1)):&quot;v&quot;===S&amp;&amp;0===x?r(&quot;x0&quot;):&quot;h&quot;===S&amp;&amp;0===y&amp;&amp;r(&quot;y0&quot;),i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],a)}else e.visible=!1}function f(t,e,r,i){var a=i.prefix,o=n.coerce2(t,e,c,&quot;marker.outliercolor&quot;),s=r(&quot;marker.line.outliercolor&quot;),l=&quot;outliers&quot;;e._hasPreCompStats?l=&quot;all&quot;:(o||s)&amp;&amp;(l=&quot;suspectedoutliers&quot;);var u=r(a+&quot;points&quot;,l);u?(r(&quot;jitter&quot;,&quot;all&quot;===u?.3:0),r(&quot;pointpos&quot;,&quot;all&quot;===u?-1.5:0),r(&quot;marker.symbol&quot;),r(&quot;marker.opacity&quot;),r(&quot;marker.size&quot;),r(&quot;marker.color&quot;,e.line.color),r(&quot;marker.line.color&quot;),r(&quot;marker.line.width&quot;),&quot;suspectedoutliers&quot;===u&amp;&amp;(r(&quot;marker.line.outliercolor&quot;,e.marker.color),r(&quot;marker.line.outlierwidth&quot;)),r(&quot;selected.marker.color&quot;),r(&quot;unselected.marker.color&quot;),r(&quot;selected.marker.size&quot;),r(&quot;unselected.marker.size&quot;),r(&quot;text&quot;),r(&quot;hovertext&quot;)):delete e.marker;var f=r(&quot;hoveron&quot;);&quot;all&quot;!==f&amp;&amp;-1===f.indexOf(&quot;points&quot;)||r(&quot;hovertemplate&quot;),n.coerceSelectionMarkerOpacity(e,r)}e.exports={supplyDefaults:function(t,e,r,i){function s(r,i){return n.coerce(t,e,c,r,i)}if(u(t,e,s,i),!1!==e.visible){o(t,e,i,s);var l=e._hasPreCompStats;l&amp;&amp;(s(&quot;lowerfence&quot;),s(&quot;upperfence&quot;)),s(&quot;line.color&quot;,(t.marker||{}).color||r),s(&quot;line.width&quot;),s(&quot;fillcolor&quot;,a.addOpacity(e.line.color,.5));var h=!1;if(l){var p=s(&quot;mean&quot;),d=s(&quot;sd&quot;);p&amp;&amp;p.length&amp;&amp;(h=!0,d&amp;&amp;d.length&amp;&amp;(h=&quot;sd&quot;))}s(&quot;boxmean&quot;,h),s(&quot;whiskerwidth&quot;),s(&quot;width&quot;),s(&quot;quartilemethod&quot;);var g=!1;if(l){var m=s(&quot;notchspan&quot;);m&amp;&amp;m.length&amp;&amp;(g=!0)}else n.validate(t.notchwidth,c.notchwidth)&amp;&amp;(g=!0);s(&quot;notched&quot;,g)&amp;&amp;s(&quot;notchwidth&quot;),f(t,e,s,{prefix:&quot;box&quot;})}},crossTraceDefaults:function(t,e){var r,i;function a(t){return n.coerce(i._input,i,c,t)}for(var o=0;o&lt;t.length;o++){var l=(i=t[o]).type;&quot;box&quot;!==l&amp;&amp;&quot;violin&quot;!==l||(r=i._input,&quot;group&quot;===e[l+&quot;mode&quot;]&amp;&amp;s(r,i,e,a))}},handleSampleDefaults:u,handlePointsDefaults:f}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_autotype&quot;:829,&quot;../../registry&quot;:911,&quot;../bar/defaults&quot;:925,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:946}],950:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return e.hoverOnBox&amp;&amp;(t.hoverOnBox=e.hoverOnBox),&quot;xVal&quot;in e&amp;&amp;(t.x=e.xVal),&quot;yVal&quot;in e&amp;&amp;(t.y=e.yVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],951:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=i.fillText;function l(t,e,r,s){var l,c,u,f,h,p,d,g,m,v,y,x,b,_,w=t.cd,T=t.xa,k=t.ya,M=w[0].trace,A=w[0].t,S=&quot;violin&quot;===M.type,E=[],C=A.bdPos,L=A.wHover,I=function(t){return u.c2l(t.pos)+A.bPos-u.c2l(p)};S&amp;&amp;&quot;both&quot;!==M.side?(&quot;positive&quot;===M.side&amp;&amp;(m=function(t){var e=I(t);return a.inbox(e,e+L,v)},x=C,b=0),&quot;negative&quot;===M.side&amp;&amp;(m=function(t){var e=I(t);return a.inbox(e-L,e,v)},x=0,b=C)):(m=function(t){var e=I(t);return a.inbox(e-L,e+L,v)},x=b=C),_=S?function(t){return a.inbox(t.span[0]-h,t.span[1]-h,v)}:function(t){return a.inbox(t.min-h,t.max-h,v)},&quot;h&quot;===M.orientation?(h=e,p=r,d=_,g=m,l=&quot;y&quot;,u=k,c=&quot;x&quot;,f=T):(h=r,p=e,d=m,g=_,l=&quot;x&quot;,u=T,c=&quot;y&quot;,f=k);var P=Math.min(1,C/Math.abs(u.r2c(u.range[1])-u.r2c(u.range[0])));function z(t){return(d(t)+g(t))/2}v=t.maxHoverDistance-P,y=t.maxSpikeDistance-P;var O=a.getDistanceFunction(s,d,g,z);if(a.getClosest(w,O,t),!1===t.index)return[];var D=w[t.index],R=M.line.color,F=(M.marker||{}).color;o.opacity(R)&amp;&amp;M.line.width?t.color=R:o.opacity(F)&amp;&amp;M.boxpoints?t.color=F:t.color=M.fillcolor,t[l+&quot;0&quot;]=u.c2p(D.pos+A.bPos-b,!0),t[l+&quot;1&quot;]=u.c2p(D.pos+A.bPos+x,!0),t[l+&quot;LabelVal&quot;]=void 0!==D.orig_p?D.orig_p:D.pos;var B=l+&quot;Spike&quot;;t.spikeDistance=z(D)*y/v,t[B]=u.c2p(D.pos,!0);var N={},j=[&quot;med&quot;,&quot;q1&quot;,&quot;q3&quot;,&quot;min&quot;,&quot;max&quot;];(M.boxmean||(M.meanline||{}).visible)&amp;&amp;j.push(&quot;mean&quot;),(M.boxpoints||M.points)&amp;&amp;j.push(&quot;lf&quot;,&quot;uf&quot;);for(var U=0;U&lt;j.length;U++){var V=j[U];if(V in D&amp;&amp;!(D[V]in N)){N[D[V]]=!0;var q=D[V],H=f.c2p(q,!0),G=i.extendFlat({},t);G.attr=V,G[c+&quot;0&quot;]=G[c+&quot;1&quot;]=H,G[c+&quot;LabelVal&quot;]=q,G[c+&quot;Label&quot;]=(A.labels?A.labels[V]+&quot; &quot;:&quot;&quot;)+n.hoverLabelText(f,q),G.hoverOnBox=!0,&quot;mean&quot;===V&amp;&amp;&quot;sd&quot;in D&amp;&amp;&quot;sd&quot;===M.boxmean&amp;&amp;(G[c+&quot;err&quot;]=D.sd),t.name=&quot;&quot;,t.spikeDistance=void 0,t[B]=void 0,G.hovertemplate=!1,E.push(G)}}return E}function c(t,e,r){for(var n,o,l,c=t.cd,u=t.xa,f=t.ya,h=c[0].trace,p=u.c2p(e),d=f.c2p(r),g=a.quadrature((function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(u.c2p(t.x)-p)-e,1-3/e)}),(function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(f.c2p(t.y)-d)-e,1-3/e)})),m=!1,v=0;v&lt;c.length;v++){o=c[v];for(var y=0;y&lt;(o.pts||[]).length;y++){var x=g(l=o.pts[y]);x&lt;=t.distance&amp;&amp;(t.distance=x,m=[v,y])}}if(!m)return!1;l=(o=c[m[0]]).pts[m[1]];var b=u.c2p(l.x,!0),_=f.c2p(l.y,!0),w=l.mrc||1;n=i.extendFlat({},t,{index:l.i,color:(h.marker||{}).color,name:h.name,x0:b-w,x1:b+w,y0:_-w,y1:_+w,spikeDistance:t.distance,hovertemplate:h.hovertemplate});var T,k=o.orig_p,M=void 0!==k?k:o.pos;return&quot;h&quot;===h.orientation?(T=f,n.xLabelVal=l.x,n.yLabelVal=M):(T=u,n.xLabelVal=M,n.yLabelVal=l.y),n[T._id.charAt(0)+&quot;Spike&quot;]=T.c2p(o.pos,!0),s(l,h,n),n}e.exports={hoverPoints:function(t,e,r,n){var i,a=t.cd[0].trace.hoveron,o=[];return-1!==a.indexOf(&quot;boxes&quot;)&amp;&amp;(o=o.concat(l(t,e,r,n))),-1!==a.indexOf(&quot;points&quot;)&amp;&amp;(i=c(t,e,r)),&quot;closest&quot;===n?i?[i]:o:i?(o.push(i),o):o},hoverOnBoxes:l,hoverOnPoints:c}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],952:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;).supplyLayoutDefaults,calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;box&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;oriented&quot;,&quot;box-violin&quot;,&quot;showLegend&quot;,&quot;boxLayout&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:946,&quot;./calc&quot;:947,&quot;./cross_trace_calc&quot;:948,&quot;./defaults&quot;:949,&quot;./event_data&quot;:950,&quot;./hover&quot;:951,&quot;./layout_attributes&quot;:953,&quot;./layout_defaults&quot;:954,&quot;./plot&quot;:955,&quot;./select&quot;:956,&quot;./style&quot;:957}],953:[function(t,e,r){&quot;use strict&quot;;e.exports={boxmode:{valType:&quot;enumerated&quot;,values:[&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;overlay&quot;,editType:&quot;calc&quot;},boxgap:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,editType:&quot;calc&quot;},boxgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,editType:&quot;calc&quot;}}},{}],954:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./layout_attributes&quot;);function o(t,e,r,i,a){for(var o=a+&quot;Layout&quot;,s=!1,l=0;l&lt;r.length;l++){var c=r[l];if(n.traceIs(c,o)){s=!0;break}}s&amp;&amp;(i(a+&quot;mode&quot;),i(a+&quot;gap&quot;),i(a+&quot;groupgap&quot;))}e.exports={supplyLayoutDefaults:function(t,e,r){o(0,0,r,(function(r,n){return i.coerce(t,e,a,r,n)}),&quot;box&quot;)},_supply:o}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./layout_attributes&quot;:953}],955:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;);function o(t,e,r,a){var o,s,l=&quot;h&quot;===r.orientation,c=e.val,u=e.pos,f=!!u.rangebreaks,h=a.bPos,p=a.wdPos||0,d=a.bPosPxOffset||0,g=r.whiskerwidth||0,m=r.notched||!1,v=m?1-2*r.notchwidth:1;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var y=t.selectAll(&quot;path.box&quot;).data(&quot;violin&quot;!==r.type||r.box.visible?i.identity:[]);y.enter().append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;class&quot;,&quot;box&quot;),y.exit().remove(),y.each((function(t){if(t.empty)return&quot;M0,0Z&quot;;var e=u.c2l(t.pos+h,!0),a=u.l2p(e-o)+d,y=u.l2p(e+s)+d,x=f?(a+y)/2:u.l2p(e)+d,b=r.whiskerwidth,_=f?a*b+(1-b)*x:u.l2p(e-p)+d,w=f?y*b+(1-b)*x:u.l2p(e+p)+d,T=u.l2p(e-o*v)+d,k=u.l2p(e+s*v)+d,M=c.c2p(t.q1,!0),A=c.c2p(t.q3,!0),S=i.constrain(c.c2p(t.med,!0),Math.min(M,A)+1,Math.max(M,A)-1),E=void 0===t.lf||!1===r.boxpoints,C=c.c2p(E?t.min:t.lf,!0),L=c.c2p(E?t.max:t.uf,!0),I=c.c2p(t.ln,!0),P=c.c2p(t.un,!0);l?n.select(this).attr(&quot;d&quot;,&quot;M&quot;+S+&quot;,&quot;+T+&quot;V&quot;+k+&quot;M&quot;+M+&quot;,&quot;+a+&quot;V&quot;+y+(m?&quot;H&quot;+I+&quot;L&quot;+S+&quot;,&quot;+k+&quot;L&quot;+P+&quot;,&quot;+y:&quot;&quot;)+&quot;H&quot;+A+&quot;V&quot;+a+(m?&quot;H&quot;+P+&quot;L&quot;+S+&quot;,&quot;+T+&quot;L&quot;+I+&quot;,&quot;+a:&quot;&quot;)+&quot;ZM&quot;+M+&quot;,&quot;+x+&quot;H&quot;+C+&quot;M&quot;+A+&quot;,&quot;+x+&quot;H&quot;+L+(0===g?&quot;&quot;:&quot;M&quot;+C+&quot;,&quot;+_+&quot;V&quot;+w+&quot;M&quot;+L+&quot;,&quot;+_+&quot;V&quot;+w)):n.select(this).attr(&quot;d&quot;,&quot;M&quot;+T+&quot;,&quot;+S+&quot;H&quot;+k+&quot;M&quot;+a+&quot;,&quot;+M+&quot;H&quot;+y+(m?&quot;V&quot;+I+&quot;L&quot;+k+&quot;,&quot;+S+&quot;L&quot;+y+&quot;,&quot;+P:&quot;&quot;)+&quot;V&quot;+A+&quot;H&quot;+a+(m?&quot;V&quot;+P+&quot;L&quot;+T+&quot;,&quot;+S+&quot;L&quot;+a+&quot;,&quot;+I:&quot;&quot;)+&quot;ZM&quot;+x+&quot;,&quot;+M+&quot;V&quot;+C+&quot;M&quot;+x+&quot;,&quot;+A+&quot;V&quot;+L+(0===g?&quot;&quot;:&quot;M&quot;+_+&quot;,&quot;+C+&quot;H&quot;+w+&quot;M&quot;+_+&quot;,&quot;+L+&quot;H&quot;+w))}))}function s(t,e,r,n){var o=e.x,s=e.y,l=n.bdPos,c=n.bPos,u=r.boxpoints||r.points;i.seedPseudoRandom();var f=t.selectAll(&quot;g.points&quot;).data(u?function(t){return t.forEach((function(t){t.t=n,t.trace=r})),t}:[]);f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;points&quot;),f.exit().remove();var h=f.selectAll(&quot;path&quot;).data((function(t){var e,n,a=t.pts2,o=Math.max((t.max-t.min)/10,t.q3-t.q1),s=1e-9*o,f=.01*o,h=[],p=0;if(r.jitter){if(0===o)for(p=1,h=new Array(a.length),e=0;e&lt;a.length;e++)h[e]=1;else for(e=0;e&lt;a.length;e++){var d=Math.max(0,e-5),g=a[d].v,m=Math.min(a.length-1,e+5),v=a[m].v;&quot;all&quot;!==u&amp;&amp;(a[e].v&lt;t.lf?v=Math.min(v,t.lf):g=Math.max(g,t.uf));var y=Math.sqrt(f*(m-d)/(v-g+s))||0;y=i.constrain(Math.abs(y),0,1),h.push(y),p=Math.max(y,p)}n=2*r.jitter/(p||1)}for(e=0;e&lt;a.length;e++){var x=a[e],b=x.v,_=r.jitter?n*h[e]*(i.pseudoRandom()-.5):0,w=t.pos+c+l*(r.pointpos+_);&quot;h&quot;===r.orientation?(x.y=w,x.x=b):(x.x=w,x.y=b),&quot;suspectedoutliers&quot;===u&amp;&amp;b&lt;t.uo&amp;&amp;b&gt;t.lo&amp;&amp;(x.so=!0)}return a}));h.enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0),h.exit().remove(),h.call(a.translatePoints,o,s)}function l(t,e,r,a){var o,s,l=e.val,c=e.pos,u=!!c.rangebreaks,f=a.bPos,h=a.bPosPxOffset||0,p=r.boxmean||(r.meanline||{}).visible;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var d=t.selectAll(&quot;path.mean&quot;).data(&quot;box&quot;===r.type&amp;&amp;r.boxmean||&quot;violin&quot;===r.type&amp;&amp;r.box.visible&amp;&amp;r.meanline.visible?i.identity:[]);d.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;mean&quot;).style({fill:&quot;none&quot;,&quot;vector-effect&quot;:&quot;non-scaling-stroke&quot;}),d.exit().remove(),d.each((function(t){var e=c.c2l(t.pos+f,!0),i=c.l2p(e-o)+h,a=c.l2p(e+s)+h,d=u?(i+a)/2:c.l2p(e)+h,g=l.c2p(t.mean,!0),m=l.c2p(t.mean-t.sd,!0),v=l.c2p(t.mean+t.sd,!0);&quot;h&quot;===r.orientation?n.select(this).attr(&quot;d&quot;,&quot;M&quot;+g+&quot;,&quot;+i+&quot;V&quot;+a+(&quot;sd&quot;===p?&quot;m0,0L&quot;+m+&quot;,&quot;+d+&quot;L&quot;+g+&quot;,&quot;+i+&quot;L&quot;+v+&quot;,&quot;+d+&quot;Z&quot;:&quot;&quot;)):n.select(this).attr(&quot;d&quot;,&quot;M&quot;+i+&quot;,&quot;+g+&quot;H&quot;+a+(&quot;sd&quot;===p?&quot;m0,0L&quot;+d+&quot;,&quot;+m+&quot;L&quot;+i+&quot;,&quot;+g+&quot;L&quot;+d+&quot;,&quot;+v+&quot;Z&quot;:&quot;&quot;))}))}e.exports={plot:function(t,e,r,a){var c=e.xaxis,u=e.yaxis;i.makeTraceGroups(a,r,&quot;trace boxes&quot;).each((function(t){var e,r,i=n.select(this),a=t[0],f=a.t,h=a.trace;(f.wdPos=f.bdPos*h.whiskerwidth,!0!==h.visible||f.empty)?i.remove():(&quot;h&quot;===h.orientation?(e=u,r=c):(e=c,r=u),o(i,{pos:e,val:r},h,f),s(i,{x:c,y:u},h,f),l(i,{pos:e,val:r},h,f))}))},plotBoxAndWhiskers:o,plotPoints:s,plotBoxMean:l}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,d3:169}],956:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n,i=t.cd,a=t.xaxis,o=t.yaxis,s=[];if(!1===e)for(r=0;r&lt;i.length;r++)for(n=0;n&lt;(i[r].pts||[]).length;n++)i[r].pts[n].selected=0;else for(r=0;r&lt;i.length;r++)for(n=0;n&lt;(i[r].pts||[]).length;n++){var l=i[r].pts[n],c=a.c2p(l.x),u=o.c2p(l.y);e.contains([c,u],null,l.i,t)?(s.push({pointNumber:l.i,x:a.c2d(l.x),y:o.c2d(l.y)}),l.selected=1):l.selected=0}return s}},{}],957:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;);e.exports={style:function(t,e,r){var o=r||n.select(t).selectAll(&quot;g.trace.boxes&quot;);o.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),o.each((function(e){var r=n.select(this),o=e[0].trace,s=o.line.width;function l(t,e,r,n){t.style(&quot;stroke-width&quot;,e+&quot;px&quot;).call(i.stroke,r).call(i.fill,n)}var c=r.selectAll(&quot;path.box&quot;);if(&quot;candlestick&quot;===o.type)c.each((function(t){if(!t.empty){var e=n.select(this),r=o[t.dir];l(e,r.line.width,r.line.color,r.fillcolor),e.style(&quot;opacity&quot;,o.selectedpoints&amp;&amp;!t.selected?.3:1)}}));else{l(c,s,o.line.color,o.fillcolor),r.selectAll(&quot;path.mean&quot;).style({&quot;stroke-width&quot;:s,&quot;stroke-dasharray&quot;:2*s+&quot;px,&quot;+s+&quot;px&quot;}).call(i.stroke,o.line.color);var u=r.selectAll(&quot;path.point&quot;);a.pointStyle(u,o,t)}}))},styleOnSelect:function(t,e,r){var n=e[0].trace,i=r.selectAll(&quot;path.point&quot;);n.selectedpoints?a.selectedPointStyle(i,n):a.pointStyle(i,n,t)}}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,d3:169}],958:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).extendFlat,i=t(&quot;../ohlc/attributes&quot;),a=t(&quot;../box/attributes&quot;);function o(t){return{line:{color:n({},a.line.color,{dflt:t}),width:a.line.width,editType:&quot;style&quot;},fillcolor:a.fillcolor,editType:&quot;style&quot;}}e.exports={xperiod:i.xperiod,xperiod0:i.xperiod0,xperiodalignment:i.xperiodalignment,x:i.x,open:i.open,high:i.high,low:i.low,close:i.close,line:{width:n({},a.line.width,{}),editType:&quot;style&quot;},increasing:o(i.increasing.line.color.dflt),decreasing:o(i.decreasing.line.color.dflt),text:i.text,hovertext:i.hovertext,whiskerwidth:n({},a.whiskerwidth,{dflt:0}),hoverlabel:i.hoverlabel}},{&quot;../../lib&quot;:778,&quot;../box/attributes&quot;:946,&quot;../ohlc/attributes&quot;:1133}],959:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/cartesian/align_period&quot;),o=t(&quot;../ohlc/calc&quot;).calcCommon;function s(t,e,r,n){return{min:r,q1:Math.min(t,n),med:n,q3:Math.max(t,n),max:e}}e.exports=function(t,e){var r=t._fullLayout,l=i.getFromId(t,e.xaxis),c=i.getFromId(t,e.yaxis),u=l.makeCalcdata(e,&quot;x&quot;),f=a(e,l,&quot;x&quot;,u),h=o(t,e,u,f,c,s);return h.length?(n.extendFlat(h[0].t,{num:r._numBoxes,dPos:n.distinctVals(f).minDiff/2,posLetter:&quot;x&quot;,valLetter:&quot;y&quot;}),r._numBoxes++,h):[{t:{empty:!0}}]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../ohlc/calc&quot;:1134}],960:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../ohlc/ohlc_defaults&quot;),o=t(&quot;../scatter/period_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r,n){var a=r(n+&quot;.line.color&quot;);r(n+&quot;.line.width&quot;,e.line.width),r(n+&quot;.fillcolor&quot;,i.addOpacity(a,.5))}e.exports=function(t,e,r,i){function c(r,i){return n.coerce(t,e,s,r,i)}a(t,e,c,i)?(o(t,e,i,c,{x:!0}),c(&quot;line.width&quot;),l(t,e,c,&quot;increasing&quot;),l(t,e,c,&quot;decreasing&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;whiskerwidth&quot;),i._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../ohlc/ohlc_defaults&quot;:1138,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:958}],961:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;candlestick&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;showLegend&quot;,&quot;candlestick&quot;,&quot;boxLayout&quot;],meta:{},attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;../box/layout_attributes&quot;),supplyLayoutDefaults:t(&quot;../box/layout_defaults&quot;).supplyLayoutDefaults,crossTraceCalc:t(&quot;../box/cross_trace_calc&quot;).crossTraceCalc,supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;../box/plot&quot;).plot,layerName:&quot;boxlayer&quot;,style:t(&quot;../box/style&quot;).style,hoverPoints:t(&quot;../ohlc/hover&quot;).hoverPoints,selectPoints:t(&quot;../ohlc/select&quot;)}},{&quot;../../plots/cartesian&quot;:841,&quot;../box/cross_trace_calc&quot;:948,&quot;../box/layout_attributes&quot;:953,&quot;../box/layout_defaults&quot;:954,&quot;../box/plot&quot;:955,&quot;../box/style&quot;:957,&quot;../ohlc/hover&quot;:1136,&quot;../ohlc/select&quot;:1140,&quot;./attributes&quot;:958,&quot;./calc&quot;:959,&quot;./defaults&quot;:960}],962:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./axis_defaults&quot;),i=t(&quot;../../plot_api/plot_template&quot;);e.exports=function(t,e,r,a,o){a(&quot;a&quot;)||(a(&quot;da&quot;),a(&quot;a0&quot;)),a(&quot;b&quot;)||(a(&quot;db&quot;),a(&quot;b0&quot;)),function(t,e,r,a){[&quot;aaxis&quot;,&quot;baxis&quot;].forEach((function(o){var s=o.charAt(0),l=t[o]||{},c=i.newContainer(e,o),u={tickfont:&quot;x&quot;,id:s+&quot;axis&quot;,letter:s,font:e.font,name:o,data:t[s],calendar:e.calendar,dfltColor:a,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};n(l,c,u),c._categories=c._categories||[],t[o]||&quot;-&quot;===l.type||(t[o]={type:l.type})}))}(t,e,r,o)}},{&quot;../../plot_api/plot_template&quot;:817,&quot;./axis_defaults&quot;:967}],963:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t){return function t(e,r){if(!n(e)||r&gt;=10)return null;for(var i=1/0,a=-1/0,o=e.length,s=0;s&lt;o;s++){var l=e[s];if(n(l)){var c=t(l,r+1);c&amp;&amp;(i=Math.min(c[0],i),a=Math.max(c[1],a))}else i=Math.min(l,i),a=Math.max(l,a)}return[i,a]}(t,0)}},{&quot;../../lib&quot;:778}],964:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;./axis_attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=n({editType:&quot;calc&quot;});o.family.dflt='&quot;Open Sans&quot;, verdana, arial, sans-serif',o.size.dflt=12,o.color.dflt=a.defaultLine,e.exports={carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},a0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},da:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},db:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},cheaterslope:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},aaxis:i,baxis:i,font:o,color:{valType:&quot;color&quot;,dflt:a.defaultLine,editType:&quot;plot&quot;},transforms:void 0}},{&quot;../../components/color/attributes&quot;:642,&quot;../../plots/font_attributes&quot;:856,&quot;./axis_attributes&quot;:966}],965:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g,m,v,y=n(r)?&quot;a&quot;:&quot;b&quot;,x=(&quot;a&quot;===y?t.aaxis:t.baxis).smoothing,b=&quot;a&quot;===y?t.a2i:t.b2j,_=&quot;a&quot;===y?r:i,w=&quot;a&quot;===y?i:r,T=&quot;a&quot;===y?e.a.length:e.b.length,k=&quot;a&quot;===y?e.b.length:e.a.length,M=Math.floor(&quot;a&quot;===y?t.b2j(w):t.a2i(w)),A=&quot;a&quot;===y?function(e){return t.evalxy([],e,M)}:function(e){return t.evalxy([],M,e)};x&amp;&amp;(s=Math.max(0,Math.min(k-2,M)),l=M-s,o=&quot;a&quot;===y?function(e,r){return t.dxydi([],e,s,r,l)}:function(e,r){return t.dxydj([],s,e,l,r)});var S=b(_[0]),E=b(_[1]),C=S&lt;E?1:-1,L=1e-8*(E-S),I=C&gt;0?Math.floor:Math.ceil,P=C&gt;0?Math.ceil:Math.floor,z=C&gt;0?Math.min:Math.max,O=C&gt;0?Math.max:Math.min,D=I(S+L),R=P(E-L),F=[[f=A(S)]];for(a=D;a*C&lt;R*C;a+=C)c=[],g=O(S,a),v=(m=z(E,a+C))-g,u=Math.max(0,Math.min(T-2,Math.floor(.5*(g+m)))),h=A(m),x&amp;&amp;(p=o(u,g-u),d=o(u,m-u),c.push([f[0]+p[0]/3*v,f[1]+p[1]/3*v]),c.push([h[0]-d[0]/3*v,h[1]-d[1]/3*v])),c.push(h),F.push(c),f=h;return F}},{&quot;../../lib&quot;:778}],966:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../components/color/attributes&quot;),a=t(&quot;../../plots/cartesian/layout_attributes&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll;t(&quot;../../constants/docs&quot;).FORMAT_LINK,t(&quot;../../constants/docs&quot;).TIME_FORMAT_LINK;e.exports={color:{valType:&quot;color&quot;,editType:&quot;calc&quot;},smoothing:{valType:&quot;number&quot;,dflt:1,min:0,max:1.3,editType:&quot;calc&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},font:n({editType:&quot;calc&quot;}),offset:{valType:&quot;number&quot;,dflt:10,editType:&quot;calc&quot;},editType:&quot;calc&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;date&quot;,&quot;category&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;},autotypenumbers:a.autotypenumbers,autorange:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],dflt:!0,editType:&quot;calc&quot;},rangemode:{valType:&quot;enumerated&quot;,values:[&quot;normal&quot;,&quot;tozero&quot;,&quot;nonnegative&quot;],dflt:&quot;normal&quot;,editType:&quot;calc&quot;},range:{valType:&quot;info_array&quot;,editType:&quot;calc&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}]},fixedrange:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},cheatertype:{valType:&quot;enumerated&quot;,values:[&quot;index&quot;,&quot;value&quot;],dflt:&quot;value&quot;,editType:&quot;calc&quot;},tickmode:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;array&quot;],dflt:&quot;array&quot;,editType:&quot;calc&quot;},nticks:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},tickvals:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},showticklabels:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;end&quot;,&quot;both&quot;,&quot;none&quot;],dflt:&quot;start&quot;,editType:&quot;calc&quot;},tickfont:n({editType:&quot;calc&quot;}),tickangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;calc&quot;},tickprefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showtickprefix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},ticksuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showticksuffix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},showexponent:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},exponentformat:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;e&quot;,&quot;E&quot;,&quot;power&quot;,&quot;SI&quot;,&quot;B&quot;],dflt:&quot;B&quot;,editType:&quot;calc&quot;},minexponent:{valType:&quot;number&quot;,dflt:3,min:0,editType:&quot;calc&quot;},separatethousands:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},tickformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},tickformatstops:o(a.tickformatstops,&quot;calc&quot;,&quot;from-root&quot;),categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},labelpadding:{valType:&quot;integer&quot;,dflt:10,editType:&quot;calc&quot;},labelprefix:{valType:&quot;string&quot;,editType:&quot;calc&quot;},labelsuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showline:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},linecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;calc&quot;},linewidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},gridcolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},showgrid:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},minorgridcount:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},minorgridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},minorgridcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;calc&quot;},startline:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},startlinecolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},startlinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},endline:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},endlinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},endlinecolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},tick0:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},dtick:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},arraytick0:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},arraydtick:{valType:&quot;integer&quot;,min:1,dflt:1,editType:&quot;calc&quot;},_deprecated:{title:{valType:&quot;string&quot;,editType:&quot;calc&quot;},titlefont:n({editType:&quot;calc&quot;}),titleoffset:{valType:&quot;number&quot;,dflt:10,editType:&quot;calc&quot;}},editType:&quot;calc&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../constants/docs&quot;:748,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/font_attributes&quot;:856}],967:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./attributes&quot;),i=t(&quot;../../components/color&quot;).addOpacity,a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),l=t(&quot;../../plots/cartesian/tick_label_defaults&quot;),c=t(&quot;../../plots/cartesian/category_order_defaults&quot;),u=t(&quot;../../plots/cartesian/set_convert&quot;),f=t(&quot;../../plots/cartesian/axis_autotype&quot;);e.exports=function(t,e,r){var h=r.letter,p=r.font||{},d=n[h+&quot;axis&quot;];function g(r,n){return o.coerce(t,e,d,r,n)}function m(r,n){return o.coerce2(t,e,d,r,n)}r.name&amp;&amp;(e._name=r.name,e._id=r.name),g(&quot;autotypenumbers&quot;,r.autotypenumbersDflt);var v=g(&quot;type&quot;);(&quot;-&quot;===v&amp;&amp;(r.data&amp;&amp;function(t,e){if(&quot;-&quot;!==t.type)return;var r=t._id.charAt(0),n=t[r+&quot;calendar&quot;];t.type=f(e,n,{autotypenumbers:t.autotypenumbers})}(e,r.data),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:v=t.type=e.type),g(&quot;smoothing&quot;),g(&quot;cheatertype&quot;),g(&quot;showticklabels&quot;),g(&quot;labelprefix&quot;,h+&quot; = &quot;),g(&quot;labelsuffix&quot;),g(&quot;showtickprefix&quot;),g(&quot;showticksuffix&quot;),g(&quot;separatethousands&quot;),g(&quot;tickformat&quot;),g(&quot;exponentformat&quot;),g(&quot;minexponent&quot;),g(&quot;showexponent&quot;),g(&quot;categoryorder&quot;),g(&quot;tickmode&quot;),g(&quot;tickvals&quot;),g(&quot;ticktext&quot;),g(&quot;tick0&quot;),g(&quot;dtick&quot;),&quot;array&quot;===e.tickmode&amp;&amp;(g(&quot;arraytick0&quot;),g(&quot;arraydtick&quot;)),g(&quot;labelpadding&quot;),e._hovertitle=h,&quot;date&quot;===v)&amp;&amp;a.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;,r.calendar);u(e,r.fullLayout),e.c2p=o.identity;var y=g(&quot;color&quot;,r.dfltColor),x=y===t.color?y:p.color;g(&quot;title.text&quot;)&amp;&amp;(o.coerceFont(g,&quot;title.font&quot;,{family:p.family,size:Math.round(1.2*p.size),color:x}),g(&quot;title.offset&quot;)),g(&quot;tickangle&quot;),g(&quot;autorange&quot;,!e.isValidRange(t.range))&amp;&amp;g(&quot;rangemode&quot;),g(&quot;range&quot;),e.cleanRange(),g(&quot;fixedrange&quot;),s(t,e,g,v),l(t,e,g,v,r),c(t,e,g,{data:r.data,dataAttr:h});var b=m(&quot;gridcolor&quot;,i(y,.3)),_=m(&quot;gridwidth&quot;),w=g(&quot;showgrid&quot;);w||(delete e.gridcolor,delete e.gridwidth);var T=m(&quot;startlinecolor&quot;,y),k=m(&quot;startlinewidth&quot;,_);g(&quot;startline&quot;,e.showgrid||!!T||!!k)||(delete e.startlinecolor,delete e.startlinewidth);var M=m(&quot;endlinecolor&quot;,y),A=m(&quot;endlinewidth&quot;,_);return g(&quot;endline&quot;,e.showgrid||!!M||!!A)||(delete e.endlinecolor,delete e.endlinewidth),w?(g(&quot;minorgridcount&quot;),g(&quot;minorgridwidth&quot;,_),g(&quot;minorgridcolor&quot;,i(b,.06)),e.minorgridcount||(delete e.minorgridwidth,delete e.minorgridcolor)):(delete e.gridcolor,delete e.gridWidth),&quot;none&quot;===e.showticklabels&amp;&amp;(delete e.tickfont,delete e.tickangle,delete e.showexponent,delete e.exponentformat,delete e.minexponent,delete e.tickformat,delete e.showticksuffix,delete e.showtickprefix),e.showticksuffix||delete e.ticksuffix,e.showtickprefix||delete e.tickprefix,g(&quot;tickmode&quot;),e}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_autotype&quot;:829,&quot;../../plots/cartesian/category_order_defaults&quot;:832,&quot;../../plots/cartesian/set_convert&quot;:848,&quot;../../plots/cartesian/tick_label_defaults&quot;:849,&quot;../../plots/cartesian/tick_value_defaults&quot;:851,&quot;../../registry&quot;:911,&quot;./attributes&quot;:964}],968:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;).isArray1D,a=t(&quot;./cheater_basis&quot;),o=t(&quot;./array_minmax&quot;),s=t(&quot;./calc_gridlines&quot;),l=t(&quot;./calc_labels&quot;),c=t(&quot;./calc_clippath&quot;),u=t(&quot;../heatmap/clean_2d_array&quot;),f=t(&quot;./smooth_fill_2d_array&quot;),h=t(&quot;../heatmap/convert_column_xyz&quot;),p=t(&quot;./set_convert&quot;);e.exports=function(t,e){var r=n.getFromId(t,e.xaxis),d=n.getFromId(t,e.yaxis),g=e.aaxis,m=e.baxis,v=e.x,y=e.y,x=[];v&amp;&amp;i(v)&amp;&amp;x.push(&quot;x&quot;),y&amp;&amp;i(y)&amp;&amp;x.push(&quot;y&quot;),x.length&amp;&amp;h(e,g,m,&quot;a&quot;,&quot;b&quot;,x);var b=e._a=e._a||e.a,_=e._b=e._b||e.b;v=e._x||e.x,y=e._y||e.y;var w={};if(e._cheater){var T=&quot;index&quot;===g.cheatertype?b.length:b,k=&quot;index&quot;===m.cheatertype?_.length:_;v=a(T,k,e.cheaterslope)}e._x=v=u(v),e._y=y=u(y),f(v,b,_),f(y,b,_),p(e),e.setScale();var M=o(v),A=o(y),S=.5*(M[1]-M[0]),E=.5*(M[1]+M[0]),C=.5*(A[1]-A[0]),L=.5*(A[1]+A[0]);return M=[E-1.3*S,E+1.3*S],A=[L-1.3*C,L+1.3*C],e._extremes[r._id]=n.findExtremes(r,M,{padded:!0}),e._extremes[d._id]=n.findExtremes(d,A,{padded:!0}),s(e,&quot;a&quot;,&quot;b&quot;),s(e,&quot;b&quot;,&quot;a&quot;),l(e,g),l(e,m),w.clipsegments=c(e._xctrl,e._yctrl,g,m),w.x=v,w.y=y,w.a=b,w.b=_,[w]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../heatmap/clean_2d_array&quot;:1067,&quot;../heatmap/convert_column_xyz&quot;:1069,&quot;./array_minmax&quot;:963,&quot;./calc_clippath&quot;:969,&quot;./calc_gridlines&quot;:970,&quot;./calc_labels&quot;:971,&quot;./cheater_basis&quot;:973,&quot;./set_convert&quot;:986,&quot;./smooth_fill_2d_array&quot;:987}],969:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i,a,o,s=[],l=!!r.smoothing,c=!!n.smoothing,u=t[0].length-1,f=t.length-1;for(i=0,a=[],o=[];i&lt;=u;i++)a[i]=t[0][i],o[i]=e[0][i];for(s.push({x:a,y:o,bicubic:l}),i=0,a=[],o=[];i&lt;=f;i++)a[i]=t[i][u],o[i]=e[i][u];for(s.push({x:a,y:o,bicubic:c}),i=u,a=[],o=[];i&gt;=0;i--)a[u-i]=t[f][i],o[u-i]=e[f][i];for(s.push({x:a,y:o,bicubic:l}),i=f,a=[],o=[];i&gt;=0;i--)a[f-i]=t[i][0],o[f-i]=e[i][0];return s.push({x:a,y:o,bicubic:c}),s}},{}],970:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=function(t,e,r){var a,o,s,l,c,u,f,h,p,d,g,m,v,y,x=t[&quot;_&quot;+e],b=t[e+&quot;axis&quot;],_=b._gridlines=[],w=b._minorgridlines=[],T=b._boundarylines=[],k=t[&quot;_&quot;+r],M=t[r+&quot;axis&quot;];&quot;array&quot;===b.tickmode&amp;&amp;(b.tickvals=x.slice());var A=t._xctrl,S=t._yctrl,E=A[0].length,C=A.length,L=t._a.length,I=t._b.length;n.prepTicks(b),&quot;array&quot;===b.tickmode&amp;&amp;delete b.tickvals;var P=b.smoothing?3:1;function z(n){var i,a,o,s,l,c,u,f,p,d,g,m,v=[],y=[],x={};if(&quot;b&quot;===e)for(a=t.b2j(n),o=Math.floor(Math.max(0,Math.min(I-2,a))),s=a-o,x.length=I,x.crossLength=L,x.xy=function(e){return t.evalxy([],e,a)},x.dxy=function(e,r){return t.dxydi([],e,o,r,s)},i=0;i&lt;L;i++)c=Math.min(L-2,i),u=i-c,f=t.evalxy([],i,a),M.smoothing&amp;&amp;i&gt;0&amp;&amp;(p=t.dxydi([],i-1,o,0,s),v.push(l[0]+p[0]/3),y.push(l[1]+p[1]/3),d=t.dxydi([],i-1,o,1,s),v.push(f[0]-d[0]/3),y.push(f[1]-d[1]/3)),v.push(f[0]),y.push(f[1]),l=f;else for(i=t.a2i(n),c=Math.floor(Math.max(0,Math.min(L-2,i))),u=i-c,x.length=L,x.crossLength=I,x.xy=function(e){return t.evalxy([],i,e)},x.dxy=function(e,r){return t.dxydj([],c,e,u,r)},a=0;a&lt;I;a++)o=Math.min(I-2,a),s=a-o,f=t.evalxy([],i,a),M.smoothing&amp;&amp;a&gt;0&amp;&amp;(g=t.dxydj([],c,a-1,u,0),v.push(l[0]+g[0]/3),y.push(l[1]+g[1]/3),m=t.dxydj([],c,a-1,u,1),v.push(f[0]-m[0]/3),y.push(f[1]-m[1]/3)),v.push(f[0]),y.push(f[1]),l=f;return x.axisLetter=e,x.axis=b,x.crossAxis=M,x.value=n,x.constvar=r,x.index=h,x.x=v,x.y=y,x.smoothing=M.smoothing,x}function O(n){var i,a,o,s,l,c=[],u=[],f={};if(f.length=x.length,f.crossLength=k.length,&quot;b&quot;===e)for(o=Math.max(0,Math.min(I-2,n)),l=Math.min(1,Math.max(0,n-o)),f.xy=function(e){return t.evalxy([],e,n)},f.dxy=function(e,r){return t.dxydi([],e,o,r,l)},i=0;i&lt;E;i++)c[i]=A[n*P][i],u[i]=S[n*P][i];else for(a=Math.max(0,Math.min(L-2,n)),s=Math.min(1,Math.max(0,n-a)),f.xy=function(e){return t.evalxy([],n,e)},f.dxy=function(e,r){return t.dxydj([],a,e,s,r)},i=0;i&lt;C;i++)c[i]=A[i][n*P],u[i]=S[i][n*P];return f.axisLetter=e,f.axis=b,f.crossAxis=M,f.value=x[n],f.constvar=r,f.index=n,f.x=c,f.y=u,f.smoothing=M.smoothing,f}if(&quot;array&quot;===b.tickmode){for(l=5e-15,u=(c=[Math.floor((x.length-1-b.arraytick0)/b.arraydtick*(1+l)),Math.ceil(-b.arraytick0/b.arraydtick/(1+l))].sort((function(t,e){return t-e})))[0]-1,f=c[1]+1,h=u;h&lt;f;h++)(o=b.arraytick0+b.arraydtick*h)&lt;0||o&gt;x.length-1||_.push(i(O(o),{color:b.gridcolor,width:b.gridwidth}));for(h=u;h&lt;f;h++)if(s=b.arraytick0+b.arraydtick*h,g=Math.min(s+b.arraydtick,x.length-1),!(s&lt;0||s&gt;x.length-1||g&lt;0||g&gt;x.length-1))for(m=x[s],v=x[g],a=0;a&lt;b.minorgridcount;a++)(y=g-s)&lt;=0||(d=m+(v-m)*(a+1)/(b.minorgridcount+1)*(b.arraydtick/y))&lt;x[0]||d&gt;x[x.length-1]||w.push(i(z(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&amp;&amp;T.push(i(O(0),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&amp;&amp;T.push(i(O(x.length-1),{color:b.endlinecolor,width:b.endlinewidth}))}else{for(l=5e-15,u=(c=[Math.floor((x[x.length-1]-b.tick0)/b.dtick*(1+l)),Math.ceil((x[0]-b.tick0)/b.dtick/(1+l))].sort((function(t,e){return t-e})))[0],f=c[1],h=u;h&lt;=f;h++)p=b.tick0+b.dtick*h,_.push(i(z(p),{color:b.gridcolor,width:b.gridwidth}));for(h=u-1;h&lt;f+1;h++)for(p=b.tick0+b.dtick*h,a=0;a&lt;b.minorgridcount;a++)(d=p+b.dtick*(a+1)/(b.minorgridcount+1))&lt;x[0]||d&gt;x[x.length-1]||w.push(i(z(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&amp;&amp;T.push(i(z(x[0]),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&amp;&amp;T.push(i(z(x[x.length-1]),{color:b.endlinecolor,width:b.endlinewidth}))}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/cartesian/axes&quot;:828}],971:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=function(t,e){var r,a,o,s=e._labels=[],l=e._gridlines;for(r=0;r&lt;l.length;r++)o=l[r],-1!==[&quot;start&quot;,&quot;both&quot;].indexOf(e.showticklabels)&amp;&amp;(a=n.tickText(e,o.value),i(a,{prefix:void 0,suffix:void 0,endAnchor:!0,xy:o.xy(0),dxy:o.dxy(0,0),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a)),-1!==[&quot;end&quot;,&quot;both&quot;].indexOf(e.showticklabels)&amp;&amp;(a=n.tickText(e,o.value),i(a,{endAnchor:!1,xy:o.xy(o.crossLength-1),dxy:o.dxy(o.crossLength-2,1),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a))}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/cartesian/axes&quot;:828}],972:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i=t[0]-e[0],a=t[1]-e[1],o=r[0]-e[0],s=r[1]-e[1],l=Math.pow(i*i+a*a,.25),c=Math.pow(o*o+s*s,.25),u=(c*c*i-l*l*o)*n,f=(c*c*a-l*l*s)*n,h=c*(l+c)*3,p=l*(l+c)*3;return[[e[0]+(h&amp;&amp;u/h),e[1]+(h&amp;&amp;f/h)],[e[0]-(p&amp;&amp;u/p),e[1]-(p&amp;&amp;f/p)]]}},{}],973:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r){var i,a,o,s,l,c,u=[],f=n(t)?t.length:t,h=n(e)?e.length:e,p=n(t)?t:null,d=n(e)?e:null;p&amp;&amp;(o=(p.length-1)/(p[p.length-1]-p[0])/(f-1)),d&amp;&amp;(s=(d.length-1)/(d[d.length-1]-d[0])/(h-1));var g=1/0,m=-1/0;for(a=0;a&lt;h;a++)for(u[a]=[],l=d?(d[a]-d[0])*s:a/(h-1),i=0;i&lt;f;i++)c=(p?(p[i]-p[0])*o:i/(f-1))-l*r,g=Math.min(c,g),m=Math.max(c,m),u[a][i]=c;var v=1/(m-g),y=-g*v;for(a=0;a&lt;h;a++)for(i=0;i&lt;f;i++)u[a][i]=v*u[a][i]+y;return u}},{&quot;../../lib&quot;:778}],974:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./catmull_rom&quot;),i=t(&quot;../../lib&quot;).ensureArray;function a(t,e,r){var n=-.5*r[0]+1.5*e[0],i=-.5*r[1]+1.5*e[1];return[(2*n+t[0])/3,(2*i+t[1])/3]}e.exports=function(t,e,r,o,s,l){var c,u,f,h,p,d,g,m,v,y,x=r[0].length,b=r.length,_=s?3*x-2:x,w=l?3*b-2:b;for(t=i(t,w),e=i(e,w),f=0;f&lt;w;f++)t[f]=i(t[f],_),e[f]=i(e[f],_);for(u=0,h=0;u&lt;b;u++,h+=l?3:1)for(p=t[h],d=e[h],g=r[u],m=o[u],c=0,f=0;c&lt;x;c++,f+=s?3:1)p[f]=g[c],d[f]=m[c];if(s)for(u=0,h=0;u&lt;b;u++,h+=l?3:1){for(c=1,f=3;c&lt;x-1;c++,f+=3)v=n([r[u][c-1],o[u][c-1]],[r[u][c],o[u][c]],[r[u][c+1],o[u][c+1]],s),t[h][f-1]=v[0][0],e[h][f-1]=v[0][1],t[h][f+1]=v[1][0],e[h][f+1]=v[1][1];y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=y[0],e[h][1]=y[1],y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=y[0],e[h][_-2]=y[1]}if(l)for(f=0;f&lt;_;f++){for(h=3;h&lt;w-3;h+=3)v=n([t[h-3][f],e[h-3][f]],[t[h][f],e[h][f]],[t[h+3][f],e[h+3][f]],l),t[h-1][f]=v[0][0],e[h-1][f]=v[0][1],t[h+1][f]=v[1][0],e[h+1][f]=v[1][1];y=a([t[0][f],e[0][f]],[t[2][f],e[2][f]],[t[3][f],e[3][f]]),t[1][f]=y[0],e[1][f]=y[1],y=a([t[w-1][f],e[w-1][f]],[t[w-3][f],e[w-3][f]],[t[w-4][f],e[w-4][f]]),t[w-2][f]=y[0],e[w-2][f]=y[1]}if(s&amp;&amp;l)for(h=1;h&lt;w;h+=(h+1)%3==0?2:1){for(f=3;f&lt;_-3;f+=3)v=n([t[h][f-3],e[h][f-3]],[t[h][f],e[h][f]],[t[h][f+3],e[h][f+3]],s),t[h][f-1]=.5*(t[h][f-1]+v[0][0]),e[h][f-1]=.5*(e[h][f-1]+v[0][1]),t[h][f+1]=.5*(t[h][f+1]+v[1][0]),e[h][f+1]=.5*(e[h][f+1]+v[1][1]);y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=.5*(t[h][1]+y[0]),e[h][1]=.5*(e[h][1]+y[1]),y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=.5*(t[h][_-2]+y[0]),e[h][_-2]=.5*(e[h][_-2]+y[1])}return[t,e]}},{&quot;../../lib&quot;:778,&quot;./catmull_rom&quot;:972}],975:[function(t,e,r){&quot;use strict&quot;;e.exports={RELATIVE_CULL_TOLERANCE:1e-6}},{}],976:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return e&amp;&amp;r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=1-i,d=p*p,g=p*i*2,m=-3*d,v=3*(d-g),y=3*(g-h),x=3*h,b=a*a,_=b*a,w=1-a,T=w*w,k=T*w;for(f=0;f&lt;t.length;f++)o=m*(u=t[f])[n][r]+v*u[n][r+1]+y*u[n][r+2]+x*u[n][r+3],s=m*u[n+1][r]+v*u[n+1][r+1]+y*u[n+1][r+2]+x*u[n+1][r+3],l=m*u[n+2][r]+v*u[n+2][r+1]+y*u[n+2][r+2]+x*u[n+2][r+3],c=m*u[n+3][r]+v*u[n+3][r+1]+y*u[n+3][r+2]+x*u[n+3][r+3],e[f]=k*o+3*(T*a*s+w*b*l)+_*c;return e}:e?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),r*=3;var u=i*i,f=1-i,h=f*f,p=f*i*2,d=-3*h,g=3*(h-p),m=3*(p-u),v=3*u,y=1-a;for(l=0;l&lt;t.length;l++)o=d*(c=t[l])[n][r]+g*c[n][r+1]+m*c[n][r+2]+v*c[n][r+3],s=d*c[n+1][r]+g*c[n+1][r+1]+m*c[n+1][r+2]+v*c[n+1][r+3],e[l]=y*o+a*s;return e}:r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),n*=3;var h=a*a,p=h*a,d=1-a,g=d*d,m=g*d;for(u=0;u&lt;t.length;u++)o=(f=t[u])[n][r+1]-f[n][r],s=f[n+1][r+1]-f[n+1][r],l=f[n+2][r+1]-f[n+2][r],c=f[n+3][r+1]-f[n+3][r],e[u]=m*o+3*(g*a*s+d*h*l)+p*c;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-a;for(l=0;l&lt;t.length;l++)o=(c=t[l])[n][r+1]-c[n][r],s=c[n+1][r+1]-c[n+1][r],e[l]=u*o+a*s;return e}}},{}],977:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return e&amp;&amp;r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=h*i,d=1-i,g=d*d,m=g*d,v=a*a,y=1-a,x=y*y,b=y*a*2,_=-3*x,w=3*(x-b),T=3*(b-v),k=3*v;for(f=0;f&lt;t.length;f++)o=_*(u=t[f])[n][r]+w*u[n+1][r]+T*u[n+2][r]+k*u[n+3][r],s=_*u[n][r+1]+w*u[n+1][r+1]+T*u[n+2][r+1]+k*u[n+3][r+1],l=_*u[n][r+2]+w*u[n+1][r+2]+T*u[n+2][r+2]+k*u[n+3][r+2],c=_*u[n][r+3]+w*u[n+1][r+3]+T*u[n+2][r+3]+k*u[n+3][r+3],e[f]=m*o+3*(g*i*s+d*h*l)+p*c;return e}:e?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3;var h=a*a,p=h*a,d=1-a,g=d*d,m=g*d;for(u=0;u&lt;t.length;u++)o=(f=t[u])[n+1][r]-f[n][r],s=f[n+1][r+1]-f[n][r+1],l=f[n+1][r+2]-f[n][r+2],c=f[n+1][r+3]-f[n][r+3],e[u]=m*o+3*(g*a*s+d*h*l)+p*c;return e}:r?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),n*=3;var u=1-i,f=a*a,h=1-a,p=h*h,d=h*a*2,g=-3*p,m=3*(p-d),v=3*(d-f),y=3*f;for(l=0;l&lt;t.length;l++)o=g*(c=t[l])[n][r]+m*c[n+1][r]+v*c[n+2][r]+y*c[n+3][r],s=g*c[n][r+1]+m*c[n+1][r+1]+v*c[n+2][r+1]+y*c[n+3][r+1],e[l]=u*o+i*s;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-i;for(l=0;l&lt;t.length;l++)o=(c=t[l])[n+1][r]-c[n][r],s=c[n+1][r+1]-c[n][r+1],e[l]=u*o+i*s;return e}}},{}],978:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=e-2,o=r-2;return n&amp;&amp;i?function(e,r,n){var i,s,l,c,u,f;e||(e=[]);var h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3,p*=3;var m=d*d,v=m*d,y=1-d,x=y*y,b=x*y,_=g*g,w=_*g,T=1-g,k=T*T,M=k*T;for(f=0;f&lt;t.length;f++)i=b*(u=t[f])[p][h]+3*(x*d*u[p][h+1]+y*m*u[p][h+2])+v*u[p][h+3],s=b*u[p+1][h]+3*(x*d*u[p+1][h+1]+y*m*u[p+1][h+2])+v*u[p+1][h+3],l=b*u[p+2][h]+3*(x*d*u[p+2][h+1]+y*m*u[p+2][h+2])+v*u[p+2][h+3],c=b*u[p+3][h]+3*(x*d*u[p+3][h+1]+y*m*u[p+3][h+2])+v*u[p+3][h+3],e[f]=M*i+3*(k*g*s+T*_*l)+w*c;return e}:n?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3;var m=d*d,v=m*d,y=1-d,x=y*y,b=x*y,_=1-g;for(u=0;u&lt;t.length;u++)i=_*(f=t[u])[p][h]+g*f[p+1][h],s=_*f[p][h+1]+g*f[p+1][h+1],l=_*f[p][h+2]+g*f[p+1][h+1],c=_*f[p][h+3]+g*f[p+1][h+1],e[u]=b*i+3*(x*d*s+y*m*l)+v*c;return e}:i?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));p*=3;var m=g*g,v=m*g,y=1-g,x=y*y,b=x*y,_=1-d;for(u=0;u&lt;t.length;u++)i=_*(f=t[u])[p][h]+d*f[p][h+1],s=_*f[p+1][h]+d*f[p+1][h+1],l=_*f[p+2][h]+d*f[p+2][h+1],c=_*f[p+3][h]+d*f[p+3][h+1],e[u]=b*i+3*(x*g*s+y*m*l)+v*c;return e}:function(e,r,n){e||(e=[]);var i,s,l,c,u=Math.max(0,Math.min(Math.floor(r),a)),f=Math.max(0,Math.min(Math.floor(n),o)),h=Math.max(0,Math.min(1,r-u)),p=Math.max(0,Math.min(1,n-f)),d=1-p,g=1-h;for(l=0;l&lt;t.length;l++)i=g*(c=t[l])[f][u]+h*c[f][u+1],s=g*c[f+1][u]+h*c[f+1][u+1],e[l]=d*i+p*s;return e}}},{}],979:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./xy_defaults&quot;),a=t(&quot;./ab_defaults&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../../components/color/attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}e._clipPathId=&quot;clip&quot;+e.uid+&quot;carpet&quot;;var u=c(&quot;color&quot;,s.defaultLine);(n.coerceFont(c,&quot;font&quot;),c(&quot;carpet&quot;),a(t,e,l,c,u),e.a&amp;&amp;e.b)?(e.a.length&lt;3&amp;&amp;(e.aaxis.smoothing=0),e.b.length&lt;3&amp;&amp;(e.baxis.smoothing=0),i(t,e,c)||(e.visible=!1),e._cheater&amp;&amp;c(&quot;cheaterslope&quot;)):e.visible=!1}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib&quot;:778,&quot;./ab_defaults&quot;:962,&quot;./attributes&quot;:964,&quot;./xy_defaults&quot;:988}],980:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),plot:t(&quot;./plot&quot;),calc:t(&quot;./calc&quot;),animatable:!0,isContainer:!0,moduleType:&quot;trace&quot;,name:&quot;carpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;carpet&quot;,&quot;carpetAxis&quot;,&quot;notLegendIsolatable&quot;,&quot;noMultiCategory&quot;,&quot;noHover&quot;,&quot;noSortingByValue&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:964,&quot;./calc&quot;:968,&quot;./defaults&quot;:979,&quot;./plot&quot;:985}],981:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r,n=t._fullData.length,i=0;i&lt;n;i++){var a=t._fullData[i];if(a.index!==e.index&amp;&amp;(&quot;carpet&quot;===a.type&amp;&amp;(r||(r=a),a.carpet===e.carpet)))return a}return r}},{}],982:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(0===t.length)return&quot;&quot;;var n,i=[],a=r?3:1;for(n=0;n&lt;t.length;n+=a)i.push(t[n]+&quot;,&quot;+e[n]),r&amp;&amp;n&lt;t.length-a&amp;&amp;(i.push(&quot;C&quot;),i.push([t[n+1]+&quot;,&quot;+e[n+1],t[n+2]+&quot;,&quot;+e[n+2]+&quot; &quot;].join(&quot; &quot;)));return i.join(r?&quot;&quot;:&quot;L&quot;)}},{}],983:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r){var i;for(n(t)?t.length&gt;e.length&amp;&amp;(t=t.slice(0,e.length)):t=[],i=0;i&lt;e.length;i++)t[i]=r(e[i]);return t}},{&quot;../../lib&quot;:778}],984:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a){var o=i[0]*t.dpdx(e),s=i[1]*t.dpdy(r),l=1,c=1;if(a){var u=Math.sqrt(i[0]*i[0]+i[1]*i[1]),f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=(i[0]*a[0]+i[1]*a[1])/u/f;c=Math.max(0,h)}var p=180*Math.atan2(s,o)/Math.PI;return p&lt;-90?(p+=180,l=-l):p&gt;90&amp;&amp;(p-=180,l=-l),{angle:p,flip:l,p:t.c2p(n,e,r),offsetMultplier:c}}},{}],985:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;./map_1d_array&quot;),o=t(&quot;./makepath&quot;),s=t(&quot;./orient_text&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../lib&quot;),u=c.strRotate,f=c.strTranslate,h=t(&quot;../../constants/alignment&quot;);function p(t,e,r,i,s,l){var c=&quot;const-&quot;+s+&quot;-lines&quot;,u=r.selectAll(&quot;.&quot;+c).data(l);u.enter().append(&quot;path&quot;).classed(c,!0).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;),u.each((function(r){var i=r,s=i.x,l=i.y,c=a([],s,t.c2p),u=a([],l,e.c2p),f=&quot;M&quot;+o(c,u,i.smoothing);n.select(this).attr(&quot;d&quot;,f).style(&quot;stroke-width&quot;,i.width).style(&quot;stroke&quot;,i.color).style(&quot;fill&quot;,&quot;none&quot;)})),u.exit().remove()}function d(t,e,r,a,o,c,h,p){var d=c.selectAll(&quot;text.&quot;+p).data(h);d.enter().append(&quot;text&quot;).classed(p,!0);var g=0,m={};return d.each((function(o,c){var h;if(&quot;auto&quot;===o.axis.tickangle)h=s(a,e,r,o.xy,o.dxy);else{var p=(o.axis.tickangle+180)*Math.PI/180;h=s(a,e,r,o.xy,[Math.cos(p),Math.sin(p)])}c||(m={angle:h.angle,flip:h.flip});var d=(o.endAnchor?-1:1)*h.flip,v=n.select(this).attr({&quot;text-anchor&quot;:d&gt;0?&quot;start&quot;:&quot;end&quot;,&quot;data-notex&quot;:1}).call(i.font,o.font).text(o.text).call(l.convertToTspans,t),y=i.bBox(this);v.attr(&quot;transform&quot;,f(h.p[0],h.p[1])+u(h.angle)+f(o.axis.labelpadding*d,.3*y.height)),g=Math.max(g,y.width+o.axis.labelpadding)})),d.exit().remove(),m.maxExtent=g,m}e.exports=function(t,e,r,i){var l=e.xaxis,u=e.yaxis,f=t._fullLayout._clips;c.makeTraceGroups(i,r,&quot;trace&quot;).each((function(e){var r=n.select(this),i=e[0],h=i.trace,g=h.aaxis,m=h.baxis,y=c.ensureSingle(r,&quot;g&quot;,&quot;minorlayer&quot;),x=c.ensureSingle(r,&quot;g&quot;,&quot;majorlayer&quot;),b=c.ensureSingle(r,&quot;g&quot;,&quot;boundarylayer&quot;),_=c.ensureSingle(r,&quot;g&quot;,&quot;labellayer&quot;);r.style(&quot;opacity&quot;,h.opacity),p(l,u,x,g,&quot;a&quot;,g._gridlines),p(l,u,x,m,&quot;b&quot;,m._gridlines),p(l,u,y,g,&quot;a&quot;,g._minorgridlines),p(l,u,y,m,&quot;b&quot;,m._minorgridlines),p(l,u,b,g,&quot;a-boundary&quot;,g._boundarylines),p(l,u,b,m,&quot;b-boundary&quot;,m._boundarylines);var w=d(t,l,u,h,i,_,g._labels,&quot;a-label&quot;),T=d(t,l,u,h,i,_,m._labels,&quot;b-label&quot;);!function(t,e,r,n,i,a,o,l){var u,f,h,p,d=c.aggNums(Math.min,null,r.a),g=c.aggNums(Math.max,null,r.a),m=c.aggNums(Math.min,null,r.b),y=c.aggNums(Math.max,null,r.b);u=.5*(d+g),f=m,h=r.ab2xy(u,f,!0),p=r.dxyda_rough(u,f),void 0===o.angle&amp;&amp;c.extendFlat(o,s(r,i,a,h,r.dxydb_rough(u,f)));v(t,e,r,n,h,p,r.aaxis,i,a,o,&quot;a-title&quot;),u=d,f=.5*(m+y),h=r.ab2xy(u,f,!0),p=r.dxydb_rough(u,f),void 0===l.angle&amp;&amp;c.extendFlat(l,s(r,i,a,h,r.dxyda_rough(u,f)));v(t,e,r,n,h,p,r.baxis,i,a,l,&quot;b-title&quot;)}(t,_,h,i,l,u,w,T),function(t,e,r,n,i){var s,l,u,f,h=r.select(&quot;#&quot;+t._clipPathId);h.size()||(h=r.append(&quot;clipPath&quot;).classed(&quot;carpetclip&quot;,!0));var p=c.ensureSingle(h,&quot;path&quot;,&quot;carpetboundary&quot;),d=e.clipsegments,g=[];for(f=0;f&lt;d.length;f++)s=d[f],l=a([],s.x,n.c2p),u=a([],s.y,i.c2p),g.push(o(l,u,s.bicubic));var m=&quot;M&quot;+g.join(&quot;L&quot;)+&quot;Z&quot;;h.attr(&quot;id&quot;,t._clipPathId),p.attr(&quot;d&quot;,m)}(h,i,f,l,u)}))};var g=h.LINE_SPACING,m=(1-h.MID_SHIFT)/g+1;function v(t,e,r,a,o,c,h,p,d,v,y){var x=[];h.title.text&amp;&amp;x.push(h.title.text);var b=e.selectAll(&quot;text.&quot;+y).data(x),_=v.maxExtent;b.enter().append(&quot;text&quot;).classed(y,!0),b.each((function(){var e=s(r,p,d,o,c);-1===[&quot;start&quot;,&quot;both&quot;].indexOf(h.showticklabels)&amp;&amp;(_=0);var a=h.title.font.size;_+=a+h.title.offset;var y=(v.angle+(v.flip&lt;0?180:0)-e.angle+450)%360,x=y&gt;90&amp;&amp;y&lt;270,b=n.select(this);b.text(h.title.text).call(l.convertToTspans,t),x&amp;&amp;(_=(-l.lineCount(b)+m)*g*a-_),b.attr(&quot;transform&quot;,f(e.p[0],e.p[1])+u(e.angle)+f(0,_)).attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(i.font,h.title.font)})),b.exit().remove()}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;./makepath&quot;:982,&quot;./map_1d_array&quot;:983,&quot;./orient_text&quot;:984,d3:169}],986:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib/search&quot;).findBin,a=t(&quot;./compute_control_points&quot;),o=t(&quot;./create_spline_evaluator&quot;),s=t(&quot;./create_i_derivative_evaluator&quot;),l=t(&quot;./create_j_derivative_evaluator&quot;);e.exports=function(t){var e=t._a,r=t._b,c=e.length,u=r.length,f=t.aaxis,h=t.baxis,p=e[0],d=e[c-1],g=r[0],m=r[u-1],v=e[e.length-1]-e[0],y=r[r.length-1]-r[0],x=v*n.RELATIVE_CULL_TOLERANCE,b=y*n.RELATIVE_CULL_TOLERANCE;p-=x,d+=x,g-=b,m+=b,t.isVisible=function(t,e){return t&gt;p&amp;&amp;t&lt;d&amp;&amp;e&gt;g&amp;&amp;e&lt;m},t.isOccluded=function(t,e){return t&lt;p||t&gt;d||e&lt;g||e&gt;m},t.setScale=function(){var e=t._x,r=t._y,n=a(t._xctrl,t._yctrl,e,r,f.smoothing,h.smoothing);t._xctrl=n[0],t._yctrl=n[1],t.evalxy=o([t._xctrl,t._yctrl],c,u,f.smoothing,h.smoothing),t.dxydi=s([t._xctrl,t._yctrl],f.smoothing,h.smoothing),t.dxydj=l([t._xctrl,t._yctrl],f.smoothing,h.smoothing)},t.i2a=function(t){var r=Math.max(0,Math.floor(t[0]),c-2),n=t[0]-r;return(1-n)*e[r]+n*e[r+1]},t.j2b=function(t){var e=Math.max(0,Math.floor(t[1]),c-2),n=t[1]-e;return(1-n)*r[e]+n*r[e+1]},t.ij2ab=function(e){return[t.i2a(e[0]),t.j2b(e[1])]},t.a2i=function(t){var r=Math.max(0,Math.min(i(t,e),c-2)),n=e[r],a=e[r+1];return Math.max(0,Math.min(c-1,r+(t-n)/(a-n)))},t.b2j=function(t){var e=Math.max(0,Math.min(i(t,r),u-2)),n=r[e],a=r[e+1];return Math.max(0,Math.min(u-1,e+(t-n)/(a-n)))},t.ab2ij=function(e){return[t.a2i(e[0]),t.b2j(e[1])]},t.i2c=function(e,r){return t.evalxy([],e,r)},t.ab2xy=function(n,i,a){if(!a&amp;&amp;(n&lt;e[0]||n&gt;e[c-1]|i&lt;r[0]||i&gt;r[u-1]))return[!1,!1];var o=t.a2i(n),s=t.b2j(i),l=t.evalxy([],o,s);if(a){var f,h,p,d,g=0,m=0,v=[];n&lt;e[0]?(f=0,h=0,g=(n-e[0])/(e[1]-e[0])):n&gt;e[c-1]?(f=c-2,h=1,g=(n-e[c-1])/(e[c-1]-e[c-2])):h=o-(f=Math.max(0,Math.min(c-2,Math.floor(o)))),i&lt;r[0]?(p=0,d=0,m=(i-r[0])/(r[1]-r[0])):i&gt;r[u-1]?(p=u-2,d=1,m=(i-r[u-1])/(r[u-1]-r[u-2])):d=s-(p=Math.max(0,Math.min(u-2,Math.floor(s)))),g&amp;&amp;(t.dxydi(v,f,p,h,d),l[0]+=v[0]*g,l[1]+=v[1]*g),m&amp;&amp;(t.dxydj(v,f,p,h,d),l[0]+=v[0]*m,l[1]+=v[1]*m)}return l},t.c2p=function(t,e,r){return[e.c2p(t[0]),r.c2p(t[1])]},t.p2x=function(t,e,r){return[e.p2c(t[0]),r.p2c(t[1])]},t.dadi=function(t){var r=Math.max(0,Math.min(e.length-2,t));return e[r+1]-e[r]},t.dbdj=function(t){var e=Math.max(0,Math.min(r.length-2,t));return r[e+1]-r[e]},t.dxyda=function(e,r,n,i){var a=t.dxydi(null,e,r,n,i),o=t.dadi(e,n);return[a[0]/o,a[1]/o]},t.dxydb=function(e,r,n,i){var a=t.dxydj(null,e,r,n,i),o=t.dbdj(r,i);return[a[0]/o,a[1]/o]},t.dxyda_rough=function(e,r,n){var i=v*(n||.1),a=t.ab2xy(e+i,r,!0),o=t.ab2xy(e-i,r,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dxydb_rough=function(e,r,n){var i=y*(n||.1),a=t.ab2xy(e,r+i,!0),o=t.ab2xy(e,r-i,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dpdx=function(t){return t._m},t.dpdy=function(t){return t._m}}},{&quot;../../lib/search&quot;:798,&quot;./compute_control_points&quot;:974,&quot;./constants&quot;:975,&quot;./create_i_derivative_evaluator&quot;:976,&quot;./create_j_derivative_evaluator&quot;:977,&quot;./create_spline_evaluator&quot;:978}],987:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r){var i,a,o,s=[],l=[],c=t[0].length,u=t.length;function f(e,r){var n,i=0,a=0;return e&gt;0&amp;&amp;void 0!==(n=t[r][e-1])&amp;&amp;(a++,i+=n),e&lt;c-1&amp;&amp;void 0!==(n=t[r][e+1])&amp;&amp;(a++,i+=n),r&gt;0&amp;&amp;void 0!==(n=t[r-1][e])&amp;&amp;(a++,i+=n),r&lt;u-1&amp;&amp;void 0!==(n=t[r+1][e])&amp;&amp;(a++,i+=n),i/Math.max(1,a)}var h,p,d,g,m,v,y,x,b,_,w,T=0;for(i=0;i&lt;c;i++)for(a=0;a&lt;u;a++)void 0===t[a][i]&amp;&amp;(s.push(i),l.push(a),t[a][i]=f(i,a)),T=Math.max(T,Math.abs(t[a][i]));if(!s.length)return t;var k=0,M=0,A=s.length;do{for(k=0,o=0;o&lt;A;o++){i=s[o],a=l[o];var S,E,C,L,I,P,z=0,O=0;0===i?(C=e[I=Math.min(c-1,2)],L=e[1],S=t[a][I],O+=(E=t[a][1])+(E-S)*(e[0]-L)/(L-C),z++):i===c-1&amp;&amp;(C=e[I=Math.max(0,c-3)],L=e[c-2],S=t[a][I],O+=(E=t[a][c-2])+(E-S)*(e[c-1]-L)/(L-C),z++),(0===i||i===c-1)&amp;&amp;a&gt;0&amp;&amp;a&lt;u-1&amp;&amp;(h=r[a+1]-r[a],O+=((p=r[a]-r[a-1])*t[a+1][i]+h*t[a-1][i])/(p+h),z++),0===a?(C=r[P=Math.min(u-1,2)],L=r[1],S=t[P][i],O+=(E=t[1][i])+(E-S)*(r[0]-L)/(L-C),z++):a===u-1&amp;&amp;(C=r[P=Math.max(0,u-3)],L=r[u-2],S=t[P][i],O+=(E=t[u-2][i])+(E-S)*(r[u-1]-L)/(L-C),z++),(0===a||a===u-1)&amp;&amp;i&gt;0&amp;&amp;i&lt;c-1&amp;&amp;(h=e[i+1]-e[i],O+=((p=e[i]-e[i-1])*t[a][i+1]+h*t[a][i-1])/(p+h),z++),z?O/=z:(d=e[i+1]-e[i],g=e[i]-e[i-1],x=(m=r[a+1]-r[a])*(v=r[a]-r[a-1])*(m+v),O=((y=d*g*(d+g))*(v*t[a+1][i]+m*t[a-1][i])+x*(g*t[a][i+1]+d*t[a][i-1]))/(x*(g+d)+y*(v+m))),k+=(_=(b=O-t[a][i])/T)*_,w=z?0:.85,t[a][i]+=b*(1+w)}k=Math.sqrt(k)}while(M++&lt;100&amp;&amp;k&gt;1e-5);return n.log(&quot;Smoother converged to&quot;,k,&quot;after&quot;,M,&quot;iterations&quot;),t}},{&quot;../../lib&quot;:778}],988:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArray1D;e.exports=function(t,e,r){var i=r(&quot;x&quot;),a=i&amp;&amp;i.length,o=r(&quot;y&quot;),s=o&amp;&amp;o.length;if(!a&amp;&amp;!s)return!1;if(e._cheater=!i,a&amp;&amp;!n(i)||s&amp;&amp;!n(o))e._length=null;else{var l=a?i.length:1/0;s&amp;&amp;(l=Math.min(l,o.length)),e.a&amp;&amp;e.a.length&amp;&amp;(l=Math.min(l,e.a.length)),e.b&amp;&amp;e.b.length&amp;&amp;(l=Math.min(l,e.b.length)),e._length=l}return!0}},{&quot;../../lib&quot;:778}],989:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../scattergeo/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/color/attributes&quot;).defaultLine,l=t(&quot;../../lib/extend&quot;).extendFlat,c=i.marker.line;e.exports=l({locations:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},locationmode:i.locationmode,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},geojson:l({},i.geojson,{}),featureidkey:i.featureidkey,text:l({},i.text,{}),hovertext:l({},i.hovertext,{}),marker:{line:{color:l({},c.color,{dflt:s}),width:l({},c.width,{dflt:1}),editType:&quot;calc&quot;},opacity:{valType:&quot;number&quot;,arrayOk:!0,min:0,max:1,dflt:1,editType:&quot;style&quot;},editType:&quot;calc&quot;},selected:{marker:{opacity:i.selected.marker.opacity,editType:&quot;plot&quot;},editType:&quot;plot&quot;},unselected:{marker:{opacity:i.unselected.marker.opacity,editType:&quot;plot&quot;},editType:&quot;plot&quot;},hoverinfo:l({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;location&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n(),showlegend:l({},o.showlegend,{dflt:!1})},a(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/color/attributes&quot;:642,&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scattergeo/attributes&quot;:1229}],990:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../components/colorscale/calc&quot;),o=t(&quot;../scatter/arrays_to_calcdata&quot;),s=t(&quot;../scatter/calc_selection&quot;);function l(t){return t&amp;&amp;&quot;string&quot;==typeof t}e.exports=function(t,e){var r,c=e._length,u=new Array(c);r=e.geojson?function(t){return l(t)||n(t)}:l;for(var f=0;f&lt;c;f++){var h=u[f]={},p=e.locations[f],d=e.z[f];r(p)&amp;&amp;n(d)?(h.loc=p,h.z=d):(h.loc=null,h.z=i),h.index=f}return o(u,e),a(t,e,{vals:e.z,containerStr:&quot;&quot;,cLetter:&quot;z&quot;}),s(u,e),u}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../constants/numerical&quot;:753,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc_selection&quot;:1189,&quot;fast-isnumeric&quot;:241}],991:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;locations&quot;),c=s(&quot;z&quot;);if(l&amp;&amp;l.length&amp;&amp;n.isArrayOrTypedArray(c)&amp;&amp;c.length){e._length=Math.min(l.length,c.length);var u,f=s(&quot;geojson&quot;);(&quot;string&quot;==typeof f&amp;&amp;&quot;&quot;!==f||n.isPlainObject(f))&amp;&amp;(u=&quot;geojson-id&quot;),&quot;geojson-id&quot;===s(&quot;locationmode&quot;,u)&amp;&amp;s(&quot;featureidkey&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;marker.line.width&quot;)&amp;&amp;s(&quot;marker.line.color&quot;),s(&quot;marker.opacity&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),n.coerceSelectionMarkerOpacity(e,s)}else e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:989}],992:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){t.location=e.location,t.z=e.z;var a=n[i];return a.fIn&amp;&amp;a.fIn.properties&amp;&amp;(t.properties=a.fIn.properties),t.ct=a.ct,t}},{}],993:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../lib&quot;).fillText;e.exports=function(t,e,r){var o,s,l,c,u=t.cd,f=u[0].trace,h=t.subplot,p=[e,r],d=[e+360,r];for(s=0;s&lt;u.length;s++)if(c=!1,(o=u[s])._polygons){for(l=0;l&lt;o._polygons.length;l++)o._polygons[l].contains(p)&amp;&amp;(c=!c),o._polygons[l].contains(d)&amp;&amp;(c=!c);if(c)break}if(c&amp;&amp;o)return t.x0=t.x1=t.xa.c2p(o.ct),t.y0=t.y1=t.ya.c2p(o.ct),t.index=o.index,t.location=o.loc,t.z=o.z,t.zLabel=n.tickText(h.mockAxis,h.mockAxis.c2l(o.z),&quot;hover&quot;).text,t.hovertemplate=o.hovertemplate,function(t,e,r){if(e.hovertemplate)return;var n=r.hi||e.hoverinfo,o=String(r.loc),s=&quot;all&quot;===n?i.hoverinfo.flags:n.split(&quot;+&quot;),l=-1!==s.indexOf(&quot;name&quot;),c=-1!==s.indexOf(&quot;location&quot;),u=-1!==s.indexOf(&quot;z&quot;),f=-1!==s.indexOf(&quot;text&quot;),h=[];!l&amp;&amp;c?t.nameOverride=o:(l&amp;&amp;(t.nameOverride=e.name),c&amp;&amp;h.push(o));u&amp;&amp;h.push(t.zLabel);f&amp;&amp;a(r,e,h);t.extraText=h.join(&quot;&lt;br&gt;&quot;)}(t,f,o),[t]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:989}],994:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;./calc&quot;),calcGeoJSON:t(&quot;./plot&quot;).calcGeoJSON,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;choropleth&quot;,basePlotModule:t(&quot;../../plots/geo&quot;),categories:[&quot;geo&quot;,&quot;noOpacity&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/geo&quot;:860,&quot;../heatmap/colorbar&quot;:1068,&quot;./attributes&quot;:989,&quot;./calc&quot;:990,&quot;./defaults&quot;:991,&quot;./event_data&quot;:992,&quot;./hover&quot;:993,&quot;./plot&quot;:995,&quot;./select&quot;:996,&quot;./style&quot;:997}],995:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/geo_location_utils&quot;),o=t(&quot;../../lib/topojson_utils&quot;).getTopojsonFeatures,s=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,l=t(&quot;./style&quot;).style;e.exports={calcGeoJSON:function(t,e){for(var r=t[0].trace,n=e[r.geo],i=n._subplot,l=r.locationmode,c=r._length,u=&quot;geojson-id&quot;===l?a.extractTraceFeature(t):o(r,i.topojson),f=[],h=[],p=0;p&lt;c;p++){var d=t[p],g=&quot;geojson-id&quot;===l?d.fOut:a.locationToFeature(l,d.loc,u);if(g){d.geojson=g,d.ct=g.properties.ct,d._polygons=a.feature2polygons(g);var m=a.computeBbox(g);f.push(m[0],m[2]),h.push(m[1],m[3])}else d.geojson=null}if(&quot;geojson&quot;===n.fitbounds&amp;&amp;&quot;geojson-id&quot;===l){var v=a.computeBbox(a.getTraceGeojson(r));f=[v[0],v[2]],h=[v[1],v[3]]}var y={padded:!0};r._extremes.lon=s(n.lonaxis._ax,f,y),r._extremes.lat=s(n.lataxis._ax,h,y)},plot:function(t,e,r){var a=e.layers.backplot.select(&quot;.choroplethlayer&quot;);i.makeTraceGroups(a,r,&quot;trace choropleth&quot;).each((function(e){var r=n.select(this).selectAll(&quot;path.choroplethlocation&quot;).data(i.identity);r.enter().append(&quot;path&quot;).classed(&quot;choroplethlocation&quot;,!0),r.exit().remove(),l(t,e)}))}}},{&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/topojson_utils&quot;:806,&quot;../../plots/cartesian/autorange&quot;:827,&quot;./style&quot;:997,d3:169}],996:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[];if(!1===e)for(r=0;r&lt;s.length;r++)s[r].selected=0;else for(r=0;r&lt;s.length;r++)(i=(n=s[r]).ct)&amp;&amp;(a=l.c2p(i),o=c.c2p(i),e.contains([a,o],null,r,t)?(u.push({pointNumber:r,lon:i[0],lat:i[1]}),n.selected=1):n.selected=0);return u}},{}],997:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../components/colorscale&quot;);function s(t,e){var r=e[0].trace,s=e[0].node3.selectAll(&quot;.choroplethlocation&quot;),l=r.marker||{},c=l.line||{},u=o.makeColorScaleFuncFromTrace(r);s.each((function(t){n.select(this).attr(&quot;fill&quot;,u(t.z)).call(i.stroke,t.mlc||c.color).call(a.dashLine,&quot;&quot;,t.mlw||c.width||0).style(&quot;opacity&quot;,l.opacity)})),a.selectedPointStyle(s,r,t)}e.exports={style:function(t,e){e&amp;&amp;s(t,e)},styleOnSelect:function(t,e){var r=e[0].node3,n=e[0].trace;n.selectedpoints?a.selectedPointStyle(r.selectAll(&quot;.choroplethlocation&quot;),n,t):s(t,e)}}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,d3:169}],998:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../choropleth/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({locations:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},geojson:{valType:&quot;any&quot;,editType:&quot;calc&quot;},featureidkey:s({},n.featureidkey,{}),below:{valType:&quot;string&quot;,editType:&quot;plot&quot;},text:n.text,hovertext:n.hovertext,marker:{line:{color:s({},n.marker.line.color,{editType:&quot;plot&quot;}),width:s({},n.marker.line.width,{editType:&quot;plot&quot;}),editType:&quot;calc&quot;},opacity:s({},n.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;calc&quot;},selected:{marker:{opacity:s({},n.selected.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},editType:&quot;plot&quot;},unselected:{marker:{opacity:s({},n.unselected.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},editType:&quot;plot&quot;},hoverinfo:n.hoverinfo,hovertemplate:a({},{keys:[&quot;properties&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})},i(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../choropleth/attributes&quot;:989}],999:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib/geojson_utils&quot;).makeBlank,l=t(&quot;../../lib/geo_location_utils&quot;);function c(t){var e,r=t[0].trace,n=r._opts;if(r.selectedpoints){for(var a=o.makeSelectedPointStyleFns(r),s=0;s&lt;t.length;s++){var l=t[s];l.fOut&amp;&amp;(l.fOut.properties.mo2=a.selectedOpacityFn(l))}e={type:&quot;identity&quot;,property:&quot;mo2&quot;}}else e=i.isArrayOrTypedArray(r.marker.opacity)?{type:&quot;identity&quot;,property:&quot;mo&quot;}:r.marker.opacity;return i.extendFlat(n.fill.paint,{&quot;fill-opacity&quot;:e}),i.extendFlat(n.line.paint,{&quot;line-opacity&quot;:e}),n}e.exports={convert:function(t){var e=t[0].trace,r=!0===e.visible&amp;&amp;0!==e._length,o={layout:{visibility:&quot;none&quot;},paint:{}},u={layout:{visibility:&quot;none&quot;},paint:{}},f=e._opts={fill:o,line:u,geojson:s()};if(!r)return f;var h=l.extractTraceFeature(t);if(!h)return f;var p,d,g,m=a.makeColorScaleFuncFromTrace(e),v=e.marker,y=v.line||{};i.isArrayOrTypedArray(v.opacity)&amp;&amp;(p=function(t){var e=t.mo;return n(e)?+i.constrain(e,0,1):0}),i.isArrayOrTypedArray(y.color)&amp;&amp;(d=function(t){return t.mlc}),i.isArrayOrTypedArray(y.width)&amp;&amp;(g=function(t){return t.mlw});for(var x=0;x&lt;t.length;x++){var b=t[x],_=b.fOut;if(_){var w=_.properties;w.fc=m(b.z),p&amp;&amp;(w.mo=p(b)),d&amp;&amp;(w.mlc=d(b)),g&amp;&amp;(w.mlw=g(b)),b.ct=w.ct,b._polygons=l.feature2polygons(_)}}var T=p?{type:&quot;identity&quot;,property:&quot;mo&quot;}:v.opacity;return i.extendFlat(o.paint,{&quot;fill-color&quot;:{type:&quot;identity&quot;,property:&quot;fc&quot;},&quot;fill-opacity&quot;:T}),i.extendFlat(u.paint,{&quot;line-color&quot;:d?{type:&quot;identity&quot;,property:&quot;mlc&quot;}:y.color,&quot;line-width&quot;:g?{type:&quot;identity&quot;,property:&quot;mlw&quot;}:y.width,&quot;line-opacity&quot;:T}),o.layout.visibility=&quot;visible&quot;,u.layout.visibility=&quot;visible&quot;,f.geojson={type:&quot;FeatureCollection&quot;,features:h},c(t),f},convertOnSelect:c}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/geojson_utils&quot;:772,&quot;fast-isnumeric&quot;:241}],1e3:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;locations&quot;),c=s(&quot;z&quot;),u=s(&quot;geojson&quot;);n.isArrayOrTypedArray(l)&amp;&amp;l.length&amp;&amp;n.isArrayOrTypedArray(c)&amp;&amp;c.length&amp;&amp;(&quot;string&quot;==typeof u&amp;&amp;&quot;&quot;!==u||n.isPlainObject(u))?(s(&quot;featureidkey&quot;),e._length=Math.min(l.length,c.length),s(&quot;below&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;marker.line.width&quot;)&amp;&amp;s(&quot;marker.line.color&quot;),s(&quot;marker.opacity&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),n.coerceSelectionMarkerOpacity(e,s)):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:998}],1001:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;../choropleth/calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;../choropleth/hover&quot;),eventData:t(&quot;../choropleth/event_data&quot;),selectPoints:t(&quot;../choropleth/select&quot;),styleOnSelect:function(t,e){e&amp;&amp;e[0].trace._glTrace.updateOnSelect(e)},getBelow:function(t,e){for(var r=e.getMapLayers(),n=r.length-2;n&gt;=0;n--){var i=r[n].id;if(&quot;string&quot;==typeof i&amp;&amp;0===i.indexOf(&quot;water&quot;))for(var a=n+1;a&lt;r.length;a++)if(&quot;string&quot;==typeof(i=r[a].id)&amp;&amp;-1===i.indexOf(&quot;plotly-&quot;))return i}},moduleType:&quot;trace&quot;,name:&quot;choroplethmapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;noOpacity&quot;,&quot;showLegend&quot;],meta:{hr_name:&quot;choropleth_mapbox&quot;}}},{&quot;../../plots/mapbox&quot;:885,&quot;../choropleth/calc&quot;:990,&quot;../choropleth/event_data&quot;:992,&quot;../choropleth/hover&quot;:993,&quot;../choropleth/select&quot;:996,&quot;../heatmap/colorbar&quot;:1068,&quot;./attributes&quot;:998,&quot;./defaults&quot;:1e3,&quot;./plot&quot;:1002}],1002:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;).convert,i=t(&quot;./convert&quot;).convertOnSelect,a=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix;function o(t,e){this.type=&quot;choroplethmapbox&quot;,this.subplot=t,this.uid=e,this.sourceId=&quot;source-&quot;+e,this.layerList=[[&quot;fill&quot;,a+e+&quot;-fill&quot;],[&quot;line&quot;,a+e+&quot;-line&quot;]],this.below=null}var s=o.prototype;s.update=function(t){this._update(n(t))},s.updateOnSelect=function(t){this._update(i(t))},s._update=function(t){var e=this.subplot,r=this.layerList,n=e.belowLookup[&quot;trace-&quot;+this.uid];e.map.getSource(this.sourceId).setData(t.geojson),n!==this.below&amp;&amp;(this._removeLayers(),this._addLayers(t,n),this.below=n);for(var i=0;i&lt;r.length;i++){var a=r[i],o=a[0],s=a[1],l=t[o];e.setOptions(s,&quot;setLayoutProperty&quot;,l.layout),&quot;visible&quot;===l.layout.visibility&amp;&amp;e.setOptions(s,&quot;setPaintProperty&quot;,l.paint)}},s._addLayers=function(t,e){for(var r=this.subplot,n=this.layerList,i=this.sourceId,a=0;a&lt;n.length;a++){var o=n[a],s=o[0],l=t[s];r.addLayer({type:s,id:o[1],source:i,layout:l.layout,paint:l.paint},e)}},s._removeLayers=function(){for(var t=this.subplot.map,e=this.layerList,r=e.length-1;r&gt;=0;r--)t.removeLayer(e[r][1])},s.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new o(t,r.uid),a=i.sourceId,s=n(e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid];return t.map.addSource(a,{type:&quot;geojson&quot;,data:s.geojson}),i._addLayers(s,l),e[0].trace._glTrace=i,i}},{&quot;../../plots/mapbox/constants&quot;:883,&quot;./convert&quot;:999}],1003:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../mesh3d/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},u:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},v:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},w:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;absolute&quot;],editType:&quot;calc&quot;,dflt:&quot;scaled&quot;},sizeref:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0},anchor:{valType:&quot;enumerated&quot;,editType:&quot;calc&quot;,values:[&quot;tip&quot;,&quot;tail&quot;,&quot;cm&quot;,&quot;center&quot;],dflt:&quot;cm&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertemplate:i({editType:&quot;calc&quot;},{keys:[&quot;norm&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})};s(l,n(&quot;&quot;,{colorAttr:&quot;u/v/w norm&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}));[&quot;opacity&quot;,&quot;lightposition&quot;,&quot;lighting&quot;].forEach((function(t){l[t]=a[t]})),l.hoverinfo=s({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;norm&quot;,&quot;text&quot;,&quot;name&quot;],dflt:&quot;x+y+z+norm+text+name&quot;}),l.transforms=void 0,e.exports=l},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../mesh3d/attributes&quot;:1128}],1004:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){for(var r=e.u,i=e.v,a=e.w,o=Math.min(e.x.length,e.y.length,e.z.length,r.length,i.length,a.length),s=-1/0,l=1/0,c=0;c&lt;o;c++){var u=r[c],f=i[c],h=a[c],p=Math.sqrt(u*u+f*f+h*h);s=Math.max(s,p),l=Math.min(l,p)}e._len=o,e._normMax=s,n(t,e,{vals:[l,s],containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651}],1005:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-cone3d&quot;),i=t(&quot;gl-cone3d&quot;).createConeMesh,a=t(&quot;../../lib&quot;).simpleMap,o=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,s=t(&quot;../../components/colorscale&quot;).extractOpts,l=t(&quot;../../plots/gl3d/zip3&quot;);function c(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var u=c.prototype;u.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index,r=this.data.x[e],n=this.data.y[e],i=this.data.z[e],a=this.data.u[e],o=this.data.v[e],s=this.data.w[e];t.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return Array.isArray(l)&amp;&amp;void 0!==l[e]?t.textLabel=l[e]:l&amp;&amp;(t.textLabel=l),!0}};var f={xaxis:0,yaxis:1,zaxis:2},h={tip:1,tail:0,cm:.25,center:.5},p={tip:1,tail:1,cm:.75,center:.5};function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,c={};function u(t,e){var n=r[e],o=i[f[e]];return a(t,(function(t){return n.d2l(t)*o}))}c.vectors=l(u(e.u,&quot;xaxis&quot;),u(e.v,&quot;yaxis&quot;),u(e.w,&quot;zaxis&quot;),e._len),c.positions=l(u(e.x,&quot;xaxis&quot;),u(e.y,&quot;yaxis&quot;),u(e.z,&quot;zaxis&quot;),e._len);var d=s(e);c.colormap=o(e),c.vertexIntensityBounds=[d.min/e._normMax,d.max/e._normMax],c.coneOffset=h[e.anchor],&quot;scaled&quot;===e.sizemode?c.coneSize=e.sizeref||.5:c.coneSize=e.sizeref&amp;&amp;e._normMax?e.sizeref/e._normMax:.5;var g=n(c),m=e.lightposition;return g.lightPosition=[m.x,m.y,m.z],g.ambient=e.lighting.ambient,g.diffuse=e.lighting.diffuse,g.specular=e.lighting.specular,g.roughness=e.lighting.roughness,g.fresnel=e.lighting.fresnel,g.opacity=e.opacity,e._pad=p[e.anchor]*g.vectorScale*g.coneScale*e._normMax,g}u.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new c(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../plots/gl3d/zip3&quot;:881,&quot;gl-cone3d&quot;:260}],1006:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;u&quot;),c=s(&quot;v&quot;),u=s(&quot;w&quot;),f=s(&quot;x&quot;),h=s(&quot;y&quot;),p=s(&quot;z&quot;);l&amp;&amp;l.length&amp;&amp;c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length&amp;&amp;p&amp;&amp;p.length?(s(&quot;sizeref&quot;),s(&quot;sizemode&quot;),s(&quot;anchor&quot;),s(&quot;lighting.ambient&quot;),s(&quot;lighting.diffuse&quot;),s(&quot;lighting.specular&quot;),s(&quot;lighting.roughness&quot;),s(&quot;lighting.fresnel&quot;),s(&quot;lightposition.x&quot;),s(&quot;lightposition.y&quot;),s(&quot;lightposition.z&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:1003}],1007:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;cone&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;),plot:t(&quot;./convert&quot;),eventData:function(t,e){return t.norm=e.traceCoordinate[6],t},meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1003,&quot;./calc&quot;:1004,&quot;./convert&quot;:1005,&quot;./defaults&quot;:1006}],1008:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../components/drawing/attributes&quot;).dash,s=t(&quot;../../plots/font_attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=t(&quot;../../constants/filter_ops&quot;),u=c.COMPARISON_OPS2,f=c.INTERVAL_OPS,h=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,i.line);e.exports=l({z:n.z,x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,text:n.text,hovertext:n.hovertext,transpose:n.transpose,xtype:n.xtype,ytype:n.ytype,zhoverformat:n.zhoverformat,hovertemplate:n.hovertemplate,hoverongaps:n.hoverongaps,connectgaps:l({},n.connectgaps,{}),fillcolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},autocontour:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:{&quot;contours.start&quot;:void 0,&quot;contours.end&quot;:void 0,&quot;contours.size&quot;:void 0}},ncontours:{valType:&quot;integer&quot;,dflt:15,min:1,editType:&quot;calc&quot;},contours:{type:{valType:&quot;enumerated&quot;,values:[&quot;levels&quot;,&quot;constraint&quot;],dflt:&quot;levels&quot;,editType:&quot;calc&quot;},start:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},end:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},size:{valType:&quot;number&quot;,dflt:null,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},coloring:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;heatmap&quot;,&quot;lines&quot;,&quot;none&quot;],dflt:&quot;fill&quot;,editType:&quot;calc&quot;},showlines:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},showlabels:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},labelfont:s({editType:&quot;plot&quot;,colorEditType:&quot;style&quot;}),labelformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},operation:{valType:&quot;enumerated&quot;,values:[].concat(u).concat(f),dflt:&quot;=&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},editType:&quot;calc&quot;,impliedEdits:{autocontour:!1}},line:{color:l({},h.color,{editType:&quot;style+colorbars&quot;}),width:{valType:&quot;number&quot;,min:0,editType:&quot;style+colorbars&quot;},dash:o,smoothing:l({},h.smoothing,{}),editType:&quot;plot&quot;}},a(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing/attributes&quot;:664,&quot;../../constants/docs&quot;:748,&quot;../../constants/filter_ops&quot;:749,&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;../heatmap/attributes&quot;:1065,&quot;../scatter/attributes&quot;:1187}],1009:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale&quot;),i=t(&quot;../heatmap/calc&quot;),a=t(&quot;./set_contours&quot;),o=t(&quot;./end_plus&quot;);e.exports=function(t,e){var r=i(t,e),s=r[0].z;a(e,s);var l,c=e.contours,u=n.extractOpts(e);if(&quot;heatmap&quot;===c.coloring&amp;&amp;u.auto&amp;&amp;!1===e.autocontour){var f=c.start,h=o(c),p=c.size||1,d=Math.floor((h-f)/p)+1;isFinite(p)||(p=1,d=1);var g=f-p/2;l=[g,g+d*p]}else l=s;return n.calc(t,e,{vals:l,cLetter:&quot;z&quot;}),r}},{&quot;../../components/colorscale&quot;:655,&quot;../heatmap/calc&quot;:1066,&quot;./end_plus&quot;:1019,&quot;./set_contours&quot;:1027}],1010:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n=t[0],i=n.z;switch(e.type){case&quot;levels&quot;:var a=Math.min(i[0][0],i[0][1]);for(r=0;r&lt;t.length;r++){var o=t[r];o.prefixBoundary=!o.edgepaths.length&amp;&amp;(a&gt;o.level||o.starts.length&amp;&amp;a===o.level)}break;case&quot;constraint&quot;:if(n.prefixBoundary=!1,n.edgepaths.length)return;var s=n.x.length,l=n.y.length,c=-1/0,u=1/0;for(r=0;r&lt;l;r++)u=Math.min(u,i[r][0]),u=Math.min(u,i[r][s-1]),c=Math.max(c,i[r][0]),c=Math.max(c,i[r][s-1]);for(r=1;r&lt;s-1;r++)u=Math.min(u,i[0][r]),u=Math.min(u,i[l-1][r]),c=Math.max(c,i[0][r]),c=Math.max(c,i[l-1][r]);var f,h,p=e.value;switch(e._operation){case&quot;&gt;&quot;:p&gt;c&amp;&amp;(n.prefixBoundary=!0);break;case&quot;&lt;&quot;:(p&lt;u||n.starts.length&amp;&amp;p===u)&amp;&amp;(n.prefixBoundary=!0);break;case&quot;[]&quot;:f=Math.min(p[0],p[1]),((h=Math.max(p[0],p[1]))&lt;u||f&gt;c||n.starts.length&amp;&amp;h===u)&amp;&amp;(n.prefixBoundary=!0);break;case&quot;][&quot;:f=Math.min(p[0],p[1]),h=Math.max(p[0],p[1]),f&lt;u&amp;&amp;h&gt;c&amp;&amp;(n.prefixBoundary=!0)}}}},{}],1011:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale&quot;),i=t(&quot;./make_color_map&quot;),a=t(&quot;./end_plus&quot;);e.exports={min:&quot;zmin&quot;,max:&quot;zmax&quot;,calc:function(t,e,r){var o=e.contours,s=e.line,l=o.size||1,c=o.coloring,u=i(e,{isColorbar:!0});if(&quot;heatmap&quot;===c){var f=n.extractOpts(e);r._fillgradient=f.reversescale?n.flipScale(f.colorscale):f.colorscale,r._zrange=[f.min,f.max]}else&quot;fill&quot;===c&amp;&amp;(r._fillcolor=u);r._line={color:&quot;lines&quot;===c?u:s.color,width:!1!==o.showlines?s.width:0,dash:s.dash},r._levels={start:o.start,end:a(o),size:l}}}},{&quot;../../components/colorscale&quot;:655,&quot;./end_plus&quot;:1019,&quot;./make_color_map&quot;:1024}],1012:[function(t,e,r){&quot;use strict&quot;;e.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],1013:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./label_defaults&quot;),a=t(&quot;../../components/color&quot;),o=a.addOpacity,s=a.opacity,l=t(&quot;../../constants/filter_ops&quot;),c=l.CONSTRAINT_REDUCTION,u=l.COMPARISON_OPS2;e.exports=function(t,e,r,a,l,f){var h,p,d,g=e.contours,m=r(&quot;contours.operation&quot;);(g._operation=c[m],function(t,e){var r;-1===u.indexOf(e.operation)?(t(&quot;contours.value&quot;,[0,1]),Array.isArray(e.value)?e.value.length&gt;2?e.value=e.value.slice(2):0===e.length?e.value=[0,1]:e.length&lt;2?(r=parseFloat(e.value[0]),e.value=[r,r+1]):e.value=[parseFloat(e.value[0]),parseFloat(e.value[1])]:n(e.value)&amp;&amp;(r=parseFloat(e.value),e.value=[r,r+1])):(t(&quot;contours.value&quot;,0),n(e.value)||(Array.isArray(e.value)?e.value=parseFloat(e.value[0]):e.value=0))}(r,g),&quot;=&quot;===m?h=g.showlines=!0:(h=r(&quot;contours.showlines&quot;),d=r(&quot;fillcolor&quot;,o((t.line||{}).color||l,.5))),h)&amp;&amp;(p=r(&quot;line.color&quot;,d&amp;&amp;s(d)?o(e.fillcolor,1):l),r(&quot;line.width&quot;,2),r(&quot;line.dash&quot;));r(&quot;line.smoothing&quot;),i(r,a,p,f)}},{&quot;../../components/color&quot;:643,&quot;../../constants/filter_ops&quot;:749,&quot;./label_defaults&quot;:1023,&quot;fast-isnumeric&quot;:241}],1014:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/filter_ops&quot;),i=t(&quot;fast-isnumeric&quot;);function a(t,e){var r,a=Array.isArray(e);function o(t){return i(t)?+t:null}return-1!==n.COMPARISON_OPS2.indexOf(t)?r=o(a?e[0]:e):-1!==n.INTERVAL_OPS.indexOf(t)?r=a?[o(e[0]),o(e[1])]:[o(e),o(e)]:-1!==n.SET_OPS.indexOf(t)&amp;&amp;(r=a?e.map(o):[o(e)]),r}function o(t){return function(e){e=a(t,e);var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return{start:r,end:n,size:n-r}}}function s(t){return function(e){return{start:e=a(t,e),end:1/0,size:1/0}}}e.exports={&quot;[]&quot;:o(&quot;[]&quot;),&quot;][&quot;:o(&quot;][&quot;),&quot;&gt;&quot;:s(&quot;&gt;&quot;),&quot;&lt;&quot;:s(&quot;&lt;&quot;),&quot;=&quot;:s(&quot;=&quot;)}},{&quot;../../constants/filter_ops&quot;:749,&quot;fast-isnumeric&quot;:241}],1015:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i=n(&quot;contours.start&quot;),a=n(&quot;contours.end&quot;),o=!1===i||!1===a,s=r(&quot;contours.size&quot;);!(o?e.autocontour=!0:r(&quot;autocontour&quot;,!1))&amp;&amp;s||r(&quot;ncontours&quot;)}},{}],1016:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);function i(t){return n.extendFlat({},t,{edgepaths:n.extendDeep([],t.edgepaths),paths:n.extendDeep([],t.paths),starts:n.extendDeep([],t.starts)})}e.exports=function(t,e){var r,a,o,s=function(t){return t.reverse()},l=function(t){return t};switch(e){case&quot;=&quot;:case&quot;&lt;&quot;:return t;case&quot;&gt;&quot;:for(1!==t.length&amp;&amp;n.warn(&quot;Contour data invalid for the specified inequality operation.&quot;),a=t[0],r=0;r&lt;a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r&lt;a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(r=0;r&lt;a.starts.length;r++)a.starts[r]=s(a.starts[r]);return t;case&quot;][&quot;:var c=s;s=l,l=c;case&quot;[]&quot;:for(2!==t.length&amp;&amp;n.warn(&quot;Contour data invalid for the specified inequality range operation.&quot;),a=i(t[0]),o=i(t[1]),r=0;r&lt;a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r&lt;a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(r=0;r&lt;a.starts.length;r++)a.starts[r]=s(a.starts[r]);for(;o.edgepaths.length;)a.edgepaths.push(l(o.edgepaths.shift()));for(;o.paths.length;)a.paths.push(l(o.paths.shift()));for(;o.starts.length;)a.starts.push(l(o.starts.shift()));return[a]}}},{&quot;../../lib&quot;:778}],1017:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./constraint_defaults&quot;),s=t(&quot;./contours_defaults&quot;),l=t(&quot;./style_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}if(i(t,e,f,u)){a(t,e,u,f),f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;hoverongaps&quot;);var h=&quot;constraint&quot;===f(&quot;contours.type&quot;);f(&quot;connectgaps&quot;,n.isArray1D(e.z)),h?o(t,e,f,u,r):(s(t,e,f,(function(r){return n.coerce2(t,e,c,r)})),l(t,e,f,u))}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../heatmap/xyz_defaults&quot;:1079,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:1008,&quot;./constraint_defaults&quot;:1013,&quot;./contours_defaults&quot;:1015,&quot;./style_defaults&quot;:1029}],1018:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constraint_mapping&quot;),a=t(&quot;./end_plus&quot;);e.exports=function(t,e,r){for(var o=&quot;constraint&quot;===t.type?i[t._operation](t.value):t,s=o.size,l=[],c=a(o),u=r.trace._carpetTrace,f=u?{xaxis:u.aaxis,yaxis:u.baxis,x:r.a,y:r.b}:{xaxis:e.xaxis,yaxis:e.yaxis,x:r.x,y:r.y},h=o.start;h&lt;c;h+=s)if(l.push(n.extendFlat({level:h,crossings:{},starts:[],edgepaths:[],paths:[],z:r.z,smoothing:r.trace.line.smoothing},f)),l.length&gt;1e3){n.warn(&quot;Too many contours, clipping at 1000&quot;,t);break}return l}},{&quot;../../lib&quot;:778,&quot;./constraint_mapping&quot;:1014,&quot;./end_plus&quot;:1019}],1019:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t.end+t.size/1e6}},{}],1020:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constants&quot;);function a(t,e,r,n){return Math.abs(t[0]-e[0])&lt;r&amp;&amp;Math.abs(t[1]-e[1])&lt;n}function o(t,e,r,o,l){var c,u=e.join(&quot;,&quot;),f=t.crossings[u],h=function(t,e,r){var n=0,a=0;t&gt;20&amp;&amp;e?208===t||1114===t?n=0===r[0]?1:-1:a=0===r[1]?1:-1:-1!==i.BOTTOMSTART.indexOf(t)?a=1:-1!==i.LEFTSTART.indexOf(t)?n=1:-1!==i.TOPSTART.indexOf(t)?a=-1:n=-1;return[n,a]}(f,r,e),p=[s(t,e,[-h[0],-h[1]])],d=t.z.length,g=t.z[0].length,m=e.slice(),v=h.slice();for(c=0;c&lt;1e4;c++){if(f&gt;20?(f=i.CHOOSESADDLE[f][(h[0]||h[1])&lt;0?0:1],t.crossings[u]=i.SADDLEREMAINDER[f]):delete t.crossings[u],!(h=i.NEWDELTA[f])){n.log(&quot;Found bad marching index:&quot;,f,e,t.level);break}p.push(s(t,e,h)),e[0]+=h[0],e[1]+=h[1],u=e.join(&quot;,&quot;),a(p[p.length-1],p[p.length-2],o,l)&amp;&amp;p.pop();var y=h[0]&amp;&amp;(e[0]&lt;0||e[0]&gt;g-2)||h[1]&amp;&amp;(e[1]&lt;0||e[1]&gt;d-2);if(e[0]===m[0]&amp;&amp;e[1]===m[1]&amp;&amp;h[0]===v[0]&amp;&amp;h[1]===v[1]||r&amp;&amp;y)break;f=t.crossings[u]}1e4===c&amp;&amp;n.log(&quot;Infinite loop in contour?&quot;);var x,b,_,w,T,k,M,A,S,E,C,L,I,P,z,O=a(p[0],p[p.length-1],o,l),D=0,R=.2*t.smoothing,F=[],B=0;for(c=1;c&lt;p.length;c++)L=p[c],I=p[c-1],P=void 0,z=void 0,P=L[2]-I[2],z=L[3]-I[3],D+=M=Math.sqrt(P*P+z*z),F.push(M);var N=D/F.length*R;function j(t){return p[t%p.length]}for(c=p.length-2;c&gt;=B;c--)if((x=F[c])&lt;N){for(_=0,b=c-1;b&gt;=B&amp;&amp;x+F[b]&lt;N;b--)x+=F[b];if(O&amp;&amp;c===p.length-2)for(_=0;_&lt;b&amp;&amp;x+F[_]&lt;N;_++)x+=F[_];T=c-b+_+1,k=Math.floor((c+b+_+2)/2),w=O||c!==p.length-2?O||-1!==b?T%2?j(k):[(j(k)[0]+j(k+1)[0])/2,(j(k)[1]+j(k+1)[1])/2]:p[0]:p[p.length-1],p.splice(b+1,c-b+1,w),c=b+1,_&amp;&amp;(B=_),O&amp;&amp;(c===p.length-2?p[_]=p[p.length-1]:0===c&amp;&amp;(p[p.length-1]=p[0]))}for(p.splice(0,B),c=0;c&lt;p.length;c++)p[c].length=2;if(!(p.length&lt;2))if(O)p.pop(),t.paths.push(p);else{r||n.log(&quot;Unclosed interior contour?&quot;,t.level,m.join(&quot;,&quot;),p.join(&quot;L&quot;));var U=!1;for(A=0;A&lt;t.edgepaths.length;A++)if(E=t.edgepaths[A],!U&amp;&amp;a(E[0],p[p.length-1],o,l)){p.pop(),U=!0;var V=!1;for(S=0;S&lt;t.edgepaths.length;S++)if(a((C=t.edgepaths[S])[C.length-1],p[0],o,l)){V=!0,p.shift(),t.edgepaths.splice(A,1),S===A?t.paths.push(p.concat(C)):(S&gt;A&amp;&amp;S--,t.edgepaths[S]=C.concat(p,E));break}V||(t.edgepaths[A]=p.concat(E))}for(A=0;A&lt;t.edgepaths.length&amp;&amp;!U;A++)a((E=t.edgepaths[A])[E.length-1],p[0],o,l)&amp;&amp;(p.shift(),t.edgepaths[A]=E.concat(p),U=!0);U||t.edgepaths.push(p)}}function s(t,e,r){var n=e[0]+Math.max(r[0],0),i=e[1]+Math.max(r[1],0),a=t.z[i][n],o=t.xaxis,s=t.yaxis;if(r[1]){var l=(t.level-a)/(t.z[i][n+1]-a);return[o.c2p((1-l)*t.x[n]+l*t.x[n+1],!0),s.c2p(t.y[i],!0),n+l,i]}var c=(t.level-a)/(t.z[i+1][n]-a);return[o.c2p(t.x[n],!0),s.c2p((1-c)*t.y[i]+c*t.y[i+1],!0),n,i+c]}e.exports=function(t,e,r){var i,a,s,l;for(e=e||.01,r=r||.01,a=0;a&lt;t.length;a++){for(s=t[a],l=0;l&lt;s.starts.length;l++)o(s,s.starts[l],&quot;edge&quot;,e,r);for(i=0;Object.keys(s.crossings).length&amp;&amp;i&lt;1e4;)i++,o(s,Object.keys(s.crossings)[0].split(&quot;,&quot;).map(Number),void 0,e,r);1e4===i&amp;&amp;n.log(&quot;Infinite loop in contour?&quot;)}}},{&quot;../../lib&quot;:778,&quot;./constants&quot;:1012}],1021:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../heatmap/hover&quot;);e.exports=function(t,e,r,a,o){var s=i(t,e,r,a,o,!0);return s&amp;&amp;s.forEach((function(t){var e=t.trace;&quot;constraint&quot;===e.contours.type&amp;&amp;(e.fillcolor&amp;&amp;n.opacity(e.fillcolor)?t.color=n.addOpacity(e.fillcolor,1):e.contours.showlines&amp;&amp;n.opacity(e.line.color)&amp;&amp;(t.color=n.addOpacity(e.line.color,1)))})),s}},{&quot;../../components/color&quot;:643,&quot;../heatmap/hover&quot;:1072}],1022:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),colorbar:t(&quot;./colorbar&quot;),hoverPoints:t(&quot;./hover&quot;),moduleType:&quot;trace&quot;,name:&quot;contour&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;contour&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1008,&quot;./calc&quot;:1009,&quot;./colorbar&quot;:1011,&quot;./defaults&quot;:1017,&quot;./hover&quot;:1021,&quot;./plot&quot;:1026,&quot;./style&quot;:1028}],1023:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r,i){if(i||(i={}),t(&quot;contours.showlabels&quot;)){var a=e.font;n.coerceFont(t,&quot;contours.labelfont&quot;,{family:a.family,size:a.size,color:r}),t(&quot;contours.labelformat&quot;)}!1!==i.hasHover&amp;&amp;t(&quot;zhoverformat&quot;)}},{&quot;../../lib&quot;:778}],1024:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/colorscale&quot;),a=t(&quot;./end_plus&quot;);e.exports=function(t){var e=t.contours,r=e.start,o=a(e),s=e.size||1,l=Math.floor((o-r)/s)+1,c=&quot;lines&quot;===e.coloring?0:1,u=i.extractOpts(t);isFinite(s)||(s=1,l=1);var f,h,p=u.reversescale?i.flipScale(u.colorscale):u.colorscale,d=p.length,g=new Array(d),m=new Array(d);if(&quot;heatmap&quot;===e.coloring){var v=u.min,y=u.max;for(h=0;h&lt;d;h++)f=p[h],g[h]=f[0]*(y-v)+v,m[h]=f[1];var x=n.extent([v,y,e.start,e.start+s*(l-1)]),b=x[v&lt;y?0:1],_=x[v&lt;y?1:0];b!==v&amp;&amp;(g.splice(0,0,b),m.splice(0,0,m[0])),_!==y&amp;&amp;(g.push(_),m.push(m[m.length-1]))}else for(h=0;h&lt;d;h++)f=p[h],g[h]=(f[0]*(l+c-1)-c/2)*s+r,m[h]=f[1];return i.makeColorScaleFunc({domain:g,range:m},{noNumericCheck:!0})}},{&quot;../../components/colorscale&quot;:655,&quot;./end_plus&quot;:1019,d3:169}],1025:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);function i(t,e){var r=(e[0][0]&gt;t?0:1)+(e[0][1]&gt;t?0:2)+(e[1][1]&gt;t?0:4)+(e[1][0]&gt;t?0:8);return 5===r||10===r?t&gt;(e[0][0]+e[0][1]+e[1][0]+e[1][1])/4?5===r?713:1114:5===r?104:208:15===r?0:r}e.exports=function(t){var e,r,a,o,s,l,c,u,f,h=t[0].z,p=h.length,d=h[0].length,g=2===p||2===d;for(r=0;r&lt;p-1;r++)for(o=[],0===r&amp;&amp;(o=o.concat(n.BOTTOMSTART)),r===p-2&amp;&amp;(o=o.concat(n.TOPSTART)),e=0;e&lt;d-1;e++)for(a=o.slice(),0===e&amp;&amp;(a=a.concat(n.LEFTSTART)),e===d-2&amp;&amp;(a=a.concat(n.RIGHTSTART)),s=e+&quot;,&quot;+r,l=[[h[r][e],h[r][e+1]],[h[r+1][e],h[r+1][e+1]]],f=0;f&lt;t.length;f++)(c=i((u=t[f]).level,l))&amp;&amp;(u.crossings[s]=c,-1!==a.indexOf(c)&amp;&amp;(u.starts.push([e,r]),g&amp;&amp;-1!==a.indexOf(c,a.indexOf(c)+1)&amp;&amp;u.starts.push([e,r])))}},{&quot;./constants&quot;:1012}],1026:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../components/colorscale&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;../../plots/cartesian/set_convert&quot;),u=t(&quot;../heatmap/plot&quot;),f=t(&quot;./make_crossings&quot;),h=t(&quot;./find_all_paths&quot;),p=t(&quot;./empty_pathinfo&quot;),d=t(&quot;./convert_to_constraints&quot;),g=t(&quot;./close_boundaries&quot;),m=t(&quot;./constants&quot;),v=m.LABELOPTIMIZER;function y(t,e){var r,n,o,s,l,c,u,f=&quot;&quot;,h=0,p=t.edgepaths.map((function(t,e){return e})),d=!0;function g(t){return Math.abs(t[1]-e[2][1])&lt;.01}function m(t){return Math.abs(t[0]-e[0][0])&lt;.01}function v(t){return Math.abs(t[0]-e[2][0])&lt;.01}for(;p.length;){for(c=a.smoothopen(t.edgepaths[h],t.smoothing),f+=d?c:c.replace(/^M/,&quot;L&quot;),p.splice(p.indexOf(h),1),r=t.edgepaths[h][t.edgepaths[h].length-1],s=-1,o=0;o&lt;4;o++){if(!r){i.log(&quot;Missing end?&quot;,h,t);break}for(u=r,Math.abs(u[1]-e[0][1])&lt;.01&amp;&amp;!v(r)?n=e[1]:m(r)?n=e[0]:g(r)?n=e[3]:v(r)&amp;&amp;(n=e[2]),l=0;l&lt;t.edgepaths.length;l++){var y=t.edgepaths[l][0];Math.abs(r[0]-n[0])&lt;.01?Math.abs(r[0]-y[0])&lt;.01&amp;&amp;(y[1]-r[1])*(n[1]-y[1])&gt;=0&amp;&amp;(n=y,s=l):Math.abs(r[1]-n[1])&lt;.01?Math.abs(r[1]-y[1])&lt;.01&amp;&amp;(y[0]-r[0])*(n[0]-y[0])&gt;=0&amp;&amp;(n=y,s=l):i.log(&quot;endpt to newendpt is not vert. or horz.&quot;,r,n,y)}if(r=n,s&gt;=0)break;f+=&quot;L&quot;+n}if(s===t.edgepaths.length){i.log(&quot;unclosed perimeter path&quot;);break}h=s,(d=-1===p.indexOf(h))&amp;&amp;(h=p[0],f+=&quot;Z&quot;)}for(h=0;h&lt;t.paths.length;h++)f+=a.smoothclosed(t.paths[h],t.smoothing);return f}function x(t,e,r,n){var a=e.width/2,o=e.height/2,s=t.x,l=t.y,c=t.theta,u=Math.cos(c)*a,f=Math.sin(c)*a,h=(s&gt;n.center?n.right-s:s-n.left)/(u+Math.abs(Math.sin(c)*o)),p=(l&gt;n.middle?n.bottom-l:l-n.top)/(Math.abs(f)+Math.cos(c)*o);if(h&lt;1||p&lt;1)return 1/0;var d=v.EDGECOST*(1/(h-1)+1/(p-1));d+=v.ANGLECOST*c*c;for(var g=s-u,m=l-f,y=s+u,x=l+f,b=0;b&lt;r.length;b++){var _=r[b],w=Math.cos(_.theta)*_.width/2,T=Math.sin(_.theta)*_.width/2,k=2*i.segmentDistance(g,m,y,x,_.x-w,_.y-T,_.x+w,_.y+T)/(e.height+_.height),M=_.level===e.level,A=M?v.SAMELEVELDISTANCE:1;if(k&lt;=A)return 1/0;d+=v.NEIGHBORCOST*(M?v.SAMELEVELFACTOR:1)/(k-A)}return d}function b(t){var e,r,n=t.trace._emptypoints,i=[],a=t.z.length,o=t.z[0].length,s=[];for(e=0;e&lt;o;e++)s.push(1);for(e=0;e&lt;a;e++)i.push(s.slice());for(e=0;e&lt;n.length;e++)i[(r=n[e])[0]][r[1]]=0;return t.zmask=i,i}r.plot=function(t,e,o,s){var l=e.xaxis,c=e.yaxis;i.makeTraceGroups(s,o,&quot;contour&quot;).each((function(o){var s=n.select(this),v=o[0],x=v.trace,_=v.x,w=v.y,T=x.contours,k=p(T,e,v),M=i.ensureSingle(s,&quot;g&quot;,&quot;heatmapcoloring&quot;),A=[];&quot;heatmap&quot;===T.coloring&amp;&amp;(A=[o]),u(t,e,A,M),f(k),h(k);var S=l.c2p(_[0],!0),E=l.c2p(_[_.length-1],!0),C=c.c2p(w[0],!0),L=c.c2p(w[w.length-1],!0),I=[[S,L],[E,L],[E,C],[S,C]],P=k;&quot;constraint&quot;===T.type&amp;&amp;(P=d(k,T._operation)),function(t,e,r){var n=i.ensureSingle(t,&quot;g&quot;,&quot;contourbg&quot;).selectAll(&quot;path&quot;).data(&quot;fill&quot;===r.coloring?[0]:[]);n.enter().append(&quot;path&quot;),n.exit().remove(),n.attr(&quot;d&quot;,&quot;M&quot;+e.join(&quot;L&quot;)+&quot;Z&quot;).style(&quot;stroke&quot;,&quot;none&quot;)}(s,I,T),function(t,e,r,a){var o=&quot;fill&quot;===a.coloring||&quot;constraint&quot;===a.type&amp;&amp;&quot;=&quot;!==a._operation,s=&quot;M&quot;+r.join(&quot;L&quot;)+&quot;Z&quot;;o&amp;&amp;g(e,a);var l=i.ensureSingle(t,&quot;g&quot;,&quot;contourfill&quot;).selectAll(&quot;path&quot;).data(o?e:[]);l.enter().append(&quot;path&quot;),l.exit().remove(),l.each((function(t){var e=(t.prefixBoundary?s:&quot;&quot;)+y(t,r);e?n.select(this).attr(&quot;d&quot;,e).style(&quot;stroke&quot;,&quot;none&quot;):n.select(this).remove()}))}(s,P,I,T),function(t,e,o,s,l){var c=i.ensureSingle(t,&quot;g&quot;,&quot;contourlines&quot;),u=!1!==l.showlines,f=l.showlabels,h=u&amp;&amp;f,p=r.createLines(c,u||f,e),d=r.createLineClip(c,h,o,s.trace.uid),g=t.selectAll(&quot;g.contourlabels&quot;).data(f?[0]:[]);if(g.exit().remove(),g.enter().append(&quot;g&quot;).classed(&quot;contourlabels&quot;,!0),f){var v=[],y=[];i.clearLocationCache();var x=r.labelFormatter(o,s),b=a.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).call(a.font,l.labelfont),_=e[0].xaxis,w=e[0].yaxis,T=_._length,k=w._length,M=_.range,A=w.range,S=i.aggNums(Math.min,null,s.x),E=i.aggNums(Math.max,null,s.x),C=i.aggNums(Math.min,null,s.y),L=i.aggNums(Math.max,null,s.y),I=Math.max(_.c2p(S,!0),0),P=Math.min(_.c2p(E,!0),T),z=Math.max(w.c2p(L,!0),0),O=Math.min(w.c2p(C,!0),k),D={};M[0]&lt;M[1]?(D.left=I,D.right=P):(D.left=P,D.right=I),A[0]&lt;A[1]?(D.top=z,D.bottom=O):(D.top=O,D.bottom=z),D.middle=(D.top+D.bottom)/2,D.center=(D.left+D.right)/2,v.push([[D.left,D.top],[D.right,D.top],[D.right,D.bottom],[D.left,D.bottom]]);var R=Math.sqrt(T*T+k*k),F=m.LABELDISTANCE*R/Math.max(1,e.length/m.LABELINCREASE);p.each((function(t){var e=r.calcTextOpts(t.level,x,b,o);n.select(this).selectAll(&quot;path&quot;).each((function(){var t=i.getVisibleSegment(this,D,e.height/2);if(t&amp;&amp;!(t.len&lt;(e.width+e.height)*m.LABELMIN))for(var n=Math.min(Math.ceil(t.len/F),m.LABELMAX),a=0;a&lt;n;a++){var o=r.findBestTextLocation(this,t,e,y,D);if(!o)break;r.addLabelData(o,e,y,v)}}))})),b.remove(),r.drawLabels(g,y,o,d,h?v:null)}f&amp;&amp;!u&amp;&amp;p.remove()}(s,k,t,v,T),function(t,e,r,n,o){var s=n.trace,l=r._fullLayout._clips,c=&quot;clip&quot;+s.uid,u=l.selectAll(&quot;#&quot;+c).data(s.connectgaps?[]:[0]);if(u.enter().append(&quot;clipPath&quot;).classed(&quot;contourclip&quot;,!0).attr(&quot;id&quot;,c),u.exit().remove(),!1===s.connectgaps){var p={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:e.xaxis,yaxis:e.yaxis,x:n.x,y:n.y,z:b(n),smoothing:0};f([p]),h([p]),g([p],{type:&quot;levels&quot;}),i.ensureSingle(u,&quot;path&quot;,&quot;&quot;).attr(&quot;d&quot;,(p.prefixBoundary?&quot;M&quot;+o.join(&quot;L&quot;)+&quot;Z&quot;:&quot;&quot;)+y(p,o))}else c=null;a.setClipUrl(t,c,r)}(s,e,t,v,I)}))},r.createLines=function(t,e,r){var n=r[0].smoothing,i=t.selectAll(&quot;g.contourlevel&quot;).data(e?r:[]);if(i.exit().remove(),i.enter().append(&quot;g&quot;).classed(&quot;contourlevel&quot;,!0),e){var o=i.selectAll(&quot;path.openline&quot;).data((function(t){return t.pedgepaths||t.edgepaths}));o.exit().remove(),o.enter().append(&quot;path&quot;).classed(&quot;openline&quot;,!0),o.attr(&quot;d&quot;,(function(t){return a.smoothopen(t,n)})).style(&quot;stroke-miterlimit&quot;,1).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;);var s=i.selectAll(&quot;path.closedline&quot;).data((function(t){return t.ppaths||t.paths}));s.exit().remove(),s.enter().append(&quot;path&quot;).classed(&quot;closedline&quot;,!0),s.attr(&quot;d&quot;,(function(t){return a.smoothclosed(t,n)})).style(&quot;stroke-miterlimit&quot;,1).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;)}return i},r.createLineClip=function(t,e,r,n){var i=e?&quot;clipline&quot;+n:null,o=r._fullLayout._clips.selectAll(&quot;#&quot;+i).data(e?[0]:[]);return o.exit().remove(),o.enter().append(&quot;clipPath&quot;).classed(&quot;contourlineclip&quot;,!0).attr(&quot;id&quot;,i),a.setClipUrl(t,i,r),o},r.labelFormatter=function(t,e){var r=t._fullLayout,n=e.trace,i=n.contours,a={type:&quot;linear&quot;,_id:&quot;ycontour&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;};if(i.labelformat)a.tickformat=i.labelformat,c(a,r);else{var s=o.extractOpts(n);if(s&amp;&amp;s.colorbar&amp;&amp;s.colorbar._axis)a=s.colorbar._axis;else{if(&quot;constraint&quot;===i.type){var u=i.value;Array.isArray(u)?a.range=[u[0],u[u.length-1]]:a.range=[u,u]}else a.range=[i.start,i.end],a.nticks=(i.end-i.start)/i.size;a.range[0]===a.range[1]&amp;&amp;(a.range[1]+=a.range[0]||1),a.nticks||(a.nticks=1e3),c(a,r),l.prepTicks(a),a._tmin=null,a._tmax=null}}return function(t){return l.tickText(a,t).text}},r.calcTextOpts=function(t,e,r,n){var i=e(t);r.text(i).call(s.convertToTspans,n);var o=r.node(),l=a.bBox(o,!0);return{text:i,width:l.width,height:l.height,fontSize:+o.style[&quot;font-size&quot;].replace(&quot;px&quot;,&quot;&quot;),level:t,dy:(l.top+l.bottom)/2}},r.findBestTextLocation=function(t,e,r,n,a){var o,s,l,c,u,f=r.width;e.isClosed?(s=e.len/v.INITIALSEARCHPOINTS,o=e.min+s/2,l=e.max):(s=(e.len-f)/(v.INITIALSEARCHPOINTS+1),o=e.min+s+f/2,l=e.max-(s+f)/2);for(var h=1/0,p=0;p&lt;v.ITERATIONS;p++){for(var d=o;d&lt;l;d+=s){var g=i.getTextLocation(t,e.total,d,f),m=x(g,r,n,a);m&lt;h&amp;&amp;(h=m,u=g,c=d)}if(h&gt;2*v.MAXCOST)break;p&amp;&amp;(s/=2),l=(o=c-s/2)+1.5*s}if(h&lt;=v.MAXCOST)return u},r.addLabelData=function(t,e,r,n){var i=e.fontSize,a=e.width+i/3,o=Math.max(0,e.height-i/3),s=t.x,l=t.y,c=t.theta,u=Math.sin(c),f=Math.cos(c),h=function(t,e){return[s+t*f-e*u,l+t*u+e*f]},p=[h(-a/2,-o/2),h(-a/2,o/2),h(a/2,o/2),h(a/2,-o/2)];r.push({text:e.text,x:s,y:l,dy:e.dy,theta:c,level:e.level,width:a,height:o}),n.push(p)},r.drawLabels=function(t,e,r,a,o){var l=t.selectAll(&quot;text&quot;).data(e,(function(t){return t.text+&quot;,&quot;+t.x+&quot;,&quot;+t.y+&quot;,&quot;+t.theta}));if(l.exit().remove(),l.enter().append(&quot;text&quot;).attr({&quot;data-notex&quot;:1,&quot;text-anchor&quot;:&quot;middle&quot;}).each((function(t){var e=t.x+Math.sin(t.theta)*t.dy,i=t.y-Math.cos(t.theta)*t.dy;n.select(this).text(t.text).attr({x:e,y:i,transform:&quot;rotate(&quot;+180*t.theta/Math.PI+&quot; &quot;+e+&quot; &quot;+i+&quot;)&quot;}).call(s.convertToTspans,r)})),o){for(var c=&quot;&quot;,u=0;u&lt;o.length;u++)c+=&quot;M&quot;+o[u].join(&quot;L&quot;)+&quot;Z&quot;;i.ensureSingle(a,&quot;path&quot;,&quot;&quot;).attr(&quot;d&quot;,c)}}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/set_convert&quot;:848,&quot;../heatmap/plot&quot;:1076,&quot;./close_boundaries&quot;:1010,&quot;./constants&quot;:1012,&quot;./convert_to_constraints&quot;:1016,&quot;./empty_pathinfo&quot;:1018,&quot;./find_all_paths&quot;:1020,&quot;./make_crossings&quot;:1025,d3:169}],1027:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;);function a(t,e,r){var i={type:&quot;linear&quot;,range:[t,e]};return n.autoTicks(i,(e-t)/(r||15)),i}e.exports=function(t,e){var r=t.contours;if(t.autocontour){var o=t.zmin,s=t.zmax;(t.zauto||void 0===o)&amp;&amp;(o=i.aggNums(Math.min,null,e)),(t.zauto||void 0===s)&amp;&amp;(s=i.aggNums(Math.max,null,e));var l=a(o,s,t.ncontours);r.size=l.dtick,r.start=n.tickFirst(l),l.range.reverse(),r.end=n.tickFirst(l),r.start===o&amp;&amp;(r.start+=r.size),r.end===s&amp;&amp;(r.end-=r.size),r.start&gt;r.end&amp;&amp;(r.start=r.end=(r.start+r.end)/2),t._input.contours||(t._input.contours={}),i.extendFlat(t._input.contours,{start:r.start,end:r.end,size:r.size}),t._input.autocontour=!0}else if(&quot;constraint&quot;!==r.type){var c,u=r.start,f=r.end,h=t._input.contours;if(u&gt;f&amp;&amp;(r.start=h.start=f,f=r.end=h.end=u,u=r.start),!(r.size&gt;0))c=u===f?1:a(u,f,t.ncontours).dtick,h.size=r.size=c}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1028:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../heatmap/style&quot;),o=t(&quot;./make_color_map&quot;);e.exports=function(t){var e=n.select(t).selectAll(&quot;g.contour&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.each((function(t){var e=n.select(this),r=t[0].trace,a=r.contours,s=r.line,l=a.size||1,c=a.start,u=&quot;constraint&quot;===a.type,f=!u&amp;&amp;&quot;lines&quot;===a.coloring,h=!u&amp;&amp;&quot;fill&quot;===a.coloring,p=f||h?o(r):null;e.selectAll(&quot;g.contourlevel&quot;).each((function(t){n.select(this).selectAll(&quot;path&quot;).call(i.lineGroupStyle,s.width,f?p(t.level):s.color,s.dash)}));var d=a.labelfont;if(e.selectAll(&quot;g.contourlabels text&quot;).each((function(t){i.font(n.select(this),{family:d.family,size:d.size,color:d.color||(f?p(t.level):s.color)})})),u)e.selectAll(&quot;g.contourfill path&quot;).style(&quot;fill&quot;,r.fillcolor);else if(h){var g;e.selectAll(&quot;g.contourfill path&quot;).style(&quot;fill&quot;,(function(t){return void 0===g&amp;&amp;(g=t.level),p(t.level+.5*l)})),void 0===g&amp;&amp;(g=c),e.selectAll(&quot;g.contourbg path&quot;).style(&quot;fill&quot;,p(g-.5*l))}})),a(t)}},{&quot;../../components/drawing&quot;:665,&quot;../heatmap/style&quot;:1077,&quot;./make_color_map&quot;:1024,d3:169}],1029:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/defaults&quot;),i=t(&quot;./label_defaults&quot;);e.exports=function(t,e,r,a,o){var s,l=r(&quot;contours.coloring&quot;),c=&quot;&quot;;&quot;fill&quot;===l&amp;&amp;(s=r(&quot;contours.showlines&quot;)),!1!==s&amp;&amp;(&quot;lines&quot;!==l&amp;&amp;(c=r(&quot;line.color&quot;,&quot;#000&quot;)),r(&quot;line.width&quot;,.5),r(&quot;line.dash&quot;)),&quot;none&quot;!==l&amp;&amp;(!0!==t.showlegend&amp;&amp;(e.showlegend=!1),e._dfltShowLegend=!1,n(t,e,a,r,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})),r(&quot;line.smoothing&quot;),i(r,a,c,o)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;./label_defaults&quot;:1023}],1030:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../contour/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat,s=i.contours;e.exports=o({carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},z:n.z,a:n.x,a0:n.x0,da:n.dx,b:n.y,b0:n.y0,db:n.dy,text:n.text,hovertext:n.hovertext,transpose:n.transpose,atype:n.xtype,btype:n.ytype,fillcolor:i.fillcolor,autocontour:i.autocontour,ncontours:i.ncontours,contours:{type:s.type,start:s.start,end:s.end,size:s.size,coloring:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;lines&quot;,&quot;none&quot;],dflt:&quot;fill&quot;,editType:&quot;calc&quot;},showlines:s.showlines,showlabels:s.showlabels,labelfont:s.labelfont,labelformat:s.labelformat,operation:s.operation,value:s.value,editType:&quot;calc&quot;,impliedEdits:{autocontour:!1}},line:{color:i.line.color,width:i.line.width,dash:i.line.dash,smoothing:i.line.smoothing,editType:&quot;plot&quot;},transforms:void 0},a(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../contour/attributes&quot;:1008,&quot;../heatmap/attributes&quot;:1065}],1031:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../heatmap/convert_column_xyz&quot;),o=t(&quot;../heatmap/clean_2d_array&quot;),s=t(&quot;../heatmap/interp2d&quot;),l=t(&quot;../heatmap/find_empties&quot;),c=t(&quot;../heatmap/make_bound_array&quot;),u=t(&quot;./defaults&quot;),f=t(&quot;../carpet/lookup_carpetid&quot;),h=t(&quot;../contour/set_contours&quot;);e.exports=function(t,e){var r=e._carpetTrace=f(t,e);if(r&amp;&amp;r.visible&amp;&amp;&quot;legendonly&quot;!==r.visible){if(!e.a||!e.b){var p=t.data[r.index],d=t.data[e.index];d.a||(d.a=p.a),d.b||(d.b=p.b),u(d,e,e._defaultColor,t._fullLayout)}var g=function(t,e){var r,u,f,h,p,d,g,m=e._carpetTrace,v=m.aaxis,y=m.baxis;v._minDtick=0,y._minDtick=0,i.isArray1D(e.z)&amp;&amp;a(e,v,y,&quot;a&quot;,&quot;b&quot;,[&quot;z&quot;]);r=e._a=e._a||e.a,h=e._b=e._b||e.b,r=r?v.makeCalcdata(e,&quot;_a&quot;):[],h=h?y.makeCalcdata(e,&quot;_b&quot;):[],u=e.a0||0,f=e.da||1,p=e.b0||0,d=e.db||1,g=e._z=o(e._z||e.z,e.transpose),e._emptypoints=l(g),s(g,e._emptypoints);var x=i.maxRowLength(g),b=&quot;scaled&quot;===e.xtype?&quot;&quot;:r,_=c(e,b,u,f,x,v),w=&quot;scaled&quot;===e.ytype?&quot;&quot;:h,T=c(e,w,p,d,g.length,y),k={a:_,b:T,z:g};&quot;levels&quot;===e.contours.type&amp;&amp;&quot;none&quot;!==e.contours.coloring&amp;&amp;n(t,e,{vals:g,containerStr:&quot;&quot;,cLetter:&quot;z&quot;});return[k]}(t,e);return h(e,e._z),g}}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../lib&quot;:778,&quot;../carpet/lookup_carpetid&quot;:981,&quot;../contour/set_contours&quot;:1027,&quot;../heatmap/clean_2d_array&quot;:1067,&quot;../heatmap/convert_column_xyz&quot;:1069,&quot;../heatmap/find_empties&quot;:1071,&quot;../heatmap/interp2d&quot;:1074,&quot;../heatmap/make_bound_array&quot;:1075,&quot;./defaults&quot;:1032}],1032:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../contour/constraint_defaults&quot;),s=t(&quot;../contour/contours_defaults&quot;),l=t(&quot;../contour/style_defaults&quot;);e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,a,r,i)}if(u(&quot;carpet&quot;),t.a&amp;&amp;t.b){if(!i(t,e,u,c,&quot;a&quot;,&quot;b&quot;))return void(e.visible=!1);u(&quot;text&quot;),&quot;constraint&quot;===u(&quot;contours.type&quot;)?o(t,e,u,c,r,{hasHover:!1}):(s(t,e,u,(function(r){return n.coerce2(t,e,a,r)})),l(t,e,u,c,{hasHover:!1}))}else e._defaultColor=r,e._length=null}},{&quot;../../lib&quot;:778,&quot;../contour/constraint_defaults&quot;:1013,&quot;../contour/contours_defaults&quot;:1015,&quot;../contour/style_defaults&quot;:1029,&quot;../heatmap/xyz_defaults&quot;:1079,&quot;./attributes&quot;:1030}],1033:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../contour/colorbar&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../contour/style&quot;),moduleType:&quot;trace&quot;,name:&quot;contourcarpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;carpet&quot;,&quot;contour&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;hasLines&quot;,&quot;carpetDependent&quot;,&quot;noHover&quot;,&quot;noSortingByValue&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../contour/colorbar&quot;:1011,&quot;../contour/style&quot;:1028,&quot;./attributes&quot;:1030,&quot;./calc&quot;:1031,&quot;./defaults&quot;:1032,&quot;./plot&quot;:1034}],1034:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../carpet/map_1d_array&quot;),a=t(&quot;../carpet/makepath&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../contour/make_crossings&quot;),c=t(&quot;../contour/find_all_paths&quot;),u=t(&quot;../contour/plot&quot;),f=t(&quot;../contour/constants&quot;),h=t(&quot;../contour/convert_to_constraints&quot;),p=t(&quot;../contour/empty_pathinfo&quot;),d=t(&quot;../contour/close_boundaries&quot;),g=t(&quot;../carpet/lookup_carpetid&quot;),m=t(&quot;../carpet/axis_aligned_line&quot;);function v(t,e,r){var n=t.getPointAtLength(e),i=t.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function y(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}function x(t,e){var r=Math.abs(t[0]*e[0]+t[1]*e[1]);return Math.sqrt(1-r*r)/r}e.exports=function(t,e,r,b){var _=e.xaxis,w=e.yaxis;s.makeTraceGroups(b,r,&quot;contour&quot;).each((function(r){var b=n.select(this),T=r[0],k=T.trace,M=k._carpetTrace=g(t,k),A=t.calcdata[M.index][0];if(M.visible&amp;&amp;&quot;legendonly&quot;!==M.visible){var S=T.a,E=T.b,C=k.contours,L=p(C,e,T),I=&quot;constraint&quot;===C.type,P=C._operation,z=I?&quot;=&quot;===P?&quot;lines&quot;:&quot;fill&quot;:C.coloring,O=[[S[0],E[E.length-1]],[S[S.length-1],E[E.length-1]],[S[S.length-1],E[0]],[S[0],E[0]]];l(L);var D=1e-8*(S[S.length-1]-S[0]),R=1e-8*(E[E.length-1]-E[0]);c(L,D,R);var F,B,N,j,U=L;&quot;constraint&quot;===C.type&amp;&amp;(U=h(L,P)),function(t,e){var r,n,i,a,o,s,l,c,u;for(r=0;r&lt;t.length;r++){for(a=t[r],o=a.pedgepaths=[],s=a.ppaths=[],n=0;n&lt;a.edgepaths.length;n++){for(u=a.edgepaths[n],l=[],i=0;i&lt;u.length;i++)l[i]=e(u[i]);o.push(l)}for(n=0;n&lt;a.paths.length;n++){for(u=a.paths[n],c=[],i=0;i&lt;u.length;i++)c[i]=e(u[i]);s.push(c)}}}(L,H);var V=[];for(j=A.clipsegments.length-1;j&gt;=0;j--)F=A.clipsegments[j],B=i([],F.x,_.c2p),N=i([],F.y,w.c2p),B.reverse(),N.reverse(),V.push(a(B,N,F.bicubic));var q=&quot;M&quot;+V.join(&quot;L&quot;)+&quot;Z&quot;;!function(t,e,r,n,o,l){var c,u,f,h,p=s.ensureSingle(t,&quot;g&quot;,&quot;contourbg&quot;).selectAll(&quot;path&quot;).data(&quot;fill&quot;!==l||o?[]:[0]);p.enter().append(&quot;path&quot;),p.exit().remove();var d=[];for(h=0;h&lt;e.length;h++)c=e[h],u=i([],c.x,r.c2p),f=i([],c.y,n.c2p),d.push(a(u,f,c.bicubic));p.attr(&quot;d&quot;,&quot;M&quot;+d.join(&quot;L&quot;)+&quot;Z&quot;).style(&quot;stroke&quot;,&quot;none&quot;)}(b,A.clipsegments,_,w,I,z),function(t,e,r,i,a,l,c,u,f,h,p){var g=&quot;fill&quot;===h;g&amp;&amp;d(a,t.contours);var v=s.ensureSingle(e,&quot;g&quot;,&quot;contourfill&quot;).selectAll(&quot;path&quot;).data(g?a:[]);v.enter().append(&quot;path&quot;),v.exit().remove(),v.each((function(t){var e=(t.prefixBoundary?p:&quot;&quot;)+function(t,e,r,n,i,a,l,c){var u,f,h,p,d,g,v,y=&quot;&quot;,x=e.edgepaths.map((function(t,e){return e})),b=!0,_=1e-4*Math.abs(r[0][0]-r[2][0]),w=1e-4*Math.abs(r[0][1]-r[2][1]);function T(t){return Math.abs(t[1]-r[0][1])&lt;w}function k(t){return Math.abs(t[1]-r[2][1])&lt;w}function M(t){return Math.abs(t[0]-r[0][0])&lt;_}function A(t){return Math.abs(t[0]-r[2][0])&lt;_}function S(t,e){var r,n,o,s,u=&quot;&quot;;for(T(t)&amp;&amp;!A(t)||k(t)&amp;&amp;!M(t)?(s=i.aaxis,o=m(i,a,[t[0],e[0]],.5*(t[1]+e[1]))):(s=i.baxis,o=m(i,a,.5*(t[0]+e[0]),[t[1],e[1]])),r=1;r&lt;o.length;r++)for(u+=s.smoothing?&quot;C&quot;:&quot;L&quot;,n=0;n&lt;o[r].length;n++){var f=o[r][n];u+=[l.c2p(f[0]),c.c2p(f[1])]+&quot; &quot;}return u}u=0,f=null;for(;x.length;){var E=e.edgepaths[u][0];for(f&amp;&amp;(y+=S(f,E)),v=o.smoothopen(e.edgepaths[u].map(n),e.smoothing),y+=b?v:v.replace(/^M/,&quot;L&quot;),x.splice(x.indexOf(u),1),f=e.edgepaths[u][e.edgepaths[u].length-1],d=-1,p=0;p&lt;4;p++){if(!f){s.log(&quot;Missing end?&quot;,u,e);break}for(T(f)&amp;&amp;!A(f)?h=r[1]:M(f)?h=r[0]:k(f)?h=r[3]:A(f)&amp;&amp;(h=r[2]),g=0;g&lt;e.edgepaths.length;g++){var C=e.edgepaths[g][0];Math.abs(f[0]-h[0])&lt;_?Math.abs(f[0]-C[0])&lt;_&amp;&amp;(C[1]-f[1])*(h[1]-C[1])&gt;=0&amp;&amp;(h=C,d=g):Math.abs(f[1]-h[1])&lt;w?Math.abs(f[1]-C[1])&lt;w&amp;&amp;(C[0]-f[0])*(h[0]-C[0])&gt;=0&amp;&amp;(h=C,d=g):s.log(&quot;endpt to newendpt is not vert. or horz.&quot;,f,h,C)}if(d&gt;=0)break;y+=S(f,h),f=h}if(d===e.edgepaths.length){s.log(&quot;unclosed perimeter path&quot;);break}u=d,(b=-1===x.indexOf(u))&amp;&amp;(u=x[0],y+=S(f,h)+&quot;Z&quot;,f=null)}for(u=0;u&lt;e.paths.length;u++)y+=o.smoothclosed(e.paths[u].map(n),e.smoothing);return y}(0,t,l,c,u,f,r,i);e?n.select(this).attr(&quot;d&quot;,e).style(&quot;stroke&quot;,&quot;none&quot;):n.select(this).remove()}))}(k,b,_,w,U,O,H,M,A,z,q),function(t,e,r,i,a,l,c){var h=s.ensureSingle(t,&quot;g&quot;,&quot;contourlines&quot;),p=!1!==a.showlines,d=a.showlabels,g=p&amp;&amp;d,m=u.createLines(h,p||d,e),b=u.createLineClip(h,g,r,i.trace.uid),_=t.selectAll(&quot;g.contourlabels&quot;).data(d?[0]:[]);if(_.exit().remove(),_.enter().append(&quot;g&quot;).classed(&quot;contourlabels&quot;,!0),d){var w=l.xaxis,T=l.yaxis,k=w._length,M=T._length,A=[[[0,0],[k,0],[k,M],[0,M]]],S=[];s.clearLocationCache();var E=u.labelFormatter(r,i),C=o.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).call(o.font,a.labelfont),L={left:0,right:k,center:k/2,top:0,bottom:M,middle:M/2},I=Math.sqrt(k*k+M*M),P=f.LABELDISTANCE*I/Math.max(1,e.length/f.LABELINCREASE);m.each((function(t){var e=u.calcTextOpts(t.level,E,C,r);n.select(this).selectAll(&quot;path&quot;).each((function(r){var n=s.getVisibleSegment(this,L,e.height/2);if(n&amp;&amp;(function(t,e,r,n,i,a){for(var o,s=0;s&lt;r.pedgepaths.length;s++)e===r.pedgepaths[s]&amp;&amp;(o=r.edgepaths[s]);if(!o)return;var l=i.a[0],c=i.a[i.a.length-1],u=i.b[0],f=i.b[i.b.length-1];function h(t,e){var r,n=0;return(Math.abs(t[0]-l)&lt;.1||Math.abs(t[0]-c)&lt;.1)&amp;&amp;(r=y(i.dxydb_rough(t[0],t[1],.1)),n=Math.max(n,a*x(e,r)/2)),(Math.abs(t[1]-u)&lt;.1||Math.abs(t[1]-f)&lt;.1)&amp;&amp;(r=y(i.dxyda_rough(t[0],t[1],.1)),n=Math.max(n,a*x(e,r)/2)),n}var p=v(t,0,1),d=v(t,n.total,n.total-1),g=h(o[0],p),m=n.total-h(o[o.length-1],d);n.min&lt;g&amp;&amp;(n.min=g);n.max&gt;m&amp;&amp;(n.max=m);n.len=n.max-n.min}(this,r,t,n,c,e.height),!(n.len&lt;(e.width+e.height)*f.LABELMIN)))for(var i=Math.min(Math.ceil(n.len/P),f.LABELMAX),a=0;a&lt;i;a++){var o=u.findBestTextLocation(this,n,e,S,L);if(!o)break;u.addLabelData(o,e,S,A)}}))})),C.remove(),u.drawLabels(_,S,r,b,g?A:null)}d&amp;&amp;!p&amp;&amp;m.remove()}(b,L,t,T,C,e,M),o.setClipUrl(b,M._clipPathId,t)}function H(t){var e=M.ab2xy(t[0],t[1],!0);return[_.c2p(e[0]),w.c2p(e[1])]}}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../carpet/axis_aligned_line&quot;:965,&quot;../carpet/lookup_carpetid&quot;:981,&quot;../carpet/makepath&quot;:982,&quot;../carpet/map_1d_array&quot;:983,&quot;../contour/close_boundaries&quot;:1010,&quot;../contour/constants&quot;:1012,&quot;../contour/convert_to_constraints&quot;:1016,&quot;../contour/empty_pathinfo&quot;:1018,&quot;../contour/find_all_paths&quot;:1020,&quot;../contour/make_crossings&quot;:1025,&quot;../contour/plot&quot;:1026,d3:169}],1035:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../scattermapbox/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({lon:o.lon,lat:o.lat,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},radius:{valType:&quot;number&quot;,editType:&quot;plot&quot;,arrayOk:!0,min:1,dflt:30},below:{valType:&quot;string&quot;,editType:&quot;plot&quot;},text:o.text,hovertext:o.hovertext,hoverinfo:s({},a.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:i(),showlegend:s({},a.showlegend,{dflt:!1})},n(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scattermapbox/attributes&quot;:1252}],1036:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray,a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../components/colorscale/calc&quot;),s=t(&quot;../../lib&quot;)._;e.exports=function(t,e){for(var r=e._length,l=new Array(r),c=e.z,u=i(c)&amp;&amp;c.length,f=0;f&lt;r;f++){var h=l[f]={},p=e.lon[f],d=e.lat[f];if(h.lonlat=n(p)&amp;&amp;n(d)?[+p,+d]:[a,a],u){var g=c[f];h.z=n(g)?g:a}}return o(t,e,{vals:u?c:[0,1],containerStr:&quot;&quot;,cLetter:&quot;z&quot;}),r&amp;&amp;(l[0].t={labels:{lat:s(t,&quot;lat:&quot;)+&quot; &quot;,lon:s(t,&quot;lon:&quot;)+&quot; &quot;}}),l}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],1037:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../components/colorscale&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=t(&quot;../../lib/geojson_utils&quot;).makeBlank;e.exports=function(t){var e=t[0].trace,r=!0===e.visible&amp;&amp;0!==e._length,c=e._opts={heatmap:{layout:{visibility:&quot;none&quot;},paint:{}},geojson:l()};if(!r)return c;var u,f=[],h=e.z,p=e.radius,d=i.isArrayOrTypedArray(h)&amp;&amp;h.length,g=i.isArrayOrTypedArray(p);for(u=0;u&lt;t.length;u++){var m=t[u],v=m.lonlat;if(v[0]!==s){var y={};if(d){var x=m.z;y.z=x!==s?x:0}g&amp;&amp;(y.r=n(p[u])&amp;&amp;p[u]&gt;0?+p[u]:0),f.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:v},properties:y})}}var b=o.extractOpts(e),_=b.reversescale?o.flipScale(b.colorscale):b.colorscale,w=_[0][1],T=[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;heatmap-density&quot;],0,a.opacity(w)&lt;1?w:a.addOpacity(w,0)];for(u=1;u&lt;_.length;u++)T.push(_[u][0],_[u][1]);var k=[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;get&quot;,&quot;z&quot;],b.min,0,b.max,1];return i.extendFlat(c.heatmap.paint,{&quot;heatmap-weight&quot;:d?k:1/(b.max-b.min),&quot;heatmap-color&quot;:T,&quot;heatmap-radius&quot;:g?{type:&quot;identity&quot;,property:&quot;r&quot;}:e.radius,&quot;heatmap-opacity&quot;:e.opacity}),c.geojson={type:&quot;FeatureCollection&quot;,features:f},c.heatmap.layout.visibility=&quot;visible&quot;,c}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale&quot;:655,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/geojson_utils&quot;:772,&quot;fast-isnumeric&quot;:241}],1038:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;lon&quot;)||[],c=s(&quot;lat&quot;)||[],u=Math.min(l.length,c.length);u?(e._length=u,s(&quot;z&quot;),s(&quot;radius&quot;),s(&quot;below&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:1035}],1039:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t.z=e.z,t}},{}],1040:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../scattermapbox/hover&quot;);e.exports=function(t,e,r){var o=a(t,e,r);if(o){var s=o[0],l=s.cd,c=l[0].trace,u=l[s.index];if(delete s.color,&quot;z&quot;in u){var f=s.subplot.mockAxis;s.z=u.z,s.zLabel=i.tickText(f,f.c2l(u.z),&quot;hover&quot;).text}return s.extraText=function(t,e,r){if(t.hovertemplate)return;var i=(e.hi||t.hoverinfo).split(&quot;+&quot;),a=-1!==i.indexOf(&quot;all&quot;),o=-1!==i.indexOf(&quot;lon&quot;),s=-1!==i.indexOf(&quot;lat&quot;),l=e.lonlat,c=[];function u(t){return t+&quot;\xb0&quot;}a||o&amp;&amp;s?c.push(&quot;(&quot;+u(l[0])+&quot;, &quot;+u(l[1])+&quot;)&quot;):o?c.push(r.lon+u(l[0])):s&amp;&amp;c.push(r.lat+u(l[1]));(a||-1!==i.indexOf(&quot;text&quot;))&amp;&amp;n.fillText(e,t,c);return c.join(&quot;&lt;br&gt;&quot;)}(c,u,l[0].t.labels),[s]}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scattermapbox/hover&quot;:1257}],1041:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),formatLabels:t(&quot;../scattermapbox/format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),getBelow:function(t,e){for(var r=e.getMapLayers(),n=0;n&lt;r.length;n++){var i=r[n],a=i.id;if(&quot;symbol&quot;===i.type&amp;&amp;&quot;string&quot;==typeof a&amp;&amp;-1===a.indexOf(&quot;plotly-&quot;))return a}},moduleType:&quot;trace&quot;,name:&quot;densitymapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;showLegend&quot;],meta:{hr_name:&quot;density_mapbox&quot;}}},{&quot;../../plots/mapbox&quot;:885,&quot;../heatmap/colorbar&quot;:1068,&quot;../scattermapbox/format_labels&quot;:1256,&quot;./attributes&quot;:1035,&quot;./calc&quot;:1036,&quot;./defaults&quot;:1038,&quot;./event_data&quot;:1039,&quot;./hover&quot;:1040,&quot;./plot&quot;:1042}],1042:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;),i=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix;function a(t,e){this.type=&quot;densitymapbox&quot;,this.subplot=t,this.uid=e,this.sourceId=&quot;source-&quot;+e,this.layerList=[[&quot;heatmap&quot;,i+e+&quot;-heatmap&quot;]],this.below=null}var o=a.prototype;o.update=function(t){var e=this.subplot,r=this.layerList,i=n(t),a=e.belowLookup[&quot;trace-&quot;+this.uid];e.map.getSource(this.sourceId).setData(i.geojson),a!==this.below&amp;&amp;(this._removeLayers(),this._addLayers(i,a),this.below=a);for(var o=0;o&lt;r.length;o++){var s=r[o],l=s[0],c=s[1],u=i[l];e.setOptions(c,&quot;setLayoutProperty&quot;,u.layout),&quot;visible&quot;===u.layout.visibility&amp;&amp;e.setOptions(c,&quot;setPaintProperty&quot;,u.paint)}},o._addLayers=function(t,e){for(var r=this.subplot,n=this.layerList,i=this.sourceId,a=0;a&lt;n.length;a++){var o=n[a],s=o[0],l=t[s];r.addLayer({type:s,id:o[1],source:i,layout:l.layout,paint:l.paint},e)}},o._removeLayers=function(){for(var t=this.subplot.map,e=this.layerList,r=e.length-1;r&gt;=0;r--)t.removeLayer(e[r][1])},o.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new a(t,r.uid),o=i.sourceId,s=n(e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid];return t.map.addSource(o,{type:&quot;geojson&quot;,data:s.geojson}),i._addLayers(s,l),i}},{&quot;../../plots/mapbox/constants&quot;:883,&quot;./convert&quot;:1037}],1043:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;);var i=e.marker;if(i){n.mergeArray(i.opacity,t,&quot;mo&quot;),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;a&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;))}}},{&quot;../../lib&quot;:778}],1044:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../scatter/attributes&quot;).line,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;./constants&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../components/color&quot;);e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,hovertext:n.hovertext,hovertemplate:o({},{keys:l.eventDataKeys}),hoverinfo:c({},a.hoverinfo,{flags:[&quot;name&quot;,&quot;x&quot;,&quot;y&quot;,&quot;text&quot;,&quot;percent initial&quot;,&quot;percent previous&quot;,&quot;percent total&quot;]}),textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;percent initial&quot;,&quot;percent previous&quot;,&quot;percent total&quot;,&quot;value&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;,arrayOk:!1},texttemplate:s({editType:&quot;plot&quot;},{keys:l.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),text:n.text,textposition:c({},n.textposition,{dflt:&quot;auto&quot;}),insidetextanchor:c({},n.insidetextanchor,{dflt:&quot;middle&quot;}),textangle:c({},n.textangle,{dflt:0}),textfont:n.textfont,insidetextfont:n.insidetextfont,outsidetextfont:n.outsidetextfont,constraintext:n.constraintext,cliponaxis:n.cliponaxis,orientation:c({},n.orientation,{}),offset:c({},n.offset,{arrayOk:!1}),width:c({},n.width,{arrayOk:!1}),marker:n.marker,connector:{fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},line:{color:c({},i.color,{dflt:u.defaultLine}),width:c({},i.width,{dflt:0,editType:&quot;plot&quot;}),dash:i.dash,editType:&quot;style&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup}},{&quot;../../components/color&quot;:643,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:1046}],1045:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;./arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t){return t===s?0:t}e.exports=function(t,e){var r,c,u,f,h,p,d=n.getFromId(t,e.xaxis||&quot;x&quot;),g=n.getFromId(t,e.yaxis||&quot;y&quot;);&quot;h&quot;===e.orientation?(r=d.makeCalcdata(e,&quot;x&quot;),u=g.makeCalcdata(e,&quot;y&quot;),c=i(e,g,&quot;y&quot;,u),p=!!e.yperiodalignment):(r=g.makeCalcdata(e,&quot;y&quot;),u=d.makeCalcdata(e,&quot;x&quot;),c=i(e,d,&quot;x&quot;,u),p=!!e.xperiodalignment);var m,v=Math.min(c.length,r.length),y=new Array(v);for(e._base=[],f=0;f&lt;v;f++){r[f]&lt;0&amp;&amp;(r[f]=s);var x=!1;r[f]!==s&amp;&amp;f+1&lt;v&amp;&amp;r[f+1]!==s&amp;&amp;(x=!0),h=y[f]={p:c[f],s:r[f],cNext:x},e._base[f]=-.5*h.s,p&amp;&amp;(y[f].orig_p=u[f]),e.ids&amp;&amp;(h.id=String(e.ids[f])),0===f&amp;&amp;(y[0].vTotal=0),y[0].vTotal+=l(h.s),h.begR=l(h.s)/l(y[0].s)}for(f=0;f&lt;v;f++)(h=y[f]).s!==s&amp;&amp;(h.sumR=h.s/y[0].vTotal,h.difR=void 0!==m?h.s/m:1,m=h.s);return a(y,e),o(y,e),y}},{&quot;../../constants/numerical&quot;:753,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc_selection&quot;:1189,&quot;./arrays_to_calcdata&quot;:1043}],1046:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;percentInitial&quot;,&quot;percentPrevious&quot;,&quot;percentTotal&quot;]}},{}],1047:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions;e.exports=function(t,e){var r,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,c=e.yaxis,u=[],f=[],h=[];for(i=0;i&lt;o.length;i++){var p=o[i],d=&quot;h&quot;===p.orientation;!0===p.visible&amp;&amp;p.xaxis===l._id&amp;&amp;p.yaxis===c._id&amp;&amp;&quot;funnel&quot;===p.type&amp;&amp;(r=s[i],d?h.push(r):f.push(r),u.push(r))}var g={mode:a.funnelmode,norm:a.funnelnorm,gap:a.funnelgap,groupgap:a.funnelgroupgap};for(n(t,l,c,f,g),n(t,c,l,h,g),i=0;i&lt;u.length;i++){r=u[i];for(var m=0;m&lt;r.length;m++)m+1&lt;r.length&amp;&amp;(r[m].nextP0=r[m+1].p0,r[m].nextS0=r[m+1].s0,r[m].nextP1=r[m+1].p1,r[m].nextS1=r[m+1].s1)}}},{&quot;../bar/cross_trace_calc&quot;:924}],1048:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,a=t(&quot;../bar/defaults&quot;).handleText,o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../../components/color&quot;);e.exports={supplyDefaults:function(t,e,r,i){function u(r,i){return n.coerce(t,e,l,r,i)}if(o(t,e,i,u)){s(t,e,i,u),u(&quot;orientation&quot;,e.y&amp;&amp;!e.x?&quot;v&quot;:&quot;h&quot;),u(&quot;offset&quot;),u(&quot;width&quot;);var f=u(&quot;text&quot;);u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;);var h=u(&quot;textposition&quot;);a(t,e,i,u,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),&quot;none&quot;===e.textposition||e.texttemplate||u(&quot;textinfo&quot;,Array.isArray(f)?&quot;text+value&quot;:&quot;value&quot;);var p=u(&quot;marker.color&quot;,r);if(u(&quot;marker.line.color&quot;,c.defaultLine),u(&quot;marker.line.width&quot;),u(&quot;connector.visible&quot;))u(&quot;connector.fillcolor&quot;,function(t){var e=n.isArrayOrTypedArray(t)?&quot;#000&quot;:t;return c.addOpacity(e,.5*c.opacity(e))}(p)),u(&quot;connector.line.width&quot;)&amp;&amp;(u(&quot;connector.line.color&quot;),u(&quot;connector.line.dash&quot;))}else e.visible=!1},crossTraceDefaults:function(t,e){var r,a;function o(t){return n.coerce(a._input,a,l,t)}if(&quot;group&quot;===e.funnelmode)for(var s=0;s&lt;t.length;s++)r=(a=t[s])._input,i(r,a,e,o)}}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/defaults&quot;:925,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:1044}],1049:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;percentInitial&quot;in e&amp;&amp;(t.percentInitial=e.percentInitial),&quot;percentPrevious&quot;in e&amp;&amp;(t.percentPrevious=e.percentPrevious),&quot;percentTotal&quot;in e&amp;&amp;(t.percentTotal=e.percentTotal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],1050:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;).opacity,i=t(&quot;../bar/hover&quot;).hoverOnBars,a=t(&quot;../../lib&quot;).formatPercent;e.exports=function(t,e,r,o){var s=i(t,e,r,o);if(s){var l=s.cd,c=l[0].trace,u=&quot;h&quot;===c.orientation,f=l[s.index];s[(u?&quot;x&quot;:&quot;y&quot;)+&quot;LabelVal&quot;]=f.s,s.percentInitial=f.begR,s.percentInitialLabel=a(f.begR,1),s.percentPrevious=f.difR,s.percentPreviousLabel=a(f.difR,1),s.percentTotal=f.sumR,s.percentTotalLabel=a(f.sumR,1);var h=f.hi||c.hoverinfo,p=[];if(h&amp;&amp;&quot;none&quot;!==h&amp;&amp;&quot;skip&quot;!==h){var d=&quot;all&quot;===h,g=h.split(&quot;+&quot;),m=function(t){return d||-1!==g.indexOf(t)};m(&quot;percent initial&quot;)&amp;&amp;p.push(s.percentInitialLabel+&quot; of initial&quot;),m(&quot;percent previous&quot;)&amp;&amp;p.push(s.percentPreviousLabel+&quot; of previous&quot;),m(&quot;percent total&quot;)&amp;&amp;p.push(s.percentTotalLabel+&quot; of total&quot;)}return s.extraText=p.join(&quot;&lt;br&gt;&quot;),s.color=function(t,e){var r=t.marker,i=e.mc||r.color,a=e.mlc||r.line.color,o=e.mlw||r.line.width;if(n(i))return i;if(n(a)&amp;&amp;o)return a}(c,f),[s]}}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/hover&quot;:928}],1051:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;../bar/select&quot;),moduleType:&quot;trace&quot;,name:&quot;funnel&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;oriented&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../bar/select&quot;:933,&quot;./attributes&quot;:1044,&quot;./calc&quot;:1045,&quot;./cross_trace_calc&quot;:1047,&quot;./defaults&quot;:1048,&quot;./event_data&quot;:1049,&quot;./hover&quot;:1050,&quot;./layout_attributes&quot;:1052,&quot;./layout_defaults&quot;:1053,&quot;./plot&quot;:1054,&quot;./style&quot;:1055}],1052:[function(t,e,r){&quot;use strict&quot;;e.exports={funnelmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;stack&quot;,editType:&quot;calc&quot;},funnelgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},funnelgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],1053:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s&lt;r.length;s++){var l=r[s];if(l.visible&amp;&amp;&quot;funnel&quot;===l.type){a=!0;break}}a&amp;&amp;(o(&quot;funnelmode&quot;),o(&quot;funnelgap&quot;,.2),o(&quot;funnelgroupgap&quot;))}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1052}],1054:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../constants/numerical&quot;).BADNUM,s=t(&quot;../bar/plot&quot;),l=t(&quot;../bar/uniform_text&quot;).clearMinTextSize;function c(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),i[3]=o.c2p(t.nextS1,!0),a[3]=s.c2p(t.nextP1,!0),n?[i,a]:[a,i]}e.exports=function(t,e,r,u){var f=t._fullLayout;l(&quot;funnel&quot;,f),function(t,e,r,s){var l=e.xaxis,u=e.yaxis;i.makeTraceGroups(s,r,&quot;trace bars&quot;).each((function(r){var s=n.select(this),f=r[0].trace,h=i.ensureSingle(s,&quot;g&quot;,&quot;regions&quot;);if(f.connector&amp;&amp;f.connector.visible){var p=&quot;h&quot;===f.orientation,d=h.selectAll(&quot;g.region&quot;).data(i.identity);d.enter().append(&quot;g&quot;).classed(&quot;region&quot;,!0),d.exit().remove();var g=d.size();d.each((function(r,s){if(s===g-1||r.cNext){var f=c(r,l,u,p),h=f[0],d=f[1],m=&quot;&quot;;h[0]!==o&amp;&amp;d[0]!==o&amp;&amp;h[1]!==o&amp;&amp;d[1]!==o&amp;&amp;h[2]!==o&amp;&amp;d[2]!==o&amp;&amp;h[3]!==o&amp;&amp;d[3]!==o&amp;&amp;(m+=p?&quot;M&quot;+h[0]+&quot;,&quot;+d[1]+&quot;L&quot;+h[2]+&quot;,&quot;+d[2]+&quot;H&quot;+h[3]+&quot;L&quot;+h[1]+&quot;,&quot;+d[1]+&quot;Z&quot;:&quot;M&quot;+h[1]+&quot;,&quot;+d[1]+&quot;L&quot;+h[2]+&quot;,&quot;+d[3]+&quot;V&quot;+d[2]+&quot;L&quot;+h[1]+&quot;,&quot;+d[0]+&quot;Z&quot;),&quot;&quot;===m&amp;&amp;(m=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,m).call(a.setClipUrl,e.layerClipId,t)}}))}else h.remove()}))}(t,e,r,u),function(t,e,r,o){var s=e.xaxis,l=e.yaxis;i.makeTraceGroups(o,r,&quot;trace bars&quot;).each((function(r){var o=n.select(this),u=r[0].trace,f=i.ensureSingle(o,&quot;g&quot;,&quot;lines&quot;);if(u.connector&amp;&amp;u.connector.visible&amp;&amp;u.connector.line.width){var h=&quot;h&quot;===u.orientation,p=f.selectAll(&quot;g.line&quot;).data(i.identity);p.enter().append(&quot;g&quot;).classed(&quot;line&quot;,!0),p.exit().remove();var d=p.size();p.each((function(r,o){if(o===d-1||r.cNext){var u=c(r,s,l,h),f=u[0],p=u[1],g=&quot;&quot;;void 0!==f[3]&amp;&amp;void 0!==p[3]&amp;&amp;(h?(g+=&quot;M&quot;+f[0]+&quot;,&quot;+p[1]+&quot;L&quot;+f[2]+&quot;,&quot;+p[2],g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[1]+&quot;L&quot;+f[3]+&quot;,&quot;+p[2]):(g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[1]+&quot;L&quot;+f[2]+&quot;,&quot;+p[3],g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[0]+&quot;L&quot;+f[2]+&quot;,&quot;+p[2])),&quot;&quot;===g&amp;&amp;(g=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,g).call(a.setClipUrl,e.layerClipId,t)}}))}else f.remove()}))}(t,e,r,u),s.plot(t,e,r,u,{mode:f.funnelmode,norm:f.funnelmode,gap:f.funnelgap,groupgap:f.funnelgroupgap})}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../bar/plot&quot;:932,&quot;../bar/uniform_text&quot;:937,d3:169}],1055:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../constants/interactions&quot;).DESELECTDIM,s=t(&quot;../bar/style&quot;),l=t(&quot;../bar/uniform_text&quot;).resizeText,c=s.styleTextPoints;e.exports={style:function(t,e,r){var s=r||n.select(t).selectAll(&quot;g.funnellayer&quot;).selectAll(&quot;g.trace&quot;);l(t,s,&quot;funnel&quot;),s.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),s.each((function(e){var r=n.select(this),s=e[0].trace;r.selectAll(&quot;.point &gt; path&quot;).each((function(t){if(!t.isBlank){var e=s.marker;n.select(this).call(a.fill,t.mc||e.color).call(a.stroke,t.mlc||e.line.color).call(i.dashLine,e.line.dash,t.mlw||e.line.width).style(&quot;opacity&quot;,s.selectedpoints&amp;&amp;!t.selected?o:1)}})),c(r,s,t),r.selectAll(&quot;.regions&quot;).each((function(){n.select(this).selectAll(&quot;path&quot;).style(&quot;stroke-width&quot;,0).call(a.fill,s.connector.fillcolor)})),r.selectAll(&quot;.lines&quot;).each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll(&quot;path&quot;),t.width,t.color,t.dash)}))}))}}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../constants/interactions&quot;:752,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,d3:169}],1056:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/domain&quot;).attributes,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:n.labels,label0:n.label0,dlabel:n.dlabel,values:n.values,marker:{colors:n.marker.colors,line:{color:l({},n.marker.line.color,{dflt:null}),width:l({},n.marker.line.width,{dflt:1}),editType:&quot;calc&quot;},editType:&quot;calc&quot;},text:n.text,hovertext:n.hovertext,scalegroup:l({},n.scalegroup,{}),textinfo:l({},n.textinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;]}),texttemplate:s({editType:&quot;plot&quot;},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;text&quot;,&quot;percent&quot;]}),hoverinfo:l({},i.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;name&quot;]}),hovertemplate:o({},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;text&quot;,&quot;percent&quot;]}),textposition:l({},n.textposition,{values:[&quot;inside&quot;,&quot;none&quot;],dflt:&quot;inside&quot;}),textfont:n.textfont,insidetextfont:n.insidetextfont,title:{text:n.title.text,font:n.title.font,position:l({},n.title.position,{values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;],dflt:&quot;top center&quot;}),editType:&quot;plot&quot;},domain:a({name:&quot;funnelarea&quot;,trace:!0,editType:&quot;calc&quot;}),aspectratio:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},baseratio:{valType:&quot;number&quot;,min:0,max:1,dflt:.333,editType:&quot;plot&quot;}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/template_attributes&quot;:906,&quot;../pie/attributes&quot;:1161}],1057:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;funnelarea&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1058:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/calc&quot;);e.exports={calc:function(t,e){return n.calc(t,e)},crossTraceCalc:function(t){n.crossTraceCalc(t,{type:&quot;funnelarea&quot;})}}},{&quot;../pie/calc&quot;:1163}],1059:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../bar/defaults&quot;).handleText,s=t(&quot;../pie/defaults&quot;).handleLabelsAndValues;e.exports=function(t,e,r,l){function c(r,a){return n.coerce(t,e,i,r,a)}var u=c(&quot;labels&quot;),f=c(&quot;values&quot;),h=s(u,f),p=h.len;if(e._hasLabels=h.hasLabels,e._hasValues=h.hasValues,!e._hasLabels&amp;&amp;e._hasValues&amp;&amp;(c(&quot;label0&quot;),c(&quot;dlabel&quot;)),p){e._length=p,c(&quot;marker.line.width&quot;)&amp;&amp;c(&quot;marker.line.color&quot;,l.paper_bgcolor),c(&quot;marker.colors&quot;),c(&quot;scalegroup&quot;);var d,g=c(&quot;text&quot;),m=c(&quot;texttemplate&quot;);if(m||(d=c(&quot;textinfo&quot;,Array.isArray(g)?&quot;text+percent&quot;:&quot;percent&quot;)),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),m||d&amp;&amp;&quot;none&quot;!==d){var v=c(&quot;textposition&quot;);o(t,e,l,c,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}a(e,l,c),c(&quot;title.text&quot;)&amp;&amp;(c(&quot;title.position&quot;),n.coerceFont(c,&quot;title.font&quot;,l.font)),c(&quot;aspectratio&quot;),c(&quot;baseratio&quot;)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/defaults&quot;:925,&quot;../pie/defaults&quot;:1164,&quot;./attributes&quot;:1056}],1060:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;funnelarea&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;pie-like&quot;,&quot;funnelarea&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),styleOne:t(&quot;../pie/style_one&quot;),meta:{}}},{&quot;../pie/style_one&quot;:1172,&quot;./attributes&quot;:1056,&quot;./base_plot&quot;:1057,&quot;./calc&quot;:1058,&quot;./defaults&quot;:1059,&quot;./layout_attributes&quot;:1061,&quot;./layout_defaults&quot;:1062,&quot;./plot&quot;:1063,&quot;./style&quot;:1064}],1061:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/layout_attributes&quot;).hiddenlabels;e.exports={hiddenlabels:n,funnelareacolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendfunnelareacolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{&quot;../pie/layout_attributes&quot;:1168}],1062:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;hiddenlabels&quot;),r(&quot;funnelareacolorway&quot;,e.colorway),r(&quot;extendfunnelareacolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1061}],1063:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../lib&quot;),o=a.strScale,s=a.strTranslate,l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../bar/plot&quot;).toMoveInsideBar,u=t(&quot;../bar/uniform_text&quot;),f=u.recordMinTextSize,h=u.clearMinTextSize,p=t(&quot;../pie/helpers&quot;),d=t(&quot;../pie/plot&quot;),g=d.attachFxHandlers,m=d.determineInsideTextFont,v=d.layoutAreas,y=d.prerenderTitles,x=d.positionTitleOutside,b=d.formatSliceLabel;function _(t,e){return&quot;l&quot;+(e[0]-t[0])+&quot;,&quot;+(e[1]-t[1])}e.exports=function(t,e){var r=t._fullLayout;h(&quot;funnelarea&quot;,r),y(e,t),v(e,r._size),a.makeTraceGroups(r._funnelarealayer,e,&quot;trace&quot;).each((function(e){var u=n.select(this),h=e[0],d=h.trace;!function(t){if(!t.length)return;var e=t[0],r=e.trace,n=r.aspectratio,i=r.baseratio;i&gt;.999&amp;&amp;(i=.999);var a,o=Math.pow(i,2),s=e.vTotal,l=s,c=s*o/(1-o)/s;function u(){var t,e={x:t=Math.sqrt(c),y:-t};return[e.x,e.y]}var f,h,p=[];for(p.push(u()),f=t.length-1;f&gt;-1;f--)if(!(h=t[f]).hidden){var d=h.v/l;c+=d,p.push(u())}var g=1/0,m=-1/0;for(f=0;f&lt;p.length;f++)a=p[f],g=Math.min(g,a[1]),m=Math.max(m,a[1]);for(f=0;f&lt;p.length;f++)p[f][1]-=(m+g)/2;var v=p[p.length-1][0],y=e.r,x=(m-g)/2,b=y/v,_=y/x*n;for(e.r=_*x,f=0;f&lt;p.length;f++)p[f][0]*=b,p[f][1]*=_;var w=[-(a=p[0])[0],a[1]],T=[a[0],a[1]],k=0;for(f=t.length-1;f&gt;-1;f--)if(!(h=t[f]).hidden){var M=p[k+=1][0],A=p[k][1];h.TL=[-M,A],h.TR=[M,A],h.BL=w,h.BR=T,h.pxmid=(S=h.TR,E=h.BR,[.5*(S[0]+E[0]),.5*(S[1]+E[1])]),w=h.TL,T=h.TR}var S,E}(e),u.each((function(){var u=n.select(this).selectAll(&quot;g.slice&quot;).data(e);u.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),u.exit().remove(),u.each((function(o,s){if(o.hidden)n.select(this).selectAll(&quot;path,g&quot;).remove();else{o.pointNumber=o.i,o.curveNumber=d.index;var u=h.cx,v=h.cy,y=n.select(this),x=y.selectAll(&quot;path.surface&quot;).data([o]);x.enter().append(&quot;path&quot;).classed(&quot;surface&quot;,!0).style({&quot;pointer-events&quot;:&quot;all&quot;}),y.call(g,t,e);var w=&quot;M&quot;+(u+o.TR[0])+&quot;,&quot;+(v+o.TR[1])+_(o.TR,o.BR)+_(o.BR,o.BL)+_(o.BL,o.TL)+&quot;Z&quot;;x.attr(&quot;d&quot;,w),b(t,o,h);var T=p.castOption(d.textposition,o.pts),k=y.selectAll(&quot;g.slicetext&quot;).data(o.text&amp;&amp;&quot;none&quot;!==T?[0]:[]);k.enter().append(&quot;g&quot;).classed(&quot;slicetext&quot;,!0),k.exit().remove(),k.each((function(){var h=a.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),p=a.ensureUniformFontSize(t,m(d,o,r.font));h.text(o.text).attr({class:&quot;slicetext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(i.font,p).call(l.convertToTspans,t);var g,y,x,b=i.bBox(h.node()),_=Math.min(o.BL[1],o.BR[1])+v,w=Math.max(o.TL[1],o.TR[1])+v;y=Math.max(o.TL[0],o.BL[0])+u,x=Math.min(o.TR[0],o.BR[0])+u,(g=c(y,x,_,w,b,{isHorizontal:!0,constrained:!0,angle:0,anchor:&quot;middle&quot;})).fontSize=p.size,f(d.type,g,r),e[s].transform=g,h.attr(&quot;transform&quot;,a.getTextTransform(g))}))}}));var v=n.select(this).selectAll(&quot;g.titletext&quot;).data(d.title.text?[0]:[]);v.enter().append(&quot;g&quot;).classed(&quot;titletext&quot;,!0),v.exit().remove(),v.each((function(){var e=a.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),c=d.title.text;d._meta&amp;&amp;(c=a.templateString(c,d._meta)),e.text(c).attr({class:&quot;titletext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(i.font,d.title.font).call(l.convertToTspans,t);var u=x(h,r._size);e.attr(&quot;transform&quot;,s(u.x,u.y)+o(Math.min(1,u.scale))+s(u.tx,u.ty))}))}))}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../bar/plot&quot;:932,&quot;../bar/uniform_text&quot;:937,&quot;../pie/helpers&quot;:1166,&quot;../pie/plot&quot;:1170,d3:169}],1064:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../pie/style_one&quot;),a=t(&quot;../bar/uniform_text&quot;).resizeText;e.exports=function(t){var e=t._fullLayout._funnelarealayer.selectAll(&quot;.trace&quot;);a(t,e,&quot;funnelarea&quot;),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(i,t,e)}))}))}},{&quot;../bar/uniform_text&quot;:937,&quot;../pie/style_one&quot;:1172,d3:169}],1065:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,t(&quot;../../lib/extend&quot;).extendFlat);e.exports=s({z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},x:s({},n.x,{impliedEdits:{xtype:&quot;array&quot;}}),x0:s({},n.x0,{impliedEdits:{xtype:&quot;scaled&quot;}}),dx:s({},n.dx,{impliedEdits:{xtype:&quot;scaled&quot;}}),y:s({},n.y,{impliedEdits:{ytype:&quot;array&quot;}}),y0:s({},n.y0,{impliedEdits:{ytype:&quot;scaled&quot;}}),dy:s({},n.dy,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiod:s({},n.xperiod,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiod:s({},n.yperiod,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiod0:s({},n.xperiod0,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiod0:s({},n.yperiod0,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiodalignment:s({},n.xperiodalignment,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiodalignment:s({},n.yperiodalignment,{impliedEdits:{ytype:&quot;scaled&quot;}}),text:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},hovertext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},transpose:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},xtype:{valType:&quot;enumerated&quot;,values:[&quot;array&quot;,&quot;scaled&quot;],editType:&quot;calc+clearAxisTypes&quot;},ytype:{valType:&quot;enumerated&quot;,values:[&quot;array&quot;,&quot;scaled&quot;],editType:&quot;calc+clearAxisTypes&quot;},zsmooth:{valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,&quot;best&quot;,!1],dflt:!1,editType:&quot;calc&quot;},hoverongaps:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;none&quot;},connectgaps:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},xgap:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;plot&quot;},ygap:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;plot&quot;},zhoverformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;none&quot;},hovertemplate:a(),showlegend:s({},i.showlegend,{dflt:!1})},{transforms:void 0},o(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1066:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../histogram2d/calc&quot;),l=t(&quot;../../components/colorscale/calc&quot;),c=t(&quot;./convert_column_xyz&quot;),u=t(&quot;./clean_2d_array&quot;),f=t(&quot;./interp2d&quot;),h=t(&quot;./find_empties&quot;),p=t(&quot;./make_bound_array&quot;),d=t(&quot;../../constants/numerical&quot;).BADNUM;function g(t){for(var e=[],r=t.length,n=0;n&lt;r;n++){var i=t[n];i!==d&amp;&amp;e.push(i)}return e}e.exports=function(t,e){var r,m,v,y,x,b,_,w,T,k,M,A=a.getFromId(t,e.xaxis||&quot;x&quot;),S=a.getFromId(t,e.yaxis||&quot;y&quot;),E=n.traceIs(e,&quot;contour&quot;),C=n.traceIs(e,&quot;histogram&quot;),L=n.traceIs(e,&quot;gl2d&quot;),I=E?&quot;best&quot;:e.zsmooth;if(A._minDtick=0,S._minDtick=0,C)y=(M=s(t,e)).orig_x,r=M.x,m=M.x0,v=M.dx,w=M.orig_y,x=M.y,b=M.y0,_=M.dy,T=M.z;else{var P=e.z;i.isArray1D(P)?(c(e,A,S,&quot;x&quot;,&quot;y&quot;,[&quot;z&quot;]),r=e._x,x=e._y,P=e._z):(y=e.x?A.makeCalcdata(e,&quot;x&quot;):[],w=e.y?S.makeCalcdata(e,&quot;y&quot;):[],r=o(e,A,&quot;x&quot;,y),x=o(e,S,&quot;y&quot;,w),e._x=r,e._y=x),m=e.x0,v=e.dx,b=e.y0,_=e.dy,T=u(P,e,A,S)}function z(t){I=e._input.zsmooth=e.zsmooth=!1,i.warn('cannot use zsmooth: &quot;fast&quot;: '+t)}if((A.rangebreaks||S.rangebreaks)&amp;&amp;(T=function(t,e,r){for(var n=[],i=-1,a=0;a&lt;r.length;a++)if(e[a]!==d){i++,n[i]=[];for(var o=0;o&lt;r[a].length;o++)t[o]!==d&amp;&amp;n[i].push(r[a][o])}return n}(r,x,T),C||(r=g(r),x=g(x),e._x=r,e._y=x)),C||!E&amp;&amp;!e.connectgaps||(e._emptypoints=h(T),f(T,e._emptypoints)),&quot;fast&quot;===I)if(&quot;log&quot;===A.type||&quot;log&quot;===S.type)z(&quot;log axis found&quot;);else if(!C){if(r.length){var O=(r[r.length-1]-r[0])/(r.length-1),D=Math.abs(O/100);for(k=0;k&lt;r.length-1;k++)if(Math.abs(r[k+1]-r[k]-O)&gt;D){z(&quot;x scale is not linear&quot;);break}}if(x.length&amp;&amp;&quot;fast&quot;===I){var R=(x[x.length-1]-x[0])/(x.length-1),F=Math.abs(R/100);for(k=0;k&lt;x.length-1;k++)if(Math.abs(x[k+1]-x[k]-R)&gt;F){z(&quot;y scale is not linear&quot;);break}}}var B=i.maxRowLength(T),N=&quot;scaled&quot;===e.xtype?&quot;&quot;:r,j=p(e,N,m,v,B,A),U=&quot;scaled&quot;===e.ytype?&quot;&quot;:x,V=p(e,U,b,_,T.length,S);L||(e._extremes[A._id]=a.findExtremes(A,j),e._extremes[S._id]=a.findExtremes(S,V));var q={x:j,y:V,z:T,text:e._text||e.text,hovertext:e._hovertext||e.hovertext};if(e.xperiodalignment&amp;&amp;y&amp;&amp;(q.orig_x=y),e.yperiodalignment&amp;&amp;w&amp;&amp;(q.orig_y=w),N&amp;&amp;N.length===j.length-1&amp;&amp;(q.xCenter=N),U&amp;&amp;U.length===V.length-1&amp;&amp;(q.yCenter=U),C&amp;&amp;(q.xRanges=M.xRanges,q.yRanges=M.yRanges,q.pts=M.pts),E||l(t,e,{vals:T,cLetter:&quot;z&quot;}),E&amp;&amp;e.contours&amp;&amp;&quot;heatmap&quot;===e.contours.coloring){var H={type:&quot;contour&quot;===e.type?&quot;heatmap&quot;:&quot;histogram2d&quot;,xcalendar:e.xcalendar,ycalendar:e.ycalendar};q.xfill=p(H,N,m,v,B,A),q.yfill=p(H,U,b,_,T.length,S)}return[q]}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../histogram2d/calc&quot;:1098,&quot;./clean_2d_array&quot;:1067,&quot;./convert_column_xyz&quot;:1069,&quot;./find_empties&quot;:1071,&quot;./interp2d&quot;:1074,&quot;./make_bound_array&quot;:1075}],1067:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r,o){var s,l,c,u,f,h;function p(t){if(n(t))return+t}if(e&amp;&amp;e.transpose){for(s=0,f=0;f&lt;t.length;f++)s=Math.max(s,t[f].length);if(0===s)return!1;c=function(t){return t.length},u=function(t,e,r){return(t[r]||[])[e]}}else s=t.length,c=function(t,e){return t[e].length},u=function(t,e,r){return(t[e]||[])[r]};var d=function(t,e,r){return e===a||r===a?a:u(t,e,r)};function g(t){if(e&amp;&amp;&quot;carpet&quot;!==e.type&amp;&amp;&quot;contourcarpet&quot;!==e.type&amp;&amp;t&amp;&amp;&quot;category&quot;===t.type&amp;&amp;e[&quot;_&quot;+t._id.charAt(0)].length){var r=t._id.charAt(0),n={},o=e[&quot;_&quot;+r+&quot;CategoryMap&quot;]||e[r];for(f=0;f&lt;o.length;f++)n[o[f]]=f;return function(e){var r=n[t._categories[e]];return r+1?r:a}}return i.identity}var m=g(r),v=g(o);o&amp;&amp;&quot;category&quot;===o.type&amp;&amp;(s=o._categories.length);var y=new Array(s);for(f=0;f&lt;s;f++)for(l=r&amp;&amp;&quot;category&quot;===r.type?r._categories.length:c(t,f),y[f]=new Array(l),h=0;h&lt;l;h++)y[f][h]=p(d(t,v(f),m(h)));return y}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],1068:[function(t,e,r){&quot;use strict&quot;;e.exports={min:&quot;zmin&quot;,max:&quot;zmax&quot;}},{}],1069:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../plots/cartesian/align_period&quot;);e.exports=function(t,e,r,o,s,l){var c=t._length,u=e.makeCalcdata(t,o),f=r.makeCalcdata(t,s);u=a(t,e,o,u),f=a(t,r,s,f);var h,p,d,g,m=t.text,v=void 0!==m&amp;&amp;n.isArray1D(m),y=t.hovertext,x=void 0!==y&amp;&amp;n.isArray1D(y),b=n.distinctVals(u),_=b.vals,w=n.distinctVals(f),T=w.vals,k=[],M=T.length,A=_.length;for(h=0;h&lt;l.length;h++)k[h]=n.init2dArray(M,A);v&amp;&amp;(d=n.init2dArray(M,A)),x&amp;&amp;(g=n.init2dArray(M,A));var S=n.init2dArray(M,A);for(h=0;h&lt;c;h++)if(u[h]!==i&amp;&amp;f[h]!==i){var E=n.findBin(u[h]+b.minDiff/2,_),C=n.findBin(f[h]+w.minDiff/2,T);for(p=0;p&lt;l.length;p++){var L=t[l[p]];k[p][C][E]=L[h],S[C][E]=h}v&amp;&amp;(d[C][E]=m[h]),x&amp;&amp;(g[C][E]=y[h])}for(t[&quot;_&quot;+o]=_,t[&quot;_&quot;+s]=T,p=0;p&lt;l.length;p++)t[&quot;_&quot;+l[p]]=k[p];v&amp;&amp;(t._text=d),x&amp;&amp;(t._hovertext=g),e&amp;&amp;&quot;category&quot;===e.type&amp;&amp;(t[&quot;_&quot;+o+&quot;CategoryMap&quot;]=_.map((function(t){return e._categories[t]}))),r&amp;&amp;&quot;category&quot;===r.type&amp;&amp;(t[&quot;_&quot;+s+&quot;CategoryMap&quot;]=T.map((function(t){return r._categories[t]}))),t._after2before=S}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825}],1070:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./xyz_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./style_defaults&quot;),s=t(&quot;../../components/colorscale/defaults&quot;),l=t(&quot;./attributes&quot;);e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,l,r,i)}i(t,e,u,c)?(a(t,e,c,u),u(&quot;text&quot;),u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;),o(t,e,u,c),u(&quot;hoverongaps&quot;),u(&quot;connectgaps&quot;,n.isArray1D(e.z)&amp;&amp;!1!==e.zsmooth),s(t,e,c,u,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:1065,&quot;./style_defaults&quot;:1078,&quot;./xyz_defaults&quot;:1079}],1071:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).maxRowLength;e.exports=function(t){var e,r,i,a,o,s,l,c,u=[],f={},h=[],p=t[0],d=[],g=[0,0,0],m=n(t);for(r=0;r&lt;t.length;r++)for(e=d,d=p,p=t[r+1]||[],i=0;i&lt;m;i++)void 0===d[i]&amp;&amp;((s=(void 0!==d[i-1]?1:0)+(void 0!==d[i+1]?1:0)+(void 0!==e[i]?1:0)+(void 0!==p[i]?1:0))?(0===r&amp;&amp;s++,0===i&amp;&amp;s++,r===t.length-1&amp;&amp;s++,i===d.length-1&amp;&amp;s++,s&lt;4&amp;&amp;(f[[r,i]]=[r,i,s]),u.push([r,i,s])):h.push([r,i]));for(;h.length;){for(l={},c=!1,o=h.length-1;o&gt;=0;o--)(s=((f[[(r=(a=h[o])[0])-1,i=a[1]]]||g)[2]+(f[[r+1,i]]||g)[2]+(f[[r,i-1]]||g)[2]+(f[[r,i+1]]||g)[2])/20)&amp;&amp;(l[a]=[r,i,s],h.splice(o,1),c=!0);if(!c)throw&quot;findEmpties iterated with no new neighbors&quot;;for(a in l)f[a]=l[a],u.push(l[a])}return u.sort((function(t,e){return e[2]-t[2]}))}},{&quot;../../lib&quot;:778}],1072:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts;e.exports=function(t,e,r,s,l,c){var u,f,h,p,d=t.cd[0],g=d.trace,m=t.xa,v=t.ya,y=d.x,x=d.y,b=d.z,_=d.xCenter,w=d.yCenter,T=d.zmask,k=g.zhoverformat,M=y,A=x;if(!1!==t.index){try{h=Math.round(t.index[1]),p=Math.round(t.index[0])}catch(e){return void i.error(&quot;Error hovering on heatmap, pointNumber must be [row,col], found:&quot;,t.index)}if(h&lt;0||h&gt;=b[0].length||p&lt;0||p&gt;b.length)return}else{if(n.inbox(e-y[0],e-y[y.length-1],0)&gt;0||n.inbox(r-x[0],r-x[x.length-1],0)&gt;0)return;if(c){var S;for(M=[2*y[0]-y[1]],S=1;S&lt;y.length;S++)M.push((y[S]+y[S-1])/2);for(M.push([2*y[y.length-1]-y[y.length-2]]),A=[2*x[0]-x[1]],S=1;S&lt;x.length;S++)A.push((x[S]+x[S-1])/2);A.push([2*x[x.length-1]-x[x.length-2]])}h=Math.max(0,Math.min(M.length-2,i.findBin(e,M))),p=Math.max(0,Math.min(A.length-2,i.findBin(r,A)))}var E,C,L=m.c2p(y[h]),I=m.c2p(y[h+1]),P=v.c2p(x[p]),z=v.c2p(x[p+1]);c?(E=d.orig_x||y,C=d.orig_y||x,I=L,u=E[h],z=P,f=C[p]):(E=d.orig_x||_||y,C=d.orig_y||w||x,u=_?E[h]:(E[h]+E[h+1])/2,f=w?C[p]:(C[p]+C[p+1])/2,m&amp;&amp;&quot;category&quot;===m.type&amp;&amp;(u=y[h]),v&amp;&amp;&quot;category&quot;===v.type&amp;&amp;(f=x[p]),g.zsmooth&amp;&amp;(L=I=m.c2p(u),P=z=v.c2p(f)));var O=b[p][h];if(T&amp;&amp;!T[p][h]&amp;&amp;(O=void 0),void 0!==O||g.hoverongaps){var D;Array.isArray(d.hovertext)&amp;&amp;Array.isArray(d.hovertext[p])?D=d.hovertext[p][h]:Array.isArray(d.text)&amp;&amp;Array.isArray(d.text[p])&amp;&amp;(D=d.text[p][h]);var R=o(g),F={type:&quot;linear&quot;,range:[R.min,R.max],hoverformat:k,_separators:m._separators,_numFormat:m._numFormat},B=a.tickText(F,O,&quot;hover&quot;).text;return[i.extendFlat(t,{index:g._after2before?g._after2before[p][h]:[p,h],distance:t.maxHoverDistance,spikeDistance:t.maxSpikeDistance,x0:L,x1:I,y0:P,y1:z,xLabelVal:u,yLabelVal:f,zLabelVal:O,zLabel:B,text:D})]}}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1073:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:t(&quot;./colorbar&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;),moduleType:&quot;trace&quot;,name:&quot;heatmap&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1065,&quot;./calc&quot;:1066,&quot;./colorbar&quot;:1068,&quot;./defaults&quot;:1070,&quot;./hover&quot;:1072,&quot;./plot&quot;:1076,&quot;./style&quot;:1077}],1074:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=[[-1,0],[1,0],[0,-1],[0,1]];function a(t){return.5-.25*Math.min(1,.5*t)}function o(t,e,r){var n,a,o,s,l,c,u,f,h,p,d,g,m,v=0;for(s=0;s&lt;e.length;s++){for(a=(n=e[s])[0],o=n[1],d=t[a][o],p=0,h=0,l=0;l&lt;4;l++)(u=t[a+(c=i[l])[0]])&amp;&amp;void 0!==(f=u[o+c[1]])&amp;&amp;(0===p?g=m=f:(g=Math.min(g,f),m=Math.max(m,f)),h++,p+=f);if(0===h)throw&quot;iterateInterp2d order is wrong: no defined neighbors&quot;;t[a][o]=p/h,void 0===d?h&lt;4&amp;&amp;(v=1):(t[a][o]=(1+r)*t[a][o]-r*d,m&gt;g&amp;&amp;(v=Math.max(v,Math.abs(t[a][o]-d)/(m-g))))}return v}e.exports=function(t,e){var r,i=1;for(o(t,e),r=0;r&lt;e.length&amp;&amp;!(e[r][2]&lt;4);r++);for(e=e.slice(r),r=0;r&lt;100&amp;&amp;i&gt;.01;r++)i=o(t,e,a(i));return i&gt;.01&amp;&amp;n.log(&quot;interp2d didn't converge quickly&quot;,i),t}},{&quot;../../lib&quot;:778}],1075:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a,o,s){var l,c,u,f=[],h=n.traceIs(t,&quot;contour&quot;),p=n.traceIs(t,&quot;histogram&quot;),d=n.traceIs(t,&quot;gl2d&quot;);if(i(e)&amp;&amp;e.length&gt;1&amp;&amp;!p&amp;&amp;&quot;category&quot;!==s.type){var g=e.length;if(!(g&lt;=o))return h?e.slice(0,o):e.slice(0,o+1);if(h||d)f=e.slice(0,o);else if(1===o)f=[e[0]-.5,e[0]+.5];else{for(f=[1.5*e[0]-.5*e[1]],u=1;u&lt;g;u++)f.push(.5*(e[u-1]+e[u]));f.push(1.5*e[g-1]-.5*e[g-2])}if(g&lt;o){var m=f[f.length-1],v=m-f[f.length-2];for(u=g;u&lt;o;u++)m+=v,f.push(m)}}else{var y=t[s._id.charAt(0)+&quot;calendar&quot;];if(p)l=s.r2c(r,0,y);else if(i(e)&amp;&amp;1===e.length)l=e[0];else if(void 0===r)l=0;else{l=(&quot;log&quot;===s.type?s.d2c:s.r2c)(r,0,y)}for(c=a||1,u=h||d?0:-.5;u&lt;o;u++)f.push(l+c*u)}return f}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1076:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../components/colorscale&quot;).makeColorScaleFuncFromTrace,l=t(&quot;../../constants/xmlns_namespaces&quot;);function c(t,e){var r=e.length-2,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=e[n+1],s=o.constrain(n+(t-i)/(a-i)-.5,0,r),l=Math.round(s),c=Math.abs(s-l);return s&amp;&amp;s!==r&amp;&amp;c?{bin0:l,frac:c,bin1:Math.round(l+c/(s-l))}:{bin0:l,bin1:l,frac:0}}function u(t,e){var r=e.length-1,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=(t-i)/(e[n+1]-i)||0;return a&lt;=0?{bin0:n,bin1:n,frac:0}:a&lt;.5?{bin0:n,bin1:n+1,frac:a}:{bin0:n+1,bin1:n,frac:1-a}}function f(t,e,r){t[e]=r[0],t[e+1]=r[1],t[e+2]=r[2],t[e+3]=Math.round(255*r[3])}e.exports=function(t,e,r,h){var p=e.xaxis,d=e.yaxis;o.makeTraceGroups(h,r,&quot;hm&quot;).each((function(e){var r,h,g,m,v,y,x=n.select(this),b=e[0],_=b.trace,w=b.z,T=b.x,k=b.y,M=b.xCenter,A=b.yCenter,S=a.traceIs(_,&quot;contour&quot;),E=S?&quot;best&quot;:_.zsmooth,C=w.length,L=o.maxRowLength(w),I=!1,P=!1;for(y=0;void 0===r&amp;&amp;y&lt;T.length-1;)r=p.c2p(T[y]),y++;for(y=T.length-1;void 0===h&amp;&amp;y&gt;0;)h=p.c2p(T[y]),y--;for(h&lt;r&amp;&amp;(g=h,h=r,r=g,I=!0),y=0;void 0===m&amp;&amp;y&lt;k.length-1;)m=d.c2p(k[y]),y++;for(y=k.length-1;void 0===v&amp;&amp;y&gt;0;)v=d.c2p(k[y]),y--;if(v&lt;m&amp;&amp;(g=m,m=v,v=g,P=!0),S&amp;&amp;(M=T,A=k,T=b.xfill,k=b.yfill),&quot;fast&quot;!==E){var z=&quot;best&quot;===E?0:.5;r=Math.max(-z*p._length,r),h=Math.min((1+z)*p._length,h),m=Math.max(-z*d._length,m),v=Math.min((1+z)*d._length,v)}var O=Math.round(h-r),D=Math.round(v-m);if(O&lt;=0||D&lt;=0){x.selectAll(&quot;image&quot;).data([]).exit().remove()}else{var R,F;&quot;fast&quot;===E?(R=L,F=C):(R=O,F=D);var B=document.createElement(&quot;canvas&quot;);B.width=R,B.height=F;var N,j,U=B.getContext(&quot;2d&quot;),V=s(_,{noNumericCheck:!0,returnArray:!0});&quot;fast&quot;===E?(N=I?function(t){return L-1-t}:o.identity,j=P?function(t){return C-1-t}:o.identity):(N=function(t){return o.constrain(Math.round(p.c2p(T[t])-r),0,O)},j=function(t){return o.constrain(Math.round(d.c2p(k[t])-m),0,D)});var q,H,G,Y,W,X=j(0),Z=[X,X],J=I?0:1,K=P?0:1,Q=0,$=0,tt=0,et=0;if(E){var rt,nt=0;try{rt=new Uint8Array(O*D*4)}catch(t){rt=new Array(O*D*4)}if(&quot;best&quot;===E){var it,at,ot,st=M||T,lt=A||k,ct=new Array(st.length),ut=new Array(lt.length),ft=new Array(O),ht=M?u:c,pt=A?u:c;for(y=0;y&lt;st.length;y++)ct[y]=Math.round(p.c2p(st[y])-r);for(y=0;y&lt;lt.length;y++)ut[y]=Math.round(d.c2p(lt[y])-m);for(y=0;y&lt;O;y++)ft[y]=ht(y,ct);for(H=0;H&lt;D;H++)for(at=w[(it=pt(H,ut)).bin0],ot=w[it.bin1],y=0;y&lt;O;y++,nt+=4)f(rt,nt,W=kt(at,ot,ft[y],it))}else for(H=0;H&lt;C;H++)for(Y=w[H],Z=j(H),y=0;y&lt;O;y++)W=Tt(Y[y],1),f(rt,nt=4*(Z*O+N(y)),W);var dt=U.createImageData(O,D);try{dt.data.set(rt)}catch(t){var gt=dt.data,mt=gt.length;for(H=0;H&lt;mt;H++)gt[H]=rt[H]}U.putImageData(dt,0,0)}else{var vt=_.xgap,yt=_.ygap,xt=Math.floor(vt/2),bt=Math.floor(yt/2);for(H=0;H&lt;C;H++)if(Y=w[H],Z.reverse(),Z[K]=j(H+1),Z[0]!==Z[1]&amp;&amp;void 0!==Z[0]&amp;&amp;void 0!==Z[1])for(q=[G=N(0),G],y=0;y&lt;L;y++)q.reverse(),q[J]=N(y+1),q[0]!==q[1]&amp;&amp;void 0!==q[0]&amp;&amp;void 0!==q[1]&amp;&amp;(W=Tt(Y[y],(q[1]-q[0])*(Z[1]-Z[0])),U.fillStyle=&quot;rgba(&quot;+W.join(&quot;,&quot;)+&quot;)&quot;,U.fillRect(q[0]+xt,Z[0]+bt,q[1]-q[0]-vt,Z[1]-Z[0]-yt))}$=Math.round($/Q),tt=Math.round(tt/Q),et=Math.round(et/Q);var _t=i(&quot;rgb(&quot;+$+&quot;,&quot;+tt+&quot;,&quot;+et+&quot;)&quot;);t._hmpixcount=(t._hmpixcount||0)+Q,t._hmlumcount=(t._hmlumcount||0)+Q*_t.getLuminance();var wt=x.selectAll(&quot;image&quot;).data(e);wt.enter().append(&quot;svg:image&quot;).attr({xmlns:l.svg,preserveAspectRatio:&quot;none&quot;}),wt.attr({height:D,width:O,x:r,y:m,&quot;xlink:href&quot;:B.toDataURL(&quot;image/png&quot;)})}function Tt(t,e){if(void 0!==t){var r=V(t);return r[0]=Math.round(r[0]),r[1]=Math.round(r[1]),r[2]=Math.round(r[2]),Q+=e,$+=r[0]*e,tt+=r[1]*e,et+=r[2]*e,r}return[0,0,0,0]}function kt(t,e,r,n){var i=t[r.bin0];if(void 0===i)return Tt(void 0,1);var a,o=t[r.bin1],s=e[r.bin0],l=e[r.bin1],c=o-i||0,u=s-i||0;return a=void 0===o?void 0===l?0:void 0===s?2*(l-i):2*(2*l-s-i)/3:void 0===l?void 0===s?0:2*(2*i-o-s)/3:void 0===s?2*(2*l-o-i)/3:l+i-o-s,Tt(i+r.frac*c+n.frac*(u+r.frac*a))}}))}},{&quot;../../components/colorscale&quot;:655,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,d3:169,tinycolor2:576}],1077:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t){n.select(t).selectAll(&quot;.hm image&quot;).style(&quot;opacity&quot;,(function(t){return t.trace.opacity}))}},{d3:169}],1078:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){!1===r(&quot;zsmooth&quot;)&amp;&amp;(r(&quot;xgap&quot;),r(&quot;ygap&quot;)),r(&quot;zhoverformat&quot;)}},{}],1079:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;);function o(t,e){var r=e(t);return&quot;scaled&quot;===(r?e(t+&quot;type&quot;,&quot;array&quot;):&quot;scaled&quot;)&amp;&amp;(e(t+&quot;0&quot;),e(&quot;d&quot;+t)),r}e.exports=function(t,e,r,s,l,c){var u,f,h=r(&quot;z&quot;);if(l=l||&quot;x&quot;,c=c||&quot;y&quot;,void 0===h||!h.length)return 0;if(i.isArray1D(t.z)){u=r(l),f=r(c);var p=i.minRowLength(u),d=i.minRowLength(f);if(0===p||0===d)return 0;e._length=Math.min(p,d,h.length)}else{if(u=o(l,r),f=o(c,r),!function(t){for(var e,r=!0,a=!1,o=!1,s=0;s&lt;t.length;s++){if(e=t[s],!i.isArrayOrTypedArray(e)){r=!1;break}e.length&gt;0&amp;&amp;(a=!0);for(var l=0;l&lt;e.length;l++)if(n(e[l])){o=!0;break}}return r&amp;&amp;a&amp;&amp;o}(h))return 0;r(&quot;transpose&quot;),e._length=null}return&quot;heatmapgl&quot;===t.type||&quot;contourgl&quot;===t.type||a.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[l,c],s),!0}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;fast-isnumeric&quot;:241}],1080:[function(t,e,r){&quot;use strict&quot;;for(var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=[&quot;z&quot;,&quot;x&quot;,&quot;x0&quot;,&quot;dx&quot;,&quot;y&quot;,&quot;y0&quot;,&quot;dy&quot;,&quot;text&quot;,&quot;transpose&quot;,&quot;xtype&quot;,&quot;ytype&quot;],l={},c=0;c&lt;s.length;c++){var u=s[c];l[u]=n[u]}l.zsmooth={valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,!1],dflt:&quot;fast&quot;,editType:&quot;calc&quot;},a(l,i(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1})),e.exports=o(l,&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../heatmap/attributes&quot;:1065}],1081:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-heatmap2d&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../lib/str2rgbarray&quot;);function o(t,e){this.scene=t,this.uid=e,this.type=&quot;heatmapgl&quot;,this.name=&quot;&quot;,this.hoverinfo=&quot;all&quot;,this.xData=[],this.yData=[],this.zData=[],this.textLabels=[],this.idToIndex=[],this.bounds=[0,0,0,0],this.options={zsmooth:&quot;fast&quot;,z:[],x:[],y:[],shape:[0,0],colorLevels:[0],colorValues:[0,0,0,1]},this.heatmap=n(t.glplot,this.options),this.heatmap._trace=this}var s=o.prototype;s.handlePick=function(t){var e=this.options,r=e.shape,n=t.pointId,i=n%r[0],a=Math.floor(n/r[0]),o=n;return{trace:this,dataCoord:t.dataCoord,traceCoord:[e.x[i],e.y[a],e.z[o]],textLabel:this.textLabels[n],name:this.name,pointIndex:[a,i],hoverinfo:this.hoverinfo}},s.update=function(t,e){var r=e[0];this.index=t.index,this.name=t.name,this.hoverinfo=t.hoverinfo;var n=r.z;this.options.z=[].concat.apply([],n);var o=n[0].length,s=n.length;this.options.shape=[o,s],this.options.x=r.x,this.options.y=r.y,this.options.zsmooth=t.zsmooth;var l=function(t){for(var e=t.colorscale,r=t.zmin,n=t.zmax,i=e.length,o=new Array(i),s=new Array(4*i),l=0;l&lt;i;l++){var c=e[l],u=a(c[1]);o[l]=r+c[0]*(n-r);for(var f=0;f&lt;4;f++)s[4*l+f]=u[f]}return{colorLevels:o,colorValues:s}}(t);this.options.colorLevels=l.colorLevels,this.options.colorValues=l.colorValues,this.textLabels=[].concat.apply([],t.text),this.heatmap.update(this.options);var c,u,f=this.scene.xaxis,h=this.scene.yaxis;!1===t.zsmooth&amp;&amp;(c={ppad:r.x[1]-r.x[0]},u={ppad:r.y[1]-r.y[0]}),t._extremes[f._id]=i.findExtremes(f,r.x,c),t._extremes[h._id]=i.findExtremes(h,r.y,u)},s.dispose=function(){this.heatmap.dispose()},e.exports=function(t,e,r){var n=new o(t,e.uid);return n.update(e,r),n}},{&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/axes&quot;:828,&quot;gl-heatmap2d&quot;:271}],1082:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,l,s)?(l(&quot;text&quot;),l(&quot;zsmooth&quot;),a(t,e,s,l,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../heatmap/xyz_defaults&quot;:1079,&quot;./attributes&quot;:1080}],1083:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;../heatmap/calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;heatmapgl&quot;,basePlotModule:t(&quot;../../plots/gl2d&quot;),categories:[&quot;gl&quot;,&quot;gl2d&quot;,&quot;2dMap&quot;],meta:{}}},{&quot;../../plots/gl2d&quot;:868,&quot;../heatmap/calc&quot;:1066,&quot;../heatmap/colorbar&quot;:1068,&quot;./attributes&quot;:1080,&quot;./convert&quot;:1081,&quot;./defaults&quot;:1082}],1084:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;./bin_attributes&quot;),o=t(&quot;./constants&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},text:s({},n.text,{}),hovertext:s({},n.hovertext,{}),orientation:n.orientation,histfunc:{valType:&quot;enumerated&quot;,values:[&quot;count&quot;,&quot;sum&quot;,&quot;avg&quot;,&quot;min&quot;,&quot;max&quot;],dflt:&quot;count&quot;,editType:&quot;calc&quot;},histnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;percent&quot;,&quot;probability&quot;,&quot;density&quot;,&quot;probability density&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},cumulative:{enabled:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;increasing&quot;,&quot;decreasing&quot;],dflt:&quot;increasing&quot;,editType:&quot;calc&quot;},currentbin:{valType:&quot;enumerated&quot;,values:[&quot;include&quot;,&quot;exclude&quot;,&quot;half&quot;],dflt:&quot;include&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},nbinsx:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},xbins:a(&quot;x&quot;,!0),nbinsy:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},ybins:a(&quot;y&quot;,!0),autobinx:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},autobiny:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},bingroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertemplate:i({},{keys:o.eventDataKeys}),marker:n.marker,offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,_deprecated:{bardir:n._deprecated.bardir}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;./bin_attributes&quot;:1086,&quot;./constants&quot;:1090}],1085:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=t.length,n=0,i=0;i&lt;r;i++)e[i]?(t[i]/=e[i],n+=t[i]):t[i]=null;return n}},{}],1086:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return{start:{valType:&quot;any&quot;,editType:&quot;calc&quot;},end:{valType:&quot;any&quot;,editType:&quot;calc&quot;},size:{valType:&quot;any&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;}}},{}],1087:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports={count:function(t,e,r){return r[t]++,1},sum:function(t,e,r,i){var a=i[e];return n(a)?(a=Number(a),r[t]+=a,a):0},avg:function(t,e,r,i,a){var o=i[e];return n(o)&amp;&amp;(o=Number(o),r[t]+=o,a[t]++),0},min:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]&gt;a){var o=a-r[t];return r[t]=a,o}}return 0},max:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]&lt;a){var o=a-r[t];return r[t]=a,o}}return 0}}},{&quot;fast-isnumeric&quot;:241}],1088:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/numerical&quot;),i=n.ONEAVGYEAR,a=n.ONEAVGMONTH,o=n.ONEDAY,s=n.ONEHOUR,l=n.ONEMIN,c=n.ONESEC,u=t(&quot;../../plots/cartesian/axes&quot;).tickIncrement;function f(t,e,r,n){if(t*e&lt;=0)return 1/0;for(var i=Math.abs(e-t),a=&quot;date&quot;===r.type,o=h(i,a),s=0;s&lt;10;s++){var l=h(80*o,a);if(o===l)break;if(!p(l,t,e,a,r,n))break;o=l}return o}function h(t,e){return e&amp;&amp;t&gt;c?t&gt;o?t&gt;1.1*i?i:t&gt;1.1*a?a:o:t&gt;s?s:t&gt;l?l:c:Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function p(t,e,r,n,a,s){if(n&amp;&amp;t&gt;o){var l=d(e,a,s),c=d(r,a,s),u=t===i?0:1;return l[u]!==c[u]}return Math.floor(r/t)-Math.floor(e/t)&gt;.1}function d(t,e,r){var n=e.c2d(t,i,r).split(&quot;-&quot;);return&quot;&quot;===n[0]&amp;&amp;(n.unshift(),n[0]=&quot;-&quot;+n[0]),n}e.exports=function(t,e,r,n,a){var s,l,c=-1.1*e,h=-.1*e,p=t-h,d=r[0],g=r[1],m=Math.min(f(d+h,d+p,n,a),f(g+h,g+p,n,a)),v=Math.min(f(d+c,d+h,n,a),f(g+c,g+h,n,a));if(m&gt;v&amp;&amp;v&lt;Math.abs(g-d)/4e3?(s=m,l=!1):(s=Math.min(m,v),l=!0),&quot;date&quot;===n.type&amp;&amp;s&gt;o){var y=s===i?1:6,x=s===i?&quot;M12&quot;:&quot;M1&quot;;return function(e,r){var o=n.c2d(e,i,a),s=o.indexOf(&quot;-&quot;,y);s&gt;0&amp;&amp;(o=o.substr(0,s));var c=n.d2c(o,0,a);if(c&lt;e){var f=u(c,x,!1,a);(c+f)/2&lt;e+t&amp;&amp;(c=f)}return r&amp;&amp;l?u(c,x,!0,a):c}}return function(e,r){var n=s*Math.round(e/s);return n+s/10&lt;e&amp;&amp;n+.9*s&lt;e+t&amp;&amp;(n+=s),r&amp;&amp;l&amp;&amp;(n-=s),n}}},{&quot;../../constants/numerical&quot;:753,&quot;../../plots/cartesian/axes&quot;:828}],1089:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../bar/arrays_to_calcdata&quot;),l=t(&quot;./bin_functions&quot;),c=t(&quot;./norm_functions&quot;),u=t(&quot;./average&quot;),f=t(&quot;./bin_label_vals&quot;);function h(t,e,r,s,l){var c,u,f,p,d,g,m,v=s+&quot;bins&quot;,y=t._fullLayout,x=e[&quot;_&quot;+s+&quot;bingroup&quot;],b=y._histogramBinOpts[x],_=&quot;overlay&quot;===y.barmode,w=function(t){return r.r2c(t,0,p)},T=function(t){return r.c2r(t,0,p)},k=&quot;date&quot;===r.type?function(t){return t||0===t?i.cleanDate(t,null,p):null}:function(t){return n(t)?Number(t):null};function M(t,e,r){e[t+&quot;Found&quot;]?(e[t]=k(e[t]),null===e[t]&amp;&amp;(e[t]=r[t])):(g[t]=e[t]=r[t],i.nestedProperty(u[0],v+&quot;.&quot;+t).set(r[t]))}if(e[&quot;_&quot;+s+&quot;autoBinFinished&quot;])delete e[&quot;_&quot;+s+&quot;autoBinFinished&quot;];else{u=b.traces;var A=[],S=!0,E=!1,C=!1;for(c=0;c&lt;u.length;c++)if((f=u[c]).visible){var L=b.dirs[c];d=f[&quot;_&quot;+L+&quot;pos0&quot;]=r.makeCalcdata(f,L),A=i.concat(A,d),delete f[&quot;_&quot;+s+&quot;autoBinFinished&quot;],!0===e.visible&amp;&amp;(S?S=!1:(delete f._autoBin,f[&quot;_&quot;+s+&quot;autoBinFinished&quot;]=1),a.traceIs(f,&quot;2dMap&quot;)&amp;&amp;(E=!0),&quot;histogram2dcontour&quot;===f.type&amp;&amp;(C=!0))}p=u[0][s+&quot;calendar&quot;];var I=o.autoBin(A,r,b.nbins,E,p,b.sizeFound&amp;&amp;b.size),P=u[0]._autoBin={};if(g=P[b.dirs[0]]={},C&amp;&amp;(b.size||(I.start=T(o.tickIncrement(w(I.start),I.size,!0,p))),void 0===b.end&amp;&amp;(I.end=T(o.tickIncrement(w(I.end),I.size,!1,p)))),_&amp;&amp;!a.traceIs(e,&quot;2dMap&quot;)&amp;&amp;0===I._dataSpan&amp;&amp;&quot;category&quot;!==r.type&amp;&amp;&quot;multicategory&quot;!==r.type){if(l)return[I,d,!0];I=function(t,e,r,n,a){var o,s,l,c=t._fullLayout,u=function(t,e){for(var r=e.xaxis,n=e.yaxis,i=e.orientation,a=[],o=t._fullData,s=0;s&lt;o.length;s++){var l=o[s];&quot;histogram&quot;===l.type&amp;&amp;!0===l.visible&amp;&amp;l.orientation===i&amp;&amp;l.xaxis===r&amp;&amp;l.yaxis===n&amp;&amp;a.push(l)}return a}(t,e),f=!1,p=1/0,d=[e];for(o=0;o&lt;u.length;o++)if((s=u[o])===e)f=!0;else if(f){var g=h(t,s,r,n,!0),m=g[0],v=g[2];s[&quot;_&quot;+n+&quot;autoBinFinished&quot;]=1,s[&quot;_&quot;+n+&quot;pos0&quot;]=g[1],v?d.push(s):p=Math.min(p,m.size)}else l=c._histogramBinOpts[s[&quot;_&quot;+n+&quot;bingroup&quot;]],p=Math.min(p,l.size||s[a].size);var y=new Array(d.length);for(o=0;o&lt;d.length;o++)for(var x=d[o][&quot;_&quot;+n+&quot;pos0&quot;],b=0;b&lt;x.length;b++)if(void 0!==x[b]){y[o]=x[b];break}isFinite(p)||(p=i.distinctVals(y).minDiff);for(o=0;o&lt;d.length;o++){var _=(s=d[o])[n+&quot;calendar&quot;],w={start:r.c2r(y[o]-p/2,0,_),end:r.c2r(y[o]+p/2,0,_),size:p};s._input[a]=s[a]=w,(l=c._histogramBinOpts[s[&quot;_&quot;+n+&quot;bingroup&quot;]])&amp;&amp;i.extendFlat(l,w)}return e[a]}(t,e,r,s,v)}(m=f.cumulative||{}).enabled&amp;&amp;&quot;include&quot;!==m.currentbin&amp;&amp;(&quot;decreasing&quot;===m.direction?I.start=T(o.tickIncrement(w(I.start),I.size,!0,p)):I.end=T(o.tickIncrement(w(I.end),I.size,!1,p))),b.size=I.size,b.sizeFound||(g.size=I.size,i.nestedProperty(u[0],v+&quot;.size&quot;).set(I.size)),M(&quot;start&quot;,b,I),M(&quot;end&quot;,b,I)}d=e[&quot;_&quot;+s+&quot;pos0&quot;],delete e[&quot;_&quot;+s+&quot;pos0&quot;];var z=e._input[v]||{},O=i.extendFlat({},b),D=b.start,R=r.r2l(z.start),F=void 0!==R;if((b.startFound||F)&amp;&amp;R!==r.r2l(D)){var B=F?R:i.aggNums(Math.min,null,d),N={type:&quot;category&quot;===r.type||&quot;multicategory&quot;===r.type?&quot;linear&quot;:r.type,r2l:r.r2l,dtick:b.size,tick0:D,calendar:p,range:[B,o.tickIncrement(B,b.size,!1,p)].map(r.l2r)},j=o.tickFirst(N);j&gt;r.r2l(B)&amp;&amp;(j=o.tickIncrement(j,b.size,!0,p)),O.start=r.l2r(j),F||i.nestedProperty(e,v+&quot;.start&quot;).set(O.start)}var U=b.end,V=r.r2l(z.end),q=void 0!==V;if((b.endFound||q)&amp;&amp;V!==r.r2l(U)){var H=q?V:i.aggNums(Math.max,null,d);O.end=r.l2r(H),q||i.nestedProperty(e,v+&quot;.start&quot;).set(O.end)}var G=&quot;autobin&quot;+s;return!1===e._input[G]&amp;&amp;(e._input[v]=i.extendFlat({},e[v]||{}),delete e._input[G],delete e[G]),[O,d]}e.exports={calc:function(t,e){var r,a,p,d,g=[],m=[],v=o.getFromId(t,&quot;h&quot;===e.orientation?e.yaxis:e.xaxis),y=&quot;h&quot;===e.orientation?&quot;y&quot;:&quot;x&quot;,x={x:&quot;y&quot;,y:&quot;x&quot;}[y],b=e[y+&quot;calendar&quot;],_=e.cumulative,w=h(t,e,v,y),T=w[0],k=w[1],M=&quot;string&quot;==typeof T.size,A=[],S=M?A:T,E=[],C=[],L=[],I=0,P=e.histnorm,z=e.histfunc,O=-1!==P.indexOf(&quot;density&quot;);_.enabled&amp;&amp;O&amp;&amp;(P=P.replace(/ ?density$/,&quot;&quot;),O=!1);var D,R=&quot;max&quot;===z||&quot;min&quot;===z?null:0,F=l.count,B=c[P],N=!1,j=function(t){return v.r2c(t,0,b)};for(i.isArrayOrTypedArray(e[x])&amp;&amp;&quot;count&quot;!==z&amp;&amp;(D=e[x],N=&quot;avg&quot;===z,F=l[z]),r=j(T.start),p=j(T.end)+(r-o.tickIncrement(r,T.size,!1,b))/1e6;r&lt;p&amp;&amp;g.length&lt;1e6&amp;&amp;(a=o.tickIncrement(r,T.size,!1,b),g.push((r+a)/2),m.push(R),L.push([]),A.push(r),O&amp;&amp;E.push(1/(a-r)),N&amp;&amp;C.push(0),!(a&lt;=r));)r=a;A.push(r),M||&quot;date&quot;!==v.type||(S={start:j(S.start),end:j(S.end),size:S.size}),t._fullLayout._roundFnOpts||(t._fullLayout._roundFnOpts={});var U=e[&quot;_&quot;+y+&quot;bingroup&quot;],V={leftGap:1/0,rightGap:1/0};U&amp;&amp;(t._fullLayout._roundFnOpts[U]||(t._fullLayout._roundFnOpts[U]=V),V=t._fullLayout._roundFnOpts[U]);var q,H=m.length,G=!0,Y=V.leftGap,W=V.rightGap,X={};for(r=0;r&lt;k.length;r++){var Z=k[r];(d=i.findBin(Z,S))&gt;=0&amp;&amp;d&lt;H&amp;&amp;(I+=F(d,r,m,D,C),G&amp;&amp;L[d].length&amp;&amp;Z!==k[L[d][0]]&amp;&amp;(G=!1),L[d].push(r),X[r]=d,Y=Math.min(Y,Z-A[d]),W=Math.min(W,A[d+1]-Z))}V.leftGap=Y,V.rightGap=W,G||(q=function(e,r){return function(){var n=t._fullLayout._roundFnOpts[U];return f(n.leftGap,n.rightGap,A,v,b)(e,r)}}),N&amp;&amp;(I=u(m,C)),B&amp;&amp;B(m,I,E),_.enabled&amp;&amp;function(t,e,r){var n,i,a;function o(e){a=t[e],t[e]/=2}function s(e){i=t[e],t[e]=a+i/2,a+=i}if(&quot;half&quot;===r)if(&quot;increasing&quot;===e)for(o(0),n=1;n&lt;t.length;n++)s(n);else for(o(t.length-1),n=t.length-2;n&gt;=0;n--)s(n);else if(&quot;increasing&quot;===e){for(n=1;n&lt;t.length;n++)t[n]+=t[n-1];&quot;exclude&quot;===r&amp;&amp;(t.unshift(0),t.pop())}else{for(n=t.length-2;n&gt;=0;n--)t[n]+=t[n+1];&quot;exclude&quot;===r&amp;&amp;(t.push(0),t.shift())}}(m,_.direction,_.currentbin);var J=Math.min(g.length,m.length),K=[],Q=0,$=J-1;for(r=0;r&lt;J;r++)if(m[r]){Q=r;break}for(r=J-1;r&gt;=Q;r--)if(m[r]){$=r;break}for(r=Q;r&lt;=$;r++)if(n(g[r])&amp;&amp;n(m[r])){var tt={p:g[r],s:m[r],b:0};_.enabled||(tt.pts=L[r],G?tt.ph0=tt.ph1=L[r].length?k[L[r][0]]:g[r]:(e._computePh=!0,tt.ph0=q(A[r]),tt.ph1=q(A[r+1],!0))),K.push(tt)}return 1===K.length&amp;&amp;(K[0].width1=o.tickIncrement(K[0].p,T.size,!1,b)-K[0].p),s(K,e),i.isArrayOrTypedArray(e.selectedpoints)&amp;&amp;i.tagSelected(K,e,X),K},calcAllAutoBins:h}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../bar/arrays_to_calcdata&quot;:920,&quot;./average&quot;:1085,&quot;./bin_functions&quot;:1087,&quot;./bin_label_vals&quot;:1088,&quot;./norm_functions&quot;:1096,&quot;fast-isnumeric&quot;:241}],1090:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;binNumber&quot;]}},{}],1091:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axis_ids&quot;),a=t(&quot;../../registry&quot;).traceIs,o=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,s=n.nestedProperty,l=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,c=[{aStr:{x:&quot;xbins.start&quot;,y:&quot;ybins.start&quot;},name:&quot;start&quot;},{aStr:{x:&quot;xbins.end&quot;,y:&quot;ybins.end&quot;},name:&quot;end&quot;},{aStr:{x:&quot;xbins.size&quot;,y:&quot;ybins.size&quot;},name:&quot;size&quot;},{aStr:{x:&quot;nbinsx&quot;,y:&quot;nbinsy&quot;},name:&quot;nbins&quot;}],u=[&quot;x&quot;,&quot;y&quot;];e.exports=function(t,e){var r,f,h,p,d,g,m,v=e._histogramBinOpts={},y=[],x={},b=[];function _(t,e){return n.coerce(r._input,r,r._module.attributes,t,e)}function w(t){return&quot;v&quot;===t.orientation?&quot;x&quot;:&quot;y&quot;}function T(t,r,a){var o=t.uid+&quot;__&quot;+a;r||(r=o);var s=function(t,r){return i.getFromTrace({_fullLayout:e},t,r).type}(t,a),l=t[a+&quot;calendar&quot;]||&quot;&quot;,c=v[r],u=!0;c&amp;&amp;(s===c.axType&amp;&amp;l===c.calendar?(u=!1,c.traces.push(t),c.dirs.push(a)):(r=o,s!==c.axType&amp;&amp;n.warn([&quot;Attempted to group the bins of trace&quot;,t.index,&quot;set on a&quot;,&quot;type:&quot;+s,&quot;axis&quot;,&quot;with bins on&quot;,&quot;type:&quot;+c.axType,&quot;axis.&quot;].join(&quot; &quot;)),l!==c.calendar&amp;&amp;n.warn([&quot;Attempted to group the bins of trace&quot;,t.index,&quot;set with a&quot;,l,&quot;calendar&quot;,&quot;with bins&quot;,c.calendar?&quot;on a &quot;+c.calendar+&quot; calendar&quot;:&quot;w/o a set calendar&quot;].join(&quot; &quot;)))),u&amp;&amp;(v[r]={traces:[t],dirs:[a],axType:s,calendar:t[a+&quot;calendar&quot;]||&quot;&quot;}),t[&quot;_&quot;+a+&quot;bingroup&quot;]=r}for(d=0;d&lt;t.length;d++)r=t[d],a(r,&quot;histogram&quot;)&amp;&amp;(y.push(r),delete r._xautoBinFinished,delete r._yautoBinFinished,a(r,&quot;2dMap&quot;)||o(r._input,r,e,_));var k=e._alignmentOpts||{};for(d=0;d&lt;y.length;d++){if(r=y[d],h=&quot;&quot;,!a(r,&quot;2dMap&quot;)){if(p=w(r),&quot;group&quot;===e.barmode&amp;&amp;r.alignmentgroup){var M=r[p+&quot;axis&quot;],A=l(e,M)+r.orientation;(k[A]||{})[r.alignmentgroup]&amp;&amp;(h=A)}h||&quot;overlay&quot;===e.barmode||(h=l(e,r.xaxis)+l(e,r.yaxis)+w(r))}h?(x[h]||(x[h]=[]),x[h].push(r)):b.push(r)}for(h in x)if(1!==(f=x[h]).length){var S=!1;for(f.length&amp;&amp;(r=f[0],S=_(&quot;bingroup&quot;)),h=S||h,d=0;d&lt;f.length;d++){var E=(r=f[d])._input.bingroup;E&amp;&amp;E!==h&amp;&amp;n.warn([&quot;Trace&quot;,r.index,&quot;must match&quot;,&quot;within bingroup&quot;,h+&quot;.&quot;,&quot;Ignoring its bingroup:&quot;,E,&quot;setting.&quot;].join(&quot; &quot;)),r.bingroup=h,T(r,h,w(r))}}else b.push(f[0]);for(d=0;d&lt;b.length;d++){r=b[d];var C=_(&quot;bingroup&quot;);if(a(r,&quot;2dMap&quot;))for(m=0;m&lt;2;m++){var L=_((p=u[m])+&quot;bingroup&quot;,C?C+&quot;__&quot;+p:null);T(r,L,p)}else T(r,C,w(r))}for(h in v){var I=v[h];for(f=I.traces,g=0;g&lt;c.length;g++){var P,z,O=c[g],D=O.name;if(&quot;nbins&quot;!==D||!I.sizeFound){for(d=0;d&lt;f.length;d++){if(r=f[d],p=I.dirs[d],P=O.aStr[p],void 0!==s(r._input,P).get()){I[D]=_(P),I[D+&quot;Found&quot;]=!0;break}(z=(r._autoBin||{})[p]||{})[D]&amp;&amp;s(r,P).set(z[D])}if(&quot;start&quot;===D||&quot;end&quot;===D)for(;d&lt;f.length;d++)(r=f[d])[&quot;_&quot;+p+&quot;bingroup&quot;]&amp;&amp;_(P,(z=(r._autoBin||{})[p]||{})[D]);&quot;nbins&quot;!==D||I.sizeFound||I.nbinsFound||(r=f[0],I[D]=_(P))}}}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/cartesian/constraints&quot;:835,&quot;../../registry&quot;:911,&quot;../bar/defaults&quot;:925}],1092:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../bar/style_defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,n){return i.coerce(t,e,s,r,n)}var u=c(&quot;x&quot;),f=c(&quot;y&quot;);c(&quot;cumulative.enabled&quot;)&amp;&amp;(c(&quot;cumulative.direction&quot;),c(&quot;cumulative.currentbin&quot;)),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;);var h=c(&quot;orientation&quot;,f&amp;&amp;!u?&quot;h&quot;:&quot;v&quot;),p=&quot;v&quot;===h?&quot;x&quot;:&quot;y&quot;,d=&quot;v&quot;===h?&quot;y&quot;:&quot;x&quot;,g=u&amp;&amp;f?Math.min(i.minRowLength(u)&amp;&amp;i.minRowLength(f)):i.minRowLength(e[p]||[]);if(g){e._length=g,n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],l),e[d]&amp;&amp;c(&quot;histfunc&quot;),c(&quot;histnorm&quot;),c(&quot;autobin&quot;+p),o(t,e,c,r,l),i.coerceSelectionMarkerOpacity(e,c);var m=(e.marker.line||{}).color,v=n.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);v(t,e,m||a.defaultLine,{axis:&quot;y&quot;}),v(t,e,m||a.defaultLine,{axis:&quot;x&quot;,inherit:&quot;y&quot;})}else e.visible=!1}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../bar/style_defaults&quot;:936,&quot;./attributes&quot;:1084}],1093:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){if(t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;zLabelVal&quot;in e&amp;&amp;(t.z=e.zLabelVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),!(r.cumulative||{}).enabled){var a,o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;if(t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex,r._indexToPoints){a=[];for(var s=0;s&lt;o.length;s++)a=a.concat(r._indexToPoints[o[s]])}else a=o;t.pointIndices=a}return t}},{}],1094:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/hover&quot;).hoverPoints,i=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText;e.exports=function(t,e,r,a){var o=n(t,e,r,a);if(o){var s=(t=o[0]).cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var c=&quot;h&quot;===l.orientation?&quot;y&quot;:&quot;x&quot;;t[c+&quot;Label&quot;]=i(t[c+&quot;a&quot;],s.ph0,s.ph1)}return o}}},{&quot;../../plots/cartesian/axes&quot;:828,&quot;../bar/hover&quot;:928}],1095:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;../bar/layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),supplyLayoutDefaults:t(&quot;../bar/layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;../bar/cross_trace_calc&quot;).crossTraceCalc,plot:t(&quot;../bar/plot&quot;).plot,layerName:&quot;barlayer&quot;,style:t(&quot;../bar/style&quot;).style,styleOnSelect:t(&quot;../bar/style&quot;).styleOnSelect,colorbar:t(&quot;../scatter/marker_colorbar&quot;),hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../bar/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;bar&quot;,&quot;histogram&quot;,&quot;oriented&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../bar/cross_trace_calc&quot;:924,&quot;../bar/layout_attributes&quot;:930,&quot;../bar/layout_defaults&quot;:931,&quot;../bar/plot&quot;:932,&quot;../bar/select&quot;:933,&quot;../bar/style&quot;:935,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1084,&quot;./calc&quot;:1089,&quot;./cross_trace_defaults&quot;:1091,&quot;./defaults&quot;:1092,&quot;./event_data&quot;:1093,&quot;./hover&quot;:1094}],1096:[function(t,e,r){&quot;use strict&quot;;e.exports={percent:function(t,e){for(var r=t.length,n=100/e,i=0;i&lt;r;i++)t[i]*=n},probability:function(t,e){for(var r=t.length,n=0;n&lt;r;n++)t[n]/=e},density:function(t,e,r,n){var i=t.length;n=n||1;for(var a=0;a&lt;i;a++)t[a]*=r[a]*n},&quot;probability density&quot;:function(t,e,r,n){var i=t.length;n&amp;&amp;(e/=n);for(var a=0;a&lt;i;a++)t[a]*=r[a]/e}}},{}],1097:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../histogram/attributes&quot;),i=t(&quot;../histogram/bin_attributes&quot;),a=t(&quot;../heatmap/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../components/colorscale/attributes&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=c({x:n.x,y:n.y,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},marker:{color:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:i(&quot;x&quot;),nbinsy:n.nbinsy,ybins:i(&quot;y&quot;),autobinx:n.autobinx,autobiny:n.autobiny,bingroup:c({},n.bingroup,{}),xbingroup:c({},n.bingroup,{}),ybingroup:c({},n.bingroup,{}),xgap:a.xgap,ygap:a.ygap,zsmooth:a.zsmooth,zhoverformat:a.zhoverformat,hovertemplate:s({},{keys:&quot;z&quot;}),showlegend:c({},o.showlegend,{dflt:!1})},l(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../heatmap/attributes&quot;:1065,&quot;../histogram/attributes&quot;:1084,&quot;../histogram/bin_attributes&quot;:1086}],1098:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../histogram/bin_functions&quot;),o=t(&quot;../histogram/norm_functions&quot;),s=t(&quot;../histogram/average&quot;),l=t(&quot;../histogram/bin_label_vals&quot;),c=t(&quot;../histogram/calc&quot;).calcAllAutoBins;function u(t,e,r,n){var i,a=new Array(t);if(n)for(i=0;i&lt;t;i++)a[i]=1/(e[i+1]-e[i]);else{var o=1/r;for(i=0;i&lt;t;i++)a[i]=o}return a}function f(t,e){return{start:t(e.start),end:t(e.end),size:e.size}}function h(t,e,r,n,i,a){var o,s=t.length-1,c=new Array(s),u=l(r,n,t,i,a);for(o=0;o&lt;s;o++){var f=(e||[])[o];c[o]=void 0===f?[u(t[o]),u(t[o+1],!0)]:[f,f]}return c}e.exports=function(t,e){var r,l,p,d,g=i.getFromId(t,e.xaxis),m=i.getFromId(t,e.yaxis),v=e.xcalendar,y=e.ycalendar,x=function(t){return g.r2c(t,0,v)},b=function(t){return m.r2c(t,0,y)},_=c(t,e,g,&quot;x&quot;),w=_[0],T=_[1],k=c(t,e,m,&quot;y&quot;),M=k[0],A=k[1],S=e._length;T.length&gt;S&amp;&amp;T.splice(S,T.length-S),A.length&gt;S&amp;&amp;A.splice(S,A.length-S);var E=[],C=[],L=[],I=&quot;string&quot;==typeof w.size,P=&quot;string&quot;==typeof M.size,z=[],O=[],D=I?z:w,R=P?O:M,F=0,B=[],N=[],j=e.histnorm,U=e.histfunc,V=-1!==j.indexOf(&quot;density&quot;),q=&quot;max&quot;===U||&quot;min&quot;===U?null:0,H=a.count,G=o[j],Y=!1,W=[],X=[],Z=&quot;z&quot;in e?e.z:&quot;marker&quot;in e&amp;&amp;Array.isArray(e.marker.color)?e.marker.color:&quot;&quot;;Z&amp;&amp;&quot;count&quot;!==U&amp;&amp;(Y=&quot;avg&quot;===U,H=a[U]);var J=w.size,K=x(w.start),Q=x(w.end)+(K-i.tickIncrement(K,J,!1,v))/1e6;for(r=K;r&lt;Q;r=i.tickIncrement(r,J,!1,v))C.push(q),z.push(r),Y&amp;&amp;L.push(0);z.push(r);var $,tt=C.length,et=(r-K)/tt,rt=($=K+et/2,g.c2r($,0,v)),nt=M.size,it=b(M.start),at=b(M.end)+(it-i.tickIncrement(it,nt,!1,y))/1e6;for(r=it;r&lt;at;r=i.tickIncrement(r,nt,!1,y)){E.push(C.slice()),O.push(r);var ot=new Array(tt);for(l=0;l&lt;tt;l++)ot[l]=[];N.push(ot),Y&amp;&amp;B.push(L.slice())}O.push(r);var st=E.length,lt=(r-it)/st,ct=function(t){return m.c2r(t,0,y)}(it+lt/2);V&amp;&amp;(W=u(C.length,D,et,I),X=u(E.length,R,lt,P)),I||&quot;date&quot;!==g.type||(D=f(x,D)),P||&quot;date&quot;!==m.type||(R=f(b,R));var ut=!0,ft=!0,ht=new Array(tt),pt=new Array(st),dt=1/0,gt=1/0,mt=1/0,vt=1/0;for(r=0;r&lt;S;r++){var yt=T[r],xt=A[r];p=n.findBin(yt,D),d=n.findBin(xt,R),p&gt;=0&amp;&amp;p&lt;tt&amp;&amp;d&gt;=0&amp;&amp;d&lt;st&amp;&amp;(F+=H(p,r,E[d],Z,B[d]),N[d][p].push(r),ut&amp;&amp;(void 0===ht[p]?ht[p]=yt:ht[p]!==yt&amp;&amp;(ut=!1)),ft&amp;&amp;(void 0===pt[d]?pt[d]=xt:pt[d]!==xt&amp;&amp;(ft=!1)),dt=Math.min(dt,yt-z[p]),gt=Math.min(gt,z[p+1]-yt),mt=Math.min(mt,xt-O[d]),vt=Math.min(vt,O[d+1]-xt))}if(Y)for(d=0;d&lt;st;d++)F+=s(E[d],B[d]);if(G)for(d=0;d&lt;st;d++)G(E[d],F,W,X[d]);return{x:T,xRanges:h(z,ut&amp;&amp;ht,dt,gt,g,v),x0:rt,dx:et,y:A,yRanges:h(O,ft&amp;&amp;pt,mt,vt,m,y),y0:ct,dy:lt,z:E,pts:N}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../histogram/average&quot;:1085,&quot;../histogram/bin_functions&quot;:1087,&quot;../histogram/bin_label_vals&quot;:1088,&quot;../histogram/calc&quot;:1089,&quot;../histogram/norm_functions&quot;:1096}],1099:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./sample_defaults&quot;),a=t(&quot;../heatmap/style_defaults&quot;),o=t(&quot;../../components/colorscale/defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&amp;&amp;(a(t,e,c,l),o(t,e,l,c,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),c(&quot;hovertemplate&quot;))}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../heatmap/style_defaults&quot;:1078,&quot;./attributes&quot;:1097,&quot;./sample_defaults&quot;:1102}],1100:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/hover&quot;),i=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText;e.exports=function(t,e,r,a,o,s){var l=n(t,e,r,a,o,s);if(l){var c=(t=l[0]).index,u=c[0],f=c[1],h=t.cd[0],p=h.xRanges[f],d=h.yRanges[u];return t.xLabel=i(t.xa,p[0],p[1]),t.yLabel=i(t.ya,d[0],d[1]),l}}},{&quot;../../plots/cartesian/axes&quot;:828,&quot;../heatmap/hover&quot;:1072}],1101:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../histogram/cross_trace_defaults&quot;),calc:t(&quot;../heatmap/calc&quot;),plot:t(&quot;../heatmap/plot&quot;),layerName:&quot;heatmaplayer&quot;,colorbar:t(&quot;../heatmap/colorbar&quot;),style:t(&quot;../heatmap/style&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;../histogram/event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram2d&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;histogram&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../heatmap/calc&quot;:1066,&quot;../heatmap/colorbar&quot;:1068,&quot;../heatmap/plot&quot;:1076,&quot;../heatmap/style&quot;:1077,&quot;../histogram/cross_trace_defaults&quot;:1091,&quot;../histogram/event_data&quot;:1093,&quot;./attributes&quot;:1097,&quot;./defaults&quot;:1099,&quot;./hover&quot;:1100}],1102:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=r(&quot;x&quot;),s=r(&quot;y&quot;),l=i.minRowLength(o),c=i.minRowLength(s);l&amp;&amp;c?(e._length=Math.min(l,c),n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],a),(r(&quot;z&quot;)||r(&quot;marker.color&quot;))&amp;&amp;r(&quot;histfunc&quot;),r(&quot;histnorm&quot;),r(&quot;autobinx&quot;),r(&quot;autobiny&quot;)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1103:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../histogram2d/attributes&quot;),i=t(&quot;../contour/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=o({x:n.x,y:n.y,z:n.z,marker:n.marker,histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:n.xbins,nbinsy:n.nbinsy,ybins:n.ybins,autobinx:n.autobinx,autobiny:n.autobiny,bingroup:n.bingroup,xbingroup:n.xbingroup,ybingroup:n.ybingroup,autocontour:i.autocontour,ncontours:i.ncontours,contours:i.contours,line:{color:i.line.color,width:o({},i.line.width,{dflt:.5}),dash:i.line.dash,smoothing:i.line.smoothing,editType:&quot;plot&quot;},zhoverformat:n.zhoverformat,hovertemplate:n.hovertemplate},a(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../contour/attributes&quot;:1008,&quot;../histogram2d/attributes&quot;:1097}],1104:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../histogram2d/sample_defaults&quot;),a=t(&quot;../contour/contours_defaults&quot;),o=t(&quot;../contour/style_defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&amp;&amp;(a(t,e,c,(function(r){return n.coerce2(t,e,s,r)})),o(t,e,c,l),c(&quot;hovertemplate&quot;))}},{&quot;../../lib&quot;:778,&quot;../contour/contours_defaults&quot;:1015,&quot;../contour/style_defaults&quot;:1029,&quot;../histogram2d/sample_defaults&quot;:1102,&quot;./attributes&quot;:1103}],1105:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../histogram/cross_trace_defaults&quot;),calc:t(&quot;../contour/calc&quot;),plot:t(&quot;../contour/plot&quot;).plot,layerName:&quot;contourlayer&quot;,style:t(&quot;../contour/style&quot;),colorbar:t(&quot;../contour/colorbar&quot;),hoverPoints:t(&quot;../contour/hover&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram2dcontour&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;contour&quot;,&quot;histogram&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../contour/calc&quot;:1009,&quot;../contour/colorbar&quot;:1011,&quot;../contour/hover&quot;:1021,&quot;../contour/plot&quot;:1026,&quot;../contour/style&quot;:1028,&quot;../histogram/cross_trace_defaults&quot;:1091,&quot;./attributes&quot;:1103,&quot;./defaults&quot;:1104}],1106:[function(t,e,r){&quot;use strict&quot;;for(var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;./constants&quot;).colormodel,s=[&quot;rgb&quot;,&quot;rgba&quot;,&quot;rgba256&quot;,&quot;hsl&quot;,&quot;hsla&quot;],l=[],c=[],u=0;u&lt;s.length;u++){var f=o[s[u]];l.push(&quot;For the `&quot;+s[u]+&quot;` colormodel, it is [&quot;+(f.zminDflt||f.min).join(&quot;, &quot;)+&quot;].&quot;),c.push(&quot;For the `&quot;+s[u]+&quot;` colormodel, it is [&quot;+(f.zmaxDflt||f.max).join(&quot;, &quot;)+&quot;].&quot;)}e.exports=a({source:{valType:&quot;string&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},colormodel:{valType:&quot;enumerated&quot;,values:s,editType:&quot;calc&quot;},zmin:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},zmax:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},x0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},y0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dx:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},dy:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},text:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hovertext:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hoverinfo:a({},n.hoverinfo,{flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;color&quot;,&quot;name&quot;,&quot;text&quot;],dflt:&quot;x+y+z+text+name&quot;}),hovertemplate:i({},{keys:[&quot;z&quot;,&quot;color&quot;,&quot;colormodel&quot;]}),transforms:void 0})},{&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;./constants&quot;:1108}],1107:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constants&quot;),a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../../lib&quot;).maxRowLength,l=t(&quot;./helpers&quot;).getImageSize;function c(t,e,r,i){return function(a){return n.constrain((a-t)*e,r,i)}}function u(t,e){return function(r){return n.constrain(r,t,e)}}e.exports=function(t,e){var r,n;if(e._hasZ)r=e.z.length,n=s(e.z);else if(e._hasSource){var f=l(e.source);r=f.height,n=f.width}var h,p=o.getFromId(t,e.xaxis||&quot;x&quot;),d=o.getFromId(t,e.yaxis||&quot;y&quot;),g=p.d2c(e.x0)-e.dx/2,m=d.d2c(e.y0)-e.dy/2,v=[g,g+n*e.dx],y=[m,m+r*e.dy];if(p&amp;&amp;&quot;log&quot;===p.type)for(h=0;h&lt;n;h++)v.push(g+h*e.dx);if(d&amp;&amp;&quot;log&quot;===d.type)for(h=0;h&lt;r;h++)y.push(m+h*e.dy);return e._extremes[p._id]=o.findExtremes(p,v),e._extremes[d._id]=o.findExtremes(d,y),e._scaler=function(t){var e=i.colormodel[t.colormodel],r=(e.colormodel||t.colormodel).length;t._sArray=[];for(var n=0;n&lt;r;n++)e.min[n]!==t.zmin[n]||e.max[n]!==t.zmax[n]?t._sArray.push(c(t.zmin[n],(e.max[n]-e.min[n])/(t.zmax[n]-t.zmin[n]),e.min[n],e.max[n])):t._sArray.push(u(e.min[n],e.max[n]));return function(e){for(var n=e.slice(0,r),i=0;i&lt;r;i++){var o=n[i];if(!a(o))return!1;n[i]=t._sArray[i](o)}return n}}(e),[{x0:g,y0:m,z:e.z,w:n,h:r}]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./constants&quot;:1108,&quot;./helpers&quot;:1111,&quot;fast-isnumeric&quot;:241}],1108:[function(t,e,r){&quot;use strict&quot;;e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(t){return t.slice(0,3)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]},rgba256:{colormodel:&quot;rgba&quot;,zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(t){var e=t.slice(0,3);return e[1]=e[1]+&quot;%&quot;,e[2]=e[2]+&quot;%&quot;,e},suffix:[&quot;\xb0&quot;,&quot;%&quot;,&quot;%&quot;]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(t){var e=t.slice(0,4);return e[1]=e[1]+&quot;%&quot;,e[2]=e[2]+&quot;%&quot;,e},suffix:[&quot;\xb0&quot;,&quot;%&quot;,&quot;%&quot;,&quot;&quot;]}}}},{}],1109:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./constants&quot;),o=t(&quot;../../snapshot/helpers&quot;).IMAGE_URL_PREFIX;e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;source&quot;),e.source&amp;&amp;!e.source.match(o)&amp;&amp;delete e.source,e._hasSource=!!e.source;var s,l=r(&quot;z&quot;);(e._hasZ=!(void 0===l||!l.length||!l[0]||!l[0].length),e._hasZ||e._hasSource)?(r(&quot;x0&quot;),r(&quot;y0&quot;),r(&quot;dx&quot;),r(&quot;dy&quot;),e._hasZ?(r(&quot;colormodel&quot;,&quot;rgb&quot;),r(&quot;zmin&quot;,(s=a.colormodel[e.colormodel]).zminDflt||s.min),r(&quot;zmax&quot;,s.zmaxDflt||s.max)):e._hasSource&amp;&amp;(e.colormodel=&quot;rgba256&quot;,s=a.colormodel[e.colormodel],e.zmin=s.zminDflt,e.zmax=s.zmaxDflt),r(&quot;text&quot;),r(&quot;hovertext&quot;),r(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../snapshot/helpers&quot;:915,&quot;./attributes&quot;:1106,&quot;./constants&quot;:1108}],1110:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return&quot;xVal&quot;in e&amp;&amp;(t.x=e.xVal),&quot;yVal&quot;in e&amp;&amp;(t.y=e.yVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t.color=e.color,t.colormodel=e.trace.colormodel,t.z||(t.z=e.color),t}},{}],1111:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;image-size&quot;),i=t(&quot;../../snapshot/helpers&quot;).IMAGE_URL_PREFIX,a=t(&quot;buffer/&quot;).Buffer;r.getImageSize=function(t){var e=t.replace(i,&quot;&quot;),r=new a(e,&quot;base64&quot;);return n(r)}},{&quot;../../snapshot/helpers&quot;:915,&quot;buffer/&quot;:111,&quot;image-size&quot;:444}],1112:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./constants&quot;);e.exports=function(t,e,r){var o=t.cd[0],s=o.trace,l=t.xa,c=t.ya;if(!(n.inbox(e-o.x0,e-(o.x0+o.w*s.dx),0)&gt;0||n.inbox(r-o.y0,r-(o.y0+o.h*s.dy),0)&gt;0)){var u,f=Math.floor((e-o.x0)/s.dx),h=Math.floor(Math.abs(r-o.y0)/s.dy);if(s._hasZ?u=o.z[h][f]:s._hasSource&amp;&amp;(u=s._canvas.el.getContext(&quot;2d&quot;).getImageData(f,h,1,1).data),u){var p,d=o.hi||s.hoverinfo;if(d){var g=d.split(&quot;+&quot;);-1!==g.indexOf(&quot;all&quot;)&amp;&amp;(g=[&quot;color&quot;]),-1!==g.indexOf(&quot;color&quot;)&amp;&amp;(p=!0)}var m,v=a.colormodel[s.colormodel],y=v.colormodel||s.colormodel,x=y.length,b=s._scaler(u),_=v.suffix,w=[];(s.hovertemplate||p)&amp;&amp;(w.push(&quot;[&quot;+[b[0]+_[0],b[1]+_[1],b[2]+_[2]].join(&quot;, &quot;)),4===x&amp;&amp;w.push(&quot;, &quot;+b[3]+_[3]),w.push(&quot;]&quot;),w=w.join(&quot;&quot;),t.extraText=y.toUpperCase()+&quot;: &quot;+w),Array.isArray(s.hovertext)&amp;&amp;Array.isArray(s.hovertext[h])?m=s.hovertext[h][f]:Array.isArray(s.text)&amp;&amp;Array.isArray(s.text[h])&amp;&amp;(m=s.text[h][f]);var T=c.c2p(o.y0+(h+.5)*s.dy),k=o.x0+(f+.5)*s.dx,M=o.y0+(h+.5)*s.dy,A=&quot;[&quot;+u.slice(0,s.colormodel.length).join(&quot;, &quot;)+&quot;]&quot;;return[i.extendFlat(t,{index:[h,f],x0:l.c2p(o.x0+f*s.dx),x1:l.c2p(o.x0+(f+1)*s.dx),y0:T,y1:T,color:b,xVal:k,xLabelVal:k,yVal:M,yLabelVal:M,zLabelVal:A,text:m,hovertemplateLabels:{zLabel:A,colorLabel:w,&quot;color[0]Label&quot;:b[0]+_[0],&quot;color[1]Label&quot;:b[1]+_[1],&quot;color[2]Label&quot;:b[2]+_[2],&quot;color[3]Label&quot;:b[3]+_[3]}})]}}}},{&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;./constants&quot;:1108}],1113:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;image&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;noSortingByValue&quot;],animatable:!1,meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1106,&quot;./calc&quot;:1107,&quot;./defaults&quot;:1109,&quot;./event_data&quot;:1110,&quot;./hover&quot;:1112,&quot;./plot&quot;:1114,&quot;./style&quot;:1115}],1114:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=i.strTranslate,o=t(&quot;../../constants/xmlns_namespaces&quot;),s=t(&quot;./constants&quot;),l=i.isIOS()||i.isSafari()||i.isIE();e.exports=function(t,e,r,c){var u=e.xaxis,f=e.yaxis,h=!(l||t._context._exportedPlot);i.makeTraceGroups(c,r,&quot;im&quot;).each((function(e){var r=n.select(this),l=e[0],c=l.trace,p=h&amp;&amp;!c._hasZ&amp;&amp;c._hasSource&amp;&amp;&quot;linear&quot;===u.type&amp;&amp;&quot;linear&quot;===f.type;c._fastImage=p;var d,g,m,v,y,x,b=l.z,_=l.x0,w=l.y0,T=l.w,k=l.h,M=c.dx,A=c.dy;for(x=0;void 0===d&amp;&amp;x&lt;T;)d=u.c2p(_+x*M),x++;for(x=T;void 0===g&amp;&amp;x&gt;0;)g=u.c2p(_+x*M),x--;for(x=0;void 0===v&amp;&amp;x&lt;k;)v=f.c2p(w+x*A),x++;for(x=k;void 0===y&amp;&amp;x&gt;0;)y=f.c2p(w+x*A),x--;if(g&lt;d&amp;&amp;(m=g,g=d,d=m),y&lt;v&amp;&amp;(m=v,v=y,y=m),!p){d=Math.max(-.5*u._length,d),g=Math.min(1.5*u._length,g),v=Math.max(-.5*f._length,v),y=Math.min(1.5*f._length,y)}var S=Math.round(g-d),E=Math.round(y-v);if(S&lt;=0||E&lt;=0){r.selectAll(&quot;image&quot;).data([]).exit().remove()}else{var C=r.selectAll(&quot;image&quot;).data([e]);C.enter().append(&quot;svg:image&quot;).attr({xmlns:o.svg,preserveAspectRatio:&quot;none&quot;}),C.exit().remove();var L=&quot;image-rendering: optimizeSpeed; image-rendering: -moz-crisp-edges; image-rendering: -o-crisp-edges; image-rendering: -webkit-optimize-contrast; image-rendering: optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;&quot;;if(p){var I=i.simpleMap(u.range,u.r2l),P=i.simpleMap(f.range,f.r2l),z=I[1]&lt;I[0],O=P[1]&gt;P[0];if(z||O){var D=d+S/2,R=v+E/2;L+=&quot;transform:&quot;+a(D+&quot;px&quot;,R+&quot;px&quot;)+&quot;scale(&quot;+(z?-1:1)+&quot;,&quot;+(O?-1:1)+&quot;)&quot;+a(-D+&quot;px&quot;,-R+&quot;px&quot;)+&quot;;&quot;}}C.attr(&quot;style&quot;,L);var F=new Promise((function(t){if(c._hasZ)t();else if(c._hasSource)if(c._canvas&amp;&amp;c._canvas.el.width===T&amp;&amp;c._canvas.el.height===k&amp;&amp;c._canvas.source===c.source)t();else{var e=document.createElement(&quot;canvas&quot;);e.width=T,e.height=k;var r=e.getContext(&quot;2d&quot;);c._image=c._image||new Image;var n=c._image;n.onload=function(){r.drawImage(n,0,0),c._canvas={el:e,source:c.source},t()},n.setAttribute(&quot;src&quot;,c.source)}})).then((function(){var t;if(c._hasZ)t=B((function(t,e){return b[e][t]})).toDataURL(&quot;image/png&quot;);else if(c._hasSource)if(p)t=c.source;else{var e=c._canvas.el.getContext(&quot;2d&quot;).getImageData(0,0,T,k).data;t=B((function(t,r){var n=4*(r*T+t);return[e[n],e[n+1],e[n+2],e[n+3]]})).toDataURL(&quot;image/png&quot;)}C.attr({&quot;xlink:href&quot;:t,height:E,width:S,x:d,y:v})}));t._promises.push(F)}function B(t){var e=document.createElement(&quot;canvas&quot;);e.width=S,e.height=E;var r,n=e.getContext(&quot;2d&quot;),a=function(t){return i.constrain(Math.round(u.c2p(_+t*M)-d),0,S)},o=function(t){return i.constrain(Math.round(f.c2p(w+t*A)-v),0,E)},h=s.colormodel[c.colormodel],p=h.colormodel||c.colormodel,g=h.fmt;for(x=0;x&lt;l.w;x++){var m=a(x),y=a(x+1);if(y!==m&amp;&amp;!isNaN(y)&amp;&amp;!isNaN(m))for(var b=0;b&lt;l.h;b++){var T=o(b),k=o(b+1);k===T||isNaN(k)||isNaN(T)||!t(x,b)||(r=c._scaler(t(x,b)),n.fillStyle=r?p+&quot;(&quot;+g(r).join(&quot;,&quot;)+&quot;)&quot;:&quot;rgba(0,0,0,0)&quot;,n.fillRect(m,T,y-m,k-T))}}return e}}))}},{&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;./constants&quot;:1108,d3:169}],1115:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t){n.select(t).selectAll(&quot;.im image&quot;).style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity}))}},{d3:169}],1116:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;../../lib/extend&quot;).extendDeep,a=t(&quot;../../plot_api/edit_types&quot;).overrideAll,o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../components/color/attributes&quot;),l=t(&quot;../../plots/domain&quot;).attributes,c=t(&quot;../../plots/cartesian/layout_attributes&quot;),u=t(&quot;../../plot_api/plot_template&quot;).templatedArray,f=t(&quot;../../constants/delta.js&quot;),h=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,o({editType:&quot;plot&quot;,colorEditType:&quot;plot&quot;})),p={color:{valType:&quot;color&quot;,editType:&quot;plot&quot;},line:{color:{valType:&quot;color&quot;,dflt:s.defaultLine,editType:&quot;plot&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},thickness:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;plot&quot;},editType:&quot;calc&quot;},d={valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},g=u(&quot;step&quot;,i({},p,{range:d}));e.exports={mode:{valType:&quot;flaglist&quot;,editType:&quot;calc&quot;,flags:[&quot;number&quot;,&quot;delta&quot;,&quot;gauge&quot;],dflt:&quot;number&quot;},value:{valType:&quot;number&quot;,editType:&quot;calc&quot;,anim:!0},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;plot&quot;},domain:l({name:&quot;indicator&quot;,trace:!0,editType:&quot;calc&quot;}),title:{text:{valType:&quot;string&quot;,editType:&quot;plot&quot;},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;plot&quot;},font:n({},h,{}),editType:&quot;plot&quot;},number:{valueformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},font:n({},h,{}),prefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},suffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;},delta:{reference:{valType:&quot;number&quot;,editType:&quot;calc&quot;},position:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;right&quot;],dflt:&quot;bottom&quot;,editType:&quot;plot&quot;},relative:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;,dflt:!1},valueformat:{valType:&quot;string&quot;,editType:&quot;plot&quot;},increasing:{symbol:{valType:&quot;string&quot;,dflt:f.INCREASING.SYMBOL,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:f.INCREASING.COLOR,editType:&quot;plot&quot;},editType:&quot;plot&quot;},decreasing:{symbol:{valType:&quot;string&quot;,dflt:f.DECREASING.SYMBOL,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:f.DECREASING.COLOR,editType:&quot;plot&quot;},editType:&quot;plot&quot;},font:n({},h,{}),editType:&quot;calc&quot;},gauge:{shape:{valType:&quot;enumerated&quot;,editType:&quot;plot&quot;,dflt:&quot;angular&quot;,values:[&quot;angular&quot;,&quot;bullet&quot;]},bar:i({},p,{color:{dflt:&quot;green&quot;}}),bgcolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:s.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},axis:a({range:d,visible:n({},c.visible,{dflt:!0}),tickmode:c.tickmode,nticks:c.nticks,tick0:c.tick0,dtick:c.dtick,tickvals:c.tickvals,ticktext:c.ticktext,ticks:n({},c.ticks,{dflt:&quot;outside&quot;}),ticklen:c.ticklen,tickwidth:c.tickwidth,tickcolor:c.tickcolor,showticklabels:c.showticklabels,tickfont:o({}),tickangle:c.tickangle,tickformat:c.tickformat,tickformatstops:c.tickformatstops,tickprefix:c.tickprefix,showtickprefix:c.showtickprefix,ticksuffix:c.ticksuffix,showticksuffix:c.showticksuffix,separatethousands:c.separatethousands,exponentformat:c.exponentformat,minexponent:c.minexponent,showexponent:c.showexponent,editType:&quot;plot&quot;},&quot;plot&quot;),steps:g,threshold:{line:{color:n({},p.line.color,{}),width:n({},p.line.width,{dflt:1}),editType:&quot;plot&quot;},thickness:n({},p.thickness,{dflt:.85}),value:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:!1},editType:&quot;plot&quot;},editType:&quot;plot&quot;}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../constants/delta.js&quot;:747,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856}],1117:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;indicator&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1118:[function(t,e,r){&quot;use strict&quot;;e.exports={calc:function(t,e){var r=[],n=e.value;&quot;number&quot;!=typeof e._lastValue&amp;&amp;(e._lastValue=e.value);var i=e._lastValue,a=i;return e._hasDelta&amp;&amp;&quot;number&quot;==typeof e.delta.reference&amp;&amp;(a=e.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}}},{}],1119:[function(t,e,r){&quot;use strict&quot;;e.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}},{}],1120:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../../plot_api/plot_template&quot;),s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;./constants.js&quot;),c=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),u=t(&quot;../../plots/cartesian/tick_mark_defaults&quot;),f=t(&quot;../../plots/cartesian/tick_label_defaults&quot;);function h(t,e){function r(r,a){return n.coerce(t,e,i.gauge.steps,r,a)}r(&quot;color&quot;),r(&quot;line.color&quot;),r(&quot;line.width&quot;),r(&quot;range&quot;),r(&quot;thickness&quot;)}e.exports={supplyDefaults:function(t,e,r,p){function d(r,a){return n.coerce(t,e,i,r,a)}a(e,p,d),d(&quot;mode&quot;),e._hasNumber=-1!==e.mode.indexOf(&quot;number&quot;),e._hasDelta=-1!==e.mode.indexOf(&quot;delta&quot;),e._hasGauge=-1!==e.mode.indexOf(&quot;gauge&quot;);var g=d(&quot;value&quot;);e._range=[0,&quot;number&quot;==typeof g?1.5*g:1];var m,v,y,x,b,_,w=new Array(2);function T(t,e){return n.coerce(y,x,i.gauge,t,e)}function k(t,e){return n.coerce(b,_,i.gauge.axis,t,e)}if(e._hasNumber&amp;&amp;(d(&quot;number.valueformat&quot;),d(&quot;number.font.color&quot;,p.font.color),d(&quot;number.font.family&quot;,p.font.family),d(&quot;number.font.size&quot;),void 0===e.number.font.size&amp;&amp;(e.number.font.size=l.defaultNumberFontSize,w[0]=!0),d(&quot;number.prefix&quot;),d(&quot;number.suffix&quot;),m=e.number.font.size),e._hasDelta&amp;&amp;(d(&quot;delta.font.color&quot;,p.font.color),d(&quot;delta.font.family&quot;,p.font.family),d(&quot;delta.font.size&quot;),void 0===e.delta.font.size&amp;&amp;(e.delta.font.size=(e._hasNumber?.5:1)*(m||l.defaultNumberFontSize),w[1]=!0),d(&quot;delta.reference&quot;,e.value),d(&quot;delta.relative&quot;),d(&quot;delta.valueformat&quot;,e.delta.relative?&quot;2%&quot;:&quot;&quot;),d(&quot;delta.increasing.symbol&quot;),d(&quot;delta.increasing.color&quot;),d(&quot;delta.decreasing.symbol&quot;),d(&quot;delta.decreasing.color&quot;),d(&quot;delta.position&quot;),v=e.delta.font.size),e._scaleNumbers=(!e._hasNumber||w[0])&amp;&amp;(!e._hasDelta||w[1])||!1,d(&quot;title.font.color&quot;,p.font.color),d(&quot;title.font.family&quot;,p.font.family),d(&quot;title.font.size&quot;,.25*(m||v||l.defaultNumberFontSize)),d(&quot;title.text&quot;),e._hasGauge){(y=t.gauge)||(y={}),x=o.newContainer(e,&quot;gauge&quot;),T(&quot;shape&quot;),(e._isBullet=&quot;bullet&quot;===e.gauge.shape)||d(&quot;title.align&quot;,&quot;center&quot;),(e._isAngular=&quot;angular&quot;===e.gauge.shape)||d(&quot;align&quot;,&quot;center&quot;),T(&quot;bgcolor&quot;,p.paper_bgcolor),T(&quot;borderwidth&quot;),T(&quot;bordercolor&quot;),T(&quot;bar.color&quot;),T(&quot;bar.line.color&quot;),T(&quot;bar.line.width&quot;),T(&quot;bar.thickness&quot;,l.valueThickness*(&quot;bullet&quot;===e.gauge.shape?.5:1)),s(y,x,{name:&quot;steps&quot;,handleItemDefaults:h}),T(&quot;threshold.value&quot;),T(&quot;threshold.thickness&quot;),T(&quot;threshold.line.width&quot;),T(&quot;threshold.line.color&quot;),b={},y&amp;&amp;(b=y.axis||{}),_=o.newContainer(x,&quot;axis&quot;),k(&quot;visible&quot;),e._range=k(&quot;range&quot;,e._range);var M={outerTicks:!0};c(b,_,k,&quot;linear&quot;),f(b,_,k,&quot;linear&quot;,M),u(b,_,k,M)}else d(&quot;title.align&quot;,&quot;center&quot;),d(&quot;align&quot;,&quot;center&quot;),e._isAngular=e._isBullet=!1;e._length=null}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/tick_label_defaults&quot;:849,&quot;../../plots/cartesian/tick_mark_defaults&quot;:850,&quot;../../plots/cartesian/tick_value_defaults&quot;:851,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1116,&quot;./constants.js&quot;:1119}],1121:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;indicator&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;svg&quot;,&quot;noOpacity&quot;,&quot;noHover&quot;],animatable:!0,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./plot&quot;),meta:{}}},{&quot;./attributes&quot;:1116,&quot;./base_plot&quot;:1117,&quot;./calc&quot;:1118,&quot;./defaults&quot;:1120,&quot;./plot&quot;:1122}],1122:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=i.strScale,o=i.strTranslate,s=i.rad2deg,l=t(&quot;../../constants/alignment&quot;).MID_SHIFT,c=t(&quot;../../components/drawing&quot;),u=t(&quot;./constants&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../plots/cartesian/axes&quot;),p=t(&quot;../../plots/cartesian/axis_defaults&quot;),d=t(&quot;../../plots/cartesian/position_defaults&quot;),g=t(&quot;../../plots/cartesian/layout_attributes&quot;),m=t(&quot;../../components/color&quot;),v={left:&quot;start&quot;,center:&quot;middle&quot;,right:&quot;end&quot;},y={left:0,center:.5,right:1},x=/[yzafpn\xb5mkMGTPEZY]/;function b(t){return t&amp;&amp;t.duration&gt;0}function _(t){t.each((function(t){m.stroke(n.select(this),t.line.color)})).each((function(t){m.fill(n.select(this),t.color)})).style(&quot;stroke-width&quot;,(function(t){return t.line.width}))}function w(t,e,r){var n=t._fullLayout,a=i.extendFlat({type:&quot;linear&quot;,ticks:&quot;outside&quot;,range:r,showline:!0},e),o={type:&quot;linear&quot;,_id:&quot;x&quot;+e._id},s={letter:&quot;x&quot;,font:n.font,noHover:!0,noTickson:!0};function l(t,e){return i.coerce(a,o,g,t,e)}return p(a,o,l,s,n),d(a,o,l,s),o}function T(t,e,r){return[Math.min(e/t.width,r/t.height),t,e+&quot;x&quot;+r]}function k(t,e,r,i){var a=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;text&quot;),o=n.select(a);return o.text(t).attr(&quot;x&quot;,0).attr(&quot;y&quot;,0).attr(&quot;text-anchor&quot;,r).attr(&quot;data-unformatted&quot;,t).call(f.convertToTspans,i).call(c.font,e),c.bBox(o.node())}function M(t,e,r,n,a,o){var s=&quot;_cache&quot;+e;t[s]&amp;&amp;t[s].key===a||(t[s]={key:a,value:r});var l=i.aggNums(o,null,[t[s].value,n],2);return t[s].value=l,l}e.exports=function(t,e,r,p){var d,g=t._fullLayout;b(r)&amp;&amp;p&amp;&amp;(d=p()),i.makeTraceGroups(g._indicatorlayer,e,&quot;trace&quot;).each((function(e){var p,A,S,E,C,L=e[0].trace,I=n.select(this),P=L._hasGauge,z=L._isAngular,O=L._isBullet,D=L.domain,R={w:g._size.w*(D.x[1]-D.x[0]),h:g._size.h*(D.y[1]-D.y[0]),l:g._size.l+g._size.w*D.x[0],r:g._size.r+g._size.w*(1-D.x[1]),t:g._size.t+g._size.h*(1-D.y[1]),b:g._size.b+g._size.h*D.y[0]},F=R.l+R.w/2,B=R.t+R.h/2,N=Math.min(R.w/2,R.h),j=u.innerRadius*N,U=L.align||&quot;center&quot;;if(A=B,P){if(z&amp;&amp;(p=F,A=B+N/2,S=function(t){return function(t,e){var r=Math.sqrt(t.width/2*(t.width/2)+t.height*t.height);return[e/r,t,e]}(t,.9*j)}),O){var V=u.bulletPadding,q=1-u.bulletNumberDomainSize+V;p=R.l+(q+(1-q)*y[U])*R.w,S=function(t){return T(t,(u.bulletNumberDomainSize-V)*R.w,R.h)}}}else p=R.l+y[U]*R.w,S=function(t){return T(t,R.w,R.h)};!function(t,e,r,s){var l,u,p,d=r[0].trace,g=s.numbersX,_=s.numbersY,T=d.align||&quot;center&quot;,A=v[T],S=s.transitionOpts,E=s.onComplete,C=i.ensureSingle(e,&quot;g&quot;,&quot;numbers&quot;),L=[];d._hasNumber&amp;&amp;L.push(&quot;number&quot;);d._hasDelta&amp;&amp;(L.push(&quot;delta&quot;),&quot;left&quot;===d.delta.position&amp;&amp;L.reverse());var I=C.selectAll(&quot;text&quot;).data(L);function P(e,r,n,i){if(!e.match(&quot;s&quot;)||n&gt;=0==i&gt;=0||r(n).slice(-1).match(x)||r(i).slice(-1).match(x))return r;var a=e.slice().replace(&quot;s&quot;,&quot;f&quot;).replace(/\d+/,(function(t){return parseInt(t)-1})),o=w(t,{tickformat:a});return function(t){return Math.abs(t)&lt;1?h.tickText(o,t).text:r(t)}}I.enter().append(&quot;text&quot;),I.attr(&quot;text-anchor&quot;,(function(){return A})).attr(&quot;class&quot;,(function(t){return t})).attr(&quot;x&quot;,null).attr(&quot;y&quot;,null).attr(&quot;dx&quot;,null).attr(&quot;dy&quot;,null),I.exit().remove();var z,O=d.mode+d.align;d._hasDelta&amp;&amp;(z=function(){var e=w(t,{tickformat:d.delta.valueformat},d._range);e.setScale(),h.prepTicks(e);var i=function(t){return h.tickText(e,t).text},a=function(t){return d.delta.relative?t.relativeDelta:t.delta},o=function(t,e){return 0===t||&quot;number&quot;!=typeof t||isNaN(t)?&quot;-&quot;:(t&gt;0?d.delta.increasing.symbol:d.delta.decreasing.symbol)+e(t)},s=function(t){return t.delta&gt;=0?d.delta.increasing.color:d.delta.decreasing.color};void 0===d._deltaLastValue&amp;&amp;(d._deltaLastValue=a(r[0]));var l=C.select(&quot;text.delta&quot;);function p(){l.text(o(a(r[0]),i)).call(m.fill,s(r[0])).call(f.convertToTspans,t)}return l.call(c.font,d.delta.font).call(m.fill,s({delta:d._deltaLastValue})),b(S)?l.transition().duration(S.duration).ease(S.easing).tween(&quot;text&quot;,(function(){var t=n.select(this),e=a(r[0]),l=d._deltaLastValue,c=P(d.delta.valueformat,i,l,e),u=n.interpolateNumber(l,e);return d._deltaLastValue=e,function(e){t.text(o(u(e),c)),t.call(m.fill,s({delta:u(e)}))}})).each(&quot;end&quot;,(function(){p(),E&amp;&amp;E()})).each(&quot;interrupt&quot;,(function(){p(),E&amp;&amp;E()})):p(),u=k(o(a(r[0]),i),d.delta.font,A,t),l}(),O+=d.delta.position+d.delta.font.size+d.delta.font.family+d.delta.valueformat,O+=d.delta.increasing.symbol+d.delta.decreasing.symbol,p=u);d._hasNumber&amp;&amp;(!function(){var e=w(t,{tickformat:d.number.valueformat},d._range);e.setScale(),h.prepTicks(e);var i=function(t){return h.tickText(e,t).text},a=d.number.suffix,o=d.number.prefix,s=C.select(&quot;text.number&quot;);function u(){var e=&quot;number&quot;==typeof r[0].y?o+i(r[0].y)+a:&quot;-&quot;;s.text(e).call(c.font,d.number.font).call(f.convertToTspans,t)}b(S)?s.transition().duration(S.duration).ease(S.easing).each(&quot;end&quot;,(function(){u(),E&amp;&amp;E()})).each(&quot;interrupt&quot;,(function(){u(),E&amp;&amp;E()})).attrTween(&quot;text&quot;,(function(){var t=n.select(this),e=n.interpolateNumber(r[0].lastY,r[0].y);d._lastValue=r[0].y;var s=P(d.number.valueformat,i,r[0].lastY,r[0].y);return function(r){t.text(o+s(e(r))+a)}})):u(),l=k(o+i(r[0].y)+a,d.number.font,A,t)}(),O+=d.number.font.size+d.number.font.family+d.number.valueformat+d.number.suffix+d.number.prefix,p=l);if(d._hasDelta&amp;&amp;d._hasNumber){var D,R,F=[(l.left+l.right)/2,(l.top+l.bottom)/2],B=[(u.left+u.right)/2,(u.top+u.bottom)/2],N=.75*d.delta.font.size;&quot;left&quot;===d.delta.position&amp;&amp;(D=M(d,&quot;deltaPos&quot;,0,-1*(l.width*y[d.align]+u.width*(1-y[d.align])+N),O,Math.min),R=F[1]-B[1],p={width:l.width+u.width+N,height:Math.max(l.height,u.height),left:u.left+D,right:l.right,top:Math.min(l.top,u.top+R),bottom:Math.max(l.bottom,u.bottom+R)}),&quot;right&quot;===d.delta.position&amp;&amp;(D=M(d,&quot;deltaPos&quot;,0,l.width*(1-y[d.align])+u.width*y[d.align]+N,O,Math.max),R=F[1]-B[1],p={width:l.width+u.width+N,height:Math.max(l.height,u.height),left:l.left,right:u.right+D,top:Math.min(l.top,u.top+R),bottom:Math.max(l.bottom,u.bottom+R)}),&quot;bottom&quot;===d.delta.position&amp;&amp;(D=null,R=u.height,p={width:Math.max(l.width,u.width),height:l.height+u.height,left:Math.min(l.left,u.left),right:Math.max(l.right,u.right),top:l.bottom-l.height,bottom:l.bottom+u.height}),&quot;top&quot;===d.delta.position&amp;&amp;(D=null,R=l.top,p={width:Math.max(l.width,u.width),height:l.height+u.height,left:Math.min(l.left,u.left),right:Math.max(l.right,u.right),top:l.bottom-l.height-u.height,bottom:l.bottom}),z.attr({dx:D,dy:R})}(d._hasNumber||d._hasDelta)&amp;&amp;C.attr(&quot;transform&quot;,(function(){var t=s.numbersScaler(p);O+=t[2];var e,r=M(d,&quot;numbersScale&quot;,1,t[0],O,Math.min);d._scaleNumbers||(r=1),e=d._isAngular?_-r*p.bottom:_-r*(p.top+p.bottom)/2,d._numbersTop=r*p.top+e;var n=p[T];&quot;center&quot;===T&amp;&amp;(n=(p.left+p.right)/2);var i=g-r*n;return i=M(d,&quot;numbersTranslate&quot;,0,i,O,Math.max),o(i,e)+a(r)}))}(t,I,e,{numbersX:p,numbersY:A,numbersScaler:S,transitionOpts:r,onComplete:d}),P&amp;&amp;(E={range:L.gauge.axis.range,color:L.gauge.bgcolor,line:{color:L.gauge.bordercolor,width:0},thickness:1},C={range:L.gauge.axis.range,color:&quot;rgba(0, 0, 0, 0)&quot;,line:{color:L.gauge.bordercolor,width:L.gauge.borderwidth},thickness:1});var H=I.selectAll(&quot;g.angular&quot;).data(z?e:[]);H.exit().remove();var G=I.selectAll(&quot;g.angularaxis&quot;).data(z?e:[]);G.exit().remove(),z&amp;&amp;function(t,e,r,i){var a,c,u,f,p=r[0].trace,d=i.size,g=i.radius,m=i.innerRadius,v=i.gaugeBg,y=i.gaugeOutline,x=[d.l+d.w/2,d.t+d.h/2+g/2],T=i.gauge,k=i.layer,M=i.transitionOpts,A=i.onComplete,S=Math.PI/2;function E(t){var e=p.gauge.axis.range[0],r=(t-e)/(p.gauge.axis.range[1]-e)*Math.PI-S;return r&lt;-S?-S:r&gt;S?S:r}function C(t){return n.svg.arc().innerRadius((m+g)/2-t/2*(g-m)).outerRadius((m+g)/2+t/2*(g-m)).startAngle(-S)}function L(t){t.attr(&quot;d&quot;,(function(t){return C(t.thickness).startAngle(E(t.range[0])).endAngle(E(t.range[1]))()}))}T.enter().append(&quot;g&quot;).classed(&quot;angular&quot;,!0),T.attr(&quot;transform&quot;,o(x[0],x[1])),k.enter().append(&quot;g&quot;).classed(&quot;angularaxis&quot;,!0).classed(&quot;crisp&quot;,!0),k.selectAll(&quot;g.xangularaxistick,path,text&quot;).remove(),(a=w(t,p.gauge.axis)).type=&quot;linear&quot;,a.range=p.gauge.axis.range,a._id=&quot;xangularaxis&quot;,a.setScale();var I=function(t){return(a.range[0]-t.x)/(a.range[1]-a.range[0])*Math.PI+Math.PI},P={},z=h.makeLabelFns(a,0).labelStandoff;P.xFn=function(t){var e=I(t);return Math.cos(e)*z},P.yFn=function(t){var e=I(t),r=Math.sin(e)&gt;0?.2:1;return-Math.sin(e)*(z+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*l)},P.anchorFn=function(t){var e=I(t),r=Math.cos(e);return Math.abs(r)&lt;.1?&quot;middle&quot;:r&gt;0?&quot;start&quot;:&quot;end&quot;},P.heightFn=function(t,e,r){var n=I(t);return-.5*(1+Math.sin(n))*r};var O=function(t){return o(x[0]+g*Math.cos(t),x[1]-g*Math.sin(t))};u=function(t){return O(I(t))};if(c=h.calcTicks(a),f=h.getTickSigns(a)[2],a.visible){f=&quot;inside&quot;===a.ticks?-1:1;var D=(a.linewidth||1)/2;h.drawTicks(t,a,{vals:c,layer:k,path:&quot;M&quot;+f*D+&quot;,0h&quot;+f*a.ticklen,transFn:function(t){var e=I(t);return O(e)+&quot;rotate(&quot;+-s(e)+&quot;)&quot;}}),h.drawLabels(t,a,{vals:c,layer:k,transFn:u,labelFns:P})}var R=[v].concat(p.gauge.steps),F=T.selectAll(&quot;g.bg-arc&quot;).data(R);F.enter().append(&quot;g&quot;).classed(&quot;bg-arc&quot;,!0).append(&quot;path&quot;),F.select(&quot;path&quot;).call(L).call(_),F.exit().remove();var B=C(p.gauge.bar.thickness),N=T.selectAll(&quot;g.value-arc&quot;).data([p.gauge.bar]);N.enter().append(&quot;g&quot;).classed(&quot;value-arc&quot;,!0).append(&quot;path&quot;);var j=N.select(&quot;path&quot;);b(M)?(j.transition().duration(M.duration).ease(M.easing).each(&quot;end&quot;,(function(){A&amp;&amp;A()})).each(&quot;interrupt&quot;,(function(){A&amp;&amp;A()})).attrTween(&quot;d&quot;,(U=B,V=E(r[0].lastY),q=E(r[0].y),function(){var t=n.interpolate(V,q);return function(e){return U.endAngle(t(e))()}})),p._lastValue=r[0].y):j.attr(&quot;d&quot;,&quot;number&quot;==typeof r[0].y?B.endAngle(E(r[0].y)):&quot;M0,0Z&quot;);var U,V,q;j.call(_),N.exit().remove(),R=[];var H=p.gauge.threshold.value;H&amp;&amp;R.push({range:[H,H],color:p.gauge.threshold.color,line:{color:p.gauge.threshold.line.color,width:p.gauge.threshold.line.width},thickness:p.gauge.threshold.thickness});var G=T.selectAll(&quot;g.threshold-arc&quot;).data(R);G.enter().append(&quot;g&quot;).classed(&quot;threshold-arc&quot;,!0).append(&quot;path&quot;),G.select(&quot;path&quot;).call(L).call(_),G.exit().remove();var Y=T.selectAll(&quot;g.gauge-outline&quot;).data([y]);Y.enter().append(&quot;g&quot;).classed(&quot;gauge-outline&quot;,!0).append(&quot;path&quot;),Y.select(&quot;path&quot;).call(L).call(_),Y.exit().remove()}(t,0,e,{radius:N,innerRadius:j,gauge:H,layer:G,size:R,gaugeBg:E,gaugeOutline:C,transitionOpts:r,onComplete:d});var Y=I.selectAll(&quot;g.bullet&quot;).data(O?e:[]);Y.exit().remove();var W=I.selectAll(&quot;g.bulletaxis&quot;).data(O?e:[]);W.exit().remove(),O&amp;&amp;function(t,e,r,n){var i,a,s,l,c,f=r[0].trace,p=n.gauge,d=n.layer,g=n.gaugeBg,v=n.gaugeOutline,y=n.size,x=f.domain,T=n.transitionOpts,k=n.onComplete;p.enter().append(&quot;g&quot;).classed(&quot;bullet&quot;,!0),p.attr(&quot;transform&quot;,o(y.l,y.t)),d.enter().append(&quot;g&quot;).classed(&quot;bulletaxis&quot;,!0).classed(&quot;crisp&quot;,!0),d.selectAll(&quot;g.xbulletaxistick,path,text&quot;).remove();var M=y.h,A=f.gauge.bar.thickness*M,S=x.x[0],E=x.x[0]+(x.x[1]-x.x[0])*(f._hasNumber||f._hasDelta?1-u.bulletNumberDomainSize:1);(i=w(t,f.gauge.axis))._id=&quot;xbulletaxis&quot;,i.domain=[S,E],i.setScale(),a=h.calcTicks(i),s=h.makeTransTickFn(i),l=h.getTickSigns(i)[2],c=y.t+y.h,i.visible&amp;&amp;(h.drawTicks(t,i,{vals:&quot;inside&quot;===i.ticks?h.clipEnds(i,a):a,layer:d,path:h.makeTickPath(i,c,l),transFn:s}),h.drawLabels(t,i,{vals:a,layer:d,transFn:s,labelFns:h.makeLabelFns(i,c)}));function C(t){t.attr(&quot;width&quot;,(function(t){return Math.max(0,i.c2p(t.range[1])-i.c2p(t.range[0]))})).attr(&quot;x&quot;,(function(t){return i.c2p(t.range[0])})).attr(&quot;y&quot;,(function(t){return.5*(1-t.thickness)*M})).attr(&quot;height&quot;,(function(t){return t.thickness*M}))}var L=[g].concat(f.gauge.steps),I=p.selectAll(&quot;g.bg-bullet&quot;).data(L);I.enter().append(&quot;g&quot;).classed(&quot;bg-bullet&quot;,!0).append(&quot;rect&quot;),I.select(&quot;rect&quot;).call(C).call(_),I.exit().remove();var P=p.selectAll(&quot;g.value-bullet&quot;).data([f.gauge.bar]);P.enter().append(&quot;g&quot;).classed(&quot;value-bullet&quot;,!0).append(&quot;rect&quot;),P.select(&quot;rect&quot;).attr(&quot;height&quot;,A).attr(&quot;y&quot;,(M-A)/2).call(_),b(T)?P.select(&quot;rect&quot;).transition().duration(T.duration).ease(T.easing).each(&quot;end&quot;,(function(){k&amp;&amp;k()})).each(&quot;interrupt&quot;,(function(){k&amp;&amp;k()})).attr(&quot;width&quot;,Math.max(0,i.c2p(Math.min(f.gauge.axis.range[1],r[0].y)))):P.select(&quot;rect&quot;).attr(&quot;width&quot;,&quot;number&quot;==typeof r[0].y?Math.max(0,i.c2p(Math.min(f.gauge.axis.range[1],r[0].y))):0);P.exit().remove();var z=r.filter((function(){return f.gauge.threshold.value})),O=p.selectAll(&quot;g.threshold-bullet&quot;).data(z);O.enter().append(&quot;g&quot;).classed(&quot;threshold-bullet&quot;,!0).append(&quot;line&quot;),O.select(&quot;line&quot;).attr(&quot;x1&quot;,i.c2p(f.gauge.threshold.value)).attr(&quot;x2&quot;,i.c2p(f.gauge.threshold.value)).attr(&quot;y1&quot;,(1-f.gauge.threshold.thickness)/2*M).attr(&quot;y2&quot;,(1-(1-f.gauge.threshold.thickness)/2)*M).call(m.stroke,f.gauge.threshold.line.color).style(&quot;stroke-width&quot;,f.gauge.threshold.line.width),O.exit().remove();var D=p.selectAll(&quot;g.gauge-outline&quot;).data([v]);D.enter().append(&quot;g&quot;).classed(&quot;gauge-outline&quot;,!0).append(&quot;rect&quot;),D.select(&quot;rect&quot;).call(C).call(_),D.exit().remove()}(t,0,e,{gauge:Y,layer:W,size:R,gaugeBg:E,gaugeOutline:C,transitionOpts:r,onComplete:d});var X=I.selectAll(&quot;text.title&quot;).data(e);X.exit().remove(),X.enter().append(&quot;text&quot;).classed(&quot;title&quot;,!0),X.attr(&quot;text-anchor&quot;,(function(){return O?v.right:v[L.title.align]})).text(L.title.text).call(c.font,L.title.font).call(f.convertToTspans,t),X.attr(&quot;transform&quot;,(function(){var t,e=R.l+R.w*y[L.title.align],r=u.titlePadding,n=c.bBox(X.node());if(P){if(z)if(L.gauge.axis.visible)t=c.bBox(G.node()).top-r-n.bottom;else t=R.t+R.h/2-N/2-n.bottom-r;O&amp;&amp;(t=A-(n.top+n.bottom)/2,e=R.l-u.bulletPadding*R.w)}else t=L._numbersTop-r-n.bottom;return o(e,t)}))}))}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_defaults&quot;:830,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/cartesian/position_defaults&quot;:845,&quot;./constants&quot;:1119,d3:169}],1123:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../mesh3d/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll;var c=e.exports=l(s({x:{valType:&quot;data_array&quot;},y:{valType:&quot;data_array&quot;},z:{valType:&quot;data_array&quot;},value:{valType:&quot;data_array&quot;},isomin:{valType:&quot;number&quot;},isomax:{valType:&quot;number&quot;},surface:{show:{valType:&quot;boolean&quot;,dflt:!0},count:{valType:&quot;integer&quot;,dflt:2,min:1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1},pattern:{valType:&quot;flaglist&quot;,flags:[&quot;A&quot;,&quot;B&quot;,&quot;C&quot;,&quot;D&quot;,&quot;E&quot;],extras:[&quot;all&quot;,&quot;odd&quot;,&quot;even&quot;],dflt:&quot;all&quot;}},spaceframe:{show:{valType:&quot;boolean&quot;,dflt:!1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:.15}},slices:{x:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},y:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},z:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}}},caps:{x:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},y:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},z:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}}},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertemplate:i(),showlegend:s({},o.showlegend,{dflt:!1})},n(&quot;&quot;,{colorAttr:&quot;`value`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{opacity:a.opacity,lightposition:a.lightposition,lighting:a.lighting,flatshading:a.flatshading,contour:a.contour,hoverinfo:s({},o.hoverinfo)}),&quot;calc&quot;,&quot;nested&quot;);c.flatshading.dflt=!0,c.lighting.facenormalsepsilon.dflt=0,c.x.editType=c.y.editType=c.z.editType=c.value.editType=&quot;calc+clearAxisTypes&quot;,c.transforms=void 0},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../mesh3d/attributes&quot;:1128}],1124:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;),i=t(&quot;../streamtube/calc&quot;).processGrid,a=t(&quot;../streamtube/calc&quot;).filter;e.exports=function(t,e){e._len=Math.min(e.x.length,e.y.length,e.z.length,e.value.length),e._x=a(e.x,e._len),e._y=a(e.y,e._len),e._z=a(e.z,e._len),e._value=a(e.value,e._len);var r=i(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;for(var o=1/0,s=-1/0,l=0;l&lt;e._len;l++){var c=e._value[l];o=Math.min(o,c),s=Math.max(s,c)}e._minValues=o,e._maxValues=s,e._vMin=void 0===e.isomin||null===e.isomin?o:e.isomin,e._vMax=void 0===e.isomax||null===e.isomin?s:e.isomax,n(t,e,{vals:[e._vMin,e._vMax],containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../streamtube/calc&quot;:1295}],1125:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,a=t(&quot;../../lib/str2rgbarray&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts,s=t(&quot;../../plots/gl3d/zip3&quot;),l=function(t,e){for(var r=e.length-1;r&gt;0;r--){var n=Math.min(e[r],e[r-1]),i=Math.max(e[r],e[r-1]);if(i&gt;n&amp;&amp;n&lt;t&amp;&amp;t&lt;=i)return{id:r,distRatio:(i-t)/(i-n)}}return{id:0,distRatio:0}};function c(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.data=null,this.showContour=!1}var u=c.prototype;u.handlePick=function(t){if(t.object===this.mesh){var e=t.data.index,r=this.data._meshX[e],n=this.data._meshY[e],i=this.data._meshZ[e],a=this.data._Ys.length,o=this.data._Zs.length,s=l(r,this.data._Xs).id,c=l(n,this.data._Ys).id,u=l(i,this.data._Zs).id,f=t.index=u+o*c+o*a*s;t.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Array.isArray(h)&amp;&amp;void 0!==h[f]?t.textLabel=h[f]:h&amp;&amp;(t.textLabel=h),!0}},u.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map((function(e){return t.d2l(e,0,n)*r}))}this.data=h(t);var l={positions:s(n(r.xaxis,t._meshX,e.dataScale[0],t.xcalendar),n(r.yaxis,t._meshY,e.dataScale[1],t.ycalendar),n(r.zaxis,t._meshZ,e.dataScale[2],t.zcalendar)),cells:s(t._meshI,t._meshJ,t._meshK),lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:a(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading},c=o(t);l.vertexIntensity=t._meshIntensity,l.vertexIntensityBounds=[c.min,c.max],l.colormap=i(t),this.mesh.update(l)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};var f=[&quot;xyz&quot;,&quot;xzy&quot;,&quot;yxz&quot;,&quot;yzx&quot;,&quot;zxy&quot;,&quot;zyx&quot;];function h(t){t._meshI=[],t._meshJ=[],t._meshK=[];var e,r,n,i,a,o,s,c=t.surface.show,u=t.spaceframe.show,h=t.surface.fill,p=t.spaceframe.fill,d=!1,g=!1,m=0,v=t._Xs,y=t._Ys,x=t._Zs,b=v.length,_=y.length,w=x.length,T=f.indexOf(t._gridFill.replace(/-/g,&quot;&quot;).replace(/\+/g,&quot;&quot;)),k=function(t,e,r){switch(T){case 5:return r+w*e+w*_*t;case 4:return r+w*t+w*b*e;case 3:return e+_*r+_*w*t;case 2:return e+_*t+_*b*r;case 1:return t+b*r+b*w*e;default:return t+b*e+b*_*r}},M=t._minValues,A=t._maxValues,S=t._vMin,E=t._vMax;function C(t,e,s){for(var l=o.length,c=r;c&lt;l;c++)if(t===n[c]&amp;&amp;e===i[c]&amp;&amp;s===a[c])return c;return-1}function L(){r=e}function I(){n=[],i=[],a=[],o=[],e=0,L()}function P(t,r,s,l){return n.push(t),i.push(r),a.push(s),o.push(l),++e-1}function z(t,e,r){for(var n=[],i=0;i&lt;t.length;i++)n[i]=t[i]*(1-r)+r*e[i];return n}function O(t){s=t}function D(t,e){return&quot;all&quot;===t||null===t||t.indexOf(e)&gt;-1}function R(t,e){return null===t?e:t}function F(e,r,n){L();var i,a,o,l=[r],c=[n];if(s&gt;=1)l=[r],c=[n];else if(s&gt;0){var u=function(t,e){var r=t[0],n=t[1],i=t[2],a=function(t,e,r){for(var n=[],i=0;i&lt;t.length;i++)n[i]=(t[i]+e[i]+r[i])/3;return n}(r,n,i),o=Math.sqrt(1-s),l=z(a,r,o),c=z(a,n,o),u=z(a,i,o),f=e[0],h=e[1],p=e[2];return{xyzv:[[r,n,c],[c,l,r],[n,i,u],[u,c,n],[i,r,l],[l,u,i]],abc:[[f,h,-1],[-1,-1,f],[h,p,-1],[-1,-1,h],[p,f,-1],[-1,-1,p]]}}(r,n);l=u.xyzv,c=u.abc}for(var f=0;f&lt;l.length;f++){r=l[f],n=c[f];for(var h=[],p=0;p&lt;3;p++){var d=r[p][0],g=r[p][1],v=r[p][2],y=r[p][3],x=n[p]&gt;-1?n[p]:C(d,g,v);h[p]=x&gt;-1?x:P(d,g,v,R(e,y))}i=h[0],a=h[1],o=h[2],t._meshI.push(i),t._meshJ.push(a),t._meshK.push(o),++m}}function B(t,e,r,n){var i=t[3];i&lt;r&amp;&amp;(i=r),i&gt;n&amp;&amp;(i=n);for(var a=(t[3]-i)/(t[3]-e[3]+1e-9),o=[],s=0;s&lt;4;s++)o[s]=(1-a)*t[s]+a*e[s];return o}function N(t,e,r){return t&gt;=e&amp;&amp;t&lt;=r}function j(t){var e=.001*(E-S);return t&gt;=S-e&amp;&amp;t&lt;=E+e}function U(e){for(var r=[],n=0;n&lt;4;n++){var i=e[n];r.push([t._x[i],t._y[i],t._z[i],t._value[i]])}return r}function V(t,e,r,n,i,a){a||(a=1),r=[-1,-1,-1];var o=!1,s=[N(e[0][3],n,i),N(e[1][3],n,i),N(e[2][3],n,i)];if(!s[0]&amp;&amp;!s[1]&amp;&amp;!s[2])return!1;var l=function(t,e,r){return j(e[0][3])&amp;&amp;j(e[1][3])&amp;&amp;j(e[2][3])?(F(t,e,r),!0):a&lt;3&amp;&amp;V(t,e,r,S,E,++a)};if(s[0]&amp;&amp;s[1]&amp;&amp;s[2])return l(t,e,r)||o;var c=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach((function(a){if(s[a[0]]&amp;&amp;s[a[1]]&amp;&amp;!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(h,u,n,i),d=B(h,f,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,o=l(t,[u,f,d],[r[a[0]],r[a[1]],-1])||o,c=!0}})),c||[[0,1,2],[1,2,0],[2,0,1]].forEach((function(a){if(s[a[0]]&amp;&amp;!s[a[1]]&amp;&amp;!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(f,u,n,i),d=B(h,u,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,c=!0}})),o}function q(t,e,r,n){var i=!1,a=U(e),o=[N(a[0][3],r,n),N(a[1][3],r,n),N(a[2][3],r,n),N(a[3][3],r,n)];if(!(o[0]||o[1]||o[2]||o[3]))return i;if(o[0]&amp;&amp;o[1]&amp;&amp;o[2]&amp;&amp;o[3])return g&amp;&amp;(i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(3,0,1),n(2,3,0),n(1,2,3)}(t,a,e)||i),i;var s=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach((function(l){if(o[l[0]]&amp;&amp;o[l[1]]&amp;&amp;o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]];if(g)i=F(t,[c,u,f],[e[l[0]],e[l[1]],e[l[2]]])||i;else{var p=B(h,c,r,n),d=B(h,u,r,n),m=B(h,f,r,n);i=F(null,[p,d,m],[-1,-1,-1])||i}s=!0}})),s?i:([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach((function(l){if(o[l[0]]&amp;&amp;o[l[1]]&amp;&amp;!o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(f,c,r,n),d=B(f,u,r,n),m=B(h,u,r,n),v=B(h,c,r,n);g?(i=F(t,[c,v,p],[e[l[0]],-1,-1])||i,i=F(t,[u,d,m],[e[l[1]],-1,-1])||i):i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(2,3,0)}(null,[p,d,m,v],[-1,-1,-1,-1])||i,s=!0}})),s||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach((function(l){if(o[l[0]]&amp;&amp;!o[l[1]]&amp;&amp;!o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(u,c,r,n),d=B(f,c,r,n),m=B(h,c,r,n);g?(i=F(t,[c,p,d],[e[l[0]],-1,-1])||i,i=F(t,[c,d,m],[e[l[0]],-1,-1])||i,i=F(t,[c,m,p],[e[l[0]],-1,-1])||i):i=F(null,[p,d,m],[-1,-1,-1])||i,s=!0}})),i)}function H(t,e,r,n,i,a,o,s,l,c,u){var f=!1;return d&amp;&amp;(D(t,&quot;A&quot;)&amp;&amp;(f=q(null,[e,r,n,a],c,u)||f),D(t,&quot;B&quot;)&amp;&amp;(f=q(null,[r,n,i,l],c,u)||f),D(t,&quot;C&quot;)&amp;&amp;(f=q(null,[r,a,o,l],c,u)||f),D(t,&quot;D&quot;)&amp;&amp;(f=q(null,[n,a,s,l],c,u)||f),D(t,&quot;E&quot;)&amp;&amp;(f=q(null,[r,n,a,l],c,u)||f)),g&amp;&amp;(f=q(t,[r,n,a,l],c,u)||f),f}function G(t,e,r,n,i,a,o,s){return[!0===s[0]||V(t,U([e,r,n]),[e,r,n],a,o),!0===s[1]||V(t,U([n,i,e]),[n,i,e],a,o)]}function Y(t,e,r,n,i,a,o,s,l){return s?G(t,e,r,i,n,a,o,l):G(t,r,i,n,e,a,o,l)}function W(t,e,r,n,i,a,o){var s,l,c,u,f=!1,h=function(){f=V(t,[s,l,c],[-1,-1,-1],i,a)||f,f=V(t,[c,u,s],[-1,-1,-1],i,a)||f},p=o[0],d=o[1],g=o[2];return p&amp;&amp;(s=z(U([k(e,r-0,n-0)])[0],U([k(e-1,r-0,n-0)])[0],p),l=z(U([k(e,r-0,n-1)])[0],U([k(e-1,r-0,n-1)])[0],p),c=z(U([k(e,r-1,n-1)])[0],U([k(e-1,r-1,n-1)])[0],p),u=z(U([k(e,r-1,n-0)])[0],U([k(e-1,r-1,n-0)])[0],p),h()),d&amp;&amp;(s=z(U([k(e-0,r,n-0)])[0],U([k(e-0,r-1,n-0)])[0],d),l=z(U([k(e-0,r,n-1)])[0],U([k(e-0,r-1,n-1)])[0],d),c=z(U([k(e-1,r,n-1)])[0],U([k(e-1,r-1,n-1)])[0],d),u=z(U([k(e-1,r,n-0)])[0],U([k(e-1,r-1,n-0)])[0],d),h()),g&amp;&amp;(s=z(U([k(e-0,r-0,n)])[0],U([k(e-0,r-0,n-1)])[0],g),l=z(U([k(e-0,r-1,n)])[0],U([k(e-0,r-1,n-1)])[0],g),c=z(U([k(e-1,r-1,n)])[0],U([k(e-1,r-1,n-1)])[0],g),u=z(U([k(e-1,r-0,n)])[0],U([k(e-1,r-0,n-1)])[0],g),h()),f}function X(t,e,r,n,i,a,o,s,l,c,u,f){var h=t;return f?(d&amp;&amp;&quot;even&quot;===t&amp;&amp;(h=null),H(h,e,r,n,i,a,o,s,l,c,u)):(d&amp;&amp;&quot;odd&quot;===t&amp;&amp;(h=null),H(h,l,s,o,a,i,n,r,e,c,u))}function Z(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;w;c++)for(var u=1;u&lt;_;u++)a.push(Y(t,k(l,u-1,c-1),k(l,u-1,c),k(l,u,c-1),k(l,u,c),r,n,(l+u+c)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function J(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;b;c++)for(var u=1;u&lt;w;u++)a.push(Y(t,k(c-1,l,u-1),k(c,l,u-1),k(c-1,l,u),k(c,l,u),r,n,(c+l+u)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function K(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;_;c++)for(var u=1;u&lt;b;u++)a.push(Y(t,k(u-1,c-1,l),k(u-1,c,l),k(u,c-1,l),k(u,c,l),r,n,(u+c+l)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function Q(t,e,r){for(var n=1;n&lt;w;n++)for(var i=1;i&lt;_;i++)for(var a=1;a&lt;b;a++)X(t,k(a-1,i-1,n-1),k(a-1,i-1,n),k(a-1,i,n-1),k(a-1,i,n),k(a,i-1,n-1),k(a,i-1,n),k(a,i,n-1),k(a,i,n),e,r,(a+i+n)%2)}function $(t,e,r){d=!0,Q(t,e,r),d=!1}function tt(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;w;u++)for(var f=1;f&lt;_;f++)o.push(W(t,c,f,u,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function et(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;b;u++)for(var f=1;f&lt;w;f++)o.push(W(t,u,c,f,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function rt(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;_;u++)for(var f=1;f&lt;b;f++)o.push(W(t,f,u,c,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function nt(t,e){for(var r=[],n=t;n&lt;e;n++)r.push(n);return r}return function(){if(I(),function(){for(var e=0;e&lt;b;e++)for(var r=0;r&lt;_;r++)for(var n=0;n&lt;w;n++){var i=k(e,r,n);P(t._x[i],t._y[i],t._z[i],t._value[i])}}(),u&amp;&amp;p&amp;&amp;(O(p),g=!0,Q(null,S,E),g=!1),c&amp;&amp;h){O(h);for(var e=t.surface.pattern,r=t.surface.count,s=0;s&lt;r;s++){var f=1===r?.5:s/(r-1),d=(1-f)*S+f*E,T=Math.abs(d-M)&gt;Math.abs(d-A)?[M,d]:[d,A];$(e,T[0],T[1])}}var C=[[Math.min(S,A),Math.max(S,A)],[Math.min(M,E),Math.max(M,E)]];[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].forEach((function(e){for(var r=[],n=0;n&lt;C.length;n++){var i=0,a=C[n][0],o=C[n][1],s=t.slices[e];if(s.show&amp;&amp;s.fill){O(s.fill);var c=[],u=[],f=[];if(s.locations.length)for(var h=0;h&lt;s.locations.length;h++){var p=l(s.locations[h],&quot;x&quot;===e?v:&quot;y&quot;===e?y:x);0===p.distRatio?c.push(p.id):p.id&gt;0&amp;&amp;(u.push(p.id),&quot;x&quot;===e?f.push([p.distRatio,0,0]):&quot;y&quot;===e?f.push([0,p.distRatio,0]):f.push([0,0,p.distRatio]))}else c=nt(1,&quot;x&quot;===e?b-1:&quot;y&quot;===e?_-1:w-1);u.length&gt;0&amp;&amp;(r[i]=&quot;x&quot;===e?tt(null,u,a,o,f,r[i]):&quot;y&quot;===e?et(null,u,a,o,f,r[i]):rt(null,u,a,o,f,r[i]),i++),c.length&gt;0&amp;&amp;(r[i]=&quot;x&quot;===e?Z(null,c,a,o,r[i]):&quot;y&quot;===e?J(null,c,a,o,r[i]):K(null,c,a,o,r[i]),i++)}var d=t.caps[e];d.show&amp;&amp;d.fill&amp;&amp;(O(d.fill),r[i]=&quot;x&quot;===e?Z(null,[0,b-1],a,o,r[i]):&quot;y&quot;===e?J(null,[0,_-1],a,o,r[i]):K(null,[0,w-1],a,o,r[i]),i++)}})),0===m&amp;&amp;I(),t._meshX=n,t._meshY=i,t._meshZ=a,t._meshIntensity=o,t._Xs=v,t._Ys=y,t._Zs=x}(),t}e.exports={findNearestOnAxis:l,generateIsoMeshes:h,createIsosurfaceTrace:function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new c(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/gl3d/zip3&quot;:881,&quot;gl-mesh3d&quot;:309}],1126:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../../components/colorscale/defaults&quot;);function s(t,e,r,n,a){var s=a(&quot;isomin&quot;),l=a(&quot;isomax&quot;);null!=l&amp;&amp;null!=s&amp;&amp;s&gt;l&amp;&amp;(e.isomin=null,e.isomax=null);var c=a(&quot;x&quot;),u=a(&quot;y&quot;),f=a(&quot;z&quot;),h=a(&quot;value&quot;);c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length?(i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],n),[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].forEach((function(t){var e=&quot;caps.&quot;+t;a(e+&quot;.show&quot;)&amp;&amp;a(e+&quot;.fill&quot;);var r=&quot;slices.&quot;+t;a(r+&quot;.show&quot;)&amp;&amp;(a(r+&quot;.fill&quot;),a(r+&quot;.locations&quot;))})),a(&quot;spaceframe.show&quot;)&amp;&amp;a(&quot;spaceframe.fill&quot;),a(&quot;surface.show&quot;)&amp;&amp;(a(&quot;surface.count&quot;),a(&quot;surface.fill&quot;),a(&quot;surface.pattern&quot;)),a(&quot;contour.show&quot;)&amp;&amp;(a(&quot;contour.color&quot;),a(&quot;contour.width&quot;)),[&quot;text&quot;,&quot;hovertext&quot;,&quot;hovertemplate&quot;,&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lighting.vertexnormalsepsilon&quot;,&quot;lighting.facenormalsepsilon&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;flatshading&quot;,&quot;opacity&quot;].forEach((function(t){a(t)})),o(t,e,n,a,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),e._length=null):e.visible=!1}e.exports={supplyDefaults:function(t,e,r,i){s(t,e,r,i,(function(r,i){return n.coerce(t,e,a,r,i)}))},supplyIsoDefaults:s}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1123}],1127:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,calc:t(&quot;./calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;).createIsosurfaceTrace,moduleType:&quot;trace&quot;,name:&quot;isosurface&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1123,&quot;./calc&quot;:1124,&quot;./convert&quot;:1125,&quot;./defaults&quot;:1126}],1128:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../surface/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},i:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},j:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},k:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertemplate:i({editType:&quot;calc&quot;}),delaunayaxis:{valType:&quot;enumerated&quot;,values:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],dflt:&quot;z&quot;,editType:&quot;calc&quot;},alphahull:{valType:&quot;number&quot;,dflt:-1,editType:&quot;calc&quot;},intensity:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},intensitymode:{valType:&quot;enumerated&quot;,values:[&quot;vertex&quot;,&quot;cell&quot;],dflt:&quot;vertex&quot;,editType:&quot;calc&quot;},color:{valType:&quot;color&quot;,editType:&quot;calc&quot;},vertexcolor:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},facecolor:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},transforms:void 0},n(&quot;&quot;,{colorAttr:&quot;`intensity`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{opacity:a.opacity,flatshading:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},contour:{show:s({},a.contours.x.show,{}),color:a.contours.x.color,width:a.contours.x.width,editType:&quot;calc&quot;},lightposition:{x:s({},a.lightposition.x,{dflt:1e5}),y:s({},a.lightposition.y,{dflt:1e5}),z:s({},a.lightposition.z,{dflt:0}),editType:&quot;calc&quot;},lighting:s({vertexnormalsepsilon:{valType:&quot;number&quot;,min:0,max:1,dflt:1e-12,editType:&quot;calc&quot;},facenormalsepsilon:{valType:&quot;number&quot;,min:0,max:1,dflt:1e-6,editType:&quot;calc&quot;},editType:&quot;calc&quot;},a.lighting),hoverinfo:s({},o.hoverinfo,{editType:&quot;calc&quot;}),showlegend:s({},o.showlegend,{dflt:!1})})},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../surface/attributes&quot;:1311}],1129:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){e.intensity&amp;&amp;n(t,e,{vals:e.intensity,containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651}],1130:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;delaunay-triangulate&quot;),a=t(&quot;alpha-shape&quot;),o=t(&quot;convex-hull&quot;),s=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,l=t(&quot;../../lib/str2rgbarray&quot;),c=t(&quot;../../components/colorscale&quot;).extractOpts,u=t(&quot;../../plots/gl3d/zip3&quot;);function f(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.color=&quot;#fff&quot;,this.data=null,this.showContour=!1}var h=f.prototype;function p(t){for(var e=[],r=t.length,n=0;n&lt;r;n++)e[n]=l(t[n]);return e}function d(t,e,r,n){for(var i=[],a=e.length,o=0;o&lt;a;o++)i[o]=t.d2l(e[o],0,n)*r;return i}function g(t){for(var e=[],r=t.length,n=0;n&lt;r;n++)e[n]=Math.round(t[n]);return e}function m(t,e){for(var r=t.length,n=0;n&lt;r;n++)if(t[n]&lt;=-.5||t[n]&gt;=e-.5)return!1;return!0}h.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index;t.data._cellCenter?t.traceCoordinate=t.data.dataCoordinate:t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]];var r=this.data.hovertext||this.data.text;return Array.isArray(r)&amp;&amp;void 0!==r[e]?t.textLabel=r[e]:r&amp;&amp;(t.textLabel=r),!0}},h.update=function(t){var e=this.scene,r=e.fullSceneLayout;this.data=t;var n,f=t.x.length,h=u(d(r.xaxis,t.x,e.dataScale[0],t.xcalendar),d(r.yaxis,t.y,e.dataScale[1],t.ycalendar),d(r.zaxis,t.z,e.dataScale[2],t.zcalendar));if(t.i&amp;&amp;t.j&amp;&amp;t.k){if(t.i.length!==t.j.length||t.j.length!==t.k.length||!m(t.i,f)||!m(t.j,f)||!m(t.k,f))return;n=u(g(t.i),g(t.j),g(t.k))}else n=0===t.alphahull?o(h):t.alphahull&gt;0?a(t.alphahull,h):function(t,e){for(var r=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].indexOf(t),n=[],a=e.length,o=0;o&lt;a;o++)n[o]=[e[o][(r+1)%3],e[o][(r+2)%3]];return i(n)}(t.delaunayaxis,h);var v={positions:h,cells:n,lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:l(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading};if(t.intensity){var y=c(t);this.color=&quot;#fff&quot;;var x=t.intensitymode;v[x+&quot;Intensity&quot;]=t.intensity,v[x+&quot;IntensityBounds&quot;]=[y.min,y.max],v.colormap=s(t)}else t.vertexcolor?(this.color=t.vertexcolor[0],v.vertexColors=p(t.vertexcolor)):t.facecolor?(this.color=t.facecolor[0],v.cellColors=p(t.facecolor)):(this.color=t.color,v.meshColor=l(t.color));this.mesh.update(v)},h.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new f(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/gl3d/zip3&quot;:881,&quot;alpha-shape&quot;:69,&quot;convex-hull&quot;:135,&quot;delaunay-triangulate&quot;:171,&quot;gl-mesh3d&quot;:309}],1131:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,n){return i.coerce(t,e,o,r,n)}function c(t){var e=t.map((function(t){var e=l(t);return e&amp;&amp;i.isArrayOrTypedArray(e)?e:null}));return e.every((function(t){return t&amp;&amp;t.length===e[0].length}))&amp;&amp;e}c([&quot;x&quot;,&quot;y&quot;,&quot;z&quot;])?(c([&quot;i&quot;,&quot;j&quot;,&quot;k&quot;]),(!e.i||e.j&amp;&amp;e.k)&amp;&amp;(!e.j||e.k&amp;&amp;e.i)&amp;&amp;(!e.k||e.i&amp;&amp;e.j)?(n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],s),[&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lighting.vertexnormalsepsilon&quot;,&quot;lighting.facenormalsepsilon&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;flatshading&quot;,&quot;alphahull&quot;,&quot;delaunayaxis&quot;,&quot;opacity&quot;].forEach((function(t){l(t)})),l(&quot;contour.show&quot;)&amp;&amp;(l(&quot;contour.color&quot;),l(&quot;contour.width&quot;)),&quot;intensity&quot;in t?(l(&quot;intensity&quot;),l(&quot;intensitymode&quot;),a(t,e,s,l,{prefix:&quot;&quot;,cLetter:&quot;c&quot;})):(e.showscale=!1,&quot;facecolor&quot;in t?l(&quot;facecolor&quot;):&quot;vertexcolor&quot;in t?l(&quot;vertexcolor&quot;):l(&quot;color&quot;,r)),l(&quot;text&quot;),l(&quot;hovertext&quot;),l(&quot;hovertemplate&quot;),e._length=null):e.visible=!1):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1128}],1132:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;mesh3d&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1128,&quot;./calc&quot;:1129,&quot;./convert&quot;:1130,&quot;./defaults&quot;:1131}],1133:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).extendFlat,i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../components/drawing/attributes&quot;).dash,o=t(&quot;../../components/fx/attributes&quot;),s=t(&quot;../../constants/delta.js&quot;),l=s.INCREASING.COLOR,c=s.DECREASING.COLOR,u=i.line;function f(t){return{line:{color:n({},u.color,{dflt:t}),width:u.width,dash:a,editType:&quot;style&quot;},editType:&quot;style&quot;}}e.exports={xperiod:i.xperiod,xperiod0:i.xperiod0,xperiodalignment:i.xperiodalignment,x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},open:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},high:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},low:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},close:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{width:n({},u.width,{}),dash:n({},a,{}),editType:&quot;style&quot;},increasing:f(l),decreasing:f(c),text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},tickwidth:{valType:&quot;number&quot;,min:0,max:.5,dflt:.3,editType:&quot;calc&quot;},hoverlabel:n({},o.hoverlabel,{split:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;style&quot;}})}},{&quot;../../components/drawing/attributes&quot;:664,&quot;../../components/fx/attributes&quot;:674,&quot;../../constants/delta.js&quot;:747,&quot;../../lib&quot;:778,&quot;../scatter/attributes&quot;:1187}],1134:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=n._,a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r,n){return{o:t,h:e,l:r,c:n}}function c(t,e,r,o,l,c){for(var u=l.makeCalcdata(e,&quot;open&quot;),f=l.makeCalcdata(e,&quot;high&quot;),h=l.makeCalcdata(e,&quot;low&quot;),p=l.makeCalcdata(e,&quot;close&quot;),d=Array.isArray(e.text),g=Array.isArray(e.hovertext),m=!0,v=null,y=!!e.xperiodalignment,x=[],b=0;b&lt;o.length;b++){var _=o[b],w=u[b],T=f[b],k=h[b],M=p[b];if(_!==s&amp;&amp;w!==s&amp;&amp;T!==s&amp;&amp;k!==s&amp;&amp;M!==s){M===w?null!==v&amp;&amp;M!==v&amp;&amp;(m=M&gt;v):m=M&gt;w,v=M;var A=c(w,T,k,M);A.pos=_,A.yc=(w+M)/2,A.i=b,A.dir=m?&quot;increasing&quot;:&quot;decreasing&quot;,A.x=A.pos,A.y=[k,T],y&amp;&amp;(A.orig_p=r[b]),d&amp;&amp;(A.tx=e.text[b]),g&amp;&amp;(A.htx=e.hovertext[b]),x.push(A)}else x.push({pos:_,empty:!0})}return e._extremes[l._id]=a.findExtremes(l,n.concat(h,f),{padded:!0}),x.length&amp;&amp;(x[0].t={labels:{open:i(t,&quot;open:&quot;)+&quot; &quot;,high:i(t,&quot;high:&quot;)+&quot; &quot;,low:i(t,&quot;low:&quot;)+&quot; &quot;,close:i(t,&quot;close:&quot;)+&quot; &quot;}}),x}e.exports={calc:function(t,e){var r=a.getFromId(t,e.xaxis),i=a.getFromId(t,e.yaxis),s=function(t,e,r){var i=r._minDiff;if(!i){var a,s=t._fullData,l=[];for(i=1/0,a=0;a&lt;s.length;a++){var c=s[a];if(&quot;ohlc&quot;===c.type&amp;&amp;!0===c.visible&amp;&amp;c.xaxis===e._id){l.push(c);var u=e.makeCalcdata(c,&quot;x&quot;);c._origX=u;var f=o(r,e,&quot;x&quot;,u);c._xcalc=f;var h=n.distinctVals(f).minDiff;h&amp;&amp;isFinite(h)&amp;&amp;(i=Math.min(i,h))}}for(i===1/0&amp;&amp;(i=1),a=0;a&lt;l.length;a++)l[a]._minDiff=i}return i*r.tickwidth}(t,r,e),u=e._minDiff;e._minDiff=null;var f=e._origX;e._origX=null;var h=e._xcalc;e._xcalc=null;var p=c(t,e,f,h,i,l);return e._extremes[r._id]=a.findExtremes(r,h,{vpad:u/2}),p.length?(n.extendFlat(p[0].t,{wHover:u/2,tickLen:s}),p):[{t:{empty:!0}}]},calcCommon:c}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828}],1135:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./ohlc_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r,n){r(n+&quot;.line.color&quot;),r(n+&quot;.line.width&quot;,e.line.width),r(n+&quot;.line.dash&quot;,e.line.dash)}e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}i(t,e,c,l)?(a(t,e,l,c,{x:!0}),c(&quot;line.width&quot;),c(&quot;line.dash&quot;),s(t,e,c,&quot;increasing&quot;),s(t,e,c,&quot;decreasing&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;tickwidth&quot;),l._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:1133,&quot;./ohlc_defaults&quot;:1138}],1136:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../lib&quot;).fillText,l=t(&quot;../../constants/delta.js&quot;),c={increasing:l.INCREASING.SYMBOL,decreasing:l.DECREASING.SYMBOL};function u(t,e,r,n){var i,s,l=t.cd,c=t.xa,u=l[0].trace,f=l[0].t,h=u.type,p=&quot;ohlc&quot;===h?&quot;l&quot;:&quot;min&quot;,d=&quot;ohlc&quot;===h?&quot;h&quot;:&quot;max&quot;,g=f.bPos||0,m=f.bdPos||f.tickLen,v=f.wHover,y=Math.min(1,m/Math.abs(c.r2c(c.range[1])-c.r2c(c.range[0])));function x(t){var r=function(t){return t.pos+g-e}(t);return a.inbox(r-v,r+v,i)}function b(t){var e=t[p],n=t[d];return e===n||a.inbox(e-r,n-r,i)}function _(t){return(x(t)+b(t))/2}i=t.maxHoverDistance-y,s=t.maxSpikeDistance-y;var w=a.getDistanceFunction(n,x,b,_);if(a.getClosest(l,w,t),!1===t.index)return null;var T=l[t.index];if(T.empty)return null;var k=u[T.dir],M=k.line.color;return o.opacity(M)&amp;&amp;k.line.width?t.color=M:t.color=k.fillcolor,t.x0=c.c2p(T.pos+g-m,!0),t.x1=c.c2p(T.pos+g+m,!0),t.xLabelVal=void 0!==T.orig_p?T.orig_p:T.pos,t.spikeDistance=_(T)*s/i,t.xSpike=c.c2p(T.pos,!0),t}function f(t,e,r,a){var o=t.cd,s=t.ya,l=o[0].trace,c=o[0].t,f=[],h=u(t,e,r,a);if(!h)return[];var p=o[h.index].hi||l.hoverinfo,d=p.split(&quot;+&quot;);if(!(&quot;all&quot;===p||-1!==d.indexOf(&quot;y&quot;)))return[];for(var g=[&quot;high&quot;,&quot;open&quot;,&quot;close&quot;,&quot;low&quot;],m={},v=0;v&lt;g.length;v++){var y,x=g[v],b=l[x][h.index],_=s.c2p(b,!0);b in m?(y=m[b]).yLabel+=&quot;&lt;br&gt;&quot;+c.labels[x]+n.hoverLabelText(s,b):((y=i.extendFlat({},h)).y0=y.y1=_,y.yLabelVal=b,y.yLabel=c.labels[x]+n.hoverLabelText(s,b),y.name=&quot;&quot;,f.push(y),m[b]=y)}return f}function h(t,e,r,i){var a=t.cd,o=t.ya,l=a[0].trace,f=a[0].t,h=u(t,e,r,i);if(!h)return[];var p=a[h.index],d=h.index=p.i,g=p.dir;function m(t){return f.labels[t]+n.hoverLabelText(o,l[t][d])}var v=p.hi||l.hoverinfo,y=v.split(&quot;+&quot;),x=&quot;all&quot;===v,b=x||-1!==y.indexOf(&quot;y&quot;),_=x||-1!==y.indexOf(&quot;text&quot;),w=b?[m(&quot;open&quot;),m(&quot;high&quot;),m(&quot;low&quot;),m(&quot;close&quot;)+&quot;  &quot;+c[g]]:[];return _&amp;&amp;s(p,l,w),h.extraText=w.join(&quot;&lt;br&gt;&quot;),h.y0=h.y1=o.c2p(p.yc,!0),[h]}e.exports={hoverPoints:function(t,e,r,n){return t.cd[0].trace.hoverlabel.split?f(t,e,r,n):h(t,e,r,n)},hoverSplit:f,hoverOnPoints:h}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../constants/delta.js&quot;:747,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1137:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;ohlc&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;showLegend&quot;],meta:{},attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;./select&quot;)}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1133,&quot;./calc&quot;:1134,&quot;./defaults&quot;:1135,&quot;./hover&quot;:1136,&quot;./plot&quot;:1139,&quot;./select&quot;:1140,&quot;./style&quot;:1141}],1138:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=r(&quot;x&quot;),s=r(&quot;open&quot;),l=r(&quot;high&quot;),c=r(&quot;low&quot;),u=r(&quot;close&quot;);if(r(&quot;hoverlabel.split&quot;),n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;],a),s&amp;&amp;l&amp;&amp;c&amp;&amp;u){var f=Math.min(s.length,l.length,c.length,u.length);return o&amp;&amp;(f=Math.min(f,i.minRowLength(o))),e._length=f,f}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1139:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=e.yaxis,s=e.xaxis,l=!!s.rangebreaks;i.makeTraceGroups(a,r,&quot;trace ohlc&quot;).each((function(t){var e=n.select(this),r=t[0],a=r.t;if(!0!==r.trace.visible||a.empty)e.remove();else{var c=a.tickLen,u=e.selectAll(&quot;path&quot;).data(i.identity);u.enter().append(&quot;path&quot;),u.exit().remove(),u.attr(&quot;d&quot;,(function(t){if(t.empty)return&quot;M0,0Z&quot;;var e=s.c2p(t.pos-c,!0),r=s.c2p(t.pos+c,!0),n=l?(e+r)/2:s.c2p(t.pos,!0);return&quot;M&quot;+e+&quot;,&quot;+o.c2p(t.o,!0)+&quot;H&quot;+n+&quot;M&quot;+n+&quot;,&quot;+o.c2p(t.h,!0)+&quot;V&quot;+o.c2p(t.l,!0)+&quot;M&quot;+r+&quot;,&quot;+o.c2p(t.c,!0)+&quot;H&quot;+n}))}}))}},{&quot;../../lib&quot;:778,d3:169}],1140:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].t.bPos||0;if(!1===e)for(r=0;r&lt;n.length;r++)n[r].selected=0;else for(r=0;r&lt;n.length;r++){var l=n[r];e.contains([i.c2p(l.pos+s),a.c2p(l.yc)],null,l.i,t)?(o.push({pointNumber:l.i,x:i.c2d(l.pos),y:a.c2d(l.yc)}),l.selected=1):l.selected=0}return o}},{}],1141:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;);e.exports=function(t,e,r){var o=r||n.select(t).selectAll(&quot;g.ohlclayer&quot;).selectAll(&quot;g.trace&quot;);o.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),o.each((function(t){var e=t[0].trace;n.select(this).selectAll(&quot;path&quot;).each((function(t){if(!t.empty){var r=e[t.dir].line;n.select(this).style(&quot;fill&quot;,&quot;none&quot;).call(a.stroke,r.color).call(i.dashLine,r.dash,r.width).style(&quot;opacity&quot;,e.selectedpoints&amp;&amp;!t.selected?.3:1)}}))}))}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,d3:169}],1142:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/domain&quot;).attributes,c=n({editType:&quot;calc&quot;},o(&quot;line&quot;,{editTypeOverride:&quot;calc&quot;}),{shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;hspline&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},hovertemplate:s({editType:&quot;plot&quot;,arrayOk:!1},{keys:[&quot;count&quot;,&quot;probability&quot;]})});e.exports={domain:l({name:&quot;parcats&quot;,trace:!0,editType:&quot;calc&quot;}),hoverinfo:n({},i.hoverinfo,{flags:[&quot;count&quot;,&quot;probability&quot;],editType:&quot;plot&quot;,arrayOk:!1}),hoveron:{valType:&quot;enumerated&quot;,values:[&quot;category&quot;,&quot;color&quot;,&quot;dimension&quot;],dflt:&quot;category&quot;,editType:&quot;plot&quot;},hovertemplate:s({editType:&quot;plot&quot;,arrayOk:!1},{keys:[&quot;count&quot;,&quot;probability&quot;,&quot;category&quot;,&quot;categorycount&quot;,&quot;colorcount&quot;,&quot;bandcolorcount&quot;]}),arrangement:{valType:&quot;enumerated&quot;,values:[&quot;perpendicular&quot;,&quot;freeform&quot;,&quot;fixed&quot;],dflt:&quot;perpendicular&quot;,editType:&quot;plot&quot;},bundlecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},sortpaths:{valType:&quot;enumerated&quot;,values:[&quot;forward&quot;,&quot;backward&quot;],dflt:&quot;forward&quot;,editType:&quot;plot&quot;},labelfont:a({editType:&quot;calc&quot;}),tickfont:a({editType:&quot;calc&quot;}),dimensions:{_isLinkedToArray:&quot;dimension&quot;,label:{valType:&quot;string&quot;,editType:&quot;calc&quot;},categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},displayindex:{valType:&quot;integer&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;,visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}},line:c,counts:{valType:&quot;number&quot;,min:0,dflt:1,arrayOk:!0,editType:&quot;calc&quot;},customdata:void 0,hoverlabel:void 0,ids:void 0,legendgroup:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906}],1143:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getModuleCalcData,i=t(&quot;./plot&quot;);r.name=&quot;parcats&quot;,r.plot=function(t,e,r,a){var o=n(t.calcdata,&quot;parcats&quot;);if(o.length){var s=o[0];i(t,s,r,a)}},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;parcats&quot;),a=e._has&amp;&amp;e._has(&quot;parcats&quot;);i&amp;&amp;!a&amp;&amp;n._paperdiv.selectAll(&quot;.parcats&quot;).remove()}},{&quot;../../plots/get_data&quot;:865,&quot;./plot&quot;:1148}],1144:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/gup&quot;).wrap,i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/calc&quot;),o=t(&quot;../../lib/filter_unique.js&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;fast-isnumeric&quot;);function u(t,e,r){t.valueInds.push(e),t.count+=r}function f(t,e,r){return{categoryInds:t,color:e,rawColor:r,valueInds:[],count:0}}function h(t,e,r){t.valueInds.push(e),t.count+=r}e.exports=function(t,e){var r=l.filterVisible(e.dimensions);if(0===r.length)return[];var p,d,g,m=r.map((function(t){var e;if(&quot;trace&quot;===t.categoryorder)e=null;else if(&quot;array&quot;===t.categoryorder)e=t.categoryarray;else{e=o(t.values);for(var r=!0,n=0;n&lt;e.length;n++)if(!c(e[n])){r=!1;break}e.sort(r?l.sorterAsc:void 0),&quot;category descending&quot;===t.categoryorder&amp;&amp;(e=e.reverse())}return function(t,e){e=null==e?[]:e.map((function(t){return t}));var r={},n={},i=[];e.forEach((function(t,e){r[t]=0,n[t]=e}));for(var a=0;a&lt;t.length;a++){var o,s=t[a];void 0===r[s]?(r[s]=1,o=e.push(s)-1,n[s]=o):(r[s]++,o=n[s]),i.push(o)}var l=e.map((function(t){return r[t]}));return{uniqueValues:e,uniqueCounts:l,inds:i}}(t.values,e)}));p=l.isArrayOrTypedArray(e.counts)?e.counts:[e.counts],function(t){var e;if(function(t){for(var e=new Array(t.length),r=0;r&lt;t.length;r++){if(t[r]&lt;0||t[r]&gt;=t.length)return!1;if(void 0!==e[t[r]])return!1;e[t[r]]=!0}return!0}(t.map((function(t){return t.displayindex}))))for(e=0;e&lt;t.length;e++)t[e]._displayindex=t[e].displayindex;else for(e=0;e&lt;t.length;e++)t[e]._displayindex=e}(r),r.forEach((function(t,e){!function(t,e){t._categoryarray=e.uniqueValues,null===t.ticktext||void 0===t.ticktext?t._ticktext=[]:t._ticktext=t.ticktext.slice();for(var r=t._ticktext.length;r&lt;e.uniqueValues.length;r++)t._ticktext.push(e.uniqueValues[r])}(t,m[e])}));var v,y=e.line;y?(i(e,&quot;line&quot;)&amp;&amp;a(t,e,{vals:e.line.color,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;}),v=s.tryColorscale(y)):v=l.identity;var x,b,_,w,T,k=r[0].values.length,M={},A=m.map((function(t){return t.inds}));for(g=0,x=0;x&lt;k;x++){var S=[];for(b=0;b&lt;A.length;b++)S.push(A[b][x]);d=p[x%p.length],g+=d;var E=(_=x,w=void 0,T=void 0,l.isArrayOrTypedArray(y.color)?T=w=y.color[_%y.color.length]:w=y.color,{color:v(w),rawColor:T}),C=S+&quot;-&quot;+E.rawColor;void 0===M[C]&amp;&amp;(M[C]=f(S,E.color,E.rawColor)),h(M[C],x,d)}var L,I=r.map((function(t,e){return function(t,e,r,n,i){return{dimensionInd:t,containerInd:e,displayInd:r,dimensionLabel:n,count:i,categories:[],dragX:null}}(e,t._index,t._displayindex,t.label,g)}));for(x=0;x&lt;k;x++)for(d=p[x%p.length],b=0;b&lt;I.length;b++){var P=I[b].containerInd,z=m[b].inds[x],O=I[b].categories;if(void 0===O[z]){var D=e.dimensions[P]._categoryarray[z],R=e.dimensions[P]._ticktext[z];O[z]={dimensionInd:b,categoryInd:L=z,categoryValue:D,displayInd:L,categoryLabel:R,valueInds:[],count:0,dragY:null}}u(O[z],x,d)}return n(function(t,e,r){var n=t.map((function(t){return t.categories.length})).reduce((function(t,e){return Math.max(t,e)}));return{dimensions:t,paths:e,trace:void 0,maxCats:n,count:r}}(I,M,g))}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/filter_unique.js&quot;:769,&quot;../../lib/gup&quot;:775,&quot;fast-isnumeric&quot;:241}],1145:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../parcoords/merge_length&quot;);function u(t,e){function r(r,i){return n.coerce(t,e,l.dimensions,r,i)}var i=r(&quot;values&quot;),a=r(&quot;visible&quot;);if(i&amp;&amp;i.length||(a=e.visible=!1),a){r(&quot;label&quot;),r(&quot;displayindex&quot;,e._index);var o,s=t.categoryarray,c=Array.isArray(s)&amp;&amp;s.length&gt;0;c&amp;&amp;(o=&quot;array&quot;);var u=r(&quot;categoryorder&quot;,o);&quot;array&quot;===u?(r(&quot;categoryarray&quot;),r(&quot;ticktext&quot;)):(delete t.categoryarray,delete t.ticktext),c||&quot;array&quot;!==u||(e.categoryorder=&quot;trace&quot;)}}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,l,r,i)}var p=s(t,e,{name:&quot;dimensions&quot;,handleItemDefaults:u}),d=function(t,e,r,o,s){s(&quot;line.shape&quot;),s(&quot;line.hovertemplate&quot;);var l=s(&quot;line.color&quot;,o.colorway[0]);if(i(t,&quot;line&quot;)&amp;&amp;n.isArrayOrTypedArray(l)){if(l.length)return s(&quot;line.colorscale&quot;),a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}),l.length;e.line.color=r}return 1/0}(t,e,r,f,h);o(e,f,h),Array.isArray(p)&amp;&amp;p.length||(e.visible=!1),c(e,p,&quot;values&quot;,d),h(&quot;hoveron&quot;),h(&quot;hovertemplate&quot;),h(&quot;arrangement&quot;),h(&quot;bundlecolors&quot;),h(&quot;sortpaths&quot;),h(&quot;counts&quot;);var g={family:f.font.family,size:Math.round(f.font.size),color:f.font.color};n.coerceFont(h,&quot;labelfont&quot;,g);var m={family:f.font.family,size:Math.round(f.font.size/1.2),color:f.font.color};n.coerceFont(h,&quot;tickfont&quot;,m)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/domain&quot;:855,&quot;../parcoords/merge_length&quot;:1158,&quot;./attributes&quot;:1142}],1146:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},moduleType:&quot;trace&quot;,name:&quot;parcats&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1142,&quot;./base_plot&quot;:1143,&quot;./calc&quot;:1144,&quot;./defaults&quot;:1145,&quot;./plot&quot;:1148}],1147:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plot_api/plot_api&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../../components/drawing&quot;),c=t(&quot;tinycolor2&quot;),u=t(&quot;../../lib/svg_text_utils&quot;);function f(t,e,r,i){var a=t.map(R.bind(0,e,r)),c=i.selectAll(&quot;g.parcatslayer&quot;).data([null]);c.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;parcatslayer&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;);var f=c.selectAll(&quot;g.trace.parcats&quot;).data(a,h),v=f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;trace parcats&quot;);f.attr(&quot;transform&quot;,(function(t){return s(t.x,t.y)})),v.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;paths&quot;);var y=f.select(&quot;g.paths&quot;).selectAll(&quot;path.path&quot;).data((function(t){return t.paths}),h);y.attr(&quot;fill&quot;,(function(t){return t.model.color}));var _=y.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;path&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.model.color})).attr(&quot;fill-opacity&quot;,0);b(_),y.attr(&quot;d&quot;,(function(t){return t.svgD})),_.empty()||y.sort(d),y.exit().remove(),y.on(&quot;mouseover&quot;,g).on(&quot;mouseout&quot;,m).on(&quot;click&quot;,x),v.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;dimensions&quot;);var k=f.select(&quot;g.dimensions&quot;).selectAll(&quot;g.dimension&quot;).data((function(t){return t.dimensions}),h);k.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;dimension&quot;),k.attr(&quot;transform&quot;,(function(t){return s(t.x,0)})),k.exit().remove();var M=k.selectAll(&quot;g.category&quot;).data((function(t){return t.categories}),h),A=M.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;category&quot;);M.attr(&quot;transform&quot;,(function(t){return s(0,t.y)})),A.append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;catrect&quot;).attr(&quot;pointer-events&quot;,&quot;none&quot;),M.select(&quot;rect.catrect&quot;).attr(&quot;fill&quot;,&quot;none&quot;).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})),w(A);var S=M.selectAll(&quot;rect.bandrect&quot;).data((function(t){return t.bands}),h);S.each((function(){o.raiseToTop(this)})),S.attr(&quot;fill&quot;,(function(t){return t.color}));var z=S.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bandrect&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;fill-opacity&quot;,0);S.attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})).attr(&quot;y&quot;,(function(t){return t.y})).attr(&quot;cursor&quot;,(function(t){return&quot;fixed&quot;===t.parcatsViewModel.arrangement?&quot;default&quot;:&quot;perpendicular&quot;===t.parcatsViewModel.arrangement?&quot;ns-resize&quot;:&quot;move&quot;})),T(z),S.exit().remove(),A.append(&quot;text&quot;).attr(&quot;class&quot;,&quot;catlabel&quot;).attr(&quot;pointer-events&quot;,&quot;none&quot;);var O=e._fullLayout.paper_bgcolor;M.select(&quot;text.catlabel&quot;).attr(&quot;text-anchor&quot;,(function(t){return p(t)?&quot;start&quot;:&quot;end&quot;})).attr(&quot;alignment-baseline&quot;,&quot;middle&quot;).style(&quot;text-shadow&quot;,O+&quot; -1px  1px 2px, &quot;+O+&quot; 1px  1px 2px, &quot;+O+&quot;  1px -1px 2px, &quot;+O+&quot; -1px -1px 2px&quot;).style(&quot;fill&quot;,&quot;rgb(0, 0, 0)&quot;).attr(&quot;x&quot;,(function(t){return p(t)?t.width+5:-5})).attr(&quot;y&quot;,(function(t){return t.height/2})).text((function(t){return t.model.categoryLabel})).each((function(t){l.font(n.select(this),t.parcatsViewModel.categorylabelfont),u.convertToTspans(n.select(this),e)})),A.append(&quot;text&quot;).attr(&quot;class&quot;,&quot;dimlabel&quot;),M.select(&quot;text.dimlabel&quot;).attr(&quot;text-anchor&quot;,&quot;middle&quot;).attr(&quot;alignment-baseline&quot;,&quot;baseline&quot;).attr(&quot;cursor&quot;,(function(t){return&quot;fixed&quot;===t.parcatsViewModel.arrangement?&quot;default&quot;:&quot;ew-resize&quot;})).attr(&quot;x&quot;,(function(t){return t.width/2})).attr(&quot;y&quot;,-5).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})).each((function(t){l.font(n.select(this),t.parcatsViewModel.labelfont)})),M.selectAll(&quot;rect.bandrect&quot;).on(&quot;mouseover&quot;,E).on(&quot;mouseout&quot;,C),M.exit().remove(),k.call(n.behavior.drag().origin((function(t){return{x:t.x,y:0}})).on(&quot;dragstart&quot;,L).on(&quot;drag&quot;,I).on(&quot;dragend&quot;,P)),f.each((function(t){t.traceSelection=n.select(this),t.pathSelection=n.select(this).selectAll(&quot;g.paths&quot;).selectAll(&quot;path.path&quot;),t.dimensionSelection=n.select(this).selectAll(&quot;g.dimensions&quot;).selectAll(&quot;g.dimension&quot;)})),f.exit().remove()}function h(t){return t.key}function p(t){var e=t.parcatsViewModel.dimensions.length,r=t.parcatsViewModel.dimensions[e-1].model.dimensionInd;return t.model.dimensionInd===r}function d(t,e){return t.model.rawColor&gt;e.model.rawColor?1:t.model.rawColor&lt;e.model.rawColor?-1:0}function g(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){o.raiseToTop(this),_(n.select(this));var e=v(t),r=y(t);if(t.parcatsViewModel.graphDiv.emit(&quot;plotly_hover&quot;,{points:e,event:n.event,constraints:r}),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;none&quot;)){var i,s,l,u=n.mouse(this)[0],f=t.parcatsViewModel.graphDiv,h=t.parcatsViewModel.trace,p=f._fullLayout,d=p._paperdiv.node().getBoundingClientRect(),g=t.parcatsViewModel.graphDiv.getBoundingClientRect();for(l=0;l&lt;t.leftXs.length-1;l++)if(t.leftXs[l]+t.dimWidths[l]-2&lt;=u&amp;&amp;u&lt;=t.leftXs[l+1]+2){var m=t.parcatsViewModel.dimensions[l],x=t.parcatsViewModel.dimensions[l+1];i=(m.x+m.width+x.x)/2,s=(t.topYs[l]+t.topYs[l+1]+t.height)/2;break}var b=t.parcatsViewModel.x+i,w=t.parcatsViewModel.y+s,T=c.mostReadable(t.model.color,[&quot;black&quot;,&quot;white&quot;]),k=t.model.count,M=k/t.parcatsViewModel.model.count,A={countLabel:k,probabilityLabel:M.toFixed(3)},S=[];-1!==t.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;S.push([&quot;Count:&quot;,A.countLabel].join(&quot; &quot;)),-1!==t.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;S.push([&quot;P:&quot;,A.probabilityLabel].join(&quot; &quot;));var E=S.join(&quot;&lt;br&gt;&quot;),C=n.mouse(f)[0];a.loneHover({trace:h,x:b-d.left+g.left,y:w-d.top+g.top,text:E,color:t.model.color,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontSize:10,fontColor:T,idealAlign:C&lt;b?&quot;right&quot;:&quot;left&quot;,hovertemplate:(h.line||{}).hovertemplate,hovertemplateLabels:A,eventData:[{data:h._input,fullData:h,count:k,probability:M}]},{container:p._hoverlayer.node(),outerContainer:p._paper.node(),gd:f})}}}function m(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;(b(n.select(this)),a.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()),t.parcatsViewModel.pathSelection.sort(d),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;))){var e=v(t),r=y(t);t.parcatsViewModel.graphDiv.emit(&quot;plotly_unhover&quot;,{points:e,event:n.event,constraints:r})}}function v(t){for(var e=[],r=z(t.parcatsViewModel),n=0;n&lt;t.model.valueInds.length;n++){var i=t.model.valueInds[n];e.push({curveNumber:r,pointNumber:i})}return e}function y(t){for(var e={},r=t.parcatsViewModel.model.dimensions,n=0;n&lt;r.length;n++){var i=r[n],a=i.categories[t.model.categoryInds[n]];e[i.containerInd]=a.categoryValue}return void 0!==t.model.rawColor&amp;&amp;(e.color=t.model.rawColor),e}function x(t){if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){var e=v(t),r=y(t);t.parcatsViewModel.graphDiv.emit(&quot;plotly_click&quot;,{points:e,event:n.event,constraints:r})}}function b(t){t.attr(&quot;fill&quot;,(function(t){return t.model.color})).attr(&quot;fill-opacity&quot;,.6).attr(&quot;stroke&quot;,&quot;lightgray&quot;).attr(&quot;stroke-width&quot;,.2).attr(&quot;stroke-opacity&quot;,1)}function _(t){t.attr(&quot;fill-opacity&quot;,.8).attr(&quot;stroke&quot;,(function(t){return c.mostReadable(t.model.color,[&quot;black&quot;,&quot;white&quot;])})).attr(&quot;stroke-width&quot;,.3)}function w(t){t.select(&quot;rect.catrect&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,1).attr(&quot;stroke-opacity&quot;,1)}function T(t){t.attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,.2).attr(&quot;stroke-opacity&quot;,1).attr(&quot;fill-opacity&quot;,1)}function k(t){var e=t.parcatsViewModel.pathSelection,r=t.categoryViewModel.model.dimensionInd,n=t.categoryViewModel.model.categoryInd;return e.filter((function(e){return e.model.categoryInds[r]===n&amp;&amp;e.model.color===t.color}))}function M(t,e,r){var i=n.select(t).datum(),a=i.categoryViewModel.model,o=i.parcatsViewModel.graphDiv,s=n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;),l=[];s.each((function(t){k(t).each((function(t){Array.prototype.push.apply(l,v(t))}))}));var c={};c[a.dimensionInd]=a.categoryValue,o.emit(e,{points:l,event:r,constraints:c})}function A(t,e,r){var i=n.select(t).datum(),a=i.categoryViewModel.model,o=i.parcatsViewModel.graphDiv,s=k(i),l=[];s.each((function(t){Array.prototype.push.apply(l,v(t))}));var c={};c[a.dimensionInd]=a.categoryValue,void 0!==i.rawColor&amp;&amp;(c.color=i.rawColor),o.emit(e,{points:l,event:r,constraints:c})}function S(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=n.select(r.parentNode).select(&quot;rect.catrect&quot;),c=l.node().getBoundingClientRect(),u=l.datum(),f=u.parcatsViewModel,h=f.model.dimensions[u.model.dimensionInd],p=f.trace,d=c.top+c.height/2;f.dimensions.length&gt;1&amp;&amp;h.displayInd===f.dimensions.length-1?(i=c.left,a=&quot;left&quot;):(i=c.left+c.width,a=&quot;right&quot;);var g=u.model.count,m=u.model.categoryLabel,v=g/u.parcatsViewModel.model.count,y={countLabel:g,categoryLabel:m,probabilityLabel:v.toFixed(3)},x=[];-1!==u.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;x.push([&quot;Count:&quot;,y.countLabel].join(&quot; &quot;)),-1!==u.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;x.push([&quot;P(&quot;+y.categoryLabel+&quot;):&quot;,y.probabilityLabel].join(&quot; &quot;));var b=x.join(&quot;&lt;br&gt;&quot;);return{trace:p,x:o*(i-e.left),y:s*(d-e.top),text:b,color:&quot;lightgray&quot;,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontSize:12,fontColor:&quot;black&quot;,idealAlign:a,hovertemplate:p.hovertemplate,hovertemplateLabels:y,eventData:[{data:p._input,fullData:p,count:g,category:m,probability:v}]}}function E(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){if(n.mouse(this)[1]&lt;-1)return;var e,r=t.parcatsViewModel.graphDiv,i=r._fullLayout,s=i._paperdiv.node().getBoundingClientRect(),l=t.parcatsViewModel.hoveron;if(&quot;color&quot;===l?(!function(t){var e=n.select(t).datum(),r=k(e);_(r),r.each((function(){o.raiseToTop(this)})),n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;).filter((function(t){return t.color===e.color})).each((function(){o.raiseToTop(this),n.select(this).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,1.5)}))}(this),A(this,&quot;plotly_hover&quot;,n.event)):(!function(t){n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;).each((function(t){var e=k(t);_(e),e.each((function(){o.raiseToTop(this)}))})),n.select(t.parentNode).select(&quot;rect.catrect&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,2.5)}(this),M(this,&quot;plotly_hover&quot;,n.event)),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;none&quot;))&quot;category&quot;===l?e=S(r,s,this):&quot;color&quot;===l?e=function(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=r.getBoundingClientRect(),u=n.select(r).datum(),f=u.categoryViewModel,h=f.parcatsViewModel,p=h.model.dimensions[f.model.dimensionInd],d=h.trace,g=l.y+l.height/2;h.dimensions.length&gt;1&amp;&amp;p.displayInd===h.dimensions.length-1?(i=l.left,a=&quot;left&quot;):(i=l.left+l.width,a=&quot;right&quot;);var m=f.model.categoryLabel,v=u.parcatsViewModel.model.count,y=0;u.categoryViewModel.bands.forEach((function(t){t.color===u.color&amp;&amp;(y+=t.count)}));var x=f.model.count,b=0;h.pathSelection.each((function(t){t.model.color===u.color&amp;&amp;(b+=t.model.count)}));var _=y/v,w=y/b,T=y/x,k={countLabel:v,categoryLabel:m,probabilityLabel:_.toFixed(3)},M=[];-1!==f.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;M.push([&quot;Count:&quot;,k.countLabel].join(&quot; &quot;)),-1!==f.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;(M.push(&quot;P(color \u2229 &quot;+m+&quot;): &quot;+k.probabilityLabel),M.push(&quot;P(&quot;+m+&quot; | color): &quot;+w.toFixed(3)),M.push(&quot;P(color | &quot;+m+&quot;): &quot;+T.toFixed(3)));var A=M.join(&quot;&lt;br&gt;&quot;),S=c.mostReadable(u.color,[&quot;black&quot;,&quot;white&quot;]);return{trace:d,x:o*(i-e.left),y:s*(g-e.top),text:A,color:u.color,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontColor:S,fontSize:10,idealAlign:a,hovertemplate:d.hovertemplate,hovertemplateLabels:k,eventData:[{data:d._input,fullData:d,category:m,count:v,probability:_,categorycount:x,colorcount:b,bandcolorcount:y}]}}(r,s,this):&quot;dimension&quot;===l&amp;&amp;(e=function(t,e,r){var i=[];return n.select(r.parentNode.parentNode).selectAll(&quot;g.category&quot;).select(&quot;rect.catrect&quot;).each((function(){i.push(S(t,e,this))})),i}(r,s,this)),e&amp;&amp;a.loneHover(e,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r})}}function C(t){var e=t.parcatsViewModel;if(!e.dragDimension&amp;&amp;(b(e.pathSelection),w(e.dimensionSelection.selectAll(&quot;g.category&quot;)),T(e.dimensionSelection.selectAll(&quot;g.category&quot;).selectAll(&quot;rect.bandrect&quot;)),a.loneUnhover(e.graphDiv._fullLayout._hoverlayer.node()),e.pathSelection.sort(d),-1===e.hoverinfoItems.indexOf(&quot;skip&quot;))){&quot;color&quot;===t.parcatsViewModel.hoveron?A(this,&quot;plotly_unhover&quot;,n.event):M(this,&quot;plotly_unhover&quot;,n.event)}}function L(t){&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;(t.dragDimensionDisplayInd=t.model.displayInd,t.initialDragDimensionDisplayInds=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),t.dragHasMoved=!1,t.dragCategoryDisplayInd=null,n.select(this).selectAll(&quot;g.category&quot;).select(&quot;rect.catrect&quot;).each((function(e){var r=n.mouse(this)[0],i=n.mouse(this)[1];-2&lt;=r&amp;&amp;r&lt;=e.width+2&amp;&amp;-2&lt;=i&amp;&amp;i&lt;=e.height+2&amp;&amp;(t.dragCategoryDisplayInd=e.model.displayInd,t.initialDragCategoryDisplayInds=t.model.categories.map((function(t){return t.displayInd})),e.model.dragY=e.y,o.raiseToTop(this.parentNode),n.select(this.parentNode).selectAll(&quot;rect.bandrect&quot;).each((function(e){e.y&lt;i&amp;&amp;i&lt;=e.y+e.height&amp;&amp;(t.potentialClickBand=this)})))})),t.parcatsViewModel.dragDimension=t,a.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()))}function I(t){if(&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;(t.dragHasMoved=!0,null!==t.dragDimensionDisplayInd)){var e=t.dragDimensionDisplayInd,r=e-1,i=e+1,a=t.parcatsViewModel.dimensions[e];if(null!==t.dragCategoryDisplayInd){var o=a.categories[t.dragCategoryDisplayInd];o.model.dragY+=n.event.dy;var s=o.model.dragY,l=o.model.displayInd,c=a.categories,u=c[l-1],f=c[l+1];void 0!==u&amp;&amp;s&lt;u.y+u.height/2&amp;&amp;(o.model.displayInd=u.model.displayInd,u.model.displayInd=l),void 0!==f&amp;&amp;s+o.height&gt;f.y+f.height/2&amp;&amp;(o.model.displayInd=f.model.displayInd,f.model.displayInd=l),t.dragCategoryDisplayInd=o.model.displayInd}if(null===t.dragCategoryDisplayInd||&quot;freeform&quot;===t.parcatsViewModel.arrangement){a.model.dragX=n.event.x;var h=t.parcatsViewModel.dimensions[r],p=t.parcatsViewModel.dimensions[i];void 0!==h&amp;&amp;a.model.dragX&lt;h.x+h.width&amp;&amp;(a.model.displayInd=h.model.displayInd,h.model.displayInd=e),void 0!==p&amp;&amp;a.model.dragX+a.width&gt;p.x&amp;&amp;(a.model.displayInd=p.model.displayInd,p.model.displayInd=t.dragDimensionDisplayInd),t.dragDimensionDisplayInd=a.model.displayInd}N(t.parcatsViewModel),B(t.parcatsViewModel),D(t.parcatsViewModel),O(t.parcatsViewModel)}}function P(t){if(&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;null!==t.dragDimensionDisplayInd){n.select(this).selectAll(&quot;text&quot;).attr(&quot;font-weight&quot;,&quot;normal&quot;);var e={},r=z(t.parcatsViewModel),a=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),o=t.initialDragDimensionDisplayInds.some((function(t,e){return t!==a[e]}));o&amp;&amp;a.forEach((function(r,n){var i=t.parcatsViewModel.model.dimensions[n].containerInd;e[&quot;dimensions[&quot;+i+&quot;].displayindex&quot;]=r}));var s=!1;if(null!==t.dragCategoryDisplayInd){var l=t.model.categories.map((function(t){return t.displayInd}));if(s=t.initialDragCategoryDisplayInds.some((function(t,e){return t!==l[e]}))){var c=t.model.categories.slice().sort((function(t,e){return t.displayInd-e.displayInd})),u=c.map((function(t){return t.categoryValue})),f=c.map((function(t){return t.categoryLabel}));e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].categoryarray&quot;]=[u],e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].ticktext&quot;]=[f],e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].categoryorder&quot;]=&quot;array&quot;}}if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)&amp;&amp;!t.dragHasMoved&amp;&amp;t.potentialClickBand&amp;&amp;(&quot;color&quot;===t.parcatsViewModel.hoveron?A(t.potentialClickBand,&quot;plotly_click&quot;,n.event.sourceEvent):M(t.potentialClickBand,&quot;plotly_click&quot;,n.event.sourceEvent)),t.model.dragX=null,null!==t.dragCategoryDisplayInd)t.parcatsViewModel.dimensions[t.dragDimensionDisplayInd].categories[t.dragCategoryDisplayInd].model.dragY=null,t.dragCategoryDisplayInd=null;t.dragDimensionDisplayInd=null,t.parcatsViewModel.dragDimension=null,t.dragHasMoved=null,t.potentialClickBand=null,N(t.parcatsViewModel),B(t.parcatsViewModel),n.transition().duration(300).ease(&quot;cubic-in-out&quot;).each((function(){D(t.parcatsViewModel,!0),O(t.parcatsViewModel,!0)})).each(&quot;end&quot;,(function(){(o||s)&amp;&amp;i.restyle(t.parcatsViewModel.graphDiv,e,[r])}))}}function z(t){for(var e,r=t.graphDiv._fullData,n=0;n&lt;r.length;n++)if(t.key===r[n].uid){e=n;break}return e}function O(t,e){var r;void 0===e&amp;&amp;(e=!1),t.pathSelection.data((function(t){return t.paths}),h),(r=t.pathSelection,e?r.transition():r).attr(&quot;d&quot;,(function(t){return t.svgD}))}function D(t,e){function r(t){return e?t.transition():t}void 0===e&amp;&amp;(e=!1),t.dimensionSelection.data((function(t){return t.dimensions}),h);var i=t.dimensionSelection.selectAll(&quot;g.category&quot;).data((function(t){return t.categories}),h);r(t.dimensionSelection).attr(&quot;transform&quot;,(function(t){return s(t.x,0)})),r(i).attr(&quot;transform&quot;,(function(t){return s(0,t.y)})),i.select(&quot;.dimlabel&quot;).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})),i.select(&quot;.catlabel&quot;).attr(&quot;text-anchor&quot;,(function(t){return p(t)?&quot;start&quot;:&quot;end&quot;})).attr(&quot;x&quot;,(function(t){return p(t)?t.width+5:-5})).each((function(t){var e,r;p(t)?(e=t.width+5,r=&quot;start&quot;):(e=-5,r=&quot;end&quot;),n.select(this).selectAll(&quot;tspan&quot;).attr(&quot;x&quot;,e).attr(&quot;text-anchor&quot;,r)}));var a=i.selectAll(&quot;rect.bandrect&quot;).data((function(t){return t.bands}),h),l=a.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bandrect&quot;).attr(&quot;cursor&quot;,&quot;move&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;fill-opacity&quot;,0);a.attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})).attr(&quot;y&quot;,(function(t){return t.y})),T(l),a.each((function(){o.raiseToTop(this)})),a.exit().remove()}function R(t,e,r){var n,i=r[0],a=e.margin||{l:80,r:80,t:100,b:80},o=i.trace,s=o.domain,l=e.width,c=e.height,u=Math.floor(l*(s.x[1]-s.x[0])),f=Math.floor(c*(s.y[1]-s.y[0])),h=s.x[0]*l+a.l,p=e.height-s.y[1]*e.height+a.t,d=o.line.shape;n=&quot;all&quot;===o.hoverinfo?[&quot;count&quot;,&quot;probability&quot;]:(o.hoverinfo||&quot;&quot;).split(&quot;+&quot;);var g={trace:o,key:o.uid,model:i,x:h,y:p,width:u,height:f,hoveron:o.hoveron,hoverinfoItems:n,arrangement:o.arrangement,bundlecolors:o.bundlecolors,sortpaths:o.sortpaths,labelfont:o.labelfont,categorylabelfont:o.tickfont,pathShape:d,dragDimension:null,margin:a,paths:[],dimensions:[],graphDiv:t,traceSelection:null,pathSelection:null,dimensionSelection:null};return i.dimensions&amp;&amp;(N(g),B(g)),g}function F(t,e,r,i,a){var o,s,l=[],c=[];for(s=0;s&lt;r.length-1;s++)o=n.interpolateNumber(r[s]+t[s],t[s+1]),l.push(o(a)),c.push(o(1-a));var u=&quot;M &quot;+t[0]+&quot;,&quot;+e[0];for(u+=&quot;l&quot;+r[0]+&quot;,0 &quot;,s=1;s&lt;r.length;s++)u+=&quot;C&quot;+l[s-1]+&quot;,&quot;+e[s-1]+&quot; &quot;+c[s-1]+&quot;,&quot;+e[s]+&quot; &quot;+t[s]+&quot;,&quot;+e[s],u+=&quot;l&quot;+r[s]+&quot;,0 &quot;;for(u+=&quot;l0,&quot;+i+&quot; &quot;,u+=&quot;l -&quot;+r[r.length-1]+&quot;,0 &quot;,s=r.length-2;s&gt;=0;s--)u+=&quot;C&quot;+c[s]+&quot;,&quot;+(e[s+1]+i)+&quot; &quot;+l[s]+&quot;,&quot;+(e[s]+i)+&quot; &quot;+(t[s]+r[s])+&quot;,&quot;+(e[s]+i),u+=&quot;l-&quot;+r[s]+&quot;,0 &quot;;return u+=&quot;Z&quot;}function B(t){var e=t.dimensions,r=t.model,n=e.map((function(t){return t.categories.map((function(t){return t.y}))})),i=t.model.dimensions.map((function(t){return t.categories.map((function(t){return t.displayInd}))})),a=t.model.dimensions.map((function(t){return t.displayInd})),o=t.dimensions.map((function(t){return t.model.dimensionInd})),s=e.map((function(t){return t.x})),l=e.map((function(t){return t.width})),c=[];for(var u in r.paths)r.paths.hasOwnProperty(u)&amp;&amp;c.push(r.paths[u]);function f(t){var e=t.categoryInds.map((function(t,e){return i[e][t]}));return o.map((function(t){return e[t]}))}c.sort((function(e,r){var n=f(e),i=f(r);return&quot;backward&quot;===t.sortpaths&amp;&amp;(n.reverse(),i.reverse()),n.push(e.valueInds[0]),i.push(r.valueInds[0]),t.bundlecolors&amp;&amp;(n.unshift(e.rawColor),i.unshift(r.rawColor)),n&lt;i?-1:n&gt;i?1:0}));for(var h=new Array(c.length),p=e[0].model.count,d=e[0].categories.map((function(t){return t.height})).reduce((function(t,e){return t+e})),g=0;g&lt;c.length;g++){var m,v=c[g];m=p&gt;0?d*(v.count/p):0;for(var y,x=new Array(n.length),b=0;b&lt;v.categoryInds.length;b++){var _=v.categoryInds[b],w=i[b][_],T=a[b];x[T]=n[T][w],n[T][w]+=m;var k=t.dimensions[T].categories[w],M=k.bands.length,A=k.bands[M-1];if(void 0===A||v.rawColor!==A.rawColor){var S=void 0===A?0:A.y+A.height;k.bands.push({key:S,color:v.color,rawColor:v.rawColor,height:m,width:k.width,count:v.count,y:S,categoryViewModel:k,parcatsViewModel:t})}else{var E=k.bands[M-1];E.height+=m,E.count+=v.count}}y=&quot;hspline&quot;===t.pathShape?F(s,x,l,m,.5):F(s,x,l,m,0),h[g]={key:v.valueInds[0],model:v,height:m,leftXs:s,topYs:x,dimWidths:l,svgD:y,parcatsViewModel:t}}t.paths=h}function N(t){var e=t.model.dimensions.map((function(t){return{displayInd:t.displayInd,dimensionInd:t.dimensionInd}}));e.sort((function(t,e){return t.displayInd-e.displayInd}));var r=[];for(var n in e){var i=e[n].dimensionInd,a=t.model.dimensions[i];r.push(j(t,a))}t.dimensions=r}function j(t,e){var r,n=t.model.dimensions.length,i=e.displayInd;r=40+(n&gt;1?(t.width-80-16)/(n-1):0)*i;var a,o,s,l,c,u=[],f=t.model.maxCats,h=e.categories.length,p=e.count,d=t.height-8*(f-1),g=8*(f-h)/2,m=e.categories.map((function(t){return{displayInd:t.displayInd,categoryInd:t.categoryInd}}));for(m.sort((function(t,e){return t.displayInd-e.displayInd})),c=0;c&lt;h;c++)l=m[c].categoryInd,o=e.categories[l],a=p&gt;0?o.count/p*d:0,s={key:o.valueInds[0],model:o,width:16,height:a,y:null!==o.dragY?o.dragY:g,bands:[],parcatsViewModel:t},g=g+a+8,u.push(s);return{key:e.dimensionInd,x:null!==e.dragX?e.dragX:r,y:0,width:16,model:e,categories:u,parcatsViewModel:t,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}e.exports=function(t,e,r,n){f(r,t,n,e)}},{&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_api&quot;:814,d3:169,tinycolor2:576}],1148:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./parcats&quot;);e.exports=function(t,e,r,i){var a=t._fullLayout,o=a._paper,s=a._size;n(t,o,e,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},r,i)}},{&quot;./parcats&quot;:1147}],1149:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/layout_attributes&quot;),a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/plot_template&quot;).templatedArray;e.exports={domain:o({name:&quot;parcoords&quot;,trace:!0,editType:&quot;plot&quot;}),labelangle:{valType:&quot;angle&quot;,dflt:0,editType:&quot;plot&quot;},labelside:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;plot&quot;},labelfont:a({editType:&quot;plot&quot;}),tickfont:a({editType:&quot;plot&quot;}),rangefont:a({editType:&quot;plot&quot;}),dimensions:l(&quot;dimension&quot;,{label:{valType:&quot;string&quot;,editType:&quot;plot&quot;},tickvals:s({},i.tickvals,{editType:&quot;plot&quot;}),ticktext:s({},i.ticktext,{editType:&quot;plot&quot;}),tickformat:s({},i.tickformat,{editType:&quot;plot&quot;}),visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},constraintrange:{valType:&quot;info_array&quot;,freeLength:!0,dimensions:&quot;1-2&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},multiselect:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;}),line:s({editType:&quot;calc&quot;},n(&quot;line&quot;,{colorscaleDflt:&quot;Viridis&quot;,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}))}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856}],1150:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;d3&quot;),a=t(&quot;../../lib/gup&quot;).keyFun,o=t(&quot;../../lib/gup&quot;).repeat,s=t(&quot;../../lib&quot;).sorterAsc,l=t(&quot;../../lib&quot;).strTranslate,c=n.bar.snapRatio;function u(t,e){return t*(1-c)+e*c}var f=n.bar.snapClose;function h(t,e){return t*(1-f)+e*f}function p(t,e,r,n){if(function(t,e){for(var r=0;r&lt;e.length;r++)if(t&gt;=e[r][0]&amp;&amp;t&lt;=e[r][1])return!0;return!1}(r,n))return r;var i=t?-1:1,a=0,o=e.length-1;if(i&lt;0){var s=a;a=o,o=s}for(var l=e[a],c=l,f=a;i*f&lt;i*o;f+=i){var p=f+i,d=e[p];if(i*r&lt;i*h(l,d))return u(l,c);if(i*r&lt;i*d||p===o)return u(d,l);c=l,l=d}}function d(t){t.attr(&quot;x&quot;,-n.bar.captureWidth/2).attr(&quot;width&quot;,n.bar.captureWidth)}function g(t){t.attr(&quot;visibility&quot;,&quot;visible&quot;).style(&quot;visibility&quot;,&quot;visible&quot;).attr(&quot;fill&quot;,&quot;yellow&quot;).attr(&quot;opacity&quot;,0)}function m(t){if(!t.brush.filterSpecified)return&quot;0,&quot;+t.height;for(var e,r,n,i=v(t.brush.filter.getConsolidated(),t.height),a=[0],o=i.length?i[0][0]:null,s=0;s&lt;i.length;s++)r=(e=i[s])[1]-e[0],a.push(o),a.push(r),(n=s+1)&lt;i.length&amp;&amp;(o=i[n][0]-e[1]);return a.push(t.height),a}function v(t,e){return t.map((function(t){return t.map((function(t){return Math.max(0,t*e)})).sort(s)}))}function y(){i.select(document.body).style(&quot;cursor&quot;,null)}function x(t){t.attr(&quot;stroke-dasharray&quot;,m)}function b(t,e){var r=i.select(t).selectAll(&quot;.highlight, .highlight-shadow&quot;);x(e?r.transition().duration(n.bar.snapDuration).each(&quot;end&quot;,e):r)}function _(t,e){var r,i=t.brush,a=NaN,o={};if(i.filterSpecified){var s=t.height,l=i.filter.getConsolidated(),c=v(l,s),u=NaN,f=NaN,h=NaN;for(r=0;r&lt;=c.length;r++){var p=c[r];if(p&amp;&amp;p[0]&lt;=e&amp;&amp;e&lt;=p[1]){u=r;break}if(f=r?r-1:NaN,p&amp;&amp;p[0]&gt;e){h=r;break}}if(a=u,isNaN(a)&amp;&amp;(a=isNaN(f)||isNaN(h)?isNaN(f)?h:f:e-c[f][1]&lt;c[h][0]-e?f:h),!isNaN(a)){var d=c[a],g=function(t,e){var r=n.bar.handleHeight;if(!(e&gt;t[1]+r||e&lt;t[0]-r))return e&gt;=.9*t[1]+.1*t[0]?&quot;n&quot;:e&lt;=.9*t[0]+.1*t[1]?&quot;s&quot;:&quot;ns&quot;}(d,e);g&amp;&amp;(o.interval=l[a],o.intervalPix=d,o.region=g)}}if(t.ordinal&amp;&amp;!o.region){var m=t.unitTickvals,y=t.unitToPaddedPx.invert(e);for(r=0;r&lt;m.length;r++){var x=[.25*m[Math.max(r-1,0)]+.75*m[r],.25*m[Math.min(r+1,m.length-1)]+.75*m[r]];if(y&gt;=x[0]&amp;&amp;y&lt;=x[1]){o.clickableOrdinalRange=x;break}}}return o}function w(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[r-a.grabPoint,r+a.barLength-a.grabPoint].map(e.unitToPaddedPx.invert):a.newExtent=[a.startExtent,e.unitToPaddedPx.invert(r)].sort(s),e.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(e),b(t.parentNode)}function T(t,e){var r=_(e,e.height-i.mouse(t)[1]-2*n.verticalPadding),a=&quot;crosshair&quot;;r.clickableOrdinalRange?a=&quot;pointer&quot;:r.region&amp;&amp;(a=r.region+&quot;-resize&quot;),i.select(document.body).style(&quot;cursor&quot;,a)}function k(t){t.on(&quot;mousemove&quot;,(function(t){i.event.preventDefault(),t.parent.inBrushDrag||T(this,t)})).on(&quot;mouseleave&quot;,(function(t){t.parent.inBrushDrag||y()})).call(i.behavior.drag().on(&quot;dragstart&quot;,(function(t){!function(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.unitToPaddedPx.invert(r),o=e.brush,s=_(e,r),l=s.interval,c=o.svgBrush;if(c.wasDragged=!1,c.grabbingBar=&quot;ns&quot;===s.region,c.grabbingBar){var u=l.map(e.unitToPaddedPx);c.grabPoint=r-u[0]-n.verticalPadding,c.barLength=u[1]-u[0]}c.clickableOrdinalRange=s.clickableOrdinalRange,c.stayingIntervals=e.multiselect&amp;&amp;o.filterSpecified?o.filter.getConsolidated():[],l&amp;&amp;(c.stayingIntervals=c.stayingIntervals.filter((function(t){return t[0]!==l[0]&amp;&amp;t[1]!==l[1]}))),c.startExtent=s.region?l[&quot;s&quot;===s.region?1:0]:a,e.parent.inBrushDrag=!0,c.brushStartCallback()}(this,t)})).on(&quot;drag&quot;,(function(t){w(this,t)})).on(&quot;dragend&quot;,(function(t){!function(t,e){var r=e.brush,n=r.filter,a=r.svgBrush;a._dragging||(T(t,e),w(t,e),e.brush.svgBrush.wasDragged=!1),a._dragging=!1,i.event.sourceEvent.stopPropagation();var o=a.grabbingBar;if(a.grabbingBar=!1,a.grabLocation=void 0,e.parent.inBrushDrag=!1,y(),!a.wasDragged)return a.wasDragged=void 0,a.clickableOrdinalRange?r.filterSpecified&amp;&amp;e.multiselect?a.extent.push(a.clickableOrdinalRange):(a.extent=[a.clickableOrdinalRange],r.filterSpecified=!0):o?(a.extent=a.stayingIntervals,0===a.extent.length&amp;&amp;A(r)):A(r),a.brushCallback(e),b(t.parentNode),void a.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);var s=function(){n.set(n.getConsolidated())};if(e.ordinal){var l=e.unitTickvals;l[l.length-1]&lt;l[0]&amp;&amp;l.reverse(),a.newExtent=[p(0,l,a.newExtent[0],a.stayingIntervals),p(1,l,a.newExtent[1],a.stayingIntervals)];var c=a.newExtent[1]&gt;a.newExtent[0];a.extent=a.stayingIntervals.concat(c?[a.newExtent]:[]),a.extent.length||A(r),a.brushCallback(e),c?b(t.parentNode,s):(s(),b(t.parentNode))}else s();a.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}(this,t)})))}function M(t,e){return t[0]-e[0]}function A(t){t.filterSpecified=!1,t.svgBrush.extent=[[-1/0,1/0]]}function S(t){for(var e,r=t.slice(),n=[],i=r.shift();i;){for(e=i.slice();(i=r.shift())&amp;&amp;i[0]&lt;=e[1];)e[1]=Math.max(e[1],i[1]);n.push(e)}return 1===n.length&amp;&amp;n[0][0]&gt;n[0][1]&amp;&amp;(n=[]),n}e.exports={makeBrush:function(t,e,r,n,i,a){var o,l=function(){var t,e,r=[];return{set:function(n){1===(r=n.map((function(t){return t.slice().sort(s)})).sort(M)).length&amp;&amp;r[0][0]===-1/0&amp;&amp;r[0][1]===1/0&amp;&amp;(r=[[0,-1]]),t=S(r),e=r.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0])},get:function(){return r.slice()},getConsolidated:function(){return t},getBounds:function(){return e}}}();return l.set(r),{filter:l,filterSpecified:e,svgBrush:{extent:[],brushStartCallback:n,brushCallback:(o=i,function(t){var e=t.brush,r=function(t){return t.svgBrush.extent.map((function(t){return t.slice()}))}(e).slice();e.filter.set(r),o()}),brushEndCallback:a}}},ensureAxisBrush:function(t){var e=t.selectAll(&quot;.&quot;+n.cn.axisBrush).data(o,a);e.enter().append(&quot;g&quot;).classed(n.cn.axisBrush,!0),function(t){var e=t.selectAll(&quot;.background&quot;).data(o);e.enter().append(&quot;rect&quot;).classed(&quot;background&quot;,!0).call(d).call(g).style(&quot;pointer-events&quot;,&quot;auto&quot;).attr(&quot;transform&quot;,l(0,n.verticalPadding)),e.call(k).attr(&quot;height&quot;,(function(t){return t.height-n.verticalPadding}));var r=t.selectAll(&quot;.highlight-shadow&quot;).data(o);r.enter().append(&quot;line&quot;).classed(&quot;highlight-shadow&quot;,!0).attr(&quot;x&quot;,-n.bar.width/2).attr(&quot;stroke-width&quot;,n.bar.width+n.bar.strokeWidth).attr(&quot;stroke&quot;,n.bar.strokeColor).attr(&quot;opacity&quot;,n.bar.strokeOpacity).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;),r.attr(&quot;y1&quot;,(function(t){return t.height})).call(x);var i=t.selectAll(&quot;.highlight&quot;).data(o);i.enter().append(&quot;line&quot;).classed(&quot;highlight&quot;,!0).attr(&quot;x&quot;,-n.bar.width/2).attr(&quot;stroke-width&quot;,n.bar.width-n.bar.strokeWidth).attr(&quot;stroke&quot;,n.bar.fillColor).attr(&quot;opacity&quot;,n.bar.fillOpacity).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;),i.attr(&quot;y1&quot;,(function(t){return t.height})).call(x)}(e)},cleanRanges:function(t,e){if(Array.isArray(t[0])?(t=t.map((function(t){return t.sort(s)})),t=e.multiselect?S(t.sort(M)):[t[0]]):t=[t.sort(s)],e.tickvals){var r=e.tickvals.slice().sort(s);if(!(t=t.map((function(t){var e=[p(0,r,t[0],[]),p(1,r,t[1],[])];if(e[1]&gt;e[0])return e})).filter((function(t){return t}))).length)return}return t.length&gt;1?t:t[0]}}},{&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;./constants&quot;:1153,d3:169}],1151:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/get_data&quot;).getModuleCalcData,a=t(&quot;./plot&quot;),o=t(&quot;../../constants/xmlns_namespaces&quot;);r.name=&quot;parcoords&quot;,r.plot=function(t){var e=i(t.calcdata,&quot;parcoords&quot;)[0];e.length&amp;&amp;a(t,e)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;parcoords&quot;),a=e._has&amp;&amp;e._has(&quot;parcoords&quot;);i&amp;&amp;!a&amp;&amp;(n._paperdiv.selectAll(&quot;.parcoords&quot;).remove(),n._glimages.selectAll(&quot;*&quot;).remove())},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(&quot;.svg-container&quot;);r.filter((function(t,e){return e===r.size()-1})).selectAll(&quot;.gl-canvas-context, .gl-canvas-focus&quot;).each((function(){var t=this.toDataURL(&quot;image/png&quot;);e.append(&quot;svg:image&quot;).attr({xmlns:o.svg,&quot;xlink:href&quot;:t,preserveAspectRatio:&quot;none&quot;,x:0,y:0,width:this.width,height:this.height})})),window.setTimeout((function(){n.selectAll(&quot;#filterBarPattern&quot;).attr(&quot;id&quot;,&quot;filterBarPattern&quot;)}),60)}},{&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../plots/get_data&quot;:865,&quot;./plot&quot;:1160,d3:169}],1152:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray,i=t(&quot;../../components/colorscale&quot;),a=t(&quot;../../lib/gup&quot;).wrap;e.exports=function(t,e){var r,o;return i.hasColorscale(e,&quot;line&quot;)&amp;&amp;n(e.line.color)?(r=e.line.color,o=i.extractOpts(e.line).colorscale,i.calc(t,e,{vals:r,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;})):(r=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=.5;return e}(e._length),o=[[0,e.line.color],[1,e.line.color]]),a({lineColor:r,cscale:o})}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775}],1153:[function(t,e,r){&quot;use strict&quot;;e.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:[&quot;contextLineLayer&quot;,&quot;focusLineLayer&quot;,&quot;pickLineLayer&quot;],axisTitleOffset:28,axisExtentOffset:10,deselectedLineColor:&quot;#777&quot;,bar:{width:4,captureWidth:10,fillColor:&quot;magenta&quot;,fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeColor:&quot;white&quot;,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:&quot;axis-extent-text&quot;,parcoordsLineLayers:&quot;parcoords-line-layers&quot;,parcoordsLineLayer:&quot;parcoords-lines&quot;,parcoords:&quot;parcoords&quot;,parcoordsControlView:&quot;parcoords-control-view&quot;,yAxis:&quot;y-axis&quot;,axisOverlays:&quot;axis-overlays&quot;,axis:&quot;axis&quot;,axisHeading:&quot;axis-heading&quot;,axisTitle:&quot;axis-title&quot;,axisExtent:&quot;axis-extent&quot;,axisExtentTop:&quot;axis-extent-top&quot;,axisExtentTopText:&quot;axis-extent-top-text&quot;,axisExtentBottom:&quot;axis-extent-bottom&quot;,axisExtentBottomText:&quot;axis-extent-bottom-text&quot;,axisBrush:&quot;axis-brush&quot;},id:{filterBarPattern:&quot;filter-bar-pattern&quot;}}},{}],1154:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;./attributes&quot;),u=t(&quot;./axisbrush&quot;),f=t(&quot;./constants&quot;).maxDimensionCount,h=t(&quot;./merge_length&quot;);function p(t,e,r,i){function a(r,i){return n.coerce(t,e,c.dimensions,r,i)}var o=a(&quot;values&quot;),s=a(&quot;visible&quot;);if(o&amp;&amp;o.length||(s=e.visible=!1),s){a(&quot;label&quot;),a(&quot;tickvals&quot;),a(&quot;ticktext&quot;),a(&quot;tickformat&quot;);var f=a(&quot;range&quot;);e._ax={_id:&quot;y&quot;,type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;,range:f},l.setConvert(e._ax,i.layout),a(&quot;multiselect&quot;);var h=a(&quot;constraintrange&quot;);h&amp;&amp;(e.constraintrange=u.cleanRanges(h,e))}}e.exports=function(t,e,r,l){function u(r,i){return n.coerce(t,e,c,r,i)}var d=t.dimensions;Array.isArray(d)&amp;&amp;d.length&gt;f&amp;&amp;(n.log(&quot;parcoords traces support up to &quot;+f+&quot; dimensions at the moment&quot;),d.splice(f));var g=s(t,e,{name:&quot;dimensions&quot;,layout:l,handleItemDefaults:p}),m=function(t,e,r,o,s){var l=s(&quot;line.color&quot;,r);if(i(t,&quot;line&quot;)&amp;&amp;n.isArrayOrTypedArray(l)){if(l.length)return s(&quot;line.colorscale&quot;),a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}),l.length;e.line.color=r}return 1/0}(t,e,r,l,u);o(e,l,u),Array.isArray(g)&amp;&amp;g.length||(e.visible=!1),h(e,g,&quot;values&quot;,m);var v={family:l.font.family,size:Math.round(l.font.size/1.2),color:l.font.color};n.coerceFont(u,&quot;labelfont&quot;,v),n.coerceFont(u,&quot;tickfont&quot;,v),n.coerceFont(u,&quot;rangefont&quot;,v),u(&quot;labelangle&quot;),u(&quot;labelside&quot;)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1149,&quot;./axisbrush&quot;:1150,&quot;./constants&quot;:1153,&quot;./merge_length&quot;:1158}],1155:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isTypedArray;r.convertTypedArray=function(t){return n(t)?Array.prototype.slice.call(t):t},r.isOrdinal=function(t){return!!t.tickvals},r.isVisible=function(t){return t.visible||!(&quot;visible&quot;in t)}},{&quot;../../lib&quot;:778}],1156:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},moduleType:&quot;trace&quot;,name:&quot;parcoords&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;noOpacity&quot;,&quot;noHover&quot;],meta:{}}},{&quot;./attributes&quot;:1149,&quot;./base_plot&quot;:1151,&quot;./calc&quot;:1152,&quot;./defaults&quot;:1154,&quot;./plot&quot;:1160}],1157:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nattribute vec4 p01_04, p05_08, p09_12, p13_16,\n               p17_20, p21_24, p25_28, p29_32,\n               p33_36, p37_40, p41_44, p45_48,\n               p49_52, p53_56, p57_60, colors;\n\nuniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,\n             loA, hiA, loB, hiB, loC, hiC, loD, hiD;\n\nuniform vec2 resolution, viewBoxPos, viewBoxSize;\nuniform sampler2D mask, palette;\nuniform float maskHeight;\nuniform float drwLayer; // 0: context, 1: focus, 2: pick\nuniform vec4 contextColor;\n\nbool isPick    = (drwLayer &gt; 1.5);\nbool isContext = (drwLayer &lt; 0.5);\n\nconst vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);\nconst vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);\n\nfloat val(mat4 p, mat4 v) {\n    return dot(matrixCompMult(p, v) * UNITS, UNITS);\n}\n\nfloat axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {\n    float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);\n    float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);\n    return y1 * (1.0 - ratio) + y2 * ratio;\n}\n\nint iMod(int a, int b) {\n    return a - b * (a / b);\n}\n\nbool fOutside(float p, float lo, float hi) {\n    return (lo &lt; hi) &amp;&amp; (lo &gt; p || p &gt; hi);\n}\n\nbool vOutside(vec4 p, vec4 lo, vec4 hi) {\n    return (\n        fOutside(p[0], lo[0], hi[0]) ||\n        fOutside(p[1], lo[1], hi[1]) ||\n        fOutside(p[2], lo[2], hi[2]) ||\n        fOutside(p[3], lo[3], hi[3])\n    );\n}\n\nbool mOutside(mat4 p, mat4 lo, mat4 hi) {\n    return (\n        vOutside(p[0], lo[0], hi[0]) ||\n        vOutside(p[1], lo[1], hi[1]) ||\n        vOutside(p[2], lo[2], hi[2]) ||\n        vOutside(p[3], lo[3], hi[3])\n    );\n}\n\nbool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {\n    return mOutside(A, loA, hiA) ||\n           mOutside(B, loB, hiB) ||\n           mOutside(C, loC, hiC) ||\n           mOutside(D, loD, hiD);\n}\n\nbool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {\n    mat4 pnts[4];\n    pnts[0] = A;\n    pnts[1] = B;\n    pnts[2] = C;\n    pnts[3] = D;\n\n    for(int i = 0; i &lt; 4; ++i) {\n        for(int j = 0; j &lt; 4; ++j) {\n            for(int k = 0; k &lt; 4; ++k) {\n                if(0 == iMod(\n                    int(255.0 * texture2D(mask,\n                        vec2(\n                            (float(i * 2 + j / 2) + 0.5) / 8.0,\n                            (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight\n                        ))[3]\n                    ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),\n                    2\n                )) return true;\n            }\n        }\n    }\n    return false;\n}\n\nvec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {\n    float x = 0.5 * sign(v) + 0.5;\n    float y = axisY(x, A, B, C, D);\n    float z = 1.0 - abs(v);\n\n    z += isContext ? 0.0 : 2.0 * float(\n        outsideBoundingBox(A, B, C, D) ||\n        outsideRasterMask(A, B, C, D)\n    );\n\n    return vec4(\n        2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,\n        z,\n        1.0\n    );\n}\n\nvoid main() {\n    mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);\n    mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);\n    mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);\n    mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);\n\n    float v = colors[3];\n\n    gl_Position = position(isContext, v, A, B, C, D);\n\n    fragColor =\n        isContext ? vec4(contextColor) :\n        isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));\n}\n&quot;]),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n    gl_FragColor = fragColor;\n}\n&quot;]),o=t(&quot;./constants&quot;).maxDimensionCount,s=t(&quot;../../lib&quot;),l=new Uint8Array(4),c=new Uint8Array(4),u={shape:[256,1],format:&quot;rgba&quot;,type:&quot;uint8&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;};function f(t,e,r,n,i){var a=t._gl;a.enable(a.SCISSOR_TEST),a.scissor(e,r,n,i),t.clear({color:[0,0,0,0],depth:1})}function h(t,e,r,n,i,a){var o=a.key;r.drawCompleted||(!function(t){t.read({x:0,y:0,width:1,height:1,data:l})}(t),r.drawCompleted=!0),function s(l){var c=Math.min(n,i-l*n);0===l&amp;&amp;(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],f(t,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),r.clearOnly||(a.count=2*c,a.offset=2*l*n,e(a),l*n+c&lt;i&amp;&amp;(r.currentRafs[o]=window.requestAnimationFrame((function(){s(l+1)}))),r.drawCompleted=!1)}(0)}function p(t,e){for(var r=new Array(256),n=0;n&lt;256;n++)r[n]=t(n/255).concat(e);return r}function d(t,e){return(t&gt;&gt;&gt;8*e)%256/255}function g(t,e,r){for(var n=new Array(8*e),i=0,a=0;a&lt;e;a++)for(var o=0;o&lt;2;o++)for(var s=0;s&lt;4;s++){var l=4*t+s,c=r[64*a+l];63===l&amp;&amp;0===o&amp;&amp;(c*=-1),n[i++]=c}return n}function m(t){var e=&quot;0&quot;+t;return e.substr(e.length-2)}function v(t){return t&lt;o?&quot;p&quot;+m(t+1)+&quot;_&quot;+m(t+4):&quot;colors&quot;}function y(t,e,r,n,i,a,o,l,c,u,f,h,p){for(var d=[[],[]],g=0;g&lt;64;g++)d[0][g]=g===i?1:0,d[1][g]=g===a?1:0;var m=t.lines.canvasOverdrag,v=t.domain,y=t.canvasWidth,x=t.canvasHeight,b=t.deselectedLines.color;return s.extendFlat({key:f,resolution:[y,x],viewBoxPos:[o+m,l],viewBoxSize:[c,u],i0:i,i1:a,dim0A:d[0].slice(0,16),dim0B:d[0].slice(16,32),dim0C:d[0].slice(32,48),dim0D:d[0].slice(48,64),dim1A:d[1].slice(0,16),dim1B:d[1].slice(16,32),dim1C:d[1].slice(32,48),dim1D:d[1].slice(48,64),drwLayer:h,contextColor:[b[0]/255,b[1]/255,b[2]/255,b[3]&lt;1?b[3]:Math.max(1/255,Math.pow(1/t.lines.color.length,1/3))],scissorX:(n===e?0:o+m)+(t.pad.l-m)+t.layoutWidth*v.x[0],scissorWidth:(n===r?y-o+m:c+.5)+(n===e?o+m:0),scissorY:l+t.pad.b+t.layoutHeight*v.y[0],scissorHeight:u,viewportX:t.pad.l-m+t.layoutWidth*v.x[0],viewportY:t.pad.b+t.layoutHeight*v.y[0],viewportWidth:y,viewportHeight:x},p)}function x(t){var e=Math.max(0,Math.floor(2047*t[0]),0),r=Math.min(2047,Math.ceil(2047*t[1]),2047);return[Math.min(e,r),Math.max(e,r)]}e.exports=function(t,e){var r,n,l,m,b,_=e.context,w=e.pick,T=e.regl,k={currentRafs:{},drawCompleted:!0,clearOnly:!1},M=function(t){for(var e={},r=0;r&lt;=o;r+=4)e[v(r)]=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)});return e}(T),A=T.texture(u),S=[];C(e);var E=T({profile:!1,blend:{enable:_,func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:1,dstAlpha:1},equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},color:[0,0,0,0]},depth:{enable:!_,mask:!0,func:&quot;less&quot;,range:[0,1]},cull:{enable:!0,face:&quot;back&quot;},scissor:{enable:!0,box:{x:T.prop(&quot;scissorX&quot;),y:T.prop(&quot;scissorY&quot;),width:T.prop(&quot;scissorWidth&quot;),height:T.prop(&quot;scissorHeight&quot;)}},viewport:{x:T.prop(&quot;viewportX&quot;),y:T.prop(&quot;viewportY&quot;),width:T.prop(&quot;viewportWidth&quot;),height:T.prop(&quot;viewportHeight&quot;)},dither:!1,vert:i,frag:a,primitive:&quot;lines&quot;,lineWidth:1,attributes:M,uniforms:{resolution:T.prop(&quot;resolution&quot;),viewBoxPos:T.prop(&quot;viewBoxPos&quot;),viewBoxSize:T.prop(&quot;viewBoxSize&quot;),dim0A:T.prop(&quot;dim0A&quot;),dim1A:T.prop(&quot;dim1A&quot;),dim0B:T.prop(&quot;dim0B&quot;),dim1B:T.prop(&quot;dim1B&quot;),dim0C:T.prop(&quot;dim0C&quot;),dim1C:T.prop(&quot;dim1C&quot;),dim0D:T.prop(&quot;dim0D&quot;),dim1D:T.prop(&quot;dim1D&quot;),loA:T.prop(&quot;loA&quot;),hiA:T.prop(&quot;hiA&quot;),loB:T.prop(&quot;loB&quot;),hiB:T.prop(&quot;hiB&quot;),loC:T.prop(&quot;loC&quot;),hiC:T.prop(&quot;hiC&quot;),loD:T.prop(&quot;loD&quot;),hiD:T.prop(&quot;hiD&quot;),palette:A,contextColor:T.prop(&quot;contextColor&quot;),mask:T.prop(&quot;maskTexture&quot;),drwLayer:T.prop(&quot;drwLayer&quot;),maskHeight:T.prop(&quot;maskHeight&quot;)},offset:T.prop(&quot;offset&quot;),count:T.prop(&quot;count&quot;)});function C(t){r=t.model,n=t.viewModel,l=n.dimensions.slice(),m=l[0]?l[0].values.length:0;var e=r.lines,i=w?e.color.map((function(t,r){return r/e.color.length})):e.color,a=function(t,e,r){for(var n,i=new Array(t*(o+4)),a=0,s=0;s&lt;t;s++){for(var l=0;l&lt;o;l++)i[a++]=l&lt;e.length?e[l].paddedUnitValues[s]:.5;i[a++]=d(s,2),i[a++]=d(s,1),i[a++]=d(s,0),i[a++]=(n=r[s],Math.max(1e-6,Math.min(.999999,n)))}return i}(m,l,i);!function(t,e,r){for(var n=0;n&lt;=o;n+=4)t[v(n)](g(n/4,e,r))}(M,m,a),_||w||(A=T.texture(s.extendFlat({data:p(r.unitToColor,255)},u)))}return{render:function(t,e,n){var i,a,o,s=t.length,c=1/0,u=-1/0;for(i=0;i&lt;s;i++)t[i].dim0.canvasX&lt;c&amp;&amp;(c=t[i].dim0.canvasX,a=i),t[i].dim1.canvasX&gt;u&amp;&amp;(u=t[i].dim1.canvasX,o=i);0===s&amp;&amp;f(T,0,0,r.canvasWidth,r.canvasHeight);var p=function(t){var e,r,n,i=[[],[]];for(n=0;n&lt;64;n++){var a=!t&amp;&amp;n&lt;l.length?l[n].brush.filter.getBounds():[-1/0,1/0];i[0][n]=a[0],i[1][n]=a[1]}var o=new Array(16384);for(e=0;e&lt;16384;e++)o[e]=255;if(!t)for(e=0;e&lt;l.length;e++){var s=e%8,c=(e-s)/8,u=Math.pow(2,s),f=l[e].brush.filter.get();if(!(f.length&lt;2)){var h=x(f[0])[1];for(r=1;r&lt;f.length;r++){var p=x(f[r]);for(n=h+1;n&lt;p[0];n++)o[8*n+c]&amp;=~u;h=Math.max(h,p[1])}}}var d={shape:[8,2048],format:&quot;alpha&quot;,type:&quot;uint8&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;,data:o};return b?b(d):b=T.texture(d),{maskTexture:b,maskHeight:2048,loA:i[0].slice(0,16),loB:i[0].slice(16,32),loC:i[0].slice(32,48),loD:i[0].slice(48,64),hiA:i[1].slice(0,16),hiB:i[1].slice(16,32),hiC:i[1].slice(32,48),hiD:i[1].slice(48,64)}}(_);for(i=0;i&lt;s;i++){var d=t[i],g=d.dim0.crossfilterDimensionIndex,v=d.dim1.crossfilterDimensionIndex,M=d.canvasX,A=d.canvasY,C=M+d.panelSizeX;if(e||!S[g]||S[g][0]!==M||S[g][1]!==C){S[g]=[M,C];var L=y(r,a,o,i,g,v,M,A,d.panelSizeX,d.panelSizeY,d.dim0.crossfilterDimensionIndex,_?0:w?2:1,p);k.clearOnly=n;var I=e?r.lines.blockLineCount:m;h(T,E,k,I,m,L)}}},readPixel:function(t,e){return T.read({x:t,y:e,width:1,height:1,data:c}),c},readPixels:function(t,e,r,n){var i=new Uint8Array(4*r*n);return T.read({x:t,y:e,width:r,height:n,data:i}),i},destroy:function(){for(var e in t.style[&quot;pointer-events&quot;]=&quot;none&quot;,A.destroy(),b&amp;&amp;b.destroy(),M)M[e].destroy()},update:C}}},{&quot;../../lib&quot;:778,&quot;./constants&quot;:1153,glslify:439}],1158:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i,a;for(n||(n=1/0),i=0;i&lt;e.length;i++)(a=e[i]).visible&amp;&amp;(n=Math.min(n,a[r].length));for(n===1/0&amp;&amp;(n=0),t._length=n,i=0;i&lt;e.length;i++)(a=e[i]).visible&amp;&amp;(a._length=n);return n}},{}],1159:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;color-rgba&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../lib&quot;),s=o.strRotate,l=o.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../../components/colorscale&quot;),h=t(&quot;../../lib/gup&quot;),p=h.keyFun,d=h.repeat,g=h.unwrap,m=t(&quot;./helpers&quot;),v=t(&quot;./constants&quot;),y=t(&quot;./axisbrush&quot;),x=t(&quot;./lines&quot;);function b(t,e,r){return o.aggNums(t,null,e,r)}function _(t,e){return T(b(Math.min,t,e),b(Math.max,t,e))}function w(t){var e=t.range;return e?T(e[0],e[1]):_(t.values,t._length)}function T(t,e){return!isNaN(t)&amp;&amp;isFinite(t)||(t=0),!isNaN(e)&amp;&amp;isFinite(e)||(e=0),t===e&amp;&amp;(0===t?(t-=1,e+=1):(t*=.9,e*=1.1)),[t,e]}function k(t,e,r,i,a){var o,s,l=w(r);return i?n.scale.ordinal().domain(i.map((o=n.format(r.tickformat),s=a,s?function(t,e){var r=s[e];return null==r?o(t):r}:o))).range(i.map((function(r){var n=(r-l[0])/(l[1]-l[0]);return t-e+n*(2*e-t)}))):n.scale.linear().domain(l).range([t-e,e])}function M(t){if(t.tickvals){var e=w(t);return n.scale.ordinal().domain(t.tickvals).range(t.tickvals.map((function(t){return(t-e[0])/(e[1]-e[0])})))}}function A(t){var e=t.map((function(t){return t[0]})),r=t.map((function(t){var e=i(t[1]);return n.rgb(&quot;rgb(&quot;+e[0]+&quot;,&quot;+e[1]+&quot;,&quot;+e[2]+&quot;)&quot;)})),a=&quot;rgb&quot;.split(&quot;&quot;).map((function(t){return n.scale.linear().clamp(!0).domain(e).range(r.map((i=t,function(t){return t[i]})));var i}));return function(t){return a.map((function(e){return e(t)}))}}function S(t){return t.dimensions.some((function(t){return t.brush.filterSpecified}))}function E(t,e,r){var a=g(e),s=a.trace,l=m.convertTypedArray(a.lineColor),c=s.line,u={color:i(v.deselectedLineColor)},h=f.extractOpts(c),p=h.reversescale?f.flipScale(a.cscale):a.cscale,d=s.domain,y=s.dimensions,x=t.width,b=s.labelangle,_=s.labelside,T=s.labelfont,k=s.tickfont,M=s.rangefont,S=o.extendDeepNoArrays({},c,{color:l.map(n.scale.linear().domain(w({values:l,range:[h.min,h.max],_length:s._length}))),blockLineCount:v.blockLineCount,canvasOverdrag:v.overdrag*v.canvasPixelRatio}),E=Math.floor(x*(d.x[1]-d.x[0])),C=Math.floor(t.height*(d.y[1]-d.y[0])),L=t.margin||{l:80,r:80,t:100,b:80},I=E,P=C;return{key:r,colCount:y.filter(m.isVisible).length,dimensions:y,tickDistance:v.tickDistance,unitToColor:A(p),lines:S,deselectedLines:u,labelAngle:b,labelSide:_,labelFont:T,tickFont:k,rangeFont:M,layoutWidth:x,layoutHeight:t.height,domain:d,translateX:d.x[0]*x,translateY:t.height-d.y[1]*t.height,pad:L,canvasWidth:I*v.canvasPixelRatio+2*S.canvasOverdrag,canvasHeight:P*v.canvasPixelRatio,width:I,height:P,canvasPixelRatio:v.canvasPixelRatio}}function C(t,e,r){var i=r.width,a=r.height,s=r.dimensions,l=r.canvasPixelRatio,c=function(t){return i*t/Math.max(1,r.colCount-1)},u=v.verticalPadding/a,f=function(t,e){return n.scale.linear().range([e,t-e])}(a,v.verticalPadding),h={key:r.key,xScale:c,model:r,inBrushDrag:!1},p={};return h.dimensions=s.filter(m.isVisible).map((function(i,s){var d=function(t,e){return n.scale.linear().domain(w(t)).range([e,1-e])}(i,u),g=p[i.label];p[i.label]=(g||0)+1;var x=i.label+(g?&quot;__&quot;+g:&quot;&quot;),b=i.constraintrange,_=b&amp;&amp;b.length;_&amp;&amp;!Array.isArray(b[0])&amp;&amp;(b=[b]);var T=_?b.map((function(t){return t.map(d)})):[[-1/0,1/0]],A=i.values;A.length&gt;i._length&amp;&amp;(A=A.slice(0,i._length));var E,C=i.tickvals;function L(t,e){return{val:t,text:E[e]}}function I(t,e){return t.val-e.val}if(Array.isArray(C)&amp;&amp;C.length){E=i.ticktext,Array.isArray(E)&amp;&amp;E.length?E.length&gt;C.length?E=E.slice(0,C.length):C.length&gt;E.length&amp;&amp;(C=C.slice(0,E.length)):E=C.map(n.format(i.tickformat));for(var P=1;P&lt;C.length;P++)if(C[P]&lt;C[P-1]){for(var z=C.map(L).sort(I),O=0;O&lt;C.length;O++)C[O]=z[O].val,E[O]=z[O].text;break}}else C=void 0;return A=m.convertTypedArray(A),{key:x,label:i.label,tickFormat:i.tickformat,tickvals:C,ticktext:E,ordinal:m.isOrdinal(i),multiselect:i.multiselect,xIndex:s,crossfilterDimensionIndex:s,visibleIndex:i._index,height:a,values:A,paddedUnitValues:A.map(d),unitTickvals:C&amp;&amp;C.map(d),xScale:c,x:c(s),canvasX:c(s)*l,unitToPaddedPx:f,domainScale:k(a,v.verticalPadding,i,C,E),ordinalScale:M(i),parent:h,model:r,brush:y.makeBrush(t,_,T,(function(){t.linePickActive(!1)}),(function(){var e=h;e.focusLayer&amp;&amp;e.focusLayer.render(e.panels,!0);var r=S(e);!t.contextShown()&amp;&amp;r?(e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!0),t.contextShown(!0)):t.contextShown()&amp;&amp;!r&amp;&amp;(e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!0,!0),t.contextShown(!1))}),(function(r){if(h.focusLayer.render(h.panels,!0),h.pickLayer&amp;&amp;h.pickLayer.render(h.panels,!0),t.linePickActive(!0),e&amp;&amp;e.filterChanged){var n=d.invert,a=r.map((function(t){return t.map(n).sort(o.sorterAsc)})).sort((function(t,e){return t[0]-e[0]}));e.filterChanged(h.key,i._index,a)}}))}})),h}function L(t){t.classed(v.cn.axisExtentText,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).style(&quot;cursor&quot;,&quot;default&quot;)}function I(t,e){var r=&quot;top&quot;===e?1:-1,n=t*Math.PI/180;return{dir:r,dx:Math.sin(n),dy:Math.cos(n),degrees:t}}function P(t,e){for(var r=e.panels||(e.panels=[]),n=t.data(),i=0;i&lt;n.length-1;i++){var a=r[i]||(r[i]={}),o=n[i],s=n[i+1];a.dim0=o,a.dim1=s,a.canvasX=o.canvasX,a.panelSizeX=s.canvasX-o.canvasX,a.panelSizeY=e.model.canvasHeight,a.y=0,a.canvasY=0}}function z(t,e){return a.tickText(t._ax,e,!1).text}function O(t,e){if(t.ordinal)return&quot;&quot;;var r=t.domainScale.domain(),n=r[e?r.length-1:0];return z(t.model.dimensions[t.visibleIndex],n)}e.exports=function(t,e,r,i){var f=t._fullLayout,h=f._toppaper,b=f._glcontainer;!function(t){for(var e=0;e&lt;t.length;e++)for(var r=0;r&lt;t[e].length;r++)for(var n=t[e][r].trace,i=n.dimensions,o=0;o&lt;i.length;o++){var s=i[o].values,l=i[o]._ax;l&amp;&amp;(l.range?l.range=T(l.range[0],l.range[1]):l.range=_(s,n._length),l.dtick||(l.dtick=.01*(Math.abs(l.range[1]-l.range[0])||1)),l.tickformat=i[o].tickformat,a.calcTicks(l),l.cleanRange())}}(e);var w,k,M=(w=!0,k=!1,{linePickActive:function(t){return arguments.length?w=!!t:w},contextShown:function(t){return arguments.length?k=!!t:k}}),A=e.filter((function(t){return g(t).trace.visible})).map(E.bind(0,r)).map(C.bind(0,M,i));b.each((function(t,e){return o.extendFlat(t,A[e])}));var D=b.selectAll(&quot;.gl-canvas&quot;).each((function(t){t.viewModel=A[0],t.model=t.viewModel?t.viewModel.model:null})),R=null;D.filter((function(t){return t.pick})).style(&quot;pointer-events&quot;,&quot;auto&quot;).on(&quot;mousemove&quot;,(function(t){if(M.linePickActive()&amp;&amp;t.lineLayer&amp;&amp;i&amp;&amp;i.hover){var e=n.event,r=this.width,a=this.height,o=n.mouse(this),s=o[0],l=o[1];if(s&lt;0||l&lt;0||s&gt;=r||l&gt;=a)return;var c=t.lineLayer.readPixel(s,a-1-l),u=0!==c[3],f=u?c[2]+256*(c[1]+256*c[0]):null,h={x:s,y:l,clientX:e.clientX,clientY:e.clientY,dataIndex:t.model.key,curveNumber:f};f!==R&amp;&amp;(u?i.hover(h):i.unhover&amp;&amp;i.unhover(h),R=f)}})),D.style(&quot;opacity&quot;,(function(t){return t.pick?0:1})),h.style(&quot;background&quot;,&quot;rgba(255, 255, 255, 0)&quot;);var F=h.selectAll(&quot;.&quot;+v.cn.parcoords).data(A,p);F.exit().remove(),F.enter().append(&quot;g&quot;).classed(v.cn.parcoords,!0).style(&quot;shape-rendering&quot;,&quot;crispEdges&quot;).style(&quot;pointer-events&quot;,&quot;none&quot;),F.attr(&quot;transform&quot;,(function(t){return l(t.model.translateX,t.model.translateY)}));var B=F.selectAll(&quot;.&quot;+v.cn.parcoordsControlView).data(d,p);B.enter().append(&quot;g&quot;).classed(v.cn.parcoordsControlView,!0),B.attr(&quot;transform&quot;,(function(t){return l(t.model.pad.l,t.model.pad.t)}));var N=B.selectAll(&quot;.&quot;+v.cn.yAxis).data((function(t){return t.dimensions}),p);N.enter().append(&quot;g&quot;).classed(v.cn.yAxis,!0),B.each((function(t){P(N,t)})),D.each((function(t){if(t.viewModel){!t.lineLayer||i?t.lineLayer=x(this,t):t.lineLayer.update(t),(t.key||0===t.key)&amp;&amp;(t.viewModel[t.key]=t.lineLayer);var e=!t.context||i;t.lineLayer.render(t.viewModel.panels,e)}})),N.attr(&quot;transform&quot;,(function(t){return l(t.xScale(t.xIndex),0)})),N.call(n.behavior.drag().origin((function(t){return t})).on(&quot;drag&quot;,(function(t){var e=t.parent;M.linePickActive(!1),t.x=Math.max(-v.overdrag,Math.min(t.model.width+v.overdrag,n.event.x)),t.canvasX=t.x*t.model.canvasPixelRatio,N.sort((function(t,e){return t.x-e.x})).each((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e.xIndex),e.canvasX=e.x*e.model.canvasPixelRatio})),P(N,e),N.filter((function(e){return 0!==Math.abs(t.xIndex-e.xIndex)})).attr(&quot;transform&quot;,(function(t){return l(t.xScale(t.xIndex),0)})),n.select(this).attr(&quot;transform&quot;,l(t.x,0)),N.each((function(r,n,i){i===t.parent.key&amp;&amp;(e.dimensions[n]=r)})),e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!1,!S(e)),e.focusLayer.render&amp;&amp;e.focusLayer.render(e.panels)})).on(&quot;dragend&quot;,(function(t){var e=t.parent;t.x=t.xScale(t.xIndex),t.canvasX=t.x*t.model.canvasPixelRatio,P(N,e),n.select(this).attr(&quot;transform&quot;,(function(t){return l(t.x,0)})),e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!1,!S(e)),e.focusLayer&amp;&amp;e.focusLayer.render(e.panels),e.pickLayer&amp;&amp;e.pickLayer.render(e.panels,!0),M.linePickActive(!0),i&amp;&amp;i.axesMoved&amp;&amp;i.axesMoved(e.key,e.dimensions.map((function(t){return t.crossfilterDimensionIndex})))}))),N.exit().remove();var j=N.selectAll(&quot;.&quot;+v.cn.axisOverlays).data(d,p);j.enter().append(&quot;g&quot;).classed(v.cn.axisOverlays,!0),j.selectAll(&quot;.&quot;+v.cn.axis).remove();var U=j.selectAll(&quot;.&quot;+v.cn.axis).data(d,p);U.enter().append(&quot;g&quot;).classed(v.cn.axis,!0),U.each((function(t){var e=t.model.height/t.model.tickDistance,r=t.domainScale,i=r.domain();n.select(this).call(n.svg.axis().orient(&quot;left&quot;).tickSize(4).outerTickSize(2).ticks(e,t.tickFormat).tickValues(t.ordinal?i:null).tickFormat((function(e){return m.isOrdinal(t)?e:z(t.model.dimensions[t.visibleIndex],e)})).scale(r)),u.font(U.selectAll(&quot;text&quot;),t.model.tickFont)})),U.selectAll(&quot;.domain, .tick&gt;line&quot;).attr(&quot;fill&quot;,&quot;none&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-opacity&quot;,.25).attr(&quot;stroke-width&quot;,&quot;1px&quot;),U.selectAll(&quot;text&quot;).style(&quot;text-shadow&quot;,&quot;1px 1px 1px #fff, -1px -1px 1px #fff, 1px -1px 1px #fff, -1px 1px 1px #fff&quot;).style(&quot;cursor&quot;,&quot;default&quot;);var V=j.selectAll(&quot;.&quot;+v.cn.axisHeading).data(d,p);V.enter().append(&quot;g&quot;).classed(v.cn.axisHeading,!0);var q=V.selectAll(&quot;.&quot;+v.cn.axisTitle).data(d,p);q.enter().append(&quot;text&quot;).classed(v.cn.axisTitle,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).style(&quot;cursor&quot;,&quot;ew-resize&quot;).style(&quot;pointer-events&quot;,&quot;auto&quot;),q.text((function(t){return t.label})).each((function(e){var r=n.select(this);u.font(r,e.model.labelFont),c.convertToTspans(r,t)})).attr(&quot;transform&quot;,(function(t){var e=I(t.model.labelAngle,t.model.labelSide),r=v.axisTitleOffset;return(e.dir&gt;0?&quot;&quot;:l(0,2*r+t.model.height))+s(e.degrees)+l(-r*e.dx,-r*e.dy)})).attr(&quot;text-anchor&quot;,(function(t){var e=I(t.model.labelAngle,t.model.labelSide);return 2*Math.abs(e.dx)&gt;Math.abs(e.dy)?e.dir*e.dx&lt;0?&quot;start&quot;:&quot;end&quot;:&quot;middle&quot;}));var H=j.selectAll(&quot;.&quot;+v.cn.axisExtent).data(d,p);H.enter().append(&quot;g&quot;).classed(v.cn.axisExtent,!0);var G=H.selectAll(&quot;.&quot;+v.cn.axisExtentTop).data(d,p);G.enter().append(&quot;g&quot;).classed(v.cn.axisExtentTop,!0),G.attr(&quot;transform&quot;,l(0,-v.axisExtentOffset));var Y=G.selectAll(&quot;.&quot;+v.cn.axisExtentTopText).data(d,p);Y.enter().append(&quot;text&quot;).classed(v.cn.axisExtentTopText,!0).call(L),Y.text((function(t){return O(t,!0)})).each((function(t){u.font(n.select(this),t.model.rangeFont)}));var W=H.selectAll(&quot;.&quot;+v.cn.axisExtentBottom).data(d,p);W.enter().append(&quot;g&quot;).classed(v.cn.axisExtentBottom,!0),W.attr(&quot;transform&quot;,(function(t){return l(0,t.model.height+v.axisExtentOffset)}));var X=W.selectAll(&quot;.&quot;+v.cn.axisExtentBottomText).data(d,p);X.enter().append(&quot;text&quot;).classed(v.cn.axisExtentBottomText,!0).attr(&quot;dy&quot;,&quot;0.75em&quot;).call(L),X.text((function(t){return O(t,!1)})).each((function(t){u.font(n.select(this),t.model.rangeFont)})),y.ensureAxisBrush(j)}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;./axisbrush&quot;:1150,&quot;./constants&quot;:1153,&quot;./helpers&quot;:1155,&quot;./lines&quot;:1157,&quot;color-rgba&quot;:127,d3:169}],1160:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./parcoords&quot;),i=t(&quot;../../lib/prepare_regl&quot;),a=t(&quot;./helpers&quot;).isVisible;function o(t,e,r){var n=e.indexOf(r),i=t.indexOf(n);return-1===i&amp;&amp;(i+=e.length),i}e.exports=function(t,e){var r=t._fullLayout;if(i(t)){var s={},l={},c={},u={},f=r._size;e.forEach((function(e,r){var n=e[0].trace;c[r]=n.index;var i=u[r]=n._fullInput.index;s[r]=t.data[i].dimensions,l[r]=t.data[i].dimensions.slice()}));n(t,e,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{filterChanged:function(e,n,i){var a=l[e][n],o=i.map((function(t){return t.slice()})),s=&quot;dimensions[&quot;+n+&quot;].constraintrange&quot;,f=r._tracePreGUI[t._fullData[c[e]]._fullInput.uid];if(void 0===f[s]){var h=a.constraintrange;f[s]=h||null}var p=t._fullData[c[e]].dimensions[n];o.length?(1===o.length&amp;&amp;(o=o[0]),a.constraintrange=o,p.constraintrange=o.slice(),o=[o]):(delete a.constraintrange,delete p.constraintrange,o=null);var d={};d[s]=o,t.emit(&quot;plotly_restyle&quot;,[d,[u[e]]])},hover:function(e){t.emit(&quot;plotly_hover&quot;,e)},unhover:function(e){t.emit(&quot;plotly_unhover&quot;,e)},axesMoved:function(e,r){var n=function(t,e){return function(r,n){return o(t,e,r)-o(t,e,n)}}(r,l[e].filter(a));s[e].sort(n),l[e].filter((function(t){return!a(t)})).sort((function(t){return l[e].indexOf(t)})).forEach((function(t){s[e].splice(s[e].indexOf(t),1),s[e].splice(l[e].indexOf(t),0,t)})),t.emit(&quot;plotly_restyle&quot;,[{dimensions:[s[e]]},[u[e]]])}})}}},{&quot;../../lib/prepare_regl&quot;:791,&quot;./helpers&quot;:1155,&quot;./parcoords&quot;:1159}],1161:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/domain&quot;).attributes,a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../components/color/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,c=t(&quot;../../lib/extend&quot;).extendFlat,u=a({editType:&quot;plot&quot;,arrayOk:!0,colorEditType:&quot;plot&quot;});e.exports={labels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},label0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},dlabel:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},marker:{colors:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:o.defaultLine,arrayOk:!0,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,arrayOk:!0,editType:&quot;style&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},text:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},scalegroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;],extras:[&quot;none&quot;],editType:&quot;calc&quot;},hoverinfo:c({},n.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;name&quot;]}),hovertemplate:s({},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;text&quot;]}),texttemplate:l({editType:&quot;plot&quot;},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;text&quot;]}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;auto&quot;,&quot;none&quot;],dflt:&quot;auto&quot;,arrayOk:!0,editType:&quot;plot&quot;},textfont:c({},u,{}),insidetextorientation:{valType:&quot;enumerated&quot;,values:[&quot;horizontal&quot;,&quot;radial&quot;,&quot;tangential&quot;,&quot;auto&quot;],dflt:&quot;auto&quot;,editType:&quot;plot&quot;},insidetextfont:c({},u,{}),outsidetextfont:c({},u,{}),automargin:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},font:c({},u,{}),position:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle center&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},domain:i({name:&quot;pie&quot;,trace:!0,editType:&quot;calc&quot;}),hole:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;},sort:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;],dflt:&quot;counterclockwise&quot;,editType:&quot;calc&quot;},rotation:{valType:&quot;number&quot;,min:-360,max:360,dflt:0,editType:&quot;calc&quot;},pull:{valType:&quot;number&quot;,min:0,max:1,dflt:0,arrayOk:!0,editType:&quot;calc&quot;},_deprecated:{title:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},titlefont:c({},u,{}),titleposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle center&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],editType:&quot;calc&quot;}}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906}],1162:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;pie&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1163:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../components/color&quot;),o={};function s(t){return function(e,r){return!!e&amp;&amp;(!!(e=i(e)).isValid()&amp;&amp;(e=a.addOpacity(e,e.getAlpha()),t[r]||(t[r]=e),e))}}function l(t,e){var r,n=JSON.stringify(t),a=e[n];if(!a){for(a=t.slice(),r=0;r&lt;t.length;r++)a.push(i(t[r]).lighten(20).toHexString());for(r=0;r&lt;t.length;r++)a.push(i(t[r]).darken(20).toHexString());e[n]=a}return a}e.exports={calc:function(t,e){var r,i,a=[],o=t._fullLayout,l=o.hiddenlabels||[],c=e.labels,u=e.marker.colors||[],f=e.values,h=e._length,p=e._hasValues&amp;&amp;h;if(e.dlabel)for(c=new Array(h),r=0;r&lt;h;r++)c[r]=String(e.label0+r*e.dlabel);var d={},g=s(o[&quot;_&quot;+e.type+&quot;colormap&quot;]),m=0,v=!1;for(r=0;r&lt;h;r++){var y,x,b;if(p){if(y=f[r],!n(y))continue;if((y=+y)&lt;0)continue}else y=1;void 0!==(x=c[r])&amp;&amp;&quot;&quot;!==x||(x=r);var _=d[x=String(x)];void 0===_?(d[x]=a.length,(b=-1!==l.indexOf(x))||(m+=y),a.push({v:y,label:x,color:g(u[r],x),i:r,pts:[r],hidden:b})):(v=!0,(i=a[_]).v+=y,i.pts.push(r),i.hidden||(m+=y),!1===i.color&amp;&amp;u[r]&amp;&amp;(i.color=g(u[r],x)))}return(&quot;funnelarea&quot;===e.type?v:e.sort)&amp;&amp;a.sort((function(t,e){return e.v-t.v})),a[0]&amp;&amp;(a[0].vTotal=m),a},crossTraceCalc:function(t,e){var r=(e||{}).type;r||(r=&quot;pie&quot;);var n=t._fullLayout,i=t.calcdata,a=n[r+&quot;colorway&quot;],s=n[&quot;_&quot;+r+&quot;colormap&quot;];n[&quot;extend&quot;+r+&quot;colors&quot;]&amp;&amp;(a=l(a,o));for(var c=0,u=0;u&lt;i.length;u++){var f=i[u];if(f[0].trace.type===r)for(var h=0;h&lt;f.length;h++){var p=f[h];!1===p.color&amp;&amp;(s[p.label]?p.color=s[p.label]:(s[p.label]=p.color=a[c%a.length],c++))}}},makePullColorFn:s,generateExtendedColors:l}},{&quot;../../components/color&quot;:643,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],1164:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText;function l(t,e){var r=Array.isArray(t),a=i.isArrayOrTypedArray(e),o=Math.min(r?t.length:1/0,a?e.length:1/0);if(isFinite(o)||(o=0),o&amp;&amp;a){for(var s,l=0;l&lt;o;l++){var c=e[l];if(n(c)&amp;&amp;c&gt;0){s=!0;break}}s||(o=0)}return{hasLabels:r,hasValues:a,len:o}}e.exports={handleLabelsAndValues:l,supplyDefaults:function(t,e,r,n){function c(r,n){return i.coerce(t,e,a,r,n)}var u=l(c(&quot;labels&quot;),c(&quot;values&quot;)),f=u.len;if(e._hasLabels=u.hasLabels,e._hasValues=u.hasValues,!e._hasLabels&amp;&amp;e._hasValues&amp;&amp;(c(&quot;label0&quot;),c(&quot;dlabel&quot;)),f){e._length=f,c(&quot;marker.line.width&quot;)&amp;&amp;c(&quot;marker.line.color&quot;),c(&quot;marker.colors&quot;),c(&quot;scalegroup&quot;);var h,p=c(&quot;text&quot;),d=c(&quot;texttemplate&quot;);if(d||(h=c(&quot;textinfo&quot;,Array.isArray(p)?&quot;text+percent&quot;:&quot;percent&quot;)),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),d||h&amp;&amp;&quot;none&quot;!==h){var g=c(&quot;textposition&quot;);s(t,e,n,c,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(g)||&quot;auto&quot;===g||&quot;outside&quot;===g)&amp;&amp;c(&quot;automargin&quot;),(&quot;inside&quot;===g||&quot;auto&quot;===g||Array.isArray(g))&amp;&amp;c(&quot;insidetextorientation&quot;)}o(e,n,c);var m=c(&quot;hole&quot;);if(c(&quot;title.text&quot;)){var v=c(&quot;title.position&quot;,m?&quot;middle center&quot;:&quot;top center&quot;);m||&quot;middle center&quot;!==v||(e.title.position=&quot;top center&quot;),i.coerceFont(c,&quot;title.font&quot;,n.font)}c(&quot;sort&quot;),c(&quot;direction&quot;),c(&quot;rotation&quot;),c(&quot;pull&quot;)}else e.visible=!1}}},{&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/defaults&quot;:925,&quot;./attributes&quot;:1161,&quot;fast-isnumeric&quot;:241}],1165:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx/helpers&quot;).appendArrayMultiPointValues;e.exports=function(t,e){var r={curveNumber:e.index,pointNumbers:t.pts,data:e._input,fullData:e,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,v:t.v};return 1===t.pts.length&amp;&amp;(r.pointNumber=r.i=t.pts[0]),n(r,e,t.pts),&quot;funnelarea&quot;===e.type&amp;&amp;(delete r.v,delete r.i),r}},{&quot;../../components/fx/helpers&quot;:679}],1166:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);function i(t){return-1!==t.indexOf(&quot;e&quot;)?t.replace(/[.]?0+e/,&quot;e&quot;):-1!==t.indexOf(&quot;.&quot;)?t.replace(/[.]?0+$/,&quot;&quot;):t}r.formatPiePercent=function(t,e){var r=i((100*t).toPrecision(3));return n.numSeparate(r,e)+&quot;%&quot;},r.formatPieValue=function(t,e){var r=i(t.toPrecision(10));return n.numSeparate(r,e)},r.getFirstFilled=function(t,e){if(Array.isArray(t))for(var r=0;r&lt;e.length;r++){var n=t[e[r]];if(n||0===n||&quot;&quot;===n)return n}},r.castOption=function(t,e){return Array.isArray(t)?r.getFirstFilled(t,e):t||void 0},r.getRotationAngle=function(t){return(&quot;auto&quot;===t?0:t)*Math.PI/180}},{&quot;../../lib&quot;:778}],1167:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),styleOne:t(&quot;./style_one&quot;),moduleType:&quot;trace&quot;,name:&quot;pie&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;pie-like&quot;,&quot;pie&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;./attributes&quot;:1161,&quot;./base_plot&quot;:1162,&quot;./calc&quot;:1163,&quot;./defaults&quot;:1164,&quot;./layout_attributes&quot;:1168,&quot;./layout_defaults&quot;:1169,&quot;./plot&quot;:1170,&quot;./style&quot;:1171,&quot;./style_one&quot;:1172}],1168:[function(t,e,r){&quot;use strict&quot;;e.exports={hiddenlabels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},piecolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendpiecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1169:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;hiddenlabels&quot;),r(&quot;piecolorway&quot;,e.colorway),r(&quot;extendpiecolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1168}],1170:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib&quot;),c=l.strScale,u=l.strTranslate,f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../bar/uniform_text&quot;),p=h.recordMinTextSize,d=h.clearMinTextSize,g=t(&quot;../bar/constants&quot;).TEXTPAD,m=t(&quot;./helpers&quot;),v=t(&quot;./event_data&quot;),y=t(&quot;../../lib&quot;).isValidTextValue;function x(t,e,r){var i=r[0],o=i.trace,s=i.cx,c=i.cy;&quot;_hasHoverLabel&quot;in o||(o._hasHoverLabel=!1),&quot;_hasHoverEvent&quot;in o||(o._hasHoverEvent=!1),t.on(&quot;mouseover&quot;,(function(t){var r=e._fullLayout,u=e._fullData[o.index];if(!e._dragging&amp;&amp;!1!==r.hovermode){var f=u.hoverinfo;if(Array.isArray(f)&amp;&amp;(f=a.castHoverinfo({hoverinfo:[m.castOption(f,t.pts)],_module:o._module},r,0)),&quot;all&quot;===f&amp;&amp;(f=&quot;label+text+value+percent+name&quot;),u.hovertemplate||&quot;none&quot;!==f&amp;&amp;&quot;skip&quot;!==f&amp;&amp;f){var h=t.rInscribed||0,p=s+t.pxmid[0]*(1-h),d=c+t.pxmid[1]*(1-h),g=r.separators,y=[];if(f&amp;&amp;-1!==f.indexOf(&quot;label&quot;)&amp;&amp;y.push(t.label),t.text=m.castOption(u.hovertext||u.text,t.pts),f&amp;&amp;-1!==f.indexOf(&quot;text&quot;)){var x=t.text;l.isValidTextValue(x)&amp;&amp;y.push(x)}t.value=t.v,t.valueLabel=m.formatPieValue(t.v,g),f&amp;&amp;-1!==f.indexOf(&quot;value&quot;)&amp;&amp;y.push(t.valueLabel),t.percent=t.v/i.vTotal,t.percentLabel=m.formatPiePercent(t.percent,g),f&amp;&amp;-1!==f.indexOf(&quot;percent&quot;)&amp;&amp;y.push(t.percentLabel);var b=u.hoverlabel,_=b.font;a.loneHover({trace:o,x0:p-h*i.r,x1:p+h*i.r,y:d,text:y.join(&quot;&lt;br&gt;&quot;),name:u.hovertemplate||-1!==f.indexOf(&quot;name&quot;)?u.name:void 0,idealAlign:t.pxmid[0]&lt;0?&quot;left&quot;:&quot;right&quot;,color:m.castOption(b.bgcolor,t.pts)||t.color,borderColor:m.castOption(b.bordercolor,t.pts),fontFamily:m.castOption(_.family,t.pts),fontSize:m.castOption(_.size,t.pts),fontColor:m.castOption(_.color,t.pts),nameLength:m.castOption(b.namelength,t.pts),textAlign:m.castOption(b.align,t.pts),hovertemplate:m.castOption(u.hovertemplate,t.pts),hovertemplateLabels:t,eventData:[v(t,u)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:e}),o._hasHoverLabel=!0}o._hasHoverEvent=!0,e.emit(&quot;plotly_hover&quot;,{points:[v(t,u)],event:n.event})}})),t.on(&quot;mouseout&quot;,(function(t){var r=e._fullLayout,i=e._fullData[o.index],s=n.select(this).datum();o._hasHoverEvent&amp;&amp;(t.originalEvent=n.event,e.emit(&quot;plotly_unhover&quot;,{points:[v(s,i)],event:n.event}),o._hasHoverEvent=!1),o._hasHoverLabel&amp;&amp;(a.loneUnhover(r._hoverlayer.node()),o._hasHoverLabel=!1)})),t.on(&quot;click&quot;,(function(t){var r=e._fullLayout,i=e._fullData[o.index];e._dragging||!1===r.hovermode||(e._hoverdata=[v(t,i)],a.click(e,n.event))}))}function b(t,e,r){var n=m.castOption(t.insidetextfont.color,e.pts);!n&amp;&amp;t._input.textfont&amp;&amp;(n=m.castOption(t._input.textfont.color,e.pts));var i=m.castOption(t.insidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,a=m.castOption(t.insidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size;return{color:n||o.contrast(e.color),family:i,size:a}}function _(t,e){for(var r,n,i=0;i&lt;t.length;i++)if((n=(r=t[i][0]).trace).title.text){var a=n.title.text;n._meta&amp;&amp;(a=l.templateString(a,n._meta));var o=s.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).text(a).call(s.font,n.title.font).call(f.convertToTspans,e),c=s.bBox(o.node(),!0);r.titleBox={width:c.width,height:c.height},o.remove()}}function w(t,e,r){var n=r.r||e.rpx1,i=e.rInscribed;if(e.startangle===e.stopangle)return{rCenter:1-i,scale:0,rotate:0,textPosAngle:0};var a,o=e.ring,s=1===o&amp;&amp;Math.abs(e.startangle-e.stopangle)===2*Math.PI,l=e.halfangle,c=e.midangle,u=r.trace.insidetextorientation,f=&quot;horizontal&quot;===u,h=&quot;tangential&quot;===u,p=&quot;radial&quot;===u,d=&quot;auto&quot;===u,g=[];if(!d){var m,v=function(r,i){if(function(t,e){var r=t.startangle,n=t.stopangle;return r&gt;e&amp;&amp;e&gt;n||r&lt;e&amp;&amp;e&lt;n}(e,r)){var s=Math.abs(r-e.startangle),l=Math.abs(r-e.stopangle),c=s&lt;l?s:l;(a=&quot;tan&quot;===i?k(t,n,o,c,0):T(t,n,o,c,Math.PI/2)).textPosAngle=r,g.push(a)}};if(f||h){for(m=4;m&gt;=-4;m-=2)v(Math.PI*m,&quot;tan&quot;);for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+1),&quot;tan&quot;)}if(f||p){for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+1.5),&quot;rad&quot;);for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+.5),&quot;rad&quot;)}}if(s||d||f){var y=Math.sqrt(t.width*t.width+t.height*t.height);if((a={scale:i*n*2/y,rCenter:1-i,rotate:0}).textPosAngle=(e.startangle+e.stopangle)/2,a.scale&gt;=1)return a;g.push(a)}(d||p)&amp;&amp;((a=T(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,g.push(a)),(d||h)&amp;&amp;((a=k(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,g.push(a));for(var x=0,b=0,_=0;_&lt;g.length;_++){var w=g[_].scale;if(b&lt;w&amp;&amp;(b=w,x=_),!d&amp;&amp;b&gt;=1)break}return g[x]}function T(t,e,r,n,i){e=Math.max(0,e-2*g);var a=t.width/t.height,o=S(a,n,e,r);return{scale:2*o/t.height,rCenter:M(a,o/e),rotate:A(i)}}function k(t,e,r,n,i){e=Math.max(0,e-2*g);var a=t.height/t.width,o=S(a,n,e,r);return{scale:2*o/t.width,rCenter:M(a,o/e),rotate:A(i+Math.PI/2)}}function M(t,e){return Math.cos(e)-t*e}function A(t){return(180/Math.PI*t+720)%180-90}function S(t,e,r,n){var i=t+1/(2*Math.tan(e));return r*Math.min(1/(Math.sqrt(i*i+.5)+i),n/(Math.sqrt(t*t+n/2)+t))}function E(t,e){return t.v!==e.vTotal||e.trace.hole?Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2):1}function C(t,e){var r=e.pxmid[0],n=e.pxmid[1],i=t.width/2,a=t.height/2;return r&lt;0&amp;&amp;(i*=-1),n&lt;0&amp;&amp;(a*=-1),{scale:1,rCenter:1,rotate:0,x:i+Math.abs(a)*(i&gt;0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function L(t,e){var r,n,i,a=t.trace,o={x:t.cx,y:t.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=P(a),-1!==a.title.position.indexOf(&quot;top&quot;)?(o.y-=(1+i)*t.r,s.ty-=t.titleBox.height):-1!==a.title.position.indexOf(&quot;bottom&quot;)&amp;&amp;(o.y+=(1+i)*t.r);var l,c,u=(l=t.r,c=t.trace.aspectratio,l/(void 0===c?1:c)),f=e.w*(a.domain.x[1]-a.domain.x[0])/2;return-1!==a.title.position.indexOf(&quot;left&quot;)?(f+=u,o.x-=(1+i)*u,s.tx+=t.titleBox.width/2):-1!==a.title.position.indexOf(&quot;center&quot;)?f*=2:-1!==a.title.position.indexOf(&quot;right&quot;)&amp;&amp;(f+=u,o.x+=(1+i)*u,s.tx-=t.titleBox.width/2),r=f/t.titleBox.width,n=I(t,e)/t.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function I(t,e){var r=t.trace,n=e.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(t.titleBox.height,n/2)}function P(t){var e,r=t.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,e=0;e&lt;t.pull.length;e++)t.pull[e]&gt;r&amp;&amp;(r=t.pull[e]);return r}function z(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i=t[n][0],a=i.trace,o=a.domain,s=e.w*(o.x[1]-o.x[0]),l=e.h*(o.y[1]-o.y[0]);a.title.text&amp;&amp;&quot;middle center&quot;!==a.title.position&amp;&amp;(l-=I(i,e));var c=s/2,u=l/2;&quot;funnelarea&quot;!==a.type||a.scalegroup||(u/=a.aspectratio),i.r=Math.min(c,u)/(1+P(a)),i.cx=e.l+e.w*(a.domain.x[1]+a.domain.x[0])/2,i.cy=e.t+e.h*(1-a.domain.y[0])-l/2,a.title.text&amp;&amp;-1!==a.title.position.indexOf(&quot;bottom&quot;)&amp;&amp;(i.cy-=I(i,e)),a.scalegroup&amp;&amp;-1===r.indexOf(a.scalegroup)&amp;&amp;r.push(a.scalegroup)}!function(t,e){for(var r,n,i,a=0;a&lt;e.length;a++){var o=1/0,s=e[a];for(n=0;n&lt;t.length;n++)if(r=t[n][0],(i=r.trace).scalegroup===s){var l;if(&quot;pie&quot;===i.type)l=r.r*r.r;else if(&quot;funnelarea&quot;===i.type){var c,u;i.aspectratio&gt;1?(c=r.r,u=c/i.aspectratio):(u=r.r,c=u*i.aspectratio),c*=(1+i.baseratio)/2,l=c*u}o=Math.min(o,l/r.vTotal)}for(n=0;n&lt;t.length;n++)if(r=t[n][0],(i=r.trace).scalegroup===s){var f=o*r.vTotal;&quot;funnelarea&quot;===i.type&amp;&amp;(f/=(1+i.baseratio)/2,f/=i.aspectratio),r.r=Math.sqrt(f)}}}(t,r)}function O(t,e){return[t*Math.sin(e),-t*Math.cos(e)]}function D(t,e,r){var n=t._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&amp;&amp;o&amp;&amp;&quot;none&quot;!==o){var s,c=o.split(&quot;+&quot;),u=function(t){return-1!==c.indexOf(t)},f=u(&quot;label&quot;),h=u(&quot;text&quot;),p=u(&quot;value&quot;),d=u(&quot;percent&quot;),g=n.separators;if(s=f?[e.label]:[],h){var v=m.getFirstFilled(i.text,e.pts);y(v)&amp;&amp;s.push(v)}p&amp;&amp;s.push(m.formatPieValue(e.v,g)),d&amp;&amp;s.push(m.formatPiePercent(e.v/r.vTotal,g)),e.text=s.join(&quot;&lt;br&gt;&quot;)}if(a){var x=l.castOption(i,e.i,&quot;texttemplate&quot;);if(x){var b=function(t){return{label:t.label,value:t.v,valueLabel:m.formatPieValue(t.v,n.separators),percent:t.v/r.vTotal,percentLabel:m.formatPiePercent(t.v/r.vTotal,n.separators),color:t.color,text:t.text,customdata:l.castOption(i,t.i,&quot;customdata&quot;)}}(e),_=m.getFirstFilled(i.text,e.pts);(y(_)||&quot;&quot;===_)&amp;&amp;(b.text=_),e.text=l.texttemplateString(x,b,t._fullLayout._d3locale,b,i._meta||{})}else e.text=&quot;&quot;}}function R(t,e){var r=t.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(e.left+e.right)/2,o=(e.top+e.bottom)/2;t.textX=a*n-o*i,t.textY=a*i+o*n,t.noCenter=!0}e.exports={plot:function(t,e){var r=t._fullLayout,a=r._size;d(&quot;pie&quot;,r),_(e,t),z(e,a);var h=l.makeTraceGroups(r._pielayer,e,&quot;trace&quot;).each((function(e){var h=n.select(this),d=e[0],g=d.trace;!function(t){var e,r,n,i=t[0],a=i.r,o=i.trace,s=m.getRotationAngle(o.rotation),l=2*Math.PI/i.vTotal,c=&quot;px0&quot;,u=&quot;px1&quot;;if(&quot;counterclockwise&quot;===o.direction){for(e=0;e&lt;t.length&amp;&amp;t[e].hidden;e++);if(e===t.length)return;s+=l*t[e].v,l*=-1,c=&quot;px1&quot;,u=&quot;px0&quot;}for(n=O(a,s),e=0;e&lt;t.length;e++)(r=t[e]).hidden||(r[c]=n,r.startangle=s,s+=l*r.v/2,r.pxmid=O(a,s),r.midangle=s,s+=l*r.v/2,n=O(a,s),r.stopangle=s,r[u]=n,r.largeArc=r.v&gt;i.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/i.vTotal,.5),r.ring=1-o.hole,r.rInscribed=E(r,i))}(e),h.attr(&quot;stroke-linejoin&quot;,&quot;round&quot;),h.each((function(){var v=n.select(this).selectAll(&quot;g.slice&quot;).data(e);v.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),v.exit().remove();var y=[[[],[]],[[],[]]],_=!1;v.each((function(i,a){if(i.hidden)n.select(this).selectAll(&quot;path,g&quot;).remove();else{i.pointNumber=i.i,i.curveNumber=g.index,y[i.pxmid[1]&lt;0?0:1][i.pxmid[0]&lt;0?0:1].push(i);var o=d.cx,c=d.cy,u=n.select(this),h=u.selectAll(&quot;path.surface&quot;).data([i]);if(h.enter().append(&quot;path&quot;).classed(&quot;surface&quot;,!0).style({&quot;pointer-events&quot;:&quot;all&quot;}),u.call(x,t,e),g.pull){var v=+m.castOption(g.pull,i.pts)||0;v&gt;0&amp;&amp;(o+=v*i.pxmid[0],c+=v*i.pxmid[1])}i.cxFinal=o,i.cyFinal=c;var T=g.hole;if(i.v===d.vTotal){var k=&quot;M&quot;+(o+i.px0[0])+&quot;,&quot;+(c+i.px0[1])+L(i.px0,i.pxmid,!0,1)+L(i.pxmid,i.px0,!0,1)+&quot;Z&quot;;T?h.attr(&quot;d&quot;,&quot;M&quot;+(o+T*i.px0[0])+&quot;,&quot;+(c+T*i.px0[1])+L(i.px0,i.pxmid,!1,T)+L(i.pxmid,i.px0,!1,T)+&quot;Z&quot;+k):h.attr(&quot;d&quot;,k)}else{var M=L(i.px0,i.px1,!0,1);if(T){var A=1-T;h.attr(&quot;d&quot;,&quot;M&quot;+(o+T*i.px1[0])+&quot;,&quot;+(c+T*i.px1[1])+L(i.px1,i.px0,!1,T)+&quot;l&quot;+A*i.px0[0]+&quot;,&quot;+A*i.px0[1]+M+&quot;Z&quot;)}else h.attr(&quot;d&quot;,&quot;M&quot;+o+&quot;,&quot;+c+&quot;l&quot;+i.px0[0]+&quot;,&quot;+i.px0[1]+M+&quot;Z&quot;)}D(t,i,d);var S=m.castOption(g.textposition,i.pts),E=u.selectAll(&quot;g.slicetext&quot;).data(i.text&amp;&amp;&quot;none&quot;!==S?[0]:[]);E.enter().append(&quot;g&quot;).classed(&quot;slicetext&quot;,!0),E.exit().remove(),E.each((function(){var u=l.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),h=l.ensureUniformFontSize(t,&quot;outside&quot;===S?function(t,e,r){var n=m.castOption(t.outsidetextfont.color,e.pts)||m.castOption(t.textfont.color,e.pts)||r.color,i=m.castOption(t.outsidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,a=m.castOption(t.outsidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size;return{color:n,family:i,size:a}}(g,i,r.font):b(g,i,r.font));u.text(i.text).attr({class:&quot;slicetext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(s.font,h).call(f.convertToTspans,t);var v,y=s.bBox(u.node());if(&quot;outside&quot;===S)v=C(y,i);else if(v=w(y,i,d),&quot;auto&quot;===S&amp;&amp;v.scale&lt;1){var x=l.ensureUniformFontSize(t,g.outsidetextfont);u.call(s.font,x),v=C(y=s.bBox(u.node()),i)}var T=v.textPosAngle,k=void 0===T?i.pxmid:O(d.r,T);if(v.targetX=o+k[0]*v.rCenter+(v.x||0),v.targetY=c+k[1]*v.rCenter+(v.y||0),R(v,y),v.outside){var M=v.targetY;i.yLabelMin=M-y.height/2,i.yLabelMid=M,i.yLabelMax=M+y.height/2,i.labelExtraX=0,i.labelExtraY=0,_=!0}v.fontSize=h.size,p(g.type,v,r),e[a].transform=v,u.attr(&quot;transform&quot;,l.getTextTransform(v))}))}function L(t,e,r,n){var a=n*(e[0]-t[0]),o=n*(e[1]-t[1]);return&quot;a&quot;+n*d.r+&quot;,&quot;+n*d.r+&quot; 0 &quot;+i.largeArc+(r?&quot; 1 &quot;:&quot; 0 &quot;)+a+&quot;,&quot;+o}}));var T=n.select(this).selectAll(&quot;g.titletext&quot;).data(g.title.text?[0]:[]);if(T.enter().append(&quot;g&quot;).classed(&quot;titletext&quot;,!0),T.exit().remove(),T.each((function(){var e,r=l.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),i=g.title.text;g._meta&amp;&amp;(i=l.templateString(i,g._meta)),r.text(i).attr({class:&quot;titletext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(s.font,g.title.font).call(f.convertToTspans,t),e=&quot;middle center&quot;===g.title.position?function(t){var e=Math.sqrt(t.titleBox.width*t.titleBox.width+t.titleBox.height*t.titleBox.height);return{x:t.cx,y:t.cy,scale:t.trace.hole*t.r*2/e,tx:0,ty:-t.titleBox.height/2+t.trace.title.font.size}}(d):L(d,a),r.attr(&quot;transform&quot;,u(e.x,e.y)+c(Math.min(1,e.scale))+u(e.tx,e.ty))})),_&amp;&amp;function(t,e){var r,n,i,a,o,s,l,c,u,f,h,p,d;function g(t,e){return t.pxmid[1]-e.pxmid[1]}function v(t,e){return e.pxmid[1]-t.pxmid[1]}function y(t,r){r||(r={});var i,c,u,h,p=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),d=n?t.yLabelMin:t.yLabelMax,g=n?t.yLabelMax:t.yLabelMin,v=t.cyFinal+o(t.px0[1],t.px1[1]),y=p-d;if(y*l&gt;0&amp;&amp;(t.labelExtraY=y),Array.isArray(e.pull))for(c=0;c&lt;f.length;c++)(u=f[c])===t||(m.castOption(e.pull,t.pts)||0)&gt;=(m.castOption(e.pull,u.pts)||0)||((t.pxmid[1]-u.pxmid[1])*l&gt;0?(y=u.cyFinal+o(u.px0[1],u.px1[1])-d-t.labelExtraY)*l&gt;0&amp;&amp;(t.labelExtraY+=y):(g+t.labelExtraY-v)*l&gt;0&amp;&amp;(i=3*s*Math.abs(c-f.indexOf(t)),(h=u.cxFinal+a(u.px0[0],u.px1[0])+i-(t.cxFinal+t.pxmid[0])-t.labelExtraX)*s&gt;0&amp;&amp;(t.labelExtraX+=h)))}for(n=0;n&lt;2;n++)for(i=n?g:v,o=n?Math.max:Math.min,l=n?1:-1,r=0;r&lt;2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,(c=t[n][r]).sort(i),u=t[1-n][r],f=u.concat(c),p=[],h=0;h&lt;c.length;h++)void 0!==c[h].yLabelMid&amp;&amp;p.push(c[h]);for(d=!1,h=0;n&amp;&amp;h&lt;u.length;h++)if(void 0!==u[h].yLabelMid){d=u[h];break}for(h=0;h&lt;p.length;h++){var x=h&amp;&amp;p[h-1];d&amp;&amp;!h&amp;&amp;(x=d),y(p[h],x)}}}(y,g),function(t,e){t.each((function(t){var r=n.select(this);if(t.labelExtraX||t.labelExtraY){var i=r.select(&quot;g.slicetext text&quot;);t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,i.attr(&quot;transform&quot;,l.getTextTransform(t.transform));var a=t.cxFinal+t.pxmid[0],s=&quot;M&quot;+a+&quot;,&quot;+(t.cyFinal+t.pxmid[1]),c=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]&lt;0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)&gt;Math.abs(f)?s+=&quot;l&quot;+f*t.pxmid[0]/t.pxmid[1]+&quot;,&quot;+f+&quot;H&quot;+(a+t.labelExtraX+c):s+=&quot;l&quot;+t.labelExtraX+&quot;,&quot;+u+&quot;v&quot;+(f-u)+&quot;h&quot;+c}else s+=&quot;V&quot;+(t.yLabelMid+t.labelExtraY)+&quot;h&quot;+c;l.ensureSingle(r,&quot;path&quot;,&quot;textline&quot;).call(o.stroke,e.outsidetextfont.color).attr({&quot;stroke-width&quot;:Math.min(2,e.outsidetextfont.size/8),d:s,fill:&quot;none&quot;})}else r.select(&quot;path.textline&quot;).remove()}))}(v,g),_&amp;&amp;g.automargin){var k=s.bBox(h.node()),M=g.domain,A=a.w*(M.x[1]-M.x[0]),S=a.h*(M.y[1]-M.y[0]),E=(.5*A-d.r)/a.w,I=(.5*S-d.r)/a.h;i.autoMargin(t,&quot;pie.&quot;+g.uid+&quot;.automargin&quot;,{xl:M.x[0]-E,xr:M.x[1]+E,yb:M.y[0]-I,yt:M.y[1]+I,l:Math.max(d.cx-d.r-k.left,0),r:Math.max(k.right-(d.cx+d.r),0),b:Math.max(k.bottom-(d.cy+d.r),0),t:Math.max(d.cy-d.r-k.top,0),pad:5})}}))}));setTimeout((function(){h.selectAll(&quot;tspan&quot;).each((function(){var t=n.select(this);t.attr(&quot;dy&quot;)&amp;&amp;t.attr(&quot;dy&quot;,t.attr(&quot;dy&quot;))}))}),0)},formatSliceLabel:D,transformInsideText:w,determineInsideTextFont:b,positionTitleOutside:L,prerenderTitles:_,layoutAreas:z,attachFxHandlers:x,computeTransform:R}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../bar/constants&quot;:923,&quot;../bar/uniform_text&quot;:937,&quot;./event_data&quot;:1165,&quot;./helpers&quot;:1166,d3:169}],1171:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;./style_one&quot;),a=t(&quot;../bar/uniform_text&quot;).resizeText;e.exports=function(t){var e=t._fullLayout._pielayer.selectAll(&quot;.trace&quot;);a(t,e,&quot;pie&quot;),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(i,t,e)}))}))}},{&quot;../bar/uniform_text&quot;:937,&quot;./style_one&quot;:1172,d3:169}],1172:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;./helpers&quot;).castOption;e.exports=function(t,e,r){var a=r.marker.line,o=i(a.color,e.pts)||n.defaultLine,s=i(a.width,e.pts)||0;t.style(&quot;stroke-width&quot;,s).call(n.fill,e.color).call(n.stroke,o)}},{&quot;../../components/color&quot;:643,&quot;./helpers&quot;:1166}],1173:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;);e.exports={x:n.x,y:n.y,xy:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},indices:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},xbounds:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ybounds:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},text:n.text,marker:{color:{valType:&quot;color&quot;,arrayOk:!1,editType:&quot;calc&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,arrayOk:!1,editType:&quot;calc&quot;},blend:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},sizemin:{valType:&quot;number&quot;,min:.1,max:2,dflt:.5,editType:&quot;calc&quot;},sizemax:{valType:&quot;number&quot;,min:.1,dflt:20,editType:&quot;calc&quot;},border:{color:{valType:&quot;color&quot;,arrayOk:!1,editType:&quot;calc&quot;},arearatio:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},transforms:void 0}},{&quot;../scatter/attributes&quot;:1187}],1174:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-pointcloud2d&quot;),i=t(&quot;../../lib/str2rgbarray&quot;),a=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,o=t(&quot;../scatter/get_trace_color&quot;);function s(t,e){this.scene=t,this.uid=e,this.type=&quot;pointcloud&quot;,this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color=&quot;rgb(0, 0, 0)&quot;,this.name=&quot;&quot;,this.hoverinfo=&quot;all&quot;,this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=n(t.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var l=s.prototype;l.handlePick=function(t){var e=this.idToIndex[t.pointId];return{trace:this,dataCoord:t.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[2*e],this.pickXYData[2*e+1]]:[this.pickXData[e],this.pickYData[e]],textLabel:Array.isArray(this.textLabels)?this.textLabels[e]:this.textLabels,color:this.color,name:this.name,pointIndex:e,hoverinfo:this.hoverinfo}},l.update=function(t){this.index=t.index,this.textLabels=t.text,this.name=t.name,this.hoverinfo=t.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(t),this.color=o(t,{})},l.updateFast=function(t){var e,r,n,o,s,l,c=this.xData=this.pickXData=t.x,u=this.yData=this.pickYData=t.y,f=this.pickXYData=t.xy,h=t.xbounds&amp;&amp;t.ybounds,p=t.indices,d=this.bounds;if(f){if(n=f,e=f.length&gt;&gt;&gt;1,h)d[0]=t.xbounds[0],d[2]=t.xbounds[1],d[1]=t.ybounds[0],d[3]=t.ybounds[1];else for(l=0;l&lt;e;l++)o=n[2*l],s=n[2*l+1],o&lt;d[0]&amp;&amp;(d[0]=o),o&gt;d[2]&amp;&amp;(d[2]=o),s&lt;d[1]&amp;&amp;(d[1]=s),s&gt;d[3]&amp;&amp;(d[3]=s);if(p)r=p;else for(r=new Int32Array(e),l=0;l&lt;e;l++)r[l]=l}else for(e=c.length,n=new Float32Array(2*e),r=new Int32Array(e),l=0;l&lt;e;l++)o=c[l],s=u[l],r[l]=l,n[2*l]=o,n[2*l+1]=s,o&lt;d[0]&amp;&amp;(d[0]=o),o&gt;d[2]&amp;&amp;(d[2]=o),s&lt;d[1]&amp;&amp;(d[1]=s),s&gt;d[3]&amp;&amp;(d[3]=s);this.idToIndex=r,this.pointcloudOptions.idToIndex=r,this.pointcloudOptions.positions=n;var g=i(t.marker.color),m=i(t.marker.border.color),v=t.opacity*t.marker.opacity;g[3]*=v,this.pointcloudOptions.color=g;var y=t.marker.blend;if(null===y){y=c.length&lt;100||u.length&lt;100}this.pointcloudOptions.blend=y,m[3]*=v,this.pointcloudOptions.borderColor=m;var x=t.marker.sizemin,b=Math.max(t.marker.sizemax,t.marker.sizemin);this.pointcloudOptions.sizeMin=x,this.pointcloudOptions.sizeMax=b,this.pointcloudOptions.areaRatio=t.marker.border.arearatio,this.pointcloud.update(this.pointcloudOptions);var _=this.scene.xaxis,w=this.scene.yaxis,T=b/2||.5;t._extremes[_._id]=a(_,[d[0],d[2]],{ppad:T}),t._extremes[w._id]=a(w,[d[1],d[3]],{ppad:T})},l.dispose=function(){this.pointcloud.dispose()},e.exports=function(t,e){var r=new s(t,e.uid);return r.update(e),r}},{&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/autorange&quot;:827,&quot;../scatter/get_trace_color&quot;:1197,&quot;gl-pointcloud2d&quot;:324}],1175:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;);e.exports=function(t,e,r){function a(r,a){return n.coerce(t,e,i,r,a)}a(&quot;x&quot;),a(&quot;y&quot;),a(&quot;xbounds&quot;),a(&quot;ybounds&quot;),t.xy&amp;&amp;t.xy instanceof Float32Array&amp;&amp;(e.xy=t.xy),t.indices&amp;&amp;t.indices instanceof Int32Array&amp;&amp;(e.indices=t.indices),a(&quot;text&quot;),a(&quot;marker.color&quot;,r),a(&quot;marker.opacity&quot;),a(&quot;marker.blend&quot;),a(&quot;marker.sizemin&quot;),a(&quot;marker.sizemax&quot;),a(&quot;marker.border.color&quot;,r),a(&quot;marker.border.arearatio&quot;),e._length=null}},{&quot;../../lib&quot;:778,&quot;./attributes&quot;:1173}],1176:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;../scatter3d/calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;pointcloud&quot;,basePlotModule:t(&quot;../../plots/gl2d&quot;),categories:[&quot;gl&quot;,&quot;gl2d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl2d&quot;:868,&quot;../scatter3d/calc&quot;:1216,&quot;./attributes&quot;:1173,&quot;./convert&quot;:1174,&quot;./defaults&quot;:1175}],1177:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=t(&quot;../../components/fx/attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../plot_api/plot_template&quot;).templatedArray,f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../plot_api/edit_types&quot;).overrideAll;t(&quot;../../constants/docs&quot;).FORMAT_LINK;(e.exports=h({hoverinfo:f({},i.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:o.hoverlabel,domain:s({name:&quot;sankey&quot;,trace:!0}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;},valueformat:{valType:&quot;string&quot;,dflt:&quot;.3s&quot;},valuesuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;},arrangement:{valType:&quot;enumerated&quot;,values:[&quot;snap&quot;,&quot;perpendicular&quot;,&quot;freeform&quot;,&quot;fixed&quot;],dflt:&quot;snap&quot;},textfont:n({}),customdata:void 0,node:{label:{valType:&quot;data_array&quot;,dflt:[]},groups:{valType:&quot;info_array&quot;,impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:&quot;number&quot;,editType:&quot;calc&quot;}},x:{valType:&quot;data_array&quot;,dflt:[]},y:{valType:&quot;data_array&quot;,dflt:[]},color:{valType:&quot;color&quot;,arrayOk:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:a.defaultLine,arrayOk:!0},width:{valType:&quot;number&quot;,min:0,dflt:.5,arrayOk:!0}},pad:{valType:&quot;number&quot;,arrayOk:!1,min:0,dflt:20},thickness:{valType:&quot;number&quot;,arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],dflt:&quot;all&quot;},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:[&quot;value&quot;,&quot;label&quot;]})},link:{label:{valType:&quot;data_array&quot;,dflt:[]},color:{valType:&quot;color&quot;,arrayOk:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:a.defaultLine,arrayOk:!0},width:{valType:&quot;number&quot;,min:0,dflt:0,arrayOk:!0}},source:{valType:&quot;data_array&quot;,dflt:[]},target:{valType:&quot;data_array&quot;,dflt:[]},value:{valType:&quot;data_array&quot;,dflt:[]},hoverinfo:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],dflt:&quot;all&quot;},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:[&quot;value&quot;,&quot;label&quot;]}),colorscales:u(&quot;concentrationscales&quot;,{editType:&quot;calc&quot;,label:{valType:&quot;string&quot;,editType:&quot;calc&quot;,dflt:&quot;&quot;},cmax:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:1},cmin:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:0},colorscale:f(c().colorscale,{dflt:[[0,&quot;white&quot;],[1,&quot;black&quot;]]})})}},&quot;calc&quot;,&quot;nested&quot;)).transforms=void 0},{&quot;../../components/color/attributes&quot;:642,&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/fx/attributes&quot;:674,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906}],1178:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;../../plots/get_data&quot;).getModuleCalcData,a=t(&quot;./plot&quot;),o=t(&quot;../../components/fx/layout_attributes&quot;),s=t(&quot;../../lib/setcursor&quot;),l=t(&quot;../../components/dragelement&quot;),c=t(&quot;../../plots/cartesian/select&quot;).prepSelect,u=t(&quot;../../lib&quot;),f=t(&quot;../../registry&quot;);function h(t,e){var r=t._fullData[e],n=t._fullLayout,i=n.dragmode,a=&quot;pan&quot;===n.dragmode?&quot;move&quot;:&quot;crosshair&quot;,o=r._bgRect;if(&quot;pan&quot;!==i&amp;&amp;&quot;zoom&quot;!==i){s(o,a);var h={_id:&quot;x&quot;,c2p:u.identity,_offset:r._sankey.translateX,_length:r._sankey.width},p={_id:&quot;y&quot;,c2p:u.identity,_offset:r._sankey.translateY,_length:r._sankey.height},d={gd:t,element:o.node(),plotinfo:{id:e,xaxis:h,yaxis:p,fillRangeItems:u.noop},subplot:e,xaxes:[h],yaxes:[p],doneFnCompleted:function(r){var n,i=t._fullData[e],a=i.node.groups.slice(),o=[];function s(t){for(var e=i._sankey.graph.nodes,r=0;r&lt;e.length;r++)if(e[r].pointNumber===t)return e[r]}for(var l=0;l&lt;r.length;l++){var c=s(r[l].pointNumber);if(c)if(c.group){for(var u=0;u&lt;c.childrenNodes.length;u++)o.push(c.childrenNodes[u].pointNumber);a[c.pointNumber-i.node._count]=!1}else o.push(c.pointNumber)}n=a.filter(Boolean).concat([o]),f.call(&quot;_guiRestyle&quot;,t,{&quot;node.groups&quot;:[n]},e)},prepFn:function(t,e,r){c(t,e,r,d,i)}};l.init(d)}}r.name=&quot;sankey&quot;,r.baseLayoutAttrOverrides=n({hoverlabel:o.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.plot=function(t){var e=i(t.calcdata,&quot;sankey&quot;)[0];a(t,e),r.updateFx(t)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;sankey&quot;),a=e._has&amp;&amp;e._has(&quot;sankey&quot;);i&amp;&amp;!a&amp;&amp;(n._paperdiv.selectAll(&quot;.sankey&quot;).remove(),n._paperdiv.selectAll(&quot;.bgsankey&quot;).remove())},r.updateFx=function(t){for(var e=0;e&lt;t._fullData.length;e++)h(t,e)}},{&quot;../../components/dragelement&quot;:662,&quot;../../components/fx/layout_attributes&quot;:684,&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/cartesian/select&quot;:847,&quot;../../plots/get_data&quot;:865,&quot;../../registry&quot;:911,&quot;./plot&quot;:1183}],1179:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;strongly-connected-components&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/gup&quot;).wrap,o=i.isArrayOrTypedArray,s=i.isIndex,l=t(&quot;../../components/colorscale&quot;);function c(t){var e,r=t.node,a=t.link,c=[],u=o(a.color),f=o(a.customdata),h={},p={},d=a.colorscales.length;for(e=0;e&lt;d;e++){var g=a.colorscales[e],m=l.extractScale(g,{cLetter:&quot;c&quot;}),v=l.makeColorScaleFunc(m);p[g.label]=v}var y=0;for(e=0;e&lt;a.value.length;e++)a.source[e]&gt;y&amp;&amp;(y=a.source[e]),a.target[e]&gt;y&amp;&amp;(y=a.target[e]);var x,b=y+1;t.node._count=b;var _=t.node.groups,w={};for(e=0;e&lt;_.length;e++){var T=_[e];for(x=0;x&lt;T.length;x++){var k=T[x],M=b+e;w.hasOwnProperty(k)?i.warn(&quot;Node &quot;+k+&quot; is already part of a group.&quot;):w[k]=M}}var A={source:[],target:[]};for(e=0;e&lt;a.value.length;e++){var S=a.value[e],E=a.source[e],C=a.target[e];if(S&gt;0&amp;&amp;s(E,b)&amp;&amp;s(C,b)&amp;&amp;(!w.hasOwnProperty(E)||!w.hasOwnProperty(C)||w[E]!==w[C])){w.hasOwnProperty(C)&amp;&amp;(C=w[C]),w.hasOwnProperty(E)&amp;&amp;(E=w[E]),C=+C,h[E=+E]=h[C]=!0;var L=&quot;&quot;;a.label&amp;&amp;a.label[e]&amp;&amp;(L=a.label[e]);var I=null;L&amp;&amp;p.hasOwnProperty(L)&amp;&amp;(I=p[L]),c.push({pointNumber:e,label:L,color:u?a.color[e]:a.color,customdata:f?a.customdata[e]:a.customdata,concentrationscale:I,source:E,target:C,value:+S}),A.source.push(E),A.target.push(C)}}var P=b+_.length,z=o(r.color),O=o(r.customdata),D=[];for(e=0;e&lt;P;e++)if(h[e]){var R=r.label[e];D.push({group:e&gt;b-1,childrenNodes:[],pointNumber:e,label:R,color:z?r.color[e]:r.color,customdata:O?r.customdata[e]:r.customdata})}var F=!1;return function(t,e,r){for(var a=i.init2dArray(t,0),o=0;o&lt;Math.min(e.length,r.length);o++)if(i.isIndex(e[o],t)&amp;&amp;i.isIndex(r[o],t)){if(e[o]===r[o])return!0;a[e[o]].push(r[o])}return n(a).components.some((function(t){return t.length&gt;1}))}(P,A.source,A.target)&amp;&amp;(F=!0),{circular:F,links:c,nodes:D,groups:_,groupLookup:w}}e.exports=function(t,e){var r=c(e);return a({circular:r.circular,_nodes:r.nodes,_links:r.links,_groups:r.groups,_groupLookup:r.groupLookup})}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;strongly-connected-components&quot;:569}],1180:[function(t,e,r){&quot;use strict&quot;;e.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:&quot;linear&quot;,cn:{sankey:&quot;sankey&quot;,sankeyLinks:&quot;sankey-links&quot;,sankeyLink:&quot;sankey-link&quot;,sankeyNodeSet:&quot;sankey-node-set&quot;,sankeyNode:&quot;sankey-node&quot;,nodeRect:&quot;node-rect&quot;,nodeCapture:&quot;node-capture&quot;,nodeCentered:&quot;node-entered&quot;,nodeLabelGuide:&quot;node-label-guide&quot;,nodeLabel:&quot;node-label&quot;,nodeLabelTextPath:&quot;node-label-text-path&quot;}}},{}],1181:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;tinycolor2&quot;),s=t(&quot;../../plots/domain&quot;).defaults,l=t(&quot;../../components/fx/hoverlabel_defaults&quot;),c=t(&quot;../../plot_api/plot_template&quot;),u=t(&quot;../../plots/array_container_defaults&quot;);function f(t,e){function r(r,a){return n.coerce(t,e,i.link.colorscales,r,a)}r(&quot;label&quot;),r(&quot;cmin&quot;),r(&quot;cmax&quot;),r(&quot;colorscale&quot;)}e.exports=function(t,e,r,h){function p(r,a){return n.coerce(t,e,i,r,a)}var d=n.extendDeep(h.hoverlabel,t.hoverlabel),g=t.node,m=c.newContainer(e,&quot;node&quot;);function v(t,e){return n.coerce(g,m,i.node,t,e)}v(&quot;label&quot;),v(&quot;groups&quot;),v(&quot;x&quot;),v(&quot;y&quot;),v(&quot;pad&quot;),v(&quot;thickness&quot;),v(&quot;line.color&quot;),v(&quot;line.width&quot;),v(&quot;hoverinfo&quot;,t.hoverinfo),l(g,m,v,d),v(&quot;hovertemplate&quot;);var y=h.colorway;v(&quot;color&quot;,m.label.map((function(t,e){return a.addOpacity(function(t){return y[t%y.length]}(e),.8)}))),v(&quot;customdata&quot;);var x=t.link||{},b=c.newContainer(e,&quot;link&quot;);function _(t,e){return n.coerce(x,b,i.link,t,e)}_(&quot;label&quot;),_(&quot;source&quot;),_(&quot;target&quot;),_(&quot;value&quot;),_(&quot;line.color&quot;),_(&quot;line.width&quot;),_(&quot;hoverinfo&quot;,t.hoverinfo),l(x,b,_,d),_(&quot;hovertemplate&quot;);var w,T=o(h.paper_bgcolor).getLuminance()&lt;.333?&quot;rgba(255, 255, 255, 0.6)&quot;:&quot;rgba(0, 0, 0, 0.2)&quot;;_(&quot;color&quot;,n.repeat(T,b.value.length)),_(&quot;customdata&quot;),u(x,b,{name:&quot;colorscales&quot;,handleItemDefaults:f}),s(e,h,p),p(&quot;orientation&quot;),p(&quot;valueformat&quot;),p(&quot;valuesuffix&quot;),m.x.length&amp;&amp;m.y.length&amp;&amp;(w=&quot;freeform&quot;),p(&quot;arrangement&quot;,w),n.coerceFont(p,&quot;textfont&quot;,n.extendFlat({},h.font)),e._length=null}},{&quot;../../components/color&quot;:643,&quot;../../components/fx/hoverlabel_defaults&quot;:681,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1177,tinycolor2:576}],1182:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),moduleType:&quot;trace&quot;,name:&quot;sankey&quot;,basePlotModule:t(&quot;./base_plot&quot;),selectPoints:t(&quot;./select.js&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1177,&quot;./base_plot&quot;:1178,&quot;./calc&quot;:1179,&quot;./defaults&quot;:1181,&quot;./plot&quot;:1183,&quot;./select.js&quot;:1185}],1183:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;./render&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;./constants&quot;).cn,c=s._;function u(t){return&quot;&quot;!==t}function f(t,e){return t.filter((function(t){return t.key===e.traceId}))}function h(t,e){n.select(t).select(&quot;path&quot;).style(&quot;fill-opacity&quot;,e),n.select(t).select(&quot;rect&quot;).style(&quot;fill-opacity&quot;,e)}function p(t){n.select(t).select(&quot;text.name&quot;).style(&quot;fill&quot;,&quot;black&quot;)}function d(t){return function(e){return-1!==t.node.sourceLinks.indexOf(e.link)||-1!==t.node.targetLinks.indexOf(e.link)}}function g(t){return function(e){return-1!==e.node.sourceLinks.indexOf(t.link)||-1!==e.node.targetLinks.indexOf(t.link)}}function m(t,e,r){e&amp;&amp;r&amp;&amp;f(r,e).selectAll(&quot;.&quot;+l.sankeyLink).filter(d(e)).call(y.bind(0,e,r,!1))}function v(t,e,r){e&amp;&amp;r&amp;&amp;f(r,e).selectAll(&quot;.&quot;+l.sankeyLink).filter(d(e)).call(x.bind(0,e,r,!1))}function y(t,e,r,n){var i=n.datum().link.label;n.style(&quot;fill-opacity&quot;,(function(t){if(!t.link.concentrationscale)return.4})),i&amp;&amp;f(e,t).selectAll(&quot;.&quot;+l.sankeyLink).filter((function(t){return t.link.label===i})).style(&quot;fill-opacity&quot;,(function(t){if(!t.link.concentrationscale)return.4})),r&amp;&amp;f(e,t).selectAll(&quot;.&quot;+l.sankeyNode).filter(g(t)).call(m)}function x(t,e,r,n){var i=n.datum().link.label;n.style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),i&amp;&amp;f(e,t).selectAll(&quot;.&quot;+l.sankeyLink).filter((function(t){return t.link.label===i})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),r&amp;&amp;f(e,t).selectAll(l.sankeyNode).filter(g(t)).call(v)}function b(t,e){var r=t.hoverlabel||{},n=s.nestedProperty(r,e).get();return!Array.isArray(n)&amp;&amp;n}e.exports=function(t,e){for(var r=t._fullLayout,s=r._paper,f=r._size,d=0;d&lt;t._fullData.length;d++)if(t._fullData[d].visible&amp;&amp;t._fullData[d].type===l.sankey&amp;&amp;!t._fullData[d]._viewInitial){var g=t._fullData[d].node;t._fullData[d]._viewInitial={node:{groups:g.groups.slice(),x:g.x.slice(),y:g.y.slice()}}}var _=c(t,&quot;source:&quot;)+&quot; &quot;,w=c(t,&quot;target:&quot;)+&quot; &quot;,T=c(t,&quot;concentration:&quot;)+&quot; &quot;,k=c(t,&quot;incoming flow count:&quot;)+&quot; &quot;,M=c(t,&quot;outgoing flow count:&quot;)+&quot; &quot;;i(t,s,e,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{linkEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(y.bind(0,r,i,!0)),&quot;skip&quot;!==r.link.trace.link.hoverinfo&amp;&amp;(r.link.fullData=r.link.trace,t.emit(&quot;plotly_hover&quot;,{event:n.event,points:[r.link]})))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var s=i.link.trace.link;if(&quot;none&quot;!==s.hoverinfo&amp;&amp;&quot;skip&quot;!==s.hoverinfo){for(var l=[],c=0,f=0;f&lt;i.flow.links.length;f++){var d=i.flow.links[f];if(&quot;closest&quot;!==t._fullLayout.hovermode||i.link.pointNumber===d.pointNumber){i.link.pointNumber===d.pointNumber&amp;&amp;(c=f),d.fullData=d.trace,s=i.link.trace.link;var g=v(d),m={valueLabel:n.format(i.valueFormat)(d.value)+i.valueSuffix};l.push({x:g[0],y:g[1],name:m.valueLabel,text:[d.label||&quot;&quot;,_+d.source.label,w+d.target.label,d.concentrationscale?T+n.format(&quot;%0.2f&quot;)(d.flow.labelConcentration):&quot;&quot;].filter(u).join(&quot;&lt;br&gt;&quot;),color:b(s,&quot;bgcolor&quot;)||o.addOpacity(d.color,1),borderColor:b(s,&quot;bordercolor&quot;),fontFamily:b(s,&quot;font.family&quot;),fontSize:b(s,&quot;font.size&quot;),fontColor:b(s,&quot;font.color&quot;),nameLength:b(s,&quot;namelength&quot;),textAlign:b(s,&quot;align&quot;),idealAlign:n.event.x&lt;g[0]?&quot;right&quot;:&quot;left&quot;,hovertemplate:s.hovertemplate,hovertemplateLabels:m,eventData:[d]})}}a.loneHover(l,{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t,anchorIndex:c}).each((function(){i.link.concentrationscale||h(this,.65),p(this)}))}}function v(t){var e,r;t.circular?(e=(t.circularPathData.leftInnerExtent+t.circularPathData.rightInnerExtent)/2,r=t.circularPathData.verticalFullExtent):(e=(t.source.x1+t.target.x0)/2,r=(t.y0+t.y1)/2);var n=[e,r];return&quot;v&quot;===t.trace.orientation&amp;&amp;n.reverse(),n[0]+=i.parent.translateX,n[1]+=i.parent.translateY,n}},unhover:function(e,i,o){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(x.bind(0,i,o,!0)),&quot;skip&quot;!==i.link.trace.link.hoverinfo&amp;&amp;(i.link.fullData=i.link.trace,t.emit(&quot;plotly_unhover&quot;,{event:n.event,points:[i.link]})),a.loneUnhover(r._hoverlayer.node()))},select:function(e,r){var i=r.link;i.originalEvent=n.event,t._hoverdata=[i],a.click(t,{target:!0})}},nodeEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(m,r,i),&quot;skip&quot;!==r.node.trace.node.hoverinfo&amp;&amp;(r.node.fullData=r.node.trace,t.emit(&quot;plotly_hover&quot;,{event:n.event,points:[r.node]})))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var o=i.node.trace.node;if(&quot;none&quot;!==o.hoverinfo&amp;&amp;&quot;skip&quot;!==o.hoverinfo){var s=n.select(e).select(&quot;.&quot;+l.nodeRect),c=t._fullLayout._paperdiv.node().getBoundingClientRect(),f=s.node().getBoundingClientRect(),d=f.left-2-c.left,g=f.right+2-c.left,m=f.top+f.height/4-c.top,v={valueLabel:n.format(i.valueFormat)(i.node.value)+i.valueSuffix};i.node.fullData=i.node.trace,t._fullLayout._calcInverseTransform(t);var y=t._fullLayout._invScaleX,x=t._fullLayout._invScaleY,_=a.loneHover({x0:y*d,x1:y*g,y:x*m,name:n.format(i.valueFormat)(i.node.value)+i.valueSuffix,text:[i.node.label,k+i.node.targetLinks.length,M+i.node.sourceLinks.length].filter(u).join(&quot;&lt;br&gt;&quot;),color:b(o,&quot;bgcolor&quot;)||i.tinyColorHue,borderColor:b(o,&quot;bordercolor&quot;),fontFamily:b(o,&quot;font.family&quot;),fontSize:b(o,&quot;font.size&quot;),fontColor:b(o,&quot;font.color&quot;),nameLength:b(o,&quot;namelength&quot;),textAlign:b(o,&quot;align&quot;),idealAlign:&quot;left&quot;,hovertemplate:o.hovertemplate,hovertemplateLabels:v,eventData:[i.node]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t});h(_,.85),p(_)}}},unhover:function(e,i,o){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(v,i,o),&quot;skip&quot;!==i.node.trace.node.hoverinfo&amp;&amp;(i.node.fullData=i.node.trace,t.emit(&quot;plotly_unhover&quot;,{event:n.event,points:[i.node]})),a.loneUnhover(r._hoverlayer.node()))},select:function(e,r,i){var o=r.node;o.originalEvent=n.event,t._hoverdata=[o],n.select(e).call(v,r,i),a.click(t,{target:!0})}}})}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;./constants&quot;:1180,&quot;./render&quot;:1184,d3:169}],1184:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;d3&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;@plotly/d3-sankey&quot;),c=t(&quot;@plotly/d3-sankey-circular&quot;),u=t(&quot;d3-force&quot;),f=t(&quot;../../lib&quot;),h=f.strTranslate,p=t(&quot;../../lib/gup&quot;),d=p.keyFun,g=p.repeat,m=p.unwrap,v=t(&quot;d3-interpolate&quot;).interpolateNumber,y=t(&quot;../../registry&quot;);function x(t,e,r){var i,o=m(e),s=o.trace,u=s.domain,h=&quot;h&quot;===s.orientation,p=s.node.pad,d=s.node.thickness,g=t.width*(u.x[1]-u.x[0]),v=t.height*(u.y[1]-u.y[0]),y=o._nodes,x=o._links,b=o.circular;(i=b?c.sankeyCircular().circularLinkGap(0):l.sankey()).iterations(n.sankeyIterations).size(h?[g,v]:[v,g]).nodeWidth(d).nodePadding(p).nodeId((function(t){return t.pointNumber})).nodes(y).links(x);var _,w,T,k=i();for(var M in i.nodePadding()&lt;p&amp;&amp;f.warn(&quot;node.pad was reduced to &quot;,i.nodePadding(),&quot; to fit within the figure.&quot;),o._groupLookup){var A,S=parseInt(o._groupLookup[M]);for(_=0;_&lt;k.nodes.length;_++)if(k.nodes[_].pointNumber===S){A=k.nodes[_];break}if(A){var E={pointNumber:parseInt(M),x0:A.x0,x1:A.x1,y0:A.y0,y1:A.y1,partOfGroup:!0,sourceLinks:[],targetLinks:[]};k.nodes.unshift(E),A.childrenNodes.unshift(E)}}if(function(){for(_=0;_&lt;k.nodes.length;_++){var t,e,r=k.nodes[_],n={};for(w=0;w&lt;r.targetLinks.length;w++)t=(e=r.targetLinks[w]).source.pointNumber+&quot;:&quot;+e.target.pointNumber,n.hasOwnProperty(t)||(n[t]=[]),n[t].push(e);var i=Object.keys(n);for(w=0;w&lt;i.length;w++){var o=n[t=i[w]],s=0,l={};for(T=0;T&lt;o.length;T++)l[(e=o[T]).label]||(l[e.label]=0),l[e.label]+=e.value,s+=e.value;for(T=0;T&lt;o.length;T++)(e=o[T]).flow={value:s,labelConcentration:l[e.label]/s,concentration:e.value/s,links:o},e.concentrationscale&amp;&amp;(e.color=a(e.concentrationscale(e.flow.labelConcentration)))}var c=0;for(w=0;w&lt;r.sourceLinks.length;w++)c+=r.sourceLinks[w].value;for(w=0;w&lt;r.sourceLinks.length;w++)(e=r.sourceLinks[w]).concentrationOut=e.value/c;var u=0;for(w=0;w&lt;r.targetLinks.length;w++)u+=r.targetLinks[w].value;for(w=0;w&lt;r.targetLinks.length;w++)(e=r.targetLinks[w]).concenrationIn=e.value/u}}(),s.node.x.length&amp;&amp;s.node.y.length){for(_=0;_&lt;Math.min(s.node.x.length,s.node.y.length,k.nodes.length);_++)if(s.node.x[_]&amp;&amp;s.node.y[_]){var C=[s.node.x[_]*g,s.node.y[_]*v];k.nodes[_].x0=C[0]-d/2,k.nodes[_].x1=C[0]+d/2;var L=k.nodes[_].y1-k.nodes[_].y0;k.nodes[_].y0=C[1]-L/2,k.nodes[_].y1=C[1]+L/2}if(&quot;snap&quot;===s.arrangement)!function(t){t.forEach((function(t){var e,r,n,i=0,a=t.length;for(t.sort((function(t,e){return t.y0-e.y0})),n=0;n&lt;a;++n)(e=t[n]).y0&gt;=i||(r=i-e.y0)&gt;1e-6&amp;&amp;(e.y0+=r,e.y1+=r),i=e.y1+p}))}(function(t){var e,r,n=t.map((function(t,e){return{x0:t.x0,index:e}})).sort((function(t,e){return t.x0-e.x0})),i=[],a=-1,o=-1/0;for(_=0;_&lt;n.length;_++){var s=t[n[_].index];s.x0&gt;o+d&amp;&amp;(a+=1,e=s.x0),o=s.x0,i[a]||(i[a]=[]),i[a].push(s),r=e-s.x0,s.x0+=r,s.x1+=r}return i}(y=k.nodes));i.update(k)}return{circular:b,key:r,trace:s,guid:f.randstr(),horizontal:h,width:g,height:v,nodePad:s.node.pad,nodeLineColor:s.node.line.color,nodeLineWidth:s.node.line.width,linkLineColor:s.link.line.color,linkLineWidth:s.link.line.width,valueFormat:s.valueformat,valueSuffix:s.valuesuffix,textFont:s.textfont,translateX:u.x[0]*t.width+t.margin.l,translateY:t.height-u.y[1]*t.height+t.margin.t,dragParallel:h?v:g,dragPerpendicular:h?g:v,arrangement:s.arrangement,sankey:i,graph:k,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}function b(t,e,r){var n=a(e.color),i=e.source.label+&quot;|&quot;+e.target.label+&quot;__&quot;+r;return e.trace=t.trace,e.curveNumber=t.trace.index,{circular:t.circular,key:i,traceId:t.key,pointNumber:e.pointNumber,link:e,tinyColorHue:o.tinyRGB(n),tinyColorAlpha:n.getAlpha(),linkPath:_,linkLineColor:t.linkLineColor,linkLineWidth:t.linkLineWidth,valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,parent:t,interactionState:t.interactionState,flow:e.flow}}function _(){return function(t){if(t.link.circular)return e=t.link,r=e.width/2,n=e.circularPathData,&quot;top&quot;===e.circularLinkType?&quot;M &quot;+n.targetX+&quot; &quot;+(n.targetY+r)+&quot; L&quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY+r)+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightSmallArcRadius+r)+&quot; 0 0 1 &quot;+(n.rightFullExtent-r)+&quot; &quot;+(n.targetY-n.rightSmallArcRadius)+&quot;L&quot;+(n.rightFullExtent-r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightLargeArcRadius+r)+&quot; 0 0 1 &quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftLargeArcRadius+r)+&quot; 0 0 1 &quot;+(n.leftFullExtent+r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;L&quot;+(n.leftFullExtent+r)+&quot; &quot;+(n.sourceY-n.leftSmallArcRadius)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftSmallArcRadius+r)+&quot; 0 0 1 &quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY-r)+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftSmallArcRadius-r)+&quot; 0 0 0 &quot;+(n.leftFullExtent-r)+&quot; &quot;+(n.sourceY-n.leftSmallArcRadius)+&quot;L&quot;+(n.leftFullExtent-r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftLargeArcRadius-r)+&quot; 0 0 0 &quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;L&quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightLargeArcRadius-r)+&quot; 0 0 0 &quot;+(n.rightFullExtent+r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;L&quot;+(n.rightFullExtent+r)+&quot; &quot;+(n.targetY-n.rightSmallArcRadius)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightSmallArcRadius-r)+&quot; 0 0 0 &quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY-r)+&quot;L&quot;+n.targetX+&quot; &quot;+(n.targetY-r)+&quot;Z&quot;:&quot;M &quot;+n.targetX+&quot; &quot;+(n.targetY-r)+&quot; L&quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY-r)+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightSmallArcRadius+r)+&quot; 0 0 0 &quot;+(n.rightFullExtent-r)+&quot; &quot;+(n.targetY+n.rightSmallArcRadius)+&quot;L&quot;+(n.rightFullExtent-r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightLargeArcRadius+r)+&quot; 0 0 0 &quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftLargeArcRadius+r)+&quot; 0 0 0 &quot;+(n.leftFullExtent+r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;L&quot;+(n.leftFullExtent+r)+&quot; &quot;+(n.sourceY+n.leftSmallArcRadius)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftSmallArcRadius+r)+&quot; 0 0 0 &quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY+r)+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftSmallArcRadius-r)+&quot; 0 0 1 &quot;+(n.leftFullExtent-r)+&quot; &quot;+(n.sourceY+n.leftSmallArcRadius)+&quot;L&quot;+(n.leftFullExtent-r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftLargeArcRadius-r)+&quot; 0 0 1 &quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;L&quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightLargeArcRadius-r)+&quot; 0 0 1 &quot;+(n.rightFullExtent+r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;L&quot;+(n.rightFullExtent+r)+&quot; &quot;+(n.targetY+n.rightSmallArcRadius)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightSmallArcRadius-r)+&quot; 0 0 1 &quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY+r)+&quot;L&quot;+n.targetX+&quot; &quot;+(n.targetY+r)+&quot;Z&quot;;var e,r,n,i=t.link.source.x1,a=t.link.target.x0,o=v(i,a),s=o(.5),l=o(.5),c=t.link.y0-t.link.width/2,u=t.link.y0+t.link.width/2,f=t.link.y1-t.link.width/2,h=t.link.y1+t.link.width/2;return&quot;M&quot;+i+&quot;,&quot;+c+&quot;C&quot;+s+&quot;,&quot;+c+&quot; &quot;+l+&quot;,&quot;+f+&quot; &quot;+a+&quot;,&quot;+f+&quot;L&quot;+a+&quot;,&quot;+h+&quot;C&quot;+l+&quot;,&quot;+h+&quot; &quot;+s+&quot;,&quot;+u+&quot; &quot;+i+&quot;,&quot;+u+&quot;Z&quot;}}function w(t,e){var r=a(e.color),i=n.nodePadAcross,s=t.nodePad/2;e.dx=e.x1-e.x0,e.dy=e.y1-e.y0;var l=e.dx,c=Math.max(.5,e.dy),u=&quot;node_&quot;+e.pointNumber;return e.group&amp;&amp;(u=f.randstr()),e.trace=t.trace,e.curveNumber=t.trace.index,{index:e.pointNumber,key:u,partOfGroup:e.partOfGroup||!1,group:e.group,traceId:t.key,trace:t.trace,node:e,nodePad:t.nodePad,nodeLineColor:t.nodeLineColor,nodeLineWidth:t.nodeLineWidth,textFont:t.textFont,size:t.horizontal?t.height:t.width,visibleWidth:Math.ceil(l),visibleHeight:c,zoneX:-i,zoneY:-s,zoneWidth:l+2*i,zoneHeight:c+2*s,labelY:t.horizontal?e.dy/2+1:e.dx/2+1,left:1===e.originalLayer,sizeAcross:t.width,forceLayouts:t.forceLayouts,horizontal:t.horizontal,darkBackground:r.getBrightness()&lt;=128,tinyColorHue:o.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,graph:t.graph,arrangement:t.arrangement,uniqueNodeLabelPathId:[t.guid,t.key,u].join(&quot;_&quot;),interactionState:t.interactionState,figure:t}}function T(t){t.attr(&quot;transform&quot;,(function(t){return h(t.node.x0.toFixed(3),t.node.y0.toFixed(3))}))}function k(t){t.call(T)}function M(t,e){t.call(k),e.attr(&quot;d&quot;,_())}function A(t){t.attr(&quot;width&quot;,(function(t){return t.node.x1-t.node.x0})).attr(&quot;height&quot;,(function(t){return t.visibleHeight}))}function S(t){return t.link.width&gt;1||t.linkLineWidth&gt;0}function E(t){return h(t.translateX,t.translateY)+(t.horizontal?&quot;matrix(1 0 0 1 0 0)&quot;:&quot;matrix(0 1 1 0 0 0)&quot;)}function C(t){return h(t.horizontal?0:t.labelY,t.horizontal?t.labelY:0)}function L(t){return i.svg.line()([[t.horizontal?t.left?-t.sizeAcross:t.visibleWidth+n.nodeTextOffsetHorizontal:n.nodeTextOffsetHorizontal,0],[t.horizontal?t.left?-n.nodeTextOffsetHorizontal:t.sizeAcross:t.visibleHeight-n.nodeTextOffsetHorizontal,0]])}function I(t){return t.horizontal?&quot;matrix(1 0 0 1 0 0)&quot;:&quot;matrix(0 1 1 0 0 0)&quot;}function P(t){return t.horizontal?&quot;scale(1 1)&quot;:&quot;scale(-1 1)&quot;}function z(t){return t.darkBackground&amp;&amp;!t.horizontal?&quot;rgb(255,255,255)&quot;:&quot;rgb(0,0,0)&quot;}function O(t){return t.horizontal&amp;&amp;t.left?&quot;100%&quot;:&quot;0%&quot;}function D(t,e,r){t.on(&quot;.basic&quot;,null).on(&quot;mouseover.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.hover(this,t,e),t.interactionState.hovered=[this,t])})).on(&quot;mousemove.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.follow(this,t),t.interactionState.hovered=[this,t])})).on(&quot;mouseout.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.unhover(this,t,e),t.interactionState.hovered=!1)})).on(&quot;click.basic&quot;,(function(t){t.interactionState.hovered&amp;&amp;(r.unhover(this,t,e),t.interactionState.hovered=!1),t.interactionState.dragInProgress||t.partOfGroup||r.select(this,t,e)}))}function R(t,e,r,a){var o=i.behavior.drag().origin((function(t){return{x:t.node.x0+t.visibleWidth/2,y:t.node.y0+t.visibleHeight/2}})).on(&quot;dragstart&quot;,(function(i){if(&quot;fixed&quot;!==i.arrangement&amp;&amp;(f.ensureSingle(a._fullLayout._infolayer,&quot;g&quot;,&quot;dragcover&quot;,(function(t){a._fullLayout._dragCover=t})),f.raiseToTop(this),i.interactionState.dragInProgress=i.node,B(i.node),i.interactionState.hovered&amp;&amp;(r.nodeEvents.unhover.apply(0,i.interactionState.hovered),i.interactionState.hovered=!1),&quot;snap&quot;===i.arrangement)){var o=i.traceId+&quot;|&quot;+i.key;i.forceLayouts[o]?i.forceLayouts[o].alpha(1):function(t,e,r,i){!function(t){for(var e=0;e&lt;t.length;e++)t[e].y=(t[e].y0+t[e].y1)/2,t[e].x=(t[e].x0+t[e].x1)/2}(r.graph.nodes);var a=r.graph.nodes.filter((function(t){return t.originalX===r.node.originalX})).filter((function(t){return!t.partOfGroup}));r.forceLayouts[e]=u.forceSimulation(a).alphaDecay(0).force(&quot;collide&quot;,u.forceCollide().radius((function(t){return t.dy/2+r.nodePad/2})).strength(1).iterations(n.forceIterations)).force(&quot;constrain&quot;,function(t,e,r,i){return function(){for(var t=0,a=0;a&lt;r.length;a++){var o=r[a];o===i.interactionState.dragInProgress?(o.x=o.lastDraggedX,o.y=o.lastDraggedY):(o.vx=(o.originalX-o.x)/n.forceTicksPerFrame,o.y=Math.min(i.size-o.dy/2,Math.max(o.dy/2,o.y))),t=Math.max(t,Math.abs(o.vx),Math.abs(o.vy))}!i.interactionState.dragInProgress&amp;&amp;t&lt;.1&amp;&amp;i.forceLayouts[e].alpha()&gt;0&amp;&amp;i.forceLayouts[e].alpha(0)}}(0,e,a,r)).stop()}(0,o,i),function(t,e,r,i,a){window.requestAnimationFrame((function o(){var s;for(s=0;s&lt;n.forceTicksPerFrame;s++)r.forceLayouts[i].tick();if(function(t){for(var e=0;e&lt;t.length;e++)t[e].y0=t[e].y-t[e].dy/2,t[e].y1=t[e].y0+t[e].dy,t[e].x0=t[e].x-t[e].dx/2,t[e].x1=t[e].x0+t[e].dx}(r.graph.nodes),r.sankey.update(r.graph),M(t.filter(N(r)),e),r.forceLayouts[i].alpha()&gt;0)window.requestAnimationFrame(o);else{var l=r.node.originalX;r.node.x0=l-r.visibleWidth/2,r.node.x1=l+r.visibleWidth/2,F(r,a)}}))}(t,e,i,o,a)}})).on(&quot;drag&quot;,(function(r){if(&quot;fixed&quot;!==r.arrangement){var n=i.event.x,a=i.event.y;&quot;snap&quot;===r.arrangement?(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2,r.node.y0=a-r.visibleHeight/2,r.node.y1=a+r.visibleHeight/2):(&quot;freeform&quot;===r.arrangement&amp;&amp;(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2),a=Math.max(0,Math.min(r.size-r.visibleHeight/2,a)),r.node.y0=a-r.visibleHeight/2,r.node.y1=a+r.visibleHeight/2),B(r.node),&quot;snap&quot;!==r.arrangement&amp;&amp;(r.sankey.update(r.graph),M(t.filter(N(r)),e))}})).on(&quot;dragend&quot;,(function(t){if(&quot;fixed&quot;!==t.arrangement){t.interactionState.dragInProgress=!1;for(var e=0;e&lt;t.node.childrenNodes.length;e++)t.node.childrenNodes[e].x=t.node.x,t.node.childrenNodes[e].y=t.node.y;&quot;snap&quot;!==t.arrangement&amp;&amp;F(t,a)}}));t.on(&quot;.drag&quot;,null).call(o)}function F(t,e){for(var r=[],n=[],i=0;i&lt;t.graph.nodes.length;i++){var a=(t.graph.nodes[i].x0+t.graph.nodes[i].x1)/2,o=(t.graph.nodes[i].y0+t.graph.nodes[i].y1)/2;r.push(a/t.figure.width),n.push(o/t.figure.height)}y.call(&quot;_guiRestyle&quot;,e,{&quot;node.x&quot;:[r],&quot;node.y&quot;:[n]},t.trace.index).then((function(){e._fullLayout._dragCover&amp;&amp;e._fullLayout._dragCover.remove()}))}function B(t){t.lastDraggedX=t.x0+t.dx/2,t.lastDraggedY=t.y0+t.dy/2}function N(t){return function(e){return e.node.originalX===t.node.originalX}}e.exports=function(t,e,r,l,c){var u=!1;f.ensureSingle(t._fullLayout._infolayer,&quot;g&quot;,&quot;first-render&quot;,(function(){u=!0}));var h=t._fullLayout._dragCover,p=r.filter((function(t){return m(t).trace.visible})).map(x.bind(null,l)),v=e.selectAll(&quot;.&quot;+n.cn.sankey).data(p,d);v.exit().remove(),v.enter().append(&quot;g&quot;).classed(n.cn.sankey,!0).style(&quot;box-sizing&quot;,&quot;content-box&quot;).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;left&quot;,0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;).style(&quot;pointer-events&quot;,&quot;auto&quot;).attr(&quot;transform&quot;,E),v.each((function(e,r){t._fullData[r]._sankey=e;var n=&quot;bgsankey-&quot;+e.trace.uid+&quot;-&quot;+r;f.ensureSingle(t._fullLayout._draggers,&quot;rect&quot;,n),t._fullData[r]._bgRect=i.select(&quot;.&quot;+n),t._fullData[r]._bgRect.style(&quot;pointer-events&quot;,&quot;all&quot;).attr(&quot;width&quot;,e.width).attr(&quot;height&quot;,e.height).attr(&quot;x&quot;,e.translateX).attr(&quot;y&quot;,e.translateY).classed(&quot;bgsankey&quot;,!0).style({fill:&quot;transparent&quot;,&quot;stroke-width&quot;:0})})),v.transition().ease(n.ease).duration(n.duration).attr(&quot;transform&quot;,E);var y=v.selectAll(&quot;.&quot;+n.cn.sankeyLinks).data(g,d);y.enter().append(&quot;g&quot;).classed(n.cn.sankeyLinks,!0).style(&quot;fill&quot;,&quot;none&quot;);var k=y.selectAll(&quot;.&quot;+n.cn.sankeyLink).data((function(t){return t.graph.links.filter((function(t){return t.value})).map(b.bind(null,t))}),d);k.enter().append(&quot;path&quot;).classed(n.cn.sankeyLink,!0).call(D,v,c.linkEvents),k.style(&quot;stroke&quot;,(function(t){return S(t)?o.tinyRGB(a(t.linkLineColor)):t.tinyColorHue})).style(&quot;stroke-opacity&quot;,(function(t){return S(t)?o.opacity(t.linkLineColor):t.tinyColorAlpha})).style(&quot;fill&quot;,(function(t){return t.tinyColorHue})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})).style(&quot;stroke-width&quot;,(function(t){return S(t)?t.linkLineWidth:1})).attr(&quot;d&quot;,_()),k.style(&quot;opacity&quot;,(function(){return t._context.staticPlot||u||h?1:0})).transition().ease(n.ease).duration(n.duration).style(&quot;opacity&quot;,1),k.exit().transition().ease(n.ease).duration(n.duration).style(&quot;opacity&quot;,0).remove();var M=v.selectAll(&quot;.&quot;+n.cn.sankeyNodeSet).data(g,d);M.enter().append(&quot;g&quot;).classed(n.cn.sankeyNodeSet,!0),M.style(&quot;cursor&quot;,(function(t){switch(t.arrangement){case&quot;fixed&quot;:return&quot;default&quot;;case&quot;perpendicular&quot;:return&quot;ns-resize&quot;;default:return&quot;move&quot;}}));var F=M.selectAll(&quot;.&quot;+n.cn.sankeyNode).data((function(t){var e=t.graph.nodes;return function(t){var e,r=[];for(e=0;e&lt;t.length;e++)t[e].originalX=(t[e].x0+t[e].x1)/2,t[e].originalY=(t[e].y0+t[e].y1)/2,-1===r.indexOf(t[e].originalX)&amp;&amp;r.push(t[e].originalX);for(r.sort((function(t,e){return t-e})),e=0;e&lt;t.length;e++)t[e].originalLayerIndex=r.indexOf(t[e].originalX),t[e].originalLayer=t[e].originalLayerIndex/(r.length-1)}(e),e.map(w.bind(null,t))}),d);F.enter().append(&quot;g&quot;).classed(n.cn.sankeyNode,!0).call(T).style(&quot;opacity&quot;,(function(e){return!t._context.staticPlot&amp;&amp;!u||e.partOfGroup?0:1})),F.call(D,v,c.nodeEvents).call(R,k,c,t),F.transition().ease(n.ease).duration(n.duration).call(T).style(&quot;opacity&quot;,(function(t){return t.partOfGroup?0:1})),F.exit().transition().ease(n.ease).duration(n.duration).style(&quot;opacity&quot;,0).remove();var B=F.selectAll(&quot;.&quot;+n.cn.nodeRect).data(g);B.enter().append(&quot;rect&quot;).classed(n.cn.nodeRect,!0).call(A),B.style(&quot;stroke-width&quot;,(function(t){return t.nodeLineWidth})).style(&quot;stroke&quot;,(function(t){return o.tinyRGB(a(t.nodeLineColor))})).style(&quot;stroke-opacity&quot;,(function(t){return o.opacity(t.nodeLineColor)})).style(&quot;fill&quot;,(function(t){return t.tinyColorHue})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),B.transition().ease(n.ease).duration(n.duration).call(A);var N=F.selectAll(&quot;.&quot;+n.cn.nodeCapture).data(g);N.enter().append(&quot;rect&quot;).classed(n.cn.nodeCapture,!0).style(&quot;fill-opacity&quot;,0),N.attr(&quot;x&quot;,(function(t){return t.zoneX})).attr(&quot;y&quot;,(function(t){return t.zoneY})).attr(&quot;width&quot;,(function(t){return t.zoneWidth})).attr(&quot;height&quot;,(function(t){return t.zoneHeight}));var j=F.selectAll(&quot;.&quot;+n.cn.nodeCentered).data(g);j.enter().append(&quot;g&quot;).classed(n.cn.nodeCentered,!0).attr(&quot;transform&quot;,C),j.transition().ease(n.ease).duration(n.duration).attr(&quot;transform&quot;,C);var U=j.selectAll(&quot;.&quot;+n.cn.nodeLabelGuide).data(g);U.enter().append(&quot;path&quot;).classed(n.cn.nodeLabelGuide,!0).attr(&quot;id&quot;,(function(t){return t.uniqueNodeLabelPathId})).attr(&quot;d&quot;,L).attr(&quot;transform&quot;,I),U.transition().ease(n.ease).duration(n.duration).attr(&quot;d&quot;,L).attr(&quot;transform&quot;,I);var V=j.selectAll(&quot;.&quot;+n.cn.nodeLabel).data(g);V.enter().append(&quot;text&quot;).classed(n.cn.nodeLabel,!0).attr(&quot;transform&quot;,P).style(&quot;cursor&quot;,&quot;default&quot;).style(&quot;fill&quot;,&quot;black&quot;),V.style(&quot;text-shadow&quot;,(function(t){return t.horizontal?&quot;-1px 1px 1px #fff, 1px 1px 1px #fff, 1px -1px 1px #fff, -1px -1px 1px #fff&quot;:&quot;none&quot;})).each((function(t){s.font(V,t.textFont)})),V.transition().ease(n.ease).duration(n.duration).attr(&quot;transform&quot;,P);var q=V.selectAll(&quot;.&quot;+n.cn.nodeLabelTextPath).data(g);q.enter().append(&quot;textPath&quot;).classed(n.cn.nodeLabelTextPath,!0).attr(&quot;alignment-baseline&quot;,&quot;middle&quot;).attr(&quot;xlink:href&quot;,(function(t){return&quot;#&quot;+t.uniqueNodeLabelPathId})).attr(&quot;startOffset&quot;,O).style(&quot;fill&quot;,z),q.text((function(t){return t.horizontal||t.node.dy&gt;5?t.node.label:&quot;&quot;})).attr(&quot;text-anchor&quot;,(function(t){return t.horizontal&amp;&amp;t.left?&quot;end&quot;:&quot;start&quot;})),q.transition().ease(n.ease).duration(n.duration).attr(&quot;startOffset&quot;,O).style(&quot;fill&quot;,z)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;../../registry&quot;:911,&quot;./constants&quot;:1180,&quot;@plotly/d3-sankey&quot;:56,&quot;@plotly/d3-sankey-circular&quot;:55,d3:169,&quot;d3-force&quot;:160,&quot;d3-interpolate&quot;:162,tinycolor2:576}],1185:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=[],n=t.cd[0].trace,i=n._sankey.graph.nodes,a=0;a&lt;i.length;a++){var o=i[a];if(!o.partOfGroup){var s=[(o.x0+o.x1)/2,(o.y0+o.y1)/2];&quot;v&quot;===n.orientation&amp;&amp;s.reverse(),e&amp;&amp;e.contains(s,!1,a,t)&amp;&amp;r.push({pointNumber:o.pointNumber})}}return r}},{}],1186:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.texttemplate,t,&quot;txt&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;),n.mergeArray(e.customdata,t,&quot;data&quot;),n.mergeArray(e.textposition,t,&quot;tp&quot;),e.textfont&amp;&amp;(n.mergeArrayCastPositive(e.textfont.size,t,&quot;ts&quot;),n.mergeArray(e.textfont.color,t,&quot;tc&quot;),n.mergeArray(e.textfont.family,t,&quot;tf&quot;));var i=e.marker;if(i){n.mergeArrayCastPositive(i.size,t,&quot;ms&quot;),n.mergeArrayCastPositive(i.opacity,t,&quot;mo&quot;),n.mergeArray(i.symbol,t,&quot;mx&quot;),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;i.line&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;));var o=i.gradient;o&amp;&amp;&quot;none&quot;!==o.type&amp;&amp;(n.mergeArray(o.type,t,&quot;mgt&quot;),n.mergeArray(o.color,t,&quot;mgc&quot;))}}},{&quot;../../lib&quot;:778}],1187:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../components/drawing/attributes&quot;).dash,l=t(&quot;../../components/drawing&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},x0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},dx:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;,anim:!0},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},y0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},dy:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;,anim:!0},xperiod:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},yperiod:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},xperiod0:{valType:&quot;any&quot;,editType:&quot;calc&quot;},yperiod0:{valType:&quot;any&quot;,editType:&quot;calc&quot;},xperiodalignment:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;middle&quot;,&quot;end&quot;],dflt:&quot;middle&quot;,editType:&quot;calc&quot;},yperiodalignment:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;middle&quot;,&quot;end&quot;],dflt:&quot;middle&quot;,editType:&quot;calc&quot;},stackgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc&quot;},groupnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;fraction&quot;,&quot;percent&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},stackgaps:{valType:&quot;enumerated&quot;,values:[&quot;infer zero&quot;,&quot;interpolate&quot;],dflt:&quot;infer zero&quot;,editType:&quot;calc&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},texttemplate:n({},{}),hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},mode:{valType:&quot;flaglist&quot;,flags:[&quot;lines&quot;,&quot;markers&quot;,&quot;text&quot;],extras:[&quot;none&quot;],editType:&quot;calc&quot;},hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;points&quot;,&quot;fills&quot;],editType:&quot;style&quot;},hovertemplate:i({},{keys:c.eventDataKeys}),line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;,anim:!0},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;,anim:!0},shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;spline&quot;,&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},smoothing:{valType:&quot;number&quot;,min:0,max:1.3,dflt:1,editType:&quot;plot&quot;},dash:u({},s,{editType:&quot;style&quot;}),simplify:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},connectgaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},cliponaxis:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},fill:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;tozeroy&quot;,&quot;tozerox&quot;,&quot;tonexty&quot;,&quot;tonextx&quot;,&quot;toself&quot;,&quot;tonext&quot;],editType:&quot;calc&quot;},fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;,anim:!0},marker:u({symbol:{valType:&quot;enumerated&quot;,values:l.symbolList,dflt:&quot;circle&quot;,arrayOk:!0,editType:&quot;style&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,arrayOk:!0,editType:&quot;style&quot;,anim:!0},size:{valType:&quot;number&quot;,min:0,dflt:6,arrayOk:!0,editType:&quot;calc&quot;,anim:!0},maxdisplayed:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},sizeref:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},sizemin:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},sizemode:{valType:&quot;enumerated&quot;,values:[&quot;diameter&quot;,&quot;area&quot;],dflt:&quot;diameter&quot;,editType:&quot;calc&quot;},line:u({width:{valType:&quot;number&quot;,min:0,arrayOk:!0,editType:&quot;style&quot;,anim:!0},editType:&quot;calc&quot;},a(&quot;marker.line&quot;,{anim:!0})),gradient:{type:{valType:&quot;enumerated&quot;,values:[&quot;radial&quot;,&quot;horizontal&quot;,&quot;vertical&quot;,&quot;none&quot;],arrayOk:!0,dflt:&quot;none&quot;,editType:&quot;calc&quot;},color:{valType:&quot;color&quot;,arrayOk:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},a(&quot;marker&quot;,{anim:!0})),selected:{marker:{opacity:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},size:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},textfont:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;},unselected:{marker:{opacity:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},size:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},textfont:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;},textposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle left&quot;,&quot;middle center&quot;,&quot;middle right&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],dflt:&quot;middle center&quot;,arrayOk:!0,editType:&quot;calc&quot;},textfont:o({editType:&quot;calc&quot;,colorEditType:&quot;style&quot;,arrayOk:!0}),r:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},t:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;}}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing&quot;:665,&quot;../../components/drawing/attributes&quot;:664,&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906,&quot;./constants&quot;:1191}],1188:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=t(&quot;./subtypes&quot;),c=t(&quot;./colorscale_calc&quot;),u=t(&quot;./arrays_to_calcdata&quot;),f=t(&quot;./calc_selection&quot;);function h(t,e,r,n,i,o,s){var c=e._length,u=t._fullLayout,f=r._id,h=n._id,p=u._firstScatter[g(e)]===e.uid,d=(m(e,u,r,n)||{}).orientation,v=e.fill;r._minDtick=0,n._minDtick=0;var y={padded:!0},x={padded:!0};s&amp;&amp;(y.ppad=x.ppad=s);var b=c&lt;2||i[0]!==i[c-1]||o[0]!==o[c-1];b&amp;&amp;(&quot;tozerox&quot;===v||&quot;tonextx&quot;===v&amp;&amp;(p||&quot;h&quot;===d))?y.tozero=!0:(e.error_y||{}).visible||&quot;tonexty&quot;!==v&amp;&amp;&quot;tozeroy&quot;!==v&amp;&amp;(l.hasMarkers(e)||l.hasText(e))||(y.padded=!1,y.ppad=0),b&amp;&amp;(&quot;tozeroy&quot;===v||&quot;tonexty&quot;===v&amp;&amp;(p||&quot;v&quot;===d))?x.tozero=!0:&quot;tonextx&quot;!==v&amp;&amp;&quot;tozerox&quot;!==v||(x.padded=!1),f&amp;&amp;(e._extremes[f]=a.findExtremes(r,i,y)),h&amp;&amp;(e._extremes[h]=a.findExtremes(n,o,x))}function p(t,e){if(l.hasMarkers(t)){var r,n=t.marker,o=1.6*(t.marker.sizeref||1);if(r=&quot;area&quot;===t.marker.sizemode?function(t){return Math.max(Math.sqrt((t||0)/o),3)}:function(t){return Math.max((t||0)/o,3)},i.isArrayOrTypedArray(n.size)){var s={type:&quot;linear&quot;};a.setConvert(s);for(var c=s.makeCalcdata(t.marker,&quot;size&quot;),u=new Array(e),f=0;f&lt;e;f++)u[f]=r(c[f]);return u}return r(n.size)}}function d(t,e){var r=g(e),n=t._firstScatter;n[r]||(n[r]=e.uid)}function g(t){var e=t.stackgroup;return t.xaxis+t.yaxis+t.type+(e?&quot;-&quot;+e:&quot;&quot;)}function m(t,e,r,n){var i=t.stackgroup;if(i){var a=e._scatterStackOpts[r._id+n._id][i],o=&quot;v&quot;===a.orientation?n:r;return&quot;linear&quot;===o.type||&quot;log&quot;===o.type?a:void 0}}e.exports={calc:function(t,e){var r,l,g,v,y,x,b=t._fullLayout,_=a.getFromId(t,e.xaxis||&quot;x&quot;),w=a.getFromId(t,e.yaxis||&quot;y&quot;),T=_.makeCalcdata(e,&quot;x&quot;),k=w.makeCalcdata(e,&quot;y&quot;),M=o(e,_,&quot;x&quot;,T),A=o(e,w,&quot;y&quot;,k),S=e._length,E=new Array(S),C=e.ids,L=m(e,b,_,w),I=!1;d(b,e);var P,z=&quot;x&quot;,O=&quot;y&quot;;L?(i.pushUnique(L.traceIndices,e._expandedIndex),(r=&quot;v&quot;===L.orientation)?(O=&quot;s&quot;,P=&quot;x&quot;):(z=&quot;s&quot;,P=&quot;y&quot;),y=&quot;interpolate&quot;===L.stackgaps):h(t,e,_,w,M,A,p(e,S));var D=!!e.xperiodalignment,R=!!e.yperiodalignment;for(l=0;l&lt;S;l++){var F=E[l]={},B=n(M[l]),N=n(A[l]);B&amp;&amp;N?(F[z]=M[l],F[O]=A[l],D&amp;&amp;(F.orig_x=T[l]),R&amp;&amp;(F.orig_y=k[l])):L&amp;&amp;(r?B:N)?(F[P]=r?M[l]:A[l],F.gap=!0,y?(F.s=s,I=!0):F.s=0):F[z]=F[O]=s,C&amp;&amp;(F.id=String(C[l]))}if(u(E,e),c(t,e),f(E,e),L){for(l=0;l&lt;E.length;)E[l][P]===s?E.splice(l,1):l++;if(i.sort(E,(function(t,e){return t[P]-e[P]||t.i-e.i})),I){for(l=0;l&lt;E.length-1&amp;&amp;E[l].gap;)l++;for((x=E[l].s)||(x=E[l].s=0),g=0;g&lt;l;g++)E[g].s=x;for(v=E.length-1;v&gt;l&amp;&amp;E[v].gap;)v--;for(x=E[v].s,g=E.length-1;g&gt;v;g--)E[g].s=x;for(;l&lt;v;)if(E[++l].gap){for(g=l+1;E[g].gap;)g++;for(var j=E[l-1][P],U=E[l-1].s,V=(E[g].s-U)/(E[g][P]-j);l&lt;g;)E[l].s=U+(E[l][P]-j)*V,l++}}}return E},calcMarkerSize:p,calcAxisExpansion:h,setFirstScatter:d,getStackOpts:m}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;./arrays_to_calcdata&quot;:1186,&quot;./calc_selection&quot;:1189,&quot;./colorscale_calc&quot;:1190,&quot;./subtypes&quot;:1212,&quot;fast-isnumeric&quot;:241}],1189:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){n.isArrayOrTypedArray(e.selectedpoints)&amp;&amp;n.tagSelected(t,e)}},{&quot;../../lib&quot;:778}],1190:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,i=t(&quot;../../components/colorscale/calc&quot;),a=t(&quot;./subtypes&quot;);e.exports=function(t,e){a.hasLines(e)&amp;&amp;n(e,&quot;line&quot;)&amp;&amp;i(t,e,{vals:e.line.color,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;}),a.hasMarkers(e)&amp;&amp;(n(e,&quot;marker&quot;)&amp;&amp;i(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),n(e,&quot;marker.line&quot;)&amp;&amp;i(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}))}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;./subtypes&quot;:1212}],1191:[function(t,e,r){&quot;use strict&quot;;e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},{}],1192:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./calc&quot;);function i(t,e,r,n,i,a,o){i[n]=!0;var s={i:null,gap:!0,s:0};if(s[o]=r,t.splice(e,0,s),e&amp;&amp;r===t[e-1][o]){var l=t[e-1];s.s=l.s,s.i=l.i,s.gap=l.gap}else a&amp;&amp;(s.s=function(t,e,r,n){var i=t[e-1],a=t[e+1];return a?i?i.s+(a.s-i.s)*(r-i[n])/(a[n]-i[n]):a.s:i.s}(t,e,r,o));e||(t[0].t=t[1].t,t[0].trace=t[1].trace,delete t[1].t,delete t[1].trace)}e.exports=function(t,e){var r=e.xaxis,a=e.yaxis,o=r._id+a._id,s=t._fullLayout._scatterStackOpts[o];if(s){var l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T=t.calcdata;for(var k in s){var M=(v=s[k]).traceIndices;if(M.length){for(y=&quot;interpolate&quot;===v.stackgaps,x=v.groupnorm,&quot;v&quot;===v.orientation?(b=&quot;x&quot;,_=&quot;y&quot;):(b=&quot;y&quot;,_=&quot;x&quot;),w=new Array(M.length),l=0;l&lt;w.length;l++)w[l]=!1;p=T[M[0]];var A=new Array(p.length);for(l=0;l&lt;p.length;l++)A[l]=p[l][b];for(l=1;l&lt;M.length;l++){for(h=T[M[l]],c=u=0;c&lt;h.length;c++){for(d=h[c][b];d&gt;A[u]&amp;&amp;u&lt;A.length;u++)i(h,c,A[u],l,w,y,b),c++;if(d!==A[u]){for(f=0;f&lt;l;f++)i(T[M[f]],u,d,f,w,y,b);A.splice(u,0,d)}u++}for(;u&lt;A.length;u++)i(h,c,A[u],l,w,y,b),c++}var S=A.length;for(c=0;c&lt;p.length;c++){for(g=p[c][_]=p[c].s,l=1;l&lt;M.length;l++)(h=T[M[l]])[0].trace._rawLength=h[0].trace._length,h[0].trace._length=S,g+=h[c].s,h[c][_]=g;if(x)for(m=(&quot;fraction&quot;===x?g:g/100)||1,l=0;l&lt;M.length;l++){var E=T[M[l]][c];E[_]/=m,E.sNorm=E.s/m}}for(l=0;l&lt;M.length;l++){var C=(h=T[M[l]])[0].trace,L=n.calcMarkerSize(C,C._rawLength),I=Array.isArray(L);if(L&amp;&amp;w[l]||I){var P=L;for(L=new Array(S),c=0;c&lt;S;c++)L[c]=h[c].gap?0:I?P[h[c].i]:P}var z=new Array(S),O=new Array(S);for(c=0;c&lt;S;c++)z[c]=h[c].x,O[c]=h[c].y;n.calcAxisExpansion(t,C,r,a,z,O,L),h[0].t.orientation=v.orientation}}}}}},{&quot;./calc&quot;:1188}],1193:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=0;e&lt;t.length;e++){var r=t[e];if(&quot;scatter&quot;===r.type){var n=r.fill;if(&quot;none&quot;!==n&amp;&amp;&quot;toself&quot;!==n&amp;&amp;(r.opacity=void 0,&quot;tonexty&quot;===n||&quot;tonextx&quot;===n))for(var i=e-1;i&gt;=0;i--){var a=t[i];if(&quot;scatter&quot;===a.type&amp;&amp;a.xaxis===r.xaxis&amp;&amp;a.yaxis===r.yaxis){a.opacity=void 0;break}}}}}},{}],1194:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;),s=t(&quot;./subtypes&quot;),l=t(&quot;./xy_defaults&quot;),c=t(&quot;./period_defaults&quot;),u=t(&quot;./stack_defaults&quot;),f=t(&quot;./marker_defaults&quot;),h=t(&quot;./line_defaults&quot;),p=t(&quot;./line_shape_defaults&quot;),d=t(&quot;./text_defaults&quot;),g=t(&quot;./fillcolor_defaults&quot;);e.exports=function(t,e,r,m){function v(r,i){return n.coerce(t,e,a,r,i)}var y=l(t,e,m,v);if(y||(e.visible=!1),e.visible){c(t,e,m,v);var x=u(t,e,m,v),b=!x&amp;&amp;y&lt;o.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;;v(&quot;text&quot;),v(&quot;hovertext&quot;),v(&quot;mode&quot;,b),s.hasLines(e)&amp;&amp;(h(t,e,r,m,v),p(t,e,v),v(&quot;connectgaps&quot;),v(&quot;line.simplify&quot;)),s.hasMarkers(e)&amp;&amp;f(t,e,r,m,v,{gradient:!0}),s.hasText(e)&amp;&amp;(v(&quot;texttemplate&quot;),d(t,e,m,v));var _=[];(s.hasMarkers(e)||s.hasText(e))&amp;&amp;(v(&quot;cliponaxis&quot;),v(&quot;marker.maxdisplayed&quot;),_.push(&quot;points&quot;)),v(&quot;fill&quot;,x?x.fillDflt:&quot;none&quot;),&quot;none&quot;!==e.fill&amp;&amp;(g(t,e,r,v),s.hasLines(e)||p(t,e,v));var w=(e.line||{}).color,T=(e.marker||{}).color;&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||_.push(&quot;fills&quot;),v(&quot;hoveron&quot;,_.join(&quot;+&quot;)||&quot;points&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;v(&quot;hovertemplate&quot;);var k=i.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);k(t,e,w||T||r,{axis:&quot;y&quot;}),k(t,e,w||T||r,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,v)}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1187,&quot;./constants&quot;:1191,&quot;./fillcolor_defaults&quot;:1195,&quot;./line_defaults&quot;:1200,&quot;./line_shape_defaults&quot;:1202,&quot;./marker_defaults&quot;:1206,&quot;./period_defaults&quot;:1207,&quot;./stack_defaults&quot;:1210,&quot;./subtypes&quot;:1212,&quot;./text_defaults&quot;:1213,&quot;./xy_defaults&quot;:1214}],1195:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a){var o=!1;if(e.marker){var s=e.marker.color,l=(e.marker.line||{}).color;s&amp;&amp;!i(s)?o=s:l&amp;&amp;!i(l)&amp;&amp;(o=l)}a(&quot;fillcolor&quot;,n.addOpacity((e.line||{}).color||o||r,.5))}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778}],1196:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a={_fullLayout:r},o=n.getFromTrace(a,e,&quot;x&quot;),s=n.getFromTrace(a,e,&quot;y&quot;);return i.xLabel=n.tickText(o,t.x,!0).text,i.yLabel=n.tickText(s,t.y,!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1197:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;./subtypes&quot;);e.exports=function(t,e){var r,a;if(&quot;lines&quot;===t.mode)return(r=t.line.color)&amp;&amp;n.opacity(r)?r:t.fillcolor;if(&quot;none&quot;===t.mode)return t.fill?t.fillcolor:&quot;&quot;;var o=e.mcc||(t.marker||{}).color,s=e.mlcc||((t.marker||{}).line||{}).color;return(a=o&amp;&amp;n.opacity(o)?o:s&amp;&amp;n.opacity(s)&amp;&amp;(e.mlw||((t.marker||{}).line||{}).width)?s:&quot;&quot;)?n.opacity(a)&lt;.3?n.addOpacity(a,.3):a:(r=(t.line||{}).color)&amp;&amp;n.opacity(r)&amp;&amp;i.hasLines(t)&amp;&amp;t.line.width?r:t.fillcolor}},{&quot;../../components/color&quot;:643,&quot;./subtypes&quot;:1212}],1198:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/fx&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;./get_trace_color&quot;),s=t(&quot;../../components/color&quot;),l=n.fillText;e.exports=function(t,e,r,c){var u=t.cd,f=u[0].trace,h=t.xa,p=t.ya,d=h.c2p(e),g=p.c2p(r),m=[d,g],v=f.hoveron||&quot;&quot;,y=-1!==f.mode.indexOf(&quot;markers&quot;)?3:.5;if(-1!==v.indexOf(&quot;points&quot;)){var x=function(t){var e=Math.max(y,t.mrc||0),r=h.c2p(t.x)-d,n=p.c2p(t.y)-g;return Math.max(Math.sqrt(r*r+n*n)-e,1-y/e)},b=i.getDistanceFunction(c,(function(t){var e=Math.max(3,t.mrc||0),r=1-1/e,n=Math.abs(h.c2p(t.x)-d);return n&lt;e?r*n/e:n-e+r}),(function(t){var e=Math.max(3,t.mrc||0),r=1-1/e,n=Math.abs(p.c2p(t.y)-g);return n&lt;e?r*n/e:n-e+r}),x);if(i.getClosest(u,b,t),!1!==t.index){var _=u[t.index],w=h.c2p(_.x,!0),T=p.c2p(_.y,!0),k=_.mrc||1;t.index=_.i;var M=u[0].t.orientation,A=M&amp;&amp;(_.sNorm||_.s),S=&quot;h&quot;===M?A:void 0!==_.orig_x?_.orig_x:_.x,E=&quot;v&quot;===M?A:void 0!==_.orig_y?_.orig_y:_.y;return n.extendFlat(t,{color:o(f,_),x0:w-k,x1:w+k,xLabelVal:S,y0:T-k,y1:T+k,yLabelVal:E,spikeDistance:x(_),hovertemplate:f.hovertemplate}),l(_,f,t),a.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(_,f,t),[t]}}if(-1!==v.indexOf(&quot;fills&quot;)&amp;&amp;f._polygons){var C,L,I,P,z,O,D,R,F,B=f._polygons,N=[],j=!1,U=1/0,V=-1/0,q=1/0,H=-1/0;for(C=0;C&lt;B.length;C++)(I=B[C]).contains(m)&amp;&amp;(j=!j,N.push(I),q=Math.min(q,I.ymin),H=Math.max(H,I.ymax));if(j){var G=((q=Math.max(q,0))+(H=Math.min(H,p._length)))/2;for(C=0;C&lt;N.length;C++)for(P=N[C].pts,L=1;L&lt;P.length;L++)(R=P[L-1][1])&gt;G!=(F=P[L][1])&gt;=G&amp;&amp;(O=P[L-1][0],D=P[L][0],F-R&amp;&amp;(z=O+(D-O)*(G-R)/(F-R),U=Math.min(U,z),V=Math.max(V,z)));U=Math.max(U,0),V=Math.min(V,h._length);var Y=s.defaultLine;return s.opacity(f.fillcolor)?Y=f.fillcolor:s.opacity((f.line||{}).color)&amp;&amp;(Y=f.line.color),n.extendFlat(t,{distance:t.maxHoverDistance,x0:U,x1:V,y0:G,y1:G,color:Y,hovertemplate:!1}),delete t.index,f.text&amp;&amp;!Array.isArray(f.text)?t.text=String(f.text):t.text=f.name,[t]}}}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./get_trace_color&quot;:1197}],1199:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./subtypes&quot;);e.exports={hasLines:n.hasLines,hasMarkers:n.hasMarkers,hasText:n.hasText,isBubble:n.isBubble,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./cross_trace_calc&quot;),arraysToCalcdata:t(&quot;./arrays_to_calcdata&quot;),plot:t(&quot;./plot&quot;),colorbar:t(&quot;./marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;./select&quot;),animatable:!0,moduleType:&quot;trace&quot;,name:&quot;scatter&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./arrays_to_calcdata&quot;:1186,&quot;./attributes&quot;:1187,&quot;./calc&quot;:1188,&quot;./cross_trace_calc&quot;:1192,&quot;./cross_trace_defaults&quot;:1193,&quot;./defaults&quot;:1194,&quot;./format_labels&quot;:1196,&quot;./hover&quot;:1198,&quot;./marker_colorbar&quot;:1205,&quot;./plot&quot;:1208,&quot;./select&quot;:1209,&quot;./style&quot;:1211,&quot;./subtypes&quot;:1212}],1200:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray,i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;);e.exports=function(t,e,r,o,s,l){var c=(t.marker||{}).color;(s(&quot;line.color&quot;,r),i(t,&quot;line&quot;))?a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}):s(&quot;line.color&quot;,!n(c)&amp;&amp;c||r);s(&quot;line.width&quot;),(l||{}).noDash||s(&quot;line.dash&quot;)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778}],1201:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/numerical&quot;),i=n.BADNUM,a=n.LOG_CLIP,o=a+.5,s=a-.5,l=t(&quot;../../lib&quot;),c=l.segmentsIntersect,u=l.constrain,f=t(&quot;./constants&quot;);e.exports=function(t,e){var r,n,a,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S=e.xaxis,E=e.yaxis,C=&quot;log&quot;===S.type,L=&quot;log&quot;===E.type,I=S._length,P=E._length,z=e.connectGaps,O=e.baseTolerance,D=e.shape,R=&quot;linear&quot;===D,F=e.fill&amp;&amp;&quot;none&quot;!==e.fill,B=[],N=f.minTolerance,j=t.length,U=new Array(j),V=0;function q(r){var n=t[r];if(!n)return!1;var a=e.linearized?S.l2p(n.x):S.c2p(n.x),l=e.linearized?E.l2p(n.y):E.c2p(n.y);if(a===i){if(C&amp;&amp;(a=S.c2p(n.x,!0)),a===i)return!1;L&amp;&amp;l===i&amp;&amp;(a*=Math.abs(S._m*P*(S._m&gt;0?o:s)/(E._m*I*(E._m&gt;0?o:s)))),a*=1e3}if(l===i){if(L&amp;&amp;(l=E.c2p(n.y,!0)),l===i)return!1;l*=1e3}return[a,l]}function H(t,e,r,n){var i=r-t,a=n-e,o=.5-t,s=.5-e,l=i*i+a*a,c=i*o+a*s;if(c&gt;0&amp;&amp;c&lt;l){var u=o*a-s*i;if(u*u&lt;l)return!0}}function G(t,e){var r=t[0]/I,n=t[1]/P,i=Math.max(0,-r,r-1,-n,n-1);return i&amp;&amp;void 0!==M&amp;&amp;H(r,n,M,A)&amp;&amp;(i=0),i&amp;&amp;e&amp;&amp;H(r,n,e[0]/I,e[1]/P)&amp;&amp;(i=0),(1+f.toleranceGrowth*i)*O}function Y(t,e){var r=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(r*r+n*n)}var W,X,Z,J,K,Q,$,tt=f.maxScreensAway,et=-I*tt,rt=I*(1+tt),nt=-P*tt,it=P*(1+tt),at=[[et,nt,rt,nt],[rt,nt,rt,it],[rt,it,et,it],[et,it,et,nt]];function ot(t){if(t[0]&lt;et||t[0]&gt;rt||t[1]&lt;nt||t[1]&gt;it)return[u(t[0],et,rt),u(t[1],nt,it)]}function st(t,e){return t[0]===e[0]&amp;&amp;(t[0]===et||t[0]===rt)||(t[1]===e[1]&amp;&amp;(t[1]===nt||t[1]===it)||void 0)}function lt(t,e,r){return function(n,i){var a=ot(n),o=ot(i),s=[];if(a&amp;&amp;o&amp;&amp;st(a,o))return s;a&amp;&amp;s.push(a),o&amp;&amp;s.push(o);var c=2*l.constrain((n[t]+i[t])/2,e,r)-((a||n)[t]+(o||i)[t]);c&amp;&amp;((a&amp;&amp;o?c&gt;0==a[t]&gt;o[t]?a:o:a||o)[t]+=c);return s}}function ct(t){var e=t[0],r=t[1],n=e===U[V-1][0],i=r===U[V-1][1];if(!n||!i)if(V&gt;1){var a=e===U[V-2][0],o=r===U[V-2][1];n&amp;&amp;(e===et||e===rt)&amp;&amp;a?o?V--:U[V-1]=t:i&amp;&amp;(r===nt||r===it)&amp;&amp;o?a?V--:U[V-1]=t:U[V++]=t}else U[V++]=t}function ut(t){U[V-1][0]!==t[0]&amp;&amp;U[V-1][1]!==t[1]&amp;&amp;ct([Z,J]),ct(t),K=null,Z=J=0}function ft(t){if(M=t[0]/I,A=t[1]/P,W=t[0]&lt;et?et:t[0]&gt;rt?rt:0,X=t[1]&lt;nt?nt:t[1]&gt;it?it:0,W||X){if(V)if(K){var e=$(K,t);e.length&gt;1&amp;&amp;(ut(e[0]),U[V++]=e[1])}else Q=$(U[V-1],t)[0],U[V++]=Q;else U[V++]=[W||t[0],X||t[1]];var r=U[V-1];W&amp;&amp;X&amp;&amp;(r[0]!==W||r[1]!==X)?(K&amp;&amp;(Z!==W&amp;&amp;J!==X?ct(Z&amp;&amp;J?(n=K,a=(i=t)[0]-n[0],o=(i[1]-n[1])/a,(n[1]*i[0]-i[1]*n[0])/a&gt;0?[o&gt;0?et:rt,it]:[o&gt;0?rt:et,nt]):[Z||W,J||X]):Z&amp;&amp;J&amp;&amp;ct([Z,J])),ct([W,X])):Z-W&amp;&amp;J-X&amp;&amp;ct([W||Z,X||J]),K=t,Z=W,J=X}else K&amp;&amp;ut($(K,t)[0]),U[V++]=t;var n,i,a,o}for(&quot;linear&quot;===D||&quot;spline&quot;===D?$=function(t,e){for(var r=[],n=0,i=0;i&lt;4;i++){var a=at[i],o=c(t[0],t[1],e[0],e[1],a[0],a[1],a[2],a[3]);o&amp;&amp;(!n||Math.abs(o.x-r[0][0])&gt;1||Math.abs(o.y-r[0][1])&gt;1)&amp;&amp;(o=[o.x,o.y],n&amp;&amp;Y(o,t)&lt;Y(r[0],t)?r.unshift(o):r.push(o),n++)}return r}:&quot;hv&quot;===D||&quot;vh&quot;===D?$=function(t,e){var r=[],n=ot(t),i=ot(e);return n&amp;&amp;i&amp;&amp;st(n,i)||(n&amp;&amp;r.push(n),i&amp;&amp;r.push(i)),r}:&quot;hvh&quot;===D?$=lt(0,et,rt):&quot;vhv&quot;===D&amp;&amp;($=lt(1,nt,it)),r=0;r&lt;j;r++)if(n=q(r)){for(V=0,K=null,ft(n),r++;r&lt;j;r++){if(!(h=q(r))){if(z)continue;break}if(R&amp;&amp;e.simplify){var ht=q(r+1);if(y=Y(h,n),F&amp;&amp;(0===V||V===j-1)||!(y&lt;G(h,ht)*N)){for(m=[(h[0]-n[0])/y,(h[1]-n[1])/y],p=n,x=y,b=w=T=0,g=!1,a=h,r++;r&lt;t.length;r++){if(d=ht,ht=q(r+1),!d){if(z)continue;break}if(k=(v=[d[0]-n[0],d[1]-n[1]])[0]*m[1]-v[1]*m[0],w=Math.min(w,k),(T=Math.max(T,k))-w&gt;G(d,ht))break;a=d,(_=v[0]*m[0]+v[1]*m[1])&gt;x?(x=_,h=d,g=!1):_&lt;b&amp;&amp;(b=_,p=d,g=!0)}if(g?(ft(h),a!==p&amp;&amp;ft(p)):(p!==n&amp;&amp;ft(p),a!==h&amp;&amp;ft(h)),ft(a),r&gt;=t.length||!d)break;ft(d),n=d}}else ft(h)}K&amp;&amp;ct([Z||K[0],J||K[1]]),B.push(U.slice(0,V))}return B}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./constants&quot;:1191}],1202:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){&quot;spline&quot;===r(&quot;line.shape&quot;)&amp;&amp;r(&quot;line.smoothing&quot;)}},{}],1203:[function(t,e,r){&quot;use strict&quot;;var n={tonextx:1,tonexty:1,tonext:1};e.exports=function(t,e,r){var i,a,o,s,l,c={},u=!1,f=-1,h=0,p=-1;for(a=0;a&lt;r.length;a++)(o=(i=r[a][0].trace).stackgroup||&quot;&quot;)?o in c?l=c[o]:(l=c[o]=h,h++):i.fill in n&amp;&amp;p&gt;=0?l=p:(l=p=h,h++),l&lt;f&amp;&amp;(u=!0),i._groupIndex=f=l;var d=r.slice();u&amp;&amp;d.sort((function(t,e){var r=t[0].trace,n=e[0].trace;return r._groupIndex-n._groupIndex||r.index-n.index}));var g={};for(a=0;a&lt;d.length;a++)o=(i=d[a][0].trace).stackgroup||&quot;&quot;,!0===i.visible?(i._nexttrace=null,i.fill in n&amp;&amp;(s=g[o],i._prevtrace=s||null,s&amp;&amp;(s._nexttrace=i)),i._ownfill=i.fill&amp;&amp;(&quot;tozero&quot;===i.fill.substr(0,6)||&quot;toself&quot;===i.fill||&quot;to&quot;===i.fill.substr(0,2)&amp;&amp;!i._prevtrace),g[o]=i):i._prevtrace=i._nexttrace=i._ownfill=null;return d}},{}],1204:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports=function(t){var e=t.marker,r=e.sizeref||1,i=e.sizemin||0,a=&quot;area&quot;===e.sizemode?function(t){return Math.sqrt(t/r)}:function(t){return t/r};return function(t){var e=a(t/2);return n(e)&amp;&amp;e&gt;0?Math.max(e,i):0}}},{&quot;fast-isnumeric&quot;:241}],1205:[function(t,e,r){&quot;use strict&quot;;e.exports={container:&quot;marker&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;}},{}],1206:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./subtypes&quot;);e.exports=function(t,e,r,s,l,c){var u=o.isBubble(t),f=(t.line||{}).color;(c=c||{},f&amp;&amp;(r=f),l(&quot;marker.symbol&quot;),l(&quot;marker.opacity&quot;,u?.7:1),l(&quot;marker.size&quot;),l(&quot;marker.color&quot;,r),i(t,&quot;marker&quot;)&amp;&amp;a(t,e,s,l,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),c.noSelect||(l(&quot;selected.marker.color&quot;),l(&quot;unselected.marker.color&quot;),l(&quot;selected.marker.size&quot;),l(&quot;unselected.marker.size&quot;)),c.noLine||(l(&quot;marker.line.color&quot;,f&amp;&amp;!Array.isArray(f)&amp;&amp;e.marker.color!==f?f:u?n.background:n.defaultLine),i(t,&quot;marker.line&quot;)&amp;&amp;a(t,e,s,l,{prefix:&quot;marker.line.&quot;,cLetter:&quot;c&quot;}),l(&quot;marker.line.width&quot;,u?1:0)),u&amp;&amp;(l(&quot;marker.sizeref&quot;),l(&quot;marker.sizemin&quot;),l(&quot;marker.sizemode&quot;)),c.gradient)&amp;&amp;(&quot;none&quot;!==l(&quot;marker.gradient.type&quot;)&amp;&amp;l(&quot;marker.gradient.color&quot;))}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;./subtypes&quot;:1212}],1207:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).dateTick0,i=t(&quot;../../constants/numerical&quot;).ONEWEEK;function a(t,e){return n(e,t%i==0?1:0)}e.exports=function(t,e,r,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n(&quot;xperiod&quot;);o&amp;&amp;(n(&quot;xperiod0&quot;,a(o,e.xcalendar)),n(&quot;xperiodalignment&quot;))}if(i.y){var s=n(&quot;yperiod&quot;);s&amp;&amp;(n(&quot;yperiod0&quot;,a(s,e.ycalendar)),n(&quot;yperiodalignment&quot;))}}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778}],1208:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.ensureSingle,s=a.identity,l=t(&quot;../../components/drawing&quot;),c=t(&quot;./subtypes&quot;),u=t(&quot;./line_points&quot;),f=t(&quot;./link_traces&quot;),h=t(&quot;../../lib/polygon&quot;).tester;function p(t,e,r,f,p,d,g){var m;!function(t,e,r,i,o){var s=r.xaxis,l=r.yaxis,u=n.extent(a.simpleMap(s.range,s.r2c)),f=n.extent(a.simpleMap(l.range,l.r2c)),h=i[0].trace;if(!c.hasMarkers(h))return;var p=h.marker.maxdisplayed;if(0===p)return;var d=i.filter((function(t){return t.x&gt;=u[0]&amp;&amp;t.x&lt;=u[1]&amp;&amp;t.y&gt;=f[0]&amp;&amp;t.y&lt;=f[1]})),g=Math.ceil(d.length/p),m=0;o.forEach((function(t,r){var n=t[0].trace;c.hasMarkers(n)&amp;&amp;n.marker.maxdisplayed&gt;0&amp;&amp;r&lt;e&amp;&amp;m++}));var v=Math.round(m*g/3+Math.floor(m/3)*g/7.1);i.forEach((function(t){delete t.vis})),d.forEach((function(t,e){0===Math.round((e+v)%g)&amp;&amp;(t.vis=!0)}))}(0,e,r,f,p);var v=!!g&amp;&amp;g.duration&gt;0;function y(t){return v?t.transition():t}var x=r.xaxis,b=r.yaxis,_=f[0].trace,w=_.line,T=n.select(d),k=o(T,&quot;g&quot;,&quot;errorbars&quot;),M=o(T,&quot;g&quot;,&quot;lines&quot;),A=o(T,&quot;g&quot;,&quot;points&quot;),S=o(T,&quot;g&quot;,&quot;text&quot;);if(i.getComponentMethod(&quot;errorbars&quot;,&quot;plot&quot;)(t,k,r,g),!0===_.visible){var E,C;y(T).style(&quot;opacity&quot;,_.opacity);var L=_.fill.charAt(_.fill.length-1);&quot;x&quot;!==L&amp;&amp;&quot;y&quot;!==L&amp;&amp;(L=&quot;&quot;),f[0][r.isRangePlot?&quot;nodeRangePlot3&quot;:&quot;node3&quot;]=T;var I,P,z=&quot;&quot;,O=[],D=_._prevtrace;D&amp;&amp;(z=D._prevRevpath||&quot;&quot;,C=D._nextFill,O=D._polygons);var R,F,B,N,j,U,V,q=&quot;&quot;,H=&quot;&quot;,G=[],Y=a.noop;if(E=_._ownFill,c.hasLines(_)||&quot;none&quot;!==_.fill){for(C&amp;&amp;C.datum(f),-1!==[&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;].indexOf(w.shape)?(R=l.steps(w.shape),F=l.steps(w.shape.split(&quot;&quot;).reverse().join(&quot;&quot;))):R=F=&quot;spline&quot;===w.shape?function(t){var e=t[t.length-1];return t.length&gt;1&amp;&amp;t[0][0]===e[0]&amp;&amp;t[0][1]===e[1]?l.smoothclosed(t.slice(1),w.smoothing):l.smoothopen(t,w.smoothing)}:function(t){return&quot;M&quot;+t.join(&quot;L&quot;)},B=function(t){return F(t.reverse())},G=u(f,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify,fill:_.fill}),V=_._polygons=new Array(G.length),m=0;m&lt;G.length;m++)_._polygons[m]=h(G[m]);G.length&amp;&amp;(N=G[0][0],U=(j=G[G.length-1])[j.length-1]),Y=function(t){return function(e){if(I=R(e),P=B(e),q?L?(q+=&quot;L&quot;+I.substr(1),H=P+&quot;L&quot;+H.substr(1)):(q+=&quot;Z&quot;+I,H=P+&quot;Z&quot;+H):(q=I,H=P),c.hasLines(_)&amp;&amp;e.length&gt;1){var r=n.select(this);if(r.datum(f),t)y(r.style(&quot;opacity&quot;,0).attr(&quot;d&quot;,I).call(l.lineGroupStyle)).style(&quot;opacity&quot;,1);else{var i=y(r);i.attr(&quot;d&quot;,I),l.singleLineStyle(f,i)}}}}}var W=M.selectAll(&quot;.js-line&quot;).data(G);y(W.exit()).style(&quot;opacity&quot;,0).remove(),W.each(Y(!1)),W.enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).call(l.lineGroupStyle).each(Y(!0)),l.setClipUrl(W,r.layerClipId,t),G.length?(E?(E.datum(f),N&amp;&amp;U&amp;&amp;(L?(&quot;y&quot;===L?N[1]=U[1]=b.c2p(0,!0):&quot;x&quot;===L&amp;&amp;(N[0]=U[0]=x.c2p(0,!0)),y(E).attr(&quot;d&quot;,&quot;M&quot;+U+&quot;L&quot;+N+&quot;L&quot;+q.substr(1)).call(l.singleFillStyle)):y(E).attr(&quot;d&quot;,q+&quot;Z&quot;).call(l.singleFillStyle))):C&amp;&amp;(&quot;tonext&quot;===_.fill.substr(0,6)&amp;&amp;q&amp;&amp;z?(&quot;tonext&quot;===_.fill?y(C).attr(&quot;d&quot;,q+&quot;Z&quot;+z+&quot;Z&quot;).call(l.singleFillStyle):y(C).attr(&quot;d&quot;,q+&quot;L&quot;+z.substr(1)+&quot;Z&quot;).call(l.singleFillStyle),_._polygons=_._polygons.concat(O)):(Z(C),_._polygons=null)),_._prevRevpath=H,_._prevPolygons=V):(E?Z(E):C&amp;&amp;Z(C),_._polygons=_._prevRevpath=_._prevPolygons=null),A.datum(f),S.datum(f),function(e,i,a){var o,u=a[0].trace,f=c.hasMarkers(u),h=c.hasText(u),p=tt(u),d=et,g=et;if(f||h){var m=s,_=u.stackgroup,w=_&amp;&amp;&quot;infer zero&quot;===t._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;u.marker.maxdisplayed||u._needsCull?m=w?K:J:_&amp;&amp;!w&amp;&amp;(m=Q),f&amp;&amp;(d=m),h&amp;&amp;(g=m)}var T,k=(o=e.selectAll(&quot;path.point&quot;).data(d,p)).enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0);v&amp;&amp;k.call(l.pointStyle,u,t).call(l.translatePoints,x,b).style(&quot;opacity&quot;,0).transition().style(&quot;opacity&quot;,1),o.order(),f&amp;&amp;(T=l.makePointStyleFns(u)),o.each((function(e){var i=n.select(this),a=y(i);l.translatePoint(e,a,x,b)?(l.singlePointStyle(e,a,u,T,t),r.layerClipId&amp;&amp;l.hideOutsideRangePoint(e,a,x,b,u.xcalendar,u.ycalendar),u.customdata&amp;&amp;i.classed(&quot;plotly-customdata&quot;,null!==e.data&amp;&amp;void 0!==e.data)):a.remove()})),v?o.exit().transition().style(&quot;opacity&quot;,0).remove():o.exit().remove(),(o=i.selectAll(&quot;g&quot;).data(g,p)).enter().append(&quot;g&quot;).classed(&quot;textpoint&quot;,!0).append(&quot;text&quot;),o.order(),o.each((function(t){var e=n.select(this),i=y(e.select(&quot;text&quot;));l.translatePoint(t,i,x,b)?r.layerClipId&amp;&amp;l.hideOutsideRangePoint(t,e,x,b,u.xcalendar,u.ycalendar):e.remove()})),o.selectAll(&quot;text&quot;).call(l.textPointStyle,u,t).each((function(t){var e=x.c2p(t.x),r=b.c2p(t.y);n.select(this).selectAll(&quot;tspan.line&quot;).each((function(){y(n.select(this)).attr({x:e,y:r})}))})),o.exit().remove()}(A,S,f);var X=!1===_.cliponaxis?null:r.layerClipId;l.setClipUrl(A,X,t),l.setClipUrl(S,X,t)}function Z(t){y(t).attr(&quot;d&quot;,&quot;M0,0Z&quot;)}function J(t){return t.filter((function(t){return!t.gap&amp;&amp;t.vis}))}function K(t){return t.filter((function(t){return t.vis}))}function Q(t){return t.filter((function(t){return!t.gap}))}function $(t){return t.id}function tt(t){if(t.ids)return $}function et(){return!1}}e.exports=function(t,e,r,i,a,c){var u,h,d=!a,g=!!a&amp;&amp;a.duration&gt;0,m=f(t,e,r);((u=i.selectAll(&quot;g.trace&quot;).data(m,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;trace scatter trace&quot;+t[0].trace.uid})).style(&quot;stroke-miterlimit&quot;,2),u.order(),function(t,e,r){e.each((function(e){var i=o(n.select(this),&quot;g&quot;,&quot;fills&quot;);l.setClipUrl(i,r.layerClipId,t);var a=e[0].trace,c=[];a._ownfill&amp;&amp;c.push(&quot;_ownFill&quot;),a._nexttrace&amp;&amp;c.push(&quot;_nextFill&quot;);var u=i.selectAll(&quot;g&quot;).data(c,s);u.enter().append(&quot;g&quot;),u.exit().each((function(t){a[t]=null})).remove(),u.order().each((function(t){a[t]=o(n.select(this),&quot;path&quot;,&quot;js-fill&quot;)}))}))}(t,u,e),g)?(c&amp;&amp;(h=c()),n.transition().duration(a.duration).ease(a.easing).each(&quot;end&quot;,(function(){h&amp;&amp;h()})).each(&quot;interrupt&quot;,(function(){h&amp;&amp;h()})).each((function(){i.selectAll(&quot;g.trace&quot;).each((function(r,n){p(t,n,e,r,m,this,a)}))}))):u.each((function(r,n){p(t,n,e,r,m,this,a)}));d&amp;&amp;u.exit().remove(),i.selectAll(&quot;path:not([d])&quot;).remove()}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/polygon&quot;:790,&quot;../../registry&quot;:911,&quot;./line_points&quot;:1201,&quot;./link_traces&quot;:1203,&quot;./subtypes&quot;:1212,d3:169}],1209:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./subtypes&quot;);e.exports=function(t,e){var r,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[],f=s[0].trace;if(!n.hasMarkers(f)&amp;&amp;!n.hasText(f))return[];if(!1===e)for(r=0;r&lt;s.length;r++)s[r].selected=0;else for(r=0;r&lt;s.length;r++)i=s[r],a=l.c2p(i.x),o=c.c2p(i.y),null!==i.i&amp;&amp;e.contains([a,o],!1,r,t)?(u.push({pointNumber:i.i,x:l.c2d(i.x),y:c.c2d(i.y)}),i.selected=1):i.selected=0;return u}},{&quot;./subtypes&quot;:1212}],1210:[function(t,e,r){&quot;use strict&quot;;var n=[&quot;orientation&quot;,&quot;groupnorm&quot;,&quot;stackgaps&quot;];e.exports=function(t,e,r,i){var a=r._scatterStackOpts,o=i(&quot;stackgroup&quot;);if(o){var s=e.xaxis+e.yaxis,l=a[s];l||(l=a[s]={});var c=l[o],u=!1;c?c.traces.push(e):(c=l[o]={traceIndices:[],traces:[e]},u=!0);for(var f={orientation:e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;},h=0;h&lt;n.length;h++){var p=n[h],d=p+&quot;Found&quot;;if(!c[d]){var g=void 0!==t[p],m=&quot;orientation&quot;===p;if((g||u)&amp;&amp;(c[p]=i(p,f[p]),m&amp;&amp;(c.fillDflt=&quot;h&quot;===c[p]?&quot;tonextx&quot;:&quot;tonexty&quot;),g&amp;&amp;(c[d]=!0,!u&amp;&amp;(delete c.traces[0][p],m))))for(var v=0;v&lt;c.traces.length-1;v++){var y=c.traces[v];y._input.fill!==y.fill&amp;&amp;(y.fill=c.fillDflt)}}}return c}}},{}],1211:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../registry&quot;);function o(t,e,r){i.pointStyle(t.selectAll(&quot;path.point&quot;),e,r)}function s(t,e,r){i.textPointStyle(t.selectAll(&quot;text&quot;),e,r)}e.exports={style:function(t){var e=n.select(t).selectAll(&quot;g.trace.scatter&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.selectAll(&quot;g.points&quot;).each((function(e){o(n.select(this),e.trace||e[0].trace,t)})),e.selectAll(&quot;g.text&quot;).each((function(e){s(n.select(this),e.trace||e[0].trace,t)})),e.selectAll(&quot;g.trace path.js-line&quot;).call(i.lineGroupStyle),e.selectAll(&quot;g.trace path.js-fill&quot;).call(i.fillGroupStyle),a.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(e)},stylePoints:o,styleText:s,styleOnSelect:function(t,e,r){var n=e[0].trace;n.selectedpoints?(i.selectedPointStyle(r.selectAll(&quot;path.point&quot;),n),i.selectedTextStyle(r.selectAll(&quot;text&quot;),n)):(o(r,n,t),s(r,n,t))}}},{&quot;../../components/drawing&quot;:665,&quot;../../registry&quot;:911,d3:169}],1212:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports={hasLines:function(t){return t.visible&amp;&amp;t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;lines&quot;)},hasMarkers:function(t){return t.visible&amp;&amp;(t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;markers&quot;)||&quot;splom&quot;===t.type)},hasText:function(t){return t.visible&amp;&amp;t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;text&quot;)},isBubble:function(t){return n.isPlainObject(t.marker)&amp;&amp;n.isArrayOrTypedArray(t.marker.size)}}},{&quot;../../lib&quot;:778}],1213:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r,i,a){a=a||{},i(&quot;textposition&quot;),n.coerceFont(i,&quot;textfont&quot;,r.font),a.noSelect||(i(&quot;selected.textfont.color&quot;),i(&quot;unselected.textfont.color&quot;))}},{&quot;../../lib&quot;:778}],1214:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;);e.exports=function(t,e,r,a){var o,s=a(&quot;x&quot;),l=a(&quot;y&quot;);if(i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],r),s){var c=n.minRowLength(s);l?o=Math.min(c,n.minRowLength(l)):(o=c,a(&quot;y0&quot;),a(&quot;dy&quot;))}else{if(!l)return 0;o=n.minRowLength(l),a(&quot;x0&quot;),a(&quot;dx&quot;)}return e._length=o,o}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1215:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../constants/gl3d_dashes&quot;),c=t(&quot;../../constants/gl3d_markers&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat,f=t(&quot;../../plot_api/edit_types&quot;).overrideAll,h=n.line,p=n.marker,d=p.line,g=u({width:h.width,dash:{valType:&quot;enumerated&quot;,values:Object.keys(l),dflt:&quot;solid&quot;}},i(&quot;line&quot;));var m=e.exports=f({x:n.x,y:n.y,z:{valType:&quot;data_array&quot;},text:u({},n.text,{}),texttemplate:o({},{}),hovertext:u({},n.hovertext,{}),hovertemplate:a(),mode:u({},n.mode,{dflt:&quot;lines+markers&quot;}),surfaceaxis:{valType:&quot;enumerated&quot;,values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:&quot;color&quot;},projection:{x:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}},y:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}},z:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}}},connectgaps:n.connectgaps,line:g,marker:u({symbol:{valType:&quot;enumerated&quot;,values:Object.keys(c),dflt:&quot;circle&quot;,arrayOk:!0},size:u({},p.size,{dflt:8}),sizeref:p.sizeref,sizemin:p.sizemin,sizemode:p.sizemode,opacity:u({},p.opacity,{arrayOk:!1}),colorbar:p.colorbar,line:u({width:u({},d.width,{arrayOk:!1})},i(&quot;marker.line&quot;))},i(&quot;marker&quot;)),textposition:u({},n.textposition,{dflt:&quot;top center&quot;}),textfont:{color:n.textfont.color,size:n.textfont.size,family:u({},n.textfont.family,{arrayOk:!1})},hoverinfo:u({},s.hoverinfo)},&quot;calc&quot;,&quot;nested&quot;);m.x.editType=m.y.editType=m.z.editType=&quot;calc+clearAxisTypes&quot;},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../constants/gl3d_dashes&quot;:750,&quot;../../constants/gl3d_markers&quot;:751,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1216:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/arrays_to_calcdata&quot;),i=t(&quot;../scatter/colorscale_calc&quot;);e.exports=function(t,e){var r=[{x:!1,y:!1,trace:e,t:{}}];return n(r,e),i(t,e),r}},{&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/colorscale_calc&quot;:1190}],1217:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;);function i(t,e,r,i){if(!e||!e.visible)return null;for(var a=n.getComponentMethod(&quot;errorbars&quot;,&quot;makeComputeError&quot;)(e),o=new Array(t.length),s=0;s&lt;t.length;s++){var l=a(+t[s],s);if(&quot;log&quot;===i.type){var c=i.c2l(t[s]),u=t[s]-l[0],f=t[s]+l[1];if(o[s]=[(i.c2l(u,!0)-c)*r,(i.c2l(f,!0)-c)*r],u&gt;0){var h=i.c2l(u);i._lowerLogErrorBound||(i._lowerLogErrorBound=h),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,h)}}else o[s]=[-l[0]*r,l[1]*r]}return o}e.exports=function(t,e,r){var n=[i(t.x,t.error_x,e[0],r.xaxis),i(t.y,t.error_y,e[1],r.yaxis),i(t.z,t.error_z,e[2],r.zaxis)],a=function(t){for(var e=0;e&lt;t.length;e++)if(t[e])return t[e].length;return 0}(n);if(0===a)return null;for(var o=new Array(a),s=0;s&lt;a;s++){for(var l=[[0,0,0],[0,0,0]],c=0;c&lt;3;c++)if(n[c])for(var u=0;u&lt;2;u++)l[u][c]=n[c][s][u];o[s]=l}return o}},{&quot;../../registry&quot;:911}],1218:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-line3d&quot;),i=t(&quot;gl-scatter3d&quot;),a=t(&quot;gl-error3d&quot;),o=t(&quot;gl-mesh3d&quot;),s=t(&quot;delaunay-triangulate&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;../../lib/str2rgbarray&quot;),u=t(&quot;../../lib/gl_format_color&quot;).formatColor,f=t(&quot;../scatter/make_bubble_size_func&quot;),h=t(&quot;../../constants/gl3d_dashes&quot;),p=t(&quot;../../constants/gl3d_markers&quot;),d=t(&quot;../../plots/cartesian/axes&quot;),g=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,m=t(&quot;./calc_errors&quot;);function v(t,e){this.scene=t,this.uid=e,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode=&quot;&quot;,this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var y=v.prototype;function x(t){return null==t?0:t.indexOf(&quot;left&quot;)&gt;-1?-1:t.indexOf(&quot;right&quot;)&gt;-1?1:0}function b(t){return null==t?0:t.indexOf(&quot;top&quot;)&gt;-1?-1:t.indexOf(&quot;bottom&quot;)&gt;-1?1:0}function _(t,e){return e(4*t)}function w(t){return p[t]}function T(t,e,r,n,i){var a=null;if(l.isArrayOrTypedArray(t)){a=[];for(var o=0;o&lt;e;o++)void 0===t[o]?a[o]=n:a[o]=r(t[o],i)}else a=r(t,l.identity);return a}function k(t,e){var r,n,i,a,o,s,h=[],p=t.fullSceneLayout,v=t.dataScale,y=p.xaxis,k=p.yaxis,M=p.zaxis,A=e.marker,S=e.line,E=e.x||[],C=e.y||[],L=e.z||[],I=E.length,P=e.xcalendar,z=e.ycalendar,O=e.zcalendar;for(o=0;o&lt;I;o++)r=y.d2l(E[o],0,P)*v[0],n=k.d2l(C[o],0,z)*v[1],i=M.d2l(L[o],0,O)*v[2],h[o]=[r,n,i];if(Array.isArray(e.text))s=e.text;else if(void 0!==e.text)for(s=new Array(I),o=0;o&lt;I;o++)s[o]=e.text;function D(t,e){var r=p[t];return d.tickText(r,r.d2l(e),!0).text}var R=e.texttemplate;if(R){var F=t.fullLayout._d3locale,B=Array.isArray(R),N=B?Math.min(R.length,I):I,j=B?function(t){return R[t]}:function(){return R};for(s=new Array(N),o=0;o&lt;N;o++){var U={x:E[o],y:C[o],z:L[o]},V={xLabel:D(&quot;xaxis&quot;,E[o]),yLabel:D(&quot;yaxis&quot;,C[o]),zLabel:D(&quot;zaxis&quot;,L[o])},q={};g(q,e,o);var H=e._meta||{};s[o]=l.texttemplateString(j(o),V,F,q,U,H)}}if(a={position:h,mode:e.mode,text:s},&quot;line&quot;in e&amp;&amp;(a.lineColor=u(S,1,I),a.lineWidth=S.width,a.lineDashes=S.dash),&quot;marker&quot;in e){var G=f(e);a.scatterColor=u(A,1,I),a.scatterSize=T(A.size,I,_,20,G),a.scatterMarker=T(A.symbol,I,w,&quot;\u25cf&quot;),a.scatterLineWidth=A.line.width,a.scatterLineColor=u(A.line,1,I),a.scatterAngle=0}&quot;textposition&quot;in e&amp;&amp;(a.textOffset=function(t){var e=[0,0];if(Array.isArray(t))for(var r=0;r&lt;t.length;r++)e[r]=[0,0],t[r]&amp;&amp;(e[r][0]=x(t[r]),e[r][1]=b(t[r]));else e[0]=x(t),e[1]=b(t);return e}(e.textposition),a.textColor=u(e.textfont,1,I),a.textSize=T(e.textfont.size,I,l.identity,12),a.textFont=e.textfont.family,a.textAngle=0);var Y=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(a.project=[!1,!1,!1],a.projectScale=[1,1,1],a.projectOpacity=[1,1,1],o=0;o&lt;3;++o){var W=e.projection[Y[o]];(a.project[o]=W.show)&amp;&amp;(a.projectOpacity[o]=W.opacity,a.projectScale[o]=W.scale)}a.errorBounds=m(e,v,p);var X=function(t){for(var e=[0,0,0],r=[[0,0,0],[0,0,0],[0,0,0]],n=[1,1,1],i=0;i&lt;3;i++){var a=t[i];a&amp;&amp;!1!==a.copy_zstyle&amp;&amp;!1!==t[2].visible&amp;&amp;(a=t[2]),a&amp;&amp;a.visible&amp;&amp;(e[i]=a.width/2,r[i]=c(a.color),n[i]=a.thickness)}return{capSize:e,color:r,lineWidth:n}}([e.error_x,e.error_y,e.error_z]);return a.errorColor=X.color,a.errorLineWidth=X.lineWidth,a.errorCapSize=X.capSize,a.delaunayAxis=e.surfaceaxis,a.delaunayColor=c(e.surfacecolor),a}function M(t){if(l.isArrayOrTypedArray(t)){var e=t[0];return l.isArrayOrTypedArray(e)&amp;&amp;(t=e),&quot;rgb(&quot;+t.slice(0,3).map((function(t){return Math.round(255*t)}))+&quot;)&quot;}return null}function A(t){return l.isArrayOrTypedArray(t)?4===t.length&amp;&amp;&quot;number&quot;==typeof t[0]?M(t):t.map(M):null}y.handlePick=function(t){if(t.object&amp;&amp;(t.object===this.linePlot||t.object===this.delaunayMesh||t.object===this.textMarkers||t.object===this.scatterPlot)){var e=t.index=t.data.index;return t.object.highlight&amp;&amp;t.object.highlight(null),this.scatterPlot&amp;&amp;(t.object=this.scatterPlot,this.scatterPlot.highlight(t.data)),t.textLabel=&quot;&quot;,this.textLabels&amp;&amp;(Array.isArray(this.textLabels)?(this.textLabels[e]||0===this.textLabels[e])&amp;&amp;(t.textLabel=this.textLabels[e]):t.textLabel=this.textLabels),t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]],!0}},y.update=function(t){var e,r,l,c,u=this.scene.glplot.gl,f=h.solid;this.data=t;var p=k(this.scene,t);&quot;mode&quot;in p&amp;&amp;(this.mode=p.mode),&quot;lineDashes&quot;in p&amp;&amp;p.lineDashes in h&amp;&amp;(f=h[p.lineDashes]),this.color=A(p.scatterColor)||A(p.lineColor),this.dataPoints=p.position,e={gl:this.scene.glplot.gl,position:p.position,color:p.lineColor,lineWidth:p.lineWidth||1,dashes:f[0],dashScale:f[1],opacity:t.opacity,connectGaps:t.connectgaps},-1!==this.mode.indexOf(&quot;lines&quot;)?this.linePlot?this.linePlot.update(e):(this.linePlot=n(e),this.linePlot._trace=this,this.scene.glplot.add(this.linePlot)):this.linePlot&amp;&amp;(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose(),this.linePlot=null);var d=t.opacity;if(t.marker&amp;&amp;t.marker.opacity&amp;&amp;(d*=t.marker.opacity),r={gl:this.scene.glplot.gl,position:p.position,color:p.scatterColor,size:p.scatterSize,glyph:p.scatterMarker,opacity:d,orthographic:!0,lineWidth:p.scatterLineWidth,lineColor:p.scatterLineColor,project:p.project,projectScale:p.projectScale,projectOpacity:p.projectOpacity},-1!==this.mode.indexOf(&quot;markers&quot;)?this.scatterPlot?this.scatterPlot.update(r):(this.scatterPlot=i(r),this.scatterPlot._trace=this,this.scatterPlot.highlightScale=1,this.scene.glplot.add(this.scatterPlot)):this.scatterPlot&amp;&amp;(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose(),this.scatterPlot=null),c={gl:this.scene.glplot.gl,position:p.position,glyph:p.text,color:p.textColor,size:p.textSize,angle:p.textAngle,alignment:p.textOffset,font:p.textFont,orthographic:!0,lineWidth:0,project:!1,opacity:t.opacity},this.textLabels=t.hovertext||t.text,-1!==this.mode.indexOf(&quot;text&quot;)?this.textMarkers?this.textMarkers.update(c):(this.textMarkers=i(c),this.textMarkers._trace=this,this.textMarkers.highlightScale=1,this.scene.glplot.add(this.textMarkers)):this.textMarkers&amp;&amp;(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose(),this.textMarkers=null),l={gl:this.scene.glplot.gl,position:p.position,color:p.errorColor,error:p.errorBounds,lineWidth:p.errorLineWidth,capSize:p.errorCapSize,opacity:t.opacity},this.errorBars?p.errorBounds?this.errorBars.update(l):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):p.errorBounds&amp;&amp;(this.errorBars=a(l),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),p.delaunayAxis&gt;=0){var g=function(t,e,r){var n,i=(r+1)%3,a=(r+2)%3,o=[],l=[];for(n=0;n&lt;t.length;++n){var c=t[n];!isNaN(c[i])&amp;&amp;isFinite(c[i])&amp;&amp;!isNaN(c[a])&amp;&amp;isFinite(c[a])&amp;&amp;(o.push([c[i],c[a]]),l.push(n))}var u=s(o);for(n=0;n&lt;u.length;++n)for(var f=u[n],h=0;h&lt;f.length;++h)f[h]=l[f[h]];return{positions:t,cells:u,meshColor:e}}(p.position,p.delaunayColor,p.delaunayAxis);g.opacity=t.opacity,this.delaunayMesh?this.delaunayMesh.update(g):(g.gl=u,this.delaunayMesh=o(g),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&amp;&amp;(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},y.dispose=function(){this.linePlot&amp;&amp;(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&amp;&amp;(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&amp;&amp;(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&amp;&amp;(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&amp;&amp;(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())},e.exports=function(t,e){var r=new v(t,e.uid);return r.update(e),r}},{&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/gl3d_dashes&quot;:750,&quot;../../constants/gl3d_markers&quot;:751,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/make_bubble_size_func&quot;:1204,&quot;./calc_errors&quot;:1217,&quot;delaunay-triangulate&quot;:171,&quot;gl-error3d&quot;:266,&quot;gl-line3d&quot;:275,&quot;gl-mesh3d&quot;:309,&quot;gl-scatter3d&quot;:330}],1219:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,n){return i.coerce(t,e,c,r,n)}if(function(t,e,r,i){var a=0,o=r(&quot;x&quot;),s=r(&quot;y&quot;),l=r(&quot;z&quot;);n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],i),o&amp;&amp;s&amp;&amp;l&amp;&amp;(a=Math.min(o.length,s.length,l.length),e._length=e._xlength=e._ylength=e._zlength=a);return a}(t,e,f,u)){f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),a.hasLines(e)&amp;&amp;(f(&quot;connectgaps&quot;),s(t,e,r,u,f)),a.hasMarkers(e)&amp;&amp;o(t,e,r,u,f,{noSelect:!0}),a.hasText(e)&amp;&amp;(f(&quot;texttemplate&quot;),l(t,e,u,f,{noSelect:!0}));var h=(e.line||{}).color,p=(e.marker||{}).color;f(&quot;surfaceaxis&quot;)&gt;=0&amp;&amp;f(&quot;surfacecolor&quot;,h||p);for(var d=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],g=0;g&lt;3;++g){var m=&quot;projection.&quot;+d[g];f(m+&quot;.show&quot;)&amp;&amp;(f(m+&quot;.opacity&quot;),f(m+&quot;.scale&quot;))}var v=n.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);v(t,e,h||p||r,{axis:&quot;z&quot;}),v(t,e,h||p||r,{axis:&quot;y&quot;,inherit:&quot;z&quot;}),v(t,e,h||p||r,{axis:&quot;x&quot;,inherit:&quot;z&quot;})}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1215}],1220:[function(t,e,r){&quot;use strict&quot;;e.exports={plot:t(&quot;./convert&quot;),attributes:t(&quot;./attributes&quot;),markerSymbols:t(&quot;../../constants/gl3d_markers&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:[{container:&quot;marker&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;}],calc:t(&quot;./calc&quot;),moduleType:&quot;trace&quot;,name:&quot;scatter3d&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../constants/gl3d_markers&quot;:751,&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1215,&quot;./calc&quot;:1216,&quot;./convert&quot;:1218,&quot;./defaults&quot;:1219}],1221:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=n.marker,u=n.line,f=c.line;e.exports={carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},mode:l({},n.mode,{dflt:&quot;markers&quot;}),text:l({},n.text,{}),texttemplate:o({editType:&quot;plot&quot;},{keys:[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;]}),hovertext:l({},n.hovertext,{}),line:{color:u.color,width:u.width,dash:u.dash,shape:l({},u.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:u.smoothing,editType:&quot;calc&quot;},connectgaps:n.connectgaps,fill:l({},n.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:n.fillcolor,marker:l({symbol:c.symbol,opacity:c.opacity,maxdisplayed:c.maxdisplayed,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,line:l({width:f.width,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),gradient:c.gradient,editType:&quot;calc&quot;},s(&quot;marker&quot;)),textfont:n.textfont,textposition:n.textposition,selected:n.selected,unselected:n.unselected,hoverinfo:l({},i.hoverinfo,{flags:[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:n.hoveron,hovertemplate:a()}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1222:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scatter/arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../scatter/calc&quot;).calcMarkerSize,l=t(&quot;../carpet/lookup_carpetid&quot;);e.exports=function(t,e){var r=e._carpetTrace=l(t,e);if(r&amp;&amp;r.visible&amp;&amp;&quot;legendonly&quot;!==r.visible){var c;e.xaxis=r.xaxis,e.yaxis=r.yaxis;var u,f,h=e._length,p=new Array(h),d=!1;for(c=0;c&lt;h;c++)if(u=e.a[c],f=e.b[c],n(u)&amp;&amp;n(f)){var g=r.ab2xy(+u,+f,!0),m=r.isVisible(+u,+f);m||(d=!0),p[c]={x:g[0],y:g[1],a:u,b:f,vis:m}}else p[c]={x:!1,y:!1};return e._needsCull=d,p[0].carpet=r,p[0].trace=e,s(e,h),i(t,e),a(p,e),o(p,e),p}}},{&quot;../carpet/lookup_carpetid&quot;:981,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc&quot;:1188,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1223:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/constants&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/line_shape_defaults&quot;),c=t(&quot;../scatter/text_defaults&quot;),u=t(&quot;../scatter/fillcolor_defaults&quot;),f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}p(&quot;carpet&quot;),e.xaxis=&quot;x&quot;,e.yaxis=&quot;y&quot;;var d=p(&quot;a&quot;),g=p(&quot;b&quot;),m=Math.min(d.length,g.length);if(m){e._length=m,p(&quot;text&quot;),p(&quot;texttemplate&quot;),p(&quot;hovertext&quot;),p(&quot;mode&quot;,m&lt;i.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;),a.hasLines(e)&amp;&amp;(s(t,e,r,h,p),l(t,e,p),p(&quot;connectgaps&quot;)),a.hasMarkers(e)&amp;&amp;o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&amp;&amp;c(t,e,h,p);var v=[];(a.hasMarkers(e)||a.hasText(e))&amp;&amp;(p(&quot;marker.maxdisplayed&quot;),v.push(&quot;points&quot;)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||v.push(&quot;fills&quot;),&quot;fills&quot;!==p(&quot;hoveron&quot;,v.join(&quot;+&quot;)||&quot;points&quot;)&amp;&amp;p(&quot;hovertemplate&quot;),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/line_shape_defaults&quot;:1202,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1221}],1224:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=n[i];return t.a=a.a,t.b=a.b,t.y=a.y,t}},{}],1225:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r={},n=e._carpet,i=n.ab2ij([t.a,t.b]),a=Math.floor(i[0]),o=i[0]-a,s=Math.floor(i[1]),l=i[1]-s,c=n.evalxy([],a,s,o,l);return r.yLabel=c[1].toFixed(3),r}},{}],1226:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;),i=t(&quot;../../lib&quot;).fillText;e.exports=function(t,e,r,a){var o=n(t,e,r,a);if(o&amp;&amp;!1!==o[0].index){var s=o[0];if(void 0===s.index){var l=1-s.y0/t.ya._length,c=t.xa._length,u=c*l/2,f=c-u;return s.x0=Math.max(Math.min(s.x0,f),u),s.x1=Math.max(Math.min(s.x1,f),u),o}var h=s.cd[s.index];s.a=h.a,s.b=h.b,s.xLabelVal=void 0,s.yLabelVal=void 0;var p=s.trace,d=p._carpet,g=p._module.formatLabels(h,p);s.yLabel=g.yLabel,delete s.text;var m=[];if(!p.hovertemplate){var v=(h.hi||p.hoverinfo).split(&quot;+&quot;);-1!==v.indexOf(&quot;all&quot;)&amp;&amp;(v=[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;]),-1!==v.indexOf(&quot;a&quot;)&amp;&amp;y(d.aaxis,h.a),-1!==v.indexOf(&quot;b&quot;)&amp;&amp;y(d.baxis,h.b),m.push(&quot;y: &quot;+s.yLabel),-1!==v.indexOf(&quot;text&quot;)&amp;&amp;i(h,p,m),s.extraText=m.join(&quot;&lt;br&gt;&quot;)}return o}function y(t,e){var r;r=t.labelprefix&amp;&amp;t.labelprefix.length&gt;0?t.labelprefix.replace(/ = $/,&quot;&quot;):t._hovertitle,m.push(r+&quot;: &quot;+e.toFixed(3)+t.labelsuffix)}}},{&quot;../../lib&quot;:778,&quot;../scatter/hover&quot;:1198}],1227:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../scatter/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;scattercarpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;svg&quot;,&quot;carpet&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;carpetDependent&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/select&quot;:1209,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1221,&quot;./calc&quot;:1222,&quot;./defaults&quot;:1223,&quot;./event_data&quot;:1224,&quot;./format_labels&quot;:1225,&quot;./hover&quot;:1226,&quot;./plot&quot;:1228}],1228:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../components/drawing&quot;);e.exports=function(t,e,r,o){var s,l,c,u=r[0][0].carpet,f={xaxis:i.getFromId(t,u.xaxis||&quot;x&quot;),yaxis:i.getFromId(t,u.yaxis||&quot;y&quot;),plot:e.plot};for(n(t,f,r,o),s=0;s&lt;r.length;s++)l=r[s][0].trace,c=o.selectAll(&quot;g.trace&quot;+l.uid+&quot; .js-line&quot;),a.setClipUrl(c,r[s][0].carpet._clipPathId,t)}},{&quot;../../components/drawing&quot;:665,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/plot&quot;:1208}],1229:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scatter/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../plot_api/edit_types&quot;).overrideAll,f=a.marker,h=a.line,p=f.line;e.exports=u({lon:{valType:&quot;data_array&quot;},lat:{valType:&quot;data_array&quot;},locations:{valType:&quot;data_array&quot;},locationmode:{valType:&quot;enumerated&quot;,values:[&quot;ISO-3&quot;,&quot;USA-states&quot;,&quot;country names&quot;,&quot;geojson-id&quot;],dflt:&quot;ISO-3&quot;},geojson:{valType:&quot;any&quot;,editType:&quot;calc&quot;},featureidkey:{valType:&quot;string&quot;,editType:&quot;calc&quot;,dflt:&quot;id&quot;},mode:c({},a.mode,{dflt:&quot;markers&quot;}),text:c({},a.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;lat&quot;,&quot;lon&quot;,&quot;location&quot;,&quot;text&quot;]}),hovertext:c({},a.hovertext,{}),textfont:a.textfont,textposition:a.textposition,line:{color:h.color,width:h.width,dash:l},connectgaps:a.connectgaps,marker:c({symbol:f.symbol,opacity:f.opacity,size:f.size,sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,colorbar:f.colorbar,line:c({width:p.width},s(&quot;marker.line&quot;)),gradient:f.gradient},s(&quot;marker&quot;)),fill:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;toself&quot;],dflt:&quot;none&quot;},fillcolor:a.fillcolor,selected:a.selected,unselected:a.unselected,hoverinfo:c({},o.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;location&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n()},&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing/attributes&quot;:664,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1230:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../scatter/colorscale_calc&quot;),o=t(&quot;../scatter/arrays_to_calcdata&quot;),s=t(&quot;../scatter/calc_selection&quot;),l=t(&quot;../../lib&quot;)._;function c(t){return t&amp;&amp;&quot;string&quot;==typeof t}e.exports=function(t,e){var r,u=Array.isArray(e.locations),f=u?e.locations.length:e._length,h=new Array(f);r=e.geojson?function(t){return c(t)||n(t)}:c;for(var p=0;p&lt;f;p++){var d=h[p]={};if(u){var g=e.locations[p];d.loc=r(g)?g:null}else{var m=e.lon[p],v=e.lat[p];n(m)&amp;&amp;n(v)?d.lonlat=[+m,+v]:d.lonlat=[i,i]}}return o(h,e),a(t,e),s(h,e),f&amp;&amp;(h[0].t={labels:{lat:l(t,&quot;lat:&quot;)+&quot; &quot;,lon:l(t,&quot;lon:&quot;)+&quot; &quot;}}),h}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1231:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/text_defaults&quot;),l=t(&quot;../scatter/fillcolor_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}var h,p=f(&quot;locations&quot;);if(p&amp;&amp;p.length){var d,g=f(&quot;geojson&quot;);(&quot;string&quot;==typeof g&amp;&amp;&quot;&quot;!==g||n.isPlainObject(g))&amp;&amp;(d=&quot;geojson-id&quot;),&quot;geojson-id&quot;===f(&quot;locationmode&quot;,d)&amp;&amp;f(&quot;featureidkey&quot;),h=p.length}else{var m=f(&quot;lon&quot;)||[],v=f(&quot;lat&quot;)||[];h=Math.min(m.length,v.length)}h?(e._length=h,f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,u,f),f(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;a(t,e,r,u,f,{gradient:!0}),i.hasText(e)&amp;&amp;(f(&quot;texttemplate&quot;),s(t,e,u,f)),f(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1229}],1232:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){t.lon=e.lon,t.lat=e.lat,t.location=e.loc?e.loc:null;var a=n[i];return a.fIn&amp;&amp;a.fIn.properties&amp;&amp;(t.properties=a.fIn.properties),t}},{}],1233:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.geo]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=n.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=n.tickText(a,a.c2l(o[1]),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1234:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../scatter/get_trace_color&quot;),o=t(&quot;../../lib&quot;).fillText,s=t(&quot;./attributes&quot;);e.exports=function(t,e,r){var l=t.cd,c=l[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=h.projection.isLonLatOverEdges,d=h.project;if(n.getClosest(l,(function(t){var n=t.lonlat;if(n[0]===i)return 1/0;if(p(n))return 1/0;var a=d(n),o=d([e,r]),s=Math.abs(a[0]-o[0]),l=Math.abs(a[1]-o[1]),c=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(s*s+l*l)-c,1-3/c)}),t),!1!==t.index){var g=l[t.index],m=g.lonlat,v=[u.c2p(m),f.c2p(m)],y=g.mrc||1;t.x0=v[0]-y,t.x1=v[0]+y,t.y0=v[1]-y,t.y1=v[1]+y,t.loc=g.loc,t.lon=m[0],t.lat=m[1];var x={};x[c.geo]={_subplot:h};var b=c._module.formatLabels(g,c,x);return t.lonLabel=b.lonLabel,t.latLabel=b.latLabel,t.color=a(c,g),t.extraText=function(t,e,r,n){if(t.hovertemplate)return;var i=e.hi||t.hoverinfo,a=&quot;all&quot;===i?s.hoverinfo.flags:i.split(&quot;+&quot;),l=-1!==a.indexOf(&quot;location&quot;)&amp;&amp;Array.isArray(t.locations),c=-1!==a.indexOf(&quot;lon&quot;),u=-1!==a.indexOf(&quot;lat&quot;),f=-1!==a.indexOf(&quot;text&quot;),h=[];function p(t){return t+&quot;\xb0&quot;}l?h.push(e.loc):c&amp;&amp;u?h.push(&quot;(&quot;+p(r.lonLabel)+&quot;, &quot;+p(r.latLabel)+&quot;)&quot;):c?h.push(n.lon+p(r.lonLabel)):u&amp;&amp;h.push(n.lat+p(r.latLabel));f&amp;&amp;o(e,t,h);return h.join(&quot;&lt;br&gt;&quot;)}(c,g,t,l[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}}},{&quot;../../components/fx&quot;:683,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/get_trace_color&quot;:1197,&quot;./attributes&quot;:1229}],1235:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),calcGeoJSON:t(&quot;./plot&quot;).calcGeoJSON,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;scattergeo&quot;,basePlotModule:t(&quot;../../plots/geo&quot;),categories:[&quot;geo&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/geo&quot;:860,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1229,&quot;./calc&quot;:1230,&quot;./defaults&quot;:1231,&quot;./event_data&quot;:1232,&quot;./format_labels&quot;:1233,&quot;./hover&quot;:1234,&quot;./plot&quot;:1236,&quot;./select&quot;:1237,&quot;./style&quot;:1238}],1236:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/topojson_utils&quot;).getTopojsonFeatures,o=t(&quot;../../lib/geojson_utils&quot;),s=t(&quot;../../lib/geo_location_utils&quot;),l=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,c=t(&quot;../../constants/numerical&quot;).BADNUM,u=t(&quot;../scatter/calc&quot;).calcMarkerSize,f=t(&quot;../scatter/subtypes&quot;),h=t(&quot;./style&quot;);e.exports={calcGeoJSON:function(t,e){var r,n,i=t[0].trace,o=e[i.geo],f=o._subplot,h=i._length;if(Array.isArray(i.locations)){var p=i.locationmode,d=&quot;geojson-id&quot;===p?s.extractTraceFeature(t):a(i,f.topojson);for(r=0;r&lt;h;r++){n=t[r];var g=&quot;geojson-id&quot;===p?n.fOut:s.locationToFeature(p,n.loc,d);n.lonlat=g?g.properties.ct:[c,c]}}var m,v,y={padded:!0};if(&quot;geojson&quot;===o.fitbounds&amp;&amp;&quot;geojson-id&quot;===i.locationmode){var x=s.computeBbox(s.getTraceGeojson(i));m=[x[0],x[2]],v=[x[1],x[3]]}else{for(m=new Array(h),v=new Array(h),r=0;r&lt;h;r++)n=t[r],m[r]=n.lonlat[0],v[r]=n.lonlat[1];y.ppad=u(i,h)}i._extremes.lon=l(o.lonaxis._ax,m,y),i._extremes.lat=l(o.lataxis._ax,v,y)},plot:function(t,e,r){var a=e.layers.frontplot.select(&quot;.scatterlayer&quot;),s=i.makeTraceGroups(a,r,&quot;trace scattergeo&quot;);function l(t,e){t.lonlat[0]===c&amp;&amp;n.select(e).remove()}s.selectAll(&quot;*&quot;).remove(),s.each((function(e){var r=n.select(this),a=e[0].trace;if(f.hasLines(a)||&quot;none&quot;!==a.fill){var s=o.calcTraceToLineCoords(e),c=&quot;none&quot;!==a.fill?o.makePolygon(s):o.makeLine(s);r.selectAll(&quot;path.js-line&quot;).data([{geojson:c,trace:a}]).enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0).style(&quot;stroke-miterlimit&quot;,2)}f.hasMarkers(a)&amp;&amp;r.selectAll(&quot;path.point&quot;).data(i.identity).enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0).each((function(t){l(t,this)})),f.hasText(a)&amp;&amp;r.selectAll(&quot;g&quot;).data(i.identity).enter().append(&quot;g&quot;).append(&quot;text&quot;).each((function(t){l(t,this)})),h(t,e)}))}}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/geojson_utils&quot;:772,&quot;../../lib/topojson_utils&quot;:806,&quot;../../plots/cartesian/autorange&quot;:827,&quot;../scatter/calc&quot;:1188,&quot;../scatter/subtypes&quot;:1212,&quot;./style&quot;:1238,d3:169}],1237:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/subtypes&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e){var r,a,o,s,l,c=t.cd,u=t.xaxis,f=t.yaxis,h=[],p=c[0].trace;if(!n.hasMarkers(p)&amp;&amp;!n.hasText(p))return[];if(!1===e)for(l=0;l&lt;c.length;l++)c[l].selected=0;else for(l=0;l&lt;c.length;l++)(a=(r=c[l]).lonlat)[0]!==i&amp;&amp;(o=u.c2p(a),s=f.c2p(a),e.contains([o,s],null,l,t)?(h.push({pointNumber:l,lon:a[0],lat:a[1]}),r.selected=1):r.selected=0);return h}},{&quot;../../constants/numerical&quot;:753,&quot;../scatter/subtypes&quot;:1212}],1238:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../scatter/style&quot;),s=o.stylePoints,l=o.styleText;e.exports=function(t,e){e&amp;&amp;function(t,e){var r=e[0].trace,o=e[0].node3;o.style(&quot;opacity&quot;,e[0].trace.opacity),s(o,r,t),l(o,r,t),o.selectAll(&quot;path.js-line&quot;).style(&quot;fill&quot;,&quot;none&quot;).each((function(t){var e=n.select(this),r=t.trace,o=r.line||{};e.call(a.stroke,o.color).call(i.dashLine,o.dash||&quot;&quot;,o.width||0),&quot;none&quot;!==r.fill&amp;&amp;e.call(a.fill,r.fillcolor)}))}(t,e)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../scatter/style&quot;:1211,d3:169}],1239:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/edit_types&quot;).overrideAll,l=t(&quot;./constants&quot;).DASHES,c=i.line,u=i.marker,f=u.line,h=e.exports=s({x:i.x,x0:i.x0,dx:i.dx,y:i.y,y0:i.y0,dy:i.dy,xperiod:i.xperiod,yperiod:i.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:i.xperiodalignment,yperiodalignment:i.yperiodalignment,text:i.text,hovertext:i.hovertext,textposition:i.textposition,textfont:i.textfont,mode:{valType:&quot;flaglist&quot;,flags:[&quot;lines&quot;,&quot;markers&quot;,&quot;text&quot;],extras:[&quot;none&quot;]},line:{color:c.color,width:c.width,shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},dash:{valType:&quot;enumerated&quot;,values:Object.keys(l),dflt:&quot;solid&quot;}},marker:o({},a(&quot;marker&quot;),{symbol:u.symbol,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,opacity:u.opacity,colorbar:u.colorbar,line:o({},a(&quot;marker.line&quot;),{width:f.width})}),connectgaps:i.connectgaps,fill:o({},i.fill,{dflt:&quot;none&quot;}),fillcolor:i.fillcolor,selected:{marker:i.selected.marker,textfont:i.selected.textfont},unselected:{marker:i.unselected.marker,textfont:i.unselected.textfont},opacity:n.opacity},&quot;calc&quot;,&quot;nested&quot;);h.x.editType=h.y.editType=h.x0.editType=h.y0.editType=&quot;calc+clearAxisTypes&quot;,h.hovertemplate=i.hovertemplate,h.texttemplate=i.texttemplate},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:1241}],1240:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/point-cluster&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,s=t(&quot;../../plots/cartesian/align_period&quot;),l=t(&quot;../scatter/calc&quot;),c=l.calcMarkerSize,u=l.calcAxisExpansion,f=l.setFirstScatter,h=t(&quot;../scatter/colorscale_calc&quot;),p=t(&quot;./convert&quot;),d=t(&quot;./scene_update&quot;),g=t(&quot;../../constants/numerical&quot;).BADNUM,m=t(&quot;./constants&quot;).TOO_MANY_POINTS;function v(t,e,r){var n=t._extremes[e._id],i=o(e,r._bnds,{padded:!0});n.min=n.min.concat(i.min),n.max=n.max.concat(i.max)}e.exports=function(t,e){var r,o,l,y=t._fullLayout,x=a.getFromId(t,e.xaxis),b=a.getFromId(t,e.yaxis),_=y._plots[e.xaxis+e.yaxis],w=e._length,T=w&gt;=m,k=2*w,M={},A=x.makeCalcdata(e,&quot;x&quot;),S=b.makeCalcdata(e,&quot;y&quot;),E=s(e,x,&quot;x&quot;,A),C=s(e,b,&quot;y&quot;,S);e._x=E,e._y=C,e.xperiodalignment&amp;&amp;(e._origX=A),e.yperiodalignment&amp;&amp;(e._origY=S);var L=new Array(k);for(r=0;r&lt;w;r++)o=E[r],l=C[r],L[2*r]=o===g?NaN:o,L[2*r+1]=l===g?NaN:l;if(&quot;log&quot;===x.type)for(r=0;r&lt;k;r+=2)L[r]=x.c2l(L[r]);if(&quot;log&quot;===b.type)for(r=1;r&lt;k;r+=2)L[r]=b.c2l(L[r]);if(T&amp;&amp;&quot;log&quot;!==x.type&amp;&amp;&quot;log&quot;!==b.type)M.tree=n(L);else{var I=M.ids=new Array(w);for(r=0;r&lt;w;r++)I[r]=r}h(t,e);var P,z=function(t,e,r,n,a,o){var s=p.style(t,r);s.marker&amp;&amp;(s.marker.positions=n);s.line&amp;&amp;n.length&gt;1&amp;&amp;i.extendFlat(s.line,p.linePositions(t,r,n));if(s.errorX||s.errorY){var l=p.errorBarPositions(t,r,n,a,o);s.errorX&amp;&amp;i.extendFlat(s.errorX,l.x),s.errorY&amp;&amp;i.extendFlat(s.errorY,l.y)}s.text&amp;&amp;(i.extendFlat(s.text,{positions:n},p.textPosition(t,r,s.text,s.marker)),i.extendFlat(s.textSel,{positions:n},p.textPosition(t,r,s.text,s.markerSel)),i.extendFlat(s.textUnsel,{positions:n},p.textPosition(t,r,s.text,s.markerUnsel)));return s}(t,0,e,L,E,C),O=d(t,_);return f(y,e),T?z.marker&amp;&amp;(P=2*(z.marker.sizeAvg||Math.max(z.marker.size,3))):P=c(e,w),u(t,e,x,b,E,C,P),z.errorX&amp;&amp;v(e,x,z.errorX),z.errorY&amp;&amp;v(e,b,z.errorY),z.fill&amp;&amp;!O.fill2d&amp;&amp;(O.fill2d=!0),z.marker&amp;&amp;!O.scatter2d&amp;&amp;(O.scatter2d=!0),z.line&amp;&amp;!O.line2d&amp;&amp;(O.line2d=!0),!z.errorX&amp;&amp;!z.errorY||O.error2d||(O.error2d=!0),z.text&amp;&amp;!O.glText&amp;&amp;(O.glText=!0),z.marker&amp;&amp;(z.marker.snap=w),O.lineOptions.push(z.line),O.errorXOptions.push(z.errorX),O.errorYOptions.push(z.errorY),O.fillOptions.push(z.fill),O.markerOptions.push(z.marker),O.markerSelectedOptions.push(z.markerSel),O.markerUnselectedOptions.push(z.markerUnsel),O.textOptions.push(z.text),O.textSelectedOptions.push(z.textSel),O.textUnselectedOptions.push(z.textUnsel),O.selectBatch.push([]),O.unselectBatch.push([]),M._scene=O,M.index=O.count,M.x=E,M.y=C,M.positions=L,O.count++,[{x:!1,y:!1,t:M,trace:e}]}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/autorange&quot;:827,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../scatter/calc&quot;:1188,&quot;../scatter/colorscale_calc&quot;:1190,&quot;./constants&quot;:1241,&quot;./convert&quot;:1242,&quot;./scene_update&quot;:1250,&quot;@plotly/point-cluster&quot;:57}],1241:[function(t,e,r){&quot;use strict&quot;;e.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:20,SYMBOL_STROKE:1,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},{}],1242:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;svg-path-sdf&quot;),a=t(&quot;color-normalize&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../plots/cartesian/axis_ids&quot;),u=t(&quot;../../lib/gl_format_color&quot;).formatColor,f=t(&quot;../scatter/subtypes&quot;),h=t(&quot;../scatter/make_bubble_size_func&quot;),p=t(&quot;./helpers&quot;),d=t(&quot;./constants&quot;),g=t(&quot;../../constants/interactions&quot;).DESELECTDIM,m={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},v=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue;function y(t,e){var r,i=t._fullLayout,a=e._length,o=e.textfont,l=e.textposition,c=Array.isArray(l)?l:[l],u=o.color,f=o.size,h=o.family,p={},d=e.texttemplate;if(d){p.text=[];var g=i._d3locale,m=Array.isArray(d),y=m?Math.min(d.length,a):a,x=m?function(t){return d[t]}:function(){return d};for(r=0;r&lt;y;r++){var b={i:r},_=e._module.formatLabels(b,e,i),w={};v(w,e,r);var T=e._meta||{};p.text.push(s.texttemplateString(x(r),_,g,w,b,T))}}else Array.isArray(e.text)&amp;&amp;e.text.length&lt;a?p.text=e.text.slice():p.text=e.text;if(Array.isArray(p.text))for(r=p.text.length;r&lt;a;r++)p.text[r]=&quot;&quot;;for(p.opacity=e.opacity,p.font={},p.align=[],p.baseline=[],r=0;r&lt;c.length;r++){var k=c[r].split(/\s+/);switch(k[1]){case&quot;left&quot;:p.align.push(&quot;right&quot;);break;case&quot;right&quot;:p.align.push(&quot;left&quot;);break;default:p.align.push(k[1])}switch(k[0]){case&quot;top&quot;:p.baseline.push(&quot;bottom&quot;);break;case&quot;bottom&quot;:p.baseline.push(&quot;top&quot;);break;default:p.baseline.push(k[0])}}if(Array.isArray(u))for(p.color=new Array(a),r=0;r&lt;a;r++)p.color[r]=u[r];else p.color=u;if(s.isArrayOrTypedArray(f)||Array.isArray(h))for(p.font=new Array(a),r=0;r&lt;a;r++){var M=p.font[r]={};M.size=s.isTypedArray(f)?f[r]:Array.isArray(f)?n(f[r])?f[r]:0:f,M.family=Array.isArray(h)?h[r]:h}else p.font={size:f,family:h};return p}function x(t){var e,r,n=t._length,i=t.marker,o={},l=s.isArrayOrTypedArray(i.symbol),c=s.isArrayOrTypedArray(i.color),f=s.isArrayOrTypedArray(i.line.color),d=s.isArrayOrTypedArray(i.opacity),g=s.isArrayOrTypedArray(i.size),m=s.isArrayOrTypedArray(i.line.width);if(l||(r=p.isOpenSymbol(i.symbol)),l||c||f||d){o.colors=new Array(n),o.borderColors=new Array(n);var v=u(i,i.opacity,n),y=u(i.line,i.opacity,n);if(!Array.isArray(y[0])){var x=y;for(y=Array(n),e=0;e&lt;n;e++)y[e]=x}if(!Array.isArray(v[0])){var b=v;for(v=Array(n),e=0;e&lt;n;e++)v[e]=b}for(o.colors=v,o.borderColors=y,e=0;e&lt;n;e++){if(l){var _=i.symbol[e];r=p.isOpenSymbol(_)}r&amp;&amp;(y[e]=v[e].slice(),v[e]=v[e].slice(),v[e][3]=0)}o.opacity=t.opacity}else r?(o.color=a(i.color,&quot;uint8&quot;),o.color[3]=0,o.borderColor=a(i.color,&quot;uint8&quot;)):(o.color=a(i.color,&quot;uint8&quot;),o.borderColor=a(i.line.color,&quot;uint8&quot;)),o.opacity=t.opacity*i.opacity;if(l)for(o.markers=new Array(n),e=0;e&lt;n;e++)o.markers[e]=E(i.symbol[e]);else o.marker=E(i.symbol);var w,T=h(t);if(g||m){var k,M=o.sizes=new Array(n),A=o.borderSizes=new Array(n),S=0;if(g){for(e=0;e&lt;n;e++)M[e]=T(i.size[e]),S+=M[e];k=S/n}else for(w=T(i.size),e=0;e&lt;n;e++)M[e]=w;if(m)for(e=0;e&lt;n;e++)A[e]=i.line.width[e]/2;else for(w=i.line.width/2,e=0;e&lt;n;e++)A[e]=w;o.sizeAvg=k}else o.size=T(i&amp;&amp;i.size||10),o.borderSizes=T(i.line.width);return o}function b(t,e){var r=t.marker,n={};return e?(e.marker&amp;&amp;e.marker.symbol?n=x(s.extendFlat({},r,e.marker)):e.marker&amp;&amp;(e.marker.size&amp;&amp;(n.size=e.marker.size/2),e.marker.color&amp;&amp;(n.colors=e.marker.color),void 0!==e.marker.opacity&amp;&amp;(n.opacity=e.marker.opacity)),n):n}function _(t,e,r){var n={};if(!r)return n;if(r.textfont){var i={opacity:1,text:e.text,texttemplate:e.texttemplate,textposition:e.textposition,textfont:s.extendFlat({},e.textfont)};r.textfont&amp;&amp;s.extendFlat(i.textfont,r.textfont),n=y(t,i)}return n}function w(t,e){var r={capSize:2*e.width,lineWidth:e.thickness,color:e.color};return e.copy_ystyle&amp;&amp;(r=t.error_y),r}var T=d.SYMBOL_SDF_SIZE,k=d.SYMBOL_SIZE,M=d.SYMBOL_STROKE,A={},S=l.symbolFuncs[0](.05*k);function E(t){if(&quot;circle&quot;===t)return null;var e,r,n=l.symbolNumber(t),a=l.symbolFuncs[n%100],o=!!l.symbolNoDot[n%100],s=!!l.symbolNoFill[n%100],c=p.isDotSymbol(t);return A[t]?A[t]:(e=c&amp;&amp;!o?a(1.1*k)+S:a(k),r=i(e,{w:T,h:T,viewBox:[-k,-k,k,k],stroke:s?M:-M}),A[t]=r,r||null)}e.exports={style:function(t,e){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0};if(!0!==e.visible)return n;if(f.hasText(e)&amp;&amp;(n.text=y(t,e),n.textSel=_(t,e,e.selected),n.textUnsel=_(t,e,e.unselected)),f.hasMarkers(e)&amp;&amp;(n.marker=x(e),n.markerSel=b(e,e.selected),n.markerUnsel=b(e,e.unselected),!e.unselected&amp;&amp;s.isArrayOrTypedArray(e.marker.opacity))){var i=e.marker.opacity;for(n.markerUnsel.opacity=new Array(i.length),r=0;r&lt;i.length;r++)n.markerUnsel.opacity[r]=g*i[r]}if(f.hasLines(e)){n.line={overlay:!0,thickness:e.line.width,color:e.line.color,opacity:e.opacity};var a=(d.DASHES[e.line.dash]||[1]).slice();for(r=0;r&lt;a.length;++r)a[r]*=e.line.width;n.line.dashes=a}return e.error_x&amp;&amp;e.error_x.visible&amp;&amp;(n.errorX=w(e,e.error_x)),e.error_y&amp;&amp;e.error_y.visible&amp;&amp;(n.errorY=w(e,e.error_y)),e.fill&amp;&amp;&quot;none&quot;!==e.fill&amp;&amp;(n.fill={closed:!0,fill:e.fillcolor,thickness:0}),n},markerStyle:x,markerSelection:b,linePositions:function(t,e,r){var n,i,a=r.length,o=a/2;if(f.hasLines(e)&amp;&amp;o)if(&quot;hv&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i+2],r[2*i+1]));n.push(r[a-2],r[a-1])}else if(&quot;hvh&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var s=(r[2*i]+r[2*i+2])/2;n.push(r[2*i],r[2*i+1],s,r[2*i+1],s,r[2*i+3])}n.push(r[a-2],r[a-1])}else if(&quot;vhv&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var l=(r[2*i+1]+r[2*i+3])/2;n.push(r[2*i],r[2*i+1],r[2*i],l,r[2*i+2],l)}n.push(r[a-2],r[a-1])}else if(&quot;vh&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+3]));n.push(r[a-2],r[a-1])}else n=r;var c=!1;for(i=0;i&lt;n.length;i++)if(isNaN(n[i])){c=!0;break}var u=c||n.length&gt;d.TOO_MANY_POINTS||f.hasMarkers(e)?&quot;rect&quot;:&quot;round&quot;;if(c&amp;&amp;e.connectgaps){var h=n[0],p=n[1];for(i=0;i&lt;n.length;i+=2)isNaN(n[i])||isNaN(n[i+1])?(n[i]=h,n[i+1]=p):(h=n[i],p=n[i+1])}return{join:u,positions:n}},errorBarPositions:function(t,e,r,i,a){var s=o.getComponentMethod(&quot;errorbars&quot;,&quot;makeComputeError&quot;),l=c.getFromId(t,e.xaxis),u=c.getFromId(t,e.yaxis),f=r.length/2,h={};function p(t,i){var a=i._id.charAt(0),o=e[&quot;error_&quot;+a];if(o&amp;&amp;o.visible&amp;&amp;(&quot;linear&quot;===i.type||&quot;log&quot;===i.type)){for(var l=s(o),c={x:0,y:1}[a],u={x:[0,1,2,3],y:[2,3,0,1]}[a],p=new Float64Array(4*f),d=1/0,g=-1/0,m=0,v=0;m&lt;f;m++,v+=4){var y=t[m];if(n(y)){var x=r[2*m+c],b=l(y,m),_=b[0],w=b[1];if(n(_)&amp;&amp;n(w)){var T=y-_,k=y+w;p[v+u[0]]=x-i.c2l(T),p[v+u[1]]=i.c2l(k)-x,p[v+u[2]]=0,p[v+u[3]]=0,d=Math.min(d,y-_),g=Math.max(g,y+w)}}}h[a]={positions:r,errors:p,_bnds:[d,g]}}}return p(i,l),p(a,u),h},textPosition:function(t,e,r,n){var i,a=e._length,o={};if(f.hasMarkers(e)){var s=r.font,l=r.align,c=r.baseline;for(o.offset=new Array(a),i=0;i&lt;a;i++){var u=n.sizes?n.sizes[i]:n.size,h=Array.isArray(s)?s[i].size:s.size,p=Array.isArray(l)?l.length&gt;1?l[i]:l[0]:l,d=Array.isArray(c)?c.length&gt;1?c[i]:c[0]:c,g=m[p],v=m[d],y=u?u/.8+1:0,x=-v*y-.5*v;o.offset[i]=[g*y/h,x/h]}}return o}}},{&quot;../../components/drawing&quot;:665,&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/interactions&quot;:752,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../registry&quot;:911,&quot;../scatter/make_bubble_size_func&quot;:1204,&quot;../scatter/subtypes&quot;:1212,&quot;./constants&quot;:1241,&quot;./helpers&quot;:1246,&quot;color-normalize&quot;:125,&quot;fast-isnumeric&quot;:241,&quot;svg-path-sdf&quot;:574}],1243:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./helpers&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../scatter/constants&quot;),l=t(&quot;../scatter/subtypes&quot;),c=t(&quot;../scatter/xy_defaults&quot;),u=t(&quot;../scatter/period_defaults&quot;),f=t(&quot;../scatter/marker_defaults&quot;),h=t(&quot;../scatter/line_defaults&quot;),p=t(&quot;../scatter/fillcolor_defaults&quot;),d=t(&quot;../scatter/text_defaults&quot;);e.exports=function(t,e,r,g){function m(r,i){return n.coerce(t,e,o,r,i)}var v=!!t.marker&amp;&amp;a.isOpenSymbol(t.marker.symbol),y=l.isBubble(t),x=c(t,e,g,m);if(x){u(t,e,g,m);var b=x&lt;s.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;;m(&quot;text&quot;),m(&quot;hovertext&quot;),m(&quot;hovertemplate&quot;),m(&quot;mode&quot;,b),l.hasLines(e)&amp;&amp;(m(&quot;connectgaps&quot;),h(t,e,r,g,m),m(&quot;line.shape&quot;)),l.hasMarkers(e)&amp;&amp;(f(t,e,r,g,m),m(&quot;marker.line.width&quot;,v||y?1:0)),l.hasText(e)&amp;&amp;(m(&quot;texttemplate&quot;),d(t,e,g,m));var _=(e.line||{}).color,w=(e.marker||{}).color;m(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;p(t,e,r,m);var T=i.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);T(t,e,_||w||r,{axis:&quot;y&quot;}),T(t,e,_||w||r,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,m)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:1239,&quot;./helpers&quot;:1246}],1244:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../constants/interactions&quot;).DESELECTDIM;e.exports={styleTextSelection:function(t){var e,r,o=t[0],s=o.trace,l=o.t,c=l._scene,u=l.index,f=c.selectBatch[u],h=c.unselectBatch[u],p=c.textOptions[u],d=c.textSelectedOptions[u]||{},g=c.textUnselectedOptions[u]||{},m=n.extendFlat({},p);if(f.length||h.length){var v=d.color,y=g.color,x=p.color,b=Array.isArray(x);for(m.color=new Array(s._length),e=0;e&lt;f.length;e++)r=f[e],m.color[r]=v||(b?x[r]:x);for(e=0;e&lt;h.length;e++){r=h[e];var _=b?x[r]:x;m.color[r]=y||(v?_:i.addOpacity(_,a))}}c.glText[u].update(m)}}},{&quot;../../components/color&quot;:643,&quot;../../constants/interactions&quot;:752,&quot;../../lib&quot;:778}],1245:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/format_labels&quot;);e.exports=function(t,e,r){var i=t.i;return&quot;x&quot;in t||(t.x=e._x[i]),&quot;y&quot;in t||(t.y=e._y[i]),n(t,e,r)}},{&quot;../scatter/format_labels&quot;:1196}],1246:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);r.isOpenSymbol=function(t){return&quot;string&quot;==typeof t?n.OPEN_RE.test(t):t%200&gt;100},r.isDotSymbol=function(t){return&quot;string&quot;==typeof t?n.DOT_RE.test(t):t&gt;200}},{&quot;./constants&quot;:1241}],1247:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/get_trace_color&quot;);function o(t,e,r,o){var s=t.xa,l=t.ya,c=t.distance,u=t.dxy,f=t.index,h={pointNumber:f,x:e[f],y:r[f]};h.tx=Array.isArray(o.text)?o.text[f]:o.text,h.htx=Array.isArray(o.hovertext)?o.hovertext[f]:o.hovertext,h.data=Array.isArray(o.customdata)?o.customdata[f]:o.customdata,h.tp=Array.isArray(o.textposition)?o.textposition[f]:o.textposition;var p=o.textfont;p&amp;&amp;(h.ts=i.isArrayOrTypedArray(p.size)?p.size[f]:p.size,h.tc=Array.isArray(p.color)?p.color[f]:p.color,h.tf=Array.isArray(p.family)?p.family[f]:p.family);var d=o.marker;d&amp;&amp;(h.ms=i.isArrayOrTypedArray(d.size)?d.size[f]:d.size,h.mo=i.isArrayOrTypedArray(d.opacity)?d.opacity[f]:d.opacity,h.mx=i.isArrayOrTypedArray(d.symbol)?d.symbol[f]:d.symbol,h.mc=i.isArrayOrTypedArray(d.color)?d.color[f]:d.color);var g=d&amp;&amp;d.line;g&amp;&amp;(h.mlc=Array.isArray(g.color)?g.color[f]:g.color,h.mlw=i.isArrayOrTypedArray(g.width)?g.width[f]:g.width);var m=d&amp;&amp;d.gradient;m&amp;&amp;&quot;none&quot;!==m.type&amp;&amp;(h.mgt=Array.isArray(m.type)?m.type[f]:m.type,h.mgc=Array.isArray(m.color)?m.color[f]:m.color);var v=s.c2p(h.x,!0),y=l.c2p(h.y,!0),x=h.mrc||1,b=o.hoverlabel;b&amp;&amp;(h.hbg=Array.isArray(b.bgcolor)?b.bgcolor[f]:b.bgcolor,h.hbc=Array.isArray(b.bordercolor)?b.bordercolor[f]:b.bordercolor,h.hts=i.isArrayOrTypedArray(b.font.size)?b.font.size[f]:b.font.size,h.htc=Array.isArray(b.font.color)?b.font.color[f]:b.font.color,h.htf=Array.isArray(b.font.family)?b.font.family[f]:b.font.family,h.hnl=i.isArrayOrTypedArray(b.namelength)?b.namelength[f]:b.namelength);var _=o.hoverinfo;_&amp;&amp;(h.hi=Array.isArray(_)?_[f]:_);var w=o.hovertemplate;w&amp;&amp;(h.ht=Array.isArray(w)?w[f]:w);var T={};T[t.index]=h;var k=o._origX,M=o._origY,A=i.extendFlat({},t,{color:a(o,h),x0:v-x,x1:v+x,xLabelVal:k?k[f]:h.x,y0:y-x,y1:y+x,yLabelVal:M?M[f]:h.y,cd:T,distance:c,spikeDistance:u,hovertemplate:h.ht});return h.htx?A.text=h.htx:h.tx?A.text=h.tx:o.text&amp;&amp;(A.text=o.text),i.fillText(h,o,A),n.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(h,o,A),A}e.exports={hoverPoints:function(t,e,r,n){var i,a,s,l,c,u,f,h,p,d=t.cd,g=d[0].t,m=d[0].trace,v=t.xa,y=t.ya,x=g.x,b=g.y,_=v.c2p(e),w=y.c2p(r),T=t.distance;if(g.tree){var k=v.p2c(_-T),M=v.p2c(_+T),A=y.p2c(w-T),S=y.p2c(w+T);i=&quot;x&quot;===n?g.tree.range(Math.min(k,M),Math.min(y._rl[0],y._rl[1]),Math.max(k,M),Math.max(y._rl[0],y._rl[1])):g.tree.range(Math.min(k,M),Math.min(A,S),Math.max(k,M),Math.max(A,S))}else i=g.ids;var E=T;if(&quot;x&quot;===n)for(c=0;c&lt;i.length;c++)s=x[i[c]],(u=Math.abs(v.c2p(s)-_))&lt;E&amp;&amp;(E=u,f=y.c2p(b[i[c]])-w,p=Math.sqrt(u*u+f*f),a=i[c]);else for(c=i.length-1;c&gt;-1;c--)s=x[i[c]],l=b[i[c]],u=v.c2p(s)-_,f=y.c2p(l)-w,(h=Math.sqrt(u*u+f*f))&lt;E&amp;&amp;(E=p=h,a=i[c]);return t.index=a,t.distance=E,t.dxy=p,void 0===a?[t]:[o(t,x,b,m)]},calcHover:o}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../scatter/get_trace_color&quot;:1197}],1248:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./hover&quot;);e.exports={moduleType:&quot;trace&quot;,name:&quot;scattergl&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;cartesian&quot;,&quot;symbols&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../scatter/cross_trace_defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:n.hoverPoints,selectPoints:t(&quot;./select&quot;),meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../scatter/cross_trace_defaults&quot;:1193,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1239,&quot;./calc&quot;:1240,&quot;./defaults&quot;:1243,&quot;./format_labels&quot;:1245,&quot;./hover&quot;:1247,&quot;./plot&quot;:1249,&quot;./select&quot;:1251}],1249:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-scatter2d&quot;),i=t(&quot;regl-line2d&quot;),a=t(&quot;regl-error2d&quot;),o=t(&quot;gl-text&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../components/dragelement/helpers&quot;).selectMode,c=t(&quot;../../lib/prepare_regl&quot;),u=t(&quot;../scatter/subtypes&quot;),f=t(&quot;../scatter/link_traces&quot;),h=t(&quot;./edit_style&quot;).styleTextSelection;function p(t,e,r){var n=t._size,i=t.width,a=t.height;return[n.l+e.domain[0]*n.w,n.b+r.domain[0]*n.h,i-n.r-(1-e.domain[1])*n.w,a-n.t-(1-r.domain[1])*n.h]}e.exports=function(t,e,r){if(r.length){var d,g,m=t._fullLayout,v=e._scene,y=e.xaxis,x=e.yaxis;if(v)if(c(t,[&quot;ANGLE_instanced_arrays&quot;,&quot;OES_element_index_uint&quot;])){var b=v.count,_=m._glcanvas.data()[0].regl;if(f(t,e,r),v.dirty){if(!0===v.error2d&amp;&amp;(v.error2d=a(_)),!0===v.line2d&amp;&amp;(v.line2d=i(_)),!0===v.scatter2d&amp;&amp;(v.scatter2d=n(_,{constPointSize:!0})),!0===v.fill2d&amp;&amp;(v.fill2d=i(_)),!0===v.glText)for(v.glText=new Array(b),d=0;d&lt;b;d++)v.glText[d]=new o(_);if(v.glText){if(b&gt;v.glText.length){var w=b-v.glText.length;for(d=0;d&lt;w;d++)v.glText.push(new o(_))}else if(b&lt;v.glText.length){var T=v.glText.length-b;v.glText.splice(b,T).forEach((function(t){t.destroy()}))}for(d=0;d&lt;b;d++)v.glText[d].update(v.textOptions[d])}if(v.line2d&amp;&amp;(v.line2d.update(v.lineOptions),v.lineOptions=v.lineOptions.map((function(t){if(t&amp;&amp;t.positions){for(var e=t.positions,r=0;r&lt;e.length&amp;&amp;(isNaN(e[r])||isNaN(e[r+1]));)r+=2;for(var n=e.length-2;n&gt;r&amp;&amp;(isNaN(e[n])||isNaN(e[n+1]));)n-=2;t.positions=e.slice(r,n+2)}return t})),v.line2d.update(v.lineOptions)),v.error2d){var k=(v.errorXOptions||[]).concat(v.errorYOptions||[]);v.error2d.update(k)}v.scatter2d&amp;&amp;v.scatter2d.update(v.markerOptions),v.fillOrder=s.repeat(null,b),v.fill2d&amp;&amp;(v.fillOptions=v.fillOptions.map((function(t,e){var n=r[e];if(t&amp;&amp;n&amp;&amp;n[0]&amp;&amp;n[0].trace){var i,a,o=n[0],s=o.trace,l=o.t,c=v.lineOptions[e],u=[];s._ownfill&amp;&amp;u.push(e),s._nexttrace&amp;&amp;u.push(e+1),u.length&amp;&amp;(v.fillOrder[e]=u);var f,h,p=[],d=c&amp;&amp;c.positions||l.positions;if(&quot;tozeroy&quot;===s.fill){for(f=0;f&lt;d.length&amp;&amp;isNaN(d[f+1]);)f+=2;for(h=d.length-2;h&gt;f&amp;&amp;isNaN(d[h+1]);)h-=2;0!==d[f+1]&amp;&amp;(p=[d[f],0]),p=p.concat(d.slice(f,h+2)),0!==d[h+1]&amp;&amp;(p=p.concat([d[h],0]))}else if(&quot;tozerox&quot;===s.fill){for(f=0;f&lt;d.length&amp;&amp;isNaN(d[f]);)f+=2;for(h=d.length-2;h&gt;f&amp;&amp;isNaN(d[h]);)h-=2;0!==d[f]&amp;&amp;(p=[0,d[f+1]]),p=p.concat(d.slice(f,h+2)),0!==d[h]&amp;&amp;(p=p.concat([0,d[h+1]]))}else if(&quot;toself&quot;===s.fill||&quot;tonext&quot;===s.fill){for(p=[],i=0,a=0;a&lt;d.length;a+=2)(isNaN(d[a])||isNaN(d[a+1]))&amp;&amp;((p=p.concat(d.slice(i,a))).push(d[i],d[i+1]),i=a+2);p=p.concat(d.slice(i)),i&amp;&amp;p.push(d[i],d[i+1])}else{var g=s._nexttrace;if(g){var m=v.lineOptions[e+1];if(m){var y=m.positions;if(&quot;tonexty&quot;===s.fill){for(p=d.slice(),e=Math.floor(y.length/2);e--;){var x=y[2*e],b=y[2*e+1];isNaN(x)||isNaN(b)||p.push(x,b)}t.fill=g.fillcolor}}}}if(s._prevtrace&amp;&amp;&quot;tonext&quot;===s._prevtrace.fill){var _=v.lineOptions[e-1].positions,w=p.length/2,T=[i=w];for(a=0;a&lt;_.length;a+=2)(isNaN(_[a])||isNaN(_[a+1]))&amp;&amp;(T.push(a/2+w+1),i=a+2);p=p.concat(_),t.hole=T}return t.fillmode=s.fill,t.opacity=s.opacity,t.positions=p,t}})),v.fill2d.update(v.fillOptions))}var M=m.dragmode,A=l(M),S=m.clickmode.indexOf(&quot;select&quot;)&gt;-1;for(d=0;d&lt;b;d++){var E=r[d][0],C=E.trace,L=E.t,I=L.index,P=C._length,z=L.x,O=L.y;if(C.selectedpoints||A||S){if(A||(A=!0),C.selectedpoints){var D=v.selectBatch[I]=s.selIndices2selPoints(C),R={};for(g=0;g&lt;D.length;g++)R[D[g]]=1;var F=[];for(g=0;g&lt;P;g++)R[g]||F.push(g);v.unselectBatch[I]=F}var B=L.xpx=new Array(P),N=L.ypx=new Array(P);for(g=0;g&lt;P;g++)B[g]=y.c2p(z[g]),N[g]=x.c2p(O[g])}else L.xpx=L.ypx=null}if(A){if(v.select2d||(v.select2d=n(m._glcanvas.data()[1].regl)),v.scatter2d){var j=new Array(b);for(d=0;d&lt;b;d++)j[d]=v.selectBatch[d].length||v.unselectBatch[d].length?v.markerUnselectedOptions[d]:{};v.scatter2d.update(j)}v.select2d&amp;&amp;(v.select2d.update(v.markerOptions),v.select2d.update(v.markerSelectedOptions)),v.glText&amp;&amp;r.forEach((function(t){var e=((t||[])[0]||{}).trace||{};u.hasText(e)&amp;&amp;h(t)}))}else v.scatter2d&amp;&amp;v.scatter2d.update(v.markerOptions);var U={viewport:p(m,y,x),range:[(y._rl||y.range)[0],(x._rl||x.range)[0],(y._rl||y.range)[1],(x._rl||x.range)[1]]},V=s.repeat(U,v.count);v.fill2d&amp;&amp;v.fill2d.update(V),v.line2d&amp;&amp;v.line2d.update(V),v.error2d&amp;&amp;v.error2d.update(V.concat(V)),v.scatter2d&amp;&amp;v.scatter2d.update(V),v.select2d&amp;&amp;v.select2d.update(V),v.glText&amp;&amp;v.glText.forEach((function(t){t.update(U)}))}else v.init()}}},{&quot;../../components/dragelement/helpers&quot;:661,&quot;../../lib&quot;:778,&quot;../../lib/prepare_regl&quot;:791,&quot;../scatter/link_traces&quot;:1203,&quot;../scatter/subtypes&quot;:1212,&quot;./edit_style&quot;:1244,&quot;gl-text&quot;:352,&quot;regl-error2d&quot;:534,&quot;regl-line2d&quot;:535,&quot;regl-scatter2d&quot;:537}],1250:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=e._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return e._scene||((r=e._scene={}).init=function(){n.extendFlat(r,a,i)},r.init(),r.update=function(t){var e=n.repeat(t,r.count);if(r.fill2d&amp;&amp;r.fill2d.update(e),r.scatter2d&amp;&amp;r.scatter2d.update(e),r.line2d&amp;&amp;r.line2d.update(e),r.error2d&amp;&amp;r.error2d.update(e.concat(e)),r.select2d&amp;&amp;r.select2d.update(e),r.glText)for(var i=0;i&lt;r.count;i++)r.glText[i].update(t)},r.draw=function(){for(var t=r.count,e=r.fill2d,i=r.error2d,a=r.line2d,o=r.scatter2d,s=r.glText,l=r.select2d,c=r.selectBatch,u=r.unselectBatch,f=0;f&lt;t;f++){if(e&amp;&amp;r.fillOrder[f]&amp;&amp;e.draw(r.fillOrder[f]),a&amp;&amp;r.lineOptions[f]&amp;&amp;a.draw(f),i&amp;&amp;(r.errorXOptions[f]&amp;&amp;i.draw(f),r.errorYOptions[f]&amp;&amp;i.draw(f+t)),o&amp;&amp;r.markerOptions[f])if(u[f].length){var h=n.repeat([],r.count);h[f]=u[f],o.draw(h)}else c[f].length||o.draw(f);s[f]&amp;&amp;r.textOptions[f]&amp;&amp;s[f].render()}l&amp;&amp;l.draw(c),r.dirty=!1},r.destroy=function(){r.fill2d&amp;&amp;r.fill2d.destroy&amp;&amp;r.fill2d.destroy(),r.scatter2d&amp;&amp;r.scatter2d.destroy&amp;&amp;r.scatter2d.destroy(),r.error2d&amp;&amp;r.error2d.destroy&amp;&amp;r.error2d.destroy(),r.line2d&amp;&amp;r.line2d.destroy&amp;&amp;r.line2d.destroy(),r.select2d&amp;&amp;r.select2d.destroy&amp;&amp;r.select2d.destroy(),r.glText&amp;&amp;r.glText.forEach((function(t){t.destroy&amp;&amp;t.destroy()})),r.lineOptions=null,r.fillOptions=null,r.markerOptions=null,r.markerSelectedOptions=null,r.markerUnselectedOptions=null,r.errorXOptions=null,r.errorYOptions=null,r.textOptions=null,r.textSelectedOptions=null,r.textUnselectedOptions=null,r.selectBatch=null,r.unselectBatch=null,e._scene=null}),r.dirty||n.extendFlat(r,i),r}},{&quot;../../lib&quot;:778}],1251:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/subtypes&quot;),i=t(&quot;./edit_style&quot;).styleTextSelection;e.exports=function(t,e){var r=t.cd,a=[],o=r[0].trace,s=r[0].t,l=o._length,c=s.x,u=s.y,f=s._scene,h=s.index;if(!f)return a;var p=n.hasText(o),d=n.hasMarkers(o),g=!d&amp;&amp;!p;if(!0!==o.visible||g)return a;var m=[],v=[];if(!1!==e&amp;&amp;!e.degenerate)for(var y=0;y&lt;l;y++)e.contains([s.xpx[y],s.ypx[y]],!1,y,t)?(m.push(y),a.push({pointNumber:y,x:c[y],y:u[y]})):v.push(y);if(d){var x=f.scatter2d;if(m.length||v.length){if(!f.selectBatch[h].length&amp;&amp;!f.unselectBatch[h].length){var b=new Array(f.count);b[h]=f.markerUnselectedOptions[h],x.update.apply(x,b)}}else{var _=new Array(f.count);_[h]=f.markerOptions[h],x.update.apply(x,_)}}return f.selectBatch[h]=m,f.unselectBatch[h]=v,p&amp;&amp;i(r),a}},{&quot;../scatter/subtypes&quot;:1212,&quot;./edit_style&quot;:1244}],1252:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scattergeo/attributes&quot;),o=t(&quot;../scatter/attributes&quot;),s=t(&quot;../../plots/mapbox/layout_attributes&quot;),l=t(&quot;../../plots/attributes&quot;),c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat,f=t(&quot;../../plot_api/edit_types&quot;).overrideAll,h=a.line,p=a.marker;e.exports=f({lon:a.lon,lat:a.lat,mode:u({},o.mode,{dflt:&quot;markers&quot;}),text:u({},o.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;lat&quot;,&quot;lon&quot;,&quot;text&quot;]}),hovertext:u({},o.hovertext,{}),line:{color:h.color,width:h.width},connectgaps:o.connectgaps,marker:u({symbol:{valType:&quot;string&quot;,dflt:&quot;circle&quot;,arrayOk:!0},angle:{valType:&quot;number&quot;,dflt:&quot;auto&quot;,arrayOk:!0},allowoverlap:{valType:&quot;boolean&quot;,dflt:!1},opacity:p.opacity,size:p.size,sizeref:p.sizeref,sizemin:p.sizemin,sizemode:p.sizemode},c(&quot;marker&quot;)),fill:a.fill,fillcolor:o.fillcolor,textfont:s.layers.symbol.textfont,textposition:s.layers.symbol.textposition,below:{valType:&quot;string&quot;},selected:{marker:o.selected.marker},unselected:{marker:o.unselected.marker},hoverinfo:u({},l.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n()},&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/mapbox/layout_attributes&quot;:887,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187,&quot;../scattergeo/attributes&quot;:1229}],1253:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../lib/geojson_utils&quot;),s=t(&quot;../../components/colorscale&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../scatter/make_bubble_size_func&quot;),u=t(&quot;../scatter/subtypes&quot;),f=t(&quot;../../plots/mapbox/convert_text_opts&quot;),h=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,p=t(&quot;../../lib/svg_text_utils&quot;).NEWLINES,d=t(&quot;../../lib/svg_text_utils&quot;).BR_TAG_ALL;function g(){return{geojson:o.makeBlank(),layout:{visibility:&quot;none&quot;},paint:{}}}function m(t,e){return i.isArrayOrTypedArray(t)?e?function(e){return n(t[e])?+t[e]:0}:function(e){return t[e]}:t?function(){return t}:v}function v(){return&quot;&quot;}function y(t){return t[0]===a}e.exports=function(t,e){var r,a=e[0].trace,x=!0===a.visible&amp;&amp;0!==a._length,b=&quot;none&quot;!==a.fill,_=u.hasLines(a),w=u.hasMarkers(a),T=u.hasText(a),k=w&amp;&amp;&quot;circle&quot;===a.marker.symbol,M=w&amp;&amp;&quot;circle&quot;!==a.marker.symbol,A=g(),S=g(),E=g(),C=g(),L={fill:A,line:S,circle:E,symbol:C};if(!x)return L;if((b||_)&amp;&amp;(r=o.calcTraceToLineCoords(e)),b&amp;&amp;(A.geojson=o.makePolygon(r),A.layout.visibility=&quot;visible&quot;,i.extendFlat(A.paint,{&quot;fill-color&quot;:a.fillcolor})),_&amp;&amp;(S.geojson=o.makeLine(r),S.layout.visibility=&quot;visible&quot;,i.extendFlat(S.paint,{&quot;line-width&quot;:a.line.width,&quot;line-color&quot;:a.line.color,&quot;line-opacity&quot;:a.opacity})),k){var I=function(t){var e,r,a,o,u=t[0].trace,f=u.marker,h=u.selectedpoints,p=i.isArrayOrTypedArray(f.color),d=i.isArrayOrTypedArray(f.size),g=i.isArrayOrTypedArray(f.opacity);function m(t){return u.opacity*t}p&amp;&amp;(r=s.hasColorscale(u,&quot;marker&quot;)?s.makeColorScaleFuncFromTrace(f):i.identity);d&amp;&amp;(a=c(u));g&amp;&amp;(o=function(t){return m(n(t)?+i.constrain(t,0,1):0)});var v,x=[];for(e=0;e&lt;t.length;e++){var b=t[e],_=b.lonlat;if(!y(_)){var w={};r&amp;&amp;(w.mcc=b.mcc=r(b.mc)),a&amp;&amp;(w.mrc=b.mrc=a(b.ms)),o&amp;&amp;(w.mo=o(b.mo)),h&amp;&amp;(w.selected=b.selected||0),x.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:_},properties:w})}}if(h)for(v=l.makeSelectedPointStyleFns(u),e=0;e&lt;x.length;e++){var T=x[e].properties;v.selectedOpacityFn&amp;&amp;(T.mo=m(v.selectedOpacityFn(T))),v.selectedColorFn&amp;&amp;(T.mcc=v.selectedColorFn(T)),v.selectedSizeFn&amp;&amp;(T.mrc=v.selectedSizeFn(T))}return{geojson:{type:&quot;FeatureCollection&quot;,features:x},mcc:p||v&amp;&amp;v.selectedColorFn?{type:&quot;identity&quot;,property:&quot;mcc&quot;}:f.color,mrc:d||v&amp;&amp;v.selectedSizeFn?{type:&quot;identity&quot;,property:&quot;mrc&quot;}:(k=f.size,k/2),mo:g||v&amp;&amp;v.selectedOpacityFn?{type:&quot;identity&quot;,property:&quot;mo&quot;}:m(f.opacity)};var k}(e);E.geojson=I.geojson,E.layout.visibility=&quot;visible&quot;,i.extendFlat(E.paint,{&quot;circle-color&quot;:I.mcc,&quot;circle-radius&quot;:I.mrc,&quot;circle-opacity&quot;:I.mo})}if((M||T)&amp;&amp;(C.geojson=function(t,e){for(var r=e._fullLayout,n=t[0].trace,a=n.marker||{},o=a.symbol,s=a.angle,l=&quot;circle&quot;!==o?m(o):v,c=&quot;auto&quot;!==s?m(s,!0):v,f=u.hasText(n)?m(n.text):v,g=[],x=0;x&lt;t.length;x++){var b=t[x];if(!y(b.lonlat)){var _,w=n.texttemplate;if(w){var T=Array.isArray(w)?w[x]||&quot;&quot;:w,k=n._module.formatLabels(b,n,r),M={};h(M,n,b.i);var A=n._meta||{};_=i.texttemplateString(T,k,r._d3locale,M,b,A)}else _=f(x);_&amp;&amp;(_=_.replace(p,&quot;&quot;).replace(d,&quot;\n&quot;)),g.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:b.lonlat},properties:{symbol:l(x),angle:c(x),text:_}})}}return{type:&quot;FeatureCollection&quot;,features:g}}(e,t),i.extendFlat(C.layout,{visibility:&quot;visible&quot;,&quot;icon-image&quot;:&quot;{symbol}-15&quot;,&quot;text-field&quot;:&quot;{text}&quot;}),M&amp;&amp;(i.extendFlat(C.layout,{&quot;icon-size&quot;:a.marker.size/10}),&quot;angle&quot;in a.marker&amp;&amp;&quot;auto&quot;!==a.marker.angle&amp;&amp;i.extendFlat(C.layout,{&quot;icon-rotate&quot;:{type:&quot;identity&quot;,property:&quot;angle&quot;},&quot;icon-rotation-alignment&quot;:&quot;map&quot;}),C.layout[&quot;icon-allow-overlap&quot;]=a.marker.allowoverlap,i.extendFlat(C.paint,{&quot;icon-opacity&quot;:a.opacity*a.marker.opacity,&quot;icon-color&quot;:a.marker.color})),T)){var P=(a.marker||{}).size,z=f(a.textposition,P);i.extendFlat(C.layout,{&quot;text-size&quot;:a.textfont.size,&quot;text-anchor&quot;:z.anchor,&quot;text-offset&quot;:z.offset}),i.extendFlat(C.paint,{&quot;text-color&quot;:a.textfont.color,&quot;text-opacity&quot;:a.opacity})}return L}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/geojson_utils&quot;:772,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/mapbox/convert_text_opts&quot;:884,&quot;../scatter/make_bubble_size_func&quot;:1204,&quot;../scatter/subtypes&quot;:1212,&quot;fast-isnumeric&quot;:241}],1254:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/text_defaults&quot;),l=t(&quot;../scatter/fillcolor_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}if(function(t,e,r){var n=r(&quot;lon&quot;)||[],i=r(&quot;lat&quot;)||[],a=Math.min(n.length,i.length);return e._length=a,a}(0,e,f)){if(f(&quot;text&quot;),f(&quot;texttemplate&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),f(&quot;below&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,u,f,{noDash:!0}),f(&quot;connectgaps&quot;)),i.hasMarkers(e)){a(t,e,r,u,f,{noLine:!0}),f(&quot;marker.allowoverlap&quot;),f(&quot;marker.angle&quot;);var h=e.marker;&quot;circle&quot;!==h.symbol&amp;&amp;(n.isArrayOrTypedArray(h.size)&amp;&amp;(h.size=h.size[0]),n.isArrayOrTypedArray(h.color)&amp;&amp;(h.color=h.color[0]))}i.hasText(e)&amp;&amp;s(t,e,u,f,{noSelect:!0}),f(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1252}],1255:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t}},{}],1256:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.subplot]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=n.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=n.tickText(a,a.c2l(o[1]),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1257:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/get_trace_color&quot;),o=i.fillText,s=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r){var l=t.cd,c=l[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=360*(e&gt;=0?Math.floor((e+180)/360):Math.ceil((e-180)/360)),d=e-p;if(n.getClosest(l,(function(t){var e=t.lonlat;if(e[0]===s)return 1/0;var n=i.modHalf(e[0],360),a=e[1],o=h.project([n,a]),l=o.x-u.c2p([d,a]),c=o.y-f.c2p([n,r]),p=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(l*l+c*c)-p,1-3/p)}),t),!1!==t.index){var g=l[t.index],m=g.lonlat,v=[i.modHalf(m[0],360)+p,m[1]],y=u.c2p(v),x=f.c2p(v),b=g.mrc||1;t.x0=y-b,t.x1=y+b,t.y0=x-b,t.y1=x+b;var _={};_[c.subplot]={_subplot:h};var w=c._module.formatLabels(g,c,_);return t.lonLabel=w.lonLabel,t.latLabel=w.latLabel,t.color=a(c,g),t.extraText=function(t,e,r){if(t.hovertemplate)return;var n=(e.hi||t.hoverinfo).split(&quot;+&quot;),i=-1!==n.indexOf(&quot;all&quot;),a=-1!==n.indexOf(&quot;lon&quot;),s=-1!==n.indexOf(&quot;lat&quot;),l=e.lonlat,c=[];function u(t){return t+&quot;\xb0&quot;}i||a&amp;&amp;s?c.push(&quot;(&quot;+u(l[0])+&quot;, &quot;+u(l[1])+&quot;)&quot;):a?c.push(r.lon+u(l[0])):s&amp;&amp;c.push(r.lat+u(l[1]));(i||-1!==n.indexOf(&quot;text&quot;))&amp;&amp;o(e,t,c);return c.join(&quot;&lt;br&gt;&quot;)}(c,g,l[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}}},{&quot;../../components/fx&quot;:683,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/get_trace_color&quot;:1197}],1258:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;../scattergeo/calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),styleOnSelect:function(t,e){e&amp;&amp;e[0].trace._glTrace.update(e)},moduleType:&quot;trace&quot;,name:&quot;scattermapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/mapbox&quot;:885,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scattergeo/calc&quot;:1230,&quot;./attributes&quot;:1252,&quot;./defaults&quot;:1254,&quot;./event_data&quot;:1255,&quot;./format_labels&quot;:1256,&quot;./hover&quot;:1257,&quot;./plot&quot;:1259,&quot;./select&quot;:1260}],1259:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;),i=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix,a=[&quot;fill&quot;,&quot;line&quot;,&quot;circle&quot;,&quot;symbol&quot;];function o(t,e){this.type=&quot;scattermapbox&quot;,this.subplot=t,this.uid=e,this.sourceIds={fill:&quot;source-&quot;+e+&quot;-fill&quot;,line:&quot;source-&quot;+e+&quot;-line&quot;,circle:&quot;source-&quot;+e+&quot;-circle&quot;,symbol:&quot;source-&quot;+e+&quot;-symbol&quot;},this.layerIds={fill:i+e+&quot;-fill&quot;,line:i+e+&quot;-line&quot;,circle:i+e+&quot;-circle&quot;,symbol:i+e+&quot;-symbol&quot;},this.below=null}var s=o.prototype;s.addSource=function(t,e){this.subplot.map.addSource(this.sourceIds[t],{type:&quot;geojson&quot;,data:e.geojson})},s.setSourceData=function(t,e){this.subplot.map.getSource(this.sourceIds[t]).setData(e.geojson)},s.addLayer=function(t,e,r){this.subplot.addLayer({type:t,id:this.layerIds[t],source:this.sourceIds[t],layout:e.layout,paint:e.paint},r)},s.update=function(t){var e,r,i,o=this.subplot,s=o.map,l=n(o.gd,t),c=o.belowLookup[&quot;trace-&quot;+this.uid];if(c!==this.below){for(e=a.length-1;e&gt;=0;e--)r=a[e],s.removeLayer(this.layerIds[r]);for(e=0;e&lt;a.length;e++)i=l[r=a[e]],this.addLayer(r,i,c);this.below=c}for(e=0;e&lt;a.length;e++)i=l[r=a[e]],o.setOptions(this.layerIds[r],&quot;setLayoutProperty&quot;,i.layout),&quot;visible&quot;===i.layout.visibility&amp;&amp;(this.setSourceData(r,i),o.setOptions(this.layerIds[r],&quot;setPaintProperty&quot;,i.paint));t[0].trace._glTrace=this},s.dispose=function(){for(var t=this.subplot.map,e=a.length-1;e&gt;=0;e--){var r=a[e];t.removeLayer(this.layerIds[r]),t.removeSource(this.sourceIds[r])}},e.exports=function(t,e){for(var r=e[0].trace,i=new o(t,r.uid),s=n(t.gd,e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid],c=0;c&lt;a.length;c++){var u=a[c],f=s[u];i.addSource(u,f),i.addLayer(u,f,l)}return e[0].trace._glTrace=i,i}},{&quot;../../plots/mapbox/constants&quot;:883,&quot;./convert&quot;:1253}],1260:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e){var r,o=t.cd,s=t.xaxis,l=t.yaxis,c=[],u=o[0].trace;if(!i.hasMarkers(u))return[];if(!1===e)for(r=0;r&lt;o.length;r++)o[r].selected=0;else for(r=0;r&lt;o.length;r++){var f=o[r],h=f.lonlat;if(h[0]!==a){var p=[n.modHalf(h[0],360),h[1]],d=[s.c2p(p),l.c2p(p)];e.contains(d,null,r,t)?(c.push({pointNumber:r,lon:h[0],lat:h[1]}),f.selected=1):f.selected=0}}return c}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/subtypes&quot;:1212}],1261:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../scatter/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=o.line;e.exports={mode:o.mode,r:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},theta:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},r0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dr:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},theta0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dtheta:{valType:&quot;number&quot;,editType:&quot;calc&quot;},thetaunit:{valType:&quot;enumerated&quot;,values:[&quot;radians&quot;,&quot;degrees&quot;,&quot;gradians&quot;],dflt:&quot;degrees&quot;,editType:&quot;calc+clearAxisTypes&quot;},text:o.text,texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]}),hovertext:o.hovertext,line:{color:l.color,width:l.width,dash:l.dash,shape:a({},l.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:l.smoothing,editType:&quot;calc&quot;},connectgaps:o.connectgaps,marker:o.marker,cliponaxis:a({},o.cliponaxis,{dflt:!1}),textposition:o.textposition,textfont:o.textfont,fill:a({},o.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:o.fillcolor,hoverinfo:a({},s.hoverinfo,{flags:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:o.hoveron,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1262:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../scatter/colorscale_calc&quot;),s=t(&quot;../scatter/arrays_to_calcdata&quot;),l=t(&quot;../scatter/calc_selection&quot;),c=t(&quot;../scatter/calc&quot;).calcMarkerSize;e.exports=function(t,e){for(var r=t._fullLayout,u=e.subplot,f=r[u].radialaxis,h=r[u].angularaxis,p=f.makeCalcdata(e,&quot;r&quot;),d=h.makeCalcdata(e,&quot;theta&quot;),g=e._length,m=new Array(g),v=0;v&lt;g;v++){var y=p[v],x=d[v],b=m[v]={};n(y)&amp;&amp;n(x)?(b.r=y,b.theta=x):b.r=i}var _=c(e,g);return e._extremes.x=a.findExtremes(f,p,{ppad:_}),o(t,e),s(m,e),l(m,e),m}},{&quot;../../constants/numerical&quot;:753,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc&quot;:1188,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1263:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/line_shape_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;../scatter/fillcolor_defaults&quot;),u=t(&quot;../scatter/constants&quot;).PTS_LINESONLY,f=t(&quot;./attributes&quot;);function h(t,e,r,n){var i,a=n(&quot;r&quot;),o=n(&quot;theta&quot;);if(a)o?i=Math.min(a.length,o.length):(i=a.length,n(&quot;theta0&quot;),n(&quot;dtheta&quot;));else{if(!o)return 0;i=e.theta.length,n(&quot;r0&quot;),n(&quot;dr&quot;)}return e._length=i,i}e.exports={handleRThetaDefaults:h,supplyDefaults:function(t,e,r,p){function d(r,i){return n.coerce(t,e,f,r,i)}var g=h(t,e,p,d);if(g){d(&quot;thetaunit&quot;),d(&quot;mode&quot;,g&lt;u?&quot;lines+markers&quot;:&quot;lines&quot;),d(&quot;text&quot;),d(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;d(&quot;hovertemplate&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,p,d),s(t,e,d),d(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;a(t,e,r,p,d,{gradient:!0}),i.hasText(e)&amp;&amp;(d(&quot;texttemplate&quot;),l(t,e,p,d));var m=[];(i.hasMarkers(e)||i.hasText(e))&amp;&amp;(d(&quot;cliponaxis&quot;),d(&quot;marker.maxdisplayed&quot;),m.push(&quot;points&quot;)),d(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(c(t,e,r,d),i.hasLines(e)||s(t,e,d)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||m.push(&quot;fills&quot;),d(&quot;hoveron&quot;,m.join(&quot;+&quot;)||&quot;points&quot;),n.coerceSelectionMarkerOpacity(e,d)}else e.visible=!1}}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/line_shape_defaults&quot;:1202,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1261}],1264:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var a,o,s={},l=r[e.subplot]._subplot;l?(a=l.radialAxis,o=l.angularAxis):(a=(l=r[e.subplot]).radialaxis,o=l.angularaxis);var c=a.c2l(t.r);s.rLabel=i.tickText(a,c,!0).text;var u=&quot;degrees&quot;===o.thetaunit?n.rad2deg(t.theta):t.theta;return s.thetaLabel=i.tickText(o,u,!0).text,s}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1265:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;);function i(t,e,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle=&quot;r&quot;,a._hovertitle=&quot;\u03b8&quot;;var o={};o[e.subplot]={_subplot:r};var s=e._module.formatLabels(t,e,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var l=t.hi||e.hoverinfo,c=[];function u(t,e){c.push(t._hovertitle+&quot;: &quot;+e)}if(!e.hovertemplate){var f=l.split(&quot;+&quot;);-1!==f.indexOf(&quot;all&quot;)&amp;&amp;(f=[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]),-1!==f.indexOf(&quot;r&quot;)&amp;&amp;u(i,n.rLabel),-1!==f.indexOf(&quot;theta&quot;)&amp;&amp;u(a,n.thetaLabel),-1!==f.indexOf(&quot;text&quot;)&amp;&amp;n.text&amp;&amp;(c.push(n.text),delete n.text),n.extraText=c.join(&quot;&lt;br&gt;&quot;)}}e.exports={hoverPoints:function(t,e,r,a){var o=n(t,e,r,a);if(o&amp;&amp;!1!==o[0].index){var s=o[0];if(void 0===s.index)return o;var l=t.subplot,c=s.cd[s.index],u=s.trace;if(l.isPtInside(c))return s.xLabelVal=void 0,s.yLabelVal=void 0,i(c,u,l,s),s.hovertemplate=u.hovertemplate,o}},makeHoverPointText:i}},{&quot;../scatter/hover&quot;:1198}],1266:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;scatterpolar&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;polar&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;../scatter/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:894,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/select&quot;:1209,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1261,&quot;./calc&quot;:1262,&quot;./defaults&quot;:1263,&quot;./format_labels&quot;:1264,&quot;./hover&quot;:1265,&quot;./plot&quot;:1267}],1267:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r){for(var a=e.layers.frontplot.select(&quot;g.scatterlayer&quot;),o={xaxis:e.xaxis,yaxis:e.yaxis,plot:e.framework,layerClipId:e._hasClipOnAxisFalse?e.clipIds.forTraces:null},s=e.radialAxis,l=e.angularAxis,c=0;c&lt;r.length;c++)for(var u=r[c],f=0;f&lt;u.length;f++){var h=u[f],p=h.r;if(p===i)h.x=h.y=i;else{var d=s.c2g(p),g=l.c2g(h.theta);h.x=d*Math.cos(g),h.y=d*Math.sin(g)}}n(t,o,r,a)}},{&quot;../../constants/numerical&quot;:753,&quot;../scatter/plot&quot;:1208}],1268:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatterpolar/attributes&quot;),i=t(&quot;../scattergl/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs;e.exports={mode:n.mode,r:n.r,theta:n.theta,r0:n.r0,dr:n.dr,theta0:n.theta0,dtheta:n.dtheta,thetaunit:n.thetaunit,text:n.text,texttemplate:a({editType:&quot;plot&quot;},{keys:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]}),hovertext:n.hovertext,hovertemplate:n.hovertemplate,line:i.line,connectgaps:i.connectgaps,marker:i.marker,fill:i.fill,fillcolor:i.fillcolor,textposition:i.textposition,textfont:i.textfont,hoverinfo:n.hoverinfo,selected:n.selected,unselected:n.unselected}},{&quot;../../plots/template_attributes&quot;:906,&quot;../scattergl/attributes&quot;:1239,&quot;../scatterpolar/attributes&quot;:1261}],1269:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/colorscale_calc&quot;),i=t(&quot;../scatter/calc&quot;).calcMarkerSize,a=t(&quot;../scattergl/convert&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e){var r=t._fullLayout,l=e.subplot,c=r[l].radialaxis,u=r[l].angularaxis,f=e._r=c.makeCalcdata(e,&quot;r&quot;),h=e._theta=u.makeCalcdata(e,&quot;theta&quot;),p=e._length,d={};p&lt;f.length&amp;&amp;(f=f.slice(0,p)),p&lt;h.length&amp;&amp;(h=h.slice(0,p)),d.r=f,d.theta=h,n(t,e);var g,m=d.opts=a.style(t,e);return p&lt;s?g=i(e,p):m.marker&amp;&amp;(g=2*(m.marker.sizeAvg||Math.max(m.marker.size,3))),e._extremes.x=o.findExtremes(c,f,{ppad:g}),[{x:!1,y:!1,t:d,trace:e}]}},{&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc&quot;:1188,&quot;../scatter/colorscale_calc&quot;:1190,&quot;../scattergl/constants&quot;:1241,&quot;../scattergl/convert&quot;:1242}],1270:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatterpolar/defaults&quot;).handleRThetaDefaults,o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;../scatter/fillcolor_defaults&quot;),u=t(&quot;../scatter/constants&quot;).PTS_LINESONLY,f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d=a(t,e,h,p);d?(p(&quot;thetaunit&quot;),p(&quot;mode&quot;,d&lt;u?&quot;lines+markers&quot;:&quot;lines&quot;),p(&quot;text&quot;),p(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;p(&quot;hovertemplate&quot;),i.hasLines(e)&amp;&amp;(s(t,e,r,h,p),p(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;o(t,e,r,h,p),i.hasText(e)&amp;&amp;(p(&quot;texttemplate&quot;),l(t,e,h,p)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;c(t,e,r,p),n.coerceSelectionMarkerOpacity(e,p)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;../scatterpolar/defaults&quot;:1263,&quot;./attributes&quot;:1268}],1271:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatterpolar/format_labels&quot;);e.exports=function(t,e,r){var i=t.i;return&quot;r&quot;in t||(t.r=e._r[i]),&quot;theta&quot;in t||(t.theta=e._theta[i]),n(t,e,r)}},{&quot;../scatterpolar/format_labels&quot;:1264}],1272:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scattergl/hover&quot;),i=t(&quot;../scatterpolar/hover&quot;).makeHoverPointText;e.exports={hoverPoints:function(t,e,r,a){var o=t.cd[0].t,s=o.r,l=o.theta,c=n.hoverPoints(t,e,r,a);if(c&amp;&amp;!1!==c[0].index){var u=c[0];if(void 0===u.index)return c;var f=t.subplot,h=u.cd[u.index],p=u.trace;if(h.r=s[u.index],h.theta=l[u.index],f.isPtInside(h))return u.xLabelVal=void 0,u.yLabelVal=void 0,i(h,p,f,u),c}}}},{&quot;../scattergl/hover&quot;:1247,&quot;../scatterpolar/hover&quot;:1265}],1273:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;scatterpolargl&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;polar&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;../scattergl/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:894,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scattergl/select&quot;:1251,&quot;./attributes&quot;:1268,&quot;./calc&quot;:1269,&quot;./defaults&quot;:1270,&quot;./format_labels&quot;:1271,&quot;./hover&quot;:1272,&quot;./plot&quot;:1274}],1274:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/point-cluster&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../scattergl/plot&quot;),o=t(&quot;../scattergl/scene_update&quot;),s=t(&quot;../scattergl/convert&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e,r){if(r.length){var u=e.radialAxis,f=e.angularAxis,h=o(t,e);return r.forEach((function(r){if(r&amp;&amp;r[0]&amp;&amp;r[0].trace){var a,o=r[0],p=o.trace,d=o.t,g=p._length,m=d.r,v=d.theta,y=d.opts,x=m.slice(),b=v.slice();for(a=0;a&lt;m.length;a++)e.isPtInside({r:m[a],theta:v[a]})||(x[a]=NaN,b[a]=NaN);var _=new Array(2*g),w=Array(g),T=Array(g);for(a=0;a&lt;g;a++){var k,M,A=x[a];if(i(A)){var S=u.c2g(A),E=f.c2g(b[a],p.thetaunit);k=S*Math.cos(E),M=S*Math.sin(E)}else k=M=NaN;w[a]=_[2*a]=k,T[a]=_[2*a+1]=M}d.tree=n(_),y.marker&amp;&amp;g&gt;=c&amp;&amp;(y.marker.cluster=d.tree),y.marker&amp;&amp;(y.markerSel.positions=y.markerUnsel.positions=y.marker.positions=_),y.line&amp;&amp;_.length&gt;1&amp;&amp;l.extendFlat(y.line,s.linePositions(t,p,_)),y.text&amp;&amp;(l.extendFlat(y.text,{positions:_},s.textPosition(t,p,y.text,y.marker)),l.extendFlat(y.textSel,{positions:_},s.textPosition(t,p,y.text,y.markerSel)),l.extendFlat(y.textUnsel,{positions:_},s.textPosition(t,p,y.text,y.markerUnsel))),y.fill&amp;&amp;!h.fill2d&amp;&amp;(h.fill2d=!0),y.marker&amp;&amp;!h.scatter2d&amp;&amp;(h.scatter2d=!0),y.line&amp;&amp;!h.line2d&amp;&amp;(h.line2d=!0),y.text&amp;&amp;!h.glText&amp;&amp;(h.glText=!0),h.lineOptions.push(y.line),h.fillOptions.push(y.fill),h.markerOptions.push(y.marker),h.markerSelectedOptions.push(y.markerSel),h.markerUnselectedOptions.push(y.markerUnsel),h.textOptions.push(y.text),h.textSelectedOptions.push(y.textSel),h.textUnselectedOptions.push(y.textUnsel),h.selectBatch.push([]),h.unselectBatch.push([]),d.x=w,d.y=T,d.rawx=w,d.rawy=T,d.r=m,d.theta=v,d.positions=_,d._scene=h,d.index=h.count,h.count++}})),a(t,e,r)}}},{&quot;../../lib&quot;:778,&quot;../scattergl/constants&quot;:1241,&quot;../scattergl/convert&quot;:1242,&quot;../scattergl/plot&quot;:1249,&quot;../scattergl/scene_update&quot;:1250,&quot;@plotly/point-cluster&quot;:57,&quot;fast-isnumeric&quot;:241}],1275:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scatter/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../lib/extend&quot;).extendFlat,u=a.marker,f=a.line,h=u.line;e.exports={a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},c:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sum:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;calc&quot;},mode:c({},a.mode,{dflt:&quot;markers&quot;}),text:c({},a.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;text&quot;]}),hovertext:c({},a.hovertext,{}),line:{color:f.color,width:f.width,dash:l,shape:c({},f.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:f.smoothing,editType:&quot;calc&quot;},connectgaps:a.connectgaps,cliponaxis:a.cliponaxis,fill:c({},a.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:a.fillcolor,marker:c({symbol:u.symbol,opacity:u.opacity,maxdisplayed:u.maxdisplayed,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,line:c({width:h.width,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),gradient:u.gradient,editType:&quot;calc&quot;},s(&quot;marker&quot;)),textfont:a.textfont,textposition:a.textposition,selected:a.selected,unselected:a.unselected,hoverinfo:c({},o.hoverinfo,{flags:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:a.hoveron,hovertemplate:n()}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing/attributes&quot;:664,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1276:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scatter/arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../scatter/calc&quot;).calcMarkerSize,l=[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],c={a:[&quot;b&quot;,&quot;c&quot;],b:[&quot;a&quot;,&quot;c&quot;],c:[&quot;a&quot;,&quot;b&quot;]};e.exports=function(t,e){var r,u,f,h,p,d,g=t._fullLayout[e.subplot].sum,m=e.sum||g,v={a:e.a,b:e.b,c:e.c};for(r=0;r&lt;l.length;r++)if(!v[f=l[r]]){for(p=v[c[f][0]],d=v[c[f][1]],h=new Array(p.length),u=0;u&lt;p.length;u++)h[u]=m-p[u]-d[u];v[f]=h}var y,x,b,_,w,T,k=e._length,M=new Array(k);for(r=0;r&lt;k;r++)y=v.a[r],x=v.b[r],b=v.c[r],n(y)&amp;&amp;n(x)&amp;&amp;n(b)?(1!==(_=g/((y=+y)+(x=+x)+(b=+b)))&amp;&amp;(y*=_,x*=_,b*=_),T=y,w=b-x,M[r]={x:w,y:T,a:y,b:x,c:b}):M[r]={x:!1,y:!1};return s(e,k),i(t,e),a(M,e),o(M,e),M}},{&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc&quot;:1188,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1277:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/constants&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/line_shape_defaults&quot;),c=t(&quot;../scatter/text_defaults&quot;),u=t(&quot;../scatter/fillcolor_defaults&quot;),f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d,g=p(&quot;a&quot;),m=p(&quot;b&quot;),v=p(&quot;c&quot;);if(g?(d=g.length,m?(d=Math.min(d,m.length),v&amp;&amp;(d=Math.min(d,v.length))):d=v?Math.min(d,v.length):0):m&amp;&amp;v&amp;&amp;(d=Math.min(m.length,v.length)),d){e._length=d,p(&quot;sum&quot;),p(&quot;text&quot;),p(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;p(&quot;hovertemplate&quot;),p(&quot;mode&quot;,d&lt;i.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;),a.hasLines(e)&amp;&amp;(s(t,e,r,h,p),l(t,e,p),p(&quot;connectgaps&quot;)),a.hasMarkers(e)&amp;&amp;o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&amp;&amp;(p(&quot;texttemplate&quot;),c(t,e,h,p));var y=[];(a.hasMarkers(e)||a.hasText(e))&amp;&amp;(p(&quot;cliponaxis&quot;),p(&quot;marker.maxdisplayed&quot;),y.push(&quot;points&quot;)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||y.push(&quot;fills&quot;),p(&quot;hoveron&quot;,y.join(&quot;+&quot;)||&quot;points&quot;),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/line_shape_defaults&quot;:1202,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1275}],1278:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){if(e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),n[i]){var a=n[i];t.a=a.a,t.b=a.b,t.c=a.c}else t.a=e.a,t.b=e.b,t.c=e.c;return t}},{}],1279:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.subplot]._subplot;return i.aLabel=n.tickText(a.aaxis,t.a,!0).text,i.bLabel=n.tickText(a.baxis,t.b,!0).text,i.cLabel=n.tickText(a.caxis,t.c,!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1280:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;);e.exports=function(t,e,r,i){var a=n(t,e,r,i);if(a&amp;&amp;!1!==a[0].index){var o=a[0];if(void 0===o.index){var s=1-o.y0/t.ya._length,l=t.xa._length,c=l*s/2,u=l-c;return o.x0=Math.max(Math.min(o.x0,u),c),o.x1=Math.max(Math.min(o.x1,u),c),a}var f=o.cd[o.index],h=o.trace,p=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var d={};d[h.subplot]={_subplot:p};var g=h._module.formatLabels(f,h,d);o.aLabel=g.aLabel,o.bLabel=g.bLabel,o.cLabel=g.cLabel;var m=f.hi||h.hoverinfo,v=[];if(!h.hovertemplate){var y=m.split(&quot;+&quot;);-1!==y.indexOf(&quot;all&quot;)&amp;&amp;(y=[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]),-1!==y.indexOf(&quot;a&quot;)&amp;&amp;x(p.aaxis,o.aLabel),-1!==y.indexOf(&quot;b&quot;)&amp;&amp;x(p.baxis,o.bLabel),-1!==y.indexOf(&quot;c&quot;)&amp;&amp;x(p.caxis,o.cLabel)}return o.extraText=v.join(&quot;&lt;br&gt;&quot;),o.hovertemplate=h.hovertemplate,a}function x(t,e){v.push(t._hovertitle+&quot;: &quot;+e)}}},{&quot;../scatter/hover&quot;:1198}],1281:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../scatter/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;scatterternary&quot;,basePlotModule:t(&quot;../../plots/ternary&quot;),categories:[&quot;ternary&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/ternary&quot;:907,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/select&quot;:1209,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1275,&quot;./calc&quot;:1276,&quot;./defaults&quot;:1277,&quot;./event_data&quot;:1278,&quot;./format_labels&quot;:1279,&quot;./hover&quot;:1280,&quot;./plot&quot;:1282}],1282:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;);e.exports=function(t,e,r){var i=e.plotContainer;i.select(&quot;.scatterlayer&quot;).selectAll(&quot;*&quot;).remove();var a={xaxis:e.xaxis,yaxis:e.yaxis,plot:i,layerClipId:e._hasClipOnAxisFalse?e.clipIdRelative:null},o=e.layers.frontplot.select(&quot;g.scatterlayer&quot;);n(t,a,r,o)}},{&quot;../scatter/plot&quot;:1208}],1283:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../scattergl/attributes&quot;),s=t(&quot;../../plots/cartesian/constants&quot;).idRegex,l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=t(&quot;../../lib/extend&quot;).extendFlat,u=n.marker,f=u.line,h=c(i(&quot;marker.line&quot;,{editTypeOverride:&quot;calc&quot;}),{width:c({},f.width,{editType:&quot;calc&quot;}),editType:&quot;calc&quot;}),p=c(i(&quot;marker&quot;),{symbol:u.symbol,size:c({},u.size,{editType:&quot;markerSize&quot;}),sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,opacity:u.opacity,colorbar:u.colorbar,line:h,editType:&quot;calc&quot;});function d(t){return{valType:&quot;info_array&quot;,freeLength:!0,editType:&quot;calc&quot;,items:{valType:&quot;subplotid&quot;,regex:s[t],editType:&quot;plot&quot;}}}p.color.editType=p.cmin.editType=p.cmax.editType=&quot;style&quot;,e.exports={dimensions:l(&quot;dimension&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},label:{valType:&quot;string&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},axis:{type:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;],editType:&quot;calc+clearAxisTypes&quot;},matches:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},editType:&quot;calc+clearAxisTypes&quot;},editType:&quot;calc+clearAxisTypes&quot;}),text:c({},o.text,{}),hovertext:c({},o.hovertext,{}),hovertemplate:a(),marker:p,xaxes:d(&quot;x&quot;),yaxes:d(&quot;y&quot;),diagonal:{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},showupperhalf:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},showlowerhalf:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},selected:{marker:o.selected.marker,editType:&quot;calc&quot;},unselected:{marker:o.unselected.marker,editType:&quot;calc&quot;},opacity:o.opacity}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187,&quot;../scattergl/attributes&quot;:1239}],1284:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-line2d&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib/prepare_regl&quot;),o=t(&quot;../../plots/get_data&quot;).getModuleCalcData,s=t(&quot;../../plots/cartesian&quot;),l=t(&quot;../../plots/cartesian/axis_ids&quot;).getFromId,c=t(&quot;../../plots/cartesian/axes&quot;).shouldShowZeroLine;function u(t,e,r){for(var n=r.matrixOptions.data.length,i=e._visibleDims,a=r.viewOpts.ranges=new Array(n),o=0;o&lt;i.length;o++){var s=i[o],c=a[o]=new Array(4),u=l(t,e._diag[s][0]);u&amp;&amp;(c[0]=u.r2l(u.range[0]),c[2]=u.r2l(u.range[1]));var f=l(t,e._diag[s][1]);f&amp;&amp;(c[1]=f.r2l(f.range[0]),c[3]=f.r2l(f.range[1]))}r.selectBatch.length||r.unselectBatch.length?r.matrix.update({ranges:a},{ranges:a}):r.matrix.update({ranges:a})}function f(t){var e=t._fullLayout,r=e._glcanvas.data()[0].regl,i=e._splomGrid;i||(i=e._splomGrid=n(r)),i.update(function(t){var e,r=t._fullLayout,n=r._size,i=[0,0,r.width,r.height],a={};function o(t,e,r,n,o,s){var l=e[t+&quot;color&quot;],c=e[t+&quot;width&quot;],u=String(l+c);u in a?a[u].data.push(NaN,NaN,r,n,o,s):a[u]={data:[r,n,o,s],join:&quot;rect&quot;,thickness:c,color:l,viewport:i,range:i,overlay:!1}}for(e in r._splomSubplots){var s,l,u=r._plots[e],f=u.xaxis,h=u.yaxis,p=f._gridVals,d=h._gridVals,g=n.b+h.domain[0]*n.h,m=-h._m,v=-m*h.r2l(h.range[0],h.calendar);if(f.showgrid)for(e=0;e&lt;p.length;e++)s=f._offset+f.l2p(p[e].x),o(&quot;grid&quot;,f,s,g,s,g+h._length);if(h.showgrid)for(e=0;e&lt;d.length;e++)l=g+v+m*d[e].x,o(&quot;grid&quot;,h,f._offset,l,f._offset+f._length,l);c(t,f,h)&amp;&amp;(s=f._offset+f.l2p(0),o(&quot;zeroline&quot;,f,s,g,s,g+h._length)),c(t,h,f)&amp;&amp;(l=g+v+0,o(&quot;zeroline&quot;,h,f._offset,l,f._offset+f._length,l))}var y=[];for(e in a)y.push(a[e]);return y}(t))}e.exports={name:&quot;splom&quot;,attr:s.attr,attrRegex:s.attrRegex,layoutAttributes:s.layoutAttributes,supplyLayoutDefaults:s.supplyLayoutDefaults,drawFramework:s.drawFramework,plot:function(t){var e=t._fullLayout,r=i.getModule(&quot;splom&quot;),n=o(t.calcdata,r)[0];a(t,[&quot;ANGLE_instanced_arrays&quot;,&quot;OES_element_index_uint&quot;])&amp;&amp;(e._hasOnlyLargeSploms&amp;&amp;f(t),r.plot(t,{},n))},drag:function(t){var e=t.calcdata,r=t._fullLayout;r._hasOnlyLargeSploms&amp;&amp;f(t);for(var n=0;n&lt;e.length;n++){var i=e[n][0].trace,a=r._splomScenes[i.uid];&quot;splom&quot;===i.type&amp;&amp;a&amp;&amp;a.matrix&amp;&amp;u(t,i,a)}},updateGrid:f,clean:function(t,e,r,n){var i,a={};if(n._splomScenes){for(i=0;i&lt;t.length;i++){var o=t[i];&quot;splom&quot;===o.type&amp;&amp;(a[o.uid]=1)}for(i=0;i&lt;r.length;i++){var l=r[i];if(!a[l.uid]){var c=n._splomScenes[l.uid];c&amp;&amp;c.destroy&amp;&amp;c.destroy(),n._splomScenes[l.uid]=null,delete n._splomScenes[l.uid]}}}0===Object.keys(n._splomScenes||{}).length&amp;&amp;delete n._splomScenes,n._splomGrid&amp;&amp;!e._hasOnlyLargeSploms&amp;&amp;n._hasOnlyLargeSploms&amp;&amp;(n._splomGrid.destroy(),n._splomGrid=null,delete n._splomGrid),s.clean(t,e,r,n)},updateFx:s.updateFx,toSVG:s.toSVG}},{&quot;../../lib/prepare_regl&quot;:791,&quot;../../plots/cartesian&quot;:841,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/get_data&quot;:865,&quot;../../registry&quot;:911,&quot;regl-line2d&quot;:535}],1285:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axis_ids&quot;),a=t(&quot;../scatter/calc&quot;).calcMarkerSize,o=t(&quot;../scatter/calc&quot;).calcAxisExpansion,s=t(&quot;../scatter/colorscale_calc&quot;),l=t(&quot;../scattergl/convert&quot;).markerSelection,c=t(&quot;../scattergl/convert&quot;).markerStyle,u=t(&quot;./scene_update&quot;),f=t(&quot;../../constants/numerical&quot;).BADNUM,h=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e){var r,p,d,g,m,v,y=e.dimensions,x=e._length,b={},_=b.cdata=[],w=b.data=[],T=e._visibleDims=[];function k(t,r){for(var i=t.makeCalcdata({v:r.values,vcalendar:e.calendar},&quot;v&quot;),a=0;a&lt;i.length;a++)i[a]=i[a]===f?NaN:i[a];_.push(i),w.push(&quot;log&quot;===t.type?n.simpleMap(i,t.c2l):i)}for(r=0;r&lt;y.length;r++)if((d=y[r]).visible){if(g=i.getFromId(t,e._diag[r][0]),m=i.getFromId(t,e._diag[r][1]),g&amp;&amp;m&amp;&amp;g.type!==m.type){n.log(&quot;Skipping splom dimension &quot;+r+&quot; with conflicting axis types&quot;);continue}g?(k(g,d),m&amp;&amp;&quot;category&quot;===m.type&amp;&amp;(m._categories=g._categories.slice())):k(m,d),T.push(r)}for(s(t,e),n.extendFlat(b,c(e)),v=_.length*x&gt;h?2*(b.sizeAvg||Math.max(b.size,3)):a(e,x),p=0;p&lt;T.length;p++)d=y[r=T[p]],g=i.getFromId(t,e._diag[r][0])||{},m=i.getFromId(t,e._diag[r][1])||{},o(t,e,g,m,_[p],_[p],v);var M=u(t,e);return M.matrix||(M.matrix=!0),M.matrixOptions=b,M.selectedOptions=l(e,e.selected),M.unselectedOptions=l(e,e.unselected),[{x:!1,y:!1,t:{},trace:e}]}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../scatter/calc&quot;:1188,&quot;../scatter/colorscale_calc&quot;:1190,&quot;../scattergl/constants&quot;:1241,&quot;../scattergl/convert&quot;:1242,&quot;./scene_update&quot;:1292}],1286:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../scatter/subtypes&quot;),s=t(&quot;../scatter/marker_defaults&quot;),l=t(&quot;../parcoords/merge_length&quot;),c=t(&quot;../scattergl/helpers&quot;).isOpenSymbol;function u(t,e){function r(r,i){return n.coerce(t,e,a.dimensions,r,i)}r(&quot;label&quot;);var i=r(&quot;values&quot;);i&amp;&amp;i.length?r(&quot;visible&quot;):e.visible=!1,r(&quot;axis.type&quot;),r(&quot;axis.matches&quot;)}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,a,r,i)}var p=i(t,e,{name:&quot;dimensions&quot;,handleItemDefaults:u}),d=h(&quot;diagonal.visible&quot;),g=h(&quot;showupperhalf&quot;),m=h(&quot;showlowerhalf&quot;);if(l(e,p,&quot;values&quot;)&amp;&amp;(d||g||m)){h(&quot;text&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;),s(t,e,r,f,h);var v=c(e.marker.symbol),y=o.isBubble(e);h(&quot;marker.line.width&quot;,v||y?1:0),function(t,e,r,n){var i,a,o=e.dimensions,s=o.length,l=e.showupperhalf,c=e.showlowerhalf,u=e.diagonal.visible,f=new Array(s),h=new Array(s);for(i=0;i&lt;s;i++){var p=i?i+1:&quot;&quot;;f[i]=&quot;x&quot;+p,h[i]=&quot;y&quot;+p}var d=n(&quot;xaxes&quot;,f),g=n(&quot;yaxes&quot;,h),m=e._diag=new Array(s);e._xaxes={},e._yaxes={};var v=[],y=[];function x(t,n,i,a){if(t){var o=t.charAt(0),s=r._splomAxes[o];if(e[&quot;_&quot;+o+&quot;axes&quot;][t]=1,a.push(t),!(t in s)){var l=s[t]={};i&amp;&amp;(l.label=i.label||&quot;&quot;,i.visible&amp;&amp;i.axis&amp;&amp;(i.axis.type&amp;&amp;(l.type=i.axis.type),i.axis.matches&amp;&amp;(l.matches=n)))}}}var b=!u&amp;&amp;!c,_=!u&amp;&amp;!l;for(e._axesDim={},i=0;i&lt;s;i++){var w=o[i],T=0===i,k=i===s-1,M=T&amp;&amp;b||k&amp;&amp;_?void 0:d[i],A=T&amp;&amp;_||k&amp;&amp;b?void 0:g[i];x(M,A,w,v),x(A,M,w,y),m[i]=[M,A],e._axesDim[M]=i,e._axesDim[A]=i}for(i=0;i&lt;v.length;i++)for(a=0;a&lt;y.length;a++){var S=v[i]+y[a];i&gt;a&amp;&amp;l||i&lt;a&amp;&amp;c?r._splomSubplots[S]=1:i!==a||!u&amp;&amp;c&amp;&amp;l||(r._splomSubplots[S]=1)}(!c||!u&amp;&amp;l&amp;&amp;c)&amp;&amp;(r._splomGridDflt.xside=&quot;bottom&quot;,r._splomGridDflt.yside=&quot;left&quot;)}(0,e,f,h),n.coerceSelectionMarkerOpacity(e,h)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../parcoords/merge_length&quot;:1158,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scattergl/helpers&quot;:1246,&quot;./attributes&quot;:1283}],1287:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scattergl/convert&quot;).markerStyle;e.exports=function(t,e){var r=e.trace,o=t._fullLayout._splomScenes[r.uid];if(o){i(t,r),n.extendFlat(o.matrixOptions,a(r));var s=n.extendFlat({},o.matrixOptions,o.viewOpts);o.matrix.update(s,null)}}},{&quot;../../lib&quot;:778,&quot;../scatter/colorscale_calc&quot;:1190,&quot;../scattergl/convert&quot;:1242}],1288:[function(t,e,r){&quot;use strict&quot;;r.getDimIndex=function(t,e){for(var r=e._id,n={x:0,y:1}[r.charAt(0)],i=t._visibleDims,a=0;a&lt;i.length;a++){var o=i[a];if(t._diag[o][n]===r)return a}return!1}},{}],1289:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./helpers&quot;),i=t(&quot;../scattergl/hover&quot;).calcHover;e.exports={hoverPoints:function(t,e,r){var a=t.cd[0].trace,o=t.scene.matrixOptions.cdata,s=t.xa,l=t.ya,c=s.c2p(e),u=l.c2p(r),f=t.distance,h=n.getDimIndex(a,s),p=n.getDimIndex(a,l);if(!1===h||!1===p)return[t];for(var d,g,m=o[h],v=o[p],y=f,x=0;x&lt;m.length;x++){var b=m[x],_=v[x],w=s.c2p(b)-c,T=l.c2p(_)-u,k=Math.sqrt(w*w+T*T);k&lt;y&amp;&amp;(y=g=k,d=x)}return t.index=d,t.distance=y,t.dxy=g,void 0===d?[t]:[i(t,m,v,a)]}}},{&quot;../scattergl/hover&quot;:1247,&quot;./helpers&quot;:1288}],1290:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../components/grid&quot;);e.exports={moduleType:&quot;trace&quot;,name:&quot;splom&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;cartesian&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;./select&quot;),editStyle:t(&quot;./edit_style&quot;),meta:{}},n.register(i)},{&quot;../../components/grid&quot;:687,&quot;../../registry&quot;:911,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1283,&quot;./base_plot&quot;:1284,&quot;./calc&quot;:1285,&quot;./defaults&quot;:1286,&quot;./edit_style&quot;:1287,&quot;./hover&quot;:1289,&quot;./plot&quot;:1291,&quot;./select&quot;:1293}],1291:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-splom&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../components/dragelement/helpers&quot;).selectMode;function s(t,e){var r,s,l,c,u,f=t._fullLayout,h=f._size,p=e.trace,d=e.t,g=f._splomScenes[p.uid],m=g.matrixOptions,v=m.cdata,y=f._glcanvas.data()[0].regl,x=f.dragmode;if(0!==v.length){m.lower=p.showupperhalf,m.upper=p.showlowerhalf,m.diagonal=p.diagonal.visible;var b=p._visibleDims,_=v.length,w=g.viewOpts={};for(w.ranges=new Array(_),w.domains=new Array(_),u=0;u&lt;b.length;u++){l=b[u];var T=w.ranges[u]=new Array(4),k=w.domains[u]=new Array(4);(r=a.getFromId(t,p._diag[l][0]))&amp;&amp;(T[0]=r._rl[0],T[2]=r._rl[1],k[0]=r.domain[0],k[2]=r.domain[1]),(s=a.getFromId(t,p._diag[l][1]))&amp;&amp;(T[1]=s._rl[0],T[3]=s._rl[1],k[1]=s.domain[0],k[3]=s.domain[1])}w.viewport=[h.l,h.b,h.w+h.l,h.h+h.b],!0===g.matrix&amp;&amp;(g.matrix=n(y));var M=f.clickmode.indexOf(&quot;select&quot;)&gt;-1,A=!0;if(o(x)||!!p.selectedpoints||M){var S=p._length;if(p.selectedpoints){g.selectBatch=p.selectedpoints;var E=p.selectedpoints,C={};for(l=0;l&lt;E.length;l++)C[E[l]]=!0;var L=[];for(l=0;l&lt;S;l++)C[l]||L.push(l);g.unselectBatch=L}var I=d.xpx=new Array(_),P=d.ypx=new Array(_);for(u=0;u&lt;b.length;u++){if(l=b[u],r=a.getFromId(t,p._diag[l][0]))for(I[u]=new Array(S),c=0;c&lt;S;c++)I[u][c]=r.c2p(v[u][c]);if(s=a.getFromId(t,p._diag[l][1]))for(P[u]=new Array(S),c=0;c&lt;S;c++)P[u][c]=s.c2p(v[u][c])}if(g.selectBatch.length||g.unselectBatch.length){var z=i.extendFlat({},m,g.unselectedOptions,w),O=i.extendFlat({},m,g.selectedOptions,w);g.matrix.update(z,O),A=!1}}else d.xpx=d.ypx=null;if(A){var D=i.extendFlat({},m,w);g.matrix.update(D,null)}}}e.exports=function(t,e,r){if(r.length)for(var n=0;n&lt;r.length;n++)s(t,r[n][0])}},{&quot;../../components/dragelement/helpers&quot;:661,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;regl-splom&quot;:539}],1292:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=t._fullLayout,i=e.uid,a=r._splomScenes;a||(a=r._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s=a[e.uid];return s||((s=a[i]=n.extendFlat({},o,{matrix:!1,selectBatch:[],unselectBatch:[]})).draw=function(){s.matrix&amp;&amp;s.matrix.draw&amp;&amp;(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&amp;&amp;s.matrix.destroy&amp;&amp;s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||n.extendFlat(s,o),s}},{&quot;../../lib&quot;:778}],1293:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;./helpers&quot;);e.exports=function(t,e){var r=t.cd,o=r[0].trace,s=r[0].t,l=t.scene,c=l.matrixOptions.cdata,u=t.xaxis,f=t.yaxis,h=[];if(!l)return h;var p=!i.hasMarkers(o)&amp;&amp;!i.hasText(o);if(!0!==o.visible||p)return h;var d=a.getDimIndex(o,u),g=a.getDimIndex(o,f);if(!1===d||!1===g)return h;var m=s.xpx[d],v=s.ypx[g],y=c[d],x=c[g],b=[],_=[];if(!1!==e&amp;&amp;!e.degenerate)for(var w=0;w&lt;y.length;w++)e.contains([m[w],v[w]],null,w,t)?(b.push(w),h.push({pointNumber:w,x:y[w],y:x[w]})):_.push(w);var T=l.matrixOptions;return b.length||_.length?l.selectBatch.length||l.unselectBatch.length||l.matrix.update(l.unselectedOptions,n.extendFlat({},T,l.selectedOptions,l.viewOpts)):l.matrix.update(T,null),l.selectBatch=b,l.unselectBatch=_,h}},{&quot;../../lib&quot;:778,&quot;../scatter/subtypes&quot;:1212,&quot;./helpers&quot;:1288}],1294:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../mesh3d/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},u:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},v:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},w:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},starts:{x:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},maxdisplayed:{valType:&quot;integer&quot;,min:0,dflt:1e3,editType:&quot;calc&quot;},sizeref:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0,dflt:1},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertemplate:i({editType:&quot;calc&quot;},{keys:[&quot;tubex&quot;,&quot;tubey&quot;,&quot;tubez&quot;,&quot;tubeu&quot;,&quot;tubev&quot;,&quot;tubew&quot;,&quot;norm&quot;,&quot;divergence&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})};s(l,n(&quot;&quot;,{colorAttr:&quot;u/v/w norm&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}));[&quot;opacity&quot;,&quot;lightposition&quot;,&quot;lighting&quot;].forEach((function(t){l[t]=a[t]})),l.hoverinfo=s({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;norm&quot;,&quot;divergence&quot;,&quot;text&quot;,&quot;name&quot;],dflt:&quot;x+y+z+norm+text+name&quot;}),l.transforms=void 0,e.exports=l},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../mesh3d/attributes&quot;:1128}],1295:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/calc&quot;);function a(t){var e,r,i,a,s,l,c,u,f,h,p,d,g=t._x,m=t._y,v=t._z,y=t._len,x=-1/0,b=1/0,_=-1/0,w=1/0,T=-1/0,k=1/0,M=&quot;&quot;;for(y&amp;&amp;(c=g[0],f=m[0],p=v[0]),y&gt;1&amp;&amp;(u=g[y-1],h=m[y-1],d=v[y-1]),e=0;e&lt;y;e++)x=Math.max(x,g[e]),b=Math.min(b,g[e]),_=Math.max(_,m[e]),w=Math.min(w,m[e]),T=Math.max(T,v[e]),k=Math.min(k,v[e]),a||g[e]===c||(a=!0,M+=&quot;x&quot;),s||m[e]===f||(s=!0,M+=&quot;y&quot;),l||v[e]===p||(l=!0,M+=&quot;z&quot;);a||(M+=&quot;x&quot;),s||(M+=&quot;y&quot;),l||(M+=&quot;z&quot;);var A=o(t._x),S=o(t._y),E=o(t._z);M=(M=(M=M.replace(&quot;x&quot;,(c&gt;u?&quot;-&quot;:&quot;+&quot;)+&quot;x&quot;)).replace(&quot;y&quot;,(f&gt;h?&quot;-&quot;:&quot;+&quot;)+&quot;y&quot;)).replace(&quot;z&quot;,(p&gt;d?&quot;-&quot;:&quot;+&quot;)+&quot;z&quot;);var C=function(){y=0,A=[],S=[],E=[]};(!y||y&lt;A.length*S.length*E.length)&amp;&amp;C();var L=function(t){return&quot;x&quot;===t?g:&quot;y&quot;===t?m:v},I=function(t){return&quot;x&quot;===t?A:&quot;y&quot;===t?S:E},P=function(t){return t[y-1]&lt;t[0]?-1:1},z=L(M[1]),O=L(M[3]),D=L(M[5]),R=I(M[1]).length,F=I(M[3]).length,B=I(M[5]).length,N=!1,j=function(t,e,r){return R*(F*t+e)+r},U=P(L(M[1])),V=P(L(M[3])),q=P(L(M[5]));for(e=0;e&lt;B-1;e++){for(r=0;r&lt;F-1;r++){for(i=0;i&lt;R-1;i++){var H=j(e,r,i),G=j(e,r,i+1),Y=j(e,r+1,i),W=j(e+1,r,i);if(z[H]*U&lt;z[G]*U&amp;&amp;O[H]*V&lt;O[Y]*V&amp;&amp;D[H]*q&lt;D[W]*q||(N=!0),N)break}if(N)break}if(N)break}return N&amp;&amp;(n.warn(&quot;Encountered arbitrary coordinates! Unable to input data grid.&quot;),C()),{xMin:b,yMin:w,zMin:k,xMax:x,yMax:_,zMax:T,Xs:A,Ys:S,Zs:E,len:y,fill:M}}function o(t){return n.distinctVals(t).vals}function s(t,e){if(void 0===e&amp;&amp;(e=t.length),n.isTypedArray(t))return t.subarray(0,e);for(var r=[],i=0;i&lt;e;i++)r[i]=+t[i];return r}e.exports={calc:function(t,e){e._len=Math.min(e.u.length,e.v.length,e.w.length,e.x.length,e.y.length,e.z.length),e._u=s(e.u,e._len),e._v=s(e.v,e._len),e._w=s(e.w,e._len),e._x=s(e.x,e._len),e._y=s(e.y,e._len),e._z=s(e.z,e._len);var r=a(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;var n,o,l,c=0;e.starts&amp;&amp;(n=s(e.starts.x||[]),o=s(e.starts.y||[]),l=s(e.starts.z||[]),c=Math.min(n.length,o.length,l.length)),e._startsX=n||[],e._startsY=o||[],e._startsZ=l||[];var u,f=0,h=1/0;for(u=0;u&lt;e._len;u++){var p=e._u[u],d=e._v[u],g=e._w[u],m=Math.sqrt(p*p+d*d+g*g);f=Math.max(f,m),h=Math.min(h,m)}for(i(t,e,{vals:[h,f],containerStr:&quot;&quot;,cLetter:&quot;c&quot;}),u=0;u&lt;c;u++){var v=n[u];r.xMax=Math.max(r.xMax,v),r.xMin=Math.min(r.xMin,v);var y=o[u];r.yMax=Math.max(r.yMax,y),r.yMin=Math.min(r.yMin,y);var x=l[u];r.zMax=Math.max(r.zMax,x),r.zMin=Math.min(r.zMin,x)}e._slen=c,e._normMax=f,e._xbnds=[r.xMin,r.xMax],e._ybnds=[r.yMin,r.yMax],e._zbnds=[r.zMin,r.zMax]},filter:s,processGrid:a}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../lib&quot;:778}],1296:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-streamtube3d&quot;),i=n.createTubeMesh,a=t(&quot;../../lib&quot;),o=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,s=t(&quot;../../components/colorscale&quot;).extractOpts,l=t(&quot;../../plots/gl3d/zip3&quot;),c={xaxis:0,yaxis:1,zaxis:2};function u(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var f=u.prototype;function h(t){var e=t.length;return e&gt;2?t.slice(1,e-1):2===e?[(t[0]+t[1])/2]:t}function p(t){var e=t.length;return 1===e?[.5,.5]:[t[1]-t[0],t[e-1]-t[e-2]]}function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,u=e._len,f={};function d(t,e){var n=r[e],o=i[c[e]];return a.simpleMap(t,(function(t){return n.d2l(t)*o}))}if(f.vectors=l(d(e._u,&quot;xaxis&quot;),d(e._v,&quot;yaxis&quot;),d(e._w,&quot;zaxis&quot;),u),!u)return{positions:[],cells:[]};var g=d(e._Xs,&quot;xaxis&quot;),m=d(e._Ys,&quot;yaxis&quot;),v=d(e._Zs,&quot;zaxis&quot;);if(f.meshgrid=[g,m,v],f.gridFill=e._gridFill,e._slen)f.startingPositions=l(d(e._startsX,&quot;xaxis&quot;),d(e._startsY,&quot;yaxis&quot;),d(e._startsZ,&quot;zaxis&quot;));else{for(var y=m[0],x=h(g),b=h(v),_=new Array(x.length*b.length),w=0,T=0;T&lt;x.length;T++)for(var k=0;k&lt;b.length;k++)_[w++]=[x[T],y,b[k]];f.startingPositions=_}f.colormap=o(e),f.tubeSize=e.sizeref,f.maxLength=e.maxdisplayed;var M=d(e._xbnds,&quot;xaxis&quot;),A=d(e._ybnds,&quot;yaxis&quot;),S=d(e._zbnds,&quot;zaxis&quot;),E=p(g),C=p(m),L=p(v),I=[[M[0]-E[0],A[0]-C[0],S[0]-L[0]],[M[1]+E[1],A[1]+C[1],S[1]+L[1]]],P=n(f,I),z=s(e);P.vertexIntensityBounds=[z.min/e._normMax,z.max/e._normMax];var O=e.lightposition;return P.lightPosition=[O.x,O.y,O.z],P.ambient=e.lighting.ambient,P.diffuse=e.lighting.diffuse,P.specular=e.lighting.specular,P.roughness=e.lighting.roughness,P.fresnel=e.lighting.fresnel,P.opacity=e.opacity,e._pad=P.tubeScale*e.sizeref*2,P}f.handlePick=function(t){var e=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(t,n){var i=e[n],a=r[c[n]];return i.l2c(t)/a}if(t.object===this.mesh){var i=t.data.position,a=t.data.velocity;return t.traceCoordinate=[n(i[0],&quot;xaxis&quot;),n(i[1],&quot;yaxis&quot;),n(i[2],&quot;zaxis&quot;),n(a[0],&quot;xaxis&quot;),n(a[1],&quot;yaxis&quot;),n(a[2],&quot;zaxis&quot;),t.data.intensity*this.data._normMax,t.data.divergence],t.textLabel=this.data.hovertext||this.data.text,!0}},f.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new u(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../plots/gl3d/zip3&quot;:881,&quot;gl-streamtube3d&quot;:348}],1297:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;u&quot;),c=s(&quot;v&quot;),u=s(&quot;w&quot;),f=s(&quot;x&quot;),h=s(&quot;y&quot;),p=s(&quot;z&quot;);l&amp;&amp;l.length&amp;&amp;c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length&amp;&amp;p&amp;&amp;p.length?(s(&quot;starts.x&quot;),s(&quot;starts.y&quot;),s(&quot;starts.z&quot;),s(&quot;maxdisplayed&quot;),s(&quot;sizeref&quot;),s(&quot;lighting.ambient&quot;),s(&quot;lighting.diffuse&quot;),s(&quot;lighting.specular&quot;),s(&quot;lighting.roughness&quot;),s(&quot;lighting.fresnel&quot;),s(&quot;lightposition.x&quot;),s(&quot;lightposition.y&quot;),s(&quot;lightposition.z&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:1294}],1298:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;streamtube&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./convert&quot;),eventData:function(t,e){return t.tubex=t.x,t.tubey=t.y,t.tubez=t.z,t.tubeu=e.traceCoordinate[3],t.tubev=e.traceCoordinate[4],t.tubew=e.traceCoordinate[5],t.norm=e.traceCoordinate[6],t.divergence=e.traceCoordinate[7],delete t.x,delete t.y,delete t.z,t},meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1294,&quot;./calc&quot;:1295,&quot;./convert&quot;:1296,&quot;./defaults&quot;:1297}],1299:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../pie/attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},parents:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},branchvalues:{valType:&quot;enumerated&quot;,values:[&quot;remainder&quot;,&quot;total&quot;],dflt:&quot;remainder&quot;,editType:&quot;calc&quot;},count:{valType:&quot;flaglist&quot;,flags:[&quot;branches&quot;,&quot;leaves&quot;],dflt:&quot;leaves&quot;,editType:&quot;calc&quot;},level:{valType:&quot;any&quot;,editType:&quot;plot&quot;,anim:!0},maxdepth:{valType:&quot;integer&quot;,editType:&quot;plot&quot;,dflt:-1},marker:u({colors:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:u({},l.marker.line.color,{dflt:null}),width:u({},l.marker.line.width,{dflt:1}),editType:&quot;calc&quot;},editType:&quot;calc&quot;},o(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),leaf:{opacity:{valType:&quot;number&quot;,editType:&quot;style&quot;,min:0,max:1},editType:&quot;plot&quot;},text:l.text,textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;current path&quot;,&quot;percent root&quot;,&quot;percent entry&quot;,&quot;percent parent&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;},texttemplate:a({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:l.hovertext,hoverinfo:u({},n.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;name&quot;,&quot;current path&quot;,&quot;percent root&quot;,&quot;percent entry&quot;,&quot;percent parent&quot;],dflt:&quot;label+text+value+name&quot;}),hovertemplate:i({},{keys:c.eventDataKeys}),textfont:l.textfont,insidetextorientation:l.insidetextorientation,insidetextfont:l.insidetextfont,outsidetextfont:u({},l.outsidetextfont,{}),rotation:{valType:&quot;angle&quot;,dflt:0,editType:&quot;plot&quot;},sort:l.sort,root:{color:{valType:&quot;color&quot;,editType:&quot;calc&quot;,dflt:&quot;rgba(0,0,0,0)&quot;},editType:&quot;calc&quot;},domain:s({name:&quot;sunburst&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/template_attributes&quot;:906,&quot;../pie/attributes&quot;:1161,&quot;./constants&quot;:1302}],1300:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;sunburst&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1301:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/colorscale&quot;).makeColorScaleFuncFromTrace,s=t(&quot;../pie/calc&quot;).makePullColorFn,l=t(&quot;../pie/calc&quot;).generateExtendedColors,c=t(&quot;../../components/colorscale&quot;).calc,u=t(&quot;../../constants/numerical&quot;).ALMOST_EQUAL,f={},h={};r.calc=function(t,e){var r,l,f,h,p,d,g=t._fullLayout,m=e.ids,v=a.isArrayOrTypedArray(m),y=e.labels,x=e.parents,b=e.values,_=a.isArrayOrTypedArray(b),w=[],T={},k={},M=function(t){return t||&quot;number&quot;==typeof t},A=function(t){return!_||i(b[t])&amp;&amp;b[t]&gt;=0};v?(r=Math.min(m.length,x.length),l=function(t){return M(m[t])&amp;&amp;A(t)},f=function(t){return String(m[t])}):(r=Math.min(y.length,x.length),l=function(t){return M(y[t])&amp;&amp;A(t)},f=function(t){return String(y[t])}),_&amp;&amp;(r=Math.min(r,b.length));for(var S=0;S&lt;r;S++)if(l(S)){var E=f(S),C=M(x[S])?String(x[S]):&quot;&quot;,L={i:S,id:E,pid:C,label:M(y[S])?String(y[S]):&quot;&quot;};_&amp;&amp;(L.v=+b[S]),w.push(L),p=E,T[h=C]?T[h].push(p):T[h]=[p],k[p]=1}if(T[&quot;&quot;]){if(T[&quot;&quot;].length&gt;1){for(var I=a.randstr(),P=0;P&lt;w.length;P++)&quot;&quot;===w[P].pid&amp;&amp;(w[P].pid=I);w.unshift({hasMultipleRoots:!0,id:I,pid:&quot;&quot;,label:&quot;&quot;})}}else{var z,O=[];for(z in T)k[z]||O.push(z);if(1!==O.length)return a.warn([&quot;Multiple implied roots, cannot build&quot;,e.type,&quot;hierarchy of&quot;,e.name+&quot;.&quot;,&quot;These roots include:&quot;,O.join(&quot;, &quot;)].join(&quot; &quot;));z=O[0],w.unshift({hasImpliedRoot:!0,id:z,pid:&quot;&quot;,label:z})}try{d=n.stratify().id((function(t){return t.id})).parentId((function(t){return t.pid}))(w)}catch(t){return a.warn([&quot;Failed to build&quot;,e.type,&quot;hierarchy of&quot;,e.name+&quot;.&quot;,&quot;Error:&quot;,t.message].join(&quot; &quot;))}var D=n.hierarchy(d),R=!1;if(_)switch(e.branchvalues){case&quot;remainder&quot;:D.sum((function(t){return t.data.v}));break;case&quot;total&quot;:D.each((function(t){var r=t.data.data,n=r.v;if(t.children){var i=t.children.reduce((function(t,e){return t+e.data.data.v}),0);if((r.hasImpliedRoot||r.hasMultipleRoots)&amp;&amp;(n=i),n&lt;i*u)return R=!0,a.warn([&quot;Total value for node&quot;,t.data.data.id,&quot;of&quot;,e.name,&quot;is smaller than the sum of its children.&quot;,&quot;\nparent value =&quot;,n,&quot;\nchildren sum =&quot;,i].join(&quot; &quot;))}t.value=n}))}else!function t(e,r,n){var i=0,a=e.children;if(a){for(var o=a.length,s=0;s&lt;o;s++)i+=t(a[s],r,n);n.branches&amp;&amp;i++}else n.leaves&amp;&amp;i++;e.value=e.data.data.value=i,r._values||(r._values=[]);return r._values[e.data.data.i]=i,i}(D,e,{branches:-1!==e.count.indexOf(&quot;branches&quot;),leaves:-1!==e.count.indexOf(&quot;leaves&quot;)});if(!R){var F,B;e.sort&amp;&amp;D.sort((function(t,e){return e.value-t.value}));var N=e.marker.colors||[],j=!!N.length;return e._hasColorscale?(j||(N=_?e.values:e._values),c(t,e,{vals:N,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),B=o(e.marker)):F=s(g[&quot;_&quot;+e.type+&quot;colormap&quot;]),D.each((function(t){var r=t.data.data;r.color=e._hasColorscale?B(N[r.i]):F(N[r.i],r.id)})),w[0].hierarchy=D,w}},r._runCrossTraceCalc=function(t,e){var r=e._fullLayout,n=e.calcdata,i=r[t+&quot;colorway&quot;],a=r[&quot;_&quot;+t+&quot;colormap&quot;];r[&quot;extend&quot;+t+&quot;colors&quot;]&amp;&amp;(i=l(i,&quot;treemap&quot;===t?h:f));var o,s=0;function c(t){var e=t.data.data,r=e.id;!1===e.color&amp;&amp;(a[r]?e.color=a[r]:t.parent?t.parent.parent?e.color=t.parent.data.data.color:(a[r]=e.color=i[s%i.length],s++):e.color=o)}for(var u=0;u&lt;n.length;u++){var p=n[u][0];p.trace.type===t&amp;&amp;p.hierarchy&amp;&amp;(o=p.trace.root.color,p.hierarchy.each(c))}},r.crossTraceCalc=function(t){return r._runCrossTraceCalc(&quot;sunburst&quot;,t)}},{&quot;../../components/colorscale&quot;:655,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../pie/calc&quot;:1163,&quot;d3-hierarchy&quot;:161,&quot;fast-isnumeric&quot;:241}],1302:[function(t,e,r){&quot;use strict&quot;;e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:&quot;linear&quot;,eventDataKeys:[&quot;currentPath&quot;,&quot;root&quot;,&quot;entry&quot;,&quot;percentRoot&quot;,&quot;percentEntry&quot;,&quot;percentParent&quot;]}},{}],1303:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../bar/defaults&quot;).handleText,s=t(&quot;../../components/colorscale&quot;),l=s.hasColorscale,c=s.handleDefaults;e.exports=function(t,e,r,s){function u(r,a){return n.coerce(t,e,i,r,a)}var f=u(&quot;labels&quot;),h=u(&quot;parents&quot;);if(f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length){var p=u(&quot;values&quot;);p&amp;&amp;p.length?u(&quot;branchvalues&quot;):u(&quot;count&quot;),u(&quot;level&quot;),u(&quot;maxdepth&quot;),u(&quot;marker.line.width&quot;)&amp;&amp;u(&quot;marker.line.color&quot;,s.paper_bgcolor),u(&quot;marker.colors&quot;);var d=e._hasColorscale=l(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis;d&amp;&amp;c(t,e,s,u,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),u(&quot;leaf.opacity&quot;,d?1:.7);var g=u(&quot;text&quot;);u(&quot;texttemplate&quot;),e.texttemplate||u(&quot;textinfo&quot;,Array.isArray(g)?&quot;text+label&quot;:&quot;label&quot;),u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;);o(t,e,s,u,&quot;auto&quot;,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),u(&quot;insidetextorientation&quot;),u(&quot;sort&quot;),u(&quot;rotation&quot;),u(&quot;root.color&quot;),a(e,s,u),e._length=null}else e.visible=!1}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/defaults&quot;:925,&quot;./attributes&quot;:1299}],1304:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,o=t(&quot;../../components/fx&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/events&quot;),c=t(&quot;./helpers&quot;),u=t(&quot;../pie/helpers&quot;).formatPieValue;function f(t,e,r){for(var n=t.data.data,i={curveNumber:e.index,pointNumber:n.i,data:e._input,fullData:e},o=0;o&lt;r.length;o++){var s=r[o];s in t&amp;&amp;(i[s]=t[s])}return&quot;parentString&quot;in t&amp;&amp;!c.isHierarchyRoot(t)&amp;&amp;(i.parent=t.parentString),a(i,e,n.i),i}e.exports=function(t,e,r,a,h){var p=a[0],d=p.trace,g=p.hierarchy,m=&quot;sunburst&quot;===d.type,v=&quot;treemap&quot;===d.type;&quot;_hasHoverLabel&quot;in d||(d._hasHoverLabel=!1),&quot;_hasHoverEvent&quot;in d||(d._hasHoverEvent=!1);t.on(&quot;mouseover&quot;,(function(i){var a=r._fullLayout;if(!r._dragging&amp;&amp;!1!==a.hovermode){var l=r._fullData[d.index],y=i.data.data,x=y.i,b=c.isHierarchyRoot(i),_=c.getParent(g,i),w=c.getValue(i),T=function(t){return s.castOption(l,x,t)},k=T(&quot;hovertemplate&quot;),M=o.castHoverinfo(l,a,x),A=a.separators;if(k||M&amp;&amp;&quot;none&quot;!==M&amp;&amp;&quot;skip&quot;!==M){var S,E;m&amp;&amp;(S=p.cx+i.pxmid[0]*(1-i.rInscribed),E=p.cy+i.pxmid[1]*(1-i.rInscribed)),v&amp;&amp;(S=i._hoverX,E=i._hoverY);var C,L={},I=[],P=[],z=function(t){return-1!==I.indexOf(t)};M&amp;&amp;(I=&quot;all&quot;===M?l._module.attributes.hoverinfo.flags:M.split(&quot;+&quot;)),L.label=y.label,z(&quot;label&quot;)&amp;&amp;L.label&amp;&amp;P.push(L.label),y.hasOwnProperty(&quot;v&quot;)&amp;&amp;(L.value=y.v,L.valueLabel=u(L.value,A),z(&quot;value&quot;)&amp;&amp;P.push(L.valueLabel)),L.currentPath=i.currentPath=c.getPath(i.data),z(&quot;current path&quot;)&amp;&amp;!b&amp;&amp;P.push(L.currentPath);var O=[],D=function(){-1===O.indexOf(C)&amp;&amp;(P.push(C),O.push(C))};L.percentParent=i.percentParent=w/c.getValue(_),L.parent=i.parentString=c.getPtLabel(_),z(&quot;percent parent&quot;)&amp;&amp;(C=c.formatPercent(L.percentParent,A)+&quot; of &quot;+L.parent,D()),L.percentEntry=i.percentEntry=w/c.getValue(e),L.entry=i.entry=c.getPtLabel(e),!z(&quot;percent entry&quot;)||b||i.onPathbar||(C=c.formatPercent(L.percentEntry,A)+&quot; of &quot;+L.entry,D()),L.percentRoot=i.percentRoot=w/c.getValue(g),L.root=i.root=c.getPtLabel(g),z(&quot;percent root&quot;)&amp;&amp;!b&amp;&amp;(C=c.formatPercent(L.percentRoot,A)+&quot; of &quot;+L.root,D()),L.text=T(&quot;hovertext&quot;)||T(&quot;text&quot;),z(&quot;text&quot;)&amp;&amp;(C=L.text,s.isValidTextValue(C)&amp;&amp;P.push(C));var R={trace:l,y:E,text:P.join(&quot;&lt;br&gt;&quot;),name:k||z(&quot;name&quot;)?l.name:void 0,color:T(&quot;hoverlabel.bgcolor&quot;)||y.color,borderColor:T(&quot;hoverlabel.bordercolor&quot;),fontFamily:T(&quot;hoverlabel.font.family&quot;),fontSize:T(&quot;hoverlabel.font.size&quot;),fontColor:T(&quot;hoverlabel.font.color&quot;),nameLength:T(&quot;hoverlabel.namelength&quot;),textAlign:T(&quot;hoverlabel.align&quot;),hovertemplate:k,hovertemplateLabels:L,eventData:[f(i,l,h.eventDataKeys)]};m&amp;&amp;(R.x0=S-i.rInscribed*i.rpx1,R.x1=S+i.rInscribed*i.rpx1,R.idealAlign=i.pxmid[0]&lt;0?&quot;left&quot;:&quot;right&quot;),v&amp;&amp;(R.x=S,R.idealAlign=S&lt;0?&quot;left&quot;:&quot;right&quot;),o.loneHover(R,{container:a._hoverlayer.node(),outerContainer:a._paper.node(),gd:r}),d._hasHoverLabel=!0}if(v){var F=t.select(&quot;path.surface&quot;);h.styleOne(F,i,l,{hovered:!0})}d._hasHoverEvent=!0,r.emit(&quot;plotly_hover&quot;,{points:[f(i,l,h.eventDataKeys)],event:n.event})}})),t.on(&quot;mouseout&quot;,(function(e){var i=r._fullLayout,a=r._fullData[d.index],s=n.select(this).datum();if(d._hasHoverEvent&amp;&amp;(e.originalEvent=n.event,r.emit(&quot;plotly_unhover&quot;,{points:[f(s,a,h.eventDataKeys)],event:n.event}),d._hasHoverEvent=!1),d._hasHoverLabel&amp;&amp;(o.loneUnhover(i._hoverlayer.node()),d._hasHoverLabel=!1),v){var l=t.select(&quot;path.surface&quot;);h.styleOne(l,s,a,{hovered:!1})}})),t.on(&quot;click&quot;,(function(t){var e=r._fullLayout,a=r._fullData[d.index],s=m&amp;&amp;(c.isHierarchyRoot(t)||c.isLeaf(t)),u=c.getPtId(t),p=c.isEntry(t)?c.findEntryWithChild(g,u):c.findEntryWithLevel(g,u),v=c.getPtId(p),y={points:[f(t,a,h.eventDataKeys)],event:n.event};s||(y.nextLevel=v);var x=l.triggerHandler(r,&quot;plotly_&quot;+d.type+&quot;click&quot;,y);if(!1!==x&amp;&amp;e.hovermode&amp;&amp;(r._hoverdata=[f(t,a,h.eventDataKeys)],o.click(r,n.event)),!s&amp;&amp;!1!==x&amp;&amp;!r._dragging&amp;&amp;!r._transitioning){i.call(&quot;_storeDirectGUIEdit&quot;,a,e._tracePreGUI[a.uid],{level:a.level});var b={data:[{level:v}],traces:[d.index]},_={frame:{redraw:!1,duration:h.transitionTime},transition:{duration:h.transitionTime,easing:h.transitionEasing},mode:&quot;immediate&quot;,fromcurrent:!0};o.loneUnhover(e._hoverlayer.node()),i.call(&quot;animate&quot;,r,b,_)}}))}},{&quot;../../components/fx&quot;:683,&quot;../../components/fx/helpers&quot;:679,&quot;../../lib&quot;:778,&quot;../../lib/events&quot;:767,&quot;../../registry&quot;:911,&quot;../pie/helpers&quot;:1166,&quot;./helpers&quot;:1305,d3:169}],1305:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib/setcursor&quot;),o=t(&quot;../pie/helpers&quot;);function s(t){return t.data.data.pid}r.findEntryWithLevel=function(t,e){var n;return e&amp;&amp;t.eachAfter((function(t){if(r.getPtId(t)===e)return n=t.copy()})),n||t},r.findEntryWithChild=function(t,e){var n;return t.eachAfter((function(t){for(var i=t.children||[],a=0;a&lt;i.length;a++){var o=i[a];if(r.getPtId(o)===e)return n=t.copy()}})),n||t},r.isEntry=function(t){return!t.parent},r.isLeaf=function(t){return!t.children},r.getPtId=function(t){return t.data.data.id},r.getPtLabel=function(t){return t.data.data.label},r.getValue=function(t){return t.value},r.isHierarchyRoot=function(t){return&quot;&quot;===s(t)},r.setSliceCursor=function(t,e,n){var i=n.isTransitioning;if(!i){var o=t.datum();i=n.hideOnRoot&amp;&amp;r.isHierarchyRoot(o)||n.hideOnLeaves&amp;&amp;r.isLeaf(o)}a(t,i?null:&quot;pointer&quot;)},r.getInsideTextFontKey=function(t,e,r,i,a){var o=(a||{}).onPathbar?&quot;pathbar.textfont&quot;:&quot;insidetextfont&quot;,s=r.data.data.i;return n.castOption(e,s,o+&quot;.&quot;+t)||n.castOption(e,s,&quot;textfont.&quot;+t)||i.size},r.getOutsideTextFontKey=function(t,e,r,i){var a=r.data.data.i;return n.castOption(e,a,&quot;outsidetextfont.&quot;+t)||n.castOption(e,a,&quot;textfont.&quot;+t)||i.size},r.isOutsideText=function(t,e){return!t._hasColorscale&amp;&amp;r.isHierarchyRoot(e)},r.determineTextFont=function(t,e,a,o){return r.isOutsideText(t,e)?function(t,e,n){return{color:r.getOutsideTextFontKey(&quot;color&quot;,t,e,n),family:r.getOutsideTextFontKey(&quot;family&quot;,t,e,n),size:r.getOutsideTextFontKey(&quot;size&quot;,t,e,n)}}(t,e,a):function(t,e,a,o){var s=(o||{}).onPathbar,l=e.data.data,c=l.i,u=n.castOption(t,c,(s?&quot;pathbar.textfont&quot;:&quot;insidetextfont&quot;)+&quot;.color&quot;);return!u&amp;&amp;t._input.textfont&amp;&amp;(u=n.castOption(t._input,c,&quot;textfont.color&quot;)),{color:u||i.contrast(l.color),family:r.getInsideTextFontKey(&quot;family&quot;,t,e,a,o),size:r.getInsideTextFontKey(&quot;size&quot;,t,e,a,o)}}(t,e,a,o)},r.hasTransition=function(t){return!!(t&amp;&amp;t.duration&gt;0)},r.getMaxDepth=function(t){return t.maxdepth&gt;=0?t.maxdepth:1/0},r.isHeader=function(t,e){return!(r.isLeaf(t)||t.depth===e._maxDepth-1)},r.getParent=function(t,e){return r.findEntryWithLevel(t,s(e))},r.listPath=function(t,e){var n=t.parent;if(!n)return[];var i=e?[n.data[e]]:[n];return r.listPath(n,e).concat(i)},r.getPath=function(t){return r.listPath(t,&quot;label&quot;).join(&quot;/&quot;)+&quot;/&quot;},r.formatValue=o.formatPieValue,r.formatPercent=function(t,e){var r=n.formatPercent(t,0);return&quot;0%&quot;===r&amp;&amp;(r=o.formatPiePercent(t,e)),r}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../pie/helpers&quot;:1166}],1306:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;sunburst&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1299,&quot;./base_plot&quot;:1300,&quot;./calc&quot;:1301,&quot;./defaults&quot;:1303,&quot;./layout_attributes&quot;:1307,&quot;./layout_defaults&quot;:1308,&quot;./plot&quot;:1309,&quot;./style&quot;:1310}],1307:[function(t,e,r){&quot;use strict&quot;;e.exports={sunburstcolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendsunburstcolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1308:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;sunburstcolorway&quot;,e.colorway),r(&quot;extendsunburstcolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1307}],1309:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-hierarchy&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../bar/uniform_text&quot;),c=l.recordMinTextSize,u=l.clearMinTextSize,f=t(&quot;../pie/plot&quot;),h=t(&quot;../pie/helpers&quot;).getRotationAngle,p=f.computeTransform,d=f.transformInsideText,g=t(&quot;./style&quot;).styleOne,m=t(&quot;../bar/style&quot;).resizeText,v=t(&quot;./fx&quot;),y=t(&quot;./constants&quot;),x=t(&quot;./helpers&quot;);function b(t,e,l,u){var f=t._fullLayout,m=!f.uniformtext.mode&amp;&amp;x.hasTransition(u),b=n.select(l).selectAll(&quot;g.slice&quot;),w=e[0],T=w.trace,k=w.hierarchy,M=x.findEntryWithLevel(k,T.level),A=x.getMaxDepth(T),S=f._size,E=T.domain,C=S.w*(E.x[1]-E.x[0]),L=S.h*(E.y[1]-E.y[0]),I=.5*Math.min(C,L),P=w.cx=S.l+S.w*(E.x[1]+E.x[0])/2,z=w.cy=S.t+S.h*(1-E.y[0])-L/2;if(!M)return b.remove();var O=null,D={};m&amp;&amp;b.each((function(t){D[x.getPtId(t)]={rpx0:t.rpx0,rpx1:t.rpx1,x0:t.x0,x1:t.x1,transform:t.transform},!O&amp;&amp;x.isEntry(t)&amp;&amp;(O=t)}));var R=function(t){return i.partition().size([2*Math.PI,t.height+1])(t)}(M).descendants(),F=M.height+1,B=0,N=A;w.hasMultipleRoots&amp;&amp;x.isHierarchyRoot(M)&amp;&amp;(R=R.slice(1),F-=1,B=1,N+=1),R=R.filter((function(t){return t.y1&lt;=N}));var j=h(T.rotation);j&amp;&amp;R.forEach((function(t){t.x0+=j,t.x1+=j}));var U=Math.min(F,A),V=function(t){return(t-B)/U*I},q=function(t,e){return[t*Math.cos(e),-t*Math.sin(e)]},H=function(t){return o.pathAnnulus(t.rpx0,t.rpx1,t.x0,t.x1,P,z)},G=function(t){return P+_(t)[0]*(t.transform.rCenter||0)+(t.transform.x||0)},Y=function(t){return z+_(t)[1]*(t.transform.rCenter||0)+(t.transform.y||0)};(b=b.data(R,x.getPtId)).enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),m?b.exit().transition().each((function(){var t=n.select(this);t.select(&quot;path.surface&quot;).transition().attrTween(&quot;d&quot;,(function(t){var e=function(t){var e,r=x.getPtId(t),i=D[r],a=D[x.getPtId(M)];if(a){var o=(t.x1&gt;a.x1?2*Math.PI:0)+j;e=t.rpx1&lt;a.rpx1?{rpx0:0,rpx1:0}:{x0:o,x1:o}}else{var s,l=x.getPtId(t.parent);b.each((function(t){if(x.getPtId(t)===l)return s=t}));var c,u=s.children;u.forEach((function(t,e){if(x.getPtId(t)===r)return c=e}));var f=u.length,h=n.interpolate(s.x0,s.x1);e={rpx0:I,rpx1:I,x0:h(c/f),x1:h((c+1)/f)}}return n.interpolate(i,e)}(t);return function(t){return H(e(t))}})),t.select(&quot;g.slicetext&quot;).attr(&quot;opacity&quot;,0)})).remove():b.exit().remove(),b.order();var W=null;if(m&amp;&amp;O){var X=x.getPtId(O);b.each((function(t){null===W&amp;&amp;x.getPtId(t)===X&amp;&amp;(W=t.x1)}))}var Z=b;function J(t){var e=t.parent,r=D[x.getPtId(e)],i={};if(r){var a=e.children,o=a.indexOf(t),s=a.length,l=n.interpolate(r.x0,r.x1);i.x0=l(o/s),i.x1=l(o/s)}else i.x0=i.x1=0;return i}m&amp;&amp;(Z=Z.transition().each(&quot;end&quot;,(function(){var e=n.select(this);x.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})}))),Z.each((function(i){var l=n.select(this),u=o.ensureSingle(l,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));i.rpx0=V(i.y0),i.rpx1=V(i.y1),i.xmid=(i.x0+i.x1)/2,i.pxmid=q(i.rpx1,i.xmid),i.midangle=-(i.xmid-Math.PI/2),i.startangle=-(i.x0-Math.PI/2),i.stopangle=-(i.x1-Math.PI/2),i.halfangle=.5*Math.min(o.angleDelta(i.x0,i.x1)||Math.PI,Math.PI),i.ring=1-i.rpx0/i.rpx1,i.rInscribed=function(t){return 0===t.rpx0&amp;&amp;o.isFullCircle([t.x0,t.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2))}(i),m?u.transition().attrTween(&quot;d&quot;,(function(t){var e=function(t){var e,r=D[x.getPtId(t)],i={x0:t.x0,x1:t.x1,rpx0:t.rpx0,rpx1:t.rpx1};if(r)e=r;else if(O)if(t.parent)if(W){var a=(t.x1&gt;W?2*Math.PI:0)+j;e={x0:a,x1:a}}else e={rpx0:I,rpx1:I},o.extendFlat(e,J(t));else e={rpx0:0,rpx1:0};else e={x0:j,x1:j};return n.interpolate(e,i)}(t);return function(t){return H(e(t))}})):u.attr(&quot;d&quot;,H),l.call(v,M,t,e,{eventDataKeys:y.eventDataKeys,transitionTime:y.CLICK_TRANSITION_TIME,transitionEasing:y.CLICK_TRANSITION_EASING}).call(x.setSliceCursor,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:t._transitioning}),u.call(g,i,T);var h=o.ensureSingle(l,&quot;g&quot;,&quot;slicetext&quot;),b=o.ensureSingle(h,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),_=o.ensureUniformFontSize(t,x.determineTextFont(T,i,f.font));b.text(r.formatSliceLabel(i,M,T,e,f)).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(a.font,_).call(s.convertToTspans,t);var k=a.bBox(b.node());i.transform=d(k,i,w),i.transform.targetX=G(i),i.transform.targetY=Y(i);var A=function(t,e){var r=t.transform;return p(r,e),r.fontSize=_.size,c(T.type,r,f),o.getTextTransform(r)};m?b.transition().attrTween(&quot;transform&quot;,(function(t){var e=function(t){var e,r=D[x.getPtId(t)],i=t.transform;if(r)e=r;else if(e={rpx1:t.rpx1,transform:{textPosAngle:i.textPosAngle,scale:0,rotate:i.rotate,rCenter:i.rCenter,x:i.x,y:i.y}},O)if(t.parent)if(W){var a=t.x1&gt;W?2*Math.PI:0;e.x0=e.x1=a}else o.extendFlat(e,J(t));else e.x0=e.x1=j;else e.x0=e.x1=j;var s=n.interpolate(e.transform.textPosAngle,t.transform.textPosAngle),l=n.interpolate(e.rpx1,t.rpx1),u=n.interpolate(e.x0,t.x0),h=n.interpolate(e.x1,t.x1),p=n.interpolate(e.transform.scale,i.scale),d=n.interpolate(e.transform.rotate,i.rotate),g=0===i.rCenter?3:0===e.transform.rCenter?1/3:1,m=n.interpolate(e.transform.rCenter,i.rCenter);return function(t){var e=l(t),r=u(t),n=h(t),a=function(t){return m(Math.pow(t,g))}(t),o={pxmid:q(e,(r+n)/2),rpx1:e,transform:{textPosAngle:s(t),rCenter:a,x:i.x,y:i.y}};return c(T.type,i,f),{transform:{targetX:G(o),targetY:Y(o),scale:p(t),rotate:d(t),rCenter:a}}}}(t);return function(t){return A(e(t),k)}})):b.attr(&quot;transform&quot;,A(i,k))}))}function _(t){return e=t.rpx1,r=t.transform.textPosAngle,[e*Math.sin(r),-e*Math.cos(r)];var e,r}r.plot=function(t,e,r,i){var a,o,s=t._fullLayout,l=s._sunburstlayer,c=!r,f=!s.uniformtext.mode&amp;&amp;x.hasTransition(r);(u(&quot;sunburst&quot;,s),(a=l.selectAll(&quot;g.trace.sunburst&quot;).data(e,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).classed(&quot;trace&quot;,!0).classed(&quot;sunburst&quot;,!0).attr(&quot;stroke-linejoin&quot;,&quot;round&quot;),a.order(),f)?(i&amp;&amp;(o=i()),n.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){o&amp;&amp;o()})).each(&quot;interrupt&quot;,(function(){o&amp;&amp;o()})).each((function(){l.selectAll(&quot;g.trace&quot;).each((function(e){b(t,e,this,r)}))}))):(a.each((function(e){b(t,e,this,r)})),s.uniformtext.mode&amp;&amp;m(t,s._sunburstlayer.selectAll(&quot;.trace&quot;),&quot;sunburst&quot;));c&amp;&amp;a.exit().remove()},r.formatSliceLabel=function(t,e,r,n,i){var a=r.texttemplate,s=r.textinfo;if(!(a||s&amp;&amp;&quot;none&quot;!==s))return&quot;&quot;;var l=i.separators,c=n[0],u=t.data.data,f=c.hierarchy,h=x.isHierarchyRoot(t),p=x.getParent(f,t),d=x.getValue(t);if(!a){var g,m=s.split(&quot;+&quot;),v=function(t){return-1!==m.indexOf(t)},y=[];if(v(&quot;label&quot;)&amp;&amp;u.label&amp;&amp;y.push(u.label),u.hasOwnProperty(&quot;v&quot;)&amp;&amp;v(&quot;value&quot;)&amp;&amp;y.push(x.formatValue(u.v,l)),!h){v(&quot;current path&quot;)&amp;&amp;y.push(x.getPath(t.data));var b=0;v(&quot;percent parent&quot;)&amp;&amp;b++,v(&quot;percent entry&quot;)&amp;&amp;b++,v(&quot;percent root&quot;)&amp;&amp;b++;var _=b&gt;1;if(b){var w,T=function(t){g=x.formatPercent(w,l),_&amp;&amp;(g+=&quot; of &quot;+t),y.push(g)};v(&quot;percent parent&quot;)&amp;&amp;!h&amp;&amp;(w=d/x.getValue(p),T(&quot;parent&quot;)),v(&quot;percent entry&quot;)&amp;&amp;(w=d/x.getValue(e),T(&quot;entry&quot;)),v(&quot;percent root&quot;)&amp;&amp;(w=d/x.getValue(f),T(&quot;root&quot;))}}return v(&quot;text&quot;)&amp;&amp;(g=o.castOption(r,u.i,&quot;text&quot;),o.isValidTextValue(g)&amp;&amp;y.push(g)),y.join(&quot;&lt;br&gt;&quot;)}var k=o.castOption(r,u.i,&quot;texttemplate&quot;);if(!k)return&quot;&quot;;var M={};u.label&amp;&amp;(M.label=u.label),u.hasOwnProperty(&quot;v&quot;)&amp;&amp;(M.value=u.v,M.valueLabel=x.formatValue(u.v,l)),M.currentPath=x.getPath(t.data),h||(M.percentParent=d/x.getValue(p),M.percentParentLabel=x.formatPercent(M.percentParent,l),M.parent=x.getPtLabel(p)),M.percentEntry=d/x.getValue(e),M.percentEntryLabel=x.formatPercent(M.percentEntry,l),M.entry=x.getPtLabel(e),M.percentRoot=d/x.getValue(f),M.percentRootLabel=x.formatPercent(M.percentRoot,l),M.root=x.getPtLabel(f),u.hasOwnProperty(&quot;color&quot;)&amp;&amp;(M.color=u.color);var A=o.castOption(r,u.i,&quot;text&quot;);return(o.isValidTextValue(A)||&quot;&quot;===A)&amp;&amp;(M.text=A),M.customdata=o.castOption(r,u.i,&quot;customdata&quot;),o.texttemplateString(k,M,i._d3locale,M,r._meta||{})}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,&quot;../pie/helpers&quot;:1166,&quot;../pie/plot&quot;:1170,&quot;./constants&quot;:1302,&quot;./fx&quot;:1304,&quot;./helpers&quot;:1305,&quot;./style&quot;:1310,d3:169,&quot;d3-hierarchy&quot;:161}],1310:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../bar/uniform_text&quot;).resizeText;function s(t,e,r){var n=e.data.data,o=!e.children,s=n.i,l=a.castOption(r,s,&quot;marker.line.color&quot;)||i.defaultLine,c=a.castOption(r,s,&quot;marker.line.width&quot;)||0;t.style(&quot;stroke-width&quot;,c).call(i.fill,n.color).call(i.stroke,l).style(&quot;opacity&quot;,o?r.leaf.opacity:null)}e.exports={style:function(t){var e=t._fullLayout._sunburstlayer.selectAll(&quot;.trace&quot;);o(t,e,&quot;sunburst&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(s,t,r)}))}))},styleOne:s}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/uniform_text&quot;:937,d3:169}],1311:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll;function c(t){return{show:{valType:&quot;boolean&quot;,dflt:!1},start:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;},end:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;},size:{valType:&quot;number&quot;,dflt:null,min:0,editType:&quot;plot&quot;},project:{x:{valType:&quot;boolean&quot;,dflt:!1},y:{valType:&quot;boolean&quot;,dflt:!1},z:{valType:&quot;boolean&quot;,dflt:!1}},color:{valType:&quot;color&quot;,dflt:n.defaultLine},usecolormap:{valType:&quot;boolean&quot;,dflt:!1},width:{valType:&quot;number&quot;,min:1,max:16,dflt:2},highlight:{valType:&quot;boolean&quot;,dflt:!0},highlightcolor:{valType:&quot;color&quot;,dflt:n.defaultLine},highlightwidth:{valType:&quot;number&quot;,min:1,max:16,dflt:2}}}var u=e.exports=l(s({z:{valType:&quot;data_array&quot;},x:{valType:&quot;data_array&quot;},y:{valType:&quot;data_array&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertemplate:a(),connectgaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},surfacecolor:{valType:&quot;data_array&quot;}},i(&quot;&quot;,{colorAttr:&quot;z or surfacecolor&quot;,showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}),{contours:{x:c(),y:c(),z:c()},hidesurface:{valType:&quot;boolean&quot;,dflt:!1},lightposition:{x:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:10},y:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:1e4},z:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:&quot;number&quot;,min:0,max:1,dflt:.8},diffuse:{valType:&quot;number&quot;,min:0,max:1,dflt:.8},specular:{valType:&quot;number&quot;,min:0,max:2,dflt:.05},roughness:{valType:&quot;number&quot;,min:0,max:1,dflt:.5},fresnel:{valType:&quot;number&quot;,min:0,max:5,dflt:.2}},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},opacityscale:{valType:&quot;any&quot;,editType:&quot;calc&quot;},_deprecated:{zauto:s({},i.zauto,{}),zmin:s({},i.zmin,{}),zmax:s({},i.zmax,{})},hoverinfo:s({},o.hoverinfo),showlegend:s({},o.showlegend,{dflt:!1})}),&quot;calc&quot;,&quot;nested&quot;);u.x.editType=u.y.editType=u.z.editType=&quot;calc+clearAxisTypes&quot;,u.transforms=void 0},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906}],1312:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){e.surfacecolor?n(t,e,{vals:e.surfacecolor,containerStr:&quot;&quot;,cLetter:&quot;c&quot;}):n(t,e,{vals:e.z,containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651}],1313:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-surface3d&quot;),i=t(&quot;ndarray&quot;),a=t(&quot;ndarray-linear-interpolate&quot;).d2,o=t(&quot;../heatmap/interp2d&quot;),s=t(&quot;../heatmap/find_empties&quot;),l=t(&quot;../../lib&quot;).isArrayOrTypedArray,c=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,u=t(&quot;../../lib/str2rgbarray&quot;),f=t(&quot;../../components/colorscale&quot;).extractOpts;function h(t,e,r){this.scene=t,this.uid=r,this.surface=e,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var p=h.prototype;p.getXat=function(t,e,r,n){var i=l(this.data.x)?l(this.data.x[0])?this.data.x[e][t]:this.data.x[t]:t;return void 0===r?i:n.d2l(i,0,r)},p.getYat=function(t,e,r,n){var i=l(this.data.y)?l(this.data.y[0])?this.data.y[e][t]:this.data.y[e]:e;return void 0===r?i:n.d2l(i,0,r)},p.getZat=function(t,e,r,n){var i=this.data.z[e][t];return null===i&amp;&amp;this.data.connectgaps&amp;&amp;this.data._interpolatedZ&amp;&amp;(i=this.data._interpolatedZ[e][t]),void 0===r?i:n.d2l(i,0,r)},p.handlePick=function(t){if(t.object===this.surface){var e=(t.data.index[0]-1)/this.dataScaleX-1,r=(t.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(e),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);t.index=[n,i],t.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],t.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a&lt;3;a++){var o=t.dataCoordinate[a];null!=o&amp;&amp;(t.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return Array.isArray(s)&amp;&amp;s[i]&amp;&amp;void 0!==s[i][n]?t.textLabel=s[i][n]:t.textLabel=s||&quot;&quot;,t.data.dataCoordinate=t.dataCoordinate.slice(),this.surface.highlight(t.data),this.scene.glplot.spikes.position=t.dataCoordinate,!0}};var d=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function g(t,e){if(t&lt;e)return 0;for(var r=0;0===Math.floor(t%e);)t/=e,r++;return r}function m(t){for(var e=[],r=0;r&lt;d.length;r++){var n=d[r];e.push(g(t,n))}return e}function v(t){for(var e=m(t),r=t,n=0;n&lt;d.length;n++)if(e[n]&gt;0){r=d[n];break}return r}function y(t,e){if(!(t&lt;1||e&lt;1)){for(var r=m(t),n=m(e),i=1,a=0;a&lt;d.length;a++)i*=Math.pow(d[a],Math.max(r[a],n[a]));return i}}p.calcXnums=function(t){var e,r=[];for(e=1;e&lt;t;e++){var n=this.getXat(e-1,0),i=this.getXat(e,0);r[e-1]=i!==n&amp;&amp;null!=n&amp;&amp;null!=i?Math.abs(i-n):0}var a=0;for(e=1;e&lt;t;e++)a+=r[e-1];for(e=1;e&lt;t;e++)0===r[e-1]?r[e-1]=1:r[e-1]=Math.round(a/r[e-1]);return r},p.calcYnums=function(t){var e,r=[];for(e=1;e&lt;t;e++){var n=this.getYat(0,e-1),i=this.getYat(0,e);r[e-1]=i!==n&amp;&amp;null!=n&amp;&amp;null!=i?Math.abs(i-n):0}var a=0;for(e=1;e&lt;t;e++)a+=r[e-1];for(e=1;e&lt;t;e++)0===r[e-1]?r[e-1]=1:r[e-1]=Math.round(a/r[e-1]);return r};var x=[1,2,4,6,12,24,36,48,60,120,180,240,360,720,840,1260],b=x[9],_=x[13];function w(t,e,r){var n=r[8]+r[2]*e[0]+r[5]*e[1];return t[0]=(r[6]+r[0]*e[0]+r[3]*e[1])/n,t[1]=(r[7]+r[1]*e[0]+r[4]*e[1])/n,t}function T(t,e,r){return function(t,e,r,n){for(var i=[0,0],o=t.shape[0],s=t.shape[1],l=0;l&lt;o;l++)for(var c=0;c&lt;s;c++)r(i,[l,c],n),t.set(l,c,a(e,i[0],i[1]))}(t,e,w,r),t}function k(t,e){for(var r=!1,n=0;n&lt;t.length;n++)if(e===t[n]){r=!0;break}!1===r&amp;&amp;t.push(e)}p.estimateScale=function(t,e){for(var r=1+function(t){if(0!==t.length){for(var e=1,r=0;r&lt;t.length;r++)e=y(e,t[r]);return e}}(0===e?this.calcXnums(t):this.calcYnums(t));r&lt;b;)r*=2;for(;r&gt;_;)r--,r/=v(r),++r&lt;b&amp;&amp;(r=_);var n=Math.round(r/t);return n&gt;1?n:1},p.refineCoords=function(t){for(var e=this.dataScaleX,r=this.dataScaleY,n=t[0].shape[0],a=t[0].shape[1],o=0|Math.floor(t[0].shape[0]*e+1),s=0|Math.floor(t[0].shape[1]*r+1),l=1+n+1,c=1+a+1,u=i(new Float32Array(l*c),[l,c]),f=[1/e,0,0,0,1/r,0,0,0,1],h=0;h&lt;t.length;++h){this.surface.padField(u,t[h]);var p=i(new Float32Array(o*s),[o,s]);T(p,u,f),t[h]=p}},p.setContourLevels=function(){var t,e,r,n=[[],[],[]],i=[!1,!1,!1],a=!1;for(t=0;t&lt;3;++t)if(this.showContour[t]&amp;&amp;(a=!0,this.contourSize[t]&gt;0&amp;&amp;null!==this.contourStart[t]&amp;&amp;null!==this.contourEnd[t]&amp;&amp;this.contourEnd[t]&gt;this.contourStart[t]))for(i[t]=!0,e=this.contourStart[t];e&lt;this.contourEnd[t];e+=this.contourSize[t])r=e*this.scene.dataScale[t],k(n[t],r);if(a){var o=[[],[],[]];for(t=0;t&lt;3;++t)this.showContour[t]&amp;&amp;(o[t]=i[t]?n[t]:this.scene.contourLevels[t]);this.surface.update({levels:o})}},p.update=function(t){var e,r,n,a,l=this.scene,h=l.fullSceneLayout,p=this.surface,d=c(t),g=l.dataScale,m=t.z[0].length,v=t._ylength,y=l.contourLevels;this.data=t;var x=[];for(e=0;e&lt;3;e++)for(x[e]=[],r=0;r&lt;m;r++)x[e][r]=[];for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)x[0][r][n]=this.getXat(r,n,t.xcalendar,h.xaxis),x[1][r][n]=this.getYat(r,n,t.ycalendar,h.yaxis),x[2][r][n]=this.getZat(r,n,t.zcalendar,h.zaxis);if(t.connectgaps)for(t._emptypoints=s(x[2]),o(x[2],t._emptypoints),t._interpolatedZ=[],r=0;r&lt;m;r++)for(t._interpolatedZ[r]=[],n=0;n&lt;v;n++)t._interpolatedZ[r][n]=x[2][r][n];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null==(a=x[e][r][n])?x[e][r][n]=NaN:a=x[e][r][n]*=g[e];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null!=(a=x[e][r][n])&amp;&amp;(this.minValues[e]&gt;a&amp;&amp;(this.minValues[e]=a),this.maxValues[e]&lt;a&amp;&amp;(this.maxValues[e]=a));for(e=0;e&lt;3;e++)this.objectOffset[e]=.5*(this.minValues[e]+this.maxValues[e]);for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null!=(a=x[e][r][n])&amp;&amp;(x[e][r][n]-=this.objectOffset[e]);var b=[i(new Float32Array(m*v),[m,v]),i(new Float32Array(m*v),[m,v]),i(new Float32Array(m*v),[m,v])];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)b[e].set(r,n,x[e][r][n]);x=[];var w={colormap:d,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!t.hidesurface,contourProject:[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],contourWidth:[1,1,1],contourColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],contourTint:[1,1,1],dynamicColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],dynamicWidth:[1,1,1],dynamicTint:[1,1,1],opacityscale:t.opacityscale,opacity:t.opacity},T=f(t);if(w.intensityBounds=[T.min,T.max],t.surfacecolor){var k=i(new Float32Array(m*v),[m,v]);for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)k.set(r,n,t.surfacecolor[n][r]);b.push(k)}else w.intensityBounds[0]*=g[2],w.intensityBounds[1]*=g[2];(_&lt;b[0].shape[0]||_&lt;b[0].shape[1])&amp;&amp;(this.refineData=!1),!0===this.refineData&amp;&amp;(this.dataScaleX=this.estimateScale(b[0].shape[0],0),this.dataScaleY=this.estimateScale(b[0].shape[1],1),1===this.dataScaleX&amp;&amp;1===this.dataScaleY||this.refineCoords(b)),t.surfacecolor&amp;&amp;(w.intensity=b.pop());var M=[!0,!0,!0],A=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(e=0;e&lt;3;++e){var S=t.contours[A[e]];M[e]=S.highlight,w.showContour[e]=S.show||S.highlight,w.showContour[e]&amp;&amp;(w.contourProject[e]=[S.project.x,S.project.y,S.project.z],S.show?(this.showContour[e]=!0,w.levels[e]=y[e],p.highlightColor[e]=w.contourColor[e]=u(S.color),S.usecolormap?p.highlightTint[e]=w.contourTint[e]=0:p.highlightTint[e]=w.contourTint[e]=1,w.contourWidth[e]=S.width,this.contourStart[e]=S.start,this.contourEnd[e]=S.end,this.contourSize[e]=S.size):(this.showContour[e]=!1,this.contourStart[e]=null,this.contourEnd[e]=null,this.contourSize[e]=0),S.highlight&amp;&amp;(w.dynamicColor[e]=u(S.highlightcolor),w.dynamicWidth[e]=S.highlightwidth))}(function(t){var e=t[0].rgb,r=t[t.length-1].rgb;return e[0]===r[0]&amp;&amp;e[1]===r[1]&amp;&amp;e[2]===r[2]&amp;&amp;e[3]===r[3]})(d)&amp;&amp;(w.vertexColor=!0),w.objectOffset=this.objectOffset,w.coords=b,p.update(w),p.visible=t.visible,p.enableDynamic=M,p.enableHighlight=M,p.snapToData=!0,&quot;lighting&quot;in t&amp;&amp;(p.ambientLight=t.lighting.ambient,p.diffuseLight=t.lighting.diffuse,p.specularLight=t.lighting.specular,p.roughness=t.lighting.roughness,p.fresnel=t.lighting.fresnel),&quot;lightposition&quot;in t&amp;&amp;(p.lightPosition=[t.lightposition.x,t.lightposition.y,t.lightposition.z])},p.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new h(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../heatmap/find_empties&quot;:1071,&quot;../heatmap/interp2d&quot;:1074,&quot;gl-surface3d&quot;:351,ndarray:495,&quot;ndarray-linear-interpolate&quot;:489}],1314:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r,n){var i=n(&quot;opacityscale&quot;);&quot;max&quot;===i?e.opacityscale=[[0,.1],[1,1]]:&quot;min&quot;===i?e.opacityscale=[[0,1],[1,.1]]:&quot;extremes&quot;===i?e.opacityscale=function(t,e){for(var r=[],n=0;n&lt;32;n++){var i=n/31,a=e+(1-e)*(1-Math.pow(Math.sin(t*i*Math.PI),2));r.push([i,Math.max(0,Math.min(1,a))])}return r}(1,.1):function(t){var e=0;if(!Array.isArray(t)||t.length&lt;2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r&lt;t.length;r++){var n=t[r];if(2!==n.length||+n[0]&lt;e)return!1;e=+n[0]}return!0}(i)||(e.opacityscale=void 0)}function l(t,e,r){e in t&amp;&amp;!(r in t)&amp;&amp;(t[r]=t[e])}e.exports={supplyDefaults:function(t,e,r,c){var u,f;function h(r,n){return i.coerce(t,e,o,r,n)}var p=h(&quot;x&quot;),d=h(&quot;y&quot;),g=h(&quot;z&quot;);if(!g||!g.length||p&amp;&amp;p.length&lt;1||d&amp;&amp;d.length&lt;1)e.visible=!1;else{e._xlength=Array.isArray(p)&amp;&amp;i.isArrayOrTypedArray(p[0])?g.length:g[0].length,e._ylength=g.length,n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],c),h(&quot;text&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;),[&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;hidesurface&quot;,&quot;connectgaps&quot;,&quot;opacity&quot;].forEach((function(t){h(t)}));var m=h(&quot;surfacecolor&quot;),v=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(u=0;u&lt;3;++u){var y=&quot;contours.&quot;+v[u],x=h(y+&quot;.show&quot;),b=h(y+&quot;.highlight&quot;);if(x||b)for(f=0;f&lt;3;++f)h(y+&quot;.project.&quot;+v[f]);x&amp;&amp;(h(y+&quot;.color&quot;),h(y+&quot;.width&quot;),h(y+&quot;.usecolormap&quot;)),b&amp;&amp;(h(y+&quot;.highlightcolor&quot;),h(y+&quot;.highlightwidth&quot;)),h(y+&quot;.start&quot;),h(y+&quot;.end&quot;),h(y+&quot;.size&quot;)}m||(l(t,&quot;zmin&quot;,&quot;cmin&quot;),l(t,&quot;zmax&quot;,&quot;cmax&quot;),l(t,&quot;zauto&quot;,&quot;cauto&quot;)),a(t,e,c,h,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(t,e,c,h),e._length=null}},opacityscaleDefaults:s}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1311}],1315:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;surface&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;2dMap&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1311,&quot;./calc&quot;:1312,&quot;./convert&quot;:1313,&quot;./defaults&quot;:1314}],1316:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/annotations/attributes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../../plot_api/edit_types&quot;).overrideAll,o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes;t(&quot;../../constants/docs&quot;).FORMAT_LINK;(e.exports=a({domain:s({name:&quot;table&quot;,trace:!0}),columnwidth:{valType:&quot;number&quot;,arrayOk:!0,dflt:null},columnorder:{valType:&quot;data_array&quot;},header:{values:{valType:&quot;data_array&quot;,dflt:[]},format:{valType:&quot;data_array&quot;,dflt:[]},prefix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},suffix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},height:{valType:&quot;number&quot;,dflt:28},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:&quot;number&quot;,arrayOk:!0,dflt:1},color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;grey&quot;}},fill:{color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;white&quot;}},font:i({},o({arrayOk:!0}))},cells:{values:{valType:&quot;data_array&quot;,dflt:[]},format:{valType:&quot;data_array&quot;,dflt:[]},prefix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},suffix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},height:{valType:&quot;number&quot;,dflt:20},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:&quot;number&quot;,arrayOk:!0,dflt:1},color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;grey&quot;}},fill:{color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;white&quot;}},font:i({},o({arrayOk:!0}))}},&quot;calc&quot;,&quot;from-root&quot;)).transforms=void 0},{&quot;../../components/annotations/attributes&quot;:626,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856}],1317:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getModuleCalcData,i=t(&quot;./plot&quot;);r.name=&quot;table&quot;,r.plot=function(t){var e=n(t.calcdata,&quot;table&quot;)[0];e.length&amp;&amp;i(t,e)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;table&quot;),a=e._has&amp;&amp;e._has(&quot;table&quot;);i&amp;&amp;!a&amp;&amp;n._paperdiv.selectAll(&quot;.table&quot;).remove()}},{&quot;../../plots/get_data&quot;:865,&quot;./plot&quot;:1324}],1318:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/gup&quot;).wrap;e.exports=function(){return n({})}},{&quot;../../lib/gup&quot;:775}],1319:[function(t,e,r){&quot;use strict&quot;;e.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:&quot;&lt;br&gt;&quot;,maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:&quot;cubic-out&quot;,scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:&quot;cubic-out&quot;,uplift:5,wrapSpacer:&quot; &quot;,wrapSplitCharacter:&quot; &quot;,cn:{table:&quot;table&quot;,tableControlView:&quot;table-control-view&quot;,scrollBackground:&quot;scroll-background&quot;,yColumn:&quot;y-column&quot;,columnBlock:&quot;column-block&quot;,scrollAreaClip:&quot;scroll-area-clip&quot;,scrollAreaClipRect:&quot;scroll-area-clip-rect&quot;,columnBoundary:&quot;column-boundary&quot;,columnBoundaryClippath:&quot;column-boundary-clippath&quot;,columnBoundaryRect:&quot;column-boundary-rect&quot;,columnCells:&quot;column-cells&quot;,columnCell:&quot;column-cell&quot;,cellRect:&quot;cell-rect&quot;,cellText:&quot;cell-text&quot;,cellTextHolder:&quot;cell-text-holder&quot;,scrollbarKit:&quot;scrollbar-kit&quot;,scrollbar:&quot;scrollbar&quot;,scrollbarSlider:&quot;scrollbar-slider&quot;,scrollbarGlyph:&quot;scrollbar-glyph&quot;,scrollbarCaptureZone:&quot;scrollbar-capture-zone&quot;}}},{}],1320:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;fast-isnumeric&quot;);function o(t){if(Array.isArray(t)){for(var e=0,r=0;r&lt;t.length;r++)e=Math.max(e,o(t[r]));return e}return t}function s(t,e){return t+e}function l(t){var e,r=t.slice(),n=1/0,i=0;for(e=0;e&lt;r.length;e++)Array.isArray(r[e])||(r[e]=[r[e]]),n=Math.min(n,r[e].length),i=Math.max(i,r[e].length);if(n!==i)for(e=0;e&lt;r.length;e++){var a=i-r[e].length;a&amp;&amp;(r[e]=r[e].concat(c(a)))}return r}function c(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=&quot;&quot;;return e}function u(t){return t.calcdata.columns.reduce((function(e,r){return r.xIndex&lt;t.xIndex?e+r.columnWidth:e}),0)}function f(t,e){return Object.keys(t).map((function(r){return i({},t[r],{auxiliaryBlocks:e})}))}function h(t,e){for(var r,n={},i=0,a=0,o={firstRowIndex:null,lastRowIndex:null,rows:[]},s=0,l=0,c=0;c&lt;t.length;c++)r=t[c],o.rows.push({rowIndex:c,rowHeight:r}),((a+=r)&gt;=e||c===t.length-1)&amp;&amp;(n[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=c,o={firstRowIndex:null,lastRowIndex:null,rows:[]},i+=a,s=c+1,a=0);return n}e.exports=function(t,e){var r=l(e.cells.values),p=function(t){return t.slice(e.header.values.length,t.length)},d=l(e.header.values);d.length&amp;&amp;!d[0].length&amp;&amp;(d[0]=[&quot;&quot;],d=l(d));var g=d.concat(p(r).map((function(){return c((d[0]||[&quot;&quot;]).length)}))),m=e.domain,v=Math.floor(t._fullLayout._size.w*(m.x[1]-m.x[0])),y=Math.floor(t._fullLayout._size.h*(m.y[1]-m.y[0])),x=e.header.values.length?g[0].map((function(){return e.header.height})):[n.emptyHeaderHeight],b=r.length?r[0].map((function(){return e.cells.height})):[],_=x.reduce(s,0),w=h(b,y-_+n.uplift),T=f(h(x,_),[]),k=f(w,T),M={},A=e._fullInput.columnorder.concat(p(r.map((function(t,e){return e})))),S=g.map((function(t,r){var n=Array.isArray(e.columnwidth)?e.columnwidth[Math.min(r,e.columnwidth.length-1)]:e.columnwidth;return a(n)?Number(n):1})),E=S.reduce(s,0);S=S.map((function(t){return t/E*v}));var C=Math.max(o(e.header.line.width),o(e.cells.line.width)),L={key:e.uid+t._context.staticPlot,translateX:m.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-m.y[1]),size:t._fullLayout._size,width:v,maxLineWidth:C,height:y,columnOrder:A,groupHeight:y,rowBlocks:k,headerRowBlocks:T,scrollY:0,cells:i({},e.cells,{values:r}),headerCells:i({},e.header,{values:g}),gdColumns:g.map((function(t){return t[0]})),gdColumnsOriginalOrder:g.map((function(t){return t[0]})),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:g.map((function(t,e){var r=M[t];return M[t]=(r||0)+1,{key:t+&quot;__&quot;+M[t],label:t,specIndex:e,xIndex:A[e],xScale:u,x:void 0,calcdata:void 0,columnWidth:S[e]}}))};return L.columns.forEach((function(t){t.calcdata=L,t.x=u(t)})),L}},{&quot;../../lib/extend&quot;:768,&quot;./constants&quot;:1319,&quot;fast-isnumeric&quot;:241}],1321:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat;r.splitToPanels=function(t){var e=[0,0],r=n({},t,{key:&quot;header&quot;,type:&quot;header&quot;,page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!0,values:t.calcdata.headerCells.values[t.specIndex],rowBlocks:t.calcdata.headerRowBlocks,calcdata:n({},t.calcdata,{cells:t.calcdata.headerCells})});return[n({},t,{key:&quot;cells1&quot;,type:&quot;cells&quot;,page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),n({},t,{key:&quot;cells2&quot;,type:&quot;cells&quot;,page:1,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),r]},r.splitToCells=function(t){var e=function(t){var e=t.rowBlocks[t.page],r=e?e.rows[0].rowIndex:0,n=e?r+e.rows.length:0;return[r,n]}(t);return(t.values||[]).slice(e[0],e[1]).map((function(r,n){return{keyWithinBlock:n+(&quot;string&quot;==typeof r&amp;&amp;r.match(/[&lt;$&amp;&gt; ]/)?&quot;_keybuster_&quot;+Math.random():&quot;&quot;),key:e[0]+n,column:t,calcdata:t.calcdata,page:t.page,rowBlocks:t.rowBlocks,value:r}}))}},{&quot;../../lib/extend&quot;:768}],1322:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults;e.exports=function(t,e,r,o){function s(r,a){return n.coerce(t,e,i,r,a)}a(e,o,s),s(&quot;columnwidth&quot;),s(&quot;header.values&quot;),s(&quot;header.format&quot;),s(&quot;header.align&quot;),s(&quot;header.prefix&quot;),s(&quot;header.suffix&quot;),s(&quot;header.height&quot;),s(&quot;header.line.width&quot;),s(&quot;header.line.color&quot;),s(&quot;header.fill.color&quot;),n.coerceFont(s,&quot;header.font&quot;,n.extendFlat({},o.font)),function(t,e){for(var r=t.columnorder||[],n=t.header.values.length,i=r.slice(0,n),a=i.slice().sort((function(t,e){return t-e})),o=i.map((function(t){return a.indexOf(t)})),s=o.length;s&lt;n;s++)o.push(s);e(&quot;columnorder&quot;,o)}(e,s),s(&quot;cells.values&quot;),s(&quot;cells.format&quot;),s(&quot;cells.align&quot;),s(&quot;cells.prefix&quot;),s(&quot;cells.suffix&quot;),s(&quot;cells.height&quot;),s(&quot;cells.line.width&quot;),s(&quot;cells.line.color&quot;),s(&quot;cells.fill.color&quot;),n.coerceFont(s,&quot;cells.font&quot;,n.extendFlat({},o.font)),e._length=null}},{&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1316}],1323:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),moduleType:&quot;trace&quot;,name:&quot;table&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1316,&quot;./base_plot&quot;:1317,&quot;./calc&quot;:1318,&quot;./defaults&quot;:1322,&quot;./plot&quot;:1324}],1324:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;d3&quot;),a=t(&quot;../../lib/gup&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../../lib&quot;).raiseToTop,c=t(&quot;../../lib&quot;).strTranslate,u=t(&quot;../../lib&quot;).cancelTransition,f=t(&quot;./data_preparation_helper&quot;),h=t(&quot;./data_split_helpers&quot;),p=t(&quot;../../components/color&quot;);function d(t){return Math.ceil(t.calcdata.maxLineWidth/2)}function g(t,e){return&quot;clip&quot;+t._fullLayout._uid+&quot;_scrollAreaBottomClip_&quot;+e.key}function m(t,e){return&quot;clip&quot;+t._fullLayout._uid+&quot;_columnBoundaryClippath_&quot;+e.calcdata.key+&quot;_&quot;+e.specIndex}function v(t){return[].concat.apply([],t.map((function(t){return t}))).map((function(t){return t.__data__}))}function y(t,e,r){var o=t.selectAll(&quot;.&quot;+n.cn.scrollbarKit).data(a.repeat,a.keyFun);o.enter().append(&quot;g&quot;).classed(n.cn.scrollbarKit,!0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;),o.each((function(t){var e=t.scrollbarState;e.totalHeight=function(t){var e=t.rowBlocks;return O(e,e.length-1)+(e.length?D(e[e.length-1],1/0):1)}(t),e.scrollableAreaHeight=t.groupHeight-A(t),e.currentlyVisibleHeight=Math.min(e.totalHeight,e.scrollableAreaHeight),e.ratio=e.currentlyVisibleHeight/e.totalHeight,e.barLength=Math.max(e.ratio*e.currentlyVisibleHeight,n.goldenRatio*n.scrollbarWidth),e.barWiggleRoom=e.currentlyVisibleHeight-e.barLength,e.wiggleRoom=Math.max(0,e.totalHeight-e.scrollableAreaHeight),e.topY=0===e.barWiggleRoom?0:t.scrollY/e.wiggleRoom*e.barWiggleRoom,e.bottomY=e.topY+e.barLength,e.dragMultiplier=e.wiggleRoom/e.barWiggleRoom})).attr(&quot;transform&quot;,(function(t){var e=t.width+n.scrollbarWidth/2+n.scrollbarOffset;return c(e,A(t))}));var s=o.selectAll(&quot;.&quot;+n.cn.scrollbar).data(a.repeat,a.keyFun);s.enter().append(&quot;g&quot;).classed(n.cn.scrollbar,!0);var l=s.selectAll(&quot;.&quot;+n.cn.scrollbarSlider).data(a.repeat,a.keyFun);l.enter().append(&quot;g&quot;).classed(n.cn.scrollbarSlider,!0),l.attr(&quot;transform&quot;,(function(t){return c(0,t.scrollbarState.topY||0)}));var u=l.selectAll(&quot;.&quot;+n.cn.scrollbarGlyph).data(a.repeat,a.keyFun);u.enter().append(&quot;line&quot;).classed(n.cn.scrollbarGlyph,!0).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,n.scrollbarWidth).attr(&quot;stroke-linecap&quot;,&quot;round&quot;).attr(&quot;y1&quot;,n.scrollbarWidth/2),u.attr(&quot;y2&quot;,(function(t){return t.scrollbarState.barLength-n.scrollbarWidth/2})).attr(&quot;stroke-opacity&quot;,(function(t){return t.columnDragInProgress||!t.scrollbarState.barWiggleRoom||r?0:.4})),u.transition().delay(0).duration(0),u.transition().delay(n.scrollbarHideDelay).duration(n.scrollbarHideDuration).attr(&quot;stroke-opacity&quot;,0);var f=s.selectAll(&quot;.&quot;+n.cn.scrollbarCaptureZone).data(a.repeat,a.keyFun);f.enter().append(&quot;line&quot;).classed(n.cn.scrollbarCaptureZone,!0).attr(&quot;stroke&quot;,&quot;white&quot;).attr(&quot;stroke-opacity&quot;,.01).attr(&quot;stroke-width&quot;,n.scrollbarCaptureWidth).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;).attr(&quot;y1&quot;,0).on(&quot;mousedown&quot;,(function(r){var n=i.event.y,a=this.getBoundingClientRect(),o=r.scrollbarState,s=n-a.top,l=i.scale.linear().domain([0,o.scrollableAreaHeight]).range([0,o.totalHeight]).clamp(!0);o.topY&lt;=s&amp;&amp;s&lt;=o.bottomY||E(e,t,null,l(s-o.barLength/2))(r)})).call(i.behavior.drag().origin((function(t){return i.event.stopPropagation(),t.scrollbarState.scrollbarScrollInProgress=!0,t})).on(&quot;drag&quot;,E(e,t)).on(&quot;dragend&quot;,(function(){}))),f.attr(&quot;y2&quot;,(function(t){return t.scrollbarState.scrollableAreaHeight})),e._context.staticPlot&amp;&amp;(u.remove(),f.remove())}function x(t,e,r,s){var l=function(t){var e=t.selectAll(&quot;.&quot;+n.cn.columnCell).data(h.splitToCells,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;g&quot;).classed(n.cn.columnCell,!0),e.exit().remove(),e}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.columnCells).data(a.repeat,a.keyFun);return e.enter().append(&quot;g&quot;).classed(n.cn.columnCells,!0),e.exit().remove(),e}(r));!function(t){t.each((function(t,e){var r=t.calcdata.cells.font,n=t.column.specIndex,i={size:w(r.size,n,e),color:w(r.color,n,e),family:w(r.family,n,e)};t.rowNumber=t.key,t.align=w(t.calcdata.cells.align,n,e),t.cellBorderWidth=w(t.calcdata.cells.line.width,n,e),t.font=i}))}(l),function(t){t.attr(&quot;width&quot;,(function(t){return t.column.columnWidth})).attr(&quot;stroke-width&quot;,(function(t){return t.cellBorderWidth})).each((function(t){var e=i.select(this);p.stroke(e,w(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),p.fill(e,w(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))}))}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellRect).data(a.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;rect&quot;).classed(n.cn.cellRect,!0),e}(l));var c=function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellText).data(a.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;text&quot;).classed(n.cn.cellText,!0).style(&quot;cursor&quot;,(function(){return&quot;auto&quot;})).on(&quot;mousedown&quot;,(function(){i.event.stopPropagation()})),e}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellTextHolder).data(a.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;g&quot;).classed(n.cn.cellTextHolder,!0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;),e}(l));!function(t){t.each((function(t){o.font(i.select(this),t.font)}))}(c),b(c,e,s,t),z(l)}function b(t,e,r,a){t.text((function(t){var e=t.column.specIndex,r=t.rowNumber,a=t.value,o=&quot;string&quot;==typeof a,s=o&amp;&amp;a.match(/&lt;br&gt;/i),l=!o||s;t.mayHaveMarkup=o&amp;&amp;a.match(/[&lt;&amp;&gt;]/);var c,u=&quot;string&quot;==typeof(c=a)&amp;&amp;c.match(n.latexCheck);t.latex=u;var f,h,p=u?&quot;&quot;:w(t.calcdata.cells.prefix,e,r)||&quot;&quot;,d=u?&quot;&quot;:w(t.calcdata.cells.suffix,e,r)||&quot;&quot;,g=u?null:w(t.calcdata.cells.format,e,r)||null,m=p+(g?i.format(g)(t.value):t.value)+d;if(t.wrappingNeeded=!t.wrapped&amp;&amp;!l&amp;&amp;!u&amp;&amp;(f=_(m)),t.cellHeightMayIncrease=s||u||t.mayHaveMarkup||(void 0===f?_(m):f),t.needsConvertToTspans=t.mayHaveMarkup||t.wrappingNeeded||t.latex,t.wrappingNeeded){var v=(&quot; &quot;===n.wrapSplitCharacter?m.replace(/&lt;a href=/gi,&quot;&lt;a_href=&quot;):m).split(n.wrapSplitCharacter),y=&quot; &quot;===n.wrapSplitCharacter?v.map((function(t){return t.replace(/&lt;a_href=/gi,&quot;&lt;a href=&quot;)})):v;t.fragments=y.map((function(t){return{text:t,width:null}})),t.fragments.push({fragment:n.wrapSpacer,width:null}),h=y.join(n.lineBreaker)+n.lineBreaker+n.wrapSpacer}else delete t.fragments,h=m;return h})).attr(&quot;dy&quot;,(function(t){return t.needsConvertToTspans?0:&quot;0.75em&quot;})).each((function(t){var o=i.select(this),l=t.wrappingNeeded?L:I;t.needsConvertToTspans?s.convertToTspans(o,a,l(r,this,e,a,t)):i.select(this.parentNode).attr(&quot;transform&quot;,(function(t){return c(P(t),n.cellPad)})).attr(&quot;text-anchor&quot;,(function(t){return{left:&quot;start&quot;,center:&quot;middle&quot;,right:&quot;end&quot;}[t.align]}))}))}function _(t){return-1!==t.indexOf(n.wrapSplitCharacter)}function w(t,e,r){if(Array.isArray(t)){var n=t[Math.min(e,t.length-1)];return Array.isArray(n)?n[Math.min(r,n.length-1)]:n}return t}function T(t,e,r){t.transition().ease(n.releaseTransitionEase).duration(n.releaseTransitionDuration).attr(&quot;transform&quot;,c(e.x,r))}function k(t){return&quot;cells&quot;===t.type}function M(t){return&quot;header&quot;===t.type}function A(t){return(t.rowBlocks.length?t.rowBlocks[0].auxiliaryBlocks:[]).reduce((function(t,e){return t+D(e,1/0)}),0)}function S(t,e,r){var n=v(e)[0];if(void 0!==n){var i=n.rowBlocks,a=n.calcdata,o=O(i,i.length),s=n.calcdata.groupHeight-A(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),u=function(t,e,r){for(var n=[],i=0,a=0;a&lt;t.length;a++){for(var o=t[a],s=o.rows,l=0,c=0;c&lt;s.length;c++)l+=s[c].rowHeight;o.allRowsHeight=l;e&lt;i+l&amp;&amp;e+r&gt;i&amp;&amp;n.push(a),i+=l}return n}(i,l,s);1===u.length&amp;&amp;(u[0]===i.length-1?u.unshift(u[0]-1):u.push(u[0]+1)),u[0]%2&amp;&amp;u.reverse(),e.each((function(t,e){t.page=u[e],t.scrollY=l})),e.attr(&quot;transform&quot;,(function(t){var e=O(t.rowBlocks,t.page)-t.scrollY;return c(0,e)})),t&amp;&amp;(C(t,r,e,u,n.prevPages,n,0),C(t,r,e,u,n.prevPages,n,1),y(r,t))}}function E(t,e,r,a){return function(o){var s=o.calcdata?o.calcdata:o,l=e.filter((function(t){return s.key===t.key})),c=r||s.scrollbarState.dragMultiplier,u=s.scrollY;s.scrollY=void 0===a?s.scrollY+c*i.event.dy:a;var f=l.selectAll(&quot;.&quot;+n.cn.yColumn).selectAll(&quot;.&quot;+n.cn.columnBlock).filter(k);return S(t,f,l),s.scrollY===u}}function C(t,e,r,n,i,a,o){n[o]!==i[o]&amp;&amp;(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout((function(){var a=r.filter((function(t,e){return e===o&amp;&amp;n[e]!==i[e]}));x(t,e,a,r),i[o]=n[o]})))}function L(t,e,r,a){return function(){var o=i.select(e.parentNode);o.each((function(t){var e=t.fragments;o.selectAll(&quot;tspan.line&quot;).each((function(t,r){e[r].width=this.getComputedTextLength()}));var r,i,a=e[e.length-1].width,s=e.slice(0,-1),l=[],c=0,u=t.column.columnWidth-2*n.cellPad;for(t.value=&quot;&quot;;s.length;)c+(i=(r=s.shift()).width+a)&gt;u&amp;&amp;(t.value+=l.join(n.wrapSpacer)+n.lineBreaker,l=[],c=0),l.push(r.text),c+=i;c&amp;&amp;(t.value+=l.join(n.wrapSpacer)),t.wrapped=!0})),o.selectAll(&quot;tspan.line&quot;).remove(),b(o.select(&quot;.&quot;+n.cn.cellText),r,t,a),i.select(e.parentNode.parentNode).call(z)}}function I(t,e,r,a,o){return function(){if(!o.settledY){var s=i.select(e.parentNode),l=F(o),u=o.key-l.firstRowIndex,f=l.rows[u].rowHeight,h=o.cellHeightMayIncrease?e.parentNode.getBoundingClientRect().height+2*n.cellPad:f,p=Math.max(h,f);p-l.rows[u].rowHeight&amp;&amp;(l.rows[u].rowHeight=p,t.selectAll(&quot;.&quot;+n.cn.columnCell).call(z),S(null,t.filter(k),0),y(r,a,!0)),s.attr(&quot;transform&quot;,(function(){var t=this.parentNode.getBoundingClientRect(),e=i.select(this.parentNode).select(&quot;.&quot;+n.cn.cellRect).node().getBoundingClientRect(),r=this.transform.baseVal.consolidate(),a=e.top-t.top+(r?r.matrix.f:n.cellPad);return c(P(o,i.select(this.parentNode).select(&quot;.&quot;+n.cn.cellTextHolder).node().getBoundingClientRect().width),a)})),o.settledY=!0}}}function P(t,e){switch(t.align){case&quot;left&quot;:return n.cellPad;case&quot;right&quot;:return t.column.columnWidth-(e||0)-n.cellPad;case&quot;center&quot;:return(t.column.columnWidth-(e||0))/2;default:return n.cellPad}}function z(t){t.attr(&quot;transform&quot;,(function(t){var e=t.rowBlocks[0].auxiliaryBlocks.reduce((function(t,e){return t+D(e,1/0)}),0),r=D(F(t),t.key);return c(0,r+e)})).selectAll(&quot;.&quot;+n.cn.cellRect).attr(&quot;height&quot;,(function(t){return(e=F(t),r=t.key,e.rows[r-e.firstRowIndex]).rowHeight;var e,r}))}function O(t,e){for(var r=0,n=e-1;n&gt;=0;n--)r+=R(t[n]);return r}function D(t,e){for(var r=0,n=0;n&lt;t.rows.length&amp;&amp;t.rows[n].rowIndex&lt;e;n++)r+=t.rows[n].rowHeight;return r}function R(t){var e=t.allRowsHeight;if(void 0!==e)return e;for(var r=0,n=0;n&lt;t.rows.length;n++)r+=t.rows[n].rowHeight;return t.allRowsHeight=r,r}function F(t){return t.rowBlocks[t.page]}e.exports=function(t,e){var r=!t._context.staticPlot,s=t._fullLayout._paper.selectAll(&quot;.&quot;+n.cn.table).data(e.map((function(e){var r=a.unwrap(e).trace;return f(t,r)})),a.keyFun);s.exit().remove(),s.enter().append(&quot;g&quot;).classed(n.cn.table,!0).attr(&quot;overflow&quot;,&quot;visible&quot;).style(&quot;box-sizing&quot;,&quot;content-box&quot;).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;left&quot;,0).style(&quot;overflow&quot;,&quot;visible&quot;).style(&quot;shape-rendering&quot;,&quot;crispEdges&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;),s.attr(&quot;width&quot;,(function(t){return t.width+t.size.l+t.size.r})).attr(&quot;height&quot;,(function(t){return t.height+t.size.t+t.size.b})).attr(&quot;transform&quot;,(function(t){return c(t.translateX,t.translateY)}));var p=s.selectAll(&quot;.&quot;+n.cn.tableControlView).data(a.repeat,a.keyFun),b=p.enter().append(&quot;g&quot;).classed(n.cn.tableControlView,!0).style(&quot;box-sizing&quot;,&quot;content-box&quot;);if(r){var _=&quot;onwheel&quot;in document?&quot;wheel&quot;:&quot;mousewheel&quot;;b.on(&quot;mousemove&quot;,(function(e){p.filter((function(t){return e===t})).call(y,t)})).on(_,(function(e){if(!e.scrollbarState.wheeling){e.scrollbarState.wheeling=!0;var r=e.scrollY+i.event.deltaY;E(t,p,null,r)(e)||(i.event.stopPropagation(),i.event.preventDefault()),e.scrollbarState.wheeling=!1}})).call(y,t,!0)}p.attr(&quot;transform&quot;,(function(t){return c(t.size.l,t.size.t)}));var w=p.selectAll(&quot;.&quot;+n.cn.scrollBackground).data(a.repeat,a.keyFun);w.enter().append(&quot;rect&quot;).classed(n.cn.scrollBackground,!0).attr(&quot;fill&quot;,&quot;none&quot;),w.attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})),p.each((function(e){o.setClipUrl(i.select(this),g(t,e),t)}));var A=p.selectAll(&quot;.&quot;+n.cn.yColumn).data((function(t){return t.columns}),a.keyFun);A.enter().append(&quot;g&quot;).classed(n.cn.yColumn,!0),A.exit().remove(),A.attr(&quot;transform&quot;,(function(t){return c(t.x,0)})),r&amp;&amp;A.call(i.behavior.drag().origin((function(e){return T(i.select(this),e,-n.uplift),l(this),e.calcdata.columnDragInProgress=!0,y(p.filter((function(t){return e.calcdata.key===t.key})),t),e})).on(&quot;drag&quot;,(function(t){var e=i.select(this),r=function(e){return(t===e?i.event.x:e.x)+e.columnWidth/2};t.x=Math.max(-n.overdrag,Math.min(t.calcdata.width+n.overdrag-t.columnWidth,i.event.x)),v(A).filter((function(e){return e.calcdata.key===t.calcdata.key})).sort((function(t,e){return r(t)-r(e)})).forEach((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e)})),A.filter((function(e){return t!==e})).transition().ease(n.transitionEase).duration(n.transitionDuration).attr(&quot;transform&quot;,(function(t){return c(t.x,0)})),e.call(u).attr(&quot;transform&quot;,c(t.x,-n.uplift))})).on(&quot;dragend&quot;,(function(e){var r=i.select(this),n=e.calcdata;e.x=e.xScale(e),e.calcdata.columnDragInProgress=!1,T(r,e,0),function(t,e,r){var n=e.gdColumnsOriginalOrder;e.gdColumns.sort((function(t,e){return r[n.indexOf(t)]-r[n.indexOf(e)]})),e.columnorder=r,t.emit(&quot;plotly_restyle&quot;)}(t,n,n.columns.map((function(t){return t.xIndex})))}))),A.each((function(e){o.setClipUrl(i.select(this),m(t,e),t)}));var C=A.selectAll(&quot;.&quot;+n.cn.columnBlock).data(h.splitToPanels,a.keyFun);C.enter().append(&quot;g&quot;).classed(n.cn.columnBlock,!0).attr(&quot;id&quot;,(function(t){return t.key})),C.style(&quot;cursor&quot;,(function(t){return t.dragHandle?&quot;ew-resize&quot;:t.calcdata.scrollbarState.barWiggleRoom?&quot;ns-resize&quot;:&quot;default&quot;}));var L=C.filter(M),I=C.filter(k);r&amp;&amp;I.call(i.behavior.drag().origin((function(t){return i.event.stopPropagation(),t})).on(&quot;drag&quot;,E(t,p,-1)).on(&quot;dragend&quot;,(function(){}))),x(t,p,L,C),x(t,p,I,C);var P=p.selectAll(&quot;.&quot;+n.cn.scrollAreaClip).data(a.repeat,a.keyFun);P.enter().append(&quot;clipPath&quot;).classed(n.cn.scrollAreaClip,!0).attr(&quot;id&quot;,(function(e){return g(t,e)}));var z=P.selectAll(&quot;.&quot;+n.cn.scrollAreaClipRect).data(a.repeat,a.keyFun);z.enter().append(&quot;rect&quot;).classed(n.cn.scrollAreaClipRect,!0).attr(&quot;x&quot;,-n.overdrag).attr(&quot;y&quot;,-n.uplift).attr(&quot;fill&quot;,&quot;none&quot;),z.attr(&quot;width&quot;,(function(t){return t.width+2*n.overdrag})).attr(&quot;height&quot;,(function(t){return t.height+n.uplift})),A.selectAll(&quot;.&quot;+n.cn.columnBoundary).data(a.repeat,a.keyFun).enter().append(&quot;g&quot;).classed(n.cn.columnBoundary,!0);var O=A.selectAll(&quot;.&quot;+n.cn.columnBoundaryClippath).data(a.repeat,a.keyFun);O.enter().append(&quot;clipPath&quot;).classed(n.cn.columnBoundaryClippath,!0),O.attr(&quot;id&quot;,(function(e){return m(t,e)}));var D=O.selectAll(&quot;.&quot;+n.cn.columnBoundaryRect).data(a.repeat,a.keyFun);D.enter().append(&quot;rect&quot;).classed(n.cn.columnBoundaryRect,!0).attr(&quot;fill&quot;,&quot;none&quot;),D.attr(&quot;width&quot;,(function(t){return t.columnWidth+2*d(t)})).attr(&quot;height&quot;,(function(t){return t.calcdata.height+2*d(t)+n.uplift})).attr(&quot;x&quot;,(function(t){return-d(t)})).attr(&quot;y&quot;,(function(t){return-d(t)})),S(null,I,p)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;../../lib/svg_text_utils&quot;:803,&quot;./constants&quot;:1319,&quot;./data_preparation_helper&quot;:1320,&quot;./data_split_helpers&quot;:1321,d3:169}],1325:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../pie/attributes&quot;),l=t(&quot;../sunburst/attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:l.labels,parents:l.parents,values:l.values,branchvalues:l.branchvalues,count:l.count,level:l.level,maxdepth:l.maxdepth,tiling:{packing:{valType:&quot;enumerated&quot;,values:[&quot;squarify&quot;,&quot;binary&quot;,&quot;dice&quot;,&quot;slice&quot;,&quot;slice-dice&quot;,&quot;dice-slice&quot;],dflt:&quot;squarify&quot;,editType:&quot;plot&quot;},squarifyratio:{valType:&quot;number&quot;,min:1,dflt:1,editType:&quot;plot&quot;},flip:{valType:&quot;flaglist&quot;,flags:[&quot;x&quot;,&quot;y&quot;],dflt:&quot;&quot;,editType:&quot;plot&quot;},pad:{valType:&quot;number&quot;,min:0,dflt:3,editType:&quot;plot&quot;},editType:&quot;calc&quot;},marker:u({pad:{t:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},l:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},r:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},b:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},colors:l.marker.colors,depthfade:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],editType:&quot;style&quot;},line:l.marker.line,editType:&quot;calc&quot;},a(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),pathbar:{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;plot&quot;},edgeshape:{valType:&quot;enumerated&quot;,values:[&quot;&gt;&quot;,&quot;&lt;&quot;,&quot;|&quot;,&quot;/&quot;,&quot;\\&quot;],dflt:&quot;&gt;&quot;,editType:&quot;plot&quot;},thickness:{valType:&quot;number&quot;,min:12,editType:&quot;plot&quot;},textfont:u({},s.textfont,{}),editType:&quot;calc&quot;},text:s.text,textinfo:l.textinfo,texttemplate:i({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:s.hovertext,hoverinfo:l.hoverinfo,hovertemplate:n({},{keys:c.eventDataKeys}),textfont:s.textfont,insidetextfont:s.insidetextfont,outsidetextfont:u({},s.outsidetextfont,{}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle left&quot;,&quot;middle center&quot;,&quot;middle right&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],dflt:&quot;top left&quot;,editType:&quot;plot&quot;},sort:s.sort,root:l.root,domain:o({name:&quot;treemap&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/domain&quot;:855,&quot;../../plots/template_attributes&quot;:906,&quot;../pie/attributes&quot;:1161,&quot;../sunburst/attributes&quot;:1299,&quot;./constants&quot;:1328}],1326:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;treemap&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1327:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../sunburst/calc&quot;);r.calc=function(t,e){return n.calc(t,e)},r.crossTraceCalc=function(t){return n._runCrossTraceCalc(&quot;treemap&quot;,t)}},{&quot;../sunburst/calc&quot;:1301}],1328:[function(t,e,r){&quot;use strict&quot;;e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:&quot;poly&quot;,eventDataKeys:[&quot;currentPath&quot;,&quot;root&quot;,&quot;entry&quot;,&quot;percentRoot&quot;,&quot;percentEntry&quot;,&quot;percentParent&quot;],gapWithPathbar:1}},{}],1329:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText,l=t(&quot;../bar/constants&quot;).TEXTPAD,c=t(&quot;../../components/colorscale&quot;),u=c.hasColorscale,f=c.handleDefaults;e.exports=function(t,e,r,c){function h(r,a){return n.coerce(t,e,i,r,a)}var p=h(&quot;labels&quot;),d=h(&quot;parents&quot;);if(p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length){var g=h(&quot;values&quot;);g&amp;&amp;g.length?h(&quot;branchvalues&quot;):h(&quot;count&quot;),h(&quot;level&quot;),h(&quot;maxdepth&quot;),&quot;squarify&quot;===h(&quot;tiling.packing&quot;)&amp;&amp;h(&quot;tiling.squarifyratio&quot;),h(&quot;tiling.flip&quot;),h(&quot;tiling.pad&quot;);var m=h(&quot;text&quot;);h(&quot;texttemplate&quot;),e.texttemplate||h(&quot;textinfo&quot;,Array.isArray(m)?&quot;text+label&quot;:&quot;label&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;);var v=h(&quot;pathbar.visible&quot;);s(t,e,c,h,&quot;auto&quot;,{hasPathbar:v,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),h(&quot;textposition&quot;);var y=-1!==e.textposition.indexOf(&quot;bottom&quot;);h(&quot;marker.line.width&quot;)&amp;&amp;h(&quot;marker.line.color&quot;,c.paper_bgcolor);var x=h(&quot;marker.colors&quot;),b=e._hasColorscale=u(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis;b?f(t,e,c,h,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}):h(&quot;marker.depthfade&quot;,!(x||[]).length);var _=2*e.textfont.size;h(&quot;marker.pad.t&quot;,y?_/4:_),h(&quot;marker.pad.l&quot;,_/4),h(&quot;marker.pad.r&quot;,_/4),h(&quot;marker.pad.b&quot;,y?_:_/4),b&amp;&amp;f(t,e,c,h,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),e._hovered={marker:{line:{width:2,color:a.contrast(c.paper_bgcolor)}}},v&amp;&amp;(h(&quot;pathbar.thickness&quot;,e.pathbar.textfont.size+2*l),h(&quot;pathbar.side&quot;),h(&quot;pathbar.edgeshape&quot;)),h(&quot;sort&quot;),h(&quot;root.color&quot;),o(e,c,h),e._length=null}else e.visible=!1}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/constants&quot;:923,&quot;../bar/defaults&quot;:925,&quot;./attributes&quot;:1325}],1330:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;./constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;);e.exports=function(t,e,r,h,p){var d=p.barDifY,g=p.width,m=p.height,v=p.viewX,y=p.viewY,x=p.pathSlice,b=p.toMoveInsideSlice,_=p.strTransform,w=p.hasTransition,T=p.handleSlicesExit,k=p.makeUpdateSliceInterpolator,M=p.makeUpdateTextInterpolator,A={},S=t._fullLayout,E=e[0],C=E.trace,L=E.hierarchy,I=g/C._entryDepth,P=u.listPath(r.data,&quot;id&quot;),z=s(L.copy(),[g,m],{packing:&quot;dice&quot;,pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();(z=z.filter((function(t){var e=P.indexOf(t.data.id);return-1!==e&amp;&amp;(t.x0=I*e,t.x1=I*(e+1),t.y0=d,t.y1=d+m,t.onPathbar=!0,!0)}))).reverse(),(h=h.data(z,u.getPtId)).enter().append(&quot;g&quot;).classed(&quot;pathbar&quot;,!0),T(h,!0,A,[g,m],x),h.order();var O=h;w&amp;&amp;(O=O.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})}))),O.each((function(s){s._hoverX=v(s.x1-Math.min(g,m)/2),s._hoverY=y(s.y1-m/2);var h=n.select(this),p=i.ensureSingle(h,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?p.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!0,A,[g,m]);return function(t){return x(e(t))}})):p.attr(&quot;d&quot;,x),h.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),p.call(l,s,C,{hovered:!1}),s._text=(u.getPtLabel(s)||&quot;&quot;).split(&quot;&lt;br&gt;&quot;).join(&quot; &quot;)||&quot;&quot;;var d=i.ensureSingle(h,&quot;g&quot;,&quot;slicetext&quot;),T=i.ensureSingle(d,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),E=i.ensureUniformFontSize(t,u.determineTextFont(C,s,S.font,{onPathbar:!0}));T.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,&quot;start&quot;).call(a.font,E).call(o.convertToTspans,t),s.textBB=a.bBox(T.node()),s.transform=b(s,{fontSize:E.size,onPathbar:!0}),s.transform.fontSize=E.size,w?T.transition().attrTween(&quot;transform&quot;,(function(t){var e=M(t,!0,A,[g,m]);return function(t){return _(e(t))}})):T.attr(&quot;transform&quot;,_(s))}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../sunburst/fx&quot;:1304,&quot;../sunburst/helpers&quot;:1305,&quot;./constants&quot;:1328,&quot;./partition&quot;:1335,&quot;./style&quot;:1337,d3:169}],1331:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;./constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;),h=t(&quot;../sunburst/plot&quot;).formatSliceLabel;e.exports=function(t,e,r,p,d){var g=d.width,m=d.height,v=d.viewX,y=d.viewY,x=d.pathSlice,b=d.toMoveInsideSlice,_=d.strTransform,w=d.hasTransition,T=d.handleSlicesExit,k=d.makeUpdateSliceInterpolator,M=d.makeUpdateTextInterpolator,A=d.prevEntry,S=t._fullLayout,E=e[0].trace,C=-1!==E.textposition.indexOf(&quot;left&quot;),L=-1!==E.textposition.indexOf(&quot;right&quot;),I=-1!==E.textposition.indexOf(&quot;bottom&quot;),P=!I&amp;&amp;!E.marker.pad.t||I&amp;&amp;!E.marker.pad.b,z=s(r,[g,m],{packing:E.tiling.packing,squarifyratio:E.tiling.squarifyratio,flipX:E.tiling.flip.indexOf(&quot;x&quot;)&gt;-1,flipY:E.tiling.flip.indexOf(&quot;y&quot;)&gt;-1,pad:{inner:E.tiling.pad,top:E.marker.pad.t,left:E.marker.pad.l,right:E.marker.pad.r,bottom:E.marker.pad.b}}).descendants(),O=1/0,D=-1/0;z.forEach((function(t){var e=t.depth;e&gt;=E._maxDepth?(t.x0=t.x1=(t.x0+t.x1)/2,t.y0=t.y1=(t.y0+t.y1)/2):(O=Math.min(O,e),D=Math.max(D,e))})),p=p.data(z,u.getPtId),E._maxVisibleLayers=isFinite(D)?D-O+1:0,p.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),T(p,!1,{},[g,m],x),p.order();var R=null;if(w&amp;&amp;A){var F=u.getPtId(A);p.each((function(t){null===R&amp;&amp;u.getPtId(t)===F&amp;&amp;(R={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})}))}var B=function(){return R||{x0:0,x1:g,y0:0,y1:m}},N=p;return w&amp;&amp;(N=N.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),N.each((function(s){var p=u.isHeader(s,E);s._hoverX=v(s.x1-E.marker.pad.r),s._hoverY=y(I?s.y1-E.marker.pad.b/2:s.y0+E.marker.pad.t/2);var d=n.select(this),T=i.ensureSingle(d,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?T.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!1,B(),[g,m]);return function(t){return x(e(t))}})):T.attr(&quot;d&quot;,x),d.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{isTransitioning:t._transitioning}),T.call(l,s,E,{hovered:!1}),s.x0===s.x1||s.y0===s.y1?s._text=&quot;&quot;:s._text=p?P?&quot;&quot;:u.getPtLabel(s)||&quot;&quot;:h(s,r,E,e,S)||&quot;&quot;;var A=i.ensureSingle(d,&quot;g&quot;,&quot;slicetext&quot;),z=i.ensureSingle(A,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),O=i.ensureUniformFontSize(t,u.determineTextFont(E,s,S.font));z.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,L?&quot;end&quot;:C||p?&quot;start&quot;:&quot;middle&quot;).call(a.font,O).call(o.convertToTspans,t),s.textBB=a.bBox(z.node()),s.transform=b(s,{fontSize:O.size,isHeader:p}),s.transform.fontSize=O.size,w?z.transition().attrTween(&quot;transform&quot;,(function(t){var e=M(t,!1,B(),[g,m]);return function(t){return _(e(t))}})):z.attr(&quot;transform&quot;,_(s))})),R}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../sunburst/fx&quot;:1304,&quot;../sunburst/helpers&quot;:1305,&quot;../sunburst/plot&quot;:1309,&quot;./constants&quot;:1328,&quot;./partition&quot;:1335,&quot;./style&quot;:1337,d3:169}],1332:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;treemap&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1325,&quot;./base_plot&quot;:1326,&quot;./calc&quot;:1327,&quot;./defaults&quot;:1329,&quot;./layout_attributes&quot;:1333,&quot;./layout_defaults&quot;:1334,&quot;./plot&quot;:1336,&quot;./style&quot;:1337}],1333:[function(t,e,r){&quot;use strict&quot;;e.exports={treemapcolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendtreemapcolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1334:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;treemapcolorway&quot;,e.colorway),r(&quot;extendtreemapcolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1333}],1335:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;);e.exports=function(t,e,r){var i,a=r.flipX,o=r.flipY,s=&quot;dice-slice&quot;===r.packing,l=r.pad[o?&quot;bottom&quot;:&quot;top&quot;],c=r.pad[a?&quot;right&quot;:&quot;left&quot;],u=r.pad[a?&quot;left&quot;:&quot;right&quot;],f=r.pad[o?&quot;top&quot;:&quot;bottom&quot;];s&amp;&amp;(i=c,c=l,l=i,i=u,u=f,f=i);var h=n.treemap().tile(function(t,e){switch(t){case&quot;squarify&quot;:return n.treemapSquarify.ratio(e);case&quot;binary&quot;:return n.treemapBinary;case&quot;dice&quot;:return n.treemapDice;case&quot;slice&quot;:return n.treemapSlice;default:return n.treemapSliceDice}}(r.packing,r.squarifyratio)).paddingInner(r.pad.inner).paddingLeft(c).paddingRight(u).paddingTop(l).paddingBottom(f).size(s?[e[1],e[0]]:e)(t);return(s||a||o)&amp;&amp;function t(e,r,n){var i;n.swapXY&amp;&amp;(i=e.x0,e.x0=e.y0,e.y0=i,i=e.x1,e.x1=e.y1,e.y1=i);n.flipX&amp;&amp;(i=e.x0,e.x0=r[0]-e.x1,e.x1=r[0]-i);n.flipY&amp;&amp;(i=e.y0,e.y0=r[1]-e.y1,e.y1=r[1]-i);var a=e.children;if(a)for(var o=0;o&lt;a.length;o++)t(a[o],r,n)}(h,e,{swapXY:s,flipX:a,flipY:o}),h}},{&quot;d3-hierarchy&quot;:161}],1336:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../sunburst/helpers&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../bar/constants&quot;).TEXTPAD,s=t(&quot;../bar/plot&quot;).toMoveInsideBar,l=t(&quot;../bar/uniform_text&quot;),c=l.recordMinTextSize,u=l.clearMinTextSize,f=t(&quot;../bar/style&quot;).resizeText,h=t(&quot;./constants&quot;),p=t(&quot;./draw_descendants&quot;),d=t(&quot;./draw_ancestors&quot;);function g(t){return i.isHierarchyRoot(t)?&quot;&quot;:i.getPtId(t)}function m(t,e,r,l){var u=t._fullLayout,f=e[0],m=f.trace,v=f.hierarchy,y=i.findEntryWithLevel(v,m.level),x=n.select(r),b=x.selectAll(&quot;g.pathbar&quot;),_=x.selectAll(&quot;g.slice&quot;);if(!y)return b.remove(),void _.remove();var w=i.isHierarchyRoot(y),T=!u.uniformtext.mode&amp;&amp;i.hasTransition(l),k=i.getMaxDepth(m),M=u._size,A=m.domain,S=M.w*(A.x[1]-A.x[0]),E=M.h*(A.y[1]-A.y[0]),C=S,L=m.pathbar.thickness,I=m.marker.line.width+h.gapWithPathbar,P=m.pathbar.visible?m.pathbar.side.indexOf(&quot;bottom&quot;)&gt;-1?E+I:-(L+I):0,z={x0:C,x1:C,y0:P,y1:P+L},O=function(t,e,r){var n=m.tiling.pad,i=function(t){return t-n&lt;=e.x0},a=function(t){return t+n&gt;=e.x1},o=function(t){return t-n&lt;=e.y0},s=function(t){return t+n&gt;=e.y1};return{x0:i(t.x0-n)?0:a(t.x0-n)?r[0]:t.x0,x1:i(t.x1+n)?0:a(t.x1+n)?r[0]:t.x1,y0:o(t.y0-n)?0:s(t.y0-n)?r[1]:t.y0,y1:o(t.y1+n)?0:s(t.y1+n)?r[1]:t.y1}},D=null,R={},F={},B=null,N=function(t,e){return e?R[g(t)]:F[g(t)]},j=function(t,e,r,n){if(e)return R[g(v)]||z;var i=F[m.level]||r;return function(t){return t.data.depth-y.data.depth&lt;k}(t)?O(t,i,n):{}};f.hasMultipleRoots&amp;&amp;w&amp;&amp;k++,m._maxDepth=k,m._backgroundColor=u.paper_bgcolor,m._entryDepth=y.data.depth,m._atRootLevel=w;var U=-S/2+M.l+M.w*(A.x[1]+A.x[0])/2,V=-E/2+M.t+M.h*(1-(A.y[1]+A.y[0])/2),q=function(t){return U+t},H=function(t){return V+t},G=H(0),Y=q(0),W=function(t){return Y+t},X=function(t){return G+t};function Z(t,e){return t+&quot;,&quot;+e}var J=W(0),K=function(t){t.x=Math.max(J,t.x)},Q=m.pathbar.edgeshape,$=function(t,e){var r=t.x0,n=t.x1,i=t.y0,a=t.y1,l=t.textBB,f=function(t){return-1!==m.textposition.indexOf(t)},h=f(&quot;bottom&quot;),p=f(&quot;top&quot;)||e.isHeader&amp;&amp;!h?&quot;start&quot;:h?&quot;end&quot;:&quot;middle&quot;,d=f(&quot;right&quot;),g=f(&quot;left&quot;)||e.onPathbar?-1:d?1:0,v=m.marker.pad;if(e.isHeader){if((r+=v.l-o)&gt;=(n-=v.r-o)){var y=(r+n)/2;r=y,n=y}var x;h?i&lt;(x=a-v.b)&amp;&amp;x&lt;a&amp;&amp;(i=x):i&lt;(x=i+v.t)&amp;&amp;x&lt;a&amp;&amp;(a=x)}var b=s(r,n,i,a,l,{isHorizontal:!1,constrained:!0,angle:0,anchor:p,leftToRight:g});return b.fontSize=e.fontSize,b.targetX=q(b.targetX),b.targetY=H(b.targetY),isNaN(b.targetX)||isNaN(b.targetY)?{}:(r!==n&amp;&amp;i!==a&amp;&amp;c(m.type,b,u),{scale:b.scale,rotate:b.rotate,textX:b.textX,textY:b.textY,anchorX:b.anchorX,anchorY:b.anchorY,targetX:b.targetX,targetY:b.targetY})},tt=function(t,e){for(var r,n=0,i=t;!r&amp;&amp;n&lt;k;)n++,(i=i.parent)?r=N(i,e):n=k;return r||{}},et=function(t,e,r,i){var o,s=N(t,e);if(s)o=s;else if(e)o=z;else if(D)if(t.parent){var l=B||r;l&amp;&amp;!e?o=O(t,l,i):(o={},a.extendFlat(o,tt(t,e)))}else o=t;else o={};return n.interpolate(o,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})},rt=function(t,e,r,o){var s=N(t,e),l={},f=j(t,e,r,o);a.extendFlat(l,{transform:$({x0:f.x0,x1:f.x1,y0:f.y0,y1:f.y1,textBB:t.textBB,_text:t._text},{isHeader:i.isHeader(t,m)})}),s?l=s:t.parent&amp;&amp;a.extendFlat(l,tt(t,e));var h=t.transform;return t.x0!==t.x1&amp;&amp;t.y0!==t.y1&amp;&amp;c(m.type,h,u),n.interpolate(l,{transform:{scale:h.scale,rotate:h.rotate,textX:h.textX,textY:h.textY,anchorX:h.anchorX,anchorY:h.anchorY,targetX:h.targetX,targetY:h.targetY}})},nt=function(t,e,r,i,a){var o=i[0],s=i[1];T?t.exit().transition().each((function(){var t=n.select(this);t.select(&quot;path.surface&quot;).transition().attrTween(&quot;d&quot;,(function(t){var r=function(t,e,r,i){var a,o=N(t,e);if(e)a=z;else{var s=N(y,e);a=s?O(t,s,i):{}}return n.interpolate(o,a)}(t,e,0,[o,s]);return function(t){return a(r(t))}})),t.select(&quot;g.slicetext&quot;).attr(&quot;opacity&quot;,0)})).remove():t.exit().remove()},it=function(t){var e=t.transform;return t.x0!==t.x1&amp;&amp;t.y0!==t.y1&amp;&amp;c(m.type,e,u),a.getTextTransform({textX:e.textX,textY:e.textY,anchorX:e.anchorX,anchorY:e.anchorY,targetX:e.targetX,targetY:e.targetY,scale:e.scale,rotate:e.rotate})};T&amp;&amp;(b.each((function(t){R[g(t)]={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1},t.transform&amp;&amp;(R[g(t)].transform={textX:t.transform.textX,textY:t.transform.textY,anchorX:t.transform.anchorX,anchorY:t.transform.anchorY,targetX:t.transform.targetX,targetY:t.transform.targetY,scale:t.transform.scale,rotate:t.transform.rotate})})),_.each((function(t){F[g(t)]={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1},t.transform&amp;&amp;(F[g(t)].transform={textX:t.transform.textX,textY:t.transform.textY,anchorX:t.transform.anchorX,anchorY:t.transform.anchorY,targetX:t.transform.targetX,targetY:t.transform.targetY,scale:t.transform.scale,rotate:t.transform.rotate}),!D&amp;&amp;i.isEntry(t)&amp;&amp;(D=t)}))),B=p(t,e,y,_,{width:S,height:E,viewX:q,viewY:H,pathSlice:function(t){var e=q(t.x0),r=q(t.x1),n=H(t.y0),i=H(t.y1),a=r-e,o=i-n;if(!a||!o)return&quot;&quot;;return&quot;M&quot;+Z(e,n+0)+&quot;L&quot;+Z(r-0,n)+&quot;L&quot;+Z(r,i-0)+&quot;L&quot;+Z(e+0,i)+&quot;Z&quot;},toMoveInsideSlice:$,prevEntry:D,makeUpdateSliceInterpolator:et,makeUpdateTextInterpolator:rt,handleSlicesExit:nt,hasTransition:T,strTransform:it}),m.pathbar.visible?d(t,e,y,b,{barDifY:P,width:C,height:L,viewX:W,viewY:X,pathSlice:function(t){var e=W(Math.max(Math.min(t.x0,t.x0),0)),r=W(Math.min(Math.max(t.x1,t.x1),C)),n=X(t.y0),i=X(t.y1),a=L/2,o={},s={};o.x=e,s.x=r,o.y=s.y=(n+i)/2;var l={x:e,y:n},c={x:r,y:n},u={x:r,y:i},f={x:e,y:i};return&quot;&gt;&quot;===Q?(l.x-=a,c.x-=a,u.x-=a,f.x-=a):&quot;/&quot;===Q?(u.x-=a,f.x-=a,o.x-=a/2,s.x-=a/2):&quot;\\&quot;===Q?(l.x-=a,c.x-=a,o.x-=a/2,s.x-=a/2):&quot;&lt;&quot;===Q&amp;&amp;(o.x-=a,s.x-=a),K(l),K(f),K(o),K(c),K(u),K(s),&quot;M&quot;+Z(l.x,l.y)+&quot;L&quot;+Z(c.x,c.y)+&quot;L&quot;+Z(s.x,s.y)+&quot;L&quot;+Z(u.x,u.y)+&quot;L&quot;+Z(f.x,f.y)+&quot;L&quot;+Z(o.x,o.y)+&quot;Z&quot;},toMoveInsideSlice:$,makeUpdateSliceInterpolator:et,makeUpdateTextInterpolator:rt,handleSlicesExit:nt,hasTransition:T,strTransform:it}):b.remove()}e.exports=function(t,e,r,a){var o,s,l=t._fullLayout,c=l._treemaplayer,h=!r;(u(&quot;treemap&quot;,l),(o=c.selectAll(&quot;g.trace.treemap&quot;).data(e,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).classed(&quot;trace&quot;,!0).classed(&quot;treemap&quot;,!0),o.order(),!l.uniformtext.mode&amp;&amp;i.hasTransition(r))?(a&amp;&amp;(s=a()),n.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){s&amp;&amp;s()})).each(&quot;interrupt&quot;,(function(){s&amp;&amp;s()})).each((function(){c.selectAll(&quot;g.trace&quot;).each((function(e){m(t,e,this,r)}))}))):(o.each((function(e){m(t,e,this,r)})),l.uniformtext.mode&amp;&amp;f(t,l._treemaplayer.selectAll(&quot;.trace&quot;),&quot;treemap&quot;));h&amp;&amp;o.exit().remove()}},{&quot;../../lib&quot;:778,&quot;../bar/constants&quot;:923,&quot;../bar/plot&quot;:932,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,&quot;../sunburst/helpers&quot;:1305,&quot;./constants&quot;:1328,&quot;./draw_ancestors&quot;:1330,&quot;./draw_descendants&quot;:1331,d3:169}],1337:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../sunburst/helpers&quot;),s=t(&quot;../bar/uniform_text&quot;).resizeText;function l(t,e,r,n){var s,l,c=(n||{}).hovered,u=e.data.data,f=u.i,h=u.color,p=o.isHierarchyRoot(e),d=1;if(c)s=r._hovered.marker.line.color,l=r._hovered.marker.line.width;else if(p&amp;&amp;h===r.root.color)d=100,s=&quot;rgba(0,0,0,0)&quot;,l=0;else if(s=a.castOption(r,f,&quot;marker.line.color&quot;)||i.defaultLine,l=a.castOption(r,f,&quot;marker.line.width&quot;)||0,!r._hasColorscale&amp;&amp;!e.onPathbar){var g=r.marker.depthfade;if(g){var m,v=i.combine(i.addOpacity(r._backgroundColor,.75),h);if(!0===g){var y=o.getMaxDepth(r);m=isFinite(y)?o.isLeaf(e)?0:r._maxVisibleLayers-(e.data.depth-r._entryDepth):e.data.height+1}else m=e.data.depth-r._entryDepth,r._atRootLevel||m++;if(m&gt;0)for(var x=0;x&lt;m;x++){var b=.5*x/m;h=i.combine(i.addOpacity(v,b),h)}}}t.style(&quot;stroke-width&quot;,l).call(i.fill,h).call(i.stroke,s).style(&quot;opacity&quot;,d)}e.exports={style:function(t){var e=t._fullLayout._treemaplayer.selectAll(&quot;.trace&quot;);s(t,e,&quot;treemap&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(l,t,r,{hovered:!1})}))}))},styleOne:l}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/uniform_text&quot;:937,&quot;../sunburst/helpers&quot;:1305,d3:169}],1338:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/attributes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={y:n.y,x:n.x,x0:n.x0,y0:n.y0,name:i({},n.name,{}),orientation:i({},n.orientation,{}),bandwidth:{valType:&quot;number&quot;,min:0,editType:&quot;calc&quot;},scalegroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},scalemode:{valType:&quot;enumerated&quot;,values:[&quot;width&quot;,&quot;count&quot;],dflt:&quot;width&quot;,editType:&quot;calc&quot;},spanmode:{valType:&quot;enumerated&quot;,values:[&quot;soft&quot;,&quot;hard&quot;,&quot;manual&quot;],dflt:&quot;soft&quot;,editType:&quot;calc&quot;},span:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},editType:&quot;plot&quot;},fillcolor:n.fillcolor,points:i({},n.boxpoints,{}),jitter:i({},n.jitter,{}),pointpos:i({},n.pointpos,{}),width:i({},n.width,{}),marker:n.marker,text:n.text,hovertext:n.hovertext,hovertemplate:n.hovertemplate,box:{visible:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},width:{valType:&quot;number&quot;,min:0,max:1,dflt:.25,editType:&quot;plot&quot;},fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;plot&quot;},meanline:{visible:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;both&quot;,&quot;positive&quot;,&quot;negative&quot;],dflt:&quot;both&quot;,editType:&quot;calc&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;violins&quot;,&quot;points&quot;,&quot;kde&quot;],dflt:&quot;violins+points+kde&quot;,extras:[&quot;all&quot;],editType:&quot;style&quot;}}},{&quot;../../lib/extend&quot;:768,&quot;../box/attributes&quot;:946}],1339:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../box/calc&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r){var i=e.max-e.min;if(!i)return t.bandwidth?t.bandwidth:0;if(t.bandwidth)return Math.max(t.bandwidth,i/1e4);var a=r.length,o=n.stdev(r,a-1,e.mean);return Math.max(function(t,e,r){return 1.059*Math.min(e,r/1.349)*Math.pow(t,-.2)}(a,o,e.q3-e.q1),i/100)}function c(t,e,r,n){var a,o=t.spanmode,l=t.span||[],c=[e.min,e.max],u=[e.min-2*n,e.max+2*n];function f(n){var i=l[n],a=&quot;multicategory&quot;===r.type?r.r2c(i):r.d2c(i,0,t[e.valLetter+&quot;calendar&quot;]);return a===s?u[n]:a}var h={type:&quot;linear&quot;,range:a=&quot;soft&quot;===o?u:&quot;hard&quot;===o?c:[f(0),f(1)]};return i.setConvert(h),h.cleanRange(),a}e.exports=function(t,e){var r=a(t,e);if(r[0].t.empty)return r;for(var s=t._fullLayout,u=i.getFromId(t,e[&quot;h&quot;===e.orientation?&quot;xaxis&quot;:&quot;yaxis&quot;]),f=1/0,h=-1/0,p=0,d=0,g=0;g&lt;r.length;g++){var m=r[g],v=m.pts.map(o.extractVal),y=m.bandwidth=l(e,m,v),x=m.span=c(e,m,u,y);if(m.min===m.max&amp;&amp;0===y)x=m.span=[m.min,m.max],m.density=[{v:1,t:x[0]}],m.bandwidth=y,p=Math.max(p,1);else{var b=x[1]-x[0],_=Math.ceil(b/(y/3)),w=b/_;if(!isFinite(w)||!isFinite(_))return n.error(&quot;Something went wrong with computing the violin span&quot;),r[0].t.empty=!0,r;var T=o.makeKDE(m,e,v);m.density=new Array(_);for(var k=0,M=x[0];M&lt;x[1]+w/2;k++,M+=w){var A=T(M);m.density[k]={v:A,t:M},p=Math.max(p,A)}}d=Math.max(d,v.length),f=Math.min(f,x[0]),h=Math.max(h,x[1])}var S=i.findExtremes(u,[f,h],{padded:!0});if(e._extremes[u._id]=S,e.width)r[0].t.maxKDE=p;else{var E=s._violinScaleGroupStats,C=e.scalegroup,L=E[C];L?(L.maxKDE=Math.max(L.maxKDE,p),L.maxCount=Math.max(L.maxCount,d)):E[C]={maxKDE:p,maxCount:d}}return r[0].t.labels.kde=n._(t,&quot;kde:&quot;),r}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../box/calc&quot;:947,&quot;./helpers&quot;:1342}],1340:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/cross_trace_calc&quot;).setPositionOffset,i=[&quot;v&quot;,&quot;h&quot;];e.exports=function(t,e){for(var r=t.calcdata,a=e.xaxis,o=e.yaxis,s=0;s&lt;i.length;s++){for(var l=i[s],c=&quot;h&quot;===l?o:a,u=[],f=0;f&lt;r.length;f++){var h=r[f],p=h[0].t,d=h[0].trace;!0!==d.visible||&quot;violin&quot;!==d.type||p.empty||d.orientation!==l||d.xaxis!==a._id||d.yaxis!==o._id||u.push(f)}n(&quot;violin&quot;,t,u,c)}}},{&quot;../box/cross_trace_calc&quot;:948}],1341:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../box/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}function c(r,i){return n.coerce2(t,e,o,r,i)}if(a.handleSampleDefaults(t,e,l,s),!1!==e.visible){l(&quot;bandwidth&quot;),l(&quot;side&quot;),l(&quot;width&quot;)||(l(&quot;scalegroup&quot;,e.name),l(&quot;scalemode&quot;));var u,f=l(&quot;span&quot;);Array.isArray(f)&amp;&amp;(u=&quot;manual&quot;),l(&quot;spanmode&quot;,u);var h=l(&quot;line.color&quot;,(t.marker||{}).color||r),p=l(&quot;line.width&quot;),d=l(&quot;fillcolor&quot;,i.addOpacity(e.line.color,.5));a.handlePointsDefaults(t,e,l,{prefix:&quot;&quot;});var g=c(&quot;box.width&quot;),m=c(&quot;box.fillcolor&quot;,d),v=c(&quot;box.line.color&quot;,h),y=c(&quot;box.line.width&quot;,p);l(&quot;box.visible&quot;,Boolean(g||m||v||y))||(e.box={visible:!1});var x=c(&quot;meanline.color&quot;,h),b=c(&quot;meanline.width&quot;,p);l(&quot;meanline.visible&quot;,Boolean(x||b))||(e.meanline={visible:!1})}}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../box/defaults&quot;:949,&quot;./attributes&quot;:1338}],1342:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=function(t){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*t*t)};r.makeKDE=function(t,e,r){var n=r.length,a=i,o=t.bandwidth,s=1/(n*o);return function(t){for(var e=0,i=0;i&lt;n;i++)e+=a((t-r[i])/o);return s*e}},r.getPositionOnKdePath=function(t,e,r){var i,a;&quot;h&quot;===e.orientation?(i=&quot;y&quot;,a=&quot;x&quot;):(i=&quot;x&quot;,a=&quot;y&quot;);var o=n.findPointOnPath(t.path,r,a,{pathLength:t.pathLength}),s=t.posCenterPx,l=o[i];return[l,&quot;both&quot;===e.side?2*s-l:s]},r.getKdeValue=function(t,e,n){var i=t.pts.map(r.extractVal);return r.makeKDE(t,e,i)(n)/t.posDensityScale},r.extractVal=function(t){return t.v}},{&quot;../../lib&quot;:778}],1343:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../box/hover&quot;),o=t(&quot;./helpers&quot;);e.exports=function(t,e,r,s,l){var c,u,f=t.cd,h=f[0].trace,p=h.hoveron,d=-1!==p.indexOf(&quot;violins&quot;),g=-1!==p.indexOf(&quot;kde&quot;),m=[];if(d||g){var v=a.hoverOnBoxes(t,e,r,s);if(g&amp;&amp;v.length&gt;0){var y,x,b,_,w,T=t.xa,k=t.ya;&quot;h&quot;===h.orientation?(w=e,y=&quot;y&quot;,b=k,x=&quot;x&quot;,_=T):(w=r,y=&quot;x&quot;,b=T,x=&quot;y&quot;,_=k);var M=f[t.index];if(w&gt;=M.span[0]&amp;&amp;w&lt;=M.span[1]){var A=n.extendFlat({},t),S=_.c2p(w,!0),E=o.getKdeValue(M,h,w),C=o.getPositionOnKdePath(M,h,S),L=b._offset,I=b._length;A[y+&quot;0&quot;]=C[0],A[y+&quot;1&quot;]=C[1],A[x+&quot;0&quot;]=A[x+&quot;1&quot;]=S,A[x+&quot;Label&quot;]=x+&quot;: &quot;+i.hoverLabelText(_,w)+&quot;, &quot;+f[0].t.labels.kde+&quot; &quot;+E.toFixed(3),A.spikeDistance=v[0].spikeDistance;var P=y+&quot;Spike&quot;;A[P]=v[0][P],v[0].spikeDistance=void 0,v[0][P]=void 0,A.hovertemplate=!1,m.push(A),(u={stroke:t.color})[y+&quot;1&quot;]=n.constrain(L+C[0],L,L+I),u[y+&quot;2&quot;]=n.constrain(L+C[1],L,L+I),u[x+&quot;1&quot;]=u[x+&quot;2&quot;]=_._offset+S}}d&amp;&amp;(m=m.concat(v))}-1!==p.indexOf(&quot;points&quot;)&amp;&amp;(c=a.hoverOnPoints(t,e,r));var z=l.selectAll(&quot;.violinline-&quot;+h.uid).data(u?[0]:[]);return z.enter().append(&quot;line&quot;).classed(&quot;violinline-&quot;+h.uid,!0).attr(&quot;stroke-width&quot;,1.5),z.exit().remove(),z.attr(u),&quot;closest&quot;===s?c?[c]:m:c?(m.push(c),m):m}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../box/hover&quot;:951,&quot;./helpers&quot;:1342}],1344:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../box/defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../box/select&quot;),moduleType:&quot;trace&quot;,name:&quot;violin&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;oriented&quot;,&quot;box-violin&quot;,&quot;showLegend&quot;,&quot;violinLayout&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../box/defaults&quot;:949,&quot;../box/select&quot;:956,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1338,&quot;./calc&quot;:1339,&quot;./cross_trace_calc&quot;:1340,&quot;./defaults&quot;:1341,&quot;./hover&quot;:1343,&quot;./layout_attributes&quot;:1345,&quot;./layout_defaults&quot;:1346,&quot;./plot&quot;:1347,&quot;./style&quot;:1348}],1345:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/layout_attributes&quot;),i=t(&quot;../../lib&quot;).extendFlat;e.exports={violinmode:i({},n.boxmode,{}),violingap:i({},n.boxgap,{}),violingroupgap:i({},n.boxgroupgap,{})}},{&quot;../../lib&quot;:778,&quot;../box/layout_attributes&quot;:953}],1346:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;),a=t(&quot;../box/layout_defaults&quot;);e.exports=function(t,e,r){a._supply(t,e,r,(function(r,a){return n.coerce(t,e,i,r,a)}),&quot;violin&quot;)}},{&quot;../../lib&quot;:778,&quot;../box/layout_defaults&quot;:954,&quot;./layout_attributes&quot;:1345}],1347:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../box/plot&quot;),s=t(&quot;../scatter/line_points&quot;),l=t(&quot;./helpers&quot;);e.exports=function(t,e,r,c){var u=t._fullLayout,f=e.xaxis,h=e.yaxis;function p(t){var e=s(t,{xaxis:f,yaxis:h,connectGaps:!0,baseTolerance:.75,shape:&quot;spline&quot;,simplify:!0,linearized:!0});return a.smoothopen(e[0],1)}i.makeTraceGroups(c,r,&quot;trace violins&quot;).each((function(t){var r=n.select(this),a=t[0],s=a.t,c=a.trace;if(!0!==c.visible||s.empty)r.remove();else{var d=s.bPos,g=s.bdPos,m=e[s.valLetter+&quot;axis&quot;],v=e[s.posLetter+&quot;axis&quot;],y=&quot;both&quot;===c.side,x=y||&quot;positive&quot;===c.side,b=y||&quot;negative&quot;===c.side,_=r.selectAll(&quot;path.violin&quot;).data(i.identity);_.enter().append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;class&quot;,&quot;violin&quot;),_.exit().remove(),_.each((function(t){var e,r,i,a,o,l,f,h,_=n.select(this),w=t.density,T=w.length,k=v.c2l(t.pos+d,!0),M=v.l2p(k);if(c.width)e=s.maxKDE/g;else{var A=u._violinScaleGroupStats[c.scalegroup];e=&quot;count&quot;===c.scalemode?A.maxKDE/g*(A.maxCount/t.pts.length):A.maxKDE/g}if(x){for(f=new Array(T),o=0;o&lt;T;o++)(h=f[o]={})[s.posLetter]=k+w[o].v/e,h[s.valLetter]=m.c2l(w[o].t,!0);r=p(f)}if(b){for(f=new Array(T),l=0,o=T-1;l&lt;T;l++,o--)(h=f[l]={})[s.posLetter]=k-w[o].v/e,h[s.valLetter]=m.c2l(w[o].t,!0);i=p(f)}if(y)a=r+&quot;L&quot;+i.substr(1)+&quot;Z&quot;;else{var S=[M,m.c2p(w[0].t)],E=[M,m.c2p(w[T-1].t)];&quot;h&quot;===c.orientation&amp;&amp;(S.reverse(),E.reverse()),a=x?&quot;M&quot;+S+&quot;L&quot;+r.substr(1)+&quot;L&quot;+E:&quot;M&quot;+E+&quot;L&quot;+i.substr(1)+&quot;L&quot;+S}_.attr(&quot;d&quot;,a),t.posCenterPx=M,t.posDensityScale=e*g,t.path=_.node(),t.pathLength=t.path.getTotalLength()/(y?2:1)}));var w,T,k,M=c.box,A=M.width,S=(M.line||{}).width;y?(w=g*A,T=0):x?(w=[0,g*A/2],T=S*{x:1,y:-1}[s.posLetter]):(w=[g*A/2,0],T=S*{x:-1,y:1}[s.posLetter]),o.plotBoxAndWhiskers(r,{pos:v,val:m},c,{bPos:d,bdPos:w,bPosPxOffset:T}),o.plotBoxMean(r,{pos:v,val:m},c,{bPos:d,bdPos:w,bPosPxOffset:T}),!c.box.visible&amp;&amp;c.meanline.visible&amp;&amp;(k=i.identity);var E=r.selectAll(&quot;path.meanline&quot;).data(k||[]);E.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;meanline&quot;).style(&quot;fill&quot;,&quot;none&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;),E.exit().remove(),E.each((function(t){var e=m.c2p(t.mean,!0),r=l.getPositionOnKdePath(t,c,e);n.select(this).attr(&quot;d&quot;,&quot;h&quot;===c.orientation?&quot;M&quot;+e+&quot;,&quot;+r[0]+&quot;V&quot;+r[1]:&quot;M&quot;+r[0]+&quot;,&quot;+e+&quot;H&quot;+r[1])})),o.plotPoints(r,{x:f,y:h},c,s)}}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../box/plot&quot;:955,&quot;../scatter/line_points&quot;:1201,&quot;./helpers&quot;:1342,d3:169}],1348:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../scatter/style&quot;).stylePoints;e.exports=function(t){var e=n.select(t).selectAll(&quot;g.trace.violins&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.each((function(e){var r=e[0].trace,o=n.select(this),s=r.box||{},l=s.line||{},c=r.meanline||{},u=c.width;o.selectAll(&quot;path.violin&quot;).style(&quot;stroke-width&quot;,r.line.width+&quot;px&quot;).call(i.stroke,r.line.color).call(i.fill,r.fillcolor),o.selectAll(&quot;path.box&quot;).style(&quot;stroke-width&quot;,l.width+&quot;px&quot;).call(i.stroke,l.color).call(i.fill,s.fillcolor);var f={&quot;stroke-width&quot;:u+&quot;px&quot;,&quot;stroke-dasharray&quot;:2*u+&quot;px,&quot;+u+&quot;px&quot;};o.selectAll(&quot;path.mean&quot;).style(f).call(i.stroke,c.color),o.selectAll(&quot;path.meanline&quot;).style(f).call(i.stroke,c.color),a(o,r,t)}))}},{&quot;../../components/color&quot;:643,&quot;../scatter/style&quot;:1211,d3:169}],1349:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../isosurface/attributes&quot;),a=t(&quot;../surface/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll,c=e.exports=l(s({x:i.x,y:i.y,z:i.z,value:i.value,isomin:i.isomin,isomax:i.isomax,surface:i.surface,spaceframe:{show:{valType:&quot;boolean&quot;,dflt:!1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},slices:i.slices,caps:i.caps,text:i.text,hovertext:i.hovertext,hovertemplate:i.hovertemplate},n(&quot;&quot;,{colorAttr:&quot;`value`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{colorbar:i.colorbar,opacity:i.opacity,opacityscale:a.opacityscale,lightposition:i.lightposition,lighting:i.lighting,flatshading:i.flatshading,contour:i.contour,hoverinfo:s({},o.hoverinfo),showlegend:s({},o.showlegend,{dflt:!1})}),&quot;calc&quot;,&quot;nested&quot;);c.x.editType=c.y.editType=c.z.editType=c.value.editType=&quot;calc+clearAxisTypes&quot;,c.transforms=void 0},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../isosurface/attributes&quot;:1123,&quot;../surface/attributes&quot;:1311}],1350:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,a=t(&quot;../../lib/str2rgbarray&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts,s=t(&quot;../../plots/gl3d/zip3&quot;),l=t(&quot;../isosurface/convert&quot;).findNearestOnAxis,c=t(&quot;../isosurface/convert&quot;).generateIsoMeshes;function u(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.data=null,this.showContour=!1}var f=u.prototype;f.handlePick=function(t){if(t.object===this.mesh){var e=t.data.index,r=this.data._meshX[e],n=this.data._meshY[e],i=this.data._meshZ[e],a=this.data._Ys.length,o=this.data._Zs.length,s=l(r,this.data._Xs).id,c=l(n,this.data._Ys).id,u=l(i,this.data._Zs).id,f=t.index=u+o*c+o*a*s;t.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Array.isArray(h)&amp;&amp;void 0!==h[f]?t.textLabel=h[f]:h&amp;&amp;(t.textLabel=h),!0}},f.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map((function(e){return t.d2l(e,0,n)*r}))}this.data=c(t);var l={positions:s(n(r.xaxis,t._meshX,e.dataScale[0],t.xcalendar),n(r.yaxis,t._meshY,e.dataScale[1],t.ycalendar),n(r.zaxis,t._meshZ,e.dataScale[2],t.zcalendar)),cells:s(t._meshI,t._meshJ,t._meshK),lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,opacityscale:t.opacityscale,contourEnable:t.contour.show,contourColor:a(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading},u=o(t);l.vertexIntensity=t._meshIntensity,l.vertexIntensityBounds=[u.min,u.max],l.colormap=i(t),this.mesh.update(l)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new u(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/gl3d/zip3&quot;:881,&quot;../isosurface/convert&quot;:1125,&quot;gl-mesh3d&quot;:309}],1351:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../isosurface/defaults&quot;).supplyIsoDefaults,o=t(&quot;../surface/defaults&quot;).opacityscaleDefaults;e.exports=function(t,e,r,s){function l(r,a){return n.coerce(t,e,i,r,a)}a(t,e,r,s,l),o(t,e,s,l)}},{&quot;../../lib&quot;:778,&quot;../isosurface/defaults&quot;:1126,&quot;../surface/defaults&quot;:1314,&quot;./attributes&quot;:1349}],1352:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;../isosurface/calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;volume&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;../isosurface/calc&quot;:1124,&quot;./attributes&quot;:1349,&quot;./convert&quot;:1350,&quot;./defaults&quot;:1351}],1353:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../scatter/attributes&quot;).line,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;./constants&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../components/color&quot;);function f(t){return{marker:{color:c({},n.marker.color,{arrayOk:!1,editType:&quot;style&quot;}),line:{color:c({},n.marker.line.color,{arrayOk:!1,editType:&quot;style&quot;}),width:c({},n.marker.line.width,{arrayOk:!1,editType:&quot;style&quot;}),editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;}}e.exports={measure:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},base:{valType:&quot;number&quot;,dflt:null,arrayOk:!1,editType:&quot;calc&quot;},x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,hovertext:n.hovertext,hovertemplate:o({},{keys:l.eventDataKeys}),hoverinfo:c({},a.hoverinfo,{flags:[&quot;name&quot;,&quot;x&quot;,&quot;y&quot;,&quot;text&quot;,&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;]}),textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;,arrayOk:!1},texttemplate:s({editType:&quot;plot&quot;},{keys:l.eventDataKeys.concat([&quot;label&quot;])}),text:n.text,textposition:n.textposition,insidetextanchor:n.insidetextanchor,textangle:n.textangle,textfont:n.textfont,insidetextfont:n.insidetextfont,outsidetextfont:n.outsidetextfont,constraintext:n.constraintext,cliponaxis:n.cliponaxis,orientation:n.orientation,offset:n.offset,width:n.width,increasing:f(),decreasing:f(),totals:f(),connector:{line:{color:c({},i.color,{dflt:u.defaultLine}),width:c({},i.width,{editType:&quot;plot&quot;}),dash:i.dash,editType:&quot;plot&quot;},mode:{valType:&quot;enumerated&quot;,values:[&quot;spanning&quot;,&quot;between&quot;],dflt:&quot;between&quot;,editType:&quot;plot&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup}},{&quot;../../components/color&quot;:643,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:1355}],1354:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;../../lib&quot;).mergeArray,o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t){return&quot;a&quot;===t||&quot;absolute&quot;===t}function c(t){return&quot;t&quot;===t||&quot;total&quot;===t}e.exports=function(t,e){var r,u,f,h,p=n.getFromId(t,e.xaxis||&quot;x&quot;),d=n.getFromId(t,e.yaxis||&quot;y&quot;);&quot;h&quot;===e.orientation?(r=p.makeCalcdata(e,&quot;x&quot;),f=d.makeCalcdata(e,&quot;y&quot;),u=i(e,d,&quot;y&quot;,f),h=!!e.yperiodalignment):(r=d.makeCalcdata(e,&quot;y&quot;),f=p.makeCalcdata(e,&quot;x&quot;),u=i(e,p,&quot;x&quot;,f),h=!!e.xperiodalignment);for(var g,m=Math.min(u.length,r.length),v=new Array(m),y=0,x=!1,b=0;b&lt;m;b++){var _=r[b]||0,w=!1;(r[b]!==s||c(e.measure[b])||l(e.measure[b]))&amp;&amp;b+1&lt;m&amp;&amp;(r[b+1]!==s||c(e.measure[b+1])||l(e.measure[b+1]))&amp;&amp;(w=!0);var T=v[b]={i:b,p:u[b],s:_,rawS:_,cNext:w};l(e.measure[b])?(y=T.s,T.isSum=!0,T.dir=&quot;totals&quot;,T.s=y):c(e.measure[b])?(T.isSum=!0,T.dir=&quot;totals&quot;,T.s=y):(T.isSum=!1,T.dir=T.rawS&lt;0?&quot;decreasing&quot;:&quot;increasing&quot;,g=T.s,T.s=y+g,y+=g),&quot;totals&quot;===T.dir&amp;&amp;(x=!0),h&amp;&amp;(v[b].orig_p=f[b]),e.ids&amp;&amp;(T.id=String(e.ids[b])),T.v=(e.base||0)+y}return v.length&amp;&amp;(v[0].hasTotals=x),a(e.text,v,&quot;tx&quot;),a(e.hovertext,v,&quot;htx&quot;),o(v,e),v}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc_selection&quot;:1189}],1355:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;]}},{}],1356:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions;e.exports=function(t,e){var r,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,c=e.yaxis,u=[],f=[],h=[];for(i=0;i&lt;o.length;i++){var p=o[i];!0===p.visible&amp;&amp;p.xaxis===l._id&amp;&amp;p.yaxis===c._id&amp;&amp;&quot;waterfall&quot;===p.type&amp;&amp;(r=s[i],&quot;h&quot;===p.orientation?h.push(r):f.push(r),u.push(r))}var d={mode:a.waterfallmode,norm:a.waterfallnorm,gap:a.waterfallgap,groupgap:a.waterfallgroupgap};for(n(t,l,c,f,d),n(t,c,l,h,d),i=0;i&lt;u.length;i++){r=u[i];for(var g=0;g&lt;r.length;g++){var m=r[g];!1===m.isSum&amp;&amp;(m.s0+=0===g?0:r[g-1].s),g+1&lt;r.length&amp;&amp;(r[g].nextP0=r[g+1].p0,r[g].nextS0=r[g+1].s0)}}}},{&quot;../bar/cross_trace_calc&quot;:924}],1357:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,a=t(&quot;../bar/defaults&quot;).handleText,o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../../components/color&quot;),u=t(&quot;../../constants/delta.js&quot;),f=u.INCREASING.COLOR,h=u.DECREASING.COLOR;function p(t,e,r){t(e+&quot;.marker.color&quot;,r),t(e+&quot;.marker.line.color&quot;,c.defaultLine),t(e+&quot;.marker.line.width&quot;)}e.exports={supplyDefaults:function(t,e,r,i){function c(r,i){return n.coerce(t,e,l,r,i)}if(o(t,e,i,c)){s(t,e,i,c),c(&quot;measure&quot;),c(&quot;orientation&quot;,e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;),c(&quot;base&quot;),c(&quot;offset&quot;),c(&quot;width&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;);var u=c(&quot;textposition&quot;);if(a(t,e,i,c,u,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),&quot;none&quot;!==e.textposition&amp;&amp;(c(&quot;texttemplate&quot;),e.texttemplate||c(&quot;textinfo&quot;)),p(c,&quot;increasing&quot;,f),p(c,&quot;decreasing&quot;,h),p(c,&quot;totals&quot;,&quot;#4499FF&quot;),c(&quot;connector.visible&quot;))c(&quot;connector.mode&quot;),c(&quot;connector.line.width&quot;)&amp;&amp;(c(&quot;connector.line.color&quot;),c(&quot;connector.line.dash&quot;))}else e.visible=!1},crossTraceDefaults:function(t,e){var r,a;function o(t){return n.coerce(a._input,a,l,t)}if(&quot;group&quot;===e.waterfallmode)for(var s=0;s&lt;t.length;s++)r=(a=t[s])._input,i(r,a,e,o)}}},{&quot;../../components/color&quot;:643,&quot;../../constants/delta.js&quot;:747,&quot;../../lib&quot;:778,&quot;../bar/defaults&quot;:925,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:1353}],1358:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;initial&quot;in e&amp;&amp;(t.initial=e.initial),&quot;delta&quot;in e&amp;&amp;(t.delta=e.delta),&quot;final&quot;in e&amp;&amp;(t.final=e.final),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],1359:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText,i=t(&quot;../../components/color&quot;).opacity,a=t(&quot;../bar/hover&quot;).hoverOnBars,o=t(&quot;../../constants/delta.js&quot;),s=o.INCREASING.SYMBOL,l=o.DECREASING.SYMBOL;e.exports=function(t,e,r,o){var c=a(t,e,r,o);if(c){var u=c.cd,f=u[0].trace,h=&quot;h&quot;===f.orientation,p=h?t.xa:t.ya,d=u[c.index],g=d.isSum?d.b+d.s:d.rawS;if(!d.isSum){c.initial=d.b+d.s-g,c.delta=g,c.final=c.initial+c.delta;var m=w(Math.abs(c.delta));c.deltaLabel=g&lt;0?&quot;(&quot;+m+&quot;)&quot;:m,c.finalLabel=w(c.final),c.initialLabel=w(c.initial)}var v=d.hi||f.hoverinfo,y=[];if(v&amp;&amp;&quot;none&quot;!==v&amp;&amp;&quot;skip&quot;!==v){var x=&quot;all&quot;===v,b=v.split(&quot;+&quot;),_=function(t){return x||-1!==b.indexOf(t)};d.isSum||(!_(&quot;final&quot;)||_(h?&quot;x&quot;:&quot;y&quot;)||y.push(c.finalLabel),_(&quot;delta&quot;)&amp;&amp;(g&lt;0?y.push(c.deltaLabel+&quot; &quot;+l):y.push(c.deltaLabel+&quot; &quot;+s)),_(&quot;initial&quot;)&amp;&amp;y.push(&quot;Initial: &quot;+c.initialLabel))}return y.length&amp;&amp;(c.extraText=y.join(&quot;&lt;br&gt;&quot;)),c.color=function(t,e){var r=t[e.dir].marker,n=r.color,a=r.line.color,o=r.line.width;if(i(n))return n;if(i(a)&amp;&amp;o)return a}(f,d),[c]}function w(t){return n(p,t)}}},{&quot;../../components/color&quot;:643,&quot;../../constants/delta.js&quot;:747,&quot;../../plots/cartesian/axes&quot;:828,&quot;../bar/hover&quot;:928}],1360:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;../bar/select&quot;),moduleType:&quot;trace&quot;,name:&quot;waterfall&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;oriented&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../bar/select&quot;:933,&quot;./attributes&quot;:1353,&quot;./calc&quot;:1354,&quot;./cross_trace_calc&quot;:1356,&quot;./defaults&quot;:1357,&quot;./event_data&quot;:1358,&quot;./hover&quot;:1359,&quot;./layout_attributes&quot;:1361,&quot;./layout_defaults&quot;:1362,&quot;./plot&quot;:1363,&quot;./style&quot;:1364}],1361:[function(t,e,r){&quot;use strict&quot;;e.exports={waterfallmode:{valType:&quot;enumerated&quot;,values:[&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;group&quot;,editType:&quot;calc&quot;},waterfallgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},waterfallgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],1362:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s&lt;r.length;s++){var l=r[s];if(l.visible&amp;&amp;&quot;waterfall&quot;===l.type){a=!0;break}}a&amp;&amp;(o(&quot;waterfallmode&quot;),o(&quot;waterfallgap&quot;,.2),o(&quot;waterfallgroupgap&quot;))}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1361}],1363:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../constants/numerical&quot;).BADNUM,s=t(&quot;../bar/plot&quot;),l=t(&quot;../bar/uniform_text&quot;).clearMinTextSize;e.exports=function(t,e,r,c){var u=t._fullLayout;l(&quot;waterfall&quot;,u),s.plot(t,e,r,c,{mode:u.waterfallmode,norm:u.waterfallmode,gap:u.waterfallgap,groupgap:u.waterfallgroupgap}),function(t,e,r,s){var l=e.xaxis,c=e.yaxis;i.makeTraceGroups(s,r,&quot;trace bars&quot;).each((function(r){var s=n.select(this),u=r[0].trace,f=i.ensureSingle(s,&quot;g&quot;,&quot;lines&quot;);if(u.connector&amp;&amp;u.connector.visible){var h=&quot;h&quot;===u.orientation,p=u.connector.mode,d=f.selectAll(&quot;g.line&quot;).data(i.identity);d.enter().append(&quot;g&quot;).classed(&quot;line&quot;,!0),d.exit().remove();var g=d.size();d.each((function(r,s){if(s===g-1||r.cNext){var u=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),n?[i,a]:[a,i]}(r,l,c,h),f=u[0],d=u[1],m=&quot;&quot;;f[0]!==o&amp;&amp;d[0]!==o&amp;&amp;f[1]!==o&amp;&amp;d[1]!==o&amp;&amp;(&quot;spanning&quot;===p&amp;&amp;!r.isSum&amp;&amp;s&gt;0&amp;&amp;(m+=h?&quot;M&quot;+f[0]+&quot;,&quot;+d[1]+&quot;V&quot;+d[0]:&quot;M&quot;+f[1]+&quot;,&quot;+d[0]+&quot;H&quot;+f[0]),&quot;between&quot;!==p&amp;&amp;(r.isSum||s&lt;g-1)&amp;&amp;(m+=h?&quot;M&quot;+f[1]+&quot;,&quot;+d[0]+&quot;V&quot;+d[1]:&quot;M&quot;+f[0]+&quot;,&quot;+d[1]+&quot;H&quot;+f[1]),f[2]!==o&amp;&amp;d[2]!==o&amp;&amp;(m+=h?&quot;M&quot;+f[1]+&quot;,&quot;+d[1]+&quot;V&quot;+d[2]:&quot;M&quot;+f[1]+&quot;,&quot;+d[1]+&quot;H&quot;+f[2])),&quot;&quot;===m&amp;&amp;(m=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,m).call(a.setClipUrl,e.layerClipId,t)}}))}else f.remove()}))}(t,e,r,c)}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../bar/plot&quot;:932,&quot;../bar/uniform_text&quot;:937,d3:169}],1364:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../constants/interactions&quot;).DESELECTDIM,s=t(&quot;../bar/style&quot;),l=t(&quot;../bar/uniform_text&quot;).resizeText,c=s.styleTextPoints;e.exports={style:function(t,e,r){var s=r||n.select(t).selectAll(&quot;g.waterfalllayer&quot;).selectAll(&quot;g.trace&quot;);l(t,s,&quot;waterfall&quot;),s.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),s.each((function(e){var r=n.select(this),s=e[0].trace;r.selectAll(&quot;.point &gt; path&quot;).each((function(t){if(!t.isBlank){var e=s[t.dir].marker;n.select(this).call(a.fill,e.color).call(a.stroke,e.line.color).call(i.dashLine,e.line.dash,e.line.width).style(&quot;opacity&quot;,s.selectedpoints&amp;&amp;!t.selected?o:1)}})),c(r,s,t),r.selectAll(&quot;.lines&quot;).each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll(&quot;path&quot;),t.width,t.color,t.dash)}))}))}}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../constants/interactions&quot;:752,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,d3:169}],1365:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../plots/cartesian/axes&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../plot_api/plot_schema&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction,s=t(&quot;../constants/numerical&quot;).BADNUM;r.moduleType=&quot;transform&quot;,r.name=&quot;aggregate&quot;;var l=r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},groups:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},aggregations:{_isLinkedToArray:&quot;aggregation&quot;,target:{valType:&quot;string&quot;,editType:&quot;calc&quot;},func:{valType:&quot;enumerated&quot;,values:[&quot;count&quot;,&quot;sum&quot;,&quot;avg&quot;,&quot;median&quot;,&quot;mode&quot;,&quot;rms&quot;,&quot;stddev&quot;,&quot;min&quot;,&quot;max&quot;,&quot;first&quot;,&quot;last&quot;,&quot;change&quot;,&quot;range&quot;],dflt:&quot;first&quot;,editType:&quot;calc&quot;},funcmode:{valType:&quot;enumerated&quot;,values:[&quot;sample&quot;,&quot;population&quot;],dflt:&quot;sample&quot;,editType:&quot;calc&quot;},enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},c=l.aggregations;function u(t,e,r,a){if(a.enabled){for(var o=a.target,l=i.nestedProperty(e,o),c=l.get(),u=function(t,e){var r=t.func,n=e.d2c,a=e.c2d;switch(r){case&quot;count&quot;:return f;case&quot;first&quot;:return h;case&quot;last&quot;:return p;case&quot;sum&quot;:return function(t,e){for(var r=0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r+=o)}return a(r)};case&quot;avg&quot;:return function(t,e){for(var r=0,i=0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r+=l,i++)}return i?a(r/i):s};case&quot;min&quot;:return function(t,e){for(var r=1/0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r=Math.min(r,o))}return r===1/0?s:a(r)};case&quot;max&quot;:return function(t,e){for(var r=-1/0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r=Math.max(r,o))}return r===-1/0?s:a(r)};case&quot;range&quot;:return function(t,e){for(var r=1/0,i=-1/0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r=Math.min(r,l),i=Math.max(i,l))}return i===-1/0||r===1/0?s:a(i-r)};case&quot;change&quot;:return function(t,e){var r=n(t[e[0]]),i=n(t[e[e.length-1]]);return r===s||i===s?s:a(i-r)};case&quot;median&quot;:return function(t,e){for(var r=[],o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;r.push(l)}if(!r.length)return s;r.sort(i.sorterAsc);var c=(r.length-1)/2;return a((r[Math.floor(c)]+r[Math.ceil(c)])/2)};case&quot;mode&quot;:return function(t,e){for(var r={},i=0,o=s,l=0;l&lt;e.length;l++){var c=n(t[e[l]]);if(c!==s){var u=r[c]=(r[c]||0)+1;u&gt;i&amp;&amp;(i=u,o=c)}}return i?a(o):s};case&quot;rms&quot;:return function(t,e){for(var r=0,i=0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r+=l*l,i++)}return i?a(Math.sqrt(r/i)):s};case&quot;stddev&quot;:return function(e,r){var i,a=0,o=0,l=1,c=s;for(i=0;i&lt;r.length&amp;&amp;c===s;i++)c=n(e[r[i]]);if(c===s)return s;for(;i&lt;r.length;i++){var u=n(e[r[i]]);if(u!==s){var f=u-c;a+=f,o+=f*f,l++}}var h=&quot;sample&quot;===t.funcmode?l-1:l;return h?Math.sqrt((o-a*a/l)/h):0}}}(a,n.getDataConversions(t,e,o,c)),d=new Array(r.length),g=0;g&lt;r.length;g++)d[g]=u(c,r[g]);l.set(d),&quot;count&quot;===a.func&amp;&amp;i.pushUnique(e._arrayAttrs,o)}}function f(t,e){return e.length}function h(t,e){return t[e[0]]}function p(t,e){return t[e[e.length-1]]}r.supplyDefaults=function(t,e){var r,n={};function o(e,r){return i.coerce(t,n,l,e,r)}if(!o(&quot;enabled&quot;))return n;var s=a.findArrayAttributes(e),u={};for(r=0;r&lt;s.length;r++)u[s[r]]=1;var f=o(&quot;groups&quot;);if(!Array.isArray(f)){if(!u[f])return n.enabled=!1,n;u[f]=0}var h,p=t.aggregations||[],d=n.aggregations=new Array(p.length);function g(t,e){return i.coerce(p[r],h,c,t,e)}for(r=0;r&lt;p.length;r++){h={_index:r};var m=g(&quot;target&quot;),v=g(&quot;func&quot;);g(&quot;enabled&quot;)&amp;&amp;m&amp;&amp;(u[m]||&quot;count&quot;===v&amp;&amp;void 0===u[m])?(&quot;stddev&quot;===v&amp;&amp;g(&quot;funcmode&quot;),u[m]=0,d[r]=h):d[r]={enabled:!1,_index:r}}for(r=0;r&lt;s.length;r++)u[s[r]]&amp;&amp;d.push({target:s[r],func:c.func.dflt,enabled:!0,_index:-1});return n},r.calcTransform=function(t,e,r){if(r.enabled){var n=r.groups,a=i.getTargetArray(e,{target:n});if(a){var s,l,c,f,h={},p={},d=[],g=o(e.transforms,r),m=a.length;for(e._length&amp;&amp;(m=Math.min(m,e._length)),s=0;s&lt;m;s++)void 0===(c=h[l=a[s]])?(h[l]=d.length,f=[s],d.push(f),p[h[l]]=g(s)):(d[c].push(s),p[h[l]]=(p[h[l]]||[]).concat(g(s)));r._indexToPoints=p;var v=r.aggregations;for(s=0;s&lt;v.length;s++)u(t,e,d,v[s]);&quot;string&quot;==typeof n&amp;&amp;u(t,e,d,{target:n,func:&quot;first&quot;,enabled:!0}),e._length=d.length}}}},{&quot;../constants/numerical&quot;:753,&quot;../lib&quot;:778,&quot;../plot_api/plot_schema&quot;:816,&quot;../plots/cartesian/axes&quot;:828,&quot;./helpers&quot;:1368}],1366:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../registry&quot;),a=t(&quot;../plots/cartesian/axes&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction,s=t(&quot;../constants/filter_ops&quot;),l=s.COMPARISON_OPS,c=s.INTERVAL_OPS,u=s.SET_OPS;r.moduleType=&quot;transform&quot;,r.name=&quot;filter&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},target:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},operation:{valType:&quot;enumerated&quot;,values:[].concat(l).concat(c).concat(u),dflt:&quot;=&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},preservegaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t){var e={};function a(i,a){return n.coerce(t,e,r.attributes,i,a)}if(a(&quot;enabled&quot;)){var o=a(&quot;target&quot;);if(n.isArrayOrTypedArray(o)&amp;&amp;0===o.length)return e.enabled=!1,e;a(&quot;preservegaps&quot;),a(&quot;operation&quot;),a(&quot;value&quot;);var s=i.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;);s(t,e,&quot;valuecalendar&quot;,null),s(t,e,&quot;targetcalendar&quot;,null)}return e},r.calcTransform=function(t,e,r){if(r.enabled){var i=n.getTargetArray(e,r);if(i){var s=r.target,f=i.length;e._length&amp;&amp;(f=Math.min(f,e._length));var h=r.targetcalendar,p=e._arrayAttrs,d=r.preservegaps;if(&quot;string&quot;==typeof s){var g=n.nestedProperty(e,s+&quot;calendar&quot;).get();g&amp;&amp;(h=g)}var m,v,y=function(t,e,r){var n=t.operation,i=t.value,a=Array.isArray(i);function o(t){return-1!==t.indexOf(n)}var s,f=function(r){return e(r,0,t.valuecalendar)},h=function(t){return e(t,0,r)};o(l)?s=f(a?i[0]:i):o(c)?s=a?[f(i[0]),f(i[1])]:[f(i),f(i)]:o(u)&amp;&amp;(s=a?i.map(f):[f(i)]);switch(n){case&quot;=&quot;:return function(t){return h(t)===s};case&quot;!=&quot;:return function(t){return h(t)!==s};case&quot;&lt;&quot;:return function(t){return h(t)&lt;s};case&quot;&lt;=&quot;:return function(t){return h(t)&lt;=s};case&quot;&gt;&quot;:return function(t){return h(t)&gt;s};case&quot;&gt;=&quot;:return function(t){return h(t)&gt;=s};case&quot;[]&quot;:return function(t){var e=h(t);return e&gt;=s[0]&amp;&amp;e&lt;=s[1]};case&quot;()&quot;:return function(t){var e=h(t);return e&gt;s[0]&amp;&amp;e&lt;s[1]};case&quot;[)&quot;:return function(t){var e=h(t);return e&gt;=s[0]&amp;&amp;e&lt;s[1]};case&quot;(]&quot;:return function(t){var e=h(t);return e&gt;s[0]&amp;&amp;e&lt;=s[1]};case&quot;][&quot;:return function(t){var e=h(t);return e&lt;=s[0]||e&gt;=s[1]};case&quot;)(&quot;:return function(t){var e=h(t);return e&lt;s[0]||e&gt;s[1]};case&quot;](&quot;:return function(t){var e=h(t);return e&lt;=s[0]||e&gt;s[1]};case&quot;)[&quot;:return function(t){var e=h(t);return e&lt;s[0]||e&gt;=s[1]};case&quot;{}&quot;:return function(t){return-1!==s.indexOf(h(t))};case&quot;}{&quot;:return function(t){return-1===s.indexOf(h(t))}}}(r,a.getDataToCoordFunc(t,e,s,i),h),x={},b={},_=0;d?(m=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set(new Array(f))},v=function(t,e){var r=x[t.astr][e];t.get()[e]=r}):(m=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set([])},v=function(t,e){var r=x[t.astr][e];t.get().push(r)}),k(m);for(var w=o(e.transforms,r),T=0;T&lt;f;T++){y(i[T])?(k(v,T),b[_++]=w(T)):d&amp;&amp;_++}r._indexToPoints=b,e._length=_}}function k(t,r){for(var i=0;i&lt;p.length;i++){t(n.nestedProperty(e,p[i]),r)}}}},{&quot;../constants/filter_ops&quot;:749,&quot;../lib&quot;:778,&quot;../plots/cartesian/axes&quot;:828,&quot;../registry&quot;:911,&quot;./helpers&quot;:1368}],1367:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_schema&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction;function s(t,e){var r,s,l,c,u,f,h,p,d,g,m=e.transform,v=e.transformIndex,y=t.transforms[v].groups,x=o(t.transforms,m);if(!n.isArrayOrTypedArray(y)||0===y.length)return[t];var b=n.filterUnique(y),_=new Array(b.length),w=y.length,T=i.findArrayAttributes(t),k=m.styles||[],M={};for(r=0;r&lt;k.length;r++)M[k[r].target]=k[r].value;m.styles&amp;&amp;(g=n.keyedContainer(m,&quot;styles&quot;,&quot;target&quot;,&quot;value.name&quot;));var A={},S={};for(r=0;r&lt;b.length;r++){A[f=b[r]]=r,S[f]=0,(h=_[r]=n.extendDeepNoArrays({},t))._group=f,h.transforms[v]._indexToPoints={};var E=null;for(g&amp;&amp;(E=g.get(f)),h.name=E||&quot;&quot;===E?E:n.templateString(m.nameformat,{trace:t.name,group:f}),p=h.transforms,h.transforms=[],s=0;s&lt;p.length;s++)h.transforms[s]=n.extendDeepNoArrays({},p[s]);for(s=0;s&lt;T.length;s++)n.nestedProperty(h,T[s]).set([])}for(l=0;l&lt;T.length;l++){for(c=T[l],s=0,d=[];s&lt;b.length;s++)d[s]=n.nestedProperty(_[s],c).get();for(u=n.nestedProperty(t,c).get(),s=0;s&lt;w;s++)d[A[y[s]]].push(u[s])}for(s=0;s&lt;w;s++){(h=_[A[y[s]]]).transforms[v]._indexToPoints[S[y[s]]]=x(s),S[y[s]]++}for(r=0;r&lt;b.length;r++)f=b[r],h=_[r],a.clearExpandedTraceDefaultColors(h),h=n.extendDeepNoArrays(h,M[f]||{});return _}r.moduleType=&quot;transform&quot;,r.name=&quot;groupby&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},groups:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},nameformat:{valType:&quot;string&quot;,editType:&quot;calc&quot;},styles:{_isLinkedToArray:&quot;style&quot;,target:{valType:&quot;string&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:{},editType:&quot;calc&quot;,_compareAsJSON:!0},editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t,e,i){var a,o={};function s(e,i){return n.coerce(t,o,r.attributes,e,i)}if(!s(&quot;enabled&quot;))return o;s(&quot;groups&quot;),s(&quot;nameformat&quot;,i._dataLength&gt;1?&quot;%{group} (%{trace})&quot;:&quot;%{group}&quot;);var l=t.styles,c=o.styles=[];if(l)for(a=0;a&lt;l.length;a++){var u=c[a]={};n.coerce(l[a],c[a],r.attributes.styles,&quot;target&quot;);var f=n.coerce(l[a],c[a],r.attributes.styles,&quot;value&quot;);n.isPlainObject(f)?u.value=n.extendDeep({},f):f&amp;&amp;delete u.value}return o},r.transform=function(t,e){var r,n,i,a=[];for(n=0;n&lt;t.length;n++)for(r=s(t[n],e),i=0;i&lt;r.length;i++)a.push(r[i]);return a}},{&quot;../lib&quot;:778,&quot;../plot_api/plot_schema&quot;:816,&quot;../plots/plots&quot;:891,&quot;./helpers&quot;:1368}],1368:[function(t,e,r){&quot;use strict&quot;;r.pointsAccessorFunction=function(t,e){for(var r,n,i=0;i&lt;t.length&amp;&amp;(r=t[i])!==e;i++)r._indexToPoints&amp;&amp;!1!==r.enabled&amp;&amp;(n=r._indexToPoints);return n?function(t){return n[t]}:function(t){return[t]}}},{}],1369:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/cartesian/axes&quot;),a=t(&quot;./helpers&quot;).pointsAccessorFunction,o=t(&quot;../constants/numerical&quot;).BADNUM;r.moduleType=&quot;transform&quot;,r.name=&quot;sort&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},target:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},order:{valType:&quot;enumerated&quot;,values:[&quot;ascending&quot;,&quot;descending&quot;],dflt:&quot;ascending&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t){var e={};function i(i,a){return n.coerce(t,e,r.attributes,i,a)}return i(&quot;enabled&quot;)&amp;&amp;(i(&quot;target&quot;),i(&quot;order&quot;)),e},r.calcTransform=function(t,e,r){if(r.enabled){var s=n.getTargetArray(e,r);if(s){var l=r.target,c=s.length;e._length&amp;&amp;(c=Math.min(c,e._length));var u,f,h=e._arrayAttrs,p=function(t,e,r,n){var i,a=new Array(n),s=new Array(n);for(i=0;i&lt;n;i++)a[i]={v:e[i],i:i};for(a.sort(function(t,e){switch(t.order){case&quot;ascending&quot;:return function(t,r){var n=e(t.v),i=e(r.v);return n===o?1:i===o?-1:n-i};case&quot;descending&quot;:return function(t,r){var n=e(t.v),i=e(r.v);return n===o?1:i===o?-1:i-n}}}(t,r)),i=0;i&lt;n;i++)s[i]=a[i].i;return s}(r,s,i.getDataToCoordFunc(t,e,l,s),c),d=a(e.transforms,r),g={};for(u=0;u&lt;h.length;u++){var m=n.nestedProperty(e,h[u]),v=m.get(),y=new Array(c);for(f=0;f&lt;c;f++)y[f]=v[p[f]];m.set(y)}for(f=0;f&lt;c;f++)g[f]=d(p[f]);r._indexToPoints=g,e._length=c}}}},{&quot;../constants/numerical&quot;:753,&quot;../lib&quot;:778,&quot;../plots/cartesian/axes&quot;:828,&quot;./helpers&quot;:1368}],1370:[function(t,e,r){&quot;use strict&quot;;r.version=&quot;1.58.4&quot;},{}]},{},[26])(26)}));&lt;/script&gt;                &lt;div id=&quot;7f223c0e-dd08-4485-adab-78e931c92510&quot; class=&quot;plotly-graph-div&quot; style=&quot;height:100%; width:100%;&quot;&gt;&lt;/div&gt;            &lt;script type=&quot;text/javascript&quot;&gt;                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById(&quot;7f223c0e-dd08-4485-adab-78e931c92510&quot;)) {                    Plotly.newPlot(                        &quot;7f223c0e-dd08-4485-adab-78e931c92510&quot;,                        [{&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;LATITUDE=%{lat}&lt;br&gt;LONGITUDE=%{lon}&lt;br&gt;ESTIMATED YEAR INCREASE (C)=%{marker.color}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;AGARTALA&quot;, &quot;AHMADABAD&quot;, &quot;AKOLA&quot;, &quot;AKOLA&quot;, &quot;ALLAHABAD&quot;, &quot;ALLAHABAD_BAMHRAULI&quot;, &quot;AMRITSAR&quot;, &quot;AURANGABAD_CHIKALTH&quot;, &quot;BALASORE&quot;, &quot;BANGALORE&quot;, &quot;BAREILLY&quot;, &quot;BEGUMPETOBSY&quot;, &quot;BELGAUM_SAMBRA&quot;, &quot;BHOPAL_BAIRAGARH&quot;, &quot;BHUBANESWAR&quot;, &quot;BHUJ_RUDRAMATA&quot;, &quot;BIKANER&quot;, &quot;BOMBAY_COLABA&quot;, &quot;BOMBAY_SANTACRUZ&quot;, &quot;CALCUTTA_ALIPORE&quot;, &quot;CALCUTTA_DUM_DUM&quot;, &quot;CHERRAPUNJI&quot;, &quot;CHERRA_POONJEE&quot;, &quot;CHITRADURGA&quot;, &quot;COIMBATORE_PEELAMED&quot;, &quot;CUDDALORE&quot;, &quot;DALTONGANJ&quot;, &quot;DEHRADUN&quot;, &quot;DIBRUGARH_MOHANBAR&quot;, &quot;DUMKA&quot;, &quot;DWARKA&quot;, &quot;GADAG&quot;, &quot;GANGANAGAR&quot;, &quot;GAUHATI&quot;, &quot;GAYA&quot;, &quot;GOA_PANJIM&quot;, &quot;GORAKHPUR&quot;, &quot;GUNA&quot;, &quot;GWALIOR&quot;, &quot;HISSAR&quot;, &quot;HONAVAR&quot;, &quot;IMPHAL&quot;, &quot;INDORE&quot;, &quot;JABALPUR&quot;, &quot;JAGDALPUR&quot;, &quot;JAIPUR_SANGANER&quot;, &quot;JAISALMER&quot;, &quot;JHARSUGUDA&quot;, &quot;JODHPUR&quot;, &quot;KAKINADA&quot;, &quot;KARAIKAL&quot;, &quot;KODAIKANAL&quot;, &quot;KOTA_AERODROME&quot;, &quot;KOZHIKODE&quot;, &quot;KURNOOL&quot;, &quot;LUCKNOW_AMAUSI&quot;, &quot;LUDHIANA&quot;, &quot;MACHILIPATNAM&quot;, &quot;MADRAS_MINAMBAKKAM&quot;, &quot;MANGALORE_BAJPE&quot;, &quot;MINICOY&quot;, &quot;MINICOYOBSY&quot;, &quot;MO_AMINI&quot;, &quot;MO_RANCHI&quot;, &quot;MUKTESWAR_KUMAON&quot;, &quot;NAGPUR_SONEGAON&quot;, &quot;NELLORE&quot;, &quot;NEW_DELHI_PALAM&quot;, &quot;NEW_DELHI_SAFDARJUN&quot;, &quot;NORTH_LAKHIMPUR&quot;, &quot;PAMBAN&quot;, &quot;PATIALA&quot;, &quot;PATNA&quot;, &quot;PBO_ANANTAPUR&quot;, &quot;PENDRA_ROAD&quot;, &quot;POONA&quot;, &quot;PORT_BLAIR&quot;, &quot;RAIPUR&quot;, &quot;RAJKOT&quot;, &quot;RAMGUNDAM&quot;, &quot;RATNAGIRI&quot;, &quot;SAGAR&quot;, &quot;SANDHEADS&quot;, &quot;SATNA&quot;, &quot;SHILONG&quot;, &quot;SHIMLA&quot;, &quot;SHOLAPUR&quot;, &quot;SILCHAR&quot;, &quot;SRINAGAR&quot;, &quot;SURAT&quot;, &quot;TEZPUR&quot;, &quot;THIRUVANANTHAPURAM&quot;, &quot;THIRUVANANTHAPURAM&quot;, &quot;TIRUCHCHIRAPALLI&quot;, &quot;TRIVANDRUM&quot;, &quot;UDAIPUR_DABOK&quot;, &quot;VARANASI_BABATPUR&quot;, &quot;VERAVAL&quot;, &quot;VISHAKHAPATNAM&quot;], &quot;lat&quot;: [23.883, 23.067, 20.7, 20.7, 25.441, 25.5, 31.71, 19.85, 21.517, 12.967, 28.367, 17.45, 15.85, 23.283, 20.25, 23.25, 28.0, 18.9, 19.117, 22.533, 22.65, 25.25, 25.25, 14.233, 11.033, 11.767, 24.05, 30.317, 27.483, 24.267, 22.3667, 15.417, 29.917, 26.1, 24.75, 15.483, 26.75, 24.65, 26.233, 29.167, 14.283, 24.667, 22.717, 23.2, 19.083, 26.817, 26.9, 21.917, 26.3, 16.95, 10.917, 10.2333, 25.15, 11.25, 15.8, 26.75, 30.9333, 16.2, 13.0, 12.917, 8.3, 8.3, 11.117, 23.317, 29.4667, 21.1, 14.45, 28.567, 28.583, 27.233, 9.267, 30.333, 25.6, 14.583, 22.767, 18.533, 11.667, 21.217, 22.3, 18.767, 16.983, 23.85, 20.85, 24.567, 25.6, 31.1, 17.667, 24.82, 34.083, 21.2, 26.617, 8.467, 8.483, 10.767, 8.5, 24.617, 25.45, 20.9, 17.717], &quot;legendgroup&quot;: &quot;&quot;, &quot;lon&quot;: [91.25, 72.633, 77.033, 77.067, 81.735, 81.9, 74.797, 75.4, 86.933, 77.583, 79.4, 78.47, 74.617, 77.35, 85.833, 69.667, 73.3, 72.8167, 72.85, 88.333, 88.45, 91.7333, 91.73, 76.433, 77.05, 79.767, 84.067, 78.033, 95.017, 87.25, 69.0833, 75.633, 73.917, 91.583, 84.95, 73.817, 83.367, 77.317, 78.25, 75.733, 74.45, 93.9, 75.8, 79.95, 82.033, 75.8, 70.917, 84.083, 73.017, 82.233, 79.833, 77.4667, 75.85, 75.783, 78.067, 80.883, 75.8667, 81.15, 80.183, 74.883, 73.15, 73.0, 72.733, 85.317, 79.65, 79.05, 79.983, 77.117, 77.2, 94.117, 79.3, 76.467, 85.1, 77.633, 81.9, 73.85, 92.717, 81.667, 70.783, 79.433, 73.333, 78.75, 88.25, 80.833, 91.89, 77.167, 75.9, 92.83, 74.833, 72.833, 92.783, 76.95, 76.95, 78.717, 77.0, 73.883, 82.867, 70.367, 83.233], &quot;marker&quot;: {&quot;color&quot;: [-0.0062, 0.0067, -0.0018, -0.0059, -0.0294, -0.0155, -0.007, 0.0124, -0.0085, 0.036, -0.0169, 0.0107, -0.0036, -0.0221, -0.0161, 0.0699, 0.0172, 0.0114, 0.0347, -0.0103, -0.0162, 0.0465, -0.022, 0.0156, 0.0344, 0.0208, -0.0046, 0.0436, 0.052, -0.0821, 0.017, 0.0089, -0.0076, 0.0141, -0.0181, 0.0224, 0.0039, -0.0092, -0.0184, -0.0034, -0.0492, 0.0633, 0.003, -0.0252, -0.0001, 0.0067, 0.0026, -0.0185, 0.0097, 0.026, 0.0213, 0.0691, -0.0186, 0.0334, 0.0257, -0.0372, 0.1318, 0.0123, 0.0237, 0.0233, 0.0252, 0.0141, -0.0062, 0.0053, 0.0155, -0.0246, 0.0235, 0.0056, -0.0024, 0.0955, 0.0248, -0.0116, -0.0219, 0.0263, -0.0096, -0.0004, 0.0307, 0.0014, 0.0157, -0.0089, 0.0032, 0.0015, -0.0524, -0.0226, 0.0135, 0.004, 0.0038, 0.0161, 0.0488, 0.0232, 0.0394, 0.0086, 0.0206, 0.0146, 0.0229, 0.0724, -0.013, 0.0248, -0.034], &quot;coloraxis&quot;: &quot;coloraxis&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;&quot;, &quot;showlegend&quot;: false, &quot;subplot&quot;: &quot;mapbox&quot;, &quot;type&quot;: &quot;scattermapbox&quot;}],                        {&quot;coloraxis&quot;: {&quot;cmid&quot;: 0, &quot;colorbar&quot;: {&quot;title&quot;: {&quot;text&quot;: &quot;ESTIMATED YEAR INCREASE (C)&quot;}}, &quot;colorscale&quot;: [[0.0, &quot;rgb(26,26,26)&quot;], [0.1, &quot;rgb(77,77,77)&quot;], [0.2, &quot;rgb(135,135,135)&quot;], [0.3, &quot;rgb(186,186,186)&quot;], [0.4, &quot;rgb(224,224,224)&quot;], [0.5, &quot;rgb(255,255,255)&quot;], [0.6, &quot;rgb(253,219,199)&quot;], [0.7, &quot;rgb(244,165,130)&quot;], [0.8, &quot;rgb(214,96,77)&quot;], [0.9, &quot;rgb(178,24,43)&quot;], [1.0, &quot;rgb(103,0,31)&quot;]]}, &quot;legend&quot;: {&quot;tracegroupgap&quot;: 0}, &quot;mapbox&quot;: {&quot;center&quot;: {&quot;lat&quot;: 21.042010101010096, &quot;lon&quot;: 79.63467373737372}, &quot;domain&quot;: {&quot;x&quot;: [0.0, 1.0], &quot;y&quot;: [0.0, 1.0]}, &quot;style&quot;: &quot;carto-positron&quot;, &quot;zoom&quot;: 2}, &quot;margin&quot;: {&quot;t&quot;: 60}, &quot;template&quot;: {&quot;data&quot;: {&quot;bar&quot;: [{&quot;error_x&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}, &quot;error_y&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}, &quot;marker&quot;: {&quot;line&quot;: {&quot;color&quot;: &quot;#E5ECF6&quot;, &quot;width&quot;: 0.5}}, &quot;type&quot;: &quot;bar&quot;}], &quot;barpolar&quot;: [{&quot;marker&quot;: {&quot;line&quot;: {&quot;color&quot;: &quot;#E5ECF6&quot;, &quot;width&quot;: 0.5}}, &quot;type&quot;: &quot;barpolar&quot;}], &quot;carpet&quot;: [{&quot;aaxis&quot;: {&quot;endlinecolor&quot;: &quot;#2a3f5f&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;minorgridcolor&quot;: &quot;white&quot;, &quot;startlinecolor&quot;: &quot;#2a3f5f&quot;}, &quot;baxis&quot;: {&quot;endlinecolor&quot;: &quot;#2a3f5f&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;minorgridcolor&quot;: &quot;white&quot;, &quot;startlinecolor&quot;: &quot;#2a3f5f&quot;}, &quot;type&quot;: &quot;carpet&quot;}], &quot;choropleth&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;type&quot;: &quot;choropleth&quot;}], &quot;contour&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;contour&quot;}], &quot;contourcarpet&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;type&quot;: &quot;contourcarpet&quot;}], &quot;heatmap&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;heatmap&quot;}], &quot;heatmapgl&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;heatmapgl&quot;}], &quot;histogram&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;histogram&quot;}], &quot;histogram2d&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;histogram2d&quot;}], &quot;histogram2dcontour&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;histogram2dcontour&quot;}], &quot;mesh3d&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;type&quot;: &quot;mesh3d&quot;}], &quot;parcoords&quot;: [{&quot;line&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;parcoords&quot;}], &quot;pie&quot;: [{&quot;automargin&quot;: true, &quot;type&quot;: &quot;pie&quot;}], &quot;scatter&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatter&quot;}], &quot;scatter3d&quot;: [{&quot;line&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatter3d&quot;}], &quot;scattercarpet&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattercarpet&quot;}], &quot;scattergeo&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattergeo&quot;}], &quot;scattergl&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattergl&quot;}], &quot;scattermapbox&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattermapbox&quot;}], &quot;scatterpolar&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatterpolar&quot;}], &quot;scatterpolargl&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatterpolargl&quot;}], &quot;scatterternary&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatterternary&quot;}], &quot;surface&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;surface&quot;}], &quot;table&quot;: [{&quot;cells&quot;: {&quot;fill&quot;: {&quot;color&quot;: &quot;#EBF0F8&quot;}, &quot;line&quot;: {&quot;color&quot;: &quot;white&quot;}}, &quot;header&quot;: {&quot;fill&quot;: {&quot;color&quot;: &quot;#C8D4E3&quot;}, &quot;line&quot;: {&quot;color&quot;: &quot;white&quot;}}, &quot;type&quot;: &quot;table&quot;}]}, &quot;layout&quot;: {&quot;annotationdefaults&quot;: {&quot;arrowcolor&quot;: &quot;#2a3f5f&quot;, &quot;arrowhead&quot;: 0, &quot;arrowwidth&quot;: 1}, &quot;autotypenumbers&quot;: &quot;strict&quot;, &quot;coloraxis&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;colorscale&quot;: {&quot;diverging&quot;: [[0, &quot;#8e0152&quot;], [0.1, &quot;#c51b7d&quot;], [0.2, &quot;#de77ae&quot;], [0.3, &quot;#f1b6da&quot;], [0.4, &quot;#fde0ef&quot;], [0.5, &quot;#f7f7f7&quot;], [0.6, &quot;#e6f5d0&quot;], [0.7, &quot;#b8e186&quot;], [0.8, &quot;#7fbc41&quot;], [0.9, &quot;#4d9221&quot;], [1, &quot;#276419&quot;]], &quot;sequential&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;sequentialminus&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]]}, &quot;colorway&quot;: [&quot;#636efa&quot;, &quot;#EF553B&quot;, &quot;#00cc96&quot;, &quot;#ab63fa&quot;, &quot;#FFA15A&quot;, &quot;#19d3f3&quot;, &quot;#FF6692&quot;, &quot;#B6E880&quot;, &quot;#FF97FF&quot;, &quot;#FECB52&quot;], &quot;font&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}, &quot;geo&quot;: {&quot;bgcolor&quot;: &quot;white&quot;, &quot;lakecolor&quot;: &quot;white&quot;, &quot;landcolor&quot;: &quot;#E5ECF6&quot;, &quot;showlakes&quot;: true, &quot;showland&quot;: true, &quot;subunitcolor&quot;: &quot;white&quot;}, &quot;hoverlabel&quot;: {&quot;align&quot;: &quot;left&quot;}, &quot;hovermode&quot;: &quot;closest&quot;, &quot;mapbox&quot;: {&quot;style&quot;: &quot;light&quot;}, &quot;paper_bgcolor&quot;: &quot;white&quot;, &quot;plot_bgcolor&quot;: &quot;#E5ECF6&quot;, &quot;polar&quot;: {&quot;angularaxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}, &quot;bgcolor&quot;: &quot;#E5ECF6&quot;, &quot;radialaxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}}, &quot;scene&quot;: {&quot;xaxis&quot;: {&quot;backgroundcolor&quot;: &quot;#E5ECF6&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;gridwidth&quot;: 2, &quot;linecolor&quot;: &quot;white&quot;, &quot;showbackground&quot;: true, &quot;ticks&quot;: &quot;&quot;, &quot;zerolinecolor&quot;: &quot;white&quot;}, &quot;yaxis&quot;: {&quot;backgroundcolor&quot;: &quot;#E5ECF6&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;gridwidth&quot;: 2, &quot;linecolor&quot;: &quot;white&quot;, &quot;showbackground&quot;: true, &quot;ticks&quot;: &quot;&quot;, &quot;zerolinecolor&quot;: &quot;white&quot;}, &quot;zaxis&quot;: {&quot;backgroundcolor&quot;: &quot;#E5ECF6&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;gridwidth&quot;: 2, &quot;linecolor&quot;: &quot;white&quot;, &quot;showbackground&quot;: true, &quot;ticks&quot;: &quot;&quot;, &quot;zerolinecolor&quot;: &quot;white&quot;}}, &quot;shapedefaults&quot;: {&quot;line&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}}, &quot;ternary&quot;: {&quot;aaxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}, &quot;baxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}, &quot;bgcolor&quot;: &quot;#E5ECF6&quot;, &quot;caxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}}, &quot;title&quot;: {&quot;x&quot;: 0.05}, &quot;xaxis&quot;: {&quot;automargin&quot;: true, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;, &quot;title&quot;: {&quot;standoff&quot;: 15}, &quot;zerolinecolor&quot;: &quot;white&quot;, &quot;zerolinewidth&quot;: 2}, &quot;yaxis&quot;: {&quot;automargin&quot;: true, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;, &quot;title&quot;: {&quot;standoff&quot;: 15}, &quot;zerolinecolor&quot;: &quot;white&quot;, &quot;zerolinewidth&quot;: 2}}}, &quot;title&quot;: {&quot;text&quot;: &quot;Estimates of yearly increase in temperature in India years 1980 - 2020&quot;}},                        {&quot;responsive&quot;: true}                    )                };                            &lt;/script&gt;        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

&lt;p&gt;Cool, look’s nice! Let’s try another country with another time window just for good measure:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;#now for another country
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;color_map&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;px&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;colors&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;diverging&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;RdGy_r&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;# choose a colormap
&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;temperature_coefficient_plot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Mexico&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1975&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2020&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                                   &lt;span class=&quot;n&quot;&gt;min_obs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                                   &lt;span class=&quot;n&quot;&gt;zoom&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                                   &lt;span class=&quot;n&quot;&gt;mapbox_style&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;carto-positron&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                                   &lt;span class=&quot;n&quot;&gt;color_continuous_scale&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;color_map&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;show&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;pio&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;write_html&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;hw1_geo2&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#comment out if not saving
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;html&gt;
&lt;head&gt;&lt;meta charset=&quot;utf-8&quot; /&gt;&lt;/head&gt;
&lt;body&gt;
    &lt;div&gt;                        &lt;script type=&quot;text/javascript&quot;&gt;window.PlotlyConfig = {MathJaxConfig: 'local'};&lt;/script&gt;
        &lt;script type=&quot;text/javascript&quot;&gt;/**
* plotly.js v1.58.4
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
!function(t){if(&quot;object&quot;==typeof exports&amp;&amp;&quot;undefined&quot;!=typeof module)module.exports=t();else if(&quot;function&quot;==typeof define&amp;&amp;define.amd)define([],t);else{(&quot;undefined&quot;!=typeof window?window:&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:this).Plotly=t()}}((function(){return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var l=&quot;function&quot;==typeof require&amp;&amp;require;if(!s&amp;&amp;l)return l(o,!0);if(a)return a(o,!0);var c=new Error(&quot;Cannot find module '&quot;+o+&quot;'&quot;);throw c.code=&quot;MODULE_NOT_FOUND&quot;,c}var u=r[o]={exports:{}};e[o][0].call(u.exports,(function(t){return i(e[o][1][t]||t)}),u,u.exports,t,e,r,n)}return r[o].exports}for(var a=&quot;function&quot;==typeof require&amp;&amp;require,o=0;o&lt;n.length;o++)i(n[o]);return i}({1:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../src/lib&quot;),i={&quot;X,X div&quot;:&quot;direction:ltr;font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding:0;&quot;,&quot;X input,X button&quot;:&quot;font-family:'Open Sans', verdana, arial, sans-serif;&quot;,&quot;X input:focus,X button:focus&quot;:&quot;outline:none;&quot;,&quot;X a&quot;:&quot;text-decoration:none;&quot;,&quot;X a:hover&quot;:&quot;text-decoration:none;&quot;,&quot;X .crisp&quot;:&quot;shape-rendering:crispEdges;&quot;,&quot;X .user-select-none&quot;:&quot;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;&quot;,&quot;X svg&quot;:&quot;overflow:hidden;&quot;,&quot;X svg a&quot;:&quot;fill:#447adb;&quot;,&quot;X svg a:hover&quot;:&quot;fill:#3c6dc5;&quot;,&quot;X .main-svg&quot;:&quot;position:absolute;top:0;left:0;pointer-events:none;&quot;,&quot;X .main-svg .draglayer&quot;:&quot;pointer-events:all;&quot;,&quot;X .cursor-default&quot;:&quot;cursor:default;&quot;,&quot;X .cursor-pointer&quot;:&quot;cursor:pointer;&quot;,&quot;X .cursor-crosshair&quot;:&quot;cursor:crosshair;&quot;,&quot;X .cursor-move&quot;:&quot;cursor:move;&quot;,&quot;X .cursor-col-resize&quot;:&quot;cursor:col-resize;&quot;,&quot;X .cursor-row-resize&quot;:&quot;cursor:row-resize;&quot;,&quot;X .cursor-ns-resize&quot;:&quot;cursor:ns-resize;&quot;,&quot;X .cursor-ew-resize&quot;:&quot;cursor:ew-resize;&quot;,&quot;X .cursor-sw-resize&quot;:&quot;cursor:sw-resize;&quot;,&quot;X .cursor-s-resize&quot;:&quot;cursor:s-resize;&quot;,&quot;X .cursor-se-resize&quot;:&quot;cursor:se-resize;&quot;,&quot;X .cursor-w-resize&quot;:&quot;cursor:w-resize;&quot;,&quot;X .cursor-e-resize&quot;:&quot;cursor:e-resize;&quot;,&quot;X .cursor-nw-resize&quot;:&quot;cursor:nw-resize;&quot;,&quot;X .cursor-n-resize&quot;:&quot;cursor:n-resize;&quot;,&quot;X .cursor-ne-resize&quot;:&quot;cursor:ne-resize;&quot;,&quot;X .cursor-grab&quot;:&quot;cursor:-webkit-grab;cursor:grab;&quot;,&quot;X .modebar&quot;:&quot;position:absolute;top:2px;right:2px;&quot;,&quot;X .ease-bg&quot;:&quot;-webkit-transition:background-color 0.3s ease 0s;-moz-transition:background-color 0.3s ease 0s;-ms-transition:background-color 0.3s ease 0s;-o-transition:background-color 0.3s ease 0s;transition:background-color 0.3s ease 0s;&quot;,&quot;X .modebar--hover&gt;:not(.watermark)&quot;:&quot;opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;&quot;,&quot;X:hover .modebar--hover .modebar-group&quot;:&quot;opacity:1;&quot;,&quot;X .modebar-group&quot;:&quot;float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;&quot;,&quot;X .modebar-btn&quot;:&quot;position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;&quot;,&quot;X .modebar-btn svg&quot;:&quot;position:relative;top:2px;&quot;,&quot;X .modebar.vertical&quot;:&quot;display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;&quot;,&quot;X .modebar.vertical svg&quot;:&quot;top:-1px;&quot;,&quot;X .modebar.vertical .modebar-group&quot;:&quot;display:block;float:none;padding-left:0px;padding-bottom:8px;&quot;,&quot;X .modebar.vertical .modebar-group .modebar-btn&quot;:&quot;display:block;text-align:center;&quot;,&quot;X [data-title]:before,X [data-title]:after&quot;:&quot;position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;&quot;,&quot;X [data-title]:hover:before,X [data-title]:hover:after&quot;:&quot;display:block;opacity:1;&quot;,&quot;X [data-title]:before&quot;:&quot;content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;&quot;,&quot;X [data-title]:after&quot;:&quot;content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;&quot;,&quot;X .vertical [data-title]:before,X .vertical [data-title]:after&quot;:&quot;top:0%;right:200%;&quot;,&quot;X .vertical [data-title]:before&quot;:&quot;border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;&quot;,&quot;X .select-outline&quot;:&quot;fill:none;stroke-width:1;shape-rendering:crispEdges;&quot;,&quot;X .select-outline-1&quot;:&quot;stroke:white;&quot;,&quot;X .select-outline-2&quot;:&quot;stroke:black;stroke-dasharray:2px 2px;&quot;,Y:&quot;font-family:'Open Sans', verdana, arial, sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;&quot;,&quot;Y p&quot;:&quot;margin:0;&quot;,&quot;Y .notifier-note&quot;:&quot;min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;&quot;,&quot;Y .notifier-close&quot;:&quot;color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;&quot;,&quot;Y .notifier-close:hover&quot;:&quot;color:#444;text-decoration:none;cursor:pointer;&quot;};for(var a in i){var o=a.replace(/^,/,&quot; ,&quot;).replace(/X/g,&quot;.js-plotly-plot .plotly&quot;).replace(/Y/g,&quot;.plotly-notifier&quot;);n.addStyleRule(o,i[a])}},{&quot;../src/lib&quot;:778}],2:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/aggregate&quot;)},{&quot;../src/transforms/aggregate&quot;:1365}],3:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/bar&quot;)},{&quot;../src/traces/bar&quot;:929}],4:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/barpolar&quot;)},{&quot;../src/traces/barpolar&quot;:942}],5:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/box&quot;)},{&quot;../src/traces/box&quot;:952}],6:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/components/calendars&quot;)},{&quot;../src/components/calendars&quot;:641}],7:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/candlestick&quot;)},{&quot;../src/traces/candlestick&quot;:961}],8:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/carpet&quot;)},{&quot;../src/traces/carpet&quot;:980}],9:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/choropleth&quot;)},{&quot;../src/traces/choropleth&quot;:994}],10:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/choroplethmapbox&quot;)},{&quot;../src/traces/choroplethmapbox&quot;:1001}],11:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/cone&quot;)},{&quot;../src/traces/cone&quot;:1007}],12:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/contour&quot;)},{&quot;../src/traces/contour&quot;:1022}],13:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/contourcarpet&quot;)},{&quot;../src/traces/contourcarpet&quot;:1033}],14:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/core&quot;)},{&quot;../src/core&quot;:755}],15:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/densitymapbox&quot;)},{&quot;../src/traces/densitymapbox&quot;:1041}],16:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/filter&quot;)},{&quot;../src/transforms/filter&quot;:1366}],17:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/funnel&quot;)},{&quot;../src/traces/funnel&quot;:1051}],18:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/funnelarea&quot;)},{&quot;../src/traces/funnelarea&quot;:1060}],19:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/groupby&quot;)},{&quot;../src/transforms/groupby&quot;:1367}],20:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/heatmap&quot;)},{&quot;../src/traces/heatmap&quot;:1073}],21:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/heatmapgl&quot;)},{&quot;../src/traces/heatmapgl&quot;:1083}],22:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram&quot;)},{&quot;../src/traces/histogram&quot;:1095}],23:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram2d&quot;)},{&quot;../src/traces/histogram2d&quot;:1101}],24:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram2dcontour&quot;)},{&quot;../src/traces/histogram2dcontour&quot;:1105}],25:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/image&quot;)},{&quot;../src/traces/image&quot;:1113}],26:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./core&quot;);n.register([t(&quot;./bar&quot;),t(&quot;./box&quot;),t(&quot;./heatmap&quot;),t(&quot;./histogram&quot;),t(&quot;./histogram2d&quot;),t(&quot;./histogram2dcontour&quot;),t(&quot;./contour&quot;),t(&quot;./scatterternary&quot;),t(&quot;./violin&quot;),t(&quot;./funnel&quot;),t(&quot;./waterfall&quot;),t(&quot;./image&quot;),t(&quot;./pie&quot;),t(&quot;./sunburst&quot;),t(&quot;./treemap&quot;),t(&quot;./funnelarea&quot;),t(&quot;./scatter3d&quot;),t(&quot;./surface&quot;),t(&quot;./isosurface&quot;),t(&quot;./volume&quot;),t(&quot;./mesh3d&quot;),t(&quot;./cone&quot;),t(&quot;./streamtube&quot;),t(&quot;./scattergeo&quot;),t(&quot;./choropleth&quot;),t(&quot;./scattergl&quot;),t(&quot;./splom&quot;),t(&quot;./pointcloud&quot;),t(&quot;./heatmapgl&quot;),t(&quot;./parcoords&quot;),t(&quot;./parcats&quot;),t(&quot;./scattermapbox&quot;),t(&quot;./choroplethmapbox&quot;),t(&quot;./densitymapbox&quot;),t(&quot;./sankey&quot;),t(&quot;./indicator&quot;),t(&quot;./table&quot;),t(&quot;./carpet&quot;),t(&quot;./scattercarpet&quot;),t(&quot;./contourcarpet&quot;),t(&quot;./ohlc&quot;),t(&quot;./candlestick&quot;),t(&quot;./scatterpolar&quot;),t(&quot;./scatterpolargl&quot;),t(&quot;./barpolar&quot;)]),n.register([t(&quot;./aggregate&quot;),t(&quot;./filter&quot;),t(&quot;./groupby&quot;),t(&quot;./sort&quot;)]),n.register([t(&quot;./calendars&quot;)]),e.exports=n},{&quot;./aggregate&quot;:2,&quot;./bar&quot;:3,&quot;./barpolar&quot;:4,&quot;./box&quot;:5,&quot;./calendars&quot;:6,&quot;./candlestick&quot;:7,&quot;./carpet&quot;:8,&quot;./choropleth&quot;:9,&quot;./choroplethmapbox&quot;:10,&quot;./cone&quot;:11,&quot;./contour&quot;:12,&quot;./contourcarpet&quot;:13,&quot;./core&quot;:14,&quot;./densitymapbox&quot;:15,&quot;./filter&quot;:16,&quot;./funnel&quot;:17,&quot;./funnelarea&quot;:18,&quot;./groupby&quot;:19,&quot;./heatmap&quot;:20,&quot;./heatmapgl&quot;:21,&quot;./histogram&quot;:22,&quot;./histogram2d&quot;:23,&quot;./histogram2dcontour&quot;:24,&quot;./image&quot;:25,&quot;./indicator&quot;:27,&quot;./isosurface&quot;:28,&quot;./mesh3d&quot;:29,&quot;./ohlc&quot;:30,&quot;./parcats&quot;:31,&quot;./parcoords&quot;:32,&quot;./pie&quot;:33,&quot;./pointcloud&quot;:34,&quot;./sankey&quot;:35,&quot;./scatter3d&quot;:36,&quot;./scattercarpet&quot;:37,&quot;./scattergeo&quot;:38,&quot;./scattergl&quot;:39,&quot;./scattermapbox&quot;:40,&quot;./scatterpolar&quot;:41,&quot;./scatterpolargl&quot;:42,&quot;./scatterternary&quot;:43,&quot;./sort&quot;:44,&quot;./splom&quot;:45,&quot;./streamtube&quot;:46,&quot;./sunburst&quot;:47,&quot;./surface&quot;:48,&quot;./table&quot;:49,&quot;./treemap&quot;:50,&quot;./violin&quot;:51,&quot;./volume&quot;:52,&quot;./waterfall&quot;:53}],27:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/indicator&quot;)},{&quot;../src/traces/indicator&quot;:1121}],28:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/isosurface&quot;)},{&quot;../src/traces/isosurface&quot;:1127}],29:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/mesh3d&quot;)},{&quot;../src/traces/mesh3d&quot;:1132}],30:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/ohlc&quot;)},{&quot;../src/traces/ohlc&quot;:1137}],31:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/parcats&quot;)},{&quot;../src/traces/parcats&quot;:1146}],32:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/parcoords&quot;)},{&quot;../src/traces/parcoords&quot;:1156}],33:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/pie&quot;)},{&quot;../src/traces/pie&quot;:1167}],34:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/pointcloud&quot;)},{&quot;../src/traces/pointcloud&quot;:1176}],35:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/sankey&quot;)},{&quot;../src/traces/sankey&quot;:1182}],36:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatter3d&quot;)},{&quot;../src/traces/scatter3d&quot;:1220}],37:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattercarpet&quot;)},{&quot;../src/traces/scattercarpet&quot;:1227}],38:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattergeo&quot;)},{&quot;../src/traces/scattergeo&quot;:1235}],39:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattergl&quot;)},{&quot;../src/traces/scattergl&quot;:1248}],40:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattermapbox&quot;)},{&quot;../src/traces/scattermapbox&quot;:1258}],41:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterpolar&quot;)},{&quot;../src/traces/scatterpolar&quot;:1266}],42:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterpolargl&quot;)},{&quot;../src/traces/scatterpolargl&quot;:1273}],43:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterternary&quot;)},{&quot;../src/traces/scatterternary&quot;:1281}],44:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/sort&quot;)},{&quot;../src/transforms/sort&quot;:1369}],45:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/splom&quot;)},{&quot;../src/traces/splom&quot;:1290}],46:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/streamtube&quot;)},{&quot;../src/traces/streamtube&quot;:1298}],47:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/sunburst&quot;)},{&quot;../src/traces/sunburst&quot;:1306}],48:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/surface&quot;)},{&quot;../src/traces/surface&quot;:1315}],49:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/table&quot;)},{&quot;../src/traces/table&quot;:1323}],50:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/treemap&quot;)},{&quot;../src/traces/treemap&quot;:1332}],51:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/violin&quot;)},{&quot;../src/traces/violin&quot;:1344}],52:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/volume&quot;)},{&quot;../src/traces/volume&quot;:1352}],53:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/waterfall&quot;)},{&quot;../src/traces/waterfall&quot;:1360}],54:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).eye||[0,0,1],r=t.center||[0,0,0],s=t.up||[0,1,0],l=t.distanceLimits||[0,1/0],c=t.mode||&quot;turntable&quot;,u=n(),f=i(),h=a();return u.setDistanceLimits(l[0],l[1]),u.lookAt(0,e,r,s),f.setDistanceLimits(l[0],l[1]),f.lookAt(0,e,r,s),h.setDistanceLimits(l[0],l[1]),h.lookAt(0,e,r,s),new o({turntable:u,orbit:f,matrix:h},c)};var n=t(&quot;turntable-camera-controller&quot;),i=t(&quot;orbit-camera-controller&quot;),a=t(&quot;matrix-camera-controller&quot;);function o(t,e){this._controllerNames=Object.keys(t),this._controllerList=this._controllerNames.map((function(e){return t[e]})),this._mode=e,this._active=t[e],this._active||(this._mode=&quot;turntable&quot;,this._active=t.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var s=o.prototype;[[&quot;flush&quot;,1],[&quot;idle&quot;,1],[&quot;lookAt&quot;,4],[&quot;rotate&quot;,4],[&quot;pan&quot;,4],[&quot;translate&quot;,4],[&quot;setMatrix&quot;,2],[&quot;setDistanceLimits&quot;,2],[&quot;setDistance&quot;,2]].forEach((function(t){for(var e=t[0],r=[],n=0;n&lt;t[1];++n)r.push(&quot;a&quot;+n);var i=&quot;var cc=this._controllerList;for(var i=0;i&lt;cc.length;++i){cc[i].&quot;+t[0]+&quot;(&quot;+r.join()+&quot;)}&quot;;s[e]=Function.apply(null,r.concat(i))})),s.recalcMatrix=function(t){this._active.recalcMatrix(t)},s.getDistance=function(t){return this._active.getDistance(t)},s.getDistanceLimits=function(t){return this._active.getDistanceLimits(t)},s.lastT=function(){return this._active.lastT()},s.setMode=function(t){if(t!==this._mode){var e=this._controllerNames.indexOf(t);if(!(e&lt;0)){var r=this._active,n=this._controllerList[e],i=Math.max(r.lastT(),n.lastT());r.recalcMatrix(i),n.setMatrix(i,r.computedMatrix),this._active=n,this._mode=t,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}}},s.getMode=function(){return this._mode}},{&quot;matrix-camera-controller&quot;:480,&quot;orbit-camera-controller&quot;:501,&quot;turntable-camera-controller&quot;:581}],55:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-array&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-shape&quot;),t(&quot;elementary-circuits-directed-graph&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,null)}(this,(function(t,e,r,n,i){&quot;use strict&quot;;function a(t){return t.target.depth}function o(t,e){return t.sourceLinks.length?t.depth:e-1}function s(t){return function(){return t}}i=i&amp;&amp;i.hasOwnProperty(&quot;default&quot;)?i.default:i;var l=&quot;function&quot;==typeof Symbol&amp;&amp;&quot;symbol&quot;==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;&quot;function&quot;==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?&quot;symbol&quot;:typeof t};function c(t,e){return f(t.source,e.source)||t.index-e.index}function u(t,e){return f(t.target,e.target)||t.index-e.index}function f(t,e){return t.partOfCycle===e.partOfCycle?t.y0-e.y0:&quot;top&quot;===t.circularLinkType||&quot;bottom&quot;===e.circularLinkType?-1:1}function h(t){return t.value}function p(t){return(t.y0+t.y1)/2}function d(t){return p(t.source)}function g(t){return p(t.target)}function m(t){return t.index}function v(t){return t.nodes}function y(t){return t.links}function x(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function b(t,e){return e(t)}function _(t,e,r){var n=0;if(null===r){for(var a=[],o=0;o&lt;t.links.length;o++){var s=t.links[o],l=s.source.index,c=s.target.index;a[l]||(a[l]=[]),a[c]||(a[c]=[]),-1===a[l].indexOf(c)&amp;&amp;a[l].push(c)}var u=i(a);u.sort((function(t,e){return t.length-e.length}));var f={};for(o=0;o&lt;u.length;o++){var h=u[o].slice(-2);f[h[0]]||(f[h[0]]={}),f[h[0]][h[1]]=!0}t.links.forEach((function(t){var e=t.target.index,r=t.source.index;e===r||f[r]&amp;&amp;f[r][e]?(t.circular=!0,t.circularLinkID=n,n+=1):t.circular=!1}))}else t.links.forEach((function(t){t.source[r]&lt;t.target[r]?t.circular=!1:(t.circular=!0,t.circularLinkID=n,n+=1)}))}function w(t,e){var r=0,n=0;t.links.forEach((function(i){i.circular&amp;&amp;(i.source.circularLinkType||i.target.circularLinkType?i.circularLinkType=i.source.circularLinkType?i.source.circularLinkType:i.target.circularLinkType:i.circularLinkType=r&lt;n?&quot;top&quot;:&quot;bottom&quot;,&quot;top&quot;==i.circularLinkType?r+=1:n+=1,t.nodes.forEach((function(t){b(t,e)!=b(i.source,e)&amp;&amp;b(t,e)!=b(i.target,e)||(t.circularLinkType=i.circularLinkType)})))})),t.links.forEach((function(t){t.circular&amp;&amp;(t.source.circularLinkType==t.target.circularLinkType&amp;&amp;(t.circularLinkType=t.source.circularLinkType),H(t,e)&amp;&amp;(t.circularLinkType=t.source.circularLinkType))}))}function T(t){var e=Math.abs(t.y1-t.y0),r=Math.abs(t.target.x0-t.source.x1);return Math.atan(r/e)}function k(t,e){var r=0;t.sourceLinks.forEach((function(t){r=t.circular&amp;&amp;!H(t,e)?r+1:r}));var n=0;return t.targetLinks.forEach((function(t){n=t.circular&amp;&amp;!H(t,e)?n+1:n})),r+n}function M(t){var e=t.source.sourceLinks,r=0;e.forEach((function(t){r=t.circular?r+1:r}));var n=t.target.targetLinks,i=0;return n.forEach((function(t){i=t.circular?i+1:i})),!(r&gt;1||i&gt;1)}function A(t,e,r){return t.sort(E),t.forEach((function(n,i){var a,o,s=0;if(H(n,r)&amp;&amp;M(n))n.circularPathData.verticalBuffer=s+n.width/2;else{for(var l=0;l&lt;i;l++)if(a=t[i],o=t[l],!(a.source.column&lt;o.target.column||a.target.column&gt;o.source.column)){var c=t[l].circularPathData.verticalBuffer+t[l].width/2+e;s=c&gt;s?c:s}n.circularPathData.verticalBuffer=s+n.width/2}})),t}function S(t,r,i,a){var o=e.min(t.links,(function(t){return t.source.y0}));t.links.forEach((function(t){t.circular&amp;&amp;(t.circularPathData={})})),A(t.links.filter((function(t){return&quot;top&quot;==t.circularLinkType})),r,a),A(t.links.filter((function(t){return&quot;bottom&quot;==t.circularLinkType})),r,a),t.links.forEach((function(e){if(e.circular){if(e.circularPathData.arcRadius=e.width+10,e.circularPathData.leftNodeBuffer=5,e.circularPathData.rightNodeBuffer=5,e.circularPathData.sourceWidth=e.source.x1-e.source.x0,e.circularPathData.sourceX=e.source.x0+e.circularPathData.sourceWidth,e.circularPathData.targetX=e.target.x0,e.circularPathData.sourceY=e.y0,e.circularPathData.targetY=e.y1,H(e,a)&amp;&amp;M(e))e.circularPathData.leftSmallArcRadius=10+e.width/2,e.circularPathData.leftLargeArcRadius=10+e.width/2,e.circularPathData.rightSmallArcRadius=10+e.width/2,e.circularPathData.rightLargeArcRadius=10+e.width/2,&quot;bottom&quot;==e.circularLinkType?(e.circularPathData.verticalFullExtent=e.source.y1+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=e.source.y0-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius);else{var s=e.source.column,l=e.circularLinkType,c=t.links.filter((function(t){return t.source.column==s&amp;&amp;t.circularLinkType==l}));&quot;bottom&quot;==e.circularLinkType?c.sort(L):c.sort(C);var u=0;c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&amp;&amp;(e.circularPathData.leftSmallArcRadius=10+e.width/2+u,e.circularPathData.leftLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),s=e.target.column,c=t.links.filter((function(t){return t.target.column==s&amp;&amp;t.circularLinkType==l})),&quot;bottom&quot;==e.circularLinkType?c.sort(P):c.sort(I),u=0,c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&amp;&amp;(e.circularPathData.rightSmallArcRadius=10+e.width/2+u,e.circularPathData.rightLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),&quot;bottom&quot;==e.circularLinkType?(e.circularPathData.verticalFullExtent=Math.max(i,e.source.y1,e.target.y1)+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=o-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius)}e.circularPathData.leftInnerExtent=e.circularPathData.sourceX+e.circularPathData.leftNodeBuffer,e.circularPathData.rightInnerExtent=e.circularPathData.targetX-e.circularPathData.rightNodeBuffer,e.circularPathData.leftFullExtent=e.circularPathData.sourceX+e.circularPathData.leftLargeArcRadius+e.circularPathData.leftNodeBuffer,e.circularPathData.rightFullExtent=e.circularPathData.targetX-e.circularPathData.rightLargeArcRadius-e.circularPathData.rightNodeBuffer}if(e.circular)e.path=function(t){var e=&quot;&quot;;e=&quot;top&quot;==t.circularLinkType?&quot;M&quot;+t.circularPathData.sourceX+&quot; &quot;+t.circularPathData.sourceY+&quot; L&quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.sourceY+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftSmallArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.leftFullExtent+&quot; &quot;+(t.circularPathData.sourceY-t.circularPathData.leftSmallArcRadius)+&quot; L&quot;+t.circularPathData.leftFullExtent+&quot; &quot;+t.circularPathData.verticalLeftInnerExtent+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftLargeArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; L&quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightLargeArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.rightFullExtent+&quot; &quot;+t.circularPathData.verticalRightInnerExtent+&quot; L&quot;+t.circularPathData.rightFullExtent+&quot; &quot;+(t.circularPathData.targetY-t.circularPathData.rightSmallArcRadius)+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightSmallArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.targetY+&quot; L&quot;+t.circularPathData.targetX+&quot; &quot;+t.circularPathData.targetY:&quot;M&quot;+t.circularPathData.sourceX+&quot; &quot;+t.circularPathData.sourceY+&quot; L&quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.sourceY+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftSmallArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.leftFullExtent+&quot; &quot;+(t.circularPathData.sourceY+t.circularPathData.leftSmallArcRadius)+&quot; L&quot;+t.circularPathData.leftFullExtent+&quot; &quot;+t.circularPathData.verticalLeftInnerExtent+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftLargeArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; L&quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightLargeArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.rightFullExtent+&quot; &quot;+t.circularPathData.verticalRightInnerExtent+&quot; L&quot;+t.circularPathData.rightFullExtent+&quot; &quot;+(t.circularPathData.targetY+t.circularPathData.rightSmallArcRadius)+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightSmallArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.targetY+&quot; L&quot;+t.circularPathData.targetX+&quot; &quot;+t.circularPathData.targetY;return e}(e);else{var f=n.linkHorizontal().source((function(t){return[t.source.x0+(t.source.x1-t.source.x0),t.y0]})).target((function(t){return[t.target.x0,t.y1]}));e.path=f(e)}}))}function E(t,e){return z(t)==z(e)?&quot;bottom&quot;==t.circularLinkType?L(t,e):C(t,e):z(e)-z(t)}function C(t,e){return t.y0-e.y0}function L(t,e){return e.y0-t.y0}function I(t,e){return t.y1-e.y1}function P(t,e){return e.y1-t.y1}function z(t){return t.target.column-t.source.column}function O(t){return t.target.x0-t.source.x1}function D(t,e){var r=T(t),n=O(e)/Math.tan(r);return&quot;up&quot;==q(t)?t.y1+n:t.y1-n}function R(t,e){var r=T(t),n=O(e)/Math.tan(r);return&quot;up&quot;==q(t)?t.y1-n:t.y1+n}function F(t,e,r,n){t.links.forEach((function(i){if(!i.circular&amp;&amp;i.target.column-i.source.column&gt;1){var a=i.source.column+1,o=i.target.column-1,s=1,l=o-a+1;for(s=1;a&lt;=o;a++,s++)t.nodes.forEach((function(o){if(o.column==a){var c,u=s/(l+1),f=Math.pow(1-u,3),h=3*u*Math.pow(1-u,2),p=3*Math.pow(u,2)*(1-u),d=Math.pow(u,3),g=f*i.y0+h*i.y0+p*i.y1+d*i.y1,m=g-i.width/2,v=g+i.width/2;m&gt;o.y0&amp;&amp;m&lt;o.y1?(c=o.y1-m+10,c=&quot;bottom&quot;==o.circularLinkType?c:-c,o=N(o,c,e,r),t.nodes.forEach((function(t){b(t,n)!=b(o,n)&amp;&amp;t.column==o.column&amp;&amp;B(o,t)&amp;&amp;N(t,c,e,r)}))):(v&gt;o.y0&amp;&amp;v&lt;o.y1||m&lt;o.y0&amp;&amp;v&gt;o.y1)&amp;&amp;(c=v-o.y0+10,o=N(o,c,e,r),t.nodes.forEach((function(t){b(t,n)!=b(o,n)&amp;&amp;t.column==o.column&amp;&amp;t.y0&lt;o.y1&amp;&amp;t.y1&gt;o.y1&amp;&amp;N(t,c,e,r)})))}}))}}))}function B(t,e){return t.y0&gt;e.y0&amp;&amp;t.y0&lt;e.y1||(t.y1&gt;e.y0&amp;&amp;t.y1&lt;e.y1||t.y0&lt;e.y0&amp;&amp;t.y1&gt;e.y1)}function N(t,e,r,n){return t.y0+e&gt;=r&amp;&amp;t.y1+e&lt;=n&amp;&amp;(t.y0=t.y0+e,t.y1=t.y1+e,t.targetLinks.forEach((function(t){t.y1=t.y1+e})),t.sourceLinks.forEach((function(t){t.y0=t.y0+e}))),t}function j(t,e,r,n){t.nodes.forEach((function(i){n&amp;&amp;i.y+(i.y1-i.y0)&gt;e&amp;&amp;(i.y=i.y-(i.y+(i.y1-i.y0)-e));var a=t.links.filter((function(t){return b(t.source,r)==b(i,r)})),o=a.length;o&gt;1&amp;&amp;a.sort((function(t,e){if(!t.circular&amp;&amp;!e.circular){if(t.target.column==e.target.column)return t.y1-e.y1;if(!V(t,e))return t.y1-e.y1;if(t.target.column&gt;e.target.column){var r=R(e,t);return t.y1-r}if(e.target.column&gt;t.target.column)return R(t,e)-e.y1}return t.circular&amp;&amp;!e.circular?&quot;top&quot;==t.circularLinkType?-1:1:e.circular&amp;&amp;!t.circular?&quot;top&quot;==e.circularLinkType?1:-1:t.circular&amp;&amp;e.circular?t.circularLinkType===e.circularLinkType&amp;&amp;&quot;top&quot;==t.circularLinkType?t.target.column===e.target.column?t.target.y1-e.target.y1:e.target.column-t.target.column:t.circularLinkType===e.circularLinkType&amp;&amp;&quot;bottom&quot;==t.circularLinkType?t.target.column===e.target.column?e.target.y1-t.target.y1:t.target.column-e.target.column:&quot;top&quot;==t.circularLinkType?-1:1:void 0}));var s=i.y0;a.forEach((function(t){t.y0=s+t.width/2,s+=t.width})),a.forEach((function(t,e){if(&quot;bottom&quot;==t.circularLinkType){for(var r=e+1,n=0;r&lt;o;r++)n+=a[r].width;t.y0=i.y1-n-t.width/2}}))}))}function U(t,e,r){t.nodes.forEach((function(e){var n=t.links.filter((function(t){return b(t.target,r)==b(e,r)})),i=n.length;i&gt;1&amp;&amp;n.sort((function(t,e){if(!t.circular&amp;&amp;!e.circular){if(t.source.column==e.source.column)return t.y0-e.y0;if(!V(t,e))return t.y0-e.y0;if(e.source.column&lt;t.source.column){var r=D(e,t);return t.y0-r}if(t.source.column&lt;e.source.column)return D(t,e)-e.y0}return t.circular&amp;&amp;!e.circular?&quot;top&quot;==t.circularLinkType?-1:1:e.circular&amp;&amp;!t.circular?&quot;top&quot;==e.circularLinkType?1:-1:t.circular&amp;&amp;e.circular?t.circularLinkType===e.circularLinkType&amp;&amp;&quot;top&quot;==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:t.source.column-e.source.column:t.circularLinkType===e.circularLinkType&amp;&amp;&quot;bottom&quot;==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:e.source.column-t.source.column:&quot;top&quot;==t.circularLinkType?-1:1:void 0}));var a=e.y0;n.forEach((function(t){t.y1=a+t.width/2,a+=t.width})),n.forEach((function(t,r){if(&quot;bottom&quot;==t.circularLinkType){for(var a=r+1,o=0;a&lt;i;a++)o+=n[a].width;t.y1=e.y1-o-t.width/2}}))}))}function V(t,e){return q(t)==q(e)}function q(t){return t.y0-t.y1&gt;0?&quot;up&quot;:&quot;down&quot;}function H(t,e){return b(t.source,e)==b(t.target,e)}function G(t,r,n){var i=t.nodes,a=t.links,o=!1,s=!1;if(a.forEach((function(t){&quot;top&quot;==t.circularLinkType?o=!0:&quot;bottom&quot;==t.circularLinkType&amp;&amp;(s=!0)})),0==o||0==s){var l=e.min(i,(function(t){return t.y0})),c=(n-r)/(e.max(i,(function(t){return t.y1}))-l);i.forEach((function(t){var e=(t.y1-t.y0)*c;t.y0=(t.y0-l)*c,t.y1=t.y0+e})),a.forEach((function(t){t.y0=(t.y0-l)*c,t.y1=(t.y1-l)*c,t.width=t.width*c}))}}t.sankeyCircular=function(){var t,n,i=0,a=0,b=1,T=1,M=24,A=m,E=o,C=v,L=y,I=32,P=2,z=null;function O(){var t={nodes:C.apply(null,arguments),links:L.apply(null,arguments)};D(t),_(t,A,z),R(t),B(t),w(t,A),N(t,I,A),V(t);for(var e=4,r=0;r&lt;e;r++)j(t,T,A),U(t,T,A),F(t,a,T,A),j(t,T,A),U(t,T,A);return G(t,a,T),S(t,P,T,A),t}function D(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,A);return t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;&quot;object&quot;!==(&quot;undefined&quot;==typeof n?&quot;undefined&quot;:l(n))&amp;&amp;(n=t.source=x(e,n)),&quot;object&quot;!==(&quot;undefined&quot;==typeof i?&quot;undefined&quot;:l(i))&amp;&amp;(i=t.target=x(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)})),t}function R(t){t.nodes.forEach((function(t){t.partOfCycle=!1,t.value=Math.max(e.sum(t.sourceLinks,h),e.sum(t.targetLinks,h)),t.sourceLinks.forEach((function(e){e.circular&amp;&amp;(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)})),t.targetLinks.forEach((function(e){e.circular&amp;&amp;(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)}))}))}function B(t){var e,r,n;for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.depth=n,t.sourceLinks.forEach((function(t){r.indexOf(t.target)&lt;0&amp;&amp;!t.circular&amp;&amp;r.push(t.target)}))}));for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.height=n,t.targetLinks.forEach((function(t){r.indexOf(t.source)&lt;0&amp;&amp;!t.circular&amp;&amp;r.push(t.source)}))}));t.nodes.forEach((function(t){t.column=Math.floor(E.call(null,t,n))}))}function N(o,s,l){var c=r.nest().key((function(t){return t.column})).sortKeys(e.ascending).entries(o.nodes).map((function(t){return t.values}));!function(r){if(n){var s=1/0;c.forEach((function(t){var e=T*n/(t.length+1);s=e&lt;s?e:s})),t=s}var l=e.min(c,(function(r){return(T-a-(r.length-1)*t)/e.sum(r,h)}));l*=.3,o.links.forEach((function(t){t.width=t.value*l}));var u=function(t){var r=0,n=0,i=0,a=0,o=e.max(t.nodes,(function(t){return t.column}));return t.links.forEach((function(t){t.circular&amp;&amp;(&quot;top&quot;==t.circularLinkType?r+=t.width:n+=t.width,0==t.target.column&amp;&amp;(a+=t.width),t.source.column==o&amp;&amp;(i+=t.width))})),{top:r=r&gt;0?r+25+10:r,bottom:n=n&gt;0?n+25+10:n,left:a=a&gt;0?a+25+10:a,right:i=i&gt;0?i+25+10:i}}(o),f=function(t,r){var n=e.max(t.nodes,(function(t){return t.column})),o=b-i,s=T-a,l=o/(o+r.right+r.left),c=s/(s+r.top+r.bottom);return i=i*l+r.left,b=0==r.right?b:b*l,a=a*c+r.top,T*=c,t.nodes.forEach((function(t){t.x0=i+t.column*((b-i-M)/n),t.x1=t.x0+M})),c}(o,u);l*=f,o.links.forEach((function(t){t.width=t.value*l})),c.forEach((function(t){var e=t.length;t.forEach((function(t,n){t.depth==c.length-1&amp;&amp;1==e||0==t.depth&amp;&amp;1==e?(t.y0=T/2-t.value*l,t.y1=t.y0+t.value*l):t.partOfCycle?0==k(t,r)?(t.y0=T/2+n,t.y1=t.y0+t.value*l):&quot;top&quot;==t.circularLinkType?(t.y0=a+n,t.y1=t.y0+t.value*l):(t.y0=T-t.value*l-n,t.y1=t.y0+t.value*l):0==u.top||0==u.bottom?(t.y0=(T-a)/e*n,t.y1=t.y0+t.value*l):(t.y0=(T-a)/2-e/2+n,t.y1=t.y0+t.value*l)}))}))}(l),y();for(var u=1,m=s;m&gt;0;--m)v(u*=.99,l),y();function v(t,r){var n=c.length;c.forEach((function(i){var a=i.length,o=i[0].depth;i.forEach((function(i){var s;if(i.sourceLinks.length||i.targetLinks.length)if(i.partOfCycle&amp;&amp;k(i,r)&gt;0);else if(0==o&amp;&amp;1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else if(o==n-1&amp;&amp;1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else{var l=e.mean(i.sourceLinks,g),c=e.mean(i.targetLinks,d),u=((l&amp;&amp;c?(l+c)/2:l||c)-p(i))*t;i.y0+=u,i.y1+=u}}))}))}function y(){c.forEach((function(e){var r,n,i,o=a,s=e.length;for(e.sort(f),i=0;i&lt;s;++i)(n=o-(r=e[i]).y0)&gt;0&amp;&amp;(r.y0+=n,r.y1+=n),o=r.y1+t;if((n=o-t-T)&gt;0)for(o=r.y0-=n,r.y1-=n,i=s-2;i&gt;=0;--i)(n=(r=e[i]).y1+t-o)&gt;0&amp;&amp;(r.y0-=n,r.y1-=n),o=r.y0}))}}function V(t){t.nodes.forEach((function(t){t.sourceLinks.sort(u),t.targetLinks.sort(c)})),t.nodes.forEach((function(t){var e=t.y0,r=e,n=t.y1,i=n;t.sourceLinks.forEach((function(t){t.circular?(t.y0=n-t.width/2,n-=t.width):(t.y0=e+t.width/2,e+=t.width)})),t.targetLinks.forEach((function(t){t.circular?(t.y1=i-t.width/2,i-=t.width):(t.y1=r+t.width/2,r+=t.width)}))}))}return O.nodeId=function(t){return arguments.length?(A=&quot;function&quot;==typeof t?t:s(t),O):A},O.nodeAlign=function(t){return arguments.length?(E=&quot;function&quot;==typeof t?t:s(t),O):E},O.nodeWidth=function(t){return arguments.length?(M=+t,O):M},O.nodePadding=function(e){return arguments.length?(t=+e,O):t},O.nodes=function(t){return arguments.length?(C=&quot;function&quot;==typeof t?t:s(t),O):C},O.links=function(t){return arguments.length?(L=&quot;function&quot;==typeof t?t:s(t),O):L},O.size=function(t){return arguments.length?(i=a=0,b=+t[0],T=+t[1],O):[b-i,T-a]},O.extent=function(t){return arguments.length?(i=+t[0][0],b=+t[1][0],a=+t[0][1],T=+t[1][1],O):[[i,a],[b,T]]},O.iterations=function(t){return arguments.length?(I=+t,O):I},O.circularLinkGap=function(t){return arguments.length?(P=+t,O):P},O.nodePaddingRatio=function(t){return arguments.length?(n=+t,O):n},O.sortNodes=function(t){return arguments.length?(z=t,O):z},O.update=function(t){return w(t,A),V(t),t.links.forEach((function(t){t.circular&amp;&amp;(t.circularLinkType=t.y0+t.y1&lt;T?&quot;top&quot;:&quot;bottom&quot;,t.source.circularLinkType=t.circularLinkType,t.target.circularLinkType=t.circularLinkType)})),j(t,T,A,!1),U(t,T,A),S(t,P,T,A),t},O},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,a)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=o,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:156,&quot;d3-collection&quot;:157,&quot;d3-shape&quot;:165,&quot;elementary-circuits-directed-graph&quot;:179}],56:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-array&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-shape&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3)}(this,(function(t,e,r,n){&quot;use strict&quot;;function i(t){return t.target.depth}function a(t,e){return t.sourceLinks.length?t.depth:e-1}function o(t){return function(){return t}}function s(t,e){return c(t.source,e.source)||t.index-e.index}function l(t,e){return c(t.target,e.target)||t.index-e.index}function c(t,e){return t.y0-e.y0}function u(t){return t.value}function f(t){return(t.y0+t.y1)/2}function h(t){return f(t.source)*t.value}function p(t){return f(t.target)*t.value}function d(t){return t.index}function g(t){return t.nodes}function m(t){return t.links}function v(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function y(t){return[t.source.x1,t.y0]}function x(t){return[t.target.x0,t.y1]}t.sankey=function(){var t=0,n=0,i=1,y=1,x=24,b=8,_=d,w=a,T=g,k=m,M=32;function A(){var t={nodes:T.apply(null,arguments),links:k.apply(null,arguments)};return S(t),E(t),C(t),L(t),I(t),t}function S(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,_);t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;&quot;object&quot;!=typeof n&amp;&amp;(n=t.source=v(e,n)),&quot;object&quot;!=typeof i&amp;&amp;(i=t.target=v(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)}))}function E(t){t.nodes.forEach((function(t){t.value=Math.max(e.sum(t.sourceLinks,u),e.sum(t.targetLinks,u))}))}function C(e){var r,n,a;for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.depth=a,t.sourceLinks.forEach((function(t){n.indexOf(t.target)&lt;0&amp;&amp;n.push(t.target)}))}));for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.height=a,t.targetLinks.forEach((function(t){n.indexOf(t.source)&lt;0&amp;&amp;n.push(t.source)}))}));var o=(i-t-x)/(a-1);e.nodes.forEach((function(e){e.x1=(e.x0=t+Math.max(0,Math.min(a-1,Math.floor(w.call(null,e,a))))*o)+x}))}function L(t){var i=r.nest().key((function(t){return t.x0})).sortKeys(e.ascending).entries(t.nodes).map((function(t){return t.values}));!function(){var r=e.max(i,(function(t){return t.length})),a=2/3*(y-n)/(r-1);b&gt;a&amp;&amp;(b=a);var o=e.min(i,(function(t){return(y-n-(t.length-1)*b)/e.sum(t,u)}));i.forEach((function(t){t.forEach((function(t,e){t.y1=(t.y0=e)+t.value*o}))})),t.links.forEach((function(t){t.width=t.value*o}))}(),d();for(var a=1,o=M;o&gt;0;--o)l(a*=.99),d(),s(a),d();function s(t){i.forEach((function(r){r.forEach((function(r){if(r.targetLinks.length){var n=(e.sum(r.targetLinks,h)/e.sum(r.targetLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function l(t){i.slice().reverse().forEach((function(r){r.forEach((function(r){if(r.sourceLinks.length){var n=(e.sum(r.sourceLinks,p)/e.sum(r.sourceLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function d(){i.forEach((function(t){var e,r,i,a=n,o=t.length;for(t.sort(c),i=0;i&lt;o;++i)(r=a-(e=t[i]).y0)&gt;0&amp;&amp;(e.y0+=r,e.y1+=r),a=e.y1+b;if((r=a-b-y)&gt;0)for(a=e.y0-=r,e.y1-=r,i=o-2;i&gt;=0;--i)(r=(e=t[i]).y1+b-a)&gt;0&amp;&amp;(e.y0-=r,e.y1-=r),a=e.y0}))}}function I(t){t.nodes.forEach((function(t){t.sourceLinks.sort(l),t.targetLinks.sort(s)})),t.nodes.forEach((function(t){var e=t.y0,r=e;t.sourceLinks.forEach((function(t){t.y0=e+t.width/2,e+=t.width})),t.targetLinks.forEach((function(t){t.y1=r+t.width/2,r+=t.width}))}))}return A.update=function(t){return I(t),t},A.nodeId=function(t){return arguments.length?(_=&quot;function&quot;==typeof t?t:o(t),A):_},A.nodeAlign=function(t){return arguments.length?(w=&quot;function&quot;==typeof t?t:o(t),A):w},A.nodeWidth=function(t){return arguments.length?(x=+t,A):x},A.nodePadding=function(t){return arguments.length?(b=+t,A):b},A.nodes=function(t){return arguments.length?(T=&quot;function&quot;==typeof t?t:o(t),A):T},A.links=function(t){return arguments.length?(k=&quot;function&quot;==typeof t?t:o(t),A):k},A.size=function(e){return arguments.length?(t=n=0,i=+e[0],y=+e[1],A):[i-t,y-n]},A.extent=function(e){return arguments.length?(t=+e[0][0],i=+e[1][0],n=+e[0][1],y=+e[1][1],A):[[t,n],[i,y]]},A.iterations=function(t){return arguments.length?(M=+t,A):M},A},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,i)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=a,t.sankeyLinkHorizontal=function(){return n.linkHorizontal().source(y).target(x)},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:156,&quot;d3-collection&quot;:157,&quot;d3-shape&quot;:165}],57:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./quad&quot;)},{&quot;./quad&quot;:58}],58:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;clamp&quot;),a=t(&quot;parse-rect&quot;),o=t(&quot;array-bounds&quot;),s=t(&quot;pick-by-alias&quot;),l=t(&quot;defined&quot;),c=t(&quot;flatten-vertex-data&quot;),u=t(&quot;is-obj&quot;),f=t(&quot;dtype&quot;),h=t(&quot;math-log2&quot;);function p(t,e){for(var r=e[0],n=e[1],a=1/(e[2]-r),o=1/(e[3]-n),s=new Array(t.length),l=0,c=t.length/2;l&lt;c;l++)s[2*l]=i((t[2*l]-r)*a,0,1),s[2*l+1]=i((t[2*l+1]-n)*o,0,1);return s}e.exports=function(t,e){e||(e={}),t=c(t,&quot;float64&quot;),e=s(e,{bounds:&quot;range bounds dataBox databox&quot;,maxDepth:&quot;depth maxDepth maxdepth level maxLevel maxlevel levels&quot;,dtype:&quot;type dtype format out dst output destination&quot;});var r=l(e.maxDepth,255),i=l(e.bounds,o(t,2));i[0]===i[2]&amp;&amp;i[2]++,i[1]===i[3]&amp;&amp;i[3]++;var d,g=p(t,i),m=t.length&gt;&gt;&gt;1;e.dtype||(e.dtype=&quot;array&quot;),&quot;string&quot;==typeof e.dtype?d=new(f(e.dtype))(m):e.dtype&amp;&amp;(d=e.dtype,Array.isArray(d)&amp;&amp;(d.length=m));for(var v=0;v&lt;m;++v)d[v]=v;var y=[],x=[],b=[],_=[];!function t(e,n,i,a,o,s){if(!a.length)return null;var l=y[o]||(y[o]=[]),c=b[o]||(b[o]=[]),u=x[o]||(x[o]=[]),f=l.length;if(++o&gt;r||s&gt;1073741824){for(var h=0;h&lt;a.length;h++)l.push(a[h]),c.push(s),u.push(null,null,null,null);return f}if(l.push(a[0]),c.push(s),a.length&lt;=1)return u.push(null,null,null,null),f;for(var p=.5*i,d=e+p,m=n+p,v=[],_=[],w=[],T=[],k=1,M=a.length;k&lt;M;k++){var A=a[k],S=g[2*A],E=g[2*A+1];S&lt;d?E&lt;m?v.push(A):_.push(A):E&lt;m?w.push(A):T.push(A)}return s&lt;&lt;=2,u.push(t(e,n,p,v,o,s),t(e,m,p,_,o,s+1),t(d,n,p,w,o,s+2),t(d,m,p,T,o,s+3)),f}(0,0,1,d,0,1);for(var w=0,T=0;T&lt;y.length;T++){var k=y[T];if(d.set)d.set(k,w);else for(var M=0,A=k.length;M&lt;A;M++)d[M+w]=k[M];var S=w+y[T].length;_[T]=[w,S],w=S}return d.range=function(){var e,r=[],n=arguments.length;for(;n--;)r[n]=arguments[n];if(u(r[r.length-1])){var o=r.pop();r.length||null==o.x&amp;&amp;null==o.l&amp;&amp;null==o.left||(r=[o],e={}),e=s(o,{level:&quot;level maxLevel&quot;,d:&quot;d diam diameter r radius px pxSize pixel pixelSize maxD size minSize&quot;,lod:&quot;lod details ranges offsets&quot;})}else e={};r.length||(r=i);var c=a.apply(void 0,r),f=[Math.min(c.x,c.x+c.width),Math.min(c.y,c.y+c.height),Math.max(c.x,c.x+c.width),Math.max(c.y,c.y+c.height)],d=f[0],g=f[1],m=f[2],v=f[3],b=p([d,g,m,v],i),_=b[0],w=b[1],T=b[2],k=b[3],M=l(e.level,y.length);if(null!=e.d){var A;&quot;number&quot;==typeof e.d?A=[e.d,e.d]:e.d.length&amp;&amp;(A=e.d),M=Math.min(Math.max(Math.ceil(-h(Math.abs(A[0])/(i[2]-i[0]))),Math.ceil(-h(Math.abs(A[1])/(i[3]-i[1])))),M)}if(M=Math.min(M,y.length),e.lod)return E(_,w,T,k,M);var S=[];function C(e,r,n,i,a,o){if(null!==a&amp;&amp;null!==o&amp;&amp;!(_&gt;e+n||w&gt;r+n||T&lt;e||k&lt;r||i&gt;=M||a===o)){var s=y[i];void 0===o&amp;&amp;(o=s.length);for(var l=a;l&lt;o;l++){var c=s[l],u=t[2*c],f=t[2*c+1];u&gt;=d&amp;&amp;u&lt;=m&amp;&amp;f&gt;=g&amp;&amp;f&lt;=v&amp;&amp;S.push(c)}var h=x[i],p=h[4*a+0],b=h[4*a+1],A=h[4*a+2],E=h[4*a+3],I=L(h,a+1),P=.5*n,z=i+1;C(e,r,P,z,p,b||A||E||I),C(e,r+P,P,z,b,A||E||I),C(e+P,r,P,z,A,E||I),C(e+P,r+P,P,z,E,I)}}function L(t,e){for(var r=null,n=0;null===r;)if(r=t[4*e+n],++n&gt;t.length)return null;return r}return C(0,0,1,0,0,1),S},d;function E(t,e,r,i,a){for(var o=[],s=0;s&lt;a;s++){var l=b[s],c=_[s][0],u=C(t,e,s),f=C(r,i,s),h=n.ge(l,u),p=n.gt(l,f,h,l.length-1);o[s]=[h+c,p+c]}return o}function C(t,e,r){for(var n=1,i=.5,a=.5,o=.5,s=0;s&lt;r;s++)n&lt;&lt;=2,n+=t&lt;i?e&lt;a?0:1:e&lt;a?2:3,o*=.5,i+=t&lt;i?-o:o,a+=e&lt;a?-o:o;return n}}},{&quot;array-bounds&quot;:70,&quot;binary-search-bounds&quot;:96,clamp:120,defined:170,dtype:175,&quot;flatten-vertex-data&quot;:244,&quot;is-obj&quot;:468,&quot;math-log2&quot;:479,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511}],59:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;);function i(t){var e=0;if(t&amp;&amp;t.length&gt;0){e+=Math.abs(a(t[0]));for(var r=1;r&lt;t.length;r++)e-=Math.abs(a(t[r]))}return e}function a(t){var e,r,n,i,a,s,l=0,c=t.length;if(c&gt;2){for(s=0;s&lt;c;s++)s===c-2?(n=c-2,i=c-1,a=0):s===c-1?(n=c-1,i=0,a=1):(n=s,i=s+1,a=s+2),e=t[n],r=t[i],l+=(o(t[a][0])-o(e[0]))*Math.sin(o(r[1]));l=6378137*l*6378137/2}return l}function o(t){return t*Math.PI/180}r.default=function(t){return n.geomReduce(t,(function(t,e){return t+function(t){var e,r=0;switch(t.type){case&quot;Polygon&quot;:return i(t.coordinates);case&quot;MultiPolygon&quot;:for(e=0;e&lt;t.coordinates.length;e++)r+=i(t.coordinates[e]);return r;case&quot;Point&quot;:case&quot;MultiPoint&quot;:case&quot;LineString&quot;:case&quot;MultiLineString&quot;:return 0}return 0}(e)}),0)}},{&quot;@turf/meta&quot;:63}],60:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;);r.default=function(t){var e=[1/0,1/0,-1/0,-1/0];return n.coordEach(t,(function(t){e[0]&gt;t[0]&amp;&amp;(e[0]=t[0]),e[1]&gt;t[1]&amp;&amp;(e[1]=t[1]),e[2]&lt;t[0]&amp;&amp;(e[2]=t[0]),e[3]&lt;t[1]&amp;&amp;(e[3]=t[1])})),e}},{&quot;@turf/meta&quot;:63}],61:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;),i=t(&quot;@turf/helpers&quot;);r.default=function(t,e){void 0===e&amp;&amp;(e={});var r=0,a=0,o=0;return n.coordEach(t,(function(t){r+=t[0],a+=t[1],o++})),i.point([r/o,a/o],e.properties)}},{&quot;@turf/helpers&quot;:62,&quot;@turf/meta&quot;:63}],62:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){void 0===r&amp;&amp;(r={});var n={type:&quot;Feature&quot;};return(0===r.id||r.id)&amp;&amp;(n.id=r.id),r.bbox&amp;&amp;(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function i(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;Point&quot;,coordinates:t},e,r)}function a(t,e,r){void 0===r&amp;&amp;(r={});for(var i=0,a=t;i&lt;a.length;i++){var o=a[i];if(o.length&lt;4)throw new Error(&quot;Each LinearRing of a Polygon must have 4 or more Positions.&quot;);for(var s=0;s&lt;o[o.length-1].length;s++)if(o[o.length-1][s]!==o[0][s])throw new Error(&quot;First and last Position are not equivalent.&quot;)}return n({type:&quot;Polygon&quot;,coordinates:t},e,r)}function o(t,e,r){if(void 0===r&amp;&amp;(r={}),t.length&lt;2)throw new Error(&quot;coordinates must be an array of two or more positions&quot;);return n({type:&quot;LineString&quot;,coordinates:t},e,r)}function s(t,e){void 0===e&amp;&amp;(e={});var r={type:&quot;FeatureCollection&quot;};return e.id&amp;&amp;(r.id=e.id),e.bbox&amp;&amp;(r.bbox=e.bbox),r.features=t,r}function l(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiLineString&quot;,coordinates:t},e,r)}function c(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPoint&quot;,coordinates:t},e,r)}function u(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPolygon&quot;,coordinates:t},e,r)}function f(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t*n}function h(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t/n}function p(t){return 180*(t%(2*Math.PI))/Math.PI}function d(t){return!isNaN(t)&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)&amp;&amp;!/^\s*$/.test(t)}Object.defineProperty(r,&quot;__esModule&quot;,{value:!0}),r.earthRadius=6371008.8,r.factors={centimeters:100*r.earthRadius,centimetres:100*r.earthRadius,degrees:r.earthRadius/111325,feet:3.28084*r.earthRadius,inches:39.37*r.earthRadius,kilometers:r.earthRadius/1e3,kilometres:r.earthRadius/1e3,meters:r.earthRadius,metres:r.earthRadius,miles:r.earthRadius/1609.344,millimeters:1e3*r.earthRadius,millimetres:1e3*r.earthRadius,nauticalmiles:r.earthRadius/1852,radians:1,yards:r.earthRadius/1.0936},r.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/r.earthRadius,yards:1/1.0936},r.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},r.feature=n,r.geometry=function(t,e,r){switch(void 0===r&amp;&amp;(r={}),t){case&quot;Point&quot;:return i(e).geometry;case&quot;LineString&quot;:return o(e).geometry;case&quot;Polygon&quot;:return a(e).geometry;case&quot;MultiPoint&quot;:return c(e).geometry;case&quot;MultiLineString&quot;:return l(e).geometry;case&quot;MultiPolygon&quot;:return u(e).geometry;default:throw new Error(t+&quot; is invalid&quot;)}},r.point=i,r.points=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return i(t,e)})),r)},r.polygon=a,r.polygons=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return a(t,e)})),r)},r.lineString=o,r.lineStrings=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return o(t,e)})),r)},r.featureCollection=s,r.multiLineString=l,r.multiPoint=c,r.multiPolygon=u,r.geometryCollection=function(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;GeometryCollection&quot;,geometries:t},e,r)},r.round=function(t,e){if(void 0===e&amp;&amp;(e=0),e&amp;&amp;!(e&gt;=0))throw new Error(&quot;precision must be a positive number&quot;);var r=Math.pow(10,e||0);return Math.round(t*r)/r},r.radiansToLength=f,r.lengthToRadians=h,r.lengthToDegrees=function(t,e){return p(h(t,e))},r.bearingToAzimuth=function(t){var e=t%360;return e&lt;0&amp;&amp;(e+=360),e},r.radiansToDegrees=p,r.degreesToRadians=function(t){return t%360*Math.PI/180},r.convertLength=function(t,e,r){if(void 0===e&amp;&amp;(e=&quot;kilometers&quot;),void 0===r&amp;&amp;(r=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;length must be a positive number&quot;);return f(h(t,e),r)},r.convertArea=function(t,e,n){if(void 0===e&amp;&amp;(e=&quot;meters&quot;),void 0===n&amp;&amp;(n=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;area must be a positive number&quot;);var i=r.areaFactors[e];if(!i)throw new Error(&quot;invalid original units&quot;);var a=r.areaFactors[n];if(!a)throw new Error(&quot;invalid final units&quot;);return t/i*a},r.isNumber=d,r.isObject=function(t){return!!t&amp;&amp;t.constructor===Object},r.validateBBox=function(t){if(!t)throw new Error(&quot;bbox is required&quot;);if(!Array.isArray(t))throw new Error(&quot;bbox must be an Array&quot;);if(4!==t.length&amp;&amp;6!==t.length)throw new Error(&quot;bbox must be an Array of 4 or 6 numbers&quot;);t.forEach((function(t){if(!d(t))throw new Error(&quot;bbox must only contain numbers&quot;)}))},r.validateId=function(t){if(!t)throw new Error(&quot;id is required&quot;);if(-1===[&quot;string&quot;,&quot;number&quot;].indexOf(typeof t))throw new Error(&quot;id must be a number or a string&quot;)},r.radians2degrees=function(){throw new Error(&quot;method has been renamed to `radiansToDegrees`&quot;)},r.degrees2radians=function(){throw new Error(&quot;method has been renamed to `degreesToRadians`&quot;)},r.distanceToDegrees=function(){throw new Error(&quot;method has been renamed to `lengthToDegrees`&quot;)},r.distanceToRadians=function(){throw new Error(&quot;method has been renamed to `lengthToRadians`&quot;)},r.radiansToDistance=function(){throw new Error(&quot;method has been renamed to `radiansToLength`&quot;)},r.bearingToAngle=function(){throw new Error(&quot;method has been renamed to `bearingToAzimuth`&quot;)},r.convertDistance=function(){throw new Error(&quot;method has been renamed to `convertLength`&quot;)}},{}],63:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/helpers&quot;);function i(t,e,r){if(null!==t)for(var n,a,o,s,l,c,u,f,h=0,p=0,d=t.type,g=&quot;FeatureCollection&quot;===d,m=&quot;Feature&quot;===d,v=g?t.features.length:1,y=0;y&lt;v;y++){l=(f=!!(u=g?t.features[y].geometry:m?t.geometry:t)&amp;&amp;&quot;GeometryCollection&quot;===u.type)?u.geometries.length:1;for(var x=0;x&lt;l;x++){var b=0,_=0;if(null!==(s=f?u.geometries[x]:u)){c=s.coordinates;var w=s.type;switch(h=!r||&quot;Polygon&quot;!==w&amp;&amp;&quot;MultiPolygon&quot;!==w?0:1,w){case null:break;case&quot;Point&quot;:if(!1===e(c,p,y,b,_))return!1;p++,b++;break;case&quot;LineString&quot;:case&quot;MultiPoint&quot;:for(n=0;n&lt;c.length;n++){if(!1===e(c[n],p,y,b,_))return!1;p++,&quot;MultiPoint&quot;===w&amp;&amp;b++}&quot;LineString&quot;===w&amp;&amp;b++;break;case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:for(n=0;n&lt;c.length;n++){for(a=0;a&lt;c[n].length-h;a++){if(!1===e(c[n][a],p,y,b,_))return!1;p++}&quot;MultiLineString&quot;===w&amp;&amp;b++,&quot;Polygon&quot;===w&amp;&amp;_++}&quot;Polygon&quot;===w&amp;&amp;b++;break;case&quot;MultiPolygon&quot;:for(n=0;n&lt;c.length;n++){for(_=0,a=0;a&lt;c[n].length;a++){for(o=0;o&lt;c[n][a].length-h;o++){if(!1===e(c[n][a][o],p,y,b,_))return!1;p++}_++}b++}break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;s.geometries.length;n++)if(!1===i(s.geometries[n],e,r))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}}}}}function a(t,e){var r;switch(t.type){case&quot;FeatureCollection&quot;:for(r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r].properties,r);r++);break;case&quot;Feature&quot;:e(t.properties,0)}}function o(t,e){if(&quot;Feature&quot;===t.type)e(t,0);else if(&quot;FeatureCollection&quot;===t.type)for(var r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r],r);r++);}function s(t,e){var r,n,i,a,o,s,l,c,u,f,h=0,p=&quot;FeatureCollection&quot;===t.type,d=&quot;Feature&quot;===t.type,g=p?t.features.length:1;for(r=0;r&lt;g;r++){for(s=p?t.features[r].geometry:d?t.geometry:t,c=p?t.features[r].properties:d?t.properties:{},u=p?t.features[r].bbox:d?t.bbox:void 0,f=p?t.features[r].id:d?t.id:void 0,o=(l=!!s&amp;&amp;&quot;GeometryCollection&quot;===s.type)?s.geometries.length:1,i=0;i&lt;o;i++)if(null!==(a=l?s.geometries[i]:s))switch(a.type){case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;MultiPoint&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:if(!1===e(a,h,c,u,f))return!1;break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;a.geometries.length;n++)if(!1===e(a.geometries[n],h,c,u,f))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}else if(!1===e(null,h,c,u,f))return!1;h++}}function l(t,e){s(t,(function(t,r,i,a,o){var s,l=null===t?null:t.type;switch(l){case null:case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;Polygon&quot;:return!1!==e(n.feature(t,i,{bbox:a,id:o}),r,0)&amp;&amp;void 0}switch(l){case&quot;MultiPoint&quot;:s=&quot;Point&quot;;break;case&quot;MultiLineString&quot;:s=&quot;LineString&quot;;break;case&quot;MultiPolygon&quot;:s=&quot;Polygon&quot;}for(var c=0;c&lt;t.coordinates.length;c++){var u={type:s,coordinates:t.coordinates[c]};if(!1===e(n.feature(u,i),r,c))return!1}}))}function c(t,e){l(t,(function(t,r,a){var o=0;if(t.geometry){var s=t.geometry.type;if(&quot;Point&quot;!==s&amp;&amp;&quot;MultiPoint&quot;!==s){var l,c=0,u=0,f=0;return!1!==i(t,(function(i,s,h,p,d){if(void 0===l||r&gt;c||p&gt;u||d&gt;f)return l=i,c=r,u=p,f=d,void(o=0);var g=n.lineString([l,i],t.properties);if(!1===e(g,r,a,d,o))return!1;o++,l=i}))&amp;&amp;void 0}}}))}function u(t,e){if(!t)throw new Error(&quot;geojson is required&quot;);l(t,(function(t,r,i){if(null!==t.geometry){var a=t.geometry.type,o=t.geometry.coordinates;switch(a){case&quot;LineString&quot;:if(!1===e(t,r,i,0,0))return!1;break;case&quot;Polygon&quot;:for(var s=0;s&lt;o.length;s++)if(!1===e(n.lineString(o[s],t.properties),r,i,s))return!1}}}))}r.coordEach=i,r.coordReduce=function(t,e,r,n){var a=r;return i(t,(function(t,n,i,o,s){a=0===n&amp;&amp;void 0===r?t:e(a,t,n,i,o,s)}),n),a},r.propEach=a,r.propReduce=function(t,e,r){var n=r;return a(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.featureEach=o,r.featureReduce=function(t,e,r){var n=r;return o(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.coordAll=function(t){var e=[];return i(t,(function(t){e.push(t)})),e},r.geomEach=s,r.geomReduce=function(t,e,r){var n=r;return s(t,(function(t,i,a,o,s){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o,s)})),n},r.flattenEach=l,r.flattenReduce=function(t,e,r){var n=r;return l(t,(function(t,i,a){n=0===i&amp;&amp;0===a&amp;&amp;void 0===r?t:e(n,t,i,a)})),n},r.segmentEach=c,r.segmentReduce=function(t,e,r){var n=r,i=!1;return c(t,(function(t,a,o,s,l){n=!1===i&amp;&amp;void 0===r?t:e(n,t,a,o,s,l),i=!0})),n},r.lineEach=u,r.lineReduce=function(t,e,r){var n=r;return u(t,(function(t,i,a,o){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o)})),n},r.findSegment=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.segmentIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s-1),n.lineString([c[s],c[s+1]],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s-1),n.lineString([c[o][s],c[o][s+1]],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s-1),n.lineString([c[a][s],c[a][s+1]],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s-1),n.lineString([c[a][o][s],c[a][o][s+1]],l,e)}throw new Error(&quot;geojson is invalid&quot;)},r.findPoint=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.coordIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:return n.point(c,l,e);case&quot;MultiPoint&quot;:return a&lt;0&amp;&amp;(a=c.length+a),n.point(c[a],l,e);case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s),n.point(c[s],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s),n.point(c[o][s],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s),n.point(c[a][s],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s),n.point(c[a][o][s],l,e)}throw new Error(&quot;geojson is invalid&quot;)}},{&quot;@turf/helpers&quot;:62}],64:[function(t,e,r){&quot;use strict&quot;;var n=&quot;undefined&quot;==typeof WeakMap?t(&quot;weak-map&quot;):WeakMap,i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=new n;e.exports=function(t){var e=o.get(t),r=e&amp;&amp;(e._triangleBuffer.handle||e._triangleBuffer.buffer);if(!r||!t.isBuffer(r)){var n=i(t,new Float32Array([-1,-1,-1,4,4,-1]));(e=a(t,[{buffer:n,type:t.FLOAT,size:2}]))._triangleBuffer=n,o.set(t,e)}e.bind(),t.drawArrays(t.TRIANGLES,0,3),e.unbind()}},{&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358,&quot;weak-map&quot;:602}],65:[function(t,e,r){e.exports=function(t){var e=0,r=0,n=0,i=0;return t.map((function(t){var a=(t=t.slice())[0],o=a.toUpperCase();if(a!=o)switch(t[0]=o,a){case&quot;a&quot;:t[6]+=n,t[7]+=i;break;case&quot;v&quot;:t[1]+=i;break;case&quot;h&quot;:t[1]+=n;break;default:for(var s=1;s&lt;t.length;)t[s++]+=n,t[s++]+=i}switch(o){case&quot;Z&quot;:n=e,i=r;break;case&quot;H&quot;:n=t[1];break;case&quot;V&quot;:i=t[1];break;case&quot;M&quot;:n=e=t[1],i=r=t[2];break;default:n=t[t.length-2],i=t[t.length-1]}return t}))}},{}],66:[function(t,e,r){var n=t(&quot;pad-left&quot;);e.exports=function(t,e,r){e=&quot;number&quot;==typeof e?e:1,r=r||&quot;: &quot;;var i=t.split(/\r?\n/),a=String(i.length+e-1).length;return i.map((function(t,i){var o=i+e,s=String(o).length;return n(o,a-s)+r+t})).join(&quot;\n&quot;)}},{&quot;pad-left&quot;:502}],67:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[0];for(var r=t[0].length,n=[t[0]],a=[0],o=1;o&lt;e;++o)if(n.push(t[o]),i(n,r)){if(a.push(o),a.length===r+1)return a}else n.pop();return a};var n=t(&quot;robust-orientation&quot;);function i(t,e){for(var r=new Array(e+1),i=0;i&lt;t.length;++i)r[i]=t[i];for(i=0;i&lt;=t.length;++i){for(var a=t.length;a&lt;=e;++a){for(var o=new Array(e),s=0;s&lt;e;++s)o[s]=Math.pow(a+1-i,s);r[a]=o}if(n.apply(void 0,r))return!0}return!1}},{&quot;robust-orientation&quot;:548}],68:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return n(e).filter((function(r){for(var n=new Array(r.length),a=0;a&lt;r.length;++a)n[a]=e[r[a]];return i(n)*t&lt;1}))};var n=t(&quot;delaunay-triangulate&quot;),i=t(&quot;circumradius&quot;)},{circumradius:119,&quot;delaunay-triangulate&quot;:171}],69:[function(t,e,r){e.exports=function(t,e){return i(n(t,e))};var n=t(&quot;alpha-complex&quot;),i=t(&quot;simplicial-complex-boundary&quot;)},{&quot;alpha-complex&quot;:68,&quot;simplicial-complex-boundary&quot;:555}],70:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(!t||null==t.length)throw Error(&quot;Argument should be an array&quot;);e=null==e?1:Math.floor(e);for(var r=Array(2*e),n=0;n&lt;e;n++){for(var i=-1/0,a=1/0,o=n,s=t.length;o&lt;s;o+=e)t[o]&gt;i&amp;&amp;(i=t[o]),t[o]&lt;a&amp;&amp;(a=t[o]);r[n]=a,r[e+n]=i}return r}},{}],71:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;array-bounds&quot;);e.exports=function(t,e,r){if(!t||null==t.length)throw Error(&quot;Argument should be an array&quot;);null==e&amp;&amp;(e=1);null==r&amp;&amp;(r=n(t,e));for(var i=0;i&lt;e;i++){var a=r[e+i],o=r[i],s=i,l=t.length;if(a===1/0&amp;&amp;o===-1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===a?1:t[s]===o?0:.5;else if(a===1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===a?1:0;else if(o===-1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===o?0:1;else{var c=a-o;for(s=i;s&lt;l;s+=e)isNaN(t[s])||(t[s]=0===c?.5:(t[s]-o)/c)}}return t}},{&quot;array-bounds&quot;:70}],72:[function(t,e,r){e.exports=function(t,e){var r=&quot;number&quot;==typeof t,n=&quot;number&quot;==typeof e;r&amp;&amp;!n?(e=t,t=0):r||n||(t=0,e=0);var i=(e|=0)-(t|=0);if(i&lt;0)throw new Error(&quot;array length must be positive&quot;);for(var a=new Array(i),o=0,s=t;o&lt;i;o++,s++)a[o]=s;return a}},{}],73:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;object-assign&quot;);
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh &lt;feross@feross.org&gt; &lt;http://feross.org&gt;
 * @license  MIT
 */function i(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i&lt;a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r&lt;n?-1:n&lt;r?1:0}function a(t){return r.Buffer&amp;&amp;&quot;function&quot;==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var o=t(&quot;util/&quot;),s=Object.prototype.hasOwnProperty,l=Array.prototype.slice,c=&quot;foo&quot;===function(){}.name;function u(t){return Object.prototype.toString.call(t)}function f(t){return!a(t)&amp;&amp;(&quot;function&quot;==typeof r.ArrayBuffer&amp;&amp;(&quot;function&quot;==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&amp;&amp;(t instanceof DataView||!!(t.buffer&amp;&amp;t.buffer instanceof ArrayBuffer))))}var h=e.exports=y,p=/\s*function\s+([^\(\s]*)\s*/;function d(t){if(o.isFunction(t)){if(c)return t.name;var e=t.toString().match(p);return e&amp;&amp;e[1]}}function g(t,e){return&quot;string&quot;==typeof t?t.length&lt;e?t:t.slice(0,e):t}function m(t){if(c||!o.isFunction(t))return o.inspect(t);var e=d(t);return&quot;[Function&quot;+(e?&quot;: &quot;+e:&quot;&quot;)+&quot;]&quot;}function v(t,e,r,n,i){throw new h.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function y(t,e){t||v(t,!0,e,&quot;==&quot;,h.ok)}function x(t,e,r,n){if(t===e)return!0;if(a(t)&amp;&amp;a(e))return 0===i(t,e);if(o.isDate(t)&amp;&amp;o.isDate(e))return t.getTime()===e.getTime();if(o.isRegExp(t)&amp;&amp;o.isRegExp(e))return t.source===e.source&amp;&amp;t.global===e.global&amp;&amp;t.multiline===e.multiline&amp;&amp;t.lastIndex===e.lastIndex&amp;&amp;t.ignoreCase===e.ignoreCase;if(null!==t&amp;&amp;&quot;object&quot;==typeof t||null!==e&amp;&amp;&quot;object&quot;==typeof e){if(f(t)&amp;&amp;f(e)&amp;&amp;u(t)===u(e)&amp;&amp;!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(a(t)!==a(e))return!1;var s=(n=n||{actual:[],expected:[]}).actual.indexOf(t);return-1!==s&amp;&amp;s===n.expected.indexOf(e)||(n.actual.push(t),n.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(o.isPrimitive(t)||o.isPrimitive(e))return t===e;if(r&amp;&amp;Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=b(t),a=b(e);if(i&amp;&amp;!a||!i&amp;&amp;a)return!1;if(i)return t=l.call(t),e=l.call(e),x(t,e,r);var s,c,u=T(t),f=T(e);if(u.length!==f.length)return!1;for(u.sort(),f.sort(),c=u.length-1;c&gt;=0;c--)if(u[c]!==f[c])return!1;for(c=u.length-1;c&gt;=0;c--)if(s=u[c],!x(t[s],e[s],r,n))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function b(t){return&quot;[object Arguments]&quot;==Object.prototype.toString.call(t)}function _(t,e){if(!t||!e)return!1;if(&quot;[object RegExp]&quot;==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&amp;&amp;!0===e.call({},t)}function w(t,e,r,n){var i;if(&quot;function&quot;!=typeof e)throw new TypeError('&quot;block&quot; argument must be a function');&quot;string&quot;==typeof r&amp;&amp;(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&amp;&amp;r.name?&quot; (&quot;+r.name+&quot;).&quot;:&quot;.&quot;)+(n?&quot; &quot;+n:&quot;.&quot;),t&amp;&amp;!i&amp;&amp;v(i,r,&quot;Missing expected exception&quot;+n);var a=&quot;string&quot;==typeof n,s=!t&amp;&amp;i&amp;&amp;!r;if((!t&amp;&amp;o.isError(i)&amp;&amp;a&amp;&amp;_(i,r)||s)&amp;&amp;v(i,r,&quot;Got unwanted exception&quot;+n),t&amp;&amp;i&amp;&amp;r&amp;&amp;!_(i,r)||!t&amp;&amp;i)throw i}h.AssertionError=function(t){this.name=&quot;AssertionError&quot;,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return g(m(t.actual),128)+&quot; &quot;+t.operator+&quot; &quot;+g(m(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=d(e),a=n.indexOf(&quot;\n&quot;+i);if(a&gt;=0){var o=n.indexOf(&quot;\n&quot;,a+1);n=n.substring(o+1)}this.stack=n}}},o.inherits(h.AssertionError,Error),h.fail=v,h.ok=y,h.equal=function(t,e,r){t!=e&amp;&amp;v(t,e,r,&quot;==&quot;,h.equal)},h.notEqual=function(t,e,r){t==e&amp;&amp;v(t,e,r,&quot;!=&quot;,h.notEqual)},h.deepEqual=function(t,e,r){x(t,e,!1)||v(t,e,r,&quot;deepEqual&quot;,h.deepEqual)},h.deepStrictEqual=function(t,e,r){x(t,e,!0)||v(t,e,r,&quot;deepStrictEqual&quot;,h.deepStrictEqual)},h.notDeepEqual=function(t,e,r){x(t,e,!1)&amp;&amp;v(t,e,r,&quot;notDeepEqual&quot;,h.notDeepEqual)},h.notDeepStrictEqual=function t(e,r,n){x(e,r,!0)&amp;&amp;v(e,r,n,&quot;notDeepStrictEqual&quot;,t)},h.strictEqual=function(t,e,r){t!==e&amp;&amp;v(t,e,r,&quot;===&quot;,h.strictEqual)},h.notStrictEqual=function(t,e,r){t===e&amp;&amp;v(t,e,r,&quot;!==&quot;,h.notStrictEqual)},h.throws=function(t,e,r){w(!0,t,e,r)},h.doesNotThrow=function(t,e,r){w(!1,t,e,r)},h.ifError=function(t){if(t)throw t},h.strict=n((function t(e,r){e||v(e,!0,r,&quot;==&quot;,t)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var T=Object.keys||function(t){var e=[];for(var r in t)s.call(t,r)&amp;&amp;e.push(r);return e}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;object-assign&quot;:499,&quot;util/&quot;:76}],74:[function(t,e,r){&quot;function&quot;==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],75:[function(t,e,r){e.exports=function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;&quot;function&quot;==typeof t.copy&amp;&amp;&quot;function&quot;==typeof t.fill&amp;&amp;&quot;function&quot;==typeof t.readUInt8}},{}],76:[function(t,e,r){(function(e,n){(function(){var i=/%[sdj%]/g;r.format=function(t){if(!v(t)){for(var e=[],r=0;r&lt;arguments.length;r++)e.push(s(arguments[r]));return e.join(&quot; &quot;)}r=1;for(var n=arguments,a=n.length,o=String(t).replace(i,(function(t){if(&quot;%%&quot;===t)return&quot;%&quot;;if(r&gt;=a)return t;switch(t){case&quot;%s&quot;:return String(n[r++]);case&quot;%d&quot;:return Number(n[r++]);case&quot;%j&quot;:try{return JSON.stringify(n[r++])}catch(t){return&quot;[Circular]&quot;}default:return t}})),l=n[r];r&lt;a;l=n[++r])g(l)||!b(l)?o+=&quot; &quot;+l:o+=&quot; &quot;+s(l);return o},r.deprecate=function(t,i){if(y(n.process))return function(){return r.deprecate(t,i).apply(this,arguments)};if(!0===e.noDeprecation)return t;var a=!1;return function(){if(!a){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),a=!0}return t.apply(this,arguments)}};var a,o={};function s(t,e){var n={seen:[],stylize:c};return arguments.length&gt;=3&amp;&amp;(n.depth=arguments[2]),arguments.length&gt;=4&amp;&amp;(n.colors=arguments[3]),d(e)?n.showHidden=e:e&amp;&amp;r._extend(n,e),y(n.showHidden)&amp;&amp;(n.showHidden=!1),y(n.depth)&amp;&amp;(n.depth=2),y(n.colors)&amp;&amp;(n.colors=!1),y(n.customInspect)&amp;&amp;(n.customInspect=!0),n.colors&amp;&amp;(n.stylize=l),u(n,t,n.depth)}function l(t,e){var r=s.styles[e];return r?&quot;\x1b[&quot;+s.colors[r][0]+&quot;m&quot;+t+&quot;\x1b[&quot;+s.colors[r][1]+&quot;m&quot;:t}function c(t,e){return t}function u(t,e,n){if(t.customInspect&amp;&amp;e&amp;&amp;T(e.inspect)&amp;&amp;e.inspect!==r.inspect&amp;&amp;(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return v(i)||(i=u(t,i,n)),i}var a=function(t,e){if(y(e))return t.stylize(&quot;undefined&quot;,&quot;undefined&quot;);if(v(e)){var r=&quot;'&quot;+JSON.stringify(e).replace(/^&quot;|&quot;$/g,&quot;&quot;).replace(/'/g,&quot;\\'&quot;).replace(/\\&quot;/g,'&quot;')+&quot;'&quot;;return t.stylize(r,&quot;string&quot;)}if(m(e))return t.stylize(&quot;&quot;+e,&quot;number&quot;);if(d(e))return t.stylize(&quot;&quot;+e,&quot;boolean&quot;);if(g(e))return t.stylize(&quot;null&quot;,&quot;null&quot;)}(t,e);if(a)return a;var o=Object.keys(e),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&amp;&amp;(o=Object.getOwnPropertyNames(e)),w(e)&amp;&amp;(o.indexOf(&quot;message&quot;)&gt;=0||o.indexOf(&quot;description&quot;)&gt;=0))return f(e);if(0===o.length){if(T(e)){var l=e.name?&quot;: &quot;+e.name:&quot;&quot;;return t.stylize(&quot;[Function&quot;+l+&quot;]&quot;,&quot;special&quot;)}if(x(e))return t.stylize(RegExp.prototype.toString.call(e),&quot;regexp&quot;);if(_(e))return t.stylize(Date.prototype.toString.call(e),&quot;date&quot;);if(w(e))return f(e)}var c,b=&quot;&quot;,k=!1,M=[&quot;{&quot;,&quot;}&quot;];(p(e)&amp;&amp;(k=!0,M=[&quot;[&quot;,&quot;]&quot;]),T(e))&amp;&amp;(b=&quot; [Function&quot;+(e.name?&quot;: &quot;+e.name:&quot;&quot;)+&quot;]&quot;);return x(e)&amp;&amp;(b=&quot; &quot;+RegExp.prototype.toString.call(e)),_(e)&amp;&amp;(b=&quot; &quot;+Date.prototype.toUTCString.call(e)),w(e)&amp;&amp;(b=&quot; &quot;+f(e)),0!==o.length||k&amp;&amp;0!=e.length?n&lt;0?x(e)?t.stylize(RegExp.prototype.toString.call(e),&quot;regexp&quot;):t.stylize(&quot;[Object]&quot;,&quot;special&quot;):(t.seen.push(e),c=k?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o&lt;s;++o)E(e,String(o))?a.push(h(t,e,r,n,String(o),!0)):a.push(&quot;&quot;);return i.forEach((function(i){i.match(/^\d+$/)||a.push(h(t,e,r,n,i,!0))})),a}(t,e,n,s,o):o.map((function(r){return h(t,e,n,s,r,k)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf(&quot;\n&quot;)&gt;=0&amp;&amp;0,t+e.replace(/\u001b\[\d\d?m/g,&quot;&quot;).length+1}),0)&gt;60)return r[0]+(&quot;&quot;===e?&quot;&quot;:e+&quot;\n &quot;)+&quot; &quot;+t.join(&quot;,\n  &quot;)+&quot; &quot;+r[1];return r[0]+e+&quot; &quot;+t.join(&quot;, &quot;)+&quot; &quot;+r[1]}(c,b,M)):M[0]+b+M[1]}function f(t){return&quot;[&quot;+Error.prototype.toString.call(t)+&quot;]&quot;}function h(t,e,r,n,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=l.set?t.stylize(&quot;[Getter/Setter]&quot;,&quot;special&quot;):t.stylize(&quot;[Getter]&quot;,&quot;special&quot;):l.set&amp;&amp;(s=t.stylize(&quot;[Setter]&quot;,&quot;special&quot;)),E(n,i)||(o=&quot;[&quot;+i+&quot;]&quot;),s||(t.seen.indexOf(l.value)&lt;0?(s=g(r)?u(t,l.value,null):u(t,l.value,r-1)).indexOf(&quot;\n&quot;)&gt;-1&amp;&amp;(s=a?s.split(&quot;\n&quot;).map((function(t){return&quot;  &quot;+t})).join(&quot;\n&quot;).substr(2):&quot;\n&quot;+s.split(&quot;\n&quot;).map((function(t){return&quot;   &quot;+t})).join(&quot;\n&quot;)):s=t.stylize(&quot;[Circular]&quot;,&quot;special&quot;)),y(o)){if(a&amp;&amp;i.match(/^\d+$/))return s;(o=JSON.stringify(&quot;&quot;+i)).match(/^&quot;([a-zA-Z_][a-zA-Z_0-9]*)&quot;$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,&quot;name&quot;)):(o=o.replace(/'/g,&quot;\\'&quot;).replace(/\\&quot;/g,'&quot;').replace(/(^&quot;|&quot;$)/g,&quot;'&quot;),o=t.stylize(o,&quot;string&quot;))}return o+&quot;: &quot;+s}function p(t){return Array.isArray(t)}function d(t){return&quot;boolean&quot;==typeof t}function g(t){return null===t}function m(t){return&quot;number&quot;==typeof t}function v(t){return&quot;string&quot;==typeof t}function y(t){return void 0===t}function x(t){return b(t)&amp;&amp;&quot;[object RegExp]&quot;===k(t)}function b(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t}function _(t){return b(t)&amp;&amp;&quot;[object Date]&quot;===k(t)}function w(t){return b(t)&amp;&amp;(&quot;[object Error]&quot;===k(t)||t instanceof Error)}function T(t){return&quot;function&quot;==typeof t}function k(t){return Object.prototype.toString.call(t)}function M(t){return t&lt;10?&quot;0&quot;+t.toString(10):t.toString(10)}r.debuglog=function(t){if(y(a)&amp;&amp;(a=e.env.NODE_DEBUG||&quot;&quot;),t=t.toUpperCase(),!o[t])if(new RegExp(&quot;\\b&quot;+t+&quot;\\b&quot;,&quot;i&quot;).test(a)){var n=e.pid;o[t]=function(){var e=r.format.apply(r,arguments);console.error(&quot;%s %d: %s&quot;,t,n,e)}}else o[t]=function(){};return o[t]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:&quot;cyan&quot;,number:&quot;yellow&quot;,boolean:&quot;yellow&quot;,undefined:&quot;grey&quot;,null:&quot;bold&quot;,string:&quot;green&quot;,date:&quot;magenta&quot;,regexp:&quot;red&quot;},r.isArray=p,r.isBoolean=d,r.isNull=g,r.isNullOrUndefined=function(t){return null==t},r.isNumber=m,r.isString=v,r.isSymbol=function(t){return&quot;symbol&quot;==typeof t},r.isUndefined=y,r.isRegExp=x,r.isObject=b,r.isDate=_,r.isError=w,r.isFunction=T,r.isPrimitive=function(t){return null===t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||&quot;symbol&quot;==typeof t||&quot;undefined&quot;==typeof t},r.isBuffer=t(&quot;./support/isBuffer&quot;);var A=[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;];function S(){var t=new Date,e=[M(t.getHours()),M(t.getMinutes()),M(t.getSeconds())].join(&quot;:&quot;);return[t.getDate(),A[t.getMonth()],e].join(&quot; &quot;)}function E(t,e){return Object.prototype.hasOwnProperty.call(t,e)}r.log=function(){console.log(&quot;%s - %s&quot;,S(),r.format.apply(r,arguments))},r.inherits=t(&quot;inherits&quot;),r._extend=function(t,e){if(!e||!b(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;./support/isBuffer&quot;:75,_process:526,inherits:74}],77:[function(t,e,r){e.exports=function(t){return atob(t)}},{}],78:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=e.length,a=new Array(r+1),o=0;o&lt;r;++o){for(var s=new Array(r+1),l=0;l&lt;=r;++l)s[l]=t[l][o];a[o]=s}a[r]=new Array(r+1);for(o=0;o&lt;=r;++o)a[r][o]=1;var c=new Array(r+1);for(o=0;o&lt;r;++o)c[o]=e[o];c[r]=1;var u=n(a,c),f=i(u[r+1]);0===f&amp;&amp;(f=1);var h=new Array(r+1);for(o=0;o&lt;=r;++o)h[o]=i(u[o])/f;return h};var n=t(&quot;robust-linear-solve&quot;);function i(t){for(var e=0,r=0;r&lt;t.length;++r)e+=t[r];return e}},{&quot;robust-linear-solve&quot;:547}],79:[function(t,e,r){&quot;use strict&quot;;r.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){var e,r,n=c(t),o=n[0],s=n[1],l=new a(function(t,e,r){return 3*(e+r)/4-r}(0,o,s)),u=0,f=s&gt;0?o-4:o;for(r=0;r&lt;f;r+=4)e=i[t.charCodeAt(r)]&lt;&lt;18|i[t.charCodeAt(r+1)]&lt;&lt;12|i[t.charCodeAt(r+2)]&lt;&lt;6|i[t.charCodeAt(r+3)],l[u++]=e&gt;&gt;16&amp;255,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e;2===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;2|i[t.charCodeAt(r+1)]&gt;&gt;4,l[u++]=255&amp;e);1===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;10|i[t.charCodeAt(r+1)]&lt;&lt;4|i[t.charCodeAt(r+2)]&gt;&gt;2,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e);return l},r.fromByteArray=function(t){for(var e,r=t.length,i=r%3,a=[],o=0,s=r-i;o&lt;s;o+=16383)a.push(u(t,o,o+16383&gt;s?s:o+16383));1===i?(e=t[r-1],a.push(n[e&gt;&gt;2]+n[e&lt;&lt;4&amp;63]+&quot;==&quot;)):2===i&amp;&amp;(e=(t[r-2]&lt;&lt;8)+t[r-1],a.push(n[e&gt;&gt;10]+n[e&gt;&gt;4&amp;63]+n[e&lt;&lt;2&amp;63]+&quot;=&quot;));return a.join(&quot;&quot;)};for(var n=[],i=[],a=&quot;undefined&quot;!=typeof Uint8Array?Uint8Array:Array,o=&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/&quot;,s=0,l=o.length;s&lt;l;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4&gt;0)throw new Error(&quot;Invalid string. Length must be a multiple of 4&quot;);var r=t.indexOf(&quot;=&quot;);return-1===r&amp;&amp;(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var i,a,o=[],s=e;s&lt;r;s+=3)i=(t[s]&lt;&lt;16&amp;16711680)+(t[s+1]&lt;&lt;8&amp;65280)+(255&amp;t[s+2]),o.push(n[(a=i)&gt;&gt;18&amp;63]+n[a&gt;&gt;12&amp;63]+n[a&gt;&gt;6&amp;63]+n[63&amp;a]);return o.join(&quot;&quot;)}i[&quot;-&quot;.charCodeAt(0)]=62,i[&quot;_&quot;.charCodeAt(0)]=63},{}],80:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]).add(e[0].mul(t[1])),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:90}],81:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t[0].mul(e[1]).cmp(e[0].mul(t[1]))}},{}],82:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]),t[1].mul(e[0]))}},{&quot;./lib/rationalize&quot;:90}],83:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-rat&quot;),i=t(&quot;./lib/is-bn&quot;),a=t(&quot;./lib/num-to-bn&quot;),o=t(&quot;./lib/str-to-bn&quot;),s=t(&quot;./lib/rationalize&quot;),l=t(&quot;./div&quot;);e.exports=function t(e,r){if(n(e))return r?l(e,t(r)):[e[0].clone(),e[1].clone()];var c,u,f=0;if(i(e))c=e.clone();else if(&quot;string&quot;==typeof e)c=o(e);else{if(0===e)return[a(0),a(1)];if(e===Math.floor(e))c=a(e);else{for(;e!==Math.floor(e);)e*=Math.pow(2,256),f-=256;c=a(e)}}if(n(r))c.mul(r[1]),u=r[0].clone();else if(i(r))u=r.clone();else if(&quot;string&quot;==typeof r)u=o(r);else if(r)if(r===Math.floor(r))u=a(r);else{for(;r!==Math.floor(r);)r*=Math.pow(2,256),f+=256;u=a(r)}else u=a(1);f&gt;0?c=c.ushln(f):f&lt;0&amp;&amp;(u=u.ushln(-f));return s(c,u)}},{&quot;./div&quot;:82,&quot;./is-rat&quot;:84,&quot;./lib/is-bn&quot;:88,&quot;./lib/num-to-bn&quot;:89,&quot;./lib/rationalize&quot;:90,&quot;./lib/str-to-bn&quot;:91}],84:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/is-bn&quot;);e.exports=function(t){return Array.isArray(t)&amp;&amp;2===t.length&amp;&amp;n(t[0])&amp;&amp;n(t[1])}},{&quot;./lib/is-bn&quot;:88}],85:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;);e.exports=function(t){return t.cmp(new n(0))}},{&quot;bn.js&quot;:99}],86:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./bn-sign&quot;);e.exports=function(t){var e=t.length,r=t.words,i=0;if(1===e)i=r[0];else if(2===e)i=r[0]+67108864*r[1];else for(var a=0;a&lt;e;a++){var o=r[a];i+=o*Math.pow(67108864,a)}return n(t)*i}},{&quot;./bn-sign&quot;:85}],87:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;double-bits&quot;),i=t(&quot;bit-twiddle&quot;).countTrailingZeros;e.exports=function(t){var e=i(n.lo(t));if(e&lt;32)return e;var r=i(n.hi(t));if(r&gt;20)return 52;return r+32}},{&quot;bit-twiddle&quot;:97,&quot;double-bits&quot;:173}],88:[function(t,e,r){&quot;use strict&quot;;t(&quot;bn.js&quot;);e.exports=function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;Boolean(t.words)}},{&quot;bn.js&quot;:99}],89:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;),i=t(&quot;double-bits&quot;);e.exports=function(t){var e=i.exponent(t);return e&lt;52?new n(t):new n(t*Math.pow(2,52-e)).ushln(e-52)}},{&quot;bn.js&quot;:99,&quot;double-bits&quot;:173}],90:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./num-to-bn&quot;),i=t(&quot;./bn-sign&quot;);e.exports=function(t,e){var r=i(t),a=i(e);if(0===r)return[n(0),n(1)];if(0===a)return[n(0),n(0)];a&lt;0&amp;&amp;(t=t.neg(),e=e.neg());var o=t.gcd(e);if(o.cmpn(1))return[t.div(o),e.div(o)];return[t,e]}},{&quot;./bn-sign&quot;:85,&quot;./num-to-bn&quot;:89}],91:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;);e.exports=function(t){return new n(t)}},{&quot;bn.js&quot;:99}],92:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[0]),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:90}],93:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/bn-sign&quot;);e.exports=function(t){return n(t[0])*n(t[1])}},{&quot;./lib/bn-sign&quot;:85}],94:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]).sub(t[1].mul(e[0])),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:90}],95:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/bn-to-num&quot;),i=t(&quot;./lib/ctz&quot;);e.exports=function(t){var e=t[0],r=t[1];if(0===e.cmpn(0))return 0;var a=e.abs().divmod(r.abs()),o=a.div,s=n(o),l=a.mod,c=e.negative!==r.negative?-1:1;if(0===l.cmpn(0))return c*s;if(s){var u=i(s)+4,f=n(l.ushln(u).divRound(r));return c*(s+f*Math.pow(2,-u))}var h=r.bitLength()-l.bitLength()+53;f=n(l.ushln(h).divRound(r));return h&lt;1023?c*f*Math.pow(2,-h):(f*=Math.pow(2,-1023),c*f*Math.pow(2,1023-h))}},{&quot;./lib/bn-to-num&quot;:86,&quot;./lib/ctz&quot;:87}],96:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i){var a=[&quot;function &quot;,t,&quot;(a,l,h,&quot;,n.join(&quot;,&quot;),&quot;){&quot;,i?&quot;&quot;:&quot;var i=&quot;,r?&quot;l-1&quot;:&quot;h+1&quot;,&quot;;while(l&lt;=h){var m=(l+h)&gt;&gt;&gt;1,x=a[m]&quot;];return i?e.indexOf(&quot;c&quot;)&lt;0?a.push(&quot;;if(x===y){return m}else if(x&lt;=y){&quot;):a.push(&quot;;var p=c(x,y);if(p===0){return m}else if(p&lt;=0){&quot;):a.push(&quot;;if(&quot;,e,&quot;){i=m;&quot;),r?a.push(&quot;l=m+1}else{h=m-1}&quot;):a.push(&quot;h=m-1}else{l=m+1}&quot;),a.push(&quot;}&quot;),i?a.push(&quot;return -1};&quot;):a.push(&quot;return i};&quot;),a.join(&quot;&quot;)}function i(t,e,r,i){return new Function([n(&quot;A&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],i),n(&quot;P&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],i),&quot;function dispatchBsearch&quot;,r,&quot;(a,y,c,l,h){if(typeof(c)==='function'){return P(a,(l===void 0)?0:l|0,(h===void 0)?a.length-1:h|0,y,c)}else{return A(a,(c===void 0)?0:c|0,(l===void 0)?a.length-1:l|0,y)}}return dispatchBsearch&quot;,r].join(&quot;&quot;))()}e.exports={ge:i(&quot;&gt;=&quot;,!1,&quot;GE&quot;),gt:i(&quot;&gt;&quot;,!1,&quot;GT&quot;),lt:i(&quot;&lt;&quot;,!0,&quot;LT&quot;),le:i(&quot;&lt;=&quot;,!0,&quot;LE&quot;),eq:i(&quot;-&quot;,!0,&quot;EQ&quot;,!0)}},{}],97:[function(t,e,r){&quot;use strict&quot;;function n(t){var e=32;return(t&amp;=-t)&amp;&amp;e--,65535&amp;t&amp;&amp;(e-=16),16711935&amp;t&amp;&amp;(e-=8),252645135&amp;t&amp;&amp;(e-=4),858993459&amp;t&amp;&amp;(e-=2),1431655765&amp;t&amp;&amp;(e-=1),e}r.INT_BITS=32,r.INT_MAX=2147483647,r.INT_MIN=-1&lt;&lt;31,r.sign=function(t){return(t&gt;0)-(t&lt;0)},r.abs=function(t){var e=t&gt;&gt;31;return(t^e)-e},r.min=function(t,e){return e^(t^e)&amp;-(t&lt;e)},r.max=function(t,e){return t^(t^e)&amp;-(t&lt;e)},r.isPow2=function(t){return!(t&amp;t-1||!t)},r.log2=function(t){var e,r;return e=(t&gt;65535)&lt;&lt;4,e|=r=((t&gt;&gt;&gt;=e)&gt;255)&lt;&lt;3,e|=r=((t&gt;&gt;&gt;=r)&gt;15)&lt;&lt;2,(e|=r=((t&gt;&gt;&gt;=r)&gt;3)&lt;&lt;1)|(t&gt;&gt;&gt;=r)&gt;&gt;1},r.log10=function(t){return t&gt;=1e9?9:t&gt;=1e8?8:t&gt;=1e7?7:t&gt;=1e6?6:t&gt;=1e5?5:t&gt;=1e4?4:t&gt;=1e3?3:t&gt;=100?2:t&gt;=10?1:0},r.popCount=function(t){return 16843009*((t=(858993459&amp;(t-=t&gt;&gt;&gt;1&amp;1431655765))+(t&gt;&gt;&gt;2&amp;858993459))+(t&gt;&gt;&gt;4)&amp;252645135)&gt;&gt;&gt;24},r.countTrailingZeros=n,r.nextPow2=function(t){return t+=0===t,--t,t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)+1},r.prevPow2=function(t){return t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)-(t&gt;&gt;&gt;1)},r.parity=function(t){return t^=t&gt;&gt;&gt;16,t^=t&gt;&gt;&gt;8,t^=t&gt;&gt;&gt;4,27030&gt;&gt;&gt;(t&amp;=15)&amp;1};var i=new Array(256);!function(t){for(var e=0;e&lt;256;++e){var r=e,n=e,i=7;for(r&gt;&gt;&gt;=1;r;r&gt;&gt;&gt;=1)n&lt;&lt;=1,n|=1&amp;r,--i;t[e]=n&lt;&lt;i&amp;255}}(i),r.reverse=function(t){return i[255&amp;t]&lt;&lt;24|i[t&gt;&gt;&gt;8&amp;255]&lt;&lt;16|i[t&gt;&gt;&gt;16&amp;255]&lt;&lt;8|i[t&gt;&gt;&gt;24&amp;255]},r.interleave2=function(t,e){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t&amp;=65535)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e&amp;=65535)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1},r.deinterleave2=function(t,e){return(t=65535&amp;((t=16711935&amp;((t=252645135&amp;((t=858993459&amp;((t=t&gt;&gt;&gt;e&amp;1431655765)|t&gt;&gt;&gt;1))|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;16))&lt;&lt;16&gt;&gt;16},r.interleave3=function(t,e,r){return t=1227133513&amp;((t=3272356035&amp;((t=251719695&amp;((t=4278190335&amp;((t&amp;=1023)|t&lt;&lt;16))|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2),(t|=(e=1227133513&amp;((e=3272356035&amp;((e=251719695&amp;((e=4278190335&amp;((e&amp;=1023)|e&lt;&lt;16))|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))&lt;&lt;1)|(r=1227133513&amp;((r=3272356035&amp;((r=251719695&amp;((r=4278190335&amp;((r&amp;=1023)|r&lt;&lt;16))|r&lt;&lt;8))|r&lt;&lt;4))|r&lt;&lt;2))&lt;&lt;2},r.deinterleave3=function(t,e){return(t=1023&amp;((t=4278190335&amp;((t=251719695&amp;((t=3272356035&amp;((t=t&gt;&gt;&gt;e&amp;1227133513)|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;8))|t&gt;&gt;&gt;16))&lt;&lt;22&gt;&gt;22},r.nextCombination=function(t){var e=t|t-1;return e+1|(~e&amp;-~e)-1&gt;&gt;&gt;n(t)+1}},{}],98:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;clamp&quot;);e.exports=function(t,e){e||(e={});var r,o,s,l,c,u,f,h,p,d,g,m=null==e.cutoff?.25:e.cutoff,v=null==e.radius?8:e.radius,y=e.channel||0;if(ArrayBuffer.isView(t)||Array.isArray(t)){if(!e.width||!e.height)throw Error(&quot;For raw data width and height should be provided by options&quot;);r=e.width,o=e.height,l=t,u=e.stride?e.stride:Math.floor(t.length/r/o)}else window.HTMLCanvasElement&amp;&amp;t instanceof window.HTMLCanvasElement?(f=(h=t).getContext(&quot;2d&quot;),r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.CanvasRenderingContext2D&amp;&amp;t instanceof window.CanvasRenderingContext2D?(h=t.canvas,f=t,r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.ImageData&amp;&amp;t instanceof window.ImageData&amp;&amp;(p=t,r=t.width,o=t.height,l=p.data,u=4);if(s=Math.max(r,o),window.Uint8ClampedArray&amp;&amp;l instanceof window.Uint8ClampedArray||window.Uint8Array&amp;&amp;l instanceof window.Uint8Array)for(c=l,l=Array(r*o),d=0,g=c.length;d&lt;g;d++)l[d]=c[d*u+y]/255;else if(1!==u)throw Error(&quot;Raw data can have only 1 value per pixel&quot;);var x=Array(r*o),b=Array(r*o),_=Array(s),w=Array(s),T=Array(s+1),k=Array(s);for(d=0,g=r*o;d&lt;g;d++){var M=l[d];x[d]=1===M?0:0===M?i:Math.pow(Math.max(0,.5-M),2),b[d]=1===M?i:0===M?0:Math.pow(Math.max(0,M-.5),2)}a(x,r,o,_,w,k,T),a(b,r,o,_,w,k,T);var A=window.Float32Array?new Float32Array(r*o):new Array(r*o);for(d=0,g=r*o;d&lt;g;d++)A[d]=n(1-((x[d]-b[d])/v+m),0,1);return A};var i=1e20;function a(t,e,r,n,i,a,s){for(var l=0;l&lt;e;l++){for(var c=0;c&lt;r;c++)n[c]=t[c*e+l];for(o(n,i,a,s,r),c=0;c&lt;r;c++)t[c*e+l]=i[c]}for(c=0;c&lt;r;c++){for(l=0;l&lt;e;l++)n[l]=t[c*e+l];for(o(n,i,a,s,e),l=0;l&lt;e;l++)t[c*e+l]=Math.sqrt(i[l])}}function o(t,e,r,n,a){r[0]=0,n[0]=-i,n[1]=+i;for(var o=1,s=0;o&lt;a;o++){for(var l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);l&lt;=n[s];)s--,l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);r[++s]=o,n[s]=l,n[s+1]=+i}for(o=0,s=0;o&lt;a;o++){for(;n[s+1]&lt;o;)s++;e[o]=(o-r[s])*(o-r[s])+t[r[s]]}}},{clamp:120}],99:[function(t,e,r){!function(e,r){&quot;use strict&quot;;function n(t,e){if(!t)throw new Error(e||&quot;Assertion failed&quot;)}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,e,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&amp;&amp;(&quot;le&quot;!==e&amp;&amp;&quot;be&quot;!==e||(r=e,e=10),this._init(t||0,e||10,r||&quot;be&quot;))}var o;&quot;object&quot;==typeof e?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{o=t(&quot;buffer&quot;).Buffer}catch(t){}function s(t,e,r){for(var n=0,i=Math.min(t.length,r),a=e;a&lt;i;a++){var o=t.charCodeAt(a)-48;n&lt;&lt;=4,n|=o&gt;=49&amp;&amp;o&lt;=54?o-49+10:o&gt;=17&amp;&amp;o&lt;=22?o-17+10:15&amp;o}return n}function l(t,e,r,n){for(var i=0,a=Math.min(t.length,r),o=e;o&lt;a;o++){var s=t.charCodeAt(o)-48;i*=n,i+=s&gt;=49?s-49+10:s&gt;=17?s-17+10:s}return i}a.isBN=function(t){return t instanceof a||null!==t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;t.constructor.wordSize===a.wordSize&amp;&amp;Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)&gt;0?t:e},a.min=function(t,e){return t.cmp(e)&lt;0?t:e},a.prototype._init=function(t,e,r){if(&quot;number&quot;==typeof t)return this._initNumber(t,e,r);if(&quot;object&quot;==typeof t)return this._initArray(t,e,r);&quot;hex&quot;===e&amp;&amp;(e=16),n(e===(0|e)&amp;&amp;e&gt;=2&amp;&amp;e&lt;=36);var i=0;&quot;-&quot;===(t=t.toString().replace(/\s+/g,&quot;&quot;))[0]&amp;&amp;i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),&quot;-&quot;===t[0]&amp;&amp;(this.negative=1),this.strip(),&quot;le&quot;===r&amp;&amp;this._initArray(this.toArray(),e,r)},a.prototype._initNumber=function(t,e,r){t&lt;0&amp;&amp;(this.negative=1,t=-t),t&lt;67108864?(this.words=[67108863&amp;t],this.length=1):t&lt;4503599627370496?(this.words=[67108863&amp;t,t/67108864&amp;67108863],this.length=2):(n(t&lt;9007199254740992),this.words=[67108863&amp;t,t/67108864&amp;67108863,1],this.length=3),&quot;le&quot;===r&amp;&amp;this._initArray(this.toArray(),e,r)},a.prototype._initArray=function(t,e,r){if(n(&quot;number&quot;==typeof t.length),t.length&lt;=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i&lt;this.length;i++)this.words[i]=0;var a,o,s=0;if(&quot;be&quot;===r)for(i=t.length-1,a=0;i&gt;=0;i-=3)o=t[i]|t[i-1]&lt;&lt;8|t[i-2]&lt;&lt;16,this.words[a]|=o&lt;&lt;s&amp;67108863,this.words[a+1]=o&gt;&gt;&gt;26-s&amp;67108863,(s+=24)&gt;=26&amp;&amp;(s-=26,a++);else if(&quot;le&quot;===r)for(i=0,a=0;i&lt;t.length;i+=3)o=t[i]|t[i+1]&lt;&lt;8|t[i+2]&lt;&lt;16,this.words[a]|=o&lt;&lt;s&amp;67108863,this.words[a+1]=o&gt;&gt;&gt;26-s&amp;67108863,(s+=24)&gt;=26&amp;&amp;(s-=26,a++);return this.strip()},a.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r&lt;this.length;r++)this.words[r]=0;var n,i,a=0;for(r=t.length-6,n=0;r&gt;=e;r-=6)i=s(t,r,r+6),this.words[n]|=i&lt;&lt;a&amp;67108863,this.words[n+1]|=i&gt;&gt;&gt;26-a&amp;4194303,(a+=24)&gt;=26&amp;&amp;(a-=26,n++);r+6!==e&amp;&amp;(i=s(t,e,r+6),this.words[n]|=i&lt;&lt;a&amp;67108863,this.words[n+1]|=i&gt;&gt;&gt;26-a&amp;4194303),this.strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i&lt;=67108863;i*=e)n++;n--,i=i/e|0;for(var a=t.length-r,o=a%n,s=Math.min(a,a-o)+r,c=0,u=r;u&lt;s;u+=n)c=l(t,u,u+n,e),this.imuln(i),this.words[0]+c&lt;67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var f=1;for(c=l(t,u,t.length,e),u=0;u&lt;o;u++)f*=e;this.imuln(f),this.words[0]+c&lt;67108864?this.words[0]+=c:this._iaddn(c)}},a.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e&lt;this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length&lt;t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length&gt;1&amp;&amp;0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&amp;&amp;0===this.words[0]&amp;&amp;(this.negative=0),this},a.prototype.inspect=function(){return(this.red?&quot;&lt;BN-R: &quot;:&quot;&lt;BN: &quot;)+this.toString(16)+&quot;&gt;&quot;};var c=[&quot;&quot;,&quot;0&quot;,&quot;00&quot;,&quot;000&quot;,&quot;0000&quot;,&quot;00000&quot;,&quot;000000&quot;,&quot;0000000&quot;,&quot;00000000&quot;,&quot;000000000&quot;,&quot;0000000000&quot;,&quot;00000000000&quot;,&quot;000000000000&quot;,&quot;0000000000000&quot;,&quot;00000000000000&quot;,&quot;000000000000000&quot;,&quot;0000000000000000&quot;,&quot;00000000000000000&quot;,&quot;000000000000000000&quot;,&quot;0000000000000000000&quot;,&quot;00000000000000000000&quot;,&quot;000000000000000000000&quot;,&quot;0000000000000000000000&quot;,&quot;00000000000000000000000&quot;,&quot;000000000000000000000000&quot;,&quot;0000000000000000000000000&quot;],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],a=0|e.words[0],o=i*a,s=67108863&amp;o,l=o/67108864|0;r.words[0]=s;for(var c=1;c&lt;n;c++){for(var u=l&gt;&gt;&gt;26,f=67108863&amp;l,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p&lt;=h;p++){var d=c-p|0;u+=(o=(i=0|t.words[d])*(a=0|e.words[p])+f)/67108864|0,f=67108863&amp;o}r.words[c]=0|f,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||&quot;hex&quot;===t){r=&quot;&quot;;for(var i=0,a=0,o=0;o&lt;this.length;o++){var s=this.words[o],l=(16777215&amp;(s&lt;&lt;i|a)).toString(16);r=0!==(a=s&gt;&gt;&gt;24-i&amp;16777215)||o!==this.length-1?c[6-l.length]+l+r:l+r,(i+=2)&gt;=26&amp;&amp;(i-=26,o--)}for(0!==a&amp;&amp;(r=a.toString(16)+r);r.length%e!=0;)r=&quot;0&quot;+r;return 0!==this.negative&amp;&amp;(r=&quot;-&quot;+r),r}if(t===(0|t)&amp;&amp;t&gt;=2&amp;&amp;t&lt;=36){var h=u[t],p=f[t];r=&quot;&quot;;var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modn(p).toString(t);r=(d=d.idivn(p)).isZero()?g+r:c[h-g.length]+g+r}for(this.isZero()&amp;&amp;(r=&quot;0&quot;+r);r.length%e!=0;)r=&quot;0&quot;+r;return 0!==this.negative&amp;&amp;(r=&quot;-&quot;+r),r}n(!1,&quot;Base should be between 2 and 36&quot;)},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&amp;&amp;1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length&gt;2&amp;&amp;n(!1,&quot;Number can only safely store up to 53 bits&quot;),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return n(&quot;undefined&quot;!=typeof o),this.toArrayLike(o,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i&lt;=a,&quot;byte array longer than desired length&quot;),n(a&gt;0,&quot;Requested array length &lt;= 0&quot;),this.strip();var o,s,l=&quot;le&quot;===e,c=new t(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s&lt;a;s++)c[s]=0}else{for(s=0;s&lt;a-i;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[a-s-1]=o}return c},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var e=t,r=0;return e&gt;=4096&amp;&amp;(r+=13,e&gt;&gt;&gt;=13),e&gt;=64&amp;&amp;(r+=7,e&gt;&gt;&gt;=7),e&gt;=8&amp;&amp;(r+=4,e&gt;&gt;&gt;=4),e&gt;=2&amp;&amp;(r+=2,e&gt;&gt;&gt;=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&amp;e)&amp;&amp;(r+=13,e&gt;&gt;&gt;=13),0==(127&amp;e)&amp;&amp;(r+=7,e&gt;&gt;&gt;=7),0==(15&amp;e)&amp;&amp;(r+=4,e&gt;&gt;&gt;=4),0==(3&amp;e)&amp;&amp;(r+=2,e&gt;&gt;&gt;=2),0==(1&amp;e)&amp;&amp;r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e&lt;this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length&lt;t.length;)this.words[this.length++]=0;for(var e=0;e&lt;t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},a.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length&gt;t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length&gt;t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length&gt;t.length?t:this;for(var r=0;r&lt;e.length;r++)this.words[r]=this.words[r]&amp;t.words[r];return this.length=e.length,this.strip()},a.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length&gt;t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length&gt;t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length&gt;t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n&lt;r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n&lt;e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},a.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length&gt;t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length&gt;t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r&gt;0&amp;&amp;e--;for(var i=0;i&lt;e;i++)this.words[i]=67108863&amp;~this.words[i];return r&gt;0&amp;&amp;(this.words[i]=~this.words[i]&amp;67108863&gt;&gt;26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1&lt;&lt;i:this.words[r]&amp;~(1&lt;&lt;i),this.strip()},a.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&amp;&amp;0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&amp;&amp;0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length&gt;t.length?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a&lt;n.length;a++)e=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&amp;e,i=e&gt;&gt;&gt;26;for(;0!==i&amp;&amp;a&lt;r.length;a++)e=(0|r.words[a])+i,this.words[a]=67108863&amp;e,i=e&gt;&gt;&gt;26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a&lt;r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(t){var e;return 0!==t.negative&amp;&amp;0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&amp;&amp;0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length&gt;t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i&gt;0?(r=this,n=t):(r=t,n=this);for(var a=0,o=0;o&lt;n.length;o++)a=(e=(0|r.words[o])-(0|n.words[o])+a)&gt;&gt;26,this.words[o]=67108863&amp;e;for(;0!==a&amp;&amp;o&lt;r.length;o++)a=(e=(0|r.words[o])+a)&gt;&gt;26,this.words[o]=67108863&amp;e;if(0===a&amp;&amp;o&lt;r.length&amp;&amp;r!==this)for(;o&lt;r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&amp;&amp;(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,a,o=t.words,s=e.words,l=r.words,c=0,u=0|o[0],f=8191&amp;u,h=u&gt;&gt;&gt;13,p=0|o[1],d=8191&amp;p,g=p&gt;&gt;&gt;13,m=0|o[2],v=8191&amp;m,y=m&gt;&gt;&gt;13,x=0|o[3],b=8191&amp;x,_=x&gt;&gt;&gt;13,w=0|o[4],T=8191&amp;w,k=w&gt;&gt;&gt;13,M=0|o[5],A=8191&amp;M,S=M&gt;&gt;&gt;13,E=0|o[6],C=8191&amp;E,L=E&gt;&gt;&gt;13,I=0|o[7],P=8191&amp;I,z=I&gt;&gt;&gt;13,O=0|o[8],D=8191&amp;O,R=O&gt;&gt;&gt;13,F=0|o[9],B=8191&amp;F,N=F&gt;&gt;&gt;13,j=0|s[0],U=8191&amp;j,V=j&gt;&gt;&gt;13,q=0|s[1],H=8191&amp;q,G=q&gt;&gt;&gt;13,Y=0|s[2],W=8191&amp;Y,X=Y&gt;&gt;&gt;13,Z=0|s[3],J=8191&amp;Z,K=Z&gt;&gt;&gt;13,Q=0|s[4],$=8191&amp;Q,tt=Q&gt;&gt;&gt;13,et=0|s[5],rt=8191&amp;et,nt=et&gt;&gt;&gt;13,it=0|s[6],at=8191&amp;it,ot=it&gt;&gt;&gt;13,st=0|s[7],lt=8191&amp;st,ct=st&gt;&gt;&gt;13,ut=0|s[8],ft=8191&amp;ut,ht=ut&gt;&gt;&gt;13,pt=0|s[9],dt=8191&amp;pt,gt=pt&gt;&gt;&gt;13;r.negative=t.negative^e.negative,r.length=19;var mt=(c+(n=Math.imul(f,U))|0)+((8191&amp;(i=(i=Math.imul(f,V))+Math.imul(h,U)|0))&lt;&lt;13)|0;c=((a=Math.imul(h,V))+(i&gt;&gt;&gt;13)|0)+(mt&gt;&gt;&gt;26)|0,mt&amp;=67108863,n=Math.imul(d,U),i=(i=Math.imul(d,V))+Math.imul(g,U)|0,a=Math.imul(g,V);var vt=(c+(n=n+Math.imul(f,H)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,H)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,G)|0)+(i&gt;&gt;&gt;13)|0)+(vt&gt;&gt;&gt;26)|0,vt&amp;=67108863,n=Math.imul(v,U),i=(i=Math.imul(v,V))+Math.imul(y,U)|0,a=Math.imul(y,V),n=n+Math.imul(d,H)|0,i=(i=i+Math.imul(d,G)|0)+Math.imul(g,H)|0,a=a+Math.imul(g,G)|0;var yt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,W)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,X)|0)+(i&gt;&gt;&gt;13)|0)+(yt&gt;&gt;&gt;26)|0,yt&amp;=67108863,n=Math.imul(b,U),i=(i=Math.imul(b,V))+Math.imul(_,U)|0,a=Math.imul(_,V),n=n+Math.imul(v,H)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(d,W)|0,i=(i=i+Math.imul(d,X)|0)+Math.imul(g,W)|0,a=a+Math.imul(g,X)|0;var xt=(c+(n=n+Math.imul(f,J)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,J)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,K)|0)+(i&gt;&gt;&gt;13)|0)+(xt&gt;&gt;&gt;26)|0,xt&amp;=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,V))+Math.imul(k,U)|0,a=Math.imul(k,V),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,G)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(y,W)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(d,J)|0,i=(i=i+Math.imul(d,K)|0)+Math.imul(g,J)|0,a=a+Math.imul(g,K)|0;var bt=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,$)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,tt)|0)+(i&gt;&gt;&gt;13)|0)+(bt&gt;&gt;&gt;26)|0,bt&amp;=67108863,n=Math.imul(A,U),i=(i=Math.imul(A,V))+Math.imul(S,U)|0,a=Math.imul(S,V),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(k,H)|0,a=a+Math.imul(k,G)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(_,W)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(y,J)|0,a=a+Math.imul(y,K)|0,n=n+Math.imul(d,$)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(g,$)|0,a=a+Math.imul(g,tt)|0;var _t=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,nt)|0)+(i&gt;&gt;&gt;13)|0)+(_t&gt;&gt;&gt;26)|0,_t&amp;=67108863,n=Math.imul(C,U),i=(i=Math.imul(C,V))+Math.imul(L,U)|0,a=Math.imul(L,V),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(k,W)|0,a=a+Math.imul(k,X)|0,n=n+Math.imul(b,J)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(_,J)|0,a=a+Math.imul(_,K)|0,n=n+Math.imul(v,$)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,tt)|0,n=n+Math.imul(d,rt)|0,i=(i=i+Math.imul(d,nt)|0)+Math.imul(g,rt)|0,a=a+Math.imul(g,nt)|0;var wt=(c+(n=n+Math.imul(f,at)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ot)|0)+Math.imul(h,at)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ot)|0)+(i&gt;&gt;&gt;13)|0)+(wt&gt;&gt;&gt;26)|0,wt&amp;=67108863,n=Math.imul(P,U),i=(i=Math.imul(P,V))+Math.imul(z,U)|0,a=Math.imul(z,V),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(L,H)|0,a=a+Math.imul(L,G)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,X)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(k,J)|0,a=a+Math.imul(k,K)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(y,rt)|0,a=a+Math.imul(y,nt)|0,n=n+Math.imul(d,at)|0,i=(i=i+Math.imul(d,ot)|0)+Math.imul(g,at)|0,a=a+Math.imul(g,ot)|0;var Tt=(c+(n=n+Math.imul(f,lt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ct)|0)+Math.imul(h,lt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ct)|0)+(i&gt;&gt;&gt;13)|0)+(Tt&gt;&gt;&gt;26)|0,Tt&amp;=67108863,n=Math.imul(D,U),i=(i=Math.imul(D,V))+Math.imul(R,U)|0,a=Math.imul(R,V),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(z,H)|0,a=a+Math.imul(z,G)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(L,W)|0,a=a+Math.imul(L,X)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(S,J)|0,a=a+Math.imul(S,K)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(_,rt)|0,a=a+Math.imul(_,nt)|0,n=n+Math.imul(v,at)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(y,at)|0,a=a+Math.imul(y,ot)|0,n=n+Math.imul(d,lt)|0,i=(i=i+Math.imul(d,ct)|0)+Math.imul(g,lt)|0,a=a+Math.imul(g,ct)|0;var kt=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ht)|0)+(i&gt;&gt;&gt;13)|0)+(kt&gt;&gt;&gt;26)|0,kt&amp;=67108863,n=Math.imul(B,U),i=(i=Math.imul(B,V))+Math.imul(N,U)|0,a=Math.imul(N,V),n=n+Math.imul(D,H)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(R,H)|0,a=a+Math.imul(R,G)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(z,W)|0,a=a+Math.imul(z,X)|0,n=n+Math.imul(C,J)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(L,J)|0,a=a+Math.imul(L,K)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(k,rt)|0,a=a+Math.imul(k,nt)|0,n=n+Math.imul(b,at)|0,i=(i=i+Math.imul(b,ot)|0)+Math.imul(_,at)|0,a=a+Math.imul(_,ot)|0,n=n+Math.imul(v,lt)|0,i=(i=i+Math.imul(v,ct)|0)+Math.imul(y,lt)|0,a=a+Math.imul(y,ct)|0,n=n+Math.imul(d,ft)|0,i=(i=i+Math.imul(d,ht)|0)+Math.imul(g,ft)|0,a=a+Math.imul(g,ht)|0;var Mt=(c+(n=n+Math.imul(f,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,gt)|0)+Math.imul(h,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Mt&gt;&gt;&gt;26)|0,Mt&amp;=67108863,n=Math.imul(B,H),i=(i=Math.imul(B,G))+Math.imul(N,H)|0,a=Math.imul(N,G),n=n+Math.imul(D,W)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(R,W)|0,a=a+Math.imul(R,X)|0,n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(z,J)|0,a=a+Math.imul(z,K)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(L,$)|0,a=a+Math.imul(L,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(S,rt)|0,a=a+Math.imul(S,nt)|0,n=n+Math.imul(T,at)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(k,at)|0,a=a+Math.imul(k,ot)|0,n=n+Math.imul(b,lt)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(_,lt)|0,a=a+Math.imul(_,ct)|0,n=n+Math.imul(v,ft)|0,i=(i=i+Math.imul(v,ht)|0)+Math.imul(y,ft)|0,a=a+Math.imul(y,ht)|0;var At=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(d,gt)|0)+Math.imul(g,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(g,gt)|0)+(i&gt;&gt;&gt;13)|0)+(At&gt;&gt;&gt;26)|0,At&amp;=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,X))+Math.imul(N,W)|0,a=Math.imul(N,X),n=n+Math.imul(D,J)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(R,J)|0,a=a+Math.imul(R,K)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(z,$)|0,a=a+Math.imul(z,tt)|0,n=n+Math.imul(C,rt)|0,i=(i=i+Math.imul(C,nt)|0)+Math.imul(L,rt)|0,a=a+Math.imul(L,nt)|0,n=n+Math.imul(A,at)|0,i=(i=i+Math.imul(A,ot)|0)+Math.imul(S,at)|0,a=a+Math.imul(S,ot)|0,n=n+Math.imul(T,lt)|0,i=(i=i+Math.imul(T,ct)|0)+Math.imul(k,lt)|0,a=a+Math.imul(k,ct)|0,n=n+Math.imul(b,ft)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(_,ft)|0,a=a+Math.imul(_,ht)|0;var St=(c+(n=n+Math.imul(v,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(v,gt)|0)+Math.imul(y,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(y,gt)|0)+(i&gt;&gt;&gt;13)|0)+(St&gt;&gt;&gt;26)|0,St&amp;=67108863,n=Math.imul(B,J),i=(i=Math.imul(B,K))+Math.imul(N,J)|0,a=Math.imul(N,K),n=n+Math.imul(D,$)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(z,rt)|0,a=a+Math.imul(z,nt)|0,n=n+Math.imul(C,at)|0,i=(i=i+Math.imul(C,ot)|0)+Math.imul(L,at)|0,a=a+Math.imul(L,ot)|0,n=n+Math.imul(A,lt)|0,i=(i=i+Math.imul(A,ct)|0)+Math.imul(S,lt)|0,a=a+Math.imul(S,ct)|0,n=n+Math.imul(T,ft)|0,i=(i=i+Math.imul(T,ht)|0)+Math.imul(k,ft)|0,a=a+Math.imul(k,ht)|0;var Et=(c+(n=n+Math.imul(b,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(b,gt)|0)+Math.imul(_,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(_,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Et&gt;&gt;&gt;26)|0,Et&amp;=67108863,n=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(N,$)|0,a=Math.imul(N,tt),n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(R,rt)|0,a=a+Math.imul(R,nt)|0,n=n+Math.imul(P,at)|0,i=(i=i+Math.imul(P,ot)|0)+Math.imul(z,at)|0,a=a+Math.imul(z,ot)|0,n=n+Math.imul(C,lt)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(L,lt)|0,a=a+Math.imul(L,ct)|0,n=n+Math.imul(A,ft)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(S,ft)|0,a=a+Math.imul(S,ht)|0;var Ct=(c+(n=n+Math.imul(T,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(T,gt)|0)+Math.imul(k,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(k,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Ct&gt;&gt;&gt;26)|0,Ct&amp;=67108863,n=Math.imul(B,rt),i=(i=Math.imul(B,nt))+Math.imul(N,rt)|0,a=Math.imul(N,nt),n=n+Math.imul(D,at)|0,i=(i=i+Math.imul(D,ot)|0)+Math.imul(R,at)|0,a=a+Math.imul(R,ot)|0,n=n+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(z,lt)|0,a=a+Math.imul(z,ct)|0,n=n+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,ht)|0)+Math.imul(L,ft)|0,a=a+Math.imul(L,ht)|0;var Lt=(c+(n=n+Math.imul(A,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(A,gt)|0)+Math.imul(S,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(S,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Lt&gt;&gt;&gt;26)|0,Lt&amp;=67108863,n=Math.imul(B,at),i=(i=Math.imul(B,ot))+Math.imul(N,at)|0,a=Math.imul(N,ot),n=n+Math.imul(D,lt)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(R,lt)|0,a=a+Math.imul(R,ct)|0,n=n+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(z,ft)|0,a=a+Math.imul(z,ht)|0;var It=(c+(n=n+Math.imul(C,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(C,gt)|0)+Math.imul(L,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(L,gt)|0)+(i&gt;&gt;&gt;13)|0)+(It&gt;&gt;&gt;26)|0,It&amp;=67108863,n=Math.imul(B,lt),i=(i=Math.imul(B,ct))+Math.imul(N,lt)|0,a=Math.imul(N,ct),n=n+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(R,ft)|0,a=a+Math.imul(R,ht)|0;var Pt=(c+(n=n+Math.imul(P,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(P,gt)|0)+Math.imul(z,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(z,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Pt&gt;&gt;&gt;26)|0,Pt&amp;=67108863,n=Math.imul(B,ft),i=(i=Math.imul(B,ht))+Math.imul(N,ft)|0,a=Math.imul(N,ht);var zt=(c+(n=n+Math.imul(D,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(D,gt)|0)+Math.imul(R,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(R,gt)|0)+(i&gt;&gt;&gt;13)|0)+(zt&gt;&gt;&gt;26)|0,zt&amp;=67108863;var Ot=(c+(n=Math.imul(B,dt))|0)+((8191&amp;(i=(i=Math.imul(B,gt))+Math.imul(N,dt)|0))&lt;&lt;13)|0;return c=((a=Math.imul(N,gt))+(i&gt;&gt;&gt;13)|0)+(Ot&gt;&gt;&gt;26)|0,Ot&amp;=67108863,l[0]=mt,l[1]=vt,l[2]=yt,l[3]=xt,l[4]=bt,l[5]=_t,l[6]=wt,l[7]=Tt,l[8]=kt,l[9]=Mt,l[10]=At,l[11]=St,l[12]=Et,l[13]=Ct,l[14]=Lt,l[15]=It,l[16]=Pt,l[17]=zt,l[18]=Ot,0!==c&amp;&amp;(l[19]=c,r.length++),r};function d(t,e,r){return(new g).mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=h),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&amp;&amp;10===t.length?p(this,t,e):r&lt;63?h(this,t,e):r&lt;1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,a=0;a&lt;r.length-1;a++){var o=i;i=0;for(var s=67108863&amp;n,l=Math.min(a,e.length-1),c=Math.max(0,a-t.length+1);c&lt;=l;c++){var u=a-c,f=(0|t.words[u])*(0|e.words[c]),h=67108863&amp;f;s=67108863&amp;(h=h+s|0),i+=(o=(o=o+(f/67108864|0)|0)+(h&gt;&gt;&gt;26)|0)&gt;&gt;&gt;26,o&amp;=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,t,e):d(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n&lt;t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i&lt;e;i++)n|=(1&amp;t)&lt;&lt;e-i-1,t&gt;&gt;=1;return n},g.prototype.permute=function(t,e,r,n,i,a){for(var o=0;o&lt;a;o++)n[o]=e[t[o]],i[o]=r[t[o]]},g.prototype.transform=function(t,e,r,n,i,a){this.permute(a,t,e,r,n,i);for(var o=1;o&lt;i;o&lt;&lt;=1)for(var s=o&lt;&lt;1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u&lt;i;u+=s)for(var f=l,h=c,p=0;p&lt;o;p++){var d=r[u+p],g=n[u+p],m=r[u+p+o],v=n[u+p+o],y=f*m-h*v;v=f*v+h*m,m=y,r[u+p]=d+m,n[u+p]=g+v,r[u+p+o]=d-m,n[u+p+o]=g-v,p!==s&amp;&amp;(y=l*f-c*h,h=l*h+c*f,f=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&amp;r,i=0;for(r=r/2|0;r;r&gt;&gt;&gt;=1)i++;return 1&lt;&lt;i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r&lt;=1))for(var n=0;n&lt;r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n&lt;e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&amp;i,r=i&lt;67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var a=0,o=0;o&lt;e;o++)a+=0|t[o],r[2*o]=8191&amp;a,a&gt;&gt;&gt;=13,r[2*o+1]=8191&amp;a,a&gt;&gt;&gt;=13;for(o=2*e;o&lt;i;++o)r[o]=0;n(0===a),n(0==(-8192&amp;a))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,c,n),this.transform(o,a,s,l,n,i),this.transform(c,a,u,f,n,i);for(var p=0;p&lt;n;p++){var d=s[p]*u[p]-l[p]*f[p];l[p]=s[p]*f[p]+l[p]*u[p],s[p]=d}return this.conjugate(s,l,n),this.transform(s,l,h,a,n,i),this.conjugate(h,a,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},a.prototype.mul=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},a.prototype.mulf=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),d(this,t,e)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){n(&quot;number&quot;==typeof t),n(t&lt;67108864);for(var e=0,r=0;r&lt;this.length;r++){var i=(0|this.words[r])*t,a=(67108863&amp;i)+(67108863&amp;e);e&gt;&gt;=26,e+=i/67108864|0,e+=a&gt;&gt;&gt;26,this.words[r]=67108863&amp;a}return 0!==e&amp;&amp;(this.words[r]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r&lt;e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&amp;1&lt;&lt;i)&gt;&gt;&gt;i}return e}(t);if(0===e.length)return new a(1);for(var r=this,n=0;n&lt;e.length&amp;&amp;0===e[n];n++,r=r.sqr());if(++n&lt;e.length)for(var i=r.sqr();n&lt;e.length;n++,i=i.sqr())0!==e[n]&amp;&amp;(r=r.mul(i));return r},a.prototype.iushln=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e,r=t%26,i=(t-r)/26,a=67108863&gt;&gt;&gt;26-r&lt;&lt;26-r;if(0!==r){var o=0;for(e=0;e&lt;this.length;e++){var s=this.words[e]&amp;a,l=(0|this.words[e])-s&lt;&lt;r;this.words[e]=l|o,o=s&gt;&gt;&gt;26-r}o&amp;&amp;(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e&gt;=0;e--)this.words[e+i]=this.words[e];for(e=0;e&lt;i;e++)this.words[e]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,e,r){var i;n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0),i=e?(e-e%26)/26:0;var a=t%26,o=Math.min((t-a)/26,this.length),s=67108863^67108863&gt;&gt;&gt;a&lt;&lt;a,l=r;if(i-=o,i=Math.max(0,i),l){for(var c=0;c&lt;o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length&gt;o)for(this.length-=o,c=0;c&lt;this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c&gt;=0&amp;&amp;(0!==u||c&gt;=i);c--){var f=0|this.words[c];this.words[c]=u&lt;&lt;26-a|f&gt;&gt;&gt;a,u=f&amp;s}return l&amp;&amp;0!==u&amp;&amp;(l.words[l.length++]=u),0===this.length&amp;&amp;(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=t%26,r=(t-e)/26,i=1&lt;&lt;e;return!(this.length&lt;=r)&amp;&amp;!!(this.words[r]&amp;i)},a.prototype.imaskn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,&quot;imaskn works only with positive numbers&quot;),this.length&lt;=r)return this;if(0!==e&amp;&amp;r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863&gt;&gt;&gt;e&lt;&lt;e;this.words[this.length-1]&amp;=i}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return n(&quot;number&quot;==typeof t),n(t&lt;67108864),t&lt;0?this.isubn(-t):0!==this.negative?1===this.length&amp;&amp;(0|this.words[0])&lt;t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e&lt;this.length&amp;&amp;this.words[e]&gt;=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(n(&quot;number&quot;==typeof t),n(t&lt;67108864),t&lt;0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&amp;&amp;this.words[0]&lt;0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e&lt;this.length&amp;&amp;this.words[e]&lt;0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,e,r){var i,a,o=t.length+r;this._expand(o);var s=0;for(i=0;i&lt;t.length;i++){a=(0|this.words[i+r])+s;var l=(0|t.words[i])*e;s=((a-=67108863&amp;l)&gt;&gt;26)-(l/67108864|0),this.words[i+r]=67108863&amp;a}for(;i&lt;this.length-r;i++)s=(a=(0|this.words[i+r])+s)&gt;&gt;26,this.words[i+r]=67108863&amp;a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i&lt;this.length;i++)s=(a=-(0|this.words[i])+s)&gt;&gt;26,this.words[i]=67108863&amp;a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&amp;&amp;(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,l=n.length-i.length;if(&quot;mod&quot;!==e){(s=new a(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c&lt;s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(i,1,l);0===u.negative&amp;&amp;(n=u,s&amp;&amp;(s.words[l]=1));for(var f=l-1;f&gt;=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&amp;&amp;(s.words[f]=h)}return s&amp;&amp;s.strip(),n.strip(),&quot;div&quot;!==e&amp;&amp;0!==r&amp;&amp;n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&amp;&amp;0===t.negative?(s=this.neg().divmod(t,e),&quot;mod&quot;!==e&amp;&amp;(i=s.div.neg()),&quot;div&quot;!==e&amp;&amp;(o=s.mod.neg(),r&amp;&amp;0!==o.negative&amp;&amp;o.iadd(t)),{div:i,mod:o}):0===this.negative&amp;&amp;0!==t.negative?(s=this.divmod(t.neg(),e),&quot;mod&quot;!==e&amp;&amp;(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&amp;t.negative)?(s=this.neg().divmod(t.neg(),e),&quot;div&quot;!==e&amp;&amp;(o=s.mod.neg(),r&amp;&amp;0!==o.negative&amp;&amp;o.isub(t)),{div:s.div,mod:o}):t.length&gt;this.length||this.cmp(t)&lt;0?{div:new a(0),mod:this}:1===t.length?&quot;div&quot;===e?{div:this.divn(t.words[0]),mod:null}:&quot;mod&quot;===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,s},a.prototype.div=function(t){return this.divmod(t,&quot;div&quot;,!1).div},a.prototype.mod=function(t){return this.divmod(t,&quot;mod&quot;,!1).mod},a.prototype.umod=function(t){return this.divmod(t,&quot;mod&quot;,!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),a=r.cmp(n);return a&lt;0||1===i&amp;&amp;0===a?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){n(t&lt;=67108863);for(var e=(1&lt;&lt;26)%t,r=0,i=this.length-1;i&gt;=0;i--)r=(e*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){n(t&lt;=67108863);for(var e=0,r=this.length-1;r&gt;=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new a(1),o=new a(0),s=new a(0),l=new a(1),c=0;e.isEven()&amp;&amp;r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),f=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&amp;p)&amp;&amp;h&lt;26;++h,p&lt;&lt;=1);if(h&gt;0)for(e.iushrn(h);h-- &gt;0;)(i.isOdd()||o.isOdd())&amp;&amp;(i.iadd(u),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var d=0,g=1;0==(r.words[0]&amp;g)&amp;&amp;d&lt;26;++d,g&lt;&lt;=1);if(d&gt;0)for(r.iushrn(d);d-- &gt;0;)(s.isOdd()||l.isOdd())&amp;&amp;(s.iadd(u),l.isub(f)),s.iushrn(1),l.iushrn(1);e.cmp(r)&gt;=0?(e.isub(r),i.isub(s),o.isub(l)):(r.isub(e),s.isub(i),l.isub(o))}return{a:s,b:l,gcd:r.iushln(c)}},a.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new a(1),s=new a(0),l=r.clone();e.cmpn(1)&gt;0&amp;&amp;r.cmpn(1)&gt;0;){for(var c=0,u=1;0==(e.words[0]&amp;u)&amp;&amp;c&lt;26;++c,u&lt;&lt;=1);if(c&gt;0)for(e.iushrn(c);c-- &gt;0;)o.isOdd()&amp;&amp;o.iadd(l),o.iushrn(1);for(var f=0,h=1;0==(r.words[0]&amp;h)&amp;&amp;f&lt;26;++f,h&lt;&lt;=1);if(f&gt;0)for(r.iushrn(f);f-- &gt;0;)s.isOdd()&amp;&amp;s.iadd(l),s.iushrn(1);e.cmp(r)&gt;=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(i=0===e.cmpn(1)?o:s).cmpn(0)&lt;0&amp;&amp;i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&amp;&amp;r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i&lt;0){var a=e;e=r,r=a}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&amp;this.words[0])},a.prototype.isOdd=function(){return 1==(1&amp;this.words[0])},a.prototype.andln=function(t){return this.words[0]&amp;t},a.prototype.bincn=function(t){n(&quot;number&quot;==typeof t);var e=t%26,r=(t-e)/26,i=1&lt;&lt;e;if(this.length&lt;=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&amp;&amp;o&lt;this.length;o++){var s=0|this.words[o];a=(s+=a)&gt;&gt;&gt;26,s&amp;=67108863,this.words[o]=s}return 0!==a&amp;&amp;(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&amp;&amp;0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t&lt;0;if(0!==this.negative&amp;&amp;!r)return-1;if(0===this.negative&amp;&amp;r)return 1;if(this.strip(),this.length&gt;1)e=1;else{r&amp;&amp;(t=-t),n(t&lt;=67108863,&quot;Number is too big&quot;);var i=0|this.words[0];e=i===t?0:i&lt;t?-1:1}return 0!==this.negative?0|-e:e},a.prototype.cmp=function(t){if(0!==this.negative&amp;&amp;0===t.negative)return-1;if(0===this.negative&amp;&amp;0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},a.prototype.ucmp=function(t){if(this.length&gt;t.length)return 1;if(this.length&lt;t.length)return-1;for(var e=0,r=this.length-1;r&gt;=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n&lt;i?e=-1:n&gt;i&amp;&amp;(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)&gt;=0},a.prototype.gte=function(t){return this.cmp(t)&gt;=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)&lt;=0},a.prototype.lte=function(t){return this.cmp(t)&lt;=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new w(t)},a.prototype.toRed=function(t){return n(!this.red,&quot;Already a number in reduction context&quot;),n(0===this.negative,&quot;red works only with positives&quot;),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return n(this.red,&quot;fromRed works only with numbers in reduction context&quot;),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return n(!this.red,&quot;Already a number in reduction context&quot;),this._forceRed(t)},a.prototype.redAdd=function(t){return n(this.red,&quot;redAdd works only with red numbers&quot;),this.red.add(this,t)},a.prototype.redIAdd=function(t){return n(this.red,&quot;redIAdd works only with red numbers&quot;),this.red.iadd(this,t)},a.prototype.redSub=function(t){return n(this.red,&quot;redSub works only with red numbers&quot;),this.red.sub(this,t)},a.prototype.redISub=function(t){return n(this.red,&quot;redISub works only with red numbers&quot;),this.red.isub(this,t)},a.prototype.redShl=function(t){return n(this.red,&quot;redShl works only with red numbers&quot;),this.red.shl(this,t)},a.prototype.redMul=function(t){return n(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return n(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return n(this.red,&quot;redSqr works only with red numbers&quot;),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,&quot;redISqr works only with red numbers&quot;),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,&quot;redSqrt works only with red numbers&quot;),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,&quot;redInvm works only with red numbers&quot;),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,&quot;redNeg works only with red numbers&quot;),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return n(this.red&amp;&amp;!t.red,&quot;redPow(normalNum)&quot;),this.red._verify1(this),this.red.pow(this,t)};var m={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,&quot;k256&quot;,&quot;ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f&quot;)}function x(){v.call(this,&quot;p224&quot;,&quot;ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001&quot;)}function b(){v.call(this,&quot;p192&quot;,&quot;ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff&quot;)}function _(){v.call(this,&quot;25519&quot;,&quot;7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed&quot;)}function w(t){if(&quot;string&quot;==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),&quot;modulus must be greater than 1&quot;),this.m=t,this.prime=null}function T(t){w.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&amp;&amp;(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e&gt;this.n);var n=e&lt;this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n&gt;0?r.isub(this.p):r.strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(y,v),y.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n&lt;r;n++)e.words[n]=t.words[n];if(e.length=r,t.length&lt;=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&amp;i,n=10;n&lt;t.length;n++){var a=0|t.words[n];t.words[n-10]=(4194303&amp;a)&lt;&lt;4|i&gt;&gt;&gt;22,i=a}i&gt;&gt;&gt;=22,t.words[n-10]=i,0===i&amp;&amp;t.length&gt;10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r&lt;t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&amp;e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&amp;&amp;(t.length--,0===t.words[t.length-1]&amp;&amp;t.length--),t},i(x,v),i(b,v),i(_,v),_.prototype.imulK=function(t){for(var e=0,r=0;r&lt;t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&amp;n;n&gt;&gt;&gt;=26,t.words[r]=i,e=n}return 0!==e&amp;&amp;(t.words[t.length++]=e),t},a._prime=function(t){if(m[t])return m[t];var e;if(&quot;k256&quot;===t)e=new y;else if(&quot;p224&quot;===t)e=new x;else if(&quot;p192&quot;===t)e=new b;else{if(&quot;p25519&quot;!==t)throw new Error(&quot;Unknown prime &quot;+t);e=new _}return m[t]=e,e},w.prototype._verify1=function(t){n(0===t.negative,&quot;red works only with positives&quot;),n(t.red,&quot;red works only with red numbers&quot;)},w.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),&quot;red works only with positives&quot;),n(t.red&amp;&amp;t.red===e.red,&quot;red works only with red numbers&quot;)},w.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)&gt;=0&amp;&amp;r.isub(this.m),r._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)&gt;=0&amp;&amp;r.isub(this.m),r},w.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)&lt;0&amp;&amp;r.iadd(this.m),r._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)&lt;0&amp;&amp;r.iadd(this.m),r},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&amp;&amp;0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var f=this.pow(u,i),h=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),d=o;0!==p.cmp(s);){for(var g=p,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m&lt;d);var v=this.pow(f,new a(1).iushln(d-m-1));h=h.redMul(v),f=v.redSqr(),p=p.redMul(f),d=m}return h},w.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},w.prototype.pow=function(t,e){if(e.isZero())return new a(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=t;for(var n=2;n&lt;r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,s=0,l=e.bitLength()%26;for(0===l&amp;&amp;(l=26),n=e.length-1;n&gt;=0;n--){for(var c=e.words[n],u=l-1;u&gt;=0;u--){var f=c&gt;&gt;u&amp;1;i!==r[0]&amp;&amp;(i=this.sqr(i)),0!==f||0!==o?(o&lt;&lt;=1,o|=f,(4===++s||0===n&amp;&amp;0===u)&amp;&amp;(i=this.mul(i,r[o]),s=0,o=0)):s=0}l=26}return i},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new T(t)},i(T,w),T.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},T.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},T.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)&gt;=0?a=i.isub(this.m):i.cmpn(0)&lt;0&amp;&amp;(a=i.iadd(this.m)),a._forceRed(this)},T.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)&gt;=0?o=i.isub(this.m):i.cmpn(0)&lt;0&amp;&amp;(o=i.iadd(this.m)),o._forceRed(this)},T.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(&quot;undefined&quot;==typeof e||e,this)},{buffer:108}],100:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e,r,n,i=t.length,a=0;for(e=0;e&lt;i;++e)a+=t[e].length;var o=new Array(a),s=0;for(e=0;e&lt;i;++e){var l=t[e],c=l.length;for(r=0;r&lt;c;++r){var u=o[s++]=new Array(c-1),f=0;for(n=0;n&lt;c;++n)n!==r&amp;&amp;(u[f++]=l[n]);if(1&amp;r){var h=u[1];u[1]=u[0],u[0]=h}}}return o}},{}],101:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){switch(arguments.length){case 1:return f(t);case 2:return&quot;function&quot;==typeof e?c(t,t,e,!0):h(t,e);case 3:return c(t,e,r,!1);default:throw new Error(&quot;box-intersect: Invalid arguments&quot;)}};var n,i=t(&quot;typedarray-pool&quot;),a=t(&quot;./lib/sweep&quot;),o=t(&quot;./lib/intersect&quot;);function s(t,e){for(var r=0;r&lt;t;++r)if(!(e[r]&lt;=e[r+t]))return!0;return!1}function l(t,e,r,n){for(var i=0,a=0,o=0,l=t.length;o&lt;l;++o){var c=t[o];if(!s(e,c)){for(var u=0;u&lt;2*e;++u)r[i++]=c[u];n[a++]=o}}return a}function c(t,e,r,n){var s=t.length,c=e.length;if(!(s&lt;=0||c&lt;=0)){var u=t[0].length&gt;&gt;&gt;1;if(!(u&lt;=0)){var f,h=i.mallocDouble(2*u*s),p=i.mallocInt32(s);if((s=l(t,u,h,p))&gt;0){if(1===u&amp;&amp;n)a.init(s),f=a.sweepComplete(u,r,0,s,h,p,0,s,h,p);else{var d=i.mallocDouble(2*u*c),g=i.mallocInt32(c);(c=l(e,u,d,g))&gt;0&amp;&amp;(a.init(s+c),f=1===u?a.sweepBipartite(u,r,0,s,h,p,0,c,d,g):o(u,r,n,s,h,p,c,d,g),i.free(d),i.free(g))}i.free(h),i.free(p)}return f}}}function u(t,e){n.push([t,e])}function f(t){return n=[],c(t,t,u,!0),n}function h(t,e){return n=[],c(t,e,u,!1),n}},{&quot;./lib/intersect&quot;:103,&quot;./lib/sweep&quot;:107,&quot;typedarray-pool&quot;:595}],102:[function(t,e,r){&quot;use strict&quot;;var n=[&quot;d&quot;,&quot;ax&quot;,&quot;vv&quot;,&quot;rs&quot;,&quot;re&quot;,&quot;rb&quot;,&quot;ri&quot;,&quot;bs&quot;,&quot;be&quot;,&quot;bb&quot;,&quot;bi&quot;];function i(t){var e=&quot;bruteForce&quot;+(t?&quot;Full&quot;:&quot;Partial&quot;),r=[],i=n.slice();t||i.splice(3,0,&quot;fp&quot;);var a=[&quot;function &quot;+e+&quot;(&quot;+i.join()+&quot;){&quot;];function o(e,i){var o=function(t,e,r){var i=&quot;bruteForce&quot;+(t?&quot;Red&quot;:&quot;Blue&quot;)+(e?&quot;Flip&quot;:&quot;&quot;)+(r?&quot;Full&quot;:&quot;&quot;),a=[&quot;function &quot;,i,&quot;(&quot;,n.join(),&quot;){&quot;,&quot;var &quot;,&quot;es&quot;,&quot;=2*&quot;,&quot;d&quot;,&quot;;&quot;],o=&quot;for(var i=rs,rp=es*rs;i&lt;re;++i,rp+=es){var x0=rb[ax+rp],x1=rb[ax+rp+d],xi=ri[i];&quot;,s=&quot;for(var j=bs,bp=es*bs;j&lt;be;++j,bp+=es){var y0=bb[ax+bp],&quot;+(r?&quot;y1=bb[ax+bp+d],&quot;:&quot;&quot;)+&quot;yi=bi[j];&quot;;return t?a.push(o,&quot;Q&quot;,&quot;:&quot;,s):a.push(s,&quot;Q&quot;,&quot;:&quot;,o),r?a.push(&quot;if(y1&lt;x0||x1&lt;y0)continue;&quot;):e?a.push(&quot;if(y0&lt;=x0||x1&lt;y0)continue;&quot;):a.push(&quot;if(y0&lt;x0||x1&lt;y0)continue;&quot;),a.push(&quot;for(var k=ax+1;k&lt;d;++k){var r0=rb[k+rp],r1=rb[k+d+rp],b0=bb[k+bp],b1=bb[k+d+bp];if(r1&lt;b0||b1&lt;r0)continue Q;}var rv=vv(&quot;),e?a.push(&quot;yi,xi&quot;):a.push(&quot;xi,yi&quot;),a.push(&quot;);if(rv!==void 0)return rv;}}}&quot;),{name:i,code:a.join(&quot;&quot;)}}(e,i,t);r.push(o.code),a.push(&quot;return &quot;+o.name+&quot;(&quot;+n.join()+&quot;);&quot;)}a.push(&quot;if(re-rs&gt;be-bs){&quot;),t?(o(!0,!1),a.push(&quot;}else{&quot;),o(!1,!1)):(a.push(&quot;if(fp){&quot;),o(!0,!0),a.push(&quot;}else{&quot;),o(!0,!1),a.push(&quot;}}else{if(fp){&quot;),o(!1,!0),a.push(&quot;}else{&quot;),o(!1,!1),a.push(&quot;}&quot;)),a.push(&quot;}}return &quot;+e);var s=r.join(&quot;&quot;)+a.join(&quot;&quot;);return new Function(s)()}r.partial=i(!1),r.full=i(!0)},{}],103:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,u,w,T,k,M){!function(t,e){var r=8*i.log2(e+1)*(t+1)|0,a=i.nextPow2(6*r);v.length&lt;a&amp;&amp;(n.free(v),v=n.mallocInt32(a));var o=i.nextPow2(2*r);y.length&lt;o&amp;&amp;(n.free(y),y=n.mallocDouble(o))}(t,a+T);var A,S=0,E=2*t;x(S++,0,0,a,0,T,r?16:0,-1/0,1/0),r||x(S++,0,0,T,0,a,1,-1/0,1/0);for(;S&gt;0;){var C=6*(S-=1),L=v[C],I=v[C+1],P=v[C+2],z=v[C+3],O=v[C+4],D=v[C+5],R=2*S,F=y[R],B=y[R+1],N=1&amp;D,j=!!(16&amp;D),U=u,V=w,q=k,H=M;if(N&amp;&amp;(U=k,V=M,q=u,H=w),!(2&amp;D&amp;&amp;(P=p(t,L,I,P,U,V,B),I&gt;=P)||4&amp;D&amp;&amp;(I=d(t,L,I,P,U,V,F))&gt;=P)){var G=P-I,Y=O-z;if(j){if(t*G*(G+Y)&lt;1&lt;&lt;22){if(void 0!==(A=l.scanComplete(t,L,e,I,P,U,V,z,O,q,H)))return A;continue}}else{if(t*Math.min(G,Y)&lt;128){if(void 0!==(A=o(t,L,e,N,I,P,U,V,z,O,q,H)))return A;continue}if(t*G*Y&lt;1&lt;&lt;22){if(void 0!==(A=l.scanBipartite(t,L,e,N,I,P,U,V,z,O,q,H)))return A;continue}}var W=f(t,L,I,P,U,V,F,B);if(I&lt;W)if(t*(W-I)&lt;128){if(void 0!==(A=s(t,L+1,e,I,W,U,V,z,O,q,H)))return A}else if(L===t-2){if(void 0!==(A=N?l.sweepBipartite(t,e,z,O,q,H,I,W,U,V):l.sweepBipartite(t,e,I,W,U,V,z,O,q,H)))return A}else x(S++,L+1,I,W,z,O,N,-1/0,1/0),x(S++,L+1,z,O,I,W,1^N,-1/0,1/0);if(W&lt;P){var X=c(t,L,z,O,q,H),Z=q[E*X+L],J=h(t,L,X,O,q,H,Z);if(J&lt;O&amp;&amp;x(S++,L,W,P,J,O,(4|N)+(j?16:0),Z,B),z&lt;X&amp;&amp;x(S++,L,W,P,z,X,(2|N)+(j?16:0),F,Z),X+1===J){if(void 0!==(A=j?_(t,L,e,W,P,U,V,X,q,H[X]):b(t,L,e,N,W,P,U,V,X,q,H[X])))return A}else if(X&lt;J){var K;if(j){if(K=g(t,L,W,P,U,V,Z),W&lt;K){var Q=h(t,L,W,K,U,V,Z);if(L===t-2){if(W&lt;Q&amp;&amp;void 0!==(A=l.sweepComplete(t,e,W,Q,U,V,X,J,q,H)))return A;if(Q&lt;K&amp;&amp;void 0!==(A=l.sweepBipartite(t,e,Q,K,U,V,X,J,q,H)))return A}else W&lt;Q&amp;&amp;x(S++,L+1,W,Q,X,J,16,-1/0,1/0),Q&lt;K&amp;&amp;(x(S++,L+1,Q,K,X,J,0,-1/0,1/0),x(S++,L+1,X,J,Q,K,1,-1/0,1/0))}}else K=N?m(t,L,W,P,U,V,Z):g(t,L,W,P,U,V,Z),W&lt;K&amp;&amp;(L===t-2?A=N?l.sweepBipartite(t,e,X,J,q,H,W,K,U,V):l.sweepBipartite(t,e,W,K,U,V,X,J,q,H):(x(S++,L+1,W,K,X,J,N,-1/0,1/0),x(S++,L+1,X,J,W,K,1^N,-1/0,1/0)))}}}}};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;bit-twiddle&quot;),a=t(&quot;./brute&quot;),o=a.partial,s=a.full,l=t(&quot;./sweep&quot;),c=t(&quot;./median&quot;),u=t(&quot;./partition&quot;),f=u(&quot;!(lo&gt;=p0)&amp;&amp;!(p1&gt;=hi)&quot;,[&quot;p0&quot;,&quot;p1&quot;]),h=u(&quot;lo===p0&quot;,[&quot;p0&quot;]),p=u(&quot;lo&lt;p0&quot;,[&quot;p0&quot;]),d=u(&quot;hi&lt;=p0&quot;,[&quot;p0&quot;]),g=u(&quot;lo&lt;=p0&amp;&amp;p0&lt;=hi&quot;,[&quot;p0&quot;]),m=u(&quot;lo&lt;p0&amp;&amp;p0&lt;=hi&quot;,[&quot;p0&quot;]),v=n.mallocInt32(1024),y=n.mallocDouble(1024);function x(t,e,r,n,i,a,o,s,l){var c=6*t;v[c]=e,v[c+1]=r,v[c+2]=n,v[c+3]=i,v[c+4]=a,v[c+5]=o;var u=2*t;y[u]=s,y[u+1]=l}function b(t,e,r,n,i,a,o,s,l,c,u){var f=2*t,h=l*f,p=c[h+e];t:for(var d=i,g=i*f;d&lt;a;++d,g+=f){var m=o[g+e],v=o[g+e+t];if(!(p&lt;m||v&lt;p)&amp;&amp;(!n||p!==m)){for(var y,x=s[d],b=e+1;b&lt;t;++b){m=o[g+b],v=o[g+b+t];var _=c[h+b],w=c[h+b+t];if(v&lt;_||w&lt;m)continue t}if(void 0!==(y=n?r(u,x):r(x,u)))return y}}}function _(t,e,r,n,i,a,o,s,l,c){var u=2*t,f=s*u,h=l[f+e];t:for(var p=n,d=n*u;p&lt;i;++p,d+=u){var g=o[p];if(g!==c){var m=a[d+e],v=a[d+e+t];if(!(h&lt;m||v&lt;h)){for(var y=e+1;y&lt;t;++y){m=a[d+y],v=a[d+y+t];var x=l[f+y],b=l[f+y+t];if(v&lt;x||b&lt;m)continue t}var _=r(g,c);if(void 0!==_)return _}}}}},{&quot;./brute&quot;:102,&quot;./median&quot;:104,&quot;./partition&quot;:105,&quot;./sweep&quot;:107,&quot;bit-twiddle&quot;:97,&quot;typedarray-pool&quot;:595}],104:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,o,s){if(a&lt;=r+1)return r;var l=r,c=a,u=a+r&gt;&gt;&gt;1,f=2*t,h=u,p=o[f*u+e];for(;l&lt;c;){if(c-l&lt;8){i(t,e,l,c,o,s),p=o[f*u+e];break}var d=c-l,g=Math.random()*d+l|0,m=o[f*g+e],v=Math.random()*d+l|0,y=o[f*v+e],x=Math.random()*d+l|0,b=o[f*x+e];m&lt;=y?b&gt;=y?(h=v,p=y):m&gt;=b?(h=g,p=m):(h=x,p=b):y&gt;=b?(h=v,p=y):b&gt;=m?(h=g,p=m):(h=x,p=b);for(var _=f*(c-1),w=f*h,T=0;T&lt;f;++T,++_,++w){var k=o[_];o[_]=o[w],o[w]=k}var M=s[c-1];s[c-1]=s[h],s[h]=M,h=n(t,e,l,c-1,o,s,p);for(_=f*(c-1),w=f*h,T=0;T&lt;f;++T,++_,++w){k=o[_];o[_]=o[w],o[w]=k}M=s[c-1];if(s[c-1]=s[h],s[h]=M,u&lt;h){for(c=h-1;l&lt;c&amp;&amp;o[f*(c-1)+e]===p;)c-=1;c+=1}else{if(!(h&lt;u))break;for(l=h+1;l&lt;c&amp;&amp;o[f*l+e]===p;)l+=1}}return n(t,e,r,u,o,s,o[f*u+e])};var n=t(&quot;./partition&quot;)(&quot;lo&lt;p0&quot;,[&quot;p0&quot;]);function i(t,e,r,n,i,a){for(var o=2*t,s=o*(r+1)+e,l=r+1;l&lt;n;++l,s+=o)for(var c=i[s],u=l,f=o*(l-1);u&gt;r&amp;&amp;i[f+e]&gt;c;--u,f-=o){for(var h=f,p=f+o,d=0;d&lt;o;++d,++h,++p){var g=i[h];i[h]=i[p],i[p]=g}var m=a[u];a[u]=a[u-1],a[u-1]=m}}},{&quot;./partition&quot;:105}],105:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=&quot;abcdef&quot;.split(&quot;&quot;).concat(e),n=[];t.indexOf(&quot;lo&quot;)&gt;=0&amp;&amp;n.push(&quot;lo=e[k+n]&quot;);t.indexOf(&quot;hi&quot;)&gt;=0&amp;&amp;n.push(&quot;hi=e[k+o]&quot;);return r.push(&quot;for(var j=2*a,k=j*c,l=k,m=c,n=b,o=a+b,p=c;d&gt;p;++p,k+=j){var _;if($)if(m===p)m+=1,l+=j;else{for(var s=0;j&gt;s;++s){var t=e[k+s];e[k+s]=e[l],e[l++]=t}var u=f[p];f[p]=f[m],f[m++]=u}}return m&quot;.replace(&quot;_&quot;,n.join()).replace(&quot;$&quot;,t)),Function.apply(void 0,r)}},{}],106:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e&lt;=128?n(0,e-1,t):function t(e,r,u){var f=(r-e+1)/6|0,h=e+f,p=r-f,d=e+r&gt;&gt;1,g=d-f,m=d+f,v=h,y=g,x=d,b=m,_=p,w=e+1,T=r-1,k=0;l(v,y,u)&amp;&amp;(k=v,v=y,y=k);l(b,_,u)&amp;&amp;(k=b,b=_,_=k);l(v,x,u)&amp;&amp;(k=v,v=x,x=k);l(y,x,u)&amp;&amp;(k=y,y=x,x=k);l(v,b,u)&amp;&amp;(k=v,v=b,b=k);l(x,b,u)&amp;&amp;(k=x,x=b,b=k);l(y,_,u)&amp;&amp;(k=y,y=_,_=k);l(y,x,u)&amp;&amp;(k=y,y=x,x=k);l(b,_,u)&amp;&amp;(k=b,b=_,_=k);for(var M=u[2*y],A=u[2*y+1],S=u[2*b],E=u[2*b+1],C=2*v,L=2*x,I=2*_,P=2*h,z=2*d,O=2*p,D=0;D&lt;2;++D){var R=u[C+D],F=u[L+D],B=u[I+D];u[P+D]=R,u[z+D]=F,u[O+D]=B}a(g,e,u),a(m,r,u);for(var N=w;N&lt;=T;++N)if(c(N,M,A,u))N!==w&amp;&amp;i(N,w,u),++w;else if(!c(N,S,E,u))for(;;){if(c(T,S,E,u)){c(T,M,A,u)?(o(N,w,T,u),++w,--T):(i(N,T,u),--T);break}if(--T&lt;N)break}s(e,w-1,M,A,u),s(r,T+1,S,E,u),w-2-e&lt;=32?n(e,w-2,u):t(e,w-2,u);r-(T+2)&lt;=32?n(T+2,r,u):t(T+2,r,u);T-w&lt;=32?n(w,T,u):t(w,T,u)}(0,e-1,t)};function n(t,e,r){for(var n=2*(t+1),i=t+1;i&lt;=e;++i){for(var a=r[n++],o=r[n++],s=i,l=n-2;s-- &gt;t;){var c=r[l-2],u=r[l-1];if(c&lt;a)break;if(c===a&amp;&amp;u&lt;o)break;r[l]=c,r[l+1]=u,l-=2}r[l]=a,r[l+1]=o}}function i(t,e,r){e*=2;var n=r[t*=2],i=r[t+1];r[t]=r[e],r[t+1]=r[e+1],r[e]=n,r[e+1]=i}function a(t,e,r){e*=2,r[t*=2]=r[e],r[t+1]=r[e+1]}function o(t,e,r,n){e*=2,r*=2;var i=n[t*=2],a=n[t+1];n[t]=n[e],n[t+1]=n[e+1],n[e]=n[r],n[e+1]=n[r+1],n[r]=i,n[r+1]=a}function s(t,e,r,n,i){e*=2,i[t*=2]=i[e],i[e]=r,i[t+1]=i[e+1],i[e+1]=n}function l(t,e,r){e*=2;var n=r[t*=2],i=r[e];return!(n&lt;i)&amp;&amp;(n!==i||r[t+1]&gt;r[e+1])}function c(t,e,r,n){var i=n[t*=2];return i&lt;e||i===e&amp;&amp;n[t+1]&lt;r}},{}],107:[function(t,e,r){&quot;use strict&quot;;e.exports={init:function(t){var e=i.nextPow2(t);o.length&lt;e&amp;&amp;(n.free(o),o=n.mallocInt32(e));s.length&lt;e&amp;&amp;(n.free(s),s=n.mallocInt32(e));l.length&lt;e&amp;&amp;(n.free(l),l=n.mallocInt32(e));c.length&lt;e&amp;&amp;(n.free(c),c=n.mallocInt32(e));u.length&lt;e&amp;&amp;(n.free(u),u=n.mallocInt32(e));f.length&lt;e&amp;&amp;(n.free(f),f=n.mallocInt32(e));var r=8*e;h.length&lt;r&amp;&amp;(n.free(h),h=n.mallocDouble(r))},sweepBipartite:function(t,e,r,n,i,u,f,g,m,v){for(var y=0,x=2*t,b=t-1,_=x-1,w=r;w&lt;n;++w){var T=u[w],k=x*w;h[y++]=i[k+b],h[y++]=-(T+1),h[y++]=i[k+_],h[y++]=T}for(w=f;w&lt;g;++w){T=v[w]+(1&lt;&lt;28);var M=x*w;h[y++]=m[M+b],h[y++]=-T,h[y++]=m[M+_],h[y++]=T}var A=y&gt;&gt;&gt;1;a(h,A);var S=0,E=0;for(w=0;w&lt;A;++w){var C=0|h[2*w+1];if(C&gt;=1&lt;&lt;28)p(l,c,E--,C=C-(1&lt;&lt;28)|0);else if(C&gt;=0)p(o,s,S--,C);else if(C&lt;=-(1&lt;&lt;28)){C=-C-(1&lt;&lt;28)|0;for(var L=0;L&lt;S;++L){if(void 0!==(I=e(o[L],C)))return I}d(l,c,E++,C)}else{C=-C-1|0;for(L=0;L&lt;E;++L){var I;if(void 0!==(I=e(C,l[L])))return I}d(o,s,S++,C)}}},sweepComplete:function(t,e,r,n,i,g,m,v,y,x){for(var b=0,_=2*t,w=t-1,T=_-1,k=r;k&lt;n;++k){var M=g[k]+1&lt;&lt;1,A=_*k;h[b++]=i[A+w],h[b++]=-M,h[b++]=i[A+T],h[b++]=M}for(k=m;k&lt;v;++k){M=x[k]+1&lt;&lt;1;var S=_*k;h[b++]=y[S+w],h[b++]=1|-M,h[b++]=y[S+T],h[b++]=1|M}var E=b&gt;&gt;&gt;1;a(h,E);var C=0,L=0,I=0;for(k=0;k&lt;E;++k){var P=0|h[2*k+1],z=1&amp;P;if(k&lt;E-1&amp;&amp;P&gt;&gt;1==h[2*k+3]&gt;&gt;1&amp;&amp;(z=2,k+=1),P&lt;0){for(var O=-(P&gt;&gt;1)-1,D=0;D&lt;I;++D){if(void 0!==(R=e(u[D],O)))return R}if(0!==z)for(D=0;D&lt;C;++D){if(void 0!==(R=e(o[D],O)))return R}if(1!==z)for(D=0;D&lt;L;++D){var R;if(void 0!==(R=e(l[D],O)))return R}0===z?d(o,s,C++,O):1===z?d(l,c,L++,O):2===z&amp;&amp;d(u,f,I++,O)}else{O=(P&gt;&gt;1)-1;0===z?p(o,s,C--,O):1===z?p(l,c,L--,O):2===z&amp;&amp;p(u,f,I--,O)}}},scanBipartite:function(t,e,r,n,i,l,c,u,f,g,m,v){var y=0,x=2*t,b=e,_=e+t,w=1,T=1;n?T=1&lt;&lt;28:w=1&lt;&lt;28;for(var k=i;k&lt;l;++k){var M=k+w,A=x*k;h[y++]=c[A+b],h[y++]=-M,h[y++]=c[A+_],h[y++]=M}for(k=f;k&lt;g;++k){M=k+T;var S=x*k;h[y++]=m[S+b],h[y++]=-M}var E=y&gt;&gt;&gt;1;a(h,E);var C=0;for(k=0;k&lt;E;++k){var L=0|h[2*k+1];if(L&lt;0){var I=!1;if((M=-L)&gt;=1&lt;&lt;28?(I=!n,M-=1&lt;&lt;28):(I=!!n,M-=1),I)d(o,s,C++,M);else{var P=v[M],z=x*M,O=m[z+e+1],D=m[z+e+1+t];t:for(var R=0;R&lt;C;++R){var F=o[R],B=x*F;if(!(D&lt;c[B+e+1]||c[B+e+1+t]&lt;O)){for(var N=e+2;N&lt;t;++N)if(m[z+N+t]&lt;c[B+N]||c[B+N+t]&lt;m[z+N])continue t;var j,U=u[F];if(void 0!==(j=n?r(P,U):r(U,P)))return j}}}}else p(o,s,C--,L-w)}},scanComplete:function(t,e,r,n,i,s,l,c,u,f,p){for(var d=0,g=2*t,m=e,v=e+t,y=n;y&lt;i;++y){var x=y+(1&lt;&lt;28),b=g*y;h[d++]=s[b+m],h[d++]=-x,h[d++]=s[b+v],h[d++]=x}for(y=c;y&lt;u;++y){x=y+1;var _=g*y;h[d++]=f[_+m],h[d++]=-x}var w=d&gt;&gt;&gt;1;a(h,w);var T=0;for(y=0;y&lt;w;++y){var k=0|h[2*y+1];if(k&lt;0){if((x=-k)&gt;=1&lt;&lt;28)o[T++]=x-(1&lt;&lt;28);else{var M=p[x-=1],A=g*x,S=f[A+e+1],E=f[A+e+1+t];t:for(var C=0;C&lt;T;++C){var L=o[C],I=l[L];if(I===M)break;var P=g*L;if(!(E&lt;s[P+e+1]||s[P+e+1+t]&lt;S)){for(var z=e+2;z&lt;t;++z)if(f[A+z+t]&lt;s[P+z]||s[P+z+t]&lt;f[A+z])continue t;var O=r(I,M);if(void 0!==O)return O}}}}else{for(x=k-(1&lt;&lt;28),C=T-1;C&gt;=0;--C)if(o[C]===x){for(z=C+1;z&lt;T;++z)o[z-1]=o[z];break}--T}}}};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;bit-twiddle&quot;),a=t(&quot;./sort&quot;),o=n.mallocInt32(1024),s=n.mallocInt32(1024),l=n.mallocInt32(1024),c=n.mallocInt32(1024),u=n.mallocInt32(1024),f=n.mallocInt32(1024),h=n.mallocDouble(8192);function p(t,e,r,n){var i=e[n],a=t[r-1];t[i]=a,e[a]=i}function d(t,e,r,n){t[r]=n,e[n]=r}},{&quot;./sort&quot;:106,&quot;bit-twiddle&quot;:97,&quot;typedarray-pool&quot;:595}],108:[function(t,e,r){},{}],109:[function(t,e,r){arguments[4][108][0].apply(r,arguments)},{dup:108}],110:[function(t,e,r){&quot;use strict&quot;;var n,i=&quot;object&quot;==typeof Reflect?Reflect:null,a=i&amp;&amp;&quot;function&quot;==typeof i.apply?i.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=i&amp;&amp;&quot;function&quot;==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(t,e){return new Promise((function(r,n){function i(){void 0!==a&amp;&amp;t.removeListener(&quot;error&quot;,a),r([].slice.call(arguments))}var a;&quot;error&quot;!==e&amp;&amp;(a=function(r){t.removeListener(e,i),n(r)},t.once(&quot;error&quot;,a)),t.once(e,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(t){if(&quot;function&quot;!=typeof t)throw new TypeError('The &quot;listener&quot; argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function f(t,e,r,n){var i,a,o,s;if(c(r),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&amp;&amp;(t.emit(&quot;newListener&quot;,e,r.listener?r.listener:r),a=t._events),o=a[e]),void 0===o)o=a[e]=r,++t._eventsCount;else if(&quot;function&quot;==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=u(t))&gt;0&amp;&amp;o.length&gt;i&amp;&amp;!o.warned){o.warned=!0;var l=new Error(&quot;Possible EventEmitter memory leak detected. &quot;+o.length+&quot; &quot;+String(e)+&quot; listeners added. Use emitter.setMaxListeners() to increase limit&quot;);l.name=&quot;MaxListenersExceededWarning&quot;,l.emitter=t,l.type=e,l.count=o.length,s=l,console&amp;&amp;console.warn&amp;&amp;console.warn(s)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function d(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:&quot;function&quot;==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r&lt;e.length;++r)e[r]=t[r].listener||t[r];return e}(i):m(i,i.length)}function g(t){var e=this._events;if(void 0!==e){var r=e[t];if(&quot;function&quot;==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(t,e){for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n];return r}Object.defineProperty(s,&quot;defaultMaxListeners&quot;,{enumerable:!0,get:function(){return l},set:function(t){if(&quot;number&quot;!=typeof t||t&lt;0||o(t))throw new RangeError('The value of &quot;defaultMaxListeners&quot; is out of range. It must be a non-negative number. Received '+t+&quot;.&quot;);l=t}}),s.init=function(){void 0!==this._events&amp;&amp;this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(t){if(&quot;number&quot;!=typeof t||t&lt;0||o(t))throw new RangeError('The value of &quot;n&quot; is out of range. It must be a non-negative number. Received '+t+&quot;.&quot;);return this._maxListeners=t,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(t){for(var e=[],r=1;r&lt;arguments.length;r++)e.push(arguments[r]);var n=&quot;error&quot;===t,i=this._events;if(void 0!==i)n=n&amp;&amp;void 0===i.error;else if(!n)return!1;if(n){var o;if(e.length&gt;0&amp;&amp;(o=e[0]),o instanceof Error)throw o;var s=new Error(&quot;Unhandled error.&quot;+(o?&quot; (&quot;+o.message+&quot;)&quot;:&quot;&quot;));throw s.context=o,s}var l=i[t];if(void 0===l)return!1;if(&quot;function&quot;==typeof l)a(l,this,e);else{var c=l.length,u=m(l,c);for(r=0;r&lt;c;++r)a(u[r],this,e)}return!0},s.prototype.addListener=function(t,e){return f(this,t,e,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(t,e){return f(this,t,e,!0)},s.prototype.once=function(t,e){return c(e),this.on(t,p(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,p(this,t,e)),this},s.prototype.removeListener=function(t,e){var r,n,i,a,o;if(c(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,t,r.listener||e));else if(&quot;function&quot;!=typeof r){for(i=-1,a=r.length-1;a&gt;=0;a--)if(r[a]===e||r[a].listener===e){o=r[a].listener,i=a;break}if(i&lt;0)return this;0===i?r.shift():function(t,e){for(;e+1&lt;t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&amp;&amp;(n[t]=r[0]),void 0!==n.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,t,o||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&amp;&amp;(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,a=Object.keys(r);for(n=0;n&lt;a.length;++n)&quot;removeListener&quot;!==(i=a[n])&amp;&amp;this.removeAllListeners(i);return this.removeAllListeners(&quot;removeListener&quot;),this._events=Object.create(null),this._eventsCount=0,this}if(&quot;function&quot;==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n&gt;=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return&quot;function&quot;==typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount&gt;0?n(this._events):[]}},{}],111:[function(t,e,r){(function(e){(function(){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh &lt;https://feross.org&gt;
 * @license  MIT
 */
&quot;use strict&quot;;var e=t(&quot;base64-js&quot;),n=t(&quot;ieee754&quot;);r.Buffer=a,r.SlowBuffer=function(t){+t!=t&amp;&amp;(t=0);return a.alloc(+t)},r.INSPECT_MAX_BYTES=50;function i(t){if(t&gt;2147483647)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;');var e=new Uint8Array(t);return e.__proto__=a.prototype,e}function a(t,e,r){if(&quot;number&quot;==typeof t){if(&quot;string&quot;==typeof e)throw new TypeError('The &quot;string&quot; argument must be of type string. Received type number');return l(t)}return o(t,e,r)}function o(t,e,r){if(&quot;string&quot;==typeof t)return function(t,e){&quot;string&quot;==typeof e&amp;&amp;&quot;&quot;!==e||(e=&quot;utf8&quot;);if(!a.isEncoding(e))throw new TypeError(&quot;Unknown encoding: &quot;+e);var r=0|f(t,e),n=i(r),o=n.write(t,e);o!==r&amp;&amp;(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t);if(B(t,ArrayBuffer)||t&amp;&amp;B(t.buffer,ArrayBuffer))return function(t,e,r){if(e&lt;0||t.byteLength&lt;e)throw new RangeError('&quot;offset&quot; is outside of buffer bounds');if(t.byteLength&lt;e+(r||0))throw new RangeError('&quot;length&quot; is outside of buffer bounds');var n;n=void 0===e&amp;&amp;void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return n.__proto__=a.prototype,n}(t,e,r);if(&quot;number&quot;==typeof t)throw new TypeError('The &quot;value&quot; argument must not be of type number. Received type number');var n=t.valueOf&amp;&amp;t.valueOf();if(null!=n&amp;&amp;n!==t)return a.from(n,e,r);var o=function(t){if(a.isBuffer(t)){var e=0|u(t.length),r=i(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return&quot;number&quot;!=typeof t.length||N(t.length)?i(0):c(t);if(&quot;Buffer&quot;===t.type&amp;&amp;Array.isArray(t.data))return c(t.data)}(t);if(o)return o;if(&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.toPrimitive&amp;&amp;&quot;function&quot;==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive](&quot;string&quot;),e,r);throw new TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t)}function s(t){if(&quot;number&quot;!=typeof t)throw new TypeError('&quot;size&quot; argument must be of type number');if(t&lt;0)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;')}function l(t){return s(t),i(t&lt;0?0:0|u(t))}function c(t){for(var e=t.length&lt;0?0:0|u(t.length),r=i(e),n=0;n&lt;e;n+=1)r[n]=255&amp;t[n];return r}function u(t){if(t&gt;=2147483647)throw new RangeError(&quot;Attempt to allocate Buffer larger than maximum size: 0x&quot;+2147483647..toString(16)+&quot; bytes&quot;);return 0|t}function f(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||B(t,ArrayBuffer))return t.byteLength;if(&quot;string&quot;!=typeof t)throw new TypeError('The &quot;string&quot; argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length&gt;2&amp;&amp;!0===arguments[2];if(!n&amp;&amp;0===r)return 0;for(var i=!1;;)switch(e){case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:return r;case&quot;utf8&quot;:case&quot;utf-8&quot;:return D(t).length;case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return 2*r;case&quot;hex&quot;:return r&gt;&gt;&gt;1;case&quot;base64&quot;:return R(t).length;default:if(i)return n?-1:D(t).length;e=(&quot;&quot;+e).toLowerCase(),i=!0}}function h(t,e,r){var n=!1;if((void 0===e||e&lt;0)&amp;&amp;(e=0),e&gt;this.length)return&quot;&quot;;if((void 0===r||r&gt;this.length)&amp;&amp;(r=this.length),r&lt;=0)return&quot;&quot;;if((r&gt;&gt;&gt;=0)&lt;=(e&gt;&gt;&gt;=0))return&quot;&quot;;for(t||(t=&quot;utf8&quot;);;)switch(t){case&quot;hex&quot;:return A(this,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return T(this,e,r);case&quot;ascii&quot;:return k(this,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return M(this,e,r);case&quot;base64&quot;:return w(this,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return S(this,e,r);default:if(n)throw new TypeError(&quot;Unknown encoding: &quot;+t);t=(t+&quot;&quot;).toLowerCase(),n=!0}}function p(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,i){if(0===t.length)return-1;if(&quot;string&quot;==typeof r?(n=r,r=0):r&gt;2147483647?r=2147483647:r&lt;-2147483648&amp;&amp;(r=-2147483648),N(r=+r)&amp;&amp;(r=i?0:t.length-1),r&lt;0&amp;&amp;(r=t.length+r),r&gt;=t.length){if(i)return-1;r=t.length-1}else if(r&lt;0){if(!i)return-1;r=0}if(&quot;string&quot;==typeof e&amp;&amp;(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:g(t,e,r,n,i);if(&quot;number&quot;==typeof e)return e&amp;=255,&quot;function&quot;==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):g(t,[e],r,n,i);throw new TypeError(&quot;val must be string, number or Buffer&quot;)}function g(t,e,r,n,i){var a,o=1,s=t.length,l=e.length;if(void 0!==n&amp;&amp;(&quot;ucs2&quot;===(n=String(n).toLowerCase())||&quot;ucs-2&quot;===n||&quot;utf16le&quot;===n||&quot;utf-16le&quot;===n)){if(t.length&lt;2||e.length&lt;2)return-1;o=2,s/=2,l/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var u=-1;for(a=r;a&lt;s;a++)if(c(t,a)===c(e,-1===u?0:a-u)){if(-1===u&amp;&amp;(u=a),a-u+1===l)return u*o}else-1!==u&amp;&amp;(a-=a-u),u=-1}else for(r+l&gt;s&amp;&amp;(r=s-l),a=r;a&gt;=0;a--){for(var f=!0,h=0;h&lt;l;h++)if(c(t,a+h)!==c(e,h)){f=!1;break}if(f)return a}return-1}function m(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))&gt;i&amp;&amp;(n=i):n=i;var a=e.length;n&gt;a/2&amp;&amp;(n=a/2);for(var o=0;o&lt;n;++o){var s=parseInt(e.substr(2*o,2),16);if(N(s))return o;t[r+o]=s}return o}function v(t,e,r,n){return F(D(e,t.length-r),t,r,n)}function y(t,e,r,n){return F(function(t){for(var e=[],r=0;r&lt;t.length;++r)e.push(255&amp;t.charCodeAt(r));return e}(e),t,r,n)}function x(t,e,r,n){return y(t,e,r,n)}function b(t,e,r,n){return F(R(e),t,r,n)}function _(t,e,r,n){return F(function(t,e){for(var r,n,i,a=[],o=0;o&lt;t.length&amp;&amp;!((e-=2)&lt;0);++o)r=t.charCodeAt(o),n=r&gt;&gt;8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function w(t,r,n){return 0===r&amp;&amp;n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function T(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i&lt;r;){var a,o,s,l,c=t[i],u=null,f=c&gt;239?4:c&gt;223?3:c&gt;191?2:1;if(i+f&lt;=r)switch(f){case 1:c&lt;128&amp;&amp;(u=c);break;case 2:128==(192&amp;(a=t[i+1]))&amp;&amp;(l=(31&amp;c)&lt;&lt;6|63&amp;a)&gt;127&amp;&amp;(u=l);break;case 3:a=t[i+1],o=t[i+2],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;(l=(15&amp;c)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;o)&gt;2047&amp;&amp;(l&lt;55296||l&gt;57343)&amp;&amp;(u=l);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;128==(192&amp;s)&amp;&amp;(l=(15&amp;c)&lt;&lt;18|(63&amp;a)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;s)&gt;65535&amp;&amp;l&lt;1114112&amp;&amp;(u=l)}null===u?(u=65533,f=1):u&gt;65535&amp;&amp;(u-=65536,n.push(u&gt;&gt;&gt;10&amp;1023|55296),u=56320|1023&amp;u),n.push(u),i+=f}return function(t){var e=t.length;if(e&lt;=4096)return String.fromCharCode.apply(String,t);var r=&quot;&quot;,n=0;for(;n&lt;e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}r.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||&quot;undefined&quot;==typeof console||&quot;function&quot;!=typeof console.error||console.error(&quot;This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.&quot;),Object.defineProperty(a.prototype,&quot;parent&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,&quot;offset&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.species&amp;&amp;a[Symbol.species]===a&amp;&amp;Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(t,e,r){return o(t,e,r)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(t,e,r){return function(t,e,r){return s(t),t&lt;=0?i(t):void 0!==e?&quot;string&quot;==typeof r?i(t).fill(e,r):i(t).fill(e):i(t)}(t,e,r)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&amp;&amp;!0===t._isBuffer&amp;&amp;t!==a.prototype},a.compare=function(t,e){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),B(e,Uint8Array)&amp;&amp;(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError('The &quot;buf1&quot;, &quot;buf2&quot; arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i&lt;o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r&lt;n?-1:n&lt;r?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case&quot;hex&quot;:case&quot;utf8&quot;:case&quot;utf-8&quot;:case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:case&quot;base64&quot;:case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return!0;default:return!1}},a.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);var r;if(void 0===e)for(e=0,r=0;r&lt;t.length;++r)e+=t[r].length;var n=a.allocUnsafe(e),i=0;for(r=0;r&lt;t.length;++r){var o=t[r];if(B(o,Uint8Array)&amp;&amp;(o=a.from(o)),!a.isBuffer(o))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(&quot;Buffer size must be a multiple of 16-bits&quot;);for(var e=0;e&lt;t;e+=2)p(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(&quot;Buffer size must be a multiple of 32-bits&quot;);for(var e=0;e&lt;t;e+=4)p(this,e,e+3),p(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(&quot;Buffer size must be a multiple of 64-bits&quot;);for(var e=0;e&lt;t;e+=8)p(this,e,e+7),p(this,e+1,e+6),p(this,e+2,e+5),p(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?&quot;&quot;:0===arguments.length?T(this,0,t):h.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError(&quot;Argument must be a Buffer&quot;);return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t=&quot;&quot;,e=r.INSPECT_MAX_BYTES;return t=this.toString(&quot;hex&quot;,0,e).replace(/(.{2})/g,&quot;$1 &quot;).trim(),this.length&gt;e&amp;&amp;(t+=&quot; ... &quot;),&quot;&lt;Buffer &quot;+t+&quot;&gt;&quot;},a.prototype.compare=function(t,e,r,n,i){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The &quot;target&quot; argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&amp;&amp;(e=0),void 0===r&amp;&amp;(r=t?t.length:0),void 0===n&amp;&amp;(n=0),void 0===i&amp;&amp;(i=this.length),e&lt;0||r&gt;t.length||n&lt;0||i&gt;this.length)throw new RangeError(&quot;out of range index&quot;);if(n&gt;=i&amp;&amp;e&gt;=r)return 0;if(n&gt;=i)return-1;if(e&gt;=r)return 1;if(this===t)return 0;for(var o=(i&gt;&gt;&gt;=0)-(n&gt;&gt;&gt;=0),s=(r&gt;&gt;&gt;=0)-(e&gt;&gt;&gt;=0),l=Math.min(o,s),c=this.slice(n,i),u=t.slice(e,r),f=0;f&lt;l;++f)if(c[f]!==u[f]){o=c[f],s=u[f];break}return o&lt;s?-1:s&lt;o?1:0},a.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return d(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return d(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){if(void 0===e)n=&quot;utf8&quot;,r=this.length,e=0;else if(void 0===r&amp;&amp;&quot;string&quot;==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error(&quot;Buffer.write(string, encoding, offset[, length]) is no longer supported&quot;);e&gt;&gt;&gt;=0,isFinite(r)?(r&gt;&gt;&gt;=0,void 0===n&amp;&amp;(n=&quot;utf8&quot;)):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r&gt;i)&amp;&amp;(r=i),t.length&gt;0&amp;&amp;(r&lt;0||e&lt;0)||e&gt;this.length)throw new RangeError(&quot;Attempt to write outside buffer bounds&quot;);n||(n=&quot;utf8&quot;);for(var a=!1;;)switch(n){case&quot;hex&quot;:return m(this,t,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return v(this,t,e,r);case&quot;ascii&quot;:return y(this,t,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return x(this,t,e,r);case&quot;base64&quot;:return b(this,t,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return _(this,t,e,r);default:if(a)throw new TypeError(&quot;Unknown encoding: &quot;+n);n=(&quot;&quot;+n).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:&quot;Buffer&quot;,data:Array.prototype.slice.call(this._arr||this,0)}};function k(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(127&amp;t[i]);return n}function M(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(t[i]);return n}function A(t,e,r){var n=t.length;(!e||e&lt;0)&amp;&amp;(e=0),(!r||r&lt;0||r&gt;n)&amp;&amp;(r=n);for(var i=&quot;&quot;,a=e;a&lt;r;++a)i+=O(t[a]);return i}function S(t,e,r){for(var n=t.slice(e,r),i=&quot;&quot;,a=0;a&lt;n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function E(t,e,r){if(t%1!=0||t&lt;0)throw new RangeError(&quot;offset is not uint&quot;);if(t+e&gt;r)throw new RangeError(&quot;Trying to access beyond buffer length&quot;)}function C(t,e,r,n,i,o){if(!a.isBuffer(t))throw new TypeError('&quot;buffer&quot; argument must be a Buffer instance');if(e&gt;i||e&lt;o)throw new RangeError('&quot;value&quot; argument is out of bounds');if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;)}function L(t,e,r,n,i,a){if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;);if(r&lt;0)throw new RangeError(&quot;Index out of range&quot;)}function I(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||L(t,0,r,4),n.write(t,e,r,i,23,4),r+4}function P(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||L(t,0,r,8),n.write(t,e,r,i,52,8),r+8}a.prototype.slice=function(t,e){var r=this.length;(t=~~t)&lt;0?(t+=r)&lt;0&amp;&amp;(t=0):t&gt;r&amp;&amp;(t=r),(e=void 0===e?r:~~e)&lt;0?(e+=r)&lt;0&amp;&amp;(e=0):e&gt;r&amp;&amp;(e=r),e&lt;t&amp;&amp;(e=t);var n=this.subarray(t,e);return n.__proto__=a.prototype,n},a.prototype.readUIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n},a.prototype.readUIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t+--e],i=1;e&gt;0&amp;&amp;(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]|this[t+1]&lt;&lt;8},a.prototype.readUInt16BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]&lt;&lt;8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),(this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),16777216*this[t]+(this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n&gt;=(i*=128)&amp;&amp;(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n&gt;0&amp;&amp;(i*=256);)a+=this[t+--n]*i;return a&gt;=(i*=128)&amp;&amp;(a-=Math.pow(2,8*e)),a},a.prototype.readInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),128&amp;this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t]|this[t+1]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t+1]|this[t]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16|this[t+3]&lt;&lt;24},a.prototype.readInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]&lt;&lt;24|this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||C(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(i*=256);)this[e+a]=t/i&amp;255;return e+r},a.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||C(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&amp;t;--i&gt;=0&amp;&amp;(a*=256);)this[e+i]=t/a&amp;255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,1,255,0),this[e]=255&amp;t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,65535,0),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,65535,0),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,4294967295,0),this[e+3]=t&gt;&gt;&gt;24,this[e+2]=t&gt;&gt;&gt;16,this[e+1]=t&gt;&gt;&gt;8,this[e]=255&amp;t,e+4},a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,4294967295,0),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a-1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&amp;t;--a&gt;=0&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a+1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,1,127,-128),t&lt;0&amp;&amp;(t=255+t+1),this[e]=255&amp;t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,32767,-32768),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,32767,-32768),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,2147483647,-2147483648),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,this[e+2]=t&gt;&gt;&gt;16,this[e+3]=t&gt;&gt;&gt;24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,2147483647,-2147483648),t&lt;0&amp;&amp;(t=4294967295+t+1),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeFloatLE=function(t,e,r){return I(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return I(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return P(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return P(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw new TypeError(&quot;argument should be a Buffer&quot;);if(r||(r=0),n||0===n||(n=this.length),e&gt;=t.length&amp;&amp;(e=t.length),e||(e=0),n&gt;0&amp;&amp;n&lt;r&amp;&amp;(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e&lt;0)throw new RangeError(&quot;targetStart out of bounds&quot;);if(r&lt;0||r&gt;=this.length)throw new RangeError(&quot;Index out of range&quot;);if(n&lt;0)throw new RangeError(&quot;sourceEnd out of bounds&quot;);n&gt;this.length&amp;&amp;(n=this.length),t.length-e&lt;n-r&amp;&amp;(n=t.length-e+r);var i=n-r;if(this===t&amp;&amp;&quot;function&quot;==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&amp;&amp;r&lt;e&amp;&amp;e&lt;n)for(var o=i-1;o&gt;=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},a.prototype.fill=function(t,e,r,n){if(&quot;string&quot;==typeof t){if(&quot;string&quot;==typeof e?(n=e,e=0,r=this.length):&quot;string&quot;==typeof r&amp;&amp;(n=r,r=this.length),void 0!==n&amp;&amp;&quot;string&quot;!=typeof n)throw new TypeError(&quot;encoding must be a string&quot;);if(&quot;string&quot;==typeof n&amp;&amp;!a.isEncoding(n))throw new TypeError(&quot;Unknown encoding: &quot;+n);if(1===t.length){var i=t.charCodeAt(0);(&quot;utf8&quot;===n&amp;&amp;i&lt;128||&quot;latin1&quot;===n)&amp;&amp;(t=i)}}else&quot;number&quot;==typeof t&amp;&amp;(t&amp;=255);if(e&lt;0||this.length&lt;e||this.length&lt;r)throw new RangeError(&quot;Out of range index&quot;);if(r&lt;=e)return this;var o;if(e&gt;&gt;&gt;=0,r=void 0===r?this.length:r&gt;&gt;&gt;0,t||(t=0),&quot;number&quot;==typeof t)for(o=e;o&lt;r;++o)this[o]=t;else{var s=a.isBuffer(t)?t:a.from(t,n),l=s.length;if(0===l)throw new TypeError('The value &quot;'+t+'&quot; is invalid for argument &quot;value&quot;');for(o=0;o&lt;r-e;++o)this[o+e]=s[o%l]}return this};var z=/[^+/0-9A-Za-z-_]/g;function O(t){return t&lt;16?&quot;0&quot;+t.toString(16):t.toString(16)}function D(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o&lt;n;++o){if((r=t.charCodeAt(o))&gt;55295&amp;&amp;r&lt;57344){if(!i){if(r&gt;56319){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}if(o+1===n){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}i=r;continue}if(r&lt;56320){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189),i=r;continue}r=65536+(i-55296&lt;&lt;10|r-56320)}else i&amp;&amp;(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);if(i=null,r&lt;128){if((e-=1)&lt;0)break;a.push(r)}else if(r&lt;2048){if((e-=2)&lt;0)break;a.push(r&gt;&gt;6|192,63&amp;r|128)}else if(r&lt;65536){if((e-=3)&lt;0)break;a.push(r&gt;&gt;12|224,r&gt;&gt;6&amp;63|128,63&amp;r|128)}else{if(!(r&lt;1114112))throw new Error(&quot;Invalid code point&quot;);if((e-=4)&lt;0)break;a.push(r&gt;&gt;18|240,r&gt;&gt;12&amp;63|128,r&gt;&gt;6&amp;63|128,63&amp;r|128)}}return a}function R(t){return e.toByteArray(function(t){if((t=(t=t.split(&quot;=&quot;)[0]).trim().replace(z,&quot;&quot;)).length&lt;2)return&quot;&quot;;for(;t.length%4!=0;)t+=&quot;=&quot;;return t}(t))}function F(t,e,r,n){for(var i=0;i&lt;n&amp;&amp;!(i+r&gt;=e.length||i&gt;=t.length);++i)e[i+r]=t[i];return i}function B(t,e){return t instanceof e||null!=t&amp;&amp;null!=t.constructor&amp;&amp;null!=t.constructor.name&amp;&amp;t.constructor.name===e.name}function N(t){return t!=t}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;base64-js&quot;:79,buffer:111,ieee754:442}],112:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/monotone&quot;),i=t(&quot;./lib/triangulation&quot;),a=t(&quot;./lib/delaunay&quot;),o=t(&quot;./lib/filter&quot;);function s(t){return[Math.min(t[0],t[1]),Math.max(t[0],t[1])]}function l(t,e){return t[0]-e[0]||t[1]-e[1]}function c(t,e,r){return e in t?t[e]:r}e.exports=function(t,e,r){Array.isArray(e)?(r=r||{},e=e||[]):(r=e||{},e=[]);var u=!!c(r,&quot;delaunay&quot;,!0),f=!!c(r,&quot;interior&quot;,!0),h=!!c(r,&quot;exterior&quot;,!0),p=!!c(r,&quot;infinity&quot;,!1);if(!f&amp;&amp;!h||0===t.length)return[];var d=n(t,e);if(u||f!==h||p){for(var g=i(t.length,function(t){return t.map(s).sort(l)}(e)),m=0;m&lt;d.length;++m){var v=d[m];g.addTriangle(v[0],v[1],v[2])}return u&amp;&amp;a(t,g),h?f?p?o(g,0,p):g.cells():o(g,1,p):o(g,-1)}return d}},{&quot;./lib/delaunay&quot;:113,&quot;./lib/filter&quot;:114,&quot;./lib/monotone&quot;:115,&quot;./lib/triangulation&quot;:116}],113:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-in-sphere&quot;)[4];t(&quot;binary-search-bounds&quot;);function i(t,e,r,i,a,o){var s=e.opposite(i,a);if(!(s&lt;0)){if(a&lt;i){var l=i;i=a,a=l,l=o,o=s,s=l}e.isConstraint(i,a)||n(t[i],t[a],t[o],t[s])&lt;0&amp;&amp;r.push(i,a)}}e.exports=function(t,e){for(var r=[],a=t.length,o=e.stars,s=0;s&lt;a;++s)for(var l=o[s],c=1;c&lt;l.length;c+=2){if(!((p=l[c])&lt;s)&amp;&amp;!e.isConstraint(s,p)){for(var u=l[c-1],f=-1,h=1;h&lt;l.length;h+=2)if(l[h-1]===p){f=l[h];break}f&lt;0||n(t[s],t[p],t[u],t[f])&lt;0&amp;&amp;r.push(s,p)}}for(;r.length&gt;0;){for(var p=r.pop(),d=(s=r.pop(),u=-1,f=-1,l=o[s],1);d&lt;l.length;d+=2){var g=l[d-1],m=l[d];g===p?f=m:m===p&amp;&amp;(u=g)}u&lt;0||f&lt;0||(n(t[s],t[p],t[u],t[f])&gt;=0||(e.flip(s,p),i(t,e,r,u,s,f),i(t,e,r,s,f,u),i(t,e,r,f,p,u),i(t,e,r,p,u,f)))}}},{&quot;binary-search-bounds&quot;:96,&quot;robust-in-sphere&quot;:546}],114:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;binary-search-bounds&quot;);function a(t,e,r,n,i,a,o){this.cells=t,this.neighbor=e,this.flags=n,this.constraint=r,this.active=i,this.next=a,this.boundary=o}function o(t,e){return t[0]-e[0]||t[1]-e[1]||t[2]-e[2]}e.exports=function(t,e,r){var n=function(t,e){for(var r=t.cells(),n=r.length,i=0;i&lt;n;++i){var s=(v=r[i])[0],l=v[1],c=v[2];l&lt;c?l&lt;s&amp;&amp;(v[0]=l,v[1]=c,v[2]=s):c&lt;s&amp;&amp;(v[0]=c,v[1]=s,v[2]=l)}r.sort(o);var u=new Array(n);for(i=0;i&lt;u.length;++i)u[i]=0;var f=[],h=[],p=new Array(3*n),d=new Array(3*n),g=null;e&amp;&amp;(g=[]);var m=new a(r,p,d,u,f,h,g);for(i=0;i&lt;n;++i)for(var v=r[i],y=0;y&lt;3;++y){s=v[y],l=v[(y+1)%3];var x=p[3*i+y]=m.locate(l,s,t.opposite(l,s)),b=d[3*i+y]=t.isConstraint(s,l);x&lt;0&amp;&amp;(b?h.push(i):(f.push(i),u[i]=1),e&amp;&amp;g.push([l,s,-1]))}return m}(t,r);if(0===e)return r?n.cells.concat(n.boundary):n.cells;var i=1,s=n.active,l=n.next,c=n.flags,u=n.cells,f=n.constraint,h=n.neighbor;for(;s.length&gt;0||l.length&gt;0;){for(;s.length&gt;0;){var p=s.pop();if(c[p]!==-i){c[p]=i;u[p];for(var d=0;d&lt;3;++d){var g=h[3*p+d];g&gt;=0&amp;&amp;0===c[g]&amp;&amp;(f[3*p+d]?l.push(g):(s.push(g),c[g]=i))}}}var m=l;l=s,s=m,l.length=0,i=-i}var v=function(t,e,r){for(var n=0,i=0;i&lt;t.length;++i)e[i]===r&amp;&amp;(t[n++]=t[i]);return t.length=n,t}(u,c,e);if(r)return v.concat(n.boundary);return v},a.prototype.locate=(n=[0,0,0],function(t,e,r){var a=t,s=e,l=r;return e&lt;r?e&lt;t&amp;&amp;(a=e,s=r,l=t):r&lt;t&amp;&amp;(a=r,s=t,l=e),a&lt;0?-1:(n[0]=a,n[1]=s,n[2]=l,i.eq(this.cells,n,o))})},{&quot;binary-search-bounds&quot;:96}],115:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;robust-orientation&quot;)[3];function a(t,e,r,n,i){this.a=t,this.b=e,this.idx=r,this.lowerIds=n,this.upperIds=i}function o(t,e,r,n){this.a=t,this.b=e,this.type=r,this.idx=n}function s(t,e){var r=t.a[0]-e.a[0]||t.a[1]-e.a[1]||t.type-e.type;return r||(0!==t.type&amp;&amp;(r=i(t.a,t.b,e.b))?r:t.idx-e.idx)}function l(t,e){return i(t.a,t.b,e)}function c(t,e,r,a,o){for(var s=n.lt(e,a,l),c=n.gt(e,a,l),u=s;u&lt;c;++u){for(var f=e[u],h=f.lowerIds,p=h.length;p&gt;1&amp;&amp;i(r[h[p-2]],r[h[p-1]],a)&gt;0;)t.push([h[p-1],h[p-2],o]),p-=1;h.length=p,h.push(o);var d=f.upperIds;for(p=d.length;p&gt;1&amp;&amp;i(r[d[p-2]],r[d[p-1]],a)&lt;0;)t.push([d[p-2],d[p-1],o]),p-=1;d.length=p,d.push(o)}}function u(t,e){var r;return(r=t.a[0]&lt;e.a[0]?i(t.a,t.b,e.a):i(e.b,e.a,t.a))?r:(r=e.b[0]&lt;t.b[0]?i(t.a,t.b,e.b):i(e.b,e.a,t.b))||t.idx-e.idx}function f(t,e,r){var i=n.le(t,r,u),o=t[i],s=o.upperIds,l=s[s.length-1];o.upperIds=[l],t.splice(i+1,0,new a(r.a,r.b,r.idx,[l],s))}function h(t,e,r){var i=r.a;r.a=r.b,r.b=i;var a=n.eq(t,r,u),o=t[a];t[a-1].upperIds=o.upperIds,t.splice(a,1)}e.exports=function(t,e){for(var r=t.length,n=e.length,i=[],l=0;l&lt;r;++l)i.push(new o(t[l],null,0,l));for(l=0;l&lt;n;++l){var u=e[l],p=t[u[0]],d=t[u[1]];p[0]&lt;d[0]?i.push(new o(p,d,2,l),new o(d,p,1,l)):p[0]&gt;d[0]&amp;&amp;i.push(new o(d,p,2,l),new o(p,d,1,l))}i.sort(s);for(var g=i[0].a[0]-(1+Math.abs(i[0].a[0]))*Math.pow(2,-52),m=[new a([g,1],[g,0],-1,[],[],[],[])],v=[],y=(l=0,i.length);l&lt;y;++l){var x=i[l],b=x.type;0===b?c(v,m,t,x.a,x.idx):2===b?f(m,t,x):h(m,t,x)}return v}},{&quot;binary-search-bounds&quot;:96,&quot;robust-orientation&quot;:548}],116:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;);function i(t,e){this.stars=t,this.edges=e}e.exports=function(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=[];return new i(r,e)};var a=i.prototype;function o(t,e,r){for(var n=1,i=t.length;n&lt;i;n+=2)if(t[n-1]===e&amp;&amp;t[n]===r)return t[n-1]=t[i-2],t[n]=t[i-1],void(t.length=i-2)}a.isConstraint=function(){var t=[0,0];function e(t,e){return t[0]-e[0]||t[1]-e[1]}return function(r,i){return t[0]=Math.min(r,i),t[1]=Math.max(r,i),n.eq(this.edges,t,e)&gt;=0}}(),a.removeTriangle=function(t,e,r){var n=this.stars;o(n[t],e,r),o(n[e],r,t),o(n[r],t,e)},a.addTriangle=function(t,e,r){var n=this.stars;n[t].push(e,r),n[e].push(r,t),n[r].push(t,e)},a.opposite=function(t,e){for(var r=this.stars[e],n=1,i=r.length;n&lt;i;n+=2)if(r[n]===t)return r[n-1];return-1},a.flip=function(t,e){var r=this.opposite(t,e),n=this.opposite(e,t);this.removeTriangle(t,e,r),this.removeTriangle(e,t,n),this.addTriangle(t,n,r),this.addTriangle(e,r,n)},a.edges=function(){for(var t=this.stars,e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;a+=2)e.push([i[a],i[a+1]]);return e},a.cells=function(){for(var t=this.stars,e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;a+=2){var s=i[a],l=i[a+1];r&lt;Math.min(s,l)&amp;&amp;e.push([r,s,l])}return e}},{&quot;binary-search-bounds&quot;:96}],117:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=1,r=1;r&lt;t.length;++r)for(var n=0;n&lt;r;++n)if(t[r]&lt;t[n])e=-e;else if(t[n]===t[r])return 0;return e}},{}],118:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;dup&quot;),i=t(&quot;robust-linear-solve&quot;);function a(t,e){for(var r=0,n=t.length,i=0;i&lt;n;++i)r+=t[i]*e[i];return r}function o(t){var e=t.length;if(0===e)return[];t[0].length;var r=n([t.length+1,t.length+1],1),o=n([t.length+1],1);r[e][e]=0;for(var s=0;s&lt;e;++s){for(var l=0;l&lt;=s;++l)r[l][s]=r[s][l]=2*a(t[s],t[l]);o[s]=a(t[s],t[s])}var c=i(r,o),u=0,f=c[e+1];for(s=0;s&lt;f.length;++s)u+=f[s];var h=new Array(e);for(s=0;s&lt;e;++s){f=c[s];var p=0;for(l=0;l&lt;f.length;++l)p+=f[l];h[s]=p/u}return h}function s(t){if(0===t.length)return[];for(var e=t[0].length,r=n([e]),i=o(t),a=0;a&lt;t.length;++a)for(var s=0;s&lt;e;++s)r[s]+=t[a][s]*i[a];return r}s.barycenetric=o,e.exports=s},{dup:176,&quot;robust-linear-solve&quot;:547}],119:[function(t,e,r){e.exports=function(t){for(var e=n(t),r=0,i=0;i&lt;t.length;++i)for(var a=t[i],o=0;o&lt;e.length;++o)r+=Math.pow(a[o]-e[o],2);return Math.sqrt(r/t.length)};var n=t(&quot;circumcenter&quot;)},{circumcenter:118}],120:[function(t,e,r){e.exports=function(t,e,r){return e&lt;r?t&lt;e?e:t&gt;r?r:t:t&lt;r?r:t&gt;e?e:t}},{}],121:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n;if(r){n=e;for(var i=new Array(e.length),a=0;a&lt;e.length;++a){var o=e[a];i[a]=[o[0],o[1],r[a]]}e=i}var s=function(t,e,r){var n=d(t,[],p(t));return v(e,n,r),!!n}(t,e,!!r);for(;y(t,e,!!r);)s=!0;if(r&amp;&amp;s){n.length=0,r.length=0;for(a=0;a&lt;e.length;++a){o=e[a];n.push([o[0],o[1]]),r.push(o[2])}}return s};var n=t(&quot;union-find&quot;),i=t(&quot;box-intersect&quot;),a=t(&quot;robust-segment-intersect&quot;),o=t(&quot;big-rat&quot;),s=t(&quot;big-rat/cmp&quot;),l=t(&quot;big-rat/to-float&quot;),c=t(&quot;rat-vec&quot;),u=t(&quot;nextafter&quot;),f=t(&quot;./lib/rat-seg-intersect&quot;);function h(t){var e=l(t);return[u(e,-1/0),u(e,1/0)]}function p(t){for(var e=new Array(t.length),r=0;r&lt;t.length;++r){var n=t[r];e[r]=[u(n[0],-1/0),u(n[1],-1/0),u(n[0],1/0),u(n[1],1/0)]}return e}function d(t,e,r){for(var a=e.length,o=new n(a),s=[],l=0;l&lt;e.length;++l){var c=e[l],f=h(c[0]),p=h(c[1]);s.push([u(f[0],-1/0),u(p[0],-1/0),u(f[1],1/0),u(p[1],1/0)])}i(s,(function(t,e){o.link(t,e)}));var d=!0,g=new Array(a);for(l=0;l&lt;a;++l){(v=o.find(l))!==l&amp;&amp;(d=!1,t[v]=[Math.min(t[l][0],t[v][0]),Math.min(t[l][1],t[v][1])])}if(d)return null;var m=0;for(l=0;l&lt;a;++l){var v;(v=o.find(l))===l?(g[l]=m,t[m++]=t[l]):g[l]=-1}t.length=m;for(l=0;l&lt;a;++l)g[l]&lt;0&amp;&amp;(g[l]=g[o.find(l)]);return g}function g(t,e){return t[0]-e[0]||t[1]-e[1]}function m(t,e){var r=t[0]-e[0]||t[1]-e[1];return r||(t[2]&lt;e[2]?-1:t[2]&gt;e[2]?1:0)}function v(t,e,r){if(0!==t.length){if(e)for(var n=0;n&lt;t.length;++n){var i=e[(o=t[n])[0]],a=e[o[1]];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}else for(n=0;n&lt;t.length;++n){var o;i=(o=t[n])[0],a=o[1];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}r?t.sort(m):t.sort(g);var s=1;for(n=1;n&lt;t.length;++n){var l=t[n-1],c=t[n];(c[0]!==l[0]||c[1]!==l[1]||r&amp;&amp;c[2]!==l[2])&amp;&amp;(t[s++]=c)}t.length=s}}function y(t,e,r){var n=function(t,e){for(var r=new Array(e.length),n=0;n&lt;e.length;++n){var i=e[n],a=t[i[0]],o=t[i[1]];r[n]=[u(Math.min(a[0],o[0]),-1/0),u(Math.min(a[1],o[1]),-1/0),u(Math.max(a[0],o[0]),1/0),u(Math.max(a[1],o[1]),1/0)]}return r}(t,e),h=function(t,e,r){var n=[];return i(r,(function(r,i){var o=e[r],s=e[i];if(o[0]!==s[0]&amp;&amp;o[0]!==s[1]&amp;&amp;o[1]!==s[0]&amp;&amp;o[1]!==s[1]){var l=t[o[0]],c=t[o[1]],u=t[s[0]],f=t[s[1]];a(l,c,u,f)&amp;&amp;n.push([r,i])}})),n}(t,e,n),g=p(t),m=function(t,e,r,n){var o=[];return i(r,n,(function(r,n){var i=e[r];if(i[0]!==n&amp;&amp;i[1]!==n){var s=t[n],l=t[i[0]],c=t[i[1]];a(l,c,s,s)&amp;&amp;o.push([r,n])}})),o}(t,e,n,g),y=d(t,function(t,e,r,n,i){var a,u,h=t.map((function(t){return[o(t[0]),o(t[1])]}));for(a=0;a&lt;r.length;++a){var p=r[a];u=p[0];var d=p[1],g=e[u],m=e[d],v=f(c(t[g[0]]),c(t[g[1]]),c(t[m[0]]),c(t[m[1]]));if(v){var y=t.length;t.push([l(v[0]),l(v[1])]),h.push(v),n.push([u,y],[d,y])}}for(n.sort((function(t,e){if(t[0]!==e[0])return t[0]-e[0];var r=h[t[1]],n=h[e[1]];return s(r[0],n[0])||s(r[1],n[1])})),a=n.length-1;a&gt;=0;--a){var x=e[u=(S=n[a])[0]],b=x[0],_=x[1],w=t[b],T=t[_];if((w[0]-T[0]||w[1]-T[1])&lt;0){var k=b;b=_,_=k}x[0]=b;var M,A=x[1]=S[1];for(i&amp;&amp;(M=x[2]);a&gt;0&amp;&amp;n[a-1][0]===u;){var S,E=(S=n[--a])[1];i?e.push([A,E,M]):e.push([A,E]),A=E}i?e.push([A,_,M]):e.push([A,_])}return h}(t,e,h,m,r));return v(e,y,r),!!y||(h.length&gt;0||m.length&gt;0)}},{&quot;./lib/rat-seg-intersect&quot;:122,&quot;big-rat&quot;:83,&quot;big-rat/cmp&quot;:81,&quot;big-rat/to-float&quot;:95,&quot;box-intersect&quot;:101,nextafter:496,&quot;rat-vec&quot;:530,&quot;robust-segment-intersect&quot;:551,&quot;union-find&quot;:596}],122:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var a=s(e,t),f=s(n,r),h=u(a,f);if(0===o(h))return null;var p=s(t,r),d=u(f,p),g=i(d,h),m=c(a,g);return l(t,m)};var n=t(&quot;big-rat/mul&quot;),i=t(&quot;big-rat/div&quot;),a=t(&quot;big-rat/sub&quot;),o=t(&quot;big-rat/sign&quot;),s=t(&quot;rat-vec/sub&quot;),l=t(&quot;rat-vec/add&quot;),c=t(&quot;rat-vec/muls&quot;);function u(t,e){return a(n(t[0],e[1]),n(t[1],e[0]))}},{&quot;big-rat/div&quot;:82,&quot;big-rat/mul&quot;:92,&quot;big-rat/sign&quot;:93,&quot;big-rat/sub&quot;:94,&quot;rat-vec/add&quot;:529,&quot;rat-vec/muls&quot;:531,&quot;rat-vec/sub&quot;:532}],123:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;clamp&quot;);function i(t,e){null==e&amp;&amp;(e=!0);var r=t[0],i=t[1],a=t[2],o=t[3];return null==o&amp;&amp;(o=e?1:255),e&amp;&amp;(r*=255,i*=255,a*=255,o*=255),16777216*(r=255&amp;n(r,0,255))+((i=255&amp;n(i,0,255))&lt;&lt;16)+((a=255&amp;n(a,0,255))&lt;&lt;8)+(o=255&amp;n(o,0,255))}e.exports=i,e.exports.to=i,e.exports.from=function(t,e){var r=(t=+t)&gt;&gt;&gt;24,n=(16711680&amp;t)&gt;&gt;&gt;16,i=(65280&amp;t)&gt;&gt;&gt;8,a=255&amp;t;return!1===e?[r,n,i,a]:[r/255,n/255,i/255,a/255]}},{clamp:120}],124:[function(t,e,r){&quot;use strict&quot;;e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],125:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-rgba&quot;),i=t(&quot;clamp&quot;),a=t(&quot;dtype&quot;);e.exports=function(t,e){&quot;float&quot;!==e&amp;&amp;e||(e=&quot;array&quot;),&quot;uint&quot;===e&amp;&amp;(e=&quot;uint8&quot;),&quot;uint_clamped&quot;===e&amp;&amp;(e=&quot;uint8_clamped&quot;);var r=new(a(e))(4),o=&quot;uint8&quot;!==e&amp;&amp;&quot;uint8_clamped&quot;!==e;return t.length&amp;&amp;&quot;string&quot;!=typeof t||((t=n(t))[0]/=255,t[1]/=255,t[2]/=255),function(t){return t instanceof Uint8Array||t instanceof Uint8ClampedArray||!!(Array.isArray(t)&amp;&amp;(t[0]&gt;1||0===t[0])&amp;&amp;(t[1]&gt;1||0===t[1])&amp;&amp;(t[2]&gt;1||0===t[2])&amp;&amp;(!t[3]||t[3]&gt;1))}(t)?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:255,o&amp;&amp;(r[0]/=255,r[1]/=255,r[2]/=255,r[3]/=255),r):(o?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:1):(r[0]=i(Math.floor(255*t[0]),0,255),r[1]=i(Math.floor(255*t[1]),0,255),r[2]=i(Math.floor(255*t[2]),0,255),r[3]=null==t[3]?255:i(Math.floor(255*t[3]),0,255)),r)}},{clamp:120,&quot;color-rgba&quot;:127,dtype:175}],126:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;color-name&quot;),i=t(&quot;is-plain-obj&quot;),a=t(&quot;defined&quot;);e.exports=function(t){var e,s,l=[],c=1;if(&quot;string&quot;==typeof t)if(n[t])l=n[t].slice(),s=&quot;rgb&quot;;else if(&quot;transparent&quot;===t)c=0,s=&quot;rgb&quot;,l=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var u=(p=t.slice(1)).length;c=1,u&lt;=4?(l=[parseInt(p[0]+p[0],16),parseInt(p[1]+p[1],16),parseInt(p[2]+p[2],16)],4===u&amp;&amp;(c=parseInt(p[3]+p[3],16)/255)):(l=[parseInt(p[0]+p[1],16),parseInt(p[2]+p[3],16),parseInt(p[4]+p[5],16)],8===u&amp;&amp;(c=parseInt(p[6]+p[7],16)/255)),l[0]||(l[0]=0),l[1]||(l[1]=0),l[2]||(l[2]=0),s=&quot;rgb&quot;}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(t)){var f=e[1],h=&quot;rgb&quot;===f,p=f.replace(/a$/,&quot;&quot;);s=p;u=&quot;cmyk&quot;===p?4:&quot;gray&quot;===p?1:3;l=e[2].trim().split(/\s*,\s*/).map((function(t,e){if(/%$/.test(t))return e===u?parseFloat(t)/100:&quot;rgb&quot;===p?255*parseFloat(t)/100:parseFloat(t);if(&quot;h&quot;===p[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==o[t])return o[t]}return parseFloat(t)})),f===p&amp;&amp;l.push(1),c=h||void 0===l[u]?1:l[u],l=l.slice(0,u)}else t.length&gt;10&amp;&amp;/[0-9](?:\s|\/)/.test(t)&amp;&amp;(l=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),s=t.match(/([a-z])/gi).join(&quot;&quot;).toLowerCase());else if(isNaN(t))if(i(t)){var d=a(t.r,t.red,t.R,null);null!==d?(s=&quot;rgb&quot;,l=[d,a(t.g,t.green,t.G),a(t.b,t.blue,t.B)]):(s=&quot;hsl&quot;,l=[a(t.h,t.hue,t.H),a(t.s,t.saturation,t.S),a(t.l,t.lightness,t.L,t.b,t.brightness)]),c=a(t.a,t.alpha,t.opacity,1),null!=t.opacity&amp;&amp;(c/=100)}else(Array.isArray(t)||r.ArrayBuffer&amp;&amp;ArrayBuffer.isView&amp;&amp;ArrayBuffer.isView(t))&amp;&amp;(l=[t[0],t[1],t[2]],s=&quot;rgb&quot;,c=4===t.length?t[3]:1);else s=&quot;rgb&quot;,l=[t&gt;&gt;&gt;16,(65280&amp;t)&gt;&gt;&gt;8,255&amp;t];return{space:s,values:l,alpha:c}};var o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;color-name&quot;:124,defined:170,&quot;is-plain-obj&quot;:469}],127:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-parse&quot;),i=t(&quot;color-space/hsl&quot;),a=t(&quot;clamp&quot;);e.exports=function(t){var e,r=n(t);return r.space?((e=Array(3))[0]=a(r.values[0],0,255),e[1]=a(r.values[1],0,255),e[2]=a(r.values[2],0,255),&quot;h&quot;===r.space[0]&amp;&amp;(e=i.rgb(e)),e.push(a(r.alpha,0,1)),e):[]}},{clamp:120,&quot;color-parse&quot;:126,&quot;color-space/hsl&quot;:128}],128:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./rgb&quot;);e.exports={name:&quot;hsl&quot;,min:[0,0,0],max:[360,100,100],channel:[&quot;hue&quot;,&quot;saturation&quot;,&quot;lightness&quot;],alias:[&quot;HSL&quot;],rgb:function(t){var e,r,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[a=255*l,a,a];e=2*l-(r=l&lt;.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c&lt;3;c++)(n=o+1/3*-(c-1))&lt;0?n++:n&gt;1&amp;&amp;n--,a=6*n&lt;1?e+6*(r-e)*n:2*n&lt;1?r:3*n&lt;2?e+(r-e)*(2/3-n)*6:e,i[c]=255*a;return i}},n.hsl=function(t){var e,r,n=t[0]/255,i=t[1]/255,a=t[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o;return s===o?e=0:n===s?e=(i-a)/l:i===s?e=2+(a-n)/l:a===s&amp;&amp;(e=4+(n-i)/l),(e=Math.min(60*e,360))&lt;0&amp;&amp;(e+=360),r=(o+s)/2,[e,100*(s===o?0:r&lt;=.5?l/(s+o):l/(2-s-o)),100*r]}},{&quot;./rgb&quot;:129}],129:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;rgb&quot;,min:[0,0,0],max:[255,255,255],channel:[&quot;red&quot;,&quot;green&quot;,&quot;blue&quot;],alias:[&quot;RGB&quot;]}},{}],130:[function(t,e,r){e.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],cool:[{index:0,rgb:[0,255,255]},{index:1,rgb:[255,0,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],&quot;rainbow-soft&quot;:[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],&quot;freesurface-blue&quot;:[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],&quot;freesurface-red&quot;:[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],&quot;velocity-blue&quot;:[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],&quot;velocity-green&quot;:[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},{}],131:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./colorScale&quot;),i=t(&quot;lerp&quot;);function a(t){return[t[0]/255,t[1]/255,t[2]/255,t[3]]}function o(t){for(var e,r=&quot;#&quot;,n=0;n&lt;3;++n)r+=(&quot;00&quot;+(e=(e=t[n]).toString(16))).substr(e.length);return r}function s(t){return&quot;rgba(&quot;+t.join(&quot;,&quot;)+&quot;)&quot;}e.exports=function(t){var e,r,l,c,u,f,h,p,d,g;t||(t={});p=(t.nshades||72)-1,h=t.format||&quot;hex&quot;,(f=t.colormap)||(f=&quot;jet&quot;);if(&quot;string&quot;==typeof f){if(f=f.toLowerCase(),!n[f])throw Error(f+&quot; not a supported colorscale&quot;);u=n[f]}else{if(!Array.isArray(f))throw Error(&quot;unsupported colormap option&quot;,f);u=f.slice()}if(u.length&gt;p+1)throw new Error(f+&quot; map requires nshades to be at least size &quot;+u.length);d=Array.isArray(t.alpha)?2!==t.alpha.length?[1,1]:t.alpha.slice():&quot;number&quot;==typeof t.alpha?[t.alpha,t.alpha]:[1,1];e=u.map((function(t){return Math.round(t.index*p)})),d[0]=Math.min(Math.max(d[0],0),1),d[1]=Math.min(Math.max(d[1],0),1);var m=u.map((function(t,e){var r=u[e].index,n=u[e].rgb.slice();return 4===n.length&amp;&amp;n[3]&gt;=0&amp;&amp;n[3]&lt;=1||(n[3]=d[0]+(d[1]-d[0])*r),n})),v=[];for(g=0;g&lt;e.length-1;++g){c=e[g+1]-e[g],r=m[g],l=m[g+1];for(var y=0;y&lt;c;y++){var x=y/c;v.push([Math.round(i(r[0],l[0],x)),Math.round(i(r[1],l[1],x)),Math.round(i(r[2],l[2],x)),i(r[3],l[3],x)])}}v.push(u[u.length-1].rgb.concat(d[1])),&quot;hex&quot;===h?v=v.map(o):&quot;rgbaString&quot;===h?v=v.map(s):&quot;float&quot;===h&amp;&amp;(v=v.map(a));return v}},{&quot;./colorScale&quot;:130,lerp:472}],132:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a){var o=n(e,r,a);if(0===o){var s=i(n(t,e,r)),c=i(n(t,e,a));if(s===c){if(0===s){var u=l(t,e,r),f=l(t,e,a);return u===f?0:u?1:-1}return 0}return 0===c?s&gt;0||l(t,e,a)?-1:1:0===s?c&gt;0||l(t,e,r)?1:-1:i(c-s)}var h=n(t,e,r);return h&gt;0?o&gt;0&amp;&amp;n(t,e,a)&gt;0?1:-1:h&lt;0?o&gt;0||n(t,e,a)&gt;0?1:-1:n(t,e,a)&gt;0||l(t,e,r)?1:-1};var n=t(&quot;robust-orientation&quot;),i=t(&quot;signum&quot;),a=t(&quot;two-sum&quot;),o=t(&quot;robust-product&quot;),s=t(&quot;robust-sum&quot;);function l(t,e,r){var n=a(t[0],-e[0]),i=a(t[1],-e[1]),l=a(r[0],-e[0]),c=a(r[1],-e[1]),u=s(o(n,l),o(i,c));return u[u.length-1]&gt;=0}},{&quot;robust-orientation&quot;:548,&quot;robust-product&quot;:549,&quot;robust-sum&quot;:553,signum:554,&quot;two-sum&quot;:583}],133:[function(t,e,r){e.exports=function(t,e){var r=t.length,a=t.length-e.length;if(a)return a;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return t[0]+t[1]-e[0]-e[1]||n(t[0],t[1])-n(e[0],e[1]);case 3:var o=t[0]+t[1],s=e[0]+e[1];if(a=o+t[2]-(s+e[2]))return a;var l=n(t[0],t[1]),c=n(e[0],e[1]);return n(l,t[2])-n(c,e[2])||n(l+t[2],o)-n(c+e[2],s);case 4:var u=t[0],f=t[1],h=t[2],p=t[3],d=e[0],g=e[1],m=e[2],v=e[3];return u+f+h+p-(d+g+m+v)||n(u,f,h,p)-n(d,g,m,v,d)||n(u+f,u+h,u+p,f+h,f+p,h+p)-n(d+g,d+m,d+v,g+m,g+v,m+v)||n(u+f+h,u+f+p,u+h+p,f+h+p)-n(d+g+m,d+g+v,d+m+v,g+m+v);default:for(var y=t.slice().sort(i),x=e.slice().sort(i),b=0;b&lt;r;++b)if(a=y[b]-x[b])return a;return 0}};var n=Math.min;function i(t,e){return t-e}},{}],134:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;compare-cell&quot;),i=t(&quot;cell-orientation&quot;);e.exports=function(t,e){return n(t,e)||i(t)-i(e)}},{&quot;cell-orientation&quot;:117,&quot;compare-cell&quot;:133}],135:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/ch1d&quot;),i=t(&quot;./lib/ch2d&quot;),a=t(&quot;./lib/chnd&quot;);e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[[0]];var r=t[0].length;if(0===r)return[];if(1===r)return n(t);if(2===r)return i(t);return a(t,r)}},{&quot;./lib/ch1d&quot;:136,&quot;./lib/ch2d&quot;:137,&quot;./lib/chnd&quot;:138}],136:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=0,r=0,n=1;n&lt;t.length;++n)t[n][0]&lt;t[e][0]&amp;&amp;(e=n),t[n][0]&gt;t[r][0]&amp;&amp;(r=n);return e&lt;r?[[e],[r]]:e&gt;r?[[r],[e]]:[[e]]}},{}],137:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=n(t),r=e.length;if(r&lt;=2)return[];for(var i=new Array(r),a=e[r-1],o=0;o&lt;r;++o){var s=e[o];i[o]=[a,s],a=s}return i};var n=t(&quot;monotone-convex-hull-2d&quot;)},{&quot;monotone-convex-hull-2d&quot;:482}],138:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){try{return n(t,!0)}catch(o){var r=i(t);if(r.length&lt;=e)return[];var a=function(t,e){for(var r=t.length,n=new Array(r),i=0;i&lt;e.length;++i)n[i]=t[e[i]];var a=e.length;for(i=0;i&lt;r;++i)e.indexOf(i)&lt;0&amp;&amp;(n[a++]=t[i]);return n}(t,r);return function(t,e){for(var r=t.length,n=e.length,i=0;i&lt;r;++i)for(var a=t[i],o=0;o&lt;a.length;++o){var s=a[o];if(s&lt;n)a[o]=e[s];else{s-=n;for(var l=0;l&lt;n;++l)s&gt;=e[l]&amp;&amp;(s+=1);a[o]=s}}return t}(n(a,!0),r)}};var n=t(&quot;incremental-convex-hull&quot;),i=t(&quot;affine-hull&quot;)},{&quot;affine-hull&quot;:67,&quot;incremental-convex-hull&quot;:459}],139:[function(t,e,r){e.exports={AFG:&quot;afghan&quot;,ALA:&quot;\\b\\wland&quot;,ALB:&quot;albania&quot;,DZA:&quot;algeria&quot;,ASM:&quot;^(?=.*americ).*samoa&quot;,AND:&quot;andorra&quot;,AGO:&quot;angola&quot;,AIA:&quot;anguill?a&quot;,ATA:&quot;antarctica&quot;,ATG:&quot;antigua&quot;,ARG:&quot;argentin&quot;,ARM:&quot;armenia&quot;,ABW:&quot;^(?!.*bonaire).*\\baruba&quot;,AUS:&quot;australia&quot;,AUT:&quot;^(?!.*hungary).*austria|\\baustri.*\\bemp&quot;,AZE:&quot;azerbaijan&quot;,BHS:&quot;bahamas&quot;,BHR:&quot;bahrain&quot;,BGD:&quot;bangladesh|^(?=.*east).*paki?stan&quot;,BRB:&quot;barbados&quot;,BLR:&quot;belarus|byelo&quot;,BEL:&quot;^(?!.*luxem).*belgium&quot;,BLZ:&quot;belize|^(?=.*british).*honduras&quot;,BEN:&quot;benin|dahome&quot;,BMU:&quot;bermuda&quot;,BTN:&quot;bhutan&quot;,BOL:&quot;bolivia&quot;,BES:&quot;^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands&quot;,BIH:&quot;herzegovina|bosnia&quot;,BWA:&quot;botswana|bechuana&quot;,BVT:&quot;bouvet&quot;,BRA:&quot;brazil&quot;,IOT:&quot;british.?indian.?ocean&quot;,BRN:&quot;brunei&quot;,BGR:&quot;bulgaria&quot;,BFA:&quot;burkina|\\bfaso|upper.?volta&quot;,BDI:&quot;burundi&quot;,CPV:&quot;verde&quot;,KHM:&quot;cambodia|kampuchea|khmer&quot;,CMR:&quot;cameroon&quot;,CAN:&quot;canada&quot;,CYM:&quot;cayman&quot;,CAF:&quot;\\bcentral.african.republic&quot;,TCD:&quot;\\bchad&quot;,CHL:&quot;\\bchile&quot;,CHN:&quot;^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china&quot;,CXR:&quot;christmas&quot;,CCK:&quot;\\bcocos|keeling&quot;,COL:&quot;colombia&quot;,COM:&quot;comoro&quot;,COG:&quot;^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo&quot;,COK:&quot;\\bcook&quot;,CRI:&quot;costa.?rica&quot;,CIV:&quot;ivoire|ivory&quot;,HRV:&quot;croatia&quot;,CUB:&quot;\\bcuba&quot;,CUW:&quot;^(?!.*bonaire).*\\bcura(c|\xe7)ao&quot;,CYP:&quot;cyprus&quot;,CSK:&quot;czechoslovakia&quot;,CZE:&quot;^(?=.*rep).*czech|czechia|bohemia&quot;,COD:&quot;\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc&quot;,DNK:&quot;denmark&quot;,DJI:&quot;djibouti&quot;,DMA:&quot;dominica(?!n)&quot;,DOM:&quot;dominican.rep&quot;,ECU:&quot;ecuador&quot;,EGY:&quot;egypt&quot;,SLV:&quot;el.?salvador&quot;,GNQ:&quot;guine.*eq|eq.*guine|^(?=.*span).*guinea&quot;,ERI:&quot;eritrea&quot;,EST:&quot;estonia&quot;,ETH:&quot;ethiopia|abyssinia&quot;,FLK:&quot;falkland|malvinas&quot;,FRO:&quot;faroe|faeroe&quot;,FJI:&quot;fiji&quot;,FIN:&quot;finland&quot;,FRA:&quot;^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul&quot;,GUF:&quot;^(?=.*french).*guiana&quot;,PYF:&quot;french.?polynesia|tahiti&quot;,ATF:&quot;french.?southern&quot;,GAB:&quot;gabon&quot;,GMB:&quot;gambia&quot;,GEO:&quot;^(?!.*south).*georgia&quot;,DDR:&quot;german.?democratic.?republic|democratic.?republic.*germany|east.germany&quot;,DEU:&quot;^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german&quot;,GHA:&quot;ghana|gold.?coast&quot;,GIB:&quot;gibraltar&quot;,GRC:&quot;greece|hellenic|hellas&quot;,GRL:&quot;greenland&quot;,GRD:&quot;grenada&quot;,GLP:&quot;guadeloupe&quot;,GUM:&quot;\\bguam&quot;,GTM:&quot;guatemala&quot;,GGY:&quot;guernsey&quot;,GIN:&quot;^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea&quot;,GNB:&quot;bissau|^(?=.*portu).*guinea&quot;,GUY:&quot;guyana|british.?guiana&quot;,HTI:&quot;haiti&quot;,HMD:&quot;heard.*mcdonald&quot;,VAT:&quot;holy.?see|vatican|papal.?st&quot;,HND:&quot;^(?!.*brit).*honduras&quot;,HKG:&quot;hong.?kong&quot;,HUN:&quot;^(?!.*austr).*hungary&quot;,ISL:&quot;iceland&quot;,IND:&quot;india(?!.*ocea)&quot;,IDN:&quot;indonesia&quot;,IRN:&quot;\\biran|persia&quot;,IRQ:&quot;\\biraq|mesopotamia&quot;,IRL:&quot;(^ireland)|(^republic.*ireland)&quot;,IMN:&quot;^(?=.*isle).*\\bman&quot;,ISR:&quot;israel&quot;,ITA:&quot;italy&quot;,JAM:&quot;jamaica&quot;,JPN:&quot;japan&quot;,JEY:&quot;jersey&quot;,JOR:&quot;jordan&quot;,KAZ:&quot;kazak&quot;,KEN:&quot;kenya|british.?east.?africa|east.?africa.?prot&quot;,KIR:&quot;kiribati&quot;,PRK:&quot;^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)&quot;,KWT:&quot;kuwait&quot;,KGZ:&quot;kyrgyz|kirghiz&quot;,LAO:&quot;\\blaos?\\b&quot;,LVA:&quot;latvia&quot;,LBN:&quot;lebanon&quot;,LSO:&quot;lesotho|basuto&quot;,LBR:&quot;liberia&quot;,LBY:&quot;libya&quot;,LIE:&quot;liechtenstein&quot;,LTU:&quot;lithuania&quot;,LUX:&quot;^(?!.*belg).*luxem&quot;,MAC:&quot;maca(o|u)&quot;,MDG:&quot;madagascar|malagasy&quot;,MWI:&quot;malawi|nyasa&quot;,MYS:&quot;malaysia&quot;,MDV:&quot;maldive&quot;,MLI:&quot;\\bmali\\b&quot;,MLT:&quot;\\bmalta&quot;,MHL:&quot;marshall&quot;,MTQ:&quot;martinique&quot;,MRT:&quot;mauritania&quot;,MUS:&quot;mauritius&quot;,MYT:&quot;\\bmayotte&quot;,MEX:&quot;\\bmexic&quot;,FSM:&quot;fed.*micronesia|micronesia.*fed&quot;,MCO:&quot;monaco&quot;,MNG:&quot;mongolia&quot;,MNE:&quot;^(?!.*serbia).*montenegro&quot;,MSR:&quot;montserrat&quot;,MAR:&quot;morocco|\\bmaroc&quot;,MOZ:&quot;mozambique&quot;,MMR:&quot;myanmar|burma&quot;,NAM:&quot;namibia&quot;,NRU:&quot;nauru&quot;,NPL:&quot;nepal&quot;,NLD:&quot;^(?!.*\\bant)(?!.*\\bcarib).*netherlands&quot;,ANT:&quot;^(?=.*\\bant).*(nether|dutch)&quot;,NCL:&quot;new.?caledonia&quot;,NZL:&quot;new.?zealand&quot;,NIC:&quot;nicaragua&quot;,NER:&quot;\\bniger(?!ia)&quot;,NGA:&quot;nigeria&quot;,NIU:&quot;niue&quot;,NFK:&quot;norfolk&quot;,MNP:&quot;mariana&quot;,NOR:&quot;norway&quot;,OMN:&quot;\\boman|trucial&quot;,PAK:&quot;^(?!.*east).*paki?stan&quot;,PLW:&quot;palau&quot;,PSE:&quot;palestin|\\bgaza|west.?bank&quot;,PAN:&quot;panama&quot;,PNG:&quot;papua|new.?guinea&quot;,PRY:&quot;paraguay&quot;,PER:&quot;peru&quot;,PHL:&quot;philippines&quot;,PCN:&quot;pitcairn&quot;,POL:&quot;poland&quot;,PRT:&quot;portugal&quot;,PRI:&quot;puerto.?rico&quot;,QAT:&quot;qatar&quot;,KOR:&quot;^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)&quot;,MDA:&quot;moldov|b(a|e)ssarabia&quot;,REU:&quot;r(e|\xe9)union&quot;,ROU:&quot;r(o|u|ou)mania&quot;,RUS:&quot;\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics&quot;,RWA:&quot;rwanda&quot;,BLM:&quot;barth(e|\xe9)lemy&quot;,SHN:&quot;helena&quot;,KNA:&quot;kitts|\\bnevis&quot;,LCA:&quot;\\blucia&quot;,MAF:&quot;^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)&quot;,SPM:&quot;miquelon&quot;,VCT:&quot;vincent&quot;,WSM:&quot;^(?!.*amer).*samoa&quot;,SMR:&quot;san.?marino&quot;,STP:&quot;\\bs(a|\xe3)o.?tom(e|\xe9)&quot;,SAU:&quot;\\bsa\\w*.?arabia&quot;,SEN:&quot;senegal&quot;,SRB:&quot;^(?!.*monte).*serbia&quot;,SYC:&quot;seychell&quot;,SLE:&quot;sierra&quot;,SGP:&quot;singapore&quot;,SXM:&quot;^(?!.*martin)(?!.*saba).*maarten&quot;,SVK:&quot;^(?!.*cze).*slovak&quot;,SVN:&quot;slovenia&quot;,SLB:&quot;solomon&quot;,SOM:&quot;somali&quot;,ZAF:&quot;south.africa|s\\\\..?africa&quot;,SGS:&quot;south.?georgia|sandwich&quot;,SSD:&quot;\\bs\\w*.?sudan&quot;,ESP:&quot;spain&quot;,LKA:&quot;sri.?lanka|ceylon&quot;,SDN:&quot;^(?!.*\\bs(?!u)).*sudan&quot;,SUR:&quot;surinam|dutch.?guiana&quot;,SJM:&quot;svalbard&quot;,SWZ:&quot;swaziland&quot;,SWE:&quot;sweden&quot;,CHE:&quot;switz|swiss&quot;,SYR:&quot;syria&quot;,TWN:&quot;taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china&quot;,TJK:&quot;tajik&quot;,THA:&quot;thailand|\\bsiam&quot;,MKD:&quot;macedonia|fyrom&quot;,TLS:&quot;^(?=.*leste).*timor|^(?=.*east).*timor&quot;,TGO:&quot;togo&quot;,TKL:&quot;tokelau&quot;,TON:&quot;tonga&quot;,TTO:&quot;trinidad|tobago&quot;,TUN:&quot;tunisia&quot;,TUR:&quot;turkey&quot;,TKM:&quot;turkmen&quot;,TCA:&quot;turks&quot;,TUV:&quot;tuvalu&quot;,UGA:&quot;uganda&quot;,UKR:&quot;ukrain&quot;,ARE:&quot;emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em&quot;,GBR:&quot;united.?kingdom|britain|^u\\.?k\\.?$&quot;,TZA:&quot;tanzania&quot;,USA:&quot;united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)&quot;,UMI:&quot;minor.?outlying.?is&quot;,URY:&quot;uruguay&quot;,UZB:&quot;uzbek&quot;,VUT:&quot;vanuatu|new.?hebrides&quot;,VEN:&quot;venezuela&quot;,VNM:&quot;^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam&quot;,VGB:&quot;^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin&quot;,VIR:&quot;^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin&quot;,WLF:&quot;futuna|wallis&quot;,ESH:&quot;western.sahara&quot;,YEM:&quot;^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen&quot;,YMD:&quot;^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen&quot;,YUG:&quot;yugoslavia&quot;,ZMB:&quot;zambia|northern.?rhodesia&quot;,EAZ:&quot;zanzibar&quot;,ZWE:&quot;zimbabwe|^(?!.*northern).*rhodesia&quot;}},{}],140:[function(t,e,r){e.exports=[&quot;xx-small&quot;,&quot;x-small&quot;,&quot;small&quot;,&quot;medium&quot;,&quot;large&quot;,&quot;x-large&quot;,&quot;xx-large&quot;,&quot;larger&quot;,&quot;smaller&quot;]},{}],141:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;condensed&quot;,&quot;semi-condensed&quot;,&quot;extra-condensed&quot;,&quot;ultra-condensed&quot;,&quot;expanded&quot;,&quot;semi-expanded&quot;,&quot;extra-expanded&quot;,&quot;ultra-expanded&quot;]},{}],142:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;italic&quot;,&quot;oblique&quot;]},{}],143:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;bold&quot;,&quot;bolder&quot;,&quot;lighter&quot;,&quot;100&quot;,&quot;200&quot;,&quot;300&quot;,&quot;400&quot;,&quot;500&quot;,&quot;600&quot;,&quot;700&quot;,&quot;800&quot;,&quot;900&quot;]},{}],144:[function(t,e,r){&quot;use strict&quot;;e.exports={parse:t(&quot;./parse&quot;),stringify:t(&quot;./stringify&quot;)}},{&quot;./parse&quot;:146,&quot;./stringify&quot;:147}],145:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font-size-keywords&quot;);e.exports={isSize:function(t){return/^[\d\.]/.test(t)||-1!==t.indexOf(&quot;/&quot;)||-1!==n.indexOf(t)}}},{&quot;css-font-size-keywords&quot;:140}],146:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;unquote&quot;),i=t(&quot;css-global-keywords&quot;),a=t(&quot;css-system-font-keywords&quot;),o=t(&quot;css-font-weight-keywords&quot;),s=t(&quot;css-font-style-keywords&quot;),l=t(&quot;css-font-stretch-keywords&quot;),c=t(&quot;string-split-by&quot;),u=t(&quot;./lib/util&quot;).isSize;e.exports=h;var f=h.cache={};function h(t){if(&quot;string&quot;!=typeof t)throw new Error(&quot;Font argument must be a string.&quot;);if(f[t])return f[t];if(&quot;&quot;===t)throw new Error(&quot;Cannot parse an empty string.&quot;);if(-1!==a.indexOf(t))return f[t]={system:t};for(var e,r={style:&quot;normal&quot;,variant:&quot;normal&quot;,weight:&quot;normal&quot;,stretch:&quot;normal&quot;,lineHeight:&quot;normal&quot;,size:&quot;1rem&quot;,family:[&quot;serif&quot;]},h=c(t,/\s+/);e=h.shift();){if(-1!==i.indexOf(e))return[&quot;style&quot;,&quot;variant&quot;,&quot;weight&quot;,&quot;stretch&quot;].forEach((function(t){r[t]=e})),f[t]=r;if(-1===s.indexOf(e))if(&quot;normal&quot;!==e&amp;&amp;&quot;small-caps&quot;!==e)if(-1===l.indexOf(e)){if(-1===o.indexOf(e)){if(u(e)){var d=c(e,&quot;/&quot;);if(r.size=d[0],null!=d[1]?r.lineHeight=p(d[1]):&quot;/&quot;===h[0]&amp;&amp;(h.shift(),r.lineHeight=p(h.shift())),!h.length)throw new Error(&quot;Missing required font-family.&quot;);return r.family=c(h.join(&quot; &quot;),/\s*,\s*/).map(n),f[t]=r}throw new Error(&quot;Unknown or unsupported font token: &quot;+e)}r.weight=e}else r.stretch=e;else r.variant=e;else r.style=e}throw new Error(&quot;Missing required font-size.&quot;)}function p(t){var e=parseFloat(t);return e.toString()===t?e:t}},{&quot;./lib/util&quot;:145,&quot;css-font-stretch-keywords&quot;:141,&quot;css-font-style-keywords&quot;:142,&quot;css-font-weight-keywords&quot;:143,&quot;css-global-keywords&quot;:148,&quot;css-system-font-keywords&quot;:149,&quot;string-split-by&quot;:568,unquote:598}],147:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;),i=t(&quot;./lib/util&quot;).isSize,a=g(t(&quot;css-global-keywords&quot;)),o=g(t(&quot;css-system-font-keywords&quot;)),s=g(t(&quot;css-font-weight-keywords&quot;)),l=g(t(&quot;css-font-style-keywords&quot;)),c=g(t(&quot;css-font-stretch-keywords&quot;)),u={normal:1,&quot;small-caps&quot;:1},f={serif:1,&quot;sans-serif&quot;:1,monospace:1,cursive:1,fantasy:1,&quot;system-ui&quot;:1},h=&quot;1rem&quot;,p=&quot;serif&quot;;function d(t,e){if(t&amp;&amp;!e[t]&amp;&amp;!a[t])throw Error(&quot;Unknown keyword `&quot;+t+&quot;`&quot;);return t}function g(t){for(var e={},r=0;r&lt;t.length;r++)e[t[r]]=1;return e}e.exports=function(t){if((t=n(t,{style:&quot;style fontstyle fontStyle font-style slope distinction&quot;,variant:&quot;variant font-variant fontVariant fontvariant var capitalization&quot;,weight:&quot;weight w font-weight fontWeight fontweight&quot;,stretch:&quot;stretch font-stretch fontStretch fontstretch width&quot;,size:&quot;size s font-size fontSize fontsize height em emSize&quot;,lineHeight:&quot;lh line-height lineHeight lineheight leading&quot;,family:&quot;font family fontFamily font-family fontfamily type typeface face&quot;,system:&quot;system reserved default global&quot;})).system)return t.system&amp;&amp;d(t.system,o),t.system;if(d(t.style,l),d(t.variant,u),d(t.weight,s),d(t.stretch,c),null==t.size&amp;&amp;(t.size=h),&quot;number&quot;==typeof t.size&amp;&amp;(t.size+=&quot;px&quot;),!i)throw Error(&quot;Bad size value `&quot;+t.size+&quot;`&quot;);t.family||(t.family=p),Array.isArray(t.family)&amp;&amp;(t.family.length||(t.family=[p]),t.family=t.family.map((function(t){return f[t]?t:'&quot;'+t+'&quot;'})).join(&quot;, &quot;));var e=[];return e.push(t.style),t.variant!==t.style&amp;&amp;e.push(t.variant),t.weight!==t.variant&amp;&amp;t.weight!==t.style&amp;&amp;e.push(t.weight),t.stretch!==t.weight&amp;&amp;t.stretch!==t.variant&amp;&amp;t.stretch!==t.style&amp;&amp;e.push(t.stretch),e.push(t.size+(null==t.lineHeight||&quot;normal&quot;===t.lineHeight||t.lineHeight+&quot;&quot;==&quot;1&quot;?&quot;&quot;:&quot;/&quot;+t.lineHeight)),e.push(t.family),e.filter(Boolean).join(&quot; &quot;)}},{&quot;./lib/util&quot;:145,&quot;css-font-stretch-keywords&quot;:141,&quot;css-font-style-keywords&quot;:142,&quot;css-font-weight-keywords&quot;:143,&quot;css-global-keywords&quot;:148,&quot;css-system-font-keywords&quot;:149,&quot;pick-by-alias&quot;:511}],148:[function(t,e,r){e.exports=[&quot;inherit&quot;,&quot;initial&quot;,&quot;unset&quot;]},{}],149:[function(t,e,r){e.exports=[&quot;caption&quot;,&quot;icon&quot;,&quot;menu&quot;,&quot;message-box&quot;,&quot;small-caption&quot;,&quot;status-bar&quot;]},{}],150:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a){var o=i-1,s=i*i,l=o*o,c=(1+2*i)*l,u=i*l,f=s*(3-2*i),h=s*o;if(t.length){a||(a=new Array(t.length));for(var p=t.length-1;p&gt;=0;--p)a[p]=c*t[p]+u*e[p]+f*r[p]+h*n[p];return a}return c*t+u*e+f*r+h*n},e.exports.derivative=function(t,e,r,n,i,a){var o=6*i*i-6*i,s=3*i*i-4*i+1,l=-6*i*i+6*i,c=3*i*i-2*i;if(t.length){a||(a=new Array(t.length));for(var u=t.length-1;u&gt;=0;--u)a[u]=o*t[u]+s*e[u]+l*r[u]+c*n[u];return a}return o*t+s*e+l*r[u]+c*n}},{}],151:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/thunk.js&quot;);function i(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName=&quot;&quot;,this.pre=null,this.body=null,this.post=null,this.debug=!1}e.exports=function(t){var e=new i;e.pre=t.pre,e.body=t.body,e.post=t.post;var r=t.args.slice(0);e.argTypes=r;for(var a=0;a&lt;r.length;++a){var o=r[a];if(&quot;array&quot;===o||&quot;object&quot;==typeof o&amp;&amp;o.blockIndices){if(e.argTypes[a]=&quot;array&quot;,e.arrayArgs.push(a),e.arrayBlockIndices.push(o.blockIndices?o.blockIndices:0),e.shimArgs.push(&quot;array&quot;+a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].count&gt;0)throw new Error(&quot;cwise: pre() block may not reference array args&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].count&gt;0)throw new Error(&quot;cwise: post() block may not reference array args&quot;)}else if(&quot;scalar&quot;===o)e.scalarArgs.push(a),e.shimArgs.push(&quot;scalar&quot;+a);else if(&quot;index&quot;===o){if(e.indexArgs.push(a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].count&gt;0)throw new Error(&quot;cwise: pre() block may not reference array index&quot;);if(a&lt;e.body.args.length&amp;&amp;e.body.args[a].lvalue)throw new Error(&quot;cwise: body() block may not write to array index&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].count&gt;0)throw new Error(&quot;cwise: post() block may not reference array index&quot;)}else if(&quot;shape&quot;===o){if(e.shapeArgs.push(a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].lvalue)throw new Error(&quot;cwise: pre() block may not write to array shape&quot;);if(a&lt;e.body.args.length&amp;&amp;e.body.args[a].lvalue)throw new Error(&quot;cwise: body() block may not write to array shape&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].lvalue)throw new Error(&quot;cwise: post() block may not write to array shape&quot;)}else{if(&quot;object&quot;!=typeof o||!o.offset)throw new Error(&quot;cwise: Unknown argument type &quot;+r[a]);e.argTypes[a]=&quot;offset&quot;,e.offsetArgs.push({array:o.array,offset:o.offset}),e.offsetArgIndex.push(a)}}if(e.arrayArgs.length&lt;=0)throw new Error(&quot;cwise: No array arguments specified&quot;);if(e.pre.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in pre() block&quot;);if(e.body.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in body() block&quot;);if(e.post.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in post() block&quot;);return e.debug=!!t.printCode||!!t.debug,e.funcName=t.funcName||&quot;cwise&quot;,e.blockSize=t.blockSize||64,n(e)}},{&quot;./lib/thunk.js&quot;:153}],152:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;uniq&quot;);function i(t,e,r){var n,i,a=t.length,o=e.arrayArgs.length,s=e.indexArgs.length&gt;0,l=[],c=[],u=0,f=0;for(n=0;n&lt;a;++n)c.push([&quot;i&quot;,n,&quot;=0&quot;].join(&quot;&quot;));for(i=0;i&lt;o;++i)for(n=0;n&lt;a;++n)f=u,u=t[n],0===n?c.push([&quot;d&quot;,i,&quot;s&quot;,n,&quot;=t&quot;,i,&quot;p&quot;,u].join(&quot;&quot;)):c.push([&quot;d&quot;,i,&quot;s&quot;,n,&quot;=(t&quot;,i,&quot;p&quot;,u,&quot;-s&quot;,f,&quot;*t&quot;,i,&quot;p&quot;,f,&quot;)&quot;].join(&quot;&quot;));for(c.length&gt;0&amp;&amp;l.push(&quot;var &quot;+c.join(&quot;,&quot;)),n=a-1;n&gt;=0;--n)u=t[n],l.push([&quot;for(i&quot;,n,&quot;=0;i&quot;,n,&quot;&lt;s&quot;,u,&quot;;++i&quot;,n,&quot;){&quot;].join(&quot;&quot;));for(l.push(r),n=0;n&lt;a;++n){for(f=u,u=t[n],i=0;i&lt;o;++i)l.push([&quot;p&quot;,i,&quot;+=d&quot;,i,&quot;s&quot;,n].join(&quot;&quot;));s&amp;&amp;(n&gt;0&amp;&amp;l.push([&quot;index[&quot;,f,&quot;]-=s&quot;,f].join(&quot;&quot;)),l.push([&quot;++index[&quot;,u,&quot;]&quot;].join(&quot;&quot;))),l.push(&quot;}&quot;)}return l.join(&quot;\n&quot;)}function a(t,e,r){for(var n=t.body,i=[],a=[],o=0;o&lt;t.args.length;++o){var s=t.args[o];if(!(s.count&lt;=0)){var l=new RegExp(s.name,&quot;g&quot;),c=&quot;&quot;,u=e.arrayArgs.indexOf(o);switch(e.argTypes[o]){case&quot;offset&quot;:var f=e.offsetArgIndex.indexOf(o);u=e.offsetArgs[f].array,c=&quot;+q&quot;+f;case&quot;array&quot;:c=&quot;p&quot;+u+c;var h=&quot;l&quot;+o,p=&quot;a&quot;+u;if(0===e.arrayBlockIndices[u])1===s.count?&quot;generic&quot;===r[u]?s.lvalue?(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)),n=n.replace(l,h),a.push([p,&quot;.set(&quot;,c,&quot;,&quot;,h,&quot;)&quot;].join(&quot;&quot;))):n=n.replace(l,[p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)):n=n.replace(l,[p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;)):&quot;generic&quot;===r[u]?(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)),n=n.replace(l,h),s.lvalue&amp;&amp;a.push([p,&quot;.set(&quot;,c,&quot;,&quot;,h,&quot;)&quot;].join(&quot;&quot;))):(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;)),n=n.replace(l,h),s.lvalue&amp;&amp;a.push([p,&quot;[&quot;,c,&quot;]=&quot;,h].join(&quot;&quot;)));else{for(var d=[s.name],g=[c],m=0;m&lt;Math.abs(e.arrayBlockIndices[u]);m++)d.push(&quot;\\s*\\[([^\\]]+)\\]&quot;),g.push(&quot;$&quot;+(m+1)+&quot;*t&quot;+u+&quot;b&quot;+m);if(l=new RegExp(d.join(&quot;&quot;),&quot;g&quot;),c=g.join(&quot;+&quot;),&quot;generic&quot;===r[u])throw new Error(&quot;cwise: Generic arrays not supported in combination with blocks!&quot;);n=n.replace(l,[p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;))}break;case&quot;scalar&quot;:n=n.replace(l,&quot;Y&quot;+e.scalarArgs.indexOf(o));break;case&quot;index&quot;:n=n.replace(l,&quot;index&quot;);break;case&quot;shape&quot;:n=n.replace(l,&quot;shape&quot;)}}}return[i.join(&quot;\n&quot;),n,a.join(&quot;\n&quot;)].join(&quot;\n&quot;).trim()}function o(t){for(var e=new Array(t.length),r=!0,n=0;n&lt;t.length;++n){var i=t[n],a=i.match(/\d+/);a=a?a[0]:&quot;&quot;,0===i.charAt(0)?e[n]=&quot;u&quot;+i.charAt(1)+a:e[n]=i.charAt(0)+a,n&gt;0&amp;&amp;(r=r&amp;&amp;e[n]===e[n-1])}return r?e[0]:e.join(&quot;&quot;)}e.exports=function(t,e){for(var r=e[1].length-Math.abs(t.arrayBlockIndices[0])|0,s=new Array(t.arrayArgs.length),l=new Array(t.arrayArgs.length),c=0;c&lt;t.arrayArgs.length;++c)l[c]=e[2*c],s[c]=e[2*c+1];var u=[],f=[],h=[],p=[],d=[];for(c=0;c&lt;t.arrayArgs.length;++c){t.arrayBlockIndices[c]&lt;0?(h.push(0),p.push(r),u.push(r),f.push(r+t.arrayBlockIndices[c])):(h.push(t.arrayBlockIndices[c]),p.push(t.arrayBlockIndices[c]+r),u.push(0),f.push(t.arrayBlockIndices[c]));for(var g=[],m=0;m&lt;s[c].length;m++)h[c]&lt;=s[c][m]&amp;&amp;s[c][m]&lt;p[c]&amp;&amp;g.push(s[c][m]-h[c]);d.push(g)}var v=[&quot;SS&quot;],y=[&quot;'use strict'&quot;],x=[];for(m=0;m&lt;r;++m)x.push([&quot;s&quot;,m,&quot;=SS[&quot;,m,&quot;]&quot;].join(&quot;&quot;));for(c=0;c&lt;t.arrayArgs.length;++c){v.push(&quot;a&quot;+c),v.push(&quot;t&quot;+c),v.push(&quot;p&quot;+c);for(m=0;m&lt;r;++m)x.push([&quot;t&quot;,c,&quot;p&quot;,m,&quot;=t&quot;,c,&quot;[&quot;,h[c]+m,&quot;]&quot;].join(&quot;&quot;));for(m=0;m&lt;Math.abs(t.arrayBlockIndices[c]);++m)x.push([&quot;t&quot;,c,&quot;b&quot;,m,&quot;=t&quot;,c,&quot;[&quot;,u[c]+m,&quot;]&quot;].join(&quot;&quot;))}for(c=0;c&lt;t.scalarArgs.length;++c)v.push(&quot;Y&quot;+c);if(t.shapeArgs.length&gt;0&amp;&amp;x.push(&quot;shape=SS.slice(0)&quot;),t.indexArgs.length&gt;0){var b=new Array(r);for(c=0;c&lt;r;++c)b[c]=&quot;0&quot;;x.push([&quot;index=[&quot;,b.join(&quot;,&quot;),&quot;]&quot;].join(&quot;&quot;))}for(c=0;c&lt;t.offsetArgs.length;++c){var _=t.offsetArgs[c],w=[];for(m=0;m&lt;_.offset.length;++m)0!==_.offset[m]&amp;&amp;(1===_.offset[m]?w.push([&quot;t&quot;,_.array,&quot;p&quot;,m].join(&quot;&quot;)):w.push([_.offset[m],&quot;*t&quot;,_.array,&quot;p&quot;,m].join(&quot;&quot;)));0===w.length?x.push(&quot;q&quot;+c+&quot;=0&quot;):x.push([&quot;q&quot;,c,&quot;=&quot;,w.join(&quot;+&quot;)].join(&quot;&quot;))}var T=n([].concat(t.pre.thisVars).concat(t.body.thisVars).concat(t.post.thisVars));for((x=x.concat(T)).length&gt;0&amp;&amp;y.push(&quot;var &quot;+x.join(&quot;,&quot;)),c=0;c&lt;t.arrayArgs.length;++c)y.push(&quot;p&quot;+c+&quot;|=0&quot;);t.pre.body.length&gt;3&amp;&amp;y.push(a(t.pre,t,l));var k=a(t.body,t,l),M=function(t){for(var e=0,r=t[0].length;e&lt;r;){for(var n=1;n&lt;t.length;++n)if(t[n][e]!==t[0][e])return e;++e}return e}(d);M&lt;r?y.push(function(t,e,r,n){for(var a=e.length,o=r.arrayArgs.length,s=r.blockSize,l=r.indexArgs.length&gt;0,c=[],u=0;u&lt;o;++u)c.push([&quot;var offset&quot;,u,&quot;=p&quot;,u].join(&quot;&quot;));for(u=t;u&lt;a;++u)c.push([&quot;for(var j&quot;+u+&quot;=SS[&quot;,e[u],&quot;]|0;j&quot;,u,&quot;&gt;0;){&quot;].join(&quot;&quot;)),c.push([&quot;if(j&quot;,u,&quot;&lt;&quot;,s,&quot;){&quot;].join(&quot;&quot;)),c.push([&quot;s&quot;,e[u],&quot;=j&quot;,u].join(&quot;&quot;)),c.push([&quot;j&quot;,u,&quot;=0&quot;].join(&quot;&quot;)),c.push([&quot;}else{s&quot;,e[u],&quot;=&quot;,s].join(&quot;&quot;)),c.push([&quot;j&quot;,u,&quot;-=&quot;,s,&quot;}&quot;].join(&quot;&quot;)),l&amp;&amp;c.push([&quot;index[&quot;,e[u],&quot;]=j&quot;,u].join(&quot;&quot;));for(u=0;u&lt;o;++u){for(var f=[&quot;offset&quot;+u],h=t;h&lt;a;++h)f.push([&quot;j&quot;,h,&quot;*t&quot;,u,&quot;p&quot;,e[h]].join(&quot;&quot;));c.push([&quot;p&quot;,u,&quot;=(&quot;,f.join(&quot;+&quot;),&quot;)&quot;].join(&quot;&quot;))}for(c.push(i(e,r,n)),u=t;u&lt;a;++u)c.push(&quot;}&quot;);return c.join(&quot;\n&quot;)}(M,d[0],t,k)):y.push(i(d[0],t,k)),t.post.body.length&gt;3&amp;&amp;y.push(a(t.post,t,l)),t.debug&amp;&amp;console.log(&quot;-----Generated cwise routine for &quot;,e,&quot;:\n&quot;+y.join(&quot;\n&quot;)+&quot;\n----------&quot;);var A=[t.funcName||&quot;unnamed&quot;,&quot;_cwise_loop_&quot;,s[0].join(&quot;s&quot;),&quot;m&quot;,M,o(l)].join(&quot;&quot;);return new Function([&quot;function &quot;,A,&quot;(&quot;,v.join(&quot;,&quot;),&quot;){&quot;,y.join(&quot;\n&quot;),&quot;} return &quot;,A].join(&quot;&quot;))()}},{uniq:597}],153:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./compile.js&quot;);e.exports=function(t){var e=[&quot;'use strict'&quot;,&quot;var CACHED={}&quot;],r=[],i=t.funcName+&quot;_cwise_thunk&quot;;e.push([&quot;return function &quot;,i,&quot;(&quot;,t.shimArgs.join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));for(var a=[],o=[],s=[[&quot;array&quot;,t.arrayArgs[0],&quot;.shape.slice(&quot;,Math.max(0,t.arrayBlockIndices[0]),t.arrayBlockIndices[0]&lt;0?&quot;,&quot;+t.arrayBlockIndices[0]+&quot;)&quot;:&quot;)&quot;].join(&quot;&quot;)],l=[],c=[],u=0;u&lt;t.arrayArgs.length;++u){var f=t.arrayArgs[u];r.push([&quot;t&quot;,f,&quot;=array&quot;,f,&quot;.dtype,&quot;,&quot;r&quot;,f,&quot;=array&quot;,f,&quot;.order&quot;].join(&quot;&quot;)),a.push(&quot;t&quot;+f),a.push(&quot;r&quot;+f),o.push(&quot;t&quot;+f),o.push(&quot;r&quot;+f+&quot;.join()&quot;),s.push(&quot;array&quot;+f+&quot;.data&quot;),s.push(&quot;array&quot;+f+&quot;.stride&quot;),s.push(&quot;array&quot;+f+&quot;.offset|0&quot;),u&gt;0&amp;&amp;(l.push(&quot;array&quot;+t.arrayArgs[0]+&quot;.shape.length===array&quot;+f+&quot;.shape.length+&quot;+(Math.abs(t.arrayBlockIndices[0])-Math.abs(t.arrayBlockIndices[u]))),c.push(&quot;array&quot;+t.arrayArgs[0]+&quot;.shape[shapeIndex+&quot;+Math.max(0,t.arrayBlockIndices[0])+&quot;]===array&quot;+f+&quot;.shape[shapeIndex+&quot;+Math.max(0,t.arrayBlockIndices[u])+&quot;]&quot;))}for(t.arrayArgs.length&gt;1&amp;&amp;(e.push(&quot;if (!(&quot;+l.join(&quot; &amp;&amp; &quot;)+&quot;)) throw new Error('cwise: Arrays do not all have the same dimensionality!')&quot;),e.push(&quot;for(var shapeIndex=array&quot;+t.arrayArgs[0]+&quot;.shape.length-&quot;+Math.abs(t.arrayBlockIndices[0])+&quot;; shapeIndex--\x3e0;) {&quot;),e.push(&quot;if (!(&quot;+c.join(&quot; &amp;&amp; &quot;)+&quot;)) throw new Error('cwise: Arrays do not all have the same shape!')&quot;),e.push(&quot;}&quot;)),u=0;u&lt;t.scalarArgs.length;++u)s.push(&quot;scalar&quot;+t.scalarArgs[u]);return r.push([&quot;type=[&quot;,o.join(&quot;,&quot;),&quot;].join()&quot;].join(&quot;&quot;)),r.push(&quot;proc=CACHED[type]&quot;),e.push(&quot;var &quot;+r.join(&quot;,&quot;)),e.push([&quot;if(!proc){&quot;,&quot;CACHED[type]=proc=compile([&quot;,a.join(&quot;,&quot;),&quot;])}&quot;,&quot;return proc(&quot;,s.join(&quot;,&quot;),&quot;)}&quot;].join(&quot;&quot;)),t.debug&amp;&amp;console.log(&quot;-----Generated thunk:\n&quot;+e.join(&quot;\n&quot;)+&quot;\n----------&quot;),new Function(&quot;compile&quot;,e.join(&quot;\n&quot;))(n.bind(void 0,t))}},{&quot;./compile.js&quot;:152}],154:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;type/value/is&quot;),a=t(&quot;type/value/ensure&quot;),o=t(&quot;type/plain-function/ensure&quot;),s=t(&quot;es5-ext/object/copy&quot;),l=t(&quot;es5-ext/object/normalize-options&quot;),c=t(&quot;es5-ext/object/map&quot;),u=Function.prototype.bind,f=Object.defineProperty,h=Object.prototype.hasOwnProperty;n=function(t,e,r){var n,i=a(e)&amp;&amp;o(e.value);return delete(n=s(e)).writable,delete n.value,n.get=function(){return!r.overwriteDefinition&amp;&amp;h.call(this,t)?i:(e.value=u.call(i,r.resolveContext?r.resolveContext(this):this),f(this,t,e),this[t])},n},e.exports=function(t){var e=l(arguments[1]);return i(e.resolveContext)&amp;&amp;o(e.resolveContext),c(t,(function(t,r){return n(r,t,e)}))}},{&quot;es5-ext/object/copy&quot;:196,&quot;es5-ext/object/map&quot;:204,&quot;es5-ext/object/normalize-options&quot;:205,&quot;type/plain-function/ensure&quot;:589,&quot;type/value/ensure&quot;:593,&quot;type/value/is&quot;:594}],155:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;type/value/is&quot;),i=t(&quot;type/plain-function/is&quot;),a=t(&quot;es5-ext/object/assign&quot;),o=t(&quot;es5-ext/object/normalize-options&quot;),s=t(&quot;es5-ext/string/#/contains&quot;);(e.exports=function(t,e){var r,i,l,c,u;return arguments.length&lt;2||&quot;string&quot;!=typeof t?(c=e,e=t,t=null):c=arguments[2],n(t)?(r=s.call(t,&quot;c&quot;),i=s.call(t,&quot;e&quot;),l=s.call(t,&quot;w&quot;)):(r=l=!0,i=!1),u={value:e,configurable:r,enumerable:i,writable:l},c?a(o(c),u):u}).gs=function(t,e,r){var l,c,u,f;return&quot;string&quot;!=typeof t?(u=r,r=e,e=t,t=null):u=arguments[3],n(e)?i(e)?n(r)?i(r)||(u=r,r=void 0):r=void 0:(u=e,e=r=void 0):e=void 0,n(t)?(l=s.call(t,&quot;c&quot;),c=s.call(t,&quot;e&quot;)):(l=!0,c=!1),f={get:e,set:r,configurable:l,enumerable:c},u?a(o(u),f):f}},{&quot;es5-ext/object/assign&quot;:193,&quot;es5-ext/object/normalize-options&quot;:205,&quot;es5-ext/string/#/contains&quot;:212,&quot;type/plain-function/is&quot;:590,&quot;type/value/is&quot;:594}],156:[function(t,e,r){!function(t,n){n(&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?r:t.d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){return t&lt;e?-1:t&gt;e?1:t&gt;=e?0:NaN}function r(t){var r;return 1===t.length&amp;&amp;(r=t,t=function(t,n){return e(r(t),n)}),{left:function(e,r,n,i){for(null==n&amp;&amp;(n=0),null==i&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&lt;0?n=a+1:i=a}return n},right:function(e,r,n,i){for(null==n&amp;&amp;(n=0),null==i&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&gt;0?i=a:n=a+1}return n}}}var n=r(e),i=n.right,a=n.left;function o(t,e){return[t,e]}function s(t){return null===t?NaN:+t}function l(t,e){var r,n,i=t.length,a=0,o=-1,l=0,c=0;if(null==e)for(;++o&lt;i;)isNaN(r=s(t[o]))||(c+=(n=r-l)*(r-(l+=n/++a)));else for(;++o&lt;i;)isNaN(r=s(e(t[o],o,t)))||(c+=(n=r-l)*(r-(l+=n/++a)));if(a&gt;1)return c/(a-1)}function c(t,e){var r=l(t,e);return r?Math.sqrt(r):r}function u(t,e){var r,n,i,a=t.length,o=-1;if(null==e){for(;++o&lt;a;)if(null!=(r=t[o])&amp;&amp;r&gt;=r)for(n=i=r;++o&lt;a;)null!=(r=t[o])&amp;&amp;(n&gt;r&amp;&amp;(n=r),i&lt;r&amp;&amp;(i=r))}else for(;++o&lt;a;)if(null!=(r=e(t[o],o,t))&amp;&amp;r&gt;=r)for(n=i=r;++o&lt;a;)null!=(r=e(t[o],o,t))&amp;&amp;(n&gt;r&amp;&amp;(n=r),i&lt;r&amp;&amp;(i=r));return[n,i]}var f=Array.prototype,h=f.slice,p=f.map;function d(t){return function(){return t}}function g(t){return t}function m(t,e,r){t=+t,e=+e,r=(i=arguments.length)&lt;2?(e=t,t=0,1):i&lt;3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),a=new Array(i);++n&lt;i;)a[n]=t+n*r;return a}var v=Math.sqrt(50),y=Math.sqrt(10),x=Math.sqrt(2);function b(t,e,r){var n=(e-t)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),a=n/Math.pow(10,i);return i&gt;=0?(a&gt;=v?10:a&gt;=y?5:a&gt;=x?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a&gt;=v?10:a&gt;=y?5:a&gt;=x?2:1)}function _(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/i;return a&gt;=v?i*=10:a&gt;=y?i*=5:a&gt;=x&amp;&amp;(i*=2),e&lt;t?-i:i}function w(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function T(t,e,r){if(null==r&amp;&amp;(r=s),n=t.length){if((e=+e)&lt;=0||n&lt;2)return+r(t[0],0,t);if(e&gt;=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t);return o+(+r(t[a+1],a+1,t)-o)*(i-a)}}function k(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a&lt;i;)if(null!=(r=t[a])&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=t[a])&amp;&amp;n&gt;r&amp;&amp;(n=r)}else for(;++a&lt;i;)if(null!=(r=e(t[a],a,t))&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=e(t[a],a,t))&amp;&amp;n&gt;r&amp;&amp;(n=r);return n}function M(t){if(!(i=t.length))return[];for(var e=-1,r=k(t,A),n=new Array(r);++e&lt;r;)for(var i,a=-1,o=n[e]=new Array(i);++a&lt;i;)o[a]=t[a][e];return n}function A(t){return t.length}t.bisect=i,t.bisectRight=i,t.bisectLeft=a,t.ascending=e,t.bisector=r,t.cross=function(t,e,r){var n,i,a,s,l=t.length,c=e.length,u=new Array(l*c);for(null==r&amp;&amp;(r=o),n=a=0;n&lt;l;++n)for(s=t[n],i=0;i&lt;c;++i,++a)u[a]=r(s,e[i]);return u},t.descending=function(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN},t.deviation=c,t.extent=u,t.histogram=function(){var t=g,e=u,r=w;function n(n){var a,o,s=n.length,l=new Array(s);for(a=0;a&lt;s;++a)l[a]=t(n[a],a,n);var c=e(l),u=c[0],f=c[1],h=r(l,u,f);Array.isArray(h)||(h=_(u,f,h),h=m(Math.ceil(u/h)*h,f,h));for(var p=h.length;h[0]&lt;=u;)h.shift(),--p;for(;h[p-1]&gt;f;)h.pop(),--p;var d,g=new Array(p+1);for(a=0;a&lt;=p;++a)(d=g[a]=[]).x0=a&gt;0?h[a-1]:u,d.x1=a&lt;p?h[a]:f;for(a=0;a&lt;s;++a)u&lt;=(o=l[a])&amp;&amp;o&lt;=f&amp;&amp;g[i(h,o,0,p)].push(n[a]);return g}return n.value=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:d(e),n):t},n.domain=function(t){return arguments.length?(e=&quot;function&quot;==typeof t?t:d([t[0],t[1]]),n):e},n.thresholds=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:Array.isArray(t)?d(h.call(t)):d(t),n):r},n},t.thresholdFreedmanDiaconis=function(t,r,n){return t=p.call(t,s).sort(e),Math.ceil((n-r)/(2*(T(t,.75)-T(t,.25))*Math.pow(t.length,-1/3)))},t.thresholdScott=function(t,e,r){return Math.ceil((r-e)/(3.5*c(t)*Math.pow(t.length,-1/3)))},t.thresholdSturges=w,t.max=function(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a&lt;i;)if(null!=(r=t[a])&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=t[a])&amp;&amp;r&gt;n&amp;&amp;(n=r)}else for(;++a&lt;i;)if(null!=(r=e(t[a],a,t))&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=e(t[a],a,t))&amp;&amp;r&gt;n&amp;&amp;(n=r);return n},t.mean=function(t,e){var r,n=t.length,i=n,a=-1,o=0;if(null==e)for(;++a&lt;n;)isNaN(r=s(t[a]))?--i:o+=r;else for(;++a&lt;n;)isNaN(r=s(e(t[a],a,t)))?--i:o+=r;if(i)return o/i},t.median=function(t,r){var n,i=t.length,a=-1,o=[];if(null==r)for(;++a&lt;i;)isNaN(n=s(t[a]))||o.push(n);else for(;++a&lt;i;)isNaN(n=s(r(t[a],a,t)))||o.push(n);return T(o.sort(e),.5)},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a&lt;i;)o+=t[a].length;for(r=new Array(o);--i&gt;=0;)for(e=(n=t[i]).length;--e&gt;=0;)r[--o]=n[e];return r},t.min=k,t.pairs=function(t,e){null==e&amp;&amp;(e=o);for(var r=0,n=t.length-1,i=t[0],a=new Array(n&lt;0?0:n);r&lt;n;)a[r]=e(i,i=t[++r]);return a},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.quantile=T,t.range=m,t.scan=function(t,r){if(n=t.length){var n,i,a=0,o=0,s=t[o];for(null==r&amp;&amp;(r=e);++a&lt;n;)(r(i=t[a],s)&lt;0||0!==r(s,s))&amp;&amp;(s=i,o=a);return 0===r(s,s)?o:void 0}},t.shuffle=function(t,e,r){for(var n,i,a=(null==r?t.length:r)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.sum=function(t,e){var r,n=t.length,i=-1,a=0;if(null==e)for(;++i&lt;n;)(r=+t[i])&amp;&amp;(a+=r);else for(;++i&lt;n;)(r=+e(t[i],i,t))&amp;&amp;(a+=r);return a},t.ticks=function(t,e,r){var n,i,a,o,s=-1;if(r=+r,(t=+t)===(e=+e)&amp;&amp;r&gt;0)return[t];if((n=e&lt;t)&amp;&amp;(i=t,t=e,e=i),0===(o=b(t,e,r))||!isFinite(o))return[];if(o&gt;0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s&lt;i;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++s&lt;i;)a[s]=(t-s)/o;return n&amp;&amp;a.reverse(),a},t.tickIncrement=b,t.tickStep=_,t.transpose=M,t.variance=l,t.zip=function(){return M(arguments)},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],157:[function(t,e,r){!function(t,n){n(&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?r:t.d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(){}function r(t,r){var n=new e;if(t instanceof e)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var i,a=-1,o=t.length;if(null==r)for(;++a&lt;o;)n.set(a,t[a]);else for(;++a&lt;o;)n.set(r(i=t[a],a,t),i)}else if(t)for(var s in t)n.set(s,t[s]);return n}function n(){return{}}function i(t,e,r){t[e]=r}function a(){return r()}function o(t,e,r){t.set(e,r)}function s(){}e.prototype=r.prototype={constructor:e,has:function(t){return&quot;$&quot;+t in this},get:function(t){return this[&quot;$&quot;+t]},set:function(t,e){return this[&quot;$&quot;+t]=e,this},remove:function(t){var e=&quot;$&quot;+t;return e in this&amp;&amp;delete this[e]},clear:function(){for(var t in this)&quot;$&quot;===t[0]&amp;&amp;delete this[t]},keys:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)&quot;$&quot;===e[0]&amp;&amp;++t;return t},empty:function(){for(var t in this)if(&quot;$&quot;===t[0])return!1;return!0},each:function(t){for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t(this[e],e.slice(1),this)}};var l=r.prototype;function c(t,e){var r=new s;if(t instanceof s)t.each((function(t){r.add(t)}));else if(t){var n=-1,i=t.length;if(null==e)for(;++n&lt;i;)r.add(t[n]);else for(;++n&lt;i;)r.add(e(t[n],n,t))}return r}s.prototype=c.prototype={constructor:s,has:l.has,add:function(t){return this[&quot;$&quot;+(t+=&quot;&quot;)]=t,this},remove:l.remove,clear:l.clear,values:l.keys,size:l.size,empty:l.empty,each:l.each},t.nest=function(){var t,e,s,l=[],c=[];function u(n,i,a,o){if(i&gt;=l.length)return null!=t&amp;&amp;n.sort(t),null!=e?e(n):n;for(var s,c,f,h=-1,p=n.length,d=l[i++],g=r(),m=a();++h&lt;p;)(f=g.get(s=d(c=n[h])+&quot;&quot;))?f.push(c):g.set(s,[c]);return g.each((function(t,e){o(m,e,u(t,i,a,o))})),m}return s={object:function(t){return u(t,0,n,i)},map:function(t){return u(t,0,a,o)},entries:function(t){return function t(r,n){if(++n&gt;l.length)return r;var i,a=c[n-1];return null!=e&amp;&amp;n&gt;=l.length?i=r.entries():(i=[],r.each((function(e,r){i.push({key:r,values:t(e,n)})}))),null!=a?i.sort((function(t,e){return a(t.key,e.key)})):i}(u(t,0,a,o),0)},key:function(t){return l.push(t),s},sortKeys:function(t){return c[l.length-1]=t,s},sortValues:function(e){return t=e,s},rollup:function(t){return e=t,s}}},t.set=c,t.map=r,t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],158:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function r(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function n(){}var i=&quot;\\s*([+-]?\\d+)\\s*&quot;,a=&quot;\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*&quot;,o=&quot;\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*&quot;,s=/^#([0-9a-f]{3,8})$/,l=new RegExp(&quot;^rgb\\(&quot;+[i,i,i]+&quot;\\)$&quot;),c=new RegExp(&quot;^rgb\\(&quot;+[o,o,o]+&quot;\\)$&quot;),u=new RegExp(&quot;^rgba\\(&quot;+[i,i,i,a]+&quot;\\)$&quot;),f=new RegExp(&quot;^rgba\\(&quot;+[o,o,o,a]+&quot;\\)$&quot;),h=new RegExp(&quot;^hsl\\(&quot;+[a,o,o]+&quot;\\)$&quot;),p=new RegExp(&quot;^hsla\\(&quot;+[a,o,o,a]+&quot;\\)$&quot;),d={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 g(){return this.rgb().formatHex()}function m(){return this.rgb().formatRgb()}function v(t){var e,r;return t=(t+&quot;&quot;).trim().toLowerCase(),(e=s.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?y(e):3===r?new w(e&gt;&gt;8&amp;15|e&gt;&gt;4&amp;240,e&gt;&gt;4&amp;15|240&amp;e,(15&amp;e)&lt;&lt;4|15&amp;e,1):8===r?x(e&gt;&gt;24&amp;255,e&gt;&gt;16&amp;255,e&gt;&gt;8&amp;255,(255&amp;e)/255):4===r?x(e&gt;&gt;12&amp;15|e&gt;&gt;8&amp;240,e&gt;&gt;8&amp;15|e&gt;&gt;4&amp;240,e&gt;&gt;4&amp;15|240&amp;e,((15&amp;e)&lt;&lt;4|15&amp;e)/255):null):(e=l.exec(t))?new w(e[1],e[2],e[3],1):(e=c.exec(t))?new w(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=u.exec(t))?x(e[1],e[2],e[3],e[4]):(e=f.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=h.exec(t))?A(e[1],e[2]/100,e[3]/100,1):(e=p.exec(t))?A(e[1],e[2]/100,e[3]/100,e[4]):d.hasOwnProperty(t)?y(d[t]):&quot;transparent&quot;===t?new w(NaN,NaN,NaN,0):null}function y(t){return new w(t&gt;&gt;16&amp;255,t&gt;&gt;8&amp;255,255&amp;t,1)}function x(t,e,r,n){return n&lt;=0&amp;&amp;(t=e=r=NaN),new w(t,e,r,n)}function b(t){return t instanceof n||(t=v(t)),t?new w((t=t.rgb()).r,t.g,t.b,t.opacity):new w}function _(t,e,r,n){return 1===arguments.length?b(t):new w(t,e,r,null==n?1:n)}function w(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function T(){return&quot;#&quot;+M(this.r)+M(this.g)+M(this.b)}function k(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?&quot;rgb(&quot;:&quot;rgba(&quot;)+Math.max(0,Math.min(255,Math.round(this.r)||0))+&quot;, &quot;+Math.max(0,Math.min(255,Math.round(this.g)||0))+&quot;, &quot;+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?&quot;)&quot;:&quot;, &quot;+t+&quot;)&quot;)}function M(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))&lt;16?&quot;0&quot;:&quot;&quot;)+t.toString(16)}function A(t,e,r,n){return n&lt;=0?t=e=r=NaN:r&lt;=0||r&gt;=1?t=e=NaN:e&lt;=0&amp;&amp;(t=NaN),new C(t,e,r,n)}function S(t){if(t instanceof C)return new C(t.h,t.s,t.l,t.opacity);if(t instanceof n||(t=v(t)),!t)return new C;if(t instanceof C)return t;var e=(t=t.rgb()).r/255,r=t.g/255,i=t.b/255,a=Math.min(e,r,i),o=Math.max(e,r,i),s=NaN,l=o-a,c=(o+a)/2;return l?(s=e===o?(r-i)/l+6*(r&lt;i):r===o?(i-e)/l+2:(e-r)/l+4,l/=c&lt;.5?o+a:2-o-a,s*=60):l=c&gt;0&amp;&amp;c&lt;1?0:s,new C(s,l,c,t.opacity)}function E(t,e,r,n){return 1===arguments.length?S(t):new C(t,e,r,null==n?1:n)}function C(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function L(t,e,r){return 255*(t&lt;60?e+(r-e)*t/60:t&lt;180?r:t&lt;240?e+(r-e)*(240-t)/60:e)}e(n,v,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:g,formatHex:g,formatHsl:function(){return S(this).formatHsl()},formatRgb:m,toString:m}),e(w,_,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5&lt;=this.r&amp;&amp;this.r&lt;255.5&amp;&amp;-.5&lt;=this.g&amp;&amp;this.g&lt;255.5&amp;&amp;-.5&lt;=this.b&amp;&amp;this.b&lt;255.5&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},hex:T,formatHex:T,formatRgb:k,toString:k})),e(C,E,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new C(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new C(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h&lt;0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r&lt;.5?r:1-r)*e,i=2*r-n;return new w(L(t&gt;=240?t-240:t+120,i,n),L(t,i,n),L(t&lt;120?t+240:t-120,i,n),this.opacity)},displayable:function(){return(0&lt;=this.s&amp;&amp;this.s&lt;=1||isNaN(this.s))&amp;&amp;0&lt;=this.l&amp;&amp;this.l&lt;=1&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?&quot;hsl(&quot;:&quot;hsla(&quot;)+(this.h||0)+&quot;, &quot;+100*(this.s||0)+&quot;%, &quot;+100*(this.l||0)+&quot;%&quot;+(1===t?&quot;)&quot;:&quot;, &quot;+t+&quot;)&quot;)}}));var I=Math.PI/180,P=180/Math.PI,z=6/29,O=3*z*z;function D(t){if(t instanceof F)return new F(t.l,t.a,t.b,t.opacity);if(t instanceof H)return G(t);t instanceof w||(t=b(t));var e,r,n=U(t.r),i=U(t.g),a=U(t.b),o=B((.2225045*n+.7168786*i+.0606169*a)/1);return n===i&amp;&amp;i===a?e=r=o:(e=B((.4360747*n+.3850649*i+.1430804*a)/.96422),r=B((.0139322*n+.0971045*i+.7141733*a)/.82521)),new F(116*o-16,500*(e-o),200*(o-r),t.opacity)}function R(t,e,r,n){return 1===arguments.length?D(t):new F(t,e,r,null==n?1:n)}function F(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function B(t){return t&gt;.008856451679035631?Math.pow(t,1/3):t/O+4/29}function N(t){return t&gt;z?t*t*t:O*(t-4/29)}function j(t){return 255*(t&lt;=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function U(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function V(t){if(t instanceof H)return new H(t.h,t.c,t.l,t.opacity);if(t instanceof F||(t=D(t)),0===t.a&amp;&amp;0===t.b)return new H(NaN,0&lt;t.l&amp;&amp;t.l&lt;100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*P;return new H(e&lt;0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function q(t,e,r,n){return 1===arguments.length?V(t):new H(t,e,r,null==n?1:n)}function H(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function G(t){if(isNaN(t.h))return new F(t.l,0,0,t.opacity);var e=t.h*I;return new F(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}e(F,R,r(n,{brighter:function(t){return new F(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new F(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new w(j(3.1338561*(e=.96422*N(e))-1.6168667*(t=1*N(t))-.4906146*(r=.82521*N(r))),j(-.9787684*e+1.9161415*t+.033454*r),j(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),e(H,q,r(n,{brighter:function(t){return new H(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new H(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return G(this).rgb()}}));var Y=-.14861,W=1.78277,X=-.29227,Z=-.90649,J=1.97294,K=J*Z,Q=J*W,$=W*X-Z*Y;function tt(t){if(t instanceof rt)return new rt(t.h,t.s,t.l,t.opacity);t instanceof w||(t=b(t));var e=t.r/255,r=t.g/255,n=t.b/255,i=($*n+K*e-Q*r)/($+K-Q),a=n-i,o=(J*(r-i)-X*a)/Z,s=Math.sqrt(o*o+a*a)/(J*i*(1-i)),l=s?Math.atan2(o,a)*P-120:NaN;return new rt(l&lt;0?l+360:l,s,i,t.opacity)}function et(t,e,r,n){return 1===arguments.length?tt(t):new rt(t,e,r,null==n?1:n)}function rt(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}e(rt,et,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*I,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),i=Math.sin(t);return new w(255*(e+r*(Y*n+W*i)),255*(e+r*(X*n+Z*i)),255*(e+r*(J*n)),this.opacity)}})),t.color=v,t.cubehelix=et,t.gray=function(t,e){return new F(t,0,0,null==e?1:e)},t.hcl=q,t.hsl=E,t.lab=R,t.lch=function(t,e,r,n){return 1===arguments.length?V(t):new H(r,e,t,null==n?1:n)},t.rgb=_,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],159:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e={value:function(){}};function r(){for(var t,e=0,r=arguments.length,i={};e&lt;r;++e){if(!(t=arguments[e]+&quot;&quot;)||t in i||/[\s.]/.test(t))throw new Error(&quot;illegal type: &quot;+t);i[t]=[]}return new n(i)}function n(t){this._=t}function i(t,e){return t.trim().split(/^|\s+/).map((function(t){var r=&quot;&quot;,n=t.indexOf(&quot;.&quot;);if(n&gt;=0&amp;&amp;(r=t.slice(n+1),t=t.slice(0,n)),t&amp;&amp;!e.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);return{type:t,name:r}}))}function a(t,e){for(var r,n=0,i=t.length;n&lt;i;++n)if((r=t[n]).name===e)return r.value}function o(t,r,n){for(var i=0,a=t.length;i&lt;a;++i)if(t[i].name===r){t[i]=e,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&amp;&amp;t.push({name:r,value:n}),t}n.prototype=r.prototype={constructor:n,on:function(t,e){var r,n=this._,s=i(t+&quot;&quot;,n),l=-1,c=s.length;if(!(arguments.length&lt;2)){if(null!=e&amp;&amp;&quot;function&quot;!=typeof e)throw new Error(&quot;invalid callback: &quot;+e);for(;++l&lt;c;)if(r=(t=s[l]).type)n[r]=o(n[r],t.name,e);else if(null==e)for(r in n)n[r]=o(n[r],t.name,null);return this}for(;++l&lt;c;)if((r=(t=s[l]).type)&amp;&amp;(r=a(n[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new n(t)},call:function(t,e){if((r=arguments.length-2)&gt;0)for(var r,n,i=new Array(r),a=0;a&lt;r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);for(a=0,r=(n=this._[t]).length;a&lt;r;++a)n[a].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);for(var n=this._[t],i=0,a=n.length;i&lt;a;++i)n[i].value.apply(e,r)}},t.dispatch=r,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],160:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-quadtree&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-dispatch&quot;),t(&quot;d3-timer&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,n.d3)}(this,(function(t,e,r,n,i){&quot;use strict&quot;;function a(t){return function(){return t}}function o(){return 1e-6*(Math.random()-.5)}function s(t){return t.x+t.vx}function l(t){return t.y+t.vy}function c(t){return t.index}function u(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function f(t){return t.x}function h(t){return t.y}var p=Math.PI*(3-Math.sqrt(5));t.forceCenter=function(t,e){var r;function n(){var n,i,a=r.length,o=0,s=0;for(n=0;n&lt;a;++n)o+=(i=r[n]).x,s+=i.y;for(o=o/a-t,s=s/a-e,n=0;n&lt;a;++n)(i=r[n]).x-=o,i.y-=s}return null==t&amp;&amp;(t=0),null==e&amp;&amp;(e=0),n.initialize=function(t){r=t},n.x=function(e){return arguments.length?(t=+e,n):t},n.y=function(t){return arguments.length?(e=+t,n):e},n},t.forceCollide=function(t){var r,n,i=1,c=1;function u(){for(var t,a,u,h,p,d,g,m=r.length,v=0;v&lt;c;++v)for(a=e.quadtree(r,s,l).visitAfter(f),t=0;t&lt;m;++t)u=r[t],d=n[u.index],g=d*d,h=u.x+u.vx,p=u.y+u.vy,a.visit(y);function y(t,e,r,n,a){var s=t.data,l=t.r,c=d+l;if(!s)return e&gt;h+c||n&lt;h-c||r&gt;p+c||a&lt;p-c;if(s.index&gt;u.index){var f=h-s.x-s.vx,m=p-s.y-s.vy,v=f*f+m*m;v&lt;c*c&amp;&amp;(0===f&amp;&amp;(v+=(f=o())*f),0===m&amp;&amp;(v+=(m=o())*m),v=(c-(v=Math.sqrt(v)))/v*i,u.vx+=(f*=v)*(c=(l*=l)/(g+l)),u.vy+=(m*=v)*c,s.vx-=f*(c=1-c),s.vy-=m*c)}}}function f(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e&lt;4;++e)t[e]&amp;&amp;t[e].r&gt;t.r&amp;&amp;(t.r=t[e].r)}function h(){if(r){var e,i,a=r.length;for(n=new Array(a),e=0;e&lt;a;++e)i=r[e],n[i.index]=+t(i,e,r)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?1:+t)),u.initialize=function(t){r=t,h()},u.iterations=function(t){return arguments.length?(c=+t,u):c},u.strength=function(t){return arguments.length?(i=+t,u):i},u.radius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),h(),u):t},u},t.forceLink=function(t){var e,n,i,s,l,f=c,h=function(t){return 1/Math.min(s[t.source.index],s[t.target.index])},p=a(30),d=1;function g(r){for(var i=0,a=t.length;i&lt;d;++i)for(var s,c,u,f,h,p,g,m=0;m&lt;a;++m)c=(s=t[m]).source,f=(u=s.target).x+u.vx-c.x-c.vx||o(),h=u.y+u.vy-c.y-c.vy||o(),f*=p=((p=Math.sqrt(f*f+h*h))-n[m])/p*r*e[m],h*=p,u.vx-=f*(g=l[m]),u.vy-=h*g,c.vx+=f*(g=1-g),c.vy+=h*g}function m(){if(i){var a,o,c=i.length,h=t.length,p=r.map(i,f);for(a=0,s=new Array(c);a&lt;h;++a)(o=t[a]).index=a,&quot;object&quot;!=typeof o.source&amp;&amp;(o.source=u(p,o.source)),&quot;object&quot;!=typeof o.target&amp;&amp;(o.target=u(p,o.target)),s[o.source.index]=(s[o.source.index]||0)+1,s[o.target.index]=(s[o.target.index]||0)+1;for(a=0,l=new Array(h);a&lt;h;++a)o=t[a],l[a]=s[o.source.index]/(s[o.source.index]+s[o.target.index]);e=new Array(h),v(),n=new Array(h),y()}}function v(){if(i)for(var r=0,n=t.length;r&lt;n;++r)e[r]=+h(t[r],r,t)}function y(){if(i)for(var e=0,r=t.length;e&lt;r;++e)n[e]=+p(t[e],e,t)}return null==t&amp;&amp;(t=[]),g.initialize=function(t){i=t,m()},g.links=function(e){return arguments.length?(t=e,m(),g):t},g.id=function(t){return arguments.length?(f=t,g):f},g.iterations=function(t){return arguments.length?(d=+t,g):d},g.strength=function(t){return arguments.length?(h=&quot;function&quot;==typeof t?t:a(+t),v(),g):h},g.distance=function(t){return arguments.length?(p=&quot;function&quot;==typeof t?t:a(+t),y(),g):p},g},t.forceManyBody=function(){var t,r,n,i,s=a(-30),l=1,c=1/0,u=.81;function p(i){var a,o=t.length,s=e.quadtree(t,f,h).visitAfter(g);for(n=i,a=0;a&lt;o;++a)r=t[a],s.visit(m)}function d(){if(t){var e,r,n=t.length;for(i=new Array(n),e=0;e&lt;n;++e)r=t[e],i[r.index]=+s(r,e,t)}}function g(t){var e,r,n,a,o,s=0,l=0;if(t.length){for(n=a=o=0;o&lt;4;++o)(e=t[o])&amp;&amp;(r=Math.abs(e.value))&amp;&amp;(s+=e.value,l+=r,n+=r*e.x,a+=r*e.y);t.x=n/l,t.y=a/l}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=i[e.data.index]}while(e=e.next)}t.value=s}function m(t,e,a,s){if(!t.value)return!0;var f=t.x-r.x,h=t.y-r.y,p=s-e,d=f*f+h*h;if(p*p/u&lt;d)return d&lt;c&amp;&amp;(0===f&amp;&amp;(d+=(f=o())*f),0===h&amp;&amp;(d+=(h=o())*h),d&lt;l&amp;&amp;(d=Math.sqrt(l*d)),r.vx+=f*t.value*n/d,r.vy+=h*t.value*n/d),!0;if(!(t.length||d&gt;=c)){(t.data!==r||t.next)&amp;&amp;(0===f&amp;&amp;(d+=(f=o())*f),0===h&amp;&amp;(d+=(h=o())*h),d&lt;l&amp;&amp;(d=Math.sqrt(l*d)));do{t.data!==r&amp;&amp;(p=i[t.data.index]*n/d,r.vx+=f*p,r.vy+=h*p)}while(t=t.next)}}return p.initialize=function(e){t=e,d()},p.strength=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:a(+t),d(),p):s},p.distanceMin=function(t){return arguments.length?(l=t*t,p):Math.sqrt(l)},p.distanceMax=function(t){return arguments.length?(c=t*t,p):Math.sqrt(c)},p.theta=function(t){return arguments.length?(u=t*t,p):Math.sqrt(u)},p},t.forceRadial=function(t,e,r){var n,i,o,s=a(.1);function l(t){for(var a=0,s=n.length;a&lt;s;++a){var l=n[a],c=l.x-e||1e-6,u=l.y-r||1e-6,f=Math.sqrt(c*c+u*u),h=(o[a]-f)*i[a]*t/f;l.vx+=c*h,l.vy+=u*h}}function c(){if(n){var e,r=n.length;for(i=new Array(r),o=new Array(r),e=0;e&lt;r;++e)o[e]=+t(n[e],e,n),i[e]=isNaN(o[e])?0:+s(n[e],e,n)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(+t)),null==e&amp;&amp;(e=0),null==r&amp;&amp;(r=0),l.initialize=function(t){n=t,c()},l.strength=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:a(+t),c(),l):s},l.radius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),c(),l):t},l.x=function(t){return arguments.length?(e=+t,l):e},l.y=function(t){return arguments.length?(r=+t,l):r},l},t.forceSimulation=function(t){var e,a=1,o=.001,s=1-Math.pow(o,1/300),l=0,c=.6,u=r.map(),f=i.timer(d),h=n.dispatch(&quot;tick&quot;,&quot;end&quot;);function d(){g(),h.call(&quot;tick&quot;,e),a&lt;o&amp;&amp;(f.stop(),h.call(&quot;end&quot;,e))}function g(r){var n,i,o=t.length;void 0===r&amp;&amp;(r=1);for(var f=0;f&lt;r;++f)for(a+=(l-a)*s,u.each((function(t){t(a)})),n=0;n&lt;o;++n)null==(i=t[n]).fx?i.x+=i.vx*=c:(i.x=i.fx,i.vx=0),null==i.fy?i.y+=i.vy*=c:(i.y=i.fy,i.vy=0);return e}function m(){for(var e,r=0,n=t.length;r&lt;n;++r){if((e=t[r]).index=r,null!=e.fx&amp;&amp;(e.x=e.fx),null!=e.fy&amp;&amp;(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(r),a=r*p;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&amp;&amp;(e.vx=e.vy=0)}}function v(e){return e.initialize&amp;&amp;e.initialize(t),e}return null==t&amp;&amp;(t=[]),m(),e={tick:g,restart:function(){return f.restart(d),e},stop:function(){return f.stop(),e},nodes:function(r){return arguments.length?(t=r,m(),u.each(v),e):t},alpha:function(t){return arguments.length?(a=+t,e):a},alphaMin:function(t){return arguments.length?(o=+t,e):o},alphaDecay:function(t){return arguments.length?(s=+t,e):+s},alphaTarget:function(t){return arguments.length?(l=+t,e):l},velocityDecay:function(t){return arguments.length?(c=1-t,e):1-c},force:function(t,r){return arguments.length&gt;1?(null==r?u.remove(t):u.set(t,v(r)),e):u.get(t)},find:function(e,r,n){var i,a,o,s,l,c=0,u=t.length;for(null==n?n=1/0:n*=n,c=0;c&lt;u;++c)(o=(i=e-(s=t[c]).x)*i+(a=r-s.y)*a)&lt;n&amp;&amp;(l=s,n=o);return l},on:function(t,r){return arguments.length&gt;1?(h.on(t,r),e):h.on(t)}}},t.forceX=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a&lt;o;++a)(i=e[a]).vx+=(n[a]-i.x)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a&lt;o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:a(+t),s(),o):i},o.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),s(),o):t},o},t.forceY=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a&lt;o;++a)(i=e[a]).vy+=(n[a]-i.y)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a&lt;o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:a(+t),s(),o):i},o.y=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),s(),o):t},o},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-collection&quot;:157,&quot;d3-dispatch&quot;:159,&quot;d3-quadtree&quot;:164,&quot;d3-timer&quot;:168}],161:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){return t.parent===e.parent?1:2}function r(t,e){return t+e.x}function n(t,e){return Math.max(t,e.y)}function i(t){var e=0,r=t.children,n=r&amp;&amp;r.length;if(n)for(;--n&gt;=0;)e+=r[n].value;else e=1;t.value=e}function a(t,e){var r,n,i,a,s,u=new c(t),f=+t.value&amp;&amp;(u.value=t.value),h=[u];for(null==e&amp;&amp;(e=o);r=h.pop();)if(f&amp;&amp;(r.value=+r.data.value),(i=e(r.data))&amp;&amp;(s=i.length))for(r.children=new Array(s),a=s-1;a&gt;=0;--a)h.push(n=r.children[a]=new c(i[a])),n.parent=r,n.depth=r.depth+1;return u.eachBefore(l)}function o(t){return t.children}function s(t){t.data=t.data.data}function l(t){var e=0;do{t.height=e}while((t=t.parent)&amp;&amp;t.height&lt;++e)}function c(t){this.data=t,this.depth=this.height=0,this.parent=null}c.prototype=a.prototype={constructor:c,count:function(){return this.eachAfter(i)},each:function(t){var e,r,n,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),r=a.children)for(n=0,i=r.length;n&lt;i;++n)o.push(r[n])}while(o.length);return this},eachAfter:function(t){for(var e,r,n,i=this,a=[i],o=[];i=a.pop();)if(o.push(i),e=i.children)for(r=0,n=e.length;r&lt;n;++r)a.push(e[r]);for(;i=o.pop();)t(i);return this},eachBefore:function(t){for(var e,r,n=this,i=[n];n=i.pop();)if(t(n),e=n.children)for(r=e.length-1;r&gt;=0;--r)i.push(e[r]);return this},sum:function(t){return this.eachAfter((function(e){for(var r=+t(e.data)||0,n=e.children,i=n&amp;&amp;n.length;--i&gt;=0;)r+=n[i].value;e.value=r}))},sort:function(t){return this.eachBefore((function(e){e.children&amp;&amp;e.children.sort(t)}))},path:function(t){for(var e=this,r=function(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;t=r.pop(),e=n.pop();for(;t===e;)i=t,t=r.pop(),e=n.pop();return i}(e,t),n=[e];e!==r;)e=e.parent,n.push(e);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(r){r!==t&amp;&amp;e.push({source:r.parent,target:r})})),e},copy:function(){return a(this).eachBefore(s)}};var u=Array.prototype.slice;function f(t){for(var e,r,n=0,i=(t=function(t){for(var e,r,n=t.length;n;)r=Math.random()*n--|0,e=t[n],t[n]=t[r],t[r]=e;return t}(u.call(t))).length,a=[];n&lt;i;)e=t[n],r&amp;&amp;d(r,e)?++n:(r=m(a=h(a,e)),n=0);return r}function h(t,e){var r,n;if(g(e,t))return[e];for(r=0;r&lt;t.length;++r)if(p(e,t[r])&amp;&amp;g(v(t[r],e),t))return[t[r],e];for(r=0;r&lt;t.length-1;++r)for(n=r+1;n&lt;t.length;++n)if(p(v(t[r],t[n]),e)&amp;&amp;p(v(t[r],e),t[n])&amp;&amp;p(v(t[n],e),t[r])&amp;&amp;g(y(t[r],t[n],e),t))return[t[r],t[n],e];throw new Error}function p(t,e){var r=t.r-e.r,n=e.x-t.x,i=e.y-t.y;return r&lt;0||r*r&lt;n*n+i*i}function d(t,e){var r=t.r-e.r+1e-6,n=e.x-t.x,i=e.y-t.y;return r&gt;0&amp;&amp;r*r&gt;n*n+i*i}function g(t,e){for(var r=0;r&lt;e.length;++r)if(!d(t,e[r]))return!1;return!0}function m(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return v(t[0],t[1]);case 3:return y(t[0],t[1],t[2])}var e}function v(t,e){var r=t.x,n=t.y,i=t.r,a=e.x,o=e.y,s=e.r,l=a-r,c=o-n,u=s-i,f=Math.sqrt(l*l+c*c);return{x:(r+a+l/f*u)/2,y:(n+o+c/f*u)/2,r:(f+i+s)/2}}function y(t,e,r){var n=t.x,i=t.y,a=t.r,o=e.x,s=e.y,l=e.r,c=r.x,u=r.y,f=r.r,h=n-o,p=n-c,d=i-s,g=i-u,m=l-a,v=f-a,y=n*n+i*i-a*a,x=y-o*o-s*s+l*l,b=y-c*c-u*u+f*f,_=p*d-h*g,w=(d*b-g*x)/(2*_)-n,T=(g*m-d*v)/_,k=(p*x-h*b)/(2*_)-i,M=(h*v-p*m)/_,A=T*T+M*M-1,S=2*(a+w*T+k*M),E=w*w+k*k-a*a,C=-(A?(S+Math.sqrt(S*S-4*A*E))/(2*A):E/S);return{x:n+w+T*C,y:i+k+M*C,r:C}}function x(t,e,r){var n,i,a,o,s=t.x-e.x,l=t.y-e.y,c=s*s+l*l;c?(i=e.r+r.r,i*=i,o=t.r+r.r,i&gt;(o*=o)?(n=(c+o-i)/(2*c),a=Math.sqrt(Math.max(0,o/c-n*n)),r.x=t.x-n*s-a*l,r.y=t.y-n*l+a*s):(n=(c+i-o)/(2*c),a=Math.sqrt(Math.max(0,i/c-n*n)),r.x=e.x+n*s-a*l,r.y=e.y+n*l+a*s)):(r.x=e.x+r.r,r.y=e.y)}function b(t,e){var r=t.r+e.r-1e-6,n=e.x-t.x,i=e.y-t.y;return r&gt;0&amp;&amp;r*r&gt;n*n+i*i}function _(t){var e=t._,r=t.next._,n=e.r+r.r,i=(e.x*r.r+r.x*e.r)/n,a=(e.y*r.r+r.y*e.r)/n;return i*i+a*a}function w(t){this._=t,this.next=null,this.previous=null}function T(t){if(!(i=t.length))return 0;var e,r,n,i,a,o,s,l,c,u,h;if((e=t[0]).x=0,e.y=0,!(i&gt;1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(i&gt;2))return e.r+r.r;x(r,e,n=t[2]),e=new w(e),r=new w(r),n=new w(n),e.next=n.previous=r,r.next=e.previous=n,n.next=r.previous=e;t:for(s=3;s&lt;i;++s){x(e._,r._,n=t[s]),n=new w(n),l=r.next,c=e.previous,u=r._.r,h=e._.r;do{if(u&lt;=h){if(b(l._,n._)){r=l,e.next=r,r.previous=e,--s;continue t}u+=l._.r,l=l.next}else{if(b(c._,n._)){(e=c).next=r,r.previous=e,--s;continue t}h+=c._.r,c=c.previous}}while(l!==c.next);for(n.previous=e,n.next=r,e.next=r.previous=r=n,a=_(e);(n=n.next)!==r;)(o=_(n))&lt;a&amp;&amp;(e=n,a=o);r=e.next}for(e=[r._],n=r;(n=n.next)!==r;)e.push(n._);for(n=f(e),s=0;s&lt;i;++s)(e=t[s]).x-=n.x,e.y-=n.y;return n.r}function k(t){return null==t?null:M(t)}function M(t){if(&quot;function&quot;!=typeof t)throw new Error;return t}function A(){return 0}function S(t){return function(){return t}}function E(t){return Math.sqrt(t.value)}function C(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function L(t,e){return function(r){if(n=r.children){var n,i,a,o=n.length,s=t(r)*e||0;if(s)for(i=0;i&lt;o;++i)n[i].r+=s;if(a=T(n),s)for(i=0;i&lt;o;++i)n[i].r-=s;r.r=a+s}}}function I(t){return function(e){var r=e.parent;e.r*=t,r&amp;&amp;(e.x=r.x+t*e.x,e.y=r.y+t*e.y)}}function P(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function z(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&amp;&amp;(n-e)/t.value;++s&lt;l;)(a=o[s]).y0=r,a.y1=i,a.x0=e,a.x1=e+=a.value*c}var O={depth:-1},D={};function R(t){return t.id}function F(t){return t.parentId}function B(t,e){return t.parent===e.parent?1:2}function N(t){var e=t.children;return e?e[0]:t.t}function j(t){var e=t.children;return e?e[e.length-1]:t.t}function U(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function V(t,e,r){return t.a.parent===e.parent?t.a:r}function q(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function H(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&amp;&amp;(i-r)/t.value;++s&lt;l;)(a=o[s]).x0=e,a.x1=n,a.y0=r,a.y1=r+=a.value*c}q.prototype=Object.create(c.prototype);var G=(1+Math.sqrt(5))/2;function Y(t,e,r,n,i,a){for(var o,s,l,c,u,f,h,p,d,g,m,v=[],y=e.children,x=0,b=0,_=y.length,w=e.value;x&lt;_;){l=i-r,c=a-n;do{u=y[b++].value}while(!u&amp;&amp;b&lt;_);for(f=h=u,m=u*u*(g=Math.max(c/l,l/c)/(w*t)),d=Math.max(h/m,m/f);b&lt;_;++b){if(u+=s=y[b].value,s&lt;f&amp;&amp;(f=s),s&gt;h&amp;&amp;(h=s),m=u*u*g,(p=Math.max(h/m,m/f))&gt;d){u-=s;break}d=p}v.push(o={value:u,dice:l&lt;c,children:y.slice(x,b)}),o.dice?z(o,r,n,i,w?n+=c*u/w:a):H(o,r,n,w?r+=l*u/w:i,a),w-=u,x=b}return v}var W=function t(e){function r(t,r,n,i,a){Y(e,t,r,n,i,a)}return r.ratio=function(e){return t((e=+e)&gt;1?e:1)},r}(G);var X=function t(e){function r(t,r,n,i,a){if((o=t._squarify)&amp;&amp;o.ratio===e)for(var o,s,l,c,u,f=-1,h=o.length,p=t.value;++f&lt;h;){for(l=(s=o[f]).children,c=s.value=0,u=l.length;c&lt;u;++c)s.value+=l[c].value;s.dice?z(s,r,n,i,n+=(a-n)*s.value/p):H(s,r,n,r+=(i-r)*s.value/p,a),p-=s.value}else t._squarify=o=Y(e,t,r,n,i,a),o.ratio=e}return r.ratio=function(e){return t((e=+e)&gt;1?e:1)},r}(G);t.cluster=function(){var t=e,i=1,a=1,o=!1;function s(e){var s,l=0;e.eachAfter((function(e){var i=e.children;i?(e.x=function(t){return t.reduce(r,0)/t.length}(i),e.y=function(t){return 1+t.reduce(n,0)}(i)):(e.x=s?l+=t(e,s):0,e.y=0,s=e)}));var c=function(t){for(var e;e=t.children;)t=e[0];return t}(e),u=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(e),f=c.x-t(c,u)/2,h=u.x+t(u,c)/2;return e.eachAfter(o?function(t){t.x=(t.x-e.x)*i,t.y=(e.y-t.y)*a}:function(t){t.x=(t.x-f)/(h-f)*i,t.y=(1-(e.y?t.y/e.y:1))*a})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(o=!1,i=+t[0],a=+t[1],s):o?null:[i,a]},s.nodeSize=function(t){return arguments.length?(o=!0,i=+t[0],a=+t[1],s):o?[i,a]:null},s},t.hierarchy=a,t.pack=function(){var t=null,e=1,r=1,n=A;function i(i){return i.x=e/2,i.y=r/2,t?i.eachBefore(C(t)).eachAfter(L(n,.5)).eachBefore(I(1)):i.eachBefore(C(E)).eachAfter(L(A,1)).eachAfter(L(n,i.r/Math.min(e,r))).eachBefore(I(Math.min(e,r)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=k(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],r=+t[1],i):[e,r]},i.padding=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:S(+t),i):n},i},t.packEnclose=f,t.packSiblings=function(t){return T(t),t},t.partition=function(){var t=1,e=1,r=0,n=!1;function i(i){var a=i.height+1;return i.x0=i.y0=r,i.x1=t,i.y1=e/a,i.eachBefore(function(t,e){return function(n){n.children&amp;&amp;z(n,n.x0,t*(n.depth+1)/e,n.x1,t*(n.depth+2)/e);var i=n.x0,a=n.y0,o=n.x1-r,s=n.y1-r;o&lt;i&amp;&amp;(i=o=(i+o)/2),s&lt;a&amp;&amp;(a=s=(a+s)/2),n.x0=i,n.y0=a,n.x1=o,n.y1=s}}(e,a)),n&amp;&amp;i.eachBefore(P),i}return i.round=function(t){return arguments.length?(n=!!t,i):n},i.size=function(r){return arguments.length?(t=+r[0],e=+r[1],i):[t,e]},i.padding=function(t){return arguments.length?(r=+t,i):r},i},t.stratify=function(){var t=R,e=F;function r(r){var n,i,a,o,s,u,f,h=r.length,p=new Array(h),d={};for(i=0;i&lt;h;++i)n=r[i],s=p[i]=new c(n),null!=(u=t(n,i,r))&amp;&amp;(u+=&quot;&quot;)&amp;&amp;(d[f=&quot;$&quot;+(s.id=u)]=f in d?D:s);for(i=0;i&lt;h;++i)if(s=p[i],null!=(u=e(r[i],i,r))&amp;&amp;(u+=&quot;&quot;)){if(!(o=d[&quot;$&quot;+u]))throw new Error(&quot;missing: &quot;+u);if(o===D)throw new Error(&quot;ambiguous: &quot;+u);o.children?o.children.push(s):o.children=[s],s.parent=o}else{if(a)throw new Error(&quot;multiple roots&quot;);a=s}if(!a)throw new Error(&quot;no root&quot;);if(a.parent=O,a.eachBefore((function(t){t.depth=t.parent.depth+1,--h})).eachBefore(l),a.parent=null,h&gt;0)throw new Error(&quot;cycle&quot;);return a}return r.id=function(e){return arguments.length?(t=M(e),r):t},r.parentId=function(t){return arguments.length?(e=M(t),r):e},r},t.tree=function(){var t=B,e=1,r=1,n=null;function i(i){var l=function(t){for(var e,r,n,i,a,o=new q(t,0),s=[o];e=s.pop();)if(n=e._.children)for(e.children=new Array(a=n.length),i=a-1;i&gt;=0;--i)s.push(r=e.children[i]=new q(n[i],i)),r.parent=e;return(o.parent=new q(null,0)).children=[o],o}(i);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(o),n)i.eachBefore(s);else{var c=i,u=i,f=i;i.eachBefore((function(t){t.x&lt;c.x&amp;&amp;(c=t),t.x&gt;u.x&amp;&amp;(u=t),t.depth&gt;f.depth&amp;&amp;(f=t)}));var h=c===u?1:t(c,u)/2,p=h-c.x,d=e/(u.x+h+p),g=r/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*g}))}return i}function a(e){var r=e.children,n=e.parent.children,i=e.i?n[e.i-1]:null;if(r){!function(t){for(var e,r=0,n=0,i=t.children,a=i.length;--a&gt;=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(e);var a=(r[0].z+r[r.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&amp;&amp;(e.z=i.z+t(e._,i._));e.parent.A=function(e,r,n){if(r){for(var i,a=e,o=e,s=r,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=j(s),a=N(a),s&amp;&amp;a;)l=N(l),(o=j(o)).a=e,(i=s.z+f-a.z-c+t(s._,a._))&gt;0&amp;&amp;(U(V(s,e,n),e,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&amp;&amp;!j(o)&amp;&amp;(o.t=s,o.m+=f-u),a&amp;&amp;!N(l)&amp;&amp;(l.t=a,l.m+=c-h,n=e)}return n}(e,i,e.parent.A||n[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*r}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(n=!1,e=+t[0],r=+t[1],i):n?null:[e,r]},i.nodeSize=function(t){return arguments.length?(n=!0,e=+t[0],r=+t[1],i):n?[e,r]:null},i},t.treemap=function(){var t=W,e=!1,r=1,n=1,i=[0],a=A,o=A,s=A,l=A,c=A;function u(t){return t.x0=t.y0=0,t.x1=r,t.y1=n,t.eachBefore(f),i=[0],e&amp;&amp;t.eachBefore(P),t}function f(e){var r=i[e.depth],n=e.x0+r,u=e.y0+r,f=e.x1-r,h=e.y1-r;f&lt;n&amp;&amp;(n=f=(n+f)/2),h&lt;u&amp;&amp;(u=h=(u+h)/2),e.x0=n,e.y0=u,e.x1=f,e.y1=h,e.children&amp;&amp;(r=i[e.depth+1]=a(e)/2,n+=c(e)-r,u+=o(e)-r,(f-=s(e)-r)&lt;n&amp;&amp;(n=f=(n+f)/2),(h-=l(e)-r)&lt;u&amp;&amp;(u=h=(u+h)/2),t(e,n,u,f,h))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(r=+t[0],n=+t[1],u):[r,n]},u.tile=function(e){return arguments.length?(t=M(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:S(+t),u):a},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:S(+t),u):o},u.paddingRight=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:S(+t),u):s},u.paddingBottom=function(t){return arguments.length?(l=&quot;function&quot;==typeof t?t:S(+t),u):l},u.paddingLeft=function(t){return arguments.length?(c=&quot;function&quot;==typeof t?t:S(+t),u):c},u},t.treemapBinary=function(t,e,r,n,i){var a,o,s=t.children,l=s.length,c=new Array(l+1);for(c[0]=o=a=0;a&lt;l;++a)c[a+1]=o+=s[a].value;!function t(e,r,n,i,a,o,l){if(e&gt;=r-1){var u=s[e];return u.x0=i,u.y0=a,u.x1=o,void(u.y1=l)}var f=c[e],h=n/2+f,p=e+1,d=r-1;for(;p&lt;d;){var g=p+d&gt;&gt;&gt;1;c[g]&lt;h?p=g+1:d=g}h-c[p-1]&lt;c[p]-h&amp;&amp;e+1&lt;p&amp;&amp;--p;var m=c[p]-f,v=n-m;if(o-i&gt;l-a){var y=(i*v+o*m)/n;t(e,p,m,i,a,y,l),t(p,r,v,y,a,o,l)}else{var x=(a*v+l*m)/n;t(e,p,m,i,a,o,x),t(p,r,v,i,x,o,l)}}(0,l,t.value,e,r,n,i)},t.treemapDice=z,t.treemapResquarify=X,t.treemapSlice=H,t.treemapSliceDice=function(t,e,r,n,i){(1&amp;t.depth?H:z)(t,e,r,n,i)},t.treemapSquarify=W,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],162:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-color&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}function n(t){var e=t.length-1;return function(n){var i=n&lt;=0?n=0:n&gt;=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i&gt;0?t[i-1]:2*a-o,l=i&lt;e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,l)}}function i(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)&lt;0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],l=t[(i+2)%e];return r((n-i/e)*e,a,o,s,l)}}function a(t){return function(){return t}}function o(t,e){return function(r){return t+r*e}}function s(t,e){var r=e-t;return r?o(t,r&gt;180||r&lt;-180?r-360*Math.round(r/360):r):a(isNaN(t)?e:t)}function l(t){return 1==(t=+t)?c:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):a(isNaN(e)?r:e)}}function c(t,e){var r=e-t;return r?o(t,r):a(isNaN(t)?e:t)}var u=function t(r){var n=l(r);function i(t,r){var i=n((t=e.rgb(t)).r,(r=e.rgb(r)).r),a=n(t.g,r.g),o=n(t.b,r.b),s=c(t.opacity,r.opacity);return function(e){return t.r=i(e),t.g=a(e),t.b=o(e),t.opacity=s(e),t+&quot;&quot;}}return i.gamma=t,i}(1);function f(t){return function(r){var n,i,a=r.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;n&lt;a;++n)i=e.rgb(r[n]),o[n]=i.r||0,s[n]=i.g||0,l[n]=i.b||0;return o=t(o),s=t(s),l=t(l),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=l(t),i+&quot;&quot;}}}var h=f(n),p=f(i);function d(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(r=0;r&lt;n;++r)i[r]=t[r]*(1-a)+e[r]*a;return i}}function g(t){return ArrayBuffer.isView(t)&amp;&amp;!(t instanceof DataView)}function m(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,a=new Array(i),o=new Array(n);for(r=0;r&lt;i;++r)a[r]=T(t[r],e[r]);for(;r&lt;n;++r)o[r]=e[r];return function(t){for(r=0;r&lt;i;++r)o[r]=a[r](t);return o}}function v(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function y(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function x(t,e){var r,n={},i={};for(r in null!==t&amp;&amp;&quot;object&quot;==typeof t||(t={}),null!==e&amp;&amp;&quot;object&quot;==typeof e||(e={}),e)r in t?n[r]=T(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var b=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(b.source,&quot;g&quot;);function w(t,e){var r,n,i,a=b.lastIndex=_.lastIndex=0,o=-1,s=[],l=[];for(t+=&quot;&quot;,e+=&quot;&quot;;(r=b.exec(t))&amp;&amp;(n=_.exec(e));)(i=n.index)&gt;a&amp;&amp;(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:y(r,n)})),a=_.lastIndex;return a&lt;e.length&amp;&amp;(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length&lt;2?l[0]?function(t){return function(e){return t(e)+&quot;&quot;}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var r,n=0;n&lt;e;++n)s[(r=l[n]).i]=r.x(t);return s.join(&quot;&quot;)})}function T(t,r){var n,i=typeof r;return null==r||&quot;boolean&quot;===i?a(r):(&quot;number&quot;===i?y:&quot;string&quot;===i?(n=e.color(r))?(r=n,u):w:r instanceof e.color?u:r instanceof Date?v:g(r)?d:Array.isArray(r)?m:&quot;function&quot;!=typeof r.valueOf&amp;&amp;&quot;function&quot;!=typeof r.toString||isNaN(r)?x:y)(t,r)}var k,M,A,S,E=180/Math.PI,C={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function L(t,e,r,n,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&amp;&amp;(t/=o,e/=o),(l=t*r+e*n)&amp;&amp;(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&amp;&amp;(r/=s,n/=s,l/=s),t*n&lt;e*r&amp;&amp;(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*E,skewX:Math.atan(l)*E,scaleX:o,scaleY:s}}function I(t,e,r,n){function i(t){return t.length?t.pop()+&quot; &quot;:&quot;&quot;}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,n,i,a,o,s){if(t!==i||n!==a){var l=o.push(&quot;translate(&quot;,null,e,null,r);s.push({i:l-4,x:y(t,i)},{i:l-2,x:y(n,a)})}else(i||a)&amp;&amp;o.push(&quot;translate(&quot;+i+e+a+r)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,r,a){t!==e?(t-e&gt;180?e+=360:e-t&gt;180&amp;&amp;(t+=360),a.push({i:r.push(i(r)+&quot;rotate(&quot;,null,n)-2,x:y(t,e)})):e&amp;&amp;r.push(i(r)+&quot;rotate(&quot;+e+n)}(a.rotate,o.rotate,s,l),function(t,e,r,a){t!==e?a.push({i:r.push(i(r)+&quot;skewX(&quot;,null,n)-2,x:y(t,e)}):e&amp;&amp;r.push(i(r)+&quot;skewX(&quot;+e+n)}(a.skewX,o.skewX,s,l),function(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+&quot;scale(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);o.push({i:s-4,x:y(t,r)},{i:s-2,x:y(e,n)})}else 1===r&amp;&amp;1===n||a.push(i(a)+&quot;scale(&quot;+r+&quot;,&quot;+n+&quot;)&quot;)}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,r=-1,n=l.length;++r&lt;n;)s[(e=l[r]).i]=e.x(t);return s.join(&quot;&quot;)}}}var P=I((function(t){return&quot;none&quot;===t?C:(k||(k=document.createElement(&quot;DIV&quot;),M=document.documentElement,A=document.defaultView),k.style.transform=t,t=A.getComputedStyle(M.appendChild(k),null).getPropertyValue(&quot;transform&quot;),M.removeChild(k),L(+(t=t.slice(7,-1).split(&quot;,&quot;))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),&quot;px, &quot;,&quot;px)&quot;,&quot;deg)&quot;),z=I((function(t){return null==t?C:(S||(S=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;)),S.setAttribute(&quot;transform&quot;,t),(t=S.transform.baseVal.consolidate())?L((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):C)}),&quot;, &quot;,&quot;)&quot;,&quot;)&quot;),O=Math.SQRT2;function D(t){return((t=Math.exp(t))+1/t)/2}function R(t){return function(r,n){var i=t((r=e.hsl(r)).h,(n=e.hsl(n)).h),a=c(r.s,n.s),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.s=a(t),r.l=o(t),r.opacity=s(t),r+&quot;&quot;}}}var F=R(s),B=R(c);function N(t){return function(r,n){var i=t((r=e.hcl(r)).h,(n=e.hcl(n)).h),a=c(r.c,n.c),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.c=a(t),r.l=o(t),r.opacity=s(t),r+&quot;&quot;}}}var j=N(s),U=N(c);function V(t){return function r(n){function i(r,i){var a=t((r=e.cubehelix(r)).h,(i=e.cubehelix(i)).h),o=c(r.s,i.s),s=c(r.l,i.l),l=c(r.opacity,i.opacity);return function(t){return r.h=a(t),r.s=o(t),r.l=s(Math.pow(t,n)),r.opacity=l(t),r+&quot;&quot;}}return n=+n,i.gamma=r,i}(1)}var q=V(s),H=V(c);t.interpolate=T,t.interpolateArray=function(t,e){return(g(e)?d:m)(t,e)},t.interpolateBasis=n,t.interpolateBasisClosed=i,t.interpolateCubehelix=q,t.interpolateCubehelixLong=H,t.interpolateDate=v,t.interpolateDiscrete=function(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}},t.interpolateHcl=j,t.interpolateHclLong=U,t.interpolateHsl=F,t.interpolateHslLong=B,t.interpolateHue=function(t,e){var r=s(+t,+e);return function(t){var e=r(t);return e-360*Math.floor(e/360)}},t.interpolateLab=function(t,r){var n=c((t=e.lab(t)).l,(r=e.lab(r)).l),i=c(t.a,r.a),a=c(t.b,r.b),o=c(t.opacity,r.opacity);return function(e){return t.l=n(e),t.a=i(e),t.b=a(e),t.opacity=o(e),t+&quot;&quot;}},t.interpolateNumber=y,t.interpolateNumberArray=d,t.interpolateObject=x,t.interpolateRgb=u,t.interpolateRgbBasis=h,t.interpolateRgbBasisClosed=p,t.interpolateRound=function(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}},t.interpolateString=w,t.interpolateTransformCss=P,t.interpolateTransformSvg=z,t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h&lt;1e-12)n=Math.log(c/o)/O,r=function(t){return[i+t*u,a+t*f,o*Math.exp(O*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),g=(c*c-o*o-4*h)/(2*c*2*p),m=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(g*g+1)-g);n=(v-m)/O,r=function(t){var e,r=t*n,s=D(m),l=o/(2*p)*(s*(e=O*r+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[i+l*u,a+l*f,o*s/D(O*r+m)]}}return r.duration=1e3*n,r},t.piecewise=function(t,e){for(var r=0,n=e.length-1,i=e[0],a=new Array(n&lt;0?0:n);r&lt;n;)a[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return a[e](t-e)}},t.quantize=function(t,e){for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=t(n/(e-1));return r},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-color&quot;:158}],163:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e=Math.PI,r=2*e,n=r-1e-6;function i(){this._x0=this._y0=this._x1=this._y1=null,this._=&quot;&quot;}function a(){return new i}i.prototype=a.prototype={constructor:i,moveTo:function(t,e){this._+=&quot;M&quot;+(this._x0=this._x1=+t)+&quot;,&quot;+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&amp;&amp;(this._x1=this._x0,this._y1=this._y0,this._+=&quot;Z&quot;)},lineTo:function(t,e){this._+=&quot;L&quot;+(this._x1=+t)+&quot;,&quot;+(this._y1=+e)},quadraticCurveTo:function(t,e,r,n){this._+=&quot;Q&quot;+ +t+&quot;,&quot;+ +e+&quot;,&quot;+(this._x1=+r)+&quot;,&quot;+(this._y1=+n)},bezierCurveTo:function(t,e,r,n,i,a){this._+=&quot;C&quot;+ +t+&quot;,&quot;+ +e+&quot;,&quot;+ +r+&quot;,&quot;+ +n+&quot;,&quot;+(this._x1=+i)+&quot;,&quot;+(this._y1=+a)},arcTo:function(t,r,n,i,a){t=+t,r=+r,n=+n,i=+i,a=+a;var o=this._x1,s=this._y1,l=n-t,c=i-r,u=o-t,f=s-r,h=u*u+f*f;if(a&lt;0)throw new Error(&quot;negative radius: &quot;+a);if(null===this._x1)this._+=&quot;M&quot;+(this._x1=t)+&quot;,&quot;+(this._y1=r);else if(h&gt;1e-6)if(Math.abs(f*l-c*u)&gt;1e-6&amp;&amp;a){var p=n-o,d=i-s,g=l*l+c*c,m=p*p+d*d,v=Math.sqrt(g),y=Math.sqrt(h),x=a*Math.tan((e-Math.acos((g+h-m)/(2*v*y)))/2),b=x/y,_=x/v;Math.abs(b-1)&gt;1e-6&amp;&amp;(this._+=&quot;L&quot;+(t+b*u)+&quot;,&quot;+(r+b*f)),this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,0,&quot;+ +(f*p&gt;u*d)+&quot;,&quot;+(this._x1=t+_*l)+&quot;,&quot;+(this._y1=r+_*c)}else this._+=&quot;L&quot;+(this._x1=t)+&quot;,&quot;+(this._y1=r);else;},arc:function(t,i,a,o,s,l){t=+t,i=+i,l=!!l;var c=(a=+a)*Math.cos(o),u=a*Math.sin(o),f=t+c,h=i+u,p=1^l,d=l?o-s:s-o;if(a&lt;0)throw new Error(&quot;negative radius: &quot;+a);null===this._x1?this._+=&quot;M&quot;+f+&quot;,&quot;+h:(Math.abs(this._x1-f)&gt;1e-6||Math.abs(this._y1-h)&gt;1e-6)&amp;&amp;(this._+=&quot;L&quot;+f+&quot;,&quot;+h),a&amp;&amp;(d&lt;0&amp;&amp;(d=d%r+r),d&gt;n?this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,1,&quot;+p+&quot;,&quot;+(t-c)+&quot;,&quot;+(i-u)+&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,1,&quot;+p+&quot;,&quot;+(this._x1=f)+&quot;,&quot;+(this._y1=h):d&gt;1e-6&amp;&amp;(this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,&quot;+ +(d&gt;=e)+&quot;,&quot;+p+&quot;,&quot;+(this._x1=t+a*Math.cos(s))+&quot;,&quot;+(this._y1=i+a*Math.sin(s))))},rect:function(t,e,r,n){this._+=&quot;M&quot;+(this._x0=this._x1=+t)+&quot;,&quot;+(this._y0=this._y1=+e)+&quot;h&quot;+ +r+&quot;v&quot;+ +n+&quot;h&quot;+-r+&quot;Z&quot;},toString:function(){return this._}},t.path=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],164:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var i,a,o,s,l,c,u,f,h,p=t._root,d={data:n},g=t._x0,m=t._y0,v=t._x1,y=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((c=e&gt;=(a=(g+v)/2))?g=a:v=a,(u=r&gt;=(o=(m+y)/2))?m=o:y=o,i=p,!(p=p[f=u&lt;&lt;1|c]))return i[f]=d,t;if(s=+t._x.call(null,p.data),l=+t._y.call(null,p.data),e===s&amp;&amp;r===l)return d.next=p,i?i[f]=d:t._root=d,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(c=e&gt;=(a=(g+v)/2))?g=a:v=a,(u=r&gt;=(o=(m+y)/2))?m=o:y=o}while((f=u&lt;&lt;1|c)==(h=(l&gt;=o)&lt;&lt;1|s&gt;=a));return i[h]=p,i[f]=d,t}function r(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i}function n(t){return t[0]}function i(t){return t[1]}function a(t,e,r){var a=new o(null==e?n:e,null==r?i:r,NaN,NaN,NaN,NaN);return null==t?a:a.addAll(t)}function o(t,e,r,n,i,a){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function s(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var l=a.prototype=o.prototype;l.copy=function(){var t,e,r=new o(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=s(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var i=0;i&lt;4;++i)(e=n.source[i])&amp;&amp;(e.length?t.push({source:e,target:n.target[i]=new Array(4)}):n.target[i]=s(e));return r},l.add=function(t){var r=+this._x.call(null,t),n=+this._y.call(null,t);return e(this.cover(r,n),r,n,t)},l.addAll=function(t){var r,n,i,a,o=t.length,s=new Array(o),l=new Array(o),c=1/0,u=1/0,f=-1/0,h=-1/0;for(n=0;n&lt;o;++n)isNaN(i=+this._x.call(null,r=t[n]))||isNaN(a=+this._y.call(null,r))||(s[n]=i,l[n]=a,i&lt;c&amp;&amp;(c=i),i&gt;f&amp;&amp;(f=i),a&lt;u&amp;&amp;(u=a),a&gt;h&amp;&amp;(h=a));if(c&gt;f||u&gt;h)return this;for(this.cover(c,u).cover(f,h),n=0;n&lt;o;++n)e(this,s[n],l[n],t[n]);return this},l.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,n=this._y0,i=this._x1,a=this._y1;if(isNaN(r))i=(r=Math.floor(t))+1,a=(n=Math.floor(e))+1;else{for(var o,s,l=i-r,c=this._root;r&gt;t||t&gt;=i||n&gt;e||e&gt;=a;)switch(s=(e&lt;n)&lt;&lt;1|t&lt;r,(o=new Array(4))[s]=c,c=o,l*=2,s){case 0:i=r+l,a=n+l;break;case 1:r=i-l,a=n+l;break;case 2:i=r+l,n=a-l;break;case 3:r=i-l,n=a-l}this._root&amp;&amp;this._root.length&amp;&amp;(this._root=c)}return this._x0=r,this._y0=n,this._x1=i,this._y1=a,this},l.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},l.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},l.find=function(t,e,n){var i,a,o,s,l,c,u,f=this._x0,h=this._y0,p=this._x1,d=this._y1,g=[],m=this._root;for(m&amp;&amp;g.push(new r(m,f,h,p,d)),null==n?n=1/0:(f=t-n,h=e-n,p=t+n,d=e+n,n*=n);c=g.pop();)if(!(!(m=c.node)||(a=c.x0)&gt;p||(o=c.y0)&gt;d||(s=c.x1)&lt;f||(l=c.y1)&lt;h))if(m.length){var v=(a+s)/2,y=(o+l)/2;g.push(new r(m[3],v,y,s,l),new r(m[2],a,y,v,l),new r(m[1],v,o,s,y),new r(m[0],a,o,v,y)),(u=(e&gt;=y)&lt;&lt;1|t&gt;=v)&amp;&amp;(c=g[g.length-1],g[g.length-1]=g[g.length-1-u],g[g.length-1-u]=c)}else{var x=t-+this._x.call(null,m.data),b=e-+this._y.call(null,m.data),_=x*x+b*b;if(_&lt;n){var w=Math.sqrt(n=_);f=t-w,h=e-w,p=t+w,d=e+w,i=m.data}}return i},l.remove=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,r,n,i,a,o,s,l,c,u,f,h,p=this._root,d=this._x0,g=this._y0,m=this._x1,v=this._y1;if(!p)return this;if(p.length)for(;;){if((c=a&gt;=(s=(d+m)/2))?d=s:m=s,(u=o&gt;=(l=(g+v)/2))?g=l:v=l,e=p,!(p=p[f=u&lt;&lt;1|c]))return this;if(!p.length)break;(e[f+1&amp;3]||e[f+2&amp;3]||e[f+3&amp;3])&amp;&amp;(r=e,h=f)}for(;p.data!==t;)if(n=p,!(p=p.next))return this;return(i=p.next)&amp;&amp;delete p.next,n?(i?n.next=i:delete n.next,this):e?(i?e[f]=i:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&amp;&amp;p===(e[3]||e[2]||e[1]||e[0])&amp;&amp;!p.length&amp;&amp;(r?r[h]=p:this._root=p),this):(this._root=i,this)},l.removeAll=function(t){for(var e=0,r=t.length;e&lt;r;++e)this.remove(t[e]);return this},l.root=function(){return this._root},l.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},l.visit=function(t){var e,n,i,a,o,s,l=[],c=this._root;for(c&amp;&amp;l.push(new r(c,this._x0,this._y0,this._x1,this._y1));e=l.pop();)if(!t(c=e.node,i=e.x0,a=e.y0,o=e.x1,s=e.y1)&amp;&amp;c.length){var u=(i+o)/2,f=(a+s)/2;(n=c[3])&amp;&amp;l.push(new r(n,u,f,o,s)),(n=c[2])&amp;&amp;l.push(new r(n,i,f,u,s)),(n=c[1])&amp;&amp;l.push(new r(n,u,a,o,f)),(n=c[0])&amp;&amp;l.push(new r(n,i,a,u,f))}return this},l.visitAfter=function(t){var e,n=[],i=[];for(this._root&amp;&amp;n.push(new r(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var a=e.node;if(a.length){var o,s=e.x0,l=e.y0,c=e.x1,u=e.y1,f=(s+c)/2,h=(l+u)/2;(o=a[0])&amp;&amp;n.push(new r(o,s,l,f,h)),(o=a[1])&amp;&amp;n.push(new r(o,f,l,c,h)),(o=a[2])&amp;&amp;n.push(new r(o,s,h,f,u)),(o=a[3])&amp;&amp;n.push(new r(o,f,h,c,u))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},l.x=function(t){return arguments.length?(this._x=t,this):this._x},l.y=function(t){return arguments.length?(this._y=t,this):this._y},t.quadtree=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],165:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-path&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t){return function(){return t}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,c=Math.sqrt,u=Math.PI,f=u/2,h=2*u;function p(t){return t&gt;1?0:t&lt;-1?u:Math.acos(t)}function d(t){return t&gt;=1?f:t&lt;=-1?-f:Math.asin(t)}function g(t){return t.innerRadius}function m(t){return t.outerRadius}function v(t){return t.startAngle}function y(t){return t.endAngle}function x(t){return t&amp;&amp;t.padAngle}function b(t,e,r,n,i,a,o,s){var l=r-t,c=n-e,u=o-i,f=s-a,h=f*l-u*c;if(!(h*h&lt;1e-12))return[t+(h=(u*(e-a)-f*(t-i))/h)*l,e+h*c]}function _(t,e,r,n,i,a,s){var l=t-r,u=e-n,f=(s?a:-a)/c(l*l+u*u),h=f*u,p=-f*l,d=t+h,g=e+p,m=r+h,v=n+p,y=(d+m)/2,x=(g+v)/2,b=m-d,_=v-g,w=b*b+_*_,T=i-a,k=d*v-m*g,M=(_&lt;0?-1:1)*c(o(0,T*T*w-k*k)),A=(k*_-b*M)/w,S=(-k*b-_*M)/w,E=(k*_+b*M)/w,C=(-k*b+_*M)/w,L=A-y,I=S-x,P=E-y,z=C-x;return L*L+I*I&gt;P*P+z*z&amp;&amp;(A=E,S=C),{cx:A,cy:S,x01:-h,y01:-p,x11:A*(i/T-1),y11:S*(i/T-1)}}function w(t){this._context=t}function T(t){return new w(t)}function k(t){return t[0]}function M(t){return t[1]}function A(){var t=k,n=M,i=r(!0),a=null,o=T,s=null;function l(r){var l,c,u,f=r.length,h=!1;for(null==a&amp;&amp;(s=o(u=e.path())),l=0;l&lt;=f;++l)!(l&lt;f&amp;&amp;i(c=r[l],l,r))===h&amp;&amp;((h=!h)?s.lineStart():s.lineEnd()),h&amp;&amp;s.point(+t(c,l,r),+n(c,l,r));if(u)return s=null,u+&quot;&quot;||null}return l.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),l):t},l.y=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:r(+t),l):n},l.defined=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(!!t),l):i},l.curve=function(t){return arguments.length?(o=t,null!=a&amp;&amp;(s=o(a)),l):o},l.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),l):a},l}function S(){var t=k,n=null,i=r(0),a=M,o=r(!0),s=null,l=T,c=null;function u(r){var u,f,h,p,d,g=r.length,m=!1,v=new Array(g),y=new Array(g);for(null==s&amp;&amp;(c=l(d=e.path())),u=0;u&lt;=g;++u){if(!(u&lt;g&amp;&amp;o(p=r[u],u,r))===m)if(m=!m)f=u,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),h=u-1;h&gt;=f;--h)c.point(v[h],y[h]);c.lineEnd(),c.areaEnd()}m&amp;&amp;(v[u]=+t(p,u,r),y[u]=+i(p,u,r),c.point(n?+n(p,u,r):v[u],a?+a(p,u,r):y[u]))}if(d)return c=null,d+&quot;&quot;||null}function f(){return A().defined(o).curve(l).context(s)}return u.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),n=null,u):t},u.x0=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),u):t},u.x1=function(t){return arguments.length?(n=null==t?null:&quot;function&quot;==typeof t?t:r(+t),u):n},u.y=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),a=null,u):i},u.y0=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),u):i},u.y1=function(t){return arguments.length?(a=null==t?null:&quot;function&quot;==typeof t?t:r(+t),u):a},u.lineX0=u.lineY0=function(){return f().x(t).y(i)},u.lineY1=function(){return f().x(t).y(a)},u.lineX1=function(){return f().x(n).y(i)},u.defined=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(!!t),u):o},u.curve=function(t){return arguments.length?(l=t,null!=s&amp;&amp;(c=l(s)),u):l},u.context=function(t){return arguments.length?(null==t?s=c=null:c=l(s=t),u):s},u}function E(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN}function C(t){return t}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var L=P(T);function I(t){this._curve=t}function P(t){function e(e){return new I(t(e))}return e._curve=t,e}function z(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(P(t)):e()._curve},t}function O(){return z(A().curve(L))}function D(){var t=S().curve(L),e=t.curve,r=t.lineX0,n=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return z(r())},delete t.lineX0,t.lineEndAngle=function(){return z(n())},delete t.lineX1,t.lineInnerRadius=function(){return z(i())},delete t.lineY0,t.lineOuterRadius=function(){return z(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(P(t)):e()._curve},t}function R(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}I.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var F=Array.prototype.slice;function B(t){return t.source}function N(t){return t.target}function j(t){var n=B,i=N,a=k,o=M,s=null;function l(){var r,l=F.call(arguments),c=n.apply(this,l),u=i.apply(this,l);if(s||(s=r=e.path()),t(s,+a.apply(this,(l[0]=c,l)),+o.apply(this,l),+a.apply(this,(l[0]=u,l)),+o.apply(this,l)),r)return s=null,r+&quot;&quot;||null}return l.source=function(t){return arguments.length?(n=t,l):n},l.target=function(t){return arguments.length?(i=t,l):i},l.x=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:r(+t),l):a},l.y=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),l):o},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function U(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,i,n,i)}function V(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e,r=(r+i)/2,n,r,n,i)}function q(t,e,r,n,i){var a=R(e,r),o=R(e,r=(r+i)/2),s=R(n,r),l=R(n,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}var H={draw:function(t,e){var r=Math.sqrt(e/u);t.moveTo(r,0),t.arc(0,0,r,0,h)}},G={draw:function(t,e){var r=Math.sqrt(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Y=Math.sqrt(1/3),W=2*Y,X={draw:function(t,e){var r=Math.sqrt(e/W),n=r*Y;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Z=Math.sin(u/10)/Math.sin(7*u/10),J=Math.sin(h/10)*Z,K=-Math.cos(h/10)*Z,Q={draw:function(t,e){var r=Math.sqrt(.8908130915292852*e),n=J*r,i=K*r;t.moveTo(0,-r),t.lineTo(n,i);for(var a=1;a&lt;5;++a){var o=h*a/5,s=Math.cos(o),l=Math.sin(o);t.lineTo(l*r,-s*r),t.lineTo(s*n-l*i,l*n+s*i)}t.closePath()}},$={draw:function(t,e){var r=Math.sqrt(e),n=-r/2;t.rect(n,n,r,r)}},tt=Math.sqrt(3),et={draw:function(t,e){var r=-Math.sqrt(e/(3*tt));t.moveTo(0,2*r),t.lineTo(-tt*r,-r),t.lineTo(tt*r,-r),t.closePath()}},rt=-.5,nt=Math.sqrt(3)/2,it=1/Math.sqrt(12),at=3*(it/2+1),ot={draw:function(t,e){var r=Math.sqrt(e/at),n=r/2,i=r*it,a=n,o=r*it+r,s=-a,l=o;t.moveTo(n,i),t.lineTo(a,o),t.lineTo(s,l),t.lineTo(rt*n-nt*i,nt*n+rt*i),t.lineTo(rt*a-nt*o,nt*a+rt*o),t.lineTo(rt*s-nt*l,nt*s+rt*l),t.lineTo(rt*n+nt*i,rt*i-nt*n),t.lineTo(rt*a+nt*o,rt*o-nt*a),t.lineTo(rt*s+nt*l,rt*l-nt*s),t.closePath()}},st=[H,G,X,$,Q,et,ot];function lt(){}function ct(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function ut(t){this._context=t}function ft(t){this._context=t}function ht(t){this._context=t}function pt(t,e){this._basis=new ut(t),this._beta=e}ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ct(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ft.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},pt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r&gt;0)for(var n,i=t[0],a=e[0],o=t[r]-i,s=e[r]-a,l=-1;++l&lt;=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+n*o),this._beta*e[l]+(1-this._beta)*(a+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var dt=function t(e){function r(t){return 1===e?new ut(t):new pt(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function gt(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function mt(t,e){this._context=t,this._k=(1-e)/6}mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:gt(this,this._x1,this._y1)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var vt=function t(e){function r(t){return new mt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function yt(t,e){this._context=t,this._k=(1-e)/6}yt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var xt=function t(e){function r(t){return new yt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function bt(t,e){this._context=t,this._k=(1-e)/6}bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var _t=function t(e){function r(t){return new bt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function wt(t,e,r){var n=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a&gt;1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a&gt;1e-12){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(n,i,a,o,t._x2,t._y2)}function Tt(t,e){this._context=t,this._alpha=e}Tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var kt=function t(e){function r(t){return e?new Tt(t,e):new mt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Mt(t,e){this._context=t,this._alpha=e}Mt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var At=function t(e){function r(t){return e?new Mt(t,e):new yt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function St(t,e){this._context=t,this._alpha=e}St.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Et=function t(e){function r(t){return e?new St(t,e):new bt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Ct(t){this._context=t}function Lt(t){return t&lt;0?-1:1}function It(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i&lt;0&amp;&amp;-0),o=(r-t._y1)/(i||n&lt;0&amp;&amp;-0),s=(a*i+o*n)/(n+i);return(Lt(a)+Lt(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Pt(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function zt(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-n)/3;t._context.bezierCurveTo(n+s,i+s*e,a-s,o-s*r,a,o)}function Ot(t){this._context=t}function Dt(t){this._context=new Rt(t)}function Rt(t){this._context=t}function Ft(t){this._context=t}function Bt(t){var e,r,n=t.length-1,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e&lt;n-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e&lt;n;++e)r=i[e]/a[e-1],a[e]-=r,o[e]-=r*o[e-1];for(i[n-1]=o[n-1]/a[n-1],e=n-2;e&gt;=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[n-1]=(t[n]+i[n-1])/2,e=0;e&lt;n-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function Nt(t,e){this._context=t,this._t=e}function jt(t,e){if((i=t.length)&gt;1)for(var r,n,i,a=1,o=t[e[0]],s=o.length;a&lt;i;++a)for(n=o,o=t[e[a]],r=0;r&lt;s;++r)o[r][1]+=o[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Ut(t){for(var e=t.length,r=new Array(e);--e&gt;=0;)r[e]=e;return r}function Vt(t,e){return t[e]}function qt(t){var e=t.map(Ht);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function Ht(t){for(var e,r=-1,n=0,i=t.length,a=-1/0;++r&lt;i;)(e=+t[r][1])&gt;a&amp;&amp;(a=e,n=r);return n}function Gt(t){var e=t.map(Yt);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function Yt(t){for(var e,r=0,n=-1,i=t.length;++n&lt;i;)(e=+t[n][1])&amp;&amp;(r+=e);return r}Ct.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._point=0},lineEnd:function(){this._point&amp;&amp;this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Ot.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:zt(this,this._t0,Pt(this,this._t0))}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,zt(this,Pt(this,r=It(this,t,e)),r);break;default:zt(this,this._t0,r=It(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Dt.prototype=Object.create(Ot.prototype)).point=function(t,e){Ot.prototype.point.call(this,e,t)},Rt.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}},Ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=Bt(t),i=Bt(e),a=0,o=1;o&lt;r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&amp;&amp;1===r)&amp;&amp;this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Nt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0&lt;this._t&amp;&amp;this._t&lt;1&amp;&amp;2===this._point&amp;&amp;this._context.lineTo(this._x,this._y),(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line&gt;=0&amp;&amp;(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t&lt;=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},t.arc=function(){var t=g,o=m,w=r(0),T=null,k=v,M=y,A=x,S=null;function E(){var r,g,m=+t.apply(this,arguments),v=+o.apply(this,arguments),y=k.apply(this,arguments)-f,x=M.apply(this,arguments)-f,E=n(x-y),C=x&gt;y;if(S||(S=r=e.path()),v&lt;m&amp;&amp;(g=v,v=m,m=g),v&gt;1e-12)if(E&gt;h-1e-12)S.moveTo(v*a(y),v*l(y)),S.arc(0,0,v,y,x,!C),m&gt;1e-12&amp;&amp;(S.moveTo(m*a(x),m*l(x)),S.arc(0,0,m,x,y,C));else{var L,I,P=y,z=x,O=y,D=x,R=E,F=E,B=A.apply(this,arguments)/2,N=B&gt;1e-12&amp;&amp;(T?+T.apply(this,arguments):c(m*m+v*v)),j=s(n(v-m)/2,+w.apply(this,arguments)),U=j,V=j;if(N&gt;1e-12){var q=d(N/m*l(B)),H=d(N/v*l(B));(R-=2*q)&gt;1e-12?(O+=q*=C?1:-1,D-=q):(R=0,O=D=(y+x)/2),(F-=2*H)&gt;1e-12?(P+=H*=C?1:-1,z-=H):(F=0,P=z=(y+x)/2)}var G=v*a(P),Y=v*l(P),W=m*a(D),X=m*l(D);if(j&gt;1e-12){var Z,J=v*a(z),K=v*l(z),Q=m*a(O),$=m*l(O);if(E&lt;u&amp;&amp;(Z=b(G,Y,Q,$,J,K,W,X))){var tt=G-Z[0],et=Y-Z[1],rt=J-Z[0],nt=K-Z[1],it=1/l(p((tt*rt+et*nt)/(c(tt*tt+et*et)*c(rt*rt+nt*nt)))/2),at=c(Z[0]*Z[0]+Z[1]*Z[1]);U=s(j,(m-at)/(it-1)),V=s(j,(v-at)/(it+1))}}F&gt;1e-12?V&gt;1e-12?(L=_(Q,$,G,Y,v,V,C),I=_(J,K,W,X,v,V,C),S.moveTo(L.cx+L.x01,L.cy+L.y01),V&lt;j?S.arc(L.cx,L.cy,V,i(L.y01,L.x01),i(I.y01,I.x01),!C):(S.arc(L.cx,L.cy,V,i(L.y01,L.x01),i(L.y11,L.x11),!C),S.arc(0,0,v,i(L.cy+L.y11,L.cx+L.x11),i(I.cy+I.y11,I.cx+I.x11),!C),S.arc(I.cx,I.cy,V,i(I.y11,I.x11),i(I.y01,I.x01),!C))):(S.moveTo(G,Y),S.arc(0,0,v,P,z,!C)):S.moveTo(G,Y),m&gt;1e-12&amp;&amp;R&gt;1e-12?U&gt;1e-12?(L=_(W,X,J,K,m,-U,C),I=_(G,Y,Q,$,m,-U,C),S.lineTo(L.cx+L.x01,L.cy+L.y01),U&lt;j?S.arc(L.cx,L.cy,U,i(L.y01,L.x01),i(I.y01,I.x01),!C):(S.arc(L.cx,L.cy,U,i(L.y01,L.x01),i(L.y11,L.x11),!C),S.arc(0,0,m,i(L.cy+L.y11,L.cx+L.x11),i(I.cy+I.y11,I.cx+I.x11),C),S.arc(I.cx,I.cy,U,i(I.y11,I.x11),i(I.y01,I.x01),!C))):S.arc(0,0,m,D,O,C):S.lineTo(W,X)}else S.moveTo(0,0);if(S.closePath(),r)return S=null,r+&quot;&quot;||null}return E.centroid=function(){var e=(+t.apply(this,arguments)+ +o.apply(this,arguments))/2,r=(+k.apply(this,arguments)+ +M.apply(this,arguments))/2-u/2;return[a(r)*e,l(r)*e]},E.innerRadius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),E):t},E.outerRadius=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),E):o},E.cornerRadius=function(t){return arguments.length?(w=&quot;function&quot;==typeof t?t:r(+t),E):w},E.padRadius=function(t){return arguments.length?(T=null==t?null:&quot;function&quot;==typeof t?t:r(+t),E):T},E.startAngle=function(t){return arguments.length?(k=&quot;function&quot;==typeof t?t:r(+t),E):k},E.endAngle=function(t){return arguments.length?(M=&quot;function&quot;==typeof t?t:r(+t),E):M},E.padAngle=function(t){return arguments.length?(A=&quot;function&quot;==typeof t?t:r(+t),E):A},E.context=function(t){return arguments.length?(S=null==t?null:t,E):S},E},t.area=S,t.areaRadial=D,t.curveBasis=function(t){return new ut(t)},t.curveBasisClosed=function(t){return new ft(t)},t.curveBasisOpen=function(t){return new ht(t)},t.curveBundle=dt,t.curveCardinal=vt,t.curveCardinalClosed=xt,t.curveCardinalOpen=_t,t.curveCatmullRom=kt,t.curveCatmullRomClosed=At,t.curveCatmullRomOpen=Et,t.curveLinear=T,t.curveLinearClosed=function(t){return new Ct(t)},t.curveMonotoneX=function(t){return new Ot(t)},t.curveMonotoneY=function(t){return new Dt(t)},t.curveNatural=function(t){return new Ft(t)},t.curveStep=function(t){return new Nt(t,.5)},t.curveStepAfter=function(t){return new Nt(t,1)},t.curveStepBefore=function(t){return new Nt(t,0)},t.line=A,t.lineRadial=O,t.linkHorizontal=function(){return j(U)},t.linkRadial=function(){var t=j(q);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},t.linkVertical=function(){return j(V)},t.pie=function(){var t=C,e=E,n=null,i=r(0),a=r(h),o=r(0);function s(r){var s,l,c,u,f,p=r.length,d=0,g=new Array(p),m=new Array(p),v=+i.apply(this,arguments),y=Math.min(h,Math.max(-h,a.apply(this,arguments)-v)),x=Math.min(Math.abs(y)/p,o.apply(this,arguments)),b=x*(y&lt;0?-1:1);for(s=0;s&lt;p;++s)(f=m[g[s]=s]=+t(r[s],s,r))&gt;0&amp;&amp;(d+=f);for(null!=e?g.sort((function(t,r){return e(m[t],m[r])})):null!=n&amp;&amp;g.sort((function(t,e){return n(r[t],r[e])})),s=0,c=d?(y-p*b)/d:0;s&lt;p;++s,v=u)l=g[s],u=v+((f=m[l])&gt;0?f*c:0)+b,m[l]={data:r[l],index:s,value:f,startAngle:v,endAngle:u,padAngle:x};return m}return s.value=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),s):i},s.endAngle=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:r(+t),s):a},s.padAngle=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),s):o},s},t.pointRadial=R,t.radialArea=D,t.radialLine=O,t.stack=function(){var t=r([]),e=Ut,n=jt,i=Vt;function a(r){var a,o,s=t.apply(this,arguments),l=r.length,c=s.length,u=new Array(c);for(a=0;a&lt;c;++a){for(var f,h=s[a],p=u[a]=new Array(l),d=0;d&lt;l;++d)p[d]=f=[0,+i(r[d],h,d,r)],f.data=r[d];p.key=h}for(a=0,o=e(u);a&lt;c;++a)u[o[a]].index=a;return n(u,o),u}return a.keys=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(F.call(e)),a):t},a.value=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),a):i},a.order=function(t){return arguments.length?(e=null==t?Ut:&quot;function&quot;==typeof t?t:r(F.call(t)),a):e},a.offset=function(t){return arguments.length?(n=null==t?jt:t,a):n},a},t.stackOffsetDiverging=function(t,e){if((s=t.length)&gt;0)for(var r,n,i,a,o,s,l=0,c=t[e[0]].length;l&lt;c;++l)for(a=o=0,r=0;r&lt;s;++r)(i=(n=t[e[r]][l])[1]-n[0])&gt;0?(n[0]=a,n[1]=a+=i):i&lt;0?(n[1]=o,n[0]=o+=i):(n[0]=0,n[1]=i)},t.stackOffsetExpand=function(t,e){if((n=t.length)&gt;0){for(var r,n,i,a=0,o=t[0].length;a&lt;o;++a){for(i=r=0;r&lt;n;++r)i+=t[r][a][1]||0;if(i)for(r=0;r&lt;n;++r)t[r][a][1]/=i}jt(t,e)}},t.stackOffsetNone=jt,t.stackOffsetSilhouette=function(t,e){if((r=t.length)&gt;0){for(var r,n=0,i=t[e[0]],a=i.length;n&lt;a;++n){for(var o=0,s=0;o&lt;r;++o)s+=t[o][n][1]||0;i[n][1]+=i[n][0]=-s/2}jt(t,e)}},t.stackOffsetWiggle=function(t,e){if((i=t.length)&gt;0&amp;&amp;(n=(r=t[e[0]]).length)&gt;0){for(var r,n,i,a=0,o=1;o&lt;n;++o){for(var s=0,l=0,c=0;s&lt;i;++s){for(var u=t[e[s]],f=u[o][1]||0,h=(f-(u[o-1][1]||0))/2,p=0;p&lt;s;++p){var d=t[e[p]];h+=(d[o][1]||0)-(d[o-1][1]||0)}l+=f,c+=h*f}r[o-1][1]+=r[o-1][0]=a,l&amp;&amp;(a-=c/l)}r[o-1][1]+=r[o-1][0]=a,jt(t,e)}},t.stackOrderAppearance=qt,t.stackOrderAscending=Gt,t.stackOrderDescending=function(t){return Gt(t).reverse()},t.stackOrderInsideOut=function(t){var e,r,n=t.length,i=t.map(Yt),a=qt(t),o=0,s=0,l=[],c=[];for(e=0;e&lt;n;++e)r=a[e],o&lt;s?(o+=i[r],l.push(r)):(s+=i[r],c.push(r));return c.reverse().concat(l)},t.stackOrderNone=Ut,t.stackOrderReverse=function(t){return Ut(t).reverse()},t.symbol=function(){var t=r(H),n=r(64),i=null;function a(){var r;if(i||(i=r=e.path()),t.apply(this,arguments).draw(i,+n.apply(this,arguments)),r)return i=null,r+&quot;&quot;||null}return a.type=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(e),a):t},a.size=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:r(+t),a):n},a.context=function(t){return arguments.length?(i=null==t?null:t,a):i},a},t.symbolCircle=H,t.symbolCross=G,t.symbolDiamond=X,t.symbolSquare=$,t.symbolStar=Q,t.symbolTriangle=et,t.symbolWye=ot,t.symbols=st,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-path&quot;:163}],166:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-time&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t){if(0&lt;=t.y&amp;&amp;t.y&lt;100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function n(t){if(0&lt;=t.y&amp;&amp;t.y&lt;100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function i(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function a(t){var a=t.dateTime,o=t.date,l=t.time,c=t.periods,u=t.days,f=t.shortDays,h=t.months,yt=t.shortMonths,xt=p(c),bt=d(c),_t=p(u),wt=d(u),Tt=p(f),kt=d(f),Mt=p(h),At=d(h),St=p(yt),Et=d(yt),Ct={a:function(t){return f[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return yt[t.getMonth()]},B:function(t){return h[t.getMonth()]},c:null,d:D,e:D,f:j,H:R,I:F,j:B,L:N,m:U,M:V,p:function(t){return c[+(t.getHours()&gt;=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:mt,s:vt,S:q,u:H,U:G,V:Y,w:W,W:X,x:null,X:null,y:Z,Y:J,Z:K,&quot;%&quot;:gt},Lt={a:function(t){return f[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return yt[t.getUTCMonth()]},B:function(t){return h[t.getUTCMonth()]},c:null,d:Q,e:Q,f:nt,H:$,I:tt,j:et,L:rt,m:it,M:at,p:function(t){return c[+(t.getUTCHours()&gt;=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:mt,s:vt,S:ot,u:st,U:lt,V:ct,w:ut,W:ft,x:null,X:null,y:ht,Y:pt,Z:dt,&quot;%&quot;:gt},It={a:function(t,e,r){var n=Tt.exec(e.slice(r));return n?(t.w=kt[n[0].toLowerCase()],r+n[0].length):-1},A:function(t,e,r){var n=_t.exec(e.slice(r));return n?(t.w=wt[n[0].toLowerCase()],r+n[0].length):-1},b:function(t,e,r){var n=St.exec(e.slice(r));return n?(t.m=Et[n[0].toLowerCase()],r+n[0].length):-1},B:function(t,e,r){var n=Mt.exec(e.slice(r));return n?(t.m=At[n[0].toLowerCase()],r+n[0].length):-1},c:function(t,e,r){return Ot(t,a,e,r)},d:M,e:M,f:I,H:S,I:S,j:A,L:L,m:k,M:E,p:function(t,e,r){var n=xt.exec(e.slice(r));return n?(t.p=bt[n[0].toLowerCase()],r+n[0].length):-1},q:T,Q:z,s:O,S:C,u:m,U:v,V:y,w:g,W:x,x:function(t,e,r){return Ot(t,o,e,r)},X:function(t,e,r){return Ot(t,l,e,r)},y:_,Y:b,Z:w,&quot;%&quot;:P};function Pt(t,e){return function(r){var n,i,a,o=[],l=-1,c=0,u=t.length;for(r instanceof Date||(r=new Date(+r));++l&lt;u;)37===t.charCodeAt(l)&amp;&amp;(o.push(t.slice(c,l)),null!=(i=s[n=t.charAt(++l)])?n=t.charAt(++l):i=&quot;e&quot;===n?&quot; &quot;:&quot;0&quot;,(a=e[n])&amp;&amp;(n=a(r,i)),o.push(n),c=l+1);return o.push(t.slice(c,l)),o.join(&quot;&quot;)}}function zt(t,a){return function(o){var s,l,c=i(1900,void 0,1);if(Ot(c,t,o+=&quot;&quot;,0)!=o.length)return null;if(&quot;Q&quot;in c)return new Date(c.Q);if(&quot;s&quot;in c)return new Date(1e3*c.s+(&quot;L&quot;in c?c.L:0));if(a&amp;&amp;!(&quot;Z&quot;in c)&amp;&amp;(c.Z=0),&quot;p&quot;in c&amp;&amp;(c.H=c.H%12+12*c.p),void 0===c.m&amp;&amp;(c.m=&quot;q&quot;in c?c.q:0),&quot;V&quot;in c){if(c.V&lt;1||c.V&gt;53)return null;&quot;w&quot;in c||(c.w=1),&quot;Z&quot;in c?(l=(s=n(i(c.y,0,1))).getUTCDay(),s=l&gt;4||0===l?e.utcMonday.ceil(s):e.utcMonday(s),s=e.utcDay.offset(s,7*(c.V-1)),c.y=s.getUTCFullYear(),c.m=s.getUTCMonth(),c.d=s.getUTCDate()+(c.w+6)%7):(l=(s=r(i(c.y,0,1))).getDay(),s=l&gt;4||0===l?e.timeMonday.ceil(s):e.timeMonday(s),s=e.timeDay.offset(s,7*(c.V-1)),c.y=s.getFullYear(),c.m=s.getMonth(),c.d=s.getDate()+(c.w+6)%7)}else(&quot;W&quot;in c||&quot;U&quot;in c)&amp;&amp;(&quot;w&quot;in c||(c.w=&quot;u&quot;in c?c.u%7:&quot;W&quot;in c?1:0),l=&quot;Z&quot;in c?n(i(c.y,0,1)).getUTCDay():r(i(c.y,0,1)).getDay(),c.m=0,c.d=&quot;W&quot;in c?(c.w+6)%7+7*c.W-(l+5)%7:c.w+7*c.U-(l+6)%7);return&quot;Z&quot;in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,n(c)):r(c)}}function Ot(t,e,r,n){for(var i,a,o=0,l=e.length,c=r.length;o&lt;l;){if(n&gt;=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=It[i in s?e.charAt(o++):i])||(n=a(t,r,n))&lt;0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return Ct.x=Pt(o,Ct),Ct.X=Pt(l,Ct),Ct.c=Pt(a,Ct),Lt.x=Pt(o,Lt),Lt.X=Pt(l,Lt),Lt.c=Pt(a,Lt),{format:function(t){var e=Pt(t+=&quot;&quot;,Ct);return e.toString=function(){return t},e},parse:function(t){var e=zt(t+=&quot;&quot;,!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=Pt(t+=&quot;&quot;,Lt);return e.toString=function(){return t},e},utcParse:function(t){var e=zt(t+=&quot;&quot;,!0);return e.toString=function(){return t},e}}}var o,s={&quot;-&quot;:&quot;&quot;,_:&quot; &quot;,0:&quot;0&quot;},l=/^\s*\d+/,c=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(t,e,r){var n=t&lt;0?&quot;-&quot;:&quot;&quot;,i=(n?-t:t)+&quot;&quot;,a=i.length;return n+(a&lt;r?new Array(r-a+1).join(e)+i:i)}function h(t){return t.replace(u,&quot;\\$&amp;&quot;)}function p(t){return new RegExp(&quot;^(?:&quot;+t.map(h).join(&quot;|&quot;)+&quot;)&quot;,&quot;i&quot;)}function d(t){for(var e={},r=-1,n=t.length;++r&lt;n;)e[t[r].toLowerCase()]=r;return e}function g(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function m(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function v(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function y(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function x(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function b(t,e,r){var n=l.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function _(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]&gt;68?1900:2e3),r+n[0].length):-1}function w(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||&quot;00&quot;)),r+n[0].length):-1}function T(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function k(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function M(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function A(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function S(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function E(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function C(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function L(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function I(t,e,r){var n=l.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function P(t,e,r){var n=c.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function z(t,e,r){var n=l.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function O(t,e,r){var n=l.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function D(t,e){return f(t.getDate(),e,2)}function R(t,e){return f(t.getHours(),e,2)}function F(t,e){return f(t.getHours()%12||12,e,2)}function B(t,r){return f(1+e.timeDay.count(e.timeYear(t),t),r,3)}function N(t,e){return f(t.getMilliseconds(),e,3)}function j(t,e){return N(t,e)+&quot;000&quot;}function U(t,e){return f(t.getMonth()+1,e,2)}function V(t,e){return f(t.getMinutes(),e,2)}function q(t,e){return f(t.getSeconds(),e,2)}function H(t){var e=t.getDay();return 0===e?7:e}function G(t,r){return f(e.timeSunday.count(e.timeYear(t)-1,t),r,2)}function Y(t,r){var n=t.getDay();return t=n&gt;=4||0===n?e.timeThursday(t):e.timeThursday.ceil(t),f(e.timeThursday.count(e.timeYear(t),t)+(4===e.timeYear(t).getDay()),r,2)}function W(t){return t.getDay()}function X(t,r){return f(e.timeMonday.count(e.timeYear(t)-1,t),r,2)}function Z(t,e){return f(t.getFullYear()%100,e,2)}function J(t,e){return f(t.getFullYear()%1e4,e,4)}function K(t){var e=t.getTimezoneOffset();return(e&gt;0?&quot;-&quot;:(e*=-1,&quot;+&quot;))+f(e/60|0,&quot;0&quot;,2)+f(e%60,&quot;0&quot;,2)}function Q(t,e){return f(t.getUTCDate(),e,2)}function $(t,e){return f(t.getUTCHours(),e,2)}function tt(t,e){return f(t.getUTCHours()%12||12,e,2)}function et(t,r){return f(1+e.utcDay.count(e.utcYear(t),t),r,3)}function rt(t,e){return f(t.getUTCMilliseconds(),e,3)}function nt(t,e){return rt(t,e)+&quot;000&quot;}function it(t,e){return f(t.getUTCMonth()+1,e,2)}function at(t,e){return f(t.getUTCMinutes(),e,2)}function ot(t,e){return f(t.getUTCSeconds(),e,2)}function st(t){var e=t.getUTCDay();return 0===e?7:e}function lt(t,r){return f(e.utcSunday.count(e.utcYear(t)-1,t),r,2)}function ct(t,r){var n=t.getUTCDay();return t=n&gt;=4||0===n?e.utcThursday(t):e.utcThursday.ceil(t),f(e.utcThursday.count(e.utcYear(t),t)+(4===e.utcYear(t).getUTCDay()),r,2)}function ut(t){return t.getUTCDay()}function ft(t,r){return f(e.utcMonday.count(e.utcYear(t)-1,t),r,2)}function ht(t,e){return f(t.getUTCFullYear()%100,e,2)}function pt(t,e){return f(t.getUTCFullYear()%1e4,e,4)}function dt(){return&quot;+0000&quot;}function gt(){return&quot;%&quot;}function mt(t){return+t}function vt(t){return Math.floor(+t/1e3)}function yt(e){return o=a(e),t.timeFormat=o.format,t.timeParse=o.parse,t.utcFormat=o.utcFormat,t.utcParse=o.utcParse,o}yt({dateTime:&quot;%x, %X&quot;,date:&quot;%-m/%-d/%Y&quot;,time:&quot;%-I:%M:%S %p&quot;,periods:[&quot;AM&quot;,&quot;PM&quot;],days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;]});var xt=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);var bt=+new Date(&quot;2000-01-01T00:00:00.000Z&quot;)?function(t){var e=new Date(t);return isNaN(e)?null:e}:t.utcParse(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);t.isoFormat=xt,t.isoParse=bt,t.timeFormatDefaultLocale=yt,t.timeFormatLocale=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-time&quot;:167}],167:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e=new Date,r=new Date;function n(t,i,a,o){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),i(e,1),t(e),e},s.round=function(t){var e=s(t),r=s.ceil(t);return t-e&lt;r-t?e:r},s.offset=function(t,e){return i(t=new Date(+t),null==e?1:Math.floor(e)),t},s.range=function(e,r,n){var a,o=[];if(e=s.ceil(e),n=null==n?1:Math.floor(n),!(e&lt;r&amp;&amp;n&gt;0))return o;do{o.push(a=new Date(+e)),i(e,n),t(e)}while(a&lt;e&amp;&amp;e&lt;r);return o},s.filter=function(e){return n((function(r){if(r&gt;=r)for(;t(r),!e(r);)r.setTime(r-1)}),(function(t,r){if(t&gt;=t)if(r&lt;0)for(;++r&lt;=0;)for(;i(t,-1),!e(t););else for(;--r&gt;=0;)for(;i(t,1),!e(t););}))},a&amp;&amp;(s.count=function(n,i){return e.setTime(+n),r.setTime(+i),t(e),t(r),Math.floor(a(e,r))},s.every=function(t){return t=Math.floor(t),isFinite(t)&amp;&amp;t&gt;0?t&gt;1?s.filter(o?function(e){return o(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}var i=n((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));i.every=function(t){return t=Math.floor(t),isFinite(t)&amp;&amp;t&gt;0?t&gt;1?n((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,r){e.setTime(+e+r*t)}),(function(e,r){return(r-e)/t})):i:null};var a=i.range,o=n((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()})),s=o.range,l=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()})),c=l.range,u=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()})),f=u.range,h=n((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1})),p=h.range;function d(t){return n((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var g=d(0),m=d(1),v=d(2),y=d(3),x=d(4),b=d(5),_=d(6),w=g.range,T=m.range,k=v.range,M=y.range,A=x.range,S=b.range,E=_.range,C=n((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),L=C.range,I=n((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));I.every=function(t){return isFinite(t=Math.floor(t))&amp;&amp;t&gt;0?n((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,r){e.setFullYear(e.getFullYear()+r*t)})):null};var P=I.range,z=n((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getUTCMinutes()})),O=z.range,D=n((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()})),R=D.range,F=n((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1})),B=F.range;function N(t){return n((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}var j=N(0),U=N(1),V=N(2),q=N(3),H=N(4),G=N(5),Y=N(6),W=j.range,X=U.range,Z=V.range,J=q.range,K=H.range,Q=G.range,$=Y.range,tt=n((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),et=tt.range,rt=n((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));rt.every=function(t){return isFinite(t=Math.floor(t))&amp;&amp;t&gt;0?n((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null};var nt=rt.range;t.timeDay=h,t.timeDays=p,t.timeFriday=b,t.timeFridays=S,t.timeHour=u,t.timeHours=f,t.timeInterval=n,t.timeMillisecond=i,t.timeMilliseconds=a,t.timeMinute=l,t.timeMinutes=c,t.timeMonday=m,t.timeMondays=T,t.timeMonth=C,t.timeMonths=L,t.timeSaturday=_,t.timeSaturdays=E,t.timeSecond=o,t.timeSeconds=s,t.timeSunday=g,t.timeSundays=w,t.timeThursday=x,t.timeThursdays=A,t.timeTuesday=v,t.timeTuesdays=k,t.timeWednesday=y,t.timeWednesdays=M,t.timeWeek=g,t.timeWeeks=w,t.timeYear=I,t.timeYears=P,t.utcDay=F,t.utcDays=B,t.utcFriday=G,t.utcFridays=Q,t.utcHour=D,t.utcHours=R,t.utcMillisecond=i,t.utcMilliseconds=a,t.utcMinute=z,t.utcMinutes=O,t.utcMonday=U,t.utcMondays=X,t.utcMonth=tt,t.utcMonths=et,t.utcSaturday=Y,t.utcSaturdays=$,t.utcSecond=o,t.utcSeconds=s,t.utcSunday=j,t.utcSundays=W,t.utcThursday=H,t.utcThursdays=K,t.utcTuesday=V,t.utcTuesdays=Z,t.utcWednesday=q,t.utcWednesdays=J,t.utcWeek=j,t.utcWeeks=W,t.utcYear=rt,t.utcYears=nt,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],168:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e,r,n=0,i=0,a=0,o=0,s=0,l=0,c=&quot;object&quot;==typeof performance&amp;&amp;performance.now?performance:Date,u=&quot;object&quot;==typeof window&amp;&amp;window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function f(){return s||(u(h),s=c.now()+l)}function h(){s=0}function p(){this._call=this._time=this._next=null}function d(t,e,r){var n=new p;return n.restart(t,e,r),n}function g(){f(),++n;for(var t,r=e;r;)(t=s-r._time)&gt;=0&amp;&amp;r._call.call(null,t),r=r._next;--n}function m(){s=(o=c.now())+l,n=i=0;try{g()}finally{n=0,function(){var t,n,i=e,a=1/0;for(;i;)i._call?(a&gt;i._time&amp;&amp;(a=i._time),t=i,i=i._next):(n=i._next,i._next=null,i=t?t._next=n:e=n);r=t,y(a)}(),s=0}}function v(){var t=c.now(),e=t-o;e&gt;1e3&amp;&amp;(l-=e,o=t)}function y(t){n||(i&amp;&amp;(i=clearTimeout(i)),t-s&gt;24?(t&lt;1/0&amp;&amp;(i=setTimeout(m,t-c.now()-l)),a&amp;&amp;(a=clearInterval(a))):(a||(o=c.now(),a=setInterval(v,1e3)),n=1,u(m)))}p.prototype=d.prototype={constructor:p,restart:function(t,n,i){if(&quot;function&quot;!=typeof t)throw new TypeError(&quot;callback is not a function&quot;);i=(null==i?f():+i)+(null==n?0:+n),this._next||r===this||(r?r._next=this:e=this,r=this),this._call=t,this._time=i,y()},stop:function(){this._call&amp;&amp;(this._call=null,this._time=1/0,y())}},t.interval=function(t,e,r){var n=new p,i=e;return null==e?(n.restart(t,e,r),n):(e=+e,r=null==r?f():+r,n.restart((function a(o){o+=i,n.restart(a,i+=e,r),t(o)}),e,r),n)},t.now=f,t.timeout=function(t,e,r){var n=new p;return e=null==e?0:+e,n.restart((function(r){n.stop(),t(r+e)}),e,r),n},t.timer=d,t.timerFlush=g,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],169:[function(t,e,r){!function(){var t={version:&quot;3.5.17&quot;},r=[].slice,n=function(t){return r.call(t)},i=this.document;function a(t){return t&amp;&amp;(t.ownerDocument||t.document||t).documentElement}function o(t){return t&amp;&amp;(t.ownerDocument&amp;&amp;t.ownerDocument.defaultView||t.document&amp;&amp;t||t.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch(t){n=function(t){for(var e=t.length,r=new Array(e);e--;)r[e]=t[e];return r}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement(&quot;DIV&quot;).style.setProperty(&quot;opacity&quot;,0,&quot;&quot;)}catch(t){var s=this.Element.prototype,l=s.setAttribute,c=s.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;s.setAttribute=function(t,e){l.call(this,t,e+&quot;&quot;)},s.setAttributeNS=function(t,e,r){c.call(this,t,e,r+&quot;&quot;)},u.setProperty=function(t,e,r){f.call(this,t,e+&quot;&quot;,r)}}function h(t,e){return t&lt;e?-1:t&gt;e?1:t&gt;=e?0:NaN}function p(t){return null===t?NaN:+t}function d(t){return!isNaN(t)}function g(t){return{left:function(e,r,n,i){for(arguments.length&lt;3&amp;&amp;(n=0),arguments.length&lt;4&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&lt;0?n=a+1:i=a}return n},right:function(e,r,n,i){for(arguments.length&lt;3&amp;&amp;(n=0),arguments.length&lt;4&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&gt;0?i=a:n=a+1}return n}}}t.ascending=h,t.descending=function(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN},t.min=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i&lt;a;)if(null!=(n=t[i])&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=t[i])&amp;&amp;r&gt;n&amp;&amp;(r=n)}else{for(;++i&lt;a;)if(null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=e.call(t,t[i],i))&amp;&amp;r&gt;n&amp;&amp;(r=n)}return r},t.max=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i&lt;a;)if(null!=(n=t[i])&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=t[i])&amp;&amp;n&gt;r&amp;&amp;(r=n)}else{for(;++i&lt;a;)if(null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;r&amp;&amp;(r=n)}return r},t.extent=function(t,e){var r,n,i,a=-1,o=t.length;if(1===arguments.length){for(;++a&lt;o;)if(null!=(n=t[a])&amp;&amp;n&gt;=n){r=i=n;break}for(;++a&lt;o;)null!=(n=t[a])&amp;&amp;(r&gt;n&amp;&amp;(r=n),i&lt;n&amp;&amp;(i=n))}else{for(;++a&lt;o;)if(null!=(n=e.call(t,t[a],a))&amp;&amp;n&gt;=n){r=i=n;break}for(;++a&lt;o;)null!=(n=e.call(t,t[a],a))&amp;&amp;(r&gt;n&amp;&amp;(r=n),i&lt;n&amp;&amp;(i=n))}return[r,i]},t.sum=function(t,e){var r,n=0,i=t.length,a=-1;if(1===arguments.length)for(;++a&lt;i;)d(r=+t[a])&amp;&amp;(n+=r);else for(;++a&lt;i;)d(r=+e.call(t,t[a],a))&amp;&amp;(n+=r);return n},t.mean=function(t,e){var r,n=0,i=t.length,a=-1,o=i;if(1===arguments.length)for(;++a&lt;i;)d(r=p(t[a]))?n+=r:--o;else for(;++a&lt;i;)d(r=p(e.call(t,t[a],a)))?n+=r:--o;if(o)return n/o},t.quantile=function(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i},t.median=function(e,r){var n,i=[],a=e.length,o=-1;if(1===arguments.length)for(;++o&lt;a;)d(n=p(e[o]))&amp;&amp;i.push(n);else for(;++o&lt;a;)d(n=p(r.call(e,e[o],o)))&amp;&amp;i.push(n);if(i.length)return t.quantile(i.sort(h),.5)},t.variance=function(t,e){var r,n,i=t.length,a=0,o=0,s=-1,l=0;if(1===arguments.length)for(;++s&lt;i;)d(r=p(t[s]))&amp;&amp;(o+=(n=r-a)*(r-(a+=n/++l)));else for(;++s&lt;i;)d(r=p(e.call(t,t[s],s)))&amp;&amp;(o+=(n=r-a)*(r-(a+=n/++l)));if(l&gt;1)return o/(l-1)},t.deviation=function(){var e=t.variance.apply(this,arguments);return e?Math.sqrt(e):e};var m=g(h);function v(t){return t.length}t.bisectLeft=m.left,t.bisect=t.bisectRight=m.right,t.bisector=function(t){return g(1===t.length?function(e,r){return h(t(e),r)}:t)},t.shuffle=function(t,e,r){(a=arguments.length)&lt;3&amp;&amp;(r=t.length,a&lt;2&amp;&amp;(e=0));for(var n,i,a=r-e;a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.pairs=function(t){for(var e=0,r=t.length-1,n=t[0],i=new Array(r&lt;0?0:r);e&lt;r;)i[e]=[n,n=t[++e]];return i},t.transpose=function(e){if(!(a=e.length))return[];for(var r=-1,n=t.min(e,v),i=new Array(n);++r&lt;n;)for(var a,o=-1,s=i[r]=new Array(a);++o&lt;a;)s[o]=e[o][r];return i},t.zip=function(){return t.transpose(arguments)},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a&lt;i;)o+=t[a].length;for(r=new Array(o);--i&gt;=0;)for(e=(n=t[i]).length;--e&gt;=0;)r[--o]=n[e];return r};var y=Math.abs;function x(t){for(var e=1;t*e%1;)e*=10;return e}function b(t,e){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],enumerable:!1})}function _(){this._=Object.create(null)}t.range=function(t,e,r){if(arguments.length&lt;3&amp;&amp;(r=1,arguments.length&lt;2&amp;&amp;(e=t,t=0)),(e-t)/r==1/0)throw new Error(&quot;infinite range&quot;);var n,i=[],a=x(y(r)),o=-1;if(t*=a,e*=a,(r*=a)&lt;0)for(;(n=t+r*++o)&gt;e;)i.push(n/a);else for(;(n=t+r*++o)&lt;e;)i.push(n/a);return i},t.map=function(t,e){var r=new _;if(t instanceof _)t.forEach((function(t,e){r.set(t,e)}));else if(Array.isArray(t)){var n,i=-1,a=t.length;if(1===arguments.length)for(;++i&lt;a;)r.set(i,t[i]);else for(;++i&lt;a;)r.set(e.call(t,n=t[i],i),n)}else for(var o in t)r.set(o,t[o]);return r};function w(t){return&quot;__proto__&quot;==(t+=&quot;&quot;)||&quot;\0&quot;===t[0]?&quot;\0&quot;+t:t}function T(t){return&quot;\0&quot;===(t+=&quot;&quot;)[0]?t.slice(1):t}function k(t){return w(t)in this._}function M(t){return(t=w(t))in this._&amp;&amp;delete this._[t]}function A(){var t=[];for(var e in this._)t.push(T(e));return t}function S(){var t=0;for(var e in this._)++t;return t}function E(){for(var t in this._)return!1;return!0}function C(){this._=Object.create(null)}function L(t){return t}function I(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}function P(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var r=0,n=z.length;r&lt;n;++r){var i=z[r]+e;if(i in t)return i}}b(_,{has:k,get:function(t){return this._[w(t)]},set:function(t,e){return this._[w(t)]=e},remove:M,keys:A,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:T(e),value:this._[e]});return t},size:S,empty:E,forEach:function(t){for(var e in this._)t.call(this,T(e),this._[e])}}),t.nest=function(){var e,r,n={},i=[],a=[];function o(t,a,s){if(s&gt;=i.length)return r?r.call(n,a):e?a.sort(e):a;for(var l,c,u,f,h=-1,p=a.length,d=i[s++],g=new _;++h&lt;p;)(f=g.get(l=d(c=a[h])))?f.push(c):g.set(l,[c]);return t?(c=t(),u=function(e,r){c.set(e,o(t,r,s))}):(c={},u=function(e,r){c[e]=o(t,r,s)}),g.forEach(u),c}return n.map=function(t,e){return o(e,t,0)},n.entries=function(e){return function t(e,r){if(r&gt;=i.length)return e;var n=[],o=a[r++];return e.forEach((function(e,i){n.push({key:e,values:t(i,r)})})),o?n.sort((function(t,e){return o(t.key,e.key)})):n}(o(t.map,e,0),0)},n.key=function(t){return i.push(t),n},n.sortKeys=function(t){return a[i.length-1]=t,n},n.sortValues=function(t){return e=t,n},n.rollup=function(t){return r=t,n},n},t.set=function(t){var e=new C;if(t)for(var r=0,n=t.length;r&lt;n;++r)e.add(t[r]);return e},b(C,{has:k,add:function(t){return this._[w(t+=&quot;&quot;)]=!0,t},remove:M,values:A,size:S,empty:E,forEach:function(t){for(var e in this._)t.call(this,T(e))}}),t.behavior={},t.rebind=function(t,e){for(var r,n=1,i=arguments.length;++n&lt;i;)t[r=arguments[n]]=I(t,e,e[r]);return t};var z=[&quot;webkit&quot;,&quot;ms&quot;,&quot;moz&quot;,&quot;Moz&quot;,&quot;o&quot;,&quot;O&quot;];function O(){}function D(){}function R(t){var e=[],r=new _;function n(){for(var r,n=e,i=-1,a=n.length;++i&lt;a;)(r=n[i].on)&amp;&amp;r.apply(this,arguments);return t}return n.on=function(n,i){var a,o=r.get(n);return arguments.length&lt;2?o&amp;&amp;o.on:(o&amp;&amp;(o.on=null,e=e.slice(0,a=e.indexOf(o)).concat(e.slice(a+1)),r.remove(n)),i&amp;&amp;e.push(r.set(n,{on:i})),t)},n}function F(){t.event.preventDefault()}function B(){for(var e,r=t.event;e=r.sourceEvent;)r=e;return r}function N(e){for(var r=new D,n=0,i=arguments.length;++n&lt;i;)r[arguments[n]]=R(r);return r.of=function(n,i){return function(a){try{var o=a.sourceEvent=t.event;a.target=e,t.event=a,r[a.type].apply(n,i)}finally{t.event=o}}},r}t.dispatch=function(){for(var t=new D,e=-1,r=arguments.length;++e&lt;r;)t[arguments[e]]=R(t);return t},D.prototype.on=function(t,e){var r=t.indexOf(&quot;.&quot;),n=&quot;&quot;;if(r&gt;=0&amp;&amp;(n=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length&lt;2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&amp;&amp;this[t].on(n,null);return this}},t.event=null,t.requote=function(t){return t.replace(j,&quot;\\$&amp;&quot;)};var j=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,U={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)t[r]=e[r]};function V(t){return U(t,Y),t}var q=function(t,e){return e.querySelector(t)},H=function(t,e){return e.querySelectorAll(t)},G=function(t,e){var r=t.matches||t[P(t,&quot;matchesSelector&quot;)];return(G=function(t,e){return r.call(t,e)})(t,e)};&quot;function&quot;==typeof Sizzle&amp;&amp;(q=function(t,e){return Sizzle(t,e)[0]||null},H=Sizzle,G=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Y=t.selection.prototype=[];function W(t){return&quot;function&quot;==typeof t?t:function(){return q(t,this)}}function X(t){return&quot;function&quot;==typeof t?t:function(){return H(t,this)}}Y.select=function(t){var e,r,n,i,a=[];t=W(t);for(var o=-1,s=this.length;++o&lt;s;){a.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var l=-1,c=n.length;++l&lt;c;)(i=n[l])?(e.push(r=t.call(i,i.__data__,l,o)),r&amp;&amp;&quot;__data__&quot;in i&amp;&amp;(r.__data__=i.__data__)):e.push(null)}return V(a)},Y.selectAll=function(t){var e,r,i=[];t=X(t);for(var a=-1,o=this.length;++a&lt;o;)for(var s=this[a],l=-1,c=s.length;++l&lt;c;)(r=s[l])&amp;&amp;(i.push(e=n(t.call(r,r.__data__,l,a))),e.parentNode=r);return V(i)};var Z=&quot;http://www.w3.org/1999/xhtml&quot;,J={svg:&quot;http://www.w3.org/2000/svg&quot;,xhtml:Z,xlink:&quot;http://www.w3.org/1999/xlink&quot;,xml:&quot;http://www.w3.org/XML/1998/namespace&quot;,xmlns:&quot;http://www.w3.org/2000/xmlns/&quot;};function K(e,r){return e=t.ns.qualify(e),null==r?e.local?function(){this.removeAttributeNS(e.space,e.local)}:function(){this.removeAttribute(e)}:&quot;function&quot;==typeof r?e.local?function(){var t=r.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}:function(){var t=r.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}:e.local?function(){this.setAttributeNS(e.space,e.local,r)}:function(){this.setAttribute(e,r)}}function Q(t){return t.trim().replace(/\s+/g,&quot; &quot;)}function $(e){return new RegExp(&quot;(?:^|\\s+)&quot;+t.requote(e)+&quot;(?:\\s+|$)&quot;,&quot;g&quot;)}function tt(t){return(t+&quot;&quot;).trim().split(/^|\s+/)}function et(t,e){var r=(t=tt(t).map(rt)).length;return&quot;function&quot;==typeof e?function(){for(var n=-1,i=e.apply(this,arguments);++n&lt;r;)t[n](this,i)}:function(){for(var n=-1;++n&lt;r;)t[n](this,e)}}function rt(t){var e=$(t);return function(r,n){if(i=r.classList)return n?i.add(t):i.remove(t);var i=r.getAttribute(&quot;class&quot;)||&quot;&quot;;n?(e.lastIndex=0,e.test(i)||r.setAttribute(&quot;class&quot;,Q(i+&quot; &quot;+t))):r.setAttribute(&quot;class&quot;,Q(i.replace(e,&quot; &quot;)))}}function nt(t,e,r){return null==e?function(){this.style.removeProperty(t)}:&quot;function&quot;==typeof e?function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}:function(){this.style.setProperty(t,e,r)}}function it(t,e){return null==e?function(){delete this[t]}:&quot;function&quot;==typeof e?function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}:function(){this[t]=e}}function at(e){return&quot;function&quot;==typeof e?e:(e=t.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Z&amp;&amp;t.documentElement.namespaceURI===Z?t.createElement(e):t.createElementNS(r,e)}}function ot(){var t=this.parentNode;t&amp;&amp;t.removeChild(this)}function st(t){return{__data__:t}}function lt(t){return function(){return G(this,t)}}function ct(t){return arguments.length||(t=h),function(e,r){return e&amp;&amp;r?t(e.__data__,r.__data__):!e-!r}}function ut(t,e){for(var r=0,n=t.length;r&lt;n;r++)for(var i,a=t[r],o=0,s=a.length;o&lt;s;o++)(i=a[o])&amp;&amp;e(i,o,r);return t}function ft(t){return U(t,ht),t}t.ns={prefix:J,qualify:function(t){var e=t.indexOf(&quot;:&quot;),r=t;return e&gt;=0&amp;&amp;&quot;xmlns&quot;!==(r=t.slice(0,e))&amp;&amp;(t=t.slice(e+1)),J.hasOwnProperty(r)?{space:J[r],local:t}:t}},Y.attr=function(e,r){if(arguments.length&lt;2){if(&quot;string&quot;==typeof e){var n=this.node();return(e=t.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(r in e)this.each(K(r,e[r]));return this}return this.each(K(e,r))},Y.classed=function(t,e){if(arguments.length&lt;2){if(&quot;string&quot;==typeof t){var r=this.node(),n=(t=tt(t)).length,i=-1;if(e=r.classList){for(;++i&lt;n;)if(!e.contains(t[i]))return!1}else for(e=r.getAttribute(&quot;class&quot;);++i&lt;n;)if(!$(t[i]).test(e))return!1;return!0}for(e in t)this.each(et(e,t[e]));return this}return this.each(et(t,e))},Y.style=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=&quot;&quot;),t)this.each(nt(r,t[r],e));return this}if(n&lt;2){var i=this.node();return o(i).getComputedStyle(i,null).getPropertyValue(t)}r=&quot;&quot;}return this.each(nt(t,e,r))},Y.property=function(t,e){if(arguments.length&lt;2){if(&quot;string&quot;==typeof t)return this.node()[t];for(e in t)this.each(it(e,t[e]));return this}return this.each(it(t,e))},Y.text=function(t){return arguments.length?this.each(&quot;function&quot;==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?&quot;&quot;:e}:null==t?function(){this.textContent=&quot;&quot;}:function(){this.textContent=t}):this.node().textContent},Y.html=function(t){return arguments.length?this.each(&quot;function&quot;==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?&quot;&quot;:e}:null==t?function(){this.innerHTML=&quot;&quot;}:function(){this.innerHTML=t}):this.node().innerHTML},Y.append=function(t){return t=at(t),this.select((function(){return this.appendChild(t.apply(this,arguments))}))},Y.insert=function(t,e){return t=at(t),e=W(e),this.select((function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)}))},Y.remove=function(){return this.each(ot)},Y.data=function(t,e){var r,n,i=-1,a=this.length;if(!arguments.length){for(t=new Array(a=(r=this[0]).length);++i&lt;a;)(n=r[i])&amp;&amp;(t[i]=n.__data__);return t}function o(t,r){var n,i,a,o=t.length,u=r.length,f=Math.min(o,u),h=new Array(u),p=new Array(u),d=new Array(o);if(e){var g,m=new _,v=new Array(o);for(n=-1;++n&lt;o;)(i=t[n])&amp;&amp;(m.has(g=e.call(i,i.__data__,n))?d[n]=i:m.set(g,i),v[n]=g);for(n=-1;++n&lt;u;)(i=m.get(g=e.call(r,a=r[n],n)))?!0!==i&amp;&amp;(h[n]=i,i.__data__=a):p[n]=st(a),m.set(g,!0);for(n=-1;++n&lt;o;)n in v&amp;&amp;!0!==m.get(v[n])&amp;&amp;(d[n]=t[n])}else{for(n=-1;++n&lt;f;)i=t[n],a=r[n],i?(i.__data__=a,h[n]=i):p[n]=st(a);for(;n&lt;u;++n)p[n]=st(r[n]);for(;n&lt;o;++n)d[n]=t[n]}p.update=h,p.parentNode=h.parentNode=d.parentNode=t.parentNode,s.push(p),l.push(h),c.push(d)}var s=ft([]),l=V([]),c=V([]);if(&quot;function&quot;==typeof t)for(;++i&lt;a;)o(r=this[i],t.call(r,r.parentNode.__data__,i));else for(;++i&lt;a;)o(r=this[i],t);return l.enter=function(){return s},l.exit=function(){return c},l},Y.datum=function(t){return arguments.length?this.property(&quot;__data__&quot;,t):this.property(&quot;__data__&quot;)},Y.filter=function(t){var e,r,n,i=[];&quot;function&quot;!=typeof t&amp;&amp;(t=lt(t));for(var a=0,o=this.length;a&lt;o;a++){i.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var s=0,l=r.length;s&lt;l;s++)(n=r[s])&amp;&amp;t.call(n,n.__data__,s,a)&amp;&amp;e.push(n)}return V(i)},Y.order=function(){for(var t=-1,e=this.length;++t&lt;e;)for(var r,n=this[t],i=n.length-1,a=n[i];--i&gt;=0;)(r=n[i])&amp;&amp;(a&amp;&amp;a!==r.nextSibling&amp;&amp;a.parentNode.insertBefore(r,a),a=r);return this},Y.sort=function(t){t=ct.apply(this,arguments);for(var e=-1,r=this.length;++e&lt;r;)this[e].sort(t);return this.order()},Y.each=function(t){return ut(this,(function(e,r,n){t.call(e,e.__data__,r,n)}))},Y.call=function(t){var e=n(arguments);return t.apply(e[0]=this,e),this},Y.empty=function(){return!this.node()},Y.node=function(){for(var t=0,e=this.length;t&lt;e;t++)for(var r=this[t],n=0,i=r.length;n&lt;i;n++){var a=r[n];if(a)return a}return null},Y.size=function(){var t=0;return ut(this,(function(){++t})),t};var ht=[];function pt(t){var e,r;return function(n,i,a){var o,s=t[a].update,l=s.length;for(a!=r&amp;&amp;(r=a,e=0),i&gt;=e&amp;&amp;(e=i+1);!(o=s[e])&amp;&amp;++e&lt;l;);return o}}function dt(e,r,i){var a=&quot;__on&quot;+e,o=e.indexOf(&quot;.&quot;),s=mt;o&gt;0&amp;&amp;(e=e.slice(0,o));var l=gt.get(e);function c(){var t=this[a];t&amp;&amp;(this.removeEventListener(e,t,t.$),delete this[a])}return l&amp;&amp;(e=l,s=vt),o?r?function(){var t=s(r,n(arguments));c.call(this),this.addEventListener(e,this[a]=t,t.$=i),t._=r}:c:r?O:function(){var r,n=new RegExp(&quot;^__on([^.]+)&quot;+t.requote(e)+&quot;$&quot;);for(var i in this)if(r=i.match(n)){var a=this[i];this.removeEventListener(r[1],a,a.$),delete this[i]}}}t.selection.enter=ft,t.selection.enter.prototype=ht,ht.append=Y.append,ht.empty=Y.empty,ht.node=Y.node,ht.call=Y.call,ht.size=Y.size,ht.select=function(t){for(var e,r,n,i,a,o=[],s=-1,l=this.length;++s&lt;l;){n=(i=this[s]).update,o.push(e=[]),e.parentNode=i.parentNode;for(var c=-1,u=i.length;++c&lt;u;)(a=i[c])?(e.push(n[c]=r=t.call(i.parentNode,a.__data__,c,s)),r.__data__=a.__data__):e.push(null)}return V(o)},ht.insert=function(t,e){return arguments.length&lt;2&amp;&amp;(e=pt(this)),Y.insert.call(this,t,e)},t.select=function(t){var e;return&quot;string&quot;==typeof t?(e=[q(t,i)]).parentNode=i.documentElement:(e=[t]).parentNode=a(t),V([e])},t.selectAll=function(t){var e;return&quot;string&quot;==typeof t?(e=n(H(t,i))).parentNode=i.documentElement:(e=n(t)).parentNode=null,V([e])},Y.on=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=!1),t)this.each(dt(r,t[r],e));return this}if(n&lt;2)return(n=this.node()[&quot;__on&quot;+t])&amp;&amp;n._;r=!1}return this.each(dt(t,e,r))};var gt=t.map({mouseenter:&quot;mouseover&quot;,mouseleave:&quot;mouseout&quot;});function mt(e,r){return function(n){var i=t.event;t.event=n,r[0]=this.__data__;try{e.apply(this,r)}finally{t.event=i}}}function vt(t,e){var r=mt(t,e);return function(t){var e=t.relatedTarget;e&amp;&amp;(e===this||8&amp;e.compareDocumentPosition(this))||r.call(this,t)}}i&amp;&amp;gt.forEach((function(t){&quot;on&quot;+t in i&amp;&amp;gt.remove(t)}));var yt,xt=0;function bt(e){var r=&quot;.dragsuppress-&quot;+ ++xt,n=&quot;click&quot;+r,i=t.select(o(e)).on(&quot;touchmove&quot;+r,F).on(&quot;dragstart&quot;+r,F).on(&quot;selectstart&quot;+r,F);if(null==yt&amp;&amp;(yt=!(&quot;onselectstart&quot;in e)&amp;&amp;P(e.style,&quot;userSelect&quot;)),yt){var s=a(e).style,l=s[yt];s[yt]=&quot;none&quot;}return function(t){if(i.on(r,null),yt&amp;&amp;(s[yt]=l),t){var e=function(){i.on(n,null)};i.on(n,(function(){F(),e()}),!0),setTimeout(e,0)}}}t.mouse=function(t){return wt(t,B())};var _t=this.navigator&amp;&amp;/WebKit/.test(this.navigator.userAgent)?-1:0;function wt(e,r){r.changedTouches&amp;&amp;(r=r.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();if(_t&lt;0){var a=o(e);if(a.scrollX||a.scrollY){var s=(n=t.select(&quot;body&quot;).append(&quot;svg&quot;).style({position:&quot;absolute&quot;,top:0,left:0,margin:0,padding:0,border:&quot;none&quot;},&quot;important&quot;))[0][0].getScreenCTM();_t=!(s.f||s.e),n.remove()}}return _t?(i.x=r.pageX,i.y=r.pageY):(i.x=r.clientX,i.y=r.clientY),[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}var l=e.getBoundingClientRect();return[r.clientX-l.left-e.clientLeft,r.clientY-l.top-e.clientTop]}function Tt(){return t.event.changedTouches[0].identifier}t.touch=function(t,e,r){if(arguments.length&lt;3&amp;&amp;(r=e,e=B().changedTouches),e)for(var n,i=0,a=e.length;i&lt;a;++i)if((n=e[i]).identifier===r)return wt(t,n)},t.behavior.drag=function(){var e=N(a,&quot;drag&quot;,&quot;dragstart&quot;,&quot;dragend&quot;),r=null,n=s(O,t.mouse,o,&quot;mousemove&quot;,&quot;mouseup&quot;),i=s(Tt,t.touch,L,&quot;touchmove&quot;,&quot;touchend&quot;);function a(){this.on(&quot;mousedown.drag&quot;,n).on(&quot;touchstart.drag&quot;,i)}function s(n,i,a,o,s){return function(){var l,c=this,u=t.event.target.correspondingElement||t.event.target,f=c.parentNode,h=e.of(c,arguments),p=0,d=n(),g=&quot;.drag&quot;+(null==d?&quot;&quot;:&quot;-&quot;+d),m=t.select(a(u)).on(o+g,x).on(s+g,b),v=bt(u),y=i(f,d);function x(){var t,e,r=i(f,d);r&amp;&amp;(t=r[0]-y[0],e=r[1]-y[1],p|=t|e,y=r,h({type:&quot;drag&quot;,x:r[0]+l[0],y:r[1]+l[1],dx:t,dy:e}))}function b(){i(f,d)&amp;&amp;(m.on(o+g,null).on(s+g,null),v(p),h({type:&quot;dragend&quot;}))}l=r?[(l=r.apply(c,arguments)).x-y[0],l.y-y[1]]:[0,0],h({type:&quot;dragstart&quot;})}}return a.origin=function(t){return arguments.length?(r=t,a):r},t.rebind(a,e,&quot;on&quot;)},t.touches=function(t,e){return arguments.length&lt;2&amp;&amp;(e=B().touches),e?n(e).map((function(e){var r=wt(t,e);return r.identifier=e.identifier,r})):[]};var kt=1e-6,Mt=1e-12,At=Math.PI,St=2*At,Et=St-kt,Ct=At/2,Lt=At/180,It=180/At;function Pt(t){return t&gt;0?1:t&lt;0?-1:0}function zt(t,e,r){return(e[0]-t[0])*(r[1]-t[1])-(e[1]-t[1])*(r[0]-t[0])}function Ot(t){return t&gt;1?0:t&lt;-1?At:Math.acos(t)}function Dt(t){return t&gt;1?Ct:t&lt;-1?-Ct:Math.asin(t)}function Rt(t){return((t=Math.exp(t))+1/t)/2}function Ft(t){return(t=Math.sin(t/2))*t}var Bt=Math.SQRT2;t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h&lt;Mt)n=Math.log(c/o)/Bt,r=function(t){return[i+t*u,a+t*f,o*Math.exp(Bt*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),g=(c*c-o*o-4*h)/(2*c*2*p),m=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(g*g+1)-g);n=(v-m)/Bt,r=function(t){var e,r=t*n,s=Rt(m),l=o/(2*p)*(s*(e=Bt*r+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[i+l*u,a+l*f,o*s/Rt(Bt*r+m)]}}return r.duration=1e3*n,r},t.behavior.zoom=function(){var e,r,n,a,s,l,c,u,f,h={x:0,y:0,k:1},p=[960,500],d=Ut,g=250,m=0,v=&quot;mousedown.zoom&quot;,y=&quot;mousemove.zoom&quot;,x=&quot;mouseup.zoom&quot;,b=&quot;touchstart.zoom&quot;,_=N(w,&quot;zoomstart&quot;,&quot;zoom&quot;,&quot;zoomend&quot;);function w(t){t.on(v,I).on(jt+&quot;.zoom&quot;,z).on(&quot;dblclick.zoom&quot;,O).on(b,P)}function T(t){return[(t[0]-h.x)/h.k,(t[1]-h.y)/h.k]}function k(t){h.k=Math.max(d[0],Math.min(d[1],t))}function M(t,e){e=function(t){return[t[0]*h.k+h.x,t[1]*h.k+h.y]}(e),h.x+=t[0]-e[0],h.y+=t[1]-e[1]}function A(e,n,i,a){e.__chart__={x:h.x,y:h.y,k:h.k},k(Math.pow(2,a)),M(r=n,i),e=t.select(e),g&gt;0&amp;&amp;(e=e.transition().duration(g)),e.call(w.event)}function S(){c&amp;&amp;c.domain(l.range().map((function(t){return(t-h.x)/h.k})).map(l.invert)),f&amp;&amp;f.domain(u.range().map((function(t){return(t-h.y)/h.k})).map(u.invert))}function E(t){m++||t({type:&quot;zoomstart&quot;})}function C(t){S(),t({type:&quot;zoom&quot;,scale:h.k,translate:[h.x,h.y]})}function L(t){--m||(t({type:&quot;zoomend&quot;}),r=null)}function I(){var e=this,r=_.of(e,arguments),n=0,i=t.select(o(e)).on(y,l).on(x,c),a=T(t.mouse(e)),s=bt(e);function l(){n=1,M(t.mouse(e),a),C(r)}function c(){i.on(y,null).on(x,null),s(n),L(r)}vs.call(e),E(r)}function P(){var e,r=this,n=_.of(r,arguments),i={},a=0,o=&quot;.zoom-&quot;+t.event.changedTouches[0].identifier,l=&quot;touchmove&quot;+o,c=&quot;touchend&quot;+o,u=[],f=t.select(r),p=bt(r);function d(){var n=t.touches(r);return e=h.k,n.forEach((function(t){t.identifier in i&amp;&amp;(i[t.identifier]=T(t))})),n}function g(){var e=t.event.target;t.select(e).on(l,m).on(c,y),u.push(e);for(var n=t.event.changedTouches,o=0,f=n.length;o&lt;f;++o)i[n[o].identifier]=null;var p=d(),g=Date.now();if(1===p.length){if(g-s&lt;500){var v=p[0];A(r,v,i[v.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),F()}s=g}else if(p.length&gt;1){v=p[0];var x=p[1],b=v[0]-x[0],_=v[1]-x[1];a=b*b+_*_}}function m(){var o,l,c,u,f=t.touches(r);vs.call(r);for(var h=0,p=f.length;h&lt;p;++h,u=null)if(c=f[h],u=i[c.identifier]){if(l)break;o=c,l=u}if(u){var d=(d=c[0]-o[0])*d+(d=c[1]-o[1])*d,g=a&amp;&amp;Math.sqrt(d/a);o=[(o[0]+c[0])/2,(o[1]+c[1])/2],l=[(l[0]+u[0])/2,(l[1]+u[1])/2],k(g*e)}s=null,M(o,l),C(n)}function y(){if(t.event.touches.length){for(var e=t.event.changedTouches,r=0,a=e.length;r&lt;a;++r)delete i[e[r].identifier];for(var s in i)return void d()}t.selectAll(u).on(o,null),f.on(v,I).on(b,P),p(),L(n)}g(),E(n),f.on(v,null).on(b,g)}function z(){var i=_.of(this,arguments);a?clearTimeout(a):(vs.call(this),e=T(r=n||t.mouse(this)),E(i)),a=setTimeout((function(){a=null,L(i)}),50),F(),k(Math.pow(2,.002*Nt())*h.k),M(r,e),C(i)}function O(){var e=t.mouse(this),r=Math.log(h.k)/Math.LN2;A(this,e,T(e),t.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)}return jt||(jt=&quot;onwheel&quot;in i?(Nt=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},&quot;wheel&quot;):&quot;onmousewheel&quot;in i?(Nt=function(){return t.event.wheelDelta},&quot;mousewheel&quot;):(Nt=function(){return-t.event.detail},&quot;MozMousePixelScroll&quot;)),w.event=function(e){e.each((function(){var e=_.of(this,arguments),n=h;bs?t.select(this).transition().each(&quot;start.zoom&quot;,(function(){h=this.__chart__||{x:0,y:0,k:1},E(e)})).tween(&quot;zoom:zoom&quot;,(function(){var i=p[0],a=p[1],o=r?r[0]:i/2,s=r?r[1]:a/2,l=t.interpolateZoom([(o-h.x)/h.k,(s-h.y)/h.k,i/h.k],[(o-n.x)/n.k,(s-n.y)/n.k,i/n.k]);return function(t){var r=l(t),n=i/r[2];this.__chart__=h={x:o-r[0]*n,y:s-r[1]*n,k:n},C(e)}})).each(&quot;interrupt.zoom&quot;,(function(){L(e)})).each(&quot;end.zoom&quot;,(function(){L(e)})):(this.__chart__=h,E(e),C(e),L(e))}))},w.translate=function(t){return arguments.length?(h={x:+t[0],y:+t[1],k:h.k},S(),w):[h.x,h.y]},w.scale=function(t){return arguments.length?(h={x:h.x,y:h.y,k:null},k(+t),S(),w):h.k},w.scaleExtent=function(t){return arguments.length?(d=null==t?Ut:[+t[0],+t[1]],w):d},w.center=function(t){return arguments.length?(n=t&amp;&amp;[+t[0],+t[1]],w):n},w.size=function(t){return arguments.length?(p=t&amp;&amp;[+t[0],+t[1]],w):p},w.duration=function(t){return arguments.length?(g=+t,w):g},w.x=function(t){return arguments.length?(c=t,l=t.copy(),h={x:0,y:0,k:1},w):c},w.y=function(t){return arguments.length?(f=t,u=t.copy(),h={x:0,y:0,k:1},w):f},t.rebind(w,_,&quot;on&quot;)};var Nt,jt,Ut=[0,1/0];function Vt(){}function qt(t,e,r){return this instanceof qt?(this.h=+t,this.s=+e,void(this.l=+r)):arguments.length&lt;2?t instanceof qt?new qt(t.h,t.s,t.l):le(&quot;&quot;+t,ce,qt):new qt(t,e,r)}t.color=Vt,Vt.prototype.toString=function(){return this.rgb()+&quot;&quot;},t.hsl=qt;var Ht=qt.prototype=new Vt;function Gt(t,e,r){var n,i;function a(t){return Math.round(255*function(t){return t&gt;360?t-=360:t&lt;0&amp;&amp;(t+=360),t&lt;60?n+(i-n)*t/60:t&lt;180?i:t&lt;240?n+(i-n)*(240-t)/60:n}(t))}return t=isNaN(t)?0:(t%=360)&lt;0?t+360:t,e=isNaN(e)||e&lt;0?0:e&gt;1?1:e,n=2*(r=r&lt;0?0:r&gt;1?1:r)-(i=r&lt;=.5?r*(1+e):r+e-r*e),new ne(a(t+120),a(t),a(t-120))}function Yt(e,r,n){return this instanceof Yt?(this.h=+e,this.c=+r,void(this.l=+n)):arguments.length&lt;2?e instanceof Yt?new Yt(e.h,e.c,e.l):$t(e instanceof Zt?e.l:(e=ue((e=t.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Yt(e,r,n)}Ht.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new qt(this.h,this.s,this.l/t)},Ht.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new qt(this.h,this.s,t*this.l)},Ht.rgb=function(){return Gt(this.h,this.s,this.l)},t.hcl=Yt;var Wt=Yt.prototype=new Vt;function Xt(t,e,r){return isNaN(t)&amp;&amp;(t=0),isNaN(e)&amp;&amp;(e=0),new Zt(r,Math.cos(t*=Lt)*e,Math.sin(t)*e)}function Zt(t,e,r){return this instanceof Zt?(this.l=+t,this.a=+e,void(this.b=+r)):arguments.length&lt;2?t instanceof Zt?new Zt(t.l,t.a,t.b):t instanceof Yt?Xt(t.h,t.c,t.l):ue((t=ne(t)).r,t.g,t.b):new Zt(t,e,r)}Wt.brighter=function(t){return new Yt(this.h,this.c,Math.min(100,this.l+Jt*(arguments.length?t:1)))},Wt.darker=function(t){return new Yt(this.h,this.c,Math.max(0,this.l-Jt*(arguments.length?t:1)))},Wt.rgb=function(){return Xt(this.h,this.c,this.l).rgb()},t.lab=Zt;var Jt=18,Kt=Zt.prototype=new Vt;function Qt(t,e,r){var n=(t+16)/116,i=n+e/500,a=n-r/200;return new ne(re(3.2404542*(i=.95047*te(i))-1.5371385*(n=1*te(n))-.4985314*(a=1.08883*te(a))),re(-.969266*i+1.8760108*n+.041556*a),re(.0556434*i-.2040259*n+1.0572252*a))}function $t(t,e,r){return t&gt;0?new Yt(Math.atan2(r,e)*It,Math.sqrt(e*e+r*r),t):new Yt(NaN,NaN,t)}function te(t){return t&gt;.206893034?t*t*t:(t-4/29)/7.787037}function ee(t){return t&gt;.008856?Math.pow(t,1/3):7.787037*t+4/29}function re(t){return Math.round(255*(t&lt;=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function ne(t,e,r){return this instanceof ne?(this.r=~~t,this.g=~~e,void(this.b=~~r)):arguments.length&lt;2?t instanceof ne?new ne(t.r,t.g,t.b):le(&quot;&quot;+t,ne,Gt):new ne(t,e,r)}function ie(t){return new ne(t&gt;&gt;16,t&gt;&gt;8&amp;255,255&amp;t)}function ae(t){return ie(t)+&quot;&quot;}Kt.brighter=function(t){return new Zt(Math.min(100,this.l+Jt*(arguments.length?t:1)),this.a,this.b)},Kt.darker=function(t){return new Zt(Math.max(0,this.l-Jt*(arguments.length?t:1)),this.a,this.b)},Kt.rgb=function(){return Qt(this.l,this.a,this.b)},t.rgb=ne;var oe=ne.prototype=new Vt;function se(t){return t&lt;16?&quot;0&quot;+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function le(t,e,r){var n,i,a,o=0,s=0,l=0;if(n=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=n[2].split(&quot;,&quot;),n[1]){case&quot;hsl&quot;:return r(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case&quot;rgb&quot;:return e(he(i[0]),he(i[1]),he(i[2]))}return(a=pe.get(t))?e(a.r,a.g,a.b):(null==t||&quot;#&quot;!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&amp;a)&gt;&gt;4,o|=o&gt;&gt;4,s=240&amp;a,s|=s&gt;&gt;4,l=15&amp;a,l|=l&lt;&lt;4):7===t.length&amp;&amp;(o=(16711680&amp;a)&gt;&gt;16,s=(65280&amp;a)&gt;&gt;8,l=255&amp;a)),e(o,s,l))}function ce(t,e,r){var n,i,a=Math.min(t/=255,e/=255,r/=255),o=Math.max(t,e,r),s=o-a,l=(o+a)/2;return s?(i=l&lt;.5?s/(o+a):s/(2-o-a),n=t==o?(e-r)/s+(e&lt;r?6:0):e==o?(r-t)/s+2:(t-e)/s+4,n*=60):(n=NaN,i=l&gt;0&amp;&amp;l&lt;1?0:n),new qt(n,i,l)}function ue(t,e,r){var n=ee((.4124564*(t=fe(t))+.3575761*(e=fe(e))+.1804375*(r=fe(r)))/.95047),i=ee((.2126729*t+.7151522*e+.072175*r)/1);return Zt(116*i-16,500*(n-i),200*(i-ee((.0193339*t+.119192*e+.9503041*r)/1.08883)))}function fe(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function he(t){var e=parseFloat(t);return&quot;%&quot;===t.charAt(t.length-1)?Math.round(2.55*e):e}oe.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,r=this.g,n=this.b,i=30;return e||r||n?(e&amp;&amp;e&lt;i&amp;&amp;(e=i),r&amp;&amp;r&lt;i&amp;&amp;(r=i),n&amp;&amp;n&lt;i&amp;&amp;(n=i),new ne(Math.min(255,e/t),Math.min(255,r/t),Math.min(255,n/t))):new ne(i,i,i)},oe.darker=function(t){return new ne((t=Math.pow(.7,arguments.length?t:1))*this.r,t*this.g,t*this.b)},oe.hsl=function(){return ce(this.r,this.g,this.b)},oe.toString=function(){return&quot;#&quot;+se(this.r)+se(this.g)+se(this.b)};var pe=t.map({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 de(t){return&quot;function&quot;==typeof t?t:function(){return t}}function ge(t){return function(e,r,n){return 2===arguments.length&amp;&amp;&quot;function&quot;==typeof r&amp;&amp;(n=r,r=null),me(e,r,t,n)}}function me(e,r,i,a){var o={},s=t.dispatch(&quot;beforesend&quot;,&quot;progress&quot;,&quot;load&quot;,&quot;error&quot;),l={},c=new XMLHttpRequest,u=null;function f(){var t,e=c.status;if(!e&amp;&amp;function(t){var e=t.responseType;return e&amp;&amp;&quot;text&quot;!==e?t.response:t.responseText}(c)||e&gt;=200&amp;&amp;e&lt;300||304===e){try{t=i.call(o,c)}catch(t){return void s.error.call(o,t)}s.load.call(o,t)}else s.error.call(o,c)}return this.XDomainRequest&amp;&amp;!(&quot;withCredentials&quot;in c)&amp;&amp;/^(http(s)?:)?\/\//.test(e)&amp;&amp;(c=new XDomainRequest),&quot;onload&quot;in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState&gt;3&amp;&amp;f()},c.onprogress=function(e){var r=t.event;t.event=e;try{s.progress.call(o,c)}finally{t.event=r}},o.header=function(t,e){return t=(t+&quot;&quot;).toLowerCase(),arguments.length&lt;2?l[t]:(null==e?delete l[t]:l[t]=e+&quot;&quot;,o)},o.mimeType=function(t){return arguments.length?(r=null==t?null:t+&quot;&quot;,o):r},o.responseType=function(t){return arguments.length?(u=t,o):u},o.response=function(t){return i=t,o},[&quot;get&quot;,&quot;post&quot;].forEach((function(t){o[t]=function(){return o.send.apply(o,[t].concat(n(arguments)))}})),o.send=function(t,n,i){if(2===arguments.length&amp;&amp;&quot;function&quot;==typeof n&amp;&amp;(i=n,n=null),c.open(t,e,!0),null==r||&quot;accept&quot;in l||(l.accept=r+&quot;,*/*&quot;),c.setRequestHeader)for(var a in l)c.setRequestHeader(a,l[a]);return null!=r&amp;&amp;c.overrideMimeType&amp;&amp;c.overrideMimeType(r),null!=u&amp;&amp;(c.responseType=u),null!=i&amp;&amp;o.on(&quot;error&quot;,i).on(&quot;load&quot;,(function(t){i(null,t)})),s.beforesend.call(o,c),c.send(null==n?null:n),o},o.abort=function(){return c.abort(),o},t.rebind(o,s,&quot;on&quot;),null==a?o:o.get(function(t){return 1===t.length?function(e,r){t(null==e?r:null)}:t}(a))}pe.forEach((function(t,e){pe.set(t,ie(e))})),t.functor=de,t.xhr=ge(L),t.dsv=function(t,e){var r=new RegExp('[&quot;'+t+&quot;\n]&quot;),n=t.charCodeAt(0);function i(t,r,n){arguments.length&lt;3&amp;&amp;(n=r,r=null);var i=me(t,e,null==r?a:o(r),n);return i.row=function(t){return arguments.length?i.response(null==(r=t)?a:o(t)):r},i}function a(t){return i.parse(t.responseText)}function o(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(l).join(t)}function l(t){return r.test(t)?'&quot;'+t.replace(/\&quot;/g,'&quot;&quot;')+'&quot;':t}return i.parse=function(t,e){var r;return i.parseRows(t,(function(t,n){if(r)return r(t,n-1);var i=new Function(&quot;d&quot;,&quot;return {&quot;+t.map((function(t,e){return JSON.stringify(t)+&quot;: d[&quot;+e+&quot;]&quot;})).join(&quot;,&quot;)+&quot;}&quot;);r=e?function(t,r){return e(i(t),r)}:i}))},i.parseRows=function(t,e){var r,i,a={},o={},s=[],l=t.length,c=0,u=0;function f(){if(c&gt;=l)return o;if(i)return i=!1,a;var e=c;if(34===t.charCodeAt(e)){for(var r=e;r++&lt;l;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return c=r+2,13===(s=t.charCodeAt(r+1))?(i=!0,10===t.charCodeAt(r+2)&amp;&amp;++c):10===s&amp;&amp;(i=!0),t.slice(e+1,r).replace(/&quot;&quot;/g,'&quot;')}for(;c&lt;l;){var s,u=1;if(10===(s=t.charCodeAt(c++)))i=!0;else if(13===s)i=!0,10===t.charCodeAt(c)&amp;&amp;(++c,++u);else if(s!==n)continue;return t.slice(e,c-u)}return t.slice(e)}for(;(r=f())!==o;){for(var h=[];r!==a&amp;&amp;r!==o;)h.push(r),r=f();e&amp;&amp;null==(h=e(h,u++))||s.push(h)}return s},i.format=function(e){if(Array.isArray(e[0]))return i.formatRows(e);var r=new C,n=[];return e.forEach((function(t){for(var e in t)r.has(e)||n.push(r.add(e))})),[n.map(l).join(t)].concat(e.map((function(e){return n.map((function(t){return l(e[t])})).join(t)}))).join(&quot;\n&quot;)},i.formatRows=function(t){return t.map(s).join(&quot;\n&quot;)},i},t.csv=t.dsv(&quot;,&quot;,&quot;text/csv&quot;),t.tsv=t.dsv(&quot;\t&quot;,&quot;text/tab-separated-values&quot;);var ve,ye,xe,be,_e=this[P(this,&quot;requestAnimationFrame&quot;)]||function(t){setTimeout(t,17)};function we(t,e,r){var n=arguments.length;n&lt;2&amp;&amp;(e=0),n&lt;3&amp;&amp;(r=Date.now());var i=r+e,a={c:t,t:i,n:null};return ye?ye.n=a:ve=a,ye=a,xe||(be=clearTimeout(be),xe=1,_e(Te)),a}function Te(){var t=ke(),e=Me()-t;e&gt;24?(isFinite(e)&amp;&amp;(clearTimeout(be),be=setTimeout(Te,e)),xe=0):(xe=1,_e(Te))}function ke(){for(var t=Date.now(),e=ve;e;)t&gt;=e.t&amp;&amp;e.c(t-e.t)&amp;&amp;(e.c=null),e=e.n;return t}function Me(){for(var t,e=ve,r=1/0;e;)e.c?(e.t&lt;r&amp;&amp;(r=e.t),e=(t=e).n):e=t?t.n=e.n:ve=e.n;return ye=t,r}function Ae(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}t.timer=function(){we.apply(this,arguments)},t.timer.flush=function(){ke(),Me()},t.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var Se=[&quot;y&quot;,&quot;z&quot;,&quot;a&quot;,&quot;f&quot;,&quot;p&quot;,&quot;n&quot;,&quot;\xb5&quot;,&quot;m&quot;,&quot;&quot;,&quot;k&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;,&quot;P&quot;,&quot;E&quot;,&quot;Z&quot;,&quot;Y&quot;].map((function(t,e){var r=Math.pow(10,3*y(8-e));return{scale:e&gt;8?function(t){return t/r}:function(t){return t*r},symbol:t}}));function Ee(e){var r=e.decimal,n=e.thousands,i=e.grouping,a=e.currency,o=i&amp;&amp;n?function(t,e){for(var r=t.length,a=[],o=0,s=i[0],l=0;r&gt;0&amp;&amp;s&gt;0&amp;&amp;(l+s+1&gt;e&amp;&amp;(s=Math.max(1,e-l)),a.push(t.substring(r-=s,r+s)),!((l+=s+1)&gt;e));)s=i[o=(o+1)%i.length];return a.reverse().join(n)}:L;return function(e){var n=Ce.exec(e),i=n[1]||&quot; &quot;,s=n[2]||&quot;&gt;&quot;,l=n[3]||&quot;-&quot;,c=n[4]||&quot;&quot;,u=n[5],f=+n[6],h=n[7],p=n[8],d=n[9],g=1,m=&quot;&quot;,v=&quot;&quot;,y=!1,x=!0;switch(p&amp;&amp;(p=+p.substring(1)),(u||&quot;0&quot;===i&amp;&amp;&quot;=&quot;===s)&amp;&amp;(u=i=&quot;0&quot;,s=&quot;=&quot;),d){case&quot;n&quot;:h=!0,d=&quot;g&quot;;break;case&quot;%&quot;:g=100,v=&quot;%&quot;,d=&quot;f&quot;;break;case&quot;p&quot;:g=100,v=&quot;%&quot;,d=&quot;r&quot;;break;case&quot;b&quot;:case&quot;o&quot;:case&quot;x&quot;:case&quot;X&quot;:&quot;#&quot;===c&amp;&amp;(m=&quot;0&quot;+d.toLowerCase());case&quot;c&quot;:x=!1;case&quot;d&quot;:y=!0,p=0;break;case&quot;s&quot;:g=-1,d=&quot;r&quot;}&quot;$&quot;===c&amp;&amp;(m=a[0],v=a[1]),&quot;r&quot;!=d||p||(d=&quot;g&quot;),null!=p&amp;&amp;(&quot;g&quot;==d?p=Math.max(1,Math.min(21,p)):&quot;e&quot;!=d&amp;&amp;&quot;f&quot;!=d||(p=Math.max(0,Math.min(20,p)))),d=Le.get(d)||Ie;var b=u&amp;&amp;h;return function(e){var n=v;if(y&amp;&amp;e%1)return&quot;&quot;;var a=e&lt;0||0===e&amp;&amp;1/e&lt;0?(e=-e,&quot;-&quot;):&quot;-&quot;===l?&quot;&quot;:l;if(g&lt;0){var c=t.formatPrefix(e,p);e=c.scale(e),n=c.symbol+v}else e*=g;var _,w,T=(e=d(e,p)).lastIndexOf(&quot;.&quot;);if(T&lt;0){var k=x?e.lastIndexOf(&quot;e&quot;):-1;k&lt;0?(_=e,w=&quot;&quot;):(_=e.substring(0,k),w=e.substring(k))}else _=e.substring(0,T),w=r+e.substring(T+1);!u&amp;&amp;h&amp;&amp;(_=o(_,1/0));var M=m.length+_.length+w.length+(b?0:a.length),A=M&lt;f?new Array(M=f-M+1).join(i):&quot;&quot;;return b&amp;&amp;(_=o(A+_,A.length?f-w.length:1/0)),a+=m,e=_+w,(&quot;&lt;&quot;===s?a+e+A:&quot;&gt;&quot;===s?A+a+e:&quot;^&quot;===s?A.substring(0,M&gt;&gt;=1)+a+e+A.substring(M):a+(b?e:A+e))+n}}}t.formatPrefix=function(e,r){var n=0;return(e=+e)&amp;&amp;(e&lt;0&amp;&amp;(e*=-1),r&amp;&amp;(e=t.round(e,Ae(e,r))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Se[8+n/3]};var Ce=/(?:([^{])?([&lt;&gt;=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Le=t.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(e,r){return(e=t.round(e,Ae(e,r))).toFixed(Math.max(0,Math.min(20,Ae(e*(1+1e-15),r))))}});function Ie(t){return t+&quot;&quot;}var Pe=t.time={},ze=Date;function Oe(){this._=new Date(arguments.length&gt;1?Date.UTC.apply(this,arguments):arguments[0])}Oe.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){De.setUTCDate.apply(this._,arguments)},setDay:function(){De.setUTCDay.apply(this._,arguments)},setFullYear:function(){De.setUTCFullYear.apply(this._,arguments)},setHours:function(){De.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){De.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){De.setUTCMinutes.apply(this._,arguments)},setMonth:function(){De.setUTCMonth.apply(this._,arguments)},setSeconds:function(){De.setUTCSeconds.apply(this._,arguments)},setTime:function(){De.setTime.apply(this._,arguments)}};var De=Date.prototype;function Re(t,e,r){function n(e){var r=t(e),n=a(r,1);return e-r&lt;n-e?r:n}function i(r){return e(r=t(new ze(r-1)),1),r}function a(t,r){return e(t=new ze(+t),r),t}function o(t,n,a){var o=i(t),s=[];if(a&gt;1)for(;o&lt;n;)r(o)%a||s.push(new Date(+o)),e(o,1);else for(;o&lt;n;)s.push(new Date(+o)),e(o,1);return s}t.floor=t,t.round=n,t.ceil=i,t.offset=a,t.range=o;var s=t.utc=Fe(t);return s.floor=s,s.round=Fe(n),s.ceil=Fe(i),s.offset=Fe(a),s.range=function(t,e,r){try{ze=Oe;var n=new Oe;return n._=t,o(n,e,r)}finally{ze=Date}},t}function Fe(t){return function(e,r){try{ze=Oe;var n=new Oe;return n._=e,t(n,r)._}finally{ze=Date}}}function Be(e){var r=e.dateTime,n=e.date,i=e.time,a=e.periods,o=e.days,s=e.shortDays,l=e.months,c=e.shortMonths;function u(t){var e=t.length;function r(r){for(var n,i,a,o=[],s=-1,l=0;++s&lt;e;)37===t.charCodeAt(s)&amp;&amp;(o.push(t.slice(l,s)),null!=(i=Ne[n=t.charAt(++s)])&amp;&amp;(n=t.charAt(++s)),(a=_[n])&amp;&amp;(n=a(r,null==i?&quot;e&quot;===n?&quot; &quot;:&quot;0&quot;:i)),o.push(n),l=s+1);return o.push(t.slice(l,s)),o.join(&quot;&quot;)}return r.parse=function(e){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(f(r,t,e,0)!=e.length)return null;&quot;p&quot;in r&amp;&amp;(r.H=r.H%12+12*r.p);var n=null!=r.Z&amp;&amp;ze!==Oe,i=new(n?Oe:ze);return&quot;j&quot;in r?i.setFullYear(r.y,0,r.j):&quot;W&quot;in r||&quot;U&quot;in r?(&quot;w&quot;in r||(r.w=&quot;W&quot;in r?1:0),i.setFullYear(r.y,0,1),i.setFullYear(r.y,0,&quot;W&quot;in r?(r.w+6)%7+7*r.W-(i.getDay()+5)%7:r.w+7*r.U-(i.getDay()+6)%7)):i.setFullYear(r.y,r.m,r.d),i.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),n?i._:i},r.toString=function(){return t},r}function f(t,e,r,n){for(var i,a,o,s=0,l=e.length,c=r.length;s&lt;l;){if(n&gt;=c)return-1;if(37===(i=e.charCodeAt(s++))){if(o=e.charAt(s++),!(a=w[o in Ne?e.charAt(s++):o])||(n=a(t,r,n))&lt;0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}u.utc=function(t){var e=u(t);function r(t){try{var r=new(ze=Oe);return r._=t,e(r)}finally{ze=Date}}return r.parse=function(t){try{ze=Oe;var r=e.parse(t);return r&amp;&amp;r._}finally{ze=Date}},r.toString=e.toString,r},u.multi=u.utc.multi=or;var h=t.map(),p=qe(o),d=He(o),g=qe(s),m=He(s),v=qe(l),y=He(l),x=qe(c),b=He(c);a.forEach((function(t,e){h.set(t.toLowerCase(),e)}));var _={a:function(t){return s[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return l[t.getMonth()]},c:u(r),d:function(t,e){return Ve(t.getDate(),e,2)},e:function(t,e){return Ve(t.getDate(),e,2)},H:function(t,e){return Ve(t.getHours(),e,2)},I:function(t,e){return Ve(t.getHours()%12||12,e,2)},j:function(t,e){return Ve(1+Pe.dayOfYear(t),e,3)},L:function(t,e){return Ve(t.getMilliseconds(),e,3)},m:function(t,e){return Ve(t.getMonth()+1,e,2)},M:function(t,e){return Ve(t.getMinutes(),e,2)},p:function(t){return a[+(t.getHours()&gt;=12)]},S:function(t,e){return Ve(t.getSeconds(),e,2)},U:function(t,e){return Ve(Pe.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Ve(Pe.mondayOfYear(t),e,2)},x:u(n),X:u(i),y:function(t,e){return Ve(t.getFullYear()%100,e,2)},Y:function(t,e){return Ve(t.getFullYear()%1e4,e,4)},Z:ir,&quot;%&quot;:function(){return&quot;%&quot;}},w={a:function(t,e,r){g.lastIndex=0;var n=g.exec(e.slice(r));return n?(t.w=m.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){p.lastIndex=0;var n=p.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){x.lastIndex=0;var n=x.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){v.lastIndex=0;var n=v.exec(e.slice(r));return n?(t.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,e,r){return f(t,_.c.toString(),e,r)},d:Qe,e:Qe,H:tr,I:tr,j:$e,L:nr,m:Ke,M:er,p:function(t,e,r){var n=h.get(e.slice(r,r+=2).toLowerCase());return null==n?-1:(t.p=n,r)},S:rr,U:Ye,w:Ge,W:We,x:function(t,e,r){return f(t,_.x.toString(),e,r)},X:function(t,e,r){return f(t,_.X.toString(),e,r)},y:Ze,Y:Xe,Z:Je,&quot;%&quot;:ar};return u}Pe.year=Re((function(t){return(t=Pe.day(t)).setMonth(0,1),t}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t){return t.getFullYear()})),Pe.years=Pe.year.range,Pe.years.utc=Pe.year.utc.range,Pe.day=Re((function(t){var e=new ze(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t){return t.getDate()-1})),Pe.days=Pe.day.range,Pe.days.utc=Pe.day.utc.range,Pe.dayOfYear=function(t){var e=Pe.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},[&quot;sunday&quot;,&quot;monday&quot;,&quot;tuesday&quot;,&quot;wednesday&quot;,&quot;thursday&quot;,&quot;friday&quot;,&quot;saturday&quot;].forEach((function(t,e){e=7-e;var r=Pe[t]=Re((function(t){return(t=Pe.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t}),(function(t,e){t.setDate(t.getDate()+7*Math.floor(e))}),(function(t){var r=Pe.year(t).getDay();return Math.floor((Pe.dayOfYear(t)+(r+e)%7)/7)-(r!==e)}));Pe[t+&quot;s&quot;]=r.range,Pe[t+&quot;s&quot;].utc=r.utc.range,Pe[t+&quot;OfYear&quot;]=function(t){var r=Pe.year(t).getDay();return Math.floor((Pe.dayOfYear(t)+(r+e)%7)/7)}})),Pe.week=Pe.sunday,Pe.weeks=Pe.sunday.range,Pe.weeks.utc=Pe.sunday.utc.range,Pe.weekOfYear=Pe.sundayOfYear;var Ne={&quot;-&quot;:&quot;&quot;,_:&quot; &quot;,0:&quot;0&quot;},je=/^\s*\d+/,Ue=/^%/;function Ve(t,e,r){var n=t&lt;0?&quot;-&quot;:&quot;&quot;,i=(n?-t:t)+&quot;&quot;,a=i.length;return n+(a&lt;r?new Array(r-a+1).join(e)+i:i)}function qe(e){return new RegExp(&quot;^(?:&quot;+e.map(t.requote).join(&quot;|&quot;)+&quot;)&quot;,&quot;i&quot;)}function He(t){for(var e=new _,r=-1,n=t.length;++r&lt;n;)e.set(t[r].toLowerCase(),r);return e}function Ge(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Ye(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r));return n?(t.U=+n[0],r+n[0].length):-1}function We(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r));return n?(t.W=+n[0],r+n[0].length):-1}function Xe(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Ze(t,e,r){je.lastIndex=0;var n,i=je.exec(e.slice(r,r+2));return i?(t.y=(n=+i[0])+(n&gt;68?1900:2e3),r+i[0].length):-1}function Je(t,e,r){return/^[+-]\d{4}$/.test(e=e.slice(r,r+5))?(t.Z=-e,r+5):-1}function Ke(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Qe(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function $e(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+3));return n?(t.j=+n[0],r+n[0].length):-1}function tr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function er(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function rr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function nr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function ir(t){var e=t.getTimezoneOffset(),r=e&gt;0?&quot;-&quot;:&quot;+&quot;,n=y(e)/60|0,i=y(e)%60;return r+Ve(n,&quot;0&quot;,2)+Ve(i,&quot;0&quot;,2)}function ar(t,e,r){Ue.lastIndex=0;var n=Ue.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function or(t){for(var e=t.length,r=-1;++r&lt;e;)t[r][0]=this(t[r][0]);return function(e){for(var r=0,n=t[r];!n[1](e);)n=t[++r];return n[0](e)}}t.locale=function(t){return{numberFormat:Ee(t),timeFormat:Be(t)}};var sr=t.locale({decimal:&quot;.&quot;,thousands:&quot;,&quot;,grouping:[3],currency:[&quot;$&quot;,&quot;&quot;],dateTime:&quot;%a %b %e %X %Y&quot;,date:&quot;%m/%d/%Y&quot;,time:&quot;%H:%M:%S&quot;,periods:[&quot;AM&quot;,&quot;PM&quot;],days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;]});function lr(){}t.format=sr.numberFormat,t.geo={},lr.prototype={s:0,t:0,add:function(t){ur(t,this.t,cr),ur(cr.s,this.s,this),this.s?this.t+=cr.t:this.s=cr.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var cr=new lr;function ur(t,e,r){var n=r.s=t+e,i=n-t,a=n-i;r.t=t-a+(e-i)}function fr(t,e){t&amp;&amp;pr.hasOwnProperty(t.type)&amp;&amp;pr[t.type](t,e)}t.geo.stream=function(t,e){t&amp;&amp;hr.hasOwnProperty(t.type)?hr[t.type](t,e):fr(t,e)};var hr={Feature:function(t,e){fr(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n&lt;i;)fr(r[n].geometry,e)}},pr={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)t=r[n],e.point(t[0],t[1],t[2])},LineString:function(t,e){dr(t.coordinates,e,0)},MultiLineString:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)dr(r[n],e,0)},Polygon:function(t,e){gr(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)gr(r[n],e)},GeometryCollection:function(t,e){for(var r=t.geometries,n=-1,i=r.length;++n&lt;i;)fr(r[n],e)}};function dr(t,e,r){var n,i=-1,a=t.length-r;for(e.lineStart();++i&lt;a;)n=t[i],e.point(n[0],n[1],n[2]);e.lineEnd()}function gr(t,e){var r=-1,n=t.length;for(e.polygonStart();++r&lt;n;)dr(t[r],e,1);e.polygonEnd()}t.geo.area=function(e){return mr=0,t.geo.stream(e,Cr),mr};var mr,vr,yr,xr,br,_r,wr,Tr,kr,Mr,Ar,Sr,Er=new lr,Cr={sphere:function(){mr+=4*At},point:O,lineStart:O,lineEnd:O,polygonStart:function(){Er.reset(),Cr.lineStart=Lr},polygonEnd:function(){var t=2*Er;mr+=t&lt;0?4*At+t:t,Cr.lineStart=Cr.lineEnd=Cr.point=O}};function Lr(){var t,e,r,n,i;function a(t,e){e=e*Lt/2+At/4;var a=(t*=Lt)-r,o=a&gt;=0?1:-1,s=o*a,l=Math.cos(e),c=Math.sin(e),u=i*c,f=n*l+u*Math.cos(s),h=u*o*Math.sin(s);Er.add(Math.atan2(h,f)),r=t,n=l,i=c}Cr.point=function(o,s){Cr.point=a,r=(t=o)*Lt,n=Math.cos(s=(e=s)*Lt/2+At/4),i=Math.sin(s)},Cr.lineEnd=function(){a(t,e)}}function Ir(t){var e=t[0],r=t[1],n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}function Pr(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function zr(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Or(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Dr(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Rr(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Fr(t){return[Math.atan2(t[1],t[0]),Dt(t[2])]}function Br(t,e){return y(t[0]-e[0])&lt;kt&amp;&amp;y(t[1]-e[1])&lt;kt}t.geo.bounds=function(){var e,r,n,i,a,o,s,l,c,u,f,h={point:p,lineStart:g,lineEnd:m,polygonStart:function(){h.point=v,h.lineStart=x,h.lineEnd=b,c=0,Cr.polygonStart()},polygonEnd:function(){Cr.polygonEnd(),h.point=p,h.lineStart=g,h.lineEnd=m,Er&lt;0?(e=-(n=180),r=-(i=90)):c&gt;kt?i=90:c&lt;-kt&amp;&amp;(r=-90),f[0]=e,f[1]=n}};function p(t,a){u.push(f=[e=t,n=t]),a&lt;r&amp;&amp;(r=a),a&gt;i&amp;&amp;(i=a)}function d(t,o){var s=Ir([t*Lt,o*Lt]);if(l){var c=zr(l,s),u=zr([c[1],-c[0],0],c);Rr(u),u=Fr(u);var f=t-a,h=f&gt;0?1:-1,d=u[0]*It*h,g=y(f)&gt;180;if(g^(h*a&lt;d&amp;&amp;d&lt;h*t))(m=u[1]*It)&gt;i&amp;&amp;(i=m);else if(g^(h*a&lt;(d=(d+360)%360-180)&amp;&amp;d&lt;h*t)){var m;(m=-u[1]*It)&lt;r&amp;&amp;(r=m)}else o&lt;r&amp;&amp;(r=o),o&gt;i&amp;&amp;(i=o);g?t&lt;a?_(e,t)&gt;_(e,n)&amp;&amp;(n=t):_(t,n)&gt;_(e,n)&amp;&amp;(e=t):n&gt;=e?(t&lt;e&amp;&amp;(e=t),t&gt;n&amp;&amp;(n=t)):t&gt;a?_(e,t)&gt;_(e,n)&amp;&amp;(n=t):_(t,n)&gt;_(e,n)&amp;&amp;(e=t)}else p(t,o);l=s,a=t}function g(){h.point=d}function m(){f[0]=e,f[1]=n,h.point=p,l=null}function v(t,e){if(l){var r=t-a;c+=y(r)&gt;180?r+(r&gt;0?360:-360):r}else o=t,s=e;Cr.point(t,e),d(t,e)}function x(){Cr.lineStart()}function b(){v(o,s),Cr.lineEnd(),y(c)&gt;kt&amp;&amp;(e=-(n=180)),f[0]=e,f[1]=n,l=null}function _(t,e){return(e-=t)&lt;0?e+360:e}function w(t,e){return t[0]-e[0]}function T(t,e){return e[0]&lt;=e[1]?e[0]&lt;=t&amp;&amp;t&lt;=e[1]:t&lt;e[0]||e[1]&lt;t}return function(a){if(i=n=-(e=r=1/0),u=[],t.geo.stream(a,h),c=u.length){u.sort(w);for(var o=1,s=[g=u[0]];o&lt;c;++o)T((p=u[o])[0],g)||T(p[1],g)?(_(g[0],p[1])&gt;_(g[0],g[1])&amp;&amp;(g[1]=p[1]),_(p[0],g[1])&gt;_(g[0],g[1])&amp;&amp;(g[0]=p[0])):s.push(g=p);for(var l,c,p,d=-1/0,g=(o=0,s[c=s.length-1]);o&lt;=c;g=p,++o)p=s[o],(l=_(g[1],p[0]))&gt;d&amp;&amp;(d=l,e=p[0],n=g[1])}return u=f=null,e===1/0||r===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,r],[n,i]]}}(),t.geo.centroid=function(e){vr=yr=xr=br=_r=wr=Tr=kr=Mr=Ar=Sr=0,t.geo.stream(e,Nr);var r=Mr,n=Ar,i=Sr,a=r*r+n*n+i*i;return a&lt;Mt&amp;&amp;(r=wr,n=Tr,i=kr,yr&lt;kt&amp;&amp;(r=xr,n=br,i=_r),(a=r*r+n*n+i*i)&lt;Mt)?[NaN,NaN]:[Math.atan2(n,r)*It,Dt(i/Math.sqrt(a))*It]};var Nr={sphere:O,point:jr,lineStart:Vr,lineEnd:qr,polygonStart:function(){Nr.lineStart=Hr},polygonEnd:function(){Nr.lineStart=Vr}};function jr(t,e){t*=Lt;var r=Math.cos(e*=Lt);Ur(r*Math.cos(t),r*Math.sin(t),Math.sin(e))}function Ur(t,e,r){++vr,xr+=(t-xr)/vr,br+=(e-br)/vr,_r+=(r-_r)/vr}function Vr(){var t,e,r;function n(n,i){n*=Lt;var a=Math.cos(i*=Lt),o=a*Math.cos(n),s=a*Math.sin(n),l=Math.sin(i),c=Math.atan2(Math.sqrt((c=e*l-r*s)*c+(c=r*o-t*l)*c+(c=t*s-e*o)*c),t*o+e*s+r*l);yr+=c,wr+=c*(t+(t=o)),Tr+=c*(e+(e=s)),kr+=c*(r+(r=l)),Ur(t,e,r)}Nr.point=function(i,a){i*=Lt;var o=Math.cos(a*=Lt);t=o*Math.cos(i),e=o*Math.sin(i),r=Math.sin(a),Nr.point=n,Ur(t,e,r)}}function qr(){Nr.point=jr}function Hr(){var t,e,r,n,i;function a(t,e){t*=Lt;var a=Math.cos(e*=Lt),o=a*Math.cos(t),s=a*Math.sin(t),l=Math.sin(e),c=n*l-i*s,u=i*o-r*l,f=r*s-n*o,h=Math.sqrt(c*c+u*u+f*f),p=r*o+n*s+i*l,d=h&amp;&amp;-Ot(p)/h,g=Math.atan2(h,p);Mr+=d*c,Ar+=d*u,Sr+=d*f,yr+=g,wr+=g*(r+(r=o)),Tr+=g*(n+(n=s)),kr+=g*(i+(i=l)),Ur(r,n,i)}Nr.point=function(o,s){t=o,e=s,Nr.point=a,o*=Lt;var l=Math.cos(s*=Lt);r=l*Math.cos(o),n=l*Math.sin(o),i=Math.sin(s),Ur(r,n,i)},Nr.lineEnd=function(){a(t,e),Nr.lineEnd=qr,Nr.point=jr}}function Gr(t,e){function r(r,n){return r=t(r,n),e(r[0],r[1])}return t.invert&amp;&amp;e.invert&amp;&amp;(r.invert=function(r,n){return(r=e.invert(r,n))&amp;&amp;t.invert(r[0],r[1])}),r}function Yr(){return!0}function Wr(t,e,r,n,i){var a=[],o=[];if(t.forEach((function(t){if(!((e=t.length-1)&lt;=0)){var e,r=t[0],n=t[e];if(Br(r,n)){i.lineStart();for(var s=0;s&lt;e;++s)i.point((r=t[s])[0],r[1]);i.lineEnd()}else{var l=new Zr(r,t,null,!0),c=new Zr(r,null,l,!1);l.o=c,a.push(l),o.push(c),l=new Zr(n,t,null,!1),c=new Zr(n,null,l,!0),l.o=c,a.push(l),o.push(c)}}})),o.sort(e),Xr(a),Xr(o),a.length){for(var s=0,l=r,c=o.length;s&lt;c;++s)o[s].e=l=!l;for(var u,f,h=a[0];;){for(var p=h,d=!0;p.v;)if((p=p.n)===h)return;u=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(s=0,c=u.length;s&lt;c;++s)i.point((f=u[s])[0],f[1]);else n(p.x,p.n.x,1,i);p=p.n}else{if(d)for(s=(u=p.p.z).length-1;s&gt;=0;--s)i.point((f=u[s])[0],f[1]);else n(p.x,p.p.x,-1,i);p=p.p}u=(p=p.o).z,d=!d}while(!p.v);i.lineEnd()}}}function Xr(t){if(e=t.length){for(var e,r,n=0,i=t[0];++n&lt;e;)i.n=r=t[n],r.p=i,i=r;i.n=r=t[0],r.p=i}}function Zr(t,e,r,n){this.x=t,this.z=e,this.o=r,this.e=n,this.v=!1,this.n=this.p=null}function Jr(e,r,n,i){return function(a,o){var s,l=r(o),c=a.invert(i[0],i[1]),u={point:f,lineStart:p,lineEnd:d,polygonStart:function(){u.point=b,u.lineStart=_,u.lineEnd=w,s=[],g=[]},polygonEnd:function(){u.point=f,u.lineStart=p,u.lineEnd=d,s=t.merge(s);var e=function(t,e){var r=t[0],n=t[1],i=[Math.sin(r),-Math.cos(r),0],a=0,o=0;Er.reset();for(var s=0,l=e.length;s&lt;l;++s){var c=e[s],u=c.length;if(u)for(var f=c[0],h=f[0],p=f[1]/2+At/4,d=Math.sin(p),g=Math.cos(p),m=1;;){m===u&amp;&amp;(m=0);var v=(t=c[m])[0],y=t[1]/2+At/4,x=Math.sin(y),b=Math.cos(y),_=v-h,w=_&gt;=0?1:-1,T=w*_,k=T&gt;At,M=d*x;if(Er.add(Math.atan2(M*w*Math.sin(T),g*b+M*Math.cos(T))),a+=k?_+w*St:_,k^h&gt;=r^v&gt;=r){var A=zr(Ir(f),Ir(t));Rr(A);var S=zr(i,A);Rr(S);var E=(k^_&gt;=0?-1:1)*Dt(S[2]);(n&gt;E||n===E&amp;&amp;(A[0]||A[1]))&amp;&amp;(o+=k^_&gt;=0?1:-1)}if(!m++)break;h=v,d=x,g=b,f=t}}return(a&lt;-kt||a&lt;kt&amp;&amp;Er&lt;-kt)^1&amp;o}(c,g);s.length?(x||(o.polygonStart(),x=!0),Wr(s,$r,e,n,o)):e&amp;&amp;(x||(o.polygonStart(),x=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),x&amp;&amp;(o.polygonEnd(),x=!1),s=g=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function f(t,r){var n=a(t,r);e(t=n[0],r=n[1])&amp;&amp;o.point(t,r)}function h(t,e){var r=a(t,e);l.point(r[0],r[1])}function p(){u.point=h,l.lineStart()}function d(){u.point=f,l.lineEnd()}var g,m,v=Qr(),y=r(v),x=!1;function b(t,e){m.push([t,e]);var r=a(t,e);y.point(r[0],r[1])}function _(){y.lineStart(),m=[]}function w(){b(m[0][0],m[0][1]),y.lineEnd();var t,e=y.clean(),r=v.buffer(),n=r.length;if(m.pop(),g.push(m),m=null,n)if(1&amp;e){var i,a=-1;if((n=(t=r[0]).length-1)&gt;0){for(x||(o.polygonStart(),x=!0),o.lineStart();++a&lt;n;)o.point((i=t[a])[0],i[1]);o.lineEnd()}}else n&gt;1&amp;&amp;2&amp;e&amp;&amp;r.push(r.pop().concat(r.shift())),s.push(r.filter(Kr))}return u}}function Kr(t){return t.length&gt;1}function Qr(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,r){t.push([e,r])},lineEnd:O,buffer:function(){var r=e;return e=[],t=null,r},rejoin:function(){e.length&gt;1&amp;&amp;e.push(e.pop().concat(e.shift()))}}}function $r(t,e){return((t=t.x)[0]&lt;0?t[1]-Ct-kt:Ct-t[1])-((e=e.x)[0]&lt;0?e[1]-Ct-kt:Ct-e[1])}var tn=Jr(Yr,(function(t){var e,r=NaN,n=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a&gt;0?At:-At,l=y(a-r);y(l-At)&lt;kt?(t.point(r,n=(n+o)/2&gt;0?Ct:-Ct),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),t.point(a,n),e=0):i!==s&amp;&amp;l&gt;=At&amp;&amp;(y(r-i)&lt;kt&amp;&amp;(r-=i*kt),y(a-s)&lt;kt&amp;&amp;(a-=s*kt),n=function(t,e,r,n){var i,a,o=Math.sin(t-r);return y(o)&gt;kt?Math.atan((Math.sin(e)*(a=Math.cos(n))*Math.sin(r)-Math.sin(n)*(i=Math.cos(e))*Math.sin(t))/(i*a*o)):(e+n)/2}(r,n,a,o),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),e=0),t.point(r=a,n=o),i=s},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}}),(function(t,e,r,n){var i;if(null==t)i=r*Ct,n.point(-At,i),n.point(0,i),n.point(At,i),n.point(At,0),n.point(At,-i),n.point(0,-i),n.point(-At,-i),n.point(-At,0),n.point(-At,i);else if(y(t[0]-e[0])&gt;kt){var a=t[0]&lt;e[0]?At:-At;i=r*a/2,n.point(-a,i),n.point(0,i),n.point(a,i)}else n.point(e[0],e[1])}),[-At,-At/2]);function en(t){var e=Math.cos(t),r=e&gt;0,n=y(e)&gt;kt;return Jr(i,(function(t){var e,s,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(f,h){var p,d=[f,h],g=i(f,h),m=r?g?0:o(f,h):g?o(f+(f&lt;0?At:-At),h):0;if(!e&amp;&amp;(c=l=g)&amp;&amp;t.lineStart(),g!==l&amp;&amp;(p=a(e,d),(Br(e,p)||Br(d,p))&amp;&amp;(d[0]+=kt,d[1]+=kt,g=i(d[0],d[1]))),g!==l)u=0,g?(t.lineStart(),p=a(d,e),t.point(p[0],p[1])):(p=a(e,d),t.point(p[0],p[1]),t.lineEnd()),e=p;else if(n&amp;&amp;e&amp;&amp;r^g){var v;m&amp;s||!(v=a(d,e,!0))||(u=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!g||e&amp;&amp;Br(e,d)||t.point(d[0],d[1]),e=d,l=g,s=m},lineEnd:function(){l&amp;&amp;t.lineEnd(),e=null},clean:function(){return u|(c&amp;&amp;l)&lt;&lt;1}}}),Bn(t,6*Lt),r?[0,-t]:[-At,t-At]);function i(t,r){return Math.cos(t)*Math.cos(r)&gt;e}function a(t,r,n){var i=[1,0,0],a=zr(Ir(t),Ir(r)),o=Pr(a,a),s=a[0],l=o-s*s;if(!l)return!n&amp;&amp;t;var c=e*o/l,u=-e*s/l,f=zr(i,a),h=Dr(i,c);Or(h,Dr(a,u));var p=f,d=Pr(h,p),g=Pr(p,p),m=d*d-g*(Pr(h,h)-1);if(!(m&lt;0)){var v=Math.sqrt(m),x=Dr(p,(-d-v)/g);if(Or(x,h),x=Fr(x),!n)return x;var b,_=t[0],w=r[0],T=t[1],k=r[1];w&lt;_&amp;&amp;(b=_,_=w,w=b);var M=w-_,A=y(M-At)&lt;kt;if(!A&amp;&amp;k&lt;T&amp;&amp;(b=T,T=k,k=b),A||M&lt;kt?A?T+k&gt;0^x[1]&lt;(y(x[0]-_)&lt;kt?T:k):T&lt;=x[1]&amp;&amp;x[1]&lt;=k:M&gt;At^(_&lt;=x[0]&amp;&amp;x[0]&lt;=w)){var S=Dr(p,(-d+v)/g);return Or(S,h),[x,Fr(S)]}}}function o(e,n){var i=r?t:At-t,a=0;return e&lt;-i?a|=1:e&gt;i&amp;&amp;(a|=2),n&lt;-i?a|=4:n&gt;i&amp;&amp;(a|=8),a}}function rn(t,e,r,n){return function(i){var a,o=i.a,s=i.b,l=o.x,c=o.y,u=0,f=1,h=s.x-l,p=s.y-c;if(a=t-l,h||!(a&gt;0)){if(a/=h,h&lt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}else if(h&gt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}if(a=r-l,h||!(a&lt;0)){if(a/=h,h&lt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}else if(h&gt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}if(a=e-c,p||!(a&gt;0)){if(a/=p,p&lt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}else if(p&gt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}if(a=n-c,p||!(a&lt;0)){if(a/=p,p&lt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}else if(p&gt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}return u&gt;0&amp;&amp;(i.a={x:l+u*h,y:c+u*p}),f&lt;1&amp;&amp;(i.b={x:l+f*h,y:c+f*p}),i}}}}}}function nn(e,r,n,i){return function(l){var c,u,f,h,p,d,g,m,v,y,x,b=l,_=Qr(),w=rn(e,r,n,i),T={point:A,lineStart:function(){T.point=S,u&amp;&amp;u.push(f=[]);y=!0,v=!1,g=m=NaN},lineEnd:function(){c&amp;&amp;(S(h,p),d&amp;&amp;v&amp;&amp;_.rejoin(),c.push(_.buffer()));T.point=A,v&amp;&amp;l.lineEnd()},polygonStart:function(){l=_,c=[],u=[],x=!0},polygonEnd:function(){l=b,c=t.merge(c);var r=function(t){for(var e=0,r=u.length,n=t[1],i=0;i&lt;r;++i)for(var a,o=1,s=u[i],l=s.length,c=s[0];o&lt;l;++o)a=s[o],c[1]&lt;=n?a[1]&gt;n&amp;&amp;zt(c,a,t)&gt;0&amp;&amp;++e:a[1]&lt;=n&amp;&amp;zt(c,a,t)&lt;0&amp;&amp;--e,c=a;return 0!==e}([e,i]),n=x&amp;&amp;r,a=c.length;(n||a)&amp;&amp;(l.polygonStart(),n&amp;&amp;(l.lineStart(),k(null,null,1,l),l.lineEnd()),a&amp;&amp;Wr(c,o,r,k,l),l.polygonEnd()),c=u=f=null}};function k(t,o,l,c){var u=0,f=0;if(null==t||(u=a(t,l))!==(f=a(o,l))||s(t,o)&lt;0^l&gt;0)do{c.point(0===u||3===u?e:n,u&gt;1?i:r)}while((u=(u+l+4)%4)!==f);else c.point(o[0],o[1])}function M(t,a){return e&lt;=t&amp;&amp;t&lt;=n&amp;&amp;r&lt;=a&amp;&amp;a&lt;=i}function A(t,e){M(t,e)&amp;&amp;l.point(t,e)}function S(t,e){var r=M(t=Math.max(-1e9,Math.min(1e9,t)),e=Math.max(-1e9,Math.min(1e9,e)));if(u&amp;&amp;f.push([t,e]),y)h=t,p=e,d=r,y=!1,r&amp;&amp;(l.lineStart(),l.point(t,e));else if(r&amp;&amp;v)l.point(t,e);else{var n={a:{x:g,y:m},b:{x:t,y:e}};w(n)?(v||(l.lineStart(),l.point(n.a.x,n.a.y)),l.point(n.b.x,n.b.y),r||l.lineEnd(),x=!1):r&amp;&amp;(l.lineStart(),l.point(t,e),x=!1)}g=t,m=e,v=r}return T};function a(t,i){return y(t[0]-e)&lt;kt?i&gt;0?0:3:y(t[0]-n)&lt;kt?i&gt;0?2:1:y(t[1]-r)&lt;kt?i&gt;0?1:0:i&gt;0?3:2}function o(t,e){return s(t.x,e.x)}function s(t,e){var r=a(t,1),n=a(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}}function an(t){var e=0,r=At/3,n=Ln(t),i=n(e,r);return i.parallels=function(t){return arguments.length?n(e=t[0]*At/180,r=t[1]*At/180):[e/At*180,r/At*180]},i}function on(t,e){var r=Math.sin(t),n=(r+Math.sin(e))/2,i=1+r*(2*n-r),a=Math.sqrt(i)/n;function o(t,e){var r=Math.sqrt(i-2*n*Math.sin(e))/n;return[r*Math.sin(t*=n),a-r*Math.cos(t)]}return o.invert=function(t,e){var r=a-e;return[Math.atan2(t,r)/n,Dt((i-(t*t+r*r)*n*n)/(2*n))]},o}t.geo.clipExtent=function(){var t,e,r,n,i,a,o={stream:function(t){return i&amp;&amp;(i.valid=!1),(i=a(t)).valid=!0,i},extent:function(s){return arguments.length?(a=nn(t=+s[0][0],e=+s[0][1],r=+s[1][0],n=+s[1][1]),i&amp;&amp;(i.valid=!1,i=null),o):[[t,e],[r,n]]}};return o.extent([[0,0],[960,500]])},(t.geo.conicEqualArea=function(){return an(on)}).raw=on,t.geo.albers=function(){return t.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},t.geo.albersUsa=function(){var e,r,n,i,a=t.geo.albers(),o=t.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=t.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,r){e=[t,r]}};function c(t){var a=t[0],o=t[1];return e=null,r(a,o),e||(n(a,o),e)||i(a,o),e}return c.invert=function(t){var e=a.scale(),r=a.translate(),n=(t[0]-r[0])/e,i=(t[1]-r[1])/e;return(i&gt;=.12&amp;&amp;i&lt;.234&amp;&amp;n&gt;=-.425&amp;&amp;n&lt;-.214?o:i&gt;=.166&amp;&amp;i&lt;.234&amp;&amp;n&gt;=-.214&amp;&amp;n&lt;-.115?s:a).invert(t)},c.stream=function(t){var e=a.stream(t),r=o.stream(t),n=s.stream(t);return{point:function(t,i){e.point(t,i),r.point(t,i),n.point(t,i)},sphere:function(){e.sphere(),r.sphere(),n.sphere()},lineStart:function(){e.lineStart(),r.lineStart(),n.lineStart()},lineEnd:function(){e.lineEnd(),r.lineEnd(),n.lineEnd()},polygonStart:function(){e.polygonStart(),r.polygonStart(),n.polygonStart()},polygonEnd:function(){e.polygonEnd(),r.polygonEnd(),n.polygonEnd()}}},c.precision=function(t){return arguments.length?(a.precision(t),o.precision(t),s.precision(t),c):a.precision()},c.scale=function(t){return arguments.length?(a.scale(t),o.scale(.35*t),s.scale(t),c.translate(a.translate())):a.scale()},c.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),u=+t[0],f=+t[1];return r=a.translate(t).clipExtent([[u-.455*e,f-.238*e],[u+.455*e,f+.238*e]]).stream(l).point,n=o.translate([u-.307*e,f+.201*e]).clipExtent([[u-.425*e+kt,f+.12*e+kt],[u-.214*e-kt,f+.234*e-kt]]).stream(l).point,i=s.translate([u-.205*e,f+.212*e]).clipExtent([[u-.214*e+kt,f+.166*e+kt],[u-.115*e-kt,f+.234*e-kt]]).stream(l).point,c},c.scale(1070)};var sn,ln,cn,un,fn,hn,pn={point:O,lineStart:O,lineEnd:O,polygonStart:function(){ln=0,pn.lineStart=dn},polygonEnd:function(){pn.lineStart=pn.lineEnd=pn.point=O,sn+=y(ln/2)}};function dn(){var t,e,r,n;function i(t,e){ln+=n*t-r*e,r=t,n=e}pn.point=function(a,o){pn.point=i,t=r=a,e=n=o},pn.lineEnd=function(){i(t,e)}}var gn={point:function(t,e){t&lt;cn&amp;&amp;(cn=t);t&gt;fn&amp;&amp;(fn=t);e&lt;un&amp;&amp;(un=e);e&gt;hn&amp;&amp;(hn=e)},lineStart:O,lineEnd:O,polygonStart:O,polygonEnd:O};function mn(){var t=vn(4.5),e=[],r={point:n,lineStart:function(){r.point=i},lineEnd:o,polygonStart:function(){r.lineEnd=s},polygonEnd:function(){r.lineEnd=o,r.point=n},pointRadius:function(e){return t=vn(e),r},result:function(){if(e.length){var t=e.join(&quot;&quot;);return e=[],t}}};function n(r,n){e.push(&quot;M&quot;,r,&quot;,&quot;,n,t)}function i(t,n){e.push(&quot;M&quot;,t,&quot;,&quot;,n),r.point=a}function a(t,r){e.push(&quot;L&quot;,t,&quot;,&quot;,r)}function o(){r.point=n}function s(){e.push(&quot;Z&quot;)}return r}function vn(t){return&quot;m0,&quot;+t+&quot;a&quot;+t+&quot;,&quot;+t+&quot; 0 1,1 0,&quot;+-2*t+&quot;a&quot;+t+&quot;,&quot;+t+&quot; 0 1,1 0,&quot;+2*t+&quot;z&quot;}var yn,xn={point:bn,lineStart:_n,lineEnd:wn,polygonStart:function(){xn.lineStart=Tn},polygonEnd:function(){xn.point=bn,xn.lineStart=_n,xn.lineEnd=wn}};function bn(t,e){xr+=t,br+=e,++_r}function _n(){var t,e;function r(r,n){var i=r-t,a=n-e,o=Math.sqrt(i*i+a*a);wr+=o*(t+r)/2,Tr+=o*(e+n)/2,kr+=o,bn(t=r,e=n)}xn.point=function(n,i){xn.point=r,bn(t=n,e=i)}}function wn(){xn.point=bn}function Tn(){var t,e,r,n;function i(t,e){var i=t-r,a=e-n,o=Math.sqrt(i*i+a*a);wr+=o*(r+t)/2,Tr+=o*(n+e)/2,kr+=o,Mr+=(o=n*t-r*e)*(r+t),Ar+=o*(n+e),Sr+=3*o,bn(r=t,n=e)}xn.point=function(a,o){xn.point=i,bn(t=r=a,e=n=o)},xn.lineEnd=function(){i(t,e)}}function kn(t){var e=4.5,r={point:n,lineStart:function(){r.point=i},lineEnd:o,polygonStart:function(){r.lineEnd=s},polygonEnd:function(){r.lineEnd=o,r.point=n},pointRadius:function(t){return e=t,r},result:O};function n(r,n){t.moveTo(r+e,n),t.arc(r,n,e,0,St)}function i(e,n){t.moveTo(e,n),r.point=a}function a(e,r){t.lineTo(e,r)}function o(){r.point=n}function s(){t.closePath()}return r}function Mn(t){var e=.5,r=Math.cos(30*Lt),n=16;function i(t){return(n?o:a)(t)}function a(e){return En(e,(function(r,n){r=t(r,n),e.point(r[0],r[1])}))}function o(e){var r,i,a,o,l,c,u,f,h,p,d,g,m={point:v,lineStart:y,lineEnd:b,polygonStart:function(){e.polygonStart(),m.lineStart=_},polygonEnd:function(){e.polygonEnd(),m.lineStart=y}};function v(r,n){r=t(r,n),e.point(r[0],r[1])}function y(){f=NaN,m.point=x,e.lineStart()}function x(r,i){var a=Ir([r,i]),o=t(r,i);s(f,h,u,p,d,g,f=o[0],h=o[1],u=r,p=a[0],d=a[1],g=a[2],n,e),e.point(f,h)}function b(){m.point=v,e.lineEnd()}function _(){y(),m.point=w,m.lineEnd=T}function w(t,e){x(r=t,e),i=f,a=h,o=p,l=d,c=g,m.point=x}function T(){s(f,h,u,p,d,g,i,a,r,o,l,c,n,e),m.lineEnd=b,b()}return m}function s(n,i,a,o,l,c,u,f,h,p,d,g,m,v){var x=u-n,b=f-i,_=x*x+b*b;if(_&gt;4*e&amp;&amp;m--){var w=o+p,T=l+d,k=c+g,M=Math.sqrt(w*w+T*T+k*k),A=Math.asin(k/=M),S=y(y(k)-1)&lt;kt||y(a-h)&lt;kt?(a+h)/2:Math.atan2(T,w),E=t(S,A),C=E[0],L=E[1],I=C-n,P=L-i,z=b*I-x*P;(z*z/_&gt;e||y((x*I+b*P)/_-.5)&gt;.3||o*p+l*d+c*g&lt;r)&amp;&amp;(s(n,i,a,o,l,c,C,L,S,w/=M,T/=M,k,m,v),v.point(C,L),s(C,L,S,w,T,k,u,f,h,p,d,g,m,v))}}return i.precision=function(t){return arguments.length?(n=(e=t*t)&gt;0&amp;&amp;16,i):Math.sqrt(e)},i}function An(t){var e=Mn((function(e,r){return t([e*It,r*It])}));return function(t){return In(e(t))}}function Sn(t){this.stream=t}function En(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function Cn(t){return Ln((function(){return t}))()}function Ln(e){var r,n,i,a,o,s,l=Mn((function(t,e){return[(t=r(t,e))[0]*c+a,o-t[1]*c]})),c=150,u=480,f=250,h=0,p=0,d=0,g=0,m=0,v=tn,y=L,x=null,b=null;function _(t){return[(t=i(t[0]*Lt,t[1]*Lt))[0]*c+a,o-t[1]*c]}function w(t){return(t=i.invert((t[0]-a)/c,(o-t[1])/c))&amp;&amp;[t[0]*It,t[1]*It]}function T(){i=Gr(n=On(d,g,m),r);var t=r(h,p);return a=u-t[0]*c,o=f+t[1]*c,k()}function k(){return s&amp;&amp;(s.valid=!1,s=null),_}return _.stream=function(t){return s&amp;&amp;(s.valid=!1),(s=In(v(n,l(y(t))))).valid=!0,s},_.clipAngle=function(t){return arguments.length?(v=null==t?(x=t,tn):en((x=+t)*Lt),k()):x},_.clipExtent=function(t){return arguments.length?(b=t,y=t?nn(t[0][0],t[0][1],t[1][0],t[1][1]):L,k()):b},_.scale=function(t){return arguments.length?(c=+t,T()):c},_.translate=function(t){return arguments.length?(u=+t[0],f=+t[1],T()):[u,f]},_.center=function(t){return arguments.length?(h=t[0]%360*Lt,p=t[1]%360*Lt,T()):[h*It,p*It]},_.rotate=function(t){return arguments.length?(d=t[0]%360*Lt,g=t[1]%360*Lt,m=t.length&gt;2?t[2]%360*Lt:0,T()):[d*It,g*It,m*It]},t.rebind(_,l,&quot;precision&quot;),function(){return r=e.apply(this,arguments),_.invert=r.invert&amp;&amp;w,T()}}function In(t){return En(t,(function(e,r){t.point(e*Lt,r*Lt)}))}function Pn(t,e){return[t,e]}function zn(t,e){return[t&gt;At?t-St:t&lt;-At?t+St:t,e]}function On(t,e,r){return t?e||r?Gr(Rn(t),Fn(e,r)):Rn(t):e||r?Fn(e,r):zn}function Dn(t){return function(e,r){return[(e+=t)&gt;At?e-St:e&lt;-At?e+St:e,r]}}function Rn(t){var e=Dn(t);return e.invert=Dn(-t),e}function Fn(t,e){var r=Math.cos(t),n=Math.sin(t),i=Math.cos(e),a=Math.sin(e);function o(t,e){var o=Math.cos(e),s=Math.cos(t)*o,l=Math.sin(t)*o,c=Math.sin(e),u=c*r+s*n;return[Math.atan2(l*i-u*a,s*r-c*n),Dt(u*i+l*a)]}return o.invert=function(t,e){var o=Math.cos(e),s=Math.cos(t)*o,l=Math.sin(t)*o,c=Math.sin(e),u=c*i-l*a;return[Math.atan2(l*i+c*a,s*r+u*n),Dt(u*r-s*n)]},o}function Bn(t,e){var r=Math.cos(t),n=Math.sin(t);return function(i,a,o,s){var l=o*e;null!=i?(i=Nn(r,i),a=Nn(r,a),(o&gt;0?i&lt;a:i&gt;a)&amp;&amp;(i+=o*St)):(i=t+o*St,a=t-.5*l);for(var c,u=i;o&gt;0?u&gt;a:u&lt;a;u-=l)s.point((c=Fr([r,-n*Math.cos(u),-n*Math.sin(u)]))[0],c[1])}}function Nn(t,e){var r=Ir(e);r[0]-=t,Rr(r);var n=Ot(-r[1]);return((-r[2]&lt;0?-n:n)+2*Math.PI-kt)%(2*Math.PI)}function jn(e,r,n){var i=t.range(e,r-kt,n).concat(r);return function(t){return i.map((function(e){return[t,e]}))}}function Un(e,r,n){var i=t.range(e,r-kt,n).concat(r);return function(t){return i.map((function(e){return[e,t]}))}}function Vn(t){return t.source}function qn(t){return t.target}t.geo.path=function(){var e,r,n,i,a,o=4.5;function s(e){return e&amp;&amp;(&quot;function&quot;==typeof o&amp;&amp;i.pointRadius(+o.apply(this,arguments)),a&amp;&amp;a.valid||(a=n(i)),t.geo.stream(e,a)),i.result()}function l(){return a=null,s}return s.area=function(e){return sn=0,t.geo.stream(e,n(pn)),sn},s.centroid=function(e){return xr=br=_r=wr=Tr=kr=Mr=Ar=Sr=0,t.geo.stream(e,n(xn)),Sr?[Mr/Sr,Ar/Sr]:kr?[wr/kr,Tr/kr]:_r?[xr/_r,br/_r]:[NaN,NaN]},s.bounds=function(e){return fn=hn=-(cn=un=1/0),t.geo.stream(e,n(gn)),[[cn,un],[fn,hn]]},s.projection=function(t){return arguments.length?(n=(e=t)?t.stream||An(t):L,l()):e},s.context=function(t){return arguments.length?(i=null==(r=t)?new mn:new kn(t),&quot;function&quot;!=typeof o&amp;&amp;i.pointRadius(o),l()):r},s.pointRadius=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:(i.pointRadius(+t),+t),s):o},s.projection(t.geo.albersUsa()).context(null)},t.geo.transform=function(t){return{stream:function(e){var r=new Sn(e);for(var n in t)r[n]=t[n];return r}}},Sn.prototype={point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},t.geo.projection=Cn,t.geo.projectionMutator=Ln,(t.geo.equirectangular=function(){return Cn(Pn)}).raw=Pn.invert=Pn,t.geo.rotation=function(t){function e(e){return(e=t(e[0]*Lt,e[1]*Lt))[0]*=It,e[1]*=It,e}return t=On(t[0]%360*Lt,t[1]*Lt,t.length&gt;2?t[2]*Lt:0),e.invert=function(e){return(e=t.invert(e[0]*Lt,e[1]*Lt))[0]*=It,e[1]*=It,e},e},zn.invert=Pn,t.geo.circle=function(){var t,e,r=[0,0],n=6;function i(){var t=&quot;function&quot;==typeof r?r.apply(this,arguments):r,n=On(-t[0]*Lt,-t[1]*Lt,0).invert,i=[];return e(null,null,1,{point:function(t,e){i.push(t=n(t,e)),t[0]*=It,t[1]*=It}}),{type:&quot;Polygon&quot;,coordinates:[i]}}return i.origin=function(t){return arguments.length?(r=t,i):r},i.angle=function(r){return arguments.length?(e=Bn((t=+r)*Lt,n*Lt),i):t},i.precision=function(r){return arguments.length?(e=Bn(t*Lt,(n=+r)*Lt),i):n},i.angle(90)},t.geo.distance=function(t,e){var r,n=(e[0]-t[0])*Lt,i=t[1]*Lt,a=e[1]*Lt,o=Math.sin(n),s=Math.cos(n),l=Math.sin(i),c=Math.cos(i),u=Math.sin(a),f=Math.cos(a);return Math.atan2(Math.sqrt((r=f*o)*r+(r=c*u-l*f*s)*r),l*u+c*f*s)},t.geo.graticule=function(){var e,r,n,i,a,o,s,l,c,u,f,h,p=10,d=p,g=90,m=360,v=2.5;function x(){return{type:&quot;MultiLineString&quot;,coordinates:b()}}function b(){return t.range(Math.ceil(i/g)*g,n,g).map(f).concat(t.range(Math.ceil(l/m)*m,s,m).map(h)).concat(t.range(Math.ceil(r/p)*p,e,p).filter((function(t){return y(t%g)&gt;kt})).map(c)).concat(t.range(Math.ceil(o/d)*d,a,d).filter((function(t){return y(t%m)&gt;kt})).map(u))}return x.lines=function(){return b().map((function(t){return{type:&quot;LineString&quot;,coordinates:t}}))},x.outline=function(){return{type:&quot;Polygon&quot;,coordinates:[f(i).concat(h(s).slice(1),f(n).reverse().slice(1),h(l).reverse().slice(1))]}},x.extent=function(t){return arguments.length?x.majorExtent(t).minorExtent(t):x.minorExtent()},x.majorExtent=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],l=+t[0][1],s=+t[1][1],i&gt;n&amp;&amp;(t=i,i=n,n=t),l&gt;s&amp;&amp;(t=l,l=s,s=t),x.precision(v)):[[i,l],[n,s]]},x.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],o=+t[0][1],a=+t[1][1],r&gt;e&amp;&amp;(t=r,r=e,e=t),o&gt;a&amp;&amp;(t=o,o=a,a=t),x.precision(v)):[[r,o],[e,a]]},x.step=function(t){return arguments.length?x.majorStep(t).minorStep(t):x.minorStep()},x.majorStep=function(t){return arguments.length?(g=+t[0],m=+t[1],x):[g,m]},x.minorStep=function(t){return arguments.length?(p=+t[0],d=+t[1],x):[p,d]},x.precision=function(t){return arguments.length?(v=+t,c=jn(o,a,90),u=Un(r,e,v),f=jn(l,s,90),h=Un(i,n,v),x):v},x.majorExtent([[-180,-90+kt],[180,90-kt]]).minorExtent([[-180,-80-kt],[180,80+kt]])},t.geo.greatArc=function(){var e,r,n=Vn,i=qn;function a(){return{type:&quot;LineString&quot;,coordinates:[e||n.apply(this,arguments),r||i.apply(this,arguments)]}}return a.distance=function(){return t.geo.distance(e||n.apply(this,arguments),r||i.apply(this,arguments))},a.source=function(t){return arguments.length?(n=t,e=&quot;function&quot;==typeof t?null:t,a):n},a.target=function(t){return arguments.length?(i=t,r=&quot;function&quot;==typeof t?null:t,a):i},a.precision=function(){return arguments.length?a:0},a},t.geo.interpolate=function(t,e){return r=t[0]*Lt,n=t[1]*Lt,i=e[0]*Lt,a=e[1]*Lt,o=Math.cos(n),s=Math.sin(n),l=Math.cos(a),c=Math.sin(a),u=o*Math.cos(r),f=o*Math.sin(r),h=l*Math.cos(i),p=l*Math.sin(i),d=2*Math.asin(Math.sqrt(Ft(a-n)+o*l*Ft(i-r))),g=1/Math.sin(d),(m=d?function(t){var e=Math.sin(t*=d)*g,r=Math.sin(d-t)*g,n=r*u+e*h,i=r*f+e*p,a=r*s+e*c;return[Math.atan2(i,n)*It,Math.atan2(a,Math.sqrt(n*n+i*i))*It]}:function(){return[r*It,n*It]}).distance=d,m;var r,n,i,a,o,s,l,c,u,f,h,p,d,g,m},t.geo.length=function(e){return yn=0,t.geo.stream(e,Hn),yn};var Hn={sphere:O,point:O,lineStart:function(){var t,e,r;function n(n,i){var a=Math.sin(i*=Lt),o=Math.cos(i),s=y((n*=Lt)-t),l=Math.cos(s);yn+=Math.atan2(Math.sqrt((s=o*Math.sin(s))*s+(s=r*a-e*o*l)*s),e*a+r*o*l),t=n,e=a,r=o}Hn.point=function(i,a){t=i*Lt,e=Math.sin(a*=Lt),r=Math.cos(a),Hn.point=n},Hn.lineEnd=function(){Hn.point=Hn.lineEnd=O}},lineEnd:O,polygonStart:O,polygonEnd:O};function Gn(t,e){function r(e,r){var n=Math.cos(e),i=Math.cos(r),a=t(n*i);return[a*i*Math.sin(e),a*Math.sin(r)]}return r.invert=function(t,r){var n=Math.sqrt(t*t+r*r),i=e(n),a=Math.sin(i),o=Math.cos(i);return[Math.atan2(t*a,n*o),Math.asin(n&amp;&amp;r*a/n)]},r}var Yn=Gn((function(t){return Math.sqrt(2/(1+t))}),(function(t){return 2*Math.asin(t/2)}));(t.geo.azimuthalEqualArea=function(){return Cn(Yn)}).raw=Yn;var Wn=Gn((function(t){var e=Math.acos(t);return e&amp;&amp;e/Math.sin(e)}),L);function Xn(t,e){var r=Math.cos(t),n=function(t){return Math.tan(At/4+t/2)},i=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(n(e)/n(t)),a=r*Math.pow(n(t),i)/i;if(!i)return Kn;function o(t,e){a&gt;0?e&lt;-Ct+kt&amp;&amp;(e=-Ct+kt):e&gt;Ct-kt&amp;&amp;(e=Ct-kt);var r=a/Math.pow(n(e),i);return[r*Math.sin(i*t),a-r*Math.cos(i*t)]}return o.invert=function(t,e){var r=a-e,n=Pt(i)*Math.sqrt(t*t+r*r);return[Math.atan2(t,r)/i,2*Math.atan(Math.pow(a/n,1/i))-Ct]},o}function Zn(t,e){var r=Math.cos(t),n=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),i=r/n+t;if(y(n)&lt;kt)return Pn;function a(t,e){var r=i-e;return[r*Math.sin(n*t),i-r*Math.cos(n*t)]}return a.invert=function(t,e){var r=i-e;return[Math.atan2(t,r)/n,i-Pt(n)*Math.sqrt(t*t+r*r)]},a}(t.geo.azimuthalEquidistant=function(){return Cn(Wn)}).raw=Wn,(t.geo.conicConformal=function(){return an(Xn)}).raw=Xn,(t.geo.conicEquidistant=function(){return an(Zn)}).raw=Zn;var Jn=Gn((function(t){return 1/t}),Math.atan);function Kn(t,e){return[t,Math.log(Math.tan(At/4+e/2))]}function Qn(t){var e,r=Cn(t),n=r.scale,i=r.translate,a=r.clipExtent;return r.scale=function(){var t=n.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.translate=function(){var t=i.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.clipExtent=function(t){var o=a.apply(r,arguments);if(o===r){if(e=null==t){var s=At*n(),l=i();a([[l[0]-s,l[1]-s],[l[0]+s,l[1]+s]])}}else e&amp;&amp;(o=null);return o},r.clipExtent(null)}(t.geo.gnomonic=function(){return Cn(Jn)}).raw=Jn,Kn.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Ct]},(t.geo.mercator=function(){return Qn(Kn)}).raw=Kn;var $n=Gn((function(){return 1}),Math.asin);(t.geo.orthographic=function(){return Cn($n)}).raw=$n;var ti=Gn((function(t){return 1/(1+t)}),(function(t){return 2*Math.atan(t)}));function ei(t,e){return[Math.log(Math.tan(At/4+e/2)),-t]}function ri(t){return t[0]}function ni(t){return t[1]}function ii(t){for(var e=t.length,r=[0,1],n=2,i=2;i&lt;e;i++){for(;n&gt;1&amp;&amp;zt(t[r[n-2]],t[r[n-1]],t[i])&lt;=0;)--n;r[n++]=i}return r.slice(0,n)}function ai(t,e){return t[0]-e[0]||t[1]-e[1]}(t.geo.stereographic=function(){return Cn(ti)}).raw=ti,ei.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Ct]},(t.geo.transverseMercator=function(){var t=Qn(ei),e=t.center,r=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return t?r([t[0],t[1],t.length&gt;2?t[2]+90:90]):[(t=r())[0],t[1],t[2]-90]},r([0,0,90])}).raw=ei,t.geom={},t.geom.hull=function(t){var e=ri,r=ni;if(arguments.length)return n(t);function n(t){if(t.length&lt;3)return[];var n,i=de(e),a=de(r),o=t.length,s=[],l=[];for(n=0;n&lt;o;n++)s.push([+i.call(this,t[n],n),+a.call(this,t[n],n),n]);for(s.sort(ai),n=0;n&lt;o;n++)l.push([s[n][0],-s[n][1]]);var c=ii(s),u=ii(l),f=u[0]===c[0],h=u[u.length-1]===c[c.length-1],p=[];for(n=c.length-1;n&gt;=0;--n)p.push(t[s[c[n]][2]]);for(n=+f;n&lt;u.length-h;++n)p.push(t[s[u[n]][2]]);return p}return n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n},t.geom.polygon=function(t){return U(t,oi),t};var oi=t.geom.polygon.prototype=[];function si(t,e,r){return(r[0]-e[0])*(t[1]-e[1])&lt;(r[1]-e[1])*(t[0]-e[0])}function li(t,e,r,n){var i=t[0],a=r[0],o=e[0]-i,s=n[0]-a,l=t[1],c=r[1],u=e[1]-l,f=n[1]-c,h=(s*(l-c)-f*(i-a))/(f*o-s*u);return[i+h*o,l+h*u]}function ci(t){var e=t[0],r=t[t.length-1];return!(e[0]-r[0]||e[1]-r[1])}oi.area=function(){for(var t,e=-1,r=this.length,n=this[r-1],i=0;++e&lt;r;)t=n,n=this[e],i+=t[1]*n[0]-t[0]*n[1];return.5*i},oi.centroid=function(t){var e,r,n=-1,i=this.length,a=0,o=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++n&lt;i;)e=s,s=this[n],r=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*r,o+=(e[1]+s[1])*r;return[a*t,o*t]},oi.clip=function(t){for(var e,r,n,i,a,o,s=ci(t),l=-1,c=this.length-ci(this),u=this[c-1];++l&lt;c;){for(e=t.slice(),t.length=0,i=this[l],a=e[(n=e.length-s)-1],r=-1;++r&lt;n;)si(o=e[r],u,i)?(si(a,u,i)||t.push(li(a,o,u,i)),t.push(o)):si(a,u,i)&amp;&amp;t.push(li(a,o,u,i)),a=o;s&amp;&amp;t.push(t[0]),u=i}return t};var ui,fi,hi,pi,di,gi=[],mi=[];function vi(){Ri(this),this.edge=this.site=this.circle=null}function yi(t){var e=gi.pop()||new vi;return e.site=t,e}function xi(t){Ei(t),hi.remove(t),gi.push(t),Ri(t)}function bi(t){var e=t.circle,r=e.x,n=e.cy,i={x:r,y:n},a=t.P,o=t.N,s=[t];xi(t);for(var l=a;l.circle&amp;&amp;y(r-l.circle.x)&lt;kt&amp;&amp;y(n-l.circle.cy)&lt;kt;)a=l.P,s.unshift(l),xi(l),l=a;s.unshift(l),Ei(l);for(var c=o;c.circle&amp;&amp;y(r-c.circle.x)&lt;kt&amp;&amp;y(n-c.circle.cy)&lt;kt;)o=c.N,s.push(c),xi(c),c=o;s.push(c),Ei(c);var u,f=s.length;for(u=1;u&lt;f;++u)c=s[u],l=s[u-1],zi(c.edge,l.site,c.site,i);l=s[0],(c=s[f-1]).edge=Ii(l.site,c.site,null,i),Si(l),Si(c)}function _i(t){for(var e,r,n,i,a=t.x,o=t.y,s=hi._;s;)if((n=wi(s,o)-a)&gt;kt)s=s.L;else{if(!((i=a-Ti(s,o))&gt;kt)){n&gt;-kt?(e=s.P,r=s):i&gt;-kt?(e=s,r=s.N):e=r=s;break}if(!s.R){e=s;break}s=s.R}var l=yi(t);if(hi.insert(e,l),e||r){if(e===r)return Ei(e),r=yi(e.site),hi.insert(l,r),l.edge=r.edge=Ii(e.site,l.site),Si(e),void Si(r);if(r){Ei(e),Ei(r);var c=e.site,u=c.x,f=c.y,h=t.x-u,p=t.y-f,d=r.site,g=d.x-u,m=d.y-f,v=2*(h*m-p*g),y=h*h+p*p,x=g*g+m*m,b={x:(m*y-p*x)/v+u,y:(h*x-g*y)/v+f};zi(r.edge,c,d,b),l.edge=Ii(c,t,null,b),r.edge=Ii(t,d,null,b),Si(e),Si(r)}else l.edge=Ii(e.site,l.site)}}function wi(t,e){var r=t.site,n=r.x,i=r.y,a=i-e;if(!a)return n;var o=t.P;if(!o)return-1/0;var s=(r=o.site).x,l=r.y,c=l-e;if(!c)return s;var u=s-n,f=1/a-1/c,h=u/c;return f?(-h+Math.sqrt(h*h-2*f*(u*u/(-2*c)-l+c/2+i-a/2)))/f+n:(n+s)/2}function Ti(t,e){var r=t.N;if(r)return wi(r,e);var n=t.site;return n.y===e?n.x:1/0}function ki(t){this.site=t,this.edges=[]}function Mi(t,e){return e.angle-t.angle}function Ai(){Ri(this),this.x=this.y=this.arc=this.site=this.cy=null}function Si(t){var e=t.P,r=t.N;if(e&amp;&amp;r){var n=e.site,i=t.site,a=r.site;if(n!==a){var o=i.x,s=i.y,l=n.x-o,c=n.y-s,u=a.x-o,f=2*(l*(m=a.y-s)-c*u);if(!(f&gt;=-Mt)){var h=l*l+c*c,p=u*u+m*m,d=(m*h-c*p)/f,g=(l*p-u*h)/f,m=g+s,v=mi.pop()||new Ai;v.arc=t,v.site=i,v.x=d+o,v.y=m+Math.sqrt(d*d+g*g),v.cy=m,t.circle=v;for(var y=null,x=di._;x;)if(v.y&lt;x.y||v.y===x.y&amp;&amp;v.x&lt;=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}di.insert(y,v),y||(pi=v)}}}}function Ei(t){var e=t.circle;e&amp;&amp;(e.P||(pi=e.N),di.remove(e),mi.push(e),Ri(e),t.circle=null)}function Ci(t,e){var r=t.b;if(r)return!0;var n,i,a=t.a,o=e[0][0],s=e[1][0],l=e[0][1],c=e[1][1],u=t.l,f=t.r,h=u.x,p=u.y,d=f.x,g=f.y,m=(h+d)/2,v=(p+g)/2;if(g===p){if(m&lt;o||m&gt;=s)return;if(h&gt;d){if(a){if(a.y&gt;=c)return}else a={x:m,y:l};r={x:m,y:c}}else{if(a){if(a.y&lt;l)return}else a={x:m,y:c};r={x:m,y:l}}}else if(i=v-(n=(h-d)/(g-p))*m,n&lt;-1||n&gt;1)if(h&gt;d){if(a){if(a.y&gt;=c)return}else a={x:(l-i)/n,y:l};r={x:(c-i)/n,y:c}}else{if(a){if(a.y&lt;l)return}else a={x:(c-i)/n,y:c};r={x:(l-i)/n,y:l}}else if(p&lt;g){if(a){if(a.x&gt;=s)return}else a={x:o,y:n*o+i};r={x:s,y:n*s+i}}else{if(a){if(a.x&lt;o)return}else a={x:s,y:n*s+i};r={x:o,y:n*o+i}}return t.a=a,t.b=r,!0}function Li(t,e){this.l=t,this.r=e,this.a=this.b=null}function Ii(t,e,r,n){var i=new Li(t,e);return ui.push(i),r&amp;&amp;zi(i,t,e,r),n&amp;&amp;zi(i,e,t,n),fi[t.i].edges.push(new Oi(i,t,e)),fi[e.i].edges.push(new Oi(i,e,t)),i}function Pi(t,e,r){var n=new Li(t,null);return n.a=e,n.b=r,ui.push(n),n}function zi(t,e,r,n){t.a||t.b?t.l===r?t.b=n:t.a=n:(t.a=n,t.l=e,t.r=r)}function Oi(t,e,r){var n=t.a,i=t.b;this.edge=t,this.site=e,this.angle=r?Math.atan2(r.y-e.y,r.x-e.x):t.l===e?Math.atan2(i.x-n.x,n.y-i.y):Math.atan2(n.x-i.x,i.y-n.y)}function Di(){this._=null}function Ri(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Fi(t,e){var r=e,n=e.R,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.R=n.L,r.R&amp;&amp;(r.R.U=r),n.L=r}function Bi(t,e){var r=e,n=e.L,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.L=n.R,r.L&amp;&amp;(r.L.U=r),n.R=r}function Ni(t){for(;t.L;)t=t.L;return t}function ji(t,e){var r,n,i,a=t.sort(Ui).pop();for(ui=[],fi=new Array(t.length),hi=new Di,di=new Di;;)if(i=pi,a&amp;&amp;(!i||a.y&lt;i.y||a.y===i.y&amp;&amp;a.x&lt;i.x))a.x===r&amp;&amp;a.y===n||(fi[a.i]=new ki(a),_i(a),r=a.x,n=a.y),a=t.pop();else{if(!i)break;bi(i.arc)}e&amp;&amp;(function(t){for(var e,r=ui,n=rn(t[0][0],t[0][1],t[1][0],t[1][1]),i=r.length;i--;)(!Ci(e=r[i],t)||!n(e)||y(e.a.x-e.b.x)&lt;kt&amp;&amp;y(e.a.y-e.b.y)&lt;kt)&amp;&amp;(e.a=e.b=null,r.splice(i,1))}(e),function(t){for(var e,r,n,i,a,o,s,l,c,u,f=t[0][0],h=t[1][0],p=t[0][1],d=t[1][1],g=fi,m=g.length;m--;)if((a=g[m])&amp;&amp;a.prepare())for(l=(s=a.edges).length,o=0;o&lt;l;)n=(u=s[o].end()).x,i=u.y,e=(c=s[++o%l].start()).x,r=c.y,(y(n-e)&gt;kt||y(i-r)&gt;kt)&amp;&amp;(s.splice(o,0,new Oi(Pi(a.site,u,y(n-f)&lt;kt&amp;&amp;d-i&gt;kt?{x:f,y:y(e-f)&lt;kt?r:d}:y(i-d)&lt;kt&amp;&amp;h-n&gt;kt?{x:y(r-d)&lt;kt?e:h,y:d}:y(n-h)&lt;kt&amp;&amp;i-p&gt;kt?{x:h,y:y(e-h)&lt;kt?r:p}:y(i-p)&lt;kt&amp;&amp;n-f&gt;kt?{x:y(r-p)&lt;kt?e:f,y:p}:null),a.site,null)),++l)}(e));var o={cells:fi,edges:ui};return hi=di=ui=fi=null,o}function Ui(t,e){return e.y-t.y||e.x-t.x}ki.prototype.prepare=function(){for(var t,e=this.edges,r=e.length;r--;)(t=e[r].edge).b&amp;&amp;t.a||e.splice(r,1);return e.sort(Mi),e.length},Oi.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Di.prototype={insert:function(t,e){var r,n,i;if(t){if(e.P=t,e.N=t.N,t.N&amp;&amp;(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;r=t}else this._?(t=Ni(this._),e.P=null,e.N=t,t.P=t.L=e,r=t):(e.P=e.N=null,this._=e,r=null);for(e.L=e.R=null,e.U=r,e.C=!0,t=e;r&amp;&amp;r.C;)r===(n=r.U).L?(i=n.R)&amp;&amp;i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.R&amp;&amp;(Fi(this,r),r=(t=r).U),r.C=!1,n.C=!0,Bi(this,n)):(i=n.L)&amp;&amp;i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.L&amp;&amp;(Bi(this,r),r=(t=r).U),r.C=!1,n.C=!0,Fi(this,n)),r=t.U;this._.C=!1},remove:function(t){t.N&amp;&amp;(t.N.P=t.P),t.P&amp;&amp;(t.P.N=t.N),t.N=t.P=null;var e,r,n,i=t.U,a=t.L,o=t.R;if(r=a?o?Ni(o):a:o,i?i.L===t?i.L=r:i.R=r:this._=r,a&amp;&amp;o?(n=r.C,r.C=t.C,r.L=a,a.U=r,r!==o?(i=r.U,r.U=t.U,t=r.R,i.L=t,r.R=o,o.U=r):(r.U=i,i=r,t=r.R)):(n=t.C,t=r),t&amp;&amp;(t.U=i),!n)if(t&amp;&amp;t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&amp;&amp;(e.C=!1,i.C=!0,Fi(this,i),e=i.R),e.L&amp;&amp;e.L.C||e.R&amp;&amp;e.R.C){e.R&amp;&amp;e.R.C||(e.L.C=!1,e.C=!0,Bi(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,Fi(this,i),t=this._;break}}else if((e=i.L).C&amp;&amp;(e.C=!1,i.C=!0,Bi(this,i),e=i.L),e.L&amp;&amp;e.L.C||e.R&amp;&amp;e.R.C){e.L&amp;&amp;e.L.C||(e.R.C=!1,e.C=!0,Fi(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,Bi(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&amp;&amp;(t.C=!1)}}},t.geom.voronoi=function(t){var e=ri,r=ni,n=e,i=r,a=Vi;if(t)return o(t);function o(t){var e=new Array(t.length),r=a[0][0],n=a[0][1],i=a[1][0],o=a[1][1];return ji(s(t),a).cells.forEach((function(a,s){var l=a.edges,c=a.site;(e[s]=l.length?l.map((function(t){var e=t.start();return[e.x,e.y]})):c.x&gt;=r&amp;&amp;c.x&lt;=i&amp;&amp;c.y&gt;=n&amp;&amp;c.y&lt;=o?[[r,o],[i,o],[i,n],[r,n]]:[]).point=t[s]})),e}function s(t){return t.map((function(t,e){return{x:Math.round(n(t,e)/kt)*kt,y:Math.round(i(t,e)/kt)*kt,i:e}}))}return o.links=function(t){return ji(s(t)).edges.filter((function(t){return t.l&amp;&amp;t.r})).map((function(e){return{source:t[e.l.i],target:t[e.r.i]}}))},o.triangles=function(t){var e=[];return ji(s(t)).cells.forEach((function(r,n){for(var i,a,o,s,l=r.site,c=r.edges.sort(Mi),u=-1,f=c.length,h=c[f-1].edge,p=h.l===l?h.r:h.l;++u&lt;f;)h,i=p,p=(h=c[u].edge).l===l?h.r:h.l,n&lt;i.i&amp;&amp;n&lt;p.i&amp;&amp;(o=i,s=p,((a=l).x-s.x)*(o.y-a.y)-(a.x-o.x)*(s.y-a.y)&lt;0)&amp;&amp;e.push([t[n],t[i.i],t[p.i]])})),e},o.x=function(t){return arguments.length?(n=de(e=t),o):e},o.y=function(t){return arguments.length?(i=de(r=t),o):r},o.clipExtent=function(t){return arguments.length?(a=null==t?Vi:t,o):a===Vi?null:a},o.size=function(t){return arguments.length?o.clipExtent(t&amp;&amp;[[0,0],t]):a===Vi?null:a&amp;&amp;a[1]},o};var Vi=[[-1e6,-1e6],[1e6,1e6]];function qi(t){return t.x}function Hi(t){return t.y}function Gi(t,e,r,n,i,a){if(!t(e,r,n,i,a)){var o=.5*(r+i),s=.5*(n+a),l=e.nodes;l[0]&amp;&amp;Gi(t,l[0],r,n,o,s),l[1]&amp;&amp;Gi(t,l[1],o,n,i,s),l[2]&amp;&amp;Gi(t,l[2],r,s,o,a),l[3]&amp;&amp;Gi(t,l[3],o,s,i,a)}}function Yi(t,e,r,n,i,a,o){var s,l=1/0;return function t(c,u,f,h,p){if(!(u&gt;a||f&gt;o||h&lt;n||p&lt;i)){if(d=c.point){var d,g=e-c.x,m=r-c.y,v=g*g+m*m;if(v&lt;l){var y=Math.sqrt(l=v);n=e-y,i=r-y,a=e+y,o=r+y,s=d}}for(var x=c.nodes,b=.5*(u+h),_=.5*(f+p),w=(r&gt;=_)&lt;&lt;1|e&gt;=b,T=w+4;w&lt;T;++w)if(c=x[3&amp;w])switch(3&amp;w){case 0:t(c,u,f,b,_);break;case 1:t(c,b,f,h,_);break;case 2:t(c,u,_,b,p);break;case 3:t(c,b,_,h,p)}}}(t,n,i,a,o),s}function Wi(e,r){e=t.rgb(e),r=t.rgb(r);var n=e.r,i=e.g,a=e.b,o=r.r-n,s=r.g-i,l=r.b-a;return function(t){return&quot;#&quot;+se(Math.round(n+o*t))+se(Math.round(i+s*t))+se(Math.round(a+l*t))}}function Xi(t,e){var r,n={},i={};for(r in t)r in e?n[r]=$i(t[r],e[r]):i[r]=t[r];for(r in e)r in t||(i[r]=e[r]);return function(t){for(r in n)i[r]=n[r](t);return i}}function Zi(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Ji(t,e){var r,n,i,a=Ki.lastIndex=Qi.lastIndex=0,o=-1,s=[],l=[];for(t+=&quot;&quot;,e+=&quot;&quot;;(r=Ki.exec(t))&amp;&amp;(n=Qi.exec(e));)(i=n.index)&gt;a&amp;&amp;(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:Zi(r,n)})),a=Qi.lastIndex;return a&lt;e.length&amp;&amp;(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length&lt;2?l[0]?(e=l[0].x,function(t){return e(t)+&quot;&quot;}):function(){return e}:(e=l.length,function(t){for(var r,n=0;n&lt;e;++n)s[(r=l[n]).i]=r.x(t);return s.join(&quot;&quot;)})}t.geom.delaunay=function(e){return t.geom.voronoi().triangles(e)},t.geom.quadtree=function(t,e,r,n,i){var a,o=ri,s=ni;if(a=arguments.length)return o=qi,s=Hi,3===a&amp;&amp;(i=r,n=e,r=e=0),l(t);function l(t){var l,c,u,f,h,p,d,g,m,v=de(o),x=de(s);if(null!=e)p=e,d=r,g=n,m=i;else if(g=m=-(p=d=1/0),c=[],u=[],h=t.length,a)for(f=0;f&lt;h;++f)(l=t[f]).x&lt;p&amp;&amp;(p=l.x),l.y&lt;d&amp;&amp;(d=l.y),l.x&gt;g&amp;&amp;(g=l.x),l.y&gt;m&amp;&amp;(m=l.y),c.push(l.x),u.push(l.y);else for(f=0;f&lt;h;++f){var b=+v(l=t[f],f),_=+x(l,f);b&lt;p&amp;&amp;(p=b),_&lt;d&amp;&amp;(d=_),b&gt;g&amp;&amp;(g=b),_&gt;m&amp;&amp;(m=_),c.push(b),u.push(_)}var w=g-p,T=m-d;function k(t,e,r,n,i,a,o,s){if(!isNaN(r)&amp;&amp;!isNaN(n))if(t.leaf){var l=t.x,c=t.y;if(null!=l)if(y(l-r)+y(c-n)&lt;.01)M(t,e,r,n,i,a,o,s);else{var u=t.point;t.x=t.y=t.point=null,M(t,u,l,c,i,a,o,s),M(t,e,r,n,i,a,o,s)}else t.x=r,t.y=n,t.point=e}else M(t,e,r,n,i,a,o,s)}function M(t,e,r,n,i,a,o,s){var l=.5*(i+o),c=.5*(a+s),u=r&gt;=l,f=n&gt;=c,h=f&lt;&lt;1|u;t.leaf=!1,u?i=l:o=l,f?a=c:s=c,k(t=t.nodes[h]||(t.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null}),e,r,n,i,a,o,s)}w&gt;T?m=d+w:g=p+T;var A={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){k(A,t,+v(t,++f),+x(t,f),p,d,g,m)},visit:function(t){Gi(t,A,p,d,g,m)},find:function(t){return Yi(A,t[0],t[1],p,d,g,m)}};if(f=-1,null==e){for(;++f&lt;h;)k(A,t[f],c[f],u[f],p,d,g,m);--f}else t.forEach(A.add);return c=u=t=l=null,A}return l.x=function(t){return arguments.length?(o=t,l):o},l.y=function(t){return arguments.length?(s=t,l):s},l.extent=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=+t[0][0],r=+t[0][1],n=+t[1][0],i=+t[1][1]),l):null==e?null:[[e,r],[n,i]]},l.size=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=r=0,n=+t[0],i=+t[1]),l):null==e?null:[n-e,i-r]},l},t.interpolateRgb=Wi,t.interpolateObject=Xi,t.interpolateNumber=Zi,t.interpolateString=Ji;var Ki=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qi=new RegExp(Ki.source,&quot;g&quot;);function $i(e,r){for(var n,i=t.interpolators.length;--i&gt;=0&amp;&amp;!(n=t.interpolators[i](e,r)););return n}function ta(t,e){var r,n=[],i=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(r=0;r&lt;s;++r)n.push($i(t[r],e[r]));for(;r&lt;a;++r)i[r]=t[r];for(;r&lt;o;++r)i[r]=e[r];return function(t){for(r=0;r&lt;s;++r)i[r]=n[r](t);return i}}t.interpolate=$i,t.interpolators=[function(t,e){var r=typeof e;return(&quot;string&quot;===r?pe.has(e.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(e)?Wi:Ji:e instanceof Vt?Wi:Array.isArray(e)?ta:&quot;object&quot;===r&amp;&amp;isNaN(e)?Xi:Zi)(t,e)}],t.interpolateArray=ta;var ea=function(){return L},ra=t.map({linear:ea,poly:function(t){return function(e){return Math.pow(e,t)}},quad:function(){return sa},cubic:function(){return la},sin:function(){return ua},exp:function(){return fa},circle:function(){return ha},elastic:function(t,e){var r;arguments.length&lt;2&amp;&amp;(e=.45);arguments.length?r=e/St*Math.asin(1/t):(t=1,r=e/4);return function(n){return 1+t*Math.pow(2,-10*n)*Math.sin((n-r)*St/e)}},back:function(t){t||(t=1.70158);return function(e){return e*e*((t+1)*e-t)}},bounce:function(){return pa}}),na=t.map({in:L,out:aa,&quot;in-out&quot;:oa,&quot;out-in&quot;:function(t){return oa(aa(t))}});function ia(t){return function(e){return e&lt;=0?0:e&gt;=1?1:t(e)}}function aa(t){return function(e){return 1-t(1-e)}}function oa(t){return function(e){return.5*(e&lt;.5?t(2*e):2-t(2-2*e))}}function sa(t){return t*t}function la(t){return t*t*t}function ca(t){if(t&lt;=0)return 0;if(t&gt;=1)return 1;var e=t*t,r=e*t;return 4*(t&lt;.5?r:3*(t-e)+r-.75)}function ua(t){return 1-Math.cos(t*Ct)}function fa(t){return Math.pow(2,10*(t-1))}function ha(t){return 1-Math.sqrt(1-t*t)}function pa(t){return t&lt;1/2.75?7.5625*t*t:t&lt;2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t&lt;2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function da(t,e){return e-=t,function(r){return Math.round(t+e*r)}}function ga(t){var e,r,n,i=[t.a,t.b],a=[t.c,t.d],o=va(i),s=ma(i,a),l=va(((e=a)[0]+=(n=-s)*(r=i)[0],e[1]+=n*r[1],e))||0;i[0]*a[1]&lt;a[0]*i[1]&amp;&amp;(i[0]*=-1,i[1]*=-1,o*=-1,s*=-1),this.rotate=(o?Math.atan2(i[1],i[0]):Math.atan2(-a[0],a[1]))*It,this.translate=[t.e,t.f],this.scale=[o,l],this.skew=l?Math.atan2(s,l)*It:0}function ma(t,e){return t[0]*e[0]+t[1]*e[1]}function va(t){var e=Math.sqrt(ma(t,t));return e&amp;&amp;(t[0]/=e,t[1]/=e),e}t.ease=function(t){var e=t.indexOf(&quot;-&quot;),n=e&gt;=0?t.slice(0,e):t,i=e&gt;=0?t.slice(e+1):&quot;in&quot;;return n=ra.get(n)||ea,ia((i=na.get(i)||L)(n.apply(null,r.call(arguments,1))))},t.interpolateHcl=function(e,r){e=t.hcl(e),r=t.hcl(r);var n=e.h,i=e.c,a=e.l,o=r.h-n,s=r.c-i,l=r.l-a;isNaN(s)&amp;&amp;(s=0,i=isNaN(i)?r.c:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o&gt;180?o-=360:o&lt;-180&amp;&amp;(o+=360);return function(t){return Xt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateHsl=function(e,r){e=t.hsl(e),r=t.hsl(r);var n=e.h,i=e.s,a=e.l,o=r.h-n,s=r.s-i,l=r.l-a;isNaN(s)&amp;&amp;(s=0,i=isNaN(i)?r.s:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o&gt;180?o-=360:o&lt;-180&amp;&amp;(o+=360);return function(t){return Gt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateLab=function(e,r){e=t.lab(e),r=t.lab(r);var n=e.l,i=e.a,a=e.b,o=r.l-n,s=r.a-i,l=r.b-a;return function(t){return Qt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateRound=da,t.transform=function(e){var r=i.createElementNS(t.ns.prefix.svg,&quot;g&quot;);return(t.transform=function(t){if(null!=t){r.setAttribute(&quot;transform&quot;,t);var e=r.transform.baseVal.consolidate()}return new ga(e?e.matrix:ya)})(e)},ga.prototype.toString=function(){return&quot;translate(&quot;+this.translate+&quot;)rotate(&quot;+this.rotate+&quot;)skewX(&quot;+this.skew+&quot;)scale(&quot;+this.scale+&quot;)&quot;};var ya={a:1,b:0,c:0,d:1,e:0,f:0};function xa(t){return t.length?t.pop()+&quot;,&quot;:&quot;&quot;}function ba(e,r){var n=[],i=[];return e=t.transform(e),r=t.transform(r),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(&quot;translate(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);n.push({i:i-4,x:Zi(t[0],e[0])},{i:i-2,x:Zi(t[1],e[1])})}else(e[0]||e[1])&amp;&amp;r.push(&quot;translate(&quot;+e+&quot;)&quot;)}(e.translate,r.translate,n,i),function(t,e,r,n){t!==e?(t-e&gt;180?e+=360:e-t&gt;180&amp;&amp;(t+=360),n.push({i:r.push(xa(r)+&quot;rotate(&quot;,null,&quot;)&quot;)-2,x:Zi(t,e)})):e&amp;&amp;r.push(xa(r)+&quot;rotate(&quot;+e+&quot;)&quot;)}(e.rotate,r.rotate,n,i),function(t,e,r,n){t!==e?n.push({i:r.push(xa(r)+&quot;skewX(&quot;,null,&quot;)&quot;)-2,x:Zi(t,e)}):e&amp;&amp;r.push(xa(r)+&quot;skewX(&quot;+e+&quot;)&quot;)}(e.skew,r.skew,n,i),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(xa(r)+&quot;scale(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);n.push({i:i-4,x:Zi(t[0],e[0])},{i:i-2,x:Zi(t[1],e[1])})}else 1===e[0]&amp;&amp;1===e[1]||r.push(xa(r)+&quot;scale(&quot;+e+&quot;)&quot;)}(e.scale,r.scale,n,i),e=r=null,function(t){for(var e,r=-1,a=i.length;++r&lt;a;)n[(e=i[r]).i]=e.x(t);return n.join(&quot;&quot;)}}function _a(t,e){return e=(e-=t=+t)||1/e,function(r){return(r-t)/e}}function wa(t,e){return e=(e-=t=+t)||1/e,function(r){return Math.max(0,Math.min(1,(r-t)/e))}}function Ta(t){for(var e=t.source,r=t.target,n=function(t,e){if(t===e)return t;var r=ka(t),n=ka(e),i=r.pop(),a=n.pop(),o=null;for(;i===a;)o=i,i=r.pop(),a=n.pop();return o}(e,r),i=[e];e!==n;)e=e.parent,i.push(e);for(var a=i.length;r!==n;)i.splice(a,0,r),r=r.parent;return i}function ka(t){for(var e=[],r=t.parent;null!=r;)e.push(t),t=r,r=r.parent;return e.push(t),e}function Ma(t){t.fixed|=2}function Aa(t){t.fixed&amp;=-7}function Sa(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Ea(t){t.fixed&amp;=-5}t.interpolateTransform=ba,t.layout={},t.layout.bundle=function(){return function(t){for(var e=[],r=-1,n=t.length;++r&lt;n;)e.push(Ta(t[r]));return e}},t.layout.chord=function(){var e,r,n,i,a,o,s,l={},c=0;function u(){var l,u,h,p,d,g={},m=[],v=t.range(i),y=[];for(e=[],r=[],l=0,p=-1;++p&lt;i;){for(u=0,d=-1;++d&lt;i;)u+=n[p][d];m.push(u),y.push(t.range(i)),l+=u}for(a&amp;&amp;v.sort((function(t,e){return a(m[t],m[e])})),o&amp;&amp;y.forEach((function(t,e){t.sort((function(t,r){return o(n[e][t],n[e][r])}))})),l=(St-c*i)/l,u=0,p=-1;++p&lt;i;){for(h=u,d=-1;++d&lt;i;){var x=v[p],b=y[x][d],_=n[x][b],w=u,T=u+=_*l;g[x+&quot;-&quot;+b]={index:x,subindex:b,startAngle:w,endAngle:T,value:_}}r[x]={index:x,startAngle:h,endAngle:u,value:m[x]},u+=c}for(p=-1;++p&lt;i;)for(d=p-1;++d&lt;i;){var k=g[p+&quot;-&quot;+d],M=g[d+&quot;-&quot;+p];(k.value||M.value)&amp;&amp;e.push(k.value&lt;M.value?{source:M,target:k}:{source:k,target:M})}s&amp;&amp;f()}function f(){e.sort((function(t,e){return s((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)}))}return l.matrix=function(t){return arguments.length?(i=(n=t)&amp;&amp;n.length,e=r=null,l):n},l.padding=function(t){return arguments.length?(c=t,e=r=null,l):c},l.sortGroups=function(t){return arguments.length?(a=t,e=r=null,l):a},l.sortSubgroups=function(t){return arguments.length?(o=t,e=null,l):o},l.sortChords=function(t){return arguments.length?(s=t,e&amp;&amp;f(),l):s},l.chords=function(){return e||u(),e},l.groups=function(){return r||u(),r},l},t.layout.force=function(){var e,r,n,i,a,o,s={},l=t.dispatch(&quot;start&quot;,&quot;tick&quot;,&quot;end&quot;),c=[1,1],u=.9,f=Ca,h=La,p=-30,d=Ia,g=.1,m=.64,v=[],y=[];function x(t){return function(e,r,n,i){if(e.point!==t){var a=e.cx-t.x,o=e.cy-t.y,s=i-r,l=a*a+o*o;if(s*s/m&lt;l){if(l&lt;d){var c=e.charge/l;t.px-=a*c,t.py-=o*c}return!0}if(e.point&amp;&amp;l&amp;&amp;l&lt;d){c=e.pointCharge/l;t.px-=a*c,t.py-=o*c}}return!e.charge}}function b(e){e.px=t.event.x,e.py=t.event.y,s.resume()}return s.tick=function(){if((n*=.99)&lt;.005)return e=null,l.end({type:&quot;end&quot;,alpha:n=0}),!0;var r,s,f,h,d,m,b,_,w,T=v.length,k=y.length;for(s=0;s&lt;k;++s)h=(f=y[s]).source,(m=(_=(d=f.target).x-h.x)*_+(w=d.y-h.y)*w)&amp;&amp;(_*=m=n*a[s]*((m=Math.sqrt(m))-i[s])/m,w*=m,d.x-=_*(b=h.weight+d.weight?h.weight/(h.weight+d.weight):.5),d.y-=w*b,h.x+=_*(b=1-b),h.y+=w*b);if((b=n*g)&amp;&amp;(_=c[0]/2,w=c[1]/2,s=-1,b))for(;++s&lt;T;)(f=v[s]).x+=(_-f.x)*b,f.y+=(w-f.y)*b;if(p)for(!function t(e,r,n){var i=0,a=0;if(e.charge=0,!e.leaf)for(var o,s=e.nodes,l=s.length,c=-1;++c&lt;l;)null!=(o=s[c])&amp;&amp;(t(o,r,n),e.charge+=o.charge,i+=o.charge*o.cx,a+=o.charge*o.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var u=r*n[e.point.index];e.charge+=e.pointCharge=u,i+=u*e.point.x,a+=u*e.point.y}e.cx=i/e.charge,e.cy=a/e.charge}(r=t.geom.quadtree(v),n,o),s=-1;++s&lt;T;)(f=v[s]).fixed||r.visit(x(f));for(s=-1;++s&lt;T;)(f=v[s]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*u,f.y-=(f.py-(f.py=f.y))*u);l.tick({type:&quot;tick&quot;,alpha:n})},s.nodes=function(t){return arguments.length?(v=t,s):v},s.links=function(t){return arguments.length?(y=t,s):y},s.size=function(t){return arguments.length?(c=t,s):c},s.linkDistance=function(t){return arguments.length?(f=&quot;function&quot;==typeof t?t:+t,s):f},s.distance=s.linkDistance,s.linkStrength=function(t){return arguments.length?(h=&quot;function&quot;==typeof t?t:+t,s):h},s.friction=function(t){return arguments.length?(u=+t,s):u},s.charge=function(t){return arguments.length?(p=&quot;function&quot;==typeof t?t:+t,s):p},s.chargeDistance=function(t){return arguments.length?(d=t*t,s):Math.sqrt(d)},s.gravity=function(t){return arguments.length?(g=+t,s):g},s.theta=function(t){return arguments.length?(m=t*t,s):Math.sqrt(m)},s.alpha=function(t){return arguments.length?(t=+t,n?t&gt;0?n=t:(e.c=null,e.t=NaN,e=null,l.end({type:&quot;end&quot;,alpha:n=0})):t&gt;0&amp;&amp;(l.start({type:&quot;start&quot;,alpha:n=t}),e=we(s.tick)),s):n},s.start=function(){var t,e,r,n=v.length,l=y.length,u=c[0],d=c[1];for(t=0;t&lt;n;++t)(r=v[t]).index=t,r.weight=0;for(t=0;t&lt;l;++t)&quot;number&quot;==typeof(r=y[t]).source&amp;&amp;(r.source=v[r.source]),&quot;number&quot;==typeof r.target&amp;&amp;(r.target=v[r.target]),++r.source.weight,++r.target.weight;for(t=0;t&lt;n;++t)r=v[t],isNaN(r.x)&amp;&amp;(r.x=g(&quot;x&quot;,u)),isNaN(r.y)&amp;&amp;(r.y=g(&quot;y&quot;,d)),isNaN(r.px)&amp;&amp;(r.px=r.x),isNaN(r.py)&amp;&amp;(r.py=r.y);if(i=[],&quot;function&quot;==typeof f)for(t=0;t&lt;l;++t)i[t]=+f.call(this,y[t],t);else for(t=0;t&lt;l;++t)i[t]=f;if(a=[],&quot;function&quot;==typeof h)for(t=0;t&lt;l;++t)a[t]=+h.call(this,y[t],t);else for(t=0;t&lt;l;++t)a[t]=h;if(o=[],&quot;function&quot;==typeof p)for(t=0;t&lt;n;++t)o[t]=+p.call(this,v[t],t);else for(t=0;t&lt;n;++t)o[t]=p;function g(r,i){if(!e){for(e=new Array(n),c=0;c&lt;n;++c)e[c]=[];for(c=0;c&lt;l;++c){var a=y[c];e[a.source.index].push(a.target),e[a.target.index].push(a.source)}}for(var o,s=e[t],c=-1,u=s.length;++c&lt;u;)if(!isNaN(o=s[c][r]))return o;return Math.random()*i}return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){if(r||(r=t.behavior.drag().origin(L).on(&quot;dragstart.force&quot;,Ma).on(&quot;drag.force&quot;,b).on(&quot;dragend.force&quot;,Aa)),!arguments.length)return r;this.on(&quot;mouseover.force&quot;,Sa).on(&quot;mouseout.force&quot;,Ea).call(r)},t.rebind(s,l,&quot;on&quot;)};var Ca=20,La=1,Ia=1/0;function Pa(e,r){return t.rebind(e,r,&quot;sort&quot;,&quot;children&quot;,&quot;value&quot;),e.nodes=e,e.links=Ba,e}function za(t,e){for(var r=[t];null!=(t=r.pop());)if(e(t),(i=t.children)&amp;&amp;(n=i.length))for(var n,i;--n&gt;=0;)r.push(i[n])}function Oa(t,e){for(var r=[t],n=[];null!=(t=r.pop());)if(n.push(t),(a=t.children)&amp;&amp;(i=a.length))for(var i,a,o=-1;++o&lt;i;)r.push(a[o]);for(;null!=(t=n.pop());)e(t)}function Da(t){return t.children}function Ra(t){return t.value}function Fa(t,e){return e.value-t.value}function Ba(e){return t.merge(e.map((function(t){return(t.children||[]).map((function(e){return{source:t,target:e}}))})))}t.layout.hierarchy=function(){var t=Fa,e=Da,r=Ra;function n(i){var a,o=[i],s=[];for(i.depth=0;null!=(a=o.pop());)if(s.push(a),(c=e.call(n,a,a.depth))&amp;&amp;(l=c.length)){for(var l,c,u;--l&gt;=0;)o.push(u=c[l]),u.parent=a,u.depth=a.depth+1;r&amp;&amp;(a.value=0),a.children=c}else r&amp;&amp;(a.value=+r.call(n,a,a.depth)||0),delete a.children;return Oa(i,(function(e){var n,i;t&amp;&amp;(n=e.children)&amp;&amp;n.sort(t),r&amp;&amp;(i=e.parent)&amp;&amp;(i.value+=e.value)})),s}return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&amp;&amp;(za(t,(function(t){t.children&amp;&amp;(t.value=0)})),Oa(t,(function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&amp;&amp;(e.value+=t.value)}))),t},n},t.layout.partition=function(){var e=t.layout.hierarchy(),r=[1,1];function n(t,n){var i=e.call(this,t,n);return function t(e,r,n,i){var a=e.children;if(e.x=r,e.y=e.depth*i,e.dx=n,e.dy=i,a&amp;&amp;(o=a.length)){var o,s,l,c=-1;for(n=e.value?n/e.value:0;++c&lt;o;)t(s=a[c],r,l=s.value*n,i),r+=l}}(i[0],0,r[0],r[1]/function t(e){var r=e.children,n=0;if(r&amp;&amp;(i=r.length))for(var i,a=-1;++a&lt;i;)n=Math.max(n,t(r[a]));return 1+n}(i[0])),i}return n.size=function(t){return arguments.length?(r=t,n):r},Pa(n,e)},t.layout.pie=function(){var e=Number,r=Na,n=0,i=St,a=0;function o(s){var l,c=s.length,u=s.map((function(t,r){return+e.call(o,t,r)})),f=+(&quot;function&quot;==typeof n?n.apply(this,arguments):n),h=(&quot;function&quot;==typeof i?i.apply(this,arguments):i)-f,p=Math.min(Math.abs(h)/c,+(&quot;function&quot;==typeof a?a.apply(this,arguments):a)),d=p*(h&lt;0?-1:1),g=t.sum(u),m=g?(h-c*d)/g:0,v=t.range(c),y=[];return null!=r&amp;&amp;v.sort(r===Na?function(t,e){return u[e]-u[t]}:function(t,e){return r(s[t],s[e])}),v.forEach((function(t){y[t]={data:s[t],value:l=u[t],startAngle:f,endAngle:f+=l*m+d,padAngle:p}})),y}return o.value=function(t){return arguments.length?(e=t,o):e},o.sort=function(t){return arguments.length?(r=t,o):r},o.startAngle=function(t){return arguments.length?(n=t,o):n},o.endAngle=function(t){return arguments.length?(i=t,o):i},o.padAngle=function(t){return arguments.length?(a=t,o):a},o};var Na={};function ja(t){return t.x}function Ua(t){return t.y}function Va(t,e,r){t.y0=e,t.y=r}t.layout.stack=function(){var e=L,r=Ga,n=Ya,i=Va,a=ja,o=Ua;function s(l,c){if(!(p=l.length))return l;var u=l.map((function(t,r){return e.call(s,t,r)})),f=u.map((function(t){return t.map((function(t,e){return[a.call(s,t,e),o.call(s,t,e)]}))})),h=r.call(s,f,c);u=t.permute(u,h),f=t.permute(f,h);var p,d,g,m,v=n.call(s,f,c),y=u[0].length;for(g=0;g&lt;y;++g)for(i.call(s,u[0][g],m=v[g],f[0][g][1]),d=1;d&lt;p;++d)i.call(s,u[d][g],m+=f[d-1][g][1],f[d][g][1]);return l}return s.values=function(t){return arguments.length?(e=t,s):e},s.order=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:qa.get(t)||Ga,s):r},s.offset=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:Ha.get(t)||Ya,s):n},s.x=function(t){return arguments.length?(a=t,s):a},s.y=function(t){return arguments.length?(o=t,s):o},s.out=function(t){return arguments.length?(i=t,s):i},s};var qa=t.map({&quot;inside-out&quot;:function(e){var r,n,i=e.length,a=e.map(Wa),o=e.map(Xa),s=t.range(i).sort((function(t,e){return a[t]-a[e]})),l=0,c=0,u=[],f=[];for(r=0;r&lt;i;++r)n=s[r],l&lt;c?(l+=o[n],u.push(n)):(c+=o[n],f.push(n));return f.reverse().concat(u)},reverse:function(e){return t.range(e.length).reverse()},default:Ga}),Ha=t.map({silhouette:function(t){var e,r,n,i=t.length,a=t[0].length,o=[],s=0,l=[];for(r=0;r&lt;a;++r){for(e=0,n=0;e&lt;i;e++)n+=t[e][r][1];n&gt;s&amp;&amp;(s=n),o.push(n)}for(r=0;r&lt;a;++r)l[r]=(s-o[r])/2;return l},wiggle:function(t){var e,r,n,i,a,o,s,l,c,u=t.length,f=t[0],h=f.length,p=[];for(p[0]=l=c=0,r=1;r&lt;h;++r){for(e=0,i=0;e&lt;u;++e)i+=t[e][r][1];for(e=0,a=0,s=f[r][0]-f[r-1][0];e&lt;u;++e){for(n=0,o=(t[e][r][1]-t[e][r-1][1])/(2*s);n&lt;e;++n)o+=(t[n][r][1]-t[n][r-1][1])/s;a+=o*t[e][r][1]}p[r]=l-=i?a/i*s:0,l&lt;c&amp;&amp;(c=l)}for(r=0;r&lt;h;++r)p[r]-=c;return p},expand:function(t){var e,r,n,i=t.length,a=t[0].length,o=1/i,s=[];for(r=0;r&lt;a;++r){for(e=0,n=0;e&lt;i;e++)n+=t[e][r][1];if(n)for(e=0;e&lt;i;e++)t[e][r][1]/=n;else for(e=0;e&lt;i;e++)t[e][r][1]=o}for(r=0;r&lt;a;++r)s[r]=0;return s},zero:Ya});function Ga(e){return t.range(e.length)}function Ya(t){for(var e=-1,r=t[0].length,n=[];++e&lt;r;)n[e]=0;return n}function Wa(t){for(var e,r=1,n=0,i=t[0][1],a=t.length;r&lt;a;++r)(e=t[r][1])&gt;i&amp;&amp;(n=r,i=e);return n}function Xa(t){return t.reduce(Za,0)}function Za(t,e){return t+e[1]}function Ja(t,e){return Ka(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Ka(t,e){for(var r=-1,n=+t[0],i=(t[1]-n)/e,a=[];++r&lt;=e;)a[r]=i*r+n;return a}function Qa(e){return[t.min(e),t.max(e)]}function $a(t,e){return t.value-e.value}function to(t,e){var r=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=r,r._pack_prev=e}function eo(t,e){t._pack_next=e,e._pack_prev=t}function ro(t,e){var r=e.x-t.x,n=e.y-t.y,i=t.r+e.r;return.999*i*i&gt;r*r+n*n}function no(t){if((e=t.children)&amp;&amp;(l=e.length)){var e,r,n,i,a,o,s,l,c=1/0,u=-1/0,f=1/0,h=-1/0;if(e.forEach(io),(r=e[0]).x=-r.r,r.y=0,x(r),l&gt;1&amp;&amp;((n=e[1]).x=n.r,n.y=0,x(n),l&gt;2))for(oo(r,n,i=e[2]),x(i),to(r,i),r._pack_prev=i,to(i,n),n=r._pack_next,a=3;a&lt;l;a++){oo(r,n,i=e[a]);var p=0,d=1,g=1;for(o=n._pack_next;o!==n;o=o._pack_next,d++)if(ro(o,i)){p=1;break}if(1==p)for(s=r._pack_prev;s!==o._pack_prev&amp;&amp;!ro(s,i);s=s._pack_prev,g++);p?(d&lt;g||d==g&amp;&amp;n.r&lt;r.r?eo(r,n=o):eo(r=s,n),a--):(to(r,i),n=i,x(i))}var m=(c+u)/2,v=(f+h)/2,y=0;for(a=0;a&lt;l;a++)(i=e[a]).x-=m,i.y-=v,y=Math.max(y,i.r+Math.sqrt(i.x*i.x+i.y*i.y));t.r=y,e.forEach(ao)}function x(t){c=Math.min(t.x-t.r,c),u=Math.max(t.x+t.r,u),f=Math.min(t.y-t.r,f),h=Math.max(t.y+t.r,h)}}function io(t){t._pack_next=t._pack_prev=t}function ao(t){delete t._pack_next,delete t._pack_prev}function oo(t,e,r){var n=t.r+r.r,i=e.x-t.x,a=e.y-t.y;if(n&amp;&amp;(i||a)){var o=e.r+r.r,s=i*i+a*a,l=.5+((n*=n)-(o*=o))/(2*s),c=Math.sqrt(Math.max(0,2*o*(n+s)-(n-=s)*n-o*o))/(2*s);r.x=t.x+l*i+c*a,r.y=t.y+l*a-c*i}else r.x=t.x+n,r.y=t.y}function so(t,e){return t.parent==e.parent?1:2}function lo(t){var e=t.children;return e.length?e[0]:t.t}function co(t){var e,r=t.children;return(e=r.length)?r[e-1]:t.t}function uo(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function fo(t,e,r){return t.a.parent===e.parent?t.a:r}function ho(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function po(t,e){var r=t.x+e[3],n=t.y+e[0],i=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return i&lt;0&amp;&amp;(r+=i/2,i=0),a&lt;0&amp;&amp;(n+=a/2,a=0),{x:r,y:n,dx:i,dy:a}}function go(t){var e=t[0],r=t[t.length-1];return e&lt;r?[e,r]:[r,e]}function mo(t){return t.rangeExtent?t.rangeExtent():go(t.range())}function vo(t,e,r,n){var i=r(t[0],t[1]),a=n(e[0],e[1]);return function(t){return a(i(t))}}function yo(t,e){var r,n=0,i=t.length-1,a=t[n],o=t[i];return o&lt;a&amp;&amp;(r=n,n=i,i=r,r=a,a=o,o=r),t[n]=e.floor(a),t[i]=e.ceil(o),t}function xo(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:bo}t.layout.histogram=function(){var e=!0,r=Number,n=Qa,i=Ja;function a(a,o){for(var s,l,c=[],u=a.map(r,this),f=n.call(this,u,o),h=i.call(this,f,u,o),p=(o=-1,u.length),d=h.length-1,g=e?1:1/p;++o&lt;d;)(s=c[o]=[]).dx=h[o+1]-(s.x=h[o]),s.y=0;if(d&gt;0)for(o=-1;++o&lt;p;)(l=u[o])&gt;=f[0]&amp;&amp;l&lt;=f[1]&amp;&amp;((s=c[t.bisect(h,l,1,d)-1]).y+=g,s.push(a[o]));return c}return a.value=function(t){return arguments.length?(r=t,a):r},a.range=function(t){return arguments.length?(n=de(t),a):n},a.bins=function(t){return arguments.length?(i=&quot;number&quot;==typeof t?function(e){return Ka(e,t)}:de(t),a):i},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},t.layout.pack=function(){var e,r=t.layout.hierarchy().sort($a),n=0,i=[1,1];function a(t,a){var o=r.call(this,t,a),s=o[0],l=i[0],c=i[1],u=null==e?Math.sqrt:&quot;function&quot;==typeof e?e:function(){return e};if(s.x=s.y=0,Oa(s,(function(t){t.r=+u(t.value)})),Oa(s,no),n){var f=n*(e?1:Math.max(2*s.r/l,2*s.r/c))/2;Oa(s,(function(t){t.r+=f})),Oa(s,no),Oa(s,(function(t){t.r-=f}))}return function t(e,r,n,i){var a=e.children;if(e.x=r+=i*e.x,e.y=n+=i*e.y,e.r*=i,a)for(var o=-1,s=a.length;++o&lt;s;)t(a[o],r,n,i)}(s,l/2,c/2,e?1:1/Math.max(2*s.r/l,2*s.r/c)),o}return a.size=function(t){return arguments.length?(i=t,a):i},a.radius=function(t){return arguments.length?(e=null==t||&quot;function&quot;==typeof t?t:+t,a):e},a.padding=function(t){return arguments.length?(n=+t,a):n},Pa(a,r)},t.layout.tree=function(){var e=t.layout.hierarchy().sort(null).value(null),r=so,n=[1,1],i=null;function a(t,a){var c=e.call(this,t,a),u=c[0],f=function(t){var e,r={A:null,children:[t]},n=[r];for(;null!=(e=n.pop());)for(var i,a=e.children,o=0,s=a.length;o&lt;s;++o)n.push((a[o]=i={_:a[o],parent:e,children:(i=a[o].children)&amp;&amp;i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return r.children[0]}(u);if(Oa(f,o),f.parent.m=-f.z,za(f,s),i)za(u,l);else{var h=u,p=u,d=u;za(u,(function(t){t.x&lt;h.x&amp;&amp;(h=t),t.x&gt;p.x&amp;&amp;(p=t),t.depth&gt;d.depth&amp;&amp;(d=t)}));var g=r(h,p)/2-h.x,m=n[0]/(p.x+r(p,h)/2+g),v=n[1]/(d.depth||1);za(u,(function(t){t.x=(t.x+g)*m,t.y=t.depth*v}))}return c}function o(t){var e=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(e.length){!function(t){var e,r=0,n=0,i=t.children,a=i.length;for(;--a&gt;=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(t);var a=(e[0].z+e[e.length-1].z)/2;i?(t.z=i.z+r(t._,i._),t.m=t.z-a):t.z=a}else i&amp;&amp;(t.z=i.z+r(t._,i._));t.parent.A=function(t,e,n){if(e){for(var i,a=t,o=t,s=e,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=co(s),a=lo(a),s&amp;&amp;a;)l=lo(l),(o=co(o)).a=t,(i=s.z+f-a.z-c+r(s._,a._))&gt;0&amp;&amp;(uo(fo(s,t,n),t,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&amp;&amp;!co(o)&amp;&amp;(o.t=s,o.m+=f-u),a&amp;&amp;!lo(l)&amp;&amp;(l.t=a,l.m+=c-h,n=t)}return n}(t,i,t.parent.A||n[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function l(t){t.x*=n[0],t.y=t.depth*n[1]}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t)?l:null,a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null==(n=t)?null:l,a):i?n:null},Pa(a,e)},t.layout.cluster=function(){var e=t.layout.hierarchy().sort(null).value(null),r=so,n=[1,1],i=!1;function a(a,o){var s,l=e.call(this,a,o),c=l[0],u=0;Oa(c,(function(e){var n=e.children;n&amp;&amp;n.length?(e.x=function(t){return t.reduce((function(t,e){return t+e.x}),0)/t.length}(n),e.y=function(e){return 1+t.max(e,(function(t){return t.y}))}(n)):(e.x=s?u+=r(e,s):0,e.y=0,s=e)}));var f=function t(e){var r=e.children;return r&amp;&amp;r.length?t(r[0]):e}(c),h=function t(e){var r,n=e.children;return n&amp;&amp;(r=n.length)?t(n[r-1]):e}(c),p=f.x-r(f,h)/2,d=h.x+r(h,f)/2;return Oa(c,i?function(t){t.x=(t.x-c.x)*n[0],t.y=(c.y-t.y)*n[1]}:function(t){t.x=(t.x-p)/(d-p)*n[0],t.y=(1-(c.y?t.y/c.y:1))*n[1]}),l}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t),a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null!=(n=t),a):i?n:null},Pa(a,e)},t.layout.treemap=function(){var e,r=t.layout.hierarchy(),n=Math.round,i=[1,1],a=null,o=ho,s=!1,l=&quot;squarify&quot;,c=.5*(1+Math.sqrt(5));function u(t,e){for(var r,n,i=-1,a=t.length;++i&lt;a;)n=(r=t[i]).value*(e&lt;0?0:e),r.area=isNaN(n)||n&lt;=0?0:n}function f(t){var e=t.children;if(e&amp;&amp;e.length){var r,n,i,a=o(t),s=[],c=e.slice(),h=1/0,g=&quot;slice&quot;===l?a.dx:&quot;dice&quot;===l?a.dy:&quot;slice-dice&quot;===l?1&amp;t.depth?a.dy:a.dx:Math.min(a.dx,a.dy);for(u(c,a.dx*a.dy/t.value),s.area=0;(i=c.length)&gt;0;)s.push(r=c[i-1]),s.area+=r.area,&quot;squarify&quot;!==l||(n=p(s,g))&lt;=h?(c.pop(),h=n):(s.area-=s.pop().area,d(s,g,a,!1),g=Math.min(a.dx,a.dy),s.length=s.area=0,h=1/0);s.length&amp;&amp;(d(s,g,a,!0),s.length=s.area=0),e.forEach(f)}}function h(t){var e=t.children;if(e&amp;&amp;e.length){var r,n=o(t),i=e.slice(),a=[];for(u(i,n.dx*n.dy/t.value),a.area=0;r=i.pop();)a.push(r),a.area+=r.area,null!=r.z&amp;&amp;(d(a,r.z?n.dx:n.dy,n,!i.length),a.length=a.area=0);e.forEach(h)}}function p(t,e){for(var r,n=t.area,i=0,a=1/0,o=-1,s=t.length;++o&lt;s;)(r=t[o].area)&amp;&amp;(r&lt;a&amp;&amp;(a=r),r&gt;i&amp;&amp;(i=r));return e*=e,(n*=n)?Math.max(e*i*c/n,n/(e*a*c)):1/0}function d(t,e,r,i){var a,o=-1,s=t.length,l=r.x,c=r.y,u=e?n(t.area/e):0;if(e==r.dx){for((i||u&gt;r.dy)&amp;&amp;(u=r.dy);++o&lt;s;)(a=t[o]).x=l,a.y=c,a.dy=u,l+=a.dx=Math.min(r.x+r.dx-l,u?n(a.area/u):0);a.z=!0,a.dx+=r.x+r.dx-l,r.y+=u,r.dy-=u}else{for((i||u&gt;r.dx)&amp;&amp;(u=r.dx);++o&lt;s;)(a=t[o]).x=l,a.y=c,a.dx=u,c+=a.dy=Math.min(r.y+r.dy-c,u?n(a.area/u):0);a.z=!1,a.dy+=r.y+r.dy-c,r.x+=u,r.dx-=u}}function g(t){var n=e||r(t),a=n[0];return a.x=a.y=0,a.value?(a.dx=i[0],a.dy=i[1]):a.dx=a.dy=0,e&amp;&amp;r.revalue(a),u([a],a.dx*a.dy/a.value),(e?h:f)(a),s&amp;&amp;(e=n),n}return g.size=function(t){return arguments.length?(i=t,g):i},g.padding=function(t){if(!arguments.length)return a;function e(e){var r=t.call(g,e,e.depth);return null==r?ho(e):po(e,&quot;number&quot;==typeof r?[r,r,r,r]:r)}function r(e){return po(e,t)}var n;return o=null==(a=t)?ho:&quot;function&quot;==(n=typeof t)?e:&quot;number&quot;===n?(t=[t,t,t,t],r):r,g},g.round=function(t){return arguments.length?(n=t?Math.round:Number,g):n!=Number},g.sticky=function(t){return arguments.length?(s=t,e=null,g):s},g.ratio=function(t){return arguments.length?(c=t,g):c},g.mode=function(t){return arguments.length?(l=t+&quot;&quot;,g):l},Pa(g,r)},t.random={normal:function(t,e){var r=arguments.length;return r&lt;2&amp;&amp;(e=1),r&lt;1&amp;&amp;(t=0),function(){var r,n,i;do{i=(r=2*Math.random()-1)*r+(n=2*Math.random()-1)*n}while(!i||i&gt;1);return t+e*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=t.random.normal.apply(t,arguments);return function(){return Math.exp(e())}},bates:function(e){var r=t.random.irwinHall(e);return function(){return r()/e}},irwinHall:function(t){return function(){for(var e=0,r=0;r&lt;t;r++)e+=Math.random();return e}}},t.scale={};var bo={floor:L,ceil:L};function _o(e,r,n,i){var a=[],o=[],s=0,l=Math.min(e.length,r.length)-1;for(e[l]&lt;e[0]&amp;&amp;(e=e.slice().reverse(),r=r.slice().reverse());++s&lt;=l;)a.push(n(e[s-1],e[s])),o.push(i(r[s-1],r[s]));return function(r){var n=t.bisect(e,r,1,l)-1;return o[n](a[n](r))}}function wo(e,r){return t.rebind(e,r,&quot;range&quot;,&quot;rangeRound&quot;,&quot;interpolate&quot;,&quot;clamp&quot;)}function To(t,e){return yo(t,xo(ko(t,e)[2])),yo(t,xo(ko(t,e)[2])),t}function ko(t,e){null==e&amp;&amp;(e=10);var r=go(t),n=r[1]-r[0],i=Math.pow(10,Math.floor(Math.log(n/e)/Math.LN10)),a=e/n*i;return a&lt;=.15?i*=10:a&lt;=.35?i*=5:a&lt;=.75&amp;&amp;(i*=2),r[0]=Math.ceil(r[0]/i)*i,r[1]=Math.floor(r[1]/i)*i+.5*i,r[2]=i,r}function Mo(e,r){return t.range.apply(t,ko(e,r))}function Ao(e,r,n){var i=ko(e,r);if(n){var a=Ce.exec(n);if(a.shift(),&quot;s&quot;===a[8]){var o=t.formatPrefix(Math.max(y(i[0]),y(i[1])));return a[7]||(a[7]=&quot;.&quot;+Eo(o.scale(i[2]))),a[8]=&quot;f&quot;,n=t.format(a.join(&quot;&quot;)),function(t){return n(o.scale(t))+o.symbol}}a[7]||(a[7]=&quot;.&quot;+function(t,e){var r=Eo(e[2]);return t in So?Math.abs(r-Eo(Math.max(y(e[0]),y(e[1]))))+ +(&quot;e&quot;!==t):r-2*(&quot;%&quot;===t)}(a[8],i)),n=a.join(&quot;&quot;)}else n=&quot;,.&quot;+Eo(i[2])+&quot;f&quot;;return t.format(n)}t.scale.linear=function(){return function t(e,r,n,i){var a,o;function s(){var t=Math.min(e.length,r.length)&gt;2?_o:vo,s=i?wa:_a;return a=t(e,r,s,n),o=t(r,e,s,$i),l}function l(t){return a(t)}return l.invert=function(t){return o(t)},l.domain=function(t){return arguments.length?(e=t.map(Number),s()):e},l.range=function(t){return arguments.length?(r=t,s()):r},l.rangeRound=function(t){return l.range(t).interpolate(da)},l.clamp=function(t){return arguments.length?(i=t,s()):i},l.interpolate=function(t){return arguments.length?(n=t,s()):n},l.ticks=function(t){return Mo(e,t)},l.tickFormat=function(t,r){return Ao(e,t,r)},l.nice=function(t){return To(e,t),s()},l.copy=function(){return t(e,r,n,i)},s()}([0,1],[0,1],$i,!1)};var So={s:1,g:1,p:1,r:1,e:1};function Eo(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}t.scale.log=function(){return function e(r,n,i,a){function o(t){return(i?Math.log(t&lt;0?0:t):-Math.log(t&gt;0?0:-t))/Math.log(n)}function s(t){return i?Math.pow(n,t):-Math.pow(n,-t)}function l(t){return r(o(t))}return l.invert=function(t){return s(r.invert(t))},l.domain=function(t){return arguments.length?(i=t[0]&gt;=0,r.domain((a=t.map(Number)).map(o)),l):a},l.base=function(t){return arguments.length?(n=+t,r.domain(a.map(o)),l):n},l.nice=function(){var t=yo(a.map(o),i?Math:Lo);return r.domain(t),a=t.map(s),l},l.ticks=function(){var t=go(a),e=[],r=t[0],l=t[1],c=Math.floor(o(r)),u=Math.ceil(o(l)),f=n%1?2:n;if(isFinite(u-c)){if(i){for(;c&lt;u;c++)for(var h=1;h&lt;f;h++)e.push(s(c)*h);e.push(s(c))}else for(e.push(s(c));c++&lt;u;)for(h=f-1;h&gt;0;h--)e.push(s(c)*h);for(c=0;e[c]&lt;r;c++);for(u=e.length;e[u-1]&gt;l;u--);e=e.slice(c,u)}return e},l.tickFormat=function(e,r){if(!arguments.length)return Co;arguments.length&lt;2?r=Co:&quot;function&quot;!=typeof r&amp;&amp;(r=t.format(r));var i=Math.max(1,n*e/l.ticks().length);return function(t){var e=t/s(Math.round(o(t)));return e*n&lt;n-.5&amp;&amp;(e*=n),e&lt;=i?r(t):&quot;&quot;}},l.copy=function(){return e(r.copy(),n,i,a)},wo(l,r)}(t.scale.linear().domain([0,1]),10,!0,[1,10])};var Co=t.format(&quot;.0e&quot;),Lo={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function Io(t){return function(e){return e&lt;0?-Math.pow(-e,t):Math.pow(e,t)}}t.scale.pow=function(){return function t(e,r,n){var i=Io(r),a=Io(1/r);function o(t){return e(i(t))}return o.invert=function(t){return a(e.invert(t))},o.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(i)),o):n},o.ticks=function(t){return Mo(n,t)},o.tickFormat=function(t,e){return Ao(n,t,e)},o.nice=function(t){return o.domain(To(n,t))},o.exponent=function(t){return arguments.length?(i=Io(r=t),a=Io(1/r),e.domain(n.map(i)),o):r},o.copy=function(){return t(e.copy(),r,n)},wo(o,e)}(t.scale.linear(),1,[0,1])},t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return function e(r,n){var i,a,o;function s(t){return a[((i.get(t)||(&quot;range&quot;===n.t?i.set(t,r.push(t)):NaN))-1)%a.length]}function l(e,n){return t.range(r.length).map((function(t){return e+n*t}))}return s.domain=function(t){if(!arguments.length)return r;r=[],i=new _;for(var e,a=-1,o=t.length;++a&lt;o;)i.has(e=t[a])||i.set(e,r.push(e));return s[n.t].apply(s,n.a)},s.range=function(t){return arguments.length?(a=t,o=0,n={t:&quot;range&quot;,a:arguments},s):a},s.rangePoints=function(t,e){arguments.length&lt;2&amp;&amp;(e=0);var i=t[0],c=t[1],u=r.length&lt;2?(i=(i+c)/2,0):(c-i)/(r.length-1+e);return a=l(i+u*e/2,u),o=0,n={t:&quot;rangePoints&quot;,a:arguments},s},s.rangeRoundPoints=function(t,e){arguments.length&lt;2&amp;&amp;(e=0);var i=t[0],c=t[1],u=r.length&lt;2?(i=c=Math.round((i+c)/2),0):(c-i)/(r.length-1+e)|0;return a=l(i+Math.round(u*e/2+(c-i-(r.length-1+e)*u)/2),u),o=0,n={t:&quot;rangeRoundPoints&quot;,a:arguments},s},s.rangeBands=function(t,e,i){arguments.length&lt;2&amp;&amp;(e=0),arguments.length&lt;3&amp;&amp;(i=e);var c=t[1]&lt;t[0],u=t[c-0],f=t[1-c],h=(f-u)/(r.length-e+2*i);return a=l(u+h*i,h),c&amp;&amp;a.reverse(),o=h*(1-e),n={t:&quot;rangeBands&quot;,a:arguments},s},s.rangeRoundBands=function(t,e,i){arguments.length&lt;2&amp;&amp;(e=0),arguments.length&lt;3&amp;&amp;(i=e);var c=t[1]&lt;t[0],u=t[c-0],f=t[1-c],h=Math.floor((f-u)/(r.length-e+2*i));return a=l(u+Math.round((f-u-(r.length-e)*h)/2),h),c&amp;&amp;a.reverse(),o=Math.round(h*(1-e)),n={t:&quot;rangeRoundBands&quot;,a:arguments},s},s.rangeBand=function(){return o},s.rangeExtent=function(){return go(n.a[0])},s.copy=function(){return e(r,n)},s.domain(r)}([],{t:&quot;range&quot;,a:[[]]})},t.scale.category10=function(){return t.scale.ordinal().range(Po)},t.scale.category20=function(){return t.scale.ordinal().range(zo)},t.scale.category20b=function(){return t.scale.ordinal().range(Oo)},t.scale.category20c=function(){return t.scale.ordinal().range(Do)};var Po=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(ae),zo=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(ae),Oo=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(ae),Do=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(ae);function Ro(){return 0}t.scale.quantile=function(){return function e(r,n){var i;function a(){var e=0,a=n.length;for(i=[];++e&lt;a;)i[e-1]=t.quantile(r,e/a);return o}function o(e){if(!isNaN(e=+e))return n[t.bisect(i,e)]}return o.domain=function(t){return arguments.length?(r=t.map(p).filter(d).sort(h),a()):r},o.range=function(t){return arguments.length?(n=t,a()):n},o.quantiles=function(){return i},o.invertExtent=function(t){return(t=n.indexOf(t))&lt;0?[NaN,NaN]:[t&gt;0?i[t-1]:r[0],t&lt;i.length?i[t]:r[r.length-1]]},o.copy=function(){return e(r,n)},a()}([],[])},t.scale.quantize=function(){return function t(e,r,n){var i,a;function o(t){return n[Math.max(0,Math.min(a,Math.floor(i*(t-e))))]}function s(){return i=n.length/(r-e),a=n.length-1,o}return o.domain=function(t){return arguments.length?(e=+t[0],r=+t[t.length-1],s()):[e,r]},o.range=function(t){return arguments.length?(n=t,s()):n},o.invertExtent=function(t){return[t=(t=n.indexOf(t))&lt;0?NaN:t/i+e,t+1/i]},o.copy=function(){return t(e,r,n)},s()}(0,1,[0,1])},t.scale.threshold=function(){return function e(r,n){function i(e){if(e&lt;=e)return n[t.bisect(r,e)]}return i.domain=function(t){return arguments.length?(r=t,i):r},i.range=function(t){return arguments.length?(n=t,i):n},i.invertExtent=function(t){return t=n.indexOf(t),[r[t-1],r[t]]},i.copy=function(){return e(r,n)},i}([.5],[0,1])},t.scale.identity=function(){return function t(e){function r(t){return+t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=t.map(r),r):e},r.ticks=function(t){return Mo(e,t)},r.tickFormat=function(t,r){return Ao(e,t,r)},r.copy=function(){return t(e)},r}([0,1])},t.svg={},t.svg.arc=function(){var t=Bo,e=No,r=Ro,n=Fo,i=jo,a=Uo,o=Vo;function s(){var s=Math.max(0,+t.apply(this,arguments)),c=Math.max(0,+e.apply(this,arguments)),u=i.apply(this,arguments)-Ct,f=a.apply(this,arguments)-Ct,h=Math.abs(f-u),p=u&gt;f?0:1;if(c&lt;s&amp;&amp;(d=c,c=s,s=d),h&gt;=Et)return l(c,p)+(s?l(s,1-p):&quot;&quot;)+&quot;Z&quot;;var d,g,m,v,y,x,b,_,w,T,k,M,A=0,S=0,E=[];if((v=(+o.apply(this,arguments)||0)/2)&amp;&amp;(m=n===Fo?Math.sqrt(s*s+c*c):+n.apply(this,arguments),p||(S*=-1),c&amp;&amp;(S=Dt(m/c*Math.sin(v))),s&amp;&amp;(A=Dt(m/s*Math.sin(v)))),c){y=c*Math.cos(u+S),x=c*Math.sin(u+S),b=c*Math.cos(f-S),_=c*Math.sin(f-S);var C=Math.abs(f-u-2*S)&lt;=At?0:1;if(S&amp;&amp;qo(y,x,b,_)===p^C){var L=(u+f)/2;y=c*Math.cos(L),x=c*Math.sin(L),b=_=null}}else y=x=0;if(s){w=s*Math.cos(f-A),T=s*Math.sin(f-A),k=s*Math.cos(u+A),M=s*Math.sin(u+A);var I=Math.abs(u-f+2*A)&lt;=At?0:1;if(A&amp;&amp;qo(w,T,k,M)===1-p^I){var P=(u+f)/2;w=s*Math.cos(P),T=s*Math.sin(P),k=M=null}}else w=T=0;if(h&gt;kt&amp;&amp;(d=Math.min(Math.abs(c-s)/2,+r.apply(this,arguments)))&gt;.001){g=s&lt;c^p?0:1;var z=d,O=d;if(h&lt;At){var D=null==k?[w,T]:null==b?[y,x]:li([y,x],[k,M],[b,_],[w,T]),R=y-D[0],F=x-D[1],B=b-D[0],N=_-D[1],j=1/Math.sin(Math.acos((R*B+F*N)/(Math.sqrt(R*R+F*F)*Math.sqrt(B*B+N*N)))/2),U=Math.sqrt(D[0]*D[0]+D[1]*D[1]);O=Math.min(d,(s-U)/(j-1)),z=Math.min(d,(c-U)/(j+1))}if(null!=b){var V=Ho(null==k?[w,T]:[k,M],[y,x],c,z,p),q=Ho([b,_],[w,T],c,z,p);d===z?E.push(&quot;M&quot;,V[0],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,g,&quot; &quot;,V[1],&quot;A&quot;,c,&quot;,&quot;,c,&quot; 0 &quot;,1-p^qo(V[1][0],V[1][1],q[1][0],q[1][1]),&quot;,&quot;,p,&quot; &quot;,q[1],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,g,&quot; &quot;,q[0]):E.push(&quot;M&quot;,V[0],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 1,&quot;,g,&quot; &quot;,q[0])}else E.push(&quot;M&quot;,y,&quot;,&quot;,x);if(null!=k){var H=Ho([y,x],[k,M],s,-O,p),G=Ho([w,T],null==b?[y,x]:[b,_],s,-O,p);d===O?E.push(&quot;L&quot;,G[0],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,G[1],&quot;A&quot;,s,&quot;,&quot;,s,&quot; 0 &quot;,p^qo(G[1][0],G[1][1],H[1][0],H[1][1]),&quot;,&quot;,1-p,&quot; &quot;,H[1],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,H[0]):E.push(&quot;L&quot;,G[0],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,H[0])}else E.push(&quot;L&quot;,w,&quot;,&quot;,T)}else E.push(&quot;M&quot;,y,&quot;,&quot;,x),null!=b&amp;&amp;E.push(&quot;A&quot;,c,&quot;,&quot;,c,&quot; 0 &quot;,C,&quot;,&quot;,p,&quot; &quot;,b,&quot;,&quot;,_),E.push(&quot;L&quot;,w,&quot;,&quot;,T),null!=k&amp;&amp;E.push(&quot;A&quot;,s,&quot;,&quot;,s,&quot; 0 &quot;,I,&quot;,&quot;,1-p,&quot; &quot;,k,&quot;,&quot;,M);return E.push(&quot;Z&quot;),E.join(&quot;&quot;)}function l(t,e){return&quot;M0,&quot;+t+&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 1,&quot;+e+&quot; 0,&quot;+-t+&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 1,&quot;+e+&quot; 0,&quot;+t}return s.innerRadius=function(e){return arguments.length?(t=de(e),s):t},s.outerRadius=function(t){return arguments.length?(e=de(t),s):e},s.cornerRadius=function(t){return arguments.length?(r=de(t),s):r},s.padRadius=function(t){return arguments.length?(n=t==Fo?Fo:de(t),s):n},s.startAngle=function(t){return arguments.length?(i=de(t),s):i},s.endAngle=function(t){return arguments.length?(a=de(t),s):a},s.padAngle=function(t){return arguments.length?(o=de(t),s):o},s.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Ct;return[Math.cos(n)*r,Math.sin(n)*r]},s};var Fo=&quot;auto&quot;;function Bo(t){return t.innerRadius}function No(t){return t.outerRadius}function jo(t){return t.startAngle}function Uo(t){return t.endAngle}function Vo(t){return t&amp;&amp;t.padAngle}function qo(t,e,r,n){return(t-r)*e-(e-n)*t&gt;0?0:1}function Ho(t,e,r,n,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?n:-n)/Math.sqrt(a*a+o*o),l=s*o,c=-s*a,u=t[0]+l,f=t[1]+c,h=e[0]+l,p=e[1]+c,d=(u+h)/2,g=(f+p)/2,m=h-u,v=p-f,y=m*m+v*v,x=r-n,b=u*p-h*f,_=(v&lt;0?-1:1)*Math.sqrt(Math.max(0,x*x*y-b*b)),w=(b*v-m*_)/y,T=(-b*m-v*_)/y,k=(b*v+m*_)/y,M=(-b*m+v*_)/y,A=w-d,S=T-g,E=k-d,C=M-g;return A*A+S*S&gt;E*E+C*C&amp;&amp;(w=k,T=M),[[w-l,T-c],[w*r/x,T*r/x]]}function Go(t){var e=ri,r=ni,n=Yr,i=Wo,a=i.key,o=.7;function s(a){var s,l=[],c=[],u=-1,f=a.length,h=de(e),p=de(r);function d(){l.push(&quot;M&quot;,i(t(c),o))}for(;++u&lt;f;)n.call(this,s=a[u],u)?c.push([+h.call(this,s,u),+p.call(this,s,u)]):c.length&amp;&amp;(d(),c=[]);return c.length&amp;&amp;d(),l.length?l.join(&quot;&quot;):null}return s.x=function(t){return arguments.length?(e=t,s):e},s.y=function(t){return arguments.length?(r=t,s):r},s.defined=function(t){return arguments.length?(n=t,s):n},s.interpolate=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?i=t:(i=Yo.get(t)||Wo).key,s):a},s.tension=function(t){return arguments.length?(o=t,s):o},s}t.svg.line=function(){return Go(L)};var Yo=t.map({linear:Wo,&quot;linear-closed&quot;:Xo,step:function(t){var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];for(;++e&lt;r;)i.push(&quot;H&quot;,(n[0]+(n=t[e])[0])/2,&quot;V&quot;,n[1]);r&gt;1&amp;&amp;i.push(&quot;H&quot;,n[0]);return i.join(&quot;&quot;)},&quot;step-before&quot;:Zo,&quot;step-after&quot;:Jo,basis:$o,&quot;basis-open&quot;:function(t){if(t.length&lt;4)return Wo(t);var e,r=[],n=-1,i=t.length,a=[0],o=[0];for(;++n&lt;3;)e=t[n],a.push(e[0]),o.push(e[1]);r.push(ts(ns,a)+&quot;,&quot;+ts(ns,o)),--n;for(;++n&lt;i;)e=t[n],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),is(r,a,o);return r.join(&quot;&quot;)},&quot;basis-closed&quot;:function(t){var e,r,n=-1,i=t.length,a=i+4,o=[],s=[];for(;++n&lt;4;)r=t[n%i],o.push(r[0]),s.push(r[1]);e=[ts(ns,o),&quot;,&quot;,ts(ns,s)],--n;for(;++n&lt;a;)r=t[n%i],o.shift(),o.push(r[0]),s.shift(),s.push(r[1]),is(e,o,s);return e.join(&quot;&quot;)},bundle:function(t,e){var r=t.length-1;if(r)for(var n,i,a=t[0][0],o=t[0][1],s=t[r][0]-a,l=t[r][1]-o,c=-1;++c&lt;=r;)n=t[c],i=c/r,n[0]=e*n[0]+(1-e)*(a+i*s),n[1]=e*n[1]+(1-e)*(o+i*l);return $o(t)},cardinal:function(t,e){return t.length&lt;3?Wo(t):t[0]+Ko(t,Qo(t,e))},&quot;cardinal-open&quot;:function(t,e){return t.length&lt;4?Wo(t):t[1]+Ko(t.slice(1,-1),Qo(t,e))},&quot;cardinal-closed&quot;:function(t,e){return t.length&lt;3?Xo(t):t[0]+Ko((t.push(t[0]),t),Qo([t[t.length-2]].concat(t,[t[1]]),e))},monotone:function(t){return t.length&lt;3?Wo(t):t[0]+Ko(t,function(t){var e,r,n,i,a=[],o=function(t){var e=0,r=t.length-1,n=[],i=t[0],a=t[1],o=n[0]=as(i,a);for(;++e&lt;r;)n[e]=(o+(o=as(i=a,a=t[e+1])))/2;return n[e]=o,n}(t),s=-1,l=t.length-1;for(;++s&lt;l;)e=as(t[s],t[s+1]),y(e)&lt;kt?o[s]=o[s+1]=0:(r=o[s]/e,n=o[s+1]/e,(i=r*r+n*n)&gt;9&amp;&amp;(i=3*e/Math.sqrt(i),o[s]=i*r,o[s+1]=i*n));s=-1;for(;++s&lt;=l;)i=(t[Math.min(l,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}(t))}});function Wo(t){return t.length&gt;1?t.join(&quot;L&quot;):t+&quot;Z&quot;}function Xo(t){return t.join(&quot;L&quot;)+&quot;Z&quot;}function Zo(t){for(var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];++e&lt;r;)i.push(&quot;V&quot;,(n=t[e])[1],&quot;H&quot;,n[0]);return i.join(&quot;&quot;)}function Jo(t){for(var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];++e&lt;r;)i.push(&quot;H&quot;,(n=t[e])[0],&quot;V&quot;,n[1]);return i.join(&quot;&quot;)}function Ko(t,e){if(e.length&lt;1||t.length!=e.length&amp;&amp;t.length!=e.length+2)return Wo(t);var r=t.length!=e.length,n=&quot;&quot;,i=t[0],a=t[1],o=e[0],s=o,l=1;if(r&amp;&amp;(n+=&quot;Q&quot;+(a[0]-2*o[0]/3)+&quot;,&quot;+(a[1]-2*o[1]/3)+&quot;,&quot;+a[0]+&quot;,&quot;+a[1],i=t[1],l=2),e.length&gt;1){s=e[1],a=t[l],l++,n+=&quot;C&quot;+(i[0]+o[0])+&quot;,&quot;+(i[1]+o[1])+&quot;,&quot;+(a[0]-s[0])+&quot;,&quot;+(a[1]-s[1])+&quot;,&quot;+a[0]+&quot;,&quot;+a[1];for(var c=2;c&lt;e.length;c++,l++)a=t[l],s=e[c],n+=&quot;S&quot;+(a[0]-s[0])+&quot;,&quot;+(a[1]-s[1])+&quot;,&quot;+a[0]+&quot;,&quot;+a[1]}if(r){var u=t[l];n+=&quot;Q&quot;+(a[0]+2*s[0]/3)+&quot;,&quot;+(a[1]+2*s[1]/3)+&quot;,&quot;+u[0]+&quot;,&quot;+u[1]}return n}function Qo(t,e){for(var r,n=[],i=(1-e)/2,a=t[0],o=t[1],s=1,l=t.length;++s&lt;l;)r=a,a=o,o=t[s],n.push([i*(o[0]-r[0]),i*(o[1]-r[1])]);return n}function $o(t){if(t.length&lt;3)return Wo(t);var e=1,r=t.length,n=t[0],i=n[0],a=n[1],o=[i,i,i,(n=t[1])[0]],s=[a,a,a,n[1]],l=[i,&quot;,&quot;,a,&quot;L&quot;,ts(ns,o),&quot;,&quot;,ts(ns,s)];for(t.push(t[r-1]);++e&lt;=r;)n=t[e],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),is(l,o,s);return t.pop(),l.push(&quot;L&quot;,n),l.join(&quot;&quot;)}function ts(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}Yo.forEach((function(t,e){e.key=t,e.closed=/-closed$/.test(t)}));var es=[0,2/3,1/3,0],rs=[0,1/3,2/3,0],ns=[0,1/6,2/3,1/6];function is(t,e,r){t.push(&quot;C&quot;,ts(es,e),&quot;,&quot;,ts(es,r),&quot;,&quot;,ts(rs,e),&quot;,&quot;,ts(rs,r),&quot;,&quot;,ts(ns,e),&quot;,&quot;,ts(ns,r))}function as(t,e){return(e[1]-t[1])/(e[0]-t[0])}function os(t){for(var e,r,n,i=-1,a=t.length;++i&lt;a;)r=(e=t[i])[0],n=e[1]-Ct,e[0]=r*Math.cos(n),e[1]=r*Math.sin(n);return t}function ss(t){var e=ri,r=ri,n=0,i=ni,a=Yr,o=Wo,s=o.key,l=o,c=&quot;L&quot;,u=.7;function f(s){var f,h,p,d=[],g=[],m=[],v=-1,y=s.length,x=de(e),b=de(n),_=e===r?function(){return h}:de(r),w=n===i?function(){return p}:de(i);function T(){d.push(&quot;M&quot;,o(t(m),u),c,l(t(g.reverse()),u),&quot;Z&quot;)}for(;++v&lt;y;)a.call(this,f=s[v],v)?(g.push([h=+x.call(this,f,v),p=+b.call(this,f,v)]),m.push([+_.call(this,f,v),+w.call(this,f,v)])):g.length&amp;&amp;(T(),g=[],m=[]);return g.length&amp;&amp;T(),d.length?d.join(&quot;&quot;):null}return f.x=function(t){return arguments.length?(e=r=t,f):r},f.x0=function(t){return arguments.length?(e=t,f):e},f.x1=function(t){return arguments.length?(r=t,f):r},f.y=function(t){return arguments.length?(n=i=t,f):i},f.y0=function(t){return arguments.length?(n=t,f):n},f.y1=function(t){return arguments.length?(i=t,f):i},f.defined=function(t){return arguments.length?(a=t,f):a},f.interpolate=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?o=t:(o=Yo.get(t)||Wo).key,l=o.reverse||o,c=o.closed?&quot;M&quot;:&quot;L&quot;,f):s},f.tension=function(t){return arguments.length?(u=t,f):u},f}function ls(t){return t.radius}function cs(t){return[t.x,t.y]}function us(t){return function(){var e=t.apply(this,arguments),r=e[0],n=e[1]-Ct;return[r*Math.cos(n),r*Math.sin(n)]}}function fs(){return 64}function hs(){return&quot;circle&quot;}function ps(t){var e=Math.sqrt(t/At);return&quot;M0,&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,&quot;+-e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,&quot;+e+&quot;Z&quot;}t.svg.line.radial=function(){var t=Go(os);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},Zo.reverse=Jo,Jo.reverse=Zo,t.svg.area=function(){return ss(L)},t.svg.area.radial=function(){var t=ss(os);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},t.svg.chord=function(){var t=Vn,e=qn,r=ls,n=jo,i=Uo;function a(r,n){var i,a,c=o(this,t,r,n),u=o(this,e,r,n);return&quot;M&quot;+c.p0+s(c.r,c.p1,c.a1-c.a0)+(a=u,((i=c).a0==a.a0&amp;&amp;i.a1==a.a1?l(c.r,c.p1,c.r,c.p0):l(c.r,c.p1,u.r,u.p0)+s(u.r,u.p1,u.a1-u.a0)+l(u.r,u.p1,c.r,c.p0))+&quot;Z&quot;)}function o(t,e,a,o){var s=e.call(t,a,o),l=r.call(t,s,o),c=n.call(t,s,o)-Ct,u=i.call(t,s,o)-Ct;return{r:l,a0:c,a1:u,p0:[l*Math.cos(c),l*Math.sin(c)],p1:[l*Math.cos(u),l*Math.sin(u)]}}function s(t,e,r){return&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 &quot;+ +(r&gt;At)+&quot;,1 &quot;+e}function l(t,e,r,n){return&quot;Q 0,0 &quot;+n}return a.radius=function(t){return arguments.length?(r=de(t),a):r},a.source=function(e){return arguments.length?(t=de(e),a):t},a.target=function(t){return arguments.length?(e=de(t),a):e},a.startAngle=function(t){return arguments.length?(n=de(t),a):n},a.endAngle=function(t){return arguments.length?(i=de(t),a):i},a},t.svg.diagonal=function(){var t=Vn,e=qn,r=cs;function n(n,i){var a=t.call(this,n,i),o=e.call(this,n,i),s=(a.y+o.y)/2,l=[a,{x:a.x,y:s},{x:o.x,y:s},o];return&quot;M&quot;+(l=l.map(r))[0]+&quot;C&quot;+l[1]+&quot; &quot;+l[2]+&quot; &quot;+l[3]}return n.source=function(e){return arguments.length?(t=de(e),n):t},n.target=function(t){return arguments.length?(e=de(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},t.svg.diagonal.radial=function(){var e=t.svg.diagonal(),r=cs,n=e.projection;return e.projection=function(t){return arguments.length?n(us(r=t)):r},e},t.svg.symbol=function(){var t=hs,e=fs;function r(r,n){return(ds.get(t.call(this,r,n))||ps)(e.call(this,r,n))}return r.type=function(e){return arguments.length?(t=de(e),r):t},r.size=function(t){return arguments.length?(e=de(t),r):e},r};var ds=t.map({circle:ps,cross:function(t){var e=Math.sqrt(t/5)/2;return&quot;M&quot;+-3*e+&quot;,&quot;+-e+&quot;H&quot;+-e+&quot;V&quot;+-3*e+&quot;H&quot;+e+&quot;V&quot;+-e+&quot;H&quot;+3*e+&quot;V&quot;+e+&quot;H&quot;+e+&quot;V&quot;+3*e+&quot;H&quot;+-e+&quot;V&quot;+e+&quot;H&quot;+-3*e+&quot;Z&quot;},diamond:function(t){var e=Math.sqrt(t/(2*ms)),r=e*ms;return&quot;M0,&quot;+-e+&quot;L&quot;+r+&quot;,0 0,&quot;+e+&quot; &quot;+-r+&quot;,0Z&quot;},square:function(t){var e=Math.sqrt(t)/2;return&quot;M&quot;+-e+&quot;,&quot;+-e+&quot;L&quot;+e+&quot;,&quot;+-e+&quot; &quot;+e+&quot;,&quot;+e+&quot; &quot;+-e+&quot;,&quot;+e+&quot;Z&quot;},&quot;triangle-down&quot;:function(t){var e=Math.sqrt(t/gs),r=e*gs/2;return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,&quot;+-r+&quot; &quot;+-e+&quot;,&quot;+-r+&quot;Z&quot;},&quot;triangle-up&quot;:function(t){var e=Math.sqrt(t/gs),r=e*gs/2;return&quot;M0,&quot;+-r+&quot;L&quot;+e+&quot;,&quot;+r+&quot; &quot;+-e+&quot;,&quot;+r+&quot;Z&quot;}});t.svg.symbolTypes=ds.keys();var gs=Math.sqrt(3),ms=Math.tan(30*Lt);Y.transition=function(t){for(var e,r,n=bs||++Ts,i=As(t),a=[],o=_s||{time:Date.now(),ease:ca,delay:0,duration:250},s=-1,l=this.length;++s&lt;l;){a.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u&lt;f;)(r=c[u])&amp;&amp;Ss(r,u,i,n,o),e.push(r)}return xs(a,i,n)},Y.interrupt=function(t){return this.each(null==t?vs:ys(As(t)))};var vs=ys(As());function ys(t){return function(){var e,r,n;(e=this[t])&amp;&amp;(n=e[r=e.active])&amp;&amp;(n.timer.c=null,n.timer.t=NaN,--e.count?delete e[r]:delete this[t],e.active+=.5,n.event&amp;&amp;n.event.interrupt.call(this,this.__data__,n.index))}}function xs(t,e,r){return U(t,ws),t.namespace=e,t.id=r,t}var bs,_s,ws=[],Ts=0;function ks(t,e,r,n){var i=t.id,a=t.namespace;return ut(t,&quot;function&quot;==typeof r?function(t,o,s){t[a][i].tween.set(e,n(r.call(t,t.__data__,o,s)))}:(r=n(r),function(t){t[a][i].tween.set(e,r)}))}function Ms(t){return null==t&amp;&amp;(t=&quot;&quot;),function(){this.textContent=t}}function As(t){return null==t?&quot;__transition__&quot;:&quot;__transition_&quot;+t+&quot;__&quot;}function Ss(t,e,r,n,i){var a,o,s,l,c,u=t[r]||(t[r]={active:0,count:0}),f=u[n];function h(r){var i=u.active,h=u[i];for(var d in h&amp;&amp;(h.timer.c=null,h.timer.t=NaN,--u.count,delete u[i],h.event&amp;&amp;h.event.interrupt.call(t,t.__data__,h.index)),u)if(+d&lt;n){var g=u[d];g.timer.c=null,g.timer.t=NaN,--u.count,delete u[d]}o.c=p,we((function(){return o.c&amp;&amp;p(r||1)&amp;&amp;(o.c=null,o.t=NaN),1}),0,a),u.active=n,f.event&amp;&amp;f.event.start.call(t,t.__data__,e),c=[],f.tween.forEach((function(r,n){(n=n.call(t,t.__data__,e))&amp;&amp;c.push(n)})),l=f.ease,s=f.duration}function p(i){for(var a=i/s,o=l(a),h=c.length;h&gt;0;)c[--h].call(t,o);if(a&gt;=1)return f.event&amp;&amp;f.event.end.call(t,t.__data__,e),--u.count?delete u[n]:delete t[r],1}f||(a=i.time,o=we((function(t){var e=f.delay;if(o.t=e+a,e&lt;=t)return h(t-e);o.c=h}),0,a),f=u[n]={tween:new _,time:a,timer:o,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++u.count)}ws.call=Y.call,ws.empty=Y.empty,ws.node=Y.node,ws.size=Y.size,t.transition=function(e,r){return e&amp;&amp;e.transition?bs?e.transition(r):e:t.selection().transition(e)},t.transition.prototype=ws,ws.select=function(t){var e,r,n,i=this.id,a=this.namespace,o=[];t=W(t);for(var s=-1,l=this.length;++s&lt;l;){o.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u&lt;f;)(n=c[u])&amp;&amp;(r=t.call(n,n.__data__,u,s))?(&quot;__data__&quot;in n&amp;&amp;(r.__data__=n.__data__),Ss(r,u,a,i,n[a][i]),e.push(r)):e.push(null)}return xs(o,a,i)},ws.selectAll=function(t){var e,r,n,i,a,o=this.id,s=this.namespace,l=[];t=X(t);for(var c=-1,u=this.length;++c&lt;u;)for(var f=this[c],h=-1,p=f.length;++h&lt;p;)if(n=f[h]){a=n[s][o],r=t.call(n,n.__data__,h,c),l.push(e=[]);for(var d=-1,g=r.length;++d&lt;g;)(i=r[d])&amp;&amp;Ss(i,d,s,o,a),e.push(i)}return xs(l,s,o)},ws.filter=function(t){var e,r,n=[];&quot;function&quot;!=typeof t&amp;&amp;(t=lt(t));for(var i=0,a=this.length;i&lt;a;i++){n.push(e=[]);for(var o,s=0,l=(o=this[i]).length;s&lt;l;s++)(r=o[s])&amp;&amp;t.call(r,r.__data__,s,i)&amp;&amp;e.push(r)}return xs(n,this.namespace,this.id)},ws.tween=function(t,e){var r=this.id,n=this.namespace;return arguments.length&lt;2?this.node()[n][r].tween.get(t):ut(this,null==e?function(e){e[n][r].tween.remove(t)}:function(i){i[n][r].tween.set(t,e)})},ws.attr=function(e,r){if(arguments.length&lt;2){for(r in e)this.attr(r,e[r]);return this}var n=&quot;transform&quot;==e?ba:$i,i=t.ns.qualify(e);function a(){this.removeAttribute(i)}function o(){this.removeAttributeNS(i.space,i.local)}function s(t){return null==t?a:(t+=&quot;&quot;,function(){var e,r=this.getAttribute(i);return r!==t&amp;&amp;(e=n(r,t),function(t){this.setAttribute(i,e(t))})})}function l(t){return null==t?o:(t+=&quot;&quot;,function(){var e,r=this.getAttributeNS(i.space,i.local);return r!==t&amp;&amp;(e=n(r,t),function(t){this.setAttributeNS(i.space,i.local,e(t))})})}return ks(this,&quot;attr.&quot;+e,r,i.local?l:s)},ws.attrTween=function(e,r){var n=t.ns.qualify(e);return this.tween(&quot;attr.&quot;+e,n.local?function(t,e){var i=r.call(this,t,e,this.getAttributeNS(n.space,n.local));return i&amp;&amp;function(t){this.setAttributeNS(n.space,n.local,i(t))}}:function(t,e){var i=r.call(this,t,e,this.getAttribute(n));return i&amp;&amp;function(t){this.setAttribute(n,i(t))}})},ws.style=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=&quot;&quot;),t)this.style(r,t[r],e);return this}r=&quot;&quot;}function i(){this.style.removeProperty(t)}function a(e){return null==e?i:(e+=&quot;&quot;,function(){var n,i=o(this).getComputedStyle(this,null).getPropertyValue(t);return i!==e&amp;&amp;(n=$i(i,e),function(e){this.style.setProperty(t,n(e),r)})})}return ks(this,&quot;style.&quot;+t,e,a)},ws.styleTween=function(t,e,r){function n(n,i){var a=e.call(this,n,i,o(this).getComputedStyle(this,null).getPropertyValue(t));return a&amp;&amp;function(e){this.style.setProperty(t,a(e),r)}}return arguments.length&lt;3&amp;&amp;(r=&quot;&quot;),this.tween(&quot;style.&quot;+t,n)},ws.text=function(t){return ks(this,&quot;text&quot;,t,Ms)},ws.remove=function(){var t=this.namespace;return this.each(&quot;end.transition&quot;,(function(){var e;this[t].count&lt;2&amp;&amp;(e=this.parentNode)&amp;&amp;e.removeChild(this)}))},ws.ease=function(e){var r=this.id,n=this.namespace;return arguments.length&lt;1?this.node()[n][r].ease:(&quot;function&quot;!=typeof e&amp;&amp;(e=t.ease.apply(t,arguments)),ut(this,(function(t){t[n][r].ease=e})))},ws.delay=function(t){var e=this.id,r=this.namespace;return arguments.length&lt;1?this.node()[r][e].delay:ut(this,&quot;function&quot;==typeof t?function(n,i,a){n[r][e].delay=+t.call(n,n.__data__,i,a)}:(t=+t,function(n){n[r][e].delay=t}))},ws.duration=function(t){var e=this.id,r=this.namespace;return arguments.length&lt;1?this.node()[r][e].duration:ut(this,&quot;function&quot;==typeof t?function(n,i,a){n[r][e].duration=Math.max(1,t.call(n,n.__data__,i,a))}:(t=Math.max(1,t),function(n){n[r][e].duration=t}))},ws.each=function(e,r){var n=this.id,i=this.namespace;if(arguments.length&lt;2){var a=_s,o=bs;try{bs=n,ut(this,(function(t,r,a){_s=t[i][n],e.call(t,t.__data__,r,a)}))}finally{_s=a,bs=o}}else ut(this,(function(a){var o=a[i][n];(o.event||(o.event=t.dispatch(&quot;start&quot;,&quot;end&quot;,&quot;interrupt&quot;))).on(e,r)}));return this},ws.transition=function(){for(var t,e,r,n=this.id,i=++Ts,a=this.namespace,o=[],s=0,l=this.length;s&lt;l;s++){o.push(t=[]);for(var c,u=0,f=(c=this[s]).length;u&lt;f;u++)(e=c[u])&amp;&amp;Ss(e,u,a,i,{time:(r=e[a][n]).time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration}),t.push(e)}return xs(o,a,i)},t.svg.axis=function(){var e,r=t.scale.linear(),i=Es,a=6,o=6,s=3,l=[10],c=null;function u(n){n.each((function(){var n,u=t.select(this),f=this.__chart__||r,h=this.__chart__=r.copy(),p=null==c?h.ticks?h.ticks.apply(h,l):h.domain():c,d=null==e?h.tickFormat?h.tickFormat.apply(h,l):L:e,g=u.selectAll(&quot;.tick&quot;).data(p,h),m=g.enter().insert(&quot;g&quot;,&quot;.domain&quot;).attr(&quot;class&quot;,&quot;tick&quot;).style(&quot;opacity&quot;,kt),v=t.transition(g.exit()).style(&quot;opacity&quot;,kt).remove(),y=t.transition(g.order()).style(&quot;opacity&quot;,1),x=Math.max(a,0)+s,b=mo(h),_=u.selectAll(&quot;.domain&quot;).data([0]),w=(_.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;domain&quot;),t.transition(_));m.append(&quot;line&quot;),m.append(&quot;text&quot;);var T,k,M,A,S=m.select(&quot;line&quot;),E=y.select(&quot;line&quot;),C=g.select(&quot;text&quot;).text(d),I=m.select(&quot;text&quot;),P=y.select(&quot;text&quot;),z=&quot;top&quot;===i||&quot;left&quot;===i?-1:1;if(&quot;bottom&quot;===i||&quot;top&quot;===i?(n=Ls,T=&quot;x&quot;,M=&quot;y&quot;,k=&quot;x2&quot;,A=&quot;y2&quot;,C.attr(&quot;dy&quot;,z&lt;0?&quot;0em&quot;:&quot;.71em&quot;).style(&quot;text-anchor&quot;,&quot;middle&quot;),w.attr(&quot;d&quot;,&quot;M&quot;+b[0]+&quot;,&quot;+z*o+&quot;V0H&quot;+b[1]+&quot;V&quot;+z*o)):(n=Is,T=&quot;y&quot;,M=&quot;x&quot;,k=&quot;y2&quot;,A=&quot;x2&quot;,C.attr(&quot;dy&quot;,&quot;.32em&quot;).style(&quot;text-anchor&quot;,z&lt;0?&quot;end&quot;:&quot;start&quot;),w.attr(&quot;d&quot;,&quot;M&quot;+z*o+&quot;,&quot;+b[0]+&quot;H0V&quot;+b[1]+&quot;H&quot;+z*o)),S.attr(A,z*a),I.attr(M,z*x),E.attr(k,0).attr(A,z*a),P.attr(T,0).attr(M,z*x),h.rangeBand){var O=h,D=O.rangeBand()/2;f=h=function(t){return O(t)+D}}else f.rangeBand?f=h:v.call(n,h,f);m.call(n,f,h),y.call(n,h,h)}))}return u.scale=function(t){return arguments.length?(r=t,u):r},u.orient=function(t){return arguments.length?(i=t in Cs?t+&quot;&quot;:Es,u):i},u.ticks=function(){return arguments.length?(l=n(arguments),u):l},u.tickValues=function(t){return arguments.length?(c=t,u):c},u.tickFormat=function(t){return arguments.length?(e=t,u):e},u.tickSize=function(t){var e=arguments.length;return e?(a=+t,o=+arguments[e-1],u):a},u.innerTickSize=function(t){return arguments.length?(a=+t,u):a},u.outerTickSize=function(t){return arguments.length?(o=+t,u):o},u.tickPadding=function(t){return arguments.length?(s=+t,u):s},u.tickSubdivide=function(){return arguments.length&amp;&amp;u},u};var Es=&quot;bottom&quot;,Cs={top:1,right:1,bottom:1,left:1};function Ls(t,e,r){t.attr(&quot;transform&quot;,(function(t){var n=e(t);return&quot;translate(&quot;+(isFinite(n)?n:r(t))+&quot;,0)&quot;}))}function Is(t,e,r){t.attr(&quot;transform&quot;,(function(t){var n=e(t);return&quot;translate(0,&quot;+(isFinite(n)?n:r(t))+&quot;)&quot;}))}t.svg.brush=function(){var e,r,n=N(h,&quot;brushstart&quot;,&quot;brush&quot;,&quot;brushend&quot;),i=null,a=null,s=[0,0],l=[0,0],c=!0,u=!0,f=zs[0];function h(e){e.each((function(){var e=t.select(this).style(&quot;pointer-events&quot;,&quot;all&quot;).style(&quot;-webkit-tap-highlight-color&quot;,&quot;rgba(0,0,0,0)&quot;).on(&quot;mousedown.brush&quot;,m).on(&quot;touchstart.brush&quot;,m),r=e.selectAll(&quot;.background&quot;).data([0]);r.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;background&quot;).style(&quot;visibility&quot;,&quot;hidden&quot;).style(&quot;cursor&quot;,&quot;crosshair&quot;),e.selectAll(&quot;.extent&quot;).data([0]).enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;extent&quot;).style(&quot;cursor&quot;,&quot;move&quot;);var n=e.selectAll(&quot;.resize&quot;).data(f,L);n.exit().remove(),n.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;resize &quot;+t})).style(&quot;cursor&quot;,(function(t){return Ps[t]})).append(&quot;rect&quot;).attr(&quot;x&quot;,(function(t){return/[ew]$/.test(t)?-3:null})).attr(&quot;y&quot;,(function(t){return/^[ns]/.test(t)?-3:null})).attr(&quot;width&quot;,6).attr(&quot;height&quot;,6).style(&quot;visibility&quot;,&quot;hidden&quot;),n.style(&quot;display&quot;,h.empty()?&quot;none&quot;:null);var o,s=t.transition(e),l=t.transition(r);i&amp;&amp;(o=mo(i),l.attr(&quot;x&quot;,o[0]).attr(&quot;width&quot;,o[1]-o[0]),d(s)),a&amp;&amp;(o=mo(a),l.attr(&quot;y&quot;,o[0]).attr(&quot;height&quot;,o[1]-o[0]),g(s)),p(s)}))}function p(t){t.selectAll(&quot;.resize&quot;).attr(&quot;transform&quot;,(function(t){return&quot;translate(&quot;+s[+/e$/.test(t)]+&quot;,&quot;+l[+/^s/.test(t)]+&quot;)&quot;}))}function d(t){t.select(&quot;.extent&quot;).attr(&quot;x&quot;,s[0]),t.selectAll(&quot;.extent,.n&gt;rect,.s&gt;rect&quot;).attr(&quot;width&quot;,s[1]-s[0])}function g(t){t.select(&quot;.extent&quot;).attr(&quot;y&quot;,l[0]),t.selectAll(&quot;.extent,.e&gt;rect,.w&gt;rect&quot;).attr(&quot;height&quot;,l[1]-l[0])}function m(){var f,m,v=this,y=t.select(t.event.target),x=n.of(v,arguments),b=t.select(v),_=y.datum(),w=!/^(n|s)$/.test(_)&amp;&amp;i,T=!/^(e|w)$/.test(_)&amp;&amp;a,k=y.classed(&quot;extent&quot;),M=bt(v),A=t.mouse(v),S=t.select(o(v)).on(&quot;keydown.brush&quot;,L).on(&quot;keyup.brush&quot;,I);if(t.event.changedTouches?S.on(&quot;touchmove.brush&quot;,P).on(&quot;touchend.brush&quot;,O):S.on(&quot;mousemove.brush&quot;,P).on(&quot;mouseup.brush&quot;,O),b.interrupt().selectAll(&quot;*&quot;).interrupt(),k)A[0]=s[0]-A[0],A[1]=l[0]-A[1];else if(_){var E=+/w$/.test(_),C=+/^n/.test(_);m=[s[1-E]-A[0],l[1-C]-A[1]],A[0]=s[E],A[1]=l[C]}else t.event.altKey&amp;&amp;(f=A.slice());function L(){32==t.event.keyCode&amp;&amp;(k||(f=null,A[0]-=s[1],A[1]-=l[1],k=2),F())}function I(){32==t.event.keyCode&amp;&amp;2==k&amp;&amp;(A[0]+=s[1],A[1]+=l[1],k=0,F())}function P(){var e=t.mouse(v),r=!1;m&amp;&amp;(e[0]+=m[0],e[1]+=m[1]),k||(t.event.altKey?(f||(f=[(s[0]+s[1])/2,(l[0]+l[1])/2]),A[0]=s[+(e[0]&lt;f[0])],A[1]=l[+(e[1]&lt;f[1])]):f=null),w&amp;&amp;z(e,i,0)&amp;&amp;(d(b),r=!0),T&amp;&amp;z(e,a,1)&amp;&amp;(g(b),r=!0),r&amp;&amp;(p(b),x({type:&quot;brush&quot;,mode:k?&quot;move&quot;:&quot;resize&quot;}))}function z(t,n,i){var a,o,h=mo(n),p=h[0],d=h[1],g=A[i],m=i?l:s,v=m[1]-m[0];if(k&amp;&amp;(p-=g,d-=v+g),a=(i?u:c)?Math.max(p,Math.min(d,t[i])):t[i],k?o=(a+=g)+v:(f&amp;&amp;(g=Math.max(p,Math.min(d,2*f[i]-a))),g&lt;a?(o=a,a=g):o=g),m[0]!=a||m[1]!=o)return i?r=null:e=null,m[0]=a,m[1]=o,!0}function O(){P(),b.style(&quot;pointer-events&quot;,&quot;all&quot;).selectAll(&quot;.resize&quot;).style(&quot;display&quot;,h.empty()?&quot;none&quot;:null),t.select(&quot;body&quot;).style(&quot;cursor&quot;,null),S.on(&quot;mousemove.brush&quot;,null).on(&quot;mouseup.brush&quot;,null).on(&quot;touchmove.brush&quot;,null).on(&quot;touchend.brush&quot;,null).on(&quot;keydown.brush&quot;,null).on(&quot;keyup.brush&quot;,null),M(),x({type:&quot;brushend&quot;})}b.style(&quot;pointer-events&quot;,&quot;none&quot;).selectAll(&quot;.resize&quot;).style(&quot;display&quot;,null),t.select(&quot;body&quot;).style(&quot;cursor&quot;,y.style(&quot;cursor&quot;)),x({type:&quot;brushstart&quot;}),P()}return h.event=function(i){i.each((function(){var i=n.of(this,arguments),a={x:s,y:l,i:e,j:r},o=this.__chart__||a;this.__chart__=a,bs?t.select(this).transition().each(&quot;start.brush&quot;,(function(){e=o.i,r=o.j,s=o.x,l=o.y,i({type:&quot;brushstart&quot;})})).tween(&quot;brush:brush&quot;,(function(){var t=ta(s,a.x),n=ta(l,a.y);return e=r=null,function(e){s=a.x=t(e),l=a.y=n(e),i({type:&quot;brush&quot;,mode:&quot;resize&quot;})}})).each(&quot;end.brush&quot;,(function(){e=a.i,r=a.j,i({type:&quot;brush&quot;,mode:&quot;resize&quot;}),i({type:&quot;brushend&quot;})})):(i({type:&quot;brushstart&quot;}),i({type:&quot;brush&quot;,mode:&quot;resize&quot;}),i({type:&quot;brushend&quot;}))}))},h.x=function(t){return arguments.length?(f=zs[!(i=t)&lt;&lt;1|!a],h):i},h.y=function(t){return arguments.length?(f=zs[!i&lt;&lt;1|!(a=t)],h):a},h.clamp=function(t){return arguments.length?(i&amp;&amp;a?(c=!!t[0],u=!!t[1]):i?c=!!t:a&amp;&amp;(u=!!t),h):i&amp;&amp;a?[c,u]:i?c:a?u:null},h.extent=function(t){var n,o,c,u,f;return arguments.length?(i&amp;&amp;(n=t[0],o=t[1],a&amp;&amp;(n=n[0],o=o[0]),e=[n,o],i.invert&amp;&amp;(n=i(n),o=i(o)),o&lt;n&amp;&amp;(f=n,n=o,o=f),n==s[0]&amp;&amp;o==s[1]||(s=[n,o])),a&amp;&amp;(c=t[0],u=t[1],i&amp;&amp;(c=c[1],u=u[1]),r=[c,u],a.invert&amp;&amp;(c=a(c),u=a(u)),u&lt;c&amp;&amp;(f=c,c=u,u=f),c==l[0]&amp;&amp;u==l[1]||(l=[c,u])),h):(i&amp;&amp;(e?(n=e[0],o=e[1]):(n=s[0],o=s[1],i.invert&amp;&amp;(n=i.invert(n),o=i.invert(o)),o&lt;n&amp;&amp;(f=n,n=o,o=f))),a&amp;&amp;(r?(c=r[0],u=r[1]):(c=l[0],u=l[1],a.invert&amp;&amp;(c=a.invert(c),u=a.invert(u)),u&lt;c&amp;&amp;(f=c,c=u,u=f))),i&amp;&amp;a?[[n,c],[o,u]]:i?[n,o]:a&amp;&amp;[c,u])},h.clear=function(){return h.empty()||(s=[0,0],l=[0,0],e=r=null),h},h.empty=function(){return!!i&amp;&amp;s[0]==s[1]||!!a&amp;&amp;l[0]==l[1]},t.rebind(h,n,&quot;on&quot;)};var Ps={n:&quot;ns-resize&quot;,e:&quot;ew-resize&quot;,s:&quot;ns-resize&quot;,w:&quot;ew-resize&quot;,nw:&quot;nwse-resize&quot;,ne:&quot;nesw-resize&quot;,se:&quot;nwse-resize&quot;,sw:&quot;nesw-resize&quot;},zs=[[&quot;n&quot;,&quot;e&quot;,&quot;s&quot;,&quot;w&quot;,&quot;nw&quot;,&quot;ne&quot;,&quot;se&quot;,&quot;sw&quot;],[&quot;e&quot;,&quot;w&quot;],[&quot;n&quot;,&quot;s&quot;],[]],Os=Pe.format=sr.timeFormat,Ds=Os.utc,Rs=Ds(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);function Fs(t){return t.toISOString()}function Bs(e,r,n){function i(t){return e(t)}function a(e,n){var i=(e[1]-e[0])/n,a=t.bisect(js,i);return a==js.length?[r.year,ko(e.map((function(t){return t/31536e6})),n)[2]]:a?r[i/js[a-1]&lt;js[a]/i?a-1:a]:[qs,ko(e,n)[2]]}return i.invert=function(t){return Ns(e.invert(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain().map(Ns)},i.nice=function(t,e){var r=i.domain(),n=go(r),o=null==t?a(n,10):&quot;number&quot;==typeof t&amp;&amp;a(n,t);function s(r){return!isNaN(r)&amp;&amp;!t.range(r,Ns(+r+1),e).length}return o&amp;&amp;(t=o[0],e=o[1]),i.domain(yo(r,e&gt;1?{floor:function(e){for(;s(e=t.floor(e));)e=Ns(e-1);return e},ceil:function(e){for(;s(e=t.ceil(e));)e=Ns(+e+1);return e}}:t))},i.ticks=function(t,e){var r=go(i.domain()),n=null==t?a(r,10):&quot;number&quot;==typeof t?a(r,t):!t.range&amp;&amp;[{range:t},e];return n&amp;&amp;(t=n[0],e=n[1]),t.range(r[0],Ns(+r[1]+1),e&lt;1?1:e)},i.tickFormat=function(){return n},i.copy=function(){return Bs(e.copy(),r,n)},wo(i,e)}function Ns(t){return new Date(t)}Os.iso=Date.prototype.toISOString&amp;&amp;+new Date(&quot;2000-01-01T00:00:00.000Z&quot;)?Fs:Rs,Fs.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},Fs.toString=Rs.toString,Pe.second=Re((function(t){return new ze(1e3*Math.floor(t/1e3))}),(function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))}),(function(t){return t.getSeconds()})),Pe.seconds=Pe.second.range,Pe.seconds.utc=Pe.second.utc.range,Pe.minute=Re((function(t){return new ze(6e4*Math.floor(t/6e4))}),(function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))}),(function(t){return t.getMinutes()})),Pe.minutes=Pe.minute.range,Pe.minutes.utc=Pe.minute.utc.range,Pe.hour=Re((function(t){var e=t.getTimezoneOffset()/60;return new ze(36e5*(Math.floor(t/36e5-e)+e))}),(function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))}),(function(t){return t.getHours()})),Pe.hours=Pe.hour.range,Pe.hours.utc=Pe.hour.utc.range,Pe.month=Re((function(t){return(t=Pe.day(t)).setDate(1),t}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t){return t.getMonth()})),Pe.months=Pe.month.range,Pe.months.utc=Pe.month.utc.range;var js=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Us=[[Pe.second,1],[Pe.second,5],[Pe.second,15],[Pe.second,30],[Pe.minute,1],[Pe.minute,5],[Pe.minute,15],[Pe.minute,30],[Pe.hour,1],[Pe.hour,3],[Pe.hour,6],[Pe.hour,12],[Pe.day,1],[Pe.day,2],[Pe.week,1],[Pe.month,1],[Pe.month,3],[Pe.year,1]],Vs=Os.multi([[&quot;.%L&quot;,function(t){return t.getMilliseconds()}],[&quot;:%S&quot;,function(t){return t.getSeconds()}],[&quot;%I:%M&quot;,function(t){return t.getMinutes()}],[&quot;%I %p&quot;,function(t){return t.getHours()}],[&quot;%a %d&quot;,function(t){return t.getDay()&amp;&amp;1!=t.getDate()}],[&quot;%b %d&quot;,function(t){return 1!=t.getDate()}],[&quot;%B&quot;,function(t){return t.getMonth()}],[&quot;%Y&quot;,Yr]]),qs={range:function(e,r,n){return t.range(Math.ceil(e/n)*n,+r,n).map(Ns)},floor:L,ceil:L};Us.year=Pe.year,Pe.scale=function(){return Bs(t.scale.linear(),Us,Vs)};var Hs=Us.map((function(t){return[t[0].utc,t[1]]})),Gs=Ds.multi([[&quot;.%L&quot;,function(t){return t.getUTCMilliseconds()}],[&quot;:%S&quot;,function(t){return t.getUTCSeconds()}],[&quot;%I:%M&quot;,function(t){return t.getUTCMinutes()}],[&quot;%I %p&quot;,function(t){return t.getUTCHours()}],[&quot;%a %d&quot;,function(t){return t.getUTCDay()&amp;&amp;1!=t.getUTCDate()}],[&quot;%b %d&quot;,function(t){return 1!=t.getUTCDate()}],[&quot;%B&quot;,function(t){return t.getUTCMonth()}],[&quot;%Y&quot;,Yr]]);function Ys(t){return JSON.parse(t.responseText)}function Ws(t){var e=i.createRange();return e.selectNode(i.body),e.createContextualFragment(t.responseText)}Hs.year=Pe.year.utc,Pe.scale.utc=function(){return Bs(t.scale.linear(),Hs,Gs)},t.text=ge((function(t){return t.responseText})),t.json=function(t,e){return me(t,&quot;application/json&quot;,Ys,e)},t.html=function(t,e){return me(t,&quot;text/html&quot;,Ws,e)},t.xml=ge((function(t){return t.responseXML})),&quot;object&quot;==typeof e&amp;&amp;e.exports?e.exports=t:this.d3=t}()},{}],170:[function(t,e,r){e.exports=function(){for(var t=0;t&lt;arguments.length;t++)if(void 0!==arguments[t])return arguments[t]}},{}],171:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;incremental-convex-hull&quot;),i=t(&quot;uniq&quot;);function a(t,e){this.point=t,this.index=e}function o(t,e){for(var r=t.point,n=e.point,i=r.length,a=0;a&lt;i;++a){var o=n[a]-r[a];if(o)return o}return 0}e.exports=function(t,e){var r=t.length;if(0===r)return[];var s=t[0].length;if(s&lt;1)return[];if(1===s)return function(t,e,r){if(1===t)return r?[[-1,0]]:[];var n=e.map((function(t,e){return[t[0],e]}));n.sort((function(t,e){return t[0]-e[0]}));for(var i=new Array(t-1),a=1;a&lt;t;++a){var o=n[a-1],s=n[a];i[a-1]=[o[1],s[1]]}r&amp;&amp;i.push([-1,i[0][1]],[i[t-1][1],-1]);return i}(r,t,e);for(var l=new Array(r),c=1,u=0;u&lt;r;++u){for(var f=t[u],h=new Array(s+1),p=0,d=0;d&lt;s;++d){var g=f[d];h[d]=g,p+=g*g}h[s]=p,l[u]=new a(h,u),c=Math.max(p,c)}i(l,o),r=l.length;var m=new Array(r+s+1),v=new Array(r+s+1),y=(s+1)*(s+1)*c,x=new Array(s+1);for(u=0;u&lt;=s;++u)x[u]=0;x[s]=y,m[0]=x.slice(),v[0]=-1;for(u=0;u&lt;=s;++u){(h=x.slice())[u]=1,m[u+1]=h,v[u+1]=-1}for(u=0;u&lt;r;++u){var b=l[u];m[u+s+1]=b.point,v[u+s+1]=b.index}var _=n(m,!1);_=e?_.filter((function(t){for(var e=0,r=0;r&lt;=s;++r){var n=v[t[r]];if(n&lt;0&amp;&amp;++e&gt;=2)return!1;t[r]=n}return!0})):_.filter((function(t){for(var e=0;e&lt;=s;++e){var r=v[t[e]];if(r&lt;0)return!1;t[e]=r}return!0}));if(1&amp;s)for(u=0;u&lt;_.length;++u){h=(b=_[u])[0];b[0]=b[1],b[1]=h}return _}},{&quot;incremental-convex-hull&quot;:459,uniq:597}],172:[function(t,e,r){&quot;use strict&quot;;e.exports=a;var n=(a.canvas=document.createElement(&quot;canvas&quot;)).getContext(&quot;2d&quot;),i=o([32,126]);function a(t,e){Array.isArray(t)&amp;&amp;(t=t.join(&quot;, &quot;));var r,a={},s=16,l=.05;e&amp;&amp;(2===e.length&amp;&amp;&quot;number&quot;==typeof e[0]?r=o(e):Array.isArray(e)?r=e:(e.o?r=o(e.o):e.pairs&amp;&amp;(r=e.pairs),e.fontSize&amp;&amp;(s=e.fontSize),null!=e.threshold&amp;&amp;(l=e.threshold))),r||(r=i),n.font=s+&quot;px &quot;+t;for(var c=0;c&lt;r.length;c++){var u=r[c],f=n.measureText(u[0]).width+n.measureText(u[1]).width,h=n.measureText(u).width;if(Math.abs(f-h)&gt;s*l){var p=(h-f)/s;a[u]=1e3*p}}return a}function o(t){for(var e=[],r=t[0];r&lt;=t[1];r++)for(var n=String.fromCharCode(r),i=t[0];i&lt;t[1];i++){var a=n+String.fromCharCode(i);e.push(a)}return e}a.createPairs=o,a.ascii=i},{}],173:[function(t,e,r){(function(t){(function(){var r=!1;if(&quot;undefined&quot;!=typeof Float64Array){var n=new Float64Array(1),i=new Uint32Array(n.buffer);if(n[0]=1,r=!0,1072693248===i[1]){e.exports=function(t){return n[0]=t,[i[0],i[1]]},e.exports.pack=function(t,e){return i[0]=t,i[1]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[0]},e.exports.hi=function(t){return n[0]=t,i[1]}}else if(1072693248===i[0]){e.exports=function(t){return n[0]=t,[i[1],i[0]]},e.exports.pack=function(t,e){return i[1]=t,i[0]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[1]},e.exports.hi=function(t){return n[0]=t,i[0]}}else r=!1}if(!r){var a=new t(8);e.exports=function(t){return a.writeDoubleLE(t,0,!0),[a.readUInt32LE(0,!0),a.readUInt32LE(4,!0)]},e.exports.pack=function(t,e){return a.writeUInt32LE(t,0,!0),a.writeUInt32LE(e,4,!0),a.readDoubleLE(0,!0)},e.exports.lo=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(0,!0)},e.exports.hi=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(4,!0)}}e.exports.sign=function(t){return e.exports.hi(t)&gt;&gt;&gt;31},e.exports.exponent=function(t){return(e.exports.hi(t)&lt;&lt;1&gt;&gt;&gt;21)-1023},e.exports.fraction=function(t){var r=e.exports.lo(t),n=e.exports.hi(t),i=1048575&amp;n;return 2146435072&amp;n&amp;&amp;(i+=1&lt;&lt;20),[r,i]},e.exports.denormalized=function(t){return!(2146435072&amp;e.exports.hi(t))}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{buffer:111}],174:[function(t,e,r){var n=t(&quot;abs-svg-path&quot;),i=t(&quot;normalize-svg-path&quot;),a={M:&quot;moveTo&quot;,C:&quot;bezierCurveTo&quot;};e.exports=function(t,e){t.beginPath(),i(n(e)).forEach((function(e){var r=e[0],n=e.slice(1);t[a[r]].apply(t,n)})),t.closePath()}},{&quot;abs-svg-path&quot;:65,&quot;normalize-svg-path&quot;:497}],175:[function(t,e,r){e.exports=function(t){switch(t){case&quot;int8&quot;:return Int8Array;case&quot;int16&quot;:return Int16Array;case&quot;int32&quot;:return Int32Array;case&quot;uint8&quot;:return Uint8Array;case&quot;uint16&quot;:return Uint16Array;case&quot;uint32&quot;:return Uint32Array;case&quot;float32&quot;:return Float32Array;case&quot;float64&quot;:return Float64Array;case&quot;array&quot;:return Array;case&quot;uint8_clamped&quot;:return Uint8ClampedArray}}},{}],176:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){switch(&quot;undefined&quot;==typeof e&amp;&amp;(e=0),typeof t){case&quot;number&quot;:if(t&gt;0)return function(t,e){var r,n;for(r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}(0|t,e);break;case&quot;object&quot;:if(&quot;number&quot;==typeof t.length)return function t(e,r,n){var i=0|e[n];if(i&lt;=0)return[];var a,o=new Array(i);if(n===e.length-1)for(a=0;a&lt;i;++a)o[a]=r;else for(a=0;a&lt;i;++a)o[a]=t(e,r,n+1);return o}(t,e,0)}return[]}},{}],177:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){r=r||2;var n,s,l,c,u,p,d,m=e&amp;&amp;e.length,v=m?e[0]*r:t.length,y=i(t,0,v,r,!0),x=[];if(!y||y.next===y.prev)return x;if(m&amp;&amp;(y=function(t,e,r,n){var o,s,l,c,u,p=[];for(o=0,s=e.length;o&lt;s;o++)l=e[o]*n,c=o&lt;s-1?e[o+1]*n:t.length,(u=i(t,l,c,n,!1))===u.next&amp;&amp;(u.steiner=!0),p.push(g(u));for(p.sort(f),o=0;o&lt;p.length;o++)h(p[o],r),r=a(r,r.next);return r}(t,e,y,r)),t.length&gt;80*r){n=l=t[0],s=c=t[1];for(var b=r;b&lt;v;b+=r)(u=t[b])&lt;n&amp;&amp;(n=u),(p=t[b+1])&lt;s&amp;&amp;(s=p),u&gt;l&amp;&amp;(l=u),p&gt;c&amp;&amp;(c=p);d=0!==(d=Math.max(l-n,c-s))?1/d:0}return o(y,x,r,n,s,d),x}function i(t,e,r,n,i){var a,o;if(i===E(t,e,r,n)&gt;0)for(a=e;a&lt;r;a+=n)o=M(a,t[a],t[a+1],o);else for(a=r-n;a&gt;=e;a-=n)o=M(a,t[a],t[a+1],o);return o&amp;&amp;x(o,o.next)&amp;&amp;(A(o),o=o.next),o}function a(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!x(n,n.next)&amp;&amp;0!==y(n.prev,n,n.next))n=n.next;else{if(A(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function o(t,e,r,n,i,f,h){if(t){!h&amp;&amp;f&amp;&amp;function(t,e,r,n){var i=t;do{null===i.z&amp;&amp;(i.z=d(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e&lt;c&amp;&amp;(s++,n=n.nextZ);e++);for(l=c;s&gt;0||l&gt;0&amp;&amp;n;)0!==s&amp;&amp;(0===l||!n||r.z&lt;=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o&gt;1)}(i)}(t,n,i,f);for(var p,g,m=t;t.prev!==t.next;)if(p=t.prev,g=t.next,f?l(t,n,i,f):s(t))e.push(p.i/r),e.push(t.i/r),e.push(g.i/r),A(t),t=g.next,m=g.next;else if((t=g)===m){h?1===h?o(t=c(a(t),e,r),e,r,n,i,f,2):2===h&amp;&amp;u(t,e,r,n,i,f):o(a(t),e,r,n,i,f,1);break}}}function s(t){var e=t.prev,r=t,n=t.next;if(y(e,r,n)&gt;=0)return!1;for(var i=t.next.next;i!==t.prev;){if(m(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&amp;&amp;y(i.prev,i,i.next)&gt;=0)return!1;i=i.next}return!0}function l(t,e,r,n){var i=t.prev,a=t,o=t.next;if(y(i,a,o)&gt;=0)return!1;for(var s=i.x&lt;a.x?i.x&lt;o.x?i.x:o.x:a.x&lt;o.x?a.x:o.x,l=i.y&lt;a.y?i.y&lt;o.y?i.y:o.y:a.y&lt;o.y?a.y:o.y,c=i.x&gt;a.x?i.x&gt;o.x?i.x:o.x:a.x&gt;o.x?a.x:o.x,u=i.y&gt;a.y?i.y&gt;o.y?i.y:o.y:a.y&gt;o.y?a.y:o.y,f=d(s,l,e,r,n),h=d(c,u,e,r,n),p=t.prevZ,g=t.nextZ;p&amp;&amp;p.z&gt;=f&amp;&amp;g&amp;&amp;g.z&lt;=h;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;y(p.prev,p,p.next)&gt;=0)return!1;if(p=p.prevZ,g!==t.prev&amp;&amp;g!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&amp;&amp;y(g.prev,g,g.next)&gt;=0)return!1;g=g.nextZ}for(;p&amp;&amp;p.z&gt;=f;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;y(p.prev,p,p.next)&gt;=0)return!1;p=p.prevZ}for(;g&amp;&amp;g.z&lt;=h;){if(g!==t.prev&amp;&amp;g!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&amp;&amp;y(g.prev,g,g.next)&gt;=0)return!1;g=g.nextZ}return!0}function c(t,e,r){var n=t;do{var i=n.prev,o=n.next.next;!x(i,o)&amp;&amp;b(i,n,n.next,o)&amp;&amp;T(i,o)&amp;&amp;T(o,i)&amp;&amp;(e.push(i.i/r),e.push(n.i/r),e.push(o.i/r),A(n),A(n.next),n=t=o),n=n.next}while(n!==t);return a(n)}function u(t,e,r,n,i,s){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&amp;&amp;v(l,c)){var u=k(l,c);return l=a(l,l.next),u=a(u,u.next),o(l,e,r,n,i,s),void o(u,e,r,n,i,s)}c=c.next}l=l.next}while(l!==t)}function f(t,e){return t.x-e.x}function h(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a&lt;=n.y&amp;&amp;a&gt;=n.next.y&amp;&amp;n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s&lt;=i&amp;&amp;s&gt;o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x&lt;n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,h=1/0;n=r;do{i&gt;=n.x&amp;&amp;n.x&gt;=u&amp;&amp;i!==n.x&amp;&amp;m(a&lt;f?i:o,a,u,f,a&lt;f?o:i,a,n.x,n.y)&amp;&amp;(l=Math.abs(a-n.y)/(i-n.x),T(n,t)&amp;&amp;(l&lt;h||l===h&amp;&amp;(n.x&gt;r.x||n.x===r.x&amp;&amp;p(r,n)))&amp;&amp;(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e)){var r=k(e,t);a(e,e.next),a(r,r.next)}}function p(t,e){return y(t.prev,t,e.prev)&lt;0&amp;&amp;y(e.next,t,t.next)&lt;0}function d(t,e,r,n,i){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t=32767*(t-r)*i)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e=32767*(e-n)*i)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1}function g(t){var e=t,r=t;do{(e.x&lt;r.x||e.x===r.x&amp;&amp;e.y&lt;r.y)&amp;&amp;(r=e),e=e.next}while(e!==t);return r}function m(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)&gt;=0&amp;&amp;(t-o)*(n-s)-(r-o)*(e-s)&gt;=0&amp;&amp;(r-o)*(a-s)-(i-o)*(n-s)&gt;=0}function v(t,e){return t.next.i!==e.i&amp;&amp;t.prev.i!==e.i&amp;&amp;!function(t,e){var r=t;do{if(r.i!==t.i&amp;&amp;r.next.i!==t.i&amp;&amp;r.i!==e.i&amp;&amp;r.next.i!==e.i&amp;&amp;b(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&amp;&amp;(T(t,e)&amp;&amp;T(e,t)&amp;&amp;function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y&gt;a!=r.next.y&gt;a&amp;&amp;r.next.y!==r.y&amp;&amp;i&lt;(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&amp;&amp;(n=!n),r=r.next}while(r!==t);return n}(t,e)&amp;&amp;(y(t.prev,t,e.prev)||y(t,e.prev,e))||x(t,e)&amp;&amp;y(t.prev,t,t.next)&gt;0&amp;&amp;y(e.prev,e,e.next)&gt;0)}function y(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function x(t,e){return t.x===e.x&amp;&amp;t.y===e.y}function b(t,e,r,n){var i=w(y(t,e,r)),a=w(y(t,e,n)),o=w(y(r,n,t)),s=w(y(r,n,e));return i!==a&amp;&amp;o!==s||(!(0!==i||!_(t,r,e))||(!(0!==a||!_(t,n,e))||(!(0!==o||!_(r,t,n))||!(0!==s||!_(r,e,n)))))}function _(t,e,r){return e.x&lt;=Math.max(t.x,r.x)&amp;&amp;e.x&gt;=Math.min(t.x,r.x)&amp;&amp;e.y&lt;=Math.max(t.y,r.y)&amp;&amp;e.y&gt;=Math.min(t.y,r.y)}function w(t){return t&gt;0?1:t&lt;0?-1:0}function T(t,e){return y(t.prev,t,t.next)&lt;0?y(t,e,t.next)&gt;=0&amp;&amp;y(t,t.prev,e)&gt;=0:y(t,e,t.prev)&lt;0||y(t,t.next,e)&lt;0}function k(t,e){var r=new S(t.i,t.x,t.y),n=new S(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function M(t,e,r,n){var i=new S(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function A(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&amp;&amp;(t.prevZ.nextZ=t.nextZ),t.nextZ&amp;&amp;(t.nextZ.prevZ=t.prevZ)}function S(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function E(t,e,r,n){for(var i=0,a=e,o=r-n;a&lt;r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}e.exports=n,e.exports.default=n,n.deviation=function(t,e,r,n){var i=e&amp;&amp;e.length,a=i?e[0]*r:t.length,o=Math.abs(E(t,0,a,r));if(i)for(var s=0,l=e.length;s&lt;l;s++){var c=e[s]*r,u=s&lt;l-1?e[s+1]*r:t.length;o-=Math.abs(E(t,c,u,r))}var f=0;for(s=0;s&lt;n.length;s+=3){var h=n[s]*r,p=n[s+1]*r,d=n[s+2]*r;f+=Math.abs((t[h]-t[d])*(t[p+1]-t[h+1])-(t[h]-t[p])*(t[d+1]-t[h+1]))}return 0===o&amp;&amp;0===f?0:Math.abs((f-o)/o)},n.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i&lt;t.length;i++){for(var a=0;a&lt;t[i].length;a++)for(var o=0;o&lt;e;o++)r.vertices.push(t[i][a][o]);i&gt;0&amp;&amp;(n+=t[i-1].length,r.holes.push(n))}return r}},{}],178:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.length;if(&quot;number&quot;!=typeof e){e=0;for(var i=0;i&lt;r;++i){var a=t[i];e=Math.max(e,a[0],a[1])}e=1+(0|e)}e|=0;var o=new Array(e);for(i=0;i&lt;e;++i)o[i]=[];for(i=0;i&lt;r;++i){a=t[i];o[a[0]].push(a[1]),o[a[1]].push(a[0])}for(var s=0;s&lt;e;++s)n(o[s],(function(t,e){return t-e}));return o};var n=t(&quot;uniq&quot;)},{uniq:597}],179:[function(t,e,r){var n=t(&quot;strongly-connected-components&quot;);e.exports=function(t,e){var r,i=[],a=[],o=[],s={},l=[];function c(t){var e,n,i=!1;for(a.push(t),o[t]=!0,e=0;e&lt;l[t].length;e++)(n=l[t][e])===r?(u(r,a),i=!0):o[n]||(i=c(n));if(i)!function t(e){o[e]=!1,s.hasOwnProperty(e)&amp;&amp;Object.keys(s[e]).forEach((function(r){delete s[e][r],o[r]&amp;&amp;t(r)}))}(t);else for(e=0;e&lt;l[t].length;e++){n=l[t][e];var f=s[n];f||(f={},s[n]=f),f[n]=!0}return a.pop(),i}function u(t,r){var n=[].concat(r).concat(t);e?e(c):i.push(n)}function f(e){!function(e){for(var r=0;r&lt;t.length;r++)r&lt;e&amp;&amp;(t[r]=[]),t[r]=t[r].filter((function(t){return t&gt;=e}))}(e);for(var r,i=n(t).components.filter((function(t){return t.length&gt;1})),a=1/0,o=0;o&lt;i.length;o++)for(var s=0;s&lt;i[o].length;s++)i[o][s]&lt;a&amp;&amp;(a=i[o][s],r=o);var l=i[r];return!!l&amp;&amp;{leastVertex:a,adjList:t.map((function(t,e){return-1===l.indexOf(e)?[]:t.filter((function(t){return-1!==l.indexOf(t)}))}))}}r=0;for(var h=t.length;r&lt;h;){var p=f(r);if(r=p.leastVertex,l=p.adjList){for(var d=0;d&lt;l.length;d++)for(var g=0;g&lt;l[d].length;g++){var m=l[d][g];o[+m]=!1,s[m]={}}c(r),r+=1}else r=h}return e?void 0:i}},{&quot;strongly-connected-components&quot;:569}],180:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../object/valid-value&quot;);e.exports=function(){return n(this).length=0,this}},{&quot;../../object/valid-value&quot;:211}],181:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Array.from:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:182,&quot;./shim&quot;:183}],182:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e,r=Array.from;return&quot;function&quot;==typeof r&amp;&amp;(e=r(t=[&quot;raz&quot;,&quot;dwa&quot;]),Boolean(e&amp;&amp;e!==t&amp;&amp;&quot;dwa&quot;===e[1]))}},{}],183:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es6-symbol&quot;).iterator,i=t(&quot;../../function/is-arguments&quot;),a=t(&quot;../../function/is-function&quot;),o=t(&quot;../../number/to-pos-integer&quot;),s=t(&quot;../../object/valid-callable&quot;),l=t(&quot;../../object/valid-value&quot;),c=t(&quot;../../object/is-value&quot;),u=t(&quot;../../string/is-string&quot;),f=Array.isArray,h=Function.prototype.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},d=Object.defineProperty;e.exports=function(t){var e,r,g,m,v,y,x,b,_,w,T=arguments[1],k=arguments[2];if(t=Object(l(t)),c(T)&amp;&amp;s(T),this&amp;&amp;this!==Array&amp;&amp;a(this))e=this;else{if(!T){if(i(t))return 1!==(v=t.length)?Array.apply(null,t):((m=new Array(1))[0]=t[0],m);if(f(t)){for(m=new Array(v=t.length),r=0;r&lt;v;++r)m[r]=t[r];return m}}m=[]}if(!f(t))if(void 0!==(_=t[n])){for(x=s(_).call(t),e&amp;&amp;(m=new e),b=x.next(),r=0;!b.done;)w=T?h.call(T,k,b.value,r):b.value,e?(p.value=w,d(m,r,p)):m[r]=w,b=x.next(),++r;v=r}else if(u(t)){for(v=t.length,e&amp;&amp;(m=new e),r=0,g=0;r&lt;v;++r)w=t[r],r+1&lt;v&amp;&amp;(y=w.charCodeAt(0))&gt;=55296&amp;&amp;y&lt;=56319&amp;&amp;(w+=t[++r]),w=T?h.call(T,k,w,g):w,e?(p.value=w,d(m,g,p)):m[g]=w,++g;v=g}if(void 0===v)for(v=o(t.length),e&amp;&amp;(m=new e(v)),r=0;r&lt;v;++r)w=T?h.call(T,k,t[r],r):t[r],e?(p.value=w,d(m,r,p)):m[r]=w;return e&amp;&amp;(p.value=null,m.length=v),m}},{&quot;../../function/is-arguments&quot;:184,&quot;../../function/is-function&quot;:185,&quot;../../number/to-pos-integer&quot;:191,&quot;../../object/is-value&quot;:200,&quot;../../object/valid-callable&quot;:209,&quot;../../object/valid-value&quot;:211,&quot;../../string/is-string&quot;:215,&quot;es6-symbol&quot;:225}],184:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=n.call(function(){return arguments}());e.exports=function(t){return n.call(t)===i}},{}],185:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);e.exports=function(t){return&quot;function&quot;==typeof t&amp;&amp;i(n.call(t))}},{}],186:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){}},{}],187:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Math.sign:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:188,&quot;./shim&quot;:189}],188:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t=Math.sign;return&quot;function&quot;==typeof t&amp;&amp;(1===t(10)&amp;&amp;-1===t(-20))}},{}],189:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t=Number(t),isNaN(t)||0===t?t:t&gt;0?1:-1}},{}],190:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../math/sign&quot;),i=Math.abs,a=Math.floor;e.exports=function(t){return isNaN(t)?0:0!==(t=Number(t))&amp;&amp;isFinite(t)?n(t)*a(i(t)):t}},{&quot;../math/sign&quot;:187}],191:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./to-integer&quot;),i=Math.max;e.exports=function(t){return i(0,n(t))}},{&quot;./to-integer&quot;:190}],192:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./valid-callable&quot;),i=t(&quot;./valid-value&quot;),a=Function.prototype.bind,o=Function.prototype.call,s=Object.keys,l=Object.prototype.propertyIsEnumerable;e.exports=function(t,e){return function(r,c){var u,f=arguments[2],h=arguments[3];return r=Object(i(r)),n(c),u=s(r),h&amp;&amp;u.sort(&quot;function&quot;==typeof h?a.call(h,r):void 0),&quot;function&quot;!=typeof t&amp;&amp;(t=u[t]),o.call(t,u,(function(t,n){return l.call(r,t)?o.call(c,f,r[t],t,r,n):e}))}}},{&quot;./valid-callable&quot;:209,&quot;./valid-value&quot;:211}],193:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.assign:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:194,&quot;./shim&quot;:195}],194:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e=Object.assign;return&quot;function&quot;==typeof e&amp;&amp;(e(t={foo:&quot;raz&quot;},{bar:&quot;dwa&quot;},{trzy:&quot;trzy&quot;}),t.foo+t.bar+t.trzy===&quot;razdwatrzy&quot;)}},{}],195:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../keys&quot;),i=t(&quot;../valid-value&quot;),a=Math.max;e.exports=function(t,e){var r,o,s,l=a(arguments.length,2);for(t=Object(i(t)),s=function(n){try{t[n]=e[n]}catch(t){r||(r=t)}},o=1;o&lt;l;++o)n(e=arguments[o]).forEach(s);if(void 0!==r)throw r;return t}},{&quot;../keys&quot;:201,&quot;../valid-value&quot;:211}],196:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../array/from&quot;),i=t(&quot;./assign&quot;),a=t(&quot;./valid-value&quot;);e.exports=function(t){var e=Object(a(t)),r=arguments[1],o=Object(arguments[2]);if(e!==t&amp;&amp;!r)return e;var s={};return r?n(r,(function(e){(o.ensure||e in t)&amp;&amp;(s[e]=t[e])})):i(s,t),s}},{&quot;../array/from&quot;:181,&quot;./assign&quot;:193,&quot;./valid-value&quot;:211}],197:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o,s=Object.create;t(&quot;./set-prototype-of/is-implemented&quot;)()||(n=t(&quot;./set-prototype-of/shim&quot;)),e.exports=n?1!==n.level?s:(i={},a={},o={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach((function(t){a[t]=&quot;__proto__&quot;!==t?o:{configurable:!0,enumerable:!1,writable:!0,value:void 0}})),Object.defineProperties(i,a),Object.defineProperty(n,&quot;nullPolyfill&quot;,{configurable:!1,enumerable:!1,writable:!1,value:i}),function(t,e){return s(null===t?i:t,e)}):s},{&quot;./set-prototype-of/is-implemented&quot;:207,&quot;./set-prototype-of/shim&quot;:208}],198:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./_iterate&quot;)(&quot;forEach&quot;)},{&quot;./_iterate&quot;:192}],199:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;),i={function:!0,object:!0};e.exports=function(t){return n(t)&amp;&amp;i[typeof t]||!1}},{&quot;./is-value&quot;:200}],200:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../function/noop&quot;)();e.exports=function(t){return t!==n&amp;&amp;null!==t}},{&quot;../function/noop&quot;:186}],201:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.keys:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:202,&quot;./shim&quot;:203}],202:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){try{return Object.keys(&quot;primitive&quot;),!0}catch(t){return!1}}},{}],203:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../is-value&quot;),i=Object.keys;e.exports=function(t){return i(n(t)?Object(t):t)}},{&quot;../is-value&quot;:200}],204:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./valid-callable&quot;),i=t(&quot;./for-each&quot;),a=Function.prototype.call;e.exports=function(t,e){var r={},o=arguments[2];return n(e),i(t,(function(t,n,i,s){r[n]=a.call(e,o,t,n,i,s)})),r}},{&quot;./for-each&quot;:198,&quot;./valid-callable&quot;:209}],205:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;),i=Array.prototype.forEach,a=Object.create,o=function(t,e){var r;for(r in t)e[r]=t[r]};e.exports=function(t){var e=a(null);return i.call(arguments,(function(t){n(t)&amp;&amp;o(Object(t),e)})),e}},{&quot;./is-value&quot;:200}],206:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.setPrototypeOf:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:207,&quot;./shim&quot;:208}],207:[function(t,e,r){&quot;use strict&quot;;var n=Object.create,i=Object.getPrototypeOf,a={};e.exports=function(){var t=Object.setPrototypeOf,e=arguments[0]||n;return&quot;function&quot;==typeof t&amp;&amp;i(t(e(null),a))===a}},{}],208:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;../is-object&quot;),a=t(&quot;../valid-value&quot;),o=Object.prototype.isPrototypeOf,s=Object.defineProperty,l={configurable:!0,enumerable:!1,writable:!0,value:void 0};n=function(t,e){if(a(t),null===e||i(e))return t;throw new TypeError(&quot;Prototype must be null or an object&quot;)},e.exports=function(t){var e,r;return t?(2===t.level?t.set?(r=t.set,e=function(t,e){return r.call(n(t,e),e),t}):e=function(t,e){return n(t,e).__proto__=e,t}:e=function t(e,r){var i;return n(e,r),(i=o.call(t.nullPolyfill,e))&amp;&amp;delete t.nullPolyfill.__proto__,null===r&amp;&amp;(r=t.nullPolyfill),e.__proto__=r,i&amp;&amp;s(t.nullPolyfill,&quot;__proto__&quot;,l),e},Object.defineProperty(e,&quot;level&quot;,{configurable:!1,enumerable:!1,writable:!1,value:t.level})):null}(function(){var t,e=Object.create(null),r={},n=Object.getOwnPropertyDescriptor(Object.prototype,&quot;__proto__&quot;);if(n){try{(t=n.set).call(e,r)}catch(t){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:((e={}).__proto__=r,Object.getPrototypeOf(e)===r&amp;&amp;{level:1})}()),t(&quot;../create&quot;)},{&quot;../create&quot;:197,&quot;../is-object&quot;:199,&quot;../valid-value&quot;:211}],209:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){if(&quot;function&quot;!=typeof t)throw new TypeError(t+&quot; is not a function&quot;);return t}},{}],210:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-object&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not an Object&quot;);return t}},{&quot;./is-object&quot;:199}],211:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;);e.exports=function(t){if(!n(t))throw new TypeError(&quot;Cannot use null or undefined&quot;);return t}},{&quot;./is-value&quot;:200}],212:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?String.prototype.contains:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:213,&quot;./shim&quot;:214}],213:[function(t,e,r){&quot;use strict&quot;;var n=&quot;razdwatrzy&quot;;e.exports=function(){return&quot;function&quot;==typeof n.contains&amp;&amp;(!0===n.contains(&quot;dwa&quot;)&amp;&amp;!1===n.contains(&quot;foo&quot;))}},{}],214:[function(t,e,r){&quot;use strict&quot;;var n=String.prototype.indexOf;e.exports=function(t){return n.call(this,t,arguments[1])&gt;-1}},{}],215:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=n.call(&quot;&quot;);e.exports=function(t){return&quot;string&quot;==typeof t||t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;(t instanceof String||n.call(t)===i)||!1}},{}],216:[function(t,e,r){&quot;use strict&quot;;var n=Object.create(null),i=Math.random;e.exports=function(){var t;do{t=i().toString(36).slice(2)}while(n[t]);return t}},{}],217:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/set-prototype-of&quot;),a=t(&quot;es5-ext/string/#/contains&quot;),o=t(&quot;d&quot;),s=t(&quot;es6-symbol&quot;),l=t(&quot;./&quot;),c=Object.defineProperty;n=e.exports=function(t,e){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);l.call(this,t),e=e?a.call(e,&quot;key+value&quot;)?&quot;key+value&quot;:a.call(e,&quot;key&quot;)?&quot;key&quot;:&quot;value&quot;:&quot;value&quot;,c(this,&quot;__kind__&quot;,o(&quot;&quot;,e))},i&amp;&amp;i(n,l),delete n.prototype.constructor,n.prototype=Object.create(l.prototype,{_resolve:o((function(t){return&quot;value&quot;===this.__kind__?this.__list__[t]:&quot;key+value&quot;===this.__kind__?[t,this.__list__[t]]:t}))}),c(n.prototype,s.toStringTag,o(&quot;c&quot;,&quot;Array Iterator&quot;))},{&quot;./&quot;:220,d:155,&quot;es5-ext/object/set-prototype-of&quot;:206,&quot;es5-ext/string/#/contains&quot;:212,&quot;es6-symbol&quot;:225}],218:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/object/valid-callable&quot;),a=t(&quot;es5-ext/string/is-string&quot;),o=t(&quot;./get&quot;),s=Array.isArray,l=Function.prototype.call,c=Array.prototype.some;e.exports=function(t,e){var r,u,f,h,p,d,g,m,v=arguments[2];if(s(t)||n(t)?r=&quot;array&quot;:a(t)?r=&quot;string&quot;:t=o(t),i(e),f=function(){h=!0},&quot;array&quot;!==r)if(&quot;string&quot;!==r)for(u=t.next();!u.done;){if(l.call(e,v,u.value,f),h)return;u=t.next()}else for(d=t.length,p=0;p&lt;d&amp;&amp;(g=t[p],p+1&lt;d&amp;&amp;(m=g.charCodeAt(0))&gt;=55296&amp;&amp;m&lt;=56319&amp;&amp;(g+=t[++p]),l.call(e,v,g,f),!h);++p);else c.call(t,(function(t){return l.call(e,v,t,f),h}))}},{&quot;./get&quot;:219,&quot;es5-ext/function/is-arguments&quot;:184,&quot;es5-ext/object/valid-callable&quot;:209,&quot;es5-ext/string/is-string&quot;:215}],219:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/string/is-string&quot;),a=t(&quot;./array&quot;),o=t(&quot;./string&quot;),s=t(&quot;./valid-iterable&quot;),l=t(&quot;es6-symbol&quot;).iterator;e.exports=function(t){return&quot;function&quot;==typeof s(t)[l]?t[l]():n(t)?new a(t):i(t)?new o(t):new a(t)}},{&quot;./array&quot;:217,&quot;./string&quot;:222,&quot;./valid-iterable&quot;:223,&quot;es5-ext/function/is-arguments&quot;:184,&quot;es5-ext/string/is-string&quot;:215,&quot;es6-symbol&quot;:225}],220:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/array/#/clear&quot;),a=t(&quot;es5-ext/object/assign&quot;),o=t(&quot;es5-ext/object/valid-callable&quot;),s=t(&quot;es5-ext/object/valid-value&quot;),l=t(&quot;d&quot;),c=t(&quot;d/auto-bind&quot;),u=t(&quot;es6-symbol&quot;),f=Object.defineProperty,h=Object.defineProperties;e.exports=n=function(t,e){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);h(this,{__list__:l(&quot;w&quot;,s(t)),__context__:l(&quot;w&quot;,e),__nextIndex__:l(&quot;w&quot;,0)}),e&amp;&amp;(o(e.on),e.on(&quot;_add&quot;,this._onAdd),e.on(&quot;_delete&quot;,this._onDelete),e.on(&quot;_clear&quot;,this._onClear))},delete n.prototype.constructor,h(n.prototype,a({_next:l((function(){var t;if(this.__list__)return this.__redo__&amp;&amp;void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__&lt;this.__list__.length?this.__nextIndex__++:void this._unBind()})),next:l((function(){return this._createResult(this._next())})),_createResult:l((function(t){return void 0===t?{done:!0,value:void 0}:{done:!1,value:this._resolve(t)}})),_resolve:l((function(t){return this.__list__[t]})),_unBind:l((function(){this.__list__=null,delete this.__redo__,this.__context__&amp;&amp;(this.__context__.off(&quot;_add&quot;,this._onAdd),this.__context__.off(&quot;_delete&quot;,this._onDelete),this.__context__.off(&quot;_clear&quot;,this._onClear),this.__context__=null)})),toString:l((function(){return&quot;[object &quot;+(this[u.toStringTag]||&quot;Object&quot;)+&quot;]&quot;}))},c({_onAdd:l((function(t){t&gt;=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach((function(e,r){e&gt;=t&amp;&amp;(this.__redo__[r]=++e)}),this),this.__redo__.push(t)):f(this,&quot;__redo__&quot;,l(&quot;c&quot;,[t])))})),_onDelete:l((function(t){var e;t&gt;=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&amp;&amp;(-1!==(e=this.__redo__.indexOf(t))&amp;&amp;this.__redo__.splice(e,1),this.__redo__.forEach((function(e,r){e&gt;t&amp;&amp;(this.__redo__[r]=--e)}),this)))})),_onClear:l((function(){this.__redo__&amp;&amp;i.call(this.__redo__),this.__nextIndex__=0}))}))),f(n.prototype,u.iterator,l((function(){return this})))},{d:155,&quot;d/auto-bind&quot;:154,&quot;es5-ext/array/#/clear&quot;:180,&quot;es5-ext/object/assign&quot;:193,&quot;es5-ext/object/valid-callable&quot;:209,&quot;es5-ext/object/valid-value&quot;:211,&quot;es6-symbol&quot;:225}],221:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/object/is-value&quot;),a=t(&quot;es5-ext/string/is-string&quot;),o=t(&quot;es6-symbol&quot;).iterator,s=Array.isArray;e.exports=function(t){return!!i(t)&amp;&amp;(!!s(t)||(!!a(t)||(!!n(t)||&quot;function&quot;==typeof t[o])))}},{&quot;es5-ext/function/is-arguments&quot;:184,&quot;es5-ext/object/is-value&quot;:200,&quot;es5-ext/string/is-string&quot;:215,&quot;es6-symbol&quot;:225}],222:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/set-prototype-of&quot;),a=t(&quot;d&quot;),o=t(&quot;es6-symbol&quot;),s=t(&quot;./&quot;),l=Object.defineProperty;n=e.exports=function(t){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);t=String(t),s.call(this,t),l(this,&quot;__length__&quot;,a(&quot;&quot;,t.length))},i&amp;&amp;i(n,s),delete n.prototype.constructor,n.prototype=Object.create(s.prototype,{_next:a((function(){if(this.__list__)return this.__nextIndex__&lt;this.__length__?this.__nextIndex__++:void this._unBind()})),_resolve:a((function(t){var e,r=this.__list__[t];return this.__nextIndex__===this.__length__?r:(e=r.charCodeAt(0))&gt;=55296&amp;&amp;e&lt;=56319?r+this.__list__[this.__nextIndex__++]:r}))}),l(n.prototype,o.toStringTag,a(&quot;c&quot;,&quot;String Iterator&quot;))},{&quot;./&quot;:220,d:155,&quot;es5-ext/object/set-prototype-of&quot;:206,&quot;es6-symbol&quot;:225}],223:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-iterable&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not iterable&quot;);return t}},{&quot;./is-iterable&quot;:221}],224:[function(t,e,r){(function(n,i){(function(){
/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
 * @version   v4.2.8+1e68dce6
 */
!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?e.exports=n():t.ES6Promise=n()}(this,(function(){&quot;use strict&quot;;function e(t){return&quot;function&quot;==typeof t}var r=Array.isArray?Array.isArray:function(t){return&quot;[object Array]&quot;===Object.prototype.toString.call(t)},a=0,o=void 0,s=void 0,l=function(t,e){g[a]=t,g[a+1]=e,2===(a+=2)&amp;&amp;(s?s(m):_())};var c=&quot;undefined&quot;!=typeof window?window:void 0,u=c||{},f=u.MutationObserver||u.WebKitMutationObserver,h=&quot;undefined&quot;==typeof self&amp;&amp;&quot;undefined&quot;!=typeof n&amp;&amp;&quot;[object process]&quot;==={}.toString.call(n),p=&quot;undefined&quot;!=typeof Uint8ClampedArray&amp;&amp;&quot;undefined&quot;!=typeof importScripts&amp;&amp;&quot;undefined&quot;!=typeof MessageChannel;function d(){var t=setTimeout;return function(){return t(m,1)}}var g=new Array(1e3);function m(){for(var t=0;t&lt;a;t+=2){(0,g[t])(g[t+1]),g[t]=void 0,g[t+1]=void 0}a=0}var v,y,x,b,_=void 0;function w(t,e){var r=this,n=new this.constructor(M);void 0===n[k]&amp;&amp;D(n);var i=r._state;if(i){var a=arguments[i-1];l((function(){return z(i,n,a,r._result)}))}else I(r,n,t,e);return n}function T(t){if(t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;t.constructor===this)return t;var e=new this(M);return S(e,t),e}h?_=function(){return n.nextTick(m)}:f?(y=0,x=new f(m),b=document.createTextNode(&quot;&quot;),x.observe(b,{characterData:!0}),_=function(){b.data=y=++y%2}):p?((v=new MessageChannel).port1.onmessage=m,_=function(){return v.port2.postMessage(0)}):_=void 0===c&amp;&amp;&quot;function&quot;==typeof t?function(){try{var t=Function(&quot;return this&quot;)().require(&quot;vertx&quot;);return&quot;undefined&quot;!=typeof(o=t.runOnLoop||t.runOnContext)?function(){o(m)}:d()}catch(t){return d()}}():d();var k=Math.random().toString(36).substring(2);function M(){}function A(t,r,n){r.constructor===t.constructor&amp;&amp;n===w&amp;&amp;r.constructor.resolve===T?function(t,e){1===e._state?C(t,e._result):2===e._state?L(t,e._result):I(e,void 0,(function(e){return S(t,e)}),(function(e){return L(t,e)}))}(t,r):void 0===n?C(t,r):e(n)?function(t,e,r){l((function(t){var n=!1,i=function(t,e,r,n){try{t.call(e,r,n)}catch(t){return t}}(r,e,(function(r){n||(n=!0,e!==r?S(t,r):C(t,r))}),(function(e){n||(n=!0,L(t,e))}),t._label);!n&amp;&amp;i&amp;&amp;(n=!0,L(t,i))}),t)}(t,r,n):C(t,r)}function S(t,e){if(t===e)L(t,new TypeError(&quot;You cannot resolve a promise with itself&quot;));else if(i=typeof(n=e),null===n||&quot;object&quot;!==i&amp;&amp;&quot;function&quot;!==i)C(t,e);else{var r=void 0;try{r=e.then}catch(e){return void L(t,e)}A(t,e,r)}var n,i}function E(t){t._onerror&amp;&amp;t._onerror(t._result),P(t)}function C(t,e){void 0===t._state&amp;&amp;(t._result=e,t._state=1,0!==t._subscribers.length&amp;&amp;l(P,t))}function L(t,e){void 0===t._state&amp;&amp;(t._state=2,t._result=e,l(E,t))}function I(t,e,r,n){var i=t._subscribers,a=i.length;t._onerror=null,i[a]=e,i[a+1]=r,i[a+2]=n,0===a&amp;&amp;t._state&amp;&amp;l(P,t)}function P(t){var e=t._subscribers,r=t._state;if(0!==e.length){for(var n=void 0,i=void 0,a=t._result,o=0;o&lt;e.length;o+=3)n=e[o],i=e[o+r],n?z(r,n,i,a):i(a);t._subscribers.length=0}}function z(t,r,n,i){var a=e(n),o=void 0,s=void 0,l=!0;if(a){try{o=n(i)}catch(t){l=!1,s=t}if(r===o)return void L(r,new TypeError(&quot;A promises callback cannot return that same promise.&quot;))}else o=i;void 0!==r._state||(a&amp;&amp;l?S(r,o):!1===l?L(r,s):1===t?C(r,o):2===t&amp;&amp;L(r,o))}var O=0;function D(t){t[k]=O++,t._state=void 0,t._result=void 0,t._subscribers=[]}var R=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(M),this.promise[k]||D(this.promise),r(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?C(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&amp;&amp;C(this.promise,this._result))):L(this.promise,new Error(&quot;Array Methods must be provided an Array&quot;))}return t.prototype._enumerate=function(t){for(var e=0;void 0===this._state&amp;&amp;e&lt;t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,n=r.resolve;if(n===T){var i=void 0,a=void 0,o=!1;try{i=t.then}catch(t){o=!0,a=t}if(i===w&amp;&amp;void 0!==t._state)this._settledAt(t._state,e,t._result);else if(&quot;function&quot;!=typeof i)this._remaining--,this._result[e]=t;else if(r===F){var s=new r(M);o?L(s,a):A(s,t,i),this._willSettleAt(s,e)}else this._willSettleAt(new r((function(e){return e(t)})),e)}else this._willSettleAt(n(t),e)},t.prototype._settledAt=function(t,e,r){var n=this.promise;void 0===n._state&amp;&amp;(this._remaining--,2===t?L(n,r):this._result[e]=r),0===this._remaining&amp;&amp;C(n,this._result)},t.prototype._willSettleAt=function(t,e){var r=this;I(t,void 0,(function(t){return r._settledAt(1,e,t)}),(function(t){return r._settledAt(2,e,t)}))},t}();var F=function(){function t(e){this[k]=O++,this._result=this._state=void 0,this._subscribers=[],M!==e&amp;&amp;(&quot;function&quot;!=typeof e&amp;&amp;function(){throw new TypeError(&quot;You must pass a resolver function as the first argument to the promise constructor&quot;)}(),this instanceof t?function(t,e){try{e((function(e){S(t,e)}),(function(e){L(t,e)}))}catch(e){L(t,e)}}(this,e):function(){throw new TypeError(&quot;Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.&quot;)}())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var r=this.constructor;return e(t)?this.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){throw e}))})):this.then(t,t)},t}();return F.prototype.then=w,F.all=function(t){return new R(this,t).promise},F.race=function(t){var e=this;return r(t)?new e((function(r,n){for(var i=t.length,a=0;a&lt;i;a++)e.resolve(t[a]).then(r,n)})):new e((function(t,e){return e(new TypeError(&quot;You must pass an array to race.&quot;))}))},F.resolve=T,F.reject=function(t){var e=new this(M);return L(e,t),e},F._setScheduler=function(t){s=t},F._setAsap=function(t){l=t},F._asap=l,F.polyfill=function(){var t=void 0;if(&quot;undefined&quot;!=typeof i)t=i;else if(&quot;undefined&quot;!=typeof self)t=self;else try{t=Function(&quot;return this&quot;)()}catch(t){throw new Error(&quot;polyfill failed because global object is unavailable in this environment&quot;)}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if(&quot;[object Promise]&quot;===r&amp;&amp;!e.cast)return}t.Promise=F},F.Promise=F,F}))}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{_process:526}],225:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?t(&quot;ext/global-this&quot;).Symbol:t(&quot;./polyfill&quot;)},{&quot;./is-implemented&quot;:226,&quot;./polyfill&quot;:231,&quot;ext/global-this&quot;:238}],226:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ext/global-this&quot;),i={object:!0,symbol:!0};e.exports=function(){var t,e=n.Symbol;if(&quot;function&quot;!=typeof e)return!1;t=e(&quot;test symbol&quot;);try{String(t)}catch(t){return!1}return!!i[typeof e.iterator]&amp;&amp;(!!i[typeof e.toPrimitive]&amp;&amp;!!i[typeof e.toStringTag])}},{&quot;ext/global-this&quot;:238}],227:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return!!t&amp;&amp;(&quot;symbol&quot;==typeof t||!!t.constructor&amp;&amp;(&quot;Symbol&quot;===t.constructor.name&amp;&amp;&quot;Symbol&quot;===t[t.constructor.toStringTag]))}},{}],228:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=Object.create,a=Object.defineProperty,o=Object.prototype,s=i(null);e.exports=function(t){for(var e,r,i=0;s[t+(i||&quot;&quot;)];)++i;return s[t+=i||&quot;&quot;]=!0,a(o,e=&quot;@@&quot;+t,n.gs(null,(function(t){r||(r=!0,a(this,e,n(t)),r=!1)}))),e}},{d:155}],229:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=t(&quot;ext/global-this&quot;).Symbol;e.exports=function(t){return Object.defineProperties(t,{hasInstance:n(&quot;&quot;,i&amp;&amp;i.hasInstance||t(&quot;hasInstance&quot;)),isConcatSpreadable:n(&quot;&quot;,i&amp;&amp;i.isConcatSpreadable||t(&quot;isConcatSpreadable&quot;)),iterator:n(&quot;&quot;,i&amp;&amp;i.iterator||t(&quot;iterator&quot;)),match:n(&quot;&quot;,i&amp;&amp;i.match||t(&quot;match&quot;)),replace:n(&quot;&quot;,i&amp;&amp;i.replace||t(&quot;replace&quot;)),search:n(&quot;&quot;,i&amp;&amp;i.search||t(&quot;search&quot;)),species:n(&quot;&quot;,i&amp;&amp;i.species||t(&quot;species&quot;)),split:n(&quot;&quot;,i&amp;&amp;i.split||t(&quot;split&quot;)),toPrimitive:n(&quot;&quot;,i&amp;&amp;i.toPrimitive||t(&quot;toPrimitive&quot;)),toStringTag:n(&quot;&quot;,i&amp;&amp;i.toStringTag||t(&quot;toStringTag&quot;)),unscopables:n(&quot;&quot;,i&amp;&amp;i.unscopables||t(&quot;unscopables&quot;))})}},{d:155,&quot;ext/global-this&quot;:238}],230:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=t(&quot;../../../validate-symbol&quot;),a=Object.create(null);e.exports=function(t){return Object.defineProperties(t,{for:n((function(e){return a[e]?a[e]:a[e]=t(String(e))})),keyFor:n((function(t){var e;for(e in i(t),a)if(a[e]===t)return e}))})}},{&quot;../../../validate-symbol&quot;:232,d:155}],231:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o=t(&quot;d&quot;),s=t(&quot;./validate-symbol&quot;),l=t(&quot;ext/global-this&quot;).Symbol,c=t(&quot;./lib/private/generate-name&quot;),u=t(&quot;./lib/private/setup/standard-symbols&quot;),f=t(&quot;./lib/private/setup/symbol-registry&quot;),h=Object.create,p=Object.defineProperties,d=Object.defineProperty;if(&quot;function&quot;==typeof l)try{String(l()),a=!0}catch(t){}else l=null;i=function(t){if(this instanceof i)throw new TypeError(&quot;Symbol is not a constructor&quot;);return n(t)},e.exports=n=function t(e){var r;if(this instanceof t)throw new TypeError(&quot;Symbol is not a constructor&quot;);return a?l(e):(r=h(i.prototype),e=void 0===e?&quot;&quot;:String(e),p(r,{__description__:o(&quot;&quot;,e),__name__:o(&quot;&quot;,c(e))}))},u(n),f(n),p(i.prototype,{constructor:o(n),toString:o(&quot;&quot;,(function(){return this.__name__}))}),p(n.prototype,{toString:o((function(){return&quot;Symbol (&quot;+s(this).__description__+&quot;)&quot;})),valueOf:o((function(){return s(this)}))}),d(n.prototype,n.toPrimitive,o(&quot;&quot;,(function(){var t=s(this);return&quot;symbol&quot;==typeof t?t:t.toString()}))),d(n.prototype,n.toStringTag,o(&quot;c&quot;,&quot;Symbol&quot;)),d(i.prototype,n.toStringTag,o(&quot;c&quot;,n.prototype[n.toStringTag])),d(i.prototype,n.toPrimitive,o(&quot;c&quot;,n.prototype[n.toPrimitive]))},{&quot;./lib/private/generate-name&quot;:228,&quot;./lib/private/setup/standard-symbols&quot;:229,&quot;./lib/private/setup/symbol-registry&quot;:230,&quot;./validate-symbol&quot;:232,d:155,&quot;ext/global-this&quot;:238}],232:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-symbol&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not a symbol&quot;);return t}},{&quot;./is-symbol&quot;:227}],233:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?WeakMap:t(&quot;./polyfill&quot;)},{&quot;./is-implemented&quot;:234,&quot;./polyfill&quot;:236}],234:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e;if(&quot;function&quot;!=typeof WeakMap)return!1;try{t=new WeakMap([[e={},&quot;one&quot;],[{},&quot;two&quot;],[{},&quot;three&quot;]])}catch(t){return!1}return&quot;[object WeakMap]&quot;===String(t)&amp;&amp;(&quot;function&quot;==typeof t.set&amp;&amp;(t.set({},1)===t&amp;&amp;(&quot;function&quot;==typeof t.delete&amp;&amp;(&quot;function&quot;==typeof t.has&amp;&amp;&quot;one&quot;===t.get(e)))))}},{}],235:[function(t,e,r){&quot;use strict&quot;;e.exports=&quot;function&quot;==typeof WeakMap&amp;&amp;&quot;[object WeakMap]&quot;===Object.prototype.toString.call(new WeakMap)},{}],236:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/is-value&quot;),a=t(&quot;es5-ext/object/set-prototype-of&quot;),o=t(&quot;es5-ext/object/valid-object&quot;),s=t(&quot;es5-ext/object/valid-value&quot;),l=t(&quot;es5-ext/string/random-uniq&quot;),c=t(&quot;d&quot;),u=t(&quot;es6-iterator/get&quot;),f=t(&quot;es6-iterator/for-of&quot;),h=t(&quot;es6-symbol&quot;).toStringTag,p=t(&quot;./is-native-implemented&quot;),d=Array.isArray,g=Object.defineProperty,m=Object.prototype.hasOwnProperty,v=Object.getPrototypeOf;e.exports=n=function(){var t,e=arguments[0];if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);return t=p&amp;&amp;a&amp;&amp;WeakMap!==n?a(new WeakMap,v(this)):this,i(e)&amp;&amp;(d(e)||(e=u(e))),g(t,&quot;__weakMapData__&quot;,c(&quot;c&quot;,&quot;$weakMap$&quot;+l())),e?(f(e,(function(e){s(e),t.set(e[0],e[1])})),t):t},p&amp;&amp;(a&amp;&amp;a(n,WeakMap),n.prototype=Object.create(WeakMap.prototype,{constructor:c(n)})),Object.defineProperties(n.prototype,{delete:c((function(t){return!!m.call(o(t),this.__weakMapData__)&amp;&amp;(delete t[this.__weakMapData__],!0)})),get:c((function(t){if(m.call(o(t),this.__weakMapData__))return t[this.__weakMapData__]})),has:c((function(t){return m.call(o(t),this.__weakMapData__)})),set:c((function(t,e){return g(o(t),this.__weakMapData__,c(&quot;c&quot;,e)),this})),toString:c((function(){return&quot;[object WeakMap]&quot;}))}),g(n.prototype,h,c(&quot;c&quot;,&quot;WeakMap&quot;))},{&quot;./is-native-implemented&quot;:235,d:155,&quot;es5-ext/object/is-value&quot;:200,&quot;es5-ext/object/set-prototype-of&quot;:206,&quot;es5-ext/object/valid-object&quot;:210,&quot;es5-ext/object/valid-value&quot;:211,&quot;es5-ext/string/random-uniq&quot;:216,&quot;es6-iterator/for-of&quot;:218,&quot;es6-iterator/get&quot;:219,&quot;es6-symbol&quot;:225}],237:[function(t,e,r){var n=function(){if(&quot;object&quot;==typeof self&amp;&amp;self)return self;if(&quot;object&quot;==typeof window&amp;&amp;window)return window;throw new Error(&quot;Unable to resolve global `this`&quot;)};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,&quot;__global__&quot;,{get:function(){return this},configurable:!0})}catch(t){return n()}try{return __global__||n()}finally{delete Object.prototype.__global__}}()},{}],238:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?globalThis:t(&quot;./implementation&quot;)},{&quot;./implementation&quot;:237,&quot;./is-implemented&quot;:239}],239:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){return&quot;object&quot;==typeof globalThis&amp;&amp;(!!globalThis&amp;&amp;globalThis.Array===Array)}},{}],240:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n=e||0,i=r||1;return[[t[12]+t[0],t[13]+t[1],t[14]+t[2],t[15]+t[3]],[t[12]-t[0],t[13]-t[1],t[14]-t[2],t[15]-t[3]],[t[12]+t[4],t[13]+t[5],t[14]+t[6],t[15]+t[7]],[t[12]-t[4],t[13]-t[5],t[14]-t[6],t[15]-t[7]],[n*t[12]+t[8],n*t[13]+t[9],n*t[14]+t[10],n*t[15]+t[11]],[i*t[12]-t[8],i*t[13]-t[9],i*t[14]-t[10],i*t[15]-t[11]]]}},{}],241:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-string-blank&quot;);e.exports=function(t){var e=typeof t;if(&quot;string&quot;===e){var r=t;if(0===(t=+t)&amp;&amp;n(r))return!1}else if(&quot;number&quot;!==e)return!1;return t-t&lt;1}},{&quot;is-string-blank&quot;:470}],242:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){switch(arguments.length){case 0:return new o([0],[0],0);case 1:return&quot;number&quot;==typeof t?new o(n=l(t),n,0):new o(t,l(t.length),0);case 2:if(&quot;number&quot;==typeof e){var n=l(t.length);return new o(t,n,+e)}r=0;case 3:if(t.length!==e.length)throw new Error(&quot;state and velocity lengths must match&quot;);return new o(t,e,r)}};var n=t(&quot;cubic-hermite&quot;),i=t(&quot;binary-search-bounds&quot;);function a(t,e,r){return Math.min(e,Math.max(t,r))}function o(t,e,r){this.dimension=t.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var n=0;n&lt;this.dimension;++n)this.bounds[0][n]=-1/0,this.bounds[1][n]=1/0;this._state=t.slice().reverse(),this._velocity=e.slice().reverse(),this._time=[r],this._scratch=[t.slice(),t.slice(),t.slice(),t.slice(),t.slice()]}var s=o.prototype;function l(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=0;return e}s.flush=function(t){var e=i.gt(this._time,t)-1;e&lt;=0||(this._time.splice(0,e),this._state.splice(0,e*this.dimension),this._velocity.splice(0,e*this.dimension))},s.curve=function(t){var e=this._time,r=e.length,o=i.le(e,t),s=this._scratch[0],l=this._state,c=this._velocity,u=this.dimension,f=this.bounds;if(o&lt;0)for(var h=u-1,p=0;p&lt;u;++p,--h)s[p]=l[h];else if(o&gt;=r-1){h=l.length-1;var d=t-e[r-1];for(p=0;p&lt;u;++p,--h)s[p]=l[h]+d*c[h]}else{h=u*(o+1)-1;var g=e[o],m=e[o+1]-g||1,v=this._scratch[1],y=this._scratch[2],x=this._scratch[3],b=this._scratch[4],_=!0;for(p=0;p&lt;u;++p,--h)v[p]=l[h],x[p]=c[h]*m,y[p]=l[h+u],b[p]=c[h+u]*m,_=_&amp;&amp;v[p]===y[p]&amp;&amp;x[p]===b[p]&amp;&amp;0===x[p];if(_)for(p=0;p&lt;u;++p)s[p]=v[p];else n(v,x,y,b,(t-g)/m,s)}var w=f[0],T=f[1];for(p=0;p&lt;u;++p)s[p]=a(w[p],T[p],s[p]);return s},s.dcurve=function(t){var e=this._time,r=e.length,a=i.le(e,t),o=this._scratch[0],s=this._state,l=this._velocity,c=this.dimension;if(a&gt;=r-1)for(var u=s.length-1,f=(e[r-1],0);f&lt;c;++f,--u)o[f]=l[u];else{u=c*(a+1)-1;var h=e[a],p=e[a+1]-h||1,d=this._scratch[1],g=this._scratch[2],m=this._scratch[3],v=this._scratch[4],y=!0;for(f=0;f&lt;c;++f,--u)d[f]=s[u],m[f]=l[u]*p,g[f]=s[u+c],v[f]=l[u+c]*p,y=y&amp;&amp;d[f]===g[f]&amp;&amp;m[f]===v[f]&amp;&amp;0===m[f];if(y)for(f=0;f&lt;c;++f)o[f]=0;else{n.derivative(d,m,g,v,(t-h)/p,o);for(f=0;f&lt;c;++f)o[f]/=p}}return o},s.lastT=function(){var t=this._time;return t[t.length-1]},s.stable=function(){for(var t=this._velocity,e=t.length,r=this.dimension-1;r&gt;=0;--r)if(t[--e])return!1;return!0},s.jump=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1];this._time.push(e,t);for(var u=0;u&lt;2;++u)for(var f=0;f&lt;r;++f)n.push(n[o++]),i.push(0);this._time.push(t);for(f=r;f&gt;0;--f)n.push(a(l[f-1],c[f-1],arguments[f])),i.push(0)}},s.push=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=t-e,l=this.bounds,c=l[0],u=l[1],f=s&gt;1e-6?1/s:0;this._time.push(t);for(var h=r;h&gt;0;--h){var p=a(c[h-1],u[h-1],arguments[h]);n.push(p),i.push((p-n[o++])*f)}}},s.set=function(t){var e=this.dimension;if(!(t&lt;this.lastT()||arguments.length!==e+1)){var r=this._state,n=this._velocity,i=this.bounds,o=i[0],s=i[1];this._time.push(t);for(var l=e;l&gt;0;--l)r.push(a(o[l-1],s[l-1],arguments[l])),n.push(0)}},s.move=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;=e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1],u=t-e,f=u&gt;1e-6?1/u:0;this._time.push(t);for(var h=r;h&gt;0;--h){var p=arguments[h];n.push(a(l[h-1],c[h-1],n[o++]+p)),i.push(p*f)}}},s.idle=function(t){var e=this.lastT();if(!(t&lt;e)){var r=this.dimension,n=this._state,i=this._velocity,o=n.length-r,s=this.bounds,l=s[0],c=s[1],u=t-e;this._time.push(t);for(var f=r-1;f&gt;=0;--f)n.push(a(l[f],c[f],n[o]+u*i[o])),i.push(0),o+=1}}},{&quot;binary-search-bounds&quot;:243,&quot;cubic-hermite&quot;:150}],243:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i,a){var o=[&quot;function &quot;,t,&quot;(a,l,h,&quot;,n.join(&quot;,&quot;),&quot;){&quot;,a?&quot;&quot;:&quot;var i=&quot;,r?&quot;l-1&quot;:&quot;h+1&quot;,&quot;;while(l&lt;=h){var m=(l+h)&gt;&gt;&gt;1,x=a&quot;,i?&quot;.get(m)&quot;:&quot;[m]&quot;];return a?e.indexOf(&quot;c&quot;)&lt;0?o.push(&quot;;if(x===y){return m}else if(x&lt;=y){&quot;):o.push(&quot;;var p=c(x,y);if(p===0){return m}else if(p&lt;=0){&quot;):o.push(&quot;;if(&quot;,e,&quot;){i=m;&quot;),r?o.push(&quot;l=m+1}else{h=m-1}&quot;):o.push(&quot;h=m-1}else{l=m+1}&quot;),o.push(&quot;}&quot;),a?o.push(&quot;return -1};&quot;):o.push(&quot;return i};&quot;),o.join(&quot;&quot;)}function i(t,e,r,i){return new Function([n(&quot;A&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],!1,i),n(&quot;B&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],!0,i),n(&quot;P&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],!1,i),n(&quot;Q&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],!0,i),&quot;function dispatchBsearch&quot;,r,&quot;(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch&quot;,r].join(&quot;&quot;))()}e.exports={ge:i(&quot;&gt;=&quot;,!1,&quot;GE&quot;),gt:i(&quot;&gt;&quot;,!1,&quot;GT&quot;),lt:i(&quot;&lt;&quot;,!0,&quot;LT&quot;),le:i(&quot;&lt;=&quot;,!0,&quot;LE&quot;),eq:i(&quot;-&quot;,!0,&quot;EQ&quot;,!0)}},{}],244:[function(t,e,r){var n=t(&quot;dtype&quot;);e.exports=function(t,e,r){if(!t)throw new TypeError(&quot;must specify data as first parameter&quot;);if(r=0|+(r||0),Array.isArray(t)&amp;&amp;t[0]&amp;&amp;&quot;number&quot;==typeof t[0][0]){var i,a,o,s,l=t[0].length,c=t.length*l;e&amp;&amp;&quot;string&quot;!=typeof e||(e=new(n(e||&quot;float32&quot;))(c+r));var u=e.length-r;if(c!==u)throw new Error(&quot;source length &quot;+c+&quot; (&quot;+l+&quot;x&quot;+t.length+&quot;) does not match destination length &quot;+u);for(i=0,o=r;i&lt;t.length;i++)for(a=0;a&lt;l;a++)e[o++]=null===t[i][a]?NaN:t[i][a]}else if(e&amp;&amp;&quot;string&quot;!=typeof e)e.set(t,r);else{var f=n(e||&quot;float32&quot;);if(Array.isArray(t)||&quot;array&quot;===e)for(e=new f(t.length+r),i=0,o=r,s=e.length;o&lt;s;o++,i++)e[o]=null===t[i]?NaN:t[i];else 0===r?e=new f(t):(e=new f(t.length+r)).set(t,r)}return e}},{dtype:175}],245:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font/stringify&quot;),i=[32,126];e.exports=function(t){var e=(t=t||{}).shape?t.shape:t.canvas?[t.canvas.width,t.canvas.height]:[512,512],r=t.canvas||document.createElement(&quot;canvas&quot;),a=t.font,o=&quot;number&quot;==typeof t.step?[t.step,t.step]:t.step||[32,32],s=t.chars||i;a&amp;&amp;&quot;string&quot;!=typeof a&amp;&amp;(a=n(a));if(Array.isArray(s)){if(2===s.length&amp;&amp;&quot;number&quot;==typeof s[0]&amp;&amp;&quot;number&quot;==typeof s[1]){for(var l=[],c=s[0],u=0;c&lt;=s[1];c++)l[u++]=String.fromCharCode(c);s=l}}else s=String(s).split(&quot;&quot;);e=e.slice(),r.width=e[0],r.height=e[1];var f=r.getContext(&quot;2d&quot;);f.fillStyle=&quot;#000&quot;,f.fillRect(0,0,r.width,r.height),f.font=a,f.textAlign=&quot;center&quot;,f.textBaseline=&quot;middle&quot;,f.fillStyle=&quot;#fff&quot;;var h=o[0]/2,p=o[1]/2;for(c=0;c&lt;s.length;c++)f.fillText(s[c],h,p),(h+=o[0])&gt;e[0]-o[0]/2&amp;&amp;(h=o[0]/2,p+=o[1]);return r}},{&quot;css-font/stringify&quot;:147}],246:[function(t,e,r){&quot;use strict&quot;;function n(t,e){e||(e={}),(&quot;string&quot;==typeof t||Array.isArray(t))&amp;&amp;(e.family=t);var r=Array.isArray(e.family)?e.family.join(&quot;, &quot;):e.family;if(!r)throw Error(&quot;`family` must be defined&quot;);var s=e.size||e.fontSize||e.em||48,l=e.weight||e.fontWeight||&quot;&quot;,c=(t=[e.style||e.fontStyle||&quot;&quot;,l,s].join(&quot; &quot;)+&quot;px &quot;+r,e.origin||&quot;top&quot;);if(n.cache[r]&amp;&amp;s&lt;=n.cache[r].em)return i(n.cache[r],c);var u=e.canvas||n.canvas,f=u.getContext(&quot;2d&quot;),h={upper:void 0!==e.upper?e.upper:&quot;H&quot;,lower:void 0!==e.lower?e.lower:&quot;x&quot;,descent:void 0!==e.descent?e.descent:&quot;p&quot;,ascent:void 0!==e.ascent?e.ascent:&quot;h&quot;,tittle:void 0!==e.tittle?e.tittle:&quot;i&quot;,overshoot:void 0!==e.overshoot?e.overshoot:&quot;O&quot;},p=Math.ceil(1.5*s);u.height=p,u.width=.5*p,f.font=t;var d={top:0};f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillStyle=&quot;black&quot;,f.fillText(&quot;H&quot;,0,0);var g=a(f.getImageData(0,0,p,p));f.clearRect(0,0,p,p),f.textBaseline=&quot;bottom&quot;,f.fillText(&quot;H&quot;,0,p);var m=a(f.getImageData(0,0,p,p));d.lineHeight=d.bottom=p-m+g,f.clearRect(0,0,p,p),f.textBaseline=&quot;alphabetic&quot;,f.fillText(&quot;H&quot;,0,p);var v=p-a(f.getImageData(0,0,p,p))-1+g;d.baseline=d.alphabetic=v,f.clearRect(0,0,p,p),f.textBaseline=&quot;middle&quot;,f.fillText(&quot;H&quot;,0,.5*p);var y=a(f.getImageData(0,0,p,p));d.median=d.middle=p-y-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=&quot;hanging&quot;,f.fillText(&quot;H&quot;,0,.5*p);var x=a(f.getImageData(0,0,p,p));d.hanging=p-x-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=&quot;ideographic&quot;,f.fillText(&quot;H&quot;,0,p);var b=a(f.getImageData(0,0,p,p));if(d.ideographic=p-b-1+g,h.upper&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.upper,0,0),d.upper=a(f.getImageData(0,0,p,p)),d.capHeight=d.baseline-d.upper),h.lower&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.lower,0,0),d.lower=a(f.getImageData(0,0,p,p)),d.xHeight=d.baseline-d.lower),h.tittle&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.tittle,0,0),d.tittle=a(f.getImageData(0,0,p,p))),h.ascent&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.ascent,0,0),d.ascent=a(f.getImageData(0,0,p,p))),h.descent&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.descent,0,0),d.descent=o(f.getImageData(0,0,p,p))),h.overshoot){f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.overshoot,0,0);var _=o(f.getImageData(0,0,p,p));d.overshoot=_-v}for(var w in d)d[w]/=s;return d.em=s,n.cache[r]=d,i(d,c)}function i(t,e){var r={};for(var n in&quot;string&quot;==typeof e&amp;&amp;(e=t[e]),t)&quot;em&quot;!==n&amp;&amp;(r[n]=t[n]-e);return r}function a(t){for(var e=t.height,r=t.data,n=3;n&lt;r.length;n+=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}function o(t){for(var e=t.height,r=t.data,n=r.length-1;n&gt;0;n-=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}e.exports=n,n.canvas=document.createElement(&quot;canvas&quot;),n.cache={}},{}],247:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return new s(t||g,null)};function n(t,e,r,n,i,a){this._color=t,this.key=e,this.value=r,this.left=n,this.right=i,this._count=a}function i(t){return new n(t._color,t.key,t.value,t.left,t.right,t._count)}function a(t,e){return new n(t,e.key,e.value,e.left,e.right,e._count)}function o(t){t._count=1+(t.left?t.left._count:0)+(t.right?t.right._count:0)}function s(t,e){this._compare=t,this.root=e}var l=s.prototype;function c(t,e){var r;if(e.left&amp;&amp;(r=c(t,e.left)))return r;return(r=t(e.key,e.value))||(e.right?c(t,e.right):void 0)}function u(t,e,r,n){if(e(t,n.key)&lt;=0){var i;if(n.left)if(i=u(t,e,r,n.left))return i;if(i=r(n.key,n.value))return i}if(n.right)return u(t,e,r,n.right)}function f(t,e,r,n,i){var a,o=r(t,i.key),s=r(e,i.key);if(o&lt;=0){if(i.left&amp;&amp;(a=f(t,e,r,n,i.left)))return a;if(s&gt;0&amp;&amp;(a=n(i.key,i.value)))return a}if(s&gt;0&amp;&amp;i.right)return f(t,e,r,n,i.right)}function h(t,e){this.tree=t,this._stack=e}Object.defineProperty(l,&quot;keys&quot;,{get:function(){var t=[];return this.forEach((function(e,r){t.push(e)})),t}}),Object.defineProperty(l,&quot;values&quot;,{get:function(){var t=[];return this.forEach((function(e,r){t.push(r)})),t}}),Object.defineProperty(l,&quot;length&quot;,{get:function(){return this.root?this.root._count:0}}),l.insert=function(t,e){for(var r=this._compare,i=this.root,l=[],c=[];i;){var u=r(t,i.key);l.push(i),c.push(u),i=u&lt;=0?i.left:i.right}l.push(new n(0,t,e,null,null,1));for(var f=l.length-2;f&gt;=0;--f){i=l[f];c[f]&lt;=0?l[f]=new n(i._color,i.key,i.value,l[f+1],i.right,i._count+1):l[f]=new n(i._color,i.key,i.value,i.left,l[f+1],i._count+1)}for(f=l.length-1;f&gt;1;--f){var h=l[f-1];i=l[f];if(1===h._color||1===i._color)break;var p=l[f-2];if(p.left===h)if(h.left===i){if(!(d=p.right)||0!==d._color){if(p._color=0,p.left=h.right,h._color=1,h.right=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f&gt;=3)(g=l[f-3]).left===p?g.left=h:g.right=h;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else{if(!(d=p.right)||0!==d._color){if(h.right=i.left,p._color=0,p.left=i.right,i._color=1,i.left=h,i.right=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f&gt;=3)(g=l[f-3]).left===p?g.left=i:g.right=i;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else if(h.right===i){if(!(d=p.left)||0!==d._color){if(p._color=0,p.right=h.left,h._color=1,h.left=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f&gt;=3)(g=l[f-3]).right===p?g.right=h:g.left=h;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}else{var d;if(!(d=p.left)||0!==d._color){var g;if(h.left=i.right,p._color=0,p.right=i.left,i._color=1,i.right=h,i.left=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f&gt;=3)(g=l[f-3]).right===p?g.right=i:g.left=i;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}}return l[0]._color=1,new s(r,l[0])},l.forEach=function(t,e,r){if(this.root)switch(arguments.length){case 1:return c(t,this.root);case 2:return u(e,this._compare,t,this.root);case 3:if(this._compare(e,r)&gt;=0)return;return f(e,r,this._compare,t,this.root)}},Object.defineProperty(l,&quot;begin&quot;,{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.left;return new h(this,t)}}),Object.defineProperty(l,&quot;end&quot;,{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.right;return new h(this,t)}}),l.at=function(t){if(t&lt;0)return new h(this,[]);for(var e=this.root,r=[];;){if(r.push(e),e.left){if(t&lt;e.left._count){e=e.left;continue}t-=e.left._count}if(!t)return new h(this,r);if(t-=1,!e.right)break;if(t&gt;=e.right._count)break;e=e.right}return new h(this,[])},l.ge=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&lt;=0&amp;&amp;(i=n.length),r=a&lt;=0?r.left:r.right}return n.length=i,new h(this,n)},l.gt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&lt;0&amp;&amp;(i=n.length),r=a&lt;0?r.left:r.right}return n.length=i,new h(this,n)},l.lt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&gt;0&amp;&amp;(i=n.length),r=a&lt;=0?r.left:r.right}return n.length=i,new h(this,n)},l.le=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&gt;=0&amp;&amp;(i=n.length),r=a&lt;0?r.left:r.right}return n.length=i,new h(this,n)},l.find=function(t){for(var e=this._compare,r=this.root,n=[];r;){var i=e(t,r.key);if(n.push(r),0===i)return new h(this,n);r=i&lt;=0?r.left:r.right}return new h(this,[])},l.remove=function(t){var e=this.find(t);return e?e.remove():this},l.get=function(t){for(var e=this._compare,r=this.root;r;){var n=e(t,r.key);if(0===n)return r.value;r=n&lt;=0?r.left:r.right}};var p=h.prototype;function d(t,e){t.key=e.key,t.value=e.value,t.left=e.left,t.right=e.right,t._color=e._color,t._count=e._count}function g(t,e){return t&lt;e?-1:t&gt;e?1:0}Object.defineProperty(p,&quot;valid&quot;,{get:function(){return this._stack.length&gt;0}}),Object.defineProperty(p,&quot;node&quot;,{get:function(){return this._stack.length&gt;0?this._stack[this._stack.length-1]:null},enumerable:!0}),p.clone=function(){return new h(this.tree,this._stack.slice())},p.remove=function(){var t=this._stack;if(0===t.length)return this.tree;var e=new Array(t.length),r=t[t.length-1];e[e.length-1]=new n(r._color,r.key,r.value,r.left,r.right,r._count);for(var l=t.length-2;l&gt;=0;--l){(r=t[l]).left===t[l+1]?e[l]=new n(r._color,r.key,r.value,e[l+1],r.right,r._count):e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count)}if((r=e[e.length-1]).left&amp;&amp;r.right){var c=e.length;for(r=r.left;r.right;)e.push(r),r=r.right;var u=e[c-1];e.push(new n(r._color,u.key,u.value,r.left,r.right,r._count)),e[c-1].key=r.key,e[c-1].value=r.value;for(l=e.length-2;l&gt;=c;--l)r=e[l],e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count);e[c-1].left=e[c]}if(0===(r=e[e.length-1])._color){var f=e[e.length-2];f.left===r?f.left=null:f.right===r&amp;&amp;(f.right=null),e.pop();for(l=0;l&lt;e.length;++l)e[l]._count--;return new s(this.tree._compare,e[0])}if(r.left||r.right){r.left?d(r,r.left):r.right&amp;&amp;d(r,r.right),r._color=1;for(l=0;l&lt;e.length-1;++l)e[l]._count--;return new s(this.tree._compare,e[0])}if(1===e.length)return new s(this.tree._compare,null);for(l=0;l&lt;e.length;++l)e[l]._count--;var h=e[e.length-2];return function(t){for(var e,r,n,s,l=t.length-1;l&gt;=0;--l){if(e=t[l],0===l)return void(e._color=1);if((r=t[l-1]).left===e){if((n=r.right).right&amp;&amp;0===n.right._color){if(s=(n=r.right=i(n)).right=i(n.right),r.right=n.left,n.left=r,n.right=s,n._color=r._color,e._color=1,r._color=1,s._color=1,o(r),o(n),l&gt;1)(c=t[l-2]).left===r?c.left=n:c.right=n;return void(t[l-1]=n)}if(n.left&amp;&amp;0===n.left._color){if(s=(n=r.right=i(n)).left=i(n.left),r.right=s.left,n.left=s.right,s.left=r,s.right=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l&gt;1)(c=t[l-2]).left===r?c.left=s:c.right=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.right=a(0,n));r.right=a(0,n);continue}n=i(n),r.right=n.left,n.left=r,n._color=r._color,r._color=0,o(r),o(n),l&gt;1&amp;&amp;((c=t[l-2]).left===r?c.left=n:c.right=n),t[l-1]=n,t[l]=r,l+1&lt;t.length?t[l+1]=e:t.push(e),l+=2}else{if((n=r.left).left&amp;&amp;0===n.left._color){if(s=(n=r.left=i(n)).left=i(n.left),r.left=n.right,n.right=r,n.left=s,n._color=r._color,e._color=1,r._color=1,s._color=1,o(r),o(n),l&gt;1)(c=t[l-2]).right===r?c.right=n:c.left=n;return void(t[l-1]=n)}if(n.right&amp;&amp;0===n.right._color){if(s=(n=r.left=i(n)).right=i(n.right),r.left=s.right,n.right=s.left,s.right=r,s.left=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l&gt;1)(c=t[l-2]).right===r?c.right=s:c.left=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.left=a(0,n));r.left=a(0,n);continue}var c;n=i(n),r.left=n.right,n.right=r,n._color=r._color,r._color=0,o(r),o(n),l&gt;1&amp;&amp;((c=t[l-2]).right===r?c.right=n:c.left=n),t[l-1]=n,t[l]=r,l+1&lt;t.length?t[l+1]=e:t.push(e),l+=2}}}(e),h.left===r?h.left=null:h.right=null,new s(this.tree._compare,e[0])},Object.defineProperty(p,&quot;key&quot;,{get:function(){if(this._stack.length&gt;0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(p,&quot;value&quot;,{get:function(){if(this._stack.length&gt;0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(p,&quot;index&quot;,{get:function(){var t=0,e=this._stack;if(0===e.length){var r=this.tree.root;return r?r._count:0}e[e.length-1].left&amp;&amp;(t=e[e.length-1].left._count);for(var n=e.length-2;n&gt;=0;--n)e[n+1]===e[n].right&amp;&amp;(++t,e[n].left&amp;&amp;(t+=e[n].left._count));return t},enumerable:!0}),p.next=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.right)for(e=e.right;e;)t.push(e),e=e.left;else for(t.pop();t.length&gt;0&amp;&amp;t[t.length-1].right===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,&quot;hasNext&quot;,{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].right)return!0;for(var e=t.length-1;e&gt;0;--e)if(t[e-1].left===t[e])return!0;return!1}}),p.update=function(t){var e=this._stack;if(0===e.length)throw new Error(&quot;Can't update empty node!&quot;);var r=new Array(e.length),i=e[e.length-1];r[r.length-1]=new n(i._color,i.key,t,i.left,i.right,i._count);for(var a=e.length-2;a&gt;=0;--a)(i=e[a]).left===e[a+1]?r[a]=new n(i._color,i.key,i.value,r[a+1],i.right,i._count):r[a]=new n(i._color,i.key,i.value,i.left,r[a+1],i._count);return new s(this.tree._compare,r[0])},p.prev=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.left)for(e=e.left;e;)t.push(e),e=e.right;else for(t.pop();t.length&gt;0&amp;&amp;t[t.length-1].left===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,&quot;hasPrev&quot;,{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].left)return!0;for(var e=t.length-1;e&gt;0;--e)if(t[e-1].right===t[e])return!0;return!1}})},{}],248:[function(t,e,r){var n=[.9999999999998099,676.5203681218851,-1259.1392167224028,771.3234287776531,-176.6150291621406,12.507343278686905,-.13857109526572012,9984369578019572e-21,1.5056327351493116e-7],i=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function a(t){if(t&lt;0)return Number(&quot;0/0&quot;);for(var e=i[0],r=i.length-1;r&gt;0;--r)e+=i[r]/(t+r);var n=t+607/128+.5;return.5*Math.log(2*Math.PI)+(t+.5)*Math.log(n)-n+Math.log(e)-Math.log(t)}e.exports=function t(e){if(e&lt;.5)return Math.PI/(Math.sin(Math.PI*e)*t(1-e));if(e&gt;100)return Math.exp(a(e));e-=1;for(var r=n[0],i=1;i&lt;9;i++)r+=n[i]/(e+i);var o=e+7+.5;return Math.sqrt(2*Math.PI)*Math.pow(o,e+.5)*Math.exp(-o)*r},e.exports.log=a},{}],249:[function(t,e,r){e.exports=function(t,e){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;must specify type string&quot;);if(e=e||{},&quot;undefined&quot;==typeof document&amp;&amp;!e.canvas)return null;var r=e.canvas||document.createElement(&quot;canvas&quot;);&quot;number&quot;==typeof e.width&amp;&amp;(r.width=e.width);&quot;number&quot;==typeof e.height&amp;&amp;(r.height=e.height);var n,i=e;try{var a=[t];0===t.indexOf(&quot;webgl&quot;)&amp;&amp;a.push(&quot;experimental-&quot;+t);for(var o=0;o&lt;a.length;o++)if(n=r.getContext(a[o],i))return n}catch(t){n=null}return n||null}},{}],250:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=new u(t);return r.update(e),r};var n=t(&quot;./lib/text.js&quot;),i=t(&quot;./lib/lines.js&quot;),a=t(&quot;./lib/background.js&quot;),o=t(&quot;./lib/cube.js&quot;),s=t(&quot;./lib/ticks.js&quot;),l=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t){this.gl=t,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=[&quot;auto&quot;,&quot;auto&quot;,&quot;auto&quot;],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],this.labelEnable=[!0,!0,!0],this.labelFont=&quot;sans-serif&quot;,this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=[&quot;auto&quot;,&quot;auto&quot;,&quot;auto&quot;],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=a(t)}var f=u.prototype;function h(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}f.update=function(t){function e(e,r,n){if(n in t){var i,a=t[n],o=this[n];(e?Array.isArray(a)&amp;&amp;Array.isArray(a[0]):Array.isArray(a))?this[n]=i=[r(a[0]),r(a[1]),r(a[2])]:this[n]=i=[r(a),r(a),r(a)];for(var s=0;s&lt;3;++s)if(i[s]!==o[s])return!0}return!1}t=t||{};var r,a=e.bind(this,!1,Number),o=e.bind(this,!1,Boolean),l=e.bind(this,!1,String),c=e.bind(this,!0,(function(t){if(Array.isArray(t)){if(3===t.length)return[+t[0],+t[1],+t[2],1];if(4===t.length)return[+t[0],+t[1],+t[2],+t[3]]}return[0,0,0,1]})),u=!1,f=!1;if(&quot;bounds&quot;in t)for(var h=t.bounds,p=0;p&lt;2;++p)for(var d=0;d&lt;3;++d)h[p][d]!==this.bounds[p][d]&amp;&amp;(f=!0),this.bounds[p][d]=h[p][d];if(&quot;ticks&quot;in t){r=t.ticks,u=!0,this.autoTicks=!1;for(p=0;p&lt;3;++p)this.tickSpacing[p]=0}else a(&quot;tickSpacing&quot;)&amp;&amp;(this.autoTicks=!0,f=!0);if(this._firstInit&amp;&amp;(&quot;ticks&quot;in t||&quot;tickSpacing&quot;in t||(this.autoTicks=!0),f=!0,u=!0,this._firstInit=!1),f&amp;&amp;this.autoTicks&amp;&amp;(r=s.create(this.bounds,this.tickSpacing),u=!0),u){for(p=0;p&lt;3;++p)r[p].sort((function(t,e){return t.x-e.x}));s.equal(r,this.ticks)?u=!1:this.ticks=r}o(&quot;tickEnable&quot;),l(&quot;tickFont&quot;)&amp;&amp;(u=!0),a(&quot;tickSize&quot;),a(&quot;tickAngle&quot;),a(&quot;tickPad&quot;),c(&quot;tickColor&quot;);var g=l(&quot;labels&quot;);l(&quot;labelFont&quot;)&amp;&amp;(g=!0),o(&quot;labelEnable&quot;),a(&quot;labelSize&quot;),a(&quot;labelPad&quot;),c(&quot;labelColor&quot;),o(&quot;lineEnable&quot;),o(&quot;lineMirror&quot;),a(&quot;lineWidth&quot;),c(&quot;lineColor&quot;),o(&quot;lineTickEnable&quot;),o(&quot;lineTickMirror&quot;),a(&quot;lineTickLength&quot;),a(&quot;lineTickWidth&quot;),c(&quot;lineTickColor&quot;),o(&quot;gridEnable&quot;),a(&quot;gridWidth&quot;),c(&quot;gridColor&quot;),o(&quot;zeroEnable&quot;),c(&quot;zeroLineColor&quot;),a(&quot;zeroLineWidth&quot;),o(&quot;backgroundEnable&quot;),c(&quot;backgroundColor&quot;),this._text?this._text&amp;&amp;(g||u)&amp;&amp;this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=n(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&amp;&amp;u&amp;&amp;(this._lines.dispose(),this._lines=null),this._lines||(this._lines=i(this.gl,this.bounds,this.ticks))};var p=[new h,new h,new h];function d(t,e,r,n,i){for(var a=t.primalOffset,o=t.primalMinor,s=t.mirrorOffset,l=t.mirrorMinor,c=n[e],u=0;u&lt;3;++u)if(e!==u){var f=a,h=s,p=o,d=l;c&amp;1&lt;&lt;u&amp;&amp;(f=s,h=a,p=l,d=o),f[u]=r[0][u],h[u]=r[1][u],i[u]&gt;0?(p[u]=-1,d[u]=0):(p[u]=0,d[u]=1)}}var g=[0,0,0],m={model:l,view:l,projection:l,_ortho:!1};f.isOpaque=function(){return!0},f.isTransparent=function(){return!1},f.drawTransparent=function(t){};var v=[0,0,0],y=[0,0,0],x=[0,0,0];f.draw=function(t){t=t||m;for(var e=this.gl,r=t.model||l,n=t.view||l,i=t.projection||l,a=this.bounds,s=t._ortho||!1,u=o(r,n,i,a,s),f=u.cubeEdges,h=u.axis,b=n[12],_=n[13],w=n[14],T=n[15],k=(s?2:1)*this.pixelRatio*(i[3]*b+i[7]*_+i[11]*w+i[15]*T)/e.drawingBufferHeight,M=0;M&lt;3;++M)this.lastCubeProps.cubeEdges[M]=f[M],this.lastCubeProps.axis[M]=h[M];var A=p;for(M=0;M&lt;3;++M)d(p[M],M,this.bounds,f,h);e=this.gl;var S,E=g;for(M=0;M&lt;3;++M)this.backgroundEnable[M]?E[M]=h[M]:E[M]=0;this._background.draw(r,n,i,a,E,this.backgroundColor),this._lines.bind(r,n,i,this);for(M=0;M&lt;3;++M){var C=[0,0,0];h[M]&gt;0?C[M]=a[1][M]:C[M]=a[0][M];for(var L=0;L&lt;2;++L){var I=(M+1+L)%3,P=(M+1+(1^L))%3;this.gridEnable[I]&amp;&amp;this._lines.drawGrid(I,P,this.bounds,C,this.gridColor[I],this.gridWidth[I]*this.pixelRatio)}for(L=0;L&lt;2;++L){I=(M+1+L)%3,P=(M+1+(1^L))%3;this.zeroEnable[P]&amp;&amp;Math.min(a[0][P],a[1][P])&lt;=0&amp;&amp;Math.max(a[0][P],a[1][P])&gt;=0&amp;&amp;this._lines.drawZero(I,P,this.bounds,C,this.zeroLineColor[P],this.zeroLineWidth[P]*this.pixelRatio)}}for(M=0;M&lt;3;++M){this.lineEnable[M]&amp;&amp;this._lines.drawAxisLine(M,this.bounds,A[M].primalOffset,this.lineColor[M],this.lineWidth[M]*this.pixelRatio),this.lineMirror[M]&amp;&amp;this._lines.drawAxisLine(M,this.bounds,A[M].mirrorOffset,this.lineColor[M],this.lineWidth[M]*this.pixelRatio);var z=c(v,A[M].primalMinor),O=c(y,A[M].mirrorMinor),D=this.lineTickLength;for(L=0;L&lt;3;++L){var R=k/r[5*L];z[L]*=D[L]*R,O[L]*=D[L]*R}this.lineTickEnable[M]&amp;&amp;this._lines.drawAxisTicks(M,A[M].primalOffset,z,this.lineTickColor[M],this.lineTickWidth[M]*this.pixelRatio),this.lineTickMirror[M]&amp;&amp;this._lines.drawAxisTicks(M,A[M].mirrorOffset,O,this.lineTickColor[M],this.lineTickWidth[M]*this.pixelRatio)}this._lines.unbind(),this._text.bind(r,n,i,this.pixelRatio);var F,B;function N(t){(B=[0,0,0])[t]=1}function j(t,e,r){var n=(t+1)%3,i=(t+2)%3,a=e[n],o=e[i],s=r[n],l=r[i];a&gt;0&amp;&amp;l&gt;0||a&gt;0&amp;&amp;l&lt;0||a&lt;0&amp;&amp;l&gt;0||a&lt;0&amp;&amp;l&lt;0?N(n):(o&gt;0&amp;&amp;s&gt;0||o&gt;0&amp;&amp;s&lt;0||o&lt;0&amp;&amp;s&gt;0||o&lt;0&amp;&amp;s&lt;0)&amp;&amp;N(i)}for(M=0;M&lt;3;++M){var U=A[M].primalMinor,V=A[M].mirrorMinor,q=c(x,A[M].primalOffset);for(L=0;L&lt;3;++L)this.lineTickEnable[M]&amp;&amp;(q[L]+=k*U[L]*Math.max(this.lineTickLength[L],0)/r[5*L]);var H=[0,0,0];if(H[M]=1,this.tickEnable[M]){-3600===this.tickAngle[M]?(this.tickAngle[M]=0,this.tickAlign[M]=&quot;auto&quot;):this.tickAlign[M]=-1,F=1,&quot;auto&quot;===(S=[this.tickAlign[M],.5,F])[0]?S[0]=0:S[0]=parseInt(&quot;&quot;+S[0]),B=[0,0,0],j(M,U,V);for(L=0;L&lt;3;++L)q[L]+=k*U[L]*this.tickPad[L]/r[5*L];this._text.drawTicks(M,this.tickSize[M],this.tickAngle[M],q,this.tickColor[M],H,B,S)}if(this.labelEnable[M]){F=0,B=[0,0,0],this.labels[M].length&gt;4&amp;&amp;(N(M),F=1),&quot;auto&quot;===(S=[this.labelAlign[M],.5,F])[0]?S[0]=0:S[0]=parseInt(&quot;&quot;+S[0]);for(L=0;L&lt;3;++L)q[L]+=k*U[L]*this.labelPad[L]/r[5*L];q[M]+=.5*(a[0][M]+a[1][M]),this._text.drawLabel(M,this.labelSize[M],this.labelAngle[M],q,this.labelColor[M],[0,0,0],B,S)}}this._text.unbind()},f.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},{&quot;./lib/background.js&quot;:251,&quot;./lib/cube.js&quot;:252,&quot;./lib/lines.js&quot;:253,&quot;./lib/text.js&quot;:255,&quot;./lib/ticks.js&quot;:256}],251:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=[],r=[],s=0,l=0;l&lt;3;++l)for(var c=(l+1)%3,u=(l+2)%3,f=[0,0,0],h=[0,0,0],p=-1;p&lt;=1;p+=2){r.push(s,s+2,s+1,s+1,s+2,s+3),f[l]=p,h[l]=p;for(var d=-1;d&lt;=1;d+=2){f[c]=d;for(var g=-1;g&lt;=1;g+=2)f[u]=g,e.push(f[0],f[1],f[2],h[0],h[1],h[2]),s+=1}var m=c;c=u,u=m}var v=n(t,new Float32Array(e)),y=n(t,new Uint16Array(r),t.ELEMENT_ARRAY_BUFFER),x=i(t,[{buffer:v,type:t.FLOAT,size:3,offset:0,stride:24},{buffer:v,type:t.FLOAT,size:3,offset:12,stride:24}],y),b=a(t);return b.attributes.position.location=0,b.attributes.normal.location=1,new o(t,v,x,b)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders&quot;).bg;function o(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n}var s=o.prototype;s.draw=function(t,e,r,n,i,a){for(var o=!1,s=0;s&lt;3;++s)o=o||i[s];if(o){var l=this.gl;l.enable(l.POLYGON_OFFSET_FILL),l.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:t,view:e,projection:r,bounds:n,enable:i,colors:a},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),l.disable(l.POLYGON_OFFSET_FILL)}},s.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:254,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],252:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,p){i(s,e,t),i(s,r,s);for(var y=0,x=0;x&lt;2;++x){u[2]=a[x][2];for(var b=0;b&lt;2;++b){u[1]=a[b][1];for(var _=0;_&lt;2;++_)u[0]=a[_][0],h(l[y],u,s),y+=1}}var w=-1;for(x=0;x&lt;8;++x){for(var T=l[x][3],k=0;k&lt;3;++k)c[x][k]=l[x][k]/T;p&amp;&amp;(c[x][2]*=-1),T&lt;0&amp;&amp;(w&lt;0||c[x][2]&lt;c[w][2])&amp;&amp;(w=x)}if(w&lt;0){w=0;for(var M=0;M&lt;3;++M){for(var A=(M+2)%3,S=(M+1)%3,E=-1,C=-1,L=0;L&lt;2;++L){var I=(z=L&lt;&lt;M)+(L&lt;&lt;A)+(1-L&lt;&lt;S),P=z+(1-L&lt;&lt;A)+(L&lt;&lt;S);o(c[z],c[I],c[P],f)&lt;0||(L?E=1:C=1)}if(E&lt;0||C&lt;0)C&gt;E&amp;&amp;(w|=1&lt;&lt;M);else{for(L=0;L&lt;2;++L){I=(z=L&lt;&lt;M)+(L&lt;&lt;A)+(1-L&lt;&lt;S),P=z+(1-L&lt;&lt;A)+(L&lt;&lt;S);var z,O=d([l[z],l[I],l[P],l[z+(1&lt;&lt;A)+(1&lt;&lt;S)]]);L?E=O:C=O}C&gt;E&amp;&amp;(w|=1&lt;&lt;M)}}}var D=7^w,R=-1;for(x=0;x&lt;8;++x)x!==w&amp;&amp;x!==D&amp;&amp;(R&lt;0||c[R][1]&gt;c[x][1])&amp;&amp;(R=x);var F=-1;for(x=0;x&lt;3;++x){if((N=R^1&lt;&lt;x)!==w&amp;&amp;N!==D)F&lt;0&amp;&amp;(F=N),(S=c[N])[0]&lt;c[F][0]&amp;&amp;(F=N)}var B=-1;for(x=0;x&lt;3;++x){var N;if((N=R^1&lt;&lt;x)!==w&amp;&amp;N!==D&amp;&amp;N!==F)B&lt;0&amp;&amp;(B=N),(S=c[N])[0]&gt;c[B][0]&amp;&amp;(B=N)}var j=g;j[0]=j[1]=j[2]=0,j[n.log2(F^R)]=R&amp;F,j[n.log2(R^B)]=R&amp;B;var U=7^B;U===w||U===D?(U=7^F,j[n.log2(B^U)]=U&amp;B):j[n.log2(F^U)]=U&amp;F;var V=m,q=w;for(M=0;M&lt;3;++M)V[M]=q&amp;1&lt;&lt;M?-1:1;return v};var n=t(&quot;bit-twiddle&quot;),i=t(&quot;gl-mat4/multiply&quot;),a=t(&quot;split-polygon&quot;),o=t(&quot;robust-orientation&quot;),s=new Array(16),l=new Array(8),c=new Array(8),u=new Array(3),f=[0,0,0];function h(t,e,r){for(var n=0;n&lt;4;++n){t[n]=r[12+n];for(var i=0;i&lt;3;++i)t[n]+=e[i]*r[4*i+n]}}!function(){for(var t=0;t&lt;8;++t)l[t]=[1,1,1,1],c[t]=[1,1,1]}();var p=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function d(t){for(var e=0;e&lt;p.length;++e)if((t=a.positive(t,p[e])).length&lt;3)return 0;var r=t[0],n=r[0]/r[3],i=r[1]/r[3],o=0;for(e=1;e+1&lt;t.length;++e){var s=t[e],l=t[e+1],c=s[0]/s[3]-n,u=s[1]/s[3]-i,f=l[0]/l[3]-n,h=l[1]/l[3]-i;o+=Math.abs(c*h-u*f)}return o}var g=[1,1,1],m=[0,0,0],v={cubeEdges:g,axis:m}},{&quot;bit-twiddle&quot;:97,&quot;gl-mat4/multiply&quot;:295,&quot;robust-orientation&quot;:548,&quot;split-polygon&quot;:566}],253:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var o=[],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[0,0,0];o.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var f=0;f&lt;3;++f){for(var h=o.length/3|0,d=0;d&lt;r[f].length;++d){var g=+r[f][d].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}var m=o.length/3|0;s[f]=h,l[f]=m-h;h=o.length/3|0;for(var v=0;v&lt;r[f].length;++v){g=+r[f][v].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}m=o.length/3|0;c[f]=h,u[f]=m-h}var y=n(t,new Float32Array(o)),x=i(t,[{buffer:y,type:t.FLOAT,size:3,stride:0,offset:0}]),b=a(t);return b.attributes.position.location=0,new p(t,y,x,b,l,s,u,c)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders&quot;).line,o=[0,0,0],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[1,1];function f(t){return t[0]=t[1]=t[2]=0,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function p(t,e,r,n,i,a,o,s){this.gl=t,this.vertBuffer=e,this.vao=r,this.shader=n,this.tickCount=i,this.tickOffset=a,this.gridCount=o,this.gridOffset=s}var d=p.prototype;d.bind=function(t,e,r){this.shader.bind(),this.shader.uniforms.model=t,this.shader.uniforms.view=e,this.shader.uniforms.projection=r,u[0]=this.gl.drawingBufferWidth,u[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=u,this.vao.bind()},d.unbind=function(){this.vao.unbind()},d.drawAxisLine=function(t,e,r,n,i){var a=f(s);this.shader.uniforms.majorAxis=s,a[t]=e[1][t]-e[0][t],this.shader.uniforms.minorAxis=a;var o,u=h(c,r);u[t]+=e[0][t],this.shader.uniforms.offset=u,this.shader.uniforms.lineWidth=i,this.shader.uniforms.color=n,(o=f(l))[(t+2)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6),(o=f(l))[(t+1)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6)},d.drawAxisTicks=function(t,e,r,n,i){if(this.tickCount[t]){var a=f(o);a[t]=1,this.shader.uniforms.majorAxis=a,this.shader.uniforms.offset=e,this.shader.uniforms.minorAxis=r,this.shader.uniforms.color=n,this.shader.uniforms.lineWidth=i;var s=f(l);s[t]=1,this.shader.uniforms.screenAxis=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t])}},d.drawGrid=function(t,e,r,n,i,a){if(this.gridCount[t]){var u=f(s);u[e]=r[1][e]-r[0][e],this.shader.uniforms.minorAxis=u;var p=h(c,n);p[e]+=r[0][e],this.shader.uniforms.offset=p;var d=f(o);d[t]=1,this.shader.uniforms.majorAxis=d;var g=f(l);g[t]=1,this.shader.uniforms.screenAxis=g,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,this.gridCount[t],this.gridOffset[t])}},d.drawZero=function(t,e,r,n,i,a){var o=f(s);this.shader.uniforms.majorAxis=o,o[t]=r[1][t]-r[0][t],this.shader.uniforms.minorAxis=o;var u=h(c,n);u[t]+=r[0][t],this.shader.uniforms.offset=u;var p=f(l);p[e]=1,this.shader.uniforms.screenAxis=p,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,6)},d.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:254,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],254:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, majorAxis, minorAxis, screenAxis;\nuniform float lineWidth;\nuniform vec2 screenShape;\n\nvec3 project(vec3 p) {\n  vec4 pp = projection * view * model * vec4(p, 1.0);\n  return pp.xyz / max(pp.w, 0.0001);\n}\n\nvoid main() {\n  vec3 major = position.x * majorAxis;\n  vec3 minor = position.y * minorAxis;\n\n  vec3 vPosition = major + minor + offset;\n  vec3 pPosition = project(vPosition);\n  vec3 offset = project(vPosition + screenAxis * position.z);\n\n  vec2 screen = normalize((offset - pPosition).xy * screenShape) / screenShape;\n\n  gl_Position = vec4(pPosition + vec3(0.5 * screen * lineWidth, 0), 1.0);\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = color;\n}&quot;]);r.line=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;}])};var s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, axis, alignDir, alignOpt;\nuniform float scale, angle, pixelScale;\nuniform vec2 resolution;\n\nvec3 project(vec3 p) {\n  vec4 pp = projection * view * model * vec4(p, 1.0);\n  return pp.xyz / max(pp.w, 0.0001);\n}\n\nfloat computeViewAngle(vec3 a, vec3 b) {\n  vec3 A = project(a);\n  vec3 B = project(b);\n\n  return atan(\n    (B.y - A.y) * resolution.y,\n    (B.x - A.x) * resolution.x\n  );\n}\n\nconst float PI = 3.141592;\nconst float TWO_PI = 2.0 * PI;\nconst float HALF_PI = 0.5 * PI;\nconst float ONE_AND_HALF_PI = 1.5 * PI;\n\nint option = int(floor(alignOpt.x + 0.001));\nfloat hv_ratio =       alignOpt.y;\nbool enableAlign =    (alignOpt.z != 0.0);\n\nfloat mod_angle(float a) {\n  return mod(a, PI);\n}\n\nfloat positive_angle(float a) {\n  return mod_angle((a &lt; 0.0) ?\n    a + TWO_PI :\n    a\n  );\n}\n\nfloat look_upwards(float a) {\n  float b = positive_angle(a);\n  return ((b &gt; HALF_PI) &amp;&amp; (b &lt;= ONE_AND_HALF_PI)) ?\n    b - PI :\n    b;\n}\n\nfloat look_horizontal_or_vertical(float a, float ratio) {\n  // ratio controls the ratio between being horizontal to (vertical + horizontal)\n  // if ratio is set to 0.5 then it is 50%, 50%.\n  // when using a higher ratio e.g. 0.75 the result would\n  // likely be more horizontal than vertical.\n\n  float b = positive_angle(a);\n\n  return\n    (b &lt; (      ratio) * HALF_PI) ? 0.0 :\n    (b &lt; (2.0 - ratio) * HALF_PI) ? -HALF_PI :\n    (b &lt; (2.0 + ratio) * HALF_PI) ? 0.0 :\n    (b &lt; (4.0 - ratio) * HALF_PI) ? HALF_PI :\n                                    0.0;\n}\n\nfloat roundTo(float a, float b) {\n  return float(b * floor((a + 0.5 * b) / b));\n}\n\nfloat look_round_n_directions(float a, int n) {\n  float b = positive_angle(a);\n  float div = TWO_PI / float(n);\n  float c = roundTo(b, div);\n  return look_upwards(c);\n}\n\nfloat applyAlignOption(float rawAngle, float delta) {\n  return\n    (option &gt;  2) ? look_round_n_directions(rawAngle + delta, option) :       // option 3-n: round to n directions\n    (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\n    (option == 1) ? rawAngle + delta :       // use free angle, and flip to align with one direction of the axis\n    (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\n    (option ==-1) ? 0.0 :                    // useful for backward compatibility, all texts remains horizontal\n                    rawAngle;                // otherwise return back raw input angle\n}\n\nbool isAxisTitle = (axis.x == 0.0) &amp;&amp;\n                   (axis.y == 0.0) &amp;&amp;\n                   (axis.z == 0.0);\n\nvoid main() {\n  //Compute world offset\n  float axisDistance = position.z;\n  vec3 dataPosition = axisDistance * axis + offset;\n\n  float beta = angle; // i.e. user defined attributes for each tick\n\n  float axisAngle;\n  float clipAngle;\n  float flip;\n\n  if (enableAlign) {\n    axisAngle = (isAxisTitle) ? HALF_PI :\n                      computeViewAngle(dataPosition, dataPosition + axis);\n    clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\n\n    axisAngle += (sin(axisAngle) &lt; 0.0) ? PI : 0.0;\n    clipAngle += (sin(clipAngle) &lt; 0.0) ? PI : 0.0;\n\n    flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\n                vec2(sin(clipAngle),-cos(clipAngle))) &gt; 0.0) ? 1.0 : 0.0;\n\n    beta += applyAlignOption(clipAngle, flip * PI);\n  }\n\n  //Compute plane offset\n  vec2 planeCoord = position.xy * pixelScale;\n\n  mat2 planeXform = scale * mat2(\n     cos(beta), sin(beta),\n    -sin(beta), cos(beta)\n  );\n\n  vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\n\n  //Compute clip position\n  vec3 clipPosition = project(dataPosition);\n\n  //Apply text offset in clip coordinates\n  clipPosition += vec3(viewOffset, 0.0);\n\n  //Done\n  gl_Position = vec4(clipPosition, 1.0);\n}&quot;]),l=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = color;\n}&quot;]);r.text=function(t){return i(t,s,l,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;}])};var c=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec3 normal;\n\nuniform mat4 model, view, projection;\nuniform vec3 enable;\nuniform vec3 bounds[2];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n\n  vec3 signAxis = sign(bounds[1] - bounds[0]);\n\n  vec3 realNormal = signAxis * normal;\n\n  if(dot(realNormal, enable) &gt; 0.0) {\n    vec3 minRange = min(bounds[0], bounds[1]);\n    vec3 maxRange = max(bounds[0], bounds[1]);\n    vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\n    gl_Position = projection * view * model * vec4(nPosition, 1.0);\n  } else {\n    gl_Position = vec4(0,0,0,0);\n  }\n\n  colorChannel = abs(realNormal);\n}&quot;]),u=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 colors[3];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n  gl_FragColor = colorChannel.x * colors[0] +\n                 colorChannel.y * colors[1] +\n                 colorChannel.z * colors[2];\n}&quot;]);r.bg=function(t){return i(t,c,u,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}])}},{&quot;gl-shader&quot;:335,glslify:257}],255:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;e.exports=function(t,e,r,a,s,l){var u=n(t),f=i(t,[{buffer:u,size:3}]),h=o(t);h.attributes.position.location=0;var p=new c(t,h,u,f);return p.update(e,r,a,s,l),p};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;vectorize-text&quot;),o=t(&quot;./shaders&quot;).text,s=window||r.global||{},l=s.__TEXT_CACHE||{};s.__TEXT_CACHE={};function c(t,e,r,n){this.gl=t,this.shader=e,this.buffer=r,this.vao=n,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var u=c.prototype,f=[0,0];u.bind=function(t,e,r,n){this.vao.bind(),this.shader.bind();var i=this.shader.uniforms;i.model=t,i.view=e,i.projection=r,i.pixelScale=n,f[0]=this.gl.drawingBufferWidth,f[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=f},u.unbind=function(){this.vao.unbind()},u.update=function(t,e,r,n,i){var o=[];function s(t,e,r,n,i,s){var c=l[r];c||(c=l[r]={});var u=c[e];u||(u=c[e]=function(t,e){try{return a(t,e)}catch(e){return console.warn('error vectorizing text:&quot;'+t+'&quot; error:',e),{cells:[],positions:[]}}}(e,{triangles:!0,font:r,textAlign:&quot;center&quot;,textBaseline:&quot;middle&quot;,lineSpacing:i,styletags:s}));for(var f=(n||12)/12,h=u.positions,p=u.cells,d=0,g=p.length;d&lt;g;++d)for(var m=p[d],v=2;v&gt;=0;--v){var y=h[m[v]];o.push(f*y[0],-f*y[1],t)}}for(var c=[0,0,0],u=[0,0,0],f=[0,0,0],h=[0,0,0],p={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},d=0;d&lt;3;++d){f[d]=o.length/3|0,s(.5*(t[0][d]+t[1][d]),e[d],r[d],12,1.25,p),h[d]=(o.length/3|0)-f[d],c[d]=o.length/3|0;for(var g=0;g&lt;n[d].length;++g)n[d][g].text&amp;&amp;s(n[d][g].x,n[d][g].text,n[d][g].font||i,n[d][g].fontSize||12,1.25,p);u[d]=(o.length/3|0)-c[d]}this.buffer.update(o),this.tickOffset=c,this.tickCount=u,this.labelOffset=f,this.labelCount=h},u.drawTicks=function(t,e,r,n,i,a,o,s){this.tickCount[t]&amp;&amp;(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t]))},u.drawLabel=function(t,e,r,n,i,a,o,s){this.labelCount[t]&amp;&amp;(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.labelCount[t],this.labelOffset[t]))},u.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()}}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./shaders&quot;:254,_process:526,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358,&quot;vectorize-text&quot;:600}],256:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=t+&quot;&quot;,n=r.indexOf(&quot;.&quot;),i=0;n&gt;=0&amp;&amp;(i=r.length-n-1);var a=Math.pow(10,i),o=Math.round(t*e*a),s=o+&quot;&quot;;if(s.indexOf(&quot;e&quot;)&gt;=0)return s;var l=o/a,c=o%a;o&lt;0?(l=0|-Math.ceil(l),c=0|-c):(l=0|Math.floor(l),c|=0);var u=&quot;&quot;+l;if(o&lt;0&amp;&amp;(u=&quot;-&quot;+u),i){for(var f=&quot;&quot;+c;f.length&lt;i;)f=&quot;0&quot;+f;return u+&quot;.&quot;+f}return u}r.create=function(t,e){for(var r=[],i=0;i&lt;3;++i){for(var a=[],o=(t[0][i],t[1][i],0);o*e[i]&lt;=t[1][i];++o)a.push({x:o*e[i],text:n(e[i],o)});for(o=-1;o*e[i]&gt;=t[0][i];--o)a.push({x:o*e[i],text:n(e[i],o)});r.push(a)}return r},r.equal=function(t,e){for(var r=0;r&lt;3;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n&lt;t[r].length;++n){var i=t[r][n],a=e[r][n];if(i.x!==a.x||i.text!==a.text||i.font!==a.font||i.fontColor!==a.fontColor||i.fontSize!==a.fontSize||i.dx!==a.dx||i.dy!==a.dy)return!1}}return!0}},{}],257:[function(t,e,r){e.exports=function(t){&quot;string&quot;==typeof t&amp;&amp;(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n&lt;t.length-1;n++)r.push(t[n],e[n]||&quot;&quot;);return r.push(t[n]),r.join(&quot;&quot;)}},{}],258:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,l,f){var h=e.model||c,p=e.view||c,v=e.projection||c,y=e._ortho||!1,x=t.bounds,b=(f=f||a(h,p,v,x,y)).axis;o(u,p,h),o(u,v,u);for(var _=g,w=0;w&lt;3;++w)_[w].lo=1/0,_[w].hi=-1/0,_[w].pixelsPerDataUnit=1/0;var T=n(s(u,u));s(u,u);for(var k=0;k&lt;3;++k){var M=(k+1)%3,A=(k+2)%3,S=m;t:for(w=0;w&lt;2;++w){var E=[];if(b[k]&lt;0!=!!w){S[k]=x[w][k];for(var C=0;C&lt;2;++C){S[M]=x[C^w][M];for(var L=0;L&lt;2;++L)S[A]=x[L^C^w][A],E.push(S.slice())}var I=y?5:4;for(C=I;C===I;++C){if(0===E.length)continue t;E=i.positive(E,T[C])}for(C=0;C&lt;E.length;++C){A=E[C];var P=d(m,u,A,r,l);for(L=0;L&lt;3;++L)_[L].lo=Math.min(_[L].lo,A[L]),_[L].hi=Math.max(_[L].hi,A[L]),L!==k&amp;&amp;(_[L].pixelsPerDataUnit=Math.min(_[L].pixelsPerDataUnit,Math.abs(P[L])))}}}}return _};var n=t(&quot;extract-frustum-planes&quot;),i=t(&quot;split-polygon&quot;),a=t(&quot;./lib/cube.js&quot;),o=t(&quot;gl-mat4/multiply&quot;),s=t(&quot;gl-mat4/transpose&quot;),l=t(&quot;gl-vec4/transformMat4&quot;),c=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),u=new Float32Array(16);function f(t,e,r){this.lo=t,this.hi=e,this.pixelsPerDataUnit=r}var h=[0,0,0,1],p=[0,0,0,1];function d(t,e,r,n,i){for(var a=0;a&lt;3;++a){for(var o=h,s=p,c=0;c&lt;3;++c)s[c]=o[c]=r[c];s[3]=o[3]=1,s[a]+=1,l(s,s,e),s[3]&lt;0&amp;&amp;(t[a]=1/0),o[a]-=1,l(o,o,e),o[3]&lt;0&amp;&amp;(t[a]=1/0);var u=(o[0]/o[3]-s[0]/s[3])*n,f=(o[1]/o[3]-s[1]/s[3])*i;t[a]=.25*Math.sqrt(u*u+f*f)}return t}var g=[new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0)],m=[0,0,0]},{&quot;./lib/cube.js&quot;:252,&quot;extract-frustum-planes&quot;:240,&quot;gl-mat4/multiply&quot;:295,&quot;gl-mat4/transpose&quot;:306,&quot;gl-vec4/transformMat4&quot;:429,&quot;split-polygon&quot;:566}],259:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=t(&quot;ndarray-ops&quot;),a=t(&quot;ndarray&quot;),o=[&quot;uint8&quot;,&quot;uint8_clamped&quot;,&quot;uint16&quot;,&quot;uint32&quot;,&quot;int8&quot;,&quot;int16&quot;,&quot;int32&quot;,&quot;float32&quot;];function s(t,e,r,n,i){this.gl=t,this.type=e,this.handle=r,this.length=n,this.usage=i}var l=s.prototype;function c(t,e,r,n,i,a){var o=i.length*i.BYTES_PER_ELEMENT;if(a&lt;0)return t.bufferData(e,i,n),o;if(o+a&gt;r)throw new Error(&quot;gl-buffer: If resizing buffer, must not specify offset&quot;);return t.bufferSubData(e,a,i),r}function u(t,e){for(var r=n.malloc(t.length,e),i=t.length,a=0;a&lt;i;++a)r[a]=t[a];return r}l.bind=function(){this.gl.bindBuffer(this.type,this.handle)},l.unbind=function(){this.gl.bindBuffer(this.type,null)},l.dispose=function(){this.gl.deleteBuffer(this.handle)},l.update=function(t,e){if(&quot;number&quot;!=typeof e&amp;&amp;(e=-1),this.bind(),&quot;object&quot;==typeof t&amp;&amp;&quot;undefined&quot;!=typeof t.shape){var r=t.dtype;if(o.indexOf(r)&lt;0&amp;&amp;(r=&quot;float32&quot;),this.type===this.gl.ELEMENT_ARRAY_BUFFER)r=gl.getExtension(&quot;OES_element_index_uint&quot;)&amp;&amp;&quot;uint16&quot;!==r?&quot;uint32&quot;:&quot;uint16&quot;;if(r===t.dtype&amp;&amp;function(t,e){for(var r=1,n=e.length-1;n&gt;=0;--n){if(e[n]!==r)return!1;r*=t[n]}return!0}(t.shape,t.stride))0===t.offset&amp;&amp;t.data.length===t.shape[0]?this.length=c(this.gl,this.type,this.length,this.usage,t.data,e):this.length=c(this.gl,this.type,this.length,this.usage,t.data.subarray(t.offset,t.shape[0]),e);else{var s=n.malloc(t.size,r),l=a(s,t.shape);i.assign(l,t),this.length=c(this.gl,this.type,this.length,this.usage,e&lt;0?s:s.subarray(0,t.size),e),n.free(s)}}else if(Array.isArray(t)){var f;f=this.type===this.gl.ELEMENT_ARRAY_BUFFER?u(t,&quot;uint16&quot;):u(t,&quot;float32&quot;),this.length=c(this.gl,this.type,this.length,this.usage,e&lt;0?f:f.subarray(0,t.length),e),n.free(f)}else if(&quot;object&quot;==typeof t&amp;&amp;&quot;number&quot;==typeof t.length)this.length=c(this.gl,this.type,this.length,this.usage,t,e);else{if(&quot;number&quot;!=typeof t&amp;&amp;void 0!==t)throw new Error(&quot;gl-buffer: Invalid data type&quot;);if(e&gt;=0)throw new Error(&quot;gl-buffer: Cannot specify offset when resizing buffer&quot;);(t|=0)&lt;=0&amp;&amp;(t=1),this.gl.bufferData(this.type,0|t,this.usage),this.length=t}},e.exports=function(t,e,r,n){if(r=r||t.ARRAY_BUFFER,n=n||t.DYNAMIC_DRAW,r!==t.ARRAY_BUFFER&amp;&amp;r!==t.ELEMENT_ARRAY_BUFFER)throw new Error(&quot;gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER&quot;);if(n!==t.DYNAMIC_DRAW&amp;&amp;n!==t.STATIC_DRAW&amp;&amp;n!==t.STREAM_DRAW)throw new Error(&quot;gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW&quot;);var i=t.createBuffer(),a=new s(t,r,i,0,n);return a.update(e),a}},{ndarray:495,&quot;ndarray-ops&quot;:490,&quot;typedarray-pool&quot;:595}],260:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-vec3&quot;);e.exports=function(t,e){var r=t.positions,i=t.vectors,a={positions:[],vertexIntensity:[],vertexIntensityBounds:t.vertexIntensityBounds,vectors:[],cells:[],coneOffset:t.coneOffset,colormap:t.colormap};if(0===t.positions.length)return e&amp;&amp;(e[0]=[0,0,0],e[1]=[0,0,0]),a;for(var o=0,s=1/0,l=-1/0,c=1/0,u=-1/0,f=1/0,h=-1/0,p=null,d=null,g=[],m=1/0,v=!1,y=0;y&lt;r.length;y++){var x=r[y];s=Math.min(x[0],s),l=Math.max(x[0],l),c=Math.min(x[1],c),u=Math.max(x[1],u),f=Math.min(x[2],f),h=Math.max(x[2],h);var b=i[y];if(n.length(b)&gt;o&amp;&amp;(o=n.length(b)),y){var _=2*n.distance(p,x)/(n.length(d)+n.length(b));_?(m=Math.min(m,_),v=!1):v=!0}v||(p=x,d=b),g.push(b)}var w=[s,c,f],T=[l,u,h];e&amp;&amp;(e[0]=w,e[1]=T),0===o&amp;&amp;(o=1);var k=1/o;isFinite(m)||(m=1),a.vectorScale=m;var M=t.coneSize||.5;t.absoluteConeSize&amp;&amp;(M=t.absoluteConeSize*k),a.coneScale=M;y=0;for(var A=0;y&lt;r.length;y++)for(var S=(x=r[y])[0],E=x[1],C=x[2],L=g[y],I=n.length(L)*k,P=0;P&lt;8;P++){a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vertexIntensity.push(I,I,I),a.vertexIntensity.push(I,I,I);var z=a.positions.length;a.cells.push([z-6,z-5,z-4],[z-3,z-2,z-1])}return a};var i=t(&quot;./lib/shaders&quot;);e.exports.createMesh=t(&quot;./create_mesh&quot;),e.exports.createConeMesh=function(t,r){return e.exports.createMesh(t,r,{shaders:i,traceType:&quot;cone&quot;})}},{&quot;./create_mesh&quot;:261,&quot;./lib/shaders&quot;:262,&quot;gl-vec3&quot;:377}],261:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;gl-mat4/multiply&quot;),l=t(&quot;gl-mat4/invert&quot;),c=t(&quot;ndarray&quot;),u=t(&quot;colormap&quot;),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e,r,n,i,a,o,s,l,c,u){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.pickShader=n,this.trianglePositions=i,this.triangleVectors=a,this.triangleColors=s,this.triangleUVs=l,this.triangleIds=o,this.triangleVAO=c,this.triangleCount=0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.traceType=u,this.tubeScale=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=f,this._view=f,this._projection=f,this._resolution=[1,1]}var p=h.prototype;function d(t,e){var r=n(t,e.meshShader.vertex,e.meshShader.fragment,null,e.meshShader.attributes);return r.attributes.position.location=0,r.attributes.color.location=2,r.attributes.uv.location=3,r.attributes.vector.location=4,r}function g(t,e){var r=n(t,e.pickShader.vertex,e.pickShader.fragment,null,e.pickShader.attributes);return r.attributes.position.location=0,r.attributes.id.location=1,r.attributes.vector.location=4,r}p.isOpaque=function(){return this.opacity&gt;=1},p.isTransparent=function(){return this.opacity&lt;1},p.pickSlots=1,p.setPickBase=function(t){this.pickId=t},p.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,&quot;lightPosition&quot;in t&amp;&amp;(this.lightPosition=t.lightPosition),&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity),&quot;ambient&quot;in t&amp;&amp;(this.ambientLight=t.ambient),&quot;diffuse&quot;in t&amp;&amp;(this.diffuseLight=t.diffuse),&quot;specular&quot;in t&amp;&amp;(this.specularLight=t.specular),&quot;roughness&quot;in t&amp;&amp;(this.roughness=t.roughness),&quot;fresnel&quot;in t&amp;&amp;(this.fresnel=t.fresnel),void 0!==t.tubeScale&amp;&amp;(this.tubeScale=t.tubeScale),void 0!==t.vectorScale&amp;&amp;(this.vectorScale=t.vectorScale),void 0!==t.coneScale&amp;&amp;(this.coneScale=t.coneScale),void 0!==t.coneOffset&amp;&amp;(this.coneOffset=t.coneOffset),t.colormap&amp;&amp;(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t){for(var e=u({colormap:t,nshades:256,format:&quot;rgba&quot;}),r=new Uint8Array(1024),n=0;n&lt;256;++n){for(var i=e[n],a=0;a&lt;3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return c(r,[256,256,4],[4,0,1])}(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions,i=t.vectors;if(n&amp;&amp;r&amp;&amp;i){var a=[],o=[],s=[],l=[],f=[];this.cells=r,this.positions=n,this.vectors=i;var h=t.meshColor||[1,1,1,1],p=t.vertexIntensity,d=1/0,g=-1/0;if(p)if(t.vertexIntensityBounds)d=+t.vertexIntensityBounds[0],g=+t.vertexIntensityBounds[1];else for(var m=0;m&lt;p.length;++m){var v=p[m];d=Math.min(d,v),g=Math.max(g,v)}else for(m=0;m&lt;n.length;++m){v=n[m][2];d=Math.min(d,v),g=Math.max(g,v)}this.intensity=p||function(t){for(var e=t.length,r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n][2];return r}(n),this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(m=0;m&lt;n.length;++m)for(var y=n[m],x=0;x&lt;3;++x)!isNaN(y[x])&amp;&amp;isFinite(y[x])&amp;&amp;(this.bounds[0][x]=Math.min(this.bounds[0][x],y[x]),this.bounds[1][x]=Math.max(this.bounds[1][x],y[x]));var b=0;t:for(m=0;m&lt;r.length;++m){var _=r[m];switch(_.length){case 3:for(x=0;x&lt;3;++x){y=n[T=_[x]];for(var w=0;w&lt;3;++w)if(isNaN(y[w])||!isFinite(y[w]))continue t}for(x=0;x&lt;3;++x){var T;y=n[T=_[2-x]];a.push(y[0],y[1],y[2],y[3]);var k=i[T];o.push(k[0],k[1],k[2],k[3]||0);var M,A=h;3===A.length?s.push(A[0],A[1],A[2],1):s.push(A[0],A[1],A[2],A[3]),M=p?[(p[T]-d)/(g-d),0]:[(y[2]-d)/(g-d),0],l.push(M[0],M[1]),f.push(m)}b+=1}}this.triangleCount=b,this.trianglePositions.update(a),this.triangleVectors.update(o),this.triangleColors.update(s),this.triangleUVs.update(l),this.triangleIds.update(new Uint32Array(f))}},p.drawTransparent=p.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var c={model:r,view:n,projection:i,inverseModel:f.slice(),clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,texture:0};c.inverseModel=l(c.inverseModel,c.model),e.disable(e.CULL_FACE),this.texture.bind(0);var u=new Array(16);s(u,c.view,c.model),s(u,c.projection,u),l(u,u);for(o=0;o&lt;3;++o)c.eyePosition[o]=u[12+o]/u[15];var h=u[15];for(o=0;o&lt;3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o&lt;3;++o){for(var p=u[12+o],d=0;d&lt;3;++d)p+=u[4*d+o]*this.lightPosition[d];c.lightPosition[o]=p/h}if(this.triangleCount&gt;0){var g=this.triShader;g.bind(),g.uniforms=c,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}},p.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s={model:r,view:n,projection:i,clipBounds:a,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},l=this.pickShader;l.bind(),l.uniforms=s,this.triangleCount&gt;0&amp;&amp;(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind())},p.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions[r[1]].slice(0,3),i={position:n,dataCoordinate:n,index:Math.floor(r[1]/48)};return&quot;cone&quot;===this.traceType?i.index=Math.floor(r[1]/48):&quot;streamtube&quot;===this.traceType&amp;&amp;(i.intensity=this.intensity[r[1]],i.velocity=this.vectors[r[1]].slice(0,3),i.divergence=this.vectors[r[1]][3],i.index=e),i},p.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()},e.exports=function(t,e,r){var n=r.shaders;1===arguments.length&amp;&amp;(t=(e=t).gl);var s=d(t,n),l=g(t,n),u=o(t,c(new Uint8Array([255,255,255,255]),[1,1,4]));u.generateMipmap(),u.minFilter=t.LINEAR_MIPMAP_LINEAR,u.magFilter=t.LINEAR;var f=i(t),p=i(t),m=i(t),v=i(t),y=i(t),x=a(t,[{buffer:f,type:t.FLOAT,size:4},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:m,type:t.FLOAT,size:4},{buffer:v,type:t.FLOAT,size:2},{buffer:p,type:t.FLOAT,size:4}]),b=new h(t,u,s,l,f,p,y,m,v,x,r.traceType||&quot;cone&quot;);return b.update(e),b}},{colormap:131,&quot;gl-buffer&quot;:259,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/multiply&quot;:295,&quot;gl-shader&quot;:335,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495}],262:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n//   segment + 0 top vertex\n//   segment + 1 perimeter vertex a+1\n//   segment + 2 perimeter vertex a\n//   segment + 3 center base vertex\n//   segment + 4 perimeter vertex a\n//   segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n  const float segmentCount = 8.0;\n\n  float index = rawIndex - floor(rawIndex /\n    (segmentCount * 6.0)) *\n    (segmentCount * 6.0);\n\n  float segment = floor(0.001 + index/6.0);\n  float segmentIndex = index - (segment*6.0);\n\n  normal = -normalize(d);\n\n  if (segmentIndex &gt; 2.99 &amp;&amp; segmentIndex &lt; 3.01) {\n    return mix(vec3(0.0), -d, coneOffset);\n  }\n\n  float nextAngle = (\n    (segmentIndex &gt; 0.99 &amp;&amp;  segmentIndex &lt; 1.01) ||\n    (segmentIndex &gt; 4.99 &amp;&amp;  segmentIndex &lt; 5.01)\n  ) ? 1.0 : 0.0;\n  float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n  vec3 v1 = mix(d, vec3(0.0), coneOffset);\n  vec3 v2 = v1 - d;\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d)*0.25;\n  vec3 y = v * sin(angle) * length(d)*0.25;\n  vec3 v3 = v2 + x + y;\n  if (segmentIndex &lt; 3.0) {\n    vec3 tx = u * sin(angle);\n    vec3 ty = v * -cos(angle);\n    vec3 tangent = tx + ty;\n    normal = normalize(cross(v3 - v1, tangent));\n  }\n\n  if (segmentIndex == 0.0) {\n    return mix(d, vec3(0.0), coneOffset);\n  }\n  return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  // Scale the vector magnitude to stay constant with\n  // model &amp; view changes.\n  vec3 normal;\n  vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n  vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * conePosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  // vec4 m_position  = model * vec4(conePosition, 1.0);\n  vec4 t_position  = view * conePosition;\n  gl_Position      = projection * t_position;\n\n  f_color          = color;\n  f_data           = conePosition.xyz;\n  f_position       = position.xyz;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * opacity;\n}\n&quot;]),o=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n//   segment + 0 top vertex\n//   segment + 1 perimeter vertex a+1\n//   segment + 2 perimeter vertex a\n//   segment + 3 center base vertex\n//   segment + 4 perimeter vertex a\n//   segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n  const float segmentCount = 8.0;\n\n  float index = rawIndex - floor(rawIndex /\n    (segmentCount * 6.0)) *\n    (segmentCount * 6.0);\n\n  float segment = floor(0.001 + index/6.0);\n  float segmentIndex = index - (segment*6.0);\n\n  normal = -normalize(d);\n\n  if (segmentIndex &gt; 2.99 &amp;&amp; segmentIndex &lt; 3.01) {\n    return mix(vec3(0.0), -d, coneOffset);\n  }\n\n  float nextAngle = (\n    (segmentIndex &gt; 0.99 &amp;&amp;  segmentIndex &lt; 1.01) ||\n    (segmentIndex &gt; 4.99 &amp;&amp;  segmentIndex &lt; 5.01)\n  ) ? 1.0 : 0.0;\n  float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n  vec3 v1 = mix(d, vec3(0.0), coneOffset);\n  vec3 v2 = v1 - d;\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d)*0.25;\n  vec3 y = v * sin(angle) * length(d)*0.25;\n  vec3 v3 = v2 + x + y;\n  if (segmentIndex &lt; 3.0) {\n    vec3 tx = u * sin(angle);\n    vec3 ty = v * -cos(angle);\n    vec3 tangent = tx + ty;\n    normal = normalize(cross(v3 - v1, tangent));\n  }\n\n  if (segmentIndex == 0.0) {\n    return mix(d, vec3(0.0), coneOffset);\n  }\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float vectorScale, coneScale, coneOffset;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  vec3 normal;\n  vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);\n  vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n  gl_Position = projection * view * conePosition;\n  f_id        = id;\n  f_position  = position.xyz;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;vector&quot;,type:&quot;vec3&quot;}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;},{name:&quot;vector&quot;,type:&quot;vec3&quot;}]}},{glslify:263}],263:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],264:[function(t,e,r){e.exports={0:&quot;NONE&quot;,1:&quot;ONE&quot;,2:&quot;LINE_LOOP&quot;,3:&quot;LINE_STRIP&quot;,4:&quot;TRIANGLES&quot;,5:&quot;TRIANGLE_STRIP&quot;,6:&quot;TRIANGLE_FAN&quot;,256:&quot;DEPTH_BUFFER_BIT&quot;,512:&quot;NEVER&quot;,513:&quot;LESS&quot;,514:&quot;EQUAL&quot;,515:&quot;LEQUAL&quot;,516:&quot;GREATER&quot;,517:&quot;NOTEQUAL&quot;,518:&quot;GEQUAL&quot;,519:&quot;ALWAYS&quot;,768:&quot;SRC_COLOR&quot;,769:&quot;ONE_MINUS_SRC_COLOR&quot;,770:&quot;SRC_ALPHA&quot;,771:&quot;ONE_MINUS_SRC_ALPHA&quot;,772:&quot;DST_ALPHA&quot;,773:&quot;ONE_MINUS_DST_ALPHA&quot;,774:&quot;DST_COLOR&quot;,775:&quot;ONE_MINUS_DST_COLOR&quot;,776:&quot;SRC_ALPHA_SATURATE&quot;,1024:&quot;STENCIL_BUFFER_BIT&quot;,1028:&quot;FRONT&quot;,1029:&quot;BACK&quot;,1032:&quot;FRONT_AND_BACK&quot;,1280:&quot;INVALID_ENUM&quot;,1281:&quot;INVALID_VALUE&quot;,1282:&quot;INVALID_OPERATION&quot;,1285:&quot;OUT_OF_MEMORY&quot;,1286:&quot;INVALID_FRAMEBUFFER_OPERATION&quot;,2304:&quot;CW&quot;,2305:&quot;CCW&quot;,2849:&quot;LINE_WIDTH&quot;,2884:&quot;CULL_FACE&quot;,2885:&quot;CULL_FACE_MODE&quot;,2886:&quot;FRONT_FACE&quot;,2928:&quot;DEPTH_RANGE&quot;,2929:&quot;DEPTH_TEST&quot;,2930:&quot;DEPTH_WRITEMASK&quot;,2931:&quot;DEPTH_CLEAR_VALUE&quot;,2932:&quot;DEPTH_FUNC&quot;,2960:&quot;STENCIL_TEST&quot;,2961:&quot;STENCIL_CLEAR_VALUE&quot;,2962:&quot;STENCIL_FUNC&quot;,2963:&quot;STENCIL_VALUE_MASK&quot;,2964:&quot;STENCIL_FAIL&quot;,2965:&quot;STENCIL_PASS_DEPTH_FAIL&quot;,2966:&quot;STENCIL_PASS_DEPTH_PASS&quot;,2967:&quot;STENCIL_REF&quot;,2968:&quot;STENCIL_WRITEMASK&quot;,2978:&quot;VIEWPORT&quot;,3024:&quot;DITHER&quot;,3042:&quot;BLEND&quot;,3088:&quot;SCISSOR_BOX&quot;,3089:&quot;SCISSOR_TEST&quot;,3106:&quot;COLOR_CLEAR_VALUE&quot;,3107:&quot;COLOR_WRITEMASK&quot;,3317:&quot;UNPACK_ALIGNMENT&quot;,3333:&quot;PACK_ALIGNMENT&quot;,3379:&quot;MAX_TEXTURE_SIZE&quot;,3386:&quot;MAX_VIEWPORT_DIMS&quot;,3408:&quot;SUBPIXEL_BITS&quot;,3410:&quot;RED_BITS&quot;,3411:&quot;GREEN_BITS&quot;,3412:&quot;BLUE_BITS&quot;,3413:&quot;ALPHA_BITS&quot;,3414:&quot;DEPTH_BITS&quot;,3415:&quot;STENCIL_BITS&quot;,3553:&quot;TEXTURE_2D&quot;,4352:&quot;DONT_CARE&quot;,4353:&quot;FASTEST&quot;,4354:&quot;NICEST&quot;,5120:&quot;BYTE&quot;,5121:&quot;UNSIGNED_BYTE&quot;,5122:&quot;SHORT&quot;,5123:&quot;UNSIGNED_SHORT&quot;,5124:&quot;INT&quot;,5125:&quot;UNSIGNED_INT&quot;,5126:&quot;FLOAT&quot;,5386:&quot;INVERT&quot;,5890:&quot;TEXTURE&quot;,6401:&quot;STENCIL_INDEX&quot;,6402:&quot;DEPTH_COMPONENT&quot;,6406:&quot;ALPHA&quot;,6407:&quot;RGB&quot;,6408:&quot;RGBA&quot;,6409:&quot;LUMINANCE&quot;,6410:&quot;LUMINANCE_ALPHA&quot;,7680:&quot;KEEP&quot;,7681:&quot;REPLACE&quot;,7682:&quot;INCR&quot;,7683:&quot;DECR&quot;,7936:&quot;VENDOR&quot;,7937:&quot;RENDERER&quot;,7938:&quot;VERSION&quot;,9728:&quot;NEAREST&quot;,9729:&quot;LINEAR&quot;,9984:&quot;NEAREST_MIPMAP_NEAREST&quot;,9985:&quot;LINEAR_MIPMAP_NEAREST&quot;,9986:&quot;NEAREST_MIPMAP_LINEAR&quot;,9987:&quot;LINEAR_MIPMAP_LINEAR&quot;,10240:&quot;TEXTURE_MAG_FILTER&quot;,10241:&quot;TEXTURE_MIN_FILTER&quot;,10242:&quot;TEXTURE_WRAP_S&quot;,10243:&quot;TEXTURE_WRAP_T&quot;,10497:&quot;REPEAT&quot;,10752:&quot;POLYGON_OFFSET_UNITS&quot;,16384:&quot;COLOR_BUFFER_BIT&quot;,32769:&quot;CONSTANT_COLOR&quot;,32770:&quot;ONE_MINUS_CONSTANT_COLOR&quot;,32771:&quot;CONSTANT_ALPHA&quot;,32772:&quot;ONE_MINUS_CONSTANT_ALPHA&quot;,32773:&quot;BLEND_COLOR&quot;,32774:&quot;FUNC_ADD&quot;,32777:&quot;BLEND_EQUATION_RGB&quot;,32778:&quot;FUNC_SUBTRACT&quot;,32779:&quot;FUNC_REVERSE_SUBTRACT&quot;,32819:&quot;UNSIGNED_SHORT_4_4_4_4&quot;,32820:&quot;UNSIGNED_SHORT_5_5_5_1&quot;,32823:&quot;POLYGON_OFFSET_FILL&quot;,32824:&quot;POLYGON_OFFSET_FACTOR&quot;,32854:&quot;RGBA4&quot;,32855:&quot;RGB5_A1&quot;,32873:&quot;TEXTURE_BINDING_2D&quot;,32926:&quot;SAMPLE_ALPHA_TO_COVERAGE&quot;,32928:&quot;SAMPLE_COVERAGE&quot;,32936:&quot;SAMPLE_BUFFERS&quot;,32937:&quot;SAMPLES&quot;,32938:&quot;SAMPLE_COVERAGE_VALUE&quot;,32939:&quot;SAMPLE_COVERAGE_INVERT&quot;,32968:&quot;BLEND_DST_RGB&quot;,32969:&quot;BLEND_SRC_RGB&quot;,32970:&quot;BLEND_DST_ALPHA&quot;,32971:&quot;BLEND_SRC_ALPHA&quot;,33071:&quot;CLAMP_TO_EDGE&quot;,33170:&quot;GENERATE_MIPMAP_HINT&quot;,33189:&quot;DEPTH_COMPONENT16&quot;,33306:&quot;DEPTH_STENCIL_ATTACHMENT&quot;,33635:&quot;UNSIGNED_SHORT_5_6_5&quot;,33648:&quot;MIRRORED_REPEAT&quot;,33901:&quot;ALIASED_POINT_SIZE_RANGE&quot;,33902:&quot;ALIASED_LINE_WIDTH_RANGE&quot;,33984:&quot;TEXTURE0&quot;,33985:&quot;TEXTURE1&quot;,33986:&quot;TEXTURE2&quot;,33987:&quot;TEXTURE3&quot;,33988:&quot;TEXTURE4&quot;,33989:&quot;TEXTURE5&quot;,33990:&quot;TEXTURE6&quot;,33991:&quot;TEXTURE7&quot;,33992:&quot;TEXTURE8&quot;,33993:&quot;TEXTURE9&quot;,33994:&quot;TEXTURE10&quot;,33995:&quot;TEXTURE11&quot;,33996:&quot;TEXTURE12&quot;,33997:&quot;TEXTURE13&quot;,33998:&quot;TEXTURE14&quot;,33999:&quot;TEXTURE15&quot;,34e3:&quot;TEXTURE16&quot;,34001:&quot;TEXTURE17&quot;,34002:&quot;TEXTURE18&quot;,34003:&quot;TEXTURE19&quot;,34004:&quot;TEXTURE20&quot;,34005:&quot;TEXTURE21&quot;,34006:&quot;TEXTURE22&quot;,34007:&quot;TEXTURE23&quot;,34008:&quot;TEXTURE24&quot;,34009:&quot;TEXTURE25&quot;,34010:&quot;TEXTURE26&quot;,34011:&quot;TEXTURE27&quot;,34012:&quot;TEXTURE28&quot;,34013:&quot;TEXTURE29&quot;,34014:&quot;TEXTURE30&quot;,34015:&quot;TEXTURE31&quot;,34016:&quot;ACTIVE_TEXTURE&quot;,34024:&quot;MAX_RENDERBUFFER_SIZE&quot;,34041:&quot;DEPTH_STENCIL&quot;,34055:&quot;INCR_WRAP&quot;,34056:&quot;DECR_WRAP&quot;,34067:&quot;TEXTURE_CUBE_MAP&quot;,34068:&quot;TEXTURE_BINDING_CUBE_MAP&quot;,34069:&quot;TEXTURE_CUBE_MAP_POSITIVE_X&quot;,34070:&quot;TEXTURE_CUBE_MAP_NEGATIVE_X&quot;,34071:&quot;TEXTURE_CUBE_MAP_POSITIVE_Y&quot;,34072:&quot;TEXTURE_CUBE_MAP_NEGATIVE_Y&quot;,34073:&quot;TEXTURE_CUBE_MAP_POSITIVE_Z&quot;,34074:&quot;TEXTURE_CUBE_MAP_NEGATIVE_Z&quot;,34076:&quot;MAX_CUBE_MAP_TEXTURE_SIZE&quot;,34338:&quot;VERTEX_ATTRIB_ARRAY_ENABLED&quot;,34339:&quot;VERTEX_ATTRIB_ARRAY_SIZE&quot;,34340:&quot;VERTEX_ATTRIB_ARRAY_STRIDE&quot;,34341:&quot;VERTEX_ATTRIB_ARRAY_TYPE&quot;,34342:&quot;CURRENT_VERTEX_ATTRIB&quot;,34373:&quot;VERTEX_ATTRIB_ARRAY_POINTER&quot;,34466:&quot;NUM_COMPRESSED_TEXTURE_FORMATS&quot;,34467:&quot;COMPRESSED_TEXTURE_FORMATS&quot;,34660:&quot;BUFFER_SIZE&quot;,34661:&quot;BUFFER_USAGE&quot;,34816:&quot;STENCIL_BACK_FUNC&quot;,34817:&quot;STENCIL_BACK_FAIL&quot;,34818:&quot;STENCIL_BACK_PASS_DEPTH_FAIL&quot;,34819:&quot;STENCIL_BACK_PASS_DEPTH_PASS&quot;,34877:&quot;BLEND_EQUATION_ALPHA&quot;,34921:&quot;MAX_VERTEX_ATTRIBS&quot;,34922:&quot;VERTEX_ATTRIB_ARRAY_NORMALIZED&quot;,34930:&quot;MAX_TEXTURE_IMAGE_UNITS&quot;,34962:&quot;ARRAY_BUFFER&quot;,34963:&quot;ELEMENT_ARRAY_BUFFER&quot;,34964:&quot;ARRAY_BUFFER_BINDING&quot;,34965:&quot;ELEMENT_ARRAY_BUFFER_BINDING&quot;,34975:&quot;VERTEX_ATTRIB_ARRAY_BUFFER_BINDING&quot;,35040:&quot;STREAM_DRAW&quot;,35044:&quot;STATIC_DRAW&quot;,35048:&quot;DYNAMIC_DRAW&quot;,35632:&quot;FRAGMENT_SHADER&quot;,35633:&quot;VERTEX_SHADER&quot;,35660:&quot;MAX_VERTEX_TEXTURE_IMAGE_UNITS&quot;,35661:&quot;MAX_COMBINED_TEXTURE_IMAGE_UNITS&quot;,35663:&quot;SHADER_TYPE&quot;,35664:&quot;FLOAT_VEC2&quot;,35665:&quot;FLOAT_VEC3&quot;,35666:&quot;FLOAT_VEC4&quot;,35667:&quot;INT_VEC2&quot;,35668:&quot;INT_VEC3&quot;,35669:&quot;INT_VEC4&quot;,35670:&quot;BOOL&quot;,35671:&quot;BOOL_VEC2&quot;,35672:&quot;BOOL_VEC3&quot;,35673:&quot;BOOL_VEC4&quot;,35674:&quot;FLOAT_MAT2&quot;,35675:&quot;FLOAT_MAT3&quot;,35676:&quot;FLOAT_MAT4&quot;,35678:&quot;SAMPLER_2D&quot;,35680:&quot;SAMPLER_CUBE&quot;,35712:&quot;DELETE_STATUS&quot;,35713:&quot;COMPILE_STATUS&quot;,35714:&quot;LINK_STATUS&quot;,35715:&quot;VALIDATE_STATUS&quot;,35716:&quot;INFO_LOG_LENGTH&quot;,35717:&quot;ATTACHED_SHADERS&quot;,35718:&quot;ACTIVE_UNIFORMS&quot;,35719:&quot;ACTIVE_UNIFORM_MAX_LENGTH&quot;,35720:&quot;SHADER_SOURCE_LENGTH&quot;,35721:&quot;ACTIVE_ATTRIBUTES&quot;,35722:&quot;ACTIVE_ATTRIBUTE_MAX_LENGTH&quot;,35724:&quot;SHADING_LANGUAGE_VERSION&quot;,35725:&quot;CURRENT_PROGRAM&quot;,36003:&quot;STENCIL_BACK_REF&quot;,36004:&quot;STENCIL_BACK_VALUE_MASK&quot;,36005:&quot;STENCIL_BACK_WRITEMASK&quot;,36006:&quot;FRAMEBUFFER_BINDING&quot;,36007:&quot;RENDERBUFFER_BINDING&quot;,36048:&quot;FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE&quot;,36049:&quot;FRAMEBUFFER_ATTACHMENT_OBJECT_NAME&quot;,36050:&quot;FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL&quot;,36051:&quot;FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE&quot;,36053:&quot;FRAMEBUFFER_COMPLETE&quot;,36054:&quot;FRAMEBUFFER_INCOMPLETE_ATTACHMENT&quot;,36055:&quot;FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT&quot;,36057:&quot;FRAMEBUFFER_INCOMPLETE_DIMENSIONS&quot;,36061:&quot;FRAMEBUFFER_UNSUPPORTED&quot;,36064:&quot;COLOR_ATTACHMENT0&quot;,36096:&quot;DEPTH_ATTACHMENT&quot;,36128:&quot;STENCIL_ATTACHMENT&quot;,36160:&quot;FRAMEBUFFER&quot;,36161:&quot;RENDERBUFFER&quot;,36162:&quot;RENDERBUFFER_WIDTH&quot;,36163:&quot;RENDERBUFFER_HEIGHT&quot;,36164:&quot;RENDERBUFFER_INTERNAL_FORMAT&quot;,36168:&quot;STENCIL_INDEX8&quot;,36176:&quot;RENDERBUFFER_RED_SIZE&quot;,36177:&quot;RENDERBUFFER_GREEN_SIZE&quot;,36178:&quot;RENDERBUFFER_BLUE_SIZE&quot;,36179:&quot;RENDERBUFFER_ALPHA_SIZE&quot;,36180:&quot;RENDERBUFFER_DEPTH_SIZE&quot;,36181:&quot;RENDERBUFFER_STENCIL_SIZE&quot;,36194:&quot;RGB565&quot;,36336:&quot;LOW_FLOAT&quot;,36337:&quot;MEDIUM_FLOAT&quot;,36338:&quot;HIGH_FLOAT&quot;,36339:&quot;LOW_INT&quot;,36340:&quot;MEDIUM_INT&quot;,36341:&quot;HIGH_INT&quot;,36346:&quot;SHADER_COMPILER&quot;,36347:&quot;MAX_VERTEX_UNIFORM_VECTORS&quot;,36348:&quot;MAX_VARYING_VECTORS&quot;,36349:&quot;MAX_FRAGMENT_UNIFORM_VECTORS&quot;,37440:&quot;UNPACK_FLIP_Y_WEBGL&quot;,37441:&quot;UNPACK_PREMULTIPLY_ALPHA_WEBGL&quot;,37442:&quot;CONTEXT_LOST_WEBGL&quot;,37443:&quot;UNPACK_COLORSPACE_CONVERSION_WEBGL&quot;,37444:&quot;BROWSER_DEFAULT_WEBGL&quot;}},{}],265:[function(t,e,r){var n=t(&quot;./1.0/numbers&quot;);e.exports=function(t){return n[t]}},{&quot;./1.0/numbers&quot;:264}],266:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),o=i(e,[{buffer:r,type:e.FLOAT,size:3,offset:0,stride:40},{buffer:r,type:e.FLOAT,size:4,offset:12,stride:40},{buffer:r,type:e.FLOAT,size:3,offset:28,stride:40}]),l=a(e);l.attributes.position.location=0,l.attributes.color.location=1,l.attributes.offset.location=2;var c=new s(e,r,o,l);return c.update(t),c};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders/index&quot;),o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.shader=n,this.buffer=e,this.vao=r,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var l=s.prototype;function c(t,e){for(var r=0;r&lt;3;++r)t[0][r]=Math.min(t[0][r],e[r]),t[1][r]=Math.max(t[1][r],e[r])}l.isOpaque=function(){return!this.hasAlpha},l.isTransparent=function(){return this.hasAlpha},l.drawTransparent=l.draw=function(t){var e=this.gl,r=this.shader.uniforms;this.shader.bind();var n=r.view=t.view||o,i=r.projection=t.projection||o;r.model=t.model||o,r.clipBounds=this.clipBounds,r.opacity=this.opacity;var a=n[12],s=n[13],l=n[14],c=n[15],u=(t._ortho||!1?2:1)*this.pixelRatio*(i[3]*a+i[7]*s+i[11]*l+i[15]*c)/e.drawingBufferHeight;this.vao.bind();for(var f=0;f&lt;3;++f)e.lineWidth(this.lineWidth[f]*this.pixelRatio),r.capSize=this.capSize[f]*u,this.lineCount[f]&amp;&amp;e.drawArrays(e.LINES,this.lineOffset[f],this.lineCount[f]);this.vao.unbind()};var u=function(){for(var t=new Array(3),e=0;e&lt;3;++e){for(var r=[],n=1;n&lt;=2;++n)for(var i=-1;i&lt;=1;i+=2){var a=[0,0,0];a[(n+e)%3]=i,r.push(a)}t[e]=r}return t}();function f(t,e,r,n){for(var i=u[n],a=0;a&lt;i.length;++a){var o=i[a];t.push(e[0],e[1],e[2],r[0],r[1],r[2],r[3],o[0],o[1],o[2])}return i.length}l.update=function(t){&quot;lineWidth&quot;in(t=t||{})&amp;&amp;(this.lineWidth=t.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),&quot;capSize&quot;in t&amp;&amp;(this.capSize=t.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=+t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0));var e=t.color||[[0,0,0],[0,0,0],[0,0,0]],r=t.position,n=t.error;if(Array.isArray(e[0])||(e=[e,e,e]),r&amp;&amp;n){var i=[],a=r.length,o=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var s=0;s&lt;3;++s){this.lineOffset[s]=o;t:for(var l=0;l&lt;a;++l){for(var u=r[l],h=0;h&lt;3;++h)if(isNaN(u[h])||!isFinite(u[h]))continue t;var p=n[l],d=e[s];if(Array.isArray(d[0])&amp;&amp;(d=e[l]),3===d.length?d=[d[0],d[1],d[2],1]:4===d.length&amp;&amp;(d=[d[0],d[1],d[2],d[3]],!this.hasAlpha&amp;&amp;d[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),!isNaN(p[0][s])&amp;&amp;!isNaN(p[1][s])){var g;if(p[0][s]&lt;0)(g=u.slice())[s]+=p[0][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s);if(p[1][s]&gt;0)(g=u.slice())[s]+=p[1][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s)}}this.lineCount[s]=o-this.lineOffset[s]}this.buffer.update(i)}},l.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},{&quot;./shaders/index&quot;:268,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],267:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],268:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, offset;\nattribute vec4 color;\nuniform mat4 model, view, projection;\nuniform float capSize;\nvarying vec4 fragColor;\nvarying vec3 fragPosition;\n\nvoid main() {\n  vec4 worldPosition  = model * vec4(position, 1.0);\n  worldPosition       = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\n  gl_Position         = projection * view * worldPosition;\n  fragColor           = color;\n  fragPosition        = position;\n}&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float opacity;\nvarying vec3 fragPosition;\nvarying vec4 fragColor;\n\nvoid main() {\n  if (\n    outOfRange(clipBounds[0], clipBounds[1], fragPosition) ||\n    fragColor.a * opacity == 0.\n  ) discard;\n\n  gl_FragColor = opacity * fragColor;\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;offset&quot;,type:&quot;vec3&quot;}])}},{&quot;gl-shader&quot;:335,glslify:267}],269:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-texture2d&quot;);e.exports=function(t,e,r,n){i||(i=t.FRAMEBUFFER_UNSUPPORTED,a=t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,o=t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,s=t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var c=t.getExtension(&quot;WEBGL_draw_buffers&quot;);!l&amp;&amp;c&amp;&amp;function(t,e){var r=t.getParameter(e.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(r+1);for(var n=0;n&lt;=r;++n){for(var i=new Array(r),a=0;a&lt;n;++a)i[a]=t.COLOR_ATTACHMENT0+a;for(a=n;a&lt;r;++a)i[a]=t.NONE;l[n]=i}}(t,c);Array.isArray(e)&amp;&amp;(n=r,r=0|e[1],e=0|e[0]);if(&quot;number&quot;!=typeof e)throw new Error(&quot;gl-fbo: Missing shape parameter&quot;);var u=t.getParameter(t.MAX_RENDERBUFFER_SIZE);if(e&lt;0||e&gt;u||r&lt;0||r&gt;u)throw new Error(&quot;gl-fbo: Parameters are too large for FBO&quot;);var f=1;if(&quot;color&quot;in(n=n||{})){if((f=Math.max(0|n.color,0))&lt;0)throw new Error(&quot;gl-fbo: Must specify a nonnegative number of colors&quot;);if(f&gt;1){if(!c)throw new Error(&quot;gl-fbo: Multiple draw buffer extension not supported&quot;);if(f&gt;t.getParameter(c.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error(&quot;gl-fbo: Context does not support &quot;+f+&quot; draw buffers&quot;)}}var h=t.UNSIGNED_BYTE,p=t.getExtension(&quot;OES_texture_float&quot;);if(n.float&amp;&amp;f&gt;0){if(!p)throw new Error(&quot;gl-fbo: Context does not support floating point textures&quot;);h=t.FLOAT}else n.preferFloat&amp;&amp;f&gt;0&amp;&amp;p&amp;&amp;(h=t.FLOAT);var g=!0;&quot;depth&quot;in n&amp;&amp;(g=!!n.depth);var m=!1;&quot;stencil&quot;in n&amp;&amp;(m=!!n.stencil);return new d(t,e,r,h,f,g,m,c)};var i,a,o,s,l=null;function c(t){return[t.getParameter(t.FRAMEBUFFER_BINDING),t.getParameter(t.RENDERBUFFER_BINDING),t.getParameter(t.TEXTURE_BINDING_2D)]}function u(t,e){t.bindFramebuffer(t.FRAMEBUFFER,e[0]),t.bindRenderbuffer(t.RENDERBUFFER,e[1]),t.bindTexture(t.TEXTURE_2D,e[2])}function f(t){switch(t){case i:throw new Error(&quot;gl-fbo: Framebuffer unsupported&quot;);case a:throw new Error(&quot;gl-fbo: Framebuffer incomplete attachment&quot;);case o:throw new Error(&quot;gl-fbo: Framebuffer incomplete dimensions&quot;);case s:throw new Error(&quot;gl-fbo: Framebuffer incomplete missing attachment&quot;);default:throw new Error(&quot;gl-fbo: Framebuffer failed for unspecified reason&quot;)}}function h(t,e,r,i,a,o){if(!i)return null;var s=n(t,e,r,a,i);return s.magFilter=t.NEAREST,s.minFilter=t.NEAREST,s.mipSamples=1,s.bind(),t.framebufferTexture2D(t.FRAMEBUFFER,o,t.TEXTURE_2D,s.handle,0),s}function p(t,e,r,n,i){var a=t.createRenderbuffer();return t.bindRenderbuffer(t.RENDERBUFFER,a),t.renderbufferStorage(t.RENDERBUFFER,n,e,r),t.framebufferRenderbuffer(t.FRAMEBUFFER,i,t.RENDERBUFFER,a),a}function d(t,e,r,n,i,a,o,s){this.gl=t,this._shape=[0|e,0|r],this._destroyed=!1,this._ext=s,this.color=new Array(i);for(var d=0;d&lt;i;++d)this.color[d]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=n,this._useDepth=a,this._useStencil=o;var g=this,m=[0|e,0|r];Object.defineProperties(m,{0:{get:function(){return g._shape[0]},set:function(t){return g.width=t}},1:{get:function(){return g._shape[1]},set:function(t){return g.height=t}}}),this._shapeVector=m,function(t){var e=c(t.gl),r=t.gl,n=t.handle=r.createFramebuffer(),i=t._shape[0],a=t._shape[1],o=t.color.length,s=t._ext,d=t._useStencil,g=t._useDepth,m=t._colorType;r.bindFramebuffer(r.FRAMEBUFFER,n);for(var v=0;v&lt;o;++v)t.color[v]=h(r,i,a,m,r.RGBA,r.COLOR_ATTACHMENT0+v);0===o?(t._color_rb=p(r,i,a,r.RGBA4,r.COLOR_ATTACHMENT0),s&amp;&amp;s.drawBuffersWEBGL(l[0])):o&gt;1&amp;&amp;s.drawBuffersWEBGL(l[o]);var y=r.getExtension(&quot;WEBGL_depth_texture&quot;);y?d?t.depth=h(r,i,a,y.UNSIGNED_INT_24_8_WEBGL,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g&amp;&amp;(t.depth=h(r,i,a,r.UNSIGNED_SHORT,r.DEPTH_COMPONENT,r.DEPTH_ATTACHMENT)):g&amp;&amp;d?t._depth_rb=p(r,i,a,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g?t._depth_rb=p(r,i,a,r.DEPTH_COMPONENT16,r.DEPTH_ATTACHMENT):d&amp;&amp;(t._depth_rb=p(r,i,a,r.STENCIL_INDEX,r.STENCIL_ATTACHMENT));var x=r.checkFramebufferStatus(r.FRAMEBUFFER);if(x!==r.FRAMEBUFFER_COMPLETE){t._destroyed=!0,r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(t.handle),t.handle=null,t.depth&amp;&amp;(t.depth.dispose(),t.depth=null),t._depth_rb&amp;&amp;(r.deleteRenderbuffer(t._depth_rb),t._depth_rb=null);for(v=0;v&lt;t.color.length;++v)t.color[v].dispose(),t.color[v]=null;t._color_rb&amp;&amp;(r.deleteRenderbuffer(t._color_rb),t._color_rb=null),u(r,e),f(x)}u(r,e)}(this)}var g=d.prototype;function m(t,e,r){if(t._destroyed)throw new Error(&quot;gl-fbo: Can't resize destroyed FBO&quot;);if(t._shape[0]!==e||t._shape[1]!==r){var n=t.gl,i=n.getParameter(n.MAX_RENDERBUFFER_SIZE);if(e&lt;0||e&gt;i||r&lt;0||r&gt;i)throw new Error(&quot;gl-fbo: Can't resize FBO, invalid dimensions&quot;);t._shape[0]=e,t._shape[1]=r;for(var a=c(n),o=0;o&lt;t.color.length;++o)t.color[o].shape=t._shape;t._color_rb&amp;&amp;(n.bindRenderbuffer(n.RENDERBUFFER,t._color_rb),n.renderbufferStorage(n.RENDERBUFFER,n.RGBA4,t._shape[0],t._shape[1])),t.depth&amp;&amp;(t.depth.shape=t._shape),t._depth_rb&amp;&amp;(n.bindRenderbuffer(n.RENDERBUFFER,t._depth_rb),t._useDepth&amp;&amp;t._useStencil?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t._shape[0],t._shape[1]):t._useDepth?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_COMPONENT16,t._shape[0],t._shape[1]):t._useStencil&amp;&amp;n.renderbufferStorage(n.RENDERBUFFER,n.STENCIL_INDEX,t._shape[0],t._shape[1])),n.bindFramebuffer(n.FRAMEBUFFER,t.handle);var s=n.checkFramebufferStatus(n.FRAMEBUFFER);s!==n.FRAMEBUFFER_COMPLETE&amp;&amp;(t.dispose(),u(n,a),f(s)),u(n,a)}}Object.defineProperties(g,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(t){if(Array.isArray(t)||(t=[0|t,0|t]),2!==t.length)throw new Error(&quot;gl-fbo: Shape vector must be length 2&quot;);var e=0|t[0],r=0|t[1];return m(this,e,r),[e,r]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(t){return m(this,t|=0,this._shape[1]),t},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(t){return t|=0,m(this,this._shape[0],t),t},enumerable:!1}}),g.bind=function(){if(!this._destroyed){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,this.handle),t.viewport(0,0,this._shape[0],this._shape[1])}},g.dispose=function(){if(!this._destroyed){this._destroyed=!0;var t=this.gl;t.deleteFramebuffer(this.handle),this.handle=null,this.depth&amp;&amp;(this.depth.dispose(),this.depth=null),this._depth_rb&amp;&amp;(t.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var e=0;e&lt;this.color.length;++e)this.color[e].dispose(),this.color[e]=null;this._color_rb&amp;&amp;(t.deleteRenderbuffer(this._color_rb),this._color_rb=null)}}},{&quot;gl-texture2d&quot;:353}],270:[function(t,e,r){var n=t(&quot;sprintf-js&quot;).sprintf,i=t(&quot;gl-constants/lookup&quot;),a=t(&quot;glsl-shader-name&quot;),o=t(&quot;add-line-numbers&quot;);e.exports=function(t,e,r){&quot;use strict&quot;;var s=a(e)||&quot;of unknown name (see npm glsl-shader-name)&quot;,l=&quot;unknown type&quot;;void 0!==r&amp;&amp;(l=r===i.FRAGMENT_SHADER?&quot;fragment&quot;:&quot;vertex&quot;);for(var c=n(&quot;Error compiling %s shader %s:\n&quot;,l,s),u=n(&quot;%s%s&quot;,c,t),f=t.split(&quot;\n&quot;),h={},p=0;p&lt;f.length;p++){var d=f[p];if(&quot;&quot;!==d&amp;&amp;&quot;\0&quot;!==d){var g=parseInt(d.split(&quot;:&quot;)[2]);if(isNaN(g))throw new Error(n(&quot;Could not parse error: %s&quot;,d));h[g]=d}}var m=o(e).split(&quot;\n&quot;);for(p=0;p&lt;m.length;p++)if(h[p+3]||h[p+2]||h[p+1]){var v=m[p];if(c+=v+&quot;\n&quot;,h[p+1]){var y=h[p+1];y=y.substr(y.split(&quot;:&quot;,3).join(&quot;:&quot;).length+1).trim(),c+=n(&quot;^^^ %s\n\n&quot;,y)}}return{long:c.trim(),short:u.trim()}}},{&quot;add-line-numbers&quot;:66,&quot;gl-constants/lookup&quot;:265,&quot;glsl-shader-name&quot;:431,&quot;sprintf-js&quot;:567}],271:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.gl,n=o(r,l.vertex,l.fragment),i=o(r,l.pickVertex,l.pickFragment),a=s(r),u=s(r),f=s(r),h=s(r),p=new c(t,n,i,a,u,f,h);return p.update(e),t.addObject(p),p};var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;iota-array&quot;),a=t(&quot;typedarray-pool&quot;),o=t(&quot;gl-shader&quot;),s=t(&quot;gl-buffer&quot;),l=t(&quot;./lib/shaders&quot;);function c(t,e,r,n,i,a,o){this.plot=t,this.shader=e,this.pickShader=r,this.positionBuffer=n,this.weightBuffer=i,this.colorBuffer=a,this.idBuffer=o,this.xData=[],this.yData=[],this.shape=[0,0],this.bounds=[1/0,1/0,-1/0,-1/0],this.pickOffset=0}var u,f=c.prototype,h=[0,0,1,0,0,1,1,0,1,1,0,1];f.draw=(u=[1,0,0,0,1,0,0,0,1],function(){var t=this.plot,e=this.shader,r=this.bounds,n=this.numVertices;if(!(n&lt;=0)){var i=t.gl,a=t.dataBox,o=r[2]-r[0],s=r[3]-r[1],l=a[2]-a[0],c=a[3]-a[1];u[0]=2*o/l,u[4]=2*s/c,u[6]=2*(r[0]-a[0])/l-1,u[7]=2*(r[1]-a[1])/c-1,e.bind();var f=e.uniforms;f.viewTransform=u,f.shape=this.shape;var h=e.attributes;this.positionBuffer.bind(),h.position.pointer(),this.weightBuffer.bind(),h.weight.pointer(i.UNSIGNED_BYTE,!1),this.colorBuffer.bind(),h.color.pointer(i.UNSIGNED_BYTE,!0),i.drawArrays(i.TRIANGLES,0,n)}}),f.drawPick=function(){var t=[1,0,0,0,1,0,0,0,1],e=[0,0,0,0];return function(r){var n=this.plot,i=this.pickShader,a=this.bounds,o=this.numVertices;if(!(o&lt;=0)){var s=n.gl,l=n.dataBox,c=a[2]-a[0],u=a[3]-a[1],f=l[2]-l[0],h=l[3]-l[1];t[0]=2*c/f,t[4]=2*u/h,t[6]=2*(a[0]-l[0])/f-1,t[7]=2*(a[1]-l[1])/h-1;for(var p=0;p&lt;4;++p)e[p]=r&gt;&gt;8*p&amp;255;this.pickOffset=r,i.bind();var d=i.uniforms;d.viewTransform=t,d.pickOffset=e,d.shape=this.shape;var g=i.attributes;return this.positionBuffer.bind(),g.position.pointer(),this.weightBuffer.bind(),g.weight.pointer(s.UNSIGNED_BYTE,!1),this.idBuffer.bind(),g.pickId.pointer(s.UNSIGNED_BYTE,!1),s.drawArrays(s.TRIANGLES,0,o),r+this.shape[0]*this.shape[1]}}}(),f.pick=function(t,e,r){var n=this.pickOffset,i=this.shape[0]*this.shape[1];if(r&lt;n||r&gt;=n+i)return null;var a=r-n,o=this.xData,s=this.yData;return{object:this,pointId:a,dataCoord:[o[a%this.shape[0]],s[a/this.shape[0]|0]]}},f.update=function(t){var e=(t=t||{}).shape||[0,0],r=t.x||i(e[0]),o=t.y||i(e[1]),s=t.z||new Float32Array(e[0]*e[1]),l=!1!==t.zsmooth;this.xData=r,this.yData=o;var c,u,f,p,d=t.colorLevels||[0],g=t.colorValues||[0,0,0,1],m=d.length,v=this.bounds;l?(c=v[0]=r[0],u=v[1]=o[0],f=v[2]=r[r.length-1],p=v[3]=o[o.length-1]):(c=v[0]=r[0]+(r[1]-r[0])/2,u=v[1]=o[0]+(o[1]-o[0])/2,f=v[2]=r[r.length-1]+(r[r.length-1]-r[r.length-2])/2,p=v[3]=o[o.length-1]+(o[o.length-1]-o[o.length-2])/2);var y=1/(f-c),x=1/(p-u),b=e[0],_=e[1];this.shape=[b,_];var w=(l?(b-1)*(_-1):b*_)*(h.length&gt;&gt;&gt;1);this.numVertices=w;for(var T=a.mallocUint8(4*w),k=a.mallocFloat32(2*w),M=a.mallocUint8(2*w),A=a.mallocUint32(w),S=0,E=l?b-1:b,C=l?_-1:_,L=0;L&lt;C;++L){var I,P;l?(I=x*(o[L]-u),P=x*(o[L+1]-u)):(I=L&lt;_-1?x*(o[L]-(o[L+1]-o[L])/2-u):x*(o[L]-(o[L]-o[L-1])/2-u),P=L&lt;_-1?x*(o[L]+(o[L+1]-o[L])/2-u):x*(o[L]+(o[L]-o[L-1])/2-u));for(var z=0;z&lt;E;++z){var O,D;l?(O=y*(r[z]-c),D=y*(r[z+1]-c)):(O=z&lt;b-1?y*(r[z]-(r[z+1]-r[z])/2-c):y*(r[z]-(r[z]-r[z-1])/2-c),D=z&lt;b-1?y*(r[z]+(r[z+1]-r[z])/2-c):y*(r[z]+(r[z]-r[z-1])/2-c));for(var R=0;R&lt;h.length;R+=2){var F,B,N,j,U=h[R],V=h[R+1],q=s[l?(L+V)*b+(z+U):L*b+z],H=n.le(d,q);if(H&lt;0)F=g[0],B=g[1],N=g[2],j=g[3];else if(H===m-1)F=g[4*m-4],B=g[4*m-3],N=g[4*m-2],j=g[4*m-1];else{var G=(q-d[H])/(d[H+1]-d[H]),Y=1-G,W=4*H,X=4*(H+1);F=Y*g[W]+G*g[X],B=Y*g[W+1]+G*g[X+1],N=Y*g[W+2]+G*g[X+2],j=Y*g[W+3]+G*g[X+3]}T[4*S]=255*F,T[4*S+1]=255*B,T[4*S+2]=255*N,T[4*S+3]=255*j,k[2*S]=.5*O+.5*D,k[2*S+1]=.5*I+.5*P,M[2*S]=U,M[2*S+1]=V,A[S]=L*b+z,S+=1}}}this.positionBuffer.update(k),this.weightBuffer.update(M),this.colorBuffer.update(T),this.idBuffer.update(A),a.free(k),a.free(T),a.free(M),a.free(A)},f.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.positionBuffer.dispose(),this.weightBuffer.dispose(),this.colorBuffer.dispose(),this.idBuffer.dispose(),this.plot.removeObject(this)}},{&quot;./lib/shaders&quot;:272,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335,&quot;iota-array&quot;:463,&quot;typedarray-pool&quot;:595}],272:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;);e.exports={fragment:n([&quot;precision lowp float;\n#define GLSLIFY 1\nvarying vec4 fragColor;\nvoid main() {\n  gl_FragColor = vec4(fragColor.rgb * fragColor.a, fragColor.a);\n}\n&quot;]),vertex:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 color;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragColor;\n\nvoid main() {\n  vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n  fragColor = color;\n  gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n&quot;]),pickFragment:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nuniform vec2 shape;\nuniform vec4 pickOffset;\n\nvoid main() {\n  vec2 d = step(.5, vWeight);\n  vec4 id = fragId + pickOffset;\n  id.x += d.x + d.y*shape.x;\n\n  id.y += floor(id.x / 256.0);\n  id.x -= floor(id.x / 256.0) * 256.0;\n\n  id.z += floor(id.y / 256.0);\n  id.y -= floor(id.y / 256.0) * 256.0;\n\n  id.w += floor(id.z / 256.0);\n  id.z -= floor(id.z / 256.0) * 256.0;\n\n  gl_FragColor = id/255.;\n}\n&quot;]),pickVertex:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nvoid main() {\n  vWeight = weight;\n\n  fragId = pickId;\n\n  vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n  gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n&quot;])}},{glslify:273}],273:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],274:[function(t,e,r){var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, nextPosition;\nattribute float arcLength, lineWidth;\nattribute vec4 color;\n\nuniform vec2 screenShape;\nuniform float pixelRatio;\nuniform mat4 model, view, projection;\n\nvarying vec4 fragColor;\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\n\nvec4 project(vec3 p) {\n  return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n  vec4 startPoint = project(position);\n  vec4 endPoint   = project(nextPosition);\n\n  vec2 A = startPoint.xy / startPoint.w;\n  vec2 B =   endPoint.xy /   endPoint.w;\n\n  float clipAngle = atan(\n    (B.y - A.y) * screenShape.y,\n    (B.x - A.x) * screenShape.x\n  );\n\n  vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\n    sin(clipAngle),\n    -cos(clipAngle)\n  ) / screenShape;\n\n  gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\n\n  worldPosition = position;\n  pixelArcLength = arcLength;\n  fragColor = color;\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3      clipBounds[2];\nuniform sampler2D dashTexture;\nuniform float     dashScale;\nuniform float     opacity;\n\nvarying vec3    worldPosition;\nvarying float   pixelArcLength;\nvarying vec4    fragColor;\n\nvoid main() {\n  if (\n    outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||\n    fragColor.a * opacity == 0.\n  ) discard;\n\n  float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\n  if(dashWeight &lt; 0.5) {\n    discard;\n  }\n  gl_FragColor = fragColor * opacity;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\n#define FLOAT_MAX  1.70141184e38\n#define FLOAT_MIN  1.17549435e-38\n\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl\nvec4 packFloat(float v) {\n  float av = abs(v);\n\n  //Handle special cases\n  if(av &lt; FLOAT_MIN) {\n    return vec4(0.0, 0.0, 0.0, 0.0);\n  } else if(v &gt; FLOAT_MAX) {\n    return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\n  } else if(v &lt; -FLOAT_MAX) {\n    return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\n  }\n\n  vec4 c = vec4(0,0,0,0);\n\n  //Compute exponent and mantissa\n  float e = floor(log2(av));\n  float m = av * pow(2.0, -e) - 1.0;\n\n  //Unpack mantissa\n  c[1] = floor(128.0 * m);\n  m -= c[1] / 128.0;\n  c[2] = floor(32768.0 * m);\n  m -= c[2] / 32768.0;\n  c[3] = floor(8388608.0 * m);\n\n  //Unpack exponent\n  float ebias = e + 127.0;\n  c[0] = floor(ebias / 2.0);\n  ebias -= c[0] * 2.0;\n  c[1] += floor(ebias) * 128.0;\n\n  //Unpack sign bit\n  c[0] += 128.0 * step(0.0, -v);\n\n  //Scale back to range\n  return c / 255.0;\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform float pickId;\nuniform vec3 clipBounds[2];\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\n\n  gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);\n}&quot;]),l=[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;nextPosition&quot;,type:&quot;vec3&quot;},{name:&quot;arcLength&quot;,type:&quot;float&quot;},{name:&quot;lineWidth&quot;,type:&quot;float&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;}];r.createShader=function(t){return i(t,a,o,null,l)},r.createPickShader=function(t){return i(t,a,s,null,l)}},{&quot;gl-shader&quot;:335,glslify:276}],275:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl||t.scene&amp;&amp;t.scene.gl,r=f(e);r.attributes.position.location=0,r.attributes.nextPosition.location=1,r.attributes.arcLength.location=2,r.attributes.lineWidth.location=3,r.attributes.color.location=4;var o=h(e);o.attributes.position.location=0,o.attributes.nextPosition.location=1,o.attributes.arcLength.location=2,o.attributes.lineWidth.location=3,o.attributes.color.location=4;for(var s=n(e),l=i(e,[{buffer:s,size:3,offset:0,stride:48},{buffer:s,size:3,offset:12,stride:48},{buffer:s,size:1,offset:24,stride:48},{buffer:s,size:1,offset:28,stride:48},{buffer:s,size:4,offset:32,stride:48}]),u=c(new Array(1024),[256,1,4]),p=0;p&lt;1024;++p)u.data[p]=255;var d=a(e,u);d.wrap=e.REPEAT;var g=new v(e,r,o,s,l,d);return g.update(t),g};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;gl-texture2d&quot;),o=new Uint8Array(4),s=new Float32Array(o.buffer);var l=t(&quot;binary-search-bounds&quot;),c=t(&quot;ndarray&quot;),u=t(&quot;./lib/shaders&quot;),f=u.createShader,h=u.createPickShader,p=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function d(t,e){for(var r=0,n=0;n&lt;3;++n){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)}function g(t){for(var e=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],r=0;r&lt;3;++r)e[0][r]=Math.max(t[0][r],e[0][r]),e[1][r]=Math.min(t[1][r],e[1][r]);return e}function m(t,e,r,n){this.arcLength=t,this.position=e,this.index=r,this.dataCoordinate=n}function v(t,e,r,n,i,a){this.gl=t,this.shader=e,this.pickShader=r,this.buffer=n,this.vao=i,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=a,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var y=v.prototype;y.isTransparent=function(){return this.hasAlpha},y.isOpaque=function(){return!this.hasAlpha},y.pickSlots=1,y.setPickBase=function(t){this.pickId=t},y.drawTransparent=y.draw=function(t){if(this.vertexCount){var e=this.gl,r=this.shader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,clipBounds:g(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.drawPick=function(t){if(this.vertexCount){var e=this.gl,r=this.pickShader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,pickId:this.pickId,clipBounds:g(this.clipBounds),screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.update=function(t){var e,r;this.dirty=!0;var n=!!t.connectGaps;&quot;dashScale&quot;in t&amp;&amp;(this.dashScale=t.dashScale),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=+t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0));var i=[],a=[],o=[],s=0,u=0,f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],h=t.position||t.positions;if(h){var p=t.color||t.colors||[0,0,0,1],g=t.lineWidth||1,m=!1;t:for(e=1;e&lt;h.length;++e){var v,y,x,b=h[e-1],_=h[e];for(a.push(s),o.push(b.slice()),r=0;r&lt;3;++r){if(isNaN(b[r])||isNaN(_[r])||!isFinite(b[r])||!isFinite(_[r])){if(!n&amp;&amp;i.length&gt;0){for(var w=0;w&lt;24;++w)i.push(i[i.length-12]);u+=2,m=!0}continue t}f[0][r]=Math.min(f[0][r],b[r],_[r]),f[1][r]=Math.max(f[1][r],b[r],_[r])}Array.isArray(p[0])?(v=p.length&gt;e-1?p[e-1]:p.length&gt;0?p[p.length-1]:[0,0,0,1],y=p.length&gt;e?p[e]:p.length&gt;0?p[p.length-1]:[0,0,0,1]):v=y=p,3===v.length&amp;&amp;(v=[v[0],v[1],v[2],1]),3===y.length&amp;&amp;(y=[y[0],y[1],y[2],1]),!this.hasAlpha&amp;&amp;v[3]&lt;1&amp;&amp;(this.hasAlpha=!0),x=Array.isArray(g)?g.length&gt;e-1?g[e-1]:g.length&gt;0?g[g.length-1]:[0,0,0,1]:g;var T=s;if(s+=d(b,_),m){for(r=0;r&lt;2;++r)i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3]);u+=2,m=!1}i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3],b[0],b[1],b[2],_[0],_[1],_[2],T,-x,v[0],v[1],v[2],v[3],_[0],_[1],_[2],b[0],b[1],b[2],s,-x,y[0],y[1],y[2],y[3],_[0],_[1],_[2],b[0],b[1],b[2],s,x,y[0],y[1],y[2],y[3]),u+=4}}if(this.buffer.update(i),a.push(s),o.push(h[h.length-1].slice()),this.bounds=f,this.vertexCount=u,this.points=o,this.arcLength=a,&quot;dashes&quot;in t){var k=t.dashes.slice();for(k.unshift(0),e=1;e&lt;k.length;++e)k[e]=k[e-1]+k[e];var M=c(new Array(1024),[256,1,4]);for(e=0;e&lt;256;++e){for(r=0;r&lt;4;++r)M.set(e,0,r,0);1&amp;l.le(k,k[k.length-1]*e/255)?M.set(e,0,0,0):M.set(e,0,0,255)}this.texture.setPixels(M)}},y.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},y.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=function(t,e,r,n){return o[0]=n,o[1]=r,o[2]=e,o[3]=t,s[0]}(t.value[0],t.value[1],t.value[2],0),r=l.le(this.arcLength,e);if(r&lt;0)return null;if(r===this.arcLength.length-1)return new m(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),r);for(var n=this.points[r],i=this.points[Math.min(r+1,this.points.length-1)],a=(e-this.arcLength[r])/(this.arcLength[r+1]-this.arcLength[r]),c=1-a,u=[0,0,0],f=0;f&lt;3;++f)u[f]=c*n[f]+a*i[f];var h=Math.min(a&lt;.5?r:r+1,this.points.length-1);return new m(e,u,h,this.points[h])}},{&quot;./lib/shaders&quot;:274,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495}],276:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],277:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15];return t[0]=s*(h*v-p*m)-f*(l*v-c*m)+g*(l*p-c*h),t[1]=-(n*(h*v-p*m)-f*(i*v-a*m)+g*(i*p-a*h)),t[2]=n*(l*v-c*m)-s*(i*v-a*m)+g*(i*c-a*l),t[3]=-(n*(l*p-c*h)-s*(i*p-a*h)+f*(i*c-a*l)),t[4]=-(o*(h*v-p*m)-u*(l*v-c*m)+d*(l*p-c*h)),t[5]=r*(h*v-p*m)-u*(i*v-a*m)+d*(i*p-a*h),t[6]=-(r*(l*v-c*m)-o*(i*v-a*m)+d*(i*c-a*l)),t[7]=r*(l*p-c*h)-o*(i*p-a*h)+u*(i*c-a*l),t[8]=o*(f*v-p*g)-u*(s*v-c*g)+d*(s*p-c*f),t[9]=-(r*(f*v-p*g)-u*(n*v-a*g)+d*(n*p-a*f)),t[10]=r*(s*v-c*g)-o*(n*v-a*g)+d*(n*c-a*s),t[11]=-(r*(s*p-c*f)-o*(n*p-a*f)+u*(n*c-a*s)),t[12]=-(o*(f*m-h*g)-u*(s*m-l*g)+d*(s*h-l*f)),t[13]=r*(f*m-h*g)-u*(n*m-i*g)+d*(n*h-i*f),t[14]=-(r*(s*m-l*g)-o*(n*m-i*g)+d*(n*l-i*s)),t[15]=r*(s*h-l*f)-o*(n*h-i*f)+u*(n*l-i*s),t}},{}],278:[function(t,e,r){e.exports=function(t){var e=new Float32Array(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},{}],279:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],280:[function(t,e,r){e.exports=function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],281:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],f=t[10],h=t[11],p=t[12],d=t[13],g=t[14],m=t[15];return(e*o-r*a)*(f*m-h*g)-(e*s-n*a)*(u*m-h*d)+(e*l-i*a)*(u*g-f*d)+(r*s-n*o)*(c*m-h*p)-(r*l-i*o)*(c*g-f*p)+(n*l-i*s)*(c*d-u*p)}},{}],282:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,c=r*o,u=n*o,f=n*s,h=i*o,p=i*s,d=i*l,g=a*o,m=a*s,v=a*l;return t[0]=1-f-d,t[1]=u+v,t[2]=h-m,t[3]=0,t[4]=u-v,t[5]=1-c-d,t[6]=p+g,t[7]=0,t[8]=h+m,t[9]=p-g,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],283:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o=r[0],s=r[1],l=r[2],c=Math.sqrt(o*o+s*s+l*l);if(Math.abs(c)&lt;1e-6)return null;return o*=c=1/c,s*=c,l*=c,n=Math.sin(e),i=Math.cos(e),a=1-i,t[0]=o*o*a+i,t[1]=s*o*a+l*n,t[2]=l*o*a-s*n,t[3]=0,t[4]=o*s*a-l*n,t[5]=s*s*a+i,t[6]=l*s*a+o*n,t[7]=0,t[8]=o*l*a+s*n,t[9]=s*l*a-o*n,t[10]=l*l*a+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],284:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=n+n,l=i+i,c=a+a,u=n*s,f=n*l,h=n*c,p=i*l,d=i*c,g=a*c,m=o*s,v=o*l,y=o*c;return t[0]=1-(p+g),t[1]=f+y,t[2]=h-v,t[3]=0,t[4]=f-y,t[5]=1-(u+g),t[6]=d+m,t[7]=0,t[8]=h+v,t[9]=d-m,t[10]=1-(u+p),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}},{}],285:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],286:[function(t,e,r){e.exports=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}},{}],287:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],288:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],289:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],290:[function(t,e,r){e.exports=function(t,e,r,n,i,a,o){var s=1/(r-e),l=1/(i-n),c=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(i+n)*l,t[10]=(o+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*c,t[15]=0,t}},{}],291:[function(t,e,r){e.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],292:[function(t,e,r){e.exports={create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),copy:t(&quot;./copy&quot;),identity:t(&quot;./identity&quot;),transpose:t(&quot;./transpose&quot;),invert:t(&quot;./invert&quot;),adjoint:t(&quot;./adjoint&quot;),determinant:t(&quot;./determinant&quot;),multiply:t(&quot;./multiply&quot;),translate:t(&quot;./translate&quot;),scale:t(&quot;./scale&quot;),rotate:t(&quot;./rotate&quot;),rotateX:t(&quot;./rotateX&quot;),rotateY:t(&quot;./rotateY&quot;),rotateZ:t(&quot;./rotateZ&quot;),fromRotation:t(&quot;./fromRotation&quot;),fromRotationTranslation:t(&quot;./fromRotationTranslation&quot;),fromScaling:t(&quot;./fromScaling&quot;),fromTranslation:t(&quot;./fromTranslation&quot;),fromXRotation:t(&quot;./fromXRotation&quot;),fromYRotation:t(&quot;./fromYRotation&quot;),fromZRotation:t(&quot;./fromZRotation&quot;),fromQuat:t(&quot;./fromQuat&quot;),frustum:t(&quot;./frustum&quot;),perspective:t(&quot;./perspective&quot;),perspectiveFromFieldOfView:t(&quot;./perspectiveFromFieldOfView&quot;),ortho:t(&quot;./ortho&quot;),lookAt:t(&quot;./lookAt&quot;),str:t(&quot;./str&quot;)}},{&quot;./adjoint&quot;:277,&quot;./clone&quot;:278,&quot;./copy&quot;:279,&quot;./create&quot;:280,&quot;./determinant&quot;:281,&quot;./fromQuat&quot;:282,&quot;./fromRotation&quot;:283,&quot;./fromRotationTranslation&quot;:284,&quot;./fromScaling&quot;:285,&quot;./fromTranslation&quot;:286,&quot;./fromXRotation&quot;:287,&quot;./fromYRotation&quot;:288,&quot;./fromZRotation&quot;:289,&quot;./frustum&quot;:290,&quot;./identity&quot;:291,&quot;./invert&quot;:293,&quot;./lookAt&quot;:294,&quot;./multiply&quot;:295,&quot;./ortho&quot;:296,&quot;./perspective&quot;:297,&quot;./perspectiveFromFieldOfView&quot;:298,&quot;./rotate&quot;:299,&quot;./rotateX&quot;:300,&quot;./rotateY&quot;:301,&quot;./rotateZ&quot;:302,&quot;./scale&quot;:303,&quot;./str&quot;:304,&quot;./translate&quot;:305,&quot;./transpose&quot;:306}],293:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*g-f*d,M=u*m-h*d,A=u*v-p*d,S=f*m-h*g,E=f*v-p*g,C=h*v-p*m,L=y*C-x*E+b*S+_*A-w*M+T*k;if(!L)return null;return L=1/L,t[0]=(s*C-l*E+c*S)*L,t[1]=(i*E-n*C-a*S)*L,t[2]=(g*T-m*w+v*_)*L,t[3]=(h*w-f*T-p*_)*L,t[4]=(l*A-o*C-c*M)*L,t[5]=(r*C-i*A+a*M)*L,t[6]=(m*b-d*T-v*x)*L,t[7]=(u*T-h*b+p*x)*L,t[8]=(o*E-s*A+c*k)*L,t[9]=(n*A-r*E-a*k)*L,t[10]=(d*w-g*b+v*y)*L,t[11]=(f*b-u*w-p*y)*L,t[12]=(s*M-o*S-l*k)*L,t[13]=(r*S-n*M+i*k)*L,t[14]=(g*x-d*_-m*y)*L,t[15]=(u*_-f*x+h*y)*L,t}},{}],294:[function(t,e,r){var n=t(&quot;./identity&quot;);e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g=e[0],m=e[1],v=e[2],y=i[0],x=i[1],b=i[2],_=r[0],w=r[1],T=r[2];if(Math.abs(g-_)&lt;1e-6&amp;&amp;Math.abs(m-w)&lt;1e-6&amp;&amp;Math.abs(v-T)&lt;1e-6)return n(t);f=g-_,h=m-w,p=v-T,d=1/Math.sqrt(f*f+h*h+p*p),a=x*(p*=d)-b*(h*=d),o=b*(f*=d)-y*p,s=y*h-x*f,(d=Math.sqrt(a*a+o*o+s*s))?(a*=d=1/d,o*=d,s*=d):(a=0,o=0,s=0);l=h*s-p*o,c=p*a-f*s,u=f*o-h*a,(d=Math.sqrt(l*l+c*c+u*u))?(l*=d=1/d,c*=d,u*=d):(l=0,c=0,u=0);return t[0]=a,t[1]=l,t[2]=f,t[3]=0,t[4]=o,t[5]=c,t[6]=h,t[7]=0,t[8]=s,t[9]=u,t[10]=p,t[11]=0,t[12]=-(a*g+o*m+s*v),t[13]=-(l*g+c*m+u*v),t[14]=-(f*g+h*m+p*v),t[15]=1,t}},{&quot;./identity&quot;:291}],295:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],m=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*m,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,x=r[4],b=r[5],_=r[6],w=r[7],t[4]=x*n+b*s+_*f+w*g,t[5]=x*i+b*l+_*h+w*m,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,x=r[8],b=r[9],_=r[10],w=r[11],t[8]=x*n+b*s+_*f+w*g,t[9]=x*i+b*l+_*h+w*m,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,x=r[12],b=r[13],_=r[14],w=r[15],t[12]=x*n+b*s+_*f+w*g,t[13]=x*i+b*l+_*h+w*m,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}},{}],296:[function(t,e,r){e.exports=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t}},{}],297:[function(t,e,r){e.exports=function(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t}},{}],298:[function(t,e,r){e.exports=function(t,e,r,n){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),c=2/(i+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(i-a)*c*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t}},{}],299:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S,E=n[0],C=n[1],L=n[2],I=Math.sqrt(E*E+C*C+L*L);if(Math.abs(I)&lt;1e-6)return null;E*=I=1/I,C*=I,L*=I,i=Math.sin(r),a=Math.cos(r),o=1-a,s=e[0],l=e[1],c=e[2],u=e[3],f=e[4],h=e[5],p=e[6],d=e[7],g=e[8],m=e[9],v=e[10],y=e[11],x=E*E*o+a,b=C*E*o+L*i,_=L*E*o-C*i,w=E*C*o-L*i,T=C*C*o+a,k=L*C*o+E*i,M=E*L*o+C*i,A=C*L*o-E*i,S=L*L*o+a,t[0]=s*x+f*b+g*_,t[1]=l*x+h*b+m*_,t[2]=c*x+p*b+v*_,t[3]=u*x+d*b+y*_,t[4]=s*w+f*T+g*k,t[5]=l*w+h*T+m*k,t[6]=c*w+p*T+v*k,t[7]=u*w+d*T+y*k,t[8]=s*M+f*A+g*S,t[9]=l*M+h*A+m*S,t[10]=c*M+p*A+v*S,t[11]=u*M+d*A+y*S,e!==t&amp;&amp;(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t}},{}],300:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t}},{}],301:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i-c*n,t[1]=o*i-u*n,t[2]=s*i-f*n,t[3]=l*i-h*n,t[8]=a*n+c*i,t[9]=o*n+u*i,t[10]=s*n+f*i,t[11]=l*n+h*i,t}},{}],302:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t}},{}],303:[function(t,e,r){e.exports=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],304:[function(t,e,r){e.exports=function(t){return&quot;mat4(&quot;+t[0]+&quot;, &quot;+t[1]+&quot;, &quot;+t[2]+&quot;, &quot;+t[3]+&quot;, &quot;+t[4]+&quot;, &quot;+t[5]+&quot;, &quot;+t[6]+&quot;, &quot;+t[7]+&quot;, &quot;+t[8]+&quot;, &quot;+t[9]+&quot;, &quot;+t[10]+&quot;, &quot;+t[11]+&quot;, &quot;+t[12]+&quot;, &quot;+t[13]+&quot;, &quot;+t[14]+&quot;, &quot;+t[15]+&quot;)&quot;}},{}],305:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],m=r[1],v=r[2];e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*m+f*v+e[12],t[13]=i*g+l*m+h*v+e[13],t[14]=a*g+c*m+p*v+e[14],t[15]=o*g+u*m+d*v+e[15]);return t}},{}],306:[function(t,e,r){e.exports=function(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}},{}],307:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;barycentric&quot;),i=t(&quot;polytope-closest-point/lib/closest_point_2d.js&quot;);function a(t,e){for(var r=[0,0,0,0],n=0;n&lt;4;++n)for(var i=0;i&lt;4;++i)r[i]+=t[4*n+i]*e[n];return r}function o(t,e,r,n,i){for(var o=a(n,a(r,a(e,[t[0],t[1],t[2],1]))),s=0;s&lt;3;++s)o[s]/=o[3];return[.5*i[0]*(1+o[0]),.5*i[1]*(1-o[1])]}function s(t,e){for(var r=[0,0,0],n=0;n&lt;t.length;++n)for(var i=t[n],a=e[n],o=0;o&lt;3;++o)r[o]+=a*i[o];return r}e.exports=function(t,e,r,a,l,c){if(1===t.length)return[0,t[0].slice()];for(var u=new Array(t.length),f=0;f&lt;t.length;++f)u[f]=o(t[f],r,a,l,c);var h=0,p=1/0;for(f=0;f&lt;u.length;++f){for(var d=0,g=0;g&lt;2;++g)d+=Math.pow(u[f][g]-e[g],2);d&lt;p&amp;&amp;(p=d,h=f)}var m=function(t,e){if(2===t.length){for(var r=0,a=0,o=0;o&lt;2;++o)r+=Math.pow(e[o]-t[0][o],2),a+=Math.pow(e[o]-t[1][o],2);return r=Math.sqrt(r),a=Math.sqrt(a),r+a&lt;1e-6?[1,0]:[a/(r+a),r/(a+r)]}if(3===t.length){var s=[0,0];return i(t[0],t[1],t[2],e,s),n(t,s)}return[]}(u,e),v=0;for(f=0;f&lt;3;++f){if(m[f]&lt;-.001||m[f]&gt;1.0001)return null;v+=m[f]}if(Math.abs(v-1)&gt;.001)return null;return[h,s(t,m),m]}},{barycentric:78,&quot;polytope-closest-point/lib/closest_point_2d.js&quot;:525}],308:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n           , view\n           , projection\n           , inverseModel;\nuniform vec3 eyePosition\n           , lightPosition;\n\nvarying vec3 f_normal\n           , f_lightDirection\n           , f_eyeDirection\n           , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvec4 project(vec3 p) {\n  return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n  gl_Position      = project(position);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * vec4(position , 1.0);\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal  = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  f_color          = color;\n  f_data           = position;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n            , fresnel\n            , kambient\n            , kdiffuse\n            , kspecular;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n           , f_lightDirection\n           , f_eyeDirection\n           , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (f_color.a == 0.0 ||\n    outOfRange(clipBounds[0], clipBounds[1], f_data)\n  ) discard;\n\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\n\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * f_color.a;\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model, view, projection;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n  f_color = color;\n  f_data  = position;\n  f_uv    = uv;\n}&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\n\n  gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}&quot;]),l=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\nattribute float pointSize;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0);\n  } else {\n    gl_Position = projection * view * model * vec4(position, 1.0);\n  }\n  gl_PointSize = pointSize;\n  f_color = color;\n  f_uv = uv;\n}&quot;]),c=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5);\n  if(dot(pointR, pointR) &gt; 0.25) {\n    discard;\n  }\n  gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}&quot;]),u=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n  f_id        = id;\n  f_position  = position;\n}&quot;]),f=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]),h=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3  position;\nattribute float pointSize;\nattribute vec4  id;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0.0, 0.0, 0.0, 0.0);\n  } else {\n    gl_Position  = projection * view * model * vec4(position, 1.0);\n    gl_PointSize = pointSize;\n  }\n  f_id         = id;\n  f_position   = position;\n}&quot;]),p=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n}&quot;]),d=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec3 contourColor;\n\nvoid main() {\n  gl_FragColor = vec4(contourColor, 1.0);\n}\n&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;}]},r.wireShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;}]},r.pointShader={vertex:l,fragment:c,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;pointSize&quot;,type:&quot;float&quot;}]},r.pickShader={vertex:u,fragment:f,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}]},r.pointPickShader={vertex:h,fragment:f,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;pointSize&quot;,type:&quot;float&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}]},r.contourShader={vertex:p,fragment:d,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;}]}},{glslify:310}],309:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;normals&quot;),l=t(&quot;gl-mat4/multiply&quot;),c=t(&quot;gl-mat4/invert&quot;),u=t(&quot;ndarray&quot;),f=t(&quot;colormap&quot;),h=t(&quot;simplicial-complex-contour&quot;),p=t(&quot;typedarray-pool&quot;),d=t(&quot;./lib/shaders&quot;),g=t(&quot;./lib/closest-point&quot;),m=d.meshShader,v=d.wireShader,y=d.pointShader,x=d.pickShader,b=d.pointPickShader,_=d.contourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function T(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,T,k,M,A,S){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleColors=u,this.triangleNormals=h,this.triangleUVs=f,this.triangleIds=c,this.triangleVAO=p,this.triangleCount=0,this.lineWidth=1,this.edgePositions=d,this.edgeColors=m,this.edgeUVs=v,this.edgeIds=g,this.edgeVAO=y,this.edgeCount=0,this.pointPositions=x,this.pointColors=_,this.pointUVs=T,this.pointSizes=k,this.pointIds=b,this.pointVAO=M,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=A,this.contourVAO=S,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=w,this._view=w,this._projection=w,this._resolution=[1,1]}var k=T.prototype;function M(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;r&lt;e.length;++r){if(e.length&lt;2)return 1;if(e[r][0]===t)return e[r][1];if(e[r][0]&gt;t&amp;&amp;r&gt;0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}function A(t){var e=n(t,m.vertex,m.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.normal.location=4,e}function S(t){var e=n(t,v.vertex,v.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e}function E(t){var e=n(t,y.vertex,y.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.pointSize.location=4,e}function C(t){var e=n(t,x.vertex,x.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e}function L(t){var e=n(t,b.vertex,b.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e.attributes.pointSize.location=4,e}function I(t){var e=n(t,_.vertex,_.fragment);return e.attributes.position.location=0,e}k.isOpaque=function(){return!this.hasAlpha},k.isTransparent=function(){return this.hasAlpha},k.pickSlots=1,k.setPickBase=function(t){this.pickId=t},k.highlight=function(t){if(t&amp;&amp;this.contourEnable){for(var e=h(this.cells,this.intensity,t.intensity),r=e.cells,n=e.vertexIds,i=e.vertexWeights,a=r.length,o=p.mallocFloat32(6*a),s=0,l=0;l&lt;a;++l)for(var c=r[l],u=0;u&lt;2;++u){var f=c[0];2===c.length&amp;&amp;(f=c[u]);for(var d=n[f][0],g=n[f][1],m=i[f],v=1-m,y=this.positions[d],x=this.positions[g],b=0;b&lt;3;++b)o[s++]=m*y[b]+v*x[b]}this.contourCount=s/3|0,this.contourPositions.update(o.subarray(0,s)),p.free(o)}else this.contourCount=0},k.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,&quot;contourEnable&quot;in t&amp;&amp;(this.contourEnable=t.contourEnable),&quot;contourColor&quot;in t&amp;&amp;(this.contourColor=t.contourColor),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;lightPosition&quot;in t&amp;&amp;(this.lightPosition=t.lightPosition),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0)),&quot;opacityscale&quot;in t&amp;&amp;(this.opacityscale=t.opacityscale,this.hasAlpha=!0),&quot;ambient&quot;in t&amp;&amp;(this.ambientLight=t.ambient),&quot;diffuse&quot;in t&amp;&amp;(this.diffuseLight=t.diffuse),&quot;specular&quot;in t&amp;&amp;(this.specularLight=t.specular),&quot;roughness&quot;in t&amp;&amp;(this.roughness=t.roughness),&quot;fresnel&quot;in t&amp;&amp;(this.fresnel=t.fresnel),t.texture?(this.texture.dispose(),this.texture=o(e,t.texture)):t.colormap&amp;&amp;(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t,e){for(var r=f({colormap:t,nshades:256,format:&quot;rgba&quot;}),n=new Uint8Array(1024),i=0;i&lt;256;++i){for(var a=r[i],o=0;o&lt;3;++o)n[4*i+o]=a[o];n[4*i+3]=e?255*M(i/255,e):255*a[3]}return u(n,[256,256,4],[4,0,1])}(t.colormap,this.opacityscale)),this.texture.generateMipmap());var r=t.cells,n=t.positions;if(n&amp;&amp;r){var i=[],a=[],l=[],c=[],h=[],p=[],d=[],g=[],m=[],v=[],y=[],x=[],b=[],_=[];this.cells=r,this.positions=n;var w=t.vertexNormals,T=t.cellNormals,k=void 0===t.vertexNormalsEpsilon?1e-6:t.vertexNormalsEpsilon,A=void 0===t.faceNormalsEpsilon?1e-6:t.faceNormalsEpsilon;t.useFacetNormals&amp;&amp;!T&amp;&amp;(T=s.faceNormals(r,n,A)),T||w||(w=s.vertexNormals(r,n,k));var S=t.vertexColors,E=t.cellColors,C=t.meshColor||[1,1,1,1],L=t.vertexUVs,I=t.vertexIntensity,P=t.cellUVs,z=t.cellIntensity,O=1/0,D=-1/0;if(!L&amp;&amp;!P)if(I)if(t.vertexIntensityBounds)O=+t.vertexIntensityBounds[0],D=+t.vertexIntensityBounds[1];else for(var R=0;R&lt;I.length;++R){var F=I[R];O=Math.min(O,F),D=Math.max(D,F)}else if(z)if(t.cellIntensityBounds)O=+t.cellIntensityBounds[0],D=+t.cellIntensityBounds[1];else for(R=0;R&lt;z.length;++R){F=z[R];O=Math.min(O,F),D=Math.max(D,F)}else for(R=0;R&lt;n.length;++R){F=n[R][2];O=Math.min(O,F),D=Math.max(D,F)}this.intensity=I||(z||function(t){for(var e=t.length,r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n][2];return r}(n)),this.pickVertex=!(z||E);var B=t.pointSizes,N=t.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(R=0;R&lt;n.length;++R)for(var j=n[R],U=0;U&lt;3;++U)!isNaN(j[U])&amp;&amp;isFinite(j[U])&amp;&amp;(this.bounds[0][U]=Math.min(this.bounds[0][U],j[U]),this.bounds[1][U]=Math.max(this.bounds[1][U],j[U]));var V=0,q=0,H=0;t:for(R=0;R&lt;r.length;++R){var G=r[R];switch(G.length){case 1:for(j=n[W=G[0]],U=0;U&lt;3;++U)if(isNaN(j[U])||!isFinite(j[U]))continue t;v.push(j[0],j[1],j[2]),X=S?S[W]:E?E[R]:C,this.opacityscale&amp;&amp;I?a.push(X[0],X[1],X[2],this.opacity*M((I[W]-O)/(D-O),this.opacityscale)):3===X.length?y.push(X[0],X[1],X[2],this.opacity):(y.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),Z=L?L[W]:I?[(I[W]-O)/(D-O),0]:P?P[R]:z?[(z[R]-O)/(D-O),0]:[(j[2]-O)/(D-O),0],x.push(Z[0],Z[1]),B?b.push(B[W]):b.push(N),_.push(R),H+=1;break;case 2:for(U=0;U&lt;2;++U){j=n[W=G[U]];for(var Y=0;Y&lt;3;++Y)if(isNaN(j[Y])||!isFinite(j[Y]))continue t}for(U=0;U&lt;2;++U){j=n[W=G[U]];p.push(j[0],j[1],j[2]),X=S?S[W]:E?E[R]:C,this.opacityscale&amp;&amp;I?a.push(X[0],X[1],X[2],this.opacity*M((I[W]-O)/(D-O),this.opacityscale)):3===X.length?d.push(X[0],X[1],X[2],this.opacity):(d.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),Z=L?L[W]:I?[(I[W]-O)/(D-O),0]:P?P[R]:z?[(z[R]-O)/(D-O),0]:[(j[2]-O)/(D-O),0],g.push(Z[0],Z[1]),m.push(R)}q+=1;break;case 3:for(U=0;U&lt;3;++U)for(j=n[W=G[U]],Y=0;Y&lt;3;++Y)if(isNaN(j[Y])||!isFinite(j[Y]))continue t;for(U=0;U&lt;3;++U){var W,X,Z,J;j=n[W=G[2-U]];i.push(j[0],j[1],j[2]),(X=S?S[W]:E?E[R]:C)?this.opacityscale&amp;&amp;I?a.push(X[0],X[1],X[2],this.opacity*M((I[W]-O)/(D-O),this.opacityscale)):3===X.length?a.push(X[0],X[1],X[2],this.opacity):(a.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)):a.push(.5,.5,.5,1),Z=L?L[W]:I?[(I[W]-O)/(D-O),0]:P?P[R]:z?[(z[R]-O)/(D-O),0]:[(j[2]-O)/(D-O),0],c.push(Z[0],Z[1]),J=w?w[W]:T[R],l.push(J[0],J[1],J[2]),h.push(R)}V+=1}}this.pointCount=H,this.edgeCount=q,this.triangleCount=V,this.pointPositions.update(v),this.pointColors.update(y),this.pointUVs.update(x),this.pointSizes.update(b),this.pointIds.update(new Uint32Array(_)),this.edgePositions.update(p),this.edgeColors.update(d),this.edgeUVs.update(g),this.edgeIds.update(new Uint32Array(m)),this.trianglePositions.update(i),this.triangleColors.update(a),this.triangleUVs.update(c),this.triangleNormals.update(l),this.triangleIds.update(new Uint32Array(h))}},k.drawTransparent=k.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var s={model:r,view:n,projection:i,inverseModel:w.slice(),clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],contourColor:this.contourColor,texture:0};s.inverseModel=c(s.inverseModel,s.model),e.disable(e.CULL_FACE),this.texture.bind(0);var u=new Array(16);l(u,s.view,s.model),l(u,s.projection,u),c(u,u);for(o=0;o&lt;3;++o)s.eyePosition[o]=u[12+o]/u[15];var f,h=u[15];for(o=0;o&lt;3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o&lt;3;++o){for(var p=u[12+o],d=0;d&lt;3;++d)p+=u[4*d+o]*this.lightPosition[d];s.lightPosition[o]=p/h}this.triangleCount&gt;0&amp;&amp;((f=this.triShader).bind(),f.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind());this.edgeCount&gt;0&amp;&amp;this.lineWidth&gt;0&amp;&amp;((f=this.lineShader).bind(),f.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind());this.pointCount&gt;0&amp;&amp;((f=this.pointShader).bind(),f.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind());this.contourEnable&amp;&amp;this.contourCount&gt;0&amp;&amp;this.contourLineWidth&gt;0&amp;&amp;((f=this.contourShader).bind(),f.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind())},k.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s,l={model:r,view:n,projection:i,clipBounds:a,pickId:this.pickId/255};((s=this.pickShader).bind(),s.uniforms=l,this.triangleCount&gt;0&amp;&amp;(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount&gt;0&amp;&amp;(this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount&gt;0)&amp;&amp;((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind())},k.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;for(var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions,i=new Array(r.length),a=0;a&lt;r.length;++a)i[a]=n[r[a]];var o=t.coord[0],s=t.coord[1];if(!this.pickVertex){var l=this.positions[r[0]],c=this.positions[r[1]],u=this.positions[r[2]],f=[(l[0]+c[0]+u[0])/3,(l[1]+c[1]+u[1])/3,(l[2]+c[2]+u[2])/3];return{_cellCenter:!0,position:[o,s],index:e,cell:r,cellId:e,intensity:this.intensity[e],dataCoordinate:f}}var h=g(i,[o*this.pixelRatio,this._resolution[1]-s*this.pixelRatio],this._model,this._view,this._projection,this._resolution);if(!h)return null;var p=h[2],d=0;for(a=0;a&lt;r.length;++a)d+=p[a]*this.intensity[r[a]];return{position:h[1],index:r[h[0]],cell:r,cellId:e,intensity:d,dataCoordinate:this.positions[r[h[0]]]}},k.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.lineShader.dispose(),this.pointShader.dispose(),this.pickShader.dispose(),this.pointPickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose(),this.contourShader.dispose()},e.exports=function(t,e){1===arguments.length&amp;&amp;(t=(e=t).gl);var r=t.getExtension(&quot;OES_standard_derivatives&quot;)||t.getExtension(&quot;MOZ_OES_standard_derivatives&quot;)||t.getExtension(&quot;WEBKIT_OES_standard_derivatives&quot;);if(!r)throw new Error(&quot;derivatives not supported&quot;);var n=A(t),s=S(t),l=E(t),c=C(t),f=L(t),h=I(t),p=o(t,u(new Uint8Array([255,255,255,255]),[1,1,4]));p.generateMipmap(),p.minFilter=t.LINEAR_MIPMAP_LINEAR,p.magFilter=t.LINEAR;var d=i(t),g=i(t),m=i(t),v=i(t),y=i(t),x=a(t,[{buffer:d,type:t.FLOAT,size:3},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:g,type:t.FLOAT,size:4},{buffer:m,type:t.FLOAT,size:2},{buffer:v,type:t.FLOAT,size:3}]),b=i(t),_=i(t),w=i(t),k=i(t),M=a(t,[{buffer:b,type:t.FLOAT,size:3},{buffer:k,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:_,type:t.FLOAT,size:4},{buffer:w,type:t.FLOAT,size:2}]),P=i(t),z=i(t),O=i(t),D=i(t),R=i(t),F=a(t,[{buffer:P,type:t.FLOAT,size:3},{buffer:R,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:z,type:t.FLOAT,size:4},{buffer:O,type:t.FLOAT,size:2},{buffer:D,type:t.FLOAT,size:1}]),B=i(t),N=a(t,[{buffer:B,type:t.FLOAT,size:3}]),j=new T(t,p,n,s,l,c,f,h,d,y,g,m,v,x,b,k,_,w,M,P,R,z,O,D,F,B,N);return j.update(e),j}},{&quot;./lib/closest-point&quot;:307,&quot;./lib/shaders&quot;:308,colormap:131,&quot;gl-buffer&quot;:259,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/multiply&quot;:295,&quot;gl-shader&quot;:335,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495,normals:498,&quot;simplicial-complex-contour&quot;:556,&quot;typedarray-pool&quot;:595}],310:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],311:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[0,0,0,1,1,0,1,1]),s=i(e,a.boxVert,a.lineFrag);return new o(t,r,s)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;./shaders&quot;);function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawBox=(s=[0,0],l=[0,0],function(t,e,r,n,i){var a=this.plot,o=this.shader,c=a.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,o.uniforms.lo=s,o.uniforms.hi=l,o.uniforms.color=i,c.drawArrays(c.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:314,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],312:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),a=i(e,o.gridVert,o.gridFrag),l=i(e,o.tickVert,o.gridFrag);return new s(t,r,a,l)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;binary-search-bounds&quot;),o=t(&quot;./shaders&quot;);function s(t,e,r,n){this.plot=t,this.vbo=e,this.shader=r,this.tickShader=n,this.ticks=[[],[]]}function l(t,e){return t-e}var c,u,f,h,p,d=s.prototype;d.draw=(c=[0,0],u=[0,0],f=[0,0],function(){for(var t=this.plot,e=this.vbo,r=this.shader,n=this.ticks,i=t.gl,a=t._tickBounds,o=t.dataBox,s=t.viewBox,l=t.gridLineWidth,h=t.gridLineColor,p=t.gridLineEnable,d=t.pixelRatio,g=0;g&lt;2;++g){var m=a[g],v=a[g+2]-m,y=.5*(o[g+2]+o[g]),x=o[g+2]-o[g];u[g]=2*v/x,c[g]=2*(m-y)/x}r.bind(),e.bind(),r.attributes.dataCoord.pointer(),r.uniforms.dataShift=c,r.uniforms.dataScale=u;var b=0;for(g=0;g&lt;2;++g){f[0]=f[1]=0,f[g]=1,r.uniforms.dataAxis=f,r.uniforms.lineWidth=l[g]/(s[g+2]-s[g])*d,r.uniforms.color=h[g];var _=6*n[g].length;p[g]&amp;&amp;_&amp;&amp;i.drawArrays(i.TRIANGLES,b,_),b+=_}}),d.drawTickMarks=function(){var t=[0,0],e=[0,0],r=[1,0],n=[0,1],i=[0,0],o=[0,0];return function(){for(var s=this.plot,c=this.vbo,u=this.tickShader,f=this.ticks,h=s.gl,p=s._tickBounds,d=s.dataBox,g=s.viewBox,m=s.pixelRatio,v=s.screenBox,y=v[2]-v[0],x=v[3]-v[1],b=g[2]-g[0],_=g[3]-g[1],w=0;w&lt;2;++w){var T=p[w],k=p[w+2]-T,M=.5*(d[w+2]+d[w]),A=d[w+2]-d[w];e[w]=2*k/A,t[w]=2*(T-M)/A}e[0]*=b/y,t[0]*=b/y,e[1]*=_/x,t[1]*=_/x,u.bind(),c.bind(),u.attributes.dataCoord.pointer();var S=u.uniforms;S.dataShift=t,S.dataScale=e;var E=s.tickMarkLength,C=s.tickMarkWidth,L=s.tickMarkColor,I=6*f[0].length,P=Math.min(a.ge(f[0],(d[0]-p[0])/(p[2]-p[0]),l),f[0].length),z=Math.min(a.gt(f[0],(d[2]-p[0])/(p[2]-p[0]),l),f[0].length),O=0+6*P,D=6*Math.max(0,z-P),R=Math.min(a.ge(f[1],(d[1]-p[1])/(p[3]-p[1]),l),f[1].length),F=Math.min(a.gt(f[1],(d[3]-p[1])/(p[3]-p[1]),l),f[1].length),B=I+6*R,N=6*Math.max(0,F-R);i[0]=2*(g[0]-E[1])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[1]*m/y,o[1]=C[1]*m/x,N&amp;&amp;(S.color=L[1],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,B,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[1]-E[0])/x-1,o[0]=C[0]*m/y,o[1]=E[0]*m/x,D&amp;&amp;(S.color=L[0],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,O,D)),i[0]=2*(g[2]+E[3])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[3]*m/y,o[1]=C[3]*m/x,N&amp;&amp;(S.color=L[3],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,B,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[3]+E[2])/x-1,o[0]=C[2]*m/y,o[1]=E[2]*m/x,D&amp;&amp;(S.color=L[2],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,O,D))}}(),d.update=(h=[1,1,-1,-1,1,-1],p=[1,-1,1,1,-1,-1],function(t){for(var e=t.ticks,r=t.bounds,n=new Float32Array(18*(e[0].length+e[1].length)),i=(this.plot.zeroLineEnable,0),a=[[],[]],o=0;o&lt;2;++o)for(var s=a[o],l=e[o],c=r[o],u=r[o+2],f=0;f&lt;l.length;++f){var d=(l[f].x-c)/(u-c);s.push(d);for(var g=0;g&lt;6;++g)n[i++]=d,n[i++]=h[g],n[i++]=p[g]}this.ticks=a,this.vbo.update(n)}),d.dispose=function(){this.vbo.dispose(),this.shader.dispose(),this.tickShader.dispose()}},{&quot;./shaders&quot;:314,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],313:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[-1,-1,-1,1,1,-1,1,1]),s=i(e,a.lineVert,a.lineFrag);return new o(t,r,s)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;./shaders&quot;);function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawLine=(s=[0,0],l=[0,0],function(t,e,r,n,i,a){var o=this.plot,c=this.shader,u=o.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,c.uniforms.start=s,c.uniforms.end=l,c.uniforms.width=i*o.pixelRatio,c.uniforms.color=a,u.drawArrays(u.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:314,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],314:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=n([&quot;precision lowp float;\n#define GLSLIFY 1\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = vec4(color.xyz * color.w, color.w);\n}\n&quot;]);e.exports={lineVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 start, end;\nuniform float width;\n\nvec2 perp(vec2 v) {\n  return vec2(v.y, -v.x);\n}\n\nvec2 screen(vec2 v) {\n  return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n  vec2 delta = normalize(perp(start - end));\n  vec2 offset = mix(start, end, 0.5 * (coord.y+1.0));\n  gl_Position = vec4(screen(offset + 0.5 * width * delta * coord.x), 0, 1);\n}\n&quot;]),lineFrag:i,textVert:n([&quot;#define GLSLIFY 1\nattribute vec3 textCoordinate;\n\nuniform vec2 dataScale, dataShift, dataAxis, screenOffset, textScale;\nuniform float angle;\n\nvoid main() {\n  float dataOffset  = textCoordinate.z;\n  vec2 glyphOffset  = textCoordinate.xy;\n  mat2 glyphMatrix = mat2(cos(angle), sin(angle), -sin(angle), cos(angle));\n  vec2 screenCoordinate = dataAxis * (dataScale * dataOffset + dataShift) +\n    glyphMatrix * glyphOffset * textScale + screenOffset;\n  gl_Position = vec4(screenCoordinate, 0, 1);\n}\n&quot;]),textFrag:i,gridVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale;\nuniform float lineWidth;\n\nvoid main() {\n  vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n  pos += 10.0 * dataCoord.y * vec2(dataAxis.y, -dataAxis.x) + dataCoord.z * lineWidth;\n  gl_Position = vec4(pos, 0, 1);\n}\n&quot;]),gridFrag:i,boxVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 lo, hi;\n\nvec2 screen(vec2 v) {\n  return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n  gl_Position = vec4(screen(mix(lo, hi, coord)), 0, 1);\n}\n&quot;]),tickVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale, screenOffset, tickScale;\n\nvoid main() {\n  vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n  gl_Position = vec4(pos + tickScale*dataCoord.yz + screenOffset, 0, 1);\n}\n&quot;])}},{glslify:316}],315:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),a=i(e,s.textVert,s.textFrag);return new l(t,r,a)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;text-cache&quot;),o=t(&quot;binary-search-bounds&quot;),s=t(&quot;./shaders&quot;);function l(t,e,r){this.plot=t,this.vbo=e,this.shader=r,this.tickOffset=[[],[]],this.tickX=[[],[]],this.labelOffset=[0,0],this.labelCount=[0,0]}var c,u,f,h,p,d,g=l.prototype;g.drawTicks=(c=[0,0],u=[0,0],f=[0,0],function(t){var e=this.plot,r=this.shader,n=this.tickX[t],i=this.tickOffset[t],a=e.gl,s=e.viewBox,l=e.dataBox,h=e.screenBox,p=e.pixelRatio,d=e.tickEnable,g=e.tickPad,m=e.tickColor,v=e.tickAngle,y=e.labelEnable,x=e.labelPad,b=e.labelColor,_=e.labelAngle,w=this.labelOffset[t],T=this.labelCount[t],k=o.lt(n,l[t]),M=o.le(n,l[t+2]);c[0]=c[1]=0,c[t]=1,u[t]=(s[2+t]+s[t])/(h[2+t]-h[t])-1;var A=2/h[2+(1^t)]-h[1^t];u[1^t]=A*s[1^t]-1,d[t]&amp;&amp;(u[1^t]-=A*p*g[t],k&lt;M&amp;&amp;i[M]&gt;i[k]&amp;&amp;(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=m[t],r.uniforms.angle=v[t],a.drawArrays(a.TRIANGLES,i[k],i[M]-i[k]))),y[t]&amp;&amp;T&amp;&amp;(u[1^t]-=A*p*x[t],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t],r.uniforms.angle=_[t],a.drawArrays(a.TRIANGLES,w,T)),u[1^t]=A*s[2+(1^t)]-1,d[t+2]&amp;&amp;(u[1^t]+=A*p*g[t+2],k&lt;M&amp;&amp;i[M]&gt;i[k]&amp;&amp;(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=m[t+2],r.uniforms.angle=v[t+2],a.drawArrays(a.TRIANGLES,i[k],i[M]-i[k]))),y[t+2]&amp;&amp;T&amp;&amp;(u[1^t]+=A*p*x[t+2],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t+2],r.uniforms.angle=_[t+2],a.drawArrays(a.TRIANGLES,w,T))}),g.drawTitle=function(){var t=[0,0],e=[0,0];return function(){var r=this.plot,n=this.shader,i=r.gl,a=r.screenBox,o=r.titleCenter,s=r.titleAngle,l=r.titleColor,c=r.pixelRatio;if(this.titleCount){for(var u=0;u&lt;2;++u)e[u]=2*(o[u]*c-a[u])/(a[2+u]-a[u])-1;n.bind(),n.uniforms.dataAxis=t,n.uniforms.screenOffset=e,n.uniforms.angle=s,n.uniforms.color=l,i.drawArrays(i.TRIANGLES,this.titleOffset,this.titleCount)}}}(),g.bind=(h=[0,0],p=[0,0],d=[0,0],function(){var t=this.plot,e=this.shader,r=t._tickBounds,n=t.dataBox,i=t.screenBox,a=t.viewBox;e.bind();for(var o=0;o&lt;2;++o){var s=r[o],l=r[o+2]-s,c=.5*(n[o+2]+n[o]),u=n[o+2]-n[o],f=a[o],g=a[o+2]-f,m=i[o],v=i[o+2]-m;p[o]=2*l/u*g/v,h[o]=2*(s-c)/u*g/v}d[1]=2*t.pixelRatio/(i[3]-i[1]),d[0]=d[1]*(i[3]-i[1])/(i[2]-i[0]),e.uniforms.dataScale=p,e.uniforms.dataShift=h,e.uniforms.textScale=d,this.vbo.bind(),e.attributes.textCoordinate.pointer()}),g.update=function(t){var e,r,n,i,o,s=[],l=t.ticks,c=t.bounds;for(o=0;o&lt;2;++o){var u=[Math.floor(s.length/3)],f=[-1/0],h=l[o];for(e=0;e&lt;h.length;++e){var p=h[e],d=p.x,g=p.text,m=p.font||&quot;sans-serif&quot;;i=p.fontSize||12;for(var v=1/(c[o+2]-c[o]),y=c[o],x=g.split(&quot;\n&quot;),b=0;b&lt;x.length;b++)for(n=a(m,x[b]).data,r=0;r&lt;n.length;r+=2)s.push(n[r]*i,-n[r+1]*i-b*i*1.2,(d-y)*v);u.push(Math.floor(s.length/3)),f.push(d)}this.tickOffset[o]=u,this.tickX[o]=f}for(o=0;o&lt;2;++o){for(this.labelOffset[o]=Math.floor(s.length/3),n=a(t.labelFont[o],t.labels[o],{textAlign:&quot;center&quot;}).data,i=t.labelSize[o],e=0;e&lt;n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.labelCount[o]=Math.floor(s.length/3)-this.labelOffset[o]}for(this.titleOffset=Math.floor(s.length/3),n=a(t.titleFont,t.title).data,i=t.titleSize,e=0;e&lt;n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.titleCount=Math.floor(s.length/3)-this.titleOffset,this.vbo.update(s)},g.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:314,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335,&quot;text-cache&quot;:575}],316:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],317:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[e.drawingBufferWidth,e.drawingBufferHeight]),c=new l(e,r);return c.grid=i(c),c.text=a(c),c.line=o(c),c.box=s(c),c.update(t),c};var n=t(&quot;gl-select-static&quot;),i=t(&quot;./lib/grid&quot;),a=t(&quot;./lib/text&quot;),o=t(&quot;./lib/line&quot;),s=t(&quot;./lib/box&quot;);function l(t,e){this.gl=t,this.pickBuffer=e,this.screenBox=[0,0,t.drawingBufferWidth,t.drawingBufferHeight],this.viewBox=[0,0,0,0],this.dataBox=[-10,-10,10,10],this.gridLineEnable=[!0,!0],this.gridLineWidth=[1,1],this.gridLineColor=[[0,0,0,1],[0,0,0,1]],this.pixelRatio=1,this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickEnable=[!0,!0,!0,!0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[15,15,15,15],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelEnable=[!0,!0,!0,!0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.titleCenter=[0,0],this.titleEnable=!0,this.titleAngle=0,this.titleColor=[0,0,0,1],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[4,4],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderLineEnable=[!0,!0,!0,!0],this.borderLineWidth=[2,2,2,2],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.grid=null,this.text=null,this.line=null,this.box=null,this.objects=[],this.overlays=[],this._tickBounds=[1/0,1/0,-1/0,-1/0],this.static=!1,this.dirty=!1,this.pickDirty=!1,this.pickDelay=120,this.pickRadius=10,this._pickTimeout=null,this._drawPick=this.drawPick.bind(this),this._depthCounter=0}var c=l.prototype;function u(t){for(var e=t.slice(),r=0;r&lt;e.length;++r)e[r]=e[r].slice();return e}function f(t,e){return t.x-e.x}c.setDirty=function(){this.dirty=this.pickDirty=!0},c.setOverlayDirty=function(){this.dirty=!0},c.nextDepthValue=function(){return this._depthCounter++/65536},c.draw=function(){var t=this.gl,e=this.screenBox,r=this.viewBox,n=this.dataBox,i=this.pixelRatio,a=this.grid,o=this.line,s=this.text,l=this.objects;if(this._depthCounter=0,this.pickDirty&amp;&amp;(this._pickTimeout&amp;&amp;clearTimeout(this._pickTimeout),this.pickDirty=!1,this._pickTimeout=setTimeout(this._drawPick,this.pickDelay)),this.dirty){if(this.dirty=!1,t.bindFramebuffer(t.FRAMEBUFFER,null),t.enable(t.SCISSOR_TEST),t.disable(t.DEPTH_TEST),t.depthFunc(t.LESS),t.depthMask(!1),t.enable(t.BLEND),t.blendEquation(t.FUNC_ADD,t.FUNC_ADD),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),this.borderColor){t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]);var c=this.borderColor;t.clearColor(c[0]*c[3],c[1]*c[3],c[2]*c[3],c[3]),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}t.scissor(r[0],r[1],r[2]-r[0],r[3]-r[1]),t.viewport(r[0],r[1],r[2]-r[0],r[3]-r[1]);var u=this.backgroundColor;t.clearColor(u[0]*u[3],u[1]*u[3],u[2]*u[3],u[3]),t.clear(t.COLOR_BUFFER_BIT),a.draw();var f=this.zeroLineEnable,h=this.zeroLineColor,p=this.zeroLineWidth;if(f[0]||f[1]){o.bind();for(var d=0;d&lt;2;++d)if(f[d]&amp;&amp;n[d]&lt;=0&amp;&amp;n[d+2]&gt;=0){var g=e[d]-n[d]*(e[d+2]-e[d])/(n[d+2]-n[d]);0===d?o.drawLine(g,e[1],g,e[3],p[d],h[d]):o.drawLine(e[0],g,e[2],g,p[d],h[d])}}for(d=0;d&lt;l.length;++d)l[d].draw();t.viewport(e[0],e[1],e[2]-e[0],e[3]-e[1]),t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]),this.grid.drawTickMarks(),o.bind();var m=this.borderLineEnable,v=this.borderLineWidth,y=this.borderLineColor;for(m[1]&amp;&amp;o.drawLine(r[0],r[1]-.5*v[1]*i,r[0],r[3]+.5*v[3]*i,v[1],y[1]),m[0]&amp;&amp;o.drawLine(r[0]-.5*v[0]*i,r[1],r[2]+.5*v[2]*i,r[1],v[0],y[0]),m[3]&amp;&amp;o.drawLine(r[2],r[1]-.5*v[1]*i,r[2],r[3]+.5*v[3]*i,v[3],y[3]),m[2]&amp;&amp;o.drawLine(r[0]-.5*v[0]*i,r[3],r[2]+.5*v[2]*i,r[3],v[2],y[2]),s.bind(),d=0;d&lt;2;++d)s.drawTicks(d);this.titleEnable&amp;&amp;s.drawTitle();var x=this.overlays;for(d=0;d&lt;x.length;++d)x[d].draw();t.disable(t.SCISSOR_TEST),t.disable(t.BLEND),t.depthMask(!0)}},c.drawPick=function(){if(!this.static){var t=this.pickBuffer;this.gl,this._pickTimeout=null,t.begin();for(var e=1,r=this.objects,n=0;n&lt;r.length;++n)e=r[n].drawPick(e);t.end()}},c.pick=function(t,e){if(!this.static){var r=this.pixelRatio,n=this.pickPixelRatio,i=this.viewBox,a=0|Math.round((t-i[0]/r)*n),o=0|Math.round((e-i[1]/r)*n),s=this.pickBuffer.query(a,o,this.pickRadius);if(!s)return null;for(var l=s.id+(s.value[0]&lt;&lt;8)+(s.value[1]&lt;&lt;16)+(s.value[2]&lt;&lt;24),c=this.objects,u=0;u&lt;c.length;++u){var f=c[u].pick(a,o,l);if(f)return f}return null}},c.setScreenBox=function(t){var e=this.screenBox,r=this.pixelRatio;e[0]=0|Math.round(t[0]*r),e[1]=0|Math.round(t[1]*r),e[2]=0|Math.round(t[2]*r),e[3]=0|Math.round(t[3]*r),this.setDirty()},c.setDataBox=function(t){var e=this.dataBox;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3])&amp;&amp;(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],this.setDirty())},c.setViewBox=function(t){var e=this.pixelRatio,r=this.viewBox;r[0]=0|Math.round(t[0]*e),r[1]=0|Math.round(t[1]*e),r[2]=0|Math.round(t[2]*e),r[3]=0|Math.round(t[3]*e);var n=this.pickPixelRatio;this.pickBuffer.shape=[0|Math.round((t[2]-t[0])*n),0|Math.round((t[3]-t[1])*n)],this.setDirty()},c.update=function(t){t=t||{};var e=this.gl;this.pixelRatio=t.pixelRatio||1;var r=this.pixelRatio;this.pickPixelRatio=Math.max(r,1),this.setScreenBox(t.screenBox||[0,0,e.drawingBufferWidth/r,e.drawingBufferHeight/r]);this.screenBox;this.setViewBox(t.viewBox||[.125*(this.screenBox[2]-this.screenBox[0])/r,.125*(this.screenBox[3]-this.screenBox[1])/r,.875*(this.screenBox[2]-this.screenBox[0])/r,.875*(this.screenBox[3]-this.screenBox[1])/r]);var n=this.viewBox,i=(n[2]-n[0])/(n[3]-n[1]);this.setDataBox(t.dataBox||[-10,-10/i,10,10/i]),this.borderColor=!1!==t.borderColor&amp;&amp;(t.borderColor||[0,0,0,0]).slice(),this.backgroundColor=(t.backgroundColor||[0,0,0,0]).slice(),this.gridLineEnable=(t.gridLineEnable||[!0,!0]).slice(),this.gridLineWidth=(t.gridLineWidth||[1,1]).slice(),this.gridLineColor=u(t.gridLineColor||[[.5,.5,.5,1],[.5,.5,.5,1]]),this.zeroLineEnable=(t.zeroLineEnable||[!0,!0]).slice(),this.zeroLineWidth=(t.zeroLineWidth||[4,4]).slice(),this.zeroLineColor=u(t.zeroLineColor||[[0,0,0,1],[0,0,0,1]]),this.tickMarkLength=(t.tickMarkLength||[0,0,0,0]).slice(),this.tickMarkWidth=(t.tickMarkWidth||[0,0,0,0]).slice(),this.tickMarkColor=u(t.tickMarkColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.titleCenter=(t.titleCenter||[.5*(n[0]+n[2])/r,(n[3]+120)/r]).slice(),this.titleEnable=!(&quot;titleEnable&quot;in t)||!!t.titleEnable,this.titleAngle=t.titleAngle||0,this.titleColor=(t.titleColor||[0,0,0,1]).slice(),this.labelPad=(t.labelPad||[15,15,15,15]).slice(),this.labelAngle=(t.labelAngle||[0,Math.PI/2,0,3*Math.PI/2]).slice(),this.labelEnable=(t.labelEnable||[!0,!0,!0,!0]).slice(),this.labelColor=u(t.labelColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.tickPad=(t.tickPad||[15,15,15,15]).slice(),this.tickAngle=(t.tickAngle||[0,0,0,0]).slice(),this.tickEnable=(t.tickEnable||[!0,!0,!0,!0]).slice(),this.tickColor=u(t.tickColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.borderLineEnable=(t.borderLineEnable||[!0,!0,!0,!0]).slice(),this.borderLineWidth=(t.borderLineWidth||[2,2,2,2]).slice(),this.borderLineColor=u(t.borderLineColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]);var a=t.ticks||[[],[]],o=this._tickBounds;o[0]=o[1]=1/0,o[2]=o[3]=-1/0;for(var s=0;s&lt;2;++s){var l=a[s].slice(0);0!==l.length&amp;&amp;(l.sort(f),o[s]=Math.min(o[s],l[0].x),o[s+2]=Math.max(o[s+2],l[l.length-1].x))}this.grid.update({bounds:o,ticks:a}),this.text.update({bounds:o,ticks:a,labels:t.labels||[&quot;x&quot;,&quot;y&quot;],labelSize:t.labelSize||[12,12],labelFont:t.labelFont||[&quot;sans-serif&quot;,&quot;sans-serif&quot;],title:t.title||&quot;&quot;,titleSize:t.titleSize||18,titleFont:t.titleFont||&quot;sans-serif&quot;}),this.static=!!t.static,this.setDirty()},c.dispose=function(){this.box.dispose(),this.grid.dispose(),this.text.dispose(),this.line.dispose();for(var t=this.objects.length-1;t&gt;=0;--t)this.objects[t].dispose();this.objects.length=0;for(t=this.overlays.length-1;t&gt;=0;--t)this.overlays[t].dispose();this.overlays.length=0,this.gl=null},c.addObject=function(t){this.objects.indexOf(t)&lt;0&amp;&amp;(this.objects.push(t),this.setDirty())},c.removeObject=function(t){for(var e=this.objects,r=0;r&lt;e.length;++r)if(e[r]===t){e.splice(r,1),this.setDirty();break}},c.addOverlay=function(t){this.overlays.indexOf(t)&lt;0&amp;&amp;(this.overlays.push(t),this.setOverlayDirty())},c.removeOverlay=function(t){for(var e=this.overlays,r=0;r&lt;e.length;++r)if(e[r]===t){e.splice(r,1),this.setOverlayDirty();break}}},{&quot;./lib/box&quot;:311,&quot;./lib/grid&quot;:312,&quot;./lib/line&quot;:313,&quot;./lib/text&quot;:315,&quot;gl-select-static&quot;:334}],318:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){t=t||document.body,e=e||{};var r=[.01,1/0];&quot;distanceLimits&quot;in e&amp;&amp;(r[0]=e.distanceLimits[0],r[1]=e.distanceLimits[1]);&quot;zoomMin&quot;in e&amp;&amp;(r[0]=e.zoomMin);&quot;zoomMax&quot;in e&amp;&amp;(r[1]=e.zoomMax);var c=i({center:e.center||[0,0,0],up:e.up||[0,1,0],eye:e.eye||[0,0,10],mode:e.mode||&quot;orbit&quot;,distanceLimits:r}),u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],f=0,h=t.clientWidth,p=t.clientHeight,d={keyBindingMode:&quot;rotate&quot;,enableWheel:!0,view:c,element:t,delay:e.delay||16,rotateSpeed:e.rotateSpeed||1,zoomSpeed:e.zoomSpeed||1,translateSpeed:e.translateSpeed||1,flipX:!!e.flipX,flipY:!!e.flipY,modes:c.modes,_ortho:e._ortho||e.projection&amp;&amp;&quot;orthographic&quot;===e.projection.type||!1,tick:function(){var e=n(),r=this.delay,i=e-2*r;c.idle(e-r),c.recalcMatrix(i),c.flush(e-(100+2*r));for(var a=!0,o=c.computedMatrix,s=0;s&lt;16;++s)a=a&amp;&amp;u[s]===o[s],u[s]=o[s];var l=t.clientWidth===h&amp;&amp;t.clientHeight===p;return h=t.clientWidth,p=t.clientHeight,a?!l:(f=Math.exp(c.computedRadius[0]),!0)},lookAt:function(t,e,r){c.lookAt(c.lastT(),t,e,r)},rotate:function(t,e,r){c.rotate(c.lastT(),t,e,r)},pan:function(t,e,r){c.pan(c.lastT(),t,e,r)},translate:function(t,e,r){c.translate(c.lastT(),t,e,r)}};return Object.defineProperties(d,{matrix:{get:function(){return c.computedMatrix},set:function(t){return c.setMatrix(c.lastT(),t),c.computedMatrix},enumerable:!0},mode:{get:function(){return c.getMode()},set:function(t){var e=c.computedUp.slice(),r=c.computedEye.slice(),i=c.computedCenter.slice();if(c.setMode(t),&quot;turntable&quot;===t){var a=n();c._active.lookAt(a,r,i,e),c._active.lookAt(a+500,r,i,[0,0,1]),c._active.flush(a)}return c.getMode()},enumerable:!0},center:{get:function(){return c.computedCenter},set:function(t){return c.lookAt(c.lastT(),null,t),c.computedCenter},enumerable:!0},eye:{get:function(){return c.computedEye},set:function(t){return c.lookAt(c.lastT(),t),c.computedEye},enumerable:!0},up:{get:function(){return c.computedUp},set:function(t){return c.lookAt(c.lastT(),null,null,t),c.computedUp},enumerable:!0},distance:{get:function(){return f},set:function(t){return c.setDistance(c.lastT(),t),t},enumerable:!0},distanceLimits:{get:function(){return c.getDistanceLimits(r)},set:function(t){return c.setDistanceLimits(t),t},enumerable:!0}}),t.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault(),!1})),d._lastX=-1,d._lastY=-1,d._lastMods={shift:!1,control:!1,alt:!1,meta:!1},d.enableMouseListeners=function(){function e(e,r,i,a){var o=d.keyBindingMode;if(!1!==o){var s=&quot;rotate&quot;===o,l=&quot;pan&quot;===o,u=&quot;zoom&quot;===o,h=!!a.control,p=!!a.alt,g=!!a.shift,m=!!(1&amp;e),v=!!(2&amp;e),y=!!(4&amp;e),x=1/t.clientHeight,b=x*(r-d._lastX),_=x*(i-d._lastY),w=d.flipX?1:-1,T=d.flipY?1:-1,k=Math.PI*d.rotateSpeed,M=n();if(-1!==d._lastX&amp;&amp;-1!==d._lastY&amp;&amp;((s&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||m&amp;&amp;!h&amp;&amp;!p&amp;&amp;g)&amp;&amp;c.rotate(M,w*k*b,-T*k*_,0),(l&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||v||m&amp;&amp;h&amp;&amp;!p&amp;&amp;!g)&amp;&amp;c.pan(M,-d.translateSpeed*b*f,d.translateSpeed*_*f,0),u&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||y||m&amp;&amp;!h&amp;&amp;p&amp;&amp;!g)){var A=-d.zoomSpeed*_/window.innerHeight*(M-c.lastT())*100;c.pan(M,0,0,f*(Math.exp(A)-1))}return d._lastX=r,d._lastY=i,d._lastMods=a,!0}}d.mouseListener=a(t,e),t.addEventListener(&quot;touchstart&quot;,(function(r){var n=s(r.changedTouches[0],t);e(0,n[0],n[1],d._lastMods),e(1,n[0],n[1],d._lastMods)}),!!l&amp;&amp;{passive:!0}),t.addEventListener(&quot;touchmove&quot;,(function(r){var n=s(r.changedTouches[0],t);e(1,n[0],n[1],d._lastMods),r.preventDefault()}),!!l&amp;&amp;{passive:!1}),t.addEventListener(&quot;touchend&quot;,(function(t){e(0,d._lastX,d._lastY,d._lastMods)}),!!l&amp;&amp;{passive:!0}),d.wheelListener=o(t,(function(t,e){if(!1!==d.keyBindingMode&amp;&amp;d.enableWheel){var r=d.flipX?1:-1,i=d.flipY?1:-1,a=n();if(Math.abs(t)&gt;Math.abs(e))c.rotate(a,0,0,-t*r*Math.PI*d.rotateSpeed/window.innerWidth);else if(!d._ortho){var o=-d.zoomSpeed*i*e/window.innerHeight*(a-c.lastT())/20;c.pan(a,0,0,f*(Math.exp(o)-1))}}}),!0)},d.enableMouseListeners(),d};var n=t(&quot;right-now&quot;),i=t(&quot;3d-view&quot;),a=t(&quot;mouse-change&quot;),o=t(&quot;mouse-wheel&quot;),s=t(&quot;mouse-event-offset&quot;),l=t(&quot;has-passive-events&quot;)},{&quot;3d-view&quot;:54,&quot;has-passive-events&quot;:441,&quot;mouse-change&quot;:483,&quot;mouse-event-offset&quot;:484,&quot;mouse-wheel&quot;:486,&quot;right-now&quot;:542}],319:[function(t,e,r){var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision mediump float;\n#define GLSLIFY 1\nattribute vec2 position;\nvarying vec2 uv;\nvoid main() {\n  uv = position;\n  gl_Position = vec4(position, 0, 1);\n}&quot;]),o=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform sampler2D accumBuffer;\nvarying vec2 uv;\n\nvoid main() {\n  vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\n  gl_FragColor = min(vec4(1,1,1,1), accum);\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec2&quot;}])}},{&quot;gl-shader&quot;:335,glslify:320}],320:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],321:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./camera.js&quot;),i=t(&quot;gl-axes3d&quot;),a=t(&quot;gl-axes3d/properties&quot;),o=t(&quot;gl-spikes3d&quot;),s=t(&quot;gl-select-static&quot;),l=t(&quot;gl-fbo&quot;),c=t(&quot;a-big-triangle&quot;),u=t(&quot;mouse-change&quot;),f=t(&quot;gl-mat4/perspective&quot;),h=t(&quot;gl-mat4/ortho&quot;),p=t(&quot;./lib/shader&quot;),d=t(&quot;is-mobile&quot;)({tablet:!0,featureDetect:!0});function g(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function m(t){var e=Math.round(Math.log(Math.abs(t))/Math.log(10));if(e&lt;0){var r=Math.round(Math.pow(10,-e));return Math.ceil(t*r)/r}if(e&gt;0){r=Math.round(Math.pow(10,e));return Math.ceil(t/r)*r}return Math.ceil(t)}function v(t){return&quot;boolean&quot;!=typeof t||t}e.exports={createScene:function(t){(t=t||{}).camera=t.camera||{};var e=t.canvas;if(!e){if(e=document.createElement(&quot;canvas&quot;),t.container)t.container.appendChild(e);else document.body.appendChild(e)}var r=t.gl;r||(t.glOptions&amp;&amp;(d=!!t.glOptions.preserveDrawingBuffer),r=function(t,e){var r=null;try{(r=t.getContext(&quot;webgl&quot;,e))||(r=t.getContext(&quot;experimental-webgl&quot;,e))}catch(t){return null}return r}(e,t.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:d}));if(!r)throw new Error(&quot;webgl not supported&quot;);var y=t.bounds||[[-10,-10,-10],[10,10,10]],x=new g,b=l(r,r.drawingBufferWidth,r.drawingBufferHeight,{preferFloat:!d}),_=p(r),w=t.cameraObject&amp;&amp;!0===t.cameraObject._ortho||t.camera.projection&amp;&amp;&quot;orthographic&quot;===t.camera.projection.type||!1,T={eye:t.camera.eye||[2,0,0],center:t.camera.center||[0,0,0],up:t.camera.up||[0,1,0],zoomMin:t.camera.zoomMax||.1,zoomMax:t.camera.zoomMin||100,mode:t.camera.mode||&quot;turntable&quot;,_ortho:w},k=t.axes||{},M=i(r,k);M.enable=!k.disable;var A=t.spikes||{},S=o(r,A),E=[],C=[],L=[],I=[],P=!0,z=!0,O=new Array(16),D=new Array(16),R={view:null,projection:O,model:D,_ortho:!1},F=(z=!0,[r.drawingBufferWidth,r.drawingBufferHeight]),B=t.cameraObject||n(e,T),N={gl:r,contextLost:!1,pixelRatio:t.pixelRatio||1,canvas:e,selection:x,camera:B,axes:M,axesPixels:null,spikes:S,bounds:y,objects:E,shape:F,aspect:t.aspectRatio||[1,1,1],pickRadius:t.pickRadius||10,zNear:t.zNear||.01,zFar:t.zFar||1e3,fovy:t.fovy||Math.PI/4,clearColor:t.clearColor||[0,0,0,0],autoResize:v(t.autoResize),autoBounds:v(t.autoBounds),autoScale:!!t.autoScale,autoCenter:v(t.autoCenter),clipToBounds:v(t.clipToBounds),snapToData:!!t.snapToData,onselect:t.onselect||null,onrender:t.onrender||null,onclick:t.onclick||null,cameraParams:R,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(t){this.aspect[0]=t.x,this.aspect[1]=t.y,this.aspect[2]=t.z,z=!0},setBounds:function(t,e){this.bounds[0][t]=e.min,this.bounds[1][t]=e.max},setClearColor:function(t){this.clearColor=t},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},j=[r.drawingBufferWidth/N.pixelRatio|0,r.drawingBufferHeight/N.pixelRatio|0];function U(){if(!N._stopped&amp;&amp;N.autoResize){var t=e.parentNode,r=1,n=1;t&amp;&amp;t!==document.body?(r=t.clientWidth,n=t.clientHeight):(r=window.innerWidth,n=window.innerHeight);var i=0|Math.ceil(r*N.pixelRatio),a=0|Math.ceil(n*N.pixelRatio);if(i!==e.width||a!==e.height){e.width=i,e.height=a;var o=e.style;o.position=o.position||&quot;absolute&quot;,o.left=&quot;0px&quot;,o.top=&quot;0px&quot;,o.width=r+&quot;px&quot;,o.height=n+&quot;px&quot;,P=!0}}}N.autoResize&amp;&amp;U();function V(){for(var t=E.length,e=I.length,n=0;n&lt;e;++n)L[n]=0;t:for(n=0;n&lt;t;++n){var i=E[n],a=i.pickSlots;if(a){for(var o=0;o&lt;e;++o)if(L[o]+a&lt;255){C[n]=o,i.setPickBase(L[o]+1),L[o]+=a;continue t}var l=s(r,F);C[n]=e,I.push(l),L.push(a),i.setPickBase(1),e+=1}else C[n]=-1}for(;e&gt;0&amp;&amp;0===L[e-1];)L.pop(),I.pop().dispose()}function q(){if(N.contextLost)return!0;r.isContextLost()&amp;&amp;(N.contextLost=!0,N.mouseListener.enabled=!1,N.selection.object=null,N.oncontextloss&amp;&amp;N.oncontextloss())}window.addEventListener(&quot;resize&quot;,U),N.update=function(t){N._stopped||(t=t||{},P=!0,z=!0)},N.add=function(t){N._stopped||(t.axes=M,E.push(t),C.push(-1),P=!0,z=!0,V())},N.remove=function(t){if(!N._stopped){var e=E.indexOf(t);e&lt;0||(E.splice(e,1),C.pop(),P=!0,z=!0,V())}},N.dispose=function(){if(!N._stopped&amp;&amp;(N._stopped=!0,window.removeEventListener(&quot;resize&quot;,U),e.removeEventListener(&quot;webglcontextlost&quot;,q),N.mouseListener.enabled=!1,!N.contextLost)){M.dispose(),S.dispose();for(var t=0;t&lt;E.length;++t)E[t].dispose();b.dispose();for(t=0;t&lt;I.length;++t)I[t].dispose();_.dispose(),r=null,M=null,S=null,E=[]}},N._mouseRotating=!1,N._prevButtons=0,N.enableMouseListeners=function(){N.mouseListener=u(e,(function(t,e,r){if(!N._stopped){var n=I.length,i=E.length,a=x.object;x.distance=1/0,x.mouse[0]=e,x.mouse[1]=r,x.object=null,x.screen=null,x.dataCoordinate=x.dataPosition=null;var o=!1;if(t&amp;&amp;N._prevButtons)N._mouseRotating=!0;else{N._mouseRotating&amp;&amp;(z=!0),N._mouseRotating=!1;for(var s=0;s&lt;n;++s){var l=I[s].query(e,j[1]-r-1,N.pickRadius);if(l){if(l.distance&gt;x.distance)continue;for(var c=0;c&lt;i;++c){var u=E[c];if(C[c]===s){var f=u.pick(l);f&amp;&amp;(x.buttons=t,x.screen=l.coord,x.distance=l.distance,x.object=u,x.index=f.distance,x.dataPosition=f.position,x.dataCoordinate=f.dataCoordinate,x.data=f,o=!0)}}}}}a&amp;&amp;a!==x.object&amp;&amp;(a.highlight&amp;&amp;a.highlight(null),P=!0),x.object&amp;&amp;(x.object.highlight&amp;&amp;x.object.highlight(x.data),P=!0),(o=o||x.object!==a)&amp;&amp;N.onselect&amp;&amp;N.onselect(x),1&amp;t&amp;&amp;!(1&amp;N._prevButtons)&amp;&amp;N.onclick&amp;&amp;N.onclick(x),N._prevButtons=t}}))},e.addEventListener(&quot;webglcontextlost&quot;,q);var H=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],G=[H[0].slice(),H[1].slice()];function Y(){if(!q()){U();var t=N.camera.tick();R.view=N.camera.matrix,P=P||t,z=z||t,M.pixelRatio=N.pixelRatio,S.pixelRatio=N.pixelRatio;var e=E.length,n=H[0],i=H[1];n[0]=n[1]=n[2]=1/0,i[0]=i[1]=i[2]=-1/0;for(var o=0;o&lt;e;++o){(L=E[o]).pixelRatio=N.pixelRatio,L.axes=N.axes,P=P||!!L.dirty,z=z||!!L.dirty;var s=L.bounds;if(s)for(var l=s[0],u=s[1],p=0;p&lt;3;++p)n[p]=Math.min(n[p],l[p]),i[p]=Math.max(i[p],u[p])}var d=N.bounds;if(N.autoBounds)for(p=0;p&lt;3;++p){if(i[p]&lt;n[p])n[p]=-1,i[p]=1;else{n[p]===i[p]&amp;&amp;(n[p]-=1,i[p]+=1);var g=.05*(i[p]-n[p]);n[p]=n[p]-g,i[p]=i[p]+g}d[0][p]=n[p],d[1][p]=i[p]}var v=!1;for(p=0;p&lt;3;++p)v=v||G[0][p]!==d[0][p]||G[1][p]!==d[1][p],G[0][p]=d[0][p],G[1][p]=d[1][p];if(z=z||v,P=P||v){if(v){var y=[0,0,0];for(o=0;o&lt;3;++o)y[o]=m((d[1][o]-d[0][o])/10);M.autoTicks?M.update({bounds:d,tickSpacing:y}):M.update({bounds:d})}var T=r.drawingBufferWidth,k=r.drawingBufferHeight;F[0]=T,F[1]=k,j[0]=0|Math.max(T/N.pixelRatio,1),j[1]=0|Math.max(k/N.pixelRatio,1),function(t,e){var r=t.bounds,n=t.cameraParams,i=n.projection,a=n.model,o=t.gl.drawingBufferWidth,s=t.gl.drawingBufferHeight,l=t.zNear,c=t.zFar,u=t.fovy,p=o/s;e?(h(i,-p,p,-1,1,l,c),n._ortho=!0):(f(i,u,p,l,c),n._ortho=!1);for(var d=0;d&lt;16;++d)a[d]=0;a[15]=1;var g=0;for(d=0;d&lt;3;++d)g=Math.max(g,r[1][d]-r[0][d]);for(d=0;d&lt;3;++d)t.autoScale?a[5*d]=t.aspect[d]/(r[1][d]-r[0][d]):a[5*d]=1/g,t.autoCenter&amp;&amp;(a[12+d]=.5*-a[5*d]*(r[0][d]+r[1][d]))}(N,w);for(o=0;o&lt;e;++o){(L=E[o]).axesBounds=d,N.clipToBounds&amp;&amp;(L.clipBounds=d)}x.object&amp;&amp;(N.snapToData?S.position=x.dataCoordinate:S.position=x.dataPosition,S.bounds=d),z&amp;&amp;(z=!1,function(){if(!q()){r.colorMask(!0,!0,!0,!0),r.depthMask(!0),r.disable(r.BLEND),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL);for(var t=E.length,e=I.length,n=0;n&lt;e;++n){var i=I[n];i.shape=j,i.begin();for(var a=0;a&lt;t;++a)if(C[a]===n){var o=E[a];o.drawPick&amp;&amp;(o.pixelRatio=1,o.drawPick(R))}i.end()}}}()),N.axesPixels=a(N.axes,R,T,k),N.onrender&amp;&amp;N.onrender(),r.bindFramebuffer(r.FRAMEBUFFER,null),r.viewport(0,0,T,k),N.clearRGBA(),r.depthMask(!0),r.colorMask(!0,!0,!0,!0),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL),r.disable(r.BLEND),r.disable(r.CULL_FACE);var A=!1;M.enable&amp;&amp;(A=A||M.isTransparent(),M.draw(R)),S.axes=M,x.object&amp;&amp;S.draw(R),r.disable(r.CULL_FACE);for(o=0;o&lt;e;++o){(L=E[o]).axes=M,L.pixelRatio=N.pixelRatio,L.isOpaque&amp;&amp;L.isOpaque()&amp;&amp;L.draw(R),L.isTransparent&amp;&amp;L.isTransparent()&amp;&amp;(A=!0)}if(A){b.shape=F,b.bind(),r.clear(r.DEPTH_BUFFER_BIT),r.colorMask(!1,!1,!1,!1),r.depthMask(!0),r.depthFunc(r.LESS),M.enable&amp;&amp;M.isTransparent()&amp;&amp;M.drawTransparent(R);for(o=0;o&lt;e;++o){(L=E[o]).isOpaque&amp;&amp;L.isOpaque()&amp;&amp;L.draw(R)}r.enable(r.BLEND),r.blendEquation(r.FUNC_ADD),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.colorMask(!0,!0,!0,!0),r.depthMask(!1),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),M.isTransparent()&amp;&amp;M.drawTransparent(R);for(o=0;o&lt;e;++o){var L;(L=E[o]).isTransparent&amp;&amp;L.isTransparent()&amp;&amp;L.drawTransparent(R)}r.bindFramebuffer(r.FRAMEBUFFER,null),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.disable(r.DEPTH_TEST),_.bind(),b.color[0].bind(0),_.uniforms.accumBuffer=0,c(r),r.disable(r.BLEND)}P=!1;for(o=0;o&lt;e;++o)E[o].dirty=!1}}}return N.enableMouseListeners(),function t(){if(N._stopped||N.contextLost)return;Y(),requestAnimationFrame(t)}(),N.redraw=function(){N._stopped||(P=!0,Y())},N},createCamera:n}},{&quot;./camera.js&quot;:318,&quot;./lib/shader&quot;:319,&quot;a-big-triangle&quot;:64,&quot;gl-axes3d&quot;:250,&quot;gl-axes3d/properties&quot;:258,&quot;gl-fbo&quot;:269,&quot;gl-mat4/ortho&quot;:296,&quot;gl-mat4/perspective&quot;:297,&quot;gl-select-static&quot;:334,&quot;gl-spikes3d&quot;:345,&quot;is-mobile&quot;:467,&quot;mouse-change&quot;:483}],322:[function(t,e,r){var n=t(&quot;glslify&quot;);r.pointVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform float pointCloud;\n\nhighp float rand(vec2 co) {\n  highp float a = 12.9898;\n  highp float b = 78.233;\n  highp float c = 43758.5453;\n  highp float d = dot(co.xy, vec2(a, b));\n  highp float e = mod(d, 3.14);\n  return fract(sin(e) * c);\n}\n\nvoid main() {\n  vec3 hgPosition = matrix * vec3(position, 1);\n  gl_Position  = vec4(hgPosition.xy, 0, hgPosition.z);\n    // if we don't jitter the point size a bit, overall point cloud\n    // saturation 'jumps' on zooming, which is disturbing and confusing\n  gl_PointSize = pointSize * ((19.5 + rand(position)) / 20.0);\n  if(pointCloud != 0.0) { // pointCloud is truthy\n    // get the same square surface as circle would be\n    gl_PointSize *= 0.886;\n  }\n}&quot;]),r.pointFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color, borderColor;\nuniform float centerFraction;\nuniform float pointCloud;\n\nvoid main() {\n  float radius;\n  vec4 baseColor;\n  if(pointCloud != 0.0) { // pointCloud is truthy\n    if(centerFraction == 1.0) {\n      gl_FragColor = color;\n    } else {\n      gl_FragColor = mix(borderColor, color, centerFraction);\n    }\n  } else {\n    radius = length(2.0 * gl_PointCoord.xy - 1.0);\n    if(radius &gt; 1.0) {\n      discard;\n    }\n    baseColor = mix(borderColor, color, step(radius, centerFraction));\n    gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\n  }\n}\n&quot;]),r.pickVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform vec4 pickOffset;\n\nvarying vec4 fragId;\n\nvoid main() {\n  vec3 hgPosition = matrix * vec3(position, 1);\n  gl_Position  = vec4(hgPosition.xy, 0, hgPosition.z);\n  gl_PointSize = pointSize;\n\n  vec4 id = pickId + pickOffset;\n  id.y += floor(id.x / 256.0);\n  id.x -= floor(id.x / 256.0) * 256.0;\n\n  id.z += floor(id.y / 256.0);\n  id.y -= floor(id.y / 256.0) * 256.0;\n\n  id.w += floor(id.z / 256.0);\n  id.z -= floor(id.z / 256.0) * 256.0;\n\n  fragId = id;\n}\n&quot;]),r.pickFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\n\nvoid main() {\n  float radius = length(2.0 * gl_PointCoord.xy - 1.0);\n  if(radius &gt; 1.0) {\n    discard;\n  }\n  gl_FragColor = fragId / 255.0;\n}\n&quot;])},{glslify:323}],323:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],324:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;typedarray-pool&quot;),o=t(&quot;./lib/shader&quot;);function s(t,e,r,n,i){this.plot=t,this.offsetBuffer=e,this.pickBuffer=r,this.shader=n,this.pickShader=i,this.sizeMin=.5,this.sizeMinCap=2,this.sizeMax=20,this.areaRatio=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.blend=!1,this.pickOffset=0,this.points=null}e.exports=function(t,e){var r=t.gl,a=i(r),l=i(r),c=n(r,o.pointVertex,o.pointFragment),u=n(r,o.pickVertex,o.pickFragment),f=new s(t,a,l,c,u);return f.update(e),t.addObject(f),f};var l,c,u=s.prototype;u.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.plot.removeObject(this)},u.update=function(t){var e;function r(e,r){return e in t?t[e]:r}t=t||{},this.sizeMin=r(&quot;sizeMin&quot;,.5),this.sizeMax=r(&quot;sizeMax&quot;,20),this.color=r(&quot;color&quot;,[1,0,0,1]).slice(),this.areaRatio=r(&quot;areaRatio&quot;,1),this.borderColor=r(&quot;borderColor&quot;,[0,0,0,1]).slice(),this.blend=r(&quot;blend&quot;,!1);var n=t.positions.length&gt;&gt;&gt;1,i=t.positions instanceof Float32Array,o=t.idToIndex instanceof Int32Array&amp;&amp;t.idToIndex.length&gt;=n,s=t.positions,l=i?s:a.mallocFloat32(s.length),c=o?t.idToIndex:a.mallocInt32(n);if(i||l.set(s),!o)for(l.set(s),e=0;e&lt;n;e++)c[e]=e;this.points=s,this.offsetBuffer.update(l),this.pickBuffer.update(c),i||a.free(l),o||a.free(c),this.pointCount=n,this.pickOffset=0},u.unifiedDraw=(l=[1,0,0,0,1,0,0,0,1],c=[0,0,0,0],function(t){var e=void 0!==t,r=e?this.pickShader:this.shader,n=this.plot.gl,i=this.plot.dataBox;if(0===this.pointCount)return t;var a=i[2]-i[0],o=i[3]-i[1],s=function(t,e){var r,n=0,i=t.length&gt;&gt;&gt;1;for(r=0;r&lt;i;r++){var a=t[2*r],o=t[2*r+1];a&gt;=e[0]&amp;&amp;a&lt;=e[2]&amp;&amp;o&gt;=e[1]&amp;&amp;o&lt;=e[3]&amp;&amp;n++}return n}(this.points,i),u=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(s,.33333)));l[0]=2/a,l[4]=2/o,l[6]=-2*i[0]/a-1,l[7]=-2*i[1]/o-1,this.offsetBuffer.bind(),r.bind(),r.attributes.position.pointer(),r.uniforms.matrix=l,r.uniforms.color=this.color,r.uniforms.borderColor=this.borderColor,r.uniforms.pointCloud=u&lt;5,r.uniforms.pointSize=u,r.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),e&amp;&amp;(c[0]=255&amp;t,c[1]=t&gt;&gt;8&amp;255,c[2]=t&gt;&gt;16&amp;255,c[3]=t&gt;&gt;24&amp;255,this.pickBuffer.bind(),r.attributes.pickId.pointer(n.UNSIGNED_BYTE),r.uniforms.pickOffset=c,this.pickOffset=t);var f=n.getParameter(n.BLEND),h=n.getParameter(n.DITHER);return f&amp;&amp;!this.blend&amp;&amp;n.disable(n.BLEND),h&amp;&amp;n.disable(n.DITHER),n.drawArrays(n.POINTS,0,this.pointCount),f&amp;&amp;!this.blend&amp;&amp;n.enable(n.BLEND),h&amp;&amp;n.enable(n.DITHER),t+this.pointCount}),u.draw=u.unifiedDraw,u.drawPick=u.unifiedDraw,u.pick=function(t,e,r){var n=this.pickOffset,i=this.pointCount;if(r&lt;n||r&gt;=n+i)return null;var a=r-n,o=this.points;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}}},{&quot;./lib/shader&quot;:322,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335,&quot;typedarray-pool&quot;:595}],325:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c=e[0],u=e[1],f=e[2],h=e[3],p=r[0],d=r[1],g=r[2],m=r[3];(a=c*p+u*d+f*g+h*m)&lt;0&amp;&amp;(a=-a,p=-p,d=-d,g=-g,m=-m);1-a&gt;1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n);return t[0]=s*c+l*p,t[1]=s*u+l*d,t[2]=s*f+l*g,t[3]=s*h+l*m,t}},{}],326:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t||0===t?t.toString():&quot;&quot;}},{}],327:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;vectorize-text&quot;);e.exports=function(t,e,r){var a=i[e];a||(a=i[e]={});if(t in a)return a[t];var o={textAlign:&quot;center&quot;,textBaseline:&quot;middle&quot;,lineHeight:1,font:e,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},triangles:!0},s=n(t,o);o.triangles=!1;var l,c,u=n(t,o);if(r&amp;&amp;1!==r){for(l=0;l&lt;s.positions.length;++l)for(c=0;c&lt;s.positions[l].length;++c)s.positions[l][c]/=r;for(l=0;l&lt;u.positions.length;++l)for(c=0;c&lt;u.positions[l].length;++c)u.positions[l][c]/=r}var f=[[1/0,1/0],[-1/0,-1/0]],h=u.positions.length;for(l=0;l&lt;h;++l){var p=u.positions[l];for(c=0;c&lt;2;++c)f[0][c]=Math.min(f[0][c],p[c]),f[1][c]=Math.max(f[1][c],p[c])}return a[t]=[s,u,f]};var i={}},{&quot;vectorize-text&quot;:600}],328:[function(t,e,r){var n=t(&quot;gl-shader&quot;),i=t(&quot;glslify&quot;),a=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform vec4 highlightId;\nuniform float highlightScale;\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float scale = 1.0;\n    if(distance(highlightId, id) &lt; 0.0001) {\n      scale = highlightScale;\n    }\n\n    vec4 worldPosition = model * vec4(position, 1);\n    vec4 viewPosition = view * worldPosition;\n    viewPosition = viewPosition / viewPosition.w;\n    vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\n\n    gl_Position = clipPosition;\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = position;\n  }\n}&quot;]),o=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float highlightScale, pixelRatio;\nuniform vec4 highlightId;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float scale = pixelRatio;\n    if(distance(highlightId.bgr, id.bgr) &lt; 0.001) {\n      scale *= highlightScale;\n    }\n\n    vec4 worldPosition = model * vec4(position, 1.0);\n    vec4 viewPosition = view * worldPosition;\n    vec4 clipPosition = projection * viewPosition;\n    clipPosition /= clipPosition.w;\n\n    gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = position;\n  }\n}&quot;]),s=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform float highlightScale;\nuniform vec4 highlightId;\nuniform vec3 axes[2];\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float scale, pixelRatio;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float lscale = pixelRatio * scale;\n    if(distance(highlightId, id) &lt; 0.0001) {\n      lscale *= highlightScale;\n    }\n\n    vec4 clipCenter   = projection * view * model * vec4(position, 1);\n    vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\n    vec4 clipPosition = projection * view * model * vec4(dataPosition, 1);\n\n    gl_Position = clipPosition;\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = dataPosition;\n  }\n}\n&quot;]),l=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float opacity;\n\nvarying vec4 interpColor;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (\n    outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) ||\n    interpColor.a * opacity == 0.\n  ) discard;\n  gl_FragColor = interpColor * opacity;\n}\n&quot;]),c=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float pickGroup;\n\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\n\n  gl_FragColor = vec4(pickGroup, pickId.bgr);\n}&quot;]),u=[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;glyph&quot;,type:&quot;vec2&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}],f={vertex:a,fragment:l,attributes:u},h={vertex:o,fragment:l,attributes:u},p={vertex:s,fragment:l,attributes:u},d={vertex:a,fragment:c,attributes:u},g={vertex:o,fragment:c,attributes:u},m={vertex:s,fragment:c,attributes:u};function v(t,e){var r=n(t,e),i=r.attributes;return i.position.location=0,i.color.location=1,i.glyph.location=2,i.id.location=3,r}r.createPerspective=function(t){return v(t,f)},r.createOrtho=function(t){return v(t,h)},r.createProject=function(t){return v(t,p)},r.createPickPerspective=function(t){return v(t,d)},r.createPickOrtho=function(t){return v(t,g)},r.createPickProject=function(t){return v(t,m)}},{&quot;gl-shader&quot;:335,glslify:329}],329:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],330:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-string-blank&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;typedarray-pool&quot;),s=t(&quot;gl-mat4/multiply&quot;),l=t(&quot;./lib/shaders&quot;),c=t(&quot;./lib/glyphs&quot;),u=t(&quot;./lib/get-simple-string&quot;),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];return t[0]=e[0]*r+e[4]*n+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*n+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*n+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*n+e[11]*i+e[15]*a,t}function p(t,e,r,n){return h(n,n),h(n,n),h(n,n)}function d(t,e){this.index=t,this.dataCoordinate=this.position=e}function g(t){return!0===t||t&gt;1?1:t}function m(t,e,r,n,i,a,o,s,l,c,u,f){this.gl=t,this.pixelRatio=1,this.shader=e,this.orthoShader=r,this.projectShader=n,this.pointBuffer=i,this.colorBuffer=a,this.glyphBuffer=o,this.idBuffer=s,this.vao=l,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[2/3,2/3,2/3],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=c,this.pickOrthoShader=u,this.pickProjectShader=f,this.points=[],this._selectResult=new d(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}e.exports=function(t){var e=t.gl,r=l.createPerspective(e),n=l.createOrtho(e),o=l.createProject(e),s=l.createPickPerspective(e),c=l.createPickOrtho(e),u=l.createPickProject(e),f=i(e),h=i(e),p=i(e),d=i(e),g=a(e,[{buffer:f,size:3,type:e.FLOAT},{buffer:h,size:4,type:e.FLOAT},{buffer:p,size:2,type:e.FLOAT},{buffer:d,size:4,type:e.UNSIGNED_BYTE,normalized:!0}]),v=new m(e,r,n,o,f,h,p,d,g,s,c,u);return v.update(t),v};var v=m.prototype;v.pickSlots=1,v.setPickBase=function(t){this.pickId=t},v.isTransparent=function(){if(this.hasAlpha)return!0;for(var t=0;t&lt;3;++t)if(this.axesProject[t]&amp;&amp;this.projectHasAlpha)return!0;return!1},v.isOpaque=function(){if(!this.hasAlpha)return!0;for(var t=0;t&lt;3;++t)if(this.axesProject[t]&amp;&amp;!this.projectHasAlpha)return!0;return!1};var y=[0,0],x=[0,0,0],b=[0,0,0],_=[0,0,0,1],w=[0,0,0,1],T=f.slice(),k=[0,0,0],M=[[0,0,0],[0,0,0]];function A(t){return t[0]=t[1]=t[2]=0,t}function S(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=1,t}function E(t,e,r,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[r]=n,t}function C(t,e,r,n){var i,a=e.axesProject,o=e.gl,l=t.uniforms,c=r.model||f,u=r.view||f,h=r.projection||f,d=e.axesBounds,g=function(t){for(var e=M,r=0;r&lt;2;++r)for(var n=0;n&lt;3;++n)e[r][n]=Math.max(Math.min(t[r][n],1e8),-1e8);return e}(e.clipBounds);i=e.axes&amp;&amp;e.axes.lastCubeProps?e.axes.lastCubeProps.axis:[1,1,1],y[0]=2/o.drawingBufferWidth,y[1]=2/o.drawingBufferHeight,t.bind(),l.view=u,l.projection=h,l.screenSize=y,l.highlightId=e.highlightId,l.highlightScale=e.highlightScale,l.clipBounds=g,l.pickGroup=e.pickId/255,l.pixelRatio=n;for(var m=0;m&lt;3;++m)if(a[m]){l.scale=e.projectScale[m],l.opacity=e.projectOpacity[m];for(var v=T,C=0;C&lt;16;++C)v[C]=0;for(C=0;C&lt;4;++C)v[5*C]=1;v[5*m]=0,i[m]&lt;0?v[12+m]=d[0][m]:v[12+m]=d[1][m],s(v,c,v),l.model=v;var L=(m+1)%3,I=(m+2)%3,P=A(x),z=A(b);P[L]=1,z[I]=1;var O=p(0,0,0,S(_,P)),D=p(0,0,0,S(w,z));if(Math.abs(O[1])&gt;Math.abs(D[1])){var R=O;O=D,D=R,R=P,P=z,z=R;var F=L;L=I,I=F}O[0]&lt;0&amp;&amp;(P[L]=-1),D[1]&gt;0&amp;&amp;(z[I]=-1);var B=0,N=0;for(C=0;C&lt;4;++C)B+=Math.pow(c[4*L+C],2),N+=Math.pow(c[4*I+C],2);P[L]/=Math.sqrt(B),z[I]/=Math.sqrt(N),l.axes[0]=P,l.axes[1]=z,l.fragClipBounds[0]=E(k,g[0],m,-1e8),l.fragClipBounds[1]=E(k,g[1],m,1e8),e.vao.bind(),e.vao.draw(o.TRIANGLES,e.vertexCount),e.lineWidth&gt;0&amp;&amp;(o.lineWidth(e.lineWidth*n),e.vao.draw(o.LINES,e.lineVertexCount,e.vertexCount)),e.vao.unbind()}}var L=[[-1e8,-1e8,-1e8],[1e8,1e8,1e8]];function I(t,e,r,n,i,a,o){var s=r.gl;if((a===r.projectHasAlpha||o)&amp;&amp;C(e,r,n,i),a===r.hasAlpha||o){t.bind();var l=t.uniforms;l.model=n.model||f,l.view=n.view||f,l.projection=n.projection||f,y[0]=2/s.drawingBufferWidth,y[1]=2/s.drawingBufferHeight,l.screenSize=y,l.highlightId=r.highlightId,l.highlightScale=r.highlightScale,l.fragClipBounds=L,l.clipBounds=r.axes.bounds,l.opacity=r.opacity,l.pickGroup=r.pickId/255,l.pixelRatio=i,r.vao.bind(),r.vao.draw(s.TRIANGLES,r.vertexCount),r.lineWidth&gt;0&amp;&amp;(s.lineWidth(r.lineWidth*i),r.vao.draw(s.LINES,r.lineVertexCount,r.vertexCount)),r.vao.unbind()}}function P(t,e,r,i){var a;a=Array.isArray(t)?e&lt;t.length?t[e]:void 0:t,a=u(a);var o=!0;n(a)&amp;&amp;(a=&quot;\u25bc&quot;,o=!1);var s=c(a,r,i);return{mesh:s[0],lines:s[1],bounds:s[2],visible:o}}v.draw=function(t){I(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,this.pixelRatio,!1,!1)},v.drawTransparent=function(t){I(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,this.pixelRatio,!0,!1)},v.drawPick=function(t){I(this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader,this.pickProjectShader,this,t,1,!0,!0)},v.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[2]+(t.value[1]&lt;&lt;8)+(t.value[0]&lt;&lt;16);if(e&gt;=this.pointCount||e&lt;0)return null;var r=this.points[e],n=this._selectResult;n.index=e;for(var i=0;i&lt;3;++i)n.position[i]=n.dataCoordinate[i]=r[i];return n},v.highlight=function(t){if(t){var e=t.index,r=255&amp;e,n=e&gt;&gt;8&amp;255,i=e&gt;&gt;16&amp;255;this.highlightId=[r/255,n/255,i/255,0]}else this.highlightId=[1,1,1,1]},v.update=function(t){if(&quot;perspective&quot;in(t=t||{})&amp;&amp;(this.useOrtho=!t.perspective),&quot;orthographic&quot;in t&amp;&amp;(this.useOrtho=!!t.orthographic),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;project&quot;in t)if(Array.isArray(t.project))this.axesProject=t.project;else{var e=!!t.project;this.axesProject=[e,e,e]}if(&quot;projectScale&quot;in t)if(Array.isArray(t.projectScale))this.projectScale=t.projectScale.slice();else{var r=+t.projectScale;this.projectScale=[r,r,r]}if(this.projectHasAlpha=!1,&quot;projectOpacity&quot;in t){if(Array.isArray(t.projectOpacity))this.projectOpacity=t.projectOpacity.slice();else{r=+t.projectOpacity;this.projectOpacity=[r,r,r]}for(var n=0;n&lt;3;++n)this.projectOpacity[n]=g(this.projectOpacity[n]),this.projectOpacity[n]&lt;1&amp;&amp;(this.projectHasAlpha=!0)}this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=g(t.opacity),this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0)),this.dirty=!0;var i,a,s=t.position,l=t.font||&quot;normal&quot;,c=t.alignment||[0,0];if(2===c.length)i=c[0],a=c[1];else{i=[],a=[];for(n=0;n&lt;c.length;++n)i[n]=c[n][0],a[n]=c[n][1]}var u=[1/0,1/0,1/0],f=[-1/0,-1/0,-1/0],h=t.glyph,p=t.color,d=t.size,m=t.angle,v=t.lineColor,y=-1,x=0,b=0,_=0;if(s.length){_=s.length;t:for(n=0;n&lt;_;++n){for(var w=s[n],T=0;T&lt;3;++T)if(isNaN(w[T])||!isFinite(w[T]))continue t;var k=(N=P(h,n,l,this.pixelRatio)).mesh,M=N.lines,A=N.bounds;x+=3*k.cells.length,b+=2*M.edges.length}}var S=x+b,E=o.mallocFloat(3*S),C=o.mallocFloat(4*S),L=o.mallocFloat(2*S),I=o.mallocUint32(S);if(S&gt;0){var z=0,O=x,D=[0,0,0,1],R=[0,0,0,1],F=Array.isArray(p)&amp;&amp;Array.isArray(p[0]),B=Array.isArray(v)&amp;&amp;Array.isArray(v[0]);t:for(n=0;n&lt;_;++n){y+=1;for(w=s[n],T=0;T&lt;3;++T){if(isNaN(w[T])||!isFinite(w[T]))continue t;f[T]=Math.max(f[T],w[T]),u[T]=Math.min(u[T],w[T])}k=(N=P(h,n,l,this.pixelRatio)).mesh,M=N.lines,A=N.bounds;var N,j=N.visible;if(j)if(Array.isArray(p)){if(3===(U=F?n&lt;p.length?p[n]:[0,0,0,0]:p).length){for(T=0;T&lt;3;++T)D[T]=U[T];D[3]=1}else if(4===U.length){for(T=0;T&lt;4;++T)D[T]=U[T];!this.hasAlpha&amp;&amp;U[3]&lt;1&amp;&amp;(this.hasAlpha=!0)}}else D[0]=D[1]=D[2]=0,D[3]=1;else D=[1,1,1,0];if(j)if(Array.isArray(v)){var U;if(3===(U=B?n&lt;v.length?v[n]:[0,0,0,0]:v).length){for(T=0;T&lt;3;++T)R[T]=U[T];R[T]=1}else if(4===U.length){for(T=0;T&lt;4;++T)R[T]=U[T];!this.hasAlpha&amp;&amp;U[3]&lt;1&amp;&amp;(this.hasAlpha=!0)}}else R[0]=R[1]=R[2]=0,R[3]=1;else R=[1,1,1,0];var V=.5;j?Array.isArray(d)?V=n&lt;d.length?+d[n]:12:d?V=+d:this.useOrtho&amp;&amp;(V=12):V=0;var q=0;Array.isArray(m)?q=n&lt;m.length?+m[n]:0:m&amp;&amp;(q=+m);var H=Math.cos(q),G=Math.sin(q);for(w=s[n],T=0;T&lt;3;++T)f[T]=Math.max(f[T],w[T]),u[T]=Math.min(u[T],w[T]);var Y=i,W=a;Y=0;Array.isArray(i)?Y=n&lt;i.length?i[n]:0:i&amp;&amp;(Y=i);W=0;Array.isArray(a)?W=n&lt;a.length?a[n]:0:a&amp;&amp;(W=a);var X=[Y*=Y&gt;0?1-A[0][0]:Y&lt;0?1+A[1][0]:1,W*=W&gt;0?1-A[0][1]:W&lt;0?1+A[1][1]:1],Z=k.cells||[],J=k.positions||[];for(T=0;T&lt;Z.length;++T)for(var K=Z[T],Q=0;Q&lt;3;++Q){for(var $=0;$&lt;3;++$)E[3*z+$]=w[$];for($=0;$&lt;4;++$)C[4*z+$]=D[$];I[z]=y;var tt=J[K[Q]];L[2*z]=V*(H*tt[0]-G*tt[1]+X[0]),L[2*z+1]=V*(G*tt[0]+H*tt[1]+X[1]),z+=1}for(Z=M.edges,J=M.positions,T=0;T&lt;Z.length;++T)for(K=Z[T],Q=0;Q&lt;2;++Q){for($=0;$&lt;3;++$)E[3*O+$]=w[$];for($=0;$&lt;4;++$)C[4*O+$]=R[$];I[O]=y;tt=J[K[Q]];L[2*O]=V*(H*tt[0]-G*tt[1]+X[0]),L[2*O+1]=V*(G*tt[0]+H*tt[1]+X[1]),O+=1}}}this.bounds=[u,f],this.points=s,this.pointCount=s.length,this.vertexCount=x,this.lineVertexCount=b,this.pointBuffer.update(E),this.colorBuffer.update(C),this.glyphBuffer.update(L),this.idBuffer.update(I),o.free(E),o.free(C),o.free(L),o.free(I)},v.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()}},{&quot;./lib/get-simple-string&quot;:326,&quot;./lib/glyphs&quot;:327,&quot;./lib/shaders&quot;:328,&quot;gl-buffer&quot;:259,&quot;gl-mat4/multiply&quot;:295,&quot;gl-vao&quot;:358,&quot;is-string-blank&quot;:470,&quot;typedarray-pool&quot;:595}],331:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;);r.boxVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 vertex;\n\nuniform vec2 cornerA, cornerB;\n\nvoid main() {\n  gl_Position = vec4(mix(cornerA, cornerB, vertex), 0, 1);\n}\n&quot;]),r.boxFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color;\n\nvoid main() {\n  gl_FragColor = color;\n}\n&quot;])},{glslify:332}],332:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],333:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;./lib/shaders&quot;);function o(t,e,r){this.plot=t,this.boxBuffer=e,this.boxShader=r,this.enabled=!0,this.selectBox=[1/0,1/0,-1/0,-1/0],this.borderColor=[0,0,0,1],this.innerFill=!1,this.innerColor=[0,0,0,.25],this.outerFill=!0,this.outerColor=[0,0,0,.5],this.borderWidth=10}e.exports=function(t,e){var r=t.gl,s=i(r,[0,0,0,1,1,0,1,1]),l=n(r,a.boxVertex,a.boxFragment),c=new o(t,s,l);return c.update(e),t.addOverlay(c),c};var s=o.prototype;s.draw=function(){if(this.enabled){var t=this.plot,e=this.selectBox,r=this.borderWidth,n=(this.innerFill,this.innerColor),i=(this.outerFill,this.outerColor),a=this.borderColor,o=t.box,s=t.screenBox,l=t.dataBox,c=t.viewBox,u=t.pixelRatio,f=(e[0]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],h=(e[1]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1],p=(e[2]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],d=(e[3]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1];if(f=Math.max(f,c[0]),h=Math.max(h,c[1]),p=Math.min(p,c[2]),d=Math.min(d,c[3]),!(p&lt;f||d&lt;h)){o.bind();var g=s[2]-s[0],m=s[3]-s[1];if(this.outerFill&amp;&amp;(o.drawBox(0,0,g,h,i),o.drawBox(0,h,f,d,i),o.drawBox(0,d,g,m,i),o.drawBox(p,h,g,d,i)),this.innerFill&amp;&amp;o.drawBox(f,h,p,d,n),r&gt;0){var v=r*u;o.drawBox(f-v,h-v,p+v,h+v,a),o.drawBox(f-v,d-v,p+v,d+v,a),o.drawBox(f-v,h-v,f+v,d+v,a),o.drawBox(p-v,h-v,p+v,d+v,a)}}}},s.update=function(t){t=t||{},this.innerFill=!!t.innerFill,this.outerFill=!!t.outerFill,this.innerColor=(t.innerColor||[0,0,0,.5]).slice(),this.outerColor=(t.outerColor||[0,0,0,.5]).slice(),this.borderColor=(t.borderColor||[0,0,0,1]).slice(),this.borderWidth=t.borderWidth||0,this.selectBox=(t.selectBox||this.selectBox).slice()},s.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)}},{&quot;./lib/shaders&quot;:331,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],334:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=e[0],a=e[1],o=n(t,r,a,{}),s=i.mallocUint8(r*a*4);return new l(t,o,s)};var n=t(&quot;gl-fbo&quot;),i=t(&quot;typedarray-pool&quot;),a=t(&quot;ndarray&quot;),o=t(&quot;bit-twiddle&quot;).nextPow2;function s(t,e,r,n,i){this.coord=[t,e],this.id=r,this.value=n,this.distance=i}function l(t,e,r){this.gl=t,this.fbo=e,this.buffer=r,this._readTimeout=null;var n=this;this._readCallback=function(){n.gl&amp;&amp;(e.bind(),t.readPixels(0,0,e.shape[0],e.shape[1],t.RGBA,t.UNSIGNED_BYTE,n.buffer),n._readTimeout=null)}}var c=l.prototype;Object.defineProperty(c,&quot;shape&quot;,{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(t){if(this.gl){this.fbo.shape=t;var e=this.fbo.shape[0],r=this.fbo.shape[1];if(r*e*4&gt;this.buffer.length){i.free(this.buffer);for(var n=this.buffer=i.mallocUint8(o(r*e*4)),a=0;a&lt;r*e*4;++a)n[a]=255}return t}}}),c.begin=function(){var t=this.gl;this.shape;t&amp;&amp;(this.fbo.bind(),t.clearColor(1,1,1,1),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT))},c.end=function(){var t=this.gl;t&amp;&amp;(t.bindFramebuffer(t.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},c.query=function(t,e,r){if(!this.gl)return null;var n=this.fbo.shape.slice();t|=0,e|=0,&quot;number&quot;!=typeof r&amp;&amp;(r=1);var i=0|Math.min(Math.max(t-r,0),n[0]),o=0|Math.min(Math.max(t+r,0),n[0]),l=0|Math.min(Math.max(e-r,0),n[1]),c=0|Math.min(Math.max(e+r,0),n[1]);if(o&lt;=i||c&lt;=l)return null;var u=[o-i,c-l],f=a(this.buffer,[u[0],u[1],4],[4,4*n[0],1],4*(i+n[0]*l)),h=function(t,e,r){for(var n=1e8,i=-1,a=-1,o=t.shape[0],s=t.shape[1],l=0;l&lt;o;l++)for(var c=0;c&lt;s;c++){var u=t.get(l,c,0),f=t.get(l,c,1),h=t.get(l,c,2),p=t.get(l,c,3);if(u&lt;255||f&lt;255||h&lt;255||p&lt;255){var d=e-l,g=r-c,m=d*d+g*g;m&lt;n&amp;&amp;(n=m,i=l,a=c)}}return[i,a,n]}(f.hi(u[0],u[1],1),r,r),p=h[0],d=h[1];return p&lt;0||Math.pow(this.radius,2)&lt;h[2]?null:new s(p+i|0,d+l|0,f.get(p,d,0),[f.get(p,d,1),f.get(p,d,2),f.get(p,d,3)],Math.sqrt(h[2]))},c.dispose=function(){this.gl&amp;&amp;(this.fbo.dispose(),i.free(this.buffer),this.gl=null,this._readTimeout&amp;&amp;clearTimeout(this._readTimeout))}},{&quot;bit-twiddle&quot;:97,&quot;gl-fbo&quot;:269,ndarray:495,&quot;typedarray-pool&quot;:595}],335:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/create-uniforms&quot;),i=t(&quot;./lib/create-attributes&quot;),a=t(&quot;./lib/reflect&quot;),o=t(&quot;./lib/shader-cache&quot;),s=t(&quot;./lib/runtime-reflect&quot;),l=t(&quot;./lib/GLError&quot;);function c(t){this.gl=t,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}var u=c.prototype;function f(t,e){return t.name&lt;e.name?-1:1}u.bind=function(){var t;this.program||this._relink();var e=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),r=this.gl.lastAttribCount;if(e&gt;r)for(t=r;t&lt;e;t++)this.gl.enableVertexAttribArray(t);else if(r&gt;e)for(t=e;t&lt;r;t++)this.gl.disableVertexAttribArray(t);this.gl.lastAttribCount=e,this.gl.useProgram(this.program)},u.dispose=function(){for(var t=this.gl.lastAttribCount,e=0;e&lt;t;e++)this.gl.disableVertexAttribArray(e);this.gl.lastAttribCount=0,this._fref&amp;&amp;this._fref.dispose(),this._vref&amp;&amp;this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null},u.update=function(t,e,r,c){if(!e||1===arguments.length){var u=t;t=u.vertex,e=u.fragment,r=u.uniforms,c=u.attributes}var h=this,p=h.gl,d=h._vref;h._vref=o.shader(p,p.VERTEX_SHADER,t),d&amp;&amp;d.dispose(),h.vertShader=h._vref.shader;var g=this._fref;if(h._fref=o.shader(p,p.FRAGMENT_SHADER,e),g&amp;&amp;g.dispose(),h.fragShader=h._fref.shader,!r||!c){var m=p.createProgram();if(p.attachShader(m,h.fragShader),p.attachShader(m,h.vertShader),p.linkProgram(m),!p.getProgramParameter(m,p.LINK_STATUS)){var v=p.getProgramInfoLog(m);throw new l(v,&quot;Error linking program:&quot;+v)}r=r||s.uniforms(p,m),c=c||s.attributes(p,m),p.deleteProgram(m)}(c=c.slice()).sort(f);var y,x=[],b=[],_=[];for(y=0;y&lt;c.length;++y){var w=c[y];if(w.type.indexOf(&quot;mat&quot;)&gt;=0){for(var T=0|w.type.charAt(w.type.length-1),k=new Array(T),M=0;M&lt;T;++M)k[M]=_.length,b.push(w.name+&quot;[&quot;+M+&quot;]&quot;),&quot;number&quot;==typeof w.location?_.push(w.location+M):Array.isArray(w.location)&amp;&amp;w.location.length===T&amp;&amp;&quot;number&quot;==typeof w.location[M]?_.push(0|w.location[M]):_.push(-1);x.push({name:w.name,type:w.type,locations:k})}else x.push({name:w.name,type:w.type,locations:[_.length]}),b.push(w.name),&quot;number&quot;==typeof w.location?_.push(0|w.location):_.push(-1)}var A=0;for(y=0;y&lt;_.length;++y)if(_[y]&lt;0){for(;_.indexOf(A)&gt;=0;)A+=1;_[y]=A}var S=new Array(r.length);function E(){h.program=o.program(p,h._vref,h._fref,b,_);for(var t=0;t&lt;r.length;++t)S[t]=p.getUniformLocation(h.program,r[t].name)}E(),h._relink=E,h.types={uniforms:a(r),attributes:a(c)},h.attributes=i(p,h,x,_),Object.defineProperty(h,&quot;uniforms&quot;,n(p,h,r,S))},e.exports=function(t,e,r,n,i){var a=new c(t);return a.update(e,r,n,i),a}},{&quot;./lib/GLError&quot;:336,&quot;./lib/create-attributes&quot;:337,&quot;./lib/create-uniforms&quot;:338,&quot;./lib/reflect&quot;:339,&quot;./lib/runtime-reflect&quot;:340,&quot;./lib/shader-cache&quot;:341}],336:[function(t,e,r){function n(t,e,r){this.shortMessage=e||&quot;&quot;,this.longMessage=r||&quot;&quot;,this.rawError=t||&quot;&quot;,this.message=&quot;gl-shader: &quot;+(e||t||&quot;&quot;)+(r?&quot;\n&quot;+r:&quot;&quot;),this.stack=(new Error).stack}n.prototype=new Error,n.prototype.name=&quot;GLError&quot;,n.prototype.constructor=n,e.exports=n},{}],337:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,i){for(var a={},l=0,c=r.length;l&lt;c;++l){var u=r[l],f=u.name,h=u.type,p=u.locations;switch(h){case&quot;bool&quot;:case&quot;int&quot;:case&quot;float&quot;:o(t,e,p[0],i,1,a,f);break;default:if(h.indexOf(&quot;vec&quot;)&gt;=0){if((d=h.charCodeAt(h.length-1)-48)&lt;2||d&gt;4)throw new n(&quot;&quot;,&quot;Invalid data type for attribute &quot;+f+&quot;: &quot;+h);o(t,e,p[0],i,d,a,f)}else{if(!(h.indexOf(&quot;mat&quot;)&gt;=0))throw new n(&quot;&quot;,&quot;Unknown data type for attribute &quot;+f+&quot;: &quot;+h);var d;if((d=h.charCodeAt(h.length-1)-48)&lt;2||d&gt;4)throw new n(&quot;&quot;,&quot;Invalid data type for attribute &quot;+f+&quot;: &quot;+h);s(t,e,p,i,d,a,f)}}}return a};var n=t(&quot;./GLError&quot;);function i(t,e,r,n,i,a){this._gl=t,this._wrapper=e,this._index=r,this._locations=n,this._dimension=i,this._constFunc=a}var a=i.prototype;function o(t,e,r,n,a,o,s){for(var l=[&quot;gl&quot;,&quot;v&quot;],c=[],u=0;u&lt;a;++u)l.push(&quot;x&quot;+u),c.push(&quot;x&quot;+u);l.push(&quot;if(x0.length===void 0){return gl.vertexAttrib&quot;+a+&quot;f(v,&quot;+c.join()+&quot;)}else{return gl.vertexAttrib&quot;+a+&quot;fv(v,x0)}&quot;);var f=Function.apply(null,l),h=new i(t,e,r,n,a,f);Object.defineProperty(o,s,{set:function(e){return t.disableVertexAttribArray(n[r]),f(t,n[r],e),e},get:function(){return h},enumerable:!0})}function s(t,e,r,n,i,a,s){for(var l=new Array(i),c=new Array(i),u=0;u&lt;i;++u)o(t,e,r[u],n,i,l,u),c[u]=l[u];Object.defineProperty(l,&quot;location&quot;,{set:function(t){if(Array.isArray(t))for(var e=0;e&lt;i;++e)c[e].location=t[e];else for(e=0;e&lt;i;++e)c[e].location=t+e;return t},get:function(){for(var t=new Array(i),e=0;e&lt;i;++e)t[e]=n[r[e]];return t},enumerable:!0}),l.pointer=function(e,a,o,s){e=e||t.FLOAT,a=!!a,o=o||i*i,s=s||0;for(var l=0;l&lt;i;++l){var c=n[r[l]];t.vertexAttribPointer(c,i,e,a,o,s+l*i),t.enableVertexAttribArray(c)}};var f=new Array(i),h=t[&quot;vertexAttrib&quot;+i+&quot;fv&quot;];Object.defineProperty(a,s,{set:function(e){for(var a=0;a&lt;i;++a){var o=n[r[a]];if(t.disableVertexAttribArray(o),Array.isArray(e[0]))h.call(t,o,e[a]);else{for(var s=0;s&lt;i;++s)f[s]=e[i*a+s];h.call(t,o,f)}}return e},get:function(){return l},enumerable:!0})}a.pointer=function(t,e,r,n){var i=this._gl,a=this._locations[this._index];i.vertexAttribPointer(a,this._dimension,t||i.FLOAT,!!e,r||0,n||0),i.enableVertexAttribArray(a)},a.set=function(t,e,r,n){return this._constFunc(this._locations[this._index],t,e,r,n)},Object.defineProperty(a,&quot;location&quot;,{get:function(){return this._locations[this._index]},set:function(t){return t!==this._locations[this._index]&amp;&amp;(this._locations[this._index]=0|t,this._wrapper.program=null),0|t}})},{&quot;./GLError&quot;:336}],338:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./reflect&quot;),i=t(&quot;./GLError&quot;);function a(t){return new Function(&quot;y&quot;,&quot;return function(){return y}&quot;)(t)}function o(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}e.exports=function(t,e,r,s){function l(t,e,r){switch(r){case&quot;bool&quot;:case&quot;int&quot;:case&quot;sampler2D&quot;:case&quot;samplerCube&quot;:return&quot;gl.uniform1i(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;case&quot;float&quot;:return&quot;gl.uniform1f(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;default:var n=r.indexOf(&quot;vec&quot;);if(!(0&lt;=n&amp;&amp;n&lt;=1&amp;&amp;r.length===4+n)){if(0===r.indexOf(&quot;mat&quot;)&amp;&amp;4===r.length){var a;if((a=r.charCodeAt(r.length-1)-48)&lt;2||a&gt;4)throw new i(&quot;&quot;,&quot;Invalid uniform dimension type for matrix &quot;+name+&quot;: &quot;+r);return&quot;gl.uniformMatrix&quot;+a+&quot;fv(locations[&quot;+e+&quot;],false,obj&quot;+t+&quot;)&quot;}throw new i(&quot;&quot;,&quot;Unknown uniform data type for &quot;+name+&quot;: &quot;+r)}if((a=r.charCodeAt(r.length-1)-48)&lt;2||a&gt;4)throw new i(&quot;&quot;,&quot;Invalid data type&quot;);switch(r.charAt(0)){case&quot;b&quot;:case&quot;i&quot;:return&quot;gl.uniform&quot;+a+&quot;iv(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;case&quot;v&quot;:return&quot;gl.uniform&quot;+a+&quot;fv(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;default:throw new i(&quot;&quot;,&quot;Unrecognized data type for vector &quot;+name+&quot;: &quot;+r)}}}function c(e){for(var n=[&quot;return function updateProperty(obj){&quot;],i=function t(e,r){if(&quot;object&quot;!=typeof r)return[[e,r]];var n=[];for(var i in r){var a=r[i],o=e;parseInt(i)+&quot;&quot;===i?o+=&quot;[&quot;+i+&quot;]&quot;:o+=&quot;.&quot;+i,&quot;object&quot;==typeof a?n.push.apply(n,t(o,a)):n.push([o,a])}return n}(&quot;&quot;,e),a=0;a&lt;i.length;++a){var o=i[a],c=o[0],u=o[1];s[u]&amp;&amp;n.push(l(c,u,r[u].type))}return n.push(&quot;return obj}&quot;),new Function(&quot;gl&quot;,&quot;locations&quot;,n.join(&quot;\n&quot;))(t,s)}function u(n,l,u){if(&quot;object&quot;==typeof u){var h=f(u);Object.defineProperty(n,l,{get:a(h),set:c(u),enumerable:!0,configurable:!1})}else s[u]?Object.defineProperty(n,l,{get:(p=u,new Function(&quot;gl&quot;,&quot;wrapper&quot;,&quot;locations&quot;,&quot;return function(){return gl.getUniform(wrapper.program,locations[&quot;+p+&quot;])}&quot;)(t,e,s)),set:c(u),enumerable:!0,configurable:!1}):n[l]=function(t){switch(t){case&quot;bool&quot;:return!1;case&quot;int&quot;:case&quot;sampler2D&quot;:case&quot;samplerCube&quot;:case&quot;float&quot;:return 0;default:var e=t.indexOf(&quot;vec&quot;);if(0&lt;=e&amp;&amp;e&lt;=1&amp;&amp;t.length===4+e){if((r=t.charCodeAt(t.length-1)-48)&lt;2||r&gt;4)throw new i(&quot;&quot;,&quot;Invalid data type&quot;);return&quot;b&quot;===t.charAt(0)?o(r,!1):o(r,0)}if(0===t.indexOf(&quot;mat&quot;)&amp;&amp;4===t.length){var r;if((r=t.charCodeAt(t.length-1)-48)&lt;2||r&gt;4)throw new i(&quot;&quot;,&quot;Invalid uniform dimension type for matrix &quot;+name+&quot;: &quot;+t);return o(r*r,0)}throw new i(&quot;&quot;,&quot;Unknown uniform data type for &quot;+name+&quot;: &quot;+t)}}(r[u].type);var p}function f(t){var e;if(Array.isArray(t)){e=new Array(t.length);for(var r=0;r&lt;t.length;++r)u(e,r,t[r])}else for(var n in e={},t)u(e,n,t[n]);return e}var h=n(r,!0);return{get:a(f(h)),set:c(h),enumerable:!0,configurable:!0}}},{&quot;./GLError&quot;:336,&quot;./reflect&quot;:339}],339:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r={},n=0;n&lt;t.length;++n)for(var i=t[n].name.split(&quot;.&quot;),a=r,o=0;o&lt;i.length;++o){var s=i[o].split(&quot;[&quot;);if(s.length&gt;1){s[0]in a||(a[s[0]]=[]),a=a[s[0]];for(var l=1;l&lt;s.length;++l){var c=parseInt(s[l]);l&lt;s.length-1||o&lt;i.length-1?(c in a||(l&lt;s.length-1?a[c]=[]:a[c]={}),a=a[c]):a[c]=e?n:t[n].type}}else o&lt;i.length-1?(s[0]in a||(a[s[0]]={}),a=a[s[0]]):a[s[0]]=e?n:t[n].type}return r}},{}],340:[function(t,e,r){&quot;use strict&quot;;r.uniforms=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),n=[],i=0;i&lt;r;++i){var o=t.getActiveUniform(e,i);if(o){var s=a(t,o.type);if(o.size&gt;1)for(var l=0;l&lt;o.size;++l)n.push({name:o.name.replace(&quot;[0]&quot;,&quot;[&quot;+l+&quot;]&quot;),type:s});else n.push({name:o.name,type:s})}}return n},r.attributes=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),n=[],i=0;i&lt;r;++i){var o=t.getActiveAttrib(e,i);o&amp;&amp;n.push({name:o.name,type:a(t,o.type)})}return n};var n={FLOAT:&quot;float&quot;,FLOAT_VEC2:&quot;vec2&quot;,FLOAT_VEC3:&quot;vec3&quot;,FLOAT_VEC4:&quot;vec4&quot;,INT:&quot;int&quot;,INT_VEC2:&quot;ivec2&quot;,INT_VEC3:&quot;ivec3&quot;,INT_VEC4:&quot;ivec4&quot;,BOOL:&quot;bool&quot;,BOOL_VEC2:&quot;bvec2&quot;,BOOL_VEC3:&quot;bvec3&quot;,BOOL_VEC4:&quot;bvec4&quot;,FLOAT_MAT2:&quot;mat2&quot;,FLOAT_MAT3:&quot;mat3&quot;,FLOAT_MAT4:&quot;mat4&quot;,SAMPLER_2D:&quot;sampler2D&quot;,SAMPLER_CUBE:&quot;samplerCube&quot;},i=null;function a(t,e){if(!i){var r=Object.keys(n);i={};for(var a=0;a&lt;r.length;++a){var o=r[a];i[t[o]]=n[o]}}return i[e]}},{}],341:[function(t,e,r){&quot;use strict&quot;;r.shader=function(t,e,r){return u(t).getShaderReference(e,r)},r.program=function(t,e,r,n,i){return u(t).getProgram(e,r,n,i)};var n=t(&quot;./GLError&quot;),i=t(&quot;gl-format-compiler-error&quot;),a=new(&quot;undefined&quot;==typeof WeakMap?t(&quot;weakmap-shim&quot;):WeakMap),o=0;function s(t,e,r,n,i,a,o){this.id=t,this.src=e,this.type=r,this.shader=n,this.count=a,this.programs=[],this.cache=o}function l(t){this.gl=t,this.shaders=[{},{}],this.programs={}}s.prototype.dispose=function(){if(0==--this.count){for(var t=this.cache,e=t.gl,r=this.programs,n=0,i=r.length;n&lt;i;++n){var a=t.programs[r[n]];a&amp;&amp;(delete t.programs[n],e.deleteProgram(a))}e.deleteShader(this.shader),delete t.shaders[this.type===e.FRAGMENT_SHADER|0][this.src]}};var c=l.prototype;function u(t){var e=a.get(t);return e||(e=new l(t),a.set(t,e)),e}c.getShaderReference=function(t,e){var r=this.gl,a=this.shaders[t===r.FRAGMENT_SHADER|0],l=a[e];if(l&amp;&amp;r.isShader(l.shader))l.count+=1;else{var c=function(t,e,r){var a=t.createShader(e);if(t.shaderSource(a,r),t.compileShader(a),!t.getShaderParameter(a,t.COMPILE_STATUS)){var o=t.getShaderInfoLog(a);try{var s=i(o,r,e)}catch(t){throw console.warn(&quot;Failed to format compiler error: &quot;+t),new n(o,&quot;Error compiling shader:\n&quot;+o)}throw new n(o,s.short,s.long)}return a}(r,t,e);l=a[e]=new s(o++,e,t,c,[],1,this)}return l},c.getProgram=function(t,e,r,i){var a=[t.id,e.id,r.join(&quot;:&quot;),i.join(&quot;:&quot;)].join(&quot;@&quot;),o=this.programs[a];return o&amp;&amp;this.gl.isProgram(o)||(this.programs[a]=o=function(t,e,r,i,a){var o=t.createProgram();t.attachShader(o,e),t.attachShader(o,r);for(var s=0;s&lt;i.length;++s)t.bindAttribLocation(o,a[s],i[s]);if(t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS)){var l=t.getProgramInfoLog(o);throw new n(l,&quot;Error linking program: &quot;+l)}return o}(this.gl,t.shader,e.shader,r,i),t.programs.push(a),e.programs.push(a)),o}},{&quot;./GLError&quot;:336,&quot;gl-format-compiler-error&quot;:270,&quot;weakmap-shim&quot;:605}],342:[function(t,e,r){&quot;use strict&quot;;function n(t){this.plot=t,this.enable=[!0,!0,!1,!1],this.width=[1,1,1,1],this.color=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.center=[1/0,1/0]}e.exports=function(t,e){var r=new n(t);return r.update(e),t.addOverlay(r),r};var i=n.prototype;i.update=function(t){t=t||{},this.enable=(t.enable||[!0,!0,!1,!1]).slice(),this.width=(t.width||[1,1,1,1]).slice(),this.color=(t.color||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]).map((function(t){return t.slice()})),this.center=(t.center||[1/0,1/0]).slice(),this.plot.setOverlayDirty()},i.draw=function(){var t=this.enable,e=this.width,r=this.color,n=this.center,i=this.plot,a=i.line,o=i.dataBox,s=i.viewBox;if(a.bind(),o[0]&lt;=n[0]&amp;&amp;n[0]&lt;=o[2]&amp;&amp;o[1]&lt;=n[1]&amp;&amp;n[1]&lt;=o[3]){var l=s[0]+(n[0]-o[0])/(o[2]-o[0])*(s[2]-s[0]),c=s[1]+(n[1]-o[1])/(o[3]-o[1])*(s[3]-s[1]);t[0]&amp;&amp;a.drawLine(l,c,s[0],c,e[0],r[0]),t[1]&amp;&amp;a.drawLine(l,c,l,s[1],e[1],r[1]),t[2]&amp;&amp;a.drawLine(l,c,s[2],c,e[2],r[2]),t[3]&amp;&amp;a.drawLine(l,c,l,s[3],e[3],r[3])}},i.dispose=function(){this.plot.removeOverlay(this)}},{}],343:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],344:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position, color;\nattribute float weight;\n\nuniform mat4 model, view, projection;\nuniform vec3 coordinates[3];\nuniform vec4 colors[3];\nuniform vec2 screenShape;\nuniform float lineWidth;\n\nvarying vec4 fragColor;\n\nvoid main() {\n  vec3 vertexPosition = mix(coordinates[0],\n    mix(coordinates[2], coordinates[1], 0.5 * (position + 1.0)), abs(position));\n\n  vec4 clipPos = projection * view * model * vec4(vertexPosition, 1.0);\n  vec2 clipOffset = (projection * view * model * vec4(color, 0.0)).xy;\n  vec2 delta = weight * clipOffset * screenShape;\n  vec2 lineOffset = normalize(vec2(delta.y, -delta.x)) / screenShape;\n\n  gl_Position   = vec4(clipPos.xy + clipPos.w * 0.5 * lineWidth * lineOffset, clipPos.z, clipPos.w);\n  fragColor     = color.x * colors[0] + color.y * colors[1] + color.z * colors[2];\n}\n&quot;]),o=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n  gl_FragColor = fragColor;\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec3&quot;},{name:&quot;weight&quot;,type:&quot;float&quot;}])}},{&quot;gl-shader&quot;:335,glslify:343}],345:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders/index&quot;);e.exports=function(t,e){var r=[];function o(t,e,n,i,a,o){var s=[t,e,n,0,0,0,1];s[i+3]=1,s[i]=a,r.push.apply(r,s),s[6]=-1,r.push.apply(r,s),s[i]=o,r.push.apply(r,s),r.push.apply(r,s),s[6]=1,r.push.apply(r,s),s[i]=a,r.push.apply(r,s)}o(0,0,0,0,0,1),o(0,0,0,1,0,1),o(0,0,0,2,0,1),o(1,0,0,1,-1,1),o(1,0,0,2,-1,1),o(0,1,0,0,-1,1),o(0,1,0,2,-1,1),o(0,0,1,0,-1,1),o(0,0,1,1,-1,1);var l=n(t,r),c=i(t,[{type:t.FLOAT,buffer:l,size:3,offset:0,stride:28},{type:t.FLOAT,buffer:l,size:3,offset:12,stride:28},{type:t.FLOAT,buffer:l,size:1,offset:24,stride:28}]),u=a(t);u.attributes.position.location=0,u.attributes.color.location=1,u.attributes.weight.location=2;var f=new s(t,l,c,u);return f.update(e),f};var o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n,this.pixelRatio=1,this.bounds=[[-1e3,-1e3,-1e3],[1e3,1e3,1e3]],this.position=[0,0,0],this.lineWidth=[2,2,2],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.enabled=[!0,!0,!0],this.drawSides=[!0,!0,!0],this.axes=null}var l=s.prototype,c=[0,0,0],u=[0,0,0],f=[0,0];l.isTransparent=function(){return!1},l.drawTransparent=function(t){},l.draw=function(t){var e=this.gl,r=this.vao,n=this.shader;r.bind(),n.bind();var i,a=t.model||o,s=t.view||o,l=t.projection||o;this.axes&amp;&amp;(i=this.axes.lastCubeProps.axis);for(var h=c,p=u,d=0;d&lt;3;++d)i&amp;&amp;i[d]&lt;0?(h[d]=this.bounds[0][d],p[d]=this.bounds[1][d]):(h[d]=this.bounds[1][d],p[d]=this.bounds[0][d]);f[0]=e.drawingBufferWidth,f[1]=e.drawingBufferHeight,n.uniforms.model=a,n.uniforms.view=s,n.uniforms.projection=l,n.uniforms.coordinates=[this.position,h,p],n.uniforms.colors=this.colors,n.uniforms.screenShape=f;for(d=0;d&lt;3;++d)n.uniforms.lineWidth=this.lineWidth[d]*this.pixelRatio,this.enabled[d]&amp;&amp;(r.draw(e.TRIANGLES,6,6*d),this.drawSides[d]&amp;&amp;r.draw(e.TRIANGLES,12,18+12*d));r.unbind()},l.update=function(t){t&amp;&amp;(&quot;bounds&quot;in t&amp;&amp;(this.bounds=t.bounds),&quot;position&quot;in t&amp;&amp;(this.position=t.position),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;colors&quot;in t&amp;&amp;(this.colors=t.colors),&quot;enabled&quot;in t&amp;&amp;(this.enabled=t.enabled),&quot;drawSides&quot;in t&amp;&amp;(this.drawSides=t.drawSides))},l.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{&quot;./shaders/index&quot;:344,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],346:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n  float segmentCount = 8.0;\n\n  float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d);\n  vec3 y = v * sin(angle) * length(d);\n  vec3 v3 = x + y;\n\n  normal = normalize(v3);\n\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, tubeScale;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  // Scale the vector magnitude to stay constant with\n  // model &amp; view changes.\n  vec3 normal;\n  vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n  vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * tubePosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  // vec4 m_position  = model * vec4(tubePosition, 1.0);\n  vec4 t_position  = view * tubePosition;\n  gl_Position      = projection * t_position;\n\n  f_color          = color;\n  f_data           = tubePosition.xyz;\n  f_position       = position.xyz;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * opacity;\n}\n&quot;]),o=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n  float segmentCount = 8.0;\n\n  float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d);\n  vec3 y = v * sin(angle) * length(d);\n  vec3 v3 = x + y;\n\n  normal = normalize(v3);\n\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float tubeScale;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  vec3 normal;\n  vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n  vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  gl_Position = projection * view * tubePosition;\n  f_id        = id;\n  f_position  = position.xyz;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;vector&quot;,type:&quot;vec4&quot;}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;},{name:&quot;vector&quot;,type:&quot;vec4&quot;}]}},{glslify:347}],347:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],348:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-vec3&quot;),i=t(&quot;gl-vec4&quot;),a=[&quot;xyz&quot;,&quot;xzy&quot;,&quot;yxz&quot;,&quot;yzx&quot;,&quot;zxy&quot;,&quot;zyx&quot;],o=function(t,e,r,a){for(var o=0,s=0;s&lt;t.length;s++)for(var l=t[s].velocities,c=0;c&lt;l.length;c++)o=Math.max(o,n.length(l[c]));var u=t.map((function(t){return function(t,e,r,a){for(var o=t.points,s=t.velocities,l=t.divergences,c=[],u=[],f=[],h=[],p=[],d=[],g=0,m=0,v=i.create(),y=i.create(),x=0;x&lt;o.length;x++){var b=o[x],_=s[x],w=l[x];0===e&amp;&amp;(w=.05*r),m=n.length(_)/a,v=i.create(),n.copy(v,_),v[3]=w;for(var T=0;T&lt;8;T++)p[T]=[b[0],b[1],b[2],T];if(h.length&gt;0)for(T=0;T&lt;8;T++){var k=(T+1)%8;c.push(h[T],p[T],p[k],p[k],h[k],h[T]),f.push(y,v,v,v,y,y),d.push(g,m,m,m,g,g);var M=c.length;u.push([M-6,M-5,M-4],[M-3,M-2,M-1])}var A=h;h=p,p=A;var S=y;y=v,v=S;var E=g;g=m,m=E}return{positions:c,cells:u,vectors:f,vertexIntensity:d}}(t,r,a,o)})),f=[],h=[],p=[],d=[];for(s=0;s&lt;u.length;s++){var g=u[s],m=f.length;f=f.concat(g.positions),p=p.concat(g.vectors),d=d.concat(g.vertexIntensity);for(c=0;c&lt;g.cells.length;c++){var v=g.cells[c],y=[];h.push(y);for(var x=0;x&lt;v.length;x++)y.push(v[x]+m)}}return{positions:f,cells:h,vectors:p,vertexIntensity:d,colormap:e}},s=function(t,e){var r,n=t.length;for(r=0;r&lt;n;r++){var i=t[r];if(i===e)return r;if(i&gt;e)return r-1}return r},l=function(t,e,r){return t&lt;e?e:t&gt;r?r:t},c=function(t){var e=1/0;t.sort((function(t,e){return t-e}));for(var r=t.length,n=1;n&lt;r;n++){var i=Math.abs(t[n]-t[n-1]);i&lt;e&amp;&amp;(e=i)}return e};e.exports=function(t,e){var r=t.startingPositions,i=t.maxLength||1e3,u=t.tubeSize||1,f=t.absoluteTubeSize,h=t.gridFill||&quot;+x+y+z&quot;,p={};-1!==h.indexOf(&quot;-x&quot;)&amp;&amp;(p.reversedX=!0),-1!==h.indexOf(&quot;-y&quot;)&amp;&amp;(p.reversedY=!0),-1!==h.indexOf(&quot;-z&quot;)&amp;&amp;(p.reversedZ=!0),p.filled=a.indexOf(h.replace(/-/g,&quot;&quot;).replace(/\+/g,&quot;&quot;));var d=t.getVelocity||function(e){return function(t,e,r){var i=e.vectors,a=e.meshgrid,o=t[0],c=t[1],u=t[2],f=a[0].length,h=a[1].length,p=a[2].length,d=s(a[0],o),g=s(a[1],c),m=s(a[2],u),v=d+1,y=g+1,x=m+1;if(d=l(d,0,f-1),v=l(v,0,f-1),g=l(g,0,h-1),y=l(y,0,h-1),m=l(m,0,p-1),x=l(x,0,p-1),d&lt;0||g&lt;0||m&lt;0||v&gt;f-1||y&gt;h-1||x&gt;p-1)return n.create();var b,_,w,T,k,M,A=a[0][d],S=a[0][v],E=a[1][g],C=a[1][y],L=a[2][m],I=(o-A)/(S-A),P=(c-E)/(C-E),z=(u-L)/(a[2][x]-L);switch(isFinite(I)||(I=.5),isFinite(P)||(P=.5),isFinite(z)||(z=.5),r.reversedX&amp;&amp;(d=f-1-d,v=f-1-v),r.reversedY&amp;&amp;(g=h-1-g,y=h-1-y),r.reversedZ&amp;&amp;(m=p-1-m,x=p-1-x),r.filled){case 5:k=m,M=x,w=g*p,T=y*p,b=d*p*h,_=v*p*h;break;case 4:k=m,M=x,b=d*p,_=v*p,w=g*p*f,T=y*p*f;break;case 3:w=g,T=y,k=m*h,M=x*h,b=d*h*p,_=v*h*p;break;case 2:w=g,T=y,b=d*h,_=v*h,k=m*h*f,M=x*h*f;break;case 1:b=d,_=v,k=m*f,M=x*f,w=g*f*p,T=y*f*p;break;default:b=d,_=v,w=g*f,T=y*f,k=m*f*h,M=x*f*h}var O=i[b+w+k],D=i[b+w+M],R=i[b+T+k],F=i[b+T+M],B=i[_+w+k],N=i[_+w+M],j=i[_+T+k],U=i[_+T+M],V=n.create(),q=n.create(),H=n.create(),G=n.create();n.lerp(V,O,B,I),n.lerp(q,D,N,I),n.lerp(H,R,j,I),n.lerp(G,F,U,I);var Y=n.create(),W=n.create();n.lerp(Y,V,H,P),n.lerp(W,q,G,P);var X=n.create();return n.lerp(X,Y,W,z),X}(e,t,p)},g=t.getDivergence||function(t,e){var r=n.create(),i=1e-4;n.add(r,t,[i,0,0]);var a=d(r);n.subtract(a,a,e),n.scale(a,a,1/i),n.add(r,t,[0,i,0]);var o=d(r);n.subtract(o,o,e),n.scale(o,o,1/i),n.add(r,t,[0,0,i]);var s=d(r);return n.subtract(s,s,e),n.scale(s,s,1/i),n.add(r,a,o),n.add(r,r,s),r},m=[],v=e[0][0],y=e[0][1],x=e[0][2],b=e[1][0],_=e[1][1],w=e[1][2],T=function(t){var e=t[0],r=t[1],n=t[2];return!(e&lt;v||e&gt;b||r&lt;y||r&gt;_||n&lt;x||n&gt;w)},k=10*n.distance(e[0],e[1])/i,M=k*k,A=1,S=0,E=r.length;E&gt;1&amp;&amp;(A=function(t){for(var e=[],r=[],n=[],i={},a={},o={},s=t.length,l=0;l&lt;s;l++){var u=t[l],f=u[0],h=u[1],p=u[2];i[f]||(e.push(f),i[f]=!0),a[h]||(r.push(h),a[h]=!0),o[p]||(n.push(p),o[p]=!0)}var d=c(e),g=c(r),m=c(n),v=Math.min(d,g,m);return isFinite(v)?v:1}(r));for(var C=0;C&lt;E;C++){var L=n.create();n.copy(L,r[C]);var I=[L],P=[],z=d(L),O=L;P.push(z);var D=[],R=g(L,z),F=n.length(R);isFinite(F)&amp;&amp;F&gt;S&amp;&amp;(S=F),D.push(F),m.push({points:I,velocities:P,divergences:D});for(var B=0;B&lt;100*i&amp;&amp;I.length&lt;i&amp;&amp;T(L);){B++;var N=n.clone(z),j=n.squaredLength(N);if(0===j)break;if(j&gt;M&amp;&amp;n.scale(N,N,k/Math.sqrt(j)),n.add(N,N,L),z=d(N),n.squaredDistance(O,N)-M&gt;-1e-4*M){I.push(N),O=N,P.push(z);R=g(N,z),F=n.length(R);isFinite(F)&amp;&amp;F&gt;S&amp;&amp;(S=F),D.push(F)}L=N}}var U=o(m,t.colormap,S,A);return f?U.tubeScale=f:(0===S&amp;&amp;(S=1),U.tubeScale=.5*u*A/S),U};var u=t(&quot;./lib/shaders&quot;),f=t(&quot;gl-cone3d&quot;).createMesh;e.exports.createTubeMesh=function(t,e){return f(t,e,{shaders:u,traceType:&quot;streamtube&quot;})}},{&quot;./lib/shaders&quot;:346,&quot;gl-cone3d&quot;:260,&quot;gl-vec3&quot;:377,&quot;gl-vec4&quot;:413}],349:[function(t,e,r){var n=t(&quot;gl-shader&quot;),i=t(&quot;glslify&quot;),a=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute vec3 f;\nattribute vec3 normal;\n\nuniform vec3 objectOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 lightPosition, eyePosition;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  vec3 localCoordinate = vec3(uv.zw, f.x);\n  worldCoordinate = objectOffset + localCoordinate;\n  vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n  vec4 clipPosition = projection * view * worldPosition;\n  gl_Position = clipPosition;\n  kill = f.y;\n  value = f.z;\n  planeCoordinate = uv.xy;\n\n  vColor = texture2D(colormap, vec2(value, value));\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * worldPosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  lightDirection = lightPosition - cameraCoordinate.xyz;\n  eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  surfaceNormal  = normalize((vec4(normal,0) * inverseModel).xyz);\n}\n&quot;]),o=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat beckmannSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness) {\n  return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 lowerBound, upperBound;\nuniform float contourTint;\nuniform vec4 contourColor;\nuniform sampler2D colormap;\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform float vertexColor;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  if (\n    kill &gt; 0.0 ||\n    vColor.a == 0.0 ||\n    outOfRange(clipBounds[0], clipBounds[1], worldCoordinate)\n  ) discard;\n\n  vec3 N = normalize(surfaceNormal);\n  vec3 V = normalize(eyeDirection);\n  vec3 L = normalize(lightDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = max(beckmannSpecular(L, V, N, roughness), 0.);\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  //decide how to interpolate color \u2014 in vertex or in fragment\n  vec4 surfaceColor =\n    step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) +\n    step(.5, vertexColor) * vColor;\n\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\n}\n&quot;]),s=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute float f;\n\nuniform vec3 objectOffset;\nuniform mat3 permutation;\nuniform mat4 model, view, projection;\nuniform float height, zOffset;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  vec3 dataCoordinate = permutation * vec3(uv.xy, height);\n  worldCoordinate = objectOffset + dataCoordinate;\n  vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n\n  vec4 clipPosition = projection * view * worldPosition;\n  clipPosition.z += zOffset;\n\n  gl_Position = clipPosition;\n  value = f + objectOffset.z;\n  kill = -1.0;\n  planeCoordinate = uv.zw;\n\n  vColor = texture2D(colormap, vec2(value, value));\n\n  //Don't do lighting for contours\n  surfaceNormal   = vec3(1,0,0);\n  eyeDirection    = vec3(0,1,0);\n  lightDirection  = vec3(0,0,1);\n}\n&quot;]),l=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec2 shape;\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 surfaceNormal;\n\nvec2 splitFloat(float v) {\n  float vh = 255.0 * v;\n  float upper = floor(vh);\n  float lower = fract(vh);\n  return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\n}\n\nvoid main() {\n  if ((kill &gt; 0.0) ||\n      (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\n\n  vec2 ux = splitFloat(planeCoordinate.x / shape.x);\n  vec2 uy = splitFloat(planeCoordinate.y / shape.y);\n  gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\n}\n&quot;]);r.createShader=function(t){var e=n(t,a,o,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createPickShader=function(t){var e=n(t,a,l,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createContourShader=function(t){var e=n(t,s,o,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;float&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e},r.createPickContourShader=function(t){var e=n(t,s,l,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;float&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e}},{&quot;gl-shader&quot;:335,glslify:350}],350:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],351:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=y(e),n=b(e),s=x(e),l=_(e),c=i(e),u=a(e,[{buffer:c,size:4,stride:40,offset:0},{buffer:c,size:3,stride:40,offset:16},{buffer:c,size:3,stride:40,offset:28}]),f=i(e),h=a(e,[{buffer:f,size:4,stride:20,offset:0},{buffer:f,size:1,stride:20,offset:16}]),p=i(e),d=a(e,[{buffer:p,size:2,type:e.FLOAT}]),g=o(e,1,256,e.RGBA,e.UNSIGNED_BYTE);g.minFilter=e.LINEAR,g.magFilter=e.LINEAR;var m=new A(e,[0,0],[[0,0,0],[0,0,0]],r,n,c,u,g,s,l,f,h,p,d,[0,0,0]),v={levels:[[],[],[]]};for(var w in t)v[w]=t[w];return v.colormap=v.colormap||&quot;jet&quot;,m.update(v),m};var n=t(&quot;bit-twiddle&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;typedarray-pool&quot;),l=t(&quot;colormap&quot;),c=t(&quot;ndarray-ops&quot;),u=t(&quot;ndarray-pack&quot;),f=t(&quot;ndarray&quot;),h=t(&quot;surface-nets&quot;),p=t(&quot;gl-mat4/multiply&quot;),d=t(&quot;gl-mat4/invert&quot;),g=t(&quot;binary-search-bounds&quot;),m=t(&quot;ndarray-gradient&quot;),v=t(&quot;./lib/shaders&quot;),y=v.createShader,x=v.createContourShader,b=v.createPickShader,_=v.createPickContourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],k=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];function M(t,e,r,n,i){this.position=t,this.index=e,this.uv=r,this.level=n,this.dataCoordinate=i}!function(){for(var t=0;t&lt;3;++t){var e=k[t],r=(t+2)%3;e[(t+1)%3+0]=1,e[r+3]=1,e[t+6]=1}}();function A(t,e,r,n,i,a,o,l,c,u,h,p,d,g,m){this.gl=t,this.shape=e,this.bounds=r,this.objectOffset=m,this.intensityBounds=[],this._shader=n,this._pickShader=i,this._coordinateBuffer=a,this._vao=o,this._colorMap=l,this._contourShader=c,this._contourPickShader=u,this._contourBuffer=h,this._contourVAO=p,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new M([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=d,this._dynamicVAO=g,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var S=A.prototype;S.genColormap=function(t,e){var r=!1,n=u([l({colormap:t,nshades:256,format:&quot;rgba&quot;}).map((function(t,n){var i=e?function(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;r&lt;e.length;++r){if(e.length&lt;2)return 1;if(e[r][0]===t)return e[r][1];if(e[r][0]&gt;t&amp;&amp;r&gt;0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}(n/255,e):t[3];return i&lt;1&amp;&amp;(r=!0),[t[0],t[1],t[2],255*i]}))]);return c.divseq(n,255),this.hasAlphaScale=r,n},S.isTransparent=function(){return this.opacity&lt;1||this.hasAlphaScale},S.isOpaque=function(){return!this.isTransparent()},S.pickSlots=1,S.setPickBase=function(t){this.pickId=t};var E=[0,0,0],C={showSurface:!1,showContour:!1,projections:[w.slice(),w.slice(),w.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function L(t,e){var r,n,i,a=e.axes&amp;&amp;e.axes.lastCubeProps.axis||E,o=e.showSurface,s=e.showContour;for(r=0;r&lt;3;++r)for(o=o||e.surfaceProject[r],n=0;n&lt;3;++n)s=s||e.contourProject[r][n];for(r=0;r&lt;3;++r){var l=C.projections[r];for(n=0;n&lt;16;++n)l[n]=0;for(n=0;n&lt;4;++n)l[5*n]=1;l[5*r]=0,l[12+r]=e.axesBounds[+(a[r]&gt;0)][r],p(l,t.model,l);var c=C.clipBounds[r];for(i=0;i&lt;2;++i)for(n=0;n&lt;3;++n)c[i][n]=t.clipBounds[i][n];c[0][r]=-1e8,c[1][r]=1e8}return C.showSurface=o,C.showContour=s,C}var I={model:w,view:w,projection:w,inverseModel:w.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},P=w.slice(),z=[1,0,0,0,1,0,0,0,1];function O(t,e){t=t||{};var r=this.gl;r.disable(r.CULL_FACE),this._colorMap.bind(0);var n=I;n.model=t.model||w,n.view=t.view||w,n.projection=t.projection||w,n.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],n.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],n.objectOffset=this.objectOffset,n.contourColor=this.contourColor[0],n.inverseModel=d(n.inverseModel,n.model);for(var i=0;i&lt;2;++i)for(var a=n.clipBounds[i],o=0;o&lt;3;++o)a[o]=Math.min(Math.max(this.clipBounds[i][o],-1e8),1e8);n.kambient=this.ambientLight,n.kdiffuse=this.diffuseLight,n.kspecular=this.specularLight,n.roughness=this.roughness,n.fresnel=this.fresnel,n.opacity=this.opacity,n.height=0,n.permutation=z,n.vertexColor=this.vertexColor;var s=P;for(p(s,n.view,n.model),p(s,n.projection,s),d(s,s),i=0;i&lt;3;++i)n.eyePosition[i]=s[12+i]/s[15];var l=s[15];for(i=0;i&lt;3;++i)l+=this.lightPosition[i]*s[4*i+3];for(i=0;i&lt;3;++i){var c=s[12+i];for(o=0;o&lt;3;++o)c+=s[4*o+i]*this.lightPosition[o];n.lightPosition[i]=c/l}var u=L(n,this);if(u.showSurface){for(this._shader.bind(),this._shader.uniforms=n,this._vao.bind(),this.showSurface&amp;&amp;this._vertexCount&amp;&amp;this._vao.draw(r.TRIANGLES,this._vertexCount),i=0;i&lt;3;++i)this.surfaceProject[i]&amp;&amp;this.vertexCount&amp;&amp;(this._shader.uniforms.model=u.projections[i],this._shader.uniforms.clipBounds=u.clipBounds[i],this._vao.draw(r.TRIANGLES,this._vertexCount));this._vao.unbind()}if(u.showContour){var f=this._contourShader;n.kambient=1,n.kdiffuse=0,n.kspecular=0,n.opacity=1,f.bind(),f.uniforms=n;var h=this._contourVAO;for(h.bind(),i=0;i&lt;3;++i)for(f.uniforms.permutation=k[i],r.lineWidth(this.contourWidth[i]*this.pixelRatio),o=0;o&lt;this.contourLevels[i].length;++o)o===this.highlightLevel[i]?(f.uniforms.contourColor=this.highlightColor[i],f.uniforms.contourTint=this.highlightTint[i]):0!==o&amp;&amp;o-1!==this.highlightLevel[i]||(f.uniforms.contourColor=this.contourColor[i],f.uniforms.contourTint=this.contourTint[i]),this._contourCounts[i][o]&amp;&amp;(f.uniforms.height=this.contourLevels[i][o],h.draw(r.LINES,this._contourCounts[i][o],this._contourOffsets[i][o]));for(i=0;i&lt;3;++i)for(f.uniforms.model=u.projections[i],f.uniforms.clipBounds=u.clipBounds[i],o=0;o&lt;3;++o)if(this.contourProject[i][o]){f.uniforms.permutation=k[o],r.lineWidth(this.contourWidth[o]*this.pixelRatio);for(var g=0;g&lt;this.contourLevels[o].length;++g)g===this.highlightLevel[o]?(f.uniforms.contourColor=this.highlightColor[o],f.uniforms.contourTint=this.highlightTint[o]):0!==g&amp;&amp;g-1!==this.highlightLevel[o]||(f.uniforms.contourColor=this.contourColor[o],f.uniforms.contourTint=this.contourTint[o]),this._contourCounts[o][g]&amp;&amp;(f.uniforms.height=this.contourLevels[o][g],h.draw(r.LINES,this._contourCounts[o][g],this._contourOffsets[o][g]))}for(h.unbind(),(h=this._dynamicVAO).bind(),i=0;i&lt;3;++i)if(0!==this._dynamicCounts[i])for(f.uniforms.model=n.model,f.uniforms.clipBounds=n.clipBounds,f.uniforms.permutation=k[i],r.lineWidth(this.dynamicWidth[i]*this.pixelRatio),f.uniforms.contourColor=this.dynamicColor[i],f.uniforms.contourTint=this.dynamicTint[i],f.uniforms.height=this.dynamicLevel[i],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]),o=0;o&lt;3;++o)this.contourProject[o][i]&amp;&amp;(f.uniforms.model=u.projections[o],f.uniforms.clipBounds=u.clipBounds[o],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]));h.unbind()}}S.draw=function(t){return O.call(this,t,!1)},S.drawTransparent=function(t){return O.call(this,t,!0)};var D={model:w,view:w,projection:w,inverseModel:w,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,objectOffset:[0,0,0],permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};function R(t,e){return Array.isArray(t)?[e(t[0]),e(t[1]),e(t[2])]:[e(t),e(t),e(t)]}function F(t){return Array.isArray(t)?3===t.length?[t[0],t[1],t[2],1]:[t[0],t[1],t[2],t[3]]:[0,0,0,1]}function B(t){if(Array.isArray(t)){if(Array.isArray(t))return[F(t[0]),F(t[1]),F(t[2])];var e=F(t);return[e.slice(),e.slice(),e.slice()]}}S.drawPick=function(t){t=t||{};var e=this.gl;e.disable(e.CULL_FACE);var r=D;r.model=t.model||w,r.view=t.view||w,r.projection=t.projection||w,r.shape=this._field[2].shape,r.pickId=this.pickId/255,r.lowerBound=this.bounds[0],r.upperBound=this.bounds[1],r.objectOffset=this.objectOffset,r.permutation=z;for(var n=0;n&lt;2;++n)for(var i=r.clipBounds[n],a=0;a&lt;3;++a)i[a]=Math.min(Math.max(this.clipBounds[n][a],-1e8),1e8);var o=L(r,this);if(o.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=r,this._vao.bind(),this._vao.draw(e.TRIANGLES,this._vertexCount),n=0;n&lt;3;++n)this.surfaceProject[n]&amp;&amp;(this._pickShader.uniforms.model=o.projections[n],this._pickShader.uniforms.clipBounds=o.clipBounds[n],this._vao.draw(e.TRIANGLES,this._vertexCount));this._vao.unbind()}if(o.showContour){var s=this._contourPickShader;s.bind(),s.uniforms=r;var l=this._contourVAO;for(l.bind(),a=0;a&lt;3;++a)for(e.lineWidth(this.contourWidth[a]*this.pixelRatio),s.uniforms.permutation=k[a],n=0;n&lt;this.contourLevels[a].length;++n)this._contourCounts[a][n]&amp;&amp;(s.uniforms.height=this.contourLevels[a][n],l.draw(e.LINES,this._contourCounts[a][n],this._contourOffsets[a][n]));for(n=0;n&lt;3;++n)for(s.uniforms.model=o.projections[n],s.uniforms.clipBounds=o.clipBounds[n],a=0;a&lt;3;++a)if(this.contourProject[n][a]){s.uniforms.permutation=k[a],e.lineWidth(this.contourWidth[a]*this.pixelRatio);for(var c=0;c&lt;this.contourLevels[a].length;++c)this._contourCounts[a][c]&amp;&amp;(s.uniforms.height=this.contourLevels[a][c],l.draw(e.LINES,this._contourCounts[a][c],this._contourOffsets[a][c]))}l.unbind()}},S.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=this._field[2].shape,r=this._pickResult,n=e[0]*(t.value[0]+(t.value[2]&gt;&gt;4)/16)/255,i=Math.floor(n),a=n-i,o=e[1]*(t.value[1]+(15&amp;t.value[2])/16)/255,s=Math.floor(o),l=o-s;i+=1,s+=1;var c=r.position;c[0]=c[1]=c[2]=0;for(var u=0;u&lt;2;++u)for(var f=u?a:1-a,h=0;h&lt;2;++h)for(var p=i+u,d=s+h,m=f*(h?l:1-l),v=0;v&lt;3;++v)c[v]+=this._field[v].get(p,d)*m;for(var y=this._pickResult.level,x=0;x&lt;3;++x)if(y[x]=g.le(this.contourLevels[x],c[x]),y[x]&lt;0)this.contourLevels[x].length&gt;0&amp;&amp;(y[x]=0);else if(y[x]&lt;this.contourLevels[x].length-1){var b=this.contourLevels[x][y[x]],_=this.contourLevels[x][y[x]+1];Math.abs(b-c[x])&gt;Math.abs(_-c[x])&amp;&amp;(y[x]+=1)}for(r.index[0]=a&lt;.5?i:i+1,r.index[1]=l&lt;.5?s:s+1,r.uv[0]=n/e[0],r.uv[1]=o/e[1],v=0;v&lt;3;++v)r.dataCoordinate[v]=this._field[v].get(r.index[0],r.index[1]);return r},S.padField=function(t,e){var r=e.shape.slice(),n=t.shape.slice();c.assign(t.lo(1,1).hi(r[0],r[1]),e),c.assign(t.lo(1).hi(r[0],1),e.hi(r[0],1)),c.assign(t.lo(1,n[1]-1).hi(r[0],1),e.lo(0,r[1]-1).hi(r[0],1)),c.assign(t.lo(0,1).hi(1,r[1]),e.hi(1)),c.assign(t.lo(n[0]-1,1).hi(1,r[1]),e.lo(r[0]-1)),t.set(0,0,e.get(0,0)),t.set(0,n[1]-1,e.get(0,r[1]-1)),t.set(n[0]-1,0,e.get(r[0]-1,0)),t.set(n[0]-1,n[1]-1,e.get(r[0]-1,r[1]-1))},S.update=function(t){t=t||{},this.objectOffset=t.objectOffset||this.objectOffset,this.dirty=!0,&quot;contourWidth&quot;in t&amp;&amp;(this.contourWidth=R(t.contourWidth,Number)),&quot;showContour&quot;in t&amp;&amp;(this.showContour=R(t.showContour,Boolean)),&quot;showSurface&quot;in t&amp;&amp;(this.showSurface=!!t.showSurface),&quot;contourTint&quot;in t&amp;&amp;(this.contourTint=R(t.contourTint,Boolean)),&quot;contourColor&quot;in t&amp;&amp;(this.contourColor=B(t.contourColor)),&quot;contourProject&quot;in t&amp;&amp;(this.contourProject=R(t.contourProject,(function(t){return R(t,Boolean)}))),&quot;surfaceProject&quot;in t&amp;&amp;(this.surfaceProject=t.surfaceProject),&quot;dynamicColor&quot;in t&amp;&amp;(this.dynamicColor=B(t.dynamicColor)),&quot;dynamicTint&quot;in t&amp;&amp;(this.dynamicTint=R(t.dynamicTint,Number)),&quot;dynamicWidth&quot;in t&amp;&amp;(this.dynamicWidth=R(t.dynamicWidth,Number)),&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity),&quot;opacityscale&quot;in t&amp;&amp;(this.opacityscale=t.opacityscale),&quot;colorBounds&quot;in t&amp;&amp;(this.colorBounds=t.colorBounds),&quot;vertexColor&quot;in t&amp;&amp;(this.vertexColor=t.vertexColor?1:0),&quot;colormap&quot;in t&amp;&amp;this._colorMap.setPixels(this.genColormap(t.colormap,this.opacityscale));var e=t.field||t.coords&amp;&amp;t.coords[2]||null,r=!1;if(e||(e=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),&quot;field&quot;in t||&quot;coords&quot;in t){var i=(e.shape[0]+2)*(e.shape[1]+2);i&gt;this._field[2].data.length&amp;&amp;(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(n.nextPow2(i))),this._field[2]=f(this._field[2].data,[e.shape[0]+2,e.shape[1]+2]),this.padField(this._field[2],e),this.shape=e.shape.slice();for(var a=this.shape,o=0;o&lt;2;++o)this._field[2].size&gt;this._field[o].data.length&amp;&amp;(s.freeFloat(this._field[o].data),this._field[o].data=s.mallocFloat(this._field[2].size)),this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2]);if(t.coords){var l=t.coords;if(!Array.isArray(l)||3!==l.length)throw new Error(&quot;gl-surface: invalid coordinates for x/y&quot;);for(o=0;o&lt;2;++o){var c=l[o];for(v=0;v&lt;2;++v)if(c.shape[v]!==a[v])throw new Error(&quot;gl-surface: coords have incorrect shape&quot;);this.padField(this._field[o],c)}}else if(t.ticks){var u=t.ticks;if(!Array.isArray(u)||2!==u.length)throw new Error(&quot;gl-surface: invalid ticks&quot;);for(o=0;o&lt;2;++o){var p=u[o];if((Array.isArray(p)||p.length)&amp;&amp;(p=f(p)),p.shape[0]!==a[o])throw new Error(&quot;gl-surface: invalid tick length&quot;);var d=f(p.data,a);d.stride[o]=p.stride[0],d.stride[1^o]=0,this.padField(this._field[o],d)}}else{for(o=0;o&lt;2;++o){var g=[0,0];g[o]=1,this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2],g,0)}this._field[0].set(0,0,0);for(var v=0;v&lt;a[0];++v)this._field[0].set(v+1,0,v);for(this._field[0].set(a[0]+1,0,a[0]-1),this._field[1].set(0,0,0),v=0;v&lt;a[1];++v)this._field[1].set(0,v+1,v);this._field[1].set(0,a[1]+1,a[1]-1)}var y=this._field,x=f(s.mallocFloat(3*y[2].size*2),[3,a[0]+2,a[1]+2,2]);for(o=0;o&lt;3;++o)m(x.pick(o),y[o],&quot;mirror&quot;);var b=f(s.mallocFloat(3*y[2].size),[a[0]+2,a[1]+2,3]);for(o=0;o&lt;a[0]+2;++o)for(v=0;v&lt;a[1]+2;++v){var _=x.get(0,o,v,0),w=x.get(0,o,v,1),k=x.get(1,o,v,0),M=x.get(1,o,v,1),A=x.get(2,o,v,0),S=x.get(2,o,v,1),E=k*S-M*A,C=A*w-S*_,L=_*M-w*k,I=Math.sqrt(E*E+C*C+L*L);I&lt;1e-8?(I=Math.max(Math.abs(E),Math.abs(C),Math.abs(L)))&lt;1e-8?(L=1,C=E=0,I=1):I=1/I:I=1/Math.sqrt(I),b.set(o,v,0,E*I),b.set(o,v,1,C*I),b.set(o,v,2,L*I)}s.free(x.data);var P=[1/0,1/0,1/0],z=[-1/0,-1/0,-1/0],O=1/0,D=-1/0,F=(a[0]-1)*(a[1]-1)*6,N=s.mallocFloat(n.nextPow2(10*F)),j=0,U=0;for(o=0;o&lt;a[0]-1;++o)t:for(v=0;v&lt;a[1]-1;++v){for(var V=0;V&lt;2;++V)for(var q=0;q&lt;2;++q)for(var H=0;H&lt;3;++H){var G=this._field[H].get(1+o+V,1+v+q);if(isNaN(G)||!isFinite(G))continue t}for(H=0;H&lt;6;++H){var Y=o+T[H][0],W=v+T[H][1],X=this._field[0].get(Y+1,W+1),Z=this._field[1].get(Y+1,W+1);G=this._field[2].get(Y+1,W+1),E=b.get(Y+1,W+1,0),C=b.get(Y+1,W+1,1),L=b.get(Y+1,W+1,2),t.intensity&amp;&amp;(J=t.intensity.get(Y,W));var J=t.intensity?t.intensity.get(Y,W):G+this.objectOffset[2];N[j++]=Y,N[j++]=W,N[j++]=X,N[j++]=Z,N[j++]=G,N[j++]=0,N[j++]=J,N[j++]=E,N[j++]=C,N[j++]=L,P[0]=Math.min(P[0],X+this.objectOffset[0]),P[1]=Math.min(P[1],Z+this.objectOffset[1]),P[2]=Math.min(P[2],G+this.objectOffset[2]),O=Math.min(O,J),z[0]=Math.max(z[0],X+this.objectOffset[0]),z[1]=Math.max(z[1],Z+this.objectOffset[1]),z[2]=Math.max(z[2],G+this.objectOffset[2]),D=Math.max(D,J),U+=1}}for(t.intensityBounds&amp;&amp;(O=+t.intensityBounds[0],D=+t.intensityBounds[1]),o=6;o&lt;j;o+=10)N[o]=(N[o]-O)/(D-O);this._vertexCount=U,this._coordinateBuffer.update(N.subarray(0,j)),s.freeFloat(N),s.free(b.data),this.bounds=[P,z],this.intensity=t.intensity||this._field[2],this.intensityBounds[0]===O&amp;&amp;this.intensityBounds[1]===D||(r=!0),this.intensityBounds=[O,D]}if(&quot;levels&quot;in t){var K=t.levels;for(K=Array.isArray(K[0])?K.slice():[[],[],K],o=0;o&lt;3;++o)K[o]=K[o].slice(),K[o].sort((function(t,e){return t-e}));for(o=0;o&lt;3;++o)for(v=0;v&lt;K[o].length;++v)K[o][v]-=this.objectOffset[o];t:for(o=0;o&lt;3;++o){if(K[o].length!==this.contourLevels[o].length){r=!0;break}for(v=0;v&lt;K[o].length;++v)if(K[o][v]!==this.contourLevels[o][v]){r=!0;break t}}this.contourLevels=K}if(r){y=this._field,a=this.shape;for(var Q=[],$=0;$&lt;3;++$){var tt=this.contourLevels[$],et=[],rt=[],nt=[0,0,0];for(o=0;o&lt;tt.length;++o){var it=h(this._field[$],tt[o]);et.push(Q.length/5|0),U=0;t:for(v=0;v&lt;it.cells.length;++v){var at=it.cells[v];for(H=0;H&lt;2;++H){var ot=it.positions[at[H]],st=ot[0],lt=0|Math.floor(st),ct=st-lt,ut=ot[1],ft=0|Math.floor(ut),ht=ut-ft,pt=!1;e:for(var dt=0;dt&lt;3;++dt){nt[dt]=0;var gt=($+dt+1)%3;for(V=0;V&lt;2;++V){var mt=V?ct:1-ct;for(Y=0|Math.min(Math.max(lt+V,0),a[0]),q=0;q&lt;2;++q){var vt=q?ht:1-ht;if(W=0|Math.min(Math.max(ft+q,0),a[1]),G=dt&lt;2?this._field[gt].get(Y,W):(this.intensity.get(Y,W)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(G)||isNaN(G)){pt=!0;break e}var yt=mt*vt;nt[dt]+=yt*G}}}if(pt){if(H&gt;0){for(var xt=0;xt&lt;5;++xt)Q.pop();U-=1}continue t}Q.push(nt[0],nt[1],ot[0],ot[1],nt[2]),U+=1}}rt.push(U)}this._contourOffsets[$]=et,this._contourCounts[$]=rt}var bt=s.mallocFloat(Q.length);for(o=0;o&lt;Q.length;++o)bt[o]=Q[o];this._contourBuffer.update(bt),s.freeFloat(bt)}},S.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var t=0;t&lt;3;++t)s.freeFloat(this._field[t].data)},S.highlight=function(t){var e,r;if(!t)return this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],void(this.highlightLevel=[-1,-1,-1]);for(e=0;e&lt;3;++e)this.enableHighlight[e]?this.highlightLevel[e]=t.level[e]:this.highlightLevel[e]=-1;for(r=this.snapToData?t.dataCoordinate:t.position,e=0;e&lt;3;++e)r[e]-=this.objectOffset[e];if(this.enableDynamic[0]&amp;&amp;r[0]!==this.dynamicLevel[0]||this.enableDynamic[1]&amp;&amp;r[1]!==this.dynamicLevel[1]||this.enableDynamic[2]&amp;&amp;r[2]!==this.dynamicLevel[2]){for(var n=0,i=this.shape,a=s.mallocFloat(12*i[0]*i[1]),o=0;o&lt;3;++o)if(this.enableDynamic[o]){this.dynamicLevel[o]=r[o];var l=(o+1)%3,c=(o+2)%3,u=this._field[o],f=this._field[l],p=this._field[c],d=h(u,r[o]),g=d.cells,m=d.positions;for(this._dynamicOffsets[o]=n,e=0;e&lt;g.length;++e)for(var v=g[e],y=0;y&lt;2;++y){var x=m[v[y]],b=+x[0],_=0|b,w=0|Math.min(_+1,i[0]),T=b-_,k=1-T,M=+x[1],A=0|M,S=0|Math.min(A+1,i[1]),E=M-A,C=1-E,L=k*C,I=k*E,P=T*C,z=T*E,O=L*f.get(_,A)+I*f.get(_,S)+P*f.get(w,A)+z*f.get(w,S),D=L*p.get(_,A)+I*p.get(_,S)+P*p.get(w,A)+z*p.get(w,S);if(isNaN(O)||isNaN(D)){y&amp;&amp;(n-=1);break}a[2*n+0]=O,a[2*n+1]=D,n+=1}this._dynamicCounts[o]=n-this._dynamicOffsets[o]}else this.dynamicLevel[o]=NaN,this._dynamicCounts[o]=0;this._dynamicBuffer.update(a.subarray(0,2*n)),s.freeFloat(a)}}},{&quot;./lib/shaders&quot;:349,&quot;binary-search-bounds&quot;:96,&quot;bit-twiddle&quot;:97,colormap:131,&quot;gl-buffer&quot;:259,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/multiply&quot;:295,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495,&quot;ndarray-gradient&quot;:488,&quot;ndarray-ops&quot;:490,&quot;ndarray-pack&quot;:491,&quot;surface-nets&quot;:570,&quot;typedarray-pool&quot;:595}],352:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font&quot;),i=t(&quot;pick-by-alias&quot;),a=t(&quot;regl&quot;),o=t(&quot;gl-util/context&quot;),s=t(&quot;es6-weak-map&quot;),l=t(&quot;color-normalize&quot;),c=t(&quot;font-atlas&quot;),u=t(&quot;typedarray-pool&quot;),f=t(&quot;parse-rect&quot;),h=t(&quot;is-plain-obj&quot;),p=t(&quot;parse-unit&quot;),d=t(&quot;to-px&quot;),g=t(&quot;detect-kerning&quot;),m=t(&quot;object-assign&quot;),v=t(&quot;font-measure&quot;),y=t(&quot;flatten-vertex-data&quot;),x=t(&quot;bit-twiddle&quot;).nextPow2,b=new s,_=!1;if(document.body){var w=document.body.appendChild(document.createElement(&quot;div&quot;));w.style.font=&quot;italic small-caps bold condensed 16px/2 cursive&quot;,getComputedStyle(w).fontStretch&amp;&amp;(_=!0),document.body.removeChild(w)}var T=function(t){!function(t){return&quot;function&quot;==typeof t&amp;&amp;t._gl&amp;&amp;t.prop&amp;&amp;t.texture&amp;&amp;t.buffer}(t)?this.gl=o(t):(t={regl:t},this.gl=t.regl._gl),this.shader=b.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||a({gl:this.gl}),this.charBuffer=this.regl.buffer({type:&quot;uint8&quot;,usage:&quot;stream&quot;}),this.sizeBuffer=this.regl.buffer({type:&quot;float&quot;,usage:&quot;stream&quot;}),this.shader||(this.shader=this.createShader(),b.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(t)?t:{})};T.prototype.createShader=function(){var t=this.regl,e=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},stencil:{enable:!1},depth:{enable:!1},count:t.prop(&quot;count&quot;),offset:t.prop(&quot;offset&quot;),attributes:{charOffset:{offset:4,stride:8,buffer:t.this(&quot;sizeBuffer&quot;)},width:{offset:0,stride:8,buffer:t.this(&quot;sizeBuffer&quot;)},char:t.this(&quot;charBuffer&quot;),position:t.this(&quot;position&quot;)},uniforms:{atlasSize:function(t,e){return[e.atlas.width,e.atlas.height]},atlasDim:function(t,e){return[e.atlas.cols,e.atlas.rows]},atlas:function(t,e){return e.atlas.texture},charStep:function(t,e){return e.atlas.step},em:function(t,e){return e.atlas.em},color:t.prop(&quot;color&quot;),opacity:t.prop(&quot;opacity&quot;),viewport:t.this(&quot;viewportArray&quot;),scale:t.this(&quot;scale&quot;),align:t.prop(&quot;align&quot;),baseline:t.prop(&quot;baseline&quot;),translate:t.this(&quot;translate&quot;),positionOffset:t.prop(&quot;positionOffset&quot;)},primitive:&quot;points&quot;,viewport:t.this(&quot;viewport&quot;),vert:&quot;\n\t\t\tprecision highp float;\n\t\t\tattribute float width, charOffset, char;\n\t\t\tattribute vec2 position;\n\t\t\tuniform float fontSize, charStep, em, align, baseline;\n\t\t\tuniform vec4 viewport;\n\t\t\tuniform vec4 color;\n\t\t\tuniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvoid main () {\n\t\t\t\t&quot;+(T.normalViewport?&quot;&quot;:&quot;vec2 positionOffset = vec2(positionOffset.x,- positionOffset.y);&quot;)+&quot;\n\n\t\t\t\tvec2 offset = floor(em * (vec2(align + charOffset, baseline)\n\t\t\t\t\t+ positionOffset))\n\t\t\t\t\t/ (viewport.zw * scale.xy);\n\n\t\t\t\tvec2 position = (position + translate) * scale;\n\t\t\t\tposition += offset * scale;\n\n\t\t\t\t&quot;+(T.normalViewport?&quot;position.y = 1. - position.y;&quot;:&quot;&quot;)+&quot;\n\n\t\t\t\tcharCoord = position * viewport.zw + viewport.xy;\n\n\t\t\t\tgl_Position = vec4(position * 2. - 1., 0, 1);\n\n\t\t\t\tgl_PointSize = charStep;\n\n\t\t\t\tcharId.x = mod(char, atlasDim.x);\n\t\t\t\tcharId.y = floor(char / atlasDim.x);\n\n\t\t\t\tcharWidth = width * em;\n\n\t\t\t\tfontColor = color / 255.;\n\t\t\t}&quot;,frag:&quot;\n\t\t\tprecision highp float;\n\t\t\tuniform sampler2D atlas;\n\t\t\tuniform float fontSize, charStep, opacity;\n\t\t\tuniform vec2 atlasSize;\n\t\t\tuniform vec4 viewport;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\n\t\t\tfloat lightness(vec4 color) {\n\t\t\t\treturn color.r * 0.299 + color.g * 0.587 + color.b * 0.114;\n\t\t\t}\n\n\t\t\tvoid main () {\n\t\t\t\tvec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;\n\t\t\t\tfloat halfCharStep = floor(charStep * .5 + .5);\n\n\t\t\t\t// invert y and shift by 1px (FF expecially needs that)\n\t\t\t\tuv.y = charStep - uv.y;\n\n\t\t\t\t// ignore points outside of character bounding box\n\t\t\t\tfloat halfCharWidth = ceil(charWidth * .5);\n\t\t\t\tif (floor(uv.x) &gt; halfCharStep + halfCharWidth ||\n\t\t\t\t\tfloor(uv.x) &lt; halfCharStep - halfCharWidth) return;\n\n\t\t\t\tuv += charId * charStep;\n\t\t\t\tuv = uv / atlasSize;\n\n\t\t\t\tvec4 color = fontColor;\n\t\t\t\tvec4 mask = texture2D(atlas, uv);\n\n\t\t\t\tfloat maskY = lightness(mask);\n\t\t\t\t// float colorY = lightness(color);\n\t\t\t\tcolor.a *= maskY;\n\t\t\t\tcolor.a *= opacity;\n\n\t\t\t\t// color.a += .1;\n\n\t\t\t\t// antialiasing, see yiq color space y-channel formula\n\t\t\t\t// color.rgb += (1. - color.rgb) * (1. - mask.rgb);\n\n\t\t\t\tgl_FragColor = color;\n\t\t\t}&quot;});return{regl:t,draw:e,atlas:{}}},T.prototype.update=function(t){var e=this;if(&quot;string&quot;==typeof t)t={text:t};else if(!t)return;null!=(t=i(t,{position:&quot;position positions coord coords coordinates&quot;,font:&quot;font fontFace fontface typeface cssFont css-font family fontFamily&quot;,fontSize:&quot;fontSize fontsize size font-size&quot;,text:&quot;text texts chars characters value values symbols&quot;,align:&quot;align alignment textAlign textbaseline&quot;,baseline:&quot;baseline textBaseline textbaseline&quot;,direction:&quot;dir direction textDirection&quot;,color:&quot;color colour fill fill-color fillColor textColor textcolor&quot;,kerning:&quot;kerning kern&quot;,range:&quot;range dataBox&quot;,viewport:&quot;vp viewport viewBox viewbox viewPort&quot;,opacity:&quot;opacity alpha transparency visible visibility opaque&quot;,offset:&quot;offset positionOffset padding shift indent indentation&quot;},!0)).opacity&amp;&amp;(Array.isArray(t.opacity)?this.opacity=t.opacity.map((function(t){return parseFloat(t)})):this.opacity=parseFloat(t.opacity)),null!=t.viewport&amp;&amp;(this.viewport=f(t.viewport),T.normalViewport&amp;&amp;(this.viewport.y=this.canvas.height-this.viewport.y-this.viewport.height),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null==this.viewport&amp;&amp;(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null!=t.kerning&amp;&amp;(this.kerning=t.kerning),null!=t.offset&amp;&amp;(&quot;number&quot;==typeof t.offset&amp;&amp;(t.offset=[t.offset,0]),this.positionOffset=y(t.offset)),t.direction&amp;&amp;(this.direction=t.direction),t.range&amp;&amp;(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&amp;&amp;(this.scale=t.scale),t.translate&amp;&amp;(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),this.font.length||t.font||(t.font=T.baseFontSize+&quot;px sans-serif&quot;);var r,a=!1,o=!1;if(t.font&amp;&amp;(Array.isArray(t.font)?t.font:[t.font]).forEach((function(t,r){if(&quot;string&quot;==typeof t)try{t=n.parse(t)}catch(e){t=n.parse(T.baseFontSize+&quot;px &quot;+t)}else t=n.parse(n.stringify(t));var i=n.stringify({size:T.baseFontSize,family:t.family,stretch:_?t.stretch:void 0,variant:t.variant,weight:t.weight,style:t.style}),s=p(t.size),l=Math.round(s[0]*d(s[1]));if(l!==e.fontSize[r]&amp;&amp;(o=!0,e.fontSize[r]=l),!(e.font[r]&amp;&amp;i==e.font[r].baseString||(a=!0,e.font[r]=T.fonts[i],e.font[r]))){var c=t.family.join(&quot;, &quot;),u=[t.style];t.style!=t.variant&amp;&amp;u.push(t.variant),t.variant!=t.weight&amp;&amp;u.push(t.weight),_&amp;&amp;t.weight!=t.stretch&amp;&amp;u.push(t.stretch),e.font[r]={baseString:i,family:c,weight:t.weight,stretch:t.stretch,style:t.style,variant:t.variant,width:{},kerning:{},metrics:v(c,{origin:&quot;top&quot;,fontSize:T.baseFontSize,fontStyle:u.join(&quot; &quot;)})},T.fonts[i]=e.font[r]}})),(a||o)&amp;&amp;this.font.forEach((function(r,i){var a=n.stringify({size:e.fontSize[i],family:r.family,stretch:_?r.stretch:void 0,variant:r.variant,weight:r.weight,style:r.style});if(e.fontAtlas[i]=e.shader.atlas[a],!e.fontAtlas[i]){var o=r.metrics;e.shader.atlas[a]=e.fontAtlas[i]={fontString:a,step:2*Math.ceil(e.fontSize[i]*o.bottom*.5),em:e.fontSize[i],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:e.regl.texture()}}null==t.text&amp;&amp;(t.text=e.text)})),&quot;string&quot;==typeof t.text&amp;&amp;t.position&amp;&amp;t.position.length&gt;2){for(var s=Array(.5*t.position.length),h=0;h&lt;s.length;h++)s[h]=t.text;t.text=s}if(null!=t.text||a){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var b=1;b&lt;t.text.length;b++)this.textOffsets[b]=this.textOffsets[b-1]+t.text[b-1].length,this.count+=t.text[b].length,this.counts.push(t.text[b].length);this.text=t.text.join(&quot;&quot;)}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];r=[],this.font.forEach((function(t,n){T.atlasContext.font=t.baseString;for(var i=e.fontAtlas[n],a=0;a&lt;e.text.length;a++){var o=e.text.charAt(a);if(null==i.ids[o]&amp;&amp;(i.ids[o]=i.chars.length,i.chars.push(o),r.push(o)),null==t.width[o]&amp;&amp;(t.width[o]=T.atlasContext.measureText(o).width/T.baseFontSize,e.kerning)){var s=[];for(var l in t.width)s.push(l+o,o+l);m(t.kerning,g(t.family,{pairs:s}))}}}))}if(t.position)if(t.position.length&gt;2){for(var w=!t.position[0].length,k=u.mallocFloat(2*this.count),M=0,A=0;M&lt;this.counts.length;M++){var S=this.counts[M];if(w)for(var E=0;E&lt;S;E++)k[A++]=t.position[2*M],k[A++]=t.position[2*M+1];else for(var C=0;C&lt;S;C++)k[A++]=t.position[M][0],k[A++]=t.position[M][1]}this.position.call?this.position({type:&quot;float&quot;,data:k}):this.position=this.regl.buffer({type:&quot;float&quot;,data:k}),u.freeFloat(k)}else this.position.destroy&amp;&amp;this.position.destroy(),this.position={constant:t.position};if(t.text||a){var L=u.mallocUint8(this.count),I=u.mallocFloat(2*this.count);this.textWidth=[];for(var P=0,z=0;P&lt;this.counts.length;P++){for(var O=this.counts[P],D=this.font[P]||this.font[0],R=this.fontAtlas[P]||this.fontAtlas[0],F=0;F&lt;O;F++){var B=this.text.charAt(z),N=this.text.charAt(z-1);if(L[z]=R.ids[B],I[2*z]=D.width[B],F){var j=I[2*z-2],U=I[2*z],V=I[2*z-1]+.5*j+.5*U;if(this.kerning){var q=D.kerning[N+B];q&amp;&amp;(V+=.001*q)}I[2*z+1]=V}else I[2*z+1]=.5*I[2*z];z++}this.textWidth.push(I.length?.5*I[2*z-2]+I[2*z-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:L,type:&quot;uint8&quot;,usage:&quot;stream&quot;}),this.sizeBuffer({data:I,type:&quot;float&quot;,usage:&quot;stream&quot;}),u.freeUint8(L),u.freeFloat(I),r.length&amp;&amp;this.font.forEach((function(t,r){var n=e.fontAtlas[r],i=n.step,a=Math.floor(T.maxAtlasSize/i),o=Math.min(a,n.chars.length),s=Math.ceil(n.chars.length/o),l=x(o*i),u=x(s*i);n.width=l,n.height=u,n.rows=s,n.cols=o,n.em&amp;&amp;n.texture({data:c({canvas:T.atlasCanvas,font:n.fontString,chars:n.chars,shape:[l,u],step:[i,i]})})}))}if(t.align&amp;&amp;(this.align=t.align,this.alignOffset=this.textWidth.map((function(t,r){var n=Array.isArray(e.align)?e.align.length&gt;1?e.align[r]:e.align[0]:e.align;if(&quot;number&quot;==typeof n)return n;switch(n){case&quot;right&quot;:case&quot;end&quot;:return-t;case&quot;center&quot;:case&quot;centre&quot;:case&quot;middle&quot;:return.5*-t}return 0}))),null==this.baseline&amp;&amp;null==t.baseline&amp;&amp;(t.baseline=0),null!=t.baseline&amp;&amp;(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map((function(t,r){var n=(e.font[r]||e.font[0]).metrics,i=0;return i+=.5*n.bottom,i+=&quot;number&quot;==typeof t?t-n.baseline:-n[t],T.normalViewport||(i*=-1),i}))),null!=t.color)if(t.color||(t.color=&quot;transparent&quot;),&quot;string&quot;!=typeof t.color&amp;&amp;isNaN(t.color)){var H;if(&quot;number&quot;==typeof t.color[0]&amp;&amp;t.color.length&gt;this.counts.length){var G=t.color.length;H=u.mallocUint8(G);for(var Y=(t.color.subarray||t.color.slice).bind(t.color),W=0;W&lt;G;W+=4)H.set(l(Y(W,W+4),&quot;uint8&quot;),W)}else{var X=t.color.length;H=u.mallocUint8(4*X);for(var Z=0;Z&lt;X;Z++)H.set(l(t.color[Z]||0,&quot;uint8&quot;),4*Z)}this.color=H}else this.color=l(t.color,&quot;uint8&quot;);if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity)if(this.color.length&gt;4||this.baselineOffset.length&gt;1||this.align&amp;&amp;this.align.length&gt;1||this.fontAtlas.length&gt;1||this.positionOffset.length&gt;2){var J=Math.max(.5*this.position.length||0,.25*this.color.length||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,.5*this.positionOffset.length||0);this.batch=Array(J);for(var K=0;K&lt;this.batch.length;K++)this.batch[K]={count:this.counts.length&gt;1?this.counts[K]:this.counts[0],offset:this.textOffsets.length&gt;1?this.textOffsets[K]:this.textOffsets[0],color:this.color?this.color.length&lt;=4?this.color:this.color.subarray(4*K,4*K+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[K]:this.opacity,baseline:null!=this.baselineOffset[K]?this.baselineOffset[K]:this.baselineOffset[0],align:this.align?null!=this.alignOffset[K]?this.alignOffset[K]:this.alignOffset[0]:0,atlas:this.fontAtlas[K]||this.fontAtlas[0],positionOffset:this.positionOffset.length&gt;2?this.positionOffset.subarray(2*K,2*K+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]},T.prototype.destroy=function(){},T.prototype.kerning=!0,T.prototype.position={constant:new Float32Array(2)},T.prototype.translate=null,T.prototype.scale=null,T.prototype.font=null,T.prototype.text=&quot;&quot;,T.prototype.positionOffset=[0,0],T.prototype.opacity=1,T.prototype.color=new Uint8Array([0,0,0,255]),T.prototype.alignOffset=[0,0],T.normalViewport=!1,T.maxAtlasSize=1024,T.atlasCanvas=document.createElement(&quot;canvas&quot;),T.atlasContext=T.atlasCanvas.getContext(&quot;2d&quot;,{alpha:!1}),T.baseFontSize=64,T.fonts={},e.exports=T},{&quot;bit-twiddle&quot;:97,&quot;color-normalize&quot;:125,&quot;css-font&quot;:144,&quot;detect-kerning&quot;:172,&quot;es6-weak-map&quot;:233,&quot;flatten-vertex-data&quot;:244,&quot;font-atlas&quot;:245,&quot;font-measure&quot;:246,&quot;gl-util/context&quot;:354,&quot;is-plain-obj&quot;:469,&quot;object-assign&quot;:499,&quot;parse-rect&quot;:504,&quot;parse-unit&quot;:506,&quot;pick-by-alias&quot;:511,regl:540,&quot;to-px&quot;:578,&quot;typedarray-pool&quot;:595}],353:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ndarray&quot;),i=t(&quot;ndarray-ops&quot;),a=t(&quot;typedarray-pool&quot;);e.exports=function(t){if(arguments.length&lt;=1)throw new Error(&quot;gl-texture2d: Missing arguments for texture2d constructor&quot;);o||c(t);if(&quot;number&quot;==typeof arguments[1])return v(t,arguments[1],arguments[2],arguments[3]||t.RGBA,arguments[4]||t.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return v(t,0|arguments[1][0],0|arguments[1][1],arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(&quot;object&quot;==typeof arguments[1]){var e=arguments[1],r=u(e)?e:e.raw;if(r)return y(t,r,0|e.width,0|e.height,arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(e.shape&amp;&amp;e.data&amp;&amp;e.stride)return x(t,e)}throw new Error(&quot;gl-texture2d: Invalid arguments for texture2d constructor&quot;)};var o=null,s=null,l=null;function c(t){o=[t.LINEAR,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_NEAREST],s=[t.NEAREST,t.LINEAR,t.NEAREST_MIPMAP_NEAREST,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_LINEAR],l=[t.REPEAT,t.CLAMP_TO_EDGE,t.MIRRORED_REPEAT]}function u(t){return&quot;undefined&quot;!=typeof HTMLCanvasElement&amp;&amp;t instanceof HTMLCanvasElement||&quot;undefined&quot;!=typeof HTMLImageElement&amp;&amp;t instanceof HTMLImageElement||&quot;undefined&quot;!=typeof HTMLVideoElement&amp;&amp;t instanceof HTMLVideoElement||&quot;undefined&quot;!=typeof ImageData&amp;&amp;t instanceof ImageData}var f=function(t,e){i.muls(t,e,255)};function h(t,e,r){var n=t.gl,i=n.getParameter(n.MAX_TEXTURE_SIZE);if(e&lt;0||e&gt;i||r&lt;0||r&gt;i)throw new Error(&quot;gl-texture2d: Invalid texture size&quot;);return t._shape=[e,r],t.bind(),n.texImage2D(n.TEXTURE_2D,0,t.format,e,r,0,t.format,t.type,null),t._mipLevels=[0],t}function p(t,e,r,n,i,a){this.gl=t,this.handle=e,this.format=i,this.type=a,this._shape=[r,n],this._mipLevels=[0],this._magFilter=t.NEAREST,this._minFilter=t.NEAREST,this._wrapS=t.CLAMP_TO_EDGE,this._wrapT=t.CLAMP_TO_EDGE,this._anisoSamples=1;var o=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return o._wrapS},set:function(t){return o.wrapS=t}},{get:function(){return o._wrapT},set:function(t){return o.wrapT=t}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return o._shape[0]},set:function(t){return o.width=t}},{get:function(){return o._shape[1]},set:function(t){return o.height=t}}]),this._shapeVector=l}var d=p.prototype;function g(t,e){return 3===t.length?1===e[2]&amp;&amp;e[1]===t[0]*t[2]&amp;&amp;e[0]===t[2]:1===e[0]&amp;&amp;e[1]===t[0]}function m(t){var e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),e}function v(t,e,r,n,i){var a=t.getParameter(t.MAX_TEXTURE_SIZE);if(e&lt;0||e&gt;a||r&lt;0||r&gt;a)throw new Error(&quot;gl-texture2d: Invalid texture shape&quot;);if(i===t.FLOAT&amp;&amp;!t.getExtension(&quot;OES_texture_float&quot;))throw new Error(&quot;gl-texture2d: Floating point textures not supported on this platform&quot;);var o=m(t);return t.texImage2D(t.TEXTURE_2D,0,n,e,r,0,n,i,null),new p(t,o,e,r,n,i)}function y(t,e,r,n,i,a){var o=m(t);return t.texImage2D(t.TEXTURE_2D,0,i,i,a,e),new p(t,o,r,n,i,a)}function x(t,e){var r=e.dtype,o=e.shape.slice(),s=t.getParameter(t.MAX_TEXTURE_SIZE);if(o[0]&lt;0||o[0]&gt;s||o[1]&lt;0||o[1]&gt;s)throw new Error(&quot;gl-texture2d: Invalid texture size&quot;);var l=g(o,e.stride.slice()),c=0;&quot;float32&quot;===r?c=t.FLOAT:&quot;float64&quot;===r?(c=t.FLOAT,l=!1,r=&quot;float32&quot;):&quot;uint8&quot;===r?c=t.UNSIGNED_BYTE:(c=t.UNSIGNED_BYTE,l=!1,r=&quot;uint8&quot;);var u,h,d=0;if(2===o.length)d=t.LUMINANCE,o=[o[0],o[1],1],e=n(e.data,o,[e.stride[0],e.stride[1],1],e.offset);else{if(3!==o.length)throw new Error(&quot;gl-texture2d: Invalid shape for texture&quot;);if(1===o[2])d=t.ALPHA;else if(2===o[2])d=t.LUMINANCE_ALPHA;else if(3===o[2])d=t.RGB;else{if(4!==o[2])throw new Error(&quot;gl-texture2d: Invalid shape for pixel coords&quot;);d=t.RGBA}}c!==t.FLOAT||t.getExtension(&quot;OES_texture_float&quot;)||(c=t.UNSIGNED_BYTE,l=!1);var v=e.size;if(l)u=0===e.offset&amp;&amp;e.data.length===v?e.data:e.data.subarray(e.offset,e.offset+v);else{var y=[o[2],o[2]*o[0],1];h=a.malloc(v,r);var x=n(h,o,y,0);&quot;float32&quot;!==r&amp;&amp;&quot;float64&quot;!==r||c!==t.UNSIGNED_BYTE?i.assign(x,e):f(x,e),u=h.subarray(0,v)}var b=m(t);return t.texImage2D(t.TEXTURE_2D,0,d,o[0],o[1],0,d,c,u),l||a.free(h),new p(t,b,o[0],o[1],d,c)}Object.defineProperties(d,{minFilter:{get:function(){return this._minFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&amp;&amp;o.indexOf(t)&gt;=0&amp;&amp;(e.getExtension(&quot;OES_texture_float_linear&quot;)||(t=e.NEAREST)),s.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown filter mode &quot;+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t),this._minFilter=t}},magFilter:{get:function(){return this._magFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&amp;&amp;o.indexOf(t)&gt;=0&amp;&amp;(e.getExtension(&quot;OES_texture_float_linear&quot;)||(t=e.NEAREST)),s.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown filter mode &quot;+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t),this._magFilter=t}},mipSamples:{get:function(){return this._anisoSamples},set:function(t){var e=this._anisoSamples;if(this._anisoSamples=0|Math.max(t,1),e!==this._anisoSamples){var r=this.gl.getExtension(&quot;EXT_texture_filter_anisotropic&quot;);r&amp;&amp;this.gl.texParameterf(this.gl.TEXTURE_2D,r.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(t){if(this.bind(),l.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,t),this._wrapS=t}},wrapT:{get:function(){return this._wrapT},set:function(t){if(this.bind(),l.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,t),this._wrapT=t}},wrap:{get:function(){return this._wrapVector},set:function(t){if(Array.isArray(t)||(t=[t,t]),2!==t.length)throw new Error(&quot;gl-texture2d: Must specify wrap mode for rows and columns&quot;);for(var e=0;e&lt;2;++e)if(l.indexOf(t[e])&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);this._wrapS=t[0],this._wrapT=t[1];var r=this.gl;return this.bind(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,this._wrapS),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,this._wrapT),t}},shape:{get:function(){return this._shapeVector},set:function(t){if(Array.isArray(t)){if(2!==t.length)throw new Error(&quot;gl-texture2d: Invalid texture shape&quot;)}else t=[0|t,0|t];return h(this,0|t[0],0|t[1]),[0|t[0],0|t[1]]}},width:{get:function(){return this._shape[0]},set:function(t){return h(this,t|=0,this._shape[1]),t}},height:{get:function(){return this._shape[1]},set:function(t){return t|=0,h(this,this._shape[0],t),t}}}),d.bind=function(t){var e=this.gl;return void 0!==t&amp;&amp;e.activeTexture(e.TEXTURE0+(0|t)),e.bindTexture(e.TEXTURE_2D,this.handle),void 0!==t?0|t:e.getParameter(e.ACTIVE_TEXTURE)-e.TEXTURE0},d.dispose=function(){this.gl.deleteTexture(this.handle)},d.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var t=Math.min(this._shape[0],this._shape[1]),e=0;t&gt;0;++e,t&gt;&gt;&gt;=1)this._mipLevels.indexOf(e)&lt;0&amp;&amp;this._mipLevels.push(e)},d.setPixels=function(t,e,r,o){var s=this.gl;this.bind(),Array.isArray(e)?(o=r,r=0|e[1],e=0|e[0]):(e=e||0,r=r||0),o=o||0;var l=u(t)?t:t.raw;if(l){this._mipLevels.indexOf(o)&lt;0?(s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,this.type,l),this._mipLevels.push(o)):s.texSubImage2D(s.TEXTURE_2D,o,e,r,this.format,this.type,l)}else{if(!(t.shape&amp;&amp;t.stride&amp;&amp;t.data))throw new Error(&quot;gl-texture2d: Unsupported data type&quot;);if(t.shape.length&lt;2||e+t.shape[1]&gt;this._shape[1]&gt;&gt;&gt;o||r+t.shape[0]&gt;this._shape[0]&gt;&gt;&gt;o||e&lt;0||r&lt;0)throw new Error(&quot;gl-texture2d: Texture dimensions are out of bounds&quot;);!function(t,e,r,o,s,l,c,u){var h=u.dtype,p=u.shape.slice();if(p.length&lt;2||p.length&gt;3)throw new Error(&quot;gl-texture2d: Invalid ndarray, must be 2d or 3d&quot;);var d=0,m=0,v=g(p,u.stride.slice());&quot;float32&quot;===h?d=t.FLOAT:&quot;float64&quot;===h?(d=t.FLOAT,v=!1,h=&quot;float32&quot;):&quot;uint8&quot;===h?d=t.UNSIGNED_BYTE:(d=t.UNSIGNED_BYTE,v=!1,h=&quot;uint8&quot;);if(2===p.length)m=t.LUMINANCE,p=[p[0],p[1],1],u=n(u.data,p,[u.stride[0],u.stride[1],1],u.offset);else{if(3!==p.length)throw new Error(&quot;gl-texture2d: Invalid shape for texture&quot;);if(1===p[2])m=t.ALPHA;else if(2===p[2])m=t.LUMINANCE_ALPHA;else if(3===p[2])m=t.RGB;else{if(4!==p[2])throw new Error(&quot;gl-texture2d: Invalid shape for pixel coords&quot;);m=t.RGBA}p[2]}m!==t.LUMINANCE&amp;&amp;m!==t.ALPHA||s!==t.LUMINANCE&amp;&amp;s!==t.ALPHA||(m=s);if(m!==s)throw new Error(&quot;gl-texture2d: Incompatible texture format for setPixels&quot;);var y=u.size,x=c.indexOf(o)&lt;0;x&amp;&amp;c.push(o);if(d===l&amp;&amp;v)0===u.offset&amp;&amp;u.data.length===y?x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data):x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data.subarray(u.offset,u.offset+y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data.subarray(u.offset,u.offset+y));else{var b;b=l===t.FLOAT?a.mallocFloat32(y):a.mallocUint8(y);var _=n(b,p,[p[2],p[2]*p[0],1]);d===t.FLOAT&amp;&amp;l===t.UNSIGNED_BYTE?f(_,u):i.assign(_,u),x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,b.subarray(0,y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,b.subarray(0,y)),l===t.FLOAT?a.freeFloat32(b):a.freeUint8(b)}}(s,e,r,o,this.format,this.type,this._mipLevels,t)}}},{ndarray:495,&quot;ndarray-ops&quot;:490,&quot;typedarray-pool&quot;:595}],354:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;);function i(t){if(t.container)if(t.container==document.body)document.body.style.width||(t.canvas.width=t.width||t.pixelRatio*r.innerWidth),document.body.style.height||(t.canvas.height=t.height||t.pixelRatio*r.innerHeight);else{var e=t.container.getBoundingClientRect();t.canvas.width=t.width||e.right-e.left,t.canvas.height=t.height||e.bottom-e.top}}function a(t){return&quot;function&quot;==typeof t.getContext&amp;&amp;&quot;width&quot;in t&amp;&amp;&quot;height&quot;in t}function o(){var t=document.createElement(&quot;canvas&quot;);return t.style.position=&quot;absolute&quot;,t.style.top=0,t.style.left=0,t}e.exports=function(t){var e;if(t?&quot;string&quot;==typeof t&amp;&amp;(t={container:t}):t={},a(t)?t={container:t}:t=&quot;string&quot;==typeof(e=t).nodeName&amp;&amp;&quot;function&quot;==typeof e.appendChild&amp;&amp;&quot;function&quot;==typeof e.getBoundingClientRect?{container:t}:function(t){return&quot;function&quot;==typeof t.drawArrays||&quot;function&quot;==typeof t.drawElements}(t)?{gl:t}:n(t,{container:&quot;container target element el canvas holder parent parentNode wrapper use ref root node&quot;,gl:&quot;gl context webgl glContext&quot;,attrs:&quot;attributes attrs contextAttributes&quot;,pixelRatio:&quot;pixelRatio pxRatio px ratio pxratio pixelratio&quot;,width:&quot;w width&quot;,height:&quot;h height&quot;},!0),t.pixelRatio||(t.pixelRatio=r.pixelRatio||1),t.gl)return t.gl;if(t.canvas&amp;&amp;(t.container=t.canvas.parentNode),t.container){if(&quot;string&quot;==typeof t.container){var s=document.querySelector(t.container);if(!s)throw Error(&quot;Element &quot;+t.container+&quot; is not found&quot;);t.container=s}a(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=o(),t.container.appendChild(t.canvas),i(t))}else if(!t.canvas){if(&quot;undefined&quot;==typeof document)throw Error(&quot;Not DOM environment. Use headless-gl.&quot;);t.container=document.body||document.documentElement,t.canvas=o(),t.container.appendChild(t.canvas),i(t)}if(!t.gl)try{t.gl=t.canvas.getContext(&quot;webgl&quot;,t.attrs)}catch(e){try{t.gl=t.canvas.getContext(&quot;experimental-webgl&quot;,t.attrs)}catch(e){t.gl=t.canvas.getContext(&quot;webgl-experimental&quot;,t.attrs)}}return t.gl}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;pick-by-alias&quot;:511}],355:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){e?e.bind():t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null);var n=0|t.getParameter(t.MAX_VERTEX_ATTRIBS);if(r){if(r.length&gt;n)throw new Error(&quot;gl-vao: Too many vertex attributes&quot;);for(var i=0;i&lt;r.length;++i){var a=r[i];if(a.buffer){var o=a.buffer,s=a.size||4,l=a.type||t.FLOAT,c=!!a.normalized,u=a.stride||0,f=a.offset||0;o.bind(),t.enableVertexAttribArray(i),t.vertexAttribPointer(i,s,l,c,u,f)}else{if(&quot;number&quot;==typeof a)t.vertexAttrib1f(i,a);else if(1===a.length)t.vertexAttrib1f(i,a[0]);else if(2===a.length)t.vertexAttrib2f(i,a[0],a[1]);else if(3===a.length)t.vertexAttrib3f(i,a[0],a[1],a[2]);else{if(4!==a.length)throw new Error(&quot;gl-vao: Invalid vertex attribute&quot;);t.vertexAttrib4f(i,a[0],a[1],a[2],a[3])}t.disableVertexAttribArray(i)}}for(;i&lt;n;++i)t.disableVertexAttribArray(i)}else{t.bindBuffer(t.ARRAY_BUFFER,null);for(i=0;i&lt;n;++i)t.disableVertexAttribArray(i)}}},{}],356:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./do-bind.js&quot;);function i(t){this.gl=t,this._elements=null,this._attributes=null,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(){n(this.gl,this._elements,this._attributes)},i.prototype.update=function(t,e,r){this._elements=e,this._attributes=t,this._elementsType=r||this.gl.UNSIGNED_SHORT},i.prototype.dispose=function(){},i.prototype.unbind=function(){},i.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._elements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t){return new i(t)}},{&quot;./do-bind.js&quot;:355}],357:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./do-bind.js&quot;);function i(t,e,r,n,i,a){this.location=t,this.dimension=e,this.a=r,this.b=n,this.c=i,this.d=a}function a(t,e,r){this.gl=t,this._ext=e,this.handle=r,this._attribs=[],this._useElements=!1,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(t){switch(this.dimension){case 1:t.vertexAttrib1f(this.location,this.a);break;case 2:t.vertexAttrib2f(this.location,this.a,this.b);break;case 3:t.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:t.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d)}},a.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var t=0;t&lt;this._attribs.length;++t)this._attribs[t].bind(this.gl)},a.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},a.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},a.prototype.update=function(t,e,r){if(this.bind(),n(this.gl,e,t),this.unbind(),this._attribs.length=0,t)for(var a=0;a&lt;t.length;++a){var o=t[a];&quot;number&quot;==typeof o?this._attribs.push(new i(a,1,o)):Array.isArray(o)&amp;&amp;this._attribs.push(new i(a,o.length,o[0],o[1],o[2],o[3]))}this._useElements=!!e,this._elementsType=r||this.gl.UNSIGNED_SHORT},a.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._useElements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t,e){return new a(t,e,e.createVertexArrayOES())}},{&quot;./do-bind.js&quot;:355}],358:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/vao-native.js&quot;),i=t(&quot;./lib/vao-emulated.js&quot;);function a(t){this.bindVertexArrayOES=t.bindVertexArray.bind(t),this.createVertexArrayOES=t.createVertexArray.bind(t),this.deleteVertexArrayOES=t.deleteVertexArray.bind(t)}e.exports=function(t,e,r,o){var s,l=t.createVertexArray?new a(t):t.getExtension(&quot;OES_vertex_array_object&quot;);return(s=l?n(t,l):i(t)).update(e,r,o),s}},{&quot;./lib/vao-emulated.js&quot;:356,&quot;./lib/vao-native.js&quot;:357}],359:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}},{}],360:[function(t,e,r){e.exports=function(t,e){var r=n(t[0],t[1],t[2]),o=n(e[0],e[1],e[2]);i(r,r),i(o,o);var s=a(r,o);return s&gt;1?0:Math.acos(s)};var n=t(&quot;./fromValues&quot;),i=t(&quot;./normalize&quot;),a=t(&quot;./dot&quot;)},{&quot;./dot&quot;:370,&quot;./fromValues&quot;:376,&quot;./normalize&quot;:387}],361:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}},{}],362:[function(t,e,r){e.exports=function(t){var e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}},{}],363:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},{}],364:[function(t,e,r){e.exports=function(){var t=new Float32Array(3);return t[0]=0,t[1]=0,t[2]=0,t}},{}],365:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t}},{}],366:[function(t,e,r){e.exports=t(&quot;./distance&quot;)},{&quot;./distance&quot;:367}],367:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}},{}],368:[function(t,e,r){e.exports=t(&quot;./divide&quot;)},{&quot;./divide&quot;:369}],369:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}},{}],370:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}},{}],371:[function(t,e,r){e.exports=1e-6},{}],372:[function(t,e,r){e.exports=function(t,e){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(r-o)&lt;=n*Math.max(1,Math.abs(r),Math.abs(o))&amp;&amp;Math.abs(i-s)&lt;=n*Math.max(1,Math.abs(i),Math.abs(s))&amp;&amp;Math.abs(a-l)&lt;=n*Math.max(1,Math.abs(a),Math.abs(l))};var n=t(&quot;./epsilon&quot;)},{&quot;./epsilon&quot;:371}],373:[function(t,e,r){e.exports=function(t,e){return t[0]===e[0]&amp;&amp;t[1]===e[1]&amp;&amp;t[2]===e[2]}},{}],374:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}},{}],375:[function(t,e,r){e.exports=function(t,e,r,i,a,o){var s,l;e||(e=3);r||(r=0);l=i?Math.min(i*e+r,t.length):t.length;for(s=r;s&lt;l;s+=e)n[0]=t[s],n[1]=t[s+1],n[2]=t[s+2],a(n,n,o),t[s]=n[0],t[s+1]=n[1],t[s+2]=n[2];return t};var n=t(&quot;./create&quot;)()},{&quot;./create&quot;:364}],376:[function(t,e,r){e.exports=function(t,e,r){var n=new Float32Array(3);return n[0]=t,n[1]=e,n[2]=r,n}},{}],377:[function(t,e,r){e.exports={EPSILON:t(&quot;./epsilon&quot;),create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),angle:t(&quot;./angle&quot;),fromValues:t(&quot;./fromValues&quot;),copy:t(&quot;./copy&quot;),set:t(&quot;./set&quot;),equals:t(&quot;./equals&quot;),exactEquals:t(&quot;./exactEquals&quot;),add:t(&quot;./add&quot;),subtract:t(&quot;./subtract&quot;),sub:t(&quot;./sub&quot;),multiply:t(&quot;./multiply&quot;),mul:t(&quot;./mul&quot;),divide:t(&quot;./divide&quot;),div:t(&quot;./div&quot;),min:t(&quot;./min&quot;),max:t(&quot;./max&quot;),floor:t(&quot;./floor&quot;),ceil:t(&quot;./ceil&quot;),round:t(&quot;./round&quot;),scale:t(&quot;./scale&quot;),scaleAndAdd:t(&quot;./scaleAndAdd&quot;),distance:t(&quot;./distance&quot;),dist:t(&quot;./dist&quot;),squaredDistance:t(&quot;./squaredDistance&quot;),sqrDist:t(&quot;./sqrDist&quot;),length:t(&quot;./length&quot;),len:t(&quot;./len&quot;),squaredLength:t(&quot;./squaredLength&quot;),sqrLen:t(&quot;./sqrLen&quot;),negate:t(&quot;./negate&quot;),inverse:t(&quot;./inverse&quot;),normalize:t(&quot;./normalize&quot;),dot:t(&quot;./dot&quot;),cross:t(&quot;./cross&quot;),lerp:t(&quot;./lerp&quot;),random:t(&quot;./random&quot;),transformMat4:t(&quot;./transformMat4&quot;),transformMat3:t(&quot;./transformMat3&quot;),transformQuat:t(&quot;./transformQuat&quot;),rotateX:t(&quot;./rotateX&quot;),rotateY:t(&quot;./rotateY&quot;),rotateZ:t(&quot;./rotateZ&quot;),forEach:t(&quot;./forEach&quot;)}},{&quot;./add&quot;:359,&quot;./angle&quot;:360,&quot;./ceil&quot;:361,&quot;./clone&quot;:362,&quot;./copy&quot;:363,&quot;./create&quot;:364,&quot;./cross&quot;:365,&quot;./dist&quot;:366,&quot;./distance&quot;:367,&quot;./div&quot;:368,&quot;./divide&quot;:369,&quot;./dot&quot;:370,&quot;./epsilon&quot;:371,&quot;./equals&quot;:372,&quot;./exactEquals&quot;:373,&quot;./floor&quot;:374,&quot;./forEach&quot;:375,&quot;./fromValues&quot;:376,&quot;./inverse&quot;:378,&quot;./len&quot;:379,&quot;./length&quot;:380,&quot;./lerp&quot;:381,&quot;./max&quot;:382,&quot;./min&quot;:383,&quot;./mul&quot;:384,&quot;./multiply&quot;:385,&quot;./negate&quot;:386,&quot;./normalize&quot;:387,&quot;./random&quot;:388,&quot;./rotateX&quot;:389,&quot;./rotateY&quot;:390,&quot;./rotateZ&quot;:391,&quot;./round&quot;:392,&quot;./scale&quot;:393,&quot;./scaleAndAdd&quot;:394,&quot;./set&quot;:395,&quot;./sqrDist&quot;:396,&quot;./sqrLen&quot;:397,&quot;./squaredDistance&quot;:398,&quot;./squaredLength&quot;:399,&quot;./sub&quot;:400,&quot;./subtract&quot;:401,&quot;./transformMat3&quot;:402,&quot;./transformMat4&quot;:403,&quot;./transformQuat&quot;:404}],378:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}},{}],379:[function(t,e,r){e.exports=t(&quot;./length&quot;)},{&quot;./length&quot;:380}],380:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}},{}],381:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t}},{}],382:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}},{}],383:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}},{}],384:[function(t,e,r){e.exports=t(&quot;./multiply&quot;)},{&quot;./multiply&quot;:385}],385:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}},{}],386:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}},{}],387:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;a&gt;0&amp;&amp;(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a);return t}},{}],388:[function(t,e,r){e.exports=function(t,e){e=e||1;var r=2*Math.random()*Math.PI,n=2*Math.random()-1,i=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=n*e,t}},{}],389:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[1],a=r[2],o=e[1]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=e[0],t[1]=i+o*c-s*l,t[2]=a+o*l+s*c,t}},{}],390:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[2],o=e[0]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+s*l+o*c,t[1]=e[1],t[2]=a+s*c-o*l,t}},{}],391:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[1],o=e[0]-i,s=e[1]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+o*c-s*l,t[1]=a+o*l+s*c,t[2]=e[2],t}},{}],392:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}},{}],393:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}},{}],394:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}},{}],395:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}},{}],396:[function(t,e,r){e.exports=t(&quot;./squaredDistance&quot;)},{&quot;./squaredDistance&quot;:398}],397:[function(t,e,r){e.exports=t(&quot;./squaredLength&quot;)},{&quot;./squaredLength&quot;:399}],398:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}},{}],399:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}},{}],400:[function(t,e,r){e.exports=t(&quot;./subtract&quot;)},{&quot;./subtract&quot;:401}],401:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}},{}],402:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t}},{}],403:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,t[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,t[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,t}},{}],404:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t}},{}],405:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}},{}],406:[function(t,e,r){e.exports=function(t){var e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}},{}],407:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},{}],408:[function(t,e,r){e.exports=function(){var t=new Float32Array(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}},{}],409:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(r*r+n*n+i*i+a*a)}},{}],410:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}},{}],411:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}},{}],412:[function(t,e,r){e.exports=function(t,e,r,n){var i=new Float32Array(4);return i[0]=t,i[1]=e,i[2]=r,i[3]=n,i}},{}],413:[function(t,e,r){e.exports={create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),fromValues:t(&quot;./fromValues&quot;),copy:t(&quot;./copy&quot;),set:t(&quot;./set&quot;),add:t(&quot;./add&quot;),subtract:t(&quot;./subtract&quot;),multiply:t(&quot;./multiply&quot;),divide:t(&quot;./divide&quot;),min:t(&quot;./min&quot;),max:t(&quot;./max&quot;),scale:t(&quot;./scale&quot;),scaleAndAdd:t(&quot;./scaleAndAdd&quot;),distance:t(&quot;./distance&quot;),squaredDistance:t(&quot;./squaredDistance&quot;),length:t(&quot;./length&quot;),squaredLength:t(&quot;./squaredLength&quot;),negate:t(&quot;./negate&quot;),inverse:t(&quot;./inverse&quot;),normalize:t(&quot;./normalize&quot;),dot:t(&quot;./dot&quot;),lerp:t(&quot;./lerp&quot;),random:t(&quot;./random&quot;),transformMat4:t(&quot;./transformMat4&quot;),transformQuat:t(&quot;./transformQuat&quot;)}},{&quot;./add&quot;:405,&quot;./clone&quot;:406,&quot;./copy&quot;:407,&quot;./create&quot;:408,&quot;./distance&quot;:409,&quot;./divide&quot;:410,&quot;./dot&quot;:411,&quot;./fromValues&quot;:412,&quot;./inverse&quot;:414,&quot;./length&quot;:415,&quot;./lerp&quot;:416,&quot;./max&quot;:417,&quot;./min&quot;:418,&quot;./multiply&quot;:419,&quot;./negate&quot;:420,&quot;./normalize&quot;:421,&quot;./random&quot;:422,&quot;./scale&quot;:423,&quot;./scaleAndAdd&quot;:424,&quot;./set&quot;:425,&quot;./squaredDistance&quot;:426,&quot;./squaredLength&quot;:427,&quot;./subtract&quot;:428,&quot;./transformMat4&quot;:429,&quot;./transformQuat&quot;:430}],414:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}},{}],415:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return Math.sqrt(e*e+r*r+n*n+i*i)}},{}],416:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t}},{}],417:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}},{}],418:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}},{}],419:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}},{}],420:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}},{}],421:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a;o&gt;0&amp;&amp;(o=1/Math.sqrt(o),t[0]=r*o,t[1]=n*o,t[2]=i*o,t[3]=a*o);return t}},{}],422:[function(t,e,r){var n=t(&quot;./normalize&quot;),i=t(&quot;./scale&quot;);e.exports=function(t,e){return e=e||1,t[0]=Math.random(),t[1]=Math.random(),t[2]=Math.random(),t[3]=Math.random(),n(t,t),i(t,t,e),t}},{&quot;./normalize&quot;:421,&quot;./scale&quot;:423}],423:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}},{}],424:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t}},{}],425:[function(t,e,r){e.exports=function(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}},{}],426:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return r*r+n*n+i*i+a*a}},{}],427:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+i*i}},{}],428:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}},{}],429:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}},{}],430:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t[3]=e[3],t}},{}],431:[function(t,e,r){var n=t(&quot;glsl-tokenizer&quot;),i=t(&quot;atob-lite&quot;);e.exports=function(t){for(var e=Array.isArray(t)?t:n(t),r=0;r&lt;e.length;r++){var a=e[r];if(&quot;preprocessor&quot;===a.type){var o=a.data.match(/\#define\s+SHADER_NAME(_B64)?\s+(.+)$/);if(o&amp;&amp;o[2]){var s=o[1],l=o[2];return(s?i(l):l).trim()}}}}},{&quot;atob-lite&quot;:77,&quot;glsl-tokenizer&quot;:438}],432:[function(t,e,r){e.exports=function(t){var e,r,c,u=0,f=0,h=999,p=[],d=[],g=1,m=0,v=0,y=!1,x=!1,b=&quot;&quot;,_=a,w=n;&quot;300 es&quot;===(t=t||{}).version&amp;&amp;(_=s,w=o);var T={},k={};for(u=0;u&lt;_.length;u++)T[_[u]]=!0;for(u=0;u&lt;w.length;u++)k[w[u]]=!0;return function(t){return d=[],null!==t?function(t){u=0,t.toString&amp;&amp;(t=t.toString());var r;b+=t.replace(/\r\n/g,&quot;\n&quot;),c=b.length;for(;e=b[u],u&lt;c;){switch(r=u,h){case 0:u=C();break;case 1:case 2:u=E();break;case 3:u=L();break;case 4:u=z();break;case 11:u=P();break;case 5:u=O();break;case 9999:u=D();break;case 9:u=S();break;case 999:u=A()}if(r!==u)switch(b[r]){case&quot;\n&quot;:m=0,++g;break;default:++m}}return f+=u,b=b.slice(u),d}(t):function(t){p.length&amp;&amp;M(p.join(&quot;&quot;));return h=10,M(&quot;(eof)&quot;),d}()};function M(t){t.length&amp;&amp;d.push({type:l[h],data:t,position:v,line:g,column:m})}function A(){return p=p.length?[]:p,&quot;/&quot;===r&amp;&amp;&quot;*&quot;===e?(v=f+u-1,h=0,r=e,u+1):&quot;/&quot;===r&amp;&amp;&quot;/&quot;===e?(v=f+u-1,h=1,r=e,u+1):&quot;#&quot;===e?(h=2,v=f+u,u):/\s/.test(e)?(h=9,v=f+u,u):(y=/\d/.test(e),x=/[^\w_]/.test(e),v=f+u,h=y?4:x?3:9999,u)}function S(){return/[^\s]/g.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function E(){return&quot;\r&quot;!==e&amp;&amp;&quot;\n&quot;!==e||&quot;\\&quot;===r?(p.push(e),r=e,u+1):(M(p.join(&quot;&quot;)),h=999,u)}function C(){return&quot;/&quot;===e&amp;&amp;&quot;*&quot;===r?(p.push(e),M(p.join(&quot;&quot;)),h=999,u+1):(p.push(e),r=e,u+1)}function L(){if(&quot;.&quot;===r&amp;&amp;/\d/.test(e))return h=5,u;if(&quot;/&quot;===r&amp;&amp;&quot;*&quot;===e)return h=0,u;if(&quot;/&quot;===r&amp;&amp;&quot;/&quot;===e)return h=1,u;if(&quot;.&quot;===e&amp;&amp;p.length){for(;I(p););return h=5,u}if(&quot;;&quot;===e||&quot;)&quot;===e||&quot;(&quot;===e){if(p.length)for(;I(p););return M(e),h=999,u+1}var t=2===p.length&amp;&amp;&quot;=&quot;!==e;if(/[\w_\d\s]/.test(e)||t){for(;I(p););return h=999,u}return p.push(e),r=e,u+1}function I(t){for(var e,r,n=0;;){if(e=i.indexOf(t.slice(0,t.length+n).join(&quot;&quot;)),r=i[e],-1===e){if(n--+t.length&gt;0)continue;r=t.slice(0,1).join(&quot;&quot;)}return M(r),v+=r.length,(p=p.slice(r.length)).length}}function P(){return/[^a-fA-F0-9]/.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function z(){return&quot;.&quot;===e||/[eE]/.test(e)?(p.push(e),h=5,r=e,u+1):&quot;x&quot;===e&amp;&amp;1===p.length&amp;&amp;&quot;0&quot;===p[0]?(h=11,p.push(e),r=e,u+1):/[^\d]/.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function O(){return&quot;f&quot;===e&amp;&amp;(p.push(e),r=e,u+=1),/[eE]/.test(e)?(p.push(e),r=e,u+1):(&quot;-&quot;!==e&amp;&amp;&quot;+&quot;!==e||!/[eE]/.test(r))&amp;&amp;/[^\d]/.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function D(){if(/[^\d\w_]/.test(e)){var t=p.join(&quot;&quot;);return h=k[t]?8:T[t]?7:6,M(p.join(&quot;&quot;)),h=999,u}return p.push(e),r=e,u+1}};var n=t(&quot;./lib/literals&quot;),i=t(&quot;./lib/operators&quot;),a=t(&quot;./lib/builtins&quot;),o=t(&quot;./lib/literals-300es&quot;),s=t(&quot;./lib/builtins-300es&quot;),l=[&quot;block-comment&quot;,&quot;line-comment&quot;,&quot;preprocessor&quot;,&quot;operator&quot;,&quot;integer&quot;,&quot;float&quot;,&quot;ident&quot;,&quot;builtin&quot;,&quot;keyword&quot;,&quot;whitespace&quot;,&quot;eof&quot;,&quot;integer&quot;]},{&quot;./lib/builtins&quot;:434,&quot;./lib/builtins-300es&quot;:433,&quot;./lib/literals&quot;:436,&quot;./lib/literals-300es&quot;:435,&quot;./lib/operators&quot;:437}],433:[function(t,e,r){var n=t(&quot;./builtins&quot;);n=n.slice().filter((function(t){return!/^(gl\_|texture)/.test(t)})),e.exports=n.concat([&quot;gl_VertexID&quot;,&quot;gl_InstanceID&quot;,&quot;gl_Position&quot;,&quot;gl_PointSize&quot;,&quot;gl_FragCoord&quot;,&quot;gl_FrontFacing&quot;,&quot;gl_FragDepth&quot;,&quot;gl_PointCoord&quot;,&quot;gl_MaxVertexAttribs&quot;,&quot;gl_MaxVertexUniformVectors&quot;,&quot;gl_MaxVertexOutputVectors&quot;,&quot;gl_MaxFragmentInputVectors&quot;,&quot;gl_MaxVertexTextureImageUnits&quot;,&quot;gl_MaxCombinedTextureImageUnits&quot;,&quot;gl_MaxTextureImageUnits&quot;,&quot;gl_MaxFragmentUniformVectors&quot;,&quot;gl_MaxDrawBuffers&quot;,&quot;gl_MinProgramTexelOffset&quot;,&quot;gl_MaxProgramTexelOffset&quot;,&quot;gl_DepthRangeParameters&quot;,&quot;gl_DepthRange&quot;,&quot;trunc&quot;,&quot;round&quot;,&quot;roundEven&quot;,&quot;isnan&quot;,&quot;isinf&quot;,&quot;floatBitsToInt&quot;,&quot;floatBitsToUint&quot;,&quot;intBitsToFloat&quot;,&quot;uintBitsToFloat&quot;,&quot;packSnorm2x16&quot;,&quot;unpackSnorm2x16&quot;,&quot;packUnorm2x16&quot;,&quot;unpackUnorm2x16&quot;,&quot;packHalf2x16&quot;,&quot;unpackHalf2x16&quot;,&quot;outerProduct&quot;,&quot;transpose&quot;,&quot;determinant&quot;,&quot;inverse&quot;,&quot;texture&quot;,&quot;textureSize&quot;,&quot;textureProj&quot;,&quot;textureLod&quot;,&quot;textureOffset&quot;,&quot;texelFetch&quot;,&quot;texelFetchOffset&quot;,&quot;textureProjOffset&quot;,&quot;textureLodOffset&quot;,&quot;textureProjLod&quot;,&quot;textureProjLodOffset&quot;,&quot;textureGrad&quot;,&quot;textureGradOffset&quot;,&quot;textureProjGrad&quot;,&quot;textureProjGradOffset&quot;])},{&quot;./builtins&quot;:434}],434:[function(t,e,r){e.exports=[&quot;abs&quot;,&quot;acos&quot;,&quot;all&quot;,&quot;any&quot;,&quot;asin&quot;,&quot;atan&quot;,&quot;ceil&quot;,&quot;clamp&quot;,&quot;cos&quot;,&quot;cross&quot;,&quot;dFdx&quot;,&quot;dFdy&quot;,&quot;degrees&quot;,&quot;distance&quot;,&quot;dot&quot;,&quot;equal&quot;,&quot;exp&quot;,&quot;exp2&quot;,&quot;faceforward&quot;,&quot;floor&quot;,&quot;fract&quot;,&quot;gl_BackColor&quot;,&quot;gl_BackLightModelProduct&quot;,&quot;gl_BackLightProduct&quot;,&quot;gl_BackMaterial&quot;,&quot;gl_BackSecondaryColor&quot;,&quot;gl_ClipPlane&quot;,&quot;gl_ClipVertex&quot;,&quot;gl_Color&quot;,&quot;gl_DepthRange&quot;,&quot;gl_DepthRangeParameters&quot;,&quot;gl_EyePlaneQ&quot;,&quot;gl_EyePlaneR&quot;,&quot;gl_EyePlaneS&quot;,&quot;gl_EyePlaneT&quot;,&quot;gl_Fog&quot;,&quot;gl_FogCoord&quot;,&quot;gl_FogFragCoord&quot;,&quot;gl_FogParameters&quot;,&quot;gl_FragColor&quot;,&quot;gl_FragCoord&quot;,&quot;gl_FragData&quot;,&quot;gl_FragDepth&quot;,&quot;gl_FragDepthEXT&quot;,&quot;gl_FrontColor&quot;,&quot;gl_FrontFacing&quot;,&quot;gl_FrontLightModelProduct&quot;,&quot;gl_FrontLightProduct&quot;,&quot;gl_FrontMaterial&quot;,&quot;gl_FrontSecondaryColor&quot;,&quot;gl_LightModel&quot;,&quot;gl_LightModelParameters&quot;,&quot;gl_LightModelProducts&quot;,&quot;gl_LightProducts&quot;,&quot;gl_LightSource&quot;,&quot;gl_LightSourceParameters&quot;,&quot;gl_MaterialParameters&quot;,&quot;gl_MaxClipPlanes&quot;,&quot;gl_MaxCombinedTextureImageUnits&quot;,&quot;gl_MaxDrawBuffers&quot;,&quot;gl_MaxFragmentUniformComponents&quot;,&quot;gl_MaxLights&quot;,&quot;gl_MaxTextureCoords&quot;,&quot;gl_MaxTextureImageUnits&quot;,&quot;gl_MaxTextureUnits&quot;,&quot;gl_MaxVaryingFloats&quot;,&quot;gl_MaxVertexAttribs&quot;,&quot;gl_MaxVertexTextureImageUnits&quot;,&quot;gl_MaxVertexUniformComponents&quot;,&quot;gl_ModelViewMatrix&quot;,&quot;gl_ModelViewMatrixInverse&quot;,&quot;gl_ModelViewMatrixInverseTranspose&quot;,&quot;gl_ModelViewMatrixTranspose&quot;,&quot;gl_ModelViewProjectionMatrix&quot;,&quot;gl_ModelViewProjectionMatrixInverse&quot;,&quot;gl_ModelViewProjectionMatrixInverseTranspose&quot;,&quot;gl_ModelViewProjectionMatrixTranspose&quot;,&quot;gl_MultiTexCoord0&quot;,&quot;gl_MultiTexCoord1&quot;,&quot;gl_MultiTexCoord2&quot;,&quot;gl_MultiTexCoord3&quot;,&quot;gl_MultiTexCoord4&quot;,&quot;gl_MultiTexCoord5&quot;,&quot;gl_MultiTexCoord6&quot;,&quot;gl_MultiTexCoord7&quot;,&quot;gl_Normal&quot;,&quot;gl_NormalMatrix&quot;,&quot;gl_NormalScale&quot;,&quot;gl_ObjectPlaneQ&quot;,&quot;gl_ObjectPlaneR&quot;,&quot;gl_ObjectPlaneS&quot;,&quot;gl_ObjectPlaneT&quot;,&quot;gl_Point&quot;,&quot;gl_PointCoord&quot;,&quot;gl_PointParameters&quot;,&quot;gl_PointSize&quot;,&quot;gl_Position&quot;,&quot;gl_ProjectionMatrix&quot;,&quot;gl_ProjectionMatrixInverse&quot;,&quot;gl_ProjectionMatrixInverseTranspose&quot;,&quot;gl_ProjectionMatrixTranspose&quot;,&quot;gl_SecondaryColor&quot;,&quot;gl_TexCoord&quot;,&quot;gl_TextureEnvColor&quot;,&quot;gl_TextureMatrix&quot;,&quot;gl_TextureMatrixInverse&quot;,&quot;gl_TextureMatrixInverseTranspose&quot;,&quot;gl_TextureMatrixTranspose&quot;,&quot;gl_Vertex&quot;,&quot;greaterThan&quot;,&quot;greaterThanEqual&quot;,&quot;inversesqrt&quot;,&quot;length&quot;,&quot;lessThan&quot;,&quot;lessThanEqual&quot;,&quot;log&quot;,&quot;log2&quot;,&quot;matrixCompMult&quot;,&quot;max&quot;,&quot;min&quot;,&quot;mix&quot;,&quot;mod&quot;,&quot;normalize&quot;,&quot;not&quot;,&quot;notEqual&quot;,&quot;pow&quot;,&quot;radians&quot;,&quot;reflect&quot;,&quot;refract&quot;,&quot;sign&quot;,&quot;sin&quot;,&quot;smoothstep&quot;,&quot;sqrt&quot;,&quot;step&quot;,&quot;tan&quot;,&quot;texture2D&quot;,&quot;texture2DLod&quot;,&quot;texture2DProj&quot;,&quot;texture2DProjLod&quot;,&quot;textureCube&quot;,&quot;textureCubeLod&quot;,&quot;texture2DLodEXT&quot;,&quot;texture2DProjLodEXT&quot;,&quot;textureCubeLodEXT&quot;,&quot;texture2DGradEXT&quot;,&quot;texture2DProjGradEXT&quot;,&quot;textureCubeGradEXT&quot;]},{}],435:[function(t,e,r){var n=t(&quot;./literals&quot;);e.exports=n.slice().concat([&quot;layout&quot;,&quot;centroid&quot;,&quot;smooth&quot;,&quot;case&quot;,&quot;mat2x2&quot;,&quot;mat2x3&quot;,&quot;mat2x4&quot;,&quot;mat3x2&quot;,&quot;mat3x3&quot;,&quot;mat3x4&quot;,&quot;mat4x2&quot;,&quot;mat4x3&quot;,&quot;mat4x4&quot;,&quot;uvec2&quot;,&quot;uvec3&quot;,&quot;uvec4&quot;,&quot;samplerCubeShadow&quot;,&quot;sampler2DArray&quot;,&quot;sampler2DArrayShadow&quot;,&quot;isampler2D&quot;,&quot;isampler3D&quot;,&quot;isamplerCube&quot;,&quot;isampler2DArray&quot;,&quot;usampler2D&quot;,&quot;usampler3D&quot;,&quot;usamplerCube&quot;,&quot;usampler2DArray&quot;,&quot;coherent&quot;,&quot;restrict&quot;,&quot;readonly&quot;,&quot;writeonly&quot;,&quot;resource&quot;,&quot;atomic_uint&quot;,&quot;noperspective&quot;,&quot;patch&quot;,&quot;sample&quot;,&quot;subroutine&quot;,&quot;common&quot;,&quot;partition&quot;,&quot;active&quot;,&quot;filter&quot;,&quot;image1D&quot;,&quot;image2D&quot;,&quot;image3D&quot;,&quot;imageCube&quot;,&quot;iimage1D&quot;,&quot;iimage2D&quot;,&quot;iimage3D&quot;,&quot;iimageCube&quot;,&quot;uimage1D&quot;,&quot;uimage2D&quot;,&quot;uimage3D&quot;,&quot;uimageCube&quot;,&quot;image1DArray&quot;,&quot;image2DArray&quot;,&quot;iimage1DArray&quot;,&quot;iimage2DArray&quot;,&quot;uimage1DArray&quot;,&quot;uimage2DArray&quot;,&quot;image1DShadow&quot;,&quot;image2DShadow&quot;,&quot;image1DArrayShadow&quot;,&quot;image2DArrayShadow&quot;,&quot;imageBuffer&quot;,&quot;iimageBuffer&quot;,&quot;uimageBuffer&quot;,&quot;sampler1DArray&quot;,&quot;sampler1DArrayShadow&quot;,&quot;isampler1D&quot;,&quot;isampler1DArray&quot;,&quot;usampler1D&quot;,&quot;usampler1DArray&quot;,&quot;isampler2DRect&quot;,&quot;usampler2DRect&quot;,&quot;samplerBuffer&quot;,&quot;isamplerBuffer&quot;,&quot;usamplerBuffer&quot;,&quot;sampler2DMS&quot;,&quot;isampler2DMS&quot;,&quot;usampler2DMS&quot;,&quot;sampler2DMSArray&quot;,&quot;isampler2DMSArray&quot;,&quot;usampler2DMSArray&quot;])},{&quot;./literals&quot;:436}],436:[function(t,e,r){e.exports=[&quot;precision&quot;,&quot;highp&quot;,&quot;mediump&quot;,&quot;lowp&quot;,&quot;attribute&quot;,&quot;const&quot;,&quot;uniform&quot;,&quot;varying&quot;,&quot;break&quot;,&quot;continue&quot;,&quot;do&quot;,&quot;for&quot;,&quot;while&quot;,&quot;if&quot;,&quot;else&quot;,&quot;in&quot;,&quot;out&quot;,&quot;inout&quot;,&quot;float&quot;,&quot;int&quot;,&quot;uint&quot;,&quot;void&quot;,&quot;bool&quot;,&quot;true&quot;,&quot;false&quot;,&quot;discard&quot;,&quot;return&quot;,&quot;mat2&quot;,&quot;mat3&quot;,&quot;mat4&quot;,&quot;vec2&quot;,&quot;vec3&quot;,&quot;vec4&quot;,&quot;ivec2&quot;,&quot;ivec3&quot;,&quot;ivec4&quot;,&quot;bvec2&quot;,&quot;bvec3&quot;,&quot;bvec4&quot;,&quot;sampler1D&quot;,&quot;sampler2D&quot;,&quot;sampler3D&quot;,&quot;samplerCube&quot;,&quot;sampler1DShadow&quot;,&quot;sampler2DShadow&quot;,&quot;struct&quot;,&quot;asm&quot;,&quot;class&quot;,&quot;union&quot;,&quot;enum&quot;,&quot;typedef&quot;,&quot;template&quot;,&quot;this&quot;,&quot;packed&quot;,&quot;goto&quot;,&quot;switch&quot;,&quot;default&quot;,&quot;inline&quot;,&quot;noinline&quot;,&quot;volatile&quot;,&quot;public&quot;,&quot;static&quot;,&quot;extern&quot;,&quot;external&quot;,&quot;interface&quot;,&quot;long&quot;,&quot;short&quot;,&quot;double&quot;,&quot;half&quot;,&quot;fixed&quot;,&quot;unsigned&quot;,&quot;input&quot;,&quot;output&quot;,&quot;hvec2&quot;,&quot;hvec3&quot;,&quot;hvec4&quot;,&quot;dvec2&quot;,&quot;dvec3&quot;,&quot;dvec4&quot;,&quot;fvec2&quot;,&quot;fvec3&quot;,&quot;fvec4&quot;,&quot;sampler2DRect&quot;,&quot;sampler3DRect&quot;,&quot;sampler2DRectShadow&quot;,&quot;sizeof&quot;,&quot;cast&quot;,&quot;namespace&quot;,&quot;using&quot;]},{}],437:[function(t,e,r){e.exports=[&quot;&lt;&lt;=&quot;,&quot;&gt;&gt;=&quot;,&quot;++&quot;,&quot;--&quot;,&quot;&lt;&lt;&quot;,&quot;&gt;&gt;&quot;,&quot;&lt;=&quot;,&quot;&gt;=&quot;,&quot;==&quot;,&quot;!=&quot;,&quot;&amp;&amp;&quot;,&quot;||&quot;,&quot;+=&quot;,&quot;-=&quot;,&quot;*=&quot;,&quot;/=&quot;,&quot;%=&quot;,&quot;&amp;=&quot;,&quot;^^&quot;,&quot;^=&quot;,&quot;|=&quot;,&quot;(&quot;,&quot;)&quot;,&quot;[&quot;,&quot;]&quot;,&quot;.&quot;,&quot;!&quot;,&quot;~&quot;,&quot;*&quot;,&quot;/&quot;,&quot;%&quot;,&quot;+&quot;,&quot;-&quot;,&quot;&lt;&quot;,&quot;&gt;&quot;,&quot;&amp;&quot;,&quot;^&quot;,&quot;|&quot;,&quot;?&quot;,&quot;:&quot;,&quot;=&quot;,&quot;,&quot;,&quot;;&quot;,&quot;{&quot;,&quot;}&quot;]},{}],438:[function(t,e,r){var n=t(&quot;./index&quot;);e.exports=function(t,e){var r=n(e),i=[];return i=(i=i.concat(r(t))).concat(r(null))}},{&quot;./index&quot;:432}],439:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],440:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n,i=t(&quot;is-browser&quot;);n=&quot;function&quot;==typeof r.matchMedia?!r.matchMedia(&quot;(hover: none)&quot;).matches:i,e.exports=n}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;is-browser&quot;:464}],441:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-browser&quot;);e.exports=n&amp;&amp;function(){var t=!1;try{var e=Object.defineProperty({},&quot;passive&quot;,{get:function(){t=!0}});window.addEventListener(&quot;test&quot;,null,e),window.removeEventListener(&quot;test&quot;,null,e)}catch(e){t=!1}return t}()},{&quot;is-browser&quot;:464}],442:[function(t,e,r){r.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1&lt;&lt;s)-1,c=l&gt;&gt;1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&amp;(1&lt;&lt;-u)-1,p&gt;&gt;=-u,u+=s;u&gt;0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&amp;(1&lt;&lt;-u)-1,a&gt;&gt;=-u,u+=n;u&gt;0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1&lt;&lt;c)-1,f=u&gt;&gt;1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e&lt;0||0===e&amp;&amp;1/e&lt;0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))&lt;1&amp;&amp;(o--,l*=2),(e+=o+f&gt;=1?h/l:h*Math.pow(2,1-f))*l&gt;=2&amp;&amp;(o++,l/=2),o+f&gt;=u?(s=0,o=u):o+f&gt;=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i&gt;=8;t[r+p]=255&amp;s,p+=d,s/=256,i-=8);for(o=o&lt;&lt;i|s,c+=i;c&gt;0;t[r+p]=255&amp;o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g}},{}],443:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./types&quot;);e.exports=function(t,e){var r;for(r in n)if(n[r].detect(t,e))return r}},{&quot;./types&quot;:446}],444:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;fs&quot;),i=t(&quot;path&quot;),a=t(&quot;./types&quot;),o=t(&quot;./detector&quot;);function s(t,e){var r=o(t,e);if(r in a){var n=a[r].calculate(t,e);if(!1!==n)return n.type=r,n}throw new TypeError(&quot;unsupported file type: &quot;+r+&quot; (file: &quot;+e+&quot;)&quot;)}e.exports=function(t,e){if(r.isBuffer(t))return s(t);if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;invalid invocation&quot;);var a=i.resolve(t);if(&quot;function&quot;!=typeof e)return s(function(t){var e=n.openSync(t,&quot;r&quot;),i=n.fstatSync(e).size,a=Math.min(i,524288),o=r.alloc(a);return n.readSync(e,o,0,a,0),n.closeSync(e),o}(a),a);!function(t,e){n.open(t,&quot;r&quot;,(function(i,a){if(i)return e(i);n.fstat(a,(function(i,o){if(i)return e(i);var s=o.size;if(s&lt;=0)return e(new Error(&quot;File size is not greater than 0 \u2014\u2014 &quot;+t));var l=Math.min(s,524288),c=r.alloc(l);n.read(a,c,0,l,0,(function(t){if(t)return e(t);n.close(a,(function(t){e(t,c)}))}))}))}))}(a,(function(t,r){if(t)return e(t);var n;try{n=s(r,a)}catch(e){t=e}e(t,n)}))},e.exports.types=Object.keys(a)}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;./detector&quot;:443,&quot;./types&quot;:446,buffer:111,fs:109,path:507}],445:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){return r=r||0,t[&quot;readUInt&quot;+e+(n?&quot;BE&quot;:&quot;LE&quot;)].call(t,r)}},{}],446:[function(t,e,r){&quot;use strict&quot;;var n={bmp:t(&quot;./types/bmp&quot;),cur:t(&quot;./types/cur&quot;),dds:t(&quot;./types/dds&quot;),gif:t(&quot;./types/gif&quot;),icns:t(&quot;./types/icns&quot;),ico:t(&quot;./types/ico&quot;),jpg:t(&quot;./types/jpg&quot;),png:t(&quot;./types/png&quot;),psd:t(&quot;./types/psd&quot;),svg:t(&quot;./types/svg&quot;),tiff:t(&quot;./types/tiff&quot;),webp:t(&quot;./types/webp&quot;)};e.exports=n},{&quot;./types/bmp&quot;:447,&quot;./types/cur&quot;:448,&quot;./types/dds&quot;:449,&quot;./types/gif&quot;:450,&quot;./types/icns&quot;:451,&quot;./types/ico&quot;:452,&quot;./types/jpg&quot;:453,&quot;./types/png&quot;:454,&quot;./types/psd&quot;:455,&quot;./types/svg&quot;:456,&quot;./types/tiff&quot;:457,&quot;./types/webp&quot;:458}],447:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return&quot;BM&quot;===t.toString(&quot;ascii&quot;,0,2)},calculate:function(t){return{width:t.readUInt32LE(18),height:Math.abs(t.readInt32LE(22))}}}},{}],448:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return 0===t.readUInt16LE(0)&amp;&amp;2===t.readUInt16LE(2)},calculate:t(&quot;./ico&quot;).calculate}},{&quot;./ico&quot;:452}],449:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return 542327876===t.readUInt32LE(0)},calculate:function(t){return{height:t.readUInt32LE(12),width:t.readUInt32LE(16)}}}},{}],450:[function(t,e,r){&quot;use strict&quot;;var n=/^GIF8[79]a/;e.exports={detect:function(t){var e=t.toString(&quot;ascii&quot;,0,6);return n.test(e)},calculate:function(t){return{width:t.readUInt16LE(6),height:t.readUInt16LE(8)}}}},{}],451:[function(t,e,r){&quot;use strict&quot;;var n={ICON:32,&quot;ICN#&quot;:32,&quot;icm#&quot;:16,icm4:16,icm8:16,&quot;ics#&quot;:16,ics4:16,ics8:16,is32:16,s8mk:16,icp4:16,icl4:32,icl8:32,il32:32,l8mk:32,icp5:32,ic11:32,ich4:48,ich8:48,ih32:48,h8mk:48,icp6:64,ic12:32,it32:128,t8mk:128,ic07:128,ic08:256,ic13:256,ic09:512,ic14:512,ic10:1024};function i(t,e){var r=e+4;return[t.toString(&quot;ascii&quot;,e,r),t.readUInt32BE(r)]}function a(t){var e=n[t];return{width:e,height:e,type:t}}e.exports={detect:function(t){return&quot;icns&quot;===t.toString(&quot;ascii&quot;,0,4)},calculate:function(t){var e,r,n,o=t.length,s=8,l=t.readUInt32BE(4);if(r=a((e=i(t,s))[0]),(s+=e[1])===l)return r;for(n={width:r.width,height:r.height,images:[r]};s&lt;l&amp;&amp;s&lt;o;)r=a((e=i(t,s))[0]),s+=e[1],n.images.push(r);return n}}},{}],452:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=t.readUInt8(e);return 0===r?256:r}function i(t,e){var r=6+16*e;return{width:n(t,r),height:n(t,r+1)}}e.exports={detect:function(t){return 0===t.readUInt16LE(0)&amp;&amp;1===t.readUInt16LE(2)},calculate:function(t){var e,r=t.readUInt16LE(4),n=i(t,0);if(1===r)return n;for(n.images=[{width:n.width,height:n.height}],e=1;e&lt;r;e+=1)n.images.push(i(t,e));return n}}},{}],453:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../readUInt&quot;);function i(t){return&quot;45786966&quot;===t.toString(&quot;hex&quot;,2,6)}function a(t,e){return{height:t.readUInt16BE(e),width:t.readUInt16BE(e+2)}}function o(t,e){var r=t.slice(2,e),i=r.toString(&quot;hex&quot;,6,8),a=&quot;4d4d&quot;===i;if(a||&quot;4949&quot;===i)return function(t,e){for(var r,i,a=n(t,16,14,e),o=0;o&lt;a;o++){if(i=(r=16+12*o)+12,r&gt;t.length)return;var s=t.slice(r,i);if(274===n(s,16,0,e)){if(3!==n(s,16,2,e))return;if(1!==n(s,32,4,e))return;return n(s,16,8,e)}}}(r,a)}function s(t,e){if(e&gt;t.length)throw new TypeError(&quot;Corrupt JPG, exceeded buffer limits&quot;);if(255!==t[e])throw new TypeError(&quot;Invalid JPG, marker table corrupted&quot;)}e.exports={detect:function(t){return&quot;ffd8&quot;===t.toString(&quot;hex&quot;,0,2)},calculate:function(t){var e,r,n;for(t=t.slice(4);t.length;){if(r=t.readUInt16BE(0),i(t)&amp;&amp;(e=o(t,r)),s(t,r),192===(n=t[r+1])||193===n||194===n){var l=a(t,r+5);return e?{width:l.width,height:l.height,orientation:e}:l}t=t.slice(r+2)}throw new TypeError(&quot;Invalid JPG, no size found&quot;)}}},{&quot;../readUInt&quot;:445}],454:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){if(&quot;PNG\r\n\x1a\n&quot;===t.toString(&quot;ascii&quot;,1,8)){var e=t.toString(&quot;ascii&quot;,12,16);if(&quot;CgBI&quot;===e&amp;&amp;(e=t.toString(&quot;ascii&quot;,28,32)),&quot;IHDR&quot;!==e)throw new TypeError(&quot;invalid png&quot;);return!0}},calculate:function(t){return&quot;CgBI&quot;===t.toString(&quot;ascii&quot;,12,16)?{width:t.readUInt32BE(32),height:t.readUInt32BE(36)}:{width:t.readUInt32BE(16),height:t.readUInt32BE(20)}}}},{}],455:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return&quot;8BPS&quot;===t.toString(&quot;ascii&quot;,0,4)},calculate:function(t){return{width:t.readUInt32BE(18),height:t.readUInt32BE(14)}}}},{}],456:[function(t,e,r){&quot;use strict&quot;;var n=/&lt;svg\s([^&gt;&quot;']|&quot;[^&quot;]*&quot;|'[^']*')*&gt;/;var i={root:n,width:/\swidth=(['&quot;])([^%]+?)\1/,height:/\sheight=(['&quot;])([^%]+?)\1/,viewbox:/\sviewBox=(['&quot;])(.+?)\1/},a={cm:96/2.54,mm:96/2.54/10,m:96/2.54*100,pt:96/72,pc:96/72/12,em:16,ex:8};function o(t){var e=/([0-9.]+)([a-z]*)/.exec(t);if(e)return Math.round(parseFloat(e[1])*(a[e[2]]||1))}function s(t){var e=t.split(&quot; &quot;);return{width:o(e[2]),height:o(e[3])}}e.exports={detect:function(t){return n.test(t)},calculate:function(t){var e=t.toString(&quot;utf8&quot;).match(i.root);if(e){var r=function(t){var e=t.match(i.width),r=t.match(i.height),n=t.match(i.viewbox);return{width:e&amp;&amp;o(e[2]),height:r&amp;&amp;o(r[2]),viewbox:n&amp;&amp;s(n[2])}}(e[0]);if(r.width&amp;&amp;r.height)return function(t){return{width:t.width,height:t.height}}(r);if(r.viewbox)return function(t){var e=t.viewbox.width/t.viewbox.height;return t.width?{width:t.width,height:Math.floor(t.width/e)}:t.height?{width:Math.floor(t.height*e),height:t.height}:{width:t.viewbox.width,height:t.viewbox.height}}(r)}throw new TypeError(&quot;invalid svg&quot;)}}},{}],457:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;fs&quot;),i=t(&quot;../readUInt&quot;);function a(t,e){var r=i(t,16,8,e);return(i(t,16,10,e)&lt;&lt;16)+r}function o(t){if(t.length&gt;24)return t.slice(12)}e.exports={detect:function(t){var e=t.toString(&quot;hex&quot;,0,4);return&quot;49492a00&quot;===e||&quot;4d4d002a&quot;===e},calculate:function(t,e){if(!e)throw new TypeError(&quot;Tiff doesn't support buffer&quot;);var s=&quot;BE&quot;===function(t){var e=t.toString(&quot;ascii&quot;,0,2);return&quot;II&quot;===e?&quot;LE&quot;:&quot;MM&quot;===e?&quot;BE&quot;:void 0}(t),l=function(t,e){for(var r,n,s,l={};t&amp;&amp;t.length&amp;&amp;(r=i(t,16,0,e),n=i(t,16,2,e),s=i(t,32,4,e),0!==r);)1!==s||3!==n&amp;&amp;4!==n||(l[r]=a(t,e)),t=o(t);return l}(function(t,e,a){var o=i(t,32,4,a),s=1024,l=n.statSync(e).size;o+s&gt;l&amp;&amp;(s=l-o-10);var c=r.alloc(s),u=n.openSync(e,&quot;r&quot;);return n.readSync(u,c,0,s,o),c.slice(2)}(t,e,s),s),c=l[256],u=l[257];if(!c||!u)throw new TypeError(&quot;Invalid Tiff, missing tags&quot;);return{width:c,height:u}}}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;../readUInt&quot;:445,buffer:111,fs:109}],458:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){var e=&quot;RIFF&quot;===t.toString(&quot;ascii&quot;,0,4),r=&quot;WEBP&quot;===t.toString(&quot;ascii&quot;,8,12),n=&quot;VP8&quot;===t.toString(&quot;ascii&quot;,12,15);return e&amp;&amp;r&amp;&amp;n},calculate:function(t){var e=t.toString(&quot;ascii&quot;,12,16);if(t=t.slice(20,30),&quot;VP8X&quot;===e){var r=t[0];return!(!(0==(192&amp;r))||!(0==(1&amp;r)))&amp;&amp;function(t){return{width:1+t.readUIntLE(4,3),height:1+t.readUIntLE(7,3)}}(t)}if(&quot;VP8 &quot;===e&amp;&amp;47!==t[0])return function(t){return{width:16383&amp;t.readInt16LE(6),height:16383&amp;t.readInt16LE(8)}}(t);var n=t.toString(&quot;hex&quot;,3,6);return&quot;VP8L&quot;===e&amp;&amp;&quot;9d012a&quot;!==n&amp;&amp;function(t){return{width:1+((63&amp;t[2])&lt;&lt;8|t[1]),height:1+((15&amp;t[4])&lt;&lt;10|t[3]&lt;&lt;2|(192&amp;t[2])&gt;&gt;6)}}(t)}}},{}],459:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.length;if(0===r)throw new Error(&quot;Must have at least d+1 points&quot;);var i=t[0].length;if(r&lt;=i)throw new Error(&quot;Must input at least d+1 points&quot;);var o=t.slice(0,i+1),s=n.apply(void 0,o);if(0===s)throw new Error(&quot;Input not in general position&quot;);for(var l=new Array(i+1),u=0;u&lt;=i;++u)l[u]=u;s&lt;0&amp;&amp;(l[0]=1,l[1]=0);var f=new a(l,new Array(i+1),!1),h=f.adjacent,p=new Array(i+2);for(u=0;u&lt;=i;++u){for(var d=l.slice(),g=0;g&lt;=i;++g)g===u&amp;&amp;(d[g]=-1);var m=d[0];d[0]=d[1],d[1]=m;var v=new a(d,new Array(i+1),!0);h[u]=v,p[u]=v}p[i+1]=f;for(u=0;u&lt;=i;++u){d=h[u].vertices;var y=h[u].adjacent;for(g=0;g&lt;=i;++g){var x=d[g];if(x&lt;0)y[g]=f;else for(var b=0;b&lt;=i;++b)h[b].vertices.indexOf(x)&lt;0&amp;&amp;(y[g]=h[b])}}var _=new c(i,o,p),w=!!e;for(u=i+1;u&lt;r;++u)_.insert(t[u],w);return _.boundary()};var n=t(&quot;robust-orientation&quot;),i=t(&quot;simplicial-complex&quot;).compareCells;function a(t,e,r){this.vertices=t,this.adjacent=e,this.boundary=r,this.lastVisited=-1}function o(t,e,r){this.vertices=t,this.cell=e,this.index=r}function s(t,e){return i(t.vertices,e.vertices)}a.prototype.flip=function(){var t=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=t;var e=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=e};var l=[];function c(t,e,r){this.dimension=t,this.vertices=e,this.simplices=r,this.interior=r.filter((function(t){return!t.boundary})),this.tuple=new Array(t+1);for(var i=0;i&lt;=t;++i)this.tuple[i]=this.vertices[i];var a=l[t];a||(a=l[t]=function(t){for(var e=[&quot;function orient(){var tuple=this.tuple;return test(&quot;],r=0;r&lt;=t;++r)r&gt;0&amp;&amp;e.push(&quot;,&quot;),e.push(&quot;tuple[&quot;,r,&quot;]&quot;);e.push(&quot;)}return orient&quot;);var i=new Function(&quot;test&quot;,e.join(&quot;&quot;)),a=n[t+1];return a||(a=n),i(a)}(t)),this.orient=a}var u=c.prototype;u.handleBoundaryDegeneracy=function(t,e){var r=this.dimension,n=this.vertices.length-1,i=this.tuple,a=this.vertices,o=[t];for(t.lastVisited=-n;o.length&gt;0;){(t=o.pop()).vertices;for(var s=t.adjacent,l=0;l&lt;=r;++l){var c=s[l];if(c.boundary&amp;&amp;!(c.lastVisited&lt;=-n)){for(var u=c.vertices,f=0;f&lt;=r;++f){var h=u[f];i[f]=h&lt;0?e:a[h]}var p=this.orient();if(p&gt;0)return c;c.lastVisited=-n,0===p&amp;&amp;o.push(c)}}}return null},u.walk=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,a=this.tuple,o=e?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[o];t:for(;!s.boundary;){for(var l=s.vertices,c=s.adjacent,u=0;u&lt;=n;++u)a[u]=i[l[u]];s.lastVisited=r;for(u=0;u&lt;=n;++u){var f=c[u];if(!(f.lastVisited&gt;=r)){var h=a[u];a[u]=t;var p=this.orient();if(a[u]=h,p&lt;0){s=f;continue t}f.boundary?f.lastVisited=-r:f.lastVisited=r}}return}return s},u.addPeaks=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,l=this.tuple,c=this.interior,u=this.simplices,f=[e];e.lastVisited=r,e.vertices[e.vertices.indexOf(-1)]=r,e.boundary=!1,c.push(e);for(var h=[];f.length&gt;0;){var p=(e=f.pop()).vertices,d=e.adjacent,g=p.indexOf(r);if(!(g&lt;0))for(var m=0;m&lt;=n;++m)if(m!==g){var v=d[m];if(v.boundary&amp;&amp;!(v.lastVisited&gt;=r)){var y=v.vertices;if(v.lastVisited!==-r){for(var x=0,b=0;b&lt;=n;++b)y[b]&lt;0?(x=b,l[b]=t):l[b]=i[y[b]];if(this.orient()&gt;0){y[x]=r,v.boundary=!1,c.push(v),f.push(v),v.lastVisited=r;continue}v.lastVisited=-r}var _=v.adjacent,w=p.slice(),T=d.slice(),k=new a(w,T,!0);u.push(k);var M=_.indexOf(e);if(!(M&lt;0)){_[M]=k,T[g]=v,w[m]=-1,T[m]=e,d[m]=k,k.flip();for(b=0;b&lt;=n;++b){var A=w[b];if(!(A&lt;0||A===r)){for(var S=new Array(n-1),E=0,C=0;C&lt;=n;++C){var L=w[C];L&lt;0||C===b||(S[E++]=L)}h.push(new o(S,k,b))}}}}}}h.sort(s);for(m=0;m+1&lt;h.length;m+=2){var I=h[m],P=h[m+1],z=I.index,O=P.index;z&lt;0||O&lt;0||(I.cell.adjacent[I.index]=P.cell,P.cell.adjacent[P.index]=I.cell)}},u.insert=function(t,e){var r=this.vertices;r.push(t);var n=this.walk(t,e);if(n){for(var i=this.dimension,a=this.tuple,o=0;o&lt;=i;++o){var s=n.vertices[o];a[o]=s&lt;0?t:r[s]}var l=this.orient(a);l&lt;0||(0!==l||(n=this.handleBoundaryDegeneracy(n,t)))&amp;&amp;this.addPeaks(t,n)}},u.boundary=function(){for(var t=this.dimension,e=[],r=this.simplices,n=r.length,i=0;i&lt;n;++i){var a=r[i];if(a.boundary){for(var o=new Array(t),s=a.vertices,l=0,c=0,u=0;u&lt;=t;++u)s[u]&gt;=0?o[l++]=s[u]:c=1&amp;u;if(c===(1&amp;t)){var f=o[0];o[0]=o[1],o[1]=f}e.push(o)}}return e}},{&quot;robust-orientation&quot;:548,&quot;simplicial-complex&quot;:558}],460:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;);function i(t,e,r,n,i){this.mid=t,this.left=e,this.right=r,this.leftPoints=n,this.rightPoints=i,this.count=(e?e.count:0)+(r?r.count:0)+n.length}e.exports=function(t){if(!t||0===t.length)return new v(null);return new v(m(t))};var a=i.prototype;function o(t,e){t.mid=e.mid,t.left=e.left,t.right=e.right,t.leftPoints=e.leftPoints,t.rightPoints=e.rightPoints,t.count=e.count}function s(t,e){var r=m(e);t.mid=r.mid,t.left=r.left,t.right=r.right,t.leftPoints=r.leftPoints,t.rightPoints=r.rightPoints,t.count=r.count}function l(t,e){var r=t.intervals([]);r.push(e),s(t,r)}function c(t,e){var r=t.intervals([]),n=r.indexOf(e);return n&lt;0?0:(r.splice(n,1),s(t,r),1)}function u(t,e,r){for(var n=0;n&lt;t.length&amp;&amp;t[n][0]&lt;=e;++n){var i=r(t[n]);if(i)return i}}function f(t,e,r){for(var n=t.length-1;n&gt;=0&amp;&amp;t[n][1]&gt;=e;--n){var i=r(t[n]);if(i)return i}}function h(t,e){for(var r=0;r&lt;t.length;++r){var n=e(t[r]);if(n)return n}}function p(t,e){return t-e}function d(t,e){var r=t[0]-e[0];return r||t[1]-e[1]}function g(t,e){var r=t[1]-e[1];return r||t[0]-e[0]}function m(t){if(0===t.length)return null;for(var e=[],r=0;r&lt;t.length;++r)e.push(t[r][0],t[r][1]);e.sort(p);var n=e[e.length&gt;&gt;1],a=[],o=[],s=[];for(r=0;r&lt;t.length;++r){var l=t[r];l[1]&lt;n?a.push(l):n&lt;l[0]?o.push(l):s.push(l)}var c=s,u=s.slice();return c.sort(d),u.sort(g),new i(n,m(a),m(o),c,u)}function v(t){this.root=t}a.intervals=function(t){return t.push.apply(t,this.leftPoints),this.left&amp;&amp;this.left.intervals(t),this.right&amp;&amp;this.right.intervals(t),t},a.insert=function(t){var e=this.count-this.leftPoints.length;if(this.count+=1,t[1]&lt;this.mid)this.left?4*(this.left.count+1)&gt;3*(e+1)?l(this,t):this.left.insert(t):this.left=m([t]);else if(t[0]&gt;this.mid)this.right?4*(this.right.count+1)&gt;3*(e+1)?l(this,t):this.right.insert(t):this.right=m([t]);else{var r=n.ge(this.leftPoints,t,d),i=n.ge(this.rightPoints,t,g);this.leftPoints.splice(r,0,t),this.rightPoints.splice(i,0,t)}},a.remove=function(t){var e=this.count-this.leftPoints;if(t[1]&lt;this.mid)return this.left?4*(this.right?this.right.count:0)&gt;3*(e-1)?c(this,t):2===(s=this.left.remove(t))?(this.left=null,this.count-=1,1):(1===s&amp;&amp;(this.count-=1),s):0;if(t[0]&gt;this.mid)return this.right?4*(this.left?this.left.count:0)&gt;3*(e-1)?c(this,t):2===(s=this.right.remove(t))?(this.right=null,this.count-=1,1):(1===s&amp;&amp;(this.count-=1),s):0;if(1===this.count)return this.leftPoints[0]===t?2:0;if(1===this.leftPoints.length&amp;&amp;this.leftPoints[0]===t){if(this.left&amp;&amp;this.right){for(var r=this,i=this.left;i.right;)r=i,i=i.right;if(r===this)i.right=this.right;else{var a=this.left,s=this.right;r.count-=i.count,r.right=i.left,i.left=a,i.right=s}o(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?o(this,this.left):o(this,this.right);return 1}for(a=n.ge(this.leftPoints,t,d);a&lt;this.leftPoints.length&amp;&amp;this.leftPoints[a][0]===t[0];++a)if(this.leftPoints[a]===t){this.count-=1,this.leftPoints.splice(a,1);for(s=n.ge(this.rightPoints,t,g);s&lt;this.rightPoints.length&amp;&amp;this.rightPoints[s][1]===t[1];++s)if(this.rightPoints[s]===t)return this.rightPoints.splice(s,1),1}return 0},a.queryPoint=function(t,e){if(t&lt;this.mid){if(this.left)if(r=this.left.queryPoint(t,e))return r;return u(this.leftPoints,t,e)}if(t&gt;this.mid){var r;if(this.right)if(r=this.right.queryPoint(t,e))return r;return f(this.rightPoints,t,e)}return h(this.leftPoints,e)},a.queryInterval=function(t,e,r){var n;if(t&lt;this.mid&amp;&amp;this.left&amp;&amp;(n=this.left.queryInterval(t,e,r)))return n;if(e&gt;this.mid&amp;&amp;this.right&amp;&amp;(n=this.right.queryInterval(t,e,r)))return n;return e&lt;this.mid?u(this.leftPoints,e,r):t&gt;this.mid?f(this.rightPoints,t,r):h(this.leftPoints,r)};var y=v.prototype;y.insert=function(t){this.root?this.root.insert(t):this.root=new i(t[0],null,null,[t],[t])},y.remove=function(t){if(this.root){var e=this.root.remove(t);return 2===e&amp;&amp;(this.root=null),0!==e}return!1},y.queryPoint=function(t,e){if(this.root)return this.root.queryPoint(t,e)},y.queryInterval=function(t,e,r){if(t&lt;=e&amp;&amp;this.root)return this.root.queryInterval(t,e,r)},Object.defineProperty(y,&quot;count&quot;,{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(y,&quot;intervals&quot;,{get:function(){return this.root?this.root.intervals([]):[]}})},{&quot;binary-search-bounds&quot;:461}],461:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],462:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e=e||new Array(t.length);for(var r=0;r&lt;t.length;++r)e[t[r]]=r;return e}},{}],463:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=r;return e}},{}],464:[function(t,e,r){e.exports=!0},{}],465:[function(t,e,r){function n(t){return!!t.constructor&amp;&amp;&quot;function&quot;==typeof t.constructor.isBuffer&amp;&amp;t.constructor.isBuffer(t)}
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh &lt;https://feross.org&gt;
 * @license  MIT
 */
e.exports=function(t){return null!=t&amp;&amp;(n(t)||function(t){return&quot;function&quot;==typeof t.readFloatLE&amp;&amp;&quot;function&quot;==typeof t.slice&amp;&amp;n(t.slice(0,0))}(t)||!!t._isBuffer)}},{}],466:[function(t,e,r){&quot;use strict&quot;;e.exports=&quot;undefined&quot;!=typeof navigator&amp;&amp;(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))},{}],467:[function(t,e,r){&quot;use strict&quot;;e.exports=a,e.exports.isMobile=a,e.exports.default=a;var n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function a(t){t||(t={});var e=t.ua;if(e||&quot;undefined&quot;==typeof navigator||(e=navigator.userAgent),e&amp;&amp;e.headers&amp;&amp;&quot;string&quot;==typeof e.headers[&quot;user-agent&quot;]&amp;&amp;(e=e.headers[&quot;user-agent&quot;]),&quot;string&quot;!=typeof e)return!1;var r=t.tablet?i.test(e):n.test(e);return!r&amp;&amp;t.tablet&amp;&amp;t.featureDetect&amp;&amp;navigator&amp;&amp;navigator.maxTouchPoints&gt;1&amp;&amp;-1!==e.indexOf(&quot;Macintosh&quot;)&amp;&amp;-1!==e.indexOf(&quot;Safari&quot;)&amp;&amp;(r=!0),r}},{}],468:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=typeof t;return null!==t&amp;&amp;(&quot;object&quot;===e||&quot;function&quot;===e)}},{}],469:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString;e.exports=function(t){var e;return&quot;[object Object]&quot;===n.call(t)&amp;&amp;(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))}},{}],470:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e,r=t.length,n=0;n&lt;r;n++)if(((e=t.charCodeAt(n))&lt;9||e&gt;13)&amp;&amp;32!==e&amp;&amp;133!==e&amp;&amp;160!==e&amp;&amp;5760!==e&amp;&amp;6158!==e&amp;&amp;(e&lt;8192||e&gt;8205)&amp;&amp;8232!==e&amp;&amp;8233!==e&amp;&amp;8239!==e&amp;&amp;8287!==e&amp;&amp;8288!==e&amp;&amp;12288!==e&amp;&amp;65279!==e)return!1;return!0}},{}],471:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return&quot;string&quot;==typeof t&amp;&amp;(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&amp;&amp;/[\dz]$/i.test(t)&amp;&amp;t.length&gt;4))}},{}],472:[function(t,e,r){e.exports=function(t,e,r){return t*(1-r)+e*r}},{}],473:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?e.exports=n():(t=t||self).mapboxgl=n()}(this,(function(){&quot;use strict&quot;;var t,e,r;function n(n,i){if(t)if(e){var a=&quot;var sharedChunk = {}; (&quot;+t+&quot;)(sharedChunk); (&quot;+e+&quot;)(sharedChunk);&quot;,o={};t(o),(r=i(o)).workerUrl=window.URL.createObjectURL(new Blob([a],{type:&quot;text/javascript&quot;}))}else e=i;else t=i}return n(0,(function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r=n;function n(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}n.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},n.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},n.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},n.prototype.solveCurveX=function(t,e){var r,n,i,a,o;for(void 0===e&amp;&amp;(e=1e-6),i=t,o=0;o&lt;8;o++){if(a=this.sampleCurveX(i)-t,Math.abs(a)&lt;e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)&lt;1e-6)break;i-=a/s}if((i=t)&lt;(r=0))return r;if(i&gt;(n=1))return n;for(;r&lt;n;){if(a=this.sampleCurveX(i),Math.abs(a-t)&lt;e)return i;t&gt;a?r=i:n=i,i=.5*(n-r)+r}return i},n.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var i=a;function a(t,e){this.x=t,this.y=e}function o(t,e,n,i){var a=new r(t,e,n,i);return function(t){return a.solve(t)}}a.prototype={clone:function(){return new a(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&amp;&amp;this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=r*this.x+e*this.y;return this.x=e*this.x-r*this.y,this.y=n,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),i=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=e.x+r*(this.x-e.x)-n*(this.y-e.y),this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},a.convert=function(t){return t instanceof a?t:Array.isArray(t)?new a(t[0],t[1]):t};var s=o(.25,.1,.25,1);function l(t,e,r){return Math.min(r,Math.max(e,t))}function c(t,e,r){var n=r-e,i=((t-e)%n+n)%n+e;return i===e?r:i}function u(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}var f=1;function h(){return f++}function p(){return function t(e){return e?(e^16*Math.random()&gt;&gt;e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function d(t){return!!t&amp;&amp;/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function g(t,e){t.forEach((function(t){e[t]&amp;&amp;(e[t]=e[t].bind(e))}))}function m(t,e){return-1!==t.indexOf(e,t.length-e.length)}function v(t,e,r){var n={};for(var i in t)n[i]=e.call(r||this,t[i],i,t);return n}function y(t,e,r){var n={};for(var i in t)e.call(r||this,t[i],i,t)&amp;&amp;(n[i]=t[i]);return n}function x(t){return Array.isArray(t)?t.map(x):&quot;object&quot;==typeof t&amp;&amp;t?v(t,x):t}var b={};function _(t){b[t]||(&quot;undefined&quot;!=typeof console&amp;&amp;console.warn(t),b[t]=!0)}function w(t,e,r){return(r.y-t.y)*(e.x-t.x)&gt;(e.y-t.y)*(r.x-t.x)}function T(t){for(var e=0,r=0,n=t.length,i=n-1,a=void 0,o=void 0;r&lt;n;i=r++)e+=((o=t[i]).x-(a=t[r]).x)*(a.y+o.y);return e}function k(){return&quot;undefined&quot;!=typeof WorkerGlobalScope&amp;&amp;&quot;undefined&quot;!=typeof self&amp;&amp;self instanceof WorkerGlobalScope}function M(t){var e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)&lt;&gt;@\,;\:\\&quot;\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)&lt;&gt;@\,;\:\\&quot;\/\[\]\?\=\{\}\x7F]+)|(?:\&quot;((?:[^&quot;\\]|\\.)*)\&quot;)))?/g,(function(t,r,n,i){var a=n||i;return e[r]=!a||a.toLowerCase(),&quot;&quot;})),e[&quot;max-age&quot;]){var r=parseInt(e[&quot;max-age&quot;],10);isNaN(r)?delete e[&quot;max-age&quot;]:e[&quot;max-age&quot;]=r}return e}var A=null;function S(t){if(null==A){var e=t.navigator?t.navigator.userAgent:null;A=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match(&quot;Safari&quot;)&amp;&amp;!e.match(&quot;Chrome&quot;)))}return A}function E(t){try{var e=self[t];return e.setItem(&quot;_mapbox_test_&quot;,1),e.removeItem(&quot;_mapbox_test_&quot;),!0}catch(t){return!1}}var C,L,I,P,z=self.performance&amp;&amp;self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),O=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,D=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,R={now:z,frame:function(t){var e=O(t);return{cancel:function(){return D(e)}}},getImageData:function(t,e){void 0===e&amp;&amp;(e=0);var r=self.document.createElement(&quot;canvas&quot;),n=r.getContext(&quot;2d&quot;);if(!n)throw new Error(&quot;failed to create canvas 2d context&quot;);return r.width=t.width,r.height=t.height,n.drawImage(t,0,0,t.width,t.height),n.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return C||(C=self.document.createElement(&quot;a&quot;)),C.href=t,C.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&amp;&amp;(null==L&amp;&amp;(L=self.matchMedia(&quot;(prefers-reduced-motion: reduce)&quot;)),L.matches)}},F={API_URL:&quot;https://api.mapbox.com&quot;,get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf(&quot;https://api.mapbox.cn&quot;)?&quot;https://events.mapbox.cn/events/v2&quot;:0===this.API_URL.indexOf(&quot;https://api.mapbox.com&quot;)?&quot;https://events.mapbox.com/events/v2&quot;:null:null},FEEDBACK_URL:&quot;https://apps.mapbox.com/feedback&quot;,REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},B={supported:!1,testSupport:function(t){!N&amp;&amp;P&amp;&amp;(j?U(t):I=t)}},N=!1,j=!1;function U(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,P),t.isContextLost())return;B.supported=!0}catch(t){}t.deleteTexture(e),N=!0}self.document&amp;&amp;((P=self.document.createElement(&quot;img&quot;)).onload=function(){I&amp;&amp;U(I),I=null,j=!0},P.onerror=function(){N=!0,I=null},P.src=&quot;data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=&quot;);var V=&quot;01&quot;,q=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function H(t){return 0===t.indexOf(&quot;mapbox:&quot;)}q.prototype._createSkuToken=function(){var t=function(){for(var t=&quot;&quot;,e=0;e&lt;10;e++)t+=&quot;0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ&quot;[Math.floor(62*Math.random())];return{token:[&quot;1&quot;,V,t].join(&quot;&quot;),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},q.prototype._isSkuTokenExpired=function(){return Date.now()&gt;this._skuTokenExpiresAt},q.prototype.transformRequest=function(t,e){return this._transformRequestFn&amp;&amp;this._transformRequestFn(t,e)||{url:t}},q.prototype.normalizeStyleURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/styles/v1&quot;+r.path,this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeGlyphsURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/fonts/v1&quot;+r.path,this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeSourceURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/v4/&quot;+r.authority+&quot;.json&quot;,r.params.push(&quot;secure&quot;),this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeSpriteURL=function(t,e,r,n){var i=X(t);return H(t)?(i.path=&quot;/styles/v1&quot;+i.path+&quot;/sprite&quot;+e+r,this._makeAPIURL(i,this._customAccessToken||n)):(i.path+=&quot;&quot;+e+r,Z(i))},q.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&amp;&amp;this._createSkuToken(),t&amp;&amp;!H(t))return t;var r=X(t);r.path=r.path.replace(/(\.(png|jpg)\d*)(?=$)/,(R.devicePixelRatio&gt;=2||512===e?&quot;@2x&quot;:&quot;&quot;)+(B.supported?&quot;.webp&quot;:&quot;$1&quot;)),r.path=r.path.replace(/^.+\/v4\//,&quot;/&quot;),r.path=&quot;/v4&quot;+r.path;var n=this._customAccessToken||function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var n=r[e].match(/^access_token=(.*)$/);if(n)return n[1]}return null}(r.params)||F.ACCESS_TOKEN;return F.REQUIRE_ACCESS_TOKEN&amp;&amp;n&amp;&amp;this._skuToken&amp;&amp;r.params.push(&quot;sku=&quot;+this._skuToken),this._makeAPIURL(r,n)},q.prototype.canonicalizeTileURL=function(t,e){var r=X(t);if(!r.path.match(/(^\/v4\/)/)||!r.path.match(/\.[\w]+$/))return t;var n=&quot;mapbox://tiles/&quot;;n+=r.path.replace(&quot;/v4/&quot;,&quot;&quot;);var i=r.params;return e&amp;&amp;(i=i.filter((function(t){return!t.match(/^access_token=/)}))),i.length&amp;&amp;(n+=&quot;?&quot;+i.join(&quot;&amp;&quot;)),n},q.prototype.canonicalizeTileset=function(t,e){for(var r=!!e&amp;&amp;H(e),n=[],i=0,a=t.tiles||[];i&lt;a.length;i+=1){var o=a[i];Y(o)?n.push(this.canonicalizeTileURL(o,r)):n.push(o)}return n},q.prototype._makeAPIURL=function(t,e){var r=&quot;See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes&quot;,n=X(F.API_URL);if(t.protocol=n.protocol,t.authority=n.authority,&quot;/&quot;!==n.path&amp;&amp;(t.path=&quot;&quot;+n.path+t.path),!F.REQUIRE_ACCESS_TOKEN)return Z(t);if(!(e=e||F.ACCESS_TOKEN))throw new Error(&quot;An API access token is required to use Mapbox GL. &quot;+r);if(&quot;s&quot;===e[0])throw new Error(&quot;Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). &quot;+r);return t.params=t.params.filter((function(t){return-1===t.indexOf(&quot;access_token&quot;)})),t.params.push(&quot;access_token=&quot;+e),Z(t)};var G=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Y(t){return G.test(t)}var W=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function X(t){var e=t.match(W);if(!e)throw new Error(&quot;Unable to parse URL object&quot;);return{protocol:e[1],authority:e[2],path:e[3]||&quot;/&quot;,params:e[4]?e[4].split(&quot;&amp;&quot;):[]}}function Z(t){var e=t.params.length?&quot;?&quot;+t.params.join(&quot;&amp;&quot;):&quot;&quot;;return t.protocol+&quot;://&quot;+t.authority+t.path+e}function J(t){if(!t)return null;var e=t.split(&quot;.&quot;);if(!e||3!==e.length)return null;try{return JSON.parse(decodeURIComponent(self.atob(e[1]).split(&quot;&quot;).map((function(t){return&quot;%&quot;+(&quot;00&quot;+t.charCodeAt(0).toString(16)).slice(-2)})).join(&quot;&quot;)))}catch(t){return null}}var K=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};K.prototype.getStorageKey=function(t){var e,r=J(F.ACCESS_TOKEN);return e=r&amp;&amp;r.u?self.btoa(encodeURIComponent(r.u).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(Number(&quot;0x&quot;+e))}))):F.ACCESS_TOKEN||&quot;&quot;,t?&quot;mapbox.eventData.&quot;+t+&quot;:&quot;+e:&quot;mapbox.eventData:&quot;+e},K.prototype.fetchEventData=function(){var t=E(&quot;localStorage&quot;),e=this.getStorageKey(),r=this.getStorageKey(&quot;uuid&quot;);if(t)try{var n=self.localStorage.getItem(e);n&amp;&amp;(this.eventData=JSON.parse(n));var i=self.localStorage.getItem(r);i&amp;&amp;(this.anonId=i)}catch(t){_(&quot;Unable to read from LocalStorage&quot;)}},K.prototype.saveEventData=function(){var t=E(&quot;localStorage&quot;),e=this.getStorageKey(),r=this.getStorageKey(&quot;uuid&quot;);if(t)try{self.localStorage.setItem(r,this.anonId),Object.keys(this.eventData).length&gt;=1&amp;&amp;self.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){_(&quot;Unable to write to LocalStorage&quot;)}},K.prototype.processRequests=function(t){},K.prototype.postEvent=function(t,e,r,n){var i=this;if(F.EVENTS_URL){var a=X(F.EVENTS_URL);a.params.push(&quot;access_token=&quot;+(n||F.ACCESS_TOKEN||&quot;&quot;));var o={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:&quot;mapbox-gl-js&quot;,sdkVersion:&quot;1.10.1&quot;,skuId:V,userId:this.anonId},s=e?u(o,e):o,l={url:Z(a),headers:{&quot;Content-Type&quot;:&quot;text/plain&quot;},body:JSON.stringify([s])};this.pendingRequest=xt(l,(function(t){i.pendingRequest=null,r(t),i.saveEventData(),i.processRequests(n)}))}},K.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var Q,$,tt=function(t){function e(){t.call(this,&quot;map.load&quot;),this.success={},this.skuToken=&quot;&quot;}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.postMapLoadEvent=function(t,e,r,n){this.skuToken=r,(F.EVENTS_URL&amp;&amp;n||F.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return H(t)||Y(t)})))&amp;&amp;this.queueRequest({id:e,timestamp:Date.now()},n)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){var r=this.queue.shift(),n=r.id,i=r.timestamp;n&amp;&amp;this.success[n]||(this.anonId||this.fetchEventData(),d(this.anonId)||(this.anonId=p()),this.postEvent(i,{skuToken:this.skuToken},(function(t){t||n&amp;&amp;(e.success[n]=!0)}),t))}},e}(K),et=new(function(t){function e(e){t.call(this,&quot;appUserTurnstile&quot;),this._customAccessToken=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.postTurnstileEvent=function(t,e){F.EVENTS_URL&amp;&amp;F.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return H(t)||Y(t)}))&amp;&amp;this.queueRequest(Date.now(),e)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){this.anonId&amp;&amp;this.eventData.lastSuccess&amp;&amp;this.eventData.tokenU||this.fetchEventData();var r=J(F.ACCESS_TOKEN),n=r?r.u:F.ACCESS_TOKEN,i=n!==this.eventData.tokenU;d(this.anonId)||(this.anonId=p(),i=!0);var a=this.queue.shift();if(this.eventData.lastSuccess){var o=new Date(this.eventData.lastSuccess),s=new Date(a),l=(a-this.eventData.lastSuccess)/864e5;i=i||l&gt;=1||l&lt;-1||o.getDate()!==s.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(a,{&quot;enabled.telemetry&quot;:!1},(function(t){t||(e.eventData.lastSuccess=a,e.eventData.tokenU=n)}),t)}},e}(K)),rt=et.postTurnstileEvent.bind(et),nt=new tt,it=nt.postMapLoadEvent.bind(nt),at=500,ot=50;function st(){self.caches&amp;&amp;!Q&amp;&amp;(Q=self.caches.open(&quot;mapbox-tiles&quot;))}function lt(t){var e=t.indexOf(&quot;?&quot;);return e&lt;0?t:t.slice(0,e)}var ct,ut=1/0;function ft(){return null==ct&amp;&amp;(ct=self.OffscreenCanvas&amp;&amp;new self.OffscreenCanvas(1,1).getContext(&quot;2d&quot;)&amp;&amp;&quot;function&quot;==typeof self.createImageBitmap),ct}var ht={Unknown:&quot;Unknown&quot;,Style:&quot;Style&quot;,Source:&quot;Source&quot;,Tile:&quot;Tile&quot;,Glyphs:&quot;Glyphs&quot;,SpriteImage:&quot;SpriteImage&quot;,SpriteJSON:&quot;SpriteJSON&quot;,Image:&quot;Image&quot;};&quot;function&quot;==typeof Object.freeze&amp;&amp;Object.freeze(ht);var pt,dt,gt=function(t){function e(e,r,n){401===r&amp;&amp;Y(n)&amp;&amp;(e+=&quot;: you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes&quot;),t.call(this,e),this.status=r,this.url=n,this.name=this.constructor.name,this.message=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.toString=function(){return this.name+&quot;: &quot;+this.message+&quot; (&quot;+this.status+&quot;): &quot;+this.url},e}(Error),mt=k()?function(){return self.worker&amp;&amp;self.worker.referrer}:function(){return(&quot;blob:&quot;===self.location.protocol?self.parent:self).location.href},vt=function(t,e){if(!(/^file:/.test(r=t.url)||/^file:/.test(mt())&amp;&amp;!/^\w+:/.test(r))){if(self.fetch&amp;&amp;self.Request&amp;&amp;self.AbortController&amp;&amp;self.Request.prototype.hasOwnProperty(&quot;signal&quot;))return function(t,e){var r,n=new self.AbortController,i=new self.Request(t.url,{method:t.method||&quot;GET&quot;,body:t.body,credentials:t.credentials,headers:t.headers,referrer:mt(),signal:n.signal}),a=!1,o=!1,s=(r=i.url).indexOf(&quot;sku=&quot;)&gt;0&amp;&amp;Y(r);&quot;json&quot;===t.type&amp;&amp;i.headers.set(&quot;Accept&quot;,&quot;application/json&quot;);var l=function(r,n,a){if(!o){if(r&amp;&amp;&quot;SecurityError&quot;!==r.message&amp;&amp;_(r),n&amp;&amp;a)return c(n);var l=Date.now();self.fetch(i).then((function(r){if(r.ok){var n=s?r.clone():null;return c(r,n,l)}return e(new gt(r.statusText,r.status,t.url))})).catch((function(t){20!==t.code&amp;&amp;e(new Error(t.message))}))}},c=function(r,n,s){(&quot;arrayBuffer&quot;===t.type?r.arrayBuffer():&quot;json&quot;===t.type?r.json():r.text()).then((function(t){o||(n&amp;&amp;s&amp;&amp;function(t,e,r){if(st(),Q){var n={status:e.status,statusText:e.statusText,headers:new self.Headers};e.headers.forEach((function(t,e){return n.headers.set(e,t)}));var i=M(e.headers.get(&quot;Cache-Control&quot;)||&quot;&quot;);i[&quot;no-store&quot;]||(i[&quot;max-age&quot;]&amp;&amp;n.headers.set(&quot;Expires&quot;,new Date(r+1e3*i[&quot;max-age&quot;]).toUTCString()),new Date(n.headers.get(&quot;Expires&quot;)).getTime()-r&lt;42e4||function(t,e){if(void 0===$)try{new Response(new ReadableStream),$=!0}catch(t){$=!1}$?e(t.body):t.blob().then(e)}(e,(function(e){var r=new self.Response(e,n);st(),Q&amp;&amp;Q.then((function(e){return e.put(lt(t.url),r)})).catch((function(t){return _(t.message)}))})))}}(i,n,s),a=!0,e(null,t,r.headers.get(&quot;Cache-Control&quot;),r.headers.get(&quot;Expires&quot;)))})).catch((function(t){o||e(new Error(t.message))}))};return s?function(t,e){if(st(),!Q)return e(null);var r=lt(t.url);Q.then((function(t){t.match(r).then((function(n){var i=function(t){if(!t)return!1;var e=new Date(t.headers.get(&quot;Expires&quot;)||0),r=M(t.headers.get(&quot;Cache-Control&quot;)||&quot;&quot;);return e&gt;Date.now()&amp;&amp;!r[&quot;no-cache&quot;]}(n);t.delete(r),i&amp;&amp;t.put(r,n.clone()),e(null,n,i)})).catch(e)})).catch(e)}(i,l):l(null,null),{cancel:function(){o=!0,a||n.abort()}}}(t,e);if(k()&amp;&amp;self.worker&amp;&amp;self.worker.actor)return self.worker.actor.send(&quot;getResource&quot;,t,e,void 0,!0)}var r;return function(t,e){var r=new self.XMLHttpRequest;for(var n in r.open(t.method||&quot;GET&quot;,t.url,!0),&quot;arrayBuffer&quot;===t.type&amp;&amp;(r.responseType=&quot;arraybuffer&quot;),t.headers)r.setRequestHeader(n,t.headers[n]);return&quot;json&quot;===t.type&amp;&amp;(r.responseType=&quot;text&quot;,r.setRequestHeader(&quot;Accept&quot;,&quot;application/json&quot;)),r.withCredentials=&quot;include&quot;===t.credentials,r.onerror=function(){e(new Error(r.statusText))},r.onload=function(){if((r.status&gt;=200&amp;&amp;r.status&lt;300||0===r.status)&amp;&amp;null!==r.response){var n=r.response;if(&quot;json&quot;===t.type)try{n=JSON.parse(r.response)}catch(t){return e(t)}e(null,n,r.getResponseHeader(&quot;Cache-Control&quot;),r.getResponseHeader(&quot;Expires&quot;))}else e(new gt(r.statusText,r.status,t.url))},r.send(t.body),{cancel:function(){return r.abort()}}}(t,e)},yt=function(t,e){return vt(u(t,{type:&quot;arrayBuffer&quot;}),e)},xt=function(t,e){return vt(u(t,{method:&quot;POST&quot;}),e)};pt=[],dt=0;var bt=function(t,e){if(B.supported&amp;&amp;(t.headers||(t.headers={}),t.headers.accept=&quot;image/webp,*/*&quot;),dt&gt;=F.MAX_PARALLEL_IMAGE_REQUESTS){var r={requestParameters:t,callback:e,cancelled:!1,cancel:function(){this.cancelled=!0}};return pt.push(r),r}dt++;var n=!1,i=function(){if(!n)for(n=!0,dt--;pt.length&amp;&amp;dt&lt;F.MAX_PARALLEL_IMAGE_REQUESTS;){var t=pt.shift();t.cancelled||(t.cancel=bt(t.requestParameters,t.callback).cancel)}},a=yt(t,(function(t,r,n,a){i(),t?e(t):r&amp;&amp;(ft()?function(t,e){var r=new self.Blob([new Uint8Array(t)],{type:&quot;image/png&quot;});self.createImageBitmap(r).then((function(t){e(null,t)})).catch((function(t){e(new Error(&quot;Could not load image because of &quot;+t.message+&quot;. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.&quot;))}))}(r,e):function(t,e,r,n){var i=new self.Image,a=self.URL;i.onload=function(){e(null,i),a.revokeObjectURL(i.src)},i.onerror=function(){return e(new Error(&quot;Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.&quot;))};var o=new self.Blob([new Uint8Array(t)],{type:&quot;image/png&quot;});i.cacheControl=r,i.expires=n,i.src=t.byteLength?a.createObjectURL(o):&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=&quot;}(r,e,n,a))}));return{cancel:function(){a.cancel(),i()}}};function _t(t,e,r){r[t]&amp;&amp;-1!==r[t].indexOf(e)||(r[t]=r[t]||[],r[t].push(e))}function wt(t,e,r){if(r&amp;&amp;r[t]){var n=r[t].indexOf(e);-1!==n&amp;&amp;r[t].splice(n,1)}}var Tt=function(t,e){void 0===e&amp;&amp;(e={}),u(this,e),this.type=t},kt=function(t){function e(e,r){void 0===r&amp;&amp;(r={}),t.call(this,&quot;error&quot;,u({error:e},r))}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(Tt),Mt=function(){};Mt.prototype.on=function(t,e){return this._listeners=this._listeners||{},_t(t,e,this._listeners),this},Mt.prototype.off=function(t,e){return wt(t,e,this._listeners),wt(t,e,this._oneTimeListeners),this},Mt.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},_t(t,e,this._oneTimeListeners),this},Mt.prototype.fire=function(t,e){&quot;string&quot;==typeof t&amp;&amp;(t=new Tt(t,e||{}));var r=t.type;if(this.listens(r)){t.target=this;for(var n=0,i=this._listeners&amp;&amp;this._listeners[r]?this._listeners[r].slice():[];n&lt;i.length;n+=1)i[n].call(this,t);for(var a=0,o=this._oneTimeListeners&amp;&amp;this._oneTimeListeners[r]?this._oneTimeListeners[r].slice():[];a&lt;o.length;a+=1){var s=o[a];wt(r,s,this._oneTimeListeners),s.call(this,t)}var l=this._eventedParent;l&amp;&amp;(u(t,&quot;function&quot;==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),l.fire(t))}else t instanceof kt&amp;&amp;console.error(t.error);return this},Mt.prototype.listens=function(t){return this._listeners&amp;&amp;this._listeners[t]&amp;&amp;this._listeners[t].length&gt;0||this._oneTimeListeners&amp;&amp;this._oneTimeListeners[t]&amp;&amp;this._oneTimeListeners[t].length&gt;0||this._eventedParent&amp;&amp;this._eventedParent.listens(t)},Mt.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var At={$version:8,$root:{version:{required:!0,type:&quot;enum&quot;,values:[8]},name:{type:&quot;string&quot;},metadata:{type:&quot;*&quot;},center:{type:&quot;array&quot;,value:&quot;number&quot;},zoom:{type:&quot;number&quot;},bearing:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;},pitch:{type:&quot;number&quot;,default:0,units:&quot;degrees&quot;},light:{type:&quot;light&quot;},sources:{required:!0,type:&quot;sources&quot;},sprite:{type:&quot;string&quot;},glyphs:{type:&quot;string&quot;},transition:{type:&quot;transition&quot;},layers:{required:!0,type:&quot;array&quot;,value:&quot;layer&quot;}},sources:{&quot;*&quot;:{type:&quot;source&quot;}},source:[&quot;source_vector&quot;,&quot;source_raster&quot;,&quot;source_raster_dem&quot;,&quot;source_geojson&quot;,&quot;source_video&quot;,&quot;source_image&quot;],source_vector:{type:{required:!0,type:&quot;enum&quot;,values:{vector:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:&quot;enum&quot;,values:{xyz:{},tms:{}},default:&quot;xyz&quot;},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},attribution:{type:&quot;string&quot;},promoteId:{type:&quot;promoteId&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_raster:{type:{required:!0,type:&quot;enum&quot;,values:{raster:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},tileSize:{type:&quot;number&quot;,default:512,units:&quot;pixels&quot;},scheme:{type:&quot;enum&quot;,values:{xyz:{},tms:{}},default:&quot;xyz&quot;},attribution:{type:&quot;string&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_raster_dem:{type:{required:!0,type:&quot;enum&quot;,values:{&quot;raster-dem&quot;:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},tileSize:{type:&quot;number&quot;,default:512,units:&quot;pixels&quot;},attribution:{type:&quot;string&quot;},encoding:{type:&quot;enum&quot;,values:{terrarium:{},mapbox:{}},default:&quot;mapbox&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_geojson:{type:{required:!0,type:&quot;enum&quot;,values:{geojson:{}}},data:{type:&quot;*&quot;},maxzoom:{type:&quot;number&quot;,default:18},attribution:{type:&quot;string&quot;},buffer:{type:&quot;number&quot;,default:128,maximum:512,minimum:0},tolerance:{type:&quot;number&quot;,default:.375},cluster:{type:&quot;boolean&quot;,default:!1},clusterRadius:{type:&quot;number&quot;,default:50,minimum:0},clusterMaxZoom:{type:&quot;number&quot;},clusterProperties:{type:&quot;*&quot;},lineMetrics:{type:&quot;boolean&quot;,default:!1},generateId:{type:&quot;boolean&quot;,default:!1},promoteId:{type:&quot;promoteId&quot;}},source_video:{type:{required:!0,type:&quot;enum&quot;,values:{video:{}}},urls:{required:!0,type:&quot;array&quot;,value:&quot;string&quot;},coordinates:{required:!0,type:&quot;array&quot;,length:4,value:{type:&quot;array&quot;,length:2,value:&quot;number&quot;}}},source_image:{type:{required:!0,type:&quot;enum&quot;,values:{image:{}}},url:{required:!0,type:&quot;string&quot;},coordinates:{required:!0,type:&quot;array&quot;,length:4,value:{type:&quot;array&quot;,length:2,value:&quot;number&quot;}}},layer:{id:{type:&quot;string&quot;,required:!0},type:{type:&quot;enum&quot;,values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},&quot;fill-extrusion&quot;:{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:&quot;*&quot;},source:{type:&quot;string&quot;},&quot;source-layer&quot;:{type:&quot;string&quot;},minzoom:{type:&quot;number&quot;,minimum:0,maximum:24},maxzoom:{type:&quot;number&quot;,minimum:0,maximum:24},filter:{type:&quot;filter&quot;},layout:{type:&quot;layout&quot;},paint:{type:&quot;paint&quot;}},layout:[&quot;layout_fill&quot;,&quot;layout_line&quot;,&quot;layout_circle&quot;,&quot;layout_heatmap&quot;,&quot;layout_fill-extrusion&quot;,&quot;layout_symbol&quot;,&quot;layout_raster&quot;,&quot;layout_hillshade&quot;,&quot;layout_background&quot;],layout_background:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_fill:{&quot;fill-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_circle:{&quot;circle-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_heatmap:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},&quot;layout_fill-extrusion&quot;:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_line:{&quot;line-cap&quot;:{type:&quot;enum&quot;,values:{butt:{},round:{},square:{}},default:&quot;butt&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-join&quot;:{type:&quot;enum&quot;,values:{bevel:{},round:{},miter:{}},default:&quot;miter&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-miter-limit&quot;:{type:&quot;number&quot;,default:2,requires:[{&quot;line-join&quot;:&quot;miter&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-round-limit&quot;:{type:&quot;number&quot;,default:1.05,requires:[{&quot;line-join&quot;:&quot;round&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_symbol:{&quot;symbol-placement&quot;:{type:&quot;enum&quot;,values:{point:{},line:{},&quot;line-center&quot;:{}},default:&quot;point&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-spacing&quot;:{type:&quot;number&quot;,default:250,minimum:1,units:&quot;pixels&quot;,requires:[{&quot;symbol-placement&quot;:&quot;line&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-avoid-edges&quot;:{type:&quot;boolean&quot;,default:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;symbol-z-order&quot;:{type:&quot;enum&quot;,values:{auto:{},&quot;viewport-y&quot;:{},source:{}},default:&quot;auto&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-allow-overlap&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-ignore-placement&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-optional&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;,&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-rotation-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-size&quot;:{type:&quot;number&quot;,default:1,minimum:0,units:&quot;factor of the original icon size&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-text-fit&quot;:{type:&quot;enum&quot;,values:{none:{},width:{},height:{},both:{}},default:&quot;none&quot;,requires:[&quot;icon-image&quot;,&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-text-fit-padding&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[0,0,0,0],units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;,&quot;text-field&quot;,{&quot;icon-text-fit&quot;:[&quot;both&quot;,&quot;width&quot;,&quot;height&quot;]}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-image&quot;:{type:&quot;resolvedImage&quot;,tokens:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-padding&quot;:{type:&quot;number&quot;,default:2,minimum:0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-keep-upright&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;,{&quot;icon-rotation-alignment&quot;:&quot;map&quot;},{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-offset&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-anchor&quot;:{type:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},default:&quot;center&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-rotation-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-field&quot;:{type:&quot;formatted&quot;,default:&quot;&quot;,tokens:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-font&quot;:{type:&quot;array&quot;,value:&quot;string&quot;,default:[&quot;Open Sans Regular&quot;,&quot;Arial Unicode MS Regular&quot;],requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-size&quot;:{type:&quot;number&quot;,default:16,minimum:0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-max-width&quot;:{type:&quot;number&quot;,default:10,minimum:0,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-line-height&quot;:{type:&quot;number&quot;,default:1.2,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-letter-spacing&quot;:{type:&quot;number&quot;,default:0,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-justify&quot;:{type:&quot;enum&quot;,values:{auto:{},left:{},center:{},right:{}},default:&quot;center&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-radial-offset&quot;:{type:&quot;number&quot;,units:&quot;ems&quot;,default:0,requires:[&quot;text-field&quot;],&quot;property-type&quot;:&quot;data-driven&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]}},&quot;text-variable-anchor&quot;:{type:&quot;array&quot;,value:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;point&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-anchor&quot;:{type:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},default:&quot;center&quot;,requires:[&quot;text-field&quot;,{&quot;!&quot;:&quot;text-variable-anchor&quot;}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-max-angle&quot;:{type:&quot;number&quot;,default:45,units:&quot;degrees&quot;,requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-writing-mode&quot;:{type:&quot;array&quot;,value:&quot;enum&quot;,values:{horizontal:{},vertical:{}},requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;point&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-padding&quot;:{type:&quot;number&quot;,default:2,minimum:0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-keep-upright&quot;:{type:&quot;boolean&quot;,default:!0,requires:[&quot;text-field&quot;,{&quot;text-rotation-alignment&quot;:&quot;map&quot;},{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-transform&quot;:{type:&quot;enum&quot;,values:{none:{},uppercase:{},lowercase:{}},default:&quot;none&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-offset&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,units:&quot;ems&quot;,length:2,default:[0,0],requires:[&quot;text-field&quot;,{&quot;!&quot;:&quot;text-radial-offset&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-allow-overlap&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-ignore-placement&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-optional&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;,&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_raster:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_hillshade:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},filter:{type:&quot;array&quot;,value:&quot;*&quot;},filter_operator:{type:&quot;enum&quot;,values:{&quot;==&quot;:{},&quot;!=&quot;:{},&quot;&gt;&quot;:{},&quot;&gt;=&quot;:{},&quot;&lt;&quot;:{},&quot;&lt;=&quot;:{},in:{},&quot;!in&quot;:{},all:{},any:{},none:{},has:{},&quot;!has&quot;:{},within:{}}},geometry_type:{type:&quot;enum&quot;,values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:&quot;expression&quot;},stops:{type:&quot;array&quot;,value:&quot;function_stop&quot;},base:{type:&quot;number&quot;,default:1,minimum:0},property:{type:&quot;string&quot;,default:&quot;$zoom&quot;},type:{type:&quot;enum&quot;,values:{identity:{},exponential:{},interval:{},categorical:{}},default:&quot;exponential&quot;},colorSpace:{type:&quot;enum&quot;,values:{rgb:{},lab:{},hcl:{}},default:&quot;rgb&quot;},default:{type:&quot;*&quot;,required:!1}},function_stop:{type:&quot;array&quot;,minimum:0,maximum:24,value:[&quot;number&quot;,&quot;color&quot;],length:2},expression:{type:&quot;array&quot;,value:&quot;*&quot;,minimum:1},expression_name:{type:&quot;enum&quot;,values:{let:{group:&quot;Variable binding&quot;},var:{group:&quot;Variable binding&quot;},literal:{group:&quot;Types&quot;},array:{group:&quot;Types&quot;},at:{group:&quot;Lookup&quot;},in:{group:&quot;Lookup&quot;},&quot;index-of&quot;:{group:&quot;Lookup&quot;},slice:{group:&quot;Lookup&quot;},case:{group:&quot;Decision&quot;},match:{group:&quot;Decision&quot;},coalesce:{group:&quot;Decision&quot;},step:{group:&quot;Ramps, scales, curves&quot;},interpolate:{group:&quot;Ramps, scales, curves&quot;},&quot;interpolate-hcl&quot;:{group:&quot;Ramps, scales, curves&quot;},&quot;interpolate-lab&quot;:{group:&quot;Ramps, scales, curves&quot;},ln2:{group:&quot;Math&quot;},pi:{group:&quot;Math&quot;},e:{group:&quot;Math&quot;},typeof:{group:&quot;Types&quot;},string:{group:&quot;Types&quot;},number:{group:&quot;Types&quot;},boolean:{group:&quot;Types&quot;},object:{group:&quot;Types&quot;},collator:{group:&quot;Types&quot;},format:{group:&quot;Types&quot;},image:{group:&quot;Types&quot;},&quot;number-format&quot;:{group:&quot;Types&quot;},&quot;to-string&quot;:{group:&quot;Types&quot;},&quot;to-number&quot;:{group:&quot;Types&quot;},&quot;to-boolean&quot;:{group:&quot;Types&quot;},&quot;to-rgba&quot;:{group:&quot;Color&quot;},&quot;to-color&quot;:{group:&quot;Types&quot;},rgb:{group:&quot;Color&quot;},rgba:{group:&quot;Color&quot;},get:{group:&quot;Lookup&quot;},has:{group:&quot;Lookup&quot;},length:{group:&quot;Lookup&quot;},properties:{group:&quot;Feature data&quot;},&quot;feature-state&quot;:{group:&quot;Feature data&quot;},&quot;geometry-type&quot;:{group:&quot;Feature data&quot;},id:{group:&quot;Feature data&quot;},zoom:{group:&quot;Zoom&quot;},&quot;heatmap-density&quot;:{group:&quot;Heatmap&quot;},&quot;line-progress&quot;:{group:&quot;Feature data&quot;},accumulated:{group:&quot;Feature data&quot;},&quot;+&quot;:{group:&quot;Math&quot;},&quot;*&quot;:{group:&quot;Math&quot;},&quot;-&quot;:{group:&quot;Math&quot;},&quot;/&quot;:{group:&quot;Math&quot;},&quot;%&quot;:{group:&quot;Math&quot;},&quot;^&quot;:{group:&quot;Math&quot;},sqrt:{group:&quot;Math&quot;},log10:{group:&quot;Math&quot;},ln:{group:&quot;Math&quot;},log2:{group:&quot;Math&quot;},sin:{group:&quot;Math&quot;},cos:{group:&quot;Math&quot;},tan:{group:&quot;Math&quot;},asin:{group:&quot;Math&quot;},acos:{group:&quot;Math&quot;},atan:{group:&quot;Math&quot;},min:{group:&quot;Math&quot;},max:{group:&quot;Math&quot;},round:{group:&quot;Math&quot;},abs:{group:&quot;Math&quot;},ceil:{group:&quot;Math&quot;},floor:{group:&quot;Math&quot;},distance:{group:&quot;Math&quot;},&quot;==&quot;:{group:&quot;Decision&quot;},&quot;!=&quot;:{group:&quot;Decision&quot;},&quot;&gt;&quot;:{group:&quot;Decision&quot;},&quot;&lt;&quot;:{group:&quot;Decision&quot;},&quot;&gt;=&quot;:{group:&quot;Decision&quot;},&quot;&lt;=&quot;:{group:&quot;Decision&quot;},all:{group:&quot;Decision&quot;},any:{group:&quot;Decision&quot;},&quot;!&quot;:{group:&quot;Decision&quot;},within:{group:&quot;Decision&quot;},&quot;is-supported-script&quot;:{group:&quot;String&quot;},upcase:{group:&quot;String&quot;},downcase:{group:&quot;String&quot;},concat:{group:&quot;String&quot;},&quot;resolved-locale&quot;:{group:&quot;String&quot;}}},light:{anchor:{type:&quot;enum&quot;,default:&quot;viewport&quot;,values:{map:{},viewport:{}},&quot;property-type&quot;:&quot;data-constant&quot;,transition:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]}},position:{type:&quot;array&quot;,default:[1.15,210,30],length:3,value:&quot;number&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]}},color:{type:&quot;color&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,default:&quot;#ffffff&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},transition:!0},intensity:{type:&quot;number&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},transition:!0}},paint:[&quot;paint_fill&quot;,&quot;paint_line&quot;,&quot;paint_circle&quot;,&quot;paint_heatmap&quot;,&quot;paint_fill-extrusion&quot;,&quot;paint_symbol&quot;,&quot;paint_raster&quot;,&quot;paint_hillshade&quot;,&quot;paint_background&quot;],paint_fill:{&quot;fill-antialias&quot;:{type:&quot;boolean&quot;,default:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-outline-color&quot;:{type:&quot;color&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-pattern&quot;},{&quot;fill-antialias&quot;:!0}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;fill-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;}},&quot;paint_fill-extrusion&quot;:{&quot;fill-extrusion-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-extrusion-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;fill-extrusion-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;},&quot;fill-extrusion-height&quot;:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;meters&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-base&quot;:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;meters&quot;,transition:!0,requires:[&quot;fill-extrusion-height&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-vertical-gradient&quot;:{type:&quot;boolean&quot;,default:!0,transition:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_line:{&quot;line-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;line-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;line-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-width&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-gap-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-offset&quot;:{type:&quot;number&quot;,default:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-dasharray&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,minimum:0,transition:!0,units:&quot;line widths&quot;,requires:[{&quot;!&quot;:&quot;line-pattern&quot;}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;cross-faded&quot;},&quot;line-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;},&quot;line-gradient&quot;:{type:&quot;color&quot;,transition:!1,requires:[{&quot;!&quot;:&quot;line-dasharray&quot;},{&quot;!&quot;:&quot;line-pattern&quot;},{source:&quot;geojson&quot;,has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:[&quot;line-progress&quot;]},&quot;property-type&quot;:&quot;color-ramp&quot;}},paint_circle:{&quot;circle-radius&quot;:{type:&quot;number&quot;,default:5,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-blur&quot;:{type:&quot;number&quot;,default:0,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;circle-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-pitch-scale&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;viewport&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-stroke-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-stroke-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-stroke-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;}},paint_heatmap:{&quot;heatmap-radius&quot;:{type:&quot;number&quot;,default:30,minimum:1,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;heatmap-weight&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;heatmap-intensity&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;heatmap-color&quot;:{type:&quot;color&quot;,default:[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;heatmap-density&quot;],0,&quot;rgba(0, 0, 255, 0)&quot;,.1,&quot;royalblue&quot;,.3,&quot;cyan&quot;,.5,&quot;lime&quot;,.7,&quot;yellow&quot;,1,&quot;red&quot;],transition:!1,expression:{interpolated:!0,parameters:[&quot;heatmap-density&quot;]},&quot;property-type&quot;:&quot;color-ramp&quot;},&quot;heatmap-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_symbol:{&quot;icon-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-color&quot;:{type:&quot;color&quot;,default:&quot;rgba(0, 0, 0, 0)&quot;,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;icon-image&quot;,&quot;icon-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,overridable:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-color&quot;:{type:&quot;color&quot;,default:&quot;rgba(0, 0, 0, 0)&quot;,transition:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;text-field&quot;,&quot;text-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_raster:{&quot;raster-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-hue-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,transition:!0,units:&quot;degrees&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-brightness-min&quot;:{type:&quot;number&quot;,default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-brightness-max&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-saturation&quot;:{type:&quot;number&quot;,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-contrast&quot;:{type:&quot;number&quot;,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-resampling&quot;:{type:&quot;enum&quot;,values:{linear:{},nearest:{}},default:&quot;linear&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-fade-duration&quot;:{type:&quot;number&quot;,default:300,minimum:0,transition:!1,units:&quot;milliseconds&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_hillshade:{&quot;hillshade-illumination-direction&quot;:{type:&quot;number&quot;,default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-illumination-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;viewport&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-exaggeration&quot;:{type:&quot;number&quot;,default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-shadow-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-highlight-color&quot;:{type:&quot;color&quot;,default:&quot;#FFFFFF&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-accent-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_background:{&quot;background-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;background-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;background-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;cross-faded&quot;},&quot;background-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},transition:{duration:{type:&quot;number&quot;,default:300,minimum:0,units:&quot;milliseconds&quot;},delay:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;milliseconds&quot;}},&quot;property-type&quot;:{&quot;data-driven&quot;:{type:&quot;property-type&quot;},&quot;cross-faded&quot;:{type:&quot;property-type&quot;},&quot;cross-faded-data-driven&quot;:{type:&quot;property-type&quot;},&quot;color-ramp&quot;:{type:&quot;property-type&quot;},&quot;data-constant&quot;:{type:&quot;property-type&quot;},constant:{type:&quot;property-type&quot;}},promoteId:{&quot;*&quot;:{type:&quot;string&quot;}}},St=function(t,e,r,n){this.message=(t?t+&quot;: &quot;:&quot;&quot;)+r,n&amp;&amp;(this.identifier=n),null!=e&amp;&amp;e.__line__&amp;&amp;(this.line=e.__line__)};function Et(t){var e=t.value;return e?[new St(t.key,e,&quot;constants have been deprecated as of v8&quot;)]:[]}function Ct(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}function Lt(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function It(t){if(Array.isArray(t))return t.map(It);if(t instanceof Object&amp;&amp;!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var r in t)e[r]=It(t[r]);return e}return Lt(t)}var Pt=function(t){function e(e,r){t.call(this,r),this.message=r,this.key=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(Error),zt=function(t,e){void 0===e&amp;&amp;(e=[]),this.parent=t,this.bindings={};for(var r=0,n=e;r&lt;n.length;r+=1){var i=n[r];this.bindings[i[0]]=i[1]}};zt.prototype.concat=function(t){return new zt(this,t)},zt.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+&quot; not found in scope.&quot;)},zt.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&amp;&amp;this.parent.has(t)};var Ot={kind:&quot;null&quot;},Dt={kind:&quot;number&quot;},Rt={kind:&quot;string&quot;},Ft={kind:&quot;boolean&quot;},Bt={kind:&quot;color&quot;},Nt={kind:&quot;object&quot;},jt={kind:&quot;value&quot;},Ut={kind:&quot;collator&quot;},Vt={kind:&quot;formatted&quot;},qt={kind:&quot;resolvedImage&quot;};function Ht(t,e){return{kind:&quot;array&quot;,itemType:t,N:e}}function Gt(t){if(&quot;array&quot;===t.kind){var e=Gt(t.itemType);return&quot;number&quot;==typeof t.N?&quot;array&lt;&quot;+e+&quot;, &quot;+t.N+&quot;&gt;&quot;:&quot;value&quot;===t.itemType.kind?&quot;array&quot;:&quot;array&lt;&quot;+e+&quot;&gt;&quot;}return t.kind}var Yt=[Ot,Dt,Rt,Ft,Bt,Vt,Nt,Ht(jt),qt];function Wt(t,e){if(&quot;error&quot;===e.kind)return null;if(&quot;array&quot;===t.kind){if(&quot;array&quot;===e.kind&amp;&amp;(0===e.N&amp;&amp;&quot;value&quot;===e.itemType.kind||!Wt(t.itemType,e.itemType))&amp;&amp;(&quot;number&quot;!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(&quot;value&quot;===t.kind)for(var r=0,n=Yt;r&lt;n.length;r+=1)if(!Wt(n[r],e))return null}return&quot;Expected &quot;+Gt(t)+&quot; but found &quot;+Gt(e)+&quot; instead.&quot;}function Xt(t,e){return e.some((function(e){return e.kind===t.kind}))}function Zt(t,e){return e.some((function(e){return&quot;null&quot;===e?null===t:&quot;array&quot;===e?Array.isArray(t):&quot;object&quot;===e?t&amp;&amp;!Array.isArray(t)&amp;&amp;&quot;object&quot;==typeof t:e===typeof t}))}var Jt=e((function(t,e){var r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function n(t){return(t=Math.round(t))&lt;0?0:t&gt;255?255:t}function i(t){return n(&quot;%&quot;===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function a(t){return(e=&quot;%&quot;===t[t.length-1]?parseFloat(t)/100:parseFloat(t))&lt;0?0:e&gt;1?1:e;var e}function o(t,e,r){return r&lt;0?r+=1:r&gt;1&amp;&amp;(r-=1),6*r&lt;1?t+(e-t)*r*6:2*r&lt;1?e:3*r&lt;2?t+(e-t)*(2/3-r)*6:t}try{e.parseCSSColor=function(t){var e,s=t.replace(/ /g,&quot;&quot;).toLowerCase();if(s in r)return r[s].slice();if(&quot;#&quot;===s[0])return 4===s.length?(e=parseInt(s.substr(1),16))&gt;=0&amp;&amp;e&lt;=4095?[(3840&amp;e)&gt;&gt;4|(3840&amp;e)&gt;&gt;8,240&amp;e|(240&amp;e)&gt;&gt;4,15&amp;e|(15&amp;e)&lt;&lt;4,1]:null:7===s.length&amp;&amp;(e=parseInt(s.substr(1),16))&gt;=0&amp;&amp;e&lt;=16777215?[(16711680&amp;e)&gt;&gt;16,(65280&amp;e)&gt;&gt;8,255&amp;e,1]:null;var l=s.indexOf(&quot;(&quot;),c=s.indexOf(&quot;)&quot;);if(-1!==l&amp;&amp;c+1===s.length){var u=s.substr(0,l),f=s.substr(l+1,c-(l+1)).split(&quot;,&quot;),h=1;switch(u){case&quot;rgba&quot;:if(4!==f.length)return null;h=a(f.pop());case&quot;rgb&quot;:return 3!==f.length?null:[i(f[0]),i(f[1]),i(f[2]),h];case&quot;hsla&quot;:if(4!==f.length)return null;h=a(f.pop());case&quot;hsl&quot;:if(3!==f.length)return null;var p=(parseFloat(f[0])%360+360)%360/360,d=a(f[1]),g=a(f[2]),m=g&lt;=.5?g*(d+1):g+d-g*d,v=2*g-m;return[n(255*o(v,m,p+1/3)),n(255*o(v,m,p)),n(255*o(v,m,p-1/3)),h];default:return null}}return null}}catch(t){}})).parseCSSColor,Kt=function(t,e,r,n){void 0===n&amp;&amp;(n=1),this.r=t,this.g=e,this.b=r,this.a=n};Kt.parse=function(t){if(t){if(t instanceof Kt)return t;if(&quot;string&quot;==typeof t){var e=Jt(t);if(e)return new Kt(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},Kt.prototype.toString=function(){var t=this.toArray(),e=t[1],r=t[2],n=t[3];return&quot;rgba(&quot;+Math.round(t[0])+&quot;,&quot;+Math.round(e)+&quot;,&quot;+Math.round(r)+&quot;,&quot;+n+&quot;)&quot;},Kt.prototype.toArray=function(){var t=this.a;return 0===t?[0,0,0,0]:[255*this.r/t,255*this.g/t,255*this.b/t,t]},Kt.black=new Kt(0,0,0,1),Kt.white=new Kt(1,1,1,1),Kt.transparent=new Kt(0,0,0,0),Kt.red=new Kt(1,0,0,1);var Qt=function(t,e,r){this.sensitivity=t?e?&quot;variant&quot;:&quot;case&quot;:e?&quot;accent&quot;:&quot;base&quot;,this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:&quot;search&quot;})};Qt.prototype.compare=function(t,e){return this.collator.compare(t,e)},Qt.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var $t=function(t,e,r,n,i){this.text=t,this.image=e,this.scale=r,this.fontStack=n,this.textColor=i},te=function(t){this.sections=t};te.fromString=function(t){return new te([new $t(t,null,null,null,null)])},te.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&amp;&amp;0!==t.image.name.length}))},te.factory=function(t){return t instanceof te?t:te.fromString(t)},te.prototype.toString=function(){return 0===this.sections.length?&quot;&quot;:this.sections.map((function(t){return t.text})).join(&quot;&quot;)},te.prototype.serialize=function(){for(var t=[&quot;format&quot;],e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];if(n.image)t.push([&quot;image&quot;,n.image.name]);else{t.push(n.text);var i={};n.fontStack&amp;&amp;(i[&quot;text-font&quot;]=[&quot;literal&quot;,n.fontStack.split(&quot;,&quot;)]),n.scale&amp;&amp;(i[&quot;font-scale&quot;]=n.scale),n.textColor&amp;&amp;(i[&quot;text-color&quot;]=[&quot;rgba&quot;].concat(n.textColor.toArray())),t.push(i)}}return t};var ee=function(t){this.name=t.name,this.available=t.available};function re(t,e,r,n){return&quot;number&quot;==typeof t&amp;&amp;t&gt;=0&amp;&amp;t&lt;=255&amp;&amp;&quot;number&quot;==typeof e&amp;&amp;e&gt;=0&amp;&amp;e&lt;=255&amp;&amp;&quot;number&quot;==typeof r&amp;&amp;r&gt;=0&amp;&amp;r&lt;=255?void 0===n||&quot;number&quot;==typeof n&amp;&amp;n&gt;=0&amp;&amp;n&lt;=1?null:&quot;Invalid rgba value [&quot;+[t,e,r,n].join(&quot;, &quot;)+&quot;]: 'a' must be between 0 and 1.&quot;:&quot;Invalid rgba value [&quot;+(&quot;number&quot;==typeof n?[t,e,r,n]:[t,e,r]).join(&quot;, &quot;)+&quot;]: 'r', 'g', and 'b' must be between 0 and 255.&quot;}function ne(t){if(null===t)return!0;if(&quot;string&quot;==typeof t)return!0;if(&quot;boolean&quot;==typeof t)return!0;if(&quot;number&quot;==typeof t)return!0;if(t instanceof Kt)return!0;if(t instanceof Qt)return!0;if(t instanceof te)return!0;if(t instanceof ee)return!0;if(Array.isArray(t)){for(var e=0,r=t;e&lt;r.length;e+=1)if(!ne(r[e]))return!1;return!0}if(&quot;object&quot;==typeof t){for(var n in t)if(!ne(t[n]))return!1;return!0}return!1}function ie(t){if(null===t)return Ot;if(&quot;string&quot;==typeof t)return Rt;if(&quot;boolean&quot;==typeof t)return Ft;if(&quot;number&quot;==typeof t)return Dt;if(t instanceof Kt)return Bt;if(t instanceof Qt)return Ut;if(t instanceof te)return Vt;if(t instanceof ee)return qt;if(Array.isArray(t)){for(var e,r=t.length,n=0,i=t;n&lt;i.length;n+=1){var a=ie(i[n]);if(e){if(e===a)continue;e=jt;break}e=a}return Ht(e||jt,r)}return Nt}function ae(t){var e=typeof t;return null===t?&quot;&quot;:&quot;string&quot;===e||&quot;number&quot;===e||&quot;boolean&quot;===e?String(t):t instanceof Kt||t instanceof te||t instanceof ee?t.toString():JSON.stringify(t)}ee.prototype.toString=function(){return this.name},ee.fromString=function(t){return t?new ee({name:t,available:!1}):null},ee.prototype.serialize=function(){return[&quot;image&quot;,this.name]};var oe=function(t,e){this.type=t,this.value=e};oe.parse=function(t,e){if(2!==t.length)return e.error(&quot;'literal' expression requires exactly one argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);if(!ne(t[1]))return e.error(&quot;invalid value&quot;);var r=t[1],n=ie(r),i=e.expectedType;return&quot;array&quot;!==n.kind||0!==n.N||!i||&quot;array&quot;!==i.kind||&quot;number&quot;==typeof i.N&amp;&amp;0!==i.N||(n=i),new oe(n,r)},oe.prototype.evaluate=function(){return this.value},oe.prototype.eachChild=function(){},oe.prototype.outputDefined=function(){return!0},oe.prototype.serialize=function(){return&quot;array&quot;===this.type.kind||&quot;object&quot;===this.type.kind?[&quot;literal&quot;,this.value]:this.value instanceof Kt?[&quot;rgba&quot;].concat(this.value.toArray()):this.value instanceof te?this.value.serialize():this.value};var se=function(t){this.name=&quot;ExpressionEvaluationError&quot;,this.message=t};se.prototype.toJSON=function(){return this.message};var le={string:Rt,number:Dt,boolean:Ft,object:Nt},ce=function(t,e){this.type=t,this.args=e};ce.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r,n=1,i=t[0];if(&quot;array&quot;===i){var a,o;if(t.length&gt;2){var s=t[1];if(&quot;string&quot;!=typeof s||!(s in le)||&quot;object&quot;===s)return e.error('The item type argument of &quot;array&quot; must be one of string, number, boolean',1);a=le[s],n++}else a=jt;if(t.length&gt;3){if(null!==t[2]&amp;&amp;(&quot;number&quot;!=typeof t[2]||t[2]&lt;0||t[2]!==Math.floor(t[2])))return e.error('The length argument to &quot;array&quot; must be a positive integer literal',2);o=t[2],n++}r=Ht(a,o)}else r=le[i];for(var l=[];n&lt;t.length;n++){var c=e.parse(t[n],n,jt);if(!c)return null;l.push(c)}return new ce(r,l)},ce.prototype.evaluate=function(t){for(var e=0;e&lt;this.args.length;e++){var r=this.args[e].evaluate(t);if(!Wt(this.type,ie(r)))return r;if(e===this.args.length-1)throw new se(&quot;Expected value to be of type &quot;+Gt(this.type)+&quot;, but found &quot;+Gt(ie(r))+&quot; instead.&quot;)}return null},ce.prototype.eachChild=function(t){this.args.forEach(t)},ce.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ce.prototype.serialize=function(){var t=this.type,e=[t.kind];if(&quot;array&quot;===t.kind){var r=t.itemType;if(&quot;string&quot;===r.kind||&quot;number&quot;===r.kind||&quot;boolean&quot;===r.kind){e.push(r.kind);var n=t.N;(&quot;number&quot;==typeof n||this.args.length&gt;1)&amp;&amp;e.push(n)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var ue=function(t){this.type=Vt,this.sections=t};ue.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r=t[1];if(!Array.isArray(r)&amp;&amp;&quot;object&quot;==typeof r)return e.error(&quot;First argument must be an image or text section.&quot;);for(var n=[],i=!1,a=1;a&lt;=t.length-1;++a){var o=t[a];if(i&amp;&amp;&quot;object&quot;==typeof o&amp;&amp;!Array.isArray(o)){i=!1;var s=null;if(o[&quot;font-scale&quot;]&amp;&amp;!(s=e.parse(o[&quot;font-scale&quot;],1,Dt)))return null;var l=null;if(o[&quot;text-font&quot;]&amp;&amp;!(l=e.parse(o[&quot;text-font&quot;],1,Ht(Rt))))return null;var c=null;if(o[&quot;text-color&quot;]&amp;&amp;!(c=e.parse(o[&quot;text-color&quot;],1,Bt)))return null;var u=n[n.length-1];u.scale=s,u.font=l,u.textColor=c}else{var f=e.parse(t[a],1,jt);if(!f)return null;var h=f.type.kind;if(&quot;string&quot;!==h&amp;&amp;&quot;value&quot;!==h&amp;&amp;&quot;null&quot;!==h&amp;&amp;&quot;resolvedImage&quot;!==h)return e.error(&quot;Formatted text type must be 'string', 'value', 'image' or 'null'.&quot;);i=!0,n.push({content:f,scale:null,font:null,textColor:null})}}return new ue(n)},ue.prototype.evaluate=function(t){return new te(this.sections.map((function(e){var r=e.content.evaluate(t);return ie(r)===qt?new $t(&quot;&quot;,r,null,null,null):new $t(ae(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(&quot;,&quot;):null,e.textColor?e.textColor.evaluate(t):null)})))},ue.prototype.eachChild=function(t){for(var e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];t(n.content),n.scale&amp;&amp;t(n.scale),n.font&amp;&amp;t(n.font),n.textColor&amp;&amp;t(n.textColor)}},ue.prototype.outputDefined=function(){return!1},ue.prototype.serialize=function(){for(var t=[&quot;format&quot;],e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];t.push(n.content.serialize());var i={};n.scale&amp;&amp;(i[&quot;font-scale&quot;]=n.scale.serialize()),n.font&amp;&amp;(i[&quot;text-font&quot;]=n.font.serialize()),n.textColor&amp;&amp;(i[&quot;text-color&quot;]=n.textColor.serialize()),t.push(i)}return t};var fe=function(t){this.type=qt,this.input=t};fe.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected two arguments.&quot;);var r=e.parse(t[1],1,Rt);return r?new fe(r):e.error(&quot;No image name provided.&quot;)},fe.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=ee.fromString(e);return r&amp;&amp;t.availableImages&amp;&amp;(r.available=t.availableImages.indexOf(e)&gt;-1),r},fe.prototype.eachChild=function(t){t(this.input)},fe.prototype.outputDefined=function(){return!1},fe.prototype.serialize=function(){return[&quot;image&quot;,this.input.serialize()]};var he={&quot;to-boolean&quot;:Ft,&quot;to-color&quot;:Bt,&quot;to-number&quot;:Dt,&quot;to-string&quot;:Rt},pe=function(t,e){this.type=t,this.args=e};pe.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r=t[0];if((&quot;to-boolean&quot;===r||&quot;to-string&quot;===r)&amp;&amp;2!==t.length)return e.error(&quot;Expected one argument.&quot;);for(var n=he[r],i=[],a=1;a&lt;t.length;a++){var o=e.parse(t[a],a,jt);if(!o)return null;i.push(o)}return new pe(n,i)},pe.prototype.evaluate=function(t){if(&quot;boolean&quot;===this.type.kind)return Boolean(this.args[0].evaluate(t));if(&quot;color&quot;===this.type.kind){for(var e,r,n=0,i=this.args;n&lt;i.length;n+=1){if(r=null,(e=i[n].evaluate(t))instanceof Kt)return e;if(&quot;string&quot;==typeof e){var a=t.parseColor(e);if(a)return a}else if(Array.isArray(e)&amp;&amp;!(r=e.length&lt;3||e.length&gt;4?&quot;Invalid rbga value &quot;+JSON.stringify(e)+&quot;: expected an array containing either three or four numeric values.&quot;:re(e[0],e[1],e[2],e[3])))return new Kt(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new se(r||&quot;Could not parse color from value '&quot;+(&quot;string&quot;==typeof e?e:String(JSON.stringify(e)))+&quot;'&quot;)}if(&quot;number&quot;===this.type.kind){for(var o=null,s=0,l=this.args;s&lt;l.length;s+=1){if(null===(o=l[s].evaluate(t)))return 0;var c=Number(o);if(!isNaN(c))return c}throw new se(&quot;Could not convert &quot;+JSON.stringify(o)+&quot; to number.&quot;)}return&quot;formatted&quot;===this.type.kind?te.fromString(ae(this.args[0].evaluate(t))):&quot;resolvedImage&quot;===this.type.kind?ee.fromString(ae(this.args[0].evaluate(t))):ae(this.args[0].evaluate(t))},pe.prototype.eachChild=function(t){this.args.forEach(t)},pe.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},pe.prototype.serialize=function(){if(&quot;formatted&quot;===this.type.kind)return new ue([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(&quot;resolvedImage&quot;===this.type.kind)return new fe(this.args[0]).serialize();var t=[&quot;to-&quot;+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};var de=[&quot;Unknown&quot;,&quot;Point&quot;,&quot;LineString&quot;,&quot;Polygon&quot;],ge=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};ge.prototype.id=function(){return this.feature&amp;&amp;&quot;id&quot;in this.feature?this.feature.id:null},ge.prototype.geometryType=function(){return this.feature?&quot;number&quot;==typeof this.feature.type?de[this.feature.type]:this.feature.type:null},ge.prototype.geometry=function(){return this.feature&amp;&amp;&quot;geometry&quot;in this.feature?this.feature.geometry:null},ge.prototype.canonicalID=function(){return this.canonical},ge.prototype.properties=function(){return this.feature&amp;&amp;this.feature.properties||{}},ge.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=Kt.parse(t)),e};var me=function(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n};me.prototype.evaluate=function(t){return this._evaluate(t,this.args)},me.prototype.eachChild=function(t){this.args.forEach(t)},me.prototype.outputDefined=function(){return!1},me.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},me.parse=function(t,e){var r,n=t[0],i=me.definitions[n];if(!i)return e.error('Unknown expression &quot;'+n+'&quot;. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0);for(var a=Array.isArray(i)?i[0]:i.type,o=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=o.filter((function(e){var r=e[0];return!Array.isArray(r)||r.length===t.length-1})),l=null,c=0,u=s;c&lt;u.length;c+=1){var f=u[c],h=f[0],p=f[1];l=new Be(e.registry,e.path,null,e.scope);for(var d=[],g=!1,m=1;m&lt;t.length;m++){var v=t[m],y=Array.isArray(h)?h[m-1]:h.type,x=l.parse(v,1+d.length,y);if(!x){g=!0;break}d.push(x)}if(!g)if(Array.isArray(h)&amp;&amp;h.length!==d.length)l.error(&quot;Expected &quot;+h.length+&quot; arguments, but found &quot;+d.length+&quot; instead.&quot;);else{for(var b=0;b&lt;d.length;b++){var _=Array.isArray(h)?h[b]:h.type,w=d[b];l.concat(b+1).checkSubtype(_,w.type)}if(0===l.errors.length)return new me(n,a,p,d)}}if(1===s.length)(r=e.errors).push.apply(r,l.errors);else{for(var T=(s.length?s:o).map((function(t){var e;return e=t[0],Array.isArray(e)?&quot;(&quot;+e.map(Gt).join(&quot;, &quot;)+&quot;)&quot;:&quot;(&quot;+Gt(e.type)+&quot;...)&quot;})).join(&quot; | &quot;),k=[],M=1;M&lt;t.length;M++){var A=e.parse(t[M],1+k.length);if(!A)return null;k.push(Gt(A.type))}e.error(&quot;Expected arguments of type &quot;+T+&quot;, but found (&quot;+k.join(&quot;, &quot;)+&quot;) instead.&quot;)}return null},me.register=function(t,e){for(var r in me.definitions=e,e)t[r]=me};var ve=function(t,e,r){this.type=Ut,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};function ye(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function xe(t,e){return!(t[0]&lt;=e[0]||t[2]&gt;=e[2]||t[1]&lt;=e[1]||t[3]&gt;=e[3])}function be(t,e){var r=(180+t[0])/360,n=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,i=Math.pow(2,e.z);return[Math.round(r*i*8192),Math.round(n*i*8192)]}function _e(t,e,r){return e[1]&gt;t[1]!=r[1]&gt;t[1]&amp;&amp;t[0]&lt;(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function we(t,e){for(var r,n,i,a,o,s,l,c=!1,u=0,f=e.length;u&lt;f;u++)for(var h=e[u],p=0,d=h.length;p&lt;d-1;p++){if((a=(r=t)[0]-(n=h[p])[0])*(l=r[1]-(i=h[p+1])[1])-(s=r[0]-i[0])*(o=r[1]-n[1])==0&amp;&amp;a*s&lt;=0&amp;&amp;o*l&lt;=0)return!1;_e(t,h[p],h[p+1])&amp;&amp;(c=!c)}return c}function Te(t,e){for(var r=0;r&lt;e.length;r++)if(we(t,e[r]))return!0;return!1}function ke(t,e,r,n){var i=n[0]-r[0],a=n[1]-r[1],o=(t[0]-r[0])*a-i*(t[1]-r[1]),s=(e[0]-r[0])*a-i*(e[1]-r[1]);return o&gt;0&amp;&amp;s&lt;0||o&lt;0&amp;&amp;s&gt;0}function Me(t,e,r){for(var n=0,i=r;n&lt;i.length;n+=1)for(var a=i[n],o=0;o&lt;a.length-1;++o)if(0!=(f=[(u=a[o+1])[0]-(c=a[o])[0],u[1]-c[1]])[0]*(h=[(l=e)[0]-(s=t)[0],l[1]-s[1]])[1]-f[1]*h[0]&amp;&amp;ke(s,l,c,u)&amp;&amp;ke(c,u,s,l))return!0;var s,l,c,u,f,h;return!1}function Ae(t,e){for(var r=0;r&lt;t.length;++r)if(!we(t[r],e))return!1;for(var n=0;n&lt;t.length-1;++n)if(Me(t[n],t[n+1],e))return!1;return!0}function Se(t,e){for(var r=0;r&lt;e.length;r++)if(Ae(t,e[r]))return!0;return!1}function Ee(t,e,r){for(var n=[],i=0;i&lt;t.length;i++){for(var a=[],o=0;o&lt;t[i].length;o++){var s=be(t[i][o],r);ye(e,s),a.push(s)}n.push(a)}return n}function Ce(t,e,r){for(var n=[],i=0;i&lt;t.length;i++){var a=Ee(t[i],e,r);n.push(a)}return n}function Le(t,e,r,n){if(t[0]&lt;r[0]||t[0]&gt;r[2]){var i=.5*n,a=t[0]-r[0]&gt;i?-n:r[0]-t[0]&gt;i?n:0;0===a&amp;&amp;(a=t[0]-r[2]&gt;i?-n:r[2]-t[0]&gt;i?n:0),t[0]+=a}ye(e,t)}function Ie(t,e,r,n){for(var i=8192*Math.pow(2,n.z),a=[8192*n.x,8192*n.y],o=[],s=0,l=t;s&lt;l.length;s+=1)for(var c=0,u=l[s];c&lt;u.length;c+=1){var f=u[c],h=[f.x+a[0],f.y+a[1]];Le(h,e,r,i),o.push(h)}return o}function Pe(t,e,r,n){for(var i,a=8192*Math.pow(2,n.z),o=[8192*n.x,8192*n.y],s=[],l=0,c=t;l&lt;c.length;l+=1){for(var u=[],f=0,h=c[l];f&lt;h.length;f+=1){var p=h[f],d=[p.x+o[0],p.y+o[1]];ye(e,d),u.push(d)}s.push(u)}if(e[2]-e[0]&lt;=a/2){(i=e)[0]=i[1]=1/0,i[2]=i[3]=-1/0;for(var g=0,m=s;g&lt;m.length;g+=1)for(var v=0,y=m[g];v&lt;y.length;v+=1)Le(y[v],e,r,a)}return s}ve.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected one argument.&quot;);var r=t[1];if(&quot;object&quot;!=typeof r||Array.isArray(r))return e.error(&quot;Collator options argument must be an object.&quot;);var n=e.parse(void 0!==r[&quot;case-sensitive&quot;]&amp;&amp;r[&quot;case-sensitive&quot;],1,Ft);if(!n)return null;var i=e.parse(void 0!==r[&quot;diacritic-sensitive&quot;]&amp;&amp;r[&quot;diacritic-sensitive&quot;],1,Ft);if(!i)return null;var a=null;return r.locale&amp;&amp;!(a=e.parse(r.locale,1,Rt))?null:new ve(n,i,a)},ve.prototype.evaluate=function(t){return new Qt(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},ve.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&amp;&amp;t(this.locale)},ve.prototype.outputDefined=function(){return!1},ve.prototype.serialize=function(){var t={};return t[&quot;case-sensitive&quot;]=this.caseSensitive.serialize(),t[&quot;diacritic-sensitive&quot;]=this.diacriticSensitive.serialize(),this.locale&amp;&amp;(t.locale=this.locale.serialize()),[&quot;collator&quot;,t]};var ze=function(t,e){this.type=Ft,this.geojson=t,this.geometries=e};function Oe(t){if(t instanceof me){if(&quot;get&quot;===t.name&amp;&amp;1===t.args.length)return!1;if(&quot;feature-state&quot;===t.name)return!1;if(&quot;has&quot;===t.name&amp;&amp;1===t.args.length)return!1;if(&quot;properties&quot;===t.name||&quot;geometry-type&quot;===t.name||&quot;id&quot;===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof ze)return!1;var e=!0;return t.eachChild((function(t){e&amp;&amp;!Oe(t)&amp;&amp;(e=!1)})),e}function De(t){if(t instanceof me&amp;&amp;&quot;feature-state&quot;===t.name)return!1;var e=!0;return t.eachChild((function(t){e&amp;&amp;!De(t)&amp;&amp;(e=!1)})),e}function Re(t,e){if(t instanceof me&amp;&amp;e.indexOf(t.name)&gt;=0)return!1;var r=!0;return t.eachChild((function(t){r&amp;&amp;!Re(t,e)&amp;&amp;(r=!1)})),r}ze.parse=function(t,e){if(2!==t.length)return e.error(&quot;'within' expression requires exactly one argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);if(ne(t[1])){var r=t[1];if(&quot;FeatureCollection&quot;===r.type)for(var n=0;n&lt;r.features.length;++n){var i=r.features[n].geometry.type;if(&quot;Polygon&quot;===i||&quot;MultiPolygon&quot;===i)return new ze(r,r.features[n].geometry)}else if(&quot;Feature&quot;===r.type){var a=r.geometry.type;if(&quot;Polygon&quot;===a||&quot;MultiPolygon&quot;===a)return new ze(r,r.geometry)}else if(&quot;Polygon&quot;===r.type||&quot;MultiPolygon&quot;===r.type)return new ze(r,r)}return e.error(&quot;'within' expression requires valid geojson object that contains polygon geometry type.&quot;)},ze.prototype.evaluate=function(t){if(null!=t.geometry()&amp;&amp;null!=t.canonicalID()){if(&quot;Point&quot;===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(&quot;Polygon&quot;===e.type){var a=Ee(e.coordinates,n,i),o=Ie(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var s=0,l=o;s&lt;l.length;s+=1)if(!we(l[s],a))return!1}if(&quot;MultiPolygon&quot;===e.type){var c=Ce(e.coordinates,n,i),u=Ie(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var f=0,h=u;f&lt;h.length;f+=1)if(!Te(h[f],c))return!1}return!0}(t,this.geometries);if(&quot;LineString&quot;===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(&quot;Polygon&quot;===e.type){var a=Ee(e.coordinates,n,i),o=Pe(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var s=0,l=o;s&lt;l.length;s+=1)if(!Ae(l[s],a))return!1}if(&quot;MultiPolygon&quot;===e.type){var c=Ce(e.coordinates,n,i),u=Pe(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var f=0,h=u;f&lt;h.length;f+=1)if(!Se(h[f],c))return!1}return!0}(t,this.geometries)}return!1},ze.prototype.eachChild=function(){},ze.prototype.outputDefined=function(){return!0},ze.prototype.serialize=function(){return[&quot;within&quot;,this.geojson]};var Fe=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};Fe.parse=function(t,e){if(2!==t.length||&quot;string&quot;!=typeof t[1])return e.error(&quot;'var' expression requires exactly one string literal argument.&quot;);var r=t[1];return e.scope.has(r)?new Fe(r,e.scope.get(r)):e.error('Unknown variable &quot;'+r+'&quot;. Make sure &quot;'+r+'&quot; has been bound in an enclosing &quot;let&quot; expression before using it.',1)},Fe.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},Fe.prototype.eachChild=function(){},Fe.prototype.outputDefined=function(){return!1},Fe.prototype.serialize=function(){return[&quot;var&quot;,this.name]};var Be=function(t,e,r,n,i){void 0===e&amp;&amp;(e=[]),void 0===n&amp;&amp;(n=new zt),void 0===i&amp;&amp;(i=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return&quot;[&quot;+t+&quot;]&quot;})).join(&quot;&quot;),this.scope=n,this.errors=i,this.expectedType=r};function Ne(t,e){for(var r,n=t.length-1,i=0,a=n,o=0;i&lt;=a;)if((r=t[o=Math.floor((i+a)/2)])&lt;=e){if(o===n||e&lt;t[o+1])return o;i=o+1}else{if(!(r&gt;e))throw new se(&quot;Input is not a number.&quot;);a=o-1}return 0}Be.prototype.parse=function(t,e,r,n,i){return void 0===i&amp;&amp;(i={}),e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)},Be.prototype._parse=function(t,e){function r(t,e,r){return&quot;assert&quot;===r?new ce(e,[t]):&quot;coerce&quot;===r?new pe(e,[t]):t}if(null!==t&amp;&amp;&quot;string&quot;!=typeof t&amp;&amp;&quot;boolean&quot;!=typeof t&amp;&amp;&quot;number&quot;!=typeof t||(t=[&quot;literal&quot;,t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use [&quot;literal&quot;, []].');var n=t[0];if(&quot;string&quot;!=typeof n)return this.error(&quot;Expression name must be a string, but found &quot;+typeof n+' instead. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0),null;var i=this.registry[n];if(i){var a=i.parse(t,this);if(!a)return null;if(this.expectedType){var o=this.expectedType,s=a.type;if(&quot;string&quot;!==o.kind&amp;&amp;&quot;number&quot;!==o.kind&amp;&amp;&quot;boolean&quot;!==o.kind&amp;&amp;&quot;object&quot;!==o.kind&amp;&amp;&quot;array&quot;!==o.kind||&quot;value&quot;!==s.kind)if(&quot;color&quot;!==o.kind&amp;&amp;&quot;formatted&quot;!==o.kind&amp;&amp;&quot;resolvedImage&quot;!==o.kind||&quot;value&quot;!==s.kind&amp;&amp;&quot;string&quot;!==s.kind){if(this.checkSubtype(o,s))return null}else a=r(a,o,e.typeAnnotation||&quot;coerce&quot;);else a=r(a,o,e.typeAnnotation||&quot;assert&quot;)}if(!(a instanceof oe)&amp;&amp;&quot;resolvedImage&quot;!==a.type.kind&amp;&amp;function t(e){if(e instanceof Fe)return t(e.boundExpression);if(e instanceof me&amp;&amp;&quot;error&quot;===e.name)return!1;if(e instanceof ve)return!1;if(e instanceof ze)return!1;var r=e instanceof pe||e instanceof ce,n=!0;return e.eachChild((function(e){n=r?n&amp;&amp;t(e):n&amp;&amp;e instanceof oe})),!!n&amp;&amp;Oe(e)&amp;&amp;Re(e,[&quot;zoom&quot;,&quot;heatmap-density&quot;,&quot;line-progress&quot;,&quot;accumulated&quot;,&quot;is-supported-script&quot;])}(a)){var l=new ge;try{a=new oe(a.type,a.evaluate(l))}catch(t){return this.error(t.message),null}}return a}return this.error('Unknown expression &quot;'+n+'&quot;. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0)}return this.error(void 0===t?&quot;'undefined' value invalid. Use null instead.&quot;:&quot;object&quot;==typeof t?'Bare objects invalid. Use [&quot;literal&quot;, {...}] instead.':&quot;Expected an array, but found &quot;+typeof t+&quot; instead.&quot;)},Be.prototype.concat=function(t,e,r){var n=&quot;number&quot;==typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new Be(this.registry,n,e||null,i,this.errors)},Be.prototype.error=function(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];var n=&quot;&quot;+this.key+e.map((function(t){return&quot;[&quot;+t+&quot;]&quot;})).join(&quot;&quot;);this.errors.push(new Pt(n,t))},Be.prototype.checkSubtype=function(t,e){var r=Wt(t,e);return r&amp;&amp;this.error(r),r};var je=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,i=r;n&lt;i.length;n+=1){var a=i[n],o=a[1];this.labels.push(a[0]),this.outputs.push(o)}};function Ue(t,e,r){return t*(1-r)+e*r}je.parse=function(t,e){if(t.length-1&lt;4)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if((t.length-1)%2!=0)return e.error(&quot;Expected an even number of arguments.&quot;);var r=e.parse(t[1],1,Dt);if(!r)return null;var n=[],i=null;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(i=e.expectedType);for(var a=1;a&lt;t.length;a+=2){var o=1===a?-1/0:t[a],s=t[a+1],l=a,c=a+1;if(&quot;number&quot;!=typeof o)return e.error('Input/output pairs for &quot;step&quot; expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(n.length&amp;&amp;n[n.length-1][0]&gt;=o)return e.error('Input/output pairs for &quot;step&quot; expressions must be arranged with input values in strictly ascending order.',l);var u=e.parse(s,c,i);if(!u)return null;i=i||u.type,n.push([o,u])}return new je(i,r,n)},je.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n&lt;=e[0])return r[0].evaluate(t);var i=e.length;return n&gt;=e[i-1]?r[i-1].evaluate(t):r[Ne(e,n)].evaluate(t)},je.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1)t(r[e])},je.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},je.prototype.serialize=function(){for(var t=[&quot;step&quot;,this.input.serialize()],e=0;e&lt;this.labels.length;e++)e&gt;0&amp;&amp;t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var Ve=Object.freeze({__proto__:null,number:Ue,color:function(t,e,r){return new Kt(Ue(t.r,e.r,r),Ue(t.g,e.g,r),Ue(t.b,e.b,r),Ue(t.a,e.a,r))},array:function(t,e,r){return t.map((function(t,n){return Ue(t,e[n],r)}))}}),qe=6/29*3*(6/29),He=Math.PI/180,Ge=180/Math.PI;function Ye(t){return t&gt;.008856451679035631?Math.pow(t,1/3):t/qe+4/29}function We(t){return t&gt;6/29?t*t*t:qe*(t-4/29)}function Xe(t){return 255*(t&lt;=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ze(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Je(t){var e=Ze(t.r),r=Ze(t.g),n=Ze(t.b),i=Ye((.4124564*e+.3575761*r+.1804375*n)/.95047),a=Ye((.2126729*e+.7151522*r+.072175*n)/1);return{l:116*a-16,a:500*(i-a),b:200*(a-Ye((.0193339*e+.119192*r+.9503041*n)/1.08883)),alpha:t.a}}function Ke(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=1*We(e),r=.95047*We(r),n=1.08883*We(n),new Kt(Xe(3.2404542*r-1.5371385*e-.4985314*n),Xe(-.969266*r+1.8760108*e+.041556*n),Xe(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function Qe(t,e,r){var n=e-t;return t+r*(n&gt;180||n&lt;-180?n-360*Math.round(n/360):n)}var $e={forward:Je,reverse:Ke,interpolate:function(t,e,r){return{l:Ue(t.l,e.l,r),a:Ue(t.a,e.a,r),b:Ue(t.b,e.b,r),alpha:Ue(t.alpha,e.alpha,r)}}},tr={forward:function(t){var e=Je(t),r=e.l,n=e.a,i=e.b,a=Math.atan2(i,n)*Ge;return{h:a&lt;0?a+360:a,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}},reverse:function(t){var e=t.h*He,r=t.c;return Ke({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:Qe(t.h,e.h,r),c:Ue(t.c,e.c,r),l:Ue(t.l,e.l,r),alpha:Ue(t.alpha,e.alpha,r)}}},er=Object.freeze({__proto__:null,lab:$e,hcl:tr}),rr=function(t,e,r,n,i){this.type=t,this.operator=e,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var a=0,o=i;a&lt;o.length;a+=1){var s=o[a],l=s[1];this.labels.push(s[0]),this.outputs.push(l)}};function nr(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}rr.interpolationFactor=function(t,e,n,i){var a=0;if(&quot;exponential&quot;===t.name)a=nr(e,t.base,n,i);else if(&quot;linear&quot;===t.name)a=nr(e,1,n,i);else if(&quot;cubic-bezier&quot;===t.name){var o=t.controlPoints;a=new r(o[0],o[1],o[2],o[3]).solve(nr(e,1,n,i))}return a},rr.parse=function(t,e){var r=t[0],n=t[1],i=t[2],a=t.slice(3);if(!Array.isArray(n)||0===n.length)return e.error(&quot;Expected an interpolation type expression.&quot;,1);if(&quot;linear&quot;===n[0])n={name:&quot;linear&quot;};else if(&quot;exponential&quot;===n[0]){var o=n[1];if(&quot;number&quot;!=typeof o)return e.error(&quot;Exponential interpolation requires a numeric base.&quot;,1,1);n={name:&quot;exponential&quot;,base:o}}else{if(&quot;cubic-bezier&quot;!==n[0])return e.error(&quot;Unknown interpolation type &quot;+String(n[0]),1,0);var s=n.slice(1);if(4!==s.length||s.some((function(t){return&quot;number&quot;!=typeof t||t&lt;0||t&gt;1})))return e.error(&quot;Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.&quot;,1);n={name:&quot;cubic-bezier&quot;,controlPoints:s}}if(t.length-1&lt;4)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if((t.length-1)%2!=0)return e.error(&quot;Expected an even number of arguments.&quot;);if(!(i=e.parse(i,2,Dt)))return null;var l=[],c=null;&quot;interpolate-hcl&quot;===r||&quot;interpolate-lab&quot;===r?c=Bt:e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(c=e.expectedType);for(var u=0;u&lt;a.length;u+=2){var f=a[u],h=a[u+1],p=u+3,d=u+4;if(&quot;number&quot;!=typeof f)return e.error('Input/output pairs for &quot;interpolate&quot; expressions must be defined using literal numeric values (not computed expressions) for the input values.',p);if(l.length&amp;&amp;l[l.length-1][0]&gt;=f)return e.error('Input/output pairs for &quot;interpolate&quot; expressions must be arranged with input values in strictly ascending order.',p);var g=e.parse(h,d,c);if(!g)return null;c=c||g.type,l.push([f,g])}return&quot;number&quot;===c.kind||&quot;color&quot;===c.kind||&quot;array&quot;===c.kind&amp;&amp;&quot;number&quot;===c.itemType.kind&amp;&amp;&quot;number&quot;==typeof c.N?new rr(c,r,n,i,l):e.error(&quot;Type &quot;+Gt(c)+&quot; is not interpolatable.&quot;)},rr.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n&lt;=e[0])return r[0].evaluate(t);var i=e.length;if(n&gt;=e[i-1])return r[i-1].evaluate(t);var a=Ne(e,n),o=rr.interpolationFactor(this.interpolation,n,e[a],e[a+1]),s=r[a].evaluate(t),l=r[a+1].evaluate(t);return&quot;interpolate&quot;===this.operator?Ve[this.type.kind.toLowerCase()](s,l,o):&quot;interpolate-hcl&quot;===this.operator?tr.reverse(tr.interpolate(tr.forward(s),tr.forward(l),o)):$e.reverse($e.interpolate($e.forward(s),$e.forward(l),o))},rr.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1)t(r[e])},rr.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},rr.prototype.serialize=function(){var t;t=&quot;linear&quot;===this.interpolation.name?[&quot;linear&quot;]:&quot;exponential&quot;===this.interpolation.name?1===this.interpolation.base?[&quot;linear&quot;]:[&quot;exponential&quot;,this.interpolation.base]:[&quot;cubic-bezier&quot;].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],r=0;r&lt;this.labels.length;r++)e.push(this.labels[r],this.outputs[r].serialize());return e};var ir=function(t,e){this.type=t,this.args=e};ir.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expectected at least one argument.&quot;);var r=null,n=e.expectedType;n&amp;&amp;&quot;value&quot;!==n.kind&amp;&amp;(r=n);for(var i=[],a=0,o=t.slice(1);a&lt;o.length;a+=1){var s=e.parse(o[a],1+i.length,r,void 0,{typeAnnotation:&quot;omit&quot;});if(!s)return null;r=r||s.type,i.push(s)}var l=n&amp;&amp;i.some((function(t){return Wt(n,t.type)}));return new ir(l?jt:r,i)},ir.prototype.evaluate=function(t){for(var e,r=null,n=0,i=0,a=this.args;i&lt;a.length&amp;&amp;(n++,(r=a[i].evaluate(t))&amp;&amp;r instanceof ee&amp;&amp;!r.available&amp;&amp;(e||(e=r.name),r=null,n===this.args.length&amp;&amp;(r=e)),null===r);i+=1);return r},ir.prototype.eachChild=function(t){this.args.forEach(t)},ir.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ir.prototype.serialize=function(){var t=[&quot;coalesce&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var ar=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};ar.prototype.evaluate=function(t){return this.result.evaluate(t)},ar.prototype.eachChild=function(t){for(var e=0,r=this.bindings;e&lt;r.length;e+=1)t(r[e][1]);t(this.result)},ar.parse=function(t,e){if(t.length&lt;4)return e.error(&quot;Expected at least 3 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);for(var r=[],n=1;n&lt;t.length-1;n+=2){var i=t[n];if(&quot;string&quot;!=typeof i)return e.error(&quot;Expected string, but found &quot;+typeof i+&quot; instead.&quot;,n);if(/[^a-zA-Z0-9_]/.test(i))return e.error(&quot;Variable names must contain only alphanumeric characters or '_'.&quot;,n);var a=e.parse(t[n+1],n+1);if(!a)return null;r.push([i,a])}var o=e.parse(t[t.length-1],t.length-1,e.expectedType,r);return o?new ar(r,o):null},ar.prototype.outputDefined=function(){return this.result.outputDefined()},ar.prototype.serialize=function(){for(var t=[&quot;let&quot;],e=0,r=this.bindings;e&lt;r.length;e+=1){var n=r[e];t.push(n[0],n[1].serialize())}return t.push(this.result.serialize()),t};var or=function(t,e,r){this.type=t,this.index=e,this.input=r};or.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected 2 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,Dt),n=e.parse(t[2],2,Ht(e.expectedType||jt));return r&amp;&amp;n?new or(n.type.itemType,r,n):null},or.prototype.evaluate=function(t){var e=this.index.evaluate(t),r=this.input.evaluate(t);if(e&lt;0)throw new se(&quot;Array index out of bounds: &quot;+e+&quot; &lt; 0.&quot;);if(e&gt;=r.length)throw new se(&quot;Array index out of bounds: &quot;+e+&quot; &gt; &quot;+(r.length-1)+&quot;.&quot;);if(e!==Math.floor(e))throw new se(&quot;Array index must be an integer, but found &quot;+e+&quot; instead.&quot;);return r[e]},or.prototype.eachChild=function(t){t(this.index),t(this.input)},or.prototype.outputDefined=function(){return!1},or.prototype.serialize=function(){return[&quot;at&quot;,this.index.serialize(),this.input.serialize()]};var sr=function(t,e){this.type=Ft,this.needle=t,this.haystack=e};sr.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected 2 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,jt),n=e.parse(t[2],2,jt);return r&amp;&amp;n?Xt(r.type,[Ft,Rt,Dt,Ot,jt])?new sr(r,n):e.error(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(r.type)+&quot; instead&quot;):null},sr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!r)return!1;if(!Zt(e,[&quot;boolean&quot;,&quot;string&quot;,&quot;number&quot;,&quot;null&quot;]))throw new se(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(ie(e))+&quot; instead.&quot;);if(!Zt(r,[&quot;string&quot;,&quot;array&quot;]))throw new se(&quot;Expected second argument to be of type array or string, but found &quot;+Gt(ie(r))+&quot; instead.&quot;);return r.indexOf(e)&gt;=0},sr.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},sr.prototype.outputDefined=function(){return!0},sr.prototype.serialize=function(){return[&quot;in&quot;,this.needle.serialize(),this.haystack.serialize()]};var lr=function(t,e,r){this.type=Dt,this.needle=t,this.haystack=e,this.fromIndex=r};lr.parse=function(t,e){if(t.length&lt;=2||t.length&gt;=5)return e.error(&quot;Expected 3 or 4 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,jt),n=e.parse(t[2],2,jt);if(!r||!n)return null;if(!Xt(r.type,[Ft,Rt,Dt,Ot,jt]))return e.error(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(r.type)+&quot; instead&quot;);if(4===t.length){var i=e.parse(t[3],3,Dt);return i?new lr(r,n,i):null}return new lr(r,n)},lr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!Zt(e,[&quot;boolean&quot;,&quot;string&quot;,&quot;number&quot;,&quot;null&quot;]))throw new se(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(ie(e))+&quot; instead.&quot;);if(!Zt(r,[&quot;string&quot;,&quot;array&quot;]))throw new se(&quot;Expected second argument to be of type array or string, but found &quot;+Gt(ie(r))+&quot; instead.&quot;);if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},lr.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&amp;&amp;t(this.fromIndex)},lr.prototype.outputDefined=function(){return!1},lr.prototype.serialize=function(){if(null!=this.fromIndex&amp;&amp;void 0!==this.fromIndex){var t=this.fromIndex.serialize();return[&quot;index-of&quot;,this.needle.serialize(),this.haystack.serialize(),t]}return[&quot;index-of&quot;,this.needle.serialize(),this.haystack.serialize()]};var cr=function(t,e,r,n,i,a){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=a};cr.parse=function(t,e){if(t.length&lt;5)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if(t.length%2!=1)return e.error(&quot;Expected an even number of arguments.&quot;);var r,n;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(n=e.expectedType);for(var i={},a=[],o=2;o&lt;t.length-1;o+=2){var s=t[o],l=t[o+1];Array.isArray(s)||(s=[s]);var c=e.concat(o);if(0===s.length)return c.error(&quot;Expected at least one branch label.&quot;);for(var u=0,f=s;u&lt;f.length;u+=1){var h=f[u];if(&quot;number&quot;!=typeof h&amp;&amp;&quot;string&quot;!=typeof h)return c.error(&quot;Branch labels must be numbers or strings.&quot;);if(&quot;number&quot;==typeof h&amp;&amp;Math.abs(h)&gt;Number.MAX_SAFE_INTEGER)return c.error(&quot;Branch labels must be integers no larger than &quot;+Number.MAX_SAFE_INTEGER+&quot;.&quot;);if(&quot;number&quot;==typeof h&amp;&amp;Math.floor(h)!==h)return c.error(&quot;Numeric branch labels must be integer values.&quot;);if(r){if(c.checkSubtype(r,ie(h)))return null}else r=ie(h);if(void 0!==i[String(h)])return c.error(&quot;Branch labels must be unique.&quot;);i[String(h)]=a.length}var p=e.parse(l,o,n);if(!p)return null;n=n||p.type,a.push(p)}var d=e.parse(t[1],1,jt);if(!d)return null;var g=e.parse(t[t.length-1],t.length-1,n);return g?&quot;value&quot;!==d.type.kind&amp;&amp;e.concat(1).checkSubtype(r,d.type)?null:new cr(r,n,d,i,a,g):null},cr.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(ie(e)===this.inputType&amp;&amp;this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},cr.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},cr.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&amp;&amp;this.otherwise.outputDefined()},cr.prototype.serialize=function(){for(var t=this,e=[&quot;match&quot;,this.input.serialize()],r=[],n={},i=0,a=Object.keys(this.cases).sort();i&lt;a.length;i+=1){var o=a[i];void 0===(f=n[this.cases[o]])?(n[this.cases[o]]=r.length,r.push([this.cases[o],[o]])):r[f][1].push(o)}for(var s=function(e){return&quot;number&quot;===t.inputType.kind?Number(e):e},l=0,c=r;l&lt;c.length;l+=1){var u=c[l],f=u[0],h=u[1];e.push(1===h.length?s(h[0]):h.map(s)),e.push(this.outputs[outputIndex$1].serialize())}return e.push(this.otherwise.serialize()),e};var ur=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};ur.parse=function(t,e){if(t.length&lt;4)return e.error(&quot;Expected at least 3 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if(t.length%2!=0)return e.error(&quot;Expected an odd number of arguments.&quot;);var r;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(r=e.expectedType);for(var n=[],i=1;i&lt;t.length-1;i+=2){var a=e.parse(t[i],i,Ft);if(!a)return null;var o=e.parse(t[i+1],i+1,r);if(!o)return null;n.push([a,o]),r=r||o.type}var s=e.parse(t[t.length-1],t.length-1,r);return s?new ur(r,n,s):null},ur.prototype.evaluate=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var n=r[e],i=n[1];if(n[0].evaluate(t))return i.evaluate(t)}return this.otherwise.evaluate(t)},ur.prototype.eachChild=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var n=r[e],i=n[1];t(n[0]),t(i)}t(this.otherwise)},ur.prototype.outputDefined=function(){return this.branches.every((function(t){return t[1].outputDefined()}))&amp;&amp;this.otherwise.outputDefined()},ur.prototype.serialize=function(){var t=[&quot;case&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var fr=function(t,e,r,n){this.type=t,this.input=e,this.beginIndex=r,this.endIndex=n};function hr(t,e){return&quot;==&quot;===t||&quot;!=&quot;===t?&quot;boolean&quot;===e.kind||&quot;string&quot;===e.kind||&quot;number&quot;===e.kind||&quot;null&quot;===e.kind||&quot;value&quot;===e.kind:&quot;string&quot;===e.kind||&quot;number&quot;===e.kind||&quot;value&quot;===e.kind}function pr(t,e,r,n){return 0===n.compare(e,r)}function dr(t,e,r){var n=&quot;==&quot;!==t&amp;&amp;&quot;!=&quot;!==t;return function(){function i(t,e,r){this.type=Ft,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument=&quot;value&quot;===t.type.kind||&quot;value&quot;===e.type.kind}return i.parse=function(t,e){if(3!==t.length&amp;&amp;4!==t.length)return e.error(&quot;Expected two or three arguments.&quot;);var r=t[0],a=e.parse(t[1],1,jt);if(!a)return null;if(!hr(r,a.type))return e.concat(1).error('&quot;'+r+&quot;\&quot; comparisons are not supported for type '&quot;+Gt(a.type)+&quot;'.&quot;);var o=e.parse(t[2],2,jt);if(!o)return null;if(!hr(r,o.type))return e.concat(2).error('&quot;'+r+&quot;\&quot; comparisons are not supported for type '&quot;+Gt(o.type)+&quot;'.&quot;);if(a.type.kind!==o.type.kind&amp;&amp;&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind)return e.error(&quot;Cannot compare types '&quot;+Gt(a.type)+&quot;' and '&quot;+Gt(o.type)+&quot;'.&quot;);n&amp;&amp;(&quot;value&quot;===a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind?a=new ce(o.type,[a]):&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;===o.type.kind&amp;&amp;(o=new ce(a.type,[o])));var s=null;if(4===t.length){if(&quot;string&quot;!==a.type.kind&amp;&amp;&quot;string&quot;!==o.type.kind&amp;&amp;&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind)return e.error(&quot;Cannot use collator to compare non-string types.&quot;);if(!(s=e.parse(t[3],3,Ut)))return null}return new i(a,o,s)},i.prototype.evaluate=function(i){var a=this.lhs.evaluate(i),o=this.rhs.evaluate(i);if(n&amp;&amp;this.hasUntypedArgument){var s=ie(a),l=ie(o);if(s.kind!==l.kind||&quot;string&quot;!==s.kind&amp;&amp;&quot;number&quot;!==s.kind)throw new se('Expected arguments for &quot;'+t+'&quot; to be (string, string) or (number, number), but found ('+s.kind+&quot;, &quot;+l.kind+&quot;) instead.&quot;)}if(this.collator&amp;&amp;!n&amp;&amp;this.hasUntypedArgument){var c=ie(a),u=ie(o);if(&quot;string&quot;!==c.kind||&quot;string&quot;!==u.kind)return e(i,a,o)}return this.collator?r(i,a,o,this.collator.evaluate(i)):e(i,a,o)},i.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&amp;&amp;t(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},i}()}fr.parse=function(t,e){if(t.length&lt;=2||t.length&gt;=5)return e.error(&quot;Expected 3 or 4 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,jt),n=e.parse(t[2],2,Dt);if(!r||!n)return null;if(!Xt(r.type,[Ht(jt),Rt,jt]))return e.error(&quot;Expected first argument to be of type array or string, but found &quot;+Gt(r.type)+&quot; instead&quot;);if(4===t.length){var i=e.parse(t[3],3,Dt);return i?new fr(r.type,r,n,i):null}return new fr(r.type,r,n)},fr.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!Zt(e,[&quot;string&quot;,&quot;array&quot;]))throw new se(&quot;Expected first argument to be of type array or string, but found &quot;+Gt(ie(e))+&quot; instead.&quot;);if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},fr.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&amp;&amp;t(this.endIndex)},fr.prototype.outputDefined=function(){return!1},fr.prototype.serialize=function(){if(null!=this.endIndex&amp;&amp;void 0!==this.endIndex){var t=this.endIndex.serialize();return[&quot;slice&quot;,this.input.serialize(),this.beginIndex.serialize(),t]}return[&quot;slice&quot;,this.input.serialize(),this.beginIndex.serialize()]};var gr=dr(&quot;==&quot;,(function(t,e,r){return e===r}),pr),mr=dr(&quot;!=&quot;,(function(t,e,r){return e!==r}),(function(t,e,r,n){return!pr(0,e,r,n)})),vr=dr(&quot;&lt;&quot;,(function(t,e,r){return e&lt;r}),(function(t,e,r,n){return n.compare(e,r)&lt;0})),yr=dr(&quot;&gt;&quot;,(function(t,e,r){return e&gt;r}),(function(t,e,r,n){return n.compare(e,r)&gt;0})),xr=dr(&quot;&lt;=&quot;,(function(t,e,r){return e&lt;=r}),(function(t,e,r,n){return n.compare(e,r)&lt;=0})),br=dr(&quot;&gt;=&quot;,(function(t,e,r){return e&gt;=r}),(function(t,e,r,n){return n.compare(e,r)&gt;=0})),_r=function(t,e,r,n,i){this.type=Rt,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};_r.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected two arguments.&quot;);var r=e.parse(t[1],1,Dt);if(!r)return null;var n=t[2];if(&quot;object&quot;!=typeof n||Array.isArray(n))return e.error(&quot;NumberFormat options argument must be an object.&quot;);var i=null;if(n.locale&amp;&amp;!(i=e.parse(n.locale,1,Rt)))return null;var a=null;if(n.currency&amp;&amp;!(a=e.parse(n.currency,1,Rt)))return null;var o=null;if(n[&quot;min-fraction-digits&quot;]&amp;&amp;!(o=e.parse(n[&quot;min-fraction-digits&quot;],1,Dt)))return null;var s=null;return n[&quot;max-fraction-digits&quot;]&amp;&amp;!(s=e.parse(n[&quot;max-fraction-digits&quot;],1,Dt))?null:new _r(r,i,a,o,s)},_r.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?&quot;currency&quot;:&quot;decimal&quot;,currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},_r.prototype.eachChild=function(t){t(this.number),this.locale&amp;&amp;t(this.locale),this.currency&amp;&amp;t(this.currency),this.minFractionDigits&amp;&amp;t(this.minFractionDigits),this.maxFractionDigits&amp;&amp;t(this.maxFractionDigits)},_r.prototype.outputDefined=function(){return!1},_r.prototype.serialize=function(){var t={};return this.locale&amp;&amp;(t.locale=this.locale.serialize()),this.currency&amp;&amp;(t.currency=this.currency.serialize()),this.minFractionDigits&amp;&amp;(t[&quot;min-fraction-digits&quot;]=this.minFractionDigits.serialize()),this.maxFractionDigits&amp;&amp;(t[&quot;max-fraction-digits&quot;]=this.maxFractionDigits.serialize()),[&quot;number-format&quot;,this.number.serialize(),t]};var wr=function(t){this.type=Dt,this.input=t};wr.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected 1 argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1);return r?&quot;array&quot;!==r.type.kind&amp;&amp;&quot;string&quot;!==r.type.kind&amp;&amp;&quot;value&quot;!==r.type.kind?e.error(&quot;Expected argument of type string or array, but found &quot;+Gt(r.type)+&quot; instead.&quot;):new wr(r):null},wr.prototype.evaluate=function(t){var e=this.input.evaluate(t);if(&quot;string&quot;==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new se(&quot;Expected value to be of type string or array, but found &quot;+Gt(ie(e))+&quot; instead.&quot;)},wr.prototype.eachChild=function(t){t(this.input)},wr.prototype.outputDefined=function(){return!1},wr.prototype.serialize=function(){var t=[&quot;length&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var Tr={&quot;==&quot;:gr,&quot;!=&quot;:mr,&quot;&gt;&quot;:yr,&quot;&lt;&quot;:vr,&quot;&gt;=&quot;:br,&quot;&lt;=&quot;:xr,array:ce,at:or,boolean:ce,case:ur,coalesce:ir,collator:ve,format:ue,image:fe,in:sr,&quot;index-of&quot;:lr,interpolate:rr,&quot;interpolate-hcl&quot;:rr,&quot;interpolate-lab&quot;:rr,length:wr,let:ar,literal:oe,match:cr,number:ce,&quot;number-format&quot;:_r,object:ce,slice:fr,step:je,string:ce,&quot;to-boolean&quot;:pe,&quot;to-color&quot;:pe,&quot;to-number&quot;:pe,&quot;to-string&quot;:pe,var:Fe,within:ze};function kr(t,e){var r=e[0],n=e[1],i=e[2],a=e[3];r=r.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);var o=a?a.evaluate(t):1,s=re(r,n,i,o);if(s)throw new se(s);return new Kt(r/255*o,n/255*o,i/255*o,o)}function Mr(t,e){return t in e}function Ar(t,e){var r=e[t];return void 0===r?null:r}function Sr(t){return{type:t}}function Er(t){return{result:&quot;success&quot;,value:t}}function Cr(t){return{result:&quot;error&quot;,value:t}}function Lr(t){return&quot;data-driven&quot;===t[&quot;property-type&quot;]||&quot;cross-faded-data-driven&quot;===t[&quot;property-type&quot;]}function Ir(t){return!!t.expression&amp;&amp;t.expression.parameters.indexOf(&quot;zoom&quot;)&gt;-1}function Pr(t){return!!t.expression&amp;&amp;t.expression.interpolated}function zr(t){return t instanceof Number?&quot;number&quot;:t instanceof String?&quot;string&quot;:t instanceof Boolean?&quot;boolean&quot;:Array.isArray(t)?&quot;array&quot;:null===t?&quot;null&quot;:typeof t}function Or(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)}function Dr(t){return t}function Rr(t,e,r){return void 0!==t?t:void 0!==e?e:void 0!==r?r:void 0}function Fr(t,e,r,n,i){return Rr(typeof r===i?n[r]:void 0,t.default,e.default)}function Br(t,e,r){if(&quot;number&quot;!==zr(r))return Rr(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[n-1][0])return t.stops[n-1][1];var i=Ne(t.stops.map((function(t){return t[0]})),r);return t.stops[i][1]}function Nr(t,e,r){var n=void 0!==t.base?t.base:1;if(&quot;number&quot;!==zr(r))return Rr(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[i-1][0])return t.stops[i-1][1];var a=Ne(t.stops.map((function(t){return t[0]})),r),o=function(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}(r,n,t.stops[a][0],t.stops[a+1][0]),s=t.stops[a][1],l=t.stops[a+1][1],c=Ve[e.type]||Dr;if(t.colorSpace&amp;&amp;&quot;rgb&quot;!==t.colorSpace){var u=er[t.colorSpace];c=function(t,e){return u.reverse(u.interpolate(u.forward(t),u.forward(e),o))}}return&quot;function&quot;==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=s.evaluate.apply(void 0,t),n=l.evaluate.apply(void 0,t);if(void 0!==r&amp;&amp;void 0!==n)return c(r,n,o)}}:c(s,l,o)}function jr(t,e,r){return&quot;color&quot;===e.type?r=Kt.parse(r):&quot;formatted&quot;===e.type?r=te.fromString(r.toString()):&quot;resolvedImage&quot;===e.type?r=ee.fromString(r.toString()):zr(r)===e.type||&quot;enum&quot;===e.type&amp;&amp;e.values[r]||(r=void 0),Rr(r,t.default,e.default)}me.register(Tr,{error:[{kind:&quot;error&quot;},[Rt],function(t,e){throw new se(e[0].evaluate(t))}],typeof:[Rt,[jt],function(t,e){return Gt(ie(e[0].evaluate(t)))}],&quot;to-rgba&quot;:[Ht(Dt,4),[Bt],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Bt,[Dt,Dt,Dt],kr],rgba:[Bt,[Dt,Dt,Dt,Dt],kr],has:{type:Ft,overloads:[[[Rt],function(t,e){return Mr(e[0].evaluate(t),t.properties())}],[[Rt,Nt],function(t,e){var r=e[1];return Mr(e[0].evaluate(t),r.evaluate(t))}]]},get:{type:jt,overloads:[[[Rt],function(t,e){return Ar(e[0].evaluate(t),t.properties())}],[[Rt,Nt],function(t,e){var r=e[1];return Ar(e[0].evaluate(t),r.evaluate(t))}]]},&quot;feature-state&quot;:[jt,[Rt],function(t,e){return Ar(e[0].evaluate(t),t.featureState||{})}],properties:[Nt,[],function(t){return t.properties()}],&quot;geometry-type&quot;:[Rt,[],function(t){return t.geometryType()}],id:[jt,[],function(t){return t.id()}],zoom:[Dt,[],function(t){return t.globals.zoom}],&quot;heatmap-density&quot;:[Dt,[],function(t){return t.globals.heatmapDensity||0}],&quot;line-progress&quot;:[Dt,[],function(t){return t.globals.lineProgress||0}],accumulated:[jt,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],&quot;+&quot;:[Dt,Sr(Dt),function(t,e){for(var r=0,n=0,i=e;n&lt;i.length;n+=1)r+=i[n].evaluate(t);return r}],&quot;*&quot;:[Dt,Sr(Dt),function(t,e){for(var r=1,n=0,i=e;n&lt;i.length;n+=1)r*=i[n].evaluate(t);return r}],&quot;-&quot;:{type:Dt,overloads:[[[Dt,Dt],function(t,e){var r=e[1];return e[0].evaluate(t)-r.evaluate(t)}],[[Dt],function(t,e){return-e[0].evaluate(t)}]]},&quot;/&quot;:[Dt,[Dt,Dt],function(t,e){var r=e[1];return e[0].evaluate(t)/r.evaluate(t)}],&quot;%&quot;:[Dt,[Dt,Dt],function(t,e){var r=e[1];return e[0].evaluate(t)%r.evaluate(t)}],ln2:[Dt,[],function(){return Math.LN2}],pi:[Dt,[],function(){return Math.PI}],e:[Dt,[],function(){return Math.E}],&quot;^&quot;:[Dt,[Dt,Dt],function(t,e){var r=e[1];return Math.pow(e[0].evaluate(t),r.evaluate(t))}],sqrt:[Dt,[Dt],function(t,e){return Math.sqrt(e[0].evaluate(t))}],log10:[Dt,[Dt],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN10}],ln:[Dt,[Dt],function(t,e){return Math.log(e[0].evaluate(t))}],log2:[Dt,[Dt],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN2}],sin:[Dt,[Dt],function(t,e){return Math.sin(e[0].evaluate(t))}],cos:[Dt,[Dt],function(t,e){return Math.cos(e[0].evaluate(t))}],tan:[Dt,[Dt],function(t,e){return Math.tan(e[0].evaluate(t))}],asin:[Dt,[Dt],function(t,e){return Math.asin(e[0].evaluate(t))}],acos:[Dt,[Dt],function(t,e){return Math.acos(e[0].evaluate(t))}],atan:[Dt,[Dt],function(t,e){return Math.atan(e[0].evaluate(t))}],min:[Dt,Sr(Dt),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[Dt,Sr(Dt),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[Dt,[Dt],function(t,e){return Math.abs(e[0].evaluate(t))}],round:[Dt,[Dt],function(t,e){var r=e[0].evaluate(t);return r&lt;0?-Math.round(-r):Math.round(r)}],floor:[Dt,[Dt],function(t,e){return Math.floor(e[0].evaluate(t))}],ceil:[Dt,[Dt],function(t,e){return Math.ceil(e[0].evaluate(t))}],&quot;filter-==&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1];return t.properties()[r.value]===n.value}],&quot;filter-id-==&quot;:[Ft,[jt],function(t,e){var r=e[0];return t.id()===r.value}],&quot;filter-type-==&quot;:[Ft,[Rt],function(t,e){var r=e[0];return t.geometryType()===r.value}],&quot;filter-&lt;&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&lt;a}],&quot;filter-id-&lt;&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&lt;i}],&quot;filter-&gt;&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&gt;a}],&quot;filter-id-&gt;&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&gt;i}],&quot;filter-&lt;=&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&lt;=a}],&quot;filter-id-&lt;=&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&lt;=i}],&quot;filter-&gt;=&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&gt;=a}],&quot;filter-id-&gt;=&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&gt;=i}],&quot;filter-has&quot;:[Ft,[jt],function(t,e){return e[0].value in t.properties()}],&quot;filter-has-id&quot;:[Ft,[],function(t){return null!==t.id()&amp;&amp;void 0!==t.id()}],&quot;filter-type-in&quot;:[Ft,[Ht(Rt)],function(t,e){return e[0].value.indexOf(t.geometryType())&gt;=0}],&quot;filter-id-in&quot;:[Ft,[Ht(jt)],function(t,e){return e[0].value.indexOf(t.id())&gt;=0}],&quot;filter-in-small&quot;:[Ft,[Rt,Ht(jt)],function(t,e){var r=e[0];return e[1].value.indexOf(t.properties()[r.value])&gt;=0}],&quot;filter-in-large&quot;:[Ft,[Rt,Ht(jt)],function(t,e){var r=e[0],n=e[1];return function(t,e,r,n){for(;r&lt;=n;){var i=r+n&gt;&gt;1;if(e[i]===t)return!0;e[i]&gt;t?n=i-1:r=i+1}return!1}(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:Ft,overloads:[[[Ft,Ft],function(t,e){var r=e[1];return e[0].evaluate(t)&amp;&amp;r.evaluate(t)}],[Sr(Ft),function(t,e){for(var r=0,n=e;r&lt;n.length;r+=1)if(!n[r].evaluate(t))return!1;return!0}]]},any:{type:Ft,overloads:[[[Ft,Ft],function(t,e){var r=e[1];return e[0].evaluate(t)||r.evaluate(t)}],[Sr(Ft),function(t,e){for(var r=0,n=e;r&lt;n.length;r+=1)if(n[r].evaluate(t))return!0;return!1}]]},&quot;!&quot;:[Ft,[Ft],function(t,e){return!e[0].evaluate(t)}],&quot;is-supported-script&quot;:[Ft,[Rt],function(t,e){var r=t.globals&amp;&amp;t.globals.isSupportedScript;return!r||r(e[0].evaluate(t))}],upcase:[Rt,[Rt],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[Rt,[Rt],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[Rt,Sr(jt),function(t,e){return e.map((function(e){return ae(e.evaluate(t))})).join(&quot;&quot;)}],&quot;resolved-locale&quot;:[Rt,[Ut],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var Ur=function(t,e){this.expression=t,this._warningHistory={},this._evaluator=new ge,this._defaultValue=e?function(t){return&quot;color&quot;===t.type&amp;&amp;Or(t.default)?new Kt(0,0,0,0):&quot;color&quot;===t.type?Kt.parse(t.default)||null:void 0===t.default?null:t.default}(e):null,this._enumValues=e&amp;&amp;&quot;enum&quot;===e.type?e.values:null};function Vr(t){return Array.isArray(t)&amp;&amp;t.length&gt;0&amp;&amp;&quot;string&quot;==typeof t[0]&amp;&amp;t[0]in Tr}function qr(t,e){var r=new Be(Tr,[],e?function(t){var e={color:Bt,string:Rt,number:Dt,enum:Rt,boolean:Ft,formatted:Vt,resolvedImage:qt};return&quot;array&quot;===t.type?Ht(e[t.value]||jt,t.length):e[t.type]}(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&amp;&amp;&quot;string&quot;===e.type?{typeAnnotation:&quot;coerce&quot;}:void 0);return n?Er(new Ur(n,e)):Cr(r.errors)}Ur.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)},Ur.prototype.evaluate=function(t,e,r,n,i,a){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a||null;try{var o=this.expression.evaluate(this._evaluator);if(null==o||&quot;number&quot;==typeof o&amp;&amp;o!=o)return this._defaultValue;if(this._enumValues&amp;&amp;!(o in this._enumValues))throw new se(&quot;Expected value to be one of &quot;+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(&quot;, &quot;)+&quot;, but found &quot;+JSON.stringify(o)+&quot; instead.&quot;);return o}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,&quot;undefined&quot;!=typeof console&amp;&amp;console.warn(t.message)),this._defaultValue}};var Hr=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent=&quot;constant&quot;!==t&amp;&amp;!De(e.expression)};Hr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},Hr.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)};var Gr=function(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent=&quot;camera&quot;!==t&amp;&amp;!De(e.expression),this.interpolationType=n};function Yr(t,e){if(&quot;error&quot;===(t=qr(t,e)).result)return t;var r=t.value.expression,n=Oe(r);if(!n&amp;&amp;!Lr(e))return Cr([new Pt(&quot;&quot;,&quot;data expressions not supported&quot;)]);var i=Re(r,[&quot;zoom&quot;]);if(!i&amp;&amp;!Ir(e))return Cr([new Pt(&quot;&quot;,&quot;zoom expressions not supported&quot;)]);var a=function t(e){var r=null;if(e instanceof ar)r=t(e.result);else if(e instanceof ir)for(var n=0,i=e.args;n&lt;i.length&amp;&amp;!(r=t(i[n]));n+=1);else(e instanceof je||e instanceof rr)&amp;&amp;e.input instanceof me&amp;&amp;&quot;zoom&quot;===e.input.name&amp;&amp;(r=e);return r instanceof Pt||e.eachChild((function(e){var n=t(e);n instanceof Pt?r=n:!r&amp;&amp;n?r=new Pt(&quot;&quot;,'&quot;zoom&quot; expression may only be used as input to a top-level &quot;step&quot; or &quot;interpolate&quot; expression.'):r&amp;&amp;n&amp;&amp;r!==n&amp;&amp;(r=new Pt(&quot;&quot;,'Only one zoom-based &quot;step&quot; or &quot;interpolate&quot; subexpression may be used in an expression.'))})),r}(r);return a||i?a instanceof Pt?Cr([a]):a instanceof rr&amp;&amp;!Pr(e)?Cr([new Pt(&quot;&quot;,'&quot;interpolate&quot; expressions cannot be used with this property')]):Er(a?new Gr(n?&quot;camera&quot;:&quot;composite&quot;,t.value,a.labels,a instanceof rr?a.interpolation:void 0):new Hr(n?&quot;constant&quot;:&quot;source&quot;,t.value)):Cr([new Pt(&quot;&quot;,'&quot;zoom&quot; expression may only be used as input to a top-level &quot;step&quot; or &quot;interpolate&quot; expression.')])}Gr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},Gr.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)},Gr.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?rr.interpolationFactor(this.interpolationType,t,e,r):0};var Wr=function(t,e){this._parameters=t,this._specification=e,Ct(this,function t(e,r){var n,i,a,o=&quot;color&quot;===r.type,s=e.stops&amp;&amp;&quot;object&quot;==typeof e.stops[0][0],l=s||!(s||void 0!==e.property),c=e.type||(Pr(r)?&quot;exponential&quot;:&quot;interval&quot;);if(o&amp;&amp;((e=Ct({},e)).stops&amp;&amp;(e.stops=e.stops.map((function(t){return[t[0],Kt.parse(t[1])]}))),e.default=Kt.parse(e.default?e.default:r.default)),e.colorSpace&amp;&amp;&quot;rgb&quot;!==e.colorSpace&amp;&amp;!er[e.colorSpace])throw new Error(&quot;Unknown color space: &quot;+e.colorSpace);if(&quot;exponential&quot;===c)n=Nr;else if(&quot;interval&quot;===c)n=Br;else if(&quot;categorical&quot;===c){n=Fr,i=Object.create(null);for(var u=0,f=e.stops;u&lt;f.length;u+=1){var h=f[u];i[h[0]]=h[1]}a=typeof e.stops[0][0]}else{if(&quot;identity&quot;!==c)throw new Error('Unknown function type &quot;'+c+'&quot;');n=jr}if(s){for(var p={},d=[],g=0;g&lt;e.stops.length;g++){var m=e.stops[g],v=m[0].zoom;void 0===p[v]&amp;&amp;(p[v]={zoom:v,type:e.type,property:e.property,default:e.default,stops:[]},d.push(v)),p[v].stops.push([m[0].value,m[1]])}for(var y=[],x=0,b=d;x&lt;b.length;x+=1){var _=b[x];y.push([p[_].zoom,t(p[_],r)])}var w={name:&quot;linear&quot;};return{kind:&quot;composite&quot;,interpolationType:w,interpolationFactor:rr.interpolationFactor.bind(void 0,w),zoomStops:y.map((function(t){return t[0]})),evaluate:function(t,n){var i=t.zoom;return Nr({stops:y,base:e.base},r,i).evaluate(i,n)}}}if(l){var T=&quot;exponential&quot;===c?{name:&quot;exponential&quot;,base:void 0!==e.base?e.base:1}:null;return{kind:&quot;camera&quot;,interpolationType:T,interpolationFactor:rr.interpolationFactor.bind(void 0,T),zoomStops:e.stops.map((function(t){return t[0]})),evaluate:function(t){return n(e,r,t.zoom,i,a)}}}return{kind:&quot;source&quot;,evaluate:function(t,o){var s=o&amp;&amp;o.properties?o.properties[e.property]:void 0;return void 0===s?Rr(e.default,r.default):n(e,r,s,i,a)}}}(this._parameters,this._specification))};function Xr(t){var e=t.key,r=t.value,n=t.valueSpec||{},i=t.objectElementValidators||{},a=t.style,o=t.styleSpec,s=[],l=zr(r);if(&quot;object&quot;!==l)return[new St(e,r,&quot;object expected, &quot;+l+&quot; found&quot;)];for(var c in r){var u=c.split(&quot;.&quot;)[0],f=n[u]||n[&quot;*&quot;],h=void 0;if(i[u])h=i[u];else if(n[u])h=bn;else if(i[&quot;*&quot;])h=i[&quot;*&quot;];else{if(!n[&quot;*&quot;]){s.push(new St(e,r[c],'unknown property &quot;'+c+'&quot;'));continue}h=bn}s=s.concat(h({key:(e?e+&quot;.&quot;:e)+c,value:r[c],valueSpec:f,style:a,styleSpec:o,object:r,objectKey:c},r))}for(var p in n)i[p]||n[p].required&amp;&amp;void 0===n[p].default&amp;&amp;void 0===r[p]&amp;&amp;s.push(new St(e,r,'missing required property &quot;'+p+'&quot;'));return s}function Zr(t){var e=t.value,r=t.valueSpec,n=t.style,i=t.styleSpec,a=t.key,o=t.arrayElementValidator||bn;if(&quot;array&quot;!==zr(e))return[new St(a,e,&quot;array expected, &quot;+zr(e)+&quot; found&quot;)];if(r.length&amp;&amp;e.length!==r.length)return[new St(a,e,&quot;array length &quot;+r.length+&quot; expected, length &quot;+e.length+&quot; found&quot;)];if(r[&quot;min-length&quot;]&amp;&amp;e.length&lt;r[&quot;min-length&quot;])return[new St(a,e,&quot;array length at least &quot;+r[&quot;min-length&quot;]+&quot; expected, length &quot;+e.length+&quot; found&quot;)];var s={type:r.value,values:r.values};i.$version&lt;7&amp;&amp;(s.function=r.function),&quot;object&quot;===zr(r.value)&amp;&amp;(s=r.value);for(var l=[],c=0;c&lt;e.length;c++)l=l.concat(o({array:e,arrayIndex:c,value:e[c],valueSpec:s,style:n,styleSpec:i,key:a+&quot;[&quot;+c+&quot;]&quot;}));return l}function Jr(t){var e=t.key,r=t.value,n=t.valueSpec,i=zr(r);return&quot;number&quot;===i&amp;&amp;r!=r&amp;&amp;(i=&quot;NaN&quot;),&quot;number&quot;!==i?[new St(e,r,&quot;number expected, &quot;+i+&quot; found&quot;)]:&quot;minimum&quot;in n&amp;&amp;r&lt;n.minimum?[new St(e,r,r+&quot; is less than the minimum value &quot;+n.minimum)]:&quot;maximum&quot;in n&amp;&amp;r&gt;n.maximum?[new St(e,r,r+&quot; is greater than the maximum value &quot;+n.maximum)]:[]}function Kr(t){var e,r,n,i=t.valueSpec,a=Lt(t.value.type),o={},s=&quot;categorical&quot;!==a&amp;&amp;void 0===t.value.property,l=!s,c=&quot;array&quot;===zr(t.value.stops)&amp;&amp;&quot;array&quot;===zr(t.value.stops[0])&amp;&amp;&quot;object&quot;===zr(t.value.stops[0][0]),u=Xr({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if(&quot;identity&quot;===a)return[new St(t.key,t.value,'identity function may not have a &quot;stops&quot; property')];var e=[],r=t.value;return e=e.concat(Zr({key:t.key,value:r,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:f})),&quot;array&quot;===zr(r)&amp;&amp;0===r.length&amp;&amp;e.push(new St(t.key,r,&quot;array must have at least one stop&quot;)),e},default:function(t){return bn({key:t.key,value:t.value,valueSpec:i,style:t.style,styleSpec:t.styleSpec})}}});return&quot;identity&quot;===a&amp;&amp;s&amp;&amp;u.push(new St(t.key,t.value,'missing required property &quot;property&quot;')),&quot;identity&quot;===a||t.value.stops||u.push(new St(t.key,t.value,'missing required property &quot;stops&quot;')),&quot;exponential&quot;===a&amp;&amp;t.valueSpec.expression&amp;&amp;!Pr(t.valueSpec)&amp;&amp;u.push(new St(t.key,t.value,&quot;exponential functions not supported&quot;)),t.styleSpec.$version&gt;=8&amp;&amp;(l&amp;&amp;!Lr(t.valueSpec)?u.push(new St(t.key,t.value,&quot;property functions not supported&quot;)):s&amp;&amp;!Ir(t.valueSpec)&amp;&amp;u.push(new St(t.key,t.value,&quot;zoom functions not supported&quot;))),&quot;categorical&quot;!==a&amp;&amp;!c||void 0!==t.value.property||u.push(new St(t.key,t.value,'&quot;property&quot; property is required')),u;function f(t){var e=[],a=t.value,s=t.key;if(&quot;array&quot;!==zr(a))return[new St(s,a,&quot;array expected, &quot;+zr(a)+&quot; found&quot;)];if(2!==a.length)return[new St(s,a,&quot;array length 2 expected, length &quot;+a.length+&quot; found&quot;)];if(c){if(&quot;object&quot;!==zr(a[0]))return[new St(s,a,&quot;object expected, &quot;+zr(a[0])+&quot; found&quot;)];if(void 0===a[0].zoom)return[new St(s,a,&quot;object stop key must have zoom&quot;)];if(void 0===a[0].value)return[new St(s,a,&quot;object stop key must have value&quot;)];if(n&amp;&amp;n&gt;Lt(a[0].zoom))return[new St(s,a[0].zoom,&quot;stop zoom values must appear in ascending order&quot;)];Lt(a[0].zoom)!==n&amp;&amp;(n=Lt(a[0].zoom),r=void 0,o={}),e=e.concat(Xr({key:s+&quot;[0]&quot;,value:a[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:Jr,value:h}}))}else e=e.concat(h({key:s+&quot;[0]&quot;,value:a[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},a));return Vr(It(a[1]))?e.concat([new St(s+&quot;[1]&quot;,a[1],&quot;expressions are not allowed in function stops.&quot;)]):e.concat(bn({key:s+&quot;[1]&quot;,value:a[1],valueSpec:i,style:t.style,styleSpec:t.styleSpec}))}function h(t,n){var s=zr(t.value),l=Lt(t.value),c=null!==t.value?t.value:n;if(e){if(s!==e)return[new St(t.key,c,s+&quot; stop domain type must match previous stop domain type &quot;+e)]}else e=s;if(&quot;number&quot;!==s&amp;&amp;&quot;string&quot;!==s&amp;&amp;&quot;boolean&quot;!==s)return[new St(t.key,c,&quot;stop domain value must be a number, string, or boolean&quot;)];if(&quot;number&quot;!==s&amp;&amp;&quot;categorical&quot;!==a){var u=&quot;number expected, &quot;+s+&quot; found&quot;;return Lr(i)&amp;&amp;void 0===a&amp;&amp;(u+='\nIf you intended to use a categorical function, specify `&quot;type&quot;: &quot;categorical&quot;`.'),[new St(t.key,c,u)]}return&quot;categorical&quot;!==a||&quot;number&quot;!==s||isFinite(l)&amp;&amp;Math.floor(l)===l?&quot;categorical&quot;!==a&amp;&amp;&quot;number&quot;===s&amp;&amp;void 0!==r&amp;&amp;l&lt;r?[new St(t.key,c,&quot;stop domain values must appear in ascending order&quot;)]:(r=l,&quot;categorical&quot;===a&amp;&amp;l in o?[new St(t.key,c,&quot;stop domain values must be unique&quot;)]:(o[l]=!0,[])):[new St(t.key,c,&quot;integer expected, found &quot;+l)]}}function Qr(t){var e=(&quot;property&quot;===t.expressionContext?Yr:qr)(It(t.value),t.valueSpec);if(&quot;error&quot;===e.result)return e.value.map((function(e){return new St(&quot;&quot;+t.key+e.key,t.value,e.message)}));var r=e.value.expression||e.value._styleExpression.expression;if(&quot;property&quot;===t.expressionContext&amp;&amp;&quot;text-font&quot;===t.propertyKey&amp;&amp;!r.outputDefined())return[new St(t.key,t.value,'Invalid data expression for &quot;'+t.propertyKey+'&quot;. Output values must be contained as literals within the expression.')];if(&quot;property&quot;===t.expressionContext&amp;&amp;&quot;layout&quot;===t.propertyType&amp;&amp;!De(r))return[new St(t.key,t.value,'&quot;feature-state&quot; data expressions are not supported with layout properties.')];if(&quot;filter&quot;===t.expressionContext&amp;&amp;!De(r))return[new St(t.key,t.value,'&quot;feature-state&quot; data expressions are not supported with filters.')];if(t.expressionContext&amp;&amp;0===t.expressionContext.indexOf(&quot;cluster&quot;)){if(!Re(r,[&quot;zoom&quot;,&quot;feature-state&quot;]))return[new St(t.key,t.value,'&quot;zoom&quot; and &quot;feature-state&quot; expressions are not supported with cluster properties.')];if(&quot;cluster-initial&quot;===t.expressionContext&amp;&amp;!Oe(r))return[new St(t.key,t.value,&quot;Feature data expressions are not supported with initial expression part of cluster properties.&quot;)]}return[]}function $r(t){var e=t.key,r=t.value,n=t.valueSpec,i=[];return Array.isArray(n.values)?-1===n.values.indexOf(Lt(r))&amp;&amp;i.push(new St(e,r,&quot;expected one of [&quot;+n.values.join(&quot;, &quot;)+&quot;], &quot;+JSON.stringify(r)+&quot; found&quot;)):-1===Object.keys(n.values).indexOf(Lt(r))&amp;&amp;i.push(new St(e,r,&quot;expected one of [&quot;+Object.keys(n.values).join(&quot;, &quot;)+&quot;], &quot;+JSON.stringify(r)+&quot; found&quot;)),i}function tn(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case&quot;has&quot;:return t.length&gt;=2&amp;&amp;&quot;$id&quot;!==t[1]&amp;&amp;&quot;$type&quot;!==t[1];case&quot;in&quot;:return t.length&gt;=3&amp;&amp;(&quot;string&quot;!=typeof t[1]||Array.isArray(t[2]));case&quot;!in&quot;:case&quot;!has&quot;:case&quot;none&quot;:return!1;case&quot;==&quot;:case&quot;!=&quot;:case&quot;&gt;&quot;:case&quot;&gt;=&quot;:case&quot;&lt;&quot;:case&quot;&lt;=&quot;:return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case&quot;any&quot;:case&quot;all&quot;:for(var e=0,r=t.slice(1);e&lt;r.length;e+=1){var n=r[e];if(!tn(n)&amp;&amp;&quot;boolean&quot;!=typeof n)return!1}return!0;default:return!0}}Wr.deserialize=function(t){return new Wr(t._parameters,t._specification)},Wr.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var en={type:&quot;boolean&quot;,default:!1,transition:!1,&quot;property-type&quot;:&quot;data-driven&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]}};function rn(t){if(null==t)return{filter:function(){return!0},needGeometry:!1};tn(t)||(t=an(t));var e=qr(t,en);if(&quot;error&quot;===e.result)throw new Error(e.value.map((function(t){return t.key+&quot;: &quot;+t.message})).join(&quot;, &quot;));return{filter:function(t,r,n){return e.value.evaluate(t,r,{},n)},needGeometry:function t(e){if(!Array.isArray(e))return!1;if(&quot;within&quot;===e[0])return!0;for(var r=1;r&lt;e.length;r++)if(t(e[r]))return!0;return!1}(t)}}function nn(t,e){return t&lt;e?-1:t&gt;e?1:0}function an(t){if(!t)return!0;var e,r=t[0];return t.length&lt;=1?&quot;any&quot;!==r:&quot;==&quot;===r?on(t[1],t[2],&quot;==&quot;):&quot;!=&quot;===r?cn(on(t[1],t[2],&quot;==&quot;)):&quot;&lt;&quot;===r||&quot;&gt;&quot;===r||&quot;&lt;=&quot;===r||&quot;&gt;=&quot;===r?on(t[1],t[2],r):&quot;any&quot;===r?(e=t.slice(1),[&quot;any&quot;].concat(e.map(an))):&quot;all&quot;===r?[&quot;all&quot;].concat(t.slice(1).map(an)):&quot;none&quot;===r?[&quot;all&quot;].concat(t.slice(1).map(an).map(cn)):&quot;in&quot;===r?sn(t[1],t.slice(2)):&quot;!in&quot;===r?cn(sn(t[1],t.slice(2))):&quot;has&quot;===r?ln(t[1]):&quot;!has&quot;===r?cn(ln(t[1])):&quot;within&quot;!==r||t}function on(t,e,r){switch(t){case&quot;$type&quot;:return[&quot;filter-type-&quot;+r,e];case&quot;$id&quot;:return[&quot;filter-id-&quot;+r,e];default:return[&quot;filter-&quot;+r,t,e]}}function sn(t,e){if(0===e.length)return!1;switch(t){case&quot;$type&quot;:return[&quot;filter-type-in&quot;,[&quot;literal&quot;,e]];case&quot;$id&quot;:return[&quot;filter-id-in&quot;,[&quot;literal&quot;,e]];default:return e.length&gt;200&amp;&amp;!e.some((function(t){return typeof t!=typeof e[0]}))?[&quot;filter-in-large&quot;,t,[&quot;literal&quot;,e.sort(nn)]]:[&quot;filter-in-small&quot;,t,[&quot;literal&quot;,e]]}}function ln(t){switch(t){case&quot;$type&quot;:return!0;case&quot;$id&quot;:return[&quot;filter-has-id&quot;];default:return[&quot;filter-has&quot;,t]}}function cn(t){return[&quot;!&quot;,t]}function un(t){return tn(It(t.value))?Qr(Ct({},t,{expressionContext:&quot;filter&quot;,valueSpec:{value:&quot;boolean&quot;}})):function t(e){var r=e.value,n=e.key;if(&quot;array&quot;!==zr(r))return[new St(n,r,&quot;array expected, &quot;+zr(r)+&quot; found&quot;)];var i,a=e.styleSpec,o=[];if(r.length&lt;1)return[new St(n,r,&quot;filter array must have at least 1 element&quot;)];switch(o=o.concat($r({key:n+&quot;[0]&quot;,value:r[0],valueSpec:a.filter_operator,style:e.style,styleSpec:e.styleSpec})),Lt(r[0])){case&quot;&lt;&quot;:case&quot;&lt;=&quot;:case&quot;&gt;&quot;:case&quot;&gt;=&quot;:r.length&gt;=2&amp;&amp;&quot;$type&quot;===Lt(r[1])&amp;&amp;o.push(new St(n,r,'&quot;$type&quot; cannot be use with operator &quot;'+r[0]+'&quot;'));case&quot;==&quot;:case&quot;!=&quot;:3!==r.length&amp;&amp;o.push(new St(n,r,'filter array for operator &quot;'+r[0]+'&quot; must have 3 elements'));case&quot;in&quot;:case&quot;!in&quot;:r.length&gt;=2&amp;&amp;&quot;string&quot;!==(i=zr(r[1]))&amp;&amp;o.push(new St(n+&quot;[1]&quot;,r[1],&quot;string expected, &quot;+i+&quot; found&quot;));for(var s=2;s&lt;r.length;s++)i=zr(r[s]),&quot;$type&quot;===Lt(r[1])?o=o.concat($r({key:n+&quot;[&quot;+s+&quot;]&quot;,value:r[s],valueSpec:a.geometry_type,style:e.style,styleSpec:e.styleSpec})):&quot;string&quot;!==i&amp;&amp;&quot;number&quot;!==i&amp;&amp;&quot;boolean&quot;!==i&amp;&amp;o.push(new St(n+&quot;[&quot;+s+&quot;]&quot;,r[s],&quot;string, number, or boolean expected, &quot;+i+&quot; found&quot;));break;case&quot;any&quot;:case&quot;all&quot;:case&quot;none&quot;:for(var l=1;l&lt;r.length;l++)o=o.concat(t({key:n+&quot;[&quot;+l+&quot;]&quot;,value:r[l],style:e.style,styleSpec:e.styleSpec}));break;case&quot;has&quot;:case&quot;!has&quot;:i=zr(r[1]),2!==r.length?o.push(new St(n,r,'filter array for &quot;'+r[0]+'&quot; operator must have 2 elements')):&quot;string&quot;!==i&amp;&amp;o.push(new St(n+&quot;[1]&quot;,r[1],&quot;string expected, &quot;+i+&quot; found&quot;));break;case&quot;within&quot;:i=zr(r[1]),2!==r.length?o.push(new St(n,r,'filter array for &quot;'+r[0]+'&quot; operator must have 2 elements')):&quot;object&quot;!==i&amp;&amp;o.push(new St(n+&quot;[1]&quot;,r[1],&quot;object expected, &quot;+i+&quot; found&quot;))}return o}(t)}function fn(t,e){var r=t.key,n=t.style,i=t.styleSpec,a=t.value,o=t.objectKey,s=i[e+&quot;_&quot;+t.layerType];if(!s)return[];var l=o.match(/^(.*)-transition$/);if(&quot;paint&quot;===e&amp;&amp;l&amp;&amp;s[l[1]]&amp;&amp;s[l[1]].transition)return bn({key:r,value:a,valueSpec:i.transition,style:n,styleSpec:i});var c,u=t.valueSpec||s[o];if(!u)return[new St(r,a,'unknown property &quot;'+o+'&quot;')];if(&quot;string&quot;===zr(a)&amp;&amp;Lr(u)&amp;&amp;!u.tokens&amp;&amp;(c=/^{([^}]+)}$/.exec(a)))return[new St(r,a,'&quot;'+o+'&quot; does not support interpolation syntax\nUse an identity property function instead: `{ &quot;type&quot;: &quot;identity&quot;, &quot;property&quot;: '+JSON.stringify(c[1])+&quot; }`.&quot;)];var f=[];return&quot;symbol&quot;===t.layerType&amp;&amp;(&quot;text-field&quot;===o&amp;&amp;n&amp;&amp;!n.glyphs&amp;&amp;f.push(new St(r,a,'use of &quot;text-field&quot; requires a style &quot;glyphs&quot; property')),&quot;text-font&quot;===o&amp;&amp;Or(It(a))&amp;&amp;&quot;identity&quot;===Lt(a.type)&amp;&amp;f.push(new St(r,a,'&quot;text-font&quot; does not support identity functions'))),f.concat(bn({key:t.key,value:a,valueSpec:u,style:n,styleSpec:i,expressionContext:&quot;property&quot;,propertyType:e,propertyKey:o}))}function hn(t){return fn(t,&quot;paint&quot;)}function pn(t){return fn(t,&quot;layout&quot;)}function dn(t){var e=[],r=t.value,n=t.key,i=t.style,a=t.styleSpec;r.type||r.ref||e.push(new St(n,r,'either &quot;type&quot; or &quot;ref&quot; is required'));var o,s=Lt(r.type),l=Lt(r.ref);if(r.id)for(var c=Lt(r.id),u=0;u&lt;t.arrayIndex;u++){var f=i.layers[u];Lt(f.id)===c&amp;&amp;e.push(new St(n,r.id,'duplicate layer id &quot;'+r.id+'&quot;, previously used at line '+f.id.__line__))}if(&quot;ref&quot;in r)[&quot;type&quot;,&quot;source&quot;,&quot;source-layer&quot;,&quot;filter&quot;,&quot;layout&quot;].forEach((function(t){t in r&amp;&amp;e.push(new St(n,r[t],'&quot;'+t+'&quot; is prohibited for ref layers'))})),i.layers.forEach((function(t){Lt(t.id)===l&amp;&amp;(o=t)})),o?o.ref?e.push(new St(n,r.ref,&quot;ref cannot reference another ref layer&quot;)):s=Lt(o.type):e.push(new St(n,r.ref,'ref layer &quot;'+l+'&quot; not found'));else if(&quot;background&quot;!==s)if(r.source){var h=i.sources&amp;&amp;i.sources[r.source],p=h&amp;&amp;Lt(h.type);h?&quot;vector&quot;===p&amp;&amp;&quot;raster&quot;===s?e.push(new St(n,r.source,'layer &quot;'+r.id+'&quot; requires a raster source')):&quot;raster&quot;===p&amp;&amp;&quot;raster&quot;!==s?e.push(new St(n,r.source,'layer &quot;'+r.id+'&quot; requires a vector source')):&quot;vector&quot;!==p||r[&quot;source-layer&quot;]?&quot;raster-dem&quot;===p&amp;&amp;&quot;hillshade&quot;!==s?e.push(new St(n,r.source,&quot;raster-dem source can only be used with layer type 'hillshade'.&quot;)):&quot;line&quot;!==s||!r.paint||!r.paint[&quot;line-gradient&quot;]||&quot;geojson&quot;===p&amp;&amp;h.lineMetrics||e.push(new St(n,r,'layer &quot;'+r.id+'&quot; specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new St(n,r,'layer &quot;'+r.id+'&quot; must specify a &quot;source-layer&quot;')):e.push(new St(n,r.source,'source &quot;'+r.source+'&quot; not found'))}else e.push(new St(n,r,'missing required property &quot;source&quot;'));return e=e.concat(Xr({key:n,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(){return[]},type:function(){return bn({key:n+&quot;.type&quot;,value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,object:r,objectKey:&quot;type&quot;})},filter:un,layout:function(t){return Xr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(t){return pn(Ct({layerType:s},t))}}})},paint:function(t){return Xr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(t){return hn(Ct({layerType:s},t))}}})}}}))}function gn(t){var e=t.value,r=t.key,n=zr(e);return&quot;string&quot;!==n?[new St(r,e,&quot;string expected, &quot;+n+&quot; found&quot;)]:[]}var mn={promoteId:function(t){var e=t.key,r=t.value;if(&quot;string&quot;===zr(r))return gn({key:e,value:r});var n=[];for(var i in r)n.push.apply(n,gn({key:e+&quot;.&quot;+i,value:r[i]}));return n}};function vn(t){var e=t.value,r=t.key,n=t.styleSpec,i=t.style;if(!e.type)return[new St(r,e,'&quot;type&quot; is required')];var a,o=Lt(e.type);switch(o){case&quot;vector&quot;:case&quot;raster&quot;:case&quot;raster-dem&quot;:return Xr({key:r,value:e,valueSpec:n[&quot;source_&quot;+o.replace(&quot;-&quot;,&quot;_&quot;)],style:t.style,styleSpec:n,objectElementValidators:mn});case&quot;geojson&quot;:if(a=Xr({key:r,value:e,valueSpec:n.source_geojson,style:i,styleSpec:n,objectElementValidators:mn}),e.cluster)for(var s in e.clusterProperties){var l=e.clusterProperties[s],c=l[0],u=&quot;string&quot;==typeof c?[c,[&quot;accumulated&quot;],[&quot;get&quot;,s]]:c;a.push.apply(a,Qr({key:r+&quot;.&quot;+s+&quot;.map&quot;,value:l[1],expressionContext:&quot;cluster-map&quot;})),a.push.apply(a,Qr({key:r+&quot;.&quot;+s+&quot;.reduce&quot;,value:u,expressionContext:&quot;cluster-reduce&quot;}))}return a;case&quot;video&quot;:return Xr({key:r,value:e,valueSpec:n.source_video,style:i,styleSpec:n});case&quot;image&quot;:return Xr({key:r,value:e,valueSpec:n.source_image,style:i,styleSpec:n});case&quot;canvas&quot;:return[new St(r,null,&quot;Please use runtime APIs to add canvas sources, rather than including them in stylesheets.&quot;,&quot;source.canvas&quot;)];default:return $r({key:r+&quot;.type&quot;,value:e.type,valueSpec:{values:[&quot;vector&quot;,&quot;raster&quot;,&quot;raster-dem&quot;,&quot;geojson&quot;,&quot;video&quot;,&quot;image&quot;]},style:i,styleSpec:n})}}function yn(t){var e=t.value,r=t.styleSpec,n=r.light,i=t.style,a=[],o=zr(e);if(void 0===e)return a;if(&quot;object&quot;!==o)return a.concat([new St(&quot;light&quot;,e,&quot;object expected, &quot;+o+&quot; found&quot;)]);for(var s in e){var l=s.match(/^(.*)-transition$/);a=a.concat(l&amp;&amp;n[l[1]]&amp;&amp;n[l[1]].transition?bn({key:s,value:e[s],valueSpec:r.transition,style:i,styleSpec:r}):n[s]?bn({key:s,value:e[s],valueSpec:n[s],style:i,styleSpec:r}):[new St(s,e[s],'unknown property &quot;'+s+'&quot;')])}return a}var xn={&quot;*&quot;:function(){return[]},array:Zr,boolean:function(t){var e=t.value,r=t.key,n=zr(e);return&quot;boolean&quot;!==n?[new St(r,e,&quot;boolean expected, &quot;+n+&quot; found&quot;)]:[]},number:Jr,color:function(t){var e=t.key,r=t.value,n=zr(r);return&quot;string&quot;!==n?[new St(e,r,&quot;color expected, &quot;+n+&quot; found&quot;)]:null===Jt(r)?[new St(e,r,'color expected, &quot;'+r+'&quot; found')]:[]},constants:Et,enum:$r,filter:un,function:Kr,layer:dn,object:Xr,source:vn,light:yn,string:gn,formatted:function(t){return 0===gn(t).length?[]:Qr(t)},resolvedImage:function(t){return 0===gn(t).length?[]:Qr(t)}};function bn(t){var e=t.value,r=t.valueSpec,n=t.styleSpec;return r.expression&amp;&amp;Or(Lt(e))?Kr(t):r.expression&amp;&amp;Vr(It(e))?Qr(t):r.type&amp;&amp;xn[r.type]?xn[r.type](t):Xr(Ct({},t,{valueSpec:r.type?n[r.type]:r}))}function _n(t){var e=t.value,r=t.key,n=gn(t);return n.length||(-1===e.indexOf(&quot;{fontstack}&quot;)&amp;&amp;n.push(new St(r,e,'&quot;glyphs&quot; url must include a &quot;{fontstack}&quot; token')),-1===e.indexOf(&quot;{range}&quot;)&amp;&amp;n.push(new St(r,e,'&quot;glyphs&quot; url must include a &quot;{range}&quot; token'))),n}function wn(t,e){void 0===e&amp;&amp;(e=At);var r=[];return r=r.concat(bn({key:&quot;&quot;,value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:_n,&quot;*&quot;:function(){return[]}}})),t.constants&amp;&amp;(r=r.concat(Et({key:&quot;constants&quot;,value:t.constants,style:t,styleSpec:e}))),Tn(r)}function Tn(t){return[].concat(t).sort((function(t,e){return t.line-e.line}))}function kn(t){return function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return Tn(t.apply(this,e))}}wn.source=kn(vn),wn.light=kn(yn),wn.layer=kn(dn),wn.filter=kn(un),wn.paintProperty=kn(hn),wn.layoutProperty=kn(pn);var Mn=wn,An=Mn.light,Sn=Mn.paintProperty,En=Mn.layoutProperty;function Cn(t,e){var r=!1;if(e&amp;&amp;e.length)for(var n=0,i=e;n&lt;i.length;n+=1)t.fire(new kt(new Error(i[n].message))),r=!0;return r}var Ln=In;function In(t,e,r){var n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var i=new Int32Array(this.arrayBuffer);t=i[0],this.d=(e=i[1])+2*(r=i[2]);for(var a=0;a&lt;this.d*this.d;a++){var o=i[3+a],s=i[3+a+1];n.push(o===s?null:i.subarray(o,s))}var l=i[3+n.length+1];this.keys=i.subarray(i[3+n.length],l),this.bboxes=i.subarray(l),this.insert=this._insertReadonly}else{this.d=e+2*r;for(var c=0;c&lt;this.d*this.d;c++)n.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=r,this.scale=e/t,this.uid=0;var u=r/e*t;this.min=-u,this.max=t+u}In.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},In.prototype._insertReadonly=function(){throw&quot;Cannot insert into a GridIndex created from an ArrayBuffer.&quot;},In.prototype._insertCell=function(t,e,r,n,i,a){this.cells[i].push(a)},In.prototype.query=function(t,e,r,n,i){var a=this.min,o=this.max;if(t&lt;=a&amp;&amp;e&lt;=a&amp;&amp;o&lt;=r&amp;&amp;o&lt;=n&amp;&amp;!i)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(t,e,r,n,this._queryCell,s,{},i),s},In.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=this.cells[i];if(null!==l)for(var c=this.keys,u=this.bboxes,f=0;f&lt;l.length;f++){var h=l[f];if(void 0===o[h]){var p=4*h;(s?s(u[p+0],u[p+1],u[p+2],u[p+3]):t&lt;=u[p+2]&amp;&amp;e&lt;=u[p+3]&amp;&amp;r&gt;=u[p+0]&amp;&amp;n&gt;=u[p+1])?(o[h]=!0,a.push(c[h])):o[h]=!1}}},In.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToCellCoord(t),c=this._convertToCellCoord(e),u=this._convertToCellCoord(r),f=this._convertToCellCoord(n),h=l;h&lt;=u;h++)for(var p=c;p&lt;=f;p++){var d=this.d*p+h;if((!s||s(this._convertFromCellCoord(h),this._convertFromCellCoord(p),this._convertFromCellCoord(h+1),this._convertFromCellCoord(p+1)))&amp;&amp;i.call(this,t,e,r,n,d,a,o,s))return}},In.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},In.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},In.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,r=0,n=0;n&lt;this.cells.length;n++)r+=this.cells[n].length;var i=new Int32Array(e+r+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var a=e,o=0;o&lt;t.length;o++){var s=t[o];i[3+o]=a,i.set(s,a),a+=s.length}return i[3+t.length]=a,i.set(this.keys,a),i[3+t.length+1]=a+=this.keys.length,i.set(this.bboxes,a),a+=this.bboxes.length,i.buffer};var Pn=self.ImageData,zn=self.ImageBitmap,On={};function Dn(t,e,r){void 0===r&amp;&amp;(r={}),Object.defineProperty(e,&quot;_classRegistryKey&quot;,{value:t,writeable:!1}),On[t]={klass:e,omit:r.omit||[],shallow:r.shallow||[]}}for(var Rn in Dn(&quot;Object&quot;,Object),Ln.serialize=function(t,e){var r=t.toArrayBuffer();return e&amp;&amp;e.push(r),{buffer:r}},Ln.deserialize=function(t){return new Ln(t.buffer)},Dn(&quot;Grid&quot;,Ln),Dn(&quot;Color&quot;,Kt),Dn(&quot;Error&quot;,Error),Dn(&quot;ResolvedImage&quot;,ee),Dn(&quot;StylePropertyFunction&quot;,Wr),Dn(&quot;StyleExpression&quot;,Ur,{omit:[&quot;_evaluator&quot;]}),Dn(&quot;ZoomDependentExpression&quot;,Gr),Dn(&quot;ZoomConstantExpression&quot;,Hr),Dn(&quot;CompoundExpression&quot;,me,{omit:[&quot;_evaluate&quot;]}),Tr)Tr[Rn]._classRegistryKey||Dn(&quot;Expression_&quot;+Rn,Tr[Rn]);function Fn(t){return t&amp;&amp;&quot;undefined&quot;!=typeof ArrayBuffer&amp;&amp;(t instanceof ArrayBuffer||t.constructor&amp;&amp;&quot;ArrayBuffer&quot;===t.constructor.name)}function Bn(t){return zn&amp;&amp;t instanceof zn}function Nn(t,e){if(null==t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(Fn(t)||Bn(t))return e&amp;&amp;e.push(t),t;if(ArrayBuffer.isView(t)){var r=t;return e&amp;&amp;e.push(r.buffer),r}if(t instanceof Pn)return e&amp;&amp;e.push(t.data.buffer),t;if(Array.isArray(t)){for(var n=[],i=0,a=t;i&lt;a.length;i+=1)n.push(Nn(a[i],e));return n}if(&quot;object&quot;==typeof t){var o=t.constructor,s=o._classRegistryKey;if(!s)throw new Error(&quot;can't serialize object of unregistered class&quot;);var l=o.serialize?o.serialize(t,e):{};if(!o.serialize){for(var c in t)if(t.hasOwnProperty(c)&amp;&amp;!(On[s].omit.indexOf(c)&gt;=0)){var u=t[c];l[c]=On[s].shallow.indexOf(c)&gt;=0?u:Nn(u,e)}t instanceof Error&amp;&amp;(l.message=t.message)}if(l.$name)throw new Error(&quot;$name property is reserved for worker serialization logic.&quot;);return&quot;Object&quot;!==s&amp;&amp;(l.$name=s),l}throw new Error(&quot;can't serialize object of type &quot;+typeof t)}function jn(t){if(null==t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||Fn(t)||Bn(t)||ArrayBuffer.isView(t)||t instanceof Pn)return t;if(Array.isArray(t))return t.map(jn);if(&quot;object&quot;==typeof t){var e=t.$name||&quot;Object&quot;,r=On[e].klass;if(!r)throw new Error(&quot;can't deserialize unregistered class &quot;+e);if(r.deserialize)return r.deserialize(t);for(var n=Object.create(r.prototype),i=0,a=Object.keys(t);i&lt;a.length;i+=1){var o=a[i];if(&quot;$name&quot;!==o){var s=t[o];n[o]=On[e].shallow.indexOf(o)&gt;=0?s:jn(s)}}return n}throw new Error(&quot;can't deserialize object of type &quot;+typeof t)}var Un=function(){this.first=!0};Un.prototype.update=function(t,e){var r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom&gt;r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoom&lt;r&amp;&amp;(this.lastIntegerZoom=r,this.lastIntegerZoomTime=e),t!==this.lastZoom&amp;&amp;(this.lastZoom=t,this.lastFloorZoom=r,!0))};var Vn={&quot;Latin-1 Supplement&quot;:function(t){return t&gt;=128&amp;&amp;t&lt;=255},Arabic:function(t){return t&gt;=1536&amp;&amp;t&lt;=1791},&quot;Arabic Supplement&quot;:function(t){return t&gt;=1872&amp;&amp;t&lt;=1919},&quot;Arabic Extended-A&quot;:function(t){return t&gt;=2208&amp;&amp;t&lt;=2303},&quot;Hangul Jamo&quot;:function(t){return t&gt;=4352&amp;&amp;t&lt;=4607},&quot;Unified Canadian Aboriginal Syllabics&quot;:function(t){return t&gt;=5120&amp;&amp;t&lt;=5759},Khmer:function(t){return t&gt;=6016&amp;&amp;t&lt;=6143},&quot;Unified Canadian Aboriginal Syllabics Extended&quot;:function(t){return t&gt;=6320&amp;&amp;t&lt;=6399},&quot;General Punctuation&quot;:function(t){return t&gt;=8192&amp;&amp;t&lt;=8303},&quot;Letterlike Symbols&quot;:function(t){return t&gt;=8448&amp;&amp;t&lt;=8527},&quot;Number Forms&quot;:function(t){return t&gt;=8528&amp;&amp;t&lt;=8591},&quot;Miscellaneous Technical&quot;:function(t){return t&gt;=8960&amp;&amp;t&lt;=9215},&quot;Control Pictures&quot;:function(t){return t&gt;=9216&amp;&amp;t&lt;=9279},&quot;Optical Character Recognition&quot;:function(t){return t&gt;=9280&amp;&amp;t&lt;=9311},&quot;Enclosed Alphanumerics&quot;:function(t){return t&gt;=9312&amp;&amp;t&lt;=9471},&quot;Geometric Shapes&quot;:function(t){return t&gt;=9632&amp;&amp;t&lt;=9727},&quot;Miscellaneous Symbols&quot;:function(t){return t&gt;=9728&amp;&amp;t&lt;=9983},&quot;Miscellaneous Symbols and Arrows&quot;:function(t){return t&gt;=11008&amp;&amp;t&lt;=11263},&quot;CJK Radicals Supplement&quot;:function(t){return t&gt;=11904&amp;&amp;t&lt;=12031},&quot;Kangxi Radicals&quot;:function(t){return t&gt;=12032&amp;&amp;t&lt;=12255},&quot;Ideographic Description Characters&quot;:function(t){return t&gt;=12272&amp;&amp;t&lt;=12287},&quot;CJK Symbols and Punctuation&quot;:function(t){return t&gt;=12288&amp;&amp;t&lt;=12351},Hiragana:function(t){return t&gt;=12352&amp;&amp;t&lt;=12447},Katakana:function(t){return t&gt;=12448&amp;&amp;t&lt;=12543},Bopomofo:function(t){return t&gt;=12544&amp;&amp;t&lt;=12591},&quot;Hangul Compatibility Jamo&quot;:function(t){return t&gt;=12592&amp;&amp;t&lt;=12687},Kanbun:function(t){return t&gt;=12688&amp;&amp;t&lt;=12703},&quot;Bopomofo Extended&quot;:function(t){return t&gt;=12704&amp;&amp;t&lt;=12735},&quot;CJK Strokes&quot;:function(t){return t&gt;=12736&amp;&amp;t&lt;=12783},&quot;Katakana Phonetic Extensions&quot;:function(t){return t&gt;=12784&amp;&amp;t&lt;=12799},&quot;Enclosed CJK Letters and Months&quot;:function(t){return t&gt;=12800&amp;&amp;t&lt;=13055},&quot;CJK Compatibility&quot;:function(t){return t&gt;=13056&amp;&amp;t&lt;=13311},&quot;CJK Unified Ideographs Extension A&quot;:function(t){return t&gt;=13312&amp;&amp;t&lt;=19903},&quot;Yijing Hexagram Symbols&quot;:function(t){return t&gt;=19904&amp;&amp;t&lt;=19967},&quot;CJK Unified Ideographs&quot;:function(t){return t&gt;=19968&amp;&amp;t&lt;=40959},&quot;Yi Syllables&quot;:function(t){return t&gt;=40960&amp;&amp;t&lt;=42127},&quot;Yi Radicals&quot;:function(t){return t&gt;=42128&amp;&amp;t&lt;=42191},&quot;Hangul Jamo Extended-A&quot;:function(t){return t&gt;=43360&amp;&amp;t&lt;=43391},&quot;Hangul Syllables&quot;:function(t){return t&gt;=44032&amp;&amp;t&lt;=55215},&quot;Hangul Jamo Extended-B&quot;:function(t){return t&gt;=55216&amp;&amp;t&lt;=55295},&quot;Private Use Area&quot;:function(t){return t&gt;=57344&amp;&amp;t&lt;=63743},&quot;CJK Compatibility Ideographs&quot;:function(t){return t&gt;=63744&amp;&amp;t&lt;=64255},&quot;Arabic Presentation Forms-A&quot;:function(t){return t&gt;=64336&amp;&amp;t&lt;=65023},&quot;Vertical Forms&quot;:function(t){return t&gt;=65040&amp;&amp;t&lt;=65055},&quot;CJK Compatibility Forms&quot;:function(t){return t&gt;=65072&amp;&amp;t&lt;=65103},&quot;Small Form Variants&quot;:function(t){return t&gt;=65104&amp;&amp;t&lt;=65135},&quot;Arabic Presentation Forms-B&quot;:function(t){return t&gt;=65136&amp;&amp;t&lt;=65279},&quot;Halfwidth and Fullwidth Forms&quot;:function(t){return t&gt;=65280&amp;&amp;t&lt;=65519}};function qn(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(Hn(r[e].charCodeAt(0)))return!0;return!1}function Hn(t){return!(746!==t&amp;&amp;747!==t&amp;&amp;(t&lt;4352||!(Vn[&quot;Bopomofo Extended&quot;](t)||Vn.Bopomofo(t)||Vn[&quot;CJK Compatibility Forms&quot;](t)&amp;&amp;!(t&gt;=65097&amp;&amp;t&lt;=65103)||Vn[&quot;CJK Compatibility Ideographs&quot;](t)||Vn[&quot;CJK Compatibility&quot;](t)||Vn[&quot;CJK Radicals Supplement&quot;](t)||Vn[&quot;CJK Strokes&quot;](t)||!(!Vn[&quot;CJK Symbols and Punctuation&quot;](t)||t&gt;=12296&amp;&amp;t&lt;=12305||t&gt;=12308&amp;&amp;t&lt;=12319||12336===t)||Vn[&quot;CJK Unified Ideographs Extension A&quot;](t)||Vn[&quot;CJK Unified Ideographs&quot;](t)||Vn[&quot;Enclosed CJK Letters and Months&quot;](t)||Vn[&quot;Hangul Compatibility Jamo&quot;](t)||Vn[&quot;Hangul Jamo Extended-A&quot;](t)||Vn[&quot;Hangul Jamo Extended-B&quot;](t)||Vn[&quot;Hangul Jamo&quot;](t)||Vn[&quot;Hangul Syllables&quot;](t)||Vn.Hiragana(t)||Vn[&quot;Ideographic Description Characters&quot;](t)||Vn.Kanbun(t)||Vn[&quot;Kangxi Radicals&quot;](t)||Vn[&quot;Katakana Phonetic Extensions&quot;](t)||Vn.Katakana(t)&amp;&amp;12540!==t||!(!Vn[&quot;Halfwidth and Fullwidth Forms&quot;](t)||65288===t||65289===t||65293===t||t&gt;=65306&amp;&amp;t&lt;=65310||65339===t||65341===t||65343===t||t&gt;=65371&amp;&amp;t&lt;=65503||65507===t||t&gt;=65512&amp;&amp;t&lt;=65519)||!(!Vn[&quot;Small Form Variants&quot;](t)||t&gt;=65112&amp;&amp;t&lt;=65118||t&gt;=65123&amp;&amp;t&lt;=65126)||Vn[&quot;Unified Canadian Aboriginal Syllabics&quot;](t)||Vn[&quot;Unified Canadian Aboriginal Syllabics Extended&quot;](t)||Vn[&quot;Vertical Forms&quot;](t)||Vn[&quot;Yijing Hexagram Symbols&quot;](t)||Vn[&quot;Yi Syllables&quot;](t)||Vn[&quot;Yi Radicals&quot;](t))))}function Gn(t){return!(Hn(t)||function(t){return!!(Vn[&quot;Latin-1 Supplement&quot;](t)&amp;&amp;(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||Vn[&quot;General Punctuation&quot;](t)&amp;&amp;(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||Vn[&quot;Letterlike Symbols&quot;](t)||Vn[&quot;Number Forms&quot;](t)||Vn[&quot;Miscellaneous Technical&quot;](t)&amp;&amp;(t&gt;=8960&amp;&amp;t&lt;=8967||t&gt;=8972&amp;&amp;t&lt;=8991||t&gt;=8996&amp;&amp;t&lt;=9e3||9003===t||t&gt;=9085&amp;&amp;t&lt;=9114||t&gt;=9150&amp;&amp;t&lt;=9165||9167===t||t&gt;=9169&amp;&amp;t&lt;=9179||t&gt;=9186&amp;&amp;t&lt;=9215)||Vn[&quot;Control Pictures&quot;](t)&amp;&amp;9251!==t||Vn[&quot;Optical Character Recognition&quot;](t)||Vn[&quot;Enclosed Alphanumerics&quot;](t)||Vn[&quot;Geometric Shapes&quot;](t)||Vn[&quot;Miscellaneous Symbols&quot;](t)&amp;&amp;!(t&gt;=9754&amp;&amp;t&lt;=9759)||Vn[&quot;Miscellaneous Symbols and Arrows&quot;](t)&amp;&amp;(t&gt;=11026&amp;&amp;t&lt;=11055||t&gt;=11088&amp;&amp;t&lt;=11097||t&gt;=11192&amp;&amp;t&lt;=11243)||Vn[&quot;CJK Symbols and Punctuation&quot;](t)||Vn.Katakana(t)||Vn[&quot;Private Use Area&quot;](t)||Vn[&quot;CJK Compatibility Forms&quot;](t)||Vn[&quot;Small Form Variants&quot;](t)||Vn[&quot;Halfwidth and Fullwidth Forms&quot;](t)||8734===t||8756===t||8757===t||t&gt;=9984&amp;&amp;t&lt;=10087||t&gt;=10102&amp;&amp;t&lt;=10131||65532===t||65533===t)}(t))}function Yn(t){return t&gt;=1424&amp;&amp;t&lt;=2303||Vn[&quot;Arabic Presentation Forms-A&quot;](t)||Vn[&quot;Arabic Presentation Forms-B&quot;](t)}function Wn(t,e){return!(!e&amp;&amp;Yn(t)||t&gt;=2304&amp;&amp;t&lt;=3583||t&gt;=3840&amp;&amp;t&lt;=4255||Vn.Khmer(t))}function Xn(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(Yn(r[e].charCodeAt(0)))return!0;return!1}var Zn=null,Jn=&quot;unavailable&quot;,Kn=null,Qn=function(t){t&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;t.indexOf(&quot;NetworkError&quot;)&gt;-1&amp;&amp;(Jn=&quot;error&quot;),Zn&amp;&amp;Zn(t)};function $n(){ti.fire(new Tt(&quot;pluginStateChange&quot;,{pluginStatus:Jn,pluginURL:Kn}))}var ti=new Mt,ei=function(){return Jn},ri=function(){if(&quot;deferred&quot;!==Jn||!Kn)throw new Error(&quot;rtl-text-plugin cannot be downloaded unless a pluginURL is specified&quot;);Jn=&quot;loading&quot;,$n(),Kn&amp;&amp;yt({url:Kn},(function(t){t?Qn(t):(Jn=&quot;loaded&quot;,$n())}))},ni={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return&quot;loaded&quot;===Jn||null!=ni.applyArabicShaping},isLoading:function(){return&quot;loading&quot;===Jn},setState:function(t){Jn=t.pluginStatus,Kn=t.pluginURL},isParsed:function(){return null!=ni.applyArabicShaping&amp;&amp;null!=ni.processBidirectionalText&amp;&amp;null!=ni.processStyledBidirectionalText},getPluginURL:function(){return Kn}},ii=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Un,this.transition={})};ii.prototype.isSupportedScript=function(t){return function(t,e){for(var r=0,n=t;r&lt;n.length;r+=1)if(!Wn(n[r].charCodeAt(0),e))return!1;return!0}(t,ni.isLoaded())},ii.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},ii.prototype.getCrossfadeParameters=function(){var t=this.zoom,e=t-Math.floor(t),r=this.crossFadingFactor();return t&gt;this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}};var ai=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(Or(t))return new Wr(t,e);if(Vr(t)){var r=Yr(t,e);if(&quot;error&quot;===r.result)throw new Error(r.value.map((function(t){return t.key+&quot;: &quot;+t.message})).join(&quot;, &quot;));return r.value}var n=t;return&quot;string&quot;==typeof t&amp;&amp;&quot;color&quot;===e.type&amp;&amp;(n=Kt.parse(t)),{kind:&quot;constant&quot;,evaluate:function(){return n}}}(void 0===e?t.specification.default:e,t.specification)};ai.prototype.isDataDriven=function(){return&quot;source&quot;===this.expression.kind||&quot;composite&quot;===this.expression.kind},ai.prototype.possiblyEvaluate=function(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)};var oi=function(t){this.property=t,this.value=new ai(t,void 0)};oi.prototype.transitioned=function(t,e){return new li(this.property,this.value,e,u({},t.transition,this.transition),t.now)},oi.prototype.untransitioned=function(){return new li(this.property,this.value,null,{},0)};var si=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};si.prototype.getValue=function(t){return x(this._values[t].value.value)},si.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new oi(this._values[t].property)),this._values[t].value=new ai(this._values[t].property,null===e?void 0:x(e))},si.prototype.getTransition=function(t){return x(this._values[t].transition)},si.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new oi(this._values[t].property)),this._values[t].transition=x(e)||void 0},si.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&amp;&amp;(t[n]=i);var a=this.getTransition(n);void 0!==a&amp;&amp;(t[n+&quot;-transition&quot;]=a)}return t},si.prototype.transitioned=function(t,e){for(var r=new ci(this._properties),n=0,i=Object.keys(this._values);n&lt;i.length;n+=1){var a=i[n];r._values[a]=this._values[a].transitioned(t,e._values[a])}return r},si.prototype.untransitioned=function(){for(var t=new ci(this._properties),e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e];t._values[n]=this._values[n].untransitioned()}return t};var li=function(t,e,r,n,i){this.property=t,this.value=e,this.begin=i+n.delay||0,this.end=this.begin+n.duration||0,t.specification.transition&amp;&amp;(n.delay||n.duration)&amp;&amp;(this.prior=r)};li.prototype.possiblyEvaluate=function(t,e,r){var n=t.now||0,i=this.value.possiblyEvaluate(t,e,r),a=this.prior;if(a){if(n&gt;this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(n&lt;this.begin)return a.possiblyEvaluate(t,e,r);var o=(n-this.begin)/(this.end-this.begin);return this.property.interpolate(a.possiblyEvaluate(t,e,r),i,function(t){if(t&lt;=0)return 0;if(t&gt;=1)return 1;var e=t*t,r=e*t;return 4*(t&lt;.5?r:3*(t-e)+r-.75)}(o))}return i};var ci=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};ci.prototype.possiblyEvaluate=function(t,e,r){for(var n=new hi(this._properties),i=0,a=Object.keys(this._values);i&lt;a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n},ci.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t&lt;e.length;t+=1)if(this._values[e[t]].prior)return!0;return!1};var ui=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};ui.prototype.getValue=function(t){return x(this._values[t].value)},ui.prototype.setValue=function(t,e){this._values[t]=new ai(this._values[t].property,null===e?void 0:x(e))},ui.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&amp;&amp;(t[n]=i)}return t},ui.prototype.possiblyEvaluate=function(t,e,r){for(var n=new hi(this._properties),i=0,a=Object.keys(this._values);i&lt;a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n};var fi=function(t,e,r){this.property=t,this.value=e,this.parameters=r};fi.prototype.isConstant=function(){return&quot;constant&quot;===this.value.kind},fi.prototype.constantOr=function(t){return&quot;constant&quot;===this.value.kind?this.value.value:t},fi.prototype.evaluate=function(t,e,r,n){return this.property.evaluate(this.value,this.parameters,t,e,r,n)};var hi=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};hi.prototype.get=function(t){return this._values[t]};var pi=function(t){this.specification=t};pi.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},pi.prototype.interpolate=function(t,e,r){var n=Ve[this.specification.type];return n?n(t,e,r):t};var di=function(t,e){this.specification=t,this.overrides=e};di.prototype.possiblyEvaluate=function(t,e,r,n){return new fi(this,&quot;constant&quot;===t.expression.kind||&quot;camera&quot;===t.expression.kind?{kind:&quot;constant&quot;,value:t.expression.evaluate(e,null,{},r,n)}:t.expression,e)},di.prototype.interpolate=function(t,e,r){if(&quot;constant&quot;!==t.value.kind||&quot;constant&quot;!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new fi(this,{kind:&quot;constant&quot;,value:void 0},t.parameters);var n=Ve[this.specification.type];return n?new fi(this,{kind:&quot;constant&quot;,value:n(t.value.value,e.value.value,r)},t.parameters):t},di.prototype.evaluate=function(t,e,r,n,i,a){return&quot;constant&quot;===t.kind?t.value:t.evaluate(e,r,n,i,a)};var gi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0===t.value)return new fi(this,{kind:&quot;constant&quot;,value:void 0},e);if(&quot;constant&quot;===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n),a=&quot;resolvedImage&quot;===t.property.specification.type&amp;&amp;&quot;string&quot;!=typeof i?i.name:i,o=this._calculate(a,a,a,e);return new fi(this,{kind:&quot;constant&quot;,value:o},e)}if(&quot;camera&quot;===t.expression.kind){var s=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new fi(this,{kind:&quot;constant&quot;,value:s},e)}return new fi(this,t.expression,e)},e.prototype.evaluate=function(t,e,r,n,i,a){if(&quot;source&quot;===t.kind){var o=t.evaluate(e,r,n,i,a);return this._calculate(o,o,o,e)}return&quot;composite&quot;===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},r,n),t.evaluate({zoom:Math.floor(e.zoom)},r,n),t.evaluate({zoom:Math.floor(e.zoom)+1},r,n),e):t.value},e.prototype._calculate=function(t,e,r,n){return n.zoom&gt;n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},e.prototype.interpolate=function(t){return t},e}(di),mi=function(t){this.specification=t};mi.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0!==t.value){if(&quot;constant&quot;===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n);return this._calculate(i,i,i,e)}return this._calculate(t.expression.evaluate(new ii(Math.floor(e.zoom-1),e)),t.expression.evaluate(new ii(Math.floor(e.zoom),e)),t.expression.evaluate(new ii(Math.floor(e.zoom+1),e)),e)}},mi.prototype._calculate=function(t,e,r,n){return n.zoom&gt;n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},mi.prototype.interpolate=function(t){return t};var vi=function(t){this.specification=t};vi.prototype.possiblyEvaluate=function(t,e,r,n){return!!t.expression.evaluate(e,null,{},r,n)},vi.prototype.interpolate=function(){return!1};var yi=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var r=t[e];r.specification.overridable&amp;&amp;this.overridableProperties.push(e);var n=this.defaultPropertyValues[e]=new ai(r,void 0),i=this.defaultTransitionablePropertyValues[e]=new oi(r);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=n.possiblyEvaluate({})}};Dn(&quot;DataDrivenProperty&quot;,di),Dn(&quot;DataConstantProperty&quot;,pi),Dn(&quot;CrossFadedDataDrivenProperty&quot;,gi),Dn(&quot;CrossFadedProperty&quot;,mi),Dn(&quot;ColorRampProperty&quot;,vi);var xi=function(t){function e(e,r){if(t.call(this),this.id=e.id,this.type=e.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},&quot;custom&quot;!==e.type&amp;&amp;(this.metadata=(e=e).metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,&quot;background&quot;!==e.type&amp;&amp;(this.source=e.source,this.sourceLayer=e[&quot;source-layer&quot;],this.filter=e.filter),r.layout&amp;&amp;(this._unevaluatedLayout=new ui(r.layout)),r.paint)){for(var n in this._transitionablePaint=new si(r.paint),e.paint)this.setPaintProperty(n,e.paint[n],{validate:!1});for(var i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new hi(r.paint)}}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return&quot;visibility&quot;===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,r){void 0===r&amp;&amp;(r={}),null!=e&amp;&amp;this._validate(En,&quot;layers.&quot;+this.id+&quot;.layout.&quot;+t,t,e,r)||(&quot;visibility&quot;!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e)},e.prototype.getPaintProperty=function(t){return m(t,&quot;-transition&quot;)?this._transitionablePaint.getTransition(t.slice(0,-&quot;-transition&quot;.length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,r){if(void 0===r&amp;&amp;(r={}),null!=e&amp;&amp;this._validate(Sn,&quot;layers.&quot;+this.id+&quot;.paint.&quot;+t,t,e,r))return!1;if(m(t,&quot;-transition&quot;))return this._transitionablePaint.setTransition(t.slice(0,-&quot;-transition&quot;.length),e||void 0),!1;var n=this._transitionablePaint._values[t],i=&quot;cross-faded-data-driven&quot;===n.property.specification[&quot;property-type&quot;],a=n.value.isDataDriven(),o=n.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var s=this._transitionablePaint._values[t].value;return s.isDataDriven()||a||i||this._handleOverridablePaintPropertyUpdate(t,o,s)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype._handleOverridablePaintPropertyUpdate=function(t,e,r){return!1},e.prototype.isHidden=function(t){return!!(this.minzoom&amp;&amp;t&lt;this.minzoom)||!!(this.maxzoom&amp;&amp;t&gt;=this.maxzoom)||&quot;none&quot;===this.visibility},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t,e){t.getCrossfadeParameters&amp;&amp;(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&amp;&amp;(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,&quot;source-layer&quot;:this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&amp;&amp;this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&amp;&amp;this._transitionablePaint.serialize()};return this.visibility&amp;&amp;(t.layout=t.layout||{},t.layout.visibility=this.visibility),y(t,(function(t,e){return!(void 0===t||&quot;layout&quot;===e&amp;&amp;!Object.keys(t).length||&quot;paint&quot;===e&amp;&amp;!Object.keys(t).length)}))},e.prototype._validate=function(t,e,r,n,i){return void 0===i&amp;&amp;(i={}),(!i||!1!==i.validate)&amp;&amp;Cn(this,t.call(Mn,{key:e,layerType:this.type,objectKey:r,value:n,styleSpec:At,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof fi&amp;&amp;Lr(e.property.specification)&amp;&amp;(&quot;source&quot;===e.value.kind||&quot;composite&quot;===e.value.kind)&amp;&amp;e.value.isStateDependent)return!0}return!1},e}(Mt),bi={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},_i=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},wi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Ti(t,e){void 0===e&amp;&amp;(e=1);var r=0,n=0;return{members:t.map((function(t){var i=bi[t.type].BYTES_PER_ELEMENT,a=r=ki(r,Math.max(e,i)),o=t.components||1;return n=Math.max(n,i),r+=i*o,{name:t.name,type:t.type,components:o,offset:a}})),size:ki(r,Math.max(n,e)),alignment:e}}function ki(t,e){return Math.ceil(t/e)*e}wi.serialize=function(t,e){return t._trim(),e&amp;&amp;(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},wi.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},wi.prototype._trim=function(){this.length!==this.capacity&amp;&amp;(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},wi.prototype.clear=function(){this.length=0},wi.prototype.resize=function(t){this.reserve(t),this.length=t},wi.prototype.reserve=function(t){if(t&gt;this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&amp;&amp;this.uint8.set(e)}},wi.prototype._refreshViews=function(){throw new Error(&quot;_refreshViews() must be implemented by each concrete StructArray layout&quot;)};var Mi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.int16[n+0]=e,this.int16[n+1]=r,t},e}(wi);Mi.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout2i4&quot;,Mi);var Ai=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.int16[a+0]=e,this.int16[a+1]=r,this.int16[a+2]=n,this.int16[a+3]=i,t},e}(wi);Ai.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout4i8&quot;,Ai);var Si=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(wi);Si.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout2i4i12&quot;,Si);var Ei=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=4*t,l=8*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.uint8[l+4]=n,this.uint8[l+5]=i,this.uint8[l+6]=a,this.uint8[l+7]=o,t},e}(wi);Ei.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout2i4ub8&quot;,Ei);var Ci=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,n,i,a,o,s,l,c)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u){var f=9*t,h=18*t;return this.uint16[f+0]=e,this.uint16[f+1]=r,this.uint16[f+2]=n,this.uint16[f+3]=i,this.uint16[f+4]=a,this.uint16[f+5]=o,this.uint16[f+6]=s,this.uint16[f+7]=l,this.uint8[h+16]=c,this.uint8[h+17]=u,t},e}(wi);Ci.prototype.bytesPerElement=18,Dn(&quot;StructArrayLayout8ui2ub18&quot;,Ci);var Li=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f){var h=this.length;return this.resize(h+1),this.emplace(h,t,e,r,n,i,a,o,s,l,c,u,f)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=12*t;return this.int16[p+0]=e,this.int16[p+1]=r,this.int16[p+2]=n,this.int16[p+3]=i,this.uint16[p+4]=a,this.uint16[p+5]=o,this.uint16[p+6]=s,this.uint16[p+7]=l,this.int16[p+8]=c,this.int16[p+9]=u,this.int16[p+10]=f,this.int16[p+11]=h,t},e}(wi);Li.prototype.bytesPerElement=24,Dn(&quot;StructArrayLayout4i4ui4i24&quot;,Li);var Ii=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.float32[i+0]=e,this.float32[i+1]=r,this.float32[i+2]=n,t},e}(wi);Ii.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout3f12&quot;,Ii);var Pi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint32[1*t+0]=e,t},e}(wi);Pi.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout1ul4&quot;,Pi);var zi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,r,n,i,a,o,s,l)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c){var u=10*t,f=5*t;return this.int16[u+0]=e,this.int16[u+1]=r,this.int16[u+2]=n,this.int16[u+3]=i,this.int16[u+4]=a,this.int16[u+5]=o,this.uint32[f+3]=s,this.uint16[u+8]=l,this.uint16[u+9]=c,t},e}(wi);zi.prototype.bytesPerElement=20,Dn(&quot;StructArrayLayout6i1ul2ui20&quot;,zi);var Oi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(wi);Oi.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout2i2i2i12&quot;,Oi);var Di=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,n,i)},e.prototype.emplace=function(t,e,r,n,i,a){var o=4*t,s=8*t;return this.float32[o+0]=e,this.float32[o+1]=r,this.float32[o+2]=n,this.int16[s+6]=i,this.int16[s+7]=a,t},e}(wi);Di.prototype.bytesPerElement=16,Dn(&quot;StructArrayLayout2f1f2i16&quot;,Di);var Ri=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=12*t,o=3*t;return this.uint8[a+0]=e,this.uint8[a+1]=r,this.float32[o+1]=n,this.float32[o+2]=i,t},e}(wi);Ri.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout2ub2f12&quot;,Ri);var Fi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.uint16[i+0]=e,this.uint16[i+1]=r,this.uint16[i+2]=n,t},e}(wi);Fi.prototype.bytesPerElement=6,Dn(&quot;StructArrayLayout3ui6&quot;,Fi);var Bi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m){var v=this.length;return this.resize(v+1),this.emplace(v,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v){var y=24*t,x=12*t,b=48*t;return this.int16[y+0]=e,this.int16[y+1]=r,this.uint16[y+2]=n,this.uint16[y+3]=i,this.uint32[x+2]=a,this.uint32[x+3]=o,this.uint32[x+4]=s,this.uint16[y+10]=l,this.uint16[y+11]=c,this.uint16[y+12]=u,this.float32[x+7]=f,this.float32[x+8]=h,this.uint8[b+36]=p,this.uint8[b+37]=d,this.uint8[b+38]=g,this.uint32[x+10]=m,this.int16[y+22]=v,t},e}(wi);Bi.prototype.bytesPerElement=48,Dn(&quot;StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48&quot;,Bi);var Ni=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S){var E=this.length;return this.resize(E+1),this.emplace(E,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S,E){var C=34*t,L=17*t;return this.int16[C+0]=e,this.int16[C+1]=r,this.int16[C+2]=n,this.int16[C+3]=i,this.int16[C+4]=a,this.int16[C+5]=o,this.int16[C+6]=s,this.int16[C+7]=l,this.uint16[C+8]=c,this.uint16[C+9]=u,this.uint16[C+10]=f,this.uint16[C+11]=h,this.uint16[C+12]=p,this.uint16[C+13]=d,this.uint16[C+14]=g,this.uint16[C+15]=m,this.uint16[C+16]=v,this.uint16[C+17]=y,this.uint16[C+18]=x,this.uint16[C+19]=b,this.uint16[C+20]=_,this.uint16[C+21]=w,this.uint16[C+22]=T,this.uint32[L+12]=k,this.float32[L+13]=M,this.float32[L+14]=A,this.float32[L+15]=S,this.float32[L+16]=E,t},e}(wi);Ni.prototype.bytesPerElement=68,Dn(&quot;StructArrayLayout8i15ui1ul4f68&quot;,Ni);var ji=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.float32[1*t+0]=e,t},e}(wi);ji.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout1f4&quot;,ji);var Ui=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.int16[i+0]=e,this.int16[i+1]=r,this.int16[i+2]=n,t},e}(wi);Ui.prototype.bytesPerElement=6,Dn(&quot;StructArrayLayout3i6&quot;,Ui);var Vi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=4*t;return this.uint32[2*t+0]=e,this.uint16[i+2]=r,this.uint16[i+3]=n,t},e}(wi);Vi.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout1ul2ui8&quot;,Vi);var qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.uint16[n+0]=e,this.uint16[n+1]=r,t},e}(wi);qi.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout2ui4&quot;,qi);var Hi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint16[1*t+0]=e,t},e}(wi);Hi.prototype.bytesPerElement=2,Dn(&quot;StructArrayLayout1ui2&quot;,Hi);var Gi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.float32[n+0]=e,this.float32[n+1]=r,t},e}(wi);Gi.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout2f8&quot;,Gi);var Yi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=n,this.float32[a+3]=i,t},e}(wi);Yi.prototype.bytesPerElement=16,Dn(&quot;StructArrayLayout4f16&quot;,Yi);var Wi=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return r.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},r.x1.get=function(){return this._structArray.int16[this._pos2+2]},r.y1.get=function(){return this._structArray.int16[this._pos2+3]},r.x2.get=function(){return this._structArray.int16[this._pos2+4]},r.y2.get=function(){return this._structArray.int16[this._pos2+5]},r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.anchorPoint.get=function(){return new i(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,r),e}(_i);Wi.prototype.size=20;var Xi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new Wi(this,t)},e}(zi);Dn(&quot;CollisionBoxArray&quot;,Xi);var Zi=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},r.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},r.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},r.segment.get=function(){return this._structArray.uint16[this._pos2+10]},r.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},r.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},r.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},r.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},r.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},r.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},r.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},r.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},r.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},r.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(e.prototype,r),e}(_i);Zi.prototype.size=48;var Ji=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new Zi(this,t)},e}(Bi);Dn(&quot;PlacedSymbolArray&quot;,Ji);var Ki=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},r.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},r.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},r.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},r.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},r.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},r.key.get=function(){return this._structArray.uint16[this._pos2+8]},r.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},r.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},r.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},r.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},r.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},r.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},r.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},r.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},r.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},r.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},r.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},r.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},r.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+12]=t},r.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},r.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},r.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},r.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(e.prototype,r),e}(_i);Ki.prototype.size=68;var Qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new Ki(this,t)},e}(Ni);Dn(&quot;SymbolInstanceArray&quot;,Qi);var $i=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e}(ji);Dn(&quot;GlyphOffsetArray&quot;,$i);var ta=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e}(Ui);Dn(&quot;SymbolLineVertexArray&quot;,ta);var ea=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(e.prototype,r),e}(_i);ea.prototype.size=8;var ra=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new ea(this,t)},e}(Vi);Dn(&quot;FeatureIndexArray&quot;,ra);var na=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;}],4).members,ia=function(t){void 0===t&amp;&amp;(t=[]),this.segments=t};function aa(t,e){return 256*(t=l(Math.floor(t),0,255))+l(Math.floor(e),0,255)}ia.prototype.prepareSegment=function(t,e,r,n){var i=this.segments[this.segments.length-1];return t&gt;ia.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;_(&quot;Max vertices per segment is &quot;+ia.MAX_VERTEX_ARRAY_LENGTH+&quot;: bucket requested &quot;+t),(!i||i.vertexLength+t&gt;ia.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==n)&amp;&amp;(i={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},void 0!==n&amp;&amp;(i.sortKey=n),this.segments.push(i)),i},ia.prototype.get=function(){return this.segments},ia.prototype.destroy=function(){for(var t=0,e=this.segments;t&lt;e.length;t+=1){var r=e[t];for(var n in r.vaos)r.vaos[n].destroy()}},ia.simpleSegment=function(t,e,r,n){return new ia([{vertexOffset:t,primitiveOffset:e,vertexLength:r,primitiveLength:n,vaos:{},sortKey:0}])},ia.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Dn(&quot;SegmentVector&quot;,ia);var oa=Ti([{name:&quot;a_pattern_from&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pattern_to&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pixel_ratio_from&quot;,components:1,type:&quot;Uint8&quot;},{name:&quot;a_pixel_ratio_to&quot;,components:1,type:&quot;Uint8&quot;}]),sa=e((function(t){t.exports=function(t,e){var r,n,i,a,o,s,l,c;for(n=t.length-(r=3&amp;t.length),i=e,o=3432918353,s=461845907,c=0;c&lt;n;)l=255&amp;t.charCodeAt(c)|(255&amp;t.charCodeAt(++c))&lt;&lt;8|(255&amp;t.charCodeAt(++c))&lt;&lt;16|(255&amp;t.charCodeAt(++c))&lt;&lt;24,++c,i=27492+(65535&amp;(a=5*(65535&amp;(i=(i^=l=(65535&amp;(l=(l=(65535&amp;l)*o+(((l&gt;&gt;&gt;16)*o&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;13|i&gt;&gt;&gt;19))+((5*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295))+((58964+(a&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16);switch(l=0,r){case 3:l^=(255&amp;t.charCodeAt(c+2))&lt;&lt;16;case 2:l^=(255&amp;t.charCodeAt(c+1))&lt;&lt;8;case 1:i^=l=(65535&amp;(l=(l=(65535&amp;(l^=255&amp;t.charCodeAt(c)))*o+(((l&gt;&gt;&gt;16)*o&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295}return i^=t.length,i=2246822507*(65535&amp;(i^=i&gt;&gt;&gt;16))+((2246822507*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,i=3266489909*(65535&amp;(i^=i&gt;&gt;&gt;13))+((3266489909*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,(i^=i&gt;&gt;&gt;16)&gt;&gt;&gt;0}})),la=e((function(t){t.exports=function(t,e){for(var r,n=t.length,i=e^n,a=0;n&gt;=4;)r=1540483477*(65535&amp;(r=255&amp;t.charCodeAt(a)|(255&amp;t.charCodeAt(++a))&lt;&lt;8|(255&amp;t.charCodeAt(++a))&lt;&lt;16|(255&amp;t.charCodeAt(++a))&lt;&lt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),i=1540483477*(65535&amp;i)+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)^(r=1540483477*(65535&amp;(r^=r&gt;&gt;&gt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)),n-=4,++a;switch(n){case 3:i^=(255&amp;t.charCodeAt(a+2))&lt;&lt;16;case 2:i^=(255&amp;t.charCodeAt(a+1))&lt;&lt;8;case 1:i=1540483477*(65535&amp;(i^=255&amp;t.charCodeAt(a)))+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)}return i=1540483477*(65535&amp;(i^=i&gt;&gt;&gt;13))+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),(i^=i&gt;&gt;&gt;15)&gt;&gt;&gt;0}})),ca=sa,ua=la;ca.murmur3=sa,ca.murmur2=ua;var fa=function(){this.ids=[],this.positions=[],this.indexed=!1};fa.prototype.add=function(t,e,r,n){this.ids.push(pa(t)),this.positions.push(e,r,n)},fa.prototype.getPositions=function(t){for(var e=pa(t),r=0,n=this.ids.length-1;r&lt;n;){var i=r+n&gt;&gt;1;this.ids[i]&gt;=e?n=i:r=i+1}for(var a=[];this.ids[r]===e;)a.push({index:this.positions[3*r],start:this.positions[3*r+1],end:this.positions[3*r+2]}),r++;return a},fa.serialize=function(t,e){var r=new Float64Array(t.ids),n=new Uint32Array(t.positions);return function t(e,r,n,i){for(;n&lt;i;){for(var a=e[n+i&gt;&gt;1],o=n-1,s=i+1;;){do{o++}while(e[o]&lt;a);do{s--}while(e[s]&gt;a);if(o&gt;=s)break;da(e,o,s),da(r,3*o,3*s),da(r,3*o+1,3*s+1),da(r,3*o+2,3*s+2)}s-n&lt;i-s?(t(e,r,n,s),n=s+1):(t(e,r,s+1,i),i=s)}}(r,n,0,r.length-1),e&amp;&amp;e.push(r.buffer,n.buffer),{ids:r,positions:n}},fa.deserialize=function(t){var e=new fa;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e};var ha=Math.pow(2,53)-1;function pa(t){var e=+t;return!isNaN(e)&amp;&amp;e&lt;=ha?e:ca(String(t))}function da(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}Dn(&quot;FeaturePositionMap&quot;,fa);var ga=function(t,e){this.gl=t.gl,this.location=e},ma=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1i(this.location,t))},e}(ga),va=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1f(this.location,t))},e}(ga),ya=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0]}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))},e}(ga),xa=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0]}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))},e}(ga),ba=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0,0]}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]&amp;&amp;t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))},e}(ga),_a=function(t){function e(e,r){t.call(this,e,r),this.current=Kt.transparent}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t.r===this.current.r&amp;&amp;t.g===this.current.g&amp;&amp;t.b===this.current.b&amp;&amp;t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))},e}(ga),wa=new Float32Array(16),Ta=function(t){function e(e,r){t.call(this,e,r),this.current=wa}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(var e=1;e&lt;16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}},e}(ga);function ka(t){return[aa(255*t.r,255*t.g),aa(255*t.b,255*t.a)]}var Ma=function(t,e,r){this.value=t,this.uniformNames=e.map((function(t){return&quot;u_&quot;+t})),this.type=r};Ma.prototype.setUniform=function(t,e,r){t.set(r.constantOr(this.value))},Ma.prototype.getBinding=function(t,e,r){return&quot;color&quot;===this.type?new _a(t,e):new va(t,e)};var Aa=function(t,e){this.uniformNames=e.map((function(t){return&quot;u_&quot;+t})),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1};Aa.prototype.setConstantPatternPositions=function(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr},Aa.prototype.setUniform=function(t,e,r,n){var i=&quot;u_pattern_to&quot;===n?this.patternTo:&quot;u_pattern_from&quot;===n?this.patternFrom:&quot;u_pixel_ratio_to&quot;===n?this.pixelRatioTo:&quot;u_pixel_ratio_from&quot;===n?this.pixelRatioFrom:null;i&amp;&amp;t.set(i)},Aa.prototype.getBinding=function(t,e,r){return&quot;u_pattern&quot;===r.substr(0,9)?new ba(t,e):new va(t,e)};var Sa=function(t,e,r,n){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:&quot;a_&quot;+t,type:&quot;Float32&quot;,components:&quot;color&quot;===r?2:1,offset:0}})),this.paintVertexArray=new n};Sa.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.paintVertexArray.length,o=this.expression.evaluate(new ii(0),e,{},n,[],i);this.paintVertexArray.resize(t),this._setPaintValue(a,t,o)},Sa.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:0},r,n);this._setPaintValue(t,e,i)},Sa.prototype._setPaintValue=function(t,e,r){if(&quot;color&quot;===this.type)for(var n=ka(r),i=t;i&lt;e;i++)this.paintVertexArray.emplace(i,n[0],n[1]);else{for(var a=t;a&lt;e;a++)this.paintVertexArray.emplace(a,r);this.maxValue=Math.max(this.maxValue,Math.abs(r))}},Sa.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Sa.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()};var Ea=function(t,e,r,n,i,a){this.expression=t,this.uniformNames=e.map((function(t){return&quot;u_&quot;+t+&quot;_t&quot;})),this.type=r,this.useIntegerZoom=n,this.zoom=i,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:&quot;a_&quot;+t,type:&quot;Float32&quot;,components:&quot;color&quot;===r?4:2,offset:0}})),this.paintVertexArray=new a};Ea.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.expression.evaluate(new ii(this.zoom),e,{},n,[],i),o=this.expression.evaluate(new ii(this.zoom+1),e,{},n,[],i),s=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(s,t,a,o)},Ea.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:this.zoom},r,n),a=this.expression.evaluate({zoom:this.zoom+1},r,n);this._setPaintValue(t,e,i,a)},Ea.prototype._setPaintValue=function(t,e,r,n){if(&quot;color&quot;===this.type)for(var i=ka(r),a=ka(n),o=t;o&lt;e;o++)this.paintVertexArray.emplace(o,i[0],i[1],a[0],a[1]);else{for(var s=t;s&lt;e;s++)this.paintVertexArray.emplace(s,r,n);this.maxValue=Math.max(this.maxValue,Math.abs(r),Math.abs(n))}},Ea.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Ea.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()},Ea.prototype.setUniform=function(t,e){var r=this.useIntegerZoom?Math.floor(e.zoom):e.zoom,n=l(this.expression.interpolationFactor(r,this.zoom,this.zoom+1),0,1);t.set(n)},Ea.prototype.getBinding=function(t,e,r){return new va(t,e)};var Ca=function(t,e,r,n,i,a){this.expression=t,this.type=e,this.useIntegerZoom=r,this.zoom=n,this.layerId=a,this.zoomInPaintVertexArray=new i,this.zoomOutPaintVertexArray=new i};Ca.prototype.populatePaintArray=function(t,e,r){var n=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(n,t,e.patterns&amp;&amp;e.patterns[this.layerId],r)},Ca.prototype.updatePaintArray=function(t,e,r,n,i){this._setPaintValues(t,e,r.patterns&amp;&amp;r.patterns[this.layerId],i)},Ca.prototype._setPaintValues=function(t,e,r,n){if(n&amp;&amp;r){var i=n[r.min],a=n[r.mid],o=n[r.max];if(i&amp;&amp;a&amp;&amp;o)for(var s=t;s&lt;e;s++)this.zoomInPaintVertexArray.emplace(s,a.tl[0],a.tl[1],a.br[0],a.br[1],i.tl[0],i.tl[1],i.br[0],i.br[1],a.pixelRatio,i.pixelRatio),this.zoomOutPaintVertexArray.emplace(s,a.tl[0],a.tl[1],a.br[0],a.br[1],o.tl[0],o.tl[1],o.br[0],o.br[1],a.pixelRatio,o.pixelRatio)}},Ca.prototype.upload=function(t){this.zoomInPaintVertexArray&amp;&amp;this.zoomInPaintVertexArray.arrayBuffer&amp;&amp;this.zoomOutPaintVertexArray&amp;&amp;this.zoomOutPaintVertexArray.arrayBuffer&amp;&amp;(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,oa.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,oa.members,this.expression.isStateDependent))},Ca.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&amp;&amp;this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&amp;&amp;this.zoomInPaintVertexBuffer.destroy()};var La=function(t,e,r,n){this.binders={},this.layoutAttributes=n,this._buffers=[];var i=[];for(var a in t.paint._values)if(r(a)){var o=t.paint.get(a);if(o instanceof fi&amp;&amp;Lr(o.property.specification)){var s=Pa(a,t.type),l=o.value,c=o.property.specification.type,u=o.property.useIntegerZoom,f=o.property.specification[&quot;property-type&quot;],h=&quot;cross-faded&quot;===f||&quot;cross-faded-data-driven&quot;===f;if(&quot;constant&quot;===l.kind)this.binders[a]=h?new Aa(l.value,s):new Ma(l.value,s,c),i.push(&quot;/u_&quot;+a);else if(&quot;source&quot;===l.kind||h){var p=za(a,c,&quot;source&quot;);this.binders[a]=h?new Ca(l,c,u,e,p,t.id):new Sa(l,s,c,p),i.push(&quot;/a_&quot;+a)}else{var d=za(a,c,&quot;composite&quot;);this.binders[a]=new Ea(l,s,c,u,e,d),i.push(&quot;/z_&quot;+a)}}}this.cacheKey=i.sort().join(&quot;&quot;)};La.prototype.getMaxValue=function(t){var e=this.binders[t];return e instanceof Sa||e instanceof Ea?e.maxValue:0},La.prototype.populatePaintArrays=function(t,e,r,n,i){for(var a in this.binders){var o=this.binders[a];(o instanceof Sa||o instanceof Ea||o instanceof Ca)&amp;&amp;o.populatePaintArray(t,e,r,n,i)}},La.prototype.setConstantPatternPositions=function(t,e){for(var r in this.binders){var n=this.binders[r];n instanceof Aa&amp;&amp;n.setConstantPatternPositions(t,e)}},La.prototype.updatePaintArrays=function(t,e,r,n,i){var a=!1;for(var o in t)for(var s=0,l=e.getPositions(o);s&lt;l.length;s+=1){var c=l[s],u=r.feature(c.index);for(var f in this.binders){var h=this.binders[f];if((h instanceof Sa||h instanceof Ea||h instanceof Ca)&amp;&amp;!0===h.expression.isStateDependent){var p=n.paint.get(f);h.expression=p.value,h.updatePaintArray(c.start,c.end,u,t[o],i),a=!0}}}return a},La.prototype.defines=function(){var t=[];for(var e in this.binders){var r=this.binders[e];(r instanceof Ma||r instanceof Aa)&amp;&amp;t.push.apply(t,r.uniformNames.map((function(t){return&quot;#define HAS_UNIFORM_&quot;+t})))}return t},La.prototype.getPaintVertexBuffers=function(){return this._buffers},La.prototype.getUniforms=function(t,e){var r=[];for(var n in this.binders){var i=this.binders[n];if(i instanceof Ma||i instanceof Aa||i instanceof Ea)for(var a=0,o=i.uniformNames;a&lt;o.length;a+=1){var s=o[a];if(e[s]){var l=i.getBinding(t,e[s],s);r.push({name:s,property:n,binding:l})}}}return r},La.prototype.setUniforms=function(t,e,r,n){for(var i=0,a=e;i&lt;a.length;i+=1){var o=a[i],s=o.name,l=o.property;this.binders[l].setUniform(o.binding,n,r.get(l),s)}},La.prototype.updatePaintBuffers=function(t){for(var e in this._buffers=[],this.binders){var r=this.binders[e];if(t&amp;&amp;r instanceof Ca){var n=2===t.fromScale?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;n&amp;&amp;this._buffers.push(n)}else(r instanceof Sa||r instanceof Ea)&amp;&amp;r.paintVertexBuffer&amp;&amp;this._buffers.push(r.paintVertexBuffer)}},La.prototype.upload=function(t){for(var e in this.binders){var r=this.binders[e];(r instanceof Sa||r instanceof Ea||r instanceof Ca)&amp;&amp;r.upload(t)}this.updatePaintBuffers()},La.prototype.destroy=function(){for(var t in this.binders){var e=this.binders[t];(e instanceof Sa||e instanceof Ea||e instanceof Ca)&amp;&amp;e.destroy()}};var Ia=function(t,e,r,n){void 0===n&amp;&amp;(n=function(){return!0}),this.programConfigurations={};for(var i=0,a=e;i&lt;a.length;i+=1){var o=a[i];this.programConfigurations[o.id]=new La(o,r,n,t)}this.needsUpload=!1,this._featureMap=new fa,this._bufferOffset=0};function Pa(t,e){return{&quot;text-opacity&quot;:[&quot;opacity&quot;],&quot;icon-opacity&quot;:[&quot;opacity&quot;],&quot;text-color&quot;:[&quot;fill_color&quot;],&quot;icon-color&quot;:[&quot;fill_color&quot;],&quot;text-halo-color&quot;:[&quot;halo_color&quot;],&quot;icon-halo-color&quot;:[&quot;halo_color&quot;],&quot;text-halo-blur&quot;:[&quot;halo_blur&quot;],&quot;icon-halo-blur&quot;:[&quot;halo_blur&quot;],&quot;text-halo-width&quot;:[&quot;halo_width&quot;],&quot;icon-halo-width&quot;:[&quot;halo_width&quot;],&quot;line-gap-width&quot;:[&quot;gapwidth&quot;],&quot;line-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;],&quot;fill-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;],&quot;fill-extrusion-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;]}[t]||[t.replace(e+&quot;-&quot;,&quot;&quot;).replace(/-/g,&quot;_&quot;)]}function za(t,e,r){var n={color:{source:Gi,composite:Yi},number:{source:ji,composite:Gi}},i=function(t){return{&quot;line-pattern&quot;:{source:Ci,composite:Ci},&quot;fill-pattern&quot;:{source:Ci,composite:Ci},&quot;fill-extrusion-pattern&quot;:{source:Ci,composite:Ci}}[t]}(t);return i&amp;&amp;i[r]||n[e][r]}Ia.prototype.populatePaintArrays=function(t,e,r,n,i,a){for(var o in this.programConfigurations)this.programConfigurations[o].populatePaintArrays(t,e,n,i,a);void 0!==e.id&amp;&amp;this._featureMap.add(e.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0},Ia.prototype.updatePaintArrays=function(t,e,r,n){for(var i=0,a=r;i&lt;a.length;i+=1){var o=a[i];this.needsUpload=this.programConfigurations[o.id].updatePaintArrays(t,this._featureMap,e,o,n)||this.needsUpload}},Ia.prototype.get=function(t){return this.programConfigurations[t]},Ia.prototype.upload=function(t){if(this.needsUpload){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}},Ia.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},Dn(&quot;ConstantBinder&quot;,Ma),Dn(&quot;CrossFadedConstantBinder&quot;,Aa),Dn(&quot;SourceExpressionBinder&quot;,Sa),Dn(&quot;CrossFadedCompositeBinder&quot;,Ca),Dn(&quot;CompositeExpressionBinder&quot;,Ea),Dn(&quot;ProgramConfiguration&quot;,La,{omit:[&quot;_buffers&quot;]}),Dn(&quot;ProgramConfigurationSet&quot;,Ia);var Oa={min:-1*Math.pow(2,14),max:Math.pow(2,14)-1};function Da(t){for(var e=8192/t.extent,r=t.loadGeometry(),n=0;n&lt;r.length;n++)for(var i=r[n],a=0;a&lt;i.length;a++){var o=i[a];o.x=Math.round(o.x*e),o.y=Math.round(o.y*e),(o.x&lt;Oa.min||o.x&gt;Oa.max||o.y&lt;Oa.min||o.y&gt;Oa.max)&amp;&amp;(_(&quot;Geometry exceeds allowed extent, reduce your vector tile buffer size&quot;),o.x=l(o.x,Oa.min,Oa.max),o.y=l(o.y,Oa.min,Oa.max))}return r}function Ra(t,e,r,n,i){t.emplaceBack(2*e+(n+1)/2,2*r+(i+1)/2)}var Fa=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Mi,this.indexArray=new Fi,this.segments=new ia,this.programConfigurations=new Ia(na,t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Ba(t,e){for(var r=0;r&lt;t.length;r++)if(Wa(e,t[r]))return!0;for(var n=0;n&lt;e.length;n++)if(Wa(t,e[n]))return!0;return!!Va(t,e)}function Na(t,e,r){return!!Wa(t,e)||!!Ha(e,t,r)}function ja(t,e){if(1===t.length)return Ya(e,t[0]);for(var r=0;r&lt;e.length;r++)for(var n=e[r],i=0;i&lt;n.length;i++)if(Wa(t,n[i]))return!0;for(var a=0;a&lt;t.length;a++)if(Ya(e,t[a]))return!0;for(var o=0;o&lt;e.length;o++)if(Va(t,e[o]))return!0;return!1}function Ua(t,e,r){if(t.length&gt;1){if(Va(t,e))return!0;for(var n=0;n&lt;e.length;n++)if(Ha(e[n],t,r))return!0}for(var i=0;i&lt;t.length;i++)if(Ha(t[i],e,r))return!0;return!1}function Va(t,e){if(0===t.length||0===e.length)return!1;for(var r=0;r&lt;t.length-1;r++)for(var n=t[r],i=t[r+1],a=0;a&lt;e.length-1;a++)if(qa(n,i,e[a],e[a+1]))return!0;return!1}function qa(t,e,r,n){return w(t,r,n)!==w(e,r,n)&amp;&amp;w(t,e,r)!==w(t,e,n)}function Ha(t,e,r){var n=r*r;if(1===e.length)return t.distSqr(e[0])&lt;n;for(var i=1;i&lt;e.length;i++)if(Ga(t,e[i-1],e[i])&lt;n)return!0;return!1}function Ga(t,e,r){var n=e.distSqr(r);if(0===n)return t.distSqr(e);var i=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;return t.distSqr(i&lt;0?e:i&gt;1?r:r.sub(e)._mult(i)._add(e))}function Ya(t,e){for(var r,n,i,a=!1,o=0;o&lt;t.length;o++)for(var s=0,l=(r=t[o]).length-1;s&lt;r.length;l=s++)(n=r[s]).y&gt;e.y!=(i=r[l]).y&gt;e.y&amp;&amp;e.x&lt;(i.x-n.x)*(e.y-n.y)/(i.y-n.y)+n.x&amp;&amp;(a=!a);return a}function Wa(t,e){for(var r=!1,n=0,i=t.length-1;n&lt;t.length;i=n++){var a=t[n],o=t[i];a.y&gt;e.y!=o.y&gt;e.y&amp;&amp;e.x&lt;(o.x-a.x)*(e.y-a.y)/(o.y-a.y)+a.x&amp;&amp;(r=!r)}return r}function Xa(t,e,r){var n=r[0],i=r[2];if(t.x&lt;n.x&amp;&amp;e.x&lt;n.x||t.x&gt;i.x&amp;&amp;e.x&gt;i.x||t.y&lt;n.y&amp;&amp;e.y&lt;n.y||t.y&gt;i.y&amp;&amp;e.y&gt;i.y)return!1;var a=w(t,e,r[0]);return a!==w(t,e,r[1])||a!==w(t,e,r[2])||a!==w(t,e,r[3])}function Za(t,e,r){var n=e.paint.get(t).value;return&quot;constant&quot;===n.kind?n.value:r.programConfigurations.get(e.id).getMaxValue(t)}function Ja(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ka(t,e,r,n,a){if(!e[0]&amp;&amp;!e[1])return t;var o=i.convert(e)._mult(a);&quot;viewport&quot;===r&amp;&amp;o._rotate(-n);for(var s=[],l=0;l&lt;t.length;l++)s.push(t[l].sub(o));return s}Fa.prototype.populate=function(t,e,r){var n=this.layers[0],i=[],a=null;&quot;circle&quot;===n.type&amp;&amp;(a=n.layout.get(&quot;circle-sort-key&quot;));for(var o=0,s=t;o&lt;s.length;o+=1){var l=s[o],c=l.feature,u=l.id,f=l.index,h=l.sourceLayerIndex,p=this.layers[0]._featureFilter.needGeometry,d={type:c.type,id:u,properties:c.properties,geometry:p?Da(c):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),d,r)){p||(d.geometry=Da(c));var g=a?a.evaluate(d,{},r):void 0;i.push({id:u,properties:c.properties,type:c.type,sourceLayerIndex:h,index:f,geometry:d.geometry,patterns:{},sortKey:g})}}a&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var m=0,v=i;m&lt;v.length;m+=1){var y=v[m],x=y.geometry,b=y.index,_=y.sourceLayerIndex,w=t[b].feature;this.addFeature(y,x,b,r),e.featureIndex.insert(w,x,b,_,this.index)}},Fa.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Fa.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Fa.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Fa.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,na),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Fa.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Fa.prototype.addFeature=function(t,e,r,n){for(var i=0,a=e;i&lt;a.length;i+=1)for(var o=0,s=a[i];o&lt;s.length;o+=1){var l=s[o],c=l.x,u=l.y;if(!(c&lt;0||c&gt;=8192||u&lt;0||u&gt;=8192)){var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),h=f.vertexLength;Ra(this.layoutVertexArray,c,u,-1,-1),Ra(this.layoutVertexArray,c,u,1,-1),Ra(this.layoutVertexArray,c,u,1,1),Ra(this.layoutVertexArray,c,u,-1,1),this.indexArray.emplaceBack(h,h+1,h+2),this.indexArray.emplaceBack(h,h+3,h+2),f.vertexLength+=4,f.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{},n)},Dn(&quot;CircleBucket&quot;,Fa,{omit:[&quot;layers&quot;]});var Qa=new yi({&quot;circle-sort-key&quot;:new di(At.layout_circle[&quot;circle-sort-key&quot;])}),$a={paint:new yi({&quot;circle-radius&quot;:new di(At.paint_circle[&quot;circle-radius&quot;]),&quot;circle-color&quot;:new di(At.paint_circle[&quot;circle-color&quot;]),&quot;circle-blur&quot;:new di(At.paint_circle[&quot;circle-blur&quot;]),&quot;circle-opacity&quot;:new di(At.paint_circle[&quot;circle-opacity&quot;]),&quot;circle-translate&quot;:new pi(At.paint_circle[&quot;circle-translate&quot;]),&quot;circle-translate-anchor&quot;:new pi(At.paint_circle[&quot;circle-translate-anchor&quot;]),&quot;circle-pitch-scale&quot;:new pi(At.paint_circle[&quot;circle-pitch-scale&quot;]),&quot;circle-pitch-alignment&quot;:new pi(At.paint_circle[&quot;circle-pitch-alignment&quot;]),&quot;circle-stroke-width&quot;:new di(At.paint_circle[&quot;circle-stroke-width&quot;]),&quot;circle-stroke-color&quot;:new di(At.paint_circle[&quot;circle-stroke-color&quot;]),&quot;circle-stroke-opacity&quot;:new di(At.paint_circle[&quot;circle-stroke-opacity&quot;])}),layout:Qa},to=&quot;undefined&quot;!=typeof Float32Array?Float32Array:Array;function eo(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ro(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],m=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*m,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,t[4]=(x=r[4])*n+(b=r[5])*s+(_=r[6])*f+(w=r[7])*g,t[5]=x*i+b*l+_*h+w*m,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,t[8]=(x=r[8])*n+(b=r[9])*s+(_=r[10])*f+(w=r[11])*g,t[9]=x*i+b*l+_*h+w*m,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,t[12]=(x=r[12])*n+(b=r[13])*s+(_=r[14])*f+(w=r[15])*g,t[13]=x*i+b*l+_*h+w*m,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,r=arguments.length;r--;)e+=t[r]*t[r];return Math.sqrt(e)});var no,io=ro;function ao(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}no=new to(3),to!=Float32Array&amp;&amp;(no[0]=0,no[1]=0,no[2]=0),function(){var t=new to(4);to!=Float32Array&amp;&amp;(t[0]=0,t[1]=0,t[2]=0,t[3]=0)}();var oo=(function(){var t=new to(2);to!=Float32Array&amp;&amp;(t[0]=0,t[1]=0)}(),function(t){function e(e){t.call(this,e,$a)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new Fa(t)},e.prototype.queryRadius=function(t){var e=t;return Za(&quot;circle-radius&quot;,this,e)+Za(&quot;circle-stroke-width&quot;,this,e)+Ja(this.paint.get(&quot;circle-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o,s){for(var l=Ka(t,this.paint.get(&quot;circle-translate&quot;),this.paint.get(&quot;circle-translate-anchor&quot;),a.angle,o),c=this.paint.get(&quot;circle-radius&quot;).evaluate(e,r)+this.paint.get(&quot;circle-stroke-width&quot;).evaluate(e,r),u=&quot;map&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;),f=u?l:function(t,e){return t.map((function(t){return so(t,e)}))}(l,s),h=u?c*o:c,p=0,d=n;p&lt;d.length;p+=1)for(var g=0,m=d[p];g&lt;m.length;g+=1){var v=m[g],y=u?v:so(v,s),x=h,b=ao([],[v.x,v.y,0,1],s);if(&quot;viewport&quot;===this.paint.get(&quot;circle-pitch-scale&quot;)&amp;&amp;&quot;map&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;)?x*=b[3]/a.cameraToCenterDistance:&quot;map&quot;===this.paint.get(&quot;circle-pitch-scale&quot;)&amp;&amp;&quot;viewport&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;)&amp;&amp;(x*=a.cameraToCenterDistance/b[3]),Na(f,y,x))return!0}return!1},e}(xi));function so(t,e){var r=ao([],[t.x,t.y,0,1],e);return new i(r[0]/r[3],r[1]/r[3])}var lo=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(Fa);function co(t,e,r,n){var i=e.width,a=e.height;if(n){if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==i*a*r)throw new RangeError(&quot;mismatched image size&quot;)}else n=new Uint8Array(i*a*r);return t.width=i,t.height=a,t.data=n,t}function uo(t,e,r){var n=e.width,i=e.height;if(n!==t.width||i!==t.height){var a=co({},{width:n,height:i},r);fo(t,a,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,n),height:Math.min(t.height,i)},r),t.width=n,t.height=i,t.data=a.data}}function fo(t,e,r,n,i,a){if(0===i.width||0===i.height)return e;if(i.width&gt;t.width||i.height&gt;t.height||r.x&gt;t.width-i.width||r.y&gt;t.height-i.height)throw new RangeError(&quot;out of range source coordinates for image copy&quot;);if(i.width&gt;e.width||i.height&gt;e.height||n.x&gt;e.width-i.width||n.y&gt;e.height-i.height)throw new RangeError(&quot;out of range destination coordinates for image copy&quot;);for(var o=t.data,s=e.data,l=0;l&lt;i.height;l++)for(var c=((r.y+l)*t.width+r.x)*a,u=((n.y+l)*e.width+n.x)*a,f=0;f&lt;i.width*a;f++)s[u+f]=o[c+f];return e}Dn(&quot;HeatmapBucket&quot;,lo,{omit:[&quot;layers&quot;]});var ho=function(t,e){co(this,t,1,e)};ho.prototype.resize=function(t){uo(this,t,1)},ho.prototype.clone=function(){return new ho({width:this.width,height:this.height},new Uint8Array(this.data))},ho.copy=function(t,e,r,n,i){fo(t,e,r,n,i,1)};var po=function(t,e){co(this,t,4,e)};po.prototype.resize=function(t){uo(this,t,4)},po.prototype.replace=function(t,e){e?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t},po.prototype.clone=function(){return new po({width:this.width,height:this.height},new Uint8Array(this.data))},po.copy=function(t,e,r,n,i){fo(t,e,r,n,i,4)},Dn(&quot;AlphaImage&quot;,ho),Dn(&quot;RGBAImage&quot;,po);var go={paint:new yi({&quot;heatmap-radius&quot;:new di(At.paint_heatmap[&quot;heatmap-radius&quot;]),&quot;heatmap-weight&quot;:new di(At.paint_heatmap[&quot;heatmap-weight&quot;]),&quot;heatmap-intensity&quot;:new pi(At.paint_heatmap[&quot;heatmap-intensity&quot;]),&quot;heatmap-color&quot;:new vi(At.paint_heatmap[&quot;heatmap-color&quot;]),&quot;heatmap-opacity&quot;:new pi(At.paint_heatmap[&quot;heatmap-opacity&quot;])})};function mo(t,e){for(var r=new Uint8Array(1024),n={},i=0,a=0;i&lt;256;i++,a+=4){n[e]=i/255;var o=t.evaluate(n);r[a+0]=Math.floor(255*o.r/o.a),r[a+1]=Math.floor(255*o.g/o.a),r[a+2]=Math.floor(255*o.b/o.a),r[a+3]=Math.floor(255*o.a)}return new po({width:256,height:1},r)}var vo=function(t){function e(e){t.call(this,e,go),this._updateColorRamp()}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new lo(t)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){&quot;heatmap-color&quot;===t&amp;&amp;this._updateColorRamp()},e.prototype._updateColorRamp=function(){this.colorRamp=mo(this._transitionablePaint._values[&quot;heatmap-color&quot;].value.expression,&quot;heatmapDensity&quot;),this.colorRampTexture=null},e.prototype.resize=function(){this.heatmapFbo&amp;&amp;(this.heatmapFbo.destroy(),this.heatmapFbo=null)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(&quot;heatmap-opacity&quot;)&amp;&amp;&quot;none&quot;!==this.visibility},e}(xi),yo={paint:new yi({&quot;hillshade-illumination-direction&quot;:new pi(At.paint_hillshade[&quot;hillshade-illumination-direction&quot;]),&quot;hillshade-illumination-anchor&quot;:new pi(At.paint_hillshade[&quot;hillshade-illumination-anchor&quot;]),&quot;hillshade-exaggeration&quot;:new pi(At.paint_hillshade[&quot;hillshade-exaggeration&quot;]),&quot;hillshade-shadow-color&quot;:new pi(At.paint_hillshade[&quot;hillshade-shadow-color&quot;]),&quot;hillshade-highlight-color&quot;:new pi(At.paint_hillshade[&quot;hillshade-highlight-color&quot;]),&quot;hillshade-accent-color&quot;:new pi(At.paint_hillshade[&quot;hillshade-accent-color&quot;])})},xo=function(t){function e(e){t.call(this,e,yo)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(&quot;hillshade-exaggeration&quot;)&amp;&amp;&quot;none&quot;!==this.visibility},e}(xi),bo=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;}],4).members,_o=To,wo=To;function To(t,e,r){r=r||2;var n,i,a,o,s,l,c,u=e&amp;&amp;e.length,f=u?e[0]*r:t.length,h=ko(t,0,f,r,!0),p=[];if(!h||h.next===h.prev)return p;if(u&amp;&amp;(h=function(t,e,r,n){var i,a,o,s=[];for(i=0,a=e.length;i&lt;a;i++)(o=ko(t,e[i]*n,i&lt;a-1?e[i+1]*n:t.length,n,!1))===o.next&amp;&amp;(o.steiner=!0),s.push(Do(o));for(s.sort(Io),i=0;i&lt;s.length;i++)Po(s[i],r),r=Mo(r,r.next);return r}(t,e,h,r)),t.length&gt;80*r){n=a=t[0],i=o=t[1];for(var d=r;d&lt;f;d+=r)(s=t[d])&lt;n&amp;&amp;(n=s),(l=t[d+1])&lt;i&amp;&amp;(i=l),s&gt;a&amp;&amp;(a=s),l&gt;o&amp;&amp;(o=l);c=0!==(c=Math.max(a-n,o-i))?1/c:0}return Ao(h,p,r,n,i,c),p}function ko(t,e,r,n,i){var a,o;if(i===Xo(t,e,r,n)&gt;0)for(a=e;a&lt;r;a+=n)o=Go(a,t[a],t[a+1],o);else for(a=r-n;a&gt;=e;a-=n)o=Go(a,t[a],t[a+1],o);return o&amp;&amp;No(o,o.next)&amp;&amp;(Yo(o),o=o.next),o}function Mo(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!No(n,n.next)&amp;&amp;0!==Bo(n.prev,n,n.next))n=n.next;else{if(Yo(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function Ao(t,e,r,n,i,a,o){if(t){!o&amp;&amp;a&amp;&amp;function(t,e,r,n){var i=t;do{null===i.z&amp;&amp;(i.z=Oo(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e&lt;c&amp;&amp;(s++,n=n.nextZ);e++);for(l=c;s&gt;0||l&gt;0&amp;&amp;n;)0!==s&amp;&amp;(0===l||!n||r.z&lt;=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o&gt;1)}(i)}(t,n,i,a);for(var s,l,c=t;t.prev!==t.next;)if(s=t.prev,l=t.next,a?Eo(t,n,i,a):So(t))e.push(s.i/r),e.push(t.i/r),e.push(l.i/r),Yo(t),t=l.next,c=l.next;else if((t=l)===c){o?1===o?Ao(t=Co(Mo(t),e,r),e,r,n,i,a,2):2===o&amp;&amp;Lo(t,e,r,n,i,a):Ao(Mo(t),e,r,n,i,a,1);break}}}function So(t){var e=t.prev,r=t,n=t.next;if(Bo(e,r,n)&gt;=0)return!1;for(var i=t.next.next;i!==t.prev;){if(Ro(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&amp;&amp;Bo(i.prev,i,i.next)&gt;=0)return!1;i=i.next}return!0}function Eo(t,e,r,n){var i=t.prev,a=t,o=t.next;if(Bo(i,a,o)&gt;=0)return!1;for(var s=i.x&gt;a.x?i.x&gt;o.x?i.x:o.x:a.x&gt;o.x?a.x:o.x,l=i.y&gt;a.y?i.y&gt;o.y?i.y:o.y:a.y&gt;o.y?a.y:o.y,c=Oo(i.x&lt;a.x?i.x&lt;o.x?i.x:o.x:a.x&lt;o.x?a.x:o.x,i.y&lt;a.y?i.y&lt;o.y?i.y:o.y:a.y&lt;o.y?a.y:o.y,e,r,n),u=Oo(s,l,e,r,n),f=t.prevZ,h=t.nextZ;f&amp;&amp;f.z&gt;=c&amp;&amp;h&amp;&amp;h.z&lt;=u;){if(f!==t.prev&amp;&amp;f!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,f.x,f.y)&amp;&amp;Bo(f.prev,f,f.next)&gt;=0)return!1;if(f=f.prevZ,h!==t.prev&amp;&amp;h!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&amp;&amp;Bo(h.prev,h,h.next)&gt;=0)return!1;h=h.nextZ}for(;f&amp;&amp;f.z&gt;=c;){if(f!==t.prev&amp;&amp;f!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,f.x,f.y)&amp;&amp;Bo(f.prev,f,f.next)&gt;=0)return!1;f=f.prevZ}for(;h&amp;&amp;h.z&lt;=u;){if(h!==t.prev&amp;&amp;h!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&amp;&amp;Bo(h.prev,h,h.next)&gt;=0)return!1;h=h.nextZ}return!0}function Co(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!No(i,a)&amp;&amp;jo(i,n,n.next,a)&amp;&amp;qo(i,a)&amp;&amp;qo(a,i)&amp;&amp;(e.push(i.i/r),e.push(n.i/r),e.push(a.i/r),Yo(n),Yo(n.next),n=t=a),n=n.next}while(n!==t);return Mo(n)}function Lo(t,e,r,n,i,a){var o=t;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&amp;&amp;Fo(o,s)){var l=Ho(o,s);return o=Mo(o,o.next),l=Mo(l,l.next),Ao(o,e,r,n,i,a),void Ao(l,e,r,n,i,a)}s=s.next}o=o.next}while(o!==t)}function Io(t,e){return t.x-e.x}function Po(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a&lt;=n.y&amp;&amp;a&gt;=n.next.y&amp;&amp;n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s&lt;=i&amp;&amp;s&gt;o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x&lt;n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,h=1/0;n=r;do{i&gt;=n.x&amp;&amp;n.x&gt;=u&amp;&amp;i!==n.x&amp;&amp;Ro(a&lt;f?i:o,a,u,f,a&lt;f?o:i,a,n.x,n.y)&amp;&amp;(l=Math.abs(a-n.y)/(i-n.x),qo(n,t)&amp;&amp;(l&lt;h||l===h&amp;&amp;(n.x&gt;r.x||n.x===r.x&amp;&amp;zo(r,n)))&amp;&amp;(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e)){var r=Ho(e,t);Mo(e,e.next),Mo(r,r.next)}}function zo(t,e){return Bo(t.prev,t,e.prev)&lt;0&amp;&amp;Bo(e.next,t,t.next)&lt;0}function Oo(t,e,r,n,i){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t=32767*(t-r)*i)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e=32767*(e-n)*i)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1}function Do(t){var e=t,r=t;do{(e.x&lt;r.x||e.x===r.x&amp;&amp;e.y&lt;r.y)&amp;&amp;(r=e),e=e.next}while(e!==t);return r}function Ro(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)&gt;=0&amp;&amp;(t-o)*(n-s)-(r-o)*(e-s)&gt;=0&amp;&amp;(r-o)*(a-s)-(i-o)*(n-s)&gt;=0}function Fo(t,e){return t.next.i!==e.i&amp;&amp;t.prev.i!==e.i&amp;&amp;!function(t,e){var r=t;do{if(r.i!==t.i&amp;&amp;r.next.i!==t.i&amp;&amp;r.i!==e.i&amp;&amp;r.next.i!==e.i&amp;&amp;jo(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&amp;&amp;(qo(t,e)&amp;&amp;qo(e,t)&amp;&amp;function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y&gt;a!=r.next.y&gt;a&amp;&amp;r.next.y!==r.y&amp;&amp;i&lt;(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&amp;&amp;(n=!n),r=r.next}while(r!==t);return n}(t,e)&amp;&amp;(Bo(t.prev,t,e.prev)||Bo(t,e.prev,e))||No(t,e)&amp;&amp;Bo(t.prev,t,t.next)&gt;0&amp;&amp;Bo(e.prev,e,e.next)&gt;0)}function Bo(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function No(t,e){return t.x===e.x&amp;&amp;t.y===e.y}function jo(t,e,r,n){var i=Vo(Bo(t,e,r)),a=Vo(Bo(t,e,n)),o=Vo(Bo(r,n,t)),s=Vo(Bo(r,n,e));return i!==a&amp;&amp;o!==s||!(0!==i||!Uo(t,r,e))||!(0!==a||!Uo(t,n,e))||!(0!==o||!Uo(r,t,n))||!(0!==s||!Uo(r,e,n))}function Uo(t,e,r){return e.x&lt;=Math.max(t.x,r.x)&amp;&amp;e.x&gt;=Math.min(t.x,r.x)&amp;&amp;e.y&lt;=Math.max(t.y,r.y)&amp;&amp;e.y&gt;=Math.min(t.y,r.y)}function Vo(t){return t&gt;0?1:t&lt;0?-1:0}function qo(t,e){return Bo(t.prev,t,t.next)&lt;0?Bo(t,e,t.next)&gt;=0&amp;&amp;Bo(t,t.prev,e)&gt;=0:Bo(t,e,t.prev)&lt;0||Bo(t,t.next,e)&lt;0}function Ho(t,e){var r=new Wo(t.i,t.x,t.y),n=new Wo(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function Go(t,e,r,n){var i=new Wo(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Yo(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&amp;&amp;(t.prevZ.nextZ=t.nextZ),t.nextZ&amp;&amp;(t.nextZ.prevZ=t.prevZ)}function Wo(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Xo(t,e,r,n){for(var i=0,a=e,o=r-n;a&lt;r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}function Zo(t,e,r,n,i){!function t(e,r,n,i,a){for(;i&gt;n;){if(i-n&gt;600){var o=i-n+1,s=r-n+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2&lt;0?-1:1);t(e,r,Math.max(n,Math.floor(r-s*c/o+u)),Math.min(i,Math.floor(r+(o-s)*c/o+u)),a)}var f=e[r],h=n,p=i;for(Jo(e,n,r),a(e[i],f)&gt;0&amp;&amp;Jo(e,n,i);h&lt;p;){for(Jo(e,h,p),h++,p--;a(e[h],f)&lt;0;)h++;for(;a(e[p],f)&gt;0;)p--}0===a(e[n],f)?Jo(e,n,p):Jo(e,++p,i),p&lt;=r&amp;&amp;(n=p+1),r&lt;=p&amp;&amp;(i=p-1)}}(t,e,r||0,n||t.length-1,i||Ko)}function Jo(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Ko(t,e){return t&lt;e?-1:t&gt;e?1:0}function Qo(t,e){var r=t.length;if(r&lt;=1)return[t];for(var n,i,a=[],o=0;o&lt;r;o++){var s=T(t[o]);0!==s&amp;&amp;(t[o].area=Math.abs(s),void 0===i&amp;&amp;(i=s&lt;0),i===s&lt;0?(n&amp;&amp;a.push(n),n=[t[o]]):n.push(t[o]))}if(n&amp;&amp;a.push(n),e&gt;1)for(var l=0;l&lt;a.length;l++)a[l].length&lt;=e||(Zo(a[l],e,1,a[l].length-1,$o),a[l]=a[l].slice(0,e));return a}function $o(t,e){return e.area-t.area}function ts(t,e,r){for(var n=r.patternDependencies,i=!1,a=0,o=e;a&lt;o.length;a+=1){var s=o[a].paint.get(t+&quot;-pattern&quot;);s.isConstant()||(i=!0);var l=s.constantOr(null);l&amp;&amp;(i=!0,n[l.to]=!0,n[l.from]=!0)}return i}function es(t,e,r,n,i){for(var a=i.patternDependencies,o=0,s=e;o&lt;s.length;o+=1){var l=s[o],c=l.paint.get(t+&quot;-pattern&quot;).value;if(&quot;constant&quot;!==c.kind){var u=c.evaluate({zoom:n-1},r,{},i.availableImages),f=c.evaluate({zoom:n},r,{},i.availableImages),h=c.evaluate({zoom:n+1},r,{},i.availableImages);f=f&amp;&amp;f.name?f.name:f,h=h&amp;&amp;h.name?h.name:h,a[u=u&amp;&amp;u.name?u.name:u]=!0,a[f]=!0,a[h]=!0,r.patterns[l.id]={min:u,mid:f,max:h}}}return r}To.deviation=function(t,e,r,n){var i=e&amp;&amp;e.length,a=Math.abs(Xo(t,0,i?e[0]*r:t.length,r));if(i)for(var o=0,s=e.length;o&lt;s;o++)a-=Math.abs(Xo(t,e[o]*r,o&lt;s-1?e[o+1]*r:t.length,r));var l=0;for(o=0;o&lt;n.length;o+=3){var c=n[o]*r,u=n[o+1]*r,f=n[o+2]*r;l+=Math.abs((t[c]-t[f])*(t[u+1]-t[c+1])-(t[c]-t[u])*(t[f+1]-t[c+1]))}return 0===a&amp;&amp;0===l?0:Math.abs((l-a)/a)},To.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i&lt;t.length;i++){for(var a=0;a&lt;t[i].length;a++)for(var o=0;o&lt;e;o++)r.vertices.push(t[i][a][o]);i&gt;0&amp;&amp;r.holes.push(n+=t[i-1].length)}return r},_o.default=wo;var rs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Mi,this.indexArray=new Fi,this.indexArray2=new qi,this.programConfigurations=new Ia(bo,t.layers,t.zoom),this.segments=new ia,this.segments2=new ia,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};rs.prototype.populate=function(t,e,r){this.hasPattern=ts(&quot;fill&quot;,this.layers,e);for(var n=this.layers[0].layout.get(&quot;fill-sort-key&quot;),i=[],a=0,o=t;a&lt;o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,p={type:l.type,id:c,properties:l.properties,geometry:h?Da(l):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),p,r)){h||(p.geometry=Da(l));var d=n?n.evaluate(p,{},r,e.availableImages):void 0;i.push({id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:p.geometry,patterns:{},sortKey:d})}}n&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var g=0,m=i;g&lt;m.length;g+=1){var v=m[g],y=v.geometry,x=v.index,b=v.sourceLayerIndex;if(this.hasPattern){var _=es(&quot;fill&quot;,this.layers,v,this.zoom,e);this.patternFeatures.push(_)}else this.addFeature(v,y,x,r,{});e.featureIndex.insert(t[x].feature,y,x,b,this.index)}},rs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},rs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},rs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},rs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},rs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,bo),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0},rs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},rs.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=Qo(e,500);a&lt;o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c&lt;u.length;c+=1)l+=u[c].length;for(var f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray),h=f.vertexLength,p=[],d=[],g=0,m=s;g&lt;m.length;g+=1){var v=m[g];if(0!==v.length){v!==s[0]&amp;&amp;d.push(p.length/2);var y=this.segments2.prepareSegment(v.length,this.layoutVertexArray,this.indexArray2),x=y.vertexLength;this.layoutVertexArray.emplaceBack(v[0].x,v[0].y),this.indexArray2.emplaceBack(x+v.length-1,x),p.push(v[0].x),p.push(v[0].y);for(var b=1;b&lt;v.length;b++)this.layoutVertexArray.emplaceBack(v[b].x,v[b].y),this.indexArray2.emplaceBack(x+b-1,x+b),p.push(v[b].x),p.push(v[b].y);y.vertexLength+=v.length,y.primitiveLength+=v.length}}for(var _=_o(p,d),w=0;w&lt;_.length;w+=3)this.indexArray.emplaceBack(h+_[w],h+_[w+1],h+_[w+2]);f.vertexLength+=l,f.primitiveLength+=_.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Dn(&quot;FillBucket&quot;,rs,{omit:[&quot;layers&quot;,&quot;patternFeatures&quot;]});var ns=new yi({&quot;fill-sort-key&quot;:new di(At.layout_fill[&quot;fill-sort-key&quot;])}),is={paint:new yi({&quot;fill-antialias&quot;:new pi(At.paint_fill[&quot;fill-antialias&quot;]),&quot;fill-opacity&quot;:new di(At.paint_fill[&quot;fill-opacity&quot;]),&quot;fill-color&quot;:new di(At.paint_fill[&quot;fill-color&quot;]),&quot;fill-outline-color&quot;:new di(At.paint_fill[&quot;fill-outline-color&quot;]),&quot;fill-translate&quot;:new pi(At.paint_fill[&quot;fill-translate&quot;]),&quot;fill-translate-anchor&quot;:new pi(At.paint_fill[&quot;fill-translate-anchor&quot;]),&quot;fill-pattern&quot;:new gi(At.paint_fill[&quot;fill-pattern&quot;])}),layout:ns},as=function(t){function e(e){t.call(this,e,is)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r);var n=this.paint._values[&quot;fill-outline-color&quot;];&quot;constant&quot;===n.value.kind&amp;&amp;void 0===n.value.value&amp;&amp;(this.paint._values[&quot;fill-outline-color&quot;]=this.paint._values[&quot;fill-color&quot;])},e.prototype.createBucket=function(t){return new rs(t)},e.prototype.queryRadius=function(){return Ja(this.paint.get(&quot;fill-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o){return ja(Ka(t,this.paint.get(&quot;fill-translate&quot;),this.paint.get(&quot;fill-translate-anchor&quot;),a.angle,o),n)},e.prototype.isTileClipped=function(){return!0},e}(xi),os=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_normal_ed&quot;,components:4,type:&quot;Int16&quot;}],4).members,ss=ls;function ls(t,e,r,n,i){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=i,t.readFields(cs,this,e)}function cs(t,e,r){1==t?e.id=r.readVarint():2==t?function(t,e){for(var r=t.readVarint()+t.pos;t.pos&lt;r;){var n=e._keys[t.readVarint()],i=e._values[t.readVarint()];e.properties[n]=i}}(r,e):3==t?e.type=r.readVarint():4==t&amp;&amp;(e._geometry=r.pos)}function us(t){for(var e,r,n=0,i=0,a=t.length,o=a-1;i&lt;a;o=i++)n+=((r=t[o]).x-(e=t[i]).x)*(e.y+r.y);return n}ls.types=[&quot;Unknown&quot;,&quot;Point&quot;,&quot;LineString&quot;,&quot;Polygon&quot;],ls.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,r=t.readVarint()+t.pos,n=1,a=0,o=0,s=0,l=[];t.pos&lt;r;){if(a&lt;=0){var c=t.readVarint();n=7&amp;c,a=c&gt;&gt;3}if(a--,1===n||2===n)o+=t.readSVarint(),s+=t.readSVarint(),1===n&amp;&amp;(e&amp;&amp;l.push(e),e=[]),e.push(new i(o,s));else{if(7!==n)throw new Error(&quot;unknown command &quot;+n);e&amp;&amp;e.push(e[0].clone())}}return e&amp;&amp;l.push(e),l},ls.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,i=0,a=0,o=1/0,s=-1/0,l=1/0,c=-1/0;t.pos&lt;e;){if(n&lt;=0){var u=t.readVarint();r=7&amp;u,n=u&gt;&gt;3}if(n--,1===r||2===r)(i+=t.readSVarint())&lt;o&amp;&amp;(o=i),i&gt;s&amp;&amp;(s=i),(a+=t.readSVarint())&lt;l&amp;&amp;(l=a),a&gt;c&amp;&amp;(c=a);else if(7!==r)throw new Error(&quot;unknown command &quot;+r)}return[o,l,s,c]},ls.prototype.toGeoJSON=function(t,e,r){var n,i,a=this.extent*Math.pow(2,r),o=this.extent*t,s=this.extent*e,l=this.loadGeometry(),c=ls.types[this.type];function u(t){for(var e=0;e&lt;t.length;e++){var r=t[e];t[e]=[360*(r.x+o)/a-180,360/Math.PI*Math.atan(Math.exp((180-360*(r.y+s)/a)*Math.PI/180))-90]}}switch(this.type){case 1:var f=[];for(n=0;n&lt;l.length;n++)f[n]=l[n][0];u(l=f);break;case 2:for(n=0;n&lt;l.length;n++)u(l[n]);break;case 3:for(l=function(t){var e=t.length;if(e&lt;=1)return[t];for(var r,n,i=[],a=0;a&lt;e;a++){var o=us(t[a]);0!==o&amp;&amp;(void 0===n&amp;&amp;(n=o&lt;0),n===o&lt;0?(r&amp;&amp;i.push(r),r=[t[a]]):r.push(t[a]))}return r&amp;&amp;i.push(r),i}(l),n=0;n&lt;l.length;n++)for(i=0;i&lt;l[n].length;i++)u(l[n][i])}1===l.length?l=l[0]:c=&quot;Multi&quot;+c;var h={type:&quot;Feature&quot;,geometry:{type:c,coordinates:l},properties:this.properties};return&quot;id&quot;in this&amp;&amp;(h.id=this.id),h};var fs=hs;function hs(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(ps,this,e),this.length=this._features.length}function ps(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():5===t?e.extent=r.readVarint():2===t?e._features.push(r.pos):3===t?e._keys.push(r.readString()):4===t&amp;&amp;e._values.push(function(t){for(var e=null,r=t.readVarint()+t.pos;t.pos&lt;r;){var n=t.readVarint()&gt;&gt;3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}(r))}function ds(t,e,r){if(3===t){var n=new fs(r,r.readVarint()+r.pos);n.length&amp;&amp;(e[n.name]=n)}}hs.prototype.feature=function(t){if(t&lt;0||t&gt;=this._features.length)throw new Error(&quot;feature index out of bounds&quot;);this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new ss(this._pbf,e,this.extent,this._keys,this._values)};var gs={VectorTile:function(t,e){this.layers=t.readFields(ds,{},e)},VectorTileFeature:ss,VectorTileLayer:fs},ms=gs.VectorTileFeature.types,vs=Math.pow(2,13);function ys(t,e,r,n,i,a,o,s){t.emplaceBack(e,r,2*Math.floor(n*vs)+o,i*vs*2,a*vs*2,Math.round(s))}var xs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Si,this.indexArray=new Fi,this.programConfigurations=new Ia(os,t.layers,t.zoom),this.segments=new ia,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function bs(t,e){return t.x===e.x&amp;&amp;(t.x&lt;0||t.x&gt;8192)||t.y===e.y&amp;&amp;(t.y&lt;0||t.y&gt;8192)}xs.prototype.populate=function(t,e,r){this.features=[],this.hasPattern=ts(&quot;fill-extrusion&quot;,this.layers,e);for(var n=0,i=t;n&lt;i.length;n+=1){var a=i[n],o=a.feature,s=a.id,l=a.index,c=a.sourceLayerIndex,u=this.layers[0]._featureFilter.needGeometry,f={type:o.type,id:s,properties:o.properties,geometry:u?Da(o):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),f,r)){var h={id:s,sourceLayerIndex:c,index:l,geometry:u?f.geometry:Da(o),properties:o.properties,type:o.type,patterns:{}};void 0!==o.id&amp;&amp;(h.id=o.id),this.hasPattern?this.features.push(es(&quot;fill-extrusion&quot;,this.layers,h,this.zoom,e)):this.addFeature(h,h.geometry,l,r,{}),e.featureIndex.insert(o,h.geometry,l,c,this.index,!0)}}},xs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.features;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},xs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},xs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},xs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},xs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,os),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},xs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},xs.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=Qo(e,500);a&lt;o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c&lt;u.length;c+=1)l+=u[c].length;for(var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),h=0,p=s;h&lt;p.length;h+=1){var d=p[h];if(0!==d.length&amp;&amp;!((P=d).every((function(t){return t.x&lt;0}))||P.every((function(t){return t.x&gt;8192}))||P.every((function(t){return t.y&lt;0}))||P.every((function(t){return t.y&gt;8192}))))for(var g=0,m=0;m&lt;d.length;m++){var v=d[m];if(m&gt;=1){var y=d[m-1];if(!bs(v,y)){f.vertexLength+4&gt;ia.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var x=v.sub(y)._perp()._unit(),b=y.dist(v);g+b&gt;32768&amp;&amp;(g=0),ys(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,0,g),ys(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,1,g),ys(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,0,g+=b),ys(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,1,g);var _=f.vertexLength;this.indexArray.emplaceBack(_,_+2,_+1),this.indexArray.emplaceBack(_+1,_+2,_+3),f.vertexLength+=4,f.primitiveLength+=2}}}}if(f.vertexLength+l&gt;ia.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray)),&quot;Polygon&quot;===ms[t.type]){for(var w=[],T=[],k=f.vertexLength,M=0,A=s;M&lt;A.length;M+=1){var S=A[M];if(0!==S.length){S!==s[0]&amp;&amp;T.push(w.length/2);for(var E=0;E&lt;S.length;E++){var C=S[E];ys(this.layoutVertexArray,C.x,C.y,0,0,1,1,0),w.push(C.x),w.push(C.y)}}}for(var L=_o(w,T),I=0;I&lt;L.length;I+=3)this.indexArray.emplaceBack(k+L[I],k+L[I+2],k+L[I+1]);f.primitiveLength+=L.length/3,f.vertexLength+=l}}var P;this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Dn(&quot;FillExtrusionBucket&quot;,xs,{omit:[&quot;layers&quot;,&quot;features&quot;]});var _s={paint:new yi({&quot;fill-extrusion-opacity&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-opacity&quot;]),&quot;fill-extrusion-color&quot;:new di(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-color&quot;]),&quot;fill-extrusion-translate&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-translate&quot;]),&quot;fill-extrusion-translate-anchor&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-translate-anchor&quot;]),&quot;fill-extrusion-pattern&quot;:new gi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-pattern&quot;]),&quot;fill-extrusion-height&quot;:new di(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-height&quot;]),&quot;fill-extrusion-base&quot;:new di(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-base&quot;]),&quot;fill-extrusion-vertical-gradient&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-vertical-gradient&quot;])})},ws=function(t){function e(e){t.call(this,e,_s)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new xs(t)},e.prototype.queryRadius=function(){return Ja(this.paint.get(&quot;fill-extrusion-translate&quot;))},e.prototype.is3D=function(){return!0},e.prototype.queryIntersectsFeature=function(t,e,r,n,a,o,s,l){var c=Ka(t,this.paint.get(&quot;fill-extrusion-translate&quot;),this.paint.get(&quot;fill-extrusion-translate-anchor&quot;),o.angle,s),u=this.paint.get(&quot;fill-extrusion-height&quot;).evaluate(e,r),f=this.paint.get(&quot;fill-extrusion-base&quot;).evaluate(e,r),h=function(t,e,r,n){for(var a=[],o=0,s=t;o&lt;s.length;o+=1){var l=s[o],c=[l.x,l.y,0,1];ao(c,c,e),a.push(new i(c[0]/c[3],c[1]/c[3]))}return a}(c,l),p=function(t,e,r,n){for(var a=[],o=[],s=n[8]*e,l=n[9]*e,c=n[10]*e,u=n[11]*e,f=n[8]*r,h=n[9]*r,p=n[10]*r,d=n[11]*r,g=0,m=t;g&lt;m.length;g+=1){for(var v=[],y=[],x=0,b=m[g];x&lt;b.length;x+=1){var _=b[x],w=_.x,T=_.y,k=n[0]*w+n[4]*T+n[12],M=n[1]*w+n[5]*T+n[13],A=n[2]*w+n[6]*T+n[14],S=n[3]*w+n[7]*T+n[15],E=A+c,C=S+u,L=k+f,I=M+h,P=A+p,z=S+d,O=new i((k+s)/C,(M+l)/C);O.z=E/C,v.push(O);var D=new i(L/z,I/z);D.z=P/z,y.push(D)}a.push(v),o.push(y)}return[a,o]}(n,f,u,l);return function(t,e,r){var n=1/0;ja(r,e)&amp;&amp;(n=ks(r,e[0]));for(var i=0;i&lt;e.length;i++)for(var a=e[i],o=t[i],s=0;s&lt;a.length-1;s++){var l=a[s],c=[l,a[s+1],o[s+1],o[s],l];Ba(r,c)&amp;&amp;(n=Math.min(n,ks(r,c)))}return n!==1/0&amp;&amp;n}(p[0],p[1],h)},e}(xi);function Ts(t,e){return t.x*e.x+t.y*e.y}function ks(t,e){if(1===t.length){for(var r,n=0,i=e[n++];!r||i.equals(r);)if(!(r=e[n++]))return 1/0;for(;n&lt;e.length;n++){var a=e[n],o=t[0],s=r.sub(i),l=a.sub(i),c=o.sub(i),u=Ts(s,s),f=Ts(s,l),h=Ts(l,l),p=Ts(c,s),d=Ts(c,l),g=u*h-f*f,m=(h*p-f*d)/g,v=(u*d-f*p)/g,y=i.z*(1-m-v)+r.z*m+a.z*v;if(isFinite(y))return y}return 1/0}for(var x=1/0,b=0,_=e;b&lt;_.length;b+=1)x=Math.min(x,_[b].z);return x}var Ms=Ti([{name:&quot;a_pos_normal&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_data&quot;,components:4,type:&quot;Uint8&quot;}],4).members,As=gs.VectorTileFeature.types,Ss=Math.cos(Math.PI/180*37.5),Es=Math.pow(2,14)/.5,Cs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Ei,this.indexArray=new Fi,this.programConfigurations=new Ia(Ms,t.layers,t.zoom),this.segments=new ia,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};Cs.prototype.populate=function(t,e,r){this.hasPattern=ts(&quot;line&quot;,this.layers,e);for(var n=this.layers[0].layout.get(&quot;line-sort-key&quot;),i=[],a=0,o=t;a&lt;o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,p={type:l.type,id:c,properties:l.properties,geometry:h?Da(l):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),p,r)){h||(p.geometry=Da(l));var d=n?n.evaluate(p,{},r):void 0;i.push({id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:p.geometry,patterns:{},sortKey:d})}}n&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var g=0,m=i;g&lt;m.length;g+=1){var v=m[g],y=v.geometry,x=v.index,b=v.sourceLayerIndex;if(this.hasPattern){var _=es(&quot;line&quot;,this.layers,v,this.zoom,e);this.patternFeatures.push(_)}else this.addFeature(v,y,x,r,{});e.featureIndex.insert(t[x].feature,y,x,b,this.index)}},Cs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Cs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},Cs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Cs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Cs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ms),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Cs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Cs.prototype.addFeature=function(t,e,r,n,i){for(var a=this.layers[0].layout,o=a.get(&quot;line-join&quot;).evaluate(t,{}),s=a.get(&quot;line-cap&quot;),l=a.get(&quot;line-miter-limit&quot;),c=a.get(&quot;line-round-limit&quot;),u=0,f=e;u&lt;f.length;u+=1)this.addLine(f[u],t,o,s,l,c);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Cs.prototype.addLine=function(t,e,r,n,i,a){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,e.properties&amp;&amp;e.properties.hasOwnProperty(&quot;mapbox_clip_start&quot;)&amp;&amp;e.properties.hasOwnProperty(&quot;mapbox_clip_end&quot;)){this.clipStart=+e.properties.mapbox_clip_start,this.clipEnd=+e.properties.mapbox_clip_end;for(var o=0;o&lt;t.length-1;o++)this.totalDistance+=t[o].dist(t[o+1]);this.updateScaledDistance()}for(var s=&quot;Polygon&quot;===As[e.type],l=t.length;l&gt;=2&amp;&amp;t[l-1].equals(t[l-2]);)l--;for(var c=0;c&lt;l-1&amp;&amp;t[c].equals(t[c+1]);)c++;if(!(l&lt;(s?3:2))){&quot;bevel&quot;===r&amp;&amp;(i=1.05);var u,f=this.overscaling&lt;=16?122880/(512*this.overscaling):0,h=this.segments.prepareSegment(10*l,this.layoutVertexArray,this.indexArray),p=void 0,d=void 0,g=void 0,m=void 0;this.e1=this.e2=-1,s&amp;&amp;(m=t[c].sub(u=t[l-2])._unit()._perp());for(var v=c;v&lt;l;v++)if(!(d=v===l-1?s?t[c+1]:void 0:t[v+1])||!t[v].equals(d)){m&amp;&amp;(g=m),u&amp;&amp;(p=u),u=t[v],m=d?d.sub(u)._unit()._perp():g;var y=(g=g||m).add(m);0===y.x&amp;&amp;0===y.y||y._unit();var x=g.x*m.x+g.y*m.y,b=y.x*m.x+y.y*m.y,_=0!==b?1/b:1/0,w=2*Math.sqrt(2-2*b),T=b&lt;Ss&amp;&amp;p&amp;&amp;d,k=g.x*m.y-g.y*m.x&gt;0;if(T&amp;&amp;v&gt;c){var M=u.dist(p);if(M&gt;2*f){var A=u.sub(u.sub(p)._mult(f/M)._round());this.updateDistance(p,A),this.addCurrentVertex(A,g,0,0,h),p=A}}var S=p&amp;&amp;d,E=S?r:s?&quot;butt&quot;:n;if(S&amp;&amp;&quot;round&quot;===E&amp;&amp;(_&lt;a?E=&quot;miter&quot;:_&lt;=2&amp;&amp;(E=&quot;fakeround&quot;)),&quot;miter&quot;===E&amp;&amp;_&gt;i&amp;&amp;(E=&quot;bevel&quot;),&quot;bevel&quot;===E&amp;&amp;(_&gt;2&amp;&amp;(E=&quot;flipbevel&quot;),_&lt;i&amp;&amp;(E=&quot;miter&quot;)),p&amp;&amp;this.updateDistance(p,u),&quot;miter&quot;===E)y._mult(_),this.addCurrentVertex(u,y,0,0,h);else if(&quot;flipbevel&quot;===E){if(_&gt;100)y=m.mult(-1);else{var C=_*g.add(m).mag()/g.sub(m).mag();y._perp()._mult(C*(k?-1:1))}this.addCurrentVertex(u,y,0,0,h),this.addCurrentVertex(u,y.mult(-1),0,0,h)}else if(&quot;bevel&quot;===E||&quot;fakeround&quot;===E){var L=-Math.sqrt(_*_-1),I=k?L:0,P=k?0:L;if(p&amp;&amp;this.addCurrentVertex(u,g,I,P,h),&quot;fakeround&quot;===E)for(var z=Math.round(180*w/Math.PI/20),O=1;O&lt;z;O++){var D=O/z;if(.5!==D){var R=D-.5;D+=D*R*(D-1)*((1.0904+x*(x*(3.55645-1.43519*x)-3.2452))*R*R+(.848013+x*(.215638*x-1.06021)))}var F=m.sub(g)._mult(D)._add(g)._unit()._mult(k?-1:1);this.addHalfVertex(u,F.x,F.y,!1,k,0,h)}d&amp;&amp;this.addCurrentVertex(u,m,-I,-P,h)}else if(&quot;butt&quot;===E)this.addCurrentVertex(u,y,0,0,h);else if(&quot;square&quot;===E){var B=p?1:-1;this.addCurrentVertex(u,y,B,B,h)}else&quot;round&quot;===E&amp;&amp;(p&amp;&amp;(this.addCurrentVertex(u,g,0,0,h),this.addCurrentVertex(u,g,1,1,h,!0)),d&amp;&amp;(this.addCurrentVertex(u,m,-1,-1,h,!0),this.addCurrentVertex(u,m,0,0,h)));if(T&amp;&amp;v&lt;l-1){var N=u.dist(d);if(N&gt;2*f){var j=u.add(d.sub(u)._mult(f/N)._round());this.updateDistance(u,j),this.addCurrentVertex(j,m,0,0,h),u=j}}}}},Cs.prototype.addCurrentVertex=function(t,e,r,n,i,a){void 0===a&amp;&amp;(a=!1);var o=e.y*n-e.x,s=-e.y-e.x*n;this.addHalfVertex(t,e.x+e.y*r,e.y-e.x*r,a,!1,r,i),this.addHalfVertex(t,o,s,a,!0,-n,i),this.distance&gt;Es/2&amp;&amp;0===this.totalDistance&amp;&amp;(this.distance=0,this.addCurrentVertex(t,e,r,n,i,a))},Cs.prototype.addHalfVertex=function(t,e,r,n,i,a,o){var s=.5*this.scaledDistance;this.layoutVertexArray.emplaceBack((t.x&lt;&lt;1)+(n?1:0),(t.y&lt;&lt;1)+(i?1:0),Math.round(63*e)+128,Math.round(63*r)+128,1+(0===a?0:a&lt;0?-1:1)|(63&amp;s)&lt;&lt;2,s&gt;&gt;6);var l=o.vertexLength++;this.e1&gt;=0&amp;&amp;this.e2&gt;=0&amp;&amp;(this.indexArray.emplaceBack(this.e1,this.e2,l),o.primitiveLength++),i?this.e2=l:this.e1=l},Cs.prototype.updateScaledDistance=function(){this.scaledDistance=this.totalDistance&gt;0?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(Es-1):this.distance},Cs.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},Dn(&quot;LineBucket&quot;,Cs,{omit:[&quot;layers&quot;,&quot;patternFeatures&quot;]});var Ls=new yi({&quot;line-cap&quot;:new pi(At.layout_line[&quot;line-cap&quot;]),&quot;line-join&quot;:new di(At.layout_line[&quot;line-join&quot;]),&quot;line-miter-limit&quot;:new pi(At.layout_line[&quot;line-miter-limit&quot;]),&quot;line-round-limit&quot;:new pi(At.layout_line[&quot;line-round-limit&quot;]),&quot;line-sort-key&quot;:new di(At.layout_line[&quot;line-sort-key&quot;])}),Is={paint:new yi({&quot;line-opacity&quot;:new di(At.paint_line[&quot;line-opacity&quot;]),&quot;line-color&quot;:new di(At.paint_line[&quot;line-color&quot;]),&quot;line-translate&quot;:new pi(At.paint_line[&quot;line-translate&quot;]),&quot;line-translate-anchor&quot;:new pi(At.paint_line[&quot;line-translate-anchor&quot;]),&quot;line-width&quot;:new di(At.paint_line[&quot;line-width&quot;]),&quot;line-gap-width&quot;:new di(At.paint_line[&quot;line-gap-width&quot;]),&quot;line-offset&quot;:new di(At.paint_line[&quot;line-offset&quot;]),&quot;line-blur&quot;:new di(At.paint_line[&quot;line-blur&quot;]),&quot;line-dasharray&quot;:new mi(At.paint_line[&quot;line-dasharray&quot;]),&quot;line-pattern&quot;:new gi(At.paint_line[&quot;line-pattern&quot;]),&quot;line-gradient&quot;:new vi(At.paint_line[&quot;line-gradient&quot;])}),layout:Ls},Ps=new(function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(e,r){return r=new ii(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),t.prototype.possiblyEvaluate.call(this,e,r)},e.prototype.evaluate=function(e,r,n,i){return r=u({},r,{zoom:Math.floor(r.zoom)}),t.prototype.evaluate.call(this,e,r,n,i)},e}(di))(Is.paint.properties[&quot;line-width&quot;].specification);Ps.useIntegerZoom=!0;var zs=function(t){function e(e){t.call(this,e,Is)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){&quot;line-gradient&quot;===t&amp;&amp;this._updateGradient()},e.prototype._updateGradient=function(){this.gradient=mo(this._transitionablePaint._values[&quot;line-gradient&quot;].value.expression,&quot;lineProgress&quot;),this.gradientTexture=null},e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r),this.paint._values[&quot;line-floorwidth&quot;]=Ps.possiblyEvaluate(this._transitioningPaint._values[&quot;line-width&quot;].value,e)},e.prototype.createBucket=function(t){return new Cs(t)},e.prototype.queryRadius=function(t){var e=t,r=Os(Za(&quot;line-width&quot;,this,e),Za(&quot;line-gap-width&quot;,this,e)),n=Za(&quot;line-offset&quot;,this,e);return r/2+Math.abs(n)+Ja(this.paint.get(&quot;line-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,a,o,s){var l=Ka(t,this.paint.get(&quot;line-translate&quot;),this.paint.get(&quot;line-translate-anchor&quot;),o.angle,s),c=s/2*Os(this.paint.get(&quot;line-width&quot;).evaluate(e,r),this.paint.get(&quot;line-gap-width&quot;).evaluate(e,r)),u=this.paint.get(&quot;line-offset&quot;).evaluate(e,r);return u&amp;&amp;(n=function(t,e){for(var r=[],n=new i(0,0),a=0;a&lt;t.length;a++){for(var o=t[a],s=[],l=0;l&lt;o.length;l++){var c=o[l],u=o[l+1],f=0===l?n:c.sub(o[l-1])._unit()._perp(),h=l===o.length-1?n:u.sub(c)._unit()._perp(),p=f._add(h)._unit();p._mult(1/(p.x*h.x+p.y*h.y)),s.push(p._mult(e)._add(c))}r.push(s)}return r}(n,u*s)),function(t,e,r){for(var n=0;n&lt;e.length;n++){var i=e[n];if(t.length&gt;=3)for(var a=0;a&lt;i.length;a++)if(Wa(t,i[a]))return!0;if(Ua(t,i,r))return!0}return!1}(l,n,c)},e.prototype.isTileClipped=function(){return!0},e}(xi);function Os(t,e){return e&gt;0?e+2*t:t}var Ds=Ti([{name:&quot;a_pos_offset&quot;,components:4,type:&quot;Int16&quot;},{name:&quot;a_data&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pixeloffset&quot;,components:4,type:&quot;Int16&quot;}],4),Rs=Ti([{name:&quot;a_projected_pos&quot;,components:3,type:&quot;Float32&quot;}],4),Fs=(Ti([{name:&quot;a_fade_opacity&quot;,components:1,type:&quot;Uint32&quot;}],4),Ti([{name:&quot;a_placed&quot;,components:2,type:&quot;Uint8&quot;},{name:&quot;a_shift&quot;,components:2,type:&quot;Float32&quot;}])),Bs=(Ti([{type:&quot;Int16&quot;,name:&quot;anchorPointX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorPointY&quot;},{type:&quot;Int16&quot;,name:&quot;x1&quot;},{type:&quot;Int16&quot;,name:&quot;y1&quot;},{type:&quot;Int16&quot;,name:&quot;x2&quot;},{type:&quot;Int16&quot;,name:&quot;y2&quot;},{type:&quot;Uint32&quot;,name:&quot;featureIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;sourceLayerIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;bucketIndex&quot;}]),Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_anchor_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_extrude&quot;,components:2,type:&quot;Int16&quot;}],4)),Ns=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Float32&quot;},{name:&quot;a_radius&quot;,components:1,type:&quot;Float32&quot;},{name:&quot;a_flags&quot;,components:2,type:&quot;Int16&quot;}],4);function js(t,e,r){return t.sections.forEach((function(t){t.text=function(t,e,r){var n=e.layout.get(&quot;text-transform&quot;).evaluate(r,{});return&quot;uppercase&quot;===n?t=t.toLocaleUpperCase():&quot;lowercase&quot;===n&amp;&amp;(t=t.toLocaleLowerCase()),ni.applyArabicShaping&amp;&amp;(t=ni.applyArabicShaping(t)),t}(t.text,e,r)})),t}Ti([{name:&quot;triangle&quot;,components:3,type:&quot;Uint16&quot;}]),Ti([{type:&quot;Int16&quot;,name:&quot;anchorX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorY&quot;},{type:&quot;Uint16&quot;,name:&quot;glyphStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;numGlyphs&quot;},{type:&quot;Uint32&quot;,name:&quot;vertexStartIndex&quot;},{type:&quot;Uint32&quot;,name:&quot;lineStartIndex&quot;},{type:&quot;Uint32&quot;,name:&quot;lineLength&quot;},{type:&quot;Uint16&quot;,name:&quot;segment&quot;},{type:&quot;Uint16&quot;,name:&quot;lowerSize&quot;},{type:&quot;Uint16&quot;,name:&quot;upperSize&quot;},{type:&quot;Float32&quot;,name:&quot;lineOffsetX&quot;},{type:&quot;Float32&quot;,name:&quot;lineOffsetY&quot;},{type:&quot;Uint8&quot;,name:&quot;writingMode&quot;},{type:&quot;Uint8&quot;,name:&quot;placedOrientation&quot;},{type:&quot;Uint8&quot;,name:&quot;hidden&quot;},{type:&quot;Uint32&quot;,name:&quot;crossTileID&quot;},{type:&quot;Int16&quot;,name:&quot;associatedIconIndex&quot;}]),Ti([{type:&quot;Int16&quot;,name:&quot;anchorX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorY&quot;},{type:&quot;Int16&quot;,name:&quot;rightJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;centerJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;leftJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;verticalPlacedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;placedIconSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;verticalPlacedIconSymbolIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;key&quot;},{type:&quot;Uint16&quot;,name:&quot;textBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;textBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalTextBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalTextBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;iconBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;iconBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalIconBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalIconBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;featureIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;numHorizontalGlyphVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numVerticalGlyphVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numIconVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numVerticalIconVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;useRuntimeCollisionCircles&quot;},{type:&quot;Uint32&quot;,name:&quot;crossTileID&quot;},{type:&quot;Float32&quot;,name:&quot;textBoxScale&quot;},{type:&quot;Float32&quot;,components:2,name:&quot;textOffset&quot;},{type:&quot;Float32&quot;,name:&quot;collisionCircleDiameter&quot;}]),Ti([{type:&quot;Float32&quot;,name:&quot;offsetX&quot;}]),Ti([{type:&quot;Int16&quot;,name:&quot;x&quot;},{type:&quot;Int16&quot;,name:&quot;y&quot;},{type:&quot;Int16&quot;,name:&quot;tileUnitDistanceFromAnchor&quot;}]);var Us={&quot;!&quot;:&quot;\ufe15&quot;,&quot;#&quot;:&quot;\uff03&quot;,$:&quot;\uff04&quot;,&quot;%&quot;:&quot;\uff05&quot;,&quot;&amp;&quot;:&quot;\uff06&quot;,&quot;(&quot;:&quot;\ufe35&quot;,&quot;)&quot;:&quot;\ufe36&quot;,&quot;*&quot;:&quot;\uff0a&quot;,&quot;+&quot;:&quot;\uff0b&quot;,&quot;,&quot;:&quot;\ufe10&quot;,&quot;-&quot;:&quot;\ufe32&quot;,&quot;.&quot;:&quot;\u30fb&quot;,&quot;/&quot;:&quot;\uff0f&quot;,&quot;:&quot;:&quot;\ufe13&quot;,&quot;;&quot;:&quot;\ufe14&quot;,&quot;&lt;&quot;:&quot;\ufe3f&quot;,&quot;=&quot;:&quot;\uff1d&quot;,&quot;&gt;&quot;:&quot;\ufe40&quot;,&quot;?&quot;:&quot;\ufe16&quot;,&quot;@&quot;:&quot;\uff20&quot;,&quot;[&quot;:&quot;\ufe47&quot;,&quot;\\&quot;:&quot;\uff3c&quot;,&quot;]&quot;:&quot;\ufe48&quot;,&quot;^&quot;:&quot;\uff3e&quot;,_:&quot;\ufe33&quot;,&quot;`&quot;:&quot;\uff40&quot;,&quot;{&quot;:&quot;\ufe37&quot;,&quot;|&quot;:&quot;\u2015&quot;,&quot;}&quot;:&quot;\ufe38&quot;,&quot;~&quot;:&quot;\uff5e&quot;,&quot;\xa2&quot;:&quot;\uffe0&quot;,&quot;\xa3&quot;:&quot;\uffe1&quot;,&quot;\xa5&quot;:&quot;\uffe5&quot;,&quot;\xa6&quot;:&quot;\uffe4&quot;,&quot;\xac&quot;:&quot;\uffe2&quot;,&quot;\xaf&quot;:&quot;\uffe3&quot;,&quot;\u2013&quot;:&quot;\ufe32&quot;,&quot;\u2014&quot;:&quot;\ufe31&quot;,&quot;\u2018&quot;:&quot;\ufe43&quot;,&quot;\u2019&quot;:&quot;\ufe44&quot;,&quot;\u201c&quot;:&quot;\ufe41&quot;,&quot;\u201d&quot;:&quot;\ufe42&quot;,&quot;\u2026&quot;:&quot;\ufe19&quot;,&quot;\u2027&quot;:&quot;\u30fb&quot;,&quot;\u20a9&quot;:&quot;\uffe6&quot;,&quot;\u3001&quot;:&quot;\ufe11&quot;,&quot;\u3002&quot;:&quot;\ufe12&quot;,&quot;\u3008&quot;:&quot;\ufe3f&quot;,&quot;\u3009&quot;:&quot;\ufe40&quot;,&quot;\u300a&quot;:&quot;\ufe3d&quot;,&quot;\u300b&quot;:&quot;\ufe3e&quot;,&quot;\u300c&quot;:&quot;\ufe41&quot;,&quot;\u300d&quot;:&quot;\ufe42&quot;,&quot;\u300e&quot;:&quot;\ufe43&quot;,&quot;\u300f&quot;:&quot;\ufe44&quot;,&quot;\u3010&quot;:&quot;\ufe3b&quot;,&quot;\u3011&quot;:&quot;\ufe3c&quot;,&quot;\u3014&quot;:&quot;\ufe39&quot;,&quot;\u3015&quot;:&quot;\ufe3a&quot;,&quot;\u3016&quot;:&quot;\ufe17&quot;,&quot;\u3017&quot;:&quot;\ufe18&quot;,&quot;\uff01&quot;:&quot;\ufe15&quot;,&quot;\uff08&quot;:&quot;\ufe35&quot;,&quot;\uff09&quot;:&quot;\ufe36&quot;,&quot;\uff0c&quot;:&quot;\ufe10&quot;,&quot;\uff0d&quot;:&quot;\ufe32&quot;,&quot;\uff0e&quot;:&quot;\u30fb&quot;,&quot;\uff1a&quot;:&quot;\ufe13&quot;,&quot;\uff1b&quot;:&quot;\ufe14&quot;,&quot;\uff1c&quot;:&quot;\ufe3f&quot;,&quot;\uff1e&quot;:&quot;\ufe40&quot;,&quot;\uff1f&quot;:&quot;\ufe16&quot;,&quot;\uff3b&quot;:&quot;\ufe47&quot;,&quot;\uff3d&quot;:&quot;\ufe48&quot;,&quot;\uff3f&quot;:&quot;\ufe33&quot;,&quot;\uff5b&quot;:&quot;\ufe37&quot;,&quot;\uff5c&quot;:&quot;\u2015&quot;,&quot;\uff5d&quot;:&quot;\ufe38&quot;,&quot;\uff5f&quot;:&quot;\ufe35&quot;,&quot;\uff60&quot;:&quot;\ufe36&quot;,&quot;\uff61&quot;:&quot;\ufe12&quot;,&quot;\uff62&quot;:&quot;\ufe41&quot;,&quot;\uff63&quot;:&quot;\ufe42&quot;},Vs=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1&lt;&lt;s)-1,c=l&gt;&gt;1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&amp;(1&lt;&lt;-u)-1,p&gt;&gt;=-u,u+=s;u&gt;0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&amp;(1&lt;&lt;-u)-1,a&gt;&gt;=-u,u+=n;u&gt;0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},qs=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1&lt;&lt;c)-1,f=u&gt;&gt;1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e&lt;0||0===e&amp;&amp;1/e&lt;0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))&lt;1&amp;&amp;(o--,l*=2),(e+=o+f&gt;=1?h/l:h*Math.pow(2,1-f))*l&gt;=2&amp;&amp;(o++,l/=2),o+f&gt;=u?(s=0,o=u):o+f&gt;=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i&gt;=8;t[r+p]=255&amp;s,p+=d,s/=256,i-=8);for(o=o&lt;&lt;i|s,c+=i;c&gt;0;t[r+p]=255&amp;o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g},Hs=Gs;function Gs(t){this.buf=ArrayBuffer.isView&amp;&amp;ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Gs.Varint=0,Gs.Fixed64=1,Gs.Bytes=2,Gs.Fixed32=5;var Ys=&quot;undefined&quot;==typeof TextDecoder?null:new TextDecoder(&quot;utf8&quot;);function Ws(t){return t.type===Gs.Bytes?t.readVarint()+t.pos:t.pos+1}function Xs(t,e,r){return r?4294967296*e+(t&gt;&gt;&gt;0):4294967296*(e&gt;&gt;&gt;0)+(t&gt;&gt;&gt;0)}function Zs(t,e,r){var n=e&lt;=16383?1:e&lt;=2097151?2:e&lt;=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i&gt;=t;i--)r.buf[i+n]=r.buf[i]}function Js(t,e){for(var r=0;r&lt;t.length;r++)e.writeVarint(t[r])}function Ks(t,e){for(var r=0;r&lt;t.length;r++)e.writeSVarint(t[r])}function Qs(t,e){for(var r=0;r&lt;t.length;r++)e.writeFloat(t[r])}function $s(t,e){for(var r=0;r&lt;t.length;r++)e.writeDouble(t[r])}function tl(t,e){for(var r=0;r&lt;t.length;r++)e.writeBoolean(t[r])}function el(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed32(t[r])}function rl(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed32(t[r])}function nl(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed64(t[r])}function il(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed64(t[r])}function al(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+16777216*t[e+3]}function ol(t,e,r){t[r]=e,t[r+1]=e&gt;&gt;&gt;8,t[r+2]=e&gt;&gt;&gt;16,t[r+3]=e&gt;&gt;&gt;24}function sl(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+(t[e+3]&lt;&lt;24)}function ll(t,e,r){1===t&amp;&amp;r.readMessage(cl,e)}function cl(t,e,r){if(3===t){var n=r.readMessage(ul,{}),i=n.width,a=n.height,o=n.left,s=n.top,l=n.advance;e.push({id:n.id,bitmap:new ho({width:i+6,height:a+6},n.bitmap),metrics:{width:i,height:a,left:o,top:s,advance:l}})}}function ul(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&amp;&amp;(e.advance=r.readVarint())}function fl(t){for(var e=0,r=0,n=0,i=t;n&lt;i.length;n+=1){var a=i[n];e+=a.w*a.h,r=Math.max(r,a.w)}t.sort((function(t,e){return e.h-t.h}));for(var o=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}],s=0,l=0,c=0,u=t;c&lt;u.length;c+=1)for(var f=u[c],h=o.length-1;h&gt;=0;h--){var p=o[h];if(!(f.w&gt;p.w||f.h&gt;p.h)){if(f.x=p.x,f.y=p.y,l=Math.max(l,f.y+f.h),s=Math.max(s,f.x+f.w),f.w===p.w&amp;&amp;f.h===p.h){var d=o.pop();h&lt;o.length&amp;&amp;(o[h]=d)}else f.h===p.h?(p.x+=f.w,p.w-=f.w):f.w===p.w?(p.y+=f.h,p.h-=f.h):(o.push({x:p.x+f.w,y:p.y,w:p.w-f.w,h:f.h}),p.y+=f.h,p.h-=f.h);break}}return{w:s,h:l,fill:e/(s*l)||0}}Gs.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos&lt;r;){var n=this.readVarint(),i=n&gt;&gt;3,a=this.pos;this.type=7&amp;n,t(i,e,this),this.pos===a&amp;&amp;this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=al(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=sl(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=al(this.buf,this.pos)+4294967296*al(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=al(this.buf,this.pos)+4294967296*sl(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=Vs(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Vs(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return e=127&amp;(r=n[this.pos++]),r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;7,r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;14,r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;21,r&lt;128?e:function(t,e,r){var n,i,a=r.buf;if(n=(112&amp;(i=a[r.pos++]))&gt;&gt;4,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;3,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;10,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;17,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;24,i&lt;128)return Xs(t,n,e);if(n|=(1&amp;(i=a[r.pos++]))&lt;&lt;31,i&lt;128)return Xs(t,n,e);throw new Error(&quot;Expected varint not more than 10 bytes&quot;)}(e|=(15&amp;(r=n[this.pos]))&lt;&lt;28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e&gt;=12&amp;&amp;Ys?function(t,e,r){return Ys.decode(t.subarray(e,r))}(this.buf,e,t):function(t,e,r){for(var n=&quot;&quot;,i=e;i&lt;r;){var a,o,s,l=t[i],c=null,u=l&gt;239?4:l&gt;223?3:l&gt;191?2:1;if(i+u&gt;r)break;1===u?l&lt;128&amp;&amp;(c=l):2===u?128==(192&amp;(a=t[i+1]))&amp;&amp;(c=(31&amp;l)&lt;&lt;6|63&amp;a)&lt;=127&amp;&amp;(c=null):3===u?(o=t[i+2],128==(192&amp;(a=t[i+1]))&amp;&amp;128==(192&amp;o)&amp;&amp;((c=(15&amp;l)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;o)&lt;=2047||c&gt;=55296&amp;&amp;c&lt;=57343)&amp;&amp;(c=null)):4===u&amp;&amp;(o=t[i+2],s=t[i+3],128==(192&amp;(a=t[i+1]))&amp;&amp;128==(192&amp;o)&amp;&amp;128==(192&amp;s)&amp;&amp;((c=(15&amp;l)&lt;&lt;18|(63&amp;a)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;s)&lt;=65535||c&gt;=1114112)&amp;&amp;(c=null)),null===c?(c=65533,u=1):c&gt;65535&amp;&amp;(c-=65536,n+=String.fromCharCode(c&gt;&gt;&gt;10&amp;1023|55296),c=56320|1023&amp;c),n+=String.fromCharCode(c),i+=u}return n}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Gs.Bytes)return t.push(this.readVarint(e));var r=Ws(this);for(t=t||[];this.pos&lt;r;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==Gs.Bytes)return t.push(this.readSVarint());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==Gs.Bytes)return t.push(this.readBoolean());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==Gs.Bytes)return t.push(this.readFloat());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==Gs.Bytes)return t.push(this.readDouble());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==Gs.Bytes)return t.push(this.readFixed32());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==Gs.Bytes)return t.push(this.readSFixed32());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==Gs.Bytes)return t.push(this.readFixed64());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==Gs.Bytes)return t.push(this.readSFixed64());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&amp;t;if(e===Gs.Varint)for(;this.buf[this.pos++]&gt;127;);else if(e===Gs.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Gs.Fixed32)this.pos+=4;else{if(e!==Gs.Fixed64)throw new Error(&quot;Unimplemented type: &quot;+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t&lt;&lt;3|e)},realloc:function(t){for(var e=this.length||16;e&lt;this.pos+t;)e*=2;if(e!==this.length){var r=new Uint8Array(e);r.set(this.buf),this.buf=r,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),ol(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),ol(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),ol(this.buf,-1&amp;t,this.pos),ol(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),ol(this.buf,-1&amp;t,this.pos),ol(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)&gt;268435455||t&lt;0?function(t,e){var r,n;if(t&gt;=0?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,n=n+1|0)),t&gt;=0x10000000000000000||t&lt;-0x10000000000000000)throw new Error(&quot;Given varint doesn't fit into 10 bytes&quot;);e.realloc(10),function(t,e,r){r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,r.buf[r.pos]=127&amp;(t&gt;&gt;&gt;=7)}(r,0,e),function(t,e){var r=(7&amp;t)&lt;&lt;4;e.buf[e.pos++]|=r|((t&gt;&gt;&gt;=3)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t)))))}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&amp;t|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=t&gt;&gt;&gt;7&amp;127))))},writeSVarint:function(t){this.writeVarint(t&lt;0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,r){for(var n,i,a=0;a&lt;e.length;a++){if((n=e.charCodeAt(a))&gt;55295&amp;&amp;n&lt;57344){if(!i){n&gt;56319||a+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n&lt;56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296&lt;&lt;10|n-56320|65536,i=null}else i&amp;&amp;(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n&lt;128?t[r++]=n:(n&lt;2048?t[r++]=n&gt;&gt;6|192:(n&lt;65536?t[r++]=n&gt;&gt;12|224:(t[r++]=n&gt;&gt;18|240,t[r++]=n&gt;&gt;12&amp;63|128),t[r++]=n&gt;&gt;6&amp;63|128),t[r++]=63&amp;n|128)}return r}(this.buf,t,this.pos);var r=this.pos-e;r&gt;=128&amp;&amp;Zs(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),qs(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),qs(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r&lt;e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var n=this.pos-r;n&gt;=128&amp;&amp;Zs(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,Gs.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,Js,e)},writePackedSVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,Ks,e)},writePackedBoolean:function(t,e){e.length&amp;&amp;this.writeMessage(t,tl,e)},writePackedFloat:function(t,e){e.length&amp;&amp;this.writeMessage(t,Qs,e)},writePackedDouble:function(t,e){e.length&amp;&amp;this.writeMessage(t,$s,e)},writePackedFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,el,e)},writePackedSFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,rl,e)},writePackedFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,nl,e)},writePackedSFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,il,e)},writeBytesField:function(t,e){this.writeTag(t,Gs.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Gs.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Gs.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Gs.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Gs.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Gs.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Gs.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Gs.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Gs.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Gs.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var hl=function(t,e){var r=e.pixelRatio,n=e.version,i=e.stretchX,a=e.stretchY,o=e.content;this.paddedRect=t,this.pixelRatio=r,this.stretchX=i,this.stretchY=a,this.content=o,this.version=n},pl={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};pl.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},pl.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},pl.tlbr.get=function(){return this.tl.concat(this.br)},pl.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(hl.prototype,pl);var dl=function(t,e){var r={},n={};this.haveRenderCallbacks=[];var i=[];this.addImages(t,r,i),this.addImages(e,n,i);var a=fl(i),o=new po({width:a.w||1,height:a.h||1});for(var s in t){var l=t[s],c=r[s].paddedRect;po.copy(l.data,o,{x:0,y:0},{x:c.x+1,y:c.y+1},l.data)}for(var u in e){var f=e[u],h=n[u].paddedRect,p=h.x+1,d=h.y+1,g=f.data.width,m=f.data.height;po.copy(f.data,o,{x:0,y:0},{x:p,y:d},f.data),po.copy(f.data,o,{x:0,y:m-1},{x:p,y:d-1},{width:g,height:1}),po.copy(f.data,o,{x:0,y:0},{x:p,y:d+m},{width:g,height:1}),po.copy(f.data,o,{x:g-1,y:0},{x:p-1,y:d},{width:1,height:m}),po.copy(f.data,o,{x:0,y:0},{x:p+g,y:d},{width:1,height:m})}this.image=o,this.iconPositions=r,this.patternPositions=n};dl.prototype.addImages=function(t,e,r){for(var n in t){var i=t[n],a={x:0,y:0,w:i.data.width+2,h:i.data.height+2};r.push(a),e[n]=new hl(a,i),i.hasRenderCallback&amp;&amp;this.haveRenderCallbacks.push(n)}},dl.prototype.patchUpdatedImages=function(t,e){for(var r in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[r],t.getImage(r),e),this.patchUpdatedImage(this.patternPositions[r],t.getImage(r),e)},dl.prototype.patchUpdatedImage=function(t,e,r){if(t&amp;&amp;e&amp;&amp;t.version!==e.version){t.version=e.version;var n=t.tl;r.update(e.data,void 0,{x:n[0],y:n[1]})}},Dn(&quot;ImagePosition&quot;,hl),Dn(&quot;ImageAtlas&quot;,dl);var gl={horizontal:1,vertical:2,horizontalOnly:3},ml=function(){this.scale=1,this.fontStack=&quot;&quot;,this.imageName=null};ml.forText=function(t,e){var r=new ml;return r.scale=t||1,r.fontStack=e,r},ml.forImage=function(t){var e=new ml;return e.imageName=t,e};var vl=function(){this.text=&quot;&quot;,this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function yl(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g){var m,v=vl.fromFeature(t,i);f===gl.vertical&amp;&amp;v.verticalizePunctuation();var y=ni.processBidirectionalText,x=ni.processStyledBidirectionalText;if(y&amp;&amp;1===v.sections.length){m=[];for(var b=0,_=y(v.toString(),Ml(v,c,a,e,n,p,d));b&lt;_.length;b+=1){var w=_[b],T=new vl;T.text=w,T.sections=v.sections;for(var k=0;k&lt;w.length;k++)T.sectionIndex.push(0);m.push(T)}}else if(x){m=[];for(var M=0,A=x(v.text,v.sectionIndex,Ml(v,c,a,e,n,p,d));M&lt;A.length;M+=1){var S=A[M],E=new vl;E.text=S[0],E.sectionIndex=S[1],E.sections=v.sections,m.push(E)}}else m=function(t,e){for(var r=[],n=t.text,i=0,a=0,o=e;a&lt;o.length;a+=1){var s=o[a];r.push(t.substring(i,s)),i=s}return i&lt;n.length&amp;&amp;r.push(t.substring(i,n.length)),r}(v,Ml(v,c,a,e,n,p,d));var C=[],L={positionedLines:C,text:v.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:f,iconsInText:!1,verticalizable:!1};return function(t,e,r,n,i,a,o,s,l,c,u,f){for(var h=0,p=-17,d=0,g=0,m=&quot;right&quot;===s?1:&quot;left&quot;===s?0:.5,v=0,y=0,x=i;y&lt;x.length;y+=1){var b=x[y];b.trim();var _=b.getMaxScale(),w=24*(_-1),T={positionedGlyphs:[],lineOffset:0};t.positionedLines[v]=T;var k=T.positionedGlyphs,M=0;if(b.length()){for(var A=0;A&lt;b.length();A++){var S=b.getSection(A),E=b.getSectionIndex(A),C=b.getCharCode(A),L=0,I=null,P=null,z=null,O=24,D=!(l===gl.horizontal||!u&amp;&amp;!Hn(C)||u&amp;&amp;(xl[C]||(H=C,Vn.Arabic(H)||Vn[&quot;Arabic Supplement&quot;](H)||Vn[&quot;Arabic Extended-A&quot;](H)||Vn[&quot;Arabic Presentation Forms-A&quot;](H)||Vn[&quot;Arabic Presentation Forms-B&quot;](H))));if(S.imageName){var R=n[S.imageName];if(!R)continue;z=S.imageName,t.iconsInText=t.iconsInText||!0,P=R.paddedRect;var F=R.displaySize;S.scale=24*S.scale/f,L=w+(24-F[1]*S.scale),O=(I={width:F[0],height:F[1],left:1,top:-3,advance:D?F[1]:F[0]}).advance;var B=D?F[0]*S.scale-24*_:F[1]*S.scale-24*_;B&gt;0&amp;&amp;B&gt;M&amp;&amp;(M=B)}else{var N=r[S.fontStack],j=N&amp;&amp;N[C];if(j&amp;&amp;j.rect)P=j.rect,I=j.metrics;else{var U=e[S.fontStack],V=U&amp;&amp;U[C];if(!V)continue;I=V.metrics}L=24*(_-S.scale)}D?(t.verticalizable=!0,k.push({glyph:C,imageName:z,x:h,y:p+L,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:I,rect:P}),h+=O*S.scale+c):(k.push({glyph:C,imageName:z,x:h,y:p+L,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:I,rect:P}),h+=I.advance*S.scale+c)}0!==k.length&amp;&amp;(d=Math.max(h-c,d),Sl(k,0,k.length-1,m,M)),h=0;var q=a*_+M;T.lineOffset=Math.max(M,w),p+=q,g=Math.max(q,g),++v}else p+=a,++v}var H,G=p- -17,Y=Al(o),W=Y.horizontalAlign,X=Y.verticalAlign;(function(t,e,r,n,i,a,o,s,l){var c,u=(e-r)*i;c=a!==o?-s*n- -17:(-n*l+.5)*o;for(var f=0,h=t;f&lt;h.length;f+=1)for(var p=0,d=h[f].positionedGlyphs;p&lt;d.length;p+=1){var g=d[p];g.x+=u,g.y+=c}})(t.positionedLines,m,W,X,d,g,a,G,i.length),t.top+=-X*G,t.bottom=t.top+G,t.left+=-W*d,t.right=t.left+d}(L,e,r,n,m,o,s,l,f,c,h,g),!function(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(0!==r[e].positionedGlyphs.length)return!1;return!0}(C)&amp;&amp;L}vl.fromFeature=function(t,e){for(var r=new vl,n=0;n&lt;t.sections.length;n++){var i=t.sections[n];i.image?r.addImageSection(i):r.addTextSection(i,e)}return r},vl.prototype.length=function(){return this.text.length},vl.prototype.getSection=function(t){return this.sections[this.sectionIndex[t]]},vl.prototype.getSectionIndex=function(t){return this.sectionIndex[t]},vl.prototype.getCharCode=function(t){return this.text.charCodeAt(t)},vl.prototype.verticalizePunctuation=function(){this.text=function(t){for(var e=&quot;&quot;,r=0;r&lt;t.length;r++){var n=t.charCodeAt(r+1)||null,i=t.charCodeAt(r-1)||null;e+=n&amp;&amp;Gn(n)&amp;&amp;!Us[t[r+1]]||i&amp;&amp;Gn(i)&amp;&amp;!Us[t[r-1]]||!Us[t[r]]?t[r]:Us[t[r]]}return e}(this.text)},vl.prototype.trim=function(){for(var t=0,e=0;e&lt;this.text.length&amp;&amp;xl[this.text.charCodeAt(e)];e++)t++;for(var r=this.text.length,n=this.text.length-1;n&gt;=0&amp;&amp;n&gt;=t&amp;&amp;xl[this.text.charCodeAt(n)];n--)r--;this.text=this.text.substring(t,r),this.sectionIndex=this.sectionIndex.slice(t,r)},vl.prototype.substring=function(t,e){var r=new vl;return r.text=this.text.substring(t,e),r.sectionIndex=this.sectionIndex.slice(t,e),r.sections=this.sections,r},vl.prototype.toString=function(){return this.text},vl.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,r){return Math.max(e,t.sections[r].scale)}),0)},vl.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(ml.forText(t.scale,t.fontStack||e));for(var r=this.sections.length-1,n=0;n&lt;t.text.length;++n)this.sectionIndex.push(r)},vl.prototype.addImageSection=function(t){var e=t.image?t.image.name:&quot;&quot;;if(0!==e.length){var r=this.getNextImageSectionCharCode();r?(this.text+=String.fromCharCode(r),this.sections.push(ml.forImage(e)),this.sectionIndex.push(this.sections.length-1)):_(&quot;Reached maximum number of images 6401&quot;)}else _(&quot;Can't add FormattedSection with an empty image.&quot;)},vl.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID&gt;=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var xl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},bl={};function _l(t,e,r,n,i,a){if(e.imageName){var o=n[e.imageName];return o?o.displaySize[0]*e.scale*24/a+i:0}var s=r[e.fontStack],l=s&amp;&amp;s[t];return l?l.metrics.advance*e.scale+i:0}function wl(t,e,r,n){var i=Math.pow(t-e,2);return n?t&lt;e?i/2:2*i:i+Math.abs(r)*r}function Tl(t,e,r){var n=0;return 10===t&amp;&amp;(n-=1e4),r&amp;&amp;(n+=150),40!==t&amp;&amp;65288!==t||(n+=50),41!==e&amp;&amp;65289!==e||(n+=50),n}function kl(t,e,r,n,i,a){for(var o=null,s=wl(e,r,i,a),l=0,c=n;l&lt;c.length;l+=1){var u=c[l],f=wl(e-u.x,r,i,a)+u.badness;f&lt;=s&amp;&amp;(o=u,s=f)}return{index:t,x:e,priorBreak:o,badness:s}}function Ml(t,e,r,n,i,a,o){if(&quot;point&quot;!==a)return[];if(!t)return[];for(var s,l=[],c=function(t,e,r,n,i,a){for(var o=0,s=0;s&lt;t.length();s++){var l=t.getSection(s);o+=_l(t.getCharCode(s),l,n,i,e,a)}return o/Math.max(1,Math.ceil(o/r))}(t,e,r,n,i,o),u=t.text.indexOf(&quot;\u200b&quot;)&gt;=0,f=0,h=0;h&lt;t.length();h++){var p=t.getSection(h),d=t.getCharCode(h);if(xl[d]||(f+=_l(d,p,n,i,e,o)),h&lt;t.length()-1){var g=!((s=d)&lt;11904||!(Vn[&quot;Bopomofo Extended&quot;](s)||Vn.Bopomofo(s)||Vn[&quot;CJK Compatibility Forms&quot;](s)||Vn[&quot;CJK Compatibility Ideographs&quot;](s)||Vn[&quot;CJK Compatibility&quot;](s)||Vn[&quot;CJK Radicals Supplement&quot;](s)||Vn[&quot;CJK Strokes&quot;](s)||Vn[&quot;CJK Symbols and Punctuation&quot;](s)||Vn[&quot;CJK Unified Ideographs Extension A&quot;](s)||Vn[&quot;CJK Unified Ideographs&quot;](s)||Vn[&quot;Enclosed CJK Letters and Months&quot;](s)||Vn[&quot;Halfwidth and Fullwidth Forms&quot;](s)||Vn.Hiragana(s)||Vn[&quot;Ideographic Description Characters&quot;](s)||Vn[&quot;Kangxi Radicals&quot;](s)||Vn[&quot;Katakana Phonetic Extensions&quot;](s)||Vn.Katakana(s)||Vn[&quot;Vertical Forms&quot;](s)||Vn[&quot;Yi Radicals&quot;](s)||Vn[&quot;Yi Syllables&quot;](s)));(bl[d]||g||p.imageName)&amp;&amp;l.push(kl(h+1,f,c,l,Tl(d,t.getCharCode(h+1),g&amp;&amp;u),!1))}}return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(kl(t.length(),f,c,l,0,!0))}function Al(t){var e=.5,r=.5;switch(t){case&quot;right&quot;:case&quot;top-right&quot;:case&quot;bottom-right&quot;:e=1;break;case&quot;left&quot;:case&quot;top-left&quot;:case&quot;bottom-left&quot;:e=0}switch(t){case&quot;bottom&quot;:case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:r=1;break;case&quot;top&quot;:case&quot;top-right&quot;:case&quot;top-left&quot;:r=0}return{horizontalAlign:e,verticalAlign:r}}function Sl(t,e,r,n,i){if(n||i)for(var a=t[r],o=(t[r].x+a.metrics.advance*a.scale)*n,s=e;s&lt;=r;s++)t[s].x-=o,t[s].y+=i}function El(t,e,r,n,i,a){var o,s=t.image;if(s.content){var l=s.content,c=s.pixelRatio||1;o=[l[0]/c,l[1]/c,s.displaySize[0]-l[2]/c,s.displaySize[1]-l[3]/c]}var u,f,h,p,d=e.left*a,g=e.right*a;&quot;width&quot;===r||&quot;both&quot;===r?(p=i[0]+d-n[3],f=i[0]+g+n[1]):f=(p=i[0]+(d+g-s.displaySize[0])/2)+s.displaySize[0];var m=e.top*a,v=e.bottom*a;return&quot;height&quot;===r||&quot;both&quot;===r?(u=i[1]+m-n[0],h=i[1]+v+n[2]):h=(u=i[1]+(m+v-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:u,right:f,bottom:h,left:p,collisionPadding:o}}bl[10]=!0,bl[32]=!0,bl[38]=!0,bl[40]=!0,bl[41]=!0,bl[43]=!0,bl[45]=!0,bl[47]=!0,bl[173]=!0,bl[183]=!0,bl[8203]=!0,bl[8208]=!0,bl[8211]=!0,bl[8231]=!0;var Cl=function(t){function e(e,r,n,i){t.call(this,e,r),this.angle=n,void 0!==i&amp;&amp;(this.segment=i)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.clone=function(){return new e(this.x,this.y,this.angle,this.segment)},e}(i);function Ll(t,e){var r=e.expression;if(&quot;constant&quot;===r.kind)return{kind:&quot;constant&quot;,layoutSize:r.evaluate(new ii(t+1))};if(&quot;source&quot;===r.kind)return{kind:&quot;source&quot;};for(var n=r.zoomStops,i=r.interpolationType,a=0;a&lt;n.length&amp;&amp;n[a]&lt;=t;)a++;for(var o=a=Math.max(0,a-1);o&lt;n.length&amp;&amp;n[o]&lt;t+1;)o++;o=Math.min(n.length-1,o);var s=n[a],l=n[o];return&quot;composite&quot;===r.kind?{kind:&quot;composite&quot;,minZoom:s,maxZoom:l,interpolationType:i}:{kind:&quot;camera&quot;,minZoom:s,maxZoom:l,minSize:r.evaluate(new ii(s)),maxSize:r.evaluate(new ii(l)),interpolationType:i}}function Il(t,e,r){var n=e.uSize,i=r.lowerSize;return&quot;source&quot;===t.kind?i/128:&quot;composite&quot;===t.kind?Ue(i/128,r.upperSize/128,e.uSizeT):n}function Pl(t,e){var r=0,n=0;if(&quot;constant&quot;===t.kind)n=t.layoutSize;else if(&quot;source&quot;!==t.kind){var i=t.interpolationType,a=i?l(rr.interpolationFactor(i,e,t.minZoom,t.maxZoom),0,1):0;&quot;camera&quot;===t.kind?n=Ue(t.minSize,t.maxSize,a):r=a}return{uSizeT:r,uSize:n}}Dn(&quot;Anchor&quot;,Cl);var zl=Object.freeze({__proto__:null,getSizeData:Ll,evaluateSizeForFeature:Il,evaluateSizeForZoom:Pl,SIZE_PACK_FACTOR:128});function Ol(t,e,r,n,i){if(void 0===e.segment)return!0;for(var a=e,o=e.segment+1,s=0;s&gt;-r/2;){if(--o&lt;0)return!1;s-=t[o].dist(a),a=t[o]}s+=t[o].dist(t[o+1]),o++;for(var l=[],c=0;s&lt;r/2;){var u=t[o],f=t[o+1];if(!f)return!1;var h=t[o-1].angleTo(u)-u.angleTo(f);for(h=Math.abs((h+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:h}),c+=h;s-l[0].distance&gt;n;)c-=l.shift().angleDelta;if(c&gt;i)return!1;o++,s+=u.dist(f)}return!0}function Dl(t){for(var e=0,r=0;r&lt;t.length-1;r++)e+=t[r].dist(t[r+1]);return e}function Rl(t,e,r){return t?.6*e*r:0}function Fl(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function Bl(t,e,r,n,i,a){for(var o=Rl(r,i,a),s=Fl(r,n)*a,l=0,c=Dl(t)/2,u=0;u&lt;t.length-1;u++){var f=t[u],h=t[u+1],p=f.dist(h);if(l+p&gt;c){var d=(c-l)/p,g=Ue(f.x,h.x,d),m=Ue(f.y,h.y,d),v=new Cl(g,m,h.angleTo(f),u);return v._round(),!o||Ol(t,v,s,o,e)?v:void 0}l+=p}}function Nl(t,e,r,n,i,a,o,s,l){var c=Rl(n,a,o),u=Fl(n,i),f=u*o,h=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-f&lt;e/4&amp;&amp;(e=f+e/4),function t(e,r,n,i,a,o,s,l,c){for(var u=o/2,f=Dl(e),h=0,p=r-n,d=[],g=0;g&lt;e.length-1;g++){for(var m=e[g],v=e[g+1],y=m.dist(v),x=v.angleTo(m);p+n&lt;h+y;){var b=((p+=n)-h)/y,_=Ue(m.x,v.x,b),w=Ue(m.y,v.y,b);if(_&gt;=0&amp;&amp;_&lt;c&amp;&amp;w&gt;=0&amp;&amp;w&lt;c&amp;&amp;p-u&gt;=0&amp;&amp;p+u&lt;=f){var T=new Cl(_,w,x,g);T._round(),i&amp;&amp;!Ol(e,T,o,i,a)||d.push(T)}}h+=y}return l||d.length||s||(d=t(e,h/2,n,i,a,o,s,!0,c)),d}(t,h?e/2*s%e:(u/2+2*a)*o*s%e,e,c,r,f,h,!1,l)}function jl(t,e,r,n,a){for(var o=[],s=0;s&lt;t.length;s++)for(var l=t[s],c=void 0,u=0;u&lt;l.length-1;u++){var f=l[u],h=l[u+1];f.x&lt;e&amp;&amp;h.x&lt;e||(f.x&lt;e?f=new i(e,f.y+(e-f.x)/(h.x-f.x)*(h.y-f.y))._round():h.x&lt;e&amp;&amp;(h=new i(e,f.y+(e-f.x)/(h.x-f.x)*(h.y-f.y))._round()),f.y&lt;r&amp;&amp;h.y&lt;r||(f.y&lt;r?f=new i(f.x+(r-f.y)/(h.y-f.y)*(h.x-f.x),r)._round():h.y&lt;r&amp;&amp;(h=new i(f.x+(r-f.y)/(h.y-f.y)*(h.x-f.x),r)._round()),f.x&gt;=n&amp;&amp;h.x&gt;=n||(f.x&gt;=n?f=new i(n,f.y+(n-f.x)/(h.x-f.x)*(h.y-f.y))._round():h.x&gt;=n&amp;&amp;(h=new i(n,f.y+(n-f.x)/(h.x-f.x)*(h.y-f.y))._round()),f.y&gt;=a&amp;&amp;h.y&gt;=a||(f.y&gt;=a?f=new i(f.x+(a-f.y)/(h.y-f.y)*(h.x-f.x),a)._round():h.y&gt;=a&amp;&amp;(h=new i(f.x+(a-f.y)/(h.y-f.y)*(h.x-f.x),a)._round()),c&amp;&amp;f.equals(c[c.length-1])||o.push(c=[f]),c.push(h)))))}return o}function Ul(t,e,r,n){var a=[],o=t.image,s=o.pixelRatio,l=o.paddedRect.w-2,c=o.paddedRect.h-2,u=t.right-t.left,f=t.bottom-t.top,h=o.stretchX||[[0,l]],p=o.stretchY||[[0,c]],d=function(t,e){return t+e[1]-e[0]},g=h.reduce(d,0),m=p.reduce(d,0),v=l-g,y=c-m,x=0,b=g,_=0,w=m,T=0,k=v,M=0,A=y;if(o.content&amp;&amp;n){var S=o.content;x=Vl(h,0,S[0]),_=Vl(p,0,S[1]),b=Vl(h,S[0],S[2]),w=Vl(p,S[1],S[3]),T=S[0]-x,M=S[1]-_,k=S[2]-S[0]-b,A=S[3]-S[1]-w}var E=function(n,a,l,c){var h=Hl(n.stretch-x,b,u,t.left),p=Gl(n.fixed-T,k,n.stretch,g),d=Hl(a.stretch-_,w,f,t.top),v=Gl(a.fixed-M,A,a.stretch,m),y=Hl(l.stretch-x,b,u,t.left),S=Gl(l.fixed-T,k,l.stretch,g),E=Hl(c.stretch-_,w,f,t.top),C=Gl(c.fixed-M,A,c.stretch,m),L=new i(h,d),I=new i(y,d),P=new i(y,E),z=new i(h,E),O=new i(p/s,v/s),D=new i(S/s,C/s),R=e*Math.PI/180;if(R){var F=Math.sin(R),B=Math.cos(R),N=[B,-F,F,B];L._matMult(N),I._matMult(N),z._matMult(N),P._matMult(N)}var j=n.stretch+n.fixed,U=a.stretch+a.fixed;return{tl:L,tr:I,bl:z,br:P,tex:{x:o.paddedRect.x+1+j,y:o.paddedRect.y+1+U,w:l.stretch+l.fixed-j,h:c.stretch+c.fixed-U},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:O,pixelOffsetBR:D,minFontScaleX:k/s/u,minFontScaleY:A/s/f,isSDF:r}};if(n&amp;&amp;(o.stretchX||o.stretchY))for(var C=ql(h,v,g),L=ql(p,y,m),I=0;I&lt;C.length-1;I++)for(var P=C[I],z=C[I+1],O=0;O&lt;L.length-1;O++)a.push(E(P,L[O],z,L[O+1]));else a.push(E({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return a}function Vl(t,e,r){for(var n=0,i=0,a=t;i&lt;a.length;i+=1){var o=a[i];n+=Math.max(e,Math.min(r,o[1]))-Math.max(e,Math.min(r,o[0]))}return n}function ql(t,e,r){for(var n=[{fixed:-1,stretch:0}],i=0,a=t;i&lt;a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=n[n.length-1];n.push({fixed:s-c.stretch,stretch:c.stretch}),n.push({fixed:s-c.stretch,stretch:c.stretch+(l-s)})}return n.push({fixed:e+1,stretch:r}),n}function Hl(t,e,r,n){return t/e*r+n}function Gl(t,e,r,n){return t-e*r/n}var Yl=function(t,e,r,n,a,o,s,l,c,u){if(this.boxStartIndex=t.length,c){var f=o.top,h=o.bottom,p=o.collisionPadding;p&amp;&amp;(f-=p[1],h+=p[3]);var d=h-f;d&gt;0&amp;&amp;(d=Math.max(10,d),this.circleDiameter=d)}else{var g=o.top*s-l,m=o.bottom*s+l,v=o.left*s-l,y=o.right*s+l,x=o.collisionPadding;if(x&amp;&amp;(v-=x[0]*s,g-=x[1]*s,y+=x[2]*s,m+=x[3]*s),u){var b=new i(v,g),_=new i(y,g),w=new i(v,m),T=new i(y,m),k=u*Math.PI/180;b._rotate(k),_._rotate(k),w._rotate(k),T._rotate(k),v=Math.min(b.x,_.x,w.x,T.x),y=Math.max(b.x,_.x,w.x,T.x),g=Math.min(b.y,_.y,w.y,T.y),m=Math.max(b.y,_.y,w.y,T.y)}t.emplaceBack(e.x,e.y,v,g,y,m,r,n,a)}this.boxEndIndex=t.length},Wl=function(t,e){if(void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e=Xl),this.data=t,this.length=this.data.length,this.compare=e,this.length&gt;0)for(var r=(this.length&gt;&gt;1)-1;r&gt;=0;r--)this._down(r)};function Xl(t,e){return t&lt;e?-1:t&gt;e?1:0}function Zl(t,e,r){void 0===e&amp;&amp;(e=1),void 0===r&amp;&amp;(r=!1);for(var n=1/0,a=1/0,o=-1/0,s=-1/0,l=t[0],c=0;c&lt;l.length;c++){var u=l[c];(!c||u.x&lt;n)&amp;&amp;(n=u.x),(!c||u.y&lt;a)&amp;&amp;(a=u.y),(!c||u.x&gt;o)&amp;&amp;(o=u.x),(!c||u.y&gt;s)&amp;&amp;(s=u.y)}var f=Math.min(o-n,s-a),h=f/2,p=new Wl([],Jl);if(0===f)return new i(n,a);for(var d=n;d&lt;o;d+=f)for(var g=a;g&lt;s;g+=f)p.push(new Kl(d+h,g+h,h,t));for(var m=function(t){for(var e=0,r=0,n=0,i=t[0],a=0,o=i.length,s=o-1;a&lt;o;s=a++){var l=i[a],c=i[s],u=l.x*c.y-c.x*l.y;r+=(l.x+c.x)*u,n+=(l.y+c.y)*u,e+=3*u}return new Kl(r/e,n/e,0,t)}(t),v=p.length;p.length;){var y=p.pop();(y.d&gt;m.d||!m.d)&amp;&amp;(m=y,r&amp;&amp;console.log(&quot;found best %d after %d probes&quot;,Math.round(1e4*y.d)/1e4,v)),y.max-m.d&lt;=e||(p.push(new Kl(y.p.x-(h=y.h/2),y.p.y-h,h,t)),p.push(new Kl(y.p.x+h,y.p.y-h,h,t)),p.push(new Kl(y.p.x-h,y.p.y+h,h,t)),p.push(new Kl(y.p.x+h,y.p.y+h,h,t)),v+=4)}return r&amp;&amp;(console.log(&quot;num probes: &quot;+v),console.log(&quot;best distance: &quot;+m.d)),m.p}function Jl(t,e){return e.max-t.max}function Kl(t,e,r,n){this.p=new i(t,e),this.h=r,this.d=function(t,e){for(var r=!1,n=1/0,i=0;i&lt;e.length;i++)for(var a=e[i],o=0,s=a.length,l=s-1;o&lt;s;l=o++){var c=a[o],u=a[l];c.y&gt;t.y!=u.y&gt;t.y&amp;&amp;t.x&lt;(u.x-c.x)*(t.y-c.y)/(u.y-c.y)+c.x&amp;&amp;(r=!r),n=Math.min(n,Ga(t,c,u))}return(r?1:-1)*Math.sqrt(n)}(this.p,n),this.max=this.d+this.h*Math.SQRT2}Wl.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},Wl.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length&gt;0&amp;&amp;(this.data[0]=e,this._down(0)),t}},Wl.prototype.peek=function(){return this.data[0]},Wl.prototype._up=function(t){for(var e=this.data,r=this.compare,n=e[t];t&gt;0;){var i=t-1&gt;&gt;1,a=e[i];if(r(n,a)&gt;=0)break;e[t]=a,t=i}e[t]=n},Wl.prototype._down=function(t){for(var e=this.data,r=this.compare,n=this.length&gt;&gt;1,i=e[t];t&lt;n;){var a=1+(t&lt;&lt;1),o=e[a],s=a+1;if(s&lt;this.length&amp;&amp;r(e[s],o)&lt;0&amp;&amp;(a=s,o=e[s]),r(o,i)&gt;=0)break;e[t]=o,t=a}e[t]=i};var Ql=Number.POSITIVE_INFINITY;function $l(t,e){return e[1]!==Ql?function(t,e,r){var n=0,i=0;switch(e=Math.abs(e),r=Math.abs(r),t){case&quot;top-right&quot;:case&quot;top-left&quot;:case&quot;top&quot;:i=r-7;break;case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:case&quot;bottom&quot;:i=7-r}switch(t){case&quot;top-right&quot;:case&quot;bottom-right&quot;:case&quot;right&quot;:n=-e;break;case&quot;top-left&quot;:case&quot;bottom-left&quot;:case&quot;left&quot;:n=e}return[n,i]}(t,e[0],e[1]):function(t,e){var r=0,n=0;e&lt;0&amp;&amp;(e=0);var i=e/Math.sqrt(2);switch(t){case&quot;top-right&quot;:case&quot;top-left&quot;:n=i-7;break;case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:n=7-i;break;case&quot;bottom&quot;:n=7-e;break;case&quot;top&quot;:n=e-7}switch(t){case&quot;top-right&quot;:case&quot;bottom-right&quot;:r=-i;break;case&quot;top-left&quot;:case&quot;bottom-left&quot;:r=i;break;case&quot;left&quot;:r=e;break;case&quot;right&quot;:r=-e}return[r,n]}(t,e[0])}function tc(t){switch(t){case&quot;right&quot;:case&quot;top-right&quot;:case&quot;bottom-right&quot;:return&quot;right&quot;;case&quot;left&quot;:case&quot;top-left&quot;:case&quot;bottom-left&quot;:return&quot;left&quot;}return&quot;center&quot;}function ec(t,e,r,n,a,o,s,l,c,u,f,h,p,d,g){var m=function(t,e,r,n,a,o,s,l){for(var c=n.layout.get(&quot;text-rotate&quot;).evaluate(o,{})*Math.PI/180,u=[],f=0,h=e.positionedLines;f&lt;h.length;f+=1)for(var p=h[f],d=0,g=p.positionedGlyphs;d&lt;g.length;d+=1){var m=g[d];if(m.rect){var v=m.rect||{},y=4,x=!0,b=1,_=0,w=(a||l)&amp;&amp;m.vertical,T=m.metrics.advance*m.scale/2;if(l&amp;&amp;e.verticalizable&amp;&amp;(_=p.lineOffset/2-(m.imageName?-(24-m.metrics.width*m.scale)/2:24*(m.scale-1))),m.imageName){var k=s[m.imageName];x=k.sdf,y=1/(b=k.pixelRatio)}var M=a?[m.x+T,m.y]:[0,0],A=a?[0,0]:[m.x+T+r[0],m.y+r[1]-_],S=[0,0];w&amp;&amp;(S=A,A=[0,0]);var E=(m.metrics.left-y)*m.scale-T+A[0],C=(-m.metrics.top-y)*m.scale+A[1],L=E+v.w*m.scale/b,I=C+v.h*m.scale/b,P=new i(E,C),z=new i(L,C),O=new i(E,I),D=new i(L,I);if(w){var R=new i(-T,T- -17),F=-Math.PI/2,B=12-T,N=new i(22-B,-(m.imageName?B:0)),j=new(Function.prototype.bind.apply(i,[null].concat(S)));P._rotateAround(F,R)._add(N)._add(j),z._rotateAround(F,R)._add(N)._add(j),O._rotateAround(F,R)._add(N)._add(j),D._rotateAround(F,R)._add(N)._add(j)}if(c){var U=Math.sin(c),V=Math.cos(c),q=[V,-U,U,V];P._matMult(q),z._matMult(q),O._matMult(q),D._matMult(q)}var H=new i(0,0),G=new i(0,0);u.push({tl:P,tr:z,bl:O,br:D,tex:v,writingMode:e.writingMode,glyphOffset:M,sectionIndex:m.sectionIndex,isSDF:x,pixelOffsetTL:H,pixelOffsetBR:G,minFontScaleX:0,minFontScaleY:0})}}return u}(0,r,l,a,o,s,n,t.allowVerticalPlacement),v=t.textSizeData,y=null;&quot;source&quot;===v.kind?(y=[128*a.layout.get(&quot;text-size&quot;).evaluate(s,{})])[0]&gt;32640&amp;&amp;_(t.layerIds[0]+': Value for &quot;text-size&quot; is &gt;= 255. Reduce your &quot;text-size&quot;.'):&quot;composite&quot;===v.kind&amp;&amp;((y=[128*d.compositeTextSizes[0].evaluate(s,{},g),128*d.compositeTextSizes[1].evaluate(s,{},g)])[0]&gt;32640||y[1]&gt;32640)&amp;&amp;_(t.layerIds[0]+': Value for &quot;text-size&quot; is &gt;= 255. Reduce your &quot;text-size&quot;.'),t.addSymbols(t.text,m,y,l,o,s,u,e,c.lineStartIndex,c.lineLength,p,g);for(var x=0,b=f;x&lt;b.length;x+=1)h[b[x]]=t.text.placedSymbolArray.length-1;return 4*m.length}function rc(t){for(var e in t)return t[e];return null}function nc(t,e,r,n){var i=t.compareText;if(e in i){for(var a=i[e],o=a.length-1;o&gt;=0;o--)if(n.dist(a[o])&lt;r)return!0}else i[e]=[];return i[e].push(n),!1}var ic=gs.VectorTileFeature.types,ac=[{name:&quot;a_fade_opacity&quot;,components:1,type:&quot;Uint8&quot;,offset:0}];function oc(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=s?Math.min(32640,Math.round(s[0])):0,d=s?Math.min(32640,Math.round(s[1])):0;t.emplaceBack(e,r,Math.round(32*n),Math.round(32*i),a,o,(p&lt;&lt;1)+(l?1:0),d,16*c,16*u,256*f,256*h)}function sc(t,e,r){t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r)}function lc(t){for(var e=0,r=t.sections;e&lt;r.length;e+=1)if(Xn(r[e].text))return!0;return!1}var cc=function(t){this.layoutVertexArray=new Li,this.indexArray=new Fi,this.programConfigurations=t,this.segments=new ia,this.dynamicLayoutVertexArray=new Ii,this.opacityVertexArray=new Pi,this.placedSymbolArray=new Ji};cc.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&amp;&amp;0===this.indexArray.length&amp;&amp;0===this.dynamicLayoutVertexArray.length&amp;&amp;0===this.opacityVertexArray.length},cc.prototype.upload=function(t,e,r,n){this.isEmpty()||(r&amp;&amp;(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ds.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,Rs.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,ac,!0),this.opacityVertexBuffer.itemSize=1),(r||n)&amp;&amp;this.programConfigurations.upload(t))},cc.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},Dn(&quot;SymbolBuffers&quot;,cc);var uc=function(t,e,r){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new r,this.segments=new ia,this.collisionVertexArray=new Ri};uc.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,Fs.members,!0)},uc.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},Dn(&quot;CollisionBuffers&quot;,uc);var fc=function(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=eo([]),this.placementViewportMatrix=eo([]);var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Ll(this.zoom,e[&quot;text-size&quot;]),this.iconSizeData=Ll(this.zoom,e[&quot;icon-size&quot;]);var r=this.layers[0].layout,n=r.get(&quot;symbol-sort-key&quot;),i=r.get(&quot;symbol-z-order&quot;);this.sortFeaturesByKey=&quot;viewport-y&quot;!==i&amp;&amp;void 0!==n.constantOr(1),this.sortFeaturesByY=(&quot;viewport-y&quot;===i||&quot;auto&quot;===i&amp;&amp;!this.sortFeaturesByKey)&amp;&amp;(r.get(&quot;text-allow-overlap&quot;)||r.get(&quot;icon-allow-overlap&quot;)||r.get(&quot;text-ignore-placement&quot;)||r.get(&quot;icon-ignore-placement&quot;)),&quot;point&quot;===r.get(&quot;symbol-placement&quot;)&amp;&amp;(this.writingModes=r.get(&quot;text-writing-mode&quot;).map((function(t){return gl[t]}))),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id})),this.sourceID=t.sourceID};fc.prototype.createArrays=function(){this.text=new cc(new Ia(Ds.members,this.layers,this.zoom,(function(t){return/^text/.test(t)}))),this.icon=new cc(new Ia(Ds.members,this.layers,this.zoom,(function(t){return/^icon/.test(t)}))),this.glyphOffsetArray=new $i,this.lineVertexArray=new ta,this.symbolInstances=new Qi},fc.prototype.calculateGlyphDependencies=function(t,e,r,n,i){for(var a=0;a&lt;t.length;a++)if(e[t.charCodeAt(a)]=!0,(r||n)&amp;&amp;i){var o=Us[t.charAt(a)];o&amp;&amp;(e[o.charCodeAt(0)]=!0)}},fc.prototype.populate=function(t,e,r){var n=this.layers[0],i=n.layout,a=i.get(&quot;text-font&quot;),o=i.get(&quot;text-field&quot;),s=i.get(&quot;icon-image&quot;),l=(&quot;constant&quot;!==o.value.kind||o.value.value instanceof te&amp;&amp;!o.value.value.isEmpty()||o.value.value.toString().length&gt;0)&amp;&amp;(&quot;constant&quot;!==a.value.kind||a.value.value.length&gt;0),c=&quot;constant&quot;!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length&gt;0,u=i.get(&quot;symbol-sort-key&quot;);if(this.features=[],l||c){for(var f=e.iconDependencies,h=e.glyphDependencies,p=e.availableImages,d=new ii(this.zoom),g=0,m=t;g&lt;m.length;g+=1){var v=m[g],y=v.feature,x=v.id,b=v.index,_=v.sourceLayerIndex,w=n._featureFilter.needGeometry,T={type:y.type,id:x,properties:y.properties,geometry:w?Da(y):[]};if(n._featureFilter.filter(d,T,r)){w||(T.geometry=Da(y));var k=void 0;if(l){var M=n.getValueAndResolveTokens(&quot;text-field&quot;,T,r,p),A=te.factory(M);lc(A)&amp;&amp;(this.hasRTLText=!0),(!this.hasRTLText||&quot;unavailable&quot;===ei()||this.hasRTLText&amp;&amp;ni.isParsed())&amp;&amp;(k=js(A,n,T))}var S=void 0;if(c){var E=n.getValueAndResolveTokens(&quot;icon-image&quot;,T,r,p);S=E instanceof ee?E:ee.fromString(E)}if(k||S){var C=this.sortFeaturesByKey?u.evaluate(T,{},r):void 0,L={id:x,text:k,icon:S,index:b,sourceLayerIndex:_,geometry:Da(y),properties:y.properties,type:ic[y.type],sortKey:C};if(this.features.push(L),S&amp;&amp;(f[S.name]=!0),k){var I=a.evaluate(T,{},r).join(&quot;,&quot;),P=&quot;map&quot;===i.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==i.get(&quot;symbol-placement&quot;);this.allowVerticalPlacement=this.writingModes&amp;&amp;this.writingModes.indexOf(gl.vertical)&gt;=0;for(var z=0,O=k.sections;z&lt;O.length;z+=1){var D=O[z];if(D.image)f[D.image.name]=!0;else{var R=qn(k.toString()),F=D.fontStack||I,B=h[F]=h[F]||{};this.calculateGlyphDependencies(D.text,B,P,this.allowVerticalPlacement,R)}}}}}}&quot;line&quot;===i.get(&quot;symbol-placement&quot;)&amp;&amp;(this.features=function(t){var e={},r={},n=[],i=0;function a(e){n.push(t[e]),i++}function o(t,e,i){var a=r[t];return delete r[t],r[e]=a,n[a].geometry[0].pop(),n[a].geometry[0]=n[a].geometry[0].concat(i[0]),a}function s(t,r,i){var a=e[r];return delete e[r],e[t]=a,n[a].geometry[0].shift(),n[a].geometry[0]=i[0].concat(n[a].geometry[0]),a}function l(t,e,r){var n=r?e[0][e[0].length-1]:e[0][0];return t+&quot;:&quot;+n.x+&quot;:&quot;+n.y}for(var c=0;c&lt;t.length;c++){var u=t[c],f=u.geometry,h=u.text?u.text.toString():null;if(h){var p=l(h,f),d=l(h,f,!0);if(p in r&amp;&amp;d in e&amp;&amp;r[p]!==e[d]){var g=s(p,d,f),m=o(p,d,n[g].geometry);delete e[p],delete r[d],r[l(h,n[m].geometry,!0)]=m,n[g].geometry=null}else p in r?o(p,d,f):d in e?s(p,d,f):(a(c),e[p]=i-1,r[d]=i-1)}else a(c)}return n.filter((function(t){return t.geometry}))}(this.features)),this.sortFeaturesByKey&amp;&amp;this.features.sort((function(t,e){return t.sortKey-e.sortKey}))}},fc.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,r),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,r))},fc.prototype.isEmpty=function(){return 0===this.symbolInstances.length&amp;&amp;!this.hasRTLText},fc.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},fc.prototype.upload=function(t){!this.uploaded&amp;&amp;this.hasDebugData()&amp;&amp;(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},fc.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},fc.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&amp;&amp;this.destroyDebugData()},fc.prototype.addToLineVertexArray=function(t,e){var r=this.lineVertexArray.length;if(void 0!==t.segment){for(var n=t.dist(e[t.segment+1]),i=t.dist(e[t.segment]),a={},o=t.segment+1;o&lt;e.length;o++)a[o]={x:e[o].x,y:e[o].y,tileUnitDistanceFromAnchor:n},o&lt;e.length-1&amp;&amp;(n+=e[o+1].dist(e[o]));for(var s=t.segment||0;s&gt;=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s&gt;0&amp;&amp;(i+=e[s-1].dist(e[s]));for(var l=0;l&lt;e.length;l++){var c=a[l];this.lineVertexArray.emplaceBack(c.x,c.y,c.tileUnitDistanceFromAnchor)}}return{lineStartIndex:r,lineLength:this.lineVertexArray.length-r}},fc.prototype.addSymbols=function(t,e,r,n,i,a,o,s,l,c,u,f){for(var h=t.indexArray,p=t.layoutVertexArray,d=t.segments.prepareSegment(4*e.length,p,h,a.sortKey),g=this.glyphOffsetArray.length,m=d.vertexLength,v=this.allowVerticalPlacement&amp;&amp;o===gl.vertical?Math.PI/2:0,y=a.text&amp;&amp;a.text.sections,x=0;x&lt;e.length;x++){var b=e[x],_=b.tl,w=b.tr,T=b.bl,k=b.br,M=b.tex,A=b.pixelOffsetTL,S=b.pixelOffsetBR,E=b.minFontScaleX,C=b.minFontScaleY,L=b.glyphOffset,I=b.isSDF,P=b.sectionIndex,z=d.vertexLength,O=L[1];oc(p,s.x,s.y,_.x,O+_.y,M.x,M.y,r,I,A.x,A.y,E,C),oc(p,s.x,s.y,w.x,O+w.y,M.x+M.w,M.y,r,I,S.x,A.y,E,C),oc(p,s.x,s.y,T.x,O+T.y,M.x,M.y+M.h,r,I,A.x,S.y,E,C),oc(p,s.x,s.y,k.x,O+k.y,M.x+M.w,M.y+M.h,r,I,S.x,S.y,E,C),sc(t.dynamicLayoutVertexArray,s,v),h.emplaceBack(z,z+1,z+2),h.emplaceBack(z+1,z+2,z+3),d.vertexLength+=4,d.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(L[0]),x!==e.length-1&amp;&amp;P===e[x+1].sectionIndex||t.programConfigurations.populatePaintArrays(p.length,a,a.index,{},f,y&amp;&amp;y[P])}t.placedSymbolArray.emplaceBack(s.x,s.y,g,this.glyphOffsetArray.length-g,m,l,c,s.segment,r?r[0]:0,r?r[1]:0,n[0],n[1],o,0,!1,0,u)},fc.prototype._addCollisionDebugVertex=function(t,e,r,n,i,a){return e.emplaceBack(0,0),t.emplaceBack(r.x,r.y,n,i,Math.round(a.x),Math.round(a.y))},fc.prototype.addCollisionDebugVertices=function(t,e,r,n,a,o,s){var l=a.segments.prepareSegment(4,a.layoutVertexArray,a.indexArray),c=l.vertexLength,u=a.layoutVertexArray,f=a.collisionVertexArray,h=s.anchorX,p=s.anchorY;this._addCollisionDebugVertex(u,f,o,h,p,new i(t,e)),this._addCollisionDebugVertex(u,f,o,h,p,new i(r,e)),this._addCollisionDebugVertex(u,f,o,h,p,new i(r,n)),this._addCollisionDebugVertex(u,f,o,h,p,new i(t,n)),l.vertexLength+=4;var d=a.indexArray;d.emplaceBack(c,c+1),d.emplaceBack(c+1,c+2),d.emplaceBack(c+2,c+3),d.emplaceBack(c+3,c),l.primitiveLength+=4},fc.prototype.addDebugCollisionBoxes=function(t,e,r,n){for(var i=t;i&lt;e;i++){var a=this.collisionBoxArray.get(i);this.addCollisionDebugVertices(a.x1,a.y1,a.x2,a.y2,n?this.textCollisionBox:this.iconCollisionBox,a.anchorPoint,r)}},fc.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&amp;&amp;this.destroyDebugData(),this.textCollisionBox=new uc(Oi,Bs.members,qi),this.iconCollisionBox=new uc(Oi,Bs.members,qi);for(var t=0;t&lt;this.symbolInstances.length;t++){var e=this.symbolInstances.get(t);this.addDebugCollisionBoxes(e.textBoxStartIndex,e.textBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.verticalTextBoxStartIndex,e.verticalTextBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.iconBoxStartIndex,e.iconBoxEndIndex,e,!1),this.addDebugCollisionBoxes(e.verticalIconBoxStartIndex,e.verticalIconBoxEndIndex,e,!1)}},fc.prototype._deserializeCollisionBoxesForSymbol=function(t,e,r,n,i,a,o,s,l){for(var c={},u=e;u&lt;r;u++){var f=t.get(u);c.textBox={x1:f.x1,y1:f.y1,x2:f.x2,y2:f.y2,anchorPointX:f.anchorPointX,anchorPointY:f.anchorPointY},c.textFeatureIndex=f.featureIndex;break}for(var h=n;h&lt;i;h++){var p=t.get(h);c.verticalTextBox={x1:p.x1,y1:p.y1,x2:p.x2,y2:p.y2,anchorPointX:p.anchorPointX,anchorPointY:p.anchorPointY},c.verticalTextFeatureIndex=p.featureIndex;break}for(var d=a;d&lt;o;d++){var g=t.get(d);c.iconBox={x1:g.x1,y1:g.y1,x2:g.x2,y2:g.y2,anchorPointX:g.anchorPointX,anchorPointY:g.anchorPointY},c.iconFeatureIndex=g.featureIndex;break}for(var m=s;m&lt;l;m++){var v=t.get(m);c.verticalIconBox={x1:v.x1,y1:v.y1,x2:v.x2,y2:v.y2,anchorPointX:v.anchorPointX,anchorPointY:v.anchorPointY},c.verticalIconFeatureIndex=v.featureIndex;break}return c},fc.prototype.deserializeCollisionBoxes=function(t){this.collisionArrays=[];for(var e=0;e&lt;this.symbolInstances.length;e++){var r=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,r.textBoxStartIndex,r.textBoxEndIndex,r.verticalTextBoxStartIndex,r.verticalTextBoxEndIndex,r.iconBoxStartIndex,r.iconBoxEndIndex,r.verticalIconBoxStartIndex,r.verticalIconBoxEndIndex))}},fc.prototype.hasTextData=function(){return this.text.segments.get().length&gt;0},fc.prototype.hasIconData=function(){return this.icon.segments.get().length&gt;0},fc.prototype.hasDebugData=function(){return this.textCollisionBox&amp;&amp;this.iconCollisionBox},fc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&amp;&amp;this.textCollisionBox.segments.get().length&gt;0},fc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&amp;&amp;this.iconCollisionBox.segments.get().length&gt;0},fc.prototype.addIndicesForPlacedSymbol=function(t,e){for(var r=t.placedSymbolArray.get(e),n=r.vertexStartIndex+4*r.numGlyphs,i=r.vertexStartIndex;i&lt;n;i+=4)t.indexArray.emplaceBack(i,i+1,i+2),t.indexArray.emplaceBack(i+1,i+2,i+3)},fc.prototype.getSortedSymbolIndexes=function(t){if(this.sortedAngle===t&amp;&amp;void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var e=Math.sin(t),r=Math.cos(t),n=[],i=[],a=[],o=0;o&lt;this.symbolInstances.length;++o){a.push(o);var s=this.symbolInstances.get(o);n.push(0|Math.round(e*s.anchorX+r*s.anchorY)),i.push(s.featureIndex)}return a.sort((function(t,e){return n[t]-n[e]||i[e]-i[t]})),a},fc.prototype.addToSortKeyRanges=function(t,e){var r=this.sortKeyRanges[this.sortKeyRanges.length-1];r&amp;&amp;r.sortKey===e?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})},fc.prototype.sortFeatures=function(t){var e=this;if(this.sortFeaturesByY&amp;&amp;this.sortedAngle!==t&amp;&amp;!(this.text.segments.get().length&gt;1||this.icon.segments.get().length&gt;1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var r=0,n=this.symbolInstanceIndexes;r&lt;n.length;r+=1){var i=this.symbolInstances.get(n[r]);this.featureSortOrder.push(i.featureIndex),[i.rightJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.leftJustifiedTextSymbolIndex].forEach((function(t,r,n){t&gt;=0&amp;&amp;n.indexOf(t)===r&amp;&amp;e.addIndicesForPlacedSymbol(e.text,t)})),i.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.text,i.verticalPlacedTextSymbolIndex),i.placedIconSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.icon,i.placedIconSymbolIndex),i.verticalPlacedIconSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.icon,i.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&amp;&amp;this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&amp;&amp;this.icon.indexBuffer.updateData(this.icon.indexArray)}},Dn(&quot;SymbolBucket&quot;,fc,{omit:[&quot;layers&quot;,&quot;collisionBoxArray&quot;,&quot;features&quot;,&quot;compareText&quot;]}),fc.MAX_GLYPHS=65535,fc.addDynamicAttributes=sc;var hc=new yi({&quot;symbol-placement&quot;:new pi(At.layout_symbol[&quot;symbol-placement&quot;]),&quot;symbol-spacing&quot;:new pi(At.layout_symbol[&quot;symbol-spacing&quot;]),&quot;symbol-avoid-edges&quot;:new pi(At.layout_symbol[&quot;symbol-avoid-edges&quot;]),&quot;symbol-sort-key&quot;:new di(At.layout_symbol[&quot;symbol-sort-key&quot;]),&quot;symbol-z-order&quot;:new pi(At.layout_symbol[&quot;symbol-z-order&quot;]),&quot;icon-allow-overlap&quot;:new pi(At.layout_symbol[&quot;icon-allow-overlap&quot;]),&quot;icon-ignore-placement&quot;:new pi(At.layout_symbol[&quot;icon-ignore-placement&quot;]),&quot;icon-optional&quot;:new pi(At.layout_symbol[&quot;icon-optional&quot;]),&quot;icon-rotation-alignment&quot;:new pi(At.layout_symbol[&quot;icon-rotation-alignment&quot;]),&quot;icon-size&quot;:new di(At.layout_symbol[&quot;icon-size&quot;]),&quot;icon-text-fit&quot;:new pi(At.layout_symbol[&quot;icon-text-fit&quot;]),&quot;icon-text-fit-padding&quot;:new pi(At.layout_symbol[&quot;icon-text-fit-padding&quot;]),&quot;icon-image&quot;:new di(At.layout_symbol[&quot;icon-image&quot;]),&quot;icon-rotate&quot;:new di(At.layout_symbol[&quot;icon-rotate&quot;]),&quot;icon-padding&quot;:new pi(At.layout_symbol[&quot;icon-padding&quot;]),&quot;icon-keep-upright&quot;:new pi(At.layout_symbol[&quot;icon-keep-upright&quot;]),&quot;icon-offset&quot;:new di(At.layout_symbol[&quot;icon-offset&quot;]),&quot;icon-anchor&quot;:new di(At.layout_symbol[&quot;icon-anchor&quot;]),&quot;icon-pitch-alignment&quot;:new pi(At.layout_symbol[&quot;icon-pitch-alignment&quot;]),&quot;text-pitch-alignment&quot;:new pi(At.layout_symbol[&quot;text-pitch-alignment&quot;]),&quot;text-rotation-alignment&quot;:new pi(At.layout_symbol[&quot;text-rotation-alignment&quot;]),&quot;text-field&quot;:new di(At.layout_symbol[&quot;text-field&quot;]),&quot;text-font&quot;:new di(At.layout_symbol[&quot;text-font&quot;]),&quot;text-size&quot;:new di(At.layout_symbol[&quot;text-size&quot;]),&quot;text-max-width&quot;:new di(At.layout_symbol[&quot;text-max-width&quot;]),&quot;text-line-height&quot;:new pi(At.layout_symbol[&quot;text-line-height&quot;]),&quot;text-letter-spacing&quot;:new di(At.layout_symbol[&quot;text-letter-spacing&quot;]),&quot;text-justify&quot;:new di(At.layout_symbol[&quot;text-justify&quot;]),&quot;text-radial-offset&quot;:new di(At.layout_symbol[&quot;text-radial-offset&quot;]),&quot;text-variable-anchor&quot;:new pi(At.layout_symbol[&quot;text-variable-anchor&quot;]),&quot;text-anchor&quot;:new di(At.layout_symbol[&quot;text-anchor&quot;]),&quot;text-max-angle&quot;:new pi(At.layout_symbol[&quot;text-max-angle&quot;]),&quot;text-writing-mode&quot;:new pi(At.layout_symbol[&quot;text-writing-mode&quot;]),&quot;text-rotate&quot;:new di(At.layout_symbol[&quot;text-rotate&quot;]),&quot;text-padding&quot;:new pi(At.layout_symbol[&quot;text-padding&quot;]),&quot;text-keep-upright&quot;:new pi(At.layout_symbol[&quot;text-keep-upright&quot;]),&quot;text-transform&quot;:new di(At.layout_symbol[&quot;text-transform&quot;]),&quot;text-offset&quot;:new di(At.layout_symbol[&quot;text-offset&quot;]),&quot;text-allow-overlap&quot;:new pi(At.layout_symbol[&quot;text-allow-overlap&quot;]),&quot;text-ignore-placement&quot;:new pi(At.layout_symbol[&quot;text-ignore-placement&quot;]),&quot;text-optional&quot;:new pi(At.layout_symbol[&quot;text-optional&quot;])}),pc={paint:new yi({&quot;icon-opacity&quot;:new di(At.paint_symbol[&quot;icon-opacity&quot;]),&quot;icon-color&quot;:new di(At.paint_symbol[&quot;icon-color&quot;]),&quot;icon-halo-color&quot;:new di(At.paint_symbol[&quot;icon-halo-color&quot;]),&quot;icon-halo-width&quot;:new di(At.paint_symbol[&quot;icon-halo-width&quot;]),&quot;icon-halo-blur&quot;:new di(At.paint_symbol[&quot;icon-halo-blur&quot;]),&quot;icon-translate&quot;:new pi(At.paint_symbol[&quot;icon-translate&quot;]),&quot;icon-translate-anchor&quot;:new pi(At.paint_symbol[&quot;icon-translate-anchor&quot;]),&quot;text-opacity&quot;:new di(At.paint_symbol[&quot;text-opacity&quot;]),&quot;text-color&quot;:new di(At.paint_symbol[&quot;text-color&quot;],{runtimeType:Bt,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),&quot;text-halo-color&quot;:new di(At.paint_symbol[&quot;text-halo-color&quot;]),&quot;text-halo-width&quot;:new di(At.paint_symbol[&quot;text-halo-width&quot;]),&quot;text-halo-blur&quot;:new di(At.paint_symbol[&quot;text-halo-blur&quot;]),&quot;text-translate&quot;:new pi(At.paint_symbol[&quot;text-translate&quot;]),&quot;text-translate-anchor&quot;:new pi(At.paint_symbol[&quot;text-translate-anchor&quot;])}),layout:hc},dc=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Ot,this.defaultValue=t};dc.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&amp;&amp;e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&amp;&amp;t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},dc.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},dc.prototype.outputDefined=function(){return!1},dc.prototype.serialize=function(){return null},Dn(&quot;FormatSectionOverride&quot;,dc,{omit:[&quot;defaultValue&quot;]});var gc=function(t){function e(e){t.call(this,e,pc)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.recalculate=function(e,r){if(t.prototype.recalculate.call(this,e,r),&quot;auto&quot;===this.layout.get(&quot;icon-rotation-alignment&quot;)&amp;&amp;(this.layout._values[&quot;icon-rotation-alignment&quot;]=&quot;point&quot;!==this.layout.get(&quot;symbol-placement&quot;)?&quot;map&quot;:&quot;viewport&quot;),&quot;auto&quot;===this.layout.get(&quot;text-rotation-alignment&quot;)&amp;&amp;(this.layout._values[&quot;text-rotation-alignment&quot;]=&quot;point&quot;!==this.layout.get(&quot;symbol-placement&quot;)?&quot;map&quot;:&quot;viewport&quot;),&quot;auto&quot;===this.layout.get(&quot;text-pitch-alignment&quot;)&amp;&amp;(this.layout._values[&quot;text-pitch-alignment&quot;]=this.layout.get(&quot;text-rotation-alignment&quot;)),&quot;auto&quot;===this.layout.get(&quot;icon-pitch-alignment&quot;)&amp;&amp;(this.layout._values[&quot;icon-pitch-alignment&quot;]=this.layout.get(&quot;icon-rotation-alignment&quot;)),&quot;point&quot;===this.layout.get(&quot;symbol-placement&quot;)){var n=this.layout.get(&quot;text-writing-mode&quot;);if(n){for(var i=[],a=0,o=n;a&lt;o.length;a+=1){var s=o[a];i.indexOf(s)&lt;0&amp;&amp;i.push(s)}this.layout._values[&quot;text-writing-mode&quot;]=i}else this.layout._values[&quot;text-writing-mode&quot;]=[&quot;horizontal&quot;]}this._setPaintOverrides()},e.prototype.getValueAndResolveTokens=function(t,e,r,n){var i=this.layout.get(t).evaluate(e,{},r,n),a=this._unevaluatedLayout._values[t];return a.isDataDriven()||Vr(a.value)||!i?i:function(t,e){return e.replace(/{([^{}]+)}/g,(function(e,r){return r in t?String(t[r]):&quot;&quot;}))}(e.properties,i)},e.prototype.createBucket=function(t){return new fc(t)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype._setPaintOverrides=function(){for(var t=0,r=pc.paint.overridableProperties;t&lt;r.length;t+=1){var n=r[t];if(e.hasPaintOverride(this.layout,n)){var i,a=this.paint.get(n),o=new dc(a),s=new Ur(o,a.property.specification);i=&quot;constant&quot;===a.value.kind||&quot;source&quot;===a.value.kind?new Hr(&quot;source&quot;,s):new Gr(&quot;composite&quot;,s,a.value.zoomStops,a.value._interpolationType),this.paint._values[n]=new fi(a.property,i,a.parameters)}}},e.prototype._handleOverridablePaintPropertyUpdate=function(t,r,n){return!(!this.layout||r.isDataDriven()||n.isDataDriven())&amp;&amp;e.hasPaintOverride(this.layout,t)},e.hasPaintOverride=function(t,e){var r=t.get(&quot;text-field&quot;),n=pc.paint.properties[e],i=!1,a=function(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(n.overrides&amp;&amp;n.overrides.hasOverride(r[e]))return void(i=!0)};if(&quot;constant&quot;===r.value.kind&amp;&amp;r.value.value instanceof te)a(r.value.value.sections);else if(&quot;source&quot;===r.value.kind){var o=function(t){i||(t instanceof oe&amp;&amp;ie(t.value)===Vt?a(t.value.sections):t instanceof ue?a(t.sections):t.eachChild(o))},s=r.value;s._styleExpression&amp;&amp;o(s._styleExpression.expression)}return i},e}(xi),mc={paint:new yi({&quot;background-color&quot;:new pi(At.paint_background[&quot;background-color&quot;]),&quot;background-pattern&quot;:new mi(At.paint_background[&quot;background-pattern&quot;]),&quot;background-opacity&quot;:new pi(At.paint_background[&quot;background-opacity&quot;])})},vc=function(t){function e(e){t.call(this,e,mc)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(xi),yc={paint:new yi({&quot;raster-opacity&quot;:new pi(At.paint_raster[&quot;raster-opacity&quot;]),&quot;raster-hue-rotate&quot;:new pi(At.paint_raster[&quot;raster-hue-rotate&quot;]),&quot;raster-brightness-min&quot;:new pi(At.paint_raster[&quot;raster-brightness-min&quot;]),&quot;raster-brightness-max&quot;:new pi(At.paint_raster[&quot;raster-brightness-max&quot;]),&quot;raster-saturation&quot;:new pi(At.paint_raster[&quot;raster-saturation&quot;]),&quot;raster-contrast&quot;:new pi(At.paint_raster[&quot;raster-contrast&quot;]),&quot;raster-resampling&quot;:new pi(At.paint_raster[&quot;raster-resampling&quot;]),&quot;raster-fade-duration&quot;:new pi(At.paint_raster[&quot;raster-fade-duration&quot;])})},xc=function(t){function e(e){t.call(this,e,yc)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(xi),bc=function(t){function e(e){t.call(this,e,{}),this.implementation=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.is3D=function(){return&quot;3d&quot;===this.implementation.renderingMode},e.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},e.prototype.recalculate=function(){},e.prototype.updateTransitions=function(){},e.prototype.hasTransition=function(){},e.prototype.serialize=function(){},e.prototype.onAdd=function(t){this.implementation.onAdd&amp;&amp;this.implementation.onAdd(t,t.painter.context.gl)},e.prototype.onRemove=function(t){this.implementation.onRemove&amp;&amp;this.implementation.onRemove(t,t.painter.context.gl)},e}(xi),_c={circle:oo,heatmap:vo,hillshade:xo,fill:as,&quot;fill-extrusion&quot;:ws,line:zs,symbol:gc,background:vc,raster:xc},wc=self.HTMLImageElement,Tc=self.HTMLCanvasElement,kc=self.HTMLVideoElement,Mc=self.ImageData,Ac=self.ImageBitmap,Sc=function(t,e,r,n){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this.update(e,n)};Sc.prototype.update=function(t,e,r){var n=t.width,i=t.height,a=!(this.size&amp;&amp;this.size[0]===n&amp;&amp;this.size[1]===i||r),o=this.context,s=o.gl;if(this.useMipmap=Boolean(e&amp;&amp;e.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1),o.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&amp;&amp;(!e||!1!==e.premultiply)),a)this.size=[n,i],t instanceof wc||t instanceof Tc||t instanceof kc||t instanceof Mc||Ac&amp;&amp;t instanceof Ac?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,t):s.texImage2D(s.TEXTURE_2D,0,this.format,n,i,0,this.format,s.UNSIGNED_BYTE,t.data);else{var l=r||{x:0,y:0},c=l.x,u=l.y;t instanceof wc||t instanceof Tc||t instanceof kc||t instanceof Mc||Ac&amp;&amp;t instanceof Ac?s.texSubImage2D(s.TEXTURE_2D,0,c,u,s.RGBA,s.UNSIGNED_BYTE,t):s.texSubImage2D(s.TEXTURE_2D,0,c,u,n,i,s.RGBA,s.UNSIGNED_BYTE,t.data)}this.useMipmap&amp;&amp;this.isSizePowerOfTwo()&amp;&amp;s.generateMipmap(s.TEXTURE_2D)},Sc.prototype.bind=function(t,e,r){var n=this.context.gl;n.bindTexture(n.TEXTURE_2D,this.texture),r!==n.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(r=n.LINEAR),t!==this.filter&amp;&amp;(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,r||t),this.filter=t),e!==this.wrap&amp;&amp;(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)},Sc.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&amp;&amp;Math.log(this.size[0])/Math.LN2%1==0},Sc.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var Ec=function(t){var e=this;this._callback=t,this._triggered=!1,&quot;undefined&quot;!=typeof MessageChannel&amp;&amp;(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){e._triggered=!1,e._callback()})};Ec.prototype.trigger=function(){var t=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((function(){t._triggered=!1,t._callback()}),0))},Ec.prototype.remove=function(){delete this._channel,this._callback=function(){}};var Cc=function(t,e,r){this.target=t,this.parent=e,this.mapId=r,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},g([&quot;receive&quot;,&quot;process&quot;],this),this.invoker=new Ec(this.process),this.target.addEventListener(&quot;message&quot;,this.receive,!1),this.globalScope=k()?t:self};function Lc(t,e,r){var n=2*Math.PI*6378137/256/Math.pow(2,r);return[t*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}Cc.prototype.send=function(t,e,r,n,i){var a=this;void 0===i&amp;&amp;(i=!1);var o=Math.round(1e18*Math.random()).toString(36).substring(0,10);r&amp;&amp;(this.callbacks[o]=r);var s=S(this.globalScope)?void 0:[];return this.target.postMessage({id:o,type:t,hasCallback:!!r,targetMapId:n,mustQueue:i,sourceMapId:this.mapId,data:Nn(e,s)},s),{cancel:function(){r&amp;&amp;delete a.callbacks[o],a.target.postMessage({id:o,type:&quot;&lt;cancel&gt;&quot;,targetMapId:n,sourceMapId:a.mapId})}}},Cc.prototype.receive=function(t){var e=t.data,r=e.id;if(r&amp;&amp;(!e.targetMapId||this.mapId===e.targetMapId))if(&quot;&lt;cancel&gt;&quot;===e.type){delete this.tasks[r];var n=this.cancelCallbacks[r];delete this.cancelCallbacks[r],n&amp;&amp;n()}else k()||e.mustQueue?(this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger()):this.processTask(r,e)},Cc.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&amp;&amp;this.invoker.trigger(),e&amp;&amp;this.processTask(t,e)}},Cc.prototype.processTask=function(t,e){var r=this;if(&quot;&lt;response&gt;&quot;===e.type){var n=this.callbacks[t];delete this.callbacks[t],n&amp;&amp;(e.error?n(jn(e.error)):n(null,jn(e.data)))}else{var i=!1,a=S(this.globalScope)?void 0:[],o=e.hasCallback?function(e,n){i=!0,delete r.cancelCallbacks[t],r.target.postMessage({id:t,type:&quot;&lt;response&gt;&quot;,sourceMapId:r.mapId,error:e?Nn(e):null,data:Nn(n,a)},a)}:function(t){i=!0},s=null,l=jn(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,l,o);else if(this.parent.getWorkerSource){var c=e.type.split(&quot;.&quot;);s=this.parent.getWorkerSource(e.sourceMapId,c[0],l.source)[c[1]](l,o)}else o(new Error(&quot;Could not find function &quot;+e.type));!i&amp;&amp;s&amp;&amp;s.cancel&amp;&amp;(this.cancelCallbacks[t]=s.cancel)}},Cc.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener(&quot;message&quot;,this.receive,!1)};var Ic=function(t,e){t&amp;&amp;(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};Ic.prototype.setNorthEast=function(t){return this._ne=t instanceof Pc?new Pc(t.lng,t.lat):Pc.convert(t),this},Ic.prototype.setSouthWest=function(t){return this._sw=t instanceof Pc?new Pc(t.lng,t.lat):Pc.convert(t),this},Ic.prototype.extend=function(t){var e,r,n=this._sw,i=this._ne;if(t instanceof Pc)e=t,r=t;else{if(!(t instanceof Ic))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(Ic.convert(t)):this.extend(Pc.convert(t)):this;if(r=t._ne,!(e=t._sw)||!r)return this}return n||i?(n.lng=Math.min(e.lng,n.lng),n.lat=Math.min(e.lat,n.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this._sw=new Pc(e.lng,e.lat),this._ne=new Pc(r.lng,r.lat)),this},Ic.prototype.getCenter=function(){return new Pc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Ic.prototype.getSouthWest=function(){return this._sw},Ic.prototype.getNorthEast=function(){return this._ne},Ic.prototype.getNorthWest=function(){return new Pc(this.getWest(),this.getNorth())},Ic.prototype.getSouthEast=function(){return new Pc(this.getEast(),this.getSouth())},Ic.prototype.getWest=function(){return this._sw.lng},Ic.prototype.getSouth=function(){return this._sw.lat},Ic.prototype.getEast=function(){return this._ne.lng},Ic.prototype.getNorth=function(){return this._ne.lat},Ic.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Ic.prototype.toString=function(){return&quot;LngLatBounds(&quot;+this._sw.toString()+&quot;, &quot;+this._ne.toString()+&quot;)&quot;},Ic.prototype.isEmpty=function(){return!(this._sw&amp;&amp;this._ne)},Ic.prototype.contains=function(t){var e=Pc.convert(t),r=e.lng,n=e.lat,i=this._sw.lng&lt;=r&amp;&amp;r&lt;=this._ne.lng;return this._sw.lng&gt;this._ne.lng&amp;&amp;(i=this._sw.lng&gt;=r&amp;&amp;r&gt;=this._ne.lng),this._sw.lat&lt;=n&amp;&amp;n&lt;=this._ne.lat&amp;&amp;i},Ic.convert=function(t){return!t||t instanceof Ic?t:new Ic(t)};var Pc=function(t,e){if(isNaN(t)||isNaN(e))throw new Error(&quot;Invalid LngLat object: (&quot;+t+&quot;, &quot;+e+&quot;)&quot;);if(this.lng=+t,this.lat=+e,this.lat&gt;90||this.lat&lt;-90)throw new Error(&quot;Invalid LngLat latitude value: must be between -90 and 90&quot;)};Pc.prototype.wrap=function(){return new Pc(c(this.lng,-180,180),this.lat)},Pc.prototype.toArray=function(){return[this.lng,this.lat]},Pc.prototype.toString=function(){return&quot;LngLat(&quot;+this.lng+&quot;, &quot;+this.lat+&quot;)&quot;},Pc.prototype.distanceTo=function(t){var e=Math.PI/180,r=this.lat*e,n=t.lat*e,i=Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos((t.lng-this.lng)*e);return 6371008.8*Math.acos(Math.min(i,1))},Pc.prototype.toBounds=function(t){void 0===t&amp;&amp;(t=0);var e=360*t/40075017,r=e/Math.cos(Math.PI/180*this.lat);return new Ic(new Pc(this.lng-r,this.lat-e),new Pc(this.lng+r,this.lat+e))},Pc.convert=function(t){if(t instanceof Pc)return t;if(Array.isArray(t)&amp;&amp;(2===t.length||3===t.length))return new Pc(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;null!==t)return new Pc(Number(&quot;lng&quot;in t?t.lng:t.lon),Number(t.lat));throw new Error(&quot;`LngLatLike` argument must be specified as a LngLat instance, an object {lng: &lt;lng&gt;, lat: &lt;lat&gt;}, an object {lon: &lt;lng&gt;, lat: &lt;lat&gt;}, or an array of [&lt;lng&gt;, &lt;lat&gt;]&quot;)};var zc=2*Math.PI*6371008.8;function Oc(t){return zc*Math.cos(t*Math.PI/180)}function Dc(t){return(180+t)/360}function Rc(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Fc(t,e){return t/Oc(e)}function Bc(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}var Nc=function(t,e,r){void 0===r&amp;&amp;(r=0),this.x=+t,this.y=+e,this.z=+r};Nc.fromLngLat=function(t,e){void 0===e&amp;&amp;(e=0);var r=Pc.convert(t);return new Nc(Dc(r.lng),Rc(r.lat),Fc(e,r.lat))},Nc.prototype.toLngLat=function(){return new Pc(360*this.x-180,Bc(this.y))},Nc.prototype.toAltitude=function(){return this.z*Oc(Bc(this.y))},Nc.prototype.meterInMercatorCoordinateUnits=function(){return 1/zc*(t=Bc(this.y),1/Math.cos(t*Math.PI/180));var t};var jc=function(t,e,r){this.z=t,this.x=e,this.y=r,this.key=qc(0,t,t,e,r)};jc.prototype.equals=function(t){return this.z===t.z&amp;&amp;this.x===t.x&amp;&amp;this.y===t.y},jc.prototype.url=function(t,e){var r,n,i,a,o,s=(n=this.y,i=this.z,a=Lc(256*(r=this.x),256*(n=Math.pow(2,i)-n-1),i),o=Lc(256*(r+1),256*(n+1),i),a[0]+&quot;,&quot;+a[1]+&quot;,&quot;+o[0]+&quot;,&quot;+o[1]),l=function(t,e,r){for(var n,i=&quot;&quot;,a=t;a&gt;0;a--)i+=(e&amp;(n=1&lt;&lt;a-1)?1:0)+(r&amp;n?2:0);return i}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(&quot;{prefix}&quot;,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(&quot;{z}&quot;,String(this.z)).replace(&quot;{x}&quot;,String(this.x)).replace(&quot;{y}&quot;,String(&quot;tms&quot;===e?Math.pow(2,this.z)-this.y-1:this.y)).replace(&quot;{quadkey}&quot;,l).replace(&quot;{bbox-epsg-3857}&quot;,s)},jc.prototype.getTilePoint=function(t){var e=Math.pow(2,this.z);return new i(8192*(t.x*e-this.x),8192*(t.y*e-this.y))},jc.prototype.toString=function(){return this.z+&quot;/&quot;+this.x+&quot;/&quot;+this.y};var Uc=function(t,e){this.wrap=t,this.canonical=e,this.key=qc(t,e.z,e.z,e.x,e.y)},Vc=function(t,e,r,n,i){this.overscaledZ=t,this.wrap=e,this.canonical=new jc(r,+n,+i),this.key=qc(e,t,r,n,i)};function qc(t,e,r,n,i){(t*=2)&lt;0&amp;&amp;(t=-1*t-1);var a=1&lt;&lt;r;return(a*a*t+a*i+n).toString(36)+r.toString(36)+e.toString(36)}Vc.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&amp;&amp;this.wrap===t.wrap&amp;&amp;this.canonical.equals(t.canonical)},Vc.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t&gt;this.canonical.z?new Vc(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Vc(t,this.wrap,t,this.canonical.x&gt;&gt;e,this.canonical.y&gt;&gt;e)},Vc.prototype.calculateScaledKey=function(t,e){var r=this.canonical.z-t;return t&gt;this.canonical.z?qc(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):qc(this.wrap*+e,t,t,this.canonical.x&gt;&gt;r,this.canonical.y&gt;&gt;r)},Vc.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ&lt;this.overscaledZ&amp;&amp;t.canonical.x===this.canonical.x&gt;&gt;e&amp;&amp;t.canonical.y===this.canonical.y&gt;&gt;e},Vc.prototype.children=function(t){if(this.overscaledZ&gt;=t)return[new Vc(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,r=2*this.canonical.x,n=2*this.canonical.y;return[new Vc(e,this.wrap,e,r,n),new Vc(e,this.wrap,e,r+1,n),new Vc(e,this.wrap,e,r,n+1),new Vc(e,this.wrap,e,r+1,n+1)]},Vc.prototype.isLessThan=function(t){return this.wrap&lt;t.wrap||!(this.wrap&gt;t.wrap)&amp;&amp;(this.overscaledZ&lt;t.overscaledZ||!(this.overscaledZ&gt;t.overscaledZ)&amp;&amp;(this.canonical.x&lt;t.canonical.x||!(this.canonical.x&gt;t.canonical.x)&amp;&amp;this.canonical.y&lt;t.canonical.y))},Vc.prototype.wrapped=function(){return new Vc(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},Vc.prototype.unwrapTo=function(t){return new Vc(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},Vc.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},Vc.prototype.toUnwrapped=function(){return new Uc(this.wrap,this.canonical)},Vc.prototype.toString=function(){return this.overscaledZ+&quot;/&quot;+this.canonical.x+&quot;/&quot;+this.canonical.y},Vc.prototype.getTilePoint=function(t){return this.canonical.getTilePoint(new Nc(t.x-this.wrap,t.y))},Dn(&quot;CanonicalTileID&quot;,jc),Dn(&quot;OverscaledTileID&quot;,Vc,{omit:[&quot;posMatrix&quot;]});var Hc=function(t,e,r){if(this.uid=t,e.height!==e.width)throw new RangeError(&quot;DEM tiles must be square&quot;);if(r&amp;&amp;&quot;mapbox&quot;!==r&amp;&amp;&quot;terrarium&quot;!==r)return _('&quot;'+r+'&quot; is not a valid encoding type. Valid types include &quot;mapbox&quot; and &quot;terrarium&quot;.');this.stride=e.height;var n=this.dim=e.height-2;this.data=new Uint32Array(e.data.buffer),this.encoding=r||&quot;mapbox&quot;;for(var i=0;i&lt;n;i++)this.data[this._idx(-1,i)]=this.data[this._idx(0,i)],this.data[this._idx(n,i)]=this.data[this._idx(n-1,i)],this.data[this._idx(i,-1)]=this.data[this._idx(i,0)],this.data[this._idx(i,n)]=this.data[this._idx(i,n-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(n,-1)]=this.data[this._idx(n-1,0)],this.data[this._idx(-1,n)]=this.data[this._idx(0,n-1)],this.data[this._idx(n,n)]=this.data[this._idx(n-1,n-1)]};Hc.prototype.get=function(t,e){var r=new Uint8Array(this.data.buffer),n=4*this._idx(t,e);return(&quot;terrarium&quot;===this.encoding?this._unpackTerrarium:this._unpackMapbox)(r[n],r[n+1],r[n+2])},Hc.prototype.getUnpackVector=function(){return&quot;terrarium&quot;===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},Hc.prototype._idx=function(t,e){if(t&lt;-1||t&gt;=this.dim+1||e&lt;-1||e&gt;=this.dim+1)throw new RangeError(&quot;out of range source coordinates for DEM data&quot;);return(e+1)*this.stride+(t+1)},Hc.prototype._unpackMapbox=function(t,e,r){return(256*t*256+256*e+r)/10-1e4},Hc.prototype._unpackTerrarium=function(t,e,r){return 256*t+e+r/256-32768},Hc.prototype.getPixels=function(){return new po({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Hc.prototype.backfillBorder=function(t,e,r){if(this.dim!==t.dim)throw new Error(&quot;dem dimension mismatch&quot;);var n=e*this.dim,i=e*this.dim+this.dim,a=r*this.dim,o=r*this.dim+this.dim;switch(e){case-1:n=i-1;break;case 1:i=n+1}switch(r){case-1:a=o-1;break;case 1:o=a+1}for(var s=-e*this.dim,l=-r*this.dim,c=a;c&lt;o;c++)for(var u=n;u&lt;i;u++)this.data[this._idx(u,c)]=t.data[this._idx(u+s,c+l)]},Dn(&quot;DEMData&quot;,Hc);var Gc=function(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e&lt;t.length;e++){var r=t[e];this._stringToNumber[r]=e,this._numberToString[e]=r}};Gc.prototype.encode=function(t){return this._stringToNumber[t]},Gc.prototype.decode=function(t){return this._numberToString[t]};var Yc=function(t,e,r,n,i){this.type=&quot;Feature&quot;,this._vectorTileFeature=t,t._z=e,t._x=r,t._y=n,this.properties=t.properties,this.id=i},Wc={geometry:{configurable:!0}};Wc.geometry.get=function(){return void 0===this._geometry&amp;&amp;(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},Wc.geometry.set=function(t){this._geometry=t},Yc.prototype.toJSON=function(){var t={geometry:this.geometry};for(var e in this)&quot;_geometry&quot;!==e&amp;&amp;&quot;_vectorTileFeature&quot;!==e&amp;&amp;(t[e]=this[e]);return t},Object.defineProperties(Yc.prototype,Wc);var Xc=function(){this.state={},this.stateChanges={},this.deletedStates={}};Xc.prototype.updateState=function(t,e,r){var n=String(e);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][n]=this.stateChanges[t][n]||{},u(this.stateChanges[t][n],r),null===this.deletedStates[t])for(var i in this.deletedStates[t]={},this.state[t])i!==n&amp;&amp;(this.deletedStates[t][i]=null);else if(this.deletedStates[t]&amp;&amp;null===this.deletedStates[t][n])for(var a in this.deletedStates[t][n]={},this.state[t][n])r[a]||(this.deletedStates[t][n][a]=null);else for(var o in r)this.deletedStates[t]&amp;&amp;this.deletedStates[t][n]&amp;&amp;null===this.deletedStates[t][n][o]&amp;&amp;delete this.deletedStates[t][n][o]},Xc.prototype.removeFeatureState=function(t,e,r){if(null!==this.deletedStates[t]){var n=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},r&amp;&amp;void 0!==e)null!==this.deletedStates[t][n]&amp;&amp;(this.deletedStates[t][n]=this.deletedStates[t][n]||{},this.deletedStates[t][n][r]=null);else if(void 0!==e)if(this.stateChanges[t]&amp;&amp;this.stateChanges[t][n])for(r in this.deletedStates[t][n]={},this.stateChanges[t][n])this.deletedStates[t][n][r]=null;else this.deletedStates[t][n]=null;else this.deletedStates[t]=null}},Xc.prototype.getState=function(t,e){var r=String(e),n=u({},(this.state[t]||{})[r],(this.stateChanges[t]||{})[r]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){var i=this.deletedStates[t][e];if(null===i)return{};for(var a in i)delete n[a]}return n},Xc.prototype.initializeTileState=function(t,e){t.setFeatureState(this.state,e)},Xc.prototype.coalesceChanges=function(t,e){var r={};for(var n in this.stateChanges){this.state[n]=this.state[n]||{};var i={};for(var a in this.stateChanges[n])this.state[n][a]||(this.state[n][a]={}),u(this.state[n][a],this.stateChanges[n][a]),i[a]=this.state[n][a];r[n]=i}for(var o in this.deletedStates){this.state[o]=this.state[o]||{};var s={};if(null===this.deletedStates[o])for(var l in this.state[o])s[l]={},this.state[o][l]={};else for(var c in this.deletedStates[o]){if(null===this.deletedStates[o][c])this.state[o][c]={};else for(var f=0,h=Object.keys(this.deletedStates[o][c]);f&lt;h.length;f+=1)delete this.state[o][c][h[f]];s[c]=this.state[o][c]}r[o]=r[o]||{},u(r[o],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(r).length)for(var p in t)t[p].setFeatureState(r,e)};var Zc=function(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new Ln(8192,16,0),this.grid3D=new Ln(8192,16,0),this.featureIndexArray=new ra,this.promoteId=e};function Jc(t,e,r,n,i){return v(t,(function(t,a){var o=e instanceof hi?e.get(a):null;return o&amp;&amp;o.evaluate?o.evaluate(r,n,i):o}))}function Kc(t){for(var e=1/0,r=1/0,n=-1/0,i=-1/0,a=0,o=t;a&lt;o.length;a+=1){var s=o[a];e=Math.min(e,s.x),r=Math.min(r,s.y),n=Math.max(n,s.x),i=Math.max(i,s.y)}return{minX:e,minY:r,maxX:n,maxY:i}}function Qc(t,e){return e-t}Zc.prototype.insert=function(t,e,r,n,i,a){var o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,n,i);for(var s=a?this.grid3D:this.grid,l=0;l&lt;e.length;l++){for(var c=e[l],u=[1/0,1/0,-1/0,-1/0],f=0;f&lt;c.length;f++){var h=c[f];u[0]=Math.min(u[0],h.x),u[1]=Math.min(u[1],h.y),u[2]=Math.max(u[2],h.x),u[3]=Math.max(u[3],h.y)}u[0]&lt;8192&amp;&amp;u[1]&lt;8192&amp;&amp;u[2]&gt;=0&amp;&amp;u[3]&gt;=0&amp;&amp;s.insert(o,u[0],u[1],u[2],u[3])}},Zc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new gs.VectorTile(new Hs(this.rawTileData)).layers,this.sourceLayerCoder=new Gc(this.vtLayers?Object.keys(this.vtLayers).sort():[&quot;_geojsonTileLayer&quot;])),this.vtLayers},Zc.prototype.query=function(t,e,r,n){var a=this;this.loadVTLayers();for(var o=t.params||{},s=8192/t.tileSize/t.scale,l=rn(o.filter),c=t.queryGeometry,u=t.queryPadding*s,f=Kc(c),h=this.grid.query(f.minX-u,f.minY-u,f.maxX+u,f.maxY+u),p=Kc(t.cameraQueryGeometry),d=0,g=this.grid3D.query(p.minX-u,p.minY-u,p.maxX+u,p.maxY+u,(function(e,r,n,a){return function(t,e,r,n,a){for(var o=0,s=t;o&lt;s.length;o+=1){var l=s[o];if(e&lt;=l.x&amp;&amp;r&lt;=l.y&amp;&amp;n&gt;=l.x&amp;&amp;a&gt;=l.y)return!0}var c=[new i(e,r),new i(e,a),new i(n,a),new i(n,r)];if(t.length&gt;2)for(var u=0,f=c;u&lt;f.length;u+=1)if(Wa(t,f[u]))return!0;for(var h=0;h&lt;t.length-1;h++)if(Xa(t[h],t[h+1],c))return!0;return!1}(t.cameraQueryGeometry,e-u,r-u,n+u,a+u)}));d&lt;g.length;d+=1)h.push(g[d]);h.sort(Qc);for(var m,v={},y=function(i){var u=h[i];if(u!==m){m=u;var f=a.featureIndexArray.get(u),p=null;a.loadMatchingFeature(v,f.bucketIndex,f.sourceLayerIndex,f.featureIndex,l,o.layers,o.availableImages,e,r,n,(function(e,r,n){return p||(p=Da(e)),r.queryIntersectsFeature(c,e,n,p,a.z,t.transform,s,t.pixelPosMatrix)}))}},x=0;x&lt;h.length;x++)y(x);return v},Zc.prototype.loadMatchingFeature=function(t,e,r,n,i,a,o,s,l,c,u){var f=this.bucketLayerIDs[e];if(!a||function(t,e){for(var r=0;r&lt;t.length;r++)if(e.indexOf(t[r])&gt;=0)return!0;return!1}(a,f)){var h=this.sourceLayerCoder.decode(r),p=this.vtLayers[h].feature(n);if(i.filter(new ii(this.tileID.overscaledZ),p))for(var d=this.getId(p,h),g=0;g&lt;f.length;g++){var m=f[g];if(!(a&amp;&amp;a.indexOf(m)&lt;0)){var v=s[m];if(v){var y={};void 0!==d&amp;&amp;c&amp;&amp;(y=c.getState(v.sourceLayer||&quot;_geojsonTileLayer&quot;,d));var x=l[m];x.paint=Jc(x.paint,v.paint,p,y,o),x.layout=Jc(x.layout,v.layout,p,y,o);var b=!u||u(p,v,y);if(b){var _=new Yc(p,this.z,this.x,this.y,d);_.layer=x;var w=t[m];void 0===w&amp;&amp;(w=t[m]=[]),w.push({featureIndex:n,feature:_,intersectionZ:b})}}}}}},Zc.prototype.lookupSymbolFeatures=function(t,e,r,n,i,a,o,s){var l={};this.loadVTLayers();for(var c=rn(i),u=0,f=t;u&lt;f.length;u+=1)this.loadMatchingFeature(l,r,n,f[u],c,a,o,s,e);return l},Zc.prototype.hasLayer=function(t){for(var e=0,r=this.bucketLayerIDs;e&lt;r.length;e+=1)for(var n=0,i=r[e];n&lt;i.length;n+=1)if(t===i[n])return!0;return!1},Zc.prototype.getId=function(t,e){var r=t.id;return this.promoteId&amp;&amp;&quot;boolean&quot;==typeof(r=t.properties[&quot;string&quot;==typeof this.promoteId?this.promoteId:this.promoteId[e]])&amp;&amp;(r=Number(r)),r},Dn(&quot;FeatureIndex&quot;,Zc,{omit:[&quot;rawTileData&quot;,&quot;sourceLayerCoder&quot;]});var $c=function(t,e){this.tileID=t,this.uid=h(),this.uses=0,this.tileSize=e,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state=&quot;loading&quot;};$c.prototype.registerFadeDuration=function(t){var e=t+this.timeAdded;e&lt;R.now()||this.fadeEndTime&amp;&amp;e&lt;this.fadeEndTime||(this.fadeEndTime=e)},$c.prototype.wasRequested=function(){return&quot;errored&quot;===this.state||&quot;loaded&quot;===this.state||&quot;reloading&quot;===this.state},$c.prototype.loadVectorData=function(t,e,r){if(this.hasData()&amp;&amp;this.unloadVectorData(),this.state=&quot;loaded&quot;,t){for(var n in t.featureIndex&amp;&amp;(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&amp;&amp;(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,e){var r={};if(!e)return r;for(var n=function(){var t=a[i],n=t.layerIds.map((function(t){return e.getLayer(t)})).filter(Boolean);if(0!==n.length){t.layers=n,t.stateDependentLayerIds&amp;&amp;(t.stateDependentLayers=t.stateDependentLayerIds.map((function(t){return n.filter((function(e){return e.id===t}))[0]})));for(var o=0,s=n;o&lt;s.length;o+=1)r[s[o].id]=t}},i=0,a=t;i&lt;a.length;i+=1)n();return r}(t.buckets,e.style),this.hasSymbolBuckets=!1,this.buckets){var i=this.buckets[n];if(i instanceof fc){if(this.hasSymbolBuckets=!0,!r)break;i.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(var a in this.buckets){var o=this.buckets[a];if(o instanceof fc&amp;&amp;o.hasRTLText){this.hasRTLText=!0,ni.isLoading()||ni.isLoaded()||&quot;deferred&quot;!==ei()||ri();break}}for(var s in this.queryPadding=0,this.buckets){var l=this.buckets[s];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(s).queryRadius(l))}t.imageAtlas&amp;&amp;(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&amp;&amp;(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new Xi},$c.prototype.unloadVectorData=function(){for(var t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&amp;&amp;this.imageAtlasTexture.destroy(),this.imageAtlas&amp;&amp;(this.imageAtlas=null),this.glyphAtlasTexture&amp;&amp;this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state=&quot;unloaded&quot;},$c.prototype.getBucket=function(t){return this.buckets[t.id]},$c.prototype.upload=function(t){for(var e in this.buckets){var r=this.buckets[e];r.uploadPending()&amp;&amp;r.upload(t)}var n=t.gl;this.imageAtlas&amp;&amp;!this.imageAtlas.uploaded&amp;&amp;(this.imageAtlasTexture=new Sc(t,this.imageAtlas.image,n.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&amp;&amp;(this.glyphAtlasTexture=new Sc(t,this.glyphAtlasImage,n.ALPHA),this.glyphAtlasImage=null)},$c.prototype.prepare=function(t){this.imageAtlas&amp;&amp;this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)},$c.prototype.queryRenderedFeatures=function(t,e,r,n,i,a,o,s,l,c){return this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:n,cameraQueryGeometry:i,scale:a,tileSize:this.tileSize,pixelPosMatrix:c,transform:s,params:o,queryPadding:this.queryPadding*l},t,e,r):{}},$c.prototype.querySourceFeatures=function(t,e){var r=this.latestFeatureIndex;if(r&amp;&amp;r.rawTileData){var n=r.loadVTLayers(),i=e?e.sourceLayer:&quot;&quot;,a=n._geojsonTileLayer||n[i];if(a)for(var o=rn(e&amp;&amp;e.filter),s=this.tileID.canonical,l=s.z,c=s.x,u=s.y,f={z:l,x:c,y:u},h=0;h&lt;a.length;h++){var p=a.feature(h);if(o.filter(new ii(this.tileID.overscaledZ),p)){var d=r.getId(p,i),g=new Yc(p,l,c,u,d);g.tile=f,t.push(g)}}}},$c.prototype.hasData=function(){return&quot;loaded&quot;===this.state||&quot;reloading&quot;===this.state||&quot;expired&quot;===this.state},$c.prototype.patternsLoaded=function(){return this.imageAtlas&amp;&amp;!!Object.keys(this.imageAtlas.patternPositions).length},$c.prototype.setExpiryData=function(t){var e=this.expirationTime;if(t.cacheControl){var r=M(t.cacheControl);r[&quot;max-age&quot;]&amp;&amp;(this.expirationTime=Date.now()+1e3*r[&quot;max-age&quot;])}else t.expires&amp;&amp;(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){var n=Date.now(),i=!1;if(this.expirationTime&gt;n)i=!1;else if(e)if(this.expirationTime&lt;e)i=!0;else{var a=this.expirationTime-e;a?this.expirationTime=n+Math.max(a,3e4):i=!0}else i=!0;i?(this.expiredRequestCount++,this.state=&quot;expired&quot;):this.expiredRequestCount=0}},$c.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1&lt;&lt;Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},$c.prototype.setFeatureState=function(t,e){if(this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData&amp;&amp;0!==Object.keys(t).length){var r=this.latestFeatureIndex.loadVTLayers();for(var n in this.buckets)if(e.style.hasLayer(n)){var i=this.buckets[n],a=i.layers[0].sourceLayer||&quot;_geojsonTileLayer&quot;,o=r[a],s=t[a];if(o&amp;&amp;s&amp;&amp;0!==Object.keys(s).length){i.update(s,o,this.imageAtlas&amp;&amp;this.imageAtlas.patternPositions||{});var l=e&amp;&amp;e.style&amp;&amp;e.style.getLayer(n);l&amp;&amp;(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(i)))}}}},$c.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},$c.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil&lt;R.now()},$c.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},$c.prototype.setHoldDuration=function(t){this.symbolFadeHoldUntil=R.now()+t},$c.prototype.setDependencies=function(t,e){for(var r={},n=0,i=e;n&lt;i.length;n+=1)r[i[n]]=!0;this.dependencies[t]=r},$c.prototype.hasDependency=function(t,e){for(var r=0,n=t;r&lt;n.length;r+=1){var i=this.dependencies[n[r]];if(i)for(var a=0,o=e;a&lt;o.length;a+=1)if(i[o[a]])return!0}return!1};var tu=self.performance,eu=function(t){this._marks={start:[t.url,&quot;start&quot;].join(&quot;#&quot;),end:[t.url,&quot;end&quot;].join(&quot;#&quot;),measure:t.url.toString()},tu.mark(this._marks.start)};eu.prototype.finish=function(){tu.mark(this._marks.end);var t=tu.getEntriesByName(this._marks.measure);return 0===t.length&amp;&amp;(tu.measure(this._marks.measure,this._marks.start,this._marks.end),t=tu.getEntriesByName(this._marks.measure),tu.clearMarks(this._marks.start),tu.clearMarks(this._marks.end),tu.clearMeasures(this._marks.measure)),t},t.Actor=Cc,t.AlphaImage=ho,t.CanonicalTileID=jc,t.CollisionBoxArray=Xi,t.Color=Kt,t.DEMData=Hc,t.DataConstantProperty=pi,t.DictionaryCoder=Gc,t.EXTENT=8192,t.ErrorEvent=kt,t.EvaluationParameters=ii,t.Event=Tt,t.Evented=Mt,t.FeatureIndex=Zc,t.FillBucket=rs,t.FillExtrusionBucket=xs,t.ImageAtlas=dl,t.ImagePosition=hl,t.LineBucket=Cs,t.LngLat=Pc,t.LngLatBounds=Ic,t.MercatorCoordinate=Nc,t.ONE_EM=24,t.OverscaledTileID=Vc,t.Point=i,t.Point$1=i,t.Properties=yi,t.Protobuf=Hs,t.RGBAImage=po,t.RequestManager=q,t.RequestPerformance=eu,t.ResourceType=ht,t.SegmentVector=ia,t.SourceFeatureState=Xc,t.StructArrayLayout1ui2=Hi,t.StructArrayLayout2f1f2i16=Di,t.StructArrayLayout2i4=Mi,t.StructArrayLayout3ui6=Fi,t.StructArrayLayout4i8=Ai,t.SymbolBucket=fc,t.Texture=Sc,t.Tile=$c,t.Transitionable=si,t.Uniform1f=va,t.Uniform1i=ma,t.Uniform2f=ya,t.Uniform3f=xa,t.Uniform4f=ba,t.UniformColor=_a,t.UniformMatrix4f=Ta,t.UnwrappedTileID=Uc,t.ValidationError=St,t.WritingMode=gl,t.ZoomHistory=Un,t.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},t.addDynamicAttributes=sc,t.asyncAll=function(t,e,r){if(!t.length)return r(null,[]);var n=t.length,i=new Array(t.length),a=null;t.forEach((function(t,o){e(t,(function(t,e){t&amp;&amp;(a=t),i[o]=e,0==--n&amp;&amp;r(a,i)}))}))},t.bezier=o,t.bindAll=g,t.browser=R,t.cacheEntryPossiblyAdded=function(t){++ut&gt;ot&amp;&amp;(t.getActor().send(&quot;enforceCacheSizeLimit&quot;,at),ut=0)},t.clamp=l,t.clearTileCache=function(t){var e=self.caches.delete(&quot;mapbox-tiles&quot;);t&amp;&amp;e.catch(t).then((function(){return t()}))},t.clipLine=jl,t.clone=function(t){var e=new to(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=x,t.clone$2=function(t){var e=new to(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.collisionCircleLayout=Ns,t.config=F,t.create=function(){var t=new to(16);return to!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=function(){var t=new to(9);return to!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},t.create$2=function(){var t=new to(4);return to!=Float32Array&amp;&amp;(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=qr,t.createLayout=Ti,t.createStyleLayer=function(t){return&quot;custom&quot;===t.type?new bc(t):new _c[t.type](t)},t.cross=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t},t.deepEqual=function t(e,r){if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(var n=0;n&lt;e.length;n++)if(!t(e[n],r[n]))return!1;return!0}if(&quot;object&quot;==typeof e&amp;&amp;null!==e&amp;&amp;null!==r){if(&quot;object&quot;!=typeof r)return!1;if(Object.keys(e).length!==Object.keys(r).length)return!1;for(var i in e)if(!t(e[i],r[i]))return!1;return!0}return e===r},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},t.dot$1=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},t.ease=s,t.emitValidationErrors=Cn,t.endsWith=m,t.enforceCacheSizeLimit=function(t){st(),Q&amp;&amp;Q.then((function(e){e.keys().then((function(r){for(var n=0;n&lt;r.length-t;n++)e.delete(r[n])}))}))},t.evaluateSizeForFeature=Il,t.evaluateSizeForZoom=Pl,t.evaluateVariableOffset=$l,t.evented=ti,t.extend=u,t.featureFilter=rn,t.filterObject=y,t.fromRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},t.getAnchorAlignment=Al,t.getAnchorJustification=tc,t.getArrayBuffer=yt,t.getImage=bt,t.getJSON=function(t,e){return vt(u(t,{type:&quot;json&quot;}),e)},t.getRTLTextPluginStatus=ei,t.getReferrer=mt,t.getVideo=function(t,e){var r,n,i=self.document.createElement(&quot;video&quot;);i.muted=!0,i.onloadstart=function(){e(null,i)};for(var a=0;a&lt;t.length;a++){var o=self.document.createElement(&quot;source&quot;);r=t[a],n=void 0,(n=self.document.createElement(&quot;a&quot;)).href=r,(n.protocol!==self.document.location.protocol||n.host!==self.document.location.host)&amp;&amp;(i.crossOrigin=&quot;Anonymous&quot;),o.src=t[a],i.appendChild(o)}return{cancel:function(){}}},t.identity=eo,t.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*g-f*d,M=u*m-h*d,A=u*v-p*d,S=f*m-h*g,E=f*v-p*g,C=h*v-p*m,L=y*C-x*E+b*S+_*A-w*M+T*k;return L?(t[0]=(s*C-l*E+c*S)*(L=1/L),t[1]=(i*E-n*C-a*S)*L,t[2]=(g*T-m*w+v*_)*L,t[3]=(h*w-f*T-p*_)*L,t[4]=(l*A-o*C-c*M)*L,t[5]=(r*C-i*A+a*M)*L,t[6]=(m*b-d*T-v*x)*L,t[7]=(u*T-h*b+p*x)*L,t[8]=(o*E-s*A+c*k)*L,t[9]=(n*A-r*E-a*k)*L,t[10]=(d*w-g*b+v*y)*L,t[11]=(f*b-u*w-p*y)*L,t[12]=(s*M-o*S-l*k)*L,t[13]=(r*S-n*M+i*k)*L,t[14]=(g*x-d*_-m*y)*L,t[15]=(u*_-f*x+h*y)*L,t):null},t.isChar=Vn,t.isMapboxURL=H,t.keysDifference=function(t,e){var r=[];for(var n in t)n in e||r.push(n);return r},t.makeRequest=vt,t.mapObject=v,t.mercatorXfromLng=Dc,t.mercatorYfromLat=Rc,t.mercatorZfromAltitude=Fc,t.mul=io,t.multiply=ro,t.mvt=gs,t.normalize=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;return a&gt;0&amp;&amp;(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t},t.number=Ue,t.offscreenCanvasSupported=ft,t.ortho=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t},t.parseGlyphPBF=function(t){return new Hs(t).readFields(ll,[])},t.pbf=Hs,t.performSymbolLayout=function(t,e,r,n,i,a,o){t.createArrays(),t.tilePixelRatio=8192/(512*t.overscaling),t.compareText={},t.iconsNeedLinear=!1;var s=t.layers[0].layout,l=t.layers[0]._unevaluatedLayout._values,c={};if(&quot;composite&quot;===t.textSizeData.kind){var u=t.textSizeData,f=u.maxZoom;c.compositeTextSizes=[l[&quot;text-size&quot;].possiblyEvaluate(new ii(u.minZoom),o),l[&quot;text-size&quot;].possiblyEvaluate(new ii(f),o)]}if(&quot;composite&quot;===t.iconSizeData.kind){var h=t.iconSizeData,p=h.maxZoom;c.compositeIconSizes=[l[&quot;icon-size&quot;].possiblyEvaluate(new ii(h.minZoom),o),l[&quot;icon-size&quot;].possiblyEvaluate(new ii(p),o)]}c.layoutTextSize=l[&quot;text-size&quot;].possiblyEvaluate(new ii(t.zoom+1),o),c.layoutIconSize=l[&quot;icon-size&quot;].possiblyEvaluate(new ii(t.zoom+1),o),c.textMaxSize=l[&quot;text-size&quot;].possiblyEvaluate(new ii(18));for(var d=24*s.get(&quot;text-line-height&quot;),g=&quot;map&quot;===s.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==s.get(&quot;symbol-placement&quot;),m=s.get(&quot;text-keep-upright&quot;),v=s.get(&quot;text-size&quot;),y=function(){var a=b[x],l=s.get(&quot;text-font&quot;).evaluate(a,{},o).join(&quot;,&quot;),u=v.evaluate(a,{},o),f=c.layoutTextSize.evaluate(a,{},o),h=c.layoutIconSize.evaluate(a,{},o),p={horizontal:{},vertical:void 0},y=a.text,w=[0,0];if(y){var T=y.toString(),k=24*s.get(&quot;text-letter-spacing&quot;).evaluate(a,{},o),M=function(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(n=r[e].charCodeAt(0),Vn.Arabic(n)||Vn[&quot;Arabic Supplement&quot;](n)||Vn[&quot;Arabic Extended-A&quot;](n)||Vn[&quot;Arabic Presentation Forms-A&quot;](n)||Vn[&quot;Arabic Presentation Forms-B&quot;](n))return!1;var n;return!0}(T)?k:0,A=s.get(&quot;text-anchor&quot;).evaluate(a,{},o),S=s.get(&quot;text-variable-anchor&quot;);if(!S){var E=s.get(&quot;text-radial-offset&quot;).evaluate(a,{},o);w=E?$l(A,[24*E,Ql]):s.get(&quot;text-offset&quot;).evaluate(a,{},o).map((function(t){return 24*t}))}var C=g?&quot;center&quot;:s.get(&quot;text-justify&quot;).evaluate(a,{},o),L=s.get(&quot;symbol-placement&quot;),I=&quot;point&quot;===L?24*s.get(&quot;text-max-width&quot;).evaluate(a,{},o):0,P=function(){t.allowVerticalPlacement&amp;&amp;qn(T)&amp;&amp;(p.vertical=yl(y,e,r,i,l,I,d,A,&quot;left&quot;,M,w,gl.vertical,!0,L,f,u))};if(!g&amp;&amp;S){for(var z=&quot;auto&quot;===C?S.map((function(t){return tc(t)})):[C],O=!1,D=0;D&lt;z.length;D++){var R=z[D];if(!p.horizontal[R])if(O)p.horizontal[R]=p.horizontal[0];else{var F=yl(y,e,r,i,l,I,d,&quot;center&quot;,R,M,w,gl.horizontal,!1,L,f,u);F&amp;&amp;(p.horizontal[R]=F,O=1===F.positionedLines.length)}}P()}else{&quot;auto&quot;===C&amp;&amp;(C=tc(A));var B=yl(y,e,r,i,l,I,d,A,C,M,w,gl.horizontal,!1,L,f,u);B&amp;&amp;(p.horizontal[C]=B),P(),qn(T)&amp;&amp;g&amp;&amp;m&amp;&amp;(p.vertical=yl(y,e,r,i,l,I,d,A,C,M,w,gl.vertical,!1,L,f,u))}}var N=void 0,j=!1;if(a.icon&amp;&amp;a.icon.name){var U=n[a.icon.name];U&amp;&amp;(N=function(t,e,r){var n=Al(r),i=e[0]-t.displaySize[0]*n.horizontalAlign,a=e[1]-t.displaySize[1]*n.verticalAlign;return{image:t,top:a,bottom:a+t.displaySize[1],left:i,right:i+t.displaySize[0]}}(i[a.icon.name],s.get(&quot;icon-offset&quot;).evaluate(a,{},o),s.get(&quot;icon-anchor&quot;).evaluate(a,{},o)),j=U.sdf,void 0===t.sdfIcons?t.sdfIcons=U.sdf:t.sdfIcons!==U.sdf&amp;&amp;_(&quot;Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer&quot;),(U.pixelRatio!==t.pixelRatio||0!==s.get(&quot;icon-rotate&quot;).constantOr(1))&amp;&amp;(t.iconsNeedLinear=!0))}var V=rc(p.horizontal)||p.vertical;t.iconsInText=!!V&amp;&amp;V.iconsInText,(V||N)&amp;&amp;function(t,e,r,n,i,a,o,s,l,c,u){var f=a.textMaxSize.evaluate(e,{});void 0===f&amp;&amp;(f=o);var h,p=t.layers[0].layout,d=p.get(&quot;icon-offset&quot;).evaluate(e,{},u),g=rc(r.horizontal),m=o/24,v=t.tilePixelRatio*m,y=t.tilePixelRatio*f/24,x=t.tilePixelRatio*s,b=t.tilePixelRatio*p.get(&quot;symbol-spacing&quot;),w=p.get(&quot;text-padding&quot;)*t.tilePixelRatio,T=p.get(&quot;icon-padding&quot;)*t.tilePixelRatio,k=p.get(&quot;text-max-angle&quot;)/180*Math.PI,M=&quot;map&quot;===p.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==p.get(&quot;symbol-placement&quot;),A=&quot;map&quot;===p.get(&quot;icon-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==p.get(&quot;symbol-placement&quot;),S=p.get(&quot;symbol-placement&quot;),E=b/2,C=p.get(&quot;icon-text-fit&quot;);n&amp;&amp;&quot;none&quot;!==C&amp;&amp;(t.allowVerticalPlacement&amp;&amp;r.vertical&amp;&amp;(h=El(n,r.vertical,C,p.get(&quot;icon-text-fit-padding&quot;),d,m)),g&amp;&amp;(n=El(n,g,C,p.get(&quot;icon-text-fit-padding&quot;),d,m)));var L=function(s,f){f.x&lt;0||f.x&gt;=8192||f.y&lt;0||f.y&gt;=8192||function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,w,T,k,M){var A,S,E,C,L,I=t.addToLineVertexArray(e,r),P=0,z=0,O=0,D=0,R=-1,F=-1,B={},N=ca(&quot;&quot;),j=0,U=0;if(void 0===s._unevaluatedLayout.getValue(&quot;text-radial-offset&quot;)?(j=(A=s.layout.get(&quot;text-offset&quot;).evaluate(b,{},k).map((function(t){return 24*t})))[0],U=A[1]):(j=24*s.layout.get(&quot;text-radial-offset&quot;).evaluate(b,{},k),U=Ql),t.allowVerticalPlacement&amp;&amp;n.vertical){var V=s.layout.get(&quot;text-rotate&quot;).evaluate(b,{},k)+90;C=new Yl(l,e,c,u,f,n.vertical,h,p,d,V),o&amp;&amp;(L=new Yl(l,e,c,u,f,o,m,v,d,V))}if(i){var q=s.layout.get(&quot;icon-rotate&quot;).evaluate(b,{}),H=&quot;none&quot;!==s.layout.get(&quot;icon-text-fit&quot;),G=Ul(i,q,T,H),Y=o?Ul(o,q,T,H):void 0;E=new Yl(l,e,c,u,f,i,m,v,!1,q),P=4*G.length;var W=t.iconSizeData,X=null;&quot;source&quot;===W.kind?(X=[128*s.layout.get(&quot;icon-size&quot;).evaluate(b,{})])[0]&gt;32640&amp;&amp;_(t.layerIds[0]+': Value for &quot;icon-size&quot; is &gt;= 255. Reduce your &quot;icon-size&quot;.'):&quot;composite&quot;===W.kind&amp;&amp;((X=[128*w.compositeIconSizes[0].evaluate(b,{},k),128*w.compositeIconSizes[1].evaluate(b,{},k)])[0]&gt;32640||X[1]&gt;32640)&amp;&amp;_(t.layerIds[0]+': Value for &quot;icon-size&quot; is &gt;= 255. Reduce your &quot;icon-size&quot;.'),t.addSymbols(t.icon,G,X,x,y,b,!1,e,I.lineStartIndex,I.lineLength,-1,k),R=t.icon.placedSymbolArray.length-1,Y&amp;&amp;(z=4*Y.length,t.addSymbols(t.icon,Y,X,x,y,b,gl.vertical,e,I.lineStartIndex,I.lineLength,-1,k),F=t.icon.placedSymbolArray.length-1)}for(var Z in n.horizontal){var J=n.horizontal[Z];if(!S){N=ca(J.text);var K=s.layout.get(&quot;text-rotate&quot;).evaluate(b,{},k);S=new Yl(l,e,c,u,f,J,h,p,d,K)}var Q=1===J.positionedLines.length;if(O+=ec(t,e,J,a,s,d,b,g,I,n.vertical?gl.horizontal:gl.horizontalOnly,Q?Object.keys(n.horizontal):[Z],B,R,w,k),Q)break}n.vertical&amp;&amp;(D+=ec(t,e,n.vertical,a,s,d,b,g,I,gl.vertical,[&quot;vertical&quot;],B,F,w,k));var $=S?S.boxStartIndex:t.collisionBoxArray.length,tt=S?S.boxEndIndex:t.collisionBoxArray.length,et=C?C.boxStartIndex:t.collisionBoxArray.length,rt=C?C.boxEndIndex:t.collisionBoxArray.length,nt=E?E.boxStartIndex:t.collisionBoxArray.length,it=E?E.boxEndIndex:t.collisionBoxArray.length,at=L?L.boxStartIndex:t.collisionBoxArray.length,ot=L?L.boxEndIndex:t.collisionBoxArray.length,st=-1,lt=function(t,e){return t&amp;&amp;t.circleDiameter?Math.max(t.circleDiameter,e):e};st=lt(S,st),st=lt(C,st),st=lt(E,st);var ct=(st=lt(L,st))&gt;-1?1:0;ct&amp;&amp;(st*=M/24),t.glyphOffsetArray.length&gt;=fc.MAX_GLYPHS&amp;&amp;_(&quot;Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907&quot;),void 0!==b.sortKey&amp;&amp;t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey),t.symbolInstances.emplaceBack(e.x,e.y,B.right&gt;=0?B.right:-1,B.center&gt;=0?B.center:-1,B.left&gt;=0?B.left:-1,B.vertical||-1,R,F,N,$,tt,et,rt,nt,it,at,ot,c,O,D,P,z,ct,0,h,j,U,st)}(t,f,s,r,n,i,h,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,v,w,M,l,x,T,A,d,e,a,c,u,o)};if(&quot;line&quot;===S)for(var I=0,P=jl(e.geometry,0,0,8192,8192);I&lt;P.length;I+=1)for(var z=P[I],O=0,D=Nl(z,b,k,r.vertical||g,n,24,y,t.overscaling,8192);O&lt;D.length;O+=1){var R=D[O];g&amp;&amp;nc(t,g.text,E,R)||L(z,R)}else if(&quot;line-center&quot;===S)for(var F=0,B=e.geometry;F&lt;B.length;F+=1){var N=B[F];if(N.length&gt;1){var j=Bl(N,k,r.vertical||g,n,24,y);j&amp;&amp;L(N,j)}}else if(&quot;Polygon&quot;===e.type)for(var U=0,V=Qo(e.geometry,0);U&lt;V.length;U+=1){var q=V[U],H=Zl(q,16);L(q[0],new Cl(H.x,H.y,0))}else if(&quot;LineString&quot;===e.type)for(var G=0,Y=e.geometry;G&lt;Y.length;G+=1){var W=Y[G];L(W,new Cl(W[0].x,W[0].y,0))}else if(&quot;Point&quot;===e.type)for(var X=0,Z=e.geometry;X&lt;Z.length;X+=1)for(var J=0,K=Z[X];J&lt;K.length;J+=1){var Q=K[J];L([Q],new Cl(Q.x,Q.y,0))}}(t,a,p,N,n,c,f,h,w,j,o)},x=0,b=t.features;x&lt;b.length;x+=1)y();a&amp;&amp;t.generateCollisionDebugBuffers()},t.perspective=function(t,e,r,n,i){var a,o=1/Math.tan(e/2);return t[0]=o/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&amp;&amp;i!==1/0?(t[10]=(i+n)*(a=1/(n-i)),t[14]=2*i*n*a):(t[10]=-1,t[14]=-2*n),t},t.pick=function(t,e){for(var r={},n=0;n&lt;e.length;n++){var i=e[n];i in t&amp;&amp;(r[i]=t[i])}return r},t.plugin=ni,t.polygonIntersectsPolygon=Ba,t.postMapLoadEvent=it,t.postTurnstileEvent=rt,t.potpack=fl,t.refProperties=[&quot;type&quot;,&quot;source&quot;,&quot;source-layer&quot;,&quot;minzoom&quot;,&quot;maxzoom&quot;,&quot;filter&quot;,&quot;layout&quot;],t.register=Dn,t.registerForPluginStateChange=function(t){return t({pluginStatus:Jn,pluginURL:Kn}),ti.on(&quot;pluginStateChange&quot;,t),t},t.rotate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l+a*s,t[1]=i*l+o*s,t[2]=n*-s+a*l,t[3]=i*-s+o*l,t},t.rotateX=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];return e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t},t.rotateZ=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];return e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t},t.scale=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.scale$1=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t},t.scale$2=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t},t.setCacheLimits=function(t,e){at=t,ot=e},t.setRTLTextPlugin=function(t,e,r){if(void 0===r&amp;&amp;(r=!1),&quot;deferred&quot;===Jn||&quot;loading&quot;===Jn||&quot;loaded&quot;===Jn)throw new Error(&quot;setRTLTextPlugin cannot be called multiple times.&quot;);Kn=R.resolveURL(t),Jn=&quot;deferred&quot;,Zn=e,$n(),r||ri()},t.sphericalToCartesian=function(t){var e=t[0],r=t[1],n=t[2];return r+=90,r*=Math.PI/180,n*=Math.PI/180,{x:e*Math.cos(r)*Math.sin(n),y:e*Math.sin(r)*Math.sin(n),z:e*Math.cos(n)}},t.sqrLen=function(t){var e=t[0],r=t[1];return e*e+r*r},t.styleSpec=At,t.sub=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t},t.symbolSize=zl,t.transformMat3=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t},t.transformMat4=ao,t.translate=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],m=r[1],v=r[2];return e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n=e[0],t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*m+f*v+e[12],t[13]=i*g+l*m+h*v+e[13],t[14]=a*g+c*m+p*v+e[14],t[15]=o*g+u*m+d*v+e[15]),t},t.triggerPluginCompletionEvent=Qn,t.uniqueId=h,t.validateCustomStyleLayer=function(t){var e=[],r=t.id;return void 0===r&amp;&amp;e.push({message:&quot;layers.&quot;+r+': missing required property &quot;id&quot;'}),void 0===t.render&amp;&amp;e.push({message:&quot;layers.&quot;+r+': missing required method &quot;render&quot;'}),t.renderingMode&amp;&amp;&quot;2d&quot;!==t.renderingMode&amp;&amp;&quot;3d&quot;!==t.renderingMode&amp;&amp;e.push({message:&quot;layers.&quot;+r+': property &quot;renderingMode&quot; must be either &quot;2d&quot; or &quot;3d&quot;'}),e},t.validateLight=An,t.validateStyle=Mn,t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.vectorTile=gs,t.version=&quot;1.10.1&quot;,t.warnOnce=_,t.webpSupported=B,t.window=self,t.wrap=c})),n(0,(function(t){function e(t){var r=typeof t;if(&quot;number&quot;===r||&quot;boolean&quot;===r||&quot;string&quot;===r||null==t)return JSON.stringify(t);if(Array.isArray(t)){for(var n=&quot;[&quot;,i=0,a=t;i&lt;a.length;i+=1)n+=e(a[i])+&quot;,&quot;;return n+&quot;]&quot;}for(var o=Object.keys(t).sort(),s=&quot;{&quot;,l=0;l&lt;o.length;l++)s+=JSON.stringify(o[l])+&quot;:&quot;+e(t[o[l]])+&quot;,&quot;;return s+&quot;}&quot;}function r(r){for(var n=&quot;&quot;,i=0,a=t.refProperties;i&lt;a.length;i+=1)n+=&quot;/&quot;+e(r[a[i]]);return n}var n=function(t){this.keyCache={},t&amp;&amp;this.replace(t)};n.prototype.replace=function(t){this._layerConfigs={},this._layers={},this.update(t,[])},n.prototype.update=function(e,n){for(var i=this,a=0,o=e;a&lt;o.length;a+=1){var s=o[a];this._layerConfigs[s.id]=s;var l=this._layers[s.id]=t.createStyleLayer(s);l._featureFilter=t.featureFilter(l.filter),this.keyCache[s.id]&amp;&amp;delete this.keyCache[s.id]}for(var c=0,u=n;c&lt;u.length;c+=1){var f=u[c];delete this.keyCache[f],delete this._layerConfigs[f],delete this._layers[f]}this.familiesBySource={};for(var h=0,p=function(t,e){for(var n={},i=0;i&lt;t.length;i++){var a=e&amp;&amp;e[t[i].id]||r(t[i]);e&amp;&amp;(e[t[i].id]=a);var o=n[a];o||(o=n[a]=[]),o.push(t[i])}var s=[];for(var l in n)s.push(n[l]);return s}(t.values(this._layerConfigs),this.keyCache);h&lt;p.length;h+=1){var d=p[h].map((function(t){return i._layers[t.id]})),g=d[0];if(&quot;none&quot;!==g.visibility){var m=g.source||&quot;&quot;,v=this.familiesBySource[m];v||(v=this.familiesBySource[m]={});var y=g.sourceLayer||&quot;_geojsonTileLayer&quot;,x=v[y];x||(x=v[y]=[]),x.push(d)}}};var i=function(e){var r={},n=[];for(var i in e){var a=e[i],o=r[i]={};for(var s in a){var l=a[+s];if(l&amp;&amp;0!==l.bitmap.width&amp;&amp;0!==l.bitmap.height){var c={x:0,y:0,w:l.bitmap.width+2,h:l.bitmap.height+2};n.push(c),o[s]={rect:c,metrics:l.metrics}}}}var u=t.potpack(n),f=new t.AlphaImage({width:u.w||1,height:u.h||1});for(var h in e){var p=e[h];for(var d in p){var g=p[+d];if(g&amp;&amp;0!==g.bitmap.width&amp;&amp;0!==g.bitmap.height){var m=r[h][d].rect;t.AlphaImage.copy(g.bitmap,f,{x:0,y:0},{x:m.x+1,y:m.y+1},g.bitmap)}}}this.image=f,this.positions=r};t.register(&quot;GlyphAtlas&quot;,i);var a=function(e){this.tileID=new t.OverscaledTileID(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId};function o(e,r,n){for(var i=new t.EvaluationParameters(r),a=0,o=e;a&lt;o.length;a+=1)o[a].recalculate(i,n)}function s(e,r){var n=t.getArrayBuffer(e.request,(function(e,n,i,a){e?r(e):n&amp;&amp;r(null,{vectorTile:new t.vectorTile.VectorTile(new t.pbf(n)),rawData:n,cacheControl:i,expires:a})}));return function(){n.cancel(),r()}}a.prototype.parse=function(e,r,n,a,s){var l=this;this.status=&quot;parsing&quot;,this.data=e,this.collisionBoxArray=new t.CollisionBoxArray;var c=new t.DictionaryCoder(Object.keys(e.layers).sort()),u=new t.FeatureIndex(this.tileID,this.promoteId);u.bucketLayerIDs=[];var f,h,p,d,g={},m={featureIndex:u,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:n},v=r.familiesBySource[this.source];for(var y in v){var x=e.layers[y];if(x){1===x.version&amp;&amp;t.warnOnce('Vector tile source &quot;'+this.source+'&quot; layer &quot;'+y+'&quot; does not use vector tile spec v2 and therefore may have some rendering errors.');for(var b=c.encode(y),_=[],w=0;w&lt;x.length;w++){var T=x.feature(w),k=u.getId(T,y);_.push({feature:T,id:k,index:w,sourceLayerIndex:b})}for(var M=0,A=v[y];M&lt;A.length;M+=1){var S=A[M],E=S[0];E.minzoom&amp;&amp;this.zoom&lt;Math.floor(E.minzoom)||E.maxzoom&amp;&amp;this.zoom&gt;=E.maxzoom||&quot;none&quot;!==E.visibility&amp;&amp;(o(S,this.zoom,n),(g[E.id]=E.createBucket({index:u.bucketLayerIDs.length,layers:S,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:b,sourceID:this.source})).populate(_,m,this.tileID.canonical),u.bucketLayerIDs.push(S.map((function(t){return t.id}))))}}}var C=t.mapObject(m.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(C).length?a.send(&quot;getGlyphs&quot;,{uid:this.uid,stacks:C},(function(t,e){f||(f=t,h=e,P.call(l))})):h={};var L=Object.keys(m.iconDependencies);L.length?a.send(&quot;getImages&quot;,{icons:L,source:this.source,tileID:this.tileID,type:&quot;icons&quot;},(function(t,e){f||(f=t,p=e,P.call(l))})):p={};var I=Object.keys(m.patternDependencies);function P(){if(f)return s(f);if(h&amp;&amp;p&amp;&amp;d){var e=new i(h),r=new t.ImageAtlas(p,d);for(var a in g){var l=g[a];l instanceof t.SymbolBucket?(o(l.layers,this.zoom,n),t.performSymbolLayout(l,h,e.positions,p,r.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):l.hasPattern&amp;&amp;(l instanceof t.LineBucket||l instanceof t.FillBucket||l instanceof t.FillExtrusionBucket)&amp;&amp;(o(l.layers,this.zoom,n),l.addFeatures(m,this.tileID.canonical,r.patternPositions))}this.status=&quot;done&quot;,s(null,{buckets:t.values(g).filter((function(t){return!t.isEmpty()})),featureIndex:u,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:r,glyphMap:this.returnDependencies?h:null,iconMap:this.returnDependencies?p:null,glyphPositions:this.returnDependencies?e.positions:null})}}I.length?a.send(&quot;getImages&quot;,{icons:I,source:this.source,tileID:this.tileID,type:&quot;patterns&quot;},(function(t,e){f||(f=t,d=e,P.call(l))})):d={},P.call(this)};var l=function(t,e,r,n){this.actor=t,this.layerIndex=e,this.availableImages=r,this.loadVectorData=n||s,this.loading={},this.loaded={}};l.prototype.loadTile=function(e,r){var n=this,i=e.uid;this.loading||(this.loading={});var o=!!(e&amp;&amp;e.request&amp;&amp;e.request.collectResourceTiming)&amp;&amp;new t.RequestPerformance(e.request),s=this.loading[i]=new a(e);s.abort=this.loadVectorData(e,(function(e,a){if(delete n.loading[i],e||!a)return s.status=&quot;done&quot;,n.loaded[i]=s,r(e);var l=a.rawData,c={};a.expires&amp;&amp;(c.expires=a.expires),a.cacheControl&amp;&amp;(c.cacheControl=a.cacheControl);var u={};if(o){var f=o.finish();f&amp;&amp;(u.resourceTiming=JSON.parse(JSON.stringify(f)))}s.vectorTile=a.vectorTile,s.parse(a.vectorTile,n.layerIndex,n.availableImages,n.actor,(function(e,n){if(e||!n)return r(e);r(null,t.extend({rawTileData:l.slice(0)},n,c,u))})),n.loaded=n.loaded||{},n.loaded[i]=s}))},l.prototype.reloadTile=function(t,e){var r=this,n=this.loaded,i=t.uid,a=this;if(n&amp;&amp;n[i]){var o=n[i];o.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,n){var i=o.reloadCallback;i&amp;&amp;(delete o.reloadCallback,o.parse(o.vectorTile,a.layerIndex,r.availableImages,a.actor,i)),e(t,n)};&quot;parsing&quot;===o.status?o.reloadCallback=s:&quot;done&quot;===o.status&amp;&amp;(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},l.prototype.abortTile=function(t,e){var r=this.loading,n=t.uid;r&amp;&amp;r[n]&amp;&amp;r[n].abort&amp;&amp;(r[n].abort(),delete r[n]),e()},l.prototype.removeTile=function(t,e){var r=this.loaded,n=t.uid;r&amp;&amp;r[n]&amp;&amp;delete r[n],e()};var c=t.window.ImageBitmap,u=function(){this.loaded={}};function f(t,e){if(0!==t.length){h(t[0],e);for(var r=1;r&lt;t.length;r++)h(t[r],!e)}}function h(t,e){for(var r=0,n=0,i=t.length,a=i-1;n&lt;i;a=n++)r+=(t[n][0]-t[a][0])*(t[a][1]+t[n][1]);r&gt;=0!=!!e&amp;&amp;t.reverse()}u.prototype.loadTile=function(e,r){var n=e.uid,i=e.encoding,a=e.rawImageData,o=c&amp;&amp;a instanceof c?this.getImageData(a):a,s=new t.DEMData(n,o,i);this.loaded=this.loaded||{},this.loaded[n]=s,r(null,s)},u.prototype.getImageData=function(e){this.offscreenCanvas&amp;&amp;this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext(&quot;2d&quot;)),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);var r=this.offscreenCanvasContext.getImageData(-1,-1,e.width+2,e.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new t.RGBAImage({width:r.width,height:r.height},r.data)},u.prototype.removeTile=function(t){var e=this.loaded,r=t.uid;e&amp;&amp;e[r]&amp;&amp;delete e[r]};var p=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,d=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,&quot;id&quot;in e&amp;&amp;!isNaN(e.id)&amp;&amp;(this.id=parseInt(e.id,10))};d.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],r=0,n=this._feature.geometry;r&lt;n.length;r+=1){var i=n[r];e.push([new t.Point$1(i[0],i[1])])}return e}for(var a=[],o=0,s=this._feature.geometry;o&lt;s.length;o+=1){for(var l=[],c=0,u=s[o];c&lt;u.length;c+=1){var f=u[c];l.push(new t.Point$1(f[0],f[1]))}a.push(l)}return a},d.prototype.toGeoJSON=function(t,e,r){return p.call(this,t,e,r)};var g=function(e){this.layers={_geojsonTileLayer:this},this.name=&quot;_geojsonTileLayer&quot;,this.extent=t.EXTENT,this.length=e.length,this._features=e};g.prototype.feature=function(t){return new d(this._features[t])};var m=t.vectorTile.VectorTileFeature,v=y;function y(t,e){this.options=e||{},this.features=t,this.length=t.length}function x(t,e){this.id=&quot;number&quot;==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}y.prototype.feature=function(t){return new x(this.features[t],this.options.extent)},x.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var r=0;r&lt;e.length;r++){for(var n=e[r],i=[],a=0;a&lt;n.length;a++)i.push(new t.Point$1(n[a][0],n[a][1]));this.geometry.push(i)}return this.geometry},x.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,r=-1/0,n=1/0,i=-1/0,a=0;a&lt;t.length;a++)for(var o=t[a],s=0;s&lt;o.length;s++){var l=o[s];e=Math.min(e,l.x),r=Math.max(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.y)}return[e,n,r,i]},x.prototype.toGeoJSON=m.prototype.toGeoJSON;var b=w,_=v;function w(e){var r=new t.pbf;return function(t,e){for(var r in t.layers)e.writeMessage(3,T,t.layers[r])}(e,r),r.finish()}function T(t,e){var r;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||&quot;&quot;),e.writeVarintField(5,t.extent||4096);var n={keys:[],values:[],keycache:{},valuecache:{}};for(r=0;r&lt;t.length;r++)n.feature=t.feature(r),e.writeMessage(2,k,n);var i=n.keys;for(r=0;r&lt;i.length;r++)e.writeStringField(3,i[r]);var a=n.values;for(r=0;r&lt;a.length;r++)e.writeMessage(4,C,a[r])}function k(t,e){var r=t.feature;void 0!==r.id&amp;&amp;e.writeVarintField(1,r.id),e.writeMessage(2,M,t),e.writeVarintField(3,r.type),e.writeMessage(4,E,r)}function M(t,e){var r=t.feature,n=t.keys,i=t.values,a=t.keycache,o=t.valuecache;for(var s in r.properties){var l=a[s];void 0===l&amp;&amp;(n.push(s),a[s]=l=n.length-1),e.writeVarint(l);var c=r.properties[s],u=typeof c;&quot;string&quot;!==u&amp;&amp;&quot;boolean&quot;!==u&amp;&amp;&quot;number&quot;!==u&amp;&amp;(c=JSON.stringify(c));var f=u+&quot;:&quot;+c,h=o[f];void 0===h&amp;&amp;(i.push(c),o[f]=h=i.length-1),e.writeVarint(h)}}function A(t,e){return(e&lt;&lt;3)+(7&amp;t)}function S(t){return t&lt;&lt;1^t&gt;&gt;31}function E(t,e){for(var r=t.loadGeometry(),n=t.type,i=0,a=0,o=r.length,s=0;s&lt;o;s++){var l=r[s],c=1;1===n&amp;&amp;(c=l.length),e.writeVarint(A(1,c));for(var u=3===n?l.length-1:l.length,f=0;f&lt;u;f++){1===f&amp;&amp;1!==n&amp;&amp;e.writeVarint(A(2,u-1));var h=l[f].x-i,p=l[f].y-a;e.writeVarint(S(h)),e.writeVarint(S(p)),i+=h,a+=p}3===n&amp;&amp;e.writeVarint(A(7,1))}}function C(t,e){var r=typeof t;&quot;string&quot;===r?e.writeStringField(1,t):&quot;boolean&quot;===r?e.writeBooleanField(7,t):&quot;number&quot;===r&amp;&amp;(t%1!=0?e.writeDoubleField(3,t):t&lt;0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}function L(t,e,r,n){I(t,r,n),I(e,2*r,2*n),I(e,2*r+1,2*n+1)}function I(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function P(t,e,r,n){var i=t-r,a=e-n;return i*i+a*a}b.fromVectorTileJs=w,b.fromGeojsonVt=function(t,e){e=e||{};var r={};for(var n in t)r[n]=new v(t[n].features,e),r[n].name=n,r[n].version=e.version,r[n].extent=e.extent;return w({layers:r})},b.GeoJSONWrapper=_;var z=function(t){return t[0]},O=function(t){return t[1]},D=function(t,e,r,n,i){void 0===e&amp;&amp;(e=z),void 0===r&amp;&amp;(r=O),void 0===n&amp;&amp;(n=64),void 0===i&amp;&amp;(i=Float64Array),this.nodeSize=n,this.points=t;for(var a=t.length&lt;65536?Uint16Array:Uint32Array,o=this.ids=new a(t.length),s=this.coords=new i(2*t.length),l=0;l&lt;t.length;l++)o[l]=l,s[2*l]=e(t[l]),s[2*l+1]=r(t[l]);!function t(e,r,n,i,a,o){if(!(a-i&lt;=n)){var s=i+a&gt;&gt;1;!function t(e,r,n,i,a,o){for(;a&gt;i;){if(a-i&gt;600){var s=a-i+1,l=n-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2&lt;0?-1:1);t(e,r,n,Math.max(i,Math.floor(n-l*u/s+f)),Math.min(a,Math.floor(n+(s-l)*u/s+f)),o)}var h=r[2*n+o],p=i,d=a;for(L(e,r,i,n),r[2*a+o]&gt;h&amp;&amp;L(e,r,i,a);p&lt;d;){for(L(e,r,p,d),p++,d--;r[2*p+o]&lt;h;)p++;for(;r[2*d+o]&gt;h;)d--}r[2*i+o]===h?L(e,r,i,d):L(e,r,++d,a),d&lt;=n&amp;&amp;(i=d+1),n&lt;=d&amp;&amp;(a=d-1)}}(e,r,s,i,a,o%2),t(e,r,n,i,s-1,o+1),t(e,r,n,s+1,a,o+1)}}(o,s,n,0,o.length-1,0)};D.prototype.range=function(t,e,r,n){return function(t,e,r,n,i,a,o){for(var s,l,c=[0,t.length-1,0],u=[];c.length;){var f=c.pop(),h=c.pop(),p=c.pop();if(h-p&lt;=o)for(var d=p;d&lt;=h;d++)l=e[2*d+1],(s=e[2*d])&gt;=r&amp;&amp;s&lt;=i&amp;&amp;l&gt;=n&amp;&amp;l&lt;=a&amp;&amp;u.push(t[d]);else{var g=Math.floor((p+h)/2);l=e[2*g+1],(s=e[2*g])&gt;=r&amp;&amp;s&lt;=i&amp;&amp;l&gt;=n&amp;&amp;l&lt;=a&amp;&amp;u.push(t[g]);var m=(f+1)%2;(0===f?r&lt;=s:n&lt;=l)&amp;&amp;(c.push(p),c.push(g-1),c.push(m)),(0===f?i&gt;=s:a&gt;=l)&amp;&amp;(c.push(g+1),c.push(h),c.push(m))}}return u}(this.ids,this.coords,t,e,r,n,this.nodeSize)},D.prototype.within=function(t,e,r){return function(t,e,r,n,i,a){for(var o=[0,t.length-1,0],s=[],l=i*i;o.length;){var c=o.pop(),u=o.pop(),f=o.pop();if(u-f&lt;=a)for(var h=f;h&lt;=u;h++)P(e[2*h],e[2*h+1],r,n)&lt;=l&amp;&amp;s.push(t[h]);else{var p=Math.floor((f+u)/2),d=e[2*p],g=e[2*p+1];P(d,g,r,n)&lt;=l&amp;&amp;s.push(t[p]);var m=(c+1)%2;(0===c?r-i&lt;=d:n-i&lt;=g)&amp;&amp;(o.push(f),o.push(p-1),o.push(m)),(0===c?r+i&gt;=d:n+i&gt;=g)&amp;&amp;(o.push(p+1),o.push(u),o.push(m))}}return s}(this.ids,this.coords,t,e,r,this.nodeSize)};var R={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},F=function(t){this.options=H(Object.create(R),t),this.trees=new Array(this.options.maxZoom+1)};function B(t,e,r,n,i){return{x:t,y:e,zoom:1/0,id:r,parentId:-1,numPoints:n,properties:i}}function N(t,e){var r=t.geometry.coordinates,n=r[1];return{x:V(r[0]),y:q(n),zoom:1/0,index:e,parentId:-1}}function j(t){return{type:&quot;Feature&quot;,id:t.id,properties:U(t),geometry:{type:&quot;Point&quot;,coordinates:[(n=t.x,360*(n-.5)),(e=t.y,r=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(r))/Math.PI-90)]}};var e,r,n}function U(t){var e=t.numPoints,r=e&gt;=1e4?Math.round(e/1e3)+&quot;k&quot;:e&gt;=1e3?Math.round(e/100)/10+&quot;k&quot;:e;return H(H({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function V(t){return t/360+.5}function q(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function H(t,e){for(var r in e)t[r]=e[r];return t}function G(t){return t.x}function Y(t){return t.y}function W(t,e,r,n,i,a){var o=i-r,s=a-n;if(0!==o||0!==s){var l=((t-r)*o+(e-n)*s)/(o*o+s*s);l&gt;1?(r=i,n=a):l&gt;0&amp;&amp;(r+=o*l,n+=s*l)}return(o=t-r)*o+(s=e-n)*s}function X(t,e,r,n){var i={id:void 0===t?null:t,type:e,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,r=t.type;if(&quot;Point&quot;===r||&quot;MultiPoint&quot;===r||&quot;LineString&quot;===r)Z(t,e);else if(&quot;Polygon&quot;===r||&quot;MultiLineString&quot;===r)for(var n=0;n&lt;e.length;n++)Z(t,e[n]);else if(&quot;MultiPolygon&quot;===r)for(n=0;n&lt;e.length;n++)for(var i=0;i&lt;e[n].length;i++)Z(t,e[n][i])}(i),i}function Z(t,e){for(var r=0;r&lt;e.length;r+=3)t.minX=Math.min(t.minX,e[r]),t.minY=Math.min(t.minY,e[r+1]),t.maxX=Math.max(t.maxX,e[r]),t.maxY=Math.max(t.maxY,e[r+1])}function J(t,e,r,n){if(e.geometry){var i=e.geometry.coordinates,a=e.geometry.type,o=Math.pow(r.tolerance/((1&lt;&lt;r.maxZoom)*r.extent),2),s=[],l=e.id;if(r.promoteId?l=e.properties[r.promoteId]:r.generateId&amp;&amp;(l=n||0),&quot;Point&quot;===a)K(i,s);else if(&quot;MultiPoint&quot;===a)for(var c=0;c&lt;i.length;c++)K(i[c],s);else if(&quot;LineString&quot;===a)Q(i,s,o,!1);else if(&quot;MultiLineString&quot;===a){if(r.lineMetrics){for(c=0;c&lt;i.length;c++)Q(i[c],s=[],o,!1),t.push(X(l,&quot;LineString&quot;,s,e.properties));return}$(i,s,o,!1)}else if(&quot;Polygon&quot;===a)$(i,s,o,!0);else{if(&quot;MultiPolygon&quot;!==a){if(&quot;GeometryCollection&quot;===a){for(c=0;c&lt;e.geometry.geometries.length;c++)J(t,{id:l,geometry:e.geometry.geometries[c],properties:e.properties},r,n);return}throw new Error(&quot;Input data is not a valid GeoJSON object.&quot;)}for(c=0;c&lt;i.length;c++){var u=[];$(i[c],u,o,!0),s.push(u)}}t.push(X(l,a,s,e.properties))}}function K(t,e){e.push(tt(t[0])),e.push(et(t[1])),e.push(0)}function Q(t,e,r,n){for(var i,a,o=0,s=0;s&lt;t.length;s++){var l=tt(t[s][0]),c=et(t[s][1]);e.push(l),e.push(c),e.push(0),s&gt;0&amp;&amp;(o+=n?(i*c-l*a)/2:Math.sqrt(Math.pow(l-i,2)+Math.pow(c-a,2))),i=l,a=c}var u=e.length-3;e[2]=1,function t(e,r,n,i){for(var a,o=i,s=n-r&gt;&gt;1,l=n-r,c=e[r],u=e[r+1],f=e[n],h=e[n+1],p=r+3;p&lt;n;p+=3){var d=W(e[p],e[p+1],c,u,f,h);if(d&gt;o)a=p,o=d;else if(d===o){var g=Math.abs(p-s);g&lt;l&amp;&amp;(a=p,l=g)}}o&gt;i&amp;&amp;(a-r&gt;3&amp;&amp;t(e,r,a,i),e[a+2]=o,n-a&gt;3&amp;&amp;t(e,a,n,i))}(e,0,u,r),e[u+2]=1,e.size=Math.abs(o),e.start=0,e.end=e.size}function $(t,e,r,n){for(var i=0;i&lt;t.length;i++){var a=[];Q(t[i],a,r,n),e.push(a)}}function tt(t){return t/360+.5}function et(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function rt(t,e,r,n,i,a,o,s){if(n/=e,a&gt;=(r/=e)&amp;&amp;o&lt;n)return t;if(o&lt;r||a&gt;=n)return null;for(var l=[],c=0;c&lt;t.length;c++){var u=t[c],f=u.geometry,h=u.type,p=0===i?u.minX:u.minY,d=0===i?u.maxX:u.maxY;if(p&gt;=r&amp;&amp;d&lt;n)l.push(u);else if(!(d&lt;r||p&gt;=n)){var g=[];if(&quot;Point&quot;===h||&quot;MultiPoint&quot;===h)nt(f,g,r,n,i);else if(&quot;LineString&quot;===h)it(f,g,r,n,i,!1,s.lineMetrics);else if(&quot;MultiLineString&quot;===h)ot(f,g,r,n,i,!1);else if(&quot;Polygon&quot;===h)ot(f,g,r,n,i,!0);else if(&quot;MultiPolygon&quot;===h)for(var m=0;m&lt;f.length;m++){var v=[];ot(f[m],v,r,n,i,!0),v.length&amp;&amp;g.push(v)}if(g.length){if(s.lineMetrics&amp;&amp;&quot;LineString&quot;===h){for(m=0;m&lt;g.length;m++)l.push(X(u.id,h,g[m],u.tags));continue}&quot;LineString&quot;!==h&amp;&amp;&quot;MultiLineString&quot;!==h||(1===g.length?(h=&quot;LineString&quot;,g=g[0]):h=&quot;MultiLineString&quot;),&quot;Point&quot;!==h&amp;&amp;&quot;MultiPoint&quot;!==h||(h=3===g.length?&quot;Point&quot;:&quot;MultiPoint&quot;),l.push(X(u.id,h,g,u.tags))}}}return l.length?l:null}function nt(t,e,r,n,i){for(var a=0;a&lt;t.length;a+=3){var o=t[a+i];o&gt;=r&amp;&amp;o&lt;=n&amp;&amp;(e.push(t[a]),e.push(t[a+1]),e.push(t[a+2]))}}function it(t,e,r,n,i,a,o){for(var s,l,c=at(t),u=0===i?lt:ct,f=t.start,h=0;h&lt;t.length-3;h+=3){var p=t[h],d=t[h+1],g=t[h+2],m=t[h+3],v=t[h+4],y=0===i?p:d,x=0===i?m:v,b=!1;o&amp;&amp;(s=Math.sqrt(Math.pow(p-m,2)+Math.pow(d-v,2))),y&lt;r?x&gt;r&amp;&amp;(l=u(c,p,d,m,v,r),o&amp;&amp;(c.start=f+s*l)):y&gt;n?x&lt;n&amp;&amp;(l=u(c,p,d,m,v,n),o&amp;&amp;(c.start=f+s*l)):st(c,p,d,g),x&lt;r&amp;&amp;y&gt;=r&amp;&amp;(l=u(c,p,d,m,v,r),b=!0),x&gt;n&amp;&amp;y&lt;=n&amp;&amp;(l=u(c,p,d,m,v,n),b=!0),!a&amp;&amp;b&amp;&amp;(o&amp;&amp;(c.end=f+s*l),e.push(c),c=at(t)),o&amp;&amp;(f+=s)}var _=t.length-3;p=t[_],d=t[_+1],g=t[_+2],(y=0===i?p:d)&gt;=r&amp;&amp;y&lt;=n&amp;&amp;st(c,p,d,g),_=c.length-3,a&amp;&amp;_&gt;=3&amp;&amp;(c[_]!==c[0]||c[_+1]!==c[1])&amp;&amp;st(c,c[0],c[1],c[2]),c.length&amp;&amp;e.push(c)}function at(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function ot(t,e,r,n,i,a){for(var o=0;o&lt;t.length;o++)it(t[o],e,r,n,i,a,!1)}function st(t,e,r,n){t.push(e),t.push(r),t.push(n)}function lt(t,e,r,n,i,a){var o=(a-e)/(n-e);return t.push(a),t.push(r+(i-r)*o),t.push(1),o}function ct(t,e,r,n,i,a){var o=(a-r)/(i-r);return t.push(e+(n-e)*o),t.push(a),t.push(1),o}function ut(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i,a=t[n],o=a.type;if(&quot;Point&quot;===o||&quot;MultiPoint&quot;===o||&quot;LineString&quot;===o)i=ft(a.geometry,e);else if(&quot;MultiLineString&quot;===o||&quot;Polygon&quot;===o){i=[];for(var s=0;s&lt;a.geometry.length;s++)i.push(ft(a.geometry[s],e))}else if(&quot;MultiPolygon&quot;===o)for(i=[],s=0;s&lt;a.geometry.length;s++){for(var l=[],c=0;c&lt;a.geometry[s].length;c++)l.push(ft(a.geometry[s][c],e));i.push(l)}r.push(X(a.id,o,i,a.tags))}return r}function ft(t,e){var r=[];r.size=t.size,void 0!==t.start&amp;&amp;(r.start=t.start,r.end=t.end);for(var n=0;n&lt;t.length;n+=3)r.push(t[n]+e,t[n+1],t[n+2]);return r}function ht(t,e){if(t.transformed)return t;var r,n,i,a=1&lt;&lt;t.z,o=t.x,s=t.y;for(r=0;r&lt;t.features.length;r++){var l=t.features[r],c=l.geometry,u=l.type;if(l.geometry=[],1===u)for(n=0;n&lt;c.length;n+=2)l.geometry.push(pt(c[n],c[n+1],e,a,o,s));else for(n=0;n&lt;c.length;n++){var f=[];for(i=0;i&lt;c[n].length;i+=2)f.push(pt(c[n][i],c[n][i+1],e,a,o,s));l.geometry.push(f)}}return t.transformed=!0,t}function pt(t,e,r,n,i,a){return[Math.round(r*(t*n-i)),Math.round(r*(e*n-a))]}function dt(t,e,r,n,i){for(var a=e===i.maxZoom?0:i.tolerance/((1&lt;&lt;e)*i.extent),o={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:r,y:n,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s&lt;t.length;s++){o.numFeatures++,gt(o,t[s],a,i);var l=t[s].minX,c=t[s].minY,u=t[s].maxX,f=t[s].maxY;l&lt;o.minX&amp;&amp;(o.minX=l),c&lt;o.minY&amp;&amp;(o.minY=c),u&gt;o.maxX&amp;&amp;(o.maxX=u),f&gt;o.maxY&amp;&amp;(o.maxY=f)}return o}function gt(t,e,r,n){var i=e.geometry,a=e.type,o=[];if(&quot;Point&quot;===a||&quot;MultiPoint&quot;===a)for(var s=0;s&lt;i.length;s+=3)o.push(i[s]),o.push(i[s+1]),t.numPoints++,t.numSimplified++;else if(&quot;LineString&quot;===a)mt(o,i,t,r,!1,!1);else if(&quot;MultiLineString&quot;===a||&quot;Polygon&quot;===a)for(s=0;s&lt;i.length;s++)mt(o,i[s],t,r,&quot;Polygon&quot;===a,0===s);else if(&quot;MultiPolygon&quot;===a)for(var l=0;l&lt;i.length;l++){var c=i[l];for(s=0;s&lt;c.length;s++)mt(o,c[s],t,r,!0,0===s)}if(o.length){var u=e.tags||null;if(&quot;LineString&quot;===a&amp;&amp;n.lineMetrics){for(var f in u={},e.tags)u[f]=e.tags[f];u.mapbox_clip_start=i.start/i.size,u.mapbox_clip_end=i.end/i.size}var h={geometry:o,type:&quot;Polygon&quot;===a||&quot;MultiPolygon&quot;===a?3:&quot;LineString&quot;===a||&quot;MultiLineString&quot;===a?2:1,tags:u};null!==e.id&amp;&amp;(h.id=e.id),t.features.push(h)}}function mt(t,e,r,n,i,a){var o=n*n;if(n&gt;0&amp;&amp;e.size&lt;(i?o:n))r.numPoints+=e.length/3;else{for(var s=[],l=0;l&lt;e.length;l+=3)(0===n||e[l+2]&gt;o)&amp;&amp;(r.numSimplified++,s.push(e[l]),s.push(e[l+1])),r.numPoints++;i&amp;&amp;function(t,e){for(var r=0,n=0,i=t.length,a=i-2;n&lt;i;a=n,n+=2)r+=(t[n]-t[a])*(t[n+1]+t[a+1]);if(r&gt;0===e)for(n=0,i=t.length;n&lt;i/2;n+=2){var o=t[n],s=t[n+1];t[n]=t[i-2-n],t[n+1]=t[i-1-n],t[i-2-n]=o,t[i-1-n]=s}}(s,a),t.push(s)}}function vt(t,e){var r=(e=this.options=function(t,e){for(var r in e)t[r]=e[r];return t}(Object.create(this.options),e)).debug;if(r&amp;&amp;console.time(&quot;preprocess data&quot;),e.maxZoom&lt;0||e.maxZoom&gt;24)throw new Error(&quot;maxZoom should be in the 0-24 range&quot;);if(e.promoteId&amp;&amp;e.generateId)throw new Error(&quot;promoteId and generateId cannot be used together.&quot;);var n=function(t,e){var r=[];if(&quot;FeatureCollection&quot;===t.type)for(var n=0;n&lt;t.features.length;n++)J(r,t.features[n],e,n);else J(r,&quot;Feature&quot;===t.type?t:{geometry:t},e);return r}(t,e);this.tiles={},this.tileCoords=[],r&amp;&amp;(console.timeEnd(&quot;preprocess data&quot;),console.log(&quot;index: maxZoom: %d, maxPoints: %d&quot;,e.indexMaxZoom,e.indexMaxPoints),console.time(&quot;generate tiles&quot;),this.stats={},this.total=0),(n=function(t,e){var r=e.buffer/e.extent,n=t,i=rt(t,1,-1-r,r,0,-1,2,e),a=rt(t,1,1-r,2+r,0,-1,2,e);return(i||a)&amp;&amp;(n=rt(t,1,-r,1+r,0,-1,2,e)||[],i&amp;&amp;(n=ut(i,1).concat(n)),a&amp;&amp;(n=n.concat(ut(a,-1)))),n}(n,e)).length&amp;&amp;this.splitTile(n,0,0,0),r&amp;&amp;(n.length&amp;&amp;console.log(&quot;features: %d, points: %d&quot;,this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd(&quot;generate tiles&quot;),console.log(&quot;tiles generated:&quot;,this.total,JSON.stringify(this.stats)))}function yt(t,e,r){return 32*((1&lt;&lt;t)*r+e)+t}function xt(t,e){var r=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);var n=this._geoJSONIndex.getTile(r.z,r.x,r.y);if(!n)return e(null,null);var i=new g(n.features),a=b(i);0===a.byteOffset&amp;&amp;a.byteLength===a.buffer.byteLength||(a=new Uint8Array(a)),e(null,{vectorTile:i,rawData:a.buffer})}F.prototype.load=function(t){var e=this.options,r=e.log,n=e.minZoom,i=e.maxZoom,a=e.nodeSize;r&amp;&amp;console.time(&quot;total time&quot;);var o=&quot;prepare &quot;+t.length+&quot; points&quot;;r&amp;&amp;console.time(o),this.points=t;for(var s=[],l=0;l&lt;t.length;l++)t[l].geometry&amp;&amp;s.push(N(t[l],l));this.trees[i+1]=new D(s,G,Y,a,Float32Array),r&amp;&amp;console.timeEnd(o);for(var c=i;c&gt;=n;c--){var u=+Date.now();s=this._cluster(s,c),this.trees[c]=new D(s,G,Y,a,Float32Array),r&amp;&amp;console.log(&quot;z%d: %d clusters in %dms&quot;,c,s.length,+Date.now()-u)}return r&amp;&amp;console.timeEnd(&quot;total time&quot;),this},F.prototype.getClusters=function(t,e){var r=((t[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]&gt;=360)r=-180,i=180;else if(r&gt;i){var o=this.getClusters([r,n,180,a],e),s=this.getClusters([-180,n,i,a],e);return o.concat(s)}for(var l=this.trees[this._limitZoom(e)],c=[],u=0,f=l.range(V(r),q(a),V(i),q(n));u&lt;f.length;u+=1){var h=l.points[f[u]];c.push(h.numPoints?j(h):this.points[h.index])}return c},F.prototype.getChildren=function(t){var e=this._getOriginId(t),r=this._getOriginZoom(t),n=&quot;No cluster with the specified id.&quot;,i=this.trees[r];if(!i)throw new Error(n);var a=i.points[e];if(!a)throw new Error(n);for(var o=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=[],l=0,c=i.within(a.x,a.y,o);l&lt;c.length;l+=1){var u=i.points[c[l]];u.parentId===t&amp;&amp;s.push(u.numPoints?j(u):this.points[u.index])}if(0===s.length)throw new Error(n);return s},F.prototype.getLeaves=function(t,e,r){var n=[];return this._appendLeaves(n,t,e=e||10,r=r||0,0),n},F.prototype.getTile=function(t,e,r){var n=this.trees[this._limitZoom(t)],i=Math.pow(2,t),a=this.options,o=a.radius/a.extent,s=(r-o)/i,l=(r+1+o)/i,c={features:[]};return this._addTileFeatures(n.range((e-o)/i,s,(e+1+o)/i,l),n.points,e,r,i,c),0===e&amp;&amp;this._addTileFeatures(n.range(1-o/i,s,1,l),n.points,i,r,i,c),e===i-1&amp;&amp;this._addTileFeatures(n.range(0,s,o/i,l),n.points,-1,r,i,c),c.features.length?c:null},F.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e&lt;=this.options.maxZoom;){var r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e},F.prototype._appendLeaves=function(t,e,r,n,i){for(var a=0,o=this.getChildren(e);a&lt;o.length;a+=1){var s=o[a],l=s.properties;if(l&amp;&amp;l.cluster?i+l.point_count&lt;=n?i+=l.point_count:i=this._appendLeaves(t,l.cluster_id,r,n,i):i&lt;n?i++:t.push(s),t.length===r)break}return i},F.prototype._addTileFeatures=function(t,e,r,n,i,a){for(var o=0,s=t;o&lt;s.length;o+=1){var l=e[s[o]],c=l.numPoints,u={type:1,geometry:[[Math.round(this.options.extent*(l.x*i-r)),Math.round(this.options.extent*(l.y*i-n))]],tags:c?U(l):this.points[l.index].properties},f=void 0;c?f=l.id:this.options.generateId?f=l.index:this.points[l.index].id&amp;&amp;(f=this.points[l.index].id),void 0!==f&amp;&amp;(u.id=f),a.features.push(u)}},F.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},F.prototype._cluster=function(t,e){for(var r=[],n=this.options,i=n.reduce,a=n.radius/(n.extent*Math.pow(2,e)),o=0;o&lt;t.length;o++){var s=t[o];if(!(s.zoom&lt;=e)){s.zoom=e;for(var l=this.trees[e+1],c=l.within(s.x,s.y,a),u=s.numPoints||1,f=s.x*u,h=s.y*u,p=i&amp;&amp;u&gt;1?this._map(s,!0):null,d=(o&lt;&lt;5)+(e+1)+this.points.length,g=0,m=c;g&lt;m.length;g+=1){var v=l.points[m[g]];if(!(v.zoom&lt;=e)){v.zoom=e;var y=v.numPoints||1;f+=v.x*y,h+=v.y*y,u+=y,v.parentId=d,i&amp;&amp;(p||(p=this._map(s,!0)),i(p,this._map(v)))}}1===u?r.push(s):(s.parentId=d,r.push(B(f/u,h/u,d,u,p)))}}return r},F.prototype._getOriginId=function(t){return t-this.points.length&gt;&gt;5},F.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},F.prototype._map=function(t,e){if(t.numPoints)return e?H({},t.properties):t.properties;var r=this.points[t.index].properties,n=this.options.map(r);return e&amp;&amp;n===r?H({},n):n},vt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},vt.prototype.splitTile=function(t,e,r,n,i,a,o){for(var s=[t,e,r,n],l=this.options,c=l.debug;s.length;){n=s.pop(),r=s.pop(),e=s.pop(),t=s.pop();var u=1&lt;&lt;e,f=yt(e,r,n),h=this.tiles[f];if(!h&amp;&amp;(c&gt;1&amp;&amp;console.time(&quot;creation&quot;),h=this.tiles[f]=dt(t,e,r,n,l),this.tileCoords.push({z:e,x:r,y:n}),c)){c&gt;1&amp;&amp;(console.log(&quot;tile z%d-%d-%d (features: %d, points: %d, simplified: %d)&quot;,e,r,n,h.numFeatures,h.numPoints,h.numSimplified),console.timeEnd(&quot;creation&quot;));var p=&quot;z&quot;+e;this.stats[p]=(this.stats[p]||0)+1,this.total++}if(h.source=t,i){if(e===l.maxZoom||e===i)continue;var d=1&lt;&lt;i-e;if(r!==Math.floor(a/d)||n!==Math.floor(o/d))continue}else if(e===l.indexMaxZoom||h.numPoints&lt;=l.indexMaxPoints)continue;if(h.source=null,0!==t.length){c&gt;1&amp;&amp;console.time(&quot;clipping&quot;);var g,m,v,y,x,b,_=.5*l.buffer/l.extent,w=.5-_,T=.5+_,k=1+_;g=m=v=y=null,x=rt(t,u,r-_,r+T,0,h.minX,h.maxX,l),b=rt(t,u,r+w,r+k,0,h.minX,h.maxX,l),t=null,x&amp;&amp;(g=rt(x,u,n-_,n+T,1,h.minY,h.maxY,l),m=rt(x,u,n+w,n+k,1,h.minY,h.maxY,l),x=null),b&amp;&amp;(v=rt(b,u,n-_,n+T,1,h.minY,h.maxY,l),y=rt(b,u,n+w,n+k,1,h.minY,h.maxY,l),b=null),c&gt;1&amp;&amp;console.timeEnd(&quot;clipping&quot;),s.push(g||[],e+1,2*r,2*n),s.push(m||[],e+1,2*r,2*n+1),s.push(v||[],e+1,2*r+1,2*n),s.push(y||[],e+1,2*r+1,2*n+1)}}},vt.prototype.getTile=function(t,e,r){var n=this.options,i=n.extent,a=n.debug;if(t&lt;0||t&gt;24)return null;var o=1&lt;&lt;t,s=yt(t,e=(e%o+o)%o,r);if(this.tiles[s])return ht(this.tiles[s],i);a&gt;1&amp;&amp;console.log(&quot;drilling down to z%d-%d-%d&quot;,t,e,r);for(var l,c=t,u=e,f=r;!l&amp;&amp;c&gt;0;)c--,u=Math.floor(u/2),f=Math.floor(f/2),l=this.tiles[yt(c,u,f)];return l&amp;&amp;l.source?(a&gt;1&amp;&amp;console.log(&quot;found parent tile z%d-%d-%d&quot;,c,u,f),a&gt;1&amp;&amp;console.time(&quot;drilling down&quot;),this.splitTile(l.source,c,u,f,t,e,r),a&gt;1&amp;&amp;console.timeEnd(&quot;drilling down&quot;),this.tiles[s]?ht(this.tiles[s],i):null):null};var bt=function(e){function r(t,r,n,i){e.call(this,t,r,n,xt),i&amp;&amp;(this.loadGeoJSON=i)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.loadData=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&amp;&amp;&quot;Idle&quot;!==this._state?this._state=&quot;NeedsLoadData&quot;:(this._state=&quot;Coalescing&quot;,this._loadData())},r.prototype._loadData=function(){var e=this;if(this._pendingCallback&amp;&amp;this._pendingLoadDataParams){var r=this._pendingCallback,n=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var i=!!(n&amp;&amp;n.request&amp;&amp;n.request.collectResourceTiming)&amp;&amp;new t.RequestPerformance(n.request);this.loadGeoJSON(n,(function(a,o){if(a||!o)return r(a);if(&quot;object&quot;!=typeof o)return r(new Error(&quot;Input data given to '&quot;+n.source+&quot;' is not a valid GeoJSON object.&quot;));!function t(e,r){var n,i=e&amp;&amp;e.type;if(&quot;FeatureCollection&quot;===i)for(n=0;n&lt;e.features.length;n++)t(e.features[n],r);else if(&quot;GeometryCollection&quot;===i)for(n=0;n&lt;e.geometries.length;n++)t(e.geometries[n],r);else if(&quot;Feature&quot;===i)t(e.geometry,r);else if(&quot;Polygon&quot;===i)f(e.coordinates,r);else if(&quot;MultiPolygon&quot;===i)for(n=0;n&lt;e.coordinates.length;n++)f(e.coordinates[n],r);return e}(o,!0);try{e._geoJSONIndex=n.cluster?new F(function(e){var r=e.superclusterOptions,n=e.clusterProperties;if(!n||!r)return r;for(var i={},a={},o={accumulated:null,zoom:0},s={properties:null},l=Object.keys(n),c=0,u=l;c&lt;u.length;c+=1){var f=u[c],h=n[f],p=h[0],d=t.createExpression(h[1]),g=t.createExpression(&quot;string&quot;==typeof p?[p,[&quot;accumulated&quot;],[&quot;get&quot;,f]]:p);i[f]=d.value,a[f]=g.value}return r.map=function(t){s.properties=t;for(var e={},r=0,n=l;r&lt;n.length;r+=1){var a=n[r];e[a]=i[a].evaluate(o,s)}return e},r.reduce=function(t,e){s.properties=e;for(var r=0,n=l;r&lt;n.length;r+=1){var i=n[r];o.accumulated=t[i],t[i]=a[i].evaluate(o,s)}},r}(n)).load(o.features):function(t,e){return new vt(t,e)}(o,n.geojsonVtOptions)}catch(a){return r(a)}e.loaded={};var s={};if(i){var l=i.finish();l&amp;&amp;(s.resourceTiming={},s.resourceTiming[n.source]=JSON.parse(JSON.stringify(l)))}r(null,s)}))}},r.prototype.coalesce=function(){&quot;Coalescing&quot;===this._state?this._state=&quot;Idle&quot;:&quot;NeedsLoadData&quot;===this._state&amp;&amp;(this._state=&quot;Coalescing&quot;,this._loadData())},r.prototype.reloadTile=function(t,r){var n=this.loaded;return n&amp;&amp;n[t.uid]?e.prototype.reloadTile.call(this,t,r):this.loadTile(t,r)},r.prototype.loadGeoJSON=function(e,r){if(e.request)t.getJSON(e.request,r);else{if(&quot;string&quot;!=typeof e.data)return r(new Error(&quot;Input data given to '&quot;+e.source+&quot;' is not a valid GeoJSON object.&quot;));try{return r(null,JSON.parse(e.data))}catch(t){return r(new Error(&quot;Input data given to '&quot;+e.source+&quot;' is not a valid GeoJSON object.&quot;))}}},r.prototype.removeSource=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),e()},r.prototype.getClusterExpansionZoom=function(t,e){try{e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterChildren=function(t,e){try{e(null,this._geoJSONIndex.getChildren(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterLeaves=function(t,e){try{e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))}catch(t){e(t)}},r}(l),_t=function(e){var r=this;this.self=e,this.actor=new t.Actor(e,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:l,geojson:bt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(r.workerSourceTypes[t])throw new Error('Worker source with name &quot;'+t+'&quot; already registered.');r.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(e){if(t.plugin.isParsed())throw new Error(&quot;RTL text plugin already registered.&quot;);t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText,t.plugin.processStyledBidirectionalText=e.processStyledBidirectionalText}};return _t.prototype.setReferrer=function(t,e){this.referrer=e},_t.prototype.setImages=function(t,e,r){for(var n in this.availableImages[t]=e,this.workerSources[t]){var i=this.workerSources[t][n];for(var a in i)i[a].availableImages=e}r()},_t.prototype.setLayers=function(t,e,r){this.getLayerIndex(t).replace(e),r()},_t.prototype.updateLayers=function(t,e,r){this.getLayerIndex(t).update(e.layers,e.removedIds),r()},_t.prototype.loadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).loadTile(e,r)},_t.prototype.loadDEMTile=function(t,e,r){this.getDEMWorkerSource(t,e.source).loadTile(e,r)},_t.prototype.reloadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).reloadTile(e,r)},_t.prototype.abortTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).abortTile(e,r)},_t.prototype.removeTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).removeTile(e,r)},_t.prototype.removeDEMTile=function(t,e){this.getDEMWorkerSource(t,e.source).removeTile(e)},_t.prototype.removeSource=function(t,e,r){if(this.workerSources[t]&amp;&amp;this.workerSources[t][e.type]&amp;&amp;this.workerSources[t][e.type][e.source]){var n=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==n.removeSource?n.removeSource(e,r):r()}},_t.prototype.loadWorkerSource=function(t,e,r){try{this.self.importScripts(e.url),r()}catch(t){r(t.toString())}},_t.prototype.syncRTLPluginState=function(e,r,n){try{t.plugin.setState(r);var i=t.plugin.getPluginURL();if(t.plugin.isLoaded()&amp;&amp;!t.plugin.isParsed()&amp;&amp;null!=i){this.self.importScripts(i);var a=t.plugin.isParsed();n(a?void 0:new Error(&quot;RTL Text Plugin failed to import scripts from &quot;+i),a)}}catch(t){n(t.toString())}},_t.prototype.getAvailableImages=function(t){var e=this.availableImages[t];return e||(e=[]),e},_t.prototype.getLayerIndex=function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new n),e},_t.prototype.getWorkerSource=function(t,e,r){var n=this;return this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),this.workerSources[t][e][r]||(this.workerSources[t][e][r]=new this.workerSourceTypes[e]({send:function(e,r,i){n.actor.send(e,r,i,t)}},this.getLayerIndex(t),this.getAvailableImages(t))),this.workerSources[t][e][r]},_t.prototype.getDEMWorkerSource=function(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new u),this.demWorkerSources[t][e]},_t.prototype.enforceCacheSizeLimit=function(e,r){t.enforceCacheSizeLimit(r)},&quot;undefined&quot;!=typeof WorkerGlobalScope&amp;&amp;void 0!==t.window&amp;&amp;t.window instanceof WorkerGlobalScope&amp;&amp;(t.window.worker=new _t(t.window)),_t})),n(0,(function(t){var e=t.createCommonjsModule((function(t){function e(t){return!r(t)}function r(t){return&quot;undefined&quot;==typeof window||&quot;undefined&quot;==typeof document?&quot;not a browser&quot;:Array.prototype&amp;&amp;Array.prototype.every&amp;&amp;Array.prototype.filter&amp;&amp;Array.prototype.forEach&amp;&amp;Array.prototype.indexOf&amp;&amp;Array.prototype.lastIndexOf&amp;&amp;Array.prototype.map&amp;&amp;Array.prototype.some&amp;&amp;Array.prototype.reduce&amp;&amp;Array.prototype.reduceRight&amp;&amp;Array.isArray?Function.prototype&amp;&amp;Function.prototype.bind?Object.keys&amp;&amp;Object.create&amp;&amp;Object.getPrototypeOf&amp;&amp;Object.getOwnPropertyNames&amp;&amp;Object.isSealed&amp;&amp;Object.isFrozen&amp;&amp;Object.isExtensible&amp;&amp;Object.getOwnPropertyDescriptor&amp;&amp;Object.defineProperty&amp;&amp;Object.defineProperties&amp;&amp;Object.seal&amp;&amp;Object.freeze&amp;&amp;Object.preventExtensions?&quot;JSON&quot;in window&amp;&amp;&quot;parse&quot;in JSON&amp;&amp;&quot;stringify&quot;in JSON?function(){if(!(&quot;Worker&quot;in window&amp;&amp;&quot;Blob&quot;in window&amp;&amp;&quot;URL&quot;in window))return!1;var t,e,r=new Blob([&quot;&quot;],{type:&quot;text/javascript&quot;}),n=URL.createObjectURL(r);try{e=new Worker(n),t=!0}catch(e){t=!1}return e&amp;&amp;e.terminate(),URL.revokeObjectURL(n),t}()?&quot;Uint8ClampedArray&quot;in window?ArrayBuffer.isView?function(){var t=document.createElement(&quot;canvas&quot;);t.width=t.height=1;var e=t.getContext(&quot;2d&quot;);if(!e)return!1;var r=e.getImageData(0,0,1,1);return r&amp;&amp;r.width===t.width}()?(void 0===n[r=t&amp;&amp;t.failIfMajorPerformanceCaveat]&amp;&amp;(n[r]=function(t){var r=function(t){var r=document.createElement(&quot;canvas&quot;),n=Object.create(e.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=t,r.probablySupportsContext?r.probablySupportsContext(&quot;webgl&quot;,n)||r.probablySupportsContext(&quot;experimental-webgl&quot;,n):r.supportsContext?r.supportsContext(&quot;webgl&quot;,n)||r.supportsContext(&quot;experimental-webgl&quot;,n):r.getContext(&quot;webgl&quot;,n)||r.getContext(&quot;experimental-webgl&quot;,n)}(t);if(!r)return!1;var n=r.createShader(r.VERTEX_SHADER);return!(!n||r.isContextLost())&amp;&amp;(r.shaderSource(n,&quot;void main() {}&quot;),r.compileShader(n),!0===r.getShaderParameter(n,r.COMPILE_STATUS))}(r)),n[r]?void 0:&quot;insufficient WebGL support&quot;):&quot;insufficient Canvas/getImageData support&quot;:&quot;insufficient ArrayBuffer support&quot;:&quot;insufficient Uint8ClampedArray support&quot;:&quot;insufficient worker support&quot;:&quot;insufficient JSON support&quot;:&quot;insufficient Object support&quot;:&quot;insufficient Function support&quot;:&quot;insufficent Array support&quot;;var r}t.exports?t.exports=e:window&amp;&amp;(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=e,window.mapboxgl.notSupportedReason=r);var n={};e.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}})),r={create:function(e,r,n){var i=t.window.document.createElement(e);return void 0!==r&amp;&amp;(i.className=r),n&amp;&amp;n.appendChild(i),i},createNS:function(e,r){return t.window.document.createElementNS(e,r)}},n=t.window.document.documentElement.style;function i(t){if(!n)return t[0];for(var e=0;e&lt;t.length;e++)if(t[e]in n)return t[e];return t[0]}var a,o=i([&quot;userSelect&quot;,&quot;MozUserSelect&quot;,&quot;WebkitUserSelect&quot;,&quot;msUserSelect&quot;]);r.disableDrag=function(){n&amp;&amp;o&amp;&amp;(a=n[o],n[o]=&quot;none&quot;)},r.enableDrag=function(){n&amp;&amp;o&amp;&amp;(n[o]=a)};var s=i([&quot;transform&quot;,&quot;WebkitTransform&quot;]);r.setTransform=function(t,e){t.style[s]=e};var l=!1;try{var c=Object.defineProperty({},&quot;passive&quot;,{get:function(){l=!0}});t.window.addEventListener(&quot;test&quot;,c,c),t.window.removeEventListener(&quot;test&quot;,c,c)}catch(t){l=!1}r.addEventListener=function(t,e,r,n){void 0===n&amp;&amp;(n={}),t.addEventListener(e,r,&quot;passive&quot;in n&amp;&amp;l?n:n.capture)},r.removeEventListener=function(t,e,r,n){void 0===n&amp;&amp;(n={}),t.removeEventListener(e,r,&quot;passive&quot;in n&amp;&amp;l?n:n.capture)};var u=function(e){e.preventDefault(),e.stopPropagation(),t.window.removeEventListener(&quot;click&quot;,u,!0)};function f(t){var e=t.userImage;return!!(e&amp;&amp;e.render&amp;&amp;e.render())&amp;&amp;(t.data.replace(new Uint8Array(e.data.buffer)),!0)}r.suppressClick=function(){t.window.addEventListener(&quot;click&quot;,u,!0),t.window.setTimeout((function(){t.window.removeEventListener(&quot;click&quot;,u,!0)}),0)},r.mousePos=function(e,r){var n=e.getBoundingClientRect();return new t.Point(r.clientX-n.left-e.clientLeft,r.clientY-n.top-e.clientTop)},r.touchPos=function(e,r){for(var n=e.getBoundingClientRect(),i=[],a=0;a&lt;r.length;a++)i.push(new t.Point(r[a].clientX-n.left-e.clientLeft,r[a].clientY-n.top-e.clientTop));return i},r.mouseButton=function(e){return void 0!==t.window.InstallTrigger&amp;&amp;2===e.button&amp;&amp;e.ctrlKey&amp;&amp;t.window.navigator.platform.toUpperCase().indexOf(&quot;MAC&quot;)&gt;=0?0:e.button},r.remove=function(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)};var h=function(e){function r(){e.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.isLoaded=function(){return this.loaded},r.prototype.setLoaded=function(t){if(this.loaded!==t&amp;&amp;(this.loaded=t,t)){for(var e=0,r=this.requestors;e&lt;r.length;e+=1){var n=r[e];this._notify(n.ids,n.callback)}this.requestors=[]}},r.prototype.getImage=function(t){return this.images[t]},r.prototype.addImage=function(t,e){this._validate(t,e)&amp;&amp;(this.images[t]=e)},r.prototype._validate=function(e,r){var n=!0;return this._validateStretch(r.stretchX,r.data&amp;&amp;r.data.width)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;stretchX&quot; value'))),n=!1),this._validateStretch(r.stretchY,r.data&amp;&amp;r.data.height)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;stretchY&quot; value'))),n=!1),this._validateContent(r.content,r)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;content&quot; value'))),n=!1),n},r.prototype._validateStretch=function(t,e){if(!t)return!0;for(var r=0,n=0,i=t;n&lt;i.length;n+=1){var a=i[n];if(a[0]&lt;r||a[1]&lt;a[0]||e&lt;a[1])return!1;r=a[1]}return!0},r.prototype._validateContent=function(t,e){return!(t&amp;&amp;(4!==t.length||t[0]&lt;0||e.data.width&lt;t[0]||t[1]&lt;0||e.data.height&lt;t[1]||t[2]&lt;0||e.data.width&lt;t[2]||t[3]&lt;0||e.data.height&lt;t[3]||t[2]&lt;t[0]||t[3]&lt;t[1]))},r.prototype.updateImage=function(t,e){e.version=this.images[t].version+1,this.images[t]=e,this.updatedImages[t]=!0},r.prototype.removeImage=function(t){var e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&amp;&amp;e.userImage.onRemove&amp;&amp;e.userImage.onRemove()},r.prototype.listImages=function(){return Object.keys(this.images)},r.prototype.getImages=function(t,e){var r=!0;if(!this.isLoaded())for(var n=0,i=t;n&lt;i.length;n+=1)this.images[i[n]]||(r=!1);this.isLoaded()||r?this._notify(t,e):this.requestors.push({ids:t,callback:e})},r.prototype._notify=function(e,r){for(var n={},i=0,a=e;i&lt;a.length;i+=1){var o=a[i];this.images[o]||this.fire(new t.Event(&quot;styleimagemissing&quot;,{id:o}));var s=this.images[o];s?n[o]={data:s.data.clone(),pixelRatio:s.pixelRatio,sdf:s.sdf,version:s.version,stretchX:s.stretchX,stretchY:s.stretchY,content:s.content,hasRenderCallback:Boolean(s.userImage&amp;&amp;s.userImage.render)}:t.warnOnce('Image &quot;'+o+'&quot; could not be loaded. Please make sure you have added the image with map.addImage() or a &quot;sprite&quot; property in your style. You can provide missing images by listening for the &quot;styleimagemissing&quot; map event.')}r(null,n)},r.prototype.getPixelSize=function(){var t=this.atlasImage;return{width:t.width,height:t.height}},r.prototype.getPattern=function(e){var r=this.patterns[e],n=this.getImage(e);if(!n)return null;if(r&amp;&amp;r.position.version===n.version)return r.position;if(r)r.position.version=n.version;else{var i={w:n.data.width+2,h:n.data.height+2,x:0,y:0},a=new t.ImagePosition(i,n);this.patterns[e]={bin:i,position:a}}return this._updatePatternAtlas(),this.patterns[e].position},r.prototype.bind=function(e){var r=e.gl;this.atlasTexture?this.dirty&amp;&amp;(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new t.Texture(e,this.atlasImage,r.RGBA),this.atlasTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)},r.prototype._updatePatternAtlas=function(){var e=[];for(var r in this.patterns)e.push(this.patterns[r].bin);var n=t.potpack(e),i=n.w,a=n.h,o=this.atlasImage;for(var s in o.resize({width:i||1,height:a||1}),this.patterns){var l=this.patterns[s].bin,c=l.x+1,u=l.y+1,f=this.images[s].data,h=f.width,p=f.height;t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u},{width:h,height:p}),t.RGBAImage.copy(f,o,{x:0,y:p-1},{x:c,y:u-1},{width:h,height:1}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u+p},{width:h,height:1}),t.RGBAImage.copy(f,o,{x:h-1,y:0},{x:c-1,y:u},{width:1,height:p}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c+h,y:u},{width:1,height:p})}this.dirty=!0},r.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},r.prototype.dispatchRenderCallbacks=function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var n=r[e];if(!this.callbackDispatchedThisFrame[n]){this.callbackDispatchedThisFrame[n]=!0;var i=this.images[n];f(i)&amp;&amp;this.updateImage(n,i)}}},r}(t.Evented),p=m,d=m,g=1e20;function m(t,e,r,n,i,a){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=n||.25,this.fontFamily=i||&quot;sans-serif&quot;,this.fontWeight=a||&quot;normal&quot;,this.radius=r||8;var o=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement(&quot;canvas&quot;),this.canvas.width=this.canvas.height=o,this.ctx=this.canvas.getContext(&quot;2d&quot;),this.ctx.font=this.fontWeight+&quot; &quot;+this.fontSize+&quot;px &quot;+this.fontFamily,this.ctx.textBaseline=&quot;middle&quot;,this.ctx.fillStyle=&quot;black&quot;,this.gridOuter=new Float64Array(o*o),this.gridInner=new Float64Array(o*o),this.f=new Float64Array(o),this.d=new Float64Array(o),this.z=new Float64Array(o+1),this.v=new Int16Array(o),this.middle=Math.round(o/2*(navigator.userAgent.indexOf(&quot;Gecko/&quot;)&gt;=0?1.2:1))}function v(t,e,r,n,i,a,o){for(var s=0;s&lt;e;s++){for(var l=0;l&lt;r;l++)n[l]=t[l*e+s];for(y(n,i,a,o,r),l=0;l&lt;r;l++)t[l*e+s]=i[l]}for(l=0;l&lt;r;l++){for(s=0;s&lt;e;s++)n[s]=t[l*e+s];for(y(n,i,a,o,e),s=0;s&lt;e;s++)t[l*e+s]=Math.sqrt(i[s])}}function y(t,e,r,n,i){r[0]=0,n[0]=-g,n[1]=+g;for(var a=1,o=0;a&lt;i;a++){for(var s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);s&lt;=n[o];)o--,s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);r[++o]=a,n[o]=s,n[o+1]=+g}for(a=0,o=0;a&lt;i;a++){for(;n[o+1]&lt;a;)o++;e[a]=(a-r[o])*(a-r[o])+t[r[o]]}}m.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),r=new Uint8ClampedArray(this.size*this.size),n=0;n&lt;this.size*this.size;n++){var i=e.data[4*n+3]/255;this.gridOuter[n]=1===i?0:0===i?g:Math.pow(Math.max(0,.5-i),2),this.gridInner[n]=1===i?g:0===i?0:Math.pow(Math.max(0,i-.5),2)}for(v(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),v(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),n=0;n&lt;this.size*this.size;n++)r[n]=Math.max(0,Math.min(255,Math.round(255-255*((this.gridOuter[n]-this.gridInner[n])/this.radius+this.cutoff))));return r},p.default=d;var x=function(t,e){this.requestManager=t,this.localIdeographFontFamily=e,this.entries={}};x.prototype.setURL=function(t){this.url=t},x.prototype.getGlyphs=function(e,r){var n=this,i=[];for(var a in e)for(var o=0,s=e[a];o&lt;s.length;o+=1)i.push({stack:a,id:s[o]});t.asyncAll(i,(function(t,e){var r=t.stack,i=t.id,a=n.entries[r];a||(a=n.entries[r]={glyphs:{},requests:{},ranges:{}});var o=a.glyphs[i];if(void 0===o){if(o=n._tinySDF(a,r,i))return a.glyphs[i]=o,void e(null,{stack:r,id:i,glyph:o});var s=Math.floor(i/256);if(256*s&gt;65535)e(new Error(&quot;glyphs &gt; 65535 not supported&quot;));else if(a.ranges[s])e(null,{stack:r,id:i,glyph:o});else{var l=a.requests[s];l||(l=a.requests[s]=[],x.loadGlyphRange(r,s,n.url,n.requestManager,(function(t,e){if(e){for(var r in e)n._doesCharSupportLocalGlyph(+r)||(a.glyphs[+r]=e[+r]);a.ranges[s]=!0}for(var i=0,o=l;i&lt;o.length;i+=1)(0,o[i])(t,e);delete a.requests[s]}))),l.push((function(t,n){t?e(t):n&amp;&amp;e(null,{stack:r,id:i,glyph:n[i]||null})}))}}else e(null,{stack:r,id:i,glyph:o})}),(function(t,e){if(t)r(t);else if(e){for(var n={},i=0,a=e;i&lt;a.length;i+=1){var o=a[i],s=o.stack,l=o.id,c=o.glyph;(n[s]||(n[s]={}))[l]=c&amp;&amp;{id:c.id,bitmap:c.bitmap.clone(),metrics:c.metrics}}r(null,n)}}))},x.prototype._doesCharSupportLocalGlyph=function(e){return!!this.localIdeographFontFamily&amp;&amp;(t.isChar[&quot;CJK Unified Ideographs&quot;](e)||t.isChar[&quot;Hangul Syllables&quot;](e)||t.isChar.Hiragana(e)||t.isChar.Katakana(e))},x.prototype._tinySDF=function(e,r,n){var i=this.localIdeographFontFamily;if(i&amp;&amp;this._doesCharSupportLocalGlyph(n)){var a=e.tinySDF;if(!a){var o=&quot;400&quot;;/bold/i.test(r)?o=&quot;900&quot;:/medium/i.test(r)?o=&quot;500&quot;:/light/i.test(r)&amp;&amp;(o=&quot;200&quot;),a=e.tinySDF=new x.TinySDF(24,3,8,.25,i,o)}return{id:n,bitmap:new t.AlphaImage({width:30,height:30},a.draw(String.fromCharCode(n))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},x.loadGlyphRange=function(e,r,n,i,a){var o=256*r,s=o+255,l=i.transformRequest(i.normalizeGlyphsURL(n).replace(&quot;{fontstack}&quot;,e).replace(&quot;{range}&quot;,o+&quot;-&quot;+s),t.ResourceType.Glyphs);t.getArrayBuffer(l,(function(e,r){if(e)a(e);else if(r){for(var n={},i=0,o=t.parseGlyphPBF(r);i&lt;o.length;i+=1){var s=o[i];n[s.id]=s}a(null,n)}}))},x.TinySDF=p;var b=function(){this.specification=t.styleSpec.light.position};b.prototype.possiblyEvaluate=function(e,r){return t.sphericalToCartesian(e.expression.evaluate(r))},b.prototype.interpolate=function(e,r,n){return{x:t.number(e.x,r.x,n),y:t.number(e.y,r.y,n),z:t.number(e.z,r.z,n)}};var _=new t.Properties({anchor:new t.DataConstantProperty(t.styleSpec.light.anchor),position:new b,color:new t.DataConstantProperty(t.styleSpec.light.color),intensity:new t.DataConstantProperty(t.styleSpec.light.intensity)}),w=function(e){function r(r){e.call(this),this._transitionable=new t.Transitionable(_),this.setLight(r),this._transitioning=this._transitionable.untransitioned()}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getLight=function(){return this._transitionable.serialize()},r.prototype.setLight=function(e,r){if(void 0===r&amp;&amp;(r={}),!this._validate(t.validateLight,e,r))for(var n in e){var i=e[n];t.endsWith(n,&quot;-transition&quot;)?this._transitionable.setTransition(n.slice(0,-&quot;-transition&quot;.length),i):this._transitionable.setValue(n,i)}},r.prototype.updateTransitions=function(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)},r.prototype.hasTransition=function(){return this._transitioning.hasTransition()},r.prototype.recalculate=function(t){this.properties=this._transitioning.possiblyEvaluate(t)},r.prototype._validate=function(e,r,n){return(!n||!1!==n.validate)&amp;&amp;t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:r,style:{glyphs:!0,sprite:!0},styleSpec:t.styleSpec})))},r}(t.Evented),T=function(t,e){this.width=t,this.height=e,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}};T.prototype.getDash=function(t,e){var r=t.join(&quot;,&quot;)+String(e);return this.dashEntry[r]||(this.dashEntry[r]=this.addDash(t,e)),this.dashEntry[r]},T.prototype.getDashRanges=function(t,e,r){var n=[],i=t.length%2==1?-t[t.length-1]*r:0,a=t[0]*r,o=!0;n.push({left:i,right:a,isDash:o,zeroLength:0===t[0]});for(var s=t[0],l=1;l&lt;t.length;l++){var c=t[l];n.push({left:i=s*r,right:a=(s+=c)*r,isDash:o=!o,zeroLength:0===c})}return n},T.prototype.addRoundDash=function(t,e,r){for(var n=e/2,i=-r;i&lt;=r;i++)for(var a=this.width*(this.nextRow+r+i),o=0,s=t[o],l=0;l&lt;this.width;l++){l/s.right&gt;1&amp;&amp;(s=t[++o]);var c=Math.abs(l-s.left),u=Math.abs(l-s.right),f=Math.min(c,u),h=void 0,p=i/r*(n+1);if(s.isDash){var d=n-Math.abs(p);h=Math.sqrt(f*f+d*d)}else h=n-Math.sqrt(f*f+p*p);this.data[a+l]=Math.max(0,Math.min(255,h+128))}},T.prototype.addRegularDash=function(t){for(var e=t.length-1;e&gt;=0;--e){var r=t[e],n=t[e+1];r.zeroLength?t.splice(e,1):n&amp;&amp;n.isDash===r.isDash&amp;&amp;(n.left=r.left,t.splice(e,1))}var i=t[0],a=t[t.length-1];i.isDash===a.isDash&amp;&amp;(i.left=a.left-this.width,a.right=i.right+this.width);for(var o=this.width*this.nextRow,s=0,l=t[s],c=0;c&lt;this.width;c++){c/l.right&gt;1&amp;&amp;(l=t[++s]);var u=Math.abs(c-l.left),f=Math.abs(c-l.right),h=Math.min(u,f);this.data[o+c]=Math.max(0,Math.min(255,(l.isDash?h:-h)+128))}},T.prototype.addDash=function(e,r){var n=r?7:0,i=2*n+1;if(this.nextRow+i&gt;this.height)return t.warnOnce(&quot;LineAtlas out of space&quot;),null;for(var a=0,o=0;o&lt;e.length;o++)a+=e[o];if(0!==a){var s=this.width/a,l=this.getDashRanges(e,this.width,s);r?this.addRoundDash(l,s,n):this.addRegularDash(l)}var c={y:(this.nextRow+n+.5)/this.height,height:2*n/this.height,width:a};return this.nextRow+=i,this.dirty=!0,c},T.prototype.bind=function(t){var e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&amp;&amp;(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.ALPHA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.ALPHA,this.width,this.height,0,e.ALPHA,e.UNSIGNED_BYTE,this.data))};var k=function e(r,n){this.workerPool=r,this.actors=[],this.currentActor=0,this.id=t.uniqueId();for(var i=this.workerPool.acquire(this.id),a=0;a&lt;i.length;a++){var o=new e.Actor(i[a],n,this.id);o.name=&quot;Worker &quot;+a,this.actors.push(o)}};function M(e,r,n){var i=function(i,a){if(i)return n(i);if(a){var o=t.pick(t.extend(a,e),[&quot;tiles&quot;,&quot;minzoom&quot;,&quot;maxzoom&quot;,&quot;attribution&quot;,&quot;mapbox_logo&quot;,&quot;bounds&quot;,&quot;scheme&quot;,&quot;tileSize&quot;,&quot;encoding&quot;]);a.vector_layers&amp;&amp;(o.vectorLayers=a.vector_layers,o.vectorLayerIds=o.vectorLayers.map((function(t){return t.id}))),o.tiles=r.canonicalizeTileset(o,e.url),n(null,o)}};return e.url?t.getJSON(r.transformRequest(r.normalizeSourceURL(e.url),t.ResourceType.Source),i):t.browser.frame((function(){return i(null,e)}))}k.prototype.broadcast=function(e,r,n){t.asyncAll(this.actors,(function(t,n){t.send(e,r,n)}),n=n||function(){})},k.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},k.prototype.remove=function(){this.actors.forEach((function(t){t.remove()})),this.actors=[],this.workerPool.release(this.id)},k.Actor=t.Actor;var A=function(e,r,n){this.bounds=t.LngLatBounds.convert(this.validateBounds(e)),this.minzoom=r||0,this.maxzoom=n||24};A.prototype.validateBounds=function(t){return Array.isArray(t)&amp;&amp;4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]},A.prototype.contains=function(e){var r=Math.pow(2,e.z),n=Math.floor(t.mercatorXfromLng(this.bounds.getWest())*r),i=Math.floor(t.mercatorYfromLat(this.bounds.getNorth())*r),a=Math.ceil(t.mercatorXfromLng(this.bounds.getEast())*r),o=Math.ceil(t.mercatorYfromLat(this.bounds.getSouth())*r);return e.x&gt;=n&amp;&amp;e.x&lt;a&amp;&amp;e.y&gt;=i&amp;&amp;e.y&lt;o};var S=function(e){function r(r,n,i,a){if(e.call(this),this.id=r,this.dispatcher=i,this.type=&quot;vector&quot;,this.minzoom=0,this.maxzoom=22,this.scheme=&quot;xyz&quot;,this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,t.extend(this,t.pick(n,[&quot;url&quot;,&quot;scheme&quot;,&quot;tileSize&quot;,&quot;promoteId&quot;])),this._options=t.extend({type:&quot;vector&quot;},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error(&quot;vector tile sources must have a tileSize of 512&quot;);this.setEventedParent(a)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._tileJSONRequest=M(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(t.extend(e,n),n.bounds&amp;&amp;(e.tileBounds=new A(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles,e.map._requestManager._customAccessToken),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken,e.map._requestManager._customAccessToken),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme)),i={request:this.map._requestManager.transformRequest(n,t.ResourceType.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function a(n,i){return delete e.request,e.aborted?r(null):n&amp;&amp;404!==n.status?r(n):(i&amp;&amp;i.resourceTiming&amp;&amp;(e.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&amp;&amp;i&amp;&amp;e.setExpiryData(i),e.loadVectorData(i,this.map.painter),t.cacheEntryPossiblyAdded(this.dispatcher),r(null),void(e.reloadCallback&amp;&amp;(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}i.request.collectResourceTiming=this._collectResourceTiming,e.actor&amp;&amp;&quot;expired&quot;!==e.state?&quot;loading&quot;===e.state?e.reloadCallback=r:e.request=e.actor.send(&quot;reloadTile&quot;,i,a.bind(this)):(e.actor=this.dispatcher.getActor(),e.request=e.actor.send(&quot;loadTile&quot;,i,a.bind(this)))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.actor&amp;&amp;t.actor.send(&quot;abortTile&quot;,{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.unloadTile=function(t){t.unloadVectorData(),t.actor&amp;&amp;t.actor.send(&quot;removeTile&quot;,{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.hasTransition=function(){return!1},r}(t.Evented),E=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.dispatcher=i,this.setEventedParent(a),this.type=&quot;raster&quot;,this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme=&quot;xyz&quot;,this.tileSize=512,this._loaded=!1,this._options=t.extend({type:&quot;raster&quot;},n),t.extend(this,t.pick(n,[&quot;url&quot;,&quot;scheme&quot;,&quot;tileSize&quot;]))}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._tileJSONRequest=M(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(t.extend(e,n),n.bounds&amp;&amp;(e.tileBounds=new A(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.loadTile=function(e,r){var n=this,i=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);e.request=t.getImage(this.map._requestManager.transformRequest(i,t.ResourceType.Tile),(function(i,a){if(delete e.request,e.aborted)e.state=&quot;unloaded&quot;,r(null);else if(i)e.state=&quot;errored&quot;,r(i);else if(a){n.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(a),delete a.cacheControl,delete a.expires;var o=n.map.painter.context,s=o.gl;e.texture=n.map.painter.getTileTexture(a.width),e.texture?e.texture.update(a,{useMipmap:!0}):(e.texture=new t.Texture(o,a,s.RGBA,{useMipmap:!0}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),o.extTextureFilterAnisotropic&amp;&amp;s.texParameterf(s.TEXTURE_2D,o.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,o.extTextureFilterAnisotropicMax)),e.state=&quot;loaded&quot;,t.cacheEntryPossiblyAdded(n.dispatcher),r(null)}}))},r.prototype.abortTile=function(t,e){t.request&amp;&amp;(t.request.cancel(),delete t.request),e()},r.prototype.unloadTile=function(t,e){t.texture&amp;&amp;this.map.painter.saveTileTexture(t.texture),e()},r.prototype.hasTransition=function(){return!1},r}(t.Evented),C=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),this.type=&quot;raster-dem&quot;,this.maxzoom=22,this._options=t.extend({type:&quot;raster-dem&quot;},n),this.encoding=n.encoding||&quot;mapbox&quot;}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.serialize=function(){return{type:&quot;raster-dem&quot;,url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);function i(t,n){t&amp;&amp;(e.state=&quot;errored&quot;,r(t)),n&amp;&amp;(e.dem=n,e.needsHillshadePrepare=!0,e.state=&quot;loaded&quot;,r(null))}e.request=t.getImage(this.map._requestManager.transformRequest(n,t.ResourceType.Tile),function(n,a){if(delete e.request,e.aborted)e.state=&quot;unloaded&quot;,r(null);else if(n)e.state=&quot;errored&quot;,r(n);else if(a){this.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(a),delete a.cacheControl,delete a.expires;var o=t.window.ImageBitmap&amp;&amp;a instanceof t.window.ImageBitmap&amp;&amp;t.offscreenCanvasSupported()?a:t.browser.getImageData(a,1),s={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:o,encoding:this.encoding};e.actor&amp;&amp;&quot;expired&quot;!==e.state||(e.actor=this.dispatcher.getActor(),e.actor.send(&quot;loadDEMTile&quot;,s,i.bind(this)))}}.bind(this)),e.neighboringTiles=this._getNeighboringTiles(e.tileID)},r.prototype._getNeighboringTiles=function(e){var r=e.canonical,n=Math.pow(2,r.z),i=(r.x-1+n)%n,a=0===r.x?e.wrap-1:e.wrap,o=(r.x+1+n)%n,s=r.x+1===n?e.wrap+1:e.wrap,l={};return l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y).key]={backfilled:!1},r.y&gt;0&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y-1).key]={backfilled:!1}),r.y+1&lt;n&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y+1).key]={backfilled:!1}),l},r.prototype.unloadTile=function(t){t.demTexture&amp;&amp;this.map.painter.saveTileTexture(t.demTexture),t.fbo&amp;&amp;(t.fbo.destroy(),delete t.fbo),t.dem&amp;&amp;delete t.dem,delete t.neighboringTiles,t.state=&quot;unloaded&quot;,t.actor&amp;&amp;t.actor.send(&quot;removeDEMTile&quot;,{uid:t.uid,source:this.id})},r}(E),L=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.type=&quot;geojson&quot;,this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=i.getActor(),this.setEventedParent(a),this._data=n.data,this._options=t.extend({},n),this._collectResourceTiming=n.collectResourceTiming,this._resourceTiming=[],void 0!==n.maxzoom&amp;&amp;(this.maxzoom=n.maxzoom),n.type&amp;&amp;(this.type=n.type),n.attribution&amp;&amp;(this.attribution=n.attribution),this.promoteId=n.promoteId;var o=t.EXTENT/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*o,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*o,extent:t.EXTENT,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?Math.min(n.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,extent:t.EXTENT,radius:(n.clusterRadius||50)*o,log:!1,generateId:n.generateId||!1},clusterProperties:n.clusterProperties},n.workerOptions)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._updateWorkerData((function(r){if(r)e.fire(new t.ErrorEvent(r));else{var n={dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;};e._collectResourceTiming&amp;&amp;e._resourceTiming&amp;&amp;e._resourceTiming.length&gt;0&amp;&amp;(n.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event(&quot;data&quot;,n))}}))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setData=function(e){var r=this;return this._data=e,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._updateWorkerData((function(e){if(e)r.fire(new t.ErrorEvent(e));else{var n={dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;};r._collectResourceTiming&amp;&amp;r._resourceTiming&amp;&amp;r._resourceTiming.length&gt;0&amp;&amp;(n.resourceTiming=r._resourceTiming,r._resourceTiming=[]),r.fire(new t.Event(&quot;data&quot;,n))}})),this},r.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send(&quot;geojson.getClusterExpansionZoom&quot;,{clusterId:t,source:this.id},e),this},r.prototype.getClusterChildren=function(t,e){return this.actor.send(&quot;geojson.getClusterChildren&quot;,{clusterId:t,source:this.id},e),this},r.prototype.getClusterLeaves=function(t,e,r,n){return this.actor.send(&quot;geojson.getClusterLeaves&quot;,{source:this.id,clusterId:t,limit:e,offset:r},n),this},r.prototype._updateWorkerData=function(e){var r=this;this._loaded=!1;var n=t.extend({},this.workerOptions),i=this._data;&quot;string&quot;==typeof i?(n.request=this.map._requestManager.transformRequest(t.browser.resolveURL(i),t.ResourceType.Source),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(i),this.actor.send(this.type+&quot;.loadData&quot;,n,(function(t,i){r._removed||i&amp;&amp;i.abandoned||(r._loaded=!0,i&amp;&amp;i.resourceTiming&amp;&amp;i.resourceTiming[r.id]&amp;&amp;(r._resourceTiming=i.resourceTiming[r.id].slice(0)),r.actor.send(r.type+&quot;.coalesce&quot;,{source:n.source},null),e(t))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.loadTile=function(e,r){var n=this,i=e.actor?&quot;reloadTile&quot;:&quot;loadTile&quot;;e.actor=this.actor,e.request=this.actor.send(i,{type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(function(t,a){return delete e.request,e.unloadVectorData(),e.aborted?r(null):t?r(t):(e.loadVectorData(a,n.map.painter,&quot;reloadTile&quot;===i),r(null))}))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.aborted=!0},r.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send(&quot;removeTile&quot;,{uid:t.uid,type:this.type,source:this.id})},r.prototype.onRemove=function(){this._removed=!0,this.actor.send(&quot;removeSource&quot;,{type:this.type,source:this.id})},r.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},r.prototype.hasTransition=function(){return!1},r}(t.Evented),I=t.createLayout([{name:&quot;a_pos&quot;,type:&quot;Int16&quot;,components:2},{name:&quot;a_texture_pos&quot;,type:&quot;Int16&quot;,components:2}]),P=function(e){function r(t,r,n,i){e.call(this),this.id=t,this.dispatcher=n,this.coordinates=r.coordinates,this.type=&quot;image&quot;,this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=r}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(e,r){var n=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(function(i,a){n._loaded=!0,i?n.fire(new t.ErrorEvent(i)):a&amp;&amp;(n.image=a,e&amp;&amp;(n.coordinates=e),r&amp;&amp;r(),n._finishLoading())}))},r.prototype.loaded=function(){return this._loaded},r.prototype.updateImage=function(t){var e=this;return this.image&amp;&amp;t.url?(this.options.url=t.url,this.load(t.coordinates,(function(){e.texture=null})),this):this},r.prototype._finishLoading=function(){this.map&amp;&amp;(this.setCoordinates(this.coordinates),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setCoordinates=function(e){var r=this;this.coordinates=e;var n=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){for(var r=1/0,n=1/0,i=-1/0,a=-1/0,o=0,s=e;o&lt;s.length;o+=1){var l=s[o];r=Math.min(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.x),a=Math.max(a,l.y)}var c=Math.max(i-r,a-n),u=Math.max(0,Math.floor(-Math.log(c)/Math.LN2)),f=Math.pow(2,u);return new t.CanonicalTileID(u,Math.floor((r+i)/2*f),Math.floor((n+a)/2*f))}(n),this.minzoom=this.maxzoom=this.tileID.z;var i=n.map((function(t){return r.tileID.getTilePoint(t)._round()}));return this._boundsArray=new t.StructArrayLayout4i8,this._boundsArray.emplaceBack(i[0].x,i[0].y,0,0),this._boundsArray.emplaceBack(i[1].x,i[1].y,t.EXTENT,0),this._boundsArray.emplaceBack(i[3].x,i[3].y,0,t.EXTENT),this._boundsArray.emplaceBack(i[2].x,i[2].y,t.EXTENT,t.EXTENT),this.boundsBuffer&amp;&amp;(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})),this},r.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&amp;&amp;this.image){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new t.Texture(e,this.image,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];&quot;loaded&quot;!==i.state&amp;&amp;(i.state=&quot;loaded&quot;,i.texture=this.texture)}}},r.prototype.loadTile=function(t,e){this.tileID&amp;&amp;this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state=&quot;errored&quot;,e(null))},r.prototype.serialize=function(){return{type:&quot;image&quot;,url:this.options.url,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return!1},r}(t.Evented),z=function(e){function r(t,r,n,i){e.call(this,t,r,n,i),this.roundZoom=!0,this.type=&quot;video&quot;,this.options=r}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1;var r=this.options;this.urls=[];for(var n=0,i=r.urls;n&lt;i.length;n+=1)this.urls.push(this.map._requestManager.transformRequest(i[n],t.ResourceType.Source).url);t.getVideo(this.urls,(function(r,n){e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(e.video=n,e.video.loop=!0,e.video.addEventListener(&quot;playing&quot;,(function(){e.map.triggerRepaint()})),e.map&amp;&amp;e.video.play(),e._finishLoading())}))},r.prototype.pause=function(){this.video&amp;&amp;this.video.pause()},r.prototype.play=function(){this.video&amp;&amp;this.video.play()},r.prototype.seek=function(e){if(this.video){var r=this.video.seekable;e&lt;r.start(0)||e&gt;r.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+this.id,null,&quot;Playback for this video can be set only between the &quot;+r.start(0)+&quot; and &quot;+r.end(0)+&quot;-second mark.&quot;))):this.video.currentTime=e}},r.prototype.getVideo=function(){return this.video},r.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&amp;&amp;(this.video.play(),this.setCoordinates(this.coordinates)))},r.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState&lt;2)){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];&quot;loaded&quot;!==i.state&amp;&amp;(i.state=&quot;loaded&quot;,i.texture=this.texture)}}},r.prototype.serialize=function(){return{type:&quot;video&quot;,urls:this.urls,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this.video&amp;&amp;!this.video.paused},r}(P),O=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),n.coordinates?Array.isArray(n.coordinates)&amp;&amp;4===n.coordinates.length&amp;&amp;!n.coordinates.some((function(t){return!Array.isArray(t)||2!==t.length||t.some((function(t){return&quot;number&quot;!=typeof t}))}))||this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'&quot;coordinates&quot; property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'missing required property &quot;coordinates&quot;'))),n.animate&amp;&amp;&quot;boolean&quot;!=typeof n.animate&amp;&amp;this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'optional &quot;animate&quot; property must be a boolean value'))),n.canvas?&quot;string&quot;==typeof n.canvas||n.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'&quot;canvas&quot; must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'missing required property &quot;canvas&quot;'))),this.options=n,this.animate=void 0===n.animate||n.animate}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error(&quot;Canvas dimensions cannot be less than or equal to zero.&quot;))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&amp;&amp;(this.prepare(),this._playing=!1)},this._finishLoading())},r.prototype.getCanvas=function(){return this.canvas},r.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&amp;&amp;this.animate&amp;&amp;this.play()},r.prototype.onRemove=function(){this.pause()},r.prototype.prepare=function(){var e=!1;if(this.canvas.width!==this.width&amp;&amp;(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&amp;&amp;(this.height=this.canvas.height,e=!0),!this._hasInvalidDimensions()&amp;&amp;0!==Object.keys(this.tiles).length){var r=this.map.painter.context,n=r.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=r.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&amp;&amp;this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(r,this.canvas,n.RGBA,{premultiply:!0}),this.tiles){var a=this.tiles[i];&quot;loaded&quot;!==a.state&amp;&amp;(a.state=&quot;loaded&quot;,a.texture=this.texture)}}},r.prototype.serialize=function(){return{type:&quot;canvas&quot;,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this._playing},r.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];t&lt;e.length;t+=1){var r=e[t];if(isNaN(r)||r&lt;=0)return!0}return!1},r}(P),D={vector:S,raster:E,&quot;raster-dem&quot;:C,geojson:L,video:z,image:P,canvas:O};function R(e,r){var n=t.identity([]);return t.translate(n,n,[1,1,0]),t.scale(n,n,[.5*e.width,.5*e.height,1]),t.multiply(n,n,e.calculatePosMatrix(r.toUnwrapped()))}function F(t,e,r,n,i,a){var o=function(t,e,r){if(t)for(var n=0,i=t;n&lt;i.length;n+=1){var a=e[i[n]];if(a&amp;&amp;a.source===r&amp;&amp;&quot;fill-extrusion&quot;===a.type)return!0}else for(var o in e){var s=e[o];if(s.source===r&amp;&amp;&quot;fill-extrusion&quot;===s.type)return!0}return!1}(i&amp;&amp;i.layers,e,t.id),s=a.maxPitchScaleFactor(),l=t.tilesIn(n,s,o);l.sort(B);for(var c=[],u=0,f=l;u&lt;f.length;u+=1){var h=f[u];c.push({wrappedTileID:h.tileID.wrapped().key,queryResults:h.tile.queryRenderedFeatures(e,r,t._state,h.queryGeometry,h.cameraQueryGeometry,h.scale,i,a,s,R(t.transform,h.tileID))})}var p=function(t){for(var e={},r={},n=0,i=t;n&lt;i.length;n+=1){var a=i[n],o=a.queryResults,s=a.wrappedTileID,l=r[s]=r[s]||{};for(var c in o)for(var u=o[c],f=l[c]=l[c]||{},h=e[c]=e[c]||[],p=0,d=u;p&lt;d.length;p+=1){var g=d[p];f[g.featureIndex]||(f[g.featureIndex]=!0,h.push(g))}}return e}(c);for(var d in p)p[d].forEach((function(e){var r=e.feature,n=t.getFeatureState(r.layer[&quot;source-layer&quot;],r.id);r.source=r.layer.source,r.layer[&quot;source-layer&quot;]&amp;&amp;(r.sourceLayer=r.layer[&quot;source-layer&quot;]),r.state=n}));return p}function B(t,e){var r=t.tileID,n=e.tileID;return r.overscaledZ-n.overscaledZ||r.canonical.y-n.canonical.y||r.wrap-n.wrap||r.canonical.x-n.canonical.x}var N=function(t,e){this.max=t,this.onRemove=e,this.reset()};N.prototype.reset=function(){for(var t in this.data)for(var e=0,r=this.data[t];e&lt;r.length;e+=1){var n=r[e];n.timeout&amp;&amp;clearTimeout(n.timeout),this.onRemove(n.value)}return this.data={},this.order=[],this},N.prototype.add=function(t,e,r){var n=this,i=t.wrapped().key;void 0===this.data[i]&amp;&amp;(this.data[i]=[]);var a={value:e,timeout:void 0};if(void 0!==r&amp;&amp;(a.timeout=setTimeout((function(){n.remove(t,a)}),r)),this.data[i].push(a),this.order.push(i),this.order.length&gt;this.max){var o=this._getAndRemoveByKey(this.order[0]);o&amp;&amp;this.onRemove(o)}return this},N.prototype.has=function(t){return t.wrapped().key in this.data},N.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},N.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&amp;&amp;clearTimeout(e.timeout),0===this.data[t].length&amp;&amp;delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},N.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},N.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},N.prototype.remove=function(t,e){if(!this.has(t))return this;var r=t.wrapped().key,n=void 0===e?0:this.data[r].indexOf(e),i=this.data[r][n];return this.data[r].splice(n,1),i.timeout&amp;&amp;clearTimeout(i.timeout),0===this.data[r].length&amp;&amp;delete this.data[r],this.onRemove(i.value),this.order.splice(this.order.indexOf(r),1),this},N.prototype.setMaxSize=function(t){for(this.max=t;this.order.length&gt;this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&amp;&amp;this.onRemove(e)}return this},N.prototype.filter=function(t){var e=[];for(var r in this.data)for(var n=0,i=this.data[r];n&lt;i.length;n+=1){var a=i[n];t(a.value)||e.push(a)}for(var o=0,s=e;o&lt;s.length;o+=1){var l=s[o];this.remove(l.value.tileID,l)}};var j=function(t,e,r){this.context=t;var n=t.gl;this.buffer=n.createBuffer(),this.dynamicDraw=Boolean(r),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),n.bufferData(n.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};j.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},j.prototype.updateData=function(t){var e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)},j.prototype.destroy=function(){this.buffer&amp;&amp;(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var U={Int8:&quot;BYTE&quot;,Uint8:&quot;UNSIGNED_BYTE&quot;,Int16:&quot;SHORT&quot;,Uint16:&quot;UNSIGNED_SHORT&quot;,Int32:&quot;INT&quot;,Uint32:&quot;UNSIGNED_INT&quot;,Float32:&quot;FLOAT&quot;},V=function(t,e,r,n){this.length=e.length,this.attributes=r,this.itemSize=e.bytesPerElement,this.dynamicDraw=n,this.context=t;var i=t.gl;this.buffer=i.createBuffer(),t.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};V.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},V.prototype.updateData=function(t){var e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)},V.prototype.enableAttributes=function(t,e){for(var r=0;r&lt;this.attributes.length;r++){var n=e.attributes[this.attributes[r].name];void 0!==n&amp;&amp;t.enableVertexAttribArray(n)}},V.prototype.setVertexAttribPointers=function(t,e,r){for(var n=0;n&lt;this.attributes.length;n++){var i=this.attributes[n],a=e.attributes[i.name];void 0!==a&amp;&amp;t.vertexAttribPointer(a,i.components,t[U[i.type]],!1,this.itemSize,i.offset+this.itemSize*(r||0))}},V.prototype.destroy=function(){this.buffer&amp;&amp;(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var q=function(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};q.prototype.get=function(){return this.current},q.prototype.set=function(t){},q.prototype.getDefault=function(){return this.default},q.prototype.setDefault=function(){this.set(this.default)};var H=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),G=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 1},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearDepth(t),this.current=t,this.dirty=!1)},e}(q),Y=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearStencil(t),this.current=t,this.dirty=!1)},e}(q),W=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return[!0,!0,!0,!0]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),X=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthMask(t),this.current=t,this.dirty=!1)},e}(q),Z=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 255},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.stencilMask(t),this.current=t,this.dirty=!1)},e}(q),J=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},e.prototype.set=function(t){var e=this.current;(t.func!==e.func||t.ref!==e.ref||t.mask!==e.mask||this.dirty)&amp;&amp;(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)},e}(q),K=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||this.dirty)&amp;&amp;(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)},e}(q),Q=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}},e}(q),$=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return[0,1]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),tt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}},e}(q),et=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.LESS},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthFunc(t),this.current=t,this.dirty=!1)},e}(q),rt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}},e}(q),nt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.ONE,t.ZERO]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),it=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),at=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.FUNC_ADD},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.blendEquation(t),this.current=t,this.dirty=!1)},e}(q),ot=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}},e}(q),st=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.BACK},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.cullFace(t),this.current=t,this.dirty=!1)},e}(q),lt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.CCW},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.frontFace(t),this.current=t,this.dirty=!1)},e}(q),ct=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.useProgram(t),this.current=t,this.dirty=!1)},e}(q),ut=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.TEXTURE0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.activeTexture(t),this.current=t,this.dirty=!1)},e}(q),ft=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),ht=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}},e}(q),pt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(q),dt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}},e}(q),gt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}},e}(q),mt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1},e}(q),vt=function(t){function e(e){t.call(this,e),this.vao=e.extVertexArrayObject}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){this.vao&amp;&amp;(t!==this.current||this.dirty)&amp;&amp;(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1)},e}(q),yt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 4},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}},e}(q),xt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),bt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),_t=function(t){function e(e,r){t.call(this,e),this.context=e,this.parent=r}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e}(q),wt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.setDirty=function(){this.dirty=!0},e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},e}(_t),Tt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(_t),kt=function(t,e,r,n){this.context=t,this.width=e,this.height=r;var i=this.framebuffer=t.gl.createFramebuffer();this.colorAttachment=new wt(t,i),n&amp;&amp;(this.depthAttachment=new Tt(t,i))};kt.prototype.destroy=function(){var t=this.context.gl,e=this.colorAttachment.get();if(e&amp;&amp;t.deleteTexture(e),this.depthAttachment){var r=this.depthAttachment.get();r&amp;&amp;t.deleteRenderbuffer(r)}t.deleteFramebuffer(this.framebuffer)};var Mt=function(t,e,r){this.func=t,this.mask=e,this.range=r};Mt.ReadOnly=!1,Mt.ReadWrite=!0,Mt.disabled=new Mt(519,Mt.ReadOnly,[0,1]);var At=function(t,e,r,n,i,a){this.test=t,this.ref=e,this.mask=r,this.fail=n,this.depthFail=i,this.pass=a};At.disabled=new At({func:519,mask:0},0,0,7680,7680,7680);var St=function(t,e,r){this.blendFunction=t,this.blendColor=e,this.mask=r};St.disabled=new St(St.Replace=[1,0],t.Color.transparent,[!1,!1,!1,!1]),St.unblended=new St(St.Replace,t.Color.transparent,[!0,!0,!0,!0]),St.alphaBlended=new St([1,771],t.Color.transparent,[!0,!0,!0,!0]);var Et=function(t,e,r){this.enable=t,this.mode=e,this.frontFace=r};Et.disabled=new Et(!1,1029,2305),Et.backCCW=new Et(!0,1029,2305);var Ct=function(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension(&quot;OES_vertex_array_object&quot;),this.clearColor=new H(this),this.clearDepth=new G(this),this.clearStencil=new Y(this),this.colorMask=new W(this),this.depthMask=new X(this),this.stencilMask=new Z(this),this.stencilFunc=new J(this),this.stencilOp=new K(this),this.stencilTest=new Q(this),this.depthRange=new $(this),this.depthTest=new tt(this),this.depthFunc=new et(this),this.blend=new rt(this),this.blendFunc=new nt(this),this.blendColor=new it(this),this.blendEquation=new at(this),this.cullFace=new ot(this),this.cullFaceSide=new st(this),this.frontFace=new lt(this),this.program=new ct(this),this.activeTexture=new ut(this),this.viewport=new ft(this),this.bindFramebuffer=new ht(this),this.bindRenderbuffer=new pt(this),this.bindTexture=new dt(this),this.bindVertexBuffer=new gt(this),this.bindElementBuffer=new mt(this),this.bindVertexArrayOES=this.extVertexArrayObject&amp;&amp;new vt(this),this.pixelStoreUnpack=new yt(this),this.pixelStoreUnpackPremultiplyAlpha=new xt(this),this.pixelStoreUnpackFlipY=new bt(this),this.extTextureFilterAnisotropic=t.getExtension(&quot;EXT_texture_filter_anisotropic&quot;)||t.getExtension(&quot;MOZ_EXT_texture_filter_anisotropic&quot;)||t.getExtension(&quot;WEBKIT_EXT_texture_filter_anisotropic&quot;),this.extTextureFilterAnisotropic&amp;&amp;(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension(&quot;OES_texture_half_float&quot;),this.extTextureHalfFloat&amp;&amp;(t.getExtension(&quot;OES_texture_half_float_linear&quot;),this.extRenderToTextureHalfFloat=t.getExtension(&quot;EXT_color_buffer_half_float&quot;)),this.extTimerQuery=t.getExtension(&quot;EXT_disjoint_timer_query&quot;)};Ct.prototype.setDefault=function(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()},Ct.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&amp;&amp;(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},Ct.prototype.createIndexBuffer=function(t,e){return new j(this,t,e)},Ct.prototype.createVertexBuffer=function(t,e,r){return new V(this,t,e,r)},Ct.prototype.createRenderbuffer=function(t,e,r){var n=this.gl,i=n.createRenderbuffer();return this.bindRenderbuffer.set(i),n.renderbufferStorage(n.RENDERBUFFER,t,e,r),this.bindRenderbuffer.set(null),i},Ct.prototype.createFramebuffer=function(t,e,r){return new kt(this,t,e,r)},Ct.prototype.clear=function(t){var e=t.color,r=t.depth,n=this.gl,i=0;e&amp;&amp;(i|=n.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==r&amp;&amp;(i|=n.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(r),this.depthMask.set(!0)),n.clear(i)},Ct.prototype.setCullFace=function(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))},Ct.prototype.setDepthMode=function(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)},Ct.prototype.setStencilMode=function(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)},Ct.prototype.setColorMode=function(e){t.deepEqual(e.blendFunction,St.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)},Ct.prototype.unbindVAO=function(){this.extVertexArrayObject&amp;&amp;this.bindVertexArrayOES.set(null)};var Lt=function(e){function r(r,n,i){var a=this;e.call(this),this.id=r,this.dispatcher=i,this.on(&quot;data&quot;,(function(t){&quot;source&quot;===t.dataType&amp;&amp;&quot;metadata&quot;===t.sourceDataType&amp;&amp;(a._sourceLoaded=!0),a._sourceLoaded&amp;&amp;!a._paused&amp;&amp;&quot;source&quot;===t.dataType&amp;&amp;&quot;content&quot;===t.sourceDataType&amp;&amp;(a.reload(),a.transform&amp;&amp;a.update(a.transform))})),this.on(&quot;error&quot;,(function(){a._sourceErrored=!0})),this._source=function(e,r,n,i){var a=new D[r.type](e,r,n,i);if(a.id!==e)throw new Error(&quot;Expected Source id to be &quot;+e+&quot; instead of &quot;+a.id);return t.bindAll([&quot;load&quot;,&quot;abort&quot;,&quot;unload&quot;,&quot;serialize&quot;,&quot;prepare&quot;],a),a}(r,n,i,this),this._tiles={},this._cache=new N(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new t.SourceFeatureState}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.onAdd=function(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&amp;&amp;this._source.onAdd&amp;&amp;this._source.onAdd(t)},r.prototype.onRemove=function(t){this._source&amp;&amp;this._source.onRemove&amp;&amp;this._source.onRemove(t)},r.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var t in this._tiles){var e=this._tiles[t];if(&quot;loaded&quot;!==e.state&amp;&amp;&quot;errored&quot;!==e.state)return!1}return!0},r.prototype.getSource=function(){return this._source},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){if(this._paused){var t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&amp;&amp;this.reload(),this.transform&amp;&amp;this.update(this.transform)}},r.prototype._loadTile=function(t,e){return this._source.loadTile(t,e)},r.prototype._unloadTile=function(t){if(this._source.unloadTile)return this._source.unloadTile(t,(function(){}))},r.prototype._abortTile=function(t){if(this._source.abortTile)return this._source.abortTile(t,(function(){}))},r.prototype.serialize=function(){return this._source.serialize()},r.prototype.prepare=function(t){for(var e in this._source.prepare&amp;&amp;this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var r=this._tiles[e];r.upload(t),r.prepare(this.map.style.imageManager)}},r.prototype.getIds=function(){return t.values(this._tiles).map((function(t){return t.tileID})).sort(It).map((function(t){return t.key}))},r.prototype.getRenderableIds=function(e){var r=this,n=[];for(var i in this._tiles)this._isIdRenderable(i,e)&amp;&amp;n.push(this._tiles[i]);return e?n.sort((function(e,n){var i=e.tileID,a=n.tileID,o=new t.Point(i.canonical.x,i.canonical.y)._rotate(r.transform.angle),s=new t.Point(a.canonical.x,a.canonical.y)._rotate(r.transform.angle);return i.overscaledZ-a.overscaledZ||s.y-o.y||s.x-o.x})).map((function(t){return t.tileID.key})):n.map((function(t){return t.tileID})).sort(It).map((function(t){return t.key}))},r.prototype.hasRenderableParent=function(t){var e=this.findLoadedParent(t,0);return!!e&amp;&amp;this._isIdRenderable(e.tileID.key)},r.prototype._isIdRenderable=function(t,e){return this._tiles[t]&amp;&amp;this._tiles[t].hasData()&amp;&amp;!this._coveredTiles[t]&amp;&amp;(e||!this._tiles[t].holdingForFade())},r.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var t in this._cache.reset(),this._tiles)&quot;errored&quot;!==this._tiles[t].state&amp;&amp;this._reloadTile(t,&quot;reloading&quot;)},r.prototype._reloadTile=function(t,e){var r=this._tiles[t];r&amp;&amp;(&quot;loading&quot;!==r.state&amp;&amp;(r.state=e),this._loadTile(r,this._tileLoaded.bind(this,r,t,e)))},r.prototype._tileLoaded=function(e,r,n,i){if(i)return e.state=&quot;errored&quot;,void(404!==i.status?this._source.fire(new t.ErrorEvent(i,{tile:e})):this.update(this.transform));e.timeAdded=t.browser.now(),&quot;expired&quot;===n&amp;&amp;(e.refreshedUponExpiration=!0),this._setTileReloadTimer(r,e),&quot;raster-dem&quot;===this.getSource().type&amp;&amp;e.dem&amp;&amp;this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,tile:e,coord:e.tileID}))},r.prototype._backfillDEM=function(t){for(var e=this.getRenderableIds(),r=0;r&lt;e.length;r++){var n=e[r];if(t.neighboringTiles&amp;&amp;t.neighboringTiles[n]){var i=this.getTileByID(n);a(t,i),a(i,t)}}function a(t,e){t.needsHillshadePrepare=!0;var r=e.tileID.canonical.x-t.tileID.canonical.x,n=e.tileID.canonical.y-t.tileID.canonical.y,i=Math.pow(2,t.tileID.canonical.z),a=e.tileID.key;0===r&amp;&amp;0===n||Math.abs(n)&gt;1||(Math.abs(r)&gt;1&amp;&amp;(1===Math.abs(r+i)?r+=i:1===Math.abs(r-i)&amp;&amp;(r-=i)),e.dem&amp;&amp;t.dem&amp;&amp;(t.dem.backfillBorder(e.dem,r,n),t.neighboringTiles&amp;&amp;t.neighboringTiles[a]&amp;&amp;(t.neighboringTiles[a].backfilled=!0)))}},r.prototype.getTile=function(t){return this.getTileByID(t.key)},r.prototype.getTileByID=function(t){return this._tiles[t]},r.prototype._retainLoadedChildren=function(t,e,r,n){for(var i in this._tiles){var a=this._tiles[i];if(!(n[i]||!a.hasData()||a.tileID.overscaledZ&lt;=e||a.tileID.overscaledZ&gt;r)){for(var o=a.tileID;a&amp;&amp;a.tileID.overscaledZ&gt;e+1;){var s=a.tileID.scaledTo(a.tileID.overscaledZ-1);(a=this._tiles[s.key])&amp;&amp;a.hasData()&amp;&amp;(o=s)}for(var l=o;l.overscaledZ&gt;e;)if(t[(l=l.scaledTo(l.overscaledZ-1)).key]){n[o.key]=o;break}}}},r.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var r=this._loadedParentTiles[t.key];return r&amp;&amp;r.tileID.overscaledZ&gt;=e?r:null}for(var n=t.overscaledZ-1;n&gt;=e;n--){var i=t.scaledTo(n),a=this._getLoadedTile(i);if(a)return a}},r.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&amp;&amp;e.hasData()?e:this._cache.getByKey(t.wrapped().key)},r.prototype.updateCacheSize=function(t){var e=Math.ceil(t.width/this._source.tileSize)+1,r=Math.ceil(t.height/this._source.tileSize)+1,n=Math.floor(e*r*5),i=&quot;number&quot;==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,n):n;this._cache.setMaxSize(i)},r.prototype.handleWrapJump=function(t){var e=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);if(this._prevLng=t,e){var r={};for(var n in this._tiles){var i=this._tiles[n];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+e),r[i.tileID.key]=i}for(var a in this._tiles=r,this._timers)clearTimeout(this._timers[a]),delete this._timers[a];for(var o in this._tiles)this._setTileReloadTimer(o,this._tiles[o])}},r.prototype.update=function(e){var n=this;if(this.transform=e,this._sourceLoaded&amp;&amp;!this._paused){var i;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)})):(i=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&amp;&amp;(i=i.filter((function(t){return n._source.hasTile(t)})))):i=[];var a=e.coveringZoomLevel(this._source),o=Math.max(a-r.maxOverzooming,this._source.minzoom),s=Math.max(a+r.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(i,a);if(Pt(this._source.type)){for(var c={},u={},f=0,h=Object.keys(l);f&lt;h.length;f+=1){var p=h[f],d=l[p],g=this._tiles[p];if(g&amp;&amp;!(g.fadeEndTime&amp;&amp;g.fadeEndTime&lt;=t.browser.now())){var m=this.findLoadedParent(d,o);m&amp;&amp;(this._addTile(m.tileID),c[m.tileID.key]=m.tileID),u[p]=d}}for(var v in this._retainLoadedChildren(u,a,s,l),c)l[v]||(this._coveredTiles[v]=!0,l[v]=c[v])}for(var y in l)this._tiles[y].clearFadeHold();for(var x=0,b=t.keysDifference(this._tiles,l);x&lt;b.length;x+=1){var _=b[x],w=this._tiles[_];w.hasSymbolBuckets&amp;&amp;!w.holdingForFade()?w.setHoldDuration(this.map._fadeDuration):w.hasSymbolBuckets&amp;&amp;!w.symbolFadeFinished()||this._removeTile(_)}this._updateLoadedParentTileCache()}},r.prototype.releaseSymbolFadeTiles=function(){for(var t in this._tiles)this._tiles[t].holdingForFade()&amp;&amp;this._removeTile(t)},r.prototype._updateRetainedTiles=function(t,e){for(var n={},i={},a=Math.max(e-r.maxOverzooming,this._source.minzoom),o=Math.max(e+r.maxUnderzooming,this._source.minzoom),s={},l=0,c=t;l&lt;c.length;l+=1){var u=c[l],f=this._addTile(u);n[u.key]=u,f.hasData()||e&lt;this._source.maxzoom&amp;&amp;(s[u.key]=u)}this._retainLoadedChildren(s,e,o,n);for(var h=0,p=t;h&lt;p.length;h+=1){var d=p[h],g=this._tiles[d.key];if(!g.hasData()){if(e+1&gt;this._source.maxzoom){var m=d.children(this._source.maxzoom)[0],v=this.getTile(m);if(v&amp;&amp;v.hasData()){n[m.key]=m;continue}}else{var y=d.children(this._source.maxzoom);if(n[y[0].key]&amp;&amp;n[y[1].key]&amp;&amp;n[y[2].key]&amp;&amp;n[y[3].key])continue}for(var x=g.wasRequested(),b=d.overscaledZ-1;b&gt;=a;--b){var _=d.scaledTo(b);if(i[_.key])break;if(i[_.key]=!0,!(g=this.getTile(_))&amp;&amp;x&amp;&amp;(g=this._addTile(_)),g&amp;&amp;(n[_.key]=_,x=g.wasRequested(),g.hasData()))break}}}return n},r.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],r=void 0,n=this._tiles[t].tileID;n.overscaledZ&gt;0;){if(n.key in this._loadedParentTiles){r=this._loadedParentTiles[n.key];break}e.push(n.key);var i=n.scaledTo(n.overscaledZ-1);if(r=this._getLoadedTile(i))break;n=i}for(var a=0,o=e;a&lt;o.length;a+=1)this._loadedParentTiles[o[a]]=r}},r.prototype._addTile=function(e){var r=this._tiles[e.key];if(r)return r;(r=this._cache.getAndRemove(e))&amp;&amp;(this._setTileReloadTimer(e.key,r),r.tileID=e,this._state.initializeTileState(r,this.map?this.map.painter:null),this._cacheTimers[e.key]&amp;&amp;(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,r)));var n=Boolean(r);return n||(r=new t.Tile(e,this._source.tileSize*e.overscaleFactor()),this._loadTile(r,this._tileLoaded.bind(this,r,e.key,r.state))),r?(r.uses++,this._tiles[e.key]=r,n||this._source.fire(new t.Event(&quot;dataloading&quot;,{tile:r,coord:r.tileID,dataType:&quot;source&quot;})),r):null},r.prototype._setTileReloadTimer=function(t,e){var r=this;t in this._timers&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]);var n=e.getExpiryTimeout();n&amp;&amp;(this._timers[t]=setTimeout((function(){r._reloadTile(t,&quot;expired&quot;),delete r._timers[t]}),n))},r.prototype._removeTile=function(t){var e=this._tiles[t];e&amp;&amp;(e.uses--,delete this._tiles[t],this._timers[t]&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses&gt;0||(e.hasData()&amp;&amp;&quot;reloading&quot;!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},r.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},r.prototype.tilesIn=function(e,r,n){var i=this,a=[],o=this.transform;if(!o)return a;for(var s=n?o.getCameraQueryGeometry(e):e,l=e.map((function(t){return o.pointCoordinate(t)})),c=s.map((function(t){return o.pointCoordinate(t)})),u=this.getIds(),f=1/0,h=1/0,p=-1/0,d=-1/0,g=0,m=c;g&lt;m.length;g+=1){var v=m[g];f=Math.min(f,v.x),h=Math.min(h,v.y),p=Math.max(p,v.x),d=Math.max(d,v.y)}for(var y=function(e){var n=i._tiles[u[e]];if(!n.holdingForFade()){var s=n.tileID,g=Math.pow(2,o.zoom-n.tileID.overscaledZ),m=r*n.queryPadding*t.EXTENT/n.tileSize/g,v=[s.getTilePoint(new t.MercatorCoordinate(f,h)),s.getTilePoint(new t.MercatorCoordinate(p,d))];if(v[0].x-m&lt;t.EXTENT&amp;&amp;v[0].y-m&lt;t.EXTENT&amp;&amp;v[1].x+m&gt;=0&amp;&amp;v[1].y+m&gt;=0){var y=l.map((function(t){return s.getTilePoint(t)})),x=c.map((function(t){return s.getTilePoint(t)}));a.push({tile:n,tileID:s,queryGeometry:y,cameraQueryGeometry:x,scale:g})}}},x=0;x&lt;u.length;x++)y(x);return a},r.prototype.getVisibleCoordinates=function(t){for(var e=this,r=this.getRenderableIds(t).map((function(t){return e._tiles[t].tileID})),n=0,i=r;n&lt;i.length;n+=1){var a=i[n];a.posMatrix=this.transform.calculatePosMatrix(a.toUnwrapped())}return r},r.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(Pt(this._source.type))for(var e in this._tiles){var r=this._tiles[e];if(void 0!==r.fadeEndTime&amp;&amp;r.fadeEndTime&gt;=t.browser.now())return!0}return!1},r.prototype.setFeatureState=function(t,e,r){this._state.updateState(t=t||&quot;_geojsonTileLayer&quot;,e,r)},r.prototype.removeFeatureState=function(t,e,r){this._state.removeFeatureState(t=t||&quot;_geojsonTileLayer&quot;,e,r)},r.prototype.getFeatureState=function(t,e){return this._state.getState(t=t||&quot;_geojsonTileLayer&quot;,e)},r.prototype.setDependencies=function(t,e,r){var n=this._tiles[t];n&amp;&amp;n.setDependencies(e,r)},r.prototype.reloadTilesForDependencies=function(t,e){for(var r in this._tiles)this._tiles[r].hasDependency(t,e)&amp;&amp;this._reloadTile(r,&quot;reloading&quot;);this._cache.filter((function(r){return!r.hasDependency(t,e)}))},r}(t.Evented);function It(t,e){var r=Math.abs(2*t.wrap)-+(t.wrap&lt;0),n=Math.abs(2*e.wrap)-+(e.wrap&lt;0);return t.overscaledZ-e.overscaledZ||n-r||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function Pt(t){return&quot;raster&quot;===t||&quot;image&quot;===t||&quot;video&quot;===t}function zt(){return new t.window.Worker(Yi.workerUrl)}Lt.maxOverzooming=10,Lt.maxUnderzooming=3;var Ot=&quot;mapboxgl_preloaded_worker_pool&quot;,Dt=function(){this.active={}};Dt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length&lt;Dt.workerCount;)this.workers.push(new zt);return this.active[t]=!0,this.workers.slice()},Dt.prototype.release=function(t){delete this.active[t],0===this.numActive()&amp;&amp;(this.workers.forEach((function(t){t.terminate()})),this.workers=null)},Dt.prototype.isPreloaded=function(){return!!this.active[Ot]},Dt.prototype.numActive=function(){return Object.keys(this.active).length};var Rt,Ft=Math.floor(t.browser.hardwareConcurrency/2);function Bt(){return Rt||(Rt=new Dt),Rt}function Nt(e,r){var n={};for(var i in e)&quot;ref&quot;!==i&amp;&amp;(n[i]=e[i]);return t.refProperties.forEach((function(t){t in r&amp;&amp;(n[t]=r[t])})),n}function jt(t){t=t.slice();for(var e=Object.create(null),r=0;r&lt;t.length;r++)e[t[r].id]=t[r];for(var n=0;n&lt;t.length;n++)&quot;ref&quot;in t[n]&amp;&amp;(t[n]=Nt(t[n],e[t[n].ref]));return t}Dt.workerCount=Math.max(Math.min(Ft,6),1);var Ut={setStyle:&quot;setStyle&quot;,addLayer:&quot;addLayer&quot;,removeLayer:&quot;removeLayer&quot;,setPaintProperty:&quot;setPaintProperty&quot;,setLayoutProperty:&quot;setLayoutProperty&quot;,setFilter:&quot;setFilter&quot;,addSource:&quot;addSource&quot;,removeSource:&quot;removeSource&quot;,setGeoJSONSourceData:&quot;setGeoJSONSourceData&quot;,setLayerZoomRange:&quot;setLayerZoomRange&quot;,setLayerProperty:&quot;setLayerProperty&quot;,setCenter:&quot;setCenter&quot;,setZoom:&quot;setZoom&quot;,setBearing:&quot;setBearing&quot;,setPitch:&quot;setPitch&quot;,setSprite:&quot;setSprite&quot;,setGlyphs:&quot;setGlyphs&quot;,setTransition:&quot;setTransition&quot;,setLight:&quot;setLight&quot;};function Vt(t,e,r){r.push({command:Ut.addSource,args:[t,e[t]]})}function qt(t,e,r){e.push({command:Ut.removeSource,args:[t]}),r[t]=!0}function Ht(t,e,r,n){qt(t,r,n),Vt(t,e,r)}function Gt(e,r,n){var i;for(i in e[n])if(e[n].hasOwnProperty(i)&amp;&amp;&quot;data&quot;!==i&amp;&amp;!t.deepEqual(e[n][i],r[n][i]))return!1;for(i in r[n])if(r[n].hasOwnProperty(i)&amp;&amp;&quot;data&quot;!==i&amp;&amp;!t.deepEqual(e[n][i],r[n][i]))return!1;return!0}function Yt(e,r,n,i,a,o){var s;for(s in r=r||{},e=e||{})e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}));for(s in r)r.hasOwnProperty(s)&amp;&amp;!e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}))}function Wt(t){return t.id}function Xt(t,e){return t[e.id]=e,t}var Zt=function(t,e){this.reset(t,e)};Zt.prototype.reset=function(t,e){this.points=t||[],this._distances=[0];for(var r=1;r&lt;this.points.length;r++)this._distances[r]=this._distances[r-1]+this.points[r].dist(this.points[r-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(e||0,.5*this.length),this.paddedLength=this.length-2*this.padding},Zt.prototype.lerp=function(e){if(1===this.points.length)return this.points[0];e=t.clamp(e,0,1);for(var r=1,n=this._distances[r],i=e*this.paddedLength+this.padding;n&lt;i&amp;&amp;r&lt;this._distances.length;)n=this._distances[++r];var a=r-1,o=this._distances[a],s=n-o,l=s&gt;0?(i-o)/s:0;return this.points[a].mult(1-l).add(this.points[r].mult(l))};var Jt=function(t,e,r){var n=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(e/r);for(var a=0;a&lt;this.xCellCount*this.yCellCount;a++)n.push([]),i.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0};function Kt(e,r,n,i,a){var o=t.create();return r?(t.scale(o,o,[1/a,1/a,1]),n||t.rotateZ(o,o,i.angle)):t.multiply(o,i.labelPlaneMatrix,e),o}function Qt(e,r,n,i,a){if(r){var o=t.clone(e);return t.scale(o,o,[a,a,1]),n||t.rotateZ(o,o,-i.angle),o}return i.glCoordMatrix}function $t(e,r){var n=[e.x,e.y,0,1];ue(n,n,r);var i=n[3];return{point:new t.Point(n[0]/i,n[1]/i),signedDistanceFromCamera:i}}function te(t,e){return.5+t/e*.5}function ee(t,e){var r=t[0]/t[3],n=t[1]/t[3];return r&gt;=-e[0]&amp;&amp;r&lt;=e[0]&amp;&amp;n&gt;=-e[1]&amp;&amp;n&lt;=e[1]}function re(e,r,n,i,a,o,s,l){var c=i?e.textSizeData:e.iconSizeData,u=t.evaluateSizeForZoom(c,n.transform.zoom),f=[256/n.width*2+1,256/n.height*2+1],h=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;h.clear();for(var p=e.lineVertexArray,d=i?e.text.placedSymbolArray:e.icon.placedSymbolArray,g=n.transform.width/n.transform.height,m=!1,v=0;v&lt;d.length;v++){var y=d.get(v);if(y.hidden||y.writingMode===t.WritingMode.vertical&amp;&amp;!m)ce(y.numGlyphs,h);else{m=!1;var x=[y.anchorX,y.anchorY,0,1];if(t.transformMat4(x,x,r),ee(x,f)){var b=te(n.transform.cameraToCenterDistance,x[3]),_=t.evaluateSizeForFeature(c,u,y),w=s?_/b:_*b,T=new t.Point(y.anchorX,y.anchorY),k=$t(T,a).point,M={},A=ae(y,w,!1,l,r,a,o,e.glyphOffsetArray,p,h,k,T,M,g);m=A.useVertical,(A.notEnoughRoom||m||A.needsFlipping&amp;&amp;ae(y,w,!0,l,r,a,o,e.glyphOffsetArray,p,h,k,T,M,g).notEnoughRoom)&amp;&amp;ce(y.numGlyphs,h)}else ce(y.numGlyphs,h)}}i?e.text.dynamicLayoutVertexBuffer.updateData(h):e.icon.dynamicLayoutVertexBuffer.updateData(h)}function ne(t,e,r,n,i,a,o,s,l,c,u){var f=s.glyphStartIndex+s.numGlyphs,h=s.lineStartIndex,p=s.lineStartIndex+s.lineLength,d=e.getoffsetX(s.glyphStartIndex),g=e.getoffsetX(f-1),m=se(t*d,r,n,i,a,o,s.segment,h,p,l,c,u);if(!m)return null;var v=se(t*g,r,n,i,a,o,s.segment,h,p,l,c,u);return v?{first:m,last:v}:null}function ie(e,r,n,i){return e===t.WritingMode.horizontal&amp;&amp;Math.abs(n.y-r.y)&gt;Math.abs(n.x-r.x)*i?{useVertical:!0}:(e===t.WritingMode.vertical?r.y&lt;n.y:r.x&gt;n.x)?{needsFlipping:!0}:null}function ae(e,r,n,i,a,o,s,l,c,u,f,h,p,d){var g,m=r/24,v=e.lineOffsetX*m,y=e.lineOffsetY*m;if(e.numGlyphs&gt;1){var x=e.glyphStartIndex+e.numGlyphs,b=e.lineStartIndex,_=e.lineStartIndex+e.lineLength,w=ne(m,l,v,y,n,f,h,e,c,o,p);if(!w)return{notEnoughRoom:!0};var T=$t(w.first.point,s).point,k=$t(w.last.point,s).point;if(i&amp;&amp;!n){var M=ie(e.writingMode,T,k,d);if(M)return M}g=[w.first];for(var A=e.glyphStartIndex+1;A&lt;x-1;A++)g.push(se(m*l.getoffsetX(A),v,y,n,f,h,e.segment,b,_,c,o,p));g.push(w.last)}else{if(i&amp;&amp;!n){var S=$t(h,a).point,E=e.lineStartIndex+e.segment+1,C=new t.Point(c.getx(E),c.gety(E)),L=$t(C,a),I=L.signedDistanceFromCamera&gt;0?L.point:oe(h,C,S,1,a),P=ie(e.writingMode,S,I,d);if(P)return P}var z=se(m*l.getoffsetX(e.glyphStartIndex),v,y,n,f,h,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,c,o,p);if(!z)return{notEnoughRoom:!0};g=[z]}for(var O=0,D=g;O&lt;D.length;O+=1){var R=D[O];t.addDynamicAttributes(u,R.point,R.angle)}return{}}function oe(t,e,r,n,i){var a=$t(t.add(t.sub(e)._unit()),i).point,o=r.sub(a);return r.add(o._mult(n/o.mag()))}function se(e,r,n,i,a,o,s,l,c,u,f,h){var p=i?e-r:e+r,d=p&gt;0?1:-1,g=0;i&amp;&amp;(d*=-1,g=Math.PI),d&lt;0&amp;&amp;(g+=Math.PI);for(var m=d&gt;0?l+s:l+s+1,v=a,y=a,x=0,b=0,_=Math.abs(p),w=[];x+b&lt;=_;){if((m+=d)&lt;l||m&gt;=c)return null;if(y=v,w.push(v),void 0===(v=h[m])){var T=new t.Point(u.getx(m),u.gety(m)),k=$t(T,f);if(k.signedDistanceFromCamera&gt;0)v=h[m]=k.point;else{var M=m-d;v=oe(0===x?o:new t.Point(u.getx(M),u.gety(M)),T,y,_-x+1,f)}}x+=b,b=y.dist(v)}var A=(_-x)/b,S=v.sub(y),E=S.mult(A)._add(y);E._add(S._unit()._perp()._mult(n*d));var C=g+Math.atan2(v.y-y.y,v.x-y.x);return w.push(E),{point:E,angle:C,path:w}}Jt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Jt.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},Jt.prototype.insertCircle=function(t,e,r,n){this._forEachCell(e-n,r-n,e+n,r+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(r),this.circles.push(n)},Jt.prototype._insertBoxCell=function(t,e,r,n,i,a){this.boxCells[i].push(a)},Jt.prototype._insertCircleCell=function(t,e,r,n,i,a){this.circleCells[i].push(a)},Jt.prototype._query=function(t,e,r,n,i,a){if(r&lt;0||t&gt;this.width||n&lt;0||e&gt;this.height)return!i&amp;&amp;[];var o=[];if(t&lt;=0&amp;&amp;e&lt;=0&amp;&amp;this.width&lt;=r&amp;&amp;this.height&lt;=n){if(i)return!0;for(var s=0;s&lt;this.boxKeys.length;s++)o.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var l=0;l&lt;this.circleKeys.length;l++){var c=this.circles[3*l],u=this.circles[3*l+1],f=this.circles[3*l+2];o.push({key:this.circleKeys[l],x1:c-f,y1:u-f,x2:c+f,y2:u+f})}return a?o.filter(a):o}return this._forEachCell(t,e,r,n,this._queryCell,o,{hitTest:i,seenUids:{box:{},circle:{}}},a),i?o.length&gt;0:o},Jt.prototype._queryCircle=function(t,e,r,n,i){var a=t-r,o=t+r,s=e-r,l=e+r;if(o&lt;0||a&gt;this.width||l&lt;0||s&gt;this.height)return!n&amp;&amp;[];var c=[];return this._forEachCell(a,s,o,l,this._queryCellCircle,c,{hitTest:n,circle:{x:t,y:e,radius:r},seenUids:{box:{},circle:{}}},i),n?c.length&gt;0:c},Jt.prototype.query=function(t,e,r,n,i){return this._query(t,e,r,n,!1,i)},Jt.prototype.hitTest=function(t,e,r,n,i){return this._query(t,e,r,n,!0,i)},Jt.prototype.hitTestCircle=function(t,e,r,n){return this._queryCircle(t,e,r,!0,n)},Jt.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=o.seenUids,c=this.boxCells[i];if(null!==c)for(var u=this.bboxes,f=0,h=c;f&lt;h.length;f+=1){var p=h[f];if(!l.box[p]){l.box[p]=!0;var d=4*p;if(t&lt;=u[d+2]&amp;&amp;e&lt;=u[d+3]&amp;&amp;r&gt;=u[d+0]&amp;&amp;n&gt;=u[d+1]&amp;&amp;(!s||s(this.boxKeys[p]))){if(o.hitTest)return a.push(!0),!0;a.push({key:this.boxKeys[p],x1:u[d],y1:u[d+1],x2:u[d+2],y2:u[d+3]})}}}var g=this.circleCells[i];if(null!==g)for(var m=this.circles,v=0,y=g;v&lt;y.length;v+=1){var x=y[v];if(!l.circle[x]){l.circle[x]=!0;var b=3*x;if(this._circleAndRectCollide(m[b],m[b+1],m[b+2],t,e,r,n)&amp;&amp;(!s||s(this.circleKeys[x]))){if(o.hitTest)return a.push(!0),!0;var _=m[b],w=m[b+1],T=m[b+2];a.push({key:this.circleKeys[x],x1:_-T,y1:w-T,x2:_+T,y2:w+T})}}}},Jt.prototype._queryCellCircle=function(t,e,r,n,i,a,o,s){var l=o.circle,c=o.seenUids,u=this.boxCells[i];if(null!==u)for(var f=this.bboxes,h=0,p=u;h&lt;p.length;h+=1){var d=p[h];if(!c.box[d]){c.box[d]=!0;var g=4*d;if(this._circleAndRectCollide(l.x,l.y,l.radius,f[g+0],f[g+1],f[g+2],f[g+3])&amp;&amp;(!s||s(this.boxKeys[d])))return a.push(!0),!0}}var m=this.circleCells[i];if(null!==m)for(var v=this.circles,y=0,x=m;y&lt;x.length;y+=1){var b=x[y];if(!c.circle[b]){c.circle[b]=!0;var _=3*b;if(this._circlesCollide(v[_],v[_+1],v[_+2],l.x,l.y,l.radius)&amp;&amp;(!s||s(this.circleKeys[b])))return a.push(!0),!0}}},Jt.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToXCellCoord(t),c=this._convertToYCellCoord(e),u=this._convertToXCellCoord(r),f=this._convertToYCellCoord(n),h=l;h&lt;=u;h++)for(var p=c;p&lt;=f;p++)if(i.call(this,t,e,r,n,this.xCellCount*p+h,a,o,s))return},Jt.prototype._convertToXCellCoord=function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))},Jt.prototype._convertToYCellCoord=function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))},Jt.prototype._circlesCollide=function(t,e,r,n,i,a){var o=n-t,s=i-e,l=r+a;return l*l&gt;o*o+s*s},Jt.prototype._circleAndRectCollide=function(t,e,r,n,i,a,o){var s=(a-n)/2,l=Math.abs(t-(n+s));if(l&gt;s+r)return!1;var c=(o-i)/2,u=Math.abs(e-(i+c));if(u&gt;c+r)return!1;if(l&lt;=s||u&lt;=c)return!0;var f=l-s,h=u-c;return f*f+h*h&lt;=r*r};var le=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ce(t,e){for(var r=0;r&lt;t;r++){var n=e.length;e.resize(n+4),e.float32.set(le,3*n)}}function ue(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[4]*i+r[12],t[1]=r[1]*n+r[5]*i+r[13],t[3]=r[3]*n+r[7]*i+r[15],t}var fe=function(t,e,r){void 0===e&amp;&amp;(e=new Jt(t.width+200,t.height+200,25)),void 0===r&amp;&amp;(r=new Jt(t.width+200,t.height+200,25)),this.transform=t,this.grid=e,this.ignoredGrid=r,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200};function he(e,r,n){return r*(t.EXTENT/(e.tileSize*Math.pow(2,n-e.tileID.overscaledZ)))}fe.prototype.placeCollisionBox=function(t,e,r,n,i){var a=this.projectAndGetPerspectiveRatio(n,t.anchorPointX,t.anchorPointY),o=r*a.perspectiveRatio,s=t.x1*o+a.point.x,l=t.y1*o+a.point.y,c=t.x2*o+a.point.x,u=t.y2*o+a.point.y;return!this.isInsideGrid(s,l,c,u)||!e&amp;&amp;this.grid.hitTest(s,l,c,u,i)?{box:[],offscreen:!1}:{box:[s,l,c,u],offscreen:this.isOffscreen(s,l,c,u)}},fe.prototype.placeCollisionCircles=function(e,r,n,i,a,o,s,l,c,u,f,h,p){var d=[],g=new t.Point(r.anchorX,r.anchorY),m=$t(g,o),v=te(this.transform.cameraToCenterDistance,m.signedDistanceFromCamera),y=(u?a/v:a*v)/t.ONE_EM,x=$t(g,s).point,b=ne(y,i,r.lineOffsetX*y,r.lineOffsetY*y,!1,x,g,r,n,s,{}),_=!1,w=!1,T=!0;if(b){for(var k=.5*h*v+p,M=new t.Point(-100,-100),A=new t.Point(this.screenRightBoundary,this.screenBottomBoundary),S=new Zt,E=b.first,C=b.last,L=[],I=E.path.length-1;I&gt;=1;I--)L.push(E.path[I]);for(var P=1;P&lt;C.path.length;P++)L.push(C.path[P]);var z=2.5*k;if(l){var O=L.map((function(t){return $t(t,l)}));L=O.some((function(t){return t.signedDistanceFromCamera&lt;=0}))?[]:O.map((function(t){return t.point}))}var D=[];if(L.length&gt;0){for(var R=L[0].clone(),F=L[0].clone(),B=1;B&lt;L.length;B++)R.x=Math.min(R.x,L[B].x),R.y=Math.min(R.y,L[B].y),F.x=Math.max(F.x,L[B].x),F.y=Math.max(F.y,L[B].y);D=R.x&gt;=M.x&amp;&amp;F.x&lt;=A.x&amp;&amp;R.y&gt;=M.y&amp;&amp;F.y&lt;=A.y?[L]:F.x&lt;M.x||R.x&gt;A.x||F.y&lt;M.y||R.y&gt;A.y?[]:t.clipLine([L],M.x,M.y,A.x,A.y)}for(var N=0,j=D;N&lt;j.length;N+=1){var U;S.reset(j[N],.25*k),U=S.length&lt;=.5*k?1:Math.ceil(S.paddedLength/z)+1;for(var V=0;V&lt;U;V++){var q=V/Math.max(U-1,1),H=S.lerp(q),G=H.x+100,Y=H.y+100;d.push(G,Y,k,0);var W=G-k,X=Y-k,Z=G+k,J=Y+k;if(T=T&amp;&amp;this.isOffscreen(W,X,Z,J),w=w||this.isInsideGrid(W,X,Z,J),!e&amp;&amp;this.grid.hitTestCircle(G,Y,k,f)&amp;&amp;(_=!0,!c))return{circles:[],offscreen:!1,collisionDetected:_}}}}return{circles:!c&amp;&amp;_||!w?[]:d,offscreen:T,collisionDetected:_}},fe.prototype.queryRenderedSymbols=function(e){if(0===e.length||0===this.grid.keysLength()&amp;&amp;0===this.ignoredGrid.keysLength())return{};for(var r=[],n=1/0,i=1/0,a=-1/0,o=-1/0,s=0,l=e;s&lt;l.length;s+=1){var c=l[s],u=new t.Point(c.x+100,c.y+100);n=Math.min(n,u.x),i=Math.min(i,u.y),a=Math.max(a,u.x),o=Math.max(o,u.y),r.push(u)}for(var f={},h={},p=0,d=this.grid.query(n,i,a,o).concat(this.ignoredGrid.query(n,i,a,o));p&lt;d.length;p+=1){var g=d[p],m=g.key;if(void 0===f[m.bucketInstanceId]&amp;&amp;(f[m.bucketInstanceId]={}),!f[m.bucketInstanceId][m.featureIndex]){var v=[new t.Point(g.x1,g.y1),new t.Point(g.x2,g.y1),new t.Point(g.x2,g.y2),new t.Point(g.x1,g.y2)];t.polygonIntersectsPolygon(r,v)&amp;&amp;(f[m.bucketInstanceId][m.featureIndex]=!0,void 0===h[m.bucketInstanceId]&amp;&amp;(h[m.bucketInstanceId]=[]),h[m.bucketInstanceId].push(m.featureIndex))}}return h},fe.prototype.insertCollisionBox=function(t,e,r,n,i){(e?this.ignoredGrid:this.grid).insert({bucketInstanceId:r,featureIndex:n,collisionGroupID:i},t[0],t[1],t[2],t[3])},fe.prototype.insertCollisionCircles=function(t,e,r,n,i){for(var a=e?this.ignoredGrid:this.grid,o={bucketInstanceId:r,featureIndex:n,collisionGroupID:i},s=0;s&lt;t.length;s+=4)a.insertCircle(o,t[s],t[s+1],t[s+2])},fe.prototype.projectAndGetPerspectiveRatio=function(e,r,n){var i=[r,n,0,1];return ue(i,i,e),{point:new t.Point((i[0]/i[3]+1)/2*this.transform.width+100,(-i[1]/i[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/i[3]*.5}},fe.prototype.isOffscreen=function(t,e,r,n){return r&lt;100||t&gt;=this.screenRightBoundary||n&lt;100||e&gt;this.screenBottomBoundary},fe.prototype.isInsideGrid=function(t,e,r,n){return r&gt;=0&amp;&amp;t&lt;this.gridRightBoundary&amp;&amp;n&gt;=0&amp;&amp;e&lt;this.gridBottomBoundary},fe.prototype.getViewportMatrix=function(){var e=t.identity([]);return t.translate(e,e,[-100,-100,0]),e};var pe=function(t,e,r,n){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):n&amp;&amp;r?1:0,this.placed=r};pe.prototype.isHidden=function(){return 0===this.opacity&amp;&amp;!this.placed};var de=function(t,e,r,n,i){this.text=new pe(t?t.text:null,e,r,i),this.icon=new pe(t?t.icon:null,e,n,i)};de.prototype.isHidden=function(){return this.text.isHidden()&amp;&amp;this.icon.isHidden()};var ge=function(t,e,r){this.text=t,this.icon=e,this.skipFade=r},me=function(){this.invProjMatrix=t.create(),this.viewportMatrix=t.create(),this.circles=[]},ve=function(t,e,r,n,i){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=r,this.bucketIndex=n,this.tileID=i},ye=function(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}};function xe(e,r,n,i,a){var o=t.getAnchorAlignment(e),s=-(o.horizontalAlign-.5)*r,l=-(o.verticalAlign-.5)*n,c=t.evaluateVariableOffset(e,i);return new t.Point(s+c[0]*a,l+c[1]*a)}function be(e,r,n,i,a,o){var s=e.x1,l=e.x2,c=e.y1,u=e.y2,f=e.anchorPointX,h=e.anchorPointY,p=new t.Point(r,n);return i&amp;&amp;p._rotate(a?o:-o),{x1:s+p.x,y1:c+p.y,x2:l+p.x,y2:u+p.y,anchorPointX:f,anchorPointY:h}}ye.prototype.get=function(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){var e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:function(t){return t.collisionGroupID===e}}}return this.collisionGroups[t]};var _e=function(t,e,r,n){this.transform=t.clone(),this.collisionIndex=new fe(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new ye(r),this.collisionCircleArrays={},this.prevPlacement=n,n&amp;&amp;(n.prevPlacement=void 0),this.placedOrientations={}};function we(t,e,r,n,i){t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0)}_e.prototype.getBucketParts=function(e,r,n,i){var a=n.getBucket(r),o=n.latestFeatureIndex;if(a&amp;&amp;o&amp;&amp;r.id===a.layerIds[0]){var s=n.collisionBoxArray,l=a.layers[0].layout,c=Math.pow(2,this.transform.zoom-n.tileID.overscaledZ),u=n.tileSize/t.EXTENT,f=this.transform.calculatePosMatrix(n.tileID.toUnwrapped()),h=&quot;map&quot;===l.get(&quot;text-pitch-alignment&quot;),p=&quot;map&quot;===l.get(&quot;text-rotation-alignment&quot;),d=he(n,1,this.transform.zoom),g=Kt(f,h,p,this.transform,d),m=null;if(h){var v=Qt(f,h,p,this.transform,d);m=t.multiply([],this.transform.labelPlaneMatrix,v)}this.retainedQueryData[a.bucketInstanceId]=new ve(a.bucketInstanceId,o,a.sourceLayerIndex,a.index,n.tileID);var y={bucket:a,layout:l,posMatrix:f,textLabelPlaneMatrix:g,labelToScreenMatrix:m,scale:c,textPixelRatio:u,holdingForFade:n.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:t.evaluateSizeForZoom(a.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(a.sourceID)};if(i)for(var x=0,b=a.sortKeyRanges;x&lt;b.length;x+=1){var _=b[x];e.push({sortKey:_.sortKey,symbolInstanceStart:_.symbolInstanceStart,symbolInstanceEnd:_.symbolInstanceEnd,parameters:y})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:a.symbolInstances.length,parameters:y})}},_e.prototype.attemptAnchorPlacement=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d){var g,m=[f.textOffset0,f.textOffset1],v=xe(t,r,n,m,i),y=this.collisionIndex.placeCollisionBox(be(e,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate);if(!d||0!==this.collisionIndex.placeCollisionBox(be(d,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate).box.length)return y.box.length&gt;0?(this.prevPlacement&amp;&amp;this.prevPlacement.variableOffsets[f.crossTileID]&amp;&amp;this.prevPlacement.placements[f.crossTileID]&amp;&amp;this.prevPlacement.placements[f.crossTileID].text&amp;&amp;(g=this.prevPlacement.variableOffsets[f.crossTileID].anchor),this.variableOffsets[f.crossTileID]={textOffset:m,width:r,height:n,anchor:t,textBoxScale:i,prevAnchor:g},this.markUsedJustification(h,t,f,p),h.allowVerticalPlacement&amp;&amp;(this.markUsedOrientation(h,p,f),this.placedOrientations[f.crossTileID]=p),{shift:v,placedGlyphBoxes:y}):void 0},_e.prototype.placeLayerBucketPart=function(e,r,n){var i=this,a=e.parameters,o=a.bucket,s=a.layout,l=a.posMatrix,c=a.textLabelPlaneMatrix,u=a.labelToScreenMatrix,f=a.textPixelRatio,h=a.holdingForFade,p=a.collisionBoxArray,d=a.partiallyEvaluatedTextSize,g=a.collisionGroup,m=s.get(&quot;text-optional&quot;),v=s.get(&quot;icon-optional&quot;),y=s.get(&quot;text-allow-overlap&quot;),x=s.get(&quot;icon-allow-overlap&quot;),b=&quot;map&quot;===s.get(&quot;text-rotation-alignment&quot;),_=&quot;map&quot;===s.get(&quot;text-pitch-alignment&quot;),w=&quot;none&quot;!==s.get(&quot;icon-text-fit&quot;),T=&quot;viewport-y&quot;===s.get(&quot;symbol-z-order&quot;),k=y&amp;&amp;(x||!o.hasIconData()||v),M=x&amp;&amp;(y||!o.hasTextData()||m);!o.collisionArrays&amp;&amp;p&amp;&amp;o.deserializeCollisionBoxes(p);var A=function(e,a){if(!r[e.crossTileID])if(h)i.placements[e.crossTileID]=new ge(!1,!1,!1);else{var p,T=!1,A=!1,S=!0,E=null,C={box:null,offscreen:null},L={box:null,offscreen:null},I=null,P=null,z=0,O=0,D=0;a.textFeatureIndex?z=a.textFeatureIndex:e.useRuntimeCollisionCircles&amp;&amp;(z=e.featureIndex),a.verticalTextFeatureIndex&amp;&amp;(O=a.verticalTextFeatureIndex);var R=a.textBox;if(R){var F=function(r){var n=t.WritingMode.horizontal;if(o.allowVerticalPlacement&amp;&amp;!r&amp;&amp;i.prevPlacement){var a=i.prevPlacement.placedOrientations[e.crossTileID];a&amp;&amp;(i.placedOrientations[e.crossTileID]=a,i.markUsedOrientation(o,n=a,e))}return n},B=function(r,n){if(o.allowVerticalPlacement&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;a.verticalTextBox)for(var i=0,s=o.writingModes;i&lt;s.length&amp;&amp;(s[i]===t.WritingMode.vertical?(C=n(),L=C):C=r(),!(C&amp;&amp;C.box&amp;&amp;C.box.length));i+=1);else C=r()};if(s.get(&quot;text-variable-anchor&quot;)){var N=s.get(&quot;text-variable-anchor&quot;);if(i.prevPlacement&amp;&amp;i.prevPlacement.variableOffsets[e.crossTileID]){var j=i.prevPlacement.variableOffsets[e.crossTileID];N.indexOf(j.anchor)&gt;0&amp;&amp;(N=N.filter((function(t){return t!==j.anchor}))).unshift(j.anchor)}var U=function(t,r,n){for(var a=t.x2-t.x1,s=t.y2-t.y1,c=e.textBoxScale,u=w&amp;&amp;!x?r:null,h={box:[],offscreen:!1},p=y?2*N.length:N.length,d=0;d&lt;p;++d){var m=i.attemptAnchorPlacement(N[d%N.length],t,a,s,c,b,_,f,l,g,d&gt;=N.length,e,o,n,u);if(m&amp;&amp;(h=m.placedGlyphBoxes)&amp;&amp;h.box&amp;&amp;h.box.length){T=!0,E=m.shift;break}}return h};B((function(){return U(R,a.iconBox,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox;return o.allowVerticalPlacement&amp;&amp;!(C&amp;&amp;C.box&amp;&amp;C.box.length)&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;r?U(r,a.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),C&amp;&amp;(T=C.box,S=C.offscreen);var V=F(C&amp;&amp;C.box);if(!T&amp;&amp;i.prevPlacement){var q=i.prevPlacement.variableOffsets[e.crossTileID];q&amp;&amp;(i.variableOffsets[e.crossTileID]=q,i.markUsedJustification(o,q.anchor,e,V))}}else{var H=function(t,r){var n=i.collisionIndex.placeCollisionBox(t,y,f,l,g.predicate);return n&amp;&amp;n.box&amp;&amp;n.box.length&amp;&amp;(i.markUsedOrientation(o,r,e),i.placedOrientations[e.crossTileID]=r),n};B((function(){return H(R,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox;return o.allowVerticalPlacement&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;r?H(r,t.WritingMode.vertical):{box:null,offscreen:null}})),F(C&amp;&amp;C.box&amp;&amp;C.box.length)}}if(T=(p=C)&amp;&amp;p.box&amp;&amp;p.box.length&gt;0,S=p&amp;&amp;p.offscreen,e.useRuntimeCollisionCircles){var G=o.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),Y=t.evaluateSizeForFeature(o.textSizeData,d,G),W=s.get(&quot;text-padding&quot;);I=i.collisionIndex.placeCollisionCircles(y,G,o.lineVertexArray,o.glyphOffsetArray,Y,l,c,u,n,_,g.predicate,e.collisionCircleDiameter,W),T=y||I.circles.length&gt;0&amp;&amp;!I.collisionDetected,S=S&amp;&amp;I.offscreen}if(a.iconFeatureIndex&amp;&amp;(D=a.iconFeatureIndex),a.iconBox){var X=function(t){var e=w&amp;&amp;E?be(t,E.x,E.y,b,_,i.transform.angle):t;return i.collisionIndex.placeCollisionBox(e,x,f,l,g.predicate)};A=L&amp;&amp;L.box&amp;&amp;L.box.length&amp;&amp;a.verticalIconBox?(P=X(a.verticalIconBox)).box.length&gt;0:(P=X(a.iconBox)).box.length&gt;0,S=S&amp;&amp;P.offscreen}var Z=m||0===e.numHorizontalGlyphVertices&amp;&amp;0===e.numVerticalGlyphVertices,J=v||0===e.numIconVertices;if(Z||J?J?Z||(A=A&amp;&amp;T):T=A&amp;&amp;T:A=T=A&amp;&amp;T,T&amp;&amp;p&amp;&amp;p.box&amp;&amp;i.collisionIndex.insertCollisionBox(p.box,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,L&amp;&amp;L.box&amp;&amp;O?O:z,g.ID),A&amp;&amp;P&amp;&amp;i.collisionIndex.insertCollisionBox(P.box,s.get(&quot;icon-ignore-placement&quot;),o.bucketInstanceId,D,g.ID),I&amp;&amp;(T&amp;&amp;i.collisionIndex.insertCollisionCircles(I.circles,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,z,g.ID),n)){var K=o.bucketInstanceId,Q=i.collisionCircleArrays[K];void 0===Q&amp;&amp;(Q=i.collisionCircleArrays[K]=new me);for(var $=0;$&lt;I.circles.length;$+=4)Q.circles.push(I.circles[$+0]),Q.circles.push(I.circles[$+1]),Q.circles.push(I.circles[$+2]),Q.circles.push(I.collisionDetected?1:0)}i.placements[e.crossTileID]=new ge(T||k,A||M,S||o.justReloaded),r[e.crossTileID]=!0}};if(T)for(var S=o.getSortedSymbolIndexes(this.transform.angle),E=S.length-1;E&gt;=0;--E){var C=S[E];A(o.symbolInstances.get(C),o.collisionArrays[C])}else for(var L=e.symbolInstanceStart;L&lt;e.symbolInstanceEnd;L++)A(o.symbolInstances.get(L),o.collisionArrays[L]);if(n&amp;&amp;o.bucketInstanceId in this.collisionCircleArrays){var I=this.collisionCircleArrays[o.bucketInstanceId];t.invert(I.invProjMatrix,l),I.viewportMatrix=this.collisionIndex.getViewportMatrix()}o.justReloaded=!1},_e.prototype.markUsedJustification=function(e,r,n,i){var a;a=i===t.WritingMode.vertical?n.verticalPlacedTextSymbolIndex:{left:n.leftJustifiedTextSymbolIndex,center:n.centerJustifiedTextSymbolIndex,right:n.rightJustifiedTextSymbolIndex}[t.getAnchorJustification(r)];for(var o=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex,n.verticalPlacedTextSymbolIndex];o&lt;s.length;o+=1){var l=s[o];l&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(l).crossTileID=a&gt;=0&amp;&amp;l!==a?0:n.crossTileID)}},_e.prototype.markUsedOrientation=function(e,r,n){for(var i=r===t.WritingMode.horizontal||r===t.WritingMode.horizontalOnly?r:0,a=r===t.WritingMode.vertical?r:0,o=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex];o&lt;s.length;o+=1)e.text.placedSymbolArray.get(s[o]).placedOrientation=i;n.verticalPlacedTextSymbolIndex&amp;&amp;(e.text.placedSymbolArray.get(n.verticalPlacedTextSymbolIndex).placedOrientation=a)},_e.prototype.commit=function(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;var e=this.prevPlacement,r=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;var n=e?e.symbolFadeChange(t):1,i=e?e.opacities:{},a=e?e.variableOffsets:{},o=e?e.placedOrientations:{};for(var s in this.placements){var l=this.placements[s],c=i[s];c?(this.opacities[s]=new de(c,n,l.text,l.icon),r=r||l.text!==c.text.placed||l.icon!==c.icon.placed):(this.opacities[s]=new de(null,n,l.text,l.icon,l.skipFade),r=r||l.text||l.icon)}for(var u in i){var f=i[u];if(!this.opacities[u]){var h=new de(f,n,!1,!1);h.isHidden()||(this.opacities[u]=h,r=r||f.text.placed||f.icon.placed)}}for(var p in a)this.variableOffsets[p]||!this.opacities[p]||this.opacities[p].isHidden()||(this.variableOffsets[p]=a[p]);for(var d in o)this.placedOrientations[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.placedOrientations[d]=o[d]);r?this.lastPlacementChangeTime=t:&quot;number&quot;!=typeof this.lastPlacementChangeTime&amp;&amp;(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)},_e.prototype.updateLayerOpacities=function(t,e){for(var r={},n=0,i=e;n&lt;i.length;n+=1){var a=i[n],o=a.getBucket(t);o&amp;&amp;a.latestFeatureIndex&amp;&amp;t.id===o.layerIds[0]&amp;&amp;this.updateBucketOpacities(o,r,a.collisionBoxArray)}},_e.prototype.updateBucketOpacities=function(e,r,n){var i=this;e.hasTextData()&amp;&amp;e.text.opacityVertexArray.clear(),e.hasIconData()&amp;&amp;e.icon.opacityVertexArray.clear(),e.hasIconCollisionBoxData()&amp;&amp;e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&amp;&amp;e.textCollisionBox.collisionVertexArray.clear();var a=e.layers[0].layout,o=new de(null,0,!1,!1,!0),s=a.get(&quot;text-allow-overlap&quot;),l=a.get(&quot;icon-allow-overlap&quot;),c=a.get(&quot;text-variable-anchor&quot;),u=&quot;map&quot;===a.get(&quot;text-rotation-alignment&quot;),f=&quot;map&quot;===a.get(&quot;text-pitch-alignment&quot;),h=&quot;none&quot;!==a.get(&quot;icon-text-fit&quot;),p=new de(null,0,s&amp;&amp;(l||!e.hasIconData()||a.get(&quot;icon-optional&quot;)),l&amp;&amp;(s||!e.hasTextData()||a.get(&quot;text-optional&quot;)),!0);!e.collisionArrays&amp;&amp;n&amp;&amp;(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&amp;&amp;e.deserializeCollisionBoxes(n);for(var d=function(t,e,r){for(var n=0;n&lt;e/4;n++)t.opacityVertexArray.emplaceBack(r)},g=function(n){var a=e.symbolInstances.get(n),s=a.numHorizontalGlyphVertices,l=a.numVerticalGlyphVertices,g=a.crossTileID,m=i.opacities[g];r[g]?m=o:m||(i.opacities[g]=m=p),r[g]=!0;var v=a.numIconVertices&gt;0,y=i.placedOrientations[a.crossTileID],x=y===t.WritingMode.vertical,b=y===t.WritingMode.horizontal||y===t.WritingMode.horizontalOnly;if(s&gt;0||l&gt;0){var _=Le(m.text);d(e.text,s,x?Ie:_),d(e.text,l,b?Ie:_);var w=m.text.isHidden();[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((function(t){t&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(t).hidden=w||x?1:0)})),a.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).hidden=w||b?1:0);var T=i.variableOffsets[a.crossTileID];T&amp;&amp;i.markUsedJustification(e,T.anchor,a,y);var k=i.placedOrientations[a.crossTileID];k&amp;&amp;(i.markUsedJustification(e,&quot;left&quot;,a,k),i.markUsedOrientation(e,k,a))}if(v){var M=Le(m.icon),A=!(h&amp;&amp;a.verticalPlacedIconSymbolIndex&amp;&amp;x);a.placedIconSymbolIndex&gt;=0&amp;&amp;(d(e.icon,a.numIconVertices,A?M:Ie),e.icon.placedSymbolArray.get(a.placedIconSymbolIndex).hidden=m.icon.isHidden()),a.verticalPlacedIconSymbolIndex&gt;=0&amp;&amp;(d(e.icon,a.numVerticalIconVertices,A?Ie:M),e.icon.placedSymbolArray.get(a.verticalPlacedIconSymbolIndex).hidden=m.icon.isHidden())}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){var S=e.collisionArrays[n];if(S){var E=new t.Point(0,0);if(S.textBox||S.verticalTextBox){var C=!0;if(c){var L=i.variableOffsets[g];L?(E=xe(L.anchor,L.width,L.height,L.textOffset,L.textBoxScale),u&amp;&amp;E._rotate(f?i.transform.angle:-i.transform.angle)):C=!1}S.textBox&amp;&amp;we(e.textCollisionBox.collisionVertexArray,m.text.placed,!C||x,E.x,E.y),S.verticalTextBox&amp;&amp;we(e.textCollisionBox.collisionVertexArray,m.text.placed,!C||b,E.x,E.y)}var I=Boolean(!b&amp;&amp;S.verticalIconBox);S.iconBox&amp;&amp;we(e.iconCollisionBox.collisionVertexArray,m.icon.placed,I,h?E.x:0,h?E.y:0),S.verticalIconBox&amp;&amp;we(e.iconCollisionBox.collisionVertexArray,m.icon.placed,!I,h?E.x:0,h?E.y:0)}}},m=0;m&lt;e.symbolInstances.length;m++)g(m);if(e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&amp;&amp;(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&amp;&amp;e.text.opacityVertexBuffer&amp;&amp;e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&amp;&amp;e.icon.opacityVertexBuffer&amp;&amp;e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&amp;&amp;e.iconCollisionBox.collisionVertexBuffer&amp;&amp;e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&amp;&amp;e.textCollisionBox.collisionVertexBuffer&amp;&amp;e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.bucketInstanceId in this.collisionCircleArrays){var v=this.collisionCircleArrays[e.bucketInstanceId];e.placementInvProjMatrix=v.invProjMatrix,e.placementViewportMatrix=v.viewportMatrix,e.collisionCircleArray=v.circles,delete this.collisionCircleArrays[e.bucketInstanceId]}},_e.prototype.symbolFadeChange=function(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},_e.prototype.zoomAdjustment=function(t){return Math.max(0,(this.transform.zoom-t)/1.5)},_e.prototype.hasTransitions=function(t){return this.stale||t-this.lastPlacementChangeTime&lt;this.fadeDuration},_e.prototype.stillRecent=function(t,e){var r=this.zoomAtLastRecencyCheck===e?1-this.zoomAdjustment(e):1;return this.zoomAtLastRecencyCheck=e,this.commitTime+this.fadeDuration*r&gt;t},_e.prototype.setStale=function(){this.stale=!0};var Te=Math.pow(2,25),ke=Math.pow(2,24),Me=Math.pow(2,17),Ae=Math.pow(2,16),Se=Math.pow(2,9),Ee=Math.pow(2,8),Ce=Math.pow(2,1);function Le(t){if(0===t.opacity&amp;&amp;!t.placed)return 0;if(1===t.opacity&amp;&amp;t.placed)return 4294967295;var e=t.placed?1:0,r=Math.floor(127*t.opacity);return r*Te+e*ke+r*Me+e*Ae+r*Se+e*Ee+r*Ce+e}var Ie=0,Pe=function(t){this._sortAcrossTiles=&quot;viewport-y&quot;!==t.layout.get(&quot;symbol-z-order&quot;)&amp;&amp;void 0!==t.layout.get(&quot;symbol-sort-key&quot;).constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Pe.prototype.continuePlacement=function(t,e,r,n,i){for(var a=this._bucketParts;this._currentTileIndex&lt;t.length;)if(e.getBucketParts(a,n,t[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,i())return!0;for(this._sortAcrossTiles&amp;&amp;(this._sortAcrossTiles=!1,a.sort((function(t,e){return t.sortKey-e.sortKey})));this._currentPartIndex&lt;a.length;)if(e.placeLayerBucketPart(a[this._currentPartIndex],this._seenCrossTileIDs,r),this._currentPartIndex++,i())return!0;return!1};var ze=function(t,e,r,n,i,a,o){this.placement=new _e(t,i,a,o),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=n,this._done=!1};ze.prototype.isDone=function(){return this._done},ze.prototype.continuePlacement=function(e,r,n){for(var i=this,a=t.browser.now(),o=function(){var e=t.browser.now()-a;return!i._forceFullPlacement&amp;&amp;e&gt;2};this._currentPlacementIndex&gt;=0;){var s=r[e[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if(&quot;symbol&quot;===s.type&amp;&amp;(!s.minzoom||s.minzoom&lt;=l)&amp;&amp;(!s.maxzoom||s.maxzoom&gt;l)){if(this._inProgressLayer||(this._inProgressLayer=new Pe(s)),this._inProgressLayer.continuePlacement(n[s.source],this.placement,this._showCollisionBoxes,s,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},ze.prototype.commit=function(t){return this.placement.commit(t),this.placement};var Oe=512/t.EXTENT/2,De=function(t,e,r){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=r;for(var n=0;n&lt;e.length;n++){var i=e.get(n),a=i.key;this.indexedSymbolInstances[a]||(this.indexedSymbolInstances[a]=[]),this.indexedSymbolInstances[a].push({crossTileID:i.crossTileID,coord:this.getScaledCoordinates(i,t)})}};De.prototype.getScaledCoordinates=function(e,r){var n=Oe/Math.pow(2,r.canonical.z-this.tileID.canonical.z);return{x:Math.floor((r.canonical.x*t.EXTENT+e.anchorX)*n),y:Math.floor((r.canonical.y*t.EXTENT+e.anchorY)*n)}},De.prototype.findMatches=function(t,e,r){for(var n=this.tileID.canonical.z&lt;e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z),i=0;i&lt;t.length;i++){var a=t.get(i);if(!a.crossTileID){var o=this.indexedSymbolInstances[a.key];if(o)for(var s=this.getScaledCoordinates(a,e),l=0,c=o;l&lt;c.length;l+=1){var u=c[l];if(Math.abs(u.coord.x-s.x)&lt;=n&amp;&amp;Math.abs(u.coord.y-s.y)&lt;=n&amp;&amp;!r[u.crossTileID]){r[u.crossTileID]=!0,a.crossTileID=u.crossTileID;break}}}}};var Re=function(){this.maxCrossTileID=0};Re.prototype.generate=function(){return++this.maxCrossTileID};var Fe=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};Fe.prototype.handleWrapJump=function(t){var e=Math.round((t-this.lng)/360);if(0!==e)for(var r in this.indexes){var n=this.indexes[r],i={};for(var a in n){var o=n[a];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+e),i[o.tileID.key]=o}this.indexes[r]=i}this.lng=t},Fe.prototype.addBucket=function(t,e,r){if(this.indexes[t.overscaledZ]&amp;&amp;this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(var n=0;n&lt;e.symbolInstances.length;n++)e.symbolInstances.get(n).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});var i=this.usedCrossTileIDs[t.overscaledZ];for(var a in this.indexes){var o=this.indexes[a];if(Number(a)&gt;t.overscaledZ)for(var s in o){var l=o[s];l.tileID.isChildOf(t)&amp;&amp;l.findMatches(e.symbolInstances,t,i)}else{var c=o[t.scaledTo(Number(a)).key];c&amp;&amp;c.findMatches(e.symbolInstances,t,i)}}for(var u=0;u&lt;e.symbolInstances.length;u++){var f=e.symbolInstances.get(u);f.crossTileID||(f.crossTileID=r.generate(),i[f.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&amp;&amp;(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new De(t,e.symbolInstances,e.bucketInstanceId),!0},Fe.prototype.removeBucketCrossTileIDs=function(t,e){for(var r in e.indexedSymbolInstances)for(var n=0,i=e.indexedSymbolInstances[r];n&lt;i.length;n+=1)delete this.usedCrossTileIDs[t][i[n].crossTileID]},Fe.prototype.removeStaleBuckets=function(t){var e=!1;for(var r in this.indexes){var n=this.indexes[r];for(var i in n)t[n[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(r,n[i]),delete n[i],e=!0)}return e};var Be=function(){this.layerIndexes={},this.crossTileIDs=new Re,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};Be.prototype.addLayer=function(t,e,r){var n=this.layerIndexes[t.id];void 0===n&amp;&amp;(n=this.layerIndexes[t.id]=new Fe);var i=!1,a={};n.handleWrapJump(r);for(var o=0,s=e;o&lt;s.length;o+=1){var l=s[o],c=l.getBucket(t);c&amp;&amp;t.id===c.layerIds[0]&amp;&amp;(c.bucketInstanceId||(c.bucketInstanceId=++this.maxBucketInstanceId),n.addBucket(l.tileID,c,this.crossTileIDs)&amp;&amp;(i=!0),a[c.bucketInstanceId]=!0)}return n.removeStaleBuckets(a)&amp;&amp;(i=!0),i},Be.prototype.pruneUnusedLayers=function(t){var e={};for(var r in t.forEach((function(t){e[t]=!0})),this.layerIndexes)e[r]||delete this.layerIndexes[r]};var Ne=function(e,r){return t.emitValidationErrors(e,r&amp;&amp;r.filter((function(t){return&quot;source.canvas&quot;!==t.identifier})))},je=t.pick(Ut,[&quot;addLayer&quot;,&quot;removeLayer&quot;,&quot;setPaintProperty&quot;,&quot;setLayoutProperty&quot;,&quot;setFilter&quot;,&quot;addSource&quot;,&quot;removeSource&quot;,&quot;setLayerZoomRange&quot;,&quot;setLight&quot;,&quot;setTransition&quot;,&quot;setGeoJSONSourceData&quot;]),Ue=t.pick(Ut,[&quot;setCenter&quot;,&quot;setZoom&quot;,&quot;setBearing&quot;,&quot;setPitch&quot;]),Ve=function(){var e={},r=t.styleSpec.$version;for(var n in t.styleSpec.$root){var i,a=t.styleSpec.$root[n];a.required&amp;&amp;null!=(i=&quot;version&quot;===n?r:&quot;array&quot;===a.type?[]:{})&amp;&amp;(e[n]=i)}return e}(),qe=function(e){function r(n,i){var a=this;void 0===i&amp;&amp;(i={}),e.call(this),this.map=n,this.dispatcher=new k(Bt(),this),this.imageManager=new h,this.imageManager.setEventedParent(this),this.glyphManager=new x(n._requestManager,i.localIdeographFontFamily),this.lineAtlas=new T(256,512),this.crossTileSymbolIndex=new Be,this._layers={},this._serializedLayers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast(&quot;setReferrer&quot;,t.getReferrer());var o=this;this._rtlTextPluginCallback=r.registerForPluginStateChange((function(e){o.dispatcher.broadcast(&quot;syncRTLPluginState&quot;,{pluginStatus:e.pluginStatus,pluginURL:e.pluginURL},(function(e,r){if(t.triggerPluginCompletionEvent(e),r&amp;&amp;r.every((function(t){return t})))for(var n in o.sourceCaches)o.sourceCaches[n].reload()}))})),this.on(&quot;data&quot;,(function(t){if(&quot;source&quot;===t.dataType&amp;&amp;&quot;metadata&quot;===t.sourceDataType){var e=a.sourceCaches[t.sourceId];if(e){var r=e.getSource();if(r&amp;&amp;r.vectorLayerIds)for(var n in a._layers){var i=a._layers[n];i.source===r.id&amp;&amp;a._validateLayer(i)}}}}))}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.loadURL=function(e,r){var n=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;}));var i=&quot;boolean&quot;==typeof r.validate?r.validate:!t.isMapboxURL(e);e=this.map._requestManager.normalizeStyleURL(e,r.accessToken);var a=this.map._requestManager.transformRequest(e,t.ResourceType.Style);this._request=t.getJSON(a,(function(e,r){n._request=null,e?n.fire(new t.ErrorEvent(e)):r&amp;&amp;n._load(r,i)}))},r.prototype.loadJSON=function(e,r){var n=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;})),this._request=t.browser.frame((function(){n._request=null,n._load(e,!1!==r.validate)}))},r.prototype.loadEmpty=function(){this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;})),this._load(Ve,!1)},r.prototype._load=function(e,r){if(!r||!Ne(this,t.validateStyle(e))){for(var n in this._loaded=!0,this.stylesheet=e,e.sources)this.addSource(n,e.sources[n],{validate:!1});e.sprite?this._loadSprite(e.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(e.glyphs);var i=jt(this.stylesheet.layers);this._order=i.map((function(t){return t.id})),this._layers={},this._serializedLayers={};for(var a=0,o=i;a&lt;o.length;a+=1){var s=o[a];(s=t.createStyleLayer(s)).setEventedParent(this,{layer:{id:s.id}}),this._layers[s.id]=s,this._serializedLayers[s.id]=s.serialize()}this.dispatcher.broadcast(&quot;setLayers&quot;,this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;})),this.fire(new t.Event(&quot;style.load&quot;))}},r.prototype._loadSprite=function(e){var r=this;this._spriteRequest=function(e,r,n){var i,a,o,s=t.browser.devicePixelRatio&gt;1?&quot;@2x&quot;:&quot;&quot;,l=t.getJSON(r.transformRequest(r.normalizeSpriteURL(e,s,&quot;.json&quot;),t.ResourceType.SpriteJSON),(function(t,e){l=null,o||(o=t,i=e,u())})),c=t.getImage(r.transformRequest(r.normalizeSpriteURL(e,s,&quot;.png&quot;),t.ResourceType.SpriteImage),(function(t,e){c=null,o||(o=t,a=e,u())}));function u(){if(o)n(o);else if(i&amp;&amp;a){var e=t.browser.getImageData(a),r={};for(var s in i){var l=i[s],c=l.width,u=l.height,f=l.x,h=l.y,p=l.sdf,d=l.pixelRatio,g=l.stretchX,m=l.stretchY,v=l.content,y=new t.RGBAImage({width:c,height:u});t.RGBAImage.copy(e,y,{x:f,y:h},{x:0,y:0},{width:c,height:u}),r[s]={data:y,pixelRatio:d,sdf:p,stretchX:g,stretchY:m,content:v}}n(null,r)}}return{cancel:function(){l&amp;&amp;(l.cancel(),l=null),c&amp;&amp;(c.cancel(),c=null)}}}(e,this.map._requestManager,(function(e,n){if(r._spriteRequest=null,e)r.fire(new t.ErrorEvent(e));else if(n)for(var i in n)r.imageManager.addImage(i,n[i]);r.imageManager.setLoaded(!0),r._availableImages=r.imageManager.listImages(),r.dispatcher.broadcast(&quot;setImages&quot;,r._availableImages),r.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))}))},r.prototype._validateLayer=function(e){var r=this.sourceCaches[e.source];if(r){var n=e.sourceLayer;if(n){var i=r.getSource();(&quot;geojson&quot;===i.type||i.vectorLayerIds&amp;&amp;-1===i.vectorLayerIds.indexOf(n))&amp;&amp;this.fire(new t.ErrorEvent(new Error('Source layer &quot;'+n+'&quot; does not exist on source &quot;'+i.id+'&quot; as specified by style layer &quot;'+e.id+'&quot;')))}}},r.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},r.prototype._serializeLayers=function(t){for(var e=[],r=0,n=t;r&lt;n.length;r+=1){var i=this._layers[n[r]];&quot;custom&quot;!==i.type&amp;&amp;e.push(i.serialize())}return e},r.prototype.hasTransitions=function(){if(this.light&amp;&amp;this.light.hasTransition())return!0;for(var t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(var e in this._layers)if(this._layers[e].hasTransition())return!0;return!1},r.prototype._checkLoaded=function(){if(!this._loaded)throw new Error(&quot;Style is not done loading&quot;)},r.prototype.update=function(e){if(this._loaded){var r=this._changed;if(this._changed){var n=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);for(var a in(n.length||i.length)&amp;&amp;this._updateWorkerLayers(n,i),this._updatedSources){var o=this._updatedSources[a];&quot;reload&quot;===o?this._reloadSource(a):&quot;clear&quot;===o&amp;&amp;this._clearSource(a)}for(var s in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[s].updateTransitions(e);this.light.updateTransitions(e),this._resetUpdates()}for(var l in this.sourceCaches)this.sourceCaches[l].used=!1;for(var c=0,u=this._order;c&lt;u.length;c+=1){var f=this._layers[u[c]];f.recalculate(e,this._availableImages),!f.isHidden(e.zoom)&amp;&amp;f.source&amp;&amp;(this.sourceCaches[f.source].used=!0)}this.light.recalculate(e),this.z=e.zoom,r&amp;&amp;this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))}},r.prototype._updateTilesForChangedImages=function(){var t=Object.keys(this._changedImages);if(t.length){for(var e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies([&quot;icons&quot;,&quot;patterns&quot;],t);this._changedImages={}}},r.prototype._updateWorkerLayers=function(t,e){this.dispatcher.broadcast(&quot;updateLayers&quot;,{layers:this._serializeLayers(t),removedIds:e})},r.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}},r.prototype.setState=function(e){var r=this;if(this._checkLoaded(),Ne(this,t.validateStyle(e)))return!1;(e=t.clone$1(e)).layers=jt(e.layers);var n=function(e,r){if(!e)return[{command:Ut.setStyle,args:[r]}];var n=[];try{if(!t.deepEqual(e.version,r.version))return[{command:Ut.setStyle,args:[r]}];t.deepEqual(e.center,r.center)||n.push({command:Ut.setCenter,args:[r.center]}),t.deepEqual(e.zoom,r.zoom)||n.push({command:Ut.setZoom,args:[r.zoom]}),t.deepEqual(e.bearing,r.bearing)||n.push({command:Ut.setBearing,args:[r.bearing]}),t.deepEqual(e.pitch,r.pitch)||n.push({command:Ut.setPitch,args:[r.pitch]}),t.deepEqual(e.sprite,r.sprite)||n.push({command:Ut.setSprite,args:[r.sprite]}),t.deepEqual(e.glyphs,r.glyphs)||n.push({command:Ut.setGlyphs,args:[r.glyphs]}),t.deepEqual(e.transition,r.transition)||n.push({command:Ut.setTransition,args:[r.transition]}),t.deepEqual(e.light,r.light)||n.push({command:Ut.setLight,args:[r.light]});var i={},a=[];!function(e,r,n,i){var a;for(a in r=r||{},e=e||{})e.hasOwnProperty(a)&amp;&amp;(r.hasOwnProperty(a)||qt(a,n,i));for(a in r)r.hasOwnProperty(a)&amp;&amp;(e.hasOwnProperty(a)?t.deepEqual(e[a],r[a])||(&quot;geojson&quot;===e[a].type&amp;&amp;&quot;geojson&quot;===r[a].type&amp;&amp;Gt(e,r,a)?n.push({command:Ut.setGeoJSONSourceData,args:[a,r[a].data]}):Ht(a,r,n,i)):Vt(a,r,n))}(e.sources,r.sources,a,i);var o=[];e.layers&amp;&amp;e.layers.forEach((function(t){i[t.source]?n.push({command:Ut.removeLayer,args:[t.id]}):o.push(t)})),n=n.concat(a),function(e,r,n){r=r||[];var i,a,o,s,l,c,u,f=(e=e||[]).map(Wt),h=r.map(Wt),p=e.reduce(Xt,{}),d=r.reduce(Xt,{}),g=f.slice(),m=Object.create(null);for(i=0,a=0;i&lt;f.length;i++)d.hasOwnProperty(o=f[i])?a++:(n.push({command:Ut.removeLayer,args:[o]}),g.splice(g.indexOf(o,a),1));for(i=0,a=0;i&lt;h.length;i++)g[g.length-1-i]!==(o=h[h.length-1-i])&amp;&amp;(p.hasOwnProperty(o)?(n.push({command:Ut.removeLayer,args:[o]}),g.splice(g.lastIndexOf(o,g.length-a),1)):a++,n.push({command:Ut.addLayer,args:[d[o],c=g[g.length-i]]}),g.splice(g.length-i,0,o),m[o]=!0);for(i=0;i&lt;h.length;i++)if(s=p[o=h[i]],l=d[o],!m[o]&amp;&amp;!t.deepEqual(s,l))if(t.deepEqual(s.source,l.source)&amp;&amp;t.deepEqual(s[&quot;source-layer&quot;],l[&quot;source-layer&quot;])&amp;&amp;t.deepEqual(s.type,l.type)){for(u in Yt(s.layout,l.layout,n,o,null,Ut.setLayoutProperty),Yt(s.paint,l.paint,n,o,null,Ut.setPaintProperty),t.deepEqual(s.filter,l.filter)||n.push({command:Ut.setFilter,args:[o,l.filter]}),t.deepEqual(s.minzoom,l.minzoom)&amp;&amp;t.deepEqual(s.maxzoom,l.maxzoom)||n.push({command:Ut.setLayerZoomRange,args:[o,l.minzoom,l.maxzoom]}),s)s.hasOwnProperty(u)&amp;&amp;&quot;layout&quot;!==u&amp;&amp;&quot;paint&quot;!==u&amp;&amp;&quot;filter&quot;!==u&amp;&amp;&quot;metadata&quot;!==u&amp;&amp;&quot;minzoom&quot;!==u&amp;&amp;&quot;maxzoom&quot;!==u&amp;&amp;(0===u.indexOf(&quot;paint.&quot;)?Yt(s[u],l[u],n,o,u.slice(6),Ut.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:Ut.setLayerProperty,args:[o,u,l[u]]}));for(u in l)l.hasOwnProperty(u)&amp;&amp;!s.hasOwnProperty(u)&amp;&amp;&quot;layout&quot;!==u&amp;&amp;&quot;paint&quot;!==u&amp;&amp;&quot;filter&quot;!==u&amp;&amp;&quot;metadata&quot;!==u&amp;&amp;&quot;minzoom&quot;!==u&amp;&amp;&quot;maxzoom&quot;!==u&amp;&amp;(0===u.indexOf(&quot;paint.&quot;)?Yt(s[u],l[u],n,o,u.slice(6),Ut.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:Ut.setLayerProperty,args:[o,u,l[u]]}))}else n.push({command:Ut.removeLayer,args:[o]}),c=g[g.lastIndexOf(o)+1],n.push({command:Ut.addLayer,args:[l,c]})}(o,r.layers,n)}catch(t){console.warn(&quot;Unable to compute style diff:&quot;,t),n=[{command:Ut.setStyle,args:[r]}]}return n}(this.serialize(),e).filter((function(t){return!(t.command in Ue)}));if(0===n.length)return!1;var i=n.filter((function(t){return!(t.command in je)}));if(i.length&gt;0)throw new Error(&quot;Unimplemented: &quot;+i.map((function(t){return t.command})).join(&quot;, &quot;)+&quot;.&quot;);return n.forEach((function(t){&quot;setTransition&quot;!==t.command&amp;&amp;r[t.command].apply(r,t.args)})),this.stylesheet=e,!0},r.prototype.addImage=function(e,r){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error(&quot;An image with this name already exists.&quot;)));this.imageManager.addImage(e,r),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))},r.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},r.prototype.getImage=function(t){return this.imageManager.getImage(t)},r.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error(&quot;No image with this name exists.&quot;)));this.imageManager.removeImage(e),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))},r.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},r.prototype.addSource=function(e,r,n){var i=this;if(void 0===n&amp;&amp;(n={}),this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error(&quot;There is already a source with this ID&quot;);if(!r.type)throw new Error(&quot;The type property must be defined, but the only the following properties were given: &quot;+Object.keys(r).join(&quot;, &quot;)+&quot;.&quot;);if(!([&quot;vector&quot;,&quot;raster&quot;,&quot;geojson&quot;,&quot;video&quot;,&quot;image&quot;].indexOf(r.type)&gt;=0&amp;&amp;this._validate(t.validateStyle.source,&quot;sources.&quot;+e,r,null,n))){this.map&amp;&amp;this.map._collectResourceTiming&amp;&amp;(r.collectResourceTiming=!0);var a=this.sourceCaches[e]=new Lt(e,r,this.dispatcher);a.style=this,a.setEventedParent(this,(function(){return{isSourceLoaded:i.loaded(),source:a.serialize(),sourceId:e}})),a.onAdd(this.map),this._changed=!0}},r.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error(&quot;There is no source with this ID&quot;);for(var r in this._layers)if(this._layers[r].source===e)return this.fire(new t.ErrorEvent(new Error('Source &quot;'+e+'&quot; cannot be removed while layer &quot;'+r+'&quot; is using it.')));var n=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],n.fire(new t.Event(&quot;data&quot;,{sourceDataType:&quot;metadata&quot;,dataType:&quot;source&quot;,sourceId:e})),n.setEventedParent(null),n.clearTiles(),n.onRemove&amp;&amp;n.onRemove(this.map),this._changed=!0},r.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},r.prototype.getSource=function(t){return this.sourceCaches[t]&amp;&amp;this.sourceCaches[t].getSource()},r.prototype.addLayer=function(e,r,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var i=e.id;if(this.getLayer(i))this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+i+'&quot; already exists on this map')));else{var a;if(&quot;custom&quot;===e.type){if(Ne(this,t.validateCustomStyleLayer(e)))return;a=t.createStyleLayer(e)}else{if(&quot;object&quot;==typeof e.source&amp;&amp;(this.addSource(i,e.source),e=t.clone$1(e),e=t.extend(e,{source:i})),this._validate(t.validateStyle.layer,&quot;layers.&quot;+i,e,{arrayIndex:-1},n))return;a=t.createStyleLayer(e),this._validateLayer(a),a.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[a.id]=a.serialize()}var o=r?this._order.indexOf(r):this._order.length;if(r&amp;&amp;-1===o)this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+r+'&quot; does not exist on this map.')));else{if(this._order.splice(o,0,i),this._layerOrderChanged=!0,this._layers[i]=a,this._removedLayers[i]&amp;&amp;a.source&amp;&amp;&quot;custom&quot;!==a.type){var s=this._removedLayers[i];delete this._removedLayers[i],s.type!==a.type?this._updatedSources[a.source]=&quot;clear&quot;:(this._updatedSources[a.source]=&quot;reload&quot;,this.sourceCaches[a.source].pause())}this._updateLayer(a),a.onAdd&amp;&amp;a.onAdd(this.map)}}},r.prototype.moveLayer=function(e,r){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==r){var n=this._order.indexOf(e);this._order.splice(n,1);var i=r?this._order.indexOf(r):this._order.length;r&amp;&amp;-1===i?this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+r+'&quot; does not exist on this map.'))):(this._order.splice(i,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be moved.&quot;)))},r.prototype.removeLayer=function(e){this._checkLoaded();var r=this._layers[e];if(r){r.setEventedParent(null);var n=this._order.indexOf(e);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=r,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],r.onRemove&amp;&amp;r.onRemove(this.map)}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be removed.&quot;)))},r.prototype.getLayer=function(t){return this._layers[t]},r.prototype.hasLayer=function(t){return t in this._layers},r.prototype.setLayerZoomRange=function(e,r,n){this._checkLoaded();var i=this.getLayer(e);i?i.minzoom===r&amp;&amp;i.maxzoom===n||(null!=r&amp;&amp;(i.minzoom=r),null!=n&amp;&amp;(i.maxzoom=n),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot have zoom extent.&quot;)))},r.prototype.setFilter=function(e,r,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var i=this.getLayer(e);if(i){if(!t.deepEqual(i.filter,r))return null==r?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(t.validateStyle.filter,&quot;layers.&quot;+i.id+&quot;.filter&quot;,r,null,n)||(i.filter=t.clone$1(r),this._updateLayer(i)))}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be filtered.&quot;)))},r.prototype.getFilter=function(e){return t.clone$1(this.getLayer(e).filter)},r.prototype.setLayoutProperty=function(e,r,n,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getLayoutProperty(r),n)||(a.setLayoutProperty(r,n,i),this._updateLayer(a)):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be styled.&quot;)))},r.prototype.getLayoutProperty=function(e,r){var n=this.getLayer(e);if(n)return n.getLayoutProperty(r);this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style.&quot;)))},r.prototype.setPaintProperty=function(e,r,n,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getPaintProperty(r),n)||(a.setPaintProperty(r,n,i)&amp;&amp;this._updateLayer(a),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be styled.&quot;)))},r.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},r.prototype.setFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=e.sourceLayer,a=this.sourceCaches[n];if(void 0!==a){var o=a.getSource().type;&quot;geojson&quot;===o&amp;&amp;i?this.fire(new t.ErrorEvent(new Error(&quot;GeoJSON sources cannot have a sourceLayer parameter.&quot;))):&quot;vector&quot;!==o||i?(void 0===e.id&amp;&amp;this.fire(new t.ErrorEvent(new Error(&quot;The feature id parameter must be provided.&quot;))),a.setFeatureState(i,e.id,r)):this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+n+&quot;' does not exist in the map's style.&quot;)))},r.prototype.removeFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=this.sourceCaches[n];if(void 0!==i){var a=i.getSource().type,o=&quot;vector&quot;===a?e.sourceLayer:void 0;&quot;vector&quot;!==a||o?r&amp;&amp;&quot;string&quot;!=typeof e.id&amp;&amp;&quot;number&quot;!=typeof e.id?this.fire(new t.ErrorEvent(new Error(&quot;A feature id is requred to remove its specific state property.&quot;))):i.removeFeatureState(o,e.id,r):this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+n+&quot;' does not exist in the map's style.&quot;)))},r.prototype.getFeatureState=function(e){this._checkLoaded();var r=e.source,n=e.sourceLayer,i=this.sourceCaches[r];if(void 0!==i){if(&quot;vector&quot;!==i.getSource().type||n)return void 0===e.id&amp;&amp;this.fire(new t.ErrorEvent(new Error(&quot;The feature id parameter must be provided.&quot;))),i.getFeatureState(n,e.id);this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+r+&quot;' does not exist in the map's style.&quot;)))},r.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&amp;&amp;this.stylesheet.transition)},r.prototype.serialize=function(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,(function(t){return t.serialize()})),layers:this._serializeLayers(this._order)},(function(t){return void 0!==t}))},r.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&amp;&amp;!this._updatedSources[t.source]&amp;&amp;&quot;raster&quot;!==this.sourceCaches[t.source].getSource().type&amp;&amp;(this._updatedSources[t.source]=&quot;reload&quot;,this.sourceCaches[t.source].pause()),this._changed=!0},r.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,r=function(t){return&quot;fill-extrusion&quot;===e._layers[t].type},n={},i=[],a=this._order.length-1;a&gt;=0;a--){var o=this._order[a];if(r(o)){n[o]=a;for(var s=0,l=t;s&lt;l.length;s+=1){var c=l[s][o];if(c)for(var u=0,f=c;u&lt;f.length;u+=1)i.push(f[u])}}}i.sort((function(t,e){return e.intersectionZ-t.intersectionZ}));for(var h=[],p=this._order.length-1;p&gt;=0;p--){var d=this._order[p];if(r(d))for(var g=i.length-1;g&gt;=0;g--){var m=i[g].feature;if(n[m.layer.id]&lt;p)break;h.push(m),i.pop()}else for(var v=0,y=t;v&lt;y.length;v+=1){var x=y[v][d];if(x)for(var b=0,_=x;b&lt;_.length;b+=1)h.push(_[b].feature)}}return h},r.prototype.queryRenderedFeatures=function(e,r,n){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,&quot;queryRenderedFeatures.filter&quot;,r.filter,null,r);var i={};if(r&amp;&amp;r.layers){if(!Array.isArray(r.layers))return this.fire(new t.ErrorEvent(new Error(&quot;parameters.layers must be an Array.&quot;))),[];for(var a=0,o=r.layers;a&lt;o.length;a+=1){var s=o[a],l=this._layers[s];if(!l)return this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+s+&quot;' does not exist in the map's style and cannot be queried for features.&quot;))),[];i[l.source]=!0}}var c=[];for(var u in r.availableImages=this._availableImages,this.sourceCaches)r.layers&amp;&amp;!i[u]||c.push(F(this.sourceCaches[u],this._layers,this._serializedLayers,e,r,n));return this.placement&amp;&amp;c.push(function(t,e,r,n,i,a,o){for(var s={},l=a.queryRenderedSymbols(n),c=[],u=0,f=Object.keys(l).map(Number);u&lt;f.length;u+=1)c.push(o[f[u]]);c.sort(B);for(var h=function(){var r=d[p],n=r.featureIndex.lookupSymbolFeatures(l[r.bucketInstanceId],e,r.bucketIndex,r.sourceLayerIndex,i.filter,i.layers,i.availableImages,t);for(var a in n){var o=s[a]=s[a]||[],c=n[a];c.sort((function(t,e){var n=r.featureSortOrder;if(n){var i=n.indexOf(t.featureIndex);return n.indexOf(e.featureIndex)-i}return e.featureIndex-t.featureIndex}));for(var u=0,f=c;u&lt;f.length;u+=1)o.push(f[u])}},p=0,d=c;p&lt;d.length;p+=1)h();var g=function(e){s[e].forEach((function(n){var i=n.feature,a=r[t[e].source].getFeatureState(i.layer[&quot;source-layer&quot;],i.id);i.source=i.layer.source,i.layer[&quot;source-layer&quot;]&amp;&amp;(i.sourceLayer=i.layer[&quot;source-layer&quot;]),i.state=a}))};for(var m in s)g(m);return s}(this._layers,this._serializedLayers,this.sourceCaches,e,r,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(c)},r.prototype.querySourceFeatures=function(e,r){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,&quot;querySourceFeatures.filter&quot;,r.filter,null,r);var n=this.sourceCaches[e];return n?function(t,e){for(var r=t.getRenderableIds().map((function(e){return t.getTileByID(e)})),n=[],i={},a=0;a&lt;r.length;a++){var o=r[a],s=o.tileID.canonical.key;i[s]||(i[s]=!0,o.querySourceFeatures(n,e))}return n}(n,r):[]},r.prototype.addSourceType=function(t,e,n){return r.getSourceType(t)?n(new Error('A source type called &quot;'+t+'&quot; already exists.')):(r.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast(&quot;loadWorkerSource&quot;,{name:t,url:e.workerSourceURL},n):n(null,null))},r.prototype.getLight=function(){return this.light.getLight()},r.prototype.setLight=function(e,r){void 0===r&amp;&amp;(r={}),this._checkLoaded();var n=this.light.getLight(),i=!1;for(var a in e)if(!t.deepEqual(e[a],n[a])){i=!0;break}if(i){var o={now:t.browser.now(),transition:t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,r),this.light.updateTransitions(o)}},r.prototype._validate=function(e,r,n,i,a){return void 0===a&amp;&amp;(a={}),(!a||!1!==a.validate)&amp;&amp;Ne(this,e.call(t.validateStyle,t.extend({key:r,style:this.serialize(),value:n,styleSpec:t.styleSpec},i)))},r.prototype._remove=function(){for(var e in this._request&amp;&amp;(this._request.cancel(),this._request=null),this._spriteRequest&amp;&amp;(this._spriteRequest.cancel(),this._spriteRequest=null),t.evented.off(&quot;pluginStateChange&quot;,this._rtlTextPluginCallback),this._layers)this._layers[e].setEventedParent(null);for(var r in this.sourceCaches)this.sourceCaches[r].clearTiles(),this.sourceCaches[r].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()},r.prototype._clearSource=function(t){this.sourceCaches[t].clearTiles()},r.prototype._reloadSource=function(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()},r.prototype._updateSources=function(t){for(var e in this.sourceCaches)this.sourceCaches[e].update(t)},r.prototype._generateCollisionBoxes=function(){for(var t in this.sourceCaches)this._reloadSource(t)},r.prototype._updatePlacement=function(e,r,n,i,a){void 0===a&amp;&amp;(a=!1);for(var o=!1,s=!1,l={},c=0,u=this._order;c&lt;u.length;c+=1){var f=this._layers[u[c]];if(&quot;symbol&quot;===f.type){if(!l[f.source]){var h=this.sourceCaches[f.source];l[f.source]=h.getRenderableIds(!0).map((function(t){return h.getTileByID(t)})).sort((function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)}))}var p=this.crossTileSymbolIndex.addLayer(f,l[f.source],e.center.lng);o=o||p}}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((a=a||this._layerOrderChanged||0===n)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&amp;&amp;!this.placement.stillRecent(t.browser.now(),e.zoom))&amp;&amp;(this.pauseablePlacement=new ze(e,this._order,a,r,n,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&amp;&amp;(this.placement=this.pauseablePlacement.commit(t.browser.now()),s=!0),o&amp;&amp;this.pauseablePlacement.placement.setStale()),s||o)for(var d=0,g=this._order;d&lt;g.length;d+=1){var m=this._layers[g[d]];&quot;symbol&quot;===m.type&amp;&amp;this.placement.updateLayerOpacities(m,l[m.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(t.browser.now())},r.prototype._releaseSymbolFadeTiles=function(){for(var t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()},r.prototype.getImages=function(t,e,r){this.imageManager.getImages(e.icons,r),this._updateTilesForChangedImages();var n=this.sourceCaches[e.source];n&amp;&amp;n.setDependencies(e.tileID.key,e.type,e.icons)},r.prototype.getGlyphs=function(t,e,r){this.glyphManager.getGlyphs(e.stacks,r)},r.prototype.getResource=function(e,r,n){return t.makeRequest(r,n)},r}(t.Evented);qe.getSourceType=function(t){return D[t]},qe.setSourceType=function(t,e){D[t]=e},qe.registerForPluginStateChange=t.registerForPluginStateChange;var He=t.createLayout([{name:&quot;a_pos&quot;,type:&quot;Int16&quot;,components:2}]),Ge=vr(&quot;#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif&quot;,&quot;#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}&quot;),Ye=vr(&quot;uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),We=vr(&quot;uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}&quot;),Xe=vr(&quot;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width &lt; 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}&quot;),Ze=vr(&quot;void main() {gl_FragColor=vec4(1.0);}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),Je=vr(&quot;uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}&quot;),Ke=vr(&quot;uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}&quot;),Qe=vr(&quot;varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed &gt; 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed &gt; 0.5) {gl_FragColor*=.1;}}&quot;,&quot;attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}&quot;),$e=vr(&quot;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}&quot;,&quot;attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd  =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz  /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx &gt;=2.0)),mix(-1.0,1.0,float(vertexIdx &gt;=1.0 &amp;&amp; vertexIdx &lt;=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}&quot;),tr=vr(&quot;uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}&quot;,&quot;attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}&quot;),er=vr(&quot;#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),rr=vr(&quot;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}&quot;),nr=vr(&quot;uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}&quot;),ir=vr(&quot;uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}&quot;),ar=vr(&quot;varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t &gt; 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}&quot;),or=vr(&quot;uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t &gt; 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 &amp;&amp; normal.y==0.0 &amp;&amp; normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}&quot;),sr=vr(&quot;#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform float u_maxzoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom &lt; 2.0 ? 0.4 : u_zoom &lt; 4.5 ? 0.35 : 0.3;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}&quot;),lr=vr(&quot;uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y &gt; 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}&quot;),cr=vr(&quot;uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}&quot;),ur=vr(&quot;uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define MAX_LINE_DISTANCE 32767.0\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}&quot;),fr=vr(&quot;uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}&quot;),hr=vr(&quot;uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}&quot;),pr=vr(&quot;uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a &gt; 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a &gt; 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}&quot;),dr=vr(&quot;uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}&quot;),gr=vr(&quot;#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}&quot;),mr=vr(&quot;#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}&quot;);function vr(t,e){var r=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,n={};return{fragmentSource:t=t.replace(r,(function(t,e,r,i,a){return n[a]=!0,&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nvarying &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifdef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;})),vertexSource:e=e.replace(r,(function(t,e,r,i,a){var o=&quot;float&quot;===i?&quot;vec2&quot;:&quot;vec4&quot;,s=a.match(/color/)?&quot;color&quot;:o;return n[a]?&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nuniform lowp float u_&quot;+a+&quot;_t;\nattribute &quot;+r+&quot; &quot;+o+&quot; a_&quot;+a+&quot;;\nvarying &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;vec4&quot;===s?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+a+&quot; = a_&quot;+a+&quot;;\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+a+&quot; = unpack_mix_&quot;+s+&quot;(a_&quot;+a+&quot;, u_&quot;+a+&quot;_t);\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nuniform lowp float u_&quot;+a+&quot;_t;\nattribute &quot;+r+&quot; &quot;+o+&quot; a_&quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;vec4&quot;===s?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = a_&quot;+a+&quot;;\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = unpack_mix_&quot;+s+&quot;(a_&quot;+a+&quot;, u_&quot;+a+&quot;_t);\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;}))}}var yr=Object.freeze({__proto__:null,prelude:Ge,background:Ye,backgroundPattern:We,circle:Xe,clippingMask:Ze,heatmap:Je,heatmapTexture:Ke,collisionBox:Qe,collisionCircle:$e,debug:tr,fill:er,fillOutline:rr,fillOutlinePattern:nr,fillPattern:ir,fillExtrusion:ar,fillExtrusionPattern:or,hillshadePrepare:sr,hillshade:lr,line:cr,lineGradient:ur,linePattern:fr,lineSDF:hr,raster:pr,symbolIcon:dr,symbolSDF:gr,symbolTextAndIcon:mr}),xr=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};xr.prototype.bind=function(t,e,r,n,i,a,o,s){this.context=t;for(var l=this.boundPaintVertexBuffers.length!==n.length,c=0;!l&amp;&amp;c&lt;n.length;c++)this.boundPaintVertexBuffers[c]!==n[c]&amp;&amp;(l=!0);t.extVertexArrayObject&amp;&amp;this.vao&amp;&amp;this.boundProgram===e&amp;&amp;this.boundLayoutVertexBuffer===r&amp;&amp;!l&amp;&amp;this.boundIndexBuffer===i&amp;&amp;this.boundVertexOffset===a&amp;&amp;this.boundDynamicVertexBuffer===o&amp;&amp;this.boundDynamicVertexBuffer2===s?(t.bindVertexArrayOES.set(this.vao),o&amp;&amp;o.bind(),i&amp;&amp;i.dynamicDraw&amp;&amp;i.bind(),s&amp;&amp;s.bind()):this.freshBind(e,r,n,i,a,o,s)},xr.prototype.freshBind=function(t,e,r,n,i,a,o){var s,l=t.numAttributes,c=this.context,u=c.gl;if(c.extVertexArrayObject)this.vao&amp;&amp;this.destroy(),this.vao=c.extVertexArrayObject.createVertexArrayOES(),c.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=r,this.boundIndexBuffer=n,this.boundVertexOffset=i,this.boundDynamicVertexBuffer=a,this.boundDynamicVertexBuffer2=o;else{s=c.currentNumAttributes||0;for(var f=l;f&lt;s;f++)u.disableVertexAttribArray(f)}e.enableAttributes(u,t);for(var h=0,p=r;h&lt;p.length;h+=1)p[h].enableAttributes(u,t);a&amp;&amp;a.enableAttributes(u,t),o&amp;&amp;o.enableAttributes(u,t),e.bind(),e.setVertexAttribPointers(u,t,i);for(var d=0,g=r;d&lt;g.length;d+=1){var m=g[d];m.bind(),m.setVertexAttribPointers(u,t,i)}a&amp;&amp;(a.bind(),a.setVertexAttribPointers(u,t,i)),n&amp;&amp;n.bind(),o&amp;&amp;(o.bind(),o.setVertexAttribPointers(u,t,i)),c.currentNumAttributes=l},xr.prototype.destroy=function(){this.vao&amp;&amp;(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var br=function(t,e,r,n,i){var a=t.gl;this.program=a.createProgram();var o=r?r.defines():[];i&amp;&amp;o.push(&quot;#define OVERDRAW_INSPECTOR;&quot;);var s=o.concat(Ge.fragmentSource,e.fragmentSource).join(&quot;\n&quot;),l=o.concat(Ge.vertexSource,e.vertexSource).join(&quot;\n&quot;),c=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(c,s),a.compileShader(c),a.attachShader(this.program,c);var u=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(u,l),a.compileShader(u),a.attachShader(this.program,u);for(var f=r?r.layoutAttributes:[],h=0;h&lt;f.length;h++)a.bindAttribLocation(this.program,h,f[h].name);a.linkProgram(this.program),a.deleteShader(u),a.deleteShader(c),this.numAttributes=a.getProgramParameter(this.program,a.ACTIVE_ATTRIBUTES),this.attributes={};for(var p={},d=0;d&lt;this.numAttributes;d++){var g=a.getActiveAttrib(this.program,d);g&amp;&amp;(this.attributes[g.name]=a.getAttribLocation(this.program,g.name))}for(var m=a.getProgramParameter(this.program,a.ACTIVE_UNIFORMS),v=0;v&lt;m;v++){var y=a.getActiveUniform(this.program,v);y&amp;&amp;(p[y.name]=a.getUniformLocation(this.program,y.name))}this.fixedUniforms=n(t,p),this.binderUniforms=r?r.getUniforms(t,p):[]}}};function _r(t,e,r){var n=1/he(r,1,e.transform.tileZoom),i=Math.pow(2,r.tileID.overscaledZ),a=r.tileSize*Math.pow(2,e.transform.tileZoom)/i,o=a*(r.tileID.canonical.x+r.tileID.wrap*i),s=a*r.tileID.canonical.y;return{u_image:0,u_texsize:r.imageAtlasTexture.size,u_scale:[n,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[o&gt;&gt;16,s&gt;&gt;16],u_pixel_coord_lower:[65535&amp;o,65535&amp;s]}}br.prototype.draw=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g){var m,v=t.gl;if(!this.failedToCreate){for(var y in t.program.set(this.program),t.setDepthMode(r),t.setStencilMode(n),t.setColorMode(i),t.setCullFace(a),this.fixedUniforms)this.fixedUniforms[y].set(o[y]);p&amp;&amp;p.setUniforms(t,this.binderUniforms,f,{zoom:h});for(var x=(m={},m[v.LINES]=2,m[v.TRIANGLES]=3,m[v.LINE_STRIP]=1,m)[e],b=0,_=u.get();b&lt;_.length;b+=1){var w=_[b],T=w.vaos||(w.vaos={});(T[s]||(T[s]=new xr)).bind(t,this,l,p?p.getPaintVertexBuffers():[],c,w.vertexOffset,d,g),v.drawElements(e,w.primitiveLength*x,v.UNSIGNED_SHORT,w.primitiveOffset*x*2)}}};var wr=function(e,r,n,i){var a=r.style.light,o=a.properties.get(&quot;position&quot;),s=[o.x,o.y,o.z],l=t.create$1();&quot;viewport&quot;===a.properties.get(&quot;anchor&quot;)&amp;&amp;t.fromRotation(l,-r.transform.angle),t.transformMat3(s,s,l);var c=a.properties.get(&quot;color&quot;);return{u_matrix:e,u_lightpos:s,u_lightintensity:a.properties.get(&quot;intensity&quot;),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+n,u_opacity:i}},Tr=function(e,r,n,i,a,o,s){return t.extend(wr(e,r,n,i),_r(o,r,s),{u_height_factor:-Math.pow(2,a.overscaledZ)/s.tileSize/8})},kr=function(t){return{u_matrix:t}},Mr=function(e,r,n,i){return t.extend(kr(e),_r(n,r,i))},Ar=function(t,e){return{u_matrix:t,u_world:e}},Sr=function(e,r,n,i,a){return t.extend(Mr(e,r,n,i),{u_world:a})},Er=function(e,r,n,i){var a,o,s=e.transform;if(&quot;map&quot;===i.paint.get(&quot;circle-pitch-alignment&quot;)){var l=he(n,1,s.zoom);a=!0,o=[l,l]}else a=!1,o=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+(&quot;map&quot;===i.paint.get(&quot;circle-pitch-scale&quot;)),u_matrix:e.translatePosMatrix(r.posMatrix,n,i.paint.get(&quot;circle-translate&quot;),i.paint.get(&quot;circle-translate-anchor&quot;)),u_pitch_with_map:+a,u_device_pixel_ratio:t.browser.devicePixelRatio,u_extrude_scale:o}},Cr=function(t,e,r){var n=he(r,1,e.zoom),i=Math.pow(2,e.zoom-r.tileID.overscaledZ),a=r.tileID.overscaleFactor();return{u_matrix:t,u_camera_to_center_distance:e.cameraToCenterDistance,u_pixels_to_tile_units:n,u_extrude_scale:[e.pixelsToGLUnits[0]/(n*i),e.pixelsToGLUnits[1]/(n*i)],u_overscale_factor:a}},Lr=function(t,e,r){return{u_matrix:t,u_inv_matrix:e,u_camera_to_center_distance:r.cameraToCenterDistance,u_viewport_size:[r.width,r.height]}},Ir=function(t,e,r){return void 0===r&amp;&amp;(r=1),{u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:r}},Pr=function(t){return{u_matrix:t}},zr=function(t,e,r,n){return{u_matrix:t,u_extrude_scale:he(e,1,r),u_intensity:n}},Or=function(e,r,n){var i=e.transform;return{u_matrix:Nr(e,r,n),u_ratio:1/he(r,1,i.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},Dr=function(e,r,n){return t.extend(Or(e,r,n),{u_image:0})},Rr=function(e,r,n,i){var a=e.transform,o=Br(r,a);return{u_matrix:Nr(e,r,n),u_texsize:r.imageAtlasTexture.size,u_ratio:1/he(r,1,a.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_image:0,u_scale:[o,i.fromScale,i.toScale],u_fade:i.t,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]]}},Fr=function(e,r,n,i,a){var o=e.lineAtlas,s=Br(r,e.transform),l=&quot;round&quot;===n.layout.get(&quot;line-cap&quot;),c=o.getDash(i.from,l),u=o.getDash(i.to,l),f=c.width*a.fromScale,h=u.width*a.toScale;return t.extend(Or(e,r,n),{u_patternscale_a:[s/f,-c.height/2],u_patternscale_b:[s/h,-u.height/2],u_sdfgamma:o.width/(256*Math.min(f,h)*t.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:c.y,u_tex_y_b:u.y,u_mix:a.t})};function Br(t,e){return 1/he(t,1,e.tileZoom)}function Nr(t,e,r){return t.translatePosMatrix(e.tileID.posMatrix,e,r.paint.get(&quot;line-translate&quot;),r.paint.get(&quot;line-translate-anchor&quot;))}var jr=function(t,e,r,n,i){return{u_matrix:t,u_tl_parent:e,u_scale_parent:r,u_buffer_scale:1,u_fade_t:n.mix,u_opacity:n.opacity*i.paint.get(&quot;raster-opacity&quot;),u_image0:0,u_image1:1,u_brightness_low:i.paint.get(&quot;raster-brightness-min&quot;),u_brightness_high:i.paint.get(&quot;raster-brightness-max&quot;),u_saturation_factor:(o=i.paint.get(&quot;raster-saturation&quot;),o&gt;0?1-1/(1.001-o):-o),u_contrast_factor:(a=i.paint.get(&quot;raster-contrast&quot;),a&gt;0?1/(1-a):1+a),u_spin_weights:Ur(i.paint.get(&quot;raster-hue-rotate&quot;))};var a,o};function Ur(t){t*=Math.PI/180;var e=Math.sin(t),r=Math.cos(t);return[(2*r+1)/3,(-Math.sqrt(3)*e-r+1)/3,(Math.sqrt(3)*e-r+1)/3]}var Vr,qr=function(t,e,r,n,i,a,o,s,l,c){var u=i.transform;return{u_is_size_zoom_constant:+(&quot;constant&quot;===t||&quot;source&quot;===t),u_is_size_feature_constant:+(&quot;constant&quot;===t||&quot;camera&quot;===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:u.cameraToCenterDistance,u_pitch:u.pitch/360*2*Math.PI,u_rotate_symbol:+r,u_aspect_ratio:u.width/u.height,u_fade_change:i.options.fadeDuration?i.symbolFadeChange:1,u_matrix:a,u_label_plane_matrix:o,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+n,u_texsize:c,u_texture:0}},Hr=function(e,r,n,i,a,o,s,l,c,u,f){var h=a.transform;return t.extend(qr(e,r,n,i,a,o,s,l,c,u),{u_gamma_scale:i?Math.cos(h._pitch)*h.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+f})},Gr=function(e,r,n,i,a,o,s,l,c,u){return t.extend(Hr(e,r,n,i,a,o,s,l,!0,c,!0),{u_texsize_icon:u,u_texture_icon:1})},Yr=function(t,e,r){return{u_matrix:t,u_opacity:e,u_color:r}},Wr=function(e,r,n,i,a,o){return t.extend(function(t,e,r,n){var i=r.imageManager.getPattern(t.from.toString()),a=r.imageManager.getPattern(t.to.toString()),o=r.imageManager.getPixelSize(),s=o.width,l=o.height,c=Math.pow(2,n.tileID.overscaledZ),u=n.tileSize*Math.pow(2,r.transform.tileZoom)/c,f=u*(n.tileID.canonical.x+n.tileID.wrap*c),h=u*n.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[s,l],u_mix:e.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/he(n,1,r.transform.tileZoom),u_pixel_coord_upper:[f&gt;&gt;16,h&gt;&gt;16],u_pixel_coord_lower:[65535&amp;f,65535&amp;h]}}(i,o,n,a),{u_matrix:e,u_opacity:r})},Xr={fillExtrusion:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fillExtrusionPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,r.u_height_factor),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fill:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},fillPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},fillOutline:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world)}},fillOutlinePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},circle:function(e,r){return{u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,r.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},collisionBox:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,r.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,r.u_overscale_factor)}},collisionCircle:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,r.u_inv_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,r.u_viewport_size)}},debug:function(e,r){return{u_color:new t.UniformColor(e,r.u_color),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_overlay:new t.Uniform1i(e,r.u_overlay),u_overlay_scale:new t.Uniform1f(e,r.u_overlay_scale)}},clippingMask:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmap:function(e,r){return{u_extrude_scale:new t.Uniform1f(e,r.u_extrude_scale),u_intensity:new t.Uniform1f(e,r.u_intensity),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmapTexture:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_color_ramp:new t.Uniform1i(e,r.u_color_ramp),u_opacity:new t.Uniform1f(e,r.u_opacity)}},hillshade:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_latrange:new t.Uniform2f(e,r.u_latrange),u_light:new t.Uniform2f(e,r.u_light),u_shadow:new t.UniformColor(e,r.u_shadow),u_highlight:new t.UniformColor(e,r.u_highlight),u_accent:new t.UniformColor(e,r.u_accent)}},hillshadePrepare:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_dimension:new t.Uniform2f(e,r.u_dimension),u_zoom:new t.Uniform1f(e,r.u_zoom),u_maxzoom:new t.Uniform1f(e,r.u_maxzoom),u_unpack:new t.Uniform4f(e,r.u_unpack)}},line:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels)}},lineGradient:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_image:new t.Uniform1i(e,r.u_image)}},linePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_texsize:new t.Uniform2f(e,r.u_texsize),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_image:new t.Uniform1i(e,r.u_image),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},lineSDF:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,r.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,r.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,r.u_sdfgamma),u_image:new t.Uniform1i(e,r.u_image),u_tex_y_a:new t.Uniform1f(e,r.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,r.u_tex_y_b),u_mix:new t.Uniform1f(e,r.u_mix)}},raster:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_tl_parent:new t.Uniform2f(e,r.u_tl_parent),u_scale_parent:new t.Uniform1f(e,r.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,r.u_buffer_scale),u_fade_t:new t.Uniform1f(e,r.u_fade_t),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image0:new t.Uniform1i(e,r.u_image0),u_image1:new t.Uniform1i(e,r.u_image1),u_brightness_low:new t.Uniform1f(e,r.u_brightness_low),u_brightness_high:new t.Uniform1f(e,r.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,r.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,r.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,r.u_spin_weights)}},symbolIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture)}},symbolSDF:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},symbolTextAndIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texsize_icon:new t.Uniform2f(e,r.u_texsize_icon),u_texture:new t.Uniform1i(e,r.u_texture),u_texture_icon:new t.Uniform1i(e,r.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},background:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_color:new t.UniformColor(e,r.u_color)}},backgroundPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image:new t.Uniform1i(e,r.u_image),u_pattern_tl_a:new t.Uniform2f(e,r.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,r.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,r.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,r.u_pattern_br_b),u_texsize:new t.Uniform2f(e,r.u_texsize),u_mix:new t.Uniform1f(e,r.u_mix),u_pattern_size_a:new t.Uniform2f(e,r.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,r.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,r.u_scale_a),u_scale_b:new t.Uniform1f(e,r.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,r.u_tile_units_to_pixels)}}};function Zr(e,r,n,i,a,o,s){for(var l=e.context,c=l.gl,u=e.useProgram(&quot;collisionBox&quot;),f=[],h=0,p=0,d=0;d&lt;i.length;d++){var g=i[d],m=r.getTile(g),v=m.getBucket(n);if(v){var y=g.posMatrix;0===a[0]&amp;&amp;0===a[1]||(y=e.translatePosMatrix(g.posMatrix,m,a,o));var x=s?v.textCollisionBox:v.iconCollisionBox,b=v.collisionCircleArray;if(b.length&gt;0){var _=t.create(),w=y;t.mul(_,v.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul(_,_,v.placementViewportMatrix),f.push({circleArray:b,circleOffset:p,transform:w,invTransform:_}),p=h+=b.length/4}x&amp;&amp;u.draw(l,c.LINES,Mt.disabled,At.disabled,e.colorModeForRenderPass(),Et.disabled,Cr(y,e.transform,m),n.id,x.layoutVertexBuffer,x.indexBuffer,x.segments,null,e.transform.zoom,null,null,x.collisionVertexBuffer)}}if(s&amp;&amp;f.length){var T=e.useProgram(&quot;collisionCircle&quot;),k=new t.StructArrayLayout2f1f2i16;k.resize(4*h),k._trim();for(var M=0,A=0,S=f;A&lt;S.length;A+=1)for(var E=S[A],C=0;C&lt;E.circleArray.length/4;C++){var L=4*C,I=E.circleArray[L+0],P=E.circleArray[L+1],z=E.circleArray[L+2],O=E.circleArray[L+3];k.emplace(M++,I,P,z,O,0),k.emplace(M++,I,P,z,O,1),k.emplace(M++,I,P,z,O,2),k.emplace(M++,I,P,z,O,3)}(!Vr||Vr.length&lt;2*h)&amp;&amp;(Vr=function(e){var r=2*e,n=new t.StructArrayLayout3ui6;n.resize(r),n._trim();for(var i=0;i&lt;r;i++){var a=6*i;n.uint16[a+0]=4*i+0,n.uint16[a+1]=4*i+1,n.uint16[a+2]=4*i+2,n.uint16[a+3]=4*i+2,n.uint16[a+4]=4*i+3,n.uint16[a+5]=4*i+0}return n}(h));for(var D=l.createIndexBuffer(Vr,!0),R=l.createVertexBuffer(k,t.collisionCircleLayout.members,!0),F=0,B=f;F&lt;B.length;F+=1){var N=B[F],j=Lr(N.transform,N.invTransform,e.transform);T.draw(l,c.TRIANGLES,Mt.disabled,At.disabled,e.colorModeForRenderPass(),Et.disabled,j,n.id,R,D,t.SegmentVector.simpleSegment(0,2*N.circleOffset,N.circleArray.length,N.circleArray.length/2),null,e.transform.zoom,null,null,null)}R.destroy(),D.destroy()}}var Jr=t.identity(new Float32Array(16));function Kr(e,r,n,i,a,o){var s=t.getAnchorAlignment(e),l=-(s.horizontalAlign-.5)*r,c=-(s.verticalAlign-.5)*n,u=t.evaluateVariableOffset(e,i);return new t.Point((l/a+u[0])*o,(c/a+u[1])*o)}function Qr(e,r,n,i,a,o,s,l,c,u,f){var h=e.text.placedSymbolArray,p=e.text.dynamicLayoutVertexArray,d=e.icon.dynamicLayoutVertexArray,g={};p.clear();for(var m=0;m&lt;h.length;m++){var v=h.get(m),y=v.hidden||!v.crossTileID||e.allowVerticalPlacement&amp;&amp;!v.placedOrientation?null:i[v.crossTileID];if(y){var x=new t.Point(v.anchorX,v.anchorY),b=$t(x,n?l:s),_=te(o.cameraToCenterDistance,b.signedDistanceFromCamera),w=a.evaluateSizeForFeature(e.textSizeData,u,v)*_/t.ONE_EM;n&amp;&amp;(w*=e.tilePixelRatio/c);for(var T=Kr(y.anchor,y.width,y.height,y.textOffset,y.textBoxScale,w),k=n?$t(x.add(T),s).point:b.point.add(r?T.rotate(-o.angle):T),M=e.allowVerticalPlacement&amp;&amp;v.placedOrientation===t.WritingMode.vertical?Math.PI/2:0,A=0;A&lt;v.numGlyphs;A++)t.addDynamicAttributes(p,k,M);f&amp;&amp;v.associatedIconIndex&gt;=0&amp;&amp;(g[v.associatedIconIndex]={shiftedAnchor:k,angle:M})}else ce(v.numGlyphs,p)}if(f){d.clear();for(var S=e.icon.placedSymbolArray,E=0;E&lt;S.length;E++){var C=S.get(E);if(C.hidden)ce(C.numGlyphs,d);else{var L=g[E];if(L)for(var I=0;I&lt;C.numGlyphs;I++)t.addDynamicAttributes(d,L.shiftedAnchor,L.angle);else ce(C.numGlyphs,d)}}e.icon.dynamicLayoutVertexBuffer.updateData(d)}e.text.dynamicLayoutVertexBuffer.updateData(p)}function $r(t,e,r){return r.iconsInText&amp;&amp;e?&quot;symbolTextAndIcon&quot;:t?&quot;symbolSDF&quot;:&quot;symbolIcon&quot;}function tn(e,r,n,i,a,o,s,l,c,u,f,h){for(var p=e.context,d=p.gl,g=e.transform,m=&quot;map&quot;===l,v=&quot;map&quot;===c,y=m&amp;&amp;&quot;point&quot;!==n.layout.get(&quot;symbol-placement&quot;),x=m&amp;&amp;!v&amp;&amp;!y,b=void 0!==n.layout.get(&quot;symbol-sort-key&quot;).constantOr(1),_=e.depthModeForSublayer(0,Mt.ReadOnly),w=n.layout.get(&quot;text-variable-anchor&quot;),T=[],k=0,M=i;k&lt;M.length;k+=1){var A=M[k],S=r.getTile(A),E=S.getBucket(n);if(E){var C=a?E.text:E.icon;if(C&amp;&amp;C.segments.get().length){var L=C.programConfigurations.get(n.id),I=a||E.sdfIcons,P=a?E.textSizeData:E.iconSizeData,z=v||0!==g.pitch,O=e.useProgram($r(I,a,E),L),D=t.evaluateSizeForZoom(P,g.zoom),R=void 0,F=[0,0],B=void 0,N=void 0,j=null,U=void 0;if(a)B=S.glyphAtlasTexture,N=d.LINEAR,R=S.glyphAtlasTexture.size,E.iconsInText&amp;&amp;(F=S.imageAtlasTexture.size,j=S.imageAtlasTexture,U=z||e.options.rotating||e.options.zooming||&quot;composite&quot;===P.kind||&quot;camera&quot;===P.kind?d.LINEAR:d.NEAREST);else{var V=1!==n.layout.get(&quot;icon-size&quot;).constantOr(0)||E.iconsNeedLinear;B=S.imageAtlasTexture,N=I||e.options.rotating||e.options.zooming||V||z?d.LINEAR:d.NEAREST,R=S.imageAtlasTexture.size}var q=he(S,1,e.transform.zoom),H=Kt(A.posMatrix,v,m,e.transform,q),G=Qt(A.posMatrix,v,m,e.transform,q),Y=w&amp;&amp;E.hasTextData(),W=&quot;none&quot;!==n.layout.get(&quot;icon-text-fit&quot;)&amp;&amp;Y&amp;&amp;E.hasIconData();y&amp;&amp;re(E,A.posMatrix,e,a,H,G,v,u);var X=e.translatePosMatrix(A.posMatrix,S,o,s),Z=y||a&amp;&amp;w||W?Jr:H,J=e.translatePosMatrix(G,S,o,s,!0),K=I&amp;&amp;0!==n.paint.get(a?&quot;text-halo-width&quot;:&quot;icon-halo-width&quot;).constantOr(1),Q={program:O,buffers:C,uniformValues:I?E.iconsInText?Gr(P.kind,D,x,v,e,X,Z,J,R,F):Hr(P.kind,D,x,v,e,X,Z,J,a,R,!0):qr(P.kind,D,x,v,e,X,Z,J,a,R),atlasTexture:B,atlasTextureIcon:j,atlasInterpolation:N,atlasInterpolationIcon:U,isSDF:I,hasHalo:K};if(b)for(var $=0,tt=C.segments.get();$&lt;tt.length;$+=1){var et=tt[$];T.push({segments:new t.SegmentVector([et]),sortKey:et.sortKey,state:Q})}else T.push({segments:C.segments,sortKey:0,state:Q})}}}b&amp;&amp;T.sort((function(t,e){return t.sortKey-e.sortKey}));for(var rt=0,nt=T;rt&lt;nt.length;rt+=1){var it=nt[rt],at=it.state;if(p.activeTexture.set(d.TEXTURE0),at.atlasTexture.bind(at.atlasInterpolation,d.CLAMP_TO_EDGE),at.atlasTextureIcon&amp;&amp;(p.activeTexture.set(d.TEXTURE1),at.atlasTextureIcon&amp;&amp;at.atlasTextureIcon.bind(at.atlasInterpolationIcon,d.CLAMP_TO_EDGE)),at.isSDF){var ot=at.uniformValues;at.hasHalo&amp;&amp;(ot.u_is_halo=1,en(at.buffers,it.segments,n,e,at.program,_,f,h,ot)),ot.u_is_halo=0}en(at.buffers,it.segments,n,e,at.program,_,f,h,at.uniformValues)}}function en(t,e,r,n,i,a,o,s,l){var c=n.context;i.draw(c,c.gl.TRIANGLES,a,o,s,Et.disabled,l,r.id,t.layoutVertexBuffer,t.indexBuffer,e,r.paint,n.transform.zoom,t.programConfigurations.get(r.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function rn(t,e,r,n,i,a,o){var s,l,c,u,f,h=t.context.gl,p=r.paint.get(&quot;fill-pattern&quot;),d=p&amp;&amp;p.constantOr(1),g=r.getCrossfadeParameters();o?(l=d&amp;&amp;!r.getPaintProperty(&quot;fill-outline-color&quot;)?&quot;fillOutlinePattern&quot;:&quot;fillOutline&quot;,s=h.LINES):(l=d?&quot;fillPattern&quot;:&quot;fill&quot;,s=h.TRIANGLES);for(var m=0,v=n;m&lt;v.length;m+=1){var y=v[m],x=e.getTile(y);if(!d||x.patternsLoaded()){var b=x.getBucket(r);if(b){var _=b.programConfigurations.get(r.id),w=t.useProgram(l,_);d&amp;&amp;(t.context.activeTexture.set(h.TEXTURE0),x.imageAtlasTexture.bind(h.LINEAR,h.CLAMP_TO_EDGE),_.updatePaintBuffers(g));var T=p.constantOr(null);if(T&amp;&amp;x.imageAtlas){var k=x.imageAtlas,M=k.patternPositions[T.to.toString()],A=k.patternPositions[T.from.toString()];M&amp;&amp;A&amp;&amp;_.setConstantPatternPositions(M,A)}var S=t.translatePosMatrix(y.posMatrix,x,r.paint.get(&quot;fill-translate&quot;),r.paint.get(&quot;fill-translate-anchor&quot;));if(o){u=b.indexBuffer2,f=b.segments2;var E=[h.drawingBufferWidth,h.drawingBufferHeight];c=&quot;fillOutlinePattern&quot;===l&amp;&amp;d?Sr(S,t,g,x,E):Ar(S,E)}else u=b.indexBuffer,f=b.segments,c=d?Mr(S,t,g,x):kr(S);w.draw(t.context,s,i,t.stencilModeForClipping(y),a,Et.disabled,c,r.id,b.layoutVertexBuffer,u,f,r.paint,t.transform.zoom,_)}}}}function nn(t,e,r,n,i,a,o){for(var s=t.context,l=s.gl,c=r.paint.get(&quot;fill-extrusion-pattern&quot;),u=c.constantOr(1),f=r.getCrossfadeParameters(),h=r.paint.get(&quot;fill-extrusion-opacity&quot;),p=0,d=n;p&lt;d.length;p+=1){var g=d[p],m=e.getTile(g),v=m.getBucket(r);if(v){var y=v.programConfigurations.get(r.id),x=t.useProgram(u?&quot;fillExtrusionPattern&quot;:&quot;fillExtrusion&quot;,y);u&amp;&amp;(t.context.activeTexture.set(l.TEXTURE0),m.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),y.updatePaintBuffers(f));var b=c.constantOr(null);if(b&amp;&amp;m.imageAtlas){var _=m.imageAtlas,w=_.patternPositions[b.to.toString()],T=_.patternPositions[b.from.toString()];w&amp;&amp;T&amp;&amp;y.setConstantPatternPositions(w,T)}var k=t.translatePosMatrix(g.posMatrix,m,r.paint.get(&quot;fill-extrusion-translate&quot;),r.paint.get(&quot;fill-extrusion-translate-anchor&quot;)),M=r.paint.get(&quot;fill-extrusion-vertical-gradient&quot;),A=u?Tr(k,t,M,h,g,f,m):wr(k,t,M,h);x.draw(s,s.gl.TRIANGLES,i,a,o,Et.backCCW,A,r.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,r.paint,t.transform.zoom,y)}}}function an(e,r,n,i,a,o){var s=e.context,l=s.gl,c=r.fbo;if(c){var u=e.useProgram(&quot;hillshade&quot;);s.activeTexture.set(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,c.colorAttachment.get());var f=function(e,r,n){var i=n.paint.get(&quot;hillshade-shadow-color&quot;),a=n.paint.get(&quot;hillshade-highlight-color&quot;),o=n.paint.get(&quot;hillshade-accent-color&quot;),s=n.paint.get(&quot;hillshade-illumination-direction&quot;)*(Math.PI/180);&quot;viewport&quot;===n.paint.get(&quot;hillshade-illumination-anchor&quot;)&amp;&amp;(s-=e.transform.angle);var l,c,u,f=!e.options.moving;return{u_matrix:e.transform.calculatePosMatrix(r.tileID.toUnwrapped(),f),u_image:0,u_latrange:(l=r.tileID,c=Math.pow(2,l.canonical.z),u=l.canonical.y,[new t.MercatorCoordinate(0,u/c).toLngLat().lat,new t.MercatorCoordinate(0,(u+1)/c).toLngLat().lat]),u_light:[n.paint.get(&quot;hillshade-exaggeration&quot;),s],u_shadow:i,u_highlight:a,u_accent:o}}(e,r,n);u.draw(s,l.TRIANGLES,i,a,o,Et.disabled,f,n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}}function on(e,r,n,i,a,o,s){var l=e.context,c=l.gl,u=r.dem;if(u&amp;&amp;u.data){var f=u.dim,h=u.stride,p=u.getPixels();if(l.activeTexture.set(c.TEXTURE1),l.pixelStoreUnpackPremultiplyAlpha.set(!1),r.demTexture=r.demTexture||e.getTileTexture(h),r.demTexture){var d=r.demTexture;d.update(p,{premultiply:!1}),d.bind(c.NEAREST,c.CLAMP_TO_EDGE)}else r.demTexture=new t.Texture(l,p,c.RGBA,{premultiply:!1}),r.demTexture.bind(c.NEAREST,c.CLAMP_TO_EDGE);l.activeTexture.set(c.TEXTURE0);var g=r.fbo;if(!g){var m=new t.Texture(l,{width:f,height:f,data:null},c.RGBA);m.bind(c.LINEAR,c.CLAMP_TO_EDGE),(g=r.fbo=l.createFramebuffer(f,f,!0)).colorAttachment.set(m.texture)}l.bindFramebuffer.set(g.framebuffer),l.viewport.set([0,0,f,f]),e.useProgram(&quot;hillshadePrepare&quot;).draw(l,c.TRIANGLES,a,o,s,Et.disabled,function(e,r,n){var i=r.stride,a=t.create();return t.ortho(a,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(a,a,[0,-t.EXTENT,0]),{u_matrix:a,u_image:1,u_dimension:[i,i],u_zoom:e.overscaledZ,u_maxzoom:n,u_unpack:r.getUnpackVector()}}(r.tileID,u,i),n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),r.needsHillshadePrepare=!1}}function sn(e,r,n,i,a){var o=i.paint.get(&quot;raster-fade-duration&quot;);if(o&gt;0){var s=t.browser.now(),l=(s-e.timeAdded)/o,c=r?(s-r.timeAdded)/o:-1,u=n.getSource(),f=a.coveringZoomLevel({tileSize:u.tileSize,roundZoom:u.roundZoom}),h=!r||Math.abs(r.tileID.overscaledZ-f)&gt;Math.abs(e.tileID.overscaledZ-f),p=h&amp;&amp;e.refreshedUponExpiration?1:t.clamp(h?l:1-c,0,1);return e.refreshedUponExpiration&amp;&amp;l&gt;=1&amp;&amp;(e.refreshedUponExpiration=!1),r?{opacity:1,mix:1-p}:{opacity:p,mix:0}}return{opacity:1,mix:0}}var ln=new t.Color(1,0,0,1),cn=new t.Color(0,1,0,1),un=new t.Color(0,0,1,1),fn=new t.Color(1,0,1,1),hn=new t.Color(0,1,1,1);function pn(t,e,r,n){gn(t,0,e+r/2,t.transform.width,r,n)}function dn(t,e,r,n){gn(t,e-r/2,0,r,t.transform.height,n)}function gn(e,r,n,i,a,o){var s=e.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(r*t.browser.devicePixelRatio,n*t.browser.devicePixelRatio,i*t.browser.devicePixelRatio,a*t.browser.devicePixelRatio),s.clear({color:o}),l.disable(l.SCISSOR_TEST)}function mn(e,r,n){var i=e.context,a=i.gl,o=n.posMatrix,s=e.useProgram(&quot;debug&quot;),l=Mt.disabled,c=At.disabled,u=e.colorModeForRenderPass();i.activeTexture.set(a.TEXTURE0),e.emptyTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE),s.draw(i,a.LINE_STRIP,l,c,u,Et.disabled,Ir(o,t.Color.red),&quot;$debug&quot;,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);var f=r.getTileByID(n.key).latestRawTileData,h=Math.floor((f&amp;&amp;f.byteLength||0)/1024),p=r.getTile(n).tileSize,d=512/Math.min(p,512)*(n.overscaledZ/e.transform.zoom)*.5,g=n.canonical.toString();n.overscaledZ!==n.canonical.z&amp;&amp;(g+=&quot; =&gt; &quot;+n.overscaledZ),function(t,e){t.initDebugOverlayCanvas();var r=t.debugOverlayCanvas,n=t.context.gl,i=t.debugOverlayCanvas.getContext(&quot;2d&quot;);i.clearRect(0,0,r.width,r.height),i.shadowColor=&quot;white&quot;,i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle=&quot;white&quot;,i.textBaseline=&quot;top&quot;,i.font=&quot;bold 36px Open Sans, sans-serif&quot;,i.fillText(e,5,5),i.strokeText(e,5,5),t.debugOverlayTexture.update(r),t.debugOverlayTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}(e,g+&quot; &quot;+h+&quot;kb&quot;),s.draw(i,a.TRIANGLES,l,c,St.alphaBlended,Et.disabled,Ir(o,t.Color.transparent,d),&quot;$debug&quot;,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments)}var vn={symbol:function(e,r,n,i,a){if(&quot;translucent&quot;===e.renderPass){var o=At.disabled,s=e.colorModeForRenderPass();n.layout.get(&quot;text-variable-anchor&quot;)&amp;&amp;function(e,r,n,i,a,o,s){for(var l=r.transform,c=&quot;map&quot;===a,u=&quot;map&quot;===o,f=0,h=e;f&lt;h.length;f+=1){var p=h[f],d=i.getTile(p),g=d.getBucket(n);if(g&amp;&amp;g.text&amp;&amp;g.text.segments.get().length){var m=t.evaluateSizeForZoom(g.textSizeData,l.zoom),v=he(d,1,r.transform.zoom),y=Kt(p.posMatrix,u,c,r.transform,v),x=&quot;none&quot;!==n.layout.get(&quot;icon-text-fit&quot;)&amp;&amp;g.hasIconData();if(m){var b=Math.pow(2,l.zoom-d.tileID.overscaledZ);Qr(g,c,u,s,t.symbolSize,l,y,p.posMatrix,b,m,x)}}}}(i,e,n,r,n.layout.get(&quot;text-rotation-alignment&quot;),n.layout.get(&quot;text-pitch-alignment&quot;),a),0!==n.paint.get(&quot;icon-opacity&quot;).constantOr(1)&amp;&amp;tn(e,r,n,i,!1,n.paint.get(&quot;icon-translate&quot;),n.paint.get(&quot;icon-translate-anchor&quot;),n.layout.get(&quot;icon-rotation-alignment&quot;),n.layout.get(&quot;icon-pitch-alignment&quot;),n.layout.get(&quot;icon-keep-upright&quot;),o,s),0!==n.paint.get(&quot;text-opacity&quot;).constantOr(1)&amp;&amp;tn(e,r,n,i,!0,n.paint.get(&quot;text-translate&quot;),n.paint.get(&quot;text-translate-anchor&quot;),n.layout.get(&quot;text-rotation-alignment&quot;),n.layout.get(&quot;text-pitch-alignment&quot;),n.layout.get(&quot;text-keep-upright&quot;),o,s),r.map.showCollisionBoxes&amp;&amp;(Zr(e,r,n,i,n.paint.get(&quot;text-translate&quot;),n.paint.get(&quot;text-translate-anchor&quot;),!0),Zr(e,r,n,i,n.paint.get(&quot;icon-translate&quot;),n.paint.get(&quot;icon-translate-anchor&quot;),!1))}},circle:function(e,r,n,i){if(&quot;translucent&quot;===e.renderPass){var a=n.paint.get(&quot;circle-opacity&quot;),o=n.paint.get(&quot;circle-stroke-width&quot;),s=n.paint.get(&quot;circle-stroke-opacity&quot;),l=void 0!==n.layout.get(&quot;circle-sort-key&quot;).constantOr(1);if(0!==a.constantOr(1)||0!==o.constantOr(1)&amp;&amp;0!==s.constantOr(1)){for(var c=e.context,u=c.gl,f=e.depthModeForSublayer(0,Mt.ReadOnly),h=At.disabled,p=e.colorModeForRenderPass(),d=[],g=0;g&lt;i.length;g++){var m=i[g],v=r.getTile(m),y=v.getBucket(n);if(y){var x=y.programConfigurations.get(n.id),b={programConfiguration:x,program:e.useProgram(&quot;circle&quot;,x),layoutVertexBuffer:y.layoutVertexBuffer,indexBuffer:y.indexBuffer,uniformValues:Er(e,m,v,n)};if(l)for(var _=0,w=y.segments.get();_&lt;w.length;_+=1){var T=w[_];d.push({segments:new t.SegmentVector([T]),sortKey:T.sortKey,state:b})}else d.push({segments:y.segments,sortKey:0,state:b})}}l&amp;&amp;d.sort((function(t,e){return t.sortKey-e.sortKey}));for(var k=0,M=d;k&lt;M.length;k+=1){var A=M[k],S=A.state;S.program.draw(c,u.TRIANGLES,f,h,p,Et.disabled,S.uniformValues,n.id,S.layoutVertexBuffer,S.indexBuffer,A.segments,n.paint,e.transform.zoom,S.programConfiguration)}}}},heatmap:function(e,r,n,i){if(0!==n.paint.get(&quot;heatmap-opacity&quot;))if(&quot;offscreen&quot;===e.renderPass){var a=e.context,o=a.gl,s=At.disabled,l=new St([o.ONE,o.ONE],t.Color.transparent,[!0,!0,!0,!0]);!function(t,e,r){var n=t.gl;t.activeTexture.set(n.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);var i=r.heatmapFbo;if(i)n.bindTexture(n.TEXTURE_2D,i.colorAttachment.get()),t.bindFramebuffer.set(i.framebuffer);else{var a=n.createTexture();n.bindTexture(n.TEXTURE_2D,a),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),i=r.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4,!1),function(t,e,r,n){var i=t.gl;i.texImage2D(i.TEXTURE_2D,0,i.RGBA,e.width/4,e.height/4,0,i.RGBA,t.extRenderToTextureHalfFloat?t.extTextureHalfFloat.HALF_FLOAT_OES:i.UNSIGNED_BYTE,null),n.colorAttachment.set(r)}(t,e,a,i)}}(a,e,n),a.clear({color:t.Color.transparent});for(var c=0;c&lt;i.length;c++){var u=i[c];if(!r.hasRenderableParent(u)){var f=r.getTile(u),h=f.getBucket(n);if(h){var p=h.programConfigurations.get(n.id);e.useProgram(&quot;heatmap&quot;,p).draw(a,o.TRIANGLES,Mt.disabled,s,l,Et.disabled,zr(u.posMatrix,f,e.transform.zoom,n.paint.get(&quot;heatmap-intensity&quot;)),n.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,n.paint,e.transform.zoom,p)}}}a.viewport.set([0,0,e.width,e.height])}else&quot;translucent&quot;===e.renderPass&amp;&amp;(e.context.setColorMode(e.colorModeForRenderPass()),function(e,r){var n=e.context,i=n.gl,a=r.heatmapFbo;if(a){n.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),n.activeTexture.set(i.TEXTURE1);var o=r.colorRampTexture;o||(o=r.colorRampTexture=new t.Texture(n,r.colorRamp,i.RGBA)),o.bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram(&quot;heatmapTexture&quot;).draw(n,i.TRIANGLES,Mt.disabled,At.disabled,e.colorModeForRenderPass(),Et.disabled,function(e,r,n,i){var a=t.create();t.ortho(a,0,e.width,e.height,0,0,1);var o=e.context.gl;return{u_matrix:a,u_world:[o.drawingBufferWidth,o.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:r.paint.get(&quot;heatmap-opacity&quot;)}}(e,r),r.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,r.paint,e.transform.zoom)}}(e,n))},line:function(e,r,n,i){if(&quot;translucent&quot;===e.renderPass){var a=n.paint.get(&quot;line-opacity&quot;),o=n.paint.get(&quot;line-width&quot;);if(0!==a.constantOr(1)&amp;&amp;0!==o.constantOr(1)){var s=e.depthModeForSublayer(0,Mt.ReadOnly),l=e.colorModeForRenderPass(),c=n.paint.get(&quot;line-dasharray&quot;),u=n.paint.get(&quot;line-pattern&quot;),f=u.constantOr(1),h=n.paint.get(&quot;line-gradient&quot;),p=n.getCrossfadeParameters(),d=f?&quot;linePattern&quot;:c?&quot;lineSDF&quot;:h?&quot;lineGradient&quot;:&quot;line&quot;,g=e.context,m=g.gl,v=!0;if(h){g.activeTexture.set(m.TEXTURE0);var y=n.gradientTexture;if(!n.gradient)return;y||(y=n.gradientTexture=new t.Texture(g,n.gradient,m.RGBA)),y.bind(m.LINEAR,m.CLAMP_TO_EDGE)}for(var x=0,b=i;x&lt;b.length;x+=1){var _=b[x],w=r.getTile(_);if(!f||w.patternsLoaded()){var T=w.getBucket(n);if(T){var k=T.programConfigurations.get(n.id),M=e.context.program.get(),A=e.useProgram(d,k),S=v||A.program!==M,E=u.constantOr(null);if(E&amp;&amp;w.imageAtlas){var C=w.imageAtlas,L=C.patternPositions[E.to.toString()],I=C.patternPositions[E.from.toString()];L&amp;&amp;I&amp;&amp;k.setConstantPatternPositions(L,I)}var P=f?Rr(e,w,n,p):c?Fr(e,w,n,c,p):h?Dr(e,w,n):Or(e,w,n);f?(g.activeTexture.set(m.TEXTURE0),w.imageAtlasTexture.bind(m.LINEAR,m.CLAMP_TO_EDGE),k.updatePaintBuffers(p)):c&amp;&amp;(S||e.lineAtlas.dirty)&amp;&amp;(g.activeTexture.set(m.TEXTURE0),e.lineAtlas.bind(g)),A.draw(g,m.TRIANGLES,s,e.stencilModeForClipping(_),l,Et.disabled,P,n.id,T.layoutVertexBuffer,T.indexBuffer,T.segments,n.paint,e.transform.zoom,k),v=!1}}}}}},fill:function(e,r,n,i){var a=n.paint.get(&quot;fill-color&quot;),o=n.paint.get(&quot;fill-opacity&quot;);if(0!==o.constantOr(1)){var s=e.colorModeForRenderPass(),l=n.paint.get(&quot;fill-pattern&quot;),c=e.opaquePassEnabledForLayer()&amp;&amp;!l.constantOr(1)&amp;&amp;1===a.constantOr(t.Color.transparent).a&amp;&amp;1===o.constantOr(0)?&quot;opaque&quot;:&quot;translucent&quot;;if(e.renderPass===c){var u=e.depthModeForSublayer(1,&quot;opaque&quot;===e.renderPass?Mt.ReadWrite:Mt.ReadOnly);rn(e,r,n,i,u,s,!1)}if(&quot;translucent&quot;===e.renderPass&amp;&amp;n.paint.get(&quot;fill-antialias&quot;)){var f=e.depthModeForSublayer(n.getPaintProperty(&quot;fill-outline-color&quot;)?2:0,Mt.ReadOnly);rn(e,r,n,i,f,s,!0)}}},&quot;fill-extrusion&quot;:function(t,e,r,n){var i=r.paint.get(&quot;fill-extrusion-opacity&quot;);if(0!==i&amp;&amp;&quot;translucent&quot;===t.renderPass){var a=new Mt(t.context.gl.LEQUAL,Mt.ReadWrite,t.depthRangeFor3D);if(1!==i||r.paint.get(&quot;fill-extrusion-pattern&quot;).constantOr(1))nn(t,e,r,n,a,At.disabled,St.disabled),nn(t,e,r,n,a,t.stencilModeFor3D(),t.colorModeForRenderPass());else{var o=t.colorModeForRenderPass();nn(t,e,r,n,a,At.disabled,o)}}},hillshade:function(t,e,r,n){if(&quot;offscreen&quot;===t.renderPass||&quot;translucent&quot;===t.renderPass){for(var i=t.context,a=e.getSource().maxzoom,o=t.depthModeForSublayer(0,Mt.ReadOnly),s=t.colorModeForRenderPass(),l=&quot;translucent&quot;===t.renderPass?t.stencilConfigForOverlap(n):[{},n],c=l[0],u=0,f=l[1];u&lt;f.length;u+=1){var h=f[u],p=e.getTile(h);p.needsHillshadePrepare&amp;&amp;&quot;offscreen&quot;===t.renderPass?on(t,p,r,a,o,At.disabled,s):&quot;translucent&quot;===t.renderPass&amp;&amp;an(t,p,r,o,c[h.overscaledZ],s)}i.viewport.set([0,0,t.width,t.height])}},raster:function(t,e,r,n){if(&quot;translucent&quot;===t.renderPass&amp;&amp;0!==r.paint.get(&quot;raster-opacity&quot;)&amp;&amp;n.length)for(var i=t.context,a=i.gl,o=e.getSource(),s=t.useProgram(&quot;raster&quot;),l=t.colorModeForRenderPass(),c=o instanceof P?[{},n]:t.stencilConfigForOverlap(n),u=c[0],f=c[1],h=f[f.length-1].overscaledZ,p=!t.options.moving,d=0,g=f;d&lt;g.length;d+=1){var m=g[d],v=t.depthModeForSublayer(m.overscaledZ-h,1===r.paint.get(&quot;raster-opacity&quot;)?Mt.ReadWrite:Mt.ReadOnly,a.LESS),y=e.getTile(m),x=t.transform.calculatePosMatrix(m.toUnwrapped(),p);y.registerFadeDuration(r.paint.get(&quot;raster-fade-duration&quot;));var b=e.findLoadedParent(m,0),_=sn(y,b,e,r,t.transform),w=void 0,T=void 0,k=&quot;nearest&quot;===r.paint.get(&quot;raster-resampling&quot;)?a.NEAREST:a.LINEAR;i.activeTexture.set(a.TEXTURE0),y.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),i.activeTexture.set(a.TEXTURE1),b?(b.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),w=Math.pow(2,b.tileID.overscaledZ-y.tileID.overscaledZ),T=[y.tileID.canonical.x*w%1,y.tileID.canonical.y*w%1]):y.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST);var M=jr(x,T||[0,0],w||1,_,r);o instanceof P?s.draw(i,a.TRIANGLES,v,At.disabled,l,Et.disabled,M,r.id,o.boundsBuffer,t.quadTriangleIndexBuffer,o.boundsSegments):s.draw(i,a.TRIANGLES,v,u[m.overscaledZ],l,Et.disabled,M,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}},background:function(t,e,r){var n=r.paint.get(&quot;background-color&quot;),i=r.paint.get(&quot;background-opacity&quot;);if(0!==i){var a=t.context,o=a.gl,s=t.transform,l=s.tileSize,c=r.paint.get(&quot;background-pattern&quot;);if(!t.isPatternMissing(c)){var u=!c&amp;&amp;1===n.a&amp;&amp;1===i&amp;&amp;t.opaquePassEnabledForLayer()?&quot;opaque&quot;:&quot;translucent&quot;;if(t.renderPass===u){var f=At.disabled,h=t.depthModeForSublayer(0,&quot;opaque&quot;===u?Mt.ReadWrite:Mt.ReadOnly),p=t.colorModeForRenderPass(),d=t.useProgram(c?&quot;backgroundPattern&quot;:&quot;background&quot;),g=s.coveringTiles({tileSize:l});c&amp;&amp;(a.activeTexture.set(o.TEXTURE0),t.imageManager.bind(t.context));for(var m=r.getCrossfadeParameters(),v=0,y=g;v&lt;y.length;v+=1){var x=y[v],b=t.transform.calculatePosMatrix(x.toUnwrapped()),_=c?Wr(b,i,t,c,{tileID:x,tileSize:l},m):Yr(b,i,n);d.draw(a,o.TRIANGLES,h,f,p,Et.disabled,_,r.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments)}}}}},debug:function(t,e,r){for(var n=0;n&lt;r.length;n++)mn(t,e,r[n])},custom:function(t,e,r){var n=t.context,i=r.implementation;if(&quot;offscreen&quot;===t.renderPass){var a=i.prerender;a&amp;&amp;(t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),a.call(i,n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState())}else if(&quot;translucent&quot;===t.renderPass){t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),n.setStencilMode(At.disabled);var o=&quot;3d&quot;===i.renderingMode?new Mt(t.context.gl.LEQUAL,Mt.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,Mt.ReadOnly);n.setDepthMode(o),i.render(n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState(),n.bindFramebuffer.set(null)}}},yn=function(t,e){this.context=new Ct(t),this.transform=e,this._tileTextures={},this.setup(),this.numSublayers=Lt.maxUnderzooming+Lt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Be,this.gpuTimers={}};yn.prototype.resize=function(e,r){if(this.width=e*t.browser.devicePixelRatio,this.height=r*t.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var n=0,i=this.style._order;n&lt;i.length;n+=1)this.style._layers[i[n]].resize()},yn.prototype.setup=function(){var e=this.context,r=new t.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(t.EXTENT,0),r.emplaceBack(0,t.EXTENT),r.emplaceBack(t.EXTENT,t.EXTENT),this.tileExtentBuffer=e.createVertexBuffer(r,He.members),this.tileExtentSegments=t.SegmentVector.simpleSegment(0,0,4,2);var n=new t.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(t.EXTENT,0),n.emplaceBack(0,t.EXTENT),n.emplaceBack(t.EXTENT,t.EXTENT),this.debugBuffer=e.createVertexBuffer(n,He.members),this.debugSegments=t.SegmentVector.simpleSegment(0,0,4,5);var i=new t.StructArrayLayout4i8;i.emplaceBack(0,0,0,0),i.emplaceBack(t.EXTENT,0,t.EXTENT,0),i.emplaceBack(0,t.EXTENT,0,t.EXTENT),i.emplaceBack(t.EXTENT,t.EXTENT,t.EXTENT,t.EXTENT),this.rasterBoundsBuffer=e.createVertexBuffer(i,I.members),this.rasterBoundsSegments=t.SegmentVector.simpleSegment(0,0,4,2);var a=new t.StructArrayLayout2i4;a.emplaceBack(0,0),a.emplaceBack(1,0),a.emplaceBack(0,1),a.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(a,He.members),this.viewportSegments=t.SegmentVector.simpleSegment(0,0,4,2);var o=new t.StructArrayLayout1ui2;o.emplaceBack(0),o.emplaceBack(1),o.emplaceBack(3),o.emplaceBack(2),o.emplaceBack(0),this.tileBorderIndexBuffer=e.createIndexBuffer(o);var s=new t.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(s),this.emptyTexture=new t.Texture(e,{width:1,height:1,data:new Uint8Array([0,0,0,0])},e.gl.RGBA);var l=this.context.gl;this.stencilClearMode=new At({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)},yn.prototype.clearStencil=function(){var e=this.context,r=e.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var n=t.create();t.ortho(n,0,this.width,this.height,0,0,1),t.scale(n,n,[r.drawingBufferWidth,r.drawingBufferHeight,0]),this.useProgram(&quot;clippingMask&quot;).draw(e,r.TRIANGLES,Mt.disabled,this.stencilClearMode,St.disabled,Et.disabled,Pr(n),&quot;$clipping&quot;,this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},yn.prototype._renderTileClippingMasks=function(t,e){if(this.currentStencilSource!==t.source&amp;&amp;t.isTileClipped()&amp;&amp;e&amp;&amp;e.length){this.currentStencilSource=t.source;var r=this.context,n=r.gl;this.nextStencilID+e.length&gt;256&amp;&amp;this.clearStencil(),r.setColorMode(St.disabled),r.setDepthMode(Mt.disabled);var i=this.useProgram(&quot;clippingMask&quot;);this._tileClippingMaskIDs={};for(var a=0,o=e;a&lt;o.length;a+=1){var s=o[a],l=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;i.draw(r,n.TRIANGLES,Mt.disabled,new At({func:n.ALWAYS,mask:0},l,255,n.KEEP,n.KEEP,n.REPLACE),St.disabled,Et.disabled,Pr(s.posMatrix),&quot;$clipping&quot;,this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},yn.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1&gt;256&amp;&amp;this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new At({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},yn.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new At({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},yn.prototype.stencilConfigForOverlap=function(t){var e,r=this.context.gl,n=t.sort((function(t,e){return e.overscaledZ-t.overscaledZ})),i=n[n.length-1].overscaledZ,a=n[0].overscaledZ-i+1;if(a&gt;1){this.currentStencilSource=void 0,this.nextStencilID+a&gt;256&amp;&amp;this.clearStencil();for(var o={},s=0;s&lt;a;s++)o[s+i]=new At({func:r.GEQUAL,mask:255},s+this.nextStencilID,255,r.KEEP,r.KEEP,r.REPLACE);return this.nextStencilID+=a,[o,n]}return[(e={},e[i]=At.disabled,e),n]},yn.prototype.colorModeForRenderPass=function(){var e=this.context.gl;return this._showOverdrawInspector?new St([e.CONSTANT_COLOR,e.ONE],new t.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):&quot;opaque&quot;===this.renderPass?St.unblended:St.alphaBlended},yn.prototype.depthModeForSublayer=function(t,e,r){if(!this.opaquePassEnabledForLayer())return Mt.disabled;var n=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new Mt(r||this.context.gl.LEQUAL,e,[n,n])},yn.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer&lt;this.opaquePassCutoff},yn.prototype.render=function(e,r){var n=this;this.style=e,this.options=r,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(t.browser.now()),this.imageManager.beginFrame();var i=this.style._order,a=this.style.sourceCaches;for(var o in a){var s=a[o];s.used&amp;&amp;s.prepare(this.context)}var l,c,u={},f={},h={};for(var p in a){var d=a[p];u[p]=d.getVisibleCoordinates(),f[p]=u[p].slice().reverse(),h[p]=d.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(var g=0;g&lt;i.length;g++)if(this.style._layers[i[g]].is3D()){this.opaquePassCutoff=g;break}this.renderPass=&quot;offscreen&quot;;for(var m=0,v=i;m&lt;v.length;m+=1){var y=this.style._layers[v[m]];if(y.hasOffscreenPass()&amp;&amp;!y.isHidden(this.transform.zoom)){var x=f[y.source];(&quot;custom&quot;===y.type||x.length)&amp;&amp;this.renderLayer(this,a[y.source],y,x)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:r.showOverdrawInspector?t.Color.black:t.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=r.showOverdrawInspector,this.depthRangeFor3D=[0,1-(e._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass=&quot;opaque&quot;,this.currentLayer=i.length-1;this.currentLayer&gt;=0;this.currentLayer--){var b=this.style._layers[i[this.currentLayer]],_=a[b.source],w=u[b.source];this._renderTileClippingMasks(b,w),this.renderLayer(this,_,b,w)}for(this.renderPass=&quot;translucent&quot;,this.currentLayer=0;this.currentLayer&lt;i.length;this.currentLayer++){var T=this.style._layers[i[this.currentLayer]],k=a[T.source],M=(&quot;symbol&quot;===T.type?h:f)[T.source];this._renderTileClippingMasks(T,u[T.source]),this.renderLayer(this,k,T,M)}this.options.showTileBoundaries&amp;&amp;(t.values(this.style._layers).forEach((function(t){t.source&amp;&amp;!t.isHidden(n.transform.zoom)&amp;&amp;(t.source!==(c&amp;&amp;c.id)&amp;&amp;(c=n.style.sourceCaches[t.source]),(!l||l.getSource().maxzoom&lt;c.getSource().maxzoom)&amp;&amp;(l=c))})),l&amp;&amp;vn.debug(this,l,l.getVisibleCoordinates())),this.options.showPadding&amp;&amp;function(t){var e=t.transform.padding;pn(t,t.transform.height-(e.top||0),3,ln),pn(t,e.bottom||0,3,cn),dn(t,e.left||0,3,un),dn(t,t.transform.width-(e.right||0),3,fn);var r=t.transform.centerPoint;!function(t,e,r,n){gn(t,e-1,r-10,2,20,n),gn(t,e-10,r-1,20,2,n)}(t,r.x,t.transform.height-r.y,hn)}(this),this.context.setDefault()},yn.prototype.renderLayer=function(t,e,r,n){r.isHidden(this.transform.zoom)||(&quot;background&quot;===r.type||&quot;custom&quot;===r.type||n.length)&amp;&amp;(this.id=r.id,this.gpuTimingStart(r),vn[r.type](t,e,r,n,this.style.placement.variableOffsets),this.gpuTimingEnd())},yn.prototype.gpuTimingStart=function(t){if(this.options.gpuTiming){var e=this.context.extTimerQuery,r=this.gpuTimers[t.id];r||(r=this.gpuTimers[t.id]={calls:0,cpuTime:0,query:e.createQueryEXT()}),r.calls++,e.beginQueryEXT(e.TIME_ELAPSED_EXT,r.query)}},yn.prototype.gpuTimingEnd=function(){if(this.options.gpuTiming){var t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}},yn.prototype.collectGpuTimers=function(){var t=this.gpuTimers;return this.gpuTimers={},t},yn.prototype.queryGpuTimers=function(t){var e={};for(var r in t){var n=t[r],i=this.context.extTimerQuery,a=i.getQueryObjectEXT(n.query,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(n.query),e[r]=a}return e},yn.prototype.translatePosMatrix=function(e,r,n,i,a){if(!n[0]&amp;&amp;!n[1])return e;var o=a?&quot;map&quot;===i?this.transform.angle:0:&quot;viewport&quot;===i?-this.transform.angle:0;if(o){var s=Math.sin(o),l=Math.cos(o);n=[n[0]*l-n[1]*s,n[0]*s+n[1]*l]}var c=[a?n[0]:he(r,n[0],this.transform.zoom),a?n[1]:he(r,n[1],this.transform.zoom),0],u=new Float32Array(16);return t.translate(u,e,c),u},yn.prototype.saveTileTexture=function(t){var e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]},yn.prototype.getTileTexture=function(t){var e=this._tileTextures[t];return e&amp;&amp;e.length&gt;0?e.pop():null},yn.prototype.isPatternMissing=function(t){if(!t)return!1;if(!t.from||!t.to)return!0;var e=this.imageManager.getPattern(t.from.toString()),r=this.imageManager.getPattern(t.to.toString());return!e||!r},yn.prototype.useProgram=function(t,e){this.cache=this.cache||{};var r=&quot;&quot;+t+(e?e.cacheKey:&quot;&quot;)+(this._showOverdrawInspector?&quot;/overdraw&quot;:&quot;&quot;);return this.cache[r]||(this.cache[r]=new br(this.context,yr[t],e,Xr[t],this._showOverdrawInspector)),this.cache[r]},yn.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},yn.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)},yn.prototype.initDebugOverlayCanvas=function(){null==this.debugOverlayCanvas&amp;&amp;(this.debugOverlayCanvas=t.window.document.createElement(&quot;canvas&quot;),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},yn.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&amp;&amp;this.debugOverlayTexture.destroy()};var xn=function(t,e){this.points=t,this.planes=e};xn.fromInvProjectionMatrix=function(e,r,n){var i=Math.pow(2,n),a=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((function(r){return t.transformMat4([],r,e)})).map((function(e){return t.scale$1([],e,1/e[3]/r*i)})),o=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(e){var r=t.sub([],a[e[0]],a[e[1]]),n=t.sub([],a[e[2]],a[e[1]]),i=t.normalize([],t.cross([],r,n)),o=-t.dot(i,a[e[1]]);return i.concat(o)}));return new xn(a,o)};var bn=function(e,r){this.min=e,this.max=r,this.center=t.scale$2([],t.add([],this.min,this.max),.5)};bn.prototype.quadrant=function(e){for(var r=[e%2==0,e&lt;2],n=t.clone$2(this.min),i=t.clone$2(this.max),a=0;a&lt;r.length;a++)n[a]=r[a]?this.min[a]:this.center[a],i[a]=r[a]?this.center[a]:this.max[a];return i[2]=this.max[2],new bn(n,i)},bn.prototype.distanceX=function(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]},bn.prototype.distanceY=function(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]},bn.prototype.intersects=function(e){for(var r=[[this.min[0],this.min[1],0,1],[this.max[0],this.min[1],0,1],[this.max[0],this.max[1],0,1],[this.min[0],this.max[1],0,1]],n=!0,i=0;i&lt;e.planes.length;i++){for(var a=e.planes[i],o=0,s=0;s&lt;r.length;s++)o+=t.dot$1(a,r[s])&gt;=0;if(0===o)return 0;o!==r.length&amp;&amp;(n=!1)}if(n)return 2;for(var l=0;l&lt;3;l++){for(var c=Number.MAX_VALUE,u=-Number.MAX_VALUE,f=0;f&lt;e.points.length;f++){var h=e.points[f][l]-this.min[l];c=Math.min(c,h),u=Math.max(u,h)}if(u&lt;0||c&gt;this.max[l]-this.min[l])return 0}return 1};var _n=function(t,e,r,n){if(void 0===t&amp;&amp;(t=0),void 0===e&amp;&amp;(e=0),void 0===r&amp;&amp;(r=0),void 0===n&amp;&amp;(n=0),isNaN(t)||t&lt;0||isNaN(e)||e&lt;0||isNaN(r)||r&lt;0||isNaN(n)||n&lt;0)throw new Error(&quot;Invalid value for edge-insets, top, bottom, left and right must all be numbers&quot;);this.top=t,this.bottom=e,this.left=r,this.right=n};_n.prototype.interpolate=function(e,r,n){return null!=r.top&amp;&amp;null!=e.top&amp;&amp;(this.top=t.number(e.top,r.top,n)),null!=r.bottom&amp;&amp;null!=e.bottom&amp;&amp;(this.bottom=t.number(e.bottom,r.bottom,n)),null!=r.left&amp;&amp;null!=e.left&amp;&amp;(this.left=t.number(e.left,r.left,n)),null!=r.right&amp;&amp;null!=e.right&amp;&amp;(this.right=t.number(e.right,r.right,n)),this},_n.prototype.getCenter=function(e,r){var n=t.clamp((this.left+e-this.right)/2,0,e),i=t.clamp((this.top+r-this.bottom)/2,0,r);return new t.Point(n,i)},_n.prototype.equals=function(t){return this.top===t.top&amp;&amp;this.bottom===t.bottom&amp;&amp;this.left===t.left&amp;&amp;this.right===t.right},_n.prototype.clone=function(){return new _n(this.top,this.bottom,this.left,this.right)},_n.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var wn=function(e,r,n,i,a){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===a||a,this._minZoom=e||0,this._maxZoom=r||22,this._minPitch=null==n?0:n,this._maxPitch=null==i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new _n,this._posMatrixCache={},this._alignedPosMatrixCache={}},Tn={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};wn.prototype.clone=function(){var t=new wn(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._calcMatrices(),t},Tn.minZoom.get=function(){return this._minZoom},Tn.minZoom.set=function(t){this._minZoom!==t&amp;&amp;(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Tn.maxZoom.get=function(){return this._maxZoom},Tn.maxZoom.set=function(t){this._maxZoom!==t&amp;&amp;(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Tn.minPitch.get=function(){return this._minPitch},Tn.minPitch.set=function(t){this._minPitch!==t&amp;&amp;(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},Tn.maxPitch.get=function(){return this._maxPitch},Tn.maxPitch.set=function(t){this._maxPitch!==t&amp;&amp;(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},Tn.renderWorldCopies.get=function(){return this._renderWorldCopies},Tn.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&amp;&amp;(t=!1),this._renderWorldCopies=t},Tn.worldSize.get=function(){return this.tileSize*this.scale},Tn.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Tn.size.get=function(){return new t.Point(this.width,this.height)},Tn.bearing.get=function(){return-this.angle/Math.PI*180},Tn.bearing.set=function(e){var r=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==r&amp;&amp;(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Tn.pitch.get=function(){return this._pitch/Math.PI*180},Tn.pitch.set=function(e){var r=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==r&amp;&amp;(this._unmodified=!1,this._pitch=r,this._calcMatrices())},Tn.fov.get=function(){return this._fov/Math.PI*180},Tn.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&amp;&amp;(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Tn.zoom.get=function(){return this._zoom},Tn.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&amp;&amp;(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Tn.center.get=function(){return this._center},Tn.center.set=function(t){t.lat===this._center.lat&amp;&amp;t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Tn.padding.get=function(){return this._edgeInsets.toJSON()},Tn.padding.set=function(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())},Tn.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},wn.prototype.isPaddingEqual=function(t){return this._edgeInsets.equals(t)},wn.prototype.interpolatePadding=function(t,e,r){this._unmodified=!1,this._edgeInsets.interpolate(t,e,r),this._constrain(),this._calcMatrices()},wn.prototype.coveringZoomLevel=function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)},wn.prototype.getVisibleUnwrappedCoordinates=function(e){var r=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var n=this.pointCoordinate(new t.Point(0,0)),i=this.pointCoordinate(new t.Point(this.width,0)),a=this.pointCoordinate(new t.Point(this.width,this.height)),o=this.pointCoordinate(new t.Point(0,this.height)),s=Math.floor(Math.min(n.x,i.x,a.x,o.x)),l=Math.floor(Math.max(n.x,i.x,a.x,o.x)),c=s-1;c&lt;=l+1;c++)0!==c&amp;&amp;r.push(new t.UnwrappedTileID(c,e));return r},wn.prototype.coveringTiles=function(e){var r=this.coveringZoomLevel(e),n=r;if(void 0!==e.minzoom&amp;&amp;r&lt;e.minzoom)return[];void 0!==e.maxzoom&amp;&amp;r&gt;e.maxzoom&amp;&amp;(r=e.maxzoom);var i=t.MercatorCoordinate.fromLngLat(this.center),a=Math.pow(2,r),o=[a*i.x,a*i.y,0],s=xn.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,r),l=e.minzoom||0;this.pitch&lt;=60&amp;&amp;this._edgeInsets.top&lt;.1&amp;&amp;(l=r);var c=function(t){return{aabb:new bn([t*a,0,0],[(t+1)*a,a,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}},u=[],f=[],h=r,p=e.reparseOverscaled?n:r;if(this._renderWorldCopies)for(var d=1;d&lt;=3;d++)u.push(c(-d)),u.push(c(d));for(u.push(c(0));u.length&gt;0;){var g=u.pop(),m=g.x,v=g.y,y=g.fullyVisible;if(!y){var x=g.aabb.intersects(s);if(0===x)continue;y=2===x}var b=g.aabb.distanceX(o),_=g.aabb.distanceY(o),w=Math.max(Math.abs(b),Math.abs(_));if(g.zoom===h||w&gt;3+(1&lt;&lt;h-g.zoom)-2&amp;&amp;g.zoom&gt;=l)f.push({tileID:new t.OverscaledTileID(g.zoom===h?p:g.zoom,g.wrap,g.zoom,m,v),distanceSq:t.sqrLen([o[0]-.5-m,o[1]-.5-v])});else for(var T=0;T&lt;4;T++){var k=(m&lt;&lt;1)+T%2,M=(v&lt;&lt;1)+(T&gt;&gt;1);u.push({aabb:g.aabb.quadrant(T),zoom:g.zoom+1,x:k,y:M,wrap:g.wrap,fullyVisible:y})}}return f.sort((function(t,e){return t.distanceSq-e.distanceSq})).map((function(t){return t.tileID}))},wn.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Tn.unmodified.get=function(){return this._unmodified},wn.prototype.zoomScale=function(t){return Math.pow(2,t)},wn.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},wn.prototype.project=function(e){var r=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(r)*this.worldSize)},wn.prototype.unproject=function(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()},Tn.point.get=function(){return this.project(this.center)},wn.prototype.setLocationAtPoint=function(e,r){var n=this.pointCoordinate(r),i=this.pointCoordinate(this.centerPoint),a=this.locationCoordinate(e),o=new t.MercatorCoordinate(a.x-(n.x-i.x),a.y-(n.y-i.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&amp;&amp;(this.center=this.center.wrap())},wn.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},wn.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},wn.prototype.locationCoordinate=function(e){return t.MercatorCoordinate.fromLngLat(e)},wn.prototype.coordinateLocation=function(t){return t.toLngLat()},wn.prototype.pointCoordinate=function(e){var r=[e.x,e.y,0,1],n=[e.x,e.y,1,1];t.transformMat4(r,r,this.pixelMatrixInverse),t.transformMat4(n,n,this.pixelMatrixInverse);var i=r[3],a=n[3],o=r[1]/i,s=n[1]/a,l=r[2]/i,c=n[2]/a,u=l===c?0:(0-l)/(c-l);return new t.MercatorCoordinate(t.number(r[0]/i,n[0]/a,u)/this.worldSize,t.number(o,s,u)/this.worldSize)},wn.prototype.coordinatePoint=function(e){var r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix),new t.Point(r[0]/r[3],r[1]/r[3])},wn.prototype.getBounds=function(){return(new t.LngLatBounds).extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},wn.prototype.getMaxBounds=function(){return this.latRange&amp;&amp;2===this.latRange.length&amp;&amp;this.lngRange&amp;&amp;2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},wn.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},wn.prototype.calculatePosMatrix=function(e,r){void 0===r&amp;&amp;(r=!1);var n=e.key,i=r?this._alignedPosMatrixCache:this._posMatrixCache;if(i[n])return i[n];var a=e.canonical,o=this.worldSize/this.zoomScale(a.z),s=a.x+Math.pow(2,a.z)*e.wrap,l=t.identity(new Float64Array(16));return t.translate(l,l,[s*o,a.y*o,0]),t.scale(l,l,[o/t.EXTENT,o/t.EXTENT,1]),t.multiply(l,r?this.alignedProjMatrix:this.projMatrix,l),i[n]=new Float32Array(l),i[n]},wn.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},wn.prototype._constrain=function(){if(this.center&amp;&amp;this.width&amp;&amp;this.height&amp;&amp;!this._constraining){this._constraining=!0;var e,r,n,i,a=-90,o=90,s=-180,l=180,c=this.size,u=this._unmodified;if(this.latRange){var f=this.latRange;a=t.mercatorYfromLat(f[1])*this.worldSize,e=(o=t.mercatorYfromLat(f[0])*this.worldSize)-a&lt;c.y?c.y/(o-a):0}if(this.lngRange){var h=this.lngRange;s=t.mercatorXfromLng(h[0])*this.worldSize,r=(l=t.mercatorXfromLng(h[1])*this.worldSize)-s&lt;c.x?c.x/(l-s):0}var p=this.point,d=Math.max(r||0,e||0);if(d)return this.center=this.unproject(new t.Point(r?(l+s)/2:p.x,e?(o+a)/2:p.y)),this.zoom+=this.scaleZoom(d),this._unmodified=u,void(this._constraining=!1);if(this.latRange){var g=p.y,m=c.y/2;g-m&lt;a&amp;&amp;(i=a+m),g+m&gt;o&amp;&amp;(i=o-m)}if(this.lngRange){var v=p.x,y=c.x/2;v-y&lt;s&amp;&amp;(n=s+y),v+y&gt;l&amp;&amp;(n=l-y)}void 0===n&amp;&amp;void 0===i||(this.center=this.unproject(new t.Point(void 0!==n?n:p.x,void 0!==i?i:p.y))),this._unmodified=u,this._constraining=!1}},wn.prototype._calcMatrices=function(){if(this.height){var e=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var r=Math.PI/2+this._pitch,n=this._fov*(.5+e.y/this.height),i=Math.sin(n)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-r-n,.01,Math.PI-.01)),a=this.point,o=a.x,s=a.y,l=1.01*(Math.cos(Math.PI/2-this._pitch)*i+this.cameraToCenterDistance),c=this.height/50,u=new Float64Array(16);t.perspective(u,this._fov,this.width/this.height,c,l),u[8]=2*-e.x/this.width,u[9]=2*e.y/this.height,t.scale(u,u,[1,-1,1]),t.translate(u,u,[0,0,-this.cameraToCenterDistance]),t.rotateX(u,u,this._pitch),t.rotateZ(u,u,this.angle),t.translate(u,u,[-o,-s,0]),this.mercatorMatrix=t.scale([],u,[this.worldSize,this.worldSize,this.worldSize]),t.scale(u,u,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=u,this.invProjMatrix=t.invert([],this.projMatrix);var f=this.width%2/2,h=this.height%2/2,p=Math.cos(this.angle),d=Math.sin(this.angle),g=o-Math.round(o)+p*f+d*h,m=s-Math.round(s)+p*h+d*f,v=new Float64Array(u);if(t.translate(v,v,[g&gt;.5?g-1:g,m&gt;.5?m-1:m,0]),this.alignedProjMatrix=v,u=t.create(),t.scale(u,u,[this.width/2,-this.height/2,1]),t.translate(u,u,[1,-1,0]),this.labelPlaneMatrix=u,u=t.create(),t.scale(u,u,[1,-1,1]),t.translate(u,u,[-1,-1,0]),t.scale(u,u,[2/this.width,2/this.height,1]),this.glCoordMatrix=u,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(u=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error(&quot;failed to invert matrix&quot;);this.pixelMatrixInverse=u,this._posMatrixCache={},this._alignedPosMatrixCache={}}},wn.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)),r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance},wn.prototype.getCameraPoint=function(){var e=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,e))},wn.prototype.getCameraQueryGeometry=function(e){var r=this.getCameraPoint();if(1===e.length)return[e[0],r];for(var n=r.x,i=r.y,a=r.x,o=r.y,s=0,l=e;s&lt;l.length;s+=1){var c=l[s];n=Math.min(n,c.x),i=Math.min(i,c.y),a=Math.max(a,c.x),o=Math.max(o,c.y)}return[new t.Point(n,i),new t.Point(a,i),new t.Point(a,o),new t.Point(n,o),new t.Point(n,i)]},Object.defineProperties(wn.prototype,Tn);var kn=function(e){var r,n,i,a;this._hashName=e&amp;&amp;encodeURIComponent(e),t.bindAll([&quot;_getCurrentHash&quot;,&quot;_onHashChange&quot;,&quot;_updateHash&quot;],this),this._updateHash=(r=this._updateHashUnthrottled.bind(this),n=!1,i=null,a=function(){i=null,n&amp;&amp;(r(),i=setTimeout(a,300),n=!1)},function(){return n=!0,i||a(),i})};kn.prototype.addTo=function(e){return this._map=e,t.window.addEventListener(&quot;hashchange&quot;,this._onHashChange,!1),this._map.on(&quot;moveend&quot;,this._updateHash),this},kn.prototype.remove=function(){return t.window.removeEventListener(&quot;hashchange&quot;,this._onHashChange,!1),this._map.off(&quot;moveend&quot;,this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},kn.prototype.getHashString=function(e){var r=this._map.getCenter(),n=Math.round(100*this._map.getZoom())/100,i=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),a=Math.pow(10,i),o=Math.round(r.lng*a)/a,s=Math.round(r.lat*a)/a,l=this._map.getBearing(),c=this._map.getPitch(),u=&quot;&quot;;if(u+=e?&quot;/&quot;+o+&quot;/&quot;+s+&quot;/&quot;+n:n+&quot;/&quot;+s+&quot;/&quot;+o,(l||c)&amp;&amp;(u+=&quot;/&quot;+Math.round(10*l)/10),c&amp;&amp;(u+=&quot;/&quot;+Math.round(c)),this._hashName){var f=this._hashName,h=!1,p=t.window.location.hash.slice(1).split(&quot;&amp;&quot;).map((function(t){var e=t.split(&quot;=&quot;)[0];return e===f?(h=!0,e+&quot;=&quot;+u):t})).filter((function(t){return t}));return h||p.push(f+&quot;=&quot;+u),&quot;#&quot;+p.join(&quot;&amp;&quot;)}return&quot;#&quot;+u},kn.prototype._getCurrentHash=function(){var e,r=this,n=t.window.location.hash.replace(&quot;#&quot;,&quot;&quot;);return this._hashName?(n.split(&quot;&amp;&quot;).map((function(t){return t.split(&quot;=&quot;)})).forEach((function(t){t[0]===r._hashName&amp;&amp;(e=t)})),(e&amp;&amp;e[1]||&quot;&quot;).split(&quot;/&quot;)):n.split(&quot;/&quot;)},kn.prototype._onHashChange=function(){var t=this._getCurrentHash();if(t.length&gt;=3&amp;&amp;!t.some((function(t){return isNaN(t)}))){var e=this._map.dragRotate.isEnabled()&amp;&amp;this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},kn.prototype._updateHashUnthrottled=function(){var e=this.getHashString();try{t.window.history.replaceState(t.window.history.state,&quot;&quot;,e)}catch(t){}};var Mn={linearity:.3,easing:t.bezier(0,0,.3,1)},An=t.extend({deceleration:2500,maxSpeed:1400},Mn),Sn=t.extend({deceleration:20,maxSpeed:1400},Mn),En=t.extend({deceleration:1e3,maxSpeed:360},Mn),Cn=t.extend({deceleration:1e3,maxSpeed:90},Mn),Ln=function(t){this._map=t,this.clear()};function In(t,e){(!t.duration||t.duration&lt;e.duration)&amp;&amp;(t.duration=e.duration,t.easing=e.easing)}function Pn(e,r,n){var i=n.maxSpeed,a=n.linearity,o=n.deceleration,s=t.clamp(e*a/(r/1e3),-i,i),l=Math.abs(s)/(o*a);return{easing:n.easing,duration:1e3*l,amount:s*(l/2)}}Ln.prototype.clear=function(){this._inertiaBuffer=[]},Ln.prototype.record=function(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:t.browser.now(),settings:e})},Ln.prototype._drainInertiaBuffer=function(){for(var e=this._inertiaBuffer,r=t.browser.now();e.length&gt;0&amp;&amp;r-e[0].time&gt;160;)e.shift()},Ln.prototype._onMoveEnd=function(e){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length&lt;2)){for(var r={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0},n=0,i=this._inertiaBuffer;n&lt;i.length;n+=1){var a=i[n].settings;r.zoom+=a.zoomDelta||0,r.bearing+=a.bearingDelta||0,r.pitch+=a.pitchDelta||0,a.panDelta&amp;&amp;r.pan._add(a.panDelta),a.around&amp;&amp;(r.around=a.around),a.pinchAround&amp;&amp;(r.pinchAround=a.pinchAround)}var o=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,s={};if(r.pan.mag()){var l=Pn(r.pan.mag(),o,t.extend({},An,e||{}));s.offset=r.pan.mult(l.amount/r.pan.mag()),s.center=this._map.transform.center,In(s,l)}if(r.zoom){var c=Pn(r.zoom,o,Sn);s.zoom=this._map.transform.zoom+c.amount,In(s,c)}if(r.bearing){var u=Pn(r.bearing,o,En);s.bearing=this._map.transform.bearing+t.clamp(u.amount,-179,179),In(s,u)}if(r.pitch){var f=Pn(r.pitch,o,Cn);s.pitch=this._map.transform.pitch+f.amount,In(s,f)}if(s.zoom||s.bearing){var h=void 0===r.pinchAround?r.around:r.pinchAround;s.around=h?this._map.unproject(h):this._map.getCenter()}return this.clear(),t.extend(s,{noMoveStart:!0})}};var zn=function(e){function n(n,i,a,o){void 0===o&amp;&amp;(o={});var s=r.mousePos(i.getCanvasContainer(),a),l=i.unproject(s);e.call(this,n,t.extend({point:s,lngLat:l,originalEvent:a},o)),this._defaultPrevented=!1,this.target=i}e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),On=function(e){function n(n,i,a){var o=&quot;touchend&quot;===n?a.changedTouches:a.touches,s=r.touchPos(i.getCanvasContainer(),o),l=s.map((function(t){return i.unproject(t)})),c=s.reduce((function(t,e,r,n){return t.add(e.div(n.length))}),new t.Point(0,0)),u=i.unproject(c);e.call(this,n,{points:s,point:c,lngLats:l,lngLat:u,originalEvent:a}),this._defaultPrevented=!1}e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),Dn=function(t){function e(e,r,n){t.call(this,e,{originalEvent:n}),this._defaultPrevented=!1}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={defaultPrevented:{configurable:!0}};return e.prototype.preventDefault=function(){this._defaultPrevented=!0},r.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(e.prototype,r),e}(t.Event),Rn=function(t,e){this._map=t,this._clickTolerance=e.clickTolerance};Rn.prototype.reset=function(){delete this._mousedownPos},Rn.prototype.wheel=function(t){return this._firePreventable(new Dn(t.type,this._map,t))},Rn.prototype.mousedown=function(t,e){return this._mousedownPos=e,this._firePreventable(new zn(t.type,this._map,t))},Rn.prototype.mouseup=function(t){this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.click=function(t,e){this._mousedownPos&amp;&amp;this._mousedownPos.dist(e)&gt;=this._clickTolerance||this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.dblclick=function(t){return this._firePreventable(new zn(t.type,this._map,t))},Rn.prototype.mouseover=function(t){this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.mouseout=function(t){this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.touchstart=function(t){return this._firePreventable(new On(t.type,this._map,t))},Rn.prototype.touchmove=function(t){this._map.fire(new On(t.type,this._map,t))},Rn.prototype.touchend=function(t){this._map.fire(new On(t.type,this._map,t))},Rn.prototype.touchcancel=function(t){this._map.fire(new On(t.type,this._map,t))},Rn.prototype._firePreventable=function(t){if(this._map.fire(t),t.defaultPrevented)return{}},Rn.prototype.isEnabled=function(){return!0},Rn.prototype.isActive=function(){return!1},Rn.prototype.enable=function(){},Rn.prototype.disable=function(){};var Fn=function(t){this._map=t};Fn.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Fn.prototype.mousemove=function(t){this._map.fire(new zn(t.type,this._map,t))},Fn.prototype.mousedown=function(){this._delayContextMenu=!0},Fn.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&amp;&amp;(this._map.fire(new zn(&quot;contextmenu&quot;,this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Fn.prototype.contextmenu=function(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new zn(t.type,this._map,t)),this._map.listens(&quot;contextmenu&quot;)&amp;&amp;t.preventDefault()},Fn.prototype.isEnabled=function(){return!0},Fn.prototype.isActive=function(){return!1},Fn.prototype.enable=function(){},Fn.prototype.disable=function(){};var Bn=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1};function Nn(t,e){for(var r={},n=0;n&lt;t.length;n++)r[t[n].identifier]=e[n];return r}Bn.prototype.isEnabled=function(){return!!this._enabled},Bn.prototype.isActive=function(){return!!this._active},Bn.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Bn.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},Bn.prototype.mousedown=function(t,e){this.isEnabled()&amp;&amp;t.shiftKey&amp;&amp;0===t.button&amp;&amp;(r.disableDrag(),this._startPos=this._lastPos=e,this._active=!0)},Bn.prototype.mousemoveWindow=function(t,e){if(this._active){var n=e;if(!(this._lastPos.equals(n)||!this._box&amp;&amp;n.dist(this._startPos)&lt;this._clickTolerance)){var i=this._startPos;this._lastPos=n,this._box||(this._box=r.create(&quot;div&quot;,&quot;mapboxgl-boxzoom&quot;,this._container),this._container.classList.add(&quot;mapboxgl-crosshair&quot;),this._fireEvent(&quot;boxzoomstart&quot;,t));var a=Math.min(i.x,n.x),o=Math.max(i.x,n.x),s=Math.min(i.y,n.y),l=Math.max(i.y,n.y);r.setTransform(this._box,&quot;translate(&quot;+a+&quot;px,&quot;+s+&quot;px)&quot;),this._box.style.width=o-a+&quot;px&quot;,this._box.style.height=l-s+&quot;px&quot;}}},Bn.prototype.mouseupWindow=function(e,n){var i=this;if(this._active&amp;&amp;0===e.button){var a=this._startPos,o=n;if(this.reset(),r.suppressClick(),a.x!==o.x||a.y!==o.y)return this._map.fire(new t.Event(&quot;boxzoomend&quot;,{originalEvent:e})),{cameraAnimation:function(t){return t.fitScreenCoordinates(a,o,i._map.getBearing(),{linear:!0})}};this._fireEvent(&quot;boxzoomcancel&quot;,e)}},Bn.prototype.keydown=function(t){this._active&amp;&amp;27===t.keyCode&amp;&amp;(this.reset(),this._fireEvent(&quot;boxzoomcancel&quot;,t))},Bn.prototype.reset=function(){this._active=!1,this._container.classList.remove(&quot;mapboxgl-crosshair&quot;),this._box&amp;&amp;(r.remove(this._box),this._box=null),r.enableDrag(),delete this._startPos,delete this._lastPos},Bn.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,{originalEvent:r}))};var jn=function(t){this.reset(),this.numTouches=t.numTouches};jn.prototype.reset=function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1},jn.prototype.touchstart=function(e,r,n){(this.centroid||n.length&gt;this.numTouches)&amp;&amp;(this.aborted=!0),this.aborted||(void 0===this.startTime&amp;&amp;(this.startTime=e.timeStamp),n.length===this.numTouches&amp;&amp;(this.centroid=function(e){for(var r=new t.Point(0,0),n=0,i=e;n&lt;i.length;n+=1)r._add(i[n]);return r.div(e.length)}(r),this.touches=Nn(n,r)))},jn.prototype.touchmove=function(t,e,r){if(!this.aborted&amp;&amp;this.centroid){var n=Nn(r,e);for(var i in this.touches){var a=n[i];(!a||a.dist(this.touches[i])&gt;30)&amp;&amp;(this.aborted=!0)}}},jn.prototype.touchend=function(t,e,r){if((!this.centroid||t.timeStamp-this.startTime&gt;500)&amp;&amp;(this.aborted=!0),0===r.length){var n=!this.aborted&amp;&amp;this.centroid;if(this.reset(),n)return n}};var Un=function(t){this.singleTap=new jn(t),this.numTaps=t.numTaps,this.reset()};Un.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Un.prototype.touchstart=function(t,e,r){this.singleTap.touchstart(t,e,r)},Un.prototype.touchmove=function(t,e,r){this.singleTap.touchmove(t,e,r)},Un.prototype.touchend=function(t,e,r){var n=this.singleTap.touchend(t,e,r);if(n){var i=t.timeStamp-this.lastTime&lt;500,a=!this.lastTap||this.lastTap.dist(n)&lt;30;if(i&amp;&amp;a||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=n,this.count===this.numTaps)return this.reset(),n}};var Vn=function(){this._zoomIn=new Un({numTouches:1,numTaps:2}),this._zoomOut=new Un({numTouches:2,numTaps:1}),this.reset()};Vn.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Vn.prototype.touchstart=function(t,e,r){this._zoomIn.touchstart(t,e,r),this._zoomOut.touchstart(t,e,r)},Vn.prototype.touchmove=function(t,e,r){this._zoomIn.touchmove(t,e,r),this._zoomOut.touchmove(t,e,r)},Vn.prototype.touchend=function(t,e,r){var n=this,i=this._zoomIn.touchend(t,e,r),a=this._zoomOut.touchend(t,e,r);return i?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(i)},{originalEvent:t})}}):a?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(a)},{originalEvent:t})}}):void 0},Vn.prototype.touchcancel=function(){this.reset()},Vn.prototype.enable=function(){this._enabled=!0},Vn.prototype.disable=function(){this._enabled=!1,this.reset()},Vn.prototype.isEnabled=function(){return this._enabled},Vn.prototype.isActive=function(){return this._active};var qn=function(t){this.reset(),this._clickTolerance=t.clickTolerance||1};qn.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},qn.prototype._correctButton=function(t,e){return!1},qn.prototype._move=function(t,e){return{}},qn.prototype.mousedown=function(t,e){if(!this._lastPoint){var n=r.mouseButton(t);this._correctButton(t,n)&amp;&amp;(this._lastPoint=e,this._eventButton=n)}},qn.prototype.mousemoveWindow=function(t,e){var r=this._lastPoint;if(r&amp;&amp;(t.preventDefault(),this._moved||!(e.dist(r)&lt;this._clickTolerance)))return this._moved=!0,this._lastPoint=e,this._move(r,e)},qn.prototype.mouseupWindow=function(t){r.mouseButton(t)===this._eventButton&amp;&amp;(this._moved&amp;&amp;r.suppressClick(),this.reset())},qn.prototype.enable=function(){this._enabled=!0},qn.prototype.disable=function(){this._enabled=!1,this.reset()},qn.prototype.isEnabled=function(){return this._enabled},qn.prototype.isActive=function(){return this._active};var Hn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.mousedown=function(e,r){t.prototype.mousedown.call(this,e,r),this._lastPoint&amp;&amp;(this._active=!0)},e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;!t.ctrlKey},e.prototype._move=function(t,e){return{around:e,panDelta:e.sub(t)}},e}(qn),Gn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=.8*(e.x-t.x);if(r)return this._active=!0,{bearingDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(qn),Yn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=-.5*(e.y-t.y);if(r)return this._active=!0,{pitchDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(qn),Wn=function(t){this._minTouches=1,this._clickTolerance=t.clickTolerance||1,this.reset()};Wn.prototype.reset=function(){this._active=!1,this._touches={},this._sum=new t.Point(0,0)},Wn.prototype.touchstart=function(t,e,r){return this._calculateTransform(t,e,r)},Wn.prototype.touchmove=function(t,e,r){if(this._active)return t.preventDefault(),this._calculateTransform(t,e,r)},Wn.prototype.touchend=function(t,e,r){this._calculateTransform(t,e,r),this._active&amp;&amp;r.length&lt;this._minTouches&amp;&amp;this.reset()},Wn.prototype.touchcancel=function(){this.reset()},Wn.prototype._calculateTransform=function(e,r,n){n.length&gt;0&amp;&amp;(this._active=!0);var i=Nn(n,r),a=new t.Point(0,0),o=new t.Point(0,0),s=0;for(var l in i){var c=i[l],u=this._touches[l];u&amp;&amp;(a._add(c),o._add(c.sub(u)),s++,i[l]=c)}if(this._touches=i,!(s&lt;this._minTouches)&amp;&amp;o.mag()){var f=o.div(s);if(this._sum._add(f),!(this._sum.mag()&lt;this._clickTolerance))return{around:a.div(s),panDelta:f}}},Wn.prototype.enable=function(){this._enabled=!0},Wn.prototype.disable=function(){this._enabled=!1,this.reset()},Wn.prototype.isEnabled=function(){return this._enabled},Wn.prototype.isActive=function(){return this._active};var Xn=function(){this.reset()};function Zn(t,e,r){for(var n=0;n&lt;t.length;n++)if(t[n].identifier===r)return e[n]}function Jn(t,e){return Math.log(t/e)/Math.LN2}Xn.prototype.reset=function(){this._active=!1,delete this._firstTwoTouches},Xn.prototype._start=function(t){},Xn.prototype._move=function(t,e,r){return{}},Xn.prototype.touchstart=function(t,e,r){this._firstTwoTouches||r.length&lt;2||(this._firstTwoTouches=[r[0].identifier,r[1].identifier],this._start([e[0],e[1]]))},Xn.prototype.touchmove=function(t,e,r){if(this._firstTwoTouches){t.preventDefault();var n=this._firstTwoTouches,i=n[1],a=Zn(r,e,n[0]),o=Zn(r,e,i);if(a&amp;&amp;o){var s=this._aroundCenter?null:a.add(o).div(2);return this._move([a,o],s,t)}}},Xn.prototype.touchend=function(t,e,n){if(this._firstTwoTouches){var i=this._firstTwoTouches,a=i[1],o=Zn(n,e,i[0]),s=Zn(n,e,a);o&amp;&amp;s||(this._active&amp;&amp;r.suppressClick(),this.reset())}},Xn.prototype.touchcancel=function(){this.reset()},Xn.prototype.enable=function(t){this._enabled=!0,this._aroundCenter=!!t&amp;&amp;&quot;center&quot;===t.around},Xn.prototype.disable=function(){this._enabled=!1,this.reset()},Xn.prototype.isEnabled=function(){return this._enabled},Xn.prototype.isActive=function(){return this._active};var Kn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._distance,delete this._startDistance},e.prototype._start=function(t){this._startDistance=this._distance=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._distance;if(this._distance=t[0].dist(t[1]),this._active||!(Math.abs(Jn(this._distance,this._startDistance))&lt;.1))return this._active=!0,{zoomDelta:Jn(this._distance,r),pinchAround:e}},e}(Xn);function Qn(t,e){return 180*t.angleWith(e)/Math.PI}var $n=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._minDiameter,delete this._startVector,delete this._vector},e.prototype._start=function(t){this._startVector=this._vector=t[0].sub(t[1]),this._minDiameter=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._vector;if(this._vector=t[0].sub(t[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:Qn(this._vector,r),pinchAround:e}},e.prototype._isBelowThreshold=function(t){this._minDiameter=Math.min(this._minDiameter,t.mag());var e=25/(Math.PI*this._minDiameter)*360,r=Qn(t,this._startVector);return Math.abs(r)&lt;e},e}(Xn);function ti(t){return Math.abs(t.y)&gt;Math.abs(t.x)}var ei=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},e.prototype._start=function(t){this._lastPoints=t,ti(t[0].sub(t[1]))&amp;&amp;(this._valid=!1)},e.prototype._move=function(t,e,r){var n=t[0].sub(this._lastPoints[0]),i=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(n,i,r.timeStamp),this._valid)return this._lastPoints=t,this._active=!0,{pitchDelta:(n.y+i.y)/2*-.5}},e.prototype.gestureBeginsVertically=function(t,e,r){if(void 0!==this._valid)return this._valid;var n=t.mag()&gt;=2,i=e.mag()&gt;=2;if(n||i){if(!n||!i)return void 0===this._firstMove&amp;&amp;(this._firstMove=r),r-this._firstMove&lt;100&amp;&amp;void 0;var a=t.y&gt;0==e.y&gt;0;return ti(t)&amp;&amp;ti(e)&amp;&amp;a}},e}(Xn),ri={panStep:100,bearingStep:15,pitchStep:10},ni=function(){var t=ri;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep};function ii(t){return t*(2-t)}ni.prototype.reset=function(){this._active=!1},ni.prototype.keydown=function(t){var e=this;if(!(t.altKey||t.ctrlKey||t.metaKey)){var r=0,n=0,i=0,a=0,o=0;switch(t.keyCode){case 61:case 107:case 171:case 187:r=1;break;case 189:case 109:case 173:r=-1;break;case 37:t.shiftKey?n=-1:(t.preventDefault(),a=-1);break;case 39:t.shiftKey?n=1:(t.preventDefault(),a=1);break;case 38:t.shiftKey?i=1:(t.preventDefault(),o=-1);break;case 40:t.shiftKey?i=-1:(t.preventDefault(),o=1);break;default:return}return{cameraAnimation:function(s){var l=s.getZoom();s.easeTo({duration:300,easeId:&quot;keyboardHandler&quot;,easing:ii,zoom:r?Math.round(l)+r*(t.shiftKey?2:1):l,bearing:s.getBearing()+n*e._bearingStep,pitch:s.getPitch()+i*e._pitchStep,offset:[-a*e._panStep,-o*e._panStep],center:s.getCenter()},{originalEvent:t})}}}},ni.prototype.enable=function(){this._enabled=!0},ni.prototype.disable=function(){this._enabled=!1,this.reset()},ni.prototype.isEnabled=function(){return this._enabled},ni.prototype.isActive=function(){return this._active};var ai=function(e,r){this._map=e,this._el=e.getCanvasContainer(),this._handler=r,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,t.bindAll([&quot;_onWheel&quot;,&quot;_onTimeout&quot;,&quot;_onScrollFrame&quot;,&quot;_onScrollFinished&quot;],this)};ai.prototype.setZoomRate=function(t){this._defaultZoomRate=t},ai.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},ai.prototype.isEnabled=function(){return!!this._enabled},ai.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},ai.prototype.isZooming=function(){return!!this._zooming},ai.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&amp;&amp;&quot;center&quot;===t.around)},ai.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},ai.prototype.wheel=function(e){if(this.isEnabled()){var r=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,n=t.browser.now(),i=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==r&amp;&amp;r%4.000244140625==0?this._type=&quot;wheel&quot;:0!==r&amp;&amp;Math.abs(r)&lt;4?this._type=&quot;trackpad&quot;:i&gt;400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*r)&lt;200?&quot;trackpad&quot;:&quot;wheel&quot;,this._timeout&amp;&amp;(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),e.shiftKey&amp;&amp;r&amp;&amp;(r/=4),this._type&amp;&amp;(this._lastWheelEvent=e,this._delta-=r,this._active||this._start(e)),e.preventDefault()}},ai.prototype._onTimeout=function(t){this._type=&quot;wheel&quot;,this._delta-=this._lastValue,this._active||this._start(t)},ai.prototype._start=function(e){if(this._delta){this._frameId&amp;&amp;(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&amp;&amp;(clearTimeout(this._finishTimeout),delete this._finishTimeout);var n=r.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(n)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},ai.prototype.renderFrame=function(){return this._onScrollFrame()},ai.prototype._onScrollFrame=function(){var e=this;if(this._frameId&amp;&amp;(this._frameId=null,this.isActive())){var r=this._map.transform;if(0!==this._delta){var n=&quot;wheel&quot;===this._type&amp;&amp;Math.abs(this._delta)&gt;4.000244140625?this._wheelZoomRate:this._defaultZoomRate,i=2/(1+Math.exp(-Math.abs(this._delta*n)));this._delta&lt;0&amp;&amp;0!==i&amp;&amp;(i=1/i);var a=&quot;number&quot;==typeof this._targetZoom?r.zoomScale(this._targetZoom):r.scale;this._targetZoom=Math.min(r.maxZoom,Math.max(r.minZoom,r.scaleZoom(a*i))),&quot;wheel&quot;===this._type&amp;&amp;(this._startZoom=r.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var o,s=&quot;number&quot;==typeof this._targetZoom?this._targetZoom:r.zoom,l=this._startZoom,c=this._easing,u=!1;if(&quot;wheel&quot;===this._type&amp;&amp;l&amp;&amp;c){var f=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),h=c(f);o=t.number(l,s,h),f&lt;1?this._frameId||(this._frameId=!0):u=!0}else o=s,u=!0;return this._active=!0,u&amp;&amp;(this._active=!1,this._finishTimeout=setTimeout((function(){e._zooming=!1,e._handler._triggerRenderFrame(),delete e._targetZoom,delete e._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!u,zoomDelta:o-r.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},ai.prototype._smoothOutEasing=function(e){var r=t.ease;if(this._prevEase){var n=this._prevEase,i=(t.browser.now()-n.start)/n.duration,a=n.easing(i+.01)-n.easing(i),o=.27/Math.sqrt(a*a+1e-4)*.01,s=Math.sqrt(.0729-o*o);r=t.bezier(o,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:r},r},ai.prototype.reset=function(){this._active=!1};var oi=function(t,e){this._clickZoom=t,this._tapZoom=e};oi.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},oi.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},oi.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&amp;&amp;this._tapZoom.isEnabled()},oi.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var si=function(){this.reset()};si.prototype.reset=function(){this._active=!1},si.prototype.dblclick=function(t,e){return t.preventDefault(),{cameraAnimation:function(r){r.easeTo({duration:300,zoom:r.getZoom()+(t.shiftKey?-1:1),around:r.unproject(e)},{originalEvent:t})}}},si.prototype.enable=function(){this._enabled=!0},si.prototype.disable=function(){this._enabled=!1,this.reset()},si.prototype.isEnabled=function(){return this._enabled},si.prototype.isActive=function(){return this._active};var li=function(){this._tap=new Un({numTouches:1,numTaps:1}),this.reset()};li.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},li.prototype.touchstart=function(t,e,r){this._swipePoint||(this._tapTime&amp;&amp;t.timeStamp-this._tapTime&gt;500&amp;&amp;this.reset(),this._tapTime?r.length&gt;0&amp;&amp;(this._swipePoint=e[0],this._swipeTouch=r[0].identifier):this._tap.touchstart(t,e,r))},li.prototype.touchmove=function(t,e,r){if(this._tapTime){if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;var n=e[0],i=n.y-this._swipePoint.y;return this._swipePoint=n,t.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(t,e,r)},li.prototype.touchend=function(t,e,r){this._tapTime?this._swipePoint&amp;&amp;0===r.length&amp;&amp;this.reset():this._tap.touchend(t,e,r)&amp;&amp;(this._tapTime=t.timeStamp)},li.prototype.touchcancel=function(){this.reset()},li.prototype.enable=function(){this._enabled=!0},li.prototype.disable=function(){this._enabled=!1,this.reset()},li.prototype.isEnabled=function(){return this._enabled},li.prototype.isActive=function(){return this._active};var ci=function(t,e,r){this._el=t,this._mousePan=e,this._touchPan=r};ci.prototype.enable=function(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add(&quot;mapboxgl-touch-drag-pan&quot;)},ci.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove(&quot;mapboxgl-touch-drag-pan&quot;)},ci.prototype.isEnabled=function(){return this._mousePan.isEnabled()&amp;&amp;this._touchPan.isEnabled()},ci.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var ui=function(t,e,r){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=r};ui.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&amp;&amp;this._mousePitch.enable()},ui.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},ui.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&amp;&amp;(!this._pitchWithRotate||this._mousePitch.isEnabled())},ui.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var fi=function(t,e,r,n){this._el=t,this._touchZoom=e,this._touchRotate=r,this._tapDragZoom=n,this._rotationDisabled=!1,this._enabled=!0};fi.prototype.enable=function(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add(&quot;mapboxgl-touch-zoom-rotate&quot;)},fi.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove(&quot;mapboxgl-touch-zoom-rotate&quot;)},fi.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&amp;&amp;(this._rotationDisabled||this._touchRotate.isEnabled())&amp;&amp;this._tapDragZoom.isEnabled()},fi.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},fi.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},fi.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&amp;&amp;this._touchRotate.enable()};var hi=function(t){return t.zoom||t.drag||t.pitch||t.rotate},pi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(t.Event);function di(t){return t.panDelta&amp;&amp;t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var gi=function(e,n){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Ln(e),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(n),t.bindAll([&quot;handleEvent&quot;,&quot;handleWindowEvent&quot;],this);var i=this._el;this._listeners=[[i,&quot;touchstart&quot;,{passive:!1}],[i,&quot;touchmove&quot;,{passive:!1}],[i,&quot;touchend&quot;,void 0],[i,&quot;touchcancel&quot;,void 0],[i,&quot;mousedown&quot;,void 0],[i,&quot;mousemove&quot;,void 0],[i,&quot;mouseup&quot;,void 0],[t.window.document,&quot;mousemove&quot;,{capture:!0}],[t.window.document,&quot;mouseup&quot;,void 0],[i,&quot;mouseover&quot;,void 0],[i,&quot;mouseout&quot;,void 0],[i,&quot;dblclick&quot;,void 0],[i,&quot;click&quot;,void 0],[i,&quot;keydown&quot;,{capture:!1}],[i,&quot;keyup&quot;,void 0],[i,&quot;wheel&quot;,{passive:!1}],[i,&quot;contextmenu&quot;,void 0],[t.window,&quot;blur&quot;,void 0]];for(var a=0,o=this._listeners;a&lt;o.length;a+=1){var s=o[a],l=s[0];r.addEventListener(l,s[1],l===t.window.document?this.handleWindowEvent:this.handleEvent,s[2])}};gi.prototype.destroy=function(){for(var e=0,n=this._listeners;e&lt;n.length;e+=1){var i=n[e],a=i[0];r.removeEventListener(a,i[1],a===t.window.document?this.handleWindowEvent:this.handleEvent,i[2])}},gi.prototype._addDefaultHandlers=function(t){var e=this._map,r=e.getCanvasContainer();this._add(&quot;mapEvent&quot;,new Rn(e,t));var n=e.boxZoom=new Bn(e,t);this._add(&quot;boxZoom&quot;,n);var i=new Vn,a=new si;e.doubleClickZoom=new oi(a,i),this._add(&quot;tapZoom&quot;,i),this._add(&quot;clickZoom&quot;,a);var o=new li;this._add(&quot;tapDragZoom&quot;,o);var s=e.touchPitch=new ei;this._add(&quot;touchPitch&quot;,s);var l=new Gn(t),c=new Yn(t);e.dragRotate=new ui(t,l,c),this._add(&quot;mouseRotate&quot;,l,[&quot;mousePitch&quot;]),this._add(&quot;mousePitch&quot;,c,[&quot;mouseRotate&quot;]);var u=new Hn(t),f=new Wn(t);e.dragPan=new ci(r,u,f),this._add(&quot;mousePan&quot;,u),this._add(&quot;touchPan&quot;,f,[&quot;touchZoom&quot;,&quot;touchRotate&quot;]);var h=new $n,p=new Kn;e.touchZoomRotate=new fi(r,p,h,o),this._add(&quot;touchRotate&quot;,h,[&quot;touchPan&quot;,&quot;touchZoom&quot;]),this._add(&quot;touchZoom&quot;,p,[&quot;touchPan&quot;,&quot;touchRotate&quot;]);var d=e.scrollZoom=new ai(e,this);this._add(&quot;scrollZoom&quot;,d,[&quot;mousePan&quot;]);var g=e.keyboard=new ni;this._add(&quot;keyboard&quot;,g),this._add(&quot;blockableMapEvent&quot;,new Fn(e));for(var m=0,v=[&quot;boxZoom&quot;,&quot;doubleClickZoom&quot;,&quot;tapDragZoom&quot;,&quot;touchPitch&quot;,&quot;dragRotate&quot;,&quot;dragPan&quot;,&quot;touchZoomRotate&quot;,&quot;scrollZoom&quot;,&quot;keyboard&quot;];m&lt;v.length;m+=1){var y=v[m];t.interactive&amp;&amp;t[y]&amp;&amp;e[y].enable(t[y])}},gi.prototype._add=function(t,e,r){this._handlers.push({handlerName:t,handler:e,allowed:r}),this._handlersById[t]=e},gi.prototype.stop=function(){if(!this._updatingCamera){for(var t=0,e=this._handlers;t&lt;e.length;t+=1)e[t].handler.reset();this._inertia.clear(),this._fireEvents({},{}),this._changes=[]}},gi.prototype.isActive=function(){for(var t=0,e=this._handlers;t&lt;e.length;t+=1)if(e[t].handler.isActive())return!0;return!1},gi.prototype.isZooming=function(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()},gi.prototype.isRotating=function(){return!!this._eventsInProgress.rotate},gi.prototype.isMoving=function(){return Boolean(hi(this._eventsInProgress))||this.isZooming()},gi.prototype._blockedByActive=function(t,e,r){for(var n in t)if(n!==r&amp;&amp;(!e||e.indexOf(n)&lt;0))return!0;return!1},gi.prototype.handleWindowEvent=function(t){this.handleEvent(t,t.type+&quot;Window&quot;)},gi.prototype._getMapTouches=function(t){for(var e=[],r=0,n=t;r&lt;n.length;r+=1){var i=n[r];this._el.contains(i.target)&amp;&amp;e.push(i)}return e},gi.prototype.handleEvent=function(t,e){if(&quot;blur&quot;!==t.type){this._updatingCamera=!0;for(var n=&quot;renderFrame&quot;===t.type?void 0:t,i={needsRenderFrame:!1},a={},o={},s=t.touches?this._getMapTouches(t.touches):void 0,l=s?r.touchPos(this._el,s):r.mousePos(this._el,t),c=0,u=this._handlers;c&lt;u.length;c+=1){var f=u[c],h=f.handlerName,p=f.handler,d=f.allowed;if(p.isEnabled()){var g=void 0;this._blockedByActive(o,d,h)?p.reset():p[e||t.type]&amp;&amp;(g=p[e||t.type](t,l,s),this.mergeHandlerResult(i,a,g,h,n),g&amp;&amp;g.needsRenderFrame&amp;&amp;this._triggerRenderFrame()),(g||p.isActive())&amp;&amp;(o[h]=p)}}var m={};for(var v in this._previousActiveHandlers)o[v]||(m[v]=n);this._previousActiveHandlers=o,(Object.keys(m).length||di(i))&amp;&amp;(this._changes.push([i,a,m]),this._triggerRenderFrame()),(Object.keys(o).length||di(i))&amp;&amp;this._map._stop(!0),this._updatingCamera=!1;var y=i.cameraAnimation;y&amp;&amp;(this._inertia.clear(),this._fireEvents({},{}),this._changes=[],y(this._map))}else this.stop()},gi.prototype.mergeHandlerResult=function(e,r,n,i,a){if(n){t.extend(e,n);var o={handlerName:i,originalEvent:n.originalEvent||a};void 0!==n.zoomDelta&amp;&amp;(r.zoom=o),void 0!==n.panDelta&amp;&amp;(r.drag=o),void 0!==n.pitchDelta&amp;&amp;(r.pitch=o),void 0!==n.bearingDelta&amp;&amp;(r.rotate=o)}},gi.prototype._applyChanges=function(){for(var e={},r={},n={},i=0,a=this._changes;i&lt;a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=o[2];s.panDelta&amp;&amp;(e.panDelta=(e.panDelta||new t.Point(0,0))._add(s.panDelta)),s.zoomDelta&amp;&amp;(e.zoomDelta=(e.zoomDelta||0)+s.zoomDelta),s.bearingDelta&amp;&amp;(e.bearingDelta=(e.bearingDelta||0)+s.bearingDelta),s.pitchDelta&amp;&amp;(e.pitchDelta=(e.pitchDelta||0)+s.pitchDelta),void 0!==s.around&amp;&amp;(e.around=s.around),void 0!==s.pinchAround&amp;&amp;(e.pinchAround=s.pinchAround),s.noInertia&amp;&amp;(e.noInertia=s.noInertia),t.extend(r,l),t.extend(n,c)}this._updateMapTransform(e,r,n),this._changes=[]},gi.prototype._updateMapTransform=function(t,e,r){var n=this._map,i=n.transform;if(!di(t))return this._fireEvents(e,r);var a=t.panDelta,o=t.zoomDelta,s=t.bearingDelta,l=t.pitchDelta,c=t.around,u=t.pinchAround;void 0!==u&amp;&amp;(c=u),n._stop(!0),c=c||n.transform.centerPoint;var f=i.pointLocation(a?c.sub(a):c);s&amp;&amp;(i.bearing+=s),l&amp;&amp;(i.pitch+=l),o&amp;&amp;(i.zoom+=o),i.setLocationAtPoint(f,c),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(e,r)},gi.prototype._fireEvents=function(e,r){var n=this,i=hi(this._eventsInProgress),a=hi(e),o={};for(var s in e)this._eventsInProgress[s]||(o[s+&quot;start&quot;]=e[s].originalEvent),this._eventsInProgress[s]=e[s];for(var l in!i&amp;&amp;a&amp;&amp;this._fireEvent(&quot;movestart&quot;,a.originalEvent),o)this._fireEvent(l,o[l]);for(var c in e.rotate&amp;&amp;(this._bearingChanged=!0),a&amp;&amp;this._fireEvent(&quot;move&quot;,a.originalEvent),e)this._fireEvent(c,e[c].originalEvent);var u,f={};for(var h in this._eventsInProgress){var p=this._eventsInProgress[h],d=p.handlerName,g=p.originalEvent;this._handlersById[d].isActive()||(delete this._eventsInProgress[h],f[h+&quot;end&quot;]=u=r[d]||g)}for(var m in f)this._fireEvent(m,f[m]);var v=hi(this._eventsInProgress);if((i||a)&amp;&amp;!v){this._updatingCamera=!0;var y=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),x=function(t){return 0!==t&amp;&amp;-n._bearingSnap&lt;t&amp;&amp;t&lt;n._bearingSnap};y?(x(y.bearing||this._map.getBearing())&amp;&amp;(y.bearing=0),this._map.easeTo(y,{originalEvent:u})):(this._map.fire(new t.Event(&quot;moveend&quot;,{originalEvent:u})),x(this._map.getBearing())&amp;&amp;this._map.resetNorth()),this._bearingChanged=!1,this._updatingCamera=!1}},gi.prototype._fireEvent=function(e,r){this._map.fire(new t.Event(e,r?{originalEvent:r}:{}))},gi.prototype._triggerRenderFrame=function(){var t=this;void 0===this._frameId&amp;&amp;(this._frameId=this._map._requestRenderFrame((function(e){delete t._frameId,t.handleEvent(new pi(&quot;renderFrame&quot;,{timeStamp:e})),t._applyChanges()})))};var mi=function(e){function r(r,n){e.call(this),this._moving=!1,this._zooming=!1,this.transform=r,this._bearingSnap=n.bearingSnap,t.bindAll([&quot;_renderFrameCallback&quot;],this)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getCenter=function(){return new t.LngLat(this.transform.center.lng,this.transform.center.lat)},r.prototype.setCenter=function(t,e){return this.jumpTo({center:t},e)},r.prototype.panBy=function(e,r,n){return e=t.Point.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},r),n)},r.prototype.panTo=function(e,r,n){return this.easeTo(t.extend({center:e},r),n)},r.prototype.getZoom=function(){return this.transform.zoom},r.prototype.setZoom=function(t,e){return this.jumpTo({zoom:t},e),this},r.prototype.zoomTo=function(e,r,n){return this.easeTo(t.extend({zoom:e},r),n)},r.prototype.zoomIn=function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},r.prototype.zoomOut=function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},r.prototype.getBearing=function(){return this.transform.bearing},r.prototype.setBearing=function(t,e){return this.jumpTo({bearing:t},e),this},r.prototype.getPadding=function(){return this.transform.padding},r.prototype.setPadding=function(t,e){return this.jumpTo({padding:t},e),this},r.prototype.rotateTo=function(e,r,n){return this.easeTo(t.extend({bearing:e},r),n)},r.prototype.resetNorth=function(e,r){return this.rotateTo(0,t.extend({duration:1e3},e),r),this},r.prototype.resetNorthPitch=function(e,r){return this.easeTo(t.extend({bearing:0,pitch:0,duration:1e3},e),r),this},r.prototype.snapToNorth=function(t,e){return Math.abs(this.getBearing())&lt;this._bearingSnap?this.resetNorth(t,e):this},r.prototype.getPitch=function(){return this.transform.pitch},r.prototype.setPitch=function(t,e){return this.jumpTo({pitch:t},e),this},r.prototype.cameraForBounds=function(e,r){return e=t.LngLatBounds.convert(e),this._cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),0,r)},r.prototype._cameraForBoxAndBearing=function(e,r,n,i){var a={top:0,bottom:0,right:0,left:0};if(&quot;number&quot;==typeof(i=t.extend({padding:a,offset:[0,0],maxZoom:this.transform.maxZoom},i)).padding){var o=i.padding;i.padding={top:o,bottom:o,right:o,left:o}}i.padding=t.extend(a,i.padding);var s=this.transform,l=s.padding,c=s.project(t.LngLat.convert(e)),u=s.project(t.LngLat.convert(r)),f=c.rotate(-n*Math.PI/180),h=u.rotate(-n*Math.PI/180),p=new t.Point(Math.max(f.x,h.x),Math.max(f.y,h.y)),d=new t.Point(Math.min(f.x,h.x),Math.min(f.y,h.y)),g=p.sub(d),m=(s.width-(l.left+l.right+i.padding.left+i.padding.right))/g.x,v=(s.height-(l.top+l.bottom+i.padding.top+i.padding.bottom))/g.y;if(!(v&lt;0||m&lt;0)){var y=Math.min(s.scaleZoom(s.scale*Math.min(m,v)),i.maxZoom),x=t.Point.convert(i.offset),b=new t.Point(x.x+(i.padding.left-i.padding.right)/2,x.y+(i.padding.top-i.padding.bottom)/2).mult(s.scale/s.zoomScale(y));return{center:s.unproject(c.add(u).div(2).sub(b)),zoom:y,bearing:n}}t.warnOnce(&quot;Map cannot fit within canvas with the given bounds, padding, and/or offset.&quot;)},r.prototype.fitBounds=function(t,e,r){return this._fitInternal(this.cameraForBounds(t,e),e,r)},r.prototype.fitScreenCoordinates=function(e,r,n,i,a){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(t.Point.convert(e)),this.transform.pointLocation(t.Point.convert(r)),n,i),i,a)},r.prototype._fitInternal=function(e,r,n){return e?(delete(r=t.extend(e,r)).padding,r.linear?this.easeTo(r,n):this.flyTo(r,n)):this},r.prototype.jumpTo=function(e,r){this.stop();var n=this.transform,i=!1,a=!1,o=!1;return&quot;zoom&quot;in e&amp;&amp;n.zoom!==+e.zoom&amp;&amp;(i=!0,n.zoom=+e.zoom),void 0!==e.center&amp;&amp;(n.center=t.LngLat.convert(e.center)),&quot;bearing&quot;in e&amp;&amp;n.bearing!==+e.bearing&amp;&amp;(a=!0,n.bearing=+e.bearing),&quot;pitch&quot;in e&amp;&amp;n.pitch!==+e.pitch&amp;&amp;(o=!0,n.pitch=+e.pitch),null==e.padding||n.isPaddingEqual(e.padding)||(n.padding=e.padding),this.fire(new t.Event(&quot;movestart&quot;,r)).fire(new t.Event(&quot;move&quot;,r)),i&amp;&amp;this.fire(new t.Event(&quot;zoomstart&quot;,r)).fire(new t.Event(&quot;zoom&quot;,r)).fire(new t.Event(&quot;zoomend&quot;,r)),a&amp;&amp;this.fire(new t.Event(&quot;rotatestart&quot;,r)).fire(new t.Event(&quot;rotate&quot;,r)).fire(new t.Event(&quot;rotateend&quot;,r)),o&amp;&amp;this.fire(new t.Event(&quot;pitchstart&quot;,r)).fire(new t.Event(&quot;pitch&quot;,r)).fire(new t.Event(&quot;pitchend&quot;,r)),this.fire(new t.Event(&quot;moveend&quot;,r))},r.prototype.easeTo=function(e,r){var n=this;this._stop(!1,e.easeId),(!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate||!e.essential&amp;&amp;t.browser.prefersReducedMotion)&amp;&amp;(e.duration=0);var i=this.transform,a=this.getZoom(),o=this.getBearing(),s=this.getPitch(),l=this.getPadding(),c=&quot;zoom&quot;in e?+e.zoom:a,u=&quot;bearing&quot;in e?this._normalizeBearing(e.bearing,o):o,f=&quot;pitch&quot;in e?+e.pitch:s,h=&quot;padding&quot;in e?e.padding:i.padding,p=t.Point.convert(e.offset),d=i.centerPoint.add(p),g=i.pointLocation(d),m=t.LngLat.convert(e.center||g);this._normalizeCenter(m);var v,y,x=i.project(g),b=i.project(m).sub(x),_=i.zoomScale(c-a);e.around&amp;&amp;(v=t.LngLat.convert(e.around),y=i.locationPoint(v));var w={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||c!==a,this._rotating=this._rotating||o!==u,this._pitching=this._pitching||f!==s,this._padding=!i.isPaddingEqual(h),this._easeId=e.easeId,this._prepareEase(r,e.noMoveStart,w),clearTimeout(this._easeEndTimeoutID),this._ease((function(e){if(n._zooming&amp;&amp;(i.zoom=t.number(a,c,e)),n._rotating&amp;&amp;(i.bearing=t.number(o,u,e)),n._pitching&amp;&amp;(i.pitch=t.number(s,f,e)),n._padding&amp;&amp;(i.interpolatePadding(l,h,e),d=i.centerPoint.add(p)),v)i.setLocationAtPoint(v,y);else{var g=i.zoomScale(i.zoom-a),m=c&gt;a?Math.min(2,_):Math.max(.5,_),w=Math.pow(m,1-e),T=i.unproject(x.add(b.mult(e*w)).mult(g));i.setLocationAtPoint(i.renderWorldCopies?T.wrap():T,d)}n._fireMoveEvents(r)}),(function(t){n._afterEase(r,t)}),e),this},r.prototype._prepareEase=function(e,r,n){void 0===n&amp;&amp;(n={}),this._moving=!0,r||n.moving||this.fire(new t.Event(&quot;movestart&quot;,e)),this._zooming&amp;&amp;!n.zooming&amp;&amp;this.fire(new t.Event(&quot;zoomstart&quot;,e)),this._rotating&amp;&amp;!n.rotating&amp;&amp;this.fire(new t.Event(&quot;rotatestart&quot;,e)),this._pitching&amp;&amp;!n.pitching&amp;&amp;this.fire(new t.Event(&quot;pitchstart&quot;,e))},r.prototype._fireMoveEvents=function(e){this.fire(new t.Event(&quot;move&quot;,e)),this._zooming&amp;&amp;this.fire(new t.Event(&quot;zoom&quot;,e)),this._rotating&amp;&amp;this.fire(new t.Event(&quot;rotate&quot;,e)),this._pitching&amp;&amp;this.fire(new t.Event(&quot;pitch&quot;,e))},r.prototype._afterEase=function(e,r){if(!this._easeId||!r||this._easeId!==r){delete this._easeId;var n=this._zooming,i=this._rotating,a=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&amp;&amp;this.fire(new t.Event(&quot;zoomend&quot;,e)),i&amp;&amp;this.fire(new t.Event(&quot;rotateend&quot;,e)),a&amp;&amp;this.fire(new t.Event(&quot;pitchend&quot;,e)),this.fire(new t.Event(&quot;moveend&quot;,e))}},r.prototype.flyTo=function(e,r){var n=this;if(!e.essential&amp;&amp;t.browser.prefersReducedMotion){var i=t.pick(e,[&quot;center&quot;,&quot;zoom&quot;,&quot;bearing&quot;,&quot;pitch&quot;,&quot;around&quot;]);return this.jumpTo(i,r)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var a=this.transform,o=this.getZoom(),s=this.getBearing(),l=this.getPitch(),c=this.getPadding(),u=&quot;zoom&quot;in e?t.clamp(+e.zoom,a.minZoom,a.maxZoom):o,f=&quot;bearing&quot;in e?this._normalizeBearing(e.bearing,s):s,h=&quot;pitch&quot;in e?+e.pitch:l,p=&quot;padding&quot;in e?e.padding:a.padding,d=a.zoomScale(u-o),g=t.Point.convert(e.offset),m=a.centerPoint.add(g),v=a.pointLocation(m),y=t.LngLat.convert(e.center||v);this._normalizeCenter(y);var x=a.project(v),b=a.project(y).sub(x),_=e.curve,w=Math.max(a.width,a.height),T=w/d,k=b.mag();if(&quot;minZoom&quot;in e){var M=t.clamp(Math.min(e.minZoom,o,u),a.minZoom,a.maxZoom),A=w/a.zoomScale(M-o);_=Math.sqrt(A/k*2)}var S=_*_;function E(t){var e=(T*T-w*w+(t?-1:1)*S*S*k*k)/(2*(t?T:w)*S*k);return Math.log(Math.sqrt(e*e+1)-e)}function C(t){return(Math.exp(t)-Math.exp(-t))/2}function L(t){return(Math.exp(t)+Math.exp(-t))/2}var I=E(0),P=function(t){return L(I)/L(I+_*t)},z=function(t){return w*((L(I)*(C(e=I+_*t)/L(e))-C(I))/S)/k;var e},O=(E(1)-I)/_;if(Math.abs(k)&lt;1e-6||!isFinite(O)){if(Math.abs(w-T)&lt;1e-6)return this.easeTo(e,r);var D=T&lt;w?-1:1;O=Math.abs(Math.log(T/w))/_,z=function(){return 0},P=function(t){return Math.exp(D*_*t)}}return e.duration=&quot;duration&quot;in e?+e.duration:1e3*O/(&quot;screenSpeed&quot;in e?+e.screenSpeed/_:+e.speed),e.maxDuration&amp;&amp;e.duration&gt;e.maxDuration&amp;&amp;(e.duration=0),this._zooming=!0,this._rotating=s!==f,this._pitching=h!==l,this._padding=!a.isPaddingEqual(p),this._prepareEase(r,!1),this._ease((function(e){var i=e*O,d=1/P(i);a.zoom=1===e?u:o+a.scaleZoom(d),n._rotating&amp;&amp;(a.bearing=t.number(s,f,e)),n._pitching&amp;&amp;(a.pitch=t.number(l,h,e)),n._padding&amp;&amp;(a.interpolatePadding(c,p,e),m=a.centerPoint.add(g));var v=1===e?y:a.unproject(x.add(b.mult(z(i))).mult(d));a.setLocationAtPoint(a.renderWorldCopies?v.wrap():v,m),n._fireMoveEvents(r)}),(function(){return n._afterEase(r)}),e),this},r.prototype.isEasing=function(){return!!this._easeFrameId},r.prototype.stop=function(){return this._stop()},r.prototype._stop=function(t,e){if(this._easeFrameId&amp;&amp;(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,e)}if(!t){var n=this.handlers;n&amp;&amp;n.stop()}return this},r.prototype._ease=function(e,r,n){!1===n.animate||0===n.duration?(e(1),r()):(this._easeStart=t.browser.now(),this._easeOptions=n,this._onEaseFrame=e,this._onEaseEnd=r,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},r.prototype._renderFrameCallback=function(){var e=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e&lt;1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},r.prototype._normalizeBearing=function(e,r){e=t.wrap(e,-180,180);var n=Math.abs(e-r);return Math.abs(e-360-r)&lt;n&amp;&amp;(e-=360),Math.abs(e+360-r)&lt;n&amp;&amp;(e+=360),e},r.prototype._normalizeCenter=function(t){var e=this.transform;if(e.renderWorldCopies&amp;&amp;!e.lngRange){var r=t.lng-e.center.lng;t.lng+=r&gt;180?-360:r&lt;-180?360:0}},r}(t.Evented),vi=function(e){void 0===e&amp;&amp;(e={}),this.options=e,t.bindAll([&quot;_updateEditLink&quot;,&quot;_updateData&quot;,&quot;_updateCompact&quot;],this)};vi.prototype.getDefaultPosition=function(){return&quot;bottom-right&quot;},vi.prototype.onAdd=function(t){var e=this.options&amp;&amp;this.options.compact;return this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-attrib&quot;),this._innerContainer=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl-attrib-inner&quot;,this._container),e&amp;&amp;this._container.classList.add(&quot;mapboxgl-compact&quot;),this._updateAttributions(),this._updateEditLink(),this._map.on(&quot;styledata&quot;,this._updateData),this._map.on(&quot;sourcedata&quot;,this._updateData),this._map.on(&quot;moveend&quot;,this._updateEditLink),void 0===e&amp;&amp;(this._map.on(&quot;resize&quot;,this._updateCompact),this._updateCompact()),this._container},vi.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;styledata&quot;,this._updateData),this._map.off(&quot;sourcedata&quot;,this._updateData),this._map.off(&quot;moveend&quot;,this._updateEditLink),this._map.off(&quot;resize&quot;,this._updateCompact),this._map=void 0,this._attribHTML=void 0},vi.prototype._updateEditLink=function(){var e=this._editLink;e||(e=this._editLink=this._container.querySelector(&quot;.mapbox-improve-map&quot;));var r=[{key:&quot;owner&quot;,value:this.styleOwner},{key:&quot;id&quot;,value:this.styleId},{key:&quot;access_token&quot;,value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if(e){var n=r.reduce((function(t,e,n){return e.value&amp;&amp;(t+=e.key+&quot;=&quot;+e.value+(n&lt;r.length-1?&quot;&amp;&quot;:&quot;&quot;)),t}),&quot;?&quot;);e.href=t.config.FEEDBACK_URL+&quot;/&quot;+n+(this._map._hash?this._map._hash.getHashString(!0):&quot;&quot;),e.rel=&quot;noopener nofollow&quot;}},vi.prototype._updateData=function(t){!t||&quot;metadata&quot;!==t.sourceDataType&amp;&amp;&quot;style&quot;!==t.dataType||(this._updateAttributions(),this._updateEditLink())},vi.prototype._updateAttributions=function(){if(this._map.style){var t=[];if(this.options.customAttribution&amp;&amp;(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map((function(t){return&quot;string&quot;!=typeof t?&quot;&quot;:t}))):&quot;string&quot;==typeof this.options.customAttribution&amp;&amp;t.push(this.options.customAttribution)),this._map.style.stylesheet){var e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}var r=this._map.style.sourceCaches;for(var n in r){var i=r[n];if(i.used){var a=i.getSource();a.attribution&amp;&amp;t.indexOf(a.attribution)&lt;0&amp;&amp;t.push(a.attribution)}}t.sort((function(t,e){return t.length-e.length}));var o=(t=t.filter((function(e,r){for(var n=r+1;n&lt;t.length;n++)if(t[n].indexOf(e)&gt;=0)return!1;return!0}))).join(&quot; | &quot;);o!==this._attribHTML&amp;&amp;(this._attribHTML=o,t.length?(this._innerContainer.innerHTML=o,this._container.classList.remove(&quot;mapboxgl-attrib-empty&quot;)):this._container.classList.add(&quot;mapboxgl-attrib-empty&quot;),this._editLink=null)}},vi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth&lt;=640?this._container.classList.add(&quot;mapboxgl-compact&quot;):this._container.classList.remove(&quot;mapboxgl-compact&quot;)};var yi=function(){t.bindAll([&quot;_updateLogo&quot;],this),t.bindAll([&quot;_updateCompact&quot;],this)};yi.prototype.onAdd=function(t){this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl&quot;);var e=r.create(&quot;a&quot;,&quot;mapboxgl-ctrl-logo&quot;);return e.target=&quot;_blank&quot;,e.rel=&quot;noopener nofollow&quot;,e.href=&quot;https://www.mapbox.com/&quot;,e.setAttribute(&quot;aria-label&quot;,this._map._getUIString(&quot;LogoControl.Title&quot;)),e.setAttribute(&quot;rel&quot;,&quot;noopener nofollow&quot;),this._container.appendChild(e),this._container.style.display=&quot;none&quot;,this._map.on(&quot;sourcedata&quot;,this._updateLogo),this._updateLogo(),this._map.on(&quot;resize&quot;,this._updateCompact),this._updateCompact(),this._container},yi.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;sourcedata&quot;,this._updateLogo),this._map.off(&quot;resize&quot;,this._updateCompact)},yi.prototype.getDefaultPosition=function(){return&quot;bottom-left&quot;},yi.prototype._updateLogo=function(t){t&amp;&amp;&quot;metadata&quot;!==t.sourceDataType||(this._container.style.display=this._logoRequired()?&quot;block&quot;:&quot;none&quot;)},yi.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}},yi.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth&lt;250?e.classList.add(&quot;mapboxgl-compact&quot;):e.classList.remove(&quot;mapboxgl-compact&quot;)}};var xi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};xi.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},xi.prototype.remove=function(t){for(var e=this._currentlyRunning,r=0,n=e?this._queue.concat(e):this._queue;r&lt;n.length;r+=1){var i=n[r];if(i.id===t)return void(i.cancelled=!0)}},xi.prototype.run=function(t){void 0===t&amp;&amp;(t=0);var e=this._currentlyRunning=this._queue;this._queue=[];for(var r=0,n=e;r&lt;n.length;r+=1){var i=n[r];if(!i.cancelled&amp;&amp;(i.callback(t),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},xi.prototype.clear=function(){this._currentlyRunning&amp;&amp;(this._cleared=!0),this._queue=[]};var bi={&quot;FullscreenControl.Enter&quot;:&quot;Enter fullscreen&quot;,&quot;FullscreenControl.Exit&quot;:&quot;Exit fullscreen&quot;,&quot;GeolocateControl.FindMyLocation&quot;:&quot;Find my location&quot;,&quot;GeolocateControl.LocationNotAvailable&quot;:&quot;Location not available&quot;,&quot;LogoControl.Title&quot;:&quot;Mapbox logo&quot;,&quot;NavigationControl.ResetBearing&quot;:&quot;Reset bearing to north&quot;,&quot;NavigationControl.ZoomIn&quot;:&quot;Zoom in&quot;,&quot;NavigationControl.ZoomOut&quot;:&quot;Zoom out&quot;,&quot;ScaleControl.Feet&quot;:&quot;ft&quot;,&quot;ScaleControl.Meters&quot;:&quot;m&quot;,&quot;ScaleControl.Kilometers&quot;:&quot;km&quot;,&quot;ScaleControl.Miles&quot;:&quot;mi&quot;,&quot;ScaleControl.NauticalMiles&quot;:&quot;nm&quot;},_i=t.window.HTMLImageElement,wi=t.window.HTMLElement,Ti=t.window.ImageBitmap,ki={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:&quot;sans-serif&quot;,transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Mi=function(n){function i(e){var r=this;if(null!=(e=t.extend({},ki,e)).minZoom&amp;&amp;null!=e.maxZoom&amp;&amp;e.minZoom&gt;e.maxZoom)throw new Error(&quot;maxZoom must be greater than or equal to minZoom&quot;);if(null!=e.minPitch&amp;&amp;null!=e.maxPitch&amp;&amp;e.minPitch&gt;e.maxPitch)throw new Error(&quot;maxPitch must be greater than or equal to minPitch&quot;);if(null!=e.minPitch&amp;&amp;e.minPitch&lt;0)throw new Error(&quot;minPitch must be greater than or equal to 0&quot;);if(null!=e.maxPitch&amp;&amp;e.maxPitch&gt;60)throw new Error(&quot;maxPitch must be less than or equal to 60&quot;);var i=new wn(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies);if(n.call(this,i,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new xi,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},bi,e.locale),this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken),&quot;string&quot;==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error(&quot;Container '&quot;+e.container+&quot;' not found.&quot;)}else{if(!(e.container instanceof wi))throw new Error(&quot;Invalid type: 'container' must be a String or HTMLElement.&quot;);this._container=e.container}if(e.maxBounds&amp;&amp;this.setMaxBounds(e.maxBounds),t.bindAll([&quot;_onWindowOnline&quot;,&quot;_onWindowResize&quot;,&quot;_contextLost&quot;,&quot;_contextRestored&quot;],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error(&quot;Failed to initialize WebGL.&quot;);this.on(&quot;move&quot;,(function(){return r._update(!1)})),this.on(&quot;moveend&quot;,(function(){return r._update(!1)})),this.on(&quot;zoom&quot;,(function(){return r._update(!0)})),void 0!==t.window&amp;&amp;(t.window.addEventListener(&quot;online&quot;,this._onWindowOnline,!1),t.window.addEventListener(&quot;resize&quot;,this._onWindowResize,!1)),this.handlers=new gi(this,e),this._hash=e.hash&amp;&amp;new kn(&quot;string&quot;==typeof e.hash&amp;&amp;e.hash||void 0).addTo(this),this._hash&amp;&amp;this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&amp;&amp;(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&amp;&amp;this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&amp;&amp;this.addControl(new vi({customAttribution:e.customAttribution})),this.addControl(new yi,e.logoPosition),this.on(&quot;style.load&quot;,(function(){r.transform.unmodified&amp;&amp;r.jumpTo(r.style.stylesheet)})),this.on(&quot;data&quot;,(function(e){r._update(&quot;style&quot;===e.dataType),r.fire(new t.Event(e.dataType+&quot;data&quot;,e))})),this.on(&quot;dataloading&quot;,(function(e){r.fire(new t.Event(e.dataType+&quot;dataloading&quot;,e))}))}n&amp;&amp;(i.__proto__=n),(i.prototype=Object.create(n&amp;&amp;n.prototype)).constructor=i;var a={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return i.prototype._getMapId=function(){return this._mapId},i.prototype.addControl=function(e,r){if(void 0===r&amp;&amp;e.getDefaultPosition&amp;&amp;(r=e.getDefaultPosition()),void 0===r&amp;&amp;(r=&quot;top-right&quot;),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.&quot;)));var n=e.onAdd(this);this._controls.push(e);var i=this._controlPositions[r];return-1!==r.indexOf(&quot;bottom&quot;)?i.insertBefore(n,i.firstChild):i.appendChild(n),this},i.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.&quot;)));var r=this._controls.indexOf(e);return r&gt;-1&amp;&amp;this._controls.splice(r,1),e.onRemove(this),this},i.prototype.resize=function(e){var r=this._containerDimensions(),n=r[0],i=r[1];this._resizeCanvas(n,i),this.transform.resize(n,i),this.painter.resize(n,i);var a=!this._moving;return a&amp;&amp;(this.stop(),this.fire(new t.Event(&quot;movestart&quot;,e)).fire(new t.Event(&quot;move&quot;,e))),this.fire(new t.Event(&quot;resize&quot;,e)),a&amp;&amp;this.fire(new t.Event(&quot;moveend&quot;,e)),this},i.prototype.getBounds=function(){return this.transform.getBounds()},i.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},i.prototype.setMaxBounds=function(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()},i.prototype.setMinZoom=function(t){if((t=null==t?-2:t)&gt;=-2&amp;&amp;t&lt;=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()&lt;t&amp;&amp;this.setZoom(t),this;throw new Error(&quot;minZoom must be between -2 and the current maxZoom, inclusive&quot;)},i.prototype.getMinZoom=function(){return this.transform.minZoom},i.prototype.setMaxZoom=function(t){if((t=null==t?22:t)&gt;=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()&gt;t&amp;&amp;this.setZoom(t),this;throw new Error(&quot;maxZoom must be greater than the current minZoom&quot;)},i.prototype.getMaxZoom=function(){return this.transform.maxZoom},i.prototype.setMinPitch=function(t){if((t=null==t?0:t)&lt;0)throw new Error(&quot;minPitch must be greater than or equal to 0&quot;);if(t&gt;=0&amp;&amp;t&lt;=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()&lt;t&amp;&amp;this.setPitch(t),this;throw new Error(&quot;minPitch must be between 0 and the current maxPitch, inclusive&quot;)},i.prototype.getMinPitch=function(){return this.transform.minPitch},i.prototype.setMaxPitch=function(t){if((t=null==t?60:t)&gt;60)throw new Error(&quot;maxPitch must be less than or equal to 60&quot;);if(t&gt;=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()&gt;t&amp;&amp;this.setPitch(t),this;throw new Error(&quot;maxPitch must be greater than the current minPitch&quot;)},i.prototype.getMaxPitch=function(){return this.transform.maxPitch},i.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},i.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},i.prototype.project=function(e){return this.transform.locationPoint(t.LngLat.convert(e))},i.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},i.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},i.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},i.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},i.prototype._createDelegatedListener=function(t,e,r){var n,i=this;if(&quot;mouseenter&quot;===t||&quot;mouseover&quot;===t){var a=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){var o=i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[];o.length?a||(a=!0,r.call(i,new zn(t,i,n.originalEvent,{features:o}))):a=!1},mouseout:function(){a=!1}}}}if(&quot;mouseleave&quot;===t||&quot;mouseout&quot;===t){var o=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){(i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[]).length?o=!0:o&amp;&amp;(o=!1,r.call(i,new zn(t,i,n.originalEvent)))},mouseout:function(e){o&amp;&amp;(o=!1,r.call(i,new zn(t,i,e.originalEvent)))}}}}return{layer:e,listener:r,delegates:(n={},n[t]=function(t){var n=i.getLayer(e)?i.queryRenderedFeatures(t.point,{layers:[e]}):[];n.length&amp;&amp;(t.features=n,r.call(i,t),delete t.features)},n)}},i.prototype.on=function(t,e,r){if(void 0===r)return n.prototype.on.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(i),i.delegates)this.on(a,i.delegates[a]);return this},i.prototype.once=function(t,e,r){if(void 0===r)return n.prototype.once.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in i.delegates)this.once(a,i.delegates[a]);return this},i.prototype.off=function(t,e,r){var i=this;return void 0===r?n.prototype.off.call(this,t,e):(this._delegatedListeners&amp;&amp;this._delegatedListeners[t]&amp;&amp;function(n){for(var a=n[t],o=0;o&lt;a.length;o++){var s=a[o];if(s.layer===e&amp;&amp;s.listener===r){for(var l in s.delegates)i.off(l,s.delegates[l]);return a.splice(o,1),i}}}(this._delegatedListeners),this)},i.prototype.queryRenderedFeatures=function(e,r){if(!this.style)return[];var n;if(void 0!==r||void 0===e||e instanceof t.Point||Array.isArray(e)||(r=e,e=void 0),r=r||{},(e=e||[[0,0],[this.transform.width,this.transform.height]])instanceof t.Point||&quot;number&quot;==typeof e[0])n=[t.Point.convert(e)];else{var i=t.Point.convert(e[0]),a=t.Point.convert(e[1]);n=[i,new t.Point(a.x,i.y),a,new t.Point(i.x,a.y),i]}return this.style.queryRenderedFeatures(n,r,this.transform)},i.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},i.prototype.setStyle=function(e,r){return!1!==(r=t.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},r)).diff&amp;&amp;r.localIdeographFontFamily===this._localIdeographFontFamily&amp;&amp;this.style&amp;&amp;e?(this._diffStyle(e,r),this):(this._localIdeographFontFamily=r.localIdeographFontFamily,this._updateStyle(e,r))},i.prototype._getUIString=function(t){var e=this._locale[t];if(null==e)throw new Error(&quot;Missing UI string '&quot;+t+&quot;'&quot;);return e},i.prototype._updateStyle=function(t,e){return this.style&amp;&amp;(this.style.setEventedParent(null),this.style._remove()),t?(this.style=new qe(this,e||{}),this.style.setEventedParent(this,{style:this.style}),&quot;string&quot;==typeof t?this.style.loadURL(t):this.style.loadJSON(t),this):(delete this.style,this)},i.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new qe(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},i.prototype._diffStyle=function(e,r){var n=this;if(&quot;string&quot;==typeof e){var i=this._requestManager.normalizeStyleURL(e),a=this._requestManager.transformRequest(i,t.ResourceType.Style);t.getJSON(a,(function(e,i){e?n.fire(new t.ErrorEvent(e)):i&amp;&amp;n._updateDiff(i,r)}))}else&quot;object&quot;==typeof e&amp;&amp;this._updateDiff(e,r)},i.prototype._updateDiff=function(e,r){try{this.style.setState(e)&amp;&amp;this._update(!0)}catch(n){t.warnOnce(&quot;Unable to perform style diff: &quot;+(n.message||n.error||n)+&quot;.  Rebuilding the style from scratch.&quot;),this._updateStyle(e,r)}},i.prototype.getStyle=function(){if(this.style)return this.style.serialize()},i.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():t.warnOnce(&quot;There is no style added to the map.&quot;)},i.prototype.addSource=function(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)},i.prototype.isSourceLoaded=function(e){var r=this.style&amp;&amp;this.style.sourceCaches[e];if(void 0!==r)return r.loaded();this.fire(new t.ErrorEvent(new Error(&quot;There is no source with ID '&quot;+e+&quot;'&quot;)))},i.prototype.areTilesLoaded=function(){var t=this.style&amp;&amp;this.style.sourceCaches;for(var e in t){var r=t[e]._tiles;for(var n in r){var i=r[n];if(&quot;loaded&quot;!==i.state&amp;&amp;&quot;errored&quot;!==i.state)return!1}}return!0},i.prototype.addSourceType=function(t,e,r){return this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,r)},i.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0)},i.prototype.getSource=function(t){return this.style.getSource(t)},i.prototype.addImage=function(e,r,n){void 0===n&amp;&amp;(n={});var i=n.pixelRatio;void 0===i&amp;&amp;(i=1);var a=n.sdf;void 0===a&amp;&amp;(a=!1);var o=n.stretchX,s=n.stretchY,l=n.content;if(this._lazyInitEmptyStyle(),r instanceof _i||Ti&amp;&amp;r instanceof Ti){var c=t.browser.getImageData(r);this.style.addImage(e,{data:new t.RGBAImage({width:c.width,height:c.height},c.data),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:0})}else{if(void 0===r.width||void 0===r.height)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`&quot;)));var u=r;this.style.addImage(e,{data:new t.RGBAImage({width:r.width,height:r.height},new Uint8Array(r.data)),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:0,userImage:u}),u.onAdd&amp;&amp;u.onAdd(this,e)}},i.prototype.updateImage=function(e,r){var n=this.style.getImage(e);if(!n)return this.fire(new t.ErrorEvent(new Error(&quot;The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.&quot;)));var i=r instanceof _i||Ti&amp;&amp;r instanceof Ti?t.browser.getImageData(r):r,a=i.width,o=i.height,s=i.data;return void 0===a||void 0===o?this.fire(new t.ErrorEvent(new Error(&quot;Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`&quot;))):a!==n.data.width||o!==n.data.height?this.fire(new t.ErrorEvent(new Error(&quot;The width and height of the updated image must be that same as the previous version of the image&quot;))):(n.data.replace(s,!(r instanceof _i||Ti&amp;&amp;r instanceof Ti)),void this.style.updateImage(e,n))},i.prototype.hasImage=function(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error(&quot;Missing required image id&quot;))),!1)},i.prototype.removeImage=function(t){this.style.removeImage(t)},i.prototype.loadImage=function(e,r){t.getImage(this._requestManager.transformRequest(e,t.ResourceType.Image),r)},i.prototype.listImages=function(){return this.style.listImages()},i.prototype.addLayer=function(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)},i.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0)},i.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0)},i.prototype.getLayer=function(t){return this.style.getLayer(t)},i.prototype.setLayerZoomRange=function(t,e,r){return this.style.setLayerZoomRange(t,e,r),this._update(!0)},i.prototype.setFilter=function(t,e,r){return void 0===r&amp;&amp;(r={}),this.style.setFilter(t,e,r),this._update(!0)},i.prototype.getFilter=function(t){return this.style.getFilter(t)},i.prototype.setPaintProperty=function(t,e,r,n){return void 0===n&amp;&amp;(n={}),this.style.setPaintProperty(t,e,r,n),this._update(!0)},i.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},i.prototype.setLayoutProperty=function(t,e,r,n){return void 0===n&amp;&amp;(n={}),this.style.setLayoutProperty(t,e,r,n),this._update(!0)},i.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},i.prototype.setLight=function(t,e){return void 0===e&amp;&amp;(e={}),this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)},i.prototype.getLight=function(){return this.style.getLight()},i.prototype.setFeatureState=function(t,e){return this.style.setFeatureState(t,e),this._update()},i.prototype.removeFeatureState=function(t,e){return this.style.removeFeatureState(t,e),this._update()},i.prototype.getFeatureState=function(t){return this.style.getFeatureState(t)},i.prototype.getContainer=function(){return this._container},i.prototype.getCanvasContainer=function(){return this._canvasContainer},i.prototype.getCanvas=function(){return this._canvas},i.prototype._containerDimensions=function(){var t=0,e=0;return this._container&amp;&amp;(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]},i.prototype._detectMissingCSS=function(){&quot;rgb(250, 128, 114)&quot;!==t.window.getComputedStyle(this._missingCSSCanary).getPropertyValue(&quot;background-color&quot;)&amp;&amp;t.warnOnce(&quot;This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.&quot;)},i.prototype._setupContainer=function(){var t=this._container;t.classList.add(&quot;mapboxgl-map&quot;),(this._missingCSSCanary=r.create(&quot;div&quot;,&quot;mapboxgl-canary&quot;,t)).style.visibility=&quot;hidden&quot;,this._detectMissingCSS();var e=this._canvasContainer=r.create(&quot;div&quot;,&quot;mapboxgl-canvas-container&quot;,t);this._interactive&amp;&amp;e.classList.add(&quot;mapboxgl-interactive&quot;),this._canvas=r.create(&quot;canvas&quot;,&quot;mapboxgl-canvas&quot;,e),this._canvas.addEventListener(&quot;webglcontextlost&quot;,this._contextLost,!1),this._canvas.addEventListener(&quot;webglcontextrestored&quot;,this._contextRestored,!1),this._canvas.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),this._canvas.setAttribute(&quot;aria-label&quot;,&quot;Map&quot;);var n=this._containerDimensions();this._resizeCanvas(n[0],n[1]);var i=this._controlContainer=r.create(&quot;div&quot;,&quot;mapboxgl-control-container&quot;,t),a=this._controlPositions={};[&quot;top-left&quot;,&quot;top-right&quot;,&quot;bottom-left&quot;,&quot;bottom-right&quot;].forEach((function(t){a[t]=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl-&quot;+t,i)}))},i.prototype._resizeCanvas=function(e,r){var n=t.browser.devicePixelRatio||1;this._canvas.width=n*e,this._canvas.height=n*r,this._canvas.style.width=e+&quot;px&quot;,this._canvas.style.height=r+&quot;px&quot;},i.prototype._setupPainter=function(){var r=t.extend({},e.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),n=this._canvas.getContext(&quot;webgl&quot;,r)||this._canvas.getContext(&quot;experimental-webgl&quot;,r);n?(this.painter=new yn(n,this.transform),t.webpSupported.testSupport(n)):this.fire(new t.ErrorEvent(new Error(&quot;Failed to initialize WebGL&quot;)))},i.prototype._contextLost=function(e){e.preventDefault(),this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this.fire(new t.Event(&quot;webglcontextlost&quot;,{originalEvent:e}))},i.prototype._contextRestored=function(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event(&quot;webglcontextrestored&quot;,{originalEvent:e}))},i.prototype.loaded=function(){return!this._styleDirty&amp;&amp;!this._sourcesDirty&amp;&amp;!!this.style&amp;&amp;this.style.loaded()},i.prototype._update=function(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this},i.prototype._requestRenderFrame=function(t){return this._update(),this._renderTaskQueue.add(t)},i.prototype._cancelRenderFrame=function(t){this._renderTaskQueue.remove(t)},i.prototype._render=function(e){var r,n=this,i=0,a=this.painter.context.extTimerQuery;if(this.listens(&quot;gpu-timing-frame&quot;)&amp;&amp;(r=a.createQueryEXT(),a.beginQueryEXT(a.TIME_ELAPSED_EXT,r),i=t.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),!this._removed){var o=!1;if(this.style&amp;&amp;this._styleDirty){this._styleDirty=!1;var s=this.transform.zoom,l=t.browser.now();this.style.zoomHistory.update(s,l);var c=new t.EvaluationParameters(s,{now:l,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),u=c.crossFadingFactor();1===u&amp;&amp;u===this._crossFadingFactor||(o=!0,this._crossFadingFactor=u),this.style.update(c)}if(this.style&amp;&amp;this._sourcesDirty&amp;&amp;(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&amp;&amp;this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens(&quot;gpu-timing-layer&quot;)}),this.fire(new t.Event(&quot;render&quot;)),this.loaded()&amp;&amp;!this._loaded&amp;&amp;(this._loaded=!0,this.fire(new t.Event(&quot;load&quot;))),this.style&amp;&amp;(this.style.hasTransitions()||o)&amp;&amp;(this._styleDirty=!0),this.style&amp;&amp;!this._placementDirty&amp;&amp;this.style._releaseSymbolFadeTiles(),this.listens(&quot;gpu-timing-frame&quot;)){var f=t.browser.now()-i;a.endQueryEXT(a.TIME_ELAPSED_EXT,r),setTimeout((function(){var e=a.getQueryObjectEXT(r,a.QUERY_RESULT_EXT)/1e6;a.deleteQueryEXT(r),n.fire(new t.Event(&quot;gpu-timing-frame&quot;,{cpuTime:f,gpuTime:e}))}),50)}if(this.listens(&quot;gpu-timing-layer&quot;)){var h=this.painter.collectGpuTimers();setTimeout((function(){var e=n.painter.queryGpuTimers(h);n.fire(new t.Event(&quot;gpu-timing-layer&quot;,{layerTimes:e}))}),50)}return this._sourcesDirty||this._styleDirty||this._placementDirty||this._repaint?this.triggerRepaint():!this.isMoving()&amp;&amp;this.loaded()&amp;&amp;(this._fullyLoaded||(this._fullyLoaded=!0),this.fire(new t.Event(&quot;idle&quot;))),this}},i.prototype.remove=function(){this._hash&amp;&amp;this._hash.remove();for(var e=0,r=this._controls;e&lt;r.length;e+=1)r[e].onRemove(this);this._controls=[],this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),void 0!==t.window&amp;&amp;(t.window.removeEventListener(&quot;resize&quot;,this._onWindowResize,!1),t.window.removeEventListener(&quot;online&quot;,this._onWindowOnline,!1));var n=this.painter.context.gl.getExtension(&quot;WEBGL_lose_context&quot;);n&amp;&amp;n.loseContext(),Ai(this._canvasContainer),Ai(this._controlContainer),Ai(this._missingCSSCanary),this._container.classList.remove(&quot;mapboxgl-map&quot;),this._removed=!0,this.fire(new t.Event(&quot;remove&quot;))},i.prototype.triggerRepaint=function(){var e=this;this.style&amp;&amp;!this._frame&amp;&amp;(this._frame=t.browser.frame((function(t){e._frame=null,e._render(t)})))},i.prototype._onWindowOnline=function(){this._update()},i.prototype._onWindowResize=function(t){this._trackResize&amp;&amp;this.resize({originalEvent:t})._update()},a.showTileBoundaries.get=function(){return!!this._showTileBoundaries},a.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&amp;&amp;(this._showTileBoundaries=t,this._update())},a.showPadding.get=function(){return!!this._showPadding},a.showPadding.set=function(t){this._showPadding!==t&amp;&amp;(this._showPadding=t,this._update())},a.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},a.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&amp;&amp;(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())},a.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},a.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&amp;&amp;(this._showOverdrawInspector=t,this._update())},a.repaint.get=function(){return!!this._repaint},a.repaint.set=function(t){this._repaint!==t&amp;&amp;(this._repaint=t,this.triggerRepaint())},a.vertices.get=function(){return!!this._vertices},a.vertices.set=function(t){this._vertices=t,this._update()},i.prototype._setCacheLimits=function(e,r){t.setCacheLimits(e,r)},a.version.get=function(){return t.version},Object.defineProperties(i.prototype,a),i}(mi);function Ai(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)}var Si={showCompass:!0,showZoom:!0,visualizePitch:!1},Ei=function(e){var n=this;this.options=t.extend({},Si,e),this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),this._container.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault()})),this.options.showZoom&amp;&amp;(t.bindAll([&quot;_setButtonTitle&quot;,&quot;_updateZoomButtons&quot;],this),this._zoomInButton=this._createButton(&quot;mapboxgl-ctrl-zoom-in&quot;,(function(t){return n._map.zoomIn({},{originalEvent:t})})),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._zoomInButton).setAttribute(&quot;aria-hidden&quot;,!0),this._zoomOutButton=this._createButton(&quot;mapboxgl-ctrl-zoom-out&quot;,(function(t){return n._map.zoomOut({},{originalEvent:t})})),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._zoomOutButton).setAttribute(&quot;aria-hidden&quot;,!0)),this.options.showCompass&amp;&amp;(t.bindAll([&quot;_rotateCompassArrow&quot;],this),this._compass=this._createButton(&quot;mapboxgl-ctrl-compass&quot;,(function(t){n.options.visualizePitch?n._map.resetNorthPitch({},{originalEvent:t}):n._map.resetNorth({},{originalEvent:t})})),this._compassIcon=r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._compass),this._compassIcon.setAttribute(&quot;aria-hidden&quot;,!0))};Ei.prototype._updateZoomButtons=function(){var t=this._map.getZoom();this._zoomInButton.disabled=t===this._map.getMaxZoom(),this._zoomOutButton.disabled=t===this._map.getMinZoom()},Ei.prototype._rotateCompassArrow=function(){var t=this.options.visualizePitch?&quot;scale(&quot;+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+&quot;) rotateX(&quot;+this._map.transform.pitch+&quot;deg) rotateZ(&quot;+this._map.transform.angle*(180/Math.PI)+&quot;deg)&quot;:&quot;rotate(&quot;+this._map.transform.angle*(180/Math.PI)+&quot;deg)&quot;;this._compassIcon.style.transform=t},Ei.prototype.onAdd=function(t){return this._map=t,this.options.showZoom&amp;&amp;(this._setButtonTitle(this._zoomInButton,&quot;ZoomIn&quot;),this._setButtonTitle(this._zoomOutButton,&quot;ZoomOut&quot;),this._map.on(&quot;zoom&quot;,this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&amp;&amp;(this._setButtonTitle(this._compass,&quot;ResetBearing&quot;),this.options.visualizePitch&amp;&amp;this._map.on(&quot;pitch&quot;,this._rotateCompassArrow),this._map.on(&quot;rotate&quot;,this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Ci(this._map,this._compass,this.options.visualizePitch)),this._container},Ei.prototype.onRemove=function(){r.remove(this._container),this.options.showZoom&amp;&amp;this._map.off(&quot;zoom&quot;,this._updateZoomButtons),this.options.showCompass&amp;&amp;(this.options.visualizePitch&amp;&amp;this._map.off(&quot;pitch&quot;,this._rotateCompassArrow),this._map.off(&quot;rotate&quot;,this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map},Ei.prototype._createButton=function(t,e){var n=r.create(&quot;button&quot;,t,this._container);return n.type=&quot;button&quot;,n.addEventListener(&quot;click&quot;,e),n},Ei.prototype._setButtonTitle=function(t,e){var r=this._map._getUIString(&quot;NavigationControl.&quot;+e);t.title=r,t.setAttribute(&quot;aria-label&quot;,r)};var Ci=function(e,n,i){void 0===i&amp;&amp;(i=!1),this._clickTolerance=10,this.element=n,this.mouseRotate=new Gn({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,i&amp;&amp;(this.mousePitch=new Yn({clickTolerance:e.dragRotate._mousePitch._clickTolerance})),t.bindAll([&quot;mousedown&quot;,&quot;mousemove&quot;,&quot;mouseup&quot;,&quot;touchstart&quot;,&quot;touchmove&quot;,&quot;touchend&quot;,&quot;reset&quot;],this),r.addEventListener(n,&quot;mousedown&quot;,this.mousedown),r.addEventListener(n,&quot;touchstart&quot;,this.touchstart,{passive:!1}),r.addEventListener(n,&quot;touchmove&quot;,this.touchmove),r.addEventListener(n,&quot;touchend&quot;,this.touchend),r.addEventListener(n,&quot;touchcancel&quot;,this.reset)};function Li(e,r,n){if(e=new t.LngLat(e.lng,e.lat),r){var i=new t.LngLat(e.lng-360,e.lat),a=new t.LngLat(e.lng+360,e.lat),o=n.locationPoint(e).distSqr(r);n.locationPoint(i).distSqr(r)&lt;o?e=i:n.locationPoint(a).distSqr(r)&lt;o&amp;&amp;(e=a)}for(;Math.abs(e.lng-n.center.lng)&gt;180;){var s=n.locationPoint(e);if(s.x&gt;=0&amp;&amp;s.y&gt;=0&amp;&amp;s.x&lt;=n.width&amp;&amp;s.y&lt;=n.height)break;e.lng&gt;n.center.lng?e.lng-=360:e.lng+=360}return e}Ci.prototype.down=function(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&amp;&amp;this.mousePitch.mousedown(t,e),r.disableDrag()},Ci.prototype.move=function(t,e){var r=this.map,n=this.mouseRotate.mousemoveWindow(t,e);if(n&amp;&amp;n.bearingDelta&amp;&amp;r.setBearing(r.getBearing()+n.bearingDelta),this.mousePitch){var i=this.mousePitch.mousemoveWindow(t,e);i&amp;&amp;i.pitchDelta&amp;&amp;r.setPitch(r.getPitch()+i.pitchDelta)}},Ci.prototype.off=function(){var t=this.element;r.removeEventListener(t,&quot;mousedown&quot;,this.mousedown),r.removeEventListener(t,&quot;touchstart&quot;,this.touchstart,{passive:!1}),r.removeEventListener(t,&quot;touchmove&quot;,this.touchmove),r.removeEventListener(t,&quot;touchend&quot;,this.touchend),r.removeEventListener(t,&quot;touchcancel&quot;,this.reset),this.offTemp()},Ci.prototype.offTemp=function(){r.enableDrag(),r.removeEventListener(t.window,&quot;mousemove&quot;,this.mousemove),r.removeEventListener(t.window,&quot;mouseup&quot;,this.mouseup)},Ci.prototype.mousedown=function(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:function(){return e.preventDefault()}}),r.mousePos(this.element,e)),r.addEventListener(t.window,&quot;mousemove&quot;,this.mousemove),r.addEventListener(t.window,&quot;mouseup&quot;,this.mouseup)},Ci.prototype.mousemove=function(t){this.move(t,r.mousePos(this.element,t))},Ci.prototype.mouseup=function(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&amp;&amp;this.mousePitch.mouseupWindow(t),this.offTemp()},Ci.prototype.touchstart=function(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.down({type:&quot;mousedown&quot;,button:0,ctrlKey:!0,preventDefault:function(){return t.preventDefault()}},this._startPos))},Ci.prototype.touchmove=function(t){1!==t.targetTouches.length?this.reset():(this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:function(){return t.preventDefault()}},this._lastPos))},Ci.prototype.touchend=function(t){0===t.targetTouches.length&amp;&amp;this._startPos&amp;&amp;this._lastPos&amp;&amp;this._startPos.dist(this._lastPos)&lt;this._clickTolerance&amp;&amp;this.element.click(),this.reset()},Ci.prototype.reset=function(){this.mouseRotate.reset(),this.mousePitch&amp;&amp;this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()};var Ii={center:&quot;translate(-50%,-50%)&quot;,top:&quot;translate(-50%,0)&quot;,&quot;top-left&quot;:&quot;translate(0,0)&quot;,&quot;top-right&quot;:&quot;translate(-100%,0)&quot;,bottom:&quot;translate(-50%,-100%)&quot;,&quot;bottom-left&quot;:&quot;translate(0,-100%)&quot;,&quot;bottom-right&quot;:&quot;translate(-100%,-100%)&quot;,left:&quot;translate(0,-50%)&quot;,right:&quot;translate(-100%,-50%)&quot;};function Pi(t,e,r){var n=t.classList;for(var i in Ii)n.remove(&quot;mapboxgl-&quot;+r+&quot;-anchor-&quot;+i);n.add(&quot;mapboxgl-&quot;+r+&quot;-anchor-&quot;+e)}var zi,Oi=function(e){function n(n,i){var a=this;if(e.call(this),(n instanceof t.window.HTMLElement||i)&amp;&amp;(n=t.extend({element:n},i)),t.bindAll([&quot;_update&quot;,&quot;_onMove&quot;,&quot;_onUp&quot;,&quot;_addDragHandler&quot;,&quot;_onMapClick&quot;,&quot;_onKeyPress&quot;],this),this._anchor=n&amp;&amp;n.anchor||&quot;center&quot;,this._color=n&amp;&amp;n.color||&quot;#3FB1CE&quot;,this._draggable=n&amp;&amp;n.draggable||!1,this._state=&quot;inactive&quot;,this._rotation=n&amp;&amp;n.rotation||0,this._rotationAlignment=n&amp;&amp;n.rotationAlignment||&quot;auto&quot;,this._pitchAlignment=n&amp;&amp;n.pitchAlignment&amp;&amp;&quot;auto&quot;!==n.pitchAlignment?n.pitchAlignment:this._rotationAlignment,n&amp;&amp;n.element)this._element=n.element,this._offset=t.Point.convert(n&amp;&amp;n.offset||[0,0]);else{this._defaultMarker=!0,this._element=r.create(&quot;div&quot;),this._element.setAttribute(&quot;aria-label&quot;,&quot;Map marker&quot;);var o=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);o.setAttributeNS(null,&quot;display&quot;,&quot;block&quot;),o.setAttributeNS(null,&quot;height&quot;,&quot;41px&quot;),o.setAttributeNS(null,&quot;width&quot;,&quot;27px&quot;),o.setAttributeNS(null,&quot;viewBox&quot;,&quot;0 0 27 41&quot;);var s=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);s.setAttributeNS(null,&quot;stroke&quot;,&quot;none&quot;),s.setAttributeNS(null,&quot;stroke-width&quot;,&quot;1&quot;),s.setAttributeNS(null,&quot;fill&quot;,&quot;none&quot;),s.setAttributeNS(null,&quot;fill-rule&quot;,&quot;evenodd&quot;);var l=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);l.setAttributeNS(null,&quot;fill-rule&quot;,&quot;nonzero&quot;);var c=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);c.setAttributeNS(null,&quot;transform&quot;,&quot;translate(3.0, 29.0)&quot;),c.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;);for(var u=0,f=[{rx:&quot;10.5&quot;,ry:&quot;5.25002273&quot;},{rx:&quot;10.5&quot;,ry:&quot;5.25002273&quot;},{rx:&quot;9.5&quot;,ry:&quot;4.77275007&quot;},{rx:&quot;8.5&quot;,ry:&quot;4.29549936&quot;},{rx:&quot;7.5&quot;,ry:&quot;3.81822308&quot;},{rx:&quot;6.5&quot;,ry:&quot;3.34094679&quot;},{rx:&quot;5.5&quot;,ry:&quot;2.86367051&quot;},{rx:&quot;4.5&quot;,ry:&quot;2.38636864&quot;}];u&lt;f.length;u+=1){var h=f[u],p=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;ellipse&quot;);p.setAttributeNS(null,&quot;opacity&quot;,&quot;0.04&quot;),p.setAttributeNS(null,&quot;cx&quot;,&quot;10.5&quot;),p.setAttributeNS(null,&quot;cy&quot;,&quot;5.80029008&quot;),p.setAttributeNS(null,&quot;rx&quot;,h.rx),p.setAttributeNS(null,&quot;ry&quot;,h.ry),c.appendChild(p)}var d=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);d.setAttributeNS(null,&quot;fill&quot;,this._color);var g=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;path&quot;);g.setAttributeNS(null,&quot;d&quot;,&quot;M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z&quot;),d.appendChild(g);var m=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);m.setAttributeNS(null,&quot;opacity&quot;,&quot;0.25&quot;),m.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;);var v=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;path&quot;);v.setAttributeNS(null,&quot;d&quot;,&quot;M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z&quot;),m.appendChild(v);var y=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);y.setAttributeNS(null,&quot;transform&quot;,&quot;translate(6.0, 7.0)&quot;),y.setAttributeNS(null,&quot;fill&quot;,&quot;#FFFFFF&quot;);var x=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);x.setAttributeNS(null,&quot;transform&quot;,&quot;translate(8.0, 8.0)&quot;);var b=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;circle&quot;);b.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;),b.setAttributeNS(null,&quot;opacity&quot;,&quot;0.25&quot;),b.setAttributeNS(null,&quot;cx&quot;,&quot;5.5&quot;),b.setAttributeNS(null,&quot;cy&quot;,&quot;5.5&quot;),b.setAttributeNS(null,&quot;r&quot;,&quot;5.4999962&quot;);var _=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;circle&quot;);_.setAttributeNS(null,&quot;fill&quot;,&quot;#FFFFFF&quot;),_.setAttributeNS(null,&quot;cx&quot;,&quot;5.5&quot;),_.setAttributeNS(null,&quot;cy&quot;,&quot;5.5&quot;),_.setAttributeNS(null,&quot;r&quot;,&quot;5.4999962&quot;),x.appendChild(b),x.appendChild(_),l.appendChild(c),l.appendChild(d),l.appendChild(m),l.appendChild(y),l.appendChild(x),o.appendChild(l),this._element.appendChild(o),this._offset=t.Point.convert(n&amp;&amp;n.offset||[0,-14])}this._element.classList.add(&quot;mapboxgl-marker&quot;),this._element.addEventListener(&quot;dragstart&quot;,(function(t){t.preventDefault()})),this._element.addEventListener(&quot;mousedown&quot;,(function(t){t.preventDefault()})),this._element.addEventListener(&quot;focus&quot;,(function(){var t=a._map.getContainer();t.scrollTop=0,t.scrollLeft=0})),Pi(this._element,this._anchor,&quot;marker&quot;),this._popup=null}return e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n,n.prototype.addTo=function(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on(&quot;move&quot;,this._update),t.on(&quot;moveend&quot;,this._update),this.setDraggable(this._draggable),this._update(),this._map.on(&quot;click&quot;,this._onMapClick),this},n.prototype.remove=function(){return this._map&amp;&amp;(this._map.off(&quot;click&quot;,this._onMapClick),this._map.off(&quot;move&quot;,this._update),this._map.off(&quot;moveend&quot;,this._update),this._map.off(&quot;mousedown&quot;,this._addDragHandler),this._map.off(&quot;touchstart&quot;,this._addDragHandler),this._map.off(&quot;mouseup&quot;,this._onUp),this._map.off(&quot;touchend&quot;,this._onUp),this._map.off(&quot;mousemove&quot;,this._onMove),this._map.off(&quot;touchmove&quot;,this._onMove),delete this._map),r.remove(this._element),this._popup&amp;&amp;this._popup.remove(),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._popup&amp;&amp;this._popup.setLngLat(this._lngLat),this._update(),this},n.prototype.getElement=function(){return this._element},n.prototype.setPopup=function(t){if(this._popup&amp;&amp;(this._popup.remove(),this._popup=null,this._element.removeEventListener(&quot;keypress&quot;,this._onKeyPress),this._originalTabIndex||this._element.removeAttribute(&quot;tabindex&quot;)),t){if(!(&quot;offset&quot;in t.options)){var e=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],&quot;top-left&quot;:[0,0],&quot;top-right&quot;:[0,0],bottom:[0,-38.1],&quot;bottom-left&quot;:[e,-1*(24.6+e)],&quot;bottom-right&quot;:[-e,-1*(24.6+e)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._lngLat&amp;&amp;this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute(&quot;tabindex&quot;),this._originalTabIndex||this._element.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),this._element.addEventListener(&quot;keypress&quot;,this._onKeyPress)}return this},n.prototype._onKeyPress=function(t){var e=t.code,r=t.charCode||t.keyCode;&quot;Space&quot;!==e&amp;&amp;&quot;Enter&quot;!==e&amp;&amp;32!==r&amp;&amp;13!==r||this.togglePopup()},n.prototype._onMapClick=function(t){var e=t.originalEvent.target,r=this._element;this._popup&amp;&amp;(e===r||r.contains(e))&amp;&amp;this.togglePopup()},n.prototype.getPopup=function(){return this._popup},n.prototype.togglePopup=function(){var t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this},n.prototype._update=function(t){if(this._map){this._map.transform.renderWorldCopies&amp;&amp;(this._lngLat=Li(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);var e=&quot;&quot;;&quot;viewport&quot;===this._rotationAlignment||&quot;auto&quot;===this._rotationAlignment?e=&quot;rotateZ(&quot;+this._rotation+&quot;deg)&quot;:&quot;map&quot;===this._rotationAlignment&amp;&amp;(e=&quot;rotateZ(&quot;+(this._rotation-this._map.getBearing())+&quot;deg)&quot;);var n=&quot;&quot;;&quot;viewport&quot;===this._pitchAlignment||&quot;auto&quot;===this._pitchAlignment?n=&quot;rotateX(0deg)&quot;:&quot;map&quot;===this._pitchAlignment&amp;&amp;(n=&quot;rotateX(&quot;+this._map.getPitch()+&quot;deg)&quot;),t&amp;&amp;&quot;moveend&quot;!==t.type||(this._pos=this._pos.round()),r.setTransform(this._element,Ii[this._anchor]+&quot; translate(&quot;+this._pos.x+&quot;px, &quot;+this._pos.y+&quot;px) &quot;+n+&quot; &quot;+e)}},n.prototype.getOffset=function(){return this._offset},n.prototype.setOffset=function(e){return this._offset=t.Point.convert(e),this._update(),this},n.prototype._onMove=function(e){this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents=&quot;none&quot;,&quot;pending&quot;===this._state&amp;&amp;(this._state=&quot;active&quot;,this.fire(new t.Event(&quot;dragstart&quot;))),this.fire(new t.Event(&quot;drag&quot;))},n.prototype._onUp=function(){this._element.style.pointerEvents=&quot;auto&quot;,this._positionDelta=null,this._map.off(&quot;mousemove&quot;,this._onMove),this._map.off(&quot;touchmove&quot;,this._onMove),&quot;active&quot;===this._state&amp;&amp;this.fire(new t.Event(&quot;dragend&quot;)),this._state=&quot;inactive&quot;},n.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&amp;&amp;(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._state=&quot;pending&quot;,this._map.on(&quot;mousemove&quot;,this._onMove),this._map.on(&quot;touchmove&quot;,this._onMove),this._map.once(&quot;mouseup&quot;,this._onUp),this._map.once(&quot;touchend&quot;,this._onUp))},n.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&amp;&amp;(t?(this._map.on(&quot;mousedown&quot;,this._addDragHandler),this._map.on(&quot;touchstart&quot;,this._addDragHandler)):(this._map.off(&quot;mousedown&quot;,this._addDragHandler),this._map.off(&quot;touchstart&quot;,this._addDragHandler))),this},n.prototype.isDraggable=function(){return this._draggable},n.prototype.setRotation=function(t){return this._rotation=t||0,this._update(),this},n.prototype.getRotation=function(){return this._rotation},n.prototype.setRotationAlignment=function(t){return this._rotationAlignment=t||&quot;auto&quot;,this._update(),this},n.prototype.getRotationAlignment=function(){return this._rotationAlignment},n.prototype.setPitchAlignment=function(t){return this._pitchAlignment=t&amp;&amp;&quot;auto&quot;!==t?t:this._rotationAlignment,this._update(),this},n.prototype.getPitchAlignment=function(){return this._pitchAlignment},n}(t.Evented),Di={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Ri=0,Fi=!1,Bi=function(e){function n(r){e.call(this),this.options=t.extend({},Di,r),t.bindAll([&quot;_onSuccess&quot;,&quot;_onError&quot;,&quot;_onZoom&quot;,&quot;_finish&quot;,&quot;_setupUI&quot;,&quot;_updateCamera&quot;,&quot;_updateMarker&quot;],this)}return e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n,n.prototype.onAdd=function(e){var n;return this._map=e,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),n=this._setupUI,void 0!==zi?n(zi):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:&quot;geolocation&quot;}).then((function(t){n(zi=&quot;denied&quot;!==t.state)})):n(zi=!!t.window.navigator.geolocation),this._container},n.prototype.onRemove=function(){void 0!==this._geolocationWatchID&amp;&amp;(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&amp;&amp;this._userLocationDotMarker&amp;&amp;this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&amp;&amp;this._accuracyCircleMarker&amp;&amp;this._accuracyCircleMarker.remove(),r.remove(this._container),this._map.off(&quot;zoom&quot;,this._onZoom),this._map=void 0,Ri=0,Fi=!1},n.prototype._isOutOfMapMaxBounds=function(t){var e=this._map.getMaxBounds(),r=t.coords;return e&amp;&amp;(r.longitude&lt;e.getWest()||r.longitude&gt;e.getEast()||r.latitude&lt;e.getSouth()||r.latitude&gt;e.getNorth())},n.prototype._setErrorState=function(){switch(this._watchState){case&quot;WAITING_ACTIVE&quot;:this._watchState=&quot;ACTIVE_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;);break;case&quot;ACTIVE_LOCK&quot;:this._watchState=&quot;ACTIVE_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;);break;case&quot;BACKGROUND&quot;:this._watchState=&quot;BACKGROUND_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;)}},n.prototype._onSuccess=function(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event(&quot;outofmaxbounds&quot;,e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case&quot;WAITING_ACTIVE&quot;:case&quot;ACTIVE_LOCK&quot;:case&quot;ACTIVE_ERROR&quot;:this._watchState=&quot;ACTIVE_LOCK&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;BACKGROUND&quot;:case&quot;BACKGROUND_ERROR&quot;:this._watchState=&quot;BACKGROUND&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;)}this.options.showUserLocation&amp;&amp;&quot;OFF&quot;!==this._watchState&amp;&amp;this._updateMarker(e),this.options.trackUserLocation&amp;&amp;&quot;ACTIVE_LOCK&quot;!==this._watchState||this._updateCamera(e),this.options.showUserLocation&amp;&amp;this._dotElement.classList.remove(&quot;mapboxgl-user-location-dot-stale&quot;),this.fire(new t.Event(&quot;geolocate&quot;,e)),this._finish()}},n.prototype._updateCamera=function(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude),n=e.coords.accuracy,i=this._map.getBearing(),a=t.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(r.toBounds(n),a,{geolocateSource:!0})},n.prototype._updateMarker=function(e){if(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&amp;&amp;this.options.showAccuracyCircle&amp;&amp;this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},n.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),r=this._map.unproject([1,t]),n=e.distanceTo(r),i=Math.ceil(2*this._accuracy/n);this._circleElement.style.width=i+&quot;px&quot;,this._circleElement.style.height=i+&quot;px&quot;},n.prototype._onZoom=function(){this.options.showUserLocation&amp;&amp;this.options.showAccuracyCircle&amp;&amp;this._updateCircleRadius()},n.prototype._onError=function(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState=&quot;OFF&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.disabled=!0;var r=this._map._getUIString(&quot;GeolocateControl.LocationNotAvailable&quot;);this._geolocateButton.title=r,this._geolocateButton.setAttribute(&quot;aria-label&quot;,r),void 0!==this._geolocationWatchID&amp;&amp;this._clearWatch()}else{if(3===e.code&amp;&amp;Fi)return;this._setErrorState()}&quot;OFF&quot;!==this._watchState&amp;&amp;this.options.showUserLocation&amp;&amp;this._dotElement.classList.add(&quot;mapboxgl-user-location-dot-stale&quot;),this.fire(new t.Event(&quot;error&quot;,e)),this._finish()}},n.prototype._finish=function(){this._timeoutId&amp;&amp;clearTimeout(this._timeoutId),this._timeoutId=void 0},n.prototype._setupUI=function(e){var n=this;if(this._container.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault()})),this._geolocateButton=r.create(&quot;button&quot;,&quot;mapboxgl-ctrl-geolocate&quot;,this._container),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._geolocateButton).setAttribute(&quot;aria-hidden&quot;,!0),this._geolocateButton.type=&quot;button&quot;,!1===e){t.warnOnce(&quot;Geolocation support is not available so the GeolocateControl will be disabled.&quot;);var i=this._map._getUIString(&quot;GeolocateControl.LocationNotAvailable&quot;);this._geolocateButton.disabled=!0,this._geolocateButton.title=i,this._geolocateButton.setAttribute(&quot;aria-label&quot;,i)}else{var a=this._map._getUIString(&quot;GeolocateControl.FindMyLocation&quot;);this._geolocateButton.title=a,this._geolocateButton.setAttribute(&quot;aria-label&quot;,a)}this.options.trackUserLocation&amp;&amp;(this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;false&quot;),this._watchState=&quot;OFF&quot;),this.options.showUserLocation&amp;&amp;(this._dotElement=r.create(&quot;div&quot;,&quot;mapboxgl-user-location-dot&quot;),this._userLocationDotMarker=new Oi(this._dotElement),this._circleElement=r.create(&quot;div&quot;,&quot;mapboxgl-user-location-accuracy-circle&quot;),this._accuracyCircleMarker=new Oi({element:this._circleElement,pitchAlignment:&quot;map&quot;}),this.options.trackUserLocation&amp;&amp;(this._watchState=&quot;OFF&quot;),this._map.on(&quot;zoom&quot;,this._onZoom)),this._geolocateButton.addEventListener(&quot;click&quot;,this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&amp;&amp;this._map.on(&quot;movestart&quot;,(function(e){e.geolocateSource||&quot;ACTIVE_LOCK&quot;!==n._watchState||e.originalEvent&amp;&amp;&quot;resize&quot;===e.originalEvent.type||(n._watchState=&quot;BACKGROUND&quot;,n._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;),n._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),n.fire(new t.Event(&quot;trackuserlocationend&quot;)))}))},n.prototype.trigger=function(){if(!this._setup)return t.warnOnce(&quot;Geolocate control triggered before added to a map&quot;),!1;if(this.options.trackUserLocation){switch(this._watchState){case&quot;OFF&quot;:this._watchState=&quot;WAITING_ACTIVE&quot;,this.fire(new t.Event(&quot;trackuserlocationstart&quot;));break;case&quot;WAITING_ACTIVE&quot;:case&quot;ACTIVE_LOCK&quot;:case&quot;ACTIVE_ERROR&quot;:case&quot;BACKGROUND_ERROR&quot;:Ri--,Fi=!1,this._watchState=&quot;OFF&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this.fire(new t.Event(&quot;trackuserlocationend&quot;));break;case&quot;BACKGROUND&quot;:this._watchState=&quot;ACTIVE_LOCK&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._lastKnownPosition&amp;&amp;this._updateCamera(this._lastKnownPosition),this.fire(new t.Event(&quot;trackuserlocationstart&quot;))}switch(this._watchState){case&quot;WAITING_ACTIVE&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;ACTIVE_LOCK&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;ACTIVE_ERROR&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;);break;case&quot;BACKGROUND&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;);break;case&quot;BACKGROUND_ERROR&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background-error&quot;)}if(&quot;OFF&quot;===this._watchState&amp;&amp;void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var e;this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;true&quot;),++Ri&gt;1?(e={maximumAge:6e5,timeout:0},Fi=!0):(e=this.options.positionOptions,Fi=!1),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},n.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;false&quot;),this.options.showUserLocation&amp;&amp;this._updateMarker(null)},n}(t.Evented),Ni={maxWidth:100,unit:&quot;metric&quot;},ji=function(e){this.options=t.extend({},Ni,e),t.bindAll([&quot;_onMove&quot;,&quot;setUnit&quot;],this)};function Ui(t,e,r){var n=r&amp;&amp;r.maxWidth||100,i=t._container.clientHeight/2,a=t.unproject([0,i]),o=t.unproject([n,i]),s=a.distanceTo(o);if(r&amp;&amp;&quot;imperial&quot;===r.unit){var l=3.2808*s;l&gt;5280?Vi(e,n,l/5280,t._getUIString(&quot;ScaleControl.Miles&quot;)):Vi(e,n,l,t._getUIString(&quot;ScaleControl.Feet&quot;))}else r&amp;&amp;&quot;nautical&quot;===r.unit?Vi(e,n,s/1852,t._getUIString(&quot;ScaleControl.NauticalMiles&quot;)):s&gt;=1e3?Vi(e,n,s/1e3,t._getUIString(&quot;ScaleControl.Kilometers&quot;)):Vi(e,n,s,t._getUIString(&quot;ScaleControl.Meters&quot;))}function Vi(t,e,r,n){var i,a,o,s=(i=r,(a=Math.pow(10,(&quot;&quot;+Math.floor(i)).length-1))*(o=(o=i/a)&gt;=10?10:o&gt;=5?5:o&gt;=3?3:o&gt;=2?2:o&gt;=1?1:function(t){var e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(o)));t.style.width=e*(s/r)+&quot;px&quot;,t.innerHTML=s+&quot;&amp;nbsp;&quot;+n}ji.prototype.getDefaultPosition=function(){return&quot;bottom-left&quot;},ji.prototype._onMove=function(){Ui(this._map,this._container,this.options)},ji.prototype.onAdd=function(t){return this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-scale&quot;,t.getContainer()),this._map.on(&quot;move&quot;,this._onMove),this._onMove(),this._container},ji.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;move&quot;,this._onMove),this._map=void 0},ji.prototype.setUnit=function(t){this.options.unit=t,Ui(this._map,this._container,this.options)};var qi=function(e){this._fullscreen=!1,e&amp;&amp;e.container&amp;&amp;(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce(&quot;Full screen control 'container' must be a DOM element.&quot;)),t.bindAll([&quot;_onClickFullscreen&quot;,&quot;_changeIcon&quot;],this),&quot;onfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;fullscreenchange&quot;:&quot;onmozfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;mozfullscreenchange&quot;:&quot;onwebkitfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;webkitfullscreenchange&quot;:&quot;onmsfullscreenchange&quot;in t.window.document&amp;&amp;(this._fullscreenchange=&quot;MSFullscreenChange&quot;)};qi.prototype.onAdd=function(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display=&quot;none&quot;,t.warnOnce(&quot;This device does not support fullscreen mode.&quot;)),this._controlContainer},qi.prototype.onRemove=function(){r.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},qi.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},qi.prototype._setupUI=function(){var e=this._fullscreenButton=r.create(&quot;button&quot;,&quot;mapboxgl-ctrl-fullscreen&quot;,this._controlContainer);r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,e).setAttribute(&quot;aria-hidden&quot;,!0),e.type=&quot;button&quot;,this._updateTitle(),this._fullscreenButton.addEventListener(&quot;click&quot;,this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},qi.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute(&quot;aria-label&quot;,t),this._fullscreenButton.title=t},qi.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?&quot;FullscreenControl.Exit&quot;:&quot;FullscreenControl.Enter&quot;)},qi.prototype._isFullscreen=function(){return this._fullscreen},qi.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._container!==this._fullscreen&amp;&amp;(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle(&quot;mapboxgl-ctrl-shrink&quot;),this._fullscreenButton.classList.toggle(&quot;mapboxgl-ctrl-fullscreen&quot;),this._updateTitle())},qi.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&amp;&amp;t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&amp;&amp;this._container.webkitRequestFullscreen()};var Hi={closeButton:!0,closeOnClick:!0,className:&quot;&quot;,maxWidth:&quot;240px&quot;},Gi=function(e){function n(r){e.call(this),this.options=t.extend(Object.create(Hi),r),t.bindAll([&quot;_update&quot;,&quot;_onClose&quot;,&quot;remove&quot;,&quot;_onMouseMove&quot;,&quot;_onMouseUp&quot;,&quot;_onDrag&quot;],this)}return e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n,n.prototype.addTo=function(e){return this._map&amp;&amp;this.remove(),this._map=e,this.options.closeOnClick&amp;&amp;this._map.on(&quot;click&quot;,this._onClose),this.options.closeOnMove&amp;&amp;this._map.on(&quot;move&quot;,this._onClose),this._map.on(&quot;remove&quot;,this.remove),this._update(),this._trackPointer?(this._map.on(&quot;mousemove&quot;,this._onMouseMove),this._map.on(&quot;mouseup&quot;,this._onMouseUp),this._container&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.add(&quot;mapboxgl-track-pointer&quot;)):this._map.on(&quot;move&quot;,this._update),this.fire(new t.Event(&quot;open&quot;)),this},n.prototype.isOpen=function(){return!!this._map},n.prototype.remove=function(){return this._content&amp;&amp;r.remove(this._content),this._container&amp;&amp;(r.remove(this._container),delete this._container),this._map&amp;&amp;(this._map.off(&quot;move&quot;,this._update),this._map.off(&quot;move&quot;,this._onClose),this._map.off(&quot;click&quot;,this._onClose),this._map.off(&quot;remove&quot;,this.remove),this._map.off(&quot;mousemove&quot;,this._onMouseMove),this._map.off(&quot;mouseup&quot;,this._onMouseUp),this._map.off(&quot;drag&quot;,this._onDrag),delete this._map),this.fire(new t.Event(&quot;close&quot;)),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&amp;&amp;(this._map.on(&quot;move&quot;,this._update),this._map.off(&quot;mousemove&quot;,this._onMouseMove),this._container&amp;&amp;this._container.classList.remove(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.remove(&quot;mapboxgl-track-pointer&quot;)),this},n.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&amp;&amp;(this._map.off(&quot;move&quot;,this._update),this._map.on(&quot;mousemove&quot;,this._onMouseMove),this._map.on(&quot;drag&quot;,this._onDrag),this._container&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.add(&quot;mapboxgl-track-pointer&quot;)),this},n.prototype.getElement=function(){return this._container},n.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},n.prototype.setHTML=function(e){var r,n=t.window.document.createDocumentFragment(),i=t.window.document.createElement(&quot;body&quot;);for(i.innerHTML=e;r=i.firstChild;)n.appendChild(r);return this.setDOMContent(n)},n.prototype.getMaxWidth=function(){return this._container&amp;&amp;this._container.style.maxWidth},n.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},n.prototype.setDOMContent=function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},n.prototype.addClassName=function(t){this._container&amp;&amp;this._container.classList.add(t)},n.prototype.removeClassName=function(t){this._container&amp;&amp;this._container.classList.remove(t)},n.prototype.toggleClassName=function(t){if(this._container)return this._container.classList.toggle(t)},n.prototype._createContent=function(){this._content&amp;&amp;r.remove(this._content),this._content=r.create(&quot;div&quot;,&quot;mapboxgl-popup-content&quot;,this._container),this.options.closeButton&amp;&amp;(this._closeButton=r.create(&quot;button&quot;,&quot;mapboxgl-popup-close-button&quot;,this._content),this._closeButton.type=&quot;button&quot;,this._closeButton.setAttribute(&quot;aria-label&quot;,&quot;Close popup&quot;),this._closeButton.innerHTML=&quot;&amp;#215;&quot;,this._closeButton.addEventListener(&quot;click&quot;,this._onClose))},n.prototype._onMouseUp=function(t){this._update(t.point)},n.prototype._onMouseMove=function(t){this._update(t.point)},n.prototype._onDrag=function(t){this._update(t.point)},n.prototype._update=function(e){var n=this;if(this._map&amp;&amp;(this._lngLat||this._trackPointer)&amp;&amp;this._content&amp;&amp;(this._container||(this._container=r.create(&quot;div&quot;,&quot;mapboxgl-popup&quot;,this._map.getContainer()),this._tip=r.create(&quot;div&quot;,&quot;mapboxgl-popup-tip&quot;,this._container),this._container.appendChild(this._content),this.options.className&amp;&amp;this.options.className.split(&quot; &quot;).forEach((function(t){return n._container.classList.add(t)})),this._trackPointer&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;)),this.options.maxWidth&amp;&amp;this._container.style.maxWidth!==this.options.maxWidth&amp;&amp;(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&amp;&amp;!this._trackPointer&amp;&amp;(this._lngLat=Li(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||e)){var i=this._pos=this._trackPointer&amp;&amp;e?e:this._map.project(this._lngLat),a=this.options.anchor,o=function e(r){if(r){if(&quot;number&quot;==typeof r){var n=Math.round(Math.sqrt(.5*Math.pow(r,2)));return{center:new t.Point(0,0),top:new t.Point(0,r),&quot;top-left&quot;:new t.Point(n,n),&quot;top-right&quot;:new t.Point(-n,n),bottom:new t.Point(0,-r),&quot;bottom-left&quot;:new t.Point(n,-n),&quot;bottom-right&quot;:new t.Point(-n,-n),left:new t.Point(r,0),right:new t.Point(-r,0)}}if(r instanceof t.Point||Array.isArray(r)){var i=t.Point.convert(r);return{center:i,top:i,&quot;top-left&quot;:i,&quot;top-right&quot;:i,bottom:i,&quot;bottom-left&quot;:i,&quot;bottom-right&quot;:i,left:i,right:i}}return{center:t.Point.convert(r.center||[0,0]),top:t.Point.convert(r.top||[0,0]),&quot;top-left&quot;:t.Point.convert(r[&quot;top-left&quot;]||[0,0]),&quot;top-right&quot;:t.Point.convert(r[&quot;top-right&quot;]||[0,0]),bottom:t.Point.convert(r.bottom||[0,0]),&quot;bottom-left&quot;:t.Point.convert(r[&quot;bottom-left&quot;]||[0,0]),&quot;bottom-right&quot;:t.Point.convert(r[&quot;bottom-right&quot;]||[0,0]),left:t.Point.convert(r.left||[0,0]),right:t.Point.convert(r.right||[0,0])}}return e(new t.Point(0,0))}(this.options.offset);if(!a){var s,l=this._container.offsetWidth,c=this._container.offsetHeight;s=i.y+o.bottom.y&lt;c?[&quot;top&quot;]:i.y&gt;this._map.transform.height-c?[&quot;bottom&quot;]:[],i.x&lt;l/2?s.push(&quot;left&quot;):i.x&gt;this._map.transform.width-l/2&amp;&amp;s.push(&quot;right&quot;),a=0===s.length?&quot;bottom&quot;:s.join(&quot;-&quot;)}var u=i.add(o[a]).round();r.setTransform(this._container,Ii[a]+&quot; translate(&quot;+u.x+&quot;px,&quot;+u.y+&quot;px)&quot;),Pi(this._container,a,&quot;popup&quot;)}},n.prototype._onClose=function(){this.remove()},n}(t.Evented),Yi={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:Mi,NavigationControl:Ei,GeolocateControl:Bi,AttributionControl:vi,ScaleControl:ji,FullscreenControl:qi,Popup:Gi,Marker:Oi,Style:qe,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,config:t.config,prewarm:function(){Bt().acquire(Ot)},clearPrewarmedResources:function(){var t=Rt;t&amp;&amp;(t.isPreloaded()&amp;&amp;1===t.numActive()?(t.release(Ot),Rt=null):console.warn(&quot;Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()&quot;))},get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return Dt.workerCount},set workerCount(t){Dt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage:function(e){t.clearTileCache(e)},workerUrl:&quot;&quot;};return Yi})),r}))},{}],474:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=1&lt;&lt;t+1,r=new Array(e),n=0;n&lt;e;++n)r[n]=a(t,n);return r};var n=t(&quot;convex-hull&quot;);function i(t,e,r){for(var n=new Array(t),i=0;i&lt;t;++i)n[i]=0,i===e&amp;&amp;(n[i]+=.5),i===r&amp;&amp;(n[i]+=.5);return n}function a(t,e){if(0===e||e===(1&lt;&lt;t+1)-1)return[];for(var r=[],a=[],o=0;o&lt;=t;++o)if(e&amp;1&lt;&lt;o){r.push(i(t,o-1,o-1)),a.push(null);for(var s=0;s&lt;=t;++s)~e&amp;1&lt;&lt;s&amp;&amp;(r.push(i(t,o-1,s-1)),a.push([o,s]))}var l=n(r),c=[];t:for(o=0;o&lt;l.length;++o){var u=l[o],f=[];for(s=0;s&lt;u.length;++s){if(!a[u[s]])continue t;f.push(a[u[s]].slice())}c.push(f)}return c}},{&quot;convex-hull&quot;:135}],475:[function(t,e,r){var n=t(&quot;./normalize&quot;),i=t(&quot;gl-mat4/create&quot;),a=t(&quot;gl-mat4/clone&quot;),o=t(&quot;gl-mat4/determinant&quot;),s=t(&quot;gl-mat4/invert&quot;),l=t(&quot;gl-mat4/transpose&quot;),c={length:t(&quot;gl-vec3/length&quot;),normalize:t(&quot;gl-vec3/normalize&quot;),dot:t(&quot;gl-vec3/dot&quot;),cross:t(&quot;gl-vec3/cross&quot;)},u=i(),f=i(),h=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],d=[0,0,0];function g(t,e,r,n,i){t[0]=e[0]*n+r[0]*i,t[1]=e[1]*n+r[1]*i,t[2]=e[2]*n+r[2]*i}e.exports=function(t,e,r,i,m,v){if(e||(e=[0,0,0]),r||(r=[0,0,0]),i||(i=[0,0,0]),m||(m=[0,0,0,1]),v||(v=[0,0,0,1]),!n(u,t))return!1;if(a(f,u),f[3]=0,f[7]=0,f[11]=0,f[15]=1,Math.abs(o(f)&lt;1e-8))return!1;var y,x,b,_,w,T,k,M=u[3],A=u[7],S=u[11],E=u[12],C=u[13],L=u[14],I=u[15];if(0!==M||0!==A||0!==S){if(h[0]=M,h[1]=A,h[2]=S,h[3]=I,!s(f,f))return!1;l(f,f),y=m,b=f,_=(x=h)[0],w=x[1],T=x[2],k=x[3],y[0]=b[0]*_+b[4]*w+b[8]*T+b[12]*k,y[1]=b[1]*_+b[5]*w+b[9]*T+b[13]*k,y[2]=b[2]*_+b[6]*w+b[10]*T+b[14]*k,y[3]=b[3]*_+b[7]*w+b[11]*T+b[15]*k}else m[0]=m[1]=m[2]=0,m[3]=1;if(e[0]=E,e[1]=C,e[2]=L,function(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}(p,u),r[0]=c.length(p[0]),c.normalize(p[0],p[0]),i[0]=c.dot(p[0],p[1]),g(p[1],p[1],p[0],1,-i[0]),r[1]=c.length(p[1]),c.normalize(p[1],p[1]),i[0]/=r[1],i[1]=c.dot(p[0],p[2]),g(p[2],p[2],p[0],1,-i[1]),i[2]=c.dot(p[1],p[2]),g(p[2],p[2],p[1],1,-i[2]),r[2]=c.length(p[2]),c.normalize(p[2],p[2]),i[1]/=r[2],i[2]/=r[2],c.cross(d,p[1],p[2]),c.dot(p[0],d)&lt;0)for(var P=0;P&lt;3;P++)r[P]*=-1,p[P][0]*=-1,p[P][1]*=-1,p[P][2]*=-1;return v[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),v[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),v[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),v[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]&gt;p[1][2]&amp;&amp;(v[0]=-v[0]),p[0][2]&gt;p[2][0]&amp;&amp;(v[1]=-v[1]),p[1][0]&gt;p[0][1]&amp;&amp;(v[2]=-v[2]),!0}},{&quot;./normalize&quot;:476,&quot;gl-mat4/clone&quot;:278,&quot;gl-mat4/create&quot;:280,&quot;gl-mat4/determinant&quot;:281,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/transpose&quot;:306,&quot;gl-vec3/cross&quot;:365,&quot;gl-vec3/dot&quot;:370,&quot;gl-vec3/length&quot;:380,&quot;gl-vec3/normalize&quot;:387}],476:[function(t,e,r){e.exports=function(t,e){var r=e[15];if(0===r)return!1;for(var n=1/r,i=0;i&lt;16;i++)t[i]=e[i]*n;return!0}},{}],477:[function(t,e,r){var n=t(&quot;gl-vec3/lerp&quot;),i=t(&quot;mat4-recompose&quot;),a=t(&quot;mat4-decompose&quot;),o=t(&quot;gl-mat4/determinant&quot;),s=t(&quot;quat-slerp&quot;),l=f(),c=f(),u=f();function f(){return{translate:h(),scale:h(1),skew:h(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function h(t){return[t||0,t||0,t||0]}e.exports=function(t,e,r,f){if(0===o(e)||0===o(r))return!1;var h=a(e,l.translate,l.scale,l.skew,l.perspective,l.quaternion),p=a(r,c.translate,c.scale,c.skew,c.perspective,c.quaternion);return!(!h||!p)&amp;&amp;(n(u.translate,l.translate,c.translate,f),n(u.skew,l.skew,c.skew,f),n(u.scale,l.scale,c.scale,f),n(u.perspective,l.perspective,c.perspective,f),s(u.quaternion,l.quaternion,c.quaternion,f),i(t,u.translate,u.scale,u.skew,u.perspective,u.quaternion),!0)}},{&quot;gl-mat4/determinant&quot;:281,&quot;gl-vec3/lerp&quot;:381,&quot;mat4-decompose&quot;:475,&quot;mat4-recompose&quot;:478,&quot;quat-slerp&quot;:527}],478:[function(t,e,r){var n={identity:t(&quot;gl-mat4/identity&quot;),translate:t(&quot;gl-mat4/translate&quot;),multiply:t(&quot;gl-mat4/multiply&quot;),create:t(&quot;gl-mat4/create&quot;),scale:t(&quot;gl-mat4/scale&quot;),fromRotationTranslation:t(&quot;gl-mat4/fromRotationTranslation&quot;)},i=(n.create(),n.create());e.exports=function(t,e,r,a,o,s){return n.identity(t),n.fromRotationTranslation(t,s,e),t[3]=o[0],t[7]=o[1],t[11]=o[2],t[15]=o[3],n.identity(i),0!==a[2]&amp;&amp;(i[9]=a[2],n.multiply(t,t,i)),0!==a[1]&amp;&amp;(i[9]=0,i[8]=a[1],n.multiply(t,t,i)),0!==a[0]&amp;&amp;(i[8]=0,i[4]=a[0],n.multiply(t,t,i)),n.scale(t,t,r),t}},{&quot;gl-mat4/create&quot;:280,&quot;gl-mat4/fromRotationTranslation&quot;:284,&quot;gl-mat4/identity&quot;:291,&quot;gl-mat4/multiply&quot;:295,&quot;gl-mat4/scale&quot;:303,&quot;gl-mat4/translate&quot;:305}],479:[function(t,e,r){&quot;use strict&quot;;e.exports=Math.log2||function(t){return Math.log(t)*Math.LOG2E}},{}],480:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;mat4-interpolate&quot;),a=t(&quot;gl-mat4/invert&quot;),o=t(&quot;gl-mat4/rotateX&quot;),s=t(&quot;gl-mat4/rotateY&quot;),l=t(&quot;gl-mat4/rotateZ&quot;),c=t(&quot;gl-mat4/lookAt&quot;),u=t(&quot;gl-mat4/translate&quot;),f=(t(&quot;gl-mat4/scale&quot;),t(&quot;gl-vec3/normalize&quot;)),h=[0,0,0];function p(t){this._components=t.slice(),this._time=[0],this.prevMatrix=t.slice(),this.nextMatrix=t.slice(),this.computedMatrix=t.slice(),this.computedInverse=t.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}e.exports=function(t){return new p((t=t||{}).matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};var d=p.prototype;d.recalcMatrix=function(t){var e=this._time,r=n.le(e,t),o=this.computedMatrix;if(!(r&lt;0)){var s=this._components;if(r===e.length-1)for(var l=16*r,c=0;c&lt;16;++c)o[c]=s[l++];else{var u=e[r+1]-e[r],h=(l=16*r,this.prevMatrix),p=!0;for(c=0;c&lt;16;++c)h[c]=s[l++];var d=this.nextMatrix;for(c=0;c&lt;16;++c)d[c]=s[l++],p=p&amp;&amp;h[c]===d[c];if(u&lt;1e-6||p)for(c=0;c&lt;16;++c)o[c]=h[c];else i(o,h,d,(t-e[r])/u)}var g=this.computedUp;g[0]=o[1],g[1]=o[5],g[2]=o[9],f(g,g);var m=this.computedInverse;a(m,o);var v=this.computedEye,y=m[15];v[0]=m[12]/y,v[1]=m[13]/y,v[2]=m[14]/y;var x=this.computedCenter,b=Math.exp(this.computedRadius[0]);for(c=0;c&lt;3;++c)x[c]=v[c]-o[2+4*c]*b}},d.idle=function(t){if(!(t&lt;this.lastT())){for(var e=this._components,r=e.length-16,n=0;n&lt;16;++n)e.push(e[r++]);this._time.push(t)}},d.flush=function(t){var e=n.gt(this._time,t)-2;e&lt;0||(this._time.splice(0,e),this._components.splice(0,16*e))},d.lastT=function(){return this._time[this._time.length-1]},d.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||h,n=n||this.computedUp,this.setMatrix(t,c(this.computedMatrix,e,r,n));for(var i=0,a=0;a&lt;3;++a)i+=Math.pow(r[a]-e[a],2);i=Math.log(Math.sqrt(i)),this.computedRadius[0]=i},d.rotate=function(t,e,r,n){this.recalcMatrix(t);var i=this.computedInverse;e&amp;&amp;s(i,i,e),r&amp;&amp;o(i,i,r),n&amp;&amp;l(i,i,n),this.setMatrix(t,a(this.computedMatrix,i))};var g=[0,0,0];d.pan=function(t,e,r,n){g[0]=-(e||0),g[1]=-(r||0),g[2]=-(n||0),this.recalcMatrix(t);var i=this.computedInverse;u(i,i,g),this.setMatrix(t,a(i,i))},d.translate=function(t,e,r,n){g[0]=e||0,g[1]=r||0,g[2]=n||0,this.recalcMatrix(t);var i=this.computedMatrix;u(i,i,g),this.setMatrix(t,i)},d.setMatrix=function(t,e){if(!(t&lt;this.lastT())){this._time.push(t);for(var r=0;r&lt;16;++r)this._components.push(e[r])}},d.setDistance=function(t,e){this.computedRadius[0]=e},d.setDistanceLimits=function(t,e){var r=this._limits;r[0]=t,r[1]=e},d.getDistanceLimits=function(t){var e=this._limits;return t?(t[0]=e[0],t[1]=e[1],t):e}},{&quot;binary-search-bounds&quot;:481,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/lookAt&quot;:294,&quot;gl-mat4/rotateX&quot;:300,&quot;gl-mat4/rotateY&quot;:301,&quot;gl-mat4/rotateZ&quot;:302,&quot;gl-mat4/scale&quot;:303,&quot;gl-mat4/translate&quot;:305,&quot;gl-vec3/normalize&quot;:387,&quot;mat4-interpolate&quot;:477}],481:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],482:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(e&lt;3){for(var r=new Array(e),i=0;i&lt;e;++i)r[i]=i;return 2===e&amp;&amp;t[0][0]===t[1][0]&amp;&amp;t[0][1]===t[1][1]?[0]:r}var a=new Array(e);for(i=0;i&lt;e;++i)a[i]=i;a.sort((function(e,r){var n=t[e][0]-t[r][0];return n||t[e][1]-t[r][1]}));var o=[a[0],a[1]],s=[a[0],a[1]];for(i=2;i&lt;e;++i){for(var l=a[i],c=t[l],u=o.length;u&gt;1&amp;&amp;n(t[o[u-2]],t[o[u-1]],c)&lt;=0;)u-=1,o.pop();for(o.push(l),u=s.length;u&gt;1&amp;&amp;n(t[s[u-2]],t[s[u-1]],c)&gt;=0;)u-=1,s.pop();s.push(l)}r=new Array(s.length+o.length-2);for(var f=0,h=(i=0,o.length);i&lt;h;++i)r[f++]=o[i];for(var p=s.length-2;p&gt;0;--p)r[f++]=s[p];return r};var n=t(&quot;robust-orientation&quot;)[3]},{&quot;robust-orientation&quot;:548}],483:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e||(e=t,t=window);var r=0,i=0,a=0,o={shift:!1,alt:!1,control:!1,meta:!1},s=!1;function l(t){var e=!1;return&quot;altKey&quot;in t&amp;&amp;(e=e||t.altKey!==o.alt,o.alt=!!t.altKey),&quot;shiftKey&quot;in t&amp;&amp;(e=e||t.shiftKey!==o.shift,o.shift=!!t.shiftKey),&quot;ctrlKey&quot;in t&amp;&amp;(e=e||t.ctrlKey!==o.control,o.control=!!t.ctrlKey),&quot;metaKey&quot;in t&amp;&amp;(e=e||t.metaKey!==o.meta,o.meta=!!t.metaKey),e}function c(t,s){var c=n.x(s),u=n.y(s);&quot;buttons&quot;in s&amp;&amp;(t=0|s.buttons),(t!==r||c!==i||u!==a||l(s))&amp;&amp;(r=0|t,i=c||0,a=u||0,e&amp;&amp;e(r,i,a,o))}function u(t){c(0,t)}function f(){(r||i||a||o.shift||o.alt||o.meta||o.control)&amp;&amp;(i=a=0,r=0,o.shift=o.alt=o.control=o.meta=!1,e&amp;&amp;e(0,0,0,o))}function h(t){l(t)&amp;&amp;e&amp;&amp;e(r,i,a,o)}function p(t){0===n.buttons(t)?c(0,t):c(r,t)}function d(t){c(r|n.buttons(t),t)}function g(t){c(r&amp;~n.buttons(t),t)}function m(){s||(s=!0,t.addEventListener(&quot;mousemove&quot;,p),t.addEventListener(&quot;mousedown&quot;,d),t.addEventListener(&quot;mouseup&quot;,g),t.addEventListener(&quot;mouseleave&quot;,u),t.addEventListener(&quot;mouseenter&quot;,u),t.addEventListener(&quot;mouseout&quot;,u),t.addEventListener(&quot;mouseover&quot;,u),t.addEventListener(&quot;blur&quot;,f),t.addEventListener(&quot;keyup&quot;,h),t.addEventListener(&quot;keydown&quot;,h),t.addEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.addEventListener(&quot;blur&quot;,f),window.addEventListener(&quot;keyup&quot;,h),window.addEventListener(&quot;keydown&quot;,h),window.addEventListener(&quot;keypress&quot;,h)))}m();var v={element:t};return Object.defineProperties(v,{enabled:{get:function(){return s},set:function(e){e?m():function(){if(!s)return;s=!1,t.removeEventListener(&quot;mousemove&quot;,p),t.removeEventListener(&quot;mousedown&quot;,d),t.removeEventListener(&quot;mouseup&quot;,g),t.removeEventListener(&quot;mouseleave&quot;,u),t.removeEventListener(&quot;mouseenter&quot;,u),t.removeEventListener(&quot;mouseout&quot;,u),t.removeEventListener(&quot;mouseover&quot;,u),t.removeEventListener(&quot;blur&quot;,f),t.removeEventListener(&quot;keyup&quot;,h),t.removeEventListener(&quot;keydown&quot;,h),t.removeEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.removeEventListener(&quot;blur&quot;,f),window.removeEventListener(&quot;keyup&quot;,h),window.removeEventListener(&quot;keydown&quot;,h),window.removeEventListener(&quot;keypress&quot;,h))}()},enumerable:!0},buttons:{get:function(){return r},enumerable:!0},x:{get:function(){return i},enumerable:!0},y:{get:function(){return a},enumerable:!0},mods:{get:function(){return o},enumerable:!0}}),v};var n=t(&quot;mouse-event&quot;)},{&quot;mouse-event&quot;:485}],484:[function(t,e,r){var n={left:0,top:0};e.exports=function(t,e,r){e=e||t.currentTarget||t.srcElement,Array.isArray(r)||(r=[0,0]);var i=t.clientX||0,a=t.clientY||0,o=(s=e,s===window||s===document||s===document.body?n:s.getBoundingClientRect());var s;return r[0]=i-o.left,r[1]=a-o.top,r}},{}],485:[function(t,e,r){&quot;use strict&quot;;function n(t){return t.target||t.srcElement||window}r.buttons=function(t){if(&quot;object&quot;==typeof t){if(&quot;buttons&quot;in t)return t.buttons;if(&quot;which&quot;in t){if(2===(e=t.which))return 4;if(3===e)return 2;if(e&gt;0)return 1&lt;&lt;e-1}else if(&quot;button&quot;in t){var e;if(1===(e=t.button))return 4;if(2===e)return 2;if(e&gt;=0)return 1&lt;&lt;e}}return 0},r.element=n,r.x=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetX&quot;in t)return t.offsetX;var e=n(t).getBoundingClientRect();return t.clientX-e.left}return 0},r.y=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetY&quot;in t)return t.offsetY;var e=n(t).getBoundingClientRect();return t.clientY-e.top}return 0}},{}],486:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;to-px&quot;);e.exports=function(t,e,r){&quot;function&quot;==typeof t&amp;&amp;(r=!!e,e=t,t=window);var i=n(&quot;ex&quot;,t),a=function(t){r&amp;&amp;t.preventDefault();var n=t.deltaX||0,a=t.deltaY||0,o=t.deltaZ||0,s=1;switch(t.deltaMode){case 1:s=i;break;case 2:s=window.innerHeight}if(a*=s,o*=s,(n*=s)||a||o)return e(n,a,o,t)};return t.addEventListener(&quot;wheel&quot;,a),a}},{&quot;to-px&quot;:578}],487:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;);function i(t){return&quot;a&quot;+t}function a(t){return&quot;d&quot;+t}function o(t,e){return&quot;c&quot;+t+&quot;_&quot;+e}function s(t){return&quot;s&quot;+t}function l(t,e){return&quot;t&quot;+t+&quot;_&quot;+e}function c(t){return&quot;o&quot;+t}function u(t){return&quot;x&quot;+t}function f(t){return&quot;p&quot;+t}function h(t,e){return&quot;d&quot;+t+&quot;_&quot;+e}function p(t){return&quot;i&quot;+t}function d(t,e){return&quot;u&quot;+t+&quot;_&quot;+e}function g(t){return&quot;b&quot;+t}function m(t){return&quot;y&quot;+t}function v(t){return&quot;e&quot;+t}function y(t){return&quot;v&quot;+t}e.exports=function(t){function e(t){throw new Error(&quot;ndarray-extract-contour: &quot;+t)}&quot;object&quot;!=typeof t&amp;&amp;e(&quot;Must specify arguments&quot;);var r=t.order;Array.isArray(r)||e(&quot;Must specify order&quot;);var b=t.arrayArguments||1;b&lt;1&amp;&amp;e(&quot;Must have at least one array argument&quot;);var _=t.scalarArguments||0;_&lt;0&amp;&amp;e(&quot;Scalar arg count must be &gt; 0&quot;);&quot;function&quot;!=typeof t.vertex&amp;&amp;e(&quot;Must specify vertex creation function&quot;);&quot;function&quot;!=typeof t.cell&amp;&amp;e(&quot;Must specify cell creation function&quot;);&quot;function&quot;!=typeof t.phase&amp;&amp;e(&quot;Must specify phase function&quot;);for(var w=t.getters||[],T=new Array(b),k=0;k&lt;b;++k)w.indexOf(k)&gt;=0?T[k]=!0:T[k]=!1;return function(t,e,r,b,_,w){var T=w.length,k=_.length;if(k&lt;2)throw new Error(&quot;ndarray-extract-contour: Dimension must be at least 2&quot;);for(var M=&quot;extractContour&quot;+_.join(&quot;_&quot;),A=[],S=[],E=[],C=0;C&lt;T;++C)E.push(i(C));for(C=0;C&lt;b;++C)E.push(u(C));for(C=0;C&lt;k;++C)S.push(s(C)+&quot;=&quot;+i(0)+&quot;.shape[&quot;+C+&quot;]|0&quot;);for(C=0;C&lt;T;++C){S.push(a(C)+&quot;=&quot;+i(C)+&quot;.data&quot;,c(C)+&quot;=&quot;+i(C)+&quot;.offset|0&quot;);for(var L=0;L&lt;k;++L)S.push(l(C,L)+&quot;=&quot;+i(C)+&quot;.stride[&quot;+L+&quot;]|0&quot;)}for(C=0;C&lt;T;++C){S.push(f(C)+&quot;=&quot;+c(C)),S.push(o(C,0));for(L=1;L&lt;1&lt;&lt;k;++L){for(var I=[],P=0;P&lt;k;++P)L&amp;1&lt;&lt;P&amp;&amp;I.push(&quot;-&quot;+l(C,P));S.push(h(C,L)+&quot;=(&quot;+I.join(&quot;&quot;)+&quot;)|0&quot;),S.push(o(C,L)+&quot;=0&quot;)}}for(C=0;C&lt;T;++C)for(L=0;L&lt;k;++L){var z=[l(C,_[L])];L&gt;0&amp;&amp;z.push(l(C,_[L-1])+&quot;*&quot;+s(_[L-1])),S.push(d(C,_[L])+&quot;=(&quot;+z.join(&quot;-&quot;)+&quot;)|0&quot;)}for(C=0;C&lt;k;++C)S.push(p(C)+&quot;=0&quot;);S.push(&quot;N=0&quot;);var O=[&quot;2&quot;];for(C=k-2;C&gt;=0;--C)O.push(s(_[C]));S.push(&quot;Q=(&quot;+O.join(&quot;*&quot;)+&quot;)|0&quot;,&quot;P=mallocUint32(Q)&quot;,&quot;V=mallocUint32(Q)&quot;,&quot;X=0&quot;),S.push(g(0)+&quot;=0&quot;);for(L=1;L&lt;1&lt;&lt;k;++L){var D=[],R=[];for(P=0;P&lt;k;++P)L&amp;1&lt;&lt;P&amp;&amp;(0===R.length?D.push(&quot;1&quot;):D.unshift(R.join(&quot;*&quot;))),R.push(s(_[P]));var F=&quot;&quot;;D[0].indexOf(s(_[k-2]))&lt;0&amp;&amp;(F=&quot;-&quot;);var B=x(k,L,_);S.push(v(B)+&quot;=(-&quot;+D.join(&quot;-&quot;)+&quot;)|0&quot;,m(B)+&quot;=(&quot;+F+D.join(&quot;-&quot;)+&quot;)|0&quot;,g(B)+&quot;=0&quot;)}function N(t,e){A.push(&quot;for(&quot;,p(_[t]),&quot;=&quot;,e,&quot;;&quot;,p(_[t]),&quot;&lt;&quot;,s(_[t]),&quot;;&quot;,&quot;++&quot;,p(_[t]),&quot;){&quot;)}function j(t){for(var e=0;e&lt;T;++e)A.push(f(e),&quot;+=&quot;,d(e,_[t]),&quot;;&quot;);A.push(&quot;}&quot;)}function U(){for(var t=1;t&lt;1&lt;&lt;k;++t)A.push(&quot;T&quot;,&quot;=&quot;,v(t),&quot;;&quot;,v(t),&quot;=&quot;,m(t),&quot;;&quot;,m(t),&quot;=&quot;,&quot;T&quot;,&quot;;&quot;)}S.push(y(0)+&quot;=0&quot;,&quot;T=0&quot;),function t(e,r){if(e&lt;0)!function(t){for(var e=0;e&lt;T;++e)w[e]?A.push(o(e,0),&quot;=&quot;,a(e),&quot;.get(&quot;,f(e),&quot;);&quot;):A.push(o(e,0),&quot;=&quot;,a(e),&quot;[&quot;,f(e),&quot;];&quot;);var r=[];for(e=0;e&lt;T;++e)r.push(o(e,0));for(e=0;e&lt;b;++e)r.push(u(e));A.push(g(0),&quot;=&quot;,&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;]=phase(&quot;,r.join(),&quot;);&quot;);for(var n=1;n&lt;1&lt;&lt;k;++n)A.push(g(n),&quot;=&quot;,&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;+&quot;,v(n),&quot;];&quot;);var i=[];for(n=1;n&lt;1&lt;&lt;k;++n)i.push(&quot;(&quot;+g(0)+&quot;!==&quot;+g(n)+&quot;)&quot;);A.push(&quot;if(&quot;,i.join(&quot;||&quot;),&quot;){&quot;);var s=[];for(e=0;e&lt;k;++e)s.push(p(e));for(e=0;e&lt;T;++e){s.push(o(e,0));for(n=1;n&lt;1&lt;&lt;k;++n)w[e]?A.push(o(e,n),&quot;=&quot;,a(e),&quot;.get(&quot;,f(e),&quot;+&quot;,h(e,n),&quot;);&quot;):A.push(o(e,n),&quot;=&quot;,a(e),&quot;[&quot;,f(e),&quot;+&quot;,h(e,n),&quot;];&quot;),s.push(o(e,n))}for(e=0;e&lt;1&lt;&lt;k;++e)s.push(g(e));for(e=0;e&lt;b;++e)s.push(u(e));A.push(&quot;vertex(&quot;,s.join(),&quot;);&quot;,y(0),&quot;=&quot;,&quot;V&quot;,&quot;[&quot;,&quot;X&quot;,&quot;]=&quot;,&quot;N&quot;,&quot;++;&quot;);var l=(1&lt;&lt;k)-1,c=g(l);for(n=0;n&lt;k;++n)if(0==(t&amp;~(1&lt;&lt;n))){for(var d=l^1&lt;&lt;n,m=g(d),x=[],_=d;_&gt;0;_=_-1&amp;d)x.push(&quot;V[X+&quot;+v(_)+&quot;]&quot;);x.push(y(0));for(_=0;_&lt;T;++_)1&amp;n?x.push(o(_,l),o(_,d)):x.push(o(_,d),o(_,l));1&amp;n?x.push(c,m):x.push(m,c);for(_=0;_&lt;b;++_)x.push(u(_));A.push(&quot;if(&quot;,c,&quot;!==&quot;,m,&quot;){&quot;,&quot;face(&quot;,x.join(),&quot;)}&quot;)}A.push(&quot;}&quot;,&quot;X&quot;,&quot;+=1;&quot;)}(r);else{!function(t){for(var e=t-1;e&gt;=0;--e)N(e,0);var r=[];for(e=0;e&lt;T;++e)w[e]?r.push(a(e)+&quot;.get(&quot;+f(e)+&quot;)&quot;):r.push(a(e)+&quot;[&quot;+f(e)+&quot;]&quot;);for(e=0;e&lt;b;++e)r.push(u(e));for(A.push(&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;++]=phase(&quot;,r.join(),&quot;);&quot;),e=0;e&lt;t;++e)j(e);for(var n=0;n&lt;T;++n)A.push(f(n),&quot;+=&quot;,d(n,_[t]),&quot;;&quot;)}(e),A.push(&quot;if(&quot;,s(_[e]),&quot;&gt;0){&quot;,p(_[e]),&quot;=1;&quot;),t(e-1,r|1&lt;&lt;_[e]);for(var n=0;n&lt;T;++n)A.push(f(n),&quot;+=&quot;,d(n,_[e]),&quot;;&quot;);e===k-1&amp;&amp;(A.push(&quot;X&quot;,&quot;=0;&quot;),U()),N(e,2),t(e-1,r),e===k-1&amp;&amp;(A.push(&quot;if(&quot;,p(_[k-1]),&quot;&amp;1){&quot;,&quot;X&quot;,&quot;=0;}&quot;),U()),j(e),A.push(&quot;}&quot;)}}(k-1,0),A.push(&quot;freeUint32(&quot;,&quot;V&quot;,&quot;);freeUint32(&quot;,&quot;P&quot;,&quot;);&quot;);var V=[&quot;'use strict';&quot;,&quot;function &quot;,M,&quot;(&quot;,E.join(),&quot;){&quot;,&quot;var &quot;,S.join(),&quot;;&quot;,A.join(&quot;&quot;),&quot;}&quot;,&quot;return &quot;,M].join(&quot;&quot;);return new Function(&quot;vertex&quot;,&quot;face&quot;,&quot;phase&quot;,&quot;mallocUint32&quot;,&quot;freeUint32&quot;,V)(t,e,r,n.mallocUint32,n.freeUint32)}(t.vertex,t.cell,t.phase,_,r,T)};function x(t,e,r){for(var n=0,i=0;i&lt;t;++i)e&amp;1&lt;&lt;i&amp;&amp;(n|=1&lt;&lt;r[i]);return n}},{&quot;typedarray-pool&quot;:595}],488:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(Array.isArray(r)){if(r.length!==e.dimension)throw new Error(&quot;ndarray-gradient: invalid boundary conditions&quot;)}else r=n(e.dimension,&quot;string&quot;==typeof r?r:&quot;clamp&quot;);if(t.dimension!==e.dimension+1)throw new Error(&quot;ndarray-gradient: output dimension must be +1 input dimension&quot;);if(t.shape[e.dimension]!==e.dimension)throw new Error(&quot;ndarray-gradient: output shape must match input shape&quot;);for(var i=0;i&lt;e.dimension;++i)if(t.shape[i]!==e.shape[i])throw new Error(&quot;ndarray-gradient: shape mismatch&quot;);if(0===e.size)return t;if(e.dimension&lt;=0)return t.set(0),t;return function(t){var e=t.join();if(v=o[e])return v;var r=t.length,n=[&quot;function gradient(dst,src){var s=src.shape.slice();&quot;];function i(e){for(var i=r-e.length,a=[],o=[],s=[],l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0?s.push(&quot;0&quot;):e.indexOf(-(l+1))&gt;=0?s.push(&quot;s[&quot;+l+&quot;]-1&quot;):(s.push(&quot;-1&quot;),a.push(&quot;1&quot;),o.push(&quot;s[&quot;+l+&quot;]-2&quot;));var c=&quot;.lo(&quot;+a.join()+&quot;).hi(&quot;+o.join()+&quot;)&quot;;if(0===a.length&amp;&amp;(c=&quot;&quot;),i&gt;0){n.push(&quot;if(1&quot;);for(l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0||e.indexOf(-(l+1))&gt;=0||n.push(&quot;&amp;&amp;s[&quot;,l,&quot;]&gt;2&quot;);n.push(&quot;){grad&quot;,i,&quot;(src.pick(&quot;,s.join(),&quot;)&quot;,c);for(l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0||e.indexOf(-(l+1))&gt;=0||n.push(&quot;,dst.pick(&quot;,s.join(),&quot;,&quot;,l,&quot;)&quot;,c);n.push(&quot;);&quot;)}for(l=0;l&lt;e.length;++l){var u=Math.abs(e[l])-1,f=&quot;dst.pick(&quot;+s.join()+&quot;,&quot;+u+&quot;)&quot;+c;switch(t[u]){case&quot;clamp&quot;:var h=s.slice(),p=s.slice();e[l]&lt;0?h[u]=&quot;s[&quot;+u+&quot;]-2&quot;:p[u]=&quot;1&quot;,0===i?n.push(&quot;if(s[&quot;,u,&quot;]&gt;1){dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0.5*(src.get(&quot;,h.join(),&quot;)-src.get(&quot;,p.join(),&quot;)))}else{dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0)};&quot;):n.push(&quot;if(s[&quot;,u,&quot;]&gt;1){diff(&quot;,f,&quot;,src.pick(&quot;,h.join(),&quot;)&quot;,c,&quot;,src.pick(&quot;,p.join(),&quot;)&quot;,c,&quot;);}else{zero(&quot;,f,&quot;);};&quot;);break;case&quot;mirror&quot;:0===i?n.push(&quot;dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0);&quot;):n.push(&quot;zero(&quot;,f,&quot;);&quot;);break;case&quot;wrap&quot;:var d=s.slice(),g=s.slice();e[l]&lt;0?(d[u]=&quot;s[&quot;+u+&quot;]-2&quot;,g[u]=&quot;0&quot;):(d[u]=&quot;s[&quot;+u+&quot;]-1&quot;,g[u]=&quot;1&quot;),0===i?n.push(&quot;if(s[&quot;,u,&quot;]&gt;2){dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0.5*(src.get(&quot;,d.join(),&quot;)-src.get(&quot;,g.join(),&quot;)))}else{dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0)};&quot;):n.push(&quot;if(s[&quot;,u,&quot;]&gt;2){diff(&quot;,f,&quot;,src.pick(&quot;,d.join(),&quot;)&quot;,c,&quot;,src.pick(&quot;,g.join(),&quot;)&quot;,c,&quot;);}else{zero(&quot;,f,&quot;);};&quot;);break;default:throw new Error(&quot;ndarray-gradient: Invalid boundary condition&quot;)}}i&gt;0&amp;&amp;n.push(&quot;};&quot;)}for(var s=0;s&lt;1&lt;&lt;r;++s){for(var f=[],h=0;h&lt;r;++h)s&amp;1&lt;&lt;h&amp;&amp;f.push(h+1);for(var p=0;p&lt;1&lt;&lt;f.length;++p){var d=f.slice();for(h=0;h&lt;f.length;++h)p&amp;1&lt;&lt;h&amp;&amp;(d[h]=-d[h]);i(d)}}n.push(&quot;return dst;};return gradient&quot;);var g=[&quot;diff&quot;,&quot;zero&quot;],m=[l,c];for(s=1;s&lt;=r;++s)g.push(&quot;grad&quot;+s),m.push(u(s));g.push(n.join(&quot;&quot;));var v=Function.apply(void 0,g).apply(void 0,m);return a[e]=v,v}(r)(t,e)};var n=t(&quot;dup&quot;),i=t(&quot;cwise-compiler&quot;),a={},o={},s={body:&quot;&quot;,args:[],thisVars:[],localVars:[]},l=i({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:s,post:s,body:{args:[{name:&quot;out&quot;,lvalue:!0,rvalue:!1,count:1},{name:&quot;left&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;right&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;out=0.5*(left-right)&quot;,thisVars:[],localVars:[]},funcName:&quot;cdiff&quot;}),c=i({args:[&quot;array&quot;],pre:s,post:s,body:{args:[{name:&quot;out&quot;,lvalue:!0,rvalue:!1,count:1}],body:&quot;out=0&quot;,thisVars:[],localVars:[]},funcName:&quot;zero&quot;});function u(t){if(t in a)return a[t];for(var e=[],r=0;r&lt;t;++r)e.push(&quot;out&quot;,r,&quot;s=0.5*(inp&quot;,r,&quot;l-inp&quot;,r,&quot;r);&quot;);var o=[&quot;array&quot;],l=[&quot;junk&quot;];for(r=0;r&lt;t;++r){o.push(&quot;array&quot;),l.push(&quot;out&quot;+r+&quot;s&quot;);var c=n(t);c[r]=-1,o.push({array:0,offset:c.slice()}),c[r]=1,o.push({array:0,offset:c.slice()}),l.push(&quot;inp&quot;+r+&quot;l&quot;,&quot;inp&quot;+r+&quot;r&quot;)}return a[t]=i({args:o,pre:s,post:s,body:{body:e.join(&quot;&quot;),args:l.map((function(t){return{name:t,lvalue:0===t.indexOf(&quot;out&quot;),rvalue:0===t.indexOf(&quot;inp&quot;),count:&quot;junk&quot;!==t|0}})),thisVars:[],localVars:[]},funcName:&quot;fdTemplate&quot;+t})}},{&quot;cwise-compiler&quot;:151,dup:176}],489:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=Math.floor(e),n=e-r,i=0&lt;=r&amp;&amp;r&lt;t.shape[0],a=0&lt;=r+1&amp;&amp;r+1&lt;t.shape[0];return(1-n)*(i?+t.get(r):0)+n*(a?+t.get(r+1):0)}function i(t,e,r){var n=Math.floor(e),i=e-n,a=0&lt;=n&amp;&amp;n&lt;t.shape[0],o=0&lt;=n+1&amp;&amp;n+1&lt;t.shape[0],s=Math.floor(r),l=r-s,c=0&lt;=s&amp;&amp;s&lt;t.shape[1],u=0&lt;=s+1&amp;&amp;s+1&lt;t.shape[1],f=a&amp;&amp;c?t.get(n,s):0,h=a&amp;&amp;u?t.get(n,s+1):0;return(1-l)*((1-i)*f+i*(o&amp;&amp;c?t.get(n+1,s):0))+l*((1-i)*h+i*(o&amp;&amp;u?t.get(n+1,s+1):0))}function a(t,e,r,n){var i=Math.floor(e),a=e-i,o=0&lt;=i&amp;&amp;i&lt;t.shape[0],s=0&lt;=i+1&amp;&amp;i+1&lt;t.shape[0],l=Math.floor(r),c=r-l,u=0&lt;=l&amp;&amp;l&lt;t.shape[1],f=0&lt;=l+1&amp;&amp;l+1&lt;t.shape[1],h=Math.floor(n),p=n-h,d=0&lt;=h&amp;&amp;h&lt;t.shape[2],g=0&lt;=h+1&amp;&amp;h+1&lt;t.shape[2],m=o&amp;&amp;u&amp;&amp;d?t.get(i,l,h):0,v=o&amp;&amp;f&amp;&amp;d?t.get(i,l+1,h):0,y=s&amp;&amp;u&amp;&amp;d?t.get(i+1,l,h):0,x=s&amp;&amp;f&amp;&amp;d?t.get(i+1,l+1,h):0,b=o&amp;&amp;u&amp;&amp;g?t.get(i,l,h+1):0,_=o&amp;&amp;f&amp;&amp;g?t.get(i,l+1,h+1):0;return(1-p)*((1-c)*((1-a)*m+a*y)+c*((1-a)*v+a*x))+p*((1-c)*((1-a)*b+a*(s&amp;&amp;u&amp;&amp;g?t.get(i+1,l,h+1):0))+c*((1-a)*_+a*(s&amp;&amp;f&amp;&amp;g?t.get(i+1,l+1,h+1):0)))}function o(t){var e,r,n=0|t.shape.length,i=new Array(n),a=new Array(n),o=new Array(n),s=new Array(n);for(e=0;e&lt;n;++e)r=+arguments[e+1],i[e]=Math.floor(r),a[e]=r-i[e],o[e]=0&lt;=i[e]&amp;&amp;i[e]&lt;t.shape[e],s[e]=0&lt;=i[e]+1&amp;&amp;i[e]+1&lt;t.shape[e];var l,c,u,f=0;t:for(e=0;e&lt;1&lt;&lt;n;++e){for(c=1,u=t.offset,l=0;l&lt;n;++l)if(e&amp;1&lt;&lt;l){if(!s[l])continue t;c*=a[l],u+=t.stride[l]*(i[l]+1)}else{if(!o[l])continue t;c*=1-a[l],u+=t.stride[l]*i[l]}f+=c*t.data[u]}return f}e.exports=function(t,e,r,s){switch(t.shape.length){case 0:return 0;case 1:return n(t,e);case 2:return i(t,e,r);case 3:return a(t,e,r,s);default:return o.apply(void 0,arguments)}},e.exports.d1=n,e.exports.d2=i,e.exports.d3=a},{}],490:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;cwise-compiler&quot;),i={body:&quot;&quot;,args:[],thisVars:[],localVars:[]};function a(t){if(!t)return i;for(var e=0;e&lt;t.args.length;++e){var r=t.args[e];t.args[e]=0===e?{name:r,lvalue:!0,rvalue:!!t.rvalue,count:t.count||1}:{name:r,lvalue:!1,rvalue:!0,count:1}}return t.thisVars||(t.thisVars=[]),t.localVars||(t.localVars=[]),t}function o(t){for(var e=[],r=0;r&lt;t.args.length;++r)e.push(&quot;a&quot;+r);return new Function(&quot;P&quot;,[&quot;return function &quot;,t.funcName,&quot;_ndarrayops(&quot;,e.join(&quot;,&quot;),&quot;) {P(&quot;,e.join(&quot;,&quot;),&quot;);return a0}&quot;].join(&quot;&quot;))(function(t){return n({args:t.args,pre:a(t.pre),body:a(t.body),post:a(t.proc),funcName:t.funcName})}(t))}var s={add:&quot;+&quot;,sub:&quot;-&quot;,mul:&quot;*&quot;,div:&quot;/&quot;,mod:&quot;%&quot;,band:&quot;&amp;&quot;,bor:&quot;|&quot;,bxor:&quot;^&quot;,lshift:&quot;&lt;&lt;&quot;,rshift:&quot;&gt;&gt;&quot;,rrshift:&quot;&gt;&gt;&gt;&quot;};!function(){for(var t in s){var e=s[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=b&quot;+e+&quot;c&quot;},funcName:t}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a&quot;+e+&quot;=b&quot;},rvalue:!0,funcName:t+&quot;eq&quot;}),r[t+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;s&quot;],body:&quot;a=b&quot;+e+&quot;s&quot;},funcName:t+&quot;s&quot;}),r[t+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;s&quot;],body:&quot;a&quot;+e+&quot;=s&quot;},rvalue:!0,funcName:t+&quot;seq&quot;})}}();var l={not:&quot;!&quot;,bnot:&quot;~&quot;,neg:&quot;-&quot;,recip:&quot;1.0/&quot;};!function(){for(var t in l){var e=l[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=&quot;+e+&quot;b&quot;},funcName:t}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;],body:{args:[&quot;a&quot;],body:&quot;a=&quot;+e+&quot;a&quot;},rvalue:!0,count:2,funcName:t+&quot;eq&quot;})}}();var c={and:&quot;&amp;&amp;&quot;,or:&quot;||&quot;,eq:&quot;===&quot;,neq:&quot;!==&quot;,lt:&quot;&lt;&quot;,gt:&quot;&gt;&quot;,leq:&quot;&lt;=&quot;,geq:&quot;&gt;=&quot;};!function(){for(var t in c){var e=c[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=b&quot;+e+&quot;c&quot;},funcName:t}),r[t+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;s&quot;],body:&quot;a=b&quot;+e+&quot;s&quot;},funcName:t+&quot;s&quot;}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=a&quot;+e+&quot;b&quot;},rvalue:!0,count:2,funcName:t+&quot;eq&quot;}),r[t+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;s&quot;],body:&quot;a=a&quot;+e+&quot;s&quot;},rvalue:!0,count:2,funcName:t+&quot;seq&quot;})}}();var u=[&quot;abs&quot;,&quot;acos&quot;,&quot;asin&quot;,&quot;atan&quot;,&quot;ceil&quot;,&quot;cos&quot;,&quot;exp&quot;,&quot;floor&quot;,&quot;log&quot;,&quot;round&quot;,&quot;sin&quot;,&quot;sqrt&quot;,&quot;tan&quot;];!function(){for(var t=0;t&lt;u.length;++t){var e=u[t];r[e]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e}),r[e+&quot;eq&quot;]=o({args:[&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;],body:&quot;a=this_f(a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;eq&quot;})}}();var f=[&quot;max&quot;,&quot;min&quot;,&quot;atan2&quot;,&quot;pow&quot;];!function(){for(var t=0;t&lt;f.length;++t){var e=f[t];r[e]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(b,c)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e}),r[e+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(b,c)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;s&quot;}),r[e+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(a,b)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;eq&quot;}),r[e+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(a,b)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;seq&quot;})}}();var h=[&quot;atan2&quot;,&quot;pow&quot;];!function(){for(var t=0;t&lt;h.length;++t){var e=h[t];r[e+&quot;op&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(c,b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;op&quot;}),r[e+&quot;ops&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(c,b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;ops&quot;}),r[e+&quot;opeq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b,a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;opeq&quot;}),r[e+&quot;opseq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b,a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;opseq&quot;})}}(),r.any=n({args:[&quot;array&quot;],pre:i,body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(a){return true}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return false&quot;},funcName:&quot;any&quot;}),r.all=n({args:[&quot;array&quot;],pre:i,body:{args:[{name:&quot;x&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(!x){return false}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return true&quot;},funcName:&quot;all&quot;}),r.sum=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;this_s+=a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;sum&quot;}),r.prod=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=1&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;this_s*=a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;prod&quot;}),r.norm2squared=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:2}],body:&quot;this_s+=a*a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norm2squared&quot;}),r.norm2=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:2}],body:&quot;this_s+=a*a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return Math.sqrt(this_s)&quot;},funcName:&quot;norm2&quot;}),r.norminf=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:4}],body:&quot;if(-a&gt;this_s){this_s=-a}else if(a&gt;this_s){this_s=a}&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norminf&quot;}),r.norm1=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:3}],body:&quot;this_s+=a&lt;0?-a:a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norm1&quot;}),r.sup=n({args:[&quot;array&quot;],pre:{body:&quot;this_h=-Infinity&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]},body:{body:&quot;if(_inline_1_arg0_&gt;this_h)this_h=_inline_1_arg0_&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_h&quot;],localVars:[]},post:{body:&quot;return this_h&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]}}),r.inf=n({args:[&quot;array&quot;],pre:{body:&quot;this_h=Infinity&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]},body:{body:&quot;if(_inline_1_arg0_&lt;this_h)this_h=_inline_1_arg0_&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_h&quot;],localVars:[]},post:{body:&quot;return this_h&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]}}),r.argmin=n({args:[&quot;index&quot;,&quot;array&quot;,&quot;shape&quot;],pre:{body:&quot;{this_v=Infinity;this_i=_inline_0_arg2_.slice(0)}&quot;,args:[{name:&quot;_inline_0_arg0_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg1_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg2_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[]},body:{body:&quot;{if(_inline_1_arg1_&lt;this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k&lt;_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[&quot;_inline_1_k&quot;]},post:{body:&quot;{return this_i}&quot;,args:[],thisVars:[&quot;this_i&quot;],localVars:[]}}),r.argmax=n({args:[&quot;index&quot;,&quot;array&quot;,&quot;shape&quot;],pre:{body:&quot;{this_v=-Infinity;this_i=_inline_0_arg2_.slice(0)}&quot;,args:[{name:&quot;_inline_0_arg0_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg1_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg2_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[]},body:{body:&quot;{if(_inline_1_arg1_&gt;this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k&lt;_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[&quot;_inline_1_k&quot;]},post:{body:&quot;{return this_i}&quot;,args:[],thisVars:[&quot;this_i&quot;],localVars:[]}}),r.random=o({args:[&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.random&quot;,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;],body:&quot;a=this_f()&quot;,thisVars:[&quot;this_f&quot;]},funcName:&quot;random&quot;}),r.assign=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=b&quot;},funcName:&quot;assign&quot;}),r.assigns=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=b&quot;},funcName:&quot;assigns&quot;}),r.equals=n({args:[&quot;array&quot;,&quot;array&quot;],pre:i,body:{args:[{name:&quot;x&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;y&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(x!==y){return false}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return true&quot;},funcName:&quot;equals&quot;})},{&quot;cwise-compiler&quot;:151}],491:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ndarray&quot;),i=t(&quot;./doConvert.js&quot;);e.exports=function(t,e){for(var r=[],a=t,o=1;Array.isArray(a);)r.push(a.length),o*=a.length,a=a[0];return 0===r.length?n():(e||(e=n(new Float64Array(o),r)),i(e,t),e)}},{&quot;./doConvert.js&quot;:492,ndarray:495}],492:[function(t,e,r){e.exports=t(&quot;cwise-compiler&quot;)({args:[&quot;array&quot;,&quot;scalar&quot;,&quot;index&quot;],pre:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},body:{body:&quot;{\nvar _inline_1_v=_inline_1_arg1_,_inline_1_i\nfor(_inline_1_i=0;_inline_1_i&lt;_inline_1_arg2_.length-1;++_inline_1_i) {\n_inline_1_v=_inline_1_v[_inline_1_arg2_[_inline_1_i]]\n}\n_inline_1_arg0_=_inline_1_v[_inline_1_arg2_[_inline_1_arg2_.length-1]]\n}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!0,rvalue:!1,count:1},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg2_&quot;,lvalue:!1,rvalue:!0,count:4}],thisVars:[],localVars:[&quot;_inline_1_i&quot;,&quot;_inline_1_v&quot;]},post:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},funcName:&quot;convert&quot;,blockSize:64})},{&quot;cwise-compiler&quot;:151}],493:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=32;function a(t){switch(t){case&quot;uint8&quot;:return[n.mallocUint8,n.freeUint8];case&quot;uint16&quot;:return[n.mallocUint16,n.freeUint16];case&quot;uint32&quot;:return[n.mallocUint32,n.freeUint32];case&quot;int8&quot;:return[n.mallocInt8,n.freeInt8];case&quot;int16&quot;:return[n.mallocInt16,n.freeInt16];case&quot;int32&quot;:return[n.mallocInt32,n.freeInt32];case&quot;float32&quot;:return[n.mallocFloat,n.freeFloat];case&quot;float64&quot;:return[n.mallocDouble,n.freeDouble];default:return null}}function o(t){for(var e=[],r=0;r&lt;t;++r)e.push(&quot;s&quot;+r);for(r=0;r&lt;t;++r)e.push(&quot;n&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;d&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;e&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;f&quot;+r);return e}e.exports=function(t,e){var r=[&quot;'use strict'&quot;],n=[&quot;ndarraySortWrapper&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;);r.push([&quot;function &quot;,n,&quot;(&quot;,[&quot;array&quot;].join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));for(var s=[&quot;data=array.data,offset=array.offset|0,shape=array.shape,stride=array.stride&quot;],l=0;l&lt;t.length;++l)s.push([&quot;s&quot;,l,&quot;=stride[&quot;,l,&quot;]|0,n&quot;,l,&quot;=shape[&quot;,l,&quot;]|0&quot;].join(&quot;&quot;));var c=new Array(t.length),u=[];for(l=0;l&lt;t.length;++l){0!==(p=t[l])&amp;&amp;(0===u.length?c[p]=&quot;1&quot;:c[p]=u.join(&quot;*&quot;),u.push(&quot;n&quot;+p))}var f=-1,h=-1;for(l=0;l&lt;t.length;++l){var p,d=t[l];0!==d&amp;&amp;(f&gt;0?s.push([&quot;d&quot;,d,&quot;=s&quot;,d,&quot;-d&quot;,f,&quot;*n&quot;,f].join(&quot;&quot;)):s.push([&quot;d&quot;,d,&quot;=s&quot;,d].join(&quot;&quot;)),f=d),0!==(p=t.length-1-l)&amp;&amp;(h&gt;0?s.push([&quot;e&quot;,p,&quot;=s&quot;,p,&quot;-e&quot;,h,&quot;*n&quot;,h,&quot;,f&quot;,p,&quot;=&quot;,c[p],&quot;-f&quot;,h,&quot;*n&quot;,h].join(&quot;&quot;)):s.push([&quot;e&quot;,p,&quot;=s&quot;,p,&quot;,f&quot;,p,&quot;=&quot;,c[p]].join(&quot;&quot;)),h=p)}r.push(&quot;var &quot;+s.join(&quot;,&quot;));var g=[&quot;0&quot;,&quot;n0-1&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length));r.push([&quot;if(n0&lt;=&quot;,i,&quot;){&quot;,&quot;insertionSort(&quot;,g.join(&quot;,&quot;),&quot;)}else{&quot;,&quot;quickSort(&quot;,g.join(&quot;,&quot;),&quot;)}&quot;].join(&quot;&quot;)),r.push(&quot;}return &quot;+n);var m=new Function(&quot;insertionSort&quot;,&quot;quickSort&quot;,r.join(&quot;\n&quot;)),v=function(t,e){var r=[&quot;'use strict'&quot;],n=[&quot;ndarrayInsertionSort&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;),i=[&quot;left&quot;,&quot;right&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length)),s=a(e),l=[&quot;i,j,cptr,ptr=left*s0+offset&quot;];if(t.length&gt;1){for(var c=[],u=1;u&lt;t.length;++u)l.push(&quot;i&quot;+u),c.push(&quot;n&quot;+u);s?l.push(&quot;scratch=malloc(&quot;+c.join(&quot;*&quot;)+&quot;)&quot;):l.push(&quot;scratch=new Array(&quot;+c.join(&quot;*&quot;)+&quot;)&quot;),l.push(&quot;dptr&quot;,&quot;sptr&quot;,&quot;a&quot;,&quot;b&quot;)}else l.push(&quot;scratch&quot;);function f(t){return&quot;generic&quot;===e?[&quot;data.get(&quot;,t,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]&quot;].join(&quot;&quot;)}function h(t,r){return&quot;generic&quot;===e?[&quot;data.set(&quot;,t,&quot;,&quot;,r,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]=&quot;,r].join(&quot;&quot;)}if(r.push([&quot;function &quot;,n,&quot;(&quot;,i.join(&quot;,&quot;),&quot;){var &quot;,l.join(&quot;,&quot;)].join(&quot;&quot;),&quot;for(i=left+1;i&lt;=right;++i){&quot;,&quot;j=i;ptr+=s0&quot;,&quot;cptr=ptr&quot;),t.length&gt;1){r.push(&quot;dptr=0;sptr=ptr&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(&quot;scratch[dptr++]=&quot;,f(&quot;sptr&quot;));for(u=0;u&lt;t.length;++u){0!==(p=t[u])&amp;&amp;r.push(&quot;sptr+=d&quot;+p,&quot;}&quot;)}r.push(&quot;__g:while(j--\x3eleft){&quot;,&quot;dptr=0&quot;,&quot;sptr=cptr-s0&quot;);for(u=1;u&lt;t.length;++u)1===u&amp;&amp;r.push(&quot;__l:&quot;),r.push([&quot;for(i&quot;,u,&quot;=0;i&quot;,u,&quot;&lt;n&quot;,u,&quot;;++i&quot;,u,&quot;){&quot;].join(&quot;&quot;));r.push([&quot;a=&quot;,f(&quot;sptr&quot;),&quot;\nb=scratch[dptr]\nif(a&lt;b){break __g}\nif(a&gt;b){break __l}&quot;].join(&quot;&quot;));for(u=t.length-1;u&gt;=1;--u)r.push(&quot;sptr+=e&quot;+u,&quot;dptr+=f&quot;+u,&quot;}&quot;);r.push(&quot;dptr=cptr;sptr=cptr-s0&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(h(&quot;dptr&quot;,f(&quot;sptr&quot;)));for(u=0;u&lt;t.length;++u){0!==(p=t[u])&amp;&amp;r.push([&quot;dptr+=d&quot;,p,&quot;;sptr+=d&quot;,p].join(&quot;&quot;),&quot;}&quot;)}r.push(&quot;cptr-=s0\n}&quot;),r.push(&quot;dptr=cptr;sptr=0&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(h(&quot;dptr&quot;,&quot;scratch[sptr++]&quot;));for(u=0;u&lt;t.length;++u){var p;0!==(p=t[u])&amp;&amp;r.push(&quot;dptr+=d&quot;+p,&quot;}&quot;)}}else r.push(&quot;scratch=&quot;+f(&quot;ptr&quot;),&quot;while((j--\x3eleft)&amp;&amp;(&quot;+f(&quot;cptr-s0&quot;)+&quot;&gt;scratch)){&quot;,h(&quot;cptr&quot;,f(&quot;cptr-s0&quot;)),&quot;cptr-=s0&quot;,&quot;}&quot;,h(&quot;cptr&quot;,&quot;scratch&quot;));return r.push(&quot;}&quot;),t.length&gt;1&amp;&amp;s&amp;&amp;r.push(&quot;free(scratch)&quot;),r.push(&quot;} return &quot;+n),s?new Function(&quot;malloc&quot;,&quot;free&quot;,r.join(&quot;\n&quot;))(s[0],s[1]):new Function(r.join(&quot;\n&quot;))()}(t,e),y=function(t,e,r){var n=[&quot;'use strict'&quot;],s=[&quot;ndarrayQuickSort&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;),l=[&quot;left&quot;,&quot;right&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length)),c=a(e),u=0;n.push([&quot;function &quot;,s,&quot;(&quot;,l.join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));var f=[&quot;sixth=((right-left+1)/6)|0&quot;,&quot;index1=left+sixth&quot;,&quot;index5=right-sixth&quot;,&quot;index3=(left+right)&gt;&gt;1&quot;,&quot;index2=index3-sixth&quot;,&quot;index4=index3+sixth&quot;,&quot;el1=index1&quot;,&quot;el2=index2&quot;,&quot;el3=index3&quot;,&quot;el4=index4&quot;,&quot;el5=index5&quot;,&quot;less=left+1&quot;,&quot;great=right-1&quot;,&quot;pivots_are_equal=true&quot;,&quot;tmp&quot;,&quot;tmp0&quot;,&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;k&quot;,&quot;ptr0&quot;,&quot;ptr1&quot;,&quot;ptr2&quot;,&quot;comp_pivot1=0&quot;,&quot;comp_pivot2=0&quot;,&quot;comp=0&quot;];if(t.length&gt;1){for(var h=[],p=1;p&lt;t.length;++p)h.push(&quot;n&quot;+p),f.push(&quot;i&quot;+p);for(p=0;p&lt;8;++p)f.push(&quot;b_ptr&quot;+p);f.push(&quot;ptr3&quot;,&quot;ptr4&quot;,&quot;ptr5&quot;,&quot;ptr6&quot;,&quot;ptr7&quot;,&quot;pivot_ptr&quot;,&quot;ptr_shift&quot;,&quot;elementSize=&quot;+h.join(&quot;*&quot;)),c?f.push(&quot;pivot1=malloc(elementSize)&quot;,&quot;pivot2=malloc(elementSize)&quot;):f.push(&quot;pivot1=new Array(elementSize),pivot2=new Array(elementSize)&quot;)}else f.push(&quot;pivot1&quot;,&quot;pivot2&quot;);function d(t){return[&quot;(offset+&quot;,t,&quot;*s0)&quot;].join(&quot;&quot;)}function g(t){return&quot;generic&quot;===e?[&quot;data.get(&quot;,t,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]&quot;].join(&quot;&quot;)}function m(t,r){return&quot;generic&quot;===e?[&quot;data.set(&quot;,t,&quot;,&quot;,r,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]=&quot;,r].join(&quot;&quot;)}function v(e,r,i){if(1===e.length)n.push(&quot;ptr0=&quot;+d(e[0]));else for(var a=0;a&lt;e.length;++a)n.push([&quot;b_ptr&quot;,a,&quot;=s0*&quot;,e[a]].join(&quot;&quot;));r&amp;&amp;n.push(&quot;pivot_ptr=0&quot;),n.push(&quot;ptr_shift=offset&quot;);for(a=t.length-1;a&gt;=0;--a){0!==(o=t[a])&amp;&amp;n.push([&quot;for(i&quot;,o,&quot;=0;i&quot;,o,&quot;&lt;n&quot;,o,&quot;;++i&quot;,o,&quot;){&quot;].join(&quot;&quot;))}if(e.length&gt;1)for(a=0;a&lt;e.length;++a)n.push([&quot;ptr&quot;,a,&quot;=b_ptr&quot;,a,&quot;+ptr_shift&quot;].join(&quot;&quot;));n.push(i),r&amp;&amp;n.push(&quot;++pivot_ptr&quot;);for(a=0;a&lt;t.length;++a){var o;0!==(o=t[a])&amp;&amp;(e.length&gt;1?n.push(&quot;ptr_shift+=d&quot;+o):n.push(&quot;ptr0+=d&quot;+o),n.push(&quot;}&quot;))}}function y(e,r,i,a){if(1===r.length)n.push(&quot;ptr0=&quot;+d(r[0]));else{for(var o=0;o&lt;r.length;++o)n.push([&quot;b_ptr&quot;,o,&quot;=s0*&quot;,r[o]].join(&quot;&quot;));n.push(&quot;ptr_shift=offset&quot;)}i&amp;&amp;n.push(&quot;pivot_ptr=0&quot;),e&amp;&amp;n.push(e+&quot;:&quot;);for(o=1;o&lt;t.length;++o)n.push([&quot;for(i&quot;,o,&quot;=0;i&quot;,o,&quot;&lt;n&quot;,o,&quot;;++i&quot;,o,&quot;){&quot;].join(&quot;&quot;));if(r.length&gt;1)for(o=0;o&lt;r.length;++o)n.push([&quot;ptr&quot;,o,&quot;=b_ptr&quot;,o,&quot;+ptr_shift&quot;].join(&quot;&quot;));n.push(a);for(o=t.length-1;o&gt;=1;--o)i&amp;&amp;n.push(&quot;pivot_ptr+=f&quot;+o),r.length&gt;1?n.push(&quot;ptr_shift+=e&quot;+o):n.push(&quot;ptr0+=e&quot;+o),n.push(&quot;}&quot;)}function x(){t.length&gt;1&amp;&amp;c&amp;&amp;n.push(&quot;free(pivot1)&quot;,&quot;free(pivot2)&quot;)}function b(e,r){var i=&quot;el&quot;+e,a=&quot;el&quot;+r;if(t.length&gt;1){var o=&quot;__l&quot;+ ++u;y(o,[i,a],!1,[&quot;comp=&quot;,g(&quot;ptr0&quot;),&quot;-&quot;,g(&quot;ptr1&quot;),&quot;\n&quot;,&quot;if(comp&gt;0){tmp0=&quot;,i,&quot;;&quot;,i,&quot;=&quot;,a,&quot;;&quot;,a,&quot;=tmp0;break &quot;,o,&quot;}\n&quot;,&quot;if(comp&lt;0){break &quot;,o,&quot;}&quot;].join(&quot;&quot;))}else n.push([&quot;if(&quot;,g(d(i)),&quot;&gt;&quot;,g(d(a)),&quot;){tmp0=&quot;,i,&quot;;&quot;,i,&quot;=&quot;,a,&quot;;&quot;,a,&quot;=tmp0}&quot;].join(&quot;&quot;))}function _(e,r){t.length&gt;1?v([e,r],!1,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;))):n.push(m(d(e),g(d(r))))}function w(e,r,i){if(t.length&gt;1){var a=&quot;__l&quot;+ ++u;y(a,[r],!0,[e,&quot;=&quot;,g(&quot;ptr0&quot;),&quot;-pivot&quot;,i,&quot;[pivot_ptr]\n&quot;,&quot;if(&quot;,e,&quot;!==0){break &quot;,a,&quot;}&quot;].join(&quot;&quot;))}else n.push([e,&quot;=&quot;,g(d(r)),&quot;-pivot&quot;,i].join(&quot;&quot;))}function T(e,r){t.length&gt;1?v([e,r],!1,[&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,&quot;tmp&quot;)].join(&quot;&quot;)):n.push([&quot;ptr0=&quot;,d(e),&quot;\n&quot;,&quot;ptr1=&quot;,d(r),&quot;\n&quot;,&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,&quot;tmp&quot;)].join(&quot;&quot;))}function k(e,r,i){t.length&gt;1?(v([e,r,i],!1,[&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,g(&quot;ptr2&quot;)),&quot;\n&quot;,m(&quot;ptr2&quot;,&quot;tmp&quot;)].join(&quot;&quot;)),n.push(&quot;++&quot;+r,&quot;--&quot;+i)):n.push([&quot;ptr0=&quot;,d(e),&quot;\n&quot;,&quot;ptr1=&quot;,d(r),&quot;\n&quot;,&quot;ptr2=&quot;,d(i),&quot;\n&quot;,&quot;++&quot;,r,&quot;\n&quot;,&quot;--&quot;,i,&quot;\n&quot;,&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,g(&quot;ptr2&quot;)),&quot;\n&quot;,m(&quot;ptr2&quot;,&quot;tmp&quot;)].join(&quot;&quot;))}function M(t,e){T(t,e),n.push(&quot;--&quot;+e)}function A(e,r,i){t.length&gt;1?v([e,r],!0,[m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,[&quot;pivot&quot;,i,&quot;[pivot_ptr]&quot;].join(&quot;&quot;))].join(&quot;&quot;)):n.push(m(d(e),g(d(r))),m(d(r),&quot;pivot&quot;+i))}function S(e,r){n.push([&quot;if((&quot;,r,&quot;-&quot;,e,&quot;)&lt;=&quot;,i,&quot;){\n&quot;,&quot;insertionSort(&quot;,e,&quot;,&quot;,r,&quot;,data,offset,&quot;,o(t.length).join(&quot;,&quot;),&quot;)\n&quot;,&quot;}else{\n&quot;,s,&quot;(&quot;,e,&quot;,&quot;,r,&quot;,data,offset,&quot;,o(t.length).join(&quot;,&quot;),&quot;)\n&quot;,&quot;}&quot;].join(&quot;&quot;))}function E(e,r,i){t.length&gt;1?(n.push([&quot;__l&quot;,++u,&quot;:while(true){&quot;].join(&quot;&quot;)),v([e],!0,[&quot;if(&quot;,g(&quot;ptr0&quot;),&quot;!==pivot&quot;,r,&quot;[pivot_ptr]){break __l&quot;,u,&quot;}&quot;].join(&quot;&quot;)),n.push(i,&quot;}&quot;)):n.push([&quot;while(&quot;,g(d(e)),&quot;===pivot&quot;,r,&quot;){&quot;,i,&quot;}&quot;].join(&quot;&quot;))}return n.push(&quot;var &quot;+f.join(&quot;,&quot;)),b(1,2),b(4,5),b(1,3),b(2,3),b(1,4),b(3,4),b(2,5),b(2,3),b(4,5),t.length&gt;1?v([&quot;el1&quot;,&quot;el2&quot;,&quot;el3&quot;,&quot;el4&quot;,&quot;el5&quot;,&quot;index1&quot;,&quot;index3&quot;,&quot;index5&quot;],!0,[&quot;pivot1[pivot_ptr]=&quot;,g(&quot;ptr1&quot;),&quot;\n&quot;,&quot;pivot2[pivot_ptr]=&quot;,g(&quot;ptr3&quot;),&quot;\n&quot;,&quot;pivots_are_equal=pivots_are_equal&amp;&amp;(pivot1[pivot_ptr]===pivot2[pivot_ptr])\n&quot;,&quot;x=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,&quot;y=&quot;,g(&quot;ptr2&quot;),&quot;\n&quot;,&quot;z=&quot;,g(&quot;ptr4&quot;),&quot;\n&quot;,m(&quot;ptr5&quot;,&quot;x&quot;),&quot;\n&quot;,m(&quot;ptr6&quot;,&quot;y&quot;),&quot;\n&quot;,m(&quot;ptr7&quot;,&quot;z&quot;)].join(&quot;&quot;)):n.push([&quot;pivot1=&quot;,g(d(&quot;el2&quot;)),&quot;\n&quot;,&quot;pivot2=&quot;,g(d(&quot;el4&quot;)),&quot;\n&quot;,&quot;pivots_are_equal=pivot1===pivot2\n&quot;,&quot;x=&quot;,g(d(&quot;el1&quot;)),&quot;\n&quot;,&quot;y=&quot;,g(d(&quot;el3&quot;)),&quot;\n&quot;,&quot;z=&quot;,g(d(&quot;el5&quot;)),&quot;\n&quot;,m(d(&quot;index1&quot;),&quot;x&quot;),&quot;\n&quot;,m(d(&quot;index3&quot;),&quot;y&quot;),&quot;\n&quot;,m(d(&quot;index5&quot;),&quot;z&quot;)].join(&quot;&quot;)),_(&quot;index2&quot;,&quot;left&quot;),_(&quot;index4&quot;,&quot;right&quot;),n.push(&quot;if(pivots_are_equal){&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp&quot;,&quot;k&quot;,1),n.push(&quot;if(comp===0){continue}&quot;),n.push(&quot;if(comp&lt;0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&gt;0){&quot;),n.push(&quot;great--&quot;),n.push(&quot;}else if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;break&quot;),n.push(&quot;}else{&quot;),M(&quot;k&quot;,&quot;great&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}else{&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp_pivot1&quot;,&quot;k&quot;,1),n.push(&quot;if(comp_pivot1&lt;0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),w(&quot;comp_pivot2&quot;,&quot;k&quot;,2),n.push(&quot;if(comp_pivot2&gt;0){&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,2),n.push(&quot;if(comp&gt;0){&quot;),n.push(&quot;if(--great&lt;k){break}&quot;),n.push(&quot;continue&quot;),n.push(&quot;}else{&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;}else{&quot;),M(&quot;k&quot;,&quot;great&quot;),n.push(&quot;}&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),A(&quot;left&quot;,&quot;(less-1)&quot;,1),A(&quot;right&quot;,&quot;(great+1)&quot;,2),S(&quot;left&quot;,&quot;(less-2)&quot;),S(&quot;(great+2)&quot;,&quot;right&quot;),n.push(&quot;if(pivots_are_equal){&quot;),x(),n.push(&quot;return&quot;),n.push(&quot;}&quot;),n.push(&quot;if(less&lt;index1&amp;&amp;great&gt;index5){&quot;),E(&quot;less&quot;,1,&quot;++less&quot;),E(&quot;great&quot;,2,&quot;--great&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp_pivot1&quot;,&quot;k&quot;,1),n.push(&quot;if(comp_pivot1===0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),w(&quot;comp_pivot2&quot;,&quot;k&quot;,2),n.push(&quot;if(comp_pivot2===0){&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,2),n.push(&quot;if(comp===0){&quot;),n.push(&quot;if(--great&lt;k){break}&quot;),n.push(&quot;continue&quot;),n.push(&quot;}else{&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;}else{&quot;),M(&quot;k&quot;,&quot;great&quot;),n.push(&quot;}&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),x(),S(&quot;less&quot;,&quot;great&quot;),n.push(&quot;}return &quot;+s),t.length&gt;1&amp;&amp;c?new Function(&quot;insertionSort&quot;,&quot;malloc&quot;,&quot;free&quot;,n.join(&quot;\n&quot;))(r,c[0],c[1]):new Function(&quot;insertionSort&quot;,n.join(&quot;\n&quot;))(r)}(t,e,v);return m(v,y)}},{&quot;typedarray-pool&quot;:595}],494:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/compile_sort.js&quot;),i={};e.exports=function(t){var e=t.order,r=t.dtype,a=[e,r].join(&quot;:&quot;),o=i[a];return o||(i[a]=o=n(e,r)),o(t),t}},{&quot;./lib/compile_sort.js&quot;:493}],495:[function(t,e,r){var n=t(&quot;iota-array&quot;),i=t(&quot;is-buffer&quot;),a=&quot;undefined&quot;!=typeof Float64Array;function o(t,e){return t[0]-e[0]}function s(){var t,e=this.stride,r=new Array(e.length);for(t=0;t&lt;r.length;++t)r[t]=[Math.abs(e[t]),t];r.sort(o);var n=new Array(r.length);for(t=0;t&lt;n.length;++t)n[t]=r[t][1];return n}function l(t,e){var r=[&quot;View&quot;,e,&quot;d&quot;,t].join(&quot;&quot;);e&lt;0&amp;&amp;(r=&quot;View_Nil&quot;+t);var i=&quot;generic&quot;===t;if(-1===e){var a=&quot;function &quot;+r+&quot;(a){this.data=a;};var proto=&quot;+r+&quot;.prototype;proto.dtype='&quot;+t+&quot;';proto.index=function(){return -1};proto.size=0;proto.dimension=-1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function(){return new &quot;+r+&quot;(this.data);};proto.get=proto.set=function(){};proto.pick=function(){return null};return function construct_&quot;+r+&quot;(a){return new &quot;+r+&quot;(a);}&quot;;return new Function(a)()}if(0===e){a=&quot;function &quot;+r+&quot;(a,d) {this.data = a;this.offset = d};var proto=&quot;+r+&quot;.prototype;proto.dtype='&quot;+t+&quot;';proto.index=function(){return this.offset};proto.dimension=0;proto.size=1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function &quot;+r+&quot;_copy() {return new &quot;+r+&quot;(this.data,this.offset)};proto.pick=function &quot;+r+&quot;_pick(){return TrivialArray(this.data);};proto.valueOf=proto.get=function &quot;+r+&quot;_get(){return &quot;+(i?&quot;this.data.get(this.offset)&quot;:&quot;this.data[this.offset]&quot;)+&quot;};proto.set=function &quot;+r+&quot;_set(v){return &quot;+(i?&quot;this.data.set(this.offset,v)&quot;:&quot;this.data[this.offset]=v&quot;)+&quot;};return function construct_&quot;+r+&quot;(a,b,c,d){return new &quot;+r+&quot;(a,d)}&quot;;return new Function(&quot;TrivialArray&quot;,a)(c[t][0])}a=[&quot;'use strict'&quot;];var o=n(e),l=o.map((function(t){return&quot;i&quot;+t})),u=&quot;this.offset+&quot;+o.map((function(t){return&quot;this.stride[&quot;+t+&quot;]*i&quot;+t})).join(&quot;+&quot;),f=o.map((function(t){return&quot;b&quot;+t})).join(&quot;,&quot;),h=o.map((function(t){return&quot;c&quot;+t})).join(&quot;,&quot;);a.push(&quot;function &quot;+r+&quot;(a,&quot;+f+&quot;,&quot;+h+&quot;,d){this.data=a&quot;,&quot;this.shape=[&quot;+f+&quot;]&quot;,&quot;this.stride=[&quot;+h+&quot;]&quot;,&quot;this.offset=d|0}&quot;,&quot;var proto=&quot;+r+&quot;.prototype&quot;,&quot;proto.dtype='&quot;+t+&quot;'&quot;,&quot;proto.dimension=&quot;+e),a.push(&quot;Object.defineProperty(proto,'size',{get:function &quot;+r+&quot;_size(){return &quot;+o.map((function(t){return&quot;this.shape[&quot;+t+&quot;]&quot;})).join(&quot;*&quot;),&quot;}})&quot;),1===e?a.push(&quot;proto.order=[0]&quot;):(a.push(&quot;Object.defineProperty(proto,'order',{get:&quot;),e&lt;4?(a.push(&quot;function &quot;+r+&quot;_order(){&quot;),2===e?a.push(&quot;return (Math.abs(this.stride[0])&gt;Math.abs(this.stride[1]))?[1,0]:[0,1]}})&quot;):3===e&amp;&amp;a.push(&quot;var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0&gt;s1){if(s1&gt;s2){return [2,1,0];}else if(s0&gt;s2){return [1,2,0];}else{return [1,0,2];}}else if(s0&gt;s2){return [2,0,1];}else if(s2&gt;s1){return [0,1,2];}else{return [0,2,1];}}})&quot;)):a.push(&quot;ORDER})&quot;)),a.push(&quot;proto.set=function &quot;+r+&quot;_set(&quot;+l.join(&quot;,&quot;)+&quot;,v){&quot;),i?a.push(&quot;return this.data.set(&quot;+u+&quot;,v)}&quot;):a.push(&quot;return this.data[&quot;+u+&quot;]=v}&quot;),a.push(&quot;proto.get=function &quot;+r+&quot;_get(&quot;+l.join(&quot;,&quot;)+&quot;){&quot;),i?a.push(&quot;return this.data.get(&quot;+u+&quot;)}&quot;):a.push(&quot;return this.data[&quot;+u+&quot;]}&quot;),a.push(&quot;proto.index=function &quot;+r+&quot;_index(&quot;,l.join(),&quot;){return &quot;+u+&quot;}&quot;),a.push(&quot;proto.hi=function &quot;+r+&quot;_hi(&quot;+l.join(&quot;,&quot;)+&quot;){return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return[&quot;(typeof i&quot;,t,&quot;!=='number'||i&quot;,t,&quot;&lt;0)?this.shape[&quot;,t,&quot;]:i&quot;,t,&quot;|0&quot;].join(&quot;&quot;)})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;this.stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,this.offset)}&quot;);var p=o.map((function(t){return&quot;a&quot;+t+&quot;=this.shape[&quot;+t+&quot;]&quot;})),d=o.map((function(t){return&quot;c&quot;+t+&quot;=this.stride[&quot;+t+&quot;]&quot;}));a.push(&quot;proto.lo=function &quot;+r+&quot;_lo(&quot;+l.join(&quot;,&quot;)+&quot;){var b=this.offset,d=0,&quot;+p.join(&quot;,&quot;)+&quot;,&quot;+d.join(&quot;,&quot;));for(var g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'&amp;&amp;i&quot;+g+&quot;&gt;=0){d=i&quot;+g+&quot;|0;b+=c&quot;+g+&quot;*d;a&quot;+g+&quot;-=d}&quot;);a.push(&quot;return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return&quot;a&quot;+t})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;c&quot;+t})).join(&quot;,&quot;)+&quot;,b)}&quot;),a.push(&quot;proto.step=function &quot;+r+&quot;_step(&quot;+l.join(&quot;,&quot;)+&quot;){var &quot;+o.map((function(t){return&quot;a&quot;+t+&quot;=this.shape[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;b&quot;+t+&quot;=this.stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,c=this.offset,d=0,ceil=Math.ceil&quot;);for(g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'){d=i&quot;+g+&quot;|0;if(d&lt;0){c+=b&quot;+g+&quot;*(a&quot;+g+&quot;-1);a&quot;+g+&quot;=ceil(-a&quot;+g+&quot;/d)}else{a&quot;+g+&quot;=ceil(a&quot;+g+&quot;/d)}b&quot;+g+&quot;*=d}&quot;);a.push(&quot;return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return&quot;a&quot;+t})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;b&quot;+t})).join(&quot;,&quot;)+&quot;,c)}&quot;);var m=new Array(e),v=new Array(e);for(g=0;g&lt;e;++g)m[g]=&quot;a[i&quot;+g+&quot;]&quot;,v[g]=&quot;b[i&quot;+g+&quot;]&quot;;a.push(&quot;proto.transpose=function &quot;+r+&quot;_transpose(&quot;+l+&quot;){&quot;+l.map((function(t,e){return t+&quot;=(&quot;+t+&quot;===undefined?&quot;+e+&quot;:&quot;+t+&quot;|0)&quot;})).join(&quot;;&quot;),&quot;var a=this.shape,b=this.stride;return new &quot;+r+&quot;(this.data,&quot;+m.join(&quot;,&quot;)+&quot;,&quot;+v.join(&quot;,&quot;)+&quot;,this.offset)}&quot;),a.push(&quot;proto.pick=function &quot;+r+&quot;_pick(&quot;+l+&quot;){var a=[],b=[],c=this.offset&quot;);for(g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'&amp;&amp;i&quot;+g+&quot;&gt;=0){c=(c+this.stride[&quot;+g+&quot;]*i&quot;+g+&quot;)|0}else{a.push(this.shape[&quot;+g+&quot;]);b.push(this.stride[&quot;+g+&quot;])}&quot;);return a.push(&quot;var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}&quot;),a.push(&quot;return function construct_&quot;+r+&quot;(data,shape,stride,offset){return new &quot;+r+&quot;(data,&quot;+o.map((function(t){return&quot;shape[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,offset)}&quot;),new Function(&quot;CTOR_LIST&quot;,&quot;ORDER&quot;,a.join(&quot;\n&quot;))(c[t],s)}var c={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],bigint64:[],biguint64:[],buffer:[],generic:[]};e.exports=function(t,e,r,n){if(void 0===t)return(0,c.array[0])([]);&quot;number&quot;==typeof t&amp;&amp;(t=[t]),void 0===e&amp;&amp;(e=[t.length]);var o=e.length;if(void 0===r){r=new Array(o);for(var s=o-1,u=1;s&gt;=0;--s)r[s]=u,u*=e[s]}if(void 0===n){n=0;for(s=0;s&lt;o;++s)r[s]&lt;0&amp;&amp;(n-=(e[s]-1)*r[s])}for(var f=function(t){if(i(t))return&quot;buffer&quot;;if(a)switch(Object.prototype.toString.call(t)){case&quot;[object Float64Array]&quot;:return&quot;float64&quot;;case&quot;[object Float32Array]&quot;:return&quot;float32&quot;;case&quot;[object Int8Array]&quot;:return&quot;int8&quot;;case&quot;[object Int16Array]&quot;:return&quot;int16&quot;;case&quot;[object Int32Array]&quot;:return&quot;int32&quot;;case&quot;[object Uint8Array]&quot;:return&quot;uint8&quot;;case&quot;[object Uint16Array]&quot;:return&quot;uint16&quot;;case&quot;[object Uint32Array]&quot;:return&quot;uint32&quot;;case&quot;[object Uint8ClampedArray]&quot;:return&quot;uint8_clamped&quot;;case&quot;[object BigInt64Array]&quot;:return&quot;bigint64&quot;;case&quot;[object BigUint64Array]&quot;:return&quot;biguint64&quot;}return Array.isArray(t)?&quot;array&quot;:&quot;generic&quot;}(t),h=c[f];h.length&lt;=o+1;)h.push(l(f,h.length-1));return(0,h[o+1])(t,e,r,n)}},{&quot;iota-array&quot;:463,&quot;is-buffer&quot;:465}],496:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;double-bits&quot;),i=Math.pow(2,-1074);e.exports=function(t,e){if(isNaN(t)||isNaN(e))return NaN;if(t===e)return t;if(0===t)return e&lt;0?-i:i;var r=n.hi(t),a=n.lo(t);e&gt;t==t&gt;0?a===-1&gt;&gt;&gt;0?(r+=1,a=0):a+=1:0===a?(a=-1&gt;&gt;&gt;0,r-=1):a-=1;return n.pack(a,r)}},{&quot;double-bits&quot;:173}],497:[function(t,e,r){var n=Math.PI,i=c(120);function a(t,e,r,n){return[&quot;C&quot;,t,e,r,n,r,n]}function o(t,e,r,n,i,a){return[&quot;C&quot;,t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function s(t,e,r,a,o,c,u,f,h,p){if(p)T=p[0],k=p[1],_=p[2],w=p[3];else{var d=l(t,e,-o);t=d.x,e=d.y;var g=(t-(f=(d=l(f,h,-o)).x))/2,m=(e-(h=d.y))/2,v=g*g/(r*r)+m*m/(a*a);v&gt;1&amp;&amp;(r*=v=Math.sqrt(v),a*=v);var y=r*r,x=a*a,b=(c==u?-1:1)*Math.sqrt(Math.abs((y*x-y*m*m-x*g*g)/(y*m*m+x*g*g)));b==1/0&amp;&amp;(b=1);var _=b*r*m/a+(t+f)/2,w=b*-a*g/r+(e+h)/2,T=Math.asin(((e-w)/a).toFixed(9)),k=Math.asin(((h-w)/a).toFixed(9));(T=t&lt;_?n-T:T)&lt;0&amp;&amp;(T=2*n+T),(k=f&lt;_?n-k:k)&lt;0&amp;&amp;(k=2*n+k),u&amp;&amp;T&gt;k&amp;&amp;(T-=2*n),!u&amp;&amp;k&gt;T&amp;&amp;(k-=2*n)}if(Math.abs(k-T)&gt;i){var M=k,A=f,S=h;k=T+i*(u&amp;&amp;k&gt;T?1:-1);var E=s(f=_+r*Math.cos(k),h=w+a*Math.sin(k),r,a,o,0,u,A,S,[k,M,_,w])}var C=Math.tan((k-T)/4),L=4/3*r*C,I=4/3*a*C,P=[2*t-(t+L*Math.sin(T)),2*e-(e-I*Math.cos(T)),f+L*Math.sin(k),h-I*Math.cos(k),f,h];if(p)return P;E&amp;&amp;(P=P.concat(E));for(var z=0;z&lt;P.length;){var O=l(P[z],P[z+1],o);P[z++]=O.x,P[z++]=O.y}return P}function l(t,e,r){return{x:t*Math.cos(r)-e*Math.sin(r),y:t*Math.sin(r)+e*Math.cos(r)}}function c(t){return t*(n/180)}e.exports=function(t){for(var e,r=[],n=0,i=0,l=0,u=0,f=null,h=null,p=0,d=0,g=0,m=t.length;g&lt;m;g++){var v=t[g],y=v[0];switch(y){case&quot;M&quot;:l=v[1],u=v[2];break;case&quot;A&quot;:(v=s(p,d,v[1],v[2],c(v[3]),v[4],v[5],v[6],v[7])).unshift(&quot;C&quot;),v.length&gt;7&amp;&amp;(r.push(v.splice(0,7)),v.unshift(&quot;C&quot;));break;case&quot;S&quot;:var x=p,b=d;&quot;C&quot;!=e&amp;&amp;&quot;S&quot;!=e||(x+=x-n,b+=b-i),v=[&quot;C&quot;,x,b,v[1],v[2],v[3],v[4]];break;case&quot;T&quot;:&quot;Q&quot;==e||&quot;T&quot;==e?(f=2*p-f,h=2*d-h):(f=p,h=d),v=o(p,d,f,h,v[1],v[2]);break;case&quot;Q&quot;:f=v[1],h=v[2],v=o(p,d,v[1],v[2],v[3],v[4]);break;case&quot;L&quot;:v=a(p,d,v[1],v[2]);break;case&quot;H&quot;:v=a(p,d,v[1],d);break;case&quot;V&quot;:v=a(p,d,p,v[1]);break;case&quot;Z&quot;:v=a(p,d,l,u)}e=y,p=v[v.length-2],d=v[v.length-1],v.length&gt;4?(n=v[v.length-4],i=v[v.length-3]):(n=p,i=d),r.push(v)}return r}},{}],498:[function(t,e,r){r.vertexNormals=function(t,e,r){for(var n=e.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o&lt;n;++o)i[o]=[0,0,0];for(o=0;o&lt;t.length;++o)for(var s=t[o],l=0,c=s[s.length-1],u=s[0],f=0;f&lt;s.length;++f){l=c,c=u,u=s[(f+1)%s.length];for(var h=e[l],p=e[c],d=e[u],g=new Array(3),m=0,v=new Array(3),y=0,x=0;x&lt;3;++x)g[x]=h[x]-p[x],m+=g[x]*g[x],v[x]=d[x]-p[x],y+=v[x]*v[x];if(m*y&gt;a){var b=i[c],_=1/Math.sqrt(m*y);for(x=0;x&lt;3;++x){var w=(x+1)%3,T=(x+2)%3;b[x]+=_*(v[w]*g[T]-v[T]*g[w])}}}for(o=0;o&lt;n;++o){b=i[o];var k=0;for(x=0;x&lt;3;++x)k+=b[x]*b[x];if(k&gt;a)for(_=1/Math.sqrt(k),x=0;x&lt;3;++x)b[x]*=_;else for(x=0;x&lt;3;++x)b[x]=0}return i},r.faceNormals=function(t,e,r){for(var n=t.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o&lt;n;++o){for(var s=t[o],l=new Array(3),c=0;c&lt;3;++c)l[c]=e[s[c]];var u=new Array(3),f=new Array(3);for(c=0;c&lt;3;++c)u[c]=l[1][c]-l[0][c],f[c]=l[2][c]-l[0][c];var h=new Array(3),p=0;for(c=0;c&lt;3;++c){var d=(c+1)%3,g=(c+2)%3;h[c]=u[d]*f[g]-u[g]*f[d],p+=h[c]*h[c]}p=p&gt;a?1/Math.sqrt(p):0;for(c=0;c&lt;3;++c)h[c]*=p;i[o]=h}return i}},{}],499:[function(t,e,r){
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
&quot;use strict&quot;;var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError(&quot;Object.assign cannot be called with null or undefined&quot;);return Object(t)}e.exports=function(){try{if(!Object.assign)return!1;var t=new String(&quot;abc&quot;);if(t[5]=&quot;de&quot;,&quot;5&quot;===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r&lt;10;r++)e[&quot;_&quot;+String.fromCharCode(r)]=r;if(&quot;0123456789&quot;!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(&quot;&quot;))return!1;var n={};return&quot;abcdefghijklmnopqrst&quot;.split(&quot;&quot;).forEach((function(t){n[t]=t})),&quot;abcdefghijklmnopqrst&quot;===Object.keys(Object.assign({},n)).join(&quot;&quot;)}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,l=o(t),c=1;c&lt;arguments.length;c++){for(var u in r=Object(arguments[c]))i.call(r,u)&amp;&amp;(l[u]=r[u]);if(n){s=n(r);for(var f=0;f&lt;s.length;f++)a.call(r,s[f])&amp;&amp;(l[s[f]]=r[s[f]])}}return l}},{}],500:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a,o,s,l,c){var u=e+a+c;if(f&gt;0){var f=Math.sqrt(u+1);t[0]=.5*(o-l)/f,t[1]=.5*(s-n)/f,t[2]=.5*(r-a)/f,t[3]=.5*f}else{var h=Math.max(e,a,c);f=Math.sqrt(2*h-u+1);e&gt;=h?(t[0]=.5*f,t[1]=.5*(i+r)/f,t[2]=.5*(s+n)/f,t[3]=.5*(o-l)/f):a&gt;=h?(t[0]=.5*(r+i)/f,t[1]=.5*f,t[2]=.5*(l+o)/f,t[3]=.5*(s-n)/f):(t[0]=.5*(n+s)/f,t[1]=.5*(o+l)/f,t[2]=.5*f,t[3]=.5*(r-i)/f)}return t}},{}],501:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.rotation||[0,0,0,1],n=t.radius||1;e=[].slice.call(e,0,3),u(r=[].slice.call(r,0,4),r);var i=new f(r,e,Math.log(n));i.setDistanceLimits(t.zoomMin,t.zoomMax),(&quot;eye&quot;in t||&quot;up&quot;in t)&amp;&amp;i.lookAt(0,t.eye,t.center,t.up);return i};var n=t(&quot;filtered-vector&quot;),i=t(&quot;gl-mat4/lookAt&quot;),a=t(&quot;gl-mat4/fromQuat&quot;),o=t(&quot;gl-mat4/invert&quot;),s=t(&quot;./lib/quatFromFrame&quot;);function l(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function c(t,e,r,n){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2)+Math.pow(n,2))}function u(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=c(r,n,i,a);o&gt;1e-6?(t[0]=r/o,t[1]=n/o,t[2]=i/o,t[3]=a/o):(t[0]=t[1]=t[2]=0,t[3]=1)}function f(t,e,r){this.radius=n([r]),this.center=n(e),this.rotation=n(t),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var h=f.prototype;h.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},h.recalcMatrix=function(t){this.radius.curve(t),this.center.curve(t),this.rotation.curve(t);var e=this.computedRotation;u(e,e);var r=this.computedMatrix;a(r,e);var n=this.computedCenter,i=this.computedEye,o=this.computedUp,s=Math.exp(this.computedRadius[0]);i[0]=n[0]+s*r[2],i[1]=n[1]+s*r[6],i[2]=n[2]+s*r[10],o[0]=r[1],o[1]=r[5],o[2]=r[9];for(var l=0;l&lt;3;++l){for(var c=0,f=0;f&lt;3;++f)c+=r[l+4*f]*i[f];r[12+l]=-c}},h.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n&lt;16;++n)e[n]=r[n];return e}return r},h.idle=function(t){this.center.idle(t),this.radius.idle(t),this.rotation.idle(t)},h.flush=function(t){this.center.flush(t),this.radius.flush(t),this.rotation.flush(t)},h.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=i[1],o=i[5],s=i[9],c=l(a,o,s);a/=c,o/=c,s/=c;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=l(u-=a*p,f-=o*p,h-=s*p);u/=d,f/=d,h/=d;var g=i[2],m=i[6],v=i[10],y=g*a+m*o+v*s,x=g*u+m*f+v*h,b=l(g-=y*a+x*u,m-=y*o+x*f,v-=y*s+x*h);g/=b,m/=b,v/=b;var _=u*e+a*r,w=f*e+o*r,T=h*e+s*r;this.center.move(t,_,w,T);var k=Math.exp(this.computedRadius[0]);k=Math.max(1e-4,k+n),this.radius.set(t,Math.log(k))},h.rotate=function(t,e,r,n){this.recalcMatrix(t),e=e||0,r=r||0;var i=this.computedMatrix,a=i[0],o=i[4],s=i[8],u=i[1],f=i[5],h=i[9],p=i[2],d=i[6],g=i[10],m=e*a+r*u,v=e*o+r*f,y=e*s+r*h,x=-(d*y-g*v),b=-(g*m-p*y),_=-(p*v-d*m),w=Math.sqrt(Math.max(0,1-Math.pow(x,2)-Math.pow(b,2)-Math.pow(_,2))),T=c(x,b,_,w);T&gt;1e-6?(x/=T,b/=T,_/=T,w/=T):(x=b=_=0,w=1);var k=this.computedRotation,M=k[0],A=k[1],S=k[2],E=k[3],C=M*w+E*x+A*_-S*b,L=A*w+E*b+S*x-M*_,I=S*w+E*_+M*b-A*x,P=E*w-M*x-A*b-S*_;if(n){x=p,b=d,_=g;var z=Math.sin(n)/l(x,b,_);x*=z,b*=z,_*=z,P=P*(w=Math.cos(e))-(C=C*w+P*x+L*_-I*b)*x-(L=L*w+P*b+I*x-C*_)*b-(I=I*w+P*_+C*b-L*x)*_}var O=c(C,L,I,P);O&gt;1e-6?(C/=O,L/=O,I/=O,P/=O):(C=L=I=0,P=1),this.rotation.set(t,C,L,I,P)},h.lookAt=function(t,e,r,n){this.recalcMatrix(t),r=r||this.computedCenter,e=e||this.computedEye,n=n||this.computedUp;var a=this.computedMatrix;i(a,e,r,n);var o=this.computedRotation;s(o,a[0],a[1],a[2],a[4],a[5],a[6],a[8],a[9],a[10]),u(o,o),this.rotation.set(t,o[0],o[1],o[2],o[3]);for(var l=0,c=0;c&lt;3;++c)l+=Math.pow(r[c]-e[c],2);this.radius.set(t,.5*Math.log(Math.max(l,1e-6))),this.center.set(t,r[0],r[1],r[2])},h.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},h.setMatrix=function(t,e){var r=this.computedRotation;s(r,e[0],e[1],e[2],e[4],e[5],e[6],e[8],e[9],e[10]),u(r,r),this.rotation.set(t,r[0],r[1],r[2],r[3]);var n=this.computedMatrix;o(n,e);var i=n[15];if(Math.abs(i)&gt;1e-6){var a=n[12]/i,l=n[13]/i,c=n[14]/i;this.recalcMatrix(t);var f=Math.exp(this.computedRadius[0]);this.center.set(t,a-n[2]*f,l-n[6]*f,c-n[10]*f),this.radius.idle(t)}else this.center.idle(t),this.radius.idle(t)},h.setDistance=function(t,e){e&gt;0&amp;&amp;this.radius.set(t,Math.log(e))},h.setDistanceLimits=function(t,e){t=t&gt;0?Math.log(t):-1/0,e=e&gt;0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},h.getDistanceLimits=function(t){var e=this.radius.bounds;return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},h.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},h.fromJSON=function(t){var e=this.lastT(),r=t.center;r&amp;&amp;this.center.set(e,r[0],r[1],r[2]);var n=t.rotation;n&amp;&amp;this.rotation.set(e,n[0],n[1],n[2],n[3]);var i=t.distance;i&amp;&amp;i&gt;0&amp;&amp;this.radius.set(e,Math.log(i)),this.setDistanceLimits(t.zoomMin,t.zoomMax)}},{&quot;./lib/quatFromFrame&quot;:500,&quot;filtered-vector&quot;:242,&quot;gl-mat4/fromQuat&quot;:282,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/lookAt&quot;:294}],502:[function(t,e,r){
/*!
 * pad-left &lt;https://github.com/jonschlinkert/pad-left&gt;
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT license.
 */
&quot;use strict&quot;;var n=t(&quot;repeat-string&quot;);e.exports=function(t,e,r){return n(r=&quot;undefined&quot;!=typeof r?r+&quot;&quot;:&quot; &quot;,e)+t}},{&quot;repeat-string&quot;:541}],503:[function(t,e,r){&quot;use strict&quot;;function n(t,e){if(&quot;string&quot;!=typeof t)return[t];var r=[t];&quot;string&quot;==typeof e||Array.isArray(e)?e={brackets:e}:e||(e={});var n=e.brackets?Array.isArray(e.brackets)?e.brackets:[e.brackets]:[&quot;{}&quot;,&quot;[]&quot;,&quot;()&quot;],i=e.escape||&quot;___&quot;,a=!!e.flat;n.forEach((function(t){var e=new RegExp([&quot;\\&quot;,t[0],&quot;[^\\&quot;,t[0],&quot;\\&quot;,t[1],&quot;]*\\&quot;,t[1]].join(&quot;&quot;)),n=[];function a(e,a,o){var s=r.push(e.slice(t[0].length,-t[1].length))-1;return n.push(s),i+s+i}r.forEach((function(t,n){for(var i,o=0;t!=i;)if(i=t,t=t.replace(e,a),o++&gt;1e4)throw Error(&quot;References have circular dependency. Please, check them.&quot;);r[n]=t})),n=n.reverse(),r=r.map((function(e){return n.forEach((function(r){e=e.replace(new RegExp(&quot;(\\&quot;+i+r+&quot;\\&quot;+i+&quot;)&quot;,&quot;g&quot;),t[0]+&quot;$1&quot;+t[1])})),e}))}));var o=new RegExp(&quot;\\&quot;+i+&quot;([0-9]+)\\&quot;+i);return a?r:function t(e,r,n){for(var i,a=[],s=0;i=o.exec(e);){if(s++&gt;1e4)throw Error(&quot;Circular references in parenthesis&quot;);a.push(e.slice(0,i.index)),a.push(t(r[i[1]],r)),e=e.slice(i.index+i[0].length)}return a.push(e),a}(r[0],r)}function i(t,e){if(e&amp;&amp;e.flat){var r,n=e&amp;&amp;e.escape||&quot;___&quot;,i=t[0];if(!i)return&quot;&quot;;for(var a=new RegExp(&quot;\\&quot;+n+&quot;([0-9]+)\\&quot;+n),o=0;i!=r;){if(o++&gt;1e4)throw Error(&quot;Circular references in &quot;+t);r=i,i=i.replace(a,s)}return i}return t.reduce((function t(e,r){return Array.isArray(r)&amp;&amp;(r=r.reduce(t,&quot;&quot;)),e+r}),&quot;&quot;);function s(e,r){if(null==t[r])throw Error(&quot;Reference &quot;+r+&quot;is undefined&quot;);return t[r]}}function a(t,e){return Array.isArray(t)?i(t,e):n(t,e)}a.parse=n,a.stringify=i,e.exports=a},{}],504:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;);e.exports=function(t){var e;arguments.length&gt;1&amp;&amp;(t=arguments);&quot;string&quot;==typeof t?t=t.split(/\s/).map(parseFloat):&quot;number&quot;==typeof t&amp;&amp;(t=[t]);t.length&amp;&amp;&quot;number&quot;==typeof t[0]?e=1===t.length?{width:t[0],height:t[0],x:0,y:0}:2===t.length?{width:t[0],height:t[1],x:0,y:0}:{x:t[0],y:t[1],width:t[2]-t[0]||0,height:t[3]-t[1]||0}:t&amp;&amp;(t=n(t,{left:&quot;x l left Left&quot;,top:&quot;y t top Top&quot;,width:&quot;w width W Width&quot;,height:&quot;h height W Width&quot;,bottom:&quot;b bottom Bottom&quot;,right:&quot;r right Right&quot;}),e={x:t.left||0,y:t.top||0},null==t.width?t.right?e.width=t.right-e.x:e.width=0:e.width=t.width,null==t.height?t.bottom?e.height=t.bottom-e.y:e.height=0:e.height=t.height);return e}},{&quot;pick-by-alias&quot;:511}],505:[function(t,e,r){e.exports=function(t){var e=[];return t.replace(i,(function(t,r,i){var o=r.toLowerCase();for(i=function(t){var e=t.match(a);return e?e.map(Number):[]}(i),&quot;m&quot;==o&amp;&amp;i.length&gt;2&amp;&amp;(e.push([r].concat(i.splice(0,2))),o=&quot;l&quot;,r=&quot;m&quot;==r?&quot;l&quot;:&quot;L&quot;);;){if(i.length==n[o])return i.unshift(r),e.push(i);if(i.length&lt;n[o])throw new Error(&quot;malformed path data&quot;);e.push([r].concat(i.splice(0,n[o])))}})),e};var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var a=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},{}],506:[function(t,e,r){e.exports=function(t,e){e||(e=[0,&quot;&quot;]),t=String(t);var r=parseFloat(t,10);return e[0]=r,e[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||&quot;&quot;,e}},{}],507:[function(t,e,r){(function(t){(function(){&quot;use strict&quot;;function r(t){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;Path must be a string. Received &quot;+JSON.stringify(t))}function n(t,e){for(var r,n=&quot;&quot;,i=0,a=-1,o=0,s=0;s&lt;=t.length;++s){if(s&lt;t.length)r=t.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(a===s-1||1===o);else if(a!==s-1&amp;&amp;2===o){if(n.length&lt;2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length&gt;2){var l=n.lastIndexOf(&quot;/&quot;);if(l!==n.length-1){-1===l?(n=&quot;&quot;,i=0):i=(n=n.slice(0,l)).length-1-n.lastIndexOf(&quot;/&quot;),a=s,o=0;continue}}else if(2===n.length||1===n.length){n=&quot;&quot;,i=0,a=s,o=0;continue}e&amp;&amp;(n.length&gt;0?n+=&quot;/..&quot;:n=&quot;..&quot;,i=2)}else n.length&gt;0?n+=&quot;/&quot;+t.slice(a+1,s):n=t.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===r&amp;&amp;-1!==o?++o:o=-1}return n}var i={resolve:function(){for(var e,i=&quot;&quot;,a=!1,o=arguments.length-1;o&gt;=-1&amp;&amp;!a;o--){var s;o&gt;=0?s=arguments[o]:(void 0===e&amp;&amp;(e=t.cwd()),s=e),r(s),0!==s.length&amp;&amp;(i=s+&quot;/&quot;+i,a=47===s.charCodeAt(0))}return i=n(i,!a),a?i.length&gt;0?&quot;/&quot;+i:&quot;/&quot;:i.length&gt;0?i:&quot;.&quot;},normalize:function(t){if(r(t),0===t.length)return&quot;.&quot;;var e=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1);return 0!==(t=n(t,!e)).length||e||(t=&quot;.&quot;),t.length&gt;0&amp;&amp;i&amp;&amp;(t+=&quot;/&quot;),e?&quot;/&quot;+t:t},isAbsolute:function(t){return r(t),t.length&gt;0&amp;&amp;47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return&quot;.&quot;;for(var t,e=0;e&lt;arguments.length;++e){var n=arguments[e];r(n),n.length&gt;0&amp;&amp;(void 0===t?t=n:t+=&quot;/&quot;+n)}return void 0===t?&quot;.&quot;:i.normalize(t)},relative:function(t,e){if(r(t),r(e),t===e)return&quot;&quot;;if((t=i.resolve(t))===(e=i.resolve(e)))return&quot;&quot;;for(var n=1;n&lt;t.length&amp;&amp;47===t.charCodeAt(n);++n);for(var a=t.length,o=a-n,s=1;s&lt;e.length&amp;&amp;47===e.charCodeAt(s);++s);for(var l=e.length-s,c=o&lt;l?o:l,u=-1,f=0;f&lt;=c;++f){if(f===c){if(l&gt;c){if(47===e.charCodeAt(s+f))return e.slice(s+f+1);if(0===f)return e.slice(s+f)}else o&gt;c&amp;&amp;(47===t.charCodeAt(n+f)?u=f:0===f&amp;&amp;(u=0));break}var h=t.charCodeAt(n+f);if(h!==e.charCodeAt(s+f))break;47===h&amp;&amp;(u=f)}var p=&quot;&quot;;for(f=n+u+1;f&lt;=a;++f)f!==a&amp;&amp;47!==t.charCodeAt(f)||(0===p.length?p+=&quot;..&quot;:p+=&quot;/..&quot;);return p.length&gt;0?p+e.slice(s+u):(s+=u,47===e.charCodeAt(s)&amp;&amp;++s,e.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(r(t),0===t.length)return&quot;.&quot;;for(var e=t.charCodeAt(0),n=47===e,i=-1,a=!0,o=t.length-1;o&gt;=1;--o)if(47===(e=t.charCodeAt(o))){if(!a){i=o;break}}else a=!1;return-1===i?n?&quot;/&quot;:&quot;.&quot;:n&amp;&amp;1===i?&quot;//&quot;:t.slice(0,i)},basename:function(t,e){if(void 0!==e&amp;&amp;&quot;string&quot;!=typeof e)throw new TypeError('&quot;ext&quot; argument must be a string');r(t);var n,i=0,a=-1,o=!0;if(void 0!==e&amp;&amp;e.length&gt;0&amp;&amp;e.length&lt;=t.length){if(e.length===t.length&amp;&amp;e===t)return&quot;&quot;;var s=e.length-1,l=-1;for(n=t.length-1;n&gt;=0;--n){var c=t.charCodeAt(n);if(47===c){if(!o){i=n+1;break}}else-1===l&amp;&amp;(o=!1,l=n+1),s&gt;=0&amp;&amp;(c===e.charCodeAt(s)?-1==--s&amp;&amp;(a=n):(s=-1,a=l))}return i===a?a=l:-1===a&amp;&amp;(a=t.length),t.slice(i,a)}for(n=t.length-1;n&gt;=0;--n)if(47===t.charCodeAt(n)){if(!o){i=n+1;break}}else-1===a&amp;&amp;(o=!1,a=n+1);return-1===a?&quot;&quot;:t.slice(i,a)},extname:function(t){r(t);for(var e=-1,n=0,i=-1,a=!0,o=0,s=t.length-1;s&gt;=0;--s){var l=t.charCodeAt(s);if(47!==l)-1===i&amp;&amp;(a=!1,i=s+1),46===l?-1===e?e=s:1!==o&amp;&amp;(o=1):-1!==e&amp;&amp;(o=-1);else if(!a){n=s+1;break}}return-1===e||-1===i||0===o||1===o&amp;&amp;e===i-1&amp;&amp;e===n+1?&quot;&quot;:t.slice(e,i)},format:function(t){if(null===t||&quot;object&quot;!=typeof t)throw new TypeError('The &quot;pathObject&quot; argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||&quot;&quot;)+(e.ext||&quot;&quot;);return r?r===e.root?r+n:r+t+n:n}(&quot;/&quot;,t)},parse:function(t){r(t);var e={root:&quot;&quot;,dir:&quot;&quot;,base:&quot;&quot;,ext:&quot;&quot;,name:&quot;&quot;};if(0===t.length)return e;var n,i=t.charCodeAt(0),a=47===i;a?(e.root=&quot;/&quot;,n=1):n=0;for(var o=-1,s=0,l=-1,c=!0,u=t.length-1,f=0;u&gt;=n;--u)if(47!==(i=t.charCodeAt(u)))-1===l&amp;&amp;(c=!1,l=u+1),46===i?-1===o?o=u:1!==f&amp;&amp;(f=1):-1!==o&amp;&amp;(f=-1);else if(!c){s=u+1;break}return-1===o||-1===l||0===f||1===f&amp;&amp;o===l-1&amp;&amp;o===s+1?-1!==l&amp;&amp;(e.base=e.name=0===s&amp;&amp;a?t.slice(1,l):t.slice(s,l)):(0===s&amp;&amp;a?(e.name=t.slice(1,o),e.base=t.slice(1,l)):(e.name=t.slice(s,o),e.base=t.slice(s,l)),e.ext=t.slice(o,l)),s&gt;0?e.dir=t.slice(0,s-1):a&amp;&amp;(e.dir=&quot;/&quot;),e},sep:&quot;/&quot;,delimiter:&quot;:&quot;,win32:null,posix:null};i.posix=i,e.exports=i}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:526}],508:[function(t,e,r){(function(t){(function(){(function(){var r,n,i,a,o,s;&quot;undefined&quot;!=typeof performance&amp;&amp;null!==performance&amp;&amp;performance.now?e.exports=function(){return performance.now()}:&quot;undefined&quot;!=typeof t&amp;&amp;null!==t&amp;&amp;t.hrtime?(e.exports=function(){return(r()-o)/1e6},n=t.hrtime,a=(r=function(){var t;return 1e9*(t=n())[0]+t[1]})(),s=1e9*t.uptime(),o=a-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:526}],509:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(e&lt;32){for(var r=1,i=0;i&lt;e;++i)for(var a=0;a&lt;i;++a)if(t[i]&lt;t[a])r=-r;else if(t[i]===t[a])return 0;return r}var o=n.mallocUint8(e);for(i=0;i&lt;e;++i)o[i]=0;for(r=1,i=0;i&lt;e;++i)if(!o[i]){var s=1;o[i]=1;for(a=t[i];a!==i;a=t[a]){if(o[a])return n.freeUint8(o),0;s+=1,o[a]=1}1&amp;s||(r=-r)}return n.freeUint8(o),r};var n=t(&quot;typedarray-pool&quot;)},{&quot;typedarray-pool&quot;:595}],510:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=t(&quot;invert-permutation&quot;);r.rank=function(t){var e=t.length;switch(e){case 0:case 1:return 0;case 2:return t[1]}var r,a,o,s=n.mallocUint32(e),l=n.mallocUint32(e),c=0;for(i(t,l),o=0;o&lt;e;++o)s[o]=t[o];for(o=e-1;o&gt;0;--o)a=l[o],r=s[o],s[o]=s[a],s[a]=r,l[o]=l[r],l[r]=a,c=(c+r)*o;return n.freeUint32(l),n.freeUint32(s),c},r.unrank=function(t,e,r){switch(t){case 0:return r||[];case 1:return r?(r[0]=0,r):[0];case 2:return r?(e?(r[0]=0,r[1]=1):(r[0]=1,r[1]=0),r):e?[0,1]:[1,0]}var n,i,a,o=1;for((r=r||new Array(t))[0]=0,a=1;a&lt;t;++a)r[a]=a,o=o*a|0;for(a=t-1;a&gt;0;--a)e=e-(n=e/o|0)*o|0,o=o/a|0,i=0|r[a],r[a]=0|r[n],r[n]=0|i;return r}},{&quot;invert-permutation&quot;:462,&quot;typedarray-pool&quot;:595}],511:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n,a,o={};if(&quot;string&quot;==typeof e&amp;&amp;(e=i(e)),Array.isArray(e)){var s={};for(a=0;a&lt;e.length;a++)s[e[a]]=!0;e=s}for(n in e)e[n]=i(e[n]);var l={};for(n in e){var c=e[n];if(Array.isArray(c))for(a=0;a&lt;c.length;a++){var u=c[a];if(r&amp;&amp;(l[u]=!0),u in t){if(o[n]=t[u],r)for(var f=a;f&lt;c.length;f++)l[c[f]]=!0;break}}else n in t&amp;&amp;(e[n]&amp;&amp;(o[n]=t[n]),r&amp;&amp;(l[n]=!0))}if(r)for(n in t)l[n]||(o[n]=t[n]);return o};var n={};function i(t){return n[t]?n[t]:(&quot;string&quot;==typeof t&amp;&amp;(t=n[t]=t.split(/\s*,\s*|\s+/)),t)}},{}],512:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=0|e.length,i=t.length,a=[new Array(r),new Array(r)],o=0;o&lt;r;++o)a[0][o]=[],a[1][o]=[];for(o=0;o&lt;i;++o){var s=t[o];a[0][s[0]].push(s),a[1][s[1]].push(s)}var l=[];for(o=0;o&lt;r;++o)a[0][o].length+a[1][o].length===0&amp;&amp;l.push([o]);function c(t,e){var r=a[e][t[e]];r.splice(r.indexOf(t),1)}function u(t,r,i){for(var o,s,l,u=0;u&lt;2;++u)if(a[u][r].length&gt;0){o=a[u][r][0],l=u;break}s=o[1^l];for(var f=0;f&lt;2;++f)for(var h=a[f][r],p=0;p&lt;h.length;++p){var d=h[p],g=d[1^f];n(e[t],e[r],e[s],e[g])&gt;0&amp;&amp;(o=d,s=g,l=f)}return i||o&amp;&amp;c(o,l),s}function f(t,r){var i=a[r][t][0],o=[t];c(i,r);for(var s=i[1^r];;){for(;s!==t;)o.push(s),s=u(o[o.length-2],s,!1);if(a[0][t].length+a[1][t].length===0)break;var l=o[o.length-1],f=t,h=o[1],p=u(l,f,!0);if(n(e[l],e[f],e[h],e[p])&lt;0)break;o.push(t),s=u(l,f)}return o}function h(t,e){return e[1]===e[e.length-1]}for(o=0;o&lt;r;++o)for(var p=0;p&lt;2;++p){for(var d=[];a[p][o].length&gt;0;){a[0][o].length;var g=f(o,p);h(0,g)?d.push.apply(d,g):(d.length&gt;0&amp;&amp;l.push(d),d=g)}d.length&gt;0&amp;&amp;l.push(d)}return l};var n=t(&quot;compare-angle&quot;)},{&quot;compare-angle&quot;:132}],513:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=n(t,e.length),i=new Array(e.length),a=new Array(e.length),o=[],s=0;s&lt;e.length;++s){var l=r[s].length;a[s]=l,i[s]=!0,l&lt;=1&amp;&amp;o.push(s)}for(;o.length&gt;0;){var c=o.pop();i[c]=!1;var u=r[c];for(s=0;s&lt;u.length;++s){var f=u[s];0==--a[f]&amp;&amp;o.push(f)}}var h=new Array(e.length),p=[];for(s=0;s&lt;e.length;++s)if(i[s]){c=p.length;h[s]=c,p.push(e[s])}else h[s]=-1;var d=[];for(s=0;s&lt;t.length;++s){var g=t[s];i[g[0]]&amp;&amp;i[g[1]]&amp;&amp;d.push([h[g[0]],h[g[1]]])}return[d,p]};var n=t(&quot;edges-to-adjacency-list&quot;)},{&quot;edges-to-adjacency-list&quot;:178}],514:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=c(t,e);t=r[0];for(var f=(e=r[1]).length,h=(t.length,n(t,e.length)),p=0;p&lt;f;++p)if(h[p].length%2==1)throw new Error(&quot;planar-graph-to-polyline: graph must be manifold&quot;);var d=i(t,e);var g=(d=d.filter((function(t){for(var r=t.length,n=[0],i=0;i&lt;r;++i){var a=e[t[i]],l=e[t[(i+1)%r]],c=o(-a[0],a[1]),u=o(-a[0],l[1]),f=o(l[0],a[1]),h=o(l[0],l[1]);n=s(n,s(s(c,u),s(f,h)))}return n[n.length-1]&gt;0}))).length,m=new Array(g),v=new Array(g);for(p=0;p&lt;g;++p){m[p]=p;var y=new Array(g),x=d[p].map((function(t){return e[t]})),b=a([x]),_=0;t:for(var w=0;w&lt;g;++w)if(y[w]=0,p!==w){for(var T=(q=d[w]).length,k=0;k&lt;T;++k){var M=b(e[q[k]]);if(0!==M){M&lt;0&amp;&amp;(y[w]=1,_+=1);continue t}}y[w]=1,_+=1}v[p]=[_,p,y]}v.sort((function(t,e){return e[0]-t[0]}));for(p=0;p&lt;g;++p){var A=(y=v[p])[1],S=y[2];for(w=0;w&lt;g;++w)S[w]&amp;&amp;(m[w]=A)}var E=function(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=[];return e}(g);for(p=0;p&lt;g;++p)E[p].push(m[p]),E[m[p]].push(p);var C={},L=u(f,!1);for(p=0;p&lt;g;++p)for(T=(q=d[p]).length,w=0;w&lt;T;++w){var I=q[w],P=q[(w+1)%T],z=Math.min(I,P)+&quot;:&quot;+Math.max(I,P);if(z in C){var O=C[z];E[O].push(p),E[p].push(O),L[I]=L[P]=!0}else C[z]=p}function D(t){for(var e=t.length,r=0;r&lt;e;++r)if(!L[t[r]])return!1;return!0}var R=[],F=u(g,-1);for(p=0;p&lt;g;++p)m[p]!==p||D(d[p])?F[p]=-1:(R.push(p),F[p]=0);r=[];for(;R.length&gt;0;){var B=R.pop(),N=E[B];l(N,(function(t,e){return t-e}));var j,U=N.length,V=F[B];if(0===V){var q=d[B];j=[q]}for(p=0;p&lt;U;++p){var H=N[p];if(!(F[H]&gt;=0))if(F[H]=1^V,R.push(H),0===V)D(q=d[H])||(q.reverse(),j.push(q))}0===V&amp;&amp;r.push(j)}return r};var n=t(&quot;edges-to-adjacency-list&quot;),i=t(&quot;planar-dual&quot;),a=t(&quot;point-in-big-polygon&quot;),o=t(&quot;two-product&quot;),s=t(&quot;robust-sum&quot;),l=t(&quot;uniq&quot;),c=t(&quot;./lib/trim-leaves&quot;);function u(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}},{&quot;./lib/trim-leaves&quot;:513,&quot;edges-to-adjacency-list&quot;:178,&quot;planar-dual&quot;:512,&quot;point-in-big-polygon&quot;:516,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582,uniq:597}],515:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],516:[function(t,e,r){e.exports=function(t){for(var e=t.length,r=[],a=[],s=0;s&lt;e;++s)for(var u=t[s],f=u.length,h=f-1,p=0;p&lt;f;h=p++){var d=u[h],g=u[p];d[0]===g[0]?a.push([d,g]):r.push([d,g])}if(0===r.length)return 0===a.length?c:(m=l(a),function(t){return m(t[0],t[1])?0:1});var m;var v=i(r),y=function(t,e){return function(r){var i=o.le(e,r[0]);if(i&lt;0)return 1;var a=t[i];if(!a){if(!(i&gt;0&amp;&amp;e[i]===r[0]))return 1;a=t[i-1]}for(var s=1;a;){var l=a.key,c=n(r,l[0],l[1]);if(l[0][0]&lt;l[1][0])if(c&lt;0)a=a.left;else{if(!(c&gt;0))return 0;s=-1,a=a.right}else if(c&gt;0)a=a.left;else{if(!(c&lt;0))return 0;s=1,a=a.right}}return s}}(v.slabs,v.coordinates);return 0===a.length?y:function(t,e){return function(r){return t(r[0],r[1])?0:e(r)}}(l(a),y)};var n=t(&quot;robust-orientation&quot;)[3],i=t(&quot;slab-decomposition&quot;),a=t(&quot;interval-tree-1d&quot;),o=t(&quot;binary-search-bounds&quot;);function s(){return!0}function l(t){for(var e={},r=0;r&lt;t.length;++r){var n=t[r],i=n[0][0],o=n[0][1],l=n[1][1],c=[Math.min(o,l),Math.max(o,l)];i in e?e[i].push(c):e[i]=[c]}var u={},f=Object.keys(e);for(r=0;r&lt;f.length;++r){var h=e[f[r]];u[f[r]]=a(h)}return function(t){return function(e,r){var n=t[e];return!!n&amp;&amp;!!n.queryPoint(r,s)}}(u)}function c(t){return 1}},{&quot;binary-search-bounds&quot;:515,&quot;interval-tree-1d&quot;:460,&quot;robust-orientation&quot;:548,&quot;slab-decomposition&quot;:565}],517:[function(t,e,r){
/*
 * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
 * @license MIT
 * @preserve Project Home: https://github.com/voidqk/polybooljs
 */
var n,i=t(&quot;./lib/build-log&quot;),a=t(&quot;./lib/epsilon&quot;),o=t(&quot;./lib/intersecter&quot;),s=t(&quot;./lib/segment-chainer&quot;),l=t(&quot;./lib/segment-selector&quot;),c=t(&quot;./lib/geojson&quot;),u=!1,f=a();function h(t,e,r){var i=n.segments(t),a=n.segments(e),o=r(n.combine(i,a));return n.polygon(o)}n={buildLog:function(t){return!0===t?u=i():!1===t&amp;&amp;(u=!1),!1!==u&amp;&amp;u.list},epsilon:function(t){return f.epsilon(t)},segments:function(t){var e=o(!0,f,u);return t.regions.forEach(e.addRegion),{segments:e.calculate(t.inverted),inverted:t.inverted}},combine:function(t,e){return{combined:o(!1,f,u).calculate(t.segments,t.inverted,e.segments,e.inverted),inverted1:t.inverted,inverted2:e.inverted}},selectUnion:function(t){return{segments:l.union(t.combined,u),inverted:t.inverted1||t.inverted2}},selectIntersect:function(t){return{segments:l.intersect(t.combined,u),inverted:t.inverted1&amp;&amp;t.inverted2}},selectDifference:function(t){return{segments:l.difference(t.combined,u),inverted:t.inverted1&amp;&amp;!t.inverted2}},selectDifferenceRev:function(t){return{segments:l.differenceRev(t.combined,u),inverted:!t.inverted1&amp;&amp;t.inverted2}},selectXor:function(t){return{segments:l.xor(t.combined,u),inverted:t.inverted1!==t.inverted2}},polygon:function(t){return{regions:s(t.segments,f,u),inverted:t.inverted}},polygonFromGeoJSON:function(t){return c.toPolygon(n,t)},polygonToGeoJSON:function(t){return c.fromPolygon(n,f,t)},union:function(t,e){return h(t,e,n.selectUnion)},intersect:function(t,e){return h(t,e,n.selectIntersect)},difference:function(t,e){return h(t,e,n.selectDifference)},differenceRev:function(t,e){return h(t,e,n.selectDifferenceRev)},xor:function(t,e){return h(t,e,n.selectXor)}},&quot;object&quot;==typeof window&amp;&amp;(window.PolyBool=n),e.exports=n},{&quot;./lib/build-log&quot;:518,&quot;./lib/epsilon&quot;:519,&quot;./lib/geojson&quot;:520,&quot;./lib/intersecter&quot;:521,&quot;./lib/segment-chainer&quot;:523,&quot;./lib/segment-selector&quot;:524}],518:[function(t,e,r){e.exports=function(){var t,e=0,r=!1;function n(e,r){return t.list.push({type:e,data:r?JSON.parse(JSON.stringify(r)):void 0}),t}return t={list:[],segmentId:function(){return e++},checkIntersection:function(t,e){return n(&quot;check&quot;,{seg1:t,seg2:e})},segmentChop:function(t,e){return n(&quot;div_seg&quot;,{seg:t,pt:e}),n(&quot;chop&quot;,{seg:t,pt:e})},statusRemove:function(t){return n(&quot;pop_seg&quot;,{seg:t})},segmentUpdate:function(t){return n(&quot;seg_update&quot;,{seg:t})},segmentNew:function(t,e){return n(&quot;new_seg&quot;,{seg:t,primary:e})},segmentRemove:function(t){return n(&quot;rem_seg&quot;,{seg:t})},tempStatus:function(t,e,r){return n(&quot;temp_status&quot;,{seg:t,above:e,below:r})},rewind:function(t){return n(&quot;rewind&quot;,{seg:t})},status:function(t,e,r){return n(&quot;status&quot;,{seg:t,above:e,below:r})},vert:function(e){return e===r?t:(r=e,n(&quot;vert&quot;,{x:e}))},log:function(t){return&quot;string&quot;!=typeof t&amp;&amp;(t=JSON.stringify(t,!1,&quot;  &quot;)),n(&quot;log&quot;,{txt:t})},reset:function(){return n(&quot;reset&quot;)},selected:function(t){return n(&quot;selected&quot;,{segs:t})},chainStart:function(t){return n(&quot;chain_start&quot;,{seg:t})},chainRemoveHead:function(t,e){return n(&quot;chain_rem_head&quot;,{index:t,pt:e})},chainRemoveTail:function(t,e){return n(&quot;chain_rem_tail&quot;,{index:t,pt:e})},chainNew:function(t,e){return n(&quot;chain_new&quot;,{pt1:t,pt2:e})},chainMatch:function(t){return n(&quot;chain_match&quot;,{index:t})},chainClose:function(t){return n(&quot;chain_close&quot;,{index:t})},chainAddHead:function(t,e){return n(&quot;chain_add_head&quot;,{index:t,pt:e})},chainAddTail:function(t,e){return n(&quot;chain_add_tail&quot;,{index:t,pt:e})},chainConnect:function(t,e){return n(&quot;chain_con&quot;,{index1:t,index2:e})},chainReverse:function(t){return n(&quot;chain_rev&quot;,{index:t})},chainJoin:function(t,e){return n(&quot;chain_join&quot;,{index1:t,index2:e})},done:function(){return n(&quot;done&quot;)}}}},{}],519:[function(t,e,r){e.exports=function(t){&quot;number&quot;!=typeof t&amp;&amp;(t=1e-10);var e={epsilon:function(e){return&quot;number&quot;==typeof e&amp;&amp;(t=e),t},pointAboveOrOnLine:function(e,r,n){var i=r[0],a=r[1],o=n[0],s=n[1],l=e[0];return(o-i)*(e[1]-a)-(s-a)*(l-i)&gt;=-t},pointBetween:function(e,r,n){var i=e[1]-r[1],a=n[0]-r[0],o=e[0]-r[0],s=n[1]-r[1],l=o*a+i*s;return!(l&lt;t)&amp;&amp;!(l-(a*a+s*s)&gt;-t)},pointsSameX:function(e,r){return Math.abs(e[0]-r[0])&lt;t},pointsSameY:function(e,r){return Math.abs(e[1]-r[1])&lt;t},pointsSame:function(t,r){return e.pointsSameX(t,r)&amp;&amp;e.pointsSameY(t,r)},pointsCompare:function(t,r){return e.pointsSameX(t,r)?e.pointsSameY(t,r)?0:t[1]&lt;r[1]?-1:1:t[0]&lt;r[0]?-1:1},pointsCollinear:function(e,r,n){var i=e[0]-r[0],a=e[1]-r[1],o=r[0]-n[0],s=r[1]-n[1];return Math.abs(i*s-o*a)&lt;t},linesIntersect:function(e,r,n,i){var a=r[0]-e[0],o=r[1]-e[1],s=i[0]-n[0],l=i[1]-n[1],c=a*l-o*s;if(Math.abs(c)&lt;t)return!1;var u=e[0]-n[0],f=e[1]-n[1],h=(s*f-l*u)/c,p=(a*f-o*u)/c,d={alongA:0,alongB:0,pt:[e[0]+h*a,e[1]+h*o]};return d.alongA=h&lt;=-t?-2:h&lt;t?-1:h-1&lt;=-t?0:h-1&lt;t?1:2,d.alongB=p&lt;=-t?-2:p&lt;t?-1:p-1&lt;=-t?0:p-1&lt;t?1:2,d},pointInsideRegion:function(e,r){for(var n=e[0],i=e[1],a=r[r.length-1][0],o=r[r.length-1][1],s=!1,l=0;l&lt;r.length;l++){var c=r[l][0],u=r[l][1];u-i&gt;t!=o-i&gt;t&amp;&amp;(a-c)*(i-u)/(o-u)+c-n&gt;t&amp;&amp;(s=!s),a=c,o=u}return s}};return e}},{}],520:[function(t,e,r){var n={toPolygon:function(t,e){function r(e){if(e.length&lt;=0)return t.segments({inverted:!1,regions:[]});function r(e){var r=e.slice(0,e.length-1);return t.segments({inverted:!1,regions:[r]})}for(var n=r(e[0]),i=1;i&lt;e.length;i++)n=t.selectDifference(t.combine(n,r(e[i])));return n}if(&quot;Polygon&quot;===e.type)return t.polygon(r(e.coordinates));if(&quot;MultiPolygon&quot;===e.type){for(var n=t.segments({inverted:!1,regions:[]}),i=0;i&lt;e.coordinates.length;i++)n=t.selectUnion(t.combine(n,r(e.coordinates[i])));return t.polygon(n)}throw new Error(&quot;PolyBool: Cannot convert GeoJSON object to PolyBool polygon&quot;)},fromPolygon:function(t,e,r){function n(t,r){return e.pointInsideRegion([.5*(t[0][0]+t[1][0]),.5*(t[0][1]+t[1][1])],r)}function i(t){return{region:t,children:[]}}r=t.polygon(t.segments(r));var a=i(null);function o(t,e){for(var r=0;r&lt;t.children.length;r++){if(n(e,(s=t.children[r]).region))return void o(s,e)}var a=i(e);for(r=0;r&lt;t.children.length;r++){var s;n((s=t.children[r]).region,e)&amp;&amp;(a.children.push(s),t.children.splice(r,1),r--)}t.children.push(a)}for(var s=0;s&lt;r.regions.length;s++){var l=r.regions[s];l.length&lt;3||o(a,l)}function c(t,e){for(var r=0,n=t[t.length-1][0],i=t[t.length-1][1],a=[],o=0;o&lt;t.length;o++){var s=t[o][0],l=t[o][1];a.push([s,l]),r+=l*n-s*i,n=s,i=l}return r&lt;0!==e&amp;&amp;a.reverse(),a.push([a[0][0],a[0][1]]),a}var u=[];function f(t){var e=[c(t.region,!1)];u.push(e);for(var r=0;r&lt;t.children.length;r++)e.push(h(t.children[r]))}function h(t){for(var e=0;e&lt;t.children.length;e++)f(t.children[e]);return c(t.region,!0)}for(s=0;s&lt;a.children.length;s++)f(a.children[s]);return u.length&lt;=0?{type:&quot;Polygon&quot;,coordinates:[]}:1==u.length?{type:&quot;Polygon&quot;,coordinates:u[0]}:{type:&quot;MultiPolygon&quot;,coordinates:u}}};e.exports=n},{}],521:[function(t,e,r){var n=t(&quot;./linked-list&quot;);e.exports=function(t,e,r){function i(t,e,n){return{id:r?r.segmentId():-1,start:t,end:e,myFill:{above:n.myFill.above,below:n.myFill.below},otherFill:null}}var a=n.create();function o(t,r){a.insertBefore(t,(function(n){return function(t,r,n,i,a,o){var s=e.pointsCompare(r,a);return 0!==s?s:e.pointsSame(n,o)?0:t!==i?t?1:-1:e.pointAboveOrOnLine(n,i?a:o,i?o:a)?1:-1}(t.isStart,t.pt,r,n.isStart,n.pt,n.other.pt)&lt;0}))}function s(t,e){var r=function(t,e){var r=n.node({isStart:!0,pt:t.start,seg:t,primary:e,other:null,status:null});return o(r,t.end),r}(t,e);return function(t,e,r){var i=n.node({isStart:!1,pt:e.end,seg:e,primary:r,other:t,status:null});t.other=i,o(i,t.pt)}(r,t,e),r}function l(t,e){var n=i(e,t.seg.end,t.seg);return function(t,e){r&amp;&amp;r.segmentChop(t.seg,e),t.other.remove(),t.seg.end=e,t.other.pt=e,o(t.other,t.pt)}(t,e),s(n,t.primary)}function c(i,o){var s=n.create();function c(t){return s.findTransition((function(r){var n,i,a,o,s,l;return(n=t,i=r.ev,a=n.seg.start,o=n.seg.end,s=i.seg.start,l=i.seg.end,e.pointsCollinear(a,s,l)?e.pointsCollinear(o,s,l)||e.pointAboveOrOnLine(o,s,l)?1:-1:e.pointAboveOrOnLine(a,s,l)?1:-1)&gt;0}))}function u(t,n){var i=t.seg,a=n.seg,o=i.start,s=i.end,c=a.start,u=a.end;r&amp;&amp;r.checkIntersection(i,a);var f=e.linesIntersect(o,s,c,u);if(!1===f){if(!e.pointsCollinear(o,s,c))return!1;if(e.pointsSame(o,u)||e.pointsSame(s,c))return!1;var h=e.pointsSame(o,c),p=e.pointsSame(s,u);if(h&amp;&amp;p)return n;var d=!h&amp;&amp;e.pointBetween(o,c,u),g=!p&amp;&amp;e.pointBetween(s,c,u);if(h)return g?l(n,s):l(t,u),n;d&amp;&amp;(p||(g?l(n,s):l(t,u)),l(n,o))}else 0===f.alongA&amp;&amp;(-1===f.alongB?l(t,c):0===f.alongB?l(t,f.pt):1===f.alongB&amp;&amp;l(t,u)),0===f.alongB&amp;&amp;(-1===f.alongA?l(n,o):0===f.alongA?l(n,f.pt):1===f.alongA&amp;&amp;l(n,s));return!1}for(var f=[];!a.isEmpty();){var h=a.getHead();if(r&amp;&amp;r.vert(h.pt[0]),h.isStart){r&amp;&amp;r.segmentNew(h.seg,h.primary);var p=c(h),d=p.before?p.before.ev:null,g=p.after?p.after.ev:null;function m(){if(d){var t=u(h,d);if(t)return t}return!!g&amp;&amp;u(h,g)}r&amp;&amp;r.tempStatus(h.seg,!!d&amp;&amp;d.seg,!!g&amp;&amp;g.seg);var v,y=m();if(y){var x;if(t)(x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below)&amp;&amp;(y.seg.myFill.above=!y.seg.myFill.above);else y.seg.otherFill=h.seg.myFill;r&amp;&amp;r.segmentUpdate(y.seg),h.other.remove(),h.remove()}if(a.getHead()!==h){r&amp;&amp;r.rewind(h.seg);continue}if(t)x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below,h.seg.myFill.below=g?g.seg.myFill.above:i,h.seg.myFill.above=x?!h.seg.myFill.below:h.seg.myFill.below;else if(null===h.seg.otherFill)v=g?h.primary===g.primary?g.seg.otherFill.above:g.seg.myFill.above:h.primary?o:i,h.seg.otherFill={above:v,below:v};r&amp;&amp;r.status(h.seg,!!d&amp;&amp;d.seg,!!g&amp;&amp;g.seg),h.other.status=p.insert(n.node({ev:h}))}else{var b=h.status;if(null===b)throw new Error(&quot;PolyBool: Zero-length segment detected; your epsilon is probably too small or too large&quot;);if(s.exists(b.prev)&amp;&amp;s.exists(b.next)&amp;&amp;u(b.prev.ev,b.next.ev),r&amp;&amp;r.statusRemove(b.ev.seg),b.remove(),!h.primary){var _=h.seg.myFill;h.seg.myFill=h.seg.otherFill,h.seg.otherFill=_}f.push(h.seg)}a.getHead().remove()}return r&amp;&amp;r.done(),f}return t?{addRegion:function(t){for(var n,i,a,o=t[t.length-1],l=0;l&lt;t.length;l++){n=o,o=t[l];var c=e.pointsCompare(n,o);0!==c&amp;&amp;s((i=c&lt;0?n:o,a=c&lt;0?o:n,{id:r?r.segmentId():-1,start:i,end:a,myFill:{above:null,below:null},otherFill:null}),!0)}},calculate:function(t){return c(t,!1)}}:{calculate:function(t,e,r,n){return t.forEach((function(t){s(i(t.start,t.end,t),!0)})),r.forEach((function(t){s(i(t.start,t.end,t),!1)})),c(e,n)}}}},{&quot;./linked-list&quot;:522}],522:[function(t,e,r){e.exports={create:function(){var t={root:{root:!0,next:null},exists:function(e){return null!==e&amp;&amp;e!==t.root},isEmpty:function(){return null===t.root.next},getHead:function(){return t.root.next},insertBefore:function(e,r){for(var n=t.root,i=t.root.next;null!==i;){if(r(i))return e.prev=i.prev,e.next=i,i.prev.next=e,void(i.prev=e);n=i,i=i.next}n.next=e,e.prev=n,e.next=null},findTransition:function(e){for(var r=t.root,n=t.root.next;null!==n&amp;&amp;!e(n);)r=n,n=n.next;return{before:r===t.root?null:r,after:n,insert:function(t){return t.prev=r,t.next=n,r.next=t,null!==n&amp;&amp;(n.prev=t),t}}}};return t},node:function(t){return t.prev=null,t.next=null,t.remove=function(){t.prev.next=t.next,t.next&amp;&amp;(t.next.prev=t.prev),t.prev=null,t.next=null},t}}},{}],523:[function(t,e,r){e.exports=function(t,e,r){var n=[],i=[];return t.forEach((function(t){var a=t.start,o=t.end;if(e.pointsSame(a,o))console.warn(&quot;PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large&quot;);else{r&amp;&amp;r.chainStart(t);for(var s={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},c=s,u=0;u&lt;n.length;u++){var f=(m=n[u])[0],h=(m[1],m[m.length-1]);m[m.length-2];if(e.pointsSame(f,a)){if(k(u,!0,!0))break}else if(e.pointsSame(f,o)){if(k(u,!0,!1))break}else if(e.pointsSame(h,a)){if(k(u,!1,!0))break}else if(e.pointsSame(h,o)&amp;&amp;k(u,!1,!1))break}if(c===s)return n.push([a,o]),void(r&amp;&amp;r.chainNew(a,o));if(c===l){r&amp;&amp;r.chainMatch(s.index);var p=s.index,d=s.matches_pt1?o:a,g=s.matches_head,m=n[p],v=g?m[0]:m[m.length-1],y=g?m[1]:m[m.length-2],x=g?m[m.length-1]:m[0],b=g?m[m.length-2]:m[1];return e.pointsCollinear(y,v,d)&amp;&amp;(g?(r&amp;&amp;r.chainRemoveHead(s.index,d),m.shift()):(r&amp;&amp;r.chainRemoveTail(s.index,d),m.pop()),v=y),e.pointsSame(x,d)?(n.splice(p,1),e.pointsCollinear(b,x,v)&amp;&amp;(g?(r&amp;&amp;r.chainRemoveTail(s.index,v),m.pop()):(r&amp;&amp;r.chainRemoveHead(s.index,v),m.shift())),r&amp;&amp;r.chainClose(s.index),void i.push(m)):void(g?(r&amp;&amp;r.chainAddHead(s.index,d),m.unshift(d)):(r&amp;&amp;r.chainAddTail(s.index,d),m.push(d)))}var _=s.index,w=l.index;r&amp;&amp;r.chainConnect(_,w);var T=n[_].length&lt;n[w].length;s.matches_head?l.matches_head?T?(M(_),A(_,w)):(M(w),A(w,_)):A(w,_):l.matches_head?A(_,w):T?(M(_),A(w,_)):(M(w),A(_,w))}function k(t,e,r){return c.index=t,c.matches_head=e,c.matches_pt1=r,c===s?(c=l,!1):(c=null,!0)}function M(t){r&amp;&amp;r.chainReverse(t),n[t].reverse()}function A(t,i){var a=n[t],o=n[i],s=a[a.length-1],l=a[a.length-2],c=o[0],u=o[1];e.pointsCollinear(l,s,c)&amp;&amp;(r&amp;&amp;r.chainRemoveTail(t,s),a.pop(),s=l),e.pointsCollinear(s,c,u)&amp;&amp;(r&amp;&amp;r.chainRemoveHead(i,c),o.shift()),r&amp;&amp;r.chainJoin(t,i),n[t]=a.concat(o),n.splice(i,1)}})),i}},{}],524:[function(t,e,r){function n(t,e,r){var n=[];return t.forEach((function(t){var i=(t.myFill.above?8:0)+(t.myFill.below?4:0)+(t.otherFill&amp;&amp;t.otherFill.above?2:0)+(t.otherFill&amp;&amp;t.otherFill.below?1:0);0!==e[i]&amp;&amp;n.push({id:r?r.segmentId():-1,start:t.start,end:t.end,myFill:{above:1===e[i],below:2===e[i]},otherFill:null})})),r&amp;&amp;r.selected(n),n}var i={union:function(t,e){return n(t,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],e)},intersect:function(t,e){return n(t,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],e)},difference:function(t,e){return n(t,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],e)},differenceRev:function(t,e){return n(t,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],e)},xor:function(t,e){return n(t,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],e)}};e.exports=i},{}],525:[function(t,e,r){&quot;use strict&quot;;var n=new Float64Array(4),i=new Float64Array(4),a=new Float64Array(4);e.exports=function(t,e,r,o,s){n.length&lt;o.length&amp;&amp;(n=new Float64Array(o.length),i=new Float64Array(o.length),a=new Float64Array(o.length));for(var l=0;l&lt;o.length;++l)n[l]=t[l]-o[l],i[l]=e[l]-t[l],a[l]=r[l]-t[l];var c=0,u=0,f=0,h=0,p=0,d=0;for(l=0;l&lt;o.length;++l){var g=i[l],m=a[l],v=n[l];c+=g*g,u+=g*m,f+=m*m,h+=v*g,p+=v*m,d+=v*v}var y,x,b,_,w,T=Math.abs(c*f-u*u),k=u*p-f*h,M=u*h-c*p;if(k+M&lt;=T)if(k&lt;0)M&lt;0&amp;&amp;h&lt;0?(M=0,-h&gt;=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d):(k=0,p&gt;=0?(M=0,y=d):-p&gt;=f?(M=1,y=f+2*p+d):y=p*(M=-p/f)+d);else if(M&lt;0)M=0,h&gt;=0?(k=0,y=d):-h&gt;=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d;else{var A=1/T;y=(k*=A)*(c*k+u*(M*=A)+2*h)+M*(u*k+f*M+2*p)+d}else k&lt;0?(b=f+p)&gt;(x=u+h)?(_=b-x)&gt;=(w=c-2*u+f)?(k=1,M=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(M=1-k)+2*h)+M*(u*k+f*M+2*p)+d:(k=0,b&lt;=0?(M=1,y=f+2*p+d):p&gt;=0?(M=0,y=d):y=p*(M=-p/f)+d):M&lt;0?(b=c+h)&gt;(x=u+p)?(_=b-x)&gt;=(w=c-2*u+f)?(M=1,k=0,y=f+2*p+d):y=(k=1-(M=_/w))*(c*k+u*M+2*h)+M*(u*k+f*M+2*p)+d:(M=0,b&lt;=0?(k=1,y=c+2*h+d):h&gt;=0?(k=0,y=d):y=h*(k=-h/c)+d):(_=f+p-u-h)&lt;=0?(k=0,M=1,y=f+2*p+d):_&gt;=(w=c-2*u+f)?(k=1,M=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(M=1-k)+2*h)+M*(u*k+f*M+2*p)+d;var S=1-k-M;for(l=0;l&lt;o.length;++l)s[l]=S*t[l]+k*e[l]+M*r[l];return y&lt;0?0:y}},{}],526:[function(t,e,r){var n,i,a=e.exports={};function o(){throw new Error(&quot;setTimeout has not been defined&quot;)}function s(){throw new Error(&quot;clearTimeout has not been defined&quot;)}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&amp;&amp;setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n=&quot;function&quot;==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i=&quot;function&quot;==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,u=[],f=!1,h=-1;function p(){f&amp;&amp;c&amp;&amp;(f=!1,c.length?u=c.concat(u):h=-1,u.length&amp;&amp;d())}function d(){if(!f){var t=l(p);f=!0;for(var e=u.length;e;){for(c=u,u=[];++h&lt;e;)c&amp;&amp;c[h].run();h=-1,e=u.length}c=null,f=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&amp;&amp;clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function m(){}a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length&gt;1)for(var r=1;r&lt;arguments.length;r++)e[r-1]=arguments[r];u.push(new g(t,e)),1!==u.length||f||l(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},a.title=&quot;browser&quot;,a.browser=!0,a.env={},a.argv=[],a.version=&quot;&quot;,a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(t){return[]},a.binding=function(t){throw new Error(&quot;process.binding is not supported&quot;)},a.cwd=function(){return&quot;/&quot;},a.chdir=function(t){throw new Error(&quot;process.chdir is not supported&quot;)},a.umask=function(){return 0}},{}],527:[function(t,e,r){e.exports=t(&quot;gl-quat/slerp&quot;)},{&quot;gl-quat/slerp&quot;:325}],528:[function(t,e,r){(function(r){(function(){for(var n=t(&quot;performance-now&quot;),i=&quot;undefined&quot;==typeof window?r:window,a=[&quot;moz&quot;,&quot;webkit&quot;],o=&quot;AnimationFrame&quot;,s=i[&quot;request&quot;+o],l=i[&quot;cancel&quot;+o]||i[&quot;cancelRequest&quot;+o],c=0;!s&amp;&amp;c&lt;a.length;c++)s=i[a[c]+&quot;Request&quot;+o],l=i[a[c]+&quot;Cancel&quot;+o]||i[a[c]+&quot;CancelRequest&quot;+o];if(!s||!l){var u=0,f=0,h=[];s=function(t){if(0===h.length){var e=n(),r=Math.max(0,1e3/60-(e-u));u=r+e,setTimeout((function(){var t=h.slice(0);h.length=0;for(var e=0;e&lt;t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(r))}return h.push({handle:++f,callback:t,cancelled:!1}),f},l=function(t){for(var e=0;e&lt;h.length;e++)h[e].handle===t&amp;&amp;(h[e].cancelled=!0)}}e.exports=function(t){return s.call(i,t)},e.exports.cancel=function(){l.apply(i,arguments)},e.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=s,t.cancelAnimationFrame=l}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;performance-now&quot;:508}],529:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat/add&quot;);e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a&lt;r;++a)i[a]=n(t[a],e[a]);return i}},{&quot;big-rat/add&quot;:80}],530:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=new Array(t.length),r=0;r&lt;t.length;++r)e[r]=n(t[r]);return e};var n=t(&quot;big-rat&quot;)},{&quot;big-rat&quot;:83}],531:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat&quot;),i=t(&quot;big-rat/mul&quot;);e.exports=function(t,e){for(var r=n(e),a=t.length,o=new Array(a),s=0;s&lt;a;++s)o[s]=i(t[s],r);return o}},{&quot;big-rat&quot;:83,&quot;big-rat/mul&quot;:92}],532:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat/sub&quot;);e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a&lt;r;++a)i[a]=n(t[a],e[a]);return i}},{&quot;big-rat/sub&quot;:94}],533:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;compare-cell&quot;),i=t(&quot;compare-oriented-cell&quot;),a=t(&quot;cell-orientation&quot;);e.exports=function(t){t.sort(i);for(var e=t.length,r=0,o=0;o&lt;e;++o){var s=t[o],l=a(s);if(0!==l){if(r&gt;0){var c=t[r-1];if(0===n(s,c)&amp;&amp;a(c)!==l){r-=1;continue}}t[r++]=s}}return t.length=r,t}},{&quot;cell-orientation&quot;:117,&quot;compare-cell&quot;:133,&quot;compare-oriented-cell&quot;:134}],534:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;array-bounds&quot;),i=t(&quot;color-normalize&quot;),a=t(&quot;update-diff&quot;),o=t(&quot;pick-by-alias&quot;),s=t(&quot;object-assign&quot;),l=t(&quot;flatten-vertex-data&quot;),c=t(&quot;to-float32&quot;),u=c.float32,f=c.fract32;e.exports=function(t,e){&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):e=t;e.length&amp;&amp;(e.positions=e);if(!(t=e.regl).hasExtension(&quot;ANGLE_instanced_arrays&quot;))throw Error(&quot;regl-error2d: `ANGLE_instanced_arrays` extension should be enabled&quot;);var r,c,p,d,g,m,v=t._gl,y={color:&quot;black&quot;,capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},x=[];return d=t.buffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:new Uint8Array(0)}),c=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),p=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),g=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),m=t.buffer({usage:&quot;static&quot;,type:&quot;float&quot;,data:h}),T(e),r=t({vert:&quot;\n\t\tprecision highp float;\n\n\t\tattribute vec2 position, positionFract;\n\t\tattribute vec4 error;\n\t\tattribute vec4 color;\n\n\t\tattribute vec2 direction, lineOffset, capOffset;\n\n\t\tuniform vec4 viewport;\n\t\tuniform float lineWidth, capSize;\n\t\tuniform vec2 scale, scaleFract, translate, translateFract;\n\n\t\tvarying vec4 fragColor;\n\n\t\tvoid main() {\n\t\t\tfragColor = color / 255.;\n\n\t\t\tvec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;\n\n\t\t\tvec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;\n\n\t\t\tvec2 position = position + dxy;\n\n\t\t\tvec2 pos = (position + translate) * scale\n\t\t\t\t+ (positionFract + translateFract) * scale\n\t\t\t\t+ (position + translate) * scaleFract\n\t\t\t\t+ (positionFract + translateFract) * scaleFract;\n\n\t\t\tpos += pixelOffset / viewport.zw;\n\n\t\t\tgl_Position = vec4(pos * 2. - 1., 0, 1);\n\t\t}\n\t\t&quot;,frag:&quot;\n\t\tprecision highp float;\n\n\t\tvarying vec4 fragColor;\n\n\t\tuniform float opacity;\n\n\t\tvoid main() {\n\t\t\tgl_FragColor = fragColor;\n\t\t\tgl_FragColor.a *= opacity;\n\t\t}\n\t\t&quot;,uniforms:{range:t.prop(&quot;range&quot;),lineWidth:t.prop(&quot;lineWidth&quot;),capSize:t.prop(&quot;capSize&quot;),opacity:t.prop(&quot;opacity&quot;),scale:t.prop(&quot;scale&quot;),translate:t.prop(&quot;translate&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{color:{buffer:d,offset:function(t,e){return 4*e.offset},divisor:1},position:{buffer:c,offset:function(t,e){return 8*e.offset},divisor:1},positionFract:{buffer:p,offset:function(t,e){return 8*e.offset},divisor:1},error:{buffer:g,offset:function(t,e){return 16*e.offset},divisor:1},direction:{buffer:m,stride:24,offset:0},lineOffset:{buffer:m,stride:24,offset:8},capOffset:{buffer:m,stride:24,offset:16}},primitive:&quot;triangles&quot;,blend:{enable:!0,color:[0,0,0,0],equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},depth:{enable:!1},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;),stencil:!1,instances:t.prop(&quot;count&quot;),count:h.length}),s(b,{update:T,draw:_,destroy:k,regl:t,gl:v,canvas:v.canvas,groups:x}),b;function b(t){t?T(t):null===t&amp;&amp;k(),_()}function _(e){if(&quot;number&quot;==typeof e)return w(e);e&amp;&amp;!Array.isArray(e)&amp;&amp;(e=[e]),t._refresh(),x.forEach((function(t,r){t&amp;&amp;(e&amp;&amp;(e[r]?t.draw=!0:t.draw=!1),t.draw?w(r):t.draw=!0)}))}function w(t){&quot;number&quot;==typeof t&amp;&amp;(t=x[t]),null!=t&amp;&amp;t&amp;&amp;t.count&amp;&amp;t.color&amp;&amp;t.opacity&amp;&amp;t.positions&amp;&amp;t.positions.length&gt;1&amp;&amp;(t.scaleRatio=[t.scale[0]*t.viewport.width,t.scale[1]*t.viewport.height],r(t),t.after&amp;&amp;t.after(t))}function T(t){if(t){null!=t.length?&quot;number&quot;==typeof t[0]&amp;&amp;(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var e=0,r=0;if(b.groups=x=t.map((function(t,c){var u=x[c];return t?(&quot;function&quot;==typeof t?t={after:t}:&quot;number&quot;==typeof t[0]&amp;&amp;(t={positions:t}),t=o(t,{color:&quot;color colors fill&quot;,capSize:&quot;capSize cap capsize cap-size&quot;,lineWidth:&quot;lineWidth line-width width line thickness&quot;,opacity:&quot;opacity alpha&quot;,range:&quot;range dataBox&quot;,viewport:&quot;viewport viewBox&quot;,errors:&quot;errors error&quot;,positions:&quot;positions position data points&quot;}),u||(x[c]=u={id:c,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},t=s({},y,t)),a(u,t,[{lineWidth:function(t){return.5*+t},capSize:function(t){return.5*+t},opacity:parseFloat,errors:function(t){return t=l(t),r+=t.length,t},positions:function(t,r){return t=l(t,&quot;float64&quot;),r.count=Math.floor(t.length/2),r.bounds=n(t,2),r.offset=e,e+=r.count,t}},{color:function(t,e){var r=e.count;if(t||(t=&quot;transparent&quot;),!Array.isArray(t)||&quot;number&quot;==typeof t[0]){var n=t;t=Array(r);for(var a=0;a&lt;r;a++)t[a]=n}if(t.length&lt;r)throw Error(&quot;Not enough colors&quot;);for(var o=new Uint8Array(4*r),s=0;s&lt;r;s++){var l=i(t[s],&quot;uint8&quot;);o.set(l,4*s)}return o},range:function(t,e,r){var n=e.bounds;return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=f(e.scale),e.translateFract=f(e.translate),t},viewport:function(t){var e;return Array.isArray(t)?e={x:t[0],y:t[1],width:t[2]-t[0],height:t[3]-t[1]}:t?(e={x:t.x||t.left||0,y:t.y||t.top||0},t.right?e.width=t.right-e.x:e.width=t.w||t.width||0,t.bottom?e.height=t.bottom-e.y:e.height=t.h||t.height||0):e={x:0,y:0,width:v.drawingBufferWidth,height:v.drawingBufferHeight},e}}]),u):u})),e||r){var h=x.reduce((function(t,e,r){return t+(e?e.count:0)}),0),m=new Float64Array(2*h),_=new Uint8Array(4*h),w=new Float32Array(4*h);x.forEach((function(t,e){if(t){var r=t.positions,n=t.count,i=t.offset,a=t.color,o=t.errors;n&amp;&amp;(_.set(a,4*i),w.set(o,4*i),m.set(r,2*i))}})),c(u(m)),p(f(m)),d(_),g(w)}}}function k(){c.destroy(),p.destroy(),d.destroy(),g.destroy(),m.destroy()}};var h=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]]},{&quot;array-bounds&quot;:70,&quot;color-normalize&quot;:125,&quot;flatten-vertex-data&quot;:244,&quot;object-assign&quot;:499,&quot;pick-by-alias&quot;:511,&quot;to-float32&quot;:577,&quot;update-diff&quot;:599}],535:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-normalize&quot;),i=t(&quot;array-bounds&quot;),a=t(&quot;object-assign&quot;),o=t(&quot;glslify&quot;),s=t(&quot;pick-by-alias&quot;),l=t(&quot;flatten-vertex-data&quot;),c=t(&quot;earcut&quot;),u=t(&quot;array-normalize&quot;),f=t(&quot;to-float32&quot;),h=f.float32,p=f.fract32,d=t(&quot;es6-weak-map&quot;),g=t(&quot;parse-rect&quot;);function m(t,e){if(!(this instanceof m))return new m(t,e);if(&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):e=t,e.length&amp;&amp;(e.positions=e),!(t=e.regl).hasExtension(&quot;ANGLE_instanced_arrays&quot;))throw Error(&quot;regl-error2d: `ANGLE_instanced_arrays` extension should be enabled&quot;);this.gl=t._gl,this.regl=t,this.passes=[],this.shaders=m.shaders.has(t)?m.shaders.get(t):m.shaders.set(t,m.createShaders(t)).get(t),this.update(e)}e.exports=m,m.dashMult=2,m.maxPatternLength=256,m.precisionThreshold=3e6,m.maxPoints=1e4,m.maxLines=2048,m.shaders=new d,m.createShaders=function(t){var e,r=t.buffer({usage:&quot;static&quot;,type:&quot;float&quot;,data:[0,1,0,0,1,1,1,0]}),n={primitive:&quot;triangle strip&quot;,instances:t.prop(&quot;count&quot;),count:4,offset:0,uniforms:{miterMode:function(t,e){return&quot;round&quot;===e.join?2:1},miterLimit:t.prop(&quot;miterLimit&quot;),scale:t.prop(&quot;scale&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),translate:t.prop(&quot;translate&quot;),thickness:t.prop(&quot;thickness&quot;),dashPattern:t.prop(&quot;dashTexture&quot;),opacity:t.prop(&quot;opacity&quot;),pixelRatio:t.context(&quot;pixelRatio&quot;),id:t.prop(&quot;id&quot;),dashSize:t.prop(&quot;dashLength&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]},depth:t.prop(&quot;depth&quot;)},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},depth:{enable:function(t,e){return!e.overlay}},stencil:{enable:!1},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;)},i=t(a({vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;\nattribute vec4 color;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvec2 project(vec2 position, vec2 positionFract, vec2 scale, vec2 scaleFract, vec2 translate, vec2 translateFract) {\n\t// the order is important\n\treturn position * scale + translate\n       + positionFract * scale + translateFract\n       + position * scaleFract\n       + positionFract * scaleFract;\n}\n\nvoid main() {\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineOffset = lineTop * 2. - 1.;\n\n\tvec2 diff = (bCoord + bCoordFract - aCoord - aCoordFract);\n\ttangent = normalize(diff * scale * viewport.zw);\n\tvec2 normal = vec2(-tangent.y, tangent.x);\n\n\tvec2 position = project(aCoord, aCoordFract, scale, scaleFract, translate, translateFract) * lineStart\n\t\t+ project(bCoord, bCoordFract, scale, scaleFract, translate, translateFract) * lineEnd\n\n\t\t+ thickness * normal * .5 * lineOffset / viewport.zw;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\n\nuniform float dashSize, pixelRatio, thickness, opacity, id;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvoid main() {\n\tfloat alpha = 1.;\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n&quot;]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:16,divisor:1},aCoordFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:8,divisor:1},bCoordFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:16,divisor:1},color:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:0,divisor:1}}},n));try{e=t(a({cull:{enable:!0,face:&quot;back&quot;},vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, nextCoord, prevCoord;\nattribute vec4 aColor, bColor;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, translate;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\nuniform float miterLimit, miterMode;\n\nvarying vec4 fragColor;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 tangent;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nconst float REVERSE_THRESHOLD = -.875;\nconst float MIN_DIFF = 1e-6;\n\n// TODO: possible optimizations: avoid overcalculating all for vertices and calc just one instead\n// TODO: precalculate dot products, normalize things beforehead etc.\n// TODO: refactor to rectangular algorithm\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nbool isNaN( float val ){\n  return ( val &lt; 0.0 || 0.0 &lt; val || val == 0.0 ) ? false : true;\n}\n\nvoid main() {\n\tvec2 aCoord = aCoord, bCoord = bCoord, prevCoord = prevCoord, nextCoord = nextCoord;\n\n  vec2 adjustedScale;\n  adjustedScale.x = (abs(scale.x) &lt; MIN_DIFF) ? MIN_DIFF : scale.x;\n  adjustedScale.y = (abs(scale.y) &lt; MIN_DIFF) ? MIN_DIFF : scale.y;\n\n  vec2 scaleRatio = adjustedScale * viewport.zw;\n\tvec2 normalWidth = thickness / scaleRatio;\n\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineBot = 1. - lineTop;\n\n\tfragColor = (lineStart * aColor + lineEnd * bColor) / 255.;\n\n\tif (isNaN(aCoord.x) || isNaN(aCoord.y) || isNaN(bCoord.x) || isNaN(bCoord.y)) return;\n\n\tif (aCoord == prevCoord) prevCoord = aCoord + normalize(bCoord - aCoord);\n\tif (bCoord == nextCoord) nextCoord = bCoord - normalize(bCoord - aCoord);\n\n\tvec2 prevDiff = aCoord - prevCoord;\n\tvec2 currDiff = bCoord - aCoord;\n\tvec2 nextDiff = nextCoord - bCoord;\n\n\tvec2 prevTangent = normalize(prevDiff * scaleRatio);\n\tvec2 currTangent = normalize(currDiff * scaleRatio);\n\tvec2 nextTangent = normalize(nextDiff * scaleRatio);\n\n\tvec2 prevNormal = vec2(-prevTangent.y, prevTangent.x);\n\tvec2 currNormal = vec2(-currTangent.y, currTangent.x);\n\tvec2 nextNormal = vec2(-nextTangent.y, nextTangent.x);\n\n\tvec2 startJoinDirection = normalize(prevTangent - currTangent);\n\tvec2 endJoinDirection = normalize(currTangent - nextTangent);\n\n\t// collapsed/unidirectional segment cases\n\t// FIXME: there should be more elegant solution\n\tvec2 prevTanDiff = abs(prevTangent - currTangent);\n\tvec2 nextTanDiff = abs(nextTangent - currTangent);\n\tif (max(prevTanDiff.x, prevTanDiff.y) &lt; MIN_DIFF) {\n\t\tstartJoinDirection = currNormal;\n\t}\n\tif (max(nextTanDiff.x, nextTanDiff.y) &lt; MIN_DIFF) {\n\t\tendJoinDirection = currNormal;\n\t}\n\tif (aCoord == bCoord) {\n\t\tendJoinDirection = startJoinDirection;\n\t\tcurrNormal = prevNormal;\n\t\tcurrTangent = prevTangent;\n\t}\n\n\ttangent = currTangent;\n\n\t//calculate join shifts relative to normals\n\tfloat startJoinShift = dot(currNormal, startJoinDirection);\n\tfloat endJoinShift = dot(currNormal, endJoinDirection);\n\n\tfloat startMiterRatio = abs(1. / startJoinShift);\n\tfloat endMiterRatio = abs(1. / endJoinShift);\n\n\tvec2 startJoin = startJoinDirection * startMiterRatio;\n\tvec2 endJoin = endJoinDirection * endMiterRatio;\n\n\tvec2 startTopJoin, startBotJoin, endTopJoin, endBotJoin;\n\tstartTopJoin = sign(startJoinShift) * startJoin * .5;\n\tstartBotJoin = -startTopJoin;\n\n\tendTopJoin = sign(endJoinShift) * endJoin * .5;\n\tendBotJoin = -endTopJoin;\n\n\tvec2 aTopCoord = aCoord + normalWidth * startTopJoin;\n\tvec2 bTopCoord = bCoord + normalWidth * endTopJoin;\n\tvec2 aBotCoord = aCoord + normalWidth * startBotJoin;\n\tvec2 bBotCoord = bCoord + normalWidth * endBotJoin;\n\n\t//miter anti-clipping\n\tfloat baClipping = distToLine(bCoord, aCoord, aBotCoord) / dot(normalize(normalWidth * endBotJoin), normalize(normalWidth.yx * vec2(-startBotJoin.y, startBotJoin.x)));\n\tfloat abClipping = distToLine(aCoord, bCoord, bTopCoord) / dot(normalize(normalWidth * startBotJoin), normalize(normalWidth.yx * vec2(-endBotJoin.y, endBotJoin.x)));\n\n\t//prevent close to reverse direction switch\n\tbool prevReverse = dot(currTangent, prevTangent) &lt;= REVERSE_THRESHOLD &amp;&amp; abs(dot(currTangent, prevNormal)) * min(length(prevDiff), length(currDiff)) &lt;  length(normalWidth * currNormal);\n\tbool nextReverse = dot(currTangent, nextTangent) &lt;= REVERSE_THRESHOLD &amp;&amp; abs(dot(currTangent, nextNormal)) * min(length(nextDiff), length(currDiff)) &lt;  length(normalWidth * currNormal);\n\n\tif (prevReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * startJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / startMiterRatio, 1.);\n\t\taBotCoord = aCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\taTopCoord = aCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!nextReverse &amp;&amp; baClipping &gt; 0. &amp;&amp; baClipping &lt; length(normalWidth * endBotJoin)) {\n\t\t//handle miter clipping\n\t\tbTopCoord -= normalWidth * endTopJoin;\n\t\tbTopCoord += normalize(endTopJoin * normalWidth) * baClipping;\n\t}\n\n\tif (nextReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);\n\t\tbBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\tbTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!prevReverse &amp;&amp; abClipping &gt; 0. &amp;&amp; abClipping &lt; length(normalWidth * startBotJoin)) {\n\t\t//handle miter clipping\n\t\taBotCoord -= normalWidth * startBotJoin;\n\t\taBotCoord += normalize(startBotJoin * normalWidth) * abClipping;\n\t}\n\n\tvec2 aTopPosition = (aTopCoord) * adjustedScale + translate;\n\tvec2 aBotPosition = (aBotCoord) * adjustedScale + translate;\n\n\tvec2 bTopPosition = (bTopCoord) * adjustedScale + translate;\n\tvec2 bBotPosition = (bBotCoord) * adjustedScale + translate;\n\n\t//position is normalized 0..1 coord on the screen\n\tvec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;\n\n\tstartCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\tendCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\n\tgl_Position = vec4(position  * 2.0 - 1.0, depth, 1);\n\n\tenableStartMiter = step(dot(currTangent, prevTangent), .5);\n\tenableEndMiter = step(dot(currTangent, nextTangent), .5);\n\n\t//bevel miter cutoffs\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n\n\t//round miter cutoffs\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\nuniform float dashSize, pixelRatio, thickness, opacity, id, miterMode;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nvoid main() {\n\tfloat alpha = 1., distToStart, distToEnd;\n\tfloat cutoff = thickness * .5;\n\n\t//bevel miter\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart &lt; -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToStart + 1., 0.), 1.);\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd &lt; -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToEnd + 1., 0.), 1.);\n\t\t}\n\t}\n\n\t// round miter\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart &lt; 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - startCoord);\n\n\t\t\t\tif(radius &gt; cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd &lt; 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - endCoord);\n\n\t\t\t\tif(radius &gt; cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\t}\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n&quot;]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:0,divisor:1},bColor:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:4,divisor:1},prevCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:0,divisor:1},aCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:16,divisor:1},nextCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:24,divisor:1}}},n))}catch(t){e=i}return{fill:t({primitive:&quot;triangle&quot;,elements:function(t,e){return e.triangles},offset:0,vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 position, positionFract;\n\nuniform vec4 color;\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio, id;\nuniform vec4 viewport;\nuniform float opacity;\n\nvarying vec4 fragColor;\n\nconst float MAX_LINES = 256.;\n\nvoid main() {\n\tfloat depth = (MAX_LINES - 4. - id) / (MAX_LINES);\n\n\tvec2 position = position * scale + translate\n       + positionFract * scale + translateFract\n       + position * scaleFract\n       + positionFract * scaleFract;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n\tfragColor.a *= opacity;\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n\tgl_FragColor = fragColor;\n}\n&quot;]),uniforms:{scale:t.prop(&quot;scale&quot;),color:t.prop(&quot;fill&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),translate:t.prop(&quot;translate&quot;),opacity:t.prop(&quot;opacity&quot;),pixelRatio:t.context(&quot;pixelRatio&quot;),id:t.prop(&quot;id&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{position:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8},positionFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:8}},blend:n.blend,depth:{enable:!1},scissor:n.scissor,stencil:n.stencil,viewport:n.viewport}),rect:i,miter:e}},m.defaults={dashes:null,join:&quot;miter&quot;,miterLimit:1,thickness:10,cap:&quot;square&quot;,color:&quot;black&quot;,opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},m.prototype.render=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];e.length&amp;&amp;(t=this).update.apply(t,e),this.draw()},m.prototype.draw=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];return(e.length?e:this.passes).forEach((function(e,r){var n;if(e&amp;&amp;Array.isArray(e))return(n=t).draw.apply(n,e);&quot;number&quot;==typeof e&amp;&amp;(e=t.passes[e]),e&amp;&amp;e.count&gt;1&amp;&amp;e.opacity&amp;&amp;(t.regl._refresh(),e.fill&amp;&amp;e.triangles&amp;&amp;e.triangles.length&gt;2&amp;&amp;t.shaders.fill(e),e.thickness&amp;&amp;(e.scale[0]*e.viewport.width&gt;m.precisionThreshold||e.scale[1]*e.viewport.height&gt;m.precisionThreshold||&quot;rect&quot;===e.join||!e.join&amp;&amp;(e.thickness&lt;=2||e.count&gt;=m.maxPoints)?t.shaders.rect(e):t.shaders.miter(e)))})),this},m.prototype.update=function(t){var e=this;if(t){null!=t.length?&quot;number&quot;==typeof t[0]&amp;&amp;(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var r=this.regl,o=this.gl;if(t.forEach((function(t,f){var d=e.passes[f];if(void 0!==t)if(null!==t){if(&quot;number&quot;==typeof t[0]&amp;&amp;(t={positions:t}),t=s(t,{positions:&quot;positions points data coords&quot;,thickness:&quot;thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth&quot;,join:&quot;lineJoin linejoin join type mode&quot;,miterLimit:&quot;miterlimit miterLimit&quot;,dashes:&quot;dash dashes dasharray dash-array dashArray&quot;,color:&quot;color colour stroke colors colours stroke-color strokeColor&quot;,fill:&quot;fill fill-color fillColor&quot;,opacity:&quot;alpha opacity&quot;,overlay:&quot;overlay crease overlap intersect&quot;,close:&quot;closed close closed-path closePath&quot;,range:&quot;range dataBox&quot;,viewport:&quot;viewport viewBox&quot;,hole:&quot;holes hole hollow&quot;}),d||(e.passes[f]=d={id:f,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:&quot;linear&quot;,min:&quot;linear&quot;}),colorBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:new Uint8Array}),positionBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array}),positionFractBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array})},t=a({},m.defaults,t)),null!=t.thickness&amp;&amp;(d.thickness=parseFloat(t.thickness)),null!=t.opacity&amp;&amp;(d.opacity=parseFloat(t.opacity)),null!=t.miterLimit&amp;&amp;(d.miterLimit=parseFloat(t.miterLimit)),null!=t.overlay&amp;&amp;(d.overlay=!!t.overlay,f&lt;m.maxLines&amp;&amp;(d.depth=2*(m.maxLines-1-f%m.maxLines)/m.maxLines-1)),null!=t.join&amp;&amp;(d.join=t.join),null!=t.hole&amp;&amp;(d.hole=t.hole),null!=t.fill&amp;&amp;(d.fill=t.fill?n(t.fill,&quot;uint8&quot;):null),null!=t.viewport&amp;&amp;(d.viewport=g(t.viewport)),d.viewport||(d.viewport=g([o.drawingBufferWidth,o.drawingBufferHeight])),null!=t.close&amp;&amp;(d.close=t.close),null===t.positions&amp;&amp;(t.positions=[]),t.positions){var v,y;if(t.positions.x&amp;&amp;t.positions.y){var x=t.positions.x,b=t.positions.y;y=d.count=Math.max(x.length,b.length),v=new Float64Array(2*y);for(var _=0;_&lt;y;_++)v[2*_]=x[_],v[2*_+1]=b[_]}else v=l(t.positions,&quot;float64&quot;),y=d.count=Math.floor(v.length/2);var w=d.bounds=i(v,2);if(d.fill){for(var T=[],k={},M=0,A=0,S=0,E=d.count;A&lt;E;A++){var C=v[2*A],L=v[2*A+1];isNaN(C)||isNaN(L)||null==C||null==L?(C=v[2*M],L=v[2*M+1],k[A]=M):M=A,T[S++]=C,T[S++]=L}for(var I=c(T,d.hole||[]),P=0,z=I.length;P&lt;z;P++)null!=k[I[P]]&amp;&amp;(I[P]=k[I[P]]);d.triangles=I}var O=new Float64Array(v);u(O,2,w);var D=new Float64Array(2*y+6);d.close?v[0]===v[2*y-2]&amp;&amp;v[1]===v[2*y-1]?(D[0]=O[2*y-4],D[1]=O[2*y-3]):(D[0]=O[2*y-2],D[1]=O[2*y-1]):(D[0]=O[0],D[1]=O[1]),D.set(O,2),d.close?v[0]===v[2*y-2]&amp;&amp;v[1]===v[2*y-1]?(D[2*y+2]=O[2],D[2*y+3]=O[3],d.count-=1):(D[2*y+2]=O[0],D[2*y+3]=O[1],D[2*y+4]=O[2],D[2*y+5]=O[3]):(D[2*y+2]=O[2*y-2],D[2*y+3]=O[2*y-1],D[2*y+4]=O[2*y-2],D[2*y+5]=O[2*y-1]),d.positionBuffer(h(D)),d.positionFractBuffer(p(D))}if(t.range?d.range=t.range:d.range||(d.range=d.bounds),(t.range||t.positions)&amp;&amp;d.count){var R=d.bounds,F=R[2]-R[0],B=R[3]-R[1],N=d.range[2]-d.range[0],j=d.range[3]-d.range[1];d.scale=[F/N,B/j],d.translate=[-d.range[0]/N+R[0]/N||0,-d.range[1]/j+R[1]/j||0],d.scaleFract=p(d.scale),d.translateFract=p(d.translate)}if(t.dashes){var U,V=0;if(!t.dashes||t.dashes.length&lt;2)V=1,U=new Uint8Array([255,255,255,255,255,255,255,255]);else{V=0;for(var q=0;q&lt;t.dashes.length;++q)V+=t.dashes[q];U=new Uint8Array(V*m.dashMult);for(var H=0,G=255,Y=0;Y&lt;2;Y++)for(var W=0;W&lt;t.dashes.length;++W){for(var X=0,Z=t.dashes[W]*m.dashMult*.5;X&lt;Z;++X)U[H++]=G;G^=255}}d.dashLength=V,d.dashTexture({channels:1,data:U,width:U.length,height:1,mag:&quot;linear&quot;,min:&quot;linear&quot;},0,0)}if(t.color){var J=d.count,K=t.color;K||(K=&quot;transparent&quot;);var Q=new Uint8Array(4*J+4);if(Array.isArray(K)&amp;&amp;&quot;number&quot;!=typeof K[0]){for(var $=0;$&lt;J;$++){var tt=n(K[$],&quot;uint8&quot;);Q.set(tt,4*$)}Q.set(n(K[0],&quot;uint8&quot;),4*J)}else for(var et=n(K,&quot;uint8&quot;),rt=0;rt&lt;J+1;rt++)Q.set(et,4*rt);d.colorBuffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:Q})}}else e.passes[f]=null})),t.length&lt;this.passes.length){for(var f=t.length;f&lt;this.passes.length;f++){var d=this.passes[f];d&amp;&amp;(d.colorBuffer.destroy(),d.positionBuffer.destroy(),d.dashTexture.destroy())}this.passes.length=t.length}for(var v=[],y=0;y&lt;this.passes.length;y++)null!==this.passes[y]&amp;&amp;v.push(this.passes[y]);return this.passes=v,this}},m.prototype.destroy=function(){return this.passes.forEach((function(t){t.colorBuffer.destroy(),t.positionBuffer.destroy(),t.dashTexture.destroy()})),this.passes.length=0,this}},{&quot;array-bounds&quot;:70,&quot;array-normalize&quot;:71,&quot;color-normalize&quot;:125,earcut:177,&quot;es6-weak-map&quot;:233,&quot;flatten-vertex-data&quot;:244,glslify:536,&quot;object-assign&quot;:499,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511,&quot;to-float32&quot;:577}],536:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],537:[function(t,e,r){&quot;use strict&quot;;function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(&quot;undefined&quot;==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&amp;&amp;(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}(t,e)||a(t,e)||function(){throw new TypeError(&quot;Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.&quot;)}()}function i(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if(&quot;undefined&quot;!=typeof Symbol&amp;&amp;Symbol.iterator in Object(t))return Array.from(t)}(t)||a(t)||function(){throw new TypeError(&quot;Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.&quot;)}()}function a(t,e){if(t){if(&quot;string&quot;==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return&quot;Object&quot;===r&amp;&amp;t.constructor&amp;&amp;(r=t.constructor.name),&quot;Map&quot;===r||&quot;Set&quot;===r?Array.from(t):&quot;Arguments&quot;===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e&gt;t.length)&amp;&amp;(e=t.length);for(var r=0,n=new Array(e);r&lt;e;r++)n[r]=t[r];return n}var s=t(&quot;color-normalize&quot;),l=t(&quot;array-bounds&quot;),c=t(&quot;color-id&quot;),u=t(&quot;@plotly/point-cluster&quot;),f=t(&quot;object-assign&quot;),h=t(&quot;glslify&quot;),p=t(&quot;pick-by-alias&quot;),d=t(&quot;update-diff&quot;),g=t(&quot;flatten-vertex-data&quot;),m=t(&quot;is-iexplorer&quot;),v=t(&quot;to-float32&quot;),y=t(&quot;parse-rect&quot;),x=b;function b(t,e){var r=this;if(!(this instanceof b))return new b(t,e);&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):(e=t,t=null),e&amp;&amp;e.length&amp;&amp;(e.positions=e);var n,i=(t=e.regl)._gl,a=[];this.tooManyColors=m,n=t.texture({data:new Uint8Array(1020),width:255,height:1,type:&quot;uint8&quot;,format:&quot;rgba&quot;,wrapS:&quot;clamp&quot;,wrapT:&quot;clamp&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;}),f(this,{regl:t,gl:i,groups:[],markerCache:[null],markerTextures:[null],palette:a,paletteIds:{},paletteTexture:n,maxColors:255,maxSize:100,canvas:i.canvas}),this.update(e);var o={uniforms:{constPointSize:!!e.constPointSize,pixelRatio:t.context(&quot;pixelRatio&quot;),palette:n,paletteSize:function(t,e){return[r.tooManyColors?0:255,n.height]},scale:t.prop(&quot;scale&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translate:t.prop(&quot;translate&quot;),translateFract:t.prop(&quot;translateFract&quot;),opacity:t.prop(&quot;opacity&quot;),marker:t.prop(&quot;markerTexture&quot;)},attributes:{x:function(t,e){return e.xAttr||{buffer:e.positionBuffer,stride:8,offset:0}},y:function(t,e){return e.yAttr||{buffer:e.positionBuffer,stride:8,offset:4}},xFract:function(t,e){return e.xAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:0}},yFract:function(t,e){return e.yAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:4}},size:function(t,e){return e.size.length?{buffer:e.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(255*e.size/r.maxSize)]}},borderSize:function(t,e){return e.borderSize.length?{buffer:e.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(255*e.borderSize/r.maxSize)]}},colorId:function(t,e){return e.color.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(4*e.color,4*e.color+4):[e.color]}},borderColorId:function(t,e){return e.borderColor.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(4*e.borderColor,4*e.borderColor+4):[e.borderColor]}},isActive:function(t,e){return!0===e.activation?{constant:[1]}:e.activation?e.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;),stencil:{enable:!1},depth:{enable:!1},elements:t.prop(&quot;elements&quot;),count:t.prop(&quot;count&quot;),offset:t.prop(&quot;offset&quot;),primitive:&quot;points&quot;},s=f({},o);s.frag=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragWidth, fragBorderColorLevel, fragColorLevel;\n\nuniform sampler2D marker;\nuniform float opacity;\n\nfloat smoothStep(float x, float y) {\n  return 1.0 / (1.0 + exp(50.0*(x - y)));\n}\n\nvoid main() {\n  float dist = texture2D(marker, gl_PointCoord).r, delta = fragWidth;\n\n  // max-distance alpha\n  if (dist &lt; 0.003) discard;\n\n  // null-border case\n  if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {\n    float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);\n    gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);\n  }\n  else {\n    float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);\n    float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);\n\n    vec4 color = fragBorderColor;\n    color.a *= borderColorAmt;\n    color = mix(color, fragColor, colorAmt);\n    color.a *= opacity;\n\n    gl_FragColor = color;\n  }\n\n}\n&quot;]),s.vert=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform vec2 scale, scaleFract, translate, translateFract, paletteSize;\nuniform float pixelRatio;\nuniform bool constPointSize;\nuniform sampler2D palette;\n\nconst float maxSize = 100.;\nconst float borderLevel = .5;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x &lt; 1.);\n\nvec4 getColor(vec4 id) {\n  return isDirect ? id / 255. : texture2D(palette,\n    vec2(\n      (id.x + .5) / paletteSize.x,\n      (id.y + .5) / paletteSize.y\n    )\n  );\n}\n\nvoid main() {\n  // ignore inactive points\n  if (isActive == 0.) return;\n\n  vec2 position = vec2(x, y);\n  vec2 positionFract = vec2(xFract, yFract);\n\n  vec4 color = getColor(colorId);\n  vec4 borderColor = getColor(borderColorId);\n\n  float size = size * maxSize / 255.;\n  float borderSize = borderSize * maxSize / 255.;\n\n  gl_PointSize = 2. * size * pointSizeScale;\n  fragPointSize = size * pixelRatio;\n\n  vec2 pos = (position + translate) * scale\n      + (positionFract + translateFract) * scale\n      + (position + translate) * scaleFract\n      + (positionFract + translateFract) * scaleFract;\n\n  gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n  fragColor = color;\n  fragBorderColor = borderColor;\n  fragWidth = 1. / gl_PointSize;\n\n  fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);\n  fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);\n}&quot;]),this.drawMarker=t(s);var l=f({},o);l.frag=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\n\nuniform float opacity;\nvarying float fragBorderRadius, fragWidth;\n\nfloat smoothStep(float edge0, float edge1, float x) {\n\tfloat t;\n\tt = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\n\treturn t * t * (3.0 - 2.0 * t);\n}\n\nvoid main() {\n\tfloat radius, alpha = 1.0, delta = fragWidth;\n\n\tradius = length(2.0 * gl_PointCoord.xy - 1.0);\n\n\tif (radius &gt; 1.0 + delta) {\n\t\tdiscard;\n\t}\n\n\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\n\n\tfloat borderRadius = fragBorderRadius;\n\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\n\tvec4 color = mix(fragColor, fragBorderColor, ratio);\n\tcolor.a *= alpha * opacity;\n\tgl_FragColor = color;\n}\n&quot;]),l.vert=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio;\nuniform bool constPointSize;\nuniform sampler2D palette;\nuniform vec2 paletteSize;\n\nconst float maxSize = 100.;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x &lt; 1.);\n\nvec4 getColor(vec4 id) {\n  return isDirect ? id / 255. : texture2D(palette,\n    vec2(\n      (id.x + .5) / paletteSize.x,\n      (id.y + .5) / paletteSize.y\n    )\n  );\n}\n\nvoid main() {\n  // ignore inactive points\n  if (isActive == 0.) return;\n\n  vec2 position = vec2(x, y);\n  vec2 positionFract = vec2(xFract, yFract);\n\n  vec4 color = getColor(colorId);\n  vec4 borderColor = getColor(borderColorId);\n\n  float size = size * maxSize / 255.;\n  float borderSize = borderSize * maxSize / 255.;\n\n  gl_PointSize = (size + borderSize) * pointSizeScale;\n\n  vec2 pos = (position + translate) * scale\n      + (positionFract + translateFract) * scale\n      + (position + translate) * scaleFract\n      + (positionFract + translateFract) * scaleFract;\n\n  gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n  fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\n  fragColor = color;\n  fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\n  fragWidth = 1. / gl_PointSize;\n}\n&quot;]),m&amp;&amp;(l.frag=l.frag.replace(&quot;smoothstep&quot;,&quot;smoothStep&quot;),s.frag=s.frag.replace(&quot;smoothstep&quot;,&quot;smoothStep&quot;)),this.drawCircle=t(l)}b.defaults={color:&quot;black&quot;,borderColor:&quot;transparent&quot;,borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},b.prototype.render=function(){return arguments.length&amp;&amp;this.update.apply(this,arguments),this.draw(),this},b.prototype.draw=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n&lt;e;n++)r[n]=arguments[n];var i=this.groups;if(1===r.length&amp;&amp;Array.isArray(r[0])&amp;&amp;(null===r[0][0]||Array.isArray(r[0][0]))&amp;&amp;(r=r[0]),this.regl._refresh(),r.length)for(var a=0;a&lt;r.length;a++)this.drawItem(a,r[a]);else i.forEach((function(e,r){t.drawItem(r)}));return this},b.prototype.drawItem=function(t,e){var r=this.groups,n=r[t];if(&quot;number&quot;==typeof e&amp;&amp;(t=e,n=r[e],e=null),n&amp;&amp;n.count&amp;&amp;n.opacity){n.activation[0]&amp;&amp;this.drawCircle(this.getMarkerDrawOptions(0,n,e));for(var a=[],o=1;o&lt;n.activation.length;o++)n.activation[o]&amp;&amp;(!0===n.activation[o]||n.activation[o].data.length)&amp;&amp;a.push.apply(a,i(this.getMarkerDrawOptions(o,n,e)));a.length&amp;&amp;this.drawMarker(a)}},b.prototype.getMarkerDrawOptions=function(t,e,r){var i=e.range,a=e.tree,o=e.viewport,s=e.activation,l=e.selectionBuffer,c=e.count;this.regl;if(!a)return r?[f({},e,{markerTexture:this.markerTextures[t],activation:s[t],count:r.length,elements:r,offset:0})]:[f({},e,{markerTexture:this.markerTextures[t],activation:s[t],offset:0})];var u=[],h=a.range(i,{lod:!0,px:[(i[2]-i[0])/o.width,(i[3]-i[1])/o.height]});if(r){for(var p=s[t].data,d=new Uint8Array(c),g=0;g&lt;r.length;g++){var m=r[g];d[m]=p?p[m]:1}l.subdata(d)}for(var v=h.length;v--;){var y=n(h[v],2),x=y[0],b=y[1];u.push(f({},e,{markerTexture:this.markerTextures[t],activation:r?l:s[t],offset:x,count:b-x}))}return u},b.prototype.update=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n&lt;e;n++)r[n]=arguments[n];if(r.length){1===r.length&amp;&amp;Array.isArray(r[0])&amp;&amp;(r=r[0]);var i=this.groups,a=this.gl,o=this.regl,s=this.maxSize,c=this.maxColors,h=this.palette;this.groups=i=r.map((function(e,r){var n=i[r];if(void 0===e)return n;null===e?e={positions:null}:&quot;function&quot;==typeof e?e={ondraw:e}:&quot;number&quot;==typeof e[0]&amp;&amp;(e={positions:e}),null===(e=p(e,{positions:&quot;positions data points&quot;,snap:&quot;snap cluster lod tree&quot;,size:&quot;sizes size radius&quot;,borderSize:&quot;borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline&quot;,color:&quot;colors color fill fill-color fillColor&quot;,borderColor:&quot;borderColors borderColor stroke stroke-color strokeColor&quot;,marker:&quot;markers marker shape&quot;,range:&quot;range dataBox databox&quot;,viewport:&quot;viewport viewPort viewBox viewbox&quot;,opacity:&quot;opacity alpha transparency&quot;,bounds:&quot;bound bounds boundaries limits&quot;,tooManyColors:&quot;tooManyColors palette paletteMode optimizePalette enablePalette&quot;})).positions&amp;&amp;(e.positions=[]),null!=e.tooManyColors&amp;&amp;(t.tooManyColors=e.tooManyColors),n||(i[r]=n={id:r,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;stream&quot;,type:&quot;uint8&quot;}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;uint8&quot;}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;uint8&quot;}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;float&quot;}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;float&quot;})},e=f({},b.defaults,e)),e.positions&amp;&amp;!(&quot;marker&quot;in e)&amp;&amp;(e.marker=n.marker,delete n.marker),e.marker&amp;&amp;!(&quot;positions&quot;in e)&amp;&amp;(e.positions=n.positions,delete n.positions);var m=0,x=0;if(d(n,e,[{snap:!0,size:function(t,e){return null==t&amp;&amp;(t=b.defaults.size),m+=t&amp;&amp;t.length?1:0,t},borderSize:function(t,e){return null==t&amp;&amp;(t=b.defaults.borderSize),m+=t&amp;&amp;t.length?1:0,t},opacity:parseFloat,color:function(e,r){return null==e&amp;&amp;(e=b.defaults.color),e=t.updateColor(e),x++,e},borderColor:function(e,r){return null==e&amp;&amp;(e=b.defaults.borderColor),e=t.updateColor(e),x++,e},bounds:function(t,e,r){return&quot;range&quot;in r||(r.range=null),t},positions:function(t,e,r){var n=e.snap,i=e.positionBuffer,a=e.positionFractBuffer,s=e.selectionBuffer;if(t.x||t.y)return t.x.length?e.xAttr={buffer:o.buffer(t.x),offset:0,stride:4,count:t.x.length}:e.xAttr={buffer:t.x.buffer,offset:4*t.x.offset||0,stride:4*(t.x.stride||1),count:t.x.count},t.y.length?e.yAttr={buffer:o.buffer(t.y),offset:0,stride:4,count:t.y.length}:e.yAttr={buffer:t.y.buffer,offset:4*t.y.offset||0,stride:4*(t.y.stride||1),count:t.y.count},e.count=Math.max(e.xAttr.count,e.yAttr.count),t;t=g(t,&quot;float64&quot;);var c=e.count=Math.floor(t.length/2),f=e.bounds=c?l(t,2):null;if(r.range||e.range||(delete e.range,r.range=f),r.marker||e.marker||(delete e.marker,r.marker=null),n&amp;&amp;(!0===n||c&gt;n)?e.tree=u(t,{bounds:f}):n&amp;&amp;n.length&amp;&amp;(e.tree=n),e.tree){var h={primitive:&quot;points&quot;,usage:&quot;static&quot;,data:e.tree,type:&quot;uint32&quot;};e.elements?e.elements(h):e.elements=o.elements(h)}return i({data:v.float(t),usage:&quot;dynamic&quot;}),a({data:v.fract(t),usage:&quot;dynamic&quot;}),s({data:new Uint8Array(c),type:&quot;uint8&quot;,usage:&quot;stream&quot;}),t}},{marker:function(e,r,n){var i=r.activation;if(i.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),i.length=0,e&amp;&amp;&quot;number&quot;!=typeof e[0]){for(var a=[],s=0,l=Math.min(e.length,r.count);s&lt;l;s++){var c=t.addMarker(e[s]);a[c]||(a[c]=new Uint8Array(r.count)),a[c][s]=1}for(var u=0;u&lt;a.length;u++)if(a[u]){var f={data:a[u],type:&quot;uint8&quot;,usage:&quot;static&quot;};i[u]?i[u](f):i[u]=o.buffer(f),i[u].data=a[u]}}else{i[t.addMarker(e)]=!0}return e},range:function(t,e,r){var n=e.bounds;if(n)return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=v.fract(e.scale),e.translateFract=v.fract(e.translate),t},viewport:function(t){return y(t||[a.drawingBufferWidth,a.drawingBufferHeight])}}]),m){var _=n,w=_.count,T=_.size,k=_.borderSize,M=_.sizeBuffer,A=new Uint8Array(2*w);if(T.length||k.length)for(var S=0;S&lt;w;S++)A[2*S]=Math.round(255*(null==T[S]?T:T[S])/s),A[2*S+1]=Math.round(255*(null==k[S]?k:k[S])/s);M({data:A,usage:&quot;dynamic&quot;})}if(x){var E,C=n,L=C.count,I=C.color,P=C.borderColor,z=C.colorBuffer;if(t.tooManyColors){if(I.length||P.length){E=new Uint8Array(8*L);for(var O=0;O&lt;L;O++){var D=I[O];E[8*O]=h[4*D],E[8*O+1]=h[4*D+1],E[8*O+2]=h[4*D+2],E[8*O+3]=h[4*D+3];var R=P[O];E[8*O+4]=h[4*R],E[8*O+5]=h[4*R+1],E[8*O+6]=h[4*R+2],E[8*O+7]=h[4*R+3]}}}else if(I.length||P.length){E=new Uint8Array(4*L+2);for(var F=0;F&lt;L;F++)null!=I[F]&amp;&amp;(E[4*F]=I[F]%c,E[4*F+1]=Math.floor(I[F]/c)),null!=P[F]&amp;&amp;(E[4*F+2]=P[F]%c,E[4*F+3]=Math.floor(P[F]/c))}z({data:E||new Uint8Array(0),type:&quot;uint8&quot;,usage:&quot;dynamic&quot;})}return n}))}},b.prototype.addMarker=function(t){var e,r=this.markerTextures,n=this.regl,i=this.markerCache,a=null==t?0:i.indexOf(t);if(a&gt;=0)return a;if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)e=t;else{e=new Uint8Array(t.length);for(var o=0,s=t.length;o&lt;s;o++)e[o]=255*t[o]}var l=Math.floor(Math.sqrt(e.length));return a=r.length,i.push(t),r.push(n.texture({channels:1,data:e,radius:l,mag:&quot;linear&quot;,min:&quot;linear&quot;})),a},b.prototype.updateColor=function(t){var e=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(t)||(t=[t]);var i=[];if(&quot;number&quot;==typeof t[0]){var a=[];if(Array.isArray(t))for(var o=0;o&lt;t.length;o+=4)a.push(t.slice(o,o+4));else for(var l=0;l&lt;t.length;l+=4)a.push(t.subarray(l,l+4));t=a}for(var u=0;u&lt;t.length;u++){var f=t[u];f=s(f,&quot;uint8&quot;);var h=c(f,!1);if(null==e[h]){var p=r.length;e[h]=Math.floor(p/4),r[p]=f[0],r[p+1]=f[1],r[p+2]=f[2],r[p+3]=f[3]}i[u]=e[h]}return!this.tooManyColors&amp;&amp;r.length&gt;4*n&amp;&amp;(this.tooManyColors=!0),this.updatePalette(r),1===i.length?i[0]:i},b.prototype.updatePalette=function(t){if(!this.tooManyColors){var e=this.maxColors,r=this.paletteTexture,n=Math.ceil(.25*t.length/e);if(n&gt;1)for(var i=.25*(t=t.slice()).length%e;i&lt;n*e;i++)t.push(0,0,0,0);r.height&lt;n&amp;&amp;r.resize(e,n),r.subimage({width:Math.min(.25*t.length,e),height:n,data:t},0,0)}},b.prototype.destroy=function(){return this.groups.forEach((function(t){t.sizeBuffer.destroy(),t.positionBuffer.destroy(),t.positionFractBuffer.destroy(),t.colorBuffer.destroy(),t.activation.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),t.selectionBuffer.destroy(),t.elements&amp;&amp;t.elements.destroy()})),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),this};var _=t(&quot;object-assign&quot;);e.exports=function(t,e){var r=new x(t,e),n=r.render.bind(r);return _(n,{render:n,update:r.update.bind(r),draw:r.draw.bind(r),destroy:r.destroy.bind(r),regl:r.regl,gl:r.gl,canvas:r.gl.canvas,groups:r.groups,markers:r.markerCache,palette:r.palette}),n}},{&quot;@plotly/point-cluster&quot;:57,&quot;array-bounds&quot;:70,&quot;color-id&quot;:123,&quot;color-normalize&quot;:125,&quot;flatten-vertex-data&quot;:244,glslify:538,&quot;is-iexplorer&quot;:466,&quot;object-assign&quot;:499,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511,&quot;to-float32&quot;:577,&quot;update-diff&quot;:599}],538:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],539:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-scatter2d&quot;),i=t(&quot;pick-by-alias&quot;),a=t(&quot;array-bounds&quot;),o=t(&quot;raf&quot;),s=t(&quot;array-range&quot;),l=t(&quot;parse-rect&quot;),c=t(&quot;flatten-vertex-data&quot;);function u(t,e){if(!(this instanceof u))return new u(t,e);this.traces=[],this.passes={},this.regl=t,this.scatter=n(t),this.canvas=this.scatter.canvas}function f(t,e,r){return(null!=t.id?t.id:t)&lt;&lt;16|(255&amp;e)&lt;&lt;8|255&amp;r}function h(t,e,r){var n,i,a,o,s=t[e],l=t[r];return s.length&gt;2?(s[0],s[2],n=s[1],i=s[3]):s.length?(n=s[0],i=s[1]):(s.x,n=s.y,s.x+s.width,i=s.y+s.height),l.length&gt;2?(a=l[0],o=l[2],l[1],l[3]):l.length?(a=l[0],o=l[1]):(a=l.x,l.y,o=l.x+l.width,l.y+l.height),[a,n,o,i]}function p(t){if(&quot;number&quot;==typeof t)return[t,t,t,t];if(2===t.length)return[t[0],t[1],t[0],t[1]];var e=l(t);return[e.x,e.y,e.x+e.width,e.y+e.height]}e.exports=u,u.prototype.render=function(){for(var t,e=this,r=[],n=arguments.length;n--;)r[n]=arguments[n];return r.length&amp;&amp;(t=this).update.apply(t,r),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?null==this.planned&amp;&amp;(this.planned=o((function(){e.draw(),e.dirty=!0,e.planned=null}))):(this.draw(),this.dirty=!0,o((function(){e.dirty=!1}))),this)},u.prototype.update=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=0;n&lt;e.length;n++)this.updateItem(n,e[n]);this.traces=this.traces.filter(Boolean);for(var i=[],a=0,o=0;o&lt;this.traces.length;o++){for(var s=this.traces[o],l=this.traces[o].passes,c=0;c&lt;l.length;c++)i.push(this.passes[l[c]]);s.passOffset=a,a+=s.passes.length}return(t=this.scatter).update.apply(t,i),this}},u.prototype.updateItem=function(t,e){var r=this.regl;if(null===e)return this.traces[t]=null,this;if(!e)return this;var n,o=i(e,{data:&quot;data items columns rows values dimensions samples x&quot;,snap:&quot;snap cluster&quot;,size:&quot;sizes size radius&quot;,color:&quot;colors color fill fill-color fillColor&quot;,opacity:&quot;opacity alpha transparency opaque&quot;,borderSize:&quot;borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline&quot;,borderColor:&quot;borderColors borderColor bordercolor stroke stroke-color strokeColor&quot;,marker:&quot;markers marker shape&quot;,range:&quot;range ranges databox dataBox&quot;,viewport:&quot;viewport viewBox viewbox&quot;,domain:&quot;domain domains area areas&quot;,padding:&quot;pad padding paddings pads margin margins&quot;,transpose:&quot;transpose transposed&quot;,diagonal:&quot;diagonal diag showDiagonal&quot;,upper:&quot;upper up top upperhalf upperHalf showupperhalf showUpper showUpperHalf&quot;,lower:&quot;lower low bottom lowerhalf lowerHalf showlowerhalf showLowerHalf showLower&quot;}),s=this.traces[t]||(this.traces[t]={id:t,buffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array}),color:&quot;black&quot;,marker:null,size:12,borderColor:&quot;transparent&quot;,borderSize:1,viewport:l([r._gl.drawingBufferWidth,r._gl.drawingBufferHeight]),padding:[0,0,0,0],opacity:1,diagonal:!0,upper:!0,lower:!0});if(null!=o.color&amp;&amp;(s.color=o.color),null!=o.size&amp;&amp;(s.size=o.size),null!=o.marker&amp;&amp;(s.marker=o.marker),null!=o.borderColor&amp;&amp;(s.borderColor=o.borderColor),null!=o.borderSize&amp;&amp;(s.borderSize=o.borderSize),null!=o.opacity&amp;&amp;(s.opacity=o.opacity),o.viewport&amp;&amp;(s.viewport=l(o.viewport)),null!=o.diagonal&amp;&amp;(s.diagonal=o.diagonal),null!=o.upper&amp;&amp;(s.upper=o.upper),null!=o.lower&amp;&amp;(s.lower=o.lower),o.data){s.buffer(c(o.data)),s.columns=o.data.length,s.count=o.data[0].length,s.bounds=[];for(var u=0;u&lt;s.columns;u++)s.bounds[u]=a(o.data[u],1)}o.range&amp;&amp;(s.range=o.range,n=s.range&amp;&amp;&quot;number&quot;!=typeof s.range[0]),o.domain&amp;&amp;(s.domain=o.domain);var d=!1;null!=o.padding&amp;&amp;(Array.isArray(o.padding)&amp;&amp;o.padding.length===s.columns&amp;&amp;&quot;number&quot;==typeof o.padding[o.padding.length-1]?(s.padding=o.padding.map(p),d=!0):s.padding=p(o.padding));var g=s.columns,m=s.count,v=s.viewport.width,y=s.viewport.height,x=s.viewport.x,b=s.viewport.y,_=v/g,w=y/g;s.passes=[];for(var T=0;T&lt;g;T++)for(var k=0;k&lt;g;k++)if((s.diagonal||k!==T)&amp;&amp;(s.upper||!(T&gt;k))&amp;&amp;(s.lower||!(T&lt;k))){var M=f(s.id,T,k),A=this.passes[M]||(this.passes[M]={});if(o.data&amp;&amp;(o.transpose?A.positions={x:{buffer:s.buffer,offset:k,count:m,stride:g},y:{buffer:s.buffer,offset:T,count:m,stride:g}}:A.positions={x:{buffer:s.buffer,offset:k*m,count:m},y:{buffer:s.buffer,offset:T*m,count:m}},A.bounds=h(s.bounds,T,k)),o.domain||o.viewport||o.data){var S=d?h(s.padding,T,k):s.padding;if(s.domain){var E=h(s.domain,T,k),C=E[0],L=E[1],I=E[2],P=E[3];A.viewport=[x+C*v+S[0],b+L*y+S[1],x+I*v-S[2],b+P*y-S[3]]}else A.viewport=[x+k*_+_*S[0],b+T*w+w*S[1],x+(k+1)*_-_*S[2],b+(T+1)*w-w*S[3]]}o.color&amp;&amp;(A.color=s.color),o.size&amp;&amp;(A.size=s.size),o.marker&amp;&amp;(A.marker=s.marker),o.borderSize&amp;&amp;(A.borderSize=s.borderSize),o.borderColor&amp;&amp;(A.borderColor=s.borderColor),o.opacity&amp;&amp;(A.opacity=s.opacity),o.range&amp;&amp;(A.range=n?h(s.range,T,k):s.range||A.bounds),s.passes.push(M)}return this},u.prototype.draw=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=[],i=0;i&lt;e.length;i++)if(&quot;number&quot;==typeof e[i]){var a=this.traces[e[i]],o=a.passes,l=a.passOffset;n.push.apply(n,s(l,l+o.length))}else if(e[i].length){var c=e[i],u=this.traces[i],f=u.passes,h=u.passOffset;f=f.map((function(t,e){n[h+e]=c}))}(t=this.scatter).draw.apply(t,n)}else this.scatter.draw();return this},u.prototype.destroy=function(){return this.traces.forEach((function(t){t.buffer&amp;&amp;t.buffer.destroy&amp;&amp;t.buffer.destroy()})),this.traces=null,this.passes=null,this.scatter.destroy(),this}},{&quot;array-bounds&quot;:70,&quot;array-range&quot;:72,&quot;flatten-vertex-data&quot;:244,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511,raf:528,&quot;regl-scatter2d&quot;:537}],540:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?e.exports=n():t.createREGL=n()}(this,(function(){function t(t,e){this.id=V++,this.type=t,this.data=e}function e(t){return&quot;[&quot;+function t(e){if(0===e.length)return[];var r=e.charAt(0),n=e.charAt(e.length-1);if(1&lt;e.length&amp;&amp;r===n&amp;&amp;('&quot;'===r||&quot;'&quot;===r))return['&quot;'+e.substr(1,e.length-2).replace(/\\/g,&quot;\\\\&quot;).replace(/&quot;/g,'\\&quot;')+'&quot;'];if(r=/\[(false|true|null|\d+|'[^']*'|&quot;[^&quot;]*&quot;)\]/.exec(e))return t(e.substr(0,r.index)).concat(t(r[1])).concat(t(e.substr(r.index+r[0].length)));if(1===(r=e.split(&quot;.&quot;)).length)return['&quot;'+e.replace(/\\/g,&quot;\\\\&quot;).replace(/&quot;/g,'\\&quot;')+'&quot;'];for(e=[],n=0;n&lt;r.length;++n)e=e.concat(t(r[n]));return e}(t).join(&quot;][&quot;)+&quot;]&quot;}function r(t){return&quot;string&quot;==typeof t?t.split():t}function n(t){return&quot;string&quot;==typeof t?document.querySelector(t):t}function i(t){var e,i,a,o,s=t||{};t={};var l=[],c=[],u=&quot;undefined&quot;==typeof window?1:window.devicePixelRatio,f=!1,h=function(t){},p=function(){};if(&quot;string&quot;==typeof s?e=document.querySelector(s):&quot;object&quot;==typeof s&amp;&amp;(&quot;string&quot;==typeof s.nodeName&amp;&amp;&quot;function&quot;==typeof s.appendChild&amp;&amp;&quot;function&quot;==typeof s.getBoundingClientRect?e=s:&quot;function&quot;==typeof s.drawArrays||&quot;function&quot;==typeof s.drawElements?a=(o=s).canvas:(&quot;gl&quot;in s?o=s.gl:&quot;canvas&quot;in s?a=n(s.canvas):&quot;container&quot;in s&amp;&amp;(i=n(s.container)),&quot;attributes&quot;in s&amp;&amp;(t=s.attributes),&quot;extensions&quot;in s&amp;&amp;(l=r(s.extensions)),&quot;optionalExtensions&quot;in s&amp;&amp;(c=r(s.optionalExtensions)),&quot;onDone&quot;in s&amp;&amp;(h=s.onDone),&quot;profile&quot;in s&amp;&amp;(f=!!s.profile),&quot;pixelRatio&quot;in s&amp;&amp;(u=+s.pixelRatio))),e&amp;&amp;(&quot;canvas&quot;===e.nodeName.toLowerCase()?a=e:i=e),!o){if(!a){if(!(e=function(t,e,r){function n(){var e=window.innerWidth,n=window.innerHeight;t!==document.body&amp;&amp;(e=(n=t.getBoundingClientRect()).right-n.left,n=n.bottom-n.top),a.width=r*e,a.height=r*n,U(a.style,{width:e+&quot;px&quot;,height:n+&quot;px&quot;})}var i,a=document.createElement(&quot;canvas&quot;);return U(a.style,{border:0,margin:0,padding:0,top:0,left:0}),t.appendChild(a),t===document.body&amp;&amp;(a.style.position=&quot;absolute&quot;,U(t.style,{margin:0,padding:0})),t!==document.body&amp;&amp;&quot;function&quot;==typeof ResizeObserver?(i=new ResizeObserver((function(){setTimeout(n)}))).observe(t):window.addEventListener(&quot;resize&quot;,n,!1),n(),{canvas:a,onDestroy:function(){i?i.disconnect():window.removeEventListener(&quot;resize&quot;,n),t.removeChild(a)}}}(i||document.body,0,u)))return null;a=e.canvas,p=e.onDestroy}void 0===t.premultipliedAlpha&amp;&amp;(t.premultipliedAlpha=!0),o=function(t,e){function r(r){try{return t.getContext(r,e)}catch(t){return null}}return r(&quot;webgl&quot;)||r(&quot;experimental-webgl&quot;)||r(&quot;webgl-experimental&quot;)}(a,t)}return o?{gl:o,canvas:a,container:i,extensions:l,optionalExtensions:c,pixelRatio:u,profile:f,onDone:h,onDestroy:p}:(p(),h(&quot;webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org&quot;),null)}function a(t,e){for(var r=Array(t),n=0;n&lt;t;++n)r[n]=e(n);return r}function o(t){var e,r;return e=(65535&lt;t)&lt;&lt;4,e|=r=(255&lt;(t&gt;&gt;&gt;=e))&lt;&lt;3,(e|=r=(15&lt;(t&gt;&gt;&gt;=r))&lt;&lt;2)|(r=(3&lt;(t&gt;&gt;&gt;=r))&lt;&lt;1)|t&gt;&gt;&gt;r&gt;&gt;1}function s(){function t(t){t:{for(var e=16;268435456&gt;=e;e*=16)if(t&lt;=e){t=e;break t}t=0}return 0&lt;(e=r[o(t)&gt;&gt;2]).length?e.pop():new ArrayBuffer(t)}function e(t){r[o(t.byteLength)&gt;&gt;2].push(t)}var r=a(8,(function(){return[]}));return{alloc:t,free:e,allocType:function(e,r){var n=null;switch(e){case 5120:n=new Int8Array(t(r),0,r);break;case 5121:n=new Uint8Array(t(r),0,r);break;case 5122:n=new Int16Array(t(2*r),0,r);break;case 5123:n=new Uint16Array(t(2*r),0,r);break;case 5124:n=new Int32Array(t(4*r),0,r);break;case 5125:n=new Uint32Array(t(4*r),0,r);break;case 5126:n=new Float32Array(t(4*r),0,r);break;default:return null}return n.length!==r?n.subarray(0,r):n},freeType:function(t){e(t.buffer)}}}function l(t){return!!t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;Array.isArray(t.shape)&amp;&amp;Array.isArray(t.stride)&amp;&amp;&quot;number&quot;==typeof t.offset&amp;&amp;t.shape.length===t.stride.length&amp;&amp;(Array.isArray(t.data)||X(t.data))}function c(t,e,r,n,i,a){for(var o=0;o&lt;e;++o)for(var s=t[o],l=0;l&lt;r;++l)for(var c=s[l],u=0;u&lt;n;++u)i[a++]=c[u]}function u(t){return 0|K[Object.prototype.toString.call(t)]}function f(t,e){for(var r=0;r&lt;e.length;++r)t[r]=e[r]}function h(t,e,r,n,i,a,o){for(var s=0,l=0;l&lt;r;++l)for(var c=0;c&lt;n;++c)t[s++]=e[i*l+a*c+o]}function p(t,e,r,n){function i(e){this.id=c++,this.buffer=t.createBuffer(),this.type=e,this.usage=35044,this.byteLength=0,this.dimension=1,this.dtype=5121,this.persistentData=null,r.profile&amp;&amp;(this.stats={size:0})}function a(e,r,n){e.byteLength=r.byteLength,t.bufferData(e.type,r,n)}function o(t,e,r,n,i,o){if(t.usage=r,Array.isArray(e)){if(t.dtype=n||5126,0&lt;e.length)if(Array.isArray(e[0])){i=et(e);for(var s=n=1;s&lt;i.length;++s)n*=i[s];t.dimension=n,a(t,e=tt(e,i,t.dtype),r),o?t.persistentData=e:Y.freeType(e)}else&quot;number&quot;==typeof e[0]?(t.dimension=i,f(i=Y.allocType(t.dtype,e.length),e),a(t,i,r),o?t.persistentData=i:Y.freeType(i)):X(e[0])&amp;&amp;(t.dimension=e[0].length,t.dtype=n||u(e[0])||5126,a(t,e=tt(e,[e.length,e[0].length],t.dtype),r),o?t.persistentData=e:Y.freeType(e))}else if(X(e))t.dtype=n||u(e),t.dimension=i,a(t,e,r),o&amp;&amp;(t.persistentData=new Uint8Array(new Uint8Array(e.buffer)));else if(l(e)){i=e.shape;var c=e.stride,p=(s=e.offset,0),d=0,g=0,m=0;1===i.length?(p=i[0],d=1,g=c[0],m=0):2===i.length&amp;&amp;(p=i[0],d=i[1],g=c[0],m=c[1]),t.dtype=n||u(e.data)||5126,t.dimension=d,h(i=Y.allocType(t.dtype,p*d),e.data,p,d,g,m,s),a(t,i,r),o?t.persistentData=i:Y.freeType(i)}else e instanceof ArrayBuffer&amp;&amp;(t.dtype=5121,t.dimension=i,a(t,e,r),o&amp;&amp;(t.persistentData=new Uint8Array(new Uint8Array(e))))}function s(r){e.bufferCount--,n(r),t.deleteBuffer(r.buffer),r.buffer=null,delete p[r.id]}var c=0,p={};i.prototype.bind=function(){t.bindBuffer(this.type,this.buffer)},i.prototype.destroy=function(){s(this)};var d=[];return r.profile&amp;&amp;(e.getTotalBufferSize=function(){var t=0;return Object.keys(p).forEach((function(e){t+=p[e].stats.size})),t}),{create:function(n,a,c,d){function g(e){var n=35044,i=null,a=0,s=0,c=1;return Array.isArray(e)||X(e)||l(e)||e instanceof ArrayBuffer?i=e:&quot;number&quot;==typeof e?a=0|e:e&amp;&amp;(&quot;data&quot;in e&amp;&amp;(i=e.data),&quot;usage&quot;in e&amp;&amp;(n=$[e.usage]),&quot;type&quot;in e&amp;&amp;(s=Q[e.type]),&quot;dimension&quot;in e&amp;&amp;(c=0|e.dimension),&quot;length&quot;in e&amp;&amp;(a=0|e.length)),m.bind(),i?o(m,i,n,s,c,d):(a&amp;&amp;t.bufferData(m.type,a,n),m.dtype=s||5121,m.usage=n,m.dimension=c,m.byteLength=a),r.profile&amp;&amp;(m.stats.size=m.byteLength*rt[m.dtype]),g}e.bufferCount++;var m=new i(a);return p[m.id]=m,c||g(n),g._reglType=&quot;buffer&quot;,g._buffer=m,g.subdata=function(e,r){var n,i=0|(r||0);if(m.bind(),X(e)||e instanceof ArrayBuffer)t.bufferSubData(m.type,i,e);else if(Array.isArray(e)){if(0&lt;e.length)if(&quot;number&quot;==typeof e[0]){var a=Y.allocType(m.dtype,e.length);f(a,e),t.bufferSubData(m.type,i,a),Y.freeType(a)}else(Array.isArray(e[0])||X(e[0]))&amp;&amp;(n=et(e),a=tt(e,n,m.dtype),t.bufferSubData(m.type,i,a),Y.freeType(a))}else if(l(e)){n=e.shape;var o=e.stride,s=a=0,c=0,p=0;1===n.length?(a=n[0],s=1,c=o[0],p=0):2===n.length&amp;&amp;(a=n[0],s=n[1],c=o[0],p=o[1]),n=Array.isArray(e.data)?m.dtype:u(e.data),h(n=Y.allocType(n,a*s),e.data,a,s,c,p,e.offset),t.bufferSubData(m.type,i,n),Y.freeType(n)}return g},r.profile&amp;&amp;(g.stats=m.stats),g.destroy=function(){s(m)},g},createStream:function(t,e){var r=d.pop();return r||(r=new i(t)),r.bind(),o(r,e,35040,0,1,!1),r},destroyStream:function(t){d.push(t)},clear:function(){Z(p).forEach(s),d.forEach(s)},getBuffer:function(t){return t&amp;&amp;t._buffer instanceof i?t._buffer:null},restore:function(){Z(p).forEach((function(e){e.buffer=t.createBuffer(),t.bindBuffer(e.type,e.buffer),t.bufferData(e.type,e.persistentData||e.byteLength,e.usage)}))},_initBuffer:o}}function d(t,e,r,n){function i(t){this.id=c++,s[this.id]=this,this.buffer=t,this.primType=4,this.type=this.vertCount=0}function a(n,i,a,o,s,c,u){var f;if(n.buffer.bind(),i?((f=u)||X(i)&amp;&amp;(!l(i)||X(i.data))||(f=e.oes_element_index_uint?5125:5123),r._initBuffer(n.buffer,i,a,f,3)):(t.bufferData(34963,c,a),n.buffer.dtype=f||5121,n.buffer.usage=a,n.buffer.dimension=3,n.buffer.byteLength=c),f=u,!u){switch(n.buffer.dtype){case 5121:case 5120:f=5121;break;case 5123:case 5122:f=5123;break;case 5125:case 5124:f=5125}n.buffer.dtype=f}n.type=f,0&gt;(i=s)&amp;&amp;(i=n.buffer.byteLength,5123===f?i&gt;&gt;=1:5125===f&amp;&amp;(i&gt;&gt;=2)),n.vertCount=i,i=o,0&gt;o&amp;&amp;(i=4,1===(o=n.buffer.dimension)&amp;&amp;(i=0),2===o&amp;&amp;(i=1),3===o&amp;&amp;(i=4)),n.primType=i}function o(t){n.elementsCount--,delete s[t.id],t.buffer.destroy(),t.buffer=null}var s={},c=0,u={uint8:5121,uint16:5123};e.oes_element_index_uint&amp;&amp;(u.uint32=5125),i.prototype.bind=function(){this.buffer.bind()};var f=[];return{create:function(t,e){function s(t){if(t)if(&quot;number&quot;==typeof t)c(t),f.primType=4,f.vertCount=0|t,f.type=5121;else{var e=null,r=35044,n=-1,i=-1,o=0,h=0;Array.isArray(t)||X(t)||l(t)?e=t:(&quot;data&quot;in t&amp;&amp;(e=t.data),&quot;usage&quot;in t&amp;&amp;(r=$[t.usage]),&quot;primitive&quot;in t&amp;&amp;(n=nt[t.primitive]),&quot;count&quot;in t&amp;&amp;(i=0|t.count),&quot;type&quot;in t&amp;&amp;(h=u[t.type]),&quot;length&quot;in t?o=0|t.length:(o=i,5123===h||5122===h?o*=2:5125!==h&amp;&amp;5124!==h||(o*=4))),a(f,e,r,n,i,o,h)}else c(),f.primType=4,f.vertCount=0,f.type=5121;return s}var c=r.create(null,34963,!0),f=new i(c._buffer);return n.elementsCount++,s(t),s._reglType=&quot;elements&quot;,s._elements=f,s.subdata=function(t,e){return c.subdata(t,e),s},s.destroy=function(){o(f)},s},createStream:function(t){var e=f.pop();return e||(e=new i(r.create(null,34963,!0,!1)._buffer)),a(e,t,35040,-1,-1,0,0),e},destroyStream:function(t){f.push(t)},getElements:function(t){return&quot;function&quot;==typeof t&amp;&amp;t._elements instanceof i?t._elements:null},clear:function(){Z(s).forEach(o)}}}function g(t){for(var e=Y.allocType(5123,t.length),r=0;r&lt;t.length;++r)if(isNaN(t[r]))e[r]=65535;else if(1/0===t[r])e[r]=31744;else if(-1/0===t[r])e[r]=64512;else{it[0]=t[r];var n=(a=at[0])&gt;&gt;&gt;31&lt;&lt;15,i=(a&lt;&lt;1&gt;&gt;&gt;24)-127,a=a&gt;&gt;13&amp;1023;e[r]=-24&gt;i?n:-14&gt;i?n+(a+1024&gt;&gt;-14-i):15&lt;i?n+31744:n+(i+15&lt;&lt;10)+a}return e}function m(t){return Array.isArray(t)||X(t)}function v(t){return&quot;[object &quot;+t+&quot;]&quot;}function y(t){return Array.isArray(t)&amp;&amp;(0===t.length||&quot;number&quot;==typeof t[0])}function x(t){return!(!Array.isArray(t)||0===t.length||!m(t[0]))}function b(t){return Object.prototype.toString.call(t)}function _(t){if(!t)return!1;var e=b(t);return 0&lt;=gt.indexOf(e)||(y(t)||x(t)||l(t))}function w(t,e){36193===t.type?(t.data=g(e),Y.freeType(e)):t.data=e}function T(t,e,r,n,i,a){if(t=&quot;undefined&quot;!=typeof vt[t]?vt[t]:lt[t]*mt[e],a&amp;&amp;(t*=6),i){for(n=0;1&lt;=r;)n+=t*r*r,r/=2;return n}return t*r*n}function k(t,e,r,n,i,a,o){function s(){this.format=this.internalformat=6408,this.type=5121,this.flipY=this.premultiplyAlpha=this.compressed=!1,this.unpackAlignment=1,this.colorSpace=37444,this.channels=this.height=this.width=0}function c(t,e){t.internalformat=e.internalformat,t.format=e.format,t.type=e.type,t.compressed=e.compressed,t.premultiplyAlpha=e.premultiplyAlpha,t.flipY=e.flipY,t.unpackAlignment=e.unpackAlignment,t.colorSpace=e.colorSpace,t.width=e.width,t.height=e.height,t.channels=e.channels}function u(t,e){if(&quot;object&quot;==typeof e&amp;&amp;e){&quot;premultiplyAlpha&quot;in e&amp;&amp;(t.premultiplyAlpha=e.premultiplyAlpha),&quot;flipY&quot;in e&amp;&amp;(t.flipY=e.flipY),&quot;alignment&quot;in e&amp;&amp;(t.unpackAlignment=e.alignment),&quot;colorSpace&quot;in e&amp;&amp;(t.colorSpace=q[e.colorSpace]),&quot;type&quot;in e&amp;&amp;(t.type=H[e.type]);var r=t.width,n=t.height,i=t.channels,a=!1;&quot;shape&quot;in e?(r=e.shape[0],n=e.shape[1],3===e.shape.length&amp;&amp;(i=e.shape[2],a=!0)):(&quot;radius&quot;in e&amp;&amp;(r=n=e.radius),&quot;width&quot;in e&amp;&amp;(r=e.width),&quot;height&quot;in e&amp;&amp;(n=e.height),&quot;channels&quot;in e&amp;&amp;(i=e.channels,a=!0)),t.width=0|r,t.height=0|n,t.channels=0|i,r=!1,&quot;format&quot;in e&amp;&amp;(r=e.format,n=t.internalformat=G[r],t.format=at[n],r in H&amp;&amp;!(&quot;type&quot;in e)&amp;&amp;(t.type=H[r]),r in W&amp;&amp;(t.compressed=!0),r=!0),!a&amp;&amp;r?t.channels=lt[t.format]:a&amp;&amp;!r&amp;&amp;t.channels!==st[t.format]&amp;&amp;(t.format=t.internalformat=st[t.channels])}}function f(e){t.pixelStorei(37440,e.flipY),t.pixelStorei(37441,e.premultiplyAlpha),t.pixelStorei(37443,e.colorSpace),t.pixelStorei(3317,e.unpackAlignment)}function h(){s.call(this),this.yOffset=this.xOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function p(t,e){var r=null;if(_(e)?r=e:e&amp;&amp;(u(t,e),&quot;x&quot;in e&amp;&amp;(t.xOffset=0|e.x),&quot;y&quot;in e&amp;&amp;(t.yOffset=0|e.y),_(e.data)&amp;&amp;(r=e.data)),e.copy){var n=i.viewportWidth,a=i.viewportHeight;t.width=t.width||n-t.xOffset,t.height=t.height||a-t.yOffset,t.needsCopy=!0}else if(r){if(X(r))t.channels=t.channels||4,t.data=r,&quot;type&quot;in e||5121!==t.type||(t.type=0|K[Object.prototype.toString.call(r)]);else if(y(r)){switch(t.channels=t.channels||4,a=(n=r).length,t.type){case 5121:case 5123:case 5125:case 5126:(a=Y.allocType(t.type,a)).set(n),t.data=a;break;case 36193:t.data=g(n)}t.alignment=1,t.needsFree=!0}else if(l(r)){n=r.data,Array.isArray(n)||5121!==t.type||(t.type=0|K[Object.prototype.toString.call(n)]);a=r.shape;var o,s,c,f,h=r.stride;3===a.length?(c=a[2],f=h[2]):f=c=1,o=a[0],s=a[1],a=h[0],h=h[1],t.alignment=1,t.width=o,t.height=s,t.channels=c,t.format=t.internalformat=st[c],t.needsFree=!0,o=f,r=r.offset,c=t.width,f=t.height,s=t.channels;for(var p=Y.allocType(36193===t.type?5126:t.type,c*f*s),d=0,v=0;v&lt;f;++v)for(var T=0;T&lt;c;++T)for(var k=0;k&lt;s;++k)p[d++]=n[a*T+h*v+o*k+r];w(t,p)}else if(b(r)===ct||b(r)===ut||b(r)===ft)b(r)===ct||b(r)===ut?t.element=r:t.element=r.canvas,t.width=t.element.width,t.height=t.element.height,t.channels=4;else if(b(r)===ht)t.element=r,t.width=r.width,t.height=r.height,t.channels=4;else if(b(r)===pt)t.element=r,t.width=r.naturalWidth,t.height=r.naturalHeight,t.channels=4;else if(b(r)===dt)t.element=r,t.width=r.videoWidth,t.height=r.videoHeight,t.channels=4;else if(x(r)){for(n=t.width||r[0].length,a=t.height||r.length,h=t.channels,h=m(r[0][0])?h||r[0][0].length:h||1,o=J.shape(r),c=1,f=0;f&lt;o.length;++f)c*=o[f];c=Y.allocType(36193===t.type?5126:t.type,c),J.flatten(r,o,&quot;&quot;,c),w(t,c),t.alignment=1,t.width=n,t.height=a,t.channels=h,t.format=t.internalformat=st[h],t.needsFree=!0}}else t.width=t.width||1,t.height=t.height||1,t.channels=t.channels||4}function d(e,r,i,a,o){var s=e.element,l=e.data,c=e.internalformat,u=e.format,h=e.type,p=e.width,d=e.height;f(e),s?t.texSubImage2D(r,o,i,a,u,h,s):e.compressed?t.compressedTexSubImage2D(r,o,i,a,c,p,d,l):e.needsCopy?(n(),t.copyTexSubImage2D(r,o,i,a,e.xOffset,e.yOffset,p,d)):t.texSubImage2D(r,o,i,a,p,d,u,h,l)}function v(){return gt.pop()||new h}function k(t){t.needsFree&amp;&amp;Y.freeType(t.data),h.call(t),gt.push(t)}function M(){s.call(this),this.genMipmaps=!1,this.mipmapHint=4352,this.mipmask=0,this.images=Array(16)}function A(t,e,r){var n=t.images[0]=v();t.mipmask=1,n.width=t.width=e,n.height=t.height=r,n.channels=t.channels=4}function S(t,e){var r=null;if(_(e))c(r=t.images[0]=v(),t),p(r,e),t.mipmask=1;else if(u(t,e),Array.isArray(e.mipmap))for(var n=e.mipmap,i=0;i&lt;n.length;++i)c(r=t.images[i]=v(),t),r.width&gt;&gt;=i,r.height&gt;&gt;=i,p(r,n[i]),t.mipmask|=1&lt;&lt;i;else c(r=t.images[0]=v(),t),p(r,e),t.mipmask=1;c(t,t.images[0])}function E(e,r){for(var i=e.images,a=0;a&lt;i.length&amp;&amp;i[a];++a){var o=i[a],s=r,l=a,c=o.element,u=o.data,h=o.internalformat,p=o.format,d=o.type,g=o.width,m=o.height;f(o),c?t.texImage2D(s,l,p,p,d,c):o.compressed?t.compressedTexImage2D(s,l,h,g,m,0,u):o.needsCopy?(n(),t.copyTexImage2D(s,l,p,o.xOffset,o.yOffset,g,m,0)):t.texImage2D(s,l,p,g,m,0,p,d,u||null)}}function C(){var t=mt.pop()||new M;s.call(t);for(var e=t.mipmask=0;16&gt;e;++e)t.images[e]=null;return t}function L(t){for(var e=t.images,r=0;r&lt;e.length;++r)e[r]&amp;&amp;k(e[r]),e[r]=null;mt.push(t)}function I(){this.magFilter=this.minFilter=9728,this.wrapT=this.wrapS=33071,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=4352}function P(t,e){&quot;min&quot;in e&amp;&amp;(t.minFilter=V[e.min],0&lt;=ot.indexOf(t.minFilter)&amp;&amp;!(&quot;faces&quot;in e)&amp;&amp;(t.genMipmaps=!0)),&quot;mag&quot;in e&amp;&amp;(t.magFilter=j[e.mag]);var r=t.wrapS,n=t.wrapT;if(&quot;wrap&quot;in e){var i=e.wrap;&quot;string&quot;==typeof i?r=n=N[i]:Array.isArray(i)&amp;&amp;(r=N[i[0]],n=N[i[1]])}else&quot;wrapS&quot;in e&amp;&amp;(r=N[e.wrapS]),&quot;wrapT&quot;in e&amp;&amp;(n=N[e.wrapT]);if(t.wrapS=r,t.wrapT=n,&quot;anisotropic&quot;in e&amp;&amp;(t.anisotropic=e.anisotropic),&quot;mipmap&quot;in e){switch(r=!1,typeof e.mipmap){case&quot;string&quot;:t.mipmapHint=B[e.mipmap],r=t.genMipmaps=!0;break;case&quot;boolean&quot;:r=t.genMipmaps=e.mipmap;break;case&quot;object&quot;:t.genMipmaps=!1,r=!0}!r||&quot;min&quot;in e||(t.minFilter=9984)}}function z(r,n){t.texParameteri(n,10241,r.minFilter),t.texParameteri(n,10240,r.magFilter),t.texParameteri(n,10242,r.wrapS),t.texParameteri(n,10243,r.wrapT),e.ext_texture_filter_anisotropic&amp;&amp;t.texParameteri(n,34046,r.anisotropic),r.genMipmaps&amp;&amp;(t.hint(33170,r.mipmapHint),t.generateMipmap(n))}function O(e){s.call(this),this.mipmask=0,this.internalformat=6408,this.id=vt++,this.refCount=1,this.target=e,this.texture=t.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new I,o.profile&amp;&amp;(this.stats={size:0})}function D(e){t.activeTexture(33984),t.bindTexture(e.target,e.texture)}function R(){var e=bt[0];e?t.bindTexture(e.target,e.texture):t.bindTexture(3553,null)}function F(e){var r=e.texture,n=e.unit,i=e.target;0&lt;=n&amp;&amp;(t.activeTexture(33984+n),t.bindTexture(i,null),bt[n]=null),t.deleteTexture(r),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete yt[e.id],a.textureCount--}var B={&quot;don't care&quot;:4352,&quot;dont care&quot;:4352,nice:4354,fast:4353},N={repeat:10497,clamp:33071,mirror:33648},j={nearest:9728,linear:9729},V=U({mipmap:9987,&quot;nearest mipmap nearest&quot;:9984,&quot;linear mipmap nearest&quot;:9985,&quot;nearest mipmap linear&quot;:9986,&quot;linear mipmap linear&quot;:9987},j),q={none:0,browser:37444},H={uint8:5121,rgba4:32819,rgb565:33635,&quot;rgb5 a1&quot;:32820},G={alpha:6406,luminance:6409,&quot;luminance alpha&quot;:6410,rgb:6407,rgba:6408,rgba4:32854,&quot;rgb5 a1&quot;:32855,rgb565:36194},W={};e.ext_srgb&amp;&amp;(G.srgb=35904,G.srgba=35906),e.oes_texture_float&amp;&amp;(H.float32=H.float=5126),e.oes_texture_half_float&amp;&amp;(H.float16=H[&quot;half float&quot;]=36193),e.webgl_depth_texture&amp;&amp;(U(G,{depth:6402,&quot;depth stencil&quot;:34041}),U(H,{uint16:5123,uint32:5125,&quot;depth stencil&quot;:34042})),e.webgl_compressed_texture_s3tc&amp;&amp;U(W,{&quot;rgb s3tc dxt1&quot;:33776,&quot;rgba s3tc dxt1&quot;:33777,&quot;rgba s3tc dxt3&quot;:33778,&quot;rgba s3tc dxt5&quot;:33779}),e.webgl_compressed_texture_atc&amp;&amp;U(W,{&quot;rgb atc&quot;:35986,&quot;rgba atc explicit alpha&quot;:35987,&quot;rgba atc interpolated alpha&quot;:34798}),e.webgl_compressed_texture_pvrtc&amp;&amp;U(W,{&quot;rgb pvrtc 4bppv1&quot;:35840,&quot;rgb pvrtc 2bppv1&quot;:35841,&quot;rgba pvrtc 4bppv1&quot;:35842,&quot;rgba pvrtc 2bppv1&quot;:35843}),e.webgl_compressed_texture_etc1&amp;&amp;(W[&quot;rgb etc1&quot;]=36196);var Q=Array.prototype.slice.call(t.getParameter(34467));Object.keys(W).forEach((function(t){var e=W[t];0&lt;=Q.indexOf(e)&amp;&amp;(G[t]=e)}));var $=Object.keys(G);r.textureFormats=$;var tt=[];Object.keys(G).forEach((function(t){tt[G[t]]=t}));var et=[];Object.keys(H).forEach((function(t){et[H[t]]=t}));var rt=[];Object.keys(j).forEach((function(t){rt[j[t]]=t}));var nt=[];Object.keys(V).forEach((function(t){nt[V[t]]=t}));var it=[];Object.keys(N).forEach((function(t){it[N[t]]=t}));var at=$.reduce((function(t,r){var n=G[r];return 6409===n||6406===n||6409===n||6410===n||6402===n||34041===n||e.ext_srgb&amp;&amp;(35904===n||35906===n)?t[n]=n:32855===n||0&lt;=r.indexOf(&quot;rgba&quot;)?t[n]=6408:t[n]=6407,t}),{}),gt=[],mt=[],vt=0,yt={},xt=r.maxTextureUnits,bt=Array(xt).map((function(){return null}));return U(O.prototype,{bind:function(){this.bindCount+=1;var e=this.unit;if(0&gt;e){for(var r=0;r&lt;xt;++r){var n=bt[r];if(n){if(0&lt;n.bindCount)continue;n.unit=-1}bt[r]=this,e=r;break}o.profile&amp;&amp;a.maxTextureUnits&lt;e+1&amp;&amp;(a.maxTextureUnits=e+1),this.unit=e,t.activeTexture(33984+e),t.bindTexture(this.target,this.texture)}return e},unbind:function(){--this.bindCount},decRef:function(){0&gt;=--this.refCount&amp;&amp;F(this)}}),o.profile&amp;&amp;(a.getTotalTextureSize=function(){var t=0;return Object.keys(yt).forEach((function(e){t+=yt[e].stats.size})),t}),{create2D:function(e,r){function n(t,e){var r=i.texInfo;I.call(r);var a=C();return&quot;number&quot;==typeof t?A(a,0|t,&quot;number&quot;==typeof e?0|e:0|t):t?(P(r,t),S(a,t)):A(a,1,1),r.genMipmaps&amp;&amp;(a.mipmask=(a.width&lt;&lt;1)-1),i.mipmask=a.mipmask,c(i,a),i.internalformat=a.internalformat,n.width=a.width,n.height=a.height,D(i),E(a,3553),z(r,3553),R(),L(a),o.profile&amp;&amp;(i.stats.size=T(i.internalformat,i.type,a.width,a.height,r.genMipmaps,!1)),n.format=tt[i.internalformat],n.type=et[i.type],n.mag=rt[r.magFilter],n.min=nt[r.minFilter],n.wrapS=it[r.wrapS],n.wrapT=it[r.wrapT],n}var i=new O(3553);return yt[i.id]=i,a.textureCount++,n(e,r),n.subimage=function(t,e,r,a){e|=0,r|=0,a|=0;var o=v();return c(o,i),o.width=0,o.height=0,p(o,t),o.width=o.width||(i.width&gt;&gt;a)-e,o.height=o.height||(i.height&gt;&gt;a)-r,D(i),d(o,3553,e,r,a),R(),k(o),n},n.resize=function(e,r){var a=0|e,s=0|r||a;if(a===i.width&amp;&amp;s===i.height)return n;n.width=i.width=a,n.height=i.height=s,D(i);for(var l=0;i.mipmask&gt;&gt;l;++l){var c=a&gt;&gt;l,u=s&gt;&gt;l;if(!c||!u)break;t.texImage2D(3553,l,i.format,c,u,0,i.format,i.type,null)}return R(),o.profile&amp;&amp;(i.stats.size=T(i.internalformat,i.type,a,s,!1,!1)),n},n._reglType=&quot;texture2d&quot;,n._texture=i,o.profile&amp;&amp;(n.stats=i.stats),n.destroy=function(){i.decRef()},n},createCube:function(e,r,n,i,s,l){function f(t,e,r,n,i,a){var s,l=h.texInfo;for(I.call(l),s=0;6&gt;s;++s)g[s]=C();if(&quot;number&quot;!=typeof t&amp;&amp;t){if(&quot;object&quot;==typeof t)if(e)S(g[0],t),S(g[1],e),S(g[2],r),S(g[3],n),S(g[4],i),S(g[5],a);else if(P(l,t),u(h,t),&quot;faces&quot;in t)for(t=t.faces,s=0;6&gt;s;++s)c(g[s],h),S(g[s],t[s]);else for(s=0;6&gt;s;++s)S(g[s],t)}else for(t=0|t||1,s=0;6&gt;s;++s)A(g[s],t,t);for(c(h,g[0]),h.mipmask=l.genMipmaps?(g[0].width&lt;&lt;1)-1:g[0].mipmask,h.internalformat=g[0].internalformat,f.width=g[0].width,f.height=g[0].height,D(h),s=0;6&gt;s;++s)E(g[s],34069+s);for(z(l,34067),R(),o.profile&amp;&amp;(h.stats.size=T(h.internalformat,h.type,f.width,f.height,l.genMipmaps,!0)),f.format=tt[h.internalformat],f.type=et[h.type],f.mag=rt[l.magFilter],f.min=nt[l.minFilter],f.wrapS=it[l.wrapS],f.wrapT=it[l.wrapT],s=0;6&gt;s;++s)L(g[s]);return f}var h=new O(34067);yt[h.id]=h,a.cubeCount++;var g=Array(6);return f(e,r,n,i,s,l),f.subimage=function(t,e,r,n,i){r|=0,n|=0,i|=0;var a=v();return c(a,h),a.width=0,a.height=0,p(a,e),a.width=a.width||(h.width&gt;&gt;i)-r,a.height=a.height||(h.height&gt;&gt;i)-n,D(h),d(a,34069+t,r,n,i),R(),k(a),f},f.resize=function(e){if((e|=0)!==h.width){f.width=h.width=e,f.height=h.height=e,D(h);for(var r=0;6&gt;r;++r)for(var n=0;h.mipmask&gt;&gt;n;++n)t.texImage2D(34069+r,n,h.format,e&gt;&gt;n,e&gt;&gt;n,0,h.format,h.type,null);return R(),o.profile&amp;&amp;(h.stats.size=T(h.internalformat,h.type,f.width,f.height,!1,!0)),f}},f._reglType=&quot;textureCube&quot;,f._texture=h,o.profile&amp;&amp;(f.stats=h.stats),f.destroy=function(){h.decRef()},f},clear:function(){for(var e=0;e&lt;xt;++e)t.activeTexture(33984+e),t.bindTexture(3553,null),bt[e]=null;Z(yt).forEach(F),a.cubeCount=0,a.textureCount=0},getTexture:function(t){return null},restore:function(){for(var e=0;e&lt;xt;++e){var r=bt[e];r&amp;&amp;(r.bindCount=0,r.unit=-1,bt[e]=null)}Z(yt).forEach((function(e){e.texture=t.createTexture(),t.bindTexture(e.target,e.texture);for(var r=0;32&gt;r;++r)if(0!=(e.mipmask&amp;1&lt;&lt;r))if(3553===e.target)t.texImage2D(3553,r,e.internalformat,e.width&gt;&gt;r,e.height&gt;&gt;r,0,e.internalformat,e.type,null);else for(var n=0;6&gt;n;++n)t.texImage2D(34069+n,r,e.internalformat,e.width&gt;&gt;r,e.height&gt;&gt;r,0,e.internalformat,e.type,null);z(e.texInfo,e.target)}))}}}function M(t,e,r,n,i,a){function o(t,e,r){this.target=t,this.texture=e,this.renderbuffer=r;var n=t=0;e?(t=e.width,n=e.height):r&amp;&amp;(t=r.width,n=r.height),this.width=t,this.height=n}function s(t){t&amp;&amp;(t.texture&amp;&amp;t.texture._texture.decRef(),t.renderbuffer&amp;&amp;t.renderbuffer._renderbuffer.decRef())}function l(t,e,r){t&amp;&amp;(t.texture?t.texture._texture.refCount+=1:t.renderbuffer._renderbuffer.refCount+=1)}function c(e,r){r&amp;&amp;(r.texture?t.framebufferTexture2D(36160,e,r.target,r.texture._texture.texture,0):t.framebufferRenderbuffer(36160,e,36161,r.renderbuffer._renderbuffer.renderbuffer))}function u(t){var e=3553,r=null,n=null,i=t;return&quot;object&quot;==typeof t&amp;&amp;(i=t.data,&quot;target&quot;in t&amp;&amp;(e=0|t.target)),&quot;texture2d&quot;===(t=i._reglType)||&quot;textureCube&quot;===t?r=i:&quot;renderbuffer&quot;===t&amp;&amp;(n=i,e=36161),new o(e,r,n)}function f(t,e,r,a,s){return r?((t=n.create2D({width:t,height:e,format:a,type:s}))._texture.refCount=0,new o(3553,t,null)):((t=i.create({width:t,height:e,format:a}))._renderbuffer.refCount=0,new o(36161,null,t))}function h(t){return t&amp;&amp;(t.texture||t.renderbuffer)}function p(t,e,r){t&amp;&amp;(t.texture?t.texture.resize(e,r):t.renderbuffer&amp;&amp;t.renderbuffer.resize(e,r),t.width=e,t.height=r)}function d(){this.id=T++,k[this.id]=this,this.framebuffer=t.createFramebuffer(),this.height=this.width=0,this.colorAttachments=[],this.depthStencilAttachment=this.stencilAttachment=this.depthAttachment=null}function g(t){t.colorAttachments.forEach(s),s(t.depthAttachment),s(t.stencilAttachment),s(t.depthStencilAttachment)}function m(e){t.deleteFramebuffer(e.framebuffer),e.framebuffer=null,a.framebufferCount--,delete k[e.id]}function v(e){var n;t.bindFramebuffer(36160,e.framebuffer);var i=e.colorAttachments;for(n=0;n&lt;i.length;++n)c(36064+n,i[n]);for(n=i.length;n&lt;r.maxColorAttachments;++n)t.framebufferTexture2D(36160,36064+n,3553,null,0);t.framebufferTexture2D(36160,33306,3553,null,0),t.framebufferTexture2D(36160,36096,3553,null,0),t.framebufferTexture2D(36160,36128,3553,null,0),c(36096,e.depthAttachment),c(36128,e.stencilAttachment),c(33306,e.depthStencilAttachment),t.checkFramebufferStatus(36160),t.isContextLost(),t.bindFramebuffer(36160,x.next?x.next.framebuffer:null),x.cur=x.next,t.getError()}function y(t,e){function r(t,e){var i,a=0,o=0,s=!0,c=!0;i=null;var p=!0,d=&quot;rgba&quot;,m=&quot;uint8&quot;,y=1,x=null,w=null,T=null,k=!1;&quot;number&quot;==typeof t?(a=0|t,o=0|e||a):t?(&quot;shape&quot;in t?(a=(o=t.shape)[0],o=o[1]):(&quot;radius&quot;in t&amp;&amp;(a=o=t.radius),&quot;width&quot;in t&amp;&amp;(a=t.width),&quot;height&quot;in t&amp;&amp;(o=t.height)),(&quot;color&quot;in t||&quot;colors&quot;in t)&amp;&amp;(i=t.color||t.colors,Array.isArray(i)),i||(&quot;colorCount&quot;in t&amp;&amp;(y=0|t.colorCount),&quot;colorTexture&quot;in t&amp;&amp;(p=!!t.colorTexture,d=&quot;rgba4&quot;),&quot;colorType&quot;in t&amp;&amp;(m=t.colorType,!p)&amp;&amp;(&quot;half float&quot;===m||&quot;float16&quot;===m?d=&quot;rgba16f&quot;:&quot;float&quot;!==m&amp;&amp;&quot;float32&quot;!==m||(d=&quot;rgba32f&quot;)),&quot;colorFormat&quot;in t&amp;&amp;(d=t.colorFormat,0&lt;=b.indexOf(d)?p=!0:0&lt;=_.indexOf(d)&amp;&amp;(p=!1))),(&quot;depthTexture&quot;in t||&quot;depthStencilTexture&quot;in t)&amp;&amp;(k=!(!t.depthTexture&amp;&amp;!t.depthStencilTexture)),&quot;depth&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.depth?s=t.depth:(x=t.depth,c=!1)),&quot;stencil&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.stencil?c=t.stencil:(w=t.stencil,s=!1)),&quot;depthStencil&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.depthStencil?s=c=t.depthStencil:(T=t.depthStencil,c=s=!1))):a=o=1;var M=null,A=null,S=null,E=null;if(Array.isArray(i))M=i.map(u);else if(i)M=[u(i)];else for(M=Array(y),i=0;i&lt;y;++i)M[i]=f(a,o,p,d,m);for(a=a||M[0].width,o=o||M[0].height,x?A=u(x):s&amp;&amp;!c&amp;&amp;(A=f(a,o,k,&quot;depth&quot;,&quot;uint32&quot;)),w?S=u(w):c&amp;&amp;!s&amp;&amp;(S=f(a,o,!1,&quot;stencil&quot;,&quot;uint8&quot;)),T?E=u(T):!x&amp;&amp;!w&amp;&amp;c&amp;&amp;s&amp;&amp;(E=f(a,o,k,&quot;depth stencil&quot;,&quot;depth stencil&quot;)),s=null,i=0;i&lt;M.length;++i)l(M[i]),M[i]&amp;&amp;M[i].texture&amp;&amp;(c=bt[M[i].texture._texture.format]*_t[M[i].texture._texture.type],null===s&amp;&amp;(s=c));return l(A),l(S),l(E),g(n),n.width=a,n.height=o,n.colorAttachments=M,n.depthAttachment=A,n.stencilAttachment=S,n.depthStencilAttachment=E,r.color=M.map(h),r.depth=h(A),r.stencil=h(S),r.depthStencil=h(E),r.width=n.width,r.height=n.height,v(n),r}var n=new d;return a.framebufferCount++,r(t,e),U(r,{resize:function(t,e){var i=Math.max(0|t,1),a=Math.max(0|e||i,1);if(i===n.width&amp;&amp;a===n.height)return r;for(var o=n.colorAttachments,s=0;s&lt;o.length;++s)p(o[s],i,a);return p(n.depthAttachment,i,a),p(n.stencilAttachment,i,a),p(n.depthStencilAttachment,i,a),n.width=r.width=i,n.height=r.height=a,v(n),r},_reglType:&quot;framebuffer&quot;,_framebuffer:n,destroy:function(){m(n),g(n)},use:function(t){x.setFBO({framebuffer:r},t)}})}var x={cur:null,next:null,dirty:!1,setFBO:null},b=[&quot;rgba&quot;],_=[&quot;rgba4&quot;,&quot;rgb565&quot;,&quot;rgb5 a1&quot;];e.ext_srgb&amp;&amp;_.push(&quot;srgba&quot;),e.ext_color_buffer_half_float&amp;&amp;_.push(&quot;rgba16f&quot;,&quot;rgb16f&quot;),e.webgl_color_buffer_float&amp;&amp;_.push(&quot;rgba32f&quot;);var w=[&quot;uint8&quot;];e.oes_texture_half_float&amp;&amp;w.push(&quot;half float&quot;,&quot;float16&quot;),e.oes_texture_float&amp;&amp;w.push(&quot;float&quot;,&quot;float32&quot;);var T=0,k={};return U(x,{getFramebuffer:function(t){return&quot;function&quot;==typeof t&amp;&amp;&quot;framebuffer&quot;===t._reglType&amp;&amp;(t=t._framebuffer)instanceof d?t:null},create:y,createCube:function(t){function e(t){var i,a={color:null},o=0,s=null;i=&quot;rgba&quot;;var l=&quot;uint8&quot;,c=1;if(&quot;number&quot;==typeof t?o=0|t:t?(&quot;shape&quot;in t?o=t.shape[0]:(&quot;radius&quot;in t&amp;&amp;(o=0|t.radius),&quot;width&quot;in t?o=0|t.width:&quot;height&quot;in t&amp;&amp;(o=0|t.height)),(&quot;color&quot;in t||&quot;colors&quot;in t)&amp;&amp;(s=t.color||t.colors,Array.isArray(s)),s||(&quot;colorCount&quot;in t&amp;&amp;(c=0|t.colorCount),&quot;colorType&quot;in t&amp;&amp;(l=t.colorType),&quot;colorFormat&quot;in t&amp;&amp;(i=t.colorFormat)),&quot;depth&quot;in t&amp;&amp;(a.depth=t.depth),&quot;stencil&quot;in t&amp;&amp;(a.stencil=t.stencil),&quot;depthStencil&quot;in t&amp;&amp;(a.depthStencil=t.depthStencil)):o=1,s)if(Array.isArray(s))for(t=[],i=0;i&lt;s.length;++i)t[i]=s[i];else t=[s];else for(t=Array(c),s={radius:o,format:i,type:l},i=0;i&lt;c;++i)t[i]=n.createCube(s);for(a.color=Array(t.length),i=0;i&lt;t.length;++i)c=t[i],o=o||c.width,a.color[i]={target:34069,data:t[i]};for(i=0;6&gt;i;++i){for(c=0;c&lt;t.length;++c)a.color[c].target=34069+i;0&lt;i&amp;&amp;(a.depth=r[0].depth,a.stencil=r[0].stencil,a.depthStencil=r[0].depthStencil),r[i]?r[i](a):r[i]=y(a)}return U(e,{width:o,height:o,color:t})}var r=Array(6);return e(t),U(e,{faces:r,resize:function(t){var n=0|t;if(n===e.width)return e;var i=e.color;for(t=0;t&lt;i.length;++t)i[t].resize(n);for(t=0;6&gt;t;++t)r[t].resize(n);return e.width=e.height=n,e},_reglType:&quot;framebufferCube&quot;,destroy:function(){r.forEach((function(t){t.destroy()}))}})},clear:function(){Z(k).forEach(m)},restore:function(){x.cur=null,x.next=null,x.dirty=!0,Z(k).forEach((function(e){e.framebuffer=t.createFramebuffer(),v(e)}))}})}function A(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function S(t,e,r,n,i){function a(){this.id=++c,this.attributes=[];var t=e.oes_vertex_array_object;this.vao=t?t.createVertexArrayOES():null,u[this.id]=this,this.buffers=[]}var o=r.maxAttributes,s=Array(o);for(r=0;r&lt;o;++r)s[r]=new A;var c=0,u={},f={Record:A,scope:{},state:s,currentVAO:null,targetVAO:null,restore:e.oes_vertex_array_object?function(){e.oes_vertex_array_object&amp;&amp;Z(u).forEach((function(t){t.refresh()}))}:function(){},createVAO:function(t){function e(t){for(var n=0;n&lt;r.buffers.length;++n)r.buffers[n].destroy();r.buffers.length=0,(n=r.attributes).length=t.length;for(var a=0;a&lt;t.length;++a){var o=t[a],s=n[a]=new A;Array.isArray(o)||X(o)||l(o)?(o=i.create(o,34962,!1,!0),s.buffer=i.getBuffer(o),s.size=0|s.buffer.dimension,s.normalized=!1,s.type=s.buffer.dtype,s.offset=0,s.stride=0,s.divisor=0,s.state=1,r.buffers.push(o)):i.getBuffer(o)?(s.buffer=i.getBuffer(o),s.size=0|s.buffer.dimension,s.normalized=!1,s.type=s.buffer.dtype,s.offset=0,s.stride=0,s.divisor=0,s.state=1):i.getBuffer(o.buffer)?(s.buffer=i.getBuffer(o.buffer),s.size=0|(+o.size||s.buffer.dimension),s.normalized=!!o.normalized||!1,s.type=&quot;type&quot;in o?Q[o.type]:s.buffer.dtype,s.offset=0|(o.offset||0),s.stride=0|(o.stride||0),s.divisor=0|(o.divisor||0),s.state=1):&quot;x&quot;in o&amp;&amp;(s.x=+o.x||0,s.y=+o.y||0,s.z=+o.z||0,s.w=+o.w||0,s.state=2)}return r.refresh(),e}var r=new a;return n.vaoCount+=1,e.destroy=function(){r.destroy()},e._vao=r,e._reglType=&quot;vao&quot;,e(t)},getVAO:function(t){return&quot;function&quot;==typeof t&amp;&amp;t._vao?t._vao:null},destroyBuffer:function(e){for(var r=0;r&lt;s.length;++r){var n=s[r];n.buffer===e&amp;&amp;(t.disableVertexAttribArray(r),n.buffer=null)}},setVAO:e.oes_vertex_array_object?function(t){if(t!==f.currentVAO){var r=e.oes_vertex_array_object;t?r.bindVertexArrayOES(t.vao):r.bindVertexArrayOES(null),f.currentVAO=t}}:function(r){if(r!==f.currentVAO){if(r)r.bindAttrs();else for(var n=e.angle_instanced_arrays,i=0;i&lt;s.length;++i){var a=s[i];a.buffer?(t.enableVertexAttribArray(i),t.vertexAttribPointer(i,a.size,a.type,a.normalized,a.stride,a.offfset),n&amp;&amp;n.vertexAttribDivisorANGLE(i,a.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,a.x,a.y,a.z,a.w))}f.currentVAO=r}},clear:e.oes_vertex_array_object?function(){Z(u).forEach((function(t){t.destroy()}))}:function(){}};return a.prototype.bindAttrs=function(){for(var r=e.angle_instanced_arrays,n=this.attributes,i=0;i&lt;n.length;++i){var a=n[i];a.buffer?(t.enableVertexAttribArray(i),t.bindBuffer(34962,a.buffer.buffer),t.vertexAttribPointer(i,a.size,a.type,a.normalized,a.stride,a.offset),r&amp;&amp;r.vertexAttribDivisorANGLE(i,a.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,a.x,a.y,a.z,a.w))}for(r=n.length;r&lt;o;++r)t.disableVertexAttribArray(r)},a.prototype.refresh=function(){var t=e.oes_vertex_array_object;t&amp;&amp;(t.bindVertexArrayOES(this.vao),this.bindAttrs(),f.currentVAO=this)},a.prototype.destroy=function(){if(this.vao){var t=e.oes_vertex_array_object;this===f.currentVAO&amp;&amp;(f.currentVAO=null,t.bindVertexArrayOES(null)),t.deleteVertexArrayOES(this.vao),this.vao=null}u[this.id]&amp;&amp;(delete u[this.id],--n.vaoCount)},f}function E(t,e,r,n){function i(t,e,r,n){this.name=t,this.id=e,this.location=r,this.info=n}function a(t,e){for(var r=0;r&lt;t.length;++r)if(t[r].id===e.id)return void(t[r].location=e.location);t.push(e)}function o(r,n,i){if(!(o=(i=35632===r?c:u)[n])){var a=e.str(n),o=t.createShader(r);t.shaderSource(o,a),t.compileShader(o),i[n]=o}return o}function s(t,e){this.id=p++,this.fragId=t,this.vertId=e,this.program=null,this.uniforms=[],this.attributes=[],n.profile&amp;&amp;(this.stats={uniformsCount:0,attributesCount:0})}function l(r,s,l){var c;c=o(35632,r.fragId);var u=o(35633,r.vertId);if(s=r.program=t.createProgram(),t.attachShader(s,c),t.attachShader(s,u),l)for(c=0;c&lt;l.length;++c)u=l[c],t.bindAttribLocation(s,u[0],u[1]);t.linkProgram(s),u=t.getProgramParameter(s,35718),n.profile&amp;&amp;(r.stats.uniformsCount=u);var f=r.uniforms;for(c=0;c&lt;u;++c)if(l=t.getActiveUniform(s,c))if(1&lt;l.size)for(var h=0;h&lt;l.size;++h){var p=l.name.replace(&quot;[0]&quot;,&quot;[&quot;+h+&quot;]&quot;);a(f,new i(p,e.id(p),t.getUniformLocation(s,p),l))}else a(f,new i(l.name,e.id(l.name),t.getUniformLocation(s,l.name),l));for(u=t.getProgramParameter(s,35721),n.profile&amp;&amp;(r.stats.attributesCount=u),r=r.attributes,c=0;c&lt;u;++c)(l=t.getActiveAttrib(s,c))&amp;&amp;a(r,new i(l.name,e.id(l.name),t.getAttribLocation(s,l.name),l))}var c={},u={},f={},h=[],p=0;return n.profile&amp;&amp;(r.getMaxUniformsCount=function(){var t=0;return h.forEach((function(e){e.stats.uniformsCount&gt;t&amp;&amp;(t=e.stats.uniformsCount)})),t},r.getMaxAttributesCount=function(){var t=0;return h.forEach((function(e){e.stats.attributesCount&gt;t&amp;&amp;(t=e.stats.attributesCount)})),t}),{clear:function(){var e=t.deleteShader.bind(t);Z(c).forEach(e),c={},Z(u).forEach(e),u={},h.forEach((function(e){t.deleteProgram(e.program)})),h.length=0,f={},r.shaderCount=0},program:function(t,e,n,i){var a=f[e];a||(a=f[e]={});var o=a[t];return o&amp;&amp;!i?o:(e=new s(e,t),r.shaderCount++,l(e,n,i),o||(a[t]=e),h.push(e),e)},restore:function(){c={},u={};for(var t=0;t&lt;h.length;++t)l(h[t],null,h[t].attributes.map((function(t){return[t.location,t.name]})))},shader:o,frag:-1,vert:-1}}function C(t,e,r,n,i,a,o){function s(i){var a;a=null===e.next?5121:e.next.colorAttachments[0].texture._texture.type;var o=0,s=0,l=n.framebufferWidth,c=n.framebufferHeight,u=null;return X(i)?u=i:i&amp;&amp;(o=0|i.x,s=0|i.y,l=0|(i.width||n.framebufferWidth-o),c=0|(i.height||n.framebufferHeight-s),u=i.data||null),r(),i=l*c*4,u||(5121===a?u=new Uint8Array(i):5126===a&amp;&amp;(u=u||new Float32Array(i))),t.pixelStorei(3333,4),t.readPixels(o,s,l,c,6408,a,u),u}return function(t){return t&amp;&amp;&quot;framebuffer&quot;in t?function(t){var r;return e.setFBO({framebuffer:t.framebuffer},(function(){r=s(t)})),r}(t):s(t)}}function L(t){return Array.prototype.slice.call(t)}function I(t){return L(t).join(&quot;&quot;)}function P(){function t(){var t=[],e=[];return U((function(){t.push.apply(t,L(arguments))}),{def:function(){var n=&quot;v&quot;+r++;return e.push(n),0&lt;arguments.length&amp;&amp;(t.push(n,&quot;=&quot;),t.push.apply(t,L(arguments)),t.push(&quot;;&quot;)),n},toString:function(){return I([0&lt;e.length?&quot;var &quot;+e.join(&quot;,&quot;)+&quot;;&quot;:&quot;&quot;,I(t)])}})}function e(){function e(t,e){n(t,e,&quot;=&quot;,r.def(t,e),&quot;;&quot;)}var r=t(),n=t(),i=r.toString,a=n.toString;return U((function(){r.apply(r,L(arguments))}),{def:r.def,entry:r,exit:n,save:e,set:function(t,n,i){e(t,n),r(t,n,&quot;=&quot;,i,&quot;;&quot;)},toString:function(){return i()+a()}})}var r=0,n=[],i=[],a=t(),o={};return{global:a,link:function(t){for(var e=0;e&lt;i.length;++e)if(i[e]===t)return n[e];return e=&quot;g&quot;+r++,n.push(e),i.push(t),e},block:t,proc:function(t,r){function n(){var t=&quot;a&quot;+i.length;return i.push(t),t}var i=[];r=r||0;for(var a=0;a&lt;r;++a)n();var s=(a=e()).toString;return o[t]=U(a,{arg:n,toString:function(){return I([&quot;function(&quot;,i.join(),&quot;){&quot;,s(),&quot;}&quot;])}})},scope:e,cond:function(){var t=I(arguments),r=e(),n=e(),i=r.toString,a=n.toString;return U(r,{then:function(){return r.apply(r,L(arguments)),this},else:function(){return n.apply(n,L(arguments)),this},toString:function(){var e=a();return e&amp;&amp;(e=&quot;else{&quot;+e+&quot;}&quot;),I([&quot;if(&quot;,t,&quot;){&quot;,i(),&quot;}&quot;,e])}})},compile:function(){var t=['&quot;use strict&quot;;',a,&quot;return {&quot;];Object.keys(o).forEach((function(e){t.push('&quot;',e,'&quot;:',o[e].toString(),&quot;,&quot;)})),t.push(&quot;}&quot;);var e=I(t).replace(/;/g,&quot;;\n&quot;).replace(/}/g,&quot;}\n&quot;).replace(/{/g,&quot;{\n&quot;);return Function.apply(null,n.concat(e)).apply(null,i)}}}function z(t){return Array.isArray(t)||X(t)||l(t)}function O(t){return t.sort((function(t,e){return&quot;viewport&quot;===t?-1:&quot;viewport&quot;===e?1:t&lt;e?-1:1}))}function D(t,e,r,n){this.thisDep=t,this.contextDep=e,this.propDep=r,this.append=n}function R(t){return t&amp;&amp;!(t.thisDep||t.contextDep||t.propDep)}function F(t){return new D(!1,!1,!1,t)}function B(t,e){var r=t.type;return 0===r?new D(!0,1&lt;=(r=t.data.length),2&lt;=r,e):4===r?new D((r=t.data).thisDep,r.contextDep,r.propDep,e):new D(3===r,2===r,1===r,e)}function N(t,e,r,n,i,o,s,l,c,u,f,h,p,d,g){function v(t){return t.replace(&quot;.&quot;,&quot;_&quot;)}function y(t,e,r){var n=v(t);rt.push(t),et[n]=tt[n]=!!r,it[n]=e}function x(t,e,r){var n=v(t);rt.push(t),Array.isArray(r)?(tt[n]=r.slice(),et[n]=r.slice()):tt[n]=et[n]=r,at[n]=e}function b(){var t=P(),r=t.link,n=t.global;t.id=lt++,t.batchId=&quot;0&quot;;var i=r(ot),a=t.shared={props:&quot;a0&quot;};Object.keys(ot).forEach((function(t){a[t]=n.def(i,&quot;.&quot;,t)}));var o=t.next={},s=t.current={};Object.keys(at).forEach((function(t){Array.isArray(tt[t])&amp;&amp;(o[t]=n.def(a.next,&quot;.&quot;,t),s[t]=n.def(a.current,&quot;.&quot;,t))}));var l=t.constants={};Object.keys(st).forEach((function(t){l[t]=n.def(JSON.stringify(st[t]))})),t.invoke=function(e,n){switch(n.type){case 0:var i=[&quot;this&quot;,a.context,a.props,t.batchId];return e.def(r(n.data),&quot;.call(&quot;,i.slice(0,Math.max(n.data.length+1,4)),&quot;)&quot;);case 1:return e.def(a.props,n.data);case 2:return e.def(a.context,n.data);case 3:return e.def(&quot;this&quot;,n.data);case 4:return n.data.append(t,e),n.data.ref}},t.attribCache={};var c={};return t.scopeAttrib=function(t){if((t=e.id(t))in c)return c[t];var n=u.scope[t];return n||(n=u.scope[t]=new Z),c[t]=r(n)},t}function _(t,e){var r=t.static,n=t.dynamic;if(&quot;framebuffer&quot;in r){var i=r.framebuffer;return i?(i=l.getFramebuffer(i),F((function(t,e){var r=t.link(i),n=t.shared;return e.set(n.framebuffer,&quot;.next&quot;,r),n=n.context,e.set(n,&quot;.framebufferWidth&quot;,r+&quot;.width&quot;),e.set(n,&quot;.framebufferHeight&quot;,r+&quot;.height&quot;),r}))):F((function(t,e){var r=t.shared;return e.set(r.framebuffer,&quot;.next&quot;,&quot;null&quot;),r=r.context,e.set(r,&quot;.framebufferWidth&quot;,r+&quot;.drawingBufferWidth&quot;),e.set(r,&quot;.framebufferHeight&quot;,r+&quot;.drawingBufferHeight&quot;),&quot;null&quot;}))}if(&quot;framebuffer&quot;in n){var a=n.framebuffer;return B(a,(function(t,e){var r=t.invoke(e,a),n=t.shared,i=n.framebuffer;r=e.def(i,&quot;.getFramebuffer(&quot;,r,&quot;)&quot;);return e.set(i,&quot;.next&quot;,r),n=n.context,e.set(n,&quot;.framebufferWidth&quot;,r+&quot;?&quot;+r+&quot;.width:&quot;+n+&quot;.drawingBufferWidth&quot;),e.set(n,&quot;.framebufferHeight&quot;,r+&quot;?&quot;+r+&quot;.height:&quot;+n+&quot;.drawingBufferHeight&quot;),r}))}return null}function w(t,r,n){function i(t){if(t in a){var r=e.id(a[t]);return(t=F((function(){return r}))).id=r,t}if(t in o){var n=o[t];return B(n,(function(t,e){var r=t.invoke(e,n);return e.def(t.shared.strings,&quot;.id(&quot;,r,&quot;)&quot;)}))}return null}var a=t.static,o=t.dynamic,s=i(&quot;frag&quot;),l=i(&quot;vert&quot;),c=null;return R(s)&amp;&amp;R(l)?(c=f.program(l.id,s.id,null,n),t=F((function(t,e){return t.link(c)}))):t=new D(s&amp;&amp;s.thisDep||l&amp;&amp;l.thisDep,s&amp;&amp;s.contextDep||l&amp;&amp;l.contextDep,s&amp;&amp;s.propDep||l&amp;&amp;l.propDep,(function(t,e){var r,n,i=t.shared.shader;return r=s?s.append(t,e):e.def(i,&quot;.&quot;,&quot;frag&quot;),n=l?l.append(t,e):e.def(i,&quot;.&quot;,&quot;vert&quot;),e.def(i+&quot;.program(&quot;+n+&quot;,&quot;+r+&quot;)&quot;)})),{frag:s,vert:l,progVar:t,program:c}}function T(t,e){function r(t,e){if(t in n){var r=0|n[t];return F((function(t,n){return e&amp;&amp;(t.OFFSET=r),r}))}if(t in i){var o=i[t];return B(o,(function(t,r){var n=t.invoke(r,o);return e&amp;&amp;(t.OFFSET=n),n}))}return e&amp;&amp;a?F((function(t,e){return t.OFFSET=&quot;0&quot;,0})):null}var n=t.static,i=t.dynamic,a=function(){if(&quot;elements&quot;in n){var t=n.elements;z(t)?t=o.getElements(o.create(t,!0)):t&amp;&amp;(t=o.getElements(t));var e=F((function(e,r){if(t){var n=e.link(t);return e.ELEMENTS=n}return e.ELEMENTS=null}));return e.value=t,e}if(&quot;elements&quot;in i){var r=i.elements;return B(r,(function(t,e){var n=(i=t.shared).isBufferArgs,i=i.elements,a=t.invoke(e,r),o=e.def(&quot;null&quot;);n=e.def(n,&quot;(&quot;,a,&quot;)&quot;),a=t.cond(n).then(o,&quot;=&quot;,i,&quot;.createStream(&quot;,a,&quot;);&quot;).else(o,&quot;=&quot;,i,&quot;.getElements(&quot;,a,&quot;);&quot;);return e.entry(a),e.exit(t.cond(n).then(i,&quot;.destroyStream(&quot;,o,&quot;);&quot;)),t.ELEMENTS=o}))}return null}(),s=r(&quot;offset&quot;,!0);return{elements:a,primitive:function(){if(&quot;primitive&quot;in n){var t=n.primitive;return F((function(e,r){return nt[t]}))}if(&quot;primitive&quot;in i){var e=i.primitive;return B(e,(function(t,r){var n=t.constants.primTypes,i=t.invoke(r,e);return r.def(n,&quot;[&quot;,i,&quot;]&quot;)}))}return a?R(a)?a.value?F((function(t,e){return e.def(t.ELEMENTS,&quot;.primType&quot;)})):F((function(){return 4})):new D(a.thisDep,a.contextDep,a.propDep,(function(t,e){var r=t.ELEMENTS;return e.def(r,&quot;?&quot;,r,&quot;.primType:&quot;,4)})):null}(),count:function(){if(&quot;count&quot;in n){var t=0|n.count;return F((function(){return t}))}if(&quot;count&quot;in i){var e=i.count;return B(e,(function(t,r){return t.invoke(r,e)}))}return a?R(a)?a?s?new D(s.thisDep,s.contextDep,s.propDep,(function(t,e){return e.def(t.ELEMENTS,&quot;.vertCount-&quot;,t.OFFSET)})):F((function(t,e){return e.def(t.ELEMENTS,&quot;.vertCount&quot;)})):F((function(){return-1})):new D(a.thisDep||s.thisDep,a.contextDep||s.contextDep,a.propDep||s.propDep,(function(t,e){var r=t.ELEMENTS;return t.OFFSET?e.def(r,&quot;?&quot;,r,&quot;.vertCount-&quot;,t.OFFSET,&quot;:-1&quot;):e.def(r,&quot;?&quot;,r,&quot;.vertCount:-1&quot;)})):null}(),instances:r(&quot;instances&quot;,!1),offset:s}}function k(t,r){var n=t.static,a=t.dynamic,o={};return Object.keys(n).forEach((function(t){var r=n[t],a=e.id(t),s=new Z;if(z(r))s.state=1,s.buffer=i.getBuffer(i.create(r,34962,!1,!0)),s.type=0;else if(c=i.getBuffer(r))s.state=1,s.buffer=c,s.type=0;else if(&quot;constant&quot;in r){var l=r.constant;s.buffer=&quot;null&quot;,s.state=2,&quot;number&quot;==typeof l?s.x=l:wt.forEach((function(t,e){e&lt;l.length&amp;&amp;(s[t]=l[e])}))}else{var c=z(r.buffer)?i.getBuffer(i.create(r.buffer,34962,!1,!0)):i.getBuffer(r.buffer),u=0|r.offset,f=0|r.stride,h=0|r.size,p=!!r.normalized,d=0;&quot;type&quot;in r&amp;&amp;(d=Q[r.type]),r=0|r.divisor,s.buffer=c,s.state=1,s.size=h,s.normalized=p,s.type=d||c.dtype,s.offset=u,s.stride=f,s.divisor=r}o[t]=F((function(t,e){var r=t.attribCache;if(a in r)return r[a];var n={isStream:!1};return Object.keys(s).forEach((function(t){n[t]=s[t]})),s.buffer&amp;&amp;(n.buffer=t.link(s.buffer),n.type=n.type||n.buffer+&quot;.dtype&quot;),r[a]=n}))})),Object.keys(a).forEach((function(t){var e=a[t];o[t]=B(e,(function(t,r){function n(t){r(l[t],&quot;=&quot;,i,&quot;.&quot;,t,&quot;|0;&quot;)}var i=t.invoke(r,e),a=t.shared,o=t.constants,s=a.isBufferArgs,l=(a=a.buffer,{isStream:r.def(!1)}),c=new Z;c.state=1,Object.keys(c).forEach((function(t){l[t]=r.def(&quot;&quot;+c[t])}));var u=l.buffer,f=l.type;return r(&quot;if(&quot;,s,&quot;(&quot;,i,&quot;)){&quot;,l.isStream,&quot;=true;&quot;,u,&quot;=&quot;,a,&quot;.createStream(&quot;,34962,&quot;,&quot;,i,&quot;);&quot;,f,&quot;=&quot;,u,&quot;.dtype;&quot;,&quot;}else{&quot;,u,&quot;=&quot;,a,&quot;.getBuffer(&quot;,i,&quot;);&quot;,&quot;if(&quot;,u,&quot;){&quot;,f,&quot;=&quot;,u,&quot;.dtype;&quot;,'}else if(&quot;constant&quot; in ',i,&quot;){&quot;,l.state,&quot;=&quot;,2,&quot;;&quot;,&quot;if(typeof &quot;+i+'.constant === &quot;number&quot;){',l[wt[0]],&quot;=&quot;,i,&quot;.constant;&quot;,wt.slice(1).map((function(t){return l[t]})).join(&quot;=&quot;),&quot;=0;&quot;,&quot;}else{&quot;,wt.map((function(t,e){return l[t]+&quot;=&quot;+i+&quot;.constant.length&gt;&quot;+e+&quot;?&quot;+i+&quot;.constant[&quot;+e+&quot;]:0;&quot;})).join(&quot;&quot;),&quot;}}else{&quot;,&quot;if(&quot;,s,&quot;(&quot;,i,&quot;.buffer)){&quot;,u,&quot;=&quot;,a,&quot;.createStream(&quot;,34962,&quot;,&quot;,i,&quot;.buffer);&quot;,&quot;}else{&quot;,u,&quot;=&quot;,a,&quot;.getBuffer(&quot;,i,&quot;.buffer);&quot;,&quot;}&quot;,f,'=&quot;type&quot; in ',i,&quot;?&quot;,o.glTypes,&quot;[&quot;,i,&quot;.type]:&quot;,u,&quot;.dtype;&quot;,l.normalized,&quot;=!!&quot;,i,&quot;.normalized;&quot;),n(&quot;size&quot;),n(&quot;offset&quot;),n(&quot;stride&quot;),n(&quot;divisor&quot;),r(&quot;}}&quot;),r.exit(&quot;if(&quot;,l.isStream,&quot;){&quot;,a,&quot;.destroyStream(&quot;,u,&quot;);&quot;,&quot;}&quot;),l}))})),o}function M(t,e,n,i,o){function s(t){var e=c[t];e&amp;&amp;(h[t]=e)}var l=function(t,e){if(&quot;string&quot;==typeof(r=t.static).frag&amp;&amp;&quot;string&quot;==typeof r.vert){if(0&lt;Object.keys(e.dynamic).length)return null;var r=e.static,n=Object.keys(r);if(0&lt;n.length&amp;&amp;&quot;number&quot;==typeof r[n[0]]){for(var i=[],a=0;a&lt;n.length;++a)i.push([0|r[n[a]],n[a]]);return i}}return null}(t,e),c=function(t,e,r){function n(t){if(t in i){var r=i[t];t=!0;var n,o,s=0|r.x,l=0|r.y;return&quot;width&quot;in r?n=0|r.width:t=!1,&quot;height&quot;in r?o=0|r.height:t=!1,new D(!t&amp;&amp;e&amp;&amp;e.thisDep,!t&amp;&amp;e&amp;&amp;e.contextDep,!t&amp;&amp;e&amp;&amp;e.propDep,(function(t,e){var i=t.shared.context,a=n;&quot;width&quot;in r||(a=e.def(i,&quot;.&quot;,&quot;framebufferWidth&quot;,&quot;-&quot;,s));var c=o;return&quot;height&quot;in r||(c=e.def(i,&quot;.&quot;,&quot;framebufferHeight&quot;,&quot;-&quot;,l)),[s,l,a,c]}))}if(t in a){var c=a[t];return t=B(c,(function(t,e){var r=t.invoke(e,c),n=t.shared.context,i=e.def(r,&quot;.x|0&quot;),a=e.def(r,&quot;.y|0&quot;);return[i,a,e.def('&quot;width&quot; in ',r,&quot;?&quot;,r,&quot;.width|0:&quot;,&quot;(&quot;,n,&quot;.&quot;,&quot;framebufferWidth&quot;,&quot;-&quot;,i,&quot;)&quot;),r=e.def('&quot;height&quot; in ',r,&quot;?&quot;,r,&quot;.height|0:&quot;,&quot;(&quot;,n,&quot;.&quot;,&quot;framebufferHeight&quot;,&quot;-&quot;,a,&quot;)&quot;)]})),e&amp;&amp;(t.thisDep=t.thisDep||e.thisDep,t.contextDep=t.contextDep||e.contextDep,t.propDep=t.propDep||e.propDep),t}return e?new D(e.thisDep,e.contextDep,e.propDep,(function(t,e){var r=t.shared.context;return[0,0,e.def(r,&quot;.&quot;,&quot;framebufferWidth&quot;),e.def(r,&quot;.&quot;,&quot;framebufferHeight&quot;)]})):null}var i=t.static,a=t.dynamic;if(t=n(&quot;viewport&quot;)){var o=t;t=new D(t.thisDep,t.contextDep,t.propDep,(function(t,e){var r=o.append(t,e),n=t.shared.context;return e.set(n,&quot;.viewportWidth&quot;,r[2]),e.set(n,&quot;.viewportHeight&quot;,r[3]),r}))}return{viewport:t,scissor_box:n(&quot;scissor.box&quot;)}}(t,d=_(t)),f=T(t),h=function(t,e){var r=t.static,n=t.dynamic,i={};return rt.forEach((function(t){function e(e,a){if(t in r){var s=e(r[t]);i[o]=F((function(){return s}))}else if(t in n){var l=n[t];i[o]=B(l,(function(t,e){return a(t,e,t.invoke(e,l))}))}}var o=v(t);switch(t){case&quot;cull.enable&quot;:case&quot;blend.enable&quot;:case&quot;dither&quot;:case&quot;stencil.enable&quot;:case&quot;depth.enable&quot;:case&quot;scissor.enable&quot;:case&quot;polygonOffset.enable&quot;:case&quot;sample.alpha&quot;:case&quot;sample.enable&quot;:case&quot;depth.mask&quot;:return e((function(t){return t}),(function(t,e,r){return r}));case&quot;depth.func&quot;:return e((function(t){return Mt[t]}),(function(t,e,r){return e.def(t.constants.compareFuncs,&quot;[&quot;,r,&quot;]&quot;)}));case&quot;depth.range&quot;:return e((function(t){return t}),(function(t,e,r){return[e.def(&quot;+&quot;,r,&quot;[0]&quot;),e=e.def(&quot;+&quot;,r,&quot;[1]&quot;)]}));case&quot;blend.func&quot;:return e((function(t){return[kt[&quot;srcRGB&quot;in t?t.srcRGB:t.src],kt[&quot;dstRGB&quot;in t?t.dstRGB:t.dst],kt[&quot;srcAlpha&quot;in t?t.srcAlpha:t.src],kt[&quot;dstAlpha&quot;in t?t.dstAlpha:t.dst]]}),(function(t,e,r){function n(t,n){return e.def('&quot;',t,n,'&quot; in ',r,&quot;?&quot;,r,&quot;.&quot;,t,n,&quot;:&quot;,r,&quot;.&quot;,t)}t=t.constants.blendFuncs;var i=n(&quot;src&quot;,&quot;RGB&quot;),a=n(&quot;dst&quot;,&quot;RGB&quot;),o=(i=e.def(t,&quot;[&quot;,i,&quot;]&quot;),e.def(t,&quot;[&quot;,n(&quot;src&quot;,&quot;Alpha&quot;),&quot;]&quot;));return[i,a=e.def(t,&quot;[&quot;,a,&quot;]&quot;),o,t=e.def(t,&quot;[&quot;,n(&quot;dst&quot;,&quot;Alpha&quot;),&quot;]&quot;)]}));case&quot;blend.equation&quot;:return e((function(t){return&quot;string&quot;==typeof t?[J[t],J[t]]:&quot;object&quot;==typeof t?[J[t.rgb],J[t.alpha]]:void 0}),(function(t,e,r){var n=t.constants.blendEquations,i=e.def(),a=e.def();return(t=t.cond(&quot;typeof &quot;,r,'===&quot;string&quot;')).then(i,&quot;=&quot;,a,&quot;=&quot;,n,&quot;[&quot;,r,&quot;];&quot;),t.else(i,&quot;=&quot;,n,&quot;[&quot;,r,&quot;.rgb];&quot;,a,&quot;=&quot;,n,&quot;[&quot;,r,&quot;.alpha];&quot;),e(t),[i,a]}));case&quot;blend.color&quot;:return e((function(t){return a(4,(function(e){return+t[e]}))}),(function(t,e,r){return a(4,(function(t){return e.def(&quot;+&quot;,r,&quot;[&quot;,t,&quot;]&quot;)}))}));case&quot;stencil.mask&quot;:return e((function(t){return 0|t}),(function(t,e,r){return e.def(r,&quot;|0&quot;)}));case&quot;stencil.func&quot;:return e((function(t){return[Mt[t.cmp||&quot;keep&quot;],t.ref||0,&quot;mask&quot;in t?t.mask:-1]}),(function(t,e,r){return[t=e.def('&quot;cmp&quot; in ',r,&quot;?&quot;,t.constants.compareFuncs,&quot;[&quot;,r,&quot;.cmp]&quot;,&quot;:&quot;,7680),e.def(r,&quot;.ref|0&quot;),e=e.def('&quot;mask&quot; in ',r,&quot;?&quot;,r,&quot;.mask|0:-1&quot;)]}));case&quot;stencil.opFront&quot;:case&quot;stencil.opBack&quot;:return e((function(e){return[&quot;stencil.opBack&quot;===t?1029:1028,At[e.fail||&quot;keep&quot;],At[e.zfail||&quot;keep&quot;],At[e.zpass||&quot;keep&quot;]]}),(function(e,r,n){function i(t){return r.def('&quot;',t,'&quot; in ',n,&quot;?&quot;,a,&quot;[&quot;,n,&quot;.&quot;,t,&quot;]:&quot;,7680)}var a=e.constants.stencilOps;return[&quot;stencil.opBack&quot;===t?1029:1028,i(&quot;fail&quot;),i(&quot;zfail&quot;),i(&quot;zpass&quot;)]}));case&quot;polygonOffset.offset&quot;:return e((function(t){return[0|t.factor,0|t.units]}),(function(t,e,r){return[e.def(r,&quot;.factor|0&quot;),e=e.def(r,&quot;.units|0&quot;)]}));case&quot;cull.face&quot;:return e((function(t){var e=0;return&quot;front&quot;===t?e=1028:&quot;back&quot;===t&amp;&amp;(e=1029),e}),(function(t,e,r){return e.def(r,'===&quot;front&quot;?',1028,&quot;:&quot;,1029)}));case&quot;lineWidth&quot;:return e((function(t){return t}),(function(t,e,r){return r}));case&quot;frontFace&quot;:return e((function(t){return St[t]}),(function(t,e,r){return e.def(r+'===&quot;cw&quot;?2304:2305')}));case&quot;colorMask&quot;:return e((function(t){return t.map((function(t){return!!t}))}),(function(t,e,r){return a(4,(function(t){return&quot;!!&quot;+r+&quot;[&quot;+t+&quot;]&quot;}))}));case&quot;sample.coverage&quot;:return e((function(t){return[&quot;value&quot;in t?t.value:1,!!t.invert]}),(function(t,e,r){return[e.def('&quot;value&quot; in ',r,&quot;?+&quot;,r,&quot;.value:1&quot;),e=e.def(&quot;!!&quot;,r,&quot;.invert&quot;)]}))}})),i}(t),p=w(t,0,l);s(&quot;viewport&quot;),s(v(&quot;scissor.box&quot;));var d,g=0&lt;Object.keys(h).length;if((d={framebuffer:d,draw:f,shader:p,state:h,dirty:g,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}}).profile=function(t){var e,r=t.static;if(t=t.dynamic,&quot;profile&quot;in r){var n=!!r.profile;(e=F((function(t,e){return n}))).enable=n}else if(&quot;profile&quot;in t){var i=t.profile;e=B(i,(function(t,e){return t.invoke(e,i)}))}return e}(t),d.uniforms=function(t,e){var r=t.static,n=t.dynamic,i={};return Object.keys(r).forEach((function(t){var e,n=r[t];if(&quot;number&quot;==typeof n||&quot;boolean&quot;==typeof n)e=F((function(){return n}));else if(&quot;function&quot;==typeof n){var o=n._reglType;&quot;texture2d&quot;===o||&quot;textureCube&quot;===o?e=F((function(t){return t.link(n)})):&quot;framebuffer&quot;!==o&amp;&amp;&quot;framebufferCube&quot;!==o||(e=F((function(t){return t.link(n.color[0])})))}else m(n)&amp;&amp;(e=F((function(t){return t.global.def(&quot;[&quot;,a(n.length,(function(t){return n[t]})),&quot;]&quot;)})));e.value=n,i[t]=e})),Object.keys(n).forEach((function(t){var e=n[t];i[t]=B(e,(function(t,r){return t.invoke(r,e)}))})),i}(n),d.drawVAO=d.scopeVAO=function(t,e){var r=t.static,n=t.dynamic;if(&quot;vao&quot;in r){var i=r.vao;return null!==i&amp;&amp;null===u.getVAO(i)&amp;&amp;(i=u.createVAO(i)),F((function(t){return t.link(u.getVAO(i))}))}if(&quot;vao&quot;in n){var a=n.vao;return B(a,(function(t,e){var r=t.invoke(e,a);return e.def(t.shared.vao+&quot;.getVAO(&quot;+r+&quot;)&quot;)}))}return null}(t),!d.drawVAO&amp;&amp;p.program&amp;&amp;!l&amp;&amp;r.angle_instanced_arrays){var y=!0;if(t=p.program.attributes.map((function(t){return t=e.static[t],y=y&amp;&amp;!!t,t})),y&amp;&amp;0&lt;t.length){var x=u.getVAO(u.createVAO(t));d.drawVAO=new D(null,null,null,(function(t,e){return t.link(x)})),d.useVAO=!0}}return l?d.useVAO=!0:d.attributes=k(e),d.context=function(t){var e=t.static,r=t.dynamic,n={};return Object.keys(e).forEach((function(t){var r=e[t];n[t]=F((function(t,e){return&quot;number&quot;==typeof r||&quot;boolean&quot;==typeof r?&quot;&quot;+r:t.link(r)}))})),Object.keys(r).forEach((function(t){var e=r[t];n[t]=B(e,(function(t,r){return t.invoke(r,e)}))})),n}(i),d}function A(t,e,r){var n=t.shared.context,i=t.scope();Object.keys(r).forEach((function(a){e.save(n,&quot;.&quot;+a),i(n,&quot;.&quot;,a,&quot;=&quot;,r[a].append(t,e),&quot;;&quot;)})),e(i)}function S(t,e,r,n){var i,a=(s=t.shared).gl,o=s.framebuffer;$&amp;&amp;(i=e.def(s.extensions,&quot;.webgl_draw_buffers&quot;));var s=(l=t.constants).drawBuffer,l=l.backBuffer;t=r?r.append(t,e):e.def(o,&quot;.next&quot;),n||e(&quot;if(&quot;,t,&quot;!==&quot;,o,&quot;.cur){&quot;),e(&quot;if(&quot;,t,&quot;){&quot;,a,&quot;.bindFramebuffer(&quot;,36160,&quot;,&quot;,t,&quot;.framebuffer);&quot;),$&amp;&amp;e(i,&quot;.drawBuffersWEBGL(&quot;,s,&quot;[&quot;,t,&quot;.colorAttachments.length]);&quot;),e(&quot;}else{&quot;,a,&quot;.bindFramebuffer(&quot;,36160,&quot;,null);&quot;),$&amp;&amp;e(i,&quot;.drawBuffersWEBGL(&quot;,l,&quot;);&quot;),e(&quot;}&quot;,o,&quot;.cur=&quot;,t,&quot;;&quot;),n||e(&quot;}&quot;)}function E(t,e,r){var n=t.shared,i=n.gl,o=t.current,s=t.next,l=n.current,c=n.next,u=t.cond(l,&quot;.dirty&quot;);rt.forEach((function(e){var n,f;if(!((e=v(e))in r.state))if(e in s){n=s[e],f=o[e];var h=a(tt[e].length,(function(t){return u.def(n,&quot;[&quot;,t,&quot;]&quot;)}));u(t.cond(h.map((function(t,e){return t+&quot;!==&quot;+f+&quot;[&quot;+e+&quot;]&quot;})).join(&quot;||&quot;)).then(i,&quot;.&quot;,at[e],&quot;(&quot;,h,&quot;);&quot;,h.map((function(t,e){return f+&quot;[&quot;+e+&quot;]=&quot;+t})).join(&quot;;&quot;),&quot;;&quot;))}else n=u.def(c,&quot;.&quot;,e),h=t.cond(n,&quot;!==&quot;,l,&quot;.&quot;,e),u(h),e in it?h(t.cond(n).then(i,&quot;.enable(&quot;,it[e],&quot;);&quot;).else(i,&quot;.disable(&quot;,it[e],&quot;);&quot;),l,&quot;.&quot;,e,&quot;=&quot;,n,&quot;;&quot;):h(i,&quot;.&quot;,at[e],&quot;(&quot;,n,&quot;);&quot;,l,&quot;.&quot;,e,&quot;=&quot;,n,&quot;;&quot;)})),0===Object.keys(r.state).length&amp;&amp;u(l,&quot;.dirty=false;&quot;),e(u)}function C(t,e,r,n){var i=t.shared,a=t.current,o=i.current,s=i.gl;O(Object.keys(r)).forEach((function(i){var l=r[i];if(!n||n(l)){var c=l.append(t,e);if(it[i]){var u=it[i];R(l)?e(s,c?&quot;.enable(&quot;:&quot;.disable(&quot;,u,&quot;);&quot;):e(t.cond(c).then(s,&quot;.enable(&quot;,u,&quot;);&quot;).else(s,&quot;.disable(&quot;,u,&quot;);&quot;)),e(o,&quot;.&quot;,i,&quot;=&quot;,c,&quot;;&quot;)}else if(m(c)){var f=a[i];e(s,&quot;.&quot;,at[i],&quot;(&quot;,c,&quot;);&quot;,c.map((function(t,e){return f+&quot;[&quot;+e+&quot;]=&quot;+t})).join(&quot;;&quot;),&quot;;&quot;)}else e(s,&quot;.&quot;,at[i],&quot;(&quot;,c,&quot;);&quot;,o,&quot;.&quot;,i,&quot;=&quot;,c,&quot;;&quot;)}}))}function L(t,e){K&amp;&amp;(t.instancing=e.def(t.shared.extensions,&quot;.angle_instanced_arrays&quot;))}function I(t,e,r,n,i){function a(){return&quot;undefined&quot;==typeof performance?&quot;Date.now()&quot;:&quot;performance.now()&quot;}function o(t){t(c=e.def(),&quot;=&quot;,a(),&quot;;&quot;),&quot;string&quot;==typeof i?t(h,&quot;.count+=&quot;,i,&quot;;&quot;):t(h,&quot;.count++;&quot;),d&amp;&amp;(n?t(u=e.def(),&quot;=&quot;,g,&quot;.getNumPendingQueries();&quot;):t(g,&quot;.beginQuery(&quot;,h,&quot;);&quot;))}function s(t){t(h,&quot;.cpuTime+=&quot;,a(),&quot;-&quot;,c,&quot;;&quot;),d&amp;&amp;(n?t(g,&quot;.pushScopeStats(&quot;,u,&quot;,&quot;,g,&quot;.getNumPendingQueries(),&quot;,h,&quot;);&quot;):t(g,&quot;.endQuery();&quot;))}function l(t){var r=e.def(p,&quot;.profile&quot;);e(p,&quot;.profile=&quot;,t,&quot;;&quot;),e.exit(p,&quot;.profile=&quot;,r,&quot;;&quot;)}var c,u,f=t.shared,h=t.stats,p=f.current,g=f.timer;if(r=r.profile){if(R(r))return void(r.enable?(o(e),s(e.exit),l(&quot;true&quot;)):l(&quot;false&quot;));l(r=r.append(t,e))}else r=e.def(p,&quot;.profile&quot;);o(f=t.block()),e(&quot;if(&quot;,r,&quot;){&quot;,f,&quot;}&quot;),s(t=t.block()),e.exit(&quot;if(&quot;,r,&quot;){&quot;,t,&quot;}&quot;)}function N(t,e,r,n,i){function a(r,n,i){function a(){e(&quot;if(!&quot;,u,&quot;.buffer){&quot;,l,&quot;.enableVertexAttribArray(&quot;,c,&quot;);}&quot;);var r,a=i.type;r=i.size?e.def(i.size,&quot;||&quot;,n):n,e(&quot;if(&quot;,u,&quot;.type!==&quot;,a,&quot;||&quot;,u,&quot;.size!==&quot;,r,&quot;||&quot;,p.map((function(t){return u+&quot;.&quot;+t+&quot;!==&quot;+i[t]})).join(&quot;||&quot;),&quot;){&quot;,l,&quot;.bindBuffer(&quot;,34962,&quot;,&quot;,f,&quot;.buffer);&quot;,l,&quot;.vertexAttribPointer(&quot;,[c,r,a,i.normalized,i.stride,i.offset],&quot;);&quot;,u,&quot;.type=&quot;,a,&quot;;&quot;,u,&quot;.size=&quot;,r,&quot;;&quot;,p.map((function(t){return u+&quot;.&quot;+t+&quot;=&quot;+i[t]+&quot;;&quot;})).join(&quot;&quot;),&quot;}&quot;),K&amp;&amp;(a=i.divisor,e(&quot;if(&quot;,u,&quot;.divisor!==&quot;,a,&quot;){&quot;,t.instancing,&quot;.vertexAttribDivisorANGLE(&quot;,[c,a],&quot;);&quot;,u,&quot;.divisor=&quot;,a,&quot;;}&quot;))}function s(){e(&quot;if(&quot;,u,&quot;.buffer){&quot;,l,&quot;.disableVertexAttribArray(&quot;,c,&quot;);&quot;,u,&quot;.buffer=null;&quot;,&quot;}if(&quot;,wt.map((function(t,e){return u+&quot;.&quot;+t+&quot;!==&quot;+h[e]})).join(&quot;||&quot;),&quot;){&quot;,l,&quot;.vertexAttrib4f(&quot;,c,&quot;,&quot;,h,&quot;);&quot;,wt.map((function(t,e){return u+&quot;.&quot;+t+&quot;=&quot;+h[e]+&quot;;&quot;})).join(&quot;&quot;),&quot;}&quot;)}var l=o.gl,c=e.def(r,&quot;.location&quot;),u=e.def(o.attributes,&quot;[&quot;,c,&quot;]&quot;);r=i.state;var f=i.buffer,h=[i.x,i.y,i.z,i.w],p=[&quot;buffer&quot;,&quot;normalized&quot;,&quot;offset&quot;,&quot;stride&quot;];1===r?a():2===r?s():(e(&quot;if(&quot;,r,&quot;===&quot;,1,&quot;){&quot;),a(),e(&quot;}else{&quot;),s(),e(&quot;}&quot;))}var o=t.shared;n.forEach((function(n){var o,s=n.name,l=r.attributes[s];if(l){if(!i(l))return;o=l.append(t,e)}else{if(!i(Et))return;var c=t.scopeAttrib(s);o={},Object.keys(new Z).forEach((function(t){o[t]=e.def(c,&quot;.&quot;,t)}))}a(t.link(n),function(t){switch(t){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}(n.info.type),o)}))}function j(t,r,n,i,o){for(var s,l=t.shared,c=l.gl,u=0;u&lt;i.length;++u){var f,h=(g=i[u]).name,p=g.info.type,d=n.uniforms[h],g=t.link(g)+&quot;.location&quot;;if(d){if(!o(d))continue;if(R(d)){if(h=d.value,35678===p||35680===p)r(c,&quot;.uniform1i(&quot;,g,&quot;,&quot;,(p=t.link(h._texture||h.color[0]._texture))+&quot;.bind());&quot;),r.exit(p,&quot;.unbind();&quot;);else if(35674===p||35675===p||35676===p)d=2,35675===p?d=3:35676===p&amp;&amp;(d=4),r(c,&quot;.uniformMatrix&quot;,d,&quot;fv(&quot;,g,&quot;,false,&quot;,h=t.global.def(&quot;new Float32Array([&quot;+Array.prototype.slice.call(h)+&quot;])&quot;),&quot;);&quot;);else{switch(p){case 5126:s=&quot;1f&quot;;break;case 35664:s=&quot;2f&quot;;break;case 35665:s=&quot;3f&quot;;break;case 35666:s=&quot;4f&quot;;break;case 35670:case 5124:s=&quot;1i&quot;;break;case 35671:case 35667:s=&quot;2i&quot;;break;case 35672:case 35668:s=&quot;3i&quot;;break;case 35673:s=&quot;4i&quot;;break;case 35669:s=&quot;4i&quot;}r(c,&quot;.uniform&quot;,s,&quot;(&quot;,g,&quot;,&quot;,m(h)?Array.prototype.slice.call(h):h,&quot;);&quot;)}continue}f=d.append(t,r)}else{if(!o(Et))continue;f=r.def(l.uniforms,&quot;[&quot;,e.id(h),&quot;]&quot;)}switch(35678===p?r(&quot;if(&quot;,f,&quot;&amp;&amp;&quot;,f,'._reglType===&quot;framebuffer&quot;){',f,&quot;=&quot;,f,&quot;.color[0];&quot;,&quot;}&quot;):35680===p&amp;&amp;r(&quot;if(&quot;,f,&quot;&amp;&amp;&quot;,f,'._reglType===&quot;framebufferCube&quot;){',f,&quot;=&quot;,f,&quot;.color[0];&quot;,&quot;}&quot;),h=1,p){case 35678:case 35680:p=r.def(f,&quot;._texture&quot;),r(c,&quot;.uniform1i(&quot;,g,&quot;,&quot;,p,&quot;.bind());&quot;),r.exit(p,&quot;.unbind();&quot;);continue;case 5124:case 35670:s=&quot;1i&quot;;break;case 35667:case 35671:s=&quot;2i&quot;,h=2;break;case 35668:case 35672:s=&quot;3i&quot;,h=3;break;case 35669:case 35673:s=&quot;4i&quot;,h=4;break;case 5126:s=&quot;1f&quot;;break;case 35664:s=&quot;2f&quot;,h=2;break;case 35665:s=&quot;3f&quot;,h=3;break;case 35666:s=&quot;4f&quot;,h=4;break;case 35674:s=&quot;Matrix2fv&quot;;break;case 35675:s=&quot;Matrix3fv&quot;;break;case 35676:s=&quot;Matrix4fv&quot;}if(r(c,&quot;.uniform&quot;,s,&quot;(&quot;,g,&quot;,&quot;),&quot;M&quot;===s.charAt(0)){g=Math.pow(p-35674+2,2);var v=t.global.def(&quot;new Float32Array(&quot;,g,&quot;)&quot;);r(&quot;false,(Array.isArray(&quot;,f,&quot;)||&quot;,f,&quot; instanceof Float32Array)?&quot;,f,&quot;:(&quot;,a(g,(function(t){return v+&quot;[&quot;+t+&quot;]=&quot;+f+&quot;[&quot;+t+&quot;]&quot;})),&quot;,&quot;,v,&quot;)&quot;)}else r(1&lt;h?a(h,(function(t){return f+&quot;[&quot;+t+&quot;]&quot;})):f);r(&quot;);&quot;)}}function U(t,e,r,n){function i(i){var a=h[i];return a?a.contextDep&amp;&amp;n.contextDynamic||a.propDep?a.append(t,r):a.append(t,e):e.def(f,&quot;.&quot;,i)}function a(){function t(){r(l,&quot;.drawElementsInstancedANGLE(&quot;,[d,m,v,g+&quot;&lt;&lt;((&quot;+v+&quot;-5121)&gt;&gt;1)&quot;,s],&quot;);&quot;)}function e(){r(l,&quot;.drawArraysInstancedANGLE(&quot;,[d,g,m,s],&quot;);&quot;)}p?y?t():(r(&quot;if(&quot;,p,&quot;){&quot;),t(),r(&quot;}else{&quot;),e(),r(&quot;}&quot;)):e()}function o(){function t(){r(u+&quot;.drawElements(&quot;+[d,m,v,g+&quot;&lt;&lt;((&quot;+v+&quot;-5121)&gt;&gt;1)&quot;]+&quot;);&quot;)}function e(){r(u+&quot;.drawArrays(&quot;+[d,g,m]+&quot;);&quot;)}p?y?t():(r(&quot;if(&quot;,p,&quot;){&quot;),t(),r(&quot;}else{&quot;),e(),r(&quot;}&quot;)):e()}var s,l,c=t.shared,u=c.gl,f=c.draw,h=n.draw,p=function(){var i=h.elements,a=e;return i?((i.contextDep&amp;&amp;n.contextDynamic||i.propDep)&amp;&amp;(a=r),i=i.append(t,a)):i=a.def(f,&quot;.&quot;,&quot;elements&quot;),i&amp;&amp;a(&quot;if(&quot;+i+&quot;)&quot;+u+&quot;.bindBuffer(34963,&quot;+i+&quot;.buffer.buffer);&quot;),i}(),d=i(&quot;primitive&quot;),g=i(&quot;offset&quot;),m=function(){var i=h.count,a=e;return i?((i.contextDep&amp;&amp;n.contextDynamic||i.propDep)&amp;&amp;(a=r),i=i.append(t,a)):i=a.def(f,&quot;.&quot;,&quot;count&quot;),i}();if(&quot;number&quot;==typeof m){if(0===m)return}else r(&quot;if(&quot;,m,&quot;){&quot;),r.exit(&quot;}&quot;);K&amp;&amp;(s=i(&quot;instances&quot;),l=t.instancing);var v=p+&quot;.type&quot;,y=h.elements&amp;&amp;R(h.elements);K&amp;&amp;(&quot;number&quot;!=typeof s||0&lt;=s)?&quot;string&quot;==typeof s?(r(&quot;if(&quot;,s,&quot;&gt;0){&quot;),a(),r(&quot;}else if(&quot;,s,&quot;&lt;0){&quot;),o(),r(&quot;}&quot;)):a():o()}function V(t,e,r,n,i){return i=(e=b()).proc(&quot;body&quot;,i),K&amp;&amp;(e.instancing=i.def(e.shared.extensions,&quot;.angle_instanced_arrays&quot;)),t(e,i,r,n),e.compile().body}function H(t,e,r,n){L(t,e),r.useVAO?r.drawVAO?e(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,e),&quot;);&quot;):e(t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;):(e(t.shared.vao,&quot;.setVAO(null);&quot;),N(t,e,r,n.attributes,(function(){return!0}))),j(t,e,r,n.uniforms,(function(){return!0})),U(t,e,e,r)}function G(t,e,r,n){function i(){return!0}t.batchId=&quot;a1&quot;,L(t,e),N(t,e,r,n.attributes,i),j(t,e,r,n.uniforms,i),U(t,e,e,r)}function Y(t,e,r,n){function i(t){return t.contextDep&amp;&amp;o||t.propDep}function a(t){return!i(t)}L(t,e);var o=r.contextDep,s=e.def(),l=e.def();t.shared.props=l,t.batchId=s;var c=t.scope(),u=t.scope();e(c.entry,&quot;for(&quot;,s,&quot;=0;&quot;,s,&quot;&lt;&quot;,&quot;a1&quot;,&quot;;++&quot;,s,&quot;){&quot;,l,&quot;=&quot;,&quot;a0&quot;,&quot;[&quot;,s,&quot;];&quot;,u,&quot;}&quot;,c.exit),r.needsContext&amp;&amp;A(t,u,r.context),r.needsFramebuffer&amp;&amp;S(t,u,r.framebuffer),C(t,u,r.state,i),r.profile&amp;&amp;i(r.profile)&amp;&amp;I(t,u,r,!1,!0),n?(r.useVAO?r.drawVAO?i(r.drawVAO)?u(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,u),&quot;);&quot;):c(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,c),&quot;);&quot;):c(t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;):(c(t.shared.vao,&quot;.setVAO(null);&quot;),N(t,c,r,n.attributes,a),N(t,u,r,n.attributes,i)),j(t,c,r,n.uniforms,a),j(t,u,r,n.uniforms,i),U(t,c,u,r)):(e=t.global.def(&quot;{}&quot;),n=r.shader.progVar.append(t,u),l=u.def(n,&quot;.id&quot;),c=u.def(e,&quot;[&quot;,l,&quot;]&quot;),u(t.shared.gl,&quot;.useProgram(&quot;,n,&quot;.program);&quot;,&quot;if(!&quot;,c,&quot;){&quot;,c,&quot;=&quot;,e,&quot;[&quot;,l,&quot;]=&quot;,t.link((function(e){return V(G,t,r,e,2)})),&quot;(&quot;,n,&quot;);}&quot;,c,&quot;.call(this,a0[&quot;,s,&quot;],&quot;,s,&quot;);&quot;))}function W(t,r){function n(e){var n=r.shader[e];n&amp;&amp;i.set(a.shader,&quot;.&quot;+e,n.append(t,i))}var i=t.proc(&quot;scope&quot;,3);t.batchId=&quot;a2&quot;;var a=t.shared,o=a.current;A(t,i,r.context),r.framebuffer&amp;&amp;r.framebuffer.append(t,i),O(Object.keys(r.state)).forEach((function(e){var n=r.state[e].append(t,i);m(n)?n.forEach((function(r,n){i.set(t.next[e],&quot;[&quot;+n+&quot;]&quot;,r)})):i.set(a.next,&quot;.&quot;+e,n)})),I(t,i,r,!0,!0),[&quot;elements&quot;,&quot;offset&quot;,&quot;count&quot;,&quot;instances&quot;,&quot;primitive&quot;].forEach((function(e){var n=r.draw[e];n&amp;&amp;i.set(a.draw,&quot;.&quot;+e,&quot;&quot;+n.append(t,i))})),Object.keys(r.uniforms).forEach((function(n){i.set(a.uniforms,&quot;[&quot;+e.id(n)+&quot;]&quot;,r.uniforms[n].append(t,i))})),Object.keys(r.attributes).forEach((function(e){var n=r.attributes[e].append(t,i),a=t.scopeAttrib(e);Object.keys(new Z).forEach((function(t){i.set(a,&quot;.&quot;+t,n[t])}))})),r.scopeVAO&amp;&amp;i.set(a.vao,&quot;.targetVAO&quot;,r.scopeVAO.append(t,i)),n(&quot;vert&quot;),n(&quot;frag&quot;),0&lt;Object.keys(r.state).length&amp;&amp;(i(o,&quot;.dirty=true;&quot;),i.exit(o,&quot;.dirty=true;&quot;)),i(&quot;a1(&quot;,t.shared.context,&quot;,a0,&quot;,t.batchId,&quot;);&quot;)}function X(t,e,r){var n=e.static[r];if(n&amp;&amp;function(t){if(&quot;object&quot;==typeof t&amp;&amp;!m(t)){for(var e=Object.keys(t),r=0;r&lt;e.length;++r)if(q.isDynamic(t[e[r]]))return!0;return!1}}(n)){var i=t.global,a=Object.keys(n),o=!1,s=!1,l=!1,c=t.global.def(&quot;{}&quot;);a.forEach((function(e){var r=n[e];if(q.isDynamic(r))&quot;function&quot;==typeof r&amp;&amp;(r=n[e]=q.unbox(r)),e=B(r,null),o=o||e.thisDep,l=l||e.propDep,s=s||e.contextDep;else{switch(i(c,&quot;.&quot;,e,&quot;=&quot;),typeof r){case&quot;number&quot;:i(r);break;case&quot;string&quot;:i('&quot;',r,'&quot;');break;case&quot;object&quot;:Array.isArray(r)&amp;&amp;i(&quot;[&quot;,r.join(),&quot;]&quot;);break;default:i(t.link(r))}i(&quot;;&quot;)}})),e.dynamic[r]=new q.DynamicVariable(4,{thisDep:o,contextDep:s,propDep:l,ref:c,append:function(t,e){a.forEach((function(r){var i=n[r];q.isDynamic(i)&amp;&amp;(i=t.invoke(e,i),e(c,&quot;.&quot;,r,&quot;=&quot;,i,&quot;;&quot;))}))}}),delete e.static[r]}}var Z=u.Record,J={add:32774,subtract:32778,&quot;reverse subtract&quot;:32779};r.ext_blend_minmax&amp;&amp;(J.min=32775,J.max=32776);var K=r.angle_instanced_arrays,$=r.webgl_draw_buffers,tt={dirty:!0,profile:g.profile},et={},rt=[],it={},at={};y(&quot;dither&quot;,3024),y(&quot;blend.enable&quot;,3042),x(&quot;blend.color&quot;,&quot;blendColor&quot;,[0,0,0,0]),x(&quot;blend.equation&quot;,&quot;blendEquationSeparate&quot;,[32774,32774]),x(&quot;blend.func&quot;,&quot;blendFuncSeparate&quot;,[1,0,1,0]),y(&quot;depth.enable&quot;,2929,!0),x(&quot;depth.func&quot;,&quot;depthFunc&quot;,513),x(&quot;depth.range&quot;,&quot;depthRange&quot;,[0,1]),x(&quot;depth.mask&quot;,&quot;depthMask&quot;,!0),x(&quot;colorMask&quot;,&quot;colorMask&quot;,[!0,!0,!0,!0]),y(&quot;cull.enable&quot;,2884),x(&quot;cull.face&quot;,&quot;cullFace&quot;,1029),x(&quot;frontFace&quot;,&quot;frontFace&quot;,2305),x(&quot;lineWidth&quot;,&quot;lineWidth&quot;,1),y(&quot;polygonOffset.enable&quot;,32823),x(&quot;polygonOffset.offset&quot;,&quot;polygonOffset&quot;,[0,0]),y(&quot;sample.alpha&quot;,32926),y(&quot;sample.enable&quot;,32928),x(&quot;sample.coverage&quot;,&quot;sampleCoverage&quot;,[1,!1]),y(&quot;stencil.enable&quot;,2960),x(&quot;stencil.mask&quot;,&quot;stencilMask&quot;,-1),x(&quot;stencil.func&quot;,&quot;stencilFunc&quot;,[519,0,-1]),x(&quot;stencil.opFront&quot;,&quot;stencilOpSeparate&quot;,[1028,7680,7680,7680]),x(&quot;stencil.opBack&quot;,&quot;stencilOpSeparate&quot;,[1029,7680,7680,7680]),y(&quot;scissor.enable&quot;,3089),x(&quot;scissor.box&quot;,&quot;scissor&quot;,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),x(&quot;viewport&quot;,&quot;viewport&quot;,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var ot={gl:t,context:p,strings:e,next:et,current:tt,draw:h,elements:o,buffer:i,shader:f,attributes:u.state,vao:u,uniforms:c,framebuffer:l,extensions:r,timer:d,isBufferArgs:z},st={primTypes:nt,compareFuncs:Mt,blendFuncs:kt,blendEquations:J,stencilOps:At,glTypes:Q,orientationType:St};$&amp;&amp;(st.backBuffer=[1029],st.drawBuffer=a(n.maxDrawbuffers,(function(t){return 0===t?[0]:a(t,(function(t){return 36064+t}))})));var lt=0;return{next:et,current:tt,procs:function(){var t=b(),e=t.proc(&quot;poll&quot;),i=t.proc(&quot;refresh&quot;),o=t.block();e(o),i(o);var s,l=t.shared,c=l.gl,u=l.next,f=l.current;o(f,&quot;.dirty=false;&quot;),S(t,e),S(t,i,null,!0),K&amp;&amp;(s=t.link(K)),r.oes_vertex_array_object&amp;&amp;i(t.link(r.oes_vertex_array_object),&quot;.bindVertexArrayOES(null);&quot;);for(var h=0;h&lt;n.maxAttributes;++h){var p=i.def(l.attributes,&quot;[&quot;,h,&quot;]&quot;),d=t.cond(p,&quot;.buffer&quot;);d.then(c,&quot;.enableVertexAttribArray(&quot;,h,&quot;);&quot;,c,&quot;.bindBuffer(&quot;,34962,&quot;,&quot;,p,&quot;.buffer.buffer);&quot;,c,&quot;.vertexAttribPointer(&quot;,h,&quot;,&quot;,p,&quot;.size,&quot;,p,&quot;.type,&quot;,p,&quot;.normalized,&quot;,p,&quot;.stride,&quot;,p,&quot;.offset);&quot;).else(c,&quot;.disableVertexAttribArray(&quot;,h,&quot;);&quot;,c,&quot;.vertexAttrib4f(&quot;,h,&quot;,&quot;,p,&quot;.x,&quot;,p,&quot;.y,&quot;,p,&quot;.z,&quot;,p,&quot;.w);&quot;,p,&quot;.buffer=null;&quot;),i(d),K&amp;&amp;i(s,&quot;.vertexAttribDivisorANGLE(&quot;,h,&quot;,&quot;,p,&quot;.divisor);&quot;)}return i(t.shared.vao,&quot;.currentVAO=null;&quot;,t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;),Object.keys(it).forEach((function(r){var n=it[r],a=o.def(u,&quot;.&quot;,r),s=t.block();s(&quot;if(&quot;,a,&quot;){&quot;,c,&quot;.enable(&quot;,n,&quot;)}else{&quot;,c,&quot;.disable(&quot;,n,&quot;)}&quot;,f,&quot;.&quot;,r,&quot;=&quot;,a,&quot;;&quot;),i(s),e(&quot;if(&quot;,a,&quot;!==&quot;,f,&quot;.&quot;,r,&quot;){&quot;,s,&quot;}&quot;)})),Object.keys(at).forEach((function(r){var n,s,l=at[r],h=tt[r],p=t.block();p(c,&quot;.&quot;,l,&quot;(&quot;),m(h)?(l=h.length,n=t.global.def(u,&quot;.&quot;,r),s=t.global.def(f,&quot;.&quot;,r),p(a(l,(function(t){return n+&quot;[&quot;+t+&quot;]&quot;})),&quot;);&quot;,a(l,(function(t){return s+&quot;[&quot;+t+&quot;]=&quot;+n+&quot;[&quot;+t+&quot;];&quot;})).join(&quot;&quot;)),e(&quot;if(&quot;,a(l,(function(t){return n+&quot;[&quot;+t+&quot;]!==&quot;+s+&quot;[&quot;+t+&quot;]&quot;})).join(&quot;||&quot;),&quot;){&quot;,p,&quot;}&quot;)):(n=o.def(u,&quot;.&quot;,r),s=o.def(f,&quot;.&quot;,r),p(n,&quot;);&quot;,f,&quot;.&quot;,r,&quot;=&quot;,n,&quot;;&quot;),e(&quot;if(&quot;,n,&quot;!==&quot;,s,&quot;){&quot;,p,&quot;}&quot;)),i(p)})),t.compile()}(),compile:function(t,e,r,n,i){var a=b();return a.stats=a.link(i),Object.keys(e.static).forEach((function(t){X(a,e,t)})),Tt.forEach((function(e){X(a,t,e)})),r=M(t,e,r,n),function(t,e){var r=t.proc(&quot;draw&quot;,1);L(t,r),A(t,r,e.context),S(t,r,e.framebuffer),E(t,r,e),C(t,r,e.state),I(t,r,e,!1,!0);var n=e.shader.progVar.append(t,r);if(r(t.shared.gl,&quot;.useProgram(&quot;,n,&quot;.program);&quot;),e.shader.program)H(t,r,e,e.shader.program);else{r(t.shared.vao,&quot;.setVAO(null);&quot;);var i=t.global.def(&quot;{}&quot;),a=r.def(n,&quot;.id&quot;),o=r.def(i,&quot;[&quot;,a,&quot;]&quot;);r(t.cond(o).then(o,&quot;.call(this,a0);&quot;).else(o,&quot;=&quot;,i,&quot;[&quot;,a,&quot;]=&quot;,t.link((function(r){return V(H,t,e,r,1)})),&quot;(&quot;,n,&quot;);&quot;,o,&quot;.call(this,a0);&quot;))}0&lt;Object.keys(e.state).length&amp;&amp;r(t.shared.current,&quot;.dirty=true;&quot;)}(a,r),W(a,r),function(t,e){function r(t){return t.contextDep&amp;&amp;i||t.propDep}var n=t.proc(&quot;batch&quot;,2);t.batchId=&quot;0&quot;,L(t,n);var i=!1,a=!0;Object.keys(e.context).forEach((function(t){i=i||e.context[t].propDep})),i||(A(t,n,e.context),a=!1);var o=!1;if((s=e.framebuffer)?(s.propDep?i=o=!0:s.contextDep&amp;&amp;i&amp;&amp;(o=!0),o||S(t,n,s)):S(t,n,null),e.state.viewport&amp;&amp;e.state.viewport.propDep&amp;&amp;(i=!0),E(t,n,e),C(t,n,e.state,(function(t){return!r(t)})),e.profile&amp;&amp;r(e.profile)||I(t,n,e,!1,&quot;a1&quot;),e.contextDep=i,e.needsContext=a,e.needsFramebuffer=o,(a=e.shader.progVar).contextDep&amp;&amp;i||a.propDep)Y(t,n,e,null);else if(a=a.append(t,n),n(t.shared.gl,&quot;.useProgram(&quot;,a,&quot;.program);&quot;),e.shader.program)Y(t,n,e,e.shader.program);else{n(t.shared.vao,&quot;.setVAO(null);&quot;);var s=t.global.def(&quot;{}&quot;),l=(o=n.def(a,&quot;.id&quot;),n.def(s,&quot;[&quot;,o,&quot;]&quot;));n(t.cond(l).then(l,&quot;.call(this,a0,a1);&quot;).else(l,&quot;=&quot;,s,&quot;[&quot;,o,&quot;]=&quot;,t.link((function(r){return V(Y,t,e,r,2)})),&quot;(&quot;,a,&quot;);&quot;,l,&quot;.call(this,a0,a1);&quot;))}0&lt;Object.keys(e.state).length&amp;&amp;n(t.shared.current,&quot;.dirty=true;&quot;)}(a,r),a.compile()}}}function j(t,e){for(var r=0;r&lt;t.length;++r)if(t[r]===e)return r;return-1}var U=function(t,e){for(var r=Object.keys(e),n=0;n&lt;r.length;++n)t[r[n]]=e[r[n]];return t},V=0,q={DynamicVariable:t,define:function(r,n){return new t(r,e(n+&quot;&quot;))},isDynamic:function(e){return&quot;function&quot;==typeof e&amp;&amp;!e._reglType||e instanceof t},unbox:function(e,r){return&quot;function&quot;==typeof e?new t(0,e):e},accessor:e},H={next:&quot;function&quot;==typeof requestAnimationFrame?function(t){return requestAnimationFrame(t)}:function(t){return setTimeout(t,16)},cancel:&quot;function&quot;==typeof cancelAnimationFrame?function(t){return cancelAnimationFrame(t)}:clearTimeout},G=&quot;undefined&quot;!=typeof performance&amp;&amp;performance.now?function(){return performance.now()}:function(){return+new Date},Y=s();Y.zero=s();var W=function(t,e){var r=1;e.ext_texture_filter_anisotropic&amp;&amp;(r=t.getParameter(34047));var n=1,i=1;e.webgl_draw_buffers&amp;&amp;(n=t.getParameter(34852),i=t.getParameter(36063));var a=!!e.oes_texture_float;if(a){a=t.createTexture(),t.bindTexture(3553,a),t.texImage2D(3553,0,6408,1,1,0,6408,5126,null);var o=t.createFramebuffer();if(t.bindFramebuffer(36160,o),t.framebufferTexture2D(36160,36064,3553,a,0),t.bindTexture(3553,null),36053!==t.checkFramebufferStatus(36160))a=!1;else{t.viewport(0,0,1,1),t.clearColor(1,0,0,1),t.clear(16384);var s=Y.allocType(5126,4);t.readPixels(0,0,1,1,6408,5126,s),t.getError()?a=!1:(t.deleteFramebuffer(o),t.deleteTexture(a),a=1===s[0]),Y.freeType(s)}}return s=!0,&quot;undefined&quot;!=typeof navigator&amp;&amp;(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent))||(s=t.createTexture(),o=Y.allocType(5121,36),t.activeTexture(33984),t.bindTexture(34067,s),t.texImage2D(34069,0,6408,3,3,0,6408,5121,o),Y.freeType(o),t.bindTexture(34067,null),t.deleteTexture(s),s=!t.getError()),{colorBits:[t.getParameter(3410),t.getParameter(3411),t.getParameter(3412),t.getParameter(3413)],depthBits:t.getParameter(3414),stencilBits:t.getParameter(3415),subpixelBits:t.getParameter(3408),extensions:Object.keys(e).filter((function(t){return!!e[t]})),maxAnisotropic:r,maxDrawbuffers:n,maxColorAttachments:i,pointSizeDims:t.getParameter(33901),lineWidthDims:t.getParameter(33902),maxViewportDims:t.getParameter(3386),maxCombinedTextureUnits:t.getParameter(35661),maxCubeMapSize:t.getParameter(34076),maxRenderbufferSize:t.getParameter(34024),maxTextureUnits:t.getParameter(34930),maxTextureSize:t.getParameter(3379),maxAttributes:t.getParameter(34921),maxVertexUniforms:t.getParameter(36347),maxVertexTextureUnits:t.getParameter(35660),maxVaryingVectors:t.getParameter(36348),maxFragmentUniforms:t.getParameter(36349),glsl:t.getParameter(35724),renderer:t.getParameter(7937),vendor:t.getParameter(7936),version:t.getParameter(7938),readFloat:a,npotTextureCube:s}},X=function(t){return t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Float32Array||t instanceof Float64Array||t instanceof Uint8ClampedArray},Z=function(t){return Object.keys(t).map((function(e){return t[e]}))},J={shape:function(t){for(var e=[];t.length;t=t[0])e.push(t.length);return e},flatten:function(t,e,r,n){var i=1;if(e.length)for(var a=0;a&lt;e.length;++a)i*=e[a];else i=0;switch(r=n||Y.allocType(r,i),e.length){case 0:break;case 1:for(n=e[0],e=0;e&lt;n;++e)r[e]=t[e];break;case 2:for(n=e[0],e=e[1],a=i=0;a&lt;n;++a)for(var o=t[a],s=0;s&lt;e;++s)r[i++]=o[s];break;case 3:c(t,e[0],e[1],e[2],r,0);break;default:!function t(e,r,n,i,a){for(var o=1,s=n+1;s&lt;r.length;++s)o*=r[s];var l=r[n];if(4==r.length-n){var u=r[n+1],f=r[n+2];for(r=r[n+3],s=0;s&lt;l;++s)c(e[s],u,f,r,i,a),a+=o}else for(s=0;s&lt;l;++s)t(e[s],r,n+1,i,a),a+=o}(t,e,0,r,0)}return r}},K={&quot;[object Int8Array]&quot;:5120,&quot;[object Int16Array]&quot;:5122,&quot;[object Int32Array]&quot;:5124,&quot;[object Uint8Array]&quot;:5121,&quot;[object Uint8ClampedArray]&quot;:5121,&quot;[object Uint16Array]&quot;:5123,&quot;[object Uint32Array]&quot;:5125,&quot;[object Float32Array]&quot;:5126,&quot;[object Float64Array]&quot;:5121,&quot;[object ArrayBuffer]&quot;:5121},Q={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},$={dynamic:35048,stream:35040,static:35044},tt=J.flatten,et=J.shape,rt=[];rt[5120]=1,rt[5122]=2,rt[5124]=4,rt[5121]=1,rt[5123]=2,rt[5125]=4,rt[5126]=4;var nt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,&quot;line loop&quot;:2,&quot;line strip&quot;:3,&quot;triangle strip&quot;:5,&quot;triangle fan&quot;:6},it=new Float32Array(1),at=new Uint32Array(it.buffer),ot=[9984,9986,9985,9987],st=[0,6409,6410,6407,6408],lt={};lt[6409]=lt[6406]=lt[6402]=1,lt[34041]=lt[6410]=2,lt[6407]=lt[35904]=3,lt[6408]=lt[35906]=4;var ct=v(&quot;HTMLCanvasElement&quot;),ut=v(&quot;OffscreenCanvas&quot;),ft=v(&quot;CanvasRenderingContext2D&quot;),ht=v(&quot;ImageBitmap&quot;),pt=v(&quot;HTMLImageElement&quot;),dt=v(&quot;HTMLVideoElement&quot;),gt=Object.keys(K).concat([ct,ut,ft,ht,pt,dt]),mt=[];mt[5121]=1,mt[5126]=4,mt[36193]=2,mt[5123]=2,mt[5125]=4;var vt=[];vt[32854]=2,vt[32855]=2,vt[36194]=2,vt[34041]=4,vt[33776]=.5,vt[33777]=.5,vt[33778]=1,vt[33779]=1,vt[35986]=.5,vt[35987]=1,vt[34798]=1,vt[35840]=.5,vt[35841]=.25,vt[35842]=.5,vt[35843]=.25,vt[36196]=.5;var yt=[];yt[32854]=2,yt[32855]=2,yt[36194]=2,yt[33189]=2,yt[36168]=1,yt[34041]=4,yt[35907]=4,yt[34836]=16,yt[34842]=8,yt[34843]=6;var xt=function(t,e,r,n,i){function a(t){this.id=c++,this.refCount=1,this.renderbuffer=t,this.format=32854,this.height=this.width=0,i.profile&amp;&amp;(this.stats={size:0})}function o(e){var r=e.renderbuffer;t.bindRenderbuffer(36161,null),t.deleteRenderbuffer(r),e.renderbuffer=null,e.refCount=0,delete u[e.id],n.renderbufferCount--}var s={rgba4:32854,rgb565:36194,&quot;rgb5 a1&quot;:32855,depth:33189,stencil:36168,&quot;depth stencil&quot;:34041};e.ext_srgb&amp;&amp;(s.srgba=35907),e.ext_color_buffer_half_float&amp;&amp;(s.rgba16f=34842,s.rgb16f=34843),e.webgl_color_buffer_float&amp;&amp;(s.rgba32f=34836);var l=[];Object.keys(s).forEach((function(t){l[s[t]]=t}));var c=0,u={};return a.prototype.decRef=function(){0&gt;=--this.refCount&amp;&amp;o(this)},i.profile&amp;&amp;(n.getTotalRenderbufferSize=function(){var t=0;return Object.keys(u).forEach((function(e){t+=u[e].stats.size})),t}),{create:function(e,r){function o(e,r){var n=0,a=0,u=32854;if(&quot;object&quot;==typeof e&amp;&amp;e?(&quot;shape&quot;in e?(n=0|(a=e.shape)[0],a=0|a[1]):(&quot;radius&quot;in e&amp;&amp;(n=a=0|e.radius),&quot;width&quot;in e&amp;&amp;(n=0|e.width),&quot;height&quot;in e&amp;&amp;(a=0|e.height)),&quot;format&quot;in e&amp;&amp;(u=s[e.format])):&quot;number&quot;==typeof e?(n=0|e,a=&quot;number&quot;==typeof r?0|r:n):e||(n=a=1),n!==c.width||a!==c.height||u!==c.format)return o.width=c.width=n,o.height=c.height=a,c.format=u,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,u,n,a),i.profile&amp;&amp;(c.stats.size=yt[c.format]*c.width*c.height),o.format=l[c.format],o}var c=new a(t.createRenderbuffer());return u[c.id]=c,n.renderbufferCount++,o(e,r),o.resize=function(e,r){var n=0|e,a=0|r||n;return n===c.width&amp;&amp;a===c.height||(o.width=c.width=n,o.height=c.height=a,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,c.format,n,a),i.profile&amp;&amp;(c.stats.size=yt[c.format]*c.width*c.height)),o},o._reglType=&quot;renderbuffer&quot;,o._renderbuffer=c,i.profile&amp;&amp;(o.stats=c.stats),o.destroy=function(){c.decRef()},o},clear:function(){Z(u).forEach(o)},restore:function(){Z(u).forEach((function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,e.renderbuffer),t.renderbufferStorage(36161,e.format,e.width,e.height)})),t.bindRenderbuffer(36161,null)}}},bt=[];bt[6408]=4,bt[6407]=3;var _t=[];_t[5121]=1,_t[5126]=4,_t[36193]=2;var wt=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;w&quot;],Tt=&quot;blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset&quot;.split(&quot; &quot;),kt={0:0,1:1,zero:0,one:1,&quot;src color&quot;:768,&quot;one minus src color&quot;:769,&quot;src alpha&quot;:770,&quot;one minus src alpha&quot;:771,&quot;dst color&quot;:774,&quot;one minus dst color&quot;:775,&quot;dst alpha&quot;:772,&quot;one minus dst alpha&quot;:773,&quot;constant color&quot;:32769,&quot;one minus constant color&quot;:32770,&quot;constant alpha&quot;:32771,&quot;one minus constant alpha&quot;:32772,&quot;src alpha saturate&quot;:776},Mt={never:512,less:513,&quot;&lt;&quot;:513,equal:514,&quot;=&quot;:514,&quot;==&quot;:514,&quot;===&quot;:514,lequal:515,&quot;&lt;=&quot;:515,greater:516,&quot;&gt;&quot;:516,notequal:517,&quot;!=&quot;:517,&quot;!==&quot;:517,gequal:518,&quot;&gt;=&quot;:518,always:519},At={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,&quot;increment wrap&quot;:34055,&quot;decrement wrap&quot;:34056,invert:5386},St={cw:2304,ccw:2305},Et=new D(!1,!1,!1,(function(){}));return function(t){function e(){if(0===J.length)w&amp;&amp;w.update(),tt=null;else{tt=H.next(e),f();for(var t=J.length-1;0&lt;=t;--t){var r=J[t];r&amp;&amp;r(I,null,0)}m.flush(),w&amp;&amp;w.update()}}function r(){!tt&amp;&amp;0&lt;J.length&amp;&amp;(tt=H.next(e))}function n(){tt&amp;&amp;(H.cancel(e),tt=null)}function a(t){t.preventDefault(),n(),K.forEach((function(t){t()}))}function o(t){m.getError(),y.restore(),R.restore(),z.restore(),F.restore(),B.restore(),V.restore(),O.restore(),w&amp;&amp;w.restore(),Y.procs.refresh(),r(),Q.forEach((function(t){t()}))}function s(t){function e(t){var e={},r={};return Object.keys(t).forEach((function(n){var i=t[n];q.isDynamic(i)?r[n]=q.unbox(i,n):e[n]=i})),{dynamic:r,static:e}}var r=e(t.context||{}),n=e(t.uniforms||{}),i=e(t.attributes||{}),a=e(function(t){function e(t){if(t in r){var e=r[t];delete r[t],Object.keys(e).forEach((function(n){r[t+&quot;.&quot;+n]=e[n]}))}}var r=U({},t);return delete r.uniforms,delete r.attributes,delete r.context,delete r.vao,&quot;stencil&quot;in r&amp;&amp;r.stencil.op&amp;&amp;(r.stencil.opBack=r.stencil.opFront=r.stencil.op,delete r.stencil.op),e(&quot;blend&quot;),e(&quot;depth&quot;),e(&quot;cull&quot;),e(&quot;stencil&quot;),e(&quot;polygonOffset&quot;),e(&quot;scissor&quot;),e(&quot;sample&quot;),&quot;vao&quot;in t&amp;&amp;(r.vao=t.vao),r}(t));t={gpuTime:0,cpuTime:0,count:0};var o=(r=Y.compile(a,i,n,r,t)).draw,s=r.batch,l=r.scope,c=[];return U((function(t,e){var r;if(&quot;function&quot;==typeof t)return l.call(this,null,t,0);if(&quot;function&quot;==typeof e)if(&quot;number&quot;==typeof t)for(r=0;r&lt;t;++r)l.call(this,null,e,r);else{if(!Array.isArray(t))return l.call(this,t,e,0);for(r=0;r&lt;t.length;++r)l.call(this,t[r],e,r)}else if(&quot;number&quot;==typeof t){if(0&lt;t)return s.call(this,function(t){for(;c.length&lt;t;)c.push(null);return c}(0|t),0|t)}else{if(!Array.isArray(t))return o.call(this,t);if(t.length)return s.call(this,t,t.length)}}),{stats:t})}function l(t,e){var r=0;Y.procs.poll();var n=e.color;n&amp;&amp;(m.clearColor(+n[0]||0,+n[1]||0,+n[2]||0,+n[3]||0),r|=16384),&quot;depth&quot;in e&amp;&amp;(m.clearDepth(+e.depth),r|=256),&quot;stencil&quot;in e&amp;&amp;(m.clearStencil(0|e.stencil),r|=1024),m.clear(r)}function c(t){return J.push(t),r(),{cancel:function(){var e=j(J,t);J[e]=function t(){var e=j(J,t);J[e]=J[J.length-1],--J.length,0&gt;=J.length&amp;&amp;n()}}}}function u(){var t=X.viewport,e=X.scissor_box;t[0]=t[1]=e[0]=e[1]=0,I.viewportWidth=I.framebufferWidth=I.drawingBufferWidth=t[2]=e[2]=m.drawingBufferWidth,I.viewportHeight=I.framebufferHeight=I.drawingBufferHeight=t[3]=e[3]=m.drawingBufferHeight}function f(){I.tick+=1,I.time=g(),u(),Y.procs.poll()}function h(){u(),Y.procs.refresh(),w&amp;&amp;w.update()}function g(){return(G()-T)/1e3}if(!(t=i(t)))return null;var m=t.gl,v=m.getContextAttributes();m.isContextLost();var y=function(t,e){function r(e){var r;e=e.toLowerCase();try{r=n[e]=t.getExtension(e)}catch(t){}return!!r}for(var n={},i=0;i&lt;e.extensions.length;++i){var a=e.extensions[i];if(!r(a))return e.onDestroy(),e.onDone('&quot;'+a+'&quot; extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return e.optionalExtensions.forEach(r),{extensions:n,restore:function(){Object.keys(n).forEach((function(t){if(n[t]&amp;&amp;!r(t))throw Error(&quot;(regl): error restoring extension &quot;+t)}))}}}(m,t);if(!y)return null;var x=function(){var t={&quot;&quot;:0},e=[&quot;&quot;];return{id:function(r){var n=t[r];return n||(n=t[r]=e.length,e.push(r),n)},str:function(t){return e[t]}}}(),b={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},_=y.extensions,w=function(t,e){function r(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function n(t,e,n){var i=o.pop()||new r;i.startQueryIndex=t,i.endQueryIndex=e,i.sum=0,i.stats=n,s.push(i)}if(!e.ext_disjoint_timer_query)return null;var i=[],a=[],o=[],s=[],l=[],c=[];return{beginQuery:function(t){var r=i.pop()||e.ext_disjoint_timer_query.createQueryEXT();e.ext_disjoint_timer_query.beginQueryEXT(35007,r),a.push(r),n(a.length-1,a.length,t)},endQuery:function(){e.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:n,update:function(){var t,r;if(0!==(t=a.length)){c.length=Math.max(c.length,t+1),l.length=Math.max(l.length,t+1),l[0]=0;var n=c[0]=0;for(r=t=0;r&lt;a.length;++r){var u=a[r];e.ext_disjoint_timer_query.getQueryObjectEXT(u,34919)?(n+=e.ext_disjoint_timer_query.getQueryObjectEXT(u,34918),i.push(u)):a[t++]=u,l[r+1]=n,c[r+1]=t}for(a.length=t,r=t=0;r&lt;s.length;++r){var f=(n=s[r]).startQueryIndex;u=n.endQueryIndex;n.sum+=l[u]-l[f],f=c[f],(u=c[u])===f?(n.stats.gpuTime+=n.sum/1e6,o.push(n)):(n.startQueryIndex=f,n.endQueryIndex=u,s[t++]=n)}s.length=t}},getNumPendingQueries:function(){return a.length},clear:function(){i.push.apply(i,a);for(var t=0;t&lt;i.length;t++)e.ext_disjoint_timer_query.deleteQueryEXT(i[t]);a.length=0,i.length=0},restore:function(){a.length=0,i.length=0}}}(0,_),T=G(),A=m.drawingBufferWidth,L=m.drawingBufferHeight,I={tick:0,time:0,viewportWidth:A,viewportHeight:L,framebufferWidth:A,framebufferHeight:L,drawingBufferWidth:A,drawingBufferHeight:L,pixelRatio:t.pixelRatio},P=W(m,_),z=p(m,b,t,(function(t){return O.destroyBuffer(t)})),O=S(m,_,P,b,z),D=d(m,_,z,b),R=E(m,x,b,t),F=k(m,_,P,(function(){Y.procs.poll()}),I,b,t),B=xt(m,_,0,b,t),V=M(m,_,P,F,B,b),Y=N(m,x,_,P,z,D,0,V,{},O,R,{elements:null,primitive:4,count:-1,offset:0,instances:-1},I,w,t),X=(x=C(m,V,Y.procs.poll,I),Y.next),Z=m.canvas,J=[],K=[],Q=[],$=[t.onDestroy],tt=null;Z&amp;&amp;(Z.addEventListener(&quot;webglcontextlost&quot;,a,!1),Z.addEventListener(&quot;webglcontextrestored&quot;,o,!1));var et=V.setFBO=s({framebuffer:q.define.call(null,1,&quot;framebuffer&quot;)});return h(),v=U(s,{clear:function(t){if(&quot;framebuffer&quot;in t)if(t.framebuffer&amp;&amp;&quot;framebufferCube&quot;===t.framebuffer_reglType)for(var e=0;6&gt;e;++e)et(U({framebuffer:t.framebuffer.faces[e]},t),l);else et(t,l);else l(0,t)},prop:q.define.bind(null,1),context:q.define.bind(null,2),this:q.define.bind(null,3),draw:s({}),buffer:function(t){return z.create(t,34962,!1,!1)},elements:function(t){return D.create(t,!1)},texture:F.create2D,cube:F.createCube,renderbuffer:B.create,framebuffer:V.create,framebufferCube:V.createCube,vao:O.createVAO,attributes:v,frame:c,on:function(t,e){var r;switch(t){case&quot;frame&quot;:return c(e);case&quot;lost&quot;:r=K;break;case&quot;restore&quot;:r=Q;break;case&quot;destroy&quot;:r=$}return r.push(e),{cancel:function(){for(var t=0;t&lt;r.length;++t)if(r[t]===e){r[t]=r[r.length-1],r.pop();break}}}},limits:P,hasExtension:function(t){return 0&lt;=P.extensions.indexOf(t.toLowerCase())},read:x,destroy:function(){J.length=0,n(),Z&amp;&amp;(Z.removeEventListener(&quot;webglcontextlost&quot;,a),Z.removeEventListener(&quot;webglcontextrestored&quot;,o)),R.clear(),V.clear(),B.clear(),F.clear(),D.clear(),z.clear(),O.clear(),w&amp;&amp;w.clear(),$.forEach((function(t){t()}))},_gl:m,_refresh:h,poll:function(){f(),w&amp;&amp;w.update()},now:g,stats:b}),t.onDone(null,v),v}}))},{}],541:[function(t,e,r){
/*!
 * repeat-string &lt;https://github.com/jonschlinkert/repeat-string&gt;
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */
&quot;use strict&quot;;var n,i=&quot;&quot;;e.exports=function(t,e){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;expected a string&quot;);if(1===e)return t;if(2===e)return t+t;var r=t.length*e;if(n!==t||&quot;undefined&quot;==typeof n)n=t,i=&quot;&quot;;else if(i.length&gt;=r)return i.substr(0,r);for(;r&gt;i.length&amp;&amp;e&gt;1;)1&amp;e&amp;&amp;(i+=t),e&gt;&gt;=1,t+=t;return i=(i+=t).substr(0,r)}},{}],542:[function(t,e,r){(function(t){(function(){e.exports=t.performance&amp;&amp;t.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{}],543:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=t[t.length-1],n=e,i=e-2;i&gt;=0;--i){var a=r,o=t[i];(l=o-((r=a+o)-a))&amp;&amp;(t[--n]=r,r=l)}var s=0;for(i=n;i&lt;e;++i){var l;a=t[i];(l=(o=r)-((r=a+o)-a))&amp;&amp;(t[s++]=l)}return t[s++]=r,t.length=s,t}},{}],544:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-scale&quot;),o=t(&quot;robust-compress&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m[&quot;,r,&quot;][&quot;,n,&quot;]&quot;].join(&quot;&quot;)}return e}function c(t){if(2===t.length)return[&quot;sum(prod(&quot;,t[0][0],&quot;,&quot;,t[1][1],&quot;),prod(-&quot;,t[0][1],&quot;,&quot;,t[1][0],&quot;))&quot;].join(&quot;&quot;);for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,c(s(t,r)),&quot;,&quot;,(n=r,1&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return function t(e){if(1===e.length)return e[0];if(2===e.length)return[&quot;sum(&quot;,e[0],&quot;,&quot;,e[1],&quot;)&quot;].join(&quot;&quot;);var r=e.length&gt;&gt;1;return[&quot;sum(&quot;,t(e.slice(0,r)),&quot;,&quot;,t(e.slice(r)),&quot;)&quot;].join(&quot;&quot;)}(e);var n}function u(t){return new Function(&quot;sum&quot;,&quot;scale&quot;,&quot;prod&quot;,&quot;compress&quot;,[&quot;function robustDeterminant&quot;,t,&quot;(m){return compress(&quot;,c(l(t)),&quot;)};return robustDeterminant&quot;,t].join(&quot;&quot;))(i,a,n,o)}var f=[function(){return[0]},function(t){return[t[0][0]]}];!function(){for(;f.length&lt;6;)f.push(u(f.length));for(var t=[],r=[&quot;function robustDeterminant(m){switch(m.length){&quot;],n=0;n&lt;6;++n)t.push(&quot;det&quot;+n),r.push(&quot;case &quot;,n,&quot;:return det&quot;,n,&quot;(m);&quot;);r.push(&quot;}var det=CACHE[m.length];if(!det)det=CACHE[m.length]=gen(m.length);return det(m);}return robustDeterminant&quot;),t.push(&quot;CACHE&quot;,&quot;gen&quot;,r.join(&quot;&quot;));var i=Function.apply(void 0,t);for(e.exports=i.apply(void 0,f.concat([f,u])),n=0;n&lt;f.length;++n)e.exports[n]=f[n]}()},{&quot;robust-compress&quot;:543,&quot;robust-scale&quot;:550,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],545:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;);e.exports=function(t,e){for(var r=n(t[0],e[0]),a=1;a&lt;t.length;++a)r=i(r,n(t[a],e[a]));return r}},{&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],546:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-subtract&quot;),o=t(&quot;robust-scale&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){if(1===t.length)return t[0];if(2===t.length)return[&quot;sum(&quot;,t[0],&quot;,&quot;,t[1],&quot;)&quot;].join(&quot;&quot;);var e=t.length&gt;&gt;1;return[&quot;sum(&quot;,l(t.slice(0,e)),&quot;,&quot;,l(t.slice(e)),&quot;)&quot;].join(&quot;&quot;)}function c(t,e){if(&quot;m&quot;===t.charAt(0)){if(&quot;w&quot;===e.charAt(0)){var r=t.split(&quot;[&quot;);return[&quot;w&quot;,e.substr(1),&quot;m&quot;,r[0].substr(1)].join(&quot;&quot;)}return[&quot;prod(&quot;,t,&quot;,&quot;,e,&quot;)&quot;].join(&quot;&quot;)}return c(e,t)}function u(t){if(2===t.length)return[[&quot;diff(&quot;,c(t[0][0],t[1][1]),&quot;,&quot;,c(t[1][0],t[0][1]),&quot;)&quot;].join(&quot;&quot;)];for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,l(u(s(t,r))),&quot;,&quot;,(n=r,!0&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return e;var n}function f(t,e){for(var r=[],n=0;n&lt;e-2;++n)r.push([&quot;prod(m&quot;,t,&quot;[&quot;,n,&quot;],m&quot;,t,&quot;[&quot;,n,&quot;])&quot;].join(&quot;&quot;));return l(r)}function h(t){for(var e=[],r=[],c=function(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m&quot;,n,&quot;[&quot;,t-r-2,&quot;]&quot;].join(&quot;&quot;)}return e}(t),h=0;h&lt;t;++h)c[0][h]=&quot;1&quot;,c[t-1][h]=&quot;w&quot;+h;for(h=0;h&lt;t;++h)0==(1&amp;h)?e.push.apply(e,u(s(c,h))):r.push.apply(r,u(s(c,h)));var p=l(e),d=l(r),g=&quot;exactInSphere&quot;+t,m=[];for(h=0;h&lt;t;++h)m.push(&quot;m&quot;+h);var v=[&quot;function &quot;,g,&quot;(&quot;,m.join(),&quot;){&quot;];for(h=0;h&lt;t;++h){v.push(&quot;var w&quot;,h,&quot;=&quot;,f(h,t),&quot;;&quot;);for(var y=0;y&lt;t;++y)y!==h&amp;&amp;v.push(&quot;var w&quot;,h,&quot;m&quot;,y,&quot;=scale(w&quot;,h,&quot;,m&quot;,y,&quot;[0]);&quot;)}return v.push(&quot;var p=&quot;,p,&quot;,n=&quot;,d,&quot;,d=diff(p,n);return d[d.length-1];}return &quot;,g),new Function(&quot;sum&quot;,&quot;diff&quot;,&quot;prod&quot;,&quot;scale&quot;,v.join(&quot;&quot;))(i,a,n,o)}var p=[function(){return 0},function(){return 0},function(){return 0}];function d(t){var e=p[t.length];return e||(e=p[t.length]=h(t.length)),e.apply(void 0,t)}!function(){for(;p.length&lt;=6;)p.push(h(p.length));for(var t=[],r=[&quot;slow&quot;],n=0;n&lt;=6;++n)t.push(&quot;a&quot;+n),r.push(&quot;o&quot;+n);var i=[&quot;function testInSphere(&quot;,t.join(),&quot;){switch(arguments.length){case 0:case 1:return 0;&quot;];for(n=2;n&lt;=6;++n)i.push(&quot;case &quot;,n,&quot;:return o&quot;,n,&quot;(&quot;,t.slice(0,n).join(),&quot;);&quot;);i.push(&quot;}var s=new Array(arguments.length);for(var i=0;i&lt;arguments.length;++i){s[i]=arguments[i]};return slow(s);}return testInSphere&quot;),r.push(i.join(&quot;&quot;));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[d].concat(p)),n=0;n&lt;=6;++n)e.exports[n]=p[n]}()},{&quot;robust-scale&quot;:550,&quot;robust-subtract&quot;:552,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],547:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-determinant&quot;);function i(t){for(var e=&quot;robustLinearSolve&quot;+t+&quot;d&quot;,r=[&quot;function &quot;,e,&quot;(A,b){return [&quot;],i=0;i&lt;t;++i){r.push(&quot;det([&quot;);for(var a=0;a&lt;t;++a){a&gt;0&amp;&amp;r.push(&quot;,&quot;),r.push(&quot;[&quot;);for(var o=0;o&lt;t;++o)o&gt;0&amp;&amp;r.push(&quot;,&quot;),o===i?r.push(&quot;+b[&quot;,a,&quot;]&quot;):r.push(&quot;+A[&quot;,a,&quot;][&quot;,o,&quot;]&quot;);r.push(&quot;]&quot;)}r.push(&quot;]),&quot;)}r.push(&quot;det(A)]}return &quot;,e);var s=new Function(&quot;det&quot;,r.join(&quot;&quot;));return s(t&lt;6?n[t]:n)}var a=[function(){return[0]},function(t,e){return[[e[0]],[t[0][0]]]}];!function(){for(;a.length&lt;6;)a.push(i(a.length));for(var t=[],r=[&quot;function dispatchLinearSolve(A,b){switch(A.length){&quot;],n=0;n&lt;6;++n)t.push(&quot;s&quot;+n),r.push(&quot;case &quot;,n,&quot;:return s&quot;,n,&quot;(A,b);&quot;);r.push(&quot;}var s=CACHE[A.length];if(!s)s=CACHE[A.length]=g(A.length);return s(A,b)}return dispatchLinearSolve&quot;),t.push(&quot;CACHE&quot;,&quot;g&quot;,r.join(&quot;&quot;));var o=Function.apply(void 0,t);for(e.exports=o.apply(void 0,a.concat([a,i])),n=0;n&lt;6;++n)e.exports[n]=a[n]}()},{&quot;robust-determinant&quot;:544}],548:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-scale&quot;),o=t(&quot;robust-subtract&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){if(1===t.length)return t[0];if(2===t.length)return[&quot;sum(&quot;,t[0],&quot;,&quot;,t[1],&quot;)&quot;].join(&quot;&quot;);var e=t.length&gt;&gt;1;return[&quot;sum(&quot;,l(t.slice(0,e)),&quot;,&quot;,l(t.slice(e)),&quot;)&quot;].join(&quot;&quot;)}function c(t){if(2===t.length)return[[&quot;sum(prod(&quot;,t[0][0],&quot;,&quot;,t[1][1],&quot;),prod(-&quot;,t[0][1],&quot;,&quot;,t[1][0],&quot;))&quot;].join(&quot;&quot;)];for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,l(c(s(t,r))),&quot;,&quot;,(n=r,1&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return e;var n}function u(t){for(var e=[],r=[],u=function(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m&quot;,n,&quot;[&quot;,t-r-1,&quot;]&quot;].join(&quot;&quot;)}return e}(t),f=[],h=0;h&lt;t;++h)0==(1&amp;h)?e.push.apply(e,c(s(u,h))):r.push.apply(r,c(s(u,h))),f.push(&quot;m&quot;+h);var p=l(e),d=l(r),g=&quot;orientation&quot;+t+&quot;Exact&quot;,m=[&quot;function &quot;,g,&quot;(&quot;,f.join(),&quot;){var p=&quot;,p,&quot;,n=&quot;,d,&quot;,d=sub(p,n);return d[d.length-1];};return &quot;,g].join(&quot;&quot;);return new Function(&quot;sum&quot;,&quot;prod&quot;,&quot;scale&quot;,&quot;sub&quot;,m)(i,n,a,o)}var f=u(3),h=u(4),p=[function(){return 0},function(){return 0},function(t,e){return e[0]-t[0]},function(t,e,r){var n,i=(t[1]-r[1])*(e[0]-r[0]),a=(t[0]-r[0])*(e[1]-r[1]),o=i-a;if(i&gt;0){if(a&lt;=0)return o;n=i+a}else{if(!(i&lt;0))return o;if(a&gt;=0)return o;n=-(i+a)}var s=33306690738754716e-32*n;return o&gt;=s||o&lt;=-s?o:f(t,e,r)},function(t,e,r,n){var i=t[0]-n[0],a=e[0]-n[0],o=r[0]-n[0],s=t[1]-n[1],l=e[1]-n[1],c=r[1]-n[1],u=t[2]-n[2],f=e[2]-n[2],p=r[2]-n[2],d=a*c,g=o*l,m=o*s,v=i*c,y=i*l,x=a*s,b=u*(d-g)+f*(m-v)+p*(y-x),_=7771561172376103e-31*((Math.abs(d)+Math.abs(g))*Math.abs(u)+(Math.abs(m)+Math.abs(v))*Math.abs(f)+(Math.abs(y)+Math.abs(x))*Math.abs(p));return b&gt;_||-b&gt;_?b:h(t,e,r,n)}];function d(t){var e=p[t.length];return e||(e=p[t.length]=u(t.length)),e.apply(void 0,t)}!function(){for(;p.length&lt;=5;)p.push(u(p.length));for(var t=[],r=[&quot;slow&quot;],n=0;n&lt;=5;++n)t.push(&quot;a&quot;+n),r.push(&quot;o&quot;+n);var i=[&quot;function getOrientation(&quot;,t.join(),&quot;){switch(arguments.length){case 0:case 1:return 0;&quot;];for(n=2;n&lt;=5;++n)i.push(&quot;case &quot;,n,&quot;:return o&quot;,n,&quot;(&quot;,t.slice(0,n).join(),&quot;);&quot;);i.push(&quot;}var s=new Array(arguments.length);for(var i=0;i&lt;arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation&quot;),r.push(i.join(&quot;&quot;));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[d].concat(p)),n=0;n&lt;=5;++n)e.exports[n]=p[n]}()},{&quot;robust-scale&quot;:550,&quot;robust-subtract&quot;:552,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],549:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-sum&quot;),i=t(&quot;robust-scale&quot;);e.exports=function(t,e){if(1===t.length)return i(e,t[0]);if(1===e.length)return i(t,e[0]);if(0===t.length||0===e.length)return[0];var r=[0];if(t.length&lt;e.length)for(var a=0;a&lt;t.length;++a)r=n(r,i(e,t[a]));else for(a=0;a&lt;e.length;++a)r=n(r,i(t,e[a]));return r}},{&quot;robust-scale&quot;:550,&quot;robust-sum&quot;:553}],550:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;two-sum&quot;);e.exports=function(t,e){var r=t.length;if(1===r){var a=n(t[0],e);return a[0]?a:[a[1]]}var o=new Array(2*r),s=[.1,.1],l=[.1,.1],c=0;n(t[0],e,s),s[0]&amp;&amp;(o[c++]=s[0]);for(var u=1;u&lt;r;++u){n(t[u],e,l);var f=s[1];i(f,l[0],s),s[0]&amp;&amp;(o[c++]=s[0]);var h=l[1],p=s[1],d=h+p,g=p-(d-h);s[1]=d,g&amp;&amp;(o[c++]=g)}s[1]&amp;&amp;(o[c++]=s[1]);0===c&amp;&amp;(o[c++]=0);return o.length=c,o}},{&quot;two-product&quot;:582,&quot;two-sum&quot;:583}],551:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,i){var a=n(t,r,i),o=n(e,r,i);if(a&gt;0&amp;&amp;o&gt;0||a&lt;0&amp;&amp;o&lt;0)return!1;var s=n(r,t,e),l=n(i,t,e);if(s&gt;0&amp;&amp;l&gt;0||s&lt;0&amp;&amp;l&lt;0)return!1;if(0===a&amp;&amp;0===o&amp;&amp;0===s&amp;&amp;0===l)return function(t,e,r,n){for(var i=0;i&lt;2;++i){var a=t[i],o=e[i],s=Math.min(a,o),l=Math.max(a,o),c=r[i],u=n[i],f=Math.min(c,u);if(Math.max(c,u)&lt;s||l&lt;f)return!1}return!0}(t,e,r,i);return!0};var n=t(&quot;robust-orientation&quot;)[3]},{&quot;robust-orientation&quot;:548}],552:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&amp;&amp;1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],-e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=-e[c],d=u(p);h&lt;d?(a=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(a=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p)));l&lt;r&amp;&amp;h&lt;d||c&gt;=n?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p)));var g,m,v=i+a,y=v-i,x=a-y,b=x,_=v;for(;l&lt;r&amp;&amp;c&lt;n;)h&lt;d?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p))),(x=(a=b)-(y=(v=i+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g;for(;l&lt;r;)(x=(a=b)-(y=(v=(i=f)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(l+=1)&lt;r&amp;&amp;(f=t[l]);for(;c&lt;n;)(x=(a=b)-(y=(v=(i=p)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(c+=1)&lt;n&amp;&amp;(p=-e[c]);b&amp;&amp;(o[s++]=b);_&amp;&amp;(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],553:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&amp;&amp;1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=e[c],d=u(p);h&lt;d?(a=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(a=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p)));l&lt;r&amp;&amp;h&lt;d||c&gt;=n?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p)));var g,m,v=i+a,y=v-i,x=a-y,b=x,_=v;for(;l&lt;r&amp;&amp;c&lt;n;)h&lt;d?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p))),(x=(a=b)-(y=(v=i+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g;for(;l&lt;r;)(x=(a=b)-(y=(v=(i=f)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(l+=1)&lt;r&amp;&amp;(f=t[l]);for(;c&lt;n;)(x=(a=b)-(y=(v=(i=p)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(c+=1)&lt;n&amp;&amp;(p=e[c]);b&amp;&amp;(o[s++]=b);_&amp;&amp;(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],554:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t&lt;0?-1:t&gt;0?1:0}},{}],555:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return i(n(t))};var n=t(&quot;boundary-cells&quot;),i=t(&quot;reduce-simplicial-complex&quot;)},{&quot;boundary-cells&quot;:100,&quot;reduce-simplicial-complex&quot;:533}],556:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,s){r=r||0,&quot;undefined&quot;==typeof s&amp;&amp;(s=function(t){for(var e=t.length,r=0,n=0;n&lt;e;++n)r=0|Math.max(r,t[n].length);return r-1}(t));if(0===t.length||s&lt;1)return{cells:[],vertexIds:[],vertexWeights:[]};var l=function(t,e){for(var r=t.length,n=i.mallocUint8(r),a=0;a&lt;r;++a)n[a]=t[a]&lt;e|0;return n}(e,+r),c=function(t,e){for(var r=t.length,o=e*(e+1)/2*r|0,s=i.mallocUint32(2*o),l=0,c=0;c&lt;r;++c)for(var u=t[c],f=(e=u.length,0);f&lt;e;++f)for(var h=0;h&lt;f;++h){var p=u[h],d=u[f];s[l++]=0|Math.min(p,d),s[l++]=0|Math.max(p,d)}a(n(s,[l/2|0,2]));var g=2;for(c=2;c&lt;l;c+=2)s[c-2]===s[c]&amp;&amp;s[c-1]===s[c+1]||(s[g++]=s[c],s[g++]=s[c+1]);return n(s,[g/2|0,2])}(t,s),u=function(t,e,r,a){for(var o=t.data,s=t.shape[0],l=i.mallocDouble(s),c=0,u=0;u&lt;s;++u){var f=o[2*u],h=o[2*u+1];if(r[f]!==r[h]){var p=e[f],d=e[h];o[2*c]=f,o[2*c+1]=h,l[c++]=(d-a)/(d-p)}}return t.shape[0]=c,n(l,[c])}(c,e,l,+r),f=function(t,e){var r=i.mallocInt32(2*e),n=t.shape[0],a=t.data;r[0]=0;for(var o=0,s=0;s&lt;n;++s){var l=a[2*s];if(l!==o){for(r[2*o+1]=s;++o&lt;l;)r[2*o]=s,r[2*o+1]=s;r[2*o]=s}}r[2*o+1]=n;for(;++o&lt;e;)r[2*o]=r[2*o+1]=n;return r}(c,0|e.length),h=o(s)(t,c.data,f,l),p=function(t){for(var e=0|t.shape[0],r=t.data,n=new Array(e),i=0;i&lt;e;++i)n[i]=[r[2*i],r[2*i+1]];return n}(c),d=[].slice.call(u.data,0,u.shape[0]);return i.free(l),i.free(c.data),i.free(u.data),i.free(f),{cells:h,vertexIds:p,vertexWeights:d}};var n=t(&quot;ndarray&quot;),i=t(&quot;typedarray-pool&quot;),a=t(&quot;ndarray-sort&quot;),o=t(&quot;./lib/codegen&quot;)},{&quot;./lib/codegen&quot;:557,ndarray:495,&quot;ndarray-sort&quot;:494,&quot;typedarray-pool&quot;:595}],557:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=a[t];e||(e=a[t]=function(t){var e=0,r=new Array(t+1);r[0]=[[]];for(var a=1;a&lt;=t;++a)for(var o=r[a]=i(a),s=0;s&lt;o.length;++s)e=Math.max(e,o[a].length);var l=[&quot;function B(C,E,i,j){&quot;,&quot;var a=Math.min(i,j)|0,b=Math.max(i,j)|0,l=C[2*a],h=C[2*a+1];&quot;,&quot;while(l&lt;h){&quot;,&quot;var m=(l+h)&gt;&gt;1,v=E[2*m+1];&quot;,&quot;if(v===b){return m}&quot;,&quot;if(b&lt;v){h=m}else{l=m+1}&quot;,&quot;}&quot;,&quot;return l;&quot;,&quot;};&quot;,&quot;function getContour&quot;,t,&quot;d(F,E,C,S){&quot;,&quot;var n=F.length,R=[];&quot;,&quot;for(var i=0;i&lt;n;++i){var c=F[i],l=c.length;&quot;];function c(t){if(!(t.length&lt;=0)){l.push(&quot;R.push(&quot;);for(var e=0;e&lt;t.length;++e){var r=t[e];e&gt;0&amp;&amp;l.push(&quot;,&quot;),l.push(&quot;[&quot;);for(var n=0;n&lt;r.length;++n){var i=r[n];n&gt;0&amp;&amp;l.push(&quot;,&quot;),l.push(&quot;B(C,E,c[&quot;,i[0],&quot;],c[&quot;,i[1],&quot;])&quot;)}l.push(&quot;]&quot;)}l.push(&quot;);&quot;)}}for(a=t+1;a&gt;1;--a){a&lt;t+1&amp;&amp;l.push(&quot;else &quot;),l.push(&quot;if(l===&quot;,a,&quot;){&quot;);var u=[];for(s=0;s&lt;a;++s)u.push(&quot;(S[c[&quot;+s+&quot;]]&lt;&lt;&quot;+s+&quot;)&quot;);l.push(&quot;var M=&quot;,u.join(&quot;+&quot;),&quot;;if(M===0||M===&quot;,(1&lt;&lt;a)-1,&quot;){continue}switch(M){&quot;);for(o=r[a-1],s=0;s&lt;o.length;++s)l.push(&quot;case &quot;,s,&quot;:&quot;),c(o[s]),l.push(&quot;break;&quot;);l.push(&quot;}}&quot;)}return l.push(&quot;}return R;};return getContour&quot;,t,&quot;d&quot;),new Function(&quot;pool&quot;,l.join(&quot;&quot;))(n)}(t));return e};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;marching-simplex-table&quot;),a={}},{&quot;marching-simplex-table&quot;:474,&quot;typedarray-pool&quot;:595}],558:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bit-twiddle&quot;),i=t(&quot;union-find&quot;);function a(t,e){var r=t.length,n=t.length-e.length,i=Math.min;if(n)return n;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return(s=t[0]+t[1]-e[0]-e[1])||i(t[0],t[1])-i(e[0],e[1]);case 3:var a=t[0]+t[1],o=e[0]+e[1];if(s=a+t[2]-(o+e[2]))return s;var s,l=i(t[0],t[1]),c=i(e[0],e[1]);return(s=i(l,t[2])-i(c,e[2]))||i(l+t[2],a)-i(c+e[2],o);default:var u=t.slice(0);u.sort();var f=e.slice(0);f.sort();for(var h=0;h&lt;r;++h)if(n=u[h]-f[h])return n;return 0}}function o(t,e){return a(t[0],e[0])}function s(t,e){if(e){for(var r=t.length,n=new Array(r),i=0;i&lt;r;++i)n[i]=[t[i],e[i]];n.sort(o);for(i=0;i&lt;r;++i)t[i]=n[i][0],e[i]=n[i][1];return t}return t.sort(a),t}function l(t){if(0===t.length)return[];for(var e=1,r=t.length,n=1;n&lt;r;++n){var i=t[n];if(a(i,t[n-1])){if(n===e){e++;continue}t[e++]=i}}return t.length=e,t}function c(t,e){for(var r=0,n=t.length-1,i=-1;r&lt;=n;){var o=r+n&gt;&gt;1,s=a(t[o],e);s&lt;=0?(0===s&amp;&amp;(i=o),r=o+1):s&gt;0&amp;&amp;(n=o-1)}return i}function u(t,e){for(var r=new Array(t.length),i=0,o=r.length;i&lt;o;++i)r[i]=[];for(var s=[],l=(i=0,e.length);i&lt;l;++i)for(var u=e[i],f=u.length,h=1,p=1&lt;&lt;f;h&lt;p;++h){s.length=n.popCount(h);for(var d=0,g=0;g&lt;f;++g)h&amp;1&lt;&lt;g&amp;&amp;(s[d++]=u[g]);var m=c(t,s);if(!(m&lt;0))for(;r[m++].push(i),!(m&gt;=t.length||0!==a(t[m],s)););}return r}function f(t,e){if(e&lt;0)return[];for(var r=[],i=(1&lt;&lt;e+1)-1,a=0;a&lt;t.length;++a)for(var o=t[a],l=i;l&lt;1&lt;&lt;o.length;l=n.nextCombination(l)){for(var c=new Array(e+1),u=0,f=0;f&lt;o.length;++f)l&amp;1&lt;&lt;f&amp;&amp;(c[u++]=o[f]);r.push(c)}return s(r)}r.dimension=function(t){for(var e=0,r=Math.max,n=0,i=t.length;n&lt;i;++n)e=r(e,t[n].length);return e-1},r.countVertices=function(t){for(var e=-1,r=Math.max,n=0,i=t.length;n&lt;i;++n)for(var a=t[n],o=0,s=a.length;o&lt;s;++o)e=r(e,a[o]);return e+1},r.cloneCells=function(t){for(var e=new Array(t.length),r=0,n=t.length;r&lt;n;++r)e[r]=t[r].slice(0);return e},r.compareCells=a,r.normalize=s,r.unique=l,r.findCell=c,r.incidence=u,r.dual=function(t,e){if(!e)return u(l(f(t,0)),t);for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=[];n=0;for(var i=t.length;n&lt;i;++n)for(var a=t[n],o=0,s=a.length;o&lt;s;++o)r[a[o]].push(n);return r},r.explode=function(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0|i.length,o=1,l=1&lt;&lt;a;o&lt;l;++o){for(var c=[],u=0;u&lt;a;++u)o&gt;&gt;&gt;u&amp;1&amp;&amp;c.push(i[u]);e.push(c)}return s(e)},r.skeleton=f,r.boundary=function(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;++a){for(var l=new Array(i.length-1),c=0,u=0;c&lt;o;++c)c!==a&amp;&amp;(l[u++]=i[c]);e.push(l)}return s(e)},r.connectedComponents=function(t,e){return e?function(t,e){for(var r=new i(e),n=0;n&lt;t.length;++n)for(var a=t[n],o=0;o&lt;a.length;++o)for(var s=o+1;s&lt;a.length;++s)r.link(a[o],a[s]);var l=[],c=r.ranks;for(n=0;n&lt;c.length;++n)c[n]=-1;for(n=0;n&lt;t.length;++n){var u=r.find(t[n][0]);c[u]&lt;0?(c[u]=l.length,l.push([t[n].slice(0)])):l[c[u]].push(t[n].slice(0))}return l}(t,e):function(t){for(var e=l(s(f(t,0))),r=new i(e.length),n=0;n&lt;t.length;++n)for(var a=t[n],o=0;o&lt;a.length;++o)for(var u=c(e,[a[o]]),h=o+1;h&lt;a.length;++h)r.link(u,c(e,[a[h]]));var p=[],d=r.ranks;for(n=0;n&lt;d.length;++n)d[n]=-1;for(n=0;n&lt;t.length;++n){var g=r.find(c(e,[t[n][0]]));d[g]&lt;0?(d[g]=p.length,p.push([t[n].slice(0)])):p[d[g]].push(t[n].slice(0))}return p}(t)}},{&quot;bit-twiddle&quot;:97,&quot;union-find&quot;:596}],559:[function(t,e,r){arguments[4][97][0].apply(r,arguments)},{dup:97}],560:[function(t,e,r){arguments[4][558][0].apply(r,arguments)},{&quot;bit-twiddle&quot;:559,dup:558,&quot;union-find&quot;:561}],561:[function(t,e,r){&quot;use strict&quot;;function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e&lt;t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n,n.prototype.length=function(){return this.roots.length},n.prototype.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},n.prototype.find=function(t){for(var e=this.roots;e[t]!==t;){var r=e[t];e[t]=e[r],t=r}return t},n.prototype.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o&lt;s?a[r]=n:s&lt;o?a[n]=r:(a[n]=r,++i[r])}}},{}],562:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){for(var a=e.length,o=t.length,s=new Array(a),l=new Array(a),c=new Array(a),u=new Array(a),f=0;f&lt;a;++f)s[f]=l[f]=-1,c[f]=1/0,u[f]=!1;for(f=0;f&lt;o;++f){var h=t[f];if(2!==h.length)throw new Error(&quot;Input must be a graph&quot;);var p=h[1],d=h[0];-1!==l[d]?l[d]=-2:l[d]=p,-1!==s[p]?s[p]=-2:s[p]=d}function g(t){if(u[t])return 1/0;var r,i,a,o,c,f=s[t],h=l[t];return f&lt;0||h&lt;0?1/0:(r=e[t],i=e[f],a=e[h],o=Math.abs(n(r,i,a)),c=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)),o/c)}function m(t,e){var r=k[t],n=k[e];k[t]=n,k[e]=r,M[r]=e,M[n]=t}function v(t){return c[k[t]]}function y(t){return 1&amp;t?t-1&gt;&gt;1:(t&gt;&gt;1)-1}function x(t){for(var e=v(t);;){var r=e,n=2*t+1,i=2*(t+1),a=t;if(n&lt;A){var o=v(n);o&lt;r&amp;&amp;(a=n,r=o)}if(i&lt;A)v(i)&lt;r&amp;&amp;(a=i);if(a===t)return t;m(t,a),t=a}}function b(t){for(var e=v(t);t&gt;0;){var r=y(t);if(r&gt;=0)if(e&lt;v(r)){m(t,r),t=r;continue}return t}}function _(){if(A&gt;0){var t=k[0];return m(0,A-1),A-=1,x(0),t}return-1}function w(t,e){var r=k[t];return c[r]===e?t:(c[r]=-1/0,b(t),_(),c[r]=e,b((A+=1)-1))}function T(t){if(!u[t]){u[t]=!0;var e=s[t],r=l[t];s[r]&gt;=0&amp;&amp;(s[r]=e),l[e]&gt;=0&amp;&amp;(l[e]=r),M[e]&gt;=0&amp;&amp;w(M[e],g(e)),M[r]&gt;=0&amp;&amp;w(M[r],g(r))}}var k=[],M=new Array(a);for(f=0;f&lt;a;++f){(c[f]=g(f))&lt;1/0?(M[f]=k.length,k.push(f)):M[f]=-1}var A=k.length;for(f=A&gt;&gt;1;f&gt;=0;--f)x(f);for(;;){var S=_();if(S&lt;0||c[S]&gt;r)break;T(S)}var E=[];for(f=0;f&lt;a;++f)u[f]||(M[f]=E.length,E.push(e[f].slice()));E.length;function C(t,e){if(t[e]&lt;0)return e;var r=e,n=e;do{var i=t[n];if(!u[n]||i&lt;0||i===n)break;if(i=t[n=i],!u[n]||i&lt;0||i===n)break;n=i,r=t[r]}while(r!==n);for(var a=e;a!==n;a=t[a])t[a]=n;return n}var L=[];return t.forEach((function(t){var e=C(s,t[0]),r=C(l,t[1]);if(e&gt;=0&amp;&amp;r&gt;=0&amp;&amp;e!==r){var n=M[e],i=M[r];n!==i&amp;&amp;L.push([n,i])}})),i.unique(i.normalize(L)),{positions:E,edges:L}};var n=t(&quot;robust-orientation&quot;),i=t(&quot;simplicial-complex&quot;)},{&quot;robust-orientation&quot;:548,&quot;simplicial-complex&quot;:560}],563:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,a,o,s;if(e[0][0]&lt;e[1][0])r=e[0],a=e[1];else{if(!(e[0][0]&gt;e[1][0]))return i(e,t);r=e[1],a=e[0]}if(t[0][0]&lt;t[1][0])o=t[0],s=t[1];else{if(!(t[0][0]&gt;t[1][0]))return-i(t,e);o=t[1],s=t[0]}var l=n(r,a,s),c=n(r,a,o);if(l&lt;0){if(c&lt;=0)return l}else if(l&gt;0){if(c&gt;=0)return l}else if(c)return c;if(l=n(s,o,a),c=n(s,o,r),l&lt;0){if(c&lt;=0)return l}else if(l&gt;0){if(c&gt;=0)return l}else if(c)return c;return a[0]-s[0]};var n=t(&quot;robust-orientation&quot;);function i(t,e){var r,i,a,o;if(e[0][0]&lt;e[1][0])r=e[0],i=e[1];else{if(!(e[0][0]&gt;e[1][0])){var s=Math.min(t[0][1],t[1][1]),l=Math.max(t[0][1],t[1][1]),c=Math.min(e[0][1],e[1][1]),u=Math.max(e[0][1],e[1][1]);return l&lt;c?l-c:s&gt;u?s-u:l-u}r=e[1],i=e[0]}t[0][1]&lt;t[1][1]?(a=t[0],o=t[1]):(a=t[1],o=t[0]);var f=n(i,r,a);return f||((f=n(i,r,o))||o-i)}},{&quot;robust-orientation&quot;:548}],564:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],565:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=2*e,n=new Array(r),a=0;a&lt;e;++a){var l=t[a],c=l[0][0]&lt;l[1][0];n[2*a]=new f(l[0][0],l,c,a),n[2*a+1]=new f(l[1][0],l,!c,a)}n.sort((function(t,e){var r=t.x-e.x;return r||((r=t.create-e.create)||Math.min(t.segment[0][1],t.segment[1][1])-Math.min(e.segment[0][1],e.segment[1][1]))}));var h=i(o),p=[],d=[],g=[];for(a=0;a&lt;r;){for(var m=n[a].x,v=[];a&lt;r;){var y=n[a];if(y.x!==m)break;a+=1,y.segment[0][0]===y.x&amp;&amp;y.segment[1][0]===y.x?y.create&amp;&amp;(y.segment[0][1]&lt;y.segment[1][1]?(v.push(new u(y.segment[0][1],y.index,!0,!0)),v.push(new u(y.segment[1][1],y.index,!1,!1))):(v.push(new u(y.segment[1][1],y.index,!0,!1)),v.push(new u(y.segment[0][1],y.index,!1,!0)))):h=y.create?h.insert(y.segment,y.index):h.remove(y.segment)}p.push(h.root),d.push(m),g.push(v)}return new s(p,d,g)};var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;functional-red-black-tree&quot;),a=t(&quot;robust-orientation&quot;),o=t(&quot;./lib/order-segments&quot;);function s(t,e,r){this.slabs=t,this.coordinates=e,this.horizontal=r}function l(t,e){return t.y-e}function c(t,e){for(var r=null;t;){var n,i,o=t.key;o[0][0]&lt;o[1][0]?(n=o[0],i=o[1]):(n=o[1],i=o[0]);var s=a(n,i,e);if(s&lt;0)t=t.left;else if(s&gt;0)if(e[0]!==o[1][0])r=t,t=t.right;else{if(l=c(t.right,e))return l;t=t.left}else{if(e[0]!==o[1][0])return t;var l;if(l=c(t.right,e))return l;t=t.left}}return r}function u(t,e,r,n){this.y=t,this.index=e,this.start=r,this.closed=n}function f(t,e,r,n){this.x=t,this.segment=e,this.create=r,this.index=n}s.prototype.castUp=function(t){var e=n.le(this.coordinates,t[0]);if(e&lt;0)return-1;this.slabs[e];var r=c(this.slabs[e],t),i=-1;if(r&amp;&amp;(i=r.value),this.coordinates[e]===t[0]){var s=null;if(r&amp;&amp;(s=r.key),e&gt;0){var u=c(this.slabs[e-1],t);u&amp;&amp;(s?o(u.key,s)&gt;0&amp;&amp;(s=u.key,i=u.value):(i=u.value,s=u.key))}var f=this.horizontal[e];if(f.length&gt;0){var h=n.ge(f,t[1],l);if(h&lt;f.length){var p=f[h];if(t[1]===p.y){if(p.closed)return p.index;for(;h&lt;f.length-1&amp;&amp;f[h+1].y===t[1];)if((p=f[h+=1]).closed)return p.index;if(p.y===t[1]&amp;&amp;!p.start){if((h+=1)&gt;=f.length)return i;p=f[h]}}if(p.start)if(s){var d=a(s[0],s[1],[t[0],p.y]);s[0][0]&gt;s[1][0]&amp;&amp;(d=-d),d&gt;0&amp;&amp;(i=p.index)}else i=p.index;else p.y!==t[1]&amp;&amp;(i=p.index)}}}return i}},{&quot;./lib/order-segments&quot;:563,&quot;binary-search-bounds&quot;:564,&quot;functional-red-black-tree&quot;:247,&quot;robust-orientation&quot;:548}],566:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-dot-product&quot;),i=t(&quot;robust-sum&quot;);function a(t,e){var r=i(n(t,e),[e[e.length-1]]);return r[r.length-1]}function o(t,e,r,n){var i=-e/(n-e);i&lt;0?i=0:i&gt;1&amp;&amp;(i=1);for(var a=1-i,o=t.length,s=new Array(o),l=0;l&lt;o;++l)s[l]=i*t[l]+a*r[l];return s}e.exports=function(t,e){for(var r=[],n=[],i=a(t[t.length-1],e),s=t[t.length-1],l=t[0],c=0;c&lt;t.length;++c,s=l){var u=a(l=t[c],e);if(i&lt;0&amp;&amp;u&gt;0||i&gt;0&amp;&amp;u&lt;0){var f=o(s,u,l,i);r.push(f),n.push(f.slice())}u&lt;0?n.push(l.slice()):u&gt;0?r.push(l.slice()):(r.push(l.slice()),n.push(l.slice())),i=u}return{positive:r,negative:n}},e.exports.positive=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l&lt;t.length;++l,i=s){var c=a(s=t[l],e);(n&lt;0&amp;&amp;c&gt;0||n&gt;0&amp;&amp;c&lt;0)&amp;&amp;r.push(o(i,c,s,n)),c&gt;=0&amp;&amp;r.push(s.slice()),n=c}return r},e.exports.negative=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l&lt;t.length;++l,i=s){var c=a(s=t[l],e);(n&lt;0&amp;&amp;c&gt;0||n&gt;0&amp;&amp;c&lt;0)&amp;&amp;r.push(o(i,c,s,n)),c&lt;=0&amp;&amp;r.push(s.slice()),n=c}return r}},{&quot;robust-dot-product&quot;:545,&quot;robust-sum&quot;:553}],567:[function(t,e,r){!function(){&quot;use strict&quot;;var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(t){return i(o(t),arguments)}function n(t,r){return e.apply(null,[t].concat(r||[]))}function i(r,n){var i,a,o,s,l,c,u,f,h,p=1,d=r.length,g=&quot;&quot;;for(a=0;a&lt;d;a++)if(&quot;string&quot;==typeof r[a])g+=r[a];else if(&quot;object&quot;==typeof r[a]){if((s=r[a]).keys)for(i=n[p],o=0;o&lt;s.keys.length;o++){if(null==i)throw new Error(e('[sprintf] Cannot access property &quot;%s&quot; of undefined value &quot;%s&quot;',s.keys[o],s.keys[o-1]));i=i[s.keys[o]]}else i=s.param_no?n[s.param_no]:n[p++];if(t.not_type.test(s.type)&amp;&amp;t.not_primitive.test(s.type)&amp;&amp;i instanceof Function&amp;&amp;(i=i()),t.numeric_arg.test(s.type)&amp;&amp;&quot;number&quot;!=typeof i&amp;&amp;isNaN(i))throw new TypeError(e(&quot;[sprintf] expecting number but found %T&quot;,i));switch(t.number.test(s.type)&amp;&amp;(f=i&gt;=0),s.type){case&quot;b&quot;:i=parseInt(i,10).toString(2);break;case&quot;c&quot;:i=String.fromCharCode(parseInt(i,10));break;case&quot;d&quot;:case&quot;i&quot;:i=parseInt(i,10);break;case&quot;j&quot;:i=JSON.stringify(i,null,s.width?parseInt(s.width):0);break;case&quot;e&quot;:i=s.precision?parseFloat(i).toExponential(s.precision):parseFloat(i).toExponential();break;case&quot;f&quot;:i=s.precision?parseFloat(i).toFixed(s.precision):parseFloat(i);break;case&quot;g&quot;:i=s.precision?String(Number(i.toPrecision(s.precision))):parseFloat(i);break;case&quot;o&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(8);break;case&quot;s&quot;:i=String(i),i=s.precision?i.substring(0,s.precision):i;break;case&quot;t&quot;:i=String(!!i),i=s.precision?i.substring(0,s.precision):i;break;case&quot;T&quot;:i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=s.precision?i.substring(0,s.precision):i;break;case&quot;u&quot;:i=parseInt(i,10)&gt;&gt;&gt;0;break;case&quot;v&quot;:i=i.valueOf(),i=s.precision?i.substring(0,s.precision):i;break;case&quot;x&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(16);break;case&quot;X&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(16).toUpperCase()}t.json.test(s.type)?g+=i:(!t.number.test(s.type)||f&amp;&amp;!s.sign?h=&quot;&quot;:(h=f?&quot;+&quot;:&quot;-&quot;,i=i.toString().replace(t.sign,&quot;&quot;)),c=s.pad_char?&quot;0&quot;===s.pad_char?&quot;0&quot;:s.pad_char.charAt(1):&quot; &quot;,u=s.width-(h+i).length,l=s.width&amp;&amp;u&gt;0?c.repeat(u):&quot;&quot;,g+=s.align?h+i+l:&quot;0&quot;===c?h+l+i:l+h+i)}return g}var a=Object.create(null);function o(e){if(a[e])return a[e];for(var r,n=e,i=[],o=0;n;){if(null!==(r=t.text.exec(n)))i.push(r[0]);else if(null!==(r=t.modulo.exec(n)))i.push(&quot;%&quot;);else{if(null===(r=t.placeholder.exec(n)))throw new SyntaxError(&quot;[sprintf] unexpected placeholder&quot;);if(r[2]){o|=1;var s=[],l=r[2],c=[];if(null===(c=t.key.exec(l)))throw new SyntaxError(&quot;[sprintf] failed to parse named argument key&quot;);for(s.push(c[1]);&quot;&quot;!==(l=l.substring(c[0].length));)if(null!==(c=t.key_access.exec(l)))s.push(c[1]);else{if(null===(c=t.index_access.exec(l)))throw new SyntaxError(&quot;[sprintf] failed to parse named argument key&quot;);s.push(c[1])}r[2]=s}else o|=2;if(3===o)throw new Error(&quot;[sprintf] mixing positional and named placeholders is not (yet) supported&quot;);i.push({placeholder:r[0],param_no:r[1],keys:r[2],sign:r[3],pad_char:r[4],align:r[5],width:r[6],precision:r[7],type:r[8]})}n=n.substring(r[0].length)}return a[e]=i}&quot;undefined&quot;!=typeof r&amp;&amp;(r.sprintf=e,r.vsprintf=n),&quot;undefined&quot;!=typeof window&amp;&amp;(window.sprintf=e,window.vsprintf=n)}()},{}],568:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parenthesis&quot;);e.exports=function(t,e,r){if(null==t)throw Error(&quot;First argument should be a string&quot;);if(null==e)throw Error(&quot;Separator should be a string or a RegExp&quot;);r?(&quot;string&quot;==typeof r||Array.isArray(r))&amp;&amp;(r={ignore:r}):r={},null==r.escape&amp;&amp;(r.escape=!0),null==r.ignore?r.ignore=[&quot;[]&quot;,&quot;()&quot;,&quot;{}&quot;,&quot;&lt;&gt;&quot;,'&quot;&quot;',&quot;''&quot;,&quot;``&quot;,&quot;\u201c\u201d&quot;,&quot;\xab\xbb&quot;]:(&quot;string&quot;==typeof r.ignore&amp;&amp;(r.ignore=[r.ignore]),r.ignore=r.ignore.map((function(t){return 1===t.length&amp;&amp;(t+=t),t})));var i=n.parse(t,{flat:!0,brackets:r.ignore}),a=i[0].split(e);if(r.escape){for(var o=[],s=0;s&lt;a.length;s++){var l=a[s],c=a[s+1];&quot;\\&quot;===l[l.length-1]&amp;&amp;&quot;\\&quot;!==l[l.length-2]?(o.push(l+e+c),s++):o.push(l)}a=o}for(s=0;s&lt;a.length;s++)i[0]=a[s],a[s]=n.stringify(i,{flat:!0});return a}},{parenthesis:503}],569:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=new Array(e),n=new Array(e),i=new Array(e),a=new Array(e),o=new Array(e),s=new Array(e),l=0;l&lt;e;++l)r[l]=-1,n[l]=0,i[l]=!1,a[l]=0,o[l]=-1,s[l]=[];var c,u=0,f=[],h=[];function p(e){var l=[e],c=[e];for(r[e]=n[e]=u,i[e]=!0,u+=1;c.length&gt;0;){e=c[c.length-1];var p=t[e];if(a[e]&lt;p.length){for(var d=a[e];d&lt;p.length;++d){var g=p[d];if(r[g]&lt;0){r[g]=n[g]=u,i[g]=!0,u+=1,l.push(g),c.push(g);break}i[g]&amp;&amp;(n[e]=0|Math.min(n[e],n[g])),o[g]&gt;=0&amp;&amp;s[e].push(o[g])}a[e]=d}else{if(n[e]===r[e]){var m=[],v=[],y=0;for(d=l.length-1;d&gt;=0;--d){var x=l[d];if(i[x]=!1,m.push(x),v.push(s[x]),y+=s[x].length,o[x]=f.length,x===e){l.length=d;break}}f.push(m);var b=new Array(y);for(d=0;d&lt;v.length;d++)for(var _=0;_&lt;v[d].length;_++)b[--y]=v[d][_];h.push(b)}c.pop()}}}for(l=0;l&lt;e;++l)r[l]&lt;0&amp;&amp;p(l);for(l=0;l&lt;h.length;l++){var d=h[l];if(0!==d.length){d.sort((function(t,e){return t-e})),c=[d[0]];for(var g=1;g&lt;d.length;g++)d[g]!==d[g-1]&amp;&amp;c.push(d[g]);h[l]=c}}return{components:f,adjacencyList:h}}},{}],570:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(t.dimension&lt;=0)return{positions:[],cells:[]};if(1===t.dimension)return function(t,e){for(var r=a(t,e),n=r.length,i=new Array(n),o=new Array(n),s=0;s&lt;n;++s)i[s]=[r[s]],o[s]=[s];return{positions:i,cells:o}}(t,e);var r=t.order.join()+&quot;-&quot;+t.dtype,s=o[r];e=+e||0;s||(s=o[r]=function(t,e){var r=t.length,a=[&quot;'use strict';&quot;],o=&quot;surfaceNets&quot;+t.join(&quot;_&quot;)+&quot;d&quot;+e;a.push(&quot;var contour=genContour({&quot;,&quot;order:[&quot;,t.join(),&quot;],&quot;,&quot;scalarArguments: 3,&quot;,&quot;phase:function phaseFunc(p,a,b,c) { return (p &gt; c)|0 },&quot;),&quot;generic&quot;===e&amp;&amp;a.push(&quot;getters:[0],&quot;);for(var s=[],l=[],c=0;c&lt;r;++c)s.push(&quot;d&quot;+c),l.push(&quot;d&quot;+c);for(c=0;c&lt;1&lt;&lt;r;++c)s.push(&quot;v&quot;+c),l.push(&quot;v&quot;+c);for(c=0;c&lt;1&lt;&lt;r;++c)s.push(&quot;p&quot;+c),l.push(&quot;p&quot;+c);s.push(&quot;a&quot;,&quot;b&quot;,&quot;c&quot;),l.push(&quot;a&quot;,&quot;c&quot;),a.push(&quot;vertex:function vertexFunc(&quot;,s.join(),&quot;){&quot;);var u=[];for(c=0;c&lt;1&lt;&lt;r;++c)u.push(&quot;(p&quot;+c+&quot;&lt;&lt;&quot;+c+&quot;)&quot;);a.push(&quot;var m=(&quot;,u.join(&quot;+&quot;),&quot;)|0;if(m===0||m===&quot;,(1&lt;&lt;(1&lt;&lt;r))-1,&quot;){return}&quot;);var f=[],h=[];1&lt;&lt;(1&lt;&lt;r)&lt;=128?(a.push(&quot;switch(m){&quot;),h=a):a.push(&quot;switch(m&gt;&gt;&gt;7){&quot;);for(c=0;c&lt;1&lt;&lt;(1&lt;&lt;r);++c){if(1&lt;&lt;(1&lt;&lt;r)&gt;128&amp;&amp;c%128==0){f.length&gt;0&amp;&amp;h.push(&quot;}}&quot;);var p=&quot;vExtra&quot;+f.length;a.push(&quot;case &quot;,c&gt;&gt;&gt;7,&quot;:&quot;,p,&quot;(m&amp;0x7f,&quot;,l.join(),&quot;);break;&quot;),h=[&quot;function &quot;,p,&quot;(m,&quot;,l.join(),&quot;){switch(m){&quot;],f.push(h)}h.push(&quot;case &quot;,127&amp;c,&quot;:&quot;);for(var d=new Array(r),g=new Array(r),m=new Array(r),v=new Array(r),y=0,x=0;x&lt;r;++x)d[x]=[],g[x]=[],m[x]=0,v[x]=0;for(x=0;x&lt;1&lt;&lt;r;++x)for(var b=0;b&lt;r;++b){var _=x^1&lt;&lt;b;if(!(_&gt;x)&amp;&amp;!(c&amp;1&lt;&lt;_)!=!(c&amp;1&lt;&lt;x)){var w=1;c&amp;1&lt;&lt;_?g[b].push(&quot;v&quot;+_+&quot;-v&quot;+x):(g[b].push(&quot;v&quot;+x+&quot;-v&quot;+_),w=-w),w&lt;0?(d[b].push(&quot;-v&quot;+x+&quot;-v&quot;+_),m[b]+=2):(d[b].push(&quot;v&quot;+x+&quot;+v&quot;+_),m[b]-=2),y+=1;for(var T=0;T&lt;r;++T)T!==b&amp;&amp;(_&amp;1&lt;&lt;T?v[T]+=1:v[T]-=1)}}var k=[];for(b=0;b&lt;r;++b)if(0===d[b].length)k.push(&quot;d&quot;+b+&quot;-0.5&quot;);else{var M=&quot;&quot;;m[b]&lt;0?M=m[b]+&quot;*c&quot;:m[b]&gt;0&amp;&amp;(M=&quot;+&quot;+m[b]+&quot;*c&quot;);var A=d[b].length/y*.5,S=.5+v[b]/y*.5;k.push(&quot;d&quot;+b+&quot;-&quot;+S+&quot;-&quot;+A+&quot;*(&quot;+d[b].join(&quot;+&quot;)+M+&quot;)/(&quot;+g[b].join(&quot;+&quot;)+&quot;)&quot;)}h.push(&quot;a.push([&quot;,k.join(),&quot;]);&quot;,&quot;break;&quot;)}a.push(&quot;}},&quot;),f.length&gt;0&amp;&amp;h.push(&quot;}}&quot;);var E=[];for(c=0;c&lt;1&lt;&lt;r-1;++c)E.push(&quot;v&quot;+c);E.push(&quot;c0&quot;,&quot;c1&quot;,&quot;p0&quot;,&quot;p1&quot;,&quot;a&quot;,&quot;b&quot;,&quot;c&quot;),a.push(&quot;cell:function cellFunc(&quot;,E.join(),&quot;){&quot;);var C=i(r-1);a.push(&quot;if(p0){b.push(&quot;,C.map((function(t){return&quot;[&quot;+t.map((function(t){return&quot;v&quot;+t}))+&quot;]&quot;})).join(),&quot;)}else{b.push(&quot;,C.map((function(t){var e=t.slice();return e.reverse(),&quot;[&quot;+e.map((function(t){return&quot;v&quot;+t}))+&quot;]&quot;})).join(),&quot;)}}});function &quot;,o,&quot;(array,level){var verts=[],cells=[];contour(array,verts,cells,level);return {positions:verts,cells:cells};} return &quot;,o,&quot;;&quot;);for(c=0;c&lt;f.length;++c)a.push(f[c].join(&quot;&quot;));return new Function(&quot;genContour&quot;,a.join(&quot;&quot;))(n)}(t.order,t.dtype));return s(t,e)};var n=t(&quot;ndarray-extract-contour&quot;),i=t(&quot;triangulate-hypercube&quot;),a=t(&quot;zero-crossings&quot;);var o={}},{&quot;ndarray-extract-contour&quot;:487,&quot;triangulate-hypercube&quot;:580,&quot;zero-crossings&quot;:624}],571:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&amp;&amp;(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{!n&amp;&amp;s.return&amp;&amp;s.return()}finally{if(i)throw a}}return r}(t,e);throw new TypeError(&quot;Invalid attempt to destructure non-iterable instance&quot;)},i=2*Math.PI,a=function(t,e,r,n,i,a,o){var s=t.x,l=t.y;return{x:n*(s*=e)-i*(l*=r)+a,y:i*s+n*l+o}},o=function(t,e){var r=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),n=Math.cos(t),i=Math.sin(t),a=Math.cos(t+e),o=Math.sin(t+e);return[{x:n-i*r,y:i+n*r},{x:a+o*r,y:o-a*r},{x:a,y:o}]},s=function(t,e,r,n){var i=t*r+e*n;return i&gt;1&amp;&amp;(i=1),i&lt;-1&amp;&amp;(i=-1),(t*n-e*r&lt;0?-1:1)*Math.acos(i)};r.default=function(t){var e=t.px,r=t.py,l=t.cx,c=t.cy,u=t.rx,f=t.ry,h=t.xAxisRotation,p=void 0===h?0:h,d=t.largeArcFlag,g=void 0===d?0:d,m=t.sweepFlag,v=void 0===m?0:m,y=[];if(0===u||0===f)return[];var x=Math.sin(p*i/360),b=Math.cos(p*i/360),_=b*(e-l)/2+x*(r-c)/2,w=-x*(e-l)/2+b*(r-c)/2;if(0===_&amp;&amp;0===w)return[];u=Math.abs(u),f=Math.abs(f);var T=Math.pow(_,2)/Math.pow(u,2)+Math.pow(w,2)/Math.pow(f,2);T&gt;1&amp;&amp;(u*=Math.sqrt(T),f*=Math.sqrt(T));var k=function(t,e,r,n,a,o,l,c,u,f,h,p){var d=Math.pow(a,2),g=Math.pow(o,2),m=Math.pow(h,2),v=Math.pow(p,2),y=d*g-d*v-g*m;y&lt;0&amp;&amp;(y=0),y/=d*v+g*m;var x=(y=Math.sqrt(y)*(l===c?-1:1))*a/o*p,b=y*-o/a*h,_=f*x-u*b+(t+r)/2,w=u*x+f*b+(e+n)/2,T=(h-x)/a,k=(p-b)/o,M=(-h-x)/a,A=(-p-b)/o,S=s(1,0,T,k),E=s(T,k,M,A);return 0===c&amp;&amp;E&gt;0&amp;&amp;(E-=i),1===c&amp;&amp;E&lt;0&amp;&amp;(E+=i),[_,w,S,E]}(e,r,l,c,u,f,g,v,x,b,_,w),M=n(k,4),A=M[0],S=M[1],E=M[2],C=M[3],L=Math.abs(C)/(i/4);Math.abs(1-L)&lt;1e-7&amp;&amp;(L=1);var I=Math.max(Math.ceil(L),1);C/=I;for(var P=0;P&lt;I;P++)y.push(o(E,C)),E+=C;return y.map((function(t){var e=a(t[0],u,f,b,x,A,S),r=e.x,n=e.y,i=a(t[1],u,f,b,x,A,S),o=i.x,s=i.y,l=a(t[2],u,f,b,x,A,S);return{x1:r,y1:n,x2:o,y2:s,x:l.x,y:l.y}}))},e.exports=r.default},{}],572:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-svg-path&quot;),i=t(&quot;abs-svg-path&quot;),a=t(&quot;normalize-svg-path&quot;),o=t(&quot;is-svg-path&quot;),s=t(&quot;assert&quot;);e.exports=function(t){Array.isArray(t)&amp;&amp;1===t.length&amp;&amp;&quot;string&quot;==typeof t[0]&amp;&amp;(t=t[0]);&quot;string&quot;==typeof t&amp;&amp;(s(o(t),&quot;String is not an SVG path.&quot;),t=n(t));if(s(Array.isArray(t),&quot;Argument should be a string or an array of path segments.&quot;),t=i(t),!(t=a(t)).length)return[0,0,0,0];for(var e=[1/0,1/0,-1/0,-1/0],r=0,l=t.length;r&lt;l;r++)for(var c=t[r].slice(1),u=0;u&lt;c.length;u+=2)c[u+0]&lt;e[0]&amp;&amp;(e[0]=c[u+0]),c[u+1]&lt;e[1]&amp;&amp;(e[1]=c[u+1]),c[u+0]&gt;e[2]&amp;&amp;(e[2]=c[u+0]),c[u+1]&gt;e[3]&amp;&amp;(e[3]=c[u+1]);return e}},{&quot;abs-svg-path&quot;:65,assert:73,&quot;is-svg-path&quot;:471,&quot;normalize-svg-path&quot;:573,&quot;parse-svg-path&quot;:505}],573:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e,r=[],o=0,s=0,l=0,c=0,u=null,f=null,h=0,p=0,d=0,g=t.length;d&lt;g;d++){var m=t[d],v=m[0];switch(v){case&quot;M&quot;:l=m[1],c=m[2];break;case&quot;A&quot;:var y=n({px:h,py:p,cx:m[6],cy:m[7],rx:m[1],ry:m[2],xAxisRotation:m[3],largeArcFlag:m[4],sweepFlag:m[5]});if(!y.length)continue;for(var x,b=0;b&lt;y.length;b++)x=y[b],m=[&quot;C&quot;,x.x1,x.y1,x.x2,x.y2,x.x,x.y],b&lt;y.length-1&amp;&amp;r.push(m);break;case&quot;S&quot;:var _=h,w=p;&quot;C&quot;!=e&amp;&amp;&quot;S&quot;!=e||(_+=_-o,w+=w-s),m=[&quot;C&quot;,_,w,m[1],m[2],m[3],m[4]];break;case&quot;T&quot;:&quot;Q&quot;==e||&quot;T&quot;==e?(u=2*h-u,f=2*p-f):(u=h,f=p),m=a(h,p,u,f,m[1],m[2]);break;case&quot;Q&quot;:u=m[1],f=m[2],m=a(h,p,m[1],m[2],m[3],m[4]);break;case&quot;L&quot;:m=i(h,p,m[1],m[2]);break;case&quot;H&quot;:m=i(h,p,m[1],p);break;case&quot;V&quot;:m=i(h,p,h,m[1]);break;case&quot;Z&quot;:m=i(h,p,l,c)}e=v,h=m[m.length-2],p=m[m.length-1],m.length&gt;4?(o=m[m.length-4],s=m[m.length-3]):(o=h,s=p),r.push(m)}return r};var n=t(&quot;svg-arc-to-cubic-bezier&quot;);function i(t,e,r,n){return[&quot;C&quot;,t,e,r,n,r,n]}function a(t,e,r,n,i,a){return[&quot;C&quot;,t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}},{&quot;svg-arc-to-cubic-bezier&quot;:571}],574:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;svg-path-bounds&quot;),a=t(&quot;parse-svg-path&quot;),o=t(&quot;draw-svg-path&quot;),s=t(&quot;is-svg-path&quot;),l=t(&quot;bitmap-sdf&quot;),c=document.createElement(&quot;canvas&quot;),u=c.getContext(&quot;2d&quot;);e.exports=function(t,e){if(!s(t))throw Error(&quot;Argument should be valid svg path string&quot;);e||(e={});var r,f;e.shape?(r=e.shape[0],f=e.shape[1]):(r=c.width=e.w||e.width||200,f=c.height=e.h||e.height||200);var h=Math.min(r,f),p=e.stroke||0,d=e.viewbox||e.viewBox||i(t),g=[r/(d[2]-d[0]),f/(d[3]-d[1])],m=Math.min(g[0]||0,g[1]||0)/2;u.fillStyle=&quot;black&quot;,u.fillRect(0,0,r,f),u.fillStyle=&quot;white&quot;,p&amp;&amp;(&quot;number&quot;!=typeof p&amp;&amp;(p=1),u.strokeStyle=p&gt;0?&quot;white&quot;:&quot;black&quot;,u.lineWidth=Math.abs(p));if(u.translate(.5*r,.5*f),u.scale(m,m),function(){if(null!=n)return n;var t=document.createElement(&quot;canvas&quot;).getContext(&quot;2d&quot;);if(t.canvas.width=t.canvas.height=1,!window.Path2D)return n=!1;var e=new Path2D(&quot;M0,0h1v1h-1v-1Z&quot;);t.fillStyle=&quot;black&quot;,t.fill(e);var r=t.getImageData(0,0,1,1);return n=r&amp;&amp;r.data&amp;&amp;255===r.data[3]}()){var v=new Path2D(t);u.fill(v),p&amp;&amp;u.stroke(v)}else{var y=a(t);o(u,y),u.fill(),p&amp;&amp;u.stroke()}return u.setTransform(1,0,0,1,0,0),l(u,{cutoff:null!=e.cutoff?e.cutoff:.5,radius:null!=e.radius?e.radius:.5*h})}},{&quot;bitmap-sdf&quot;:98,&quot;draw-svg-path&quot;:174,&quot;is-svg-path&quot;:471,&quot;parse-svg-path&quot;:505,&quot;svg-path-bounds&quot;:572}],575:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;e.exports=function t(e,r,i){i=i||{};var o=a[e];o||(o=a[e]={&quot; &quot;:{data:new Float32Array(0),shape:.2}});var s=o[r];if(!s)if(r.length&lt;=1||!/\d/.test(r))s=o[r]=function(t){for(var e=t.cells,r=t.positions,n=new Float32Array(6*e.length),i=0,a=0,o=0;o&lt;e.length;++o)for(var s=e[o],l=0;l&lt;3;++l){var c=r[s[l]];n[i++]=c[0],n[i++]=c[1]+1.4,a=Math.max(c[0],a)}return{data:n,shape:a}}(n(r,{triangles:!0,font:e,textAlign:i.textAlign||&quot;left&quot;,textBaseline:&quot;alphabetic&quot;,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}}));else{for(var l=r.split(/(\d|\s)/),c=new Array(l.length),u=0,f=0,h=0;h&lt;l.length;++h)c[h]=t(e,l[h]),u+=c[h].data.length,f+=c[h].shape,h&gt;0&amp;&amp;(f+=.02);var p=new Float32Array(u),d=0,g=-.5*f;for(h=0;h&lt;c.length;++h){for(var m=c[h].data,v=0;v&lt;m.length;v+=2)p[d++]=m[v]+g,p[d++]=m[v+1];g+=c[h].shape+.02}s=o[r]={data:p,shape:f}}return s};var n=t(&quot;vectorize-text&quot;),i=window||r.global||{},a=i.__TEXT_CACHE||{};i.__TEXT_CACHE={}}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:526,&quot;vectorize-text&quot;:600}],576:[function(t,e,r){!function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,s=t.max,l=t.random;function c(e,l){if(l=l||{},(e=e||&quot;&quot;)instanceof c)return e;if(!(this instanceof c))return new c(e,l);var u=function(e){var i={r:0,g:0,b:0},a=1,l=null,c=null,u=null,f=!1,h=!1;&quot;string&quot;==typeof e&amp;&amp;(e=function(t){t=t.replace(r,&quot;&quot;).replace(n,&quot;&quot;).toLowerCase();var e,i=!1;if(S[t])t=S[t],i=!0;else if(&quot;transparent&quot;==t)return{r:0,g:0,b:0,a:0,format:&quot;name&quot;};if(e=j.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=j.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=j.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=j.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=j.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=j.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=j.hex8.exec(t))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),a:R(e[4]),format:i?&quot;name&quot;:&quot;hex8&quot;};if(e=j.hex6.exec(t))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),format:i?&quot;name&quot;:&quot;hex&quot;};if(e=j.hex4.exec(t))return{r:P(e[1]+&quot;&quot;+e[1]),g:P(e[2]+&quot;&quot;+e[2]),b:P(e[3]+&quot;&quot;+e[3]),a:R(e[4]+&quot;&quot;+e[4]),format:i?&quot;name&quot;:&quot;hex8&quot;};if(e=j.hex3.exec(t))return{r:P(e[1]+&quot;&quot;+e[1]),g:P(e[2]+&quot;&quot;+e[2]),b:P(e[3]+&quot;&quot;+e[3]),format:i?&quot;name&quot;:&quot;hex&quot;};return!1}(e));&quot;object&quot;==typeof e&amp;&amp;(U(e.r)&amp;&amp;U(e.g)&amp;&amp;U(e.b)?(p=e.r,d=e.g,g=e.b,i={r:255*L(p,255),g:255*L(d,255),b:255*L(g,255)},f=!0,h=&quot;%&quot;===String(e.r).substr(-1)?&quot;prgb&quot;:&quot;rgb&quot;):U(e.h)&amp;&amp;U(e.s)&amp;&amp;U(e.v)?(l=O(e.s),c=O(e.v),i=function(e,r,n){e=6*L(e,360),r=L(r,100),n=L(n,100);var i=t.floor(e),a=e-i,o=n*(1-r),s=n*(1-a*r),l=n*(1-(1-a)*r),c=i%6;return{r:255*[n,s,o,o,l,n][c],g:255*[l,n,n,s,o,o][c],b:255*[o,o,l,n,n,s][c]}}(e.h,l,c),f=!0,h=&quot;hsv&quot;):U(e.h)&amp;&amp;U(e.s)&amp;&amp;U(e.l)&amp;&amp;(l=O(e.s),u=O(e.l),i=function(t,e,r){var n,i,a;function o(t,e,r){return r&lt;0&amp;&amp;(r+=1),r&gt;1&amp;&amp;(r-=1),r&lt;1/6?t+6*(e-t)*r:r&lt;.5?e:r&lt;2/3?t+(e-t)*(2/3-r)*6:t}if(t=L(t,360),e=L(e,100),r=L(r,100),0===e)n=i=a=r;else{var s=r&lt;.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),i=o(l,s,t),a=o(l,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(e.h,l,u),f=!0,h=&quot;hsl&quot;),e.hasOwnProperty(&quot;a&quot;)&amp;&amp;(a=e.a));var p,d,g;return a=C(a),{ok:f,format:e.format||h,r:o(255,s(i.r,0)),g:o(255,s(i.g,0)),b:o(255,s(i.b,0)),a:a}}(e);this._originalInput=e,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=a(100*this._a)/100,this._format=l.format||u.format,this._gradientType=l.gradientType,this._r&lt;1&amp;&amp;(this._r=a(this._r)),this._g&lt;1&amp;&amp;(this._g=a(this._g)),this._b&lt;1&amp;&amp;(this._b=a(this._b)),this._ok=u.ok,this._tc_id=i++}function u(t,e,r){t=L(t,255),e=L(e,255),r=L(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=(a+l)/2;if(a==l)n=i=0;else{var u=a-l;switch(i=c&gt;.5?u/(2-a-l):u/(a+l),a){case t:n=(e-r)/u+(e&lt;r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:c}}function f(t,e,r){t=L(t,255),e=L(e,255),r=L(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=a,u=a-l;if(i=0===a?0:u/a,a==l)n=0;else{switch(a){case t:n=(e-r)/u+(e&lt;r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:c}}function h(t,e,r,n){var i=[z(a(t).toString(16)),z(a(e).toString(16)),z(a(r).toString(16))];return n&amp;&amp;i[0].charAt(0)==i[0].charAt(1)&amp;&amp;i[1].charAt(0)==i[1].charAt(1)&amp;&amp;i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(&quot;&quot;)}function p(t,e,r,n){return[z(D(n)),z(a(t).toString(16)),z(a(e).toString(16)),z(a(r).toString(16))].join(&quot;&quot;)}function d(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s-=e/100,r.s=I(r.s),c(r)}function g(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s+=e/100,r.s=I(r.s),c(r)}function m(t){return c(t).desaturate(100)}function v(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l+=e/100,r.l=I(r.l),c(r)}function y(t,e){e=0===e?0:e||10;var r=c(t).toRgb();return r.r=s(0,o(255,r.r-a(-e/100*255))),r.g=s(0,o(255,r.g-a(-e/100*255))),r.b=s(0,o(255,r.b-a(-e/100*255))),c(r)}function x(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l-=e/100,r.l=I(r.l),c(r)}function b(t,e){var r=c(t).toHsl(),n=(r.h+e)%360;return r.h=n&lt;0?360+n:n,c(r)}function _(t){var e=c(t).toHsl();return e.h=(e.h+180)%360,c(e)}function w(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+120)%360,s:e.s,l:e.l}),c({h:(r+240)%360,s:e.s,l:e.l})]}function T(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+90)%360,s:e.s,l:e.l}),c({h:(r+180)%360,s:e.s,l:e.l}),c({h:(r+270)%360,s:e.s,l:e.l})]}function k(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+72)%360,s:e.s,l:e.l}),c({h:(r+216)%360,s:e.s,l:e.l})]}function M(t,e,r){e=e||6,r=r||30;var n=c(t).toHsl(),i=360/r,a=[c(t)];for(n.h=(n.h-(i*e&gt;&gt;1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(c(n));return a}function A(t,e){e=e||6;for(var r=c(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(c({h:n,s:i,v:a})),a=(a+s)%1;return o}c.prototype={isDark:function(){return this.getBrightness()&lt;128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var e,r,n,i=this.toRgb();return e=i.r/255,r=i.g/255,n=i.b/255,.2126*(e&lt;=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(r&lt;=.03928?r/12.92:t.pow((r+.055)/1.055,2.4))+.0722*(n&lt;=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=C(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=f(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.v);return 1==this._a?&quot;hsv(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%)&quot;:&quot;hsva(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%, &quot;+this._roundA+&quot;)&quot;},toHsl:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=u(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.l);return 1==this._a?&quot;hsl(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%)&quot;:&quot;hsla(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%, &quot;+this._roundA+&quot;)&quot;},toHex:function(t){return h(this._r,this._g,this._b,t)},toHexString:function(t){return&quot;#&quot;+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[z(a(t).toString(16)),z(a(e).toString(16)),z(a(r).toString(16)),z(D(n))];if(i&amp;&amp;o[0].charAt(0)==o[0].charAt(1)&amp;&amp;o[1].charAt(0)==o[1].charAt(1)&amp;&amp;o[2].charAt(0)==o[2].charAt(1)&amp;&amp;o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join(&quot;&quot;)}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return&quot;#&quot;+this.toHex8(t)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?&quot;rgb(&quot;+a(this._r)+&quot;, &quot;+a(this._g)+&quot;, &quot;+a(this._b)+&quot;)&quot;:&quot;rgba(&quot;+a(this._r)+&quot;, &quot;+a(this._g)+&quot;, &quot;+a(this._b)+&quot;, &quot;+this._roundA+&quot;)&quot;},toPercentageRgb:function(){return{r:a(100*L(this._r,255))+&quot;%&quot;,g:a(100*L(this._g,255))+&quot;%&quot;,b:a(100*L(this._b,255))+&quot;%&quot;,a:this._a}},toPercentageRgbString:function(){return 1==this._a?&quot;rgb(&quot;+a(100*L(this._r,255))+&quot;%, &quot;+a(100*L(this._g,255))+&quot;%, &quot;+a(100*L(this._b,255))+&quot;%)&quot;:&quot;rgba(&quot;+a(100*L(this._r,255))+&quot;%, &quot;+a(100*L(this._g,255))+&quot;%, &quot;+a(100*L(this._b,255))+&quot;%, &quot;+this._roundA+&quot;)&quot;},toName:function(){return 0===this._a?&quot;transparent&quot;:!(this._a&lt;1)&amp;&amp;(E[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e=&quot;#&quot;+p(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?&quot;GradientType = 1, &quot;:&quot;&quot;;if(t){var i=c(t);r=&quot;#&quot;+p(i._r,i._g,i._b,i._a)}return&quot;progid:DXImageTransform.Microsoft.gradient(&quot;+n+&quot;startColorstr=&quot;+e+&quot;,endColorstr=&quot;+r+&quot;)&quot;},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a&lt;1&amp;&amp;this._a&gt;=0;return e||!n||&quot;hex&quot;!==t&amp;&amp;&quot;hex6&quot;!==t&amp;&amp;&quot;hex3&quot;!==t&amp;&amp;&quot;hex4&quot;!==t&amp;&amp;&quot;hex8&quot;!==t&amp;&amp;&quot;name&quot;!==t?(&quot;rgb&quot;===t&amp;&amp;(r=this.toRgbString()),&quot;prgb&quot;===t&amp;&amp;(r=this.toPercentageRgbString()),&quot;hex&quot;!==t&amp;&amp;&quot;hex6&quot;!==t||(r=this.toHexString()),&quot;hex3&quot;===t&amp;&amp;(r=this.toHexString(!0)),&quot;hex4&quot;===t&amp;&amp;(r=this.toHex8String(!0)),&quot;hex8&quot;===t&amp;&amp;(r=this.toHex8String()),&quot;name&quot;===t&amp;&amp;(r=this.toName()),&quot;hsl&quot;===t&amp;&amp;(r=this.toHslString()),&quot;hsv&quot;===t&amp;&amp;(r=this.toHsvString()),r||this.toHexString()):&quot;name&quot;===t&amp;&amp;0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},c.fromRatio=function(t,e){if(&quot;object&quot;==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&amp;&amp;(r[n]=&quot;a&quot;===n?t[n]:O(t[n]));t=r}return c(t,e)},c.equals=function(t,e){return!(!t||!e)&amp;&amp;c(t).toRgbString()==c(e).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})},c.mix=function(t,e,r){r=0===r?0:r||50;var n=c(t).toRgb(),i=c(e).toRgb(),a=r/100;return c({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},c.readability=function(e,r){var n=c(e),i=c(r);return(t.max(n.getLuminance(),i.getLuminance())+.05)/(t.min(n.getLuminance(),i.getLuminance())+.05)},c.isReadable=function(t,e,r){var n,i,a=c.readability(t,e);switch(i=!1,(n=function(t){var e,r;e=((t=t||{level:&quot;AA&quot;,size:&quot;small&quot;}).level||&quot;AA&quot;).toUpperCase(),r=(t.size||&quot;small&quot;).toLowerCase(),&quot;AA&quot;!==e&amp;&amp;&quot;AAA&quot;!==e&amp;&amp;(e=&quot;AA&quot;);&quot;small&quot;!==r&amp;&amp;&quot;large&quot;!==r&amp;&amp;(r=&quot;small&quot;);return{level:e,size:r}}(r)).level+n.size){case&quot;AAsmall&quot;:case&quot;AAAlarge&quot;:i=a&gt;=4.5;break;case&quot;AAlarge&quot;:i=a&gt;=3;break;case&quot;AAAsmall&quot;:i=a&gt;=7}return i},c.mostReadable=function(t,e,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var u=0;u&lt;e.length;u++)(n=c.readability(t,e[u]))&gt;l&amp;&amp;(l=n,s=c(e[u]));return c.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,c.mostReadable(t,[&quot;#fff&quot;,&quot;#000&quot;],r))};var S=c.names={aliceblue:&quot;f0f8ff&quot;,antiquewhite:&quot;faebd7&quot;,aqua:&quot;0ff&quot;,aquamarine:&quot;7fffd4&quot;,azure:&quot;f0ffff&quot;,beige:&quot;f5f5dc&quot;,bisque:&quot;ffe4c4&quot;,black:&quot;000&quot;,blanchedalmond:&quot;ffebcd&quot;,blue:&quot;00f&quot;,blueviolet:&quot;8a2be2&quot;,brown:&quot;a52a2a&quot;,burlywood:&quot;deb887&quot;,burntsienna:&quot;ea7e5d&quot;,cadetblue:&quot;5f9ea0&quot;,chartreuse:&quot;7fff00&quot;,chocolate:&quot;d2691e&quot;,coral:&quot;ff7f50&quot;,cornflowerblue:&quot;6495ed&quot;,cornsilk:&quot;fff8dc&quot;,crimson:&quot;dc143c&quot;,cyan:&quot;0ff&quot;,darkblue:&quot;00008b&quot;,darkcyan:&quot;008b8b&quot;,darkgoldenrod:&quot;b8860b&quot;,darkgray:&quot;a9a9a9&quot;,darkgreen:&quot;006400&quot;,darkgrey:&quot;a9a9a9&quot;,darkkhaki:&quot;bdb76b&quot;,darkmagenta:&quot;8b008b&quot;,darkolivegreen:&quot;556b2f&quot;,darkorange:&quot;ff8c00&quot;,darkorchid:&quot;9932cc&quot;,darkred:&quot;8b0000&quot;,darksalmon:&quot;e9967a&quot;,darkseagreen:&quot;8fbc8f&quot;,darkslateblue:&quot;483d8b&quot;,darkslategray:&quot;2f4f4f&quot;,darkslategrey:&quot;2f4f4f&quot;,darkturquoise:&quot;00ced1&quot;,darkviolet:&quot;9400d3&quot;,deeppink:&quot;ff1493&quot;,deepskyblue:&quot;00bfff&quot;,dimgray:&quot;696969&quot;,dimgrey:&quot;696969&quot;,dodgerblue:&quot;1e90ff&quot;,firebrick:&quot;b22222&quot;,floralwhite:&quot;fffaf0&quot;,forestgreen:&quot;228b22&quot;,fuchsia:&quot;f0f&quot;,gainsboro:&quot;dcdcdc&quot;,ghostwhite:&quot;f8f8ff&quot;,gold:&quot;ffd700&quot;,goldenrod:&quot;daa520&quot;,gray:&quot;808080&quot;,green:&quot;008000&quot;,greenyellow:&quot;adff2f&quot;,grey:&quot;808080&quot;,honeydew:&quot;f0fff0&quot;,hotpink:&quot;ff69b4&quot;,indianred:&quot;cd5c5c&quot;,indigo:&quot;4b0082&quot;,ivory:&quot;fffff0&quot;,khaki:&quot;f0e68c&quot;,lavender:&quot;e6e6fa&quot;,lavenderblush:&quot;fff0f5&quot;,lawngreen:&quot;7cfc00&quot;,lemonchiffon:&quot;fffacd&quot;,lightblue:&quot;add8e6&quot;,lightcoral:&quot;f08080&quot;,lightcyan:&quot;e0ffff&quot;,lightgoldenrodyellow:&quot;fafad2&quot;,lightgray:&quot;d3d3d3&quot;,lightgreen:&quot;90ee90&quot;,lightgrey:&quot;d3d3d3&quot;,lightpink:&quot;ffb6c1&quot;,lightsalmon:&quot;ffa07a&quot;,lightseagreen:&quot;20b2aa&quot;,lightskyblue:&quot;87cefa&quot;,lightslategray:&quot;789&quot;,lightslategrey:&quot;789&quot;,lightsteelblue:&quot;b0c4de&quot;,lightyellow:&quot;ffffe0&quot;,lime:&quot;0f0&quot;,limegreen:&quot;32cd32&quot;,linen:&quot;faf0e6&quot;,magenta:&quot;f0f&quot;,maroon:&quot;800000&quot;,mediumaquamarine:&quot;66cdaa&quot;,mediumblue:&quot;0000cd&quot;,mediumorchid:&quot;ba55d3&quot;,mediumpurple:&quot;9370db&quot;,mediumseagreen:&quot;3cb371&quot;,mediumslateblue:&quot;7b68ee&quot;,mediumspringgreen:&quot;00fa9a&quot;,mediumturquoise:&quot;48d1cc&quot;,mediumvioletred:&quot;c71585&quot;,midnightblue:&quot;191970&quot;,mintcream:&quot;f5fffa&quot;,mistyrose:&quot;ffe4e1&quot;,moccasin:&quot;ffe4b5&quot;,navajowhite:&quot;ffdead&quot;,navy:&quot;000080&quot;,oldlace:&quot;fdf5e6&quot;,olive:&quot;808000&quot;,olivedrab:&quot;6b8e23&quot;,orange:&quot;ffa500&quot;,orangered:&quot;ff4500&quot;,orchid:&quot;da70d6&quot;,palegoldenrod:&quot;eee8aa&quot;,palegreen:&quot;98fb98&quot;,paleturquoise:&quot;afeeee&quot;,palevioletred:&quot;db7093&quot;,papayawhip:&quot;ffefd5&quot;,peachpuff:&quot;ffdab9&quot;,peru:&quot;cd853f&quot;,pink:&quot;ffc0cb&quot;,plum:&quot;dda0dd&quot;,powderblue:&quot;b0e0e6&quot;,purple:&quot;800080&quot;,rebeccapurple:&quot;663399&quot;,red:&quot;f00&quot;,rosybrown:&quot;bc8f8f&quot;,royalblue:&quot;4169e1&quot;,saddlebrown:&quot;8b4513&quot;,salmon:&quot;fa8072&quot;,sandybrown:&quot;f4a460&quot;,seagreen:&quot;2e8b57&quot;,seashell:&quot;fff5ee&quot;,sienna:&quot;a0522d&quot;,silver:&quot;c0c0c0&quot;,skyblue:&quot;87ceeb&quot;,slateblue:&quot;6a5acd&quot;,slategray:&quot;708090&quot;,slategrey:&quot;708090&quot;,snow:&quot;fffafa&quot;,springgreen:&quot;00ff7f&quot;,steelblue:&quot;4682b4&quot;,tan:&quot;d2b48c&quot;,teal:&quot;008080&quot;,thistle:&quot;d8bfd8&quot;,tomato:&quot;ff6347&quot;,turquoise:&quot;40e0d0&quot;,violet:&quot;ee82ee&quot;,wheat:&quot;f5deb3&quot;,white:&quot;fff&quot;,whitesmoke:&quot;f5f5f5&quot;,yellow:&quot;ff0&quot;,yellowgreen:&quot;9acd32&quot;},E=c.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&amp;&amp;(e[t[r]]=r);return e}(S);function C(t){return t=parseFloat(t),(isNaN(t)||t&lt;0||t&gt;1)&amp;&amp;(t=1),t}function L(e,r){(function(t){return&quot;string&quot;==typeof t&amp;&amp;-1!=t.indexOf(&quot;.&quot;)&amp;&amp;1===parseFloat(t)})(e)&amp;&amp;(e=&quot;100%&quot;);var n=function(t){return&quot;string&quot;==typeof t&amp;&amp;-1!=t.indexOf(&quot;%&quot;)}(e);return e=o(r,s(0,parseFloat(e))),n&amp;&amp;(e=parseInt(e*r,10)/100),t.abs(e-r)&lt;1e-6?1:e%r/parseFloat(r)}function I(t){return o(1,s(0,t))}function P(t){return parseInt(t,16)}function z(t){return 1==t.length?&quot;0&quot;+t:&quot;&quot;+t}function O(t){return t&lt;=1&amp;&amp;(t=100*t+&quot;%&quot;),t}function D(e){return t.round(255*parseFloat(e)).toString(16)}function R(t){return P(t)/255}var F,B,N,j=(B=&quot;[\\s|\\(]+(&quot;+(F=&quot;(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)&quot;)+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)\\s*\\)?&quot;,N=&quot;[\\s|\\(]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)\\s*\\)?&quot;,{CSS_UNIT:new RegExp(F),rgb:new RegExp(&quot;rgb&quot;+B),rgba:new RegExp(&quot;rgba&quot;+N),hsl:new RegExp(&quot;hsl&quot;+B),hsla:new RegExp(&quot;hsla&quot;+N),hsv:new RegExp(&quot;hsv&quot;+B),hsva:new RegExp(&quot;hsva&quot;+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(t){return!!j.CSS_UNIT.exec(t)}&quot;undefined&quot;!=typeof e&amp;&amp;e.exports?e.exports=c:window.tinycolor=c}(Math)},{}],577:[function(t,e,r){&quot;use strict&quot;;e.exports=i,e.exports.float32=e.exports.float=i,e.exports.fract32=e.exports.fract=function(t){if(t.length){for(var e=i(t),r=0,n=e.length;r&lt;n;r++)e[r]=t[r]-e[r];return e}return i(t-i(t))};var n=new Float32Array(1);function i(t){if(t.length){if(t instanceof Float32Array)return t;var e=new Float32Array(t);return e.set(t),e}return n[0]=t,n[0]}},{}],578:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-unit&quot;);e.exports=a;function i(t,e){var r=n(getComputedStyle(t).getPropertyValue(e));return r[0]*a(r[1],t)}function a(t,e){switch(e=e||document.body,t=(t||&quot;px&quot;).trim().toLowerCase(),e!==window&amp;&amp;e!==document||(e=document.body),t){case&quot;%&quot;:return e.clientHeight/100;case&quot;ch&quot;:case&quot;ex&quot;:return function(t,e){var r=document.createElement(&quot;div&quot;);r.style[&quot;font-size&quot;]=&quot;128&quot;+t,e.appendChild(r);var n=i(r,&quot;font-size&quot;)/128;return e.removeChild(r),n}(t,e);case&quot;em&quot;:return i(e,&quot;font-size&quot;);case&quot;rem&quot;:return i(document.body,&quot;font-size&quot;);case&quot;vw&quot;:return window.innerWidth/100;case&quot;vh&quot;:return window.innerHeight/100;case&quot;vmin&quot;:return Math.min(window.innerWidth,window.innerHeight)/100;case&quot;vmax&quot;:return Math.max(window.innerWidth,window.innerHeight)/100;case&quot;in&quot;:return 96;case&quot;cm&quot;:return 96/2.54;case&quot;mm&quot;:return 96/25.4;case&quot;pt&quot;:return 96/72;case&quot;pc&quot;:return 16}return 1}},{&quot;parse-unit&quot;:506}],579:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).topojson=t.topojson||{})}(this,(function(t){&quot;use strict&quot;;function e(t){return t}function r(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c);for(u[0]=(r+=t[0])*i+o,u[1]=(n+=t[1])*a+s;l&lt;c;)u[l]=t[l],++l;return u}}function n(t){var e,n=r(t.transform),i=1/0,a=i,o=-i,s=-i;function l(t){(t=n(t))[0]&lt;i&amp;&amp;(i=t[0]),t[0]&gt;o&amp;&amp;(o=t[0]),t[1]&lt;a&amp;&amp;(a=t[1]),t[1]&gt;s&amp;&amp;(s=t[1])}function c(t){switch(t.type){case&quot;GeometryCollection&quot;:t.geometries.forEach(c);break;case&quot;Point&quot;:l(t.coordinates);break;case&quot;MultiPoint&quot;:t.coordinates.forEach(l)}}for(e in t.arcs.forEach((function(t){for(var e,r=-1,l=t.length;++r&lt;l;)(e=n(t[r],r))[0]&lt;i&amp;&amp;(i=e[0]),e[0]&gt;o&amp;&amp;(o=e[0]),e[1]&lt;a&amp;&amp;(a=e[1]),e[1]&gt;s&amp;&amp;(s=e[1])})),t.objects)c(t.objects[e]);return[i,a,o,s]}function i(t,e){var r=e.id,n=e.bbox,i=null==e.properties?{}:e.properties,o=a(t,e);return null==r&amp;&amp;null==n?{type:&quot;Feature&quot;,properties:i,geometry:o}:null==n?{type:&quot;Feature&quot;,id:r,properties:i,geometry:o}:{type:&quot;Feature&quot;,id:r,bbox:n,properties:i,geometry:o}}function a(t,e){var n=r(t.transform),i=t.arcs;function a(t,e){e.length&amp;&amp;e.pop();for(var r=i[t&lt;0?~t:t],a=0,o=r.length;a&lt;o;++a)e.push(n(r[a],a));t&lt;0&amp;&amp;function(t,e){for(var r,n=t.length,i=n-e;i&lt;--n;)r=t[i],t[i++]=t[n],t[n]=r}(e,o)}function o(t){return n(t)}function s(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)a(t[r],e);return e.length&lt;2&amp;&amp;e.push(e[0]),e}function l(t){for(var e=s(t);e.length&lt;4;)e.push(e[0]);return e}function c(t){return t.map(l)}return function t(e){var r,n=e.type;switch(n){case&quot;GeometryCollection&quot;:return{type:n,geometries:e.geometries.map(t)};case&quot;Point&quot;:r=o(e.coordinates);break;case&quot;MultiPoint&quot;:r=e.coordinates.map(o);break;case&quot;LineString&quot;:r=s(e.arcs);break;case&quot;MultiLineString&quot;:r=e.arcs.map(s);break;case&quot;Polygon&quot;:r=c(e.arcs);break;case&quot;MultiPolygon&quot;:r=e.arcs.map(c);break;default:return null}return{type:n,coordinates:r}}(e)}function o(t,e){var r={},n={},i={},a=[],o=-1;function s(t,e){for(var n in t){var i=t[n];delete e[i.start],delete i.start,delete i.end,i.forEach((function(t){r[t&lt;0?~t:t]=1})),a.push(i)}}return e.forEach((function(r,n){var i,a=t.arcs[r&lt;0?~r:r];a.length&lt;3&amp;&amp;!a[1][0]&amp;&amp;!a[1][1]&amp;&amp;(i=e[++o],e[o]=r,e[n]=i)})),e.forEach((function(e){var r,a,o=function(e){var r,n=t.arcs[e&lt;0?~e:e],i=n[0];t.transform?(r=[0,0],n.forEach((function(t){r[0]+=t[0],r[1]+=t[1]}))):r=n[n.length-1];return e&lt;0?[r,i]:[i,r]}(e),s=o[0],l=o[1];if(r=i[s])if(delete i[r.end],r.push(e),r.end=l,a=n[l]){delete n[a.start];var c=a===r?r:r.concat(a);n[c.start=r.start]=i[c.end=a.end]=c}else n[r.start]=i[r.end]=r;else if(r=n[l])if(delete n[r.start],r.unshift(e),r.start=s,a=i[s]){delete i[a.end];var u=a===r?r:a.concat(r);n[u.start=a.start]=i[u.end=r.end]=u}else n[r.start]=i[r.end]=r;else n[(r=[e]).start=s]=i[r.end=l]=r})),s(i,n),s(n,i),e.forEach((function(t){r[t&lt;0?~t:t]||a.push([t])})),a}function s(t,e,r){var n,i,a;if(arguments.length&gt;1)n=l(t,e,r);else for(i=0,n=new Array(a=t.arcs.length);i&lt;a;++i)n[i]=i;return{type:&quot;MultiLineString&quot;,arcs:o(t,n)}}function l(t,e,r){var n,i=[],a=[];function o(t){var e=t&lt;0?~t:t;(a[e]||(a[e]=[])).push({i:t,g:n})}function s(t){t.forEach(o)}function l(t){t.forEach(s)}return function t(e){switch(n=e,e.type){case&quot;GeometryCollection&quot;:e.geometries.forEach(t);break;case&quot;LineString&quot;:s(e.arcs);break;case&quot;MultiLineString&quot;:case&quot;Polygon&quot;:l(e.arcs);break;case&quot;MultiPolygon&quot;:!function(t){t.forEach(l)}(e.arcs)}}(e),a.forEach(null==r?function(t){i.push(t[0].i)}:function(t){r(t[0].g,t[t.length-1].g)&amp;&amp;i.push(t[0].i)}),i}function c(t,e){var r={},n=[],i=[];function s(t){t.forEach((function(e){e.forEach((function(e){(r[e=e&lt;0?~e:e]||(r[e]=[])).push(t)}))})),n.push(t)}function l(e){return function(t){for(var e,r=-1,n=t.length,i=t[n-1],a=0;++r&lt;n;)e=i,i=t[r],a+=e[0]*i[1]-e[1]*i[0];return Math.abs(a)}(a(t,{type:&quot;Polygon&quot;,arcs:[e]}).coordinates[0])}return e.forEach((function t(e){switch(e.type){case&quot;GeometryCollection&quot;:e.geometries.forEach(t);break;case&quot;Polygon&quot;:s(e.arcs);break;case&quot;MultiPolygon&quot;:e.arcs.forEach(s)}})),n.forEach((function(t){if(!t._){var e=[],n=[t];for(t._=1,i.push(e);t=n.pop();)e.push(t),t.forEach((function(t){t.forEach((function(t){r[t&lt;0?~t:t].forEach((function(t){t._||(t._=1,n.push(t))}))}))}))}})),n.forEach((function(t){delete t._})),{type:&quot;MultiPolygon&quot;,arcs:i.map((function(e){var n,i=[];if(e.forEach((function(t){t.forEach((function(t){t.forEach((function(t){r[t&lt;0?~t:t].length&lt;2&amp;&amp;i.push(t)}))}))})),(n=(i=o(t,i)).length)&gt;1)for(var a,s,c=1,u=l(i[0]);c&lt;n;++c)(a=l(i[c]))&gt;u&amp;&amp;(s=i[0],i[0]=i[c],i[c]=s,u=a);return i})).filter((function(t){return t.length&gt;0}))}}function u(t,e){for(var r=0,n=t.length;r&lt;n;){var i=r+n&gt;&gt;&gt;1;t[i]&lt;e?r=i+1:n=i}return r}function f(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c),f=Math.round((t[0]-o)/i),h=Math.round((t[1]-s)/a);for(u[0]=f-r,r=f,u[1]=h-n,n=h;l&lt;c;)u[l]=t[l],++l;return u}}t.bbox=n,t.feature=function(t,e){return&quot;string&quot;==typeof e&amp;&amp;(e=t.objects[e]),&quot;GeometryCollection&quot;===e.type?{type:&quot;FeatureCollection&quot;,features:e.geometries.map((function(e){return i(t,e)}))}:i(t,e)},t.merge=function(t){return a(t,c.apply(this,arguments))},t.mergeArcs=c,t.mesh=function(t){return a(t,s.apply(this,arguments))},t.meshArcs=s,t.neighbors=function(t){var e={},r=t.map((function(){return[]}));function n(t,r){t.forEach((function(t){t&lt;0&amp;&amp;(t=~t);var n=e[t];n?n.push(r):e[t]=[r]}))}function i(t,e){t.forEach((function(t){n(t,e)}))}var a={LineString:n,MultiLineString:i,Polygon:i,MultiPolygon:function(t,e){t.forEach((function(t){i(t,e)}))}};for(var o in t.forEach((function t(e,r){&quot;GeometryCollection&quot;===e.type?e.geometries.forEach((function(e){t(e,r)})):e.type in a&amp;&amp;a[e.type](e.arcs,r)})),e)for(var s=e[o],l=s.length,c=0;c&lt;l;++c)for(var f=c+1;f&lt;l;++f){var h,p=s[c],d=s[f];(h=r[p])[o=u(h,d)]!==d&amp;&amp;h.splice(o,0,d),(h=r[d])[o=u(h,p)]!==p&amp;&amp;h.splice(o,0,p)}return r},t.quantize=function(t,e){if(t.transform)throw new Error(&quot;already quantized&quot;);if(e&amp;&amp;e.scale)l=t.bbox;else{if(!((r=Math.floor(e))&gt;=2))throw new Error(&quot;n must be \u22652&quot;);var r,i=(l=t.bbox||n(t))[0],a=l[1],o=l[2],s=l[3];e={scale:[o-i?(o-i)/(r-1):1,s-a?(s-a)/(r-1):1],translate:[i,a]}}var l,c,u=f(e),h=t.objects,p={};function d(t){return u(t)}function g(t){var e;switch(t.type){case&quot;GeometryCollection&quot;:e={type:&quot;GeometryCollection&quot;,geometries:t.geometries.map(g)};break;case&quot;Point&quot;:e={type:&quot;Point&quot;,coordinates:d(t.coordinates)};break;case&quot;MultiPoint&quot;:e={type:&quot;MultiPoint&quot;,coordinates:t.coordinates.map(d)};break;default:return t}return null!=t.id&amp;&amp;(e.id=t.id),null!=t.bbox&amp;&amp;(e.bbox=t.bbox),null!=t.properties&amp;&amp;(e.properties=t.properties),e}for(c in h)p[c]=g(h[c]);return{type:&quot;Topology&quot;,bbox:l,transform:e,objects:p,arcs:t.arcs.map((function(t){var e,r=0,n=1,i=t.length,a=new Array(i);for(a[0]=u(t[0],0);++r&lt;i;)((e=u(t[r],r))[0]||e[1])&amp;&amp;(a[n++]=e);return 1===n&amp;&amp;(a[n++]=[0,0]),a.length=n,a}))}},t.transform=r,t.untransform=f,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],580:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){if(t&lt;0)return[];if(0===t)return[[0]];for(var e=0|Math.round(a(t+1)),r=[],o=0;o&lt;e;++o){for(var s=n.unrank(t,o),l=[0],c=0,u=0;u&lt;s.length;++u)c+=1&lt;&lt;s[u],l.push(c);i(s)&lt;1&amp;&amp;(l[0]=c,l[t]=0),r.push(l)}return r};var n=t(&quot;permutation-rank&quot;),i=t(&quot;permutation-parity&quot;),a=t(&quot;gamma&quot;)},{gamma:248,&quot;permutation-parity&quot;:509,&quot;permutation-rank&quot;:510}],581:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.up||[0,1,0],n=t.right||f(r),i=t.radius||1,a=t.theta||0,u=t.phi||0;if(e=[].slice.call(e,0,3),r=[].slice.call(r,0,3),s(r,r),n=[].slice.call(n,0,3),s(n,n),&quot;eye&quot;in t){var p=t.eye,d=[p[0]-e[0],p[1]-e[1],p[2]-e[2]];o(n,d,r),c(n[0],n[1],n[2])&lt;1e-6?n=f(r):s(n,n),i=c(d[0],d[1],d[2]);var g=l(r,d)/i,m=l(n,d)/i;u=Math.acos(g),a=Math.acos(m)}return i=Math.log(i),new h(t.zoomMin,t.zoomMax,e,r,n,i,a,u)};var n=t(&quot;filtered-vector&quot;),i=t(&quot;gl-mat4/invert&quot;),a=t(&quot;gl-mat4/rotate&quot;),o=t(&quot;gl-vec3/cross&quot;),s=t(&quot;gl-vec3/normalize&quot;),l=t(&quot;gl-vec3/dot&quot;);function c(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function u(t){return Math.min(1,Math.max(-1,t))}function f(t){var e=Math.abs(t[0]),r=Math.abs(t[1]),n=Math.abs(t[2]),i=[0,0,0];e&gt;Math.max(r,n)?i[2]=1:r&gt;Math.max(e,n)?i[0]=1:i[1]=1;for(var a=0,o=0,l=0;l&lt;3;++l)a+=t[l]*t[l],o+=i[l]*t[l];for(l=0;l&lt;3;++l)i[l]-=o/a*t[l];return s(i,i),i}function h(t,e,r,i,a,o,s,l){this.center=n(r),this.up=n(i),this.right=n(a),this.radius=n([o]),this.angle=n([s,l]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(t,e),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var c=0;c&lt;16;++c)this.computedMatrix[c]=.5;this.recalcMatrix(0)}var p=h.prototype;p.setDistanceLimits=function(t,e){t=t&gt;0?Math.log(t):-1/0,e=e&gt;0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},p.getDistanceLimits=function(t){var e=this.radius.bounds[0];return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},p.recalcMatrix=function(t){this.center.curve(t),this.up.curve(t),this.right.curve(t),this.radius.curve(t),this.angle.curve(t);for(var e=this.computedUp,r=this.computedRight,n=0,i=0,a=0;a&lt;3;++a)i+=e[a]*r[a],n+=e[a]*e[a];var l=Math.sqrt(n),u=0;for(a=0;a&lt;3;++a)r[a]-=e[a]*i/n,u+=r[a]*r[a],e[a]/=l;var f=Math.sqrt(u);for(a=0;a&lt;3;++a)r[a]/=f;var h=this.computedToward;o(h,e,r),s(h,h);var p=Math.exp(this.computedRadius[0]),d=this.computedAngle[0],g=this.computedAngle[1],m=Math.cos(d),v=Math.sin(d),y=Math.cos(g),x=Math.sin(g),b=this.computedCenter,_=m*y,w=v*y,T=x,k=-m*x,M=-v*x,A=y,S=this.computedEye,E=this.computedMatrix;for(a=0;a&lt;3;++a){var C=_*r[a]+w*h[a]+T*e[a];E[4*a+1]=k*r[a]+M*h[a]+A*e[a],E[4*a+2]=C,E[4*a+3]=0}var L=E[1],I=E[5],P=E[9],z=E[2],O=E[6],D=E[10],R=I*D-P*O,F=P*z-L*D,B=L*O-I*z,N=c(R,F,B);R/=N,F/=N,B/=N,E[0]=R,E[4]=F,E[8]=B;for(a=0;a&lt;3;++a)S[a]=b[a]+E[2+4*a]*p;for(a=0;a&lt;3;++a){u=0;for(var j=0;j&lt;3;++j)u+=E[a+4*j]*S[j];E[12+a]=-u}E[15]=1},p.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n&lt;16;++n)e[n]=r[n];return e}return r};var d=[0,0,0];p.rotate=function(t,e,r,n){if(this.angle.move(t,e,r),n){this.recalcMatrix(t);var i=this.computedMatrix;d[0]=i[2],d[1]=i[6],d[2]=i[10];for(var o=this.computedUp,s=this.computedRight,l=this.computedToward,c=0;c&lt;3;++c)i[4*c]=o[c],i[4*c+1]=s[c],i[4*c+2]=l[c];a(i,i,n,d);for(c=0;c&lt;3;++c)o[c]=i[4*c],s[c]=i[4*c+1];this.up.set(t,o[0],o[1],o[2]),this.right.set(t,s[0],s[1],s[2])}},p.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=(Math.exp(this.computedRadius[0]),i[1]),o=i[5],s=i[9],l=c(a,o,s);a/=l,o/=l,s/=l;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=c(u-=a*p,f-=o*p,h-=s*p),g=(u/=d)*e+a*r,m=(f/=d)*e+o*r,v=(h/=d)*e+s*r;this.center.move(t,g,m,v);var y=Math.exp(this.computedRadius[0]);y=Math.max(1e-4,y+n),this.radius.set(t,Math.log(y))},p.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},p.setMatrix=function(t,e,r,n){var a=1;&quot;number&quot;==typeof r&amp;&amp;(a=0|r),(a&lt;0||a&gt;3)&amp;&amp;(a=1);var o=(a+2)%3;e||(this.recalcMatrix(t),e=this.computedMatrix);var s=e[a],l=e[a+4],f=e[a+8];if(n){var h=Math.abs(s),p=Math.abs(l),d=Math.abs(f),g=Math.max(h,p,d);h===g?(s=s&lt;0?-1:1,l=f=0):d===g?(f=f&lt;0?-1:1,s=l=0):(l=l&lt;0?-1:1,s=f=0)}else{var m=c(s,l,f);s/=m,l/=m,f/=m}var v,y,x=e[o],b=e[o+4],_=e[o+8],w=x*s+b*l+_*f,T=c(x-=s*w,b-=l*w,_-=f*w),k=l*(_/=T)-f*(b/=T),M=f*(x/=T)-s*_,A=s*b-l*x,S=c(k,M,A);if(k/=S,M/=S,A/=S,this.center.jump(t,H,G,Y),this.radius.idle(t),this.up.jump(t,s,l,f),this.right.jump(t,x,b,_),2===a){var E=e[1],C=e[5],L=e[9],I=E*x+C*b+L*_,P=E*k+C*M+L*A;v=R&lt;0?-Math.PI/2:Math.PI/2,y=Math.atan2(P,I)}else{var z=e[2],O=e[6],D=e[10],R=z*s+O*l+D*f,F=z*x+O*b+D*_,B=z*k+O*M+D*A;v=Math.asin(u(R)),y=Math.atan2(B,F)}this.angle.jump(t,y,v),this.recalcMatrix(t);var N=e[2],j=e[6],U=e[10],V=this.computedMatrix;i(V,e);var q=V[15],H=V[12]/q,G=V[13]/q,Y=V[14]/q,W=Math.exp(this.computedRadius[0]);this.center.jump(t,H-N*W,G-j*W,Y-U*W)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(t){this.center.idle(t),this.up.idle(t),this.right.idle(t),this.radius.idle(t),this.angle.idle(t)},p.flush=function(t){this.center.flush(t),this.up.flush(t),this.right.flush(t),this.radius.flush(t),this.angle.flush(t)},p.setDistance=function(t,e){e&gt;0&amp;&amp;this.radius.set(t,Math.log(e))},p.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||this.computedCenter;var i=(n=n||this.computedUp)[0],a=n[1],o=n[2],s=c(i,a,o);if(!(s&lt;1e-6)){i/=s,a/=s,o/=s;var l=e[0]-r[0],f=e[1]-r[1],h=e[2]-r[2],p=c(l,f,h);if(!(p&lt;1e-6)){l/=p,f/=p,h/=p;var d=this.computedRight,g=d[0],m=d[1],v=d[2],y=i*g+a*m+o*v,x=c(g-=y*i,m-=y*a,v-=y*o);if(!(x&lt;.01&amp;&amp;(x=c(g=a*h-o*f,m=o*l-i*h,v=i*f-a*l))&lt;1e-6)){g/=x,m/=x,v/=x,this.up.set(t,i,a,o),this.right.set(t,g,m,v),this.center.set(t,r[0],r[1],r[2]),this.radius.set(t,Math.log(p));var b=a*v-o*m,_=o*g-i*v,w=i*m-a*g,T=c(b,_,w),k=i*l+a*f+o*h,M=g*l+m*f+v*h,A=(b/=T)*l+(_/=T)*f+(w/=T)*h,S=Math.asin(u(k)),E=Math.atan2(A,M),C=this.angle._state,L=C[C.length-1],I=C[C.length-2];L%=2*Math.PI;var P=Math.abs(L+2*Math.PI-E),z=Math.abs(L-E),O=Math.abs(L-2*Math.PI-E);P&lt;z&amp;&amp;(L+=2*Math.PI),O&lt;z&amp;&amp;(L-=2*Math.PI),this.angle.jump(this.angle.lastT(),L,I),this.angle.set(t,E,S)}}}}},{&quot;filtered-vector&quot;:242,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/rotate&quot;:299,&quot;gl-vec3/cross&quot;:365,&quot;gl-vec3/dot&quot;:370,&quot;gl-vec3/normalize&quot;:387}],582:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var i=t*e,a=n*t,o=a-(a-t),s=t-o,l=n*e,c=l-(l-e),u=e-c,f=s*u-(i-o*c-s*c-o*u);if(r)return r[0]=f,r[1]=i,r;return[f,i]};var n=+(Math.pow(2,27)+1)},{}],583:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n=t+e,i=n-t,a=e-i,o=t-(n-i);if(r)return r[0]=o+a,r[1]=n,r;return[o+a,n]}},{}],584:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../prototype/is&quot;);e.exports=function(t){if(&quot;function&quot;!=typeof t)return!1;if(!hasOwnProperty.call(t,&quot;length&quot;))return!1;try{if(&quot;number&quot;!=typeof t.length)return!1;if(&quot;function&quot;!=typeof t.call)return!1;if(&quot;function&quot;!=typeof t.apply)return!1}catch(t){return!1}return!n(t)}},{&quot;../prototype/is&quot;:591}],585:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i=t(&quot;../object/is&quot;),a=t(&quot;../string/coerce&quot;),o=t(&quot;./to-short-string&quot;),s=function(t,e){return t.replace(&quot;%v&quot;,o(e))};e.exports=function(t,e,r){if(!i(r))throw new TypeError(s(e,t));if(!n(t)){if(&quot;default&quot;in r)return r.default;if(r.isOptional)return null}var o=a(r.errorMessage);throw n(o)||(o=e),new TypeError(s(o,t))}},{&quot;../object/is&quot;:588,&quot;../string/coerce&quot;:592,&quot;../value/is&quot;:594,&quot;./to-short-string&quot;:587}],586:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){try{return t.toString()}catch(e){try{return String(t)}catch(t){return null}}}},{}],587:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./safe-to-string&quot;),i=/[\n\r\u2028\u2029]/g;e.exports=function(t){var e=n(t);return null===e?&quot;&lt;Non-coercible to string value&gt;&quot;:(e.length&gt;100&amp;&amp;(e=e.slice(0,99)+&quot;\u2026&quot;),e=e.replace(i,(function(t){switch(t){case&quot;\n&quot;:return&quot;\\n&quot;;case&quot;\r&quot;:return&quot;\\r&quot;;case&quot;\u2028&quot;:return&quot;\\u2028&quot;;case&quot;\u2029&quot;:return&quot;\\u2029&quot;;default:throw new Error(&quot;Unexpected character&quot;)}})))}},{&quot;./safe-to-string&quot;:586}],588:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i={object:!0,function:!0,undefined:!0};e.exports=function(t){return!!n(t)&amp;&amp;hasOwnProperty.call(i,typeof t)}},{&quot;../value/is&quot;:594}],589:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/resolve-exception&quot;),i=t(&quot;./is&quot;);e.exports=function(t){return i(t)?t:n(t,&quot;%v is not a plain function&quot;,arguments[1])}},{&quot;../lib/resolve-exception&quot;:585,&quot;./is&quot;:590}],590:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../function/is&quot;),i=/^\s*class[\s{/}]/,a=Function.prototype.toString;e.exports=function(t){return!!n(t)&amp;&amp;!i.test(a.call(t))}},{&quot;../function/is&quot;:584}],591:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../object/is&quot;);e.exports=function(t){if(!n(t))return!1;try{return!!t.constructor&amp;&amp;t.constructor.prototype===t}catch(t){return!1}}},{&quot;../object/is&quot;:588}],592:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i=t(&quot;../object/is&quot;),a=Object.prototype.toString;e.exports=function(t){if(!n(t))return null;if(i(t)){var e=t.toString;if(&quot;function&quot;!=typeof e)return null;if(e===a)return null}try{return&quot;&quot;+t}catch(t){return null}}},{&quot;../object/is&quot;:588,&quot;../value/is&quot;:594}],593:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/resolve-exception&quot;),i=t(&quot;./is&quot;);e.exports=function(t){return i(t)?t:n(t,&quot;Cannot use %v&quot;,arguments[1])}},{&quot;../lib/resolve-exception&quot;:585,&quot;./is&quot;:594}],594:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return null!=t}},{}],595:[function(t,e,r){(function(e){(function(){&quot;use strict&quot;;var n=t(&quot;bit-twiddle&quot;),i=t(&quot;dup&quot;),a=t(&quot;buffer&quot;).Buffer;e.__TYPEDARRAY_POOL||(e.__TYPEDARRAY_POOL={UINT8:i([32,0]),UINT16:i([32,0]),UINT32:i([32,0]),BIGUINT64:i([32,0]),INT8:i([32,0]),INT16:i([32,0]),INT32:i([32,0]),BIGINT64:i([32,0]),FLOAT:i([32,0]),DOUBLE:i([32,0]),DATA:i([32,0]),UINT8C:i([32,0]),BUFFER:i([32,0])});var o=&quot;undefined&quot;!=typeof Uint8ClampedArray,s=&quot;undefined&quot;!=typeof BigUint64Array,l=&quot;undefined&quot;!=typeof BigInt64Array,c=e.__TYPEDARRAY_POOL;c.UINT8C||(c.UINT8C=i([32,0])),c.BIGUINT64||(c.BIGUINT64=i([32,0])),c.BIGINT64||(c.BIGINT64=i([32,0])),c.BUFFER||(c.BUFFER=i([32,0]));var u=c.DATA,f=c.BUFFER;function h(t){if(t){var e=t.length||t.byteLength,r=n.log2(e);u[r].push(t)}}function p(t){t=n.nextPow2(t);var e=n.log2(t),r=u[e];return r.length&gt;0?r.pop():new ArrayBuffer(t)}function d(t){return new Uint8Array(p(t),0,t)}function g(t){return new Uint16Array(p(2*t),0,t)}function m(t){return new Uint32Array(p(4*t),0,t)}function v(t){return new Int8Array(p(t),0,t)}function y(t){return new Int16Array(p(2*t),0,t)}function x(t){return new Int32Array(p(4*t),0,t)}function b(t){return new Float32Array(p(4*t),0,t)}function _(t){return new Float64Array(p(8*t),0,t)}function w(t){return o?new Uint8ClampedArray(p(t),0,t):d(t)}function T(t){return s?new BigUint64Array(p(8*t),0,t):null}function k(t){return l?new BigInt64Array(p(8*t),0,t):null}function M(t){return new DataView(p(t),0,t)}function A(t){t=n.nextPow2(t);var e=n.log2(t),r=f[e];return r.length&gt;0?r.pop():new a(t)}r.free=function(t){if(a.isBuffer(t))f[n.log2(t.length)].push(t);else{if(&quot;[object ArrayBuffer]&quot;!==Object.prototype.toString.call(t)&amp;&amp;(t=t.buffer),!t)return;var e=t.length||t.byteLength,r=0|n.log2(e);u[r].push(t)}},r.freeUint8=r.freeUint16=r.freeUint32=r.freeBigUint64=r.freeInt8=r.freeInt16=r.freeInt32=r.freeBigInt64=r.freeFloat32=r.freeFloat=r.freeFloat64=r.freeDouble=r.freeUint8Clamped=r.freeDataView=function(t){h(t.buffer)},r.freeArrayBuffer=h,r.freeBuffer=function(t){f[n.log2(t.length)].push(t)},r.malloc=function(t,e){if(void 0===e||&quot;arraybuffer&quot;===e)return p(t);switch(e){case&quot;uint8&quot;:return d(t);case&quot;uint16&quot;:return g(t);case&quot;uint32&quot;:return m(t);case&quot;int8&quot;:return v(t);case&quot;int16&quot;:return y(t);case&quot;int32&quot;:return x(t);case&quot;float&quot;:case&quot;float32&quot;:return b(t);case&quot;double&quot;:case&quot;float64&quot;:return _(t);case&quot;uint8_clamped&quot;:return w(t);case&quot;bigint64&quot;:return k(t);case&quot;biguint64&quot;:return T(t);case&quot;buffer&quot;:return A(t);case&quot;data&quot;:case&quot;dataview&quot;:return M(t);default:return null}return null},r.mallocArrayBuffer=p,r.mallocUint8=d,r.mallocUint16=g,r.mallocUint32=m,r.mallocInt8=v,r.mallocInt16=y,r.mallocInt32=x,r.mallocFloat32=r.mallocFloat=b,r.mallocFloat64=r.mallocDouble=_,r.mallocUint8Clamped=w,r.mallocBigUint64=T,r.mallocBigInt64=k,r.mallocDataView=M,r.mallocBuffer=A,r.clearCache=function(){for(var t=0;t&lt;32;++t)c.UINT8[t].length=0,c.UINT16[t].length=0,c.UINT32[t].length=0,c.INT8[t].length=0,c.INT16[t].length=0,c.INT32[t].length=0,c.FLOAT[t].length=0,c.DOUBLE[t].length=0,c.BIGUINT64[t].length=0,c.BIGINT64[t].length=0,c.UINT8C[t].length=0,u[t].length=0,f[t].length=0}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;bit-twiddle&quot;:97,buffer:111,dup:176}],596:[function(t,e,r){&quot;use strict&quot;;function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e&lt;t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n;var i=n.prototype;Object.defineProperty(i,&quot;length&quot;,{get:function(){return this.roots.length}}),i.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},i.find=function(t){for(var e=t,r=this.roots;r[t]!==t;)t=r[t];for(;r[e]!==t;){var n=r[e];r[e]=t,e=n}return t},i.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o&lt;s?a[r]=n:s&lt;o?a[n]=r:(a[n]=r,++i[r])}}},{}],597:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return 0===t.length?t:e?(r||t.sort(e),function(t,e){for(var r=1,n=t.length,i=t[0],a=t[0],o=1;o&lt;n;++o)if(a=i,e(i=t[o],a)){if(o===r){r++;continue}t[r++]=i}return t.length=r,t}(t,e)):(r||t.sort(),function(t){for(var e=1,r=t.length,n=t[0],i=t[0],a=1;a&lt;r;++a,i=n)if(i=n,(n=t[a])!==i){if(a===e){e++;continue}t[e++]=n}return t.length=e,t}(t))}},{}],598:[function(t,e,r){var n=/[\'\&quot;]/;e.exports=function(t){return t?(n.test(t.charAt(0))&amp;&amp;(t=t.substr(1)),n.test(t.charAt(t.length-1))&amp;&amp;(t=t.substr(0,t.length-1)),t):&quot;&quot;}},{}],599:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){Array.isArray(r)||(r=[].slice.call(arguments,2));for(var n=0,i=r.length;n&lt;i;n++){var a=r[n];for(var o in a)if((void 0===e[o]||Array.isArray(e[o])||t[o]!==e[o])&amp;&amp;o in e){var s;if(!0===a[o])s=e[o];else{if(!1===a[o])continue;if(&quot;function&quot;==typeof a[o]&amp;&amp;void 0===(s=a[o](e[o],t,e)))continue}t[o]=s}}return t}},{}],600:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){&quot;object&quot;==typeof e&amp;&amp;null!==e||(e={});return n(t,e.canvas||i,e.context||a,e)};var n=t(&quot;./lib/vtext&quot;),i=null,a=null;&quot;undefined&quot;!=typeof document&amp;&amp;((i=document.createElement(&quot;canvas&quot;)).width=8192,i.height=1024,a=i.getContext(&quot;2d&quot;))},{&quot;./lib/vtext&quot;:601}],601:[function(t,e,r){e.exports=function(t,e,r,n){var a=64,o=1.25,s={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};n&amp;&amp;(n.size&amp;&amp;n.size&gt;0&amp;&amp;(a=n.size),n.lineSpacing&amp;&amp;n.lineSpacing&gt;0&amp;&amp;(o=n.lineSpacing),n.styletags&amp;&amp;n.styletags.breaklines&amp;&amp;(s.breaklines=!!n.styletags.breaklines),n.styletags&amp;&amp;n.styletags.bolds&amp;&amp;(s.bolds=!!n.styletags.bolds),n.styletags&amp;&amp;n.styletags.italics&amp;&amp;(s.italics=!!n.styletags.italics),n.styletags&amp;&amp;n.styletags.subscripts&amp;&amp;(s.subscripts=!!n.styletags.subscripts),n.styletags&amp;&amp;n.styletags.superscripts&amp;&amp;(s.superscripts=!!n.styletags.superscripts));return r.font=[n.fontStyle,n.fontVariant,n.fontWeight,a+&quot;px&quot;,n.font].filter((function(t){return t})).join(&quot; &quot;),r.textAlign=&quot;start&quot;,r.textBaseline=&quot;alphabetic&quot;,r.direction=&quot;ltr&quot;,h(function(t,e,r,n,a,o){r=r.replace(/\n/g,&quot;&quot;),r=!0===o.breaklines?r.replace(/\&lt;br\&gt;/g,&quot;\n&quot;):r.replace(/\&lt;br\&gt;/g,&quot; &quot;);var s=&quot;&quot;,l=[];for(p=0;p&lt;r.length;++p)l[p]=s;!0===o.bolds&amp;&amp;(l=c(&quot;b&quot;,&quot;b|&quot;,r,l));!0===o.italics&amp;&amp;(l=c(&quot;i&quot;,&quot;i|&quot;,r,l));!0===o.superscripts&amp;&amp;(l=c(&quot;sup&quot;,&quot;+1&quot;,r,l));!0===o.subscripts&amp;&amp;(l=c(&quot;sub&quot;,&quot;-1&quot;,r,l));var u=[],f=&quot;&quot;;for(p=0;p&lt;r.length;++p)null!==l[p]&amp;&amp;(f+=r[p],u.push(l[p]));var h,p,d,g,m,v=f.split(&quot;\n&quot;),y=v.length,x=Math.round(a*n),b=n,_=2*n,w=0,T=y*x+_;t.height&lt;T&amp;&amp;(t.height=T);e.fillStyle=&quot;#000&quot;,e.fillRect(0,0,t.width,t.height),e.fillStyle=&quot;#fff&quot;;var k=0,M=&quot;&quot;;function A(){if(&quot;&quot;!==M){var t=e.measureText(M).width;e.fillText(M,b+d,_+g),d+=t}}function S(){return Math.round(m)+&quot;px &quot;}function E(t,r){var n=&quot;&quot;+e.font;if(!0===o.subscripts){var i=t.indexOf(&quot;-&quot;),a=r.indexOf(&quot;-&quot;),s=i&gt;-1?parseInt(t[1+i]):0,l=a&gt;-1?parseInt(r[1+a]):0;s!==l&amp;&amp;(n=n.replace(S(),&quot;?px &quot;),m*=Math.pow(.75,l-s),n=n.replace(&quot;?px &quot;,S())),g+=.25*x*(l-s)}if(!0===o.superscripts){var c=t.indexOf(&quot;+&quot;),u=r.indexOf(&quot;+&quot;),f=c&gt;-1?parseInt(t[1+c]):0,h=u&gt;-1?parseInt(r[1+u]):0;f!==h&amp;&amp;(n=n.replace(S(),&quot;?px &quot;),m*=Math.pow(.75,h-f),n=n.replace(&quot;?px &quot;,S())),g-=.25*x*(h-f)}if(!0===o.bolds){var p=t.indexOf(&quot;b|&quot;)&gt;-1,d=r.indexOf(&quot;b|&quot;)&gt;-1;!p&amp;&amp;d&amp;&amp;(n=v?n.replace(&quot;italic &quot;,&quot;italic bold &quot;):&quot;bold &quot;+n),p&amp;&amp;!d&amp;&amp;(n=n.replace(&quot;bold &quot;,&quot;&quot;))}if(!0===o.italics){var v=t.indexOf(&quot;i|&quot;)&gt;-1,y=r.indexOf(&quot;i|&quot;)&gt;-1;!v&amp;&amp;y&amp;&amp;(n=&quot;italic &quot;+n),v&amp;&amp;!y&amp;&amp;(n=n.replace(&quot;italic &quot;,&quot;&quot;))}e.font=n}for(h=0;h&lt;y;++h){var C=v[h]+&quot;\n&quot;;for(d=0,g=h*x,m=n,M=&quot;&quot;,p=0;p&lt;C.length;++p){var L=p+k&lt;u.length?u[p+k]:u[u.length-1];s===L?M+=C[p]:(A(),M=C[p],void 0!==L&amp;&amp;(E(s,L),s=L))}A(),k+=C.length;var I=0|Math.round(d+2*b);w&lt;I&amp;&amp;(w=I)}var P=w,z=_+x*y;return i(e.getImageData(0,0,P,z).data,[z,P,4]).pick(-1,-1,0).transpose(1,0)}(e,r,t,a,o,s),n,a)},e.exports.processPixels=h;var n=t(&quot;surface-nets&quot;),i=t(&quot;ndarray&quot;),a=t(&quot;simplify-planar-graph&quot;),o=t(&quot;clean-pslg&quot;),s=t(&quot;cdt2d&quot;),l=t(&quot;planar-graph-to-polyline&quot;);function c(t,e,r,n){for(var i=&quot;&lt;&quot;+t+&quot;&gt;&quot;,a=&quot;&lt;/&quot;+t+&quot;&gt;&quot;,o=i.length,s=a.length,l=&quot;+&quot;===e[0]||&quot;-&quot;===e[0],c=0,u=-s;c&gt;-1&amp;&amp;-1!==(c=r.indexOf(i,c))&amp;&amp;-1!==(u=r.indexOf(a,c+o))&amp;&amp;!(u&lt;=c);){for(var f=c;f&lt;u+s;++f)if(f&lt;c+o||f&gt;=u)n[f]=null,r=r.substr(0,f)+&quot; &quot;+r.substr(f+1);else if(null!==n[f]){var h=n[f].indexOf(e[0]);-1===h?n[f]+=e:l&amp;&amp;(n[f]=n[f].substr(0,h+1)+(1+parseInt(n[f][h+1]))+n[f].substr(h+2))}var p=c+o,d=r.substr(p,u-p).indexOf(i);c=-1!==d?d:u+s}return n}function u(t,e){var r=n(t,128);return e?a(r.cells,r.positions,.25):{edges:r.cells,positions:r.positions}}function f(t,e,r,n){var i=u(t,n),a=function(t,e,r){for(var n=e.textAlign||&quot;start&quot;,i=e.textBaseline||&quot;alphabetic&quot;,a=[1&lt;&lt;30,1&lt;&lt;30],o=[0,0],s=t.length,l=0;l&lt;s;++l)for(var c=t[l],u=0;u&lt;2;++u)a[u]=0|Math.min(a[u],c[u]),o[u]=0|Math.max(o[u],c[u]);var f=0;switch(n){case&quot;center&quot;:f=-.5*(a[0]+o[0]);break;case&quot;right&quot;:case&quot;end&quot;:f=-o[0];break;case&quot;left&quot;:case&quot;start&quot;:f=-a[0];break;default:throw new Error(&quot;vectorize-text: Unrecognized textAlign: '&quot;+n+&quot;'&quot;)}var h=0;switch(i){case&quot;hanging&quot;:case&quot;top&quot;:h=-a[1];break;case&quot;middle&quot;:h=-.5*(a[1]+o[1]);break;case&quot;alphabetic&quot;:case&quot;ideographic&quot;:h=-3*r;break;case&quot;bottom&quot;:h=-o[1];break;default:throw new Error(&quot;vectorize-text: Unrecoginized textBaseline: '&quot;+i+&quot;'&quot;)}var p=1/r;return&quot;lineHeight&quot;in e?p*=+e.lineHeight:&quot;width&quot;in e?p=e.width/(o[0]-a[0]):&quot;height&quot;in e&amp;&amp;(p=e.height/(o[1]-a[1])),t.map((function(t){return[p*(t[0]+f),p*(t[1]+h)]}))}(i.positions,e,r),c=i.edges,f=&quot;ccw&quot;===e.orientation;if(o(a,c),e.polygons||e.polygon||e.polyline){for(var h=l(c,a),p=new Array(h.length),d=0;d&lt;h.length;++d){for(var g=h[d],m=new Array(g.length),v=0;v&lt;g.length;++v){for(var y=g[v],x=new Array(y.length),b=0;b&lt;y.length;++b)x[b]=a[y[b]].slice();f&amp;&amp;x.reverse(),m[v]=x}p[d]=m}return p}return e.triangles||e.triangulate||e.triangle?{cells:s(a,c,{delaunay:!1,exterior:!1,interior:!0}),positions:a}:{edges:c,positions:a}}function h(t,e,r){try{return f(t,e,r,!0)}catch(t){}try{return f(t,e,r,!1)}catch(t){}return e.polygons||e.polyline||e.polygon?[]:e.triangles||e.triangulate||e.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}},{cdt2d:112,&quot;clean-pslg&quot;:121,ndarray:495,&quot;planar-graph-to-polyline&quot;:514,&quot;simplify-planar-graph&quot;:562,&quot;surface-nets&quot;:570}],602:[function(t,e,r){!function(){&quot;use strict&quot;;if(&quot;undefined&quot;==typeof ses||!ses.ok||ses.ok()){&quot;undefined&quot;!=typeof ses&amp;&amp;(ses.weakMapPermitHostObjects=g);var t=!1;if(&quot;function&quot;==typeof WeakMap){var r=WeakMap;if(&quot;undefined&quot;!=typeof navigator&amp;&amp;/Firefox/.test(navigator.userAgent));else{var n=new r,i=Object.freeze({});if(n.set(i,1),1===n.get(i))return void(e.exports=WeakMap);t=!0}}Object.prototype.hasOwnProperty;var a=Object.getOwnPropertyNames,o=Object.defineProperty,s=Object.isExtensible,l=&quot;weakmap:ident:&quot;+Math.random()+&quot;___&quot;;if(&quot;undefined&quot;!=typeof crypto&amp;&amp;&quot;function&quot;==typeof crypto.getRandomValues&amp;&amp;&quot;function&quot;==typeof ArrayBuffer&amp;&amp;&quot;function&quot;==typeof Uint8Array){var c=new ArrayBuffer(25),u=new Uint8Array(c);crypto.getRandomValues(u),l=&quot;weakmap:rand:&quot;+Array.prototype.map.call(u,(function(t){return(t%36).toString(36)})).join(&quot;&quot;)+&quot;___&quot;}if(o(Object,&quot;getOwnPropertyNames&quot;,{value:function(t){return a(t).filter(m)}}),&quot;getPropertyNames&quot;in Object){var f=Object.getPropertyNames;o(Object,&quot;getPropertyNames&quot;,{value:function(t){return f(t).filter(m)}})}!function(){var t=Object.freeze;o(Object,&quot;freeze&quot;,{value:function(e){return v(e),t(e)}});var e=Object.seal;o(Object,&quot;seal&quot;,{value:function(t){return v(t),e(t)}});var r=Object.preventExtensions;o(Object,&quot;preventExtensions&quot;,{value:function(t){return v(t),r(t)}})}();var h=!1,p=0,d=function(){this instanceof d||x();var t=[],e=[],r=p++;return Object.create(d.prototype,{get___:{value:y((function(n,i){var a,o=v(n);return o?r in o?o[r]:i:(a=t.indexOf(n))&gt;=0?e[a]:i}))},has___:{value:y((function(e){var n=v(e);return n?r in n:t.indexOf(e)&gt;=0}))},set___:{value:y((function(n,i){var a,o=v(n);return o?o[r]=i:(a=t.indexOf(n))&gt;=0?e[a]=i:(a=t.length,e[a]=i,t[a]=n),this}))},delete___:{value:y((function(n){var i,a,o=v(n);return o?r in o&amp;&amp;delete o[r]:!((i=t.indexOf(n))&lt;0)&amp;&amp;(a=t.length-1,t[i]=void 0,e[i]=e[a],t[i]=t[a],t.length=a,e.length=a,!0)}))}})};d.prototype=Object.create(Object.prototype,{get:{value:function(t,e){return this.get___(t,e)},writable:!0,configurable:!0},has:{value:function(t){return this.has___(t)},writable:!0,configurable:!0},set:{value:function(t,e){return this.set___(t,e)},writable:!0,configurable:!0},delete:{value:function(t){return this.delete___(t)},writable:!0,configurable:!0}}),&quot;function&quot;==typeof r?function(){function n(){this instanceof d||x();var e,n=new r,i=void 0,a=!1;return e=t?function(t,e){return n.set(t,e),n.has(t)||(i||(i=new d),i.set(t,e)),this}:function(t,e){if(a)try{n.set(t,e)}catch(r){i||(i=new d),i.set___(t,e)}else n.set(t,e);return this},Object.create(d.prototype,{get___:{value:y((function(t,e){return i?n.has(t)?n.get(t):i.get___(t,e):n.get(t,e)}))},has___:{value:y((function(t){return n.has(t)||!!i&amp;&amp;i.has___(t)}))},set___:{value:y(e)},delete___:{value:y((function(t){var e=!!n.delete(t);return i&amp;&amp;i.delete___(t)||e}))},permitHostObjects___:{value:y((function(t){if(t!==g)throw new Error(&quot;bogus call to permitHostObjects___&quot;);a=!0}))}})}t&amp;&amp;&quot;undefined&quot;!=typeof Proxy&amp;&amp;(Proxy=void 0),n.prototype=d.prototype,e.exports=n,Object.defineProperty(WeakMap.prototype,&quot;constructor&quot;,{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(&quot;undefined&quot;!=typeof Proxy&amp;&amp;(Proxy=void 0),e.exports=d)}function g(t){t.permitHostObjects___&amp;&amp;t.permitHostObjects___(g)}function m(t){return!(&quot;weakmap:&quot;==t.substr(0,&quot;weakmap:&quot;.length)&amp;&amp;&quot;___&quot;===t.substr(t.length-3))}function v(t){if(t!==Object(t))throw new TypeError(&quot;Not an object: &quot;+t);var e=t[l];if(e&amp;&amp;e.key===t)return e;if(s(t)){e={key:t};try{return o(t,l,{value:e,writable:!1,enumerable:!1,configurable:!1}),e}catch(t){return}}}function y(t){return t.prototype=null,Object.freeze(t)}function x(){h||&quot;undefined&quot;==typeof console||(h=!0,console.warn(&quot;WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future.&quot;))}}()},{}],603:[function(t,e,r){var n=t(&quot;./hidden-store.js&quot;);e.exports=function(){var t={};return function(e){if((&quot;object&quot;!=typeof e||null===e)&amp;&amp;&quot;function&quot;!=typeof e)throw new Error(&quot;Weakmap-shim: Key must be object&quot;);var r=e.valueOf(t);return r&amp;&amp;r.identity===t?r:n(e,t)}}},{&quot;./hidden-store.js&quot;:604}],604:[function(t,e,r){e.exports=function(t,e){var r={identity:e},n=t.valueOf;return Object.defineProperty(t,&quot;valueOf&quot;,{value:function(t){return t!==e?n.apply(this,arguments):r},writable:!0}),r}},{}],605:[function(t,e,r){var n=t(&quot;./create-store.js&quot;);e.exports=function(){var t=n();return{get:function(e,r){var n=t(e);return n.hasOwnProperty(&quot;value&quot;)?n.value:r},set:function(e,r){return t(e).value=r,this},has:function(e){return&quot;value&quot;in t(e)},delete:function(e){return delete t(e).value}}}},{&quot;./create-store.js&quot;:603}],606:[function(t,e,r){var n=t(&quot;get-canvas-context&quot;);e.exports=function(t){return n(&quot;webgl&quot;,t)}},{&quot;get-canvas-context&quot;:249}],607:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Chinese&quot;,jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Chinese&quot;,epochs:[&quot;BEC&quot;,&quot;EC&quot;],monthNumbers:function(t,e){if(&quot;string&quot;==typeof t){var r=t.match(l);return r?r[0]:&quot;&quot;}var n=this._validateYear(t),i=t.month(),a=&quot;&quot;+this.toChineseMonth(n,i);return e&amp;&amp;a.length&lt;2&amp;&amp;(a=&quot;0&quot;+a),this.isIntercalaryMonth(n,i)&amp;&amp;(a+=&quot;i&quot;),a},monthNames:function(t){if(&quot;string&quot;==typeof t){var e=t.match(c);return e?e[0]:&quot;&quot;}var r=this._validateYear(t),n=t.month(),i=[&quot;\u4e00\u6708&quot;,&quot;\u4e8c\u6708&quot;,&quot;\u4e09\u6708&quot;,&quot;\u56db\u6708&quot;,&quot;\u4e94\u6708&quot;,&quot;\u516d\u6708&quot;,&quot;\u4e03\u6708&quot;,&quot;\u516b\u6708&quot;,&quot;\u4e5d\u6708&quot;,&quot;\u5341\u6708&quot;,&quot;\u5341\u4e00\u6708&quot;,&quot;\u5341\u4e8c\u6708&quot;][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&amp;&amp;(i=&quot;\u95f0&quot;+i),i},monthNamesShort:function(t){if(&quot;string&quot;==typeof t){var e=t.match(u);return e?e[0]:&quot;&quot;}var r=this._validateYear(t),n=t.month(),i=[&quot;\u4e00&quot;,&quot;\u4e8c&quot;,&quot;\u4e09&quot;,&quot;\u56db&quot;,&quot;\u4e94&quot;,&quot;\u516d&quot;,&quot;\u4e03&quot;,&quot;\u516b&quot;,&quot;\u4e5d&quot;,&quot;\u5341&quot;,&quot;\u5341\u4e00&quot;,&quot;\u5341\u4e8c&quot;][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&amp;&amp;(i=&quot;\u95f0&quot;+i),i},parseMonth:function(t,e){t=this._validateYear(t);var r,n=parseInt(e);if(isNaN(n))&quot;\u95f0&quot;===e[0]&amp;&amp;(r=!0,e=e.substring(1)),&quot;\u6708&quot;===e[e.length-1]&amp;&amp;(e=e.substring(0,e.length-1)),n=1+[&quot;\u4e00&quot;,&quot;\u4e8c&quot;,&quot;\u4e09&quot;,&quot;\u56db&quot;,&quot;\u4e94&quot;,&quot;\u516d&quot;,&quot;\u4e03&quot;,&quot;\u516b&quot;,&quot;\u4e5d&quot;,&quot;\u5341&quot;,&quot;\u5341\u4e00&quot;,&quot;\u5341\u4e8c&quot;].indexOf(e);else{var i=e[e.length-1];r=&quot;i&quot;===i||&quot;I&quot;===i}return this.toMonthIndex(t,n,r)},dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:1,isRTL:!1}},_validateYear:function(t,e){if(t.year&amp;&amp;(t=t.year()),&quot;number&quot;!=typeof t||t&lt;1888||t&gt;2111)throw e.replace(/\{0\}/,this.local.name);return t},toMonthIndex:function(t,e,r){var i=this.intercalaryMonth(t);if(r&amp;&amp;e!==i||e&lt;1||e&gt;12)throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return i?!r&amp;&amp;e&lt;=i?e-1:e:e-1},toChineseMonth:function(t,e){t.year&amp;&amp;(e=(t=t.year()).month());var r=this.intercalaryMonth(t);if(e&lt;0||e&gt;(r?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r?e&lt;r?e+1:e:e+1},intercalaryMonth:function(t){return t=this._validateYear(t),f[t-f[0]]&gt;&gt;13},isIntercalaryMonth:function(t,e){t.year&amp;&amp;(e=(t=t.year()).month());var r=this.intercalaryMonth(t);return!!r&amp;&amp;r===e},leapYear:function(t){return 0!==this.intercalaryMonth(t)},weekOfYear:function(t,e,r){var i,o=this._validateYear(t,n.local.invalidyear),s=h[o-h[0]],l=s&gt;&gt;9&amp;4095,c=s&gt;&gt;5&amp;15,u=31&amp;s;(i=a.newDate(l,c,u)).add(4-(i.dayOfWeek()||7),&quot;d&quot;);var f=this.toJD(t,e,r)-i.toJD();return 1+Math.floor(f/7)},monthsInYear:function(t){return this.leapYear(t)?13:12},daysInMonth:function(t,e){t.year&amp;&amp;(e=t.month(),t=t.year()),t=this._validateYear(t);var r=f[t-f[0]];if(e&gt;(r&gt;&gt;13?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r&amp;1&lt;&lt;12-e?30:29},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,s,r,n.local.invalidDate);t=this._validateYear(i.year()),e=i.month(),r=i.day();var o=this.isIntercalaryMonth(t,e),s=this.toChineseMonth(t,e),l=function(t,e,r,n,i){var a,o,s;if(&quot;object&quot;==typeof t)o=t,a=e||{};else{var l;if(!(&quot;number&quot;==typeof t&amp;&amp;t&gt;=1888&amp;&amp;t&lt;=2111))throw new Error(&quot;Lunar year outside range 1888-2111&quot;);if(!(&quot;number&quot;==typeof e&amp;&amp;e&gt;=1&amp;&amp;e&lt;=12))throw new Error(&quot;Lunar month outside range 1 - 12&quot;);if(!(&quot;number&quot;==typeof r&amp;&amp;r&gt;=1&amp;&amp;r&lt;=30))throw new Error(&quot;Lunar day outside range 1 - 30&quot;);&quot;object&quot;==typeof n?(l=!1,a=n):(l=!!n,a=i||{}),o={year:t,month:e,day:r,isIntercalary:l}}s=o.day-1;var c,u=f[o.year-f[0]],p=u&gt;&gt;13;c=p&amp;&amp;(o.month&gt;p||o.isIntercalary)?o.month:o.month-1;for(var d=0;d&lt;c;d++){s+=u&amp;1&lt;&lt;12-d?30:29}var g=h[o.year-h[0]],m=new Date(g&gt;&gt;9&amp;4095,(g&gt;&gt;5&amp;15)-1,(31&amp;g)+s);return a.year=m.getFullYear(),a.month=1+m.getMonth(),a.day=m.getDate(),a}(t,s,r,o);return a.toJD(l.year,l.month,l.day)},fromJD:function(t){var e=a.fromJD(t),r=function(t,e,r,n){var i,a;if(&quot;object&quot;==typeof t)i=t,a=e||{};else{if(!(&quot;number&quot;==typeof t&amp;&amp;t&gt;=1888&amp;&amp;t&lt;=2111))throw new Error(&quot;Solar year outside range 1888-2111&quot;);if(!(&quot;number&quot;==typeof e&amp;&amp;e&gt;=1&amp;&amp;e&lt;=12))throw new Error(&quot;Solar month outside range 1 - 12&quot;);if(!(&quot;number&quot;==typeof r&amp;&amp;r&gt;=1&amp;&amp;r&lt;=31))throw new Error(&quot;Solar day outside range 1 - 31&quot;);i={year:t,month:e,day:r},a=n||{}}var o=h[i.year-h[0]],s=i.year&lt;&lt;9|i.month&lt;&lt;5|i.day;a.year=s&gt;=o?i.year:i.year-1,o=h[a.year-h[0]];var l,c=new Date(o&gt;&gt;9&amp;4095,(o&gt;&gt;5&amp;15)-1,31&amp;o),u=new Date(i.year,i.month-1,i.day);l=Math.round((u-c)/864e5);var p,d=f[a.year-f[0]];for(p=0;p&lt;13;p++){var g=d&amp;1&lt;&lt;12-p?30:29;if(l&lt;g)break;l-=g}var m=d&gt;&gt;13;!m||p&lt;m?(a.isIntercalary=!1,a.month=1+p):p===m?(a.isIntercalary=!0,a.month=p):(a.isIntercalary=!1,a.month=p);return a.day=1+l,a}(e.year(),e.month(),e.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(t){var e=t.match(s),r=this._validateYear(+e[1]),n=+e[2],i=!!e[3],a=this.toMonthIndex(r,n,i),o=+e[4];return this.newDate(r,a,o)},add:function(t,e,r){var n=t.year(),i=t.month(),a=this.isIntercalaryMonth(n,i),s=this.toChineseMonth(n,i),l=Object.getPrototypeOf(o.prototype).add.call(this,t,e,r);if(&quot;y&quot;===r){var c=l.year(),u=l.month(),f=this.isIntercalaryMonth(c,s),h=a&amp;&amp;f?this.toMonthIndex(c,s,!0):this.toMonthIndex(c,s,!1);h!==u&amp;&amp;l.month(h)}return l}});var s=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,l=/^\d?\d[iI]?/m,c=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?\u6708/m,u=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?/m;n.calendars.chinese=o;var f=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],h=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],608:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Coptic&quot;,jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Coptic&quot;,epochs:[&quot;BAM&quot;,&quot;AM&quot;],monthNames:[&quot;Thout&quot;,&quot;Paopi&quot;,&quot;Hathor&quot;,&quot;Koiak&quot;,&quot;Tobi&quot;,&quot;Meshir&quot;,&quot;Paremhat&quot;,&quot;Paremoude&quot;,&quot;Pashons&quot;,&quot;Paoni&quot;,&quot;Epip&quot;,&quot;Mesori&quot;,&quot;Pi Kogi Enavot&quot;],monthNamesShort:[&quot;Tho&quot;,&quot;Pao&quot;,&quot;Hath&quot;,&quot;Koi&quot;,&quot;Tob&quot;,&quot;Mesh&quot;,&quot;Pat&quot;,&quot;Pad&quot;,&quot;Pash&quot;,&quot;Pao&quot;,&quot;Epi&quot;,&quot;Meso&quot;,&quot;PiK&quot;],dayNames:[&quot;Tkyriaka&quot;,&quot;Pesnau&quot;,&quot;Pshoment&quot;,&quot;Peftoou&quot;,&quot;Ptiou&quot;,&quot;Psoou&quot;,&quot;Psabbaton&quot;],dayNamesShort:[&quot;Tky&quot;,&quot;Pes&quot;,&quot;Psh&quot;,&quot;Pef&quot;,&quot;Pti&quot;,&quot;Pso&quot;,&quot;Psa&quot;],dayNamesMin:[&quot;Tk&quot;,&quot;Pes&quot;,&quot;Psh&quot;,&quot;Pef&quot;,&quot;Pt&quot;,&quot;Pso&quot;,&quot;Psa&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())&lt;0&amp;&amp;t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r&lt;=0&amp;&amp;r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.coptic=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],609:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Discworld&quot;,jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Discworld&quot;,epochs:[&quot;BUC&quot;,&quot;UC&quot;],monthNames:[&quot;Ick&quot;,&quot;Offle&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;Grune&quot;,&quot;August&quot;,&quot;Spune&quot;,&quot;Sektober&quot;,&quot;Ember&quot;,&quot;December&quot;],monthNamesShort:[&quot;Ick&quot;,&quot;Off&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Gru&quot;,&quot;Aug&quot;,&quot;Spu&quot;,&quot;Sek&quot;,&quot;Emb&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Octeday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Oct&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Oc&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:2,isRTL:!1}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),13},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),400},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(t,e,r){return(this._validate(t,e,r,n.local.invalidDate).day()+1)%8},weekDay:function(t,e,r){var n=this.dayOfWeek(t,e,r);return n&gt;=2&amp;&amp;n&lt;=6},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{century:o[Math.floor((i.year()-1)/100)+1]||&quot;&quot;}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year()+(i.year()&lt;0?1:0),e=i.month(),(r=i.day())+(e&gt;1?16:0)+(e&gt;2?32*(e-2):0)+400*(t-1)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t+.5)-Math.floor(this.jdEpoch)-1;var e=Math.floor(t/400)+1;t-=400*(e-1),t+=t&gt;15?16:0;var r=Math.floor(t/32)+1,n=t-32*(r-1)+1;return this.newDate(e&lt;=0?e-1:e,r,n)}});var o={20:&quot;Fruitbat&quot;,21:&quot;Anchovy&quot;};n.calendars.discworld=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],610:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Ethiopian&quot;,jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Ethiopian&quot;,epochs:[&quot;BEE&quot;,&quot;EE&quot;],monthNames:[&quot;Meskerem&quot;,&quot;Tikemet&quot;,&quot;Hidar&quot;,&quot;Tahesas&quot;,&quot;Tir&quot;,&quot;Yekatit&quot;,&quot;Megabit&quot;,&quot;Miazia&quot;,&quot;Genbot&quot;,&quot;Sene&quot;,&quot;Hamle&quot;,&quot;Nehase&quot;,&quot;Pagume&quot;],monthNamesShort:[&quot;Mes&quot;,&quot;Tik&quot;,&quot;Hid&quot;,&quot;Tah&quot;,&quot;Tir&quot;,&quot;Yek&quot;,&quot;Meg&quot;,&quot;Mia&quot;,&quot;Gen&quot;,&quot;Sen&quot;,&quot;Ham&quot;,&quot;Neh&quot;,&quot;Pag&quot;],dayNames:[&quot;Ehud&quot;,&quot;Segno&quot;,&quot;Maksegno&quot;,&quot;Irob&quot;,&quot;Hamus&quot;,&quot;Arb&quot;,&quot;Kidame&quot;],dayNamesShort:[&quot;Ehu&quot;,&quot;Seg&quot;,&quot;Mak&quot;,&quot;Iro&quot;,&quot;Ham&quot;,&quot;Arb&quot;,&quot;Kid&quot;],dayNamesMin:[&quot;Eh&quot;,&quot;Se&quot;,&quot;Ma&quot;,&quot;Ir&quot;,&quot;Ha&quot;,&quot;Ar&quot;,&quot;Ki&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())&lt;0&amp;&amp;t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r&lt;=0&amp;&amp;r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.ethiopian=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],611:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Hebrew&quot;,jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Hebrew&quot;,epochs:[&quot;BAM&quot;,&quot;AM&quot;],monthNames:[&quot;Nisan&quot;,&quot;Iyar&quot;,&quot;Sivan&quot;,&quot;Tammuz&quot;,&quot;Av&quot;,&quot;Elul&quot;,&quot;Tishrei&quot;,&quot;Cheshvan&quot;,&quot;Kislev&quot;,&quot;Tevet&quot;,&quot;Shevat&quot;,&quot;Adar&quot;,&quot;Adar II&quot;],monthNamesShort:[&quot;Nis&quot;,&quot;Iya&quot;,&quot;Siv&quot;,&quot;Tam&quot;,&quot;Av&quot;,&quot;Elu&quot;,&quot;Tis&quot;,&quot;Che&quot;,&quot;Kis&quot;,&quot;Tev&quot;,&quot;She&quot;,&quot;Ada&quot;,&quot;Ad2&quot;],dayNames:[&quot;Yom Rishon&quot;,&quot;Yom Sheni&quot;,&quot;Yom Shlishi&quot;,&quot;Yom Revi'i&quot;,&quot;Yom Chamishi&quot;,&quot;Yom Shishi&quot;,&quot;Yom Shabbat&quot;],dayNamesShort:[&quot;Ris&quot;,&quot;She&quot;,&quot;Shl&quot;,&quot;Rev&quot;,&quot;Cha&quot;,&quot;Shi&quot;,&quot;Sha&quot;],dayNamesMin:[&quot;Ri&quot;,&quot;She&quot;,&quot;Shl&quot;,&quot;Re&quot;,&quot;Ch&quot;,&quot;Shi&quot;,&quot;Sha&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return this._leapYear(e.year())},_leapYear:function(t){return o(7*(t=t&lt;0?t+1:t)+1,19)&lt;7},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),this._leapYear(t.year?t.year():t)?13:12},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),this.toJD(-1===t?1:t+1,7,1)-this.toJD(t,7,1)},daysInMonth:function(t,e){return t.year&amp;&amp;(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),12===e&amp;&amp;this.leapYear(t)||8===e&amp;&amp;5===o(this.daysInYear(t),10)?30:9===e&amp;&amp;3===o(this.daysInYear(t),10)?29:this.daysPerMonth[e-1]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{yearType:(this.leapYear(i)?&quot;embolismic&quot;:&quot;common&quot;)+&quot; &quot;+[&quot;deficient&quot;,&quot;regular&quot;,&quot;complete&quot;][this.daysInYear(i)%10-3]}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t&lt;=0?t+1:t,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(e&lt;7){for(var s=7;s&lt;=this.monthsInYear(t);s++)o+=this.daysInMonth(t,s);for(s=1;s&lt;e;s++)o+=this.daysInMonth(t,s)}else for(s=7;s&lt;e;s++)o+=this.daysInMonth(t,s);return o},_delay1:function(t){var e=Math.floor((235*t-234)/19),r=12084+13753*e,n=29*e+Math.floor(r/25920);return o(3*(n+1),7)&lt;3&amp;&amp;n++,n},_delay2:function(t){var e=this._delay1(t-1),r=this._delay1(t);return this._delay1(t+1)-r==356?2:r-e==382?1:0},fromJD:function(t){t=Math.floor(t)+.5;for(var e=Math.floor(98496*(t-this.jdEpoch)/35975351)-1;t&gt;=this.toJD(-1===e?1:e+1,7,1);)e++;for(var r=t&lt;this.toJD(e,1,1)?7:1;t&gt;this.toJD(e,r,this.daysInMonth(e,r));)r++;var n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.hebrew=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],612:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Islamic&quot;,jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Islamic&quot;,epochs:[&quot;BH&quot;,&quot;AH&quot;],monthNames:[&quot;Muharram&quot;,&quot;Safar&quot;,&quot;Rabi' al-awwal&quot;,&quot;Rabi' al-thani&quot;,&quot;Jumada al-awwal&quot;,&quot;Jumada al-thani&quot;,&quot;Rajab&quot;,&quot;Sha'aban&quot;,&quot;Ramadan&quot;,&quot;Shawwal&quot;,&quot;Dhu al-Qi'dah&quot;,&quot;Dhu al-Hijjah&quot;],monthNamesShort:[&quot;Muh&quot;,&quot;Saf&quot;,&quot;Rab1&quot;,&quot;Rab2&quot;,&quot;Jum1&quot;,&quot;Jum2&quot;,&quot;Raj&quot;,&quot;Sha'&quot;,&quot;Ram&quot;,&quot;Shaw&quot;,&quot;DhuQ&quot;,&quot;DhuH&quot;],dayNames:[&quot;Yawm al-ahad&quot;,&quot;Yawm al-ithnayn&quot;,&quot;Yawm ath-thulaathaa'&quot;,&quot;Yawm al-arbi'aa'&quot;,&quot;Yawm al-kham\u012bs&quot;,&quot;Yawm al-jum'a&quot;,&quot;Yawm as-sabt&quot;],dayNamesShort:[&quot;Aha&quot;,&quot;Ith&quot;,&quot;Thu&quot;,&quot;Arb&quot;,&quot;Kha&quot;,&quot;Jum&quot;,&quot;Sab&quot;],dayNamesMin:[&quot;Ah&quot;,&quot;It&quot;,&quot;Th&quot;,&quot;Ar&quot;,&quot;Kh&quot;,&quot;Ju&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!1}},leapYear:function(t){return(11*this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year()+14)%30&lt;11},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return this.leapYear(t)?355:354},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),t=t&lt;=0?t+1:t,(r=i.day())+Math.ceil(29.5*(e-1))+354*(t-1)+Math.floor((3+11*t)/30)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t)+.5;var e=Math.floor((30*(t-this.jdEpoch)+10646)/10631);e=e&lt;=0?e-1:e;var r=Math.min(12,Math.ceil((t-29-this.toJD(e,1,1))/29.5)+1),n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.islamic=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],613:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Julian&quot;,jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Julian&quot;,epochs:[&quot;BC&quot;,&quot;AD&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;mm/dd/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()&lt;0?e.year()+1:e.year())%4==0},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),r=i.day(),t&lt;0&amp;&amp;t++,e&lt;=2&amp;&amp;(t--,e+=12),Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r-1524.5},fromJD:function(t){var e=Math.floor(t+.5)+1524,r=Math.floor((e-122.1)/365.25),n=Math.floor(365.25*r),i=Math.floor((e-n)/30.6001),a=i-Math.floor(i&lt;14?1:13),o=r-Math.floor(a&gt;2?4716:4715),s=e-n-Math.floor(30.6001*i);return o&lt;=0&amp;&amp;o--,this.newDate(o,a,s)}}),n.calendars.julian=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],614:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}function s(t,e){return o(t-1,e)+1}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Mayan&quot;,jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{&quot;&quot;:{name:&quot;Mayan&quot;,epochs:[&quot;&quot;,&quot;&quot;],monthNames:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;],monthNamesShort:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;],dayNames:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],dayNamesShort:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],dayNamesMin:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],digits:null,dateFormat:&quot;YYYY.m.d&quot;,firstDay:0,isRTL:!1,haabMonths:[&quot;Pop&quot;,&quot;Uo&quot;,&quot;Zip&quot;,&quot;Zotz&quot;,&quot;Tzec&quot;,&quot;Xul&quot;,&quot;Yaxkin&quot;,&quot;Mol&quot;,&quot;Chen&quot;,&quot;Yax&quot;,&quot;Zac&quot;,&quot;Ceh&quot;,&quot;Mac&quot;,&quot;Kankin&quot;,&quot;Muan&quot;,&quot;Pax&quot;,&quot;Kayab&quot;,&quot;Cumku&quot;,&quot;Uayeb&quot;],tzolkinMonths:[&quot;Imix&quot;,&quot;Ik&quot;,&quot;Akbal&quot;,&quot;Kan&quot;,&quot;Chicchan&quot;,&quot;Cimi&quot;,&quot;Manik&quot;,&quot;Lamat&quot;,&quot;Muluc&quot;,&quot;Oc&quot;,&quot;Chuen&quot;,&quot;Eb&quot;,&quot;Ben&quot;,&quot;Ix&quot;,&quot;Men&quot;,&quot;Cib&quot;,&quot;Caban&quot;,&quot;Etznab&quot;,&quot;Cauac&quot;,&quot;Ahau&quot;]}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},formatYear:function(t){t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year();var e=Math.floor(t/400);return t%=400,t+=t&lt;0?400:0,e+&quot;.&quot;+Math.floor(t/20)+&quot;.&quot;+t%20},forYear:function(t){if((t=t.split(&quot;.&quot;)).length&lt;3)throw&quot;Invalid Mayan year&quot;;for(var e=0,r=0;r&lt;t.length;r++){var n=parseInt(t[r],10);if(Math.abs(n)&gt;19||r&gt;0&amp;&amp;n&lt;0)throw&quot;Invalid Mayan year&quot;;e=20*e+n}return e},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),18},weekOfYear:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),0},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),360},daysInMonth:function(t,e){return this._validate(t,e,this.minDay,n.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate).day()},weekDay:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),!0},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate).toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(t){var e=o((t-=this.jdEpoch)+8+340,365);return[Math.floor(e/20)+1,o(e,20)]},_toTzolkin:function(t){return[s((t-=this.jdEpoch)+20,20),s(t+4,13)]},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return i.day()+20*i.month()+360*i.year()+this.jdEpoch},fromJD:function(t){t=Math.floor(t)+.5-this.jdEpoch;var e=Math.floor(t/360);t%=360,t+=t&lt;0?360:0;var r=Math.floor(t/20),n=t%20;return this.newDate(e,r,n)}}),n.calendars.mayan=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],615:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar;var o=n.instance(&quot;gregorian&quot;);i(a.prototype,{name:&quot;Nanakshahi&quot;,jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Nanakshahi&quot;,epochs:[&quot;BN&quot;,&quot;AN&quot;],monthNames:[&quot;Chet&quot;,&quot;Vaisakh&quot;,&quot;Jeth&quot;,&quot;Harh&quot;,&quot;Sawan&quot;,&quot;Bhadon&quot;,&quot;Assu&quot;,&quot;Katak&quot;,&quot;Maghar&quot;,&quot;Poh&quot;,&quot;Magh&quot;,&quot;Phagun&quot;],monthNamesShort:[&quot;Che&quot;,&quot;Vai&quot;,&quot;Jet&quot;,&quot;Har&quot;,&quot;Saw&quot;,&quot;Bha&quot;,&quot;Ass&quot;,&quot;Kat&quot;,&quot;Mgr&quot;,&quot;Poh&quot;,&quot;Mgh&quot;,&quot;Pha&quot;],dayNames:[&quot;Somvaar&quot;,&quot;Mangalvar&quot;,&quot;Budhvaar&quot;,&quot;Veervaar&quot;,&quot;Shukarvaar&quot;,&quot;Sanicharvaar&quot;,&quot;Etvaar&quot;],dayNamesShort:[&quot;Som&quot;,&quot;Mangal&quot;,&quot;Budh&quot;,&quot;Veer&quot;,&quot;Shukar&quot;,&quot;Sanichar&quot;,&quot;Et&quot;],dayNamesMin:[&quot;So&quot;,&quot;Ma&quot;,&quot;Bu&quot;,&quot;Ve&quot;,&quot;Sh&quot;,&quot;Sa&quot;,&quot;Et&quot;],digits:null,dateFormat:&quot;dd-mm-yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear);return o.leapYear(e.year()+(e.year()&lt;1?1:0)+1469)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(1-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidMonth);(t=i.year())&lt;0&amp;&amp;t++;for(var a=i.day(),s=1;s&lt;i.month();s++)a+=this.daysPerMonth[s-1];return a+o.toJD(t+1468,3,13)},fromJD:function(t){t=Math.floor(t+.5);for(var e=Math.floor((t-(this.jdEpoch-1))/366);t&gt;=this.toJD(e+1,1,1);)e++;for(var r=t-Math.floor(this.toJD(e,1,1)+.5)+1,n=1;r&gt;this.daysInMonth(e,n);)r-=this.daysInMonth(e,n),n++;return this.newDate(e,n,r)}}),n.calendars.nanakshahi=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],616:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Nepali&quot;,jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{&quot;&quot;:{name:&quot;Nepali&quot;,epochs:[&quot;BBS&quot;,&quot;ABS&quot;],monthNames:[&quot;Baisakh&quot;,&quot;Jestha&quot;,&quot;Ashadh&quot;,&quot;Shrawan&quot;,&quot;Bhadra&quot;,&quot;Ashwin&quot;,&quot;Kartik&quot;,&quot;Mangsir&quot;,&quot;Paush&quot;,&quot;Mangh&quot;,&quot;Falgun&quot;,&quot;Chaitra&quot;],monthNamesShort:[&quot;Bai&quot;,&quot;Je&quot;,&quot;As&quot;,&quot;Shra&quot;,&quot;Bha&quot;,&quot;Ash&quot;,&quot;Kar&quot;,&quot;Mang&quot;,&quot;Pau&quot;,&quot;Ma&quot;,&quot;Fal&quot;,&quot;Chai&quot;],dayNames:[&quot;Aaitabaar&quot;,&quot;Sombaar&quot;,&quot;Manglbaar&quot;,&quot;Budhabaar&quot;,&quot;Bihibaar&quot;,&quot;Shukrabaar&quot;,&quot;Shanibaar&quot;],dayNamesShort:[&quot;Aaita&quot;,&quot;Som&quot;,&quot;Mangl&quot;,&quot;Budha&quot;,&quot;Bihi&quot;,&quot;Shukra&quot;,&quot;Shani&quot;],dayNamesMin:[&quot;Aai&quot;,&quot;So&quot;,&quot;Man&quot;,&quot;Bu&quot;,&quot;Bi&quot;,&quot;Shu&quot;,&quot;Sha&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:1,isRTL:!1}},leapYear:function(t){return this.daysInYear(t)!==this.daysPerYear},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){if(t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),&quot;undefined&quot;==typeof this.NEPALI_CALENDAR_DATA[t])return this.daysPerYear;for(var e=0,r=this.minMonth;r&lt;=12;r++)e+=this.NEPALI_CALENDAR_DATA[t][r];return e},daysInMonth:function(t,e){return t.year&amp;&amp;(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),&quot;undefined&quot;==typeof this.NEPALI_CALENDAR_DATA[t]?this.daysPerMonth[e-1]:this.NEPALI_CALENDAR_DATA[t][e]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=n.instance(),o=0,s=e,l=t;this._createMissingCalendarData(t);var c=t-(s&gt;9||9===s&amp;&amp;r&gt;=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(9!==e&amp;&amp;(o=r,s--);9!==s;)s&lt;=0&amp;&amp;(s=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][s],s--;return 9===e?(o+=r-this.NEPALI_CALENDAR_DATA[l][0])&lt;0&amp;&amp;(o+=a.daysInYear(c)):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(c,1,1).add(o,&quot;d&quot;).toJD()},fromJD:function(t){var e=n.instance().fromJD(t),r=e.year(),i=e.dayOfYear(),a=r+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i&gt;l;)++o&gt;12&amp;&amp;(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var c=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,c)},_createMissingCalendarData:function(t){var e=this.daysPerMonth.slice(0);e.unshift(17);for(var r=t-1;r&lt;t+2;r++)&quot;undefined&quot;==typeof this.NEPALI_CALENDAR_DATA[r]&amp;&amp;(this.NEPALI_CALENDAR_DATA[r]=e)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),n.calendars.nepali=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],617:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Persian&quot;,jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Persian&quot;,epochs:[&quot;BP&quot;,&quot;AP&quot;],monthNames:[&quot;Farvardin&quot;,&quot;Ordibehesht&quot;,&quot;Khordad&quot;,&quot;Tir&quot;,&quot;Mordad&quot;,&quot;Shahrivar&quot;,&quot;Mehr&quot;,&quot;Aban&quot;,&quot;Azar&quot;,&quot;Day&quot;,&quot;Bahman&quot;,&quot;Esfand&quot;],monthNamesShort:[&quot;Far&quot;,&quot;Ord&quot;,&quot;Kho&quot;,&quot;Tir&quot;,&quot;Mor&quot;,&quot;Sha&quot;,&quot;Meh&quot;,&quot;Aba&quot;,&quot;Aza&quot;,&quot;Day&quot;,&quot;Bah&quot;,&quot;Esf&quot;],dayNames:[&quot;Yekshambe&quot;,&quot;Doshambe&quot;,&quot;Seshambe&quot;,&quot;Ch\xe6harshambe&quot;,&quot;Panjshambe&quot;,&quot;Jom'e&quot;,&quot;Shambe&quot;],dayNamesShort:[&quot;Yek&quot;,&quot;Do&quot;,&quot;Se&quot;,&quot;Ch\xe6&quot;,&quot;Panj&quot;,&quot;Jom&quot;,&quot;Sha&quot;],dayNamesMin:[&quot;Ye&quot;,&quot;Do&quot;,&quot;Se&quot;,&quot;Ch&quot;,&quot;Pa&quot;,&quot;Jo&quot;,&quot;Sh&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 682*((e.year()-(e.year()&gt;0?474:473))%2820+474+38)%2816&lt;682},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-(n.dayOfWeek()+1)%7,&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t-(t&gt;=0?474:473),s=474+o(a,2820);return r+(e&lt;=7?31*(e-1):30*(e-1)+6)+Math.floor((682*s-110)/2816)+365*(s-1)+1029983*Math.floor(a/2820)+this.jdEpoch-1},fromJD:function(t){var e=(t=Math.floor(t)+.5)-this.toJD(475,1,1),r=Math.floor(e/1029983),n=o(e,1029983),i=2820;if(1029982!==n){var a=Math.floor(n/366),s=o(n,366);i=Math.floor((2134*a+2816*s+2815)/1028522)+a+1}var l=i+2820*r+474;l=l&lt;=0?l-1:l;var c=t-this.toJD(l,1,1)+1,u=c&lt;=186?Math.ceil(c/31):Math.ceil((c-6)/30),f=t-this.toJD(l,u,1)+1;return this.newDate(l,u,f)}}),n.calendars.persian=a,n.calendars.jalali=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],618:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Taiwan&quot;,jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Taiwan&quot;,epochs:[&quot;BROC&quot;,&quot;ROC&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:1,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t+this.yearsOffset+(t&gt;=-this.yearsOffset&amp;&amp;t&lt;=-1?1:0)},_g2tYear:function(t){return t-this.yearsOffset-(t&gt;=1&amp;&amp;t&lt;=this.yearsOffset?1:0)}}),n.calendars.taiwan=o},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],619:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Thai&quot;,jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Thai&quot;,epochs:[&quot;BBE&quot;,&quot;BE&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t-this.yearsOffset-(t&gt;=1&amp;&amp;t&lt;=this.yearsOffset?1:0)},_g2tYear:function(t){return t+this.yearsOffset+(t&gt;=-this.yearsOffset&amp;&amp;t&lt;=-1?1:0)}}),n.calendars.thai=o},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],620:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;UmmAlQura&quot;,hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Umm al-Qura&quot;,epochs:[&quot;BH&quot;,&quot;AH&quot;],monthNames:[&quot;Al-Muharram&quot;,&quot;Safar&quot;,&quot;Rabi' al-awwal&quot;,&quot;Rabi' Al-Thani&quot;,&quot;Jumada Al-Awwal&quot;,&quot;Jumada Al-Thani&quot;,&quot;Rajab&quot;,&quot;Sha'aban&quot;,&quot;Ramadan&quot;,&quot;Shawwal&quot;,&quot;Dhu al-Qi'dah&quot;,&quot;Dhu al-Hijjah&quot;],monthNamesShort:[&quot;Muh&quot;,&quot;Saf&quot;,&quot;Rab1&quot;,&quot;Rab2&quot;,&quot;Jum1&quot;,&quot;Jum2&quot;,&quot;Raj&quot;,&quot;Sha'&quot;,&quot;Ram&quot;,&quot;Shaw&quot;,&quot;DhuQ&quot;,&quot;DhuH&quot;],dayNames:[&quot;Yawm al-Ahad&quot;,&quot;Yawm al-Ithnain&quot;,&quot;Yawm al-Thal\u0101th\u0101\u2019&quot;,&quot;Yawm al-Arba\u2018\u0101\u2019&quot;,&quot;Yawm al-Kham\u012bs&quot;,&quot;Yawm al-Jum\u2018a&quot;,&quot;Yawm al-Sabt&quot;],dayNamesMin:[&quot;Ah&quot;,&quot;Ith&quot;,&quot;Th&quot;,&quot;Ar&quot;,&quot;Kh&quot;,&quot;Ju&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!0}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 355===this.daysInYear(e.year())},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){for(var e=0,r=1;r&lt;=12;r++)e+=this.daysInMonth(t,r);return e},daysInMonth:function(t,e){for(var r=this._validate(t,e,this.minDay,n.local.invalidMonth).toJD()-24e5+.5,i=0,a=0;a&lt;o.length;a++){if(o[a]&gt;r)return o[i]-o[i-1];i++}return 30},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate),a=12*(i.year()-1)+i.month()-15292;return i.day()+o[a-1]-1+24e5-.5},fromJD:function(t){for(var e=t-24e5+.5,r=0,n=0;n&lt;o.length&amp;&amp;!(o[n]&gt;e);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),s=a+1,l=i-12*a,c=e-o[r-1]+1;return this.newDate(s,l,c)},isValid:function(t,e,r){var i=n.baseCalendar.prototype.isValid.apply(this,arguments);return i&amp;&amp;(i=(t=null!=t.year?t.year:t)&gt;=1276&amp;&amp;t&lt;=1500),i},_validate:function(t,e,r,i){var a=n.baseCalendar.prototype._validate.apply(this,arguments);if(a.year&lt;1276||a.year&gt;1500)throw i.replace(/\{0\}/,this.local.name);return a}}),n.calendars.ummalqura=a;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],621:[function(t,e,r){var n=t(&quot;object-assign&quot;);function i(){this.regionalOptions=[],this.regionalOptions[&quot;&quot;]={invalidCalendar:&quot;Calendar {0} not found&quot;,invalidDate:&quot;Invalid {0} date&quot;,invalidMonth:&quot;Invalid {0} month&quot;,invalidYear:&quot;Invalid {0} year&quot;,differentCalendars:&quot;Cannot mix {0} and {1} dates&quot;},this.local=this.regionalOptions[&quot;&quot;],this.calendars={},this._localCals={}}function a(t,e,r,n){if(this._calendar=t,this._year=e,this._month=r,this._day=n,0===this._calendar._validateLevel&amp;&amp;!this._calendar.isValid(this._year,this._month,this._day))throw(c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function o(t,e){return&quot;000000&quot;.substring(0,e-(t=&quot;&quot;+t).length)+t}function s(){this.shortYearCutoff=&quot;+10&quot;}function l(t){this.local=this.regionalOptions[t]||this.regionalOptions[&quot;&quot;]}n(i.prototype,{instance:function(t,e){t=(t||&quot;gregorian&quot;).toLowerCase(),e=e||&quot;&quot;;var r=this._localCals[t+&quot;-&quot;+e];if(!r&amp;&amp;this.calendars[t]&amp;&amp;(r=new this.calendars[t](e),this._localCals[t+&quot;-&quot;+e]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[&quot;&quot;].invalidCalendar).replace(/\{0\}/,t);return r},newDate:function(t,e,r,n,i){return(n=(null!=t&amp;&amp;t.year?t.calendar():&quot;string&quot;==typeof n?this.instance(n,i):n)||this.instance()).newDate(t,e,r)},substituteDigits:function(t){return function(e){return(e+&quot;&quot;).replace(/[0-9]/g,(function(e){return t[e]}))}},substituteChineseDigits:function(t,e){return function(r){for(var n=&quot;&quot;,i=0;r&gt;0;){var a=r%10;n=(0===a?&quot;&quot;:t[a]+e[i])+n,i++,r=Math.floor(r/10)}return 0===n.indexOf(t[1]+e[1])&amp;&amp;(n=n.substr(1)),n||t[0]}}}),n(a.prototype,{newDate:function(t,e,r){return this._calendar.newDate(null==t?this:t,e,r)},year:function(t){return 0===arguments.length?this._year:this.set(t,&quot;y&quot;)},month:function(t){return 0===arguments.length?this._month:this.set(t,&quot;m&quot;)},day:function(t){return 0===arguments.length?this._day:this.set(t,&quot;d&quot;)},date:function(t,e,r){if(!this._calendar.isValid(t,e,r))throw(c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=t,this._month=e,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(t,e){return this._calendar.add(this,t,e)},set:function(t,e){return this._calendar.set(this,t,e)},compareTo:function(t){if(this._calendar.name!==t._calendar.name)throw(c.local.differentCalendars||c.regionalOptions[&quot;&quot;].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,t._calendar.local.name);var e=this._year!==t._year?this._year-t._year:this._month!==t._month?this.monthOfYear()-t.monthOfYear():this._day-t._day;return 0===e?0:e&lt;0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(t){return this._calendar.fromJD(t)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(t){return this._calendar.fromJSDate(t)},toString:function(){return(this.year()&lt;0?&quot;-&quot;:&quot;&quot;)+o(Math.abs(this.year()),4)+&quot;-&quot;+o(this.month(),2)+&quot;-&quot;+o(this.day(),2)}}),n(s.prototype,{_validateLevel:0,newDate:function(t,e,r){return null==t?this.today():(t.year&amp;&amp;(this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),r=t.day(),e=t.month(),t=t.year()),new a(this,t,e,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear).year()&lt;0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return(e.year()&lt;0?&quot;-&quot;:&quot;&quot;)+o(Math.abs(e.year()),4)},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear),12},monthOfYear:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(t,e){var r=(e+this.firstMonth-2*this.minMonth)%this.monthsInYear(t)+this.minMonth;return this._validate(t,r,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth),r},daysInYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return this.leapYear(e)?366:365},dayOfYear:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(t,e,r){return this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),{}},add:function(t,e,r){return this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),this._correctAdd(t,this._add(t,e,r),e,r)},_add:function(t,e,r){if(this._validateLevel++,&quot;d&quot;===r||&quot;w&quot;===r){var n=t.toJD()+e*(&quot;w&quot;===r?this.daysInWeek():1),i=t.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=t.year()+(&quot;y&quot;===r?e:0),o=t.monthOfYear()+(&quot;m&quot;===r?e:0);i=t.day();&quot;y&quot;===r?(t.month()!==this.fromMonthOfYear(a,o)&amp;&amp;(o=this.newDate(a,t.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):&quot;m&quot;===r&amp;&amp;(!function(t){for(;o&lt;t.minMonth;)a--,o+=t.monthsInYear(a);for(var e=t.monthsInYear(a);o&gt;e-1+t.minMonth;)a++,o-=e,e=t.monthsInYear(a)}(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var s=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,s}catch(t){throw this._validateLevel--,t}},_correctAdd:function(t,e,r,n){if(!(this.hasYearZero||&quot;y&quot;!==n&amp;&amp;&quot;m&quot;!==n||0!==e[0]&amp;&amp;t.year()&gt;0==e[0]&gt;0)){var i={y:[1,1,&quot;y&quot;],m:[1,this.monthsInYear(-1),&quot;m&quot;],w:[this.daysInWeek(),this.daysInYear(-1),&quot;d&quot;],d:[1,this.daysInYear(-1),&quot;d&quot;]}[n],a=r&lt;0?-1:1;e=this._add(t,r*i[0]+a*i[1],i[2])}return t.date(e[0],e[1],e[2])},set:function(t,e,r){this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);var n=&quot;y&quot;===r?e:t.year(),i=&quot;m&quot;===r?e:t.month(),a=&quot;d&quot;===r?e:t.day();return&quot;y&quot;!==r&amp;&amp;&quot;m&quot;!==r||(a=Math.min(a,this.daysInMonth(n,i))),t.date(n,i,a)},isValid:function(t,e,r){this._validateLevel++;var n=this.hasYearZero||0!==t;if(n){var i=this.newDate(t,e,this.minDay);n=e&gt;=this.minMonth&amp;&amp;e-this.minMonth&lt;this.monthsInYear(i)&amp;&amp;r&gt;=this.minDay&amp;&amp;r-this.minDay&lt;this.daysInMonth(i)}return this._validateLevel--,n},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return c.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(t){return this.fromJD(c.instance().fromJSDate(t).toJD())},_validate:function(t,e,r,n){if(t.year){if(0===this._validateLevel&amp;&amp;this.name!==t.calendar().name)throw(c.local.differentCalendars||c.regionalOptions[&quot;&quot;].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,t.calendar().local.name);return t}try{if(this._validateLevel++,1===this._validateLevel&amp;&amp;!this.isValid(t,e,r))throw n.replace(/\{0\}/,this.local.name);var i=this.newDate(t,e,r);return this._validateLevel--,i}catch(t){throw this._validateLevel--,t}}}),l.prototype=new s,n(l.prototype,{name:&quot;Gregorian&quot;,jdEpoch:1721425.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Gregorian&quot;,epochs:[&quot;BCE&quot;,&quot;CE&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;mm/dd/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==0&amp;&amp;(t%100!=0||t%400==0)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);t=n.year(),e=n.month(),r=n.day(),t&lt;0&amp;&amp;t++,e&lt;3&amp;&amp;(e+=12,t--);var i=Math.floor(t/100),a=2-i+Math.floor(i/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r+a-1524.5},fromJD:function(t){var e=Math.floor(t+.5),r=Math.floor((e-1867216.25)/36524.25),n=(r=e+1+r-Math.floor(r/4))+1524,i=Math.floor((n-122.1)/365.25),a=Math.floor(365.25*i),o=Math.floor((n-a)/30.6001),s=n-a-Math.floor(30.6001*o),l=o-(o&gt;13.5?13:1),c=i-(l&gt;2.5?4716:4715);return c&lt;=0&amp;&amp;c--,this.newDate(c,l,s)},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()&gt;12?i.getHours()+2:0),i},fromJSDate:function(t){return this.newDate(t.getFullYear(),t.getMonth()+1,t.getDate())}});var c=e.exports=new i;c.cdate=a,c.baseCalendar=s,c.calendars.gregorian=l},{&quot;object-assign&quot;:499}],622:[function(t,e,r){var n=t(&quot;object-assign&quot;),i=t(&quot;./main&quot;);n(i.regionalOptions[&quot;&quot;],{invalidArguments:&quot;Invalid arguments&quot;,invalidFormat:&quot;Cannot format a date from another calendar&quot;,missingNumberAt:&quot;Missing number at position {0}&quot;,unknownNameAt:&quot;Unknown name at position {0}&quot;,unexpectedLiteralAt:&quot;Unexpected literal at position {0}&quot;,unexpectedText:&quot;Additional text found at end&quot;}),i.local=i.regionalOptions[&quot;&quot;],n(i.cdate.prototype,{formatDate:function(t,e){return&quot;string&quot;!=typeof t&amp;&amp;(e=t,t=&quot;&quot;),this._calendar.formatDate(t||&quot;&quot;,this,e)}}),n(i.baseCalendar.prototype,{UNIX_EPOCH:i.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:i.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:&quot;yyyy-mm-dd&quot;,COOKIE:&quot;D, dd M yyyy&quot;,FULL:&quot;DD, MM d, yyyy&quot;,ISO_8601:&quot;yyyy-mm-dd&quot;,JULIAN:&quot;J&quot;,RFC_822:&quot;D, d M yy&quot;,RFC_850:&quot;DD, dd-M-yy&quot;,RFC_1036:&quot;D, d M yy&quot;,RFC_1123:&quot;D, d M yyyy&quot;,RFC_2822:&quot;D, d M yyyy&quot;,RSS:&quot;D, d M yy&quot;,TICKS:&quot;!&quot;,TIMESTAMP:&quot;@&quot;,W3C:&quot;yyyy-mm-dd&quot;,formatDate:function(t,e,r){if(&quot;string&quot;!=typeof t&amp;&amp;(r=e,e=t,t=&quot;&quot;),!e)return&quot;&quot;;if(e.calendar()!==this)throw i.local.invalidFormat||i.regionalOptions[&quot;&quot;].invalidFormat;t=t||this.local.dateFormat;for(var n,a,o,s,l=(r=r||{}).dayNamesShort||this.local.dayNamesShort,c=r.dayNames||this.local.dayNames,u=r.monthNumbers||this.local.monthNumbers,f=r.monthNamesShort||this.local.monthNamesShort,h=r.monthNames||this.local.monthNames,p=(r.calculateWeek||this.local.calculateWeek,function(e,r){for(var n=1;w+n&lt;t.length&amp;&amp;t.charAt(w+n)===e;)n++;return w+=n-1,Math.floor(n/(r||1))&gt;1}),d=function(t,e,r,n){var i=&quot;&quot;+e;if(p(t,n))for(;i.length&lt;r;)i=&quot;0&quot;+i;return i},g=this,m=function(t){return&quot;function&quot;==typeof u?u.call(g,t,p(&quot;m&quot;)):x(d(&quot;m&quot;,t.month(),2))},v=function(t,e){return e?&quot;function&quot;==typeof h?h.call(g,t):h[t.month()-g.minMonth]:&quot;function&quot;==typeof f?f.call(g,t):f[t.month()-g.minMonth]},y=this.local.digits,x=function(t){return r.localNumbers&amp;&amp;y?y(t):t},b=&quot;&quot;,_=!1,w=0;w&lt;t.length;w++)if(_)&quot;'&quot;!==t.charAt(w)||p(&quot;'&quot;)?b+=t.charAt(w):_=!1;else switch(t.charAt(w)){case&quot;d&quot;:b+=x(d(&quot;d&quot;,e.day(),2));break;case&quot;D&quot;:b+=(n=&quot;D&quot;,a=e.dayOfWeek(),o=l,s=c,p(n)?s[a]:o[a]);break;case&quot;o&quot;:b+=d(&quot;o&quot;,e.dayOfYear(),3);break;case&quot;w&quot;:b+=d(&quot;w&quot;,e.weekOfYear(),2);break;case&quot;m&quot;:b+=m(e);break;case&quot;M&quot;:b+=v(e,p(&quot;M&quot;));break;case&quot;y&quot;:b+=p(&quot;y&quot;,2)?e.year():(e.year()%100&lt;10?&quot;0&quot;:&quot;&quot;)+e.year()%100;break;case&quot;Y&quot;:p(&quot;Y&quot;,2),b+=e.formatYear();break;case&quot;J&quot;:b+=e.toJD();break;case&quot;@&quot;:b+=(e.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case&quot;!&quot;:b+=(e.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case&quot;'&quot;:p(&quot;'&quot;)?b+=&quot;'&quot;:_=!0;break;default:b+=t.charAt(w)}return b},parseDate:function(t,e,r){if(null==e)throw i.local.invalidArguments||i.regionalOptions[&quot;&quot;].invalidArguments;if(&quot;&quot;===(e=&quot;object&quot;==typeof e?e.toString():e+&quot;&quot;))return null;t=t||this.local.dateFormat;var n=(r=r||{}).shortYearCutoff||this.shortYearCutoff;n=&quot;string&quot;!=typeof n?n:this.today().year()%100+parseInt(n,10);for(var a=r.dayNamesShort||this.local.dayNamesShort,o=r.dayNames||this.local.dayNames,s=r.parseMonth||this.local.parseMonth,l=r.monthNumbers||this.local.monthNumbers,c=r.monthNamesShort||this.local.monthNamesShort,u=r.monthNames||this.local.monthNames,f=-1,h=-1,p=-1,d=-1,g=-1,m=!1,v=!1,y=function(e,r){for(var n=1;A+n&lt;t.length&amp;&amp;t.charAt(A+n)===e;)n++;return A+=n-1,Math.floor(n/(r||1))&gt;1},x=function(t,r){var n=y(t,r),a=[2,3,n?4:2,n?4:2,10,11,20][&quot;oyYJ@!&quot;.indexOf(t)+1],o=new RegExp(&quot;^-?\\d{1,&quot;+a+&quot;}&quot;),s=e.substring(M).match(o);if(!s)throw(i.local.missingNumberAt||i.regionalOptions[&quot;&quot;].missingNumberAt).replace(/\{0\}/,M);return M+=s[0].length,parseInt(s[0],10)},b=this,_=function(){if(&quot;function&quot;==typeof l){y(&quot;m&quot;);var t=l.call(b,e.substring(M));return M+=t.length,t}return x(&quot;m&quot;)},w=function(t,r,n,a){for(var o=y(t,a)?n:r,s=0;s&lt;o.length;s++)if(e.substr(M,o[s].length).toLowerCase()===o[s].toLowerCase())return M+=o[s].length,s+b.minMonth;throw(i.local.unknownNameAt||i.regionalOptions[&quot;&quot;].unknownNameAt).replace(/\{0\}/,M)},T=function(){if(&quot;function&quot;==typeof u){var t=y(&quot;M&quot;)?u.call(b,e.substring(M)):c.call(b,e.substring(M));return M+=t.length,t}return w(&quot;M&quot;,c,u)},k=function(){if(e.charAt(M)!==t.charAt(A))throw(i.local.unexpectedLiteralAt||i.regionalOptions[&quot;&quot;].unexpectedLiteralAt).replace(/\{0\}/,M);M++},M=0,A=0;A&lt;t.length;A++)if(v)&quot;'&quot;!==t.charAt(A)||y(&quot;'&quot;)?k():v=!1;else switch(t.charAt(A)){case&quot;d&quot;:d=x(&quot;d&quot;);break;case&quot;D&quot;:w(&quot;D&quot;,a,o);break;case&quot;o&quot;:g=x(&quot;o&quot;);break;case&quot;w&quot;:x(&quot;w&quot;);break;case&quot;m&quot;:p=_();break;case&quot;M&quot;:p=T();break;case&quot;y&quot;:var S=A;m=!y(&quot;y&quot;,2),A=S,h=x(&quot;y&quot;,2);break;case&quot;Y&quot;:h=x(&quot;Y&quot;,2);break;case&quot;J&quot;:f=x(&quot;J&quot;)+.5,&quot;.&quot;===e.charAt(M)&amp;&amp;(M++,x(&quot;J&quot;));break;case&quot;@&quot;:f=x(&quot;@&quot;)/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case&quot;!&quot;:f=x(&quot;!&quot;)/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case&quot;*&quot;:M=e.length;break;case&quot;'&quot;:y(&quot;'&quot;)?k():v=!0;break;default:k()}if(M&lt;e.length)throw i.local.unexpectedText||i.regionalOptions[&quot;&quot;].unexpectedText;if(-1===h?h=this.today().year():h&lt;100&amp;&amp;m&amp;&amp;(h+=-1===n?1900:this.today().year()-this.today().year()%100-(h&lt;=n?0:100)),&quot;string&quot;==typeof p&amp;&amp;(p=s.call(this,h,p)),g&gt;-1){p=1,d=g;for(var E=this.daysInMonth(h,p);d&gt;E;E=this.daysInMonth(h,p))p++,d-=E}return f&gt;-1?this.fromJD(f):this.newDate(h,p,d)},determineDate:function(t,e,r,n,i){r&amp;&amp;&quot;object&quot;!=typeof r&amp;&amp;(i=n,n=r,r=null),&quot;string&quot;!=typeof n&amp;&amp;(i=n,n=&quot;&quot;);var a=this;return e=e?e.newDate():null,t=null==t?e:&quot;string&quot;==typeof t?function(t){try{return a.parseDate(n,t,i)}catch(t){}for(var e=((t=t.toLowerCase()).match(/^c/)&amp;&amp;r?r.newDate():null)||a.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,s=o.exec(t);s;)e.add(parseInt(s[1],10),s[2]||&quot;d&quot;),s=o.exec(t);return e}(t):&quot;number&quot;==typeof t?isNaN(t)||t===1/0||t===-1/0?e:a.today().add(t,&quot;d&quot;):a.newDate(t)}})},{&quot;./main&quot;:621,&quot;object-assign&quot;:499}],623:[function(t,e,r){e.exports=t(&quot;cwise-compiler&quot;)({args:[&quot;array&quot;,{offset:[1],array:0},&quot;scalar&quot;,&quot;scalar&quot;,&quot;index&quot;],pre:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},post:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},body:{body:&quot;{\n        var _inline_1_da = _inline_1_arg0_ - _inline_1_arg3_\n        var _inline_1_db = _inline_1_arg1_ - _inline_1_arg3_\n        if((_inline_1_da &gt;= 0) !== (_inline_1_db &gt;= 0)) {\n          _inline_1_arg2_.push(_inline_1_arg4_[0] + 0.5 + 0.5 * (_inline_1_da + _inline_1_db) / (_inline_1_da - _inline_1_db))\n        }\n      }&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg2_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg3_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg4_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[],localVars:[&quot;_inline_1_da&quot;,&quot;_inline_1_db&quot;]},funcName:&quot;zeroCrossings&quot;})},{&quot;cwise-compiler&quot;:151}],624:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=[];return e=+e||0,n(t.hi(t.shape[0]-1),r,e),r};var n=t(&quot;./lib/zc-core&quot;)},{&quot;./lib/zc-core&quot;:623}],625:[function(t,e,r){&quot;use strict&quot;;e.exports=[{path:&quot;&quot;,backoff:0},{path:&quot;M-2.4,-3V3L0.6,0Z&quot;,backoff:.6},{path:&quot;M-3.7,-2.5V2.5L1.3,0Z&quot;,backoff:1.3},{path:&quot;M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z&quot;,backoff:1.55},{path:&quot;M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z&quot;,backoff:1.6},{path:&quot;M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z&quot;,backoff:2},{path:&quot;M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z&quot;,backoff:0,noRotate:!0},{path:&quot;M2,2V-2H-2V2Z&quot;,backoff:0,noRotate:!0}]},{}],626:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./arrow_paths&quot;),i=t(&quot;../../plots/font_attributes&quot;),a=t(&quot;../../plots/cartesian/constants&quot;),o=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=o(&quot;annotation&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},text:{valType:&quot;string&quot;,editType:&quot;calc+arraydraw&quot;},textangle:{valType:&quot;angle&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},font:i({editType:&quot;calc+arraydraw&quot;,colorEditType:&quot;arraydraw&quot;}),width:{valType:&quot;number&quot;,min:1,dflt:null,editType:&quot;calc+arraydraw&quot;},height:{valType:&quot;number&quot;,min:1,dflt:null,editType:&quot;calc+arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;center&quot;,editType:&quot;arraydraw&quot;},valign:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;,editType:&quot;arraydraw&quot;},bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},bordercolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},borderpad:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc+arraydraw&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc+arraydraw&quot;},showarrow:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},arrowcolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},arrowhead:{valType:&quot;integer&quot;,min:0,max:n.length,dflt:1,editType:&quot;arraydraw&quot;},startarrowhead:{valType:&quot;integer&quot;,min:0,max:n.length,dflt:1,editType:&quot;arraydraw&quot;},arrowside:{valType:&quot;flaglist&quot;,flags:[&quot;end&quot;,&quot;start&quot;],extras:[&quot;none&quot;],dflt:&quot;end&quot;,editType:&quot;arraydraw&quot;},arrowsize:{valType:&quot;number&quot;,min:.3,dflt:1,editType:&quot;calc+arraydraw&quot;},startarrowsize:{valType:&quot;number&quot;,min:.3,dflt:1,editType:&quot;calc+arraydraw&quot;},arrowwidth:{valType:&quot;number&quot;,min:.1,editType:&quot;calc+arraydraw&quot;},standoff:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc+arraydraw&quot;},startstandoff:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc+arraydraw&quot;},ax:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},ay:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},axref:{valType:&quot;enumerated&quot;,dflt:&quot;pixel&quot;,values:[&quot;pixel&quot;,a.idRegex.x.toString()],editType:&quot;calc&quot;},ayref:{valType:&quot;enumerated&quot;,dflt:&quot;pixel&quot;,values:[&quot;pixel&quot;,a.idRegex.y.toString()],editType:&quot;calc&quot;},xref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,a.idRegex.x.toString()],editType:&quot;calc&quot;},x:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;auto&quot;,editType:&quot;calc+arraydraw&quot;},xshift:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},yref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,a.idRegex.y.toString()],editType:&quot;calc&quot;},y:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;auto&quot;,editType:&quot;calc+arraydraw&quot;},yshift:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},clicktoshow:{valType:&quot;enumerated&quot;,values:[!1,&quot;onoff&quot;,&quot;onout&quot;],dflt:!1,editType:&quot;arraydraw&quot;},xclick:{valType:&quot;any&quot;,editType:&quot;arraydraw&quot;},yclick:{valType:&quot;any&quot;,editType:&quot;arraydraw&quot;},hovertext:{valType:&quot;string&quot;,editType:&quot;arraydraw&quot;},hoverlabel:{bgcolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},bordercolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},font:i({editType:&quot;arraydraw&quot;}),editType:&quot;arraydraw&quot;},captureevents:{valType:&quot;boolean&quot;,editType:&quot;arraydraw&quot;},editType:&quot;calc&quot;,_deprecated:{ref:{valType:&quot;string&quot;,editType:&quot;calc&quot;}}})},{&quot;../../constants/axis_placeable_objects&quot;:746,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834,&quot;../../plots/font_attributes&quot;:856,&quot;./arrow_paths&quot;:625}],627:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;./draw&quot;).draw;function o(t){var e=t._fullLayout;n.filterVisible(e.annotations).forEach((function(e){var r=i.getFromId(t,e.xref),n=i.getFromId(t,e.yref),a=i.getRefType(e.xref),o=i.getRefType(e.yref);e._extremes={},&quot;range&quot;===a&amp;&amp;s(e,r),&quot;range&quot;===o&amp;&amp;s(e,n)}))}function s(t,e){var r,n=e._id,a=n.charAt(0),o=t[a],s=t[&quot;a&quot;+a],l=t[a+&quot;ref&quot;],c=t[&quot;a&quot;+a+&quot;ref&quot;],u=t[&quot;_&quot;+a+&quot;padplus&quot;],f=t[&quot;_&quot;+a+&quot;padminus&quot;],h={x:1,y:-1}[a]*t[a+&quot;shift&quot;],p=3*t.arrowsize*t.arrowwidth||0,d=p+h,g=p-h,m=3*t.startarrowsize*t.arrowwidth||0,v=m+h,y=m-h;if(c===l){var x=i.findExtremes(e,[e.r2c(o)],{ppadplus:d,ppadminus:g}),b=i.findExtremes(e,[e.r2c(s)],{ppadplus:Math.max(u,v),ppadminus:Math.max(f,y)});r={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else v=s?v+s:v,y=s?y-s:y,r=i.findExtremes(e,[e.r2c(o)],{ppadplus:Math.max(u,d,v),ppadminus:Math.max(f,g,y)});t._extremes[n]=r}e.exports=function(t){var e=t._fullLayout;if(n.filterVisible(e.annotations).length&amp;&amp;t._fullData.length)return n.syncOrAsync([a,o],t)}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./draw&quot;:632}],628:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plot_api/plot_template&quot;).arrayEditor;function o(t,e){var r,n,i,a,o,l,c,u=t._fullLayout.annotations,f=[],h=[],p=[],d=(e||[]).length;for(r=0;r&lt;u.length;r++)if(a=(i=u[r]).clicktoshow){for(n=0;n&lt;d;n++)if(l=(o=e[n]).xaxis,c=o.yaxis,l._id===i.xref&amp;&amp;c._id===i.yref&amp;&amp;l.d2r(o.x)===s(i._xclick,l)&amp;&amp;c.d2r(o.y)===s(i._yclick,c)){(i.visible?&quot;onout&quot;===a?h:p:f).push(r);break}n===d&amp;&amp;i.visible&amp;&amp;&quot;onout&quot;===a&amp;&amp;h.push(r)}return{on:f,off:h,explicitOff:p}}function s(t,e){return&quot;log&quot;===e.type?e.l2r(t):e.d2r(t)}e.exports={hasClickToShow:function(t,e){var r=o(t,e);return r.on.length&gt;0||r.explicitOff.length&gt;0},onClick:function(t,e){var r,s,l=o(t,e),c=l.on,u=l.off.concat(l.explicitOff),f={},h=t._fullLayout.annotations;if(!c.length&amp;&amp;!u.length)return;for(r=0;r&lt;c.length;r++)(s=a(t.layout,&quot;annotations&quot;,h[c[r]])).modifyItem(&quot;visible&quot;,!0),n.extendFlat(f,s.getUpdateObj());for(r=0;r&lt;u.length;r++)(s=a(t.layout,&quot;annotations&quot;,h[u[r]])).modifyItem(&quot;visible&quot;,!1),n.extendFlat(f,s.getUpdateObj());return i.call(&quot;update&quot;,t,{},f)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../registry&quot;:911}],629:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;);e.exports=function(t,e,r,a){a(&quot;opacity&quot;);var o=a(&quot;bgcolor&quot;),s=a(&quot;bordercolor&quot;),l=i.opacity(s);a(&quot;borderpad&quot;);var c=a(&quot;borderwidth&quot;),u=a(&quot;showarrow&quot;);if(a(&quot;text&quot;,u?&quot; &quot;:r._dfltTitle.annotation),a(&quot;textangle&quot;),n.coerceFont(a,&quot;font&quot;,r.font),a(&quot;width&quot;),a(&quot;align&quot;),a(&quot;height&quot;)&amp;&amp;a(&quot;valign&quot;),u){var f,h,p=a(&quot;arrowside&quot;);-1!==p.indexOf(&quot;end&quot;)&amp;&amp;(f=a(&quot;arrowhead&quot;),h=a(&quot;arrowsize&quot;)),-1!==p.indexOf(&quot;start&quot;)&amp;&amp;(a(&quot;startarrowhead&quot;,f),a(&quot;startarrowsize&quot;,h)),a(&quot;arrowcolor&quot;,l?e.bordercolor:i.defaultLine),a(&quot;arrowwidth&quot;,2*(l&amp;&amp;c||1)),a(&quot;standoff&quot;),a(&quot;startstandoff&quot;)}var d=a(&quot;hovertext&quot;),g=r.hoverlabel||{};if(d){var m=a(&quot;hoverlabel.bgcolor&quot;,g.bgcolor||(i.opacity(o)?i.rgb(o):i.defaultLine)),v=a(&quot;hoverlabel.bordercolor&quot;,g.bordercolor||i.contrast(m));n.coerceFont(a,&quot;hoverlabel.font&quot;,{family:g.font.family,size:g.font.size,color:g.font.color||v})}a(&quot;captureevents&quot;,!!d)}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643}],630:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib/to_log_range&quot;);e.exports=function(t,e,r,a){e=e||{};var o=&quot;log&quot;===r&amp;&amp;&quot;linear&quot;===e.type,s=&quot;linear&quot;===r&amp;&amp;&quot;log&quot;===e.type;if(o||s)for(var l,c,u=t._fullLayout.annotations,f=e._id.charAt(0),h=0;h&lt;u.length;h++)l=u[h],c=&quot;annotations[&quot;+h+&quot;].&quot;,l[f+&quot;ref&quot;]===e._id&amp;&amp;p(f),l[&quot;a&quot;+f+&quot;ref&quot;]===e._id&amp;&amp;p(&quot;a&quot;+f);function p(t){var r=l[t],s=null;s=o?i(r,e.range):Math.pow(10,r),n(s)||(s=null),a(c+t,s)}}},{&quot;../../lib/to_log_range&quot;:805,&quot;fast-isnumeric&quot;:241}],631:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./common_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r){function a(r,i){return n.coerce(t,e,s,r,i)}var l=a(&quot;visible&quot;),c=a(&quot;clicktoshow&quot;);if(l||c){o(t,e,r,a);for(var u=e.showarrow,f=[&quot;x&quot;,&quot;y&quot;],h=[-10,-30],p={_fullLayout:r},d=0;d&lt;2;d++){var g=f[d],m=i.coerceRef(t,e,p,g,&quot;&quot;,&quot;paper&quot;);if(&quot;paper&quot;!==m)i.getFromId(p,m)._annIndices.push(e._index);if(i.coercePosition(e,p,a,m,g,.5),u){var v=&quot;a&quot;+g,y=i.coerceRef(t,e,p,v,&quot;pixel&quot;,[&quot;pixel&quot;,&quot;paper&quot;]);&quot;pixel&quot;!==y&amp;&amp;y!==m&amp;&amp;(y=e[v]=&quot;pixel&quot;);var x=&quot;pixel&quot;===y?h[d]:.4;i.coercePosition(e,p,a,y,v,x)}a(g+&quot;anchor&quot;),a(g+&quot;shift&quot;)}if(n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),u&amp;&amp;n.noneOrAll(t,e,[&quot;ax&quot;,&quot;ay&quot;]),c){var b=a(&quot;xclick&quot;),_=a(&quot;yclick&quot;);e._xclick=void 0===b?e.x:i.cleanPosition(b,p,e.xref),e._yclick=void 0===_?e.y:i.cleanPosition(_,p,e.yref)}}}e.exports=function(t,e){a(t,e,{name:&quot;annotations&quot;,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:626,&quot;./common_defaults&quot;:629}],632:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;../color&quot;),u=t(&quot;../drawing&quot;),f=t(&quot;../fx&quot;),h=t(&quot;../../lib/svg_text_utils&quot;),p=t(&quot;../../lib/setcursor&quot;),d=t(&quot;../dragelement&quot;),g=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,m=t(&quot;./draw_arrow_head&quot;);function v(t,e){var r=t._fullLayout.annotations[e]||{},n=l.getFromId(t,r.xref),i=l.getFromId(t,r.yref);n&amp;&amp;n.setScale(),i&amp;&amp;i.setScale(),x(t,r,e,!1,n,i)}function y(t,e,r,n,i){var a=i[r],o=i[r+&quot;ref&quot;],s=-1!==r.indexOf(&quot;y&quot;),c=&quot;domain&quot;===l.getRefType(o),u=s?n.h:n.w;return t?c?a+(s?-e:e)/t._length:t.p2r(t.r2p(a)+e):a+(s?-e:e)/u}function x(t,e,r,a,v,x){var b,_,w=t._fullLayout,T=t._fullLayout._size,k=t._context.edits;a?(b=&quot;annotation-&quot;+a,_=a+&quot;.annotations&quot;):(b=&quot;annotation&quot;,_=&quot;annotations&quot;);var M=g(t.layout,_,e),A=M.modifyBase,S=M.modifyItem,E=M.getUpdateObj;w._infolayer.selectAll(&quot;.&quot;+b+'[data-index=&quot;'+r+'&quot;]').remove();var C=&quot;clip&quot;+w._uid+&quot;_ann&quot;+r;if(e._input&amp;&amp;!1!==e.visible){var L={x:{},y:{}},I=+e.textangle||0,P=w._infolayer.append(&quot;g&quot;).classed(b,!0).attr(&quot;data-index&quot;,String(r)).style(&quot;opacity&quot;,e.opacity),z=P.append(&quot;g&quot;).classed(&quot;annotation-text-g&quot;,!0),O=k[e.showarrow?&quot;annotationTail&quot;:&quot;annotationPosition&quot;],D=e.captureevents||k.annotationText||O,R=z.append(&quot;g&quot;).style(&quot;pointer-events&quot;,D?&quot;all&quot;:null).call(p,&quot;pointer&quot;).on(&quot;click&quot;,(function(){t._dragging=!1,t.emit(&quot;plotly_clickannotation&quot;,Y(n.event))}));e.hovertext&amp;&amp;R.on(&quot;mouseover&quot;,(function(){var r=e.hoverlabel,n=r.font,i=this.getBoundingClientRect(),a=t.getBoundingClientRect();f.loneHover({x0:i.left-a.left,x1:i.right-a.left,y:(i.top+i.bottom)/2-a.top,text:e.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:w._hoverlayer.node(),outerContainer:w._paper.node(),gd:t})})).on(&quot;mouseout&quot;,(function(){f.loneUnhover(w._hoverlayer.node())}));var F=e.borderwidth,B=e.borderpad,N=F+B,j=R.append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bg&quot;).style(&quot;stroke-width&quot;,F+&quot;px&quot;).call(c.stroke,e.bordercolor).call(c.fill,e.bgcolor),U=e.width||e.height,V=w._topclips.selectAll(&quot;#&quot;+C).data(U?[0]:[]);V.enter().append(&quot;clipPath&quot;).classed(&quot;annclip&quot;,!0).attr(&quot;id&quot;,C).append(&quot;rect&quot;),V.exit().remove();var q=e.font,H=w._meta?o.templateString(e.text,w._meta):e.text,G=R.append(&quot;text&quot;).classed(&quot;annotation-text&quot;,!0).text(H);k.annotationText?G.call(h.makeEditable,{delegate:R,gd:t}).call(W).on(&quot;edit&quot;,(function(r){e.text=r,this.call(W),S(&quot;text&quot;,r),v&amp;&amp;v.autorange&amp;&amp;A(v._name+&quot;.autorange&quot;,!0),x&amp;&amp;x.autorange&amp;&amp;A(x._name+&quot;.autorange&quot;,!0),i.call(&quot;_guiRelayout&quot;,t,E())})):G.call(W)}else n.selectAll(&quot;#&quot;+C).remove();function Y(t){var n={index:r,annotation:e._input,fullAnnotation:e,event:t};return a&amp;&amp;(n.subplotId=a),n}function W(r){return r.call(u.font,q).attr({&quot;text-anchor&quot;:{left:&quot;start&quot;,right:&quot;end&quot;}[e.align]||&quot;middle&quot;}),h.convertToTspans(r,t,X),r}function X(){var r=G.selectAll(&quot;a&quot;);1===r.size()&amp;&amp;r.text()===G.text()&amp;&amp;R.insert(&quot;a&quot;,&quot;:first-child&quot;).attr({&quot;xlink:xlink:href&quot;:r.attr(&quot;xlink:href&quot;),&quot;xlink:xlink:show&quot;:r.attr(&quot;xlink:show&quot;)}).style({cursor:&quot;pointer&quot;}).node().appendChild(j.node());var n=R.select(&quot;.annotation-text-math-group&quot;),f=!n.empty(),g=u.bBox((f?n:G).node()),b=g.width,_=g.height,M=e.width||b,D=e.height||_,B=Math.round(M+2*N),q=Math.round(D+2*N);function H(t,e){return&quot;auto&quot;===e&amp;&amp;(e=t&lt;1/3?&quot;left&quot;:t&gt;2/3?&quot;right&quot;:&quot;center&quot;),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[e]}for(var W=!1,X=[&quot;x&quot;,&quot;y&quot;],Z=0;Z&lt;X.length;Z++){var J,K,Q,$,tt,et=X[Z],rt=e[et+&quot;ref&quot;]||et,nt=e[&quot;a&quot;+et+&quot;ref&quot;],it={x:v,y:x}[et],at=(I+(&quot;x&quot;===et?0:-90))*Math.PI/180,ot=B*Math.cos(at),st=q*Math.sin(at),lt=Math.abs(ot)+Math.abs(st),ct=e[et+&quot;anchor&quot;],ut=e[et+&quot;shift&quot;]*(&quot;x&quot;===et?1:-1),ft=L[et],ht=l.getRefType(rt);if(it&amp;&amp;&quot;domain&quot;!==ht){var pt=it.r2fraction(e[et]);(pt&lt;0||pt&gt;1)&amp;&amp;(nt===rt?((pt=it.r2fraction(e[&quot;a&quot;+et]))&lt;0||pt&gt;1)&amp;&amp;(W=!0):W=!0),J=it._offset+it.r2p(e[et]),$=.5}else{var dt=&quot;domain&quot;===ht;&quot;x&quot;===et?(Q=e[et],J=dt?it._offset+it._length*Q:J=T.l+T.w*Q):(Q=1-e[et],J=dt?it._offset+it._length*Q:J=T.t+T.h*Q),$=e.showarrow?.5:Q}if(e.showarrow){ft.head=J;var gt=e[&quot;a&quot;+et];if(tt=ot*H(.5,e.xanchor)-st*H(.5,e.yanchor),nt===rt){var mt=l.getRefType(nt);&quot;domain&quot;===mt?(&quot;y&quot;===et&amp;&amp;(gt=1-gt),ft.tail=it._offset+it._length*gt):&quot;paper&quot;===mt?&quot;y&quot;===et?(gt=1-gt,ft.tail=T.t+T.h*gt):ft.tail=T.l+T.w*gt:ft.tail=it._offset+it.r2p(gt),K=tt}else ft.tail=J+gt,K=tt+gt;ft.text=ft.tail+tt;var vt=w[&quot;x&quot;===et?&quot;width&quot;:&quot;height&quot;];if(&quot;paper&quot;===rt&amp;&amp;(ft.head=o.constrain(ft.head,1,vt-1)),&quot;pixel&quot;===nt){var yt=-Math.max(ft.tail-3,ft.text),xt=Math.min(ft.tail+3,ft.text)-vt;yt&gt;0?(ft.tail+=yt,ft.text+=yt):xt&gt;0&amp;&amp;(ft.tail-=xt,ft.text-=xt)}ft.tail+=ut,ft.head+=ut}else K=tt=lt*H($,ct),ft.text=J+tt;ft.text+=ut,tt+=ut,K+=ut,e[&quot;_&quot;+et+&quot;padplus&quot;]=lt/2+K,e[&quot;_&quot;+et+&quot;padminus&quot;]=lt/2-K,e[&quot;_&quot;+et+&quot;size&quot;]=lt,e[&quot;_&quot;+et+&quot;shift&quot;]=tt}if(W)R.remove();else{var bt=0,_t=0;if(&quot;left&quot;!==e.align&amp;&amp;(bt=(M-b)*(&quot;center&quot;===e.align?.5:1)),&quot;top&quot;!==e.valign&amp;&amp;(_t=(D-_)*(&quot;middle&quot;===e.valign?.5:1)),f)n.select(&quot;svg&quot;).attr({x:N+bt-1,y:N+_t}).call(u.setClipUrl,U?C:null,t);else{var wt=N+_t-g.top,Tt=N+bt-g.left;G.call(h.positionText,Tt,wt).call(u.setClipUrl,U?C:null,t)}V.select(&quot;rect&quot;).call(u.setRect,N,N,M,D),j.call(u.setRect,F/2,F/2,B-F,q-F),R.call(u.setTranslate,Math.round(L.x.text-B/2),Math.round(L.y.text-q/2)),z.attr({transform:&quot;rotate(&quot;+I+&quot;,&quot;+L.x.text+&quot;,&quot;+L.y.text+&quot;)&quot;});var kt,Mt=function(r,n){P.selectAll(&quot;.annotation-arrow-g&quot;).remove();var l=L.x.head,f=L.y.head,h=L.x.tail+r,p=L.y.tail+n,g=L.x.text+r,b=L.y.text+n,_=o.rotationXYMatrix(I,g,b),w=o.apply2DTransform(_),M=o.apply2DTransform2(_),C=+j.attr(&quot;width&quot;),O=+j.attr(&quot;height&quot;),D=g-.5*C,F=D+C,B=b-.5*O,N=B+O,U=[[D,B,D,N],[D,N,F,N],[F,N,F,B],[F,B,D,B]].map(M);if(!U.reduce((function(t,e){return t^!!o.segmentsIntersect(l,f,l+1e6,f+1e6,e[0],e[1],e[2],e[3])}),!1)){U.forEach((function(t){var e=o.segmentsIntersect(h,p,l,f,t[0],t[1],t[2],t[3]);e&amp;&amp;(h=e.x,p=e.y)}));var V=e.arrowwidth,q=e.arrowcolor,H=e.arrowside,G=P.append(&quot;g&quot;).style({opacity:c.opacity(q)}).classed(&quot;annotation-arrow-g&quot;,!0),Y=G.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M&quot;+h+&quot;,&quot;+p+&quot;L&quot;+l+&quot;,&quot;+f).style(&quot;stroke-width&quot;,V+&quot;px&quot;).call(c.stroke,c.rgb(q));if(m(Y,H,e),k.annotationPosition&amp;&amp;Y.node().parentNode&amp;&amp;!a){var W=l,X=f;if(e.standoff){var Z=Math.sqrt(Math.pow(l-h,2)+Math.pow(f-p,2));W+=e.standoff*(h-l)/Z,X+=e.standoff*(p-f)/Z}var J,K,Q=G.append(&quot;path&quot;).classed(&quot;annotation-arrow&quot;,!0).classed(&quot;anndrag&quot;,!0).classed(&quot;cursor-move&quot;,!0).attr({d:&quot;M3,3H-3V-3H3ZM0,0L&quot;+(h-W)+&quot;,&quot;+(p-X),transform:s(W,X)}).style(&quot;stroke-width&quot;,V+6+&quot;px&quot;).call(c.stroke,&quot;rgba(0,0,0,0)&quot;).call(c.fill,&quot;rgba(0,0,0,0)&quot;);d.init({element:Q.node(),gd:t,prepFn:function(){var t=u.getTranslate(R);J=t.x,K=t.y,v&amp;&amp;v.autorange&amp;&amp;A(v._name+&quot;.autorange&quot;,!0),x&amp;&amp;x.autorange&amp;&amp;A(x._name+&quot;.autorange&quot;,!0)},moveFn:function(t,r){var n=w(J,K),i=n[0]+t,a=n[1]+r;R.call(u.setTranslate,i,a),S(&quot;x&quot;,y(v,t,&quot;x&quot;,T,e)),S(&quot;y&quot;,y(x,r,&quot;y&quot;,T,e)),e.axref===e.xref&amp;&amp;S(&quot;ax&quot;,y(v,t,&quot;ax&quot;,T,e)),e.ayref===e.yref&amp;&amp;S(&quot;ay&quot;,y(x,r,&quot;ay&quot;,T,e)),G.attr(&quot;transform&quot;,s(t,r)),z.attr({transform:&quot;rotate(&quot;+I+&quot;,&quot;+i+&quot;,&quot;+a+&quot;)&quot;})},doneFn:function(){i.call(&quot;_guiRelayout&quot;,t,E());var e=document.querySelector(&quot;.js-notes-box-panel&quot;);e&amp;&amp;e.redraw(e.selectedObj)}})}}};if(e.showarrow&amp;&amp;Mt(0,0),O)d.init({element:R.node(),gd:t,prepFn:function(){kt=z.attr(&quot;transform&quot;)},moveFn:function(t,r){var n=&quot;pointer&quot;;if(e.showarrow)e.axref===e.xref?S(&quot;ax&quot;,y(v,t,&quot;ax&quot;,T,e)):S(&quot;ax&quot;,e.ax+t),e.ayref===e.yref?S(&quot;ay&quot;,y(x,r,&quot;ay&quot;,T.w,e)):S(&quot;ay&quot;,e.ay+r),Mt(t,r);else{if(a)return;var i,o;if(v)i=y(v,t,&quot;x&quot;,T,e);else{var l=e._xsize/T.w,c=e.x+(e._xshift-e.xshift)/T.w-l/2;i=d.align(c+t/T.w,l,0,1,e.xanchor)}if(x)o=y(x,r,&quot;y&quot;,T,e);else{var u=e._ysize/T.h,f=e.y-(e._yshift+e.yshift)/T.h-u/2;o=d.align(f-r/T.h,u,0,1,e.yanchor)}S(&quot;x&quot;,i),S(&quot;y&quot;,o),v&amp;&amp;x||(n=d.getCursor(v?.5:i,x?.5:o,e.xanchor,e.yanchor))}z.attr({transform:s(t,r)+kt}),p(R,n)},clickFn:function(r,n){e.captureevents&amp;&amp;t.emit(&quot;plotly_clickannotation&quot;,Y(n))},doneFn:function(){p(R),i.call(&quot;_guiRelayout&quot;,t,E());var e=document.querySelector(&quot;.js-notes-box-panel&quot;);e&amp;&amp;e.redraw(e.selectedObj)}})}}}e.exports={draw:function(t){var e=t._fullLayout;e._infolayer.selectAll(&quot;.annotation&quot;).remove();for(var r=0;r&lt;e.annotations.length;r++)e.annotations[r].visible&amp;&amp;v(t,r);return a.previousPromises(t)},drawOne:v,drawRaw:x}},{&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../fx&quot;:683,&quot;./draw_arrow_head&quot;:633,d3:169}],633:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../color&quot;),a=t(&quot;./arrow_paths&quot;),o=t(&quot;../../lib&quot;),s=o.strScale,l=o.strRotate,c=o.strTranslate;e.exports=function(t,e,r){var o,u,f,h,p=t.node(),d=a[r.arrowhead||0],g=a[r.startarrowhead||0],m=(r.arrowwidth||1)*(r.arrowsize||1),v=(r.arrowwidth||1)*(r.startarrowsize||1),y=e.indexOf(&quot;start&quot;)&gt;=0,x=e.indexOf(&quot;end&quot;)&gt;=0,b=d.backoff*m+r.standoff,_=g.backoff*v+r.startstandoff;if(&quot;line&quot;===p.nodeName){o={x:+t.attr(&quot;x1&quot;),y:+t.attr(&quot;y1&quot;)},u={x:+t.attr(&quot;x2&quot;),y:+t.attr(&quot;y2&quot;)};var w=o.x-u.x,T=o.y-u.y;if(h=(f=Math.atan2(T,w))+Math.PI,b&amp;&amp;_&amp;&amp;b+_&gt;Math.sqrt(w*w+T*T))return void O();if(b){if(b*b&gt;w*w+T*T)return void O();var k=b*Math.cos(f),M=b*Math.sin(f);u.x+=k,u.y+=M,t.attr({x2:u.x,y2:u.y})}if(_){if(_*_&gt;w*w+T*T)return void O();var A=_*Math.cos(f),S=_*Math.sin(f);o.x-=A,o.y-=S,t.attr({x1:o.x,y1:o.y})}}else if(&quot;path&quot;===p.nodeName){var E=p.getTotalLength(),C=&quot;&quot;;if(E&lt;b+_)return void O();var L=p.getPointAtLength(0),I=p.getPointAtLength(.1);f=Math.atan2(L.y-I.y,L.x-I.x),o=p.getPointAtLength(Math.min(_,E)),C=&quot;0px,&quot;+_+&quot;px,&quot;;var P=p.getPointAtLength(E),z=p.getPointAtLength(E-.1);h=Math.atan2(P.y-z.y,P.x-z.x),u=p.getPointAtLength(Math.max(0,E-b)),C+=E-(C?_+b:b)+&quot;px,&quot;+E+&quot;px&quot;,t.style(&quot;stroke-dasharray&quot;,C)}function O(){t.style(&quot;stroke-dasharray&quot;,&quot;0px,100px&quot;)}function D(e,a,o,u){e.path&amp;&amp;(e.noRotate&amp;&amp;(o=0),n.select(p.parentNode).append(&quot;path&quot;).attr({class:t.attr(&quot;class&quot;),d:e.path,transform:c(a.x,a.y)+l(180*o/Math.PI)+s(u)}).style({fill:i.rgb(r.arrowcolor),&quot;stroke-width&quot;:0}))}y&amp;&amp;D(g,o,f,v),x&amp;&amp;D(d,u,h,m)}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;./arrow_paths&quot;:625,d3:169}],634:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;),i=t(&quot;./click&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;annotations&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;annotations&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:i.hasClickToShow,onClick:i.onClick,convertCoords:t(&quot;./convert_coords&quot;)}},{&quot;../../plots/cartesian/include_components&quot;:840,&quot;./attributes&quot;:626,&quot;./calc_autorange&quot;:627,&quot;./click&quot;:628,&quot;./convert_coords&quot;:630,&quot;./defaults&quot;:631,&quot;./draw&quot;:632}],635:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/attributes&quot;),i=t(&quot;../../plot_api/edit_types&quot;).overrideAll,a=t(&quot;../../plot_api/plot_template&quot;).templatedArray;e.exports=i(a(&quot;annotation&quot;,{visible:n.visible,x:{valType:&quot;any&quot;},y:{valType:&quot;any&quot;},z:{valType:&quot;any&quot;},ax:{valType:&quot;number&quot;},ay:{valType:&quot;number&quot;},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,startarrowhead:n.startarrowhead,arrowside:n.arrowside,arrowsize:n.arrowsize,startarrowsize:n.startarrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,startstandoff:n.startstandoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents}),&quot;calc&quot;,&quot;from-root&quot;)},{&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../annotations/attributes&quot;:626}],636:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;);function a(t,e){var r=e.fullSceneLayout.domain,a=e.fullLayout._size,o={pdata:null,type:&quot;linear&quot;,autorange:!1,range:[-1/0,1/0]};t._xa={},n.extendFlat(t._xa,o),i.setConvert(t._xa),t._xa._offset=a.l+r.x[0]*a.w,t._xa.l2p=function(){return.5*(1+t._pdata[0]/t._pdata[3])*a.w*(r.x[1]-r.x[0])},t._ya={},n.extendFlat(t._ya,o),i.setConvert(t._ya),t._ya._offset=a.t+(1-r.y[1])*a.h,t._ya.l2p=function(){return.5*(1-t._pdata[1]/t._pdata[3])*a.h*(r.y[1]-r.y[0])}}e.exports=function(t){for(var e=t.fullSceneLayout.annotations,r=0;r&lt;e.length;r++)a(e[r],t);t.fullLayout._infolayer.selectAll(&quot;.annotation-&quot;+t.id).remove()}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],637:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;../annotations/common_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r,a){function l(r,i){return n.coerce(t,e,s,r,i)}function c(t){var n=t+&quot;axis&quot;,a={_fullLayout:{}};return a._fullLayout[n]=r[n],i.coercePosition(e,a,l,t,t,.5)}l(&quot;visible&quot;)&amp;&amp;(o(t,e,a.fullLayout,l),c(&quot;x&quot;),c(&quot;y&quot;),c(&quot;z&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;]),e.xref=&quot;x&quot;,e.yref=&quot;y&quot;,e.zref=&quot;z&quot;,l(&quot;xanchor&quot;),l(&quot;yanchor&quot;),l(&quot;xshift&quot;),l(&quot;yshift&quot;),e.showarrow&amp;&amp;(e.axref=&quot;pixel&quot;,e.ayref=&quot;pixel&quot;,l(&quot;ax&quot;,-10),l(&quot;ay&quot;,-30),n.noneOrAll(t,e,[&quot;ax&quot;,&quot;ay&quot;])))}e.exports=function(t,e,r){a(t,e,{name:&quot;annotations&quot;,handleItemDefaults:l,fullLayout:r.fullLayout})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;../annotations/common_defaults&quot;:629,&quot;./attributes&quot;:635}],638:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/draw&quot;).drawRaw,i=t(&quot;../../plots/gl3d/project&quot;),a=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];e.exports=function(t){for(var e=t.fullSceneLayout,r=t.dataScale,o=e.annotations,s=0;s&lt;o.length;s++){for(var l=o[s],c=!1,u=0;u&lt;3;u++){var f=a[u],h=l[f],p=e[f+&quot;axis&quot;].r2fraction(h);if(p&lt;0||p&gt;1){c=!0;break}}c?t.fullLayout._infolayer.select(&quot;.annotation-&quot;+t.id+'[data-index=&quot;'+s+'&quot;]').remove():(l._pdata=i(t.glplot.cameraParams,[e.xaxis.r2l(l.x)*r[0],e.yaxis.r2l(l.y)*r[1],e.zaxis.r2l(l.z)*r[2]]),n(t.graphDiv,l,s,t.id,l._xa,l._ya))}}},{&quot;../../plots/gl3d/project&quot;:879,&quot;../annotations/draw&quot;:632}],639:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;annotations3d&quot;,schema:{subplots:{scene:{annotations:t(&quot;./attributes&quot;)}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),includeBasePlot:function(t,e){var r=n.subplotsRegistry.gl3d;if(!r)return;for(var a=r.attrRegex,o=Object.keys(t),s=0;s&lt;o.length;s++){var l=o[s];a.test(l)&amp;&amp;(t[l].annotations||[]).length&amp;&amp;(i.pushUnique(e._basePlotModules,r),i.pushUnique(e._subplots.gl3d,l))}},convert:t(&quot;./convert&quot;),draw:t(&quot;./draw&quot;)}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:635,&quot;./convert&quot;:636,&quot;./defaults&quot;:637,&quot;./draw&quot;:638}],640:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;world-calendars/dist/main&quot;),t(&quot;world-calendars/dist/plus&quot;),t(&quot;world-calendars/dist/calendars/chinese&quot;),t(&quot;world-calendars/dist/calendars/coptic&quot;),t(&quot;world-calendars/dist/calendars/discworld&quot;),t(&quot;world-calendars/dist/calendars/ethiopian&quot;),t(&quot;world-calendars/dist/calendars/hebrew&quot;),t(&quot;world-calendars/dist/calendars/islamic&quot;),t(&quot;world-calendars/dist/calendars/julian&quot;),t(&quot;world-calendars/dist/calendars/mayan&quot;),t(&quot;world-calendars/dist/calendars/nanakshahi&quot;),t(&quot;world-calendars/dist/calendars/nepali&quot;),t(&quot;world-calendars/dist/calendars/persian&quot;),t(&quot;world-calendars/dist/calendars/taiwan&quot;),t(&quot;world-calendars/dist/calendars/thai&quot;),t(&quot;world-calendars/dist/calendars/ummalqura&quot;)},{&quot;world-calendars/dist/calendars/chinese&quot;:607,&quot;world-calendars/dist/calendars/coptic&quot;:608,&quot;world-calendars/dist/calendars/discworld&quot;:609,&quot;world-calendars/dist/calendars/ethiopian&quot;:610,&quot;world-calendars/dist/calendars/hebrew&quot;:611,&quot;world-calendars/dist/calendars/islamic&quot;:612,&quot;world-calendars/dist/calendars/julian&quot;:613,&quot;world-calendars/dist/calendars/mayan&quot;:614,&quot;world-calendars/dist/calendars/nanakshahi&quot;:615,&quot;world-calendars/dist/calendars/nepali&quot;:616,&quot;world-calendars/dist/calendars/persian&quot;:617,&quot;world-calendars/dist/calendars/taiwan&quot;:618,&quot;world-calendars/dist/calendars/thai&quot;:619,&quot;world-calendars/dist/calendars/ummalqura&quot;:620,&quot;world-calendars/dist/main&quot;:621,&quot;world-calendars/dist/plus&quot;:622}],641:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./calendars&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;),o=a.EPOCHJD,s=a.ONEDAY,l={valType:&quot;enumerated&quot;,values:Object.keys(n.calendars),editType:&quot;calc&quot;,dflt:&quot;gregorian&quot;},c=function(t,e,r,n){var a={};return a[r]=l,i.coerce(t,e,a,r,n)},u={d:{0:&quot;dd&quot;,&quot;-&quot;:&quot;d&quot;},e:{0:&quot;d&quot;,&quot;-&quot;:&quot;d&quot;},a:{0:&quot;D&quot;,&quot;-&quot;:&quot;D&quot;},A:{0:&quot;DD&quot;,&quot;-&quot;:&quot;DD&quot;},j:{0:&quot;oo&quot;,&quot;-&quot;:&quot;o&quot;},W:{0:&quot;ww&quot;,&quot;-&quot;:&quot;w&quot;},m:{0:&quot;mm&quot;,&quot;-&quot;:&quot;m&quot;},b:{0:&quot;M&quot;,&quot;-&quot;:&quot;M&quot;},B:{0:&quot;MM&quot;,&quot;-&quot;:&quot;MM&quot;},y:{0:&quot;yy&quot;,&quot;-&quot;:&quot;yy&quot;},Y:{0:&quot;yyyy&quot;,&quot;-&quot;:&quot;yyyy&quot;},U:&quot;##&quot;,w:&quot;##&quot;,c:{0:&quot;D M d %X yyyy&quot;,&quot;-&quot;:&quot;D M d %X yyyy&quot;},x:{0:&quot;mm/dd/yyyy&quot;,&quot;-&quot;:&quot;mm/dd/yyyy&quot;}};var f={};function h(t){var e=f[t];return e||(e=f[t]=n.instance(t))}function p(t){return i.extendFlat({},l,{description:t})}function d(t){return&quot;Sets the calendar system to use with `&quot;+t+&quot;` date data.&quot;}var g={xcalendar:p(d(&quot;x&quot;))},m=i.extendFlat({},g,{ycalendar:p(d(&quot;y&quot;))}),v=i.extendFlat({},m,{zcalendar:p(d(&quot;z&quot;))}),y=p([&quot;Sets the calendar system to use for `range` and `tick0`&quot;,&quot;if this is a date axis. This does not set the calendar for&quot;,&quot;interpreting data on this axis, that's specified in the trace&quot;,&quot;or via the global `layout.calendar`&quot;].join(&quot; &quot;));e.exports={moduleType:&quot;component&quot;,name:&quot;calendars&quot;,schema:{traces:{scatter:m,bar:m,box:m,heatmap:m,contour:m,histogram:m,histogram2d:m,histogram2dcontour:m,scatter3d:v,surface:v,mesh3d:v,scattergl:m,ohlc:g,candlestick:g},layout:{calendar:p([&quot;Sets the default calendar system to use for interpreting and&quot;,&quot;displaying dates throughout the plot.&quot;].join(&quot; &quot;))},subplots:{xaxis:{calendar:y},yaxis:{calendar:y},scene:{xaxis:{calendar:y},yaxis:{calendar:y},zaxis:{calendar:y}},polar:{radialaxis:{calendar:y}}},transforms:{filter:{valuecalendar:p([&quot;Sets the calendar system to use for `value`, if it is a date.&quot;].join(&quot; &quot;)),targetcalendar:p([&quot;Sets the calendar system to use for `target`, if it is an&quot;,&quot;array of dates. If `target` is a string (eg *x*) we use the&quot;,&quot;corresponding trace attribute (eg `xcalendar`) if it exists,&quot;,&quot;even if `targetcalendar` is provided.&quot;].join(&quot; &quot;))}}},layoutAttributes:l,handleDefaults:c,handleTraceDefaults:function(t,e,r,n){for(var i=0;i&lt;r.length;i++)c(t,e,r[i]+&quot;calendar&quot;,n.calendar)},CANONICAL_SUNDAY:{chinese:&quot;2000-01-02&quot;,coptic:&quot;2000-01-03&quot;,discworld:&quot;2000-01-03&quot;,ethiopian:&quot;2000-01-05&quot;,hebrew:&quot;5000-01-01&quot;,islamic:&quot;1000-01-02&quot;,julian:&quot;2000-01-03&quot;,mayan:&quot;5000-01-01&quot;,nanakshahi:&quot;1000-01-05&quot;,nepali:&quot;2000-01-05&quot;,persian:&quot;1000-01-01&quot;,jalali:&quot;1000-01-01&quot;,taiwan:&quot;1000-01-04&quot;,thai:&quot;2000-01-04&quot;,ummalqura:&quot;1400-01-06&quot;},CANONICAL_TICK:{chinese:&quot;2000-01-01&quot;,coptic:&quot;2000-01-01&quot;,discworld:&quot;2000-01-01&quot;,ethiopian:&quot;2000-01-01&quot;,hebrew:&quot;5000-01-01&quot;,islamic:&quot;1000-01-01&quot;,julian:&quot;2000-01-01&quot;,mayan:&quot;5000-01-01&quot;,nanakshahi:&quot;1000-01-01&quot;,nepali:&quot;2000-01-01&quot;,persian:&quot;1000-01-01&quot;,jalali:&quot;1000-01-01&quot;,taiwan:&quot;1000-01-01&quot;,thai:&quot;2000-01-01&quot;,ummalqura:&quot;1400-01-01&quot;},DFLTRANGE:{chinese:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],coptic:[&quot;1700-01-01&quot;,&quot;1701-01-01&quot;],discworld:[&quot;1800-01-01&quot;,&quot;1801-01-01&quot;],ethiopian:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],hebrew:[&quot;5700-01-01&quot;,&quot;5701-01-01&quot;],islamic:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],julian:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],mayan:[&quot;5200-01-01&quot;,&quot;5201-01-01&quot;],nanakshahi:[&quot;0500-01-01&quot;,&quot;0501-01-01&quot;],nepali:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],persian:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],jalali:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],taiwan:[&quot;0100-01-01&quot;,&quot;0101-01-01&quot;],thai:[&quot;2500-01-01&quot;,&quot;2501-01-01&quot;],ummalqura:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;]},getCal:h,worldCalFmt:function(t,e,r){for(var n,i,a,l,c,f=Math.floor((e+.05)/s)+o,p=h(r).fromJD(f),d=0;-1!==(d=t.indexOf(&quot;%&quot;,d));)&quot;0&quot;===(n=t.charAt(d+1))||&quot;-&quot;===n||&quot;_&quot;===n?(a=3,i=t.charAt(d+2),&quot;_&quot;===n&amp;&amp;(n=&quot;-&quot;)):(i=n,n=&quot;0&quot;,a=2),(l=u[i])?(c=&quot;##&quot;===l?&quot;##&quot;:p.formatDate(l[n]),t=t.substr(0,d)+c+t.substr(d+a),d+=c.length):d+=a;return t}}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./calendars&quot;:640}],642:[function(t,e,r){&quot;use strict&quot;;r.defaults=[&quot;#1f77b4&quot;,&quot;#ff7f0e&quot;,&quot;#2ca02c&quot;,&quot;#d62728&quot;,&quot;#9467bd&quot;,&quot;#8c564b&quot;,&quot;#e377c2&quot;,&quot;#7f7f7f&quot;,&quot;#bcbd22&quot;,&quot;#17becf&quot;],r.defaultLine=&quot;#444&quot;,r.lightLine=&quot;#eee&quot;,r.background=&quot;#fff&quot;,r.borderLine=&quot;#BEC8D9&quot;,r.lightFraction=1e3/11},{}],643:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;),i=t(&quot;fast-isnumeric&quot;),a=e.exports={},o=t(&quot;./attributes&quot;);a.defaults=o.defaults;var s=a.defaultLine=o.defaultLine;a.lightLine=o.lightLine;var l=a.background=o.background;function c(t){if(i(t)||&quot;string&quot;!=typeof t)return t;var e=t.trim();if(&quot;rgb&quot;!==e.substr(0,3))return t;var r=e.match(/^rgba?\s*\(([^()]*)\)$/);if(!r)return t;var n=r[1].trim().split(/\s*[\s,]\s*/),a=&quot;a&quot;===e.charAt(3)&amp;&amp;4===n.length;if(!a&amp;&amp;3!==n.length)return t;for(var o=0;o&lt;n.length;o++){if(!n[o].length)return t;if(n[o]=Number(n[o]),!(n[o]&gt;=0))return t;if(3===o)n[o]&gt;1&amp;&amp;(n[o]=1);else if(n[o]&gt;=1)return t}var s=Math.round(255*n[0])+&quot;, &quot;+Math.round(255*n[1])+&quot;, &quot;+Math.round(255*n[2]);return a?&quot;rgba(&quot;+s+&quot;, &quot;+n[3]+&quot;)&quot;:&quot;rgb(&quot;+s+&quot;)&quot;}a.tinyRGB=function(t){var e=t.toRgb();return&quot;rgb(&quot;+Math.round(e.r)+&quot;, &quot;+Math.round(e.g)+&quot;, &quot;+Math.round(e.b)+&quot;)&quot;},a.rgb=function(t){return a.tinyRGB(n(t))},a.opacity=function(t){return t?n(t).getAlpha():0},a.addOpacity=function(t,e){var r=n(t).toRgb();return&quot;rgba(&quot;+Math.round(r.r)+&quot;, &quot;+Math.round(r.g)+&quot;, &quot;+Math.round(r.b)+&quot;, &quot;+e+&quot;)&quot;},a.combine=function(t,e){var r=n(t).toRgb();if(1===r.a)return n(t).toRgbString();var i=n(e||l).toRgb(),a=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},o={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},a.contrast=function(t,e,r){var i=n(t);return 1!==i.getAlpha()&amp;&amp;(i=n(a.combine(t,l))),(i.isDark()?e?i.lighten(e):l:r?i.darken(r):s).toString()},a.stroke=function(t,e){var r=n(e);t.style({stroke:a.tinyRGB(r),&quot;stroke-opacity&quot;:r.getAlpha()})},a.fill=function(t,e){var r=n(e);t.style({fill:a.tinyRGB(r),&quot;fill-opacity&quot;:r.getAlpha()})},a.clean=function(t){if(t&amp;&amp;&quot;object&quot;==typeof t){var e,r,n,i,o=Object.keys(t);for(e=0;e&lt;o.length;e++)if(i=t[n=o[e]],&quot;color&quot;===n.substr(n.length-5))if(Array.isArray(i))for(r=0;r&lt;i.length;r++)i[r]=c(i[r]);else t[n]=c(i);else if(&quot;colorscale&quot;===n.substr(n.length-10)&amp;&amp;Array.isArray(i))for(r=0;r&lt;i.length;r++)Array.isArray(i[r])&amp;&amp;(i[r][1]=c(i[r][1]));else if(Array.isArray(i)){var s=i[0];if(!Array.isArray(s)&amp;&amp;s&amp;&amp;&quot;object&quot;==typeof s)for(r=0;r&lt;i.length;r++)a.clean(i[r])}else i&amp;&amp;&quot;object&quot;==typeof i&amp;&amp;a.clean(i)}}},{&quot;./attributes&quot;:642,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],644:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/layout_attributes&quot;),i=t(&quot;../../plots/font_attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll;e.exports=o({thicknessmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;pixels&quot;},thickness:{valType:&quot;number&quot;,min:0,dflt:30},lenmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;fraction&quot;},len:{valType:&quot;number&quot;,min:0,dflt:1},x:{valType:&quot;number&quot;,dflt:1.02,min:-2,max:3},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},xpad:{valType:&quot;number&quot;,min:0,dflt:10},y:{valType:&quot;number&quot;,dflt:.5,min:-2,max:3},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;},ypad:{valType:&quot;number&quot;,min:0,dflt:10},outlinecolor:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:&quot;number&quot;,min:0,dflt:0},bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;},tickmode:n.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:a({},n.ticks,{dflt:&quot;&quot;}),ticklabelposition:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;],dflt:&quot;outside&quot;},ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,showticklabels:n.showticklabels,tickfont:i({}),tickangle:n.tickangle,tickformat:n.tickformat,tickformatstops:n.tickformatstops,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,minexponent:n.minexponent,showexponent:n.showexponent,title:{text:{valType:&quot;string&quot;},font:i({}),side:{valType:&quot;enumerated&quot;,values:[&quot;right&quot;,&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;}},_deprecated:{title:{valType:&quot;string&quot;},titlefont:i({}),titleside:{valType:&quot;enumerated&quot;,values:[&quot;right&quot;,&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;}}},&quot;colorbars&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/font_attributes&quot;:856}],645:[function(t,e,r){&quot;use strict&quot;;e.exports={cn:{colorbar:&quot;colorbar&quot;,cbbg:&quot;cbbg&quot;,cbfill:&quot;cbfill&quot;,cbfills:&quot;cbfills&quot;,cbline:&quot;cbline&quot;,cblines:&quot;cblines&quot;,cbaxis:&quot;cbaxis&quot;,cbtitleunshift:&quot;cbtitleunshift&quot;,cbtitle:&quot;cbtitle&quot;,cboutline:&quot;cboutline&quot;,crisp:&quot;crisp&quot;,jsPlaceholder:&quot;js-placeholder&quot;}}},{}],646:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),o=t(&quot;../../plots/cartesian/tick_mark_defaults&quot;),s=t(&quot;../../plots/cartesian/tick_label_defaults&quot;),l=t(&quot;./attributes&quot;);e.exports=function(t,e,r){var c=i.newContainer(e,&quot;colorbar&quot;),u=t.colorbar||{};function f(t,e){return n.coerce(u,c,l,t,e)}var h=f(&quot;thicknessmode&quot;);f(&quot;thickness&quot;,&quot;fraction&quot;===h?30/(r.width-r.margin.l-r.margin.r):30);var p=f(&quot;lenmode&quot;);f(&quot;len&quot;,&quot;fraction&quot;===p?1:r.height-r.margin.t-r.margin.b),f(&quot;x&quot;),f(&quot;xanchor&quot;),f(&quot;xpad&quot;),f(&quot;y&quot;),f(&quot;yanchor&quot;),f(&quot;ypad&quot;),n.noneOrAll(u,c,[&quot;x&quot;,&quot;y&quot;]),f(&quot;outlinecolor&quot;),f(&quot;outlinewidth&quot;),f(&quot;bordercolor&quot;),f(&quot;borderwidth&quot;),f(&quot;bgcolor&quot;);var d=f(&quot;ticklabelposition&quot;);a(u,c,f,&quot;linear&quot;);var g={outerTicks:!1,font:r.font};-1!==d.indexOf(&quot;inside&quot;)&amp;&amp;(g.bgColor=&quot;black&quot;),s(u,c,f,&quot;linear&quot;,g),o(u,c,f,&quot;linear&quot;,g),f(&quot;title.text&quot;,r._dfltTitle.colorbar),n.coerceFont(f,&quot;title.font&quot;,r.font),f(&quot;title.side&quot;)}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/tick_label_defaults&quot;:849,&quot;../../plots/cartesian/tick_mark_defaults&quot;:850,&quot;../../plots/cartesian/tick_value_defaults&quot;:851,&quot;./attributes&quot;:644}],647:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=t(&quot;../dragelement&quot;),c=t(&quot;../../lib&quot;),u=c.strTranslate,f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../lib/setcursor&quot;),p=t(&quot;../drawing&quot;),d=t(&quot;../color&quot;),g=t(&quot;../titles&quot;),m=t(&quot;../../lib/svg_text_utils&quot;),v=t(&quot;../colorscale/helpers&quot;).flipScale,y=t(&quot;../../plots/cartesian/axis_defaults&quot;),x=t(&quot;../../plots/cartesian/position_defaults&quot;),b=t(&quot;../../plots/cartesian/layout_attributes&quot;),_=t(&quot;../../constants/alignment&quot;),w=_.LINE_SPACING,T=_.FROM_TL,k=_.FROM_BR,M=t(&quot;./constants&quot;).cn;e.exports={draw:function(t){var e=t._fullLayout._infolayer.selectAll(&quot;g.&quot;+M.colorbar).data(function(t){var e,r,n,i,a=t._fullLayout,o=t.calcdata,s=[];function l(t){return f(t,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){&quot;function&quot;==typeof i.calc?i.calc(t,n,e):(e._fillgradient=r.reversescale?v(r.colorscale):r.colorscale,e._zrange=[r[i.min],r[i.max]])}for(var u=0;u&lt;o.length;u++){var h=o[u],p=(n=h[0].trace)._module.colorbar;if(!0===n.visible&amp;&amp;p)for(var d=Array.isArray(p),g=d?p:[p],m=0;m&lt;g.length;m++){var y=(i=g[m]).container;(r=y?n[y]:n)&amp;&amp;r.showscale&amp;&amp;((e=l(r.colorbar))._id=&quot;cb&quot;+n.uid+(d&amp;&amp;y?&quot;-&quot;+y:&quot;&quot;),e._traceIndex=n.index,e._propPrefix=(y?y+&quot;.&quot;:&quot;&quot;)+&quot;colorbar.&quot;,e._meta=n._meta,c(),s.push(e))}}for(var x in a._colorAxes)if((r=a[x]).showscale){var b=a._colorAxes[x];(e=l(r.colorbar))._id=&quot;cb&quot;+x,e._propPrefix=x+&quot;.colorbar.&quot;,e._meta=a._meta,i={min:&quot;cmin&quot;,max:&quot;cmax&quot;},&quot;heatmap&quot;!==b[0]&amp;&amp;(n=b[1],i.calc=n._module.colorbar.calc),c(),s.push(e)}return s}(t),(function(t){return t._id}));e.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return t._id})).classed(M.colorbar,!0),e.each((function(e){var r=n.select(this);c.ensureSingle(r,&quot;rect&quot;,M.cbbg),c.ensureSingle(r,&quot;g&quot;,M.cbfills),c.ensureSingle(r,&quot;g&quot;,M.cblines),c.ensureSingle(r,&quot;g&quot;,M.cbaxis,(function(t){t.classed(M.crisp,!0)})),c.ensureSingle(r,&quot;g&quot;,M.cbtitleunshift,(function(t){t.append(&quot;g&quot;).classed(M.cbtitle,!0)})),c.ensureSingle(r,&quot;rect&quot;,M.cboutline);var v=function(t,e,r){var o=r._fullLayout,l=o._size,h=e._fillcolor,v=e._line,_=e.title,A=_.side,S=e._zrange||n.extent((&quot;function&quot;==typeof h?h:v.color).domain()),E=&quot;function&quot;==typeof v.color?v.color:function(){return v.color},C=&quot;function&quot;==typeof h?h:function(){return h},L=e._levels,I=function(t,e,r){var n,i,a=e._levels,o=[],s=[],l=a.end+a.size/100,c=a.size,u=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(i=0;i&lt;1e5&amp;&amp;(n=a.start+i*c,!(c&gt;0?n&gt;=l:n&lt;=l));i++)n&gt;u&amp;&amp;n&lt;f&amp;&amp;o.push(n);if(e._fillgradient)s=[0];else if(&quot;function&quot;==typeof e._fillcolor){var h=e._filllevels;if(h)for(l=h.end+h.size/100,c=h.size,i=0;i&lt;1e5&amp;&amp;(n=h.start+i*c,!(c&gt;0?n&gt;=l:n&lt;=l));i++)n&gt;r[0]&amp;&amp;n&lt;r[1]&amp;&amp;s.push(n);else(s=o.map((function(t){return t-a.size/2}))).push(s[s.length-1]+a.size)}else e._fillcolor&amp;&amp;&quot;string&quot;==typeof e._fillcolor&amp;&amp;(s=[0]);a.size&lt;0&amp;&amp;(o.reverse(),s.reverse());return{line:o,fill:s}}(0,e,S),P=I.fill,z=I.line,O=Math.round(e.thickness*(&quot;fraction&quot;===e.thicknessmode?l.w:1)),D=O/l.w,R=Math.round(e.len*(&quot;fraction&quot;===e.lenmode?l.h:1)),F=R/l.h,B=e.xpad/l.w,N=(e.borderwidth+e.outlinewidth)/2,j=e.ypad/l.h,U=Math.round(e.x*l.w+e.xpad),V=e.x-D*({middle:.5,right:1}[e.xanchor]||0),q=e.y+F*(({top:-.5,bottom:.5}[e.yanchor]||0)-.5),H=Math.round(l.h*(1-q)),G=H-R;e._lenFrac=F,e._thickFrac=D,e._xLeftFrac=V,e._yBottomFrac=q;var Y=e._axis=function(t,e,r){var n=t._fullLayout,i={type:&quot;linear&quot;,range:r,tickmode:e.tickmode,nticks:e.nticks,tick0:e.tick0,dtick:e.dtick,tickvals:e.tickvals,ticktext:e.ticktext,ticks:e.ticks,ticklen:e.ticklen,tickwidth:e.tickwidth,tickcolor:e.tickcolor,showticklabels:e.showticklabels,ticklabelposition:e.ticklabelposition,tickfont:e.tickfont,tickangle:e.tickangle,tickformat:e.tickformat,exponentformat:e.exponentformat,minexponent:e.minexponent,separatethousands:e.separatethousands,showexponent:e.showexponent,showtickprefix:e.showtickprefix,tickprefix:e.tickprefix,showticksuffix:e.showticksuffix,ticksuffix:e.ticksuffix,title:e.title,showline:!0,anchor:&quot;free&quot;,side:&quot;right&quot;,position:1},a={type:&quot;linear&quot;,_id:&quot;y&quot;+e._id},o={letter:&quot;y&quot;,font:n.font,noHover:!0,noTickson:!0,noTicklabelmode:!0,calendar:n.calendar};function s(t,e){return c.coerce(i,a,b,t,e)}return y(i,a,s,o,n),x(i,a,s,o),a}(r,e,S);Y.position=e.x+B+D,-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)&amp;&amp;(Y.title.side=A,Y.titlex=e.x+B,Y.titley=q+(&quot;top&quot;===_.side?F-j:j));if(v.color&amp;&amp;&quot;auto&quot;===e.tickmode){Y.tickmode=&quot;linear&quot;,Y.tick0=L.start;var W=L.size,X=c.constrain((H-G)/50,4,15)+1,Z=(S[1]-S[0])/((e.nticks||X)*W);if(Z&gt;1){var J=Math.pow(10,Math.floor(Math.log(Z)/Math.LN10));W*=J*c.roundUp(Z/J,[2,5,10]),(Math.abs(L.start)/L.size+1e-6)%1&lt;2e-6&amp;&amp;(Y.tick0=0)}Y.dtick=W}Y.domain=[q+j,q+F-j],Y.setScale(),t.attr(&quot;transform&quot;,u(Math.round(l.l),Math.round(l.t)));var K,Q=t.select(&quot;.&quot;+M.cbtitleunshift).attr(&quot;transform&quot;,u(-Math.round(l.l),-Math.round(l.t))),$=t.select(&quot;.&quot;+M.cbaxis),tt=0;function et(n,i){var a={propContainer:Y,propName:e._propPrefix+&quot;title&quot;,traceIndex:e._traceIndex,_meta:e._meta,placeholder:o._dfltTitle.colorbar,containerGroup:t.select(&quot;.&quot;+M.cbtitle)},s=&quot;h&quot;===n.charAt(0)?n.substr(1):&quot;h&quot;+n;t.selectAll(&quot;.&quot;+s+&quot;,.&quot;+s+&quot;-math-group&quot;).remove(),g.draw(r,n,f(a,i||{}))}return c.syncOrAsync([a.previousPromises,function(){if(-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)){var t,r=l.l+(e.x+B)*l.w,n=Y.title.font.size;t=&quot;top&quot;===A?(1-(q+F-j))*l.h+l.t+3+.75*n:(1-(q+j))*l.h+l.t-3-.25*n,et(Y._id+&quot;title&quot;,{attributes:{x:r,y:t,&quot;text-anchor&quot;:&quot;start&quot;}})}},function(){if(-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)){var a=t.select(&quot;.&quot;+M.cbtitle),o=a.select(&quot;text&quot;),f=[-e.outlinewidth/2,e.outlinewidth/2],h=a.select(&quot;.h&quot;+Y._id+&quot;title-math-group&quot;).node(),d=15.6;if(o.node()&amp;&amp;(d=parseInt(o.node().style.fontSize,10)*w),h?(tt=p.bBox(h).height)&gt;d&amp;&amp;(f[1]-=(tt-d)/2):o.node()&amp;&amp;!o.classed(M.jsPlaceholder)&amp;&amp;(tt=p.bBox(o.node()).height),tt){if(tt+=5,&quot;top&quot;===A)Y.domain[1]-=tt/l.h,f[1]*=-1;else{Y.domain[0]+=tt/l.h;var g=m.lineCount(o);f[1]+=(1-g)*d}a.attr(&quot;transform&quot;,u(f[0],f[1])),Y.setScale()}}t.selectAll(&quot;.&quot;+M.cbfills+&quot;,.&quot;+M.cblines).attr(&quot;transform&quot;,u(0,Math.round(l.h*(1-Y.domain[1])))),$.attr(&quot;transform&quot;,u(0,Math.round(-l.t)));var y=t.select(&quot;.&quot;+M.cbfills).selectAll(&quot;rect.&quot;+M.cbfill).attr(&quot;style&quot;,&quot;&quot;).data(P);y.enter().append(&quot;rect&quot;).classed(M.cbfill,!0).style(&quot;stroke&quot;,&quot;none&quot;),y.exit().remove();var x=S.map(Y.c2p).map(Math.round).sort((function(t,e){return t-e}));y.each((function(t,a){var o=[0===a?S[0]:(P[a]+P[a-1])/2,a===P.length-1?S[1]:(P[a]+P[a+1])/2].map(Y.c2p).map(Math.round);o[1]=c.constrain(o[1]+(o[1]&gt;o[0])?1:-1,x[0],x[1]);var s=n.select(this).attr({x:U,width:Math.max(O,2),y:n.min(o),height:Math.max(n.max(o)-n.min(o),2)});if(e._fillgradient)p.gradient(s,r,e._id,&quot;vertical&quot;,e._fillgradient,&quot;fill&quot;);else{var l=C(t).replace(&quot;e-&quot;,&quot;&quot;);s.attr(&quot;fill&quot;,i(l).toHexString())}}));var b=t.select(&quot;.&quot;+M.cblines).selectAll(&quot;path.&quot;+M.cbline).data(v.color&amp;&amp;v.width?z:[]);b.enter().append(&quot;path&quot;).classed(M.cbline,!0),b.exit().remove(),b.each((function(t){n.select(this).attr(&quot;d&quot;,&quot;M&quot;+U+&quot;,&quot;+(Math.round(Y.c2p(t))+v.width/2%1)+&quot;h&quot;+O).call(p.lineGroupStyle,v.width,E(t),v.dash)})),$.selectAll(&quot;g.&quot;+Y._id+&quot;tick,path&quot;).remove();var _=U+O+(e.outlinewidth||0)/2-(&quot;outside&quot;===e.ticks?1:0),T=s.calcTicks(Y),k=s.getTickSigns(Y)[2];return s.drawTicks(r,Y,{vals:&quot;inside&quot;===Y.ticks?s.clipEnds(Y,T):T,layer:$,path:s.makeTickPath(Y,_,k),transFn:s.makeTransTickFn(Y)}),s.drawLabels(r,Y,{vals:T,layer:$,transFn:s.makeTransTickLabelFn(Y),labelFns:s.makeLabelFns(Y,_)})},function(){if(-1===[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)){var t=Y.title.font.size,e=Y._offset+Y._length/2,i=l.l+(Y.position||0)*l.w+(&quot;right&quot;===Y.side?10+t*(Y.showticklabels?1:.5):-10-t*(Y.showticklabels?.5:0));et(&quot;h&quot;+Y._id+&quot;title&quot;,{avoid:{selection:n.select(r).selectAll(&quot;g.&quot;+Y._id+&quot;tick&quot;),side:A,offsetLeft:l.l,offsetTop:0,maxShift:o.width},attributes:{x:i,y:e,&quot;text-anchor&quot;:&quot;middle&quot;},transform:{rotate:&quot;-90&quot;,offset:0}})}},a.previousPromises,function(){var n=O+e.outlinewidth/2;if(-1===Y.ticklabelposition.indexOf(&quot;inside&quot;)&amp;&amp;(n+=p.bBox($.node()).width),(K=Q.select(&quot;text&quot;)).node()&amp;&amp;!K.classed(M.jsPlaceholder)){var i,o=Q.select(&quot;.h&quot;+Y._id+&quot;title-math-group&quot;).node();i=o&amp;&amp;-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)?p.bBox(o).width:p.bBox(Q.node()).right-U-l.l,n=Math.max(n,i)}var s=2*e.xpad+n+e.borderwidth+e.outlinewidth/2,c=H-G;t.select(&quot;.&quot;+M.cbbg).attr({x:U-e.xpad-(e.borderwidth+e.outlinewidth)/2,y:G-N,width:Math.max(s,2),height:Math.max(c+2*N,2)}).call(d.fill,e.bgcolor).call(d.stroke,e.bordercolor).style(&quot;stroke-width&quot;,e.borderwidth),t.selectAll(&quot;.&quot;+M.cboutline).attr({x:U,y:G+e.ypad+(&quot;top&quot;===A?tt:0),width:Math.max(O,2),height:Math.max(c-2*e.ypad-tt,2)}).call(d.stroke,e.outlinecolor).style({fill:&quot;none&quot;,&quot;stroke-width&quot;:e.outlinewidth});var f=({center:.5,right:1}[e.xanchor]||0)*s;t.attr(&quot;transform&quot;,u(l.l-f,l.t));var h={},g=T[e.yanchor],m=k[e.yanchor];&quot;pixels&quot;===e.lenmode?(h.y=e.y,h.t=c*g,h.b=c*m):(h.t=h.b=0,h.yt=e.y+e.len*g,h.yb=e.y-e.len*m);var v=T[e.xanchor],y=k[e.xanchor];if(&quot;pixels&quot;===e.thicknessmode)h.x=e.x,h.l=s*v,h.r=s*y;else{var x=s-O;h.l=x*v,h.r=x*y,h.xl=e.x-e.thickness*v,h.xr=e.x+e.thickness*y}a.autoMargin(r,e._id,h)}],r)}(r,e,t);v&amp;&amp;v.then&amp;&amp;(t._promises||[]).push(v),t._context.edits.colorbarPosition&amp;&amp;function(t,e,r){var n,i,a,s=r._fullLayout._size;l.init({element:t.node(),gd:r,prepFn:function(){n=t.attr(&quot;transform&quot;),h(t)},moveFn:function(r,o){t.attr(&quot;transform&quot;,n+u(r,o)),i=l.align(e._xLeftFrac+r/s.w,e._thickFrac,0,1,e.xanchor),a=l.align(e._yBottomFrac-o/s.h,e._lenFrac,0,1,e.yanchor);var c=l.getCursor(i,a,e.xanchor,e.yanchor);h(t,c)},doneFn:function(){if(h(t),void 0!==i&amp;&amp;void 0!==a){var n={};n[e._propPrefix+&quot;x&quot;]=i,n[e._propPrefix+&quot;y&quot;]=a,void 0!==e._traceIndex?o.call(&quot;_guiRestyle&quot;,r,n,e._traceIndex):o.call(&quot;_guiRelayout&quot;,r,n)}}})}(r,e,t)})),e.exit().each((function(e){a.autoMargin(t,e._id)})).remove(),e.order()}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/extend&quot;:768,&quot;../../lib/setcursor&quot;:799,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_defaults&quot;:830,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/cartesian/position_defaults&quot;:845,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../colorscale/helpers&quot;:654,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../titles&quot;:738,&quot;./constants&quot;:645,d3:169,tinycolor2:576}],648:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t){return n.isPlainObject(t.colorbar)}},{&quot;../../lib&quot;:778}],649:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;colorbar&quot;,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;).draw,hasColorbar:t(&quot;./has_colorbar&quot;)}},{&quot;./attributes&quot;:644,&quot;./defaults&quot;:646,&quot;./draw&quot;:647,&quot;./has_colorbar&quot;:648}],650:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../colorbar/attributes&quot;),i=t(&quot;../../lib/regex&quot;).counter,a=t(&quot;./scales.js&quot;).scales;Object.keys(a);function o(t){return&quot;`&quot;+t+&quot;`&quot;}e.exports=function(t,e){t=t||&quot;&quot;;var r,s=(e=e||{}).cLetter||&quot;c&quot;,l=(&quot;onlyIfNumerical&quot;in e?e.onlyIfNumerical:Boolean(t),&quot;noScale&quot;in e?e.noScale:&quot;marker.line&quot;===t),c=&quot;showScaleDflt&quot;in e?e.showScaleDflt:&quot;z&quot;===s,u=&quot;string&quot;==typeof e.colorscaleDflt?a[e.colorscaleDflt]:null,f=e.editTypeOverride||&quot;&quot;,h=t?t+&quot;.&quot;:&quot;&quot;;&quot;colorAttr&quot;in e?(r=e.colorAttr,e.colorAttr):o(h+(r={z:&quot;z&quot;,c:&quot;color&quot;}[s]));var p=s+&quot;auto&quot;,d=s+&quot;min&quot;,g=s+&quot;max&quot;,m=s+&quot;mid&quot;,v=(o(h+p),o(h+d),o(h+g),{});v[d]=v[g]=void 0;var y={};y[p]=!1;var x={};return&quot;color&quot;===r&amp;&amp;(x.color={valType:&quot;color&quot;,arrayOk:!0,editType:f||&quot;style&quot;},e.anim&amp;&amp;(x.color.anim=!0)),x[p]={valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:v},x[d]={valType:&quot;number&quot;,dflt:null,editType:f||&quot;plot&quot;,impliedEdits:y},x[g]={valType:&quot;number&quot;,dflt:null,editType:f||&quot;plot&quot;,impliedEdits:y},x[m]={valType:&quot;number&quot;,dflt:null,editType:&quot;calc&quot;,impliedEdits:v},x.colorscale={valType:&quot;colorscale&quot;,editType:&quot;calc&quot;,dflt:u,impliedEdits:{autocolorscale:!1}},x.autocolorscale={valType:&quot;boolean&quot;,dflt:!1!==e.autoColorDflt,editType:&quot;calc&quot;,impliedEdits:{colorscale:void 0}},x.reversescale={valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},l||(x.showscale={valType:&quot;boolean&quot;,dflt:c,editType:&quot;calc&quot;},x.colorbar=n),e.noColorAxis||(x.coloraxis={valType:&quot;subplotid&quot;,regex:i(&quot;coloraxis&quot;),dflt:null,editType:&quot;calc&quot;}),x}},{&quot;../../lib/regex&quot;:795,&quot;../colorbar/attributes&quot;:644,&quot;./scales.js&quot;:658}],651:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./helpers&quot;).extractOpts;e.exports=function(t,e,r){var o,s=t._fullLayout,l=r.vals,c=r.containerStr,u=c?i.nestedProperty(e,c).get():e,f=a(u),h=!1!==f.auto,p=f.min,d=f.max,g=f.mid,m=function(){return i.aggNums(Math.min,null,l)},v=function(){return i.aggNums(Math.max,null,l)};(void 0===p?p=m():h&amp;&amp;(p=u._colorAx&amp;&amp;n(p)?Math.min(p,m()):m()),void 0===d?d=v():h&amp;&amp;(d=u._colorAx&amp;&amp;n(d)?Math.max(d,v()):v()),h&amp;&amp;void 0!==g&amp;&amp;(d-g&gt;g-p?p=g-(d-g):d-g&lt;g-p&amp;&amp;(d=g+(g-p))),p===d&amp;&amp;(p-=.5,d+=.5),f._sync(&quot;min&quot;,p),f._sync(&quot;max&quot;,d),f.autocolorscale)&amp;&amp;(o=p*d&lt;0?s.colorscale.diverging:p&gt;=0?s.colorscale.sequential:s.colorscale.sequentialminus,f._sync(&quot;colorscale&quot;,o))}},{&quot;../../lib&quot;:778,&quot;./helpers&quot;:654,&quot;fast-isnumeric&quot;:241}],652:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./helpers&quot;).hasColorscale,a=t(&quot;./helpers&quot;).extractOpts;e.exports=function(t,e){function r(t,e){var r=t[&quot;_&quot;+e];void 0!==r&amp;&amp;(t[e]=r)}function o(t,i){var o=i.container?n.nestedProperty(t,i.container).get():t;if(o)if(o.coloraxis)o._colorAx=e[o.coloraxis];else{var s=a(o),l=s.auto;(l||void 0===s.min)&amp;&amp;r(o,i.min),(l||void 0===s.max)&amp;&amp;r(o,i.max),s.autocolorscale&amp;&amp;r(o,&quot;colorscale&quot;)}}for(var s=0;s&lt;t.length;s++){var l=t[s],c=l._module.colorbar;if(c)if(Array.isArray(c))for(var u=0;u&lt;c.length;u++)o(l,c[u]);else o(l,c);i(l,&quot;marker.line&quot;)&amp;&amp;o(l,{container:&quot;marker.line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;})}for(var f in e._colorAxes)o(e[f],{min:&quot;cmin&quot;,max:&quot;cmax&quot;})}},{&quot;../../lib&quot;:778,&quot;./helpers&quot;:654}],653:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../colorbar/has_colorbar&quot;),o=t(&quot;../colorbar/defaults&quot;),s=t(&quot;./scales&quot;).isValid,l=t(&quot;../../registry&quot;).traceIs;function c(t,e){var r=e.slice(0,e.length-1);return e?i.nestedProperty(t,r).get()||{}:t}e.exports=function t(e,r,u,f,h){var p=h.prefix,d=h.cLetter,g=&quot;_module&quot;in r,m=c(e,p),v=c(r,p),y=c(r._template||{},p)||{},x=function(){return delete e.coloraxis,delete r.coloraxis,t(e,r,u,f,h)};if(g){var b=u._colorAxes||{},_=f(p+&quot;coloraxis&quot;);if(_){var w=l(r,&quot;contour&quot;)&amp;&amp;i.nestedProperty(r,&quot;contours.coloring&quot;).get()||&quot;heatmap&quot;,T=b[_];return void(T?(T[2].push(x),T[0]!==w&amp;&amp;(T[0]=!1,i.warn([&quot;Ignoring coloraxis:&quot;,_,&quot;setting&quot;,&quot;as it is linked to incompatible colorscales.&quot;].join(&quot; &quot;)))):b[_]=[w,r,[x]])}}var k=m[d+&quot;min&quot;],M=m[d+&quot;max&quot;],A=n(k)&amp;&amp;n(M)&amp;&amp;k&lt;M;f(p+d+&quot;auto&quot;,!A)?f(p+d+&quot;mid&quot;):(f(p+d+&quot;min&quot;),f(p+d+&quot;max&quot;));var S,E,C=m.colorscale,L=y.colorscale;(void 0!==C&amp;&amp;(S=!s(C)),void 0!==L&amp;&amp;(S=!s(L)),f(p+&quot;autocolorscale&quot;,S),f(p+&quot;colorscale&quot;),f(p+&quot;reversescale&quot;),&quot;marker.line.&quot;!==p)&amp;&amp;(p&amp;&amp;g&amp;&amp;(E=a(m)),f(p+&quot;showscale&quot;,E)&amp;&amp;(p&amp;&amp;y&amp;&amp;(v._template=y),o(m,v,u)))}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../colorbar/defaults&quot;:646,&quot;../colorbar/has_colorbar&quot;:648,&quot;./scales&quot;:658,&quot;fast-isnumeric&quot;:241}],654:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../color&quot;),l=t(&quot;./scales&quot;).isValid;var c=[&quot;showscale&quot;,&quot;autocolorscale&quot;,&quot;colorscale&quot;,&quot;reversescale&quot;,&quot;colorbar&quot;],u=[&quot;min&quot;,&quot;max&quot;,&quot;mid&quot;,&quot;auto&quot;];function f(t){var e,r,n,i=t._colorAx,a=i||t,o={};for(r=0;r&lt;c.length;r++)o[n=c[r]]=a[n];if(i)for(e=&quot;c&quot;,r=0;r&lt;u.length;r++)o[n=u[r]]=a[&quot;c&quot;+n];else{var s;for(r=0;r&lt;u.length;r++)((s=&quot;c&quot;+(n=u[r]))in a||(s=&quot;z&quot;+n)in a)&amp;&amp;(o[n]=a[s]);e=s.charAt(0)}return o._sync=function(t,r){var n=-1!==u.indexOf(t)?e+t:t;a[n]=a[&quot;_&quot;+n]=r},o}function h(t){for(var e=f(t),r=e.min,n=e.max,i=e.reversescale?p(e.colorscale):e.colorscale,a=i.length,o=new Array(a),s=new Array(a),l=0;l&lt;a;l++){var c=i[l];o[l]=r+c[0]*(n-r),s[l]=c[1]}return{domain:o,range:s}}function p(t){for(var e=t.length,r=new Array(e),n=e-1,i=0;n&gt;=0;n--,i++){var a=t[n];r[i]=[1-a[0],a[1]]}return r}function d(t,e){e=e||{};for(var r=t.domain,o=t.range,l=o.length,c=new Array(l),u=0;u&lt;l;u++){var f=i(o[u]).toRgb();c[u]=[f.r,f.g,f.b,f.a]}var h,p=n.scale.linear().domain(r).range(c).clamp(!0),d=e.noNumericCheck,m=e.returnArray;return(h=d&amp;&amp;m?p:d?function(t){return g(p(t))}:m?function(t){return a(t)?p(t):i(t).isValid()?t:s.defaultLine}:function(t){return a(t)?g(p(t)):i(t).isValid()?t:s.defaultLine}).domain=p.domain,h.range=function(){return o},h}function g(t){var e={r:t[0],g:t[1],b:t[2],a:t[3]};return i(e).toRgbString()}e.exports={hasColorscale:function(t,e,r){var n=e?o.nestedProperty(t,e).get()||{}:t,i=n[r||&quot;color&quot;],s=!1;if(o.isArrayOrTypedArray(i))for(var c=0;c&lt;i.length;c++)if(a(i[c])){s=!0;break}return o.isPlainObject(n)&amp;&amp;(s||!0===n.showscale||a(n.cmin)&amp;&amp;a(n.cmax)||l(n.colorscale)||o.isPlainObject(n.colorbar))},extractOpts:f,extractScale:h,flipScale:p,makeColorScaleFunc:d,makeColorScaleFuncFromTrace:function(t,e){return d(h(t),e)}}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;./scales&quot;:658,d3:169,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],655:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./scales&quot;),i=t(&quot;./helpers&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;colorscale&quot;,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),handleDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),calc:t(&quot;./calc&quot;),scales:n.scales,defaultScale:n.defaultScale,getScale:n.get,isValidScale:n.isValid,hasColorscale:i.hasColorscale,extractOpts:i.extractOpts,extractScale:i.extractScale,flipScale:i.flipScale,makeColorScaleFunc:i.makeColorScaleFunc,makeColorScaleFuncFromTrace:i.makeColorScaleFuncFromTrace}},{&quot;./attributes&quot;:650,&quot;./calc&quot;:651,&quot;./cross_trace_defaults&quot;:652,&quot;./defaults&quot;:653,&quot;./helpers&quot;:654,&quot;./layout_attributes&quot;:656,&quot;./layout_defaults&quot;:657,&quot;./scales&quot;:658}],656:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;./attributes&quot;),a=t(&quot;./scales&quot;).scales;e.exports={editType:&quot;calc&quot;,colorscale:{editType:&quot;calc&quot;,sequential:{valType:&quot;colorscale&quot;,dflt:a.Reds,editType:&quot;calc&quot;},sequentialminus:{valType:&quot;colorscale&quot;,dflt:a.Blues,editType:&quot;calc&quot;},diverging:{valType:&quot;colorscale&quot;,dflt:a.RdBu,editType:&quot;calc&quot;}},coloraxis:n({_isSubplotObj:!0,editType:&quot;calc&quot;},i(&quot;&quot;,{colorAttr:&quot;corresponding trace color array(s)&quot;,noColorAxis:!0,showScaleDflt:!0}))}},{&quot;../../lib/extend&quot;:768,&quot;./attributes&quot;:650,&quot;./scales&quot;:658}],657:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;./layout_attributes&quot;),o=t(&quot;./defaults&quot;);e.exports=function(t,e){function r(r,i){return n.coerce(t,e,a,r,i)}r(&quot;colorscale.sequential&quot;),r(&quot;colorscale.sequentialminus&quot;),r(&quot;colorscale.diverging&quot;);var s,l,c=e._colorAxes;function u(t,e){return n.coerce(s,l,a.coloraxis,t,e)}for(var f in c){var h=c[f];if(h[0])s=t[f]||{},(l=i.newContainer(e,f,&quot;coloraxis&quot;))._name=f,o(s,l,e,u,{prefix:&quot;&quot;,cLetter:&quot;c&quot;});else{for(var p=0;p&lt;h[2].length;p++)h[2][p]();delete e._colorAxes[f]}}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;./defaults&quot;:653,&quot;./layout_attributes&quot;:656}],658:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;),i={Greys:[[0,&quot;rgb(0,0,0)&quot;],[1,&quot;rgb(255,255,255)&quot;]],YlGnBu:[[0,&quot;rgb(8,29,88)&quot;],[.125,&quot;rgb(37,52,148)&quot;],[.25,&quot;rgb(34,94,168)&quot;],[.375,&quot;rgb(29,145,192)&quot;],[.5,&quot;rgb(65,182,196)&quot;],[.625,&quot;rgb(127,205,187)&quot;],[.75,&quot;rgb(199,233,180)&quot;],[.875,&quot;rgb(237,248,217)&quot;],[1,&quot;rgb(255,255,217)&quot;]],Greens:[[0,&quot;rgb(0,68,27)&quot;],[.125,&quot;rgb(0,109,44)&quot;],[.25,&quot;rgb(35,139,69)&quot;],[.375,&quot;rgb(65,171,93)&quot;],[.5,&quot;rgb(116,196,118)&quot;],[.625,&quot;rgb(161,217,155)&quot;],[.75,&quot;rgb(199,233,192)&quot;],[.875,&quot;rgb(229,245,224)&quot;],[1,&quot;rgb(247,252,245)&quot;]],YlOrRd:[[0,&quot;rgb(128,0,38)&quot;],[.125,&quot;rgb(189,0,38)&quot;],[.25,&quot;rgb(227,26,28)&quot;],[.375,&quot;rgb(252,78,42)&quot;],[.5,&quot;rgb(253,141,60)&quot;],[.625,&quot;rgb(254,178,76)&quot;],[.75,&quot;rgb(254,217,118)&quot;],[.875,&quot;rgb(255,237,160)&quot;],[1,&quot;rgb(255,255,204)&quot;]],Bluered:[[0,&quot;rgb(0,0,255)&quot;],[1,&quot;rgb(255,0,0)&quot;]],RdBu:[[0,&quot;rgb(5,10,172)&quot;],[.35,&quot;rgb(106,137,247)&quot;],[.5,&quot;rgb(190,190,190)&quot;],[.6,&quot;rgb(220,170,132)&quot;],[.7,&quot;rgb(230,145,90)&quot;],[1,&quot;rgb(178,10,28)&quot;]],Reds:[[0,&quot;rgb(220,220,220)&quot;],[.2,&quot;rgb(245,195,157)&quot;],[.4,&quot;rgb(245,160,105)&quot;],[1,&quot;rgb(178,10,28)&quot;]],Blues:[[0,&quot;rgb(5,10,172)&quot;],[.35,&quot;rgb(40,60,190)&quot;],[.5,&quot;rgb(70,100,245)&quot;],[.6,&quot;rgb(90,120,245)&quot;],[.7,&quot;rgb(106,137,247)&quot;],[1,&quot;rgb(220,220,220)&quot;]],Picnic:[[0,&quot;rgb(0,0,255)&quot;],[.1,&quot;rgb(51,153,255)&quot;],[.2,&quot;rgb(102,204,255)&quot;],[.3,&quot;rgb(153,204,255)&quot;],[.4,&quot;rgb(204,204,255)&quot;],[.5,&quot;rgb(255,255,255)&quot;],[.6,&quot;rgb(255,204,255)&quot;],[.7,&quot;rgb(255,153,255)&quot;],[.8,&quot;rgb(255,102,204)&quot;],[.9,&quot;rgb(255,102,102)&quot;],[1,&quot;rgb(255,0,0)&quot;]],Rainbow:[[0,&quot;rgb(150,0,90)&quot;],[.125,&quot;rgb(0,0,200)&quot;],[.25,&quot;rgb(0,25,255)&quot;],[.375,&quot;rgb(0,152,255)&quot;],[.5,&quot;rgb(44,255,150)&quot;],[.625,&quot;rgb(151,255,0)&quot;],[.75,&quot;rgb(255,234,0)&quot;],[.875,&quot;rgb(255,111,0)&quot;],[1,&quot;rgb(255,0,0)&quot;]],Portland:[[0,&quot;rgb(12,51,131)&quot;],[.25,&quot;rgb(10,136,186)&quot;],[.5,&quot;rgb(242,211,56)&quot;],[.75,&quot;rgb(242,143,56)&quot;],[1,&quot;rgb(217,30,30)&quot;]],Jet:[[0,&quot;rgb(0,0,131)&quot;],[.125,&quot;rgb(0,60,170)&quot;],[.375,&quot;rgb(5,255,255)&quot;],[.625,&quot;rgb(255,255,0)&quot;],[.875,&quot;rgb(250,0,0)&quot;],[1,&quot;rgb(128,0,0)&quot;]],Hot:[[0,&quot;rgb(0,0,0)&quot;],[.3,&quot;rgb(230,0,0)&quot;],[.6,&quot;rgb(255,210,0)&quot;],[1,&quot;rgb(255,255,255)&quot;]],Blackbody:[[0,&quot;rgb(0,0,0)&quot;],[.2,&quot;rgb(230,0,0)&quot;],[.4,&quot;rgb(230,210,0)&quot;],[.7,&quot;rgb(255,255,255)&quot;],[1,&quot;rgb(160,200,255)&quot;]],Earth:[[0,&quot;rgb(0,0,130)&quot;],[.1,&quot;rgb(0,180,180)&quot;],[.2,&quot;rgb(40,210,40)&quot;],[.4,&quot;rgb(230,230,50)&quot;],[.6,&quot;rgb(120,70,20)&quot;],[1,&quot;rgb(255,255,255)&quot;]],Electric:[[0,&quot;rgb(0,0,0)&quot;],[.15,&quot;rgb(30,0,100)&quot;],[.4,&quot;rgb(120,0,100)&quot;],[.6,&quot;rgb(160,90,0)&quot;],[.8,&quot;rgb(230,200,0)&quot;],[1,&quot;rgb(255,250,220)&quot;]],Viridis:[[0,&quot;#440154&quot;],[.06274509803921569,&quot;#48186a&quot;],[.12549019607843137,&quot;#472d7b&quot;],[.18823529411764706,&quot;#424086&quot;],[.25098039215686274,&quot;#3b528b&quot;],[.3137254901960784,&quot;#33638d&quot;],[.3764705882352941,&quot;#2c728e&quot;],[.4392156862745098,&quot;#26828e&quot;],[.5019607843137255,&quot;#21918c&quot;],[.5647058823529412,&quot;#1fa088&quot;],[.6274509803921569,&quot;#28ae80&quot;],[.6901960784313725,&quot;#3fbc73&quot;],[.7529411764705882,&quot;#5ec962&quot;],[.8156862745098039,&quot;#84d44b&quot;],[.8784313725490196,&quot;#addc30&quot;],[.9411764705882353,&quot;#d8e219&quot;],[1,&quot;#fde725&quot;]],Cividis:[[0,&quot;rgb(0,32,76)&quot;],[.058824,&quot;rgb(0,42,102)&quot;],[.117647,&quot;rgb(0,52,110)&quot;],[.176471,&quot;rgb(39,63,108)&quot;],[.235294,&quot;rgb(60,74,107)&quot;],[.294118,&quot;rgb(76,85,107)&quot;],[.352941,&quot;rgb(91,95,109)&quot;],[.411765,&quot;rgb(104,106,112)&quot;],[.470588,&quot;rgb(117,117,117)&quot;],[.529412,&quot;rgb(131,129,120)&quot;],[.588235,&quot;rgb(146,140,120)&quot;],[.647059,&quot;rgb(161,152,118)&quot;],[.705882,&quot;rgb(176,165,114)&quot;],[.764706,&quot;rgb(192,177,109)&quot;],[.823529,&quot;rgb(209,191,102)&quot;],[.882353,&quot;rgb(225,204,92)&quot;],[.941176,&quot;rgb(243,219,79)&quot;],[1,&quot;rgb(255,233,69)&quot;]]},a=i.RdBu;function o(t){var e=0;if(!Array.isArray(t)||t.length&lt;2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r&lt;t.length;r++){var i=t[r];if(2!==i.length||+i[0]&lt;e||!n(i[1]).isValid())return!1;e=+i[0]}return!0}e.exports={scales:i,defaultScale:a,get:function(t,e){if(e||(e=a),!t)return e;function r(){try{t=i[t]||JSON.parse(t)}catch(r){t=e}}return&quot;string&quot;==typeof t&amp;&amp;(r(),&quot;string&quot;==typeof t&amp;&amp;r()),o(t)?t:e},isValid:function(t){return void 0!==i[t]||o(t)}}},{tinycolor2:576}],659:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=(t-r)/(n-r),o=a+e/(n-r),s=(a+o)/2;return&quot;left&quot;===i||&quot;bottom&quot;===i?a:&quot;center&quot;===i||&quot;middle&quot;===i?s:&quot;right&quot;===i||&quot;top&quot;===i?o:a&lt;2/3-s?a:o&gt;4/3-s?o:s}},{}],660:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=[[&quot;sw-resize&quot;,&quot;s-resize&quot;,&quot;se-resize&quot;],[&quot;w-resize&quot;,&quot;move&quot;,&quot;e-resize&quot;],[&quot;nw-resize&quot;,&quot;n-resize&quot;,&quot;ne-resize&quot;]];e.exports=function(t,e,r,a){return t=&quot;left&quot;===r?0:&quot;center&quot;===r?1:&quot;right&quot;===r?2:n.constrain(Math.floor(3*t),0,2),e=&quot;bottom&quot;===a?0:&quot;middle&quot;===a?1:&quot;top&quot;===a?2:n.constrain(Math.floor(3*e),0,2),i[e][t]}},{&quot;../../lib&quot;:778}],661:[function(t,e,r){&quot;use strict&quot;;r.selectMode=function(t){return&quot;lasso&quot;===t||&quot;select&quot;===t},r.drawMode=function(t){return&quot;drawclosedpath&quot;===t||&quot;drawopenpath&quot;===t||&quot;drawline&quot;===t||&quot;drawrect&quot;===t||&quot;drawcircle&quot;===t},r.openMode=function(t){return&quot;drawline&quot;===t||&quot;drawopenpath&quot;===t},r.rectMode=function(t){return&quot;select&quot;===t||&quot;drawline&quot;===t||&quot;drawrect&quot;===t||&quot;drawcircle&quot;===t},r.freeMode=function(t){return&quot;lasso&quot;===t||&quot;drawclosedpath&quot;===t||&quot;drawopenpath&quot;===t},r.selectingOrDrawing=function(t){return r.freeMode(t)||r.rectMode(t)}},{}],662:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mouse-event-offset&quot;),i=t(&quot;has-hover&quot;),a=t(&quot;has-passive-events&quot;),o=t(&quot;../../lib&quot;).removeElement,s=t(&quot;../../plots/cartesian/constants&quot;),l=e.exports={};l.align=t(&quot;./align&quot;),l.getCursor=t(&quot;./cursor&quot;);var c=t(&quot;./unhover&quot;);function u(){var t=document.createElement(&quot;div&quot;);t.className=&quot;dragcover&quot;;var e=t.style;return e.position=&quot;fixed&quot;,e.left=0,e.right=0,e.top=0,e.bottom=0,e.zIndex=999999999,e.background=&quot;none&quot;,document.body.appendChild(t),t}function f(t){return n(t.changedTouches?t.changedTouches[0]:t,document.body)}l.unhover=c.wrapped,l.unhoverRaw=c.raw,l.init=function(t){var e,r,n,c,h,p,d,g,m=t.gd,v=1,y=m._context.doubleClickDelay,x=t.element;m._mouseDownTime||(m._mouseDownTime=0),x.style.pointerEvents=&quot;all&quot;,x.onmousedown=_,a?(x._ontouchstart&amp;&amp;x.removeEventListener(&quot;touchstart&quot;,x._ontouchstart),x._ontouchstart=_,x.addEventListener(&quot;touchstart&quot;,_,{passive:!1})):x.ontouchstart=_;var b=t.clampFn||function(t,e,r){return Math.abs(t)&lt;r&amp;&amp;(t=0),Math.abs(e)&lt;r&amp;&amp;(e=0),[t,e]};function _(a){m._dragged=!1,m._dragging=!0;var o=f(a);e=o[0],r=o[1],d=a.target,p=a,g=2===a.buttons||a.ctrlKey,&quot;undefined&quot;==typeof a.clientX&amp;&amp;&quot;undefined&quot;==typeof a.clientY&amp;&amp;(a.clientX=e,a.clientY=r),(n=(new Date).getTime())-m._mouseDownTime&lt;y?v+=1:(v=1,m._mouseDownTime=n),t.prepFn&amp;&amp;t.prepFn(a,e,r),i&amp;&amp;!g?(h=u()).style.cursor=window.getComputedStyle(x).cursor:i||(h=document,c=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(x).cursor),document.addEventListener(&quot;mouseup&quot;,T),document.addEventListener(&quot;touchend&quot;,T),!1!==t.dragmode&amp;&amp;(a.preventDefault(),document.addEventListener(&quot;mousemove&quot;,w),document.addEventListener(&quot;touchmove&quot;,w,{passive:!1}))}function w(n){n.preventDefault();var i=f(n),a=t.minDrag||s.MINDRAG,o=b(i[0]-e,i[1]-r,a),c=o[0],u=o[1];(c||u)&amp;&amp;(m._dragged=!0,l.unhover(m)),m._dragged&amp;&amp;t.moveFn&amp;&amp;!g&amp;&amp;(m._dragdata={element:x,dx:c,dy:u},t.moveFn(c,u))}function T(e){if(delete m._dragdata,!1!==t.dragmode&amp;&amp;(e.preventDefault(),document.removeEventListener(&quot;mousemove&quot;,w),document.removeEventListener(&quot;touchmove&quot;,w)),document.removeEventListener(&quot;mouseup&quot;,T),document.removeEventListener(&quot;touchend&quot;,T),i?o(h):c&amp;&amp;(h.documentElement.style.cursor=c,c=null),m._dragging){if(m._dragging=!1,(new Date).getTime()-m._mouseDownTime&gt;y&amp;&amp;(v=Math.max(v-1,1)),m._dragged)t.doneFn&amp;&amp;t.doneFn();else if(t.clickFn&amp;&amp;t.clickFn(v,p),!g){var r;try{r=new MouseEvent(&quot;click&quot;,e)}catch(t){var n=f(e);(r=document.createEvent(&quot;MouseEvents&quot;)).initMouseEvent(&quot;click&quot;,e.bubbles,e.cancelable,e.view,e.detail,e.screenX,e.screenY,n[0],n[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget)}d.dispatchEvent(r)}m._dragging=!1,m._dragged=!1}else m._dragged=!1}},l.coverSlip=u},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/constants&quot;:834,&quot;./align&quot;:659,&quot;./cursor&quot;:660,&quot;./unhover&quot;:663,&quot;has-hover&quot;:440,&quot;has-passive-events&quot;:441,&quot;mouse-event-offset&quot;:484}],663:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/events&quot;),i=t(&quot;../../lib/throttle&quot;),a=t(&quot;../../lib/dom&quot;).getGraphDiv,o=t(&quot;../fx/constants&quot;),s=e.exports={};s.wrapped=function(t,e,r){(t=a(t))._fullLayout&amp;&amp;i.clear(t._fullLayout._uid+o.HOVERID),s.raw(t,e,r)},s.raw=function(t,e){var r=t._fullLayout,i=t._hoverdata;e||(e={}),e.target&amp;&amp;!1===n.triggerHandler(t,&quot;plotly_beforehover&quot;,e)||(r._hoverlayer.selectAll(&quot;g&quot;).remove(),r._hoverlayer.selectAll(&quot;line&quot;).remove(),r._hoverlayer.selectAll(&quot;circle&quot;).remove(),t._hoverdata=void 0,e.target&amp;&amp;i&amp;&amp;t.emit(&quot;plotly_unhover&quot;,{event:e,points:i}))}},{&quot;../../lib/dom&quot;:766,&quot;../../lib/events&quot;:767,&quot;../../lib/throttle&quot;:804,&quot;../fx/constants&quot;:677}],664:[function(t,e,r){&quot;use strict&quot;;r.dash={valType:&quot;string&quot;,values:[&quot;solid&quot;,&quot;dot&quot;,&quot;dash&quot;,&quot;longdash&quot;,&quot;dashdot&quot;,&quot;longdashdot&quot;],dflt:&quot;solid&quot;,editType:&quot;style&quot;}},{}],665:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../color&quot;),l=t(&quot;../colorscale&quot;),c=t(&quot;../../lib&quot;),u=c.strTranslate,f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../constants/xmlns_namespaces&quot;),p=t(&quot;../../constants/alignment&quot;).LINE_SPACING,d=t(&quot;../../constants/interactions&quot;).DESELECTDIM,g=t(&quot;../../traces/scatter/subtypes&quot;),m=t(&quot;../../traces/scatter/make_bubble_size_func&quot;),v=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,y=e.exports={};y.font=function(t,e,r,n){c.isPlainObject(e)&amp;&amp;(n=e.color,r=e.size,e=e.family),e&amp;&amp;t.style(&quot;font-family&quot;,e),r+1&amp;&amp;t.style(&quot;font-size&quot;,r+&quot;px&quot;),n&amp;&amp;t.call(s.fill,n)},y.setPosition=function(t,e,r){t.attr(&quot;x&quot;,e).attr(&quot;y&quot;,r)},y.setSize=function(t,e,r){t.attr(&quot;width&quot;,e).attr(&quot;height&quot;,r)},y.setRect=function(t,e,r,n,i){t.call(y.setPosition,e,r).call(y.setSize,n,i)},y.translatePoint=function(t,e,r,n){var a=r.c2p(t.x),o=n.c2p(t.y);return!!(i(a)&amp;&amp;i(o)&amp;&amp;e.node())&amp;&amp;(&quot;text&quot;===e.node().nodeName?e.attr(&quot;x&quot;,a).attr(&quot;y&quot;,o):e.attr(&quot;transform&quot;,u(a,o)),!0)},y.translatePoints=function(t,e,r){t.each((function(t){var i=n.select(this);y.translatePoint(t,i,e,r)}))},y.hideOutsideRangePoint=function(t,e,r,n,i,a){e.attr(&quot;display&quot;,r.isPtWithinRange(t,i)&amp;&amp;n.isPtWithinRange(t,a)?null:&quot;none&quot;)},y.hideOutsideRangePoints=function(t,e){if(e._hasClipOnAxisFalse){var r=e.xaxis,i=e.yaxis;t.each((function(e){var a=e[0].trace,s=a.xcalendar,l=a.ycalendar,c=o.traceIs(a,&quot;bar-like&quot;)?&quot;.bartext&quot;:&quot;.point,.textpoint&quot;;t.selectAll(c).each((function(t){y.hideOutsideRangePoint(t,n.select(this),r,i,s,l)}))}))}},y.crispRound=function(t,e,r){return e&amp;&amp;i(e)?t._context.staticPlot?e:e&lt;1?1:Math.round(e):r||0},y.singleLineStyle=function(t,e,r,n,i){e.style(&quot;fill&quot;,&quot;none&quot;);var a=(((t||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,l=i||a.dash||&quot;&quot;;s.stroke(e,n||a.color),y.dashLine(e,l,o)},y.lineGroupStyle=function(t,e,r,i){t.style(&quot;fill&quot;,&quot;none&quot;).each((function(t){var a=(((t||[])[0]||{}).trace||{}).line||{},o=e||a.width||0,l=i||a.dash||&quot;&quot;;n.select(this).call(s.stroke,r||a.color).call(y.dashLine,l,o)}))},y.dashLine=function(t,e,r){r=+r||0,e=y.dashStyle(e,r),t.style({&quot;stroke-dasharray&quot;:e,&quot;stroke-width&quot;:r+&quot;px&quot;})},y.dashStyle=function(t,e){e=+e||1;var r=Math.max(e,3);return&quot;solid&quot;===t?t=&quot;&quot;:&quot;dot&quot;===t?t=r+&quot;px,&quot;+r+&quot;px&quot;:&quot;dash&quot;===t?t=3*r+&quot;px,&quot;+3*r+&quot;px&quot;:&quot;longdash&quot;===t?t=5*r+&quot;px,&quot;+5*r+&quot;px&quot;:&quot;dashdot&quot;===t?t=3*r+&quot;px,&quot;+r+&quot;px,&quot;+r+&quot;px,&quot;+r+&quot;px&quot;:&quot;longdashdot&quot;===t&amp;&amp;(t=5*r+&quot;px,&quot;+2*r+&quot;px,&quot;+r+&quot;px,&quot;+2*r+&quot;px&quot;),t},y.singleFillStyle=function(t){var e=(((n.select(t.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;e&amp;&amp;t.call(s.fill,e)},y.fillGroupStyle=function(t){t.style(&quot;stroke-width&quot;,0).each((function(t){var e=n.select(this);t[0].trace&amp;&amp;e.call(s.fill,t[0].trace.fillcolor)}))};var x=t(&quot;./symbol_defs&quot;);y.symbolNames=[],y.symbolFuncs=[],y.symbolNeedLines={},y.symbolNoDot={},y.symbolNoFill={},y.symbolList=[],Object.keys(x).forEach((function(t){var e=x[t],r=e.n;y.symbolList.push(r,String(r),t,r+100,String(r+100),t+&quot;-open&quot;),y.symbolNames[r]=t,y.symbolFuncs[r]=e.f,e.needLine&amp;&amp;(y.symbolNeedLines[r]=!0),e.noDot?y.symbolNoDot[r]=!0:y.symbolList.push(r+200,String(r+200),t+&quot;-dot&quot;,r+300,String(r+300),t+&quot;-open-dot&quot;),e.noFill&amp;&amp;(y.symbolNoFill[r]=!0)}));var b=y.symbolNames.length;function _(t,e){var r=t%100;return y.symbolFuncs[r](e)+(t&gt;=200?&quot;M0,0.5L0.5,0L0,-0.5L-0.5,0Z&quot;:&quot;&quot;)}y.symbolNumber=function(t){if(i(t))t=+t;else if(&quot;string&quot;==typeof t){var e=0;t.indexOf(&quot;-open&quot;)&gt;0&amp;&amp;(e=100,t=t.replace(&quot;-open&quot;,&quot;&quot;)),t.indexOf(&quot;-dot&quot;)&gt;0&amp;&amp;(e+=200,t=t.replace(&quot;-dot&quot;,&quot;&quot;)),(t=y.symbolNames.indexOf(t))&gt;=0&amp;&amp;(t+=e)}return t%100&gt;=b||t&gt;=400?0:Math.floor(Math.max(t,0))};var w={x1:1,x2:0,y1:0,y2:0},T={x1:0,x2:0,y1:1,y2:0},k=n.format(&quot;~.1f&quot;),M={radial:{node:&quot;radialGradient&quot;},radialreversed:{node:&quot;radialGradient&quot;,reversed:!0},horizontal:{node:&quot;linearGradient&quot;,attrs:w},horizontalreversed:{node:&quot;linearGradient&quot;,attrs:w,reversed:!0},vertical:{node:&quot;linearGradient&quot;,attrs:T},verticalreversed:{node:&quot;linearGradient&quot;,attrs:T,reversed:!0}};y.gradient=function(t,e,r,i,o,l){for(var u=o.length,f=M[i],h=new Array(u),p=0;p&lt;u;p++)f.reversed?h[u-1-p]=[k(100*(1-o[p][0])),o[p][1]]:h[p]=[k(100*o[p][0]),o[p][1]];var d=e._fullLayout,g=&quot;g&quot;+d._uid+&quot;-&quot;+r,m=d._defs.select(&quot;.gradients&quot;).selectAll(&quot;#&quot;+g).data([i+h.join(&quot;;&quot;)],c.identity);m.exit().remove(),m.enter().append(f.node).each((function(){var t=n.select(this);f.attrs&amp;&amp;t.attr(f.attrs),t.attr(&quot;id&quot;,g);var e=t.selectAll(&quot;stop&quot;).data(h);e.exit().remove(),e.enter().append(&quot;stop&quot;),e.each((function(t){var e=a(t[1]);n.select(this).attr({offset:t[0]+&quot;%&quot;,&quot;stop-color&quot;:s.tinyRGB(e),&quot;stop-opacity&quot;:e.getAlpha()})}))})),t.style(l,O(g,e)).style(l+&quot;-opacity&quot;,null);var v=function(t){return&quot;.&quot;+t.attr(&quot;class&quot;).replace(/\s/g,&quot;.&quot;)},y=v(n.select(t.node().parentNode))+&quot;&gt;&quot;+v(t);d._gradientUrlQueryParts[y]=1},y.initGradients=function(t){var e=t._fullLayout;c.ensureSingle(e._defs,&quot;g&quot;,&quot;gradients&quot;).selectAll(&quot;linearGradient,radialGradient&quot;).remove(),e._gradientUrlQueryParts={}},y.pointStyle=function(t,e,r){if(t.size()){var i=y.makePointStyleFns(e);t.each((function(t){y.singlePointStyle(t,n.select(this),e,i,r)}))}},y.singlePointStyle=function(t,e,r,n,i){var a=r.marker,o=a.line;if(e.style(&quot;opacity&quot;,n.selectedOpacityFn?n.selectedOpacityFn(t):void 0===t.mo?a.opacity:t.mo),n.ms2mrc){var l;l=&quot;various&quot;===t.ms||&quot;various&quot;===a.size?3:n.ms2mrc(t.ms),t.mrc=l,n.selectedSizeFn&amp;&amp;(l=t.mrc=n.selectedSizeFn(t));var u=y.symbolNumber(t.mx||a.symbol)||0;t.om=u%200&gt;=100,e.attr(&quot;d&quot;,_(u,l))}var f,h,p,d=!1;if(t.so)p=o.outlierwidth,h=o.outliercolor,f=a.outliercolor;else{var g=(o||{}).width;p=(t.mlw+1||g+1||(t.trace?(t.trace.marker.line||{}).width:0)+1)-1||0,h=&quot;mlc&quot;in t?t.mlcc=n.lineScale(t.mlc):c.isArrayOrTypedArray(o.color)?s.defaultLine:o.color,c.isArrayOrTypedArray(a.color)&amp;&amp;(f=s.defaultLine,d=!0),f=&quot;mc&quot;in t?t.mcc=n.markerScale(t.mc):a.color||&quot;rgba(0,0,0,0)&quot;,n.selectedColorFn&amp;&amp;(f=n.selectedColorFn(t))}if(t.om)e.call(s.stroke,f).style({&quot;stroke-width&quot;:(p||1)+&quot;px&quot;,fill:&quot;none&quot;});else{e.style(&quot;stroke-width&quot;,(t.isBlank?0:p)+&quot;px&quot;);var m=a.gradient,v=t.mgt;if(v?d=!0:v=m&amp;&amp;m.type,Array.isArray(v)&amp;&amp;(v=v[0],M[v]||(v=0)),v&amp;&amp;&quot;none&quot;!==v){var x=t.mgc;x?d=!0:x=m.color;var b=r.uid;d&amp;&amp;(b+=&quot;-&quot;+t.i),y.gradient(e,i,b,v,[[0,x],[1,f]],&quot;fill&quot;)}else s.fill(e,f);p&amp;&amp;s.stroke(e,h)}},y.makePointStyleFns=function(t){var e={},r=t.marker;return e.markerScale=y.tryColorscale(r,&quot;&quot;),e.lineScale=y.tryColorscale(r,&quot;line&quot;),o.traceIs(t,&quot;symbols&quot;)&amp;&amp;(e.ms2mrc=g.isBubble(t)?m(t):function(){return(r.size||6)/2}),t.selectedpoints&amp;&amp;c.extendFlat(e,y.makeSelectedPointStyleFns(t)),e},y.makeSelectedPointStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.marker||{},a=r.marker||{},s=n.marker||{},l=i.opacity,u=a.opacity,f=s.opacity,h=void 0!==u,p=void 0!==f;(c.isArrayOrTypedArray(l)||h||p)&amp;&amp;(e.selectedOpacityFn=function(t){var e=void 0===t.mo?i.opacity:t.mo;return t.selected?h?u:e:p?f:d*e});var g=i.color,m=a.color,v=s.color;(m||v)&amp;&amp;(e.selectedColorFn=function(t){var e=t.mcc||g;return t.selected?m||e:v||e});var y=i.size,x=a.size,b=s.size,_=void 0!==x,w=void 0!==b;return o.traceIs(t,&quot;symbols&quot;)&amp;&amp;(_||w)&amp;&amp;(e.selectedSizeFn=function(t){var e=t.mrc||y/2;return t.selected?_?x/2:e:w?b/2:e}),e},y.makeSelectedTextStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.textfont||{},a=r.textfont||{},o=n.textfont||{},l=i.color,c=a.color,u=o.color;return e.selectedTextColorFn=function(t){var e=t.tc||l;return t.selected?c||e:u||(c?e:s.addOpacity(e,d))},e},y.selectedPointStyle=function(t,e){if(t.size()&amp;&amp;e.selectedpoints){var r=y.makeSelectedPointStyleFns(e),i=e.marker||{},a=[];r.selectedOpacityFn&amp;&amp;a.push((function(t,e){t.style(&quot;opacity&quot;,r.selectedOpacityFn(e))})),r.selectedColorFn&amp;&amp;a.push((function(t,e){s.fill(t,r.selectedColorFn(e))})),r.selectedSizeFn&amp;&amp;a.push((function(t,e){var n=e.mx||i.symbol||0,a=r.selectedSizeFn(e);t.attr(&quot;d&quot;,_(y.symbolNumber(n),a)),e.mrc2=a})),a.length&amp;&amp;t.each((function(t){for(var e=n.select(this),r=0;r&lt;a.length;r++)a[r](e,t)}))}},y.tryColorscale=function(t,e){var r=e?c.nestedProperty(t,e).get():t;if(r){var n=r.color;if((r.colorscale||r._colorAx)&amp;&amp;c.isArrayOrTypedArray(n))return l.makeColorScaleFuncFromTrace(r)}return c.identity};var A={start:1,end:-1,middle:0,bottom:1,top:-1};function S(t,e,r,i){var a=n.select(t.node().parentNode),o=-1!==e.indexOf(&quot;top&quot;)?&quot;top&quot;:-1!==e.indexOf(&quot;bottom&quot;)?&quot;bottom&quot;:&quot;middle&quot;,s=-1!==e.indexOf(&quot;left&quot;)?&quot;end&quot;:-1!==e.indexOf(&quot;right&quot;)?&quot;start&quot;:&quot;middle&quot;,l=i?i/.8+1:0,c=(f.lineCount(t)-1)*p+1,h=A[s]*l,d=.75*r+A[o]*l+(A[o]-1)*c*r/2;t.attr(&quot;text-anchor&quot;,s),a.attr(&quot;transform&quot;,u(h,d))}function E(t,e){var r=t.ts||e.textfont.size;return i(r)&amp;&amp;r&gt;0?r:0}y.textPointStyle=function(t,e,r){if(t.size()){var i;if(e.selectedpoints){var a=y.makeSelectedTextStyleFns(e);i=a.selectedTextColorFn}var o=e.texttemplate,s=r._fullLayout;t.each((function(t){var a=n.select(this),l=o?c.extractOption(t,e,&quot;txt&quot;,&quot;texttemplate&quot;):c.extractOption(t,e,&quot;tx&quot;,&quot;text&quot;);if(l||0===l){if(o){var u=e._module.formatLabels?e._module.formatLabels(t,e,s):{},h={};v(h,e,t.i);var p=e._meta||{};l=c.texttemplateString(l,u,s._d3locale,h,t,p)}var d=t.tp||e.textposition,g=E(t,e),m=i?i(t):t.tc||e.textfont.color;a.call(y.font,t.tf||e.textfont.family,g,m).text(l).call(f.convertToTspans,r).call(S,d,g,t.mrc)}else a.remove()}))}},y.selectedTextStyle=function(t,e){if(t.size()&amp;&amp;e.selectedpoints){var r=y.makeSelectedTextStyleFns(e);t.each((function(t){var i=n.select(this),a=r.selectedTextColorFn(t),o=t.tp||e.textposition,l=E(t,e);s.fill(i,a),S(i,o,l,t.mrc2||t.mrc)}))}};function C(t,e,r,i){var a=t[0]-e[0],o=t[1]-e[1],s=r[0]-e[0],l=r[1]-e[1],c=Math.pow(a*a+o*o,.25),u=Math.pow(s*s+l*l,.25),f=(u*u*a-c*c*s)*i,h=(u*u*o-c*c*l)*i,p=3*u*(c+u),d=3*c*(c+u);return[[n.round(e[0]+(p&amp;&amp;f/p),2),n.round(e[1]+(p&amp;&amp;h/p),2)],[n.round(e[0]-(d&amp;&amp;f/d),2),n.round(e[1]-(d&amp;&amp;h/d),2)]]}y.smoothopen=function(t,e){if(t.length&lt;3)return&quot;M&quot;+t.join(&quot;L&quot;);var r,n=&quot;M&quot;+t[0],i=[];for(r=1;r&lt;t.length-1;r++)i.push(C(t[r-1],t[r],t[r+1],e));for(n+=&quot;Q&quot;+i[0][0]+&quot; &quot;+t[1],r=2;r&lt;t.length-1;r++)n+=&quot;C&quot;+i[r-2][1]+&quot; &quot;+i[r-1][0]+&quot; &quot;+t[r];return n+=&quot;Q&quot;+i[t.length-3][1]+&quot; &quot;+t[t.length-1]},y.smoothclosed=function(t,e){if(t.length&lt;3)return&quot;M&quot;+t.join(&quot;L&quot;)+&quot;Z&quot;;var r,n=&quot;M&quot;+t[0],i=t.length-1,a=[C(t[i],t[0],t[1],e)];for(r=1;r&lt;i;r++)a.push(C(t[r-1],t[r],t[r+1],e));for(a.push(C(t[i-1],t[i],t[0],e)),r=1;r&lt;=i;r++)n+=&quot;C&quot;+a[r-1][1]+&quot; &quot;+a[r][0]+&quot; &quot;+t[r];return n+=&quot;C&quot;+a[i][1]+&quot; &quot;+a[0][0]+&quot; &quot;+t[0]+&quot;Z&quot;};var L={hv:function(t,e){return&quot;H&quot;+n.round(e[0],2)+&quot;V&quot;+n.round(e[1],2)},vh:function(t,e){return&quot;V&quot;+n.round(e[1],2)+&quot;H&quot;+n.round(e[0],2)},hvh:function(t,e){return&quot;H&quot;+n.round((t[0]+e[0])/2,2)+&quot;V&quot;+n.round(e[1],2)+&quot;H&quot;+n.round(e[0],2)},vhv:function(t,e){return&quot;V&quot;+n.round((t[1]+e[1])/2,2)+&quot;H&quot;+n.round(e[0],2)+&quot;V&quot;+n.round(e[1],2)}},I=function(t,e){return&quot;L&quot;+n.round(e[0],2)+&quot;,&quot;+n.round(e[1],2)};y.steps=function(t){var e=L[t]||I;return function(t){for(var r=&quot;M&quot;+n.round(t[0][0],2)+&quot;,&quot;+n.round(t[0][1],2),i=1;i&lt;t.length;i++)r+=e(t[i-1],t[i]);return r}},y.makeTester=function(){var t=c.ensureSingleById(n.select(&quot;body&quot;),&quot;svg&quot;,&quot;js-plotly-tester&quot;,(function(t){t.attr(h.svgAttrs).style({position:&quot;absolute&quot;,left:&quot;-10000px&quot;,top:&quot;-10000px&quot;,width:&quot;9000px&quot;,height:&quot;9000px&quot;,&quot;z-index&quot;:&quot;1&quot;})})),e=c.ensureSingle(t,&quot;path&quot;,&quot;js-reference-point&quot;,(function(t){t.attr(&quot;d&quot;,&quot;M0,0H1V1H0Z&quot;).style({&quot;stroke-width&quot;:0,fill:&quot;black&quot;})}));y.tester=t,y.testref=e},y.savedBBoxes={};var P=0;function z(t){var e=t.getAttribute(&quot;data-unformatted&quot;);if(null!==e)return e+t.getAttribute(&quot;data-math&quot;)+t.getAttribute(&quot;text-anchor&quot;)+t.getAttribute(&quot;style&quot;)}function O(t,e){if(!t)return null;var r=e._context;return&quot;url('&quot;+(r._exportedPlot?&quot;&quot;:r._baseUrl||&quot;&quot;)+&quot;#&quot;+t+&quot;')&quot;}y.bBox=function(t,e,r){var i,a,o;if(r||(r=z(t)),r){if(i=y.savedBBoxes[r])return c.extendFlat({},i)}else if(1===t.childNodes.length){var s=t.childNodes[0];if(r=z(s)){var l=+s.getAttribute(&quot;x&quot;)||0,u=+s.getAttribute(&quot;y&quot;)||0,h=s.getAttribute(&quot;transform&quot;);if(!h){var p=y.bBox(s,!1,r);return l&amp;&amp;(p.left+=l,p.right+=l),u&amp;&amp;(p.top+=u,p.bottom+=u),p}if(r+=&quot;~&quot;+l+&quot;~&quot;+u+&quot;~&quot;+h,i=y.savedBBoxes[r])return c.extendFlat({},i)}}e?a=t:(o=y.tester.node(),a=t.cloneNode(!0),o.appendChild(a)),n.select(a).attr(&quot;transform&quot;,null).call(f.positionText,0,0);var d=a.getBoundingClientRect(),g=y.testref.node().getBoundingClientRect();e||o.removeChild(a);var m={height:d.height,width:d.width,left:d.left-g.left,top:d.top-g.top,right:d.right-g.left,bottom:d.bottom-g.top};return P&gt;=1e4&amp;&amp;(y.savedBBoxes={},P=0),r&amp;&amp;(y.savedBBoxes[r]=m),P++,c.extendFlat({},m)},y.setClipUrl=function(t,e,r){t.attr(&quot;clip-path&quot;,O(e,r))},y.getTranslate=function(t){var e=(t[t.attr?&quot;attr&quot;:&quot;getAttribute&quot;](&quot;transform&quot;)||&quot;&quot;).replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(&quot; &quot;)})).split(&quot; &quot;);return{x:+e[0]||0,y:+e[1]||0}},y.setTranslate=function(t,e,r){var n=t.attr?&quot;attr&quot;:&quot;getAttribute&quot;,i=t.attr?&quot;attr&quot;:&quot;setAttribute&quot;,a=t[n](&quot;transform&quot;)||&quot;&quot;;return e=e||0,r=r||0,a=a.replace(/(\btranslate\(.*?\);?)/,&quot;&quot;).trim(),a=(a+=u(e,r)).trim(),t[i](&quot;transform&quot;,a),a},y.getScale=function(t){var e=(t[t.attr?&quot;attr&quot;:&quot;getAttribute&quot;](&quot;transform&quot;)||&quot;&quot;).replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(&quot; &quot;)})).split(&quot; &quot;);return{x:+e[0]||1,y:+e[1]||1}},y.setScale=function(t,e,r){var n=t.attr?&quot;attr&quot;:&quot;getAttribute&quot;,i=t.attr?&quot;attr&quot;:&quot;setAttribute&quot;,a=t[n](&quot;transform&quot;)||&quot;&quot;;return e=e||1,r=r||1,a=a.replace(/(\bscale\(.*?\);?)/,&quot;&quot;).trim(),a=(a+=&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;).trim(),t[i](&quot;transform&quot;,a),a};var D=/\s*sc.*/;y.setPointGroupScale=function(t,e,r){if(e=e||1,r=r||1,t){var n=1===e&amp;&amp;1===r?&quot;&quot;:&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;;t.each((function(){var t=(this.getAttribute(&quot;transform&quot;)||&quot;&quot;).replace(D,&quot;&quot;);t=(t+=n).trim(),this.setAttribute(&quot;transform&quot;,t)}))}};var R=/translate\([^)]*\)\s*$/;y.setTextPointsScale=function(t,e,r){t&amp;&amp;t.each((function(){var t,i=n.select(this),a=i.select(&quot;text&quot;);if(a.node()){var o=parseFloat(a.attr(&quot;x&quot;)||0),s=parseFloat(a.attr(&quot;y&quot;)||0),l=(i.attr(&quot;transform&quot;)||&quot;&quot;).match(R);t=1===e&amp;&amp;1===r?[]:[u(o,s),&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;,u(-o,-s)],l&amp;&amp;t.push(l),i.attr(&quot;transform&quot;,t.join(&quot;&quot;))}}))}},{&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/alignment&quot;:745,&quot;../../constants/interactions&quot;:752,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../registry&quot;:911,&quot;../../traces/scatter/make_bubble_size_func&quot;:1204,&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../color&quot;:643,&quot;../colorscale&quot;:655,&quot;./symbol_defs&quot;:666,d3:169,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],666:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports={circle:{n:0,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;}},square:{n:1,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;}},diamond:{n:2,f:function(t){var e=n.round(1.3*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;Z&quot;}},cross:{n:3,f:function(t){var e=n.round(.4*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+r+&quot;,&quot;+e+&quot;H&quot;+e+&quot;V&quot;+r+&quot;H-&quot;+e+&quot;V&quot;+e+&quot;H-&quot;+r+&quot;V-&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+r+&quot;H&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+r+&quot;Z&quot;}},x:{n:4,f:function(t){var e=n.round(.8*t/Math.sqrt(2),2),r=&quot;l&quot;+e+&quot;,&quot;+e,i=&quot;l&quot;+e+&quot;,-&quot;+e,a=&quot;l-&quot;+e+&quot;,-&quot;+e,o=&quot;l-&quot;+e+&quot;,&quot;+e;return&quot;M0,&quot;+e+r+i+a+i+a+o+a+o+r+o+r+&quot;Z&quot;}},&quot;triangle-up&quot;:{n:5,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+e+&quot;,&quot;+n.round(t/2,2)+&quot;H&quot;+e+&quot;L0,-&quot;+n.round(t,2)+&quot;Z&quot;}},&quot;triangle-down&quot;:{n:6,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+e+&quot;,-&quot;+n.round(t/2,2)+&quot;H&quot;+e+&quot;L0,&quot;+n.round(t,2)+&quot;Z&quot;}},&quot;triangle-left&quot;:{n:7,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M&quot;+n.round(t/2,2)+&quot;,-&quot;+e+&quot;V&quot;+e+&quot;L-&quot;+n.round(t,2)+&quot;,0Z&quot;}},&quot;triangle-right&quot;:{n:8,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+n.round(t/2,2)+&quot;,-&quot;+e+&quot;V&quot;+e+&quot;L&quot;+n.round(t,2)+&quot;,0Z&quot;}},&quot;triangle-ne&quot;:{n:9,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M-&quot;+r+&quot;,-&quot;+e+&quot;H&quot;+e+&quot;V&quot;+r+&quot;Z&quot;}},&quot;triangle-se&quot;:{n:10,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+e+&quot;H-&quot;+r+&quot;Z&quot;}},&quot;triangle-sw&quot;:{n:11,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+r+&quot;Z&quot;}},&quot;triangle-nw&quot;:{n:12,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M-&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+e+&quot;H&quot;+r+&quot;Z&quot;}},pentagon:{n:13,f:function(t){var e=n.round(.951*t,2),r=n.round(.588*t,2),i=n.round(-t,2),a=n.round(-.309*t,2);return&quot;M&quot;+e+&quot;,&quot;+a+&quot;L&quot;+r+&quot;,&quot;+n.round(.809*t,2)+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,&quot;+a+&quot;L0,&quot;+i+&quot;Z&quot;}},hexagon:{n:14,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return&quot;M&quot;+i+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;L0,&quot;+e+&quot;L-&quot;+i+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;L0,-&quot;+e+&quot;Z&quot;}},hexagon2:{n:15,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return&quot;M-&quot;+r+&quot;,&quot;+i+&quot;H&quot;+r+&quot;L&quot;+e+&quot;,0L&quot;+r+&quot;,-&quot;+i+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},octagon:{n:16,f:function(t){var e=n.round(.924*t,2),r=n.round(.383*t,2);return&quot;M-&quot;+r+&quot;,-&quot;+e+&quot;H&quot;+r+&quot;L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;L&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;Z&quot;}},star:{n:17,f:function(t){var e=1.4*t,r=n.round(.225*e,2),i=n.round(.951*e,2),a=n.round(.363*e,2),o=n.round(.588*e,2),s=n.round(-e,2),l=n.round(-.309*e,2),c=n.round(.118*e,2),u=n.round(.809*e,2);return&quot;M&quot;+r+&quot;,&quot;+l+&quot;H&quot;+i+&quot;L&quot;+a+&quot;,&quot;+c+&quot;L&quot;+o+&quot;,&quot;+u+&quot;L0,&quot;+n.round(.382*e,2)+&quot;L-&quot;+o+&quot;,&quot;+u+&quot;L-&quot;+a+&quot;,&quot;+c+&quot;L-&quot;+i+&quot;,&quot;+l+&quot;H-&quot;+r+&quot;L0,&quot;+s+&quot;Z&quot;}},hexagram:{n:18,f:function(t){var e=n.round(.66*t,2),r=n.round(.38*t,2),i=n.round(.76*t,2);return&quot;M-&quot;+i+&quot;,0l-&quot;+r+&quot;,-&quot;+e+&quot;h&quot;+i+&quot;l&quot;+r+&quot;,-&quot;+e+&quot;l&quot;+r+&quot;,&quot;+e+&quot;h&quot;+i+&quot;l-&quot;+r+&quot;,&quot;+e+&quot;l&quot;+r+&quot;,&quot;+e+&quot;h-&quot;+i+&quot;l-&quot;+r+&quot;,&quot;+e+&quot;l-&quot;+r+&quot;,-&quot;+e+&quot;h-&quot;+i+&quot;Z&quot;}},&quot;star-triangle-up&quot;:{n:19,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=&quot;A &quot;+a+&quot;,&quot;+a+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,&quot;+r+o+e+&quot;,&quot;+r+o+&quot;0,-&quot;+i+o+&quot;-&quot;+e+&quot;,&quot;+r+&quot;Z&quot;}},&quot;star-triangle-down&quot;:{n:20,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=&quot;A &quot;+a+&quot;,&quot;+a+&quot; 0 0 1 &quot;;return&quot;M&quot;+e+&quot;,-&quot;+r+o+&quot;-&quot;+e+&quot;,-&quot;+r+o+&quot;0,&quot;+i+o+e+&quot;,-&quot;+r+&quot;Z&quot;}},&quot;star-square&quot;:{n:21,f:function(t){var e=n.round(1.1*t,2),r=n.round(2*t,2),i=&quot;A &quot;+r+&quot;,&quot;+r+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,-&quot;+e+i+&quot;-&quot;+e+&quot;,&quot;+e+i+e+&quot;,&quot;+e+i+e+&quot;,-&quot;+e+i+&quot;-&quot;+e+&quot;,-&quot;+e+&quot;Z&quot;}},&quot;star-diamond&quot;:{n:22,f:function(t){var e=n.round(1.4*t,2),r=n.round(1.9*t,2),i=&quot;A &quot;+r+&quot;,&quot;+r+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,0&quot;+i+&quot;0,&quot;+e+i+e+&quot;,0&quot;+i+&quot;0,-&quot;+e+i+&quot;-&quot;+e+&quot;,0Z&quot;}},&quot;diamond-tall&quot;:{n:23,f:function(t){var e=n.round(.7*t,2),r=n.round(1.4*t,2);return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,0L0,-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},&quot;diamond-wide&quot;:{n:24,f:function(t){var e=n.round(1.4*t,2),r=n.round(.7*t,2);return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,0L0,-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},hourglass:{n:25,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;L&quot;+e+&quot;,-&quot;+e+&quot;H-&quot;+e+&quot;Z&quot;},noDot:!0},bowtie:{n:26,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;V-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e+&quot;V-&quot;+e+&quot;Z&quot;},noDot:!0},&quot;circle-cross&quot;:{n:27,f:function(t){var e=n.round(t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;},needLine:!0,noDot:!0},&quot;circle-x&quot;:{n:28,f:function(t){var e=n.round(t,2),r=n.round(t/Math.sqrt(2),2);return&quot;M&quot;+r+&quot;,&quot;+r+&quot;L-&quot;+r+&quot;,-&quot;+r+&quot;M&quot;+r+&quot;,-&quot;+r+&quot;L-&quot;+r+&quot;,&quot;+r+&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;},needLine:!0,noDot:!0},&quot;square-cross&quot;:{n:29,f:function(t){var e=n.round(t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;square-x&quot;:{n:30,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e+&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e+&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;diamond-cross&quot;:{n:31,f:function(t){var e=n.round(1.3*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;ZM0,-&quot;+e+&quot;V&quot;+e+&quot;M-&quot;+e+&quot;,0H&quot;+e},needLine:!0,noDot:!0},&quot;diamond-x&quot;:{n:32,f:function(t){var e=n.round(1.3*t,2),r=n.round(.65*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;ZM-&quot;+r+&quot;,-&quot;+r+&quot;L&quot;+r+&quot;,&quot;+r+&quot;M-&quot;+r+&quot;,&quot;+r+&quot;L&quot;+r+&quot;,-&quot;+r},needLine:!0,noDot:!0},&quot;cross-thin&quot;:{n:33,f:function(t){var e=n.round(1.4*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;x-thin&quot;:{n:34,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e+&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(t){var e=n.round(1.2*t,2),r=n.round(.85*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+r+&quot;,&quot;+r+&quot;L-&quot;+r+&quot;,-&quot;+r+&quot;M&quot;+r+&quot;,-&quot;+r+&quot;L-&quot;+r+&quot;,&quot;+r},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(t){var e=n.round(t/2,2),r=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;m-&quot;+r+&quot;,0V&quot;+r+&quot;M&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+r+&quot;m0,-&quot;+r+&quot;H&quot;+r},needLine:!0,noFill:!0},&quot;y-up&quot;:{n:37,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+e+&quot;,&quot;+i+&quot;L0,0M&quot;+e+&quot;,&quot;+i+&quot;L0,0M0,-&quot;+r+&quot;L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-down&quot;:{n:38,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+e+&quot;,-&quot;+i+&quot;L0,0M&quot;+e+&quot;,-&quot;+i+&quot;L0,0M0,&quot;+r+&quot;L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-left&quot;:{n:39,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M&quot;+i+&quot;,&quot;+e+&quot;L0,0M&quot;+i+&quot;,-&quot;+e+&quot;L0,0M-&quot;+r+&quot;,0L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-right&quot;:{n:40,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+i+&quot;,&quot;+e+&quot;L0,0M-&quot;+i+&quot;,-&quot;+e+&quot;L0,0M&quot;+r+&quot;,0L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;line-ew&quot;:{n:41,f:function(t){var e=n.round(1.4*t,2);return&quot;M&quot;+e+&quot;,0H-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-ns&quot;:{n:42,f:function(t){var e=n.round(1.4*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-ne&quot;:{n:43,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-nw&quot;:{n:44,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;arrow-up&quot;:{n:45,f:function(t){var e=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},noDot:!0},&quot;arrow-down&quot;:{n:46,f:function(t){var e=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,-&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},noDot:!0},&quot;arrow-left&quot;:{n:47,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,0L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},noDot:!0},&quot;arrow-right&quot;:{n:48,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},noDot:!0},&quot;arrow-bar-up&quot;:{n:49,f:function(t){var e=n.round(t,2);return&quot;M-&quot;+e+&quot;,0H&quot;+e+&quot;M0,0L-&quot;+e+&quot;,&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-down&quot;:{n:50,f:function(t){var e=n.round(t,2);return&quot;M-&quot;+e+&quot;,0H&quot;+e+&quot;M0,0L-&quot;+e+&quot;,-&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-left&quot;:{n:51,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,-&quot;+r+&quot;V&quot;+r+&quot;M0,0L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-right&quot;:{n:52,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,-&quot;+r+&quot;V&quot;+r+&quot;M0,0L-&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},needLine:!0,noDot:!0}}},{d3:169}],667:[function(t,e,r){&quot;use strict&quot;;e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;percent&quot;,&quot;constant&quot;,&quot;sqrt&quot;,&quot;data&quot;],editType:&quot;calc&quot;},symmetric:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},array:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},arrayminus:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},value:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;calc&quot;},valueminus:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;calc&quot;},traceref:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;style&quot;},tracerefminus:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;style&quot;},copy_ystyle:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},copy_zstyle:{valType:&quot;boolean&quot;,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},thickness:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;,_deprecated:{opacity:{valType:&quot;number&quot;,editType:&quot;style&quot;}}}},{}],668:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;./compute_error&quot;);function l(t,e,r,i){var l=e[&quot;error_&quot;+i]||{},c=[];if(l.visible&amp;&amp;-1!==[&quot;linear&quot;,&quot;log&quot;].indexOf(r.type)){for(var u=s(l),f=0;f&lt;t.length;f++){var h=t[f],p=h.i;if(void 0===p)p=f;else if(null===p)continue;var d=h[i];if(n(r.c2l(d))){var g=u(d,p);if(n(g[0])&amp;&amp;n(g[1])){var m=h[i+&quot;s&quot;]=d-g[0],v=h[i+&quot;h&quot;]=d+g[1];c.push(m,v)}}}var y=r._id,x=e._extremes[y],b=a.findExtremes(r,c,o.extendFlat({tozero:x.opts.tozero},{padded:!0}));x.min=x.min.concat(b.min),x.max=x.max.concat(b.max)}}e.exports=function(t){for(var e=t.calcdata,r=0;r&lt;e.length;r++){var n=e[r],o=n[0].trace;if(!0===o.visible&amp;&amp;i.traceIs(o,&quot;errorBarsOK&quot;)){var s=a.getFromId(t,o.xaxis),c=a.getFromId(t,o.yaxis);l(n,o,s,&quot;x&quot;),l(n,o,c,&quot;y&quot;)}}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./compute_error&quot;:669,&quot;fast-isnumeric&quot;:241}],669:[function(t,e,r){&quot;use strict&quot;;function n(t,e){return&quot;percent&quot;===t?function(t){return Math.abs(t*e/100)}:&quot;constant&quot;===t?function(){return Math.abs(e)}:&quot;sqrt&quot;===t?function(t){return Math.sqrt(Math.abs(t))}:void 0}e.exports=function(t){var e=t.type,r=t.symmetric;if(&quot;data&quot;===e){var i=t.array||[];if(r)return function(t,e){var r=+i[e];return[r,r]};var a=t.arrayminus||[];return function(t,e){var r=+i[e],n=+a[e];return isNaN(r)&amp;&amp;isNaN(n)?[NaN,NaN]:[n||0,r||0]}}var o=n(e,t.value),s=n(e,t.valueminus);return r||void 0===t.valueminus?function(t){var e=o(t);return[e,e]}:function(t){return[s(t),o(t)]}}},{}],670:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../plot_api/plot_template&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){var c=&quot;error_&quot;+l.axis,u=o.newContainer(e,c),f=t[c]||{};function h(t,e){return a.coerce(f,u,s,t,e)}if(!1!==h(&quot;visible&quot;,void 0!==f.array||void 0!==f.value||&quot;sqrt&quot;===f.type)){var p=h(&quot;type&quot;,&quot;array&quot;in f?&quot;data&quot;:&quot;percent&quot;),d=!0;&quot;sqrt&quot;!==p&amp;&amp;(d=h(&quot;symmetric&quot;,!((&quot;data&quot;===p?&quot;arrayminus&quot;:&quot;valueminus&quot;)in f))),&quot;data&quot;===p?(h(&quot;array&quot;),h(&quot;traceref&quot;),d||(h(&quot;arrayminus&quot;),h(&quot;tracerefminus&quot;))):&quot;percent&quot;!==p&amp;&amp;&quot;constant&quot;!==p||(h(&quot;value&quot;),d||h(&quot;valueminus&quot;));var g=&quot;copy_&quot;+l.inherit+&quot;style&quot;;if(l.inherit)(e[&quot;error_&quot;+l.inherit]||{}).visible&amp;&amp;h(g,!(f.color||n(f.thickness)||n(f.width)));l.inherit&amp;&amp;u[g]||(h(&quot;color&quot;,r),h(&quot;thickness&quot;),h(&quot;width&quot;,i.traceIs(e,&quot;gl3d&quot;)?0:4))}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../registry&quot;:911,&quot;./attributes&quot;:667,&quot;fast-isnumeric&quot;:241}],671:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/edit_types&quot;).overrideAll,a=t(&quot;./attributes&quot;),o={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var s={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a),error_z:n.extendFlat({},a)};delete s.error_x.copy_ystyle,delete s.error_y.copy_ystyle,delete s.error_z.copy_ystyle,delete s.error_z.copy_zstyle,e.exports={moduleType:&quot;component&quot;,name:&quot;errorbars&quot;,schema:{traces:{scatter:o,bar:o,histogram:o,scatter3d:i(s,&quot;calc&quot;,&quot;nested&quot;),scattergl:i(o,&quot;calc&quot;,&quot;nested&quot;)}},supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),makeComputeError:t(&quot;./compute_error&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverInfo:function(t,e,r){(e.error_y||{}).visible&amp;&amp;(r.yerr=t.yh-t.y,e.error_y.symmetric||(r.yerrneg=t.y-t.ys));(e.error_x||{}).visible&amp;&amp;(r.xerr=t.xh-t.x,e.error_x.symmetric||(r.xerrneg=t.x-t.xs))}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;./attributes&quot;:667,&quot;./calc&quot;:668,&quot;./compute_error&quot;:669,&quot;./defaults&quot;:670,&quot;./plot&quot;:672,&quot;./style&quot;:673}],672:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../drawing&quot;),o=t(&quot;../../traces/scatter/subtypes&quot;);e.exports=function(t,e,r,s){var l=r.xaxis,c=r.yaxis,u=s&amp;&amp;s.duration&gt;0;e.each((function(e){var f,h=e[0].trace,p=h.error_x||{},d=h.error_y||{};h.ids&amp;&amp;(f=function(t){return t.id});var g=o.hasMarkers(h)&amp;&amp;h.marker.maxdisplayed&gt;0;d.visible||p.visible||(e=[]);var m=n.select(this).selectAll(&quot;g.errorbar&quot;).data(e,f);if(m.exit().remove(),e.length){p.visible||m.selectAll(&quot;path.xerror&quot;).remove(),d.visible||m.selectAll(&quot;path.yerror&quot;).remove(),m.style(&quot;opacity&quot;,1);var v=m.enter().append(&quot;g&quot;).classed(&quot;errorbar&quot;,!0);u&amp;&amp;v.style(&quot;opacity&quot;,0).transition().duration(s.duration).style(&quot;opacity&quot;,1),a.setClipUrl(m,r.layerClipId,t),m.each((function(t){var e=n.select(this),r=function(t,e,r){var n={x:e.c2p(t.x),y:r.c2p(t.y)};void 0!==t.yh&amp;&amp;(n.yh=r.c2p(t.yh),n.ys=r.c2p(t.ys),i(n.ys)||(n.noYS=!0,n.ys=r.c2p(t.ys,!0)));void 0!==t.xh&amp;&amp;(n.xh=e.c2p(t.xh),n.xs=e.c2p(t.xs),i(n.xs)||(n.noXS=!0,n.xs=e.c2p(t.xs,!0)));return n}(t,l,c);if(!g||t.vis){var a,o=e.select(&quot;path.yerror&quot;);if(d.visible&amp;&amp;i(r.x)&amp;&amp;i(r.yh)&amp;&amp;i(r.ys)){var f=d.width;a=&quot;M&quot;+(r.x-f)+&quot;,&quot;+r.yh+&quot;h&quot;+2*f+&quot;m-&quot;+f+&quot;,0V&quot;+r.ys,r.noYS||(a+=&quot;m-&quot;+f+&quot;,0h&quot;+2*f),!o.size()?o=e.append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).classed(&quot;yerror&quot;,!0):u&amp;&amp;(o=o.transition().duration(s.duration).ease(s.easing)),o.attr(&quot;d&quot;,a)}else o.remove();var h=e.select(&quot;path.xerror&quot;);if(p.visible&amp;&amp;i(r.y)&amp;&amp;i(r.xh)&amp;&amp;i(r.xs)){var m=(p.copy_ystyle?d:p).width;a=&quot;M&quot;+r.xh+&quot;,&quot;+(r.y-m)+&quot;v&quot;+2*m+&quot;m0,-&quot;+m+&quot;H&quot;+r.xs,r.noXS||(a+=&quot;m0,-&quot;+m+&quot;v&quot;+2*m),!h.size()?h=e.append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).classed(&quot;xerror&quot;,!0):u&amp;&amp;(h=h.transition().duration(s.duration).ease(s.easing)),h.attr(&quot;d&quot;,a)}else h.remove()}}))}}))}},{&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../drawing&quot;:665,d3:169,&quot;fast-isnumeric&quot;:241}],673:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../color&quot;);e.exports=function(t){t.each((function(t){var e=t[0].trace,r=e.error_y||{},a=e.error_x||{},o=n.select(this);o.selectAll(&quot;path.yerror&quot;).style(&quot;stroke-width&quot;,r.thickness+&quot;px&quot;).call(i.stroke,r.color),a.copy_ystyle&amp;&amp;(a=r),o.selectAll(&quot;path.xerror&quot;).style(&quot;stroke-width&quot;,a.thickness+&quot;px&quot;).call(i.stroke,a.color)}))}},{&quot;../color&quot;:643,d3:169}],674:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;./layout_attributes&quot;).hoverlabel,a=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={hoverlabel:{bgcolor:a({},i.bgcolor,{arrayOk:!0}),bordercolor:a({},i.bordercolor,{arrayOk:!0}),font:n({arrayOk:!0,editType:&quot;none&quot;}),align:a({},i.align,{arrayOk:!0}),namelength:a({},i.namelength,{arrayOk:!0}),editType:&quot;none&quot;}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;./layout_attributes&quot;:684}],675:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;);function a(t,e,r,i){i=i||n.identity,Array.isArray(t)&amp;&amp;(e[0][r]=i(t))}e.exports=function(t){var e=t.calcdata,r=t._fullLayout;function o(t){return function(e){return n.coerceHoverinfo({hoverinfo:e},{_module:t._module},r)}}for(var s=0;s&lt;e.length;s++){var l=e[s],c=l[0].trace;if(!i.traceIs(c,&quot;pie-like&quot;)){var u=i.traceIs(c,&quot;2dMap&quot;)?a:n.fillArray;u(c.hoverinfo,l,&quot;hi&quot;,o(c)),c.hovertemplate&amp;&amp;u(c.hovertemplate,l,&quot;ht&quot;),c.hoverlabel&amp;&amp;(u(c.hoverlabel.bgcolor,l,&quot;hbg&quot;),u(c.hoverlabel.bordercolor,l,&quot;hbc&quot;),u(c.hoverlabel.font.size,l,&quot;hts&quot;),u(c.hoverlabel.font.color,l,&quot;htc&quot;),u(c.hoverlabel.font.family,l,&quot;htf&quot;),u(c.hoverlabel.namelength,l,&quot;hnl&quot;),u(c.hoverlabel.align,l,&quot;hta&quot;))}}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],676:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./hover&quot;).hover;e.exports=function(t,e,r){var a=n.getComponentMethod(&quot;annotations&quot;,&quot;onClick&quot;)(t,t._hoverdata);function o(){t.emit(&quot;plotly_click&quot;,{points:t._hoverdata,event:e})}void 0!==r&amp;&amp;i(t,e,r,!0),t._hoverdata&amp;&amp;e&amp;&amp;e.target&amp;&amp;(a&amp;&amp;a.then?a.then(o):o(),e.stopImmediatePropagation&amp;&amp;e.stopImmediatePropagation())}},{&quot;../../registry&quot;:911,&quot;./hover&quot;:680}],677:[function(t,e,r){&quot;use strict&quot;;e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:&quot;Arial, sans-serif&quot;,HOVERMINTIME:50,HOVERID:&quot;-hover&quot;}},{}],678:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./hoverlabel_defaults&quot;);e.exports=function(t,e,r,o){var s=n.extendFlat({},o.hoverlabel);e.hovertemplate&amp;&amp;(s.namelength=-1),a(t,e,(function(r,a){return n.coerce(t,e,i,r,a)}),s)}},{&quot;../../lib&quot;:778,&quot;./attributes&quot;:674,&quot;./hoverlabel_defaults&quot;:681}],679:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);r.getSubplot=function(t){return t.subplot||t.xaxis+t.yaxis||t.geo},r.isTraceInSubplots=function(t,e){if(&quot;splom&quot;===t.type){for(var n=t.xaxes||[],i=t.yaxes||[],a=0;a&lt;n.length;a++)for(var o=0;o&lt;i.length;o++)if(-1!==e.indexOf(n[a]+i[o]))return!0;return!1}return-1!==e.indexOf(r.getSubplot(t))},r.flat=function(t,e){for(var r=new Array(t.length),n=0;n&lt;t.length;n++)r[n]=e;return r},r.p2c=function(t,e){for(var r=new Array(t.length),n=0;n&lt;t.length;n++)r[n]=t[n].p2c(e);return r},r.getDistanceFunction=function(t,e,n,i){return&quot;closest&quot;===t?i||r.quadrature(e,n):&quot;x&quot;===t.charAt(0)?e:n},r.getClosest=function(t,e,r){if(!1!==r.index)r.index&gt;=0&amp;&amp;r.index&lt;t.length?r.distance=0:r.index=!1;else for(var n=0;n&lt;t.length;n++){var i=e(t[n]);i&lt;=r.distance&amp;&amp;(r.index=n,r.distance=i)}return r},r.inbox=function(t,e,r){return t*e&lt;0||0===t?r:1/0},r.quadrature=function(t,e){return function(r){var n=t(r),i=e(r);return Math.sqrt(n*n+i*i)}},r.makeEventData=function(t,e,n){var i=&quot;index&quot;in t?t.index:t.pointNumber,a={data:e._input,fullData:e,curveNumber:e.index,pointNumber:i};if(e._indexToPoints){var o=e._indexToPoints[i];1===o.length?a.pointIndex=o[0]:a.pointIndices=o}else a.pointIndex=i;return e._module.eventData?a=e._module.eventData(a,t,e,n,i):(&quot;xVal&quot;in t?a.x=t.xVal:&quot;x&quot;in t&amp;&amp;(a.x=t.x),&quot;yVal&quot;in t?a.y=t.yVal:&quot;y&quot;in t&amp;&amp;(a.y=t.y),t.xa&amp;&amp;(a.xaxis=t.xa),t.ya&amp;&amp;(a.yaxis=t.ya),void 0!==t.zLabelVal&amp;&amp;(a.z=t.zLabelVal)),r.appendArrayPointValue(a,e,i),a},r.appendArrayPointValue=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s&lt;i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){var u=o(n.nestedProperty(e,l).get(),r);void 0!==u&amp;&amp;(t[c]=u)}}},r.appendArrayMultiPointValues=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s&lt;i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){for(var u=n.nestedProperty(e,l).get(),f=new Array(r.length),h=0;h&lt;r.length;h++)f[h]=o(u,r[h]);t[c]=f}}};var i={ids:&quot;id&quot;,locations:&quot;location&quot;,labels:&quot;label&quot;,values:&quot;value&quot;,&quot;marker.colors&quot;:&quot;color&quot;,parents:&quot;parent&quot;};function a(t){return i[t]||t}function o(t,e){return Array.isArray(e)?Array.isArray(t)&amp;&amp;Array.isArray(t[e[0]])?t[e[0]][e[1]]:void 0:t[e]}var s={x:!0,y:!0},l={&quot;x unified&quot;:!0,&quot;y unified&quot;:!0};r.isUnifiedHover=function(t){return&quot;string&quot;==typeof t&amp;&amp;!!l[t]},r.isXYhover=function(t){return&quot;string&quot;==typeof t&amp;&amp;!!s[t]}},{&quot;../../lib&quot;:778}],680:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=o.strRotate,c=t(&quot;../../lib/events&quot;),u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../lib/override_cursor&quot;),h=t(&quot;../drawing&quot;),p=t(&quot;../color&quot;),d=t(&quot;../dragelement&quot;),g=t(&quot;../../plots/cartesian/axes&quot;),m=t(&quot;../../registry&quot;),v=t(&quot;./helpers&quot;),y=t(&quot;./constants&quot;),x=t(&quot;../legend/defaults&quot;),b=t(&quot;../legend/draw&quot;),_=y.YANGLE,w=Math.PI*_/180,T=1/Math.sin(w),k=Math.cos(w),M=Math.sin(w),A=y.HOVERARROWSIZE,S=y.HOVERTEXTPAD;function E(t){return[t.trace.index,t.index,t.x0,t.y0,t.name,t.attr,t.xa,t.ya||&quot;&quot;].join(&quot;,&quot;)}r.hover=function(t,e,r,a){t=o.getGraphDiv(t),o.throttle(t._fullLayout._uid+y.HOVERID,y.HOVERMINTIME,(function(){!function(t,e,r,a){r||(r=&quot;xy&quot;);var s=Array.isArray(r)?r:[r],l=t._fullLayout,u=l._plots||[],h=u[r],g=l._has(&quot;cartesian&quot;);if(h){var y=h.overlays.map((function(t){return t.id}));s=s.concat(y)}for(var x=s.length,b=new Array(x),_=new Array(x),w=!1,k=0;k&lt;x;k++){var M=s[k];if(u[M])w=!0,b[k]=u[M].xaxis,_[k]=u[M].yaxis;else{if(!l[M]||!l[M]._subplot)return void o.warn(&quot;Unrecognized subplot: &quot;+M);var A=l[M]._subplot;b[k]=A.xaxis,_[k]=A.yaxis}}var S=e.hovermode||l.hovermode;S&amp;&amp;!w&amp;&amp;(S=&quot;closest&quot;);if(-1===[&quot;x&quot;,&quot;y&quot;,&quot;closest&quot;,&quot;x unified&quot;,&quot;y unified&quot;].indexOf(S)||!t.calcdata||t.querySelector(&quot;.zoombox&quot;)||t._dragging)return d.unhoverRaw(t,e);var C,I,R,F,B,N,j,U,V,q,H,G,Y,W=-1===l.hoverdistance?1/0:l.hoverdistance,X=-1===l.spikedistance?1/0:l.spikedistance,Z=[],J=[],K={hLinePoint:null,vLinePoint:null},Q=!1;if(Array.isArray(e))for(S=&quot;array&quot;,R=0;R&lt;e.length;R++)(B=t.calcdata[e[R].curveNumber||0])&amp;&amp;(N=B[0].trace,&quot;skip&quot;!==B[0].trace.hoverinfo&amp;&amp;(J.push(B),&quot;h&quot;===N.orientation&amp;&amp;(Q=!0)));else{for(F=0;F&lt;t.calcdata.length;F++)B=t.calcdata[F],&quot;skip&quot;!==(N=B[0].trace).hoverinfo&amp;&amp;v.isTraceInSubplots(N,s)&amp;&amp;(J.push(B),&quot;h&quot;===N.orientation&amp;&amp;(Q=!0));var $,tt;if(!e.target)$=&quot;xpx&quot;in e?e.xpx:b[0]._length/2,tt=&quot;ypx&quot;in e?e.ypx:_[0]._length/2;else{if(!1===c.triggerHandler(t,&quot;plotly_beforehover&quot;,e))return;var et=e.target.getBoundingClientRect();$=e.clientX-et.left,tt=e.clientY-et.top,l._calcInverseTransform(t);var rt=o.apply3DTransform(l._invTransform)($,tt);if($=rt[0],tt=rt[1],$&lt;0||$&gt;b[0]._length||tt&lt;0||tt&gt;_[0]._length)return d.unhoverRaw(t,e)}if(e.pointerX=$+b[0]._offset,e.pointerY=tt+_[0]._offset,C=&quot;xval&quot;in e?v.flat(s,e.xval):v.p2c(b,$),I=&quot;yval&quot;in e?v.flat(s,e.yval):v.p2c(_,tt),!i(C[0])||!i(I[0]))return o.warn(&quot;Fx.hover failed&quot;,e,t),d.unhoverRaw(t,e)}var nt=1/0;function it(t,r){for(F=0;F&lt;J.length;F++)if((B=J[F])&amp;&amp;B[0]&amp;&amp;B[0].trace&amp;&amp;!0===(N=B[0].trace).visible&amp;&amp;0!==N._length&amp;&amp;-1===[&quot;carpet&quot;,&quot;contourcarpet&quot;].indexOf(N._module.name)){if(&quot;splom&quot;===N.type?j=s[U=0]:(j=v.getSubplot(N),U=s.indexOf(j)),V=S,v.isUnifiedHover(V)&amp;&amp;(V=V.charAt(0)),G={cd:B,trace:N,xa:b[U],ya:_[U],maxHoverDistance:W,maxSpikeDistance:X,index:!1,distance:Math.min(nt,W),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:p.defaultLine,name:N.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},l[j]&amp;&amp;(G.subplot=l[j]._subplot),l._splomScenes&amp;&amp;l._splomScenes[N.uid]&amp;&amp;(G.scene=l._splomScenes[N.uid]),Y=Z.length,&quot;array&quot;===V){var n=e[F];&quot;pointNumber&quot;in n?(G.index=n.pointNumber,V=&quot;closest&quot;):(V=&quot;&quot;,&quot;xval&quot;in n&amp;&amp;(q=n.xval,V=&quot;x&quot;),&quot;yval&quot;in n&amp;&amp;(H=n.yval,V=V?&quot;closest&quot;:&quot;y&quot;))}else void 0!==t&amp;&amp;void 0!==r?(q=t,H=r):(q=C[U],H=I[U]);if(0!==W)if(N._module&amp;&amp;N._module.hoverPoints){var a=N._module.hoverPoints(G,q,H,V,l._hoverlayer);if(a)for(var c,u=0;u&lt;a.length;u++)c=a[u],i(c.x0)&amp;&amp;i(c.y0)&amp;&amp;Z.push(z(c,S))}else o.log(&quot;Unrecognized trace type in hover:&quot;,N);if(&quot;closest&quot;===S&amp;&amp;Z.length&gt;Y&amp;&amp;(Z.splice(0,Y),nt=Z[0].distance),g&amp;&amp;0!==X&amp;&amp;0===Z.length){G.distance=X,G.index=!1;var f=N._module.hoverPoints(G,q,H,&quot;closest&quot;,l._hoverlayer);if(f&amp;&amp;(f=f.filter((function(t){return t.spikeDistance&lt;=X}))),f&amp;&amp;f.length){var h,d=f.filter((function(t){return t.xa.showspikes&amp;&amp;&quot;hovered data&quot;!==t.xa.spikesnap}));if(d.length){var m=d[0];i(m.x0)&amp;&amp;i(m.y0)&amp;&amp;(h=ot(m),(!K.vLinePoint||K.vLinePoint.spikeDistance&gt;h.spikeDistance)&amp;&amp;(K.vLinePoint=h))}var y=f.filter((function(t){return t.ya.showspikes&amp;&amp;&quot;hovered data&quot;!==t.ya.spikesnap}));if(y.length){var x=y[0];i(x.x0)&amp;&amp;i(x.y0)&amp;&amp;(h=ot(x),(!K.hLinePoint||K.hLinePoint.spikeDistance&gt;h.spikeDistance)&amp;&amp;(K.hLinePoint=h))}}}}}function at(t,e){for(var r,n=null,i=1/0,a=0;a&lt;t.length;a++)(r=t[a].spikeDistance)&lt;=i&amp;&amp;r&lt;=e&amp;&amp;(n=t[a],i=r);return n}function ot(t){return t?{xa:t.xa,ya:t.ya,x:void 0!==t.xSpike?t.xSpike:(t.x0+t.x1)/2,y:void 0!==t.ySpike?t.ySpike:(t.y0+t.y1)/2,distance:t.distance,spikeDistance:t.spikeDistance,curveNumber:t.trace.index,color:t.color,pointNumber:t.index}:null}it();var st={fullLayout:l,container:l._hoverlayer,outerContainer:l._paperdiv,event:e},lt=t._spikepoints,ct={vLinePoint:K.vLinePoint,hLinePoint:K.hLinePoint};if(t._spikepoints=ct,g&amp;&amp;0!==X&amp;&amp;0!==Z.length){var ut=at(Z.filter((function(t){return t.ya.showspikes})),X);K.hLinePoint=ot(ut);var ft=at(Z.filter((function(t){return t.xa.showspikes})),X);K.vLinePoint=ot(ft)}if(0===Z.length){var ht=d.unhoverRaw(t,e);return!g||null===K.hLinePoint&amp;&amp;null===K.vLinePoint||D(lt)&amp;&amp;O(t,K,st),ht}g&amp;&amp;D(lt)&amp;&amp;O(t,K,st);if(Z.sort((function(t,e){return t.distance-e.distance})),v.isXYhover(V)&amp;&amp;0!==Z[0].length&amp;&amp;&quot;splom&quot;!==Z[0].trace.type){var pt=Z[0],dt=pt.cd[pt.index],gt=&quot;group&quot;===l.boxmode||&quot;group&quot;===l.violinmode,mt=pt.xVal,vt=pt.xa;&quot;category&quot;===vt.type&amp;&amp;(mt=vt._categoriesMap[mt]),&quot;date&quot;===vt.type&amp;&amp;(mt=vt.d2c(mt)),dt&amp;&amp;dt.t&amp;&amp;dt.t.posLetter===vt._id&amp;&amp;gt&amp;&amp;(mt+=dt.t.dPos);var yt=pt.yVal;&quot;category&quot;===(vt=pt.ya).type&amp;&amp;(yt=vt._categoriesMap[yt]),&quot;date&quot;===vt.type&amp;&amp;(yt=vt.d2c(yt)),dt&amp;&amp;dt.t&amp;&amp;dt.t.posLetter===vt._id&amp;&amp;gt&amp;&amp;(yt+=dt.t.dPos),it(mt,yt);var xt={};Z=Z.filter((function(t){var e=E(t);if(!xt[e])return xt[e]=!0,xt[e]}))}var bt=t._hoverdata,_t=[];for(R=0;R&lt;Z.length;R++){var wt=Z[R],Tt=v.makeEventData(wt,wt.trace,wt.cd);if(!1!==wt.hovertemplate){var kt=!1;wt.cd[wt.index]&amp;&amp;wt.cd[wt.index].ht&amp;&amp;(kt=wt.cd[wt.index].ht),wt.hovertemplate=kt||wt.trace.hovertemplate||!1}wt.eventData=[Tt],_t.push(Tt)}t._hoverdata=_t;var Mt=&quot;y&quot;===S&amp;&amp;(J.length&gt;1||Z.length&gt;1)||&quot;closest&quot;===S&amp;&amp;Q&amp;&amp;Z.length&gt;1,At=p.combine(l.plot_bgcolor||p.background,l.paper_bgcolor),St={hovermode:S,rotateLabels:Mt,bgColor:At,container:l._hoverlayer,outerContainer:l._paperdiv,commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance},Et=L(Z,St,t);v.isUnifiedHover(S)||(!function(t,e,r){var n,i,a,o,s,l,c,u=0,f=1,h=t.size(),p=new Array(h),d=0;function g(t){var e=t[0],r=t[t.length-1];if(i=e.pmin-e.pos-e.dp+e.size,a=r.pos+r.dp+r.size-e.pmax,i&gt;.01){for(s=t.length-1;s&gt;=0;s--)t[s].dp+=i;n=!1}if(!(a&lt;.01)){if(i&lt;-.01){for(s=t.length-1;s&gt;=0;s--)t[s].dp-=a;n=!1}if(n){var c=0;for(o=0;o&lt;t.length;o++)(l=t[o]).pos+l.dp+l.size&gt;e.pmax&amp;&amp;c++;for(o=t.length-1;o&gt;=0&amp;&amp;!(c&lt;=0);o--)(l=t[o]).pos&gt;e.pmax-1&amp;&amp;(l.del=!0,c--);for(o=0;o&lt;t.length&amp;&amp;!(c&lt;=0);o++)if((l=t[o]).pos&lt;e.pmin+1)for(l.del=!0,c--,a=2*l.size,s=t.length-1;s&gt;=0;s--)t[s].dp-=a;for(o=t.length-1;o&gt;=0&amp;&amp;!(c&lt;=0);o--)(l=t[o]).pos+l.dp+l.size&gt;e.pmax&amp;&amp;(l.del=!0,c--)}}}t.each((function(t){var n=t[e],i=&quot;x&quot;===n._id.charAt(0),a=n.range;0===d&amp;&amp;a&amp;&amp;a[0]&gt;a[1]!==i&amp;&amp;(f=-1),p[d++]=[{datum:t,traceIndex:t.trace.index,dp:0,pos:t.pos,posref:t.posref,size:t.by*(i?T:1)/2,pmin:0,pmax:i?r.width:r.height}]})),p.sort((function(t,e){return t[0].posref-e[0].posref||f*(e[0].traceIndex-t[0].traceIndex)}));for(;!n&amp;&amp;u&lt;=h;){for(u++,n=!0,o=0;o&lt;p.length-1;){var m=p[o],v=p[o+1],y=m[m.length-1],x=v[0];if((i=y.pos+y.dp+y.size-x.pos-x.dp+x.size)&gt;.01&amp;&amp;y.pmin===x.pmin&amp;&amp;y.pmax===x.pmax){for(s=v.length-1;s&gt;=0;s--)v[s].dp+=i;for(m.push.apply(m,v),p.splice(o+1,1),c=0,s=m.length-1;s&gt;=0;s--)c+=m[s].dp;for(a=c/m.length,s=m.length-1;s&gt;=0;s--)m[s].dp-=a;n=!1}else o++}p.forEach(g)}for(o=p.length-1;o&gt;=0;o--){var b=p[o];for(s=b.length-1;s&gt;=0;s--){var _=b[s],w=_.datum;w.offset=_.dp,w.del=_.del}}}(Et,Mt?&quot;xa&quot;:&quot;ya&quot;,l),P(Et,Mt,l._invScaleX,l._invScaleY));if(e.target&amp;&amp;e.target.tagName){var Ct=m.getComponentMethod(&quot;annotations&quot;,&quot;hasClickToShow&quot;)(t,_t);f(n.select(e.target),Ct?&quot;pointer&quot;:&quot;&quot;)}if(!e.target||a||!function(t,e,r){if(!r||r.length!==t._hoverdata.length)return!0;for(var n=r.length-1;n&gt;=0;n--){var i=r[n],a=t._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers))return!0}return!1}(t,0,bt))return;bt&amp;&amp;t.emit(&quot;plotly_unhover&quot;,{event:e,points:bt});t.emit(&quot;plotly_hover&quot;,{event:e,points:t._hoverdata,xaxes:b,yaxes:_,xvals:C,yvals:I})}(t,e,r,a)}))},r.loneHover=function(t,e){var r=!0;Array.isArray(t)||(r=!1,t=[t]);var i=t.map((function(t){return{color:t.color||p.defaultLine,x0:t.x0||t.x||0,x1:t.x1||t.x||0,y0:t.y0||t.y||0,y1:t.y1||t.y||0,xLabel:t.xLabel,yLabel:t.yLabel,zLabel:t.zLabel,text:t.text,name:t.name,idealAlign:t.idealAlign,borderColor:t.borderColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontColor:t.fontColor,nameLength:t.nameLength,textAlign:t.textAlign,trace:t.trace||{index:0,hoverinfo:&quot;&quot;},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:t.hovertemplate||!1,eventData:t.eventData||!1,hovertemplateLabels:t.hovertemplateLabels||!1}})),a=n.select(e.container),o=e.outerContainer?n.select(e.outerContainer):a,s={hovermode:&quot;closest&quot;,rotateLabels:!1,bgColor:e.bgColor||p.background,container:a,outerContainer:o},l=L(i,s,e.gd),c=0,u=0;l.sort((function(t,e){return t.y0-e.y0})).each((function(t,r){var n=t.y0-t.by/2;t.offset=n-5&lt;c?c-n+5:0,c=n+t.by+t.offset,r===e.anchorIndex&amp;&amp;(u=t.offset)})).each((function(t){t.offset-=u}));var f=e.gd._fullLayout._invScaleX,h=e.gd._fullLayout._invScaleY;return P(l,s.rotateLabels,f,h),r?l:l.node()};var C=/&lt;extra&gt;([\s\S]*)&lt;\/extra&gt;/;function L(t,e,r){var i=r._fullLayout,a=e.hovermode,c=e.rotateLabels,f=e.bgColor,d=e.container,g=e.outerContainer,m=e.commonLabelOpts||{},w=e.fontFamily||y.HOVERFONT,T=e.fontSize||y.HOVERFONTSIZE,k=t[0],M=k.xa,C=k.ya,L=&quot;y&quot;===a.charAt(0)?&quot;yLabel&quot;:&quot;xLabel&quot;,P=k[L],z=(String(P)||&quot;&quot;).split(&quot; &quot;)[0],O=g.node().getBoundingClientRect(),D=O.top,R=O.width,F=O.height,B=void 0!==P&amp;&amp;k.distance&lt;=e.hoverdistance&amp;&amp;(&quot;x&quot;===a||&quot;y&quot;===a);if(B){var N,j,U=!0;for(N=0;N&lt;t.length;N++)if(U&amp;&amp;void 0===t[N].zLabel&amp;&amp;(U=!1),j=t[N].hoverinfo||t[N].trace.hoverinfo){var V=Array.isArray(j)?j:j.split(&quot;+&quot;);if(-1===V.indexOf(&quot;all&quot;)&amp;&amp;-1===V.indexOf(a)){B=!1;break}}U&amp;&amp;(B=!1)}var q=d.selectAll(&quot;g.axistext&quot;).data(B?[0]:[]);function H(t){return t.filter((function(t){return void 0!==t.zLabelVal||(t[L]||&quot;&quot;).split(&quot; &quot;)[0]===z}))}if(q.enter().append(&quot;g&quot;).classed(&quot;axistext&quot;,!0),q.exit().remove(),q.each((function(){var e=n.select(this),l=o.ensureSingle(e,&quot;path&quot;,&quot;&quot;,(function(t){t.style({&quot;stroke-width&quot;:&quot;1px&quot;})})),c=o.ensureSingle(e,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),f=m.bgcolor||p.defaultLine,d=m.bordercolor||p.contrast(f),g=p.contrast(f),v={family:m.font.family||w,size:m.font.size||T,color:m.font.color||g};l.style({fill:f,stroke:d}),c.text(P).call(h.font,v).call(u.positionText,0,0).call(u.convertToTspans,r),e.attr(&quot;transform&quot;,&quot;&quot;);var y,x,b=c.node().getBoundingClientRect();if(&quot;x&quot;===a){var _=&quot;top&quot;===M.side?&quot;-&quot;:&quot;&quot;;c.attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(u.positionText,0,&quot;top&quot;===M.side?D-b.bottom-A-S:D-b.top+A+S),y=M._offset+(k.x0+k.x1)/2,x=C._offset+(&quot;top&quot;===M.side?0:C._length);var E=b.width/2+S;y&lt;E?(y=E,l.attr(&quot;d&quot;,&quot;M-&quot;+(E-A)+&quot;,0L-&quot;+(E-2*A)+&quot;,&quot;+_+A+&quot;H&quot;+(S+b.width/2)+&quot;v&quot;+_+(2*S+b.height)+&quot;H-&quot;+E+&quot;V&quot;+_+A+&quot;Z&quot;)):y&gt;i.width-E?(y=i.width-E,l.attr(&quot;d&quot;,&quot;M&quot;+(E-A)+&quot;,0L&quot;+E+&quot;,&quot;+_+A+&quot;v&quot;+_+(2*S+b.height)+&quot;H-&quot;+E+&quot;V&quot;+_+A+&quot;H&quot;+(E-2*A)+&quot;Z&quot;)):l.attr(&quot;d&quot;,&quot;M0,0L&quot;+A+&quot;,&quot;+_+A+&quot;H&quot;+(S+b.width/2)+&quot;v&quot;+_+(2*S+b.height)+&quot;H-&quot;+(S+b.width/2)+&quot;V&quot;+_+A+&quot;H-&quot;+A+&quot;Z&quot;)}else{var L,I,z;&quot;right&quot;===C.side?(L=&quot;start&quot;,I=1,z=&quot;&quot;,y=M._offset+M._length):(L=&quot;end&quot;,I=-1,z=&quot;-&quot;,y=M._offset),x=C._offset+(k.y0+k.y1)/2,c.attr(&quot;text-anchor&quot;,L),l.attr(&quot;d&quot;,&quot;M0,0L&quot;+z+A+&quot;,&quot;+A+&quot;V&quot;+(S+b.height/2)+&quot;h&quot;+z+(2*S+b.width)+&quot;V-&quot;+(S+b.height/2)+&quot;H&quot;+z+A+&quot;V-&quot;+A+&quot;Z&quot;);var O,R=b.height/2,F=D-b.top-R,B=&quot;clip&quot;+i._uid+&quot;commonlabel&quot;+C._id;if(y&lt;b.width+2*S+A){O=&quot;M-&quot;+(A+S)+&quot;-&quot;+R+&quot;h-&quot;+(b.width-S)+&quot;V&quot;+R+&quot;h&quot;+(b.width-S)+&quot;Z&quot;;var N=b.width-y+S;u.positionText(c,N,F),&quot;end&quot;===L&amp;&amp;c.selectAll(&quot;tspan&quot;).each((function(){var t=n.select(this),e=h.tester.append(&quot;text&quot;).text(t.text()).call(h.font,v),r=e.node().getBoundingClientRect();Math.round(r.width)&lt;Math.round(b.width)&amp;&amp;t.attr(&quot;x&quot;,N-r.width),e.remove()}))}else u.positionText(c,I*(S+A),F),O=null;var j=i._topclips.selectAll(&quot;#&quot;+B).data(O?[0]:[]);j.enter().append(&quot;clipPath&quot;).attr(&quot;id&quot;,B).append(&quot;path&quot;),j.exit().remove(),j.select(&quot;path&quot;).attr(&quot;d&quot;,O),h.setClipUrl(c,O?B:null,r)}e.attr(&quot;transform&quot;,s(y,x)),t=H(t)})),v.isUnifiedHover(a)){if(d.selectAll(&quot;g.hovertext&quot;).remove(),void 0!==P&amp;&amp;k.distance&lt;=e.hoverdistance&amp;&amp;(t=H(t)),0===t.length)return;var G={showlegend:!0,legend:{title:{text:P,font:i.hoverlabel.font},font:i.hoverlabel.font,bgcolor:i.hoverlabel.bgcolor,bordercolor:i.hoverlabel.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:&quot;v&quot;}},Y={};x(G,Y,r._fullData);var W=Y.legend;W.entries=[];for(var X=0;X&lt;t.length;X++){var Z=I(t[X],!0,a,i,P),J=Z[0],K=Z[1],Q=t[X];Q.name=K,Q.text=&quot;&quot;!==K?K+&quot; : &quot;+J:J;var $=Q.cd[Q.index];$&amp;&amp;($.mc&amp;&amp;(Q.mc=$.mc),$.mcc&amp;&amp;(Q.mc=$.mcc),$.mlc&amp;&amp;(Q.mlc=$.mlc),$.mlcc&amp;&amp;(Q.mlc=$.mlcc),$.mlw&amp;&amp;(Q.mlw=$.mlw),$.mrc&amp;&amp;(Q.mrc=$.mrc),$.dir&amp;&amp;(Q.dir=$.dir)),Q._distinct=!0,W.entries.push([Q])}W.entries.sort((function(t,e){return t[0].trace.index-e[0].trace.index})),W.layer=d,b(r,W);var tt=o.mean(t.map((function(t){return(t.y0+t.y1)/2}))),et=o.mean(t.map((function(t){return(t.x0+t.x1)/2}))),rt=d.select(&quot;g.legend&quot;),nt=rt.node().getBoundingClientRect();et+=M._offset,tt+=C._offset-nt.height/2;var it=nt.width+2*S;!(et+it&lt;=R)&amp;&amp;et-it&gt;=0?et-=it:et+=2*S;var at=nt.height+2*S,ot=tt+at&gt;=F;return at&lt;=F&amp;&amp;(tt&lt;=D?tt=C._offset+2*S:ot&amp;&amp;(tt=F-at)),rt.attr(&quot;transform&quot;,s(et,tt)),rt}var st=d.selectAll(&quot;g.hovertext&quot;).data(t,(function(t){return E(t)}));return st.enter().append(&quot;g&quot;).classed(&quot;hovertext&quot;,!0).each((function(){var t=n.select(this);t.append(&quot;rect&quot;).call(p.fill,p.addOpacity(f,.8)),t.append(&quot;text&quot;).classed(&quot;name&quot;,!0),t.append(&quot;path&quot;).style(&quot;stroke-width&quot;,&quot;1px&quot;),t.append(&quot;text&quot;).classed(&quot;nums&quot;,!0).call(h.font,w,T)})),st.exit().remove(),st.each((function(t){var e=n.select(this).attr(&quot;transform&quot;,&quot;&quot;),o=t.color;Array.isArray(o)&amp;&amp;(o=o[t.eventData[0].pointNumber]);var d=t.bgcolor||o,g=p.combine(p.opacity(d)?d:p.defaultLine,f),m=p.combine(p.opacity(o)?o:p.defaultLine,f),v=t.borderColor||p.contrast(g),y=I(t,B,a,i,P,e),x=y[0],b=y[1],k=e.select(&quot;text.nums&quot;).call(h.font,t.fontFamily||w,t.fontSize||T,t.fontColor||v).text(x).attr(&quot;data-notex&quot;,1).call(u.positionText,0,0).call(u.convertToTspans,r),M=e.select(&quot;text.name&quot;),E=0,C=0;if(b&amp;&amp;b!==x){M.call(h.font,t.fontFamily||w,t.fontSize||T,m).text(b).attr(&quot;data-notex&quot;,1).call(u.positionText,0,0).call(u.convertToTspans,r);var L=M.node().getBoundingClientRect();E=L.width+2*S,C=L.height+2*S}else M.remove(),e.select(&quot;rect&quot;).remove();e.select(&quot;path&quot;).style({fill:g,stroke:v});var z,O,N=k.node().getBoundingClientRect(),j=t.xa._offset+(t.x0+t.x1)/2,U=t.ya._offset+(t.y0+t.y1)/2,V=Math.abs(t.x1-t.x0),q=Math.abs(t.y1-t.y0),H=N.width+A+S+E;if(t.ty0=D-N.top,t.bx=N.width+2*S,t.by=Math.max(N.height+2*S,C),t.anchor=&quot;start&quot;,t.txwidth=N.width,t.tx2width=E,t.offset=0,c)t.pos=j,z=U+q/2+H&lt;=F,O=U-q/2-H&gt;=0,&quot;top&quot;!==t.idealAlign&amp;&amp;z||!O?z?(U+=q/2,t.anchor=&quot;start&quot;):t.anchor=&quot;middle&quot;:(U-=q/2,t.anchor=&quot;end&quot;);else if(t.pos=U,z=j+V/2+H&lt;=R,O=j-V/2-H&gt;=0,&quot;left&quot;!==t.idealAlign&amp;&amp;z||!O)if(z)j+=V/2,t.anchor=&quot;start&quot;;else{t.anchor=&quot;middle&quot;;var G=H/2,Y=j+G-R,W=j-G;Y&gt;0&amp;&amp;(j-=Y),W&lt;0&amp;&amp;(j+=-W)}else j-=V/2,t.anchor=&quot;end&quot;;k.attr(&quot;text-anchor&quot;,t.anchor),E&amp;&amp;M.attr(&quot;text-anchor&quot;,t.anchor),e.attr(&quot;transform&quot;,s(j,U)+(c?l(_):&quot;&quot;))})),st}function I(t,e,r,n,i,a){var s=&quot;&quot;,l=&quot;&quot;;void 0!==t.nameOverride&amp;&amp;(t.name=t.nameOverride),t.name&amp;&amp;(t.trace._meta&amp;&amp;(t.name=o.templateString(t.name,t.trace._meta)),s=R(t.name,t.nameLength)),void 0!==t.zLabel?(void 0!==t.xLabel&amp;&amp;(l+=&quot;x: &quot;+t.xLabel+&quot;&lt;br&gt;&quot;),void 0!==t.yLabel&amp;&amp;(l+=&quot;y: &quot;+t.yLabel+&quot;&lt;br&gt;&quot;),&quot;choropleth&quot;!==t.trace.type&amp;&amp;&quot;choroplethmapbox&quot;!==t.trace.type&amp;&amp;(l+=(l?&quot;z: &quot;:&quot;&quot;)+t.zLabel)):e&amp;&amp;t[r.charAt(0)+&quot;Label&quot;]===i?l=t[(&quot;x&quot;===r.charAt(0)?&quot;y&quot;:&quot;x&quot;)+&quot;Label&quot;]||&quot;&quot;:void 0===t.xLabel?void 0!==t.yLabel&amp;&amp;&quot;scattercarpet&quot;!==t.trace.type&amp;&amp;(l=t.yLabel):l=void 0===t.yLabel?t.xLabel:&quot;(&quot;+t.xLabel+&quot;, &quot;+t.yLabel+&quot;)&quot;,!t.text&amp;&amp;0!==t.text||Array.isArray(t.text)||(l+=(l?&quot;&lt;br&gt;&quot;:&quot;&quot;)+t.text),void 0!==t.extraText&amp;&amp;(l+=(l?&quot;&lt;br&gt;&quot;:&quot;&quot;)+t.extraText),a&amp;&amp;&quot;&quot;===l&amp;&amp;!t.hovertemplate&amp;&amp;(&quot;&quot;===s&amp;&amp;a.remove(),l=s);var c=n._d3locale,u=t.hovertemplate||!1,f=t.hovertemplateLabels||t,h=t.eventData[0]||{};return u&amp;&amp;(l=(l=o.hovertemplateString(u,f,c,h,t.trace._meta)).replace(C,(function(e,r){return s=R(r,t.nameLength),&quot;&quot;}))),[l,s]}function P(t,e,r,i){var a=function(t){return t*r},o=function(t){return t*i};t.each((function(t){var r=n.select(this);if(t.del)return r.remove();var i=r.select(&quot;text.nums&quot;),s=t.anchor,l=&quot;end&quot;===s?-1:1,c={start:1,end:-1,middle:0}[s],f=c*(A+S),p=f+c*(t.txwidth+S),d=0,g=t.offset,m=&quot;middle&quot;===s;m&amp;&amp;(f-=t.tx2width/2,p+=t.txwidth/2+S),e&amp;&amp;(g*=-M,d=t.offset*k),r.select(&quot;path&quot;).attr(&quot;d&quot;,m?&quot;M-&quot;+a(t.bx/2+t.tx2width/2)+&quot;,&quot;+o(g-t.by/2)+&quot;h&quot;+a(t.bx)+&quot;v&quot;+o(t.by)+&quot;h-&quot;+a(t.bx)+&quot;Z&quot;:&quot;M0,0L&quot;+a(l*A+d)+&quot;,&quot;+o(A+g)+&quot;v&quot;+o(t.by/2-A)+&quot;h&quot;+a(l*t.bx)+&quot;v-&quot;+o(t.by)+&quot;H&quot;+a(l*A+d)+&quot;V&quot;+o(g-A)+&quot;Z&quot;);var v=d+f,y=g+t.ty0-t.by/2+S,x=t.textAlign||&quot;auto&quot;;&quot;auto&quot;!==x&amp;&amp;(&quot;left&quot;===x&amp;&amp;&quot;start&quot;!==s?(i.attr(&quot;text-anchor&quot;,&quot;start&quot;),v=m?-t.bx/2-t.tx2width/2+S:-t.bx-S):&quot;right&quot;===x&amp;&amp;&quot;end&quot;!==s&amp;&amp;(i.attr(&quot;text-anchor&quot;,&quot;end&quot;),v=m?t.bx/2-t.tx2width/2-S:t.bx+S)),i.call(u.positionText,a(v),o(y)),t.tx2width&amp;&amp;(r.select(&quot;text.name&quot;).call(u.positionText,a(p+c*S+d),o(g+t.ty0-t.by/2+S)),r.select(&quot;rect&quot;).call(h.setRect,a(p+(c-1)*t.tx2width/2+d),o(g-t.by/2-1),a(t.tx2width),o(t.by+2)))}))}function z(t,e){var r=t.index,n=t.trace||{},a=t.cd[0],s=t.cd[r]||{};function l(t){return t||i(t)&amp;&amp;0===t}var c=Array.isArray(r)?function(t,e){var i=o.castOption(a,r,t);return l(i)?i:o.extractOption({},n,&quot;&quot;,e)}:function(t,e){return o.extractOption(s,n,t,e)};function u(e,r,n){var i=c(r,n);l(i)&amp;&amp;(t[e]=i)}if(u(&quot;hoverinfo&quot;,&quot;hi&quot;,&quot;hoverinfo&quot;),u(&quot;bgcolor&quot;,&quot;hbg&quot;,&quot;hoverlabel.bgcolor&quot;),u(&quot;borderColor&quot;,&quot;hbc&quot;,&quot;hoverlabel.bordercolor&quot;),u(&quot;fontFamily&quot;,&quot;htf&quot;,&quot;hoverlabel.font.family&quot;),u(&quot;fontSize&quot;,&quot;hts&quot;,&quot;hoverlabel.font.size&quot;),u(&quot;fontColor&quot;,&quot;htc&quot;,&quot;hoverlabel.font.color&quot;),u(&quot;nameLength&quot;,&quot;hnl&quot;,&quot;hoverlabel.namelength&quot;),u(&quot;textAlign&quot;,&quot;hta&quot;,&quot;hoverlabel.align&quot;),t.posref=&quot;y&quot;===e||&quot;closest&quot;===e&amp;&amp;&quot;h&quot;===n.orientation?t.xa._offset+(t.x0+t.x1)/2:t.ya._offset+(t.y0+t.y1)/2,t.x0=o.constrain(t.x0,0,t.xa._length),t.x1=o.constrain(t.x1,0,t.xa._length),t.y0=o.constrain(t.y0,0,t.ya._length),t.y1=o.constrain(t.y1,0,t.ya._length),void 0!==t.xLabelVal&amp;&amp;(t.xLabel=&quot;xLabel&quot;in t?t.xLabel:g.hoverLabelText(t.xa,t.xLabelVal),t.xVal=t.xa.c2d(t.xLabelVal)),void 0!==t.yLabelVal&amp;&amp;(t.yLabel=&quot;yLabel&quot;in t?t.yLabel:g.hoverLabelText(t.ya,t.yLabelVal),t.yVal=t.ya.c2d(t.yLabelVal)),void 0!==t.zLabelVal&amp;&amp;void 0===t.zLabel&amp;&amp;(t.zLabel=String(t.zLabelVal)),!(isNaN(t.xerr)||&quot;log&quot;===t.xa.type&amp;&amp;t.xerr&lt;=0)){var f=g.tickText(t.xa,t.xa.c2l(t.xerr),&quot;hover&quot;).text;void 0!==t.xerrneg?t.xLabel+=&quot; +&quot;+f+&quot; / -&quot;+g.tickText(t.xa,t.xa.c2l(t.xerrneg),&quot;hover&quot;).text:t.xLabel+=&quot; \xb1 &quot;+f,&quot;x&quot;===e&amp;&amp;(t.distance+=1)}if(!(isNaN(t.yerr)||&quot;log&quot;===t.ya.type&amp;&amp;t.yerr&lt;=0)){var h=g.tickText(t.ya,t.ya.c2l(t.yerr),&quot;hover&quot;).text;void 0!==t.yerrneg?t.yLabel+=&quot; +&quot;+h+&quot; / -&quot;+g.tickText(t.ya,t.ya.c2l(t.yerrneg),&quot;hover&quot;).text:t.yLabel+=&quot; \xb1 &quot;+h,&quot;y&quot;===e&amp;&amp;(t.distance+=1)}var p=t.hoverinfo||t.trace.hoverinfo;return p&amp;&amp;&quot;all&quot;!==p&amp;&amp;(-1===(p=Array.isArray(p)?p:p.split(&quot;+&quot;)).indexOf(&quot;x&quot;)&amp;&amp;(t.xLabel=void 0),-1===p.indexOf(&quot;y&quot;)&amp;&amp;(t.yLabel=void 0),-1===p.indexOf(&quot;z&quot;)&amp;&amp;(t.zLabel=void 0),-1===p.indexOf(&quot;text&quot;)&amp;&amp;(t.text=void 0),-1===p.indexOf(&quot;name&quot;)&amp;&amp;(t.name=void 0)),t}function O(t,e,r){var n,i,o=r.container,s=r.fullLayout,l=s._size,c=r.event,u=!!e.hLinePoint,f=!!e.vLinePoint;if(o.selectAll(&quot;.spikeline&quot;).remove(),f||u){var d=p.combine(s.plot_bgcolor,s.paper_bgcolor);if(u){var m,v,y=e.hLinePoint;n=y&amp;&amp;y.xa,&quot;cursor&quot;===(i=y&amp;&amp;y.ya).spikesnap?(m=c.pointerX,v=c.pointerY):(m=n._offset+y.x,v=i._offset+y.y);var x,b,_=a.readability(y.color,d)&lt;1.5?p.contrast(d):y.color,w=i.spikemode,T=i.spikethickness,k=i.spikecolor||_,M=g.getPxPosition(t,i);if(-1!==w.indexOf(&quot;toaxis&quot;)||-1!==w.indexOf(&quot;across&quot;)){if(-1!==w.indexOf(&quot;toaxis&quot;)&amp;&amp;(x=M,b=m),-1!==w.indexOf(&quot;across&quot;)){var A=i._counterDomainMin,S=i._counterDomainMax;&quot;free&quot;===i.anchor&amp;&amp;(A=Math.min(A,i.position),S=Math.max(S,i.position)),x=l.l+A*l.w,b=l.l+S*l.w}o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:x,x2:b,y1:v,y2:v,&quot;stroke-width&quot;:T,stroke:k,&quot;stroke-dasharray&quot;:h.dashStyle(i.spikedash,T)}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0),o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:x,x2:b,y1:v,y2:v,&quot;stroke-width&quot;:T+2,stroke:d}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0)}-1!==w.indexOf(&quot;marker&quot;)&amp;&amp;o.insert(&quot;circle&quot;,&quot;:first-child&quot;).attr({cx:M+(&quot;right&quot;!==i.side?T:-T),cy:v,r:T,fill:k}).classed(&quot;spikeline&quot;,!0)}if(f){var E,C,L=e.vLinePoint;n=L&amp;&amp;L.xa,i=L&amp;&amp;L.ya,&quot;cursor&quot;===n.spikesnap?(E=c.pointerX,C=c.pointerY):(E=n._offset+L.x,C=i._offset+L.y);var I,P,z=a.readability(L.color,d)&lt;1.5?p.contrast(d):L.color,O=n.spikemode,D=n.spikethickness,R=n.spikecolor||z,F=g.getPxPosition(t,n);if(-1!==O.indexOf(&quot;toaxis&quot;)||-1!==O.indexOf(&quot;across&quot;)){if(-1!==O.indexOf(&quot;toaxis&quot;)&amp;&amp;(I=F,P=C),-1!==O.indexOf(&quot;across&quot;)){var B=n._counterDomainMin,N=n._counterDomainMax;&quot;free&quot;===n.anchor&amp;&amp;(B=Math.min(B,n.position),N=Math.max(N,n.position)),I=l.t+(1-N)*l.h,P=l.t+(1-B)*l.h}o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:E,x2:E,y1:I,y2:P,&quot;stroke-width&quot;:D,stroke:R,&quot;stroke-dasharray&quot;:h.dashStyle(n.spikedash,D)}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0),o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:E,x2:E,y1:I,y2:P,&quot;stroke-width&quot;:D+2,stroke:d}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0)}-1!==O.indexOf(&quot;marker&quot;)&amp;&amp;o.insert(&quot;circle&quot;,&quot;:first-child&quot;).attr({cx:E,cy:F-(&quot;top&quot;!==n.side?D:-D),r:D,fill:R}).classed(&quot;spikeline&quot;,!0)}}}function D(t,e){return!e||(e.vLinePoint!==t._spikepoints.vLinePoint||e.hLinePoint!==t._spikepoints.hLinePoint)}function R(t,e){return u.plainText(t||&quot;&quot;,{len:e,allowedTags:[&quot;br&quot;,&quot;sub&quot;,&quot;sup&quot;,&quot;b&quot;,&quot;i&quot;,&quot;em&quot;]})}},{&quot;../../lib&quot;:778,&quot;../../lib/events&quot;:767,&quot;../../lib/override_cursor&quot;:789,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../legend/defaults&quot;:695,&quot;../legend/draw&quot;:696,&quot;./constants&quot;:677,&quot;./helpers&quot;:679,d3:169,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],681:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;./helpers&quot;).isUnifiedHover;e.exports=function(t,e,r,o){function s(t){o.font[t]||(o.font[t]=e.legend?e.legend.font[t]:e.font[t])}o=o||{},e&amp;&amp;a(e.hovermode)&amp;&amp;(o.font||(o.font={}),s(&quot;size&quot;),s(&quot;family&quot;),s(&quot;color&quot;),e.legend?(o.bgcolor||(o.bgcolor=i.combine(e.legend.bgcolor,e.paper_bgcolor)),o.bordercolor||(o.bordercolor=e.legend.bordercolor)):o.bgcolor||(o.bgcolor=e.paper_bgcolor)),r(&quot;hoverlabel.bgcolor&quot;,o.bgcolor),r(&quot;hoverlabel.bordercolor&quot;,o.bordercolor),r(&quot;hoverlabel.namelength&quot;,o.namelength),n.coerceFont(r,&quot;hoverlabel.font&quot;,o.font),r(&quot;hoverlabel.align&quot;,o.align)}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;./helpers&quot;:679}],682:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){function a(r,a){return void 0!==e[r]?e[r]:n.coerce(t,e,i,r,a)}var o,s=a(&quot;clickmode&quot;);return e._has(&quot;cartesian&quot;)?s.indexOf(&quot;select&quot;)&gt;-1?o=&quot;closest&quot;:(e._isHoriz=function(t,e){for(var r=e._scatterStackOpts||{},n=0;n&lt;t.length;n++){var i=t[n],a=i.xaxis+i.yaxis,o=(r[a]||{})[i.stackgroup]||{};if(&quot;h&quot;!==i.orientation&amp;&amp;&quot;h&quot;!==o.orientation)return!1}return!0}(r,e),o=e._isHoriz?&quot;y&quot;:&quot;x&quot;):o=&quot;closest&quot;,a(&quot;hovermode&quot;,o)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:684}],683:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../dragelement&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;./layout_attributes&quot;),l=t(&quot;./hover&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;fx&quot;,constants:t(&quot;./constants&quot;),schema:{layout:s},attributes:t(&quot;./attributes&quot;),layoutAttributes:s,supplyLayoutGlobalDefaults:t(&quot;./layout_global_defaults&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(t,e,r){return i.castOption(t,e,&quot;hoverlabel.&quot;+r)},castHoverinfo:function(t,e,r){return i.castOption(t,r,&quot;hoverinfo&quot;,(function(r){return i.coerceHoverinfo({hoverinfo:r},{_module:t._module},e)}))},hover:l.hover,unhover:a.unhover,loneHover:l.loneHover,loneUnhover:function(t){var e=i.isD3Selection(t)?t:n.select(t);e.selectAll(&quot;g.hovertext&quot;).remove(),e.selectAll(&quot;.spikeline&quot;).remove()},click:t(&quot;./click&quot;)}},{&quot;../../lib&quot;:778,&quot;../dragelement&quot;:662,&quot;./attributes&quot;:674,&quot;./calc&quot;:675,&quot;./click&quot;:676,&quot;./constants&quot;:677,&quot;./defaults&quot;:678,&quot;./helpers&quot;:679,&quot;./hover&quot;:680,&quot;./layout_attributes&quot;:684,&quot;./layout_defaults&quot;:685,&quot;./layout_global_defaults&quot;:686,d3:169}],684:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../plots/font_attributes&quot;)({editType:&quot;none&quot;});i.family.dflt=n.HOVERFONT,i.size.dflt=n.HOVERFONTSIZE,e.exports={clickmode:{valType:&quot;flaglist&quot;,flags:[&quot;event&quot;,&quot;select&quot;],dflt:&quot;event&quot;,editType:&quot;plot&quot;,extras:[&quot;none&quot;]},dragmode:{valType:&quot;enumerated&quot;,values:[&quot;zoom&quot;,&quot;pan&quot;,&quot;select&quot;,&quot;lasso&quot;,&quot;drawclosedpath&quot;,&quot;drawopenpath&quot;,&quot;drawline&quot;,&quot;drawrect&quot;,&quot;drawcircle&quot;,&quot;orbit&quot;,&quot;turntable&quot;,!1],dflt:&quot;zoom&quot;,editType:&quot;modebar&quot;},hovermode:{valType:&quot;enumerated&quot;,values:[&quot;x&quot;,&quot;y&quot;,&quot;closest&quot;,!1,&quot;x unified&quot;,&quot;y unified&quot;],editType:&quot;modebar&quot;},hoverdistance:{valType:&quot;integer&quot;,min:-1,dflt:20,editType:&quot;none&quot;},spikedistance:{valType:&quot;integer&quot;,min:-1,dflt:20,editType:&quot;none&quot;},hoverlabel:{bgcolor:{valType:&quot;color&quot;,editType:&quot;none&quot;},bordercolor:{valType:&quot;color&quot;,editType:&quot;none&quot;},font:i,align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;right&quot;,&quot;auto&quot;],dflt:&quot;auto&quot;,editType:&quot;none&quot;},namelength:{valType:&quot;integer&quot;,min:-1,dflt:15,editType:&quot;none&quot;},editType:&quot;none&quot;},selectdirection:{valType:&quot;enumerated&quot;,values:[&quot;h&quot;,&quot;v&quot;,&quot;d&quot;,&quot;any&quot;],dflt:&quot;any&quot;,editType:&quot;none&quot;}}},{&quot;../../plots/font_attributes&quot;:856,&quot;./constants&quot;:677}],685:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./helpers&quot;).isUnifiedHover,a=t(&quot;./layout_attributes&quot;),o=t(&quot;./hovermode_defaults&quot;),s=t(&quot;./hoverlabel_defaults&quot;);e.exports=function(t,e,r){function l(r,i){return n.coerce(t,e,a,r,i)}var c=o(t,e,r);c&amp;&amp;(l(&quot;hoverdistance&quot;),l(&quot;spikedistance&quot;,i(c)?-1:void 0)),&quot;select&quot;===l(&quot;dragmode&quot;)&amp;&amp;l(&quot;selectdirection&quot;);var u=e._has(&quot;mapbox&quot;),f=e._has(&quot;geo&quot;),h=e._basePlotModules.length;&quot;zoom&quot;===e.dragmode&amp;&amp;((u||f)&amp;&amp;1===h||u&amp;&amp;f&amp;&amp;2===h)&amp;&amp;(e.dragmode=&quot;pan&quot;),s(t,e,l)}},{&quot;../../lib&quot;:778,&quot;./helpers&quot;:679,&quot;./hoverlabel_defaults&quot;:681,&quot;./hovermode_defaults&quot;:682,&quot;./layout_attributes&quot;:684}],686:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./hoverlabel_defaults&quot;),a=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){i(t,e,(function(r,i){return n.coerce(t,e,a,r,i)}))}},{&quot;../../lib&quot;:778,&quot;./hoverlabel_defaults&quot;:681,&quot;./layout_attributes&quot;:684}],687:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/regex&quot;).counter,a=t(&quot;../../plots/domain&quot;).attributes,o=t(&quot;../../plots/cartesian/constants&quot;).idRegex,s=t(&quot;../../plot_api/plot_template&quot;),l={rows:{valType:&quot;integer&quot;,min:1,editType:&quot;plot&quot;},roworder:{valType:&quot;enumerated&quot;,values:[&quot;top to bottom&quot;,&quot;bottom to top&quot;],dflt:&quot;top to bottom&quot;,editType:&quot;plot&quot;},columns:{valType:&quot;integer&quot;,min:1,editType:&quot;plot&quot;},subplots:{valType:&quot;info_array&quot;,freeLength:!0,dimensions:2,items:{valType:&quot;enumerated&quot;,values:[i(&quot;xy&quot;).toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},xaxes:{valType:&quot;info_array&quot;,freeLength:!0,items:{valType:&quot;enumerated&quot;,values:[o.x.toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},yaxes:{valType:&quot;info_array&quot;,freeLength:!0,items:{valType:&quot;enumerated&quot;,values:[o.y.toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},pattern:{valType:&quot;enumerated&quot;,values:[&quot;independent&quot;,&quot;coupled&quot;],dflt:&quot;coupled&quot;,editType:&quot;plot&quot;},xgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},ygap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},domain:a({name:&quot;grid&quot;,editType:&quot;plot&quot;,noGridCell:!0},{}),xside:{valType:&quot;enumerated&quot;,values:[&quot;bottom&quot;,&quot;bottom plot&quot;,&quot;top plot&quot;,&quot;top&quot;],dflt:&quot;bottom plot&quot;,editType:&quot;plot&quot;},yside:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;left plot&quot;,&quot;right plot&quot;,&quot;right&quot;],dflt:&quot;left plot&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;};function c(t,e,r){var n=e[r+&quot;axes&quot;],i=Object.keys((t._splomAxes||{})[r]||{});return Array.isArray(n)?n:i.length?i:void 0}function u(t,e,r,n,i,a){var o=e(t+&quot;gap&quot;,r),s=e(&quot;domain.&quot;+t);e(t+&quot;side&quot;,n);for(var l=new Array(i),c=s[0],u=(s[1]-c)/(i-o),f=u*(1-o),h=0;h&lt;i;h++){var p=c+u*h;l[a?i-1-h:h]=[p,p+f]}return l}function f(t,e,r,n,i){var a,o=new Array(r);function s(t,r){-1!==e.indexOf(r)&amp;&amp;void 0===n[r]?(o[t]=r,n[r]=t):o[t]=&quot;&quot;}if(Array.isArray(t))for(a=0;a&lt;r;a++)s(a,t[a]);else for(s(0,i),a=1;a&lt;r;a++)s(a,i+(a+1));return o}e.exports={moduleType:&quot;component&quot;,name:&quot;grid&quot;,schema:{layout:{grid:l}},layoutAttributes:l,sizeDefaults:function(t,e){var r=t.grid||{},i=c(e,r,&quot;x&quot;),a=c(e,r,&quot;y&quot;);if(t.grid||i||a){var o,f,h=Array.isArray(r.subplots)&amp;&amp;Array.isArray(r.subplots[0]),p=Array.isArray(i),d=Array.isArray(a),g=p&amp;&amp;i!==r.xaxes&amp;&amp;d&amp;&amp;a!==r.yaxes;h?(o=r.subplots.length,f=r.subplots[0].length):(d&amp;&amp;(o=a.length),p&amp;&amp;(f=i.length));var m=s.newContainer(e,&quot;grid&quot;),v=k(&quot;rows&quot;,o),y=k(&quot;columns&quot;,f);if(v*y&gt;1){if(!h&amp;&amp;!p&amp;&amp;!d)&quot;independent&quot;===k(&quot;pattern&quot;)&amp;&amp;(h=!0);m._hasSubplotGrid=h;var x,b,_=&quot;top to bottom&quot;===k(&quot;roworder&quot;),w=h?.2:.1,T=h?.3:.1;g&amp;&amp;e._splomGridDflt&amp;&amp;(x=e._splomGridDflt.xside,b=e._splomGridDflt.yside),m._domains={x:u(&quot;x&quot;,k,w,x,y),y:u(&quot;y&quot;,k,T,b,v,_)}}else delete e.grid}function k(t,e){return n.coerce(r,m,l,t,e)}},contentDefaults:function(t,e){var r=e.grid;if(r&amp;&amp;r._domains){var n,i,a,o,s,l,u,h=t.grid||{},p=e._subplots,d=r._hasSubplotGrid,g=r.rows,m=r.columns,v=&quot;independent&quot;===r.pattern,y=r._axisMap={};if(d){var x=h.subplots||[];l=r.subplots=new Array(g);var b=1;for(n=0;n&lt;g;n++){var _=l[n]=new Array(m),w=x[n]||[];for(i=0;i&lt;m;i++)if(v?(s=1===b?&quot;xy&quot;:&quot;x&quot;+b+&quot;y&quot;+b,b++):s=w[i],_[i]=&quot;&quot;,-1!==p.cartesian.indexOf(s)){if(u=s.indexOf(&quot;y&quot;),a=s.slice(0,u),o=s.slice(u),void 0!==y[a]&amp;&amp;y[a]!==i||void 0!==y[o]&amp;&amp;y[o]!==n)continue;_[i]=s,y[a]=i,y[o]=n}}}else{var T=c(e,h,&quot;x&quot;),k=c(e,h,&quot;y&quot;);r.xaxes=f(T,p.xaxis,m,y,&quot;x&quot;),r.yaxes=f(k,p.yaxis,g,y,&quot;y&quot;)}var M=r._anchors={},A=&quot;top to bottom&quot;===r.roworder;for(var S in y){var E,C,L,I=S.charAt(0),P=r[I+&quot;side&quot;];if(P.length&lt;8)M[S]=&quot;free&quot;;else if(&quot;x&quot;===I){if(&quot;t&quot;===P.charAt(0)===A?(E=0,C=1,L=g):(E=g-1,C=-1,L=-1),d){var z=y[S];for(n=E;n!==L;n+=C)if((s=l[n][z])&amp;&amp;(u=s.indexOf(&quot;y&quot;),s.slice(0,u)===S)){M[S]=s.slice(u);break}}else for(n=E;n!==L;n+=C)if(o=r.yaxes[n],-1!==p.cartesian.indexOf(S+o)){M[S]=o;break}}else if(&quot;l&quot;===P.charAt(0)?(E=0,C=1,L=m):(E=m-1,C=-1,L=-1),d){var O=y[S];for(n=E;n!==L;n+=C)if((s=l[O][n])&amp;&amp;(u=s.indexOf(&quot;y&quot;),s.slice(u)===S)){M[S]=s.slice(0,u);break}}else for(n=E;n!==L;n+=C)if(a=r.xaxes[n],-1!==p.cartesian.indexOf(a+S)){M[S]=a;break}}}}}},{&quot;../../lib&quot;:778,&quot;../../lib/regex&quot;:795,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834,&quot;../../plots/domain&quot;:855}],688:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/constants&quot;),i=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=i(&quot;image&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;arraydraw&quot;},source:{valType:&quot;string&quot;,editType:&quot;arraydraw&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;arraydraw&quot;},sizex:{valType:&quot;number&quot;,dflt:0,editType:&quot;arraydraw&quot;},sizey:{valType:&quot;number&quot;,dflt:0,editType:&quot;arraydraw&quot;},sizing:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;contain&quot;,&quot;stretch&quot;],dflt:&quot;contain&quot;,editType:&quot;arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},x:{valType:&quot;any&quot;,dflt:0,editType:&quot;arraydraw&quot;},y:{valType:&quot;any&quot;,dflt:0,editType:&quot;arraydraw&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;arraydraw&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;arraydraw&quot;},xref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,n.idRegex.x.toString()],dflt:&quot;paper&quot;,editType:&quot;arraydraw&quot;},yref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,n.idRegex.y.toString()],dflt:&quot;paper&quot;,editType:&quot;arraydraw&quot;},editType:&quot;arraydraw&quot;})},{&quot;../../constants/axis_placeable_objects&quot;:746,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834}],689:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib/to_log_range&quot;);e.exports=function(t,e,r,a){e=e||{};var o=&quot;log&quot;===r&amp;&amp;&quot;linear&quot;===e.type,s=&quot;linear&quot;===r&amp;&amp;&quot;log&quot;===e.type;if(o||s)for(var l,c,u=t._fullLayout.images,f=e._id.charAt(0),h=0;h&lt;u.length;h++)if(c=&quot;images[&quot;+h+&quot;].&quot;,(l=u[h])[f+&quot;ref&quot;]===e._id){var p=l[f],d=l[&quot;size&quot;+f],g=null,m=null;if(o){g=i(p,e.range);var v=d/Math.pow(10,g)/2;m=2*Math.log(v+Math.sqrt(1+v*v))/Math.LN10}else m=(g=Math.pow(10,p))*(Math.pow(10,d/2)-Math.pow(10,-d/2));n(g)?n(m)||(m=null):(g=null,m=null),a(c+f,g),a(c+&quot;size&quot;+f,m)}}},{&quot;../../lib/to_log_range&quot;:805,&quot;fast-isnumeric&quot;:241}],690:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}var s=a(&quot;source&quot;);if(!a(&quot;visible&quot;,!!s))return e;a(&quot;layer&quot;),a(&quot;xanchor&quot;),a(&quot;yanchor&quot;),a(&quot;sizex&quot;),a(&quot;sizey&quot;),a(&quot;sizing&quot;),a(&quot;opacity&quot;);for(var l={_fullLayout:r},c=[&quot;x&quot;,&quot;y&quot;],u=0;u&lt;2;u++){var f=c[u],h=i.coerceRef(t,e,l,f,&quot;paper&quot;,void 0);if(&quot;paper&quot;!==h)i.getFromId(l,h)._imgIndices.push(e._index);i.coercePosition(e,l,a,h,f,0)}return e}e.exports=function(t,e){a(t,e,{name:&quot;images&quot;,handleItemDefaults:s})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:688}],691:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../drawing&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/axis_ids&quot;),s=t(&quot;../../constants/xmlns_namespaces&quot;);e.exports=function(t){var e,r,l=t._fullLayout,c=[],u={},f=[];for(r=0;r&lt;l.images.length;r++){var h=l.images[r];if(h.visible)if(&quot;below&quot;===h.layer&amp;&amp;&quot;paper&quot;!==h.xref&amp;&amp;&quot;paper&quot;!==h.yref){e=o.ref2id(h.xref)+o.ref2id(h.yref);var p=l._plots[e];if(!p){f.push(h);continue}p.mainplot&amp;&amp;(e=p.mainplot.id),u[e]||(u[e]=[]),u[e].push(h)}else&quot;above&quot;===h.layer?c.push(h):f.push(h)}var d={left:{sizing:&quot;xMin&quot;,offset:0},center:{sizing:&quot;xMid&quot;,offset:-.5},right:{sizing:&quot;xMax&quot;,offset:-1}},g={top:{sizing:&quot;YMin&quot;,offset:0},middle:{sizing:&quot;YMid&quot;,offset:-.5},bottom:{sizing:&quot;YMax&quot;,offset:-1}};function m(e){var r=n.select(this);if(this._imgSrc!==e.source)if(r.attr(&quot;xmlns&quot;,s.svg),e.source&amp;&amp;&quot;data:&quot;===e.source.slice(0,5))r.attr(&quot;xlink:href&quot;,e.source),this._imgSrc=e.source;else{var i=new Promise(function(t){var n=new Image;function i(){r.remove(),t()}this.img=n,n.setAttribute(&quot;crossOrigin&quot;,&quot;anonymous&quot;),n.onerror=i,n.onload=function(){var e=document.createElement(&quot;canvas&quot;);e.width=this.width,e.height=this.height,e.getContext(&quot;2d&quot;).drawImage(this,0,0);var n=e.toDataURL(&quot;image/png&quot;);r.attr(&quot;xlink:href&quot;,n),t()},r.on(&quot;error&quot;,i),n.src=e.source,this._imgSrc=e.source}.bind(this));t._promises.push(i)}}function v(e){var r,o,s=n.select(this),c=a.getFromId(t,e.xref),u=a.getFromId(t,e.yref),f=&quot;domain&quot;===a.getRefType(e.xref),h=&quot;domain&quot;===a.getRefType(e.yref),p=l._size;r=void 0!==c?&quot;string&quot;==typeof e.xref&amp;&amp;f?c._length*e.sizex:Math.abs(c.l2p(e.sizex)-c.l2p(0)):e.sizex*p.w,o=void 0!==u?&quot;string&quot;==typeof e.yref&amp;&amp;h?u._length*e.sizey:Math.abs(u.l2p(e.sizey)-u.l2p(0)):e.sizey*p.h;var m,v,y=r*d[e.xanchor].offset,x=o*g[e.yanchor].offset,b=d[e.xanchor].sizing+g[e.yanchor].sizing;switch(m=void 0!==c?&quot;string&quot;==typeof e.xref&amp;&amp;f?c._length*e.x+c._offset:c.r2p(e.x)+c._offset:e.x*p.w+p.l,m+=y,v=void 0!==u?&quot;string&quot;==typeof e.yref&amp;&amp;h?u._length*(1-e.y)+u._offset:u.r2p(e.y)+u._offset:p.h-e.y*p.h+p.t,v+=x,e.sizing){case&quot;fill&quot;:b+=&quot; slice&quot;;break;case&quot;stretch&quot;:b=&quot;none&quot;}s.attr({x:m,y:v,width:r,height:o,preserveAspectRatio:b,opacity:e.opacity});var _=(c&amp;&amp;&quot;domain&quot;!==a.getRefType(e.xref)?c._id:&quot;&quot;)+(u&amp;&amp;&quot;domain&quot;!==a.getRefType(e.yref)?u._id:&quot;&quot;);i.setClipUrl(s,_?&quot;clip&quot;+l._uid+_:null,t)}var y=l._imageLowerLayer.selectAll(&quot;image&quot;).data(f),x=l._imageUpperLayer.selectAll(&quot;image&quot;).data(c);y.enter().append(&quot;image&quot;),x.enter().append(&quot;image&quot;),y.exit().remove(),x.exit().remove(),y.each((function(t){m.bind(this)(t),v.bind(this)(t)})),x.each((function(t){m.bind(this)(t),v.bind(this)(t)}));var b=Object.keys(l._plots);for(r=0;r&lt;b.length;r++){e=b[r];var _=l._plots[e];if(_.imagelayer){var w=_.imagelayer.selectAll(&quot;image&quot;).data(u[e]||[]);w.enter().append(&quot;image&quot;),w.exit().remove(),w.each((function(t){m.bind(this)(t),v.bind(this)(t)}))}}}},{&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../drawing&quot;:665,d3:169}],692:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;images&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;images&quot;),draw:t(&quot;./draw&quot;),convertCoords:t(&quot;./convert_coords&quot;)}},{&quot;../../plots/cartesian/include_components&quot;:840,&quot;./attributes&quot;:688,&quot;./convert_coords&quot;:689,&quot;./defaults&quot;:690,&quot;./draw&quot;:691}],693:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;);e.exports={bgcolor:{valType:&quot;color&quot;,editType:&quot;legend&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;legend&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;legend&quot;},font:n({editType:&quot;legend&quot;}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;v&quot;,editType:&quot;legend&quot;},traceorder:{valType:&quot;flaglist&quot;,flags:[&quot;reversed&quot;,&quot;grouped&quot;],extras:[&quot;normal&quot;],editType:&quot;legend&quot;},tracegroupgap:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;legend&quot;},itemsizing:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;constant&quot;],dflt:&quot;trace&quot;,editType:&quot;legend&quot;},itemwidth:{valType:&quot;number&quot;,min:30,dflt:30,editType:&quot;legend&quot;},itemclick:{valType:&quot;enumerated&quot;,values:[&quot;toggle&quot;,&quot;toggleothers&quot;,!1],dflt:&quot;toggle&quot;,editType:&quot;legend&quot;},itemdoubleclick:{valType:&quot;enumerated&quot;,values:[&quot;toggle&quot;,&quot;toggleothers&quot;,!1],dflt:&quot;toggleothers&quot;,editType:&quot;legend&quot;},x:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;legend&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;legend&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;legend&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;legend&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},valign:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;,editType:&quot;legend&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;legend&quot;},font:n({editType:&quot;legend&quot;}),side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;left&quot;,&quot;top left&quot;],editType:&quot;legend&quot;},editType:&quot;legend&quot;},editType:&quot;legend&quot;}},{&quot;../../plots/font_attributes&quot;:856,&quot;../color/attributes&quot;:642}],694:[function(t,e,r){&quot;use strict&quot;;e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:&quot;#808BA4&quot;,scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},{}],695:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../../plots/layout_attributes&quot;),l=t(&quot;./helpers&quot;);e.exports=function(t,e,r){for(var c=t.legend||{},u=0,f=!1,h=&quot;normal&quot;,p=0;p&lt;r.length;p++){var d=r[p];d.visible&amp;&amp;((d.showlegend||d._dfltShowLegend&amp;&amp;!(d._module&amp;&amp;d._module.attributes&amp;&amp;d._module.attributes.showlegend&amp;&amp;!1===d._module.attributes.showlegend.dflt))&amp;&amp;(u++,d.showlegend&amp;&amp;(f=!0,(n.traceIs(d,&quot;pie-like&quot;)||!0===d._input.showlegend)&amp;&amp;u++)),(n.traceIs(d,&quot;bar&quot;)&amp;&amp;&quot;stack&quot;===e.barmode||-1!==[&quot;tonextx&quot;,&quot;tonexty&quot;].indexOf(d.fill))&amp;&amp;(h=l.isGrouped({traceorder:h})?&quot;grouped+reversed&quot;:&quot;reversed&quot;),void 0!==d.legendgroup&amp;&amp;&quot;&quot;!==d.legendgroup&amp;&amp;(h=l.isReversed({traceorder:h})?&quot;reversed+grouped&quot;:&quot;grouped&quot;))}var g=i.coerce(t,e,s,&quot;showlegend&quot;,f&amp;&amp;u&gt;1);if(!1!==g||c.uirevision){var m=a.newContainer(e,&quot;legend&quot;);if(_(&quot;uirevision&quot;,e.uirevision),!1!==g){_(&quot;bgcolor&quot;,e.paper_bgcolor),_(&quot;bordercolor&quot;),_(&quot;borderwidth&quot;),i.coerceFont(_,&quot;font&quot;,e.font);var v,y,x,b=_(&quot;orientation&quot;);&quot;h&quot;===b?(v=0,n.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(t.xaxis)?(y=1.1,x=&quot;bottom&quot;):(y=-.1,x=&quot;top&quot;)):(v=1.02,y=1,x=&quot;auto&quot;),_(&quot;traceorder&quot;,h),l.isGrouped(e.legend)&amp;&amp;_(&quot;tracegroupgap&quot;),_(&quot;itemsizing&quot;),_(&quot;itemwidth&quot;),_(&quot;itemclick&quot;),_(&quot;itemdoubleclick&quot;),_(&quot;x&quot;,v),_(&quot;xanchor&quot;),_(&quot;y&quot;,y),_(&quot;yanchor&quot;,x),_(&quot;valign&quot;),i.noneOrAll(c,m,[&quot;x&quot;,&quot;y&quot;]),_(&quot;title.text&quot;)&amp;&amp;(_(&quot;title.side&quot;,&quot;h&quot;===b?&quot;left&quot;:&quot;top&quot;),i.coerceFont(_,&quot;title.font&quot;,e.font))}}function _(t,e){return i.coerce(c,m,o,t,e)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/layout_attributes&quot;:882,&quot;../../registry&quot;:911,&quot;./attributes&quot;:693,&quot;./helpers&quot;:699}],696:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib/events&quot;),l=t(&quot;../dragelement&quot;),c=t(&quot;../drawing&quot;),u=t(&quot;../color&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;./handle_click&quot;),p=t(&quot;./constants&quot;),d=t(&quot;../../constants/alignment&quot;),g=d.LINE_SPACING,m=d.FROM_TL,v=d.FROM_BR,y=t(&quot;./get_legend_data&quot;),x=t(&quot;./style&quot;),b=t(&quot;./helpers&quot;);function _(t,e,r,n,i){var a=r.data()[0][0].trace,l={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a._expandedIndex,data:t.data,layout:t.layout,frames:t._transitionData._frames,config:t._context,fullData:t._fullData,fullLayout:t._fullLayout};if(a._group&amp;&amp;(l.group=a._group),o.traceIs(a,&quot;pie-like&quot;)&amp;&amp;(l.label=r.datum()[0].label),!1!==s.triggerHandler(t,&quot;plotly_legendclick&quot;,l))if(1===n)e._clickTimeout=setTimeout((function(){h(r,t,n)}),t._context.doubleClickDelay);else if(2===n){e._clickTimeout&amp;&amp;clearTimeout(e._clickTimeout),t._legendMouseDownTime=0,!1!==s.triggerHandler(t,&quot;plotly_legenddoubleclick&quot;,l)&amp;&amp;h(r,t,n)}}function w(t,e,r){var n,a=t.data()[0][0],s=a.trace,l=o.traceIs(s,&quot;pie-like&quot;),u=s.index,h=r._main&amp;&amp;e._context.edits.legendText&amp;&amp;!l,d=r._maxNameLength;r.entries?n=a.text:(n=l?a.label:s.name,s._meta&amp;&amp;(n=i.templateString(n,s._meta)));var g=i.ensureSingle(t,&quot;text&quot;,&quot;legendtext&quot;);g.attr(&quot;text-anchor&quot;,&quot;start&quot;).call(c.font,r.font).text(h?T(n,d):n);var m=r.itemwidth+2*p.itemGap;f.positionText(g,m,0),h?g.call(f.makeEditable,{gd:e,text:n}).call(M,t,e,r).on(&quot;edit&quot;,(function(n){this.text(T(n,d)).call(M,t,e,r);var s=a.trace._fullInput||{},l={};if(o.hasTransform(s,&quot;groupby&quot;)){var c=o.getTransformIndices(s,&quot;groupby&quot;),f=c[c.length-1],h=i.keyedContainer(s,&quot;transforms[&quot;+f+&quot;].styles&quot;,&quot;target&quot;,&quot;value.name&quot;);h.set(a.trace._group,n),l=h.constructUpdate()}else l.name=n;return o.call(&quot;_guiRestyle&quot;,e,l,u)})):M(g,t,e,r)}function T(t,e){var r=Math.max(4,e);if(t&amp;&amp;t.trim().length&gt;=r/2)return t;for(var n=r-(t=t||&quot;&quot;).length;n&gt;0;n--)t+=&quot; &quot;;return t}function k(t,e){var r,a=e._context.doubleClickDelay,o=1,s=i.ensureSingle(t,&quot;rect&quot;,&quot;legendtoggle&quot;,(function(t){e._context.staticPlot||t.style(&quot;cursor&quot;,&quot;pointer&quot;).attr(&quot;pointer-events&quot;,&quot;all&quot;),t.call(u.fill,&quot;rgba(0,0,0,0)&quot;)}));e._context.staticPlot||(s.on(&quot;mousedown&quot;,(function(){(r=(new Date).getTime())-e._legendMouseDownTime&lt;a?o+=1:(o=1,e._legendMouseDownTime=r)})),s.on(&quot;mouseup&quot;,(function(){if(!e._dragged&amp;&amp;!e._editing){var r=e._fullLayout.legend;(new Date).getTime()-e._legendMouseDownTime&gt;a&amp;&amp;(o=Math.max(o-1,1)),_(e,r,t,o,n.event)}})))}function M(t,e,r,n){n._main||t.attr(&quot;data-notex&quot;,!0),f.convertToTspans(t,r,(function(){!function(t,e,r){var n=t.data()[0][0];if(r._main&amp;&amp;n&amp;&amp;!n.trace.showlegend)return void t.remove();var i=t.select(&quot;g[class*=math-group]&quot;),a=i.node();r||(r=e._fullLayout.legend);var o,s,l=r.borderwidth,u=(n?r:r.title).font.size*g;if(a){var h=c.bBox(a);o=h.height,s=h.width,n?c.setTranslate(i,0,.25*o):c.setTranslate(i,l,.75*o+l)}else{var d=t.select(n?&quot;.legendtext&quot;:&quot;.legendtitletext&quot;),m=f.lineCount(d),v=d.node();o=u*m,s=v?c.bBox(v).width:0;var y=u*((m-1)/2-.3);if(n){var x=r.itemwidth+2*p.itemGap;f.positionText(d,x,-y)}else f.positionText(d,p.titlePad+l,u+l)}n?(n.lineHeight=u,n.height=Math.max(o,16)+3,n.width=s):(r._titleWidth=s,r._titleHeight=o)}(e,r,n)}))}function A(t){return i.isRightAnchor(t)?&quot;right&quot;:i.isCenterAnchor(t)?&quot;center&quot;:&quot;left&quot;}function S(t){return i.isBottomAnchor(t)?&quot;bottom&quot;:i.isMiddleAnchor(t)?&quot;middle&quot;:&quot;top&quot;}e.exports=function(t,e){var r,s=t._fullLayout,f=&quot;legend&quot;+s._uid;if(e?(r=e.layer,f+=&quot;-hover&quot;):((e=s.legend||{})._main=!0,r=s._infolayer),r){var h;if(t._legendMouseDownTime||(t._legendMouseDownTime=0),e._main){if(!t.calcdata)return;h=s.showlegend&amp;&amp;y(t.calcdata,e)}else{if(!e.entries)return;h=y(e.entries,e)}var d=s.hiddenlabels||[];if(e._main&amp;&amp;(!s.showlegend||!h.length))return r.selectAll(&quot;.legend&quot;).remove(),s._topdefs.select(&quot;#&quot;+f).remove(),a.autoMargin(t,&quot;legend&quot;);var g=i.ensureSingle(r,&quot;g&quot;,&quot;legend&quot;,(function(t){e._main&amp;&amp;t.attr(&quot;pointer-events&quot;,&quot;all&quot;)})),T=i.ensureSingleById(s._topdefs,&quot;clipPath&quot;,f,(function(t){t.append(&quot;rect&quot;)})),E=i.ensureSingle(g,&quot;rect&quot;,&quot;bg&quot;,(function(t){t.attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)}));E.call(u.stroke,e.bordercolor).call(u.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;);var C=i.ensureSingle(g,&quot;g&quot;,&quot;scrollbox&quot;),L=e.title;if(e._titleWidth=0,e._titleHeight=0,L.text){var I=i.ensureSingle(C,&quot;text&quot;,&quot;legendtitletext&quot;);I.attr(&quot;text-anchor&quot;,&quot;start&quot;).call(c.font,L.font).text(L.text),M(I,C,t,e)}else C.selectAll(&quot;.legendtitletext&quot;).remove();var P=i.ensureSingle(g,&quot;rect&quot;,&quot;scrollbar&quot;,(function(t){t.attr(p.scrollBarEnterAttrs).call(u.fill,p.scrollBarColor)})),z=C.selectAll(&quot;g.groups&quot;).data(h);z.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;groups&quot;),z.exit().remove();var O=z.selectAll(&quot;g.traces&quot;).data(i.identity);O.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;traces&quot;),O.exit().remove(),O.style(&quot;opacity&quot;,(function(t){var e=t[0].trace;return o.traceIs(e,&quot;pie-like&quot;)?-1!==d.indexOf(t[0].label)?.5:1:&quot;legendonly&quot;===e.visible?.5:1})).each((function(){n.select(this).call(w,t,e)})).call(x,t,e).each((function(){e._main&amp;&amp;n.select(this).call(k,t)})),i.syncOrAsync([a.previousPromises,function(){return function(t,e,r,i){var a=t._fullLayout;i||(i=a.legend);var o=a._size,s=b.isVertical(i),l=b.isGrouped(i),u=i.borderwidth,f=2*u,h=p.itemGap,d=i.itemwidth+2*h,g=2*(u+h),m=S(i),v=i.y&lt;0||0===i.y&amp;&amp;&quot;top&quot;===m,y=i.y&gt;1||1===i.y&amp;&amp;&quot;bottom&quot;===m;i._maxHeight=Math.max(v||y?a.height/2:o.h,30);var x=0;i._width=0,i._height=0;var _=function(t){var e=0,r=0,n=t.title.side;n&amp;&amp;(-1!==n.indexOf(&quot;left&quot;)&amp;&amp;(e=t._titleWidth),-1!==n.indexOf(&quot;top&quot;)&amp;&amp;(r=t._titleHeight));return[e,r]}(i);if(s)r.each((function(t){var e=t[0].height;c.setTranslate(this,u+_[0],u+_[1]+i._height+e/2+h),i._height+=e,i._width=Math.max(i._width,t[0].width)})),x=d+i._width,i._width+=h+d+f,i._height+=g,l&amp;&amp;(e.each((function(t,e){c.setTranslate(this,0,e*i.tracegroupgap)})),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var w=A(i),T=i.x&lt;0||0===i.x&amp;&amp;&quot;right&quot;===w,k=i.x&gt;1||1===i.x&amp;&amp;&quot;left&quot;===w,M=y||v,E=a.width/2;i._maxWidth=Math.max(T?M&amp;&amp;&quot;left&quot;===w?o.l+o.w:E:k?M&amp;&amp;&quot;right&quot;===w?o.r+o.w:E:o.w,2*d);var C=0,L=0;r.each((function(t){var e=t[0].width+d;C=Math.max(C,e),L+=e})),x=null;var I=0;if(l){var P=0,z=0,O=0;e.each((function(){var t=0,e=0;n.select(this).selectAll(&quot;g.traces&quot;).each((function(r){var n=r[0].height;c.setTranslate(this,_[0],_[1]+u+h+n/2+e),e+=n,t=Math.max(t,d+r[0].width)})),P=Math.max(P,e);var r=t+h;r+u+z&gt;i._maxWidth&amp;&amp;(I=Math.max(I,z),z=0,O+=P+i.tracegroupgap,P=e),c.setTranslate(this,z,O),z+=r})),i._width=Math.max(I,z)+u,i._height=O+P+g}else{var D=r.size(),R=L+f+(D-1)*h&lt;i._maxWidth,F=0,B=0,N=0,j=0;r.each((function(t){var e=t[0].height,r=d+t[0].width,n=(R?r:C)+h;n+u+B-h&gt;=i._maxWidth&amp;&amp;(I=Math.max(I,j),B=0,N+=F,i._height+=F,F=0),c.setTranslate(this,_[0]+u+B,_[1]+u+N+e/2+h),j=B+r+h,B+=n,F=Math.max(F,e)})),R?(i._width=B+f,i._height=F+g):(i._width=Math.max(I,j)+f,i._height+=F+g)}}i._width=Math.ceil(Math.max(i._width+_[0],i._titleWidth+2*(u+p.titlePad))),i._height=Math.ceil(Math.max(i._height+_[1],i._titleHeight+2*(u+p.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var U=t._context.edits,V=U.legendText||U.legendPosition;r.each((function(t){var e=n.select(this).select(&quot;.legendtoggle&quot;),r=t[0].height,i=V?d:x||d+t[0].width;s||(i+=h/2),c.setRect(e,0,-r/2,i,r)}))}(t,z,O,e)},function(){if(!e._main||!function(t){var e=t._fullLayout.legend,r=A(e),n=S(e);return a.autoMargin(t,&quot;legend&quot;,{x:e.x,y:e.y,l:e._width*m[r],r:e._width*v[r],b:e._effHeight*v[n],t:e._effHeight*m[n]})}(t)){var u,h,d,y,x=s._size,b=e.borderwidth,w=x.l+x.w*e.x-m[A(e)]*e._width,k=x.t+x.h*(1-e.y)-m[S(e)]*e._effHeight;if(e._main&amp;&amp;s.margin.autoexpand){var M=w,L=k;w=i.constrain(w,0,s.width-e._width),k=i.constrain(k,0,s.height-e._effHeight),w!==M&amp;&amp;i.log(&quot;Constrain legend.x to make legend fit inside graph&quot;),k!==L&amp;&amp;i.log(&quot;Constrain legend.y to make legend fit inside graph&quot;)}if(e._main&amp;&amp;c.setTranslate(g,w,k),P.on(&quot;.drag&quot;,null),g.on(&quot;wheel&quot;,null),!e._main||e._height&lt;=e._maxHeight||t._context.staticPlot){var I=e._effHeight;e._main||(I=e._height),E.attr({width:e._width-b,height:I-b,x:b/2,y:b/2}),c.setTranslate(C,0,0),T.select(&quot;rect&quot;).attr({width:e._width-2*b,height:I-2*b,x:b,y:b}),c.setClipUrl(C,f,t),c.setRect(P,0,0,0,0),delete e._scrollY}else{var z,O,D,R=Math.max(p.scrollBarMinHeight,e._effHeight*e._effHeight/e._height),F=e._effHeight-R-2*p.scrollBarMargin,B=e._height-e._effHeight,N=F/B,j=Math.min(e._scrollY||0,B);E.attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-b,x:b/2,y:b/2}),T.select(&quot;rect&quot;).attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-2*b,x:b,y:b+j}),c.setClipUrl(C,f,t),q(j,R,N),g.on(&quot;wheel&quot;,(function(){q(j=i.constrain(e._scrollY+n.event.deltaY/F*B,0,B),R,N),0!==j&amp;&amp;j!==B&amp;&amp;n.event.preventDefault()}));var U=n.behavior.drag().on(&quot;dragstart&quot;,(function(){var t=n.event.sourceEvent;z=&quot;touchstart&quot;===t.type?t.changedTouches[0].clientY:t.clientY,D=j})).on(&quot;drag&quot;,(function(){var t=n.event.sourceEvent;2===t.buttons||t.ctrlKey||(O=&quot;touchmove&quot;===t.type?t.changedTouches[0].clientY:t.clientY,q(j=function(t,e,r){var n=(r-e)/N+t;return i.constrain(n,0,B)}(D,z,O),R,N))}));P.call(U);var V=n.behavior.drag().on(&quot;dragstart&quot;,(function(){var t=n.event.sourceEvent;&quot;touchstart&quot;===t.type&amp;&amp;(z=t.changedTouches[0].clientY,D=j)})).on(&quot;drag&quot;,(function(){var t=n.event.sourceEvent;&quot;touchmove&quot;===t.type&amp;&amp;(O=t.changedTouches[0].clientY,q(j=function(t,e,r){var n=(e-r)/N+t;return i.constrain(n,0,B)}(D,z,O),R,N))}));C.call(V)}if(t._context.edits.legendPosition)g.classed(&quot;cursor-move&quot;,!0),l.init({element:g.node(),gd:t,prepFn:function(){var t=c.getTranslate(g);d=t.x,y=t.y},moveFn:function(t,r){var n=d+t,i=y+r;c.setTranslate(g,n,i),u=l.align(n,0,x.l,x.l+x.w,e.xanchor),h=l.align(i,0,x.t+x.h,x.t,e.yanchor)},doneFn:function(){void 0!==u&amp;&amp;void 0!==h&amp;&amp;o.call(&quot;_guiRelayout&quot;,t,{&quot;legend.x&quot;:u,&quot;legend.y&quot;:h})},clickFn:function(e,n){var i=r.selectAll(&quot;g.traces&quot;).filter((function(){var t=this.getBoundingClientRect();return n.clientX&gt;=t.left&amp;&amp;n.clientX&lt;=t.right&amp;&amp;n.clientY&gt;=t.top&amp;&amp;n.clientY&lt;=t.bottom}));i.size()&gt;0&amp;&amp;_(t,g,i,e,n)}})}function q(r,n,i){e._scrollY=t._fullLayout.legend._scrollY=r,c.setTranslate(C,0,-r),c.setRect(P,e._width,p.scrollBarMargin+r*i,p.scrollBarWidth,n),T.select(&quot;rect&quot;).attr(&quot;y&quot;,b+r)}}],t)}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/events&quot;:767,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;./constants&quot;:694,&quot;./get_legend_data&quot;:697,&quot;./handle_click&quot;:698,&quot;./helpers&quot;:699,&quot;./style&quot;:701,d3:169}],697:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./helpers&quot;);e.exports=function(t,e){var r,a,o={},s=[],l=!1,c={},u=0,f=0,h=e._main;function p(t,r){if(&quot;&quot;!==t&amp;&amp;i.isGrouped(e))-1===s.indexOf(t)?(s.push(t),l=!0,o[t]=[[r]]):o[t].push([r]);else{var n=&quot;~~i&quot;+u;s.push(n),o[n]=[[r]],u++}}for(r=0;r&lt;t.length;r++){var d=t[r],g=d[0],m=g.trace,v=m.legendgroup;if(!h||m.visible&amp;&amp;m.showlegend)if(n.traceIs(m,&quot;pie-like&quot;))for(c[v]||(c[v]={}),a=0;a&lt;d.length;a++){var y=d[a].label;c[v][y]||(p(v,{label:y,color:d[a].color,i:d[a].i,trace:m,pts:d[a].pts}),c[v][y]=!0,f=Math.max(f,(y||&quot;&quot;).length))}else p(v,g),f=Math.max(f,(m.name||&quot;&quot;).length)}if(!s.length)return[];var x,b,_=s.length;if(l&amp;&amp;i.isGrouped(e))for(b=new Array(_),r=0;r&lt;_;r++)x=o[s[r]],b[r]=i.isReversed(e)?x.reverse():x;else{for(b=[new Array(_)],r=0;r&lt;_;r++)x=o[s[r]][0],b[0][i.isReversed(e)?_-r-1:r]=x;_=1}return e._lgroupsLength=_,e._maxNameLength=f,b}},{&quot;../../registry&quot;:911,&quot;./helpers&quot;:699}],698:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=!0;e.exports=function(t,e,r){var o=e._fullLayout;if(!e._dragged&amp;&amp;!e._editing){var s,l=o.legend.itemclick,c=o.legend.itemdoubleclick;if(1===r&amp;&amp;&quot;toggle&quot;===l&amp;&amp;&quot;toggleothers&quot;===c&amp;&amp;a&amp;&amp;e.data&amp;&amp;e._context.showTips?(n.notifier(n._(e,&quot;Double-click on legend to isolate one trace&quot;),&quot;long&quot;),a=!1):a=!1,1===r?s=l:2===r&amp;&amp;(s=c),s){var u,f,h,p,d,g=o.hiddenlabels?o.hiddenlabels.slice():[],m=t.data()[0][0],v=e._fullData,y=m.trace,x=y.legendgroup,b={},_=[],w=[],T=[];if(i.traceIs(y,&quot;pie-like&quot;)){var k=m.label,M=g.indexOf(k);&quot;toggle&quot;===s?-1===M?g.push(k):g.splice(M,1):&quot;toggleothers&quot;===s&amp;&amp;(g=[],e.calcdata[0].forEach((function(t){k!==t.label&amp;&amp;g.push(t.label)})),e._fullLayout.hiddenlabels&amp;&amp;e._fullLayout.hiddenlabels.length===g.length&amp;&amp;-1===M&amp;&amp;(g=[])),i.call(&quot;_guiRelayout&quot;,e,&quot;hiddenlabels&quot;,g)}else{var A,S=x&amp;&amp;x.length,E=[];if(S)for(u=0;u&lt;v.length;u++)(A=v[u]).visible&amp;&amp;A.legendgroup===x&amp;&amp;E.push(u);if(&quot;toggle&quot;===s){var C;switch(y.visible){case!0:C=&quot;legendonly&quot;;break;case!1:C=!1;break;case&quot;legendonly&quot;:C=!0}if(S)for(u=0;u&lt;v.length;u++)!1!==v[u].visible&amp;&amp;v[u].legendgroup===x&amp;&amp;B(v[u],C);else B(y,C)}else if(&quot;toggleothers&quot;===s){var L,I,P,z,O=!0;for(u=0;u&lt;v.length;u++)if(L=v[u]===y,P=!0!==v[u].showlegend,!(L||P||(I=S&amp;&amp;v[u].legendgroup===x)||!0!==v[u].visible||i.traceIs(v[u],&quot;notLegendIsolatable&quot;))){O=!1;break}for(u=0;u&lt;v.length;u++)if(!1!==v[u].visible&amp;&amp;!i.traceIs(v[u],&quot;notLegendIsolatable&quot;))switch(y.visible){case&quot;legendonly&quot;:B(v[u],!0);break;case!0:z=!!O||&quot;legendonly&quot;,L=v[u]===y,P=!0!==v[u].showlegend&amp;&amp;!v[u].legendgroup,I=L||S&amp;&amp;v[u].legendgroup===x,B(v[u],!(!I&amp;&amp;!P)||z)}}for(u=0;u&lt;w.length;u++)if(h=w[u]){var D=h.constructUpdate(),R=Object.keys(D);for(f=0;f&lt;R.length;f++)p=R[f],(b[p]=b[p]||[])[T[u]]=D[p]}for(d=Object.keys(b),u=0;u&lt;d.length;u++)for(p=d[u],f=0;f&lt;_.length;f++)b[p].hasOwnProperty(f)||(b[p][f]=void 0);i.call(&quot;_guiRestyle&quot;,e,b,_)}}}function F(t,e,r){var n=_.indexOf(t),i=b[e];return i||(i=b[e]=[]),-1===_.indexOf(t)&amp;&amp;(_.push(t),n=_.length-1),i[n]=r,n}function B(t,e){var r=t._fullInput;if(i.hasTransform(r,&quot;groupby&quot;)){var a=w[r.index];if(!a){var o=i.getTransformIndices(r,&quot;groupby&quot;),s=o[o.length-1];a=n.keyedContainer(r,&quot;transforms[&quot;+s+&quot;].styles&quot;,&quot;target&quot;,&quot;value.visible&quot;),w[r.index]=a}var l=a.get(t._group);void 0===l&amp;&amp;(l=!0),!1!==l&amp;&amp;a.set(t._group,e),T[r.index]=F(r.index,&quot;visible&quot;,!1!==r.visible)}else{var c=!1!==r.visible&amp;&amp;e;F(r.index,&quot;visible&quot;,c)}}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],699:[function(t,e,r){&quot;use strict&quot;;r.isGrouped=function(t){return-1!==(t.traceorder||&quot;&quot;).indexOf(&quot;grouped&quot;)},r.isVertical=function(t){return&quot;h&quot;!==t.orientation},r.isReversed=function(t){return-1!==(t.traceorder||&quot;&quot;).indexOf(&quot;reversed&quot;)}},{}],700:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;legend&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;),style:t(&quot;./style&quot;)}},{&quot;./attributes&quot;:693,&quot;./defaults&quot;:695,&quot;./draw&quot;:696,&quot;./style&quot;:701}],701:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.strTranslate,s=t(&quot;../drawing&quot;),l=t(&quot;../color&quot;),c=t(&quot;../colorscale/helpers&quot;).extractOpts,u=t(&quot;../../traces/scatter/subtypes&quot;),f=t(&quot;../../traces/pie/style_one&quot;),h=t(&quot;../../traces/pie/helpers&quot;).castOption,p=t(&quot;./constants&quot;);function d(t,e){return(e?&quot;radial&quot;:&quot;horizontal&quot;)+(t?&quot;&quot;:&quot;reversed&quot;)}e.exports=function(t,e,r){var g=e._fullLayout;r||(r=g.legend);var m=&quot;constant&quot;===r.itemsizing,v=r.itemwidth,y=(v+2*p.itemGap)/2,x=o(y,0),b=function(t,e,r,n){var i;if(t+1)i=t;else{if(!(e&amp;&amp;e.width&gt;0))return 0;i=e.width}return m?n:Math.min(i,r)};function _(t,e,r){var a=t[0].trace,o=a.marker||{},s=o.line||{},c=r?a.visible&amp;&amp;a.type===r:i.traceIs(a,&quot;bar&quot;),u=n.select(e).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend&quot;+r).data(c?[t]:[]);u.enter().append(&quot;path&quot;).classed(&quot;legend&quot;+r,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,x),u.exit().remove(),u.each((function(t){var e=n.select(this),r=t[0],i=b(r.mlw,o.line,5,2);e.style(&quot;stroke-width&quot;,i+&quot;px&quot;).call(l.fill,r.mc||o.color),i&amp;&amp;l.stroke(e,r.mlc||s.color)}))}function w(t,e,r){var o=t[0],s=o.trace,l=r?s.visible&amp;&amp;s.type===r:i.traceIs(s,r),c=n.select(e).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend&quot;+r).data(l?[t]:[]);if(c.enter().append(&quot;path&quot;).classed(&quot;legend&quot;+r,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,x),c.exit().remove(),c.size()){var u=(s.marker||{}).line,p=b(h(u.width,o.pts),u,5,2),d=a.minExtend(s,{marker:{line:{width:p}}});d.marker.line.color=u.color;var g=a.minExtend(o,{trace:d});f(c,g,d)}}t.each((function(t){var e=n.select(this),i=a.ensureSingle(e,&quot;g&quot;,&quot;layers&quot;);i.style(&quot;opacity&quot;,t[0].trace.opacity);var s=r.valign,l=t[0].lineHeight,c=t[0].height;if(&quot;middle&quot;!==s&amp;&amp;l&amp;&amp;c){var u={top:1,bottom:-1}[s]*(.5*(l-c+3));i.attr(&quot;transform&quot;,o(0,u))}else i.attr(&quot;transform&quot;,null);i.selectAll(&quot;g.legendfill&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendfill&quot;,!0),i.selectAll(&quot;g.legendlines&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendlines&quot;,!0);var f=i.selectAll(&quot;g.legendsymbols&quot;).data([t]);f.enter().append(&quot;g&quot;).classed(&quot;legendsymbols&quot;,!0),f.selectAll(&quot;g.legendpoints&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendpoints&quot;,!0)})).each((function(t){var r,i=t[0].trace,o=[];if(i.visible)switch(i.type){case&quot;histogram2d&quot;:case&quot;heatmap&quot;:o=[[&quot;M-15,-2V4H15V-2Z&quot;]],r=!0;break;case&quot;choropleth&quot;:case&quot;choroplethmapbox&quot;:o=[[&quot;M-6,-6V6H6V-6Z&quot;]],r=!0;break;case&quot;densitymapbox&quot;:o=[[&quot;M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0&quot;]],r=&quot;radial&quot;;break;case&quot;cone&quot;:o=[[&quot;M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z&quot;],[&quot;M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z&quot;],[&quot;M-6,-2 A2,2 0 0,0 -6,2 L6,0Z&quot;]],r=!1;break;case&quot;streamtube&quot;:o=[[&quot;M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z&quot;],[&quot;M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z&quot;],[&quot;M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z&quot;]],r=!1;break;case&quot;surface&quot;:o=[[&quot;M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z&quot;],[&quot;M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z&quot;]],r=!0;break;case&quot;mesh3d&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6H6L0,6Z&quot;]],r=!1;break;case&quot;volume&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6H6L0,6Z&quot;]],r=!0;break;case&quot;isosurface&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6 A12,24 0 0,0 6,-6 L0,6Z&quot;]],r=!1}var u=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend3dandfriends&quot;).data(o);u.enter().append(&quot;path&quot;).classed(&quot;legend3dandfriends&quot;,!0).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),u.exit().remove(),u.each((function(t,o){var u,f=n.select(this),h=c(i),p=h.colorscale,g=h.reversescale;if(p){if(!r){var m=p.length;u=0===o?p[g?m-1:0][1]:1===o?p[g?0:m-1][1]:p[Math.floor((m-1)/2)][1]}}else{var v=i.vertexcolor||i.facecolor||i.color;u=a.isArrayOrTypedArray(v)?v[o]||v[0]:v}f.attr(&quot;d&quot;,t[0]),u?f.call(l.fill,u):f.call((function(t){if(t.size()){var n=&quot;legendfill-&quot;+i.uid;s.gradient(t,e,n,d(g,&quot;radial&quot;===r),p,&quot;fill&quot;)}}))}))})).each((function(t){var e=t[0].trace,r=&quot;waterfall&quot;===e.type;if(t[0]._distinct&amp;&amp;r){var i=t[0].trace[t[0].dir].marker;return t[0].mc=i.color,t[0].mlw=i.line.width,t[0].mlc=i.line.color,_(t,this,&quot;waterfall&quot;)}var a=[];e.visible&amp;&amp;r&amp;&amp;(a=t[0].hasTotals?[[&quot;increasing&quot;,&quot;M-6,-6V6H0Z&quot;],[&quot;totals&quot;,&quot;M6,6H0L-6,-6H-0Z&quot;],[&quot;decreasing&quot;,&quot;M6,6V-6H0Z&quot;]]:[[&quot;increasing&quot;,&quot;M-6,-6V6H6Z&quot;],[&quot;decreasing&quot;,&quot;M6,6V-6H-6Z&quot;]]);var o=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendwaterfall&quot;).data(a);o.enter().append(&quot;path&quot;).classed(&quot;legendwaterfall&quot;,!0).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),o.exit().remove(),o.each((function(t){var r=n.select(this),i=e[t[0]].marker,a=b(void 0,i.line,5,2);r.attr(&quot;d&quot;,t[1]).style(&quot;stroke-width&quot;,a+&quot;px&quot;).call(l.fill,i.color),a&amp;&amp;r.call(l.stroke,i.line.color)}))})).each((function(t){_(t,this,&quot;funnel&quot;)})).each((function(t){_(t,this)})).each((function(t){var r=t[0].trace,o=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendbox&quot;).data(r.visible&amp;&amp;i.traceIs(r,&quot;box-violin&quot;)?[t]:[]);o.enter().append(&quot;path&quot;).classed(&quot;legendbox&quot;,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,x),o.exit().remove(),o.each((function(){var t=n.select(this);if(&quot;all&quot;!==r.boxpoints&amp;&amp;&quot;all&quot;!==r.points||0!==l.opacity(r.fillcolor)||0!==l.opacity((r.line||{}).color)){var i=b(void 0,r.line,5,2);t.style(&quot;stroke-width&quot;,i+&quot;px&quot;).call(l.fill,r.fillcolor),i&amp;&amp;l.stroke(t,r.line.color)}else{var c=a.minExtend(r,{marker:{size:m?12:a.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:&quot;diameter&quot;}});o.call(s.pointStyle,c,e)}}))})).each((function(t){w(t,this,&quot;funnelarea&quot;)})).each((function(t){w(t,this,&quot;pie&quot;)})).each((function(t){var r,i,o=t[0],l=o.trace,f=l.visible&amp;&amp;l.fill&amp;&amp;&quot;none&quot;!==l.fill,h=u.hasLines(l),p=l.contours,g=!1,m=!1,y=c(l),x=y.colorscale,_=y.reversescale;if(p){var w=p.coloring;&quot;lines&quot;===w?g=!0:h=&quot;none&quot;===w||&quot;heatmap&quot;===w||p.showlines,&quot;constraint&quot;===p.type?f=&quot;=&quot;!==p._operation:&quot;fill&quot;!==w&amp;&amp;&quot;heatmap&quot;!==w||(m=!0)}var T=u.hasMarkers(l)||u.hasText(l),k=f||m,M=h||g,A=T||!k?&quot;M5,0&quot;:M?&quot;M5,-2&quot;:&quot;M5,-3&quot;,S=n.select(this),E=S.select(&quot;.legendfill&quot;).selectAll(&quot;path&quot;).data(f||m?[t]:[]);if(E.enter().append(&quot;path&quot;).classed(&quot;js-fill&quot;,!0),E.exit().remove(),E.attr(&quot;d&quot;,A+&quot;h&quot;+v+&quot;v6h-&quot;+v+&quot;z&quot;).call(f?s.fillGroupStyle:function(t){if(t.size()){var r=&quot;legendfill-&quot;+l.uid;s.gradient(t,e,r,d(_),x,&quot;fill&quot;)}}),h||g){var C=b(void 0,l.line,10,5);i=a.minExtend(l,{line:{width:C}}),r=[a.minExtend(o,{trace:i})]}var L=S.select(&quot;.legendlines&quot;).selectAll(&quot;path&quot;).data(h||g?[r]:[]);L.enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0),L.exit().remove(),L.attr(&quot;d&quot;,A+(g?&quot;l&quot;+v+&quot;,0.0001&quot;:&quot;h&quot;+v)).call(h?s.lineGroupStyle:function(t){if(t.size()){var r=&quot;legendline-&quot;+l.uid;s.lineGroupStyle(t),s.gradient(t,e,r,d(_),x,&quot;stroke&quot;)}})})).each((function(t){var r,i,o=t[0],l=o.trace,c=u.hasMarkers(l),f=u.hasText(l),h=u.hasLines(l);function p(t,e,r,n){var i=a.nestedProperty(l,t).get(),o=a.isArrayOrTypedArray(i)&amp;&amp;e?e(i):i;if(m&amp;&amp;o&amp;&amp;void 0!==n&amp;&amp;(o=n),r){if(o&lt;r[0])return r[0];if(o&gt;r[1])return r[1]}return o}function d(t){return o._distinct&amp;&amp;o.index&amp;&amp;t[o.index]?t[o.index]:t[0]}if(c||f||h){var g={},v={};if(c){g.mc=p(&quot;marker.color&quot;,d),g.mx=p(&quot;marker.symbol&quot;,d),g.mo=p(&quot;marker.opacity&quot;,a.mean,[.2,1]),g.mlc=p(&quot;marker.line.color&quot;,d),g.mlw=p(&quot;marker.line.width&quot;,a.mean,[0,5],2),v.marker={sizeref:1,sizemin:1,sizemode:&quot;diameter&quot;};var y=p(&quot;marker.size&quot;,a.mean,[2,16],12);g.ms=y,v.marker.size=y}h&amp;&amp;(v.line={width:p(&quot;line.width&quot;,d,[0,10],5)}),f&amp;&amp;(g.tx=&quot;Aa&quot;,g.tp=p(&quot;textposition&quot;,d),g.ts=10,g.tc=p(&quot;textfont.color&quot;,d),g.tf=p(&quot;textfont.family&quot;,d)),r=[a.minExtend(o,g)],(i=a.minExtend(l,v)).selectedpoints=null,i.texttemplate=null}var b=n.select(this).select(&quot;g.legendpoints&quot;),_=b.selectAll(&quot;path.scatterpts&quot;).data(c?r:[]);_.enter().insert(&quot;path&quot;,&quot;:first-child&quot;).classed(&quot;scatterpts&quot;,!0).attr(&quot;transform&quot;,x),_.exit().remove(),_.call(s.pointStyle,i,e),c&amp;&amp;(r[0].mrc=3);var w=b.selectAll(&quot;g.pointtext&quot;).data(f?r:[]);w.enter().append(&quot;g&quot;).classed(&quot;pointtext&quot;,!0).append(&quot;text&quot;).attr(&quot;transform&quot;,x),w.exit().remove(),w.selectAll(&quot;text&quot;).call(s.textPointStyle,i,e)})).each((function(t){var e=t[0].trace,r=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendcandle&quot;).data(e.visible&amp;&amp;&quot;candlestick&quot;===e.type?[t,t]:[]);r.enter().append(&quot;path&quot;).classed(&quot;legendcandle&quot;,!0).attr(&quot;d&quot;,(function(t,e){return e?&quot;M-15,0H-8M-8,6V-6H8Z&quot;:&quot;M15,0H8M8,-6V6H-8Z&quot;})).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?&quot;increasing&quot;:&quot;decreasing&quot;],o=b(void 0,a.line,5,2);i.style(&quot;stroke-width&quot;,o+&quot;px&quot;).call(l.fill,a.fillcolor),o&amp;&amp;l.stroke(i,a.line.color)}))})).each((function(t){var e=t[0].trace,r=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendohlc&quot;).data(e.visible&amp;&amp;&quot;ohlc&quot;===e.type?[t,t]:[]);r.enter().append(&quot;path&quot;).classed(&quot;legendohlc&quot;,!0).attr(&quot;d&quot;,(function(t,e){return e?&quot;M-15,0H0M-8,-6V0&quot;:&quot;M15,0H0M8,6V0&quot;})).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?&quot;increasing&quot;:&quot;decreasing&quot;],o=b(void 0,a.line,5,2);i.style(&quot;fill&quot;,&quot;none&quot;).call(s.dashLine,a.line.dash,o),o&amp;&amp;l.stroke(i,a.line.color)}))}))}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../../traces/pie/helpers&quot;:1166,&quot;../../traces/pie/style_one&quot;:1172,&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../color&quot;:643,&quot;../colorscale/helpers&quot;:654,&quot;../drawing&quot;:665,&quot;./constants&quot;:694,d3:169}],702:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../fonts/ploticon&quot;),s=t(&quot;../shapes/draw&quot;).eraseActiveShape,l=t(&quot;../../lib&quot;),c=l._,u=e.exports={};function f(t,e){var r,i,o=e.currentTarget,s=o.getAttribute(&quot;data-attr&quot;),l=o.getAttribute(&quot;data-val&quot;)||!0,c=t._fullLayout,u={},f=a.list(t,null,!0),h=c._cartesianSpikesEnabled;if(&quot;zoom&quot;===s){var p,d=&quot;in&quot;===l?.5:2,g=(1+d)/2,m=(1-d)/2;for(i=0;i&lt;f.length;i++)if(!(r=f[i]).fixedrange)if(p=r._name,&quot;auto&quot;===l)u[p+&quot;.autorange&quot;]=!0;else if(&quot;reset&quot;===l){if(void 0===r._rangeInitial)u[p+&quot;.autorange&quot;]=!0;else{var v=r._rangeInitial.slice();u[p+&quot;.range[0]&quot;]=v[0],u[p+&quot;.range[1]&quot;]=v[1]}void 0!==r._showSpikeInitial&amp;&amp;(u[p+&quot;.showspikes&quot;]=r._showSpikeInitial,&quot;on&quot;!==h||r._showSpikeInitial||(h=&quot;off&quot;))}else{var y=[r.r2l(r.range[0]),r.r2l(r.range[1])],x=[g*y[0]+m*y[1],g*y[1]+m*y[0]];u[p+&quot;.range[0]&quot;]=r.l2r(x[0]),u[p+&quot;.range[1]&quot;]=r.l2r(x[1])}}else&quot;hovermode&quot;!==s||&quot;x&quot;!==l&amp;&amp;&quot;y&quot;!==l||(l=c._isHoriz?&quot;y&quot;:&quot;x&quot;,o.setAttribute(&quot;data-val&quot;,l)),u[s]=l;c._cartesianSpikesEnabled=h,n.call(&quot;_guiRelayout&quot;,t,u)}function h(t,e){for(var r=e.currentTarget,i=r.getAttribute(&quot;data-attr&quot;),a=r.getAttribute(&quot;data-val&quot;)||!0,o=t._fullLayout._subplots.gl3d||[],s={},l=i.split(&quot;.&quot;),c=0;c&lt;o.length;c++)s[o[c]+&quot;.&quot;+l[1]]=a;var u=&quot;pan&quot;===a?a:&quot;zoom&quot;;s.dragmode=u,n.call(&quot;_guiRelayout&quot;,t,s)}function p(t,e){for(var r=e.currentTarget.getAttribute(&quot;data-attr&quot;),i=&quot;resetLastSave&quot;===r,a=&quot;resetDefault&quot;===r,o=t._fullLayout,s=o._subplots.gl3d||[],l={},c=0;c&lt;s.length;c++){var u,f=s[c],h=f+&quot;.camera&quot;,p=f+&quot;.aspectratio&quot;,d=f+&quot;.aspectmode&quot;,g=o[f]._scene;i?(l[h+&quot;.up&quot;]=g.viewInitial.up,l[h+&quot;.eye&quot;]=g.viewInitial.eye,l[h+&quot;.center&quot;]=g.viewInitial.center,u=!0):a&amp;&amp;(l[h+&quot;.up&quot;]=null,l[h+&quot;.eye&quot;]=null,l[h+&quot;.center&quot;]=null,u=!0),u&amp;&amp;(l[p+&quot;.x&quot;]=g.viewInitial.aspectratio.x,l[p+&quot;.y&quot;]=g.viewInitial.aspectratio.y,l[p+&quot;.z&quot;]=g.viewInitial.aspectratio.z,l[d]=g.viewInitial.aspectmode)}n.call(&quot;_guiRelayout&quot;,t,l)}function d(t,e){var r=e.currentTarget,n=r._previousVal,i=t._fullLayout,a=i._subplots.gl3d||[],o=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;],s={},l={};if(n)l=n,r._previousVal=null;else{for(var c=0;c&lt;a.length;c++){var u=a[c],f=i[u],h=u+&quot;.hovermode&quot;;s[h]=f.hovermode,l[h]=!1;for(var p=0;p&lt;3;p++){var d=o[p],g=u+&quot;.&quot;+d+&quot;.showspikes&quot;;l[g]=!1,s[g]=f[d].showspikes}}r._previousVal=s}return l}function g(t,e){for(var r=e.currentTarget,i=r.getAttribute(&quot;data-attr&quot;),a=r.getAttribute(&quot;data-val&quot;)||!0,o=t._fullLayout,s=o._subplots.geo||[],l=0;l&lt;s.length;l++){var c=s[l],u=o[c];if(&quot;zoom&quot;===i){var f=u.projection.scale,h=&quot;in&quot;===a?2*f:.5*f;n.call(&quot;_guiRelayout&quot;,t,c+&quot;.projection.scale&quot;,h)}}&quot;reset&quot;===i&amp;&amp;x(t,&quot;geo&quot;)}function m(t){var e=t._fullLayout;return!e.hovermode&amp;&amp;(e._has(&quot;cartesian&quot;)?e._isHoriz?&quot;y&quot;:&quot;x&quot;:&quot;closest&quot;)}function v(t){var e=m(t);n.call(&quot;_guiRelayout&quot;,t,&quot;hovermode&quot;,e)}function y(t,e){for(var r=e.currentTarget.getAttribute(&quot;data-val&quot;),i=t._fullLayout,a=i._subplots.mapbox||[],o={},s=0;s&lt;a.length;s++){var l=a[s],c=i[l].zoom,u=&quot;in&quot;===r?1.05*c:c/1.05;o[l+&quot;.zoom&quot;]=u}n.call(&quot;_guiRelayout&quot;,t,o)}function x(t,e){for(var r=t._fullLayout,i=r._subplots[e]||[],a={},o=0;o&lt;i.length;o++)for(var s=i[o],l=r[s]._subplot.viewInitial,c=Object.keys(l),u=0;u&lt;c.length;u++){var f=c[u];a[s+&quot;.&quot;+f]=l[f]}n.call(&quot;_guiRelayout&quot;,t,a)}u.toImage={name:&quot;toImage&quot;,title:function(t){var e=(t._context.toImageButtonOptions||{}).format||&quot;png&quot;;return c(t,&quot;png&quot;===e?&quot;Download plot as a png&quot;:&quot;Download plot&quot;)},icon:o.camera,click:function(t){var e=t._context.toImageButtonOptions,r={format:e.format||&quot;png&quot;};l.notifier(c(t,&quot;Taking snapshot - this may take a few seconds&quot;),&quot;long&quot;),&quot;svg&quot;!==r.format&amp;&amp;l.isIE()&amp;&amp;(l.notifier(c(t,&quot;IE only supports svg.  Changing format to svg.&quot;),&quot;long&quot;),r.format=&quot;svg&quot;),[&quot;filename&quot;,&quot;width&quot;,&quot;height&quot;,&quot;scale&quot;].forEach((function(t){t in e&amp;&amp;(r[t]=e[t])})),n.call(&quot;downloadImage&quot;,t,r).then((function(e){l.notifier(c(t,&quot;Snapshot succeeded&quot;)+&quot; - &quot;+e,&quot;long&quot;)})).catch((function(){l.notifier(c(t,&quot;Sorry, there was a problem downloading your snapshot!&quot;),&quot;long&quot;)}))}},u.sendDataToCloud={name:&quot;sendDataToCloud&quot;,title:function(t){return c(t,&quot;Edit in Chart Studio&quot;)},icon:o.disk,click:function(t){i.sendDataToCloud(t)}},u.editInChartStudio={name:&quot;editInChartStudio&quot;,title:function(t){return c(t,&quot;Edit in Chart Studio&quot;)},icon:o.pencil,click:function(t){i.sendDataToCloud(t)}},u.zoom2d={name:&quot;zoom2d&quot;,title:function(t){return c(t,&quot;Zoom&quot;)},attr:&quot;dragmode&quot;,val:&quot;zoom&quot;,icon:o.zoombox,click:f},u.pan2d={name:&quot;pan2d&quot;,title:function(t){return c(t,&quot;Pan&quot;)},attr:&quot;dragmode&quot;,val:&quot;pan&quot;,icon:o.pan,click:f},u.select2d={name:&quot;select2d&quot;,title:function(t){return c(t,&quot;Box Select&quot;)},attr:&quot;dragmode&quot;,val:&quot;select&quot;,icon:o.selectbox,click:f},u.lasso2d={name:&quot;lasso2d&quot;,title:function(t){return c(t,&quot;Lasso Select&quot;)},attr:&quot;dragmode&quot;,val:&quot;lasso&quot;,icon:o.lasso,click:f},u.drawclosedpath={name:&quot;drawclosedpath&quot;,title:function(t){return c(t,&quot;Draw closed freeform&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawclosedpath&quot;,icon:o.drawclosedpath,click:f},u.drawopenpath={name:&quot;drawopenpath&quot;,title:function(t){return c(t,&quot;Draw open freeform&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawopenpath&quot;,icon:o.drawopenpath,click:f},u.drawline={name:&quot;drawline&quot;,title:function(t){return c(t,&quot;Draw line&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawline&quot;,icon:o.drawline,click:f},u.drawrect={name:&quot;drawrect&quot;,title:function(t){return c(t,&quot;Draw rectangle&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawrect&quot;,icon:o.drawrect,click:f},u.drawcircle={name:&quot;drawcircle&quot;,title:function(t){return c(t,&quot;Draw circle&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawcircle&quot;,icon:o.drawcircle,click:f},u.eraseshape={name:&quot;eraseshape&quot;,title:function(t){return c(t,&quot;Erase active shape&quot;)},icon:o.eraseshape,click:s},u.zoomIn2d={name:&quot;zoomIn2d&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:f},u.zoomOut2d={name:&quot;zoomOut2d&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:f},u.autoScale2d={name:&quot;autoScale2d&quot;,title:function(t){return c(t,&quot;Autoscale&quot;)},attr:&quot;zoom&quot;,val:&quot;auto&quot;,icon:o.autoscale,click:f},u.resetScale2d={name:&quot;resetScale2d&quot;,title:function(t){return c(t,&quot;Reset axes&quot;)},attr:&quot;zoom&quot;,val:&quot;reset&quot;,icon:o.home,click:f},u.hoverClosestCartesian={name:&quot;hoverClosestCartesian&quot;,title:function(t){return c(t,&quot;Show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:&quot;closest&quot;,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:f},u.hoverCompareCartesian={name:&quot;hoverCompareCartesian&quot;,title:function(t){return c(t,&quot;Compare data on hover&quot;)},attr:&quot;hovermode&quot;,val:function(t){return t._fullLayout._isHoriz?&quot;y&quot;:&quot;x&quot;},icon:o.tooltip_compare,gravity:&quot;ne&quot;,click:f},u.zoom3d={name:&quot;zoom3d&quot;,title:function(t){return c(t,&quot;Zoom&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;zoom&quot;,icon:o.zoombox,click:h},u.pan3d={name:&quot;pan3d&quot;,title:function(t){return c(t,&quot;Pan&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;pan&quot;,icon:o.pan,click:h},u.orbitRotation={name:&quot;orbitRotation&quot;,title:function(t){return c(t,&quot;Orbital rotation&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;orbit&quot;,icon:o[&quot;3d_rotate&quot;],click:h},u.tableRotation={name:&quot;tableRotation&quot;,title:function(t){return c(t,&quot;Turntable rotation&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;turntable&quot;,icon:o[&quot;z-axis&quot;],click:h},u.resetCameraDefault3d={name:&quot;resetCameraDefault3d&quot;,title:function(t){return c(t,&quot;Reset camera to default&quot;)},attr:&quot;resetDefault&quot;,icon:o.home,click:p},u.resetCameraLastSave3d={name:&quot;resetCameraLastSave3d&quot;,title:function(t){return c(t,&quot;Reset camera to last save&quot;)},attr:&quot;resetLastSave&quot;,icon:o.movie,click:p},u.hoverClosest3d={name:&quot;hoverClosest3d&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:function(t,e){var r=d(t,e);n.call(&quot;_guiRelayout&quot;,t,r)}},u.zoomInGeo={name:&quot;zoomInGeo&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:g},u.zoomOutGeo={name:&quot;zoomOutGeo&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:g},u.resetGeo={name:&quot;resetGeo&quot;,title:function(t){return c(t,&quot;Reset&quot;)},attr:&quot;reset&quot;,val:null,icon:o.autoscale,click:g},u.hoverClosestGeo={name:&quot;hoverClosestGeo&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.hoverClosestGl2d={name:&quot;hoverClosestGl2d&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.hoverClosestPie={name:&quot;hoverClosestPie&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:&quot;closest&quot;,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.resetViewSankey={name:&quot;resetSankeyGroup&quot;,title:function(t){return c(t,&quot;Reset view&quot;)},icon:o.home,click:function(t){for(var e={&quot;node.groups&quot;:[],&quot;node.x&quot;:[],&quot;node.y&quot;:[]},r=0;r&lt;t._fullData.length;r++){var i=t._fullData[r]._viewInitial;e[&quot;node.groups&quot;].push(i.node.groups.slice()),e[&quot;node.x&quot;].push(i.node.x.slice()),e[&quot;node.y&quot;].push(i.node.y.slice())}n.call(&quot;restyle&quot;,t,e)}},u.toggleHover={name:&quot;toggleHover&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:function(t,e){var r=d(t,e);r.hovermode=m(t),n.call(&quot;_guiRelayout&quot;,t,r)}},u.resetViews={name:&quot;resetViews&quot;,title:function(t){return c(t,&quot;Reset views&quot;)},icon:o.home,click:function(t,e){var r=e.currentTarget;r.setAttribute(&quot;data-attr&quot;,&quot;zoom&quot;),r.setAttribute(&quot;data-val&quot;,&quot;reset&quot;),f(t,e),r.setAttribute(&quot;data-attr&quot;,&quot;resetLastSave&quot;),p(t,e),x(t,&quot;geo&quot;),x(t,&quot;mapbox&quot;)}},u.toggleSpikelines={name:&quot;toggleSpikelines&quot;,title:function(t){return c(t,&quot;Toggle Spike Lines&quot;)},icon:o.spikeline,attr:&quot;_cartesianSpikesEnabled&quot;,val:&quot;on&quot;,click:function(t){var e=t._fullLayout,r=e._cartesianSpikesEnabled;e._cartesianSpikesEnabled=&quot;on&quot;===r?&quot;off&quot;:&quot;on&quot;,n.call(&quot;_guiRelayout&quot;,t,function(t){for(var e=&quot;on&quot;===t._fullLayout._cartesianSpikesEnabled,r=a.list(t,null,!0),n={},i=0;i&lt;r.length;i++){var o=r[i];n[o._name+&quot;.showspikes&quot;]=!!e||o._showSpikeInitial}return n}(t))}},u.resetViewMapbox={name:&quot;resetViewMapbox&quot;,title:function(t){return c(t,&quot;Reset view&quot;)},attr:&quot;reset&quot;,icon:o.home,click:function(t){x(t,&quot;mapbox&quot;)}},u.zoomInMapbox={name:&quot;zoomInMapbox&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:y},u.zoomOutMapbox={name:&quot;zoomOutMapbox&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:y}},{&quot;../../fonts/ploticon&quot;:757,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../shapes/draw&quot;:724}],703:[function(t,e,r){&quot;use strict&quot;;r.manage=t(&quot;./manage&quot;)},{&quot;./manage&quot;:704}],704:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;),i=t(&quot;../../traces/scatter/subtypes&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../fx/helpers&quot;).isUnifiedHover,s=t(&quot;./modebar&quot;),l=t(&quot;./buttons&quot;);e.exports=function(t){var e=t._fullLayout,r=t._context,u=e._modeBar;if(r.displayModeBar||r.watermark){if(!Array.isArray(r.modeBarButtonsToRemove))throw new Error([&quot;*modeBarButtonsToRemove* configuration options&quot;,&quot;must be an array.&quot;].join(&quot; &quot;));if(!Array.isArray(r.modeBarButtonsToAdd))throw new Error([&quot;*modeBarButtonsToAdd* configuration options&quot;,&quot;must be an array.&quot;].join(&quot; &quot;));var f,h=r.modeBarButtons;f=Array.isArray(h)&amp;&amp;h.length?function(t){for(var e=0;e&lt;t.length;e++)for(var r=t[e],n=0;n&lt;r.length;n++){var i=r[n];if(&quot;string&quot;==typeof i){if(void 0===l[i])throw new Error([&quot;*modeBarButtons* configuration options&quot;,&quot;invalid button name&quot;].join(&quot; &quot;));t[e][n]=l[i]}}return t}(h):!r.displayModeBar&amp;&amp;r.watermark?[]:function(t){var e=t._fullLayout,r=t._fullData,s=t._context,u=s.modeBarButtonsToRemove,f=s.modeBarButtonsToAdd,h=e._has(&quot;cartesian&quot;),p=e._has(&quot;gl3d&quot;),d=e._has(&quot;geo&quot;),g=e._has(&quot;pie&quot;),m=e._has(&quot;funnelarea&quot;),v=e._has(&quot;gl2d&quot;),y=e._has(&quot;ternary&quot;),x=e._has(&quot;mapbox&quot;),b=e._has(&quot;polar&quot;),_=e._has(&quot;sankey&quot;),w=function(t){for(var e=n.list({_fullLayout:t},null,!0),r=0;r&lt;e.length;r++)if(!e[r].fixedrange)return!1;return!0}(e),T=o(e.hovermode),k=[];function M(t){if(t.length){for(var e=[],r=0;r&lt;t.length;r++){var n=t[r];-1===u.indexOf(n)&amp;&amp;e.push(l[n])}k.push(e)}}var A=[&quot;toImage&quot;];s.showEditInChartStudio?A.push(&quot;editInChartStudio&quot;):s.showSendToCloud&amp;&amp;A.push(&quot;sendDataToCloud&quot;);M(A);var S=[],E=[],C=[],L=[];(h||v||g||m||y)+d+p+x+b&gt;1?(E=[&quot;toggleHover&quot;],C=[&quot;resetViews&quot;]):d?(S=[&quot;zoomInGeo&quot;,&quot;zoomOutGeo&quot;],E=[&quot;hoverClosestGeo&quot;],C=[&quot;resetGeo&quot;]):p?(E=[&quot;hoverClosest3d&quot;],C=[&quot;resetCameraDefault3d&quot;,&quot;resetCameraLastSave3d&quot;]):x?(S=[&quot;zoomInMapbox&quot;,&quot;zoomOutMapbox&quot;],E=[&quot;toggleHover&quot;],C=[&quot;resetViewMapbox&quot;]):v?E=[&quot;hoverClosestGl2d&quot;]:g?E=[&quot;hoverClosestPie&quot;]:_?(E=[&quot;hoverClosestCartesian&quot;,&quot;hoverCompareCartesian&quot;],C=[&quot;resetViewSankey&quot;]):E=[&quot;toggleHover&quot;];h&amp;&amp;(E=[&quot;toggleSpikelines&quot;,&quot;hoverClosestCartesian&quot;,&quot;hoverCompareCartesian&quot;]);(function(t){for(var e=0;e&lt;t.length;e++)if(!a.traceIs(t[e],&quot;noHover&quot;))return!1;return!0}(r)||T)&amp;&amp;(E=[]);!h&amp;&amp;!v||w||(S=[&quot;zoomIn2d&quot;,&quot;zoomOut2d&quot;,&quot;autoScale2d&quot;],&quot;resetViews&quot;!==C[0]&amp;&amp;(C=[&quot;resetScale2d&quot;]));p?L=[&quot;zoom3d&quot;,&quot;pan3d&quot;,&quot;orbitRotation&quot;,&quot;tableRotation&quot;]:(h||v)&amp;&amp;!w||y?L=[&quot;zoom2d&quot;,&quot;pan2d&quot;]:x||d?L=[&quot;pan2d&quot;]:b&amp;&amp;(L=[&quot;zoom2d&quot;]);(function(t){for(var e=!1,r=0;r&lt;t.length&amp;&amp;!e;r++){var n=t[r];n._module&amp;&amp;n._module.selectPoints&amp;&amp;(a.traceIs(n,&quot;scatter-like&quot;)?(i.hasMarkers(n)||i.hasText(n))&amp;&amp;(e=!0):a.traceIs(n,&quot;box-violin&quot;)&amp;&amp;&quot;all&quot;!==n.boxpoints&amp;&amp;&quot;all&quot;!==n.points||(e=!0))}return e})(r)&amp;&amp;L.push(&quot;select2d&quot;,&quot;lasso2d&quot;);if(Array.isArray(f)){for(var I=[],P=0;P&lt;f.length;P++){var z=f[P];&quot;string&quot;==typeof z?-1!==c.indexOf(z)&amp;&amp;(e._has(&quot;mapbox&quot;)||e._has(&quot;cartesian&quot;))&amp;&amp;L.push(z):I.push(z)}f=I}return M(L),M(S.concat(C)),M(E),function(t,e){if(e.length)if(Array.isArray(e[0]))for(var r=0;r&lt;e.length;r++)t.push(e[r]);else t.push(e);return t}(k,f)}(t),u?u.update(t,f):e._modeBar=s(t,f)}else u&amp;&amp;(u.destroy(),delete e._modeBar)};var c=[&quot;drawline&quot;,&quot;drawopenpath&quot;,&quot;drawclosedpath&quot;,&quot;drawcircle&quot;,&quot;drawrect&quot;,&quot;eraseshape&quot;]},{&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../registry&quot;:911,&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../fx/helpers&quot;:679,&quot;./buttons&quot;:702,&quot;./modebar&quot;:705}],705:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../fonts/ploticon&quot;),s=new DOMParser;function l(t){this.container=t.container,this.element=document.createElement(&quot;div&quot;),this.update(t.graphInfo,t.buttons),this.container.appendChild(this.element)}var c=l.prototype;c.update=function(t,e){this.graphInfo=t;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i=&quot;modebar-&quot;+n._uid;this.element.setAttribute(&quot;id&quot;,i),this._uid=i,this.element.className=&quot;modebar&quot;,&quot;hover&quot;===r.displayModeBar&amp;&amp;(this.element.className+=&quot; modebar--hover ease-bg&quot;),&quot;v&quot;===n.modebar.orientation&amp;&amp;(this.element.className+=&quot; vertical&quot;,e=e.reverse());var o=n.modebar,s=&quot;hover&quot;===r.displayModeBar?&quot;.js-plotly-plot .plotly:hover &quot;:&quot;&quot;;a.deleteRelatedStyleRule(i),a.addRelatedStyleRule(i,s+&quot;#&quot;+i+&quot; .modebar-group&quot;,&quot;background-color: &quot;+o.bgcolor),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn .icon path&quot;,&quot;fill: &quot;+o.color),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn:hover .icon path&quot;,&quot;fill: &quot;+o.activecolor),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn.active .icon path&quot;,&quot;fill: &quot;+o.activecolor);var l=!this.hasButtons(e),c=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(l||c||u)&amp;&amp;(this.removeAllButtons(),this.updateButtons(e),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&amp;&amp;(f.className=f.className+&quot; watermark&quot;),&quot;v&quot;===n.modebar.orientation?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton()},c.updateButtons=function(t){var e=this;this.buttons=t,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(t){var r=e.createGroup();t.forEach((function(t){var n=t.name;if(!n)throw new Error(&quot;must provide button 'name' in button config&quot;);if(-1!==e.buttonsNames.indexOf(n))throw new Error(&quot;button name '&quot;+n+&quot;' is taken&quot;);e.buttonsNames.push(n);var i=e.createButton(t);e.buttonElements.push(i),r.appendChild(i)})),e.element.appendChild(r)}))},c.createGroup=function(){var t=document.createElement(&quot;div&quot;);return t.className=&quot;modebar-group&quot;,t},c.createButton=function(t){var e=this,r=document.createElement(&quot;a&quot;);r.setAttribute(&quot;rel&quot;,&quot;tooltip&quot;),r.className=&quot;modebar-btn&quot;;var i=t.title;void 0===i?i=t.name:&quot;function&quot;==typeof i&amp;&amp;(i=i(this.graphInfo)),(i||0===i)&amp;&amp;r.setAttribute(&quot;data-title&quot;,i),void 0!==t.attr&amp;&amp;r.setAttribute(&quot;data-attr&quot;,t.attr);var a=t.val;if(void 0!==a&amp;&amp;(&quot;function&quot;==typeof a&amp;&amp;(a=a(this.graphInfo)),r.setAttribute(&quot;data-val&quot;,a)),&quot;function&quot;!=typeof t.click)throw new Error(&quot;must provide button 'click' function in button config&quot;);r.addEventListener(&quot;click&quot;,(function(r){t.click(e.graphInfo,r),e.updateActiveButton(r.currentTarget)})),r.setAttribute(&quot;data-toggle&quot;,t.toggle||!1),t.toggle&amp;&amp;n.select(r).classed(&quot;active&quot;,!0);var s=t.icon;return&quot;function&quot;==typeof s?r.appendChild(s()):r.appendChild(this.createIcon(s||o.question)),r.setAttribute(&quot;data-gravity&quot;,t.gravity||&quot;n&quot;),r},c.createIcon=function(t){var e,r=i(t.height)?Number(t.height):t.ascent-t.descent,n=&quot;http://www.w3.org/2000/svg&quot;;if(t.path){(e=document.createElementNS(n,&quot;svg&quot;)).setAttribute(&quot;viewBox&quot;,[0,0,t.width,r].join(&quot; &quot;)),e.setAttribute(&quot;class&quot;,&quot;icon&quot;);var a=document.createElementNS(n,&quot;path&quot;);a.setAttribute(&quot;d&quot;,t.path),t.transform?a.setAttribute(&quot;transform&quot;,t.transform):void 0!==t.ascent&amp;&amp;a.setAttribute(&quot;transform&quot;,&quot;matrix(1 0 0 -1 0 &quot;+t.ascent+&quot;)&quot;),e.appendChild(a)}t.svg&amp;&amp;(e=s.parseFromString(t.svg,&quot;application/xml&quot;).childNodes[0]);return e.setAttribute(&quot;height&quot;,&quot;1em&quot;),e.setAttribute(&quot;width&quot;,&quot;1em&quot;),e},c.updateActiveButton=function(t){var e=this.graphInfo._fullLayout,r=void 0!==t?t.getAttribute(&quot;data-attr&quot;):null;this.buttonElements.forEach((function(t){var i=t.getAttribute(&quot;data-val&quot;)||!0,o=t.getAttribute(&quot;data-attr&quot;),s=&quot;true&quot;===t.getAttribute(&quot;data-toggle&quot;),l=n.select(t);if(s)o===r&amp;&amp;l.classed(&quot;active&quot;,!l.classed(&quot;active&quot;));else{var c=null===o?o:a.nestedProperty(e,o).get();l.classed(&quot;active&quot;,c===i)}}))},c.hasButtons=function(t){var e=this.buttons;if(!e)return!1;if(t.length!==e.length)return!1;for(var r=0;r&lt;t.length;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n&lt;t[r].length;n++)if(t[r][n].name!==e[r][n].name)return!1}return!0},c.getLogo=function(){var t=this.createGroup(),e=document.createElement(&quot;a&quot;);return e.href=&quot;https://plotly.com/&quot;,e.target=&quot;_blank&quot;,e.setAttribute(&quot;data-title&quot;,a._(this.graphInfo,&quot;Produced with Plotly&quot;)),e.className=&quot;modebar-btn plotlyjsicon modebar-btn--logo&quot;,e.appendChild(this.createIcon(o.newplotlylogo)),t.appendChild(e),t},c.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},c.destroy=function(){a.removeElement(this.container.querySelector(&quot;.modebar&quot;)),a.deleteRelatedStyleRule(this._uid)},e.exports=function(t,e){var r=t._fullLayout,i=new l({graphInfo:t,container:r._modebardiv.node(),buttons:e});return r._privateplot&amp;&amp;n.select(i.element).append(&quot;span&quot;).classed(&quot;badge-private float--left&quot;,!0).text(&quot;PRIVATE&quot;),i}},{&quot;../../fonts/ploticon&quot;:757,&quot;../../lib&quot;:778,d3:169,&quot;fast-isnumeric&quot;:241}],706:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;),a=(0,t(&quot;../../plot_api/plot_template&quot;).templatedArray)(&quot;button&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},step:{valType:&quot;enumerated&quot;,values:[&quot;month&quot;,&quot;year&quot;,&quot;day&quot;,&quot;hour&quot;,&quot;minute&quot;,&quot;second&quot;,&quot;all&quot;],dflt:&quot;month&quot;,editType:&quot;plot&quot;},stepmode:{valType:&quot;enumerated&quot;,values:[&quot;backward&quot;,&quot;todate&quot;],dflt:&quot;backward&quot;,editType:&quot;plot&quot;},count:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},label:{valType:&quot;string&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;});e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},buttons:a,x:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;plot&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;plot&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;plot&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;bottom&quot;,editType:&quot;plot&quot;},font:n({editType:&quot;plot&quot;}),bgcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;plot&quot;},activecolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;plot&quot;}},{&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/font_attributes&quot;:856,&quot;../color/attributes&quot;:642}],707:[function(t,e,r){&quot;use strict&quot;;e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},{}],708:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;../../plots/array_container_defaults&quot;),s=t(&quot;./attributes&quot;),l=t(&quot;./constants&quot;);function c(t,e,r,i){var a=i.calendar;function o(r,i){return n.coerce(t,e,s.buttons,r,i)}if(o(&quot;visible&quot;)){var l=o(&quot;step&quot;);&quot;all&quot;!==l&amp;&amp;(!a||&quot;gregorian&quot;===a||&quot;month&quot;!==l&amp;&amp;&quot;year&quot;!==l?o(&quot;stepmode&quot;):e.stepmode=&quot;backward&quot;,o(&quot;count&quot;)),o(&quot;label&quot;)}}e.exports=function(t,e,r,u,f){var h=t.rangeselector||{},p=a.newContainer(e,&quot;rangeselector&quot;);function d(t,e){return n.coerce(h,p,s,t,e)}if(d(&quot;visible&quot;,o(h,p,{name:&quot;buttons&quot;,handleItemDefaults:c,calendar:f}).length&gt;0)){var g=function(t,e,r){for(var n=r.filter((function(r){return e[r].anchor===t._id})),i=0,a=0;a&lt;n.length;a++){var o=e[n[a]].domain;o&amp;&amp;(i=Math.max(o[1],i))}return[t.domain[0],i+l.yPad]}(e,r,u);d(&quot;x&quot;,g[0]),d(&quot;y&quot;,g[1]),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),d(&quot;xanchor&quot;),d(&quot;yanchor&quot;),n.coerceFont(d,&quot;font&quot;,r.font);var m=d(&quot;bgcolor&quot;);d(&quot;activecolor&quot;,i.contrast(m,l.lightAmount,l.darkAmount)),d(&quot;bordercolor&quot;),d(&quot;borderwidth&quot;)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/array_container_defaults&quot;:823,&quot;../color&quot;:643,&quot;./attributes&quot;:706,&quot;./constants&quot;:707}],709:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../color&quot;),s=t(&quot;../drawing&quot;),l=t(&quot;../../lib&quot;),c=l.strTranslate,u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../plots/cartesian/axis_ids&quot;),h=t(&quot;../../constants/alignment&quot;),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR,m=t(&quot;./constants&quot;),v=t(&quot;./get_update_object&quot;);function y(t){return t._id}function x(t,e,r){var n=l.ensureSingle(t,&quot;rect&quot;,&quot;selector-rect&quot;,(function(t){t.attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)}));n.attr({rx:m.rx,ry:m.ry}),n.call(o.stroke,e.bordercolor).call(o.fill,function(t,e){return e._isActive||e._isHovered?t.activecolor:t.bgcolor}(e,r)).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;)}function b(t,e,r,n){l.ensureSingle(t,&quot;text&quot;,&quot;selector-text&quot;,(function(t){t.attr(&quot;text-anchor&quot;,&quot;middle&quot;)})).call(s.font,e.font).text(function(t,e){if(t.label)return e?l.templateString(t.label,e):t.label;return&quot;all&quot;===t.step?&quot;all&quot;:t.count+t.step.charAt(0)}(r,n._fullLayout._meta)).call((function(t){u.convertToTspans(t,n)}))}e.exports=function(t){var e=t._fullLayout._infolayer.selectAll(&quot;.rangeselector&quot;).data(function(t){for(var e=f.list(t,&quot;x&quot;,!0),r=[],n=0;n&lt;e.length;n++){var i=e[n];i.rangeselector&amp;&amp;i.rangeselector.visible&amp;&amp;r.push(i)}return r}(t),y);e.enter().append(&quot;g&quot;).classed(&quot;rangeselector&quot;,!0),e.exit().remove(),e.style({cursor:&quot;pointer&quot;,&quot;pointer-events&quot;:&quot;all&quot;}),e.each((function(e){var r=n.select(this),o=e,f=o.rangeselector,h=r.selectAll(&quot;g.button&quot;).data(l.filterVisible(f.buttons));h.enter().append(&quot;g&quot;).classed(&quot;button&quot;,!0),h.exit().remove(),h.each((function(e){var r=n.select(this),a=v(o,e);e._isActive=function(t,e,r){if(&quot;all&quot;===e.step)return!0===t.autorange;var n=Object.keys(r);return t.range[0]===r[n[0]]&amp;&amp;t.range[1]===r[n[1]]}(o,e,a),r.call(x,f,e),r.call(b,f,e,t),r.on(&quot;click&quot;,(function(){t._dragged||i.call(&quot;_guiRelayout&quot;,t,a)})),r.on(&quot;mouseover&quot;,(function(){e._isHovered=!0,r.call(x,f,e)})),r.on(&quot;mouseout&quot;,(function(){e._isHovered=!1,r.call(x,f,e)}))})),function(t,e,r,i,o){var f=0,h=0,v=r.borderwidth;e.each((function(){var t=n.select(this).select(&quot;.selector-text&quot;),e=r.font.size*p,i=Math.max(e*u.lineCount(t),16)+3;h=Math.max(h,i)})),e.each((function(){var t=n.select(this),e=t.select(&quot;.selector-rect&quot;),i=t.select(&quot;.selector-text&quot;),a=i.node()&amp;&amp;s.bBox(i.node()).width,o=r.font.size*p,l=u.lineCount(i),d=Math.max(a+10,m.minButtonWidth);t.attr(&quot;transform&quot;,c(v+f,v)),e.attr({x:0,y:0,width:d,height:h}),u.positionText(i,d/2,h/2-(l-1)*o/2+3),f+=d+5}));var y=t._fullLayout._size,x=y.l+y.w*r.x,b=y.t+y.h*(1-r.y),_=&quot;left&quot;;l.isRightAnchor(r)&amp;&amp;(x-=f,_=&quot;right&quot;);l.isCenterAnchor(r)&amp;&amp;(x-=f/2,_=&quot;center&quot;);var w=&quot;top&quot;;l.isBottomAnchor(r)&amp;&amp;(b-=h,w=&quot;bottom&quot;);l.isMiddleAnchor(r)&amp;&amp;(b-=h/2,w=&quot;middle&quot;);f=Math.ceil(f),h=Math.ceil(h),x=Math.round(x),b=Math.round(b),a.autoMargin(t,i+&quot;-range-selector&quot;,{x:r.x,y:r.y,l:f*d[_],r:f*g[_],b:h*g[w],t:h*d[w]}),o.attr(&quot;transform&quot;,c(x,b))}(t,h,f,o._name,r)}))}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../drawing&quot;:665,&quot;./constants&quot;:707,&quot;./get_update_object&quot;:710,d3:169}],710:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t,e){var r=t._name,i={};if(&quot;all&quot;===e.step)i[r+&quot;.autorange&quot;]=!0;else{var a=function(t,e){var r,i=t.range,a=new Date(t.r2l(i[1])),o=e.step,s=e.count;switch(e.stepmode){case&quot;backward&quot;:r=t.l2r(+n.time[o].utc.offset(a,-s));break;case&quot;todate&quot;:var l=n.time[o].utc.offset(a,-s);r=t.l2r(+n.time[o].utc.ceil(l))}var c=i[1];return[r,c]}(t,e);i[r+&quot;.range[0]&quot;]=a[0],i[r+&quot;.range[1]&quot;]=a[1]}return i}},{d3:169}],711:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;rangeselector&quot;,schema:{subplots:{xaxis:{rangeselector:t(&quot;./attributes&quot;)}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;)}},{&quot;./attributes&quot;:706,&quot;./defaults&quot;:708,&quot;./draw&quot;:709}],712:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../color/attributes&quot;);e.exports={bgcolor:{valType:&quot;color&quot;,dflt:n.background,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:n.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;integer&quot;,dflt:0,min:0,editType:&quot;plot&quot;},autorange:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:{&quot;range[0]&quot;:void 0,&quot;range[1]&quot;:void 0}},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;calc&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],editType:&quot;calc&quot;,impliedEdits:{autorange:!1}},thickness:{valType:&quot;number&quot;,dflt:.15,min:0,max:1,editType:&quot;plot&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;}},{&quot;../color/attributes&quot;:642}],713:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;).list,i=t(&quot;../../plots/cartesian/autorange&quot;).getAutoRange,a=t(&quot;./constants&quot;);e.exports=function(t){for(var e=n(t,&quot;x&quot;,!0),r=0;r&lt;e.length;r++){var o=e[r],s=o[a.name];s&amp;&amp;s.visible&amp;&amp;s.autorange&amp;&amp;(s._input.autorange=!0,s._input.range=s.range=i(t,o))}}},{&quot;../../plots/cartesian/autorange&quot;:827,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;./constants&quot;:714}],714:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;rangeslider&quot;,containerClassName:&quot;rangeslider-container&quot;,bgClassName:&quot;rangeslider-bg&quot;,rangePlotClassName:&quot;rangeslider-rangeplot&quot;,maskMinClassName:&quot;rangeslider-mask-min&quot;,maskMaxClassName:&quot;rangeslider-mask-max&quot;,slideBoxClassName:&quot;rangeslider-slidebox&quot;,grabberMinClassName:&quot;rangeslider-grabber-min&quot;,grabAreaMinClassName:&quot;rangeslider-grabarea-min&quot;,handleMinClassName:&quot;rangeslider-handle-min&quot;,grabberMaxClassName:&quot;rangeslider-grabber-max&quot;,grabAreaMaxClassName:&quot;rangeslider-grabarea-max&quot;,handleMaxClassName:&quot;rangeslider-handle-max&quot;,maskMinOppAxisClassName:&quot;rangeslider-mask-min-opp-axis&quot;,maskMaxOppAxisClassName:&quot;rangeslider-mask-max-opp-axis&quot;,maskColor:&quot;rgba(0,0,0,0.4)&quot;,maskOppAxisColor:&quot;rgba(0,0,0,0.2)&quot;,slideBoxFill:&quot;transparent&quot;,slideBoxCursor:&quot;ew-resize&quot;,grabAreaFill:&quot;transparent&quot;,grabAreaCursor:&quot;col-resize&quot;,grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},{}],715:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;./oppaxis_attributes&quot;);e.exports=function(t,e,r){var l=t[r],c=e[r];if(l.rangeslider||e._requestRangeslider[c._id]){n.isPlainObject(l.rangeslider)||(l.rangeslider={});var u,f,h=l.rangeslider,p=i.newContainer(c,&quot;rangeslider&quot;);if(_(&quot;visible&quot;)){_(&quot;bgcolor&quot;,e.plot_bgcolor),_(&quot;bordercolor&quot;),_(&quot;borderwidth&quot;),_(&quot;thickness&quot;),_(&quot;autorange&quot;,!c.isValidRange(h.range)),_(&quot;range&quot;);var d=e._subplots;if(d)for(var g=d.cartesian.filter((function(t){return t.substr(0,t.indexOf(&quot;y&quot;))===a.name2id(r)})).map((function(t){return t.substr(t.indexOf(&quot;y&quot;),t.length)})),m=n.simpleMap(g,a.id2name),v=0;v&lt;m.length;v++){var y=m[v];u=h[y]||{},f=i.newContainer(p,y,&quot;yaxis&quot;);var x,b=e[y];u.range&amp;&amp;b.isValidRange(u.range)&amp;&amp;(x=&quot;fixed&quot;),&quot;match&quot;!==w(&quot;rangemode&quot;,x)&amp;&amp;w(&quot;range&quot;,b.range.slice())}p._input=h}}function _(t,e){return n.coerce(h,p,o,t,e)}function w(t,e){return n.coerce(u,f,s,t,e)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;./attributes&quot;:712,&quot;./oppaxis_attributes&quot;:719}],716:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../drawing&quot;),c=t(&quot;../color&quot;),u=t(&quot;../titles&quot;),f=t(&quot;../../plots/cartesian&quot;),h=t(&quot;../../plots/cartesian/axis_ids&quot;),p=t(&quot;../dragelement&quot;),d=t(&quot;../../lib/setcursor&quot;),g=t(&quot;./constants&quot;);function m(t,e,r,n){var i=o.ensureSingle(t,&quot;rect&quot;,g.bgClassName,(function(t){t.attr({x:0,y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})),a=n.borderwidth%2==0?n.borderwidth:n.borderwidth-1,c=-n._offsetShift,u=l.crispRound(e,n.borderwidth);i.attr({width:n._width+a,height:n._height+a,transform:s(c,c),fill:n.bgcolor,stroke:n.bordercolor,&quot;stroke-width&quot;:u})}function v(t,e,r,n){var i=e._fullLayout;o.ensureSingleById(i._topdefs,&quot;clipPath&quot;,n._clipId,(function(t){t.append(&quot;rect&quot;).attr({x:0,y:0})})).select(&quot;rect&quot;).attr({width:n._width,height:n._height})}function y(t,e,r,i){var s,c=e.calcdata,u=t.selectAll(&quot;g.&quot;+g.rangePlotClassName).data(r._subplotsWith,o.identity);u.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return g.rangePlotClassName+&quot; &quot;+t})).call(l.setClipUrl,i._clipId,e),u.order(),u.exit().remove(),u.each((function(t,o){var l=n.select(this),u=0===o,p=h.getFromId(e,t,&quot;y&quot;),d=p._name,g=i[d],m={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:i.range.slice(),calendar:r.calendar},width:i._width,height:i._height,margin:{t:0,b:0,l:0,r:0}},_context:e._context};r.rangebreaks&amp;&amp;(m.layout.xaxis.rangebreaks=r.rangebreaks),m.layout[d]={type:p.type,domain:[0,1],range:&quot;match&quot;!==g.rangemode?g.range.slice():p.range.slice(),calendar:p.calendar},p.rangebreaks&amp;&amp;(m.layout[d].rangebreaks=p.rangebreaks),a.supplyDefaults(m);var v=m._fullLayout.xaxis,y=m._fullLayout[d];v.clearCalc(),v.setScale(),y.clearCalc(),y.setScale();var x={id:t,plotgroup:l,xaxis:v,yaxis:y,isRangePlot:!0};u?s=x:(x.mainplot=&quot;xy&quot;,x.mainplotinfo=s),f.rangePlot(e,x,function(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i=t[n],a=i[0].trace;a.xaxis+a.yaxis===e&amp;&amp;r.push(i)}return r}(c,t))}))}function x(t,e,r,n,i){(o.ensureSingle(t,&quot;rect&quot;,g.maskMinClassName,(function(t){t.attr({x:0,y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;height&quot;,n._height).call(c.fill,g.maskColor),o.ensureSingle(t,&quot;rect&quot;,g.maskMaxClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;height&quot;,n._height).call(c.fill,g.maskColor),&quot;match&quot;!==i.rangemode)&amp;&amp;(o.ensureSingle(t,&quot;rect&quot;,g.maskMinOppAxisClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;width&quot;,n._width).call(c.fill,g.maskOppAxisColor),o.ensureSingle(t,&quot;rect&quot;,g.maskMaxOppAxisClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;width&quot;,n._width).style(&quot;border-top&quot;,g.maskOppBorder).call(c.fill,g.maskOppAxisColor))}function b(t,e,r,n){e._context.staticPlot||o.ensureSingle(t,&quot;rect&quot;,g.slideBoxClassName,(function(t){t.attr({y:0,cursor:g.slideBoxCursor,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr({height:n._height,fill:g.slideBoxFill})}function _(t,e,r,n){var i=o.ensureSingle(t,&quot;g&quot;,g.grabberMinClassName),a=o.ensureSingle(t,&quot;g&quot;,g.grabberMaxClassName),s={x:0,width:g.handleWidth,rx:g.handleRadius,fill:c.background,stroke:c.defaultLine,&quot;stroke-width&quot;:g.handleStrokeWidth,&quot;shape-rendering&quot;:&quot;crispEdges&quot;},l={y:Math.round(n._height/4),height:Math.round(n._height/2)};o.ensureSingle(i,&quot;rect&quot;,g.handleMinClassName,(function(t){t.attr(s)})).attr(l),o.ensureSingle(a,&quot;rect&quot;,g.handleMaxClassName,(function(t){t.attr(s)})).attr(l);var u={width:g.grabAreaWidth,x:0,y:0,fill:g.grabAreaFill,cursor:e._context.staticPlot?void 0:g.grabAreaCursor};o.ensureSingle(i,&quot;rect&quot;,g.grabAreaMinClassName,(function(t){t.attr(u)})).attr(&quot;height&quot;,n._height),o.ensureSingle(a,&quot;rect&quot;,g.grabAreaMaxClassName,(function(t){t.attr(u)})).attr(&quot;height&quot;,n._height)}e.exports=function(t){for(var e=t._fullLayout,r=e._rangeSliderData,a=0;a&lt;r.length;a++){var l=r[a][g.name];l._clipId=l._id+&quot;-&quot;+e._uid}var c=e._infolayer.selectAll(&quot;g.&quot;+g.containerClassName).data(r,(function(t){return t._name}));c.exit().each((function(t){var r=t[g.name];e._topdefs.select(&quot;#&quot;+r._clipId).remove()})).remove(),0!==r.length&amp;&amp;(c.enter().append(&quot;g&quot;).classed(g.containerClassName,!0).attr(&quot;pointer-events&quot;,&quot;all&quot;),c.each((function(r){var a=n.select(this),l=r[g.name],c=e[h.id2name(r.anchor)],f=l[h.id2name(r.anchor)];if(l.range){var w,T=o.simpleMap(l.range,r.r2l),k=o.simpleMap(r.range,r.r2l);w=k[0]&lt;k[1]?[Math.min(T[0],k[0]),Math.max(T[1],k[1])]:[Math.max(T[0],k[0]),Math.min(T[1],k[1])],l.range=l._input.range=o.simpleMap(w,r.l2r)}r.cleanRange(&quot;rangeslider.range&quot;);var M=e._size,A=r.domain;l._width=M.w*(A[1]-A[0]);var S=Math.round(M.l+M.w*A[0]),E=Math.round(M.t+M.h*(1-r._counterDomainMin)+(&quot;bottom&quot;===r.side?r._depth:0)+l._offsetShift+g.extraPad);a.attr(&quot;transform&quot;,s(S,E)),l._rl=o.simpleMap(l.range,r.r2l);var C=l._rl[0],L=l._rl[1],I=L-C;if(l.p2d=function(t){return t/l._width*I+C},l.d2p=function(t){return(t-C)/I*l._width},r.rangebreaks){var P=r.locateBreaks(C,L);if(P.length){var z,O,D=0;for(z=0;z&lt;P.length;z++)D+=(O=P[z]).max-O.min;var R=l._width/(L-C-D),F=[-R*C];for(z=0;z&lt;P.length;z++)O=P[z],F.push(F[F.length-1]-R*(O.max-O.min));for(l.d2p=function(t){for(var e=F[0],r=0;r&lt;P.length;r++){var n=P[r];if(t&gt;=n.max)e=F[r+1];else if(t&lt;n.min)break}return e+R*t},z=0;z&lt;P.length;z++)(O=P[z]).pmin=l.d2p(O.min),O.pmax=l.d2p(O.max);l.p2d=function(t){for(var e=F[0],r=0;r&lt;P.length;r++){var n=P[r];if(t&gt;=n.pmax)e=F[r+1];else if(t&lt;n.pmin)break}return(t-e)/R}}}if(&quot;match&quot;!==f.rangemode){var B=c.r2l(f.range[0]),N=c.r2l(f.range[1])-B;l.d2pOppAxis=function(t){return(t-B)/N*l._height}}a.call(m,t,r,l).call(v,t,r,l).call(y,t,r,l).call(x,t,r,l,f).call(b,t,r,l).call(_,t,r,l),function(t,e,r,a){if(e._context.staticPlot)return;var s=t.select(&quot;rect.&quot;+g.slideBoxClassName).node(),l=t.select(&quot;rect.&quot;+g.grabAreaMinClassName).node(),c=t.select(&quot;rect.&quot;+g.grabAreaMaxClassName).node();function u(){var u=n.event,f=u.target,h=u.clientX||u.touches[0].clientX,g=h-t.node().getBoundingClientRect().left,m=a.d2p(r._rl[0]),v=a.d2p(r._rl[1]),y=p.coverSlip();function x(t){var u,p,x,b=+(t.clientX||t.touches[0].clientX)-h;switch(f){case s:x=&quot;ew-resize&quot;,u=m+b,p=v+b;break;case l:x=&quot;col-resize&quot;,u=m+b,p=v;break;case c:x=&quot;col-resize&quot;,u=m,p=v+b;break;default:x=&quot;ew-resize&quot;,u=g,p=g+b}if(p&lt;u){var _=p;p=u,u=_}a._pixelMin=u,a._pixelMax=p,d(n.select(y),x),function(t,e,r,n){function a(t){return r.l2r(o.constrain(t,n._rl[0],n._rl[1]))}var s=a(n.p2d(n._pixelMin)),l=a(n.p2d(n._pixelMax));window.requestAnimationFrame((function(){i.call(&quot;_guiRelayout&quot;,e,r._name+&quot;.range&quot;,[s,l])}))}(0,e,r,a)}function b(){y.removeEventListener(&quot;mousemove&quot;,x),y.removeEventListener(&quot;mouseup&quot;,b),this.removeEventListener(&quot;touchmove&quot;,x),this.removeEventListener(&quot;touchend&quot;,b),o.removeElement(y)}this.addEventListener(&quot;touchmove&quot;,x),this.addEventListener(&quot;touchend&quot;,b),y.addEventListener(&quot;mousemove&quot;,x),y.addEventListener(&quot;mouseup&quot;,b)}t.on(&quot;mousedown&quot;,u),t.on(&quot;touchstart&quot;,u)}(a,t,r,l),function(t,e,r,n,i,a){var l=g.handleWidth/2;function c(t){return o.constrain(t,0,n._width)}function u(t){return o.constrain(t,0,n._height)}function f(t){return o.constrain(t,-l,n._width+l)}var h=c(n.d2p(r._rl[0])),p=c(n.d2p(r._rl[1]));if(t.select(&quot;rect.&quot;+g.slideBoxClassName).attr(&quot;x&quot;,h).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.maskMinClassName).attr(&quot;width&quot;,h),t.select(&quot;rect.&quot;+g.maskMaxClassName).attr(&quot;x&quot;,p).attr(&quot;width&quot;,n._width-p),&quot;match&quot;!==a.rangemode){var d=n._height-u(n.d2pOppAxis(i._rl[1])),m=n._height-u(n.d2pOppAxis(i._rl[0]));t.select(&quot;rect.&quot;+g.maskMinOppAxisClassName).attr(&quot;x&quot;,h).attr(&quot;height&quot;,d).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.maskMaxOppAxisClassName).attr(&quot;x&quot;,h).attr(&quot;y&quot;,m).attr(&quot;height&quot;,n._height-m).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.slideBoxClassName).attr(&quot;y&quot;,d).attr(&quot;height&quot;,m-d)}var v=Math.round(f(h-l))-.5,y=Math.round(f(p-l))+.5;t.select(&quot;g.&quot;+g.grabberMinClassName).attr(&quot;transform&quot;,s(v,.5)),t.select(&quot;g.&quot;+g.grabberMaxClassName).attr(&quot;transform&quot;,s(y,.5))}(a,0,r,l,c,f),&quot;bottom&quot;===r.side&amp;&amp;u.draw(t,r._id+&quot;title&quot;,{propContainer:r,propName:r._name+&quot;.title&quot;,placeholder:e._dfltTitle.x,attributes:{x:r._offset+r._length/2,y:E+l._height+l._offsetShift+10+1.5*r.title.font.size,&quot;text-anchor&quot;:&quot;middle&quot;}})})))}},{&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../plots/cartesian&quot;:841,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../titles&quot;:738,&quot;./constants&quot;:714,d3:169}],717:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;),i=t(&quot;../../lib/svg_text_utils&quot;),a=t(&quot;./constants&quot;),o=t(&quot;../../constants/alignment&quot;).LINE_SPACING,s=a.name;function l(t){var e=t&amp;&amp;t[s];return e&amp;&amp;e.visible}r.isVisible=l,r.makeData=function(t){var e=n.list({_fullLayout:t},&quot;x&quot;,!0),r=t.margin,i=[];if(!t._has(&quot;gl2d&quot;))for(var a=0;a&lt;e.length;a++){var o=e[a];if(l(o)){i.push(o);var c=o[s];c._id=s+o._id,c._height=(t.height-r.b-r.t)*c.thickness,c._offsetShift=Math.floor(c.borderwidth/2)}}t._rangeSliderData=i},r.autoMarginOpts=function(t,e){var r=t._fullLayout,n=e[s],l=e._id.charAt(0),c=0,u=0;&quot;bottom&quot;===e.side&amp;&amp;(c=e._depth,e.title.text!==r._dfltTitle[l]&amp;&amp;(u=1.5*e.title.font.size+10+n._offsetShift,u+=(e.title.text.match(i.BR_TAG_ALL)||[]).length*e.title.font.size*o));return{x:0,y:e._counterDomainMin,l:0,r:0,t:0,b:n._height+c+Math.max(r.margin.b,u),pad:a.extraPad+2*n._offsetShift}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;./constants&quot;:714}],718:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./oppaxis_attributes&quot;),o=t(&quot;./helpers&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;rangeslider&quot;,schema:{subplots:{xaxis:{rangeslider:n.extendFlat({},i,{yaxis:a})}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:t(&quot;./draw&quot;),isVisible:o.isVisible,makeData:o.makeData,autoMarginOpts:o.autoMarginOpts}},{&quot;../../lib&quot;:778,&quot;./attributes&quot;:712,&quot;./calc_autorange&quot;:713,&quot;./defaults&quot;:715,&quot;./draw&quot;:716,&quot;./helpers&quot;:717,&quot;./oppaxis_attributes&quot;:719}],719:[function(t,e,r){&quot;use strict&quot;;e.exports={_isSubplotObj:!0,rangemode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;fixed&quot;,&quot;match&quot;],dflt:&quot;match&quot;,editType:&quot;calc&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;},{valType:&quot;any&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},editType:&quot;calc&quot;}},{}],720:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/attributes&quot;),i=t(&quot;../../traces/scatter/attributes&quot;).line,a=t(&quot;../drawing/attributes&quot;).dash,o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=s(&quot;shape&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;circle&quot;,&quot;rect&quot;,&quot;path&quot;,&quot;line&quot;],editType:&quot;calc+arraydraw&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;arraydraw&quot;},xref:o({},n.xref,{}),xsizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;pixel&quot;],dflt:&quot;scaled&quot;,editType:&quot;calc+arraydraw&quot;},xanchor:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},x0:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},x1:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},yref:o({},n.yref,{}),ysizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;pixel&quot;],dflt:&quot;scaled&quot;,editType:&quot;calc+arraydraw&quot;},yanchor:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},y0:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},y1:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},path:{valType:&quot;string&quot;,editType:&quot;calc+arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},line:{color:o({},i.color,{editType:&quot;arraydraw&quot;}),width:o({},i.width,{editType:&quot;calc+arraydraw&quot;}),dash:o({},a,{editType:&quot;arraydraw&quot;}),editType:&quot;calc+arraydraw&quot;},fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},fillrule:{valType:&quot;enumerated&quot;,values:[&quot;evenodd&quot;,&quot;nonzero&quot;],dflt:&quot;evenodd&quot;,editType:&quot;arraydraw&quot;},editable:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc+arraydraw&quot;},editType:&quot;arraydraw&quot;})},{&quot;../../constants/axis_placeable_objects&quot;:746,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../../traces/scatter/attributes&quot;:1187,&quot;../annotations/attributes&quot;:626,&quot;../drawing/attributes&quot;:664}],721:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;./constants&quot;),o=t(&quot;./helpers&quot;);function s(t){return c(t.line.width,t.xsizemode,t.x0,t.x1,t.path,!1)}function l(t){return c(t.line.width,t.ysizemode,t.y0,t.y1,t.path,!0)}function c(t,e,r,i,s,l){var c=t/2,u=l;if(&quot;pixel&quot;===e){var f=s?o.extractPathCoords(s,l?a.paramIsY:a.paramIsX):[r,i],h=n.aggNums(Math.max,null,f),p=n.aggNums(Math.min,null,f),d=p&lt;0?Math.abs(p)+c:c,g=h&gt;0?h+c:c;return{ppad:c,ppadplus:u?d:g,ppadminus:u?g:d}}return{ppad:c}}function u(t,e,r,n,i){var s=&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?t.r2c:t.d2c;if(void 0!==e)return[s(e),s(r)];if(n){var l,c,u,f,h=1/0,p=-1/0,d=n.match(a.segmentRE);for(&quot;date&quot;===t.type&amp;&amp;(s=o.decodeDate(s)),l=0;l&lt;d.length;l++)void 0!==(c=i[d[l].charAt(0)].drawn)&amp;&amp;(!(u=d[l].substr(1).match(a.paramRE))||u.length&lt;c||((f=s(u[c]))&lt;h&amp;&amp;(h=f),f&gt;p&amp;&amp;(p=f)));return p&gt;=h?[h,p]:void 0}}e.exports=function(t){var e=t._fullLayout,r=n.filterVisible(e.shapes);if(r.length&amp;&amp;t._fullData.length)for(var o=0;o&lt;r.length;o++){var c,f,h=r[o];h._extremes={};var p=i.getRefType(h.xref),d=i.getRefType(h.yref);if(&quot;paper&quot;!==h.xref&amp;&amp;&quot;domain&quot;!==p){var g=&quot;pixel&quot;===h.xsizemode?h.xanchor:h.x0,m=&quot;pixel&quot;===h.xsizemode?h.xanchor:h.x1;(f=u(c=i.getFromId(t,h.xref),g,m,h.path,a.paramIsX))&amp;&amp;(h._extremes[c._id]=i.findExtremes(c,f,s(h)))}if(&quot;paper&quot;!==h.yref&amp;&amp;&quot;domain&quot;!==d){var v=&quot;pixel&quot;===h.ysizemode?h.yanchor:h.y0,y=&quot;pixel&quot;===h.ysizemode?h.yanchor:h.y1;(f=u(c=i.getFromId(t,h.yref),v,y,h.path,a.paramIsY))&amp;&amp;(h._extremes[c._id]=i.findExtremes(c,f,l(h)))}}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./constants&quot;:722,&quot;./helpers&quot;:731}],722:[function(t,e,r){&quot;use strict&quot;;e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},{}],723:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;./helpers&quot;);function l(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}if(a(&quot;visible&quot;)){var l=a(&quot;path&quot;),c=a(&quot;type&quot;,l?&quot;path&quot;:&quot;rect&quot;);&quot;path&quot;!==e.type&amp;&amp;delete e.path,a(&quot;editable&quot;),a(&quot;layer&quot;),a(&quot;opacity&quot;),a(&quot;fillcolor&quot;),a(&quot;fillrule&quot;),a(&quot;line.width&quot;)&amp;&amp;(a(&quot;line.color&quot;),a(&quot;line.dash&quot;));for(var u=a(&quot;xsizemode&quot;),f=a(&quot;ysizemode&quot;),h=[&quot;x&quot;,&quot;y&quot;],p=0;p&lt;2;p++){var d,g,m,v=h[p],y=v+&quot;anchor&quot;,x=&quot;x&quot;===v?u:f,b={_fullLayout:r},_=i.coerceRef(t,e,b,v,void 0,&quot;paper&quot;);if(&quot;range&quot;===i.getRefType(_)?((d=i.getFromId(b,_))._shapeIndices.push(e._index),m=s.rangeToShapePosition(d),g=s.shapePositionToRange(d)):g=m=n.identity,&quot;path&quot;!==c){var w=v+&quot;0&quot;,T=v+&quot;1&quot;,k=t[w],M=t[T];t[w]=g(t[w],!0),t[T]=g(t[T],!0),&quot;pixel&quot;===x?(a(w,0),a(T,10)):(i.coercePosition(e,b,a,_,w,.25),i.coercePosition(e,b,a,_,T,.75)),e[w]=m(e[w]),e[T]=m(e[T]),t[w]=k,t[T]=M}if(&quot;pixel&quot;===x){var A=t[y];t[y]=g(t[y],!0),i.coercePosition(e,b,a,_,y,.25),e[y]=m(e[y]),t[y]=A}}&quot;path&quot;===c?a(&quot;path&quot;):n.noneOrAll(t,e,[&quot;x0&quot;,&quot;x1&quot;,&quot;y0&quot;,&quot;y1&quot;])}}e.exports=function(t,e){a(t,e,{name:&quot;shapes&quot;,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:720,&quot;./helpers&quot;:731}],724:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;./draw_newshape/helpers&quot;).readPaths,s=t(&quot;./draw_newshape/display_outlines&quot;),l=t(&quot;../../plots/cartesian/handle_outline&quot;).clearOutlineControllers,c=t(&quot;../color&quot;),u=t(&quot;../drawing&quot;),f=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,h=t(&quot;../dragelement&quot;),p=t(&quot;../../lib/setcursor&quot;),d=t(&quot;./constants&quot;),g=t(&quot;./helpers&quot;);function m(t){var e=t._fullLayout;for(var r in e._shapeUpperLayer.selectAll(&quot;path&quot;).remove(),e._shapeLowerLayer.selectAll(&quot;path&quot;).remove(),e._plots){var n=e._plots[r].shapelayer;n&amp;&amp;n.selectAll(&quot;path&quot;).remove()}for(var i=0;i&lt;e.shapes.length;i++)e.shapes[i].visible&amp;&amp;x(t,i)}function v(t){return!!t._fullLayout._drawing}function y(t){return!t._context.edits.shapePosition}function x(t,e){t._fullLayout._paperdiv.selectAll('.shapelayer [data-index=&quot;'+e+'&quot;]').remove();var r=g.makeOptionsAndPlotinfo(t,e),l=r.options,x=r.plotinfo;if(l._input&amp;&amp;!1!==l.visible)if(&quot;below&quot;!==l.layer)k(t._fullLayout._shapeUpperLayer);else if(&quot;paper&quot;===l.xref||&quot;paper&quot;===l.yref)k(t._fullLayout._shapeLowerLayer);else{if(x._hadPlotinfo)k((x.mainplotinfo||x).shapelayer);else k(t._fullLayout._shapeLowerLayer)}function k(r){var k=_(t,l),M={&quot;data-index&quot;:e,&quot;fill-rule&quot;:l.fillrule,d:k},A=l.opacity,S=l.fillcolor,E=l.line.width?l.line.color:&quot;rgba(0,0,0,0)&quot;,C=l.line.width,L=l.line.dash;C||!0!==l.editable||(C=5,L=&quot;solid&quot;);var I=&quot;Z&quot;!==k[k.length-1],P=y(t)&amp;&amp;l.editable&amp;&amp;t._fullLayout._activeShapeIndex===e;P&amp;&amp;(S=I?&quot;rgba(0,0,0,0)&quot;:t._fullLayout.activeshape.fillcolor,A=t._fullLayout.activeshape.opacity);var z,O=r.append(&quot;path&quot;).attr(M).style(&quot;opacity&quot;,A).call(c.stroke,E).call(c.fill,S).call(u.dashLine,L,C);if(b(O,t,l),(P||t._context.edits.shapePosition)&amp;&amp;(z=f(t.layout,&quot;shapes&quot;,l)),P){O.style({cursor:&quot;move&quot;});var D={element:O.node(),plotinfo:x,gd:t,editHelpers:z,isActiveShape:!0},R=o(k,t);s(R,O,D)}else t._context.edits.shapePosition?function(t,e,r,o,s,l){var c,f,m,y,x,T,k,M,A,S,E,C,L,I,P,z,O=&quot;pixel&quot;===r.xsizemode,D=&quot;pixel&quot;===r.ysizemode,R=&quot;line&quot;===r.type,F=&quot;path&quot;===r.type,B=l.modifyItem,N=a.getFromId(t,r.xref),j=a.getRefType(r.xref),U=a.getFromId(t,r.yref),V=a.getRefType(r.yref),q=g.getDataToPixel(t,N,!1,j),H=g.getDataToPixel(t,U,!0,V),G=g.getPixelToData(t,N,!1,j),Y=g.getPixelToData(t,U,!0,V),W=R?function(){var t=Math.max(r.line.width,10),n=s.append(&quot;g&quot;).attr(&quot;data-index&quot;,o);n.append(&quot;path&quot;).attr(&quot;d&quot;,e.attr(&quot;d&quot;)).style({cursor:&quot;move&quot;,&quot;stroke-width&quot;:t,&quot;stroke-opacity&quot;:&quot;0&quot;});var i={&quot;fill-opacity&quot;:&quot;0&quot;},a=Math.max(t/2,10);return n.append(&quot;circle&quot;).attr({&quot;data-line-point&quot;:&quot;start-point&quot;,cx:O?q(r.xanchor)+r.x0:q(r.x0),cy:D?H(r.yanchor)-r.y0:H(r.y0),r:a}).style(i).classed(&quot;cursor-grab&quot;,!0),n.append(&quot;circle&quot;).attr({&quot;data-line-point&quot;:&quot;end-point&quot;,cx:O?q(r.xanchor)+r.x1:q(r.x1),cy:D?H(r.yanchor)-r.y1:H(r.y1),r:a}).style(i).classed(&quot;cursor-grab&quot;,!0),n}():e,X={element:W.node(),gd:t,prepFn:function(n){if(v(t))return;O&amp;&amp;(x=q(r.xanchor));D&amp;&amp;(T=H(r.yanchor));&quot;path&quot;===r.type?P=r.path:(c=O?r.x0:q(r.x0),f=D?r.y0:H(r.y0),m=O?r.x1:q(r.x1),y=D?r.y1:H(r.y1));c&lt;m?(A=c,L=&quot;x0&quot;,S=m,I=&quot;x1&quot;):(A=m,L=&quot;x1&quot;,S=c,I=&quot;x0&quot;);!D&amp;&amp;f&lt;y||D&amp;&amp;f&gt;y?(k=f,E=&quot;y0&quot;,M=y,C=&quot;y1&quot;):(k=y,E=&quot;y1&quot;,M=f,C=&quot;y0&quot;);Z(n),Q(s,r),function(t,e,r){var n=e.xref,i=e.yref,o=a.getFromId(r,n),s=a.getFromId(r,i),l=&quot;&quot;;&quot;paper&quot;===n||o.autorange||(l+=n);&quot;paper&quot;===i||s.autorange||(l+=i);u.setClipUrl(t,l?&quot;clip&quot;+r._fullLayout._uid+l:null,r)}(e,r,t),X.moveFn=&quot;move&quot;===z?J:K,X.altKey=n.altKey},doneFn:function(){if(v(t))return;p(e),$(s),b(e,t,r),n.call(&quot;_guiRelayout&quot;,t,l.getUpdateObj())},clickFn:function(){if(v(t))return;$(s)}};function Z(r){if(v(t))z=null;else if(R)z=&quot;path&quot;===r.target.tagName?&quot;move&quot;:&quot;start-point&quot;===r.target.attributes[&quot;data-line-point&quot;].value?&quot;resize-over-start-point&quot;:&quot;resize-over-end-point&quot;;else{var n=X.element.getBoundingClientRect(),i=n.right-n.left,a=n.bottom-n.top,o=r.clientX-n.left,s=r.clientY-n.top,l=!F&amp;&amp;i&gt;10&amp;&amp;a&gt;10&amp;&amp;!r.shiftKey?h.getCursor(o/i,1-s/a):&quot;move&quot;;p(e,l),z=l.split(&quot;-&quot;)[0]}}function J(n,i){if(&quot;path&quot;===r.type){var a=function(t){return t},o=a,l=a;O?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(o=function(t){return G(q(t)+n)},N&amp;&amp;&quot;date&quot;===N.type&amp;&amp;(o=g.encodeDate(o))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(l=function(t){return Y(H(t)+i)},U&amp;&amp;&quot;date&quot;===U.type&amp;&amp;(l=g.encodeDate(l))),B(&quot;path&quot;,r.path=w(P,o,l))}else O?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(B(&quot;x0&quot;,r.x0=G(c+n)),B(&quot;x1&quot;,r.x1=G(m+n))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(B(&quot;y0&quot;,r.y0=Y(f+i)),B(&quot;y1&quot;,r.y1=Y(y+i)));e.attr(&quot;d&quot;,_(t,r)),Q(s,r)}function K(n,i){if(F){var a=function(t){return t},o=a,l=a;O?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(o=function(t){return G(q(t)+n)},N&amp;&amp;&quot;date&quot;===N.type&amp;&amp;(o=g.encodeDate(o))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(l=function(t){return Y(H(t)+i)},U&amp;&amp;&quot;date&quot;===U.type&amp;&amp;(l=g.encodeDate(l))),B(&quot;path&quot;,r.path=w(P,o,l))}else if(R){if(&quot;resize-over-start-point&quot;===z){var u=c+n,h=D?f-i:f+i;B(&quot;x0&quot;,r.x0=O?u:G(u)),B(&quot;y0&quot;,r.y0=D?h:Y(h))}else if(&quot;resize-over-end-point&quot;===z){var p=m+n,d=D?y-i:y+i;B(&quot;x1&quot;,r.x1=O?p:G(p)),B(&quot;y1&quot;,r.y1=D?d:Y(d))}}else{var v=function(t){return-1!==z.indexOf(t)},b=v(&quot;n&quot;),j=v(&quot;s&quot;),V=v(&quot;w&quot;),W=v(&quot;e&quot;),X=b?k+i:k,Z=j?M+i:M,J=V?A+n:A,K=W?S+n:S;D&amp;&amp;(b&amp;&amp;(X=k-i),j&amp;&amp;(Z=M-i)),(!D&amp;&amp;Z-X&gt;10||D&amp;&amp;X-Z&gt;10)&amp;&amp;(B(E,r[E]=D?X:Y(X)),B(C,r[C]=D?Z:Y(Z))),K-J&gt;10&amp;&amp;(B(L,r[L]=O?J:G(J)),B(I,r[I]=O?K:G(K)))}e.attr(&quot;d&quot;,_(t,r)),Q(s,r)}function Q(t,e){(O||D)&amp;&amp;function(){var r=&quot;path&quot;!==e.type,n=t.selectAll(&quot;.visual-cue&quot;).data([0]);n.enter().append(&quot;path&quot;).attr({fill:&quot;#fff&quot;,&quot;fill-rule&quot;:&quot;evenodd&quot;,stroke:&quot;#000&quot;,&quot;stroke-width&quot;:1}).classed(&quot;visual-cue&quot;,!0);var a=q(O?e.xanchor:i.midRange(r?[e.x0,e.x1]:g.extractPathCoords(e.path,d.paramIsX))),o=H(D?e.yanchor:i.midRange(r?[e.y0,e.y1]:g.extractPathCoords(e.path,d.paramIsY)));if(a=g.roundPositionForSharpStrokeRendering(a,1),o=g.roundPositionForSharpStrokeRendering(o,1),O&amp;&amp;D){var s=&quot;M&quot;+(a-1-1)+&quot;,&quot;+(o-1-1)+&quot;h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z&quot;;n.attr(&quot;d&quot;,s)}else if(O){var l=&quot;M&quot;+(a-1-1)+&quot;,&quot;+(o-9-1)+&quot;v18 h2 v-18 Z&quot;;n.attr(&quot;d&quot;,l)}else{var c=&quot;M&quot;+(a-9-1)+&quot;,&quot;+(o-1-1)+&quot;h18 v2 h-18 Z&quot;;n.attr(&quot;d&quot;,c)}}()}function $(t){t.selectAll(&quot;.visual-cue&quot;).remove()}h.init(X),W.node().onmousemove=Z}(t,O,l,e,r,z):!0===l.editable&amp;&amp;O.style(&quot;pointer-events&quot;,I||c.opacity(S)*A&lt;=.5?&quot;stroke&quot;:&quot;all&quot;);O.node().addEventListener(&quot;click&quot;,(function(){return function(t,e){if(!y(t))return;var r=+e.node().getAttribute(&quot;data-index&quot;);if(r&gt;=0){if(r===t._fullLayout._activeShapeIndex)return void T(t);t._fullLayout._activeShapeIndex=r,t._fullLayout._deactivateShape=T,m(t)}}(t,O)}))}}function b(t,e,r){var n=(r.xref+r.yref).replace(/paper/g,&quot;&quot;).replace(/[xyz][1-9]* *domain/g,&quot;&quot;);u.setClipUrl(t,n?&quot;clip&quot;+e._fullLayout._uid+n:null,e)}function _(t,e){var r,n,o,s,l,c,u,f,h=e.type,p=a.getRefType(e.xref),m=a.getRefType(e.yref),v=a.getFromId(t,e.xref),y=a.getFromId(t,e.yref),x=t._fullLayout._size;if(v?&quot;domain&quot;===p?n=function(t){return v._offset+v._length*t}:(r=g.shapePositionToRange(v),n=function(t){return v._offset+v.r2p(r(t,!0))}):n=function(t){return x.l+x.w*t},y?&quot;domain&quot;===m?s=function(t){return y._offset+y._length*(1-t)}:(o=g.shapePositionToRange(y),s=function(t){return y._offset+y.r2p(o(t,!0))}):s=function(t){return x.t+x.h*(1-t)},&quot;path&quot;===h)return v&amp;&amp;&quot;date&quot;===v.type&amp;&amp;(n=g.decodeDate(n)),y&amp;&amp;&quot;date&quot;===y.type&amp;&amp;(s=g.decodeDate(s)),function(t,e,r){var n=t.path,a=t.xsizemode,o=t.ysizemode,s=t.xanchor,l=t.yanchor;return n.replace(d.segmentRE,(function(t){var n=0,c=t.charAt(0),u=d.paramIsX[c],f=d.paramIsY[c],h=d.numParams[c],p=t.substr(1).replace(d.paramRE,(function(t){return u[n]?t=&quot;pixel&quot;===a?e(s)+Number(t):e(t):f[n]&amp;&amp;(t=&quot;pixel&quot;===o?r(l)-Number(t):r(t)),++n&gt;h&amp;&amp;(t=&quot;X&quot;),t}));return n&gt;h&amp;&amp;(p=p.replace(/[\s,]*X.*/,&quot;&quot;),i.log(&quot;Ignoring extra params in segment &quot;+t)),c+p}))}(e,n,s);if(&quot;pixel&quot;===e.xsizemode){var b=n(e.xanchor);l=b+e.x0,c=b+e.x1}else l=n(e.x0),c=n(e.x1);if(&quot;pixel&quot;===e.ysizemode){var _=s(e.yanchor);u=_-e.y0,f=_-e.y1}else u=s(e.y0),f=s(e.y1);if(&quot;line&quot;===h)return&quot;M&quot;+l+&quot;,&quot;+u+&quot;L&quot;+c+&quot;,&quot;+f;if(&quot;rect&quot;===h)return&quot;M&quot;+l+&quot;,&quot;+u+&quot;H&quot;+c+&quot;V&quot;+f+&quot;H&quot;+l+&quot;Z&quot;;var w=(l+c)/2,T=(u+f)/2,k=Math.abs(w-l),M=Math.abs(T-u),A=&quot;A&quot;+k+&quot;,&quot;+M,S=w+k+&quot;,&quot;+T;return&quot;M&quot;+S+A+&quot; 0 1,1 &quot;+(w+&quot;,&quot;+(T-M))+A+&quot; 0 0,1 &quot;+S+&quot;Z&quot;}function w(t,e,r){return t.replace(d.segmentRE,(function(t){var n=0,i=t.charAt(0),a=d.paramIsX[i],o=d.paramIsY[i],s=d.numParams[i];return i+t.substr(1).replace(d.paramRE,(function(t){return n&gt;=s||(a[n]?t=e(t):o[n]&amp;&amp;(t=r(t)),n++),t}))}))}function T(t){y(t)&amp;&amp;(t._fullLayout._activeShapeIndex&gt;=0&amp;&amp;(l(t),delete t._fullLayout._activeShapeIndex,m(t)))}e.exports={draw:m,drawOne:x,eraseActiveShape:function(t){if(!y(t))return;l(t);var e=t._fullLayout._activeShapeIndex,r=(t.layout||{}).shapes||[];if(e&lt;r.length){for(var i=[],a=0;a&lt;r.length;a++)a!==e&amp;&amp;i.push(r[a]);delete t._fullLayout._activeShapeIndex,n.call(&quot;_guiRelayout&quot;,t,{shapes:i})}}}},{&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/handle_outline&quot;:838,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;./constants&quot;:722,&quot;./draw_newshape/display_outlines&quot;:728,&quot;./draw_newshape/helpers&quot;:729,&quot;./helpers&quot;:731}],725:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../drawing/attributes&quot;).dash,i=t(&quot;../../../lib/extend&quot;).extendFlat;e.exports={newshape:{line:{color:{valType:&quot;color&quot;,editType:&quot;none&quot;},width:{valType:&quot;number&quot;,min:0,dflt:4,editType:&quot;none&quot;},dash:i({},n,{dflt:&quot;solid&quot;,editType:&quot;none&quot;}),editType:&quot;none&quot;},fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;none&quot;},fillrule:{valType:&quot;enumerated&quot;,values:[&quot;evenodd&quot;,&quot;nonzero&quot;],dflt:&quot;evenodd&quot;,editType:&quot;none&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;none&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;none&quot;},drawdirection:{valType:&quot;enumerated&quot;,values:[&quot;ortho&quot;,&quot;horizontal&quot;,&quot;vertical&quot;,&quot;diagonal&quot;],dflt:&quot;diagonal&quot;,editType:&quot;none&quot;},editType:&quot;none&quot;},activeshape:{fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgb(255,0,255)&quot;,editType:&quot;none&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;none&quot;},editType:&quot;none&quot;}}},{&quot;../../../lib/extend&quot;:768,&quot;../../drawing/attributes&quot;:664}],726:[function(t,e,r){&quot;use strict&quot;;e.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},{}],727:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../color&quot;);e.exports=function(t,e,r){if(r(&quot;newshape.drawdirection&quot;),r(&quot;newshape.layer&quot;),r(&quot;newshape.fillcolor&quot;),r(&quot;newshape.fillrule&quot;),r(&quot;newshape.opacity&quot;),r(&quot;newshape.line.width&quot;)){var i=(t||{}).plot_bgcolor||&quot;#FFF&quot;;r(&quot;newshape.line.color&quot;,n.contrast(i)),r(&quot;newshape.line.dash&quot;)}r(&quot;activeshape.fillcolor&quot;),r(&quot;activeshape.opacity&quot;)}},{&quot;../../color&quot;:643}],728:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../dragelement&quot;),i=t(&quot;../../dragelement/helpers&quot;).drawMode,a=t(&quot;../../../registry&quot;),o=t(&quot;./constants&quot;),s=o.i000,l=o.i090,c=o.i180,u=o.i270,f=t(&quot;../../../plots/cartesian/handle_outline&quot;).clearOutlineControllers,h=t(&quot;./helpers&quot;),p=h.pointsShapeRectangle,d=h.pointsShapeEllipse,g=h.writePaths,m=t(&quot;./newshapes&quot;);e.exports=function t(e,r,o,h){h||(h=0);var v=o.gd;function y(){t(e,r,o,h++),d(e[0])&amp;&amp;x({redrawing:!0})}function x(t){o.isActiveShape=!1;var e=m(r,o);Object.keys(e).length&amp;&amp;a.call((t||{}).redrawing?&quot;relayout&quot;:&quot;_guiRelayout&quot;,v,e)}var b,_,w,T,k,M=o.isActiveShape,A=v._fullLayout._zoomlayer,S=o.dragmode;(i(S)?v._fullLayout._drawing=!0:v._fullLayout._activeShapeIndex&gt;=0&amp;&amp;f(v),r.attr(&quot;d&quot;,g(e)),M&amp;&amp;!h)&amp;&amp;(k=function(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r];t[r]=[];for(var i=0;i&lt;n.length;i++){t[r][i]=[];for(var a=0;a&lt;n[i].length;a++)t[r][i][a]=n[i][a]}}return t}([],e),function(t){b=[];for(var r=0;r&lt;e.length;r++){var i=e[r],a=!p(i)&amp;&amp;d(i);b[r]=[];for(var o=0;o&lt;i.length;o++)if(&quot;Z&quot;!==i[o][0]&amp;&amp;(!a||o===s||o===l||o===c||o===u)){var f=i[o][1],h=i[o][2],g=t.append(&quot;circle&quot;).classed(&quot;cursor-grab&quot;,!0).attr(&quot;data-i&quot;,r).attr(&quot;data-j&quot;,o).attr(&quot;cx&quot;,f).attr(&quot;cy&quot;,h).attr(&quot;r&quot;,4).style({&quot;mix-blend-mode&quot;:&quot;luminosity&quot;,fill:&quot;black&quot;,stroke:&quot;white&quot;,&quot;stroke-width&quot;:1});b[r][o]={element:g.node(),gd:v,prepFn:E,doneFn:L,clickFn:I},n.init(b[r][o])}}}(A.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;outline-controllers&quot;)),function(){if(_=[],!e.length)return;_[0]={element:r[0][0],gd:v,prepFn:z,doneFn:O},n.init(_[0])}());function E(t){w=+t.srcElement.getAttribute(&quot;data-i&quot;),T=+t.srcElement.getAttribute(&quot;data-j&quot;),b[w][T].moveFn=C}function C(t,r){if(e.length){var n=k[w][T][1],i=k[w][T][2],a=e[w],o=a.length;if(p(a)){for(var s=0;s&lt;o;s++)if(s!==T){var l=a[s];l[1]===a[T][1]&amp;&amp;(l[1]=n+t),l[2]===a[T][2]&amp;&amp;(l[2]=i+r)}if(a[T][1]=n+t,a[T][2]=i+r,!p(a))for(var c=0;c&lt;o;c++)for(var u=0;u&lt;a[c].length;u++)a[c][u]=k[w][c][u]}else a[T][1]=n+t,a[T][2]=i+r;y()}}function L(){x()}function I(t,r){if(2===t){w=+r.srcElement.getAttribute(&quot;data-i&quot;),T=+r.srcElement.getAttribute(&quot;data-j&quot;);var n=e[w];p(n)||d(n)||function(){if(e.length&amp;&amp;e[w]&amp;&amp;e[w].length){for(var t=[],r=0;r&lt;e[w].length;r++)r!==T&amp;&amp;t.push(e[w][r]);t.length&gt;1&amp;&amp;(2!==t.length||&quot;Z&quot;!==t[1][0])&amp;&amp;(0===T&amp;&amp;(t[0][0]=&quot;M&quot;),e[w]=t,y(),x())}}()}}function P(t,r){!function(t,r){if(e.length)for(var n=0;n&lt;e.length;n++)for(var i=0;i&lt;e[n].length;i++)for(var a=0;a+2&lt;e[n][i].length;a+=2)e[n][i][a+1]=k[n][i][a+1]+t,e[n][i][a+2]=k[n][i][a+2]+r}(t,r),y()}function z(t){(w=+t.srcElement.getAttribute(&quot;data-i&quot;))||(w=0),_[w].moveFn=P}function O(){x()}}},{&quot;../../../plots/cartesian/handle_outline&quot;:838,&quot;../../../registry&quot;:911,&quot;../../dragelement&quot;:662,&quot;../../dragelement/helpers&quot;:661,&quot;./constants&quot;:726,&quot;./helpers&quot;:729,&quot;./newshapes&quot;:730}],729:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-svg-path&quot;),i=t(&quot;./constants&quot;),a=i.CIRCLE_SIDES,o=i.SQRT2,s=t(&quot;../../../plots/cartesian/helpers&quot;),l=s.p2r,c=s.r2p,u=[0,3,4,5,6,1,2],f=[0,3,4,1,2];function h(t,e){return Math.abs(t-e)&lt;=1e-6}function p(t,e){var r=e[1]-t[1],n=e[2]-t[2];return Math.sqrt(r*r+n*n)}r.writePaths=function(t){var e=t.length;if(!e)return&quot;M0,0Z&quot;;for(var r=&quot;&quot;,n=0;n&lt;e;n++)for(var i=t[n].length,a=0;a&lt;i;a++){var o=t[n][a][0];if(&quot;Z&quot;===o)r+=&quot;Z&quot;;else for(var s=t[n][a].length,l=0;l&lt;s;l++){var c=l;&quot;Q&quot;===o||&quot;S&quot;===o?c=f[l]:&quot;C&quot;===o&amp;&amp;(c=u[l]),r+=t[n][a][c],l&gt;0&amp;&amp;l&lt;s-1&amp;&amp;(r+=&quot;,&quot;)}}return r},r.readPaths=function(t,e,r,i){var o,s,u,f=n(t),h=[],p=-1,d=0,g=0,m=function(){s=d,u=g};m();for(var v=0;v&lt;f.length;v++){var y,x,b,_,w=[],T=f[v][0],k=T;switch(T){case&quot;M&quot;:p++,h[p]=[],d=+f[v][1],g=+f[v][2],w.push([k,d,g]),m();break;case&quot;Q&quot;:case&quot;S&quot;:y=+f[v][1],b=+f[v][2],d=+f[v][3],g=+f[v][4],w.push([k,d,g,y,b]);break;case&quot;C&quot;:y=+f[v][1],b=+f[v][2],x=+f[v][3],_=+f[v][4],d=+f[v][5],g=+f[v][6],w.push([k,d,g,y,b,x,_]);break;case&quot;T&quot;:case&quot;L&quot;:d=+f[v][1],g=+f[v][2],w.push([k,d,g]);break;case&quot;H&quot;:k=&quot;L&quot;,d=+f[v][1],w.push([k,d,g]);break;case&quot;V&quot;:k=&quot;L&quot;,g=+f[v][1],w.push([k,d,g]);break;case&quot;A&quot;:k=&quot;L&quot;;var M=+f[v][1],A=+f[v][2];+f[v][4]||(M=-M,A=-A);var S=d-M,E=g;for(o=1;o&lt;=a/2;o++){var C=2*Math.PI*o/a;w.push([k,S+M*Math.cos(C),E+A*Math.sin(C)])}break;case&quot;Z&quot;:d===s&amp;&amp;g===u||(d=s,g=u,w.push([k,d,g]))}for(var L=(r||{}).domain,I=e._fullLayout._size,P=r&amp;&amp;&quot;pixel&quot;===r.xsizemode,z=r&amp;&amp;&quot;pixel&quot;===r.ysizemode,O=!1===i,D=0;D&lt;w.length;D++){for(o=0;o+2&lt;7;o+=2){var R=w[D][o+1],F=w[D][o+2];void 0!==R&amp;&amp;void 0!==F&amp;&amp;(d=R,g=F,r&amp;&amp;(r.xaxis&amp;&amp;r.xaxis.p2r?(O&amp;&amp;(R-=r.xaxis._offset),R=P?c(r.xaxis,r.xanchor)+R:l(r.xaxis,R)):(O&amp;&amp;(R-=I.l),L?R=L.x[0]+R/I.w:R/=I.w),r.yaxis&amp;&amp;r.yaxis.p2r?(O&amp;&amp;(F-=r.yaxis._offset),F=z?c(r.yaxis,r.yanchor)-F:l(r.yaxis,F)):(O&amp;&amp;(F-=I.t),F=L?L.y[1]-F/I.h:1-F/I.h)),w[D][o+1]=R,w[D][o+2]=F)}h[p].push(w[D].slice())}}return h},r.pointsShapeRectangle=function(t){if(5!==t.length)return!1;for(var e=1;e&lt;3;e++){if(!h(t[0][e]-t[1][e],t[3][e]-t[2][e]))return!1;if(!h(t[0][e]-t[3][e],t[1][e]-t[2][e]))return!1}return!(!h(t[0][1],t[1][1])&amp;&amp;!h(t[0][1],t[3][1]))&amp;&amp;!!(p(t[0],t[1])*p(t[0],t[3]))},r.pointsShapeEllipse=function(t){var e=t.length;if(e!==a+1)return!1;e=a;for(var r=0;r&lt;e;r++){var n=(2*e-r)%e,i=(e/2+n)%e,o=(e/2+r)%e;if(!h(p(t[r],t[o]),p(t[n],t[i])))return!1}return!0},r.handleEllipse=function(t,e,n){if(!t)return[e,n];var i=r.ellipseOver({x0:e[0],y0:e[1],x1:n[0],y1:n[1]}),s=(i.x1+i.x0)/2,l=(i.y1+i.y0)/2,c=(i.x1-i.x0)/2,u=(i.y1-i.y0)/2;c||(c=u/=o),u||(u=c/=o);for(var f=[],h=0;h&lt;a;h++){var p=2*h*Math.PI/a;f.push([s+c*Math.cos(p),l+u*Math.sin(p)])}return f},r.ellipseOver=function(t){var e=t.x0,r=t.y0,n=t.x1,i=t.y1,a=n-e,s=i-r,l=((e-=a)+n)/2,c=((r-=s)+i)/2;return{x0:l-(a*=o),y0:c-(s*=o),x1:l+a,y1:c+s}}},{&quot;../../../plots/cartesian/helpers&quot;:839,&quot;./constants&quot;:726,&quot;parse-svg-path&quot;:505}],730:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../dragelement/helpers&quot;),i=n.drawMode,a=n.openMode,o=t(&quot;./constants&quot;),s=o.i000,l=o.i090,c=o.i180,u=o.i270,f=o.cos45,h=o.sin45,p=t(&quot;../../../plots/cartesian/helpers&quot;),d=p.p2r,g=p.r2p,m=t(&quot;../../../plots/cartesian/handle_outline&quot;).clearSelect,v=t(&quot;./helpers&quot;),y=v.readPaths,x=v.writePaths,b=v.ellipseOver;e.exports=function(t,e){if(t.length){var r=t[0][0];if(r){var n=r.getAttribute(&quot;d&quot;),o=e.gd,p=o._fullLayout.newshape,v=e.plotinfo,_=v.xaxis,w=v.yaxis,T=!!v.domain||!v.xaxis,k=!!v.domain||!v.yaxis,M=e.isActiveShape,A=e.dragmode,S=(o.layout||{}).shapes||[];if(!i(A)&amp;&amp;void 0!==M){var E=o._fullLayout._activeShapeIndex;if(E&lt;S.length)switch(o._fullLayout.shapes[E].type){case&quot;rect&quot;:A=&quot;drawrect&quot;;break;case&quot;circle&quot;:A=&quot;drawcircle&quot;;break;case&quot;line&quot;:A=&quot;drawline&quot;;break;case&quot;path&quot;:var C=S[E].path||&quot;&quot;;A=&quot;Z&quot;===C[C.length-1]?&quot;drawclosedpath&quot;:&quot;drawopenpath&quot;}}var L,I=a(A),P=y(n,o,v,M),z={editable:!0,xref:T?&quot;paper&quot;:_._id,yref:k?&quot;paper&quot;:w._id,layer:p.layer,opacity:p.opacity,line:{color:p.line.color,width:p.line.width,dash:p.line.dash}};if(I||(z.fillcolor=p.fillcolor,z.fillrule=p.fillrule),1===P.length&amp;&amp;(L=P[0]),L&amp;&amp;&quot;drawrect&quot;===A)z.type=&quot;rect&quot;,z.x0=L[0][1],z.y0=L[0][2],z.x1=L[2][1],z.y1=L[2][2];else if(L&amp;&amp;&quot;drawline&quot;===A)z.type=&quot;line&quot;,z.x0=L[0][1],z.y0=L[0][2],z.x1=L[1][1],z.y1=L[1][2];else if(L&amp;&amp;&quot;drawcircle&quot;===A){z.type=&quot;circle&quot;;var O=L[s][1],D=L[l][1],R=L[c][1],F=L[u][1],B=L[s][2],N=L[l][2],j=L[c][2],U=L[u][2],V=v.xaxis&amp;&amp;(&quot;date&quot;===v.xaxis.type||&quot;log&quot;===v.xaxis.type),q=v.yaxis&amp;&amp;(&quot;date&quot;===v.yaxis.type||&quot;log&quot;===v.yaxis.type);V&amp;&amp;(O=g(v.xaxis,O),D=g(v.xaxis,D),R=g(v.xaxis,R),F=g(v.xaxis,F)),q&amp;&amp;(B=g(v.yaxis,B),N=g(v.yaxis,N),j=g(v.yaxis,j),U=g(v.yaxis,U));var H=(D+F)/2,G=(B+j)/2,Y=b({x0:H,y0:G,x1:H+(F-D+R-O)/2*f,y1:G+(U-N+j-B)/2*h});V&amp;&amp;(Y.x0=d(v.xaxis,Y.x0),Y.x1=d(v.xaxis,Y.x1)),q&amp;&amp;(Y.y0=d(v.yaxis,Y.y0),Y.y1=d(v.yaxis,Y.y1)),z.x0=Y.x0,z.y0=Y.y0,z.x1=Y.x1,z.y1=Y.y1}else z.type=&quot;path&quot;,_&amp;&amp;w&amp;&amp;function(t,e,r){var n=&quot;date&quot;===e.type,i=&quot;date&quot;===r.type;if(!n&amp;&amp;!i)return t;for(var a=0;a&lt;t.length;a++)for(var o=0;o&lt;t[a].length;o++)for(var s=0;s+2&lt;t[a][o].length;s+=2)n&amp;&amp;(t[a][o][s+1]=t[a][o][s+1].replace(&quot; &quot;,&quot;_&quot;)),i&amp;&amp;(t[a][o][s+2]=t[a][o][s+2].replace(&quot; &quot;,&quot;_&quot;))}(P,_,w),z.path=x(P),L=null;m(o);for(var W=e.editHelpers,X=(W||{}).modifyItem,Z=[],J=0;J&lt;S.length;J++){var K=o._fullLayout.shapes[J];if(Z[J]=K._input,void 0!==M&amp;&amp;J===o._fullLayout._activeShapeIndex){var Q=z;switch(K.type){case&quot;line&quot;:case&quot;rect&quot;:case&quot;circle&quot;:X(&quot;x0&quot;,Q.x0),X(&quot;x1&quot;,Q.x1),X(&quot;y0&quot;,Q.y0),X(&quot;y1&quot;,Q.y1);break;case&quot;path&quot;:X(&quot;path&quot;,Q.path)}}}return void 0===M?(Z.push(z),Z):W?W.getUpdateObj():{}}}}},{&quot;../../../plots/cartesian/handle_outline&quot;:838,&quot;../../../plots/cartesian/helpers&quot;:839,&quot;../../dragelement/helpers&quot;:661,&quot;./constants&quot;:726,&quot;./helpers&quot;:729}],731:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib&quot;);r.rangeToShapePosition=function(t){return&quot;log&quot;===t.type?t.r2d:function(t){return t}},r.shapePositionToRange=function(t){return&quot;log&quot;===t.type?t.d2r:function(t){return t}},r.decodeDate=function(t){return function(e){return e.replace&amp;&amp;(e=e.replace(&quot;_&quot;,&quot; &quot;)),t(e)}},r.encodeDate=function(t){return function(e){return t(e).replace(&quot; &quot;,&quot;_&quot;)}},r.extractPathCoords=function(t,e){var r=[];return t.match(n.segmentRE).forEach((function(t){var a=e[t.charAt(0)].drawn;if(void 0!==a){var o=t.substr(1).match(n.paramRE);!o||o.length&lt;a||r.push(i.cleanNumber(o[a]))}})),r},r.getDataToPixel=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if(&quot;domain&quot;===i)a=function(t){return e._length*(n?1-t:t)+e._offset};else{var s=r.shapePositionToRange(e);a=function(t){return e._offset+e.r2p(s(t,!0))},&quot;date&quot;===e.type&amp;&amp;(a=r.decodeDate(a))}else a=n?function(t){return o.t+o.h*(1-t)}:function(t){return o.l+o.w*t};return a},r.getPixelToData=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if(&quot;domain&quot;===i)a=function(t){var r=(t-e._offset)/e._length;return n?1-r:r};else{var s=r.rangeToShapePosition(e);a=function(t){return s(e.p2r(t-e._offset))}}else a=n?function(t){return 1-(t-o.t)/o.h}:function(t){return(t-o.l)/o.w};return a},r.roundPositionForSharpStrokeRendering=function(t,e){var r=1===Math.round(e%2),n=Math.round(t);return r?n+.5:n},r.makeOptionsAndPlotinfo=function(t,e){var r=t._fullLayout.shapes[e]||{},n=t._fullLayout._plots[r.xref+r.yref];return!!n?n._hadPlotinfo=!0:(n={},r.xref&amp;&amp;&quot;paper&quot;!==r.xref&amp;&amp;(n.xaxis=t._fullLayout[r.xref+&quot;axis&quot;]),r.yref&amp;&amp;&quot;paper&quot;!==r.yref&amp;&amp;(n.yaxis=t._fullLayout[r.yref+&quot;axis&quot;])),n.xsizemode=r.xsizemode,n.ysizemode=r.ysizemode,n.xanchor=r.xanchor,n.yanchor=r.yanchor,{options:r,plotinfo:n}}},{&quot;../../lib&quot;:778,&quot;./constants&quot;:722}],732:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;shapes&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),supplyDrawNewShapeDefaults:t(&quot;./draw_newshape/defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;shapes&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:n.draw,drawOne:n.drawOne}},{&quot;../../plots/cartesian/include_components&quot;:840,&quot;./attributes&quot;:720,&quot;./calc_autorange&quot;:721,&quot;./defaults&quot;:723,&quot;./draw&quot;:724,&quot;./draw_newshape/defaults&quot;:727}],733:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../plots/pad_attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendDeepAll,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../plots/animation_attributes&quot;),l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=t(&quot;./constants&quot;),u=l(&quot;step&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},method:{valType:&quot;enumerated&quot;,values:[&quot;restyle&quot;,&quot;relayout&quot;,&quot;animate&quot;,&quot;update&quot;,&quot;skip&quot;],dflt:&quot;restyle&quot;},args:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},label:{valType:&quot;string&quot;},value:{valType:&quot;string&quot;},execute:{valType:&quot;boolean&quot;,dflt:!0}});e.exports=o(l(&quot;slider&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},active:{valType:&quot;number&quot;,min:0,dflt:0},steps:u,lenmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;fraction&quot;},len:{valType:&quot;number&quot;,min:0,dflt:1},x:{valType:&quot;number&quot;,min:-2,max:3,dflt:0},pad:a(i({editType:&quot;arraydraw&quot;}),{},{t:{dflt:20}}),xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,dflt:0},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;},transition:{duration:{valType:&quot;number&quot;,min:0,dflt:150},easing:{valType:&quot;enumerated&quot;,values:s.transition.easing.values,dflt:&quot;cubic-in-out&quot;}},currentvalue:{visible:{valType:&quot;boolean&quot;,dflt:!0},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},offset:{valType:&quot;number&quot;,dflt:10},prefix:{valType:&quot;string&quot;},suffix:{valType:&quot;string&quot;},font:n({})},font:n({}),activebgcolor:{valType:&quot;color&quot;,dflt:c.gripBgActiveColor},bgcolor:{valType:&quot;color&quot;,dflt:c.railBgColor},bordercolor:{valType:&quot;color&quot;,dflt:c.railBorderColor},borderwidth:{valType:&quot;number&quot;,min:0,dflt:c.railBorderWidth},ticklen:{valType:&quot;number&quot;,min:0,dflt:c.tickLength},tickcolor:{valType:&quot;color&quot;,dflt:c.tickColor},tickwidth:{valType:&quot;number&quot;,min:0,dflt:1},minorticklen:{valType:&quot;number&quot;,min:0,dflt:c.minorTickLength}}),&quot;arraydraw&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/animation_attributes&quot;:822,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/pad_attributes&quot;:890,&quot;./constants&quot;:734}],734:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;sliders&quot;,containerClassName:&quot;slider-container&quot;,groupClassName:&quot;slider-group&quot;,inputAreaClass:&quot;slider-input-area&quot;,railRectClass:&quot;slider-rail-rect&quot;,railTouchRectClass:&quot;slider-rail-touch-rect&quot;,gripRectClass:&quot;slider-grip-rect&quot;,tickRectClass:&quot;slider-tick-rect&quot;,inputProxyClass:&quot;slider-input-proxy&quot;,labelsClass:&quot;slider-labels&quot;,labelGroupClass:&quot;slider-label-group&quot;,labelClass:&quot;slider-label&quot;,currentValueClass:&quot;slider-current-value&quot;,railHeight:5,menuIndexAttrName:&quot;slider-active-index&quot;,autoMarginIdRoot:&quot;slider-&quot;,minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:&quot;#bec8d9&quot;,railBgColor:&quot;#f8fafc&quot;,railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:&quot;#bec8d9&quot;,gripBgColor:&quot;#f6f8fa&quot;,gripBgActiveColor:&quot;#dbdde0&quot;,labelPadding:8,labelOffset:0,tickWidth:1,tickColor:&quot;#333&quot;,tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:&quot;#333&quot;,minorTickLength:4,currentValuePadding:8,currentValueInset:0}},{}],735:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;).name,s=a.steps;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}for(var s=i(t,e,{name:&quot;steps&quot;,handleItemDefaults:c}),l=0,u=0;u&lt;s.length;u++)s[u].visible&amp;&amp;l++;if(l&lt;2?e.visible=!1:o(&quot;visible&quot;)){e._stepCount=l;var f=e._visibleSteps=n.filterVisible(s);(s[o(&quot;active&quot;)]||{}).visible||(e.active=f[0]._index),o(&quot;x&quot;),o(&quot;y&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),o(&quot;xanchor&quot;),o(&quot;yanchor&quot;),o(&quot;len&quot;),o(&quot;lenmode&quot;),o(&quot;pad.t&quot;),o(&quot;pad.r&quot;),o(&quot;pad.b&quot;),o(&quot;pad.l&quot;),n.coerceFont(o,&quot;font&quot;,r.font),o(&quot;currentvalue.visible&quot;)&amp;&amp;(o(&quot;currentvalue.xanchor&quot;),o(&quot;currentvalue.prefix&quot;),o(&quot;currentvalue.suffix&quot;),o(&quot;currentvalue.offset&quot;),n.coerceFont(o,&quot;currentvalue.font&quot;,e.font)),o(&quot;transition.duration&quot;),o(&quot;transition.easing&quot;),o(&quot;bgcolor&quot;),o(&quot;activebgcolor&quot;),o(&quot;bordercolor&quot;),o(&quot;borderwidth&quot;),o(&quot;ticklen&quot;),o(&quot;tickwidth&quot;),o(&quot;tickcolor&quot;),o(&quot;minorticklen&quot;)}}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}if(&quot;skip&quot;===t.method||Array.isArray(t.args)?r(&quot;visible&quot;):e.visible=!1){r(&quot;method&quot;),r(&quot;args&quot;);var i=r(&quot;label&quot;,&quot;step-&quot;+e._index);r(&quot;value&quot;,i),r(&quot;execute&quot;)}}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;./attributes&quot;:733,&quot;./constants&quot;:734}],736:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../color&quot;),o=t(&quot;../drawing&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,f=t(&quot;./constants&quot;),h=t(&quot;../../constants/alignment&quot;),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR;function m(t){return f.autoMarginIdRoot+t._index}function v(t){return t._index}function y(t,e){var r=o.tester.selectAll(&quot;g.&quot;+f.labelGroupClass).data(e._visibleSteps);r.enter().append(&quot;g&quot;).classed(f.labelGroupClass,!0);var a=0,l=0;r.each((function(t){var r=_(n.select(this),{step:t},e).node();if(r){var i=o.bBox(r);l=Math.max(l,i.height),a=Math.max(a,i.width)}})),r.remove();var u=e._dims={};u.inputAreaWidth=Math.max(f.railWidth,f.gripHeight);var h=t._fullLayout._size;u.lx=h.l+h.w*e.x,u.ly=h.t+h.h*(1-e.y),&quot;fraction&quot;===e.lenmode?u.outerLength=Math.round(h.w*e.len):u.outerLength=e.len,u.inputAreaStart=0,u.inputAreaLength=Math.round(u.outerLength-e.pad.l-e.pad.r);var p=(u.inputAreaLength-2*f.stepInset)/(e._stepCount-1),v=a+f.labelPadding;if(u.labelStride=Math.max(1,Math.ceil(v/p)),u.labelHeight=l,u.currentValueMaxWidth=0,u.currentValueHeight=0,u.currentValueTotalHeight=0,u.currentValueMaxLines=1,e.currentvalue.visible){var y=o.tester.append(&quot;g&quot;);r.each((function(t){var r=x(y,e,t.label),n=r.node()&amp;&amp;o.bBox(r.node())||{width:0,height:0},i=c.lineCount(r);u.currentValueMaxWidth=Math.max(u.currentValueMaxWidth,Math.ceil(n.width)),u.currentValueHeight=Math.max(u.currentValueHeight,Math.ceil(n.height)),u.currentValueMaxLines=Math.max(u.currentValueMaxLines,i)})),u.currentValueTotalHeight=u.currentValueHeight+e.currentvalue.offset,y.remove()}u.height=u.currentValueTotalHeight+f.tickOffset+e.ticklen+f.labelOffset+u.labelHeight+e.pad.t+e.pad.b;var b=&quot;left&quot;;s.isRightAnchor(e)&amp;&amp;(u.lx-=u.outerLength,b=&quot;right&quot;),s.isCenterAnchor(e)&amp;&amp;(u.lx-=u.outerLength/2,b=&quot;center&quot;);var w=&quot;top&quot;;s.isBottomAnchor(e)&amp;&amp;(u.ly-=u.height,w=&quot;bottom&quot;),s.isMiddleAnchor(e)&amp;&amp;(u.ly-=u.height/2,w=&quot;middle&quot;),u.outerLength=Math.ceil(u.outerLength),u.height=Math.ceil(u.height),u.lx=Math.round(u.lx),u.ly=Math.round(u.ly);var T={y:e.y,b:u.height*g[w],t:u.height*d[w]};&quot;fraction&quot;===e.lenmode?(T.l=0,T.xl=e.x-e.len*d[b],T.r=0,T.xr=e.x+e.len*g[b]):(T.x=e.x,T.l=u.outerLength*d[b],T.r=u.outerLength*g[b]),i.autoMargin(t,m(e),T)}function x(t,e,r){if(e.currentvalue.visible){var n,i,a=e._dims;switch(e.currentvalue.xanchor){case&quot;right&quot;:n=a.inputAreaLength-f.currentValueInset-a.currentValueMaxWidth,i=&quot;left&quot;;break;case&quot;center&quot;:n=.5*a.inputAreaLength,i=&quot;middle&quot;;break;default:n=f.currentValueInset,i=&quot;left&quot;}var l=s.ensureSingle(t,&quot;text&quot;,f.labelClass,(function(t){t.attr({&quot;text-anchor&quot;:i,&quot;data-notex&quot;:1})})),u=e.currentvalue.prefix?e.currentvalue.prefix:&quot;&quot;;if(&quot;string&quot;==typeof r)u+=r;else{var h=e.steps[e.active].label,d=e._gd._fullLayout._meta;d&amp;&amp;(h=s.templateString(h,d)),u+=h}e.currentvalue.suffix&amp;&amp;(u+=e.currentvalue.suffix),l.call(o.font,e.currentvalue.font).text(u).call(c.convertToTspans,e._gd);var g=c.lineCount(l),m=(a.currentValueMaxLines+1-g)*e.currentvalue.font.size*p;return c.positionText(l,n,m),l}}function b(t,e,r){s.ensureSingle(t,&quot;rect&quot;,f.gripRectClass,(function(n){n.call(M,e,t,r).style(&quot;pointer-events&quot;,&quot;all&quot;)})).attr({width:f.gripWidth,height:f.gripHeight,rx:f.gripRadius,ry:f.gripRadius}).call(a.stroke,r.bordercolor).call(a.fill,r.bgcolor).style(&quot;stroke-width&quot;,r.borderwidth+&quot;px&quot;)}function _(t,e,r){var n=s.ensureSingle(t,&quot;text&quot;,f.labelClass,(function(t){t.attr({&quot;text-anchor&quot;:&quot;middle&quot;,&quot;data-notex&quot;:1})})),i=e.step.label,a=r._gd._fullLayout._meta;return a&amp;&amp;(i=s.templateString(i,a)),n.call(o.font,r.font).text(i).call(c.convertToTspans,r._gd),n}function w(t,e){var r=s.ensureSingle(t,&quot;g&quot;,f.labelsClass),i=e._dims,a=r.selectAll(&quot;g.&quot;+f.labelGroupClass).data(i.labelSteps);a.enter().append(&quot;g&quot;).classed(f.labelGroupClass,!0),a.exit().remove(),a.each((function(t){var r=n.select(this);r.call(_,t,e),o.setTranslate(r,E(e,t.fraction),f.tickOffset+e.ticklen+e.font.size*p+f.labelOffset+i.currentValueTotalHeight)}))}function T(t,e,r,n,i){var a=Math.round(n*(r._stepCount-1)),o=r._visibleSteps[a]._index;o!==r.active&amp;&amp;k(t,e,r,o,!0,i)}function k(t,e,r,n,a,o){var s=r.active;r.active=n,u(t.layout,f.name,r).applyUpdate(&quot;active&quot;,n);var l=r.steps[r.active];e.call(S,r,o),e.call(x,r),t.emit(&quot;plotly_sliderchange&quot;,{slider:r,step:r.steps[r.active],interaction:a,previousActive:s}),l&amp;&amp;l.method&amp;&amp;a&amp;&amp;(e._nextMethod?(e._nextMethod.step=l,e._nextMethod.doCallback=a,e._nextMethod.doTransition=o):(e._nextMethod={step:l,doCallback:a,doTransition:o},e._nextMethodRaf=window.requestAnimationFrame((function(){var r=e._nextMethod.step;r.method&amp;&amp;(r.execute&amp;&amp;i.executeAPICommand(t,r.method,r.args),e._nextMethod=null,e._nextMethodRaf=null)}))))}function M(t,e,r){var i=r.node(),o=n.select(e);function s(){return r.data()[0]}t.on(&quot;mousedown&quot;,(function(){var t=s();e.emit(&quot;plotly_sliderstart&quot;,{slider:t});var l=r.select(&quot;.&quot;+f.gripRectClass);n.event.stopPropagation(),n.event.preventDefault(),l.call(a.fill,t.activebgcolor);var c=C(t,n.mouse(i)[0]);T(e,r,t,c,!0),t._dragging=!0,o.on(&quot;mousemove&quot;,(function(){var t=s(),a=C(t,n.mouse(i)[0]);T(e,r,t,a,!1)})),o.on(&quot;mouseup&quot;,(function(){var t=s();t._dragging=!1,l.call(a.fill,t.bgcolor),o.on(&quot;mouseup&quot;,null),o.on(&quot;mousemove&quot;,null),e.emit(&quot;plotly_sliderend&quot;,{slider:t,step:t.steps[t.active]})}))}))}function A(t,e){var r=t.selectAll(&quot;rect.&quot;+f.tickRectClass).data(e._visibleSteps),i=e._dims;r.enter().append(&quot;rect&quot;).classed(f.tickRectClass,!0),r.exit().remove(),r.attr({width:e.tickwidth+&quot;px&quot;,&quot;shape-rendering&quot;:&quot;crispEdges&quot;}),r.each((function(t,r){var s=r%i.labelStride==0,l=n.select(this);l.attr({height:s?e.ticklen:e.minorticklen}).call(a.fill,e.tickcolor),o.setTranslate(l,E(e,r/(e._stepCount-1))-.5*e.tickwidth,(s?f.tickOffset:f.minorTickOffset)+i.currentValueTotalHeight)}))}function S(t,e,r){for(var n=t.select(&quot;rect.&quot;+f.gripRectClass),i=0,a=0;a&lt;e._stepCount;a++)if(e._visibleSteps[a]._index===e.active){i=a;break}var o=E(e,i/(e._stepCount-1));if(!e._invokingCommand){var s=n;r&amp;&amp;e.transition.duration&gt;0&amp;&amp;(s=s.transition().duration(e.transition.duration).ease(e.transition.easing)),s.attr(&quot;transform&quot;,l(o-.5*f.gripWidth,e._dims.currentValueTotalHeight))}}function E(t,e){var r=t._dims;return r.inputAreaStart+f.stepInset+(r.inputAreaLength-2*f.stepInset)*Math.min(1,Math.max(0,e))}function C(t,e){var r=t._dims;return Math.min(1,Math.max(0,(e-f.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*f.stepInset-2*r.inputAreaStart)))}function L(t,e,r){var n=r._dims,i=s.ensureSingle(t,&quot;rect&quot;,f.railTouchRectClass,(function(n){n.call(M,e,t,r).style(&quot;pointer-events&quot;,&quot;all&quot;)}));i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,f.tickOffset+r.ticklen+n.labelHeight)}).call(a.fill,r.bgcolor).attr(&quot;opacity&quot;,0),o.setTranslate(i,0,n.currentValueTotalHeight)}function I(t,e){var r=e._dims,n=r.inputAreaLength-2*f.railInset,i=s.ensureSingle(t,&quot;rect&quot;,f.railRectClass);i.attr({width:n,height:f.railWidth,rx:f.railRadius,ry:f.railRadius,&quot;shape-rendering&quot;:&quot;crispEdges&quot;}).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;),o.setTranslate(i,f.railInset,.5*(r.inputAreaWidth-f.railWidth)+r.currentValueTotalHeight)}e.exports=function(t){var e=t._fullLayout,r=function(t,e){for(var r=t[f.name],n=[],i=0;i&lt;r.length;i++){var a=r[i];a.visible&amp;&amp;(a._gd=e,n.push(a))}return n}(e,t),a=e._infolayer.selectAll(&quot;g.&quot;+f.containerClassName).data(r.length&gt;0?[0]:[]);function s(e){e._commandObserver&amp;&amp;(e._commandObserver.remove(),delete e._commandObserver),i.autoMargin(t,m(e))}if(a.enter().append(&quot;g&quot;).classed(f.containerClassName,!0).style(&quot;cursor&quot;,&quot;ew-resize&quot;),a.exit().each((function(){n.select(this).selectAll(&quot;g.&quot;+f.groupClassName).each(s)})).remove(),0!==r.length){var l=a.selectAll(&quot;g.&quot;+f.groupClassName).data(r,v);l.enter().append(&quot;g&quot;).classed(f.groupClassName,!0),l.exit().each(s).remove();for(var c=0;c&lt;r.length;c++){var u=r[c];y(t,u)}l.each((function(e){var r=n.select(this);!function(t){var e=t._dims;e.labelSteps=[];for(var r=t._stepCount,n=0;n&lt;r;n+=e.labelStride)e.labelSteps.push({fraction:n/(r-1),step:t._visibleSteps[n]})}(e),i.manageCommandObserver(t,e,e._visibleSteps,(function(e){var n=r.data()[0];n.active!==e.index&amp;&amp;(n._dragging||k(t,r,n,e.index,!1,!0))})),function(t,e,r){(r.steps[r.active]||{}).visible||(r.active=r._visibleSteps[0]._index);e.call(x,r).call(I,r).call(w,r).call(A,r).call(L,t,r).call(b,t,r);var n=r._dims;o.setTranslate(e,n.lx+r.pad.l,n.ly+r.pad.t),e.call(S,r,!1),e.call(x,r)}(t,n.select(this),e)}))}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/plots&quot;:891,&quot;../color&quot;:643,&quot;../drawing&quot;:665,&quot;./constants&quot;:734,d3:169}],737:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);e.exports={moduleType:&quot;component&quot;,name:n.name,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;)}},{&quot;./attributes&quot;:733,&quot;./constants&quot;:734,&quot;./defaults&quot;:735,&quot;./draw&quot;:736}],738:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../drawing&quot;),u=t(&quot;../color&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../constants/interactions&quot;),p=t(&quot;../../constants/alignment&quot;).OPPOSITE_SIDE,d=/ [XY][0-9]* /;e.exports={draw:function(t,e,r){var g,m=r.propContainer,v=r.propName,y=r.placeholder,x=r.traceIndex,b=r.avoid||{},_=r.attributes,w=r.transform,T=r.containerGroup,k=t._fullLayout,M=1,A=!1,S=m.title,E=(S&amp;&amp;S.text?S.text:&quot;&quot;).trim(),C=S&amp;&amp;S.font?S.font:{},L=C.family,I=C.size,P=C.color;&quot;title.text&quot;===v?g=&quot;titleText&quot;:-1!==v.indexOf(&quot;axis&quot;)?g=&quot;axisTitleText&quot;:v.indexOf(!0)&amp;&amp;(g=&quot;colorbarTitleText&quot;);var z=t._context.edits[g];&quot;&quot;===E?M=0:E.replace(d,&quot; % &quot;)===y.replace(d,&quot; % &quot;)&amp;&amp;(M=.2,A=!0,z||(E=&quot;&quot;)),r._meta?E=s.templateString(E,r._meta):k._meta&amp;&amp;(E=s.templateString(E,k._meta));var O=E||z;T||(T=s.ensureSingle(k._infolayer,&quot;g&quot;,&quot;g-&quot;+e));var D=T.selectAll(&quot;text&quot;).data(O?[0]:[]);if(D.enter().append(&quot;text&quot;),D.text(E).attr(&quot;class&quot;,e),D.exit().remove(),!O)return T;function R(t){s.syncOrAsync([F,B],t)}function F(e){var r;return w?(r=&quot;&quot;,w.rotate&amp;&amp;(r+=&quot;rotate(&quot;+[w.rotate,_.x,_.y]+&quot;)&quot;),w.offset&amp;&amp;(r+=l(0,w.offset))):r=null,e.attr(&quot;transform&quot;,r),e.style({&quot;font-family&quot;:L,&quot;font-size&quot;:n.round(I,2)+&quot;px&quot;,fill:u.rgb(P),opacity:M*u.opacity(P),&quot;font-weight&quot;:a.fontWeight}).attr(_).call(f.convertToTspans,t),a.previousPromises(t)}function B(t){var e=n.select(t.node().parentNode);if(b&amp;&amp;b.selection&amp;&amp;b.side&amp;&amp;E){e.attr(&quot;transform&quot;,null);var r=p[b.side],a=&quot;left&quot;===b.side||&quot;top&quot;===b.side?-1:1,o=i(b.pad)?b.pad:2,u=c.bBox(e.node()),f={left:0,top:0,right:k.width,bottom:k.height},h=b.maxShift||a*(f[b.side]-u[b.side]),d=0;if(h&lt;0)d=h;else{var g=b.offsetLeft||0,m=b.offsetTop||0;u.left-=g,u.right-=g,u.top-=m,u.bottom-=m,b.selection.each((function(){var t=c.bBox(this);s.bBoxIntersect(u,t,o)&amp;&amp;(d=Math.max(d,a*(t[b.side]-u[r])+o))})),d=Math.min(h,d)}if(d&gt;0||h&lt;0){var v={left:[-d,0],right:[d,0],top:[0,-d],bottom:[0,d]}[b.side];e.attr(&quot;transform&quot;,l(v[0],v[1]))}}}return D.call(R),z&amp;&amp;(E?D.on(&quot;.opacity&quot;,null):(M=0,A=!0,D.text(y).on(&quot;mouseover.opacity&quot;,(function(){n.select(this).transition().duration(h.SHOW_PLACEHOLDER).style(&quot;opacity&quot;,1)})).on(&quot;mouseout.opacity&quot;,(function(){n.select(this).transition().duration(h.HIDE_PLACEHOLDER).style(&quot;opacity&quot;,0)}))),D.call(f.makeEditable,{gd:t}).on(&quot;edit&quot;,(function(e){void 0!==x?o.call(&quot;_guiRestyle&quot;,t,v,e,x):o.call(&quot;_guiRelayout&quot;,t,v,e)})).on(&quot;cancel&quot;,(function(){this.text(this.attr(&quot;data-unformatted&quot;)).call(R)})).on(&quot;input&quot;,(function(t){this.text(t||&quot; &quot;).call(f.positionText,_.x,_.y)}))),D.classed(&quot;js-placeholder&quot;,A),T}}},{&quot;../../constants/alignment&quot;:745,&quot;../../constants/interactions&quot;:752,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../drawing&quot;:665,d3:169,&quot;fast-isnumeric&quot;:241}],739:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../plots/pad_attributes&quot;),l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=l(&quot;button&quot;,{visible:{valType:&quot;boolean&quot;},method:{valType:&quot;enumerated&quot;,values:[&quot;restyle&quot;,&quot;relayout&quot;,&quot;animate&quot;,&quot;update&quot;,&quot;skip&quot;],dflt:&quot;restyle&quot;},args:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},args2:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},label:{valType:&quot;string&quot;,dflt:&quot;&quot;},execute:{valType:&quot;boolean&quot;,dflt:!0}});e.exports=o(l(&quot;updatemenu&quot;,{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:&quot;boolean&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;dropdown&quot;,&quot;buttons&quot;],dflt:&quot;dropdown&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;right&quot;,&quot;up&quot;,&quot;down&quot;],dflt:&quot;down&quot;},active:{valType:&quot;integer&quot;,min:-1,dflt:0},showactive:{valType:&quot;boolean&quot;,dflt:!0},buttons:c,x:{valType:&quot;number&quot;,min:-2,max:3,dflt:-.05},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;right&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,dflt:1},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;},pad:a(s({editType:&quot;arraydraw&quot;}),{}),font:n({}),bgcolor:{valType:&quot;color&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.borderLine},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;arraydraw&quot;}}),&quot;arraydraw&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/pad_attributes&quot;:890,&quot;../color/attributes&quot;:642}],740:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;updatemenus&quot;,containerClassName:&quot;updatemenu-container&quot;,headerGroupClassName:&quot;updatemenu-header-group&quot;,headerClassName:&quot;updatemenu-header&quot;,headerArrowClassName:&quot;updatemenu-header-arrow&quot;,dropdownButtonGroupClassName:&quot;updatemenu-dropdown-button-group&quot;,dropdownButtonClassName:&quot;updatemenu-dropdown-button&quot;,buttonClassName:&quot;updatemenu-button&quot;,itemRectClassName:&quot;updatemenu-item-rect&quot;,itemTextClassName:&quot;updatemenu-item-text&quot;,menuIndexAttrName:&quot;updatemenu-active-index&quot;,autoMarginIdRoot:&quot;updatemenu-&quot;,blankHeaderOpts:{label:&quot;  &quot;},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:&quot;#F4FAFF&quot;,hoverColor:&quot;#F4FAFF&quot;,arrowSymbol:{left:&quot;\u25c4&quot;,right:&quot;\u25ba&quot;,up:&quot;\u25b2&quot;,down:&quot;\u25bc&quot;}}},{}],741:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;).name,s=a.buttons;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}o(&quot;visible&quot;,i(t,e,{name:&quot;buttons&quot;,handleItemDefaults:c}).length&gt;0)&amp;&amp;(o(&quot;active&quot;),o(&quot;direction&quot;),o(&quot;type&quot;),o(&quot;showactive&quot;),o(&quot;x&quot;),o(&quot;y&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),o(&quot;xanchor&quot;),o(&quot;yanchor&quot;),o(&quot;pad.t&quot;),o(&quot;pad.r&quot;),o(&quot;pad.b&quot;),o(&quot;pad.l&quot;),n.coerceFont(o,&quot;font&quot;,r.font),o(&quot;bgcolor&quot;,r.paper_bgcolor),o(&quot;bordercolor&quot;),o(&quot;borderwidth&quot;))}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}r(&quot;visible&quot;,&quot;skip&quot;===t.method||Array.isArray(t.args))&amp;&amp;(r(&quot;method&quot;),r(&quot;args&quot;),r(&quot;args2&quot;),r(&quot;label&quot;),r(&quot;execute&quot;))}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;./attributes&quot;:739,&quot;./constants&quot;:740}],742:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../color&quot;),o=t(&quot;../drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,u=t(&quot;../../constants/alignment&quot;).LINE_SPACING,f=t(&quot;./constants&quot;),h=t(&quot;./scrollbox&quot;);function p(t){return t._index}function d(t,e){return+t.attr(f.menuIndexAttrName)===e._index}function g(t,e,r,n,i,a,o,s){e.active=o,c(t.layout,f.name,e).applyUpdate(&quot;active&quot;,o),&quot;buttons&quot;===e.type?v(t,n,null,null,e):&quot;dropdown&quot;===e.type&amp;&amp;(i.attr(f.menuIndexAttrName,&quot;-1&quot;),m(t,n,i,a,e),s||v(t,n,i,a,e))}function m(t,e,r,n,i){var a=s.ensureSingle(e,&quot;g&quot;,f.headerClassName,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)})),l=i._dims,c=i.active,u=i.buttons[c]||f.blankHeaderOpts,h={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},p={width:l.headerWidth,height:l.headerHeight};a.call(y,i,u,t).call(A,i,h,p),s.ensureSingle(e,&quot;text&quot;,f.headerArrowClassName,(function(t){t.attr(&quot;text-anchor&quot;,&quot;end&quot;).call(o.font,i.font).text(f.arrowSymbol[i.direction])})).attr({x:l.headerWidth-f.arrowOffsetX+i.pad.l,y:l.headerHeight/2+f.textOffsetY+i.pad.t}),a.on(&quot;click&quot;,(function(){r.call(S,String(d(r,i)?-1:i._index)),v(t,e,r,n,i)})),a.on(&quot;mouseover&quot;,(function(){a.call(w)})),a.on(&quot;mouseout&quot;,(function(){a.call(T,i)})),o.setTranslate(e,l.lx,l.ly)}function v(t,e,r,a,o){r||(r=e).attr(&quot;pointer-events&quot;,&quot;all&quot;);var l=function(t){return-1==+t.attr(f.menuIndexAttrName)}(r)&amp;&amp;&quot;buttons&quot;!==o.type?[]:o.buttons,c=&quot;dropdown&quot;===o.type?f.dropdownButtonClassName:f.buttonClassName,u=r.selectAll(&quot;g.&quot;+c).data(s.filterVisible(l)),h=u.enter().append(&quot;g&quot;).classed(c,!0),p=u.exit();&quot;dropdown&quot;===o.type?(h.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;),p.transition().attr(&quot;opacity&quot;,&quot;0&quot;).remove()):p.remove();var d=0,m=0,v=o._dims,x=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(o.direction);&quot;dropdown&quot;===o.type&amp;&amp;(x?m=v.headerHeight+f.gapButtonHeader:d=v.headerWidth+f.gapButtonHeader),&quot;dropdown&quot;===o.type&amp;&amp;&quot;up&quot;===o.direction&amp;&amp;(m=-f.gapButtonHeader+f.gapButton-v.openHeight),&quot;dropdown&quot;===o.type&amp;&amp;&quot;left&quot;===o.direction&amp;&amp;(d=-f.gapButtonHeader+f.gapButton-v.openWidth);var b={x:v.lx+d+o.pad.l,y:v.ly+m+o.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},k={l:b.x+o.borderwidth,t:b.y+o.borderwidth};u.each((function(s,l){var c=n.select(this);c.call(y,o,s,t).call(A,o,b),c.on(&quot;click&quot;,(function(){n.event.defaultPrevented||(s.execute&amp;&amp;(s.args2&amp;&amp;o.active===l?(g(t,o,0,e,r,a,-1),i.executeAPICommand(t,s.method,s.args2)):(g(t,o,0,e,r,a,l),i.executeAPICommand(t,s.method,s.args))),t.emit(&quot;plotly_buttonclicked&quot;,{menu:o,button:s,active:o.active}))})),c.on(&quot;mouseover&quot;,(function(){c.call(w)})),c.on(&quot;mouseout&quot;,(function(){c.call(T,o),u.call(_,o)}))})),u.call(_,o),x?(k.w=Math.max(v.openWidth,v.headerWidth),k.h=b.y-k.t):(k.w=b.x-k.l,k.h=Math.max(v.openHeight,v.headerHeight)),k.direction=o.direction,a&amp;&amp;(u.size()?function(t,e,r,n,i,a){var o,s,l,c=i.direction,u=&quot;up&quot;===c||&quot;down&quot;===c,h=i._dims,p=i.active;if(u)for(s=0,l=0;l&lt;p;l++)s+=h.heights[l]+f.gapButton;else for(o=0,l=0;l&lt;p;l++)o+=h.widths[l]+f.gapButton;n.enable(a,o,s),n.hbar&amp;&amp;n.hbar.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;);n.vbar&amp;&amp;n.vbar.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;)}(0,0,0,a,o,k):function(t){var e=!!t.hbar,r=!!t.vbar;e&amp;&amp;t.hbar.transition().attr(&quot;opacity&quot;,&quot;0&quot;).each(&quot;end&quot;,(function(){e=!1,r||t.disable()}));r&amp;&amp;t.vbar.transition().attr(&quot;opacity&quot;,&quot;0&quot;).each(&quot;end&quot;,(function(){r=!1,e||t.disable()}))}(a))}function y(t,e,r,n){t.call(x,e).call(b,e,r,n)}function x(t,e){s.ensureSingle(t,&quot;rect&quot;,f.itemRectClassName,(function(t){t.attr({rx:f.rx,ry:f.ry,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;)}function b(t,e,r,n){var i=s.ensureSingle(t,&quot;text&quot;,f.itemTextClassName,(function(t){t.attr({&quot;text-anchor&quot;:&quot;start&quot;,&quot;data-notex&quot;:1})})),a=r.label,c=n._fullLayout._meta;c&amp;&amp;(a=s.templateString(a,c)),i.call(o.font,e.font).text(a).call(l.convertToTspans,n)}function _(t,e){var r=e.active;t.each((function(t,i){var o=n.select(this);i===r&amp;&amp;e.showactive&amp;&amp;o.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,f.activeColor)}))}function w(t){t.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,f.hoverColor)}function T(t,e){t.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,e.bgcolor)}function k(t,e){var r=e._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},a=o.tester.selectAll(&quot;g.&quot;+f.dropdownButtonClassName).data(s.filterVisible(e.buttons));a.enter().append(&quot;g&quot;).classed(f.dropdownButtonClassName,!0);var c=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(e.direction);a.each((function(i,a){var s=n.select(this);s.call(y,e,i,t);var h=s.select(&quot;.&quot;+f.itemTextClassName),p=h.node()&amp;&amp;o.bBox(h.node()).width,d=Math.max(p+f.textPadX,f.minWidth),g=e.font.size*u,m=l.lineCount(h),v=Math.max(g*m,f.minHeight)+f.textOffsetY;v=Math.ceil(v),d=Math.ceil(d),r.widths[a]=d,r.heights[a]=v,r.height1=Math.max(r.height1,v),r.width1=Math.max(r.width1,d),c?(r.totalWidth=Math.max(r.totalWidth,d),r.openWidth=r.totalWidth,r.totalHeight+=v+f.gapButton,r.openHeight+=v+f.gapButton):(r.totalWidth+=d+f.gapButton,r.openWidth+=d+f.gapButton,r.totalHeight=Math.max(r.totalHeight,v),r.openHeight=r.totalHeight)})),c?r.totalHeight-=f.gapButton:r.totalWidth-=f.gapButton,r.headerWidth=r.width1+f.arrowPadX,r.headerHeight=r.height1,&quot;dropdown&quot;===e.type&amp;&amp;(c?(r.width1+=f.arrowPadX,r.totalHeight=r.height1):r.totalWidth=r.width1,r.totalWidth+=f.arrowPadX),a.remove();var h=r.totalWidth+e.pad.l+e.pad.r,p=r.totalHeight+e.pad.t+e.pad.b,d=t._fullLayout._size;r.lx=d.l+d.w*e.x,r.ly=d.t+d.h*(1-e.y);var g=&quot;left&quot;;s.isRightAnchor(e)&amp;&amp;(r.lx-=h,g=&quot;right&quot;),s.isCenterAnchor(e)&amp;&amp;(r.lx-=h/2,g=&quot;center&quot;);var m=&quot;top&quot;;s.isBottomAnchor(e)&amp;&amp;(r.ly-=p,m=&quot;bottom&quot;),s.isMiddleAnchor(e)&amp;&amp;(r.ly-=p/2,m=&quot;middle&quot;),r.totalWidth=Math.ceil(r.totalWidth),r.totalHeight=Math.ceil(r.totalHeight),r.lx=Math.round(r.lx),r.ly=Math.round(r.ly),i.autoMargin(t,M(e),{x:e.x,y:e.y,l:h*({right:1,center:.5}[g]||0),r:h*({left:1,center:.5}[g]||0),b:p*({top:1,middle:.5}[m]||0),t:p*({bottom:1,middle:.5}[m]||0)})}function M(t){return f.autoMarginIdRoot+t._index}function A(t,e,r,n){n=n||{};var i=t.select(&quot;.&quot;+f.itemRectClassName),a=t.select(&quot;.&quot;+f.itemTextClassName),s=e.borderwidth,c=r.index,h=e._dims;o.setTranslate(t,s+r.x,s+r.y);var p=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(e.direction),d=n.height||(p?h.heights[c]:h.height1);i.attr({x:0,y:0,width:n.width||(p?h.width1:h.widths[c]),height:d});var g=e.font.size*u,m=(l.lineCount(a)-1)*g/2;l.positionText(a,f.textOffsetX,d/2-m+f.textOffsetY),p?r.y+=h.heights[c]+r.yPad:r.x+=h.widths[c]+r.xPad,r.index++}function S(t,e){t.attr(f.menuIndexAttrName,e||&quot;-1&quot;).selectAll(&quot;g.&quot;+f.dropdownButtonClassName).remove()}e.exports=function(t){var e=t._fullLayout,r=s.filterVisible(e[f.name]);function a(e){i.autoMargin(t,M(e))}var o=e._menulayer.selectAll(&quot;g.&quot;+f.containerClassName).data(r.length&gt;0?[0]:[]);if(o.enter().append(&quot;g&quot;).classed(f.containerClassName,!0).style(&quot;cursor&quot;,&quot;pointer&quot;),o.exit().each((function(){n.select(this).selectAll(&quot;g.&quot;+f.headerGroupClassName).each(a)})).remove(),0!==r.length){var l=o.selectAll(&quot;g.&quot;+f.headerGroupClassName).data(r,p);l.enter().append(&quot;g&quot;).classed(f.headerGroupClassName,!0);for(var c=s.ensureSingle(o,&quot;g&quot;,f.dropdownButtonGroupClassName,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)})),u=0;u&lt;r.length;u++){var y=r[u];k(t,y)}var x=&quot;updatemenus&quot;+e._uid,b=new h(t,c,x);l.enter().size()&amp;&amp;(c.node().parentNode.appendChild(c.node()),c.call(S)),l.exit().each((function(t){c.call(S),a(t)})).remove(),l.each((function(e){var r=n.select(this),a=&quot;dropdown&quot;===e.type?c:null;i.manageCommandObserver(t,e,e.buttons,(function(n){g(t,e,e.buttons[n.index],r,a,b,n.index,!0)})),&quot;dropdown&quot;===e.type?(m(t,r,c,b,e),d(c,e)&amp;&amp;v(t,r,c,b,e)):v(t,r,null,null,e)}))}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/plots&quot;:891,&quot;../color&quot;:643,&quot;../drawing&quot;:665,&quot;./constants&quot;:740,&quot;./scrollbox&quot;:744,d3:169}],743:[function(t,e,r){arguments[4][737][0].apply(r,arguments)},{&quot;./attributes&quot;:739,&quot;./constants&quot;:740,&quot;./defaults&quot;:741,&quot;./draw&quot;:742,dup:737}],744:[function(t,e,r){&quot;use strict&quot;;e.exports=s;var n=t(&quot;d3&quot;),i=t(&quot;../color&quot;),a=t(&quot;../drawing&quot;),o=t(&quot;../../lib&quot;);function s(t,e,r){this.gd=t,this.container=e,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll(&quot;rect.scrollbox-bg&quot;).data([0]),this.bg.exit().on(&quot;.drag&quot;,null).on(&quot;wheel&quot;,null).remove(),this.bg.enter().append(&quot;rect&quot;).classed(&quot;scrollbox-bg&quot;,!0).style(&quot;pointer-events&quot;,&quot;all&quot;).attr({opacity:0,x:0,y:0,width:0,height:0})}s.barWidth=2,s.barLength=20,s.barRadius=2,s.barPad=1,s.barColor=&quot;#808BA4&quot;,s.prototype.enable=function(t,e,r){var o=this.gd._fullLayout,l=o.width,c=o.height;this.position=t;var u,f,h,p,d=this.position.l,g=this.position.w,m=this.position.t,v=this.position.h,y=this.position.direction,x=&quot;down&quot;===y,b=&quot;left&quot;===y,_=&quot;up&quot;===y,w=g,T=v;x||b||&quot;right&quot;===y||_||(this.position.direction=&quot;down&quot;,x=!0),x||_?(f=(u=d)+w,x?(h=m,T=(p=Math.min(h+T,c))-h):T=(p=m+T)-(h=Math.max(p-T,0))):(p=(h=m)+T,b?w=(f=d+w)-(u=Math.max(f-w,0)):(u=d,w=(f=Math.min(u+w,l))-u)),this._box={l:u,t:h,w:w,h:T};var k=g&gt;w,M=s.barLength+2*s.barPad,A=s.barWidth+2*s.barPad,S=d,E=m+v;E+A&gt;c&amp;&amp;(E=c-A);var C=this.container.selectAll(&quot;rect.scrollbar-horizontal&quot;).data(k?[0]:[]);C.exit().on(&quot;.drag&quot;,null).remove(),C.enter().append(&quot;rect&quot;).classed(&quot;scrollbar-horizontal&quot;,!0).call(i.fill,s.barColor),k?(this.hbar=C.attr({rx:s.barRadius,ry:s.barRadius,x:S,y:E,width:M,height:A}),this._hbarXMin=S+M/2,this._hbarTranslateMax=w-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var L=v&gt;T,I=s.barWidth+2*s.barPad,P=s.barLength+2*s.barPad,z=d+g,O=m;z+I&gt;l&amp;&amp;(z=l-I);var D=this.container.selectAll(&quot;rect.scrollbar-vertical&quot;).data(L?[0]:[]);D.exit().on(&quot;.drag&quot;,null).remove(),D.enter().append(&quot;rect&quot;).classed(&quot;scrollbar-vertical&quot;,!0).call(i.fill,s.barColor),L?(this.vbar=D.attr({rx:s.barRadius,ry:s.barRadius,x:z,y:O,width:I,height:P}),this._vbarYMin=O+P/2,this._vbarTranslateMax=T-P):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var R=this.id,F=u-.5,B=L?f+I+.5:f+.5,N=h-.5,j=k?p+A+.5:p+.5,U=o._topdefs.selectAll(&quot;#&quot;+R).data(k||L?[0]:[]);if(U.exit().remove(),U.enter().append(&quot;clipPath&quot;).attr(&quot;id&quot;,R).append(&quot;rect&quot;),k||L?(this._clipRect=U.select(&quot;rect&quot;).attr({x:Math.floor(F),y:Math.floor(N),width:Math.ceil(B)-Math.floor(F),height:Math.ceil(j)-Math.floor(N)}),this.container.call(a.setClipUrl,R,this.gd),this.bg.attr({x:d,y:m,width:g,height:v})):(this.bg.attr({width:0,height:0}),this.container.on(&quot;wheel&quot;,null).on(&quot;.drag&quot;,null).call(a.setClipUrl,null),delete this._clipRect),k||L){var V=n.behavior.drag().on(&quot;dragstart&quot;,(function(){n.event.sourceEvent.preventDefault()})).on(&quot;drag&quot;,this._onBoxDrag.bind(this));this.container.on(&quot;wheel&quot;,null).on(&quot;wheel&quot;,this._onBoxWheel.bind(this)).on(&quot;.drag&quot;,null).call(V);var q=n.behavior.drag().on(&quot;dragstart&quot;,(function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()})).on(&quot;drag&quot;,this._onBarDrag.bind(this));k&amp;&amp;this.hbar.on(&quot;.drag&quot;,null).call(q),L&amp;&amp;this.vbar.on(&quot;.drag&quot;,null).call(q)}this.setTranslate(e,r)},s.prototype.disable=function(){(this.hbar||this.vbar)&amp;&amp;(this.bg.attr({width:0,height:0}),this.container.on(&quot;wheel&quot;,null).on(&quot;.drag&quot;,null).call(a.setClipUrl,null),delete this._clipRect),this.hbar&amp;&amp;(this.hbar.on(&quot;.drag&quot;,null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&amp;&amp;(this.vbar.on(&quot;.drag&quot;,null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},s.prototype._onBoxDrag=function(){var t=this.translateX,e=this.translateY;this.hbar&amp;&amp;(t-=n.event.dx),this.vbar&amp;&amp;(e-=n.event.dy),this.setTranslate(t,e)},s.prototype._onBoxWheel=function(){var t=this.translateX,e=this.translateY;this.hbar&amp;&amp;(t+=n.event.deltaY),this.vbar&amp;&amp;(e+=n.event.deltaY),this.setTranslate(t,e)},s.prototype._onBarDrag=function(){var t=this.translateX,e=this.translateY;if(this.hbar){var r=t+this._hbarXMin,i=r+this._hbarTranslateMax;t=(o.constrain(n.event.x,r,i)-r)/(i-r)*(this.position.w-this._box.w)}if(this.vbar){var a=e+this._vbarYMin,s=a+this._vbarTranslateMax;e=(o.constrain(n.event.y,a,s)-a)/(s-a)*(this.position.h-this._box.h)}this.setTranslate(t,e)},s.prototype.setTranslate=function(t,e){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=o.constrain(t||0,0,r),e=o.constrain(e||0,0,n),this.translateX=t,this.translateY=e,this.container.call(a.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-e),this._clipRect&amp;&amp;this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+e-.5)}),this.hbar){var i=t/r;this.hbar.call(a.setTranslate,t+i*this._hbarTranslateMax,e)}if(this.vbar){var s=e/n;this.vbar.call(a.setTranslate,t,e+s*this._vbarTranslateMax)}}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;../drawing&quot;:665,d3:169}],745:[function(t,e,r){&quot;use strict&quot;;e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:&quot;right&quot;,right:&quot;left&quot;,top:&quot;bottom&quot;,bottom:&quot;top&quot;}}},{}],746:[function(t,e,r){&quot;use strict&quot;;e.exports={axisRefDescription:function(t,e,r){return[&quot;If set to a&quot;,t,&quot;axis id (e.g. *&quot;+t+&quot;* or&quot;,&quot;*&quot;+t+&quot;2*), the `&quot;+t+&quot;` position refers to a&quot;,t,&quot;coordinate. If set to *paper*, the `&quot;+t+&quot;`&quot;,&quot;position refers to the distance from the&quot;,e,&quot;of the plotting&quot;,&quot;area in normalized coordinates where *0* (*1*) corresponds to the&quot;,e,&quot;(&quot;+r+&quot;). If set to a&quot;,t,&quot;axis ID followed by&quot;,&quot;*domain* (separated by a space), the position behaves like for&quot;,&quot;*paper*, but refers to the distance in fractions of the domain&quot;,&quot;length from the&quot;,e,&quot;of the domain of that axis: e.g.,&quot;,&quot;*&quot;+t+&quot;2 domain* refers to the domain of the second&quot;,t,&quot; axis and a&quot;,t,&quot;position of 0.5 refers to the&quot;,&quot;point between the&quot;,e,&quot;and the&quot;,r,&quot;of the domain of the&quot;,&quot;second&quot;,t,&quot;axis.&quot;].join(&quot; &quot;)}}},{}],747:[function(t,e,r){&quot;use strict&quot;;e.exports={INCREASING:{COLOR:&quot;#3D9970&quot;,SYMBOL:&quot;\u25b2&quot;},DECREASING:{COLOR:&quot;#FF4136&quot;,SYMBOL:&quot;\u25bc&quot;}}},{}],748:[function(t,e,r){&quot;use strict&quot;;e.exports={FORMAT_LINK:&quot;https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format&quot;,DATE_FORMAT_LINK:&quot;https://github.com/d3/d3-time-format#locale_format&quot;}},{}],749:[function(t,e,r){&quot;use strict&quot;;e.exports={COMPARISON_OPS:[&quot;=&quot;,&quot;!=&quot;,&quot;&lt;&quot;,&quot;&gt;=&quot;,&quot;&gt;&quot;,&quot;&lt;=&quot;],COMPARISON_OPS2:[&quot;=&quot;,&quot;&lt;&quot;,&quot;&gt;=&quot;,&quot;&gt;&quot;,&quot;&lt;=&quot;],INTERVAL_OPS:[&quot;[]&quot;,&quot;()&quot;,&quot;[)&quot;,&quot;(]&quot;,&quot;][&quot;,&quot;)(&quot;,&quot;](&quot;,&quot;)[&quot;],SET_OPS:[&quot;{}&quot;,&quot;}{&quot;],CONSTRAINT_REDUCTION:{&quot;=&quot;:&quot;=&quot;,&quot;&lt;&quot;:&quot;&lt;&quot;,&quot;&lt;=&quot;:&quot;&lt;&quot;,&quot;&gt;&quot;:&quot;&gt;&quot;,&quot;&gt;=&quot;:&quot;&gt;&quot;,&quot;[]&quot;:&quot;[]&quot;,&quot;()&quot;:&quot;[]&quot;,&quot;[)&quot;:&quot;[]&quot;,&quot;(]&quot;:&quot;[]&quot;,&quot;][&quot;:&quot;][&quot;,&quot;)(&quot;:&quot;][&quot;,&quot;](&quot;:&quot;][&quot;,&quot;)[&quot;:&quot;][&quot;}}},{}],750:[function(t,e,r){&quot;use strict&quot;;e.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},{}],751:[function(t,e,r){&quot;use strict&quot;;e.exports={circle:&quot;\u25cf&quot;,&quot;circle-open&quot;:&quot;\u25cb&quot;,square:&quot;\u25a0&quot;,&quot;square-open&quot;:&quot;\u25a1&quot;,diamond:&quot;\u25c6&quot;,&quot;diamond-open&quot;:&quot;\u25c7&quot;,cross:&quot;+&quot;,x:&quot;\u274c&quot;}},{}],752:[function(t,e,r){&quot;use strict&quot;;e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},{}],753:[function(t,e,r){&quot;use strict&quot;;e.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:&quot;\u2212&quot;}},{}],754:[function(t,e,r){&quot;use strict&quot;;r.xmlns=&quot;http://www.w3.org/2000/xmlns/&quot;,r.svg=&quot;http://www.w3.org/2000/svg&quot;,r.xlink=&quot;http://www.w3.org/1999/xlink&quot;,r.svgAttrs={xmlns:r.svg,&quot;xmlns:xlink&quot;:r.xlink}},{}],755:[function(t,e,r){&quot;use strict&quot;;r.version=t(&quot;./version&quot;).version,t(&quot;es6-promise&quot;).polyfill(),t(&quot;../build/plotcss&quot;),t(&quot;./fonts/mathjax_config&quot;)();for(var n=t(&quot;./registry&quot;),i=r.register=n.register,a=t(&quot;./plot_api&quot;),o=Object.keys(a),s=0;s&lt;o.length;s++){var l=o[s];&quot;_&quot;!==l.charAt(0)&amp;&amp;(r[l]=a[l]),i({moduleType:&quot;apiMethod&quot;,name:l,fn:a[l]})}i(t(&quot;./traces/scatter&quot;)),i([t(&quot;./components/legend&quot;),t(&quot;./components/fx&quot;),t(&quot;./components/annotations&quot;),t(&quot;./components/annotations3d&quot;),t(&quot;./components/shapes&quot;),t(&quot;./components/images&quot;),t(&quot;./components/updatemenus&quot;),t(&quot;./components/sliders&quot;),t(&quot;./components/rangeslider&quot;),t(&quot;./components/rangeselector&quot;),t(&quot;./components/grid&quot;),t(&quot;./components/errorbars&quot;),t(&quot;./components/colorscale&quot;),t(&quot;./components/colorbar&quot;)]),i([t(&quot;./locale-en&quot;),t(&quot;./locale-en-us&quot;)]),window.PlotlyLocales&amp;&amp;Array.isArray(window.PlotlyLocales)&amp;&amp;(i(window.PlotlyLocales),delete window.PlotlyLocales),r.Icons=t(&quot;./fonts/ploticon&quot;),r.Plots=t(&quot;./plots/plots&quot;),r.Fx=t(&quot;./components/fx&quot;),r.Snapshot=t(&quot;./snapshot&quot;),r.PlotSchema=t(&quot;./plot_api/plot_schema&quot;),r.Queue=t(&quot;./lib/queue&quot;),r.d3=t(&quot;d3&quot;)},{&quot;../build/plotcss&quot;:1,&quot;./components/annotations&quot;:634,&quot;./components/annotations3d&quot;:639,&quot;./components/colorbar&quot;:649,&quot;./components/colorscale&quot;:655,&quot;./components/errorbars&quot;:671,&quot;./components/fx&quot;:683,&quot;./components/grid&quot;:687,&quot;./components/images&quot;:692,&quot;./components/legend&quot;:700,&quot;./components/rangeselector&quot;:711,&quot;./components/rangeslider&quot;:718,&quot;./components/shapes&quot;:732,&quot;./components/sliders&quot;:737,&quot;./components/updatemenus&quot;:743,&quot;./fonts/mathjax_config&quot;:756,&quot;./fonts/ploticon&quot;:757,&quot;./lib/queue&quot;:794,&quot;./locale-en&quot;:808,&quot;./locale-en-us&quot;:807,&quot;./plot_api&quot;:812,&quot;./plot_api/plot_schema&quot;:816,&quot;./plots/plots&quot;:891,&quot;./registry&quot;:911,&quot;./snapshot&quot;:916,&quot;./traces/scatter&quot;:1199,&quot;./version&quot;:1370,d3:169,&quot;es6-promise&quot;:224}],756:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){&quot;undefined&quot;!=typeof MathJax&amp;&amp;(&quot;local&quot;!==(window.PlotlyConfig||{}).MathJaxConfig&amp;&amp;(MathJax.Hub.Config({messageStyle:&quot;none&quot;,skipStartupTypeset:!0,displayAlign:&quot;left&quot;,tex2jax:{inlineMath:[[&quot;$&quot;,&quot;$&quot;],[&quot;\\(&quot;,&quot;\\)&quot;]]}}),MathJax.Hub.Configured()))}},{}],757:[function(t,e,r){&quot;use strict&quot;;e.exports={undo:{width:857.1,height:1e3,path:&quot;m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},home:{width:928.6,height:1e3,path:&quot;m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;camera-retro&quot;:{width:1e3,height:1e3,path:&quot;m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoombox:{width:1e3,height:1e3,path:&quot;m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},pan:{width:1e3,height:1e3,path:&quot;m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoom_plus:{width:875,height:1e3,path:&quot;m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoom_minus:{width:875,height:1e3,path:&quot;m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},autoscale:{width:1e3,height:1e3,path:&quot;m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},tooltip_basic:{width:1500,height:1e3,path:&quot;m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},tooltip_compare:{width:1125,height:1e3,path:&quot;m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},plotlylogo:{width:1542,height:1e3,path:&quot;m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;z-axis&quot;:{width:1e3,height:1e3,path:&quot;m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;3d_rotate&quot;:{width:1e3,height:1e3,path:&quot;m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},camera:{width:1e3,height:1e3,path:&quot;m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},movie:{width:1e3,height:1e3,path:&quot;m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},question:{width:857.1,height:1e3,path:&quot;m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},disk:{width:857.1,height:1e3,path:&quot;m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},drawopenpath:{width:70,height:70,path:&quot;M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z&quot;,transform:&quot;matrix(1 0 0 1 -15 -15)&quot;},drawclosedpath:{width:90,height:90,path:&quot;M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z&quot;,transform:&quot;matrix(1 0 0 1 -5 -5)&quot;},lasso:{width:1031,height:1e3,path:&quot;m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},selectbox:{width:1e3,height:1e3,path:&quot;m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},drawline:{width:70,height:70,path:&quot;M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z&quot;,transform:&quot;matrix(1 0 0 1 -15 -15)&quot;},drawrect:{width:80,height:80,path:&quot;M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},drawcircle:{width:80,height:80,path:&quot;M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},eraseshape:{width:80,height:80,path:&quot;M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},spikeline:{width:1e3,height:1e3,path:&quot;M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z&quot;,transform:&quot;matrix(1.5 0 0 -1.5 0 850)&quot;},pencil:{width:1792,height:1792,path:&quot;M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z&quot;,transform:&quot;matrix(1 0 0 1 0 1)&quot;},newplotlylogo:{name:&quot;newplotlylogo&quot;,svg:&quot;&lt;svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'&gt;&lt;defs&gt;&lt;style&gt;.cls-1 {fill: #3f4f75;} .cls-2 {fill: #80cfbe;} .cls-3 {fill: #fff;}&lt;/style&gt;&lt;/defs&gt;&lt;title&gt;plotly-logomark&lt;/title&gt;&lt;g id='symbol'&gt;&lt;rect class='cls-1' width='132' height='132' rx='6' ry='6'/&gt;&lt;circle class='cls-2' cx='78' cy='54' r='6'/&gt;&lt;circle class='cls-2' cx='102' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='78' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='54' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='30' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='30' cy='54' r='6'/&gt;&lt;path class='cls-3' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/&gt;&lt;path class='cls-3' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/&gt;&lt;path class='cls-3' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/&gt;&lt;path class='cls-3' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;}}},{}],758:[function(t,e,r){&quot;use strict&quot;;r.isLeftAnchor=function(t){return&quot;left&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&lt;=1/3},r.isCenterAnchor=function(t){return&quot;center&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&gt;1/3&amp;&amp;t.x&lt;2/3},r.isRightAnchor=function(t){return&quot;right&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&gt;=2/3},r.isTopAnchor=function(t){return&quot;top&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&gt;=2/3},r.isMiddleAnchor=function(t){return&quot;middle&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&gt;1/3&amp;&amp;t.y&lt;2/3},r.isBottomAnchor=function(t){return&quot;bottom&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&lt;=1/3}},{}],759:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./mod&quot;),i=n.mod,a=n.modHalf,o=Math.PI,s=2*o;function l(t){return Math.abs(t[1]-t[0])&gt;s-1e-14}function c(t,e){return a(e-t,s)}function u(t,e){if(l(e))return!0;var r,n;e[0]&lt;e[1]?(r=e[0],n=e[1]):(r=e[1],n=e[0]),(r=i(r,s))&gt;(n=i(n,s))&amp;&amp;(n+=s);var a=i(t,s),o=a+s;return a&gt;=r&amp;&amp;a&lt;=n||o&gt;=r&amp;&amp;o&lt;=n}function f(t,e,r,n,i,a,c){i=i||0,a=a||0;var u,f,h,p,d,g=l([r,n]);function m(t,e){return[t*Math.cos(e)+i,a-t*Math.sin(e)]}g?(u=0,f=o,h=s):r&lt;n?(u=r,h=n):(u=n,h=r),t&lt;e?(p=t,d=e):(p=e,d=t);var v,y=Math.abs(h-u)&lt;=o?0:1;function x(t,e,r){return&quot;A&quot;+[t,t]+&quot; &quot;+[0,y,r]+&quot; &quot;+m(t,e)}return g?v=null===p?&quot;M&quot;+m(d,u)+x(d,f,0)+x(d,h,0)+&quot;Z&quot;:&quot;M&quot;+m(p,u)+x(p,f,0)+x(p,h,0)+&quot;ZM&quot;+m(d,u)+x(d,f,1)+x(d,h,1)+&quot;Z&quot;:null===p?(v=&quot;M&quot;+m(d,u)+x(d,h,0),c&amp;&amp;(v+=&quot;L0,0Z&quot;)):v=&quot;M&quot;+m(p,u)+&quot;L&quot;+m(d,u)+x(d,h,0)+&quot;L&quot;+m(p,h)+x(p,u,1)+&quot;Z&quot;,v}e.exports={deg2rad:function(t){return t/180*o},rad2deg:function(t){return t/o*180},angleDelta:c,angleDist:function(t,e){return Math.abs(c(t,e))},isFullCircle:l,isAngleInsideSector:u,isPtInsideSector:function(t,e,r,n){return!!u(e,n)&amp;&amp;(r[0]&lt;r[1]?(i=r[0],a=r[1]):(i=r[1],a=r[0]),t&gt;=i&amp;&amp;t&lt;=a);var i,a},pathArc:function(t,e,r,n,i){return f(null,t,e,r,n,i,0)},pathSector:function(t,e,r,n,i){return f(null,t,e,r,n,i,1)},pathAnnulus:function(t,e,r,n,i,a){return f(t,e,r,n,i,a,1)}}},{&quot;./mod&quot;:785}],760:[function(t,e,r){&quot;use strict&quot;;var n=Array.isArray,i=&quot;undefined&quot;!=typeof ArrayBuffer&amp;&amp;ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}},a=&quot;undefined&quot;==typeof DataView?function(){}:DataView;function o(t){return i.isView(t)&amp;&amp;!(t instanceof a)}function s(t){return n(t)||o(t)}function l(t,e,r){if(s(t)){if(s(t[0])){for(var n=r,i=0;i&lt;t.length;i++)n=e(n,t[i].length);return n}return t.length}return 0}r.isTypedArray=o,r.isArrayOrTypedArray=s,r.isArray1D=function(t){return!s(t[0])},r.ensureArray=function(t,e){return n(t)||(t=[]),t.length=e,t},r.concat=function(){var t,e,r,i,a,o,s,l,c=[],u=!0,f=0;for(r=0;r&lt;arguments.length;r++)(o=(i=arguments[r]).length)&amp;&amp;(e?c.push(i):(e=i,a=o),n(i)?t=!1:(u=!1,f?t!==i.constructor&amp;&amp;(t=!1):t=i.constructor),f+=o);if(!f)return[];if(!c.length)return e;if(u)return e.concat.apply(e,c);if(t){for((s=new t(f)).set(e),r=0;r&lt;c.length;r++)i=c[r],s.set(i,a),a+=i.length;return s}for(s=new Array(f),l=0;l&lt;e.length;l++)s[l]=e[l];for(r=0;r&lt;c.length;r++){for(i=c[r],l=0;l&lt;i.length;l++)s[a+l]=i[l];a+=l}return s},r.maxRowLength=function(t){return l(t,Math.max,0)},r.minRowLength=function(t){return l(t,Math.min,1/0)}},{}],761:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../constants/numerical&quot;).BADNUM,a=/^['&quot;%,$#\s']+|[, ]|['&quot;%,$#\s']+$/g;e.exports=function(t){return&quot;string&quot;==typeof t&amp;&amp;(t=t.replace(a,&quot;&quot;)),n(t)?Number(t):i}},{&quot;../constants/numerical&quot;:753,&quot;fast-isnumeric&quot;:241}],762:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t._fullLayout;e._glcanvas&amp;&amp;e._glcanvas.size()&amp;&amp;e._glcanvas.each((function(t){t.regl&amp;&amp;t.regl.clear({color:!0,depth:!0})}))}},{}],763:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){t._responsiveChartHandler&amp;&amp;(window.removeEventListener(&quot;resize&quot;,t._responsiveChartHandler),delete t._responsiveChartHandler)}},{}],764:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../plots/attributes&quot;),o=t(&quot;../components/colorscale/scales&quot;),s=t(&quot;../constants/interactions&quot;).DESELECTDIM,l=t(&quot;./nested_property&quot;),c=t(&quot;./regex&quot;).counter,u=t(&quot;./mod&quot;).modHalf,f=t(&quot;./array&quot;).isArrayOrTypedArray;function h(t,e){var n=r.valObjectMeta[e.valType];if(e.arrayOk&amp;&amp;f(t))return!0;if(n.validateFunction)return n.validateFunction(t,e);var i={},a=i,o={set:function(t){a=t}};return n.coerceFunction(t,o,i,e),a!==i}r.valObjectMeta={data_array:{coerceFunction:function(t,e,r){f(t)?e.set(t):void 0!==r&amp;&amp;e.set(r)}},enumerated:{coerceFunction:function(t,e,r,n){n.coerceNumber&amp;&amp;(t=+t),-1===n.values.indexOf(t)?e.set(r):e.set(t)},validateFunction:function(t,e){e.coerceNumber&amp;&amp;(t=+t);for(var r=e.values,n=0;n&lt;r.length;n++){var i=String(r[n]);if(&quot;/&quot;===i.charAt(0)&amp;&amp;&quot;/&quot;===i.charAt(i.length-1)){if(new RegExp(i.substr(1,i.length-2)).test(t))return!0}else if(t===r[n])return!0}return!1}},boolean:{coerceFunction:function(t,e,r){!0===t||!1===t?e.set(t):e.set(r)}},number:{coerceFunction:function(t,e,r,i){!n(t)||void 0!==i.min&amp;&amp;t&lt;i.min||void 0!==i.max&amp;&amp;t&gt;i.max?e.set(r):e.set(+t)}},integer:{coerceFunction:function(t,e,r,i){t%1||!n(t)||void 0!==i.min&amp;&amp;t&lt;i.min||void 0!==i.max&amp;&amp;t&gt;i.max?e.set(r):e.set(+t)}},string:{coerceFunction:function(t,e,r,n){if(&quot;string&quot;!=typeof t){var i=&quot;number&quot;==typeof t;!0!==n.strict&amp;&amp;i?e.set(String(t)):e.set(r)}else n.noBlank&amp;&amp;!t?e.set(r):e.set(t)}},color:{coerceFunction:function(t,e,r){i(t).isValid()?e.set(t):e.set(r)}},colorlist:{coerceFunction:function(t,e,r){Array.isArray(t)&amp;&amp;t.length&amp;&amp;t.every((function(t){return i(t).isValid()}))?e.set(t):e.set(r)}},colorscale:{coerceFunction:function(t,e,r){e.set(o.get(t,r))}},angle:{coerceFunction:function(t,e,r){&quot;auto&quot;===t?e.set(&quot;auto&quot;):n(t)?e.set(u(+t,360)):e.set(r)}},subplotid:{coerceFunction:function(t,e,r,n){var i=n.regex||c(r);&quot;string&quot;==typeof t&amp;&amp;i.test(t)?e.set(t):e.set(r)},validateFunction:function(t,e){var r=e.dflt;return t===r||&quot;string&quot;==typeof t&amp;&amp;!!c(r).test(t)}},flaglist:{coerceFunction:function(t,e,r,n){if(&quot;string&quot;==typeof t)if(-1===(n.extras||[]).indexOf(t)){for(var i=t.split(&quot;+&quot;),a=0;a&lt;i.length;){var o=i[a];-1===n.flags.indexOf(o)||i.indexOf(o)&lt;a?i.splice(a,1):a++}i.length?e.set(i.join(&quot;+&quot;)):e.set(r)}else e.set(t);else e.set(r)}},any:{coerceFunction:function(t,e,r){void 0===t?e.set(r):e.set(t)}},info_array:{coerceFunction:function(t,e,n,i){function a(t,e,n){var i,a={set:function(t){i=t}};return void 0===n&amp;&amp;(n=e.dflt),r.valObjectMeta[e.valType].coerceFunction(t,a,n,e),i}var o=2===i.dimensions||&quot;1-2&quot;===i.dimensions&amp;&amp;Array.isArray(t)&amp;&amp;Array.isArray(t[0]);if(Array.isArray(t)){var s,l,c,u,f,h,p=i.items,d=[],g=Array.isArray(p),m=g&amp;&amp;o&amp;&amp;Array.isArray(p[0]),v=o&amp;&amp;g&amp;&amp;!m,y=g&amp;&amp;!v?p.length:t.length;if(n=Array.isArray(n)?n:[],o)for(s=0;s&lt;y;s++)for(d[s]=[],c=Array.isArray(t[s])?t[s]:[],f=v?p.length:g?p[s].length:c.length,l=0;l&lt;f;l++)u=v?p[l]:g?p[s][l]:p,void 0!==(h=a(c[l],u,(n[s]||[])[l]))&amp;&amp;(d[s][l]=h);else for(s=0;s&lt;y;s++)void 0!==(h=a(t[s],g?p[s]:p,n[s]))&amp;&amp;(d[s]=h);e.set(d)}else e.set(n)},validateFunction:function(t,e){if(!Array.isArray(t))return!1;var r=e.items,n=Array.isArray(r),i=2===e.dimensions;if(!e.freeLength&amp;&amp;t.length!==r.length)return!1;for(var a=0;a&lt;t.length;a++)if(i){if(!Array.isArray(t[a])||!e.freeLength&amp;&amp;t[a].length!==r[a].length)return!1;for(var o=0;o&lt;t[a].length;o++)if(!h(t[a][o],n?r[a][o]:r))return!1}else if(!h(t[a],n?r[a]:r))return!1;return!0}}},r.coerce=function(t,e,n,i,a){var o=l(n,i).get(),s=l(t,i),c=l(e,i),u=s.get(),p=e._template;if(void 0===u&amp;&amp;p&amp;&amp;(u=l(p,i).get(),p=0),void 0===a&amp;&amp;(a=o.dflt),o.arrayOk&amp;&amp;f(u))return c.set(u),u;var d=r.valObjectMeta[o.valType].coerceFunction;d(u,c,a,o);var g=c.get();return p&amp;&amp;g===a&amp;&amp;!h(u,o)&amp;&amp;(d(u=l(p,i).get(),c,a,o),g=c.get()),g},r.coerce2=function(t,e,n,i,a){var o=l(t,i),s=r.coerce(t,e,n,i,a),c=o.get();return null!=c&amp;&amp;s},r.coerceFont=function(t,e,r){var n={};return r=r||{},n.family=t(e+&quot;.family&quot;,r.family),n.size=t(e+&quot;.size&quot;,r.size),n.color=t(e+&quot;.color&quot;,r.color),n},r.coerceHoverinfo=function(t,e,n){var i,o=e._module.attributes,s=o.hoverinfo?o:a,l=s.hoverinfo;if(1===n._dataLength){var c=&quot;all&quot;===l.dflt?l.flags.slice():l.dflt.split(&quot;+&quot;);c.splice(c.indexOf(&quot;name&quot;),1),i=c.join(&quot;+&quot;)}return r.coerce(t,e,s,&quot;hoverinfo&quot;,i)},r.coerceSelectionMarkerOpacity=function(t,e){if(t.marker){var r,n,i=t.marker.opacity;if(void 0!==i)f(i)||t.selected||t.unselected||(r=i,n=s*i),e(&quot;selected.marker.opacity&quot;,r),e(&quot;unselected.marker.opacity&quot;,n)}},r.validate=h},{&quot;../components/colorscale/scales&quot;:658,&quot;../constants/interactions&quot;:752,&quot;../plots/attributes&quot;:824,&quot;./array&quot;:760,&quot;./mod&quot;:785,&quot;./nested_property&quot;:786,&quot;./regex&quot;:795,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],765:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;d3-time-format&quot;).timeFormat,o=t(&quot;fast-isnumeric&quot;),s=t(&quot;./loggers&quot;),l=t(&quot;./mod&quot;).mod,c=t(&quot;../constants/numerical&quot;),u=c.BADNUM,f=c.ONEDAY,h=c.ONEHOUR,p=c.ONEMIN,d=c.ONESEC,g=c.EPOCHJD,m=t(&quot;../registry&quot;),v=t(&quot;d3-time-format&quot;).utcFormat,y=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,x=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,b=(new Date).getFullYear()-70;function _(t){return t&amp;&amp;m.componentsRegistry.calendars&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;&quot;gregorian&quot;!==t}function w(t,e){return String(t+Math.pow(10,e)).substr(1)}r.dateTick0=function(t,e){var n=function(t,e){return _(t)?e?m.getComponentMethod(&quot;calendars&quot;,&quot;CANONICAL_SUNDAY&quot;)[t]:m.getComponentMethod(&quot;calendars&quot;,&quot;CANONICAL_TICK&quot;)[t]:e?&quot;2000-01-02&quot;:&quot;2000-01-01&quot;}(t,!!e);if(e&lt;2)return n;var i=r.dateTime2ms(n,t);return i+=f*(e-1),r.ms2DateTime(i,0,t)},r.dfltRange=function(t){return _(t)?m.getComponentMethod(&quot;calendars&quot;,&quot;DFLTRANGE&quot;)[t]:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;]},r.isJSDate=function(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t&amp;&amp;&quot;function&quot;==typeof t.getTime},r.dateTime2ms=function(t,e){if(r.isJSDate(t)){var a=t.getTimezoneOffset()*p,o=(t.getUTCMinutes()-t.getMinutes())*p+(t.getUTCSeconds()-t.getSeconds())*d+(t.getUTCMilliseconds()-t.getMilliseconds());if(o){var s=3*p;a=a-s/2+l(o-a+s/2,s)}return(t=Number(t)-a)&gt;=n&amp;&amp;t&lt;=i?t:u}if(&quot;string&quot;!=typeof t&amp;&amp;&quot;number&quot;!=typeof t)return u;t=String(t);var c=_(e),v=t.charAt(0);!c||&quot;G&quot;!==v&amp;&amp;&quot;g&quot;!==v||(t=t.substr(1),e=&quot;&quot;);var w=c&amp;&amp;&quot;chinese&quot;===e.substr(0,7),T=t.match(w?x:y);if(!T)return u;var k=T[1],M=T[3]||&quot;1&quot;,A=Number(T[5]||1),S=Number(T[7]||0),E=Number(T[9]||0),C=Number(T[11]||0);if(c){if(2===k.length)return u;var L;k=Number(k);try{var I=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(e);if(w){var P=&quot;i&quot;===M.charAt(M.length-1);M=parseInt(M,10),L=I.newDate(k,I.toMonthIndex(k,M,P),A)}else L=I.newDate(k,Number(M),A)}catch(t){return u}return L?(L.toJD()-g)*f+S*h+E*p+C*d:u}k=2===k.length?(Number(k)+2e3-b)%100+b:Number(k),M-=1;var z=new Date(Date.UTC(2e3,M,A,S,E));return z.setUTCFullYear(k),z.getUTCMonth()!==M||z.getUTCDate()!==A?u:z.getTime()+C*d},n=r.MIN_MS=r.dateTime2ms(&quot;-9999&quot;),i=r.MAX_MS=r.dateTime2ms(&quot;9999-12-31 23:59:59.9999&quot;),r.isDateTime=function(t,e){return r.dateTime2ms(t,e)!==u};var T=90*f,k=3*h,M=5*p;function A(t,e,r,n,i){if((e||r||n||i)&amp;&amp;(t+=&quot; &quot;+w(e,2)+&quot;:&quot;+w(r,2),(n||i)&amp;&amp;(t+=&quot;:&quot;+w(n,2),i))){for(var a=4;i%10==0;)a-=1,i/=10;t+=&quot;.&quot;+w(i,a)}return t}r.ms2DateTime=function(t,e,r){if(&quot;number&quot;!=typeof t||!(t&gt;=n&amp;&amp;t&lt;=i))return u;e||(e=0);var a,o,s,c,y,x,b=Math.floor(10*l(t+.05,1)),w=Math.round(t-b/10);if(_(r)){var S=Math.floor(w/f)+g,E=Math.floor(l(t,f));try{a=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(r).fromJD(S).formatDate(&quot;yyyy-mm-dd&quot;)}catch(t){a=v(&quot;G%Y-%m-%d&quot;)(new Date(w))}if(&quot;-&quot;===a.charAt(0))for(;a.length&lt;11;)a=&quot;-0&quot;+a.substr(1);else for(;a.length&lt;10;)a=&quot;0&quot;+a;o=e&lt;T?Math.floor(E/h):0,s=e&lt;T?Math.floor(E%h/p):0,c=e&lt;k?Math.floor(E%p/d):0,y=e&lt;M?E%d*10+b:0}else x=new Date(w),a=v(&quot;%Y-%m-%d&quot;)(x),o=e&lt;T?x.getUTCHours():0,s=e&lt;T?x.getUTCMinutes():0,c=e&lt;k?x.getUTCSeconds():0,y=e&lt;M?10*x.getUTCMilliseconds()+b:0;return A(a,o,s,c,y)},r.ms2DateTimeLocal=function(t){if(!(t&gt;=n+f&amp;&amp;t&lt;=i-f))return u;var e=Math.floor(10*l(t+.05,1)),r=new Date(Math.round(t-e/10));return A(a(&quot;%Y-%m-%d&quot;)(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+e)},r.cleanDate=function(t,e,n){if(t===u)return e;if(r.isJSDate(t)||&quot;number&quot;==typeof t&amp;&amp;isFinite(t)){if(_(n))return s.error(&quot;JS Dates and milliseconds are incompatible with world calendars&quot;,t),e;if(!(t=r.ms2DateTimeLocal(+t))&amp;&amp;void 0!==e)return e}else if(!r.isDateTime(t,n))return s.error(&quot;unrecognized date&quot;,t),e;return t};var S=/%\d?f/g;function E(t,e,r,n){t=t.replace(S,(function(t){var r=Math.min(+t.charAt(1)||6,6);return(e/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,&quot;&quot;)||&quot;0&quot;}));var i=new Date(Math.floor(e+.05));if(_(n))try{t=m.getComponentMethod(&quot;calendars&quot;,&quot;worldCalFmt&quot;)(t,e,n)}catch(t){return&quot;Invalid&quot;}return r(t)(i)}var C=[59,59.9,59.99,59.999,59.9999];r.formatDate=function(t,e,r,n,i,a){if(i=_(i)&amp;&amp;i,!e)if(&quot;y&quot;===r)e=a.year;else if(&quot;m&quot;===r)e=a.month;else{if(&quot;d&quot;!==r)return function(t,e){var r=l(t+.05,f),n=w(Math.floor(r/h),2)+&quot;:&quot;+w(l(Math.floor(r/p),60),2);if(&quot;M&quot;!==e){o(e)||(e=0);var i=(100+Math.min(l(t/d,60),C[e])).toFixed(e).substr(1);e&gt;0&amp;&amp;(i=i.replace(/0+$/,&quot;&quot;).replace(/[\.]$/,&quot;&quot;)),n+=&quot;:&quot;+i}return n}(t,r)+&quot;\n&quot;+E(a.dayMonthYear,t,n,i);e=a.dayMonth+&quot;\n&quot;+a.year}return E(e,t,n,i)};var L=3*f;r.incrementMonth=function(t,e,r){r=_(r)&amp;&amp;r;var n=l(t,f);if(t=Math.round(t-n),r)try{var i=Math.round(t/f)+g,a=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(r),o=a.fromJD(i);return e%12?a.add(o,e,&quot;m&quot;):a.add(o,e/12,&quot;y&quot;),(o.toJD()-g)*f+n}catch(e){s.error(&quot;invalid ms &quot;+t+&quot; in calendar &quot;+r)}var c=new Date(t+L);return c.setUTCMonth(c.getUTCMonth()+e)+n-L},r.findExactDates=function(t,e){for(var r,n,i=0,a=0,s=0,l=0,c=_(e)&amp;&amp;m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(e),u=0;u&lt;t.length;u++)if(n=t[u],o(n)){if(!(n%f))if(c)try{1===(r=c.fromJD(n/f+g)).day()?1===r.month()?i++:a++:s++}catch(t){}else 1===(r=new Date(n)).getUTCDate()?0===r.getUTCMonth()?i++:a++:s++}else l++;s+=a+=i;var h=t.length-l;return{exactYears:i/h,exactMonths:a/h,exactDays:s/h}}},{&quot;../constants/numerical&quot;:753,&quot;../registry&quot;:911,&quot;./loggers&quot;:782,&quot;./mod&quot;:785,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],766:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;./loggers&quot;),a=t(&quot;./matrix&quot;),o=t(&quot;gl-mat4&quot;);function s(t){var e=t&amp;&amp;t.parentNode;e&amp;&amp;e.removeChild(t)}function l(t,e,r){var n=&quot;plotly.js-style-&quot;+t,a=document.getElementById(n);a||((a=document.createElement(&quot;style&quot;)).setAttribute(&quot;id&quot;,n),a.appendChild(document.createTextNode(&quot;&quot;)),document.head.appendChild(a));var o=a.sheet;o.insertRule?o.insertRule(e+&quot;{&quot;+r+&quot;}&quot;,0):o.addRule?o.addRule(e,r,0):i.warn(&quot;addStyleRule failed&quot;)}function c(t){var e=window.getComputedStyle(t,null),r=e.getPropertyValue(&quot;-webkit-transform&quot;)||e.getPropertyValue(&quot;-moz-transform&quot;)||e.getPropertyValue(&quot;-ms-transform&quot;)||e.getPropertyValue(&quot;-o-transform&quot;)||e.getPropertyValue(&quot;transform&quot;);return&quot;none&quot;===r?null:r.replace(&quot;matrix&quot;,&quot;&quot;).replace(&quot;3d&quot;,&quot;&quot;).slice(1,-1).split(&quot;,&quot;).map((function(t){return+t}))}function u(t){for(var e=[];f(t);)e.push(t),t=t.parentNode;return e}function f(t){return t&amp;&amp;(t instanceof Element||t instanceof HTMLElement)}e.exports={getGraphDiv:function(t){var e;if(&quot;string&quot;==typeof t){if(null===(e=document.getElementById(t)))throw new Error(&quot;No DOM element with id '&quot;+t+&quot;' exists on the page.&quot;);return e}if(null==t)throw new Error(&quot;DOM element provided is null or undefined&quot;);return t},isPlotDiv:function(t){var e=n.select(t);return e.node()instanceof HTMLElement&amp;&amp;e.size()&amp;&amp;e.classed(&quot;js-plotly-plot&quot;)},removeElement:s,addStyleRule:function(t,e){l(&quot;global&quot;,t,e)},addRelatedStyleRule:l,deleteRelatedStyleRule:function(t){var e=&quot;plotly.js-style-&quot;+t,r=document.getElementById(e);r&amp;&amp;s(r)},getFullTransformMatrix:function(t){var e=u(t),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach((function(t){var e=c(t);if(e){var n=a.convertCssMatrix(e);r=o.multiply(r,r,n)}})),r},getElementTransformMatrix:c,getElementAndAncestors:u,equalDomRects:function(t,e){return t&amp;&amp;e&amp;&amp;t.x===e.x&amp;&amp;t.y===e.y&amp;&amp;t.top===e.top&amp;&amp;t.left===e.left&amp;&amp;t.right===e.right&amp;&amp;t.bottom===e.bottom}}},{&quot;./loggers&quot;:782,&quot;./matrix&quot;:784,d3:169,&quot;gl-mat4&quot;:292}],767:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;events&quot;).EventEmitter,i={init:function(t){if(t._ev instanceof n)return t;var e=new n,r=new n;return t._ev=e,t._internalEv=r,t.on=e.on.bind(e),t.once=e.once.bind(e),t.removeListener=e.removeListener.bind(e),t.removeAllListeners=e.removeAllListeners.bind(e),t._internalOn=r.on.bind(r),t._internalOnce=r.once.bind(r),t._removeInternalListener=r.removeListener.bind(r),t._removeAllInternalListeners=r.removeAllListeners.bind(r),t.emit=function(n,i){&quot;undefined&quot;!=typeof jQuery&amp;&amp;jQuery(t).trigger(n,i),e.emit(n,i),r.emit(n,i)},t},triggerHandler:function(t,e,r){var n,i;&quot;undefined&quot;!=typeof jQuery&amp;&amp;(n=jQuery(t).triggerHandler(e,r));var a=t._ev;if(!a)return n;var o,s=a._events[e];if(!s)return n;function l(t){return t.listener?(a.removeListener(e,t.listener),t.fired?void 0:(t.fired=!0,t.listener.apply(a,[r]))):t.apply(a,[r])}for(s=Array.isArray(s)?s:[s],o=0;o&lt;s.length-1;o++)l(s[o]);return i=l(s[o]),void 0!==n?n:i},purge:function(t){return delete t._ev,delete t.on,delete t.once,delete t.removeListener,delete t.removeAllListeners,delete t.emit,delete t._ev,delete t._internalEv,delete t._internalOn,delete t._internalOnce,delete t._removeInternalListener,delete t._removeAllInternalListeners,t}};e.exports=i},{events:110}],768:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is_plain_object.js&quot;),i=Array.isArray;function a(t,e,r,o){var s,l,c,u,f,h,p=t[0],d=t.length;if(2===d&amp;&amp;i(p)&amp;&amp;i(t[1])&amp;&amp;0===p.length){if(function(t,e){var r,n;for(r=0;r&lt;t.length;r++){if(null!==(n=t[r])&amp;&amp;&quot;object&quot;==typeof n)return!1;void 0!==n&amp;&amp;(e[r]=n)}return!0}(t[1],p))return p;p.splice(0,p.length)}for(var g=1;g&lt;d;g++)for(l in s=t[g])c=p[l],u=s[l],o&amp;&amp;i(u)?p[l]=u:e&amp;&amp;u&amp;&amp;(n(u)||(f=i(u)))?(f?(f=!1,h=c&amp;&amp;i(c)?c:[]):h=c&amp;&amp;n(c)?c:{},p[l]=a([h,u],e,r,o)):(&quot;undefined&quot;!=typeof u||r)&amp;&amp;(p[l]=u);return p}r.extendFlat=function(){return a(arguments,!1,!1,!1)},r.extendDeep=function(){return a(arguments,!0,!1,!1)},r.extendDeepAll=function(){return a(arguments,!0,!0,!1)},r.extendDeepNoArrays=function(){return a(arguments,!0,!1,!0)}},{&quot;./is_plain_object.js&quot;:779}],769:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e={},r=[],n=0,i=0;i&lt;t.length;i++){var a=t[i];1!==e[a]&amp;&amp;(e[a]=1,r[n++]=a)}return r}},{}],770:[function(t,e,r){&quot;use strict&quot;;function n(t){return!0===t.visible}function i(t){var e=t[0].trace;return!0===e.visible&amp;&amp;0!==e._length}e.exports=function(t){for(var e,r=(e=t,Array.isArray(e)&amp;&amp;Array.isArray(e[0])&amp;&amp;e[0][0]&amp;&amp;e[0][0].trace?i:n),a=[],o=0;o&lt;t.length;o++){var s=t[o];r(s)&amp;&amp;a.push(s)}return a}},{}],771:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;country-regex&quot;),a=t(&quot;@turf/area&quot;),o=t(&quot;@turf/centroid&quot;),s=t(&quot;@turf/bbox&quot;),l=t(&quot;./identity&quot;),c=t(&quot;./loggers&quot;),u=t(&quot;./is_plain_object&quot;),f=t(&quot;./nested_property&quot;),h=t(&quot;./polygon&quot;),p=Object.keys(i),d={&quot;ISO-3&quot;:l,&quot;USA-states&quot;:l,&quot;country names&quot;:function(t){for(var e=0;e&lt;p.length;e++){var r=p[e];if(new RegExp(i[r]).test(t.trim().toLowerCase()))return r}return c.log(&quot;Unrecognized country name: &quot;+t+&quot;.&quot;),!1}};function g(t){var e=t.geojson,r=window.PlotlyGeoAssets||{},n=&quot;string&quot;==typeof e?r[e]:e;return u(n)?n:(c.error(&quot;Oops ... something went wrong when fetching &quot;+e),!1)}e.exports={locationToFeature:function(t,e,r){if(!e||&quot;string&quot;!=typeof e)return!1;var n,i,a,o=d[t](e);if(o){if(&quot;USA-states&quot;===t)for(n=[],a=0;a&lt;r.length;a++)(i=r[a]).properties&amp;&amp;i.properties.gu&amp;&amp;&quot;USA&quot;===i.properties.gu&amp;&amp;n.push(i);else n=r;for(a=0;a&lt;n.length;a++)if((i=n[a]).id===o)return i;c.log([&quot;Location with id&quot;,o,&quot;does not have a matching topojson feature at this resolution.&quot;].join(&quot; &quot;))}return!1},feature2polygons:function(t){var e,r,n,i,a=t.geometry,o=a.coordinates,s=t.id,l=[];function c(t){for(var e=0;e&lt;t.length-1;e++)if(t[e][0]&gt;0&amp;&amp;t[e+1][0]&lt;0)return e;return null}switch(e=&quot;RUS&quot;===s||&quot;FJI&quot;===s?function(t){var e;if(null===c(t))e=t;else for(e=new Array(t.length),i=0;i&lt;t.length;i++)e[i]=[t[i][0]&lt;0?t[i][0]+360:t[i][0],t[i][1]];l.push(h.tester(e))}:&quot;ATA&quot;===s?function(t){var e=c(t);if(null===e)return l.push(h.tester(t));var r=new Array(t.length+1),n=0;for(i=0;i&lt;t.length;i++)i&gt;e?r[n++]=[t[i][0]+360,t[i][1]]:i===e?(r[n++]=t[i],r[n++]=[t[i][0],-90]):r[n++]=t[i];var a=h.tester(r);a.pts.pop(),l.push(a)}:function(t){l.push(h.tester(t))},a.type){case&quot;MultiPolygon&quot;:for(r=0;r&lt;o.length;r++)for(n=0;n&lt;o[r].length;n++)e(o[r][n]);break;case&quot;Polygon&quot;:for(r=0;r&lt;o.length;r++)e(o[r])}return l},getTraceGeojson:g,extractTraceFeature:function(t){var e=t[0].trace,r=g(e);if(!r)return!1;var n,i={},s=[];for(n=0;n&lt;e._length;n++){var l=t[n];(l.loc||0===l.loc)&amp;&amp;(i[l.loc]=l)}function u(t){var r=f(t,e.featureidkey||&quot;id&quot;).get(),n=i[r];if(n){var l=t.geometry;if(&quot;Polygon&quot;===l.type||&quot;MultiPolygon&quot;===l.type){var u={type:&quot;Feature&quot;,id:r,geometry:l,properties:{}};u.properties.ct=function(t){var e,r=t.geometry;if(&quot;MultiPolygon&quot;===r.type)for(var n=r.coordinates,i=0,s=0;s&lt;n.length;s++){var l={type:&quot;Polygon&quot;,coordinates:n[s]},c=a.default(l);c&gt;i&amp;&amp;(i=c,e=l)}else e=r;return o.default(e).geometry.coordinates}(u),n.fIn=t,n.fOut=u,s.push(u)}else c.log([&quot;Location&quot;,n.loc,&quot;does not have a valid GeoJSON geometry.&quot;,&quot;Traces with locationmode *geojson-id* only support&quot;,&quot;*Polygon* and *MultiPolygon* geometries.&quot;].join(&quot; &quot;))}delete i[r]}switch(r.type){case&quot;FeatureCollection&quot;:var h=r.features;for(n=0;n&lt;h.length;n++)u(h[n]);break;case&quot;Feature&quot;:u(r);break;default:return c.warn([&quot;Invalid GeoJSON type&quot;,(r.type||&quot;none&quot;)+&quot;.&quot;,&quot;Traces with locationmode *geojson-id* only support&quot;,&quot;*FeatureCollection* and *Feature* types.&quot;].join(&quot; &quot;)),!1}for(var p in i)c.log([&quot;Location *&quot;+p+&quot;*&quot;,&quot;does not have a matching feature with id-key&quot;,&quot;*&quot;+e.featureidkey+&quot;*.&quot;].join(&quot; &quot;));return s},fetchTraceGeoData:function(t){var e=window.PlotlyGeoAssets||{},r=[];function i(t){return new Promise((function(r,i){n.json(t,(function(n,a){if(n){delete e[t];var o=404===n.status?'GeoJSON at URL &quot;'+t+'&quot; does not exist.':&quot;Unexpected error while fetching from &quot;+t;return i(new Error(o))}return e[t]=a,r(a)}))}))}function a(t){return new Promise((function(r,n){var i=0,a=setInterval((function(){return e[t]&amp;&amp;&quot;pending&quot;!==e[t]?(clearInterval(a),r(e[t])):i&gt;100?(clearInterval(a),n(&quot;Unexpected error while fetching from &quot;+t)):void i++}),50)}))}for(var o=0;o&lt;t.length;o++){var s=t[o][0].trace.geojson;&quot;string&quot;==typeof s&amp;&amp;(e[s]?&quot;pending&quot;===e[s]&amp;&amp;r.push(a(s)):(e[s]=&quot;pending&quot;,r.push(i(s))))}return r},computeBbox:function(t){return s.default(t)}}},{&quot;./identity&quot;:776,&quot;./is_plain_object&quot;:779,&quot;./loggers&quot;:782,&quot;./nested_property&quot;:786,&quot;./polygon&quot;:790,&quot;@turf/area&quot;:59,&quot;@turf/bbox&quot;:60,&quot;@turf/centroid&quot;:61,&quot;country-regex&quot;:139,d3:169}],772:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../constants/numerical&quot;).BADNUM;r.calcTraceToLineCoords=function(t){for(var e=t[0].trace.connectgaps,r=[],i=[],a=0;a&lt;t.length;a++){var o=t[a].lonlat;o[0]!==n?i.push(o):!e&amp;&amp;i.length&gt;0&amp;&amp;(r.push(i),i=[])}return i.length&gt;0&amp;&amp;r.push(i),r},r.makeLine=function(t){return 1===t.length?{type:&quot;LineString&quot;,coordinates:t[0]}:{type:&quot;MultiLineString&quot;,coordinates:t}},r.makePolygon=function(t){if(1===t.length)return{type:&quot;Polygon&quot;,coordinates:t};for(var e=new Array(t.length),r=0;r&lt;t.length;r++)e[r]=[t[r]];return{type:&quot;MultiPolygon&quot;,coordinates:e}},r.makeBlank=function(){return{type:&quot;Point&quot;,coordinates:[]}}},{&quot;../constants/numerical&quot;:753}],773:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o=t(&quot;./mod&quot;).mod;function s(t,e,r,n,i,a,o,s){var l=r-t,c=i-t,u=o-i,f=n-e,h=a-e,p=s-a,d=l*p-u*f;if(0===d)return null;var g=(c*p-u*h)/d,m=(c*f-l*h)/d;return m&lt;0||m&gt;1||g&lt;0||g&gt;1?null:{x:t+l*g,y:e+f*g}}function l(t,e,r,n,i){var a=n*t+i*e;if(a&lt;0)return n*n+i*i;if(a&gt;r){var o=n-t,s=i-e;return o*o+s*s}var l=n*e-i*t;return l*l/r}r.segmentsIntersect=s,r.segmentDistance=function(t,e,r,n,i,a,o,c){if(s(t,e,r,n,i,a,o,c))return 0;var u=r-t,f=n-e,h=o-i,p=c-a,d=u*u+f*f,g=h*h+p*p,m=Math.min(l(u,f,d,i-t,a-e),l(u,f,d,o-t,c-e),l(h,p,g,t-i,e-a),l(h,p,g,r-i,n-a));return Math.sqrt(m)},r.getTextLocation=function(t,e,r,s){if(t===i&amp;&amp;s===a||(n={},i=t,a=s),n[r])return n[r];var l=t.getPointAtLength(o(r-s/2,e)),c=t.getPointAtLength(o(r+s/2,e)),u=Math.atan((c.y-l.y)/(c.x-l.x)),f=t.getPointAtLength(o(r,e)),h={x:(4*f.x+l.x+c.x)/6,y:(4*f.y+l.y+c.y)/6,theta:u};return n[r]=h,h},r.clearLocationCache=function(){i=null},r.getVisibleSegment=function(t,e,r){var n,i,a=e.left,o=e.right,s=e.top,l=e.bottom,c=0,u=t.getTotalLength(),f=u;function h(e){var r=t.getPointAtLength(e);0===e?n=r:e===u&amp;&amp;(i=r);var c=r.x&lt;a?a-r.x:r.x&gt;o?r.x-o:0,f=r.y&lt;s?s-r.y:r.y&gt;l?r.y-l:0;return Math.sqrt(c*c+f*f)}for(var p=h(c);p;){if((c+=p+r)&gt;f)return;p=h(c)}for(p=h(f);p;){if(c&gt;(f-=p+r))return;p=h(f)}return{min:c,max:f,len:f-c,total:u,isClosed:0===c&amp;&amp;f===u&amp;&amp;Math.abs(n.x-i.x)&lt;.1&amp;&amp;Math.abs(n.y-i.y)&lt;.1}},r.findPointOnPath=function(t,e,r,n){for(var i,a,o,s=(n=n||{}).pathLength||t.getTotalLength(),l=n.tolerance||.001,c=n.iterationLimit||30,u=t.getPointAtLength(0)[r]&gt;t.getPointAtLength(s)[r]?-1:1,f=0,h=0,p=s;f&lt;c;){if(i=(h+p)/2,o=(a=t.getPointAtLength(i))[r]-e,Math.abs(o)&lt;l)return a;u*o&gt;0?p=i:h=i,f++}return a}},{&quot;./mod&quot;:785}],774:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;color-normalize&quot;),o=t(&quot;../components/colorscale&quot;),s=t(&quot;../components/color/attributes&quot;).defaultLine,l=t(&quot;./array&quot;).isArrayOrTypedArray,c=a(s);function u(t,e){var r=t;return r[3]*=e,r}function f(t){if(n(t))return c;var e=a(t);return e.length?e:c}function h(t){return n(t)?t:1}e.exports={formatColor:function(t,e,r){var n,i,s,p,d,g=t.color,m=l(g),v=l(e),y=o.extractOpts(t),x=[];if(n=void 0!==y.colorscale?o.makeColorScaleFuncFromTrace(t):f,i=m?function(t,e){return void 0===t[e]?c:a(n(t[e]))}:f,s=v?function(t,e){return void 0===t[e]?1:h(t[e])}:h,m||v)for(var b=0;b&lt;r;b++)p=i(g,b),d=s(e,b),x[b]=u(p,d);else x=u(a(g),e);return x},parseColorScale:function(t){var e=o.extractOpts(t),r=e.colorscale;return e.reversescale&amp;&amp;(r=o.flipScale(e.colorscale)),r.map((function(t){var e=t[0],r=i(t[1]).toRgb();return{index:e,rgb:[r.r,r.g,r.b,r.a]}}))}}},{&quot;../components/color/attributes&quot;:642,&quot;../components/colorscale&quot;:655,&quot;./array&quot;:760,&quot;color-normalize&quot;:125,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],775:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./identity&quot;);function i(t){return[t]}e.exports={keyFun:function(t){return t.key},repeat:i,descend:n,wrap:i,unwrap:function(t){return t[0]}}},{&quot;./identity&quot;:776}],776:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t}},{}],777:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(!e)return t;var r=1/Math.abs(e),n=r&gt;1?(r*t+r*e)/r:t+e,i=String(n).length;if(i&gt;16){var a=String(e).length;if(i&gt;=String(t).length+a){var o=parseFloat(n).toPrecision(12);-1===o.indexOf(&quot;e+&quot;)&amp;&amp;(n=+o)}}return n}},{}],778:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-time-format&quot;).utcFormat,a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../constants/numerical&quot;),s=o.FP_SAFE,l=o.BADNUM,c=e.exports={};c.nestedProperty=t(&quot;./nested_property&quot;),c.keyedContainer=t(&quot;./keyed_container&quot;),c.relativeAttr=t(&quot;./relative_attr&quot;),c.isPlainObject=t(&quot;./is_plain_object&quot;),c.toLogRange=t(&quot;./to_log_range&quot;),c.relinkPrivateKeys=t(&quot;./relink_private&quot;);var u=t(&quot;./array&quot;);c.isTypedArray=u.isTypedArray,c.isArrayOrTypedArray=u.isArrayOrTypedArray,c.isArray1D=u.isArray1D,c.ensureArray=u.ensureArray,c.concat=u.concat,c.maxRowLength=u.maxRowLength,c.minRowLength=u.minRowLength;var f=t(&quot;./mod&quot;);c.mod=f.mod,c.modHalf=f.modHalf;var h=t(&quot;./coerce&quot;);c.valObjectMeta=h.valObjectMeta,c.coerce=h.coerce,c.coerce2=h.coerce2,c.coerceFont=h.coerceFont,c.coerceHoverinfo=h.coerceHoverinfo,c.coerceSelectionMarkerOpacity=h.coerceSelectionMarkerOpacity,c.validate=h.validate;var p=t(&quot;./dates&quot;);c.dateTime2ms=p.dateTime2ms,c.isDateTime=p.isDateTime,c.ms2DateTime=p.ms2DateTime,c.ms2DateTimeLocal=p.ms2DateTimeLocal,c.cleanDate=p.cleanDate,c.isJSDate=p.isJSDate,c.formatDate=p.formatDate,c.incrementMonth=p.incrementMonth,c.dateTick0=p.dateTick0,c.dfltRange=p.dfltRange,c.findExactDates=p.findExactDates,c.MIN_MS=p.MIN_MS,c.MAX_MS=p.MAX_MS;var d=t(&quot;./search&quot;);c.findBin=d.findBin,c.sorterAsc=d.sorterAsc,c.sorterDes=d.sorterDes,c.distinctVals=d.distinctVals,c.roundUp=d.roundUp,c.sort=d.sort,c.findIndexOfMin=d.findIndexOfMin;var g=t(&quot;./stats&quot;);c.aggNums=g.aggNums,c.len=g.len,c.mean=g.mean,c.median=g.median,c.midRange=g.midRange,c.variance=g.variance,c.stdev=g.stdev,c.interp=g.interp;var m=t(&quot;./matrix&quot;);c.init2dArray=m.init2dArray,c.transposeRagged=m.transposeRagged,c.dot=m.dot,c.translationMatrix=m.translationMatrix,c.rotationMatrix=m.rotationMatrix,c.rotationXYMatrix=m.rotationXYMatrix,c.apply3DTransform=m.apply3DTransform,c.apply2DTransform=m.apply2DTransform,c.apply2DTransform2=m.apply2DTransform2,c.convertCssMatrix=m.convertCssMatrix,c.inverseTransformMatrix=m.inverseTransformMatrix;var v=t(&quot;./angles&quot;);c.deg2rad=v.deg2rad,c.rad2deg=v.rad2deg,c.angleDelta=v.angleDelta,c.angleDist=v.angleDist,c.isFullCircle=v.isFullCircle,c.isAngleInsideSector=v.isAngleInsideSector,c.isPtInsideSector=v.isPtInsideSector,c.pathArc=v.pathArc,c.pathSector=v.pathSector,c.pathAnnulus=v.pathAnnulus;var y=t(&quot;./anchor_utils&quot;);c.isLeftAnchor=y.isLeftAnchor,c.isCenterAnchor=y.isCenterAnchor,c.isRightAnchor=y.isRightAnchor,c.isTopAnchor=y.isTopAnchor,c.isMiddleAnchor=y.isMiddleAnchor,c.isBottomAnchor=y.isBottomAnchor;var x=t(&quot;./geometry2d&quot;);c.segmentsIntersect=x.segmentsIntersect,c.segmentDistance=x.segmentDistance,c.getTextLocation=x.getTextLocation,c.clearLocationCache=x.clearLocationCache,c.getVisibleSegment=x.getVisibleSegment,c.findPointOnPath=x.findPointOnPath;var b=t(&quot;./extend&quot;);c.extendFlat=b.extendFlat,c.extendDeep=b.extendDeep,c.extendDeepAll=b.extendDeepAll,c.extendDeepNoArrays=b.extendDeepNoArrays;var _=t(&quot;./loggers&quot;);c.log=_.log,c.warn=_.warn,c.error=_.error;var w=t(&quot;./regex&quot;);c.counterRegex=w.counter;var T=t(&quot;./throttle&quot;);c.throttle=T.throttle,c.throttleDone=T.done,c.clearThrottle=T.clear;var k=t(&quot;./dom&quot;);function M(t){var e={};for(var r in t)for(var n=t[r],i=0;i&lt;n.length;i++)e[n[i]]=+r;return e}c.getGraphDiv=k.getGraphDiv,c.isPlotDiv=k.isPlotDiv,c.removeElement=k.removeElement,c.addStyleRule=k.addStyleRule,c.addRelatedStyleRule=k.addRelatedStyleRule,c.deleteRelatedStyleRule=k.deleteRelatedStyleRule,c.getFullTransformMatrix=k.getFullTransformMatrix,c.getElementTransformMatrix=k.getElementTransformMatrix,c.getElementAndAncestors=k.getElementAndAncestors,c.equalDomRects=k.equalDomRects,c.clearResponsive=t(&quot;./clear_responsive&quot;),c.preserveDrawingBuffer=t(&quot;./preserve_drawing_buffer&quot;),c.makeTraceGroups=t(&quot;./make_trace_groups&quot;),c._=t(&quot;./localize&quot;),c.notifier=t(&quot;./notifier&quot;),c.filterUnique=t(&quot;./filter_unique&quot;),c.filterVisible=t(&quot;./filter_visible&quot;),c.pushUnique=t(&quot;./push_unique&quot;),c.increment=t(&quot;./increment&quot;),c.cleanNumber=t(&quot;./clean_number&quot;),c.ensureNumber=function(t){return a(t)?(t=Number(t))&lt;-s||t&gt;s?l:a(t)?Number(t):l:l},c.isIndex=function(t,e){return!(void 0!==e&amp;&amp;t&gt;=e)&amp;&amp;(a(t)&amp;&amp;t&gt;=0&amp;&amp;t%1==0)},c.noop=t(&quot;./noop&quot;),c.identity=t(&quot;./identity&quot;),c.repeat=function(t,e){for(var r=new Array(e),n=0;n&lt;e;n++)r[n]=t;return r},c.swapAttrs=function(t,e,r,n){r||(r=&quot;x&quot;),n||(n=&quot;y&quot;);for(var i=0;i&lt;e.length;i++){var a=e[i],o=c.nestedProperty(t,a.replace(&quot;?&quot;,r)),s=c.nestedProperty(t,a.replace(&quot;?&quot;,n)),l=o.get();o.set(s.get()),s.set(l)}},c.raiseToTop=function(t){t.parentNode.appendChild(t)},c.cancelTransition=function(t){return t.transition().duration(0)},c.constrain=function(t,e,r){return e&gt;r?Math.max(r,Math.min(e,t)):Math.max(e,Math.min(r,t))},c.bBoxIntersect=function(t,e,r){return r=r||0,t.left&lt;=e.right+r&amp;&amp;e.left&lt;=t.right+r&amp;&amp;t.top&lt;=e.bottom+r&amp;&amp;e.top&lt;=t.bottom+r},c.simpleMap=function(t,e,r,n,i){for(var a=t.length,o=new Array(a),s=0;s&lt;a;s++)o[s]=e(t[s],r,n,i);return o},c.randstr=function t(e,r,n,i){if(n||(n=16),void 0===r&amp;&amp;(r=24),r&lt;=0)return&quot;0&quot;;var a,o,s=Math.log(Math.pow(2,r))/Math.log(n),l=&quot;&quot;;for(a=2;s===1/0;a*=2)s=Math.log(Math.pow(2,r/a))/Math.log(n)*a;var u=s-Math.floor(s);for(a=0;a&lt;Math.floor(s);a++)l=Math.floor(Math.random()*n).toString(n)+l;u&amp;&amp;(o=Math.pow(n,u),l=Math.floor(Math.random()*o).toString(n)+l);var f=parseInt(l,n);return e&amp;&amp;e[l]||f!==1/0&amp;&amp;f&gt;=Math.pow(2,r)?i&gt;10?(c.warn(&quot;randstr failed uniqueness&quot;),l):t(e,r,n,(i||0)+1):l},c.OptionControl=function(t,e){t||(t={}),e||(e=&quot;opt&quot;);var r={optionList:[],_newoption:function(n){n[e]=t,r[n.name]=n,r.optionList.push(n)}};return r[&quot;_&quot;+e]=t,r},c.smooth=function(t,e){if((e=Math.round(e)||0)&lt;2)return t;var r,n,i,a,o=t.length,s=2*o,l=2*e-1,c=new Array(l),u=new Array(o);for(r=0;r&lt;l;r++)c[r]=(1-Math.cos(Math.PI*(r+1)/e))/(2*e);for(r=0;r&lt;o;r++){for(a=0,n=0;n&lt;l;n++)(i=r+n+1-e)&lt;-o?i-=s*Math.round(i/s):i&gt;=s&amp;&amp;(i-=s*Math.floor(i/s)),i&lt;0?i=-1-i:i&gt;=o&amp;&amp;(i=s-1-i),a+=t[i]*c[n];u[r]=a}return u},c.syncOrAsync=function(t,e,r){var n;function i(){return c.syncOrAsync(t,e,r)}for(;t.length;)if((n=(0,t.splice(0,1)[0])(e))&amp;&amp;n.then)return n.then(i).then(void 0,c.promiseError);return r&amp;&amp;r(e)},c.stripTrailingSlash=function(t){return&quot;/&quot;===t.substr(-1)?t.substr(0,t.length-1):t},c.noneOrAll=function(t,e,r){if(t){var n,i=!1,a=!0;for(n=0;n&lt;r.length;n++)null!=t[r[n]]?i=!0:a=!1;if(i&amp;&amp;!a)for(n=0;n&lt;r.length;n++)t[r[n]]=e[r[n]]}},c.mergeArray=function(t,e,r,n){var i=&quot;function&quot;==typeof n;if(c.isArrayOrTypedArray(t))for(var a=Math.min(t.length,e.length),o=0;o&lt;a;o++){var s=t[o];e[o][r]=i?n(s):s}},c.mergeArrayCastPositive=function(t,e,r){return c.mergeArray(t,e,r,(function(t){var e=+t;return isFinite(e)&amp;&amp;e&gt;0?e:0}))},c.fillArray=function(t,e,r,n){if(n=n||c.identity,c.isArrayOrTypedArray(t))for(var i=0;i&lt;e.length;i++)e[i][r]=n(t[i])},c.castOption=function(t,e,r,n){n=n||c.identity;var i=c.nestedProperty(t,r).get();return c.isArrayOrTypedArray(i)?Array.isArray(e)&amp;&amp;c.isArrayOrTypedArray(i[e[0]])?n(i[e[0]][e[1]]):n(i[e]):i},c.extractOption=function(t,e,r,n){if(r in t)return t[r];var i=c.nestedProperty(e,n).get();return Array.isArray(i)?void 0:i},c.tagSelected=function(t,e,r){var n,i,a=e.selectedpoints,o=e._indexToPoints;o&amp;&amp;(n=M(o));for(var s=0;s&lt;a.length;s++){var l=a[s];if(c.isIndex(l)||c.isArrayOrTypedArray(l)&amp;&amp;c.isIndex(l[0])&amp;&amp;c.isIndex(l[1])){var u=n?n[l]:l,f=r?r[u]:u;void 0!==(i=f)&amp;&amp;i&lt;t.length&amp;&amp;(t[f].selected=1)}}},c.selIndices2selPoints=function(t){var e=t.selectedpoints,r=t._indexToPoints;if(r){for(var n=M(r),i=[],a=0;a&lt;e.length;a++){var o=e[a];if(c.isIndex(o)){var s=n[o];c.isIndex(s)&amp;&amp;i.push(s)}}return i}return e},c.getTargetArray=function(t,e){var r=e.target;if(&quot;string&quot;==typeof r&amp;&amp;r){var n=c.nestedProperty(t,r).get();return!!Array.isArray(n)&amp;&amp;n}return!!Array.isArray(r)&amp;&amp;r},c.minExtend=function(t,e){var r={};&quot;object&quot;!=typeof e&amp;&amp;(e={});var n,i,a,o=Object.keys(t);for(n=0;n&lt;o.length;n++)a=t[i=o[n]],&quot;_&quot;!==i.charAt(0)&amp;&amp;&quot;function&quot;!=typeof a&amp;&amp;(&quot;module&quot;===i?r[i]=a:Array.isArray(a)?r[i]=&quot;colorscale&quot;===i?a.slice():a.slice(0,3):c.isTypedArray(a)?r[i]=a.subarray(0,3):r[i]=a&amp;&amp;&quot;object&quot;==typeof a?c.minExtend(t[i],e[i]):a);for(o=Object.keys(e),n=0;n&lt;o.length;n++)&quot;object&quot;==typeof(a=e[i=o[n]])&amp;&amp;i in r&amp;&amp;&quot;object&quot;==typeof r[i]||(r[i]=a);return r},c.titleCase=function(t){return t.charAt(0).toUpperCase()+t.substr(1)},c.containsAny=function(t,e){for(var r=0;r&lt;e.length;r++)if(-1!==t.indexOf(e[r]))return!0;return!1},c.isIE=function(){return&quot;undefined&quot;!=typeof window.navigator.msSaveBlob};var A=/MSIE [1-9]\./;c.isIE9orBelow=function(){return c.isIE()&amp;&amp;A.test(window.navigator.userAgent)};var S=/Version\/[\d\.]+.*Safari/;c.isSafari=function(){return S.test(window.navigator.userAgent)};var E=/iPad|iPhone|iPod/;c.isIOS=function(){return E.test(window.navigator.userAgent)},c.isD3Selection=function(t){return t&amp;&amp;&quot;function&quot;==typeof t.classed},c.ensureSingle=function(t,e,r,n){var i=t.select(e+(r?&quot;.&quot;+r:&quot;&quot;));if(i.size())return i;var a=t.append(e);return r&amp;&amp;a.classed(r,!0),n&amp;&amp;a.call(n),a},c.ensureSingleById=function(t,e,r,n){var i=t.select(e+&quot;#&quot;+r);if(i.size())return i;var a=t.append(e).attr(&quot;id&quot;,r);return n&amp;&amp;a.call(n),a},c.objectFromPath=function(t,e){for(var r,n=t.split(&quot;.&quot;),i=r={},a=0;a&lt;n.length;a++){var o=n[a],s=null,l=n[a].match(/(.*)\[([0-9]+)\]/);l?(o=l[1],s=l[2],r=r[o]=[],a===n.length-1?r[s]=e:r[s]={},r=r[s]):(a===n.length-1?r[o]=e:r[o]={},r=r[o])}return i};var C=/^([^\[\.]+)\.(.+)?/,L=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;c.expandObjectPaths=function(t){var e,r,n,i,a,o,s;if(&quot;object&quot;==typeof t&amp;&amp;!Array.isArray(t))for(r in t)t.hasOwnProperty(r)&amp;&amp;((e=r.match(C))?(i=t[r],n=e[1],delete t[r],t[n]=c.extendDeepNoArrays(t[n]||{},c.objectFromPath(r,c.expandObjectPaths(i))[n])):(e=r.match(L))?(i=t[r],n=e[1],a=parseInt(e[2]),delete t[r],t[n]=t[n]||[],&quot;.&quot;===e[3]?(s=e[4],o=t[n][a]=t[n][a]||{},c.extendDeepNoArrays(o,c.objectFromPath(s,c.expandObjectPaths(i)))):t[n][a]=c.expandObjectPaths(i)):t[r]=c.expandObjectPaths(t[r]));return t},c.numSeparate=function(t,e,r){if(r||(r=!1),&quot;string&quot;!=typeof e||0===e.length)throw new Error(&quot;Separator string required for formatting!&quot;);&quot;number&quot;==typeof t&amp;&amp;(t=String(t));var n=/(\d+)(\d{3})/,i=e.charAt(0),a=e.charAt(1),o=t.split(&quot;.&quot;),s=o[0],l=o.length&gt;1?i+o[1]:&quot;&quot;;if(a&amp;&amp;(o.length&gt;1||s.length&gt;4||r))for(;n.test(s);)s=s.replace(n,&quot;$1&quot;+a+&quot;$2&quot;);return s+l},c.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var I=/^\w*$/;c.templateString=function(t,e){var r={};return t.replace(c.TEMPLATE_STRING_REGEX,(function(t,n){var i;return I.test(n)?i=e[n]:(r[n]=r[n]||c.nestedProperty(e,n).get,i=r[n]()),c.isValidTextValue(i)?i:&quot;&quot;}))};var P={max:10,count:0,name:&quot;hovertemplate&quot;};c.hovertemplateString=function(){return D.apply(P,arguments)};var z={max:10,count:0,name:&quot;texttemplate&quot;};c.texttemplateString=function(){return D.apply(z,arguments)};var O=/^[:|\|]/;function D(t,e,r){var a=this,o=arguments;e||(e={});var s={};return t.replace(c.TEMPLATE_STRING_REGEX,(function(t,l,u){var f,h,p,d;for(p=3;p&lt;o.length;p++)if(f=o[p]){if(f.hasOwnProperty(l)){h=f[l];break}if(I.test(l)||(h=s[l]||c.nestedProperty(f,l).get())&amp;&amp;(s[l]=h),void 0!==h)break}if(void 0===h&amp;&amp;a)return a.count&lt;a.max&amp;&amp;(c.warn(&quot;Variable '&quot;+l+&quot;' in &quot;+a.name+&quot; could not be found!&quot;),h=t),a.count===a.max&amp;&amp;c.warn(&quot;Too many &quot;+a.name+&quot; warnings - additional warnings will be suppressed&quot;),a.count++,t;if(u){if(&quot;:&quot;===u[0]&amp;&amp;(h=(d=r?r.numberFormat:n.format)(u.replace(O,&quot;&quot;))(h)),&quot;|&quot;===u[0]){d=r?r.timeFormat:i;var g=c.dateTime2ms(h);h=c.formatDate(g,u.replace(O,&quot;&quot;),!1,d)}}else e.hasOwnProperty(l+&quot;Label&quot;)&amp;&amp;(h=e[l+&quot;Label&quot;]);return h}))}c.subplotSort=function(t,e){for(var r=Math.min(t.length,e.length)+1,n=0,i=0,a=0;a&lt;r;a++){var o=t.charCodeAt(a)||0,s=e.charCodeAt(a)||0,l=o&gt;=48&amp;&amp;o&lt;=57,c=s&gt;=48&amp;&amp;s&lt;=57;if(l&amp;&amp;(n=10*n+o-48),c&amp;&amp;(i=10*i+s-48),!l||!c){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var R=2e9;c.seedPseudoRandom=function(){R=2e9},c.pseudoRandom=function(){var t=R;return R=(69069*R+1)%4294967296,Math.abs(R-t)&lt;429496729?c.pseudoRandom():R/4294967296},c.fillText=function(t,e,r){var n=Array.isArray(r)?function(t){r.push(t)}:function(t){r.text=t},i=c.extractOption(t,e,&quot;htx&quot;,&quot;hovertext&quot;);if(c.isValidTextValue(i))return n(i);var a=c.extractOption(t,e,&quot;tx&quot;,&quot;text&quot;);return c.isValidTextValue(a)?n(a):void 0},c.isValidTextValue=function(t){return t||0===t},c.formatPercent=function(t,e){e=e||0;for(var r=(Math.round(100*t*Math.pow(10,e))*Math.pow(.1,e)).toFixed(e)+&quot;%&quot;,n=0;n&lt;e;n++)-1!==r.indexOf(&quot;.&quot;)&amp;&amp;(r=(r=r.replace(&quot;0%&quot;,&quot;%&quot;)).replace(&quot;.%&quot;,&quot;%&quot;));return r},c.isHidden=function(t){var e=window.getComputedStyle(t).display;return!e||&quot;none&quot;===e},c.strTranslate=function(t,e){return t||e?&quot;translate(&quot;+t+&quot;,&quot;+e+&quot;)&quot;:&quot;&quot;},c.strRotate=function(t){return t?&quot;rotate(&quot;+t+&quot;)&quot;:&quot;&quot;},c.strScale=function(t){return 1!==t?&quot;scale(&quot;+t+&quot;)&quot;:&quot;&quot;},c.getTextTransform=function(t){var e=t.noCenter,r=t.textX,n=t.textY,i=t.targetX,a=t.targetY,o=t.anchorX||0,s=t.anchorY||0,l=t.rotate,u=t.scale;return u?u&gt;1&amp;&amp;(u=1):u=0,c.strTranslate(i-u*(r+o),a-u*(n+s))+c.strScale(u)+(l?&quot;rotate(&quot;+l+(e?&quot;&quot;:&quot; &quot;+r+&quot; &quot;+n)+&quot;)&quot;:&quot;&quot;)},c.ensureUniformFontSize=function(t,e){var r=c.extendFlat({},e);return r.size=Math.max(e.size,t._fullLayout.uniformtext.minsize||0),r},c.join2=function(t,e,r){var n=t.length;return n&gt;1?t.slice(0,-1).join(e)+r+t[n-1]:t.join(e)}},{&quot;../constants/numerical&quot;:753,&quot;./anchor_utils&quot;:758,&quot;./angles&quot;:759,&quot;./array&quot;:760,&quot;./clean_number&quot;:761,&quot;./clear_responsive&quot;:763,&quot;./coerce&quot;:764,&quot;./dates&quot;:765,&quot;./dom&quot;:766,&quot;./extend&quot;:768,&quot;./filter_unique&quot;:769,&quot;./filter_visible&quot;:770,&quot;./geometry2d&quot;:773,&quot;./identity&quot;:776,&quot;./increment&quot;:777,&quot;./is_plain_object&quot;:779,&quot;./keyed_container&quot;:780,&quot;./localize&quot;:781,&quot;./loggers&quot;:782,&quot;./make_trace_groups&quot;:783,&quot;./matrix&quot;:784,&quot;./mod&quot;:785,&quot;./nested_property&quot;:786,&quot;./noop&quot;:787,&quot;./notifier&quot;:788,&quot;./preserve_drawing_buffer&quot;:792,&quot;./push_unique&quot;:793,&quot;./regex&quot;:795,&quot;./relative_attr&quot;:796,&quot;./relink_private&quot;:797,&quot;./search&quot;:798,&quot;./stats&quot;:801,&quot;./throttle&quot;:804,&quot;./to_log_range&quot;:805,d3:169,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],779:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return window&amp;&amp;window.process&amp;&amp;window.process.versions?&quot;[object Object]&quot;===Object.prototype.toString.call(t):&quot;[object Object]&quot;===Object.prototype.toString.call(t)&amp;&amp;Object.getPrototypeOf(t)===Object.prototype}},{}],780:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./nested_property&quot;),i=/^\w*$/;e.exports=function(t,e,r,a){var o,s,l;r=r||&quot;name&quot;,a=a||&quot;value&quot;;var c={};e&amp;&amp;e.length?(l=n(t,e),s=l.get()):s=t,e=e||&quot;&quot;;var u={};if(s)for(o=0;o&lt;s.length;o++)u[s[o][r]]=o;var f=i.test(a),h={set:function(t,e){var i=null===e?4:0;if(!s){if(!l||4===i)return;s=[],l.set(s)}var o=u[t];if(void 0===o){if(4===i)return;i|=3,o=s.length,u[t]=o}else e!==(f?s[o][a]:n(s[o],a).get())&amp;&amp;(i|=2);var p=s[o]=s[o]||{};return p[r]=t,f?p[a]=e:n(p,a).set(e),null!==e&amp;&amp;(i&amp;=-5),c[o]=c[o]|i,h},get:function(t){if(s){var e=u[t];return void 0===e?void 0:f?s[e][a]:n(s[e],a).get()}},rename:function(t,e){var n=u[t];return void 0===n||(c[n]=1|c[n],u[e]=n,delete u[t],s[n][r]=e),h},remove:function(t){var e=u[t];if(void 0===e)return h;var i=s[e];if(Object.keys(i).length&gt;2)return c[e]=2|c[e],h.set(t,null);if(f){for(o=e;o&lt;s.length;o++)c[o]=3|c[o];for(o=e;o&lt;s.length;o++)u[s[o][r]]--;s.splice(e,1),delete u[t]}else n(i,a).set(null),c[e]=6|c[e];return h},constructUpdate:function(){for(var t,i,o={},l=Object.keys(c),u=0;u&lt;l.length;u++)i=l[u],t=e+&quot;[&quot;+i+&quot;]&quot;,s[i]?(1&amp;c[i]&amp;&amp;(o[t+&quot;.&quot;+r]=s[i][r]),2&amp;c[i]&amp;&amp;(o[t+&quot;.&quot;+a]=f?4&amp;c[i]?null:s[i][a]:4&amp;c[i]?null:n(s[i],a).get())):o[t]=null;return o}};return h}},{&quot;./nested_property&quot;:786}],781:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);e.exports=function(t,e){for(var r=t._context.locale,i=0;i&lt;2;i++){for(var a=t._context.locales,o=0;o&lt;2;o++){var s=(a[r]||{}).dictionary;if(s){var l=s[e];if(l)return l}a=n.localeRegistry}var c=r.split(&quot;-&quot;)[0];if(c===r)break;r=c}return e}},{&quot;../registry&quot;:911}],782:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../plot_api/plot_config&quot;).dfltConfig,i=t(&quot;./notifier&quot;),a=e.exports={};function o(t,e){if(t&amp;&amp;t.apply)try{return void t.apply(console,e)}catch(t){}for(var r=0;r&lt;e.length;r++)try{t(e[r])}catch(t){console.log(e[r])}}a.log=function(){var t;if(n.logging&gt;1){var e=[&quot;LOG:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);o(console.trace||console.log,e)}if(n.notifyOnLogging&gt;1){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;long&quot;)}},a.warn=function(){var t;if(n.logging&gt;0){var e=[&quot;WARN:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);o(console.trace||console.log,e)}if(n.notifyOnLogging&gt;0){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;stick&quot;)}},a.error=function(){var t;if(n.logging&gt;0){var e=[&quot;ERROR:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);o(console.error,e)}if(n.notifyOnLogging&gt;0){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;stick&quot;)}}},{&quot;../plot_api/plot_config&quot;:815,&quot;./notifier&quot;:788}],783:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t,e,r){var i=t.selectAll(&quot;g.&quot;+r.replace(/\s/g,&quot;.&quot;)).data(e,(function(t){return t[0].trace.uid}));i.exit().remove(),i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,r),i.order();var a=t.classed(&quot;rangeplot&quot;)?&quot;nodeRangePlot3&quot;:&quot;node3&quot;;return i.each((function(t){t[0][a]=n.select(this)})),i}},{d3:169}],784:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mat4&quot;);r.init2dArray=function(t,e){for(var r=new Array(t),n=0;n&lt;t;n++)r[n]=new Array(e);return r},r.transposeRagged=function(t){var e,r,n=0,i=t.length;for(e=0;e&lt;i;e++)n=Math.max(n,t[e].length);var a=new Array(n);for(e=0;e&lt;n;e++)for(a[e]=new Array(i),r=0;r&lt;i;r++)a[e][r]=t[r][e];return a},r.dot=function(t,e){if(!t.length||!e.length||t.length!==e.length)return null;var n,i,a=t.length;if(t[0].length)for(n=new Array(a),i=0;i&lt;a;i++)n[i]=r.dot(t[i],e);else if(e[0].length){var o=r.transposeRagged(e);for(n=new Array(o.length),i=0;i&lt;o.length;i++)n[i]=r.dot(t,o[i])}else for(n=0,i=0;i&lt;a;i++)n+=t[i]*e[i];return n},r.translationMatrix=function(t,e){return[[1,0,t],[0,1,e],[0,0,1]]},r.rotationMatrix=function(t){var e=t*Math.PI/180;return[[Math.cos(e),-Math.sin(e),0],[Math.sin(e),Math.cos(e),0],[0,0,1]]},r.rotationXYMatrix=function(t,e,n){return r.dot(r.dot(r.translationMatrix(e,n),r.rotationMatrix(t)),r.translationMatrix(-e,-n))},r.apply3DTransform=function(t){return function(){var e=arguments,n=1===arguments.length?e[0]:[e[0],e[1],e[2]||0];return r.dot(t,[n[0],n[1],n[2],1]).slice(0,3)}},r.apply2DTransform=function(t){return function(){var e=arguments;3===e.length&amp;&amp;(e=e[0]);var n=1===arguments.length?e[0]:[e[0],e[1]];return r.dot(t,[n[0],n[1],1]).slice(0,2)}},r.apply2DTransform2=function(t){var e=r.apply2DTransform(t);return function(t){return e(t.slice(0,2)).concat(e(t.slice(2,4)))}},r.convertCssMatrix=function(t){if(t){var e=t.length;if(16===e)return t;if(6===e)return[t[0],t[1],0,0,t[2],t[3],0,0,0,0,1,0,t[4],t[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},r.inverseTransformMatrix=function(t){var e=[];return n.invert(e,t),[[e[0],e[1],e[2],e[3]],[e[4],e[5],e[6],e[7]],[e[8],e[9],e[10],e[11]],[e[12],e[13],e[14],e[15]]]}},{&quot;gl-mat4&quot;:292}],785:[function(t,e,r){&quot;use strict&quot;;e.exports={mod:function(t,e){var r=t%e;return r&lt;0?r+e:r},modHalf:function(t,e){return Math.abs(t)&gt;e/2?t-Math.round(t/e)*e:t}}},{}],786:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./array&quot;).isArrayOrTypedArray;function a(t,e){return function(){var r,n,o,s,l,c=t;for(s=0;s&lt;e.length-1;s++){if(-1===(r=e[s])){for(n=!0,o=[],l=0;l&lt;c.length;l++)o[l]=a(c[l],e.slice(s+1))(),o[l]!==o[0]&amp;&amp;(n=!1);return n?o[0]:o}if(&quot;number&quot;==typeof r&amp;&amp;!i(c))return;if(&quot;object&quot;!=typeof(c=c[r])||null===c)return}if(&quot;object&quot;==typeof c&amp;&amp;null!==c&amp;&amp;null!==(o=c[e[s]]))return o}}e.exports=function(t,e){if(n(e))e=String(e);else if(&quot;string&quot;!=typeof e||&quot;[-1]&quot;===e.substr(e.length-4))throw&quot;bad property string&quot;;for(var r,i,o,s=0,c=e.split(&quot;.&quot;);s&lt;c.length;){if(r=String(c[s]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(r[1])c[s]=r[1];else{if(0!==s)throw&quot;bad property string&quot;;c.splice(0,1)}for(i=r[2].substr(1,r[2].length-2).split(&quot;][&quot;),o=0;o&lt;i.length;o++)s++,c.splice(s,0,Number(i[o]))}s++}return&quot;object&quot;!=typeof t?function(t,e,r){return{set:function(){throw&quot;bad container&quot;},get:function(){},astr:e,parts:r,obj:t}}(t,e,c):{set:l(t,c,e),get:a(t,c),astr:e,parts:c,obj:t}};var o=/(^|\.)args\[/;function s(t,e){return void 0===t||null===t&amp;&amp;!e.match(o)}function l(t,e,r){return function(n){var a,o,l=t,h=&quot;&quot;,p=[[t,h]],d=s(n,r);for(o=0;o&lt;e.length-1;o++){if(&quot;number&quot;==typeof(a=e[o])&amp;&amp;!i(l))throw&quot;array index but container is not an array&quot;;if(-1===a){if(d=!u(l,e.slice(o+1),n,r))break;return}if(!f(l,a,e[o+1],d))break;if(&quot;object&quot;!=typeof(l=l[a])||null===l)throw&quot;container is not an object&quot;;h=c(h,a),p.push([l,h])}if(d){if(o===e.length-1&amp;&amp;(delete l[e[o]],Array.isArray(l)&amp;&amp;+e[o]==l.length-1))for(;l.length&amp;&amp;void 0===l[l.length-1];)l.pop()}else l[e[o]]=n}}function c(t,e){var r=e;return n(e)?r=&quot;[&quot;+e+&quot;]&quot;:t&amp;&amp;(r=&quot;.&quot;+e),t+r}function u(t,e,r,n){var a,o=i(r),c=!0,u=r,h=n.replace(&quot;-1&quot;,0),p=!o&amp;&amp;s(r,h),d=e[0];for(a=0;a&lt;t.length;a++)h=n.replace(&quot;-1&quot;,a),o&amp;&amp;(p=s(u=r[a%r.length],h)),p&amp;&amp;(c=!1),f(t,a,d,p)&amp;&amp;l(t[a],e,n.replace(&quot;-1&quot;,a))(u);return c}function f(t,e,r,n){if(void 0===t[e]){if(n)return!1;t[e]=&quot;number&quot;==typeof r?[]:{}}return!0}},{&quot;./array&quot;:760,&quot;fast-isnumeric&quot;:241}],787:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){}},{}],788:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=[];e.exports=function(t,e){if(-1===a.indexOf(t)){a.push(t);var r=1e3;i(e)?r=e:&quot;long&quot;===e&amp;&amp;(r=3e3);var o=n.select(&quot;body&quot;).selectAll(&quot;.plotly-notifier&quot;).data([0]);o.enter().append(&quot;div&quot;).classed(&quot;plotly-notifier&quot;,!0),o.selectAll(&quot;.notifier-note&quot;).data(a).enter().append(&quot;div&quot;).classed(&quot;notifier-note&quot;,!0).style(&quot;opacity&quot;,0).each((function(t){var i=n.select(this);i.append(&quot;button&quot;).classed(&quot;notifier-close&quot;,!0).html(&quot;&amp;times;&quot;).on(&quot;click&quot;,(function(){i.transition().call(s)}));for(var a=i.append(&quot;p&quot;),o=t.split(/&lt;br\s*\/?&gt;/g),l=0;l&lt;o.length;l++)l&amp;&amp;a.append(&quot;br&quot;),a.append(&quot;span&quot;).text(o[l]);&quot;stick&quot;===e?i.transition().duration(350).style(&quot;opacity&quot;,1):i.transition().duration(700).style(&quot;opacity&quot;,1).transition().delay(r).call(s)}))}function s(t){t.duration(700).style(&quot;opacity&quot;,0).each(&quot;end&quot;,(function(t){var e=a.indexOf(t);-1!==e&amp;&amp;a.splice(e,1),n.select(this).remove()}))}}},{d3:169,&quot;fast-isnumeric&quot;:241}],789:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./setcursor&quot;),i=&quot;data-savedcursor&quot;;e.exports=function(t,e){var r=t.attr(i);if(e){if(!r){for(var a=(t.attr(&quot;class&quot;)||&quot;&quot;).split(&quot; &quot;),o=0;o&lt;a.length;o++){var s=a[o];0===s.indexOf(&quot;cursor-&quot;)&amp;&amp;t.attr(i,s.substr(7)).classed(s,!1)}t.attr(i)||t.attr(i,&quot;!!&quot;)}n(t,e)}else r&amp;&amp;(t.attr(i,null),&quot;!!&quot;===r?n(t):n(t,r))}},{&quot;./setcursor&quot;:799}],790:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./matrix&quot;).dot,i=t(&quot;../constants/numerical&quot;).BADNUM,a=e.exports={};a.tester=function(t){var e,r=t.slice(),n=r[0][0],a=n,o=r[0][1],s=o;for(r.push(r[0]),e=1;e&lt;r.length;e++)n=Math.min(n,r[e][0]),a=Math.max(a,r[e][0]),o=Math.min(o,r[e][1]),s=Math.max(s,r[e][1]);var l,c=!1;5===r.length&amp;&amp;(r[0][0]===r[1][0]?r[2][0]===r[3][0]&amp;&amp;r[0][1]===r[3][1]&amp;&amp;r[1][1]===r[2][1]&amp;&amp;(c=!0,l=function(t){return t[0]===r[0][0]}):r[0][1]===r[1][1]&amp;&amp;r[2][1]===r[3][1]&amp;&amp;r[0][0]===r[3][0]&amp;&amp;r[1][0]===r[2][0]&amp;&amp;(c=!0,l=function(t){return t[1]===r[0][1]}));var u=!0,f=r[0];for(e=1;e&lt;r.length;e++)if(f[0]!==r[e][0]||f[1]!==r[e][1]){u=!1;break}return{xmin:n,xmax:a,ymin:o,ymax:s,pts:r,contains:c?function(t,e){var r=t[0],c=t[1];return!(r===i||r&lt;n||r&gt;a||c===i||c&lt;o||c&gt;s)&amp;&amp;(!e||!l(t))}:function(t,e){var l=t[0],c=t[1];if(l===i||l&lt;n||l&gt;a||c===i||c&lt;o||c&gt;s)return!1;var u,f,h,p,d,g=r.length,m=r[0][0],v=r[0][1],y=0;for(u=1;u&lt;g;u++)if(f=m,h=v,m=r[u][0],v=r[u][1],!(l&lt;(p=Math.min(f,m))||l&gt;Math.max(f,m)||c&gt;Math.max(h,v)))if(c&lt;Math.min(h,v))l!==p&amp;&amp;y++;else{if(c===(d=m===f?c:h+(l-f)*(v-h)/(m-f)))return 1!==u||!e;c&lt;=d&amp;&amp;l!==p&amp;&amp;y++}return y%2==1},isRect:c,degenerate:u}},a.isSegmentBent=function(t,e,r,i){var a,o,s,l=t[e],c=[t[r][0]-l[0],t[r][1]-l[1]],u=n(c,c),f=Math.sqrt(u),h=[-c[1]/f,c[0]/f];for(a=e+1;a&lt;r;a++)if(o=[t[a][0]-l[0],t[a][1]-l[1]],(s=n(o,c))&lt;0||s&gt;u||Math.abs(n(o,h))&gt;i)return!0;return!1},a.filter=function(t,e){var r=[t[0]],n=0,i=0;function o(o){t.push(o);var s=r.length,l=n;r.splice(i+1);for(var c=l+1;c&lt;t.length;c++)(c===t.length-1||a.isSegmentBent(t,l,c+1,e))&amp;&amp;(r.push(t[c]),r.length&lt;s-2&amp;&amp;(n=c,i=r.length-1),l=c)}t.length&gt;1&amp;&amp;o(t.pop());return{addPt:o,raw:t,filtered:r}}},{&quot;../constants/numerical&quot;:753,&quot;./matrix&quot;:784}],791:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;./show_no_webgl_msg&quot;),i=t(&quot;regl&quot;);e.exports=function(t,e){var a=t._fullLayout,o=!0;return a._glcanvas.each((function(n){if(!n.regl&amp;&amp;(!n.pick||a._has(&quot;parcoords&quot;))){try{n.regl=i({canvas:this,attributes:{antialias:!n.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||r.devicePixelRatio,extensions:e||[]})}catch(t){o=!1}n.regl||(o=!1),o&amp;&amp;this.addEventListener(&quot;webglcontextlost&quot;,(function(e){t&amp;&amp;t.emit&amp;&amp;t.emit(&quot;plotly_webglcontextlost&quot;,{event:e,layer:n.key})}),!1)}})),o||n({container:a._glcontainer.node()}),o}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;./show_no_webgl_msg&quot;:800,regl:540}],792:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;is-mobile&quot;);e.exports=function(t){var e;if(&quot;string&quot;!=typeof(e=t&amp;&amp;t.hasOwnProperty(&quot;userAgent&quot;)?t.userAgent:function(){var t;&quot;undefined&quot;!=typeof navigator&amp;&amp;(t=navigator.userAgent);t&amp;&amp;t.headers&amp;&amp;&quot;string&quot;==typeof t.headers[&quot;user-agent&quot;]&amp;&amp;(t=t.headers[&quot;user-agent&quot;]);return t}()))return!0;var r=i({ua:{headers:{&quot;user-agent&quot;:e}},tablet:!0,featureDetect:!1});if(!r)for(var a=e.split(&quot; &quot;),o=1;o&lt;a.length;o++){if(-1!==a[o].indexOf(&quot;Safari&quot;))for(var s=o-1;s&gt;-1;s--){var l=a[s];if(&quot;Version/&quot;===l.substr(0,8)){var c=l.substr(8).split(&quot;.&quot;)[0];if(n(c)&amp;&amp;(c=+c),c&gt;=13)return!0}}}return r}},{&quot;fast-isnumeric&quot;:241,&quot;is-mobile&quot;:467}],793:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(e instanceof RegExp){for(var r=e.toString(),n=0;n&lt;t.length;n++)if(t[n]instanceof RegExp&amp;&amp;t[n].toString()===r)return t;t.push(e)}else!e&amp;&amp;0!==e||-1!==t.indexOf(e)||t.push(e);return t}},{}],794:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_config&quot;).dfltConfig;var a={add:function(t,e,r,n,a){var o,s;t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},s=t.undoQueue.index,t.autoplay?t.undoQueue.inSequence||(t.autoplay=!1):(!t.undoQueue.sequence||t.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},t.undoQueue.queue.splice(s,t.undoQueue.queue.length-s,o),t.undoQueue.index+=1):o=t.undoQueue.queue[s-1],t.undoQueue.beginSequence=!1,o&amp;&amp;(o.undo.calls.unshift(e),o.undo.args.unshift(r),o.redo.calls.push(n),o.redo.args.push(a)),t.undoQueue.queue.length&gt;i.queueLength&amp;&amp;(t.undoQueue.queue.shift(),t.undoQueue.index--))},startSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!0,t.undoQueue.beginSequence=!0},stopSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!1,t.undoQueue.beginSequence=!1},undo:function(t){var e,r;if(t.framework&amp;&amp;t.framework.isPolar)t.framework.undo();else if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index&lt;=0)){for(t.undoQueue.index--,e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r&lt;e.undo.calls.length;r++)a.plotDo(t,e.undo.calls[r],e.undo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1}},redo:function(t){var e,r;if(t.framework&amp;&amp;t.framework.isPolar)t.framework.redo();else if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index&gt;=t.undoQueue.queue.length)){for(e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r&lt;e.redo.calls.length;r++)a.plotDo(t,e.redo.calls[r],e.redo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1,t.undoQueue.index++}}};a.plotDo=function(t,e,r){t.autoplay=!0,r=function(t,e){for(var r,i=[],a=0;a&lt;e.length;a++)r=e[a],i[a]=r===t?r:&quot;object&quot;==typeof r?Array.isArray(r)?n.extendDeep([],r):n.extendDeepAll({},r):r;return i}(t,r),e.apply(null,r)},e.exports=a},{&quot;../lib&quot;:778,&quot;../plot_api/plot_config&quot;:815}],795:[function(t,e,r){&quot;use strict&quot;;r.counter=function(t,e,r,n){var i=(e||&quot;&quot;)+(r?&quot;&quot;:&quot;$&quot;),a=!1===n?&quot;&quot;:&quot;^&quot;;return&quot;xy&quot;===t?new RegExp(a+&quot;x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?&quot;+i):new RegExp(a+t+&quot;([2-9]|[1-9][0-9]+)?&quot;+i)}},{}],796:[function(t,e,r){&quot;use strict&quot;;var n=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,i=/^[^\.\[\]]+$/;e.exports=function(t,e){for(;e;){var r=t.match(n);if(r)t=r[1];else{if(!t.match(i))throw new Error(&quot;bad relativeAttr call:&quot;+[t,e]);t=&quot;&quot;}if(&quot;^&quot;!==e.charAt(0))break;e=e.slice(1)}return t&amp;&amp;&quot;[&quot;!==e.charAt(0)?t+&quot;.&quot;+e:t+e}},{}],797:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./array&quot;).isArrayOrTypedArray,i=t(&quot;./is_plain_object&quot;);e.exports=function t(e,r){for(var a in r){var o=r[a],s=e[a];if(s!==o)if(&quot;_&quot;===a.charAt(0)||&quot;function&quot;==typeof o){if(a in e)continue;e[a]=o}else if(n(o)&amp;&amp;n(s)&amp;&amp;i(o[0])){if(&quot;customdata&quot;===a||&quot;ids&quot;===a)continue;for(var l=Math.min(o.length,s.length),c=0;c&lt;l;c++)s[c]!==o[c]&amp;&amp;i(o[c])&amp;&amp;i(s[c])&amp;&amp;t(s[c],o[c])}else i(o)&amp;&amp;i(s)&amp;&amp;(t(s,o),Object.keys(s).length||delete e[a])}}},{&quot;./array&quot;:760,&quot;./is_plain_object&quot;:779}],798:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./loggers&quot;),a=t(&quot;./identity&quot;),o=t(&quot;../constants/numerical&quot;).BADNUM;function s(t,e){return t&lt;e}function l(t,e){return t&lt;=e}function c(t,e){return t&gt;e}function u(t,e){return t&gt;=e}r.findBin=function(t,e,r){if(n(e.start))return r?Math.ceil((t-e.start)/e.size-1e-9)-1:Math.floor((t-e.start)/e.size+1e-9);var a,o,f=0,h=e.length,p=0,d=h&gt;1?(e[h-1]-e[0])/(h-1):1;for(o=d&gt;=0?r?s:l:r?u:c,t+=1e-9*d*(r?-1:1)*(d&gt;=0?1:-1);f&lt;h&amp;&amp;p++&lt;100;)o(e[a=Math.floor((f+h)/2)],t)?f=a+1:h=a;return p&gt;90&amp;&amp;i.log(&quot;Long binary search...&quot;),f-1},r.sorterAsc=function(t,e){return t-e},r.sorterDes=function(t,e){return e-t},r.distinctVals=function(t,e){var n,i=(e||{}).unitMinDiff,a=t.slice();for(a.sort(r.sorterAsc),n=a.length-1;n&gt;-1&amp;&amp;a[n]===o;n--);var s=1;i||(s=a[n]-a[0]||1);for(var l,c=s/(n||1)/1e4,u=[],f=0;f&lt;=n;f++){var h=a[f],p=h-l;void 0===l?(u.push(h),l=h):p&gt;c&amp;&amp;(s=Math.min(s,p),u.push(h),l=h)}return{vals:u,minDiff:s}},r.roundUp=function(t,e,r){for(var n,i=0,a=e.length-1,o=0,s=r?0:1,l=r?1:0,c=r?Math.ceil:Math.floor;i&lt;a&amp;&amp;o++&lt;100;)e[n=c((i+a)/2)]&lt;=t?i=n+s:a=n-l;return e[i]},r.sort=function(t,e){for(var r=0,n=0,i=1;i&lt;t.length;i++){var a=e(t[i],t[i-1]);if(a&lt;0?r=1:a&gt;0&amp;&amp;(n=1),r&amp;&amp;n)return t.sort(e)}return n?t:t.reverse()},r.findIndexOfMin=function(t,e){e=e||a;for(var r,n=1/0,i=0;i&lt;t.length;i++){var o=e(t[i]);o&lt;n&amp;&amp;(n=o,r=i)}return r}},{&quot;../constants/numerical&quot;:753,&quot;./identity&quot;:776,&quot;./loggers&quot;:782,&quot;fast-isnumeric&quot;:241}],799:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){(t.attr(&quot;class&quot;)||&quot;&quot;).split(&quot; &quot;).forEach((function(e){0===e.indexOf(&quot;cursor-&quot;)&amp;&amp;t.classed(e,!1)})),e&amp;&amp;t.classed(&quot;cursor-&quot;+e,!0)}},{}],800:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../components/color&quot;),i=function(){};e.exports=function(t){for(var e in t)&quot;function&quot;==typeof t[e]&amp;&amp;(t[e]=i);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var r=document.createElement(&quot;div&quot;);r.className=&quot;no-webgl&quot;,r.style.cursor=&quot;pointer&quot;,r.style.fontSize=&quot;24px&quot;,r.style.color=n.defaults[0],r.style.position=&quot;absolute&quot;,r.style.left=r.style.top=&quot;0px&quot;,r.style.width=r.style.height=&quot;100%&quot;,r.style[&quot;background-color&quot;]=n.lightLine,r.style[&quot;z-index&quot;]=30;var a=document.createElement(&quot;p&quot;);return a.textContent=&quot;WebGL is not supported by your browser - visit https://get.webgl.org for more info&quot;,a.style.position=&quot;relative&quot;,a.style.top=&quot;50%&quot;,a.style.left=&quot;50%&quot;,a.style.height=&quot;30%&quot;,a.style.width=&quot;50%&quot;,a.style.margin=&quot;-15% 0 0 -25%&quot;,r.appendChild(a),t.container.appendChild(r),t.container.style.background=&quot;#FFFFFF&quot;,t.container.onclick=function(){window.open(&quot;https://get.webgl.org&quot;)},!1}},{&quot;../components/color&quot;:643}],801:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./array&quot;).isArrayOrTypedArray;r.aggNums=function(t,e,a,o){var s,l;if((!o||o&gt;a.length)&amp;&amp;(o=a.length),n(e)||(e=!1),i(a[0])){for(l=new Array(o),s=0;s&lt;o;s++)l[s]=r.aggNums(t,e,a[s]);a=l}for(s=0;s&lt;o;s++)n(e)?n(a[s])&amp;&amp;(e=t(+e,+a[s])):e=a[s];return e},r.len=function(t){return r.aggNums((function(t){return t+1}),0,t)},r.mean=function(t,e){return e||(e=r.len(t)),r.aggNums((function(t,e){return t+e}),0,t)/e},r.midRange=function(t){if(void 0!==t&amp;&amp;0!==t.length)return(r.aggNums(Math.max,null,t)+r.aggNums(Math.min,null,t))/2},r.variance=function(t,e,i){return e||(e=r.len(t)),n(i)||(i=r.mean(t,e)),r.aggNums((function(t,e){return t+Math.pow(e-i,2)}),0,t)/e},r.stdev=function(t,e,n){return Math.sqrt(r.variance(t,e,n))},r.median=function(t){var e=t.slice().sort();return r.interp(e,.5)},r.interp=function(t,e){if(!n(e))throw&quot;n should be a finite number&quot;;if((e=e*t.length-.5)&lt;0)return t[0];if(e&gt;t.length-1)return t[t.length-1];var r=e%1;return r*t[Math.ceil(e)]+(1-r)*t[Math.floor(e)]}},{&quot;./array&quot;:760,&quot;fast-isnumeric&quot;:241}],802:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-normalize&quot;);e.exports=function(t){return t?n(t):[0,0,0,1]}},{&quot;color-normalize&quot;:125}],803:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../lib&quot;),a=i.strTranslate,o=t(&quot;../constants/xmlns_namespaces&quot;),s=t(&quot;../constants/alignment&quot;).LINE_SPACING;function l(t,e){return t.node().getBoundingClientRect()[e]}var c=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;r.convertToTspans=function(t,e,A){var S=t.text(),C=!t.attr(&quot;data-notex&quot;)&amp;&amp;&quot;undefined&quot;!=typeof MathJax&amp;&amp;S.match(c),L=n.select(t.node().parentNode);if(!L.empty()){var I=t.attr(&quot;class&quot;)?t.attr(&quot;class&quot;).split(&quot; &quot;)[0]:&quot;text&quot;;return I+=&quot;-math&quot;,L.selectAll(&quot;svg.&quot;+I).remove(),L.selectAll(&quot;g.&quot;+I+&quot;-group&quot;).remove(),t.style(&quot;display&quot;,null).attr({&quot;data-unformatted&quot;:S,&quot;data-math&quot;:&quot;N&quot;}),C?(e&amp;&amp;e._promises||[]).push(new Promise((function(e){t.style(&quot;display&quot;,&quot;none&quot;);var r=parseInt(t.node().style.fontSize,10),o={fontSize:r};!function(t,e,r){var a,o,s,l;MathJax.Hub.Queue((function(){return o=i.extendDeepAll({},MathJax.Hub.config),s=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&amp;&amp;(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:&quot;none&quot;,tex2jax:{inlineMath:[[&quot;$&quot;,&quot;$&quot;],[&quot;\\(&quot;,&quot;\\)&quot;]]},displayAlign:&quot;left&quot;})}),(function(){if(&quot;SVG&quot;!==(a=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer(&quot;SVG&quot;)}),(function(){var r=&quot;math-output-&quot;+i.randstr({},64);return l=n.select(&quot;body&quot;).append(&quot;div&quot;).attr({id:r}).style({visibility:&quot;hidden&quot;,position:&quot;absolute&quot;}).style({&quot;font-size&quot;:e.fontSize+&quot;px&quot;}).text(t.replace(u,&quot;\\lt &quot;).replace(f,&quot;\\gt &quot;)),MathJax.Hub.Typeset(l.node())}),(function(){var e=n.select(&quot;body&quot;).select(&quot;#MathJax_SVG_glyphs&quot;);if(l.select(&quot;.MathJax_SVG&quot;).empty()||!l.select(&quot;svg&quot;).node())i.log(&quot;There was an error in the tex syntax.&quot;,t),r();else{var o=l.select(&quot;svg&quot;).node().getBoundingClientRect();r(l.select(&quot;.MathJax_SVG&quot;),e,o)}if(l.remove(),&quot;SVG&quot;!==a)return MathJax.Hub.setRenderer(a)}),(function(){return void 0!==s&amp;&amp;(MathJax.Hub.processSectionDelay=s),MathJax.Hub.Config(o)}))}(C[2],o,(function(n,i,o){L.selectAll(&quot;svg.&quot;+I).remove(),L.selectAll(&quot;g.&quot;+I+&quot;-group&quot;).remove();var s=n&amp;&amp;n.select(&quot;svg&quot;);if(!s||!s.node())return P(),void e();var c=L.append(&quot;g&quot;).classed(I+&quot;-group&quot;,!0).attr({&quot;pointer-events&quot;:&quot;none&quot;,&quot;data-unformatted&quot;:S,&quot;data-math&quot;:&quot;Y&quot;});c.node().appendChild(s.node()),i&amp;&amp;i.node()&amp;&amp;s.node().insertBefore(i.node().cloneNode(!0),s.node().firstChild),s.attr({class:I,height:o.height,preserveAspectRatio:&quot;xMinYMin meet&quot;}).style({overflow:&quot;visible&quot;,&quot;pointer-events&quot;:&quot;none&quot;});var u=t.node().style.fill||&quot;black&quot;,f=s.select(&quot;g&quot;);f.attr({fill:u,stroke:u});var h=l(f,&quot;width&quot;),p=l(f,&quot;height&quot;),d=+t.attr(&quot;x&quot;)-h*{start:0,middle:.5,end:1}[t.attr(&quot;text-anchor&quot;)||&quot;start&quot;],g=-(r||l(t,&quot;height&quot;))/4;&quot;y&quot;===I[0]?(c.attr({transform:&quot;rotate(&quot;+[-90,+t.attr(&quot;x&quot;),+t.attr(&quot;y&quot;)]+&quot;)&quot;+a(-h/2,g-p/2)}),s.attr({x:+t.attr(&quot;x&quot;),y:+t.attr(&quot;y&quot;)})):&quot;l&quot;===I[0]?s.attr({x:t.attr(&quot;x&quot;),y:g-p/2}):&quot;a&quot;===I[0]&amp;&amp;0!==I.indexOf(&quot;atitle&quot;)?s.attr({x:0,y:g}):s.attr({x:d,y:+t.attr(&quot;y&quot;)+g-p/2}),A&amp;&amp;A.call(t,c),e(c)}))}))):P(),t}function P(){L.empty()||(I=t.attr(&quot;class&quot;)+&quot;-math&quot;,L.select(&quot;svg.&quot;+I).remove()),t.text(&quot;&quot;).style(&quot;white-space&quot;,&quot;pre&quot;),function(t,e){e=e.replace(m,&quot; &quot;);var r,a=!1,l=[],c=-1;function u(){c++;var e=document.createElementNS(o.svg,&quot;tspan&quot;);n.select(e).attr({class:&quot;line&quot;,dy:c*s+&quot;em&quot;}),t.appendChild(e),r=e;var i=l;if(l=[{node:e}],i.length&gt;1)for(var a=1;a&lt;i.length;a++)f(i[a])}function f(t){var e,i=t.type,a={};if(&quot;a&quot;===i){e=&quot;a&quot;;var s=t.target,c=t.href,u=t.popup;c&amp;&amp;(a={&quot;xlink:xlink:show&quot;:&quot;_blank&quot;===s||&quot;_&quot;!==s.charAt(0)?&quot;new&quot;:&quot;replace&quot;,target:s,&quot;xlink:xlink:href&quot;:c},u&amp;&amp;(a.onclick='window.open(this.href.baseVal,this.target.baseVal,&quot;'+u+'&quot;);return false;'))}else e=&quot;tspan&quot;;t.style&amp;&amp;(a.style=t.style);var f=document.createElementNS(o.svg,e);if(&quot;sup&quot;===i||&quot;sub&quot;===i){A(r,&quot;\u200b&quot;),r.appendChild(f);var h=document.createElementNS(o.svg,&quot;tspan&quot;);A(h,&quot;\u200b&quot;),n.select(h).attr(&quot;dy&quot;,d[i]),a.dy=p[i],r.appendChild(f),r.appendChild(h)}else r.appendChild(f);n.select(f).attr(a),r=t.node=f,l.push(t)}function A(t,e){t.appendChild(document.createTextNode(e))}function S(t){if(1!==l.length){var n=l.pop();t!==n.type&amp;&amp;i.log(&quot;Start tag &lt;&quot;+n.type+&quot;&gt; doesnt match end tag &lt;&quot;+t+&quot;&gt;. Pretending it did match.&quot;,e),r=l[l.length-1].node}else i.log(&quot;Ignoring unexpected end tag &lt;/&quot;+t+&quot;&gt;.&quot;,e)}x.test(e)?u():(r=t,l=[{node:t}]);for(var C=e.split(v),L=0;L&lt;C.length;L++){var I=C[L],P=I.match(y),z=P&amp;&amp;P[2].toLowerCase(),O=h[z];if(&quot;br&quot;===z)u();else if(void 0===O)A(r,E(I));else if(P[1])S(z);else{var D=P[4],R={type:z},F=k(D,b);if(F?(F=F.replace(M,&quot;$1 fill:&quot;),O&amp;&amp;(F+=&quot;;&quot;+O)):O&amp;&amp;(F=O),F&amp;&amp;(R.style=F),&quot;a&quot;===z){a=!0;var B=k(D,_);if(B){var N=document.createElement(&quot;a&quot;);N.href=B,-1!==g.indexOf(N.protocol)&amp;&amp;(R.href=encodeURI(decodeURI(B)),R.target=k(D,w)||&quot;_blank&quot;,R.popup=k(D,T))}}f(R)}}return a}(t.node(),S)&amp;&amp;t.style(&quot;pointer-events&quot;,&quot;all&quot;),r.positionText(t),A&amp;&amp;A.call(t)}};var u=/(&lt;|&amp;lt;|&amp;#60;)/g,f=/(&gt;|&amp;gt;|&amp;#62;)/g;var h={sup:&quot;font-size:70%&quot;,sub:&quot;font-size:70%&quot;,b:&quot;font-weight:bold&quot;,i:&quot;font-style:italic&quot;,a:&quot;cursor:pointer&quot;,span:&quot;&quot;,em:&quot;font-style:italic;font-weight:bold&quot;},p={sub:&quot;0.3em&quot;,sup:&quot;-0.6em&quot;},d={sub:&quot;-0.21em&quot;,sup:&quot;0.42em&quot;},g=[&quot;http:&quot;,&quot;https:&quot;,&quot;mailto:&quot;,&quot;&quot;,void 0,&quot;:&quot;],m=r.NEWLINES=/(\r\n?|\n)/g,v=/(&lt;[^&lt;&gt;]*&gt;)/,y=/&lt;(\/?)([^ &gt;]*)(\s+(.*))?&gt;/i,x=/&lt;br(\s+.*)?&gt;/i;r.BR_TAG_ALL=/&lt;br(\s+.*)?&gt;/gi;var b=/(^|[\s&quot;'])style\s*=\s*(&quot;([^&quot;]*);?&quot;|'([^']*);?')/i,_=/(^|[\s&quot;'])href\s*=\s*(&quot;([^&quot;]*)&quot;|'([^']*)')/i,w=/(^|[\s&quot;'])target\s*=\s*(&quot;([^&quot;\s]*)&quot;|'([^'\s]*)')/i,T=/(^|[\s&quot;'])popup\s*=\s*(&quot;([\w=,]*)&quot;|'([\w=,]*)')/i;function k(t,e){if(!t)return null;var r=t.match(e),n=r&amp;&amp;(r[3]||r[4]);return n&amp;&amp;E(n)}var M=/(^|;)\s*color:/;r.plainText=function(t,e){for(var r=void 0!==(e=e||{}).len&amp;&amp;-1!==e.len?e.len:1/0,n=void 0!==e.allowedTags?e.allowedTags:[&quot;br&quot;],i=&quot;...&quot;.length,a=t.split(v),o=[],s=&quot;&quot;,l=0,c=0;c&lt;a.length;c++){var u=a[c],f=u.match(y),h=f&amp;&amp;f[2].toLowerCase();if(h)-1!==n.indexOf(h)&amp;&amp;(o.push(u),s=h);else{var p=u.length;if(l+p&lt;r)o.push(u),l+=p;else if(l&lt;r){var d=r-l;s&amp;&amp;(&quot;br&quot;!==s||d&lt;=i||p&lt;=i)&amp;&amp;o.pop(),r&gt;i?o.push(u.substr(0,d-i)+&quot;...&quot;):o.push(u.substr(0,d));break}s=&quot;&quot;}}return o.join(&quot;&quot;)};var A={mu:&quot;\u03bc&quot;,amp:&quot;&amp;&quot;,lt:&quot;&lt;&quot;,gt:&quot;&gt;&quot;,nbsp:&quot;\xa0&quot;,times:&quot;\xd7&quot;,plusmn:&quot;\xb1&quot;,deg:&quot;\xb0&quot;},S=/&amp;(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function E(t){return t.replace(S,(function(t,e){return(&quot;#&quot;===e.charAt(0)?function(t){if(t&gt;1114111)return;var e=String.fromCodePoint;if(e)return e(t);var r=String.fromCharCode;return t&lt;=65535?r(t):r(55232+(t&gt;&gt;10),t%1024+56320)}(&quot;x&quot;===e.charAt(1)?parseInt(e.substr(2),16):parseInt(e.substr(1),10)):A[e])||t}))}function C(t,e,r){var n,a,o,s=r.horizontalAlign,l=r.verticalAlign||&quot;top&quot;,c=t.node().getBoundingClientRect(),u=e.node().getBoundingClientRect();return a=&quot;bottom&quot;===l?function(){return c.bottom-n.height}:&quot;middle&quot;===l?function(){return c.top+(c.height-n.height)/2}:function(){return c.top},o=&quot;right&quot;===s?function(){return c.right-n.width}:&quot;center&quot;===s?function(){return c.left+(c.width-n.width)/2}:function(){return c.left},function(){n=this.node().getBoundingClientRect();var t=o()-u.left,e=a()-u.top,s=r.gd||{};if(r.gd){s._fullLayout._calcInverseTransform(s);var l=i.apply3DTransform(s._fullLayout._invTransform)(t,e);t=l[0],e=l[1]}return this.style({top:e+&quot;px&quot;,left:t+&quot;px&quot;,&quot;z-index&quot;:1e3}),this}}r.convertEntities=E,r.sanitizeHTML=function(t){t=t.replace(m,&quot; &quot;);for(var e=document.createElement(&quot;p&quot;),r=e,i=[],a=t.split(v),o=0;o&lt;a.length;o++){var s=a[o],l=s.match(y),c=l&amp;&amp;l[2].toLowerCase();if(c in h)if(l[1])i.length&amp;&amp;(r=i.pop());else{var u=l[4],f=k(u,b),p=f?{style:f}:{};if(&quot;a&quot;===c){var d=k(u,_);if(d){var x=document.createElement(&quot;a&quot;);if(x.href=d,-1!==g.indexOf(x.protocol)){p.href=encodeURI(decodeURI(d));var T=k(u,w);T&amp;&amp;(p.target=T)}}}var M=document.createElement(c);r.appendChild(M),n.select(M).attr(p),r=M,i.push(M)}else r.appendChild(document.createTextNode(E(s)))}return e.innerHTML},r.lineCount=function(t){return t.selectAll(&quot;tspan.line&quot;).size()||1},r.positionText=function(t,e,r){return t.each((function(){var t=n.select(this);function i(e,r){return void 0===r?null===(r=t.attr(e))&amp;&amp;(t.attr(e,0),r=0):t.attr(e,r),r}var a=i(&quot;x&quot;,e),o=i(&quot;y&quot;,r);&quot;text&quot;===this.nodeName&amp;&amp;t.selectAll(&quot;tspan.line&quot;).attr({x:a,y:o})}))},r.makeEditable=function(t,e){var r=e.gd,i=e.delegate,a=n.dispatch(&quot;edit&quot;,&quot;input&quot;,&quot;cancel&quot;),o=i||t;if(t.style({&quot;pointer-events&quot;:i?&quot;none&quot;:&quot;all&quot;}),1!==t.size())throw new Error(&quot;boo&quot;);function s(){!function(){var i=n.select(r).select(&quot;.svg-container&quot;),o=i.append(&quot;div&quot;),s=t.node().style,c=parseFloat(s.fontSize||12),u=e.text;void 0===u&amp;&amp;(u=t.attr(&quot;data-unformatted&quot;));o.classed(&quot;plugin-editable editable&quot;,!0).style({position:&quot;absolute&quot;,&quot;font-family&quot;:s.fontFamily||&quot;Arial&quot;,&quot;font-size&quot;:c,color:e.fill||s.fill||&quot;black&quot;,opacity:1,&quot;background-color&quot;:e.background||&quot;transparent&quot;,outline:&quot;#ffffff33 1px solid&quot;,margin:[-c/8+1,0,0,-1].join(&quot;px &quot;)+&quot;px&quot;,padding:&quot;0&quot;,&quot;box-sizing&quot;:&quot;border-box&quot;}).attr({contenteditable:!0}).text(u).call(C(t,i,e)).on(&quot;blur&quot;,(function(){r._editing=!1,t.text(this.textContent).style({opacity:1});var e,i=n.select(this).attr(&quot;class&quot;);(e=i?&quot;.&quot;+i.split(&quot; &quot;)[0]+&quot;-math-group&quot;:&quot;[class*=-math-group]&quot;)&amp;&amp;n.select(t.node().parentNode).select(e).style({opacity:0});var o=this.textContent;n.select(this).transition().duration(0).remove(),n.select(document).on(&quot;mouseup&quot;,null),a.edit.call(t,o)})).on(&quot;focus&quot;,(function(){var t=this;r._editing=!0,n.select(document).on(&quot;mouseup&quot;,(function(){if(n.event.target===t)return!1;document.activeElement===o.node()&amp;&amp;o.node().blur()}))})).on(&quot;keyup&quot;,(function(){27===n.event.which?(r._editing=!1,t.style({opacity:1}),n.select(this).style({opacity:0}).on(&quot;blur&quot;,(function(){return!1})).transition().remove(),a.cancel.call(t,this.textContent)):(a.input.call(t,this.textContent),n.select(this).call(C(t,i,e)))})).on(&quot;keydown&quot;,(function(){13===n.event.which&amp;&amp;this.blur()})).call(l)}(),t.style({opacity:0});var i,s=o.attr(&quot;class&quot;);(i=s?&quot;.&quot;+s.split(&quot; &quot;)[0]+&quot;-math-group&quot;:&quot;[class*=-math-group]&quot;)&amp;&amp;n.select(t.node().parentNode).select(i).style({opacity:0})}function l(t){var e=t.node(),r=document.createRange();r.selectNodeContents(e);var n=window.getSelection();n.removeAllRanges(),n.addRange(r),e.focus()}return e.immediate?s():o.on(&quot;click&quot;,s),n.rebind(t,a,&quot;on&quot;)}},{&quot;../constants/alignment&quot;:745,&quot;../constants/xmlns_namespaces&quot;:754,&quot;../lib&quot;:778,d3:169}],804:[function(t,e,r){&quot;use strict&quot;;var n={};function i(t){t&amp;&amp;null!==t.timer&amp;&amp;(clearTimeout(t.timer),t.timer=null)}r.throttle=function(t,e,r){var a=n[t],o=Date.now();if(!a){for(var s in n)n[s].ts&lt;o-6e4&amp;&amp;delete n[s];a=n[t]={ts:0,timer:null}}function l(){r(),a.ts=Date.now(),a.onDone&amp;&amp;(a.onDone(),a.onDone=null)}i(a),o&gt;a.ts+e?l():a.timer=setTimeout((function(){l(),a.timer=null}),e)},r.done=function(t){var e=n[t];return e&amp;&amp;e.timer?new Promise((function(t){var r=e.onDone;e.onDone=function(){r&amp;&amp;r(),t(),e.onDone=null}})):Promise.resolve()},r.clear=function(t){if(t)i(n[t]),delete n[t];else for(var e in n)r.clear(e)}},{}],805:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports=function(t,e){if(t&gt;0)return Math.log(t)/Math.LN10;var r=Math.log(Math.min(e[0],e[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(e[0],e[1]))/Math.LN10-6),r}},{&quot;fast-isnumeric&quot;:241}],806:[function(t,e,r){&quot;use strict&quot;;var n=e.exports={},i=t(&quot;../plots/geo/constants&quot;).locationmodeToLayer,a=t(&quot;topojson-client&quot;).feature;n.getTopojsonName=function(t){return[t.scope.replace(/ /g,&quot;-&quot;),&quot;_&quot;,t.resolution.toString(),&quot;m&quot;].join(&quot;&quot;)},n.getTopojsonPath=function(t,e){return t+e+&quot;.json&quot;},n.getTopojsonFeatures=function(t,e){var r=i[t.locationmode],n=e.objects[r];return a(e,n).features}},{&quot;../plots/geo/constants&quot;:858,&quot;topojson-client&quot;:579}],807:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;locale&quot;,name:&quot;en-US&quot;,dictionary:{&quot;Click to enter Colorscale title&quot;:&quot;Click to enter Colorscale title&quot;},format:{date:&quot;%m/%d/%Y&quot;}}},{}],808:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;locale&quot;,name:&quot;en&quot;,dictionary:{&quot;Click to enter Colorscale title&quot;:&quot;Click to enter Colourscale title&quot;},format:{days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],periods:[&quot;AM&quot;,&quot;PM&quot;],dateTime:&quot;%a %b %e %X %Y&quot;,date:&quot;%d/%m/%Y&quot;,time:&quot;%H:%M:%S&quot;,decimal:&quot;.&quot;,thousands:&quot;,&quot;,grouping:[3],currency:[&quot;$&quot;,&quot;&quot;],year:&quot;%Y&quot;,month:&quot;%b %Y&quot;,dayMonth:&quot;%b %-d&quot;,dayMonthYear:&quot;%b %-d, %Y&quot;}}},{}],809:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);e.exports=function(t){for(var e,r,i=n.layoutArrayContainers,a=n.layoutArrayRegexes,o=t.split(&quot;[&quot;)[0],s=0;s&lt;a.length;s++)if((r=t.match(a[s]))&amp;&amp;0===r.index){e=r[0];break}if(e||(e=i[i.indexOf(o)]),!e)return!1;var l=t.substr(e.length);return l?!!(r=l.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&amp;&amp;{array:e,index:Number(r[1]),property:r[3]||&quot;&quot;}:{array:e,index:&quot;&quot;,property:&quot;&quot;}}},{&quot;../registry&quot;:911}],810:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=n.extendFlat,a=n.isPlainObject,o={valType:&quot;flaglist&quot;,extras:[&quot;none&quot;],flags:[&quot;calc&quot;,&quot;clearAxisTypes&quot;,&quot;plot&quot;,&quot;style&quot;,&quot;markerSize&quot;,&quot;colorbars&quot;]},s={valType:&quot;flaglist&quot;,extras:[&quot;none&quot;],flags:[&quot;calc&quot;,&quot;plot&quot;,&quot;legend&quot;,&quot;ticks&quot;,&quot;axrange&quot;,&quot;layoutstyle&quot;,&quot;modebar&quot;,&quot;camera&quot;,&quot;arraydraw&quot;,&quot;colorbars&quot;]},l=o.flags.slice().concat([&quot;fullReplot&quot;]),c=s.flags.slice().concat(&quot;layoutReplot&quot;);function u(t){for(var e={},r=0;r&lt;t.length;r++)e[t[r]]=!1;return e}function f(t,e,r){var n=i({},t);for(var o in n){var s=n[o];a(s)&amp;&amp;(n[o]=h(s,e,r,o))}return&quot;from-root&quot;===r&amp;&amp;(n.editType=e),n}function h(t,e,r,n){if(t.valType){var a=i({},t);if(a.editType=e,Array.isArray(t.items)){a.items=new Array(t.items.length);for(var o=0;o&lt;t.items.length;o++)a.items[o]=h(t.items[o],e,&quot;from-root&quot;)}return a}return f(t,e,&quot;_&quot;===n.charAt(0)?&quot;nested&quot;:&quot;from-root&quot;)}e.exports={traces:o,layout:s,traceFlags:function(){return u(l)},layoutFlags:function(){return u(c)},update:function(t,e){var r=e.editType;if(r&amp;&amp;&quot;none&quot;!==r)for(var n=r.split(&quot;+&quot;),i=0;i&lt;n.length;i++)t[n[i]]=!0},overrideAll:f}},{&quot;../lib&quot;:778}],811:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;gl-mat4/fromQuat&quot;),a=t(&quot;../registry&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../plots/plots&quot;),l=t(&quot;../plots/cartesian/axis_ids&quot;),c=t(&quot;../components/color&quot;),u=l.cleanId,f=l.getFromTrace,h=a.traceIs;function p(t,e){var r=t[e],n=e.charAt(0);r&amp;&amp;&quot;paper&quot;!==r&amp;&amp;(t[e]=u(r,n,!0))}function d(t){function e(e,r){var n=t[e],i=t.title&amp;&amp;t.title[r];n&amp;&amp;!i&amp;&amp;(t.title||(t.title={}),t.title[r]=t[e],delete t[e])}t&amp;&amp;(&quot;string&quot;!=typeof t.title&amp;&amp;&quot;number&quot;!=typeof t.title||(t.title={text:t.title}),e(&quot;titlefont&quot;,&quot;font&quot;),e(&quot;titleposition&quot;,&quot;position&quot;),e(&quot;titleside&quot;,&quot;side&quot;),e(&quot;titleoffset&quot;,&quot;offset&quot;))}function g(t){if(!o.isPlainObject(t))return!1;var e=t.name;return delete t.name,delete t.showlegend,(&quot;string&quot;==typeof e||&quot;number&quot;==typeof e)&amp;&amp;String(e)}function m(t,e,r,n){if(r&amp;&amp;!n)return t;if(n&amp;&amp;!r)return e;if(!t.trim())return e;if(!e.trim())return t;var i,a=Math.min(t.length,e.length);for(i=0;i&lt;a&amp;&amp;t.charAt(i)===e.charAt(i);i++);return t.substr(0,i).trim()}function v(t){var e=&quot;middle&quot;,r=&quot;center&quot;;return&quot;string&quot;==typeof t&amp;&amp;(-1!==t.indexOf(&quot;top&quot;)?e=&quot;top&quot;:-1!==t.indexOf(&quot;bottom&quot;)&amp;&amp;(e=&quot;bottom&quot;),-1!==t.indexOf(&quot;left&quot;)?r=&quot;left&quot;:-1!==t.indexOf(&quot;right&quot;)&amp;&amp;(r=&quot;right&quot;)),e+&quot; &quot;+r}function y(t,e){return e in t&amp;&amp;&quot;object&quot;==typeof t[e]&amp;&amp;0===Object.keys(t[e]).length}r.clearPromiseQueue=function(t){Array.isArray(t._promises)&amp;&amp;t._promises.length&gt;0&amp;&amp;o.log(&quot;Clearing previous rejected promises from queue.&quot;),t._promises=[]},r.cleanLayout=function(t){var e,n;t||(t={}),t.xaxis1&amp;&amp;(t.xaxis||(t.xaxis=t.xaxis1),delete t.xaxis1),t.yaxis1&amp;&amp;(t.yaxis||(t.yaxis=t.yaxis1),delete t.yaxis1),t.scene1&amp;&amp;(t.scene||(t.scene=t.scene1),delete t.scene1);var a=(s.subplotsRegistry.cartesian||{}).attrRegex,l=(s.subplotsRegistry.polar||{}).attrRegex,f=(s.subplotsRegistry.ternary||{}).attrRegex,h=(s.subplotsRegistry.gl3d||{}).attrRegex,g=Object.keys(t);for(e=0;e&lt;g.length;e++){var m=g[e];if(a&amp;&amp;a.test(m)){var v=t[m];v.anchor&amp;&amp;&quot;free&quot;!==v.anchor&amp;&amp;(v.anchor=u(v.anchor)),v.overlaying&amp;&amp;(v.overlaying=u(v.overlaying)),v.type||(v.isdate?v.type=&quot;date&quot;:v.islog?v.type=&quot;log&quot;:!1===v.isdate&amp;&amp;!1===v.islog&amp;&amp;(v.type=&quot;linear&quot;)),&quot;withzero&quot;!==v.autorange&amp;&amp;&quot;tozero&quot;!==v.autorange||(v.autorange=!0,v.rangemode=&quot;tozero&quot;),delete v.islog,delete v.isdate,delete v.categories,y(v,&quot;domain&quot;)&amp;&amp;delete v.domain,void 0!==v.autotick&amp;&amp;(void 0===v.tickmode&amp;&amp;(v.tickmode=v.autotick?&quot;auto&quot;:&quot;linear&quot;),delete v.autotick),d(v)}else if(l&amp;&amp;l.test(m)){d(t[m].radialaxis)}else if(f&amp;&amp;f.test(m)){var x=t[m];d(x.aaxis),d(x.baxis),d(x.caxis)}else if(h&amp;&amp;h.test(m)){var b=t[m],_=b.cameraposition;if(Array.isArray(_)&amp;&amp;4===_[0].length){var w=_[0],T=_[1],k=_[2],M=i([],w),A=[];for(n=0;n&lt;3;++n)A[n]=T[n]+k*M[2+4*n];b.camera={eye:{x:A[0],y:A[1],z:A[2]},center:{x:T[0],y:T[1],z:T[2]},up:{x:0,y:0,z:1}},delete b.cameraposition}d(b.xaxis),d(b.yaxis),d(b.zaxis)}}var S=Array.isArray(t.annotations)?t.annotations.length:0;for(e=0;e&lt;S;e++){var E=t.annotations[e];o.isPlainObject(E)&amp;&amp;(E.ref&amp;&amp;(&quot;paper&quot;===E.ref?(E.xref=&quot;paper&quot;,E.yref=&quot;paper&quot;):&quot;data&quot;===E.ref&amp;&amp;(E.xref=&quot;x&quot;,E.yref=&quot;y&quot;),delete E.ref),p(E,&quot;xref&quot;),p(E,&quot;yref&quot;))}var C=Array.isArray(t.shapes)?t.shapes.length:0;for(e=0;e&lt;C;e++){var L=t.shapes[e];o.isPlainObject(L)&amp;&amp;(p(L,&quot;xref&quot;),p(L,&quot;yref&quot;))}var I=Array.isArray(t.images)?t.images.length:0;for(e=0;e&lt;I;e++){var P=t.images[e];o.isPlainObject(P)&amp;&amp;(p(P,&quot;xref&quot;),p(P,&quot;yref&quot;))}var z=t.legend;return z&amp;&amp;(z.x&gt;3?(z.x=1.02,z.xanchor=&quot;left&quot;):z.x&lt;-2&amp;&amp;(z.x=-.02,z.xanchor=&quot;right&quot;),z.y&gt;3?(z.y=1.02,z.yanchor=&quot;bottom&quot;):z.y&lt;-2&amp;&amp;(z.y=-.02,z.yanchor=&quot;top&quot;)),d(t),&quot;rotate&quot;===t.dragmode&amp;&amp;(t.dragmode=&quot;orbit&quot;),c.clean(t),t.template&amp;&amp;t.template.layout&amp;&amp;r.cleanLayout(t.template.layout),t},r.cleanData=function(t){for(var e=0;e&lt;t.length;e++){var n,i=t[e];if(&quot;histogramy&quot;===i.type&amp;&amp;&quot;xbins&quot;in i&amp;&amp;!(&quot;ybins&quot;in i)&amp;&amp;(i.ybins=i.xbins,delete i.xbins),i.error_y&amp;&amp;&quot;opacity&quot;in i.error_y){var l=c.defaults,f=i.error_y.color||(h(i,&quot;bar&quot;)?c.defaultLine:l[e%l.length]);i.error_y.color=c.addOpacity(c.rgb(f),c.opacity(f)*i.error_y.opacity),delete i.error_y.opacity}if(&quot;bardir&quot;in i&amp;&amp;(&quot;h&quot;!==i.bardir||!h(i,&quot;bar&quot;)&amp;&amp;&quot;histogram&quot;!==i.type.substr(0,9)||(i.orientation=&quot;h&quot;,r.swapXYData(i)),delete i.bardir),&quot;histogramy&quot;===i.type&amp;&amp;r.swapXYData(i),&quot;histogramx&quot;!==i.type&amp;&amp;&quot;histogramy&quot;!==i.type||(i.type=&quot;histogram&quot;),&quot;scl&quot;in i&amp;&amp;!(&quot;colorscale&quot;in i)&amp;&amp;(i.colorscale=i.scl,delete i.scl),&quot;reversescl&quot;in i&amp;&amp;!(&quot;reversescale&quot;in i)&amp;&amp;(i.reversescale=i.reversescl,delete i.reversescl),i.xaxis&amp;&amp;(i.xaxis=u(i.xaxis,&quot;x&quot;)),i.yaxis&amp;&amp;(i.yaxis=u(i.yaxis,&quot;y&quot;)),h(i,&quot;gl3d&quot;)&amp;&amp;i.scene&amp;&amp;(i.scene=s.subplotsRegistry.gl3d.cleanId(i.scene)),!h(i,&quot;pie-like&quot;)&amp;&amp;!h(i,&quot;bar-like&quot;))if(Array.isArray(i.textposition))for(n=0;n&lt;i.textposition.length;n++)i.textposition[n]=v(i.textposition[n]);else i.textposition&amp;&amp;(i.textposition=v(i.textposition));var p=a.getModule(i);if(p&amp;&amp;p.colorbar){var x=p.colorbar.container,b=x?i[x]:i;b&amp;&amp;b.colorscale&amp;&amp;(&quot;YIGnBu&quot;===b.colorscale&amp;&amp;(b.colorscale=&quot;YlGnBu&quot;),&quot;YIOrRd&quot;===b.colorscale&amp;&amp;(b.colorscale=&quot;YlOrRd&quot;))}if(&quot;surface&quot;===i.type&amp;&amp;o.isPlainObject(i.contours)){var _=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(n=0;n&lt;_.length;n++){var w=i.contours[_[n]];o.isPlainObject(w)&amp;&amp;(w.highlightColor&amp;&amp;(w.highlightcolor=w.highlightColor,delete w.highlightColor),w.highlightWidth&amp;&amp;(w.highlightwidth=w.highlightWidth,delete w.highlightWidth))}}if(&quot;candlestick&quot;===i.type||&quot;ohlc&quot;===i.type){var T=!1!==(i.increasing||{}).showlegend,k=!1!==(i.decreasing||{}).showlegend,M=g(i.increasing),A=g(i.decreasing);if(!1!==M&amp;&amp;!1!==A){var S=m(M,A,T,k);S&amp;&amp;(i.name=S)}else!M&amp;&amp;!A||i.name||(i.name=M||A)}if(Array.isArray(i.transforms)){var E=i.transforms;for(n=0;n&lt;E.length;n++){var C=E[n];if(o.isPlainObject(C))switch(C.type){case&quot;filter&quot;:C.filtersrc&amp;&amp;(C.target=C.filtersrc,delete C.filtersrc),C.calendar&amp;&amp;(C.valuecalendar||(C.valuecalendar=C.calendar),delete C.calendar);break;case&quot;groupby&quot;:if(C.styles=C.styles||C.style,C.styles&amp;&amp;!Array.isArray(C.styles)){var L=C.styles,I=Object.keys(L);C.styles=[];for(var P=0;P&lt;I.length;P++)C.styles.push({target:I[P],value:L[I[P]]})}}}}y(i,&quot;line&quot;)&amp;&amp;delete i.line,&quot;marker&quot;in i&amp;&amp;(y(i.marker,&quot;line&quot;)&amp;&amp;delete i.marker.line,y(i,&quot;marker&quot;)&amp;&amp;delete i.marker),c.clean(i),i.autobinx&amp;&amp;(delete i.autobinx,delete i.xbins),i.autobiny&amp;&amp;(delete i.autobiny,delete i.ybins),d(i),i.colorbar&amp;&amp;d(i.colorbar),i.marker&amp;&amp;i.marker.colorbar&amp;&amp;d(i.marker.colorbar),i.line&amp;&amp;i.line.colorbar&amp;&amp;d(i.line.colorbar),i.aaxis&amp;&amp;d(i.aaxis),i.baxis&amp;&amp;d(i.baxis)}},r.swapXYData=function(t){var e;if(o.swapAttrs(t,[&quot;?&quot;,&quot;?0&quot;,&quot;d?&quot;,&quot;?bins&quot;,&quot;nbins?&quot;,&quot;autobin?&quot;,&quot;?src&quot;,&quot;error_?&quot;]),Array.isArray(t.z)&amp;&amp;Array.isArray(t.z[0])&amp;&amp;(t.transpose?delete t.transpose:t.transpose=!0),t.error_x&amp;&amp;t.error_y){var r=t.error_y,n=&quot;copy_ystyle&quot;in r?r.copy_ystyle:!(r.color||r.thickness||r.width);o.swapAttrs(t,[&quot;error_?.copy_ystyle&quot;]),n&amp;&amp;o.swapAttrs(t,[&quot;error_?.color&quot;,&quot;error_?.thickness&quot;,&quot;error_?.width&quot;])}if(&quot;string&quot;==typeof t.hoverinfo){var i=t.hoverinfo.split(&quot;+&quot;);for(e=0;e&lt;i.length;e++)&quot;x&quot;===i[e]?i[e]=&quot;y&quot;:&quot;y&quot;===i[e]&amp;&amp;(i[e]=&quot;x&quot;);t.hoverinfo=i.join(&quot;+&quot;)}},r.coerceTraceIndices=function(t,e){if(n(e))return[e];if(!Array.isArray(e)||!e.length)return t.data.map((function(t,e){return e}));if(Array.isArray(e)){for(var r=[],i=0;i&lt;e.length;i++)o.isIndex(e[i],t.data.length)?r.push(e[i]):o.warn(&quot;trace index (&quot;,e[i],&quot;) is not a number or is out of bounds&quot;);return r}return e},r.manageArrayContainers=function(t,e,r){var i=t.obj,a=t.parts,s=a.length,l=a[s-1],c=n(l);if(c&amp;&amp;null===e){var u=a.slice(0,s-1).join(&quot;.&quot;);o.nestedProperty(i,u).get().splice(l,1)}else c&amp;&amp;void 0===t.get()?(void 0===t.get()&amp;&amp;(r[t.astr]=null),t.set(e)):t.set(e)};var x=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function b(t){var e=t.search(x);if(e&gt;0)return t.substr(0,e)}r.hasParent=function(t,e){for(var r=b(e);r;){if(r in t)return!0;r=b(r)}return!1};var _=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];r.clearAxisTypes=function(t,e,r){for(var n=0;n&lt;e.length;n++)for(var i=t._fullData[n],a=0;a&lt;3;a++){var s=f(t,i,_[a]);if(s&amp;&amp;&quot;log&quot;!==s.type){var l=s._name,c=s._id.substr(1);if(&quot;scene&quot;===c.substr(0,5)){if(void 0!==r[c])continue;l=c+&quot;.&quot;+l}var u=l+&quot;.type&quot;;void 0===r[l]&amp;&amp;void 0===r[u]&amp;&amp;o.nestedProperty(t.layout,u).set(null)}}}},{&quot;../components/color&quot;:643,&quot;../lib&quot;:778,&quot;../plots/cartesian/axis_ids&quot;:831,&quot;../plots/plots&quot;:891,&quot;../registry&quot;:911,&quot;fast-isnumeric&quot;:241,&quot;gl-mat4/fromQuat&quot;:282}],812:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./plot_api&quot;);r.plot=n.plot,r.newPlot=n.newPlot,r.restyle=n.restyle,r.relayout=n.relayout,r.redraw=n.redraw,r.update=n.update,r._guiRestyle=n._guiRestyle,r._guiRelayout=n._guiRelayout,r._guiUpdate=n._guiUpdate,r._storeDirectGUIEdit=n._storeDirectGUIEdit,r.react=n.react,r.extendTraces=n.extendTraces,r.prependTraces=n.prependTraces,r.addTraces=n.addTraces,r.deleteTraces=n.deleteTraces,r.moveTraces=n.moveTraces,r.purge=n.purge,r.addFrames=n.addFrames,r.deleteFrames=n.deleteFrames,r.animate=n.animate,r.setPlotConfig=n.setPlotConfig,r.toImage=t(&quot;./to_image&quot;),r.validate=t(&quot;./validate&quot;),r.downloadImage=t(&quot;../snapshot/download&quot;);var i=t(&quot;./template_api&quot;);r.makeTemplate=i.makeTemplate,r.validateTemplate=i.validateTemplate},{&quot;../snapshot/download&quot;:913,&quot;./plot_api&quot;:814,&quot;./template_api&quot;:819,&quot;./to_image&quot;:820,&quot;./validate&quot;:821}],813:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/is_plain_object&quot;),i=t(&quot;../lib/noop&quot;),a=t(&quot;../lib/loggers&quot;),o=t(&quot;../lib/search&quot;).sorterAsc,s=t(&quot;../registry&quot;);r.containerArrayMatch=t(&quot;./container_array_match&quot;);var l=r.isAddVal=function(t){return&quot;add&quot;===t||n(t)},c=r.isRemoveVal=function(t){return null===t||&quot;remove&quot;===t};r.applyContainerArrayChanges=function(t,e,r,n,u){var f=e.astr,h=s.getComponentMethod(f,&quot;supplyLayoutDefaults&quot;),p=s.getComponentMethod(f,&quot;draw&quot;),d=s.getComponentMethod(f,&quot;drawOne&quot;),g=n.replot||n.recalc||h===i||p===i,m=t.layout,v=t._fullLayout;if(r[&quot;&quot;]){Object.keys(r).length&gt;1&amp;&amp;a.warn(&quot;Full array edits are incompatible with other edits&quot;,f);var y=r[&quot;&quot;][&quot;&quot;];if(c(y))e.set(null);else{if(!Array.isArray(y))return a.warn(&quot;Unrecognized full array edit value&quot;,f,y),!0;e.set(y)}return!g&amp;&amp;(h(m,v),p(t),!0)}var x,b,_,w,T,k,M,A,S=Object.keys(r).map(Number).sort(o),E=e.get(),C=E||[],L=u(v,f).get(),I=[],P=-1,z=C.length;for(x=0;x&lt;S.length;x++)if(w=r[_=S[x]],T=Object.keys(w),k=w[&quot;&quot;],M=l(k),_&lt;0||_&gt;C.length-(M?0:1))a.warn(&quot;index out of range&quot;,f,_);else if(void 0!==k)T.length&gt;1&amp;&amp;a.warn(&quot;Insertion &amp; removal are incompatible with edits to the same index.&quot;,f,_),c(k)?I.push(_):M?(&quot;add&quot;===k&amp;&amp;(k={}),C.splice(_,0,k),L&amp;&amp;L.splice(_,0,{})):a.warn(&quot;Unrecognized full object edit value&quot;,f,_,k),-1===P&amp;&amp;(P=_);else for(b=0;b&lt;T.length;b++)A=f+&quot;[&quot;+_+&quot;].&quot;,u(C[_],T[b],A).set(w[T[b]]);for(x=I.length-1;x&gt;=0;x--)C.splice(I[x],1),L&amp;&amp;L.splice(I[x],1);if(C.length?E||e.set(C):e.set(null),g)return!1;if(h(m,v),d!==i){var O;if(-1===P)O=S;else{for(z=Math.max(C.length,z),O=[],x=0;x&lt;S.length&amp;&amp;!((_=S[x])&gt;=P);x++)O.push(_);for(x=P;x&lt;z;x++)O.push(x)}for(x=0;x&lt;O.length;x++)d(t,O[x])}else p(t);return!0}},{&quot;../lib/is_plain_object&quot;:779,&quot;../lib/loggers&quot;:782,&quot;../lib/noop&quot;:787,&quot;../lib/search&quot;:798,&quot;../registry&quot;:911,&quot;./container_array_match&quot;:809}],814:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;has-hover&quot;),o=t(&quot;../lib&quot;),s=o.nestedProperty,l=t(&quot;../lib/events&quot;),c=t(&quot;../lib/queue&quot;),u=t(&quot;../registry&quot;),f=t(&quot;./plot_schema&quot;),h=t(&quot;../plots/plots&quot;),p=t(&quot;../plots/polar/legacy&quot;),d=t(&quot;../plots/cartesian/axes&quot;),g=t(&quot;../components/drawing&quot;),m=t(&quot;../components/color&quot;),v=t(&quot;../plots/cartesian/graph_interact&quot;).initInteractions,y=t(&quot;../constants/xmlns_namespaces&quot;),x=t(&quot;../lib/svg_text_utils&quot;),b=t(&quot;../plots/cartesian/select&quot;).clearSelect,_=t(&quot;./plot_config&quot;).dfltConfig,w=t(&quot;./manage_arrays&quot;),T=t(&quot;./helpers&quot;),k=t(&quot;./subroutines&quot;),M=t(&quot;./edit_types&quot;),A=t(&quot;../plots/cartesian/constants&quot;).AX_NAME_PATTERN,S=0;function E(t){var e=t._fullLayout;e._redrawFromAutoMarginCount?e._redrawFromAutoMarginCount--:t.emit(&quot;plotly_afterplot&quot;)}function C(t,e){try{t._fullLayout._paper.style(&quot;background&quot;,e)}catch(t){o.error(t)}}function L(t,e){C(t,m.combine(e,&quot;white&quot;))}function I(t,e){if(!t._context){t._context=o.extendDeep({},_);var r=n.select(&quot;base&quot;);t._context._baseUrl=r.size()&amp;&amp;r.attr(&quot;href&quot;)?window.location.href.split(&quot;#&quot;)[0]:&quot;&quot;}var i,s,l,c=t._context;if(e){for(s=Object.keys(e),i=0;i&lt;s.length;i++)&quot;editable&quot;!==(l=s[i])&amp;&amp;&quot;edits&quot;!==l&amp;&amp;l in c&amp;&amp;(&quot;setBackground&quot;===l&amp;&amp;&quot;opaque&quot;===e[l]?c[l]=L:c[l]=e[l]);e.plot3dPixelRatio&amp;&amp;!c.plotGlPixelRatio&amp;&amp;(c.plotGlPixelRatio=c.plot3dPixelRatio);var u=e.editable;if(void 0!==u)for(c.editable=u,s=Object.keys(c.edits),i=0;i&lt;s.length;i++)c.edits[s[i]]=u;if(e.edits)for(s=Object.keys(e.edits),i=0;i&lt;s.length;i++)(l=s[i])in c.edits&amp;&amp;(c.edits[l]=e.edits[l]);c._exportedPlot=e._exportedPlot}c.staticPlot&amp;&amp;(c.editable=!1,c.edits={},c.autosizable=!1,c.scrollZoom=!1,c.doubleClick=!1,c.showTips=!1,c.showLink=!1,c.displayModeBar=!1),&quot;hover&quot;!==c.displayModeBar||a||(c.displayModeBar=!0),&quot;transparent&quot;!==c.setBackground&amp;&amp;&quot;function&quot;==typeof c.setBackground||(c.setBackground=C),c._hasZeroHeight=c._hasZeroHeight||0===t.clientHeight,c._hasZeroWidth=c._hasZeroWidth||0===t.clientWidth;var f=c.scrollZoom,h=c._scrollZoom={};if(!0===f)h.cartesian=1,h.gl3d=1,h.geo=1,h.mapbox=1;else if(&quot;string&quot;==typeof f){var p=f.split(&quot;+&quot;);for(i=0;i&lt;p.length;i++)h[p[i]]=1}else!1!==f&amp;&amp;(h.gl3d=1,h.geo=1,h.mapbox=1)}function P(t,e){var r,n,i=e+1,a=[];for(r=0;r&lt;t.length;r++)(n=t[r])&lt;0?a.push(i+n):a.push(n);return a}function z(t,e,r){var n,i;for(n=0;n&lt;e.length;n++){if((i=e[n])!==parseInt(i,10))throw new Error(&quot;all values in &quot;+r+&quot; must be integers&quot;);if(i&gt;=t.data.length||i&lt;-t.data.length)throw new Error(r+&quot; must be valid indices for gd.data.&quot;);if(e.indexOf(i,n+1)&gt;-1||i&gt;=0&amp;&amp;e.indexOf(-t.data.length+i)&gt;-1||i&lt;0&amp;&amp;e.indexOf(t.data.length+i)&gt;-1)throw new Error(&quot;each index in &quot;+r+&quot; must be unique.&quot;)}}function O(t,e,r){if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array.&quot;);if(&quot;undefined&quot;==typeof e)throw new Error(&quot;currentIndices is a required argument.&quot;);if(Array.isArray(e)||(e=[e]),z(t,e,&quot;currentIndices&quot;),&quot;undefined&quot;==typeof r||Array.isArray(r)||(r=[r]),&quot;undefined&quot;!=typeof r&amp;&amp;z(t,r,&quot;newIndices&quot;),&quot;undefined&quot;!=typeof r&amp;&amp;e.length!==r.length)throw new Error(&quot;current and new indices must be of equal length.&quot;)}function D(t,e,r,n,a){!function(t,e,r,n){var i=o.isPlainObject(n);if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array&quot;);if(!o.isPlainObject(e))throw new Error(&quot;update must be a key:value object&quot;);if(&quot;undefined&quot;==typeof r)throw new Error(&quot;indices must be an integer or array of integers&quot;);for(var a in z(t,r,&quot;indices&quot;),e){if(!Array.isArray(e[a])||e[a].length!==r.length)throw new Error(&quot;attribute &quot;+a+&quot; must be an array of length equal to indices array length&quot;);if(i&amp;&amp;(!(a in n)||!Array.isArray(n[a])||n[a].length!==e[a].length))throw new Error(&quot;when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object&quot;)}}(t,e,r,n);for(var l=function(t,e,r,n){var a,l,c,u,f,h=o.isPlainObject(n),p=[];for(var d in Array.isArray(r)||(r=[r]),r=P(r,t.data.length-1),e)for(var g=0;g&lt;r.length;g++){if(a=t.data[r[g]],l=(c=s(a,d)).get(),u=e[d][g],!o.isArrayOrTypedArray(u))throw new Error(&quot;attribute: &quot;+d+&quot; index: &quot;+g+&quot; must be an array&quot;);if(!o.isArrayOrTypedArray(l))throw new Error(&quot;cannot extend missing or non-array attribute: &quot;+d);if(l.constructor!==u.constructor)throw new Error(&quot;cannot extend array with an array of a different type: &quot;+d);f=h?n[d][g]:n,i(f)||(f=-1),p.push({prop:c,target:l,insert:u,maxp:Math.floor(f)})}return p}(t,e,r,n),c={},u={},f=0;f&lt;l.length;f++){var h=l[f].prop,p=l[f].maxp,d=a(l[f].target,l[f].insert,p);h.set(d[0]),Array.isArray(c[h.astr])||(c[h.astr]=[]),c[h.astr].push(d[1]),Array.isArray(u[h.astr])||(u[h.astr]=[]),u[h.astr].push(l[f].target.length)}return{update:c,maxPoints:u}}function R(t,e){var r=new t.constructor(t.length+e.length);return r.set(t),r.set(e,t.length),r}function F(t,e,n,i){t=o.getGraphDiv(t),T.clearPromiseQueue(t);var a={};if(&quot;string&quot;==typeof e)a[e]=n;else{if(!o.isPlainObject(e))return o.warn(&quot;Restyle fail.&quot;,e,n,i),Promise.reject();a=o.extendFlat({},e),void 0===i&amp;&amp;(i=n)}Object.keys(a).length&amp;&amp;(t.changed=!0);var s=T.coerceTraceIndices(t,i),l=U(t,a,s),u=l.flags;u.calc&amp;&amp;(t.calcdata=void 0),u.clearAxisTypes&amp;&amp;T.clearAxisTypes(t,s,{});var f=[];u.fullReplot?f.push(r.plot):(f.push(h.previousPromises),h.supplyDefaults(t),u.markerSize&amp;&amp;(h.doCalcdata(t),G(f)),u.style&amp;&amp;f.push(k.doTraceStyle),u.colorbars&amp;&amp;f.push(k.doColorBars),f.push(E)),f.push(h.rehover,h.redrag),c.add(t,F,[t,l.undoit,l.traces],F,[t,l.redoit,l.traces]);var p=o.syncOrAsync(f,t);return p&amp;&amp;p.then||(p=Promise.resolve()),p.then((function(){return t.emit(&quot;plotly_restyle&quot;,l.eventData),t}))}function B(t){return void 0===t?null:t}function N(t,e){return e?function(e,r,n){var i=s(e,r),a=i.set;return i.set=function(e){j((n||&quot;&quot;)+r,i.get(),e,t),a(e)},i}:s}function j(t,e,r,n){if(Array.isArray(e)||Array.isArray(r))for(var i=Array.isArray(e)?e:[],a=Array.isArray(r)?r:[],s=Math.max(i.length,a.length),l=0;l&lt;s;l++)j(t+&quot;[&quot;+l+&quot;]&quot;,i[l],a[l],n);else if(o.isPlainObject(e)||o.isPlainObject(r)){var c=o.isPlainObject(e)?e:{},u=o.isPlainObject(r)?r:{},f=o.extendFlat({},c,u);for(var h in f)j(t+&quot;.&quot;+h,c[h],u[h],n)}else void 0===n[t]&amp;&amp;(n[t]=B(e))}function U(t,e,r){var n,i=t._fullLayout,a=t._fullData,l=t.data,c=i._guiEditing,p=N(i._preGUI,c),g=o.extendDeepAll({},e);V(e);var m,v=M.traceFlags(),y={},x={};function b(){return r.map((function(){}))}function _(t){var e=d.id2name(t);-1===m.indexOf(e)&amp;&amp;m.push(e)}function w(t){return&quot;LAYOUT&quot;+t+&quot;.autorange&quot;}function k(t){return&quot;LAYOUT&quot;+t+&quot;.range&quot;}function A(t){for(var e=t;e&lt;a.length;e++)if(a[e]._input===l[t])return a[e]}function S(n,a,o){if(Array.isArray(n))n.forEach((function(t){S(t,a,o)}));else if(!(n in e)&amp;&amp;!T.hasParent(e,n)){var s;if(&quot;LAYOUT&quot;===n.substr(0,6))s=p(t.layout,n.replace(&quot;LAYOUT&quot;,&quot;&quot;));else{var u=r[o];s=N(i._tracePreGUI[A(u)._fullInput.uid],c)(l[u],n)}n in x||(x[n]=b()),void 0===x[n][o]&amp;&amp;(x[n][o]=B(s.get())),void 0!==a&amp;&amp;s.set(a)}}function E(t){return function(e){return a[e][t]}}function C(t){return function(e,n){return!1===e?a[r[n]][t]:null}}for(var L in e){if(T.hasParent(e,L))throw new Error(&quot;cannot set &quot;+L+&quot; and a parent attribute simultaneously&quot;);var I,P,z,O,D,R,F=e[L];if(&quot;autobinx&quot;!==L&amp;&amp;&quot;autobiny&quot;!==L||(L=L.charAt(L.length-1)+&quot;bins&quot;,F=Array.isArray(F)?F.map(C(L)):!1===F?r.map(E(L)):null),y[L]=F,&quot;LAYOUT&quot;!==L.substr(0,6)){for(x[L]=b(),n=0;n&lt;r.length;n++){if(I=l[r[n]],P=A(r[n]),O=(z=N(i._tracePreGUI[P._fullInput.uid],c)(I,L)).get(),void 0!==(D=Array.isArray(F)?F[n%F.length]:F)){var j=z.parts[z.parts.length-1],U=L.substr(0,L.length-j.length-1),q=U?U+&quot;.&quot;:&quot;&quot;,H=U?s(P,U).get():P;if((R=f.getTraceValObject(P,z.parts))&amp;&amp;R.impliedEdits&amp;&amp;null!==D)for(var G in R.impliedEdits)S(o.relativeAttr(L,G),R.impliedEdits[G],n);else if(&quot;thicknessmode&quot;!==j&amp;&amp;&quot;lenmode&quot;!==j||O===D||&quot;fraction&quot;!==D&amp;&amp;&quot;pixels&quot;!==D||!H){if(&quot;type&quot;===L&amp;&amp;(&quot;pie&quot;===D!=(&quot;pie&quot;===O)||&quot;funnelarea&quot;===D!=(&quot;funnelarea&quot;===O))){var Y=&quot;x&quot;,W=&quot;y&quot;;&quot;bar&quot;!==D&amp;&amp;&quot;bar&quot;!==O||&quot;h&quot;!==I.orientation||(Y=&quot;y&quot;,W=&quot;x&quot;),o.swapAttrs(I,[&quot;?&quot;,&quot;?src&quot;],&quot;labels&quot;,Y),o.swapAttrs(I,[&quot;d?&quot;,&quot;?0&quot;],&quot;label&quot;,Y),o.swapAttrs(I,[&quot;?&quot;,&quot;?src&quot;],&quot;values&quot;,W),&quot;pie&quot;===O||&quot;funnelarea&quot;===O?(s(I,&quot;marker.color&quot;).set(s(I,&quot;marker.colors&quot;).get()),i._pielayer.selectAll(&quot;g.trace&quot;).remove()):u.traceIs(I,&quot;cartesian&quot;)&amp;&amp;s(I,&quot;marker.colors&quot;).set(s(I,&quot;marker.color&quot;).get())}}else{var X=i._size,Z=H.orient,J=&quot;top&quot;===Z||&quot;bottom&quot;===Z;if(&quot;thicknessmode&quot;===j){var K=J?X.h:X.w;S(q+&quot;thickness&quot;,H.thickness*(&quot;fraction&quot;===D?1/K:K),n)}else{var Q=J?X.w:X.h;S(q+&quot;len&quot;,H.len*(&quot;fraction&quot;===D?1/Q:Q),n)}}x[L][n]=B(O);if(-1!==[&quot;swapxy&quot;,&quot;swapxyaxes&quot;,&quot;orientation&quot;,&quot;orientationaxes&quot;].indexOf(L)){if(&quot;orientation&quot;===L){z.set(D);var $=I.x&amp;&amp;!I.y?&quot;h&quot;:&quot;v&quot;;if((z.get()||$)===P.orientation)continue}else&quot;orientationaxes&quot;===L&amp;&amp;(I.orientation={v:&quot;h&quot;,h:&quot;v&quot;}[P.orientation]);T.swapXYData(I),v.calc=v.clearAxisTypes=!0}else-1!==h.dataArrayContainers.indexOf(z.parts[0])?(T.manageArrayContainers(z,D,x),v.calc=!0):(R?R.arrayOk&amp;&amp;!u.traceIs(P,&quot;regl&quot;)&amp;&amp;(o.isArrayOrTypedArray(D)||o.isArrayOrTypedArray(O))?v.calc=!0:M.update(v,R):v.calc=!0,z.set(D))}}if(-1!==[&quot;swapxyaxes&quot;,&quot;orientationaxes&quot;].indexOf(L)&amp;&amp;d.swap(t,r),&quot;orientationaxes&quot;===L){var tt=s(t.layout,&quot;hovermode&quot;),et=tt.get();&quot;x&quot;===et?tt.set(&quot;y&quot;):&quot;y&quot;===et?tt.set(&quot;x&quot;):&quot;x unified&quot;===et?tt.set(&quot;y unified&quot;):&quot;y unified&quot;===et&amp;&amp;tt.set(&quot;x unified&quot;)}if(-1!==[&quot;orientation&quot;,&quot;type&quot;].indexOf(L)){for(m=[],n=0;n&lt;r.length;n++){var rt=l[r[n]];u.traceIs(rt,&quot;cartesian&quot;)&amp;&amp;(_(rt.xaxis||&quot;x&quot;),_(rt.yaxis||&quot;y&quot;))}S(m.map(w),!0,0),S(m.map(k),[0,1],0)}}else z=p(t.layout,L.replace(&quot;LAYOUT&quot;,&quot;&quot;)),x[L]=[B(z.get())],z.set(Array.isArray(F)?F[0]:F),v.calc=!0}return(v.calc||v.plot)&amp;&amp;(v.fullReplot=!0),{flags:v,undoit:x,redoit:y,traces:r,eventData:o.extendDeepNoArrays([],[g,r])}}function V(t){var e,r,n,i=o.counterRegex(&quot;axis&quot;,&quot;.title&quot;,!1,!1),a=/colorbar\.title$/,s=Object.keys(t);for(e=0;e&lt;s.length;e++)r=s[e],n=t[r],&quot;title&quot;!==r&amp;&amp;!i.test(r)&amp;&amp;!a.test(r)||&quot;string&quot;!=typeof n&amp;&amp;&quot;number&quot;!=typeof n?r.indexOf(&quot;titlefont&quot;)&gt;-1?l(r,r.replace(&quot;titlefont&quot;,&quot;title.font&quot;)):r.indexOf(&quot;titleposition&quot;)&gt;-1?l(r,r.replace(&quot;titleposition&quot;,&quot;title.position&quot;)):r.indexOf(&quot;titleside&quot;)&gt;-1?l(r,r.replace(&quot;titleside&quot;,&quot;title.side&quot;)):r.indexOf(&quot;titleoffset&quot;)&gt;-1&amp;&amp;l(r,r.replace(&quot;titleoffset&quot;,&quot;title.offset&quot;)):l(r,r.replace(&quot;title&quot;,&quot;title.text&quot;));function l(e,r){t[r]=t[e],delete t[e]}}function q(t,e,r){if(t=o.getGraphDiv(t),T.clearPromiseQueue(t),t.framework&amp;&amp;t.framework.isPolar)return Promise.resolve(t);var n={};if(&quot;string&quot;==typeof e)n[e]=r;else{if(!o.isPlainObject(e))return o.warn(&quot;Relayout fail.&quot;,e,r),Promise.reject();n=o.extendFlat({},e)}Object.keys(n).length&amp;&amp;(t.changed=!0);var i=Z(t,n),a=i.flags;a.calc&amp;&amp;(t.calcdata=void 0);var s=[h.previousPromises];a.layoutReplot?s.push(k.layoutReplot):Object.keys(n).length&amp;&amp;(H(t,a,i)||h.supplyDefaults(t),a.legend&amp;&amp;s.push(k.doLegend),a.layoutstyle&amp;&amp;s.push(k.layoutStyles),a.axrange&amp;&amp;G(s,i.rangesAltered),a.ticks&amp;&amp;s.push(k.doTicksRelayout),a.modebar&amp;&amp;s.push(k.doModeBar),a.camera&amp;&amp;s.push(k.doCamera),a.colorbars&amp;&amp;s.push(k.doColorBars),s.push(E)),s.push(h.rehover,h.redrag),c.add(t,q,[t,i.undoit],q,[t,i.redoit]);var l=o.syncOrAsync(s,t);return l&amp;&amp;l.then||(l=Promise.resolve(t)),l.then((function(){return t.emit(&quot;plotly_relayout&quot;,i.eventData),t}))}function H(t,e,r){var n=t._fullLayout;if(!e.axrange)return!1;for(var i in e)if(&quot;axrange&quot;!==i&amp;&amp;e[i])return!1;for(var a in r.rangesAltered){var o=d.id2name(a),s=t.layout[o],l=n[o];if(l.autorange=s.autorange,s.range&amp;&amp;(l.range=s.range.slice()),l.cleanRange(),l._matchGroup)for(var c in l._matchGroup)if(c!==a){var u=n[d.id2name(c)];u.autorange=l.autorange,u.range=l.range.slice(),u._input.range=l.range.slice()}}return!0}function G(t,e){var r=e?function(t){var r=[],n=!0;for(var i in e){var a=d.getFromId(t,i);if(r.push(i),-1!==(a.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;a._anchorAxis&amp;&amp;r.push(a._anchorAxis._id),a._matchGroup)for(var o in a._matchGroup)e[o]||r.push(o);a.automargin&amp;&amp;(n=!1)}return d.draw(t,r,{skipTitle:n})}:function(t){return d.draw(t,&quot;redraw&quot;)};t.push(b,k.doAutoRangeAndConstraints,r,k.drawData,k.finalDraw)}var Y=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,W=/^[xyz]axis[0-9]*\.autorange$/,X=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Z(t,e){var r,n,i,a=t.layout,l=t._fullLayout,c=l._guiEditing,h=N(l._preGUI,c),p=Object.keys(e),g=d.list(t),m=o.extendDeepAll({},e),v={};for(V(e),p=Object.keys(e),n=0;n&lt;p.length;n++)if(0===p[n].indexOf(&quot;allaxes&quot;)){for(i=0;i&lt;g.length;i++){var y=g[i]._id.substr(1),x=-1!==y.indexOf(&quot;scene&quot;)?y+&quot;.&quot;:&quot;&quot;,b=p[n].replace(&quot;allaxes&quot;,x+g[i]._name);e[b]||(e[b]=e[p[n]])}delete e[p[n]]}var _=M.layoutFlags(),k={},S={};function E(t,r){if(Array.isArray(t))t.forEach((function(t){E(t,r)}));else if(!(t in e)&amp;&amp;!T.hasParent(e,t)){var n=h(a,t);t in S||(S[t]=B(n.get())),void 0!==r&amp;&amp;n.set(r)}}var C,L={};function I(t){var e=d.name2id(t.split(&quot;.&quot;)[0]);return L[e]=1,e}for(var P in e){if(T.hasParent(e,P))throw new Error(&quot;cannot set &quot;+P+&quot; and a parent attribute simultaneously&quot;);for(var z=h(a,P),O=e[P],D=z.parts.length-1;D&gt;0&amp;&amp;&quot;string&quot;!=typeof z.parts[D];)D--;var R=z.parts[D],F=z.parts[D-1]+&quot;.&quot;+R,j=z.parts.slice(0,D).join(&quot;.&quot;),U=s(t.layout,j).get(),q=s(l,j).get(),H=z.get();if(void 0!==O){k[P]=O,S[P]=&quot;reverse&quot;===R?O:B(H);var G=f.getLayoutValObject(l,z.parts);if(G&amp;&amp;G.impliedEdits&amp;&amp;null!==O)for(var Z in G.impliedEdits)E(o.relativeAttr(P,Z),G.impliedEdits[Z]);if(-1!==[&quot;width&quot;,&quot;height&quot;].indexOf(P))if(O){E(&quot;autosize&quot;,null);var K=&quot;height&quot;===P?&quot;width&quot;:&quot;height&quot;;E(K,l[K])}else l[P]=t._initialAutoSize[P];else if(&quot;autosize&quot;===P)E(&quot;width&quot;,O?null:l.width),E(&quot;height&quot;,O?null:l.height);else if(F.match(Y))I(F),s(l,j+&quot;._inputRange&quot;).set(null);else if(F.match(W)){I(F),s(l,j+&quot;._inputRange&quot;).set(null);var Q=s(l,j).get();Q._inputDomain&amp;&amp;(Q._input.domain=Q._inputDomain.slice())}else F.match(X)&amp;&amp;s(l,j+&quot;._inputDomain&quot;).set(null);if(&quot;type&quot;===R){C=U;var $=&quot;linear&quot;===q.type&amp;&amp;&quot;log&quot;===O,tt=&quot;log&quot;===q.type&amp;&amp;&quot;linear&quot;===O;if($||tt){if(C&amp;&amp;C.range)if(q.autorange)$&amp;&amp;(C.range=C.range[1]&gt;C.range[0]?[1,2]:[2,1]);else{var et=C.range[0],rt=C.range[1];$?(et&lt;=0&amp;&amp;rt&lt;=0&amp;&amp;E(j+&quot;.autorange&quot;,!0),et&lt;=0?et=rt/1e6:rt&lt;=0&amp;&amp;(rt=et/1e6),E(j+&quot;.range[0]&quot;,Math.log(et)/Math.LN10),E(j+&quot;.range[1]&quot;,Math.log(rt)/Math.LN10)):(E(j+&quot;.range[0]&quot;,Math.pow(10,et)),E(j+&quot;.range[1]&quot;,Math.pow(10,rt)))}else E(j+&quot;.autorange&quot;,!0);Array.isArray(l._subplots.polar)&amp;&amp;l._subplots.polar.length&amp;&amp;l[z.parts[0]]&amp;&amp;&quot;radialaxis&quot;===z.parts[1]&amp;&amp;delete l[z.parts[0]]._subplot.viewInitial[&quot;radialaxis.range&quot;],u.getComponentMethod(&quot;annotations&quot;,&quot;convertCoords&quot;)(t,q,O,E),u.getComponentMethod(&quot;images&quot;,&quot;convertCoords&quot;)(t,q,O,E)}else E(j+&quot;.autorange&quot;,!0),E(j+&quot;.range&quot;,null);s(l,j+&quot;._inputRange&quot;).set(null)}else if(R.match(A)){var nt=s(l,P).get(),it=(O||{}).type;it&amp;&amp;&quot;-&quot;!==it||(it=&quot;linear&quot;),u.getComponentMethod(&quot;annotations&quot;,&quot;convertCoords&quot;)(t,nt,it,E),u.getComponentMethod(&quot;images&quot;,&quot;convertCoords&quot;)(t,nt,it,E)}var at=w.containerArrayMatch(P);if(at){r=at.array,n=at.index;var ot=at.property,st=G||{editType:&quot;calc&quot;};&quot;&quot;!==n&amp;&amp;&quot;&quot;===ot&amp;&amp;(w.isAddVal(O)?S[P]=null:w.isRemoveVal(O)?S[P]=(s(a,r).get()||[])[n]:o.warn(&quot;unrecognized full object value&quot;,e)),M.update(_,st),v[r]||(v[r]={});var lt=v[r][n];lt||(lt=v[r][n]={}),lt[ot]=O,delete e[P]}else&quot;reverse&quot;===R?(U.range?U.range.reverse():(E(j+&quot;.autorange&quot;,!0),U.range=[1,0]),q.autorange?_.calc=!0:_.plot=!0):(l._has(&quot;scatter-like&quot;)&amp;&amp;l._has(&quot;regl&quot;)&amp;&amp;&quot;dragmode&quot;===P&amp;&amp;(&quot;lasso&quot;===O||&quot;select&quot;===O)&amp;&amp;&quot;lasso&quot;!==H&amp;&amp;&quot;select&quot;!==H||l._has(&quot;gl2d&quot;)?_.plot=!0:G?M.update(_,G):_.calc=!0,z.set(O))}}for(r in v){w.applyContainerArrayChanges(t,h(a,r),v[r],_,h)||(_.plot=!0)}for(var ct in L){var ut=(C=d.getFromId(t,ct))&amp;&amp;C._constraintGroup;if(ut)for(var ft in _.calc=!0,ut)L[ft]||(d.getFromId(t,ft)._constraintShrinkable=!0)}return(J(t)||e.height||e.width)&amp;&amp;(_.plot=!0),(_.plot||_.calc)&amp;&amp;(_.layoutReplot=!0),{flags:_,rangesAltered:L,undoit:S,redoit:k,eventData:m}}function J(t){var e=t._fullLayout,r=e.width,n=e.height;return t.layout.autosize&amp;&amp;h.plotAutoSize(t,t.layout,e),e.width!==r||e.height!==n}function K(t,e,n,i){if(t=o.getGraphDiv(t),T.clearPromiseQueue(t),t.framework&amp;&amp;t.framework.isPolar)return Promise.resolve(t);o.isPlainObject(e)||(e={}),o.isPlainObject(n)||(n={}),Object.keys(e).length&amp;&amp;(t.changed=!0),Object.keys(n).length&amp;&amp;(t.changed=!0);var a=T.coerceTraceIndices(t,i),s=U(t,o.extendFlat({},e),a),l=s.flags,u=Z(t,o.extendFlat({},n)),f=u.flags;(l.calc||f.calc)&amp;&amp;(t.calcdata=void 0),l.clearAxisTypes&amp;&amp;T.clearAxisTypes(t,a,n);var p=[];f.layoutReplot?p.push(k.layoutReplot):l.fullReplot?p.push(r.plot):(p.push(h.previousPromises),H(t,f,u)||h.supplyDefaults(t),l.style&amp;&amp;p.push(k.doTraceStyle),(l.colorbars||f.colorbars)&amp;&amp;p.push(k.doColorBars),f.legend&amp;&amp;p.push(k.doLegend),f.layoutstyle&amp;&amp;p.push(k.layoutStyles),f.axrange&amp;&amp;G(p,u.rangesAltered),f.ticks&amp;&amp;p.push(k.doTicksRelayout),f.modebar&amp;&amp;p.push(k.doModeBar),f.camera&amp;&amp;p.push(k.doCamera),p.push(E)),p.push(h.rehover,h.redrag),c.add(t,K,[t,s.undoit,u.undoit,s.traces],K,[t,s.redoit,u.redoit,s.traces]);var d=o.syncOrAsync(p,t);return d&amp;&amp;d.then||(d=Promise.resolve(t)),d.then((function(){return t.emit(&quot;plotly_update&quot;,{data:s.eventData,layout:u.eventData}),t}))}function Q(t){return function(e){e._fullLayout._guiEditing=!0;var r=t.apply(null,arguments);return e._fullLayout._guiEditing=!1,r}}var $=[{pattern:/^hiddenlabels/,attr:&quot;legend.uirevision&quot;},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:&quot;modebar.uirevision&quot;},{pattern:/(hover|drag)mode$/,attr:&quot;modebar.uirevision&quot;},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:&quot;editrevision&quot;},{pattern:/^(shapes|annotations)/,attr:&quot;editrevision&quot;},{pattern:/^title\.text$/,attr:&quot;editrevision&quot;}],tt=[{pattern:/^selectedpoints$/,attr:&quot;selectionrevision&quot;},{pattern:/(^|value\.)visible$/,attr:&quot;legend.uirevision&quot;},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:&quot;editrevision&quot;}];function et(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r],i=t.match(n.pattern);if(i)return{head:i[1],attr:n.attr}}}function rt(t,e){var r=s(e,t).get();if(void 0!==r)return r;var n=t.split(&quot;.&quot;);for(n.pop();n.length&gt;1;)if(n.pop(),void 0!==(r=s(e,n.join(&quot;.&quot;)+&quot;.uirevision&quot;).get()))return r;return e.uirevision}function nt(t,e){for(var r=0;r&lt;e.length;r++)if(e[r]._fullInput.uid===t)return r;return-1}function it(t,e,r){for(var n=0;n&lt;e.length;n++)if(e[n].uid===t)return n;return!e[r]||e[r].uid?-1:r}function at(t,e){var r=o.isPlainObject(t),n=Array.isArray(t);return r||n?(r&amp;&amp;o.isPlainObject(e)||n&amp;&amp;Array.isArray(e))&amp;&amp;JSON.stringify(t)===JSON.stringify(e):t===e}function ot(t,e,r,n){var i,a,l,c=n.getValObject,u=n.flags,f=n.immutable,h=n.inArray,p=n.arrayIndex;function d(){var t=i.editType;h&amp;&amp;-1!==t.indexOf(&quot;arraydraw&quot;)?o.pushUnique(u.arrays[h],p):(M.update(u,i),&quot;none&quot;!==t&amp;&amp;u.nChanges++,n.transition&amp;&amp;i.anim&amp;&amp;u.nChangesAnim++,(Y.test(l)||W.test(l))&amp;&amp;(u.rangesAltered[r[0]]=1),X.test(l)&amp;&amp;s(e,&quot;_inputDomain&quot;).set(null),&quot;datarevision&quot;===a&amp;&amp;(u.newDataRevision=1))}function g(t){return&quot;data_array&quot;===t.valType||t.arrayOk}for(a in t){if(u.calc&amp;&amp;!n.transition)return;var m=t[a],v=e[a],y=r.concat(a);if(l=y.join(&quot;.&quot;),&quot;_&quot;!==a.charAt(0)&amp;&amp;&quot;function&quot;!=typeof m&amp;&amp;m!==v){if((&quot;tick0&quot;===a||&quot;dtick&quot;===a)&amp;&amp;&quot;geo&quot;!==r[0]){var x=e.tickmode;if(&quot;auto&quot;===x||&quot;array&quot;===x||!x)continue}if((&quot;range&quot;!==a||!e.autorange)&amp;&amp;(&quot;zmin&quot;!==a&amp;&amp;&quot;zmax&quot;!==a||&quot;contourcarpet&quot;!==e.type)&amp;&amp;(i=c(y))&amp;&amp;(!i._compareAsJSON||JSON.stringify(m)!==JSON.stringify(v))){var b,_=i.valType,w=g(i),T=Array.isArray(m),k=Array.isArray(v);if(T&amp;&amp;k){var A=&quot;_input_&quot;+a,S=t[A],E=e[A];if(Array.isArray(S)&amp;&amp;S===E)continue}if(void 0===v)w&amp;&amp;T?u.calc=!0:d();else if(i._isLinkedToArray){var C=[],L=!1;h||(u.arrays[a]=C);var I=Math.min(m.length,v.length),P=Math.max(m.length,v.length);if(I!==P){if(&quot;arraydraw&quot;!==i.editType){d();continue}L=!0}for(b=0;b&lt;I;b++)ot(m[b],v[b],y.concat(b),o.extendFlat({inArray:a,arrayIndex:b},n));if(L)for(b=I;b&lt;P;b++)C.push(b)}else!_&amp;&amp;o.isPlainObject(m)?ot(m,v,y,n):w?T&amp;&amp;k?(f&amp;&amp;(u.calc=!0),(f||n.newDataRevision)&amp;&amp;d()):T!==k?u.calc=!0:d():T&amp;&amp;k&amp;&amp;m.length===v.length&amp;&amp;String(m)===String(v)||d()}}}for(a in e)if(!(a in t)&amp;&amp;&quot;_&quot;!==a.charAt(0)&amp;&amp;&quot;function&quot;!=typeof e[a]){if(g(i=c(r.concat(a)))&amp;&amp;Array.isArray(e[a]))return void(u.calc=!0);d()}}function st(t){var e=t._fullLayout,r=t.getBoundingClientRect();if(!o.equalDomRects(r,e._lastBBox)){var n=e._invTransform=o.inverseTransformMatrix(o.getFullTransformMatrix(t));e._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),e._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),e._lastBBox=r}}function lt(t){var e=n.select(t),r=t._fullLayout;if(r._calcInverseTransform=st,r._calcInverseTransform(t),r._container=e.selectAll(&quot;.plot-container&quot;).data([0]),r._container.enter().insert(&quot;div&quot;,&quot;:first-child&quot;).classed(&quot;plot-container&quot;,!0).classed(&quot;plotly&quot;,!0),r._paperdiv=r._container.selectAll(&quot;.svg-container&quot;).data([0]),r._paperdiv.enter().append(&quot;div&quot;).classed(&quot;user-select-none&quot;,!0).classed(&quot;svg-container&quot;,!0).style(&quot;position&quot;,&quot;relative&quot;),r._glcontainer=r._paperdiv.selectAll(&quot;.gl-container&quot;).data([{}]),r._glcontainer.enter().append(&quot;div&quot;).classed(&quot;gl-container&quot;,!0),r._paperdiv.selectAll(&quot;.main-svg&quot;).remove(),r._paperdiv.select(&quot;.modebar-container&quot;).remove(),r._paper=r._paperdiv.insert(&quot;svg&quot;,&quot;:first-child&quot;).classed(&quot;main-svg&quot;,!0),r._toppaper=r._paperdiv.append(&quot;svg&quot;).classed(&quot;main-svg&quot;,!0),r._modebardiv=r._paperdiv.append(&quot;div&quot;),delete r._modeBar,r._hoverpaper=r._paperdiv.append(&quot;svg&quot;).classed(&quot;main-svg&quot;,!0),!r._uid){var i={};n.selectAll(&quot;defs&quot;).each((function(){this.id&amp;&amp;(i[this.id.split(&quot;-&quot;)[1]]=1)})),r._uid=o.randstr(i)}r._paperdiv.selectAll(&quot;.main-svg&quot;).attr(y.svgAttrs),r._defs=r._paper.append(&quot;defs&quot;).attr(&quot;id&quot;,&quot;defs-&quot;+r._uid),r._clips=r._defs.append(&quot;g&quot;).classed(&quot;clips&quot;,!0),r._topdefs=r._toppaper.append(&quot;defs&quot;).attr(&quot;id&quot;,&quot;topdefs-&quot;+r._uid),r._topclips=r._topdefs.append(&quot;g&quot;).classed(&quot;clips&quot;,!0),r._bgLayer=r._paper.append(&quot;g&quot;).classed(&quot;bglayer&quot;,!0),r._draggers=r._paper.append(&quot;g&quot;).classed(&quot;draglayer&quot;,!0);var a=r._paper.append(&quot;g&quot;).classed(&quot;layer-below&quot;,!0);r._imageLowerLayer=a.append(&quot;g&quot;).classed(&quot;imagelayer&quot;,!0),r._shapeLowerLayer=a.append(&quot;g&quot;).classed(&quot;shapelayer&quot;,!0),r._cartesianlayer=r._paper.append(&quot;g&quot;).classed(&quot;cartesianlayer&quot;,!0),r._polarlayer=r._paper.append(&quot;g&quot;).classed(&quot;polarlayer&quot;,!0),r._ternarylayer=r._paper.append(&quot;g&quot;).classed(&quot;ternarylayer&quot;,!0),r._geolayer=r._paper.append(&quot;g&quot;).classed(&quot;geolayer&quot;,!0),r._funnelarealayer=r._paper.append(&quot;g&quot;).classed(&quot;funnelarealayer&quot;,!0),r._pielayer=r._paper.append(&quot;g&quot;).classed(&quot;pielayer&quot;,!0),r._treemaplayer=r._paper.append(&quot;g&quot;).classed(&quot;treemaplayer&quot;,!0),r._sunburstlayer=r._paper.append(&quot;g&quot;).classed(&quot;sunburstlayer&quot;,!0),r._indicatorlayer=r._toppaper.append(&quot;g&quot;).classed(&quot;indicatorlayer&quot;,!0),r._glimages=r._paper.append(&quot;g&quot;).classed(&quot;glimages&quot;,!0);var s=r._toppaper.append(&quot;g&quot;).classed(&quot;layer-above&quot;,!0);r._imageUpperLayer=s.append(&quot;g&quot;).classed(&quot;imagelayer&quot;,!0),r._shapeUpperLayer=s.append(&quot;g&quot;).classed(&quot;shapelayer&quot;,!0),r._infolayer=r._toppaper.append(&quot;g&quot;).classed(&quot;infolayer&quot;,!0),r._menulayer=r._toppaper.append(&quot;g&quot;).classed(&quot;menulayer&quot;,!0),r._zoomlayer=r._toppaper.append(&quot;g&quot;).classed(&quot;zoomlayer&quot;,!0),r._hoverlayer=r._hoverpaper.append(&quot;g&quot;).classed(&quot;hoverlayer&quot;,!0),r._modebardiv.classed(&quot;modebar-container&quot;,!0).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;top&quot;,&quot;0px&quot;).style(&quot;right&quot;,&quot;0px&quot;),t.emit(&quot;plotly_framework&quot;)}r.animate=function(t,e,r){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t+&quot;. It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/&quot;);var n=t._transitionData;n._frameQueue||(n._frameQueue=[]);var i=(r=h.supplyAnimationDefaults(r)).transition,a=r.frame;function s(t){return Array.isArray(i)?t&gt;=i.length?i[0]:i[t]:i}function l(t){return Array.isArray(a)?t&gt;=a.length?a[0]:a[t]:a}function c(t,e){var r=0;return function(){if(t&amp;&amp;++r===e)return t()}}return void 0===n._frameWaitingCnt&amp;&amp;(n._frameWaitingCnt=0),new Promise((function(a,u){function f(){n._currentFrame&amp;&amp;n._currentFrame.onComplete&amp;&amp;n._currentFrame.onComplete();var e=n._currentFrame=n._frameQueue.shift();if(e){var r=e.name?e.name.toString():null;t._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=e.frameOpts.duration,h.transition(t,e.frame.data,e.frame.layout,T.coerceTraceIndices(t,e.frame.traces),e.frameOpts,e.transitionOpts).then((function(){e.onComplete&amp;&amp;e.onComplete()})),t.emit(&quot;plotly_animatingframe&quot;,{name:r,frame:e.frame,animation:{frame:e.frameOpts,transition:e.transitionOpts}})}else t.emit(&quot;plotly_animated&quot;),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function p(){t.emit(&quot;plotly_animating&quot;),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var e=function(){n._animationRaf=window.requestAnimationFrame(e),Date.now()-n._lastFrameAt&gt;n._timeToNext&amp;&amp;f()};e()}var d,g,m=0;function v(t){return Array.isArray(i)?m&gt;=i.length?t.transitionOpts=i[m]:t.transitionOpts=i[0]:t.transitionOpts=i,m++,t}var y=[],x=null==e,b=Array.isArray(e);if(!x&amp;&amp;!b&amp;&amp;o.isPlainObject(e))y.push({type:&quot;object&quot;,data:v(o.extendFlat({},e))});else if(x||-1!==[&quot;string&quot;,&quot;number&quot;].indexOf(typeof e))for(d=0;d&lt;n._frames.length;d++)(g=n._frames[d])&amp;&amp;(x||String(g.group)===String(e))&amp;&amp;y.push({type:&quot;byname&quot;,name:String(g.name),data:v({name:g.name})});else if(b)for(d=0;d&lt;e.length;d++){var _=e[d];-1!==[&quot;number&quot;,&quot;string&quot;].indexOf(typeof _)?(_=String(_),y.push({type:&quot;byname&quot;,name:_,data:v({name:_})})):o.isPlainObject(_)&amp;&amp;y.push({type:&quot;object&quot;,data:v(o.extendFlat({},_))})}for(d=0;d&lt;y.length;d++)if(&quot;byname&quot;===(g=y[d]).type&amp;&amp;!n._frameHash[g.data.name])return o.warn('animate failure: frame not found: &quot;'+g.data.name+'&quot;'),void u();-1!==[&quot;next&quot;,&quot;immediate&quot;].indexOf(r.mode)&amp;&amp;function(){if(0!==n._frameQueue.length){for(;n._frameQueue.length;){var e=n._frameQueue.pop();e.onInterrupt&amp;&amp;e.onInterrupt()}t.emit(&quot;plotly_animationinterrupted&quot;,[])}}(),&quot;reverse&quot;===r.direction&amp;&amp;y.reverse();var w=t._fullLayout._currentFrame;if(w&amp;&amp;r.fromcurrent){var k=-1;for(d=0;d&lt;y.length;d++)if(&quot;byname&quot;===(g=y[d]).type&amp;&amp;g.name===w){k=d;break}if(k&gt;0&amp;&amp;k&lt;y.length-1){var M=[];for(d=0;d&lt;y.length;d++)g=y[d],(&quot;byname&quot;!==y[d].type||d&gt;k)&amp;&amp;M.push(g);y=M}}y.length&gt;0?function(e){if(0!==e.length){for(var i=0;i&lt;e.length;i++){var o;o=&quot;byname&quot;===e[i].type?h.computeFrame(t,e[i].name):e[i].data;var f=l(i),d=s(i);d.duration=Math.min(d.duration,f.duration);var g={frame:o,name:e[i].name,frameOpts:f,transitionOpts:d};i===e.length-1&amp;&amp;(g.onComplete=c(a,2),g.onInterrupt=u),n._frameQueue.push(g)}&quot;immediate&quot;===r.mode&amp;&amp;(n._lastFrameAt=-1/0),n._animationRaf||p()}}(y):(t.emit(&quot;plotly_animated&quot;),a())}))},r.addFrames=function(t,e,r){if(t=o.getGraphDiv(t),null==e)return Promise.resolve();if(!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t+&quot;. It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/&quot;);var n,i,a,s,l=t._transitionData._frames,u=t._transitionData._frameHash;if(!Array.isArray(e))throw new Error(&quot;addFrames failure: frameList must be an Array of frame definitions&quot;+e);var f=l.length+2*e.length,p=[],d={};for(n=e.length-1;n&gt;=0;n--)if(o.isPlainObject(e[n])){var g=e[n].name,m=(u[g]||d[g]||{}).name,v=e[n].name,y=u[m]||d[m];m&amp;&amp;v&amp;&amp;&quot;number&quot;==typeof v&amp;&amp;y&amp;&amp;S&lt;5&amp;&amp;(S++,o.warn('addFrames: overwriting frame &quot;'+(u[m]||d[m]).name+'&quot; with a frame whose name of type &quot;number&quot; also equates to &quot;'+m+'&quot;. This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===S&amp;&amp;o.warn(&quot;addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.&quot;)),d[g]={name:g},p.push({frame:h.supplyFrameDefaults(e[n]),index:r&amp;&amp;void 0!==r[n]&amp;&amp;null!==r[n]?r[n]:f+n})}p.sort((function(t,e){return t.index&gt;e.index?-1:t.index&lt;e.index?1:0}));var x=[],b=[],_=l.length;for(n=p.length-1;n&gt;=0;n--){if(&quot;number&quot;==typeof(i=p[n].frame).name&amp;&amp;o.warn(&quot;Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings&quot;),!i.name)for(;u[i.name=&quot;frame &quot;+t._transitionData._counter++];);if(u[i.name]){for(a=0;a&lt;l.length&amp;&amp;(l[a]||{}).name!==i.name;a++);x.push({type:&quot;replace&quot;,index:a,value:i}),b.unshift({type:&quot;replace&quot;,index:a,value:l[a]})}else s=Math.max(0,Math.min(p[n].index,_)),x.push({type:&quot;insert&quot;,index:s,value:i}),b.unshift({type:&quot;delete&quot;,index:s}),_++}var w=h.modifyFrames,T=h.modifyFrames,k=[t,b],M=[t,x];return c&amp;&amp;c.add(t,w,k,T,M),h.modifyFrames(t,x)},r.deleteFrames=function(t,e){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t);var r,n,i=t._transitionData._frames,a=[],s=[];if(!e)for(e=[],r=0;r&lt;i.length;r++)e.push(r);for((e=e.slice()).sort(),r=e.length-1;r&gt;=0;r--)n=e[r],a.push({type:&quot;delete&quot;,index:n}),s.unshift({type:&quot;insert&quot;,index:n,value:i[n]});var l=h.modifyFrames,u=h.modifyFrames,f=[t,s],p=[t,a];return c&amp;&amp;c.add(t,l,f,u,p),h.modifyFrames(t,a)},r.addTraces=function t(e,n,i){e=o.getGraphDiv(e);var a,s,l=[],u=r.deleteTraces,f=t,h=[e,l],p=[e,n];for(function(t,e,r){var n,i;if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array.&quot;);if(&quot;undefined&quot;==typeof e)throw new Error(&quot;traces must be defined.&quot;);for(Array.isArray(e)||(e=[e]),n=0;n&lt;e.length;n++)if(&quot;object&quot;!=typeof(i=e[n])||Array.isArray(i)||null===i)throw new Error(&quot;all values in traces array must be non-array objects&quot;);if(&quot;undefined&quot;==typeof r||Array.isArray(r)||(r=[r]),&quot;undefined&quot;!=typeof r&amp;&amp;r.length!==e.length)throw new Error(&quot;if indices is specified, traces.length must equal indices.length&quot;)}(e,n,i),Array.isArray(n)||(n=[n]),n=n.map((function(t){return o.extendFlat({},t)})),T.cleanData(n),a=0;a&lt;n.length;a++)e.data.push(n[a]);for(a=0;a&lt;n.length;a++)l.push(-n.length+a);if(&quot;undefined&quot;==typeof i)return s=r.redraw(e),c.add(e,u,h,f,p),s;Array.isArray(i)||(i=[i]);try{O(e,l,i)}catch(t){throw e.data.splice(e.data.length-n.length,n.length),t}return c.startSequence(e),c.add(e,u,h,f,p),s=r.moveTraces(e,l,i),c.stopSequence(e),s},r.deleteTraces=function t(e,n){e=o.getGraphDiv(e);var i,a,s=[],l=r.addTraces,u=t,f=[e,s,n],h=[e,n];if(&quot;undefined&quot;==typeof n)throw new Error(&quot;indices must be an integer or array of integers.&quot;);for(Array.isArray(n)||(n=[n]),z(e,n,&quot;indices&quot;),(n=P(n,e.data.length-1)).sort(o.sorterDes),i=0;i&lt;n.length;i+=1)a=e.data.splice(n[i],1)[0],s.push(a);var p=r.redraw(e);return c.add(e,l,f,u,h),p},r.extendTraces=function t(e,n,i,a){function s(t,e,r){var n,i;if(o.isTypedArray(t))if(r&lt;0){var a=new t.constructor(0),s=R(t,e);r&lt;0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r&lt;e.length){var l=e.length-r;n.set(e.subarray(l)),i.set(t),i.set(e.subarray(0,l),t.length)}else{var c=r-e.length,u=t.length-c;n.set(t.subarray(u)),n.set(e,c),i.set(t.subarray(0,u))}else n=t.concat(e),i=r&gt;=0&amp;&amp;r&lt;n.length?n.splice(0,n.length-r):[];return[n,i]}var l=D(e=o.getGraphDiv(e),n,i,a,s),u=r.redraw(e),f=[e,l.update,i,l.maxPoints];return c.add(e,r.prependTraces,f,t,arguments),u},r.moveTraces=function t(e,n,i){var a,s=[],l=[],u=t,f=t,h=[e=o.getGraphDiv(e),i,n],p=[e,n,i];if(O(e,n,i),n=Array.isArray(n)?n:[n],&quot;undefined&quot;==typeof i)for(i=[],a=0;a&lt;n.length;a++)i.push(-n.length+a);for(i=Array.isArray(i)?i:[i],n=P(n,e.data.length-1),i=P(i,e.data.length-1),a=0;a&lt;e.data.length;a++)-1===n.indexOf(a)&amp;&amp;s.push(e.data[a]);for(a=0;a&lt;n.length;a++)l.push({newIndex:i[a],trace:e.data[n[a]]});for(l.sort((function(t,e){return t.newIndex-e.newIndex})),a=0;a&lt;l.length;a+=1)s.splice(l[a].newIndex,0,l[a].trace);e.data=s;var d=r.redraw(e);return c.add(e,u,h,f,p),d},r.prependTraces=function t(e,n,i,a){function s(t,e,r){var n,i;if(o.isTypedArray(t))if(r&lt;=0){var a=new t.constructor(0),s=R(e,t);r&lt;0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r&lt;e.length){var l=e.length-r;n.set(e.subarray(0,l)),i.set(e.subarray(l)),i.set(t,l)}else{var c=r-e.length;n.set(e),n.set(t.subarray(0,c),e.length),i.set(t.subarray(c))}else n=e.concat(t),i=r&gt;=0&amp;&amp;r&lt;n.length?n.splice(r,n.length):[];return[n,i]}var l=D(e=o.getGraphDiv(e),n,i,a,s),u=r.redraw(e),f=[e,l.update,i,l.maxPoints];return c.add(e,r.extendTraces,f,t,arguments),u},r.newPlot=function(t,e,n,i){return t=o.getGraphDiv(t),h.cleanPlot([],{},t._fullData||[],t._fullLayout||{}),h.purge(t),r.plot(t,e,n,i)},r.plot=function(t,e,i,a){var s;if(t=o.getGraphDiv(t),l.init(t),o.isPlainObject(e)){var c=e;e=c.data,i=c.layout,a=c.config,s=c.frames}if(!1===l.triggerHandler(t,&quot;plotly_beforeplot&quot;,[e,i,a]))return Promise.reject();e||i||o.isPlotDiv(t)||o.warn(&quot;Calling Plotly.plot as if redrawing but this container doesn't yet have a plot.&quot;,t),I(t,a),i||(i={}),n.select(t).classed(&quot;js-plotly-plot&quot;,!0),g.makeTester(),Array.isArray(t._promises)||(t._promises=[]);var f=0===(t.data||[]).length&amp;&amp;Array.isArray(e);Array.isArray(e)&amp;&amp;(T.cleanData(e),f?t.data=e:t.data.push.apply(t.data,e),t.empty=!1),t.layout&amp;&amp;!f||(t.layout=T.cleanLayout(i)),h.supplyDefaults(t);var m=t._fullLayout,y=m._has(&quot;cartesian&quot;);if(!m._has(&quot;polar&quot;)&amp;&amp;e&amp;&amp;e[0]&amp;&amp;e[0].r)return o.log(&quot;Legacy polar charts are deprecated!&quot;),function(t,e,r){var i=n.select(t).selectAll(&quot;.plot-container&quot;).data([0]);i.enter().insert(&quot;div&quot;,&quot;:first-child&quot;).classed(&quot;plot-container plotly&quot;,!0);var a=i.selectAll(&quot;.svg-container&quot;).data([0]);a.enter().append(&quot;div&quot;).classed(&quot;svg-container&quot;,!0).style(&quot;position&quot;,&quot;relative&quot;),a.html(&quot;&quot;),e&amp;&amp;(t.data=e);r&amp;&amp;(t.layout=r);p.manager.fillLayout(t),a.style({width:t._fullLayout.width+&quot;px&quot;,height:t._fullLayout.height+&quot;px&quot;}),t.framework=p.manager.framework(t),t.framework({data:t.data,layout:t.layout},a.node()),t.framework.setUndoPoint();var s=t.framework.svg(),l=1,c=t._fullLayout.title?t._fullLayout.title.text:&quot;&quot;;&quot;&quot;!==c&amp;&amp;c||(l=0);var u=function(){this.call(x.convertToTspans,t)},f=s.select(&quot;.title-group text&quot;).call(u);if(t._context.edits.titleText){var d=o._(t,&quot;Click to enter Plot title&quot;);c&amp;&amp;c!==d||(l=.2,f.attr({&quot;data-unformatted&quot;:d}).text(d).style({opacity:l}).on(&quot;mouseover.opacity&quot;,(function(){n.select(this).transition().duration(100).style(&quot;opacity&quot;,1)})).on(&quot;mouseout.opacity&quot;,(function(){n.select(this).transition().duration(1e3).style(&quot;opacity&quot;,0)})));var g=function(){this.call(x.makeEditable,{gd:t}).on(&quot;edit&quot;,(function(e){t.framework({layout:{title:{text:e}}}),this.text(e).call(u),this.call(g)})).on(&quot;cancel&quot;,(function(){var t=this.attr(&quot;data-unformatted&quot;);this.text(t).call(u)}))};f.call(g)}return t._context.setBackground(t,t._fullLayout.paper_bgcolor),h.addLinks(t),Promise.resolve()}(t,e,i);m._replotting=!0,(f||m._shouldCreateBgLayer)&amp;&amp;(lt(t),m._shouldCreateBgLayer&amp;&amp;delete m._shouldCreateBgLayer),t.framework!==lt&amp;&amp;(t.framework=lt,lt(t)),g.initGradients(t),f&amp;&amp;d.saveShowSpikeInitial(t);var b=!t.calcdata||t.calcdata.length!==(t._fullData||[]).length;b&amp;&amp;h.doCalcdata(t);for(var _=0;_&lt;t.calcdata.length;_++)t.calcdata[_][0].trace=t._fullData[_];t._context.responsive?t._responsiveChartHandler||(t._responsiveChartHandler=function(){o.isHidden(t)||h.resize(t)},window.addEventListener(&quot;resize&quot;,t._responsiveChartHandler)):o.clearResponsive(t);var w=o.extendFlat({},m._size),M=0;function A(){if(h.clearAutoMarginIds(t),k.drawMarginPushers(t),d.allowAutoMargin(t),m._has(&quot;pie&quot;))for(var e=t._fullData,r=0;r&lt;e.length;r++){var n=e[r];&quot;pie&quot;===n.type&amp;&amp;n.automargin&amp;&amp;h.allowAutoMargin(t,&quot;pie.&quot;+n.uid+&quot;.automargin&quot;)}return h.doAutoMargin(t),h.previousPromises(t)}function S(){t._transitioning||(k.doAutoRangeAndConstraints(t),f&amp;&amp;d.saveRangeInitial(t),u.getComponentMethod(&quot;rangeslider&quot;,&quot;calcAutorange&quot;)(t))}var C=[h.previousPromises,function(){if(s)return r.addFrames(t,s)},function e(){for(var r=m._basePlotModules,n=0;n&lt;r.length;n++)r[n].drawFramework&amp;&amp;r[n].drawFramework(t);if(!m._glcanvas&amp;&amp;m._has(&quot;gl&quot;)&amp;&amp;(m._glcanvas=m._glcontainer.selectAll(&quot;.gl-canvas&quot;).data([{key:&quot;contextLayer&quot;,context:!0,pick:!1},{key:&quot;focusLayer&quot;,context:!1,pick:!1},{key:&quot;pickLayer&quot;,context:!1,pick:!0}],(function(t){return t.key})),m._glcanvas.enter().append(&quot;canvas&quot;).attr(&quot;class&quot;,(function(t){return&quot;gl-canvas gl-canvas-&quot;+t.key.replace(&quot;Layer&quot;,&quot;&quot;)})).style({position:&quot;absolute&quot;,top:0,left:0,overflow:&quot;visible&quot;,&quot;pointer-events&quot;:&quot;none&quot;})),m._glcanvas){m._glcanvas.attr(&quot;width&quot;,m.width).attr(&quot;height&quot;,m.height);var i=m._glcanvas.data()[0].regl;if(i&amp;&amp;(Math.floor(m.width)!==i._gl.drawingBufferWidth||Math.floor(m.height)!==i._gl.drawingBufferHeight)){var a=&quot;WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.&quot;;if(!M)return o.log(a+&quot; Clearing graph and plotting again.&quot;),h.cleanPlot([],{},t._fullData,m),h.supplyDefaults(t),m=t._fullLayout,h.doCalcdata(t),M++,e();o.error(a)}}return&quot;h&quot;===m.modebar.orientation?m._modebardiv.style(&quot;height&quot;,null).style(&quot;width&quot;,&quot;100%&quot;):m._modebardiv.style(&quot;width&quot;,null).style(&quot;height&quot;,m.height+&quot;px&quot;),h.previousPromises(t)},A,function(){if(h.didMarginChange(w,m._size))return o.syncOrAsync([A,k.layoutStyles],t)}];y&amp;&amp;C.push((function(){if(b)return o.syncOrAsync([u.getComponentMethod(&quot;shapes&quot;,&quot;calcAutorange&quot;),u.getComponentMethod(&quot;annotations&quot;,&quot;calcAutorange&quot;),S],t);S()})),C.push(k.layoutStyles),y&amp;&amp;C.push((function(){return d.draw(t,f?&quot;&quot;:&quot;redraw&quot;)}),(function(t){t._fullLayout._insideTickLabelsAutorange&amp;&amp;q(t,t._fullLayout._insideTickLabelsAutorange).then((function(){t._fullLayout._insideTickLabelsAutorange=void 0}))})),C.push(k.drawData,k.finalDraw,v,h.addLinks,h.rehover,h.redrag,h.doAutoMargin,(function(t){t._fullLayout._insideTickLabelsAutorange&amp;&amp;f&amp;&amp;d.saveRangeInitial(t,!0)}),h.previousPromises);var L=o.syncOrAsync(C,t);return L&amp;&amp;L.then||(L=Promise.resolve()),L.then((function(){return E(t),t}))},r.purge=function(t){var e=(t=o.getGraphDiv(t))._fullLayout||{},r=t._fullData||[];return h.cleanPlot([],{},r,e),h.purge(t),l.purge(t),e._container&amp;&amp;e._container.remove(),delete t._context,t},r.react=function(t,e,n,i){var a,l;t=o.getGraphDiv(t),T.clearPromiseQueue(t);var c=t._fullData,p=t._fullLayout;if(o.isPlotDiv(t)&amp;&amp;c&amp;&amp;p){if(o.isPlainObject(e)){var d=e;e=d.data,n=d.layout,i=d.config,a=d.frames}var g=!1;if(i){var m=o.extendDeep({},t._context);t._context=void 0,I(t,i),g=function t(e,r){var n;for(n in e)if(&quot;_&quot;!==n.charAt(0)){var i=e[n],a=r[n];if(i!==a)if(o.isPlainObject(i)&amp;&amp;o.isPlainObject(a)){if(t(i,a))return!0}else{if(!Array.isArray(i)||!Array.isArray(a))return!0;if(i.length!==a.length)return!0;for(var s=0;s&lt;i.length;s++)if(i[s]!==a[s]){if(!o.isPlainObject(i[s])||!o.isPlainObject(a[s]))return!0;if(t(i[s],a[s]))return!0}}}}(m,t._context)}t.data=e||[],T.cleanData(t.data),t.layout=n||{},T.cleanLayout(t.layout),function(t,e,r,n){var i,a,l,c,u,f,h,p,d=n._preGUI,g=[],m={};for(i in d){if(u=et(i,$)){if(a=u.attr||u.head+&quot;.uirevision&quot;,(c=(l=s(n,a).get())&amp;&amp;rt(a,e))&amp;&amp;c===l&amp;&amp;(null===(f=d[i])&amp;&amp;(f=void 0),at(p=(h=s(e,i)).get(),f))){void 0===p&amp;&amp;&quot;autorange&quot;===i.substr(i.length-9)&amp;&amp;g.push(i.substr(0,i.length-10)),h.set(B(s(n,i).get()));continue}}else o.warn(&quot;unrecognized GUI edit: &quot;+i);delete d[i],&quot;range[&quot;===i.substr(i.length-8,6)&amp;&amp;(m[i.substr(0,i.length-9)]=1)}for(var v=0;v&lt;g.length;v++){var y=g[v];if(m[y]){var x=s(e,y).get();x&amp;&amp;delete x.autorange}}var b=n._tracePreGUI;for(var _ in b){var w,T=b[_],k=null;for(i in T){if(!k){var M=nt(_,r);if(M&lt;0){delete b[_];break}var A=it(_,t,(w=r[M]._fullInput).index);if(A&lt;0){delete b[_];break}k=t[A]}if(u=et(i,tt)){if(u.attr?c=(l=s(n,u.attr).get())&amp;&amp;rt(u.attr,e):(l=w.uirevision,void 0===(c=k.uirevision)&amp;&amp;(c=e.uirevision)),c&amp;&amp;c===l&amp;&amp;(null===(f=T[i])&amp;&amp;(f=void 0),at(p=(h=s(k,i)).get(),f))){h.set(B(s(w,i).get()));continue}}else o.warn(&quot;unrecognized GUI edit: &quot;+i+&quot; in trace uid &quot;+_);delete T[i]}}}(t.data,t.layout,c,p),h.supplyDefaults(t,{skipUpdateCalc:!0});var v=t._fullData,y=t._fullLayout,x=void 0===y.datarevision,b=y.transition,_=function(t,e,r,n,i){var a=M.layoutFlags();function o(t){return f.getLayoutValObject(r,t)}a.arrays={},a.rangesAltered={},a.nChanges=0,a.nChangesAnim=0,ot(e,r,[],{getValObject:o,flags:a,immutable:n,transition:i,gd:t}),(a.plot||a.calc)&amp;&amp;(a.layoutReplot=!0);i&amp;&amp;a.nChanges&amp;&amp;a.nChangesAnim&amp;&amp;(a.anim=a.nChanges===a.nChangesAnim?&quot;all&quot;:&quot;some&quot;);return a}(t,p,y,x,b),w=_.newDataRevision,A=function(t,e,r,n,i,a){var o=e.length===r.length;if(!i&amp;&amp;!o)return{fullReplot:!0,calc:!0};var s,l,c=M.traceFlags();c.arrays={},c.nChanges=0,c.nChangesAnim=0;var u={getValObject:function(t){var e=f.getTraceValObject(l,t);return!l._module.animatable&amp;&amp;e.anim&amp;&amp;(e.anim=!1),e},flags:c,immutable:n,transition:i,newDataRevision:a,gd:t},p={};for(s=0;s&lt;e.length;s++)if(r[s]){if(l=r[s]._fullInput,h.hasMakesDataTransform(l)&amp;&amp;(l=r[s]),p[l.uid])continue;p[l.uid]=1,ot(e[s]._fullInput,l,[],u)}(c.calc||c.plot)&amp;&amp;(c.fullReplot=!0);i&amp;&amp;c.nChanges&amp;&amp;c.nChangesAnim&amp;&amp;(c.anim=c.nChanges===c.nChangesAnim&amp;&amp;o?&quot;all&quot;:&quot;some&quot;);return c}(t,c,v,x,b,w);if(J(t)&amp;&amp;(_.layoutReplot=!0),A.calc||_.calc){t.calcdata=void 0;for(var S=Object.getOwnPropertyNames(y),C=0;C&lt;S.length;C++){var L=S[C],P=L.substring(0,5);if(&quot;xaxis&quot;===P||&quot;yaxis&quot;===P){var z=y[L]._emptyCategories;z&amp;&amp;z()}}}else h.supplyDefaultsUpdateCalc(t.calcdata,v);var O=[];if(a&amp;&amp;(t._transitionData={},h.createTransitionData(t),O.push((function(){return r.addFrames(t,a)}))),y.transition&amp;&amp;!g&amp;&amp;(A.anim||_.anim))_.ticks&amp;&amp;O.push(k.doTicksRelayout),h.doCalcdata(t),k.doAutoRangeAndConstraints(t),O.push((function(){return h.transitionFromReact(t,A,_,p)}));else if(A.fullReplot||_.layoutReplot||g)t._fullLayout._skipDefaults=!0,O.push(r.plot);else{for(var D in _.arrays){var R=_.arrays[D];if(R.length){var F=u.getComponentMethod(D,&quot;drawOne&quot;);if(F!==o.noop)for(var N=0;N&lt;R.length;N++)F(t,R[N]);else{var j=u.getComponentMethod(D,&quot;draw&quot;);if(j===o.noop)throw new Error(&quot;cannot draw components: &quot;+D);j(t)}}}O.push(h.previousPromises),A.style&amp;&amp;O.push(k.doTraceStyle),(A.colorbars||_.colorbars)&amp;&amp;O.push(k.doColorBars),_.legend&amp;&amp;O.push(k.doLegend),_.layoutstyle&amp;&amp;O.push(k.layoutStyles),_.axrange&amp;&amp;G(O),_.ticks&amp;&amp;O.push(k.doTicksRelayout),_.modebar&amp;&amp;O.push(k.doModeBar),_.camera&amp;&amp;O.push(k.doCamera),O.push(E)}O.push(h.rehover,h.redrag),(l=o.syncOrAsync(O,t))&amp;&amp;l.then||(l=Promise.resolve(t))}else l=r.newPlot(t,e,n,i);return l.then((function(){return t.emit(&quot;plotly_react&quot;,{data:e,layout:n}),t}))},r.redraw=function(t){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t);return T.cleanData(t.data),T.cleanLayout(t.layout),t.calcdata=void 0,r.plot(t).then((function(){return t.emit(&quot;plotly_redraw&quot;),t}))},r.relayout=q,r.restyle=F,r.setPlotConfig=function(t){return o.extendFlat(_,t)},r.update=K,r._guiRelayout=Q(q),r._guiRestyle=Q(F),r._guiUpdate=Q(K),r._storeDirectGUIEdit=function(t,e,r){for(var n in r){j(n,s(t,n).get(),r[n],e)}}},{&quot;../components/color&quot;:643,&quot;../components/drawing&quot;:665,&quot;../constants/xmlns_namespaces&quot;:754,&quot;../lib&quot;:778,&quot;../lib/events&quot;:767,&quot;../lib/queue&quot;:794,&quot;../lib/svg_text_utils&quot;:803,&quot;../plots/cartesian/axes&quot;:828,&quot;../plots/cartesian/constants&quot;:834,&quot;../plots/cartesian/graph_interact&quot;:837,&quot;../plots/cartesian/select&quot;:847,&quot;../plots/plots&quot;:891,&quot;../plots/polar/legacy&quot;:899,&quot;../registry&quot;:911,&quot;./edit_types&quot;:810,&quot;./helpers&quot;:811,&quot;./manage_arrays&quot;:813,&quot;./plot_config&quot;:815,&quot;./plot_schema&quot;:816,&quot;./subroutines&quot;:818,d3:169,&quot;fast-isnumeric&quot;:241,&quot;has-hover&quot;:440}],815:[function(t,e,r){&quot;use strict&quot;;var n={staticPlot:{valType:&quot;boolean&quot;,dflt:!1},plotlyServerURL:{valType:&quot;string&quot;,dflt:&quot;&quot;},editable:{valType:&quot;boolean&quot;,dflt:!1},edits:{annotationPosition:{valType:&quot;boolean&quot;,dflt:!1},annotationTail:{valType:&quot;boolean&quot;,dflt:!1},annotationText:{valType:&quot;boolean&quot;,dflt:!1},axisTitleText:{valType:&quot;boolean&quot;,dflt:!1},colorbarPosition:{valType:&quot;boolean&quot;,dflt:!1},colorbarTitleText:{valType:&quot;boolean&quot;,dflt:!1},legendPosition:{valType:&quot;boolean&quot;,dflt:!1},legendText:{valType:&quot;boolean&quot;,dflt:!1},shapePosition:{valType:&quot;boolean&quot;,dflt:!1},titleText:{valType:&quot;boolean&quot;,dflt:!1}},autosizable:{valType:&quot;boolean&quot;,dflt:!1},responsive:{valType:&quot;boolean&quot;,dflt:!1},fillFrame:{valType:&quot;boolean&quot;,dflt:!1},frameMargins:{valType:&quot;number&quot;,dflt:0,min:0,max:.5},scrollZoom:{valType:&quot;flaglist&quot;,flags:[&quot;cartesian&quot;,&quot;gl3d&quot;,&quot;geo&quot;,&quot;mapbox&quot;],extras:[!0,!1],dflt:&quot;gl3d+geo+mapbox&quot;},doubleClick:{valType:&quot;enumerated&quot;,values:[!1,&quot;reset&quot;,&quot;autosize&quot;,&quot;reset+autosize&quot;],dflt:&quot;reset+autosize&quot;},doubleClickDelay:{valType:&quot;number&quot;,dflt:300,min:0},showAxisDragHandles:{valType:&quot;boolean&quot;,dflt:!0},showAxisRangeEntryBoxes:{valType:&quot;boolean&quot;,dflt:!0},showTips:{valType:&quot;boolean&quot;,dflt:!0},showLink:{valType:&quot;boolean&quot;,dflt:!1},linkText:{valType:&quot;string&quot;,dflt:&quot;Edit chart&quot;,noBlank:!0},sendData:{valType:&quot;boolean&quot;,dflt:!0},showSources:{valType:&quot;any&quot;,dflt:!1},displayModeBar:{valType:&quot;enumerated&quot;,values:[&quot;hover&quot;,!0,!1],dflt:&quot;hover&quot;},showSendToCloud:{valType:&quot;boolean&quot;,dflt:!1},showEditInChartStudio:{valType:&quot;boolean&quot;,dflt:!1},modeBarButtonsToRemove:{valType:&quot;any&quot;,dflt:[]},modeBarButtonsToAdd:{valType:&quot;any&quot;,dflt:[]},modeBarButtons:{valType:&quot;any&quot;,dflt:!1},toImageButtonOptions:{valType:&quot;any&quot;,dflt:{}},displaylogo:{valType:&quot;boolean&quot;,dflt:!0},watermark:{valType:&quot;boolean&quot;,dflt:!1},plotGlPixelRatio:{valType:&quot;number&quot;,dflt:2,min:1,max:4},setBackground:{valType:&quot;any&quot;,dflt:&quot;transparent&quot;},topojsonURL:{valType:&quot;string&quot;,noBlank:!0,dflt:&quot;https://cdn.plot.ly/&quot;},mapboxAccessToken:{valType:&quot;string&quot;,dflt:null},logging:{valType:&quot;integer&quot;,min:0,max:2,dflt:1},notifyOnLogging:{valType:&quot;integer&quot;,min:0,max:2,dflt:0},queueLength:{valType:&quot;integer&quot;,min:0,dflt:0},globalTransforms:{valType:&quot;any&quot;,dflt:[]},locale:{valType:&quot;string&quot;,dflt:&quot;en-US&quot;},locales:{valType:&quot;any&quot;,dflt:{}}},i={};!function t(e,r){for(var n in e){var i=e[n];i.valType?r[n]=i.dflt:(r[n]||(r[n]={}),t(i,r[n]))}}(n,i),e.exports={configAttributes:n,dfltConfig:i}},{}],816:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../plots/attributes&quot;),o=t(&quot;../plots/layout_attributes&quot;),s=t(&quot;../plots/frame_attributes&quot;),l=t(&quot;../plots/animation_attributes&quot;),c=t(&quot;./plot_config&quot;).configAttributes,u=t(&quot;../plots/polar/legacy/area_attributes&quot;),f=t(&quot;../plots/polar/legacy/axis_attributes&quot;),h=t(&quot;./edit_types&quot;),p=i.extendFlat,d=i.extendDeepAll,g=i.isPlainObject,m=i.isArrayOrTypedArray,v=i.nestedProperty,y=i.valObjectMeta,x=[&quot;_isSubplotObj&quot;,&quot;_isLinkedToArray&quot;,&quot;_arrayAttrRegexps&quot;,&quot;_deprecated&quot;];function b(t,e,r){if(!t)return!1;if(t._isLinkedToArray)if(_(e[r]))r++;else if(r&lt;e.length)return!1;for(;r&lt;e.length;r++){var n=t[e[r]];if(!g(n))break;if(t=n,r===e.length-1)break;if(t._isLinkedToArray){if(!_(e[++r]))return!1}else if(&quot;info_array&quot;===t.valType){var i=e[++r];if(!_(i))return!1;var a=t.items;if(Array.isArray(a)){if(i&gt;=a.length)return!1;if(2===t.dimensions){if(r++,e.length===r)return t;var o=e[r];if(!_(o))return!1;t=a[i][o]}else t=a[i]}else t=a}}return t}function _(t){return t===Math.round(t)&amp;&amp;t&gt;=0}function w(){var t,e,r={};for(t in d(r,o),n.subplotsRegistry){if((e=n.subplotsRegistry[t]).layoutAttributes)if(Array.isArray(e.attr))for(var i=0;i&lt;e.attr.length;i++)M(r,e,e.attr[i]);else M(r,e,&quot;subplot&quot;===e.attr?e.name:e.attr)}for(t in r=function(t){return p(t,{radialaxis:f.radialaxis,angularaxis:f.angularaxis}),p(t,f.layout),t}(r),n.componentsRegistry){var a=(e=n.componentsRegistry[t]).schema;if(a&amp;&amp;(a.subplots||a.layout)){var s=a.subplots;if(s&amp;&amp;s.xaxis&amp;&amp;!s.yaxis)for(var l in s.xaxis)delete r.yaxis[l]}else&quot;colorscale&quot;===e.name?d(r,e.layoutAttributes):e.layoutAttributes&amp;&amp;A(r,e.layoutAttributes,e.name)}return{layoutAttributes:k(r)}}function T(){var t={frames:d({},s)};return k(t),t.frames}function k(t){return function(t){r.crawl(t,(function(t,e,n){r.isValObject(t)?&quot;data_array&quot;===t.valType?(t.role=&quot;data&quot;,n[e+&quot;src&quot;]={valType:&quot;string&quot;,editType:&quot;none&quot;}):!0===t.arrayOk&amp;&amp;(n[e+&quot;src&quot;]={valType:&quot;string&quot;,editType:&quot;none&quot;}):g(t)&amp;&amp;(t.role=&quot;object&quot;)}))}(t),function(t){r.crawl(t,(function(t,e,r){if(t){var n=t._isLinkedToArray;n&amp;&amp;(delete t._isLinkedToArray,r[e]={items:{}},r[e].items[n]=t,r[e].role=&quot;object&quot;)}}))}(t),function(t){!function t(e){for(var r in e)if(g(e[r]))t(e[r]);else if(Array.isArray(e[r]))for(var n=0;n&lt;e[r].length;n++)t(e[r][n]);else e[r]instanceof RegExp&amp;&amp;(e[r]=e[r].toString())}(t)}(t),t}function M(t,e,r){var n=v(t,r),i=d({},e.layoutAttributes);i._isSubplotObj=!0,n.set(i)}function A(t,e,r){var n=v(t,r);n.set(d(n.get()||{},e))}r.IS_SUBPLOT_OBJ=&quot;_isSubplotObj&quot;,r.IS_LINKED_TO_ARRAY=&quot;_isLinkedToArray&quot;,r.DEPRECATED=&quot;_deprecated&quot;,r.UNDERSCORE_ATTRS=x,r.get=function(){var t={};n.allTypes.concat(&quot;area&quot;).forEach((function(e){t[e]=function(t){var e,i;&quot;area&quot;===t?(e={attributes:u},i={}):(e=n.modules[t]._module,i=e.basePlotModule);var o={type:null},s=d({},a),l=d({},e.attributes);r.crawl(l,(function(t,e,r,n,i){v(s,i).set(void 0),void 0===t&amp;&amp;v(l,i).set(void 0)})),d(o,s),n.traceIs(t,&quot;noOpacity&quot;)&amp;&amp;delete o.opacity;n.traceIs(t,&quot;showLegend&quot;)||(delete o.showlegend,delete o.legendgroup);n.traceIs(t,&quot;noHover&quot;)&amp;&amp;(delete o.hoverinfo,delete o.hoverlabel);e.selectPoints||delete o.selectedpoints;d(o,l),i.attributes&amp;&amp;d(o,i.attributes);o.type=t;var c={meta:e.meta||{},categories:e.categories||{},animatable:Boolean(e.animatable),type:t,attributes:k(o)};if(e.layoutAttributes){var f={};d(f,e.layoutAttributes),c.layoutAttributes=k(f)}e.animatable||r.crawl(c,(function(t){r.isValObject(t)&amp;&amp;&quot;anim&quot;in t&amp;&amp;delete t.anim}));return c}(e)}));var e={};return Object.keys(n.transformsRegistry).forEach((function(t){e[t]=function(t){var e=n.transformsRegistry[t],r=d({},e.attributes);return Object.keys(n.componentsRegistry).forEach((function(e){var i=n.componentsRegistry[e];i.schema&amp;&amp;i.schema.transforms&amp;&amp;i.schema.transforms[t]&amp;&amp;Object.keys(i.schema.transforms[t]).forEach((function(e){A(r,i.schema.transforms[t][e],e)}))})),{attributes:k(r)}}(t)})),{defs:{valObjects:y,metaKeys:x.concat([&quot;description&quot;,&quot;role&quot;,&quot;editType&quot;,&quot;impliedEdits&quot;]),editType:{traces:h.traces,layout:h.layout},impliedEdits:{}},traces:t,layout:w(),transforms:e,frames:T(),animation:k(l),config:k(c)}},r.crawl=function(t,e,n,i){var a=n||0;i=i||&quot;&quot;,Object.keys(t).forEach((function(n){var o=t[n];if(-1===x.indexOf(n)){var s=(i?i+&quot;.&quot;:&quot;&quot;)+n;e(o,n,t,a,s),r.isValObject(o)||g(o)&amp;&amp;&quot;impliedEdits&quot;!==n&amp;&amp;r.crawl(o,e,a+1,s)}}))},r.isValObject=function(t){return t&amp;&amp;void 0!==t.valType},r.findArrayAttributes=function(t){var e,n,i=[],o=[],s=[];function l(t,r,a,l){o=o.slice(0,l).concat([r]),s=s.slice(0,l).concat([t&amp;&amp;t._isLinkedToArray]),t&amp;&amp;(&quot;data_array&quot;===t.valType||!0===t.arrayOk)&amp;&amp;!(&quot;colorbar&quot;===o[l-1]&amp;&amp;(&quot;ticktext&quot;===r||&quot;tickvals&quot;===r))&amp;&amp;function t(e,r,a){var l=e[o[r]],c=a+o[r];if(r===o.length-1)m(l)&amp;&amp;i.push(n+c);else if(s[r]){if(Array.isArray(l))for(var u=0;u&lt;l.length;u++)g(l[u])&amp;&amp;t(l[u],r+1,c+&quot;[&quot;+u+&quot;].&quot;)}else g(l)&amp;&amp;t(l,r+1,c+&quot;.&quot;)}(e,0,&quot;&quot;)}e=t,n=&quot;&quot;,r.crawl(a,l),t._module&amp;&amp;t._module.attributes&amp;&amp;r.crawl(t._module.attributes,l);var c=t.transforms;if(c)for(var u=0;u&lt;c.length;u++){var f=c[u],h=f._module;h&amp;&amp;(n=&quot;transforms[&quot;+u+&quot;].&quot;,e=f,r.crawl(h.attributes,l))}return i},r.getTraceValObject=function(t,e){var r,i,o=e[0],s=1;if(&quot;transforms&quot;===o){if(1===e.length)return a.transforms;var l=t.transforms;if(!Array.isArray(l)||!l.length)return!1;var c=e[1];if(!_(c)||c&gt;=l.length)return!1;i=(r=(n.transformsRegistry[l[c].type]||{}).attributes)&amp;&amp;r[e[2]],s=3}else if(&quot;area&quot;===t.type)i=u[o];else{var f=t._module;if(f||(f=(n.modules[t.type||a.type.dflt]||{})._module),!f)return!1;if(!(i=(r=f.attributes)&amp;&amp;r[o])){var h=f.basePlotModule;h&amp;&amp;h.attributes&amp;&amp;(i=h.attributes[o])}i||(i=a[o])}return b(i,e,s)},r.getLayoutValObject=function(t,e){return b(function(t,e){var r,i,a,s,l=t._basePlotModules;if(l){var c;for(r=0;r&lt;l.length;r++){if((a=l[r]).attrRegex&amp;&amp;a.attrRegex.test(e)){if(a.layoutAttrOverrides)return a.layoutAttrOverrides;!c&amp;&amp;a.layoutAttributes&amp;&amp;(c=a.layoutAttributes)}var u=a.baseLayoutAttrOverrides;if(u&amp;&amp;e in u)return u[e]}if(c)return c}var h=t._modules;if(h)for(r=0;r&lt;h.length;r++)if((s=h[r].layoutAttributes)&amp;&amp;e in s)return s[e];for(i in n.componentsRegistry){if(&quot;colorscale&quot;===(a=n.componentsRegistry[i]).name&amp;&amp;0===e.indexOf(&quot;coloraxis&quot;))return a.layoutAttributes[e];if(!a.schema&amp;&amp;e===a.name)return a.layoutAttributes}if(e in o)return o[e];if(&quot;radialaxis&quot;===e||&quot;angularaxis&quot;===e)return f[e];return f.layout[e]||!1}(t,e[0]),e,1)}},{&quot;../lib&quot;:778,&quot;../plots/animation_attributes&quot;:822,&quot;../plots/attributes&quot;:824,&quot;../plots/frame_attributes&quot;:857,&quot;../plots/layout_attributes&quot;:882,&quot;../plots/polar/legacy/area_attributes&quot;:897,&quot;../plots/polar/legacy/axis_attributes&quot;:898,&quot;../registry&quot;:911,&quot;./edit_types&quot;:810,&quot;./plot_config&quot;:815}],817:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/attributes&quot;),a={name:{valType:&quot;string&quot;,editType:&quot;none&quot;}};function o(t){return t&amp;&amp;&quot;string&quot;==typeof t}function s(t){var e=t.length-1;return&quot;s&quot;!==t.charAt(e)&amp;&amp;n.warn(&quot;bad argument to arrayDefaultKey: &quot;+t),t.substr(0,t.length-1)+&quot;defaults&quot;}a.templateitemname={valType:&quot;string&quot;,editType:&quot;calc&quot;},r.templatedArray=function(t,e){return e._isLinkedToArray=t,e.name=a.name,e.templateitemname=a.templateitemname,e},r.traceTemplater=function(t){var e,r,a={};for(e in t)r=t[e],Array.isArray(r)&amp;&amp;r.length&amp;&amp;(a[e]=0);return{newTrace:function(o){var s={type:e=n.coerce(o,{},i,&quot;type&quot;),_template:null};if(e in a){r=t[e];var l=a[e]%r.length;a[e]++,s._template=r[l]}return s}}},r.newContainer=function(t,e,r){var i=t._template,a=i&amp;&amp;(i[e]||r&amp;&amp;i[r]);return n.isPlainObject(a)||(a=null),t[e]={_template:a}},r.arrayTemplater=function(t,e,r){var n=t._template,i=n&amp;&amp;n[s(e)],a=n&amp;&amp;n[e];Array.isArray(a)&amp;&amp;a.length||(a=[]);var l={};return{newItem:function(t){var e={name:t.name,_input:t},n=e.templateitemname=t.templateitemname;if(!o(n))return e._template=i,e;for(var s=0;s&lt;a.length;s++){var c=a[s];if(c.name===n)return l[n]=1,e._template=c,e}return e[r]=t[r]||!1,e._template=!1,e},defaultItems:function(){for(var t=[],e=0;e&lt;a.length;e++){var r=a[e],n=r.name;if(o(n)&amp;&amp;!l[n]){var i={_template:r,name:n,_input:{_templateitemname:n}};i.templateitemname=r.templateitemname,t.push(i),l[n]=1}}return t}}},r.arrayDefaultKey=s,r.arrayEditor=function(t,e,r){var i=(n.nestedProperty(t,e).get()||[]).length,a=r._index,o=a&gt;=i&amp;&amp;(r._input||{})._templateitemname;o&amp;&amp;(a=i);var s,l=e+&quot;[&quot;+a+&quot;]&quot;;function c(){s={},o&amp;&amp;(s[l]={},s[l].templateitemname=o)}function u(t,e){o?n.nestedProperty(s[l],t).set(e):s[l+&quot;.&quot;+t]=e}function f(){var t=s;return c(),t}return c(),{modifyBase:function(t,e){s[t]=e},modifyItem:u,getUpdateObj:f,applyUpdate:function(e,r){e&amp;&amp;u(e,r);var i=f();for(var a in i)n.nestedProperty(t,a).set(i[a])}}}},{&quot;../lib&quot;:778,&quot;../plots/attributes&quot;:824}],818:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../registry&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../lib/clear_gl_canvases&quot;),l=t(&quot;../components/color&quot;),c=t(&quot;../components/drawing&quot;),u=t(&quot;../components/titles&quot;),f=t(&quot;../components/modebar&quot;),h=t(&quot;../plots/cartesian/axes&quot;),p=t(&quot;../constants/alignment&quot;),d=t(&quot;../plots/cartesian/constraints&quot;),g=d.enforce,m=d.clean,v=t(&quot;../plots/cartesian/autorange&quot;).doAutoRange;function y(t,e,r){for(var n=0;n&lt;r.length;n++){var i=r[n][0],a=r[n][1];if(!(i[0]&gt;=t[1]||i[1]&lt;=t[0])&amp;&amp;(a[0]&lt;e[1]&amp;&amp;a[1]&gt;e[0]))return!0}return!1}function x(t){var e,i,s,u,d,g,m=t._fullLayout,v=m._size,x=v.p,_=h.list(t,&quot;&quot;,!0);if(m._paperdiv.style({width:t._context.responsive&amp;&amp;m.autosize&amp;&amp;!t._context._hasZeroWidth&amp;&amp;!t.layout.width?&quot;100%&quot;:m.width+&quot;px&quot;,height:t._context.responsive&amp;&amp;m.autosize&amp;&amp;!t._context._hasZeroHeight&amp;&amp;!t.layout.height?&quot;100%&quot;:m.height+&quot;px&quot;}).selectAll(&quot;.main-svg&quot;).call(c.setSize,m.width,m.height),t._context.setBackground(t,m.paper_bgcolor),r.drawMainTitle(t),f.manage(t),!m._has(&quot;cartesian&quot;))return a.previousPromises(t);function T(t,e,r){var n=t._lw/2;return&quot;x&quot;===t._id.charAt(0)?e?&quot;top&quot;===r?e._offset-x-n:e._offset+e._length+x+n:v.t+v.h*(1-(t.position||0))+n%1:e?&quot;right&quot;===r?e._offset+e._length+x+n:e._offset-x-n:v.l+v.w*(t.position||0)+n%1}for(e=0;e&lt;_.length;e++){var k=(u=_[e])._anchorAxis;u._linepositions={},u._lw=c.crispRound(t,u.linewidth,1),u._mainLinePosition=T(u,k,u.side),u._mainMirrorPosition=u.mirror&amp;&amp;k?T(u,k,p.OPPOSITE_SIDE[u.side]):null}var M=[],A=[],S=[],E=1===l.opacity(m.paper_bgcolor)&amp;&amp;1===l.opacity(m.plot_bgcolor)&amp;&amp;m.paper_bgcolor===m.plot_bgcolor;for(i in m._plots)if((s=m._plots[i]).mainplot)s.bg&amp;&amp;s.bg.remove(),s.bg=void 0;else{var C=s.xaxis.domain,L=s.yaxis.domain,I=s.plotgroup;if(y(C,L,S)){var P=I.node(),z=s.bg=o.ensureSingle(I,&quot;rect&quot;,&quot;bg&quot;);P.insertBefore(z.node(),P.childNodes[0]),A.push(i)}else I.select(&quot;rect.bg&quot;).remove(),S.push([C,L]),E||(M.push(i),A.push(i))}var O,D,R,F,B,N,j,U,V,q,H,G,Y,W=m._bgLayer.selectAll(&quot;.bg&quot;).data(M);for(W.enter().append(&quot;rect&quot;).classed(&quot;bg&quot;,!0),W.exit().remove(),W.each((function(t){m._plots[t].bg=n.select(this)})),e=0;e&lt;A.length;e++)s=m._plots[A[e]],d=s.xaxis,g=s.yaxis,s.bg&amp;&amp;void 0!==d._offset&amp;&amp;void 0!==g._offset&amp;&amp;s.bg.call(c.setRect,d._offset-x,g._offset-x,d._length+2*x,g._length+2*x).call(l.fill,m.plot_bgcolor).style(&quot;stroke-width&quot;,0);if(!m._hasOnlyLargeSploms)for(i in m._plots){s=m._plots[i],d=s.xaxis,g=s.yaxis;var X,Z,J=s.clipId=&quot;clip&quot;+m._uid+i+&quot;plot&quot;,K=o.ensureSingleById(m._clips,&quot;clipPath&quot;,J,(function(t){t.classed(&quot;plotclip&quot;,!0).append(&quot;rect&quot;)}));s.clipRect=K.select(&quot;rect&quot;).attr({width:d._length,height:g._length}),c.setTranslate(s.plot,d._offset,g._offset),s._hasClipOnAxisFalse?(X=null,Z=J):(X=J,Z=null),c.setClipUrl(s.plot,X,t),s.layerClipId=Z}function Q(t){return&quot;M&quot;+O+&quot;,&quot;+t+&quot;H&quot;+D}function $(t){return&quot;M&quot;+d._offset+&quot;,&quot;+t+&quot;h&quot;+d._length}function tt(t){return&quot;M&quot;+t+&quot;,&quot;+U+&quot;V&quot;+j}function et(t){return&quot;M&quot;+t+&quot;,&quot;+g._offset+&quot;v&quot;+g._length}function rt(t,e,r){if(!t.showline||i!==t._mainSubplot)return&quot;&quot;;if(!t._anchorAxis)return r(t._mainLinePosition);var n=e(t._mainLinePosition);return t.mirror&amp;&amp;(n+=e(t._mainMirrorPosition)),n}for(i in m._plots){s=m._plots[i],d=s.xaxis,g=s.yaxis;var nt=&quot;M0,0&quot;;b(d,i)&amp;&amp;(B=w(d,&quot;left&quot;,g,_),O=d._offset-(B?x+B:0),N=w(d,&quot;right&quot;,g,_),D=d._offset+d._length+(N?x+N:0),R=T(d,g,&quot;bottom&quot;),F=T(d,g,&quot;top&quot;),!(Y=!d._anchorAxis||i!==d._mainSubplot)||&quot;allticks&quot;!==d.mirror&amp;&amp;&quot;all&quot;!==d.mirror||(d._linepositions[i]=[R,F]),nt=rt(d,Q,$),Y&amp;&amp;d.showline&amp;&amp;(&quot;all&quot;===d.mirror||&quot;allticks&quot;===d.mirror)&amp;&amp;(nt+=Q(R)+Q(F)),s.xlines.style(&quot;stroke-width&quot;,d._lw+&quot;px&quot;).call(l.stroke,d.showline?d.linecolor:&quot;rgba(0,0,0,0)&quot;)),s.xlines.attr(&quot;d&quot;,nt);var it=&quot;M0,0&quot;;b(g,i)&amp;&amp;(H=w(g,&quot;bottom&quot;,d,_),j=g._offset+g._length+(H?x:0),G=w(g,&quot;top&quot;,d,_),U=g._offset-(G?x:0),V=T(g,d,&quot;left&quot;),q=T(g,d,&quot;right&quot;),!(Y=!g._anchorAxis||i!==g._mainSubplot)||&quot;allticks&quot;!==g.mirror&amp;&amp;&quot;all&quot;!==g.mirror||(g._linepositions[i]=[V,q]),it=rt(g,tt,et),Y&amp;&amp;g.showline&amp;&amp;(&quot;all&quot;===g.mirror||&quot;allticks&quot;===g.mirror)&amp;&amp;(it+=tt(V)+tt(q)),s.ylines.style(&quot;stroke-width&quot;,g._lw+&quot;px&quot;).call(l.stroke,g.showline?g.linecolor:&quot;rgba(0,0,0,0)&quot;)),s.ylines.attr(&quot;d&quot;,it)}return h.makeClipPaths(t),a.previousPromises(t)}function b(t,e){return(t.ticks||t.showline)&amp;&amp;(e===t._mainSubplot||&quot;all&quot;===t.mirror||&quot;allticks&quot;===t.mirror)}function _(t,e,r){if(!r.showline||!r._lw)return!1;if(&quot;all&quot;===r.mirror||&quot;allticks&quot;===r.mirror)return!0;var n=r._anchorAxis;if(!n)return!1;var i=p.FROM_BL[e];return r.side===e?n.domain[i]===t.domain[i]:r.mirror&amp;&amp;n.domain[1-i]===t.domain[1-i]}function w(t,e,r,n){if(_(t,e,r))return r._lw;for(var i=0;i&lt;n.length;i++){var a=n[i];if(a._mainAxis===r._mainAxis&amp;&amp;_(t,e,a))return a._lw}return 0}function T(t,e){var r=t.title,n=t._size,i=0;switch(&quot;start&quot;===e?i=r.pad.l:&quot;end&quot;===e&amp;&amp;(i=-r.pad.r),r.xref){case&quot;paper&quot;:return n.l+n.w*r.x+i;case&quot;container&quot;:default:return t.width*r.x+i}}function k(t,e){var r=t.title,n=t._size,i=0;if(&quot;0em&quot;!==e&amp;&amp;e?e===p.CAP_SHIFT+&quot;em&quot;&amp;&amp;(i=r.pad.t):i=-r.pad.b,&quot;auto&quot;===r.y)return n.t/2;switch(r.yref){case&quot;paper&quot;:return n.t+n.h-n.h*r.y+i;case&quot;container&quot;:default:return t.height-t.height*r.y+i}}r.layoutStyles=function(t){return o.syncOrAsync([a.doAutoMargin,x],t)},r.drawMainTitle=function(t){var e=t._fullLayout,r=function(t){var e=t.title,r=&quot;middle&quot;;o.isRightAnchor(e)?r=&quot;end&quot;:o.isLeftAnchor(e)&amp;&amp;(r=&quot;start&quot;);return r}(e),n=function(t){var e=t.title,r=&quot;0em&quot;;o.isTopAnchor(e)?r=p.CAP_SHIFT+&quot;em&quot;:o.isMiddleAnchor(e)&amp;&amp;(r=p.MID_SHIFT+&quot;em&quot;);return r}(e);u.draw(t,&quot;gtitle&quot;,{propContainer:e,propName:&quot;title.text&quot;,placeholder:e._dfltTitle.plot,attributes:{x:T(e,r),y:k(e,n),&quot;text-anchor&quot;:r,dy:n}})},r.doTraceStyle=function(t){var e,n=t.calcdata,o=[];for(e=0;e&lt;n.length;e++){var l=n[e],c=l[0]||{},u=c.trace||{},f=u._module||{},h=f.arraysToCalcdata;h&amp;&amp;h(l,u);var p=f.editStyle;p&amp;&amp;o.push({fn:p,cd0:c})}if(o.length){for(e=0;e&lt;o.length;e++){var d=o[e];d.fn(t,d.cd0)}s(t),r.redrawReglTraces(t)}return a.style(t),i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.doColorBars=function(t){return i.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.layoutReplot=function(t){var e=t.layout;return t.layout=void 0,i.call(&quot;plot&quot;,t,&quot;&quot;,e)},r.doLegend=function(t){return i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.doTicksRelayout=function(t){return h.draw(t,&quot;redraw&quot;),t._fullLayout._hasOnlyLargeSploms&amp;&amp;(i.subplotsRegistry.splom.updateGrid(t),s(t),r.redrawReglTraces(t)),r.drawMainTitle(t),a.previousPromises(t)},r.doModeBar=function(t){var e=t._fullLayout;f.manage(t);for(var r=0;r&lt;e._basePlotModules.length;r++){var n=e._basePlotModules[r].updateFx;n&amp;&amp;n(t)}return a.previousPromises(t)},r.doCamera=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n&lt;r.length;n++){var i=e[r[n]];i._scene.setViewport(i)}},r.drawData=function(t){var e=t._fullLayout;s(t);for(var n=e._basePlotModules,o=0;o&lt;n.length;o++)n[o].plot(t);return r.redrawReglTraces(t),a.style(t),i.getComponentMethod(&quot;shapes&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;annotations&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;images&quot;,&quot;draw&quot;)(t),e._replotting=!1,a.previousPromises(t)},r.redrawReglTraces=function(t){var e=t._fullLayout;if(e._has(&quot;regl&quot;)){var r,n,i=t._fullData,a=[],s=[];for(e._hasOnlyLargeSploms&amp;&amp;e._splomGrid.draw(),r=0;r&lt;i.length;r++){var l=i[r];!0===l.visible&amp;&amp;0!==l._length&amp;&amp;(&quot;splom&quot;===l.type?e._splomScenes[l.uid].draw():&quot;scattergl&quot;===l.type?o.pushUnique(a,l.xaxis+l.yaxis):&quot;scatterpolargl&quot;===l.type&amp;&amp;o.pushUnique(s,l.subplot))}for(r=0;r&lt;a.length;r++)(n=e._plots[a[r]])._scene&amp;&amp;n._scene.draw();for(r=0;r&lt;s.length;r++)(n=e[s[r]]._subplot)._scene&amp;&amp;n._scene.draw()}},r.doAutoRangeAndConstraints=function(t){for(var e,r=h.list(t,&quot;&quot;,!0),n={},i=0;i&lt;r.length;i++)if(!n[(e=r[i])._id]){n[e._id]=1,m(t,e),v(t,e);var a=e._matchGroup;if(a)for(var o in a){var s=h.getFromId(t,o);v(t,s,e.range),n[o]=1}}g(t)},r.finalDraw=function(t){i.getComponentMethod(&quot;rangeslider&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;rangeselector&quot;,&quot;draw&quot;)(t)},r.drawMarginPushers=function(t){i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;rangeselector&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;sliders&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;updatemenus&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t)}},{&quot;../components/color&quot;:643,&quot;../components/drawing&quot;:665,&quot;../components/modebar&quot;:703,&quot;../components/titles&quot;:738,&quot;../constants/alignment&quot;:745,&quot;../lib&quot;:778,&quot;../lib/clear_gl_canvases&quot;:762,&quot;../plots/cartesian/autorange&quot;:827,&quot;../plots/cartesian/axes&quot;:828,&quot;../plots/cartesian/constraints&quot;:835,&quot;../plots/plots&quot;:891,&quot;../registry&quot;:911,d3:169}],819:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=n.isPlainObject,a=t(&quot;./plot_schema&quot;),o=t(&quot;../plots/plots&quot;),s=t(&quot;../plots/attributes&quot;),l=t(&quot;./plot_template&quot;),c=t(&quot;./plot_config&quot;).dfltConfig;function u(t,e){t=n.extendDeep({},t);var r,a,o=Object.keys(t).sort();function s(e,r,n){if(i(r)&amp;&amp;i(e))u(e,r);else if(Array.isArray(r)&amp;&amp;Array.isArray(e)){var o=l.arrayTemplater({_template:t},n);for(a=0;a&lt;r.length;a++){var s=r[a],c=o.newItem(s)._template;c&amp;&amp;u(c,s)}var f=o.defaultItems();for(a=0;a&lt;f.length;a++)r.push(f[a]._template);for(a=0;a&lt;r.length;a++)delete r[a].templateitemname}}for(r=0;r&lt;o.length;r++){var c=o[r],h=t[c];if(c in e?s(h,e[c],c):e[c]=h,f(c)===c)for(var p in e){var d=f(p);p===d||d!==c||p in t||s(h,e[p],c)}}}function f(t){return t.replace(/[0-9]+$/,&quot;&quot;)}function h(t,e,r,a,o){var s=o&amp;&amp;r(o);for(var c in t){var u=t[c],p=g(t,c,a),d=g(t,c,o),m=r(d);if(!m){var v=f(c);v!==c&amp;&amp;(m=r(d=g(t,v,o)))}if((!s||s!==m)&amp;&amp;!(!m||m._noTemplating||&quot;data_array&quot;===m.valType||m.arrayOk&amp;&amp;Array.isArray(u)))if(!m.valType&amp;&amp;i(u))h(u,e,r,p,d);else if(m._isLinkedToArray&amp;&amp;Array.isArray(u))for(var y=!1,x=0,b={},_=0;_&lt;u.length;_++){var w=u[_];if(i(w)){var T=w.name;if(T)b[T]||(h(w,e,r,g(u,x,p),g(u,x,d)),x++,b[T]=1);else if(!y){var k=g(t,l.arrayDefaultKey(c),a),M=g(u,x,p);h(w,e,r,M,g(u,x,d));var A=n.nestedProperty(e,M);n.nestedProperty(e,k).set(A.get()),A.set(null),y=!0}}}else{n.nestedProperty(e,p).set(u)}}}function p(t,e){return a.getLayoutValObject(t,n.nestedProperty({},e).parts)}function d(t,e){return a.getTraceValObject(t,n.nestedProperty({},e).parts)}function g(t,e,r){return r?Array.isArray(t)?r+&quot;[&quot;+e+&quot;]&quot;:r+&quot;.&quot;+e:e}function m(t){for(var e=0;e&lt;t.length;e++)if(i(t[e]))return!0}function v(t){var e;switch(t.code){case&quot;data&quot;:e=&quot;The template has no key data.&quot;;break;case&quot;layout&quot;:e=&quot;The template has no key layout.&quot;;break;case&quot;missing&quot;:e=t.path?&quot;There are no templates for item &quot;+t.path+&quot; with name &quot;+t.templateitemname:&quot;There are no templates for trace &quot;+t.index+&quot;, of type &quot;+t.traceType+&quot;.&quot;;break;case&quot;unused&quot;:e=t.path?&quot;The template item at &quot;+t.path+&quot; was not used in constructing the plot.&quot;:t.dataCount?&quot;Some of the templates of type &quot;+t.traceType+&quot; were not used. The template has &quot;+t.templateCount+&quot; traces, the data only has &quot;+t.dataCount+&quot; of this type.&quot;:&quot;The template has &quot;+t.templateCount+&quot; traces of type &quot;+t.traceType+&quot; but there are none in the data.&quot;;break;case&quot;reused&quot;:e=&quot;Some of the templates of type &quot;+t.traceType+&quot; were used more than once. The template has &quot;+t.templateCount+&quot; traces, the data has &quot;+t.dataCount+&quot; of this type.&quot;}return t.msg=e,t}r.makeTemplate=function(t){t=n.isPlainObject(t)?t:n.getGraphDiv(t),t=n.extendDeep({_context:c},{data:t.data,layout:t.layout}),o.supplyDefaults(t);var e=t.data||[],r=t.layout||{};r._basePlotModules=t._fullLayout._basePlotModules,r._modules=t._fullLayout._modules;var a={data:{},layout:{}};e.forEach((function(t){var e={};h(t,e,d.bind(null,t));var r=n.coerce(t,{},s,&quot;type&quot;),i=a.data[r];i||(i=a.data[r]=[]),i.push(e)})),h(r,a.layout,p.bind(null,r)),delete a.layout.template;var l=r.template;if(i(l)){var f,g,m,v,y,x,b=l.layout;i(b)&amp;&amp;u(b,a.layout);var _=l.data;if(i(_)){for(g in a.data)if(m=_[g],Array.isArray(m)){for(x=(y=a.data[g]).length,v=m.length,f=0;f&lt;x;f++)u(m[f%v],y[f]);for(f=x;f&lt;v;f++)y.push(n.extendDeep({},m[f]))}for(g in _)g in a.data||(a.data[g]=n.extendDeep([],_[g]))}}return a},r.validateTemplate=function(t,e){var r=n.extendDeep({},{_context:c,data:t.data,layout:t.layout}),a=r.layout||{};i(e)||(e=a.template||{});var s=e.layout,l=e.data,u=[];r.layout=a,r.layout.template=e,o.supplyDefaults(r);var h=r._fullLayout,p=r._fullData,d={};if(i(s)?(!function t(e,r){for(var n in e)if(&quot;_&quot;!==n.charAt(0)&amp;&amp;i(e[n])){var a,o=f(n),s=[];for(a=0;a&lt;r.length;a++)s.push(g(e,n,r[a])),o!==n&amp;&amp;s.push(g(e,o,r[a]));for(a=0;a&lt;s.length;a++)d[s[a]]=1;t(e[n],s)}}(h,[&quot;layout&quot;]),function t(e,r){for(var n in e)if(-1===n.indexOf(&quot;defaults&quot;)&amp;&amp;i(e[n])){var a=g(e,n,r);d[a]?t(e[n],a):u.push({code:&quot;unused&quot;,path:a})}}(s,&quot;layout&quot;)):u.push({code:&quot;layout&quot;}),i(l)){for(var y,x={},b=0;b&lt;p.length;b++){var _=p[b];x[y=_.type]=(x[y]||0)+1,_._fullInput._template||u.push({code:&quot;missing&quot;,index:_._fullInput.index,traceType:y})}for(y in l){var w=l[y].length,T=x[y]||0;w&gt;T?u.push({code:&quot;unused&quot;,traceType:y,templateCount:w,dataCount:T}):T&gt;w&amp;&amp;u.push({code:&quot;reused&quot;,traceType:y,templateCount:w,dataCount:T})}}else u.push({code:&quot;data&quot;});if(function t(e,r){for(var n in e)if(&quot;_&quot;!==n.charAt(0)){var a=e[n],o=g(e,n,r);i(a)?(Array.isArray(e)&amp;&amp;!1===a._template&amp;&amp;a.templateitemname&amp;&amp;u.push({code:&quot;missing&quot;,path:o,templateitemname:a.templateitemname}),t(a,o)):Array.isArray(a)&amp;&amp;m(a)&amp;&amp;t(a,o)}}({data:p,layout:h},&quot;&quot;),u.length)return u.map(v)}},{&quot;../lib&quot;:778,&quot;../plots/attributes&quot;:824,&quot;../plots/plots&quot;:891,&quot;./plot_config&quot;:815,&quot;./plot_schema&quot;:816,&quot;./plot_template&quot;:817}],820:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./plot_api&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../snapshot/helpers&quot;),l=t(&quot;../snapshot/tosvg&quot;),c=t(&quot;../snapshot/svgtoimg&quot;),u=t(&quot;../version&quot;).version,f={format:{valType:&quot;enumerated&quot;,values:[&quot;png&quot;,&quot;jpeg&quot;,&quot;webp&quot;,&quot;svg&quot;,&quot;full-json&quot;],dflt:&quot;png&quot;},width:{valType:&quot;number&quot;,min:1},height:{valType:&quot;number&quot;,min:1},scale:{valType:&quot;number&quot;,min:0,dflt:1},setBackground:{valType:&quot;any&quot;,dflt:!1},imageDataOnly:{valType:&quot;boolean&quot;,dflt:!1}};e.exports=function(t,e){var r,h,p,d;function g(t){return!(t in e)||o.validate(e[t],f[t])}if(e=e||{},o.isPlainObject(t)?(r=t.data||[],h=t.layout||{},p=t.config||{},d={}):(t=o.getGraphDiv(t),r=o.extendDeep([],t.data),h=o.extendDeep({},t.layout),p=t._context,d=t._fullLayout||{}),!g(&quot;width&quot;)&amp;&amp;null!==e.width||!g(&quot;height&quot;)&amp;&amp;null!==e.height)throw new Error(&quot;Height and width should be pixel values.&quot;);if(!g(&quot;format&quot;))throw new Error(&quot;Export format is not &quot;+o.join2(f.format.values,&quot;, &quot;,&quot; or &quot;)+&quot;.&quot;);var m={};function v(t,r){return o.coerce(e,m,f,t,r)}var y=v(&quot;format&quot;),x=v(&quot;width&quot;),b=v(&quot;height&quot;),_=v(&quot;scale&quot;),w=v(&quot;setBackground&quot;),T=v(&quot;imageDataOnly&quot;),k=document.createElement(&quot;div&quot;);k.style.position=&quot;absolute&quot;,k.style.left=&quot;-5000px&quot;,document.body.appendChild(k);var M=o.extendFlat({},h);x?M.width=x:null===e.width&amp;&amp;n(d.width)&amp;&amp;(M.width=d.width),b?M.height=b:null===e.height&amp;&amp;n(d.height)&amp;&amp;(M.height=d.height);var A=o.extendFlat({},p,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),S=s.getRedrawFunc(k);function E(){return new Promise((function(t){setTimeout(t,s.getDelay(k._fullLayout))}))}function C(){return new Promise((function(t,e){var r=l(k,y,_),n=k._fullLayout.width,f=k._fullLayout.height;function h(){i.purge(k),document.body.removeChild(k)}if(&quot;full-json&quot;===y){var p=a.graphJson(k,!1,&quot;keepdata&quot;,&quot;object&quot;,!0,!0);return p.version=u,p=JSON.stringify(p),h(),t(T?p:s.encodeJSON(p))}if(h(),&quot;svg&quot;===y)return t(T?r:s.encodeSVG(r));var d=document.createElement(&quot;canvas&quot;);d.id=o.randstr(),c({format:y,width:n,height:f,scale:_,canvas:d,svg:r,promise:!0}).then(t).catch(e)}))}return new Promise((function(t,e){i.plot(k,r,M,A).then(S).then(E).then(C).then((function(e){t(function(t){return T?t.replace(s.IMAGE_URL_PREFIX,&quot;&quot;):t}(e))})).catch((function(t){e(t)}))}))}},{&quot;../lib&quot;:778,&quot;../plots/plots&quot;:891,&quot;../snapshot/helpers&quot;:915,&quot;../snapshot/svgtoimg&quot;:917,&quot;../snapshot/tosvg&quot;:919,&quot;../version&quot;:1370,&quot;./plot_api&quot;:814,&quot;fast-isnumeric&quot;:241}],821:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/plots&quot;),a=t(&quot;./plot_schema&quot;),o=t(&quot;./plot_config&quot;).dfltConfig,s=n.isPlainObject,l=Array.isArray,c=n.isArrayOrTypedArray;function u(t,e,r,i,a,o){o=o||[];for(var f=Object.keys(t),h=0;h&lt;f.length;h++){var p=f[h];if(&quot;transforms&quot;!==p){var v=o.slice();v.push(p);var y=t[p],x=e[p],b=m(r,p),_=(b||{}).valType,w=&quot;info_array&quot;===_,T=&quot;colorscale&quot;===_,k=(b||{}).items;if(g(r,p))if(s(y)&amp;&amp;s(x)&amp;&amp;&quot;any&quot;!==_)u(y,x,b,i,a,v);else if(w&amp;&amp;l(y)){y.length&gt;x.length&amp;&amp;i.push(d(&quot;unused&quot;,a,v.concat(x.length)));var M,A,S,E,C,L=x.length,I=Array.isArray(k);if(I&amp;&amp;(L=Math.min(L,k.length)),2===b.dimensions)for(A=0;A&lt;L;A++)if(l(y[A])){y[A].length&gt;x[A].length&amp;&amp;i.push(d(&quot;unused&quot;,a,v.concat(A,x[A].length)));var P=x[A].length;for(M=0;M&lt;(I?Math.min(P,k[A].length):P);M++)S=I?k[A][M]:k,E=y[A][M],C=x[A][M],n.validate(E,S)?C!==E&amp;&amp;C!==+E&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v.concat(A,M),E,C)):i.push(d(&quot;value&quot;,a,v.concat(A,M),E))}else i.push(d(&quot;array&quot;,a,v.concat(A),y[A]));else for(A=0;A&lt;L;A++)S=I?k[A]:k,E=y[A],C=x[A],n.validate(E,S)?C!==E&amp;&amp;C!==+E&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v.concat(A),E,C)):i.push(d(&quot;value&quot;,a,v.concat(A),E))}else if(b.items&amp;&amp;!w&amp;&amp;l(y)){var z,O,D=k[Object.keys(k)[0]],R=[];for(z=0;z&lt;x.length;z++){var F=x[z]._index||z;if((O=v.slice()).push(F),s(y[F])&amp;&amp;s(x[z])){R.push(F);var B=y[F],N=x[z];s(B)&amp;&amp;!1!==B.visible&amp;&amp;!1===N.visible?i.push(d(&quot;invisible&quot;,a,O)):u(B,N,D,i,a,O)}}for(z=0;z&lt;y.length;z++)(O=v.slice()).push(z),s(y[z])?-1===R.indexOf(z)&amp;&amp;i.push(d(&quot;unused&quot;,a,O)):i.push(d(&quot;object&quot;,a,O,y[z]))}else!s(y)&amp;&amp;s(x)?i.push(d(&quot;object&quot;,a,v,y)):c(y)||!c(x)||w||T?p in e?n.validate(y,b)?&quot;enumerated&quot;===b.valType&amp;&amp;(b.coerceNumber&amp;&amp;y!==+x||y!==x)&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v,y,x)):i.push(d(&quot;value&quot;,a,v,y)):i.push(d(&quot;unused&quot;,a,v,y)):i.push(d(&quot;array&quot;,a,v,y));else i.push(d(&quot;schema&quot;,a,v))}}return i}function f(t,e){for(var r=t.layout.layoutAttributes,i=0;i&lt;e.length;i++){var a=e[i],o=t.traces[a.type],s=o.layoutAttributes;s&amp;&amp;(a.subplot?n.extendFlat(r[o.attributes.subplot.dflt],s):n.extendFlat(r,s))}return r}e.exports=function(t,e){void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e={});var r,c,h=a.get(),p=[],g={_context:n.extendFlat({},o)};l(t)?(g.data=n.extendDeep([],t),r=t):(g.data=[],r=[],p.push(d(&quot;array&quot;,&quot;data&quot;))),s(e)?(g.layout=n.extendDeep({},e),c=e):(g.layout={},c={},arguments.length&gt;1&amp;&amp;p.push(d(&quot;object&quot;,&quot;layout&quot;))),i.supplyDefaults(g);for(var m=g._fullData,v=r.length,y=0;y&lt;v;y++){var x=r[y],b=[&quot;data&quot;,y];if(s(x)){var _=m[y],w=_.type,T=h.traces[w].attributes;T.type={valType:&quot;enumerated&quot;,values:[w]},!1===_.visible&amp;&amp;!1!==x.visible&amp;&amp;p.push(d(&quot;invisible&quot;,b)),u(x,_,T,p,b);var k=x.transforms,M=_.transforms;if(k){l(k)||p.push(d(&quot;array&quot;,b,[&quot;transforms&quot;])),b.push(&quot;transforms&quot;);for(var A=0;A&lt;k.length;A++){var S=[&quot;transforms&quot;,A],E=k[A].type;if(s(k[A])){var C=h.transforms[E]?h.transforms[E].attributes:{};C.type={valType:&quot;enumerated&quot;,values:Object.keys(h.transforms)},u(k[A],M[A],C,p,b,S)}else p.push(d(&quot;object&quot;,b,S))}}}else p.push(d(&quot;object&quot;,b))}var L=g._fullLayout,I=f(h,m);return u(c,L,I,p,&quot;layout&quot;),0===p.length?void 0:p};var h={object:function(t,e){return(&quot;layout&quot;===t&amp;&amp;&quot;&quot;===e?&quot;The layout argument&quot;:&quot;data&quot;===t[0]&amp;&amp;&quot;&quot;===e?&quot;Trace &quot;+t[1]+&quot; in the data argument&quot;:p(t)+&quot;key &quot;+e)+&quot; must be linked to an object container&quot;},array:function(t,e){return(&quot;data&quot;===t?&quot;The data argument&quot;:p(t)+&quot;key &quot;+e)+&quot; must be linked to an array container&quot;},schema:function(t,e){return p(t)+&quot;key &quot;+e+&quot; is not part of the schema&quot;},unused:function(t,e,r){var n=s(r)?&quot;container&quot;:&quot;key&quot;;return p(t)+n+&quot; &quot;+e+&quot; did not get coerced&quot;},dynamic:function(t,e,r,n){return[p(t)+&quot;key&quot;,e,&quot;(set to '&quot;+r+&quot;')&quot;,&quot;got reset to&quot;,&quot;'&quot;+n+&quot;'&quot;,&quot;during defaults.&quot;].join(&quot; &quot;)},invisible:function(t,e){return(e?p(t)+&quot;item &quot;+e:&quot;Trace &quot;+t[1])+&quot; got defaulted to be not visible&quot;},value:function(t,e,r){return[p(t)+&quot;key &quot;+e,&quot;is set to an invalid value (&quot;+r+&quot;)&quot;].join(&quot; &quot;)}};function p(t){return l(t)?&quot;In data trace &quot;+t[1]+&quot;, &quot;:&quot;In &quot;+t+&quot;, &quot;}function d(t,e,r,i,a){var o,s;r=r||&quot;&quot;,l(e)?(o=e[0],s=e[1]):(o=e,s=null);var c=function(t){if(!l(t))return String(t);for(var e=&quot;&quot;,r=0;r&lt;t.length;r++){var n=t[r];&quot;number&quot;==typeof n?e=e.substr(0,e.length-1)+&quot;[&quot;+n+&quot;]&quot;:e+=n,r&lt;t.length-1&amp;&amp;(e+=&quot;.&quot;)}return e}(r),u=h[t](e,c,i,a);return n.log(u),{code:t,container:o,trace:s,path:r,astr:c,msg:u}}function g(t,e){var r=y(e),n=r.keyMinusId,i=r.id;return!!(n in t&amp;&amp;t[n]._isSubplotObj&amp;&amp;i)||e in t}function m(t,e){return e in t?t[e]:t[y(e).keyMinusId]}var v=n.counterRegex(&quot;([a-z]+)&quot;);function y(t){var e=t.match(v);return{keyMinusId:e&amp;&amp;e[1],id:e&amp;&amp;e[2]}}},{&quot;../lib&quot;:778,&quot;../plots/plots&quot;:891,&quot;./plot_config&quot;:815,&quot;./plot_schema&quot;:816}],822:[function(t,e,r){&quot;use strict&quot;;e.exports={mode:{valType:&quot;enumerated&quot;,dflt:&quot;afterall&quot;,values:[&quot;immediate&quot;,&quot;next&quot;,&quot;afterall&quot;]},direction:{valType:&quot;enumerated&quot;,values:[&quot;forward&quot;,&quot;reverse&quot;],dflt:&quot;forward&quot;},fromcurrent:{valType:&quot;boolean&quot;,dflt:!1},frame:{duration:{valType:&quot;number&quot;,min:0,dflt:500},redraw:{valType:&quot;boolean&quot;,dflt:!0}},transition:{duration:{valType:&quot;number&quot;,min:0,dflt:500,editType:&quot;none&quot;},easing:{valType:&quot;enumerated&quot;,dflt:&quot;cubic-in-out&quot;,values:[&quot;linear&quot;,&quot;quad&quot;,&quot;cubic&quot;,&quot;sin&quot;,&quot;exp&quot;,&quot;circle&quot;,&quot;elastic&quot;,&quot;back&quot;,&quot;bounce&quot;,&quot;linear-in&quot;,&quot;quad-in&quot;,&quot;cubic-in&quot;,&quot;sin-in&quot;,&quot;exp-in&quot;,&quot;circle-in&quot;,&quot;elastic-in&quot;,&quot;back-in&quot;,&quot;bounce-in&quot;,&quot;linear-out&quot;,&quot;quad-out&quot;,&quot;cubic-out&quot;,&quot;sin-out&quot;,&quot;exp-out&quot;,&quot;circle-out&quot;,&quot;elastic-out&quot;,&quot;back-out&quot;,&quot;bounce-out&quot;,&quot;linear-in-out&quot;,&quot;quad-in-out&quot;,&quot;cubic-in-out&quot;,&quot;sin-in-out&quot;,&quot;exp-in-out&quot;,&quot;circle-in-out&quot;,&quot;elastic-in-out&quot;,&quot;back-in-out&quot;,&quot;bounce-in-out&quot;],editType:&quot;none&quot;},ordering:{valType:&quot;enumerated&quot;,values:[&quot;layout first&quot;,&quot;traces first&quot;],dflt:&quot;layout first&quot;,editType:&quot;none&quot;}}}},{}],823:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_template&quot;);e.exports=function(t,e,r){var a,o,s=r.name,l=r.inclusionAttr||&quot;visible&quot;,c=e[s],u=n.isArrayOrTypedArray(t[s])?t[s]:[],f=e[s]=[],h=i.arrayTemplater(e,s,l);for(a=0;a&lt;u.length;a++){var p=u[a];n.isPlainObject(p)?o=h.newItem(p):(o=h.newItem({}))[l]=!1,o._index=a,!1!==o[l]&amp;&amp;r.handleItemDefaults(p,o,e,r),f.push(o)}var d=h.defaultItems();for(a=0;a&lt;d.length;a++)(o=d[a])._index=f.length,r.handleItemDefaults({},o,e,r,{}),f.push(o);if(n.isArrayOrTypedArray(c)){var g=Math.min(c.length,f.length);for(a=0;a&lt;g;a++)n.relinkPrivateKeys(f[a],c[a])}return f}},{&quot;../lib&quot;:778,&quot;../plot_api/plot_template&quot;:817}],824:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../components/fx/attributes&quot;);e.exports={type:{valType:&quot;enumerated&quot;,values:[],dflt:&quot;scatter&quot;,editType:&quot;calc+clearAxisTypes&quot;,_noTemplating:!0},visible:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;legendonly&quot;],dflt:!0,editType:&quot;calc&quot;},showlegend:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;style&quot;},legendgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;style&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;style&quot;},name:{valType:&quot;string&quot;,editType:&quot;style&quot;},uid:{valType:&quot;string&quot;,editType:&quot;plot&quot;,anim:!0},ids:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;,anim:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},meta:{valType:&quot;any&quot;,arrayOk:!0,editType:&quot;plot&quot;},selectedpoints:{valType:&quot;any&quot;,editType:&quot;calc&quot;},hoverinfo:{valType:&quot;flaglist&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;],extras:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],arrayOk:!0,dflt:&quot;all&quot;,editType:&quot;none&quot;},hoverlabel:n.hoverlabel,stream:{token:{valType:&quot;string&quot;,noBlank:!0,strict:!0,editType:&quot;calc&quot;},maxpoints:{valType:&quot;number&quot;,min:0,max:1e4,dflt:500,editType:&quot;calc&quot;},editType:&quot;calc&quot;},transforms:{_isLinkedToArray:&quot;transform&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;}}},{&quot;../components/fx/attributes&quot;:674}],825:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=i.dateTime2ms,o=i.incrementMonth,s=t(&quot;../../constants/numerical&quot;).ONEAVGMONTH;e.exports=function(t,e,r,i){if(&quot;date&quot;!==e.type)return i;var l=t[r+&quot;periodalignment&quot;];if(!l)return i;var c,u=t[r+&quot;period&quot;];if(n(u)){if((u=+u)&lt;=0)return i}else if(&quot;string&quot;==typeof u&amp;&amp;&quot;M&quot;===u.charAt(0)){var f=+u.substring(1);if(!(f&gt;0&amp;&amp;Math.round(f)===f))return i;c=f}for(var h=e.calendar,p=&quot;start&quot;===l,d=&quot;end&quot;===l,g=t[r+&quot;period0&quot;],m=a(g,h)||0,v=[],y=i.length,x=0;x&lt;y;x++){var b,_,w,T=i[x];if(c){for(b=Math.round((T-m)/(c*s)),w=o(m,c*b,h);w&gt;T;)w=o(w,-c,h);for(;w&lt;=T;)w=o(w,c,h);_=o(w,-c,h)}else{for(w=m+(b=Math.round((T-m)/u))*u;w&gt;T;)w-=u;for(;w&lt;=T;)w+=u;_=w-u}v[x]=p?_:d?w:(_+w)/2}return v}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],826:[function(t,e,r){&quot;use strict&quot;;e.exports={xaxis:{valType:&quot;subplotid&quot;,dflt:&quot;x&quot;,editType:&quot;calc+clearAxisTypes&quot;},yaxis:{valType:&quot;subplotid&quot;,dflt:&quot;y&quot;,editType:&quot;calc+clearAxisTypes&quot;}}},{}],827:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).FP_SAFE,o=t(&quot;../../registry&quot;),s=t(&quot;./axis_ids&quot;),l=s.getFromId,c=s.isLinked;function u(t,e){var r,n,a=[],o=t._fullLayout,s=h(o,e,0),l=h(o,e,1),c=p(t,e),u=c.min,d=c.max;if(0===u.length||0===d.length)return i.simpleMap(e.range,e.r2l);var g=u[0].val,m=d[0].val;for(r=1;r&lt;u.length&amp;&amp;g===m;r++)g=Math.min(g,u[r].val);for(r=1;r&lt;d.length&amp;&amp;g===m;r++)m=Math.max(m,d[r].val);var v=!1;if(e.range){var y=i.simpleMap(e.range,e.r2l);v=y[1]&lt;y[0]}&quot;reversed&quot;===e.autorange&amp;&amp;(v=!0,e.autorange=!0);var x,b,_,w,T,k,M=e.rangemode,A=&quot;tozero&quot;===M,S=&quot;nonnegative&quot;===M,E=e._length,C=E/10,L=0;for(r=0;r&lt;u.length;r++)for(x=u[r],n=0;n&lt;d.length;n++)(k=(b=d[n]).val-x.val-f(e,x.val,b.val))&gt;0&amp;&amp;((T=E-s(x)-l(b))&gt;C?k/T&gt;L&amp;&amp;(_=x,w=b,L=k/T):k/E&gt;L&amp;&amp;(_={val:x.val,nopad:1},w={val:b.val,nopad:1},L=k/E));if(g===m){var I=g-1,P=g+1;if(A)if(0===g)a=[0,1];else{var z=(g&gt;0?d:u).reduce((function(t,e){return Math.max(t,l(e))}),0),O=g/(1-Math.min(.5,z/E));a=g&gt;0?[0,O]:[O,0]}else a=S?[Math.max(0,I),Math.max(1,P)]:[I,P]}else A?(_.val&gt;=0&amp;&amp;(_={val:0,nopad:1}),w.val&lt;=0&amp;&amp;(w={val:0,nopad:1})):S&amp;&amp;(_.val-L*s(_)&lt;0&amp;&amp;(_={val:0,nopad:1}),w.val&lt;=0&amp;&amp;(w={val:1,nopad:1})),L=(w.val-_.val-f(e,x.val,b.val))/(E-s(_)-l(w)),a=[_.val-L*s(_),w.val+L*l(w)];return v&amp;&amp;a.reverse(),i.simpleMap(a,e.l2r||Number)}function f(t,e,r){var n=0;if(t.rangebreaks)for(var i=t.locateBreaks(e,r),a=0;a&lt;i.length;a++){var o=i[a];n+=o.max-o.min}return n}function h(t,e,r){var n=.05*e._length,a=e._anchorAxis||{};if(-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)||-1!==(a.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)){var o=&quot;reversed&quot;===e.autorange;if(!o){var s=i.simpleMap(e.range,e.r2l);o=s[1]&lt;s[0]}o&amp;&amp;(r=!r)}var l=0;return c(t,e._id)||(l=function(t,e){var r=0,n=t._anchorAxis||{};if(-1!==(n.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;(!e&amp;&amp;(&quot;left&quot;===n.side||&quot;bottom&quot;===n.side)||e&amp;&amp;(&quot;top&quot;===n.side||&quot;right&quot;===n.side))){var a=&quot;x&quot;===t._id.charAt(0);if(n._vals){var o=i.deg2rad(n._tickAngles[n._id+&quot;tick&quot;]||0),s=Math.abs(Math.cos(o)),l=Math.abs(Math.sin(o));n._vals.forEach((function(t){if(t.bb){var e=6+t.bb.width,n=6+t.bb.height;r=Math.max(r,a?Math.max(e*s,n*l):Math.max(n*s,e*l))}}))}&quot;inside&quot;===n.ticks&amp;&amp;&quot;inside&quot;===n.ticklabelposition&amp;&amp;(r+=n.ticklen||0)}return r}(e,r)),n=Math.max(l,n),&quot;domain&quot;===e.constrain&amp;&amp;e._inputDomain&amp;&amp;(n*=(e._inputDomain[1]-e._inputDomain[0])/(e.domain[1]-e.domain[0])),function(t){return t.nopad?0:t.pad+(t.extrapad?n:l)}}e.exports={getAutoRange:u,makePadFn:h,doAutoRange:function(t,e,r){if(e.setScale(),e.autorange){e.range=r?r.slice():u(t,e),e._r=e.range.slice(),e._rl=i.simpleMap(e._r,e.r2l);var n=e._input,a={};a[e._attr+&quot;.range&quot;]=e.range,a[e._attr+&quot;.autorange&quot;]=e.autorange,o.call(&quot;_storeDirectGUIEdit&quot;,t.layout,t._fullLayout._preGUI,a),n.range=e.range.slice(),n.autorange=e.autorange}var s=e._anchorAxis;if(s&amp;&amp;s.rangeslider){var l=s.rangeslider[e._name];l&amp;&amp;&quot;auto&quot;===l.rangemode&amp;&amp;(l.range=u(t,e)),s._input.rangeslider[e._name]=i.extendFlat({},l)}},findExtremes:function(t,e,r){r||(r={});t._m||t.setScale();var i,o,s,l,c,u,f,h,p,m=[],y=[],x=e.length,b=r.padded||!1,_=r.tozero&amp;&amp;(&quot;linear&quot;===t.type||&quot;-&quot;===t.type),w=&quot;log&quot;===t.type,T=!1,k=r.vpadLinearized||!1;function M(t){if(Array.isArray(t))return T=!0,function(e){return Math.max(Number(t[e]||0),0)};var e=Math.max(Number(t||0),0);return function(){return e}}var A=M((t._m&gt;0?r.ppadplus:r.ppadminus)||r.ppad||0),S=M((t._m&gt;0?r.ppadminus:r.ppadplus)||r.ppad||0),E=M(r.vpadplus||r.vpad),C=M(r.vpadminus||r.vpad);if(!T){if(h=1/0,p=-1/0,w)for(i=0;i&lt;x;i++)(o=e[i])&lt;h&amp;&amp;o&gt;0&amp;&amp;(h=o),o&gt;p&amp;&amp;o&lt;a&amp;&amp;(p=o);else for(i=0;i&lt;x;i++)(o=e[i])&lt;h&amp;&amp;o&gt;-a&amp;&amp;(h=o),o&gt;p&amp;&amp;o&lt;a&amp;&amp;(p=o);e=[h,p],x=2}var L={tozero:_,extrapad:b};function I(r){s=e[r],n(s)&amp;&amp;(u=A(r),f=S(r),k?(l=t.c2l(s)-C(r),c=t.c2l(s)+E(r)):(h=s-C(r),p=s+E(r),w&amp;&amp;h&lt;p/10&amp;&amp;(h=p/10),l=t.c2l(h),c=t.c2l(p)),_&amp;&amp;(l=Math.min(0,l),c=Math.max(0,c)),v(l)&amp;&amp;d(m,l,f,L),v(c)&amp;&amp;g(y,c,u,L))}var P=Math.min(6,x);for(i=0;i&lt;P;i++)I(i);for(i=x-1;i&gt;=P;i--)I(i);return{min:m,max:y,opts:r}},concatExtremes:p};function p(t,e,r){var n,i,a,o=e._id,s=t._fullData,c=t._fullLayout,u=[],f=[];function h(t,e){for(n=0;n&lt;e.length;n++){var r=t[e[n]],s=(r._extremes||{})[o];if(!0===r.visible&amp;&amp;s){for(i=0;i&lt;s.min.length;i++)a=s.min[i],d(u,a.val,a.pad,{extrapad:a.extrapad});for(i=0;i&lt;s.max.length;i++)a=s.max[i],g(f,a.val,a.pad,{extrapad:a.extrapad})}}}if(h(s,e._traceIndices),h(c.annotations||[],e._annIndices||[]),h(c.shapes||[],e._shapeIndices||[]),e._matchGroup&amp;&amp;!r)for(var m in e._matchGroup)if(m!==e._id){var v=l(t,m),y=p(t,v,!0),x=e._length/v._length;for(i=0;i&lt;y.min.length;i++)a=y.min[i],d(u,a.val,a.pad*x,{extrapad:a.extrapad});for(i=0;i&lt;y.max.length;i++)a=y.max[i],g(f,a.val,a.pad*x,{extrapad:a.extrapad})}return{min:u,max:f}}function d(t,e,r,n){m(t,e,r,n,y)}function g(t,e,r,n){m(t,e,r,n,x)}function m(t,e,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l&lt;t.length&amp;&amp;s;l++){var c=t[l];if(i(c.val,e)&amp;&amp;c.pad&gt;=r&amp;&amp;(c.extrapad||!o)){s=!1;break}i(e,c.val)&amp;&amp;c.pad&lt;=r&amp;&amp;(o||!c.extrapad)&amp;&amp;(t.splice(l,1),l--)}if(s){var u=a&amp;&amp;0===e;t.push({val:e,pad:u?0:r,extrapad:!u&amp;&amp;o})}}function v(t){return n(t)&amp;&amp;Math.abs(t)&lt;a}function y(t,e){return t&lt;=e}function x(t,e){return t&gt;=e}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./axis_ids&quot;:831,&quot;fast-isnumeric&quot;:241}],828:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/titles&quot;),f=t(&quot;../../components/color&quot;),h=t(&quot;../../components/drawing&quot;),p=t(&quot;./layout_attributes&quot;),d=t(&quot;./clean_ticks&quot;),g=t(&quot;../../constants/numerical&quot;),m=g.ONEMAXYEAR,v=g.ONEAVGYEAR,y=g.ONEMINYEAR,x=g.ONEMAXQUARTER,b=g.ONEAVGQUARTER,_=g.ONEMINQUARTER,w=g.ONEMAXMONTH,T=g.ONEAVGMONTH,k=g.ONEMINMONTH,M=g.ONEWEEK,A=g.ONEDAY,S=A/2,E=g.ONEHOUR,C=g.ONEMIN,L=g.ONESEC,I=g.MINUS_SIGN,P=g.BADNUM,z=t(&quot;../../constants/alignment&quot;),O=z.MID_SHIFT,D=z.CAP_SHIFT,R=z.LINE_SPACING,F=z.OPPOSITE_SIDE,B=e.exports={};B.setConvert=t(&quot;./set_convert&quot;);var N=t(&quot;./axis_autotype&quot;),j=t(&quot;./axis_ids&quot;),U=j.idSort,V=j.isLinked;B.id2name=j.id2name,B.name2id=j.name2id,B.cleanId=j.cleanId,B.list=j.list,B.listIds=j.listIds,B.getFromId=j.getFromId,B.getFromTrace=j.getFromTrace;var q=t(&quot;./autorange&quot;);B.getAutoRange=q.getAutoRange,B.findExtremes=q.findExtremes;function H(t){var e=1e-4*(t[1]-t[0]);return[t[0]-e,t[1]+e]}B.coerceRef=function(t,e,r,n,i,a){var o=n.charAt(n.length-1),l=r._fullLayout._subplots[o+&quot;axis&quot;],c=n+&quot;ref&quot;,u={};return i||(i=l[0]||(&quot;string&quot;==typeof a?a:a[0])),a||(a=i),l=l.concat(l.map((function(t){return t+&quot; domain&quot;}))),u[c]={valType:&quot;enumerated&quot;,values:l.concat(a?&quot;string&quot;==typeof a?[a]:a:[]),dflt:i},s.coerce(t,e,u,c)},B.getRefType=function(t){return void 0===t?t:&quot;paper&quot;===t?&quot;paper&quot;:&quot;pixel&quot;===t?&quot;pixel&quot;:/( domain)$/.test(t)?&quot;domain&quot;:&quot;range&quot;},B.coercePosition=function(t,e,r,n,i,a){var o,l;if(&quot;range&quot;!==B.getRefType(n))o=s.ensureNumber,l=r(i,a);else{var c=B.getFromId(e,n);l=r(i,a=c.fraction2r(a)),o=c.cleanPos}t[i]=o(l)},B.cleanPosition=function(t,e,r){return(&quot;paper&quot;===r||&quot;pixel&quot;===r?s.ensureNumber:B.getFromId(e,r).cleanPos)(t)},B.redrawComponents=function(t,e){e=e||B.listIds(t);var r=t._fullLayout;function n(n,i,a,s){for(var l=o.getComponentMethod(n,i),c={},u=0;u&lt;e.length;u++)for(var f=r[B.id2name(e[u])][a],h=0;h&lt;f.length;h++){var p=f[h];if(!c[p]&amp;&amp;(l(t,p),c[p]=1,s))return}}n(&quot;annotations&quot;,&quot;drawOne&quot;,&quot;_annIndices&quot;),n(&quot;shapes&quot;,&quot;drawOne&quot;,&quot;_shapeIndices&quot;),n(&quot;images&quot;,&quot;draw&quot;,&quot;_imgIndices&quot;,!0)};var G=B.getDataConversions=function(t,e,r,n){var i,a=&quot;x&quot;===r||&quot;y&quot;===r||&quot;z&quot;===r?r:n;if(Array.isArray(a)){if(i={type:N(n,void 0,{autotypenumbers:t._fullLayout.autotypenumbers}),_categories:[]},B.setConvert(i),&quot;category&quot;===i.type)for(var o=0;o&lt;n.length;o++)i.d2c(n[o])}else i=B.getFromTrace(t,e,a);return i?{d2c:i.d2c,c2d:i.c2d}:&quot;ids&quot;===a?{d2c:W,c2d:W}:{d2c:Y,c2d:Y}};function Y(t){return+t}function W(t){return String(t)}function X(t){return+t.substring(1)}B.getDataToCoordFunc=function(t,e,r,n){return G(t,e,r,n).d2c},B.counterLetter=function(t){var e=t.charAt(0);return&quot;x&quot;===e?&quot;y&quot;:&quot;y&quot;===e?&quot;x&quot;:void 0},B.minDtick=function(t,e,r,n){-1===[&quot;log&quot;,&quot;category&quot;,&quot;multicategory&quot;].indexOf(t.type)&amp;&amp;n?void 0===t._minDtick?(t._minDtick=e,t._forceTick0=r):t._minDtick&amp;&amp;((t._minDtick/e+1e-6)%1&lt;2e-6&amp;&amp;((r-t._forceTick0)/e%1+1.000001)%1&lt;2e-6?(t._minDtick=e,t._forceTick0=r):((e/t._minDtick+1e-6)%1&gt;2e-6||((r-t._forceTick0)/t._minDtick%1+1.000001)%1&gt;2e-6)&amp;&amp;(t._minDtick=0)):t._minDtick=0},B.saveRangeInitial=function(t,e){for(var r=B.list(t,&quot;&quot;,!0),n=!1,i=0;i&lt;r.length;i++){var a=r[i],o=void 0===a._rangeInitial,s=o||!(a.range[0]===a._rangeInitial[0]&amp;&amp;a.range[1]===a._rangeInitial[1]);(o&amp;&amp;!1===a.autorange||e&amp;&amp;s)&amp;&amp;(a._rangeInitial=a.range.slice(),n=!0)}return n},B.saveShowSpikeInitial=function(t,e){for(var r=B.list(t,&quot;&quot;,!0),n=!1,i=&quot;on&quot;,a=0;a&lt;r.length;a++){var o=r[a],s=void 0===o._showSpikeInitial,l=s||!(o.showspikes===o._showspikes);(s||e&amp;&amp;l)&amp;&amp;(o._showSpikeInitial=o.showspikes,n=!0),&quot;on&quot;!==i||o.showspikes||(i=&quot;off&quot;)}return t._fullLayout._cartesianSpikesEnabled=i,n},B.autoBin=function(t,e,r,n,a,o){var l,c=s.aggNums(Math.min,null,t),u=s.aggNums(Math.max,null,t);if(&quot;category&quot;===e.type||&quot;multicategory&quot;===e.type)return{start:c-.5,end:u+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:u-c};if(a||(a=e.calendar),l=&quot;log&quot;===e.type?{type:&quot;linear&quot;,range:[c,u]}:{type:e.type,range:s.simpleMap([c,u],e.c2r,0,a),calendar:a},B.setConvert(l),o=o&amp;&amp;d.dtick(o,l.type))l.dtick=o,l.tick0=d.tick0(void 0,l.type,a);else{var f;if(r)f=(u-c)/r;else{var h=s.distinctVals(t),p=Math.pow(10,Math.floor(Math.log(h.minDiff)/Math.LN10)),g=p*s.roundUp(h.minDiff/p,[.9,1.9,4.9,9.9],!0);f=Math.max(g,2*s.stdev(t)/Math.pow(t.length,n?.25:.4)),i(f)||(f=1)}B.autoTicks(l,f)}var m,v=l.dtick,y=B.tickIncrement(B.tickFirst(l),v,&quot;reverse&quot;,a);if(&quot;number&quot;==typeof v)m=(y=function(t,e,r,n,a){var o=0,s=0,l=0,c=0;function u(e){return(1+100*(e-t)/r.dtick)%100&lt;2}for(var f=0;f&lt;e.length;f++)e[f]%1==0?l++:i(e[f])||c++,u(e[f])&amp;&amp;o++,u(e[f]+r.dtick/2)&amp;&amp;s++;var h=e.length-c;if(l===h&amp;&amp;&quot;date&quot;!==r.type)r.dtick&lt;1?t=n-.5*r.dtick:(t-=.5)+r.dtick&lt;n&amp;&amp;(t+=r.dtick);else if(s&lt;.1*h&amp;&amp;(o&gt;.3*h||u(n)||u(a))){var p=r.dtick/2;t+=t+p&lt;n?p:-p}return t}(y,t,l,c,u))+(1+Math.floor((u-y)/v))*v;else for(&quot;M&quot;===l.dtick.charAt(0)&amp;&amp;(y=function(t,e,r,n,i){var a=s.findExactDates(e,i);if(a.exactDays&gt;.8){var o=Number(r.substr(1));a.exactYears&gt;.8&amp;&amp;o%12==0?t=B.tickIncrement(t,&quot;M6&quot;,&quot;reverse&quot;)+1.5*A:a.exactMonths&gt;.8?t=B.tickIncrement(t,&quot;M1&quot;,&quot;reverse&quot;)+15.5*A:t-=S;var l=B.tickIncrement(t,r);if(l&lt;=n)return l}return t}(y,t,v,c,a)),m=y,0;m&lt;=u;)m=B.tickIncrement(m,v,!1,a);return{start:e.c2r(y,0,a),end:e.c2r(m,0,a),size:v,_dataSpan:u-c}},B.prepTicks=function(t,e){var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if(t._dtickInit=t.dtick,t._tick0Init=t.tick0,&quot;auto&quot;===t.tickmode||!t.dtick){var n,a=t.nticks;a||(&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?(n=t.tickfont?1.2*(t.tickfont.size||12):15,a=t._length/n):(n=&quot;y&quot;===t._id.charAt(0)?40:80,a=s.constrain(t._length/n,4,9)+1),&quot;radialaxis&quot;===t._name&amp;&amp;(a*=2)),&quot;array&quot;===t.tickmode&amp;&amp;(a*=100),t._roughDTick=Math.abs(r[1]-r[0])/a,B.autoTicks(t,t._roughDTick),t._minDtick&gt;0&amp;&amp;t.dtick&lt;2*t._minDtick&amp;&amp;(t.dtick=t._minDtick,t.tick0=t.l2r(t._forceTick0))}&quot;period&quot;===t.ticklabelmode&amp;&amp;function(t){var e;function r(){return!(i(t.dtick)||&quot;M&quot;!==t.dtick.charAt(0))}var n=r(),a=B.getTickFormat(t);if(a){var o=t._dtickInit!==t.dtick;/%[fLQsSMX]/.test(a)||(/%[HI]/.test(a)?(e=E,o&amp;&amp;!n&amp;&amp;t.dtick&lt;E&amp;&amp;(t.dtick=E)):/%p/.test(a)?(e=S,o&amp;&amp;!n&amp;&amp;t.dtick&lt;S&amp;&amp;(t.dtick=S)):/%[Aadejuwx]/.test(a)?(e=A,o&amp;&amp;!n&amp;&amp;t.dtick&lt;A&amp;&amp;(t.dtick=A)):/%[UVW]/.test(a)?(e=M,o&amp;&amp;!n&amp;&amp;t.dtick&lt;M&amp;&amp;(t.dtick=M)):/%[Bbm]/.test(a)?(e=T,o&amp;&amp;(n?X(t.dtick)&lt;1:t.dtick&lt;k)&amp;&amp;(t.dtick=&quot;M1&quot;)):/%[q]/.test(a)?(e=b,o&amp;&amp;(n?X(t.dtick)&lt;3:t.dtick&lt;_)&amp;&amp;(t.dtick=&quot;M3&quot;)):/%[Yy]/.test(a)&amp;&amp;(e=v,o&amp;&amp;(n?X(t.dtick)&lt;12:t.dtick&lt;y)&amp;&amp;(t.dtick=&quot;M12&quot;)))}(n=r())&amp;&amp;t.tick0===t._dowTick0&amp;&amp;(t.tick0=t._rawTick0);t._definedDelta=e}(t),t.tick0||(t.tick0=&quot;date&quot;===t.type?&quot;2000-01-01&quot;:0),&quot;date&quot;===t.type&amp;&amp;t.dtick&lt;.1&amp;&amp;(t.dtick=.1),nt(t)},B.calcTicks=function(t,e){B.prepTicks(t,e);var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if(&quot;array&quot;===t.tickmode)return function(t){var e=t.tickvals,r=t.ticktext,n=new Array(e.length),i=H(s.simpleMap(t.range,t.r2l)),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]),l=0;Array.isArray(r)||(r=[]);var c=&quot;category&quot;===t.type?t.d2l_noadd:t.d2l;&quot;log&quot;===t.type&amp;&amp;&quot;L&quot;!==String(t.dtick).charAt(0)&amp;&amp;(t.dtick=&quot;L&quot;+Math.pow(10,Math.floor(Math.min(t.range[0],t.range[1]))-1));for(var u=0;u&lt;e.length;u++){var f=c(e[u]);f&gt;a&amp;&amp;f&lt;o&amp;&amp;(void 0===r[u]?n[l]=B.tickText(t,f):n[l]=it(t,f,String(r[u])),l++)}l&lt;e.length&amp;&amp;n.splice(l,e.length-l);t.rangebreaks&amp;&amp;(n=n.filter((function(e){return t.maskBreaks(e.x)!==P})));return n}(t);var n=H(r),a=n[0],o=n[1],l=r[1]&lt;r[0],c=Math.min(r[0],r[1]),u=Math.max(r[0],r[1]),f=&quot;log&quot;===t.type&amp;&amp;!(i(t.dtick)||&quot;L&quot;===t.dtick.charAt(0)),h=&quot;period&quot;===t.ticklabelmode;if(t._tmin=B.tickFirst(t,e),t._tmin&lt;a!==l)return[];&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(o=l?Math.max(-.5,o):Math.min(t._categories.length-.5,o));var p=t._tmin;t.rangebreaks&amp;&amp;t._tick0Init!==t.tick0&amp;&amp;(p=wt(p,t),l||(p=B.tickIncrement(p,t.dtick,!l,t.calendar))),h&amp;&amp;(p=B.tickIncrement(p,t.dtick,!l,t.calendar));for(var d,g=Math.max(1e3,t._length||0),C=[],L=null;l?p&gt;=o:p&lt;=o;p=B.tickIncrement(p,t.dtick,l,t.calendar)){if(t.rangebreaks&amp;&amp;!l){if(p&lt;a)continue;if(t.maskBreaks(p)===P&amp;&amp;wt(p,t)&gt;=u)break}if(C.length&gt;g||p===L)break;L=p;var I=!1;f&amp;&amp;p!==(0|p)&amp;&amp;(I=!0),C.push({minor:I,value:p})}if(h&amp;&amp;function(t,e,r){for(var n=0;n&lt;t.length;n++){var i=t[n].value,a=n,o=n+1;n&lt;t.length-1?(a=n,o=n+1):n&gt;0?(a=n-1,o=n):(a=n,o=n);var s,l=t[a].value,c=t[o].value,u=Math.abs(c-l),f=r||u,h=0;f&gt;=y?h=u&gt;=y&amp;&amp;u&lt;=m?u:v:r===b&amp;&amp;f&gt;=_?h=u&gt;=_&amp;&amp;u&lt;=x?u:b:f&gt;=k?h=u&gt;=k&amp;&amp;u&lt;=w?u:T:r===M&amp;&amp;f&gt;=M?h=M:f&gt;=A?h=A:r===S&amp;&amp;f&gt;=S?h=S:r===E&amp;&amp;f&gt;=E&amp;&amp;(h=E),h&gt;=u&amp;&amp;(h=u,s=!0);var p=i+h;if(e.rangebreaks&amp;&amp;h&gt;0){for(var d=0,g=0;g&lt;84;g++){var C=(g+.5)/84;e.maskBreaks(i*(1-C)+C*p)!==P&amp;&amp;d++}(h*=d/84)||(t[n].drop=!0),s&amp;&amp;u&gt;M&amp;&amp;(h=u)}(h&gt;0||0===n)&amp;&amp;(t[n].periodX=i+h/2)}}(C,t,t._definedDelta),t.rangebreaks){var z=&quot;y&quot;===t._id.charAt(0),O=1;&quot;auto&quot;===t.tickmode&amp;&amp;(O=t.tickfont?t.tickfont.size:12);var D=NaN;for(d=C.length-1;d&gt;-1;d--)if(C[d].drop)C.splice(d,1);else{C[d].value=wt(C[d].value,t);var R=t.c2p(C[d].value);(z?D&gt;R-O:D&lt;R+O)?C.splice(l?d+1:d,1):D=R}}_t(t)&amp;&amp;360===Math.abs(r[1]-r[0])&amp;&amp;C.pop(),t._tmax=(C[C.length-1]||{}).value,t._prevDateHead=&quot;&quot;,t._inCalcTicks=!0;var F,N,j=[];for(d=0;d&lt;C.length;d++){var U=C[d].minor,V=C[d].value;F=B.tickText(t,V,!1,U),void 0!==(N=C[d].periodX)&amp;&amp;(F.periodX=N,(N&gt;u||N&lt;c)&amp;&amp;(N&gt;u&amp;&amp;(F.periodX=u),N&lt;c&amp;&amp;(F.periodX=c),F.text=&quot; &quot;,t._prevDateHead=&quot;&quot;)),j.push(F)}return t._inCalcTicks=!1,j};var Z=[2,5,10],J=[1,2,3,6,12],K=[1,2,5,10,15,30],Q=[1,2,3,7,14],$=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],tt=[-.301,0,.301,.699,1],et=[15,30,45,90,180];function rt(t,e,r){return e*s.roundUp(t/e,r)}function nt(t){var e=t.dtick;if(t._tickexponent=0,i(e)||&quot;string&quot;==typeof e||(e=1),&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(t._tickround=null),&quot;date&quot;===t.type){var r=t.r2l(t.tick0),n=t.l2r(r).replace(/(^-|i)/g,&quot;&quot;),a=n.length;if(&quot;M&quot;===String(e).charAt(0))a&gt;10||&quot;01-01&quot;!==n.substr(5)?t._tickround=&quot;d&quot;:t._tickround=+e.substr(1)%12==0?&quot;y&quot;:&quot;m&quot;;else if(e&gt;=A&amp;&amp;a&lt;=10||e&gt;=15*A)t._tickround=&quot;d&quot;;else if(e&gt;=C&amp;&amp;a&lt;=16||e&gt;=E)t._tickround=&quot;M&quot;;else if(e&gt;=L&amp;&amp;a&lt;=19||e&gt;=C)t._tickround=&quot;S&quot;;else{var o=t.l2r(r+e).replace(/^-/,&quot;&quot;).length;t._tickround=Math.max(a,o)-20,t._tickround&lt;0&amp;&amp;(t._tickround=4)}}else if(i(e)||&quot;L&quot;===e.charAt(0)){var s=t.range.map(t.r2d||Number);i(e)||(e=Number(e.substr(1))),t._tickround=2-Math.floor(Math.log(e)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),c=Math.floor(Math.log(l)/Math.LN10+.01),u=void 0===t.minexponent?3:t.minexponent;Math.abs(c)&gt;u&amp;&amp;(ot(t.exponentformat)&amp;&amp;!st(c)?t._tickexponent=3*Math.round((c-1)/3):t._tickexponent=c)}else t._tickround=null}function it(t,e,r){var n=t.tickfont||{};return{x:e,dx:0,dy:0,text:r||&quot;&quot;,fontSize:n.size,font:n.family,fontColor:n.color}}B.autoTicks=function(t,e){var r;function n(t){return Math.pow(t,Math.floor(Math.log(e)/Math.LN10))}if(&quot;date&quot;===t.type){t.tick0=s.dateTick0(t.calendar,0);var a=2*e;if(a&gt;v)e/=v,r=n(10),t.dtick=&quot;M&quot;+12*rt(e,r,Z);else if(a&gt;T)e/=T,t.dtick=&quot;M&quot;+rt(e,1,J);else if(a&gt;A){t.dtick=rt(e,A,t._hasDayOfWeekBreaks?[1,2,7,14]:Q);var o=B.getTickFormat(t),l=&quot;period&quot;===t.ticklabelmode;l&amp;&amp;(t._rawTick0=t.tick0),/%[uVW]/.test(o)?t.tick0=s.dateTick0(t.calendar,2):t.tick0=s.dateTick0(t.calendar,1),l&amp;&amp;(t._dowTick0=t.tick0)}else a&gt;E?t.dtick=rt(e,E,J):a&gt;C?t.dtick=rt(e,C,K):a&gt;L?t.dtick=rt(e,L,K):(r=n(10),t.dtick=rt(e,r,Z))}else if(&quot;log&quot;===t.type){t.tick0=0;var c=s.simpleMap(t.range,t.r2l);if(e&gt;.7)t.dtick=Math.ceil(e);else if(Math.abs(c[1]-c[0])&lt;1){var u=1.5*Math.abs((c[1]-c[0])/e);e=Math.abs(Math.pow(10,c[1])-Math.pow(10,c[0]))/u,r=n(10),t.dtick=&quot;L&quot;+rt(e,r,Z)}else t.dtick=e&gt;.3?&quot;D2&quot;:&quot;D1&quot;}else&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?(t.tick0=0,t.dtick=Math.ceil(Math.max(e,1))):_t(t)?(t.tick0=0,r=1,t.dtick=rt(e,r,et)):(t.tick0=0,r=n(10),t.dtick=rt(e,r,Z));if(0===t.dtick&amp;&amp;(t.dtick=1),!i(t.dtick)&amp;&amp;&quot;string&quot;!=typeof t.dtick){var f=t.dtick;throw t.dtick=1,&quot;ax.dtick error: &quot;+String(f)}},B.tickIncrement=function(t,e,r,a){var o=r?-1:1;if(i(e))return s.increment(t,o*e);var l=e.charAt(0),c=o*Number(e.substr(1));if(&quot;M&quot;===l)return s.incrementMonth(t,c,a);if(&quot;L&quot;===l)return Math.log(Math.pow(10,t)+c)/Math.LN10;if(&quot;D&quot;===l){var u=&quot;D2&quot;===e?tt:$,f=t+.01*o,h=s.roundUp(s.mod(f,1),u,r);return Math.floor(f)+Math.log(n.round(Math.pow(10,h),1))/Math.LN10}throw&quot;unrecognized dtick &quot;+String(e)},B.tickFirst=function(t,e){var r=t.r2l||Number,a=s.simpleMap(t.range,r,void 0,void 0,e),o=a[1]&lt;a[0],l=o?Math.floor:Math.ceil,c=H(a)[0],u=t.dtick,f=r(t.tick0);if(i(u)){var h=l((c-f)/u)*u+f;return&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(h=s.constrain(h,0,t._categories.length-1)),h}var p=u.charAt(0),d=Number(u.substr(1));if(&quot;M&quot;===p){for(var g,m,v,y=0,x=f;y&lt;10;){if(((g=B.tickIncrement(x,u,o,t.calendar))-c)*(x-c)&lt;=0)return o?Math.min(x,g):Math.max(x,g);m=(c-(x+g)/2)/(g-x),v=p+(Math.abs(Math.round(m))||1)*d,x=B.tickIncrement(x,v,m&lt;0?!o:o,t.calendar),y++}return s.error(&quot;tickFirst did not converge&quot;,t),x}if(&quot;L&quot;===p)return Math.log(l((Math.pow(10,c)-f)/d)*d+f)/Math.LN10;if(&quot;D&quot;===p){var b=&quot;D2&quot;===u?tt:$,_=s.roundUp(s.mod(c,1),b,o);return Math.floor(c)+Math.log(n.round(Math.pow(10,_),1))/Math.LN10}throw&quot;unrecognized dtick &quot;+String(u)},B.tickText=function(t,e,r,n){var a,o=it(t,e),l=&quot;array&quot;===t.tickmode,c=r||l,u=t.type,f=&quot;category&quot;===u?t.d2l_noadd:t.d2l;if(l&amp;&amp;Array.isArray(t.ticktext)){var h=s.simpleMap(t.range,t.r2l),p=(Math.abs(h[1]-h[0])-(t._lBreaks||0))/1e4;for(a=0;a&lt;t.ticktext.length&amp;&amp;!(Math.abs(e-f(t.tickvals[a]))&lt;p);a++);if(a&lt;t.ticktext.length)return o.text=String(t.ticktext[a]),o}function d(n){if(void 0===n)return!0;if(r)return&quot;none&quot;===n;var i={first:t._tmin,last:t._tmax}[n];return&quot;all&quot;!==n&amp;&amp;e!==i}var g=r?&quot;never&quot;:&quot;none&quot;!==t.exponentformat&amp;&amp;d(t.showexponent)?&quot;hide&quot;:&quot;&quot;;if(&quot;date&quot;===u?function(t,e,r,n){var a=t._tickround,o=r&amp;&amp;t.hoverformat||B.getTickFormat(t);n&amp;&amp;(a=i(a)?4:{y:&quot;m&quot;,m:&quot;d&quot;,d:&quot;M&quot;,M:&quot;S&quot;,S:4}[a]);var l,c=s.formatDate(e.x,o,a,t._dateFormat,t.calendar,t._extraFormat),u=c.indexOf(&quot;\n&quot;);-1!==u&amp;&amp;(l=c.substr(u+1),c=c.substr(0,u));n&amp;&amp;(&quot;00:00:00&quot;===c||&quot;00:00&quot;===c?(c=l,l=&quot;&quot;):8===c.length&amp;&amp;(c=c.replace(/:00$/,&quot;&quot;)));if(l)if(r)&quot;d&quot;===a?c+=&quot;, &quot;+l:c=l+(c?&quot;, &quot;+c:&quot;&quot;);else if(t._inCalcTicks&amp;&amp;t._prevDateHead===l){var f=-1!==(t.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;),h=t._realSide||t.side;(!f&amp;&amp;&quot;top&quot;===h||f&amp;&amp;&quot;bottom&quot;===h)&amp;&amp;(c+=&quot;&lt;br&gt; &quot;)}else t._prevDateHead=l,c+=&quot;&lt;br&gt;&quot;+l;e.text=c}(t,o,r,c):&quot;log&quot;===u?function(t,e,r,n,a){var o=t.dtick,l=e.x,c=t.tickformat,u=&quot;string&quot;==typeof o&amp;&amp;o.charAt(0);&quot;never&quot;===a&amp;&amp;(a=&quot;&quot;);n&amp;&amp;&quot;L&quot;!==u&amp;&amp;(o=&quot;L3&quot;,u=&quot;L&quot;);if(c||&quot;L&quot;===u)e.text=lt(Math.pow(10,l),t,a,n);else if(i(o)||&quot;D&quot;===u&amp;&amp;s.mod(l+.01,1)&lt;.1){var f=Math.round(l),h=Math.abs(f),p=t.exponentformat;&quot;power&quot;===p||ot(p)&amp;&amp;st(f)?(e.text=0===f?1:1===f?&quot;10&quot;:&quot;10&lt;sup&gt;&quot;+(f&gt;1?&quot;&quot;:I)+h+&quot;&lt;/sup&gt;&quot;,e.fontSize*=1.25):(&quot;e&quot;===p||&quot;E&quot;===p)&amp;&amp;h&gt;2?e.text=&quot;1&quot;+p+(f&gt;0?&quot;+&quot;:I)+h:(e.text=lt(Math.pow(10,l),t,&quot;&quot;,&quot;fakehover&quot;),&quot;D1&quot;===o&amp;&amp;&quot;y&quot;===t._id.charAt(0)&amp;&amp;(e.dy-=e.fontSize/6))}else{if(&quot;D&quot;!==u)throw&quot;unrecognized dtick &quot;+String(o);e.text=String(Math.round(Math.pow(10,s.mod(l,1)))),e.fontSize*=.75}if(&quot;D1&quot;===t.dtick){var d=String(e.text).charAt(0);&quot;0&quot;!==d&amp;&amp;&quot;1&quot;!==d||(&quot;y&quot;===t._id.charAt(0)?e.dx-=e.fontSize/4:(e.dy+=e.fontSize/2,e.dx+=(t.range[1]&gt;t.range[0]?1:-1)*e.fontSize*(l&lt;0?.5:.25)))}}(t,o,0,c,g):&quot;category&quot;===u?function(t,e){var r=t._categories[Math.round(e.x)];void 0===r&amp;&amp;(r=&quot;&quot;);e.text=String(r)}(t,o):&quot;multicategory&quot;===u?function(t,e,r){var n=Math.round(e.x),i=t._categories[n]||[],a=void 0===i[1]?&quot;&quot;:String(i[1]),o=void 0===i[0]?&quot;&quot;:String(i[0]);r?e.text=o+&quot; - &quot;+a:(e.text=a,e.text2=o)}(t,o,r):_t(t)?function(t,e,r,n,i){if(&quot;radians&quot;!==t.thetaunit||r)e.text=lt(e.x,t,i,n);else{var a=e.x/180;if(0===a)e.text=&quot;0&quot;;else{var o=function(t){function e(t,e){return Math.abs(t-e)&lt;=1e-6}var r=function(t){for(var r=1;!e(Math.round(t*r)/r,t);)r*=10;return r}(t),n=t*r,i=Math.abs(function t(r,n){return e(n,0)?r:t(n,r%n)}(n,r));return[Math.round(n/i),Math.round(r/i)]}(a);if(o[1]&gt;=100)e.text=lt(s.deg2rad(e.x),t,i,n);else{var l=e.x&lt;0;1===o[1]?1===o[0]?e.text=&quot;\u03c0&quot;:e.text=o[0]+&quot;\u03c0&quot;:e.text=[&quot;&lt;sup&gt;&quot;,o[0],&quot;&lt;/sup&gt;&quot;,&quot;\u2044&quot;,&quot;&lt;sub&gt;&quot;,o[1],&quot;&lt;/sub&gt;&quot;,&quot;\u03c0&quot;].join(&quot;&quot;),l&amp;&amp;(e.text=I+e.text)}}}}(t,o,r,c,g):function(t,e,r,n,i){&quot;never&quot;===i?i=&quot;&quot;:&quot;all&quot;===t.showexponent&amp;&amp;Math.abs(e.x/t.dtick)&lt;1e-6&amp;&amp;(i=&quot;hide&quot;);e.text=lt(e.x,t,i,n)}(t,o,0,c,g),n||(t.tickprefix&amp;&amp;!d(t.showtickprefix)&amp;&amp;(o.text=t.tickprefix+o.text),t.ticksuffix&amp;&amp;!d(t.showticksuffix)&amp;&amp;(o.text+=t.ticksuffix)),&quot;boundaries&quot;===t.tickson||t.showdividers){var m=function(e){var r=t.l2p(e);return r&gt;=0&amp;&amp;r&lt;=t._length?e:null};o.xbnd=[m(o.x-.5),m(o.x+t.dtick-.5)]}return o},B.hoverLabelText=function(t,e,r){if(r!==P&amp;&amp;r!==e)return B.hoverLabelText(t,e)+&quot; - &quot;+B.hoverLabelText(t,r);var n=&quot;log&quot;===t.type&amp;&amp;e&lt;=0,i=B.tickText(t,t.c2l(n?-e:e),&quot;hover&quot;).text;return n?0===e?&quot;0&quot;:I+i:i};var at=[&quot;f&quot;,&quot;p&quot;,&quot;n&quot;,&quot;\u03bc&quot;,&quot;m&quot;,&quot;&quot;,&quot;k&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;];function ot(t){return&quot;SI&quot;===t||&quot;B&quot;===t}function st(t){return t&gt;14||t&lt;-15}function lt(t,e,r,n){var a=t&lt;0,o=e._tickround,l=r||e.exponentformat||&quot;B&quot;,c=e._tickexponent,u=B.getTickFormat(e),f=e.separatethousands;if(n){var h={exponentformat:l,minexponent:e.minexponent,dtick:&quot;none&quot;===e.showexponent?e.dtick:i(t)&amp;&amp;Math.abs(t)||1,range:&quot;none&quot;===e.showexponent?e.range.map(e.r2d):[0,t||1]};nt(h),o=(Number(h._tickround)||0)+4,c=h._tickexponent,e.hoverformat&amp;&amp;(u=e.hoverformat)}if(u)return e._numFormat(u)(t).replace(/-/g,I);var p,d=Math.pow(10,-o)/2;if(&quot;none&quot;===l&amp;&amp;(c=0),(t=Math.abs(t))&lt;d)t=&quot;0&quot;,a=!1;else{if(t+=d,c&amp;&amp;(t*=Math.pow(10,-c),o+=c),0===o)t=String(Math.floor(t));else if(o&lt;0){t=(t=String(Math.round(t))).substr(0,t.length+o);for(var g=o;g&lt;0;g++)t+=&quot;0&quot;}else{var m=(t=String(t)).indexOf(&quot;.&quot;)+1;m&amp;&amp;(t=t.substr(0,m+o).replace(/\.?0+$/,&quot;&quot;))}t=s.numSeparate(t,e._separators,f)}c&amp;&amp;&quot;hide&quot;!==l&amp;&amp;(ot(l)&amp;&amp;st(c)&amp;&amp;(l=&quot;power&quot;),p=c&lt;0?I+-c:&quot;power&quot;!==l?&quot;+&quot;+c:String(c),&quot;e&quot;===l||&quot;E&quot;===l?t+=l+p:&quot;power&quot;===l?t+=&quot;\xd710&lt;sup&gt;&quot;+p+&quot;&lt;/sup&gt;&quot;:&quot;B&quot;===l&amp;&amp;9===c?t+=&quot;B&quot;:ot(l)&amp;&amp;(t+=at[c/3+5]));return a?I+t:t}function ct(t,e){for(var r=[],n={},i=0;i&lt;e.length;i++){var a=e[i];n[a.text2]?n[a.text2].push(a.x):n[a.text2]=[a.x]}for(var o in n)r.push(it(t,s.interp(n[o],.5),o));return r}function ut(t){return void 0!==t.periodX?t.periodX:t.x}function ft(t){return[t.text,t.x,t.axInfo,t.font,t.fontSize,t.fontColor].join(&quot;_&quot;)}function ht(t){var e=t.title.font.size,r=(t.title.text.match(c.BR_TAG_ALL)||[]).length;return t.title.hasOwnProperty(&quot;standoff&quot;)?r?e*(D+r*R):e*D:r?e*(r+1)*R:e}function pt(t,e){var r=t.l2p(e);return r&gt;1&amp;&amp;r&lt;t._length-1}function dt(t){var e=n.select(t),r=e.select(&quot;.text-math-group&quot;);return r.empty()?e.select(&quot;text&quot;):r}function gt(t){return t._id+&quot;.automargin&quot;}function mt(t){return gt(t)+&quot;.mirror&quot;}function vt(t){return t._id+&quot;.rangeslider&quot;}function yt(t,e){for(var r=0;r&lt;e.length;r++)-1===t.indexOf(e[r])&amp;&amp;t.push(e[r])}function xt(t,e,r){var n,i,a=[],o=[],l=t.layout;for(n=0;n&lt;e.length;n++)a.push(B.getFromId(t,e[n]));for(n=0;n&lt;r.length;n++)o.push(B.getFromId(t,r[n]));var c=Object.keys(p),u=[&quot;anchor&quot;,&quot;domain&quot;,&quot;overlaying&quot;,&quot;position&quot;,&quot;side&quot;,&quot;tickangle&quot;,&quot;editType&quot;],f=[&quot;linear&quot;,&quot;log&quot;];for(n=0;n&lt;c.length;n++){var h=c[n],d=a[0][h],g=o[0][h],m=!0,v=!1,y=!1;if(&quot;_&quot;!==h.charAt(0)&amp;&amp;&quot;function&quot;!=typeof d&amp;&amp;-1===u.indexOf(h)){for(i=1;i&lt;a.length&amp;&amp;m;i++){var x=a[i][h];&quot;type&quot;===h&amp;&amp;-1!==f.indexOf(d)&amp;&amp;-1!==f.indexOf(x)&amp;&amp;d!==x?v=!0:x!==d&amp;&amp;(m=!1)}for(i=1;i&lt;o.length&amp;&amp;m;i++){var b=o[i][h];&quot;type&quot;===h&amp;&amp;-1!==f.indexOf(g)&amp;&amp;-1!==f.indexOf(b)&amp;&amp;g!==b?y=!0:o[i][h]!==g&amp;&amp;(m=!1)}m&amp;&amp;(v&amp;&amp;(l[a[0]._name].type=&quot;linear&quot;),y&amp;&amp;(l[o[0]._name].type=&quot;linear&quot;),bt(l,h,a,o,t._fullLayout._dfltTitle))}}for(n=0;n&lt;t._fullLayout.annotations.length;n++){var _=t._fullLayout.annotations[n];-1!==e.indexOf(_.xref)&amp;&amp;-1!==r.indexOf(_.yref)&amp;&amp;s.swapAttrs(l.annotations[n],[&quot;?&quot;])}}function bt(t,e,r,n,i){var a,o=s.nestedProperty,l=o(t[r[0]._name],e).get(),c=o(t[n[0]._name],e).get();for(&quot;title&quot;===e&amp;&amp;(l&amp;&amp;l.text===i.x&amp;&amp;(l.text=i.y),c&amp;&amp;c.text===i.y&amp;&amp;(c.text=i.x)),a=0;a&lt;r.length;a++)o(t,r[a]._name+&quot;.&quot;+e).set(c);for(a=0;a&lt;n.length;a++)o(t,n[a]._name+&quot;.&quot;+e).set(l)}function _t(t){return&quot;angularaxis&quot;===t._id}function wt(t,e){for(var r=e._rangebreaks.length,n=0;n&lt;r;n++){var i=e._rangebreaks[n];if(t&gt;=i.min&amp;&amp;t&lt;i.max)return i.max}return t}B.getTickFormat=function(t){var e,r,n,i,a,o,s,l;function c(t){return&quot;string&quot;!=typeof t?t:Number(t.replace(&quot;M&quot;,&quot;&quot;))*T}function u(t,e){var r=[&quot;L&quot;,&quot;D&quot;];if(typeof t==typeof e){if(&quot;number&quot;==typeof t)return t-e;var n=r.indexOf(t.charAt(0)),i=r.indexOf(e.charAt(0));return n===i?Number(t.replace(/(L|D)/g,&quot;&quot;))-Number(e.replace(/(L|D)/g,&quot;&quot;)):n-i}return&quot;number&quot;==typeof t?1:-1}function f(t,e){var r=null===e[0],n=null===e[1],i=u(t,e[0])&gt;=0,a=u(t,e[1])&lt;=0;return(r||i)&amp;&amp;(n||a)}if(t.tickformatstops&amp;&amp;t.tickformatstops.length&gt;0)switch(t.type){case&quot;date&quot;:case&quot;linear&quot;:for(e=0;e&lt;t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&amp;&amp;(i=t.dtick,a=n.dtickrange,o=void 0,s=void 0,l=void 0,o=c||function(t){return t},s=a[0],l=a[1],(!s&amp;&amp;&quot;number&quot;!=typeof s||o(s)&lt;=o(i))&amp;&amp;(!l&amp;&amp;&quot;number&quot;!=typeof l||o(l)&gt;=o(i)))){r=n;break}break;case&quot;log&quot;:for(e=0;e&lt;t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&amp;&amp;f(t.dtick,n.dtickrange)){r=n;break}}return r?r.value:t.tickformat},B.getSubplots=function(t,e){var r=t._fullLayout._subplots,n=r.cartesian.concat(r.gl2d||[]),i=e?B.findSubplotsWithAxis(n,e):n;return i.sort((function(t,e){var r=t.substr(1).split(&quot;y&quot;),n=e.substr(1).split(&quot;y&quot;);return r[0]===n[0]?+r[1]-+n[1]:+r[0]-+n[0]})),i},B.findSubplotsWithAxis=function(t,e){for(var r=new RegExp(&quot;x&quot;===e._id.charAt(0)?&quot;^&quot;+e._id+&quot;y&quot;:e._id+&quot;$&quot;),n=[],i=0;i&lt;t.length;i++){var a=t[i];r.test(a)&amp;&amp;n.push(a)}return n},B.makeClipPaths=function(t){var e=t._fullLayout;if(!e._hasOnlyLargeSploms){var r,i,a={_offset:0,_length:e.width,_id:&quot;&quot;},o={_offset:0,_length:e.height,_id:&quot;&quot;},s=B.list(t,&quot;x&quot;,!0),l=B.list(t,&quot;y&quot;,!0),c=[];for(r=0;r&lt;s.length;r++)for(c.push({x:s[r],y:o}),i=0;i&lt;l.length;i++)0===r&amp;&amp;c.push({x:a,y:l[i]}),c.push({x:s[r],y:l[i]});var u=e._clips.selectAll(&quot;.axesclip&quot;).data(c,(function(t){return t.x._id+t.y._id}));u.enter().append(&quot;clipPath&quot;).classed(&quot;axesclip&quot;,!0).attr(&quot;id&quot;,(function(t){return&quot;clip&quot;+e._uid+t.x._id+t.y._id})).append(&quot;rect&quot;),u.exit().remove(),u.each((function(t){n.select(this).select(&quot;rect&quot;).attr({x:t.x._offset||0,y:t.y._offset||0,width:t.x._length||1,height:t.y._length||1})}))}},B.draw=function(t,e,r){var n=t._fullLayout;&quot;redraw&quot;===e&amp;&amp;n._paper.selectAll(&quot;g.subplot&quot;).each((function(t){var e=t[0],r=n._plots[e];if(r){var i=r.xaxis,a=r.yaxis;r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;tick&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;tick&quot;).remove(),r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;tick2&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;tick2&quot;).remove(),r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;divider&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;divider&quot;).remove(),r.gridlayer&amp;&amp;r.gridlayer.selectAll(&quot;path&quot;).remove(),r.zerolinelayer&amp;&amp;r.zerolinelayer.selectAll(&quot;path&quot;).remove(),n._infolayer.select(&quot;.g-&quot;+i._id+&quot;title&quot;).remove(),n._infolayer.select(&quot;.g-&quot;+a._id+&quot;title&quot;).remove()}}));var i=e&amp;&amp;&quot;redraw&quot;!==e?e:B.listIds(t);return s.syncOrAsync(i.map((function(e){return function(){if(e){var n=B.getFromId(t,e),i=B.drawOne(t,n,r);return n._r=n.range.slice(),n._rl=s.simpleMap(n._r,n.r2l),i}}})))},B.drawOne=function(t,e,r){var n,i,l;r=r||{},e.setScale();var c=t._fullLayout,p=e._id,d=p.charAt(0),g=B.counterLetter(p),m=c._plots[e._mainSubplot];if(m){var v=m[d+&quot;axislayer&quot;],y=e._mainLinePosition,x=e._mainMirrorPosition,b=e._vals=B.calcTicks(e),_=[e.mirror,y,x].join(&quot;_&quot;);for(n=0;n&lt;b.length;n++)b[n].axInfo=_;e._selections={},e._tickAngles&amp;&amp;(e._prevTickAngles=e._tickAngles),e._tickAngles={},e._depth=null;var w={};if(e.visible){var T,k,M=B.makeTransTickFn(e),A=B.makeTransTickLabelFn(e),S=&quot;inside&quot;===e.ticks,E=&quot;outside&quot;===e.ticks;if(&quot;boundaries&quot;===e.tickson){var C=function(t,e){var r,n=[],i=function(t,e){var r=t.xbnd[e];null!==r&amp;&amp;n.push(s.extendFlat({},t,{x:r}))};if(e.length){for(r=0;r&lt;e.length;r++)i(e[r],0);i(e[r-1],1)}return n}(0,b);k=B.clipEnds(e,C),T=S?k:C}else k=B.clipEnds(e,b),T=S&amp;&amp;&quot;period&quot;!==e.ticklabelmode?k:b;var L=e._gridVals=k,I=function(t,e){var r,n,i=[],a=e.length&amp;&amp;e[e.length-1].x&lt;e[0].x,o=function(t,e){var r=t.xbnd[e];null!==r&amp;&amp;i.push(s.extendFlat({},t,{x:r}))};if(t.showdividers&amp;&amp;e.length){for(r=0;r&lt;e.length;r++){var l=e[r];l.text2!==n&amp;&amp;o(l,a?1:0),n=l.text2}o(e[r-1],a?0:1)}return i}(e,b);if(!c._hasOnlyLargeSploms){var P=e._subplotsWith,z={};for(n=0;n&lt;P.length;n++){i=P[n];var O=(l=c._plots[i])[g+&quot;axis&quot;],D=O._mainAxis._id;if(!z[D]){z[D]=1;var N=&quot;x&quot;===d?&quot;M0,&quot;+O._offset+&quot;v&quot;+O._length:&quot;M&quot;+O._offset+&quot;,0h&quot;+O._length;B.drawGrid(t,e,{vals:L,counterAxis:O,layer:l.gridlayer.select(&quot;.&quot;+p),path:N,transFn:M}),B.drawZeroLine(t,e,{counterAxis:O,layer:l.zerolinelayer,path:N,transFn:M})}}}var j=B.getTickSigns(e),U=[];if(e.ticks){var V,q,H,G=B.makeTickPath(e,y,j[2]);if(e._anchorAxis&amp;&amp;e.mirror&amp;&amp;!0!==e.mirror?(V=B.makeTickPath(e,x,j[3]),q=G+V):(V=&quot;&quot;,q=G),e.showdividers&amp;&amp;E&amp;&amp;&quot;boundaries&quot;===e.tickson){var Y={};for(n=0;n&lt;I.length;n++)Y[I[n].x]=1;H=function(t){return Y[t.x]?V:q}}else H=q;B.drawTicks(t,e,{vals:T,layer:v,path:H,transFn:M}),&quot;allticks&quot;===e.mirror&amp;&amp;(U=Object.keys(e._linepositions||{}))}for(n=0;n&lt;U.length;n++){i=U[n],l=c._plots[i];var W=e._linepositions[i]||[],X=B.makeTickPath(e,W[0],j[0])+B.makeTickPath(e,W[1],j[1]);B.drawTicks(t,e,{vals:T,layer:l[d+&quot;axislayer&quot;],path:X,transFn:M})}var Z=[];if(Z.push((function(){return B.drawLabels(t,e,{vals:b,layer:v,transFn:A,labelFns:B.makeLabelFns(e,y)})})),&quot;multicategory&quot;===e.type){var J={x:2,y:10}[d];Z.push((function(){var r={x:&quot;height&quot;,y:&quot;width&quot;}[d],n=Q()[r]+J+(e._tickAngles[p+&quot;tick&quot;]?e.tickfont.size*R:0);return B.drawLabels(t,e,{vals:ct(e,b),layer:v,cls:p+&quot;tick2&quot;,repositionOnUpdate:!0,secondary:!0,transFn:M,labelFns:B.makeLabelFns(e,y+n*j[4])})})),Z.push((function(){return e._depth=j[4]*(Q(&quot;tick2&quot;)[e.side]-y),function(t,e,r){var n=e._id+&quot;divider&quot;,i=r.vals,a=r.layer.selectAll(&quot;path.&quot;+n).data(i,ft);a.exit().remove(),a.enter().insert(&quot;path&quot;,&quot;:first-child&quot;).classed(n,1).classed(&quot;crisp&quot;,1).call(f.stroke,e.dividercolor).style(&quot;stroke-width&quot;,h.crispRound(t,e.dividerwidth,1)+&quot;px&quot;),a.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path)}(t,e,{vals:I,layer:v,path:B.makeTickPath(e,y,j[4],e._depth),transFn:M})}))}else e.title.hasOwnProperty(&quot;standoff&quot;)&amp;&amp;Z.push((function(){e._depth=j[4]*(Q()[e.side]-y)}));var K=o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(e);return Z.push((function(){var r,n,i,s,l=e.side.charAt(0),u=F[e.side].charAt(0),f=B.getPxPosition(t,e),h=E?e.ticklen:0;if((e.automargin||K)&amp;&amp;(&quot;multicategory&quot;===e.type?r=Q(&quot;tick2&quot;):(r=Q(),&quot;x&quot;===d&amp;&amp;&quot;b&quot;===l&amp;&amp;(e._depth=Math.max(r.width&gt;0?r.bottom-f:0,h)))),e.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var p=[0,1];if(&quot;x&quot;===d){if(&quot;b&quot;===l?n[l]=e._depth:(n[l]=e._depth=Math.max(r.width&gt;0?f-r.top:0,h),p.reverse()),r.width&gt;0){var m=r.right-(e._offset+e._length);m&gt;0&amp;&amp;(n.xr=1,n.r=m);var v=e._offset-r.left;v&gt;0&amp;&amp;(n.xl=0,n.l=v)}}else if(&quot;l&quot;===l?n[l]=e._depth=Math.max(r.height&gt;0?f-r.left:0,h):(n[l]=e._depth=Math.max(r.height&gt;0?r.right-f:0,h),p.reverse()),r.height&gt;0){var y=r.bottom-(e._offset+e._length);y&gt;0&amp;&amp;(n.yb=0,n.b=y);var x=e._offset-r.top;x&gt;0&amp;&amp;(n.yt=1,n.t=x)}n[g]=&quot;free&quot;===e.anchor?e.position:e._anchorAxis.domain[p[0]],e.title.text!==c._dfltTitle[d]&amp;&amp;(n[l]+=ht(e)+(e.title.standoff||0)),e.mirror&amp;&amp;&quot;free&quot;!==e.anchor&amp;&amp;((i={x:0,y:0,r:0,l:0,t:0,b:0})[u]=e.linewidth,e.mirror&amp;&amp;!0!==e.mirror&amp;&amp;(i[u]+=h),!0===e.mirror||&quot;ticks&quot;===e.mirror?i[g]=e._anchorAxis.domain[p[1]]:&quot;all&quot;!==e.mirror&amp;&amp;&quot;allticks&quot;!==e.mirror||(i[g]=[e._counterDomainMin,e._counterDomainMax][p[1]]))}K&amp;&amp;(s=o.getComponentMethod(&quot;rangeslider&quot;,&quot;autoMarginOpts&quot;)(t,e)),a.autoMargin(t,gt(e),n),a.autoMargin(t,mt(e),i),a.autoMargin(t,vt(e),s)})),r.skipTitle||K&amp;&amp;&quot;bottom&quot;===e.side||Z.push((function(){return function(t,e){var r,n=t._fullLayout,i=e._id,a=i.charAt(0),o=e.title.font.size;if(e.title.hasOwnProperty(&quot;standoff&quot;))r=e._depth+e.title.standoff+ht(e);else{var s=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;);if(&quot;multicategory&quot;===e.type)r=e._depth;else{var l=1.5*o;s&amp;&amp;(l=.5*o,&quot;outside&quot;===e.ticks&amp;&amp;(l+=e.ticklen)),r=10+l+(e.linewidth?e.linewidth-1:0)}s||(r+=&quot;x&quot;===a?&quot;top&quot;===e.side?o*(e.showticklabels?1:0):o*(e.showticklabels?1.5:.5):&quot;right&quot;===e.side?o*(e.showticklabels?1:.5):o*(e.showticklabels?.5:0))}var c,f,p,d,g=B.getPxPosition(t,e);&quot;x&quot;===a?(f=e._offset+e._length/2,p=&quot;top&quot;===e.side?g-r:g+r):(p=e._offset+e._length/2,f=&quot;right&quot;===e.side?g+r:g-r,c={rotate:&quot;-90&quot;,offset:0});if(&quot;multicategory&quot;!==e.type){var m=e._selections[e._id+&quot;tick&quot;];if(d={selection:m,side:e.side},m&amp;&amp;m.node()&amp;&amp;m.node().parentNode){var v=h.getTranslate(m.node().parentNode);d.offsetLeft=v.x,d.offsetTop=v.y}e.title.hasOwnProperty(&quot;standoff&quot;)&amp;&amp;(d.pad=0)}return u.draw(t,i+&quot;title&quot;,{propContainer:e,propName:e._name+&quot;.title.text&quot;,placeholder:n._dfltTitle[a],avoid:d,transform:c,attributes:{x:f,y:p,&quot;text-anchor&quot;:&quot;middle&quot;}})}(t,e)})),s.syncOrAsync(Z)}}function Q(t){var r=p+(t||&quot;tick&quot;);return w[r]||(w[r]=function(t,e){var r,n,i,a;t._selections[e].size()?(r=1/0,n=-1/0,i=1/0,a=-1/0,t._selections[e].each((function(){var t=dt(this),e=h.bBox(t.node().parentNode);r=Math.min(r,e.top),n=Math.max(n,e.bottom),i=Math.min(i,e.left),a=Math.max(a,e.right)}))):(r=0,n=0,i=0,a=0);return{top:r,bottom:n,left:i,right:a,height:n-r,width:a-i}}(e,r)),w[r]}},B.getTickSigns=function(t){var e=t._id.charAt(0),r={x:&quot;top&quot;,y:&quot;right&quot;}[e],n=t.side===r?1:-1,i=[-1,1,n,-n];return&quot;inside&quot;!==t.ticks==(&quot;x&quot;===e)&amp;&amp;(i=i.map((function(t){return-t}))),t.side&amp;&amp;i.push({l:-1,t:-1,r:1,b:1}[t.side.charAt(0)]),i},B.makeTransTickFn=function(t){return&quot;x&quot;===t._id.charAt(0)?function(e){return l(t._offset+t.l2p(e.x),0)}:function(e){return l(0,t._offset+t.l2p(e.x))}},B.makeTransTickLabelFn=function(t){var e=function(t){var e=t.ticklabelposition||&quot;&quot;,r=function(t){return-1!==e.indexOf(t)},n=r(&quot;top&quot;),i=r(&quot;left&quot;),a=r(&quot;right&quot;),o=r(&quot;bottom&quot;),s=r(&quot;inside&quot;),l=o||i||n||a;if(!l&amp;&amp;!s)return[0,0];var c=t.side,u=l?(t.tickwidth||0)/2:0,f=3,h=t.tickfont?t.tickfont.size:12;(o||n)&amp;&amp;(u+=h*D,f+=(t.linewidth||0)/2);(i||a)&amp;&amp;(u+=(t.linewidth||0)/2,f+=3);s&amp;&amp;&quot;top&quot;===c&amp;&amp;(f-=h*(1-D));(i||n)&amp;&amp;(u=-u);&quot;bottom&quot;!==c&amp;&amp;&quot;right&quot;!==c||(f=-f);return[l?u:0,s?f:0]}(t),r=e[0],n=e[1];return&quot;x&quot;===t._id.charAt(0)?function(e){return l(r+t._offset+t.l2p(ut(e)),n)}:function(e){return l(n,r+t._offset+t.l2p(ut(e)))}},B.makeTickPath=function(t,e,r,n){n=void 0!==n?n:t.ticklen;var i=t._id.charAt(0),a=(t.linewidth||1)/2;return&quot;x&quot;===i?&quot;M0,&quot;+(e+a*r)+&quot;v&quot;+n*r:&quot;M&quot;+(e+a*r)+&quot;,0h&quot;+n*r},B.makeLabelFns=function(t,e,r){var n=t.ticklabelposition||&quot;&quot;,a=function(t){return-1!==n.indexOf(t)},o=a(&quot;top&quot;),l=a(&quot;left&quot;),c=a(&quot;right&quot;),u=a(&quot;bottom&quot;)||l||o||c,f=a(&quot;inside&quot;),h=&quot;inside&quot;===n&amp;&amp;&quot;inside&quot;===t.ticks||!f&amp;&amp;&quot;outside&quot;===t.ticks&amp;&amp;&quot;boundaries&quot;!==t.tickson,p=0,d=0,g=h?t.ticklen:0;if(f?g*=-1:u&amp;&amp;(g=0),h&amp;&amp;(p+=g,r)){var m=s.deg2rad(r);p=g*Math.cos(m)+1,d=g*Math.sin(m)}t.showticklabels&amp;&amp;(h||t.showline)&amp;&amp;(p+=.2*t.tickfont.size);var v,y,x,b,_,w={labelStandoff:p+=(t.linewidth||1)/2*(f?-1:1),labelShift:d},T=0,k=t.side,M=t._id.charAt(0),A=t.tickangle;if(&quot;x&quot;===M)b=(_=!f&amp;&amp;&quot;bottom&quot;===k||f&amp;&amp;&quot;top&quot;===k)?1:-1,f&amp;&amp;(b*=-1),v=d*b,y=e+p*b,x=_?1:-.2,90===Math.abs(A)&amp;&amp;(f?x+=O:x=-90===A&amp;&amp;&quot;bottom&quot;===k?D:90===A&amp;&amp;&quot;top&quot;===k?O:.5,T=O/2*(A/90)),w.xFn=function(t){return t.dx+v+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*x},w.anchorFn=function(t,e){if(u){if(l)return&quot;end&quot;;if(c)return&quot;start&quot;}return i(e)&amp;&amp;0!==e&amp;&amp;180!==e?e*b&lt;0!==f?&quot;end&quot;:&quot;start&quot;:&quot;middle&quot;},w.heightFn=function(e,r,n){return r&lt;-60||r&gt;60?-.5*n:&quot;top&quot;===t.side!==f?-n:0};else if(&quot;y&quot;===M){if(b=(_=!f&amp;&amp;&quot;left&quot;===k||f&amp;&amp;&quot;right&quot;===k)?1:-1,f&amp;&amp;(b*=-1),v=p,y=d*b,x=0,f||90!==Math.abs(A)||(x=-90===A&amp;&amp;&quot;left&quot;===k||90===A&amp;&amp;&quot;right&quot;===k?D:.5),f){var S=i(A)?+A:0;if(0!==S){var E=s.deg2rad(S);T=Math.abs(Math.sin(E))*D*b,x=0}}w.xFn=function(t){return t.dx+e-(v+t.fontSize*x)*b+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*O},w.anchorFn=function(t,e){return i(e)&amp;&amp;90===Math.abs(e)?&quot;middle&quot;:_?&quot;end&quot;:&quot;start&quot;},w.heightFn=function(e,r,n){return&quot;right&quot;===t.side&amp;&amp;(r*=-1),r&lt;-30?-n:r&lt;30?-.5*n:0}}return w},B.drawTicks=function(t,e,r){r=r||{};var n=e._id+&quot;tick&quot;,i=r.vals;&quot;period&quot;===e.ticklabelmode&amp;&amp;(i=i.slice()).shift();var a=r.layer.selectAll(&quot;path.&quot;+n).data(e.ticks?i:[],ft);a.exit().remove(),a.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;ticks&quot;,1).classed(&quot;crisp&quot;,!1!==r.crisp).call(f.stroke,e.tickcolor).style(&quot;stroke-width&quot;,h.crispRound(t,e.tickwidth,1)+&quot;px&quot;).attr(&quot;d&quot;,r.path),a.attr(&quot;transform&quot;,r.transFn)},B.drawGrid=function(t,e,r){r=r||{};var n=e._id+&quot;grid&quot;,i=r.vals,a=r.counterAxis;if(!1===e.showgrid)i=[];else if(a&amp;&amp;B.shouldShowZeroLine(t,e,a))for(var o=&quot;array&quot;===e.tickmode,s=0;s&lt;i.length;s++){var l=i[s].x;if(o?!l:Math.abs(l)&lt;e.dtick/100){if(i=i.slice(0,s).concat(i.slice(s+1)),!o)break;s--}}var c=r.layer.selectAll(&quot;path.&quot;+n).data(i,ft);c.exit().remove(),c.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;crisp&quot;,!1!==r.crisp),e._gw=h.crispRound(t,e.gridwidth,1),c.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path).call(f.stroke,e.gridcolor||&quot;#ddd&quot;).style(&quot;stroke-width&quot;,e._gw+&quot;px&quot;),&quot;function&quot;==typeof r.path&amp;&amp;c.attr(&quot;d&quot;,r.path)},B.drawZeroLine=function(t,e,r){r=r||r;var n=e._id+&quot;zl&quot;,i=B.shouldShowZeroLine(t,e,r.counterAxis),a=r.layer.selectAll(&quot;path.&quot;+n).data(i?[{x:0,id:e._id}]:[]);a.exit().remove(),a.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;zl&quot;,1).classed(&quot;crisp&quot;,!1!==r.crisp).each((function(){r.layer.selectAll(&quot;path&quot;).sort((function(t,e){return U(t.id,e.id)}))})),a.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path).call(f.stroke,e.zerolinecolor||f.defaultLine).style(&quot;stroke-width&quot;,h.crispRound(t,e.zerolinewidth,e._gw||1)+&quot;px&quot;)},B.drawLabels=function(t,e,r){r=r||{};var a=t._fullLayout,o=e._id,u=o.charAt(0),f=r.cls||o+&quot;tick&quot;,p=r.vals,d=r.labelFns,g=r.secondary?0:e.tickangle,m=(e._prevTickAngles||{})[f],v=r.layer.selectAll(&quot;g.&quot;+f).data(e.showticklabels?p:[],ft),y=[];function x(t,a){var o=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;);t.each((function(t){var s=n.select(this),u=s.select(&quot;.text-math-group&quot;),f=d.anchorFn(t,a),p=r.transFn.call(s.node(),t)+(i(a)&amp;&amp;0!=+a?&quot; rotate(&quot;+a+&quot;,&quot;+d.xFn(t)+&quot;,&quot;+(d.yFn(t)-t.fontSize/2)+&quot;)&quot;:&quot;&quot;),g=c.lineCount(s),m=R*t.fontSize,v=d.heightFn(t,i(a)?+a:0,(g-1)*m);if(v&amp;&amp;(p+=l(0,v)),u.empty()){var y=s.select(&quot;text&quot;);y.attr({transform:p,&quot;text-anchor&quot;:f}),o&amp;&amp;(y.style({opacity:100}),e._hideOutOfRangeInsideTickLabels&amp;&amp;e._hideOutOfRangeInsideTickLabels())}else{var x=h.bBox(u.node()).width*{end:-.5,start:.5}[f];u.attr(&quot;transform&quot;,p+l(x,0))}}))}v.enter().append(&quot;g&quot;).classed(f,1).append(&quot;text&quot;).attr(&quot;text-anchor&quot;,&quot;middle&quot;).each((function(e){var r=n.select(this),i=t._promises.length;r.call(c.positionText,d.xFn(e),d.yFn(e)).call(h.font,e.font,e.fontSize,e.fontColor).text(e.text).call(c.convertToTspans,t),t._promises[i]?y.push(t._promises.pop().then((function(){x(r,g)}))):x(r,g)})),v.exit().remove(),r.repositionOnUpdate&amp;&amp;v.each((function(t){n.select(this).select(&quot;text&quot;).call(c.positionText,d.xFn(t),d.yFn(t))})),e._hideOutOfRangeInsideTickLabels=void 0,-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;(e._hideOutOfRangeInsideTickLabels=function(){var t=s.simpleMap(e.range,e.r2l),r=e.l2p(t[0]),i=e.l2p(t[1]),a=Math.min(r,i)+e._offset,o=Math.max(r,i)+e._offset,l=&quot;x&quot;===e._id.charAt(0);v.each((function(t){var r=n.select(this);if(r.select(&quot;.text-math-group&quot;).empty()){var i=h.bBox(r.node()),s=!1;l?(i.right&gt;o||i.left&lt;a)&amp;&amp;(s=!0):(i.bottom&gt;o||i.top+(e.tickangle?0:t.fontSize/4)&lt;a)&amp;&amp;(s=!0),s&amp;&amp;r.select(&quot;text&quot;).style({opacity:0})}}))}),x(v,m+1?m:g);var b=null;e._selections&amp;&amp;(e._selections[f]=v);var _=[function(){return y.length&amp;&amp;Promise.all(y)}];e.automargin&amp;&amp;a._redrawFromAutoMarginCount&amp;&amp;90===m?(b=90,_.push((function(){x(v,m)}))):_.push((function(){if(x(v,g),p.length&amp;&amp;&quot;x&quot;===u&amp;&amp;!i(g)&amp;&amp;(&quot;log&quot;!==e.type||&quot;D&quot;!==String(e.dtick).charAt(0))){b=0;var t,n=0,a=[];if(v.each((function(t){n=Math.max(n,t.fontSize);var r=e.l2p(t.x),i=dt(this),o=h.bBox(i.node());a.push({top:0,bottom:10,height:10,left:r-o.width/2,right:r+o.width/2+2,width:o.width+2})})),&quot;boundaries&quot;!==e.tickson&amp;&amp;!e.showdividers||r.secondary){var o=p.length,l=Math.abs((p[o-1].x-p[0].x)*e._m)/(o-1),c=e.ticklabelposition||&quot;&quot;,f=function(t){return-1!==c.indexOf(t)},d=f(&quot;top&quot;),m=f(&quot;left&quot;),y=f(&quot;right&quot;),_=f(&quot;bottom&quot;)||m||d||y?(e.tickwidth||0)+6:0,w=l&lt;2.5*n||&quot;multicategory&quot;===e.type;for(t=0;t&lt;a.length-1;t++)if(s.bBoxIntersect(a[t],a[t+1],_)){b=w?90:30;break}}else{var T=2;for(e.ticks&amp;&amp;(T+=e.tickwidth/2),t=0;t&lt;a.length;t++){var k=p[t].xbnd,M=a[t];if(null!==k[0]&amp;&amp;M.left-e.l2p(k[0])&lt;T||null!==k[1]&amp;&amp;e.l2p(k[1])-M.right&lt;T){b=90;break}}}b&amp;&amp;x(v,b)}})),e._tickAngles&amp;&amp;_.push((function(){e._tickAngles[f]=null===b?i(g)?g:0:b}));var w=e._anchorAxis;w&amp;&amp;w.autorange&amp;&amp;-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;!V(a,e._id)&amp;&amp;(a._insideTickLabelsAutorange||(a._insideTickLabelsAutorange={}),a._insideTickLabelsAutorange[w._name+&quot;.autorange&quot;]=w.autorange,_.push((function(){v.each((function(t,r){var n=dt(this);e._vals[r].bb=h.bBox(n.node())}))})));var T=s.syncOrAsync(_);return T&amp;&amp;T.then&amp;&amp;t._promises.push(T),T},B.getPxPosition=function(t,e){var r,n=t._fullLayout._size,i=e._id.charAt(0),a=e.side;return&quot;free&quot;!==e.anchor?r=e._anchorAxis:&quot;x&quot;===i?r={_offset:n.t+(1-(e.position||0))*n.h,_length:0}:&quot;y&quot;===i&amp;&amp;(r={_offset:n.l+(e.position||0)*n.w,_length:0}),&quot;top&quot;===a||&quot;left&quot;===a?r._offset:&quot;bottom&quot;===a||&quot;right&quot;===a?r._offset+r._length:void 0},B.shouldShowZeroLine=function(t,e,r){var n=s.simpleMap(e.range,e.r2l);return n[0]*n[1]&lt;=0&amp;&amp;e.zeroline&amp;&amp;(&quot;linear&quot;===e.type||&quot;-&quot;===e.type)&amp;&amp;!(e.rangebreaks&amp;&amp;e.maskBreaks(0)===P)&amp;&amp;(pt(e,0)||!function(t,e,r,n){var i=r._mainAxis;if(!i)return;var a=t._fullLayout,o=e._id.charAt(0),s=B.counterLetter(e._id),l=e._offset+(Math.abs(n[0])&lt;Math.abs(n[1])==(&quot;x&quot;===o)?0:e._length);function c(t){if(!t.showline||!t.linewidth)return!1;var r=Math.max((t.linewidth+e.zerolinewidth)/2,1);function n(t){return&quot;number&quot;==typeof t&amp;&amp;Math.abs(t-l)&lt;r}if(n(t._mainLinePosition)||n(t._mainMirrorPosition))return!0;var i=t._linepositions||{};for(var a in i)if(n(i[a][0])||n(i[a][1]))return!0}var u=a._plots[r._mainSubplot];if(!(u.mainplotinfo||u).overlays.length)return c(r);for(var f=B.list(t,s),h=0;h&lt;f.length;h++){var p=f[h];if(p._mainAxis===i&amp;&amp;c(p))return!0}}(t,e,r,n)||function(t,e){for(var r=t._fullData,n=e._mainSubplot,i=e._id.charAt(0),a=0;a&lt;r.length;a++){var s=r[a];if(!0===s.visible&amp;&amp;s.xaxis+s.yaxis===n){if(o.traceIs(s,&quot;bar-like&quot;)&amp;&amp;s.orientation==={x:&quot;h&quot;,y:&quot;v&quot;}[i])return!0;if(s.fill&amp;&amp;s.fill.charAt(s.fill.length-1)===i)return!0}}return!1}(t,e))},B.clipEnds=function(t,e){return e.filter((function(e){return pt(t,e.x)}))},B.allowAutoMargin=function(t){for(var e=B.list(t,&quot;&quot;,!0),r=0;r&lt;e.length;r++){var n=e[r];n.automargin&amp;&amp;(a.allowAutoMargin(t,gt(n)),n.mirror&amp;&amp;a.allowAutoMargin(t,mt(n))),o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(n)&amp;&amp;a.allowAutoMargin(t,vt(n))}},B.swap=function(t,e){for(var r=function(t,e){var r,n,i=[];for(r=0;r&lt;e.length;r++){var a=[],o=t._fullData[e[r]].xaxis,s=t._fullData[e[r]].yaxis;if(o&amp;&amp;s){for(n=0;n&lt;i.length;n++)-1===i[n].x.indexOf(o)&amp;&amp;-1===i[n].y.indexOf(s)||a.push(n);if(a.length){var l,c=i[a[0]];if(a.length&gt;1)for(n=1;n&lt;a.length;n++)l=i[a[n]],yt(c.x,l.x),yt(c.y,l.y);yt(c.x,[o]),yt(c.y,[s])}else i.push({x:[o],y:[s]})}}return i}(t,e),n=0;n&lt;r.length;n++)xt(t,r[n].x,r[n].y)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../components/titles&quot;:738,&quot;../../constants/alignment&quot;:745,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;./autorange&quot;:827,&quot;./axis_autotype&quot;:829,&quot;./axis_ids&quot;:831,&quot;./clean_ticks&quot;:833,&quot;./layout_attributes&quot;:842,&quot;./set_convert&quot;:848,d3:169,&quot;fast-isnumeric&quot;:241}],829:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM,o=i.isArrayOrTypedArray,s=i.isDateTime,l=i.cleanNumber,c=Math.round;function u(t,e){return e?n(t):&quot;number&quot;==typeof t}function f(t){return Math.max(1,(t-1)/1e3)}e.exports=function(t,e,r){var i=t,h=r.noMultiCategory;if(o(i)&amp;&amp;!i.length)return&quot;-&quot;;if(!h&amp;&amp;function(t){return o(t[0])&amp;&amp;o(t[1])}(i))return&quot;multicategory&quot;;if(h&amp;&amp;Array.isArray(i[0])){for(var p=[],d=0;d&lt;i.length;d++)if(o(i[d]))for(var g=0;g&lt;i[d].length;g++)p.push(i[d][g]);i=p}if(function(t,e){for(var r=t.length,i=f(r),a=0,o=0,l={},u=0;u&lt;r;u+=i){var h=c(u),p=t[h],d=String(p);l[d]||(l[d]=1,s(p,e)&amp;&amp;a++,n(p)&amp;&amp;o++)}return a&gt;2*o}(i,e))return&quot;date&quot;;var m=&quot;strict&quot;!==r.autotypenumbers;return function(t,e){for(var r=t.length,n=f(r),i=0,o=0,s={},u=0;u&lt;r;u+=n){var h=c(u),p=t[h],d=String(p);if(!s[d]){s[d]=1;var g=typeof p;&quot;boolean&quot;===g?o++:(e?l(p)!==a:&quot;number&quot;===g)?i++:&quot;string&quot;===g&amp;&amp;o++}}return o&gt;2*i}(i,m)?&quot;category&quot;:function(t,e){for(var r=t.length,n=0;n&lt;r;n++)if(u(t[n],e))return!0;return!1}(i,m)?&quot;linear&quot;:&quot;-&quot;}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],830:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../array_container_defaults&quot;),s=t(&quot;./layout_attributes&quot;),l=t(&quot;./tick_value_defaults&quot;),c=t(&quot;./tick_mark_defaults&quot;),u=t(&quot;./tick_label_defaults&quot;),f=t(&quot;./category_order_defaults&quot;),h=t(&quot;./line_grid_defaults&quot;),p=t(&quot;./set_convert&quot;),d=t(&quot;./constants&quot;).WEEKDAY_PATTERN,g=t(&quot;./constants&quot;).HOUR_PATTERN;function m(t,e,r){function i(r,n){return a.coerce(t,e,s.rangebreaks,r,n)}if(i(&quot;enabled&quot;)){var o=i(&quot;bounds&quot;);if(o&amp;&amp;o.length&gt;=2){var l,c,u=&quot;&quot;;if(2===o.length)for(l=0;l&lt;2;l++)if(c=y(o[l])){u=d;break}var f=i(&quot;pattern&quot;,u);if(f===d)for(l=0;l&lt;2;l++)(c=y(o[l]))&amp;&amp;(e.bounds[l]=o[l]=c-1);if(f)for(l=0;l&lt;2;l++)switch(c=o[l],f){case d:if(!n(c))return void(e.enabled=!1);if((c=+c)!==Math.floor(c)||c&lt;0||c&gt;=7)return void(e.enabled=!1);e.bounds[l]=o[l]=c;break;case g:if(!n(c))return void(e.enabled=!1);if((c=+c)&lt;0||c&gt;24)return void(e.enabled=!1);e.bounds[l]=o[l]=c}if(!1===r.autorange){var h=r.range;if(h[0]&lt;h[1]){if(o[0]&lt;h[0]&amp;&amp;o[1]&gt;h[1])return void(e.enabled=!1)}else if(o[0]&gt;h[0]&amp;&amp;o[1]&lt;h[1])return void(e.enabled=!1)}}else{var p=i(&quot;values&quot;);if(!p||!p.length)return void(e.enabled=!1);i(&quot;dvalue&quot;)}}}e.exports=function(t,e,r,n,g){var v,y=n.letter,x=n.font||{},b=n.splomStash||{},_=r(&quot;visible&quot;,!n.visibleDflt),w=e._template||{},T=e.type||w.type||&quot;-&quot;;&quot;date&quot;===T&amp;&amp;(i.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;,n.calendar),n.noTicklabelmode||(v=r(&quot;ticklabelmode&quot;)));n.noTicklabelposition&amp;&amp;&quot;multicategory&quot;!==T||a.coerce(t,e,{ticklabelposition:{valType:&quot;enumerated&quot;,dflt:&quot;outside&quot;,values:&quot;period&quot;===v?[&quot;outside&quot;,&quot;inside&quot;]:&quot;x&quot;===y?[&quot;outside&quot;,&quot;inside&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;]:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;]}},&quot;ticklabelposition&quot;),p(e,g);var k=!e.isValidRange(t.range);k&amp;&amp;n.reverseDflt&amp;&amp;(k=&quot;reversed&quot;),!r(&quot;autorange&quot;,k)||&quot;linear&quot;!==T&amp;&amp;&quot;-&quot;!==T||r(&quot;rangemode&quot;),r(&quot;range&quot;),e.cleanRange(),f(t,e,r,n),&quot;category&quot;===T||n.noHover||r(&quot;hoverformat&quot;);var M=r(&quot;color&quot;),A=M!==s.color.dflt?M:x.color,S=b.label||g._dfltTitle[y];if(u(t,e,r,T,n,{pass:1}),!_)return e;r(&quot;title.text&quot;,S),a.coerceFont(r,&quot;title.font&quot;,{family:x.family,size:Math.round(1.2*x.size),color:A}),l(t,e,r,T),u(t,e,r,T,n,{pass:2}),c(t,e,r,n),h(t,e,r,{dfltColor:M,bgColor:n.bgColor,showGrid:n.showGrid,attributes:s}),(e.showline||e.ticks)&amp;&amp;r(&quot;mirror&quot;),n.automargin&amp;&amp;r(&quot;automargin&quot;);var E,C=&quot;multicategory&quot;===T;n.noTickson||&quot;category&quot;!==T&amp;&amp;!C||!e.ticks&amp;&amp;!e.showgrid||(C&amp;&amp;(E=&quot;boundaries&quot;),&quot;boundaries&quot;===r(&quot;tickson&quot;,E)&amp;&amp;delete e.ticklabelposition);C&amp;&amp;(r(&quot;showdividers&quot;)&amp;&amp;(r(&quot;dividercolor&quot;),r(&quot;dividerwidth&quot;)));if(&quot;date&quot;===T)if(o(t,e,{name:&quot;rangebreaks&quot;,inclusionAttr:&quot;enabled&quot;,handleItemDefaults:m}),e.rangebreaks.length){for(var L=0;L&lt;e.rangebreaks.length;L++)if(e.rangebreaks[L].pattern===d){e._hasDayOfWeekBreaks=!0;break}if(p(e,g),g._has(&quot;scattergl&quot;)||g._has(&quot;splom&quot;))for(var I=0;I&lt;n.data.length;I++){var P=n.data[I];&quot;scattergl&quot;!==P.type&amp;&amp;&quot;splom&quot;!==P.type||(P.visible=!1,a.warn(P.type+&quot; traces do not work on axes with rangebreaks. Setting trace &quot;+P.index+&quot; to `visible: false`.&quot;))}}else delete e.rangebreaks;return e};var v={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function y(t){if(&quot;string&quot;==typeof t)return v[t.substr(0,3).toLowerCase()]}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../array_container_defaults&quot;:823,&quot;./category_order_defaults&quot;:832,&quot;./constants&quot;:834,&quot;./layout_attributes&quot;:842,&quot;./line_grid_defaults&quot;:844,&quot;./set_convert&quot;:848,&quot;./tick_label_defaults&quot;:849,&quot;./tick_mark_defaults&quot;:850,&quot;./tick_value_defaults&quot;:851,&quot;fast-isnumeric&quot;:241}],831:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./constants&quot;);function a(t,e){if(e&amp;&amp;e.length)for(var r=0;r&lt;e.length;r++)if(e[r][t])return!0;return!1}r.id2name=function(t){if(&quot;string&quot;==typeof t&amp;&amp;t.match(i.AX_ID_PATTERN)){var e=t.split(&quot; &quot;)[0].substr(1);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),t.charAt(0)+&quot;axis&quot;+e}},r.name2id=function(t){if(t.match(i.AX_NAME_PATTERN)){var e=t.substr(5);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),t.charAt(0)+e}},r.cleanId=function(t,e,r){var n=/( domain)$/.test(t);if(&quot;string&quot;==typeof t&amp;&amp;t.match(i.AX_ID_PATTERN)&amp;&amp;(!e||t.charAt(0)===e)&amp;&amp;(!n||r)){var a=t.split(&quot; &quot;)[0].substr(1).replace(/^0+/,&quot;&quot;);return&quot;1&quot;===a&amp;&amp;(a=&quot;&quot;),t.charAt(0)+a+(n&amp;&amp;r?&quot; domain&quot;:&quot;&quot;)}},r.list=function(t,e,n){var i=t._fullLayout;if(!i)return[];var a,o=r.listIds(t,e),s=new Array(o.length);for(a=0;a&lt;o.length;a++){var l=o[a];s[a]=i[l.charAt(0)+&quot;axis&quot;+l.substr(1)]}if(!n){var c=i._subplots.gl3d||[];for(a=0;a&lt;c.length;a++){var u=i[c[a]];e?s.push(u[e+&quot;axis&quot;]):s.push(u.xaxis,u.yaxis,u.zaxis)}}return s},r.listIds=function(t,e){var r=t._fullLayout;if(!r)return[];var n=r._subplots;return e?n[e+&quot;axis&quot;]:n.xaxis.concat(n.yaxis)},r.getFromId=function(t,e,n){var i=t._fullLayout;return e=void 0===e||&quot;string&quot;!=typeof e?e:e.replace(&quot; domain&quot;,&quot;&quot;),&quot;x&quot;===n?e=e.replace(/y[0-9]*/,&quot;&quot;):&quot;y&quot;===n&amp;&amp;(e=e.replace(/x[0-9]*/,&quot;&quot;)),i[r.id2name(e)]},r.getFromTrace=function(t,e,i){var a=t._fullLayout,o=null;if(n.traceIs(e,&quot;gl3d&quot;)){var s=e.scene;&quot;scene&quot;===s.substr(0,5)&amp;&amp;(o=a[s][i+&quot;axis&quot;])}else o=r.getFromId(t,e[i+&quot;axis&quot;]||i);return o},r.idSort=function(t,e){var r=t.charAt(0),n=e.charAt(0);return r!==n?r&gt;n?1:-1:+(t.substr(1)||1)-+(e.substr(1)||1)},r.ref2id=function(t){return!!/^[xyz]/.test(t)&amp;&amp;t.split(&quot; &quot;)[0]},r.isLinked=function(t,e){return a(e,t._axisMatchGroups)||a(e,t._axisConstraintGroups)}},{&quot;../../registry&quot;:911,&quot;./constants&quot;:834}],832:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){if(&quot;category&quot;===e.type){var i,a=t.categoryarray,o=Array.isArray(a)&amp;&amp;a.length&gt;0;o&amp;&amp;(i=&quot;array&quot;);var s,l=r(&quot;categoryorder&quot;,i);&quot;array&quot;===l&amp;&amp;(s=r(&quot;categoryarray&quot;)),o||&quot;array&quot;!==l||(l=e.categoryorder=&quot;trace&quot;),&quot;trace&quot;===l?e._initialCategories=[]:&quot;array&quot;===l?e._initialCategories=s.slice():(s=function(t,e){var r,n,i,a=e.dataAttr||t._id.charAt(0),o={};if(e.axData)r=e.axData;else for(r=[],n=0;n&lt;e.data.length;n++){var s=e.data[n];s[a+&quot;axis&quot;]===t._id&amp;&amp;r.push(s)}for(n=0;n&lt;r.length;n++){var l=r[n][a];for(i=0;i&lt;l.length;i++){var c=l[i];null!=c&amp;&amp;(o[c]=1)}}return Object.keys(o)}(e,n).sort(),&quot;category ascending&quot;===l?e._initialCategories=s:&quot;category descending&quot;===l&amp;&amp;(e._initialCategories=s.reverse()))}}},{}],833:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;),o=a.ONEDAY,s=a.ONEWEEK;r.dtick=function(t,e){var r=&quot;log&quot;===e,i=&quot;date&quot;===e,a=&quot;category&quot;===e,s=i?o:1;if(!t)return s;if(n(t))return(t=Number(t))&lt;=0?s:a?Math.max(1,Math.round(t)):i?Math.max(.1,t):t;if(&quot;string&quot;!=typeof t||!i&amp;&amp;!r)return s;var l=t.charAt(0),c=t.substr(1);return(c=n(c)?Number(c):0)&lt;=0||!(i&amp;&amp;&quot;M&quot;===l&amp;&amp;c===Math.round(c)||r&amp;&amp;&quot;L&quot;===l||r&amp;&amp;&quot;D&quot;===l&amp;&amp;(1===c||2===c))?s:t},r.tick0=function(t,e,r,a){return&quot;date&quot;===e?i.cleanDate(t,i.dateTick0(r,a%s==0?1:0)):&quot;D1&quot;!==a&amp;&amp;&quot;D2&quot;!==a?n(t)?Number(t):0:void 0}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],834:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/regex&quot;).counter;e.exports={idRegex:{x:n(&quot;x&quot;,&quot;( domain)?&quot;),y:n(&quot;y&quot;,&quot;( domain)?&quot;)},attrRegex:n(&quot;[xy]axis&quot;),xAxisMatch:n(&quot;xaxis&quot;),yAxisMatch:n(&quot;yaxis&quot;),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:&quot;hour&quot;,WEEKDAY_PATTERN:&quot;day of week&quot;,MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:&quot;-select&quot;,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:[&quot;imagelayer&quot;,&quot;heatmaplayer&quot;,&quot;contourcarpetlayer&quot;,&quot;contourlayer&quot;,&quot;funnellayer&quot;,&quot;waterfalllayer&quot;,&quot;barlayer&quot;,&quot;carpetlayer&quot;,&quot;violinlayer&quot;,&quot;boxlayer&quot;,&quot;ohlclayer&quot;,&quot;scattercarpetlayer&quot;,&quot;scatterlayer&quot;],clipOnAxisFalseQuery:[&quot;.scatterlayer&quot;,&quot;.barlayer&quot;,&quot;.funnellayer&quot;,&quot;.waterfalllayer&quot;],layerValue2layerClass:{&quot;above traces&quot;:&quot;above&quot;,&quot;below traces&quot;:&quot;below&quot;}}},{&quot;../../lib/regex&quot;:795}],835:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./autorange&quot;),a=t(&quot;./axis_ids&quot;).id2name,o=t(&quot;./layout_attributes&quot;),s=t(&quot;./scale_zoom&quot;),l=t(&quot;./set_convert&quot;),c=t(&quot;../../constants/numerical&quot;).ALMOST_EQUAL,u=t(&quot;../../constants/alignment&quot;).FROM_BL;function f(t,e,r){var i=r.axIds,s=r.layoutOut,l=r.hasImage,c=s._axisConstraintGroups,u=s._axisMatchGroups,f=e._id,g=f.charAt(0),m=((s._splomAxes||{})[g]||{})[f]||{},v=e._id,y=&quot;x&quot;===v.charAt(0);function x(r,i){return n.coerce(t,e,o,r,i)}e._matchGroup=null,e._constraintGroup=null,x(&quot;constrain&quot;,l?&quot;domain&quot;:&quot;range&quot;),n.coerce(t,e,{constraintoward:{valType:&quot;enumerated&quot;,values:y?[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;]:[&quot;bottom&quot;,&quot;middle&quot;,&quot;top&quot;],dflt:y?&quot;center&quot;:&quot;middle&quot;}},&quot;constraintoward&quot;);var b,_,w=e.type,T=[];for(b=0;b&lt;i.length;b++){if((_=i[b])!==v)s[a(_)].type===w&amp;&amp;T.push(_)}var k=p(c,v);if(k){var M=[];for(b=0;b&lt;T.length;b++)k[_=T[b]]||M.push(_);T=M}var A,S,E=T.length;E&amp;&amp;(t.matches||m.matches)&amp;&amp;(A=n.coerce(t,e,{matches:{valType:&quot;enumerated&quot;,values:T,dflt:-1!==T.indexOf(m.matches)?m.matches:void 0}},&quot;matches&quot;));var C=l&amp;&amp;!y?e.anchor:void 0;if(E&amp;&amp;!A&amp;&amp;(t.scaleanchor||C)&amp;&amp;(S=n.coerce(t,e,{scaleanchor:{valType:&quot;enumerated&quot;,values:T}},&quot;scaleanchor&quot;,C)),A){e._matchGroup=d(u,v,A,1);var L=s[a(A)],I=h(s,e)/h(s,L);y!==(&quot;x&quot;===A.charAt(0))&amp;&amp;(I=(y?&quot;x&quot;:&quot;y&quot;)+I),d(c,v,A,I)}else t.matches&amp;&amp;-1!==i.indexOf(t.matches)&amp;&amp;n.warn(&quot;ignored &quot;+e._name+'.matches: &quot;'+t.matches+'&quot; to avoid an infinite loop');if(S){var P=x(&quot;scaleratio&quot;);P||(P=e.scaleratio=1),d(c,v,S,P)}else t.scaleanchor&amp;&amp;-1!==i.indexOf(t.scaleanchor)&amp;&amp;n.warn(&quot;ignored &quot;+e._name+'.scaleanchor: &quot;'+t.scaleanchor+'&quot; to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function h(t,e){var r=e.domain;return r||(r=t[a(e.overlaying)].domain),r[1]-r[0]}function p(t,e){for(var r=0;r&lt;t.length;r++)if(t[r][e])return t[r];return null}function d(t,e,r,n){var i,a,o,s,l,c=p(t,e);null===c?((c={})[e]=1,l=t.length,t.push(c)):l=t.indexOf(c);var u=Object.keys(c);for(i=0;i&lt;t.length;i++)if(o=t[i],i!==l&amp;&amp;o[r]){var f=o[r];for(a=0;a&lt;u.length;a++)o[s=u[a]]=g(f,g(n,c[s]));return void t.splice(l,1)}if(1!==n)for(a=0;a&lt;u.length;a++){var h=u[a];c[h]=g(n,c[h])}c[r]=1}function g(t,e){var r,n,i=&quot;&quot;,a=&quot;&quot;;&quot;string&quot;==typeof t&amp;&amp;(r=(i=t.match(/^[xy]*/)[0]).length,t=+t.substr(r)),&quot;string&quot;==typeof e&amp;&amp;(n=(a=e.match(/^[xy]*/)[0]).length,e=+e.substr(n));var o=t*e;return r||n?r&amp;&amp;n&amp;&amp;i.charAt(0)!==a.charAt(0)?r===n?o:(r&gt;n?i.substr(n):a.substr(r))+o:i+a+t*e:o}function m(t,e){for(var r=e._size,n=r.h/r.w,i={},a=Object.keys(t),o=0;o&lt;a.length;o++){var s=a[o],l=t[s];if(&quot;string&quot;==typeof l){var c=l.match(/^[xy]*/)[0],u=c.length;l=+l.substr(u);for(var f=&quot;y&quot;===c.charAt(0)?n:1/n,h=0;h&lt;u;h++)l*=f}i[s]=l}return i}function v(t,e){var r=t._inputDomain,n=u[t.constraintoward],i=r[0]+(r[1]-r[0])*n;t.domain=t._input.domain=[i+(r[0]-i)/e,i+(r[1]-i)/e],t.setScale()}r.handleDefaults=function(t,e,r){var i,o,s,c,u,h,p,d,g=r.axIds,m=r.axHasImage,v=e._axisConstraintGroups=[],y=e._axisMatchGroups=[];for(i=0;i&lt;g.length;i++)f(u=t[c=a(g[i])],h=e[c],{axIds:g,layoutOut:e,hasImage:m[c]});function x(t,r){for(i=0;i&lt;t.length;i++)for(s in o=t[i])e[a(s)][r]=o}for(x(y,&quot;_matchGroup&quot;),i=0;i&lt;v.length;i++)for(s in o=v[i])if((h=e[a(s)]).fixedrange){for(var b in o){var _=a(b);!1===(t[_]||{}).fixedrange&amp;&amp;n.warn(&quot;fixedrange was specified as false for axis &quot;+_+&quot; but was overridden because another axis in its constraint group has fixedrange true&quot;),e[_].fixedrange=!0}break}for(i=0;i&lt;v.length;){for(s in o=v[i]){(h=e[a(s)])._matchGroup&amp;&amp;Object.keys(h._matchGroup).length===Object.keys(o).length&amp;&amp;(v.splice(i,1),i--);break}i++}x(v,&quot;_constraintGroup&quot;);var w=[&quot;constrain&quot;,&quot;range&quot;,&quot;autorange&quot;,&quot;rangemode&quot;,&quot;rangebreaks&quot;,&quot;categoryorder&quot;,&quot;categoryarray&quot;],T=!1,k=!1;function M(){d=h[p],&quot;rangebreaks&quot;===p&amp;&amp;(k=h._hasDayOfWeekBreaks)}for(i=0;i&lt;y.length;i++){o=y[i];for(var A=0;A&lt;w.length;A++){var S;for(s in p=w[A],d=null,o)if(u=t[c=a(s)],h=e[c],p in h){if(!h.matches&amp;&amp;(S=h,p in u)){M();break}null===d&amp;&amp;p in u&amp;&amp;M()}if(&quot;range&quot;===p&amp;&amp;d&amp;&amp;(T=!0),&quot;autorange&quot;===p&amp;&amp;null===d&amp;&amp;T&amp;&amp;(d=!1),null===d&amp;&amp;p in S&amp;&amp;(d=S[p]),null!==d)for(s in o)(h=e[a(s)])[p]=&quot;range&quot;===p?d.slice():d,&quot;rangebreaks&quot;===p&amp;&amp;(h._hasDayOfWeekBreaks=k,l(h,e))}}},r.enforce=function(t){var e,r,n,o,l,u,f,h,p=t._fullLayout,d=p._axisConstraintGroups||[];for(e=0;e&lt;d.length;e++){n=m(d[e],p);var g=Object.keys(n),y=1/0,x=0,b=1/0,_={},w={},T=!1;for(r=0;r&lt;g.length;r++)w[o=g[r]]=l=p[a(o)],l._inputDomain?l.domain=l._inputDomain.slice():l._inputDomain=l.domain.slice(),l._inputRange||(l._inputRange=l.range.slice()),l.setScale(),_[o]=u=Math.abs(l._m)/n[o],y=Math.min(y,u),&quot;domain&quot;!==l.constrain&amp;&amp;l._constraintShrinkable||(b=Math.min(b,u)),delete l._constraintShrinkable,x=Math.max(x,u),&quot;domain&quot;===l.constrain&amp;&amp;(T=!0);if(!(y&gt;c*x)||T)for(r=0;r&lt;g.length;r++)if(u=_[o=g[r]],f=(l=w[o]).constrain,u!==b||&quot;domain&quot;===f)if(h=u/b,&quot;range&quot;===f)s(l,h);else{var k=l._inputDomain,M=(l.domain[1]-l.domain[0])/(k[1]-k[0]),A=(l.r2l(l.range[1])-l.r2l(l.range[0]))/(l.r2l(l._inputRange[1])-l.r2l(l._inputRange[0]));if((h/=M)*A&lt;1){l.domain=l._input.domain=k.slice(),s(l,h);continue}if(A&lt;1&amp;&amp;(l.range=l._input.range=l._inputRange.slice(),h*=A),l.autorange){var S=l.r2l(l.range[0]),E=l.r2l(l.range[1]),C=(S+E)/2,L=C,I=C,P=Math.abs(E-C),z=C-P*h*1.0001,O=C+P*h*1.0001,D=i.makePadFn(p,l,0),R=i.makePadFn(p,l,1);v(l,h);var F,B,N=Math.abs(l._m),j=i.concatExtremes(t,l),U=j.min,V=j.max;for(B=0;B&lt;U.length;B++)(F=U[B].val-D(U[B])/N)&gt;z&amp;&amp;F&lt;L&amp;&amp;(L=F);for(B=0;B&lt;V.length;B++)(F=V[B].val+R(V[B])/N)&lt;O&amp;&amp;F&gt;I&amp;&amp;(I=F);h/=(I-L)/(2*P),L=l.l2r(L),I=l.l2r(I),l.range=l._input.range=S&lt;E?[L,I]:[I,L]}v(l,h)}}},r.getAxisGroup=function(t,e){for(var r=t._axisMatchGroups,n=0;n&lt;r.length;n++){if(r[n][e])return&quot;g&quot;+n}return e},r.clean=function(t,e){if(e._inputDomain){for(var r=!1,n=e._id,i=t._fullLayout._axisConstraintGroups,a=0;a&lt;i.length;a++)if(i[a][n]){r=!0;break}r&amp;&amp;&quot;domain&quot;===e.constrain||(e._input.domain=e.domain=e._inputDomain,delete e._inputDomain)}}},{&quot;../../constants/alignment&quot;:745,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./autorange&quot;:827,&quot;./axis_ids&quot;:831,&quot;./layout_attributes&quot;:842,&quot;./scale_zoom&quot;:846,&quot;./set_convert&quot;:848}],836:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;has-passive-events&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/color&quot;),f=t(&quot;../../components/drawing&quot;),h=t(&quot;../../components/fx&quot;),p=t(&quot;./axes&quot;),d=t(&quot;../../lib/setcursor&quot;),g=t(&quot;../../components/dragelement&quot;),m=t(&quot;../../components/dragelement/helpers&quot;),v=m.selectingOrDrawing,y=m.freeMode,x=t(&quot;../../constants/alignment&quot;).FROM_TL,b=t(&quot;../../lib/clear_gl_canvases&quot;),_=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,w=t(&quot;../plots&quot;),T=t(&quot;./axis_ids&quot;).getFromId,k=t(&quot;./select&quot;).prepSelect,M=t(&quot;./select&quot;).clearSelect,A=t(&quot;./select&quot;).selectOnClick,S=t(&quot;./scale_zoom&quot;),E=t(&quot;./constants&quot;),C=E.MINDRAG,L=E.MINZOOM,I=!0;function P(t,e,r,n){var i=s.ensureSingle(t.draglayer,e,r,(function(e){e.classed(&quot;drag&quot;,!0).style({fill:&quot;transparent&quot;,&quot;stroke-width&quot;:0}).attr(&quot;data-subplot&quot;,t.id)}));return i.call(d,n),i.node()}function z(t,e,r,i,a,o,s){var l=P(t,&quot;rect&quot;,e,r);return n.select(l).call(f.setRect,i,a,o,s),l}function O(t,e){for(var r=0;r&lt;t.length;r++)if(!t[r].fixedrange)return e;return&quot;&quot;}function D(t,e,r,n,i){for(var a=0;a&lt;t.length;a++){var o=t[a];if(!o.fixedrange)if(o.rangebreaks){var s=&quot;y&quot;===o._id.charAt(0),l=s?1-e:e,c=s?1-r:r;n[o._name+&quot;.range[0]&quot;]=o.l2r(o.p2l(l*o._length)),n[o._name+&quot;.range[1]&quot;]=o.l2r(o.p2l(c*o._length))}else{var u=o._rl[0],f=o._rl[1]-u;n[o._name+&quot;.range[0]&quot;]=o.l2r(u+f*e),n[o._name+&quot;.range[1]&quot;]=o.l2r(u+f*r)}}if(i&amp;&amp;i.length){var h=(e+(1-r))/2;D(i,h,1-h,n,[])}}function R(t,e){for(var r=0;r&lt;t.length;r++){var n=t[r];if(!n.fixedrange)if(n.rangebreaks){var i=n._length,a=(n.p2l(0+e)-n.p2l(0)+(n.p2l(i+e)-n.p2l(i)))/2;n.range=[n.l2r(n._rl[0]-a),n.l2r(n._rl[1]-a)]}else n.range=[n.l2r(n._rl[0]-e/n._m),n.l2r(n._rl[1]-e/n._m)]}}function F(t){return 1-(t&gt;=0?Math.min(t,.9):1/(1/Math.max(t,-.3)+3.222))}function B(t,e,r,n,i){return t.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox&quot;).style({fill:e&gt;.2?&quot;rgba(0,0,0,0)&quot;:&quot;rgba(255,255,255,0)&quot;,&quot;stroke-width&quot;:0}).attr(&quot;transform&quot;,l(r,n)).attr(&quot;d&quot;,i+&quot;Z&quot;)}function N(t,e,r){return t.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).style({fill:u.background,stroke:u.defaultLine,&quot;stroke-width&quot;:1,opacity:0}).attr(&quot;transform&quot;,l(e,r)).attr(&quot;d&quot;,&quot;M0,0Z&quot;)}function j(t,e,r,n,i,a){t.attr(&quot;d&quot;,n+&quot;M&quot;+r.l+&quot;,&quot;+r.t+&quot;v&quot;+r.h+&quot;h&quot;+r.w+&quot;v-&quot;+r.h+&quot;h-&quot;+r.w+&quot;Z&quot;),U(t,e,i,a)}function U(t,e,r,n){r||(t.transition().style(&quot;fill&quot;,n&gt;.2?&quot;rgba(0,0,0,0.4)&quot;:&quot;rgba(255,255,255,0.3)&quot;).duration(200),e.transition().style(&quot;opacity&quot;,1).duration(200))}function V(t){n.select(t).selectAll(&quot;.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners&quot;).remove()}function q(t){I&amp;&amp;t.data&amp;&amp;t._context.showTips&amp;&amp;(s.notifier(s._(t,&quot;Double-click to zoom back out&quot;),&quot;long&quot;),I=!1)}function H(t){var e=Math.floor(Math.min(t.b-t.t,t.r-t.l,L)/2);return&quot;M&quot;+(t.l-3.5)+&quot;,&quot;+(t.t-.5+e)+&quot;h3v&quot;+-e+&quot;h&quot;+e+&quot;v-3h-&quot;+(e+3)+&quot;ZM&quot;+(t.r+3.5)+&quot;,&quot;+(t.t-.5+e)+&quot;h-3v&quot;+-e+&quot;h&quot;+-e+&quot;v-3h&quot;+(e+3)+&quot;ZM&quot;+(t.r+3.5)+&quot;,&quot;+(t.b+.5-e)+&quot;h-3v&quot;+e+&quot;h&quot;+-e+&quot;v3h&quot;+(e+3)+&quot;ZM&quot;+(t.l-3.5)+&quot;,&quot;+(t.b+.5-e)+&quot;h3v&quot;+e+&quot;h&quot;+e+&quot;v3h-&quot;+(e+3)+&quot;Z&quot;}function G(t,e,r,n,i){for(var a,o,l,c,u=!1,f={},h={},p=(i||{}).xaHash,d=(i||{}).yaHash,g=0;g&lt;e.length;g++){var m=e[g];for(a in r)if(m[a]){for(l in m)i&amp;&amp;(p[l]||d[l])||(&quot;x&quot;===l.charAt(0)?r:n)[l]||(f[l]=a);for(o in n)i&amp;&amp;(p[o]||d[o])||!m[o]||(u=!0)}for(o in n)if(m[o])for(c in m)i&amp;&amp;(p[c]||d[c])||(&quot;x&quot;===c.charAt(0)?r:n)[c]||(h[c]=o)}u&amp;&amp;(s.extendFlat(f,h),h={});var v={},y=[];for(l in f){var x=T(t,l);y.push(x),v[x._id]=x}var b={},_=[];for(c in h){var w=T(t,c);_.push(w),b[w._id]=w}return{xaHash:v,yaHash:b,xaxes:y,yaxes:_,xLinks:f,yLinks:h,isSubplotConstrained:u}}function Y(t,e){if(a){var r=void 0!==t.onwheel?&quot;wheel&quot;:&quot;mousewheel&quot;;t._onwheel&amp;&amp;t.removeEventListener(r,t._onwheel),t._onwheel=e,t.addEventListener(r,e,{passive:!1})}else void 0!==t.onwheel?t.onwheel=e:void 0!==t.onmousewheel?t.onmousewheel=e:t.isAddedWheelEvent||(t.isAddedWheelEvent=!0,t.addEventListener(&quot;wheel&quot;,e,{passive:!1}))}function W(t){var e=[];for(var r in t)e.push(t[r]);return e}e.exports={makeDragBox:function(t,e,r,a,l,u,d,m){var I,P,U,X,Z,J,K,Q,$,tt,et,rt,nt,it,at,ot,st,lt,ct,ut,ft,ht,pt,dt=t._fullLayout._zoomlayer,gt=d+m===&quot;nsew&quot;,mt=1===(d+m).length;function vt(){if(I=e.xaxis,P=e.yaxis,$=I._length,tt=P._length,K=I._offset,Q=P._offset,(U={})[I._id]=I,(X={})[P._id]=P,d&amp;&amp;m)for(var r=e.overlays,n=0;n&lt;r.length;n++){var i=r[n].xaxis;U[i._id]=i;var a=r[n].yaxis;X[a._id]=a}Z=W(U),J=W(X),nt=O(Z,m),it=O(J,d),at=!it&amp;&amp;!nt,rt=G(t,t._fullLayout._axisMatchGroups,U,X);var o=(et=G(t,t._fullLayout._axisConstraintGroups,U,X,rt)).isSubplotConstrained||rt.isSubplotConstrained;ot=m||o,st=d||o;var s=t._fullLayout;lt=s._has(&quot;scattergl&quot;),ct=s._has(&quot;splom&quot;),ut=s._has(&quot;svg&quot;)}vt();var yt=function(t,e,r){if(!t)return&quot;pointer&quot;;if(&quot;nsew&quot;===t)return r?&quot;&quot;:&quot;pan&quot;===e?&quot;move&quot;:&quot;crosshair&quot;;return t.toLowerCase()+&quot;-resize&quot;}(it+nt,t._fullLayout.dragmode,gt),xt=z(e,d+m+&quot;drag&quot;,yt,r,a,l,u);if(at&amp;&amp;!gt)return xt.onmousedown=null,xt.style.pointerEvents=&quot;none&quot;,xt;var bt,_t,wt,Tt,kt,Mt,At,St,Et,Ct,Lt={element:xt,gd:t,plotinfo:e};function It(){Lt.plotinfo.selection=!1,M(t)}function Pt(t,r){var i=Lt.gd;if(i._fullLayout._activeShapeIndex&gt;=0)i._fullLayout._deactivateShape(i);else{var a=i._fullLayout.clickmode;if(V(i),2!==t||mt||qt(),gt)a.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;A(r,i,Z,J,e.id,Lt),a.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;h.click(i,r,e.id);else if(1===t&amp;&amp;mt){var s=d?P:I,l=&quot;s&quot;===d||&quot;w&quot;===m?0:1,u=s._name+&quot;.range[&quot;+l+&quot;]&quot;,f=function(t,e){var r,i=t.range[e],a=Math.abs(i-t.range[1-e]);return&quot;date&quot;===t.type?i:&quot;log&quot;===t.type?(r=Math.ceil(Math.max(0,-Math.log(a)/Math.LN10))+3,n.format(&quot;.&quot;+r+&quot;g&quot;)(Math.pow(10,i))):(r=Math.floor(Math.log(Math.abs(i))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,n.format(&quot;.&quot;+String(r)+&quot;g&quot;)(i))}(s,l),p=&quot;left&quot;,g=&quot;middle&quot;;if(s.fixedrange)return;d?(g=&quot;n&quot;===d?&quot;top&quot;:&quot;bottom&quot;,&quot;right&quot;===s.side&amp;&amp;(p=&quot;right&quot;)):&quot;e&quot;===m&amp;&amp;(p=&quot;right&quot;),i._context.showAxisRangeEntryBoxes&amp;&amp;n.select(xt).call(c.makeEditable,{gd:i,immediate:!0,background:i._fullLayout.paper_bgcolor,text:String(f),fill:s.tickfont?s.tickfont.color:&quot;#444&quot;,horizontalAlign:p,verticalAlign:g}).on(&quot;edit&quot;,(function(t){var e=s.d2r(t);void 0!==e&amp;&amp;o.call(&quot;_guiRelayout&quot;,i,u,e)}))}}}function zt(e,r){if(t._transitioningWithDuration)return!1;var n=Math.max(0,Math.min($,ht*e+bt)),i=Math.max(0,Math.min(tt,pt*r+_t)),a=Math.abs(n-bt),o=Math.abs(i-_t);function s(){At=&quot;&quot;,wt.r=wt.l,wt.t=wt.b,Et.attr(&quot;d&quot;,&quot;M0,0Z&quot;)}if(wt.l=Math.min(bt,n),wt.r=Math.max(bt,n),wt.t=Math.min(_t,i),wt.b=Math.max(_t,i),et.isSubplotConstrained)a&gt;L||o&gt;L?(At=&quot;xy&quot;,a/$&gt;o/tt?(o=a*tt/$,_t&gt;i?wt.t=_t-o:wt.b=_t+o):(a=o*$/tt,bt&gt;n?wt.l=bt-a:wt.r=bt+a),Et.attr(&quot;d&quot;,H(wt))):s();else if(rt.isSubplotConstrained)if(a&gt;L||o&gt;L){At=&quot;xy&quot;;var l=Math.min(wt.l/$,(tt-wt.b)/tt),c=Math.max(wt.r/$,(tt-wt.t)/tt);wt.l=l*$,wt.r=c*$,wt.b=(1-l)*tt,wt.t=(1-c)*tt,Et.attr(&quot;d&quot;,H(wt))}else s();else!it||o&lt;Math.min(Math.max(.6*a,C),L)?a&lt;C||!nt?s():(wt.t=0,wt.b=tt,At=&quot;x&quot;,Et.attr(&quot;d&quot;,function(t,e){return&quot;M&quot;+(t.l-.5)+&quot;,&quot;+(e-L-.5)+&quot;h-3v&quot;+(2*L+1)+&quot;h3ZM&quot;+(t.r+.5)+&quot;,&quot;+(e-L-.5)+&quot;h3v&quot;+(2*L+1)+&quot;h-3Z&quot;}(wt,_t))):!nt||a&lt;Math.min(.6*o,L)?(wt.l=0,wt.r=$,At=&quot;y&quot;,Et.attr(&quot;d&quot;,function(t,e){return&quot;M&quot;+(e-L-.5)+&quot;,&quot;+(t.t-.5)+&quot;v-3h&quot;+(2*L+1)+&quot;v3ZM&quot;+(e-L-.5)+&quot;,&quot;+(t.b+.5)+&quot;v3h&quot;+(2*L+1)+&quot;v-3Z&quot;}(wt,bt))):(At=&quot;xy&quot;,Et.attr(&quot;d&quot;,H(wt)));wt.w=wt.r-wt.l,wt.h=wt.b-wt.t,At&amp;&amp;(Ct=!0),t._dragged=Ct,j(St,Et,wt,kt,Mt,Tt),Ot(),t.emit(&quot;plotly_relayouting&quot;,ft),Mt=!0}function Ot(){ft={},&quot;xy&quot;!==At&amp;&amp;&quot;x&quot;!==At||(D(Z,wt.l/$,wt.r/$,ft,et.xaxes),Ut(&quot;x&quot;,ft)),&quot;xy&quot;!==At&amp;&amp;&quot;y&quot;!==At||(D(J,(tt-wt.b)/tt,(tt-wt.t)/tt,ft,et.yaxes),Ut(&quot;y&quot;,ft))}function Dt(){Ot(),V(t),Ht(),q(t)}Lt.prepFn=function(e,r,n){var a=Lt.dragmode,o=t._fullLayout.dragmode;o!==a&amp;&amp;(Lt.dragmode=o),vt(),ht=t._fullLayout._invScaleX,pt=t._fullLayout._invScaleY,at||(gt?e.shiftKey?&quot;pan&quot;===o?o=&quot;zoom&quot;:v(o)||(o=&quot;pan&quot;):e.ctrlKey&amp;&amp;(o=&quot;pan&quot;):o=&quot;pan&quot;),y(o)?Lt.minDrag=1:Lt.minDrag=void 0,v(o)?(Lt.xaxes=Z,Lt.yaxes=J,k(e,r,n,Lt,o)):(Lt.clickFn=Pt,v(a)&amp;&amp;It(),at||(&quot;zoom&quot;===o?(Lt.moveFn=zt,Lt.doneFn=Dt,Lt.minDrag=1,function(e,r,n){var a=xt.getBoundingClientRect();bt=r-a.left,_t=n-a.top,t._fullLayout._calcInverseTransform(t);var o=s.apply3DTransform(t._fullLayout._invTransform)(bt,_t);bt=o[0],_t=o[1],wt={l:bt,r:bt,w:0,t:_t,b:_t,h:0},Tt=t._hmpixcount?t._hmlumcount/t._hmpixcount:i(t._fullLayout.plot_bgcolor).getLuminance(),Mt=!1,At=&quot;xy&quot;,Ct=!1,St=B(dt,Tt,K,Q,kt=&quot;M0,0H&quot;+$+&quot;V&quot;+tt+&quot;H0V0&quot;),Et=N(dt,K,Q)}(0,r,n)):&quot;pan&quot;===o&amp;&amp;(Lt.moveFn=jt,Lt.doneFn=Ht))),t._fullLayout._redrag=function(){var e=t._dragdata;if(e&amp;&amp;e.element===xt){var r=t._fullLayout.dragmode;v(r)||(vt(),Gt([0,0,$,tt]),Lt.moveFn(e.dx,e.dy))}}},g.init(Lt);var Rt=[0,0,$,tt],Ft=null,Bt=E.REDRAWDELAY,Nt=e.mainplot?t._fullLayout._plots[e.mainplot]:e;function jt(e,r){if(e*=ht,r*=pt,!t._transitioningWithDuration){if(t._fullLayout._replotting=!0,&quot;ew&quot;===nt||&quot;ns&quot;===it){var n=nt?-e:0,i=it?-r:0;if(rt.isSubplotConstrained){if(nt&amp;&amp;it){var a=(e/$-r/tt)/2;n=-(e=a*$),i=-(r=-a*tt)}it?n=-i*$/tt:i=-n*tt/$}return nt&amp;&amp;(R(Z,e),Ut(&quot;x&quot;)),it&amp;&amp;(R(J,r),Ut(&quot;y&quot;)),Gt([n,i,$,tt]),Vt(),void t.emit(&quot;plotly_relayouting&quot;,ft)}var o,s,l=&quot;w&quot;===nt==(&quot;n&quot;===it)?1:-1;if(nt&amp;&amp;it&amp;&amp;(et.isSubplotConstrained||rt.isSubplotConstrained)){var c=(e/$+l*r/tt)/2;e=c*$,r=l*c*tt}if(&quot;w&quot;===nt?e=p(Z,0,e):&quot;e&quot;===nt?e=p(Z,1,-e):nt||(e=0),&quot;n&quot;===it?r=p(J,1,r):&quot;s&quot;===it?r=p(J,0,-r):it||(r=0),o=&quot;w&quot;===nt?e:0,s=&quot;n&quot;===it?r:0,et.isSubplotConstrained&amp;&amp;!rt.isSubplotConstrained||rt.isSubplotConstrained&amp;&amp;nt&amp;&amp;it&amp;&amp;l&gt;0){var u;if(rt.isSubplotConstrained||!nt&amp;&amp;1===it.length){for(u=0;u&lt;Z.length;u++)Z[u].range=Z[u]._r.slice(),S(Z[u],1-r/tt);o=(e=r*$/tt)/2}if(rt.isSubplotConstrained||!it&amp;&amp;1===nt.length){for(u=0;u&lt;J.length;u++)J[u].range=J[u]._r.slice(),S(J[u],1-e/$);s=(r=e*tt/$)/2}}rt.isSubplotConstrained&amp;&amp;it||Ut(&quot;x&quot;),rt.isSubplotConstrained&amp;&amp;nt||Ut(&quot;y&quot;);var f=$-e,h=tt-r;!rt.isSubplotConstrained||nt&amp;&amp;it||(nt?(s=o?0:e*tt/$,h=f*tt/$):(o=s?0:r*$/tt,f=h*$/tt)),Gt([o,s,f,h]),Vt(),t.emit(&quot;plotly_relayouting&quot;,ft)}function p(t,e,r){for(var n,i,a=1-e,o=0;o&lt;t.length;o++){var s=t[o];if(!s.fixedrange){n=s,i=s._rl[a]+(s._rl[e]-s._rl[a])/F(r/s._length);var l=s.l2r(i);!1!==l&amp;&amp;void 0!==l&amp;&amp;(s.range[e]=l)}}return n._length*(n._rl[e]-i)/(n._rl[e]-n._rl[a])}}function Ut(t,e){for(var r=rt.isSubplotConstrained?{x:J,y:Z}[t]:rt[t+&quot;axes&quot;],n=rt.isSubplotConstrained?{x:Z,y:J}[t]:[],i=0;i&lt;r.length;i++){var a=r[i],o=a._id,s=rt.xLinks[o]||rt.yLinks[o],l=n[0]||U[s]||X[s];l&amp;&amp;(e?(e[a._name+&quot;.range[0]&quot;]=e[l._name+&quot;.range[0]&quot;],e[a._name+&quot;.range[1]&quot;]=e[l._name+&quot;.range[1]&quot;]):a.range=l.range.slice())}}function Vt(){var e,r=[];function n(t){for(e=0;e&lt;t.length;e++)t[e].fixedrange||r.push(t[e]._id)}for(ot&amp;&amp;(n(Z),n(et.xaxes),n(rt.xaxes)),st&amp;&amp;(n(J),n(et.yaxes),n(rt.yaxes)),ft={},e=0;e&lt;r.length;e++){var i=r[e],a=T(t,i);p.drawOne(t,a,{skipTitle:!0}),ft[a._name+&quot;.range[0]&quot;]=a.range[0],ft[a._name+&quot;.range[1]&quot;]=a.range[1]}p.redrawComponents(t,r)}function qt(){if(!t._transitioningWithDuration){var e=t._context.doubleClick,r=[];nt&amp;&amp;(r=r.concat(Z)),it&amp;&amp;(r=r.concat(J)),rt.xaxes&amp;&amp;(r=r.concat(rt.xaxes)),rt.yaxes&amp;&amp;(r=r.concat(rt.yaxes));var n,i,a,s={};if(&quot;reset+autosize&quot;===e)for(e=&quot;autosize&quot;,i=0;i&lt;r.length;i++)if((n=r[i])._rangeInitial&amp;&amp;(n.range[0]!==n._rangeInitial[0]||n.range[1]!==n._rangeInitial[1])||!n._rangeInitial&amp;&amp;!n.autorange){e=&quot;reset&quot;;break}if(&quot;autosize&quot;===e)for(i=0;i&lt;r.length;i++)(n=r[i]).fixedrange||(s[n._name+&quot;.autorange&quot;]=!0);else if(&quot;reset&quot;===e)for((nt||et.isSubplotConstrained)&amp;&amp;(r=r.concat(et.xaxes)),it&amp;&amp;!et.isSubplotConstrained&amp;&amp;(r=r.concat(et.yaxes)),et.isSubplotConstrained&amp;&amp;(nt?it||(r=r.concat(J)):r=r.concat(Z)),i=0;i&lt;r.length;i++)(n=r[i]).fixedrange||(n._rangeInitial?(a=n._rangeInitial,s[n._name+&quot;.range[0]&quot;]=a[0],s[n._name+&quot;.range[1]&quot;]=a[1]):s[n._name+&quot;.autorange&quot;]=!0);t.emit(&quot;plotly_doubleclick&quot;,null),o.call(&quot;_guiRelayout&quot;,t,s)}}function Ht(){Gt([0,0,$,tt]),s.syncOrAsync([w.previousPromises,function(){t._fullLayout._replotting=!1,o.call(&quot;_guiRelayout&quot;,t,ft)}],t)}function Gt(e){var r,n,i,a,l=t._fullLayout,c=l._plots,u=l._subplots.cartesian;if(ct&amp;&amp;o.subplotsRegistry.splom.drag(t),lt)for(r=0;r&lt;u.length;r++)if(i=(n=c[u[r]]).xaxis,a=n.yaxis,n._scene){var h=s.simpleMap(i.range,i.r2l),p=s.simpleMap(a.range,a.r2l);n._scene.update({range:[h[0],p[0],h[1],p[1]]})}if((ct||lt)&amp;&amp;(b(t),_(t)),ut){var g=e[2]/I._length,v=e[3]/P._length;for(r=0;r&lt;u.length;r++){i=(n=c[u[r]]).xaxis,a=n.yaxis;var y,x,w,T,k=(ot||rt.isSubplotConstrained)&amp;&amp;!i.fixedrange&amp;&amp;U[i._id],M=(st||rt.isSubplotConstrained)&amp;&amp;!a.fixedrange&amp;&amp;X[a._id];if(k?(y=g,w=m||rt.isSubplotConstrained?e[0]:Xt(i,y)):rt.xaHash[i._id]?(y=g,w=e[0]*i._length/I._length):rt.yaHash[i._id]?(y=v,w=&quot;ns&quot;===it?-e[1]*i._length/P._length:Xt(i,y,{n:&quot;top&quot;,s:&quot;bottom&quot;}[it])):w=Wt(i,y=Yt(i,g,v)),M?(x=v,T=d||rt.isSubplotConstrained?e[1]:Xt(a,x)):rt.yaHash[a._id]?(x=v,T=e[1]*a._length/P._length):rt.xaHash[a._id]?(x=g,T=&quot;ew&quot;===nt?-e[0]*a._length/I._length:Xt(a,x,{e:&quot;right&quot;,w:&quot;left&quot;}[nt])):T=Wt(a,x=Yt(a,g,v)),y||x){y||(y=1),x||(x=1);var A=i._offset-w/y,S=a._offset-T/x;n.clipRect.call(f.setTranslate,w,T).call(f.setScale,y,x),n.plot.call(f.setTranslate,A,S).call(f.setScale,1/y,1/x),y===n.xScaleFactor&amp;&amp;x===n.yScaleFactor||(f.setPointGroupScale(n.zoomScalePts,y,x),f.setTextPointsScale(n.zoomScaleTxt,y,x)),f.hideOutsideRangePoints(n.clipOnAxisFalseTraces,n),n.xScaleFactor=y,n.yScaleFactor=x}}}}function Yt(t,e,r){return t.fixedrange?0:ot&amp;&amp;et.xaHash[t._id]?e:st&amp;&amp;(et.isSubplotConstrained?et.xaHash:et.yaHash)[t._id]?r:0}function Wt(t,e){return e?(t.range=t._r.slice(),S(t,e),Xt(t,e)):0}function Xt(t,e,r){return t._length*(1-e)*x[r||t.constraintoward||&quot;middle&quot;]}return d.length*m.length!=1&amp;&amp;Y(xt,(function(e){if(t._context._scrollZoom.cartesian||t._fullLayout._enablescrollzoom){if(It(),t._transitioningWithDuration)return e.preventDefault(),void e.stopPropagation();vt(),clearTimeout(Ft);var r=-e.deltaY;if(isFinite(r)||(r=e.wheelDelta/10),isFinite(r)){var n,i=Math.exp(-Math.min(Math.max(r,-20),20)/200),a=Nt.draglayer.select(&quot;.nsewdrag&quot;).node().getBoundingClientRect(),o=(e.clientX-a.left)/a.width,l=(a.bottom-e.clientY)/a.height;if(ot){for(m||(o=.5),n=0;n&lt;Z.length;n++)c(Z[n],o,i);Ut(&quot;x&quot;),Rt[2]*=i,Rt[0]+=Rt[2]*o*(1/i-1)}if(st){for(d||(l=.5),n=0;n&lt;J.length;n++)c(J[n],l,i);Ut(&quot;y&quot;),Rt[3]*=i,Rt[1]+=Rt[3]*(1-l)*(1/i-1)}Gt(Rt),Vt(),t.emit(&quot;plotly_relayouting&quot;,ft),Ft=setTimeout((function(){Rt=[0,0,$,tt],Ht()}),Bt),e.preventDefault()}else s.log(&quot;Did not find wheel motion attributes: &quot;,e)}function c(t,e,r){if(!t.fixedrange){var n=s.simpleMap(t.range,t.r2l),i=n[0]+(n[1]-n[0])*e;t.range=n.map((function(e){return t.l2r(i+(e-i)*r)}))}}})),xt},makeDragger:P,makeRectDragger:z,makeZoombox:B,makeCorners:N,updateZoombox:j,xyCorners:H,transitionZoombox:U,removeZoombox:V,showDoubleClickNotifier:q,attachWheelEventHandler:Y}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/clear_gl_canvases&quot;:762,&quot;../../lib/setcursor&quot;:799,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/subroutines&quot;:818,&quot;../../registry&quot;:911,&quot;../plots&quot;:891,&quot;./axes&quot;:828,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./scale_zoom&quot;:846,&quot;./select&quot;:847,d3:169,&quot;has-passive-events&quot;:441,tinycolor2:576}],837:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/fx&quot;),a=t(&quot;../../components/dragelement&quot;),o=t(&quot;../../lib/setcursor&quot;),s=t(&quot;./dragbox&quot;).makeDragBox,l=t(&quot;./constants&quot;).DRAGGERSIZE;r.initInteractions=function(t){var e=t._fullLayout;if(t._context.staticPlot)n.select(t).selectAll(&quot;.drag&quot;).remove();else if(e._has(&quot;cartesian&quot;)||e._has(&quot;splom&quot;)){Object.keys(e._plots||{}).sort((function(t,r){if((e._plots[t].mainplot&amp;&amp;!0)===(e._plots[r].mainplot&amp;&amp;!0)){var n=t.split(&quot;y&quot;),i=r.split(&quot;y&quot;);return n[0]===i[0]?Number(n[1]||1)-Number(i[1]||1):Number(n[0]||1)-Number(i[0]||1)}return e._plots[t].mainplot?1:-1})).forEach((function(r){var n=e._plots[r],o=n.xaxis,c=n.yaxis;if(!n.mainplot){var u=s(t,n,o._offset,c._offset,o._length,c._length,&quot;ns&quot;,&quot;ew&quot;);u.onmousemove=function(e){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===r&amp;&amp;t._fullLayout._plots[r]&amp;&amp;i.hover(t,e,r)},i.hover(t,e,r),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=r},u.onmouseout=function(e){t._dragging||(t._fullLayout._hoversubplot=null,a.unhover(t,e))},t._context.showAxisDragHandles&amp;&amp;(s(t,n,o._offset-l,c._offset-l,l,l,&quot;n&quot;,&quot;w&quot;),s(t,n,o._offset+o._length,c._offset-l,l,l,&quot;n&quot;,&quot;e&quot;),s(t,n,o._offset-l,c._offset+c._length,l,l,&quot;s&quot;,&quot;w&quot;),s(t,n,o._offset+o._length,c._offset+c._length,l,l,&quot;s&quot;,&quot;e&quot;))}if(t._context.showAxisDragHandles){if(r===o._mainSubplot){var f=o._mainLinePosition;&quot;top&quot;===o.side&amp;&amp;(f-=l),s(t,n,o._offset+.1*o._length,f,.8*o._length,l,&quot;&quot;,&quot;ew&quot;),s(t,n,o._offset,f,.1*o._length,l,&quot;&quot;,&quot;w&quot;),s(t,n,o._offset+.9*o._length,f,.1*o._length,l,&quot;&quot;,&quot;e&quot;)}if(r===c._mainSubplot){var h=c._mainLinePosition;&quot;right&quot;!==c.side&amp;&amp;(h-=l),s(t,n,h,c._offset+.1*c._length,l,.8*c._length,&quot;ns&quot;,&quot;&quot;),s(t,n,h,c._offset+.9*c._length,l,.1*c._length,&quot;s&quot;,&quot;&quot;),s(t,n,h,c._offset,l,.1*c._length,&quot;n&quot;,&quot;&quot;)}}}));var o=e._hoverlayer.node();o.onmousemove=function(r){r.target=t._fullLayout._lasthover,i.hover(t,r,e._hoversubplot)},o.onclick=function(e){e.target=t._fullLayout._lasthover,i.click(t,e)},o.onmousedown=function(e){t._fullLayout._lasthover.onmousedown(e)},r.updateFx(t)}},r.updateFx=function(t){var e=t._fullLayout,r=&quot;pan&quot;===e.dragmode?&quot;move&quot;:&quot;crosshair&quot;;o(e._draggers,r)}},{&quot;../../components/dragelement&quot;:662,&quot;../../components/fx&quot;:683,&quot;../../lib/setcursor&quot;:799,&quot;./constants&quot;:834,&quot;./dragbox&quot;:836,d3:169}],838:[function(t,e,r){&quot;use strict&quot;;e.exports={clearOutlineControllers:function(t){var e=t._fullLayout._zoomlayer;e&amp;&amp;e.selectAll(&quot;.outline-controllers&quot;).remove()},clearSelect:function(t){var e=t._fullLayout._zoomlayer;e&amp;&amp;e.selectAll(&quot;.select-outline&quot;).remove(),t._fullLayout._drawing=!1}}},{}],839:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).strTranslate;function i(t,e){switch(t.type){case&quot;log&quot;:return t.p2d(e);case&quot;date&quot;:return t.p2r(e,0,t.calendar);default:return t.p2r(e)}}e.exports={p2r:i,r2p:function(t,e){switch(t.type){case&quot;log&quot;:return t.d2p(e);case&quot;date&quot;:return t.r2p(e,0,t.calendar);default:return t.r2p(e)}},axValue:function(t){var e=&quot;y&quot;===t._id.charAt(0)?1:0;return function(r){return i(t,r[e])}},getTransform:function(t){return n(t.xaxis._offset,t.yaxis._offset)}}},{&quot;../../lib&quot;:778}],840:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./axis_ids&quot;);e.exports=function(t){return function(e,r){var o=e[t];if(Array.isArray(o))for(var s=n.subplotsRegistry.cartesian,l=s.idRegex,c=r._subplots,u=c.xaxis,f=c.yaxis,h=c.cartesian,p=r._has(&quot;cartesian&quot;)||r._has(&quot;gl2d&quot;),d=0;d&lt;o.length;d++){var g=o[d];if(i.isPlainObject(g)){var m=a.cleanId(g.xref,&quot;x&quot;,!1),v=a.cleanId(g.yref,&quot;y&quot;,!1),y=l.x.test(m),x=l.y.test(v);if(y||x){p||i.pushUnique(r._basePlotModules,s);var b=!1;y&amp;&amp;-1===u.indexOf(m)&amp;&amp;(u.push(m),b=!0),x&amp;&amp;-1===f.indexOf(v)&amp;&amp;(f.push(v),b=!0),b&amp;&amp;y&amp;&amp;x&amp;&amp;h.push(m+v)}}}}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./axis_ids&quot;:831}],841:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../plots&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../get_data&quot;).getModuleCalcData,c=t(&quot;./axis_ids&quot;),u=t(&quot;./constants&quot;),f=t(&quot;../../constants/xmlns_namespaces&quot;),h=a.ensureSingle;function p(t,e,r){return a.ensureSingle(t,e,r,(function(t){t.datum(r)}))}function d(t,e,r,a,o){for(var c,f,h,p=u.traceLayerClasses,d=t._fullLayout,g=d._modules,m=[],v=[],y=0;y&lt;g.length;y++){var x=(c=g[y]).name,b=i.modules[x].categories;if(b.svg){var _=c.layerName||x+&quot;layer&quot;,w=c.plot;h=(f=l(r,w))[0],r=f[1],h.length&amp;&amp;m.push({i:p.indexOf(_),className:_,plotMethod:w,cdModule:h}),b.zoomScale&amp;&amp;v.push(&quot;.&quot;+_)}}m.sort((function(t,e){return t.i-e.i}));var T=e.plot.selectAll(&quot;g.mlayer&quot;).data(m,(function(t){return t.className}));if(T.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return t.className})).classed(&quot;mlayer&quot;,!0).classed(&quot;rangeplot&quot;,e.isRangePlot),T.exit().remove(),T.order(),T.each((function(r){var i=n.select(this),l=r.className;r.plotMethod(t,e,r.cdModule,i,a,o),-1===u.clipOnAxisFalseQuery.indexOf(&quot;.&quot;+l)&amp;&amp;s.setClipUrl(i,e.layerClipId,t)})),d._has(&quot;scattergl&quot;)&amp;&amp;(c=i.getModule(&quot;scattergl&quot;),h=l(r,c)[0],c.plot(t,e,h)),!t._context.staticPlot&amp;&amp;(e._hasClipOnAxisFalse&amp;&amp;(e.clipOnAxisFalseTraces=e.plot.selectAll(u.clipOnAxisFalseQuery.join(&quot;,&quot;)).selectAll(&quot;.trace&quot;)),v.length)){var k=e.plot.selectAll(v.join(&quot;,&quot;)).selectAll(&quot;.trace&quot;);e.zoomScalePts=k.selectAll(&quot;path.point&quot;),e.zoomScaleTxt=k.selectAll(&quot;.textpoint&quot;)}}function g(t,e){var r=e.plotgroup,n=e.id,i=u.layerValue2layerClass[e.xaxis.layer],a=u.layerValue2layerClass[e.yaxis.layer],o=t._fullLayout._hasOnlyLargeSploms;if(e.mainplot){var s=e.mainplotinfo,l=s.plotgroup,f=n+&quot;-x&quot;,d=n+&quot;-y&quot;;e.gridlayer=s.gridlayer,e.zerolinelayer=s.zerolinelayer,h(s.overlinesBelow,&quot;path&quot;,f),h(s.overlinesBelow,&quot;path&quot;,d),h(s.overaxesBelow,&quot;g&quot;,f),h(s.overaxesBelow,&quot;g&quot;,d),e.plot=h(s.overplot,&quot;g&quot;,n),h(s.overlinesAbove,&quot;path&quot;,f),h(s.overlinesAbove,&quot;path&quot;,d),h(s.overaxesAbove,&quot;g&quot;,f),h(s.overaxesAbove,&quot;g&quot;,d),e.xlines=l.select(&quot;.overlines-&quot;+i).select(&quot;.&quot;+f),e.ylines=l.select(&quot;.overlines-&quot;+a).select(&quot;.&quot;+d),e.xaxislayer=l.select(&quot;.overaxes-&quot;+i).select(&quot;.&quot;+f),e.yaxislayer=l.select(&quot;.overaxes-&quot;+a).select(&quot;.&quot;+d)}else if(o)e.xlines=h(r,&quot;path&quot;,&quot;xlines-above&quot;),e.ylines=h(r,&quot;path&quot;,&quot;ylines-above&quot;),e.xaxislayer=h(r,&quot;g&quot;,&quot;xaxislayer-above&quot;),e.yaxislayer=h(r,&quot;g&quot;,&quot;yaxislayer-above&quot;);else{var g=h(r,&quot;g&quot;,&quot;layer-subplot&quot;);e.shapelayer=h(g,&quot;g&quot;,&quot;shapelayer&quot;),e.imagelayer=h(g,&quot;g&quot;,&quot;imagelayer&quot;),e.gridlayer=h(r,&quot;g&quot;,&quot;gridlayer&quot;),e.zerolinelayer=h(r,&quot;g&quot;,&quot;zerolinelayer&quot;),h(r,&quot;path&quot;,&quot;xlines-below&quot;),h(r,&quot;path&quot;,&quot;ylines-below&quot;),e.overlinesBelow=h(r,&quot;g&quot;,&quot;overlines-below&quot;),h(r,&quot;g&quot;,&quot;xaxislayer-below&quot;),h(r,&quot;g&quot;,&quot;yaxislayer-below&quot;),e.overaxesBelow=h(r,&quot;g&quot;,&quot;overaxes-below&quot;),e.plot=h(r,&quot;g&quot;,&quot;plot&quot;),e.overplot=h(r,&quot;g&quot;,&quot;overplot&quot;),e.xlines=h(r,&quot;path&quot;,&quot;xlines-above&quot;),e.ylines=h(r,&quot;path&quot;,&quot;ylines-above&quot;),e.overlinesAbove=h(r,&quot;g&quot;,&quot;overlines-above&quot;),h(r,&quot;g&quot;,&quot;xaxislayer-above&quot;),h(r,&quot;g&quot;,&quot;yaxislayer-above&quot;),e.overaxesAbove=h(r,&quot;g&quot;,&quot;overaxes-above&quot;),e.xlines=r.select(&quot;.xlines-&quot;+i),e.ylines=r.select(&quot;.ylines-&quot;+a),e.xaxislayer=r.select(&quot;.xaxislayer-&quot;+i),e.yaxislayer=r.select(&quot;.yaxislayer-&quot;+a)}o||(p(e.gridlayer,&quot;g&quot;,e.xaxis._id),p(e.gridlayer,&quot;g&quot;,e.yaxis._id),e.gridlayer.selectAll(&quot;g&quot;).map((function(t){return t[0]})).sort(c.idSort)),e.xlines.style(&quot;fill&quot;,&quot;none&quot;).classed(&quot;crisp&quot;,!0),e.ylines.style(&quot;fill&quot;,&quot;none&quot;).classed(&quot;crisp&quot;,!0)}function m(t,e){if(t){var r={};for(var i in t.each((function(t){var i=t[0];n.select(this).remove(),v(i,e),r[i]=!0})),e._plots)for(var a=e._plots[i].overlays||[],o=0;o&lt;a.length;o++){var s=a[o];r[s.id]&amp;&amp;s.plot.selectAll(&quot;.trace&quot;).remove()}}}function v(t,e){e._draggers.selectAll(&quot;g.&quot;+t).remove(),e._defs.select(&quot;#clip&quot;+e._uid+t+&quot;plot&quot;).remove()}r.name=&quot;cartesian&quot;,r.attr=[&quot;xaxis&quot;,&quot;yaxis&quot;],r.idRoot=[&quot;x&quot;,&quot;y&quot;],r.idRegex=u.idRegex,r.attrRegex=u.attrRegex,r.attributes=t(&quot;./attributes&quot;),r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.transitionAxes=t(&quot;./transition_axes&quot;),r.finalizeSubplots=function(t,e){var r,n,i,o=e._subplots,s=o.xaxis,l=o.yaxis,f=o.cartesian,h=f.concat(o.gl2d||[]),p={},d={};for(r=0;r&lt;h.length;r++){var g=h[r].split(&quot;y&quot;);p[g[0]]=1,d[&quot;y&quot;+g[1]]=1}for(r=0;r&lt;s.length;r++)p[n=s[r]]||(i=(t[c.id2name(n)]||{}).anchor,u.idRegex.y.test(i)||(i=&quot;y&quot;),f.push(n+i),h.push(n+i),d[i]||(d[i]=1,a.pushUnique(l,i)));for(r=0;r&lt;l.length;r++)d[i=l[r]]||(n=(t[c.id2name(i)]||{}).anchor,u.idRegex.x.test(n)||(n=&quot;x&quot;),f.push(n+i),h.push(n+i),p[n]||(p[n]=1,a.pushUnique(s,n)));if(!h.length){for(var m in n=&quot;&quot;,i=&quot;&quot;,t){if(u.attrRegex.test(m))&quot;x&quot;===m.charAt(0)?(!n||+m.substr(5)&lt;+n.substr(5))&amp;&amp;(n=m):(!i||+m.substr(5)&lt;+i.substr(5))&amp;&amp;(i=m)}n=n?c.name2id(n):&quot;x&quot;,i=i?c.name2id(i):&quot;y&quot;,s.push(n),l.push(i),f.push(n+i)}},r.plot=function(t,e,r,n){var i,a=t._fullLayout,o=a._subplots.cartesian,s=t.calcdata;if(!Array.isArray(e))for(e=[],i=0;i&lt;s.length;i++)e.push(i);for(i=0;i&lt;o.length;i++){for(var l,c=o[i],u=a._plots[c],f=[],h=0;h&lt;s.length;h++){var p=s[h],g=p[0].trace;g.xaxis+g.yaxis===c&amp;&amp;((-1!==e.indexOf(g.index)||g.carpet)&amp;&amp;(l&amp;&amp;l[0].trace.xaxis+l[0].trace.yaxis===c&amp;&amp;-1!==[&quot;tonextx&quot;,&quot;tonexty&quot;,&quot;tonext&quot;].indexOf(g.fill)&amp;&amp;-1===f.indexOf(l)&amp;&amp;f.push(l),f.push(p)),l=p)}d(t,u,f,r,n)}},r.clean=function(t,e,r,n){var i,a,o,s=n._plots||{},l=e._plots||{},u=n._subplots||{};if(n._hasOnlyLargeSploms&amp;&amp;!e._hasOnlyLargeSploms)for(o in s)(i=s[o]).plotgroup&amp;&amp;i.plotgroup.remove();var f=n._has&amp;&amp;n._has(&quot;gl&quot;),h=e._has&amp;&amp;e._has(&quot;gl&quot;);if(f&amp;&amp;!h)for(o in s)(i=s[o])._scene&amp;&amp;i._scene.destroy();if(u.xaxis&amp;&amp;u.yaxis){var p=c.listIds({_fullLayout:n});for(a=0;a&lt;p.length;a++){var d=p[a];e[c.id2name(d)]||n._infolayer.selectAll(&quot;.g-&quot;+d+&quot;title&quot;).remove()}}var g=n._has&amp;&amp;n._has(&quot;cartesian&quot;),y=e._has&amp;&amp;e._has(&quot;cartesian&quot;);if(g&amp;&amp;!y)m(n._cartesianlayer.selectAll(&quot;.subplot&quot;),n),n._defs.selectAll(&quot;.axesclip&quot;).remove(),delete n._axisConstraintGroups,delete n._axisMatchGroups;else if(u.cartesian)for(a=0;a&lt;u.cartesian.length;a++){var x=u.cartesian[a];if(!l[x]){var b=&quot;.&quot;+x+&quot;,.&quot;+x+&quot;-x,.&quot;+x+&quot;-y&quot;;n._cartesianlayer.selectAll(b).remove(),v(x,n)}}},r.drawFramework=function(t){var e=t._fullLayout,r=function(t){var e,r,n,i,a,o,s=t._fullLayout,l=s._subplots.cartesian,c=l.length,u=[],f=[];for(e=0;e&lt;c;e++){n=l[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var h=a._mainAxis,p=o._mainAxis,d=h._id+p._id,g=s._plots[d];i.overlays=[],d!==n&amp;&amp;g?(i.mainplot=d,i.mainplotinfo=g,f.push(n)):(i.mainplot=void 0,i.mainplotinfo=void 0,u.push(n))}for(e=0;e&lt;f.length;e++)n=f[e],(i=s._plots[n]).mainplotinfo.overlays.push(i);var m=u.concat(f),v=new Array(c);for(e=0;e&lt;c;e++){n=m[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var y=[n,a.layer,o.layer,a.overlaying||&quot;&quot;,o.overlaying||&quot;&quot;];for(r=0;r&lt;i.overlays.length;r++)y.push(i.overlays[r].id);v[e]=y}return v}(t),i=e._cartesianlayer.selectAll(&quot;.subplot&quot;).data(r,String);i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;subplot &quot;+t[0]})),i.order(),i.exit().call(m,e),i.each((function(r){var i=r[0],a=e._plots[i];a.plotgroup=n.select(this),g(t,a),a.draglayer=h(e._draggers,&quot;g&quot;,i)}))},r.rangePlot=function(t,e,r){g(t,e),d(t,e,r),o.style(t)},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(&quot;.svg-container&quot;);r.filter((function(t,e){return e===r.size()-1})).selectAll(&quot;.gl-canvas-context, .gl-canvas-focus&quot;).each((function(){var t=this.toDataURL(&quot;image/png&quot;);e.append(&quot;svg:image&quot;).attr({xmlns:f.svg,&quot;xlink:href&quot;:t,preserveAspectRatio:&quot;none&quot;,x:0,y:0,width:this.width,height:this.height})}))},r.updateFx=t(&quot;./graph_interact&quot;).updateFx},{&quot;../../components/drawing&quot;:665,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../get_data&quot;:865,&quot;../plots&quot;:891,&quot;./attributes&quot;:826,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./graph_interact&quot;:837,&quot;./layout_attributes&quot;:842,&quot;./layout_defaults&quot;:843,&quot;./transition_axes&quot;:852,d3:169}],842:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../font_attributes&quot;),i=t(&quot;../../components/color/attributes&quot;),a=t(&quot;../../components/drawing/attributes&quot;).dash,o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/plot_template&quot;).templatedArray,l=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,t(&quot;../../constants/docs&quot;).DATE_FORMAT_LINK,t(&quot;../../constants/numerical&quot;).ONEDAY),c=t(&quot;./constants&quot;),u=c.HOUR_PATTERN,f=c.WEEKDAY_PATTERN;e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},title:{text:{valType:&quot;string&quot;,editType:&quot;ticks&quot;},font:n({editType:&quot;ticks&quot;}),standoff:{valType:&quot;number&quot;,min:0,editType:&quot;ticks&quot;},editType:&quot;ticks&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;,&quot;multicategory&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;,_noTemplating:!0},autotypenumbers:{valType:&quot;enumerated&quot;,values:[&quot;convert types&quot;,&quot;strict&quot;],dflt:&quot;convert types&quot;,editType:&quot;calc&quot;},autorange:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],dflt:!0,editType:&quot;axrange&quot;,impliedEdits:{&quot;range[0]&quot;:void 0,&quot;range[1]&quot;:void 0}},rangemode:{valType:&quot;enumerated&quot;,values:[&quot;normal&quot;,&quot;tozero&quot;,&quot;nonnegative&quot;],dflt:&quot;normal&quot;,editType:&quot;plot&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;axrange&quot;,impliedEdits:{&quot;^autorange&quot;:!1},anim:!0},{valType:&quot;any&quot;,editType:&quot;axrange&quot;,impliedEdits:{&quot;^autorange&quot;:!1},anim:!0}],editType:&quot;axrange&quot;,impliedEdits:{autorange:!1},anim:!0},fixedrange:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},scaleanchor:{valType:&quot;enumerated&quot;,values:[c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;plot&quot;},scaleratio:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},constrain:{valType:&quot;enumerated&quot;,values:[&quot;range&quot;,&quot;domain&quot;],editType:&quot;plot&quot;},constraintoward:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;plot&quot;},matches:{valType:&quot;enumerated&quot;,values:[c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;calc&quot;},rangebreaks:s(&quot;rangebreak&quot;,{enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},bounds:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},pattern:{valType:&quot;enumerated&quot;,values:[f,u,&quot;&quot;],editType:&quot;calc&quot;},values:{valType:&quot;info_array&quot;,freeLength:!0,editType:&quot;calc&quot;,items:{valType:&quot;any&quot;,editType:&quot;calc&quot;}},dvalue:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0,dflt:l},editType:&quot;calc&quot;}),tickmode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;linear&quot;,&quot;array&quot;],editType:&quot;ticks&quot;,impliedEdits:{tick0:void 0,dtick:void 0}},nticks:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;ticks&quot;},tick0:{valType:&quot;any&quot;,editType:&quot;ticks&quot;,impliedEdits:{tickmode:&quot;linear&quot;}},dtick:{valType:&quot;any&quot;,editType:&quot;ticks&quot;,impliedEdits:{tickmode:&quot;linear&quot;}},tickvals:{valType:&quot;data_array&quot;,editType:&quot;ticks&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;ticks&quot;},ticks:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;&quot;],editType:&quot;ticks&quot;},tickson:{valType:&quot;enumerated&quot;,values:[&quot;labels&quot;,&quot;boundaries&quot;],dflt:&quot;labels&quot;,editType:&quot;ticks&quot;},ticklabelmode:{valType:&quot;enumerated&quot;,values:[&quot;instant&quot;,&quot;period&quot;],dflt:&quot;instant&quot;,editType:&quot;ticks&quot;},ticklabelposition:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;],dflt:&quot;outside&quot;,editType:&quot;calc&quot;},mirror:{valType:&quot;enumerated&quot;,values:[!0,&quot;ticks&quot;,!1,&quot;all&quot;,&quot;allticks&quot;],dflt:!1,editType:&quot;ticks+layoutstyle&quot;},ticklen:{valType:&quot;number&quot;,min:0,dflt:5,editType:&quot;ticks&quot;},tickwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks&quot;},tickcolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},showticklabels:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},automargin:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks&quot;},showspikes:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;modebar&quot;},spikecolor:{valType:&quot;color&quot;,dflt:null,editType:&quot;none&quot;},spikethickness:{valType:&quot;number&quot;,dflt:3,editType:&quot;none&quot;},spikedash:o({},a,{dflt:&quot;dash&quot;,editType:&quot;none&quot;}),spikemode:{valType:&quot;flaglist&quot;,flags:[&quot;toaxis&quot;,&quot;across&quot;,&quot;marker&quot;],dflt:&quot;toaxis&quot;,editType:&quot;none&quot;},spikesnap:{valType:&quot;enumerated&quot;,values:[&quot;data&quot;,&quot;cursor&quot;,&quot;hovered data&quot;],dflt:&quot;data&quot;,editType:&quot;none&quot;},tickfont:n({editType:&quot;ticks&quot;}),tickangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;ticks&quot;},tickprefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},showtickprefix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},ticksuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},showticksuffix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},showexponent:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},exponentformat:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;e&quot;,&quot;E&quot;,&quot;power&quot;,&quot;SI&quot;,&quot;B&quot;],dflt:&quot;B&quot;,editType:&quot;ticks&quot;},minexponent:{valType:&quot;number&quot;,dflt:3,min:0,editType:&quot;ticks&quot;},separatethousands:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks&quot;},tickformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},tickformatstops:s(&quot;tickformatstop&quot;,{enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},dtickrange:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;ticks&quot;},{valType:&quot;any&quot;,editType:&quot;ticks&quot;}],editType:&quot;ticks&quot;},value:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},editType:&quot;ticks&quot;}),hoverformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;none&quot;},showline:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks+layoutstyle&quot;},linecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;layoutstyle&quot;},linewidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks+layoutstyle&quot;},showgrid:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},gridcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;ticks&quot;},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks&quot;},zeroline:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},zerolinecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},zerolinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;ticks&quot;},showdividers:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},dividercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},dividerwidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;ticks&quot;},anchor:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;,c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;right&quot;],editType:&quot;plot&quot;},overlaying:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;,c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;plot&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;above traces&quot;,&quot;below traces&quot;],dflt:&quot;above traces&quot;,editType:&quot;plot&quot;},domain:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;}],dflt:[0,1],editType:&quot;plot&quot;},position:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;plot&quot;},categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;,&quot;total ascending&quot;,&quot;total descending&quot;,&quot;min ascending&quot;,&quot;min descending&quot;,&quot;max ascending&quot;,&quot;max descending&quot;,&quot;sum ascending&quot;,&quot;sum descending&quot;,&quot;mean ascending&quot;,&quot;mean descending&quot;,&quot;median ascending&quot;,&quot;median descending&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;,_deprecated:{autotick:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},title:{valType:&quot;string&quot;,editType:&quot;ticks&quot;},titlefont:n({editType:&quot;ticks&quot;})}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../components/drawing/attributes&quot;:664,&quot;../../constants/docs&quot;:748,&quot;../../constants/numerical&quot;:753,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../font_attributes&quot;:856,&quot;./constants&quot;:834}],843:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/fx/helpers&quot;).isUnifiedHover,o=t(&quot;../../components/fx/hovermode_defaults&quot;),s=t(&quot;../../plot_api/plot_template&quot;),l=t(&quot;../layout_attributes&quot;),c=t(&quot;./layout_attributes&quot;),u=t(&quot;./type_defaults&quot;),f=t(&quot;./axis_defaults&quot;),h=t(&quot;./constraints&quot;),p=t(&quot;./position_defaults&quot;),d=t(&quot;./axis_ids&quot;),g=d.id2name,m=d.name2id,v=t(&quot;./constants&quot;).AX_ID_PATTERN,y=t(&quot;../../registry&quot;),x=y.traceIs,b=y.getComponentMethod;function _(t,e,r){Array.isArray(t[e])?t[e].push(r):t[e]=[r]}e.exports=function(t,e,r){var y,w,T=e.autotypenumbers,k={},M={},A={},S={},E={},C={},L={},I={},P={},z={};for(y=0;y&lt;r.length;y++){var O=r[y];if(x(O,&quot;cartesian&quot;)||x(O,&quot;gl2d&quot;)){var D,R;if(O.xaxis)D=g(O.xaxis),_(k,D,O);else if(O.xaxes)for(w=0;w&lt;O.xaxes.length;w++)_(k,g(O.xaxes[w]),O);if(O.yaxis)R=g(O.yaxis),_(k,R,O);else if(O.yaxes)for(w=0;w&lt;O.yaxes.length;w++)_(k,g(O.yaxes[w]),O);if(&quot;funnel&quot;===O.type?&quot;h&quot;===O.orientation?(D&amp;&amp;(M[D]=!0),R&amp;&amp;(L[R]=!0)):R&amp;&amp;(A[R]=!0):&quot;image&quot;===O.type?(R&amp;&amp;(I[R]=!0),D&amp;&amp;(I[D]=!0)):(R&amp;&amp;(E[R]=!0,C[R]=!0),x(O,&quot;carpet&quot;)&amp;&amp;(&quot;carpet&quot;!==O.type||O._cheater)||D&amp;&amp;(S[D]=!0)),&quot;carpet&quot;===O.type&amp;&amp;O._cheater&amp;&amp;D&amp;&amp;(M[D]=!0),x(O,&quot;2dMap&quot;)&amp;&amp;(P[D]=!0,P[R]=!0),x(O,&quot;oriented&quot;))z[&quot;h&quot;===O.orientation?R:D]=!0}}var F=e._subplots,B=F.xaxis,N=F.yaxis,j=n.simpleMap(B,g),U=n.simpleMap(N,g),V=j.concat(U),q=i.background;B.length&amp;&amp;N.length&amp;&amp;(q=n.coerce(t,e,l,&quot;plot_bgcolor&quot;));var H,G,Y,W,X,Z=i.combine(q,e.paper_bgcolor);function J(){var t=k[H]||[];X._traceIndices=t.map((function(t){return t._expandedIndex})),X._annIndices=[],X._shapeIndices=[],X._imgIndices=[],X._subplotsWith=[],X._counterAxes=[],X._name=X._attr=H,X._id=G}function K(t,e){return n.coerce(W,X,c,t,e)}function Q(t,e){return n.coerce2(W,X,c,t,e)}function $(t){return&quot;x&quot;===t?N:B}function tt(e,r){for(var n=&quot;x&quot;===e?j:U,i=[],a=0;a&lt;n.length;a++){var o=n[a];o===r||(t[o]||{}).overlaying||i.push(m(o))}return i}var et={x:$(&quot;x&quot;),y:$(&quot;y&quot;)},rt=et.x.concat(et.y),nt={},it=[];function at(){var t=W.matches;v.test(t)&amp;&amp;-1===rt.indexOf(t)&amp;&amp;(nt[t]=W.type,it=Object.keys(nt))}var ot=o(t,e,r),st=a(ot);for(y=0;y&lt;V.length;y++){H=V[y],G=m(H),Y=H.charAt(0),n.isPlainObject(t[H])||(t[H]={}),W=t[H],X=s.newContainer(e,H,Y+&quot;axis&quot;),J();var lt=&quot;x&quot;===Y&amp;&amp;!S[H]&amp;&amp;M[H]||&quot;y&quot;===Y&amp;&amp;!E[H]&amp;&amp;A[H],ct=&quot;y&quot;===Y&amp;&amp;(!C[H]&amp;&amp;L[H]||I[H]),ut={letter:Y,font:e.font,outerTicks:P[H],showGrid:!z[H],data:k[H]||[],bgColor:Z,calendar:e.calendar,automargin:!0,visibleDflt:lt,reverseDflt:ct,autotypenumbersDflt:T,splomStash:((e._splomAxes||{})[Y]||{})[G]};K(&quot;uirevision&quot;,e.uirevision),u(W,X,K,ut),f(W,X,K,ut,e);var ft=st&amp;&amp;Y===ot.charAt(0),ht=Q(&quot;spikecolor&quot;,st?X.color:void 0),pt=Q(&quot;spikethickness&quot;,st?1.5:void 0),dt=Q(&quot;spikedash&quot;,st?&quot;dot&quot;:void 0),gt=Q(&quot;spikemode&quot;,st?&quot;across&quot;:void 0),mt=Q(&quot;spikesnap&quot;,st?&quot;hovered data&quot;:void 0);K(&quot;showspikes&quot;,!!(ft||ht||pt||dt||gt||mt))||(delete X.spikecolor,delete X.spikethickness,delete X.spikedash,delete X.spikemode,delete X.spikesnap),p(W,X,K,{letter:Y,counterAxes:et[Y],overlayableAxes:tt(Y,H),grid:e.grid}),K(&quot;title.standoff&quot;),at(),X._input=W}for(y=0;y&lt;it.length;){G=it[y++],Y=(H=g(G)).charAt(0),n.isPlainObject(t[H])||(t[H]={}),W=t[H],X=s.newContainer(e,H,Y+&quot;axis&quot;),J();var vt={letter:Y,font:e.font,outerTicks:P[H],showGrid:!z[H],data:[],bgColor:Z,calendar:e.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:T,splomStash:((e._splomAxes||{})[Y]||{})[G]};K(&quot;uirevision&quot;,e.uirevision),X.type=nt[G]||&quot;linear&quot;,f(W,X,K,vt,e),p(W,X,K,{letter:Y,counterAxes:et[Y],overlayableAxes:tt(Y,H),grid:e.grid}),K(&quot;fixedrange&quot;),at(),X._input=W}var yt=b(&quot;rangeslider&quot;,&quot;handleDefaults&quot;),xt=b(&quot;rangeselector&quot;,&quot;handleDefaults&quot;);for(y=0;y&lt;j.length;y++)H=j[y],W=t[H],X=e[H],yt(t,e,H),&quot;date&quot;===X.type&amp;&amp;xt(W,X,e,U,X.calendar),K(&quot;fixedrange&quot;);for(y=0;y&lt;U.length;y++){H=U[y],W=t[H],X=e[H];var bt=e[g(X.anchor)];K(&quot;fixedrange&quot;,b(&quot;rangeslider&quot;,&quot;isVisible&quot;)(bt))}h.handleDefaults(t,e,{axIds:rt.concat(it).sort(d.idSort),axHasImage:I})}},{&quot;../../components/color&quot;:643,&quot;../../components/fx/helpers&quot;:679,&quot;../../components/fx/hovermode_defaults&quot;:682,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../registry&quot;:911,&quot;../layout_attributes&quot;:882,&quot;./axis_defaults&quot;:830,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./constraints&quot;:835,&quot;./layout_attributes&quot;:842,&quot;./position_defaults&quot;:845,&quot;./type_defaults&quot;:853}],844:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;).mix,i=t(&quot;../../components/color/attributes&quot;).lightFraction,a=t(&quot;../../lib&quot;);e.exports=function(t,e,r,o){var s=(o=o||{}).dfltColor;function l(r,n){return a.coerce2(t,e,o.attributes,r,n)}var c=l(&quot;linecolor&quot;,s),u=l(&quot;linewidth&quot;);r(&quot;showline&quot;,o.showLine||!!c||!!u)||(delete e.linecolor,delete e.linewidth);var f=l(&quot;gridcolor&quot;,n(s,o.bgColor,o.blend||i).toRgbString()),h=l(&quot;gridwidth&quot;);if(r(&quot;showgrid&quot;,o.showGrid||!!f||!!h)||(delete e.gridcolor,delete e.gridwidth),!o.noZeroLine){var p=l(&quot;zerolinecolor&quot;,s),d=l(&quot;zerolinewidth&quot;);r(&quot;zeroline&quot;,o.showGrid||!!p||!!d)||(delete e.zerolinecolor,delete e.zerolinewidth)}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib&quot;:778,tinycolor2:576}],845:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o,s,l,c,u=a.counterAxes||[],f=a.overlayableAxes||[],h=a.letter,p=a.grid;p&amp;&amp;(s=p._domains[h][p._axisMap[e._id]],o=p._anchors[e._id],s&amp;&amp;(l=p[h+&quot;side&quot;].split(&quot; &quot;)[0],c=p.domain[h][&quot;right&quot;===l||&quot;top&quot;===l?1:0])),s=s||[0,1],o=o||(n(t.position)?&quot;free&quot;:u[0]||&quot;free&quot;),l=l||(&quot;x&quot;===h?&quot;bottom&quot;:&quot;left&quot;),c=c||0,&quot;free&quot;===i.coerce(t,e,{anchor:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;].concat(u),dflt:o}},&quot;anchor&quot;)&amp;&amp;r(&quot;position&quot;,c),i.coerce(t,e,{side:{valType:&quot;enumerated&quot;,values:&quot;x&quot;===h?[&quot;bottom&quot;,&quot;top&quot;]:[&quot;left&quot;,&quot;right&quot;],dflt:l}},&quot;side&quot;);var d=!1;if(f.length&amp;&amp;(d=i.coerce(t,e,{overlaying:{valType:&quot;enumerated&quot;,values:[!1].concat(f),dflt:!1}},&quot;overlaying&quot;)),!d){var g=r(&quot;domain&quot;,s);g[0]&gt;g[1]-1/4096&amp;&amp;(e.domain=s),i.noneOrAll(t.domain,e.domain,s)}return r(&quot;layer&quot;),e}},{&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],846:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/alignment&quot;).FROM_BL;e.exports=function(t,e,r){void 0===r&amp;&amp;(r=n[t.constraintoward||&quot;center&quot;]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*r;t.range=t._input.range=[t.l2r(a+(i[0]-a)*e),t.l2r(a+(i[1]-a)*e)],t.setScale()}},{&quot;../../constants/alignment&quot;:745}],847:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;polybooljs&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/drawing&quot;).dashStyle,o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;../../components/fx/helpers&quot;).makeEventData,c=t(&quot;../../components/dragelement/helpers&quot;),u=c.freeMode,f=c.rectMode,h=c.drawMode,p=c.openMode,d=c.selectMode,g=t(&quot;../../components/shapes/draw_newshape/display_outlines&quot;),m=t(&quot;../../components/shapes/draw_newshape/helpers&quot;).handleEllipse,v=t(&quot;../../components/shapes/draw_newshape/newshapes&quot;),y=t(&quot;../../lib&quot;),x=t(&quot;../../lib/polygon&quot;),b=t(&quot;../../lib/throttle&quot;),_=t(&quot;./axis_ids&quot;).getFromId,w=t(&quot;../../lib/clear_gl_canvases&quot;),T=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,k=t(&quot;./constants&quot;),M=k.MINSELECT,A=x.filter,S=x.tester,E=t(&quot;./handle_outline&quot;).clearSelect,C=t(&quot;./helpers&quot;),L=C.p2r,I=C.axValue,P=C.getTransform;function z(t,e,r,n,i,a,o){var s,l,c,u,f,h,d,m,v,y=e._hoverdata,x=e._fullLayout.clickmode.indexOf(&quot;event&quot;)&gt;-1,b=[];if(function(t){return t&amp;&amp;Array.isArray(t)&amp;&amp;!0!==t[0].hoverOnBox}(y)){F(t,e,a);var _=function(t,e){var r,n,i=t[0],a=-1,o=[];for(n=0;n&lt;e.length;n++)if(r=e[n],i.fullData._expandedIndex===r.cd[0].trace._expandedIndex){if(!0===i.hoverOnBox)break;void 0!==i.pointNumber?a=i.pointNumber:void 0!==i.binNumber&amp;&amp;(a=i.binNumber,o=i.pointNumbers);break}return{pointNumber:a,pointNumbers:o,searchInfo:r}}(y,s=N(e,r,n,i));if(_.pointNumbers.length&gt;0?function(t,e){var r,n,i,a=[];for(i=0;i&lt;t.length;i++)(r=t[i]).cd[0].trace.selectedpoints&amp;&amp;r.cd[0].trace.selectedpoints.length&gt;0&amp;&amp;a.push(r);if(1===a.length&amp;&amp;a[0]===e.searchInfo&amp;&amp;(n=e.searchInfo.cd[0].trace).selectedpoints.length===e.pointNumbers.length){for(i=0;i&lt;e.pointNumbers.length;i++)if(n.selectedpoints.indexOf(e.pointNumbers[i])&lt;0)return!1;return!0}return!1}(s,_):function(t){var e,r,n,i=0;for(n=0;n&lt;t.length;n++)if(e=t[n],(r=e.cd[0].trace).selectedpoints){if(r.selectedpoints.length&gt;1)return!1;if((i+=r.selectedpoints.length)&gt;1)return!1}return 1===i}(s)&amp;&amp;(h=j(_))){for(o&amp;&amp;o.remove(),v=0;v&lt;s.length;v++)(l=s[v])._module.selectPoints(l,!1);U(e,s),B(a),x&amp;&amp;e.emit(&quot;plotly_deselect&quot;,null)}else{for(d=t.shiftKey&amp;&amp;(void 0!==h?h:j(_)),c=function(t,e,r){return{pointNumber:t,searchInfo:e,subtract:r}}(_.pointNumber,_.searchInfo,d),u=R(a.selectionDefs.concat([c])),v=0;v&lt;s.length;v++)if(f=V(s[v]._module.selectPoints(s[v],u),s[v]),b.length)for(var w=0;w&lt;f.length;w++)b.push(f[w]);else b=f;if(U(e,s,m={points:b}),c&amp;&amp;a&amp;&amp;a.selectionDefs.push(c),o){var T=a.mergedPolygons,k=p(a.dragmode);g(q(T,k),o,a)}x&amp;&amp;e.emit(&quot;plotly_selected&quot;,m)}}}function O(t){return&quot;pointNumber&quot;in t&amp;&amp;&quot;searchInfo&quot;in t}function D(t){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(e,r,n,i){var a=t.searchInfo.cd[0].trace._expandedIndex;return i.cd[0].trace._expandedIndex===a&amp;&amp;n===t.pointNumber},isRect:!1,degenerate:!1,subtract:t.subtract}}function R(t){for(var e=[],r=O(t[0])?0:t[0][0][0],n=r,i=O(t[0])?0:t[0][0][1],a=i,o=0;o&lt;t.length;o++)if(O(t[o]))e.push(D(t[o]));else{var s=x.tester(t[o]);s.subtract=t[o].subtract,e.push(s),r=Math.min(r,s.xmin),n=Math.max(n,s.xmax),i=Math.min(i,s.ymin),a=Math.max(a,s.ymax)}return{xmin:r,xmax:n,ymin:i,ymax:a,pts:[],contains:function(t,r,n,i){for(var a=!1,o=0;o&lt;e.length;o++)e[o].contains(t,r,n,i)&amp;&amp;(a=!1===e[o].subtract);return a},isRect:!1,degenerate:!1}}function F(t,e,r){e._fullLayout._drawing=!1;var n=e._fullLayout,i=r.plotinfo,a=r.dragmode,o=n._lastSelectedSubplot&amp;&amp;n._lastSelectedSubplot===i.id,s=(t.shiftKey||t.altKey)&amp;&amp;!(h(a)&amp;&amp;p(a));o&amp;&amp;s&amp;&amp;i.selection&amp;&amp;i.selection.selectionDefs&amp;&amp;!r.selectionDefs?(r.selectionDefs=i.selection.selectionDefs,r.mergedPolygons=i.selection.mergedPolygons):s&amp;&amp;i.selection||B(r),o||(E(e),n._lastSelectedSubplot=i.id)}function B(t){var e=t.dragmode,r=t.plotinfo,n=t.gd;if(n._fullLayout._activeShapeIndex&gt;=0&amp;&amp;n._fullLayout._deactivateShape(n),h(e)){var a=n._fullLayout._zoomlayer.selectAll(&quot;.select-outline-&quot;+r.id);if(a&amp;&amp;n._fullLayout._drawing){var o=v(a,t);o&amp;&amp;i.call(&quot;_guiRelayout&quot;,n,{shapes:o}),n._fullLayout._drawing=!1}}r.selection={},r.selection.selectionDefs=t.selectionDefs=[],r.selection.mergedPolygons=t.mergedPolygons=[]}function N(t,e,r,n){var i,a,o,s=[],l=e.map((function(t){return t._id})),c=r.map((function(t){return t._id}));for(o=0;o&lt;t.calcdata.length;o++)if(!0===(a=(i=t.calcdata[o])[0].trace).visible&amp;&amp;a._module&amp;&amp;a._module.selectPoints)if(!n||a.subplot!==n&amp;&amp;a.geo!==n)if(&quot;splom&quot;===a.type&amp;&amp;a._xaxes[l[0]]&amp;&amp;a._yaxes[c[0]]){var u=h(a._module,i,e[0],r[0]);u.scene=t._fullLayout._splomScenes[a.uid],s.push(u)}else if(&quot;sankey&quot;===a.type){var f=h(a._module,i,e[0],r[0]);s.push(f)}else{if(-1===l.indexOf(a.xaxis))continue;if(-1===c.indexOf(a.yaxis))continue;s.push(h(a._module,i,_(t,a.xaxis),_(t,a.yaxis)))}else s.push(h(a._module,i,e[0],r[0]));return s;function h(t,e,r,n){return{_module:t,cd:e,xaxis:r,yaxis:n}}}function j(t){var e=t.searchInfo.cd[0].trace,r=t.pointNumber,n=t.pointNumbers,i=n.length&gt;0?n[0]:r;return!!e.selectedpoints&amp;&amp;e.selectedpoints.indexOf(i)&gt;-1}function U(t,e,r){var n,a,o,s;for(n=0;n&lt;e.length;n++){var l=e[n].cd[0].trace._fullInput,c=t._fullLayout._tracePreGUI[l.uid]||{};void 0===c.selectedpoints&amp;&amp;(c.selectedpoints=l._input.selectedpoints||null)}if(r){var u=r.points||[];for(n=0;n&lt;e.length;n++)(s=e[n].cd[0].trace)._input.selectedpoints=s._fullInput.selectedpoints=[],s._fullInput!==s&amp;&amp;(s.selectedpoints=[]);for(n=0;n&lt;u.length;n++){var f=u[n],h=f.data,p=f.fullData;f.pointIndices?([].push.apply(h.selectedpoints,f.pointIndices),s._fullInput!==s&amp;&amp;[].push.apply(p.selectedpoints,f.pointIndices)):(h.selectedpoints.push(f.pointIndex),s._fullInput!==s&amp;&amp;p.selectedpoints.push(f.pointIndex))}}else for(n=0;n&lt;e.length;n++)delete(s=e[n].cd[0].trace).selectedpoints,delete s._input.selectedpoints,s._fullInput!==s&amp;&amp;delete s._fullInput.selectedpoints;var d=!1;for(n=0;n&lt;e.length;n++){s=(o=(a=e[n]).cd)[0].trace,i.traceIs(s,&quot;regl&quot;)&amp;&amp;(d=!0);var g=a._module,m=g.styleOnSelect||g.style;m&amp;&amp;(m(t,o,o[0].node3),o[0].nodeRangePlot3&amp;&amp;m(t,o,o[0].nodeRangePlot3))}d&amp;&amp;(w(t),T(t))}function V(t,e){if(Array.isArray(t))for(var r=e.cd,n=e.cd[0].trace,i=0;i&lt;t.length;i++)t[i]=l(t[i],n,r);return t}function q(t,e){for(var r=[],n=0;n&lt;t.length;n++){r[n]=[];for(var i=0;i&lt;t[n].length;i++){r[n][i]=[],r[n][i][0]=i?&quot;L&quot;:&quot;M&quot;;for(var a=0;a&lt;t[n][i].length;a++)r[n][i].push(t[n][i][a])}e||r[n].push([&quot;Z&quot;,r[n][0][1],r[n][0][2]])}return r}e.exports={prepSelect:function(t,e,r,i,l){var c=u(l),v=f(l),x=p(l),_=h(l),w=d(l),T=&quot;drawcircle&quot;===l,E=&quot;drawline&quot;===l||T,C=i.gd,O=C._fullLayout,D=O._zoomlayer,j=i.element.getBoundingClientRect(),H=i.plotinfo,G=P(H),Y=e-j.left,W=r-j.top;O._calcInverseTransform(C);var X=y.apply3DTransform(O._invTransform)(Y,W);Y=X[0],W=X[1];var Z,J,K,Q,$,tt,et,rt=O._invScaleX,nt=O._invScaleY,it=Y,at=W,ot=&quot;M&quot;+Y+&quot;,&quot;+W,st=i.xaxes[0]._length,lt=i.yaxes[0]._length,ct=i.xaxes.concat(i.yaxes),ut=t.altKey&amp;&amp;!(h(l)&amp;&amp;x);F(t,C,i),c&amp;&amp;(Z=A([[Y,W]],k.BENDPX));var ft=D.selectAll(&quot;path.select-outline-&quot;+H.id).data(_?[0]:[1,2]),ht=O.newshape;ft.enter().append(&quot;path&quot;).attr(&quot;class&quot;,(function(t){return&quot;select-outline select-outline-&quot;+t+&quot; select-outline-&quot;+H.id})).style(_?{opacity:ht.opacity/2,fill:x?void 0:ht.fillcolor,stroke:ht.line.color,&quot;stroke-dasharray&quot;:a(ht.line.dash,ht.line.width),&quot;stroke-width&quot;:ht.line.width+&quot;px&quot;}:{}).attr(&quot;fill-rule&quot;,ht.fillrule).classed(&quot;cursor-move&quot;,!!_).attr(&quot;transform&quot;,G).attr(&quot;d&quot;,ot+&quot;Z&quot;);var pt,dt=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).style({fill:o.background,stroke:o.defaultLine,&quot;stroke-width&quot;:1}).attr(&quot;transform&quot;,G).attr(&quot;d&quot;,&quot;M0,0Z&quot;),gt=O._uid+k.SELECTID,mt=[],vt=N(C,i.xaxes,i.yaxes,i.subplot);function yt(t,e){return t-e}pt=H.fillRangeItems?H.fillRangeItems:v?function(t,e){var r=t.range={};for($=0;$&lt;ct.length;$++){var n=ct[$],i=n._id.charAt(0);r[n._id]=[L(n,e[i+&quot;min&quot;]),L(n,e[i+&quot;max&quot;])].sort(yt)}}:function(t,e,r){var n=t.lassoPoints={};for($=0;$&lt;ct.length;$++){var i=ct[$];n[i._id]=r.filtered.map(I(i))}},i.moveFn=function(t,e){it=Math.max(0,Math.min(st,rt*t+Y)),at=Math.max(0,Math.min(lt,nt*e+W));var r=Math.abs(it-Y),a=Math.abs(at-W);if(v){var o,s,l;if(w){var u=O.selectdirection;switch(o=&quot;any&quot;===u?a&lt;Math.min(.6*r,M)?&quot;h&quot;:r&lt;Math.min(.6*a,M)?&quot;v&quot;:&quot;d&quot;:u){case&quot;h&quot;:s=T?lt/2:0,l=lt;break;case&quot;v&quot;:s=T?st/2:0,l=st}}if(_)switch(O.newshape.drawdirection){case&quot;vertical&quot;:o=&quot;h&quot;,s=T?lt/2:0,l=lt;break;case&quot;horizontal&quot;:o=&quot;v&quot;,s=T?st/2:0,l=st;break;case&quot;ortho&quot;:r&lt;a?(o=&quot;h&quot;,s=W,l=at):(o=&quot;v&quot;,s=Y,l=it);break;default:o=&quot;d&quot;}&quot;h&quot;===o?((Q=E?m(T,[it,s],[it,l]):[[Y,s],[Y,l],[it,l],[it,s]]).xmin=E?it:Math.min(Y,it),Q.xmax=E?it:Math.max(Y,it),Q.ymin=Math.min(s,l),Q.ymax=Math.max(s,l),dt.attr(&quot;d&quot;,&quot;M&quot;+Q.xmin+&quot;,&quot;+(W-M)+&quot;h-4v&quot;+2*M+&quot;h4ZM&quot;+(Q.xmax-1)+&quot;,&quot;+(W-M)+&quot;h4v&quot;+2*M+&quot;h-4Z&quot;)):&quot;v&quot;===o?((Q=E?m(T,[s,at],[l,at]):[[s,W],[s,at],[l,at],[l,W]]).xmin=Math.min(s,l),Q.xmax=Math.max(s,l),Q.ymin=E?at:Math.min(W,at),Q.ymax=E?at:Math.max(W,at),dt.attr(&quot;d&quot;,&quot;M&quot;+(Y-M)+&quot;,&quot;+Q.ymin+&quot;v-4h&quot;+2*M+&quot;v4ZM&quot;+(Y-M)+&quot;,&quot;+(Q.ymax-1)+&quot;v4h&quot;+2*M+&quot;v-4Z&quot;)):&quot;d&quot;===o&amp;&amp;((Q=E?m(T,[Y,W],[it,at]):[[Y,W],[Y,at],[it,at],[it,W]]).xmin=Math.min(Y,it),Q.xmax=Math.max(Y,it),Q.ymin=Math.min(W,at),Q.ymax=Math.max(W,at),dt.attr(&quot;d&quot;,&quot;M0,0Z&quot;))}else c&amp;&amp;(Z.addPt([it,at]),Q=Z.filtered);i.selectionDefs&amp;&amp;i.selectionDefs.length?(K=function(t,e,r){if(r)return n.difference({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions;return n.union({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions}(i.mergedPolygons,Q,ut),Q.subtract=ut,J=R(i.selectionDefs.concat([Q]))):(K=[Q],J=S(Q)),g(q(K,x),ft,i),w&amp;&amp;b.throttle(gt,k.SELECTDELAY,(function(){var t;mt=[];var e,r=[];for($=0;$&lt;vt.length;$++)if(e=(tt=vt[$])._module.selectPoints(tt,J),r.push(e),t=V(e,tt),mt.length)for(var n=0;n&lt;t.length;n++)mt.push(t[n]);else mt=t;U(C,vt,et={points:mt}),pt(et,Q,Z),i.gd.emit(&quot;plotly_selecting&quot;,et)}))},i.clickFn=function(t,e){if(dt.remove(),C._fullLayout._activeShapeIndex&gt;=0)C._fullLayout._deactivateShape(C);else if(!_){var r=O.clickmode;b.done(gt).then((function(){if(b.clear(gt),2===t){for(ft.remove(),$=0;$&lt;vt.length;$++)(tt=vt[$])._module.selectPoints(tt,!1);U(C,vt),B(i),C.emit(&quot;plotly_deselect&quot;,null)}else r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;z(e,C,i.xaxes,i.yaxes,i.subplot,i,ft),&quot;event&quot;===r&amp;&amp;C.emit(&quot;plotly_selected&quot;,void 0);s.click(C,e)})).catch(y.error)}},i.doneFn=function(){dt.remove(),b.done(gt).then((function(){b.clear(gt),i.gd.emit(&quot;plotly_selected&quot;,et),Q&amp;&amp;i.selectionDefs&amp;&amp;(Q.subtract=ut,i.selectionDefs.push(Q),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,K)),i.doneFnCompleted&amp;&amp;i.doneFnCompleted(mt)})).catch(y.error),_&amp;&amp;B(i)}},clearSelect:E,clearSelectionsCache:B,selectOnClick:z}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../components/fx/helpers&quot;:679,&quot;../../components/shapes/draw_newshape/display_outlines&quot;:728,&quot;../../components/shapes/draw_newshape/helpers&quot;:729,&quot;../../components/shapes/draw_newshape/newshapes&quot;:730,&quot;../../lib&quot;:778,&quot;../../lib/clear_gl_canvases&quot;:762,&quot;../../lib/polygon&quot;:790,&quot;../../lib/throttle&quot;:804,&quot;../../plot_api/subroutines&quot;:818,&quot;../../registry&quot;:911,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./handle_outline&quot;:838,&quot;./helpers&quot;:839,polybooljs:517}],848:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-time-format&quot;).utcFormat,a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../lib&quot;),s=o.cleanNumber,l=o.ms2DateTime,c=o.dateTime2ms,u=o.ensureNumber,f=o.isArrayOrTypedArray,h=t(&quot;../../constants/numerical&quot;),p=h.FP_SAFE,d=h.BADNUM,g=h.LOG_CLIP,m=h.ONEWEEK,v=h.ONEDAY,y=h.ONEHOUR,x=h.ONEMIN,b=h.ONESEC,_=t(&quot;./axis_ids&quot;),w=t(&quot;./constants&quot;),T=w.HOUR_PATTERN,k=w.WEEKDAY_PATTERN;function M(t){return Math.pow(10,t)}function A(t){return null!=t}e.exports=function(t,e){e=e||{};var r=t._id||&quot;x&quot;,h=r.charAt(0);function S(e,r){if(e&gt;0)return Math.log(e)/Math.LN10;if(e&lt;=0&amp;&amp;r&amp;&amp;t.range&amp;&amp;2===t.range.length){var n=t.range[0],i=t.range[1];return.5*(n+i-2*g*Math.abs(n-i))}return d}function E(e,r,n,i){if((i||{}).msUTC&amp;&amp;a(e))return+e;var s=c(e,n||t.calendar);if(s===d){if(!a(e))return d;e=+e;var l=Math.floor(10*o.mod(e+.05,1)),u=Math.round(e-l/10);s=c(new Date(u))+l/10}return s}function C(e,r,n){return l(e,r,n||t.calendar)}function L(e){return t._categories[Math.round(e)]}function I(e){if(A(e)){if(void 0===t._categoriesMap&amp;&amp;(t._categoriesMap={}),void 0!==t._categoriesMap[e])return t._categoriesMap[e];t._categories.push(&quot;number&quot;==typeof e?String(e):e);var r=t._categories.length-1;return t._categoriesMap[e]=r,r}return d}function P(e){if(t._categoriesMap)return t._categoriesMap[e]}function z(t){var e=P(t);return void 0!==e?e:a(t)?+t:void 0}function O(t){return a(t)?+t:P(t)}function D(t,e,r){return n.round(r+e*t,2)}function R(t,e,r){return(t-r)/e}var F=function(e){return a(e)?D(e,t._m,t._b):d},B=function(e){return R(e,t._m,t._b)};if(t.rangebreaks){var N=&quot;y&quot;===h;F=function(e){if(!a(e))return d;var r=t._rangebreaks.length;if(!r)return D(e,t._m,t._b);var n=N;t.range[0]&gt;t.range[1]&amp;&amp;(n=!n);for(var i=n?-1:1,o=i*e,s=0,l=0;l&lt;r;l++){var c=i*t._rangebreaks[l].min,u=i*t._rangebreaks[l].max;if(o&lt;c)break;if(!(o&gt;u)){s=o&lt;(c+u)/2?l:l+1;break}s=l+1}var f=t._B[s]||0;return isFinite(f)?D(e,t._m2,f):0},B=function(e){var r=t._rangebreaks.length;if(!r)return R(e,t._m,t._b);for(var n=0,i=0;i&lt;r&amp;&amp;!(e&lt;t._rangebreaks[i].pmin);i++)e&gt;t._rangebreaks[i].pmax&amp;&amp;(n=i+1);return R(e,t._m2,t._B[n])}}t.c2l=&quot;log&quot;===t.type?S:u,t.l2c=&quot;log&quot;===t.type?M:u,t.l2p=F,t.p2l=B,t.c2p=&quot;log&quot;===t.type?function(t,e){return F(S(t,e))}:F,t.p2c=&quot;log&quot;===t.type?function(t){return M(B(t))}:B,-1!==[&quot;linear&quot;,&quot;-&quot;].indexOf(t.type)?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=s,t.c2d=t.c2r=t.l2d=t.l2r=u,t.d2p=t.r2p=function(e){return t.l2p(s(e))},t.p2d=t.p2r=B,t.cleanPos=u):&quot;log&quot;===t.type?(t.d2r=t.d2l=function(t,e){return S(s(t),e)},t.r2d=t.r2c=function(t){return M(s(t))},t.d2c=t.r2l=s,t.c2d=t.l2r=u,t.c2r=S,t.l2d=M,t.d2p=function(e,r){return t.l2p(t.d2r(e,r))},t.p2d=function(t){return M(B(t))},t.r2p=function(e){return t.l2p(s(e))},t.p2r=B,t.cleanPos=u):&quot;date&quot;===t.type?(t.d2r=t.r2d=o.identity,t.d2c=t.r2c=t.d2l=t.r2l=E,t.c2d=t.c2r=t.l2d=t.l2r=C,t.d2p=t.r2p=function(e,r,n){return t.l2p(E(e,0,n))},t.p2d=t.p2r=function(t,e,r){return C(B(t),e,r)},t.cleanPos=function(e){return o.cleanDate(e,d,t.calendar)}):&quot;category&quot;===t.type?(t.d2c=t.d2l=I,t.r2d=t.c2d=t.l2d=L,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=O(e);return void 0!==r?r:t.fraction2r(.5)},t.l2r=t.c2r=u,t.r2l=O,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return L(B(t))},t.r2p=t.d2p,t.p2r=B,t.cleanPos=function(t){return&quot;string&quot;==typeof t&amp;&amp;&quot;&quot;!==t?t:u(t)}):&quot;multicategory&quot;===t.type&amp;&amp;(t.r2d=t.c2d=t.l2d=L,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=z(e);return void 0!==r?r:t.fraction2r(.5)},t.r2c_just_indices=P,t.l2r=t.c2r=u,t.r2l=z,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return L(B(t))},t.r2p=t.d2p,t.p2r=B,t.cleanPos=function(t){return Array.isArray(t)||&quot;string&quot;==typeof t&amp;&amp;&quot;&quot;!==t?t:u(t)},t.setupMultiCategory=function(n){var i,a,s=t._traceIndices,l=t._matchGroup;if(l&amp;&amp;0===t._categories.length)for(var c in l)if(c!==r){var u=e[_.id2name(c)];s=s.concat(u._traceIndices)}var p=[[0,{}],[0,{}]],d=[];for(i=0;i&lt;s.length;i++){var g=n[s[i]];if(h in g){var m=g[h],v=g._length||o.minRowLength(m);if(f(m[0])&amp;&amp;f(m[1]))for(a=0;a&lt;v;a++){var y=m[0][a],x=m[1][a];A(y)&amp;&amp;A(x)&amp;&amp;(d.push([y,x]),y in p[0][1]||(p[0][1][y]=p[0][0]++),x in p[1][1]||(p[1][1][x]=p[1][0]++))}}}for(d.sort((function(t,e){var r=p[0][1],n=r[t[0]]-r[e[0]];if(n)return n;var i=p[1][1];return i[t[1]]-i[e[1]]})),i=0;i&lt;d.length;i++)I(d[i])}),t.fraction2r=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return t.l2r(r+e*(n-r))},t.r2fraction=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return(t.r2l(e)-r)/(n-r)},t.cleanRange=function(e,r){r||(r={}),e||(e=&quot;range&quot;);var n,i,s=o.nestedProperty(t,e).get();if(i=(i=&quot;date&quot;===t.type?o.dfltRange(t.calendar):&quot;y&quot;===h?w.DFLTRANGEY:r.dfltRange||w.DFLTRANGEX).slice(),&quot;tozero&quot;!==t.rangemode&amp;&amp;&quot;nonnegative&quot;!==t.rangemode||(i[0]=0),s&amp;&amp;2===s.length)for(&quot;date&quot;!==t.type||t.autorange||(s[0]=o.cleanDate(s[0],d,t.calendar),s[1]=o.cleanDate(s[1],d,t.calendar)),n=0;n&lt;2;n++)if(&quot;date&quot;===t.type){if(!o.isDateTime(s[n],t.calendar)){t[e]=i;break}if(t.r2l(s[0])===t.r2l(s[1])){var l=o.constrain(t.r2l(s[0]),o.MIN_MS+1e3,o.MAX_MS-1e3);s[0]=t.l2r(l-1e3),s[1]=t.l2r(l+1e3);break}}else{if(!a(s[n])){if(!a(s[1-n])){t[e]=i;break}s[n]=s[1-n]*(n?10:.1)}if(s[n]&lt;-p?s[n]=-p:s[n]&gt;p&amp;&amp;(s[n]=p),s[0]===s[1]){var c=Math.max(1,Math.abs(1e-6*s[0]));s[0]-=c,s[1]+=c}}else o.nestedProperty(t,e).set(i)},t.setScale=function(r){var n=e._size;if(t.overlaying){var i=_.getFromId({_fullLayout:e},t.overlaying);t.domain=i.domain}var a=r&amp;&amp;t._r?&quot;_r&quot;:&quot;range&quot;,o=t.calendar;t.cleanRange(a);var s,l,c=t.r2l(t[a][0],o),u=t.r2l(t[a][1],o),f=&quot;y&quot;===h;if((f?(t._offset=n.t+(1-t.domain[1])*n.h,t._length=n.h*(t.domain[1]-t.domain[0]),t._m=t._length/(c-u),t._b=-t._m*u):(t._offset=n.l+t.domain[0]*n.w,t._length=n.w*(t.domain[1]-t.domain[0]),t._m=t._length/(u-c),t._b=-t._m*c),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks)&amp;&amp;(t._rangebreaks=t.locateBreaks(Math.min(c,u),Math.max(c,u)),t._rangebreaks.length)){for(s=0;s&lt;t._rangebreaks.length;s++)l=t._rangebreaks[s],t._lBreaks+=Math.abs(l.max-l.min);var p=f;c&gt;u&amp;&amp;(p=!p),p&amp;&amp;t._rangebreaks.reverse();var d=p?-1:1;for(t._m2=d*t._length/(Math.abs(u-c)-t._lBreaks),t._B.push(-t._m2*(f?u:c)),s=0;s&lt;t._rangebreaks.length;s++)l=t._rangebreaks[s],t._B.push(t._B[t._B.length-1]-d*t._m2*(l.max-l.min));for(s=0;s&lt;t._rangebreaks.length;s++)(l=t._rangebreaks[s]).pmin=F(l.min),l.pmax=F(l.max)}if(!isFinite(t._m)||!isFinite(t._b)||t._length&lt;0)throw e._replotting=!1,new Error(&quot;Something went wrong with axis scaling&quot;)},t.maskBreaks=function(e){for(var r,n,i,a,l,c=t.rangebreaks||[],u=0;u&lt;c.length;u++){var f=c[u];if(f.enabled)if(f.bounds){var h=f.pattern;switch(n=(r=o.simpleMap(f.bounds,h?s:t.d2c))[0],i=r[1],h){case k:a=(l=new Date(e)).getUTCDay(),n&gt;i&amp;&amp;(i+=7,a&lt;n&amp;&amp;(a+=7));break;case T:a=(l=new Date(e)).getUTCHours()+(l.getUTCMinutes()/60+l.getUTCSeconds()/3600+l.getUTCMilliseconds()/36e5),n&gt;i&amp;&amp;(i+=24,a&lt;n&amp;&amp;(a+=24));break;case&quot;&quot;:a=e}if(a&gt;=n&amp;&amp;a&lt;i)return d}else for(var p=o.simpleMap(f.values,t.d2c).sort(o.sorterAsc),g=0;g&lt;p.length;g++)if(i=(n=p[g])+f.dvalue,e&gt;=n&amp;&amp;e&lt;i)return d}return e},t.locateBreaks=function(e,r){var n,i,a,l,c=[];if(!t.rangebreaks)return c;var u=t.rangebreaks.slice().sort((function(t,e){return t.pattern===k&amp;&amp;e.pattern===T?-1:e.pattern===k&amp;&amp;t.pattern===T?1:0})),f=function(t,n){if((t=o.constrain(t,e,r))!==(n=o.constrain(n,e,r))){for(var i=!0,a=0;a&lt;c.length;a++){var s=c[a];t&lt;s.max&amp;&amp;n&gt;=s.min&amp;&amp;(t&lt;s.min&amp;&amp;(s.min=t),n&gt;s.max&amp;&amp;(s.max=n),i=!1)}i&amp;&amp;c.push({min:t,max:n})}};for(n=0;n&lt;u.length;n++){var h=u[n];if(h.enabled)if(h.bounds){var p=e,d=r;h.pattern&amp;&amp;(p=Math.floor(p)),a=(i=o.simpleMap(h.bounds,h.pattern?s:t.r2l))[0],l=i[1];var g,_,w=new Date(p);switch(h.pattern){case k:_=m,g=(l-a+(l&lt;a?7:0))*v,p+=a*v-(w.getUTCDay()*v+w.getUTCHours()*y+w.getUTCMinutes()*x+w.getUTCSeconds()*b+w.getUTCMilliseconds());break;case T:_=v,g=(l-a+(l&lt;a?24:0))*y,p+=a*y-(w.getUTCHours()*y+w.getUTCMinutes()*x+w.getUTCSeconds()*b+w.getUTCMilliseconds());break;default:p=Math.min(i[0],i[1]),g=_=(d=Math.max(i[0],i[1]))-p}for(var M=p;M&lt;d;M+=_)f(M,M+g)}else for(var A=o.simpleMap(h.values,t.d2c),S=0;S&lt;A.length;S++)f(a=A[S],l=a+h.dvalue)}return c.sort((function(t,e){return t.min-e.min})),c},t.makeCalcdata=function(e,r,n){var i,a,s,l,c=t.type,u=&quot;date&quot;===c&amp;&amp;e[r+&quot;calendar&quot;];if(r in e){if(i=e[r],l=e._length||o.minRowLength(i),o.isTypedArray(i)&amp;&amp;(&quot;linear&quot;===c||&quot;log&quot;===c)){if(l===i.length)return i;if(i.subarray)return i.subarray(0,l)}if(&quot;multicategory&quot;===c)return function(t,e){for(var r=new Array(e),n=0;n&lt;e;n++){var i=(t[0]||[])[n],a=(t[1]||[])[n];r[n]=P([i,a])}return r}(i,l);for(a=new Array(l),s=0;s&lt;l;s++)a[s]=t.d2c(i[s],0,u,n)}else{var f=r+&quot;0&quot;in e?t.d2c(e[r+&quot;0&quot;],0,u):0,h=e[&quot;d&quot;+r]?Number(e[&quot;d&quot;+r]):1;for(i=e[{x:&quot;y&quot;,y:&quot;x&quot;}[r]],l=e._length||i.length,a=new Array(l),s=0;s&lt;l;s++)a[s]=f+s*h}if(t.rangebreaks)for(s=0;s&lt;l;s++)a[s]=t.maskBreaks(a[s]);return a},t.isValidRange=function(e){return Array.isArray(e)&amp;&amp;2===e.length&amp;&amp;a(t.r2l(e[0]))&amp;&amp;a(t.r2l(e[1]))},t.isPtWithinRange=function(e,r){var n=t.c2l(e[h],null,r),i=t.r2l(t.range[0]),a=t.r2l(t.range[1]);return i&lt;a?i&lt;=n&amp;&amp;n&lt;=a:a&lt;=n&amp;&amp;n&lt;=i},t._emptyCategories=function(){t._categories=[],t._categoriesMap={}},t.clearCalc=function(){var r=t._matchGroup;if(r){var n=null,i=null;for(var a in r){var o=e[_.id2name(a)];if(o._categories){n=o._categories,i=o._categoriesMap;break}}n&amp;&amp;i?(t._categories=n,t._categoriesMap=i):t._emptyCategories()}else t._emptyCategories();if(t._initialCategories)for(var s=0;s&lt;t._initialCategories.length;s++)I(t._initialCategories[s])},t.sortByInitialCategories=function(){var n=[];if(t._emptyCategories(),t._initialCategories)for(var i=0;i&lt;t._initialCategories.length;i++)I(t._initialCategories[i]);n=n.concat(t._traceIndices);var a=t._matchGroup;for(var o in a)if(r!==o){var s=e[_.id2name(o)];s._categories=t._categories,s._categoriesMap=t._categoriesMap,n=n.concat(s._traceIndices)}return n};var j=e._d3locale;&quot;date&quot;===t.type&amp;&amp;(t._dateFormat=j?j.timeFormat:i,t._extraFormat=e._extraFormat),t._separators=e.separators,t._numFormat=j?j.numberFormat:n.format,delete t._minDtick,delete t._forceTick0}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,d3:169,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],849:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;).contrast,a=t(&quot;./layout_attributes&quot;),o=t(&quot;../array_container_defaults&quot;);function s(t){var e=[&quot;showexponent&quot;,&quot;showtickprefix&quot;,&quot;showticksuffix&quot;].filter((function(e){return void 0!==t[e]}));if(e.every((function(r){return t[r]===t[e[0]]}))||1===e.length)return t[e[0]]}function l(t,e){function r(r,i){return n.coerce(t,e,a.tickformatstops,r,i)}r(&quot;enabled&quot;)&amp;&amp;(r(&quot;dtickrange&quot;),r(&quot;value&quot;))}e.exports=function(t,e,r,c,u,f){f&amp;&amp;1!==f.pass||function(t,e,r,n,i){var a=s(t);r(&quot;tickprefix&quot;)&amp;&amp;r(&quot;showtickprefix&quot;,a);r(&quot;ticksuffix&quot;,i.tickSuffixDflt)&amp;&amp;r(&quot;showticksuffix&quot;,a)}(t,0,r,0,u),f&amp;&amp;2!==f.pass||function(t,e,r,c,u){var f=s(t);r(&quot;tickprefix&quot;)&amp;&amp;r(&quot;showtickprefix&quot;,f);r(&quot;ticksuffix&quot;,u.tickSuffixDflt)&amp;&amp;r(&quot;showticksuffix&quot;,f);if(r(&quot;showticklabels&quot;)){var h=u.font||{},p=e.color,d=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)?i(u.bgColor):p&amp;&amp;p!==a.color.dflt?p:h.color;if(n.coerceFont(r,&quot;tickfont&quot;,{family:h.family,size:h.size,color:d}),r(&quot;tickangle&quot;),&quot;category&quot;!==c){var g=r(&quot;tickformat&quot;);o(t,e,{name:&quot;tickformatstops&quot;,inclusionAttr:&quot;enabled&quot;,handleItemDefaults:l}),e.tickformatstops.length||delete e.tickformatstops,g||&quot;date&quot;===c||(r(&quot;showexponent&quot;,f),r(&quot;exponentformat&quot;),r(&quot;minexponent&quot;),r(&quot;separatethousands&quot;))}}}(t,e,r,c,u)}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../array_container_defaults&quot;:823,&quot;./layout_attributes&quot;:842}],850:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r,a){var o=n.coerce2(t,e,i,&quot;ticklen&quot;),s=n.coerce2(t,e,i,&quot;tickwidth&quot;),l=n.coerce2(t,e,i,&quot;tickcolor&quot;,e.color);r(&quot;ticks&quot;,a.outerTicks||o||s||l?&quot;outside&quot;:&quot;&quot;)||(delete e.ticklen,delete e.tickwidth,delete e.tickcolor)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:842}],851:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./clean_ticks&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a){function o(r){var n=t[r];return void 0!==n?n:(e._template||{})[r]}var s=o(&quot;tick0&quot;),l=o(&quot;dtick&quot;),c=o(&quot;tickvals&quot;),u=r(&quot;tickmode&quot;,i(c)?&quot;array&quot;:l?&quot;linear&quot;:&quot;auto&quot;);if(&quot;auto&quot;===u)r(&quot;nticks&quot;);else if(&quot;linear&quot;===u){var f=e.dtick=n.dtick(l,a);e.tick0=n.tick0(s,a,e.calendar,f)}else if(&quot;multicategory&quot;!==a){void 0===r(&quot;tickvals&quot;)?e.tickmode=&quot;auto&quot;:r(&quot;ticktext&quot;)}}},{&quot;../../lib&quot;:778,&quot;./clean_ticks&quot;:833}],852:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;./axes&quot;);e.exports=function(t,e,r,l){var c=t._fullLayout;if(0!==e.length){var u,f,h,p;l&amp;&amp;(u=l());var d=n.ease(r.easing);return t._transitionData._interruptCallbacks.push((function(){return window.cancelAnimationFrame(p),p=null,function(){for(var r={},n=0;n&lt;e.length;n++){var a=e[n],o=a.plotinfo.xaxis,s=a.plotinfo.yaxis;a.xr0&amp;&amp;(r[o._name+&quot;.range&quot;]=a.xr0.slice()),a.yr0&amp;&amp;(r[s._name+&quot;.range&quot;]=a.yr0.slice())}return i.call(&quot;relayout&quot;,t,r).then((function(){for(var t=0;t&lt;e.length;t++)g(e[t].plotinfo)}))}()})),f=Date.now(),p=window.requestAnimationFrame((function n(){h=Date.now();for(var a=Math.min(1,(h-f)/r.duration),o=d(a),s=0;s&lt;e.length;s++)m(e[s],o);h-f&gt;r.duration?(!function(){for(var r={},n=0;n&lt;e.length;n++){var a=e[n],o=a.plotinfo.xaxis,s=a.plotinfo.yaxis;a.xr1&amp;&amp;(r[o._name+&quot;.range&quot;]=a.xr1.slice()),a.yr1&amp;&amp;(r[s._name+&quot;.range&quot;]=a.yr1.slice())}u&amp;&amp;u(),i.call(&quot;relayout&quot;,t,r).then((function(){for(var t=0;t&lt;e.length;t++)g(e[t].plotinfo)}))}(),p=window.cancelAnimationFrame(n)):p=window.requestAnimationFrame(n)})),Promise.resolve()}function g(t){var e=t.xaxis,r=t.yaxis;c._defs.select(&quot;#&quot;+t.clipId+&quot;&gt; rect&quot;).call(o.setTranslate,0,0).call(o.setScale,1,1),t.plot.call(o.setTranslate,e._offset,r._offset).call(o.setScale,1,1);var n=t.plot.selectAll(&quot;.scatterlayer .trace&quot;);n.selectAll(&quot;.point&quot;).call(o.setPointGroupScale,1,1),n.selectAll(&quot;.textpoint&quot;).call(o.setTextPointsScale,1,1),n.call(o.hideOutsideRangePoints,t)}function m(e,r){var n=e.plotinfo,i=n.xaxis,l=n.yaxis,c=i._length,u=l._length,f=!!e.xr1,h=!!e.yr1,p=[];if(f){var d=a.simpleMap(e.xr0,i.r2l),g=a.simpleMap(e.xr1,i.r2l),m=d[1]-d[0],v=g[1]-g[0];p[0]=(d[0]*(1-r)+r*g[0]-d[0])/(d[1]-d[0])*c,p[2]=c*(1-r+r*v/m),i.range[0]=i.l2r(d[0]*(1-r)+r*g[0]),i.range[1]=i.l2r(d[1]*(1-r)+r*g[1])}else p[0]=0,p[2]=c;if(h){var y=a.simpleMap(e.yr0,l.r2l),x=a.simpleMap(e.yr1,l.r2l),b=y[1]-y[0],_=x[1]-x[0];p[1]=(y[1]*(1-r)+r*x[1]-y[1])/(y[0]-y[1])*u,p[3]=u*(1-r+r*_/b),l.range[0]=i.l2r(y[0]*(1-r)+r*x[0]),l.range[1]=l.l2r(y[1]*(1-r)+r*x[1])}else p[1]=0,p[3]=u;s.drawOne(t,i,{skipTitle:!0}),s.drawOne(t,l,{skipTitle:!0}),s.redrawComponents(t,[i._id,l._id]);var w=f?c/p[2]:1,T=h?u/p[3]:1,k=f?p[0]:0,M=h?p[1]:0,A=f?p[0]/p[2]*c:0,S=h?p[1]/p[3]*u:0,E=i._offset-A,C=l._offset-S;n.clipRect.call(o.setTranslate,k,M).call(o.setScale,1/w,1/T),n.plot.call(o.setTranslate,E,C).call(o.setScale,w,T),o.setPointGroupScale(n.zoomScalePts,1/w,1/T),o.setTextPointsScale(n.zoomScaleTxt,1/w,1/T)}s.redrawComponents(t)}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./axes&quot;:828,d3:169}],853:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;).traceIs,i=t(&quot;./axis_autotype&quot;);function a(t){return{v:&quot;x&quot;,h:&quot;y&quot;}[t.orientation||&quot;v&quot;]}function o(t,e){var r=a(t),i=n(t,&quot;box-violin&quot;),o=n(t._fullInput||{},&quot;candlestick&quot;);return i&amp;&amp;!o&amp;&amp;e===r&amp;&amp;void 0===t[r]&amp;&amp;void 0===t[r+&quot;0&quot;]}e.exports=function(t,e,r,s){r(&quot;autotypenumbers&quot;,s.autotypenumbersDflt),&quot;-&quot;===r(&quot;type&quot;,(s.splomStash||{}).type)&amp;&amp;(!function(t,e){if(&quot;-&quot;!==t.type)return;var r,s=t._id,l=s.charAt(0);-1!==s.indexOf(&quot;scene&quot;)&amp;&amp;(s=l);var c=function(t,e,r){for(var n=0;n&lt;t.length;n++){var i=t[n];if(&quot;splom&quot;===i.type&amp;&amp;i._length&gt;0&amp;&amp;(i[&quot;_&quot;+r+&quot;axes&quot;]||{})[e])return i;if((i[r+&quot;axis&quot;]||r)===e){if(o(i,r))return i;if((i[r]||[]).length||i[r+&quot;0&quot;])return i}}}(e,s,l);if(!c)return;if(&quot;histogram&quot;===c.type&amp;&amp;l==={v:&quot;y&quot;,h:&quot;x&quot;}[c.orientation||&quot;v&quot;])return void(t.type=&quot;linear&quot;);var u=l+&quot;calendar&quot;,f=c[u],h={noMultiCategory:!n(c,&quot;cartesian&quot;)||n(c,&quot;noMultiCategory&quot;)};&quot;box&quot;===c.type&amp;&amp;c._hasPreCompStats&amp;&amp;l==={h:&quot;x&quot;,v:&quot;y&quot;}[c.orientation||&quot;v&quot;]&amp;&amp;(h.noMultiCategory=!0);if(h.autotypenumbers=t.autotypenumbers,o(c,l)){var p=a(c),d=[];for(r=0;r&lt;e.length;r++){var g=e[r];n(g,&quot;box-violin&quot;)&amp;&amp;(g[l+&quot;axis&quot;]||l)===s&amp;&amp;(void 0!==g[p]?d.push(g[p][0]):void 0!==g.name?d.push(g.name):d.push(&quot;text&quot;),g[u]!==f&amp;&amp;(f=void 0))}t.type=i(d,f,h)}else if(&quot;splom&quot;===c.type){var m=c.dimensions[c._axesDim[s]];m.visible&amp;&amp;(t.type=i(m.values,f,h))}else t.type=i(c[l]||[c[l+&quot;0&quot;]],f,h)}(e,s.data),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:t.type=e.type)}},{&quot;../../registry&quot;:911,&quot;./axis_autotype&quot;:829}],854:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;);function a(t,e,r){var n,a,o,s=!1;if(&quot;data&quot;===e.type)n=t._fullData[null!==e.traces?e.traces[0]:0];else{if(&quot;layout&quot;!==e.type)return!1;n=t._fullLayout}return a=i.nestedProperty(n,e.prop).get(),(o=r[e.type]=r[e.type]||{}).hasOwnProperty(e.prop)&amp;&amp;o[e.prop]!==a&amp;&amp;(s=!0),o[e.prop]=a,{changed:s,value:a}}function o(t,e){var r=[],n=e[0],a={};if(&quot;string&quot;==typeof n)a[n]=e[1];else{if(!i.isPlainObject(n))return r;a=n}return l(a,(function(t,e,n){r.push({type:&quot;layout&quot;,prop:t,value:n})}),&quot;&quot;,0),r}function s(t,e){var r,n,a,o,s=[];if(n=e[0],a=e[1],r=e[2],o={},&quot;string&quot;==typeof n)o[n]=a;else{if(!i.isPlainObject(n))return s;o=n,void 0===r&amp;&amp;(r=a)}return void 0===r&amp;&amp;(r=null),l(o,(function(e,n,i){var a,o;if(Array.isArray(i)){o=i.slice();var l=Math.min(o.length,t.data.length);r&amp;&amp;(l=Math.min(l,r.length)),a=[];for(var c=0;c&lt;l;c++)a[c]=r?r[c]:c}else o=i,a=r?r.slice():null;if(null===a)Array.isArray(o)&amp;&amp;(o=o[0]);else if(Array.isArray(a)){if(!Array.isArray(o)){var u=o;o=[];for(var f=0;f&lt;a.length;f++)o[f]=u}o.length=Math.min(a.length,o.length)}s.push({type:&quot;data&quot;,prop:e,traces:a,value:o})}),&quot;&quot;,0),s}function l(t,e,r,n){Object.keys(t).forEach((function(a){var o=t[a];if(&quot;_&quot;!==a[0]){var s=r+(n&gt;0?&quot;.&quot;:&quot;&quot;)+a;i.isPlainObject(o)?l(o,e,s,n+1):e(s,a,o)}}))}r.manageCommandObserver=function(t,e,n,o){var s={},l=!0;e&amp;&amp;e._commandObserver&amp;&amp;(s=e._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var c=r.hasSimpleAPICommandBindings(t,n,s.lookupTable);if(e&amp;&amp;e._commandObserver){if(c)return s;if(e._commandObserver.remove)return e._commandObserver.remove(),e._commandObserver=null,s}if(c){a(t,c,s.cache),s.check=function(){if(l){var e=a(t,c,s.cache);return e.changed&amp;&amp;o&amp;&amp;void 0!==s.lookupTable[e.value]&amp;&amp;(s.disable(),Promise.resolve(o({value:e.value,type:c.type,prop:c.prop,traces:c.traces,index:s.lookupTable[e.value]})).then(s.enable,s.enable)),e.changed}};for(var u=[&quot;plotly_relayout&quot;,&quot;plotly_redraw&quot;,&quot;plotly_restyle&quot;,&quot;plotly_update&quot;,&quot;plotly_animatingframe&quot;,&quot;plotly_afterplot&quot;],f=0;f&lt;u.length;f++)t._internalOn(u[f],s.check);s.remove=function(){for(var e=0;e&lt;u.length;e++)t._removeInternalListener(u[e],s.check)}}else i.log(&quot;Unable to automatically bind plot updates to API command&quot;),s.lookupTable={},s.remove=function(){};return s.disable=function(){l=!1},s.enable=function(){l=!0},e&amp;&amp;(e._commandObserver=s),s},r.hasSimpleAPICommandBindings=function(t,e,n){var i,a,o=e.length;for(i=0;i&lt;o;i++){var s,l=e[i],c=l.method,u=l.args;if(Array.isArray(u)||(u=[]),!c)return!1;var f=r.computeAPICommandBindings(t,c,u);if(1!==f.length)return!1;if(a){if((s=f[0]).type!==a.type)return!1;if(s.prop!==a.prop)return!1;if(Array.isArray(a.traces)){if(!Array.isArray(s.traces))return!1;s.traces.sort();for(var h=0;h&lt;a.traces.length;h++)if(a.traces[h]!==s.traces[h])return!1}else if(s.prop!==a.prop)return!1}else a=f[0],Array.isArray(a.traces)&amp;&amp;a.traces.sort();var p=(s=f[0]).value;if(Array.isArray(p)){if(1!==p.length)return!1;p=p[0]}n&amp;&amp;(n[p]=i)}return a},r.executeAPICommand=function(t,e,r){if(&quot;skip&quot;===e)return Promise.resolve();var a=n.apiMethodRegistry[e],o=[t];Array.isArray(r)||(r=[]);for(var s=0;s&lt;r.length;s++)o.push(r[s]);return a.apply(null,o).catch((function(t){return i.warn(&quot;API call to Plotly.&quot;+e+&quot; rejected.&quot;,t),Promise.reject(t)}))},r.computeAPICommandBindings=function(t,e,r){var n;switch(Array.isArray(r)||(r=[]),e){case&quot;restyle&quot;:n=s(t,r);break;case&quot;relayout&quot;:n=o(t,r);break;case&quot;update&quot;:n=s(t,[r[0],r[2]]).concat(o(t,[r[1]]));break;case&quot;animate&quot;:n=function(t,e){return Array.isArray(e[0])&amp;&amp;1===e[0].length&amp;&amp;-1!==[&quot;string&quot;,&quot;number&quot;].indexOf(typeof e[0][0])?[{type:&quot;layout&quot;,prop:&quot;_currentFrame&quot;,value:e[0][0].toString()}]:[]}(0,r);break;default:n=[]}return n}},{&quot;../lib&quot;:778,&quot;../registry&quot;:911}],855:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/extend&quot;).extendFlat;r.attributes=function(t,e){e=e||{};var r={valType:&quot;info_array&quot;,editType:(t=t||{}).editType,items:[{valType:&quot;number&quot;,min:0,max:1,editType:t.editType},{valType:&quot;number&quot;,min:0,max:1,editType:t.editType}],dflt:[0,1]},i=(t.name&amp;&amp;t.name,t.trace,e.description&amp;&amp;e.description,{x:n({},r,{}),y:n({},r,{}),editType:t.editType});return t.noGridCell||(i.row={valType:&quot;integer&quot;,min:0,dflt:0,editType:t.editType},i.column={valType:&quot;integer&quot;,min:0,dflt:0,editType:t.editType}),i},r.defaults=function(t,e,r,n){var i=n&amp;&amp;n.x||[0,1],a=n&amp;&amp;n.y||[0,1],o=e.grid;if(o){var s=r(&quot;domain.column&quot;);void 0!==s&amp;&amp;(s&lt;o.columns?i=o._domains.x[s]:delete t.domain.column);var l=r(&quot;domain.row&quot;);void 0!==l&amp;&amp;(l&lt;o.rows?a=o._domains.y[l]:delete t.domain.row)}var c=r(&quot;domain.x&quot;,i),u=r(&quot;domain.y&quot;,a);c[0]&lt;c[1]||(t.domain.x=i.slice()),u[0]&lt;u[1]||(t.domain.y=a.slice())}},{&quot;../lib/extend&quot;:768}],856:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.editType,r=t.colorEditType;void 0===r&amp;&amp;(r=e);var n={family:{valType:&quot;string&quot;,noBlank:!0,strict:!0,editType:e},size:{valType:&quot;number&quot;,min:1,editType:e},color:{valType:&quot;color&quot;,editType:r},editType:e};return t.arrayOk&amp;&amp;(n.family.arrayOk=!0,n.size.arrayOk=!0,n.color.arrayOk=!0),n}},{}],857:[function(t,e,r){&quot;use strict&quot;;e.exports={_isLinkedToArray:&quot;frames_entry&quot;,group:{valType:&quot;string&quot;},name:{valType:&quot;string&quot;},traces:{valType:&quot;any&quot;},baseframe:{valType:&quot;string&quot;},data:{valType:&quot;any&quot;},layout:{valType:&quot;any&quot;}}},{}],858:[function(t,e,r){&quot;use strict&quot;;r.projNames={equirectangular:&quot;equirectangular&quot;,mercator:&quot;mercator&quot;,orthographic:&quot;orthographic&quot;,&quot;natural earth&quot;:&quot;naturalEarth&quot;,kavrayskiy7:&quot;kavrayskiy7&quot;,miller:&quot;miller&quot;,robinson:&quot;robinson&quot;,eckert4:&quot;eckert4&quot;,&quot;azimuthal equal area&quot;:&quot;azimuthalEqualArea&quot;,&quot;azimuthal equidistant&quot;:&quot;azimuthalEquidistant&quot;,&quot;conic equal area&quot;:&quot;conicEqualArea&quot;,&quot;conic conformal&quot;:&quot;conicConformal&quot;,&quot;conic equidistant&quot;:&quot;conicEquidistant&quot;,gnomonic:&quot;gnomonic&quot;,stereographic:&quot;stereographic&quot;,mollweide:&quot;mollweide&quot;,hammer:&quot;hammer&quot;,&quot;transverse mercator&quot;:&quot;transverseMercator&quot;,&quot;albers usa&quot;:&quot;albersUsa&quot;,&quot;winkel tripel&quot;:&quot;winkel3&quot;,aitoff:&quot;aitoff&quot;,sinusoidal:&quot;sinusoidal&quot;},r.axesNames=[&quot;lonaxis&quot;,&quot;lataxis&quot;],r.lonaxisSpan={orthographic:180,&quot;azimuthal equal area&quot;:360,&quot;azimuthal equidistant&quot;:360,&quot;conic conformal&quot;:180,gnomonic:160,stereographic:180,&quot;transverse mercator&quot;:180,&quot;*&quot;:360},r.lataxisSpan={&quot;conic conformal&quot;:150,stereographic:179.5,&quot;*&quot;:180},r.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:&quot;equirectangular&quot;,projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:&quot;albers usa&quot;},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:&quot;conic conformal&quot;,projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:&quot;mercator&quot;,projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:&quot;mercator&quot;,projRotate:[0,0,0]},&quot;north america&quot;:{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:&quot;conic conformal&quot;,projRotate:[-100,0,0],projParallels:[29.5,45.5]},&quot;south america&quot;:{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:&quot;mercator&quot;,projRotate:[0,0,0]}},r.clipPad=.001,r.precision=.1,r.landColor=&quot;#F0DC82&quot;,r.waterColor=&quot;#3399FF&quot;,r.locationmodeToLayer={&quot;ISO-3&quot;:&quot;countries&quot;,&quot;USA-states&quot;:&quot;subunits&quot;,&quot;country names&quot;:&quot;countries&quot;},r.sphereSVG={type:&quot;Sphere&quot;},r.fillLayers={ocean:1,land:1,lakes:1},r.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},r.layers=[&quot;bg&quot;,&quot;ocean&quot;,&quot;land&quot;,&quot;lakes&quot;,&quot;subunits&quot;,&quot;countries&quot;,&quot;coastlines&quot;,&quot;rivers&quot;,&quot;lataxis&quot;,&quot;lonaxis&quot;,&quot;frame&quot;,&quot;backplot&quot;,&quot;frontplot&quot;],r.layersForChoropleth=[&quot;bg&quot;,&quot;ocean&quot;,&quot;land&quot;,&quot;subunits&quot;,&quot;countries&quot;,&quot;coastlines&quot;,&quot;lataxis&quot;,&quot;lonaxis&quot;,&quot;frame&quot;,&quot;backplot&quot;,&quot;rivers&quot;,&quot;lakes&quot;,&quot;frontplot&quot;],r.layerNameToAdjective={ocean:&quot;ocean&quot;,land:&quot;land&quot;,lakes:&quot;lake&quot;,subunits:&quot;subunit&quot;,countries:&quot;country&quot;,coastlines:&quot;coastline&quot;,rivers:&quot;river&quot;,frame:&quot;frame&quot;}},{}],859:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.strTranslate,s=t(&quot;../../components/color&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../components/fx&quot;),u=t(&quot;../plots&quot;),f=t(&quot;../cartesian/axes&quot;),h=t(&quot;../cartesian/autorange&quot;).getAutoRange,p=t(&quot;../../components/dragelement&quot;),d=t(&quot;../cartesian/select&quot;).prepSelect,g=t(&quot;../cartesian/select&quot;).clearSelect,m=t(&quot;../cartesian/select&quot;).selectOnClick,v=t(&quot;./zoom&quot;),y=t(&quot;./constants&quot;),x=t(&quot;../../lib/geo_location_utils&quot;),b=t(&quot;../../lib/topojson_utils&quot;),_=t(&quot;topojson-client&quot;).feature;function w(t){this.id=t.id,this.graphDiv=t.graphDiv,this.container=t.container,this.topojsonURL=t.topojsonURL,this.isStatic=t.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}t(&quot;./projections&quot;)(n);var T=w.prototype;function k(t,e){var r=y.clipPad,n=t[0]+r,i=t[1]-r,a=e[0]+r,o=e[1]-r;n&gt;0&amp;&amp;i&lt;0&amp;&amp;(i+=360);var s=(i-n)/4;return{type:&quot;Polygon&quot;,coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}e.exports=function(t){return new w(t)},T.plot=function(t,e,r){var n=this,i=e[this.id],a=[],o=!1;for(var s in y.layerNameToAdjective)if(&quot;frame&quot;!==s&amp;&amp;i[&quot;show&quot;+s]){o=!0;break}for(var l=0;l&lt;t.length;l++)if(t[0][0].trace.locationmode){o=!0;break}if(o){var c=b.getTopojsonName(i);null!==n.topojson&amp;&amp;c===n.topojsonName||(n.topojsonName=c,void 0===PlotlyGeoAssets.topojson[n.topojsonName]&amp;&amp;a.push(n.fetchTopojson()))}a=a.concat(x.fetchTraceGeoData(t)),r.push(new Promise((function(r,i){Promise.all(a).then((function(){n.topojson=PlotlyGeoAssets.topojson[n.topojsonName],n.update(t,e),r()})).catch(i)})))},T.fetchTopojson=function(){var t=this,e=b.getTopojsonPath(t.topojsonURL,t.topojsonName);return new Promise((function(r,i){n.json(e,(function(n,a){if(n)return 404===n.status?i(new Error([&quot;plotly.js could not find topojson file at&quot;,e,&quot;.&quot;,&quot;Make sure the *topojsonURL* plot config option&quot;,&quot;is set properly.&quot;].join(&quot; &quot;))):i(new Error([&quot;unexpected error while fetching topojson file at&quot;,e].join(&quot; &quot;)));PlotlyGeoAssets.topojson[t.topojsonName]=a,r()}))}))},T.update=function(t,e){var r=e[this.id];this.hasChoropleth=!1;for(var n=0;n&lt;t.length;n++){var i=t[n],a=i[0].trace;&quot;choropleth&quot;===a.type&amp;&amp;(this.hasChoropleth=!0),!0===a.visible&amp;&amp;a._length&gt;0&amp;&amp;a._module.calcGeoJSON(i,e)}if(!this.updateProjection(t,e)){this.viewInitial&amp;&amp;this.scope===r.scope||this.saveViewInitial(r),this.scope=r.scope,this.updateBaseLayers(e,r),this.updateDims(e,r),this.updateFx(e,r),u.generalUpdatePerTraceModule(this.graphDiv,this,t,r);var o=this.layers.frontplot.select(&quot;.scatterlayer&quot;);this.dataPoints.point=o.selectAll(&quot;.point&quot;),this.dataPoints.text=o.selectAll(&quot;text&quot;),this.dataPaths.line=o.selectAll(&quot;.js-line&quot;);var s=this.layers.backplot.select(&quot;.choroplethlayer&quot;);this.dataPaths.choropleth=s.selectAll(&quot;path&quot;),this.render()}},T.updateProjection=function(t,e){var r=this.graphDiv,o=e[this.id],s=e._size,l=o.domain,c=o.projection,u=o.lonaxis,f=o.lataxis,p=u._ax,d=f._ax,g=this.projection=function(t){for(var e=t.projection.type,r=n.geo[y.projNames[e]](),i=t._isClipped?y.lonaxisSpan[e]/2:null,a=[&quot;center&quot;,&quot;rotate&quot;,&quot;parallels&quot;,&quot;clipExtent&quot;],o=function(t){return t?r:[]},s=0;s&lt;a.length;s++){var l=a[s];&quot;function&quot;!=typeof r[l]&amp;&amp;(r[l]=o)}r.isLonLatOverEdges=function(t){if(null===r(t))return!0;if(i){var e=r.rotate();return n.geo.distance(t,[-e[0],-e[1]])&gt;i*Math.PI/180}return!1},r.getPath=function(){return n.geo.path().projection(r)},r.getBounds=function(t){return r.getPath().bounds(t)},r.fitExtent=function(t,e){var n=t[1][0]-t[0][0],i=t[1][1]-t[0][1],a=r.clipExtent&amp;&amp;r.clipExtent();r.scale(150).translate([0,0]),a&amp;&amp;r.clipExtent(null);var o=r.getBounds(e),s=Math.min(n/(o[1][0]-o[0][0]),i/(o[1][1]-o[0][1])),l=+t[0][0]+(n-s*(o[1][0]+o[0][0]))/2,c=+t[0][1]+(i-s*(o[1][1]+o[0][1]))/2;return a&amp;&amp;r.clipExtent(a),r.scale(150*s).translate([l,c])},r.precision(y.precision),i&amp;&amp;r.clipAngle(i-y.clipPad);return r}(o),m=[[s.l+s.w*l.x[0],s.t+s.h*(1-l.y[1])],[s.l+s.w*l.x[1],s.t+s.h*(1-l.y[0])]],v=o.center||{},x=c.rotation||{},b=u.range||[],_=f.range||[];if(o.fitbounds){p._length=m[1][0]-m[0][0],d._length=m[1][1]-m[0][1],p.range=h(r,p),d.range=h(r,d);var w=(p.range[0]+p.range[1])/2,T=(d.range[0]+d.range[1])/2;if(o._isScoped)v={lon:w,lat:T};else if(o._isClipped){v={lon:w,lat:T},x={lon:w,lat:T,roll:x.roll};var M=c.type,A=y.lonaxisSpan[M]/2||180,S=y.lataxisSpan[M]/2||90;b=[w-A,w+A],_=[T-S,T+S]}else v={lon:w,lat:T},x={lon:w,lat:x.lat,roll:x.roll}}g.center([v.lon-x.lon,v.lat-x.lat]).rotate([-x.lon,-x.lat,x.roll]).parallels(c.parallels);var E=k(b,_);g.fitExtent(m,E);var C=this.bounds=g.getBounds(E),L=this.fitScale=g.scale(),I=g.translate();if(!isFinite(C[0][0])||!isFinite(C[0][1])||!isFinite(C[1][0])||!isFinite(C[1][1])||isNaN(I[0])||isNaN(I[0])){for(var P=[&quot;fitbounds&quot;,&quot;projection.rotation&quot;,&quot;center&quot;,&quot;lonaxis.range&quot;,&quot;lataxis.range&quot;],z=&quot;Invalid geo settings, relayout'ing to default view.&quot;,O={},D=0;D&lt;P.length;D++)O[this.id+&quot;.&quot;+P[D]]=null;return this.viewInitial=null,a.warn(z),r._promises.push(i.call(&quot;relayout&quot;,r,O)),z}if(o.fitbounds){var R=g.getBounds(k(p.range,d.range)),F=Math.min((C[1][0]-C[0][0])/(R[1][0]-R[0][0]),(C[1][1]-C[0][1])/(R[1][1]-R[0][1]));isFinite(F)?g.scale(F*L):a.warn(&quot;Something went wrong during&quot;+this.id+&quot;fitbounds computations.&quot;)}else g.scale(c.scale*L);var B=this.midPt=[(C[0][0]+C[1][0])/2,(C[0][1]+C[1][1])/2];if(g.translate([I[0]+(B[0]-I[0]),I[1]+(B[1]-I[1])]).clipExtent(C),o._isAlbersUsa){var N=g([v.lon,v.lat]),j=g.translate();g.translate([j[0]-(N[0]-j[0]),j[1]-(N[1]-j[1])])}},T.updateBaseLayers=function(t,e){var r=this,i=r.topojson,a=r.layers,o=r.basePaths;function c(t){return&quot;lonaxis&quot;===t||&quot;lataxis&quot;===t}function u(t){return Boolean(y.lineLayers[t])}function h(t){return Boolean(y.fillLayers[t])}var p=(this.hasChoropleth?y.layersForChoropleth:y.layers).filter((function(t){return u(t)||h(t)?e[&quot;show&quot;+t]:!c(t)||e[t].showgrid})),d=r.framework.selectAll(&quot;.layer&quot;).data(p,String);d.exit().each((function(t){delete a[t],delete o[t],n.select(this).remove()})),d.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;layer &quot;+t})).each((function(t){var e=a[t]=n.select(this);&quot;bg&quot;===t?r.bgRect=e.append(&quot;rect&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;):c(t)?o[t]=e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;):&quot;backplot&quot;===t?e.append(&quot;g&quot;).classed(&quot;choroplethlayer&quot;,!0):&quot;frontplot&quot;===t?e.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0):u(t)?o[t]=e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;).style(&quot;stroke-miterlimit&quot;,2):h(t)&amp;&amp;(o[t]=e.append(&quot;path&quot;).style(&quot;stroke&quot;,&quot;none&quot;))})),d.order(),d.each((function(r){var n=o[r],a=y.layerNameToAdjective[r];&quot;frame&quot;===r?n.datum(y.sphereSVG):u(r)||h(r)?n.datum(_(i,i.objects[r])):c(r)&amp;&amp;n.datum(function(t,e,r){var n,i,a,o=e[t],s=y.scopeDefaults[e.scope];&quot;lonaxis&quot;===t?(n=s.lonaxisRange,i=s.lataxisRange,a=function(t,e){return[t,e]}):&quot;lataxis&quot;===t&amp;&amp;(n=s.lataxisRange,i=s.lonaxisRange,a=function(t,e){return[e,t]});var l={type:&quot;linear&quot;,range:[n[0],n[1]-1e-6],tick0:o.tick0,dtick:o.dtick};f.setConvert(l,r);var c=f.calcTicks(l);e.isScoped||&quot;lonaxis&quot;!==t||c.pop();for(var u=c.length,h=new Array(u),p=0;p&lt;u;p++)for(var d=c[p].x,g=h[p]=[],m=i[0];m&lt;i[1]+2.5;m+=2.5)g.push(a(d,m));return{type:&quot;MultiLineString&quot;,coordinates:h}}(r,e,t)).call(s.stroke,e[r].gridcolor).call(l.dashLine,&quot;&quot;,e[r].gridwidth),u(r)?n.call(s.stroke,e[a+&quot;color&quot;]).call(l.dashLine,&quot;&quot;,e[a+&quot;width&quot;]):h(r)&amp;&amp;n.call(s.fill,e[a+&quot;color&quot;])}))},T.updateDims=function(t,e){var r=this.bounds,n=(e.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,c=r[1][1]-a+n;l.setRect(this.clipRect,i,a,o,c),this.bgRect.call(l.setRect,i,a,o,c).call(s.fill,e.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=c},T.updateFx=function(t,e){var r=this,a=r.graphDiv,o=r.bgRect,s=t.dragmode,l=t.clickmode;if(!r.isStatic){var u;&quot;select&quot;===s?u=function(t,e){(t.range={})[r.id]=[h([e.xmin,e.ymin]),h([e.xmax,e.ymax])]}:&quot;lasso&quot;===s&amp;&amp;(u=function(t,e,n){(t.lassoPoints={})[r.id]=n.filtered.map(h)});var f={element:r.bgRect.node(),gd:a,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(t){2===t&amp;&amp;g(a)}};&quot;pan&quot;===s?(o.node().onmousedown=null,o.call(v(r,e)),o.on(&quot;dblclick.zoom&quot;,(function(){var t=r.viewInitial,e={};for(var n in t)e[r.id+&quot;.&quot;+n]=t[n];i.call(&quot;_guiRelayout&quot;,a,e),a.emit(&quot;plotly_doubleclick&quot;,null)})),a._context._scrollZoom.geo||o.on(&quot;wheel.zoom&quot;,null)):&quot;select&quot;!==s&amp;&amp;&quot;lasso&quot;!==s||(o.on(&quot;.zoom&quot;,null),f.prepFn=function(t,e,r){d(t,e,r,f,s)},p.init(f)),o.on(&quot;mousemove&quot;,(function(){var t=r.projection.invert(n.mouse(this));if(!t||isNaN(t[0])||isNaN(t[1]))return p.unhover(a,n.event);r.xaxis.p2c=function(){return t[0]},r.yaxis.p2c=function(){return t[1]},c.hover(a,n.event,r.id)})),o.on(&quot;mouseout&quot;,(function(){a._dragging||p.unhover(a,n.event)})),o.on(&quot;click&quot;,(function(){&quot;select&quot;!==s&amp;&amp;&quot;lasso&quot;!==s&amp;&amp;(l.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;m(n.event,a,[r.xaxis],[r.yaxis],r.id,f),l.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;c.click(a,n.event))}))}function h(t){return r.projection.invert([t[0]+r.xaxis._offset,t[1]+r.yaxis._offset])}},T.makeFramework=function(){var t=this,e=t.graphDiv,r=e._fullLayout,i=&quot;clip&quot;+r._uid+t.id;t.clipDef=r._clips.append(&quot;clipPath&quot;).attr(&quot;id&quot;,i),t.clipRect=t.clipDef.append(&quot;rect&quot;),t.framework=n.select(t.container).append(&quot;g&quot;).attr(&quot;class&quot;,&quot;geo &quot;+t.id).call(l.setClipUrl,i,e),t.project=function(e){var r=t.projection(e);return r?[r[0]-t.xaxis._offset,r[1]-t.yaxis._offset]:[null,null]},t.xaxis={_id:&quot;x&quot;,c2p:function(e){return t.project(e)[0]}},t.yaxis={_id:&quot;y&quot;,c2p:function(e){return t.project(e)[1]}},t.mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},f.setConvert(t.mockAxis,r)},T.saveViewInitial=function(t){var e,r=t.center||{},n=t.projection,i=n.rotation||{};this.viewInitial={fitbounds:t.fitbounds,&quot;projection.scale&quot;:n.scale},e=t._isScoped?{&quot;center.lon&quot;:r.lon,&quot;center.lat&quot;:r.lat}:t._isClipped?{&quot;projection.rotation.lon&quot;:i.lon,&quot;projection.rotation.lat&quot;:i.lat}:{&quot;center.lon&quot;:r.lon,&quot;center.lat&quot;:r.lat,&quot;projection.rotation.lon&quot;:i.lon},a.extendFlat(this.viewInitial,e)},T.render=function(){var t,e=this.projection,r=e.getPath();function n(t){var r=e(t.lonlat);return r?o(r[0],r[1]):null}function i(t){return e.isLonLatOverEdges(t.lonlat)?&quot;none&quot;:null}for(t in this.basePaths)this.basePaths[t].attr(&quot;d&quot;,r);for(t in this.dataPaths)this.dataPaths[t].attr(&quot;d&quot;,(function(t){return r(t.geojson)}));for(t in this.dataPoints)this.dataPoints[t].attr(&quot;display&quot;,i).attr(&quot;transform&quot;,n)}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/topojson_utils&quot;:806,&quot;../../registry&quot;:911,&quot;../cartesian/autorange&quot;:827,&quot;../cartesian/axes&quot;:828,&quot;../cartesian/select&quot;:847,&quot;../plots&quot;:891,&quot;./constants&quot;:858,&quot;./projections&quot;:863,&quot;./zoom&quot;:864,d3:169,&quot;topojson-client&quot;:579}],860:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,i=t(&quot;../../lib&quot;).counterRegex,a=t(&quot;./geo&quot;),o=&quot;geo&quot;,s=i(o),l={};l.geo={valType:&quot;subplotid&quot;,dflt:o,editType:&quot;calc&quot;},e.exports={attr:o,name:o,idRoot:o,idRegex:s,attrRegex:s,attributes:l,layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots.geo,s=0;s&lt;i.length;s++){var l=i[s],c=n(r,o,l),u=e[l]._subplot;u||(u=a({id:l,graphDiv:t,container:e._geolayer.node(),topojsonURL:t._context.topojsonURL,staticPlot:t._context.staticPlot}),e[l]._subplot=u),u.plot(c,e,t._promises)}},updateFx:function(t){for(var e=t._fullLayout,r=e._subplots.geo,n=0;n&lt;r.length;n++){var i=e[r[n]];i._subplot.updateFx(e,i)}},clean:function(t,e,r,n){for(var i=n._subplots.geo||[],a=0;a&lt;i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&amp;&amp;s&amp;&amp;(s.framework.remove(),s.clipDef.remove())}}}},{&quot;../../lib&quot;:778,&quot;../../plots/get_data&quot;:865,&quot;./geo&quot;:859,&quot;./layout_attributes&quot;:861,&quot;./layout_defaults&quot;:862}],861:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../domain&quot;).attributes,a=t(&quot;./constants&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s={range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},showgrid:{valType:&quot;boolean&quot;,dflt:!1},tick0:{valType:&quot;number&quot;,dflt:0},dtick:{valType:&quot;number&quot;},gridcolor:{valType:&quot;color&quot;,dflt:n.lightLine},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1}};(e.exports=o({domain:i({name:&quot;geo&quot;},{}),fitbounds:{valType:&quot;enumerated&quot;,values:[!1,&quot;locations&quot;,&quot;geojson&quot;],dflt:!1,editType:&quot;plot&quot;},resolution:{valType:&quot;enumerated&quot;,values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:&quot;enumerated&quot;,values:Object.keys(a.scopeDefaults),dflt:&quot;world&quot;},projection:{type:{valType:&quot;enumerated&quot;,values:Object.keys(a.projNames)},rotation:{lon:{valType:&quot;number&quot;},lat:{valType:&quot;number&quot;},roll:{valType:&quot;number&quot;}},parallels:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},scale:{valType:&quot;number&quot;,min:0,dflt:1}},center:{lon:{valType:&quot;number&quot;},lat:{valType:&quot;number&quot;}},visible:{valType:&quot;boolean&quot;,dflt:!0},showcoastlines:{valType:&quot;boolean&quot;},coastlinecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},coastlinewidth:{valType:&quot;number&quot;,min:0,dflt:1},showland:{valType:&quot;boolean&quot;,dflt:!1},landcolor:{valType:&quot;color&quot;,dflt:a.landColor},showocean:{valType:&quot;boolean&quot;,dflt:!1},oceancolor:{valType:&quot;color&quot;,dflt:a.waterColor},showlakes:{valType:&quot;boolean&quot;,dflt:!1},lakecolor:{valType:&quot;color&quot;,dflt:a.waterColor},showrivers:{valType:&quot;boolean&quot;,dflt:!1},rivercolor:{valType:&quot;color&quot;,dflt:a.waterColor},riverwidth:{valType:&quot;number&quot;,min:0,dflt:1},showcountries:{valType:&quot;boolean&quot;},countrycolor:{valType:&quot;color&quot;,dflt:n.defaultLine},countrywidth:{valType:&quot;number&quot;,min:0,dflt:1},showsubunits:{valType:&quot;boolean&quot;},subunitcolor:{valType:&quot;color&quot;,dflt:n.defaultLine},subunitwidth:{valType:&quot;number&quot;,min:0,dflt:1},showframe:{valType:&quot;boolean&quot;},framecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},framewidth:{valType:&quot;number&quot;,min:0,dflt:1},bgcolor:{valType:&quot;color&quot;,dflt:n.background},lonaxis:s,lataxis:s},&quot;plot&quot;,&quot;from-root&quot;)).uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../plot_api/edit_types&quot;:810,&quot;../domain&quot;:855,&quot;./constants&quot;:858}],862:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../subplot_defaults&quot;),a=t(&quot;../get_data&quot;).getSubplotData,o=t(&quot;./constants&quot;),s=t(&quot;./layout_attributes&quot;),l=o.axesNames;function c(t,e,r,i){var s=a(i.fullData,&quot;geo&quot;,i.id).map((function(t){return t._expandedIndex})),c=r(&quot;resolution&quot;),u=r(&quot;scope&quot;),f=o.scopeDefaults[u],h=r(&quot;projection.type&quot;,f.projType),p=e._isAlbersUsa=&quot;albers usa&quot;===h;p&amp;&amp;(u=e.scope=&quot;usa&quot;);var d=e._isScoped=&quot;world&quot;!==u,g=e._isConic=-1!==h.indexOf(&quot;conic&quot;),m=e._isClipped=!!o.lonaxisSpan[h];if(!1===t.visible){var v=n.extendDeep({},e._template);v.showcoastlines=!1,v.showcountries=!1,v.showframe=!1,v.showlakes=!1,v.showland=!1,v.showocean=!1,v.showrivers=!1,v.showsubunits=!1,v.lonaxis&amp;&amp;(v.lonaxis.showgrid=!1),v.lataxis&amp;&amp;(v.lataxis.showgrid=!1),e._template=v}for(var y=r(&quot;visible&quot;),x=0;x&lt;l.length;x++){var b,_=l[x],w=[30,10][x];if(d)b=f[_+&quot;Range&quot;];else{var T=o[_+&quot;Span&quot;],k=(T[h]||T[&quot;*&quot;])/2,M=r(&quot;projection.rotation.&quot;+_.substr(0,3),f.projRotate[x]);b=[M-k,M+k]}var A=r(_+&quot;.range&quot;,b);r(_+&quot;.tick0&quot;),r(_+&quot;.dtick&quot;,w),r(_+&quot;.showgrid&quot;,!!y&amp;&amp;void 0)&amp;&amp;(r(_+&quot;.gridcolor&quot;),r(_+&quot;.gridwidth&quot;)),e[_]._ax={type:&quot;linear&quot;,_id:_.slice(0,3),_traceIndices:s,setScale:n.identity,c2l:n.identity,r2l:n.identity,autorange:!0,range:A.slice(),_m:1,_input:{}}}var S=e.lonaxis.range,E=e.lataxis.range,C=S[0],L=S[1];C&gt;0&amp;&amp;L&lt;0&amp;&amp;(L+=360);var I,P,z,O=(C+L)/2;if(!p){var D=d?f.projRotate:[O,0,0];I=r(&quot;projection.rotation.lon&quot;,D[0]),r(&quot;projection.rotation.lat&quot;,D[1]),r(&quot;projection.rotation.roll&quot;,D[2]),r(&quot;showcoastlines&quot;,!d&amp;&amp;y)&amp;&amp;(r(&quot;coastlinecolor&quot;),r(&quot;coastlinewidth&quot;)),r(&quot;showocean&quot;,!!y&amp;&amp;void 0)&amp;&amp;r(&quot;oceancolor&quot;)}(p?(P=-96.6,z=38.7):(P=d?O:I,z=(E[0]+E[1])/2),r(&quot;center.lon&quot;,P),r(&quot;center.lat&quot;,z),g)&amp;&amp;r(&quot;projection.parallels&quot;,f.projParallels||[0,60]);r(&quot;projection.scale&quot;),r(&quot;showland&quot;,!!y&amp;&amp;void 0)&amp;&amp;r(&quot;landcolor&quot;),r(&quot;showlakes&quot;,!!y&amp;&amp;void 0)&amp;&amp;r(&quot;lakecolor&quot;),r(&quot;showrivers&quot;,!!y&amp;&amp;void 0)&amp;&amp;(r(&quot;rivercolor&quot;),r(&quot;riverwidth&quot;)),r(&quot;showcountries&quot;,d&amp;&amp;&quot;usa&quot;!==u&amp;&amp;y)&amp;&amp;(r(&quot;countrycolor&quot;),r(&quot;countrywidth&quot;)),(&quot;usa&quot;===u||&quot;north america&quot;===u&amp;&amp;50===c)&amp;&amp;(r(&quot;showsubunits&quot;,y),r(&quot;subunitcolor&quot;),r(&quot;subunitwidth&quot;)),d||r(&quot;showframe&quot;,y)&amp;&amp;(r(&quot;framecolor&quot;),r(&quot;framewidth&quot;)),r(&quot;bgcolor&quot;),r(&quot;fitbounds&quot;)&amp;&amp;(delete e.projection.scale,d?(delete e.center.lon,delete e.center.lat):m?(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon,delete e.projection.rotation.lat,delete e.lonaxis.range,delete e.lataxis.range):(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon))}e.exports=function(t,e,r){i(t,e,r,{type:&quot;geo&quot;,attributes:s,handleDefaults:c,fullData:r,partition:&quot;y&quot;})}},{&quot;../../lib&quot;:778,&quot;../get_data&quot;:865,&quot;../subplot_defaults&quot;:905,&quot;./constants&quot;:858,&quot;./layout_attributes&quot;:861}],863:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){function e(t,e){return{type:&quot;Feature&quot;,id:t.id,properties:t.properties,geometry:r(t.geometry,e)}}function r(e,n){if(!e)return null;if(&quot;GeometryCollection&quot;===e.type)return{type:&quot;GeometryCollection&quot;,geometries:object.geometries.map((function(t){return r(t,n)}))};if(!c.hasOwnProperty(e.type))return null;var i=c[e.type];return t.geo.stream(e,n(i)),i.result()}t.geo.project=function(t,e){var i=e.stream;if(!i)throw new Error(&quot;not yet supported&quot;);return(t&amp;&amp;n.hasOwnProperty(t.type)?n[t.type]:r)(t,i)};var n={Feature:e,FeatureCollection:function(t,r){return{type:&quot;FeatureCollection&quot;,features:t.features.map((function(t){return e(t,r)}))}}},i=[],a=[],o={point:function(t,e){i.push([t,e])},result:function(){var t=i.length?i.length&lt;2?{type:&quot;Point&quot;,coordinates:i[0]}:{type:&quot;MultiPoint&quot;,coordinates:i}:null;return i=[],t}},s={lineStart:u,point:function(t,e){i.push([t,e])},lineEnd:function(){i.length&amp;&amp;(a.push(i),i=[])},result:function(){var t=a.length?a.length&lt;2?{type:&quot;LineString&quot;,coordinates:a[0]}:{type:&quot;MultiLineString&quot;,coordinates:a}:null;return a=[],t}},l={polygonStart:u,lineStart:u,point:function(t,e){i.push([t,e])},lineEnd:function(){var t=i.length;if(t){do{i.push(i[0].slice())}while(++t&lt;4);a.push(i),i=[]}},polygonEnd:u,result:function(){if(!a.length)return null;var t=[],e=[];return a.forEach((function(r){!function(t){if((e=t.length)&lt;4)return!1;var e,r=0,n=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];for(;++r&lt;e;)n+=t[r-1][1]*t[r][0]-t[r-1][0]*t[r][1];return n&lt;=0}(r)?e.push(r):t.push([r])})),e.forEach((function(e){var r=e[0];t.some((function(t){if(function(t,e){for(var r=e[0],n=e[1],i=!1,a=0,o=t.length,s=o-1;a&lt;o;s=a++){var l=t[a],c=l[0],u=l[1],f=t[s],h=f[0],p=f[1];u&gt;n^p&gt;n&amp;&amp;r&lt;(h-c)*(n-u)/(p-u)+c&amp;&amp;(i=!i)}return i}(t[0],r))return t.push(e),!0}))||t.push([e])})),a=[],t.length?t.length&gt;1?{type:&quot;MultiPolygon&quot;,coordinates:t}:{type:&quot;Polygon&quot;,coordinates:t[0]}:null}},c={Point:o,MultiPoint:o,LineString:s,MultiLineString:s,Polygon:l,MultiPolygon:l,Sphere:l};function u(){}var f=1e-6,h=Math.PI,p=h/2,d=(Math.sqrt(h),h/180),g=180/h;function m(t){return t&gt;1?p:t&lt;-1?-p:Math.asin(t)}function v(t){return t&gt;1?0:t&lt;-1?h:Math.acos(t)}var y=t.geo.projection,x=t.geo.projectionMutator;function b(t,e){var r=(2+p)*Math.sin(e);e/=2;for(var n=0,i=1/0;n&lt;10&amp;&amp;Math.abs(i)&gt;f;n++){var a=Math.cos(e);e-=i=(e+Math.sin(e)*(a+2)-r)/(2*a*(1+a))}return[2/Math.sqrt(h*(4+h))*t*(1+Math.cos(e)),2*Math.sqrt(h/(4+h))*Math.sin(e)]}t.geo.interrupt=function(e){var r,n=[[[[-h,0],[0,p],[h,0]]],[[[-h,0],[0,-p],[h,0]]]];function i(t,r){for(var i=r&lt;0?-1:1,a=n[+(r&lt;0)],o=0,s=a.length-1;o&lt;s&amp;&amp;t&gt;a[o][2][0];++o);var l=e(t-a[o][1][0],r);return l[0]+=e(a[o][1][0],i*r&gt;i*a[o][0][1]?a[o][0][1]:r)[0],l}function a(){r=n.map((function(t){return t.map((function(t){var r,n=e(t[0][0],t[0][1])[0],i=e(t[2][0],t[2][1])[0],a=e(t[1][0],t[0][1])[1],o=e(t[1][0],t[1][1])[1];return a&gt;o&amp;&amp;(r=a,a=o,o=r),[[n,a],[i,o]]}))}))}e.invert&amp;&amp;(i.invert=function(t,a){for(var o=r[+(a&lt;0)],s=n[+(a&lt;0)],l=0,u=o.length;l&lt;u;++l){var f=o[l];if(f[0][0]&lt;=t&amp;&amp;t&lt;f[1][0]&amp;&amp;f[0][1]&lt;=a&amp;&amp;a&lt;f[1][1]){var h=e.invert(t-e(s[l][1][0],0)[0],a);return h[0]+=s[l][1][0],c(i(h[0],h[1]),[t,a])?h:null}}});var o=t.geo.projection(i),s=o.stream;function l(t,e){for(var r,n,i,a=-1,o=t.length,s=t[0],l=[];++a&lt;o;){n=((r=t[a])[0]-s[0])/e,i=(r[1]-s[1])/e;for(var c=0;c&lt;e;++c)l.push([s[0]+c*n,s[1]+c*i]);s=r}return l.push(r),l}function c(t,e){return Math.abs(t[0]-e[0])&lt;f&amp;&amp;Math.abs(t[1]-e[1])&lt;f}return o.stream=function(e){var r=o.rotate(),i=s(e),a=(o.rotate([0,0]),s(e));return o.rotate(r),i.sphere=function(){t.geo.stream(function(){for(var e=1e-6,r=[],i=0,a=n[0].length;i&lt;a;++i){var o=180*(p=n[0][i])[0][0]/h,s=180*p[0][1]/h,c=180*p[1][1]/h,u=180*p[2][0]/h,f=180*p[2][1]/h;r.push(l([[o+e,s+e],[o+e,c-e],[u-e,c-e],[u-e,f+e]],30))}for(i=n[1].length-1;i&gt;=0;--i){var p;o=180*(p=n[1][i])[0][0]/h,s=180*p[0][1]/h,c=180*p[1][1]/h,u=180*p[2][0]/h,f=180*p[2][1]/h;r.push(l([[u-e,f-e],[u-e,c+e],[o+e,c+e],[o+e,s-e]],30))}return{type:&quot;Polygon&quot;,coordinates:[t.merge(r)]}}(),a)},i},o.lobes=function(t){return arguments.length?(n=t.map((function(t){return t.map((function(t){return[[t[0][0]*h/180,t[0][1]*h/180],[t[1][0]*h/180,t[1][1]*h/180],[t[2][0]*h/180,t[2][1]*h/180]]}))})),a(),o):n.map((function(t){return t.map((function(t){return[[180*t[0][0]/h,180*t[0][1]/h],[180*t[1][0]/h,180*t[1][1]/h],[180*t[2][0]/h,180*t[2][1]/h]]}))}))},o},b.invert=function(t,e){var r=.5*e*Math.sqrt((4+h)/h),n=m(r),i=Math.cos(n);return[t/(2/Math.sqrt(h*(4+h))*(1+i)),m((n+r*(i+2))/(2+p))]},(t.geo.eckert4=function(){return y(b)}).raw=b;var _=t.geo.azimuthalEqualArea.raw;function w(t,e){if(arguments.length&lt;2&amp;&amp;(e=t),1===e)return _;if(e===1/0)return T;function r(r,n){var i=_(r/e,n);return i[0]*=t,i}return r.invert=function(r,n){var i=_.invert(r/t,n);return i[0]*=e,i},r}function T(t,e){return[t*Math.cos(e)/Math.cos(e/=2),2*Math.sin(e)]}function k(t,e){return[3*t/(2*h)*Math.sqrt(h*h/3-e*e),e]}function M(t,e){return[t,1.25*Math.log(Math.tan(h/4+.4*e))]}function A(t){return function(e){var r,n=t*Math.sin(e),i=30;do{e-=r=(e+Math.sin(e)-n)/(1+Math.cos(e))}while(Math.abs(r)&gt;f&amp;&amp;--i&gt;0);return e/2}}T.invert=function(t,e){var r=2*m(e/2);return[t*Math.cos(r/2)/Math.cos(r),r]},(t.geo.hammer=function(){var t=2,e=x(w),r=e(t);return r.coefficient=function(r){return arguments.length?e(t=+r):t},r}).raw=w,k.invert=function(t,e){return[2/3*h*t/Math.sqrt(h*h/3-e*e),e]},(t.geo.kavrayskiy7=function(){return y(k)}).raw=k,M.invert=function(t,e){return[t,2.5*Math.atan(Math.exp(.8*e))-.625*h]},(t.geo.miller=function(){return y(M)}).raw=M,A(h);var S=function(t,e,r){var n=A(r);function i(r,i){return[t*r*Math.cos(i=n(i)),e*Math.sin(i)]}return i.invert=function(n,i){var a=m(i/e);return[n/(t*Math.cos(a)),m((2*a+Math.sin(2*a))/r)]},i}(Math.SQRT2/p,Math.SQRT2,h);function E(t,e){var r=e*e,n=r*r;return[t*(.8707-.131979*r+n*(n*(.003971*r-.001529*n)-.013791)),e*(1.007226+r*(.015085+n*(.028874*r-.044475-.005916*n)))]}(t.geo.mollweide=function(){return y(S)}).raw=S,E.invert=function(t,e){var r,n=e,i=25;do{var a=n*n,o=a*a;n-=r=(n*(1.007226+a*(.015085+o*(.028874*a-.044475-.005916*o)))-e)/(1.007226+a*(.045255+o*(.259866*a-.311325-.005916*11*o)))}while(Math.abs(r)&gt;f&amp;&amp;--i&gt;0);return[t/(.8707+(a=n*n)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),n]},(t.geo.naturalEarth=function(){return y(E)}).raw=E;var C=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function L(t,e){var r,n=Math.min(18,36*Math.abs(e)/h),i=Math.floor(n),a=n-i,o=(r=C[i])[0],s=r[1],l=(r=C[++i])[0],c=r[1],u=(r=C[Math.min(19,++i)])[0],f=r[1];return[t*(l+a*(u-o)/2+a*a*(u-2*l+o)/2),(e&gt;0?p:-p)*(c+a*(f-s)/2+a*a*(f-2*c+s)/2)]}function I(t,e){return[t*Math.cos(e),e]}function P(t,e){var r,n=Math.cos(e),i=(r=v(n*Math.cos(t/=2)))?r/Math.sin(r):1;return[2*n*Math.sin(t)*i,Math.sin(e)*i]}function z(t,e){var r=P(t,e);return[(r[0]+t/p)/2,(r[1]+e)/2]}C.forEach((function(t){t[1]*=1.0144})),L.invert=function(t,e){var r=e/p,n=90*r,i=Math.min(18,Math.abs(n/5)),a=Math.max(0,Math.floor(i));do{var o=C[a][1],s=C[a+1][1],l=C[Math.min(19,a+2)][1],c=l-o,u=l-2*s+o,f=2*(Math.abs(r)-s)/c,h=u/c,m=f*(1-h*f*(1-2*h*f));if(m&gt;=0||1===a){n=(e&gt;=0?5:-5)*(m+i);var v,y=50;do{m=(i=Math.min(18,Math.abs(n)/5))-(a=Math.floor(i)),o=C[a][1],s=C[a+1][1],l=C[Math.min(19,a+2)][1],n-=(v=(e&gt;=0?p:-p)*(s+m*(l-o)/2+m*m*(l-2*s+o)/2)-e)*g}while(Math.abs(v)&gt;1e-12&amp;&amp;--y&gt;0);break}}while(--a&gt;=0);var x=C[a][0],b=C[a+1][0],_=C[Math.min(19,a+2)][0];return[t/(b+m*(_-x)/2+m*m*(_-2*b+x)/2),n*d]},(t.geo.robinson=function(){return y(L)}).raw=L,I.invert=function(t,e){return[t/Math.cos(e),e]},(t.geo.sinusoidal=function(){return y(I)}).raw=I,P.invert=function(t,e){if(!(t*t+4*e*e&gt;h*h+f)){var r=t,n=e,i=25;do{var a,o=Math.sin(r),s=Math.sin(r/2),l=Math.cos(r/2),c=Math.sin(n),u=Math.cos(n),p=Math.sin(2*n),d=c*c,g=u*u,m=s*s,y=1-g*l*l,x=y?v(u*l)*Math.sqrt(a=1/y):a=0,b=2*x*u*s-t,_=x*c-e,w=a*(g*m+x*u*l*d),T=a*(.5*o*p-2*x*c*s),k=.25*a*(p*s-x*c*g*o),M=a*(d*l+x*m*u),A=T*k-M*w;if(!A)break;var S=(_*T-b*M)/A,E=(b*k-_*w)/A;r-=S,n-=E}while((Math.abs(S)&gt;f||Math.abs(E)&gt;f)&amp;&amp;--i&gt;0);return[r,n]}},(t.geo.aitoff=function(){return y(P)}).raw=P,z.invert=function(t,e){var r=t,n=e,i=25;do{var a,o=Math.cos(n),s=Math.sin(n),l=Math.sin(2*n),c=s*s,u=o*o,h=Math.sin(r),d=Math.cos(r/2),g=Math.sin(r/2),m=g*g,y=1-u*d*d,x=y?v(o*d)*Math.sqrt(a=1/y):a=0,b=.5*(2*x*o*g+r/p)-t,_=.5*(x*s+n)-e,w=.5*a*(u*m+x*o*d*c)+.5/p,T=a*(h*l/4-x*s*g),k=.125*a*(l*g-x*s*u*h),M=.5*a*(c*d+x*m*o)+.5,A=T*k-M*w,S=(_*T-b*M)/A,E=(b*k-_*w)/A;r-=S,n-=E}while((Math.abs(S)&gt;f||Math.abs(E)&gt;f)&amp;&amp;--i&gt;0);return[r,n]},(t.geo.winkel3=function(){return y(z)}).raw=z}},{}],864:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;),o=Math.PI/180,s=180/Math.PI,l={cursor:&quot;pointer&quot;},c={cursor:&quot;auto&quot;};function u(t,e){return n.behavior.zoom().translate(e.translate()).scale(e.scale())}function f(t,e,r){var n=t.id,o=t.graphDiv,s=o.layout,l=s[n],c=o._fullLayout,u=c[n],f={},h={};function p(t,e){f[n+&quot;.&quot;+t]=i.nestedProperty(l,t).get(),a.call(&quot;_storeDirectGUIEdit&quot;,s,c._preGUI,f);var r=i.nestedProperty(u,t);r.get()!==e&amp;&amp;(r.set(e),i.nestedProperty(l,t).set(e),h[n+&quot;.&quot;+t]=e)}r(p),p(&quot;projection.scale&quot;,e.scale()/t.fitScale),p(&quot;fitbounds&quot;,!1),o.emit(&quot;plotly_relayout&quot;,h)}function h(t,e){var r=u(0,e);function i(r){var n=e.invert(t.midPt);r(&quot;center.lon&quot;,n[0]),r(&quot;center.lat&quot;,n[1])}return r.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l)})).on(&quot;zoom&quot;,(function(){e.scale(n.event.scale).translate(n.event.translate),t.render();var r=e.invert(t.midPt);t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.center.lon&quot;:r[0],&quot;geo.center.lat&quot;:r[1]})})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),f(t,e,i)})),r}function p(t,e){var r,i,a,o,s,h,p,d,g,m=u(0,e);function v(t){return e.invert(t)}function y(r){var n=e.rotate(),i=e.invert(t.midPt);r(&quot;projection.rotation.lon&quot;,-n[0]),r(&quot;center.lon&quot;,i[0]),r(&quot;center.lat&quot;,i[1])}return m.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l),r=n.mouse(this),i=e.rotate(),a=e.translate(),o=i,s=v(r)})).on(&quot;zoom&quot;,(function(){if(h=n.mouse(this),function(t){var r=v(t);if(!r)return!0;var n=e(r);return Math.abs(n[0]-t[0])&gt;2||Math.abs(n[1]-t[1])&gt;2}(r))return m.scale(e.scale()),void m.translate(e.translate());e.scale(n.event.scale),e.translate([a[0],n.event.translate[1]]),s?v(h)&amp;&amp;(d=v(h),p=[o[0]+(d[0]-s[0]),i[1],i[2]],e.rotate(p),o=p):s=v(r=h),g=!0,t.render();var l=e.rotate(),c=e.invert(t.midPt);t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.center.lon&quot;:c[0],&quot;geo.center.lat&quot;:c[1],&quot;geo.projection.rotation.lon&quot;:-l[0]})})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),g&amp;&amp;f(t,e,y)})),m}function d(t,e){var r,i={r:e.rotate(),k:e.scale()},a=u(0,e),o=function(t){var e=0,r=arguments.length,i=[];for(;++e&lt;r;)i.push(arguments[e]);var a=n.dispatch.apply(null,i);return a.of=function(e,r){return function(i){var o;try{o=i.sourceEvent=n.event,i.target=t,n.event=i,a[i.type].apply(e,r)}finally{n.event=o}}},a}(a,&quot;zoomstart&quot;,&quot;zoom&quot;,&quot;zoomend&quot;),s=0,h=a.on;function p(t){s++||t({type:&quot;zoomstart&quot;})}function d(t){t({type:&quot;zoom&quot;})}function b(t){--s||t({type:&quot;zoomend&quot;})}function _(t){var r=e.rotate();t(&quot;projection.rotation.lon&quot;,-r[0]),t(&quot;projection.rotation.lat&quot;,-r[1])}return a.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l);var t=n.mouse(this),s=e.rotate(),c=s,u=e.translate(),f=m(s);r=g(e,t),h.call(a,&quot;zoom&quot;,(function(){var a=n.mouse(this);if(e.scale(i.k=n.event.scale),r){if(g(e,a)){e.rotate(s).translate(u);var l=g(e,a),h=y(r,l),p=T(v(f,h)),m=i.r=x(p,r,c);isFinite(m[0])&amp;&amp;isFinite(m[1])&amp;&amp;isFinite(m[2])||(m=c),e.rotate(m),c=m}}else r=g(e,t=a);d(o.of(this,arguments))})),p(o.of(this,arguments))})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),h.call(a,&quot;zoom&quot;,null),b(o.of(this,arguments)),f(t,e,_)})).on(&quot;zoom.redraw&quot;,(function(){t.render();var r=e.rotate();t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.projection.rotation.lon&quot;:-r[0],&quot;geo.projection.rotation.lat&quot;:-r[1]})})),n.rebind(a,o,&quot;on&quot;)}function g(t,e){var r=t.invert(e);return r&amp;&amp;isFinite(r[0])&amp;&amp;isFinite(r[1])&amp;&amp;function(t){var e=t[0]*o,r=t[1]*o,n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}(r)}function m(t){var e=.5*t[0]*o,r=.5*t[1]*o,n=.5*t[2]*o,i=Math.sin(e),a=Math.cos(e),s=Math.sin(r),l=Math.cos(r),c=Math.sin(n),u=Math.cos(n);return[a*l*u+i*s*c,i*l*u-a*s*c,a*s*u+i*l*c,a*l*c-i*s*u]}function v(t,e){var r=t[0],n=t[1],i=t[2],a=t[3],o=e[0],s=e[1],l=e[2],c=e[3];return[r*o-n*s-i*l-a*c,r*s+n*o+i*c-a*l,r*l-n*c+i*o+a*s,r*c+n*l-i*s+a*o]}function y(t,e){if(t&amp;&amp;e){var r=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(t,e),n=Math.sqrt(k(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,k(t,e)))),a=Math.sin(i)/n;return n&amp;&amp;[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function x(t,e,r){var n=w(e,2,t[0]);n=w(n,1,t[1]),n=w(n,0,t[2]-r[2]);var i,a,o=e[0],l=e[1],c=e[2],u=n[0],f=n[1],h=n[2],p=Math.atan2(l,o)*s,d=Math.sqrt(o*o+l*l);Math.abs(f)&gt;d?(a=(f&gt;0?90:-90)-p,i=0):(a=Math.asin(f/d)*s-p,i=Math.sqrt(d*d-f*f));var g=180-a-2*p,m=(Math.atan2(h,u)-Math.atan2(c,i))*s,v=(Math.atan2(h,u)-Math.atan2(c,-i))*s;return b(r[0],r[1],a,m)&lt;=b(r[0],r[1],g,v)?[a,m,r[2]]:[g,v,r[2]]}function b(t,e,r,n){var i=_(r-t),a=_(n-e);return Math.sqrt(i*i+a*a)}function _(t){return(t%360+540)%360-180}function w(t,e,r){var n=r*o,i=t.slice(),a=0===e?1:0,s=2===e?1:2,l=Math.cos(n),c=Math.sin(n);return i[a]=t[a]*l-t[s]*c,i[s]=t[s]*l+t[a]*c,i}function T(t){return[Math.atan2(2*(t[0]*t[1]+t[2]*t[3]),1-2*(t[1]*t[1]+t[2]*t[2]))*s,Math.asin(Math.max(-1,Math.min(1,2*(t[0]*t[2]-t[3]*t[1]))))*s,Math.atan2(2*(t[0]*t[3]+t[1]*t[2]),1-2*(t[2]*t[2]+t[3]*t[3]))*s]}function k(t,e){for(var r=0,n=0,i=t.length;n&lt;i;++n)r+=t[n]*e[n];return r}e.exports=function(t,e){var r=t.projection;return(e._isScoped?h:e._isClipped?d:p)(t,r)}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,d3:169}],865:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;./cartesian/constants&quot;).SUBPLOT_PATTERN;r.getSubplotCalcData=function(t,e,r){var i=n.subplotsRegistry[e];if(!i)return[];for(var a=i.attr,o=[],s=0;s&lt;t.length;s++){var l=t[s];l[0].trace[a]===r&amp;&amp;o.push(l)}return o},r.getModuleCalcData=function(t,e){var r,i=[],a=[];if(!(r=&quot;string&quot;==typeof e?n.getModule(e).plot:&quot;function&quot;==typeof e?e:e.plot))return[i,t];for(var o=0;o&lt;t.length;o++){var s=t[o],l=s[0].trace;!0===l.visible&amp;&amp;0!==l._length&amp;&amp;(l._module.plot===r?i.push(s):a.push(s))}return[i,a]},r.getSubplotData=function(t,e,r){if(!n.subplotsRegistry[e])return[];var a,o,s,l=n.subplotsRegistry[e].attr,c=[];if(&quot;gl2d&quot;===e){var u=r.match(i);o=&quot;x&quot;+u[1],s=&quot;y&quot;+u[2]}for(var f=0;f&lt;t.length;f++)a=t[f],&quot;gl2d&quot;===e&amp;&amp;n.traceIs(a,&quot;gl2d&quot;)?a[l[0]]===o&amp;&amp;a[l[1]]===s&amp;&amp;c.push(a):a[l]===r&amp;&amp;c.push(a);return c}},{&quot;../registry&quot;:911,&quot;./cartesian/constants&quot;:834}],866:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mouse-change&quot;),i=t(&quot;mouse-wheel&quot;),a=t(&quot;mouse-event-offset&quot;),o=t(&quot;../cartesian/constants&quot;),s=t(&quot;has-passive-events&quot;);function l(t,e){this.element=t,this.plot=e,this.mouseListener=null,this.wheelListener=null,this.lastInputTime=Date.now(),this.lastPos=[0,0],this.boxEnabled=!1,this.boxInited=!1,this.boxStart=[0,0],this.boxEnd=[0,0],this.dragStart=[0,0]}e.exports=function(t){var e=t.mouseContainer,r=t.glplot,c=new l(e,r);function u(){t.xaxis.autorange=!1,t.yaxis.autorange=!1}function f(e,n,i){var a,s,l=t.calcDataBox(),f=r.viewBox,h=c.lastPos[0],p=c.lastPos[1],d=o.MINDRAG*r.pixelRatio,g=o.MINZOOM*r.pixelRatio;function m(e,r,n){var i=Math.min(r,n),a=Math.max(r,n);i!==a?(l[e]=i,l[e+2]=a,c.dataBox=l,t.setRanges(l)):(t.selectBox.selectBox=[0,0,1,1],t.glplot.setDirty())}switch(n*=r.pixelRatio,i*=r.pixelRatio,i=f[3]-f[1]-i,t.fullLayout.dragmode){case&quot;zoom&quot;:if(e){var v=n/(f[2]-f[0])*(l[2]-l[0])+l[0],y=i/(f[3]-f[1])*(l[3]-l[1])+l[1];c.boxInited||(c.boxStart[0]=v,c.boxStart[1]=y,c.dragStart[0]=n,c.dragStart[1]=i),c.boxEnd[0]=v,c.boxEnd[1]=y,c.boxInited=!0,c.boxEnabled||c.boxStart[0]===c.boxEnd[0]&amp;&amp;c.boxStart[1]===c.boxEnd[1]||(c.boxEnabled=!0);var x=Math.abs(c.dragStart[0]-n)&lt;g,b=Math.abs(c.dragStart[1]-i)&lt;g;if(!function(){for(var e=t.graphDiv._fullLayout._axisConstraintGroups,r=t.xaxis._id,n=t.yaxis._id,i=0;i&lt;e.length;i++)if(-1!==e[i][r]){if(-1!==e[i][n])return!0;break}return!1}()||x&amp;&amp;b)x&amp;&amp;(c.boxEnd[0]=c.boxStart[0]),b&amp;&amp;(c.boxEnd[1]=c.boxStart[1]);else{a=c.boxEnd[0]-c.boxStart[0],s=c.boxEnd[1]-c.boxStart[1];var _=(l[3]-l[1])/(l[2]-l[0]);Math.abs(a*_)&gt;Math.abs(s)?(c.boxEnd[1]=c.boxStart[1]+Math.abs(a)*_*(s&gt;=0?1:-1),c.boxEnd[1]&lt;l[1]?(c.boxEnd[1]=l[1],c.boxEnd[0]=c.boxStart[0]+(l[1]-c.boxStart[1])/Math.abs(_)):c.boxEnd[1]&gt;l[3]&amp;&amp;(c.boxEnd[1]=l[3],c.boxEnd[0]=c.boxStart[0]+(l[3]-c.boxStart[1])/Math.abs(_))):(c.boxEnd[0]=c.boxStart[0]+Math.abs(s)/_*(a&gt;=0?1:-1),c.boxEnd[0]&lt;l[0]?(c.boxEnd[0]=l[0],c.boxEnd[1]=c.boxStart[1]+(l[0]-c.boxStart[0])*Math.abs(_)):c.boxEnd[0]&gt;l[2]&amp;&amp;(c.boxEnd[0]=l[2],c.boxEnd[1]=c.boxStart[1]+(l[2]-c.boxStart[0])*Math.abs(_)))}}else c.boxEnabled?(a=c.boxStart[0]!==c.boxEnd[0],s=c.boxStart[1]!==c.boxEnd[1],a||s?(a&amp;&amp;(m(0,c.boxStart[0],c.boxEnd[0]),t.xaxis.autorange=!1),s&amp;&amp;(m(1,c.boxStart[1],c.boxEnd[1]),t.yaxis.autorange=!1),t.relayoutCallback()):t.glplot.setDirty(),c.boxEnabled=!1,c.boxInited=!1):c.boxInited&amp;&amp;(c.boxInited=!1);break;case&quot;pan&quot;:c.boxEnabled=!1,c.boxInited=!1,e?(c.panning||(c.dragStart[0]=n,c.dragStart[1]=i),Math.abs(c.dragStart[0]-n)&lt;d&amp;&amp;(n=c.dragStart[0]),Math.abs(c.dragStart[1]-i)&lt;d&amp;&amp;(i=c.dragStart[1]),a=(h-n)*(l[2]-l[0])/(r.viewBox[2]-r.viewBox[0]),s=(p-i)*(l[3]-l[1])/(r.viewBox[3]-r.viewBox[1]),l[0]+=a,l[2]+=a,l[1]+=s,l[3]+=s,t.setRanges(l),c.panning=!0,c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations()):c.panning&amp;&amp;(c.panning=!1,t.relayoutCallback())}c.lastPos[0]=n,c.lastPos[1]=i}return c.mouseListener=n(e,f),e.addEventListener(&quot;touchstart&quot;,(function(t){var r=a(t.changedTouches[0],e);f(0,r[0],r[1]),f(1,r[0],r[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),e.addEventListener(&quot;touchmove&quot;,(function(t){t.preventDefault();var r=a(t.changedTouches[0],e);f(1,r[0],r[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),e.addEventListener(&quot;touchend&quot;,(function(t){f(0,c.lastPos[0],c.lastPos[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),c.wheelListener=i(e,(function(e,n){if(!t.scrollZoom)return!1;var i=t.calcDataBox(),a=r.viewBox,o=c.lastPos[0],s=c.lastPos[1],l=Math.exp(5*n/(a[3]-a[1])),f=o/(a[2]-a[0])*(i[2]-i[0])+i[0],h=s/(a[3]-a[1])*(i[3]-i[1])+i[1];return i[0]=(i[0]-f)*l+f,i[2]=(i[2]-f)*l+f,i[1]=(i[1]-h)*l+h,i[3]=(i[3]-h)*l+h,t.setRanges(i),c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations(),t.relayoutCallback(),!0}),!0),c}},{&quot;../cartesian/constants&quot;:834,&quot;has-passive-events&quot;:441,&quot;mouse-change&quot;:483,&quot;mouse-event-offset&quot;:484,&quot;mouse-wheel&quot;:486}],867:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../cartesian/axes&quot;),i=t(&quot;../../lib/str2rgbarray&quot;);function a(t){this.scene=t,this.gl=t.gl,this.pixelRatio=t.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=[&quot;x&quot;,&quot;y&quot;],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title=&quot;&quot;,this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont=&quot;sans-serif&quot;,this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}var o=a.prototype,s=[&quot;xaxis&quot;,&quot;yaxis&quot;];o.merge=function(t){var e,r,n,a,o,l,c,u,f,h,p;for(this.titleEnable=!1,this.backgroundColor=i(t.plot_bgcolor),h=0;h&lt;2;++h){var d=(e=s[h]).charAt(0);for(n=(r=t[this.scene[e]._name]).title.text===this.scene.fullLayout._dfltTitle[d]?&quot;&quot;:r.title.text,p=0;p&lt;=2;p+=2)this.labelEnable[h+p]=!1,this.labels[h+p]=n,this.labelColor[h+p]=i(r.title.font.color),this.labelFont[h+p]=r.title.font.family,this.labelSize[h+p]=r.title.font.size,this.labelPad[h+p]=this.getLabelPad(e,r),this.tickEnable[h+p]=!1,this.tickColor[h+p]=i((r.tickfont||{}).color),this.tickAngle[h+p]=&quot;auto&quot;===r.tickangle?0:Math.PI*-r.tickangle/180,this.tickPad[h+p]=this.getTickPad(r),this.tickMarkLength[h+p]=0,this.tickMarkWidth[h+p]=r.tickwidth||0,this.tickMarkColor[h+p]=i(r.tickcolor),this.borderLineEnable[h+p]=!1,this.borderLineColor[h+p]=i(r.linecolor),this.borderLineWidth[h+p]=r.linewidth||0;c=this.hasSharedAxis(r),o=this.hasAxisInDfltPos(e,r)&amp;&amp;!c,l=this.hasAxisInAltrPos(e,r)&amp;&amp;!c,a=r.mirror||!1,u=c?-1!==String(a).indexOf(&quot;all&quot;):!!a,f=c?&quot;allticks&quot;===a:-1!==String(a).indexOf(&quot;ticks&quot;),o?this.labelEnable[h]=!0:l&amp;&amp;(this.labelEnable[h+2]=!0),o?this.tickEnable[h]=r.showticklabels:l&amp;&amp;(this.tickEnable[h+2]=r.showticklabels),(o||u)&amp;&amp;(this.borderLineEnable[h]=r.showline),(l||u)&amp;&amp;(this.borderLineEnable[h+2]=r.showline),(o||f)&amp;&amp;(this.tickMarkLength[h]=this.getTickMarkLength(r)),(l||f)&amp;&amp;(this.tickMarkLength[h+2]=this.getTickMarkLength(r)),this.gridLineEnable[h]=r.showgrid,this.gridLineColor[h]=i(r.gridcolor),this.gridLineWidth[h]=r.gridwidth,this.zeroLineEnable[h]=r.zeroline,this.zeroLineColor[h]=i(r.zerolinecolor),this.zeroLineWidth[h]=r.zerolinewidth}},o.hasSharedAxis=function(t){var e=this.scene,r=e.fullLayout._subplots.gl2d;return 0!==n.findSubplotsWithAxis(r,t).indexOf(e.id)},o.hasAxisInDfltPos=function(t,e){var r=e.side;return&quot;xaxis&quot;===t?&quot;bottom&quot;===r:&quot;yaxis&quot;===t?&quot;left&quot;===r:void 0},o.hasAxisInAltrPos=function(t,e){var r=e.side;return&quot;xaxis&quot;===t?&quot;top&quot;===r:&quot;yaxis&quot;===t?&quot;right&quot;===r:void 0},o.getLabelPad=function(t,e){var r=e.title.font.size,n=e.showticklabels;return&quot;xaxis&quot;===t?&quot;top&quot;===e.side?r*(1.5+(n?1:0))-10:r*(1.5+(n?.5:0))-10:&quot;yaxis&quot;===t?&quot;right&quot;===e.side?10+r*(1.5+(n?1:.5)):10+r*(1.5+(n?.5:0)):void 0},o.getTickPad=function(t){return&quot;outside&quot;===t.ticks?10+t.ticklen:15},o.getTickMarkLength=function(t){if(!t.ticks)return 0;var e=t.ticklen;return&quot;inside&quot;===t.ticks?-e:e},e.exports=function(t){return new a(t)}},{&quot;../../lib/str2rgbarray&quot;:802,&quot;../cartesian/axes&quot;:828}],868:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;./scene2d&quot;),a=t(&quot;../layout_attributes&quot;),o=t(&quot;../../constants/xmlns_namespaces&quot;),s=t(&quot;../cartesian/constants&quot;),l=t(&quot;../cartesian&quot;),c=t(&quot;../../components/fx/layout_attributes&quot;),u=t(&quot;../get_data&quot;).getSubplotData;r.name=&quot;gl2d&quot;,r.attr=[&quot;xaxis&quot;,&quot;yaxis&quot;],r.idRoot=[&quot;x&quot;,&quot;y&quot;],r.idRegex=s.idRegex,r.attrRegex=s.attrRegex,r.attributes=t(&quot;../cartesian/attributes&quot;),r.supplyLayoutDefaults=function(t,e,r){e._has(&quot;cartesian&quot;)||l.supplyLayoutDefaults(t,e,r)},r.layoutAttrOverrides=n(l.layoutAttributes,&quot;plot&quot;,&quot;from-root&quot;),r.baseLayoutAttrOverrides=n({plot_bgcolor:a.plot_bgcolor,hoverlabel:c.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl2d,a=0;a&lt;n.length;a++){var o=n[a],s=e._plots[o],l=u(r,&quot;gl2d&quot;,o),c=s._scene2d;void 0===c&amp;&amp;(c=new i({id:o,graphDiv:t,container:t.querySelector(&quot;.gl-container&quot;),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio},e),s._scene2d=c),c.plot(l,t.calcdata,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl2d||[],a=0;a&lt;i.length;a++){var o=i[a],s=n._plots[o];if(s._scene2d){var c=u(t,&quot;gl2d&quot;,o);0===c.length&amp;&amp;(s._scene2d.destroy(),delete n._plots[o])}}l.clean.apply(this,arguments)},r.drawFramework=function(t){t._context.staticPlot||l.drawFramework(t)},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n&lt;r.length;n++){var i=e._plots[r[n]]._scene2d,a=i.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:o.svg,&quot;xlink:href&quot;:a,x:0,y:0,width:&quot;100%&quot;,height:&quot;100%&quot;,preserveAspectRatio:&quot;none&quot;}),i.destroy()}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n&lt;r.length;n++){e._plots[r[n]]._scene2d.updateFx(e.dragmode)}}},{&quot;../../components/fx/layout_attributes&quot;:684,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../plot_api/edit_types&quot;:810,&quot;../cartesian&quot;:841,&quot;../cartesian/attributes&quot;:826,&quot;../cartesian/constants&quot;:834,&quot;../get_data&quot;:865,&quot;../layout_attributes&quot;:882,&quot;./scene2d&quot;:869}],869:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;../../registry&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;gl-plot2d&quot;),c=t(&quot;gl-spikes2d&quot;),u=t(&quot;gl-select-box&quot;),f=t(&quot;webgl-context&quot;),h=t(&quot;./convert&quot;),p=t(&quot;./camera&quot;),d=t(&quot;../../lib/show_no_webgl_msg&quot;),g=t(&quot;../cartesian/constraints&quot;),m=g.enforce,v=g.clean,y=t(&quot;../cartesian/autorange&quot;).doAutoRange,x=t(&quot;../../components/dragelement/helpers&quot;),b=x.drawMode,_=x.selectMode,w=[&quot;xaxis&quot;,&quot;yaxis&quot;],T=t(&quot;../cartesian/constants&quot;).SUBPLOT_PATTERN;function k(t,e){this.container=t.container,this.graphDiv=t.graphDiv,this.pixelRatio=t.plotGlPixelRatio||window.devicePixelRatio,this.id=t.id,this.staticPlot=!!t.staticPlot,this.scrollZoom=this.graphDiv._context._scrollZoom.cartesian,this.fullData=null,this.updateRefs(e),this.makeFramework(),this.stopped||(this.glplotOptions=h(this),this.glplotOptions.merge(e),this.glplot=l(this.glplotOptions),this.camera=p(this),this.traces={},this.spikes=c(this.glplot),this.selectBox=u(this.glplot,{innerFill:!1,outerFill:!0}),this.lastButtonState=0,this.pickResult=null,this.isMouseOver=!0,this.stopped=!1,this.redraw=this.draw.bind(this),this.redraw())}e.exports=k;var M=k.prototype;M.makeFramework=function(){if(this.staticPlot){if(!(i||(n=document.createElement(&quot;canvas&quot;),i=f({canvas:n,preserveDrawingBuffer:!1,premultipliedAlpha:!0,antialias:!0}))))throw new Error(&quot;Error creating static canvas/context for image server&quot;);this.canvas=n,this.gl=i}else{var t=this.container.querySelector(&quot;.gl-canvas-focus&quot;),e=f({canvas:t,preserveDrawingBuffer:!0,premultipliedAlpha:!0});if(!e)return d(this),void(this.stopped=!0);this.canvas=t,this.gl=e}var r=this.canvas;r.style.width=&quot;100%&quot;,r.style.height=&quot;100%&quot;,r.style.position=&quot;absolute&quot;,r.style.top=&quot;0px&quot;,r.style.left=&quot;0px&quot;,r.style[&quot;pointer-events&quot;]=&quot;none&quot;,this.updateSize(r);var a=this.svgContainer=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);a.style.position=&quot;absolute&quot;,a.style.top=a.style.left=&quot;0px&quot;,a.style.width=a.style.height=&quot;100%&quot;,a.style[&quot;z-index&quot;]=20,a.style[&quot;pointer-events&quot;]=&quot;none&quot;;var o=this.mouseContainer=document.createElement(&quot;div&quot;);o.style.position=&quot;absolute&quot;,o.style[&quot;pointer-events&quot;]=&quot;auto&quot;,this.pickCanvas=this.container.querySelector(&quot;.gl-canvas-pick&quot;);var s=this.container;s.appendChild(a),s.appendChild(o);var l=this;o.addEventListener(&quot;mouseout&quot;,(function(){l.isMouseOver=!1,l.unhover()})),o.addEventListener(&quot;mouseover&quot;,(function(){l.isMouseOver=!0}))},M.toImage=function(t){t||(t=&quot;png&quot;),this.stopped=!0,this.staticPlot&amp;&amp;this.container.appendChild(n),this.updateSize(this.canvas);var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.clearColor(1,1,1,0),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),this.glplot.setDirty(),this.glplot.draw(),e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a);for(var o=0,s=i-1;o&lt;s;++o,--s)for(var l=0;l&lt;r;++l)for(var c=0;c&lt;4;++c){var u=a[4*(r*o+l)+c];a[4*(r*o+l)+c]=a[4*(r*s+l)+c],a[4*(r*s+l)+c]=u}var f=document.createElement(&quot;canvas&quot;);f.width=r,f.height=i;var h,p=f.getContext(&quot;2d&quot;),d=p.createImageData(r,i);switch(d.data.set(a),p.putImageData(d,0,0),t){case&quot;jpeg&quot;:h=f.toDataURL(&quot;image/jpeg&quot;);break;case&quot;webp&quot;:h=f.toDataURL(&quot;image/webp&quot;);break;default:h=f.toDataURL(&quot;image/png&quot;)}return this.staticPlot&amp;&amp;this.container.removeChild(n),h},M.updateSize=function(t){t||(t=this.canvas);var e=this.pixelRatio,r=this.fullLayout,n=r.width,i=r.height,a=0|Math.ceil(e*n),o=0|Math.ceil(e*i);return t.width===a&amp;&amp;t.height===o||(t.width=a,t.height=o),t},M.computeTickMarks=function(){this.xaxis.setScale(),this.yaxis.setScale();for(var t=[o.calcTicks(this.xaxis),o.calcTicks(this.yaxis)],e=0;e&lt;2;++e)for(var r=0;r&lt;t[e].length;++r)t[e][r].text=t[e][r].text+&quot;&quot;;return t},M.updateRefs=function(t){this.fullLayout=t;var e=this.id.match(T),r=&quot;xaxis&quot;+e[1],n=&quot;yaxis&quot;+e[2];this.xaxis=this.fullLayout[r],this.yaxis=this.fullLayout[n]},M.relayoutCallback=function(){var t=this.graphDiv,e=this.xaxis,r=this.yaxis,n=t.layout,i={},o=i[e._name+&quot;.range&quot;]=e.range.slice(),s=i[r._name+&quot;.range&quot;]=r.range.slice();i[e._name+&quot;.autorange&quot;]=e.autorange,i[r._name+&quot;.autorange&quot;]=r.autorange,a.call(&quot;_storeDirectGUIEdit&quot;,t.layout,t._fullLayout._preGUI,i);var l=n[e._name];l.range=o,l.autorange=e.autorange;var c=n[r._name];c.range=s,c.autorange=r.autorange,i.lastInputTime=this.camera.lastInputTime,t.emit(&quot;plotly_relayout&quot;,i)},M.cameraChanged=function(){var t=this.camera;this.glplot.setDataBox(this.calcDataBox());var e=this.computeTickMarks();(function(t,e){for(var r=0;r&lt;2;++r){var n=t[r],i=e[r];if(n.length!==i.length)return!0;for(var a=0;a&lt;n.length;++a)if(n[a].x!==i[a].x)return!0}return!1})(e,this.glplotOptions.ticks)&amp;&amp;(this.glplotOptions.ticks=e,this.glplotOptions.dataBox=t.dataBox,this.glplot.update(this.glplotOptions),this.handleAnnotations())},M.handleAnnotations=function(){for(var t=this.graphDiv,e=this.fullLayout.annotations,r=0;r&lt;e.length;r++){var n=e[r];n.xref===this.xaxis._id&amp;&amp;n.yref===this.yaxis._id&amp;&amp;a.getComponentMethod(&quot;annotations&quot;,&quot;drawOne&quot;)(t,r)}},M.destroy=function(){if(this.glplot){var t=this.traces;t&amp;&amp;Object.keys(t).map((function(e){t[e].dispose(),delete t[e]})),this.glplot.dispose(),this.container.removeChild(this.svgContainer),this.container.removeChild(this.mouseContainer),this.fullData=null,this.glplot=null,this.stopped=!0,this.camera.mouseListener.enabled=!1,this.mouseContainer.removeEventListener(&quot;wheel&quot;,this.camera.wheelListener),this.camera=null}},M.plot=function(t,e,r){var n=this.glplot;this.updateRefs(r),this.xaxis.clearCalc(),this.yaxis.clearCalc(),this.updateTraces(t,e),this.updateFx(r.dragmode);var i=r.width,a=r.height;this.updateSize(this.canvas);var o=this.glplotOptions;o.merge(r),o.screenBox=[0,0,i,a];var s={_fullLayout:{_axisConstraintGroups:this.graphDiv._fullLayout._axisConstraintGroups,xaxis:this.xaxis,yaxis:this.yaxis}};v(s,this.xaxis),v(s,this.yaxis);var l,c,u=r._size,f=this.xaxis.domain,h=this.yaxis.domain;for(o.viewBox=[u.l+f[0]*u.w,u.b+h[0]*u.h,i-u.r-(1-f[1])*u.w,a-u.t-(1-h[1])*u.h],this.mouseContainer.style.width=u.w*(f[1]-f[0])+&quot;px&quot;,this.mouseContainer.style.height=u.h*(h[1]-h[0])+&quot;px&quot;,this.mouseContainer.height=u.h*(h[1]-h[0]),this.mouseContainer.style.left=u.l+f[0]*u.w+&quot;px&quot;,this.mouseContainer.style.top=u.t+(1-h[1])*u.h+&quot;px&quot;,c=0;c&lt;2;++c)(l=this[w[c]])._length=o.viewBox[c+2]-o.viewBox[c],y(this.graphDiv,l),l.setScale();m(s),o.ticks=this.computeTickMarks(),o.dataBox=this.calcDataBox(),o.merge(r),n.update(o),this.glplot.draw()},M.calcDataBox=function(){var t=this.xaxis,e=this.yaxis,r=t.range,n=e.range,i=t.r2l,a=e.r2l;return[i(r[0]),a(n[0]),i(r[1]),a(n[1])]},M.setRanges=function(t){var e=this.xaxis,r=this.yaxis,n=e.l2r,i=r.l2r;e.range=[n(t[0]),n(t[2])],r.range=[i(t[1]),i(t[3])]},M.updateTraces=function(t,e){var r,n,i,a=Object.keys(this.traces);this.fullData=t;t:for(r=0;r&lt;a.length;r++){var o=a[r],s=this.traces[o];for(n=0;n&lt;t.length;n++)if((i=t[n]).uid===o&amp;&amp;i.type===s.type)continue t;s.dispose(),delete this.traces[o]}for(r=0;r&lt;t.length;r++){i=t[r];var l=e[r],c=this.traces[i.uid];c?c.update(i,l):(c=i._module.plot(this,i,l),this.traces[i.uid]=c)}this.glplot.objects.sort((function(t,e){return t._trace.index-e._trace.index}))},M.updateFx=function(t){_(t)||b(t)?(this.pickCanvas.style[&quot;pointer-events&quot;]=&quot;none&quot;,this.mouseContainer.style[&quot;pointer-events&quot;]=&quot;none&quot;):(this.pickCanvas.style[&quot;pointer-events&quot;]=&quot;auto&quot;,this.mouseContainer.style[&quot;pointer-events&quot;]=&quot;auto&quot;),this.mouseContainer.style.cursor=&quot;pan&quot;===t?&quot;move&quot;:&quot;zoom&quot;===t?&quot;crosshair&quot;:null},M.emitPointAction=function(t,e){for(var r,n=t.trace.uid,i=t.pointIndex,a=0;a&lt;this.fullData.length;a++)this.fullData[a].uid===n&amp;&amp;(r=this.fullData[a]);var o={x:t.traceCoord[0],y:t.traceCoord[1],curveNumber:r.index,pointNumber:i,data:r._input,fullData:this.fullData,xaxis:this.xaxis,yaxis:this.yaxis};s.appendArrayPointValue(o,r,i),this.graphDiv.emit(e,{points:[o]})},M.draw=function(){if(!this.stopped){requestAnimationFrame(this.redraw);var t=this.glplot,e=this.camera,r=e.mouseListener,n=1===this.lastButtonState&amp;&amp;0===r.buttons,i=this.fullLayout;this.lastButtonState=r.buttons,this.cameraChanged();var a,o=r.x*t.pixelRatio,l=this.canvas.height-t.pixelRatio*r.y;if(e.boxEnabled&amp;&amp;&quot;zoom&quot;===i.dragmode){this.selectBox.enabled=!0;for(var c=this.selectBox.selectBox=[Math.min(e.boxStart[0],e.boxEnd[0]),Math.min(e.boxStart[1],e.boxEnd[1]),Math.max(e.boxStart[0],e.boxEnd[0]),Math.max(e.boxStart[1],e.boxEnd[1])],u=0;u&lt;2;u++)e.boxStart[u]===e.boxEnd[u]&amp;&amp;(c[u]=t.dataBox[u],c[u+2]=t.dataBox[u+2]);t.setDirty()}else if(!e.panning&amp;&amp;this.isMouseOver){this.selectBox.enabled=!1;var f=i._size,h=this.xaxis.domain,p=this.yaxis.domain,d=(a=t.pick(o/t.pixelRatio+f.l+h[0]*f.w,l/t.pixelRatio-(f.t+(1-p[1])*f.h)))&amp;&amp;a.object._trace.handlePick(a);if(d&amp;&amp;n&amp;&amp;this.emitPointAction(d,&quot;plotly_click&quot;),a&amp;&amp;&quot;skip&quot;!==a.object._trace.hoverinfo&amp;&amp;i.hovermode&amp;&amp;d&amp;&amp;(!this.lastPickResult||this.lastPickResult.traceUid!==d.trace.uid||this.lastPickResult.dataCoord[0]!==d.dataCoord[0]||this.lastPickResult.dataCoord[1]!==d.dataCoord[1])){var g=d;this.lastPickResult={traceUid:d.trace?d.trace.uid:null,dataCoord:d.dataCoord.slice()},this.spikes.update({center:a.dataCoord}),g.screenCoord=[((t.viewBox[2]-t.viewBox[0])*(a.dataCoord[0]-t.dataBox[0])/(t.dataBox[2]-t.dataBox[0])+t.viewBox[0])/t.pixelRatio,(this.canvas.height-(t.viewBox[3]-t.viewBox[1])*(a.dataCoord[1]-t.dataBox[1])/(t.dataBox[3]-t.dataBox[1])-t.viewBox[1])/t.pixelRatio],this.emitPointAction(d,&quot;plotly_hover&quot;);var m=this.fullData[g.trace.index]||{},v=g.pointIndex,y=s.castHoverinfo(m,i,v);if(y&amp;&amp;&quot;all&quot;!==y){var x=y.split(&quot;+&quot;);-1===x.indexOf(&quot;x&quot;)&amp;&amp;(g.traceCoord[0]=void 0),-1===x.indexOf(&quot;y&quot;)&amp;&amp;(g.traceCoord[1]=void 0),-1===x.indexOf(&quot;z&quot;)&amp;&amp;(g.traceCoord[2]=void 0),-1===x.indexOf(&quot;text&quot;)&amp;&amp;(g.textLabel=void 0),-1===x.indexOf(&quot;name&quot;)&amp;&amp;(g.name=void 0)}s.loneHover({x:g.screenCoord[0],y:g.screenCoord[1],xLabel:this.hoverFormatter(&quot;xaxis&quot;,g.traceCoord[0]),yLabel:this.hoverFormatter(&quot;yaxis&quot;,g.traceCoord[1]),zLabel:g.traceCoord[2],text:g.textLabel,name:g.name,color:s.castHoverOption(m,v,&quot;bgcolor&quot;)||g.color,borderColor:s.castHoverOption(m,v,&quot;bordercolor&quot;),fontFamily:s.castHoverOption(m,v,&quot;font.family&quot;),fontSize:s.castHoverOption(m,v,&quot;font.size&quot;),fontColor:s.castHoverOption(m,v,&quot;font.color&quot;),nameLength:s.castHoverOption(m,v,&quot;namelength&quot;),textAlign:s.castHoverOption(m,v,&quot;align&quot;)},{container:this.svgContainer,gd:this.graphDiv})}}a||this.unhover(),t.draw()}},M.unhover=function(){this.lastPickResult&amp;&amp;(this.spikes.update({}),this.lastPickResult=null,this.graphDiv.emit(&quot;plotly_unhover&quot;),s.loneUnhover(this.svgContainer))},M.hoverFormatter=function(t,e){if(void 0!==e){var r=this[t];return o.tickText(r,r.c2l(e),&quot;hover&quot;).text}}},{&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/fx&quot;:683,&quot;../../lib/show_no_webgl_msg&quot;:800,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../cartesian/autorange&quot;:827,&quot;../cartesian/constants&quot;:834,&quot;../cartesian/constraints&quot;:835,&quot;./camera&quot;:866,&quot;./convert&quot;:867,&quot;gl-plot2d&quot;:317,&quot;gl-select-box&quot;:333,&quot;gl-spikes2d&quot;:342,&quot;webgl-context&quot;:606}],870:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;../../components/fx/layout_attributes&quot;),a=t(&quot;./scene&quot;),o=t(&quot;../get_data&quot;).getSubplotData,s=t(&quot;../../lib&quot;),l=t(&quot;../../constants/xmlns_namespaces&quot;);r.name=&quot;gl3d&quot;,r.attr=&quot;scene&quot;,r.idRoot=&quot;scene&quot;,r.idRegex=r.attrRegex=s.counterRegex(&quot;scene&quot;),r.attributes=t(&quot;./layout/attributes&quot;),r.layoutAttributes=t(&quot;./layout/layout_attributes&quot;),r.baseLayoutAttrOverrides=n({hoverlabel:i.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.supplyLayoutDefaults=t(&quot;./layout/defaults&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl3d,i=0;i&lt;n.length;i++){var s=n[i],l=o(r,&quot;gl3d&quot;,s),c=e[s],u=c.camera,f=c._scene;f||(f=new a({id:s,graphDiv:t,container:t.querySelector(&quot;.gl-container&quot;),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio,camera:u},e),c._scene=f),f.viewInitial||(f.viewInitial={up:{x:u.up.x,y:u.up.y,z:u.up.z},eye:{x:u.eye.x,y:u.eye.y,z:u.eye.z},center:{x:u.center.x,y:u.center.y,z:u.center.z}}),f.plot(l,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl3d||[],a=0;a&lt;i.length;a++){var o=i[a];!e[o]&amp;&amp;n[o]._scene&amp;&amp;(n[o]._scene.destroy(),n._infolayer&amp;&amp;n._infolayer.selectAll(&quot;.annotation-&quot;+o).remove())}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=e._size,i=0;i&lt;r.length;i++){var a=e[r[i]],o=a.domain,s=a._scene,c=s.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:l.svg,&quot;xlink:href&quot;:c,x:n.l+n.w*o.x[0],y:n.t+n.h*(1-o.y[1]),width:n.w*(o.x[1]-o.x[0]),height:n.h*(o.y[1]-o.y[0]),preserveAspectRatio:&quot;none&quot;}),s.destroy()}},r.cleanId=function(t){if(t.match(/^scene[0-9]*$/)){var e=t.substr(5);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),&quot;scene&quot;+e}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n&lt;r.length;n++){e[r[n]]._scene.updateFx(e.dragmode,e.hovermode)}}},{&quot;../../components/fx/layout_attributes&quot;:684,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;../get_data&quot;:865,&quot;./layout/attributes&quot;:871,&quot;./layout/defaults&quot;:875,&quot;./layout/layout_attributes&quot;:876,&quot;./scene&quot;:880}],871:[function(t,e,r){&quot;use strict&quot;;e.exports={scene:{valType:&quot;subplotid&quot;,dflt:&quot;scene&quot;,editType:&quot;calc+clearAxisTypes&quot;}}},{}],872:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../components/color&quot;),i=t(&quot;../../cartesian/layout_attributes&quot;),a=t(&quot;../../../lib/extend&quot;).extendFlat,o=t(&quot;../../../plot_api/edit_types&quot;).overrideAll;e.exports=o({visible:i.visible,showspikes:{valType:&quot;boolean&quot;,dflt:!0},spikesides:{valType:&quot;boolean&quot;,dflt:!0},spikethickness:{valType:&quot;number&quot;,min:0,dflt:2},spikecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},showbackground:{valType:&quot;boolean&quot;,dflt:!1},backgroundcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(204, 204, 204, 0.5)&quot;},showaxeslabels:{valType:&quot;boolean&quot;,dflt:!0},color:i.color,categoryorder:i.categoryorder,categoryarray:i.categoryarray,title:{text:i.title.text,font:i.title.font},type:a({},i.type,{values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;]}),autotypenumbers:i.autotypenumbers,autorange:i.autorange,rangemode:i.rangemode,range:a({},i.range,{items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],anim:!1}),tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,mirror:i.mirror,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,tickfont:i.tickfont,tickangle:i.tickangle,tickprefix:i.tickprefix,showtickprefix:i.showtickprefix,ticksuffix:i.ticksuffix,showticksuffix:i.showticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickformat:i.tickformat,tickformatstops:i.tickformatstops,hoverformat:i.hoverformat,showline:i.showline,linecolor:i.linecolor,linewidth:i.linewidth,showgrid:i.showgrid,gridcolor:a({},i.gridcolor,{dflt:&quot;rgb(204, 204, 204)&quot;}),gridwidth:i.gridwidth,zeroline:i.zeroline,zerolinecolor:i.zerolinecolor,zerolinewidth:i.zerolinewidth,_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}},&quot;plot&quot;,&quot;from-root&quot;)},{&quot;../../../components/color&quot;:643,&quot;../../../lib/extend&quot;:768,&quot;../../../plot_api/edit_types&quot;:810,&quot;../../cartesian/layout_attributes&quot;:842}],873:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;).mix,i=t(&quot;../../../lib&quot;),a=t(&quot;../../../plot_api/plot_template&quot;),o=t(&quot;./axis_attributes&quot;),s=t(&quot;../../cartesian/type_defaults&quot;),l=t(&quot;../../cartesian/axis_defaults&quot;),c=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];e.exports=function(t,e,r){var u,f;function h(t,e){return i.coerce(u,f,o,t,e)}for(var p=0;p&lt;c.length;p++){var d=c[p];u=t[d]||{},(f=a.newContainer(e,d))._id=d[0]+r.scene,f._name=d,s(u,f,h,r),l(u,f,h,{font:r.font,letter:d[0],data:r.data,showGrid:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelposition:!0,bgColor:r.bgColor,calendar:r.calendar},r.fullLayout),h(&quot;gridcolor&quot;,n(f.color,r.bgColor,13600/187).toRgbString()),h(&quot;title.text&quot;,d[0]),f.setScale=i.noop,h(&quot;showspikes&quot;)&amp;&amp;(h(&quot;spikesides&quot;),h(&quot;spikethickness&quot;),h(&quot;spikecolor&quot;,f.color)),h(&quot;showaxeslabels&quot;),h(&quot;showbackground&quot;)&amp;&amp;h(&quot;backgroundcolor&quot;)}}},{&quot;../../../lib&quot;:778,&quot;../../../plot_api/plot_template&quot;:817,&quot;../../cartesian/axis_defaults&quot;:830,&quot;../../cartesian/type_defaults&quot;:853,&quot;./axis_attributes&quot;:872,tinycolor2:576}],874:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib/str2rgbarray&quot;),i=t(&quot;../../../lib&quot;),a=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function o(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],this.labelEnable=[!0,!0,!0],this.labelFont=[&quot;Open Sans&quot;,&quot;Open Sans&quot;,&quot;Open Sans&quot;],this.labelSize=[20,20,20],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}o.prototype.merge=function(t,e){for(var r=0;r&lt;3;++r){var o=e[a[r]];o.visible?(this.labels[r]=t._meta?i.templateString(o.title.text,t._meta):o.title.text,&quot;font&quot;in o.title&amp;&amp;(o.title.font.color&amp;&amp;(this.labelColor[r]=n(o.title.font.color)),o.title.font.family&amp;&amp;(this.labelFont[r]=o.title.font.family),o.title.font.size&amp;&amp;(this.labelSize[r]=o.title.font.size)),&quot;showline&quot;in o&amp;&amp;(this.lineEnable[r]=o.showline),&quot;linecolor&quot;in o&amp;&amp;(this.lineColor[r]=n(o.linecolor)),&quot;linewidth&quot;in o&amp;&amp;(this.lineWidth[r]=o.linewidth),&quot;showgrid&quot;in o&amp;&amp;(this.gridEnable[r]=o.showgrid),&quot;gridcolor&quot;in o&amp;&amp;(this.gridColor[r]=n(o.gridcolor)),&quot;gridwidth&quot;in o&amp;&amp;(this.gridWidth[r]=o.gridwidth),&quot;log&quot;===o.type?this.zeroEnable[r]=!1:&quot;zeroline&quot;in o&amp;&amp;(this.zeroEnable[r]=o.zeroline),&quot;zerolinecolor&quot;in o&amp;&amp;(this.zeroLineColor[r]=n(o.zerolinecolor)),&quot;zerolinewidth&quot;in o&amp;&amp;(this.zeroLineWidth[r]=o.zerolinewidth),&quot;ticks&quot;in o&amp;&amp;o.ticks?this.lineTickEnable[r]=!0:this.lineTickEnable[r]=!1,&quot;ticklen&quot;in o&amp;&amp;(this.lineTickLength[r]=this._defaultLineTickLength[r]=o.ticklen),&quot;tickcolor&quot;in o&amp;&amp;(this.lineTickColor[r]=n(o.tickcolor)),&quot;tickwidth&quot;in o&amp;&amp;(this.lineTickWidth[r]=o.tickwidth),&quot;tickangle&quot;in o&amp;&amp;(this.tickAngle[r]=&quot;auto&quot;===o.tickangle?-3600:Math.PI*-o.tickangle/180),&quot;showticklabels&quot;in o&amp;&amp;(this.tickEnable[r]=o.showticklabels),&quot;tickfont&quot;in o&amp;&amp;(o.tickfont.color&amp;&amp;(this.tickColor[r]=n(o.tickfont.color)),o.tickfont.family&amp;&amp;(this.tickFont[r]=o.tickfont.family),o.tickfont.size&amp;&amp;(this.tickSize[r]=o.tickfont.size)),&quot;mirror&quot;in o?-1!==[&quot;ticks&quot;,&quot;all&quot;,&quot;allticks&quot;].indexOf(o.mirror)?(this.lineTickMirror[r]=!0,this.lineMirror[r]=!0):!0===o.mirror?(this.lineTickMirror[r]=!1,this.lineMirror[r]=!0):(this.lineTickMirror[r]=!1,this.lineMirror[r]=!1):this.lineMirror[r]=!1,&quot;showbackground&quot;in o&amp;&amp;!1!==o.showbackground?(this.backgroundEnable[r]=!0,this.backgroundColor[r]=n(o.backgroundcolor)):this.backgroundEnable[r]=!1):(this.tickEnable[r]=!1,this.labelEnable[r]=!1,this.lineEnable[r]=!1,this.lineTickEnable[r]=!1,this.gridEnable[r]=!1,this.zeroEnable[r]=!1,this.backgroundEnable[r]=!1)}},e.exports=function(t,e){var r=new o;return r.merge(t,e),r}},{&quot;../../../lib&quot;:778,&quot;../../../lib/str2rgbarray&quot;:802}],875:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib&quot;),i=t(&quot;../../../components/color&quot;),a=t(&quot;../../../registry&quot;),o=t(&quot;../../subplot_defaults&quot;),s=t(&quot;./axis_defaults&quot;),l=t(&quot;./layout_attributes&quot;),c=t(&quot;../../get_data&quot;).getSubplotData;function u(t,e,r,n){for(var o=r(&quot;bgcolor&quot;),l=i.combine(o,n.paper_bgcolor),u=[&quot;up&quot;,&quot;center&quot;,&quot;eye&quot;],f=0;f&lt;u.length;f++)r(&quot;camera.&quot;+u[f]+&quot;.x&quot;),r(&quot;camera.&quot;+u[f]+&quot;.y&quot;),r(&quot;camera.&quot;+u[f]+&quot;.z&quot;);r(&quot;camera.projection.type&quot;);var h=!!r(&quot;aspectratio.x&quot;)&amp;&amp;!!r(&quot;aspectratio.y&quot;)&amp;&amp;!!r(&quot;aspectratio.z&quot;),p=r(&quot;aspectmode&quot;,h?&quot;manual&quot;:&quot;auto&quot;);h||(t.aspectratio=e.aspectratio={x:1,y:1,z:1},&quot;manual&quot;===p&amp;&amp;(e.aspectmode=&quot;auto&quot;),t.aspectmode=e.aspectmode);var d=c(n.fullData,&quot;gl3d&quot;,n.id);s(t,e,{font:n.font,scene:n.id,data:d,bgColor:l,calendar:n.calendar,autotypenumbersDflt:n.autotypenumbersDflt,fullLayout:n.fullLayout}),a.getComponentMethod(&quot;annotations3d&quot;,&quot;handleDefaults&quot;)(t,e,n);var g=n.getDfltFromLayout(&quot;dragmode&quot;);if(!1!==g&amp;&amp;!g)if(g=&quot;orbit&quot;,t.camera&amp;&amp;t.camera.up){var m=t.camera.up.x,v=t.camera.up.y,y=t.camera.up.z;0!==y&amp;&amp;(m&amp;&amp;v&amp;&amp;y?y/Math.sqrt(m*m+v*v+y*y)&gt;.999&amp;&amp;(g=&quot;turntable&quot;):g=&quot;turntable&quot;)}else g=&quot;turntable&quot;;r(&quot;dragmode&quot;,g),r(&quot;hovermode&quot;,n.getDfltFromLayout(&quot;hovermode&quot;))}e.exports=function(t,e,r){var i=e._basePlotModules.length&gt;1;o(t,e,r,{type:&quot;gl3d&quot;,attributes:l,handleDefaults:u,fullLayout:e,font:e.font,fullData:r,getDfltFromLayout:function(e){if(!i)return n.validate(t[e],l[e])?t[e]:void 0},autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,calendar:e.calendar})}},{&quot;../../../components/color&quot;:643,&quot;../../../lib&quot;:778,&quot;../../../registry&quot;:911,&quot;../../get_data&quot;:865,&quot;../../subplot_defaults&quot;:905,&quot;./axis_defaults&quot;:873,&quot;./layout_attributes&quot;:876}],876:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./axis_attributes&quot;),i=t(&quot;../../domain&quot;).attributes,a=t(&quot;../../../lib/extend&quot;).extendFlat,o=t(&quot;../../../lib&quot;).counterRegex;function s(t,e,r){return{x:{valType:&quot;number&quot;,dflt:t,editType:&quot;camera&quot;},y:{valType:&quot;number&quot;,dflt:e,editType:&quot;camera&quot;},z:{valType:&quot;number&quot;,dflt:r,editType:&quot;camera&quot;},editType:&quot;camera&quot;}}e.exports={_arrayAttrRegexps:[o(&quot;scene&quot;,&quot;.annotations&quot;,!0)],bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;plot&quot;},camera:{up:a(s(0,0,1),{}),center:a(s(0,0,0),{}),eye:a(s(1.25,1.25,1.25),{}),projection:{type:{valType:&quot;enumerated&quot;,values:[&quot;perspective&quot;,&quot;orthographic&quot;],dflt:&quot;perspective&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;camera&quot;},domain:i({name:&quot;scene&quot;,editType:&quot;plot&quot;}),aspectmode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;cube&quot;,&quot;data&quot;,&quot;manual&quot;],dflt:&quot;auto&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;aspectratio.x&quot;:void 0,&quot;aspectratio.y&quot;:void 0,&quot;aspectratio.z&quot;:void 0}},aspectratio:{x:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},y:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},z:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},editType:&quot;plot&quot;,impliedEdits:{aspectmode:&quot;manual&quot;}},xaxis:n,yaxis:n,zaxis:n,dragmode:{valType:&quot;enumerated&quot;,values:[&quot;orbit&quot;,&quot;turntable&quot;,&quot;zoom&quot;,&quot;pan&quot;,!1],editType:&quot;plot&quot;},hovermode:{valType:&quot;enumerated&quot;,values:[&quot;closest&quot;,!1],dflt:&quot;closest&quot;,editType:&quot;modebar&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;plot&quot;,_deprecated:{cameraposition:{valType:&quot;info_array&quot;,editType:&quot;camera&quot;}}}},{&quot;../../../lib&quot;:778,&quot;../../../lib/extend&quot;:768,&quot;../../domain&quot;:855,&quot;./axis_attributes&quot;:872}],877:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib/str2rgbarray&quot;),i=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function a(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}a.prototype.merge=function(t){for(var e=0;e&lt;3;++e){var r=t[i[e]];r.visible?(this.enabled[e]=r.showspikes,this.colors[e]=n(r.spikecolor),this.drawSides[e]=r.spikesides,this.lineWidth[e]=r.spikethickness):(this.enabled[e]=!1,this.drawSides[e]=!1)}},e.exports=function(t){var e=new a;return e.merge(t),e}},{&quot;../../../lib/str2rgbarray&quot;:802}],878:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.axesOptions,r=t.glplot.axesPixels,s=t.fullSceneLayout,l=[[],[],[]],c=0;c&lt;3;++c){var u=s[a[c]];if(u._length=(r[c].hi-r[c].lo)*r[c].pixelsPerDataUnit/t.dataScale[c],Math.abs(u._length)===1/0||isNaN(u._length))l[c]=[];else{u._input_range=u.range.slice(),u.range[0]=r[c].lo/t.dataScale[c],u.range[1]=r[c].hi/t.dataScale[c],u._m=1/(t.dataScale[c]*r[c].pixelsPerDataUnit),u.range[0]===u.range[1]&amp;&amp;(u.range[0]-=1,u.range[1]+=1);var f=u.tickmode;if(&quot;auto&quot;===u.tickmode){u.tickmode=&quot;linear&quot;;var h=u.nticks||i.constrain(u._length/40,4,9);n.autoTicks(u,Math.abs(u.range[1]-u.range[0])/h)}for(var p=n.calcTicks(u,{msUTC:!0}),d=0;d&lt;p.length;++d)p[d].x=p[d].x*t.dataScale[c],&quot;date&quot;===u.type&amp;&amp;(p[d].text=p[d].text.replace(/\&lt;br\&gt;/g,&quot; &quot;));l[c]=p,u.tickmode=f}}e.ticks=l;for(c=0;c&lt;3;++c){o[c]=.5*(t.glplot.bounds[0][c]+t.glplot.bounds[1][c]);for(d=0;d&lt;2;++d)e.bounds[d][c]=t.glplot.bounds[d][c]}t.contourLevels=function(t){for(var e=new Array(3),r=0;r&lt;3;++r){for(var n=t[r],i=new Array(n.length),a=0;a&lt;n.length;++a)i[a]=n[a].x;e[r]=i}return e}(l)};var n=t(&quot;../../cartesian/axes&quot;),i=t(&quot;../../../lib&quot;),a=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;],o=[0,0,0]},{&quot;../../../lib&quot;:778,&quot;../../cartesian/axes&quot;:828}],879:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r,n,i=[0,0,0,0];for(r=0;r&lt;4;++r)for(n=0;n&lt;4;++n)i[n]+=t[4*r+n]*e[r];return i}e.exports=function(t,e){return n(t.projection,n(t.view,n(t.model,[e[0],e[1],e[2],1])))}},{}],880:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;gl-plot3d&quot;),o=a.createCamera,s=a.createScene,l=t(&quot;webgl-context&quot;),c=t(&quot;has-passive-events&quot;),u=t(&quot;../../registry&quot;),f=t(&quot;../../lib&quot;),h=f.preserveDrawingBuffer(),p=t(&quot;../../plots/cartesian/axes&quot;),d=t(&quot;../../components/fx&quot;),g=t(&quot;../../lib/str2rgbarray&quot;),m=t(&quot;../../lib/show_no_webgl_msg&quot;),v=t(&quot;./project&quot;),y=t(&quot;./layout/convert&quot;),x=t(&quot;./layout/spikes&quot;),b=t(&quot;./layout/tick_marks&quot;);function _(t,e){var r=document.createElement(&quot;div&quot;),n=t.container;this.graphDiv=t.graphDiv;var i=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);i.style.position=&quot;absolute&quot;,i.style.top=i.style.left=&quot;0px&quot;,i.style.width=i.style.height=&quot;100%&quot;,i.style[&quot;z-index&quot;]=20,i.style[&quot;pointer-events&quot;]=&quot;none&quot;,r.appendChild(i),this.svgContainer=i,r.id=t.id,r.style.position=&quot;absolute&quot;,r.style.top=r.style.left=&quot;0px&quot;,r.style.width=r.style.height=&quot;100%&quot;,n.appendChild(r),this.fullLayout=e,this.id=t.id||&quot;scene&quot;,this.fullSceneLayout=e[this.id],this.plotArgs=[[],{},{}],this.axesOptions=y(e,e[this.id]),this.spikeOptions=x(e[this.id]),this.container=r,this.staticMode=!!t.staticPlot,this.pixelRatio=this.pixelRatio||t.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=u.getComponentMethod(&quot;annotations3d&quot;,&quot;convert&quot;),this.drawAnnotations=u.getComponentMethod(&quot;annotations3d&quot;,&quot;draw&quot;),this.initializeGLPlot()}var w=_.prototype;w.prepareOptions=function(){var t={canvas:this.canvas,gl:this.gl,glOptions:{preserveDrawingBuffer:h,premultipliedAlpha:!0,antialias:!0},container:this.container,axes:this.axesOptions,spikes:this.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:this.camera,pixelRatio:this.pixelRatio};if(this.staticMode){if(!(i||(n=document.createElement(&quot;canvas&quot;),i=l({canvas:n,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error(&quot;error creating static canvas/context for image server&quot;);t.gl=i,t.canvas=n}return t};var T=!0;w.tryCreatePlot=function(){var t=this.prepareOptions(),e=!0;try{this.glplot=s(t)}catch(r){if(this.staticMode||!T||h)e=!1;else{f.warn([&quot;webgl setup failed possibly due to&quot;,&quot;false preserveDrawingBuffer config.&quot;,&quot;The mobile/tablet device may not be detected by is-mobile module.&quot;,&quot;Enabling preserveDrawingBuffer in second attempt to create webgl scene...&quot;].join(&quot; &quot;));try{h=t.glOptions.preserveDrawingBuffer=!0,this.glplot=s(t)}catch(r){h=t.glOptions.preserveDrawingBuffer=!1,e=!1}}}return T=!1,e},w.initializeGLCamera=function(){var t=this.fullSceneLayout.camera,e=&quot;orthographic&quot;===t.projection.type;this.camera=o(this.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:e,zoomMin:.01,zoomMax:100,mode:&quot;orbit&quot;})},w.initializeGLPlot=function(){var t=this;if(t.initializeGLCamera(),!t.tryCreatePlot())return m(t);t.traces={},t.make4thDimension();var e=t.graphDiv,r=e.layout,n=function(){var e={};return t.isCameraChanged(r)&amp;&amp;(e[t.id+&quot;.camera&quot;]=t.getCamera()),t.isAspectChanged(r)&amp;&amp;(e[t.id+&quot;.aspectratio&quot;]=t.glplot.getAspectratio(),&quot;manual&quot;!==r[t.id].aspectmode&amp;&amp;(t.fullSceneLayout.aspectmode=r[t.id].aspectmode=e[t.id+&quot;.aspectmode&quot;]=&quot;manual&quot;)),e},i=function(t){if(!1!==t.fullSceneLayout.dragmode){var e=n();t.saveLayout(r),t.graphDiv.emit(&quot;plotly_relayout&quot;,e)}};return t.glplot.canvas&amp;&amp;(t.glplot.canvas.addEventListener(&quot;mouseup&quot;,(function(){i(t)})),t.glplot.canvas.addEventListener(&quot;wheel&quot;,(function(r){if(e._context._scrollZoom.gl3d){if(t.camera._ortho){var n=r.deltaX&gt;r.deltaY?1.1:1/1.1,a=t.glplot.getAspectratio();t.glplot.setAspectratio({x:n*a.x,y:n*a.y,z:n*a.z})}i(t)}}),!!c&amp;&amp;{passive:!1}),t.glplot.canvas.addEventListener(&quot;mousemove&quot;,(function(){if(!1!==t.fullSceneLayout.dragmode&amp;&amp;0!==t.camera.mouseListener.buttons){var e=n();t.graphDiv.emit(&quot;plotly_relayouting&quot;,e)}})),t.staticMode||t.glplot.canvas.addEventListener(&quot;webglcontextlost&quot;,(function(r){e&amp;&amp;e.emit&amp;&amp;e.emit(&quot;plotly_webglcontextlost&quot;,{event:r,layer:t.id})}),!1)),t.glplot.oncontextloss=function(){t.recoverContext()},t.glplot.onrender=function(){t.render()},!0},w.render=function(){var t,e=this,r=e.graphDiv,n=e.svgContainer,i=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var a=r._fullLayout._invScaleX,o=r._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,&quot;viewBox&quot;,&quot;0 0 &quot;+s+&quot; &quot;+l),n.setAttributeNS(null,&quot;width&quot;,s),n.setAttributeNS(null,&quot;height&quot;,l),b(e),e.glplot.axes.update(e.axesOptions);for(var c,u=Object.keys(e.traces),h=null,g=e.glplot.selection,m=0;m&lt;u.length;++m)&quot;skip&quot;!==(t=e.traces[u[m]]).data.hoverinfo&amp;&amp;t.handlePick(g)&amp;&amp;(h=t),t.setContourLevels&amp;&amp;t.setContourLevels();function y(t,r){var n=e.fullSceneLayout[t];return p.tickText(n,n.d2l(r),&quot;hover&quot;).text}if(null!==h){var x=v(e.glplot.cameraParams,g.dataCoordinate);t=h.data;var _,w=r._fullData[t.index],T=g.index,k={xLabel:y(&quot;xaxis&quot;,g.traceCoordinate[0]),yLabel:y(&quot;yaxis&quot;,g.traceCoordinate[1]),zLabel:y(&quot;zaxis&quot;,g.traceCoordinate[2])},M=d.castHoverinfo(w,e.fullLayout,T),A=(M||&quot;&quot;).split(&quot;+&quot;),S=M&amp;&amp;&quot;all&quot;===M;w.hovertemplate||S||(-1===A.indexOf(&quot;x&quot;)&amp;&amp;(k.xLabel=void 0),-1===A.indexOf(&quot;y&quot;)&amp;&amp;(k.yLabel=void 0),-1===A.indexOf(&quot;z&quot;)&amp;&amp;(k.zLabel=void 0),-1===A.indexOf(&quot;text&quot;)&amp;&amp;(g.textLabel=void 0),-1===A.indexOf(&quot;name&quot;)&amp;&amp;(h.name=void 0));var E=[];&quot;cone&quot;===t.type||&quot;streamtube&quot;===t.type?(k.uLabel=y(&quot;xaxis&quot;,g.traceCoordinate[3]),(S||-1!==A.indexOf(&quot;u&quot;))&amp;&amp;E.push(&quot;u: &quot;+k.uLabel),k.vLabel=y(&quot;yaxis&quot;,g.traceCoordinate[4]),(S||-1!==A.indexOf(&quot;v&quot;))&amp;&amp;E.push(&quot;v: &quot;+k.vLabel),k.wLabel=y(&quot;zaxis&quot;,g.traceCoordinate[5]),(S||-1!==A.indexOf(&quot;w&quot;))&amp;&amp;E.push(&quot;w: &quot;+k.wLabel),k.normLabel=g.traceCoordinate[6].toPrecision(3),(S||-1!==A.indexOf(&quot;norm&quot;))&amp;&amp;E.push(&quot;norm: &quot;+k.normLabel),&quot;streamtube&quot;===t.type&amp;&amp;(k.divergenceLabel=g.traceCoordinate[7].toPrecision(3),(S||-1!==A.indexOf(&quot;divergence&quot;))&amp;&amp;E.push(&quot;divergence: &quot;+k.divergenceLabel)),g.textLabel&amp;&amp;E.push(g.textLabel),_=E.join(&quot;&lt;br&gt;&quot;)):&quot;isosurface&quot;===t.type||&quot;volume&quot;===t.type?(k.valueLabel=p.tickText(e._mockAxis,e._mockAxis.d2l(g.traceCoordinate[3]),&quot;hover&quot;).text,E.push(&quot;value: &quot;+k.valueLabel),g.textLabel&amp;&amp;E.push(g.textLabel),_=E.join(&quot;&lt;br&gt;&quot;)):_=g.textLabel;var C={x:g.traceCoordinate[0],y:g.traceCoordinate[1],z:g.traceCoordinate[2],data:w._input,fullData:w,curveNumber:w.index,pointNumber:T};d.appendArrayPointValue(C,w,T),t._module.eventData&amp;&amp;(C=w._module.eventData(C,g,w,{},T));var L={points:[C]};e.fullSceneLayout.hovermode&amp;&amp;d.loneHover({trace:w,x:(.5+.5*x[0]/x[3])*s,y:(.5-.5*x[1]/x[3])*l,xLabel:k.xLabel,yLabel:k.yLabel,zLabel:k.zLabel,text:_,name:h.name,color:d.castHoverOption(w,T,&quot;bgcolor&quot;)||h.color,borderColor:d.castHoverOption(w,T,&quot;bordercolor&quot;),fontFamily:d.castHoverOption(w,T,&quot;font.family&quot;),fontSize:d.castHoverOption(w,T,&quot;font.size&quot;),fontColor:d.castHoverOption(w,T,&quot;font.color&quot;),nameLength:d.castHoverOption(w,T,&quot;namelength&quot;),textAlign:d.castHoverOption(w,T,&quot;align&quot;),hovertemplate:f.castOption(w,T,&quot;hovertemplate&quot;),hovertemplateLabels:f.extendFlat({},C,k),eventData:[C]},{container:n,gd:r}),g.buttons&amp;&amp;g.distance&lt;5?r.emit(&quot;plotly_click&quot;,L):r.emit(&quot;plotly_hover&quot;,L),c=L}else d.loneUnhover(n),r.emit(&quot;plotly_unhover&quot;,c);e.drawAnnotations(e)},w.recoverContext=function(){var t=this;t.glplot.dispose();var e=function(){t.glplot.gl.isContextLost()?requestAnimationFrame(e):t.initializeGLPlot()?t.plot.apply(t,t.plotArgs):f.error(&quot;Catastrophic and unrecoverable WebGL error. Context lost.&quot;)};requestAnimationFrame(e)};var k=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function M(t,e,r){for(var n=t.fullSceneLayout,i=0;i&lt;3;i++){var a=k[i],o=a.charAt(0),s=n[a],l=e[o],c=e[o+&quot;calendar&quot;],u=e[&quot;_&quot;+o+&quot;length&quot;];if(f.isArrayOrTypedArray(l))for(var h,p=0;p&lt;(u||l.length);p++)if(f.isArrayOrTypedArray(l[p]))for(var d=0;d&lt;l[p].length;++d)h=s.d2l(l[p][d],0,c),!isNaN(h)&amp;&amp;isFinite(h)&amp;&amp;(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else h=s.d2l(l[p],0,c),!isNaN(h)&amp;&amp;isFinite(h)&amp;&amp;(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],u-1)}}w.plot=function(t,e,r){if(this.plotArgs=[t,e,r],!this.glplot.contextLost){var n,i,a,o,s,l,c=e[this.id],u=r[this.id];this.fullLayout=e,this.fullSceneLayout=c,this.axesOptions.merge(e,c),this.spikeOptions.merge(c),this.setViewport(c),this.updateFx(c.dragmode,c.hovermode),this.camera.enableWheel=this.graphDiv._context._scrollZoom.gl3d,this.glplot.setClearColor(g(c.bgcolor)),this.setConvert(s),t?Array.isArray(t)||(t=[t]):t=[];var f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(a=0;a&lt;t.length;++a)!0===(n=t[a]).visible&amp;&amp;0!==n._length&amp;&amp;M(this,n,f);!function(t,e){for(var r=t.fullSceneLayout,n=r.annotations||[],i=0;i&lt;3;i++)for(var a=k[i],o=a.charAt(0),s=r[a],l=0;l&lt;n.length;l++){var c=n[l];if(c.visible){var u=s.r2l(c[o]);!isNaN(u)&amp;&amp;isFinite(u)&amp;&amp;(e[0][i]=Math.min(e[0][i],u),e[1][i]=Math.max(e[1][i],u))}}}(this,f);var h=[1,1,1];for(o=0;o&lt;3;++o)f[1][o]===f[0][o]?h[o]=1:h[o]=1/(f[1][o]-f[0][o]);for(this.dataScale=h,this.convertAnnotations(this),a=0;a&lt;t.length;++a)!0===(n=t[a]).visible&amp;&amp;0!==n._length&amp;&amp;((i=this.traces[n.uid])?i.data.type===n.type?i.update(n):(i.dispose(),i=n._module.plot(this,n),this.traces[n.uid]=i):(i=n._module.plot(this,n),this.traces[n.uid]=i),i.name=n.name);var p=Object.keys(this.traces);t:for(a=0;a&lt;p.length;++a){for(o=0;o&lt;t.length;++o)if(t[o].uid===p[a]&amp;&amp;!0===t[o].visible&amp;&amp;0!==t[o]._length)continue t;(i=this.traces[p[a]]).dispose(),delete this.traces[p[a]]}this.glplot.objects.sort((function(t,e){return t._trace.data.index-e._trace.data.index}));var d,m=[[0,0,0],[0,0,0]],v=[],y={};for(a=0;a&lt;3;++a){if((l=(s=c[k[a]]).type)in y?(y[l].acc*=h[a],y[l].count+=1):y[l]={acc:h[a],count:1},s.autorange){m[0][a]=1/0,m[1][a]=-1/0;var x=this.glplot.objects,b=this.fullSceneLayout.annotations||[],_=s._name.charAt(0);for(o=0;o&lt;x.length;o++){var w=x[o],T=w.bounds,A=w._trace.data._pad||0;&quot;ErrorBars&quot;===w.constructor.name&amp;&amp;s._lowerLogErrorBound?m[0][a]=Math.min(m[0][a],s._lowerLogErrorBound):m[0][a]=Math.min(m[0][a],T[0][a]/h[a]-A),m[1][a]=Math.max(m[1][a],T[1][a]/h[a]+A)}for(o=0;o&lt;b.length;o++){var S=b[o];if(S.visible){var E=s.r2l(S[_]);m[0][a]=Math.min(m[0][a],E),m[1][a]=Math.max(m[1][a],E)}}if(&quot;rangemode&quot;in s&amp;&amp;&quot;tozero&quot;===s.rangemode&amp;&amp;(m[0][a]=Math.min(m[0][a],0),m[1][a]=Math.max(m[1][a],0)),m[0][a]&gt;m[1][a])m[0][a]=-1,m[1][a]=1;else{var C=m[1][a]-m[0][a];m[0][a]-=C/32,m[1][a]+=C/32}if(&quot;reversed&quot;===s.autorange){var L=m[0][a];m[0][a]=m[1][a],m[1][a]=L}}else{var I=s.range;m[0][a]=s.r2l(I[0]),m[1][a]=s.r2l(I[1])}m[0][a]===m[1][a]&amp;&amp;(m[0][a]-=1,m[1][a]+=1),v[a]=m[1][a]-m[0][a],this.glplot.setBounds(a,{min:m[0][a]*h[a],max:m[1][a]*h[a]})}var P=c.aspectmode;if(&quot;cube&quot;===P)d=[1,1,1];else if(&quot;manual&quot;===P){var z=c.aspectratio;d=[z.x,z.y,z.z]}else{if(&quot;auto&quot;!==P&amp;&amp;&quot;data&quot;!==P)throw new Error(&quot;scene.js aspectRatio was not one of the enumerated types&quot;);var O=[1,1,1];for(a=0;a&lt;3;++a){var D=y[l=(s=c[k[a]]).type];O[a]=Math.pow(D.acc,1/D.count)/h[a]}d=&quot;data&quot;===P||Math.max.apply(null,O)/Math.min.apply(null,O)&lt;=4?O:[1,1,1]}c.aspectratio.x=u.aspectratio.x=d[0],c.aspectratio.y=u.aspectratio.y=d[1],c.aspectratio.z=u.aspectratio.z=d[2],this.glplot.setAspectratio(c.aspectratio),this.viewInitial.aspectratio||(this.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),this.viewInitial.aspectmode||(this.viewInitial.aspectmode=c.aspectmode);var R=c.domain||null,F=e._size||null;if(R&amp;&amp;F){var B=this.container.style;B.position=&quot;absolute&quot;,B.left=F.l+R.x[0]*F.w+&quot;px&quot;,B.top=F.t+(1-R.y[1])*F.h+&quot;px&quot;,B.width=F.w*(R.x[1]-R.x[0])+&quot;px&quot;,B.height=F.h*(R.y[1]-R.y[0])+&quot;px&quot;}this.glplot.redraw()}},w.destroy=function(){this.glplot&amp;&amp;(this.camera.mouseListener.enabled=!1,this.container.removeEventListener(&quot;wheel&quot;,this.camera.wheelListener),this.camera=null,this.glplot.dispose(),this.container.parentNode.removeChild(this.container),this.glplot=null)},w.getCamera=function(){var t;return this.camera.view.recalcMatrix(this.camera.view.lastT()),{up:{x:(t=this.camera).up[0],y:t.up[1],z:t.up[2]},center:{x:t.center[0],y:t.center[1],z:t.center[2]},eye:{x:t.eye[0],y:t.eye[1],z:t.eye[2]},projection:{type:!0===t._ortho?&quot;orthographic&quot;:&quot;perspective&quot;}}},w.setViewport=function(t){var e,r=t.camera;this.camera.lookAt.apply(this,[[(e=r).eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]),this.glplot.setAspectratio(t.aspectratio),&quot;orthographic&quot;===r.projection.type!==this.camera._ortho&amp;&amp;(this.glplot.redraw(),this.glplot.clearRGBA(),this.glplot.dispose(),this.initializeGLPlot())},w.isCameraChanged=function(t){var e=this.getCamera(),r=f.nestedProperty(t,this.id+&quot;.camera&quot;).get();function n(t,e,r,n){var i=[&quot;up&quot;,&quot;center&quot;,&quot;eye&quot;],a=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];return e[i[r]]&amp;&amp;t[i[r]][a[n]]===e[i[r]][a[n]]}var i=!1;if(void 0===r)i=!0;else{for(var a=0;a&lt;3;a++)for(var o=0;o&lt;3;o++)if(!n(e,r,a,o)){i=!0;break}(!r.projection||e.projection&amp;&amp;e.projection.type!==r.projection.type)&amp;&amp;(i=!0)}return i},w.isAspectChanged=function(t){var e=this.glplot.getAspectratio(),r=f.nestedProperty(t,this.id+&quot;.aspectratio&quot;).get();return void 0===r||r.x!==e.x||r.y!==e.y||r.z!==e.z},w.saveLayout=function(t){var e,r,n,i,a,o,s=this.fullLayout,l=this.isCameraChanged(t),c=this.isAspectChanged(t),h=l||c;if(h){var p={};if(l&amp;&amp;(e=this.getCamera(),n=(r=f.nestedProperty(t,this.id+&quot;.camera&quot;)).get(),p[this.id+&quot;.camera&quot;]=n),c&amp;&amp;(i=this.glplot.getAspectratio(),o=(a=f.nestedProperty(t,this.id+&quot;.aspectratio&quot;)).get(),p[this.id+&quot;.aspectratio&quot;]=o),u.call(&quot;_storeDirectGUIEdit&quot;,t,s._preGUI,p),l)r.set(e),f.nestedProperty(s,this.id+&quot;.camera&quot;).set(e);if(c)a.set(i),f.nestedProperty(s,this.id+&quot;.aspectratio&quot;).set(i),this.glplot.redraw()}return h},w.updateFx=function(t,e){var r=this.camera;if(r)if(&quot;orbit&quot;===t)r.mode=&quot;orbit&quot;,r.keyBindingMode=&quot;rotate&quot;;else if(&quot;turntable&quot;===t){r.up=[0,0,1],r.mode=&quot;turntable&quot;,r.keyBindingMode=&quot;rotate&quot;;var n=this.graphDiv,i=n._fullLayout,a=this.fullSceneLayout.camera,o=a.up.x,s=a.up.y,l=a.up.z;if(l/Math.sqrt(o*o+s*s+l*l)&lt;.999){var c=this.id+&quot;.camera.up&quot;,h={x:0,y:0,z:1},p={};p[c]=h;var d=n.layout;u.call(&quot;_storeDirectGUIEdit&quot;,d,i._preGUI,p),a.up=h,f.nestedProperty(d,c).set(h)}}else r.keyBindingMode=t;this.fullSceneLayout.hovermode=e},w.toImage=function(t){t||(t=&quot;png&quot;),this.staticMode&amp;&amp;this.container.appendChild(n),this.glplot.redraw();var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a),function(t,e,r){for(var n=0,i=r-1;n&lt;i;++n,--i)for(var a=0;a&lt;e;++a)for(var o=0;o&lt;4;++o){var s=4*(e*n+a)+o,l=4*(e*i+a)+o,c=t[s];t[s]=t[l],t[l]=c}}(a,r,i),function(t,e,r){for(var n=0;n&lt;r;++n)for(var i=0;i&lt;e;++i){var a=4*(e*n+i),o=t[a+3];if(o&gt;0)for(var s=255/o,l=0;l&lt;3;++l)t[a+l]=Math.min(s*t[a+l],255)}}(a,r,i);var o=document.createElement(&quot;canvas&quot;);o.width=r,o.height=i;var s,l=o.getContext(&quot;2d&quot;),c=l.createImageData(r,i);switch(c.data.set(a),l.putImageData(c,0,0),t){case&quot;jpeg&quot;:s=o.toDataURL(&quot;image/jpeg&quot;);break;case&quot;webp&quot;:s=o.toDataURL(&quot;image/webp&quot;);break;default:s=o.toDataURL(&quot;image/png&quot;)}return this.staticMode&amp;&amp;this.container.removeChild(n),s},w.setConvert=function(){for(var t=0;t&lt;3;t++){var e=this.fullSceneLayout[k[t]];p.setConvert(e,this.fullLayout),e.setScale=f.noop}},w.make4thDimension=function(){var t=this.graphDiv._fullLayout;this._mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},p.setConvert(this._mockAxis,t)},e.exports=_},{&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/show_no_webgl_msg&quot;:800,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./layout/convert&quot;:874,&quot;./layout/spikes&quot;:877,&quot;./layout/tick_marks&quot;:878,&quot;./project&quot;:879,&quot;gl-plot3d&quot;:321,&quot;has-passive-events&quot;:441,&quot;webgl-context&quot;:606}],881:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){n=n||t.length;for(var i=new Array(n),a=0;a&lt;n;a++)i[a]=[t[a],e[a],r[a]];return i}},{}],882:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./font_attributes&quot;),i=t(&quot;./animation_attributes&quot;),a=t(&quot;../components/color/attributes&quot;),o=t(&quot;../components/shapes/draw_newshape/attributes&quot;),s=t(&quot;./pad_attributes&quot;),l=t(&quot;../lib/extend&quot;).extendFlat,c=n({editType:&quot;calc&quot;});c.family.dflt='&quot;Open Sans&quot;, verdana, arial, sans-serif',c.size.dflt=12,c.color.dflt=a.defaultLine,e.exports={font:c,title:{text:{valType:&quot;string&quot;,editType:&quot;layoutstyle&quot;},font:n({editType:&quot;layoutstyle&quot;}),xref:{valType:&quot;enumerated&quot;,dflt:&quot;container&quot;,values:[&quot;container&quot;,&quot;paper&quot;],editType:&quot;layoutstyle&quot;},yref:{valType:&quot;enumerated&quot;,dflt:&quot;container&quot;,values:[&quot;container&quot;,&quot;paper&quot;],editType:&quot;layoutstyle&quot;},x:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;layoutstyle&quot;},y:{valType:&quot;number&quot;,min:0,max:1,dflt:&quot;auto&quot;,editType:&quot;layoutstyle&quot;},xanchor:{valType:&quot;enumerated&quot;,dflt:&quot;auto&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;layoutstyle&quot;},yanchor:{valType:&quot;enumerated&quot;,dflt:&quot;auto&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;layoutstyle&quot;},pad:l(s({editType:&quot;layoutstyle&quot;}),{}),editType:&quot;layoutstyle&quot;},uniformtext:{mode:{valType:&quot;enumerated&quot;,values:[!1,&quot;hide&quot;,&quot;show&quot;],dflt:!1,editType:&quot;plot&quot;},minsize:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},autosize:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;none&quot;},width:{valType:&quot;number&quot;,min:10,dflt:700,editType:&quot;plot&quot;},height:{valType:&quot;number&quot;,min:10,dflt:450,editType:&quot;plot&quot;},margin:{l:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},r:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},t:{valType:&quot;number&quot;,min:0,dflt:100,editType:&quot;plot&quot;},b:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},pad:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},autoexpand:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},computed:{valType:&quot;any&quot;,editType:&quot;none&quot;},paper_bgcolor:{valType:&quot;color&quot;,dflt:a.background,editType:&quot;plot&quot;},plot_bgcolor:{valType:&quot;color&quot;,dflt:a.background,editType:&quot;layoutstyle&quot;},autotypenumbers:{valType:&quot;enumerated&quot;,values:[&quot;convert types&quot;,&quot;strict&quot;],dflt:&quot;convert types&quot;,editType:&quot;calc&quot;},separators:{valType:&quot;string&quot;,editType:&quot;plot&quot;},hidesources:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},showlegend:{valType:&quot;boolean&quot;,editType:&quot;legend&quot;},colorway:{valType:&quot;colorlist&quot;,dflt:a.defaults,editType:&quot;calc&quot;},datarevision:{valType:&quot;any&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editrevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},selectionrevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},template:{valType:&quot;any&quot;,editType:&quot;calc&quot;},modebar:{orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;,editType:&quot;modebar&quot;},bgcolor:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},color:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},activecolor:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;modebar&quot;},newshape:o.newshape,activeshape:o.activeshape,meta:{valType:&quot;any&quot;,arrayOk:!0,editType:&quot;plot&quot;},transition:l({},i.transition,{editType:&quot;none&quot;}),_deprecated:{title:{valType:&quot;string&quot;,editType:&quot;layoutstyle&quot;},titlefont:n({editType:&quot;layoutstyle&quot;})}}},{&quot;../components/color/attributes&quot;:642,&quot;../components/shapes/draw_newshape/attributes&quot;:725,&quot;../lib/extend&quot;:768,&quot;./animation_attributes&quot;:822,&quot;./font_attributes&quot;:856,&quot;./pad_attributes&quot;:890}],883:[function(t,e,r){&quot;use strict&quot;;var n={&quot;open-street-map&quot;:{id:&quot;osm&quot;,version:8,sources:{&quot;plotly-osm-tiles&quot;:{type:&quot;raster&quot;,attribution:'&lt;a href=&quot;http://www.openstreetmap.org/about/&quot; target=&quot;_blank&quot;&gt;\xa9 OpenStreetMap&lt;/a&gt;',tiles:[&quot;https://a.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;,&quot;https://b.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-osm-tiles&quot;,type:&quot;raster&quot;,source:&quot;plotly-osm-tiles&quot;,minzoom:0,maxzoom:22}]},&quot;white-bg&quot;:{id:&quot;white-bg&quot;,version:8,sources:{},layers:[{id:&quot;white-bg&quot;,type:&quot;background&quot;,paint:{&quot;background-color&quot;:&quot;#FFFFFF&quot;},minzoom:0,maxzoom:22}]},&quot;carto-positron&quot;:{id:&quot;carto-positron&quot;,version:8,sources:{&quot;plotly-carto-positron&quot;:{type:&quot;raster&quot;,attribution:'&lt;a href=&quot;https://carto.com/&quot; target=&quot;_blank&quot;&gt;\xa9 CARTO&lt;/a&gt;',tiles:[&quot;https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-carto-positron&quot;,type:&quot;raster&quot;,source:&quot;plotly-carto-positron&quot;,minzoom:0,maxzoom:22}]},&quot;carto-darkmatter&quot;:{id:&quot;carto-darkmatter&quot;,version:8,sources:{&quot;plotly-carto-darkmatter&quot;:{type:&quot;raster&quot;,attribution:'&lt;a href=&quot;https://carto.com/&quot; target=&quot;_blank&quot;&gt;\xa9 CARTO&lt;/a&gt;',tiles:[&quot;https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-carto-darkmatter&quot;,type:&quot;raster&quot;,source:&quot;plotly-carto-darkmatter&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-terrain&quot;:{id:&quot;stamen-terrain&quot;,version:8,sources:{&quot;plotly-stamen-terrain&quot;:{type:&quot;raster&quot;,attribution:'Map tiles by &lt;a href=&quot;http://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt; | Data by &lt;a href=&quot;http://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt;, under &lt;a href=&quot;http://www.openstreetmap.org/copyright&quot;&gt;ODbL&lt;/a&gt;.',tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-terrain&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-terrain&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-toner&quot;:{id:&quot;stamen-toner&quot;,version:8,sources:{&quot;plotly-stamen-toner&quot;:{type:&quot;raster&quot;,attribution:'Map tiles by &lt;a href=&quot;http://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt; | Data by &lt;a href=&quot;http://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt;, under &lt;a href=&quot;http://www.openstreetmap.org/copyright&quot;&gt;ODbL&lt;/a&gt;.',tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-toner&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-toner&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-watercolor&quot;:{id:&quot;stamen-watercolor&quot;,version:8,sources:{&quot;plotly-stamen-watercolor&quot;:{type:&quot;raster&quot;,attribution:'Map tiles by &lt;a href=&quot;http://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt; | Data by &lt;a href=&quot;http://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by-sa/3.0&quot;&gt;CC BY SA&lt;/a&gt;.',tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-watercolor&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-watercolor&quot;,minzoom:0,maxzoom:22}]}},i=Object.keys(n);e.exports={requiredVersion:&quot;1.10.1&quot;,styleUrlPrefix:&quot;mapbox://styles/mapbox/&quot;,styleUrlSuffix:&quot;v9&quot;,styleValuesMapbox:[&quot;basic&quot;,&quot;streets&quot;,&quot;outdoors&quot;,&quot;light&quot;,&quot;dark&quot;,&quot;satellite&quot;,&quot;satellite-streets&quot;],styleValueDflt:&quot;basic&quot;,stylesNonMapbox:n,styleValuesNonMapbox:i,traceLayerPrefix:&quot;plotly-trace-layer-&quot;,layoutLayerPrefix:&quot;plotly-layout-layer-&quot;,wrongVersionErrorMsg:[&quot;Your custom plotly.js bundle is not using the correct mapbox-gl version&quot;,&quot;Please install mapbox-gl@1.10.1.&quot;].join(&quot;\n&quot;),noAccessTokenErrorMsg:[&quot;Missing Mapbox access token.&quot;,&quot;Mapbox trace type require a Mapbox access token to be registered.&quot;,&quot;For example:&quot;,&quot;  Plotly.plot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });&quot;,&quot;More info here: https://www.mapbox.com/help/define-access-token/&quot;].join(&quot;\n&quot;),missingStyleErrorMsg:[&quot;No valid mapbox style found, please set `mapbox.style` to one of:&quot;,i.join(&quot;, &quot;),&quot;or register a Mapbox access token to use a Mapbox-served style.&quot;].join(&quot;\n&quot;),multipleTokensErrorMsg:[&quot;Set multiple mapbox access token across different mapbox subplot,&quot;,&quot;using first token found as mapbox-gl does not allow multipleaccess tokens on the same page.&quot;].join(&quot;\n&quot;),mapOnErrorMsg:&quot;Mapbox error.&quot;,mapboxLogo:{path0:&quot;m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z&quot;,path1:&quot;M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z&quot;,path2:&quot;M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z&quot;,polygon:&quot;11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34&quot;},styleRules:{map:&quot;overflow:hidden;position:relative;&quot;,&quot;missing-css&quot;:&quot;display:none;&quot;,canary:&quot;background-color:salmon;&quot;,&quot;ctrl-bottom-left&quot;:&quot;position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;&quot;,&quot;ctrl-bottom-right&quot;:&quot;position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;&quot;,ctrl:&quot;clear: both; pointer-events: auto; transform: translate(0, 0);&quot;,&quot;ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner&quot;:&quot;display: none;&quot;,&quot;ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner&quot;:&quot;display: block; margin-top:2px&quot;,&quot;ctrl-attrib.mapboxgl-compact:hover&quot;:&quot;padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;&quot;,&quot;ctrl-attrib.mapboxgl-compact::after&quot;:'content: &quot;&quot;; cursor: pointer; position: absolute; background-image: url(\'data:image/svg+xml;charset=utf-8,%3Csvg viewBox=&quot;0 0 20 20&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;%3E %3Cpath fill=&quot;%23333333&quot; fill-rule=&quot;evenodd&quot; d=&quot;M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0&quot;/%3E %3C/svg%3E\'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;',&quot;ctrl-attrib.mapboxgl-compact&quot;:&quot;min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;&quot;,&quot;ctrl-bottom-right &gt; .mapboxgl-ctrl-attrib.mapboxgl-compact::after&quot;:&quot;bottom: 0; right: 0&quot;,&quot;ctrl-bottom-left &gt; .mapboxgl-ctrl-attrib.mapboxgl-compact::after&quot;:&quot;bottom: 0; left: 0&quot;,&quot;ctrl-bottom-left .mapboxgl-ctrl&quot;:&quot;margin: 0 0 10px 10px; float: left;&quot;,&quot;ctrl-bottom-right .mapboxgl-ctrl&quot;:&quot;margin: 0 10px 10px 0; float: right;&quot;,&quot;ctrl-attrib&quot;:&quot;color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px&quot;,&quot;ctrl-attrib a&quot;:&quot;color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px&quot;,&quot;ctrl-attrib a:hover&quot;:&quot;color: inherit; text-decoration: underline;&quot;,&quot;ctrl-attrib .mapbox-improve-map&quot;:&quot;font-weight: bold; margin-left: 2px;&quot;,&quot;attrib-empty&quot;:&quot;display: none;&quot;,&quot;ctrl-logo&quot;:'display:block; width: 21px; height: 21px; background-image: url(\'data:image/svg+xml;charset=utf-8,%3C?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?%3E %3Csvg version=&quot;1.1&quot; id=&quot;Layer_1&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; x=&quot;0px&quot; y=&quot;0px&quot; viewBox=&quot;0 0 21 21&quot; style=&quot;enable-background:new 0 0 21 21;&quot; xml:space=&quot;preserve&quot;%3E%3Cg transform=&quot;translate(0,0.01)&quot;%3E%3Cpath d=&quot;m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z&quot; style=&quot;opacity:0.9;fill:%23ffffff;enable-background:new&quot; class=&quot;st0&quot;/%3E%3Cpath d=&quot;M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z&quot; style=&quot;opacity:0.35;enable-background:new&quot; class=&quot;st1&quot;/%3E%3Cpath d=&quot;M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z&quot; style=&quot;opacity:0.35;enable-background:new&quot; class=&quot;st1&quot;/%3E%3Cpolygon points=&quot;11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 &quot; style=&quot;opacity:0.9;fill:%23ffffff;enable-background:new&quot; class=&quot;st0&quot;/%3E%3C/g%3E%3C/svg%3E\')'}}},{}],884:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=t.split(&quot; &quot;),i=r[0],a=r[1],o=n.isArrayOrTypedArray(e)?n.mean(e):e,s=.5+o/100,l=1.5+o/100,c=[&quot;&quot;,&quot;&quot;],u=[0,0];switch(i){case&quot;top&quot;:c[0]=&quot;top&quot;,u[1]=-l;break;case&quot;bottom&quot;:c[0]=&quot;bottom&quot;,u[1]=l}switch(a){case&quot;left&quot;:c[1]=&quot;right&quot;,u[0]=-s;break;case&quot;right&quot;:c[1]=&quot;left&quot;,u[0]=s}return{anchor:c[0]&amp;&amp;c[1]?c.join(&quot;-&quot;):c[0]?c[0]:c[1]?c[1]:&quot;center&quot;,offset:u}}},{&quot;../../lib&quot;:778}],885:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mapbox-gl&quot;),i=t(&quot;../../lib&quot;),a=i.strTranslate,o=i.strScale,s=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,l=t(&quot;../../constants/xmlns_namespaces&quot;),c=t(&quot;d3&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;./mapbox&quot;),p=r.constants=t(&quot;./constants&quot;);function d(t){return&quot;string&quot;==typeof t&amp;&amp;(-1!==p.styleValuesMapbox.indexOf(t)||0===t.indexOf(&quot;mapbox://&quot;))}r.name=&quot;mapbox&quot;,r.attr=&quot;subplot&quot;,r.idRoot=&quot;mapbox&quot;,r.idRegex=r.attrRegex=i.counterRegex(&quot;mapbox&quot;),r.attributes={subplot:{valType:&quot;subplotid&quot;,dflt:&quot;mapbox&quot;,editType:&quot;calc&quot;}},r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.plot=function(t){var e=t._fullLayout,r=t.calcdata,a=e._subplots.mapbox;if(n.version!==p.requiredVersion)throw new Error(p.wrongVersionErrorMsg);var o=function(t,e){var r=t._fullLayout;if(&quot;&quot;===t._context.mapboxAccessToken)return&quot;&quot;;for(var n=[],a=[],o=!1,s=!1,l=0;l&lt;e.length;l++){var c=r[e[l]],u=c.accesstoken;d(c.style)&amp;&amp;(u?i.pushUnique(n,u):(d(c._input.style)&amp;&amp;(i.error(&quot;Uses Mapbox map style, but did not set an access token.&quot;),o=!0),s=!0)),u&amp;&amp;i.pushUnique(a,u)}if(s){var f=o?p.noAccessTokenErrorMsg:p.missingStyleErrorMsg;throw i.error(f),new Error(f)}return n.length?(n.length&gt;1&amp;&amp;i.warn(p.multipleTokensErrorMsg),n[0]):(a.length&amp;&amp;i.log([&quot;Listed mapbox access token(s)&quot;,a.join(&quot;,&quot;),&quot;but did not use a Mapbox map style, ignoring token(s).&quot;].join(&quot; &quot;)),&quot;&quot;)}(t,a);n.accessToken=o;for(var l=0;l&lt;a.length;l++){var c=a[l],u=s(r,&quot;mapbox&quot;,c),f=e[c],g=f._subplot;g||(g=new h(t,c),e[c]._subplot=g),g.viewInitial||(g.viewInitial={center:i.extendFlat({},f.center),zoom:f.zoom,bearing:f.bearing,pitch:f.pitch}),g.plot(u,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.mapbox||[],a=0;a&lt;i.length;a++){var o=i[a];!e[o]&amp;&amp;n[o]._subplot&amp;&amp;n[o]._subplot.destroy()}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=e._size,i=0;i&lt;r.length;i++){var s=e[r[i]],h=s.domain,d=s._subplot.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:l.svg,&quot;xlink:href&quot;:d,x:n.l+n.w*h.x[0],y:n.t+n.h*(1-h.y[1]),width:n.w*(h.x[1]-h.x[0]),height:n.h*(h.y[1]-h.y[0]),preserveAspectRatio:&quot;none&quot;});var g=c.select(s._subplot.div);if(!(null===g.select(&quot;.mapboxgl-ctrl-logo&quot;).node().offsetParent)){var m=e._glimages.append(&quot;g&quot;);m.attr(&quot;transform&quot;,a(n.l+n.w*h.x[0]+10,n.t+n.h*(1-h.y[0])-31)),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path0).style({opacity:.9,fill:&quot;#ffffff&quot;,&quot;enable-background&quot;:&quot;new&quot;}),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path1).style(&quot;opacity&quot;,.35).style(&quot;enable-background&quot;,&quot;new&quot;),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path2).style(&quot;opacity&quot;,.35).style(&quot;enable-background&quot;,&quot;new&quot;),m.append(&quot;polygon&quot;).attr(&quot;points&quot;,p.mapboxLogo.polygon).style({opacity:.9,fill:&quot;#ffffff&quot;,&quot;enable-background&quot;:&quot;new&quot;})}var v=g.select(&quot;.mapboxgl-ctrl-attrib&quot;).text().replace(&quot;Improve this map&quot;,&quot;&quot;),y=e._glimages.append(&quot;g&quot;),x=y.append(&quot;text&quot;);x.text(v).classed(&quot;static-attribution&quot;,!0).attr({&quot;font-size&quot;:12,&quot;font-family&quot;:&quot;Arial&quot;,color:&quot;rgba(0, 0, 0, 0.75)&quot;,&quot;text-anchor&quot;:&quot;end&quot;,&quot;data-unformatted&quot;:v});var b=u.bBox(x.node()),_=n.w*(h.x[1]-h.x[0]);if(b.width&gt;_/2){var w=v.split(&quot;|&quot;).join(&quot;&lt;br&gt;&quot;);x.text(w).attr(&quot;data-unformatted&quot;,w).call(f.convertToTspans,t),b=u.bBox(x.node())}x.attr(&quot;transform&quot;,a(-3,8-b.height)),y.insert(&quot;rect&quot;,&quot;.static-attribution&quot;).attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:&quot;rgba(255, 255, 255, 0.75)&quot;});var T=1;b.width+6&gt;_&amp;&amp;(T=_/(b.width+6));var k=[n.l+n.w*h.x[1],n.t+n.h*(1-h.y[0])];y.attr(&quot;transform&quot;,a(k[0],k[1])+o(T))}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=0;n&lt;r.length;n++){e[r[n]]._subplot.updateFx(e)}}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/get_data&quot;:865,&quot;./constants&quot;:883,&quot;./layout_attributes&quot;:887,&quot;./layout_defaults&quot;:888,&quot;./mapbox&quot;:889,d3:169,&quot;mapbox-gl&quot;:473}],886:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/svg_text_utils&quot;).sanitizeHTML,a=t(&quot;./convert_text_opts&quot;),o=t(&quot;./constants&quot;);function s(t,e){this.subplot=t,this.uid=t.uid+&quot;-&quot;+e,this.index=e,this.idSource=&quot;source-&quot;+this.uid,this.idLayer=o.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var l=s.prototype;function c(t){if(!t.visible)return!1;var e=t.source;if(Array.isArray(e)&amp;&amp;e.length&gt;0){for(var r=0;r&lt;e.length;r++)if(&quot;string&quot;!=typeof e[r]||0===e[r].length)return!1;return!0}return n.isPlainObject(e)||&quot;string&quot;==typeof e&amp;&amp;e.length&gt;0}function u(t){var e={},r={};switch(t.type){case&quot;circle&quot;:n.extendFlat(r,{&quot;circle-radius&quot;:t.circle.radius,&quot;circle-color&quot;:t.color,&quot;circle-opacity&quot;:t.opacity});break;case&quot;line&quot;:n.extendFlat(r,{&quot;line-width&quot;:t.line.width,&quot;line-color&quot;:t.color,&quot;line-opacity&quot;:t.opacity,&quot;line-dasharray&quot;:t.line.dash});break;case&quot;fill&quot;:n.extendFlat(r,{&quot;fill-color&quot;:t.color,&quot;fill-outline-color&quot;:t.fill.outlinecolor,&quot;fill-opacity&quot;:t.opacity});break;case&quot;symbol&quot;:var i=t.symbol,o=a(i.textposition,i.iconsize);n.extendFlat(e,{&quot;icon-image&quot;:i.icon+&quot;-15&quot;,&quot;icon-size&quot;:i.iconsize/10,&quot;text-field&quot;:i.text,&quot;text-size&quot;:i.textfont.size,&quot;text-anchor&quot;:o.anchor,&quot;text-offset&quot;:o.offset,&quot;symbol-placement&quot;:i.placement}),n.extendFlat(r,{&quot;icon-color&quot;:t.color,&quot;text-color&quot;:i.textfont.color,&quot;text-opacity&quot;:t.opacity});break;case&quot;raster&quot;:n.extendFlat(r,{&quot;raster-fade-duration&quot;:0,&quot;raster-opacity&quot;:t.opacity})}return{layout:e,paint:r}}l.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=c(t)},l.needsNewImage=function(t){return this.subplot.map.getSource(this.idSource)&amp;&amp;&quot;image&quot;===this.sourceType&amp;&amp;&quot;image&quot;===t.sourcetype&amp;&amp;(this.source!==t.source||JSON.stringify(this.coordinates)!==JSON.stringify(t.coordinates))},l.needsNewSource=function(t){return this.sourceType!==t.sourcetype||JSON.stringify(this.source)!==JSON.stringify(t.source)||this.layerType!==t.type},l.needsNewLayer=function(t){return this.layerType!==t.type||this.below!==this.subplot.belowLookup[&quot;layout-&quot;+this.index]},l.lookupBelow=function(){return this.subplot.belowLookup[&quot;layout-&quot;+this.index]},l.updateImage=function(t){this.subplot.map.getSource(this.idSource).updateImage({url:t.source,coordinates:t.coordinates});var e=this.findFollowingMapboxLayerId(this.lookupBelow());null!==e&amp;&amp;this.subplot.map.moveLayer(this.idLayer,e)},l.updateSource=function(t){var e=this.subplot.map;if(e.getSource(this.idSource)&amp;&amp;e.removeSource(this.idSource),this.sourceType=t.sourcetype,this.source=t.source,c(t)){var r=function(t){var e,r=t.sourcetype,n=t.source,a={type:r};&quot;geojson&quot;===r?e=&quot;data&quot;:&quot;vector&quot;===r?e=&quot;string&quot;==typeof n?&quot;url&quot;:&quot;tiles&quot;:&quot;raster&quot;===r?(e=&quot;tiles&quot;,a.tileSize=256):&quot;image&quot;===r&amp;&amp;(e=&quot;url&quot;,a.coordinates=t.coordinates);a[e]=n,t.sourceattribution&amp;&amp;(a.attribution=i(t.sourceattribution));return a}(t);e.addSource(this.idSource,r)}},l.findFollowingMapboxLayerId=function(t){if(&quot;traces&quot;===t)for(var e=this.subplot.getMapLayers(),r=0;r&lt;e.length;r++){var n=e[r].id;if(&quot;string&quot;==typeof n&amp;&amp;0===n.indexOf(o.traceLayerPrefix)){t=n;break}}return t},l.updateLayer=function(t){var e=this.subplot,r=u(t),n=this.lookupBelow(),i=this.findFollowingMapboxLayerId(n);this.removeLayer(),c(t)&amp;&amp;e.addLayer({id:this.idLayer,source:this.idSource,&quot;source-layer&quot;:t.sourcelayer||&quot;&quot;,type:t.type,minzoom:t.minzoom,maxzoom:t.maxzoom,layout:r.layout,paint:r.paint},i),this.layerType=t.type,this.below=n},l.updateStyle=function(t){if(c(t)){var e=u(t);this.subplot.setOptions(this.idLayer,&quot;setLayoutProperty&quot;,e.layout),this.subplot.setOptions(this.idLayer,&quot;setPaintProperty&quot;,e.paint)}},l.removeLayer=function(){var t=this.subplot.map;t.getLayer(this.idLayer)&amp;&amp;t.removeLayer(this.idLayer)},l.dispose=function(){var t=this.subplot.map;t.getLayer(this.idLayer)&amp;&amp;t.removeLayer(this.idLayer),t.getSource(this.idSource)&amp;&amp;t.removeSource(this.idSource)},e.exports=function(t,e,r){var n=new s(t,e);return n.update(r),n}},{&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;./constants&quot;:883,&quot;./convert_text_opts&quot;:884}],887:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;).defaultLine,a=t(&quot;../domain&quot;).attributes,o=t(&quot;../font_attributes&quot;),s=t(&quot;../../traces/scatter/attributes&quot;).textposition,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll,c=t(&quot;../../plot_api/plot_template&quot;).templatedArray,u=t(&quot;./constants&quot;),f=o({});f.family.dflt=&quot;Open Sans Regular, Arial Unicode MS Regular&quot;,(e.exports=l({_arrayAttrRegexps:[n.counterRegex(&quot;mapbox&quot;,&quot;.layers&quot;,!0)],domain:a({name:&quot;mapbox&quot;}),accesstoken:{valType:&quot;string&quot;,noBlank:!0,strict:!0},style:{valType:&quot;any&quot;,values:u.styleValuesMapbox.concat(u.styleValuesNonMapbox),dflt:u.styleValueDflt},center:{lon:{valType:&quot;number&quot;,dflt:0},lat:{valType:&quot;number&quot;,dflt:0}},zoom:{valType:&quot;number&quot;,dflt:1},bearing:{valType:&quot;number&quot;,dflt:0},pitch:{valType:&quot;number&quot;,dflt:0},layers:c(&quot;layer&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},sourcetype:{valType:&quot;enumerated&quot;,values:[&quot;geojson&quot;,&quot;vector&quot;,&quot;raster&quot;,&quot;image&quot;],dflt:&quot;geojson&quot;},source:{valType:&quot;any&quot;},sourcelayer:{valType:&quot;string&quot;,dflt:&quot;&quot;},sourceattribution:{valType:&quot;string&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;circle&quot;,&quot;line&quot;,&quot;fill&quot;,&quot;symbol&quot;,&quot;raster&quot;],dflt:&quot;circle&quot;},coordinates:{valType:&quot;any&quot;},below:{valType:&quot;string&quot;},color:{valType:&quot;color&quot;,dflt:i},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},minzoom:{valType:&quot;number&quot;,min:0,max:24,dflt:0},maxzoom:{valType:&quot;number&quot;,min:0,max:24,dflt:24},circle:{radius:{valType:&quot;number&quot;,dflt:15}},line:{width:{valType:&quot;number&quot;,dflt:2},dash:{valType:&quot;data_array&quot;}},fill:{outlinecolor:{valType:&quot;color&quot;,dflt:i}},symbol:{icon:{valType:&quot;string&quot;,dflt:&quot;marker&quot;},iconsize:{valType:&quot;number&quot;,dflt:10},text:{valType:&quot;string&quot;,dflt:&quot;&quot;},placement:{valType:&quot;enumerated&quot;,values:[&quot;point&quot;,&quot;line&quot;,&quot;line-center&quot;],dflt:&quot;point&quot;},textfont:f,textposition:n.extendFlat({},s,{arrayOk:!1})}})},&quot;plot&quot;,&quot;from-root&quot;)).uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../traces/scatter/attributes&quot;:1187,&quot;../domain&quot;:855,&quot;../font_attributes&quot;:856,&quot;./constants&quot;:883}],888:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../subplot_defaults&quot;),a=t(&quot;../array_container_defaults&quot;),o=t(&quot;./layout_attributes&quot;);function s(t,e,r,n){r(&quot;accesstoken&quot;,n.accessToken),r(&quot;style&quot;),r(&quot;center.lon&quot;),r(&quot;center.lat&quot;),r(&quot;zoom&quot;),r(&quot;bearing&quot;),r(&quot;pitch&quot;),a(t,e,{name:&quot;layers&quot;,handleItemDefaults:l}),e._input=t}function l(t,e){function r(r,i){return n.coerce(t,e,o.layers,r,i)}if(r(&quot;visible&quot;)){var i,a=r(&quot;sourcetype&quot;),s=&quot;raster&quot;===a||&quot;image&quot;===a;r(&quot;source&quot;),r(&quot;sourceattribution&quot;),&quot;vector&quot;===a&amp;&amp;r(&quot;sourcelayer&quot;),&quot;image&quot;===a&amp;&amp;r(&quot;coordinates&quot;),s&amp;&amp;(i=&quot;raster&quot;);var l=r(&quot;type&quot;,i);s&amp;&amp;&quot;raster&quot;!==l&amp;&amp;(l=e.type=&quot;raster&quot;,n.log(&quot;Source types *raster* and *image* must drawn *raster* layer type.&quot;)),r(&quot;below&quot;),r(&quot;color&quot;),r(&quot;opacity&quot;),r(&quot;minzoom&quot;),r(&quot;maxzoom&quot;),&quot;circle&quot;===l&amp;&amp;r(&quot;circle.radius&quot;),&quot;line&quot;===l&amp;&amp;(r(&quot;line.width&quot;),r(&quot;line.dash&quot;)),&quot;fill&quot;===l&amp;&amp;r(&quot;fill.outlinecolor&quot;),&quot;symbol&quot;===l&amp;&amp;(r(&quot;symbol.icon&quot;),r(&quot;symbol.iconsize&quot;),r(&quot;symbol.text&quot;),n.coerceFont(r,&quot;symbol.textfont&quot;),r(&quot;symbol.textposition&quot;),r(&quot;symbol.placement&quot;))}}e.exports=function(t,e,r){i(t,e,r,{type:&quot;mapbox&quot;,attributes:o,handleDefaults:s,partition:&quot;y&quot;,accessToken:e._mapboxAccessToken})}},{&quot;../../lib&quot;:778,&quot;../array_container_defaults&quot;:823,&quot;../subplot_defaults&quot;:905,&quot;./layout_attributes&quot;:887}],889:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mapbox-gl&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/geo_location_utils&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../cartesian/axes&quot;),l=t(&quot;../../components/dragelement&quot;),c=t(&quot;../../components/fx&quot;),u=t(&quot;../../components/dragelement/helpers&quot;),f=u.rectMode,h=u.drawMode,p=u.selectMode,d=t(&quot;../cartesian/select&quot;).prepSelect,g=t(&quot;../cartesian/select&quot;).clearSelect,m=t(&quot;../cartesian/select&quot;).clearSelectionsCache,v=t(&quot;../cartesian/select&quot;).selectOnClick,y=t(&quot;./constants&quot;),x=t(&quot;./layers&quot;);function b(t,e){this.id=e,this.gd=t;var r=t._fullLayout,n=t._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+&quot;-&quot;+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var _=b.prototype;_.plot=function(t,e,r){var n,i=this,a=e[i.id];i.map&amp;&amp;a.accesstoken!==i.accessToken&amp;&amp;(i.map.remove(),i.map=null,i.styleObj=null,i.traceHash={},i.layerList=[]),n=i.map?new Promise((function(r,n){i.updateMap(t,e,r,n)})):new Promise((function(r,n){i.createMap(t,e,r,n)})),r.push(n)},_.createMap=function(t,e,r,i){var o=this,s=e[o.id],l=o.styleObj=T(s.style);o.accessToken=s.accesstoken;var c=o.map=new n.Map({container:o.div,style:l.style,center:M(s.center),zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,interactive:!o.isStatic,preserveDrawingBuffer:o.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new n.AttributionControl({compact:!0}));c._canvas.style.left=&quot;0px&quot;,c._canvas.style.top=&quot;0px&quot;,o.rejectOnError(i),o.isStatic||o.initFx(t,e);var u=[];u.push(new Promise((function(t){c.once(&quot;load&quot;,t)}))),u=u.concat(a.fetchTraceGeoData(t)),Promise.all(u).then((function(){o.fillBelowLookup(t,e),o.updateData(t),o.updateLayout(e),o.resolveOnRender(r)})).catch(i)},_.updateMap=function(t,e,r,n){var i=this,o=i.map,s=e[this.id];i.rejectOnError(n);var l=[],c=T(s.style);JSON.stringify(i.styleObj)!==JSON.stringify(c)&amp;&amp;(i.styleObj=c,o.setStyle(c.style),i.traceHash={},l.push(new Promise((function(t){o.once(&quot;styledata&quot;,t)})))),l=l.concat(a.fetchTraceGeoData(t)),Promise.all(l).then((function(){i.fillBelowLookup(t,e),i.updateData(t),i.updateLayout(e),i.resolveOnRender(r)})).catch(n)},_.fillBelowLookup=function(t,e){var r,n,i=e[this.id].layers,a=this.belowLookup={},o=!1;for(r=0;r&lt;t.length;r++){var s=t[r][0].trace,l=s._module;&quot;string&quot;==typeof s.below?n=s.below:l.getBelow&amp;&amp;(n=l.getBelow(s,this)),&quot;&quot;===n&amp;&amp;(o=!0),a[&quot;trace-&quot;+s.uid]=n||&quot;&quot;}for(r=0;r&lt;i.length;r++){var c=i[r];n=&quot;string&quot;==typeof c.below?c.below:o?&quot;traces&quot;:&quot;&quot;,a[&quot;layout-&quot;+r]=n}var u,f,h={};for(u in a)h[n=a[u]]?h[n].push(u):h[n]=[u];for(n in h){var p=h[n];if(p.length&gt;1)for(r=0;r&lt;p.length;r++)0===(u=p[r]).indexOf(&quot;trace-&quot;)?(f=u.split(&quot;trace-&quot;)[1],this.traceHash[f]&amp;&amp;(this.traceHash[f].below=null)):0===u.indexOf(&quot;layout-&quot;)&amp;&amp;(f=u.split(&quot;layout-&quot;)[1],this.layerList[f]&amp;&amp;(this.layerList[f].below=null))}};var w={choroplethmapbox:0,densitymapbox:1,scattermapbox:2};function T(t){var e={};return i.isPlainObject(t)?(e.id=t.id,e.style=t):&quot;string&quot;==typeof t?(e.id=t,-1!==y.styleValuesMapbox.indexOf(t)?e.style=k(t):y.stylesNonMapbox[t]?e.style=y.stylesNonMapbox[t]:e.style=t):(e.id=y.styleValueDflt,e.style=k(y.styleValueDflt)),e.transition={duration:0,delay:0},e}function k(t){return y.styleUrlPrefix+t+&quot;-&quot;+y.styleUrlSuffix}function M(t){return[t.lon,t.lat]}_.updateData=function(t){var e,r,n,i,a=this.traceHash,o=t.slice().sort((function(t,e){return w[t[0].trace.type]-w[e[0].trace.type]}));for(n=0;n&lt;o.length;n++){var s=o[n],l=!1;(e=a[(r=s[0].trace).uid])&amp;&amp;(e.type===r.type?(e.update(s),l=!0):e.dispose()),!l&amp;&amp;r._module&amp;&amp;(a[r.uid]=r._module.plot(this,s))}var c=Object.keys(a);t:for(n=0;n&lt;c.length;n++){var u=c[n];for(i=0;i&lt;t.length;i++)if(u===(r=t[i][0].trace).uid)continue t;(e=a[u]).dispose(),delete a[u]}},_.updateLayout=function(t){var e=this.map,r=t[this.id];this.dragging||this.wheeling||(e.setCenter(M(r.center)),e.setZoom(r.zoom),e.setBearing(r.bearing),e.setPitch(r.pitch)),this.updateLayers(t),this.updateFramework(t),this.updateFx(t),this.map.resize(),this.gd._context._scrollZoom.mapbox?e.scrollZoom.enable():e.scrollZoom.disable()},_.resolveOnRender=function(t){var e=this.map;e.on(&quot;render&quot;,(function r(){e.loaded()&amp;&amp;(e.off(&quot;render&quot;,r),setTimeout(t,10))}))},_.rejectOnError=function(t){var e=this.map;function r(){t(new Error(y.mapOnErrorMsg))}e.once(&quot;error&quot;,r),e.once(&quot;style.error&quot;,r),e.once(&quot;source.error&quot;,r),e.once(&quot;tile.error&quot;,r),e.once(&quot;layer.error&quot;,r)},_.createFramework=function(t){var e=this,r=e.div=document.createElement(&quot;div&quot;);r.id=e.uid,r.style.position=&quot;absolute&quot;,e.container.appendChild(r),e.xaxis={_id:&quot;x&quot;,c2p:function(t){return e.project(t).x}},e.yaxis={_id:&quot;y&quot;,c2p:function(t){return e.project(t).y}},e.updateFramework(t),e.mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},s.setConvert(e.mockAxis,t)},_.initFx=function(t,e){var r=this,n=r.gd,i=r.map;function a(){c.loneUnhover(e._hoverlayer)}function s(){var t=r.getView();n.emit(&quot;plotly_relayouting&quot;,r.getViewEditsWithDerived(t))}i.on(&quot;moveend&quot;,(function(t){if(r.map){var e=n._fullLayout;if(t.originalEvent||r.wheeling){var i=e[r.id];o.call(&quot;_storeDirectGUIEdit&quot;,n.layout,e._preGUI,r.getViewEdits(i));var a=r.getView();i._input.center=i.center=a.center,i._input.zoom=i.zoom=a.zoom,i._input.bearing=i.bearing=a.bearing,i._input.pitch=i.pitch=a.pitch,n.emit(&quot;plotly_relayout&quot;,r.getViewEditsWithDerived(a))}t.originalEvent&amp;&amp;&quot;mouseup&quot;===t.originalEvent.type?r.dragging=!1:r.wheeling&amp;&amp;(r.wheeling=!1),e._rehover&amp;&amp;e._rehover()}})),i.on(&quot;wheel&quot;,(function(){r.wheeling=!0})),i.on(&quot;mousemove&quot;,(function(t){var e=r.div.getBoundingClientRect(),a=[t.originalEvent.offsetX,t.originalEvent.offsetY];t.target.getBoundingClientRect=function(){return e},r.xaxis.p2c=function(){return i.unproject(a).lng},r.yaxis.p2c=function(){return i.unproject(a).lat},n._fullLayout._rehover=function(){n._fullLayout._hoversubplot===r.id&amp;&amp;n._fullLayout[r.id]&amp;&amp;c.hover(n,t,r.id)},c.hover(n,t,r.id),n._fullLayout._hoversubplot=r.id})),i.on(&quot;dragstart&quot;,(function(){r.dragging=!0,a()})),i.on(&quot;zoomstart&quot;,a),i.on(&quot;mouseout&quot;,(function(){n._fullLayout._hoversubplot=null})),i.on(&quot;drag&quot;,s),i.on(&quot;zoom&quot;,s),i.on(&quot;dblclick&quot;,(function(){var t=n._fullLayout[r.id];o.call(&quot;_storeDirectGUIEdit&quot;,n.layout,n._fullLayout._preGUI,r.getViewEdits(t));var e=r.viewInitial;i.setCenter(M(e.center)),i.setZoom(e.zoom),i.setBearing(e.bearing),i.setPitch(e.pitch);var a=r.getView();t._input.center=t.center=a.center,t._input.zoom=t.zoom=a.zoom,t._input.bearing=t.bearing=a.bearing,t._input.pitch=t.pitch=a.pitch,n.emit(&quot;plotly_doubleclick&quot;,null),n.emit(&quot;plotly_relayout&quot;,r.getViewEditsWithDerived(a))})),r.clearSelect=function(){m(r.dragOptions),g(r.dragOptions.gd)},r.onClickInPanFn=function(t){return function(e){var i=n._fullLayout.clickmode;i.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;v(e.originalEvent,n,[r.xaxis],[r.yaxis],r.id,t),i.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;c.click(n,e.originalEvent)}}},_.updateFx=function(t){var e=this,r=e.map,n=e.gd;if(!e.isStatic){var a,o=t.dragmode;a=f(o)?function(t,r){(t.range={})[e.id]=[c([r.xmin,r.ymin]),c([r.xmax,r.ymax])]}:function(t,r,n){(t.lassoPoints={})[e.id]=n.filtered.map(c)};var s=e.dragOptions;e.dragOptions=i.extendDeep(s||{},{dragmode:t.dragmode,element:e.div,gd:n,plotinfo:{id:e.id,domain:t[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis,fillRangeItems:a},xaxes:[e.xaxis],yaxes:[e.yaxis],subplot:e.id}),r.off(&quot;click&quot;,e.onClickInPanHandler),p(o)||h(o)?(r.dragPan.disable(),r.on(&quot;zoomstart&quot;,e.clearSelect),e.dragOptions.prepFn=function(t,r,n){d(t,r,n,e.dragOptions,o)},l.init(e.dragOptions)):(r.dragPan.enable(),r.off(&quot;zoomstart&quot;,e.clearSelect),e.div.onmousedown=null,e.onClickInPanHandler=e.onClickInPanFn(e.dragOptions),r.on(&quot;click&quot;,e.onClickInPanHandler))}function c(t){var r=e.map.unproject(t);return[r.lng,r.lat]}},_.updateFramework=function(t){var e=t[this.id].domain,r=t._size,n=this.div.style;n.width=r.w*(e.x[1]-e.x[0])+&quot;px&quot;,n.height=r.h*(e.y[1]-e.y[0])+&quot;px&quot;,n.left=r.l+e.x[0]*r.w+&quot;px&quot;,n.top=r.t+(1-e.y[1])*r.h+&quot;px&quot;,this.xaxis._offset=r.l+e.x[0]*r.w,this.xaxis._length=r.w*(e.x[1]-e.x[0]),this.yaxis._offset=r.t+(1-e.y[1])*r.h,this.yaxis._length=r.h*(e.y[1]-e.y[0])},_.updateLayers=function(t){var e,r=t[this.id].layers,n=this.layerList;if(r.length!==n.length){for(e=0;e&lt;n.length;e++)n[e].dispose();for(n=this.layerList=[],e=0;e&lt;r.length;e++)n.push(x(this,e,r[e]))}else for(e=0;e&lt;r.length;e++)n[e].update(r[e])},_.destroy=function(){this.map&amp;&amp;(this.map.remove(),this.map=null,this.container.removeChild(this.div))},_.toImage=function(){return this.map.stop(),this.map.getCanvas().toDataURL()},_.setOptions=function(t,e,r){for(var n in r)this.map[e](t,n,r[n])},_.getMapLayers=function(){return this.map.getStyle().layers},_.addLayer=function(t,e){var r=this.map;if(&quot;string&quot;==typeof e){if(&quot;&quot;===e)return void r.addLayer(t,e);for(var n=this.getMapLayers(),a=0;a&lt;n.length;a++)if(e===n[a].id)return void r.addLayer(t,e);i.warn([&quot;Trying to add layer with *below* value&quot;,e,&quot;referencing a layer that does not exist&quot;,&quot;or that does not yet exist.&quot;].join(&quot; &quot;))}r.addLayer(t)},_.project=function(t){return this.map.project(new n.LngLat(t[0],t[1]))},_.getView=function(){var t=this.map,e=t.getCenter(),r={lon:e.lng,lat:e.lat},n=t.getCanvas(),i=n.width,a=n.height;return{center:r,zoom:t.getZoom(),bearing:t.getBearing(),pitch:t.getPitch(),_derived:{coordinates:[t.unproject([0,0]).toArray(),t.unproject([i,0]).toArray(),t.unproject([i,a]).toArray(),t.unproject([0,a]).toArray()]}}},_.getViewEdits=function(t){for(var e=this.id,r=[&quot;center&quot;,&quot;zoom&quot;,&quot;bearing&quot;,&quot;pitch&quot;],n={},i=0;i&lt;r.length;i++){var a=r[i];n[e+&quot;.&quot;+a]=t[a]}return n},_.getViewEditsWithDerived=function(t){var e=this.id,r=this.getViewEdits(t);return r[e+&quot;._derived&quot;]=t._derived,r},e.exports=b},{&quot;../../components/dragelement&quot;:662,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../registry&quot;:911,&quot;../cartesian/axes&quot;:828,&quot;../cartesian/select&quot;:847,&quot;./constants&quot;:883,&quot;./layers&quot;:886,&quot;mapbox-gl&quot;:473}],890:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.editType;return{t:{valType:&quot;number&quot;,dflt:0,editType:e},r:{valType:&quot;number&quot;,dflt:0,editType:e},b:{valType:&quot;number&quot;,dflt:0,editType:e},l:{valType:&quot;number&quot;,dflt:0,editType:e},editType:e}}},{}],891:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-time-format&quot;).timeFormatLocale,a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../registry&quot;),s=t(&quot;../plot_api/plot_schema&quot;),l=t(&quot;../plot_api/plot_template&quot;),c=t(&quot;../lib&quot;),u=t(&quot;../components/color&quot;),f=t(&quot;../constants/numerical&quot;).BADNUM,h=t(&quot;./cartesian/axis_ids&quot;),p=t(&quot;./cartesian/handle_outline&quot;).clearSelect,d=t(&quot;./animation_attributes&quot;),g=t(&quot;./frame_attributes&quot;),m=t(&quot;../plots/get_data&quot;).getModuleCalcData,v=c.relinkPrivateKeys,y=c._,x=e.exports={};c.extendFlat(x,o),x.attributes=t(&quot;./attributes&quot;),x.attributes.type.values=x.allTypes,x.fontAttrs=t(&quot;./font_attributes&quot;),x.layoutAttributes=t(&quot;./layout_attributes&quot;),x.fontWeight=&quot;normal&quot;;var b=x.transformsRegistry,_=t(&quot;./command&quot;);x.executeAPICommand=_.executeAPICommand,x.computeAPICommandBindings=_.computeAPICommandBindings,x.manageCommandObserver=_.manageCommandObserver,x.hasSimpleAPICommandBindings=_.hasSimpleAPICommandBindings,x.redrawText=function(t){var e=(t=c.getGraphDiv(t))._fullLayout||{};if(!(!(e._has&amp;&amp;e._has(&quot;polar&quot;))&amp;&amp;t.data&amp;&amp;t.data[0]&amp;&amp;t.data[0].r))return new Promise((function(e){setTimeout((function(){o.getComponentMethod(&quot;annotations&quot;,&quot;draw&quot;)(t),o.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),o.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t),e(x.previousPromises(t))}),300)}))},x.resize=function(t){var e;t=c.getGraphDiv(t);var r=new Promise((function(r,n){t&amp;&amp;!c.isHidden(t)||n(new Error(&quot;Resize must be passed a displayed plot div element.&quot;)),t._redrawTimer&amp;&amp;clearTimeout(t._redrawTimer),t._resolveResize&amp;&amp;(e=t._resolveResize),t._resolveResize=r,t._redrawTimer=setTimeout((function(){if(!t.layout||t.layout.width&amp;&amp;t.layout.height||c.isHidden(t))r(t);else{delete t.layout.width,delete t.layout.height;var e=t.changed;t.autoplay=!0,o.call(&quot;relayout&quot;,t,{autosize:!0}).then((function(){t.changed=e,t._resolveResize===r&amp;&amp;(delete t._resolveResize,r(t))}))}}),100)}));return e&amp;&amp;e(r),r},x.previousPromises=function(t){if((t._promises||[]).length)return Promise.all(t._promises).then((function(){t._promises=[]}))},x.addLinks=function(t){if(t._context.showLink||t._context.showSources){var e=t._fullLayout,r=c.ensureSingle(e._paper,&quot;text&quot;,&quot;js-plot-link-container&quot;,(function(t){t.style({&quot;font-family&quot;:'&quot;Open Sans&quot;, Arial, sans-serif',&quot;font-size&quot;:&quot;12px&quot;,fill:u.defaultLine,&quot;pointer-events&quot;:&quot;all&quot;}).each((function(){var t=n.select(this);t.append(&quot;tspan&quot;).classed(&quot;js-link-to-tool&quot;,!0),t.append(&quot;tspan&quot;).classed(&quot;js-link-spacer&quot;,!0),t.append(&quot;tspan&quot;).classed(&quot;js-sourcelinks&quot;,!0)}))})),i=r.node(),a={y:e._paper.attr(&quot;height&quot;)-9};document.body.contains(i)&amp;&amp;i.getComputedTextLength()&gt;=e.width-20?(a[&quot;text-anchor&quot;]=&quot;start&quot;,a.x=5):(a[&quot;text-anchor&quot;]=&quot;end&quot;,a.x=e._paper.attr(&quot;width&quot;)-7),r.attr(a);var o=r.select(&quot;.js-link-to-tool&quot;),s=r.select(&quot;.js-link-spacer&quot;),l=r.select(&quot;.js-sourcelinks&quot;);t._context.showSources&amp;&amp;t._context.showSources(t),t._context.showLink&amp;&amp;function(t,e){e.text(&quot;&quot;);var r=e.append(&quot;a&quot;).attr({&quot;xlink:xlink:href&quot;:&quot;#&quot;,class:&quot;link--impt link--embedview&quot;,&quot;font-weight&quot;:&quot;bold&quot;}).text(t._context.linkText+&quot; &quot;+String.fromCharCode(187));if(t._context.sendData)r.on(&quot;click&quot;,(function(){x.sendDataToCloud(t)}));else{var n=window.location.pathname.split(&quot;/&quot;),i=window.location.search;r.attr({&quot;xlink:xlink:show&quot;:&quot;new&quot;,&quot;xlink:xlink:href&quot;:&quot;/&quot;+n[2].split(&quot;.&quot;)[0]+&quot;/&quot;+n[1]+i})}}(t,o),s.text(o.text()&amp;&amp;l.text()?&quot; - &quot;:&quot;&quot;)}},x.sendDataToCloud=function(t){var e=(window.PLOTLYENV||{}).BASE_URL||t._context.plotlyServerURL;if(e){t.emit(&quot;plotly_beforeexport&quot;);var r=n.select(t).append(&quot;div&quot;).attr(&quot;id&quot;,&quot;hiddenform&quot;).style(&quot;display&quot;,&quot;none&quot;),i=r.append(&quot;form&quot;).attr({action:e+&quot;/external&quot;,method:&quot;post&quot;,target:&quot;_blank&quot;});return i.append(&quot;input&quot;).attr({type:&quot;text&quot;,name:&quot;data&quot;}).node().value=x.graphJson(t,!1,&quot;keepdata&quot;),i.node().submit(),r.remove(),t.emit(&quot;plotly_afterexport&quot;),!1}};var w=[&quot;days&quot;,&quot;shortDays&quot;,&quot;months&quot;,&quot;shortMonths&quot;,&quot;periods&quot;,&quot;dateTime&quot;,&quot;date&quot;,&quot;time&quot;,&quot;decimal&quot;,&quot;thousands&quot;,&quot;grouping&quot;,&quot;currency&quot;],T=[&quot;year&quot;,&quot;month&quot;,&quot;dayMonth&quot;,&quot;dayMonthYear&quot;];function k(t,e){var r=t._context.locale;r||(r=&quot;en-US&quot;);var n=!1,i={};function a(t){for(var r=!0,a=0;a&lt;e.length;a++){var o=e[a];i[o]||(t[o]?i[o]=t[o]:r=!1)}r&amp;&amp;(n=!0)}for(var s=0;s&lt;2;s++){for(var l=t._context.locales,c=0;c&lt;2;c++){var u=(l[r]||{}).format;if(u&amp;&amp;(a(u),n))break;l=o.localeRegistry}var f=r.split(&quot;-&quot;)[0];if(n||f===r)break;r=f}return n||a(o.localeRegistry.en.format),i}function M(t,e){var r={_fullLayout:e},n=&quot;x&quot;===t._id.charAt(0),i=t._mainAxis._anchorAxis,a=&quot;&quot;,o=&quot;&quot;,s=&quot;&quot;;if(i&amp;&amp;(s=i._mainAxis._id,a=n?t._id+s:s+t._id),!a||!e._plots[a]){a=&quot;&quot;;for(var l=t._counterAxes,c=0;c&lt;l.length;c++){var u=l[c],f=n?t._id+u:u+t._id;o||(o=f);var p=h.getFromId(r,u);if(s&amp;&amp;p.overlaying===s){a=f;break}}}return a||o}function A(t){var e=t.transforms;if(Array.isArray(e)&amp;&amp;e.length)for(var r=0;r&lt;e.length;r++){var n=e[r],i=n._module||b[n.type];if(i&amp;&amp;i.makesData)return!0}return!1}function S(t,e,r,n){for(var i=t.transforms,a=[t],o=0;o&lt;i.length;o++){var s=i[o],l=b[s.type];l&amp;&amp;l.transform&amp;&amp;(a=l.transform(a,{transform:s,fullTrace:t,fullData:e,layout:r,fullLayout:n,transformIndex:o}))}return a}function E(t){return&quot;string&quot;==typeof t&amp;&amp;&quot;px&quot;===t.substr(t.length-2)&amp;&amp;parseFloat(t)}function C(t){var e=t.margin;if(!t._size){var r=t._size={l:Math.round(e.l),r:Math.round(e.r),t:Math.round(e.t),b:Math.round(e.b),p:Math.round(e.pad)};r.w=Math.round(t.width)-r.l-r.r,r.h=Math.round(t.height)-r.t-r.b}t._pushmargin||(t._pushmargin={}),t._pushmarginIds||(t._pushmarginIds={})}x.supplyDefaults=function(t,e){var r=e&amp;&amp;e.skipUpdateCalc,a=t._fullLayout||{};if(a._skipDefaults)delete a._skipDefaults;else{var s,l=t._fullLayout={},u=t.layout||{},f=t._fullData||[],h=t._fullData=[],d=t.data||[],g=t.calcdata||[],m=t._context||{};t._transitionData||x.createTransitionData(t),l._dfltTitle={plot:y(t,&quot;Click to enter Plot title&quot;),x:y(t,&quot;Click to enter X axis title&quot;),y:y(t,&quot;Click to enter Y axis title&quot;),colorbar:y(t,&quot;Click to enter Colorscale title&quot;),annotation:y(t,&quot;new text&quot;)},l._traceWord=y(t,&quot;trace&quot;);var b=k(t,w);if(l._mapboxAccessToken=m.mapboxAccessToken,a._initialAutoSizeIsDone){var _=a.width,M=a.height;x.supplyLayoutGlobalDefaults(u,l,b),u.width||(l.width=_),u.height||(l.height=M),x.sanitizeMargins(l)}else{x.supplyLayoutGlobalDefaults(u,l,b);var A=!u.width||!u.height,S=l.autosize,E=m.autosizable;A&amp;&amp;(S||E)?x.plotAutoSize(t,u,l):A&amp;&amp;x.sanitizeMargins(l),!S&amp;&amp;A&amp;&amp;(u.width=l.width,u.height=l.height)}l._d3locale=function(t,e){return t.decimal=e.charAt(0),t.thousands=e.charAt(1),{numberFormat:n.locale(t).numberFormat,timeFormat:i(t).utcFormat}}(b,l.separators),l._extraFormat=k(t,T),l._initialAutoSizeIsDone=!0,l._dataLength=d.length,l._modules=[],l._visibleModules=[],l._basePlotModules=[];var L=l._subplots=function(){var t,e,r=o.collectableSubplotTypes,n={};if(!r){r=[];var i=o.subplotsRegistry;for(var a in i){var s=i[a].attr;if(s&amp;&amp;(r.push(a),Array.isArray(s)))for(e=0;e&lt;s.length;e++)c.pushUnique(r,s[e])}}for(t=0;t&lt;r.length;t++)n[r[t]]=[];return n}(),I=l._splomAxes={x:{},y:{}},P=l._splomSubplots={};l._splomGridDflt={},l._scatterStackOpts={},l._firstScatter={},l._alignmentOpts={},l._colorAxes={},l._requestRangeslider={},l._traceUids=function(t,e){var r,n,i=e.length,a=[];for(r=0;r&lt;t.length;r++){var o=t[r]._fullInput;o!==n&amp;&amp;a.push(o),n=o}var s=a.length,l=new Array(i),u={};function f(t,e){l[e]=t,u[t]=1}function h(t,e){if(t&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;!u[t])return f(t,e),!0}for(r=0;r&lt;i;r++){var p=e[r].uid;&quot;number&quot;==typeof p&amp;&amp;(p=String(p)),h(p,r)||(r&lt;s&amp;&amp;h(a[r].uid,r)||f(c.randstr(u),r))}return l}(f,d),l._globalTransforms=(t._context||{}).globalTransforms,x.supplyDataDefaults(d,h,u,l);var z=Object.keys(I.x),O=Object.keys(I.y);if(z.length&gt;1&amp;&amp;O.length&gt;1){for(o.getComponentMethod(&quot;grid&quot;,&quot;sizeDefaults&quot;)(u,l),s=0;s&lt;z.length;s++)c.pushUnique(L.xaxis,z[s]);for(s=0;s&lt;O.length;s++)c.pushUnique(L.yaxis,O[s]);for(var D in P)c.pushUnique(L.cartesian,D)}if(l._has=x._hasPlotType.bind(l),f.length===h.length)for(s=0;s&lt;h.length;s++)v(h[s],f[s]);x.supplyLayoutModuleDefaults(u,l,h,t._transitionData);var R=l._visibleModules,F=[];for(s=0;s&lt;R.length;s++){var B=R[s].crossTraceDefaults;B&amp;&amp;c.pushUnique(F,B)}for(s=0;s&lt;F.length;s++)F[s](h,l);l._hasOnlyLargeSploms=1===l._basePlotModules.length&amp;&amp;&quot;splom&quot;===l._basePlotModules[0].name&amp;&amp;z.length&gt;15&amp;&amp;O.length&gt;15&amp;&amp;0===l.shapes.length&amp;&amp;0===l.images.length,l._hasCartesian=l._has(&quot;cartesian&quot;),l._hasGeo=l._has(&quot;geo&quot;),l._hasGL3D=l._has(&quot;gl3d&quot;),l._hasGL2D=l._has(&quot;gl2d&quot;),l._hasTernary=l._has(&quot;ternary&quot;),l._hasPie=l._has(&quot;pie&quot;),x.linkSubplots(h,l,f,a),x.cleanPlot(h,l,f,a);var N=!(!a._has||!a._has(&quot;gl2d&quot;)),j=!(!l._has||!l._has(&quot;gl2d&quot;)),U=!(!a._has||!a._has(&quot;cartesian&quot;))||N,V=!(!l._has||!l._has(&quot;cartesian&quot;))||j;U&amp;&amp;!V?a._bgLayer.remove():V&amp;&amp;!U&amp;&amp;(l._shouldCreateBgLayer=!0),a._zoomlayer&amp;&amp;!t._dragging&amp;&amp;p({_fullLayout:a}),function(t,e){var r,n=[];e.meta&amp;&amp;(r=e._meta={meta:e.meta,layout:{meta:e.meta}});for(var i=0;i&lt;t.length;i++){var a=t[i];a.meta?n[a.index]=a._meta={meta:a.meta}:e.meta&amp;&amp;(a._meta={meta:e.meta}),e.meta&amp;&amp;(a._meta.layout={meta:e.meta})}n.length&amp;&amp;(r||(r=e._meta={}),r.data=n)}(h,l),v(l,a),o.getComponentMethod(&quot;colorscale&quot;,&quot;crossTraceDefaults&quot;)(h,l),l._preGUI||(l._preGUI={}),l._tracePreGUI||(l._tracePreGUI={});var q,H=l._tracePreGUI,G={};for(q in H)G[q]=&quot;old&quot;;for(s=0;s&lt;h.length;s++)G[q=h[s]._fullInput.uid]||(H[q]={}),G[q]=&quot;new&quot;;for(q in G)&quot;old&quot;===G[q]&amp;&amp;delete H[q];C(l),o.getComponentMethod(&quot;rangeslider&quot;,&quot;makeData&quot;)(l),r||g.length!==h.length||x.supplyDefaultsUpdateCalc(g,h)}},x.supplyDefaultsUpdateCalc=function(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r],i=(t[r]||[])[0];if(i&amp;&amp;i.trace){var a=i.trace;if(a._hasCalcTransform){var o,s,l,u=a._arrayAttrs;for(o=0;o&lt;u.length;o++)s=u[o],l=c.nestedProperty(a,s).get().slice(),c.nestedProperty(n,s).set(l)}i.trace=n}}},x.createTransitionData=function(t){t._transitionData||(t._transitionData={}),t._transitionData._frames||(t._transitionData._frames=[]),t._transitionData._frameHash||(t._transitionData._frameHash={}),t._transitionData._counter||(t._transitionData._counter=0),t._transitionData._interruptCallbacks||(t._transitionData._interruptCallbacks=[])},x._hasPlotType=function(t){var e,r=this._basePlotModules||[];for(e=0;e&lt;r.length;e++)if(r[e].name===t)return!0;var n=this._modules||[];for(e=0;e&lt;n.length;e++){var i=n[e].name;if(i===t)return!0;var a=o.modules[i];if(a&amp;&amp;a.categories[t])return!0}return!1},x.cleanPlot=function(t,e,r,n){var i,a,o=n._basePlotModules||[];for(i=0;i&lt;o.length;i++){var s=o[i];s.clean&amp;&amp;s.clean(t,e,r,n)}var l=n._has&amp;&amp;n._has(&quot;gl&quot;),c=e._has&amp;&amp;e._has(&quot;gl&quot;);l&amp;&amp;!c&amp;&amp;void 0!==n._glcontainer&amp;&amp;(n._glcontainer.selectAll(&quot;.gl-canvas&quot;).remove(),n._glcontainer.selectAll(&quot;.no-webgl&quot;).remove(),n._glcanvas=null);var u=!!n._infolayer;t:for(i=0;i&lt;r.length;i++){var f=r[i].uid;for(a=0;a&lt;t.length;a++){if(f===t[a].uid)continue t}u&amp;&amp;n._infolayer.select(&quot;.cb&quot;+f).remove()}},x.linkSubplots=function(t,e,r,n){var i,a,s=n._plots||{},l=e._plots={},u=e._subplots,f={_fullData:t,_fullLayout:e},p=u.cartesian.concat(u.gl2d||[]);for(i=0;i&lt;p.length;i++){var d,g=p[i],m=s[g],v=h.getFromId(f,g,&quot;x&quot;),y=h.getFromId(f,g,&quot;y&quot;);for(m?d=l[g]=m:(d=l[g]={}).id=g,v._counterAxes.push(y._id),y._counterAxes.push(v._id),v._subplotsWith.push(g),y._subplotsWith.push(g),d.xaxis=v,d.yaxis=y,d._hasClipOnAxisFalse=!1,a=0;a&lt;t.length;a++){var x=t[a];if(x.xaxis===d.xaxis._id&amp;&amp;x.yaxis===d.yaxis._id&amp;&amp;!1===x.cliponaxis){d._hasClipOnAxisFalse=!0;break}}}var b,_=h.list(f,null,!0);for(i=0;i&lt;_.length;i++){var w=null;(b=_[i]).overlaying&amp;&amp;(w=h.getFromId(f,b.overlaying))&amp;&amp;w.overlaying&amp;&amp;(b.overlaying=!1,w=null),b._mainAxis=w||b,w&amp;&amp;(b.domain=w.domain.slice()),b._anchorAxis=&quot;free&quot;===b.anchor?null:h.getFromId(f,b.anchor)}for(i=0;i&lt;_.length;i++)if((b=_[i])._counterAxes.sort(h.idSort),b._subplotsWith.sort(c.subplotSort),b._mainSubplot=M(b,e),b._counterAxes.length&amp;&amp;(b.spikemode&amp;&amp;-1!==b.spikemode.indexOf(&quot;across&quot;)||b.automargin&amp;&amp;b.mirror&amp;&amp;&quot;free&quot;!==b.anchor||o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(b))){var T=1,k=0;for(a=0;a&lt;b._counterAxes.length;a++){var A=h.getFromId(f,b._counterAxes[a]);T=Math.min(T,A.domain[0]),k=Math.max(k,A.domain[1])}T&lt;k&amp;&amp;(b._counterDomainMin=T,b._counterDomainMax=k)}},x.clearExpandedTraceDefaultColors=function(t){var e,r,n;for(r=[],(e=t._module._colorAttrs)||(t._module._colorAttrs=e=[],s.crawl(t._module.attributes,(function(t,n,i,a){r[a]=n,r.length=a+1,&quot;color&quot;===t.valType&amp;&amp;void 0===t.dflt&amp;&amp;e.push(r.join(&quot;.&quot;))}))),n=0;n&lt;e.length;n++){c.nestedProperty(t,&quot;_input.&quot;+e[n]).get()||c.nestedProperty(t,e[n]).set(null)}},x.supplyDataDefaults=function(t,e,r,n){var i,a,s,u=n._modules,f=n._visibleModules,h=n._basePlotModules,p=0,d=0;function g(t){e.push(t);var r=t._module;r&amp;&amp;(c.pushUnique(u,r),!0===t.visible&amp;&amp;c.pushUnique(f,r),c.pushUnique(h,t._module.basePlotModule),p++,!1!==t._input.visible&amp;&amp;d++)}n._transformModules=[];var m={},y=[],b=(r.template||{}).data||{},_=l.traceTemplater(b);for(i=0;i&lt;t.length;i++){if(s=t[i],(a=_.newTrace(s)).uid=n._traceUids[i],x.supplyTraceDefaults(s,a,d,n,i),a.index=i,a._input=s,a._expandedIndex=p,a.transforms&amp;&amp;a.transforms.length)for(var w=!1!==s.visible&amp;&amp;!1===a.visible,T=S(a,e,r,n),k=0;k&lt;T.length;k++){var M=T[k],A={_template:a._template,type:a.type,uid:a.uid+k};w&amp;&amp;!1===M.visible&amp;&amp;delete M.visible,x.supplyTraceDefaults(M,A,p,n,i),v(A,M),A.index=i,A._input=s,A._fullInput=a,A._expandedIndex=p,A._expandedInput=M,g(A)}else a._fullInput=a,a._expandedInput=a,g(a);o.traceIs(a,&quot;carpetAxis&quot;)&amp;&amp;(m[a.carpet]=a),o.traceIs(a,&quot;carpetDependent&quot;)&amp;&amp;y.push(i)}for(i=0;i&lt;y.length;i++)if((a=e[y[i]]).visible){var E=m[a.carpet];a._carpet=E,E&amp;&amp;E.visible?(a.xaxis=E.xaxis,a.yaxis=E.yaxis):a.visible=!1}},x.supplyAnimationDefaults=function(t){var e;t=t||{};var r={};function n(e,n){return c.coerce(t||{},r,d,e,n)}if(n(&quot;mode&quot;),n(&quot;direction&quot;),n(&quot;fromcurrent&quot;),Array.isArray(t.frame))for(r.frame=[],e=0;e&lt;t.frame.length;e++)r.frame[e]=x.supplyAnimationFrameDefaults(t.frame[e]||{});else r.frame=x.supplyAnimationFrameDefaults(t.frame||{});if(Array.isArray(t.transition))for(r.transition=[],e=0;e&lt;t.transition.length;e++)r.transition[e]=x.supplyAnimationTransitionDefaults(t.transition[e]||{});else r.transition=x.supplyAnimationTransitionDefaults(t.transition||{});return r},x.supplyAnimationFrameDefaults=function(t){var e={};function r(r,n){return c.coerce(t||{},e,d.frame,r,n)}return r(&quot;duration&quot;),r(&quot;redraw&quot;),e},x.supplyAnimationTransitionDefaults=function(t){var e={};function r(r,n){return c.coerce(t||{},e,d.transition,r,n)}return r(&quot;duration&quot;),r(&quot;easing&quot;),e},x.supplyFrameDefaults=function(t){var e={};function r(r,n){return c.coerce(t,e,g,r,n)}return r(&quot;group&quot;),r(&quot;name&quot;),r(&quot;traces&quot;),r(&quot;baseframe&quot;),r(&quot;data&quot;),r(&quot;layout&quot;),e},x.supplyTraceDefaults=function(t,e,r,n,i){var a,s=n.colorway||u.defaults,l=s[r%s.length];function f(r,n){return c.coerce(t,e,x.attributes,r,n)}var h=f(&quot;visible&quot;);f(&quot;type&quot;),f(&quot;name&quot;,n._traceWord+&quot; &quot;+i),f(&quot;uirevision&quot;,n.uirevision);var p=x.getModule(e);if(e._module=p,p){var d=p.basePlotModule,g=d.attr,m=d.attributes;if(g&amp;&amp;m){var v=n._subplots,y=&quot;&quot;;if(h||&quot;gl2d&quot;!==d.name){if(Array.isArray(g))for(a=0;a&lt;g.length;a++){var b=g[a],_=c.coerce(t,e,m,b);v[b]&amp;&amp;c.pushUnique(v[b],_),y+=_}else y=c.coerce(t,e,m,g);v[d.name]&amp;&amp;c.pushUnique(v[d.name],y)}}}return h&amp;&amp;(f(&quot;customdata&quot;),f(&quot;ids&quot;),f(&quot;meta&quot;),o.traceIs(e,&quot;showLegend&quot;)?(c.coerce(t,e,p.attributes.showlegend?p.attributes:x.attributes,&quot;showlegend&quot;),f(&quot;legendgroup&quot;),e._dfltShowLegend=!0):e._dfltShowLegend=!1,p&amp;&amp;p.supplyDefaults(t,e,l,n),o.traceIs(e,&quot;noOpacity&quot;)||f(&quot;opacity&quot;),o.traceIs(e,&quot;notLegendIsolatable&quot;)&amp;&amp;(e.visible=!!e.visible),o.traceIs(e,&quot;noHover&quot;)||(e.hovertemplate||c.coerceHoverinfo(t,e,n),&quot;parcats&quot;!==e.type&amp;&amp;o.getComponentMethod(&quot;fx&quot;,&quot;supplyDefaults&quot;)(t,e,l,n)),p&amp;&amp;p.selectPoints&amp;&amp;f(&quot;selectedpoints&quot;),x.supplyTransformDefaults(t,e,n)),e},x.hasMakesDataTransform=A,x.supplyTransformDefaults=function(t,e,r){if(e._length||A(t)){var n=r._globalTransforms||[],i=r._transformModules||[];if(Array.isArray(t.transforms)||0!==n.length)for(var a=t.transforms||[],o=n.concat(a),s=e.transforms=[],l=0;l&lt;o.length;l++){var u,f=o[l],h=f.type,p=b[h],d=!(f._module&amp;&amp;f._module===p),g=p&amp;&amp;&quot;function&quot;==typeof p.transform;p||c.warn(&quot;Unrecognized transform type &quot;+h+&quot;.&quot;),p&amp;&amp;p.supplyDefaults&amp;&amp;(d||g)?((u=p.supplyDefaults(f,e,r,t)).type=h,u._module=p,c.pushUnique(i,p)):u=c.extendFlat({},f),s.push(u)}}},x.supplyLayoutGlobalDefaults=function(t,e,r){function n(r,n){return c.coerce(t,e,x.layoutAttributes,r,n)}var i=t.template;c.isPlainObject(i)&amp;&amp;(e.template=i,e._template=i.layout,e._dataTemplate=i.data),n(&quot;autotypenumbers&quot;);var a=c.coerceFont(n,&quot;font&quot;);n(&quot;title.text&quot;,e._dfltTitle.plot),c.coerceFont(n,&quot;title.font&quot;,{family:a.family,size:Math.round(1.4*a.size),color:a.color}),n(&quot;title.xref&quot;),n(&quot;title.yref&quot;),n(&quot;title.x&quot;),n(&quot;title.y&quot;),n(&quot;title.xanchor&quot;),n(&quot;title.yanchor&quot;),n(&quot;title.pad.t&quot;),n(&quot;title.pad.r&quot;),n(&quot;title.pad.b&quot;),n(&quot;title.pad.l&quot;),n(&quot;uniformtext.mode&quot;)&amp;&amp;n(&quot;uniformtext.minsize&quot;),n(&quot;autosize&quot;,!(t.width&amp;&amp;t.height)),n(&quot;width&quot;),n(&quot;height&quot;),n(&quot;margin.l&quot;),n(&quot;margin.r&quot;),n(&quot;margin.t&quot;),n(&quot;margin.b&quot;),n(&quot;margin.pad&quot;),n(&quot;margin.autoexpand&quot;),t.width&amp;&amp;t.height&amp;&amp;x.sanitizeMargins(e),o.getComponentMethod(&quot;grid&quot;,&quot;sizeDefaults&quot;)(t,e),n(&quot;paper_bgcolor&quot;),n(&quot;separators&quot;,r.decimal+r.thousands),n(&quot;hidesources&quot;),n(&quot;colorway&quot;),n(&quot;datarevision&quot;);var s=n(&quot;uirevision&quot;);n(&quot;editrevision&quot;,s),n(&quot;selectionrevision&quot;,s),n(&quot;modebar.orientation&quot;),n(&quot;modebar.bgcolor&quot;,u.addOpacity(e.paper_bgcolor,.5));var l=u.contrast(u.rgb(e.modebar.bgcolor));n(&quot;modebar.color&quot;,u.addOpacity(l,.3)),n(&quot;modebar.activecolor&quot;,u.addOpacity(l,.7)),n(&quot;modebar.uirevision&quot;,s),o.getComponentMethod(&quot;shapes&quot;,&quot;supplyDrawNewShapeDefaults&quot;)(t,e,n),n(&quot;meta&quot;),c.isPlainObject(t.transition)&amp;&amp;(n(&quot;transition.duration&quot;),n(&quot;transition.easing&quot;),n(&quot;transition.ordering&quot;)),o.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;),o.getComponentMethod(&quot;fx&quot;,&quot;supplyLayoutGlobalDefaults&quot;)(t,e,n)},x.plotAutoSize=function(t,e,r){var n,i,o=t._context||{},s=o.frameMargins,l=c.isPlotDiv(t);if(l&amp;&amp;t.emit(&quot;plotly_autosize&quot;),o.fillFrame)n=window.innerWidth,i=window.innerHeight,document.body.style.overflow=&quot;hidden&quot;;else{var u=l?window.getComputedStyle(t):{};if(n=E(u.width)||E(u.maxWidth)||r.width,i=E(u.height)||E(u.maxHeight)||r.height,a(s)&amp;&amp;s&gt;0){var f=1-2*s;n=Math.round(f*n),i=Math.round(f*i)}}var h=x.layoutAttributes.width.min,p=x.layoutAttributes.height.min;n&lt;h&amp;&amp;(n=h),i&lt;p&amp;&amp;(i=p);var d=!e.width&amp;&amp;Math.abs(r.width-n)&gt;1,g=!e.height&amp;&amp;Math.abs(r.height-i)&gt;1;(g||d)&amp;&amp;(d&amp;&amp;(r.width=n),g&amp;&amp;(r.height=i)),t._initialAutoSize||(t._initialAutoSize={width:n,height:i}),x.sanitizeMargins(r)},x.supplyLayoutModuleDefaults=function(t,e,r,n){var i,a,s,l=o.componentsRegistry,u=e._basePlotModules,f=o.subplotsRegistry.cartesian;for(i in l)(s=l[i]).includeBasePlot&amp;&amp;s.includeBasePlot(t,e);for(var h in u.length||u.push(f),e._has(&quot;cartesian&quot;)&amp;&amp;(o.getComponentMethod(&quot;grid&quot;,&quot;contentDefaults&quot;)(t,e),f.finalizeSubplots(t,e)),e._subplots)e._subplots[h].sort(c.subplotSort);for(a=0;a&lt;u.length;a++)(s=u[a]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r);var p=e._modules;for(a=0;a&lt;p.length;a++)(s=p[a]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r);var d=e._transformModules;for(a=0;a&lt;d.length;a++)(s=d[a]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r,n);for(i in l)(s=l[i]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r)},x.purge=function(t){var e=t._fullLayout||{};void 0!==e._glcontainer&amp;&amp;(e._glcontainer.selectAll(&quot;.gl-canvas&quot;).remove(),e._glcontainer.remove(),e._glcanvas=null),e._modeBar&amp;&amp;e._modeBar.destroy(),t._transitionData&amp;&amp;(t._transitionData._interruptCallbacks&amp;&amp;(t._transitionData._interruptCallbacks.length=0),t._transitionData._animationRaf&amp;&amp;window.cancelAnimationFrame(t._transitionData._animationRaf)),c.clearThrottle(),c.clearResponsive(t),delete t.data,delete t.layout,delete t._fullData,delete t._fullLayout,delete t.calcdata,delete t.framework,delete t.empty,delete t.fid,delete t.undoqueue,delete t.undonum,delete t.autoplay,delete t.changed,delete t._promises,delete t._redrawTimer,delete t._hmlumcount,delete t._hmpixcount,delete t._transitionData,delete t._transitioning,delete t._initialAutoSize,delete t._transitioningWithDuration,delete t._dragging,delete t._dragged,delete t._dragdata,delete t._hoverdata,delete t._snapshotInProgress,delete t._editing,delete t._mouseDownTime,delete t._legendMouseDownTime,t.removeAllListeners&amp;&amp;t.removeAllListeners()},x.style=function(t){var e,r=t._fullLayout._visibleModules,n=[];for(e=0;e&lt;r.length;e++){var i=r[e];i.style&amp;&amp;c.pushUnique(n,i.style)}for(e=0;e&lt;n.length;e++)n[e](t)},x.sanitizeMargins=function(t){if(t&amp;&amp;t.margin){var e,r=t.width,n=t.height,i=t.margin,a=r-(i.l+i.r),o=n-(i.t+i.b);a&lt;0&amp;&amp;(e=(r-1)/(i.l+i.r),i.l=Math.floor(e*i.l),i.r=Math.floor(e*i.r)),o&lt;0&amp;&amp;(e=(n-1)/(i.t+i.b),i.t=Math.floor(e*i.t),i.b=Math.floor(e*i.b))}},x.clearAutoMarginIds=function(t){t._fullLayout._pushmarginIds={}},x.allowAutoMargin=function(t,e){t._fullLayout._pushmarginIds[e]=1};x.autoMargin=function(t,e,r){var n=t._fullLayout,i=n.width,a=n.height,o=n.margin,s=c.constrain(i-o.l-o.r,2,64),l=c.constrain(a-o.t-o.b,2,64),u=Math.max(0,i-s),f=Math.max(0,a-l),h=n._pushmargin,p=n._pushmarginIds;if(!1!==o.autoexpand){if(r){var d=r.pad;if(void 0===d&amp;&amp;(d=Math.min(12,o.l,o.r,o.t,o.b)),u){var g=(r.l+r.r)/u;g&gt;1&amp;&amp;(r.l/=g,r.r/=g)}if(f){var m=(r.t+r.b)/f;m&gt;1&amp;&amp;(r.t/=m,r.b/=m)}var v=void 0!==r.xl?r.xl:r.x,y=void 0!==r.xr?r.xr:r.x,b=void 0!==r.yt?r.yt:r.y,_=void 0!==r.yb?r.yb:r.y;h[e]={l:{val:v,size:r.l+d},r:{val:y,size:r.r+d},b:{val:_,size:r.b+d},t:{val:b,size:r.t+d}},p[e]=1}else delete h[e],delete p[e];if(!n._replotting)return x.doAutoMargin(t)}},x.doAutoMargin=function(t){var e=t._fullLayout,r=e.width,n=e.height;e._size||(e._size={}),C(e);var i=e._size,s=e.margin,l=c.extendFlat({},i),u=s.l,f=s.r,p=s.t,d=s.b,g=e._pushmargin,m=e._pushmarginIds;if(!1!==e.margin.autoexpand){for(var v in g)m[v]||delete g[v];for(var y in g.base={l:{val:0,size:u},r:{val:1,size:f},t:{val:1,size:p},b:{val:0,size:d}},g){var b=g[y].l||{},_=g[y].b||{},w=b.val,T=b.size,k=_.val,M=_.size;for(var A in g){if(a(T)&amp;&amp;g[A].r){var S=g[A].r.val,E=g[A].r.size;if(S&gt;w){var L=(T*S+(E-r)*w)/(S-w),I=(E*(1-w)+(T-r)*(1-S))/(S-w);L+I&gt;u+f&amp;&amp;(u=L,f=I)}}if(a(M)&amp;&amp;g[A].t){var P=g[A].t.val,z=g[A].t.size;if(P&gt;k){var O=(M*P+(z-n)*k)/(P-k),D=(z*(1-k)+(M-n)*(1-P))/(P-k);O+D&gt;d+p&amp;&amp;(d=O,p=D)}}}}}var R=c.constrain(r-s.l-s.r,2,64),F=c.constrain(n-s.t-s.b,2,64),B=Math.max(0,r-R),N=Math.max(0,n-F);if(B){var j=(u+f)/B;j&gt;1&amp;&amp;(u/=j,f/=j)}if(N){var U=(d+p)/N;U&gt;1&amp;&amp;(d/=U,p/=U)}if(i.l=Math.round(u),i.r=Math.round(f),i.t=Math.round(p),i.b=Math.round(d),i.p=Math.round(s.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!e._replotting&amp;&amp;x.didMarginChange(l,i)){&quot;_redrawFromAutoMarginCount&quot;in e?e._redrawFromAutoMarginCount++:e._redrawFromAutoMarginCount=1;var V=3*(1+Object.keys(m).length);if(e._redrawFromAutoMarginCount&lt;V)return o.call(&quot;plot&quot;,t);e._size=l,c.warn(&quot;Too many auto-margin redraws.&quot;)}!function(t){for(var e=h.list(t,&quot;&quot;,!0),r=0;r&lt;e.length;r++){var n=e[r]._hideOutOfRangeInsideTickLabels;n&amp;&amp;n()}}(t)};var L=[&quot;l&quot;,&quot;r&quot;,&quot;t&quot;,&quot;b&quot;,&quot;p&quot;,&quot;w&quot;,&quot;h&quot;];function I(t,e,r){var n=!1;var i=[x.previousPromises,function(){if(t._transitionData)return t._transitioning=!1,function(t){var e=Promise.resolve();if(!t)return e;for(;t.length;)e=e.then(t.shift());return e}(t._transitionData._interruptCallbacks)},r.prepareFn,x.rehover,function(){return t.emit(&quot;plotly_transitioning&quot;,[]),new Promise((function(i){t._transitioning=!0,e.duration&gt;0&amp;&amp;(t._transitioningWithDuration=!0),t._transitionData._interruptCallbacks.push((function(){n=!0})),r.redraw&amp;&amp;t._transitionData._interruptCallbacks.push((function(){return o.call(&quot;redraw&quot;,t)})),t._transitionData._interruptCallbacks.push((function(){t.emit(&quot;plotly_transitioninterrupted&quot;,[])}));var a=0,s=0;function l(){return a++,function(){s++,n||s!==a||function(e){if(!t._transitionData)return;(function(t){if(t)for(;t.length;)t.shift()})(t._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return o.call(&quot;redraw&quot;,t)})).then((function(){t._transitioning=!1,t._transitioningWithDuration=!1,t.emit(&quot;plotly_transitioned&quot;,[])})).then(e)}(i)}}r.runFn(l),setTimeout(l())}))}],a=c.syncOrAsync(i,t);return a&amp;&amp;a.then||(a=Promise.resolve()),a.then((function(){return t}))}x.didMarginChange=function(t,e){for(var r=0;r&lt;L.length;r++){var n=L[r],i=t[n],o=e[n];if(!a(i)||Math.abs(o-i)&gt;1)return!0}return!1},x.graphJson=function(t,e,r,n,i,a){(i&amp;&amp;e&amp;&amp;!t._fullData||i&amp;&amp;!e&amp;&amp;!t._fullLayout)&amp;&amp;x.supplyDefaults(t);var o=i?t._fullData:t.data,s=i?t._fullLayout:t.layout,l=(t._transitionData||{})._frames;function u(t,e){if(&quot;function&quot;==typeof t)return e?&quot;_function_&quot;:null;if(c.isPlainObject(t)){var n,i={};return Object.keys(t).sort().forEach((function(a){if(-1===[&quot;_&quot;,&quot;[&quot;].indexOf(a.charAt(0)))if(&quot;function&quot;!=typeof t[a]){if(&quot;keepdata&quot;===r){if(&quot;src&quot;===a.substr(a.length-3))return}else if(&quot;keepstream&quot;===r){if(&quot;string&quot;==typeof(n=t[a+&quot;src&quot;])&amp;&amp;n.indexOf(&quot;:&quot;)&gt;0&amp;&amp;!c.isPlainObject(t.stream))return}else if(&quot;keepall&quot;!==r&amp;&amp;&quot;string&quot;==typeof(n=t[a+&quot;src&quot;])&amp;&amp;n.indexOf(&quot;:&quot;)&gt;0)return;i[a]=u(t[a],e)}else e&amp;&amp;(i[a]=&quot;_function&quot;)})),i}return Array.isArray(t)?t.map((function(t){return u(t,e)})):c.isTypedArray(t)?c.simpleMap(t,c.identity):c.isJSDate(t)?c.ms2DateTimeLocal(+t):t}var f={data:(o||[]).map((function(t){var r=u(t);return e&amp;&amp;delete r.fit,r}))};if(!e&amp;&amp;(f.layout=u(s),i)){var h=s._size;f.layout.computed={margin:{b:h.b,l:h.l,r:h.r,t:h.t}}}return t.framework&amp;&amp;t.framework.isPolar&amp;&amp;(f=t.framework.getConfig()),l&amp;&amp;(f.frames=u(l)),a&amp;&amp;(f.config=u(t._context,!0)),&quot;object&quot;===n?f:JSON.stringify(f)},x.modifyFrames=function(t,e){var r,n,i,a=t._transitionData._frames,o=t._transitionData._frameHash;for(r=0;r&lt;e.length;r++)switch((n=e[r]).type){case&quot;replace&quot;:i=n.value;var s=(a[n.index]||{}).name,l=i.name;a[n.index]=o[l]=i,l!==s&amp;&amp;(delete o[s],o[l]=i);break;case&quot;insert&quot;:o[(i=n.value).name]=i,a.splice(n.index,0,i);break;case&quot;delete&quot;:delete o[(i=a[n.index]).name],a.splice(n.index,1)}return Promise.resolve()},x.computeFrame=function(t,e){var r,n,i,a,o=t._transitionData._frameHash;if(!e)throw new Error(&quot;computeFrame must be given a string frame name&quot;);var s=o[e.toString()];if(!s)return!1;for(var l=[s],c=[s.name];s.baseframe&amp;&amp;(s=o[s.baseframe.toString()])&amp;&amp;-1===c.indexOf(s.name);)l.push(s),c.push(s.name);for(var u={};s=l.pop();)if(s.layout&amp;&amp;(u.layout=x.extendLayout(u.layout,s.layout)),s.data){if(u.data||(u.data=[]),!(n=s.traces))for(n=[],r=0;r&lt;s.data.length;r++)n[r]=r;for(u.traces||(u.traces=[]),r=0;r&lt;s.data.length;r++)null!=(i=n[r])&amp;&amp;(-1===(a=u.traces.indexOf(i))&amp;&amp;(a=u.data.length,u.traces[a]=i),u.data[a]=x.extendTrace(u.data[a],s.data[r]))}return u},x.recomputeFrameHash=function(t){for(var e=t._transitionData._frameHash={},r=t._transitionData._frames,n=0;n&lt;r.length;n++){var i=r[n];i&amp;&amp;i.name&amp;&amp;(e[i.name]=i)}},x.extendObjectWithContainers=function(t,e,r){var n,i,a,o,s,l,u,f=c.extendDeepNoArrays({},e||{}),h=c.expandObjectPaths(f),p={};if(r&amp;&amp;r.length)for(a=0;a&lt;r.length;a++)void 0===(i=(n=c.nestedProperty(h,r[a])).get())?c.nestedProperty(p,r[a]).set(null):(n.set(null),c.nestedProperty(p,r[a]).set(i));if(t=c.extendDeepNoArrays(t||{},h),r&amp;&amp;r.length)for(a=0;a&lt;r.length;a++)if(l=c.nestedProperty(p,r[a]).get()){for(u=(s=c.nestedProperty(t,r[a])).get(),Array.isArray(u)||(u=[],s.set(u)),o=0;o&lt;l.length;o++){var d=l[o];u[o]=null===d?null:x.extendObjectWithContainers(u[o],d)}s.set(u)}return t},x.dataArrayContainers=[&quot;transforms&quot;,&quot;dimensions&quot;],x.layoutArrayContainers=o.layoutArrayContainers,x.extendTrace=function(t,e){return x.extendObjectWithContainers(t,e,x.dataArrayContainers)},x.extendLayout=function(t,e){return x.extendObjectWithContainers(t,e,x.layoutArrayContainers)},x.transition=function(t,e,r,n,i,a){var o={redraw:i.redraw},s={},l=[];return o.prepareFn=function(){for(var i=Array.isArray(e)?e.length:0,a=n.slice(0,i),o=0;o&lt;a.length;o++){var u=a[o],f=t._fullData[u]._module;if(f){if(f.animatable){var h=f.basePlotModule.name;s[h]||(s[h]=[]),s[h].push(u)}t.data[a[o]]=x.extendTrace(t.data[a[o]],e[o])}}var p=c.expandObjectPaths(c.extendDeepNoArrays({},r)),d=/^[xy]axis[0-9]*$/;for(var g in p)d.test(g)&amp;&amp;delete p[g].range;x.extendLayout(t.layout,p),delete t.calcdata,x.supplyDefaults(t),x.doCalcdata(t);var m=c.expandObjectPaths(r);if(m){var v=t._fullLayout._plots;for(var y in v){var b=v[y],_=b.xaxis,w=b.yaxis,T=_.range.slice(),k=w.range.slice(),M=null,A=null,S=null,E=null;Array.isArray(m[_._name+&quot;.range&quot;])?M=m[_._name+&quot;.range&quot;].slice():Array.isArray((m[_._name]||{}).range)&amp;&amp;(M=m[_._name].range.slice()),Array.isArray(m[w._name+&quot;.range&quot;])?A=m[w._name+&quot;.range&quot;].slice():Array.isArray((m[w._name]||{}).range)&amp;&amp;(A=m[w._name].range.slice()),T&amp;&amp;M&amp;&amp;(_.r2l(T[0])!==_.r2l(M[0])||_.r2l(T[1])!==_.r2l(M[1]))&amp;&amp;(S={xr0:T,xr1:M}),k&amp;&amp;A&amp;&amp;(w.r2l(k[0])!==w.r2l(A[0])||w.r2l(k[1])!==w.r2l(A[1]))&amp;&amp;(E={yr0:k,yr1:A}),(S||E)&amp;&amp;l.push(c.extendFlat({plotinfo:b},S,E))}}return Promise.resolve()},o.runFn=function(e){var n,i,o=t._fullLayout._basePlotModules,u=l.length;if(r)for(i=0;i&lt;o.length;i++)o[i].transitionAxes&amp;&amp;o[i].transitionAxes(t,l,a,e);for(var f in u?((n=c.extendFlat({},a)).duration=0,delete s.cartesian):n=a,s){var h=s[f];t._fullData[h[0]]._module.basePlotModule.plot(t,h,n,e)}},I(t,a,o)},x.transitionFromReact=function(t,e,r,n){var i=t._fullLayout,a=i.transition,o={},s=[];return o.prepareFn=function(){var t=i._plots;for(var a in o.redraw=!1,&quot;some&quot;===e.anim&amp;&amp;(o.redraw=!0),&quot;some&quot;===r.anim&amp;&amp;(o.redraw=!0),t){var l=t[a],u=l.xaxis,f=l.yaxis,h=n[u._name].range.slice(),p=n[f._name].range.slice(),d=u.range.slice(),g=f.range.slice();u.setScale(),f.setScale();var m=null,v=null;u.r2l(h[0])===u.r2l(d[0])&amp;&amp;u.r2l(h[1])===u.r2l(d[1])||(m={xr0:h,xr1:d}),f.r2l(p[0])===f.r2l(g[0])&amp;&amp;f.r2l(p[1])===f.r2l(g[1])||(v={yr0:p,yr1:g}),(m||v)&amp;&amp;s.push(c.extendFlat({plotinfo:l},m,v))}return Promise.resolve()},o.runFn=function(r){for(var n,i,o,l=t._fullData,u=t._fullLayout._basePlotModules,f=[],h=0;h&lt;l.length;h++)f.push(h);function p(){for(var e=0;e&lt;u.length;e++)u[e].transitionAxes&amp;&amp;u[e].transitionAxes(t,s,n,r)}function d(){for(var e=0;e&lt;u.length;e++)u[e].plot(t,o,i,r)}s.length&amp;&amp;e.anim?&quot;traces first&quot;===a.ordering?(n=c.extendFlat({},a,{duration:0}),o=f,i=a,setTimeout(p,a.duration),d()):(n=a,o=null,i=c.extendFlat({},a,{duration:0}),setTimeout(d,n.duration),p()):s.length?(n=a,p()):e.anim&amp;&amp;(o=f,i=a,d())},I(t,a,o)},x.doCalcdata=function(t,e){var r,n,i,a,l=h.list(t),u=t._fullData,p=t._fullLayout,d=new Array(u.length),g=(t.calcdata||[]).slice();for(t.calcdata=d,p._numBoxes=0,p._numViolins=0,p._violinScaleGroupStats={},t._hmpixcount=0,t._hmlumcount=0,p._piecolormap={},p._sunburstcolormap={},p._treemapcolormap={},p._funnelareacolormap={},i=0;i&lt;u.length;i++)Array.isArray(e)&amp;&amp;-1===e.indexOf(i)&amp;&amp;(d[i]=g[i]);for(i=0;i&lt;u.length;i++)(r=u[i])._arrayAttrs=s.findArrayAttributes(r),r._extremes={};var m=p._subplots.polar||[];for(i=0;i&lt;m.length;i++)l.push(p[m[i]].radialaxis,p[m[i]].angularaxis);for(var v in p._colorAxes){var y=p[v];!1!==y.cauto&amp;&amp;(delete y.cmin,delete y.cmax)}var x=!1;function _(e){if(r=u[e],n=r._module,!0===r.visible&amp;&amp;r.transforms){if(n&amp;&amp;n.calc){var i=n.calc(t,r);i[0]&amp;&amp;i[0].t&amp;&amp;i[0].t._scene&amp;&amp;delete i[0].t._scene.dirty}for(a=0;a&lt;r.transforms.length;a++){var o=r.transforms[a];(n=b[o.type])&amp;&amp;n.calcTransform&amp;&amp;(r._hasCalcTransform=!0,x=!0,n.calcTransform(t,r,o))}}}function w(e,i){if(r=u[e],!!(n=r._module).isContainer===i){var o=[];if(!0===r.visible&amp;&amp;0!==r._length){delete r._indexToPoints;var s=r.transforms||[];for(a=s.length-1;a&gt;=0;a--)if(s[a].enabled){r._indexToPoints=s[a]._indexToPoints;break}n&amp;&amp;n.calc&amp;&amp;(o=n.calc(t,r))}Array.isArray(o)&amp;&amp;o[0]||(o=[{x:f,y:f}]),o[0].t||(o[0].t={}),o[0].trace=r,d[e]=o}}for(z(l,u,p),i=0;i&lt;u.length;i++)w(i,!0);for(i=0;i&lt;u.length;i++)_(i);for(x&amp;&amp;z(l,u,p),i=0;i&lt;u.length;i++)w(i,!0);for(i=0;i&lt;u.length;i++)w(i,!1);O(t);var T=function(t,e){var r,n,i,a,s,l=[];function u(t,r,n){var i=r._id.charAt(0);if(&quot;histogram2dcontour&quot;===t){var a=r._counterAxes[0],o=h.getFromId(e,a),s=&quot;x&quot;===i||&quot;x&quot;===a&amp;&amp;&quot;category&quot;===o.type,l=&quot;y&quot;===i||&quot;y&quot;===a&amp;&amp;&quot;category&quot;===o.type;return function(t,e){return 0===t||0===e||s&amp;&amp;t===n[e].length-1||l&amp;&amp;e===n.length-1?-1:(&quot;y&quot;===i?e:t)-1}}return function(t,e){return&quot;y&quot;===i?e:t}}var f={min:function(t){return c.aggNums(Math.min,null,t)},max:function(t){return c.aggNums(Math.max,null,t)},sum:function(t){return c.aggNums((function(t,e){return t+e}),null,t)},total:function(t){return c.aggNums((function(t,e){return t+e}),null,t)},mean:function(t){return c.mean(t)},median:function(t){return c.median(t)}};for(r=0;r&lt;t.length;r++){var p=t[r];if(&quot;category&quot;===p.type){var d=p.categoryorder.match(P);if(d){var g=d[1],m=d[2],v=p._id.charAt(0),y=&quot;x&quot;===v,x=[];for(n=0;n&lt;p._categories.length;n++)x.push([p._categories[n],[]]);for(n=0;n&lt;p._traceIndices.length;n++){var b=p._traceIndices[n],_=e._fullData[b];if(!0===_.visible){var w=_.type;o.traceIs(_,&quot;histogram&quot;)&amp;&amp;(delete _._xautoBinFinished,delete _._yautoBinFinished);var T=&quot;splom&quot;===w,k=&quot;scattergl&quot;===w,M=e.calcdata[b];for(i=0;i&lt;M.length;i++){var A,S,E=M[i];if(T){var C=_._axesDim[p._id];if(!y){var L=_._diag[C][0];L&amp;&amp;(p=e._fullLayout[h.id2name(L)])}var I=E.trace.dimensions[C].values;for(a=0;a&lt;I.length;a++)for(A=p._categoriesMap[I[a]],s=0;s&lt;E.trace.dimensions.length;s++)if(s!==C){var z=E.trace.dimensions[s];x[A][1].push(z.values[a])}}else if(k){for(a=0;a&lt;E.t.x.length;a++)y?(A=E.t.x[a],S=E.t.y[a]):(A=E.t.y[a],S=E.t.x[a]),x[A][1].push(S);E.t&amp;&amp;E.t._scene&amp;&amp;delete E.t._scene.dirty}else if(E.hasOwnProperty(&quot;z&quot;)){S=E.z;var O=u(_.type,p,S);for(a=0;a&lt;S.length;a++)for(s=0;s&lt;S[a].length;s++)(A=O(s,a))+1&amp;&amp;x[A][1].push(S[a][s])}else for(void 0===(A=E.p)&amp;&amp;(A=E[v]),void 0===(S=E.s)&amp;&amp;(S=E.v),void 0===S&amp;&amp;(S=y?E.y:E.x),Array.isArray(S)||(S=void 0===S?[]:[S]),a=0;a&lt;S.length;a++)x[A][1].push(S[a])}}}p._categoriesValue=x;var D=[];for(n=0;n&lt;x.length;n++)D.push([x[n][0],f[g](x[n][1])]);D.sort((function(t,e){return t[1]-e[1]})),p._categoriesAggregatedValue=D,p._initialCategories=D.map((function(t){return t[0]})),&quot;descending&quot;===m&amp;&amp;p._initialCategories.reverse(),l=l.concat(p.sortByInitialCategories())}}}return l}(l,t);if(T.length){for(p._numBoxes=0,p._numViolins=0,i=0;i&lt;T.length;i++)w(T[i],!0);for(i=0;i&lt;T.length;i++)w(T[i],!1);O(t)}o.getComponentMethod(&quot;fx&quot;,&quot;calc&quot;)(t),o.getComponentMethod(&quot;errorbars&quot;,&quot;calc&quot;)(t)};var P=/(total|sum|min|max|mean|median) (ascending|descending)/;function z(t,e,r){var n={};function i(t){t.clearCalc(),&quot;multicategory&quot;===t.type&amp;&amp;t.setupMultiCategory(e),n[t._id]=1}c.simpleMap(t,i);for(var a=r._axisMatchGroups||[],o=0;o&lt;a.length;o++)for(var s in a[o])n[s]||i(r[h.id2name(s)])}function O(t){var e,r,n,i=t._fullLayout,a=i._visibleModules,o={};for(r=0;r&lt;a.length;r++){var s=a[r],l=s.crossTraceCalc;if(l){var u=s.basePlotModule.name;o[u]?c.pushUnique(o[u],l):o[u]=[l]}}for(n in o){var f=o[n],h=i._subplots[n];if(Array.isArray(h))for(e=0;e&lt;h.length;e++){var p=h[e],d=&quot;cartesian&quot;===n?i._plots[p]:i[p];for(r=0;r&lt;f.length;r++)f[r](t,d,p)}else for(r=0;r&lt;f.length;r++)f[r](t)}}x.rehover=function(t){t._fullLayout._rehover&amp;&amp;t._fullLayout._rehover()},x.redrag=function(t){t._fullLayout._redrag&amp;&amp;t._fullLayout._redrag()},x.generalUpdatePerTraceModule=function(t,e,r,n){var i,a=e.traceHash,o={};for(i=0;i&lt;r.length;i++){var s=r[i],l=s[0].trace;l.visible&amp;&amp;(o[l.type]=o[l.type]||[],o[l.type].push(s))}for(var u in a)if(!o[u]){var f=a[u][0];f[0].trace.visible=!1,o[u]=[f]}for(var h in o){var p=o[h];p[0][0].trace._module.plot(t,e,c.filterVisible(p),n)}e.traceHash=o},x.plotBasePlot=function(t,e,r,n,i){var a=o.getModule(t),s=m(e.calcdata,a)[0];a.plot(e,s,n,i)},x.cleanBasePlot=function(t,e,r,n,i){var a=i._has&amp;&amp;i._has(t),o=r._has&amp;&amp;r._has(t);a&amp;&amp;!o&amp;&amp;i[&quot;_&quot;+t+&quot;layer&quot;].selectAll(&quot;g.trace&quot;).remove()}},{&quot;../components/color&quot;:643,&quot;../constants/numerical&quot;:753,&quot;../lib&quot;:778,&quot;../plot_api/plot_schema&quot;:816,&quot;../plot_api/plot_template&quot;:817,&quot;../plots/get_data&quot;:865,&quot;../registry&quot;:911,&quot;./animation_attributes&quot;:822,&quot;./attributes&quot;:824,&quot;./cartesian/axis_ids&quot;:831,&quot;./cartesian/handle_outline&quot;:838,&quot;./command&quot;:854,&quot;./font_attributes&quot;:856,&quot;./frame_attributes&quot;:857,&quot;./layout_attributes&quot;:882,d3:169,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],892:[function(t,e,r){&quot;use strict&quot;;e.exports={attr:&quot;subplot&quot;,name:&quot;polar&quot;,axisNames:[&quot;angularaxis&quot;,&quot;radialaxis&quot;],axisName2dataArray:{angularaxis:&quot;theta&quot;,radialaxis:&quot;r&quot;},layerNames:[&quot;draglayer&quot;,&quot;plotbg&quot;,&quot;backplot&quot;,&quot;angular-grid&quot;,&quot;radial-grid&quot;,&quot;frontplot&quot;,&quot;angular-line&quot;,&quot;radial-line&quot;,&quot;angular-axis&quot;,&quot;radial-axis&quot;],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}},{}],893:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/polygon&quot;).tester,a=n.findIndexOfMin,o=n.isAngleInsideSector,s=n.angleDelta,l=n.angleDist;function c(t,e,r,n){var i,a,o=n[0],s=n[1],l=f(Math.sin(e)-Math.sin(t)),c=f(Math.cos(e)-Math.cos(t)),u=Math.tan(r),h=f(1/u),p=l/c,d=s-p*o;return h?l&amp;&amp;c?a=u*(i=d/(u-p)):c?(i=s*h,a=s):(i=o,a=o*u):l&amp;&amp;c?(i=0,a=d):c?(i=0,a=s):i=a=NaN,[i,a]}function u(t,e,r,i){return n.isFullCircle([e,r])?function(t,e){var r,n=e.length,i=new Array(n+1);for(r=0;r&lt;n;r++){var a=e[r];i[r]=[t*Math.cos(a),t*Math.sin(a)]}return i[r]=i[0].slice(),i}(t,i):function(t,e,r,i){var s,u,f=i.length,h=[];function p(e){return[t*Math.cos(e),t*Math.sin(e)]}function d(t,e,r){return c(t,e,r,p(t))}function g(t){return n.mod(t,f)}function m(t){return o(t,[e,r])}var v=a(i,(function(t){return m(t)?l(t,e):1/0})),y=d(i[v],i[g(v-1)],e);for(h.push(y),s=v,u=0;u&lt;f;s++,u++){var x=i[g(s)];if(!m(x))break;h.push(p(x))}var b=a(i,(function(t){return m(t)?l(t,r):1/0})),_=d(i[b],i[g(b+1)],r);return h.push(_),h.push([0,0]),h.push(h[0].slice()),h}(t,e,r,i)}function f(t){return Math.abs(t)&gt;1e-10?t:0}function h(t,e,r){e=e||0,r=r||0;for(var n=t.length,i=new Array(n),a=0;a&lt;n;a++){var o=t[a];i[a]=[e+o[0],r-o[1]]}return i}e.exports={isPtInsidePolygon:function(t,e,r,n,a){if(!o(e,n))return!1;var s,l;r[0]&lt;r[1]?(s=r[0],l=r[1]):(s=r[1],l=r[0]);var c=i(u(s,n[0],n[1],a)),f=i(u(l,n[0],n[1],a)),h=[t*Math.cos(e),t*Math.sin(e)];return f.contains(h)&amp;&amp;!c.contains(h)},findPolygonOffset:function(t,e,r,n){for(var i=1/0,a=1/0,o=u(t,e,r,n),s=0;s&lt;o.length;s++){var l=o[s];i=Math.min(i,l[0]),a=Math.min(a,-l[1])}return[i,a]},findEnclosingVertexAngles:function(t,e){var r=a(e,(function(e){var r=s(e,t);return r&gt;0?r:1/0})),i=n.mod(r+1,e.length);return[e[r],e[i]]},findIntersectionXY:c,findXYatLength:function(t,e,r,n){var i=-e*r,a=e*e+1,o=2*(e*i-r),s=i*i+r*r-t*t,l=Math.sqrt(o*o-4*a*s),c=(-o+l)/(2*a),u=(-o-l)/(2*a);return[[c,e*c+i+n],[u,e*u+i+n]]},clampTiny:f,pathPolygon:function(t,e,r,n,i,a){return&quot;M&quot;+h(u(t,e,r,n),i,a).join(&quot;L&quot;)},pathPolygonAnnulus:function(t,e,r,n,i,a,o){var s,l;t&lt;e?(s=t,l=e):(s=e,l=t);var c=h(u(s,r,n,i),a,o);return&quot;M&quot;+h(u(l,r,n,i),a,o).reverse().join(&quot;L&quot;)+&quot;M&quot;+c.join(&quot;L&quot;)}}},{&quot;../../lib&quot;:778,&quot;../../lib/polygon&quot;:790}],894:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../get_data&quot;).getSubplotCalcData,i=t(&quot;../../lib&quot;).counterRegex,a=t(&quot;./polar&quot;),o=t(&quot;./constants&quot;),s=o.attr,l=o.name,c=i(l),u={};u[s]={valType:&quot;subplotid&quot;,dflt:l,editType:&quot;calc&quot;},e.exports={attr:s,name:l,idRoot:l,idRegex:c,attrRegex:c,attributes:u,layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots[l],o=0;o&lt;i.length;o++){var s=i[o],c=n(r,l,s),u=e[s]._subplot;u||(u=a(t,s),e[s]._subplot=u),u.plot(c,e,t._promises)}},clean:function(t,e,r,n){for(var i=n._subplots[l]||[],a=n._has&amp;&amp;n._has(&quot;gl&quot;),o=e._has&amp;&amp;e._has(&quot;gl&quot;),s=a&amp;&amp;!o,c=0;c&lt;i.length;c++){var u=i[c],f=n[u]._subplot;if(!e[u]&amp;&amp;f)for(var h in f.framework.remove(),f.layers[&quot;radial-axis-title&quot;].remove(),f.clipPaths)f.clipPaths[h].remove();s&amp;&amp;f._scene&amp;&amp;(f._scene.destroy(),f._scene=null)}},toSVG:t(&quot;../cartesian&quot;).toSVG}},{&quot;../../lib&quot;:778,&quot;../cartesian&quot;:841,&quot;../get_data&quot;:865,&quot;./constants&quot;:892,&quot;./layout_attributes&quot;:895,&quot;./layout_defaults&quot;:896,&quot;./polar&quot;:903}],895:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../cartesian/layout_attributes&quot;),a=t(&quot;../domain&quot;).attributes,o=t(&quot;../../lib&quot;).extendFlat,s=t(&quot;../../plot_api/edit_types&quot;).overrideAll,l=s({color:i.color,showline:o({},i.showline,{dflt:!0}),linecolor:i.linecolor,linewidth:i.linewidth,showgrid:o({},i.showgrid,{dflt:!0}),gridcolor:i.gridcolor,gridwidth:i.gridwidth},&quot;plot&quot;,&quot;from-root&quot;),c=s({tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,showtickprefix:i.showtickprefix,tickprefix:i.tickprefix,showticksuffix:i.showticksuffix,ticksuffix:i.ticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickfont:i.tickfont,tickangle:i.tickangle,tickformat:i.tickformat,tickformatstops:i.tickformatstops,layer:i.layer},&quot;plot&quot;,&quot;from-root&quot;),u={visible:o({},i.visible,{dflt:!0}),type:o({},i.type,{values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;]}),autotypenumbers:i.autotypenumbers,autorange:o({},i.autorange,{editType:&quot;plot&quot;}),rangemode:{valType:&quot;enumerated&quot;,values:[&quot;tozero&quot;,&quot;nonnegative&quot;,&quot;normal&quot;],dflt:&quot;tozero&quot;,editType:&quot;calc&quot;},range:o({},i.range,{items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],editType:&quot;plot&quot;}),categoryorder:i.categoryorder,categoryarray:i.categoryarray,angle:{valType:&quot;angle&quot;,editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;],dflt:&quot;clockwise&quot;,editType:&quot;plot&quot;},title:{text:o({},i.title.text,{editType:&quot;plot&quot;,dflt:&quot;&quot;}),font:o({},i.title.font,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},hoverformat:i.hoverformat,uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;,_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}};o(u,l,c);var f={visible:o({},i.visible,{dflt:!0}),type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;category&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;,_noTemplating:!0},autotypenumbers:i.autotypenumbers,categoryorder:i.categoryorder,categoryarray:i.categoryarray,thetaunit:{valType:&quot;enumerated&quot;,values:[&quot;radians&quot;,&quot;degrees&quot;],dflt:&quot;degrees&quot;,editType:&quot;calc&quot;},period:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0},direction:{valType:&quot;enumerated&quot;,values:[&quot;counterclockwise&quot;,&quot;clockwise&quot;],dflt:&quot;counterclockwise&quot;,editType:&quot;calc&quot;},rotation:{valType:&quot;angle&quot;,editType:&quot;calc&quot;},hoverformat:i.hoverformat,uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;};o(f,l,c),e.exports={domain:a({name:&quot;polar&quot;,editType:&quot;plot&quot;}),sector:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],dflt:[0,360],editType:&quot;plot&quot;},hole:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;plot&quot;},bgcolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;,dflt:n.background},radialaxis:u,angularaxis:f,gridshape:{valType:&quot;enumerated&quot;,values:[&quot;circular&quot;,&quot;linear&quot;],dflt:&quot;circular&quot;,editType:&quot;plot&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;../cartesian/layout_attributes&quot;:842,&quot;../domain&quot;:855}],896:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;../subplot_defaults&quot;),s=t(&quot;../get_data&quot;).getSubplotData,l=t(&quot;../cartesian/tick_value_defaults&quot;),c=t(&quot;../cartesian/tick_mark_defaults&quot;),u=t(&quot;../cartesian/tick_label_defaults&quot;),f=t(&quot;../cartesian/category_order_defaults&quot;),h=t(&quot;../cartesian/line_grid_defaults&quot;),p=t(&quot;../cartesian/axis_autotype&quot;),d=t(&quot;./layout_attributes&quot;),g=t(&quot;./set_convert&quot;),m=t(&quot;./constants&quot;),v=m.axisNames;function y(t,e,r,o){var p=r(&quot;bgcolor&quot;);o.bgColor=i.combine(p,o.paper_bgcolor);var y=r(&quot;sector&quot;);r(&quot;hole&quot;);var b,_=s(o.fullData,m.name,o.id),w=o.layoutOut;function T(t,e){return r(b+&quot;.&quot;+t,e)}for(var k=0;k&lt;v.length;k++){b=v[k],n.isPlainObject(t[b])||(t[b]={});var M=t[b],A=a.newContainer(e,b);A._id=A._name=b,A._attr=o.id+&quot;.&quot;+b,A._traceIndices=_.map((function(t){return t._expandedIndex}));var S=m.axisName2dataArray[b],E=x(M,A,T,_,S,o);f(M,A,T,{axData:_,dataAttr:S});var C,L,I=T(&quot;visible&quot;);switch(g(A,e,w),T(&quot;uirevision&quot;,e.uirevision),I&amp;&amp;(L=(C=T(&quot;color&quot;))===M.color?C:o.font.color),A._m=1,b){case&quot;radialaxis&quot;:var P=T(&quot;autorange&quot;,!A.isValidRange(M.range));M.autorange=P,!P||&quot;linear&quot;!==E&amp;&amp;&quot;-&quot;!==E||T(&quot;rangemode&quot;),&quot;reversed&quot;===P&amp;&amp;(A._m=-1),T(&quot;range&quot;),A.cleanRange(&quot;range&quot;,{dfltRange:[0,1]}),I&amp;&amp;(T(&quot;side&quot;),T(&quot;angle&quot;,y[0]),T(&quot;title.text&quot;),n.coerceFont(T,&quot;title.font&quot;,{family:o.font.family,size:Math.round(1.2*o.font.size),color:L}));break;case&quot;angularaxis&quot;:if(&quot;date&quot;===E){n.log(&quot;Polar plots do not support date angular axes yet.&quot;);for(var z=0;z&lt;_.length;z++)_[z].visible=!1;E=M.type=A.type=&quot;linear&quot;}T(&quot;linear&quot;===E?&quot;thetaunit&quot;:&quot;period&quot;);var O=T(&quot;direction&quot;);T(&quot;rotation&quot;,{counterclockwise:0,clockwise:90}[O])}if(I)l(M,A,T,A.type),u(M,A,T,A.type,{tickSuffixDflt:&quot;degrees&quot;===A.thetaunit?&quot;\xb0&quot;:void 0}),c(M,A,T,{outerTicks:!0}),T(&quot;showticklabels&quot;)&amp;&amp;(n.coerceFont(T,&quot;tickfont&quot;,{family:o.font.family,size:o.font.size,color:L}),T(&quot;tickangle&quot;),T(&quot;tickformat&quot;)),h(M,A,T,{dfltColor:C,bgColor:o.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:d[b]}),T(&quot;layer&quot;);&quot;category&quot;!==E&amp;&amp;T(&quot;hoverformat&quot;),A._input=M}&quot;category&quot;===e.angularaxis.type&amp;&amp;r(&quot;gridshape&quot;)}function x(t,e,r,n,i,a){var o=r(&quot;autotypenumbers&quot;,a.autotypenumbersDflt);if(&quot;-&quot;===r(&quot;type&quot;)){for(var s,l=0;l&lt;n.length;l++)if(n[l].visible){s=n[l];break}s&amp;&amp;s[i]&amp;&amp;(e.type=p(s[i],&quot;gregorian&quot;,{noMultiCategory:!0,autotypenumbers:o})),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:t.type=e.type}return e.type}e.exports=function(t,e,r){o(t,e,r,{type:m.name,attributes:d,handleDefaults:y,font:e.font,autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,fullData:r,layoutOut:e})}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../cartesian/axis_autotype&quot;:829,&quot;../cartesian/category_order_defaults&quot;:832,&quot;../cartesian/line_grid_defaults&quot;:844,&quot;../cartesian/tick_label_defaults&quot;:849,&quot;../cartesian/tick_mark_defaults&quot;:850,&quot;../cartesian/tick_value_defaults&quot;:851,&quot;../get_data&quot;:865,&quot;../subplot_defaults&quot;:905,&quot;./constants&quot;:892,&quot;./layout_attributes&quot;:895,&quot;./set_convert&quot;:904}],897:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../traces/scatter/attributes&quot;),i=n.marker,a=t(&quot;../../../lib/extend&quot;).extendFlat;[&quot;Area traces are deprecated!&quot;,&quot;Please switch to the *barpolar* trace type.&quot;].join(&quot; &quot;);e.exports={r:a({},n.r,{}),t:a({},n.t,{}),marker:{color:a({},i.color,{}),size:a({},i.size,{}),symbol:a({},i.symbol,{}),opacity:a({},i.opacity,{}),editType:&quot;calc&quot;}}},{&quot;../../../lib/extend&quot;:768,&quot;../../../traces/scatter/attributes&quot;:1187}],898:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../cartesian/layout_attributes&quot;),i=t(&quot;../../../lib/extend&quot;).extendFlat,a=t(&quot;../../../plot_api/edit_types&quot;).overrideAll,o=[&quot;Legacy polar charts are deprecated!&quot;,&quot;Please switch to *polar* subplots.&quot;].join(&quot; &quot;),s=i({},n.domain,{});function l(t,e){return i({},e,{showline:{valType:&quot;boolean&quot;},showticklabels:{valType:&quot;boolean&quot;},tickorientation:{valType:&quot;enumerated&quot;,values:[&quot;horizontal&quot;,&quot;vertical&quot;]},ticklen:{valType:&quot;number&quot;,min:0},tickcolor:{valType:&quot;color&quot;},ticksuffix:{valType:&quot;string&quot;},endpadding:{valType:&quot;number&quot;,description:o},visible:{valType:&quot;boolean&quot;}})}e.exports=a({radialaxis:l(0,{range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},domain:s,orientation:{valType:&quot;number&quot;}}),angularaxis:l(0,{range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,dflt:0},{valType:&quot;number&quot;,dflt:360}]},domain:s}),layout:{direction:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;]},orientation:{valType:&quot;angle&quot;}}},&quot;plot&quot;,&quot;nested&quot;)},{&quot;../../../lib/extend&quot;:768,&quot;../../../plot_api/edit_types&quot;:810,&quot;../../cartesian/layout_attributes&quot;:842}],899:[function(t,e,r){&quot;use strict&quot;;(e.exports=t(&quot;./micropolar&quot;)).manager=t(&quot;./micropolar_manager&quot;)},{&quot;./micropolar&quot;:900,&quot;./micropolar_manager&quot;:901}],900:[function(t,e,r){var n=t(&quot;d3&quot;),i=t(&quot;../../../lib&quot;).extendDeepAll,a=t(&quot;../../../constants/alignment&quot;).MID_SHIFT,o=e.exports={version:&quot;0.2.2&quot;};o.Axis=function(){var t,e,r,s,l={data:[],layout:{}},c={},u={},f=n.dispatch(&quot;hover&quot;),h={};return h.render=function(c){return function(c){e=c||e;var f=l.data,h=l.layout;(&quot;string&quot;==typeof e||e.nodeName)&amp;&amp;(e=n.select(e)),e.datum(f).each((function(e,l){var c=e.slice();u={data:o.util.cloneJson(c),layout:o.util.cloneJson(h)};var f=0;c.forEach((function(t,e){t.color||(t.color=h.defaultColorRange[f],f=(f+1)%h.defaultColorRange.length),t.strokeColor||(t.strokeColor=&quot;LinePlot&quot;===t.geometry?t.color:n.rgb(t.color).darker().toString()),u.data[e].color=t.color,u.data[e].strokeColor=t.strokeColor,u.data[e].strokeDash=t.strokeDash,u.data[e].strokeSize=t.strokeSize}));var p=c.filter((function(t,e){var r=t.visible;return&quot;undefined&quot;==typeof r||!0===r})),d=!1,g=p.map((function(t,e){return d=d||&quot;undefined&quot;!=typeof t.groupId,t}));if(d){var m=n.nest().key((function(t,e){return&quot;undefined&quot;!=typeof t.groupId?t.groupId:&quot;unstacked&quot;})).entries(g),v=[],y=m.map((function(t,e){if(&quot;unstacked&quot;===t.key)return t.values;var r=t.values[0].r.map((function(t,e){return 0}));return t.values.forEach((function(t,e,n){t.yStack=[r],v.push(r),r=o.util.sumArrays(t.r,r)})),t.values}));p=n.merge(y)}p.forEach((function(t,e){t.t=Array.isArray(t.t[0])?t.t:[t.t],t.r=Array.isArray(t.r[0])?t.r:[t.r]}));var x=Math.min(h.width-h.margin.left-h.margin.right,h.height-h.margin.top-h.margin.bottom)/2;x=Math.max(10,x);var b,_=[h.margin.left+x,h.margin.top+x];d?b=[0,n.max(o.util.sumArrays(o.util.arrayLast(p).r[0],o.util.arrayLast(v)))]:b=n.extent(o.util.flattenArray(p.map((function(t,e){return t.r}))));h.radialAxis.domain!=o.DATAEXTENT&amp;&amp;(b[0]=0),r=n.scale.linear().domain(h.radialAxis.domain!=o.DATAEXTENT&amp;&amp;h.radialAxis.domain?h.radialAxis.domain:b).range([0,x]),u.layout.radialAxis.domain=r.domain();var w,T=o.util.flattenArray(p.map((function(t,e){return t.t}))),k=&quot;string&quot;==typeof T[0];k&amp;&amp;(T=o.util.deduplicate(T),w=T.slice(),T=n.range(T.length),p=p.map((function(t,e){var r=t;return t.t=[T],d&amp;&amp;(r.yStack=t.yStack),r})));var M=p.filter((function(t,e){return&quot;LinePlot&quot;===t.geometry||&quot;DotPlot&quot;===t.geometry})).length===p.length,A=null===h.needsEndSpacing?k||!M:h.needsEndSpacing,S=h.angularAxis.domain&amp;&amp;h.angularAxis.domain!=o.DATAEXTENT&amp;&amp;!k&amp;&amp;h.angularAxis.domain[0]&gt;=0?h.angularAxis.domain:n.extent(T),E=Math.abs(T[1]-T[0]);M&amp;&amp;!k&amp;&amp;(E=0);var C=S.slice();A&amp;&amp;k&amp;&amp;(C[1]+=E);var L=h.angularAxis.ticksCount||4;L&gt;8&amp;&amp;(L=L/(L/8)+L%8),h.angularAxis.ticksStep&amp;&amp;(L=(C[1]-C[0])/L);var I=h.angularAxis.ticksStep||(C[1]-C[0])/(L*(h.minorTicks+1));w&amp;&amp;(I=Math.max(Math.round(I),1)),C[2]||(C[2]=I);var P=n.range.apply(this,C);if(P=P.map((function(t,e){return parseFloat(t.toPrecision(12))})),s=n.scale.linear().domain(C.slice(0,2)).range(&quot;clockwise&quot;===h.direction?[0,360]:[360,0]),u.layout.angularAxis.domain=s.domain(),u.layout.angularAxis.endPadding=A?E:0,&quot;undefined&quot;==typeof(t=n.select(this).select(&quot;svg.chart-root&quot;))||t.empty()){var z=(new DOMParser).parseFromString(&quot;&lt;svg xmlns='http://www.w3.org/2000/svg' class='chart-root'&gt;' + '&lt;g class='outer-group'&gt;' + '&lt;g class='chart-group'&gt;' + '&lt;circle class='background-circle'&gt;&lt;/circle&gt;' + '&lt;g class='geometry-group'&gt;&lt;/g&gt;' + '&lt;g class='radial axis-group'&gt;' + '&lt;circle class='outside-circle'&gt;&lt;/circle&gt;' + '&lt;/g&gt;' + '&lt;g class='angular axis-group'&gt;&lt;/g&gt;' + '&lt;g class='guides-group'&gt;&lt;line&gt;&lt;/line&gt;&lt;circle r='0'&gt;&lt;/circle&gt;&lt;/g&gt;' + '&lt;/g&gt;' + '&lt;g class='legend-group'&gt;&lt;/g&gt;' + '&lt;g class='tooltips-group'&gt;&lt;/g&gt;' + '&lt;g class='title-group'&gt;&lt;text&gt;&lt;/text&gt;&lt;/g&gt;' + '&lt;/g&gt;' + '&lt;/svg&gt;&quot;,&quot;application/xml&quot;),O=this.appendChild(this.ownerDocument.importNode(z.documentElement,!0));t=n.select(O)}t.select(&quot;.guides-group&quot;).style({&quot;pointer-events&quot;:&quot;none&quot;}),t.select(&quot;.angular.axis-group&quot;).style({&quot;pointer-events&quot;:&quot;none&quot;}),t.select(&quot;.radial.axis-group&quot;).style({&quot;pointer-events&quot;:&quot;none&quot;});var D,R=t.select(&quot;.chart-group&quot;),F={fill:&quot;none&quot;,stroke:h.tickColor},B={&quot;font-size&quot;:h.font.size,&quot;font-family&quot;:h.font.family,fill:h.font.color,&quot;text-shadow&quot;:[&quot;-1px 0px&quot;,&quot;1px -1px&quot;,&quot;-1px 1px&quot;,&quot;1px 1px&quot;].map((function(t,e){return&quot; &quot;+t+&quot; 0 &quot;+h.font.outlineColor})).join(&quot;,&quot;)};if(h.showLegend){D=t.select(&quot;.legend-group&quot;).attr({transform:&quot;translate(&quot;+[x,h.margin.top]+&quot;)&quot;}).style({display:&quot;block&quot;});var N=p.map((function(t,e){var r=o.util.cloneJson(t);return r.symbol=&quot;DotPlot&quot;===t.geometry?t.dotType||&quot;circle&quot;:&quot;LinePlot&quot;!=t.geometry?&quot;square&quot;:&quot;line&quot;,r.visibleInLegend=&quot;undefined&quot;==typeof t.visibleInLegend||t.visibleInLegend,r.color=&quot;LinePlot&quot;===t.geometry?t.strokeColor:t.color,r}));o.Legend().config({data:p.map((function(t,e){return t.name||&quot;Element&quot;+e})),legendConfig:i({},o.Legend.defaultConfig().legendConfig,{container:D,elements:N,reverseOrder:h.legend.reverseOrder})})();var j=D.node().getBBox();x=Math.min(h.width-j.width-h.margin.left-h.margin.right,h.height-h.margin.top-h.margin.bottom)/2,x=Math.max(10,x),_=[h.margin.left+x,h.margin.top+x],r.range([0,x]),u.layout.radialAxis.domain=r.domain(),D.attr(&quot;transform&quot;,&quot;translate(&quot;+[_[0]+x,_[1]-x]+&quot;)&quot;)}else D=t.select(&quot;.legend-group&quot;).style({display:&quot;none&quot;});t.attr({width:h.width,height:h.height}).style({opacity:h.opacity}),R.attr(&quot;transform&quot;,&quot;translate(&quot;+_+&quot;)&quot;).style({cursor:&quot;crosshair&quot;});var U=[(h.width-(h.margin.left+h.margin.right+2*x+(j?j.width:0)))/2,(h.height-(h.margin.top+h.margin.bottom+2*x))/2];if(U[0]=Math.max(0,U[0]),U[1]=Math.max(0,U[1]),t.select(&quot;.outer-group&quot;).attr(&quot;transform&quot;,&quot;translate(&quot;+U+&quot;)&quot;),h.title&amp;&amp;h.title.text){var V=t.select(&quot;g.title-group text&quot;).style(B).text(h.title.text),q=V.node().getBBox();V.attr({x:_[0]-q.width/2,y:_[1]-x-20})}var H=t.select(&quot;.radial.axis-group&quot;);if(h.radialAxis.gridLinesVisible){var G=H.selectAll(&quot;circle.grid-circle&quot;).data(r.ticks(5));G.enter().append(&quot;circle&quot;).attr({class:&quot;grid-circle&quot;}).style(F),G.attr(&quot;r&quot;,r),G.exit().remove()}H.select(&quot;circle.outside-circle&quot;).attr({r:x}).style(F);var Y=t.select(&quot;circle.background-circle&quot;).attr({r:x}).style({fill:h.backgroundColor,stroke:h.stroke});function W(t,e){return s(t)%360+h.orientation}if(h.radialAxis.visible){var X=n.svg.axis().scale(r).ticks(5).tickSize(5);H.call(X).attr({transform:&quot;rotate(&quot;+h.radialAxis.orientation+&quot;)&quot;}),H.selectAll(&quot;.domain&quot;).style(F),H.selectAll(&quot;g&gt;text&quot;).text((function(t,e){return this.textContent+h.radialAxis.ticksSuffix})).style(B).style({&quot;text-anchor&quot;:&quot;start&quot;}).attr({x:0,y:0,dx:0,dy:0,transform:function(t,e){return&quot;horizontal&quot;===h.radialAxis.tickOrientation?&quot;rotate(&quot;+-h.radialAxis.orientation+&quot;) translate(&quot;+[0,B[&quot;font-size&quot;]]+&quot;)&quot;:&quot;translate(&quot;+[0,B[&quot;font-size&quot;]]+&quot;)&quot;}}),H.selectAll(&quot;g&gt;line&quot;).style({stroke:&quot;black&quot;})}var Z=t.select(&quot;.angular.axis-group&quot;).selectAll(&quot;g.angular-tick&quot;).data(P),J=Z.enter().append(&quot;g&quot;).classed(&quot;angular-tick&quot;,!0);Z.attr({transform:function(t,e){return&quot;rotate(&quot;+W(t)+&quot;)&quot;}}).style({display:h.angularAxis.visible?&quot;block&quot;:&quot;none&quot;}),Z.exit().remove(),J.append(&quot;line&quot;).classed(&quot;grid-line&quot;,!0).classed(&quot;major&quot;,(function(t,e){return e%(h.minorTicks+1)==0})).classed(&quot;minor&quot;,(function(t,e){return!(e%(h.minorTicks+1)==0)})).style(F),J.selectAll(&quot;.minor&quot;).style({stroke:h.minorTickColor}),Z.select(&quot;line.grid-line&quot;).attr({x1:h.tickLength?x-h.tickLength:0,x2:x}).style({display:h.angularAxis.gridLinesVisible?&quot;block&quot;:&quot;none&quot;}),J.append(&quot;text&quot;).classed(&quot;axis-text&quot;,!0).style(B);var K=Z.select(&quot;text.axis-text&quot;).attr({x:x+h.labelOffset,dy:a+&quot;em&quot;,transform:function(t,e){var r=W(t),n=x+h.labelOffset,i=h.angularAxis.tickOrientation;return&quot;horizontal&quot;==i?&quot;rotate(&quot;+-r+&quot; &quot;+n+&quot; 0)&quot;:&quot;radial&quot;==i?r&lt;270&amp;&amp;r&gt;90?&quot;rotate(180 &quot;+n+&quot; 0)&quot;:null:&quot;rotate(&quot;+(r&lt;=180&amp;&amp;r&gt;0?-90:90)+&quot; &quot;+n+&quot; 0)&quot;}}).style({&quot;text-anchor&quot;:&quot;middle&quot;,display:h.angularAxis.labelsVisible?&quot;block&quot;:&quot;none&quot;}).text((function(t,e){return e%(h.minorTicks+1)!=0?&quot;&quot;:w?w[t]+h.angularAxis.ticksSuffix:t+h.angularAxis.ticksSuffix})).style(B);h.angularAxis.rewriteTicks&amp;&amp;K.text((function(t,e){return e%(h.minorTicks+1)!=0?&quot;&quot;:h.angularAxis.rewriteTicks(this.textContent,e)}));var Q=n.max(R.selectAll(&quot;.angular-tick text&quot;)[0].map((function(t,e){return t.getCTM().e+t.getBBox().width})));D.attr({transform:&quot;translate(&quot;+[x+Q,h.margin.top]+&quot;)&quot;});var $=t.select(&quot;g.geometry-group&quot;).selectAll(&quot;g&quot;).size()&gt;0,tt=t.select(&quot;g.geometry-group&quot;).selectAll(&quot;g.geometry&quot;).data(p);if(tt.enter().append(&quot;g&quot;).attr({class:function(t,e){return&quot;geometry geometry&quot;+e}}),tt.exit().remove(),p[0]||$){var et=[];p.forEach((function(t,e){var n={};n.radialScale=r,n.angularScale=s,n.container=tt.filter((function(t,r){return r==e})),n.geometry=t.geometry,n.orientation=h.orientation,n.direction=h.direction,n.index=e,et.push({data:t,geometryConfig:n})}));var rt=n.nest().key((function(t,e){return&quot;undefined&quot;!=typeof t.data.groupId||&quot;unstacked&quot;})).entries(et),nt=[];rt.forEach((function(t,e){&quot;unstacked&quot;===t.key?nt=nt.concat(t.values.map((function(t,e){return[t]}))):nt.push(t.values)})),nt.forEach((function(t,e){var r;r=Array.isArray(t)?t[0].geometryConfig.geometry:t.geometryConfig.geometry;var n=t.map((function(t,e){return i(o[r].defaultConfig(),t)}));o[r]().config(n)()}))}var it,at,ot=t.select(&quot;.guides-group&quot;),st=t.select(&quot;.tooltips-group&quot;),lt=o.tooltipPanel().config({container:st,fontSize:8})(),ct=o.tooltipPanel().config({container:st,fontSize:8})(),ut=o.tooltipPanel().config({container:st,hasTick:!0})();if(!k){var ft=ot.select(&quot;line&quot;).attr({x1:0,y1:0,y2:0}).style({stroke:&quot;grey&quot;,&quot;pointer-events&quot;:&quot;none&quot;});R.on(&quot;mousemove.angular-guide&quot;,(function(t,e){var r=o.util.getMousePos(Y).angle;ft.attr({x2:-x,transform:&quot;rotate(&quot;+r+&quot;)&quot;}).style({opacity:.5});var n=(r+180+360-h.orientation)%360;it=s.invert(n);var i=o.util.convertToCartesian(x+12,r+180);lt.text(o.util.round(it)).move([i[0]+_[0],i[1]+_[1]])})).on(&quot;mouseout.angular-guide&quot;,(function(t,e){ot.select(&quot;line&quot;).style({opacity:0})}))}var ht=ot.select(&quot;circle&quot;).style({stroke:&quot;grey&quot;,fill:&quot;none&quot;});R.on(&quot;mousemove.radial-guide&quot;,(function(t,e){var n=o.util.getMousePos(Y).radius;ht.attr({r:n}).style({opacity:.5}),at=r.invert(o.util.getMousePos(Y).radius);var i=o.util.convertToCartesian(n,h.radialAxis.orientation);ct.text(o.util.round(at)).move([i[0]+_[0],i[1]+_[1]])})).on(&quot;mouseout.radial-guide&quot;,(function(t,e){ht.style({opacity:0}),ut.hide(),lt.hide(),ct.hide()})),t.selectAll(&quot;.geometry-group .mark&quot;).on(&quot;mouseover.tooltip&quot;,(function(e,r){var i=n.select(this),a=this.style.fill,s=&quot;black&quot;,l=this.style.opacity||1;if(i.attr({&quot;data-opacity&quot;:l}),a&amp;&amp;&quot;none&quot;!==a){i.attr({&quot;data-fill&quot;:a}),s=n.hsl(a).darker().toString(),i.style({fill:s,opacity:1});var c={t:o.util.round(e[0]),r:o.util.round(e[1])};k&amp;&amp;(c.t=w[e[0]]);var u=&quot;t: &quot;+c.t+&quot;, r: &quot;+c.r,f=this.getBoundingClientRect(),h=t.node().getBoundingClientRect(),p=[f.left+f.width/2-U[0]-h.left,f.top+f.height/2-U[1]-h.top];ut.config({color:s}).text(u),ut.move(p)}else a=this.style.stroke||&quot;black&quot;,i.attr({&quot;data-stroke&quot;:a}),s=n.hsl(a).darker().toString(),i.style({stroke:s,opacity:1})})).on(&quot;mousemove.tooltip&quot;,(function(t,e){if(0!=n.event.which)return!1;n.select(this).attr(&quot;data-fill&quot;)&amp;&amp;ut.show()})).on(&quot;mouseout.tooltip&quot;,(function(t,e){ut.hide();var r=n.select(this),i=r.attr(&quot;data-fill&quot;);i?r.style({fill:i,opacity:r.attr(&quot;data-opacity&quot;)}):r.style({stroke:r.attr(&quot;data-stroke&quot;),opacity:r.attr(&quot;data-opacity&quot;)})}))}))}(c),this},h.config=function(t){if(!arguments.length)return l;var e=o.util.cloneJson(t);return e.data.forEach((function(t,e){l.data[e]||(l.data[e]={}),i(l.data[e],o.Axis.defaultConfig().data[0]),i(l.data[e],t)})),i(l.layout,o.Axis.defaultConfig().layout),i(l.layout,e.layout),this},h.getLiveConfig=function(){return u},h.getinputConfig=function(){return c},h.radialScale=function(t){return r},h.angularScale=function(t){return s},h.svg=function(){return t},n.rebind(h,f,&quot;on&quot;),h},o.Axis.defaultConfig=function(t,e){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:&quot;Line1&quot;,geometry:&quot;LinePlot&quot;,color:null,strokeDash:&quot;solid&quot;,strokeColor:null,strokeSize:&quot;1&quot;,visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:n.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:&quot;gray&quot;,outlineColor:&quot;white&quot;,family:&quot;Tahoma, sans-serif&quot;},direction:&quot;clockwise&quot;,orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:&quot;&quot;,visible:!0,gridLinesVisible:!0,tickOrientation:&quot;horizontal&quot;,rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:&quot;&quot;,visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:&quot;horizontal&quot;,rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:&quot;silver&quot;,minorTickColor:&quot;#eee&quot;,backgroundColor:&quot;none&quot;,needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},o.util={},o.DATAEXTENT=&quot;dataExtent&quot;,o.AREA=&quot;AreaChart&quot;,o.LINE=&quot;LinePlot&quot;,o.DOT=&quot;DotPlot&quot;,o.BAR=&quot;BarChart&quot;,o.util._override=function(t,e){for(var r in t)r in e&amp;&amp;(e[r]=t[r])},o.util._extend=function(t,e){for(var r in t)e[r]=t[r]},o.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},o.util.dataFromEquation2=function(t,e){var r=e||6;return n.range(0,360+r,r).map((function(e,r){var n=e*Math.PI/180;return[e,t(n)]}))},o.util.dataFromEquation=function(t,e,r){var i=e||6,a=[],o=[];n.range(0,360+i,i).forEach((function(e,r){var n=e*Math.PI/180,i=t(n);a.push(e),o.push(i)}));var s={t:a,r:o};return r&amp;&amp;(s.name=r),s},o.util.ensureArray=function(t,e){if(&quot;undefined&quot;==typeof t)return null;var r=[].concat(t);return n.range(e).map((function(t,e){return r[e]||r[0]}))},o.util.fillArrays=function(t,e,r){return e.forEach((function(e,n){t[e]=o.util.ensureArray(t[e],r)})),t},o.util.cloneJson=function(t){return JSON.parse(JSON.stringify(t))},o.util.validateKeys=function(t,e){&quot;string&quot;==typeof e&amp;&amp;(e=e.split(&quot;.&quot;));var r=e.shift();return t[r]&amp;&amp;(!e.length||objHasKeys(t[r],e))},o.util.sumArrays=function(t,e){return n.zip(t,e).map((function(t,e){return n.sum(t)}))},o.util.arrayLast=function(t){return t[t.length-1]},o.util.arrayEqual=function(t,e){for(var r=Math.max(t.length,e.length,1);r-- &gt;=0&amp;&amp;t[r]===e[r];);return-2===r},o.util.flattenArray=function(t){for(var e=[];!o.util.arrayEqual(e,t);)e=t,t=[].concat.apply([],t);return t},o.util.deduplicate=function(t){return t.filter((function(t,e,r){return r.indexOf(t)==e}))},o.util.convertToCartesian=function(t,e){var r=e*Math.PI/180;return[t*Math.cos(r),t*Math.sin(r)]},o.util.round=function(t,e){var r=e||2,n=Math.pow(10,r);return Math.round(t*n)/n},o.util.getMousePos=function(t){var e=n.mouse(t.node()),r=e[0],i=e[1],a={};return a.x=r,a.y=i,a.pos=e,a.angle=180*(Math.atan2(i,r)+Math.PI)/Math.PI,a.radius=Math.sqrt(r*r+i*i),a},o.util.duplicatesCount=function(t){for(var e,r={},n={},i=0,a=t.length;i&lt;a;i++)(e=t[i])in r?(r[e]++,n[e]=r[e]):r[e]=1;return n},o.util.duplicates=function(t){return Object.keys(o.util.duplicatesCount(t))},o.util.translator=function(t,e,r,n){if(n){var i=r.slice();r=e,e=i}var a=e.reduce((function(t,e){if(&quot;undefined&quot;!=typeof t)return t[e]}),t);&quot;undefined&quot;!=typeof a&amp;&amp;(e.reduce((function(t,r,n){if(&quot;undefined&quot;!=typeof t)return n===e.length-1&amp;&amp;delete t[r],t[r]}),t),r.reduce((function(t,e,n){return&quot;undefined&quot;==typeof t[e]&amp;&amp;(t[e]={}),n===r.length-1&amp;&amp;(t[e]=a),t[e]}),t))},o.PolyChart=function(){var t=[o.PolyChart.defaultConfig()],e=n.dispatch(&quot;hover&quot;),r={solid:&quot;none&quot;,dash:[5,2],dot:[2,5]};function a(){var e=t[0].geometryConfig,i=e.container;&quot;string&quot;==typeof i&amp;&amp;(i=n.select(i)),i.datum(t).each((function(t,i){var a=!!t[0].data.yStack,o=t.map((function(t,e){return a?n.zip(t.data.t[0],t.data.r[0],t.data.yStack[0]):n.zip(t.data.t[0],t.data.r[0])})),s=e.angularScale,l=e.radialScale.domain()[0],c={bar:function(r,i,a){var o=t[a].data,l=e.radialScale(r[1])-e.radialScale(0),c=e.radialScale(r[2]||0),u=o.barWidth;n.select(this).attr({class:&quot;mark bar&quot;,d:&quot;M&quot;+[[l+c,-u/2],[l+c,u/2],[c,u/2],[c,-u/2]].join(&quot;L&quot;)+&quot;Z&quot;,transform:function(t,r){return&quot;rotate(&quot;+(e.orientation+s(t[0]))+&quot;)&quot;}})}};c.dot=function(r,i,a){var o=r[2]?[r[0],r[1]+r[2]]:r,s=n.svg.symbol().size(t[a].data.dotSize).type(t[a].data.dotType)(r,i);n.select(this).attr({class:&quot;mark dot&quot;,d:s,transform:function(t,r){var n,i,a,s=(n=function(t,r){var n=e.radialScale(t[1]),i=(e.angularScale(t[0])+e.orientation)*Math.PI/180;return{r:n,t:i}}(o),i=n.r*Math.cos(n.t),a=n.r*Math.sin(n.t),{x:i,y:a});return&quot;translate(&quot;+[s.x,s.y]+&quot;)&quot;}})};var u=n.svg.line.radial().interpolate(t[0].data.lineInterpolation).radius((function(t){return e.radialScale(t[1])})).angle((function(t){return e.angularScale(t[0])*Math.PI/180}));c.line=function(r,i,a){var s=r[2]?o[a].map((function(t,e){return[t[0],t[1]+t[2]]})):o[a];if(n.select(this).each(c.dot).style({opacity:function(e,r){return+t[a].data.dotVisible},fill:d.stroke(r,i,a)}).attr({class:&quot;mark dot&quot;}),!(i&gt;0)){var l=n.select(this.parentNode).selectAll(&quot;path.line&quot;).data([0]);l.enter().insert(&quot;path&quot;),l.attr({class:&quot;line&quot;,d:u(s),transform:function(t,r){return&quot;rotate(&quot;+(e.orientation+90)+&quot;)&quot;},&quot;pointer-events&quot;:&quot;none&quot;}).style({fill:function(t,e){return d.fill(r,i,a)},&quot;fill-opacity&quot;:0,stroke:function(t,e){return d.stroke(r,i,a)},&quot;stroke-width&quot;:function(t,e){return d[&quot;stroke-width&quot;](r,i,a)},&quot;stroke-dasharray&quot;:function(t,e){return d[&quot;stroke-dasharray&quot;](r,i,a)},opacity:function(t,e){return d.opacity(r,i,a)},display:function(t,e){return d.display(r,i,a)}})}};var f=e.angularScale.range(),h=Math.abs(f[1]-f[0])/o[0].length*Math.PI/180,p=n.svg.arc().startAngle((function(t){return-h/2})).endAngle((function(t){return h/2})).innerRadius((function(t){return e.radialScale(l+(t[2]||0))})).outerRadius((function(t){return e.radialScale(l+(t[2]||0))+e.radialScale(t[1])}));c.arc=function(t,r,i){n.select(this).attr({class:&quot;mark arc&quot;,d:p,transform:function(t,r){return&quot;rotate(&quot;+(e.orientation+s(t[0])+90)+&quot;)&quot;}})};var d={fill:function(e,r,n){return t[n].data.color},stroke:function(e,r,n){return t[n].data.strokeColor},&quot;stroke-width&quot;:function(e,r,n){return t[n].data.strokeSize+&quot;px&quot;},&quot;stroke-dasharray&quot;:function(e,n,i){return r[t[i].data.strokeDash]},opacity:function(e,r,n){return t[n].data.opacity},display:function(e,r,n){return&quot;undefined&quot;==typeof t[n].data.visible||t[n].data.visible?&quot;block&quot;:&quot;none&quot;}},g=n.select(this).selectAll(&quot;g.layer&quot;).data(o);g.enter().append(&quot;g&quot;).attr({class:&quot;layer&quot;});var m=g.selectAll(&quot;path.mark&quot;).data((function(t,e){return t}));m.enter().append(&quot;path&quot;).attr({class:&quot;mark&quot;}),m.style(d).each(c[e.geometryType]),m.exit().remove(),g.exit().remove()}))}return a.config=function(e){return arguments.length?(e.forEach((function(e,r){t[r]||(t[r]={}),i(t[r],o.PolyChart.defaultConfig()),i(t[r],e)})),this):t},a.getColorScale=function(){},n.rebind(a,e,&quot;on&quot;),a},o.PolyChart.defaultConfig=function(){return{data:{name:&quot;geom1&quot;,t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:&quot;circle&quot;,dotSize:64,dotVisible:!1,barWidth:20,color:&quot;#ffa500&quot;,strokeSize:1,strokeColor:&quot;silver&quot;,strokeDash:&quot;solid&quot;,opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:&quot;LinePlot&quot;,geometryType:&quot;arc&quot;,direction:&quot;clockwise&quot;,orientation:0,container:&quot;body&quot;,radialScale:null,angularScale:null,colorScale:n.scale.category20()}}},o.BarChart=function(){return o.PolyChart()},o.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;bar&quot;}}},o.AreaChart=function(){return o.PolyChart()},o.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;arc&quot;}}},o.DotPlot=function(){return o.PolyChart()},o.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;dot&quot;,dotType:&quot;circle&quot;}}},o.LinePlot=function(){return o.PolyChart()},o.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;line&quot;}}},o.Legend=function(){var t=o.Legend.defaultConfig(),e=n.dispatch(&quot;hover&quot;);function r(){var e=t.legendConfig,a=t.data.map((function(t,r){return[].concat(t).map((function(t,n){var a=i({},e.elements[r]);return a.name=t,a.color=[].concat(e.elements[r].color)[n],a}))})),o=n.merge(a);o=o.filter((function(t,r){return e.elements[r]&amp;&amp;(e.elements[r].visibleInLegend||&quot;undefined&quot;==typeof e.elements[r].visibleInLegend)})),e.reverseOrder&amp;&amp;(o=o.reverse());var s=e.container;(&quot;string&quot;==typeof s||s.nodeName)&amp;&amp;(s=n.select(s));var l=o.map((function(t,e){return t.color})),c=e.fontSize,u=null==e.isContinuous?&quot;number&quot;==typeof o[0]:e.isContinuous,f=u?e.height:c*o.length,h=s.classed(&quot;legend-group&quot;,!0).selectAll(&quot;svg&quot;).data([0]),p=h.enter().append(&quot;svg&quot;).attr({width:300,height:f+c,xmlns:&quot;http://www.w3.org/2000/svg&quot;,&quot;xmlns:xlink&quot;:&quot;http://www.w3.org/1999/xlink&quot;,version:&quot;1.1&quot;});p.append(&quot;g&quot;).classed(&quot;legend-axis&quot;,!0),p.append(&quot;g&quot;).classed(&quot;legend-marks&quot;,!0);var d=n.range(o.length),g=n.scale[u?&quot;linear&quot;:&quot;ordinal&quot;]().domain(d).range(l),m=n.scale[u?&quot;linear&quot;:&quot;ordinal&quot;]().domain(d)[u?&quot;range&quot;:&quot;rangePoints&quot;]([0,f]);if(u){var v=h.select(&quot;.legend-marks&quot;).append(&quot;defs&quot;).append(&quot;linearGradient&quot;).attr({id:&quot;grad1&quot;,x1:&quot;0%&quot;,y1:&quot;0%&quot;,x2:&quot;0%&quot;,y2:&quot;100%&quot;}).selectAll(&quot;stop&quot;).data(l);v.enter().append(&quot;stop&quot;),v.attr({offset:function(t,e){return e/(l.length-1)*100+&quot;%&quot;}}).style({&quot;stop-color&quot;:function(t,e){return t}}),h.append(&quot;rect&quot;).classed(&quot;legend-mark&quot;,!0).attr({height:e.height,width:e.colorBandWidth,fill:&quot;url(#grad1)&quot;})}else{var y=h.select(&quot;.legend-marks&quot;).selectAll(&quot;path.legend-mark&quot;).data(o);y.enter().append(&quot;path&quot;).classed(&quot;legend-mark&quot;,!0),y.attr({transform:function(t,e){return&quot;translate(&quot;+[c/2,m(e)+c/2]+&quot;)&quot;},d:function(t,e){var r,i,a,o=t.symbol;return a=3*(i=c),&quot;line&quot;===(r=o)?&quot;M&quot;+[[-i/2,-i/12],[i/2,-i/12],[i/2,i/12],[-i/2,i/12]]+&quot;Z&quot;:-1!=n.svg.symbolTypes.indexOf(r)?n.svg.symbol().type(r).size(a)():n.svg.symbol().type(&quot;square&quot;).size(a)()},fill:function(t,e){return g(e)}}),y.exit().remove()}var x=n.svg.axis().scale(m).orient(&quot;right&quot;),b=h.select(&quot;g.legend-axis&quot;).attr({transform:&quot;translate(&quot;+[u?e.colorBandWidth:c,c/2]+&quot;)&quot;}).call(x);return b.selectAll(&quot;.domain&quot;).style({fill:&quot;none&quot;,stroke:&quot;none&quot;}),b.selectAll(&quot;line&quot;).style({fill:&quot;none&quot;,stroke:u?e.textColor:&quot;none&quot;}),b.selectAll(&quot;text&quot;).style({fill:e.textColor,&quot;font-size&quot;:e.fontSize}).text((function(t,e){return o[e].name})),r}return r.config=function(e){return arguments.length?(i(t,e),this):t},n.rebind(r,e,&quot;on&quot;),r},o.Legend.defaultConfig=function(t,e){return{data:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],legendConfig:{elements:[{symbol:&quot;line&quot;,color:&quot;red&quot;},{symbol:&quot;square&quot;,color:&quot;yellow&quot;},{symbol:&quot;diamond&quot;,color:&quot;limegreen&quot;}],height:150,colorBandWidth:30,fontSize:12,container:&quot;body&quot;,isContinuous:null,textColor:&quot;grey&quot;,reverseOrder:!1}}},o.tooltipPanel=function(){var t,e,r,a={container:null,hasTick:!1,fontSize:12,color:&quot;white&quot;,padding:5},s=&quot;tooltip-&quot;+o.tooltipPanel.uid++,l=10,c=function(){var n=(t=a.container.selectAll(&quot;g.&quot;+s).data([0])).enter().append(&quot;g&quot;).classed(s,!0).style({&quot;pointer-events&quot;:&quot;none&quot;,display:&quot;none&quot;});return r=n.append(&quot;path&quot;).style({fill:&quot;white&quot;,&quot;fill-opacity&quot;:.9}).attr({d:&quot;M0 0&quot;}),e=n.append(&quot;text&quot;).attr({dx:a.padding+l,dy:.3*+a.fontSize}),c};return c.text=function(i){var o=n.hsl(a.color).l,s=o&gt;=.5?&quot;#aaa&quot;:&quot;white&quot;,u=o&gt;=.5?&quot;black&quot;:&quot;white&quot;,f=i||&quot;&quot;;e.style({fill:u,&quot;font-size&quot;:a.fontSize+&quot;px&quot;}).text(f);var h=a.padding,p=e.node().getBBox(),d={fill:a.color,stroke:s,&quot;stroke-width&quot;:&quot;2px&quot;},g=p.width+2*h+l,m=p.height+2*h;return r.attr({d:&quot;M&quot;+[[l,-m/2],[l,-m/4],[a.hasTick?0:l,0],[l,m/4],[l,m/2],[g,m/2],[g,-m/2]].join(&quot;L&quot;)+&quot;Z&quot;}).style(d),t.attr({transform:&quot;translate(&quot;+[l,-m/2+2*h]+&quot;)&quot;}),t.style({display:&quot;block&quot;}),c},c.move=function(e){if(t)return t.attr({transform:&quot;translate(&quot;+[e[0],e[1]]+&quot;)&quot;}).style({display:&quot;block&quot;}),c},c.hide=function(){if(t)return t.style({display:&quot;none&quot;}),c},c.show=function(){if(t)return t.style({display:&quot;block&quot;}),c},c.config=function(t){return i(a,t),c},c},o.tooltipPanel.uid=1,o.adapter={},o.adapter.plotly=function(){var t={convert:function(t,e){var r={};if(t.data&amp;&amp;(r.data=t.data.map((function(t,r){var n=i({},t);return[[n,[&quot;marker&quot;,&quot;color&quot;],[&quot;color&quot;]],[n,[&quot;marker&quot;,&quot;opacity&quot;],[&quot;opacity&quot;]],[n,[&quot;marker&quot;,&quot;line&quot;,&quot;color&quot;],[&quot;strokeColor&quot;]],[n,[&quot;marker&quot;,&quot;line&quot;,&quot;dash&quot;],[&quot;strokeDash&quot;]],[n,[&quot;marker&quot;,&quot;line&quot;,&quot;width&quot;],[&quot;strokeSize&quot;]],[n,[&quot;marker&quot;,&quot;symbol&quot;],[&quot;dotType&quot;]],[n,[&quot;marker&quot;,&quot;size&quot;],[&quot;dotSize&quot;]],[n,[&quot;marker&quot;,&quot;barWidth&quot;],[&quot;barWidth&quot;]],[n,[&quot;line&quot;,&quot;interpolation&quot;],[&quot;lineInterpolation&quot;]],[n,[&quot;showlegend&quot;],[&quot;visibleInLegend&quot;]]].forEach((function(t,r){o.util.translator.apply(null,t.concat(e))})),e||delete n.marker,e&amp;&amp;delete n.groupId,e?(&quot;LinePlot&quot;===n.geometry?(n.type=&quot;scatter&quot;,!0===n.dotVisible?(delete n.dotVisible,n.mode=&quot;lines+markers&quot;):n.mode=&quot;lines&quot;):&quot;DotPlot&quot;===n.geometry?(n.type=&quot;scatter&quot;,n.mode=&quot;markers&quot;):&quot;AreaChart&quot;===n.geometry?n.type=&quot;area&quot;:&quot;BarChart&quot;===n.geometry&amp;&amp;(n.type=&quot;bar&quot;),delete n.geometry):(&quot;scatter&quot;===n.type?&quot;lines&quot;===n.mode?n.geometry=&quot;LinePlot&quot;:&quot;markers&quot;===n.mode?n.geometry=&quot;DotPlot&quot;:&quot;lines+markers&quot;===n.mode&amp;&amp;(n.geometry=&quot;LinePlot&quot;,n.dotVisible=!0):&quot;area&quot;===n.type?n.geometry=&quot;AreaChart&quot;:&quot;bar&quot;===n.type&amp;&amp;(n.geometry=&quot;BarChart&quot;),delete n.mode,delete n.type),n})),!e&amp;&amp;t.layout&amp;&amp;&quot;stack&quot;===t.layout.barmode)){var a=o.util.duplicates(r.data.map((function(t,e){return t.geometry})));r.data.forEach((function(t,e){var n=a.indexOf(t.geometry);-1!=n&amp;&amp;(r.data[e].groupId=n)}))}if(t.layout){var s=i({},t.layout);if([[s,[&quot;plot_bgcolor&quot;],[&quot;backgroundColor&quot;]],[s,[&quot;showlegend&quot;],[&quot;showLegend&quot;]],[s,[&quot;radialaxis&quot;],[&quot;radialAxis&quot;]],[s,[&quot;angularaxis&quot;],[&quot;angularAxis&quot;]],[s.angularaxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.angularaxis,[&quot;showticklabels&quot;],[&quot;labelsVisible&quot;]],[s.angularaxis,[&quot;nticks&quot;],[&quot;ticksCount&quot;]],[s.angularaxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.angularaxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.angularaxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.angularaxis,[&quot;endpadding&quot;],[&quot;endPadding&quot;]],[s.radialaxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.radialaxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.radialaxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.radialaxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.angularAxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.angularAxis,[&quot;showticklabels&quot;],[&quot;labelsVisible&quot;]],[s.angularAxis,[&quot;nticks&quot;],[&quot;ticksCount&quot;]],[s.angularAxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.angularAxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.angularAxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.angularAxis,[&quot;endpadding&quot;],[&quot;endPadding&quot;]],[s.radialAxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.radialAxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.radialAxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.radialAxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.font,[&quot;outlinecolor&quot;],[&quot;outlineColor&quot;]],[s.legend,[&quot;traceorder&quot;],[&quot;reverseOrder&quot;]],[s,[&quot;labeloffset&quot;],[&quot;labelOffset&quot;]],[s,[&quot;defaultcolorrange&quot;],[&quot;defaultColorRange&quot;]]].forEach((function(t,r){o.util.translator.apply(null,t.concat(e))})),e?(&quot;undefined&quot;!=typeof s.tickLength&amp;&amp;(s.angularaxis.ticklen=s.tickLength,delete s.tickLength),s.tickColor&amp;&amp;(s.angularaxis.tickcolor=s.tickColor,delete s.tickColor)):(s.angularAxis&amp;&amp;&quot;undefined&quot;!=typeof s.angularAxis.ticklen&amp;&amp;(s.tickLength=s.angularAxis.ticklen),s.angularAxis&amp;&amp;&quot;undefined&quot;!=typeof s.angularAxis.tickcolor&amp;&amp;(s.tickColor=s.angularAxis.tickcolor)),s.legend&amp;&amp;&quot;boolean&quot;!=typeof s.legend.reverseOrder&amp;&amp;(s.legend.reverseOrder=&quot;normal&quot;!=s.legend.reverseOrder),s.legend&amp;&amp;&quot;boolean&quot;==typeof s.legend.traceorder&amp;&amp;(s.legend.traceorder=s.legend.traceorder?&quot;reversed&quot;:&quot;normal&quot;,delete s.legend.reverseOrder),s.margin&amp;&amp;&quot;undefined&quot;!=typeof s.margin.t){var l=[&quot;t&quot;,&quot;r&quot;,&quot;b&quot;,&quot;l&quot;,&quot;pad&quot;],c=[&quot;top&quot;,&quot;right&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;pad&quot;],u={};n.entries(s.margin).forEach((function(t,e){u[c[l.indexOf(t.key)]]=t.value})),s.margin=u}e&amp;&amp;(delete s.needsEndSpacing,delete s.minorTickColor,delete s.minorTicks,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksStep,delete s.angularaxis.rewriteTicks,delete s.angularaxis.nticks,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksStep,delete s.radialaxis.rewriteTicks,delete s.radialaxis.nticks),r.layout=s}return r}};return t}},{&quot;../../../constants/alignment&quot;:745,&quot;../../../lib&quot;:778,d3:169}],901:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../../lib&quot;),a=t(&quot;../../../components/color&quot;),o=t(&quot;./micropolar&quot;),s=t(&quot;./undo_manager&quot;),l=i.extendDeepAll,c=e.exports={};c.framework=function(t){var e,r,i,a,u,f=new s;function h(r,s){return s&amp;&amp;(u=s),n.select(n.select(u).node().parentNode).selectAll(&quot;.svg-container&gt;*:not(.chart-root)&quot;).remove(),e=e?l(e,r):r,i||(i=o.Axis()),a=o.adapter.plotly().convert(e),i.config(a).render(u),t.data=e.data,t.layout=e.layout,c.fillLayout(t),e}return h.isPolar=!0,h.svg=function(){return i.svg()},h.getConfig=function(){return e},h.getLiveConfig=function(){return o.adapter.plotly().convert(i.getLiveConfig(),!0)},h.getLiveScales=function(){return{t:i.angularScale(),r:i.radialScale()}},h.setUndoPoint=function(){var t,n,i=this,a=o.util.cloneJson(e);t=a,n=r,f.add({undo:function(){n&amp;&amp;i(n)},redo:function(){i(t)}}),r=o.util.cloneJson(a)},h.undo=function(){f.undo()},h.redo=function(){f.redo()},h},c.fillLayout=function(t){var e=n.select(t).selectAll(&quot;.plot-container&quot;),r=e.selectAll(&quot;.svg-container&quot;),i=t.framework&amp;&amp;t.framework.svg&amp;&amp;t.framework.svg(),o={width:800,height:600,paper_bgcolor:a.background,_container:e,_paperdiv:r,_paper:i};t._fullLayout=l(o,t.layout)}},{&quot;../../../components/color&quot;:643,&quot;../../../lib&quot;:778,&quot;./micropolar&quot;:900,&quot;./undo_manager&quot;:902,d3:169}],902:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e=[],r=-1,n=!1;function i(t,e){return t?(n=!0,t[e](),n=!1,this):this}return{add:function(t){return n||(e.splice(r+1,e.length-r),e.push(t),r=e.length-1),this},setCallback:function(e){t=e},undo:function(){var n=e[r];return n?(i(n,&quot;undo&quot;),r-=1,t&amp;&amp;t(n.undo),this):this},redo:function(){var n=e[r+1];return n?(i(n,&quot;redo&quot;),r+=1,t&amp;&amp;t(n.redo),this):this},clear:function(){e=[],r=-1},hasUndo:function(){return-1!==r},hasRedo:function(){return r&lt;e.length-1},getCommands:function(){return e},getPreviousCommand:function(){return e[r-1]},getIndex:function(){return r}}}},{}],903:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=o.strRotate,l=o.strTranslate,c=t(&quot;../../components/color&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../plots&quot;),h=t(&quot;../../plots/cartesian/axes&quot;),p=t(&quot;../cartesian/set_convert&quot;),d=t(&quot;./set_convert&quot;),g=t(&quot;../cartesian/autorange&quot;).doAutoRange,m=t(&quot;../cartesian/dragbox&quot;),v=t(&quot;../../components/dragelement&quot;),y=t(&quot;../../components/fx&quot;),x=t(&quot;../../components/titles&quot;),b=t(&quot;../cartesian/select&quot;).prepSelect,_=t(&quot;../cartesian/select&quot;).selectOnClick,w=t(&quot;../cartesian/select&quot;).clearSelect,T=t(&quot;../../lib/setcursor&quot;),k=t(&quot;../../lib/clear_gl_canvases&quot;),M=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,A=t(&quot;../../constants/alignment&quot;).MID_SHIFT,S=t(&quot;./constants&quot;),E=t(&quot;./helpers&quot;),C=o._,L=o.mod,I=o.deg2rad,P=o.rad2deg;function z(t,e){this.id=e,this.gd=t,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var r=t._fullLayout,n=&quot;clip&quot;+r._uid+e;this.clipIds.forTraces=n+&quot;-for-traces&quot;,this.clipPaths.forTraces=r._clips.append(&quot;clipPath&quot;).attr(&quot;id&quot;,this.clipIds.forTraces),this.clipPaths.forTraces.append(&quot;path&quot;),this.framework=r._polarlayer.append(&quot;g&quot;).attr(&quot;class&quot;,e),this.radialTickLayout=null,this.angularTickLayout=null}var O=z.prototype;function D(t){var e=t.ticks+String(t.ticklen)+String(t.showticklabels);return&quot;side&quot;in t&amp;&amp;(e+=t.side),e}function R(t,e){return e[o.findIndexOfMin(e,(function(e){return o.angleDist(t,e)}))]}function F(t,e,r){return e?(t.attr(&quot;display&quot;,null),t.attr(r)):t&amp;&amp;t.attr(&quot;display&quot;,&quot;none&quot;),t}e.exports=function(t,e){return new z(t,e)},O.plot=function(t,e){var r=e[this.id];this._hasClipOnAxisFalse=!1;for(var n=0;n&lt;t.length;n++){if(!1===t[n][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(e,r),this.updateLayout(e,r),f.generalUpdatePerTraceModule(this.gd,this,t,r),this.updateFx(e,r)},O.updateLayers=function(t,e){var r=this.layers,i=e.radialaxis,a=e.angularaxis,o=S.layerNames,s=o.indexOf(&quot;frontplot&quot;),l=o.slice(0,s),c=&quot;below traces&quot;===a.layer,u=&quot;below traces&quot;===i.layer;c&amp;&amp;l.push(&quot;angular-line&quot;),u&amp;&amp;l.push(&quot;radial-line&quot;),c&amp;&amp;l.push(&quot;angular-axis&quot;),u&amp;&amp;l.push(&quot;radial-axis&quot;),l.push(&quot;frontplot&quot;),c||l.push(&quot;angular-line&quot;),u||l.push(&quot;radial-line&quot;),c||l.push(&quot;angular-axis&quot;),u||l.push(&quot;radial-axis&quot;);var f=this.framework.selectAll(&quot;.polarsublayer&quot;).data(l,String);f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;polarsublayer &quot;+t})).each((function(t){var e=r[t]=n.select(this);switch(t){case&quot;frontplot&quot;:e.append(&quot;g&quot;).classed(&quot;barlayer&quot;,!0),e.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0);break;case&quot;backplot&quot;:e.append(&quot;g&quot;).classed(&quot;maplayer&quot;,!0);break;case&quot;plotbg&quot;:r.bg=e.append(&quot;path&quot;);break;case&quot;radial-grid&quot;:case&quot;angular-grid&quot;:e.style(&quot;fill&quot;,&quot;none&quot;);break;case&quot;radial-line&quot;:e.append(&quot;line&quot;).style(&quot;fill&quot;,&quot;none&quot;);break;case&quot;angular-line&quot;:e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;)}})),f.order()},O.updateLayout=function(t,e){var r=this.layers,n=t._size,i=e.radialaxis,a=e.angularaxis,o=e.domain.x,s=e.domain.y;this.xOffset=n.l+n.w*o[0],this.yOffset=n.t+n.h*(1-s[1]);var f=this.xLength=n.w*(o[1]-o[0]),h=this.yLength=n.h*(s[1]-s[0]),p=e.sector;this.sectorInRad=p.map(I);var d,g,m,v,y,x=this.sectorBBox=function(t){var e,r,n,i,a=t[0],o=t[1]-a,s=L(a,360),l=s+o,c=Math.cos(I(s)),u=Math.sin(I(s)),f=Math.cos(I(l)),h=Math.sin(I(l));i=s&lt;=90&amp;&amp;l&gt;=90||s&gt;90&amp;&amp;l&gt;=450?1:u&lt;=0&amp;&amp;h&lt;=0?0:Math.max(u,h);e=s&lt;=180&amp;&amp;l&gt;=180||s&gt;180&amp;&amp;l&gt;=540?-1:c&gt;=0&amp;&amp;f&gt;=0?0:Math.min(c,f);r=s&lt;=270&amp;&amp;l&gt;=270||s&gt;270&amp;&amp;l&gt;=630?-1:u&gt;=0&amp;&amp;h&gt;=0?0:Math.min(u,h);n=l&gt;=360?1:c&lt;=0&amp;&amp;f&lt;=0?0:Math.max(c,f);return[e,r,n,i]}(p),b=x[2]-x[0],_=x[3]-x[1],w=h/f,T=Math.abs(_/b);w&gt;T?(d=f,y=(h-(g=f*T))/n.h/2,m=[o[0],o[1]],v=[s[0]+y,s[1]-y]):(g=h,y=(f-(d=h/T))/n.w/2,m=[o[0]+y,o[1]-y],v=[s[0],s[1]]),this.xLength2=d,this.yLength2=g,this.xDomain2=m,this.yDomain2=v;var k=this.xOffset2=n.l+n.w*m[0],M=this.yOffset2=n.t+n.h*(1-v[1]),A=this.radius=d/b,S=this.innerRadius=e.hole*A,E=this.cx=k-A*x[0],C=this.cy=M+A*x[3],P=this.cxx=E-k,z=this.cyy=C-M;this.radialAxis=this.mockAxis(t,e,i,{_id:&quot;x&quot;,side:{counterclockwise:&quot;top&quot;,clockwise:&quot;bottom&quot;}[i.side],_realSide:i.side,domain:[S/n.w,A/n.w]}),this.angularAxis=this.mockAxis(t,e,a,{side:&quot;right&quot;,domain:[0,Math.PI],autorange:!1}),this.doAutoRange(t,e),this.updateAngularAxis(t,e),this.updateRadialAxis(t,e),this.updateRadialAxisTitle(t,e),this.xaxis=this.mockCartesianAxis(t,e,{_id:&quot;x&quot;,domain:m}),this.yaxis=this.mockCartesianAxis(t,e,{_id:&quot;y&quot;,domain:v});var O=this.pathSubplot();this.clipPaths.forTraces.select(&quot;path&quot;).attr(&quot;d&quot;,O).attr(&quot;transform&quot;,l(P,z)),r.frontplot.attr(&quot;transform&quot;,l(k,M)).call(u.setClipUrl,this._hasClipOnAxisFalse?null:this.clipIds.forTraces,this.gd),r.bg.attr(&quot;d&quot;,O).attr(&quot;transform&quot;,l(E,C)).call(c.fill,e.bgcolor)},O.mockAxis=function(t,e,r,n){var i=o.extendFlat({},r,n);return d(i,e,t),i},O.mockCartesianAxis=function(t,e,r){var n=this,i=r._id,a=o.extendFlat({type:&quot;linear&quot;},r);p(a,t);var s={x:[0,2],y:[1,3]};return a.setRange=function(){var t=n.sectorBBox,r=s[i],o=n.radialAxis._rl,l=(o[1]-o[0])/(1-e.hole);a.range=[t[r[0]]*l,t[r[1]]*l]},a.isPtWithinRange=&quot;x&quot;===i?function(t){return n.isPtInside(t)}:function(){return!0},a.setRange(),a.setScale(),a},O.doAutoRange=function(t,e){var r=this.gd,n=this.radialAxis,i=e.radialaxis;n.setScale(),g(r,n);var a=n.range;i.range=a.slice(),i._input.range=a.slice(),n._rl=[n.r2l(a[0],null,&quot;gregorian&quot;),n.r2l(a[1],null,&quot;gregorian&quot;)]},O.updateRadialAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=e.radialaxis,g=L(e.sector[0],360),m=r.radialAxis,v=u&lt;a;r.fillViewInitialKey(&quot;radialaxis.angle&quot;,d.angle),r.fillViewInitialKey(&quot;radialaxis.range&quot;,m.range.slice()),m.setGeometry(),&quot;auto&quot;===m.tickangle&amp;&amp;g&gt;90&amp;&amp;g&lt;=270&amp;&amp;(m.tickangle=180);var y=function(t){return l(m.l2p(t.x)+u,0)},x=D(d);if(r.radialTickLayout!==x&amp;&amp;(i[&quot;radial-axis&quot;].selectAll(&quot;.xtick&quot;).remove(),r.radialTickLayout=x),v){m.setScale();var b=h.calcTicks(m),_=h.clipEnds(m,b),w=h.getTickSigns(m)[2];h.drawTicks(n,m,{vals:b,layer:i[&quot;radial-axis&quot;],path:h.makeTickPath(m,0,w),transFn:y,crisp:!1}),h.drawGrid(n,m,{vals:_,layer:i[&quot;radial-grid&quot;],path:function(t){return r.pathArc(m.r2p(t.x)+u)},transFn:o.noop,crisp:!1}),h.drawLabels(n,m,{vals:b,layer:i[&quot;radial-axis&quot;],transFn:y,labelFns:h.makeLabelFns(m,0)})}var T=r.radialAxisAngle=r.vangles?P(R(I(d.angle),r.vangles)):d.angle,k=l(f,p),M=k+s(-T);F(i[&quot;radial-axis&quot;],v&amp;&amp;(d.showticklabels||d.ticks),{transform:M}),F(i[&quot;radial-grid&quot;],v&amp;&amp;d.showgrid,{transform:k}),F(i[&quot;radial-line&quot;].select(&quot;line&quot;),v&amp;&amp;d.showline,{x1:u,y1:0,x2:a,y2:0,transform:M}).attr(&quot;stroke-width&quot;,d.linewidth).call(c.stroke,d.linecolor)},O.updateRadialAxisTitle=function(t,e,r){var n=this.gd,i=this.radius,a=this.cx,o=this.cy,s=e.radialaxis,l=this.id+&quot;title&quot;,c=void 0!==r?r:this.radialAxisAngle,f=I(c),h=Math.cos(f),p=Math.sin(f),d=0;if(s.title){var g=u.bBox(this.layers[&quot;radial-axis&quot;].node()).height,m=s.title.font.size;d=&quot;counterclockwise&quot;===s.side?-g-.4*m:g+.8*m}this.layers[&quot;radial-axis-title&quot;]=x.draw(n,l,{propContainer:s,propName:this.id+&quot;.radialaxis.title&quot;,placeholder:C(n,&quot;Click to enter radial axis title&quot;),attributes:{x:a+i/2*h+d*p,y:o-i/2*p+d*h,&quot;text-anchor&quot;:&quot;middle&quot;},transform:{rotate:-c}})},O.updateAngularAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=e.angularaxis,g=r.angularAxis;r.fillViewInitialKey(&quot;angularaxis.rotation&quot;,d.rotation),g.setGeometry(),g.setScale();var m=function(t){return g.t2g(t.x)};&quot;linear&quot;===g.type&amp;&amp;&quot;radians&quot;===g.thetaunit&amp;&amp;(g.tick0=P(g.tick0),g.dtick=P(g.dtick));var v=function(t){return l(f+a*Math.cos(t),p-a*Math.sin(t))},y=h.makeLabelFns(g,0).labelStandoff,x={xFn:function(t){var e=m(t);return Math.cos(e)*y},yFn:function(t){var e=m(t),r=Math.sin(e)&gt;0?.2:1;return-Math.sin(e)*(y+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*A)},anchorFn:function(t){var e=m(t),r=Math.cos(e);return Math.abs(r)&lt;.1?&quot;middle&quot;:r&gt;0?&quot;start&quot;:&quot;end&quot;},heightFn:function(t,e,r){var n=m(t);return-.5*(1+Math.sin(n))*r}},b=D(d);r.angularTickLayout!==b&amp;&amp;(i[&quot;angular-axis&quot;].selectAll(&quot;.&quot;+g._id+&quot;tick&quot;).remove(),r.angularTickLayout=b);var _,w=h.calcTicks(g);if(&quot;linear&quot;===e.gridshape?(_=w.map(m),o.angleDelta(_[0],_[1])&lt;0&amp;&amp;(_=_.slice().reverse())):_=null,r.vangles=_,&quot;category&quot;===g.type&amp;&amp;(w=w.filter((function(t){return o.isAngleInsideSector(m(t),r.sectorInRad)}))),g.visible){var T=&quot;inside&quot;===g.ticks?-1:1,k=(g.linewidth||1)/2;h.drawTicks(n,g,{vals:w,layer:i[&quot;angular-axis&quot;],path:&quot;M&quot;+T*k+&quot;,0h&quot;+T*g.ticklen,transFn:function(t){var e=m(t);return v(e)+s(-P(e))},crisp:!1}),h.drawGrid(n,g,{vals:w,layer:i[&quot;angular-grid&quot;],path:function(t){var e=m(t),r=Math.cos(e),n=Math.sin(e);return&quot;M&quot;+[f+u*r,p-u*n]+&quot;L&quot;+[f+a*r,p-a*n]},transFn:o.noop,crisp:!1}),h.drawLabels(n,g,{vals:w,layer:i[&quot;angular-axis&quot;],repositionOnUpdate:!0,transFn:function(t){return v(m(t))},labelFns:x})}F(i[&quot;angular-line&quot;].select(&quot;path&quot;),d.showline,{d:r.pathSubplot(),transform:l(f,p)}).attr(&quot;stroke-width&quot;,d.linewidth).call(c.stroke,d.linecolor)},O.updateFx=function(t,e){this.gd._context.staticPlot||(this.updateAngularDrag(t),this.updateRadialDrag(t,e,0),this.updateRadialDrag(t,e,1),this.updateMainDrag(t))},O.updateMainDrag=function(t){var e,r,s=this,c=s.gd,u=s.layers,f=t._zoomlayer,h=S.MINZOOM,p=S.OFFEDGE,d=s.radius,g=s.innerRadius,x=s.cx,T=s.cy,k=s.cxx,M=s.cyy,A=s.sectorInRad,C=s.vangles,L=s.radialAxis,I=E.clampTiny,P=E.findXYatLength,z=E.findEnclosingVertexAngles,O=S.cornerHalfWidth,D=S.cornerLen/2,R=m.makeDragger(u,&quot;path&quot;,&quot;maindrag&quot;,&quot;crosshair&quot;);n.select(R).attr(&quot;d&quot;,s.pathSubplot()).attr(&quot;transform&quot;,l(x,T));var F,B,N,j,U,V,q,H,G,Y={element:R,gd:c,subplot:s.id,plotinfo:{id:s.id,xaxis:s.xaxis,yaxis:s.yaxis},xaxes:[s.xaxis],yaxes:[s.yaxis]};function W(t,e){return Math.sqrt(t*t+e*e)}function X(t,e){return W(t-k,e-M)}function Z(t,e){return Math.atan2(M-e,t-k)}function J(t,e){return[t*Math.cos(e),t*Math.sin(-e)]}function K(t,e){if(0===t)return s.pathSector(2*O);var r=D/t,n=e-r,i=e+r,a=Math.max(0,Math.min(t,d)),o=a-O,l=a+O;return&quot;M&quot;+J(o,n)+&quot;A&quot;+[o,o]+&quot; 0,0,0 &quot;+J(o,i)+&quot;L&quot;+J(l,i)+&quot;A&quot;+[l,l]+&quot; 0,0,1 &quot;+J(l,n)+&quot;Z&quot;}function Q(t,e,r){if(0===t)return s.pathSector(2*O);var n,i,a=J(t,e),o=J(t,r),l=I((a[0]+o[0])/2),c=I((a[1]+o[1])/2);if(l&amp;&amp;c){var u=c/l,f=-1/u,h=P(O,u,l,c);n=P(D,f,h[0][0],h[0][1]),i=P(D,f,h[1][0],h[1][1])}else{var p,d;c?(p=D,d=O):(p=O,d=D),n=[[l-p,c-d],[l+p,c-d]],i=[[l-p,c+d],[l+p,c+d]]}return&quot;M&quot;+n.join(&quot;L&quot;)+&quot;L&quot;+i.reverse().join(&quot;L&quot;)+&quot;Z&quot;}function $(t,e){return e=Math.max(Math.min(e,d),g),t&lt;p?t=0:d-t&lt;p?t=d:e&lt;p?e=0:d-e&lt;p&amp;&amp;(e=d),Math.abs(e-t)&gt;h?(t&lt;e?(N=t,j=e):(N=e,j=t),!0):(N=null,j=null,!1)}function tt(t,e){t=t||U,e=e||&quot;M0,0Z&quot;,H.attr(&quot;d&quot;,t),G.attr(&quot;d&quot;,e),m.transitionZoombox(H,G,V,q),V=!0;var r={};at(r),c.emit(&quot;plotly_relayouting&quot;,r)}function et(t,n){var i,a,o=F+(t*=e),l=B+(n*=r),c=X(F,B),u=Math.min(X(o,l),d),f=Z(F,B);$(c,u)&amp;&amp;(i=U+s.pathSector(j),N&amp;&amp;(i+=s.pathSector(N)),a=K(N,f)+K(j,f)),tt(i,a)}function rt(t,e,r,n){var i=E.findIntersectionXY(r,n,r,[t-k,M-e]);return W(i[0],i[1])}function nt(t,e){var r,n,i=F+t,a=B+e,o=Z(F,B),l=Z(i,a),c=z(o,C),u=z(l,C);$(rt(F,B,c[0],c[1]),Math.min(rt(i,a,u[0],u[1]),d))&amp;&amp;(r=U+s.pathSector(j),N&amp;&amp;(r+=s.pathSector(N)),n=[Q(N,c[0],c[1]),Q(j,c[0],c[1])].join(&quot; &quot;)),tt(r,n)}function it(){if(m.removeZoombox(c),null!==N&amp;&amp;null!==j){var t={};at(t),m.showDoubleClickNotifier(c),a.call(&quot;_guiRelayout&quot;,c,t)}}function at(t){var e=L._rl,r=(e[1]-e[0])/(1-g/d)/d,n=[e[0]+(N-g)*r,e[0]+(j-g)*r];t[s.id+&quot;.radialaxis.range&quot;]=n}function ot(t,e){var r=c._fullLayout.clickmode;if(m.removeZoombox(c),2===t){var n={};for(var i in s.viewInitial)n[s.id+&quot;.&quot;+i]=s.viewInitial[i];c.emit(&quot;plotly_doubleclick&quot;,null),a.call(&quot;_guiRelayout&quot;,c,n)}r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;1===t&amp;&amp;_(e,c,[s.xaxis],[s.yaxis],s.id,Y),r.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;y.click(c,e,s.id)}Y.prepFn=function(t,n,a){var l=c._fullLayout.dragmode,u=R.getBoundingClientRect();c._fullLayout._calcInverseTransform(c);var h=c._fullLayout._invTransform;e=c._fullLayout._invScaleX,r=c._fullLayout._invScaleY;var p=o.apply3DTransform(h)(n-u.left,a-u.top);if(F=p[0],B=p[1],C){var g=E.findPolygonOffset(d,A[0],A[1],C);F+=k+g[0],B+=M+g[1]}switch(l){case&quot;zoom&quot;:Y.moveFn=C?nt:et,Y.clickFn=ot,Y.doneFn=it,function(){N=null,j=null,U=s.pathSubplot(),V=!1;var t=c._fullLayout[s.id];q=i(t.bgcolor).getLuminance(),(H=m.makeZoombox(f,q,x,T,U)).attr(&quot;fill-rule&quot;,&quot;evenodd&quot;),G=m.makeCorners(f,x,T),w(c)}();break;case&quot;select&quot;:case&quot;lasso&quot;:b(t,n,a,Y,l)}},R.onmousemove=function(t){y.hover(c,t,s.id),c._fullLayout._lasthover=R,c._fullLayout._hoversubplot=s.id},R.onmouseout=function(t){c._dragging||v.unhover(c,t)},v.init(Y)},O.updateRadialDrag=function(t,e,r){var i=this,c=i.gd,u=i.layers,f=i.radius,h=i.innerRadius,p=i.cx,d=i.cy,g=i.radialAxis,y=S.radialDragBoxSize,x=y/2;if(g.visible){var b,_,T,A=I(i.radialAxisAngle),E=g._rl,C=E[0],L=E[1],z=E[r],O=.75*(E[1]-E[0])/(1-e.hole)/f;r?(b=p+(f+x)*Math.cos(A),_=d-(f+x)*Math.sin(A),T=&quot;radialdrag&quot;):(b=p+(h-x)*Math.cos(A),_=d-(h-x)*Math.sin(A),T=&quot;radialdrag-inner&quot;);var D,B,N,j=m.makeRectDragger(u,T,&quot;crosshair&quot;,-x,-x,y,y),U={element:j,gd:c};F(n.select(j),g.visible&amp;&amp;h&lt;f,{transform:l(b,_)}),U.prepFn=function(){D=null,B=null,N=null,U.moveFn=V,U.doneFn=q,w(c)},U.clampFn=function(t,e){return Math.sqrt(t*t+e*e)&lt;S.MINDRAG&amp;&amp;(t=0,e=0),[t,e]},v.init(U)}function V(t,e){if(D)D(t,e);else{var n=[t,-e],a=[Math.cos(A),Math.sin(A)],s=Math.abs(o.dot(n,a)/Math.sqrt(o.dot(n,n)));isNaN(s)||(D=s&lt;.5?H:G)}var l={};!function(t){null!==B?t[i.id+&quot;.radialaxis.angle&quot;]=B:null!==N&amp;&amp;(t[i.id+&quot;.radialaxis.range[&quot;+r+&quot;]&quot;]=N)}(l),c.emit(&quot;plotly_relayouting&quot;,l)}function q(){null!==B?a.call(&quot;_guiRelayout&quot;,c,i.id+&quot;.radialaxis.angle&quot;,B):null!==N&amp;&amp;a.call(&quot;_guiRelayout&quot;,c,i.id+&quot;.radialaxis.range[&quot;+r+&quot;]&quot;,N)}function H(t,e){if(0!==r){var n=b+t,a=_+e;B=Math.atan2(d-a,n-p),i.vangles&amp;&amp;(B=R(B,i.vangles)),B=P(B);var o=l(p,d)+s(-B);u[&quot;radial-axis&quot;].attr(&quot;transform&quot;,o),u[&quot;radial-line&quot;].select(&quot;line&quot;).attr(&quot;transform&quot;,o);var c=i.gd._fullLayout,f=c[i.id];i.updateRadialAxisTitle(c,f,B)}}function G(t,e){var n=o.dot([t,-e],[Math.cos(A),Math.sin(A)]);if(N=z-O*n,O&gt;0==(r?N&gt;C:N&lt;L)){var s=c._fullLayout,l=s[i.id];g.range[r]=N,g._rl[r]=N,i.updateRadialAxis(s,l),i.xaxis.setRange(),i.xaxis.setScale(),i.yaxis.setRange(),i.yaxis.setScale();var u=!1;for(var f in i.traceHash){var h=i.traceHash[f],p=o.filterVisible(h);h[0][0].trace._module.plot(c,i,p,l),a.traceIs(f,&quot;gl&quot;)&amp;&amp;p.length&amp;&amp;(u=!0)}u&amp;&amp;(k(c),M(c))}else N=null}},O.updateAngularDrag=function(t){var e=this,r=e.gd,i=e.layers,c=e.radius,f=e.angularAxis,h=e.cx,p=e.cy,d=e.cxx,g=e.cyy,y=S.angularDragBoxSize,x=m.makeDragger(i,&quot;path&quot;,&quot;angulardrag&quot;,&quot;move&quot;),b={element:x,gd:r};function _(t,e){return Math.atan2(g+y-e,t-d-y)}n.select(x).attr(&quot;d&quot;,e.pathAnnulus(c,c+y)).attr(&quot;transform&quot;,l(h,p)).call(T,&quot;move&quot;);var A,E,C,L,I,z,O=i.frontplot.select(&quot;.scatterlayer&quot;).selectAll(&quot;.trace&quot;),D=O.selectAll(&quot;.point&quot;),R=O.selectAll(&quot;.textpoint&quot;);function F(c,m){var v=e.gd._fullLayout,y=v[e.id],x=_(A+c*t._invScaleX,E+m*t._invScaleY),b=P(x-z);if(L=C+b,i.frontplot.attr(&quot;transform&quot;,l(e.xOffset2,e.yOffset2)+s([-b,d,g])),e.vangles){I=e.radialAxisAngle+b;var w=l(h,p)+s(-b),T=l(h,p)+s(-I);i.bg.attr(&quot;transform&quot;,w),i[&quot;radial-grid&quot;].attr(&quot;transform&quot;,w),i[&quot;radial-axis&quot;].attr(&quot;transform&quot;,T),i[&quot;radial-line&quot;].select(&quot;line&quot;).attr(&quot;transform&quot;,T),e.updateRadialAxisTitle(v,y,I)}else e.clipPaths.forTraces.select(&quot;path&quot;).attr(&quot;transform&quot;,l(d,g)+s(b));D.each((function(){var t=n.select(this),e=u.getTranslate(t);t.attr(&quot;transform&quot;,l(e.x,e.y)+s([b]))})),R.each((function(){var t=n.select(this),e=t.select(&quot;text&quot;),r=u.getTranslate(t);t.attr(&quot;transform&quot;,s([b,e.attr(&quot;x&quot;),e.attr(&quot;y&quot;)])+l(r.x,r.y))})),f.rotation=o.modHalf(L,360),e.updateAngularAxis(v,y),e._hasClipOnAxisFalse&amp;&amp;!o.isFullCircle(e.sectorInRad)&amp;&amp;O.call(u.hideOutsideRangePoints,e);var S=!1;for(var F in e.traceHash)if(a.traceIs(F,&quot;gl&quot;)){var N=e.traceHash[F],j=o.filterVisible(N);N[0][0].trace._module.plot(r,e,j,y),j.length&amp;&amp;(S=!0)}S&amp;&amp;(k(r),M(r));var U={};B(U),r.emit(&quot;plotly_relayouting&quot;,U)}function B(t){t[e.id+&quot;.angularaxis.rotation&quot;]=L,e.vangles&amp;&amp;(t[e.id+&quot;.radialaxis.angle&quot;]=I)}function N(){R.select(&quot;text&quot;).attr(&quot;transform&quot;,null);var t={};B(t),a.call(&quot;_guiRelayout&quot;,r,t)}b.prepFn=function(n,i,a){var s=t[e.id];C=s.angularaxis.rotation;var l=x.getBoundingClientRect();A=i-l.left,E=a-l.top,r._fullLayout._calcInverseTransform(r);var c=o.apply3DTransform(t._invTransform)(A,E);A=c[0],E=c[1],z=_(A,E),b.moveFn=F,b.doneFn=N,w(r)},e.vangles&amp;&amp;!o.isFullCircle(e.sectorInRad)&amp;&amp;(b.prepFn=o.noop,T(n.select(x),null)),v.init(b)},O.isPtInside=function(t){var e=this.sectorInRad,r=this.vangles,n=this.angularAxis.c2g(t.theta),i=this.radialAxis,a=i.c2l(t.r),s=i._rl;return(r?E.isPtInsidePolygon:o.isPtInsideSector)(a,n,s,e,r)},O.pathArc=function(t){var e=this.sectorInRad,r=this.vangles;return(r?E.pathPolygon:o.pathArc)(t,e[0],e[1],r)},O.pathSector=function(t){var e=this.sectorInRad,r=this.vangles;return(r?E.pathPolygon:o.pathSector)(t,e[0],e[1],r)},O.pathAnnulus=function(t,e){var r=this.sectorInRad,n=this.vangles;return(n?E.pathPolygonAnnulus:o.pathAnnulus)(t,e,r[0],r[1],n)},O.pathSubplot=function(){var t=this.innerRadius,e=this.radius;return t?this.pathAnnulus(t,e):this.pathSector(e)},O.fillViewInitialKey=function(t,e){t in this.viewInitial||(this.viewInitial[t]=e)}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../components/titles&quot;:738,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/clear_gl_canvases&quot;:762,&quot;../../lib/setcursor&quot;:799,&quot;../../plot_api/subroutines&quot;:818,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../cartesian/autorange&quot;:827,&quot;../cartesian/dragbox&quot;:836,&quot;../cartesian/select&quot;:847,&quot;../cartesian/set_convert&quot;:848,&quot;../plots&quot;:891,&quot;./constants&quot;:892,&quot;./helpers&quot;:893,&quot;./set_convert&quot;:904,d3:169,tinycolor2:576}],904:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../cartesian/set_convert&quot;),a=n.deg2rad,o=n.rad2deg;e.exports=function(t,e,r){switch(i(t,r),t._id){case&quot;x&quot;:case&quot;radialaxis&quot;:!function(t,e){var r=e._subplot;t.setGeometry=function(){var e=t._rl[0],n=t._rl[1],i=r.innerRadius,a=(r.radius-i)/(n-e),o=i/a,s=e&gt;n?function(t){return t&lt;=0}:function(t){return t&gt;=0};t.c2g=function(r){var n=t.c2l(r)-e;return(s(n)?n:0)+o},t.g2c=function(r){return t.l2c(r+e-o)},t.g2p=function(t){return t*a},t.c2p=function(e){return t.g2p(t.c2g(e))}}}(t,e);break;case&quot;angularaxis&quot;:!function(t,e){var r=t.type;if(&quot;linear&quot;===r){var i=t.d2c,s=t.c2d;t.d2c=function(t,e){return function(t,e){return&quot;degrees&quot;===e?a(t):t}(i(t),e)},t.c2d=function(t,e){return s(function(t,e){return&quot;degrees&quot;===e?o(t):t}(t,e))}}t.makeCalcdata=function(e,i){var a,o,s=e[i],l=e._length,c=function(r){return t.d2c(r,e.thetaunit)};if(s){if(n.isTypedArray(s)&amp;&amp;&quot;linear&quot;===r){if(l===s.length)return s;if(s.subarray)return s.subarray(0,l)}for(a=new Array(l),o=0;o&lt;l;o++)a[o]=c(s[o])}else{var u=i+&quot;0&quot;,f=&quot;d&quot;+i,h=u in e?c(e[u]):0,p=e[f]?c(e[f]):(t.period||2*Math.PI)/l;for(a=new Array(l),o=0;o&lt;l;o++)a[o]=h+o*p}return a},t.setGeometry=function(){var i,s,l,c,u=e.sector,f=u.map(a),h={clockwise:-1,counterclockwise:1}[t.direction],p=a(t.rotation),d=function(t){return h*t+p},g=function(t){return(t-p)/h};switch(r){case&quot;linear&quot;:s=i=n.identity,c=a,l=o,t.range=n.isFullCircle(f)?[u[0],u[0]+360]:f.map(g).map(o);break;case&quot;category&quot;:var m=t._categories.length,v=t.period?Math.max(t.period,m):m;0===v&amp;&amp;(v=1),s=c=function(t){return 2*t*Math.PI/v},i=l=function(t){return t*v/Math.PI/2},t.range=[0,v]}t.c2g=function(t){return d(s(t))},t.g2c=function(t){return i(g(t))},t.t2g=function(t){return d(c(t))},t.g2t=function(t){return l(g(t))}}}(t,e)}}},{&quot;../../lib&quot;:778,&quot;../cartesian/set_convert&quot;:848}],905:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_template&quot;),a=t(&quot;./domain&quot;).defaults;e.exports=function(t,e,r,o){var s,l,c=o.type,u=o.attributes,f=o.handleDefaults,h=o.partition||&quot;x&quot;,p=e._subplots[c],d=p.length,g=d&amp;&amp;p[0].replace(/\d+$/,&quot;&quot;);function m(t,e){return n.coerce(s,l,u,t,e)}for(var v=0;v&lt;d;v++){var y=p[v];s=t[y]?t[y]:t[y]={},l=i.newContainer(e,y,g),m(&quot;uirevision&quot;,e.uirevision);var x={};x[h]=[v/d,(v+1)/d],a(l,e,m,x),o.id=y,f(s,l,m,o)}}},{&quot;../lib&quot;:778,&quot;../plot_api/plot_template&quot;:817,&quot;./domain&quot;:855}],906:[function(t,e,r){&quot;use strict&quot;;['Variables are inserted using %{variable}, for example &quot;y: %{y}&quot;.','Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example &quot;Price: %{y:$.2f}&quot;.',t(&quot;../constants/docs&quot;).FORMAT_LINK,&quot;for details on the formatting syntax.&quot;,'Dates are formatted using d3-time-format\'s syntax %{variable|d3-time-format}, for example &quot;Day: %{2019-01-01|%A}&quot;.',t(&quot;../constants/docs&quot;).DATE_FORMAT_LINK,&quot;for details on the date formatting syntax.&quot;].join(&quot; &quot;);function n(t){var e=t.description?&quot; &quot;+t.description:&quot;&quot;,r=t.keys||[];if(r.length&gt;0){for(var n=[],i=0;i&lt;r.length;i++)n[i]=&quot;`&quot;+r[i]+&quot;`&quot;;e+=&quot;Finally, the template string has access to &quot;,e=1===r.length?&quot;variable &quot;+n[0]:&quot;variables &quot;+n.slice(0,-1).join(&quot;, &quot;)+&quot; and &quot;+n.slice(-1)+&quot;.&quot;}return e}r.hovertemplateAttrs=function(t,e){t=t||{};n(e=e||{});var r={valType:&quot;string&quot;,dflt:&quot;&quot;,editType:t.editType||&quot;none&quot;};return!1!==t.arrayOk&amp;&amp;(r.arrayOk=!0),r},r.texttemplateAttrs=function(t,e){t=t||{};n(e=e||{});var r={valType:&quot;string&quot;,dflt:&quot;&quot;,editType:t.editType||&quot;calc&quot;};return!1!==t.arrayOk&amp;&amp;(r.arrayOk=!0),r}},{&quot;../constants/docs&quot;:748}],907:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./ternary&quot;),i=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,a=t(&quot;../../lib&quot;).counterRegex;r.name=&quot;ternary&quot;;var o=r.attr=&quot;subplot&quot;;r.idRoot=&quot;ternary&quot;,r.idRegex=r.attrRegex=a(&quot;ternary&quot;),(r.attributes={})[o]={valType:&quot;subplotid&quot;,dflt:&quot;ternary&quot;,editType:&quot;calc&quot;},r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t.calcdata,a=e._subplots.ternary,o=0;o&lt;a.length;o++){var s=a[o],l=i(r,&quot;ternary&quot;,s),c=e[s]._subplot;c||(c=new n({id:s,graphDiv:t,container:e._ternarylayer.node()},e),e[s]._subplot=c),c.plot(l,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.ternary||[],a=0;a&lt;i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&amp;&amp;s&amp;&amp;(s.plotContainer.remove(),s.clipDef.remove(),s.clipDefRelative.remove(),s.layers[&quot;a-title&quot;].remove(),s.layers[&quot;b-title&quot;].remove(),s.layers[&quot;c-title&quot;].remove())}}},{&quot;../../lib&quot;:778,&quot;../../plots/get_data&quot;:865,&quot;./layout_attributes&quot;:908,&quot;./layout_defaults&quot;:909,&quot;./ternary&quot;:910}],908:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../domain&quot;).attributes,a=t(&quot;../cartesian/layout_attributes&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../lib/extend&quot;).extendFlat,l={title:{text:a.title.text,font:a.title.font},color:a.color,tickmode:a.tickmode,nticks:s({},a.nticks,{dflt:6,min:1}),tick0:a.tick0,dtick:a.dtick,tickvals:a.tickvals,ticktext:a.ticktext,ticks:a.ticks,ticklen:a.ticklen,tickwidth:a.tickwidth,tickcolor:a.tickcolor,showticklabels:a.showticklabels,showtickprefix:a.showtickprefix,tickprefix:a.tickprefix,showticksuffix:a.showticksuffix,ticksuffix:a.ticksuffix,showexponent:a.showexponent,exponentformat:a.exponentformat,minexponent:a.minexponent,separatethousands:a.separatethousands,tickfont:a.tickfont,tickangle:a.tickangle,tickformat:a.tickformat,tickformatstops:a.tickformatstops,hoverformat:a.hoverformat,showline:s({},a.showline,{dflt:!0}),linecolor:a.linecolor,linewidth:a.linewidth,showgrid:s({},a.showgrid,{dflt:!0}),gridcolor:a.gridcolor,gridwidth:a.gridwidth,layer:a.layer,min:{valType:&quot;number&quot;,dflt:0,min:0},_deprecated:{title:a._deprecated.title,titlefont:a._deprecated.titlefont}},c=e.exports=o({domain:i({name:&quot;ternary&quot;}),bgcolor:{valType:&quot;color&quot;,dflt:n.background},sum:{valType:&quot;number&quot;,dflt:1,min:0},aaxis:l,baxis:l,caxis:l},&quot;plot&quot;,&quot;from-root&quot;);c.uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;},c.aaxis.uirevision=c.baxis.uirevision=c.caxis.uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../cartesian/layout_attributes&quot;:842,&quot;../domain&quot;:855}],909:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../subplot_defaults&quot;),s=t(&quot;../cartesian/tick_label_defaults&quot;),l=t(&quot;../cartesian/tick_mark_defaults&quot;),c=t(&quot;../cartesian/tick_value_defaults&quot;),u=t(&quot;../cartesian/line_grid_defaults&quot;),f=t(&quot;./layout_attributes&quot;),h=[&quot;aaxis&quot;,&quot;baxis&quot;,&quot;caxis&quot;];function p(t,e,r,a){var o,s,l,c=r(&quot;bgcolor&quot;),u=r(&quot;sum&quot;);a.bgColor=n.combine(c,a.paper_bgcolor);for(var f=0;f&lt;h.length;f++)s=t[o=h[f]]||{},(l=i.newContainer(e,o))._name=o,d(s,l,a,e);var p=e.aaxis,g=e.baxis,m=e.caxis;p.min+g.min+m.min&gt;=u&amp;&amp;(p.min=0,g.min=0,m.min=0,t.aaxis&amp;&amp;delete t.aaxis.min,t.baxis&amp;&amp;delete t.baxis.min,t.caxis&amp;&amp;delete t.caxis.min)}function d(t,e,r,n){var i=f[e._name];function o(r,n){return a.coerce(t,e,i,r,n)}o(&quot;uirevision&quot;,n.uirevision),e.type=&quot;linear&quot;;var h=o(&quot;color&quot;),p=h!==i.color.dflt?h:r.font.color,d=e._name.charAt(0).toUpperCase(),g=&quot;Component &quot;+d,m=o(&quot;title.text&quot;,g);e._hovertitle=m===g?m:d,a.coerceFont(o,&quot;title.font&quot;,{family:r.font.family,size:Math.round(1.2*r.font.size),color:p}),o(&quot;min&quot;),c(t,e,o,&quot;linear&quot;),s(t,e,o,&quot;linear&quot;,{}),l(t,e,o,{outerTicks:!0}),o(&quot;showticklabels&quot;)&amp;&amp;(a.coerceFont(o,&quot;tickfont&quot;,{family:r.font.family,size:r.font.size,color:p}),o(&quot;tickangle&quot;),o(&quot;tickformat&quot;)),u(t,e,o,{dfltColor:h,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),o(&quot;hoverformat&quot;),o(&quot;layer&quot;)}e.exports=function(t,e,r){o(t,e,r,{type:&quot;ternary&quot;,attributes:f,handleDefaults:p,font:e.font,paper_bgcolor:e.paper_bgcolor})}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../cartesian/line_grid_defaults&quot;:844,&quot;../cartesian/tick_label_defaults&quot;:849,&quot;../cartesian/tick_mark_defaults&quot;:850,&quot;../cartesian/tick_value_defaults&quot;:851,&quot;../subplot_defaults&quot;:905,&quot;./layout_attributes&quot;:908}],910:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=o._,c=t(&quot;../../components/color&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../cartesian/set_convert&quot;),h=t(&quot;../../lib/extend&quot;).extendFlat,p=t(&quot;../plots&quot;),d=t(&quot;../cartesian/axes&quot;),g=t(&quot;../../components/dragelement&quot;),m=t(&quot;../../components/fx&quot;),v=t(&quot;../../components/dragelement/helpers&quot;),y=v.freeMode,x=v.rectMode,b=t(&quot;../../components/titles&quot;),_=t(&quot;../cartesian/select&quot;).prepSelect,w=t(&quot;../cartesian/select&quot;).selectOnClick,T=t(&quot;../cartesian/select&quot;).clearSelect,k=t(&quot;../cartesian/select&quot;).clearSelectionsCache,M=t(&quot;../cartesian/constants&quot;);function A(t,e){this.id=t.id,this.graphDiv=t.graphDiv,this.init(e),this.makeFramework(e),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}e.exports=A;var S=A.prototype;S.init=function(t){this.container=t._ternarylayer,this.defs=t._defs,this.layoutId=t._uid,this.traceHash={},this.layers={}},S.plot=function(t,e){var r=e[this.id],n=e._size;this._hasClipOnAxisFalse=!1;for(var i=0;i&lt;t.length;i++){if(!1===t[i][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(r),this.adjustLayout(r,n),p.generalUpdatePerTraceModule(this.graphDiv,this,t,r),this.layers.plotbg.select(&quot;path&quot;).call(c.fill,r.bgcolor)},S.makeFramework=function(t){var e=this.graphDiv,r=t[this.id],n=this.clipId=&quot;clip&quot;+this.layoutId+this.id,i=this.clipIdRelative=&quot;clip-relative&quot;+this.layoutId+this.id;this.clipDef=o.ensureSingleById(t._clips,&quot;clipPath&quot;,n,(function(t){t.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;)})),this.clipDefRelative=o.ensureSingleById(t._clips,&quot;clipPath&quot;,i,(function(t){t.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;)})),this.plotContainer=o.ensureSingle(this.container,&quot;g&quot;,this.id),this.updateLayers(r),u.setClipUrl(this.layers.backplot,n,e),u.setClipUrl(this.layers.grids,n,e)},S.updateLayers=function(t){var e=this.layers,r=[&quot;draglayer&quot;,&quot;plotbg&quot;,&quot;backplot&quot;,&quot;grids&quot;];&quot;below traces&quot;===t.aaxis.layer&amp;&amp;r.push(&quot;aaxis&quot;,&quot;aline&quot;),&quot;below traces&quot;===t.baxis.layer&amp;&amp;r.push(&quot;baxis&quot;,&quot;bline&quot;),&quot;below traces&quot;===t.caxis.layer&amp;&amp;r.push(&quot;caxis&quot;,&quot;cline&quot;),r.push(&quot;frontplot&quot;),&quot;above traces&quot;===t.aaxis.layer&amp;&amp;r.push(&quot;aaxis&quot;,&quot;aline&quot;),&quot;above traces&quot;===t.baxis.layer&amp;&amp;r.push(&quot;baxis&quot;,&quot;bline&quot;),&quot;above traces&quot;===t.caxis.layer&amp;&amp;r.push(&quot;caxis&quot;,&quot;cline&quot;);var i=this.plotContainer.selectAll(&quot;g.toplevel&quot;).data(r,String),a=[&quot;agrid&quot;,&quot;bgrid&quot;,&quot;cgrid&quot;];i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;toplevel &quot;+t})).each((function(t){var r=n.select(this);e[t]=r,&quot;frontplot&quot;===t?r.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0):&quot;backplot&quot;===t?r.append(&quot;g&quot;).classed(&quot;maplayer&quot;,!0):&quot;plotbg&quot;===t?r.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;):&quot;aline&quot;===t||&quot;bline&quot;===t||&quot;cline&quot;===t?r.append(&quot;path&quot;):&quot;grids&quot;===t&amp;&amp;a.forEach((function(t){e[t]=r.append(&quot;g&quot;).classed(&quot;grid &quot;+t,!0)}))})),i.order()};var E=Math.sqrt(4/3);S.adjustLayout=function(t,e){var r,n,i,a,o,l,p=this,d=t.domain,g=(d.x[0]+d.x[1])/2,m=(d.y[0]+d.y[1])/2,v=d.x[1]-d.x[0],y=d.y[1]-d.y[0],x=v*e.w,b=y*e.h,_=t.sum,w=t.aaxis.min,T=t.baxis.min,k=t.caxis.min;x&gt;E*b?i=(a=b)*E:a=(i=x)/E,o=v*i/x,l=y*a/b,r=e.l+e.w*g-i/2,n=e.t+e.h*(1-m)-a/2,p.x0=r,p.y0=n,p.w=i,p.h=a,p.sum=_,p.xaxis={type:&quot;linear&quot;,range:[w+2*k-_,_-w-2*T],domain:[g-o/2,g+o/2],_id:&quot;x&quot;},f(p.xaxis,p.graphDiv._fullLayout),p.xaxis.setScale(),p.xaxis.isPtWithinRange=function(t){return t.a&gt;=p.aaxis.range[0]&amp;&amp;t.a&lt;=p.aaxis.range[1]&amp;&amp;t.b&gt;=p.baxis.range[1]&amp;&amp;t.b&lt;=p.baxis.range[0]&amp;&amp;t.c&gt;=p.caxis.range[1]&amp;&amp;t.c&lt;=p.caxis.range[0]},p.yaxis={type:&quot;linear&quot;,range:[w,_-T-k],domain:[m-l/2,m+l/2],_id:&quot;y&quot;},f(p.yaxis,p.graphDiv._fullLayout),p.yaxis.setScale(),p.yaxis.isPtWithinRange=function(){return!0};var M=p.yaxis.domain[0],A=p.aaxis=h({},t.aaxis,{range:[w,_-T-k],side:&quot;left&quot;,tickangle:(+t.aaxis.tickangle||0)-30,domain:[M,M+l*E],anchor:&quot;free&quot;,position:0,_id:&quot;y&quot;,_length:i});f(A,p.graphDiv._fullLayout),A.setScale();var S=p.baxis=h({},t.baxis,{range:[_-w-k,T],side:&quot;bottom&quot;,domain:p.xaxis.domain,anchor:&quot;free&quot;,position:0,_id:&quot;x&quot;,_length:i});f(S,p.graphDiv._fullLayout),S.setScale();var C=p.caxis=h({},t.caxis,{range:[_-w-T,k],side:&quot;right&quot;,tickangle:(+t.caxis.tickangle||0)+30,domain:[M,M+l*E],anchor:&quot;free&quot;,position:0,_id:&quot;y&quot;,_length:i});f(C,p.graphDiv._fullLayout),C.setScale();var L=&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;h&quot;+i+&quot;l-&quot;+i/2+&quot;,-&quot;+a+&quot;Z&quot;;p.clipDef.select(&quot;path&quot;).attr(&quot;d&quot;,L),p.layers.plotbg.select(&quot;path&quot;).attr(&quot;d&quot;,L);var I=&quot;M0,&quot;+a+&quot;h&quot;+i+&quot;l-&quot;+i/2+&quot;,-&quot;+a+&quot;Z&quot;;p.clipDefRelative.select(&quot;path&quot;).attr(&quot;d&quot;,I);var P=s(r,n);p.plotContainer.selectAll(&quot;.scatterlayer,.maplayer&quot;).attr(&quot;transform&quot;,P),p.clipDefRelative.select(&quot;path&quot;).attr(&quot;transform&quot;,null);var z=s(r-S._offset,n+a);p.layers.baxis.attr(&quot;transform&quot;,z),p.layers.bgrid.attr(&quot;transform&quot;,z);var O=s(r+i/2,n)+&quot;rotate(30)&quot;+s(0,-A._offset);p.layers.aaxis.attr(&quot;transform&quot;,O),p.layers.agrid.attr(&quot;transform&quot;,O);var D=s(r+i/2,n)+&quot;rotate(-30)&quot;+s(0,-C._offset);p.layers.caxis.attr(&quot;transform&quot;,D),p.layers.cgrid.attr(&quot;transform&quot;,D),p.drawAxes(!0),p.layers.aline.select(&quot;path&quot;).attr(&quot;d&quot;,A.showline?&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;l&quot;+i/2+&quot;,-&quot;+a:&quot;M0,0&quot;).call(c.stroke,A.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(A.linewidth||0)+&quot;px&quot;),p.layers.bline.select(&quot;path&quot;).attr(&quot;d&quot;,S.showline?&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;h&quot;+i:&quot;M0,0&quot;).call(c.stroke,S.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(S.linewidth||0)+&quot;px&quot;),p.layers.cline.select(&quot;path&quot;).attr(&quot;d&quot;,C.showline?&quot;M&quot;+(r+i/2)+&quot;,&quot;+n+&quot;l&quot;+i/2+&quot;,&quot;+a:&quot;M0,0&quot;).call(c.stroke,C.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(C.linewidth||0)+&quot;px&quot;),p.graphDiv._context.staticPlot||p.initInteractions(),u.setClipUrl(p.layers.frontplot,p._hasClipOnAxisFalse?null:p.clipId,p.graphDiv)},S.drawAxes=function(t){var e=this.graphDiv,r=this.id.substr(7)+&quot;title&quot;,n=this.layers,i=this.aaxis,a=this.baxis,o=this.caxis;if(this.drawAx(i),this.drawAx(a),this.drawAx(o),t){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(o.showticklabels?.75*o.tickfont.size:0)+(&quot;outside&quot;===o.ticks?.87*o.ticklen:0)),c=(a.showticklabels?a.tickfont.size:0)+(&quot;outside&quot;===a.ticks?a.ticklen:0)+3;n[&quot;a-title&quot;]=b.draw(e,&quot;a&quot;+r,{propContainer:i,propName:this.id+&quot;.aaxis.title&quot;,placeholder:l(e,&quot;Click to enter Component A title&quot;),attributes:{x:this.x0+this.w/2,y:this.y0-i.title.font.size/3-s,&quot;text-anchor&quot;:&quot;middle&quot;}}),n[&quot;b-title&quot;]=b.draw(e,&quot;b&quot;+r,{propContainer:a,propName:this.id+&quot;.baxis.title&quot;,placeholder:l(e,&quot;Click to enter Component B title&quot;),attributes:{x:this.x0-c,y:this.y0+this.h+.83*a.title.font.size+c,&quot;text-anchor&quot;:&quot;middle&quot;}}),n[&quot;c-title&quot;]=b.draw(e,&quot;c&quot;+r,{propContainer:o,propName:this.id+&quot;.caxis.title&quot;,placeholder:l(e,&quot;Click to enter Component C title&quot;),attributes:{x:this.x0+this.w+c,y:this.y0+this.h+.83*o.title.font.size+c,&quot;text-anchor&quot;:&quot;middle&quot;}})}},S.drawAx=function(t){var e,r=this.graphDiv,n=t._name,i=n.charAt(0),a=t._id,s=this.layers[n],l=i+&quot;tickLayout&quot;,c=(e=t).ticks+String(e.ticklen)+String(e.showticklabels);this[l]!==c&amp;&amp;(s.selectAll(&quot;.&quot;+a+&quot;tick&quot;).remove(),this[l]=c),t.setScale();var u=d.calcTicks(t),f=d.clipEnds(t,u),h=d.makeTransTickFn(t),p=d.getTickSigns(t)[2],g=o.deg2rad(30),m=p*(t.linewidth||1)/2,v=p*t.ticklen,y=this.w,x=this.h,b=&quot;b&quot;===i?&quot;M0,&quot;+m+&quot;l&quot;+Math.sin(g)*v+&quot;,&quot;+Math.cos(g)*v:&quot;M&quot;+m+&quot;,0l&quot;+Math.cos(g)*v+&quot;,&quot;+-Math.sin(g)*v,_={a:&quot;M0,0l&quot;+x+&quot;,-&quot;+y/2,b:&quot;M0,0l-&quot;+y/2+&quot;,-&quot;+x,c:&quot;M0,0l-&quot;+x+&quot;,&quot;+y/2}[i];d.drawTicks(r,t,{vals:&quot;inside&quot;===t.ticks?f:u,layer:s,path:b,transFn:h,crisp:!1}),d.drawGrid(r,t,{vals:f,layer:this.layers[i+&quot;grid&quot;],path:_,transFn:h,crisp:!1}),d.drawLabels(r,t,{vals:u,layer:s,transFn:h,labelFns:d.makeLabelFns(t,0,30)})};var C=M.MINZOOM/2+.87,L=&quot;m-0.87,.5h&quot;+C+&quot;v3h-&quot;+(C+5.2)+&quot;l&quot;+(C/2+2.6)+&quot;,-&quot;+(.87*C+4.5)+&quot;l2.6,1.5l-&quot;+C/2+&quot;,&quot;+.87*C+&quot;Z&quot;,I=&quot;m0.87,.5h-&quot;+C+&quot;v3h&quot;+(C+5.2)+&quot;l-&quot;+(C/2+2.6)+&quot;,-&quot;+(.87*C+4.5)+&quot;l-2.6,1.5l&quot;+C/2+&quot;,&quot;+.87*C+&quot;Z&quot;,P=&quot;m0,1l&quot;+C/2+&quot;,&quot;+.87*C+&quot;l2.6,-1.5l-&quot;+(C/2+2.6)+&quot;,-&quot;+(.87*C+4.5)+&quot;l-&quot;+(C/2+2.6)+&quot;,&quot;+(.87*C+4.5)+&quot;l2.6,1.5l&quot;+C/2+&quot;,-&quot;+.87*C+&quot;Z&quot;,z=!0;function O(t){n.select(t).selectAll(&quot;.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners&quot;).remove()}S.clearSelect=function(){k(this.dragOptions),T(this.dragOptions.gd)},S.initInteractions=function(){var t,e,r,n,f,h,p,d,v,b,T,k,A=this,S=A.layers.plotbg.select(&quot;path&quot;).node(),C=A.graphDiv,D=C._fullLayout._zoomlayer;function R(t){var e={};return e[A.id+&quot;.aaxis.min&quot;]=t.a,e[A.id+&quot;.baxis.min&quot;]=t.b,e[A.id+&quot;.caxis.min&quot;]=t.c,e}function F(t,e){var r=C._fullLayout.clickmode;O(C),2===t&amp;&amp;(C.emit(&quot;plotly_doubleclick&quot;,null),a.call(&quot;_guiRelayout&quot;,C,R({a:0,b:0,c:0}))),r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;1===t&amp;&amp;w(e,C,[A.xaxis],[A.yaxis],A.id,A.dragOptions),r.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;m.click(C,e,A.id)}function B(t,e){return 1-e/A.h}function N(t,e){return 1-(t+(A.h-e)/Math.sqrt(3))/A.w}function j(t,e){return(t-(A.h-e)/Math.sqrt(3))/A.w}function U(i,a){var o=r+i*t,s=n+a*e,l=Math.max(0,Math.min(1,B(0,n),B(0,s))),c=Math.max(0,Math.min(1,N(r,n),N(o,s))),u=Math.max(0,Math.min(1,j(r,n),j(o,s))),g=(l/2+u)*A.w,m=(1-l/2-c)*A.w,y=(g+m)/2,x=m-g,_=(1-l)*A.h,w=_-x/E;x&lt;M.MINZOOM?(p=f,T.attr(&quot;d&quot;,v),k.attr(&quot;d&quot;,&quot;M0,0Z&quot;)):(p={a:f.a+l*h,b:f.b+c*h,c:f.c+u*h},T.attr(&quot;d&quot;,v+&quot;M&quot;+g+&quot;,&quot;+_+&quot;H&quot;+m+&quot;L&quot;+y+&quot;,&quot;+w+&quot;L&quot;+g+&quot;,&quot;+_+&quot;Z&quot;),k.attr(&quot;d&quot;,&quot;M&quot;+r+&quot;,&quot;+n+&quot;m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2ZM&quot;+g+&quot;,&quot;+_+L+&quot;M&quot;+m+&quot;,&quot;+_+I+&quot;M&quot;+y+&quot;,&quot;+w+P)),b||(T.transition().style(&quot;fill&quot;,d&gt;.2?&quot;rgba(0,0,0,0.4)&quot;:&quot;rgba(255,255,255,0.3)&quot;).duration(200),k.transition().style(&quot;opacity&quot;,1).duration(200),b=!0),C.emit(&quot;plotly_relayouting&quot;,R(p))}function V(){O(C),p!==f&amp;&amp;(a.call(&quot;_guiRelayout&quot;,C,R(p)),z&amp;&amp;C.data&amp;&amp;C._context.showTips&amp;&amp;(o.notifier(l(C,&quot;Double-click to zoom back out&quot;),&quot;long&quot;),z=!1))}function q(t,e){var r=t/A.xaxis._m,n=e/A.yaxis._m,i=[(p={a:f.a-n,b:f.b+(r+n)/2,c:f.c-(r-n)/2}).a,p.b,p.c].sort(o.sorterAsc),a=i.indexOf(p.a),l=i.indexOf(p.b),c=i.indexOf(p.c);i[0]&lt;0&amp;&amp;(i[1]+i[0]/2&lt;0?(i[2]+=i[0]+i[1],i[0]=i[1]=0):(i[2]+=i[0]/2,i[1]+=i[0]/2,i[0]=0),p={a:i[a],b:i[l],c:i[c]},e=(f.a-p.a)*A.yaxis._m,t=(f.c-p.c-f.b+p.b)*A.xaxis._m);var h=s(A.x0+t,A.y0+e);A.plotContainer.selectAll(&quot;.scatterlayer,.maplayer&quot;).attr(&quot;transform&quot;,h);var d=s(-t,-e);A.clipDefRelative.select(&quot;path&quot;).attr(&quot;transform&quot;,d),A.aaxis.range=[p.a,A.sum-p.b-p.c],A.baxis.range=[A.sum-p.a-p.c,p.b],A.caxis.range=[A.sum-p.a-p.b,p.c],A.drawAxes(!1),A._hasClipOnAxisFalse&amp;&amp;A.plotContainer.select(&quot;.scatterlayer&quot;).selectAll(&quot;.trace&quot;).call(u.hideOutsideRangePoints,A),C.emit(&quot;plotly_relayouting&quot;,R(p))}function H(){a.call(&quot;_guiRelayout&quot;,C,R(p))}this.dragOptions={element:S,gd:C,plotinfo:{id:A.id,domain:C._fullLayout[A.id].domain,xaxis:A.xaxis,yaxis:A.yaxis},subplot:A.id,prepFn:function(a,l,u){A.dragOptions.xaxes=[A.xaxis],A.dragOptions.yaxes=[A.yaxis],t=C._fullLayout._invScaleX,e=C._fullLayout._invScaleY;var g=A.dragOptions.dragmode=C._fullLayout.dragmode;y(g)?A.dragOptions.minDrag=1:A.dragOptions.minDrag=void 0,&quot;zoom&quot;===g?(A.dragOptions.moveFn=U,A.dragOptions.clickFn=F,A.dragOptions.doneFn=V,function(t,e,a){var l=S.getBoundingClientRect();r=e-l.left,n=a-l.top,C._fullLayout._calcInverseTransform(C);var u=C._fullLayout._invTransform,g=o.apply3DTransform(u)(r,n);r=g[0],n=g[1],f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},p=f,h=A.aaxis.range[1]-f.a,d=i(A.graphDiv._fullLayout[A.id].bgcolor).getLuminance(),v=&quot;M0,&quot;+A.h+&quot;L&quot;+A.w/2+&quot;, 0L&quot;+A.w+&quot;,&quot;+A.h+&quot;Z&quot;,b=!1,T=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox&quot;).attr(&quot;transform&quot;,s(A.x0,A.y0)).style({fill:d&gt;.2?&quot;rgba(0,0,0,0)&quot;:&quot;rgba(255,255,255,0)&quot;,&quot;stroke-width&quot;:0}).attr(&quot;d&quot;,v),k=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).attr(&quot;transform&quot;,s(A.x0,A.y0)).style({fill:c.background,stroke:c.defaultLine,&quot;stroke-width&quot;:1,opacity:0}).attr(&quot;d&quot;,&quot;M0,0Z&quot;),A.clearSelect(C)}(0,l,u)):&quot;pan&quot;===g?(A.dragOptions.moveFn=q,A.dragOptions.clickFn=F,A.dragOptions.doneFn=H,f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},p=f,A.clearSelect(C)):(x(g)||y(g))&amp;&amp;_(a,l,u,A.dragOptions,g)}},S.onmousemove=function(t){m.hover(C,t,A.id),C._fullLayout._lasthover=S,C._fullLayout._hoversubplot=A.id},S.onmouseout=function(t){C._dragging||g.unhover(C,t)},g.init(this.dragOptions)}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../components/titles&quot;:738,&quot;../../lib&quot;:778,&quot;../../lib/extend&quot;:768,&quot;../../registry&quot;:911,&quot;../cartesian/axes&quot;:828,&quot;../cartesian/constants&quot;:834,&quot;../cartesian/select&quot;:847,&quot;../cartesian/set_convert&quot;:848,&quot;../plots&quot;:891,d3:169,tinycolor2:576}],911:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/loggers&quot;),i=t(&quot;./lib/noop&quot;),a=t(&quot;./lib/push_unique&quot;),o=t(&quot;./lib/is_plain_object&quot;),s=t(&quot;./lib/dom&quot;).addStyleRule,l=t(&quot;./lib/extend&quot;),c=t(&quot;./plots/attributes&quot;),u=t(&quot;./plots/layout_attributes&quot;),f=l.extendFlat,h=l.extendDeepAll;function p(t){var e=t.name,i=t.categories,a=t.meta;if(r.modules[e])n.log(&quot;Type &quot;+e+&quot; already registered&quot;);else{r.subplotsRegistry[t.basePlotModule.name]||function(t){var e=t.name;if(r.subplotsRegistry[e])return void n.log(&quot;Plot type &quot;+e+&quot; already registered.&quot;);for(var i in v(t),r.subplotsRegistry[e]=t,r.componentsRegistry)b(i,t.name)}(t.basePlotModule);for(var o={},l=0;l&lt;i.length;l++)o[i[l]]=!0,r.allCategories[i[l]]=!0;for(var c in r.modules[e]={_module:t,categories:o},a&amp;&amp;Object.keys(a).length&amp;&amp;(r.modules[e].meta=a),r.allTypes.push(e),r.componentsRegistry)y(c,e);t.layoutAttributes&amp;&amp;f(r.traceLayoutAttributes,t.layoutAttributes);var u=t.basePlotModule,h=u.name;if(&quot;mapbox&quot;===h){var p=u.constants.styleRules;for(var d in p)s(&quot;.js-plotly-plot .plotly .mapboxgl-&quot;+d,p[d])}&quot;geo&quot;!==h&amp;&amp;&quot;mapbox&quot;!==h||void 0===typeof window||void 0!==window.PlotlyGeoAssets||(window.PlotlyGeoAssets={topojson:{}})}}function d(t){if(&quot;string&quot;!=typeof t.name)throw new Error(&quot;Component module *name* must be a string.&quot;);var e=t.name;for(var n in r.componentsRegistry[e]=t,t.layoutAttributes&amp;&amp;(t.layoutAttributes._isLinkedToArray&amp;&amp;a(r.layoutArrayContainers,e),v(t)),r.modules)y(e,n);for(var i in r.subplotsRegistry)b(e,i);for(var o in r.transformsRegistry)x(e,o);t.schema&amp;&amp;t.schema.layout&amp;&amp;h(u,t.schema.layout)}function g(t){if(&quot;string&quot;!=typeof t.name)throw new Error(&quot;Transform module *name* must be a string.&quot;);var e=&quot;Transform module &quot;+t.name,i=&quot;function&quot;==typeof t.transform,a=&quot;function&quot;==typeof t.calcTransform;if(!i&amp;&amp;!a)throw new Error(e+&quot; is missing a *transform* or *calcTransform* method.&quot;);for(var s in i&amp;&amp;a&amp;&amp;n.log([e+&quot; has both a *transform* and *calcTransform* methods.&quot;,&quot;Please note that all *transform* methods are executed&quot;,&quot;before all *calcTransform* methods.&quot;].join(&quot; &quot;)),o(t.attributes)||n.log(e+&quot; registered without an *attributes* object.&quot;),&quot;function&quot;!=typeof t.supplyDefaults&amp;&amp;n.log(e+&quot; registered without a *supplyDefaults* method.&quot;),r.transformsRegistry[t.name]=t,r.componentsRegistry)x(s,t.name)}function m(t){var e=t.name,n=e.split(&quot;-&quot;)[0],i=t.dictionary,a=t.format,o=i&amp;&amp;Object.keys(i).length,s=a&amp;&amp;Object.keys(a).length,l=r.localeRegistry,c=l[e];if(c||(l[e]=c={}),n!==e){var u=l[n];u||(l[n]=u={}),o&amp;&amp;u.dictionary===c.dictionary&amp;&amp;(u.dictionary=i),s&amp;&amp;u.format===c.format&amp;&amp;(u.format=a)}o&amp;&amp;(c.dictionary=i),s&amp;&amp;(c.format=a)}function v(t){if(t.layoutAttributes){var e=t.layoutAttributes._arrayAttrRegexps;if(e)for(var n=0;n&lt;e.length;n++)a(r.layoutArrayRegexes,e[n])}}function y(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.traces){var i=n.traces[e];i&amp;&amp;h(r.modules[e]._module.attributes,i)}}function x(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.transforms){var i=n.transforms[e];i&amp;&amp;h(r.transformsRegistry[e].attributes,i)}}function b(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.subplots){var i=r.subplotsRegistry[e],a=i.layoutAttributes,o=&quot;subplot&quot;===i.attr?i.name:i.attr;Array.isArray(o)&amp;&amp;(o=o[0]);var s=n.subplots[o];a&amp;&amp;s&amp;&amp;h(a,s)}}function _(t){return&quot;object&quot;==typeof t&amp;&amp;(t=t.type),t}r.modules={},r.allCategories={},r.allTypes=[],r.subplotsRegistry={},r.transformsRegistry={},r.componentsRegistry={},r.layoutArrayContainers=[],r.layoutArrayRegexes=[],r.traceLayoutAttributes={},r.localeRegistry={},r.apiMethodRegistry={},r.collectableSubplotTypes=null,r.register=function(t){if(r.collectableSubplotTypes=null,!t)throw new Error(&quot;No argument passed to Plotly.register.&quot;);t&amp;&amp;!Array.isArray(t)&amp;&amp;(t=[t]);for(var e=0;e&lt;t.length;e++){var n=t[e];if(!n)throw new Error(&quot;Invalid module was attempted to be registered!&quot;);switch(n.moduleType){case&quot;trace&quot;:p(n);break;case&quot;transform&quot;:g(n);break;case&quot;component&quot;:d(n);break;case&quot;locale&quot;:m(n);break;case&quot;apiMethod&quot;:var i=n.name;r.apiMethodRegistry[i]=n.fn;break;default:throw new Error(&quot;Invalid module was attempted to be registered!&quot;)}}},r.getModule=function(t){var e=r.modules[_(t)];return!!e&amp;&amp;e._module},r.traceIs=function(t,e){if(&quot;various&quot;===(t=_(t)))return!1;var i=r.modules[t];return i||(t&amp;&amp;&quot;area&quot;!==t&amp;&amp;n.log(&quot;Unrecognized trace type &quot;+t+&quot;.&quot;),i=r.modules[c.type.dflt]),!!i.categories[e]},r.getTransformIndices=function(t,e){for(var r=[],n=t.transforms||[],i=0;i&lt;n.length;i++)n[i].type===e&amp;&amp;r.push(i);return r},r.hasTransform=function(t,e){for(var r=t.transforms||[],n=0;n&lt;r.length;n++)if(r[n].type===e)return!0;return!1},r.getComponentMethod=function(t,e){var n=r.componentsRegistry[t];return n&amp;&amp;n[e]||i},r.call=function(){var t=arguments[0],e=[].slice.call(arguments,1);return r.apiMethodRegistry[t].apply(null,e)}},{&quot;./lib/dom&quot;:766,&quot;./lib/extend&quot;:768,&quot;./lib/is_plain_object&quot;:779,&quot;./lib/loggers&quot;:782,&quot;./lib/noop&quot;:787,&quot;./lib/push_unique&quot;:793,&quot;./plots/attributes&quot;:824,&quot;./plots/layout_attributes&quot;:882}],912:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;),a=i.extendFlat,o=i.extendDeep;function s(t){var e;switch(t){case&quot;themes__thumb&quot;:e={autosize:!0,width:150,height:150,title:{text:&quot;&quot;},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case&quot;thumbnail&quot;:e={title:{text:&quot;&quot;},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:&quot;&quot;,margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:e={}}return e}e.exports=function(t,e){var r;t.framework&amp;&amp;t.framework.isPolar&amp;&amp;(t=t.framework.getConfig());var i,l=t.data,c=t.layout,u=o([],l),f=o({},c,s(e.tileClass)),h=t._context||{};if(e.width&amp;&amp;(f.width=e.width),e.height&amp;&amp;(f.height=e.height),&quot;thumbnail&quot;===e.tileClass||&quot;themes__thumb&quot;===e.tileClass){f.annotations=[];var p=Object.keys(f);for(r=0;r&lt;p.length;r++)i=p[r],[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;].indexOf(i.slice(0,5))&gt;-1&amp;&amp;(f[p[r]].title={text:&quot;&quot;});for(r=0;r&lt;u.length;r++){var d=u[r];d.showscale=!1,d.marker&amp;&amp;(d.marker.showscale=!1),n.traceIs(d,&quot;pie-like&quot;)&amp;&amp;(d.textposition=&quot;none&quot;)}}if(Array.isArray(e.annotations))for(r=0;r&lt;e.annotations.length;r++)f.annotations.push(e.annotations[r]);var g=Object.keys(f).filter((function(t){return t.match(/^scene\d*$/)}));if(g.length){var m={};for(&quot;thumbnail&quot;===e.tileClass&amp;&amp;(m={title:{text:&quot;&quot;},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),r=0;r&lt;g.length;r++){var v=f[g[r]];v.xaxis||(v.xaxis={}),v.yaxis||(v.yaxis={}),v.zaxis||(v.zaxis={}),a(v.xaxis,m),a(v.yaxis,m),a(v.zaxis,m),v._scene=null}}var y=document.createElement(&quot;div&quot;);e.tileClass&amp;&amp;(y.className=e.tileClass);var x={gd:y,td:y,layout:f,data:u,config:{staticPlot:void 0===e.staticPlot||e.staticPlot,plotGlPixelRatio:void 0===e.plotGlPixelRatio?2:e.plotGlPixelRatio,displaylogo:e.displaylogo||!1,showLink:e.showLink||!1,showTips:e.showTips||!1,mapboxAccessToken:h.mapboxAccessToken}};return&quot;transparent&quot;!==e.setBackground&amp;&amp;(x.config.setBackground=e.setBackground||&quot;opaque&quot;),x.gd.defaultLayout=s(e.tileClass),x}},{&quot;../lib&quot;:778,&quot;../registry&quot;:911}],913:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/to_image&quot;),a=t(&quot;./filesaver&quot;),o=t(&quot;./helpers&quot;);e.exports=function(t,e){var r;return n.isPlainObject(t)||(r=n.getGraphDiv(t)),(e=e||{}).format=e.format||&quot;png&quot;,e.width=e.width||null,e.height=e.height||null,e.imageDataOnly=!0,new Promise((function(s,l){r&amp;&amp;r._snapshotInProgress&amp;&amp;l(new Error(&quot;Snapshotting already in progress.&quot;)),n.isIE()&amp;&amp;&quot;svg&quot;!==e.format&amp;&amp;l(new Error(o.MSG_IE_BAD_FORMAT)),r&amp;&amp;(r._snapshotInProgress=!0);var c=i(t,e),u=e.filename||t.fn||&quot;newplot&quot;;u+=&quot;.&quot;+e.format.replace(&quot;-&quot;,&quot;.&quot;),c.then((function(t){return r&amp;&amp;(r._snapshotInProgress=!1),a(t,u,e.format)})).then((function(t){s(t)})).catch((function(t){r&amp;&amp;(r._snapshotInProgress=!1),l(t)}))}))}},{&quot;../lib&quot;:778,&quot;../plot_api/to_image&quot;:820,&quot;./filesaver&quot;:914,&quot;./helpers&quot;:915}],914:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;./helpers&quot;);e.exports=function(t,e,r){var a=document.createElement(&quot;a&quot;),o=&quot;download&quot;in a;return new Promise((function(s,l){var c,u;if(n.isIE9orBelow()&amp;&amp;l(new Error(&quot;IE &lt; 10 unsupported&quot;)),n.isSafari()){var f=&quot;svg&quot;===r?&quot;,&quot;:&quot;;base64,&quot;;return i.octetStream(f+encodeURIComponent(t)),s(e)}return n.isIE()?(c=i.createBlob(t,&quot;svg&quot;),window.navigator.msSaveBlob(c,e),c=null,s(e)):o?(c=i.createBlob(t,r),u=i.createObjectURL(c),a.href=u,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),i.revokeObjectURL(u),c=null,s(e)):void l(new Error(&quot;download error&quot;))}))}},{&quot;../lib&quot;:778,&quot;./helpers&quot;:915}],915:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);r.getDelay=function(t){return t._has&amp;&amp;(t._has(&quot;gl3d&quot;)||t._has(&quot;gl2d&quot;)||t._has(&quot;mapbox&quot;))?500:0},r.getRedrawFunc=function(t){return function(){var e=t._fullLayout||{};!(e._has&amp;&amp;e._has(&quot;polar&quot;))&amp;&amp;t.data&amp;&amp;t.data[0]&amp;&amp;t.data[0].r||n.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t)}},r.encodeSVG=function(t){return&quot;data:image/svg+xml,&quot;+encodeURIComponent(t)},r.encodeJSON=function(t){return&quot;data:application/json,&quot;+encodeURIComponent(t)};var i=window.URL||window.webkitURL;r.createObjectURL=function(t){return i.createObjectURL(t)},r.revokeObjectURL=function(t){return i.revokeObjectURL(t)},r.createBlob=function(t,e){if(&quot;svg&quot;===e)return new window.Blob([t],{type:&quot;image/svg+xml;charset=utf-8&quot;});if(&quot;full-json&quot;===e)return new window.Blob([t],{type:&quot;application/json;charset=utf-8&quot;});var r=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r),i=0;i&lt;e;i++)n[i]=t.charCodeAt(i);return r}(window.atob(t));return new window.Blob([r],{type:&quot;image/&quot;+e})},r.octetStream=function(t){document.location.href=&quot;data:application/octet-stream&quot;+t},r.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/,r.MSG_IE_BAD_FORMAT=&quot;Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.&quot;},{&quot;../registry&quot;:911}],916:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./helpers&quot;),i={getDelay:n.getDelay,getRedrawFunc:n.getRedrawFunc,clone:t(&quot;./cloneplot&quot;),toSVG:t(&quot;./tosvg&quot;),svgToImg:t(&quot;./svgtoimg&quot;),toImage:t(&quot;./toimage&quot;),downloadImage:t(&quot;./download&quot;)};e.exports=i},{&quot;./cloneplot&quot;:912,&quot;./download&quot;:913,&quot;./helpers&quot;:915,&quot;./svgtoimg&quot;:917,&quot;./toimage&quot;:918,&quot;./tosvg&quot;:919}],917:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;events&quot;).EventEmitter,a=t(&quot;./helpers&quot;);e.exports=function(t){var e=t.emitter||new i,r=new Promise((function(i,o){var s=window.Image,l=t.svg,c=t.format||&quot;png&quot;;if(n.isIE()&amp;&amp;&quot;svg&quot;!==c){var u=new Error(a.MSG_IE_BAD_FORMAT);return o(u),t.promise?r:e.emit(&quot;error&quot;,u)}var f,h,p=t.canvas,d=t.scale||1,g=t.width||300,m=t.height||150,v=d*g,y=d*m,x=p.getContext(&quot;2d&quot;),b=new s;&quot;svg&quot;===c||n.isIE9orBelow()||n.isSafari()?h=a.encodeSVG(l):(f=a.createBlob(l,&quot;svg&quot;),h=a.createObjectURL(f)),p.width=v,p.height=y,b.onload=function(){var r;switch(f=null,a.revokeObjectURL(h),&quot;svg&quot;!==c&amp;&amp;x.drawImage(b,0,0,v,y),c){case&quot;jpeg&quot;:r=p.toDataURL(&quot;image/jpeg&quot;);break;case&quot;png&quot;:r=p.toDataURL(&quot;image/png&quot;);break;case&quot;webp&quot;:r=p.toDataURL(&quot;image/webp&quot;);break;case&quot;svg&quot;:r=h;break;default:var n=&quot;Image format is not jpeg, png, svg or webp.&quot;;if(o(new Error(n)),!t.promise)return e.emit(&quot;error&quot;,n)}i(r),t.promise||e.emit(&quot;success&quot;,r)},b.onerror=function(r){if(f=null,a.revokeObjectURL(h),o(r),!t.promise)return e.emit(&quot;error&quot;,r)},b.src=h}));return t.promise?r:e}},{&quot;../lib&quot;:778,&quot;./helpers&quot;:915,events:110}],918:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;events&quot;).EventEmitter,i=t(&quot;../registry&quot;),a=t(&quot;../lib&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;./cloneplot&quot;),l=t(&quot;./tosvg&quot;),c=t(&quot;./svgtoimg&quot;);e.exports=function(t,e){var r=new n,u=s(t,{format:&quot;png&quot;}),f=u.gd;f.style.position=&quot;absolute&quot;,f.style.left=&quot;-5000px&quot;,document.body.appendChild(f);var h=o.getRedrawFunc(f);return i.call(&quot;plot&quot;,f,u.data,u.layout,u.config).then(h).then((function(){var t=o.getDelay(f._fullLayout);setTimeout((function(){var t=l(f),n=document.createElement(&quot;canvas&quot;);n.id=a.randstr(),(r=c({format:e.format,width:f._fullLayout.width,height:f._fullLayout.height,canvas:n,emitter:r,svg:t})).clean=function(){f&amp;&amp;document.body.removeChild(f)}}),t)})).catch((function(t){r.emit(&quot;error&quot;,t)})),r}},{&quot;../lib&quot;:778,&quot;../registry&quot;:911,&quot;./cloneplot&quot;:912,&quot;./helpers&quot;:915,&quot;./svgtoimg&quot;:917,&quot;./tosvg&quot;:919,events:110}],919:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../components/drawing&quot;),o=t(&quot;../components/color&quot;),s=t(&quot;../constants/xmlns_namespaces&quot;),l=/&quot;/g,c=new RegExp('(&quot;TOBESTRIPPED)|(TOBESTRIPPED&quot;)',&quot;g&quot;);e.exports=function(t,e,r){var u,f=t._fullLayout,h=f._paper,p=f._toppaper,d=f.width,g=f.height;h.insert(&quot;rect&quot;,&quot;:first-child&quot;).call(a.setRect,0,0,d,g).call(o.fill,f.paper_bgcolor);var m=f._basePlotModules||[];for(u=0;u&lt;m.length;u++){var v=m[u];v.toSVG&amp;&amp;v.toSVG(t)}if(p){var y=p.node().childNodes,x=Array.prototype.slice.call(y);for(u=0;u&lt;x.length;u++){var b=x[u];b.childNodes.length&amp;&amp;h.node().appendChild(b)}}if(f._draggers&amp;&amp;f._draggers.remove(),h.node().style.background=&quot;&quot;,h.selectAll(&quot;text&quot;).attr({&quot;data-unformatted&quot;:null,&quot;data-math&quot;:null}).each((function(){var t=n.select(this);if(&quot;hidden&quot;!==this.style.visibility&amp;&amp;&quot;none&quot;!==this.style.display){t.style({visibility:null,display:null});var e=this.style.fontFamily;e&amp;&amp;-1!==e.indexOf('&quot;')&amp;&amp;t.style(&quot;font-family&quot;,e.replace(l,&quot;TOBESTRIPPED&quot;))}else t.remove()})),f._gradientUrlQueryParts){var _=[];for(var w in f._gradientUrlQueryParts)_.push(w);_.length&amp;&amp;h.selectAll(_.join(&quot;,&quot;)).each((function(){var t=n.select(this),e=this.style.fill;e&amp;&amp;-1!==e.indexOf(&quot;url(&quot;)&amp;&amp;t.style(&quot;fill&quot;,e.replace(l,&quot;TOBESTRIPPED&quot;));var r=this.style.stroke;r&amp;&amp;-1!==r.indexOf(&quot;url(&quot;)&amp;&amp;t.style(&quot;stroke&quot;,r.replace(l,&quot;TOBESTRIPPED&quot;))}))}&quot;pdf&quot;!==e&amp;&amp;&quot;eps&quot;!==e||h.selectAll(&quot;#MathJax_SVG_glyphs path&quot;).attr(&quot;stroke-width&quot;,0),h.node().setAttributeNS(s.xmlns,&quot;xmlns&quot;,s.svg),h.node().setAttributeNS(s.xmlns,&quot;xmlns:xlink&quot;,s.xlink),&quot;svg&quot;===e&amp;&amp;r&amp;&amp;(h.attr(&quot;width&quot;,r*d),h.attr(&quot;height&quot;,r*g),h.attr(&quot;viewBox&quot;,&quot;0 0 &quot;+d+&quot; &quot;+g));var T=(new window.XMLSerializer).serializeToString(h.node());return T=function(t){var e=n.select(&quot;body&quot;).append(&quot;div&quot;).style({display:&quot;none&quot;}).html(&quot;&quot;),r=t.replace(/(&amp;[^;]*;)/gi,(function(t){return&quot;&amp;lt;&quot;===t?&quot;&amp;#60;&quot;:&quot;&amp;rt;&quot;===t?&quot;&amp;#62;&quot;:-1!==t.indexOf(&quot;&lt;&quot;)||-1!==t.indexOf(&quot;&gt;&quot;)?&quot;&quot;:e.html(t).text()}));return e.remove(),r}(T),T=(T=T.replace(/&amp;(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,&quot;&amp;amp;&quot;)).replace(c,&quot;'&quot;),i.isIE()&amp;&amp;(T=(T=(T=T.replace(/&quot;/gi,&quot;'&quot;)).replace(/(\('#)([^']*)('\))/gi,'(&quot;#$2&quot;)')).replace(/(\\')/gi,'&quot;')),T}},{&quot;../components/color&quot;:643,&quot;../components/drawing&quot;:665,&quot;../constants/xmlns_namespaces&quot;:754,&quot;../lib&quot;:778,d3:169}],920:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;);var i=e.marker;if(i){n.mergeArray(i.opacity,t,&quot;mo&quot;,!0),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;a&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;))}}},{&quot;../../lib&quot;:778}],921:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/font_attributes&quot;),l=t(&quot;./constants&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat,u=s({editType:&quot;calc&quot;,arrayOk:!0,colorEditType:&quot;style&quot;}),f=c({},n.marker.line.width,{dflt:0}),h=c({width:f,editType:&quot;calc&quot;},o(&quot;marker.line&quot;)),p=c({line:h,editType:&quot;calc&quot;},o(&quot;marker&quot;),{opacity:{valType:&quot;number&quot;,arrayOk:!0,dflt:1,min:0,max:1,editType:&quot;style&quot;}});e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,text:n.text,texttemplate:a({editType:&quot;plot&quot;},{keys:l.eventDataKeys}),hovertext:n.hovertext,hovertemplate:i({},{keys:l.eventDataKeys}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;auto&quot;,&quot;none&quot;],dflt:&quot;none&quot;,arrayOk:!0,editType:&quot;calc&quot;},insidetextanchor:{valType:&quot;enumerated&quot;,values:[&quot;end&quot;,&quot;middle&quot;,&quot;start&quot;],dflt:&quot;end&quot;,editType:&quot;plot&quot;},textangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;plot&quot;},textfont:c({},u,{}),insidetextfont:c({},u,{}),outsidetextfont:c({},u,{}),constraintext:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;both&quot;,&quot;none&quot;],dflt:&quot;both&quot;,editType:&quot;calc&quot;},cliponaxis:c({},n.cliponaxis,{}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc+clearAxisTypes&quot;},base:{valType:&quot;any&quot;,dflt:null,arrayOk:!0,editType:&quot;calc&quot;},offset:{valType:&quot;number&quot;,dflt:null,arrayOk:!0,editType:&quot;calc&quot;},width:{valType:&quot;number&quot;,dflt:null,min:0,arrayOk:!0,editType:&quot;calc&quot;},marker:p,offsetgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},alignmentgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},selected:{marker:{opacity:n.selected.marker.opacity,color:n.selected.marker.color,editType:&quot;style&quot;},textfont:n.selected.textfont,editType:&quot;style&quot;},unselected:{marker:{opacity:n.unselected.marker.opacity,color:n.unselected.marker.color,editType:&quot;style&quot;},textfont:n.unselected.textfont,editType:&quot;style&quot;},r:n.r,t:n.t,_deprecated:{bardir:{valType:&quot;enumerated&quot;,editType:&quot;calc&quot;,values:[&quot;v&quot;,&quot;h&quot;]}}}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:923}],922:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,o=t(&quot;../../components/colorscale/calc&quot;),s=t(&quot;./arrays_to_calcdata&quot;),l=t(&quot;../scatter/calc_selection&quot;);e.exports=function(t,e){var r,c,u,f,h=n.getFromId(t,e.xaxis||&quot;x&quot;),p=n.getFromId(t,e.yaxis||&quot;y&quot;),d={msUTC:!(!e.base&amp;&amp;0!==e.base)};&quot;h&quot;===e.orientation?(r=h.makeCalcdata(e,&quot;x&quot;,d),u=p.makeCalcdata(e,&quot;y&quot;),c=i(e,p,&quot;y&quot;,u),f=!!e.yperiodalignment):(r=p.makeCalcdata(e,&quot;y&quot;,d),u=h.makeCalcdata(e,&quot;x&quot;),c=i(e,h,&quot;x&quot;,u),f=!!e.xperiodalignment);for(var g=Math.min(c.length,r.length),m=new Array(g),v=0;v&lt;g;v++)m[v]={p:c[v],s:r[v]},f&amp;&amp;(m[v].orig_p=u[v]),e.ids&amp;&amp;(m[v].id=String(e.ids[v]));return a(e,&quot;marker&quot;)&amp;&amp;o(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),a(e,&quot;marker.line&quot;)&amp;&amp;o(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}),s(m,e),l(m,e),m}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc_selection&quot;:1189,&quot;./arrays_to_calcdata&quot;:920}],923:[function(t,e,r){&quot;use strict&quot;;e.exports={TEXTPAD:3,eventDataKeys:[&quot;value&quot;,&quot;label&quot;]}},{}],924:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray,a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../registry&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,c=t(&quot;./sieve.js&quot;);function u(t,e,r,o,u){if(o.length){var b,_,w,T;switch(function(t,e){var r,a;for(r=0;r&lt;e.length;r++){var o,s=e[r],l=s[0].trace,c=&quot;funnel&quot;===l.type?l._base:l.base,u=&quot;h&quot;===l.orientation?l.xcalendar:l.ycalendar,f=&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?function(){return null}:t.d2c;if(i(c)){for(a=0;a&lt;Math.min(c.length,s.length);a++)o=f(c[a],0,u),n(o)?(s[a].b=+o,s[a].hasB=1):s[a].b=0;for(;a&lt;s.length;a++)s[a].b=0}else{o=f(c,0,u);var h=n(o);for(o=h?o:0,a=0;a&lt;s.length;a++)s[a].b=o,h&amp;&amp;(s[a].hasB=1)}}}(r,o),u.mode){case&quot;overlay&quot;:f(e,r,o,u);break;case&quot;group&quot;:for(b=[],_=[],w=0;w&lt;o.length;w++)void 0===(T=o[w])[0].trace.offset?_.push(T):b.push(T);_.length&amp;&amp;function(t,e,r,n,i){var o=new c(n,{sepNegVal:!1,overlapNoMerge:!i.norm});(function(t,e,r,n){for(var i=t._fullLayout,a=r.positions,o=r.distinctPositions,s=r.minDiff,c=r.traces,u=c.length,f=a.length!==o.length,h=s*(1-n.gap),m=l(i,e._id)+c[0][0].trace.orientation,v=i._alignmentOpts[m]||{},y=0;y&lt;u;y++){var x,b,_=c[y],w=_[0].trace,T=v[w.alignmentgroup]||{},k=Object.keys(T.offsetGroups||{}).length,M=(x=k?h/k:f?h/u:h)*(1-(n.groupgap||0));b=k?((2*w._offsetIndex+1-k)*x-M)/2:f?((2*y+1-u)*x-M)/2:-M/2;var A=_[0].t;A.barwidth=M,A.poffset=b,A.bargroupwidth=h,A.bardelta=s}r.binWidth=c[0][0].t.barwidth/100,p(r),d(e,r),g(e,r,f)})(t,e,o,i),function(t){for(var e=t.traces,r=0;r&lt;e.length;r++){var n=e[r];if(void 0===n[0].trace.base)for(var i=new c([n],{sepNegVal:!0,overlapNoMerge:!0}),o=0;o&lt;n.length;o++){var s=n[o];if(s.p!==a){var l=i.put(s.p,s.b+s.s);l&amp;&amp;(s.b=l)}}}}(o),i.norm?(v(o),y(r,o,i)):m(r,o)}(t,e,r,_,u),b.length&amp;&amp;f(e,r,b,u);break;case&quot;stack&quot;:case&quot;relative&quot;:for(b=[],_=[],w=0;w&lt;o.length;w++)void 0===(T=o[w])[0].trace.base?_.push(T):b.push(T);_.length&amp;&amp;function(t,e,r,n,i){var o=new c(n,{sepNegVal:&quot;relative&quot;===i.mode,overlapNoMerge:!(i.norm||&quot;stack&quot;===i.mode||&quot;relative&quot;===i.mode)});h(e,o,i),function(t,e,r){var n,i,o,l,c,u,f=x(t),h=e.traces;for(l=0;l&lt;h.length;l++)if(n=h[l],&quot;funnel&quot;===(i=n[0].trace).type)for(c=0;c&lt;n.length;c++)(u=n[c]).s!==a&amp;&amp;e.put(u.p,-.5*u.s);for(l=0;l&lt;h.length;l++){n=h[l],i=n[0].trace,o=&quot;funnel&quot;===i.type;var p=[];for(c=0;c&lt;n.length;c++)if((u=n[c]).s!==a){var d;d=o?u.s:u.s+u.b;var g=e.put(u.p,d),m=g+d;u.b=g,u[f]=m,r.norm||(p.push(m),u.hasB&amp;&amp;p.push(g))}r.norm||(i._extremes[t._id]=s.findExtremes(t,p,{tozero:!0,padded:!0}))}}(r,o,i);for(var l=0;l&lt;n.length;l++)for(var u=n[l],f=0;f&lt;u.length;f++){var p=u[f];if(p.s!==a)p.b+p.s===o.get(p.p,p.s)&amp;&amp;(p._outmost=!0)}i.norm&amp;&amp;y(r,o,i)}(0,e,r,_,u),b.length&amp;&amp;f(e,r,b,u)}!function(t,e){var r,i,a,o=x(e),s={},l=1/0,c=-1/0;for(r=0;r&lt;t.length;r++)for(a=t[r],i=0;i&lt;a.length;i++){var u=a[i].p;n(u)&amp;&amp;(l=Math.min(l,u),c=Math.max(c,u))}var f=1e4/(c-l),h=s.round=function(t){return String(Math.round(f*(t-l)))};for(r=0;r&lt;t.length;r++){(a=t[r])[0].t.extents=s;var p=a[0].t.poffset,d=Array.isArray(p);for(i=0;i&lt;a.length;i++){var g=a[i],m=g[o]-g.w/2;if(n(m)){var v=g[o]+g.w/2,y=h(g.p);s[y]?s[y]=[Math.min(m,s[y][0]),Math.max(v,s[y][1])]:s[y]=[m,v]}g.p0=g.p+(d?p[i]:p),g.p1=g.p0+g.w,g.s0=g.b,g.s1=g.s0+g.s}}}(o,e)}}function f(t,e,r,n){for(var i=0;i&lt;r.length;i++){var a=r[i],o=new c([a],{unitMinDiff:n.xCat||n.yCat,sepNegVal:!1,overlapNoMerge:!n.norm});h(t,o,n),n.norm?(v(o),y(e,o,n)):m(e,o)}}function h(t,e,r){for(var n=e.minDiff,i=e.traces,a=n*(1-r.gap),o=a*(1-(r.groupgap||0)),s=-o/2,l=0;l&lt;i.length;l++){var c=i[l][0].t;c.barwidth=o,c.poffset=s,c.bargroupwidth=a,c.bardelta=n}e.binWidth=i[0][0].t.barwidth/100,p(e),d(t,e),g(t,e)}function p(t){var e,r,a=t.traces;for(e=0;e&lt;a.length;e++){var o,s=a[e],l=s[0],c=l.trace,u=l.t,f=c._offset||c.offset,h=u.poffset;if(i(f)){for(o=Array.prototype.slice.call(f,0,s.length),r=0;r&lt;o.length;r++)n(o[r])||(o[r]=h);for(r=o.length;r&lt;s.length;r++)o.push(h);u.poffset=o}else void 0!==f&amp;&amp;(u.poffset=f);var p=c._width||c.width,d=u.barwidth;if(i(p)){var g=Array.prototype.slice.call(p,0,s.length);for(r=0;r&lt;g.length;r++)n(g[r])||(g[r]=d);for(r=g.length;r&lt;s.length;r++)g.push(d);if(u.barwidth=g,void 0===f){for(o=[],r=0;r&lt;s.length;r++)o.push(h+(d-g[r])/2);u.poffset=o}}else void 0!==p&amp;&amp;(u.barwidth=p,void 0===f&amp;&amp;(u.poffset=h+(d-p)/2))}}function d(t,e){for(var r=e.traces,n=x(t),i=0;i&lt;r.length;i++)for(var a=r[i],o=a[0].t,s=o.poffset,l=Array.isArray(s),c=o.barwidth,u=Array.isArray(c),f=0;f&lt;a.length;f++){var h=a[f],p=h.w=u?c[f]:c;h[n]=h.p+(l?s[f]:s)+p/2}}function g(t,e,r){var n=e.traces,i=e.minDiff/2;s.minDtick(t,e.minDiff,e.distinctPositions[0],r);for(var a=0;a&lt;n.length;a++){var o,l,c,u,f=n[a],h=f[0],p=h.trace,d=[];for(u=0;u&lt;f.length;u++)l=(o=f[u]).p-i,c=o.p+i,d.push(l,c);if(p.width||p.offset){var g=h.t,m=g.poffset,v=g.barwidth,y=Array.isArray(m),x=Array.isArray(v);for(u=0;u&lt;f.length;u++){o=f[u];var b=y?m[u]:m,_=x?v[u]:v;c=(l=o.p+b)+_,d.push(l,c)}}p._extremes[t._id]=s.findExtremes(t,d,{padded:!1})}}function m(t,e){for(var r=e.traces,n=x(t),i=0;i&lt;r.length;i++){for(var a=r[i],o=a[0].trace,l=[],c=!1,u=0;u&lt;a.length;u++){var f=a[u],h=f.b,p=h+f.s;f[n]=p,l.push(p),f.hasB&amp;&amp;l.push(h),f.hasB&amp;&amp;f.b||(c=!0)}o._extremes[t._id]=s.findExtremes(t,l,{tozero:c,padded:!0})}}function v(t){for(var e=t.traces,r=0;r&lt;e.length;r++)for(var n=e[r],i=0;i&lt;n.length;i++){var o=n[i];o.s!==a&amp;&amp;t.put(o.p,o.b+o.s)}}function y(t,e,r){var i=e.traces,o=x(t),l=&quot;fraction&quot;===r.norm?1:100,c=l/1e9,u=t.l2c(t.c2l(0)),f=&quot;stack&quot;===r.mode?l:u;function h(e){return n(t.c2l(e))&amp;&amp;(e&lt;u-c||e&gt;f+c||!n(u))}for(var p=0;p&lt;i.length;p++){for(var d=i[p],g=d[0].trace,m=[],v=!1,y=!1,b=0;b&lt;d.length;b++){var _=d[b];if(_.s!==a){var w=Math.abs(l/e.get(_.p,_.s));_.b*=w,_.s*=w;var T=_.b,k=T+_.s;_[o]=k,m.push(k),y=y||h(k),_.hasB&amp;&amp;(m.push(T),y=y||h(T)),_.hasB&amp;&amp;_.b||(v=!0)}}g._extremes[t._id]=s.findExtremes(t,m,{tozero:v,padded:y})}}function x(t){return t._id.charAt(0)}e.exports={crossTraceCalc:function(t,e){for(var r=e.xaxis,n=e.yaxis,i=t._fullLayout,a=t._fullData,s=t.calcdata,l=[],c=[],f=0;f&lt;a.length;f++){var h=a[f];if(!0===h.visible&amp;&amp;o.traceIs(h,&quot;bar&quot;)&amp;&amp;h.xaxis===r._id&amp;&amp;h.yaxis===n._id&amp;&amp;(&quot;h&quot;===h.orientation?l.push(s[f]):c.push(s[f]),h._computePh))for(var p=t.calcdata[f],d=0;d&lt;p.length;d++)&quot;function&quot;==typeof p[d].ph0&amp;&amp;(p[d].ph0=p[d].ph0()),&quot;function&quot;==typeof p[d].ph1&amp;&amp;(p[d].ph1=p[d].ph1())}var g={xCat:&quot;category&quot;===r.type||&quot;multicategory&quot;===r.type,yCat:&quot;category&quot;===n.type||&quot;multicategory&quot;===n.type,mode:i.barmode,norm:i.barnorm,gap:i.bargap,groupgap:i.bargroupgap};u(t,r,n,c,g),u(t,n,r,l,g)},setGroupPositions:u}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/constraints&quot;:835,&quot;../../registry&quot;:911,&quot;./sieve.js&quot;:934,&quot;fast-isnumeric&quot;:241}],925:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./style_defaults&quot;),c=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,u=t(&quot;./attributes&quot;),f=n.coerceFont;function h(t,e,r,n){var i=e.orientation,a=e[{v:&quot;x&quot;,h:&quot;y&quot;}[i]+&quot;axis&quot;],o=c(r,a)+i,s=r._alignmentOpts||{},l=n(&quot;alignmentgroup&quot;),u=s[o];u||(u=s[o]={});var f=u[l];f?f.traces.push(e):f=u[l]={traces:[e],alignmentIndex:Object.keys(u).length,offsetGroups:{}};var h=n(&quot;offsetgroup&quot;),p=f.offsetGroups,d=p[h];h&amp;&amp;(d||(d=p[h]={offsetIndex:Object.keys(p).length}),e._offsetIndex=d.offsetIndex)}function p(t,e,r,i,a,o){var s=!(!1===(o=o||{}).moduleHasSelected),l=!(!1===o.moduleHasUnselected),c=!(!1===o.moduleHasConstrain),u=!(!1===o.moduleHasCliponaxis),h=!(!1===o.moduleHasTextangle),p=!(!1===o.moduleHasInsideanchor),d=!!o.hasPathbar,g=Array.isArray(a)||&quot;auto&quot;===a,m=g||&quot;inside&quot;===a,v=g||&quot;outside&quot;===a;if(m||v){var y=f(i,&quot;textfont&quot;,r.font),x=n.extendFlat({},y),b=!(t.textfont&amp;&amp;t.textfont.color);if(b&amp;&amp;delete x.color,f(i,&quot;insidetextfont&quot;,x),d){var _=n.extendFlat({},y);b&amp;&amp;delete _.color,f(i,&quot;pathbar.textfont&quot;,_)}v&amp;&amp;f(i,&quot;outsidetextfont&quot;,y),s&amp;&amp;i(&quot;selected.textfont.color&quot;),l&amp;&amp;i(&quot;unselected.textfont.color&quot;),c&amp;&amp;i(&quot;constraintext&quot;),u&amp;&amp;i(&quot;cliponaxis&quot;),h&amp;&amp;i(&quot;textangle&quot;),i(&quot;texttemplate&quot;)}m&amp;&amp;p&amp;&amp;i(&quot;insidetextanchor&quot;)}e.exports={supplyDefaults:function(t,e,r,c){function f(r,i){return n.coerce(t,e,u,r,i)}if(o(t,e,c,f)){s(t,e,c,f),f(&quot;orientation&quot;,e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;),f(&quot;base&quot;),f(&quot;offset&quot;),f(&quot;width&quot;),f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;);var h=f(&quot;textposition&quot;);p(t,e,c,f,h,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),l(t,e,f,r,c);var d=(e.marker.line||{}).color,g=a.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);g(t,e,d||i.defaultLine,{axis:&quot;y&quot;}),g(t,e,d||i.defaultLine,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1},crossTraceDefaults:function(t,e){var r;function i(t){return n.coerce(r._input,r,u,t)}if(&quot;group&quot;===e.barmode)for(var a=0;a&lt;t.length;a++)&quot;bar&quot;===(r=t[a]).type&amp;&amp;(r._input,h(0,r,e,i))},handleGroupingDefaults:h,handleText:p}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/constraints&quot;:835,&quot;../../registry&quot;:911,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:921,&quot;./style_defaults&quot;:936}],926:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),&quot;h&quot;===r.orientation?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}},{}],927:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../lib&quot;).isArrayOrTypedArray;r.coerceString=function(t,e,r){if(&quot;string&quot;==typeof e){if(e||!t.noBlank)return e}else if((&quot;number&quot;==typeof e||!0===e)&amp;&amp;!t.strict)return String(e);return void 0!==r?r:t.dflt},r.coerceNumber=function(t,e,r){if(n(e)){e=+e;var i=t.min,a=t.max;if(!(void 0!==i&amp;&amp;e&lt;i||void 0!==a&amp;&amp;e&gt;a))return e}return void 0!==r?r:t.dflt},r.coerceColor=function(t,e,r){return i(e).isValid()?e:void 0!==r?r:t.dflt},r.coerceEnumerated=function(t,e,r){return t.coerceNumber&amp;&amp;(e=+e),-1!==t.values.indexOf(e)?e:void 0!==r?r:t.dflt},r.getValue=function(t,e){var r;return Array.isArray(t)?e&lt;t.length&amp;&amp;(r=t[e]):r=t,r},r.getLineWidth=function(t,e){return 0&lt;e.mlw?e.mlw:a(t.marker.line.width)?0:t.marker.line.width}},{&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],928:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../lib&quot;).fillText,s=t(&quot;./helpers&quot;).getLineWidth,l=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText,c=t(&quot;../../constants/numerical&quot;).BADNUM;function u(t,e,r,i){var a,s,u,f,h,p,d,g=t.cd,m=g[0].trace,v=g[0].t,y=&quot;closest&quot;===i,x=&quot;waterfall&quot;===m.type,b=t.maxHoverDistance;function _(t){return t[u]-t.w/2}function w(t){return t[u]+t.w/2}var T=y?_:function(t){return Math.min(_(t),t.p-v.bardelta/2)},k=y?w:function(t){return Math.max(w(t),t.p+v.bardelta/2)};function M(t,e){return n.inbox(t-a,e-a,b+Math.min(1,Math.abs(e-t)/d)-1)}function A(t){return M(T(t),k(t))}function S(t){var e=s,r=t.b,i=t[f];if(x){var a=Math.abs(t.rawS)||0;e&gt;0?i+=a:e&lt;0&amp;&amp;(i-=a)}return n.inbox(r-e,i-e,b+(i-e)/(i-r)-1)}&quot;h&quot;===m.orientation?(a=r,s=e,u=&quot;y&quot;,f=&quot;x&quot;,h=S,p=A):(a=e,s=r,u=&quot;x&quot;,f=&quot;y&quot;,p=S,h=A);var E=t[u+&quot;a&quot;],C=t[f+&quot;a&quot;];d=Math.abs(E.r2c(E.range[1])-E.r2c(E.range[0]));var L=n.getDistanceFunction(i,h,p,(function(t){return(h(t)+p(t))/2}));if(n.getClosest(g,L,t),!1!==t.index&amp;&amp;g[t.index].p!==c){y||(T=function(t){return Math.min(_(t),t.p-v.bargroupwidth/2)},k=function(t){return Math.max(w(t),t.p+v.bargroupwidth/2)});var I=g[t.index],P=m.base?I.b+I.s:I.s;t[f+&quot;0&quot;]=t[f+&quot;1&quot;]=C.c2p(I[f],!0),t[f+&quot;LabelVal&quot;]=P;var z=v.extents[v.extents.round(I.p)];t[u+&quot;0&quot;]=E.c2p(y?T(I):z[0],!0),t[u+&quot;1&quot;]=E.c2p(y?k(I):z[1],!0);var O=void 0!==I.orig_p;return t[u+&quot;LabelVal&quot;]=O?I.orig_p:I.p,t.labelLabel=l(E,t[u+&quot;LabelVal&quot;]),t.valueLabel=l(C,t[f+&quot;LabelVal&quot;]),t.baseLabel=l(C,I.b),t.spikeDistance=(S(I)+function(t){return M(_(t),w(t))}(I))/2-b,t[u+&quot;Spike&quot;]=E.c2p(I.p,!0),o(I,m,t),t.hovertemplate=m.hovertemplate,t}}function f(t,e){var r=e.mcc||t.marker.color,n=e.mlcc||t.marker.line.color,i=s(t,e);return a.opacity(r)?r:a.opacity(n)&amp;&amp;i?n:void 0}e.exports={hoverPoints:function(t,e,r,n){var a=u(t,e,r,n);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=f(s,l),i.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(l,s,a),[a]}},hoverOnBars:u,getTraceColor:f}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./helpers&quot;:927}],929:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;).crossTraceCalc,colorbar:t(&quot;../scatter/marker_colorbar&quot;),arraysToCalcdata:t(&quot;./arrays_to_calcdata&quot;),plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;bar&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;bar&quot;,&quot;oriented&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],animatable:!0,meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./arrays_to_calcdata&quot;:920,&quot;./attributes&quot;:921,&quot;./calc&quot;:922,&quot;./cross_trace_calc&quot;:924,&quot;./defaults&quot;:925,&quot;./event_data&quot;:926,&quot;./hover&quot;:928,&quot;./layout_attributes&quot;:930,&quot;./layout_defaults&quot;:931,&quot;./plot&quot;:932,&quot;./select&quot;:933,&quot;./style&quot;:935}],930:[function(t,e,r){&quot;use strict&quot;;e.exports={barmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;group&quot;,&quot;overlay&quot;,&quot;relative&quot;],dflt:&quot;group&quot;,editType:&quot;calc&quot;},barnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;fraction&quot;,&quot;percent&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},bargap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},bargroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],931:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){function s(r,n){return a.coerce(t,e,o,r,n)}for(var l=!1,c=!1,u=!1,f={},h=s(&quot;barmode&quot;),p=0;p&lt;r.length;p++){var d=r[p];if(n.traceIs(d,&quot;bar&quot;)&amp;&amp;d.visible){if(l=!0,&quot;group&quot;===h){var g=d.xaxis+d.yaxis;f[g]&amp;&amp;(u=!0),f[g]=!0}if(d.visible&amp;&amp;&quot;histogram&quot;===d.type)&quot;category&quot;!==i.getFromId({_fullLayout:e},d[&quot;v&quot;===d.orientation?&quot;xaxis&quot;:&quot;yaxis&quot;]).type&amp;&amp;(c=!0)}}l?(&quot;overlay&quot;!==h&amp;&amp;s(&quot;barnorm&quot;),s(&quot;bargap&quot;,c&amp;&amp;!u?0:.2),s(&quot;bargroupgap&quot;)):delete e.barmode}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./layout_attributes&quot;:930}],932:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;../../components/color&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../registry&quot;),u=t(&quot;../../plots/cartesian/axes&quot;).tickText,f=t(&quot;./uniform_text&quot;),h=f.recordMinTextSize,p=f.clearMinTextSize,d=t(&quot;./style&quot;),g=t(&quot;./helpers&quot;),m=t(&quot;./constants&quot;),v=t(&quot;./attributes&quot;),y=v.text,x=v.textposition,b=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,_=m.TEXTPAD;function w(t){return t.id}function T(t){if(t.ids)return w}function k(t,e){return t&lt;e?1:-1}function M(t,e,r,n){var i;return!e.uniformtext.mode&amp;&amp;A(r)?(n&amp;&amp;(i=n()),t.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){i&amp;&amp;i()})).each(&quot;interrupt&quot;,(function(){i&amp;&amp;i()}))):t}function A(t){return t&amp;&amp;t.duration&gt;0}function S(t){return&quot;auto&quot;===t?0:t}function E(t,e){var r=Math.PI/180*e,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:t.width*i+t.height*n,y:t.width*n+t.height*i}}function C(t,e,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,c=a.anchor||&quot;end&quot;,u=&quot;end&quot;===c,f=&quot;start&quot;===c,h=((a.leftToRight||0)+1)/2,p=1-h,d=i.width,g=i.height,m=Math.abs(e-t),v=Math.abs(n-r),y=m&gt;2*_&amp;&amp;v&gt;2*_?_:0;m-=2*y,v-=2*y;var x=S(l);&quot;auto&quot;!==l||d&lt;=m&amp;&amp;g&lt;=v||!(d&gt;m||g&gt;v)||(d&gt;v||g&gt;m)&amp;&amp;d&lt;g==m&lt;v||(x+=90);var b=E(i,x),w=1;s&amp;&amp;(w=Math.min(1,m/b.x,v/b.y));var T=i.left*p+i.right*h,M=(i.top+i.bottom)/2,A=(t+_)*p+(e-_)*h,C=(r+n)/2,L=0,I=0;if(f||u){var P=(o?b.x:b.y)/2,z=o?k(t,e):k(r,n);o?f?(A=t+z*y,L=-z*P):(A=e-z*y,L=z*P):f?(C=r+z*y,I=-z*P):(C=n-z*y,I=z*P)}return{textX:T,textY:M,targetX:A,targetY:C,anchorX:L,anchorY:I,scale:w,rotate:x}}e.exports={plot:function(t,e,r,f,m,v){var w=e.xaxis,L=e.yaxis,I=t._fullLayout;m||(m={mode:I.barmode,norm:I.barmode,gap:I.bargap,groupgap:I.bargroupgap},p(&quot;bar&quot;,I));var P=a.makeTraceGroups(f,r,&quot;trace bars&quot;).each((function(r){var c=n.select(this),f=r[0].trace,p=&quot;waterfall&quot;===f.type,P=&quot;funnel&quot;===f.type,z=&quot;bar&quot;===f.type||P,O=0;p&amp;&amp;f.connector.visible&amp;&amp;&quot;between&quot;===f.connector.mode&amp;&amp;(O=f.connector.line.width/2);var D=&quot;h&quot;===f.orientation,R=A(m),F=a.ensureSingle(c,&quot;g&quot;,&quot;points&quot;),B=T(f),N=F.selectAll(&quot;g.point&quot;).data(a.identity,B);N.enter().append(&quot;g&quot;).classed(&quot;point&quot;,!0),N.exit().remove(),N.each((function(c,p){var T,A,P=n.select(this),F=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),n?[i,a]:[a,i]}(c,w,L,D),B=F[0][0],N=F[0][1],j=F[1][0],U=F[1][1],V=0==(D?N-B:U-j);if(V&amp;&amp;z&amp;&amp;g.getLineWidth(f,c)&amp;&amp;(V=!1),V||(V=!(i(B)&amp;&amp;i(N)&amp;&amp;i(j)&amp;&amp;i(U))),c.isBlank=V,V&amp;&amp;(D?N=B:U=j),O&amp;&amp;!V&amp;&amp;(D?(B-=k(B,N)*O,N+=k(B,N)*O):(j-=k(j,U)*O,U+=k(j,U)*O)),&quot;waterfall&quot;===f.type){if(!V){var q=f[c.dir].marker;T=q.line.width,A=q.color}}else T=g.getLineWidth(f,c),A=c.mc||f.marker.color;function H(t){var e=n.round(T/2%1,2);return 0===m.gap&amp;&amp;0===m.groupgap?n.round(Math.round(t)-e,2):t}if(!t._context.staticPlot){var G=s.opacity(A)&lt;1||T&gt;.01?H:function(t,e,r){return r&amp;&amp;t===e?t:Math.abs(t-e)&gt;=2?H(t):t&gt;e?Math.ceil(t):Math.floor(t)};B=G(B,N,D),N=G(N,B,D),j=G(j,U,!D),U=G(U,j,!D)}var Y=M(a.ensureSingle(P,&quot;path&quot;),I,m,v);if(Y.style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;d&quot;,isNaN((N-B)*(U-j))||V&amp;&amp;t._context.staticPlot?&quot;M0,0Z&quot;:&quot;M&quot;+B+&quot;,&quot;+j+&quot;V&quot;+U+&quot;H&quot;+N+&quot;V&quot;+j+&quot;Z&quot;).call(l.setClipUrl,e.layerClipId,t),!I.uniformtext.mode&amp;&amp;R){var W=l.makePointStyleFns(f);l.singlePointStyle(c,Y,f,W,t)}!function(t,e,r,n,i,s,c,f,p,m,v){var w,T=e.xaxis,A=e.yaxis,L=t._fullLayout;function I(e,r,n){return a.ensureSingle(e,&quot;text&quot;).text(r).attr({class:&quot;bartext bartext-&quot;+w,&quot;text-anchor&quot;:&quot;middle&quot;,&quot;data-notex&quot;:1}).call(l.font,n).call(o.convertToTspans,t)}var P=n[0].trace,z=&quot;h&quot;===P.orientation,O=function(t,e,r,n,i){var o,s=e[0].trace;o=s.texttemplate?function(t,e,r,n,i){var o=e[0].trace,s=a.castOption(o,r,&quot;texttemplate&quot;);if(!s)return&quot;&quot;;var l,c,f,h,p=&quot;waterfall&quot;===o.type,d=&quot;funnel&quot;===o.type;&quot;h&quot;===o.orientation?(l=&quot;y&quot;,c=i,f=&quot;x&quot;,h=n):(l=&quot;x&quot;,c=n,f=&quot;y&quot;,h=i);function g(t){return u(h,+t,!0).text}var m=e[r],v={};v.label=m.p,v.labelLabel=v[l+&quot;Label&quot;]=(y=m.p,u(c,y,!0).text);var y;var x=a.castOption(o,m.i,&quot;text&quot;);(0===x||x)&amp;&amp;(v.text=x);v.value=m.s,v.valueLabel=v[f+&quot;Label&quot;]=g(m.s);var _={};b(_,o,m.i),p&amp;&amp;(v.delta=+m.rawS||m.s,v.deltaLabel=g(v.delta),v.final=m.v,v.finalLabel=g(v.final),v.initial=v.final-v.delta,v.initialLabel=g(v.initial));d&amp;&amp;(v.value=m.s,v.valueLabel=g(v.value),v.percentInitial=m.begR,v.percentInitialLabel=a.formatPercent(m.begR),v.percentPrevious=m.difR,v.percentPreviousLabel=a.formatPercent(m.difR),v.percentTotal=m.sumR,v.percenTotalLabel=a.formatPercent(m.sumR));var w=a.castOption(o,m.i,&quot;customdata&quot;);w&amp;&amp;(v.customdata=w);return a.texttemplateString(s,v,t._d3locale,_,v,o._meta||{})}(t,e,r,n,i):s.textinfo?function(t,e,r,n){var i=t[0].trace,o=&quot;h&quot;===i.orientation,s=&quot;waterfall&quot;===i.type,l=&quot;funnel&quot;===i.type;function c(t){return u(o?r:n,+t,!0).text}var f,h=i.textinfo,p=t[e],d=h.split(&quot;+&quot;),g=[],m=function(t){return-1!==d.indexOf(t)};m(&quot;label&quot;)&amp;&amp;g.push((v=t[e].p,u(o?n:r,v,!0).text));var v;m(&quot;text&quot;)&amp;&amp;(0===(f=a.castOption(i,p.i,&quot;text&quot;))||f)&amp;&amp;g.push(f);if(s){var y=+p.rawS||p.s,x=p.v,b=x-y;m(&quot;initial&quot;)&amp;&amp;g.push(c(b)),m(&quot;delta&quot;)&amp;&amp;g.push(c(y)),m(&quot;final&quot;)&amp;&amp;g.push(c(x))}if(l){m(&quot;value&quot;)&amp;&amp;g.push(c(p.s));var _=0;m(&quot;percent initial&quot;)&amp;&amp;_++,m(&quot;percent previous&quot;)&amp;&amp;_++,m(&quot;percent total&quot;)&amp;&amp;_++;var w=_&gt;1;m(&quot;percent initial&quot;)&amp;&amp;(f=a.formatPercent(p.begR),w&amp;&amp;(f+=&quot; of initial&quot;),g.push(f)),m(&quot;percent previous&quot;)&amp;&amp;(f=a.formatPercent(p.difR),w&amp;&amp;(f+=&quot; of previous&quot;),g.push(f)),m(&quot;percent total&quot;)&amp;&amp;(f=a.formatPercent(p.sumR),w&amp;&amp;(f+=&quot; of total&quot;),g.push(f))}return g.join(&quot;&lt;br&gt;&quot;)}(e,r,n,i):g.getValue(s.text,r);return g.coerceString(y,o)}(L,n,i,T,A);w=function(t,e){var r=g.getValue(t.textposition,e);return g.coerceEnumerated(x,r)}(P,i);var D=&quot;stack&quot;===m.mode||&quot;relative&quot;===m.mode,R=n[i],F=!D||R._outmost;if(!O||&quot;none&quot;===w||(R.isBlank||s===c||f===p)&amp;&amp;(&quot;auto&quot;===w||&quot;inside&quot;===w))return void r.select(&quot;text&quot;).remove();var B=L.font,N=d.getBarColor(n[i],P),j=d.getInsideTextFont(P,i,B,N),U=d.getOutsideTextFont(P,i,B),V=r.datum();z?&quot;log&quot;===T.type&amp;&amp;V.s0&lt;=0&amp;&amp;(s=T.range[0]&lt;T.range[1]?0:T._length):&quot;log&quot;===A.type&amp;&amp;V.s0&lt;=0&amp;&amp;(f=A.range[0]&lt;A.range[1]?A._length:0);var q,H,G,Y,W,X=Math.abs(c-s)-2*_,Z=Math.abs(p-f)-2*_;&quot;outside&quot;===w&amp;&amp;(F||R.hasB||(w=&quot;inside&quot;));if(&quot;auto&quot;===w)if(F){w=&quot;inside&quot;,W=a.ensureUniformFontSize(t,j),q=I(r,O,W),H=l.bBox(q.node()),G=H.width,Y=H.height;var J=G&lt;=X&amp;&amp;Y&lt;=Z,K=G&lt;=Z&amp;&amp;Y&lt;=X,Q=z?X&gt;=G*(Z/Y):Z&gt;=Y*(X/G);G&gt;0&amp;&amp;Y&gt;0&amp;&amp;(J||K||Q)?w=&quot;inside&quot;:(w=&quot;outside&quot;,q.remove(),q=null)}else w=&quot;inside&quot;;if(!q){W=a.ensureUniformFontSize(t,&quot;outside&quot;===w?U:j);var $=(q=I(r,O,W)).attr(&quot;transform&quot;);if(q.attr(&quot;transform&quot;,&quot;&quot;),H=l.bBox(q.node()),G=H.width,Y=H.height,q.attr(&quot;transform&quot;,$),G&lt;=0||Y&lt;=0)return void q.remove()}var tt,et,rt=P.textangle;&quot;outside&quot;===w?(et=&quot;both&quot;===P.constraintext||&quot;outside&quot;===P.constraintext,tt=function(t,e,r,n,i,a){var o,s=!!a.isHorizontal,l=!!a.constrained,c=a.angle||0,u=i.width,f=i.height,h=Math.abs(e-t),p=Math.abs(n-r);o=s?p&gt;2*_?_:0:h&gt;2*_?_:0;var d=1;l&amp;&amp;(d=s?Math.min(1,p/f):Math.min(1,h/u));var g=S(c),m=E(i,g),v=(s?m.x:m.y)/2,y=(i.left+i.right)/2,x=(i.top+i.bottom)/2,b=(t+e)/2,w=(r+n)/2,T=0,M=0,A=s?k(e,t):k(r,n);s?(b=e-A*o,T=A*v):(w=n+A*o,M=-A*v);return{textX:y,textY:x,targetX:b,targetY:w,anchorX:T,anchorY:M,scale:d,rotate:g}}(s,c,f,p,H,{isHorizontal:z,constrained:et,angle:rt})):(et=&quot;both&quot;===P.constraintext||&quot;inside&quot;===P.constraintext,tt=C(s,c,f,p,H,{isHorizontal:z,constrained:et,angle:rt,anchor:P.insidetextanchor}));tt.fontSize=W.size,h(P.type,tt,L),R.transform=tt,M(q,L,m,v).attr(&quot;transform&quot;,a.getTextTransform(tt))}(t,e,P,r,p,B,N,j,U,m,v),e.layerClipId&amp;&amp;l.hideOutsideRangePoint(c,P.select(&quot;text&quot;),w,L,f.xcalendar,f.ycalendar)}));var j=!1===f.cliponaxis;l.setClipUrl(c,j?null:e.layerClipId,t)}));c.getComponentMethod(&quot;errorbars&quot;,&quot;plot&quot;)(t,P,e,m)},toMoveInsideBar:C}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../components/fx/helpers&quot;:679,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./attributes&quot;:921,&quot;./constants&quot;:923,&quot;./helpers&quot;:927,&quot;./style&quot;:935,&quot;./uniform_text&quot;:937,d3:169,&quot;fast-isnumeric&quot;:241}],933:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i){var a=e.c2p(n?t.s0:t.p0,!0),o=e.c2p(n?t.s1:t.p1,!0),s=r.c2p(n?t.p0:t.s0,!0),l=r.c2p(n?t.p1:t.s1,!0);return i?[(a+o)/2,(s+l)/2]:n?[o,(s+l)/2]:[(a+o)/2,l]}e.exports=function(t,e){var r,i=t.cd,a=t.xaxis,o=t.yaxis,s=i[0].trace,l=&quot;funnel&quot;===s.type,c=&quot;h&quot;===s.orientation,u=[];if(!1===e)for(r=0;r&lt;i.length;r++)i[r].selected=0;else for(r=0;r&lt;i.length;r++){var f=i[r],h=&quot;ct&quot;in f?f.ct:n(f,a,o,c,l);e.contains(h,!1,r,t)?(u.push({pointNumber:r,x:a.c2d(f.x),y:o.c2d(f.y)}),f.selected=1):f.selected=0}return u}},{}],934:[function(t,e,r){&quot;use strict&quot;;e.exports=a;var n=t(&quot;../../lib&quot;).distinctVals,i=t(&quot;../../constants/numerical&quot;).BADNUM;function a(t,e){this.traces=t,this.sepNegVal=e.sepNegVal,this.overlapNoMerge=e.overlapNoMerge;for(var r=1/0,a=[],o=0;o&lt;t.length;o++){for(var s=t[o],l=0;l&lt;s.length;l++){var c=s[l];c.p!==i&amp;&amp;a.push(c.p)}s[0]&amp;&amp;s[0].width1&amp;&amp;(r=Math.min(s[0].width1,r))}this.positions=a;var u=n(a,{unitMinDiff:e.unitMinDiff});this.distinctPositions=u.vals,1===u.vals.length&amp;&amp;r!==1/0?this.minDiff=r:this.minDiff=Math.min(u.minDiff,r),this.binWidth=this.minDiff,this.bins={}}a.prototype.put=function(t,e){var r=this.getLabel(t,e),n=this.bins[r]||0;return this.bins[r]=n+e,n},a.prototype.get=function(t,e){var r=this.getLabel(t,e);return this.bins[r]||0},a.prototype.getLabel=function(t,e){return(e&lt;0&amp;&amp;this.sepNegVal?&quot;v&quot;:&quot;^&quot;)+(this.overlapNoMerge?t:Math.round(t/this.binWidth))}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778}],935:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../registry&quot;),l=t(&quot;./uniform_text&quot;).resizeText,c=t(&quot;./attributes&quot;),u=c.textfont,f=c.insidetextfont,h=c.outsidetextfont,p=t(&quot;./helpers&quot;);function d(t,e,r){a.pointStyle(t.selectAll(&quot;path&quot;),e,r),g(t,e,r)}function g(t,e,r){t.selectAll(&quot;text&quot;).each((function(t){var i=n.select(this),s=o.ensureUniformFontSize(r,m(i,t,e,r));a.font(i,s)}))}function m(t,e,r,n){var i=n._fullLayout.font,a=r.textfont;if(t.classed(&quot;bartext-inside&quot;)){var o=_(e,r);a=y(r,e.i,i,o)}else t.classed(&quot;bartext-outside&quot;)&amp;&amp;(a=x(r,e.i,i));return a}function v(t,e,r){return b(u,t.textfont,e,r)}function y(t,e,r,n){var a=v(t,e,r);return(void 0===t._input.textfont||void 0===t._input.textfont.color||Array.isArray(t.textfont.color)&amp;&amp;void 0===t.textfont.color[e])&amp;&amp;(a={color:i.contrast(n),family:a.family,size:a.size}),b(f,t.insidetextfont,e,a)}function x(t,e,r){var n=v(t,e,r);return b(h,t.outsidetextfont,e,n)}function b(t,e,r,n){e=e||{};var i=p.getValue(e.family,r),a=p.getValue(e.size,r),o=p.getValue(e.color,r);return{family:p.coerceString(t.family,i,n.family),size:p.coerceNumber(t.size,a,n.size),color:p.coerceColor(t.color,o,n.color)}}function _(t,e){return&quot;waterfall&quot;===e.type?e[t.dir].marker.color:t.mc||e.marker.color}e.exports={style:function(t){var e=n.select(t).selectAll(&quot;g.barlayer&quot;).selectAll(&quot;g.trace&quot;);l(t,e,&quot;bar&quot;);var r=e.size(),i=t._fullLayout;e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})).each((function(t){(&quot;stack&quot;===i.barmode&amp;&amp;r&gt;1||0===i.bargap&amp;&amp;0===i.bargroupgap&amp;&amp;!t[0].trace.marker.line.width)&amp;&amp;n.select(this).attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)})),e.selectAll(&quot;g.points&quot;).each((function(e){d(n.select(this),e[0].trace,t)})),s.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(e)},styleTextPoints:g,styleOnSelect:function(t,e,r){var i=e[0].trace;i.selectedpoints?function(t,e,r){a.selectedPointStyle(t.selectAll(&quot;path&quot;),e),function(t,e,r){t.each((function(t){var i,s=n.select(this);if(t.selected){i=o.ensureUniformFontSize(r,m(s,t,e,r));var l=e.selected.textfont&amp;&amp;e.selected.textfont.color;l&amp;&amp;(i.color=l),a.font(s,i)}else a.selectedTextStyle(s,e)}))}(t.selectAll(&quot;text&quot;),e,r)}(r,i,t):(d(r,i,t),s.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(r))},getInsideTextFont:y,getOutsideTextFont:x,getBarColor:_,resizeText:l}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:921,&quot;./helpers&quot;:927,&quot;./uniform_text&quot;:937,d3:169}],936:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;);e.exports=function(t,e,r,o,s){r(&quot;marker.color&quot;,o),i(t,&quot;marker&quot;)&amp;&amp;a(t,e,s,r,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),r(&quot;marker.line.color&quot;,n.defaultLine),i(t,&quot;marker.line&quot;)&amp;&amp;a(t,e,s,r,{prefix:&quot;marker.line.&quot;,cLetter:&quot;c&quot;}),r(&quot;marker.line.width&quot;),r(&quot;marker.opacity&quot;),r(&quot;selected.marker.color&quot;),r(&quot;unselected.marker.color&quot;)}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654}],937:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;);function a(t){return&quot;_&quot;+t+&quot;Text_minsize&quot;}e.exports={recordMinTextSize:function(t,e,r){if(r.uniformtext.mode){var n=a(t),i=r.uniformtext.minsize,o=e.scale*e.fontSize;e.hide=o&lt;i,r[n]=r[n]||1/0,e.hide||(r[n]=Math.min(r[n],Math.max(o,i)))}},clearMinTextSize:function(t,e){e[a(t)]=void 0},resizeText:function(t,e,r){var a=t._fullLayout,o=a[&quot;_&quot;+r+&quot;Text_minsize&quot;];if(o){var s,l=&quot;hide&quot;===a.uniformtext.mode;switch(r){case&quot;funnelarea&quot;:case&quot;pie&quot;:case&quot;sunburst&quot;:s=&quot;g.slice&quot;;break;case&quot;treemap&quot;:s=&quot;g.slice, g.pathbar&quot;;break;default:s=&quot;g.points &gt; g.point&quot;}e.selectAll(s).each((function(t){var e=t.transform;e&amp;&amp;(e.scale=l&amp;&amp;e.hide?0:o/e.fontSize,n.select(this).select(&quot;text&quot;).attr(&quot;transform&quot;,i.getTextTransform(e)))}))}}}},{&quot;../../lib&quot;:778,d3:169}],938:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../scatterpolar/attributes&quot;),o=t(&quot;../bar/attributes&quot;);e.exports={r:a.r,theta:a.theta,r0:a.r0,dr:a.dr,theta0:a.theta0,dtheta:a.dtheta,thetaunit:a.thetaunit,base:i({},o.base,{}),offset:i({},o.offset,{}),width:i({},o.width,{}),text:i({},o.text,{}),hovertext:i({},o.hovertext,{}),marker:o.marker,hoverinfo:a.hoverinfo,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatterpolar/attributes&quot;:1261}],939:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,i=t(&quot;../../components/colorscale/calc&quot;),a=t(&quot;../bar/arrays_to_calcdata&quot;),o=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions,s=t(&quot;../scatter/calc_selection&quot;),l=t(&quot;../../registry&quot;).traceIs,c=t(&quot;../../lib&quot;).extendFlat;e.exports={calc:function(t,e){for(var r=t._fullLayout,o=e.subplot,l=r[o].radialaxis,c=r[o].angularaxis,u=l.makeCalcdata(e,&quot;r&quot;),f=c.makeCalcdata(e,&quot;theta&quot;),h=e._length,p=new Array(h),d=u,g=f,m=0;m&lt;h;m++)p[m]={p:g[m],s:d[m]};function v(t){var r=e[t];void 0!==r&amp;&amp;(e[&quot;_&quot;+t]=Array.isArray(r)?c.makeCalcdata(e,t):c.d2c(r,e.thetaunit))}return&quot;linear&quot;===c.type&amp;&amp;(v(&quot;width&quot;),v(&quot;offset&quot;)),n(e,&quot;marker&quot;)&amp;&amp;i(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),n(e,&quot;marker.line&quot;)&amp;&amp;i(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}),a(p,e),s(p,e),p},crossTraceCalc:function(t,e,r){for(var n=t.calcdata,i=[],a=0;a&lt;n.length;a++){var s=n[a],u=s[0].trace;!0===u.visible&amp;&amp;l(u,&quot;bar&quot;)&amp;&amp;u.subplot===r&amp;&amp;i.push(s)}var f=c({},e.radialaxis,{_id:&quot;x&quot;}),h=e.angularaxis;o(t,h,f,i,{mode:e.barmode,norm:e.barnorm,gap:e.bargap,groupgap:e.bargroupgap})}}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../bar/arrays_to_calcdata&quot;:920,&quot;../bar/cross_trace_calc&quot;:924,&quot;../scatter/calc_selection&quot;:1189}],940:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatterpolar/defaults&quot;).handleRThetaDefaults,a=t(&quot;../bar/style_defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,s,l)?(l(&quot;thetaunit&quot;),l(&quot;base&quot;),l(&quot;offset&quot;),l(&quot;width&quot;),l(&quot;text&quot;),l(&quot;hovertext&quot;),l(&quot;hovertemplate&quot;),a(t,e,l,r,s),n.coerceSelectionMarkerOpacity(e,l)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../bar/style_defaults&quot;:936,&quot;../scatterpolar/defaults&quot;:1263,&quot;./attributes&quot;:938}],941:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../bar/hover&quot;).getTraceColor,o=i.fillText,s=t(&quot;../scatterpolar/hover&quot;).makeHoverPointText,l=t(&quot;../../plots/polar/helpers&quot;).isPtInsidePolygon;e.exports=function(t,e,r){var c=t.cd,u=c[0].trace,f=t.subplot,h=f.radialAxis,p=f.angularAxis,d=f.vangles,g=d?l:i.isPtInsideSector,m=t.maxHoverDistance,v=p._period||2*Math.PI,y=Math.abs(h.g2p(Math.sqrt(e*e+r*r))),x=Math.atan2(r,e);h.range[0]&gt;h.range[1]&amp;&amp;(x+=Math.PI);if(n.getClosest(c,(function(t){return g(y,x,[t.rp0,t.rp1],[t.thetag0,t.thetag1],d)?m+Math.min(1,Math.abs(t.thetag1-t.thetag0)/v)-1+(t.rp1-y)/(t.rp1-t.rp0)-1:1/0}),t),!1!==t.index){var b=c[t.index];t.x0=t.x1=b.ct[0],t.y0=t.y1=b.ct[1];var _=i.extendFlat({},b,{r:b.s,theta:b.p});return o(b,u,t),s(_,u,f,t),t.hovertemplate=u.hovertemplate,t.color=a(u,b),t.xLabelVal=t.yLabelVal=void 0,b.s&lt;0&amp;&amp;(t.idealAlign=&quot;left&quot;),[t]}}},{&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../plots/polar/helpers&quot;:893,&quot;../bar/hover&quot;:928,&quot;../scatterpolar/hover&quot;:1265}],942:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;barpolar&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;polar&quot;,&quot;bar&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;../scatterpolar/format_labels&quot;),style:t(&quot;../bar/style&quot;).style,styleOnSelect:t(&quot;../bar/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../bar/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:894,&quot;../bar/select&quot;:933,&quot;../bar/style&quot;:935,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatterpolar/format_labels&quot;:1264,&quot;./attributes&quot;:938,&quot;./calc&quot;:939,&quot;./defaults&quot;:940,&quot;./hover&quot;:941,&quot;./layout_attributes&quot;:943,&quot;./layout_defaults&quot;:944,&quot;./plot&quot;:945}],943:[function(t,e,r){&quot;use strict&quot;;e.exports={barmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;overlay&quot;],dflt:&quot;stack&quot;,editType:&quot;calc&quot;},bargap:{valType:&quot;number&quot;,dflt:.1,min:0,max:1,editType:&quot;calc&quot;}}},{}],944:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a,o={};function s(r,o){return n.coerce(t[a]||{},e[a],i,r,o)}for(var l=0;l&lt;r.length;l++){var c=r[l];&quot;barpolar&quot;===c.type&amp;&amp;!0===c.visible&amp;&amp;(o[a=c.subplot]||(s(&quot;barmode&quot;),s(&quot;bargap&quot;),o[a]=1))}}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:943}],945:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../plots/polar/helpers&quot;);e.exports=function(t,e,r){var l=e.xaxis,c=e.yaxis,u=e.radialAxis,f=e.angularAxis,h=function(t){var e=t.cxx,r=t.cyy;if(t.vangles)return function(n,i,o,l){var c,u;a.angleDelta(o,l)&gt;0?(c=o,u=l):(c=l,u=o);var f=[s.findEnclosingVertexAngles(c,t.vangles)[0],(c+u)/2,s.findEnclosingVertexAngles(u,t.vangles)[1]];return s.pathPolygonAnnulus(n,i,c,u,f,e,r)};return function(t,n,i,o){return a.pathAnnulus(t,n,i,o,e,r)}}(e),p=e.layers.frontplot.select(&quot;g.barlayer&quot;);a.makeTraceGroups(p,r,&quot;trace bars&quot;).each((function(){var r=n.select(this),s=a.ensureSingle(r,&quot;g&quot;,&quot;points&quot;).selectAll(&quot;g.point&quot;).data(a.identity);s.enter().append(&quot;g&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).style(&quot;stroke-miterlimit&quot;,2).classed(&quot;point&quot;,!0),s.exit().remove(),s.each((function(t){var e,r=n.select(this),o=t.rp0=u.c2p(t.s0),s=t.rp1=u.c2p(t.s1),p=t.thetag0=f.c2g(t.p0),d=t.thetag1=f.c2g(t.p1);if(i(o)&amp;&amp;i(s)&amp;&amp;i(p)&amp;&amp;i(d)&amp;&amp;o!==s&amp;&amp;p!==d){var g=u.c2g(t.s1),m=(p+d)/2;t.ct=[l.c2p(g*Math.cos(m)),c.c2p(g*Math.sin(m))],e=h(o,s,p,d)}else e=&quot;M0,0Z&quot;;a.ensureSingle(r,&quot;path&quot;).attr(&quot;d&quot;,e)})),o.setClipUrl(r,e._hasClipOnAxisFalse?e.clipIds.forTraces:null,t)}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../plots/polar/helpers&quot;:893,d3:169,&quot;fast-isnumeric&quot;:241}],946:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../bar/attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../lib/extend&quot;).extendFlat,l=n.marker,c=l.line;e.exports={y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},x0:{valType:&quot;any&quot;,editType:&quot;calc+clearAxisTypes&quot;},y0:{valType:&quot;any&quot;,editType:&quot;calc+clearAxisTypes&quot;},dx:{valType:&quot;number&quot;,editType:&quot;calc&quot;},dy:{valType:&quot;number&quot;,editType:&quot;calc&quot;},xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,name:{valType:&quot;string&quot;,editType:&quot;calc+clearAxisTypes&quot;},q1:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},median:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},q3:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},lowerfence:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},upperfence:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},notched:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},notchwidth:{valType:&quot;number&quot;,min:0,max:.5,dflt:.25,editType:&quot;calc&quot;},notchspan:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},boxpoints:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;outliers&quot;,&quot;suspectedoutliers&quot;,!1],editType:&quot;calc&quot;},jitter:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},pointpos:{valType:&quot;number&quot;,min:-2,max:2,editType:&quot;calc&quot;},boxmean:{valType:&quot;enumerated&quot;,values:[!0,&quot;sd&quot;,!1],editType:&quot;calc&quot;},mean:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sd:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc+clearAxisTypes&quot;},quartilemethod:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;exclusive&quot;,&quot;inclusive&quot;],dflt:&quot;linear&quot;,editType:&quot;calc&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},marker:{outliercolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0, 0, 0, 0)&quot;,editType:&quot;style&quot;},symbol:s({},l.symbol,{arrayOk:!1,editType:&quot;plot&quot;}),opacity:s({},l.opacity,{arrayOk:!1,dflt:1,editType:&quot;style&quot;}),size:s({},l.size,{arrayOk:!1,editType:&quot;calc&quot;}),color:s({},l.color,{arrayOk:!1,editType:&quot;style&quot;}),line:{color:s({},c.color,{arrayOk:!1,dflt:a.defaultLine,editType:&quot;style&quot;}),width:s({},c.width,{arrayOk:!1,dflt:0,editType:&quot;style&quot;}),outliercolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},outlierwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;plot&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},editType:&quot;plot&quot;},fillcolor:n.fillcolor,whiskerwidth:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;calc&quot;},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup,selected:{marker:n.selected.marker,editType:&quot;style&quot;},unselected:{marker:n.unselected.marker,editType:&quot;style&quot;},text:s({},n.text,{}),hovertext:s({},n.hovertext,{}),hovertemplate:o({}),hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;boxes&quot;,&quot;points&quot;],dflt:&quot;boxes+points&quot;,editType:&quot;style&quot;}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib/extend&quot;:768,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatter/attributes&quot;:1187}],947:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/cartesian/align_period&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=o._;e.exports=function(t,e){var r,c,y,x,b,_,w,T=t._fullLayout,k=i.getFromId(t,e.xaxis||&quot;x&quot;),M=i.getFromId(t,e.yaxis||&quot;y&quot;),A=[],S=&quot;violin&quot;===e.type?&quot;_numViolins&quot;:&quot;_numBoxes&quot;;&quot;h&quot;===e.orientation?(y=k,x=&quot;x&quot;,b=M,_=&quot;y&quot;,w=!!e.yperiodalignment):(y=M,x=&quot;y&quot;,b=k,_=&quot;x&quot;,w=!!e.xperiodalignment);var E,C,L,I,P,z,O=function(t,e,r,i){var s,l=e+&quot;0&quot;in t,c=&quot;d&quot;+e in t;if(e in t||l&amp;&amp;c){var u=r.makeCalcdata(t,e);return[a(t,r,e,u),u]}s=l?t[e+&quot;0&quot;]:&quot;name&quot;in t&amp;&amp;(&quot;category&quot;===r.type||n(t.name)&amp;&amp;-1!==[&quot;linear&quot;,&quot;log&quot;].indexOf(r.type)||o.isDateTime(t.name)&amp;&amp;&quot;date&quot;===r.type)?t.name:i;for(var f=&quot;multicategory&quot;===r.type?r.r2c_just_indices(s):r.d2c(s,0,t[e+&quot;calendar&quot;]),h=t._length,p=new Array(h),d=0;d&lt;h;d++)p[d]=f;return[p]}(e,_,b,T[S]),D=O[0],R=O[1],F=o.distinctVals(D),B=F.vals,N=F.minDiff/2,j=&quot;all&quot;===(e.boxpoints||e.points)?o.identity:function(t){return t.v&lt;E.lf||t.v&gt;E.uf};if(e._hasPreCompStats){var U=e[x],V=function(t){return y.d2c((e[t]||[])[r])},q=1/0,H=-1/0;for(r=0;r&lt;e._length;r++){var G=D[r];if(n(G)){if((E={}).pos=E[_]=G,w&amp;&amp;R&amp;&amp;(E.orig_p=R[r]),E.q1=V(&quot;q1&quot;),E.med=V(&quot;median&quot;),E.q3=V(&quot;q3&quot;),C=[],U&amp;&amp;o.isArrayOrTypedArray(U[r]))for(c=0;c&lt;U[r].length;c++)(z=y.d2c(U[r][c]))!==s&amp;&amp;(u(P={v:z,i:[r,c]},e,[r,c]),C.push(P));if(E.pts=C.sort(f),I=(L=E[x]=C.map(h)).length,E.med!==s&amp;&amp;E.q1!==s&amp;&amp;E.q3!==s&amp;&amp;E.med&gt;=E.q1&amp;&amp;E.q3&gt;=E.med){var Y=V(&quot;lowerfence&quot;);E.lf=Y!==s&amp;&amp;Y&lt;=E.q1?Y:p(E,L,I);var W=V(&quot;upperfence&quot;);E.uf=W!==s&amp;&amp;W&gt;=E.q3?W:d(E,L,I);var X=V(&quot;mean&quot;);E.mean=X!==s?X:I?o.mean(L,I):(E.q1+E.q3)/2;var Z=V(&quot;sd&quot;);E.sd=X!==s&amp;&amp;Z&gt;=0?Z:I?o.stdev(L,I,E.mean):E.q3-E.q1,E.lo=g(E),E.uo=m(E);var J=V(&quot;notchspan&quot;);J=J!==s&amp;&amp;J&gt;0?J:v(E,I),E.ln=E.med-J,E.un=E.med+J;var K=E.lf,Q=E.uf;e.boxpoints&amp;&amp;L.length&amp;&amp;(K=Math.min(K,L[0]),Q=Math.max(Q,L[I-1])),e.notched&amp;&amp;(K=Math.min(K,E.ln),Q=Math.max(Q,E.un)),E.min=K,E.max=Q}else{var $;o.warn([&quot;Invalid input - make sure that q1 &lt;= median &lt;= q3&quot;,&quot;q1 = &quot;+E.q1,&quot;median = &quot;+E.med,&quot;q3 = &quot;+E.q3].join(&quot;\n&quot;)),$=E.med!==s?E.med:E.q1!==s?E.q3!==s?(E.q1+E.q3)/2:E.q1:E.q3!==s?E.q3:0,E.med=$,E.q1=E.q3=$,E.lf=E.uf=$,E.mean=E.sd=$,E.ln=E.un=$,E.min=E.max=$}q=Math.min(q,E.min),H=Math.max(H,E.max),E.pts2=C.filter(j),A.push(E)}}e._extremes[y._id]=i.findExtremes(y,[q,H],{padded:!0})}else{var tt=y.makeCalcdata(e,x),et=function(t,e){for(var r=t.length,n=new Array(r+1),i=0;i&lt;r;i++)n[i]=t[i]-e;return n[r]=t[r-1]+e,n}(B,N),rt=B.length,nt=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=[];return e}(rt);for(r=0;r&lt;e._length;r++)if(z=tt[r],n(z)){var it=o.findBin(D[r],et);it&gt;=0&amp;&amp;it&lt;rt&amp;&amp;(u(P={v:z,i:r},e,r),nt[it].push(P))}var at=1/0,ot=-1/0,st=e.quartilemethod,lt=&quot;exclusive&quot;===st,ct=&quot;inclusive&quot;===st;for(r=0;r&lt;rt;r++)if(nt[r].length&gt;0){var ut,ft;if((E={}).pos=E[_]=B[r],C=E.pts=nt[r].sort(f),I=(L=E[x]=C.map(h)).length,E.min=L[0],E.max=L[I-1],E.mean=o.mean(L,I),E.sd=o.stdev(L,I,E.mean),E.med=o.interp(L,.5),I%2&amp;&amp;(lt||ct))lt?(ut=L.slice(0,I/2),ft=L.slice(I/2+1)):ct&amp;&amp;(ut=L.slice(0,I/2+1),ft=L.slice(I/2)),E.q1=o.interp(ut,.5),E.q3=o.interp(ft,.5);else E.q1=o.interp(L,.25),E.q3=o.interp(L,.75);E.lf=p(E,L,I),E.uf=d(E,L,I),E.lo=g(E),E.uo=m(E);var ht=v(E,I);E.ln=E.med-ht,E.un=E.med+ht,at=Math.min(at,E.ln),ot=Math.max(ot,E.un),E.pts2=C.filter(j),A.push(E)}e._extremes[y._id]=i.findExtremes(y,e.notched?tt.concat([at,ot]):tt,{padded:!0})}return function(t,e){if(o.isArrayOrTypedArray(e.selectedpoints))for(var r=0;r&lt;t.length;r++){for(var n=t[r].pts||[],i={},a=0;a&lt;n.length;a++)i[n[a].i]=a;o.tagSelected(n,e,i)}}(A,e),A.length&gt;0?(A[0].t={num:T[S],dPos:N,posLetter:_,valLetter:x,labels:{med:l(t,&quot;median:&quot;),min:l(t,&quot;min:&quot;),q1:l(t,&quot;q1:&quot;),q3:l(t,&quot;q3:&quot;),max:l(t,&quot;max:&quot;),mean:&quot;sd&quot;===e.boxmean?l(t,&quot;mean \xb1 \u03c3:&quot;):l(t,&quot;mean:&quot;),lf:l(t,&quot;lower fence:&quot;),uf:l(t,&quot;upper fence:&quot;)}},T[S]++,A):[{t:{empty:!0}}]};var c={text:&quot;tx&quot;,hovertext:&quot;htx&quot;};function u(t,e,r){for(var n in c)o.isArrayOrTypedArray(e[n])&amp;&amp;(Array.isArray(r)?o.isArrayOrTypedArray(e[n][r[0]])&amp;&amp;(t[c[n]]=e[n][r[0]][r[1]]):t[c[n]]=e[n][r])}function f(t,e){return t.v-e.v}function h(t){return t.v}function p(t,e,r){return 0===r?t.q1:Math.min(t.q1,e[Math.min(o.findBin(2.5*t.q1-1.5*t.q3,e,!0)+1,r-1)])}function d(t,e,r){return 0===r?t.q3:Math.max(t.q3,e[Math.max(o.findBin(2.5*t.q3-1.5*t.q1,e),0)])}function g(t){return 4*t.q1-3*t.q3}function m(t){return 4*t.q3-3*t.q1}function v(t,e){return 0===e?0:1.57*(t.q3-t.q1)/Math.sqrt(e)}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;fast-isnumeric&quot;:241}],948:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,o=[&quot;v&quot;,&quot;h&quot;];function s(t,e,r,o){var s,l,c,u=e.calcdata,f=e._fullLayout,h=o._id,p=h.charAt(0),d=[],g=0;for(s=0;s&lt;r.length;s++)for(c=u[r[s]],l=0;l&lt;c.length;l++)d.push(o.c2l(c[l].pos,!0)),g+=(c[l].pts2||[]).length;if(d.length){var m=i.distinctVals(d,{unitMinDiff:&quot;category&quot;===o.type||&quot;multicategory&quot;===o.type}),v=m.minDiff/2;n.minDtick(o,m.minDiff,m.vals[0],!0);var y=f[&quot;violin&quot;===t?&quot;_numViolins&quot;:&quot;_numBoxes&quot;],x=&quot;group&quot;===f[t+&quot;mode&quot;]&amp;&amp;y&gt;1,b=1-f[t+&quot;gap&quot;],_=1-f[t+&quot;groupgap&quot;];for(s=0;s&lt;r.length;s++){var w,T,k,M,A,S,E=(c=u[r[s]])[0].trace,C=c[0].t,L=E.width,I=E.side;if(L)w=T=M=L/2,k=0;else if(w=v,x){var P=a(f,o._id)+E.orientation,z=(f._alignmentOpts[P]||{})[E.alignmentgroup]||{},O=Object.keys(z.offsetGroups||{}).length,D=O||y;T=w*b*_/D,k=2*w*(((O?E._offsetIndex:C.num)+.5)/D-.5)*b,M=w*b/D}else T=w*b*_,k=0,M=w;C.dPos=w,C.bPos=k,C.bdPos=T,C.wHover=M;var R,F,B,N,j,U,V=k+T,q=Boolean(L);if(&quot;positive&quot;===I?(A=w*(L?1:.5),R=V,S=R=k):&quot;negative&quot;===I?(A=R=k,S=w*(L?1:.5),F=V):(A=S=w,R=F=V),(E.boxpoints||E.points)&amp;&amp;g&gt;0){var H=E.pointpos,G=E.jitter,Y=E.marker.size/2,W=0;H+G&gt;=0&amp;&amp;((W=V*(H+G))&gt;A?(q=!0,j=Y,B=W):W&gt;R&amp;&amp;(j=Y,B=A)),W&lt;=A&amp;&amp;(B=A);var X=0;H-G&lt;=0&amp;&amp;((X=-V*(H-G))&gt;S?(q=!0,U=Y,N=X):X&gt;F&amp;&amp;(U=Y,N=S)),X&lt;=S&amp;&amp;(N=S)}else B=A,N=S;var Z=new Array(c.length);for(l=0;l&lt;c.length;l++)Z[l]=c[l].pos;E._extremes[h]=n.findExtremes(o,Z,{padded:q,vpadminus:N,vpadplus:B,vpadLinearized:!0,ppadminus:{x:U,y:j}[p],ppadplus:{x:j,y:U}[p]})}}}e.exports={crossTraceCalc:function(t,e){for(var r=t.calcdata,n=e.xaxis,i=e.yaxis,a=0;a&lt;o.length;a++){for(var l=o[a],c=&quot;h&quot;===l?i:n,u=[],f=0;f&lt;r.length;f++){var h=r[f],p=h[0].t,d=h[0].trace;!0!==d.visible||&quot;box&quot;!==d.type&amp;&amp;&quot;candlestick&quot;!==d.type||p.empty||(d.orientation||&quot;v&quot;)!==l||d.xaxis!==n._id||d.yaxis!==i._id||u.push(f)}s(&quot;box&quot;,t,u,c)}},setPositionOffset:s}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/constraints&quot;:835}],949:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../scatter/period_defaults&quot;),s=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,l=t(&quot;../../plots/cartesian/axis_autotype&quot;),c=t(&quot;./attributes&quot;);function u(t,e,r,a){function o(t){var e=0;return t&amp;&amp;t.length&amp;&amp;(e+=1,n.isArrayOrTypedArray(t[0])&amp;&amp;t[0].length&amp;&amp;(e+=1)),e}function s(e){return n.validate(t[e],c[e])}var u,f=r(&quot;y&quot;),h=r(&quot;x&quot;);if(&quot;box&quot;===e.type){var p=r(&quot;q1&quot;),d=r(&quot;median&quot;),g=r(&quot;q3&quot;);e._hasPreCompStats=p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length&amp;&amp;g&amp;&amp;g.length,u=Math.min(n.minRowLength(p),n.minRowLength(d),n.minRowLength(g))}var m,v,y=o(f),x=o(h),b=y&amp;&amp;n.minRowLength(f),_=x&amp;&amp;n.minRowLength(h),w=a.calendar,T={autotypenumbers:a.autotypenumbers};if(e._hasPreCompStats)switch(String(x)+String(y)){case&quot;00&quot;:var k=s(&quot;x0&quot;)||s(&quot;dx&quot;);m=(s(&quot;y0&quot;)||s(&quot;dy&quot;))&amp;&amp;!k?&quot;h&quot;:&quot;v&quot;,v=u;break;case&quot;10&quot;:m=&quot;v&quot;,v=Math.min(u,_);break;case&quot;20&quot;:m=&quot;h&quot;,v=Math.min(u,h.length);break;case&quot;01&quot;:m=&quot;h&quot;,v=Math.min(u,b);break;case&quot;02&quot;:m=&quot;v&quot;,v=Math.min(u,f.length);break;case&quot;12&quot;:m=&quot;v&quot;,v=Math.min(u,_,f.length);break;case&quot;21&quot;:m=&quot;h&quot;,v=Math.min(u,h.length,b);break;case&quot;11&quot;:v=0;break;case&quot;22&quot;:var M,A=!1;for(M=0;M&lt;h.length;M++)if(&quot;category&quot;===l(h[M],w,T)){A=!0;break}if(A)m=&quot;v&quot;,v=Math.min(u,_,f.length);else{for(M=0;M&lt;f.length;M++)if(&quot;category&quot;===l(f[M],w,T)){A=!0;break}A?(m=&quot;h&quot;,v=Math.min(u,h.length,b)):(m=&quot;v&quot;,v=Math.min(u,_,f.length))}}else y&gt;0?(m=&quot;v&quot;,v=x&gt;0?Math.min(_,b):Math.min(b)):x&gt;0?(m=&quot;h&quot;,v=Math.min(_)):v=0;if(v){e._length=v;var S=r(&quot;orientation&quot;,m);e._hasPreCompStats?&quot;v&quot;===S&amp;&amp;0===x?(r(&quot;x0&quot;,0),r(&quot;dx&quot;,1)):&quot;h&quot;===S&amp;&amp;0===y&amp;&amp;(r(&quot;y0&quot;,0),r(&quot;dy&quot;,1)):&quot;v&quot;===S&amp;&amp;0===x?r(&quot;x0&quot;):&quot;h&quot;===S&amp;&amp;0===y&amp;&amp;r(&quot;y0&quot;),i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],a)}else e.visible=!1}function f(t,e,r,i){var a=i.prefix,o=n.coerce2(t,e,c,&quot;marker.outliercolor&quot;),s=r(&quot;marker.line.outliercolor&quot;),l=&quot;outliers&quot;;e._hasPreCompStats?l=&quot;all&quot;:(o||s)&amp;&amp;(l=&quot;suspectedoutliers&quot;);var u=r(a+&quot;points&quot;,l);u?(r(&quot;jitter&quot;,&quot;all&quot;===u?.3:0),r(&quot;pointpos&quot;,&quot;all&quot;===u?-1.5:0),r(&quot;marker.symbol&quot;),r(&quot;marker.opacity&quot;),r(&quot;marker.size&quot;),r(&quot;marker.color&quot;,e.line.color),r(&quot;marker.line.color&quot;),r(&quot;marker.line.width&quot;),&quot;suspectedoutliers&quot;===u&amp;&amp;(r(&quot;marker.line.outliercolor&quot;,e.marker.color),r(&quot;marker.line.outlierwidth&quot;)),r(&quot;selected.marker.color&quot;),r(&quot;unselected.marker.color&quot;),r(&quot;selected.marker.size&quot;),r(&quot;unselected.marker.size&quot;),r(&quot;text&quot;),r(&quot;hovertext&quot;)):delete e.marker;var f=r(&quot;hoveron&quot;);&quot;all&quot;!==f&amp;&amp;-1===f.indexOf(&quot;points&quot;)||r(&quot;hovertemplate&quot;),n.coerceSelectionMarkerOpacity(e,r)}e.exports={supplyDefaults:function(t,e,r,i){function s(r,i){return n.coerce(t,e,c,r,i)}if(u(t,e,s,i),!1!==e.visible){o(t,e,i,s);var l=e._hasPreCompStats;l&amp;&amp;(s(&quot;lowerfence&quot;),s(&quot;upperfence&quot;)),s(&quot;line.color&quot;,(t.marker||{}).color||r),s(&quot;line.width&quot;),s(&quot;fillcolor&quot;,a.addOpacity(e.line.color,.5));var h=!1;if(l){var p=s(&quot;mean&quot;),d=s(&quot;sd&quot;);p&amp;&amp;p.length&amp;&amp;(h=!0,d&amp;&amp;d.length&amp;&amp;(h=&quot;sd&quot;))}s(&quot;boxmean&quot;,h),s(&quot;whiskerwidth&quot;),s(&quot;width&quot;),s(&quot;quartilemethod&quot;);var g=!1;if(l){var m=s(&quot;notchspan&quot;);m&amp;&amp;m.length&amp;&amp;(g=!0)}else n.validate(t.notchwidth,c.notchwidth)&amp;&amp;(g=!0);s(&quot;notched&quot;,g)&amp;&amp;s(&quot;notchwidth&quot;),f(t,e,s,{prefix:&quot;box&quot;})}},crossTraceDefaults:function(t,e){var r,i;function a(t){return n.coerce(i._input,i,c,t)}for(var o=0;o&lt;t.length;o++){var l=(i=t[o]).type;&quot;box&quot;!==l&amp;&amp;&quot;violin&quot;!==l||(r=i._input,&quot;group&quot;===e[l+&quot;mode&quot;]&amp;&amp;s(r,i,e,a))}},handleSampleDefaults:u,handlePointsDefaults:f}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_autotype&quot;:829,&quot;../../registry&quot;:911,&quot;../bar/defaults&quot;:925,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:946}],950:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return e.hoverOnBox&amp;&amp;(t.hoverOnBox=e.hoverOnBox),&quot;xVal&quot;in e&amp;&amp;(t.x=e.xVal),&quot;yVal&quot;in e&amp;&amp;(t.y=e.yVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],951:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=i.fillText;function l(t,e,r,s){var l,c,u,f,h,p,d,g,m,v,y,x,b,_,w=t.cd,T=t.xa,k=t.ya,M=w[0].trace,A=w[0].t,S=&quot;violin&quot;===M.type,E=[],C=A.bdPos,L=A.wHover,I=function(t){return u.c2l(t.pos)+A.bPos-u.c2l(p)};S&amp;&amp;&quot;both&quot;!==M.side?(&quot;positive&quot;===M.side&amp;&amp;(m=function(t){var e=I(t);return a.inbox(e,e+L,v)},x=C,b=0),&quot;negative&quot;===M.side&amp;&amp;(m=function(t){var e=I(t);return a.inbox(e-L,e,v)},x=0,b=C)):(m=function(t){var e=I(t);return a.inbox(e-L,e+L,v)},x=b=C),_=S?function(t){return a.inbox(t.span[0]-h,t.span[1]-h,v)}:function(t){return a.inbox(t.min-h,t.max-h,v)},&quot;h&quot;===M.orientation?(h=e,p=r,d=_,g=m,l=&quot;y&quot;,u=k,c=&quot;x&quot;,f=T):(h=r,p=e,d=m,g=_,l=&quot;x&quot;,u=T,c=&quot;y&quot;,f=k);var P=Math.min(1,C/Math.abs(u.r2c(u.range[1])-u.r2c(u.range[0])));function z(t){return(d(t)+g(t))/2}v=t.maxHoverDistance-P,y=t.maxSpikeDistance-P;var O=a.getDistanceFunction(s,d,g,z);if(a.getClosest(w,O,t),!1===t.index)return[];var D=w[t.index],R=M.line.color,F=(M.marker||{}).color;o.opacity(R)&amp;&amp;M.line.width?t.color=R:o.opacity(F)&amp;&amp;M.boxpoints?t.color=F:t.color=M.fillcolor,t[l+&quot;0&quot;]=u.c2p(D.pos+A.bPos-b,!0),t[l+&quot;1&quot;]=u.c2p(D.pos+A.bPos+x,!0),t[l+&quot;LabelVal&quot;]=void 0!==D.orig_p?D.orig_p:D.pos;var B=l+&quot;Spike&quot;;t.spikeDistance=z(D)*y/v,t[B]=u.c2p(D.pos,!0);var N={},j=[&quot;med&quot;,&quot;q1&quot;,&quot;q3&quot;,&quot;min&quot;,&quot;max&quot;];(M.boxmean||(M.meanline||{}).visible)&amp;&amp;j.push(&quot;mean&quot;),(M.boxpoints||M.points)&amp;&amp;j.push(&quot;lf&quot;,&quot;uf&quot;);for(var U=0;U&lt;j.length;U++){var V=j[U];if(V in D&amp;&amp;!(D[V]in N)){N[D[V]]=!0;var q=D[V],H=f.c2p(q,!0),G=i.extendFlat({},t);G.attr=V,G[c+&quot;0&quot;]=G[c+&quot;1&quot;]=H,G[c+&quot;LabelVal&quot;]=q,G[c+&quot;Label&quot;]=(A.labels?A.labels[V]+&quot; &quot;:&quot;&quot;)+n.hoverLabelText(f,q),G.hoverOnBox=!0,&quot;mean&quot;===V&amp;&amp;&quot;sd&quot;in D&amp;&amp;&quot;sd&quot;===M.boxmean&amp;&amp;(G[c+&quot;err&quot;]=D.sd),t.name=&quot;&quot;,t.spikeDistance=void 0,t[B]=void 0,G.hovertemplate=!1,E.push(G)}}return E}function c(t,e,r){for(var n,o,l,c=t.cd,u=t.xa,f=t.ya,h=c[0].trace,p=u.c2p(e),d=f.c2p(r),g=a.quadrature((function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(u.c2p(t.x)-p)-e,1-3/e)}),(function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(f.c2p(t.y)-d)-e,1-3/e)})),m=!1,v=0;v&lt;c.length;v++){o=c[v];for(var y=0;y&lt;(o.pts||[]).length;y++){var x=g(l=o.pts[y]);x&lt;=t.distance&amp;&amp;(t.distance=x,m=[v,y])}}if(!m)return!1;l=(o=c[m[0]]).pts[m[1]];var b=u.c2p(l.x,!0),_=f.c2p(l.y,!0),w=l.mrc||1;n=i.extendFlat({},t,{index:l.i,color:(h.marker||{}).color,name:h.name,x0:b-w,x1:b+w,y0:_-w,y1:_+w,spikeDistance:t.distance,hovertemplate:h.hovertemplate});var T,k=o.orig_p,M=void 0!==k?k:o.pos;return&quot;h&quot;===h.orientation?(T=f,n.xLabelVal=l.x,n.yLabelVal=M):(T=u,n.xLabelVal=M,n.yLabelVal=l.y),n[T._id.charAt(0)+&quot;Spike&quot;]=T.c2p(o.pos,!0),s(l,h,n),n}e.exports={hoverPoints:function(t,e,r,n){var i,a=t.cd[0].trace.hoveron,o=[];return-1!==a.indexOf(&quot;boxes&quot;)&amp;&amp;(o=o.concat(l(t,e,r,n))),-1!==a.indexOf(&quot;points&quot;)&amp;&amp;(i=c(t,e,r)),&quot;closest&quot;===n?i?[i]:o:i?(o.push(i),o):o},hoverOnBoxes:l,hoverOnPoints:c}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],952:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;).supplyLayoutDefaults,calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;box&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;oriented&quot;,&quot;box-violin&quot;,&quot;showLegend&quot;,&quot;boxLayout&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:946,&quot;./calc&quot;:947,&quot;./cross_trace_calc&quot;:948,&quot;./defaults&quot;:949,&quot;./event_data&quot;:950,&quot;./hover&quot;:951,&quot;./layout_attributes&quot;:953,&quot;./layout_defaults&quot;:954,&quot;./plot&quot;:955,&quot;./select&quot;:956,&quot;./style&quot;:957}],953:[function(t,e,r){&quot;use strict&quot;;e.exports={boxmode:{valType:&quot;enumerated&quot;,values:[&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;overlay&quot;,editType:&quot;calc&quot;},boxgap:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,editType:&quot;calc&quot;},boxgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,editType:&quot;calc&quot;}}},{}],954:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./layout_attributes&quot;);function o(t,e,r,i,a){for(var o=a+&quot;Layout&quot;,s=!1,l=0;l&lt;r.length;l++){var c=r[l];if(n.traceIs(c,o)){s=!0;break}}s&amp;&amp;(i(a+&quot;mode&quot;),i(a+&quot;gap&quot;),i(a+&quot;groupgap&quot;))}e.exports={supplyLayoutDefaults:function(t,e,r){o(0,0,r,(function(r,n){return i.coerce(t,e,a,r,n)}),&quot;box&quot;)},_supply:o}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./layout_attributes&quot;:953}],955:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;);function o(t,e,r,a){var o,s,l=&quot;h&quot;===r.orientation,c=e.val,u=e.pos,f=!!u.rangebreaks,h=a.bPos,p=a.wdPos||0,d=a.bPosPxOffset||0,g=r.whiskerwidth||0,m=r.notched||!1,v=m?1-2*r.notchwidth:1;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var y=t.selectAll(&quot;path.box&quot;).data(&quot;violin&quot;!==r.type||r.box.visible?i.identity:[]);y.enter().append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;class&quot;,&quot;box&quot;),y.exit().remove(),y.each((function(t){if(t.empty)return&quot;M0,0Z&quot;;var e=u.c2l(t.pos+h,!0),a=u.l2p(e-o)+d,y=u.l2p(e+s)+d,x=f?(a+y)/2:u.l2p(e)+d,b=r.whiskerwidth,_=f?a*b+(1-b)*x:u.l2p(e-p)+d,w=f?y*b+(1-b)*x:u.l2p(e+p)+d,T=u.l2p(e-o*v)+d,k=u.l2p(e+s*v)+d,M=c.c2p(t.q1,!0),A=c.c2p(t.q3,!0),S=i.constrain(c.c2p(t.med,!0),Math.min(M,A)+1,Math.max(M,A)-1),E=void 0===t.lf||!1===r.boxpoints,C=c.c2p(E?t.min:t.lf,!0),L=c.c2p(E?t.max:t.uf,!0),I=c.c2p(t.ln,!0),P=c.c2p(t.un,!0);l?n.select(this).attr(&quot;d&quot;,&quot;M&quot;+S+&quot;,&quot;+T+&quot;V&quot;+k+&quot;M&quot;+M+&quot;,&quot;+a+&quot;V&quot;+y+(m?&quot;H&quot;+I+&quot;L&quot;+S+&quot;,&quot;+k+&quot;L&quot;+P+&quot;,&quot;+y:&quot;&quot;)+&quot;H&quot;+A+&quot;V&quot;+a+(m?&quot;H&quot;+P+&quot;L&quot;+S+&quot;,&quot;+T+&quot;L&quot;+I+&quot;,&quot;+a:&quot;&quot;)+&quot;ZM&quot;+M+&quot;,&quot;+x+&quot;H&quot;+C+&quot;M&quot;+A+&quot;,&quot;+x+&quot;H&quot;+L+(0===g?&quot;&quot;:&quot;M&quot;+C+&quot;,&quot;+_+&quot;V&quot;+w+&quot;M&quot;+L+&quot;,&quot;+_+&quot;V&quot;+w)):n.select(this).attr(&quot;d&quot;,&quot;M&quot;+T+&quot;,&quot;+S+&quot;H&quot;+k+&quot;M&quot;+a+&quot;,&quot;+M+&quot;H&quot;+y+(m?&quot;V&quot;+I+&quot;L&quot;+k+&quot;,&quot;+S+&quot;L&quot;+y+&quot;,&quot;+P:&quot;&quot;)+&quot;V&quot;+A+&quot;H&quot;+a+(m?&quot;V&quot;+P+&quot;L&quot;+T+&quot;,&quot;+S+&quot;L&quot;+a+&quot;,&quot;+I:&quot;&quot;)+&quot;ZM&quot;+x+&quot;,&quot;+M+&quot;V&quot;+C+&quot;M&quot;+x+&quot;,&quot;+A+&quot;V&quot;+L+(0===g?&quot;&quot;:&quot;M&quot;+_+&quot;,&quot;+C+&quot;H&quot;+w+&quot;M&quot;+_+&quot;,&quot;+L+&quot;H&quot;+w))}))}function s(t,e,r,n){var o=e.x,s=e.y,l=n.bdPos,c=n.bPos,u=r.boxpoints||r.points;i.seedPseudoRandom();var f=t.selectAll(&quot;g.points&quot;).data(u?function(t){return t.forEach((function(t){t.t=n,t.trace=r})),t}:[]);f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;points&quot;),f.exit().remove();var h=f.selectAll(&quot;path&quot;).data((function(t){var e,n,a=t.pts2,o=Math.max((t.max-t.min)/10,t.q3-t.q1),s=1e-9*o,f=.01*o,h=[],p=0;if(r.jitter){if(0===o)for(p=1,h=new Array(a.length),e=0;e&lt;a.length;e++)h[e]=1;else for(e=0;e&lt;a.length;e++){var d=Math.max(0,e-5),g=a[d].v,m=Math.min(a.length-1,e+5),v=a[m].v;&quot;all&quot;!==u&amp;&amp;(a[e].v&lt;t.lf?v=Math.min(v,t.lf):g=Math.max(g,t.uf));var y=Math.sqrt(f*(m-d)/(v-g+s))||0;y=i.constrain(Math.abs(y),0,1),h.push(y),p=Math.max(y,p)}n=2*r.jitter/(p||1)}for(e=0;e&lt;a.length;e++){var x=a[e],b=x.v,_=r.jitter?n*h[e]*(i.pseudoRandom()-.5):0,w=t.pos+c+l*(r.pointpos+_);&quot;h&quot;===r.orientation?(x.y=w,x.x=b):(x.x=w,x.y=b),&quot;suspectedoutliers&quot;===u&amp;&amp;b&lt;t.uo&amp;&amp;b&gt;t.lo&amp;&amp;(x.so=!0)}return a}));h.enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0),h.exit().remove(),h.call(a.translatePoints,o,s)}function l(t,e,r,a){var o,s,l=e.val,c=e.pos,u=!!c.rangebreaks,f=a.bPos,h=a.bPosPxOffset||0,p=r.boxmean||(r.meanline||{}).visible;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var d=t.selectAll(&quot;path.mean&quot;).data(&quot;box&quot;===r.type&amp;&amp;r.boxmean||&quot;violin&quot;===r.type&amp;&amp;r.box.visible&amp;&amp;r.meanline.visible?i.identity:[]);d.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;mean&quot;).style({fill:&quot;none&quot;,&quot;vector-effect&quot;:&quot;non-scaling-stroke&quot;}),d.exit().remove(),d.each((function(t){var e=c.c2l(t.pos+f,!0),i=c.l2p(e-o)+h,a=c.l2p(e+s)+h,d=u?(i+a)/2:c.l2p(e)+h,g=l.c2p(t.mean,!0),m=l.c2p(t.mean-t.sd,!0),v=l.c2p(t.mean+t.sd,!0);&quot;h&quot;===r.orientation?n.select(this).attr(&quot;d&quot;,&quot;M&quot;+g+&quot;,&quot;+i+&quot;V&quot;+a+(&quot;sd&quot;===p?&quot;m0,0L&quot;+m+&quot;,&quot;+d+&quot;L&quot;+g+&quot;,&quot;+i+&quot;L&quot;+v+&quot;,&quot;+d+&quot;Z&quot;:&quot;&quot;)):n.select(this).attr(&quot;d&quot;,&quot;M&quot;+i+&quot;,&quot;+g+&quot;H&quot;+a+(&quot;sd&quot;===p?&quot;m0,0L&quot;+d+&quot;,&quot;+m+&quot;L&quot;+i+&quot;,&quot;+g+&quot;L&quot;+d+&quot;,&quot;+v+&quot;Z&quot;:&quot;&quot;))}))}e.exports={plot:function(t,e,r,a){var c=e.xaxis,u=e.yaxis;i.makeTraceGroups(a,r,&quot;trace boxes&quot;).each((function(t){var e,r,i=n.select(this),a=t[0],f=a.t,h=a.trace;(f.wdPos=f.bdPos*h.whiskerwidth,!0!==h.visible||f.empty)?i.remove():(&quot;h&quot;===h.orientation?(e=u,r=c):(e=c,r=u),o(i,{pos:e,val:r},h,f),s(i,{x:c,y:u},h,f),l(i,{pos:e,val:r},h,f))}))},plotBoxAndWhiskers:o,plotPoints:s,plotBoxMean:l}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,d3:169}],956:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n,i=t.cd,a=t.xaxis,o=t.yaxis,s=[];if(!1===e)for(r=0;r&lt;i.length;r++)for(n=0;n&lt;(i[r].pts||[]).length;n++)i[r].pts[n].selected=0;else for(r=0;r&lt;i.length;r++)for(n=0;n&lt;(i[r].pts||[]).length;n++){var l=i[r].pts[n],c=a.c2p(l.x),u=o.c2p(l.y);e.contains([c,u],null,l.i,t)?(s.push({pointNumber:l.i,x:a.c2d(l.x),y:o.c2d(l.y)}),l.selected=1):l.selected=0}return s}},{}],957:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;);e.exports={style:function(t,e,r){var o=r||n.select(t).selectAll(&quot;g.trace.boxes&quot;);o.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),o.each((function(e){var r=n.select(this),o=e[0].trace,s=o.line.width;function l(t,e,r,n){t.style(&quot;stroke-width&quot;,e+&quot;px&quot;).call(i.stroke,r).call(i.fill,n)}var c=r.selectAll(&quot;path.box&quot;);if(&quot;candlestick&quot;===o.type)c.each((function(t){if(!t.empty){var e=n.select(this),r=o[t.dir];l(e,r.line.width,r.line.color,r.fillcolor),e.style(&quot;opacity&quot;,o.selectedpoints&amp;&amp;!t.selected?.3:1)}}));else{l(c,s,o.line.color,o.fillcolor),r.selectAll(&quot;path.mean&quot;).style({&quot;stroke-width&quot;:s,&quot;stroke-dasharray&quot;:2*s+&quot;px,&quot;+s+&quot;px&quot;}).call(i.stroke,o.line.color);var u=r.selectAll(&quot;path.point&quot;);a.pointStyle(u,o,t)}}))},styleOnSelect:function(t,e,r){var n=e[0].trace,i=r.selectAll(&quot;path.point&quot;);n.selectedpoints?a.selectedPointStyle(i,n):a.pointStyle(i,n,t)}}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,d3:169}],958:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).extendFlat,i=t(&quot;../ohlc/attributes&quot;),a=t(&quot;../box/attributes&quot;);function o(t){return{line:{color:n({},a.line.color,{dflt:t}),width:a.line.width,editType:&quot;style&quot;},fillcolor:a.fillcolor,editType:&quot;style&quot;}}e.exports={xperiod:i.xperiod,xperiod0:i.xperiod0,xperiodalignment:i.xperiodalignment,x:i.x,open:i.open,high:i.high,low:i.low,close:i.close,line:{width:n({},a.line.width,{}),editType:&quot;style&quot;},increasing:o(i.increasing.line.color.dflt),decreasing:o(i.decreasing.line.color.dflt),text:i.text,hovertext:i.hovertext,whiskerwidth:n({},a.whiskerwidth,{dflt:0}),hoverlabel:i.hoverlabel}},{&quot;../../lib&quot;:778,&quot;../box/attributes&quot;:946,&quot;../ohlc/attributes&quot;:1133}],959:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/cartesian/align_period&quot;),o=t(&quot;../ohlc/calc&quot;).calcCommon;function s(t,e,r,n){return{min:r,q1:Math.min(t,n),med:n,q3:Math.max(t,n),max:e}}e.exports=function(t,e){var r=t._fullLayout,l=i.getFromId(t,e.xaxis),c=i.getFromId(t,e.yaxis),u=l.makeCalcdata(e,&quot;x&quot;),f=a(e,l,&quot;x&quot;,u),h=o(t,e,u,f,c,s);return h.length?(n.extendFlat(h[0].t,{num:r._numBoxes,dPos:n.distinctVals(f).minDiff/2,posLetter:&quot;x&quot;,valLetter:&quot;y&quot;}),r._numBoxes++,h):[{t:{empty:!0}}]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../ohlc/calc&quot;:1134}],960:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../ohlc/ohlc_defaults&quot;),o=t(&quot;../scatter/period_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r,n){var a=r(n+&quot;.line.color&quot;);r(n+&quot;.line.width&quot;,e.line.width),r(n+&quot;.fillcolor&quot;,i.addOpacity(a,.5))}e.exports=function(t,e,r,i){function c(r,i){return n.coerce(t,e,s,r,i)}a(t,e,c,i)?(o(t,e,i,c,{x:!0}),c(&quot;line.width&quot;),l(t,e,c,&quot;increasing&quot;),l(t,e,c,&quot;decreasing&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;whiskerwidth&quot;),i._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../ohlc/ohlc_defaults&quot;:1138,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:958}],961:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;candlestick&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;showLegend&quot;,&quot;candlestick&quot;,&quot;boxLayout&quot;],meta:{},attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;../box/layout_attributes&quot;),supplyLayoutDefaults:t(&quot;../box/layout_defaults&quot;).supplyLayoutDefaults,crossTraceCalc:t(&quot;../box/cross_trace_calc&quot;).crossTraceCalc,supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;../box/plot&quot;).plot,layerName:&quot;boxlayer&quot;,style:t(&quot;../box/style&quot;).style,hoverPoints:t(&quot;../ohlc/hover&quot;).hoverPoints,selectPoints:t(&quot;../ohlc/select&quot;)}},{&quot;../../plots/cartesian&quot;:841,&quot;../box/cross_trace_calc&quot;:948,&quot;../box/layout_attributes&quot;:953,&quot;../box/layout_defaults&quot;:954,&quot;../box/plot&quot;:955,&quot;../box/style&quot;:957,&quot;../ohlc/hover&quot;:1136,&quot;../ohlc/select&quot;:1140,&quot;./attributes&quot;:958,&quot;./calc&quot;:959,&quot;./defaults&quot;:960}],962:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./axis_defaults&quot;),i=t(&quot;../../plot_api/plot_template&quot;);e.exports=function(t,e,r,a,o){a(&quot;a&quot;)||(a(&quot;da&quot;),a(&quot;a0&quot;)),a(&quot;b&quot;)||(a(&quot;db&quot;),a(&quot;b0&quot;)),function(t,e,r,a){[&quot;aaxis&quot;,&quot;baxis&quot;].forEach((function(o){var s=o.charAt(0),l=t[o]||{},c=i.newContainer(e,o),u={tickfont:&quot;x&quot;,id:s+&quot;axis&quot;,letter:s,font:e.font,name:o,data:t[s],calendar:e.calendar,dfltColor:a,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};n(l,c,u),c._categories=c._categories||[],t[o]||&quot;-&quot;===l.type||(t[o]={type:l.type})}))}(t,e,r,o)}},{&quot;../../plot_api/plot_template&quot;:817,&quot;./axis_defaults&quot;:967}],963:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t){return function t(e,r){if(!n(e)||r&gt;=10)return null;for(var i=1/0,a=-1/0,o=e.length,s=0;s&lt;o;s++){var l=e[s];if(n(l)){var c=t(l,r+1);c&amp;&amp;(i=Math.min(c[0],i),a=Math.max(c[1],a))}else i=Math.min(l,i),a=Math.max(l,a)}return[i,a]}(t,0)}},{&quot;../../lib&quot;:778}],964:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;./axis_attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=n({editType:&quot;calc&quot;});o.family.dflt='&quot;Open Sans&quot;, verdana, arial, sans-serif',o.size.dflt=12,o.color.dflt=a.defaultLine,e.exports={carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},a0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},da:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},db:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},cheaterslope:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},aaxis:i,baxis:i,font:o,color:{valType:&quot;color&quot;,dflt:a.defaultLine,editType:&quot;plot&quot;},transforms:void 0}},{&quot;../../components/color/attributes&quot;:642,&quot;../../plots/font_attributes&quot;:856,&quot;./axis_attributes&quot;:966}],965:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g,m,v,y=n(r)?&quot;a&quot;:&quot;b&quot;,x=(&quot;a&quot;===y?t.aaxis:t.baxis).smoothing,b=&quot;a&quot;===y?t.a2i:t.b2j,_=&quot;a&quot;===y?r:i,w=&quot;a&quot;===y?i:r,T=&quot;a&quot;===y?e.a.length:e.b.length,k=&quot;a&quot;===y?e.b.length:e.a.length,M=Math.floor(&quot;a&quot;===y?t.b2j(w):t.a2i(w)),A=&quot;a&quot;===y?function(e){return t.evalxy([],e,M)}:function(e){return t.evalxy([],M,e)};x&amp;&amp;(s=Math.max(0,Math.min(k-2,M)),l=M-s,o=&quot;a&quot;===y?function(e,r){return t.dxydi([],e,s,r,l)}:function(e,r){return t.dxydj([],s,e,l,r)});var S=b(_[0]),E=b(_[1]),C=S&lt;E?1:-1,L=1e-8*(E-S),I=C&gt;0?Math.floor:Math.ceil,P=C&gt;0?Math.ceil:Math.floor,z=C&gt;0?Math.min:Math.max,O=C&gt;0?Math.max:Math.min,D=I(S+L),R=P(E-L),F=[[f=A(S)]];for(a=D;a*C&lt;R*C;a+=C)c=[],g=O(S,a),v=(m=z(E,a+C))-g,u=Math.max(0,Math.min(T-2,Math.floor(.5*(g+m)))),h=A(m),x&amp;&amp;(p=o(u,g-u),d=o(u,m-u),c.push([f[0]+p[0]/3*v,f[1]+p[1]/3*v]),c.push([h[0]-d[0]/3*v,h[1]-d[1]/3*v])),c.push(h),F.push(c),f=h;return F}},{&quot;../../lib&quot;:778}],966:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../components/color/attributes&quot;),a=t(&quot;../../plots/cartesian/layout_attributes&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll;t(&quot;../../constants/docs&quot;).FORMAT_LINK,t(&quot;../../constants/docs&quot;).TIME_FORMAT_LINK;e.exports={color:{valType:&quot;color&quot;,editType:&quot;calc&quot;},smoothing:{valType:&quot;number&quot;,dflt:1,min:0,max:1.3,editType:&quot;calc&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},font:n({editType:&quot;calc&quot;}),offset:{valType:&quot;number&quot;,dflt:10,editType:&quot;calc&quot;},editType:&quot;calc&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;date&quot;,&quot;category&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;},autotypenumbers:a.autotypenumbers,autorange:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],dflt:!0,editType:&quot;calc&quot;},rangemode:{valType:&quot;enumerated&quot;,values:[&quot;normal&quot;,&quot;tozero&quot;,&quot;nonnegative&quot;],dflt:&quot;normal&quot;,editType:&quot;calc&quot;},range:{valType:&quot;info_array&quot;,editType:&quot;calc&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}]},fixedrange:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},cheatertype:{valType:&quot;enumerated&quot;,values:[&quot;index&quot;,&quot;value&quot;],dflt:&quot;value&quot;,editType:&quot;calc&quot;},tickmode:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;array&quot;],dflt:&quot;array&quot;,editType:&quot;calc&quot;},nticks:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},tickvals:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},showticklabels:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;end&quot;,&quot;both&quot;,&quot;none&quot;],dflt:&quot;start&quot;,editType:&quot;calc&quot;},tickfont:n({editType:&quot;calc&quot;}),tickangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;calc&quot;},tickprefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showtickprefix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},ticksuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showticksuffix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},showexponent:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},exponentformat:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;e&quot;,&quot;E&quot;,&quot;power&quot;,&quot;SI&quot;,&quot;B&quot;],dflt:&quot;B&quot;,editType:&quot;calc&quot;},minexponent:{valType:&quot;number&quot;,dflt:3,min:0,editType:&quot;calc&quot;},separatethousands:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},tickformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},tickformatstops:o(a.tickformatstops,&quot;calc&quot;,&quot;from-root&quot;),categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},labelpadding:{valType:&quot;integer&quot;,dflt:10,editType:&quot;calc&quot;},labelprefix:{valType:&quot;string&quot;,editType:&quot;calc&quot;},labelsuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showline:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},linecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;calc&quot;},linewidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},gridcolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},showgrid:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},minorgridcount:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},minorgridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},minorgridcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;calc&quot;},startline:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},startlinecolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},startlinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},endline:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},endlinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},endlinecolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},tick0:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},dtick:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},arraytick0:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},arraydtick:{valType:&quot;integer&quot;,min:1,dflt:1,editType:&quot;calc&quot;},_deprecated:{title:{valType:&quot;string&quot;,editType:&quot;calc&quot;},titlefont:n({editType:&quot;calc&quot;}),titleoffset:{valType:&quot;number&quot;,dflt:10,editType:&quot;calc&quot;}},editType:&quot;calc&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../constants/docs&quot;:748,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/font_attributes&quot;:856}],967:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./attributes&quot;),i=t(&quot;../../components/color&quot;).addOpacity,a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),l=t(&quot;../../plots/cartesian/tick_label_defaults&quot;),c=t(&quot;../../plots/cartesian/category_order_defaults&quot;),u=t(&quot;../../plots/cartesian/set_convert&quot;),f=t(&quot;../../plots/cartesian/axis_autotype&quot;);e.exports=function(t,e,r){var h=r.letter,p=r.font||{},d=n[h+&quot;axis&quot;];function g(r,n){return o.coerce(t,e,d,r,n)}function m(r,n){return o.coerce2(t,e,d,r,n)}r.name&amp;&amp;(e._name=r.name,e._id=r.name),g(&quot;autotypenumbers&quot;,r.autotypenumbersDflt);var v=g(&quot;type&quot;);(&quot;-&quot;===v&amp;&amp;(r.data&amp;&amp;function(t,e){if(&quot;-&quot;!==t.type)return;var r=t._id.charAt(0),n=t[r+&quot;calendar&quot;];t.type=f(e,n,{autotypenumbers:t.autotypenumbers})}(e,r.data),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:v=t.type=e.type),g(&quot;smoothing&quot;),g(&quot;cheatertype&quot;),g(&quot;showticklabels&quot;),g(&quot;labelprefix&quot;,h+&quot; = &quot;),g(&quot;labelsuffix&quot;),g(&quot;showtickprefix&quot;),g(&quot;showticksuffix&quot;),g(&quot;separatethousands&quot;),g(&quot;tickformat&quot;),g(&quot;exponentformat&quot;),g(&quot;minexponent&quot;),g(&quot;showexponent&quot;),g(&quot;categoryorder&quot;),g(&quot;tickmode&quot;),g(&quot;tickvals&quot;),g(&quot;ticktext&quot;),g(&quot;tick0&quot;),g(&quot;dtick&quot;),&quot;array&quot;===e.tickmode&amp;&amp;(g(&quot;arraytick0&quot;),g(&quot;arraydtick&quot;)),g(&quot;labelpadding&quot;),e._hovertitle=h,&quot;date&quot;===v)&amp;&amp;a.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;,r.calendar);u(e,r.fullLayout),e.c2p=o.identity;var y=g(&quot;color&quot;,r.dfltColor),x=y===t.color?y:p.color;g(&quot;title.text&quot;)&amp;&amp;(o.coerceFont(g,&quot;title.font&quot;,{family:p.family,size:Math.round(1.2*p.size),color:x}),g(&quot;title.offset&quot;)),g(&quot;tickangle&quot;),g(&quot;autorange&quot;,!e.isValidRange(t.range))&amp;&amp;g(&quot;rangemode&quot;),g(&quot;range&quot;),e.cleanRange(),g(&quot;fixedrange&quot;),s(t,e,g,v),l(t,e,g,v,r),c(t,e,g,{data:r.data,dataAttr:h});var b=m(&quot;gridcolor&quot;,i(y,.3)),_=m(&quot;gridwidth&quot;),w=g(&quot;showgrid&quot;);w||(delete e.gridcolor,delete e.gridwidth);var T=m(&quot;startlinecolor&quot;,y),k=m(&quot;startlinewidth&quot;,_);g(&quot;startline&quot;,e.showgrid||!!T||!!k)||(delete e.startlinecolor,delete e.startlinewidth);var M=m(&quot;endlinecolor&quot;,y),A=m(&quot;endlinewidth&quot;,_);return g(&quot;endline&quot;,e.showgrid||!!M||!!A)||(delete e.endlinecolor,delete e.endlinewidth),w?(g(&quot;minorgridcount&quot;),g(&quot;minorgridwidth&quot;,_),g(&quot;minorgridcolor&quot;,i(b,.06)),e.minorgridcount||(delete e.minorgridwidth,delete e.minorgridcolor)):(delete e.gridcolor,delete e.gridWidth),&quot;none&quot;===e.showticklabels&amp;&amp;(delete e.tickfont,delete e.tickangle,delete e.showexponent,delete e.exponentformat,delete e.minexponent,delete e.tickformat,delete e.showticksuffix,delete e.showtickprefix),e.showticksuffix||delete e.ticksuffix,e.showtickprefix||delete e.tickprefix,g(&quot;tickmode&quot;),e}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_autotype&quot;:829,&quot;../../plots/cartesian/category_order_defaults&quot;:832,&quot;../../plots/cartesian/set_convert&quot;:848,&quot;../../plots/cartesian/tick_label_defaults&quot;:849,&quot;../../plots/cartesian/tick_value_defaults&quot;:851,&quot;../../registry&quot;:911,&quot;./attributes&quot;:964}],968:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;).isArray1D,a=t(&quot;./cheater_basis&quot;),o=t(&quot;./array_minmax&quot;),s=t(&quot;./calc_gridlines&quot;),l=t(&quot;./calc_labels&quot;),c=t(&quot;./calc_clippath&quot;),u=t(&quot;../heatmap/clean_2d_array&quot;),f=t(&quot;./smooth_fill_2d_array&quot;),h=t(&quot;../heatmap/convert_column_xyz&quot;),p=t(&quot;./set_convert&quot;);e.exports=function(t,e){var r=n.getFromId(t,e.xaxis),d=n.getFromId(t,e.yaxis),g=e.aaxis,m=e.baxis,v=e.x,y=e.y,x=[];v&amp;&amp;i(v)&amp;&amp;x.push(&quot;x&quot;),y&amp;&amp;i(y)&amp;&amp;x.push(&quot;y&quot;),x.length&amp;&amp;h(e,g,m,&quot;a&quot;,&quot;b&quot;,x);var b=e._a=e._a||e.a,_=e._b=e._b||e.b;v=e._x||e.x,y=e._y||e.y;var w={};if(e._cheater){var T=&quot;index&quot;===g.cheatertype?b.length:b,k=&quot;index&quot;===m.cheatertype?_.length:_;v=a(T,k,e.cheaterslope)}e._x=v=u(v),e._y=y=u(y),f(v,b,_),f(y,b,_),p(e),e.setScale();var M=o(v),A=o(y),S=.5*(M[1]-M[0]),E=.5*(M[1]+M[0]),C=.5*(A[1]-A[0]),L=.5*(A[1]+A[0]);return M=[E-1.3*S,E+1.3*S],A=[L-1.3*C,L+1.3*C],e._extremes[r._id]=n.findExtremes(r,M,{padded:!0}),e._extremes[d._id]=n.findExtremes(d,A,{padded:!0}),s(e,&quot;a&quot;,&quot;b&quot;),s(e,&quot;b&quot;,&quot;a&quot;),l(e,g),l(e,m),w.clipsegments=c(e._xctrl,e._yctrl,g,m),w.x=v,w.y=y,w.a=b,w.b=_,[w]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../heatmap/clean_2d_array&quot;:1067,&quot;../heatmap/convert_column_xyz&quot;:1069,&quot;./array_minmax&quot;:963,&quot;./calc_clippath&quot;:969,&quot;./calc_gridlines&quot;:970,&quot;./calc_labels&quot;:971,&quot;./cheater_basis&quot;:973,&quot;./set_convert&quot;:986,&quot;./smooth_fill_2d_array&quot;:987}],969:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i,a,o,s=[],l=!!r.smoothing,c=!!n.smoothing,u=t[0].length-1,f=t.length-1;for(i=0,a=[],o=[];i&lt;=u;i++)a[i]=t[0][i],o[i]=e[0][i];for(s.push({x:a,y:o,bicubic:l}),i=0,a=[],o=[];i&lt;=f;i++)a[i]=t[i][u],o[i]=e[i][u];for(s.push({x:a,y:o,bicubic:c}),i=u,a=[],o=[];i&gt;=0;i--)a[u-i]=t[f][i],o[u-i]=e[f][i];for(s.push({x:a,y:o,bicubic:l}),i=f,a=[],o=[];i&gt;=0;i--)a[f-i]=t[i][0],o[f-i]=e[i][0];return s.push({x:a,y:o,bicubic:c}),s}},{}],970:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=function(t,e,r){var a,o,s,l,c,u,f,h,p,d,g,m,v,y,x=t[&quot;_&quot;+e],b=t[e+&quot;axis&quot;],_=b._gridlines=[],w=b._minorgridlines=[],T=b._boundarylines=[],k=t[&quot;_&quot;+r],M=t[r+&quot;axis&quot;];&quot;array&quot;===b.tickmode&amp;&amp;(b.tickvals=x.slice());var A=t._xctrl,S=t._yctrl,E=A[0].length,C=A.length,L=t._a.length,I=t._b.length;n.prepTicks(b),&quot;array&quot;===b.tickmode&amp;&amp;delete b.tickvals;var P=b.smoothing?3:1;function z(n){var i,a,o,s,l,c,u,f,p,d,g,m,v=[],y=[],x={};if(&quot;b&quot;===e)for(a=t.b2j(n),o=Math.floor(Math.max(0,Math.min(I-2,a))),s=a-o,x.length=I,x.crossLength=L,x.xy=function(e){return t.evalxy([],e,a)},x.dxy=function(e,r){return t.dxydi([],e,o,r,s)},i=0;i&lt;L;i++)c=Math.min(L-2,i),u=i-c,f=t.evalxy([],i,a),M.smoothing&amp;&amp;i&gt;0&amp;&amp;(p=t.dxydi([],i-1,o,0,s),v.push(l[0]+p[0]/3),y.push(l[1]+p[1]/3),d=t.dxydi([],i-1,o,1,s),v.push(f[0]-d[0]/3),y.push(f[1]-d[1]/3)),v.push(f[0]),y.push(f[1]),l=f;else for(i=t.a2i(n),c=Math.floor(Math.max(0,Math.min(L-2,i))),u=i-c,x.length=L,x.crossLength=I,x.xy=function(e){return t.evalxy([],i,e)},x.dxy=function(e,r){return t.dxydj([],c,e,u,r)},a=0;a&lt;I;a++)o=Math.min(I-2,a),s=a-o,f=t.evalxy([],i,a),M.smoothing&amp;&amp;a&gt;0&amp;&amp;(g=t.dxydj([],c,a-1,u,0),v.push(l[0]+g[0]/3),y.push(l[1]+g[1]/3),m=t.dxydj([],c,a-1,u,1),v.push(f[0]-m[0]/3),y.push(f[1]-m[1]/3)),v.push(f[0]),y.push(f[1]),l=f;return x.axisLetter=e,x.axis=b,x.crossAxis=M,x.value=n,x.constvar=r,x.index=h,x.x=v,x.y=y,x.smoothing=M.smoothing,x}function O(n){var i,a,o,s,l,c=[],u=[],f={};if(f.length=x.length,f.crossLength=k.length,&quot;b&quot;===e)for(o=Math.max(0,Math.min(I-2,n)),l=Math.min(1,Math.max(0,n-o)),f.xy=function(e){return t.evalxy([],e,n)},f.dxy=function(e,r){return t.dxydi([],e,o,r,l)},i=0;i&lt;E;i++)c[i]=A[n*P][i],u[i]=S[n*P][i];else for(a=Math.max(0,Math.min(L-2,n)),s=Math.min(1,Math.max(0,n-a)),f.xy=function(e){return t.evalxy([],n,e)},f.dxy=function(e,r){return t.dxydj([],a,e,s,r)},i=0;i&lt;C;i++)c[i]=A[i][n*P],u[i]=S[i][n*P];return f.axisLetter=e,f.axis=b,f.crossAxis=M,f.value=x[n],f.constvar=r,f.index=n,f.x=c,f.y=u,f.smoothing=M.smoothing,f}if(&quot;array&quot;===b.tickmode){for(l=5e-15,u=(c=[Math.floor((x.length-1-b.arraytick0)/b.arraydtick*(1+l)),Math.ceil(-b.arraytick0/b.arraydtick/(1+l))].sort((function(t,e){return t-e})))[0]-1,f=c[1]+1,h=u;h&lt;f;h++)(o=b.arraytick0+b.arraydtick*h)&lt;0||o&gt;x.length-1||_.push(i(O(o),{color:b.gridcolor,width:b.gridwidth}));for(h=u;h&lt;f;h++)if(s=b.arraytick0+b.arraydtick*h,g=Math.min(s+b.arraydtick,x.length-1),!(s&lt;0||s&gt;x.length-1||g&lt;0||g&gt;x.length-1))for(m=x[s],v=x[g],a=0;a&lt;b.minorgridcount;a++)(y=g-s)&lt;=0||(d=m+(v-m)*(a+1)/(b.minorgridcount+1)*(b.arraydtick/y))&lt;x[0]||d&gt;x[x.length-1]||w.push(i(z(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&amp;&amp;T.push(i(O(0),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&amp;&amp;T.push(i(O(x.length-1),{color:b.endlinecolor,width:b.endlinewidth}))}else{for(l=5e-15,u=(c=[Math.floor((x[x.length-1]-b.tick0)/b.dtick*(1+l)),Math.ceil((x[0]-b.tick0)/b.dtick/(1+l))].sort((function(t,e){return t-e})))[0],f=c[1],h=u;h&lt;=f;h++)p=b.tick0+b.dtick*h,_.push(i(z(p),{color:b.gridcolor,width:b.gridwidth}));for(h=u-1;h&lt;f+1;h++)for(p=b.tick0+b.dtick*h,a=0;a&lt;b.minorgridcount;a++)(d=p+b.dtick*(a+1)/(b.minorgridcount+1))&lt;x[0]||d&gt;x[x.length-1]||w.push(i(z(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&amp;&amp;T.push(i(z(x[0]),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&amp;&amp;T.push(i(z(x[x.length-1]),{color:b.endlinecolor,width:b.endlinewidth}))}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/cartesian/axes&quot;:828}],971:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=function(t,e){var r,a,o,s=e._labels=[],l=e._gridlines;for(r=0;r&lt;l.length;r++)o=l[r],-1!==[&quot;start&quot;,&quot;both&quot;].indexOf(e.showticklabels)&amp;&amp;(a=n.tickText(e,o.value),i(a,{prefix:void 0,suffix:void 0,endAnchor:!0,xy:o.xy(0),dxy:o.dxy(0,0),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a)),-1!==[&quot;end&quot;,&quot;both&quot;].indexOf(e.showticklabels)&amp;&amp;(a=n.tickText(e,o.value),i(a,{endAnchor:!1,xy:o.xy(o.crossLength-1),dxy:o.dxy(o.crossLength-2,1),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a))}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/cartesian/axes&quot;:828}],972:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i=t[0]-e[0],a=t[1]-e[1],o=r[0]-e[0],s=r[1]-e[1],l=Math.pow(i*i+a*a,.25),c=Math.pow(o*o+s*s,.25),u=(c*c*i-l*l*o)*n,f=(c*c*a-l*l*s)*n,h=c*(l+c)*3,p=l*(l+c)*3;return[[e[0]+(h&amp;&amp;u/h),e[1]+(h&amp;&amp;f/h)],[e[0]-(p&amp;&amp;u/p),e[1]-(p&amp;&amp;f/p)]]}},{}],973:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r){var i,a,o,s,l,c,u=[],f=n(t)?t.length:t,h=n(e)?e.length:e,p=n(t)?t:null,d=n(e)?e:null;p&amp;&amp;(o=(p.length-1)/(p[p.length-1]-p[0])/(f-1)),d&amp;&amp;(s=(d.length-1)/(d[d.length-1]-d[0])/(h-1));var g=1/0,m=-1/0;for(a=0;a&lt;h;a++)for(u[a]=[],l=d?(d[a]-d[0])*s:a/(h-1),i=0;i&lt;f;i++)c=(p?(p[i]-p[0])*o:i/(f-1))-l*r,g=Math.min(c,g),m=Math.max(c,m),u[a][i]=c;var v=1/(m-g),y=-g*v;for(a=0;a&lt;h;a++)for(i=0;i&lt;f;i++)u[a][i]=v*u[a][i]+y;return u}},{&quot;../../lib&quot;:778}],974:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./catmull_rom&quot;),i=t(&quot;../../lib&quot;).ensureArray;function a(t,e,r){var n=-.5*r[0]+1.5*e[0],i=-.5*r[1]+1.5*e[1];return[(2*n+t[0])/3,(2*i+t[1])/3]}e.exports=function(t,e,r,o,s,l){var c,u,f,h,p,d,g,m,v,y,x=r[0].length,b=r.length,_=s?3*x-2:x,w=l?3*b-2:b;for(t=i(t,w),e=i(e,w),f=0;f&lt;w;f++)t[f]=i(t[f],_),e[f]=i(e[f],_);for(u=0,h=0;u&lt;b;u++,h+=l?3:1)for(p=t[h],d=e[h],g=r[u],m=o[u],c=0,f=0;c&lt;x;c++,f+=s?3:1)p[f]=g[c],d[f]=m[c];if(s)for(u=0,h=0;u&lt;b;u++,h+=l?3:1){for(c=1,f=3;c&lt;x-1;c++,f+=3)v=n([r[u][c-1],o[u][c-1]],[r[u][c],o[u][c]],[r[u][c+1],o[u][c+1]],s),t[h][f-1]=v[0][0],e[h][f-1]=v[0][1],t[h][f+1]=v[1][0],e[h][f+1]=v[1][1];y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=y[0],e[h][1]=y[1],y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=y[0],e[h][_-2]=y[1]}if(l)for(f=0;f&lt;_;f++){for(h=3;h&lt;w-3;h+=3)v=n([t[h-3][f],e[h-3][f]],[t[h][f],e[h][f]],[t[h+3][f],e[h+3][f]],l),t[h-1][f]=v[0][0],e[h-1][f]=v[0][1],t[h+1][f]=v[1][0],e[h+1][f]=v[1][1];y=a([t[0][f],e[0][f]],[t[2][f],e[2][f]],[t[3][f],e[3][f]]),t[1][f]=y[0],e[1][f]=y[1],y=a([t[w-1][f],e[w-1][f]],[t[w-3][f],e[w-3][f]],[t[w-4][f],e[w-4][f]]),t[w-2][f]=y[0],e[w-2][f]=y[1]}if(s&amp;&amp;l)for(h=1;h&lt;w;h+=(h+1)%3==0?2:1){for(f=3;f&lt;_-3;f+=3)v=n([t[h][f-3],e[h][f-3]],[t[h][f],e[h][f]],[t[h][f+3],e[h][f+3]],s),t[h][f-1]=.5*(t[h][f-1]+v[0][0]),e[h][f-1]=.5*(e[h][f-1]+v[0][1]),t[h][f+1]=.5*(t[h][f+1]+v[1][0]),e[h][f+1]=.5*(e[h][f+1]+v[1][1]);y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=.5*(t[h][1]+y[0]),e[h][1]=.5*(e[h][1]+y[1]),y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=.5*(t[h][_-2]+y[0]),e[h][_-2]=.5*(e[h][_-2]+y[1])}return[t,e]}},{&quot;../../lib&quot;:778,&quot;./catmull_rom&quot;:972}],975:[function(t,e,r){&quot;use strict&quot;;e.exports={RELATIVE_CULL_TOLERANCE:1e-6}},{}],976:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return e&amp;&amp;r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=1-i,d=p*p,g=p*i*2,m=-3*d,v=3*(d-g),y=3*(g-h),x=3*h,b=a*a,_=b*a,w=1-a,T=w*w,k=T*w;for(f=0;f&lt;t.length;f++)o=m*(u=t[f])[n][r]+v*u[n][r+1]+y*u[n][r+2]+x*u[n][r+3],s=m*u[n+1][r]+v*u[n+1][r+1]+y*u[n+1][r+2]+x*u[n+1][r+3],l=m*u[n+2][r]+v*u[n+2][r+1]+y*u[n+2][r+2]+x*u[n+2][r+3],c=m*u[n+3][r]+v*u[n+3][r+1]+y*u[n+3][r+2]+x*u[n+3][r+3],e[f]=k*o+3*(T*a*s+w*b*l)+_*c;return e}:e?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),r*=3;var u=i*i,f=1-i,h=f*f,p=f*i*2,d=-3*h,g=3*(h-p),m=3*(p-u),v=3*u,y=1-a;for(l=0;l&lt;t.length;l++)o=d*(c=t[l])[n][r]+g*c[n][r+1]+m*c[n][r+2]+v*c[n][r+3],s=d*c[n+1][r]+g*c[n+1][r+1]+m*c[n+1][r+2]+v*c[n+1][r+3],e[l]=y*o+a*s;return e}:r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),n*=3;var h=a*a,p=h*a,d=1-a,g=d*d,m=g*d;for(u=0;u&lt;t.length;u++)o=(f=t[u])[n][r+1]-f[n][r],s=f[n+1][r+1]-f[n+1][r],l=f[n+2][r+1]-f[n+2][r],c=f[n+3][r+1]-f[n+3][r],e[u]=m*o+3*(g*a*s+d*h*l)+p*c;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-a;for(l=0;l&lt;t.length;l++)o=(c=t[l])[n][r+1]-c[n][r],s=c[n+1][r+1]-c[n+1][r],e[l]=u*o+a*s;return e}}},{}],977:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return e&amp;&amp;r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=h*i,d=1-i,g=d*d,m=g*d,v=a*a,y=1-a,x=y*y,b=y*a*2,_=-3*x,w=3*(x-b),T=3*(b-v),k=3*v;for(f=0;f&lt;t.length;f++)o=_*(u=t[f])[n][r]+w*u[n+1][r]+T*u[n+2][r]+k*u[n+3][r],s=_*u[n][r+1]+w*u[n+1][r+1]+T*u[n+2][r+1]+k*u[n+3][r+1],l=_*u[n][r+2]+w*u[n+1][r+2]+T*u[n+2][r+2]+k*u[n+3][r+2],c=_*u[n][r+3]+w*u[n+1][r+3]+T*u[n+2][r+3]+k*u[n+3][r+3],e[f]=m*o+3*(g*i*s+d*h*l)+p*c;return e}:e?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3;var h=a*a,p=h*a,d=1-a,g=d*d,m=g*d;for(u=0;u&lt;t.length;u++)o=(f=t[u])[n+1][r]-f[n][r],s=f[n+1][r+1]-f[n][r+1],l=f[n+1][r+2]-f[n][r+2],c=f[n+1][r+3]-f[n][r+3],e[u]=m*o+3*(g*a*s+d*h*l)+p*c;return e}:r?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),n*=3;var u=1-i,f=a*a,h=1-a,p=h*h,d=h*a*2,g=-3*p,m=3*(p-d),v=3*(d-f),y=3*f;for(l=0;l&lt;t.length;l++)o=g*(c=t[l])[n][r]+m*c[n+1][r]+v*c[n+2][r]+y*c[n+3][r],s=g*c[n][r+1]+m*c[n+1][r+1]+v*c[n+2][r+1]+y*c[n+3][r+1],e[l]=u*o+i*s;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-i;for(l=0;l&lt;t.length;l++)o=(c=t[l])[n+1][r]-c[n][r],s=c[n+1][r+1]-c[n][r+1],e[l]=u*o+i*s;return e}}},{}],978:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=e-2,o=r-2;return n&amp;&amp;i?function(e,r,n){var i,s,l,c,u,f;e||(e=[]);var h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3,p*=3;var m=d*d,v=m*d,y=1-d,x=y*y,b=x*y,_=g*g,w=_*g,T=1-g,k=T*T,M=k*T;for(f=0;f&lt;t.length;f++)i=b*(u=t[f])[p][h]+3*(x*d*u[p][h+1]+y*m*u[p][h+2])+v*u[p][h+3],s=b*u[p+1][h]+3*(x*d*u[p+1][h+1]+y*m*u[p+1][h+2])+v*u[p+1][h+3],l=b*u[p+2][h]+3*(x*d*u[p+2][h+1]+y*m*u[p+2][h+2])+v*u[p+2][h+3],c=b*u[p+3][h]+3*(x*d*u[p+3][h+1]+y*m*u[p+3][h+2])+v*u[p+3][h+3],e[f]=M*i+3*(k*g*s+T*_*l)+w*c;return e}:n?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3;var m=d*d,v=m*d,y=1-d,x=y*y,b=x*y,_=1-g;for(u=0;u&lt;t.length;u++)i=_*(f=t[u])[p][h]+g*f[p+1][h],s=_*f[p][h+1]+g*f[p+1][h+1],l=_*f[p][h+2]+g*f[p+1][h+1],c=_*f[p][h+3]+g*f[p+1][h+1],e[u]=b*i+3*(x*d*s+y*m*l)+v*c;return e}:i?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));p*=3;var m=g*g,v=m*g,y=1-g,x=y*y,b=x*y,_=1-d;for(u=0;u&lt;t.length;u++)i=_*(f=t[u])[p][h]+d*f[p][h+1],s=_*f[p+1][h]+d*f[p+1][h+1],l=_*f[p+2][h]+d*f[p+2][h+1],c=_*f[p+3][h]+d*f[p+3][h+1],e[u]=b*i+3*(x*g*s+y*m*l)+v*c;return e}:function(e,r,n){e||(e=[]);var i,s,l,c,u=Math.max(0,Math.min(Math.floor(r),a)),f=Math.max(0,Math.min(Math.floor(n),o)),h=Math.max(0,Math.min(1,r-u)),p=Math.max(0,Math.min(1,n-f)),d=1-p,g=1-h;for(l=0;l&lt;t.length;l++)i=g*(c=t[l])[f][u]+h*c[f][u+1],s=g*c[f+1][u]+h*c[f+1][u+1],e[l]=d*i+p*s;return e}}},{}],979:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./xy_defaults&quot;),a=t(&quot;./ab_defaults&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../../components/color/attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}e._clipPathId=&quot;clip&quot;+e.uid+&quot;carpet&quot;;var u=c(&quot;color&quot;,s.defaultLine);(n.coerceFont(c,&quot;font&quot;),c(&quot;carpet&quot;),a(t,e,l,c,u),e.a&amp;&amp;e.b)?(e.a.length&lt;3&amp;&amp;(e.aaxis.smoothing=0),e.b.length&lt;3&amp;&amp;(e.baxis.smoothing=0),i(t,e,c)||(e.visible=!1),e._cheater&amp;&amp;c(&quot;cheaterslope&quot;)):e.visible=!1}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib&quot;:778,&quot;./ab_defaults&quot;:962,&quot;./attributes&quot;:964,&quot;./xy_defaults&quot;:988}],980:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),plot:t(&quot;./plot&quot;),calc:t(&quot;./calc&quot;),animatable:!0,isContainer:!0,moduleType:&quot;trace&quot;,name:&quot;carpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;carpet&quot;,&quot;carpetAxis&quot;,&quot;notLegendIsolatable&quot;,&quot;noMultiCategory&quot;,&quot;noHover&quot;,&quot;noSortingByValue&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:964,&quot;./calc&quot;:968,&quot;./defaults&quot;:979,&quot;./plot&quot;:985}],981:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r,n=t._fullData.length,i=0;i&lt;n;i++){var a=t._fullData[i];if(a.index!==e.index&amp;&amp;(&quot;carpet&quot;===a.type&amp;&amp;(r||(r=a),a.carpet===e.carpet)))return a}return r}},{}],982:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(0===t.length)return&quot;&quot;;var n,i=[],a=r?3:1;for(n=0;n&lt;t.length;n+=a)i.push(t[n]+&quot;,&quot;+e[n]),r&amp;&amp;n&lt;t.length-a&amp;&amp;(i.push(&quot;C&quot;),i.push([t[n+1]+&quot;,&quot;+e[n+1],t[n+2]+&quot;,&quot;+e[n+2]+&quot; &quot;].join(&quot; &quot;)));return i.join(r?&quot;&quot;:&quot;L&quot;)}},{}],983:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r){var i;for(n(t)?t.length&gt;e.length&amp;&amp;(t=t.slice(0,e.length)):t=[],i=0;i&lt;e.length;i++)t[i]=r(e[i]);return t}},{&quot;../../lib&quot;:778}],984:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a){var o=i[0]*t.dpdx(e),s=i[1]*t.dpdy(r),l=1,c=1;if(a){var u=Math.sqrt(i[0]*i[0]+i[1]*i[1]),f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=(i[0]*a[0]+i[1]*a[1])/u/f;c=Math.max(0,h)}var p=180*Math.atan2(s,o)/Math.PI;return p&lt;-90?(p+=180,l=-l):p&gt;90&amp;&amp;(p-=180,l=-l),{angle:p,flip:l,p:t.c2p(n,e,r),offsetMultplier:c}}},{}],985:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;./map_1d_array&quot;),o=t(&quot;./makepath&quot;),s=t(&quot;./orient_text&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../lib&quot;),u=c.strRotate,f=c.strTranslate,h=t(&quot;../../constants/alignment&quot;);function p(t,e,r,i,s,l){var c=&quot;const-&quot;+s+&quot;-lines&quot;,u=r.selectAll(&quot;.&quot;+c).data(l);u.enter().append(&quot;path&quot;).classed(c,!0).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;),u.each((function(r){var i=r,s=i.x,l=i.y,c=a([],s,t.c2p),u=a([],l,e.c2p),f=&quot;M&quot;+o(c,u,i.smoothing);n.select(this).attr(&quot;d&quot;,f).style(&quot;stroke-width&quot;,i.width).style(&quot;stroke&quot;,i.color).style(&quot;fill&quot;,&quot;none&quot;)})),u.exit().remove()}function d(t,e,r,a,o,c,h,p){var d=c.selectAll(&quot;text.&quot;+p).data(h);d.enter().append(&quot;text&quot;).classed(p,!0);var g=0,m={};return d.each((function(o,c){var h;if(&quot;auto&quot;===o.axis.tickangle)h=s(a,e,r,o.xy,o.dxy);else{var p=(o.axis.tickangle+180)*Math.PI/180;h=s(a,e,r,o.xy,[Math.cos(p),Math.sin(p)])}c||(m={angle:h.angle,flip:h.flip});var d=(o.endAnchor?-1:1)*h.flip,v=n.select(this).attr({&quot;text-anchor&quot;:d&gt;0?&quot;start&quot;:&quot;end&quot;,&quot;data-notex&quot;:1}).call(i.font,o.font).text(o.text).call(l.convertToTspans,t),y=i.bBox(this);v.attr(&quot;transform&quot;,f(h.p[0],h.p[1])+u(h.angle)+f(o.axis.labelpadding*d,.3*y.height)),g=Math.max(g,y.width+o.axis.labelpadding)})),d.exit().remove(),m.maxExtent=g,m}e.exports=function(t,e,r,i){var l=e.xaxis,u=e.yaxis,f=t._fullLayout._clips;c.makeTraceGroups(i,r,&quot;trace&quot;).each((function(e){var r=n.select(this),i=e[0],h=i.trace,g=h.aaxis,m=h.baxis,y=c.ensureSingle(r,&quot;g&quot;,&quot;minorlayer&quot;),x=c.ensureSingle(r,&quot;g&quot;,&quot;majorlayer&quot;),b=c.ensureSingle(r,&quot;g&quot;,&quot;boundarylayer&quot;),_=c.ensureSingle(r,&quot;g&quot;,&quot;labellayer&quot;);r.style(&quot;opacity&quot;,h.opacity),p(l,u,x,g,&quot;a&quot;,g._gridlines),p(l,u,x,m,&quot;b&quot;,m._gridlines),p(l,u,y,g,&quot;a&quot;,g._minorgridlines),p(l,u,y,m,&quot;b&quot;,m._minorgridlines),p(l,u,b,g,&quot;a-boundary&quot;,g._boundarylines),p(l,u,b,m,&quot;b-boundary&quot;,m._boundarylines);var w=d(t,l,u,h,i,_,g._labels,&quot;a-label&quot;),T=d(t,l,u,h,i,_,m._labels,&quot;b-label&quot;);!function(t,e,r,n,i,a,o,l){var u,f,h,p,d=c.aggNums(Math.min,null,r.a),g=c.aggNums(Math.max,null,r.a),m=c.aggNums(Math.min,null,r.b),y=c.aggNums(Math.max,null,r.b);u=.5*(d+g),f=m,h=r.ab2xy(u,f,!0),p=r.dxyda_rough(u,f),void 0===o.angle&amp;&amp;c.extendFlat(o,s(r,i,a,h,r.dxydb_rough(u,f)));v(t,e,r,n,h,p,r.aaxis,i,a,o,&quot;a-title&quot;),u=d,f=.5*(m+y),h=r.ab2xy(u,f,!0),p=r.dxydb_rough(u,f),void 0===l.angle&amp;&amp;c.extendFlat(l,s(r,i,a,h,r.dxyda_rough(u,f)));v(t,e,r,n,h,p,r.baxis,i,a,l,&quot;b-title&quot;)}(t,_,h,i,l,u,w,T),function(t,e,r,n,i){var s,l,u,f,h=r.select(&quot;#&quot;+t._clipPathId);h.size()||(h=r.append(&quot;clipPath&quot;).classed(&quot;carpetclip&quot;,!0));var p=c.ensureSingle(h,&quot;path&quot;,&quot;carpetboundary&quot;),d=e.clipsegments,g=[];for(f=0;f&lt;d.length;f++)s=d[f],l=a([],s.x,n.c2p),u=a([],s.y,i.c2p),g.push(o(l,u,s.bicubic));var m=&quot;M&quot;+g.join(&quot;L&quot;)+&quot;Z&quot;;h.attr(&quot;id&quot;,t._clipPathId),p.attr(&quot;d&quot;,m)}(h,i,f,l,u)}))};var g=h.LINE_SPACING,m=(1-h.MID_SHIFT)/g+1;function v(t,e,r,a,o,c,h,p,d,v,y){var x=[];h.title.text&amp;&amp;x.push(h.title.text);var b=e.selectAll(&quot;text.&quot;+y).data(x),_=v.maxExtent;b.enter().append(&quot;text&quot;).classed(y,!0),b.each((function(){var e=s(r,p,d,o,c);-1===[&quot;start&quot;,&quot;both&quot;].indexOf(h.showticklabels)&amp;&amp;(_=0);var a=h.title.font.size;_+=a+h.title.offset;var y=(v.angle+(v.flip&lt;0?180:0)-e.angle+450)%360,x=y&gt;90&amp;&amp;y&lt;270,b=n.select(this);b.text(h.title.text).call(l.convertToTspans,t),x&amp;&amp;(_=(-l.lineCount(b)+m)*g*a-_),b.attr(&quot;transform&quot;,f(e.p[0],e.p[1])+u(e.angle)+f(0,_)).attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(i.font,h.title.font)})),b.exit().remove()}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;./makepath&quot;:982,&quot;./map_1d_array&quot;:983,&quot;./orient_text&quot;:984,d3:169}],986:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib/search&quot;).findBin,a=t(&quot;./compute_control_points&quot;),o=t(&quot;./create_spline_evaluator&quot;),s=t(&quot;./create_i_derivative_evaluator&quot;),l=t(&quot;./create_j_derivative_evaluator&quot;);e.exports=function(t){var e=t._a,r=t._b,c=e.length,u=r.length,f=t.aaxis,h=t.baxis,p=e[0],d=e[c-1],g=r[0],m=r[u-1],v=e[e.length-1]-e[0],y=r[r.length-1]-r[0],x=v*n.RELATIVE_CULL_TOLERANCE,b=y*n.RELATIVE_CULL_TOLERANCE;p-=x,d+=x,g-=b,m+=b,t.isVisible=function(t,e){return t&gt;p&amp;&amp;t&lt;d&amp;&amp;e&gt;g&amp;&amp;e&lt;m},t.isOccluded=function(t,e){return t&lt;p||t&gt;d||e&lt;g||e&gt;m},t.setScale=function(){var e=t._x,r=t._y,n=a(t._xctrl,t._yctrl,e,r,f.smoothing,h.smoothing);t._xctrl=n[0],t._yctrl=n[1],t.evalxy=o([t._xctrl,t._yctrl],c,u,f.smoothing,h.smoothing),t.dxydi=s([t._xctrl,t._yctrl],f.smoothing,h.smoothing),t.dxydj=l([t._xctrl,t._yctrl],f.smoothing,h.smoothing)},t.i2a=function(t){var r=Math.max(0,Math.floor(t[0]),c-2),n=t[0]-r;return(1-n)*e[r]+n*e[r+1]},t.j2b=function(t){var e=Math.max(0,Math.floor(t[1]),c-2),n=t[1]-e;return(1-n)*r[e]+n*r[e+1]},t.ij2ab=function(e){return[t.i2a(e[0]),t.j2b(e[1])]},t.a2i=function(t){var r=Math.max(0,Math.min(i(t,e),c-2)),n=e[r],a=e[r+1];return Math.max(0,Math.min(c-1,r+(t-n)/(a-n)))},t.b2j=function(t){var e=Math.max(0,Math.min(i(t,r),u-2)),n=r[e],a=r[e+1];return Math.max(0,Math.min(u-1,e+(t-n)/(a-n)))},t.ab2ij=function(e){return[t.a2i(e[0]),t.b2j(e[1])]},t.i2c=function(e,r){return t.evalxy([],e,r)},t.ab2xy=function(n,i,a){if(!a&amp;&amp;(n&lt;e[0]||n&gt;e[c-1]|i&lt;r[0]||i&gt;r[u-1]))return[!1,!1];var o=t.a2i(n),s=t.b2j(i),l=t.evalxy([],o,s);if(a){var f,h,p,d,g=0,m=0,v=[];n&lt;e[0]?(f=0,h=0,g=(n-e[0])/(e[1]-e[0])):n&gt;e[c-1]?(f=c-2,h=1,g=(n-e[c-1])/(e[c-1]-e[c-2])):h=o-(f=Math.max(0,Math.min(c-2,Math.floor(o)))),i&lt;r[0]?(p=0,d=0,m=(i-r[0])/(r[1]-r[0])):i&gt;r[u-1]?(p=u-2,d=1,m=(i-r[u-1])/(r[u-1]-r[u-2])):d=s-(p=Math.max(0,Math.min(u-2,Math.floor(s)))),g&amp;&amp;(t.dxydi(v,f,p,h,d),l[0]+=v[0]*g,l[1]+=v[1]*g),m&amp;&amp;(t.dxydj(v,f,p,h,d),l[0]+=v[0]*m,l[1]+=v[1]*m)}return l},t.c2p=function(t,e,r){return[e.c2p(t[0]),r.c2p(t[1])]},t.p2x=function(t,e,r){return[e.p2c(t[0]),r.p2c(t[1])]},t.dadi=function(t){var r=Math.max(0,Math.min(e.length-2,t));return e[r+1]-e[r]},t.dbdj=function(t){var e=Math.max(0,Math.min(r.length-2,t));return r[e+1]-r[e]},t.dxyda=function(e,r,n,i){var a=t.dxydi(null,e,r,n,i),o=t.dadi(e,n);return[a[0]/o,a[1]/o]},t.dxydb=function(e,r,n,i){var a=t.dxydj(null,e,r,n,i),o=t.dbdj(r,i);return[a[0]/o,a[1]/o]},t.dxyda_rough=function(e,r,n){var i=v*(n||.1),a=t.ab2xy(e+i,r,!0),o=t.ab2xy(e-i,r,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dxydb_rough=function(e,r,n){var i=y*(n||.1),a=t.ab2xy(e,r+i,!0),o=t.ab2xy(e,r-i,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dpdx=function(t){return t._m},t.dpdy=function(t){return t._m}}},{&quot;../../lib/search&quot;:798,&quot;./compute_control_points&quot;:974,&quot;./constants&quot;:975,&quot;./create_i_derivative_evaluator&quot;:976,&quot;./create_j_derivative_evaluator&quot;:977,&quot;./create_spline_evaluator&quot;:978}],987:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r){var i,a,o,s=[],l=[],c=t[0].length,u=t.length;function f(e,r){var n,i=0,a=0;return e&gt;0&amp;&amp;void 0!==(n=t[r][e-1])&amp;&amp;(a++,i+=n),e&lt;c-1&amp;&amp;void 0!==(n=t[r][e+1])&amp;&amp;(a++,i+=n),r&gt;0&amp;&amp;void 0!==(n=t[r-1][e])&amp;&amp;(a++,i+=n),r&lt;u-1&amp;&amp;void 0!==(n=t[r+1][e])&amp;&amp;(a++,i+=n),i/Math.max(1,a)}var h,p,d,g,m,v,y,x,b,_,w,T=0;for(i=0;i&lt;c;i++)for(a=0;a&lt;u;a++)void 0===t[a][i]&amp;&amp;(s.push(i),l.push(a),t[a][i]=f(i,a)),T=Math.max(T,Math.abs(t[a][i]));if(!s.length)return t;var k=0,M=0,A=s.length;do{for(k=0,o=0;o&lt;A;o++){i=s[o],a=l[o];var S,E,C,L,I,P,z=0,O=0;0===i?(C=e[I=Math.min(c-1,2)],L=e[1],S=t[a][I],O+=(E=t[a][1])+(E-S)*(e[0]-L)/(L-C),z++):i===c-1&amp;&amp;(C=e[I=Math.max(0,c-3)],L=e[c-2],S=t[a][I],O+=(E=t[a][c-2])+(E-S)*(e[c-1]-L)/(L-C),z++),(0===i||i===c-1)&amp;&amp;a&gt;0&amp;&amp;a&lt;u-1&amp;&amp;(h=r[a+1]-r[a],O+=((p=r[a]-r[a-1])*t[a+1][i]+h*t[a-1][i])/(p+h),z++),0===a?(C=r[P=Math.min(u-1,2)],L=r[1],S=t[P][i],O+=(E=t[1][i])+(E-S)*(r[0]-L)/(L-C),z++):a===u-1&amp;&amp;(C=r[P=Math.max(0,u-3)],L=r[u-2],S=t[P][i],O+=(E=t[u-2][i])+(E-S)*(r[u-1]-L)/(L-C),z++),(0===a||a===u-1)&amp;&amp;i&gt;0&amp;&amp;i&lt;c-1&amp;&amp;(h=e[i+1]-e[i],O+=((p=e[i]-e[i-1])*t[a][i+1]+h*t[a][i-1])/(p+h),z++),z?O/=z:(d=e[i+1]-e[i],g=e[i]-e[i-1],x=(m=r[a+1]-r[a])*(v=r[a]-r[a-1])*(m+v),O=((y=d*g*(d+g))*(v*t[a+1][i]+m*t[a-1][i])+x*(g*t[a][i+1]+d*t[a][i-1]))/(x*(g+d)+y*(v+m))),k+=(_=(b=O-t[a][i])/T)*_,w=z?0:.85,t[a][i]+=b*(1+w)}k=Math.sqrt(k)}while(M++&lt;100&amp;&amp;k&gt;1e-5);return n.log(&quot;Smoother converged to&quot;,k,&quot;after&quot;,M,&quot;iterations&quot;),t}},{&quot;../../lib&quot;:778}],988:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArray1D;e.exports=function(t,e,r){var i=r(&quot;x&quot;),a=i&amp;&amp;i.length,o=r(&quot;y&quot;),s=o&amp;&amp;o.length;if(!a&amp;&amp;!s)return!1;if(e._cheater=!i,a&amp;&amp;!n(i)||s&amp;&amp;!n(o))e._length=null;else{var l=a?i.length:1/0;s&amp;&amp;(l=Math.min(l,o.length)),e.a&amp;&amp;e.a.length&amp;&amp;(l=Math.min(l,e.a.length)),e.b&amp;&amp;e.b.length&amp;&amp;(l=Math.min(l,e.b.length)),e._length=l}return!0}},{&quot;../../lib&quot;:778}],989:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../scattergeo/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/color/attributes&quot;).defaultLine,l=t(&quot;../../lib/extend&quot;).extendFlat,c=i.marker.line;e.exports=l({locations:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},locationmode:i.locationmode,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},geojson:l({},i.geojson,{}),featureidkey:i.featureidkey,text:l({},i.text,{}),hovertext:l({},i.hovertext,{}),marker:{line:{color:l({},c.color,{dflt:s}),width:l({},c.width,{dflt:1}),editType:&quot;calc&quot;},opacity:{valType:&quot;number&quot;,arrayOk:!0,min:0,max:1,dflt:1,editType:&quot;style&quot;},editType:&quot;calc&quot;},selected:{marker:{opacity:i.selected.marker.opacity,editType:&quot;plot&quot;},editType:&quot;plot&quot;},unselected:{marker:{opacity:i.unselected.marker.opacity,editType:&quot;plot&quot;},editType:&quot;plot&quot;},hoverinfo:l({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;location&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n(),showlegend:l({},o.showlegend,{dflt:!1})},a(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/color/attributes&quot;:642,&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scattergeo/attributes&quot;:1229}],990:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../components/colorscale/calc&quot;),o=t(&quot;../scatter/arrays_to_calcdata&quot;),s=t(&quot;../scatter/calc_selection&quot;);function l(t){return t&amp;&amp;&quot;string&quot;==typeof t}e.exports=function(t,e){var r,c=e._length,u=new Array(c);r=e.geojson?function(t){return l(t)||n(t)}:l;for(var f=0;f&lt;c;f++){var h=u[f]={},p=e.locations[f],d=e.z[f];r(p)&amp;&amp;n(d)?(h.loc=p,h.z=d):(h.loc=null,h.z=i),h.index=f}return o(u,e),a(t,e,{vals:e.z,containerStr:&quot;&quot;,cLetter:&quot;z&quot;}),s(u,e),u}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../constants/numerical&quot;:753,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc_selection&quot;:1189,&quot;fast-isnumeric&quot;:241}],991:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;locations&quot;),c=s(&quot;z&quot;);if(l&amp;&amp;l.length&amp;&amp;n.isArrayOrTypedArray(c)&amp;&amp;c.length){e._length=Math.min(l.length,c.length);var u,f=s(&quot;geojson&quot;);(&quot;string&quot;==typeof f&amp;&amp;&quot;&quot;!==f||n.isPlainObject(f))&amp;&amp;(u=&quot;geojson-id&quot;),&quot;geojson-id&quot;===s(&quot;locationmode&quot;,u)&amp;&amp;s(&quot;featureidkey&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;marker.line.width&quot;)&amp;&amp;s(&quot;marker.line.color&quot;),s(&quot;marker.opacity&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),n.coerceSelectionMarkerOpacity(e,s)}else e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:989}],992:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){t.location=e.location,t.z=e.z;var a=n[i];return a.fIn&amp;&amp;a.fIn.properties&amp;&amp;(t.properties=a.fIn.properties),t.ct=a.ct,t}},{}],993:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../lib&quot;).fillText;e.exports=function(t,e,r){var o,s,l,c,u=t.cd,f=u[0].trace,h=t.subplot,p=[e,r],d=[e+360,r];for(s=0;s&lt;u.length;s++)if(c=!1,(o=u[s])._polygons){for(l=0;l&lt;o._polygons.length;l++)o._polygons[l].contains(p)&amp;&amp;(c=!c),o._polygons[l].contains(d)&amp;&amp;(c=!c);if(c)break}if(c&amp;&amp;o)return t.x0=t.x1=t.xa.c2p(o.ct),t.y0=t.y1=t.ya.c2p(o.ct),t.index=o.index,t.location=o.loc,t.z=o.z,t.zLabel=n.tickText(h.mockAxis,h.mockAxis.c2l(o.z),&quot;hover&quot;).text,t.hovertemplate=o.hovertemplate,function(t,e,r){if(e.hovertemplate)return;var n=r.hi||e.hoverinfo,o=String(r.loc),s=&quot;all&quot;===n?i.hoverinfo.flags:n.split(&quot;+&quot;),l=-1!==s.indexOf(&quot;name&quot;),c=-1!==s.indexOf(&quot;location&quot;),u=-1!==s.indexOf(&quot;z&quot;),f=-1!==s.indexOf(&quot;text&quot;),h=[];!l&amp;&amp;c?t.nameOverride=o:(l&amp;&amp;(t.nameOverride=e.name),c&amp;&amp;h.push(o));u&amp;&amp;h.push(t.zLabel);f&amp;&amp;a(r,e,h);t.extraText=h.join(&quot;&lt;br&gt;&quot;)}(t,f,o),[t]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:989}],994:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;./calc&quot;),calcGeoJSON:t(&quot;./plot&quot;).calcGeoJSON,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;choropleth&quot;,basePlotModule:t(&quot;../../plots/geo&quot;),categories:[&quot;geo&quot;,&quot;noOpacity&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/geo&quot;:860,&quot;../heatmap/colorbar&quot;:1068,&quot;./attributes&quot;:989,&quot;./calc&quot;:990,&quot;./defaults&quot;:991,&quot;./event_data&quot;:992,&quot;./hover&quot;:993,&quot;./plot&quot;:995,&quot;./select&quot;:996,&quot;./style&quot;:997}],995:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/geo_location_utils&quot;),o=t(&quot;../../lib/topojson_utils&quot;).getTopojsonFeatures,s=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,l=t(&quot;./style&quot;).style;e.exports={calcGeoJSON:function(t,e){for(var r=t[0].trace,n=e[r.geo],i=n._subplot,l=r.locationmode,c=r._length,u=&quot;geojson-id&quot;===l?a.extractTraceFeature(t):o(r,i.topojson),f=[],h=[],p=0;p&lt;c;p++){var d=t[p],g=&quot;geojson-id&quot;===l?d.fOut:a.locationToFeature(l,d.loc,u);if(g){d.geojson=g,d.ct=g.properties.ct,d._polygons=a.feature2polygons(g);var m=a.computeBbox(g);f.push(m[0],m[2]),h.push(m[1],m[3])}else d.geojson=null}if(&quot;geojson&quot;===n.fitbounds&amp;&amp;&quot;geojson-id&quot;===l){var v=a.computeBbox(a.getTraceGeojson(r));f=[v[0],v[2]],h=[v[1],v[3]]}var y={padded:!0};r._extremes.lon=s(n.lonaxis._ax,f,y),r._extremes.lat=s(n.lataxis._ax,h,y)},plot:function(t,e,r){var a=e.layers.backplot.select(&quot;.choroplethlayer&quot;);i.makeTraceGroups(a,r,&quot;trace choropleth&quot;).each((function(e){var r=n.select(this).selectAll(&quot;path.choroplethlocation&quot;).data(i.identity);r.enter().append(&quot;path&quot;).classed(&quot;choroplethlocation&quot;,!0),r.exit().remove(),l(t,e)}))}}},{&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/topojson_utils&quot;:806,&quot;../../plots/cartesian/autorange&quot;:827,&quot;./style&quot;:997,d3:169}],996:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[];if(!1===e)for(r=0;r&lt;s.length;r++)s[r].selected=0;else for(r=0;r&lt;s.length;r++)(i=(n=s[r]).ct)&amp;&amp;(a=l.c2p(i),o=c.c2p(i),e.contains([a,o],null,r,t)?(u.push({pointNumber:r,lon:i[0],lat:i[1]}),n.selected=1):n.selected=0);return u}},{}],997:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../components/colorscale&quot;);function s(t,e){var r=e[0].trace,s=e[0].node3.selectAll(&quot;.choroplethlocation&quot;),l=r.marker||{},c=l.line||{},u=o.makeColorScaleFuncFromTrace(r);s.each((function(t){n.select(this).attr(&quot;fill&quot;,u(t.z)).call(i.stroke,t.mlc||c.color).call(a.dashLine,&quot;&quot;,t.mlw||c.width||0).style(&quot;opacity&quot;,l.opacity)})),a.selectedPointStyle(s,r,t)}e.exports={style:function(t,e){e&amp;&amp;s(t,e)},styleOnSelect:function(t,e){var r=e[0].node3,n=e[0].trace;n.selectedpoints?a.selectedPointStyle(r.selectAll(&quot;.choroplethlocation&quot;),n,t):s(t,e)}}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,d3:169}],998:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../choropleth/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({locations:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},geojson:{valType:&quot;any&quot;,editType:&quot;calc&quot;},featureidkey:s({},n.featureidkey,{}),below:{valType:&quot;string&quot;,editType:&quot;plot&quot;},text:n.text,hovertext:n.hovertext,marker:{line:{color:s({},n.marker.line.color,{editType:&quot;plot&quot;}),width:s({},n.marker.line.width,{editType:&quot;plot&quot;}),editType:&quot;calc&quot;},opacity:s({},n.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;calc&quot;},selected:{marker:{opacity:s({},n.selected.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},editType:&quot;plot&quot;},unselected:{marker:{opacity:s({},n.unselected.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},editType:&quot;plot&quot;},hoverinfo:n.hoverinfo,hovertemplate:a({},{keys:[&quot;properties&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})},i(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../choropleth/attributes&quot;:989}],999:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib/geojson_utils&quot;).makeBlank,l=t(&quot;../../lib/geo_location_utils&quot;);function c(t){var e,r=t[0].trace,n=r._opts;if(r.selectedpoints){for(var a=o.makeSelectedPointStyleFns(r),s=0;s&lt;t.length;s++){var l=t[s];l.fOut&amp;&amp;(l.fOut.properties.mo2=a.selectedOpacityFn(l))}e={type:&quot;identity&quot;,property:&quot;mo2&quot;}}else e=i.isArrayOrTypedArray(r.marker.opacity)?{type:&quot;identity&quot;,property:&quot;mo&quot;}:r.marker.opacity;return i.extendFlat(n.fill.paint,{&quot;fill-opacity&quot;:e}),i.extendFlat(n.line.paint,{&quot;line-opacity&quot;:e}),n}e.exports={convert:function(t){var e=t[0].trace,r=!0===e.visible&amp;&amp;0!==e._length,o={layout:{visibility:&quot;none&quot;},paint:{}},u={layout:{visibility:&quot;none&quot;},paint:{}},f=e._opts={fill:o,line:u,geojson:s()};if(!r)return f;var h=l.extractTraceFeature(t);if(!h)return f;var p,d,g,m=a.makeColorScaleFuncFromTrace(e),v=e.marker,y=v.line||{};i.isArrayOrTypedArray(v.opacity)&amp;&amp;(p=function(t){var e=t.mo;return n(e)?+i.constrain(e,0,1):0}),i.isArrayOrTypedArray(y.color)&amp;&amp;(d=function(t){return t.mlc}),i.isArrayOrTypedArray(y.width)&amp;&amp;(g=function(t){return t.mlw});for(var x=0;x&lt;t.length;x++){var b=t[x],_=b.fOut;if(_){var w=_.properties;w.fc=m(b.z),p&amp;&amp;(w.mo=p(b)),d&amp;&amp;(w.mlc=d(b)),g&amp;&amp;(w.mlw=g(b)),b.ct=w.ct,b._polygons=l.feature2polygons(_)}}var T=p?{type:&quot;identity&quot;,property:&quot;mo&quot;}:v.opacity;return i.extendFlat(o.paint,{&quot;fill-color&quot;:{type:&quot;identity&quot;,property:&quot;fc&quot;},&quot;fill-opacity&quot;:T}),i.extendFlat(u.paint,{&quot;line-color&quot;:d?{type:&quot;identity&quot;,property:&quot;mlc&quot;}:y.color,&quot;line-width&quot;:g?{type:&quot;identity&quot;,property:&quot;mlw&quot;}:y.width,&quot;line-opacity&quot;:T}),o.layout.visibility=&quot;visible&quot;,u.layout.visibility=&quot;visible&quot;,f.geojson={type:&quot;FeatureCollection&quot;,features:h},c(t),f},convertOnSelect:c}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/geojson_utils&quot;:772,&quot;fast-isnumeric&quot;:241}],1e3:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;locations&quot;),c=s(&quot;z&quot;),u=s(&quot;geojson&quot;);n.isArrayOrTypedArray(l)&amp;&amp;l.length&amp;&amp;n.isArrayOrTypedArray(c)&amp;&amp;c.length&amp;&amp;(&quot;string&quot;==typeof u&amp;&amp;&quot;&quot;!==u||n.isPlainObject(u))?(s(&quot;featureidkey&quot;),e._length=Math.min(l.length,c.length),s(&quot;below&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;marker.line.width&quot;)&amp;&amp;s(&quot;marker.line.color&quot;),s(&quot;marker.opacity&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),n.coerceSelectionMarkerOpacity(e,s)):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:998}],1001:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;../choropleth/calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;../choropleth/hover&quot;),eventData:t(&quot;../choropleth/event_data&quot;),selectPoints:t(&quot;../choropleth/select&quot;),styleOnSelect:function(t,e){e&amp;&amp;e[0].trace._glTrace.updateOnSelect(e)},getBelow:function(t,e){for(var r=e.getMapLayers(),n=r.length-2;n&gt;=0;n--){var i=r[n].id;if(&quot;string&quot;==typeof i&amp;&amp;0===i.indexOf(&quot;water&quot;))for(var a=n+1;a&lt;r.length;a++)if(&quot;string&quot;==typeof(i=r[a].id)&amp;&amp;-1===i.indexOf(&quot;plotly-&quot;))return i}},moduleType:&quot;trace&quot;,name:&quot;choroplethmapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;noOpacity&quot;,&quot;showLegend&quot;],meta:{hr_name:&quot;choropleth_mapbox&quot;}}},{&quot;../../plots/mapbox&quot;:885,&quot;../choropleth/calc&quot;:990,&quot;../choropleth/event_data&quot;:992,&quot;../choropleth/hover&quot;:993,&quot;../choropleth/select&quot;:996,&quot;../heatmap/colorbar&quot;:1068,&quot;./attributes&quot;:998,&quot;./defaults&quot;:1e3,&quot;./plot&quot;:1002}],1002:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;).convert,i=t(&quot;./convert&quot;).convertOnSelect,a=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix;function o(t,e){this.type=&quot;choroplethmapbox&quot;,this.subplot=t,this.uid=e,this.sourceId=&quot;source-&quot;+e,this.layerList=[[&quot;fill&quot;,a+e+&quot;-fill&quot;],[&quot;line&quot;,a+e+&quot;-line&quot;]],this.below=null}var s=o.prototype;s.update=function(t){this._update(n(t))},s.updateOnSelect=function(t){this._update(i(t))},s._update=function(t){var e=this.subplot,r=this.layerList,n=e.belowLookup[&quot;trace-&quot;+this.uid];e.map.getSource(this.sourceId).setData(t.geojson),n!==this.below&amp;&amp;(this._removeLayers(),this._addLayers(t,n),this.below=n);for(var i=0;i&lt;r.length;i++){var a=r[i],o=a[0],s=a[1],l=t[o];e.setOptions(s,&quot;setLayoutProperty&quot;,l.layout),&quot;visible&quot;===l.layout.visibility&amp;&amp;e.setOptions(s,&quot;setPaintProperty&quot;,l.paint)}},s._addLayers=function(t,e){for(var r=this.subplot,n=this.layerList,i=this.sourceId,a=0;a&lt;n.length;a++){var o=n[a],s=o[0],l=t[s];r.addLayer({type:s,id:o[1],source:i,layout:l.layout,paint:l.paint},e)}},s._removeLayers=function(){for(var t=this.subplot.map,e=this.layerList,r=e.length-1;r&gt;=0;r--)t.removeLayer(e[r][1])},s.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new o(t,r.uid),a=i.sourceId,s=n(e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid];return t.map.addSource(a,{type:&quot;geojson&quot;,data:s.geojson}),i._addLayers(s,l),e[0].trace._glTrace=i,i}},{&quot;../../plots/mapbox/constants&quot;:883,&quot;./convert&quot;:999}],1003:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../mesh3d/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},u:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},v:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},w:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;absolute&quot;],editType:&quot;calc&quot;,dflt:&quot;scaled&quot;},sizeref:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0},anchor:{valType:&quot;enumerated&quot;,editType:&quot;calc&quot;,values:[&quot;tip&quot;,&quot;tail&quot;,&quot;cm&quot;,&quot;center&quot;],dflt:&quot;cm&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertemplate:i({editType:&quot;calc&quot;},{keys:[&quot;norm&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})};s(l,n(&quot;&quot;,{colorAttr:&quot;u/v/w norm&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}));[&quot;opacity&quot;,&quot;lightposition&quot;,&quot;lighting&quot;].forEach((function(t){l[t]=a[t]})),l.hoverinfo=s({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;norm&quot;,&quot;text&quot;,&quot;name&quot;],dflt:&quot;x+y+z+norm+text+name&quot;}),l.transforms=void 0,e.exports=l},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../mesh3d/attributes&quot;:1128}],1004:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){for(var r=e.u,i=e.v,a=e.w,o=Math.min(e.x.length,e.y.length,e.z.length,r.length,i.length,a.length),s=-1/0,l=1/0,c=0;c&lt;o;c++){var u=r[c],f=i[c],h=a[c],p=Math.sqrt(u*u+f*f+h*h);s=Math.max(s,p),l=Math.min(l,p)}e._len=o,e._normMax=s,n(t,e,{vals:[l,s],containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651}],1005:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-cone3d&quot;),i=t(&quot;gl-cone3d&quot;).createConeMesh,a=t(&quot;../../lib&quot;).simpleMap,o=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,s=t(&quot;../../components/colorscale&quot;).extractOpts,l=t(&quot;../../plots/gl3d/zip3&quot;);function c(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var u=c.prototype;u.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index,r=this.data.x[e],n=this.data.y[e],i=this.data.z[e],a=this.data.u[e],o=this.data.v[e],s=this.data.w[e];t.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return Array.isArray(l)&amp;&amp;void 0!==l[e]?t.textLabel=l[e]:l&amp;&amp;(t.textLabel=l),!0}};var f={xaxis:0,yaxis:1,zaxis:2},h={tip:1,tail:0,cm:.25,center:.5},p={tip:1,tail:1,cm:.75,center:.5};function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,c={};function u(t,e){var n=r[e],o=i[f[e]];return a(t,(function(t){return n.d2l(t)*o}))}c.vectors=l(u(e.u,&quot;xaxis&quot;),u(e.v,&quot;yaxis&quot;),u(e.w,&quot;zaxis&quot;),e._len),c.positions=l(u(e.x,&quot;xaxis&quot;),u(e.y,&quot;yaxis&quot;),u(e.z,&quot;zaxis&quot;),e._len);var d=s(e);c.colormap=o(e),c.vertexIntensityBounds=[d.min/e._normMax,d.max/e._normMax],c.coneOffset=h[e.anchor],&quot;scaled&quot;===e.sizemode?c.coneSize=e.sizeref||.5:c.coneSize=e.sizeref&amp;&amp;e._normMax?e.sizeref/e._normMax:.5;var g=n(c),m=e.lightposition;return g.lightPosition=[m.x,m.y,m.z],g.ambient=e.lighting.ambient,g.diffuse=e.lighting.diffuse,g.specular=e.lighting.specular,g.roughness=e.lighting.roughness,g.fresnel=e.lighting.fresnel,g.opacity=e.opacity,e._pad=p[e.anchor]*g.vectorScale*g.coneScale*e._normMax,g}u.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new c(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../plots/gl3d/zip3&quot;:881,&quot;gl-cone3d&quot;:260}],1006:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;u&quot;),c=s(&quot;v&quot;),u=s(&quot;w&quot;),f=s(&quot;x&quot;),h=s(&quot;y&quot;),p=s(&quot;z&quot;);l&amp;&amp;l.length&amp;&amp;c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length&amp;&amp;p&amp;&amp;p.length?(s(&quot;sizeref&quot;),s(&quot;sizemode&quot;),s(&quot;anchor&quot;),s(&quot;lighting.ambient&quot;),s(&quot;lighting.diffuse&quot;),s(&quot;lighting.specular&quot;),s(&quot;lighting.roughness&quot;),s(&quot;lighting.fresnel&quot;),s(&quot;lightposition.x&quot;),s(&quot;lightposition.y&quot;),s(&quot;lightposition.z&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:1003}],1007:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;cone&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;),plot:t(&quot;./convert&quot;),eventData:function(t,e){return t.norm=e.traceCoordinate[6],t},meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1003,&quot;./calc&quot;:1004,&quot;./convert&quot;:1005,&quot;./defaults&quot;:1006}],1008:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../components/drawing/attributes&quot;).dash,s=t(&quot;../../plots/font_attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=t(&quot;../../constants/filter_ops&quot;),u=c.COMPARISON_OPS2,f=c.INTERVAL_OPS,h=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,i.line);e.exports=l({z:n.z,x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,text:n.text,hovertext:n.hovertext,transpose:n.transpose,xtype:n.xtype,ytype:n.ytype,zhoverformat:n.zhoverformat,hovertemplate:n.hovertemplate,hoverongaps:n.hoverongaps,connectgaps:l({},n.connectgaps,{}),fillcolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},autocontour:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:{&quot;contours.start&quot;:void 0,&quot;contours.end&quot;:void 0,&quot;contours.size&quot;:void 0}},ncontours:{valType:&quot;integer&quot;,dflt:15,min:1,editType:&quot;calc&quot;},contours:{type:{valType:&quot;enumerated&quot;,values:[&quot;levels&quot;,&quot;constraint&quot;],dflt:&quot;levels&quot;,editType:&quot;calc&quot;},start:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},end:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},size:{valType:&quot;number&quot;,dflt:null,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},coloring:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;heatmap&quot;,&quot;lines&quot;,&quot;none&quot;],dflt:&quot;fill&quot;,editType:&quot;calc&quot;},showlines:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},showlabels:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},labelfont:s({editType:&quot;plot&quot;,colorEditType:&quot;style&quot;}),labelformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},operation:{valType:&quot;enumerated&quot;,values:[].concat(u).concat(f),dflt:&quot;=&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},editType:&quot;calc&quot;,impliedEdits:{autocontour:!1}},line:{color:l({},h.color,{editType:&quot;style+colorbars&quot;}),width:{valType:&quot;number&quot;,min:0,editType:&quot;style+colorbars&quot;},dash:o,smoothing:l({},h.smoothing,{}),editType:&quot;plot&quot;}},a(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing/attributes&quot;:664,&quot;../../constants/docs&quot;:748,&quot;../../constants/filter_ops&quot;:749,&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;../heatmap/attributes&quot;:1065,&quot;../scatter/attributes&quot;:1187}],1009:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale&quot;),i=t(&quot;../heatmap/calc&quot;),a=t(&quot;./set_contours&quot;),o=t(&quot;./end_plus&quot;);e.exports=function(t,e){var r=i(t,e),s=r[0].z;a(e,s);var l,c=e.contours,u=n.extractOpts(e);if(&quot;heatmap&quot;===c.coloring&amp;&amp;u.auto&amp;&amp;!1===e.autocontour){var f=c.start,h=o(c),p=c.size||1,d=Math.floor((h-f)/p)+1;isFinite(p)||(p=1,d=1);var g=f-p/2;l=[g,g+d*p]}else l=s;return n.calc(t,e,{vals:l,cLetter:&quot;z&quot;}),r}},{&quot;../../components/colorscale&quot;:655,&quot;../heatmap/calc&quot;:1066,&quot;./end_plus&quot;:1019,&quot;./set_contours&quot;:1027}],1010:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n=t[0],i=n.z;switch(e.type){case&quot;levels&quot;:var a=Math.min(i[0][0],i[0][1]);for(r=0;r&lt;t.length;r++){var o=t[r];o.prefixBoundary=!o.edgepaths.length&amp;&amp;(a&gt;o.level||o.starts.length&amp;&amp;a===o.level)}break;case&quot;constraint&quot;:if(n.prefixBoundary=!1,n.edgepaths.length)return;var s=n.x.length,l=n.y.length,c=-1/0,u=1/0;for(r=0;r&lt;l;r++)u=Math.min(u,i[r][0]),u=Math.min(u,i[r][s-1]),c=Math.max(c,i[r][0]),c=Math.max(c,i[r][s-1]);for(r=1;r&lt;s-1;r++)u=Math.min(u,i[0][r]),u=Math.min(u,i[l-1][r]),c=Math.max(c,i[0][r]),c=Math.max(c,i[l-1][r]);var f,h,p=e.value;switch(e._operation){case&quot;&gt;&quot;:p&gt;c&amp;&amp;(n.prefixBoundary=!0);break;case&quot;&lt;&quot;:(p&lt;u||n.starts.length&amp;&amp;p===u)&amp;&amp;(n.prefixBoundary=!0);break;case&quot;[]&quot;:f=Math.min(p[0],p[1]),((h=Math.max(p[0],p[1]))&lt;u||f&gt;c||n.starts.length&amp;&amp;h===u)&amp;&amp;(n.prefixBoundary=!0);break;case&quot;][&quot;:f=Math.min(p[0],p[1]),h=Math.max(p[0],p[1]),f&lt;u&amp;&amp;h&gt;c&amp;&amp;(n.prefixBoundary=!0)}}}},{}],1011:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale&quot;),i=t(&quot;./make_color_map&quot;),a=t(&quot;./end_plus&quot;);e.exports={min:&quot;zmin&quot;,max:&quot;zmax&quot;,calc:function(t,e,r){var o=e.contours,s=e.line,l=o.size||1,c=o.coloring,u=i(e,{isColorbar:!0});if(&quot;heatmap&quot;===c){var f=n.extractOpts(e);r._fillgradient=f.reversescale?n.flipScale(f.colorscale):f.colorscale,r._zrange=[f.min,f.max]}else&quot;fill&quot;===c&amp;&amp;(r._fillcolor=u);r._line={color:&quot;lines&quot;===c?u:s.color,width:!1!==o.showlines?s.width:0,dash:s.dash},r._levels={start:o.start,end:a(o),size:l}}}},{&quot;../../components/colorscale&quot;:655,&quot;./end_plus&quot;:1019,&quot;./make_color_map&quot;:1024}],1012:[function(t,e,r){&quot;use strict&quot;;e.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],1013:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./label_defaults&quot;),a=t(&quot;../../components/color&quot;),o=a.addOpacity,s=a.opacity,l=t(&quot;../../constants/filter_ops&quot;),c=l.CONSTRAINT_REDUCTION,u=l.COMPARISON_OPS2;e.exports=function(t,e,r,a,l,f){var h,p,d,g=e.contours,m=r(&quot;contours.operation&quot;);(g._operation=c[m],function(t,e){var r;-1===u.indexOf(e.operation)?(t(&quot;contours.value&quot;,[0,1]),Array.isArray(e.value)?e.value.length&gt;2?e.value=e.value.slice(2):0===e.length?e.value=[0,1]:e.length&lt;2?(r=parseFloat(e.value[0]),e.value=[r,r+1]):e.value=[parseFloat(e.value[0]),parseFloat(e.value[1])]:n(e.value)&amp;&amp;(r=parseFloat(e.value),e.value=[r,r+1])):(t(&quot;contours.value&quot;,0),n(e.value)||(Array.isArray(e.value)?e.value=parseFloat(e.value[0]):e.value=0))}(r,g),&quot;=&quot;===m?h=g.showlines=!0:(h=r(&quot;contours.showlines&quot;),d=r(&quot;fillcolor&quot;,o((t.line||{}).color||l,.5))),h)&amp;&amp;(p=r(&quot;line.color&quot;,d&amp;&amp;s(d)?o(e.fillcolor,1):l),r(&quot;line.width&quot;,2),r(&quot;line.dash&quot;));r(&quot;line.smoothing&quot;),i(r,a,p,f)}},{&quot;../../components/color&quot;:643,&quot;../../constants/filter_ops&quot;:749,&quot;./label_defaults&quot;:1023,&quot;fast-isnumeric&quot;:241}],1014:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/filter_ops&quot;),i=t(&quot;fast-isnumeric&quot;);function a(t,e){var r,a=Array.isArray(e);function o(t){return i(t)?+t:null}return-1!==n.COMPARISON_OPS2.indexOf(t)?r=o(a?e[0]:e):-1!==n.INTERVAL_OPS.indexOf(t)?r=a?[o(e[0]),o(e[1])]:[o(e),o(e)]:-1!==n.SET_OPS.indexOf(t)&amp;&amp;(r=a?e.map(o):[o(e)]),r}function o(t){return function(e){e=a(t,e);var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return{start:r,end:n,size:n-r}}}function s(t){return function(e){return{start:e=a(t,e),end:1/0,size:1/0}}}e.exports={&quot;[]&quot;:o(&quot;[]&quot;),&quot;][&quot;:o(&quot;][&quot;),&quot;&gt;&quot;:s(&quot;&gt;&quot;),&quot;&lt;&quot;:s(&quot;&lt;&quot;),&quot;=&quot;:s(&quot;=&quot;)}},{&quot;../../constants/filter_ops&quot;:749,&quot;fast-isnumeric&quot;:241}],1015:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i=n(&quot;contours.start&quot;),a=n(&quot;contours.end&quot;),o=!1===i||!1===a,s=r(&quot;contours.size&quot;);!(o?e.autocontour=!0:r(&quot;autocontour&quot;,!1))&amp;&amp;s||r(&quot;ncontours&quot;)}},{}],1016:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);function i(t){return n.extendFlat({},t,{edgepaths:n.extendDeep([],t.edgepaths),paths:n.extendDeep([],t.paths),starts:n.extendDeep([],t.starts)})}e.exports=function(t,e){var r,a,o,s=function(t){return t.reverse()},l=function(t){return t};switch(e){case&quot;=&quot;:case&quot;&lt;&quot;:return t;case&quot;&gt;&quot;:for(1!==t.length&amp;&amp;n.warn(&quot;Contour data invalid for the specified inequality operation.&quot;),a=t[0],r=0;r&lt;a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r&lt;a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(r=0;r&lt;a.starts.length;r++)a.starts[r]=s(a.starts[r]);return t;case&quot;][&quot;:var c=s;s=l,l=c;case&quot;[]&quot;:for(2!==t.length&amp;&amp;n.warn(&quot;Contour data invalid for the specified inequality range operation.&quot;),a=i(t[0]),o=i(t[1]),r=0;r&lt;a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r&lt;a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(r=0;r&lt;a.starts.length;r++)a.starts[r]=s(a.starts[r]);for(;o.edgepaths.length;)a.edgepaths.push(l(o.edgepaths.shift()));for(;o.paths.length;)a.paths.push(l(o.paths.shift()));for(;o.starts.length;)a.starts.push(l(o.starts.shift()));return[a]}}},{&quot;../../lib&quot;:778}],1017:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./constraint_defaults&quot;),s=t(&quot;./contours_defaults&quot;),l=t(&quot;./style_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}if(i(t,e,f,u)){a(t,e,u,f),f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;hoverongaps&quot;);var h=&quot;constraint&quot;===f(&quot;contours.type&quot;);f(&quot;connectgaps&quot;,n.isArray1D(e.z)),h?o(t,e,f,u,r):(s(t,e,f,(function(r){return n.coerce2(t,e,c,r)})),l(t,e,f,u))}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../heatmap/xyz_defaults&quot;:1079,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:1008,&quot;./constraint_defaults&quot;:1013,&quot;./contours_defaults&quot;:1015,&quot;./style_defaults&quot;:1029}],1018:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constraint_mapping&quot;),a=t(&quot;./end_plus&quot;);e.exports=function(t,e,r){for(var o=&quot;constraint&quot;===t.type?i[t._operation](t.value):t,s=o.size,l=[],c=a(o),u=r.trace._carpetTrace,f=u?{xaxis:u.aaxis,yaxis:u.baxis,x:r.a,y:r.b}:{xaxis:e.xaxis,yaxis:e.yaxis,x:r.x,y:r.y},h=o.start;h&lt;c;h+=s)if(l.push(n.extendFlat({level:h,crossings:{},starts:[],edgepaths:[],paths:[],z:r.z,smoothing:r.trace.line.smoothing},f)),l.length&gt;1e3){n.warn(&quot;Too many contours, clipping at 1000&quot;,t);break}return l}},{&quot;../../lib&quot;:778,&quot;./constraint_mapping&quot;:1014,&quot;./end_plus&quot;:1019}],1019:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t.end+t.size/1e6}},{}],1020:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constants&quot;);function a(t,e,r,n){return Math.abs(t[0]-e[0])&lt;r&amp;&amp;Math.abs(t[1]-e[1])&lt;n}function o(t,e,r,o,l){var c,u=e.join(&quot;,&quot;),f=t.crossings[u],h=function(t,e,r){var n=0,a=0;t&gt;20&amp;&amp;e?208===t||1114===t?n=0===r[0]?1:-1:a=0===r[1]?1:-1:-1!==i.BOTTOMSTART.indexOf(t)?a=1:-1!==i.LEFTSTART.indexOf(t)?n=1:-1!==i.TOPSTART.indexOf(t)?a=-1:n=-1;return[n,a]}(f,r,e),p=[s(t,e,[-h[0],-h[1]])],d=t.z.length,g=t.z[0].length,m=e.slice(),v=h.slice();for(c=0;c&lt;1e4;c++){if(f&gt;20?(f=i.CHOOSESADDLE[f][(h[0]||h[1])&lt;0?0:1],t.crossings[u]=i.SADDLEREMAINDER[f]):delete t.crossings[u],!(h=i.NEWDELTA[f])){n.log(&quot;Found bad marching index:&quot;,f,e,t.level);break}p.push(s(t,e,h)),e[0]+=h[0],e[1]+=h[1],u=e.join(&quot;,&quot;),a(p[p.length-1],p[p.length-2],o,l)&amp;&amp;p.pop();var y=h[0]&amp;&amp;(e[0]&lt;0||e[0]&gt;g-2)||h[1]&amp;&amp;(e[1]&lt;0||e[1]&gt;d-2);if(e[0]===m[0]&amp;&amp;e[1]===m[1]&amp;&amp;h[0]===v[0]&amp;&amp;h[1]===v[1]||r&amp;&amp;y)break;f=t.crossings[u]}1e4===c&amp;&amp;n.log(&quot;Infinite loop in contour?&quot;);var x,b,_,w,T,k,M,A,S,E,C,L,I,P,z,O=a(p[0],p[p.length-1],o,l),D=0,R=.2*t.smoothing,F=[],B=0;for(c=1;c&lt;p.length;c++)L=p[c],I=p[c-1],P=void 0,z=void 0,P=L[2]-I[2],z=L[3]-I[3],D+=M=Math.sqrt(P*P+z*z),F.push(M);var N=D/F.length*R;function j(t){return p[t%p.length]}for(c=p.length-2;c&gt;=B;c--)if((x=F[c])&lt;N){for(_=0,b=c-1;b&gt;=B&amp;&amp;x+F[b]&lt;N;b--)x+=F[b];if(O&amp;&amp;c===p.length-2)for(_=0;_&lt;b&amp;&amp;x+F[_]&lt;N;_++)x+=F[_];T=c-b+_+1,k=Math.floor((c+b+_+2)/2),w=O||c!==p.length-2?O||-1!==b?T%2?j(k):[(j(k)[0]+j(k+1)[0])/2,(j(k)[1]+j(k+1)[1])/2]:p[0]:p[p.length-1],p.splice(b+1,c-b+1,w),c=b+1,_&amp;&amp;(B=_),O&amp;&amp;(c===p.length-2?p[_]=p[p.length-1]:0===c&amp;&amp;(p[p.length-1]=p[0]))}for(p.splice(0,B),c=0;c&lt;p.length;c++)p[c].length=2;if(!(p.length&lt;2))if(O)p.pop(),t.paths.push(p);else{r||n.log(&quot;Unclosed interior contour?&quot;,t.level,m.join(&quot;,&quot;),p.join(&quot;L&quot;));var U=!1;for(A=0;A&lt;t.edgepaths.length;A++)if(E=t.edgepaths[A],!U&amp;&amp;a(E[0],p[p.length-1],o,l)){p.pop(),U=!0;var V=!1;for(S=0;S&lt;t.edgepaths.length;S++)if(a((C=t.edgepaths[S])[C.length-1],p[0],o,l)){V=!0,p.shift(),t.edgepaths.splice(A,1),S===A?t.paths.push(p.concat(C)):(S&gt;A&amp;&amp;S--,t.edgepaths[S]=C.concat(p,E));break}V||(t.edgepaths[A]=p.concat(E))}for(A=0;A&lt;t.edgepaths.length&amp;&amp;!U;A++)a((E=t.edgepaths[A])[E.length-1],p[0],o,l)&amp;&amp;(p.shift(),t.edgepaths[A]=E.concat(p),U=!0);U||t.edgepaths.push(p)}}function s(t,e,r){var n=e[0]+Math.max(r[0],0),i=e[1]+Math.max(r[1],0),a=t.z[i][n],o=t.xaxis,s=t.yaxis;if(r[1]){var l=(t.level-a)/(t.z[i][n+1]-a);return[o.c2p((1-l)*t.x[n]+l*t.x[n+1],!0),s.c2p(t.y[i],!0),n+l,i]}var c=(t.level-a)/(t.z[i+1][n]-a);return[o.c2p(t.x[n],!0),s.c2p((1-c)*t.y[i]+c*t.y[i+1],!0),n,i+c]}e.exports=function(t,e,r){var i,a,s,l;for(e=e||.01,r=r||.01,a=0;a&lt;t.length;a++){for(s=t[a],l=0;l&lt;s.starts.length;l++)o(s,s.starts[l],&quot;edge&quot;,e,r);for(i=0;Object.keys(s.crossings).length&amp;&amp;i&lt;1e4;)i++,o(s,Object.keys(s.crossings)[0].split(&quot;,&quot;).map(Number),void 0,e,r);1e4===i&amp;&amp;n.log(&quot;Infinite loop in contour?&quot;)}}},{&quot;../../lib&quot;:778,&quot;./constants&quot;:1012}],1021:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../heatmap/hover&quot;);e.exports=function(t,e,r,a,o){var s=i(t,e,r,a,o,!0);return s&amp;&amp;s.forEach((function(t){var e=t.trace;&quot;constraint&quot;===e.contours.type&amp;&amp;(e.fillcolor&amp;&amp;n.opacity(e.fillcolor)?t.color=n.addOpacity(e.fillcolor,1):e.contours.showlines&amp;&amp;n.opacity(e.line.color)&amp;&amp;(t.color=n.addOpacity(e.line.color,1)))})),s}},{&quot;../../components/color&quot;:643,&quot;../heatmap/hover&quot;:1072}],1022:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),colorbar:t(&quot;./colorbar&quot;),hoverPoints:t(&quot;./hover&quot;),moduleType:&quot;trace&quot;,name:&quot;contour&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;contour&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1008,&quot;./calc&quot;:1009,&quot;./colorbar&quot;:1011,&quot;./defaults&quot;:1017,&quot;./hover&quot;:1021,&quot;./plot&quot;:1026,&quot;./style&quot;:1028}],1023:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r,i){if(i||(i={}),t(&quot;contours.showlabels&quot;)){var a=e.font;n.coerceFont(t,&quot;contours.labelfont&quot;,{family:a.family,size:a.size,color:r}),t(&quot;contours.labelformat&quot;)}!1!==i.hasHover&amp;&amp;t(&quot;zhoverformat&quot;)}},{&quot;../../lib&quot;:778}],1024:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/colorscale&quot;),a=t(&quot;./end_plus&quot;);e.exports=function(t){var e=t.contours,r=e.start,o=a(e),s=e.size||1,l=Math.floor((o-r)/s)+1,c=&quot;lines&quot;===e.coloring?0:1,u=i.extractOpts(t);isFinite(s)||(s=1,l=1);var f,h,p=u.reversescale?i.flipScale(u.colorscale):u.colorscale,d=p.length,g=new Array(d),m=new Array(d);if(&quot;heatmap&quot;===e.coloring){var v=u.min,y=u.max;for(h=0;h&lt;d;h++)f=p[h],g[h]=f[0]*(y-v)+v,m[h]=f[1];var x=n.extent([v,y,e.start,e.start+s*(l-1)]),b=x[v&lt;y?0:1],_=x[v&lt;y?1:0];b!==v&amp;&amp;(g.splice(0,0,b),m.splice(0,0,m[0])),_!==y&amp;&amp;(g.push(_),m.push(m[m.length-1]))}else for(h=0;h&lt;d;h++)f=p[h],g[h]=(f[0]*(l+c-1)-c/2)*s+r,m[h]=f[1];return i.makeColorScaleFunc({domain:g,range:m},{noNumericCheck:!0})}},{&quot;../../components/colorscale&quot;:655,&quot;./end_plus&quot;:1019,d3:169}],1025:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);function i(t,e){var r=(e[0][0]&gt;t?0:1)+(e[0][1]&gt;t?0:2)+(e[1][1]&gt;t?0:4)+(e[1][0]&gt;t?0:8);return 5===r||10===r?t&gt;(e[0][0]+e[0][1]+e[1][0]+e[1][1])/4?5===r?713:1114:5===r?104:208:15===r?0:r}e.exports=function(t){var e,r,a,o,s,l,c,u,f,h=t[0].z,p=h.length,d=h[0].length,g=2===p||2===d;for(r=0;r&lt;p-1;r++)for(o=[],0===r&amp;&amp;(o=o.concat(n.BOTTOMSTART)),r===p-2&amp;&amp;(o=o.concat(n.TOPSTART)),e=0;e&lt;d-1;e++)for(a=o.slice(),0===e&amp;&amp;(a=a.concat(n.LEFTSTART)),e===d-2&amp;&amp;(a=a.concat(n.RIGHTSTART)),s=e+&quot;,&quot;+r,l=[[h[r][e],h[r][e+1]],[h[r+1][e],h[r+1][e+1]]],f=0;f&lt;t.length;f++)(c=i((u=t[f]).level,l))&amp;&amp;(u.crossings[s]=c,-1!==a.indexOf(c)&amp;&amp;(u.starts.push([e,r]),g&amp;&amp;-1!==a.indexOf(c,a.indexOf(c)+1)&amp;&amp;u.starts.push([e,r])))}},{&quot;./constants&quot;:1012}],1026:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../components/colorscale&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;../../plots/cartesian/set_convert&quot;),u=t(&quot;../heatmap/plot&quot;),f=t(&quot;./make_crossings&quot;),h=t(&quot;./find_all_paths&quot;),p=t(&quot;./empty_pathinfo&quot;),d=t(&quot;./convert_to_constraints&quot;),g=t(&quot;./close_boundaries&quot;),m=t(&quot;./constants&quot;),v=m.LABELOPTIMIZER;function y(t,e){var r,n,o,s,l,c,u,f=&quot;&quot;,h=0,p=t.edgepaths.map((function(t,e){return e})),d=!0;function g(t){return Math.abs(t[1]-e[2][1])&lt;.01}function m(t){return Math.abs(t[0]-e[0][0])&lt;.01}function v(t){return Math.abs(t[0]-e[2][0])&lt;.01}for(;p.length;){for(c=a.smoothopen(t.edgepaths[h],t.smoothing),f+=d?c:c.replace(/^M/,&quot;L&quot;),p.splice(p.indexOf(h),1),r=t.edgepaths[h][t.edgepaths[h].length-1],s=-1,o=0;o&lt;4;o++){if(!r){i.log(&quot;Missing end?&quot;,h,t);break}for(u=r,Math.abs(u[1]-e[0][1])&lt;.01&amp;&amp;!v(r)?n=e[1]:m(r)?n=e[0]:g(r)?n=e[3]:v(r)&amp;&amp;(n=e[2]),l=0;l&lt;t.edgepaths.length;l++){var y=t.edgepaths[l][0];Math.abs(r[0]-n[0])&lt;.01?Math.abs(r[0]-y[0])&lt;.01&amp;&amp;(y[1]-r[1])*(n[1]-y[1])&gt;=0&amp;&amp;(n=y,s=l):Math.abs(r[1]-n[1])&lt;.01?Math.abs(r[1]-y[1])&lt;.01&amp;&amp;(y[0]-r[0])*(n[0]-y[0])&gt;=0&amp;&amp;(n=y,s=l):i.log(&quot;endpt to newendpt is not vert. or horz.&quot;,r,n,y)}if(r=n,s&gt;=0)break;f+=&quot;L&quot;+n}if(s===t.edgepaths.length){i.log(&quot;unclosed perimeter path&quot;);break}h=s,(d=-1===p.indexOf(h))&amp;&amp;(h=p[0],f+=&quot;Z&quot;)}for(h=0;h&lt;t.paths.length;h++)f+=a.smoothclosed(t.paths[h],t.smoothing);return f}function x(t,e,r,n){var a=e.width/2,o=e.height/2,s=t.x,l=t.y,c=t.theta,u=Math.cos(c)*a,f=Math.sin(c)*a,h=(s&gt;n.center?n.right-s:s-n.left)/(u+Math.abs(Math.sin(c)*o)),p=(l&gt;n.middle?n.bottom-l:l-n.top)/(Math.abs(f)+Math.cos(c)*o);if(h&lt;1||p&lt;1)return 1/0;var d=v.EDGECOST*(1/(h-1)+1/(p-1));d+=v.ANGLECOST*c*c;for(var g=s-u,m=l-f,y=s+u,x=l+f,b=0;b&lt;r.length;b++){var _=r[b],w=Math.cos(_.theta)*_.width/2,T=Math.sin(_.theta)*_.width/2,k=2*i.segmentDistance(g,m,y,x,_.x-w,_.y-T,_.x+w,_.y+T)/(e.height+_.height),M=_.level===e.level,A=M?v.SAMELEVELDISTANCE:1;if(k&lt;=A)return 1/0;d+=v.NEIGHBORCOST*(M?v.SAMELEVELFACTOR:1)/(k-A)}return d}function b(t){var e,r,n=t.trace._emptypoints,i=[],a=t.z.length,o=t.z[0].length,s=[];for(e=0;e&lt;o;e++)s.push(1);for(e=0;e&lt;a;e++)i.push(s.slice());for(e=0;e&lt;n.length;e++)i[(r=n[e])[0]][r[1]]=0;return t.zmask=i,i}r.plot=function(t,e,o,s){var l=e.xaxis,c=e.yaxis;i.makeTraceGroups(s,o,&quot;contour&quot;).each((function(o){var s=n.select(this),v=o[0],x=v.trace,_=v.x,w=v.y,T=x.contours,k=p(T,e,v),M=i.ensureSingle(s,&quot;g&quot;,&quot;heatmapcoloring&quot;),A=[];&quot;heatmap&quot;===T.coloring&amp;&amp;(A=[o]),u(t,e,A,M),f(k),h(k);var S=l.c2p(_[0],!0),E=l.c2p(_[_.length-1],!0),C=c.c2p(w[0],!0),L=c.c2p(w[w.length-1],!0),I=[[S,L],[E,L],[E,C],[S,C]],P=k;&quot;constraint&quot;===T.type&amp;&amp;(P=d(k,T._operation)),function(t,e,r){var n=i.ensureSingle(t,&quot;g&quot;,&quot;contourbg&quot;).selectAll(&quot;path&quot;).data(&quot;fill&quot;===r.coloring?[0]:[]);n.enter().append(&quot;path&quot;),n.exit().remove(),n.attr(&quot;d&quot;,&quot;M&quot;+e.join(&quot;L&quot;)+&quot;Z&quot;).style(&quot;stroke&quot;,&quot;none&quot;)}(s,I,T),function(t,e,r,a){var o=&quot;fill&quot;===a.coloring||&quot;constraint&quot;===a.type&amp;&amp;&quot;=&quot;!==a._operation,s=&quot;M&quot;+r.join(&quot;L&quot;)+&quot;Z&quot;;o&amp;&amp;g(e,a);var l=i.ensureSingle(t,&quot;g&quot;,&quot;contourfill&quot;).selectAll(&quot;path&quot;).data(o?e:[]);l.enter().append(&quot;path&quot;),l.exit().remove(),l.each((function(t){var e=(t.prefixBoundary?s:&quot;&quot;)+y(t,r);e?n.select(this).attr(&quot;d&quot;,e).style(&quot;stroke&quot;,&quot;none&quot;):n.select(this).remove()}))}(s,P,I,T),function(t,e,o,s,l){var c=i.ensureSingle(t,&quot;g&quot;,&quot;contourlines&quot;),u=!1!==l.showlines,f=l.showlabels,h=u&amp;&amp;f,p=r.createLines(c,u||f,e),d=r.createLineClip(c,h,o,s.trace.uid),g=t.selectAll(&quot;g.contourlabels&quot;).data(f?[0]:[]);if(g.exit().remove(),g.enter().append(&quot;g&quot;).classed(&quot;contourlabels&quot;,!0),f){var v=[],y=[];i.clearLocationCache();var x=r.labelFormatter(o,s),b=a.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).call(a.font,l.labelfont),_=e[0].xaxis,w=e[0].yaxis,T=_._length,k=w._length,M=_.range,A=w.range,S=i.aggNums(Math.min,null,s.x),E=i.aggNums(Math.max,null,s.x),C=i.aggNums(Math.min,null,s.y),L=i.aggNums(Math.max,null,s.y),I=Math.max(_.c2p(S,!0),0),P=Math.min(_.c2p(E,!0),T),z=Math.max(w.c2p(L,!0),0),O=Math.min(w.c2p(C,!0),k),D={};M[0]&lt;M[1]?(D.left=I,D.right=P):(D.left=P,D.right=I),A[0]&lt;A[1]?(D.top=z,D.bottom=O):(D.top=O,D.bottom=z),D.middle=(D.top+D.bottom)/2,D.center=(D.left+D.right)/2,v.push([[D.left,D.top],[D.right,D.top],[D.right,D.bottom],[D.left,D.bottom]]);var R=Math.sqrt(T*T+k*k),F=m.LABELDISTANCE*R/Math.max(1,e.length/m.LABELINCREASE);p.each((function(t){var e=r.calcTextOpts(t.level,x,b,o);n.select(this).selectAll(&quot;path&quot;).each((function(){var t=i.getVisibleSegment(this,D,e.height/2);if(t&amp;&amp;!(t.len&lt;(e.width+e.height)*m.LABELMIN))for(var n=Math.min(Math.ceil(t.len/F),m.LABELMAX),a=0;a&lt;n;a++){var o=r.findBestTextLocation(this,t,e,y,D);if(!o)break;r.addLabelData(o,e,y,v)}}))})),b.remove(),r.drawLabels(g,y,o,d,h?v:null)}f&amp;&amp;!u&amp;&amp;p.remove()}(s,k,t,v,T),function(t,e,r,n,o){var s=n.trace,l=r._fullLayout._clips,c=&quot;clip&quot;+s.uid,u=l.selectAll(&quot;#&quot;+c).data(s.connectgaps?[]:[0]);if(u.enter().append(&quot;clipPath&quot;).classed(&quot;contourclip&quot;,!0).attr(&quot;id&quot;,c),u.exit().remove(),!1===s.connectgaps){var p={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:e.xaxis,yaxis:e.yaxis,x:n.x,y:n.y,z:b(n),smoothing:0};f([p]),h([p]),g([p],{type:&quot;levels&quot;}),i.ensureSingle(u,&quot;path&quot;,&quot;&quot;).attr(&quot;d&quot;,(p.prefixBoundary?&quot;M&quot;+o.join(&quot;L&quot;)+&quot;Z&quot;:&quot;&quot;)+y(p,o))}else c=null;a.setClipUrl(t,c,r)}(s,e,t,v,I)}))},r.createLines=function(t,e,r){var n=r[0].smoothing,i=t.selectAll(&quot;g.contourlevel&quot;).data(e?r:[]);if(i.exit().remove(),i.enter().append(&quot;g&quot;).classed(&quot;contourlevel&quot;,!0),e){var o=i.selectAll(&quot;path.openline&quot;).data((function(t){return t.pedgepaths||t.edgepaths}));o.exit().remove(),o.enter().append(&quot;path&quot;).classed(&quot;openline&quot;,!0),o.attr(&quot;d&quot;,(function(t){return a.smoothopen(t,n)})).style(&quot;stroke-miterlimit&quot;,1).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;);var s=i.selectAll(&quot;path.closedline&quot;).data((function(t){return t.ppaths||t.paths}));s.exit().remove(),s.enter().append(&quot;path&quot;).classed(&quot;closedline&quot;,!0),s.attr(&quot;d&quot;,(function(t){return a.smoothclosed(t,n)})).style(&quot;stroke-miterlimit&quot;,1).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;)}return i},r.createLineClip=function(t,e,r,n){var i=e?&quot;clipline&quot;+n:null,o=r._fullLayout._clips.selectAll(&quot;#&quot;+i).data(e?[0]:[]);return o.exit().remove(),o.enter().append(&quot;clipPath&quot;).classed(&quot;contourlineclip&quot;,!0).attr(&quot;id&quot;,i),a.setClipUrl(t,i,r),o},r.labelFormatter=function(t,e){var r=t._fullLayout,n=e.trace,i=n.contours,a={type:&quot;linear&quot;,_id:&quot;ycontour&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;};if(i.labelformat)a.tickformat=i.labelformat,c(a,r);else{var s=o.extractOpts(n);if(s&amp;&amp;s.colorbar&amp;&amp;s.colorbar._axis)a=s.colorbar._axis;else{if(&quot;constraint&quot;===i.type){var u=i.value;Array.isArray(u)?a.range=[u[0],u[u.length-1]]:a.range=[u,u]}else a.range=[i.start,i.end],a.nticks=(i.end-i.start)/i.size;a.range[0]===a.range[1]&amp;&amp;(a.range[1]+=a.range[0]||1),a.nticks||(a.nticks=1e3),c(a,r),l.prepTicks(a),a._tmin=null,a._tmax=null}}return function(t){return l.tickText(a,t).text}},r.calcTextOpts=function(t,e,r,n){var i=e(t);r.text(i).call(s.convertToTspans,n);var o=r.node(),l=a.bBox(o,!0);return{text:i,width:l.width,height:l.height,fontSize:+o.style[&quot;font-size&quot;].replace(&quot;px&quot;,&quot;&quot;),level:t,dy:(l.top+l.bottom)/2}},r.findBestTextLocation=function(t,e,r,n,a){var o,s,l,c,u,f=r.width;e.isClosed?(s=e.len/v.INITIALSEARCHPOINTS,o=e.min+s/2,l=e.max):(s=(e.len-f)/(v.INITIALSEARCHPOINTS+1),o=e.min+s+f/2,l=e.max-(s+f)/2);for(var h=1/0,p=0;p&lt;v.ITERATIONS;p++){for(var d=o;d&lt;l;d+=s){var g=i.getTextLocation(t,e.total,d,f),m=x(g,r,n,a);m&lt;h&amp;&amp;(h=m,u=g,c=d)}if(h&gt;2*v.MAXCOST)break;p&amp;&amp;(s/=2),l=(o=c-s/2)+1.5*s}if(h&lt;=v.MAXCOST)return u},r.addLabelData=function(t,e,r,n){var i=e.fontSize,a=e.width+i/3,o=Math.max(0,e.height-i/3),s=t.x,l=t.y,c=t.theta,u=Math.sin(c),f=Math.cos(c),h=function(t,e){return[s+t*f-e*u,l+t*u+e*f]},p=[h(-a/2,-o/2),h(-a/2,o/2),h(a/2,o/2),h(a/2,-o/2)];r.push({text:e.text,x:s,y:l,dy:e.dy,theta:c,level:e.level,width:a,height:o}),n.push(p)},r.drawLabels=function(t,e,r,a,o){var l=t.selectAll(&quot;text&quot;).data(e,(function(t){return t.text+&quot;,&quot;+t.x+&quot;,&quot;+t.y+&quot;,&quot;+t.theta}));if(l.exit().remove(),l.enter().append(&quot;text&quot;).attr({&quot;data-notex&quot;:1,&quot;text-anchor&quot;:&quot;middle&quot;}).each((function(t){var e=t.x+Math.sin(t.theta)*t.dy,i=t.y-Math.cos(t.theta)*t.dy;n.select(this).text(t.text).attr({x:e,y:i,transform:&quot;rotate(&quot;+180*t.theta/Math.PI+&quot; &quot;+e+&quot; &quot;+i+&quot;)&quot;}).call(s.convertToTspans,r)})),o){for(var c=&quot;&quot;,u=0;u&lt;o.length;u++)c+=&quot;M&quot;+o[u].join(&quot;L&quot;)+&quot;Z&quot;;i.ensureSingle(a,&quot;path&quot;,&quot;&quot;).attr(&quot;d&quot;,c)}}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/set_convert&quot;:848,&quot;../heatmap/plot&quot;:1076,&quot;./close_boundaries&quot;:1010,&quot;./constants&quot;:1012,&quot;./convert_to_constraints&quot;:1016,&quot;./empty_pathinfo&quot;:1018,&quot;./find_all_paths&quot;:1020,&quot;./make_crossings&quot;:1025,d3:169}],1027:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;);function a(t,e,r){var i={type:&quot;linear&quot;,range:[t,e]};return n.autoTicks(i,(e-t)/(r||15)),i}e.exports=function(t,e){var r=t.contours;if(t.autocontour){var o=t.zmin,s=t.zmax;(t.zauto||void 0===o)&amp;&amp;(o=i.aggNums(Math.min,null,e)),(t.zauto||void 0===s)&amp;&amp;(s=i.aggNums(Math.max,null,e));var l=a(o,s,t.ncontours);r.size=l.dtick,r.start=n.tickFirst(l),l.range.reverse(),r.end=n.tickFirst(l),r.start===o&amp;&amp;(r.start+=r.size),r.end===s&amp;&amp;(r.end-=r.size),r.start&gt;r.end&amp;&amp;(r.start=r.end=(r.start+r.end)/2),t._input.contours||(t._input.contours={}),i.extendFlat(t._input.contours,{start:r.start,end:r.end,size:r.size}),t._input.autocontour=!0}else if(&quot;constraint&quot;!==r.type){var c,u=r.start,f=r.end,h=t._input.contours;if(u&gt;f&amp;&amp;(r.start=h.start=f,f=r.end=h.end=u,u=r.start),!(r.size&gt;0))c=u===f?1:a(u,f,t.ncontours).dtick,h.size=r.size=c}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1028:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../heatmap/style&quot;),o=t(&quot;./make_color_map&quot;);e.exports=function(t){var e=n.select(t).selectAll(&quot;g.contour&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.each((function(t){var e=n.select(this),r=t[0].trace,a=r.contours,s=r.line,l=a.size||1,c=a.start,u=&quot;constraint&quot;===a.type,f=!u&amp;&amp;&quot;lines&quot;===a.coloring,h=!u&amp;&amp;&quot;fill&quot;===a.coloring,p=f||h?o(r):null;e.selectAll(&quot;g.contourlevel&quot;).each((function(t){n.select(this).selectAll(&quot;path&quot;).call(i.lineGroupStyle,s.width,f?p(t.level):s.color,s.dash)}));var d=a.labelfont;if(e.selectAll(&quot;g.contourlabels text&quot;).each((function(t){i.font(n.select(this),{family:d.family,size:d.size,color:d.color||(f?p(t.level):s.color)})})),u)e.selectAll(&quot;g.contourfill path&quot;).style(&quot;fill&quot;,r.fillcolor);else if(h){var g;e.selectAll(&quot;g.contourfill path&quot;).style(&quot;fill&quot;,(function(t){return void 0===g&amp;&amp;(g=t.level),p(t.level+.5*l)})),void 0===g&amp;&amp;(g=c),e.selectAll(&quot;g.contourbg path&quot;).style(&quot;fill&quot;,p(g-.5*l))}})),a(t)}},{&quot;../../components/drawing&quot;:665,&quot;../heatmap/style&quot;:1077,&quot;./make_color_map&quot;:1024,d3:169}],1029:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/defaults&quot;),i=t(&quot;./label_defaults&quot;);e.exports=function(t,e,r,a,o){var s,l=r(&quot;contours.coloring&quot;),c=&quot;&quot;;&quot;fill&quot;===l&amp;&amp;(s=r(&quot;contours.showlines&quot;)),!1!==s&amp;&amp;(&quot;lines&quot;!==l&amp;&amp;(c=r(&quot;line.color&quot;,&quot;#000&quot;)),r(&quot;line.width&quot;,.5),r(&quot;line.dash&quot;)),&quot;none&quot;!==l&amp;&amp;(!0!==t.showlegend&amp;&amp;(e.showlegend=!1),e._dfltShowLegend=!1,n(t,e,a,r,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})),r(&quot;line.smoothing&quot;),i(r,a,c,o)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;./label_defaults&quot;:1023}],1030:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../contour/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat,s=i.contours;e.exports=o({carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},z:n.z,a:n.x,a0:n.x0,da:n.dx,b:n.y,b0:n.y0,db:n.dy,text:n.text,hovertext:n.hovertext,transpose:n.transpose,atype:n.xtype,btype:n.ytype,fillcolor:i.fillcolor,autocontour:i.autocontour,ncontours:i.ncontours,contours:{type:s.type,start:s.start,end:s.end,size:s.size,coloring:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;lines&quot;,&quot;none&quot;],dflt:&quot;fill&quot;,editType:&quot;calc&quot;},showlines:s.showlines,showlabels:s.showlabels,labelfont:s.labelfont,labelformat:s.labelformat,operation:s.operation,value:s.value,editType:&quot;calc&quot;,impliedEdits:{autocontour:!1}},line:{color:i.line.color,width:i.line.width,dash:i.line.dash,smoothing:i.line.smoothing,editType:&quot;plot&quot;},transforms:void 0},a(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../contour/attributes&quot;:1008,&quot;../heatmap/attributes&quot;:1065}],1031:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../heatmap/convert_column_xyz&quot;),o=t(&quot;../heatmap/clean_2d_array&quot;),s=t(&quot;../heatmap/interp2d&quot;),l=t(&quot;../heatmap/find_empties&quot;),c=t(&quot;../heatmap/make_bound_array&quot;),u=t(&quot;./defaults&quot;),f=t(&quot;../carpet/lookup_carpetid&quot;),h=t(&quot;../contour/set_contours&quot;);e.exports=function(t,e){var r=e._carpetTrace=f(t,e);if(r&amp;&amp;r.visible&amp;&amp;&quot;legendonly&quot;!==r.visible){if(!e.a||!e.b){var p=t.data[r.index],d=t.data[e.index];d.a||(d.a=p.a),d.b||(d.b=p.b),u(d,e,e._defaultColor,t._fullLayout)}var g=function(t,e){var r,u,f,h,p,d,g,m=e._carpetTrace,v=m.aaxis,y=m.baxis;v._minDtick=0,y._minDtick=0,i.isArray1D(e.z)&amp;&amp;a(e,v,y,&quot;a&quot;,&quot;b&quot;,[&quot;z&quot;]);r=e._a=e._a||e.a,h=e._b=e._b||e.b,r=r?v.makeCalcdata(e,&quot;_a&quot;):[],h=h?y.makeCalcdata(e,&quot;_b&quot;):[],u=e.a0||0,f=e.da||1,p=e.b0||0,d=e.db||1,g=e._z=o(e._z||e.z,e.transpose),e._emptypoints=l(g),s(g,e._emptypoints);var x=i.maxRowLength(g),b=&quot;scaled&quot;===e.xtype?&quot;&quot;:r,_=c(e,b,u,f,x,v),w=&quot;scaled&quot;===e.ytype?&quot;&quot;:h,T=c(e,w,p,d,g.length,y),k={a:_,b:T,z:g};&quot;levels&quot;===e.contours.type&amp;&amp;&quot;none&quot;!==e.contours.coloring&amp;&amp;n(t,e,{vals:g,containerStr:&quot;&quot;,cLetter:&quot;z&quot;});return[k]}(t,e);return h(e,e._z),g}}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../lib&quot;:778,&quot;../carpet/lookup_carpetid&quot;:981,&quot;../contour/set_contours&quot;:1027,&quot;../heatmap/clean_2d_array&quot;:1067,&quot;../heatmap/convert_column_xyz&quot;:1069,&quot;../heatmap/find_empties&quot;:1071,&quot;../heatmap/interp2d&quot;:1074,&quot;../heatmap/make_bound_array&quot;:1075,&quot;./defaults&quot;:1032}],1032:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../contour/constraint_defaults&quot;),s=t(&quot;../contour/contours_defaults&quot;),l=t(&quot;../contour/style_defaults&quot;);e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,a,r,i)}if(u(&quot;carpet&quot;),t.a&amp;&amp;t.b){if(!i(t,e,u,c,&quot;a&quot;,&quot;b&quot;))return void(e.visible=!1);u(&quot;text&quot;),&quot;constraint&quot;===u(&quot;contours.type&quot;)?o(t,e,u,c,r,{hasHover:!1}):(s(t,e,u,(function(r){return n.coerce2(t,e,a,r)})),l(t,e,u,c,{hasHover:!1}))}else e._defaultColor=r,e._length=null}},{&quot;../../lib&quot;:778,&quot;../contour/constraint_defaults&quot;:1013,&quot;../contour/contours_defaults&quot;:1015,&quot;../contour/style_defaults&quot;:1029,&quot;../heatmap/xyz_defaults&quot;:1079,&quot;./attributes&quot;:1030}],1033:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../contour/colorbar&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../contour/style&quot;),moduleType:&quot;trace&quot;,name:&quot;contourcarpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;carpet&quot;,&quot;contour&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;hasLines&quot;,&quot;carpetDependent&quot;,&quot;noHover&quot;,&quot;noSortingByValue&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../contour/colorbar&quot;:1011,&quot;../contour/style&quot;:1028,&quot;./attributes&quot;:1030,&quot;./calc&quot;:1031,&quot;./defaults&quot;:1032,&quot;./plot&quot;:1034}],1034:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../carpet/map_1d_array&quot;),a=t(&quot;../carpet/makepath&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../contour/make_crossings&quot;),c=t(&quot;../contour/find_all_paths&quot;),u=t(&quot;../contour/plot&quot;),f=t(&quot;../contour/constants&quot;),h=t(&quot;../contour/convert_to_constraints&quot;),p=t(&quot;../contour/empty_pathinfo&quot;),d=t(&quot;../contour/close_boundaries&quot;),g=t(&quot;../carpet/lookup_carpetid&quot;),m=t(&quot;../carpet/axis_aligned_line&quot;);function v(t,e,r){var n=t.getPointAtLength(e),i=t.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function y(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}function x(t,e){var r=Math.abs(t[0]*e[0]+t[1]*e[1]);return Math.sqrt(1-r*r)/r}e.exports=function(t,e,r,b){var _=e.xaxis,w=e.yaxis;s.makeTraceGroups(b,r,&quot;contour&quot;).each((function(r){var b=n.select(this),T=r[0],k=T.trace,M=k._carpetTrace=g(t,k),A=t.calcdata[M.index][0];if(M.visible&amp;&amp;&quot;legendonly&quot;!==M.visible){var S=T.a,E=T.b,C=k.contours,L=p(C,e,T),I=&quot;constraint&quot;===C.type,P=C._operation,z=I?&quot;=&quot;===P?&quot;lines&quot;:&quot;fill&quot;:C.coloring,O=[[S[0],E[E.length-1]],[S[S.length-1],E[E.length-1]],[S[S.length-1],E[0]],[S[0],E[0]]];l(L);var D=1e-8*(S[S.length-1]-S[0]),R=1e-8*(E[E.length-1]-E[0]);c(L,D,R);var F,B,N,j,U=L;&quot;constraint&quot;===C.type&amp;&amp;(U=h(L,P)),function(t,e){var r,n,i,a,o,s,l,c,u;for(r=0;r&lt;t.length;r++){for(a=t[r],o=a.pedgepaths=[],s=a.ppaths=[],n=0;n&lt;a.edgepaths.length;n++){for(u=a.edgepaths[n],l=[],i=0;i&lt;u.length;i++)l[i]=e(u[i]);o.push(l)}for(n=0;n&lt;a.paths.length;n++){for(u=a.paths[n],c=[],i=0;i&lt;u.length;i++)c[i]=e(u[i]);s.push(c)}}}(L,H);var V=[];for(j=A.clipsegments.length-1;j&gt;=0;j--)F=A.clipsegments[j],B=i([],F.x,_.c2p),N=i([],F.y,w.c2p),B.reverse(),N.reverse(),V.push(a(B,N,F.bicubic));var q=&quot;M&quot;+V.join(&quot;L&quot;)+&quot;Z&quot;;!function(t,e,r,n,o,l){var c,u,f,h,p=s.ensureSingle(t,&quot;g&quot;,&quot;contourbg&quot;).selectAll(&quot;path&quot;).data(&quot;fill&quot;!==l||o?[]:[0]);p.enter().append(&quot;path&quot;),p.exit().remove();var d=[];for(h=0;h&lt;e.length;h++)c=e[h],u=i([],c.x,r.c2p),f=i([],c.y,n.c2p),d.push(a(u,f,c.bicubic));p.attr(&quot;d&quot;,&quot;M&quot;+d.join(&quot;L&quot;)+&quot;Z&quot;).style(&quot;stroke&quot;,&quot;none&quot;)}(b,A.clipsegments,_,w,I,z),function(t,e,r,i,a,l,c,u,f,h,p){var g=&quot;fill&quot;===h;g&amp;&amp;d(a,t.contours);var v=s.ensureSingle(e,&quot;g&quot;,&quot;contourfill&quot;).selectAll(&quot;path&quot;).data(g?a:[]);v.enter().append(&quot;path&quot;),v.exit().remove(),v.each((function(t){var e=(t.prefixBoundary?p:&quot;&quot;)+function(t,e,r,n,i,a,l,c){var u,f,h,p,d,g,v,y=&quot;&quot;,x=e.edgepaths.map((function(t,e){return e})),b=!0,_=1e-4*Math.abs(r[0][0]-r[2][0]),w=1e-4*Math.abs(r[0][1]-r[2][1]);function T(t){return Math.abs(t[1]-r[0][1])&lt;w}function k(t){return Math.abs(t[1]-r[2][1])&lt;w}function M(t){return Math.abs(t[0]-r[0][0])&lt;_}function A(t){return Math.abs(t[0]-r[2][0])&lt;_}function S(t,e){var r,n,o,s,u=&quot;&quot;;for(T(t)&amp;&amp;!A(t)||k(t)&amp;&amp;!M(t)?(s=i.aaxis,o=m(i,a,[t[0],e[0]],.5*(t[1]+e[1]))):(s=i.baxis,o=m(i,a,.5*(t[0]+e[0]),[t[1],e[1]])),r=1;r&lt;o.length;r++)for(u+=s.smoothing?&quot;C&quot;:&quot;L&quot;,n=0;n&lt;o[r].length;n++){var f=o[r][n];u+=[l.c2p(f[0]),c.c2p(f[1])]+&quot; &quot;}return u}u=0,f=null;for(;x.length;){var E=e.edgepaths[u][0];for(f&amp;&amp;(y+=S(f,E)),v=o.smoothopen(e.edgepaths[u].map(n),e.smoothing),y+=b?v:v.replace(/^M/,&quot;L&quot;),x.splice(x.indexOf(u),1),f=e.edgepaths[u][e.edgepaths[u].length-1],d=-1,p=0;p&lt;4;p++){if(!f){s.log(&quot;Missing end?&quot;,u,e);break}for(T(f)&amp;&amp;!A(f)?h=r[1]:M(f)?h=r[0]:k(f)?h=r[3]:A(f)&amp;&amp;(h=r[2]),g=0;g&lt;e.edgepaths.length;g++){var C=e.edgepaths[g][0];Math.abs(f[0]-h[0])&lt;_?Math.abs(f[0]-C[0])&lt;_&amp;&amp;(C[1]-f[1])*(h[1]-C[1])&gt;=0&amp;&amp;(h=C,d=g):Math.abs(f[1]-h[1])&lt;w?Math.abs(f[1]-C[1])&lt;w&amp;&amp;(C[0]-f[0])*(h[0]-C[0])&gt;=0&amp;&amp;(h=C,d=g):s.log(&quot;endpt to newendpt is not vert. or horz.&quot;,f,h,C)}if(d&gt;=0)break;y+=S(f,h),f=h}if(d===e.edgepaths.length){s.log(&quot;unclosed perimeter path&quot;);break}u=d,(b=-1===x.indexOf(u))&amp;&amp;(u=x[0],y+=S(f,h)+&quot;Z&quot;,f=null)}for(u=0;u&lt;e.paths.length;u++)y+=o.smoothclosed(e.paths[u].map(n),e.smoothing);return y}(0,t,l,c,u,f,r,i);e?n.select(this).attr(&quot;d&quot;,e).style(&quot;stroke&quot;,&quot;none&quot;):n.select(this).remove()}))}(k,b,_,w,U,O,H,M,A,z,q),function(t,e,r,i,a,l,c){var h=s.ensureSingle(t,&quot;g&quot;,&quot;contourlines&quot;),p=!1!==a.showlines,d=a.showlabels,g=p&amp;&amp;d,m=u.createLines(h,p||d,e),b=u.createLineClip(h,g,r,i.trace.uid),_=t.selectAll(&quot;g.contourlabels&quot;).data(d?[0]:[]);if(_.exit().remove(),_.enter().append(&quot;g&quot;).classed(&quot;contourlabels&quot;,!0),d){var w=l.xaxis,T=l.yaxis,k=w._length,M=T._length,A=[[[0,0],[k,0],[k,M],[0,M]]],S=[];s.clearLocationCache();var E=u.labelFormatter(r,i),C=o.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).call(o.font,a.labelfont),L={left:0,right:k,center:k/2,top:0,bottom:M,middle:M/2},I=Math.sqrt(k*k+M*M),P=f.LABELDISTANCE*I/Math.max(1,e.length/f.LABELINCREASE);m.each((function(t){var e=u.calcTextOpts(t.level,E,C,r);n.select(this).selectAll(&quot;path&quot;).each((function(r){var n=s.getVisibleSegment(this,L,e.height/2);if(n&amp;&amp;(function(t,e,r,n,i,a){for(var o,s=0;s&lt;r.pedgepaths.length;s++)e===r.pedgepaths[s]&amp;&amp;(o=r.edgepaths[s]);if(!o)return;var l=i.a[0],c=i.a[i.a.length-1],u=i.b[0],f=i.b[i.b.length-1];function h(t,e){var r,n=0;return(Math.abs(t[0]-l)&lt;.1||Math.abs(t[0]-c)&lt;.1)&amp;&amp;(r=y(i.dxydb_rough(t[0],t[1],.1)),n=Math.max(n,a*x(e,r)/2)),(Math.abs(t[1]-u)&lt;.1||Math.abs(t[1]-f)&lt;.1)&amp;&amp;(r=y(i.dxyda_rough(t[0],t[1],.1)),n=Math.max(n,a*x(e,r)/2)),n}var p=v(t,0,1),d=v(t,n.total,n.total-1),g=h(o[0],p),m=n.total-h(o[o.length-1],d);n.min&lt;g&amp;&amp;(n.min=g);n.max&gt;m&amp;&amp;(n.max=m);n.len=n.max-n.min}(this,r,t,n,c,e.height),!(n.len&lt;(e.width+e.height)*f.LABELMIN)))for(var i=Math.min(Math.ceil(n.len/P),f.LABELMAX),a=0;a&lt;i;a++){var o=u.findBestTextLocation(this,n,e,S,L);if(!o)break;u.addLabelData(o,e,S,A)}}))})),C.remove(),u.drawLabels(_,S,r,b,g?A:null)}d&amp;&amp;!p&amp;&amp;m.remove()}(b,L,t,T,C,e,M),o.setClipUrl(b,M._clipPathId,t)}function H(t){var e=M.ab2xy(t[0],t[1],!0);return[_.c2p(e[0]),w.c2p(e[1])]}}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../carpet/axis_aligned_line&quot;:965,&quot;../carpet/lookup_carpetid&quot;:981,&quot;../carpet/makepath&quot;:982,&quot;../carpet/map_1d_array&quot;:983,&quot;../contour/close_boundaries&quot;:1010,&quot;../contour/constants&quot;:1012,&quot;../contour/convert_to_constraints&quot;:1016,&quot;../contour/empty_pathinfo&quot;:1018,&quot;../contour/find_all_paths&quot;:1020,&quot;../contour/make_crossings&quot;:1025,&quot;../contour/plot&quot;:1026,d3:169}],1035:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../scattermapbox/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({lon:o.lon,lat:o.lat,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},radius:{valType:&quot;number&quot;,editType:&quot;plot&quot;,arrayOk:!0,min:1,dflt:30},below:{valType:&quot;string&quot;,editType:&quot;plot&quot;},text:o.text,hovertext:o.hovertext,hoverinfo:s({},a.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:i(),showlegend:s({},a.showlegend,{dflt:!1})},n(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scattermapbox/attributes&quot;:1252}],1036:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray,a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../components/colorscale/calc&quot;),s=t(&quot;../../lib&quot;)._;e.exports=function(t,e){for(var r=e._length,l=new Array(r),c=e.z,u=i(c)&amp;&amp;c.length,f=0;f&lt;r;f++){var h=l[f]={},p=e.lon[f],d=e.lat[f];if(h.lonlat=n(p)&amp;&amp;n(d)?[+p,+d]:[a,a],u){var g=c[f];h.z=n(g)?g:a}}return o(t,e,{vals:u?c:[0,1],containerStr:&quot;&quot;,cLetter:&quot;z&quot;}),r&amp;&amp;(l[0].t={labels:{lat:s(t,&quot;lat:&quot;)+&quot; &quot;,lon:s(t,&quot;lon:&quot;)+&quot; &quot;}}),l}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],1037:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../components/colorscale&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=t(&quot;../../lib/geojson_utils&quot;).makeBlank;e.exports=function(t){var e=t[0].trace,r=!0===e.visible&amp;&amp;0!==e._length,c=e._opts={heatmap:{layout:{visibility:&quot;none&quot;},paint:{}},geojson:l()};if(!r)return c;var u,f=[],h=e.z,p=e.radius,d=i.isArrayOrTypedArray(h)&amp;&amp;h.length,g=i.isArrayOrTypedArray(p);for(u=0;u&lt;t.length;u++){var m=t[u],v=m.lonlat;if(v[0]!==s){var y={};if(d){var x=m.z;y.z=x!==s?x:0}g&amp;&amp;(y.r=n(p[u])&amp;&amp;p[u]&gt;0?+p[u]:0),f.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:v},properties:y})}}var b=o.extractOpts(e),_=b.reversescale?o.flipScale(b.colorscale):b.colorscale,w=_[0][1],T=[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;heatmap-density&quot;],0,a.opacity(w)&lt;1?w:a.addOpacity(w,0)];for(u=1;u&lt;_.length;u++)T.push(_[u][0],_[u][1]);var k=[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;get&quot;,&quot;z&quot;],b.min,0,b.max,1];return i.extendFlat(c.heatmap.paint,{&quot;heatmap-weight&quot;:d?k:1/(b.max-b.min),&quot;heatmap-color&quot;:T,&quot;heatmap-radius&quot;:g?{type:&quot;identity&quot;,property:&quot;r&quot;}:e.radius,&quot;heatmap-opacity&quot;:e.opacity}),c.geojson={type:&quot;FeatureCollection&quot;,features:f},c.heatmap.layout.visibility=&quot;visible&quot;,c}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale&quot;:655,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/geojson_utils&quot;:772,&quot;fast-isnumeric&quot;:241}],1038:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;lon&quot;)||[],c=s(&quot;lat&quot;)||[],u=Math.min(l.length,c.length);u?(e._length=u,s(&quot;z&quot;),s(&quot;radius&quot;),s(&quot;below&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:1035}],1039:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t.z=e.z,t}},{}],1040:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../scattermapbox/hover&quot;);e.exports=function(t,e,r){var o=a(t,e,r);if(o){var s=o[0],l=s.cd,c=l[0].trace,u=l[s.index];if(delete s.color,&quot;z&quot;in u){var f=s.subplot.mockAxis;s.z=u.z,s.zLabel=i.tickText(f,f.c2l(u.z),&quot;hover&quot;).text}return s.extraText=function(t,e,r){if(t.hovertemplate)return;var i=(e.hi||t.hoverinfo).split(&quot;+&quot;),a=-1!==i.indexOf(&quot;all&quot;),o=-1!==i.indexOf(&quot;lon&quot;),s=-1!==i.indexOf(&quot;lat&quot;),l=e.lonlat,c=[];function u(t){return t+&quot;\xb0&quot;}a||o&amp;&amp;s?c.push(&quot;(&quot;+u(l[0])+&quot;, &quot;+u(l[1])+&quot;)&quot;):o?c.push(r.lon+u(l[0])):s&amp;&amp;c.push(r.lat+u(l[1]));(a||-1!==i.indexOf(&quot;text&quot;))&amp;&amp;n.fillText(e,t,c);return c.join(&quot;&lt;br&gt;&quot;)}(c,u,l[0].t.labels),[s]}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scattermapbox/hover&quot;:1257}],1041:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),formatLabels:t(&quot;../scattermapbox/format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),getBelow:function(t,e){for(var r=e.getMapLayers(),n=0;n&lt;r.length;n++){var i=r[n],a=i.id;if(&quot;symbol&quot;===i.type&amp;&amp;&quot;string&quot;==typeof a&amp;&amp;-1===a.indexOf(&quot;plotly-&quot;))return a}},moduleType:&quot;trace&quot;,name:&quot;densitymapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;showLegend&quot;],meta:{hr_name:&quot;density_mapbox&quot;}}},{&quot;../../plots/mapbox&quot;:885,&quot;../heatmap/colorbar&quot;:1068,&quot;../scattermapbox/format_labels&quot;:1256,&quot;./attributes&quot;:1035,&quot;./calc&quot;:1036,&quot;./defaults&quot;:1038,&quot;./event_data&quot;:1039,&quot;./hover&quot;:1040,&quot;./plot&quot;:1042}],1042:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;),i=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix;function a(t,e){this.type=&quot;densitymapbox&quot;,this.subplot=t,this.uid=e,this.sourceId=&quot;source-&quot;+e,this.layerList=[[&quot;heatmap&quot;,i+e+&quot;-heatmap&quot;]],this.below=null}var o=a.prototype;o.update=function(t){var e=this.subplot,r=this.layerList,i=n(t),a=e.belowLookup[&quot;trace-&quot;+this.uid];e.map.getSource(this.sourceId).setData(i.geojson),a!==this.below&amp;&amp;(this._removeLayers(),this._addLayers(i,a),this.below=a);for(var o=0;o&lt;r.length;o++){var s=r[o],l=s[0],c=s[1],u=i[l];e.setOptions(c,&quot;setLayoutProperty&quot;,u.layout),&quot;visible&quot;===u.layout.visibility&amp;&amp;e.setOptions(c,&quot;setPaintProperty&quot;,u.paint)}},o._addLayers=function(t,e){for(var r=this.subplot,n=this.layerList,i=this.sourceId,a=0;a&lt;n.length;a++){var o=n[a],s=o[0],l=t[s];r.addLayer({type:s,id:o[1],source:i,layout:l.layout,paint:l.paint},e)}},o._removeLayers=function(){for(var t=this.subplot.map,e=this.layerList,r=e.length-1;r&gt;=0;r--)t.removeLayer(e[r][1])},o.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new a(t,r.uid),o=i.sourceId,s=n(e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid];return t.map.addSource(o,{type:&quot;geojson&quot;,data:s.geojson}),i._addLayers(s,l),i}},{&quot;../../plots/mapbox/constants&quot;:883,&quot;./convert&quot;:1037}],1043:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;);var i=e.marker;if(i){n.mergeArray(i.opacity,t,&quot;mo&quot;),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;a&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;))}}},{&quot;../../lib&quot;:778}],1044:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../scatter/attributes&quot;).line,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;./constants&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../components/color&quot;);e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,hovertext:n.hovertext,hovertemplate:o({},{keys:l.eventDataKeys}),hoverinfo:c({},a.hoverinfo,{flags:[&quot;name&quot;,&quot;x&quot;,&quot;y&quot;,&quot;text&quot;,&quot;percent initial&quot;,&quot;percent previous&quot;,&quot;percent total&quot;]}),textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;percent initial&quot;,&quot;percent previous&quot;,&quot;percent total&quot;,&quot;value&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;,arrayOk:!1},texttemplate:s({editType:&quot;plot&quot;},{keys:l.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),text:n.text,textposition:c({},n.textposition,{dflt:&quot;auto&quot;}),insidetextanchor:c({},n.insidetextanchor,{dflt:&quot;middle&quot;}),textangle:c({},n.textangle,{dflt:0}),textfont:n.textfont,insidetextfont:n.insidetextfont,outsidetextfont:n.outsidetextfont,constraintext:n.constraintext,cliponaxis:n.cliponaxis,orientation:c({},n.orientation,{}),offset:c({},n.offset,{arrayOk:!1}),width:c({},n.width,{arrayOk:!1}),marker:n.marker,connector:{fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},line:{color:c({},i.color,{dflt:u.defaultLine}),width:c({},i.width,{dflt:0,editType:&quot;plot&quot;}),dash:i.dash,editType:&quot;style&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup}},{&quot;../../components/color&quot;:643,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:1046}],1045:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;./arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t){return t===s?0:t}e.exports=function(t,e){var r,c,u,f,h,p,d=n.getFromId(t,e.xaxis||&quot;x&quot;),g=n.getFromId(t,e.yaxis||&quot;y&quot;);&quot;h&quot;===e.orientation?(r=d.makeCalcdata(e,&quot;x&quot;),u=g.makeCalcdata(e,&quot;y&quot;),c=i(e,g,&quot;y&quot;,u),p=!!e.yperiodalignment):(r=g.makeCalcdata(e,&quot;y&quot;),u=d.makeCalcdata(e,&quot;x&quot;),c=i(e,d,&quot;x&quot;,u),p=!!e.xperiodalignment);var m,v=Math.min(c.length,r.length),y=new Array(v);for(e._base=[],f=0;f&lt;v;f++){r[f]&lt;0&amp;&amp;(r[f]=s);var x=!1;r[f]!==s&amp;&amp;f+1&lt;v&amp;&amp;r[f+1]!==s&amp;&amp;(x=!0),h=y[f]={p:c[f],s:r[f],cNext:x},e._base[f]=-.5*h.s,p&amp;&amp;(y[f].orig_p=u[f]),e.ids&amp;&amp;(h.id=String(e.ids[f])),0===f&amp;&amp;(y[0].vTotal=0),y[0].vTotal+=l(h.s),h.begR=l(h.s)/l(y[0].s)}for(f=0;f&lt;v;f++)(h=y[f]).s!==s&amp;&amp;(h.sumR=h.s/y[0].vTotal,h.difR=void 0!==m?h.s/m:1,m=h.s);return a(y,e),o(y,e),y}},{&quot;../../constants/numerical&quot;:753,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc_selection&quot;:1189,&quot;./arrays_to_calcdata&quot;:1043}],1046:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;percentInitial&quot;,&quot;percentPrevious&quot;,&quot;percentTotal&quot;]}},{}],1047:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions;e.exports=function(t,e){var r,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,c=e.yaxis,u=[],f=[],h=[];for(i=0;i&lt;o.length;i++){var p=o[i],d=&quot;h&quot;===p.orientation;!0===p.visible&amp;&amp;p.xaxis===l._id&amp;&amp;p.yaxis===c._id&amp;&amp;&quot;funnel&quot;===p.type&amp;&amp;(r=s[i],d?h.push(r):f.push(r),u.push(r))}var g={mode:a.funnelmode,norm:a.funnelnorm,gap:a.funnelgap,groupgap:a.funnelgroupgap};for(n(t,l,c,f,g),n(t,c,l,h,g),i=0;i&lt;u.length;i++){r=u[i];for(var m=0;m&lt;r.length;m++)m+1&lt;r.length&amp;&amp;(r[m].nextP0=r[m+1].p0,r[m].nextS0=r[m+1].s0,r[m].nextP1=r[m+1].p1,r[m].nextS1=r[m+1].s1)}}},{&quot;../bar/cross_trace_calc&quot;:924}],1048:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,a=t(&quot;../bar/defaults&quot;).handleText,o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../../components/color&quot;);e.exports={supplyDefaults:function(t,e,r,i){function u(r,i){return n.coerce(t,e,l,r,i)}if(o(t,e,i,u)){s(t,e,i,u),u(&quot;orientation&quot;,e.y&amp;&amp;!e.x?&quot;v&quot;:&quot;h&quot;),u(&quot;offset&quot;),u(&quot;width&quot;);var f=u(&quot;text&quot;);u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;);var h=u(&quot;textposition&quot;);a(t,e,i,u,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),&quot;none&quot;===e.textposition||e.texttemplate||u(&quot;textinfo&quot;,Array.isArray(f)?&quot;text+value&quot;:&quot;value&quot;);var p=u(&quot;marker.color&quot;,r);if(u(&quot;marker.line.color&quot;,c.defaultLine),u(&quot;marker.line.width&quot;),u(&quot;connector.visible&quot;))u(&quot;connector.fillcolor&quot;,function(t){var e=n.isArrayOrTypedArray(t)?&quot;#000&quot;:t;return c.addOpacity(e,.5*c.opacity(e))}(p)),u(&quot;connector.line.width&quot;)&amp;&amp;(u(&quot;connector.line.color&quot;),u(&quot;connector.line.dash&quot;))}else e.visible=!1},crossTraceDefaults:function(t,e){var r,a;function o(t){return n.coerce(a._input,a,l,t)}if(&quot;group&quot;===e.funnelmode)for(var s=0;s&lt;t.length;s++)r=(a=t[s])._input,i(r,a,e,o)}}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/defaults&quot;:925,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:1044}],1049:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;percentInitial&quot;in e&amp;&amp;(t.percentInitial=e.percentInitial),&quot;percentPrevious&quot;in e&amp;&amp;(t.percentPrevious=e.percentPrevious),&quot;percentTotal&quot;in e&amp;&amp;(t.percentTotal=e.percentTotal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],1050:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;).opacity,i=t(&quot;../bar/hover&quot;).hoverOnBars,a=t(&quot;../../lib&quot;).formatPercent;e.exports=function(t,e,r,o){var s=i(t,e,r,o);if(s){var l=s.cd,c=l[0].trace,u=&quot;h&quot;===c.orientation,f=l[s.index];s[(u?&quot;x&quot;:&quot;y&quot;)+&quot;LabelVal&quot;]=f.s,s.percentInitial=f.begR,s.percentInitialLabel=a(f.begR,1),s.percentPrevious=f.difR,s.percentPreviousLabel=a(f.difR,1),s.percentTotal=f.sumR,s.percentTotalLabel=a(f.sumR,1);var h=f.hi||c.hoverinfo,p=[];if(h&amp;&amp;&quot;none&quot;!==h&amp;&amp;&quot;skip&quot;!==h){var d=&quot;all&quot;===h,g=h.split(&quot;+&quot;),m=function(t){return d||-1!==g.indexOf(t)};m(&quot;percent initial&quot;)&amp;&amp;p.push(s.percentInitialLabel+&quot; of initial&quot;),m(&quot;percent previous&quot;)&amp;&amp;p.push(s.percentPreviousLabel+&quot; of previous&quot;),m(&quot;percent total&quot;)&amp;&amp;p.push(s.percentTotalLabel+&quot; of total&quot;)}return s.extraText=p.join(&quot;&lt;br&gt;&quot;),s.color=function(t,e){var r=t.marker,i=e.mc||r.color,a=e.mlc||r.line.color,o=e.mlw||r.line.width;if(n(i))return i;if(n(a)&amp;&amp;o)return a}(c,f),[s]}}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/hover&quot;:928}],1051:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;../bar/select&quot;),moduleType:&quot;trace&quot;,name:&quot;funnel&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;oriented&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../bar/select&quot;:933,&quot;./attributes&quot;:1044,&quot;./calc&quot;:1045,&quot;./cross_trace_calc&quot;:1047,&quot;./defaults&quot;:1048,&quot;./event_data&quot;:1049,&quot;./hover&quot;:1050,&quot;./layout_attributes&quot;:1052,&quot;./layout_defaults&quot;:1053,&quot;./plot&quot;:1054,&quot;./style&quot;:1055}],1052:[function(t,e,r){&quot;use strict&quot;;e.exports={funnelmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;stack&quot;,editType:&quot;calc&quot;},funnelgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},funnelgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],1053:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s&lt;r.length;s++){var l=r[s];if(l.visible&amp;&amp;&quot;funnel&quot;===l.type){a=!0;break}}a&amp;&amp;(o(&quot;funnelmode&quot;),o(&quot;funnelgap&quot;,.2),o(&quot;funnelgroupgap&quot;))}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1052}],1054:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../constants/numerical&quot;).BADNUM,s=t(&quot;../bar/plot&quot;),l=t(&quot;../bar/uniform_text&quot;).clearMinTextSize;function c(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),i[3]=o.c2p(t.nextS1,!0),a[3]=s.c2p(t.nextP1,!0),n?[i,a]:[a,i]}e.exports=function(t,e,r,u){var f=t._fullLayout;l(&quot;funnel&quot;,f),function(t,e,r,s){var l=e.xaxis,u=e.yaxis;i.makeTraceGroups(s,r,&quot;trace bars&quot;).each((function(r){var s=n.select(this),f=r[0].trace,h=i.ensureSingle(s,&quot;g&quot;,&quot;regions&quot;);if(f.connector&amp;&amp;f.connector.visible){var p=&quot;h&quot;===f.orientation,d=h.selectAll(&quot;g.region&quot;).data(i.identity);d.enter().append(&quot;g&quot;).classed(&quot;region&quot;,!0),d.exit().remove();var g=d.size();d.each((function(r,s){if(s===g-1||r.cNext){var f=c(r,l,u,p),h=f[0],d=f[1],m=&quot;&quot;;h[0]!==o&amp;&amp;d[0]!==o&amp;&amp;h[1]!==o&amp;&amp;d[1]!==o&amp;&amp;h[2]!==o&amp;&amp;d[2]!==o&amp;&amp;h[3]!==o&amp;&amp;d[3]!==o&amp;&amp;(m+=p?&quot;M&quot;+h[0]+&quot;,&quot;+d[1]+&quot;L&quot;+h[2]+&quot;,&quot;+d[2]+&quot;H&quot;+h[3]+&quot;L&quot;+h[1]+&quot;,&quot;+d[1]+&quot;Z&quot;:&quot;M&quot;+h[1]+&quot;,&quot;+d[1]+&quot;L&quot;+h[2]+&quot;,&quot;+d[3]+&quot;V&quot;+d[2]+&quot;L&quot;+h[1]+&quot;,&quot;+d[0]+&quot;Z&quot;),&quot;&quot;===m&amp;&amp;(m=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,m).call(a.setClipUrl,e.layerClipId,t)}}))}else h.remove()}))}(t,e,r,u),function(t,e,r,o){var s=e.xaxis,l=e.yaxis;i.makeTraceGroups(o,r,&quot;trace bars&quot;).each((function(r){var o=n.select(this),u=r[0].trace,f=i.ensureSingle(o,&quot;g&quot;,&quot;lines&quot;);if(u.connector&amp;&amp;u.connector.visible&amp;&amp;u.connector.line.width){var h=&quot;h&quot;===u.orientation,p=f.selectAll(&quot;g.line&quot;).data(i.identity);p.enter().append(&quot;g&quot;).classed(&quot;line&quot;,!0),p.exit().remove();var d=p.size();p.each((function(r,o){if(o===d-1||r.cNext){var u=c(r,s,l,h),f=u[0],p=u[1],g=&quot;&quot;;void 0!==f[3]&amp;&amp;void 0!==p[3]&amp;&amp;(h?(g+=&quot;M&quot;+f[0]+&quot;,&quot;+p[1]+&quot;L&quot;+f[2]+&quot;,&quot;+p[2],g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[1]+&quot;L&quot;+f[3]+&quot;,&quot;+p[2]):(g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[1]+&quot;L&quot;+f[2]+&quot;,&quot;+p[3],g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[0]+&quot;L&quot;+f[2]+&quot;,&quot;+p[2])),&quot;&quot;===g&amp;&amp;(g=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,g).call(a.setClipUrl,e.layerClipId,t)}}))}else f.remove()}))}(t,e,r,u),s.plot(t,e,r,u,{mode:f.funnelmode,norm:f.funnelmode,gap:f.funnelgap,groupgap:f.funnelgroupgap})}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../bar/plot&quot;:932,&quot;../bar/uniform_text&quot;:937,d3:169}],1055:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../constants/interactions&quot;).DESELECTDIM,s=t(&quot;../bar/style&quot;),l=t(&quot;../bar/uniform_text&quot;).resizeText,c=s.styleTextPoints;e.exports={style:function(t,e,r){var s=r||n.select(t).selectAll(&quot;g.funnellayer&quot;).selectAll(&quot;g.trace&quot;);l(t,s,&quot;funnel&quot;),s.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),s.each((function(e){var r=n.select(this),s=e[0].trace;r.selectAll(&quot;.point &gt; path&quot;).each((function(t){if(!t.isBlank){var e=s.marker;n.select(this).call(a.fill,t.mc||e.color).call(a.stroke,t.mlc||e.line.color).call(i.dashLine,e.line.dash,t.mlw||e.line.width).style(&quot;opacity&quot;,s.selectedpoints&amp;&amp;!t.selected?o:1)}})),c(r,s,t),r.selectAll(&quot;.regions&quot;).each((function(){n.select(this).selectAll(&quot;path&quot;).style(&quot;stroke-width&quot;,0).call(a.fill,s.connector.fillcolor)})),r.selectAll(&quot;.lines&quot;).each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll(&quot;path&quot;),t.width,t.color,t.dash)}))}))}}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../constants/interactions&quot;:752,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,d3:169}],1056:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/domain&quot;).attributes,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:n.labels,label0:n.label0,dlabel:n.dlabel,values:n.values,marker:{colors:n.marker.colors,line:{color:l({},n.marker.line.color,{dflt:null}),width:l({},n.marker.line.width,{dflt:1}),editType:&quot;calc&quot;},editType:&quot;calc&quot;},text:n.text,hovertext:n.hovertext,scalegroup:l({},n.scalegroup,{}),textinfo:l({},n.textinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;]}),texttemplate:s({editType:&quot;plot&quot;},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;text&quot;,&quot;percent&quot;]}),hoverinfo:l({},i.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;name&quot;]}),hovertemplate:o({},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;text&quot;,&quot;percent&quot;]}),textposition:l({},n.textposition,{values:[&quot;inside&quot;,&quot;none&quot;],dflt:&quot;inside&quot;}),textfont:n.textfont,insidetextfont:n.insidetextfont,title:{text:n.title.text,font:n.title.font,position:l({},n.title.position,{values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;],dflt:&quot;top center&quot;}),editType:&quot;plot&quot;},domain:a({name:&quot;funnelarea&quot;,trace:!0,editType:&quot;calc&quot;}),aspectratio:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},baseratio:{valType:&quot;number&quot;,min:0,max:1,dflt:.333,editType:&quot;plot&quot;}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/template_attributes&quot;:906,&quot;../pie/attributes&quot;:1161}],1057:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;funnelarea&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1058:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/calc&quot;);e.exports={calc:function(t,e){return n.calc(t,e)},crossTraceCalc:function(t){n.crossTraceCalc(t,{type:&quot;funnelarea&quot;})}}},{&quot;../pie/calc&quot;:1163}],1059:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../bar/defaults&quot;).handleText,s=t(&quot;../pie/defaults&quot;).handleLabelsAndValues;e.exports=function(t,e,r,l){function c(r,a){return n.coerce(t,e,i,r,a)}var u=c(&quot;labels&quot;),f=c(&quot;values&quot;),h=s(u,f),p=h.len;if(e._hasLabels=h.hasLabels,e._hasValues=h.hasValues,!e._hasLabels&amp;&amp;e._hasValues&amp;&amp;(c(&quot;label0&quot;),c(&quot;dlabel&quot;)),p){e._length=p,c(&quot;marker.line.width&quot;)&amp;&amp;c(&quot;marker.line.color&quot;,l.paper_bgcolor),c(&quot;marker.colors&quot;),c(&quot;scalegroup&quot;);var d,g=c(&quot;text&quot;),m=c(&quot;texttemplate&quot;);if(m||(d=c(&quot;textinfo&quot;,Array.isArray(g)?&quot;text+percent&quot;:&quot;percent&quot;)),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),m||d&amp;&amp;&quot;none&quot;!==d){var v=c(&quot;textposition&quot;);o(t,e,l,c,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}a(e,l,c),c(&quot;title.text&quot;)&amp;&amp;(c(&quot;title.position&quot;),n.coerceFont(c,&quot;title.font&quot;,l.font)),c(&quot;aspectratio&quot;),c(&quot;baseratio&quot;)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/defaults&quot;:925,&quot;../pie/defaults&quot;:1164,&quot;./attributes&quot;:1056}],1060:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;funnelarea&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;pie-like&quot;,&quot;funnelarea&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),styleOne:t(&quot;../pie/style_one&quot;),meta:{}}},{&quot;../pie/style_one&quot;:1172,&quot;./attributes&quot;:1056,&quot;./base_plot&quot;:1057,&quot;./calc&quot;:1058,&quot;./defaults&quot;:1059,&quot;./layout_attributes&quot;:1061,&quot;./layout_defaults&quot;:1062,&quot;./plot&quot;:1063,&quot;./style&quot;:1064}],1061:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/layout_attributes&quot;).hiddenlabels;e.exports={hiddenlabels:n,funnelareacolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendfunnelareacolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{&quot;../pie/layout_attributes&quot;:1168}],1062:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;hiddenlabels&quot;),r(&quot;funnelareacolorway&quot;,e.colorway),r(&quot;extendfunnelareacolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1061}],1063:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../lib&quot;),o=a.strScale,s=a.strTranslate,l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../bar/plot&quot;).toMoveInsideBar,u=t(&quot;../bar/uniform_text&quot;),f=u.recordMinTextSize,h=u.clearMinTextSize,p=t(&quot;../pie/helpers&quot;),d=t(&quot;../pie/plot&quot;),g=d.attachFxHandlers,m=d.determineInsideTextFont,v=d.layoutAreas,y=d.prerenderTitles,x=d.positionTitleOutside,b=d.formatSliceLabel;function _(t,e){return&quot;l&quot;+(e[0]-t[0])+&quot;,&quot;+(e[1]-t[1])}e.exports=function(t,e){var r=t._fullLayout;h(&quot;funnelarea&quot;,r),y(e,t),v(e,r._size),a.makeTraceGroups(r._funnelarealayer,e,&quot;trace&quot;).each((function(e){var u=n.select(this),h=e[0],d=h.trace;!function(t){if(!t.length)return;var e=t[0],r=e.trace,n=r.aspectratio,i=r.baseratio;i&gt;.999&amp;&amp;(i=.999);var a,o=Math.pow(i,2),s=e.vTotal,l=s,c=s*o/(1-o)/s;function u(){var t,e={x:t=Math.sqrt(c),y:-t};return[e.x,e.y]}var f,h,p=[];for(p.push(u()),f=t.length-1;f&gt;-1;f--)if(!(h=t[f]).hidden){var d=h.v/l;c+=d,p.push(u())}var g=1/0,m=-1/0;for(f=0;f&lt;p.length;f++)a=p[f],g=Math.min(g,a[1]),m=Math.max(m,a[1]);for(f=0;f&lt;p.length;f++)p[f][1]-=(m+g)/2;var v=p[p.length-1][0],y=e.r,x=(m-g)/2,b=y/v,_=y/x*n;for(e.r=_*x,f=0;f&lt;p.length;f++)p[f][0]*=b,p[f][1]*=_;var w=[-(a=p[0])[0],a[1]],T=[a[0],a[1]],k=0;for(f=t.length-1;f&gt;-1;f--)if(!(h=t[f]).hidden){var M=p[k+=1][0],A=p[k][1];h.TL=[-M,A],h.TR=[M,A],h.BL=w,h.BR=T,h.pxmid=(S=h.TR,E=h.BR,[.5*(S[0]+E[0]),.5*(S[1]+E[1])]),w=h.TL,T=h.TR}var S,E}(e),u.each((function(){var u=n.select(this).selectAll(&quot;g.slice&quot;).data(e);u.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),u.exit().remove(),u.each((function(o,s){if(o.hidden)n.select(this).selectAll(&quot;path,g&quot;).remove();else{o.pointNumber=o.i,o.curveNumber=d.index;var u=h.cx,v=h.cy,y=n.select(this),x=y.selectAll(&quot;path.surface&quot;).data([o]);x.enter().append(&quot;path&quot;).classed(&quot;surface&quot;,!0).style({&quot;pointer-events&quot;:&quot;all&quot;}),y.call(g,t,e);var w=&quot;M&quot;+(u+o.TR[0])+&quot;,&quot;+(v+o.TR[1])+_(o.TR,o.BR)+_(o.BR,o.BL)+_(o.BL,o.TL)+&quot;Z&quot;;x.attr(&quot;d&quot;,w),b(t,o,h);var T=p.castOption(d.textposition,o.pts),k=y.selectAll(&quot;g.slicetext&quot;).data(o.text&amp;&amp;&quot;none&quot;!==T?[0]:[]);k.enter().append(&quot;g&quot;).classed(&quot;slicetext&quot;,!0),k.exit().remove(),k.each((function(){var h=a.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),p=a.ensureUniformFontSize(t,m(d,o,r.font));h.text(o.text).attr({class:&quot;slicetext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(i.font,p).call(l.convertToTspans,t);var g,y,x,b=i.bBox(h.node()),_=Math.min(o.BL[1],o.BR[1])+v,w=Math.max(o.TL[1],o.TR[1])+v;y=Math.max(o.TL[0],o.BL[0])+u,x=Math.min(o.TR[0],o.BR[0])+u,(g=c(y,x,_,w,b,{isHorizontal:!0,constrained:!0,angle:0,anchor:&quot;middle&quot;})).fontSize=p.size,f(d.type,g,r),e[s].transform=g,h.attr(&quot;transform&quot;,a.getTextTransform(g))}))}}));var v=n.select(this).selectAll(&quot;g.titletext&quot;).data(d.title.text?[0]:[]);v.enter().append(&quot;g&quot;).classed(&quot;titletext&quot;,!0),v.exit().remove(),v.each((function(){var e=a.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),c=d.title.text;d._meta&amp;&amp;(c=a.templateString(c,d._meta)),e.text(c).attr({class:&quot;titletext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(i.font,d.title.font).call(l.convertToTspans,t);var u=x(h,r._size);e.attr(&quot;transform&quot;,s(u.x,u.y)+o(Math.min(1,u.scale))+s(u.tx,u.ty))}))}))}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../bar/plot&quot;:932,&quot;../bar/uniform_text&quot;:937,&quot;../pie/helpers&quot;:1166,&quot;../pie/plot&quot;:1170,d3:169}],1064:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../pie/style_one&quot;),a=t(&quot;../bar/uniform_text&quot;).resizeText;e.exports=function(t){var e=t._fullLayout._funnelarealayer.selectAll(&quot;.trace&quot;);a(t,e,&quot;funnelarea&quot;),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(i,t,e)}))}))}},{&quot;../bar/uniform_text&quot;:937,&quot;../pie/style_one&quot;:1172,d3:169}],1065:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,t(&quot;../../lib/extend&quot;).extendFlat);e.exports=s({z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},x:s({},n.x,{impliedEdits:{xtype:&quot;array&quot;}}),x0:s({},n.x0,{impliedEdits:{xtype:&quot;scaled&quot;}}),dx:s({},n.dx,{impliedEdits:{xtype:&quot;scaled&quot;}}),y:s({},n.y,{impliedEdits:{ytype:&quot;array&quot;}}),y0:s({},n.y0,{impliedEdits:{ytype:&quot;scaled&quot;}}),dy:s({},n.dy,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiod:s({},n.xperiod,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiod:s({},n.yperiod,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiod0:s({},n.xperiod0,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiod0:s({},n.yperiod0,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiodalignment:s({},n.xperiodalignment,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiodalignment:s({},n.yperiodalignment,{impliedEdits:{ytype:&quot;scaled&quot;}}),text:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},hovertext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},transpose:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},xtype:{valType:&quot;enumerated&quot;,values:[&quot;array&quot;,&quot;scaled&quot;],editType:&quot;calc+clearAxisTypes&quot;},ytype:{valType:&quot;enumerated&quot;,values:[&quot;array&quot;,&quot;scaled&quot;],editType:&quot;calc+clearAxisTypes&quot;},zsmooth:{valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,&quot;best&quot;,!1],dflt:!1,editType:&quot;calc&quot;},hoverongaps:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;none&quot;},connectgaps:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},xgap:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;plot&quot;},ygap:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;plot&quot;},zhoverformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;none&quot;},hovertemplate:a(),showlegend:s({},i.showlegend,{dflt:!1})},{transforms:void 0},o(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1066:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../histogram2d/calc&quot;),l=t(&quot;../../components/colorscale/calc&quot;),c=t(&quot;./convert_column_xyz&quot;),u=t(&quot;./clean_2d_array&quot;),f=t(&quot;./interp2d&quot;),h=t(&quot;./find_empties&quot;),p=t(&quot;./make_bound_array&quot;),d=t(&quot;../../constants/numerical&quot;).BADNUM;function g(t){for(var e=[],r=t.length,n=0;n&lt;r;n++){var i=t[n];i!==d&amp;&amp;e.push(i)}return e}e.exports=function(t,e){var r,m,v,y,x,b,_,w,T,k,M,A=a.getFromId(t,e.xaxis||&quot;x&quot;),S=a.getFromId(t,e.yaxis||&quot;y&quot;),E=n.traceIs(e,&quot;contour&quot;),C=n.traceIs(e,&quot;histogram&quot;),L=n.traceIs(e,&quot;gl2d&quot;),I=E?&quot;best&quot;:e.zsmooth;if(A._minDtick=0,S._minDtick=0,C)y=(M=s(t,e)).orig_x,r=M.x,m=M.x0,v=M.dx,w=M.orig_y,x=M.y,b=M.y0,_=M.dy,T=M.z;else{var P=e.z;i.isArray1D(P)?(c(e,A,S,&quot;x&quot;,&quot;y&quot;,[&quot;z&quot;]),r=e._x,x=e._y,P=e._z):(y=e.x?A.makeCalcdata(e,&quot;x&quot;):[],w=e.y?S.makeCalcdata(e,&quot;y&quot;):[],r=o(e,A,&quot;x&quot;,y),x=o(e,S,&quot;y&quot;,w),e._x=r,e._y=x),m=e.x0,v=e.dx,b=e.y0,_=e.dy,T=u(P,e,A,S)}function z(t){I=e._input.zsmooth=e.zsmooth=!1,i.warn('cannot use zsmooth: &quot;fast&quot;: '+t)}if((A.rangebreaks||S.rangebreaks)&amp;&amp;(T=function(t,e,r){for(var n=[],i=-1,a=0;a&lt;r.length;a++)if(e[a]!==d){i++,n[i]=[];for(var o=0;o&lt;r[a].length;o++)t[o]!==d&amp;&amp;n[i].push(r[a][o])}return n}(r,x,T),C||(r=g(r),x=g(x),e._x=r,e._y=x)),C||!E&amp;&amp;!e.connectgaps||(e._emptypoints=h(T),f(T,e._emptypoints)),&quot;fast&quot;===I)if(&quot;log&quot;===A.type||&quot;log&quot;===S.type)z(&quot;log axis found&quot;);else if(!C){if(r.length){var O=(r[r.length-1]-r[0])/(r.length-1),D=Math.abs(O/100);for(k=0;k&lt;r.length-1;k++)if(Math.abs(r[k+1]-r[k]-O)&gt;D){z(&quot;x scale is not linear&quot;);break}}if(x.length&amp;&amp;&quot;fast&quot;===I){var R=(x[x.length-1]-x[0])/(x.length-1),F=Math.abs(R/100);for(k=0;k&lt;x.length-1;k++)if(Math.abs(x[k+1]-x[k]-R)&gt;F){z(&quot;y scale is not linear&quot;);break}}}var B=i.maxRowLength(T),N=&quot;scaled&quot;===e.xtype?&quot;&quot;:r,j=p(e,N,m,v,B,A),U=&quot;scaled&quot;===e.ytype?&quot;&quot;:x,V=p(e,U,b,_,T.length,S);L||(e._extremes[A._id]=a.findExtremes(A,j),e._extremes[S._id]=a.findExtremes(S,V));var q={x:j,y:V,z:T,text:e._text||e.text,hovertext:e._hovertext||e.hovertext};if(e.xperiodalignment&amp;&amp;y&amp;&amp;(q.orig_x=y),e.yperiodalignment&amp;&amp;w&amp;&amp;(q.orig_y=w),N&amp;&amp;N.length===j.length-1&amp;&amp;(q.xCenter=N),U&amp;&amp;U.length===V.length-1&amp;&amp;(q.yCenter=U),C&amp;&amp;(q.xRanges=M.xRanges,q.yRanges=M.yRanges,q.pts=M.pts),E||l(t,e,{vals:T,cLetter:&quot;z&quot;}),E&amp;&amp;e.contours&amp;&amp;&quot;heatmap&quot;===e.contours.coloring){var H={type:&quot;contour&quot;===e.type?&quot;heatmap&quot;:&quot;histogram2d&quot;,xcalendar:e.xcalendar,ycalendar:e.ycalendar};q.xfill=p(H,N,m,v,B,A),q.yfill=p(H,U,b,_,T.length,S)}return[q]}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../histogram2d/calc&quot;:1098,&quot;./clean_2d_array&quot;:1067,&quot;./convert_column_xyz&quot;:1069,&quot;./find_empties&quot;:1071,&quot;./interp2d&quot;:1074,&quot;./make_bound_array&quot;:1075}],1067:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r,o){var s,l,c,u,f,h;function p(t){if(n(t))return+t}if(e&amp;&amp;e.transpose){for(s=0,f=0;f&lt;t.length;f++)s=Math.max(s,t[f].length);if(0===s)return!1;c=function(t){return t.length},u=function(t,e,r){return(t[r]||[])[e]}}else s=t.length,c=function(t,e){return t[e].length},u=function(t,e,r){return(t[e]||[])[r]};var d=function(t,e,r){return e===a||r===a?a:u(t,e,r)};function g(t){if(e&amp;&amp;&quot;carpet&quot;!==e.type&amp;&amp;&quot;contourcarpet&quot;!==e.type&amp;&amp;t&amp;&amp;&quot;category&quot;===t.type&amp;&amp;e[&quot;_&quot;+t._id.charAt(0)].length){var r=t._id.charAt(0),n={},o=e[&quot;_&quot;+r+&quot;CategoryMap&quot;]||e[r];for(f=0;f&lt;o.length;f++)n[o[f]]=f;return function(e){var r=n[t._categories[e]];return r+1?r:a}}return i.identity}var m=g(r),v=g(o);o&amp;&amp;&quot;category&quot;===o.type&amp;&amp;(s=o._categories.length);var y=new Array(s);for(f=0;f&lt;s;f++)for(l=r&amp;&amp;&quot;category&quot;===r.type?r._categories.length:c(t,f),y[f]=new Array(l),h=0;h&lt;l;h++)y[f][h]=p(d(t,v(f),m(h)));return y}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],1068:[function(t,e,r){&quot;use strict&quot;;e.exports={min:&quot;zmin&quot;,max:&quot;zmax&quot;}},{}],1069:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../plots/cartesian/align_period&quot;);e.exports=function(t,e,r,o,s,l){var c=t._length,u=e.makeCalcdata(t,o),f=r.makeCalcdata(t,s);u=a(t,e,o,u),f=a(t,r,s,f);var h,p,d,g,m=t.text,v=void 0!==m&amp;&amp;n.isArray1D(m),y=t.hovertext,x=void 0!==y&amp;&amp;n.isArray1D(y),b=n.distinctVals(u),_=b.vals,w=n.distinctVals(f),T=w.vals,k=[],M=T.length,A=_.length;for(h=0;h&lt;l.length;h++)k[h]=n.init2dArray(M,A);v&amp;&amp;(d=n.init2dArray(M,A)),x&amp;&amp;(g=n.init2dArray(M,A));var S=n.init2dArray(M,A);for(h=0;h&lt;c;h++)if(u[h]!==i&amp;&amp;f[h]!==i){var E=n.findBin(u[h]+b.minDiff/2,_),C=n.findBin(f[h]+w.minDiff/2,T);for(p=0;p&lt;l.length;p++){var L=t[l[p]];k[p][C][E]=L[h],S[C][E]=h}v&amp;&amp;(d[C][E]=m[h]),x&amp;&amp;(g[C][E]=y[h])}for(t[&quot;_&quot;+o]=_,t[&quot;_&quot;+s]=T,p=0;p&lt;l.length;p++)t[&quot;_&quot;+l[p]]=k[p];v&amp;&amp;(t._text=d),x&amp;&amp;(t._hovertext=g),e&amp;&amp;&quot;category&quot;===e.type&amp;&amp;(t[&quot;_&quot;+o+&quot;CategoryMap&quot;]=_.map((function(t){return e._categories[t]}))),r&amp;&amp;&quot;category&quot;===r.type&amp;&amp;(t[&quot;_&quot;+s+&quot;CategoryMap&quot;]=T.map((function(t){return r._categories[t]}))),t._after2before=S}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825}],1070:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./xyz_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./style_defaults&quot;),s=t(&quot;../../components/colorscale/defaults&quot;),l=t(&quot;./attributes&quot;);e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,l,r,i)}i(t,e,u,c)?(a(t,e,c,u),u(&quot;text&quot;),u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;),o(t,e,u,c),u(&quot;hoverongaps&quot;),u(&quot;connectgaps&quot;,n.isArray1D(e.z)&amp;&amp;!1!==e.zsmooth),s(t,e,c,u,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:1065,&quot;./style_defaults&quot;:1078,&quot;./xyz_defaults&quot;:1079}],1071:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).maxRowLength;e.exports=function(t){var e,r,i,a,o,s,l,c,u=[],f={},h=[],p=t[0],d=[],g=[0,0,0],m=n(t);for(r=0;r&lt;t.length;r++)for(e=d,d=p,p=t[r+1]||[],i=0;i&lt;m;i++)void 0===d[i]&amp;&amp;((s=(void 0!==d[i-1]?1:0)+(void 0!==d[i+1]?1:0)+(void 0!==e[i]?1:0)+(void 0!==p[i]?1:0))?(0===r&amp;&amp;s++,0===i&amp;&amp;s++,r===t.length-1&amp;&amp;s++,i===d.length-1&amp;&amp;s++,s&lt;4&amp;&amp;(f[[r,i]]=[r,i,s]),u.push([r,i,s])):h.push([r,i]));for(;h.length;){for(l={},c=!1,o=h.length-1;o&gt;=0;o--)(s=((f[[(r=(a=h[o])[0])-1,i=a[1]]]||g)[2]+(f[[r+1,i]]||g)[2]+(f[[r,i-1]]||g)[2]+(f[[r,i+1]]||g)[2])/20)&amp;&amp;(l[a]=[r,i,s],h.splice(o,1),c=!0);if(!c)throw&quot;findEmpties iterated with no new neighbors&quot;;for(a in l)f[a]=l[a],u.push(l[a])}return u.sort((function(t,e){return e[2]-t[2]}))}},{&quot;../../lib&quot;:778}],1072:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts;e.exports=function(t,e,r,s,l,c){var u,f,h,p,d=t.cd[0],g=d.trace,m=t.xa,v=t.ya,y=d.x,x=d.y,b=d.z,_=d.xCenter,w=d.yCenter,T=d.zmask,k=g.zhoverformat,M=y,A=x;if(!1!==t.index){try{h=Math.round(t.index[1]),p=Math.round(t.index[0])}catch(e){return void i.error(&quot;Error hovering on heatmap, pointNumber must be [row,col], found:&quot;,t.index)}if(h&lt;0||h&gt;=b[0].length||p&lt;0||p&gt;b.length)return}else{if(n.inbox(e-y[0],e-y[y.length-1],0)&gt;0||n.inbox(r-x[0],r-x[x.length-1],0)&gt;0)return;if(c){var S;for(M=[2*y[0]-y[1]],S=1;S&lt;y.length;S++)M.push((y[S]+y[S-1])/2);for(M.push([2*y[y.length-1]-y[y.length-2]]),A=[2*x[0]-x[1]],S=1;S&lt;x.length;S++)A.push((x[S]+x[S-1])/2);A.push([2*x[x.length-1]-x[x.length-2]])}h=Math.max(0,Math.min(M.length-2,i.findBin(e,M))),p=Math.max(0,Math.min(A.length-2,i.findBin(r,A)))}var E,C,L=m.c2p(y[h]),I=m.c2p(y[h+1]),P=v.c2p(x[p]),z=v.c2p(x[p+1]);c?(E=d.orig_x||y,C=d.orig_y||x,I=L,u=E[h],z=P,f=C[p]):(E=d.orig_x||_||y,C=d.orig_y||w||x,u=_?E[h]:(E[h]+E[h+1])/2,f=w?C[p]:(C[p]+C[p+1])/2,m&amp;&amp;&quot;category&quot;===m.type&amp;&amp;(u=y[h]),v&amp;&amp;&quot;category&quot;===v.type&amp;&amp;(f=x[p]),g.zsmooth&amp;&amp;(L=I=m.c2p(u),P=z=v.c2p(f)));var O=b[p][h];if(T&amp;&amp;!T[p][h]&amp;&amp;(O=void 0),void 0!==O||g.hoverongaps){var D;Array.isArray(d.hovertext)&amp;&amp;Array.isArray(d.hovertext[p])?D=d.hovertext[p][h]:Array.isArray(d.text)&amp;&amp;Array.isArray(d.text[p])&amp;&amp;(D=d.text[p][h]);var R=o(g),F={type:&quot;linear&quot;,range:[R.min,R.max],hoverformat:k,_separators:m._separators,_numFormat:m._numFormat},B=a.tickText(F,O,&quot;hover&quot;).text;return[i.extendFlat(t,{index:g._after2before?g._after2before[p][h]:[p,h],distance:t.maxHoverDistance,spikeDistance:t.maxSpikeDistance,x0:L,x1:I,y0:P,y1:z,xLabelVal:u,yLabelVal:f,zLabelVal:O,zLabel:B,text:D})]}}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1073:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:t(&quot;./colorbar&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;),moduleType:&quot;trace&quot;,name:&quot;heatmap&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1065,&quot;./calc&quot;:1066,&quot;./colorbar&quot;:1068,&quot;./defaults&quot;:1070,&quot;./hover&quot;:1072,&quot;./plot&quot;:1076,&quot;./style&quot;:1077}],1074:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=[[-1,0],[1,0],[0,-1],[0,1]];function a(t){return.5-.25*Math.min(1,.5*t)}function o(t,e,r){var n,a,o,s,l,c,u,f,h,p,d,g,m,v=0;for(s=0;s&lt;e.length;s++){for(a=(n=e[s])[0],o=n[1],d=t[a][o],p=0,h=0,l=0;l&lt;4;l++)(u=t[a+(c=i[l])[0]])&amp;&amp;void 0!==(f=u[o+c[1]])&amp;&amp;(0===p?g=m=f:(g=Math.min(g,f),m=Math.max(m,f)),h++,p+=f);if(0===h)throw&quot;iterateInterp2d order is wrong: no defined neighbors&quot;;t[a][o]=p/h,void 0===d?h&lt;4&amp;&amp;(v=1):(t[a][o]=(1+r)*t[a][o]-r*d,m&gt;g&amp;&amp;(v=Math.max(v,Math.abs(t[a][o]-d)/(m-g))))}return v}e.exports=function(t,e){var r,i=1;for(o(t,e),r=0;r&lt;e.length&amp;&amp;!(e[r][2]&lt;4);r++);for(e=e.slice(r),r=0;r&lt;100&amp;&amp;i&gt;.01;r++)i=o(t,e,a(i));return i&gt;.01&amp;&amp;n.log(&quot;interp2d didn't converge quickly&quot;,i),t}},{&quot;../../lib&quot;:778}],1075:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a,o,s){var l,c,u,f=[],h=n.traceIs(t,&quot;contour&quot;),p=n.traceIs(t,&quot;histogram&quot;),d=n.traceIs(t,&quot;gl2d&quot;);if(i(e)&amp;&amp;e.length&gt;1&amp;&amp;!p&amp;&amp;&quot;category&quot;!==s.type){var g=e.length;if(!(g&lt;=o))return h?e.slice(0,o):e.slice(0,o+1);if(h||d)f=e.slice(0,o);else if(1===o)f=[e[0]-.5,e[0]+.5];else{for(f=[1.5*e[0]-.5*e[1]],u=1;u&lt;g;u++)f.push(.5*(e[u-1]+e[u]));f.push(1.5*e[g-1]-.5*e[g-2])}if(g&lt;o){var m=f[f.length-1],v=m-f[f.length-2];for(u=g;u&lt;o;u++)m+=v,f.push(m)}}else{var y=t[s._id.charAt(0)+&quot;calendar&quot;];if(p)l=s.r2c(r,0,y);else if(i(e)&amp;&amp;1===e.length)l=e[0];else if(void 0===r)l=0;else{l=(&quot;log&quot;===s.type?s.d2c:s.r2c)(r,0,y)}for(c=a||1,u=h||d?0:-.5;u&lt;o;u++)f.push(l+c*u)}return f}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1076:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../components/colorscale&quot;).makeColorScaleFuncFromTrace,l=t(&quot;../../constants/xmlns_namespaces&quot;);function c(t,e){var r=e.length-2,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=e[n+1],s=o.constrain(n+(t-i)/(a-i)-.5,0,r),l=Math.round(s),c=Math.abs(s-l);return s&amp;&amp;s!==r&amp;&amp;c?{bin0:l,frac:c,bin1:Math.round(l+c/(s-l))}:{bin0:l,bin1:l,frac:0}}function u(t,e){var r=e.length-1,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=(t-i)/(e[n+1]-i)||0;return a&lt;=0?{bin0:n,bin1:n,frac:0}:a&lt;.5?{bin0:n,bin1:n+1,frac:a}:{bin0:n+1,bin1:n,frac:1-a}}function f(t,e,r){t[e]=r[0],t[e+1]=r[1],t[e+2]=r[2],t[e+3]=Math.round(255*r[3])}e.exports=function(t,e,r,h){var p=e.xaxis,d=e.yaxis;o.makeTraceGroups(h,r,&quot;hm&quot;).each((function(e){var r,h,g,m,v,y,x=n.select(this),b=e[0],_=b.trace,w=b.z,T=b.x,k=b.y,M=b.xCenter,A=b.yCenter,S=a.traceIs(_,&quot;contour&quot;),E=S?&quot;best&quot;:_.zsmooth,C=w.length,L=o.maxRowLength(w),I=!1,P=!1;for(y=0;void 0===r&amp;&amp;y&lt;T.length-1;)r=p.c2p(T[y]),y++;for(y=T.length-1;void 0===h&amp;&amp;y&gt;0;)h=p.c2p(T[y]),y--;for(h&lt;r&amp;&amp;(g=h,h=r,r=g,I=!0),y=0;void 0===m&amp;&amp;y&lt;k.length-1;)m=d.c2p(k[y]),y++;for(y=k.length-1;void 0===v&amp;&amp;y&gt;0;)v=d.c2p(k[y]),y--;if(v&lt;m&amp;&amp;(g=m,m=v,v=g,P=!0),S&amp;&amp;(M=T,A=k,T=b.xfill,k=b.yfill),&quot;fast&quot;!==E){var z=&quot;best&quot;===E?0:.5;r=Math.max(-z*p._length,r),h=Math.min((1+z)*p._length,h),m=Math.max(-z*d._length,m),v=Math.min((1+z)*d._length,v)}var O=Math.round(h-r),D=Math.round(v-m);if(O&lt;=0||D&lt;=0){x.selectAll(&quot;image&quot;).data([]).exit().remove()}else{var R,F;&quot;fast&quot;===E?(R=L,F=C):(R=O,F=D);var B=document.createElement(&quot;canvas&quot;);B.width=R,B.height=F;var N,j,U=B.getContext(&quot;2d&quot;),V=s(_,{noNumericCheck:!0,returnArray:!0});&quot;fast&quot;===E?(N=I?function(t){return L-1-t}:o.identity,j=P?function(t){return C-1-t}:o.identity):(N=function(t){return o.constrain(Math.round(p.c2p(T[t])-r),0,O)},j=function(t){return o.constrain(Math.round(d.c2p(k[t])-m),0,D)});var q,H,G,Y,W,X=j(0),Z=[X,X],J=I?0:1,K=P?0:1,Q=0,$=0,tt=0,et=0;if(E){var rt,nt=0;try{rt=new Uint8Array(O*D*4)}catch(t){rt=new Array(O*D*4)}if(&quot;best&quot;===E){var it,at,ot,st=M||T,lt=A||k,ct=new Array(st.length),ut=new Array(lt.length),ft=new Array(O),ht=M?u:c,pt=A?u:c;for(y=0;y&lt;st.length;y++)ct[y]=Math.round(p.c2p(st[y])-r);for(y=0;y&lt;lt.length;y++)ut[y]=Math.round(d.c2p(lt[y])-m);for(y=0;y&lt;O;y++)ft[y]=ht(y,ct);for(H=0;H&lt;D;H++)for(at=w[(it=pt(H,ut)).bin0],ot=w[it.bin1],y=0;y&lt;O;y++,nt+=4)f(rt,nt,W=kt(at,ot,ft[y],it))}else for(H=0;H&lt;C;H++)for(Y=w[H],Z=j(H),y=0;y&lt;O;y++)W=Tt(Y[y],1),f(rt,nt=4*(Z*O+N(y)),W);var dt=U.createImageData(O,D);try{dt.data.set(rt)}catch(t){var gt=dt.data,mt=gt.length;for(H=0;H&lt;mt;H++)gt[H]=rt[H]}U.putImageData(dt,0,0)}else{var vt=_.xgap,yt=_.ygap,xt=Math.floor(vt/2),bt=Math.floor(yt/2);for(H=0;H&lt;C;H++)if(Y=w[H],Z.reverse(),Z[K]=j(H+1),Z[0]!==Z[1]&amp;&amp;void 0!==Z[0]&amp;&amp;void 0!==Z[1])for(q=[G=N(0),G],y=0;y&lt;L;y++)q.reverse(),q[J]=N(y+1),q[0]!==q[1]&amp;&amp;void 0!==q[0]&amp;&amp;void 0!==q[1]&amp;&amp;(W=Tt(Y[y],(q[1]-q[0])*(Z[1]-Z[0])),U.fillStyle=&quot;rgba(&quot;+W.join(&quot;,&quot;)+&quot;)&quot;,U.fillRect(q[0]+xt,Z[0]+bt,q[1]-q[0]-vt,Z[1]-Z[0]-yt))}$=Math.round($/Q),tt=Math.round(tt/Q),et=Math.round(et/Q);var _t=i(&quot;rgb(&quot;+$+&quot;,&quot;+tt+&quot;,&quot;+et+&quot;)&quot;);t._hmpixcount=(t._hmpixcount||0)+Q,t._hmlumcount=(t._hmlumcount||0)+Q*_t.getLuminance();var wt=x.selectAll(&quot;image&quot;).data(e);wt.enter().append(&quot;svg:image&quot;).attr({xmlns:l.svg,preserveAspectRatio:&quot;none&quot;}),wt.attr({height:D,width:O,x:r,y:m,&quot;xlink:href&quot;:B.toDataURL(&quot;image/png&quot;)})}function Tt(t,e){if(void 0!==t){var r=V(t);return r[0]=Math.round(r[0]),r[1]=Math.round(r[1]),r[2]=Math.round(r[2]),Q+=e,$+=r[0]*e,tt+=r[1]*e,et+=r[2]*e,r}return[0,0,0,0]}function kt(t,e,r,n){var i=t[r.bin0];if(void 0===i)return Tt(void 0,1);var a,o=t[r.bin1],s=e[r.bin0],l=e[r.bin1],c=o-i||0,u=s-i||0;return a=void 0===o?void 0===l?0:void 0===s?2*(l-i):2*(2*l-s-i)/3:void 0===l?void 0===s?0:2*(2*i-o-s)/3:void 0===s?2*(2*l-o-i)/3:l+i-o-s,Tt(i+r.frac*c+n.frac*(u+r.frac*a))}}))}},{&quot;../../components/colorscale&quot;:655,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,d3:169,tinycolor2:576}],1077:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t){n.select(t).selectAll(&quot;.hm image&quot;).style(&quot;opacity&quot;,(function(t){return t.trace.opacity}))}},{d3:169}],1078:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){!1===r(&quot;zsmooth&quot;)&amp;&amp;(r(&quot;xgap&quot;),r(&quot;ygap&quot;)),r(&quot;zhoverformat&quot;)}},{}],1079:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;);function o(t,e){var r=e(t);return&quot;scaled&quot;===(r?e(t+&quot;type&quot;,&quot;array&quot;):&quot;scaled&quot;)&amp;&amp;(e(t+&quot;0&quot;),e(&quot;d&quot;+t)),r}e.exports=function(t,e,r,s,l,c){var u,f,h=r(&quot;z&quot;);if(l=l||&quot;x&quot;,c=c||&quot;y&quot;,void 0===h||!h.length)return 0;if(i.isArray1D(t.z)){u=r(l),f=r(c);var p=i.minRowLength(u),d=i.minRowLength(f);if(0===p||0===d)return 0;e._length=Math.min(p,d,h.length)}else{if(u=o(l,r),f=o(c,r),!function(t){for(var e,r=!0,a=!1,o=!1,s=0;s&lt;t.length;s++){if(e=t[s],!i.isArrayOrTypedArray(e)){r=!1;break}e.length&gt;0&amp;&amp;(a=!0);for(var l=0;l&lt;e.length;l++)if(n(e[l])){o=!0;break}}return r&amp;&amp;a&amp;&amp;o}(h))return 0;r(&quot;transpose&quot;),e._length=null}return&quot;heatmapgl&quot;===t.type||&quot;contourgl&quot;===t.type||a.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[l,c],s),!0}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;fast-isnumeric&quot;:241}],1080:[function(t,e,r){&quot;use strict&quot;;for(var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=[&quot;z&quot;,&quot;x&quot;,&quot;x0&quot;,&quot;dx&quot;,&quot;y&quot;,&quot;y0&quot;,&quot;dy&quot;,&quot;text&quot;,&quot;transpose&quot;,&quot;xtype&quot;,&quot;ytype&quot;],l={},c=0;c&lt;s.length;c++){var u=s[c];l[u]=n[u]}l.zsmooth={valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,!1],dflt:&quot;fast&quot;,editType:&quot;calc&quot;},a(l,i(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1})),e.exports=o(l,&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../heatmap/attributes&quot;:1065}],1081:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-heatmap2d&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../lib/str2rgbarray&quot;);function o(t,e){this.scene=t,this.uid=e,this.type=&quot;heatmapgl&quot;,this.name=&quot;&quot;,this.hoverinfo=&quot;all&quot;,this.xData=[],this.yData=[],this.zData=[],this.textLabels=[],this.idToIndex=[],this.bounds=[0,0,0,0],this.options={zsmooth:&quot;fast&quot;,z:[],x:[],y:[],shape:[0,0],colorLevels:[0],colorValues:[0,0,0,1]},this.heatmap=n(t.glplot,this.options),this.heatmap._trace=this}var s=o.prototype;s.handlePick=function(t){var e=this.options,r=e.shape,n=t.pointId,i=n%r[0],a=Math.floor(n/r[0]),o=n;return{trace:this,dataCoord:t.dataCoord,traceCoord:[e.x[i],e.y[a],e.z[o]],textLabel:this.textLabels[n],name:this.name,pointIndex:[a,i],hoverinfo:this.hoverinfo}},s.update=function(t,e){var r=e[0];this.index=t.index,this.name=t.name,this.hoverinfo=t.hoverinfo;var n=r.z;this.options.z=[].concat.apply([],n);var o=n[0].length,s=n.length;this.options.shape=[o,s],this.options.x=r.x,this.options.y=r.y,this.options.zsmooth=t.zsmooth;var l=function(t){for(var e=t.colorscale,r=t.zmin,n=t.zmax,i=e.length,o=new Array(i),s=new Array(4*i),l=0;l&lt;i;l++){var c=e[l],u=a(c[1]);o[l]=r+c[0]*(n-r);for(var f=0;f&lt;4;f++)s[4*l+f]=u[f]}return{colorLevels:o,colorValues:s}}(t);this.options.colorLevels=l.colorLevels,this.options.colorValues=l.colorValues,this.textLabels=[].concat.apply([],t.text),this.heatmap.update(this.options);var c,u,f=this.scene.xaxis,h=this.scene.yaxis;!1===t.zsmooth&amp;&amp;(c={ppad:r.x[1]-r.x[0]},u={ppad:r.y[1]-r.y[0]}),t._extremes[f._id]=i.findExtremes(f,r.x,c),t._extremes[h._id]=i.findExtremes(h,r.y,u)},s.dispose=function(){this.heatmap.dispose()},e.exports=function(t,e,r){var n=new o(t,e.uid);return n.update(e,r),n}},{&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/axes&quot;:828,&quot;gl-heatmap2d&quot;:271}],1082:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,l,s)?(l(&quot;text&quot;),l(&quot;zsmooth&quot;),a(t,e,s,l,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../heatmap/xyz_defaults&quot;:1079,&quot;./attributes&quot;:1080}],1083:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;../heatmap/calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;heatmapgl&quot;,basePlotModule:t(&quot;../../plots/gl2d&quot;),categories:[&quot;gl&quot;,&quot;gl2d&quot;,&quot;2dMap&quot;],meta:{}}},{&quot;../../plots/gl2d&quot;:868,&quot;../heatmap/calc&quot;:1066,&quot;../heatmap/colorbar&quot;:1068,&quot;./attributes&quot;:1080,&quot;./convert&quot;:1081,&quot;./defaults&quot;:1082}],1084:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;./bin_attributes&quot;),o=t(&quot;./constants&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},text:s({},n.text,{}),hovertext:s({},n.hovertext,{}),orientation:n.orientation,histfunc:{valType:&quot;enumerated&quot;,values:[&quot;count&quot;,&quot;sum&quot;,&quot;avg&quot;,&quot;min&quot;,&quot;max&quot;],dflt:&quot;count&quot;,editType:&quot;calc&quot;},histnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;percent&quot;,&quot;probability&quot;,&quot;density&quot;,&quot;probability density&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},cumulative:{enabled:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;increasing&quot;,&quot;decreasing&quot;],dflt:&quot;increasing&quot;,editType:&quot;calc&quot;},currentbin:{valType:&quot;enumerated&quot;,values:[&quot;include&quot;,&quot;exclude&quot;,&quot;half&quot;],dflt:&quot;include&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},nbinsx:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},xbins:a(&quot;x&quot;,!0),nbinsy:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},ybins:a(&quot;y&quot;,!0),autobinx:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},autobiny:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},bingroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertemplate:i({},{keys:o.eventDataKeys}),marker:n.marker,offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,_deprecated:{bardir:n._deprecated.bardir}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;./bin_attributes&quot;:1086,&quot;./constants&quot;:1090}],1085:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=t.length,n=0,i=0;i&lt;r;i++)e[i]?(t[i]/=e[i],n+=t[i]):t[i]=null;return n}},{}],1086:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return{start:{valType:&quot;any&quot;,editType:&quot;calc&quot;},end:{valType:&quot;any&quot;,editType:&quot;calc&quot;},size:{valType:&quot;any&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;}}},{}],1087:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports={count:function(t,e,r){return r[t]++,1},sum:function(t,e,r,i){var a=i[e];return n(a)?(a=Number(a),r[t]+=a,a):0},avg:function(t,e,r,i,a){var o=i[e];return n(o)&amp;&amp;(o=Number(o),r[t]+=o,a[t]++),0},min:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]&gt;a){var o=a-r[t];return r[t]=a,o}}return 0},max:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]&lt;a){var o=a-r[t];return r[t]=a,o}}return 0}}},{&quot;fast-isnumeric&quot;:241}],1088:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/numerical&quot;),i=n.ONEAVGYEAR,a=n.ONEAVGMONTH,o=n.ONEDAY,s=n.ONEHOUR,l=n.ONEMIN,c=n.ONESEC,u=t(&quot;../../plots/cartesian/axes&quot;).tickIncrement;function f(t,e,r,n){if(t*e&lt;=0)return 1/0;for(var i=Math.abs(e-t),a=&quot;date&quot;===r.type,o=h(i,a),s=0;s&lt;10;s++){var l=h(80*o,a);if(o===l)break;if(!p(l,t,e,a,r,n))break;o=l}return o}function h(t,e){return e&amp;&amp;t&gt;c?t&gt;o?t&gt;1.1*i?i:t&gt;1.1*a?a:o:t&gt;s?s:t&gt;l?l:c:Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function p(t,e,r,n,a,s){if(n&amp;&amp;t&gt;o){var l=d(e,a,s),c=d(r,a,s),u=t===i?0:1;return l[u]!==c[u]}return Math.floor(r/t)-Math.floor(e/t)&gt;.1}function d(t,e,r){var n=e.c2d(t,i,r).split(&quot;-&quot;);return&quot;&quot;===n[0]&amp;&amp;(n.unshift(),n[0]=&quot;-&quot;+n[0]),n}e.exports=function(t,e,r,n,a){var s,l,c=-1.1*e,h=-.1*e,p=t-h,d=r[0],g=r[1],m=Math.min(f(d+h,d+p,n,a),f(g+h,g+p,n,a)),v=Math.min(f(d+c,d+h,n,a),f(g+c,g+h,n,a));if(m&gt;v&amp;&amp;v&lt;Math.abs(g-d)/4e3?(s=m,l=!1):(s=Math.min(m,v),l=!0),&quot;date&quot;===n.type&amp;&amp;s&gt;o){var y=s===i?1:6,x=s===i?&quot;M12&quot;:&quot;M1&quot;;return function(e,r){var o=n.c2d(e,i,a),s=o.indexOf(&quot;-&quot;,y);s&gt;0&amp;&amp;(o=o.substr(0,s));var c=n.d2c(o,0,a);if(c&lt;e){var f=u(c,x,!1,a);(c+f)/2&lt;e+t&amp;&amp;(c=f)}return r&amp;&amp;l?u(c,x,!0,a):c}}return function(e,r){var n=s*Math.round(e/s);return n+s/10&lt;e&amp;&amp;n+.9*s&lt;e+t&amp;&amp;(n+=s),r&amp;&amp;l&amp;&amp;(n-=s),n}}},{&quot;../../constants/numerical&quot;:753,&quot;../../plots/cartesian/axes&quot;:828}],1089:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../bar/arrays_to_calcdata&quot;),l=t(&quot;./bin_functions&quot;),c=t(&quot;./norm_functions&quot;),u=t(&quot;./average&quot;),f=t(&quot;./bin_label_vals&quot;);function h(t,e,r,s,l){var c,u,f,p,d,g,m,v=s+&quot;bins&quot;,y=t._fullLayout,x=e[&quot;_&quot;+s+&quot;bingroup&quot;],b=y._histogramBinOpts[x],_=&quot;overlay&quot;===y.barmode,w=function(t){return r.r2c(t,0,p)},T=function(t){return r.c2r(t,0,p)},k=&quot;date&quot;===r.type?function(t){return t||0===t?i.cleanDate(t,null,p):null}:function(t){return n(t)?Number(t):null};function M(t,e,r){e[t+&quot;Found&quot;]?(e[t]=k(e[t]),null===e[t]&amp;&amp;(e[t]=r[t])):(g[t]=e[t]=r[t],i.nestedProperty(u[0],v+&quot;.&quot;+t).set(r[t]))}if(e[&quot;_&quot;+s+&quot;autoBinFinished&quot;])delete e[&quot;_&quot;+s+&quot;autoBinFinished&quot;];else{u=b.traces;var A=[],S=!0,E=!1,C=!1;for(c=0;c&lt;u.length;c++)if((f=u[c]).visible){var L=b.dirs[c];d=f[&quot;_&quot;+L+&quot;pos0&quot;]=r.makeCalcdata(f,L),A=i.concat(A,d),delete f[&quot;_&quot;+s+&quot;autoBinFinished&quot;],!0===e.visible&amp;&amp;(S?S=!1:(delete f._autoBin,f[&quot;_&quot;+s+&quot;autoBinFinished&quot;]=1),a.traceIs(f,&quot;2dMap&quot;)&amp;&amp;(E=!0),&quot;histogram2dcontour&quot;===f.type&amp;&amp;(C=!0))}p=u[0][s+&quot;calendar&quot;];var I=o.autoBin(A,r,b.nbins,E,p,b.sizeFound&amp;&amp;b.size),P=u[0]._autoBin={};if(g=P[b.dirs[0]]={},C&amp;&amp;(b.size||(I.start=T(o.tickIncrement(w(I.start),I.size,!0,p))),void 0===b.end&amp;&amp;(I.end=T(o.tickIncrement(w(I.end),I.size,!1,p)))),_&amp;&amp;!a.traceIs(e,&quot;2dMap&quot;)&amp;&amp;0===I._dataSpan&amp;&amp;&quot;category&quot;!==r.type&amp;&amp;&quot;multicategory&quot;!==r.type){if(l)return[I,d,!0];I=function(t,e,r,n,a){var o,s,l,c=t._fullLayout,u=function(t,e){for(var r=e.xaxis,n=e.yaxis,i=e.orientation,a=[],o=t._fullData,s=0;s&lt;o.length;s++){var l=o[s];&quot;histogram&quot;===l.type&amp;&amp;!0===l.visible&amp;&amp;l.orientation===i&amp;&amp;l.xaxis===r&amp;&amp;l.yaxis===n&amp;&amp;a.push(l)}return a}(t,e),f=!1,p=1/0,d=[e];for(o=0;o&lt;u.length;o++)if((s=u[o])===e)f=!0;else if(f){var g=h(t,s,r,n,!0),m=g[0],v=g[2];s[&quot;_&quot;+n+&quot;autoBinFinished&quot;]=1,s[&quot;_&quot;+n+&quot;pos0&quot;]=g[1],v?d.push(s):p=Math.min(p,m.size)}else l=c._histogramBinOpts[s[&quot;_&quot;+n+&quot;bingroup&quot;]],p=Math.min(p,l.size||s[a].size);var y=new Array(d.length);for(o=0;o&lt;d.length;o++)for(var x=d[o][&quot;_&quot;+n+&quot;pos0&quot;],b=0;b&lt;x.length;b++)if(void 0!==x[b]){y[o]=x[b];break}isFinite(p)||(p=i.distinctVals(y).minDiff);for(o=0;o&lt;d.length;o++){var _=(s=d[o])[n+&quot;calendar&quot;],w={start:r.c2r(y[o]-p/2,0,_),end:r.c2r(y[o]+p/2,0,_),size:p};s._input[a]=s[a]=w,(l=c._histogramBinOpts[s[&quot;_&quot;+n+&quot;bingroup&quot;]])&amp;&amp;i.extendFlat(l,w)}return e[a]}(t,e,r,s,v)}(m=f.cumulative||{}).enabled&amp;&amp;&quot;include&quot;!==m.currentbin&amp;&amp;(&quot;decreasing&quot;===m.direction?I.start=T(o.tickIncrement(w(I.start),I.size,!0,p)):I.end=T(o.tickIncrement(w(I.end),I.size,!1,p))),b.size=I.size,b.sizeFound||(g.size=I.size,i.nestedProperty(u[0],v+&quot;.size&quot;).set(I.size)),M(&quot;start&quot;,b,I),M(&quot;end&quot;,b,I)}d=e[&quot;_&quot;+s+&quot;pos0&quot;],delete e[&quot;_&quot;+s+&quot;pos0&quot;];var z=e._input[v]||{},O=i.extendFlat({},b),D=b.start,R=r.r2l(z.start),F=void 0!==R;if((b.startFound||F)&amp;&amp;R!==r.r2l(D)){var B=F?R:i.aggNums(Math.min,null,d),N={type:&quot;category&quot;===r.type||&quot;multicategory&quot;===r.type?&quot;linear&quot;:r.type,r2l:r.r2l,dtick:b.size,tick0:D,calendar:p,range:[B,o.tickIncrement(B,b.size,!1,p)].map(r.l2r)},j=o.tickFirst(N);j&gt;r.r2l(B)&amp;&amp;(j=o.tickIncrement(j,b.size,!0,p)),O.start=r.l2r(j),F||i.nestedProperty(e,v+&quot;.start&quot;).set(O.start)}var U=b.end,V=r.r2l(z.end),q=void 0!==V;if((b.endFound||q)&amp;&amp;V!==r.r2l(U)){var H=q?V:i.aggNums(Math.max,null,d);O.end=r.l2r(H),q||i.nestedProperty(e,v+&quot;.start&quot;).set(O.end)}var G=&quot;autobin&quot;+s;return!1===e._input[G]&amp;&amp;(e._input[v]=i.extendFlat({},e[v]||{}),delete e._input[G],delete e[G]),[O,d]}e.exports={calc:function(t,e){var r,a,p,d,g=[],m=[],v=o.getFromId(t,&quot;h&quot;===e.orientation?e.yaxis:e.xaxis),y=&quot;h&quot;===e.orientation?&quot;y&quot;:&quot;x&quot;,x={x:&quot;y&quot;,y:&quot;x&quot;}[y],b=e[y+&quot;calendar&quot;],_=e.cumulative,w=h(t,e,v,y),T=w[0],k=w[1],M=&quot;string&quot;==typeof T.size,A=[],S=M?A:T,E=[],C=[],L=[],I=0,P=e.histnorm,z=e.histfunc,O=-1!==P.indexOf(&quot;density&quot;);_.enabled&amp;&amp;O&amp;&amp;(P=P.replace(/ ?density$/,&quot;&quot;),O=!1);var D,R=&quot;max&quot;===z||&quot;min&quot;===z?null:0,F=l.count,B=c[P],N=!1,j=function(t){return v.r2c(t,0,b)};for(i.isArrayOrTypedArray(e[x])&amp;&amp;&quot;count&quot;!==z&amp;&amp;(D=e[x],N=&quot;avg&quot;===z,F=l[z]),r=j(T.start),p=j(T.end)+(r-o.tickIncrement(r,T.size,!1,b))/1e6;r&lt;p&amp;&amp;g.length&lt;1e6&amp;&amp;(a=o.tickIncrement(r,T.size,!1,b),g.push((r+a)/2),m.push(R),L.push([]),A.push(r),O&amp;&amp;E.push(1/(a-r)),N&amp;&amp;C.push(0),!(a&lt;=r));)r=a;A.push(r),M||&quot;date&quot;!==v.type||(S={start:j(S.start),end:j(S.end),size:S.size}),t._fullLayout._roundFnOpts||(t._fullLayout._roundFnOpts={});var U=e[&quot;_&quot;+y+&quot;bingroup&quot;],V={leftGap:1/0,rightGap:1/0};U&amp;&amp;(t._fullLayout._roundFnOpts[U]||(t._fullLayout._roundFnOpts[U]=V),V=t._fullLayout._roundFnOpts[U]);var q,H=m.length,G=!0,Y=V.leftGap,W=V.rightGap,X={};for(r=0;r&lt;k.length;r++){var Z=k[r];(d=i.findBin(Z,S))&gt;=0&amp;&amp;d&lt;H&amp;&amp;(I+=F(d,r,m,D,C),G&amp;&amp;L[d].length&amp;&amp;Z!==k[L[d][0]]&amp;&amp;(G=!1),L[d].push(r),X[r]=d,Y=Math.min(Y,Z-A[d]),W=Math.min(W,A[d+1]-Z))}V.leftGap=Y,V.rightGap=W,G||(q=function(e,r){return function(){var n=t._fullLayout._roundFnOpts[U];return f(n.leftGap,n.rightGap,A,v,b)(e,r)}}),N&amp;&amp;(I=u(m,C)),B&amp;&amp;B(m,I,E),_.enabled&amp;&amp;function(t,e,r){var n,i,a;function o(e){a=t[e],t[e]/=2}function s(e){i=t[e],t[e]=a+i/2,a+=i}if(&quot;half&quot;===r)if(&quot;increasing&quot;===e)for(o(0),n=1;n&lt;t.length;n++)s(n);else for(o(t.length-1),n=t.length-2;n&gt;=0;n--)s(n);else if(&quot;increasing&quot;===e){for(n=1;n&lt;t.length;n++)t[n]+=t[n-1];&quot;exclude&quot;===r&amp;&amp;(t.unshift(0),t.pop())}else{for(n=t.length-2;n&gt;=0;n--)t[n]+=t[n+1];&quot;exclude&quot;===r&amp;&amp;(t.push(0),t.shift())}}(m,_.direction,_.currentbin);var J=Math.min(g.length,m.length),K=[],Q=0,$=J-1;for(r=0;r&lt;J;r++)if(m[r]){Q=r;break}for(r=J-1;r&gt;=Q;r--)if(m[r]){$=r;break}for(r=Q;r&lt;=$;r++)if(n(g[r])&amp;&amp;n(m[r])){var tt={p:g[r],s:m[r],b:0};_.enabled||(tt.pts=L[r],G?tt.ph0=tt.ph1=L[r].length?k[L[r][0]]:g[r]:(e._computePh=!0,tt.ph0=q(A[r]),tt.ph1=q(A[r+1],!0))),K.push(tt)}return 1===K.length&amp;&amp;(K[0].width1=o.tickIncrement(K[0].p,T.size,!1,b)-K[0].p),s(K,e),i.isArrayOrTypedArray(e.selectedpoints)&amp;&amp;i.tagSelected(K,e,X),K},calcAllAutoBins:h}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../bar/arrays_to_calcdata&quot;:920,&quot;./average&quot;:1085,&quot;./bin_functions&quot;:1087,&quot;./bin_label_vals&quot;:1088,&quot;./norm_functions&quot;:1096,&quot;fast-isnumeric&quot;:241}],1090:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;binNumber&quot;]}},{}],1091:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axis_ids&quot;),a=t(&quot;../../registry&quot;).traceIs,o=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,s=n.nestedProperty,l=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,c=[{aStr:{x:&quot;xbins.start&quot;,y:&quot;ybins.start&quot;},name:&quot;start&quot;},{aStr:{x:&quot;xbins.end&quot;,y:&quot;ybins.end&quot;},name:&quot;end&quot;},{aStr:{x:&quot;xbins.size&quot;,y:&quot;ybins.size&quot;},name:&quot;size&quot;},{aStr:{x:&quot;nbinsx&quot;,y:&quot;nbinsy&quot;},name:&quot;nbins&quot;}],u=[&quot;x&quot;,&quot;y&quot;];e.exports=function(t,e){var r,f,h,p,d,g,m,v=e._histogramBinOpts={},y=[],x={},b=[];function _(t,e){return n.coerce(r._input,r,r._module.attributes,t,e)}function w(t){return&quot;v&quot;===t.orientation?&quot;x&quot;:&quot;y&quot;}function T(t,r,a){var o=t.uid+&quot;__&quot;+a;r||(r=o);var s=function(t,r){return i.getFromTrace({_fullLayout:e},t,r).type}(t,a),l=t[a+&quot;calendar&quot;]||&quot;&quot;,c=v[r],u=!0;c&amp;&amp;(s===c.axType&amp;&amp;l===c.calendar?(u=!1,c.traces.push(t),c.dirs.push(a)):(r=o,s!==c.axType&amp;&amp;n.warn([&quot;Attempted to group the bins of trace&quot;,t.index,&quot;set on a&quot;,&quot;type:&quot;+s,&quot;axis&quot;,&quot;with bins on&quot;,&quot;type:&quot;+c.axType,&quot;axis.&quot;].join(&quot; &quot;)),l!==c.calendar&amp;&amp;n.warn([&quot;Attempted to group the bins of trace&quot;,t.index,&quot;set with a&quot;,l,&quot;calendar&quot;,&quot;with bins&quot;,c.calendar?&quot;on a &quot;+c.calendar+&quot; calendar&quot;:&quot;w/o a set calendar&quot;].join(&quot; &quot;)))),u&amp;&amp;(v[r]={traces:[t],dirs:[a],axType:s,calendar:t[a+&quot;calendar&quot;]||&quot;&quot;}),t[&quot;_&quot;+a+&quot;bingroup&quot;]=r}for(d=0;d&lt;t.length;d++)r=t[d],a(r,&quot;histogram&quot;)&amp;&amp;(y.push(r),delete r._xautoBinFinished,delete r._yautoBinFinished,a(r,&quot;2dMap&quot;)||o(r._input,r,e,_));var k=e._alignmentOpts||{};for(d=0;d&lt;y.length;d++){if(r=y[d],h=&quot;&quot;,!a(r,&quot;2dMap&quot;)){if(p=w(r),&quot;group&quot;===e.barmode&amp;&amp;r.alignmentgroup){var M=r[p+&quot;axis&quot;],A=l(e,M)+r.orientation;(k[A]||{})[r.alignmentgroup]&amp;&amp;(h=A)}h||&quot;overlay&quot;===e.barmode||(h=l(e,r.xaxis)+l(e,r.yaxis)+w(r))}h?(x[h]||(x[h]=[]),x[h].push(r)):b.push(r)}for(h in x)if(1!==(f=x[h]).length){var S=!1;for(f.length&amp;&amp;(r=f[0],S=_(&quot;bingroup&quot;)),h=S||h,d=0;d&lt;f.length;d++){var E=(r=f[d])._input.bingroup;E&amp;&amp;E!==h&amp;&amp;n.warn([&quot;Trace&quot;,r.index,&quot;must match&quot;,&quot;within bingroup&quot;,h+&quot;.&quot;,&quot;Ignoring its bingroup:&quot;,E,&quot;setting.&quot;].join(&quot; &quot;)),r.bingroup=h,T(r,h,w(r))}}else b.push(f[0]);for(d=0;d&lt;b.length;d++){r=b[d];var C=_(&quot;bingroup&quot;);if(a(r,&quot;2dMap&quot;))for(m=0;m&lt;2;m++){var L=_((p=u[m])+&quot;bingroup&quot;,C?C+&quot;__&quot;+p:null);T(r,L,p)}else T(r,C,w(r))}for(h in v){var I=v[h];for(f=I.traces,g=0;g&lt;c.length;g++){var P,z,O=c[g],D=O.name;if(&quot;nbins&quot;!==D||!I.sizeFound){for(d=0;d&lt;f.length;d++){if(r=f[d],p=I.dirs[d],P=O.aStr[p],void 0!==s(r._input,P).get()){I[D]=_(P),I[D+&quot;Found&quot;]=!0;break}(z=(r._autoBin||{})[p]||{})[D]&amp;&amp;s(r,P).set(z[D])}if(&quot;start&quot;===D||&quot;end&quot;===D)for(;d&lt;f.length;d++)(r=f[d])[&quot;_&quot;+p+&quot;bingroup&quot;]&amp;&amp;_(P,(z=(r._autoBin||{})[p]||{})[D]);&quot;nbins&quot;!==D||I.sizeFound||I.nbinsFound||(r=f[0],I[D]=_(P))}}}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/cartesian/constraints&quot;:835,&quot;../../registry&quot;:911,&quot;../bar/defaults&quot;:925}],1092:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../bar/style_defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,n){return i.coerce(t,e,s,r,n)}var u=c(&quot;x&quot;),f=c(&quot;y&quot;);c(&quot;cumulative.enabled&quot;)&amp;&amp;(c(&quot;cumulative.direction&quot;),c(&quot;cumulative.currentbin&quot;)),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;);var h=c(&quot;orientation&quot;,f&amp;&amp;!u?&quot;h&quot;:&quot;v&quot;),p=&quot;v&quot;===h?&quot;x&quot;:&quot;y&quot;,d=&quot;v&quot;===h?&quot;y&quot;:&quot;x&quot;,g=u&amp;&amp;f?Math.min(i.minRowLength(u)&amp;&amp;i.minRowLength(f)):i.minRowLength(e[p]||[]);if(g){e._length=g,n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],l),e[d]&amp;&amp;c(&quot;histfunc&quot;),c(&quot;histnorm&quot;),c(&quot;autobin&quot;+p),o(t,e,c,r,l),i.coerceSelectionMarkerOpacity(e,c);var m=(e.marker.line||{}).color,v=n.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);v(t,e,m||a.defaultLine,{axis:&quot;y&quot;}),v(t,e,m||a.defaultLine,{axis:&quot;x&quot;,inherit:&quot;y&quot;})}else e.visible=!1}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../bar/style_defaults&quot;:936,&quot;./attributes&quot;:1084}],1093:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){if(t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;zLabelVal&quot;in e&amp;&amp;(t.z=e.zLabelVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),!(r.cumulative||{}).enabled){var a,o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;if(t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex,r._indexToPoints){a=[];for(var s=0;s&lt;o.length;s++)a=a.concat(r._indexToPoints[o[s]])}else a=o;t.pointIndices=a}return t}},{}],1094:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/hover&quot;).hoverPoints,i=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText;e.exports=function(t,e,r,a){var o=n(t,e,r,a);if(o){var s=(t=o[0]).cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var c=&quot;h&quot;===l.orientation?&quot;y&quot;:&quot;x&quot;;t[c+&quot;Label&quot;]=i(t[c+&quot;a&quot;],s.ph0,s.ph1)}return o}}},{&quot;../../plots/cartesian/axes&quot;:828,&quot;../bar/hover&quot;:928}],1095:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;../bar/layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),supplyLayoutDefaults:t(&quot;../bar/layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;../bar/cross_trace_calc&quot;).crossTraceCalc,plot:t(&quot;../bar/plot&quot;).plot,layerName:&quot;barlayer&quot;,style:t(&quot;../bar/style&quot;).style,styleOnSelect:t(&quot;../bar/style&quot;).styleOnSelect,colorbar:t(&quot;../scatter/marker_colorbar&quot;),hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../bar/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;bar&quot;,&quot;histogram&quot;,&quot;oriented&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../bar/cross_trace_calc&quot;:924,&quot;../bar/layout_attributes&quot;:930,&quot;../bar/layout_defaults&quot;:931,&quot;../bar/plot&quot;:932,&quot;../bar/select&quot;:933,&quot;../bar/style&quot;:935,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1084,&quot;./calc&quot;:1089,&quot;./cross_trace_defaults&quot;:1091,&quot;./defaults&quot;:1092,&quot;./event_data&quot;:1093,&quot;./hover&quot;:1094}],1096:[function(t,e,r){&quot;use strict&quot;;e.exports={percent:function(t,e){for(var r=t.length,n=100/e,i=0;i&lt;r;i++)t[i]*=n},probability:function(t,e){for(var r=t.length,n=0;n&lt;r;n++)t[n]/=e},density:function(t,e,r,n){var i=t.length;n=n||1;for(var a=0;a&lt;i;a++)t[a]*=r[a]*n},&quot;probability density&quot;:function(t,e,r,n){var i=t.length;n&amp;&amp;(e/=n);for(var a=0;a&lt;i;a++)t[a]*=r[a]/e}}},{}],1097:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../histogram/attributes&quot;),i=t(&quot;../histogram/bin_attributes&quot;),a=t(&quot;../heatmap/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../components/colorscale/attributes&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=c({x:n.x,y:n.y,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},marker:{color:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:i(&quot;x&quot;),nbinsy:n.nbinsy,ybins:i(&quot;y&quot;),autobinx:n.autobinx,autobiny:n.autobiny,bingroup:c({},n.bingroup,{}),xbingroup:c({},n.bingroup,{}),ybingroup:c({},n.bingroup,{}),xgap:a.xgap,ygap:a.ygap,zsmooth:a.zsmooth,zhoverformat:a.zhoverformat,hovertemplate:s({},{keys:&quot;z&quot;}),showlegend:c({},o.showlegend,{dflt:!1})},l(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../heatmap/attributes&quot;:1065,&quot;../histogram/attributes&quot;:1084,&quot;../histogram/bin_attributes&quot;:1086}],1098:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../histogram/bin_functions&quot;),o=t(&quot;../histogram/norm_functions&quot;),s=t(&quot;../histogram/average&quot;),l=t(&quot;../histogram/bin_label_vals&quot;),c=t(&quot;../histogram/calc&quot;).calcAllAutoBins;function u(t,e,r,n){var i,a=new Array(t);if(n)for(i=0;i&lt;t;i++)a[i]=1/(e[i+1]-e[i]);else{var o=1/r;for(i=0;i&lt;t;i++)a[i]=o}return a}function f(t,e){return{start:t(e.start),end:t(e.end),size:e.size}}function h(t,e,r,n,i,a){var o,s=t.length-1,c=new Array(s),u=l(r,n,t,i,a);for(o=0;o&lt;s;o++){var f=(e||[])[o];c[o]=void 0===f?[u(t[o]),u(t[o+1],!0)]:[f,f]}return c}e.exports=function(t,e){var r,l,p,d,g=i.getFromId(t,e.xaxis),m=i.getFromId(t,e.yaxis),v=e.xcalendar,y=e.ycalendar,x=function(t){return g.r2c(t,0,v)},b=function(t){return m.r2c(t,0,y)},_=c(t,e,g,&quot;x&quot;),w=_[0],T=_[1],k=c(t,e,m,&quot;y&quot;),M=k[0],A=k[1],S=e._length;T.length&gt;S&amp;&amp;T.splice(S,T.length-S),A.length&gt;S&amp;&amp;A.splice(S,A.length-S);var E=[],C=[],L=[],I=&quot;string&quot;==typeof w.size,P=&quot;string&quot;==typeof M.size,z=[],O=[],D=I?z:w,R=P?O:M,F=0,B=[],N=[],j=e.histnorm,U=e.histfunc,V=-1!==j.indexOf(&quot;density&quot;),q=&quot;max&quot;===U||&quot;min&quot;===U?null:0,H=a.count,G=o[j],Y=!1,W=[],X=[],Z=&quot;z&quot;in e?e.z:&quot;marker&quot;in e&amp;&amp;Array.isArray(e.marker.color)?e.marker.color:&quot;&quot;;Z&amp;&amp;&quot;count&quot;!==U&amp;&amp;(Y=&quot;avg&quot;===U,H=a[U]);var J=w.size,K=x(w.start),Q=x(w.end)+(K-i.tickIncrement(K,J,!1,v))/1e6;for(r=K;r&lt;Q;r=i.tickIncrement(r,J,!1,v))C.push(q),z.push(r),Y&amp;&amp;L.push(0);z.push(r);var $,tt=C.length,et=(r-K)/tt,rt=($=K+et/2,g.c2r($,0,v)),nt=M.size,it=b(M.start),at=b(M.end)+(it-i.tickIncrement(it,nt,!1,y))/1e6;for(r=it;r&lt;at;r=i.tickIncrement(r,nt,!1,y)){E.push(C.slice()),O.push(r);var ot=new Array(tt);for(l=0;l&lt;tt;l++)ot[l]=[];N.push(ot),Y&amp;&amp;B.push(L.slice())}O.push(r);var st=E.length,lt=(r-it)/st,ct=function(t){return m.c2r(t,0,y)}(it+lt/2);V&amp;&amp;(W=u(C.length,D,et,I),X=u(E.length,R,lt,P)),I||&quot;date&quot;!==g.type||(D=f(x,D)),P||&quot;date&quot;!==m.type||(R=f(b,R));var ut=!0,ft=!0,ht=new Array(tt),pt=new Array(st),dt=1/0,gt=1/0,mt=1/0,vt=1/0;for(r=0;r&lt;S;r++){var yt=T[r],xt=A[r];p=n.findBin(yt,D),d=n.findBin(xt,R),p&gt;=0&amp;&amp;p&lt;tt&amp;&amp;d&gt;=0&amp;&amp;d&lt;st&amp;&amp;(F+=H(p,r,E[d],Z,B[d]),N[d][p].push(r),ut&amp;&amp;(void 0===ht[p]?ht[p]=yt:ht[p]!==yt&amp;&amp;(ut=!1)),ft&amp;&amp;(void 0===pt[d]?pt[d]=xt:pt[d]!==xt&amp;&amp;(ft=!1)),dt=Math.min(dt,yt-z[p]),gt=Math.min(gt,z[p+1]-yt),mt=Math.min(mt,xt-O[d]),vt=Math.min(vt,O[d+1]-xt))}if(Y)for(d=0;d&lt;st;d++)F+=s(E[d],B[d]);if(G)for(d=0;d&lt;st;d++)G(E[d],F,W,X[d]);return{x:T,xRanges:h(z,ut&amp;&amp;ht,dt,gt,g,v),x0:rt,dx:et,y:A,yRanges:h(O,ft&amp;&amp;pt,mt,vt,m,y),y0:ct,dy:lt,z:E,pts:N}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../histogram/average&quot;:1085,&quot;../histogram/bin_functions&quot;:1087,&quot;../histogram/bin_label_vals&quot;:1088,&quot;../histogram/calc&quot;:1089,&quot;../histogram/norm_functions&quot;:1096}],1099:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./sample_defaults&quot;),a=t(&quot;../heatmap/style_defaults&quot;),o=t(&quot;../../components/colorscale/defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&amp;&amp;(a(t,e,c,l),o(t,e,l,c,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),c(&quot;hovertemplate&quot;))}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../heatmap/style_defaults&quot;:1078,&quot;./attributes&quot;:1097,&quot;./sample_defaults&quot;:1102}],1100:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/hover&quot;),i=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText;e.exports=function(t,e,r,a,o,s){var l=n(t,e,r,a,o,s);if(l){var c=(t=l[0]).index,u=c[0],f=c[1],h=t.cd[0],p=h.xRanges[f],d=h.yRanges[u];return t.xLabel=i(t.xa,p[0],p[1]),t.yLabel=i(t.ya,d[0],d[1]),l}}},{&quot;../../plots/cartesian/axes&quot;:828,&quot;../heatmap/hover&quot;:1072}],1101:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../histogram/cross_trace_defaults&quot;),calc:t(&quot;../heatmap/calc&quot;),plot:t(&quot;../heatmap/plot&quot;),layerName:&quot;heatmaplayer&quot;,colorbar:t(&quot;../heatmap/colorbar&quot;),style:t(&quot;../heatmap/style&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;../histogram/event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram2d&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;histogram&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../heatmap/calc&quot;:1066,&quot;../heatmap/colorbar&quot;:1068,&quot;../heatmap/plot&quot;:1076,&quot;../heatmap/style&quot;:1077,&quot;../histogram/cross_trace_defaults&quot;:1091,&quot;../histogram/event_data&quot;:1093,&quot;./attributes&quot;:1097,&quot;./defaults&quot;:1099,&quot;./hover&quot;:1100}],1102:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=r(&quot;x&quot;),s=r(&quot;y&quot;),l=i.minRowLength(o),c=i.minRowLength(s);l&amp;&amp;c?(e._length=Math.min(l,c),n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],a),(r(&quot;z&quot;)||r(&quot;marker.color&quot;))&amp;&amp;r(&quot;histfunc&quot;),r(&quot;histnorm&quot;),r(&quot;autobinx&quot;),r(&quot;autobiny&quot;)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1103:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../histogram2d/attributes&quot;),i=t(&quot;../contour/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=o({x:n.x,y:n.y,z:n.z,marker:n.marker,histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:n.xbins,nbinsy:n.nbinsy,ybins:n.ybins,autobinx:n.autobinx,autobiny:n.autobiny,bingroup:n.bingroup,xbingroup:n.xbingroup,ybingroup:n.ybingroup,autocontour:i.autocontour,ncontours:i.ncontours,contours:i.contours,line:{color:i.line.color,width:o({},i.line.width,{dflt:.5}),dash:i.line.dash,smoothing:i.line.smoothing,editType:&quot;plot&quot;},zhoverformat:n.zhoverformat,hovertemplate:n.hovertemplate},a(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../contour/attributes&quot;:1008,&quot;../histogram2d/attributes&quot;:1097}],1104:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../histogram2d/sample_defaults&quot;),a=t(&quot;../contour/contours_defaults&quot;),o=t(&quot;../contour/style_defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&amp;&amp;(a(t,e,c,(function(r){return n.coerce2(t,e,s,r)})),o(t,e,c,l),c(&quot;hovertemplate&quot;))}},{&quot;../../lib&quot;:778,&quot;../contour/contours_defaults&quot;:1015,&quot;../contour/style_defaults&quot;:1029,&quot;../histogram2d/sample_defaults&quot;:1102,&quot;./attributes&quot;:1103}],1105:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../histogram/cross_trace_defaults&quot;),calc:t(&quot;../contour/calc&quot;),plot:t(&quot;../contour/plot&quot;).plot,layerName:&quot;contourlayer&quot;,style:t(&quot;../contour/style&quot;),colorbar:t(&quot;../contour/colorbar&quot;),hoverPoints:t(&quot;../contour/hover&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram2dcontour&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;contour&quot;,&quot;histogram&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../contour/calc&quot;:1009,&quot;../contour/colorbar&quot;:1011,&quot;../contour/hover&quot;:1021,&quot;../contour/plot&quot;:1026,&quot;../contour/style&quot;:1028,&quot;../histogram/cross_trace_defaults&quot;:1091,&quot;./attributes&quot;:1103,&quot;./defaults&quot;:1104}],1106:[function(t,e,r){&quot;use strict&quot;;for(var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;./constants&quot;).colormodel,s=[&quot;rgb&quot;,&quot;rgba&quot;,&quot;rgba256&quot;,&quot;hsl&quot;,&quot;hsla&quot;],l=[],c=[],u=0;u&lt;s.length;u++){var f=o[s[u]];l.push(&quot;For the `&quot;+s[u]+&quot;` colormodel, it is [&quot;+(f.zminDflt||f.min).join(&quot;, &quot;)+&quot;].&quot;),c.push(&quot;For the `&quot;+s[u]+&quot;` colormodel, it is [&quot;+(f.zmaxDflt||f.max).join(&quot;, &quot;)+&quot;].&quot;)}e.exports=a({source:{valType:&quot;string&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},colormodel:{valType:&quot;enumerated&quot;,values:s,editType:&quot;calc&quot;},zmin:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},zmax:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},x0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},y0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dx:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},dy:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},text:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hovertext:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hoverinfo:a({},n.hoverinfo,{flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;color&quot;,&quot;name&quot;,&quot;text&quot;],dflt:&quot;x+y+z+text+name&quot;}),hovertemplate:i({},{keys:[&quot;z&quot;,&quot;color&quot;,&quot;colormodel&quot;]}),transforms:void 0})},{&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;./constants&quot;:1108}],1107:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constants&quot;),a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../../lib&quot;).maxRowLength,l=t(&quot;./helpers&quot;).getImageSize;function c(t,e,r,i){return function(a){return n.constrain((a-t)*e,r,i)}}function u(t,e){return function(r){return n.constrain(r,t,e)}}e.exports=function(t,e){var r,n;if(e._hasZ)r=e.z.length,n=s(e.z);else if(e._hasSource){var f=l(e.source);r=f.height,n=f.width}var h,p=o.getFromId(t,e.xaxis||&quot;x&quot;),d=o.getFromId(t,e.yaxis||&quot;y&quot;),g=p.d2c(e.x0)-e.dx/2,m=d.d2c(e.y0)-e.dy/2,v=[g,g+n*e.dx],y=[m,m+r*e.dy];if(p&amp;&amp;&quot;log&quot;===p.type)for(h=0;h&lt;n;h++)v.push(g+h*e.dx);if(d&amp;&amp;&quot;log&quot;===d.type)for(h=0;h&lt;r;h++)y.push(m+h*e.dy);return e._extremes[p._id]=o.findExtremes(p,v),e._extremes[d._id]=o.findExtremes(d,y),e._scaler=function(t){var e=i.colormodel[t.colormodel],r=(e.colormodel||t.colormodel).length;t._sArray=[];for(var n=0;n&lt;r;n++)e.min[n]!==t.zmin[n]||e.max[n]!==t.zmax[n]?t._sArray.push(c(t.zmin[n],(e.max[n]-e.min[n])/(t.zmax[n]-t.zmin[n]),e.min[n],e.max[n])):t._sArray.push(u(e.min[n],e.max[n]));return function(e){for(var n=e.slice(0,r),i=0;i&lt;r;i++){var o=n[i];if(!a(o))return!1;n[i]=t._sArray[i](o)}return n}}(e),[{x0:g,y0:m,z:e.z,w:n,h:r}]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./constants&quot;:1108,&quot;./helpers&quot;:1111,&quot;fast-isnumeric&quot;:241}],1108:[function(t,e,r){&quot;use strict&quot;;e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(t){return t.slice(0,3)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]},rgba256:{colormodel:&quot;rgba&quot;,zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(t){var e=t.slice(0,3);return e[1]=e[1]+&quot;%&quot;,e[2]=e[2]+&quot;%&quot;,e},suffix:[&quot;\xb0&quot;,&quot;%&quot;,&quot;%&quot;]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(t){var e=t.slice(0,4);return e[1]=e[1]+&quot;%&quot;,e[2]=e[2]+&quot;%&quot;,e},suffix:[&quot;\xb0&quot;,&quot;%&quot;,&quot;%&quot;,&quot;&quot;]}}}},{}],1109:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./constants&quot;),o=t(&quot;../../snapshot/helpers&quot;).IMAGE_URL_PREFIX;e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;source&quot;),e.source&amp;&amp;!e.source.match(o)&amp;&amp;delete e.source,e._hasSource=!!e.source;var s,l=r(&quot;z&quot;);(e._hasZ=!(void 0===l||!l.length||!l[0]||!l[0].length),e._hasZ||e._hasSource)?(r(&quot;x0&quot;),r(&quot;y0&quot;),r(&quot;dx&quot;),r(&quot;dy&quot;),e._hasZ?(r(&quot;colormodel&quot;,&quot;rgb&quot;),r(&quot;zmin&quot;,(s=a.colormodel[e.colormodel]).zminDflt||s.min),r(&quot;zmax&quot;,s.zmaxDflt||s.max)):e._hasSource&amp;&amp;(e.colormodel=&quot;rgba256&quot;,s=a.colormodel[e.colormodel],e.zmin=s.zminDflt,e.zmax=s.zmaxDflt),r(&quot;text&quot;),r(&quot;hovertext&quot;),r(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../snapshot/helpers&quot;:915,&quot;./attributes&quot;:1106,&quot;./constants&quot;:1108}],1110:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return&quot;xVal&quot;in e&amp;&amp;(t.x=e.xVal),&quot;yVal&quot;in e&amp;&amp;(t.y=e.yVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t.color=e.color,t.colormodel=e.trace.colormodel,t.z||(t.z=e.color),t}},{}],1111:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;image-size&quot;),i=t(&quot;../../snapshot/helpers&quot;).IMAGE_URL_PREFIX,a=t(&quot;buffer/&quot;).Buffer;r.getImageSize=function(t){var e=t.replace(i,&quot;&quot;),r=new a(e,&quot;base64&quot;);return n(r)}},{&quot;../../snapshot/helpers&quot;:915,&quot;buffer/&quot;:111,&quot;image-size&quot;:444}],1112:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./constants&quot;);e.exports=function(t,e,r){var o=t.cd[0],s=o.trace,l=t.xa,c=t.ya;if(!(n.inbox(e-o.x0,e-(o.x0+o.w*s.dx),0)&gt;0||n.inbox(r-o.y0,r-(o.y0+o.h*s.dy),0)&gt;0)){var u,f=Math.floor((e-o.x0)/s.dx),h=Math.floor(Math.abs(r-o.y0)/s.dy);if(s._hasZ?u=o.z[h][f]:s._hasSource&amp;&amp;(u=s._canvas.el.getContext(&quot;2d&quot;).getImageData(f,h,1,1).data),u){var p,d=o.hi||s.hoverinfo;if(d){var g=d.split(&quot;+&quot;);-1!==g.indexOf(&quot;all&quot;)&amp;&amp;(g=[&quot;color&quot;]),-1!==g.indexOf(&quot;color&quot;)&amp;&amp;(p=!0)}var m,v=a.colormodel[s.colormodel],y=v.colormodel||s.colormodel,x=y.length,b=s._scaler(u),_=v.suffix,w=[];(s.hovertemplate||p)&amp;&amp;(w.push(&quot;[&quot;+[b[0]+_[0],b[1]+_[1],b[2]+_[2]].join(&quot;, &quot;)),4===x&amp;&amp;w.push(&quot;, &quot;+b[3]+_[3]),w.push(&quot;]&quot;),w=w.join(&quot;&quot;),t.extraText=y.toUpperCase()+&quot;: &quot;+w),Array.isArray(s.hovertext)&amp;&amp;Array.isArray(s.hovertext[h])?m=s.hovertext[h][f]:Array.isArray(s.text)&amp;&amp;Array.isArray(s.text[h])&amp;&amp;(m=s.text[h][f]);var T=c.c2p(o.y0+(h+.5)*s.dy),k=o.x0+(f+.5)*s.dx,M=o.y0+(h+.5)*s.dy,A=&quot;[&quot;+u.slice(0,s.colormodel.length).join(&quot;, &quot;)+&quot;]&quot;;return[i.extendFlat(t,{index:[h,f],x0:l.c2p(o.x0+f*s.dx),x1:l.c2p(o.x0+(f+1)*s.dx),y0:T,y1:T,color:b,xVal:k,xLabelVal:k,yVal:M,yLabelVal:M,zLabelVal:A,text:m,hovertemplateLabels:{zLabel:A,colorLabel:w,&quot;color[0]Label&quot;:b[0]+_[0],&quot;color[1]Label&quot;:b[1]+_[1],&quot;color[2]Label&quot;:b[2]+_[2],&quot;color[3]Label&quot;:b[3]+_[3]}})]}}}},{&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;./constants&quot;:1108}],1113:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;image&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;noSortingByValue&quot;],animatable:!1,meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1106,&quot;./calc&quot;:1107,&quot;./defaults&quot;:1109,&quot;./event_data&quot;:1110,&quot;./hover&quot;:1112,&quot;./plot&quot;:1114,&quot;./style&quot;:1115}],1114:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=i.strTranslate,o=t(&quot;../../constants/xmlns_namespaces&quot;),s=t(&quot;./constants&quot;),l=i.isIOS()||i.isSafari()||i.isIE();e.exports=function(t,e,r,c){var u=e.xaxis,f=e.yaxis,h=!(l||t._context._exportedPlot);i.makeTraceGroups(c,r,&quot;im&quot;).each((function(e){var r=n.select(this),l=e[0],c=l.trace,p=h&amp;&amp;!c._hasZ&amp;&amp;c._hasSource&amp;&amp;&quot;linear&quot;===u.type&amp;&amp;&quot;linear&quot;===f.type;c._fastImage=p;var d,g,m,v,y,x,b=l.z,_=l.x0,w=l.y0,T=l.w,k=l.h,M=c.dx,A=c.dy;for(x=0;void 0===d&amp;&amp;x&lt;T;)d=u.c2p(_+x*M),x++;for(x=T;void 0===g&amp;&amp;x&gt;0;)g=u.c2p(_+x*M),x--;for(x=0;void 0===v&amp;&amp;x&lt;k;)v=f.c2p(w+x*A),x++;for(x=k;void 0===y&amp;&amp;x&gt;0;)y=f.c2p(w+x*A),x--;if(g&lt;d&amp;&amp;(m=g,g=d,d=m),y&lt;v&amp;&amp;(m=v,v=y,y=m),!p){d=Math.max(-.5*u._length,d),g=Math.min(1.5*u._length,g),v=Math.max(-.5*f._length,v),y=Math.min(1.5*f._length,y)}var S=Math.round(g-d),E=Math.round(y-v);if(S&lt;=0||E&lt;=0){r.selectAll(&quot;image&quot;).data([]).exit().remove()}else{var C=r.selectAll(&quot;image&quot;).data([e]);C.enter().append(&quot;svg:image&quot;).attr({xmlns:o.svg,preserveAspectRatio:&quot;none&quot;}),C.exit().remove();var L=&quot;image-rendering: optimizeSpeed; image-rendering: -moz-crisp-edges; image-rendering: -o-crisp-edges; image-rendering: -webkit-optimize-contrast; image-rendering: optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;&quot;;if(p){var I=i.simpleMap(u.range,u.r2l),P=i.simpleMap(f.range,f.r2l),z=I[1]&lt;I[0],O=P[1]&gt;P[0];if(z||O){var D=d+S/2,R=v+E/2;L+=&quot;transform:&quot;+a(D+&quot;px&quot;,R+&quot;px&quot;)+&quot;scale(&quot;+(z?-1:1)+&quot;,&quot;+(O?-1:1)+&quot;)&quot;+a(-D+&quot;px&quot;,-R+&quot;px&quot;)+&quot;;&quot;}}C.attr(&quot;style&quot;,L);var F=new Promise((function(t){if(c._hasZ)t();else if(c._hasSource)if(c._canvas&amp;&amp;c._canvas.el.width===T&amp;&amp;c._canvas.el.height===k&amp;&amp;c._canvas.source===c.source)t();else{var e=document.createElement(&quot;canvas&quot;);e.width=T,e.height=k;var r=e.getContext(&quot;2d&quot;);c._image=c._image||new Image;var n=c._image;n.onload=function(){r.drawImage(n,0,0),c._canvas={el:e,source:c.source},t()},n.setAttribute(&quot;src&quot;,c.source)}})).then((function(){var t;if(c._hasZ)t=B((function(t,e){return b[e][t]})).toDataURL(&quot;image/png&quot;);else if(c._hasSource)if(p)t=c.source;else{var e=c._canvas.el.getContext(&quot;2d&quot;).getImageData(0,0,T,k).data;t=B((function(t,r){var n=4*(r*T+t);return[e[n],e[n+1],e[n+2],e[n+3]]})).toDataURL(&quot;image/png&quot;)}C.attr({&quot;xlink:href&quot;:t,height:E,width:S,x:d,y:v})}));t._promises.push(F)}function B(t){var e=document.createElement(&quot;canvas&quot;);e.width=S,e.height=E;var r,n=e.getContext(&quot;2d&quot;),a=function(t){return i.constrain(Math.round(u.c2p(_+t*M)-d),0,S)},o=function(t){return i.constrain(Math.round(f.c2p(w+t*A)-v),0,E)},h=s.colormodel[c.colormodel],p=h.colormodel||c.colormodel,g=h.fmt;for(x=0;x&lt;l.w;x++){var m=a(x),y=a(x+1);if(y!==m&amp;&amp;!isNaN(y)&amp;&amp;!isNaN(m))for(var b=0;b&lt;l.h;b++){var T=o(b),k=o(b+1);k===T||isNaN(k)||isNaN(T)||!t(x,b)||(r=c._scaler(t(x,b)),n.fillStyle=r?p+&quot;(&quot;+g(r).join(&quot;,&quot;)+&quot;)&quot;:&quot;rgba(0,0,0,0)&quot;,n.fillRect(m,T,y-m,k-T))}}return e}}))}},{&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;./constants&quot;:1108,d3:169}],1115:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t){n.select(t).selectAll(&quot;.im image&quot;).style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity}))}},{d3:169}],1116:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;../../lib/extend&quot;).extendDeep,a=t(&quot;../../plot_api/edit_types&quot;).overrideAll,o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../components/color/attributes&quot;),l=t(&quot;../../plots/domain&quot;).attributes,c=t(&quot;../../plots/cartesian/layout_attributes&quot;),u=t(&quot;../../plot_api/plot_template&quot;).templatedArray,f=t(&quot;../../constants/delta.js&quot;),h=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,o({editType:&quot;plot&quot;,colorEditType:&quot;plot&quot;})),p={color:{valType:&quot;color&quot;,editType:&quot;plot&quot;},line:{color:{valType:&quot;color&quot;,dflt:s.defaultLine,editType:&quot;plot&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},thickness:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;plot&quot;},editType:&quot;calc&quot;},d={valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},g=u(&quot;step&quot;,i({},p,{range:d}));e.exports={mode:{valType:&quot;flaglist&quot;,editType:&quot;calc&quot;,flags:[&quot;number&quot;,&quot;delta&quot;,&quot;gauge&quot;],dflt:&quot;number&quot;},value:{valType:&quot;number&quot;,editType:&quot;calc&quot;,anim:!0},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;plot&quot;},domain:l({name:&quot;indicator&quot;,trace:!0,editType:&quot;calc&quot;}),title:{text:{valType:&quot;string&quot;,editType:&quot;plot&quot;},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;plot&quot;},font:n({},h,{}),editType:&quot;plot&quot;},number:{valueformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},font:n({},h,{}),prefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},suffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;},delta:{reference:{valType:&quot;number&quot;,editType:&quot;calc&quot;},position:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;right&quot;],dflt:&quot;bottom&quot;,editType:&quot;plot&quot;},relative:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;,dflt:!1},valueformat:{valType:&quot;string&quot;,editType:&quot;plot&quot;},increasing:{symbol:{valType:&quot;string&quot;,dflt:f.INCREASING.SYMBOL,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:f.INCREASING.COLOR,editType:&quot;plot&quot;},editType:&quot;plot&quot;},decreasing:{symbol:{valType:&quot;string&quot;,dflt:f.DECREASING.SYMBOL,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:f.DECREASING.COLOR,editType:&quot;plot&quot;},editType:&quot;plot&quot;},font:n({},h,{}),editType:&quot;calc&quot;},gauge:{shape:{valType:&quot;enumerated&quot;,editType:&quot;plot&quot;,dflt:&quot;angular&quot;,values:[&quot;angular&quot;,&quot;bullet&quot;]},bar:i({},p,{color:{dflt:&quot;green&quot;}}),bgcolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:s.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},axis:a({range:d,visible:n({},c.visible,{dflt:!0}),tickmode:c.tickmode,nticks:c.nticks,tick0:c.tick0,dtick:c.dtick,tickvals:c.tickvals,ticktext:c.ticktext,ticks:n({},c.ticks,{dflt:&quot;outside&quot;}),ticklen:c.ticklen,tickwidth:c.tickwidth,tickcolor:c.tickcolor,showticklabels:c.showticklabels,tickfont:o({}),tickangle:c.tickangle,tickformat:c.tickformat,tickformatstops:c.tickformatstops,tickprefix:c.tickprefix,showtickprefix:c.showtickprefix,ticksuffix:c.ticksuffix,showticksuffix:c.showticksuffix,separatethousands:c.separatethousands,exponentformat:c.exponentformat,minexponent:c.minexponent,showexponent:c.showexponent,editType:&quot;plot&quot;},&quot;plot&quot;),steps:g,threshold:{line:{color:n({},p.line.color,{}),width:n({},p.line.width,{dflt:1}),editType:&quot;plot&quot;},thickness:n({},p.thickness,{dflt:.85}),value:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:!1},editType:&quot;plot&quot;},editType:&quot;plot&quot;}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../constants/delta.js&quot;:747,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856}],1117:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;indicator&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1118:[function(t,e,r){&quot;use strict&quot;;e.exports={calc:function(t,e){var r=[],n=e.value;&quot;number&quot;!=typeof e._lastValue&amp;&amp;(e._lastValue=e.value);var i=e._lastValue,a=i;return e._hasDelta&amp;&amp;&quot;number&quot;==typeof e.delta.reference&amp;&amp;(a=e.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}}},{}],1119:[function(t,e,r){&quot;use strict&quot;;e.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}},{}],1120:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../../plot_api/plot_template&quot;),s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;./constants.js&quot;),c=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),u=t(&quot;../../plots/cartesian/tick_mark_defaults&quot;),f=t(&quot;../../plots/cartesian/tick_label_defaults&quot;);function h(t,e){function r(r,a){return n.coerce(t,e,i.gauge.steps,r,a)}r(&quot;color&quot;),r(&quot;line.color&quot;),r(&quot;line.width&quot;),r(&quot;range&quot;),r(&quot;thickness&quot;)}e.exports={supplyDefaults:function(t,e,r,p){function d(r,a){return n.coerce(t,e,i,r,a)}a(e,p,d),d(&quot;mode&quot;),e._hasNumber=-1!==e.mode.indexOf(&quot;number&quot;),e._hasDelta=-1!==e.mode.indexOf(&quot;delta&quot;),e._hasGauge=-1!==e.mode.indexOf(&quot;gauge&quot;);var g=d(&quot;value&quot;);e._range=[0,&quot;number&quot;==typeof g?1.5*g:1];var m,v,y,x,b,_,w=new Array(2);function T(t,e){return n.coerce(y,x,i.gauge,t,e)}function k(t,e){return n.coerce(b,_,i.gauge.axis,t,e)}if(e._hasNumber&amp;&amp;(d(&quot;number.valueformat&quot;),d(&quot;number.font.color&quot;,p.font.color),d(&quot;number.font.family&quot;,p.font.family),d(&quot;number.font.size&quot;),void 0===e.number.font.size&amp;&amp;(e.number.font.size=l.defaultNumberFontSize,w[0]=!0),d(&quot;number.prefix&quot;),d(&quot;number.suffix&quot;),m=e.number.font.size),e._hasDelta&amp;&amp;(d(&quot;delta.font.color&quot;,p.font.color),d(&quot;delta.font.family&quot;,p.font.family),d(&quot;delta.font.size&quot;),void 0===e.delta.font.size&amp;&amp;(e.delta.font.size=(e._hasNumber?.5:1)*(m||l.defaultNumberFontSize),w[1]=!0),d(&quot;delta.reference&quot;,e.value),d(&quot;delta.relative&quot;),d(&quot;delta.valueformat&quot;,e.delta.relative?&quot;2%&quot;:&quot;&quot;),d(&quot;delta.increasing.symbol&quot;),d(&quot;delta.increasing.color&quot;),d(&quot;delta.decreasing.symbol&quot;),d(&quot;delta.decreasing.color&quot;),d(&quot;delta.position&quot;),v=e.delta.font.size),e._scaleNumbers=(!e._hasNumber||w[0])&amp;&amp;(!e._hasDelta||w[1])||!1,d(&quot;title.font.color&quot;,p.font.color),d(&quot;title.font.family&quot;,p.font.family),d(&quot;title.font.size&quot;,.25*(m||v||l.defaultNumberFontSize)),d(&quot;title.text&quot;),e._hasGauge){(y=t.gauge)||(y={}),x=o.newContainer(e,&quot;gauge&quot;),T(&quot;shape&quot;),(e._isBullet=&quot;bullet&quot;===e.gauge.shape)||d(&quot;title.align&quot;,&quot;center&quot;),(e._isAngular=&quot;angular&quot;===e.gauge.shape)||d(&quot;align&quot;,&quot;center&quot;),T(&quot;bgcolor&quot;,p.paper_bgcolor),T(&quot;borderwidth&quot;),T(&quot;bordercolor&quot;),T(&quot;bar.color&quot;),T(&quot;bar.line.color&quot;),T(&quot;bar.line.width&quot;),T(&quot;bar.thickness&quot;,l.valueThickness*(&quot;bullet&quot;===e.gauge.shape?.5:1)),s(y,x,{name:&quot;steps&quot;,handleItemDefaults:h}),T(&quot;threshold.value&quot;),T(&quot;threshold.thickness&quot;),T(&quot;threshold.line.width&quot;),T(&quot;threshold.line.color&quot;),b={},y&amp;&amp;(b=y.axis||{}),_=o.newContainer(x,&quot;axis&quot;),k(&quot;visible&quot;),e._range=k(&quot;range&quot;,e._range);var M={outerTicks:!0};c(b,_,k,&quot;linear&quot;),f(b,_,k,&quot;linear&quot;,M),u(b,_,k,M)}else d(&quot;title.align&quot;,&quot;center&quot;),d(&quot;align&quot;,&quot;center&quot;),e._isAngular=e._isBullet=!1;e._length=null}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/tick_label_defaults&quot;:849,&quot;../../plots/cartesian/tick_mark_defaults&quot;:850,&quot;../../plots/cartesian/tick_value_defaults&quot;:851,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1116,&quot;./constants.js&quot;:1119}],1121:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;indicator&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;svg&quot;,&quot;noOpacity&quot;,&quot;noHover&quot;],animatable:!0,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./plot&quot;),meta:{}}},{&quot;./attributes&quot;:1116,&quot;./base_plot&quot;:1117,&quot;./calc&quot;:1118,&quot;./defaults&quot;:1120,&quot;./plot&quot;:1122}],1122:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=i.strScale,o=i.strTranslate,s=i.rad2deg,l=t(&quot;../../constants/alignment&quot;).MID_SHIFT,c=t(&quot;../../components/drawing&quot;),u=t(&quot;./constants&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../plots/cartesian/axes&quot;),p=t(&quot;../../plots/cartesian/axis_defaults&quot;),d=t(&quot;../../plots/cartesian/position_defaults&quot;),g=t(&quot;../../plots/cartesian/layout_attributes&quot;),m=t(&quot;../../components/color&quot;),v={left:&quot;start&quot;,center:&quot;middle&quot;,right:&quot;end&quot;},y={left:0,center:.5,right:1},x=/[yzafpn\xb5mkMGTPEZY]/;function b(t){return t&amp;&amp;t.duration&gt;0}function _(t){t.each((function(t){m.stroke(n.select(this),t.line.color)})).each((function(t){m.fill(n.select(this),t.color)})).style(&quot;stroke-width&quot;,(function(t){return t.line.width}))}function w(t,e,r){var n=t._fullLayout,a=i.extendFlat({type:&quot;linear&quot;,ticks:&quot;outside&quot;,range:r,showline:!0},e),o={type:&quot;linear&quot;,_id:&quot;x&quot;+e._id},s={letter:&quot;x&quot;,font:n.font,noHover:!0,noTickson:!0};function l(t,e){return i.coerce(a,o,g,t,e)}return p(a,o,l,s,n),d(a,o,l,s),o}function T(t,e,r){return[Math.min(e/t.width,r/t.height),t,e+&quot;x&quot;+r]}function k(t,e,r,i){var a=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;text&quot;),o=n.select(a);return o.text(t).attr(&quot;x&quot;,0).attr(&quot;y&quot;,0).attr(&quot;text-anchor&quot;,r).attr(&quot;data-unformatted&quot;,t).call(f.convertToTspans,i).call(c.font,e),c.bBox(o.node())}function M(t,e,r,n,a,o){var s=&quot;_cache&quot;+e;t[s]&amp;&amp;t[s].key===a||(t[s]={key:a,value:r});var l=i.aggNums(o,null,[t[s].value,n],2);return t[s].value=l,l}e.exports=function(t,e,r,p){var d,g=t._fullLayout;b(r)&amp;&amp;p&amp;&amp;(d=p()),i.makeTraceGroups(g._indicatorlayer,e,&quot;trace&quot;).each((function(e){var p,A,S,E,C,L=e[0].trace,I=n.select(this),P=L._hasGauge,z=L._isAngular,O=L._isBullet,D=L.domain,R={w:g._size.w*(D.x[1]-D.x[0]),h:g._size.h*(D.y[1]-D.y[0]),l:g._size.l+g._size.w*D.x[0],r:g._size.r+g._size.w*(1-D.x[1]),t:g._size.t+g._size.h*(1-D.y[1]),b:g._size.b+g._size.h*D.y[0]},F=R.l+R.w/2,B=R.t+R.h/2,N=Math.min(R.w/2,R.h),j=u.innerRadius*N,U=L.align||&quot;center&quot;;if(A=B,P){if(z&amp;&amp;(p=F,A=B+N/2,S=function(t){return function(t,e){var r=Math.sqrt(t.width/2*(t.width/2)+t.height*t.height);return[e/r,t,e]}(t,.9*j)}),O){var V=u.bulletPadding,q=1-u.bulletNumberDomainSize+V;p=R.l+(q+(1-q)*y[U])*R.w,S=function(t){return T(t,(u.bulletNumberDomainSize-V)*R.w,R.h)}}}else p=R.l+y[U]*R.w,S=function(t){return T(t,R.w,R.h)};!function(t,e,r,s){var l,u,p,d=r[0].trace,g=s.numbersX,_=s.numbersY,T=d.align||&quot;center&quot;,A=v[T],S=s.transitionOpts,E=s.onComplete,C=i.ensureSingle(e,&quot;g&quot;,&quot;numbers&quot;),L=[];d._hasNumber&amp;&amp;L.push(&quot;number&quot;);d._hasDelta&amp;&amp;(L.push(&quot;delta&quot;),&quot;left&quot;===d.delta.position&amp;&amp;L.reverse());var I=C.selectAll(&quot;text&quot;).data(L);function P(e,r,n,i){if(!e.match(&quot;s&quot;)||n&gt;=0==i&gt;=0||r(n).slice(-1).match(x)||r(i).slice(-1).match(x))return r;var a=e.slice().replace(&quot;s&quot;,&quot;f&quot;).replace(/\d+/,(function(t){return parseInt(t)-1})),o=w(t,{tickformat:a});return function(t){return Math.abs(t)&lt;1?h.tickText(o,t).text:r(t)}}I.enter().append(&quot;text&quot;),I.attr(&quot;text-anchor&quot;,(function(){return A})).attr(&quot;class&quot;,(function(t){return t})).attr(&quot;x&quot;,null).attr(&quot;y&quot;,null).attr(&quot;dx&quot;,null).attr(&quot;dy&quot;,null),I.exit().remove();var z,O=d.mode+d.align;d._hasDelta&amp;&amp;(z=function(){var e=w(t,{tickformat:d.delta.valueformat},d._range);e.setScale(),h.prepTicks(e);var i=function(t){return h.tickText(e,t).text},a=function(t){return d.delta.relative?t.relativeDelta:t.delta},o=function(t,e){return 0===t||&quot;number&quot;!=typeof t||isNaN(t)?&quot;-&quot;:(t&gt;0?d.delta.increasing.symbol:d.delta.decreasing.symbol)+e(t)},s=function(t){return t.delta&gt;=0?d.delta.increasing.color:d.delta.decreasing.color};void 0===d._deltaLastValue&amp;&amp;(d._deltaLastValue=a(r[0]));var l=C.select(&quot;text.delta&quot;);function p(){l.text(o(a(r[0]),i)).call(m.fill,s(r[0])).call(f.convertToTspans,t)}return l.call(c.font,d.delta.font).call(m.fill,s({delta:d._deltaLastValue})),b(S)?l.transition().duration(S.duration).ease(S.easing).tween(&quot;text&quot;,(function(){var t=n.select(this),e=a(r[0]),l=d._deltaLastValue,c=P(d.delta.valueformat,i,l,e),u=n.interpolateNumber(l,e);return d._deltaLastValue=e,function(e){t.text(o(u(e),c)),t.call(m.fill,s({delta:u(e)}))}})).each(&quot;end&quot;,(function(){p(),E&amp;&amp;E()})).each(&quot;interrupt&quot;,(function(){p(),E&amp;&amp;E()})):p(),u=k(o(a(r[0]),i),d.delta.font,A,t),l}(),O+=d.delta.position+d.delta.font.size+d.delta.font.family+d.delta.valueformat,O+=d.delta.increasing.symbol+d.delta.decreasing.symbol,p=u);d._hasNumber&amp;&amp;(!function(){var e=w(t,{tickformat:d.number.valueformat},d._range);e.setScale(),h.prepTicks(e);var i=function(t){return h.tickText(e,t).text},a=d.number.suffix,o=d.number.prefix,s=C.select(&quot;text.number&quot;);function u(){var e=&quot;number&quot;==typeof r[0].y?o+i(r[0].y)+a:&quot;-&quot;;s.text(e).call(c.font,d.number.font).call(f.convertToTspans,t)}b(S)?s.transition().duration(S.duration).ease(S.easing).each(&quot;end&quot;,(function(){u(),E&amp;&amp;E()})).each(&quot;interrupt&quot;,(function(){u(),E&amp;&amp;E()})).attrTween(&quot;text&quot;,(function(){var t=n.select(this),e=n.interpolateNumber(r[0].lastY,r[0].y);d._lastValue=r[0].y;var s=P(d.number.valueformat,i,r[0].lastY,r[0].y);return function(r){t.text(o+s(e(r))+a)}})):u(),l=k(o+i(r[0].y)+a,d.number.font,A,t)}(),O+=d.number.font.size+d.number.font.family+d.number.valueformat+d.number.suffix+d.number.prefix,p=l);if(d._hasDelta&amp;&amp;d._hasNumber){var D,R,F=[(l.left+l.right)/2,(l.top+l.bottom)/2],B=[(u.left+u.right)/2,(u.top+u.bottom)/2],N=.75*d.delta.font.size;&quot;left&quot;===d.delta.position&amp;&amp;(D=M(d,&quot;deltaPos&quot;,0,-1*(l.width*y[d.align]+u.width*(1-y[d.align])+N),O,Math.min),R=F[1]-B[1],p={width:l.width+u.width+N,height:Math.max(l.height,u.height),left:u.left+D,right:l.right,top:Math.min(l.top,u.top+R),bottom:Math.max(l.bottom,u.bottom+R)}),&quot;right&quot;===d.delta.position&amp;&amp;(D=M(d,&quot;deltaPos&quot;,0,l.width*(1-y[d.align])+u.width*y[d.align]+N,O,Math.max),R=F[1]-B[1],p={width:l.width+u.width+N,height:Math.max(l.height,u.height),left:l.left,right:u.right+D,top:Math.min(l.top,u.top+R),bottom:Math.max(l.bottom,u.bottom+R)}),&quot;bottom&quot;===d.delta.position&amp;&amp;(D=null,R=u.height,p={width:Math.max(l.width,u.width),height:l.height+u.height,left:Math.min(l.left,u.left),right:Math.max(l.right,u.right),top:l.bottom-l.height,bottom:l.bottom+u.height}),&quot;top&quot;===d.delta.position&amp;&amp;(D=null,R=l.top,p={width:Math.max(l.width,u.width),height:l.height+u.height,left:Math.min(l.left,u.left),right:Math.max(l.right,u.right),top:l.bottom-l.height-u.height,bottom:l.bottom}),z.attr({dx:D,dy:R})}(d._hasNumber||d._hasDelta)&amp;&amp;C.attr(&quot;transform&quot;,(function(){var t=s.numbersScaler(p);O+=t[2];var e,r=M(d,&quot;numbersScale&quot;,1,t[0],O,Math.min);d._scaleNumbers||(r=1),e=d._isAngular?_-r*p.bottom:_-r*(p.top+p.bottom)/2,d._numbersTop=r*p.top+e;var n=p[T];&quot;center&quot;===T&amp;&amp;(n=(p.left+p.right)/2);var i=g-r*n;return i=M(d,&quot;numbersTranslate&quot;,0,i,O,Math.max),o(i,e)+a(r)}))}(t,I,e,{numbersX:p,numbersY:A,numbersScaler:S,transitionOpts:r,onComplete:d}),P&amp;&amp;(E={range:L.gauge.axis.range,color:L.gauge.bgcolor,line:{color:L.gauge.bordercolor,width:0},thickness:1},C={range:L.gauge.axis.range,color:&quot;rgba(0, 0, 0, 0)&quot;,line:{color:L.gauge.bordercolor,width:L.gauge.borderwidth},thickness:1});var H=I.selectAll(&quot;g.angular&quot;).data(z?e:[]);H.exit().remove();var G=I.selectAll(&quot;g.angularaxis&quot;).data(z?e:[]);G.exit().remove(),z&amp;&amp;function(t,e,r,i){var a,c,u,f,p=r[0].trace,d=i.size,g=i.radius,m=i.innerRadius,v=i.gaugeBg,y=i.gaugeOutline,x=[d.l+d.w/2,d.t+d.h/2+g/2],T=i.gauge,k=i.layer,M=i.transitionOpts,A=i.onComplete,S=Math.PI/2;function E(t){var e=p.gauge.axis.range[0],r=(t-e)/(p.gauge.axis.range[1]-e)*Math.PI-S;return r&lt;-S?-S:r&gt;S?S:r}function C(t){return n.svg.arc().innerRadius((m+g)/2-t/2*(g-m)).outerRadius((m+g)/2+t/2*(g-m)).startAngle(-S)}function L(t){t.attr(&quot;d&quot;,(function(t){return C(t.thickness).startAngle(E(t.range[0])).endAngle(E(t.range[1]))()}))}T.enter().append(&quot;g&quot;).classed(&quot;angular&quot;,!0),T.attr(&quot;transform&quot;,o(x[0],x[1])),k.enter().append(&quot;g&quot;).classed(&quot;angularaxis&quot;,!0).classed(&quot;crisp&quot;,!0),k.selectAll(&quot;g.xangularaxistick,path,text&quot;).remove(),(a=w(t,p.gauge.axis)).type=&quot;linear&quot;,a.range=p.gauge.axis.range,a._id=&quot;xangularaxis&quot;,a.setScale();var I=function(t){return(a.range[0]-t.x)/(a.range[1]-a.range[0])*Math.PI+Math.PI},P={},z=h.makeLabelFns(a,0).labelStandoff;P.xFn=function(t){var e=I(t);return Math.cos(e)*z},P.yFn=function(t){var e=I(t),r=Math.sin(e)&gt;0?.2:1;return-Math.sin(e)*(z+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*l)},P.anchorFn=function(t){var e=I(t),r=Math.cos(e);return Math.abs(r)&lt;.1?&quot;middle&quot;:r&gt;0?&quot;start&quot;:&quot;end&quot;},P.heightFn=function(t,e,r){var n=I(t);return-.5*(1+Math.sin(n))*r};var O=function(t){return o(x[0]+g*Math.cos(t),x[1]-g*Math.sin(t))};u=function(t){return O(I(t))};if(c=h.calcTicks(a),f=h.getTickSigns(a)[2],a.visible){f=&quot;inside&quot;===a.ticks?-1:1;var D=(a.linewidth||1)/2;h.drawTicks(t,a,{vals:c,layer:k,path:&quot;M&quot;+f*D+&quot;,0h&quot;+f*a.ticklen,transFn:function(t){var e=I(t);return O(e)+&quot;rotate(&quot;+-s(e)+&quot;)&quot;}}),h.drawLabels(t,a,{vals:c,layer:k,transFn:u,labelFns:P})}var R=[v].concat(p.gauge.steps),F=T.selectAll(&quot;g.bg-arc&quot;).data(R);F.enter().append(&quot;g&quot;).classed(&quot;bg-arc&quot;,!0).append(&quot;path&quot;),F.select(&quot;path&quot;).call(L).call(_),F.exit().remove();var B=C(p.gauge.bar.thickness),N=T.selectAll(&quot;g.value-arc&quot;).data([p.gauge.bar]);N.enter().append(&quot;g&quot;).classed(&quot;value-arc&quot;,!0).append(&quot;path&quot;);var j=N.select(&quot;path&quot;);b(M)?(j.transition().duration(M.duration).ease(M.easing).each(&quot;end&quot;,(function(){A&amp;&amp;A()})).each(&quot;interrupt&quot;,(function(){A&amp;&amp;A()})).attrTween(&quot;d&quot;,(U=B,V=E(r[0].lastY),q=E(r[0].y),function(){var t=n.interpolate(V,q);return function(e){return U.endAngle(t(e))()}})),p._lastValue=r[0].y):j.attr(&quot;d&quot;,&quot;number&quot;==typeof r[0].y?B.endAngle(E(r[0].y)):&quot;M0,0Z&quot;);var U,V,q;j.call(_),N.exit().remove(),R=[];var H=p.gauge.threshold.value;H&amp;&amp;R.push({range:[H,H],color:p.gauge.threshold.color,line:{color:p.gauge.threshold.line.color,width:p.gauge.threshold.line.width},thickness:p.gauge.threshold.thickness});var G=T.selectAll(&quot;g.threshold-arc&quot;).data(R);G.enter().append(&quot;g&quot;).classed(&quot;threshold-arc&quot;,!0).append(&quot;path&quot;),G.select(&quot;path&quot;).call(L).call(_),G.exit().remove();var Y=T.selectAll(&quot;g.gauge-outline&quot;).data([y]);Y.enter().append(&quot;g&quot;).classed(&quot;gauge-outline&quot;,!0).append(&quot;path&quot;),Y.select(&quot;path&quot;).call(L).call(_),Y.exit().remove()}(t,0,e,{radius:N,innerRadius:j,gauge:H,layer:G,size:R,gaugeBg:E,gaugeOutline:C,transitionOpts:r,onComplete:d});var Y=I.selectAll(&quot;g.bullet&quot;).data(O?e:[]);Y.exit().remove();var W=I.selectAll(&quot;g.bulletaxis&quot;).data(O?e:[]);W.exit().remove(),O&amp;&amp;function(t,e,r,n){var i,a,s,l,c,f=r[0].trace,p=n.gauge,d=n.layer,g=n.gaugeBg,v=n.gaugeOutline,y=n.size,x=f.domain,T=n.transitionOpts,k=n.onComplete;p.enter().append(&quot;g&quot;).classed(&quot;bullet&quot;,!0),p.attr(&quot;transform&quot;,o(y.l,y.t)),d.enter().append(&quot;g&quot;).classed(&quot;bulletaxis&quot;,!0).classed(&quot;crisp&quot;,!0),d.selectAll(&quot;g.xbulletaxistick,path,text&quot;).remove();var M=y.h,A=f.gauge.bar.thickness*M,S=x.x[0],E=x.x[0]+(x.x[1]-x.x[0])*(f._hasNumber||f._hasDelta?1-u.bulletNumberDomainSize:1);(i=w(t,f.gauge.axis))._id=&quot;xbulletaxis&quot;,i.domain=[S,E],i.setScale(),a=h.calcTicks(i),s=h.makeTransTickFn(i),l=h.getTickSigns(i)[2],c=y.t+y.h,i.visible&amp;&amp;(h.drawTicks(t,i,{vals:&quot;inside&quot;===i.ticks?h.clipEnds(i,a):a,layer:d,path:h.makeTickPath(i,c,l),transFn:s}),h.drawLabels(t,i,{vals:a,layer:d,transFn:s,labelFns:h.makeLabelFns(i,c)}));function C(t){t.attr(&quot;width&quot;,(function(t){return Math.max(0,i.c2p(t.range[1])-i.c2p(t.range[0]))})).attr(&quot;x&quot;,(function(t){return i.c2p(t.range[0])})).attr(&quot;y&quot;,(function(t){return.5*(1-t.thickness)*M})).attr(&quot;height&quot;,(function(t){return t.thickness*M}))}var L=[g].concat(f.gauge.steps),I=p.selectAll(&quot;g.bg-bullet&quot;).data(L);I.enter().append(&quot;g&quot;).classed(&quot;bg-bullet&quot;,!0).append(&quot;rect&quot;),I.select(&quot;rect&quot;).call(C).call(_),I.exit().remove();var P=p.selectAll(&quot;g.value-bullet&quot;).data([f.gauge.bar]);P.enter().append(&quot;g&quot;).classed(&quot;value-bullet&quot;,!0).append(&quot;rect&quot;),P.select(&quot;rect&quot;).attr(&quot;height&quot;,A).attr(&quot;y&quot;,(M-A)/2).call(_),b(T)?P.select(&quot;rect&quot;).transition().duration(T.duration).ease(T.easing).each(&quot;end&quot;,(function(){k&amp;&amp;k()})).each(&quot;interrupt&quot;,(function(){k&amp;&amp;k()})).attr(&quot;width&quot;,Math.max(0,i.c2p(Math.min(f.gauge.axis.range[1],r[0].y)))):P.select(&quot;rect&quot;).attr(&quot;width&quot;,&quot;number&quot;==typeof r[0].y?Math.max(0,i.c2p(Math.min(f.gauge.axis.range[1],r[0].y))):0);P.exit().remove();var z=r.filter((function(){return f.gauge.threshold.value})),O=p.selectAll(&quot;g.threshold-bullet&quot;).data(z);O.enter().append(&quot;g&quot;).classed(&quot;threshold-bullet&quot;,!0).append(&quot;line&quot;),O.select(&quot;line&quot;).attr(&quot;x1&quot;,i.c2p(f.gauge.threshold.value)).attr(&quot;x2&quot;,i.c2p(f.gauge.threshold.value)).attr(&quot;y1&quot;,(1-f.gauge.threshold.thickness)/2*M).attr(&quot;y2&quot;,(1-(1-f.gauge.threshold.thickness)/2)*M).call(m.stroke,f.gauge.threshold.line.color).style(&quot;stroke-width&quot;,f.gauge.threshold.line.width),O.exit().remove();var D=p.selectAll(&quot;g.gauge-outline&quot;).data([v]);D.enter().append(&quot;g&quot;).classed(&quot;gauge-outline&quot;,!0).append(&quot;rect&quot;),D.select(&quot;rect&quot;).call(C).call(_),D.exit().remove()}(t,0,e,{gauge:Y,layer:W,size:R,gaugeBg:E,gaugeOutline:C,transitionOpts:r,onComplete:d});var X=I.selectAll(&quot;text.title&quot;).data(e);X.exit().remove(),X.enter().append(&quot;text&quot;).classed(&quot;title&quot;,!0),X.attr(&quot;text-anchor&quot;,(function(){return O?v.right:v[L.title.align]})).text(L.title.text).call(c.font,L.title.font).call(f.convertToTspans,t),X.attr(&quot;transform&quot;,(function(){var t,e=R.l+R.w*y[L.title.align],r=u.titlePadding,n=c.bBox(X.node());if(P){if(z)if(L.gauge.axis.visible)t=c.bBox(G.node()).top-r-n.bottom;else t=R.t+R.h/2-N/2-n.bottom-r;O&amp;&amp;(t=A-(n.top+n.bottom)/2,e=R.l-u.bulletPadding*R.w)}else t=L._numbersTop-r-n.bottom;return o(e,t)}))}))}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_defaults&quot;:830,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/cartesian/position_defaults&quot;:845,&quot;./constants&quot;:1119,d3:169}],1123:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../mesh3d/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll;var c=e.exports=l(s({x:{valType:&quot;data_array&quot;},y:{valType:&quot;data_array&quot;},z:{valType:&quot;data_array&quot;},value:{valType:&quot;data_array&quot;},isomin:{valType:&quot;number&quot;},isomax:{valType:&quot;number&quot;},surface:{show:{valType:&quot;boolean&quot;,dflt:!0},count:{valType:&quot;integer&quot;,dflt:2,min:1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1},pattern:{valType:&quot;flaglist&quot;,flags:[&quot;A&quot;,&quot;B&quot;,&quot;C&quot;,&quot;D&quot;,&quot;E&quot;],extras:[&quot;all&quot;,&quot;odd&quot;,&quot;even&quot;],dflt:&quot;all&quot;}},spaceframe:{show:{valType:&quot;boolean&quot;,dflt:!1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:.15}},slices:{x:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},y:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},z:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}}},caps:{x:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},y:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},z:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}}},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertemplate:i(),showlegend:s({},o.showlegend,{dflt:!1})},n(&quot;&quot;,{colorAttr:&quot;`value`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{opacity:a.opacity,lightposition:a.lightposition,lighting:a.lighting,flatshading:a.flatshading,contour:a.contour,hoverinfo:s({},o.hoverinfo)}),&quot;calc&quot;,&quot;nested&quot;);c.flatshading.dflt=!0,c.lighting.facenormalsepsilon.dflt=0,c.x.editType=c.y.editType=c.z.editType=c.value.editType=&quot;calc+clearAxisTypes&quot;,c.transforms=void 0},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../mesh3d/attributes&quot;:1128}],1124:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;),i=t(&quot;../streamtube/calc&quot;).processGrid,a=t(&quot;../streamtube/calc&quot;).filter;e.exports=function(t,e){e._len=Math.min(e.x.length,e.y.length,e.z.length,e.value.length),e._x=a(e.x,e._len),e._y=a(e.y,e._len),e._z=a(e.z,e._len),e._value=a(e.value,e._len);var r=i(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;for(var o=1/0,s=-1/0,l=0;l&lt;e._len;l++){var c=e._value[l];o=Math.min(o,c),s=Math.max(s,c)}e._minValues=o,e._maxValues=s,e._vMin=void 0===e.isomin||null===e.isomin?o:e.isomin,e._vMax=void 0===e.isomax||null===e.isomin?s:e.isomax,n(t,e,{vals:[e._vMin,e._vMax],containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../streamtube/calc&quot;:1295}],1125:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,a=t(&quot;../../lib/str2rgbarray&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts,s=t(&quot;../../plots/gl3d/zip3&quot;),l=function(t,e){for(var r=e.length-1;r&gt;0;r--){var n=Math.min(e[r],e[r-1]),i=Math.max(e[r],e[r-1]);if(i&gt;n&amp;&amp;n&lt;t&amp;&amp;t&lt;=i)return{id:r,distRatio:(i-t)/(i-n)}}return{id:0,distRatio:0}};function c(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.data=null,this.showContour=!1}var u=c.prototype;u.handlePick=function(t){if(t.object===this.mesh){var e=t.data.index,r=this.data._meshX[e],n=this.data._meshY[e],i=this.data._meshZ[e],a=this.data._Ys.length,o=this.data._Zs.length,s=l(r,this.data._Xs).id,c=l(n,this.data._Ys).id,u=l(i,this.data._Zs).id,f=t.index=u+o*c+o*a*s;t.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Array.isArray(h)&amp;&amp;void 0!==h[f]?t.textLabel=h[f]:h&amp;&amp;(t.textLabel=h),!0}},u.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map((function(e){return t.d2l(e,0,n)*r}))}this.data=h(t);var l={positions:s(n(r.xaxis,t._meshX,e.dataScale[0],t.xcalendar),n(r.yaxis,t._meshY,e.dataScale[1],t.ycalendar),n(r.zaxis,t._meshZ,e.dataScale[2],t.zcalendar)),cells:s(t._meshI,t._meshJ,t._meshK),lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:a(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading},c=o(t);l.vertexIntensity=t._meshIntensity,l.vertexIntensityBounds=[c.min,c.max],l.colormap=i(t),this.mesh.update(l)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};var f=[&quot;xyz&quot;,&quot;xzy&quot;,&quot;yxz&quot;,&quot;yzx&quot;,&quot;zxy&quot;,&quot;zyx&quot;];function h(t){t._meshI=[],t._meshJ=[],t._meshK=[];var e,r,n,i,a,o,s,c=t.surface.show,u=t.spaceframe.show,h=t.surface.fill,p=t.spaceframe.fill,d=!1,g=!1,m=0,v=t._Xs,y=t._Ys,x=t._Zs,b=v.length,_=y.length,w=x.length,T=f.indexOf(t._gridFill.replace(/-/g,&quot;&quot;).replace(/\+/g,&quot;&quot;)),k=function(t,e,r){switch(T){case 5:return r+w*e+w*_*t;case 4:return r+w*t+w*b*e;case 3:return e+_*r+_*w*t;case 2:return e+_*t+_*b*r;case 1:return t+b*r+b*w*e;default:return t+b*e+b*_*r}},M=t._minValues,A=t._maxValues,S=t._vMin,E=t._vMax;function C(t,e,s){for(var l=o.length,c=r;c&lt;l;c++)if(t===n[c]&amp;&amp;e===i[c]&amp;&amp;s===a[c])return c;return-1}function L(){r=e}function I(){n=[],i=[],a=[],o=[],e=0,L()}function P(t,r,s,l){return n.push(t),i.push(r),a.push(s),o.push(l),++e-1}function z(t,e,r){for(var n=[],i=0;i&lt;t.length;i++)n[i]=t[i]*(1-r)+r*e[i];return n}function O(t){s=t}function D(t,e){return&quot;all&quot;===t||null===t||t.indexOf(e)&gt;-1}function R(t,e){return null===t?e:t}function F(e,r,n){L();var i,a,o,l=[r],c=[n];if(s&gt;=1)l=[r],c=[n];else if(s&gt;0){var u=function(t,e){var r=t[0],n=t[1],i=t[2],a=function(t,e,r){for(var n=[],i=0;i&lt;t.length;i++)n[i]=(t[i]+e[i]+r[i])/3;return n}(r,n,i),o=Math.sqrt(1-s),l=z(a,r,o),c=z(a,n,o),u=z(a,i,o),f=e[0],h=e[1],p=e[2];return{xyzv:[[r,n,c],[c,l,r],[n,i,u],[u,c,n],[i,r,l],[l,u,i]],abc:[[f,h,-1],[-1,-1,f],[h,p,-1],[-1,-1,h],[p,f,-1],[-1,-1,p]]}}(r,n);l=u.xyzv,c=u.abc}for(var f=0;f&lt;l.length;f++){r=l[f],n=c[f];for(var h=[],p=0;p&lt;3;p++){var d=r[p][0],g=r[p][1],v=r[p][2],y=r[p][3],x=n[p]&gt;-1?n[p]:C(d,g,v);h[p]=x&gt;-1?x:P(d,g,v,R(e,y))}i=h[0],a=h[1],o=h[2],t._meshI.push(i),t._meshJ.push(a),t._meshK.push(o),++m}}function B(t,e,r,n){var i=t[3];i&lt;r&amp;&amp;(i=r),i&gt;n&amp;&amp;(i=n);for(var a=(t[3]-i)/(t[3]-e[3]+1e-9),o=[],s=0;s&lt;4;s++)o[s]=(1-a)*t[s]+a*e[s];return o}function N(t,e,r){return t&gt;=e&amp;&amp;t&lt;=r}function j(t){var e=.001*(E-S);return t&gt;=S-e&amp;&amp;t&lt;=E+e}function U(e){for(var r=[],n=0;n&lt;4;n++){var i=e[n];r.push([t._x[i],t._y[i],t._z[i],t._value[i]])}return r}function V(t,e,r,n,i,a){a||(a=1),r=[-1,-1,-1];var o=!1,s=[N(e[0][3],n,i),N(e[1][3],n,i),N(e[2][3],n,i)];if(!s[0]&amp;&amp;!s[1]&amp;&amp;!s[2])return!1;var l=function(t,e,r){return j(e[0][3])&amp;&amp;j(e[1][3])&amp;&amp;j(e[2][3])?(F(t,e,r),!0):a&lt;3&amp;&amp;V(t,e,r,S,E,++a)};if(s[0]&amp;&amp;s[1]&amp;&amp;s[2])return l(t,e,r)||o;var c=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach((function(a){if(s[a[0]]&amp;&amp;s[a[1]]&amp;&amp;!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(h,u,n,i),d=B(h,f,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,o=l(t,[u,f,d],[r[a[0]],r[a[1]],-1])||o,c=!0}})),c||[[0,1,2],[1,2,0],[2,0,1]].forEach((function(a){if(s[a[0]]&amp;&amp;!s[a[1]]&amp;&amp;!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(f,u,n,i),d=B(h,u,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,c=!0}})),o}function q(t,e,r,n){var i=!1,a=U(e),o=[N(a[0][3],r,n),N(a[1][3],r,n),N(a[2][3],r,n),N(a[3][3],r,n)];if(!(o[0]||o[1]||o[2]||o[3]))return i;if(o[0]&amp;&amp;o[1]&amp;&amp;o[2]&amp;&amp;o[3])return g&amp;&amp;(i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(3,0,1),n(2,3,0),n(1,2,3)}(t,a,e)||i),i;var s=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach((function(l){if(o[l[0]]&amp;&amp;o[l[1]]&amp;&amp;o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]];if(g)i=F(t,[c,u,f],[e[l[0]],e[l[1]],e[l[2]]])||i;else{var p=B(h,c,r,n),d=B(h,u,r,n),m=B(h,f,r,n);i=F(null,[p,d,m],[-1,-1,-1])||i}s=!0}})),s?i:([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach((function(l){if(o[l[0]]&amp;&amp;o[l[1]]&amp;&amp;!o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(f,c,r,n),d=B(f,u,r,n),m=B(h,u,r,n),v=B(h,c,r,n);g?(i=F(t,[c,v,p],[e[l[0]],-1,-1])||i,i=F(t,[u,d,m],[e[l[1]],-1,-1])||i):i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(2,3,0)}(null,[p,d,m,v],[-1,-1,-1,-1])||i,s=!0}})),s||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach((function(l){if(o[l[0]]&amp;&amp;!o[l[1]]&amp;&amp;!o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(u,c,r,n),d=B(f,c,r,n),m=B(h,c,r,n);g?(i=F(t,[c,p,d],[e[l[0]],-1,-1])||i,i=F(t,[c,d,m],[e[l[0]],-1,-1])||i,i=F(t,[c,m,p],[e[l[0]],-1,-1])||i):i=F(null,[p,d,m],[-1,-1,-1])||i,s=!0}})),i)}function H(t,e,r,n,i,a,o,s,l,c,u){var f=!1;return d&amp;&amp;(D(t,&quot;A&quot;)&amp;&amp;(f=q(null,[e,r,n,a],c,u)||f),D(t,&quot;B&quot;)&amp;&amp;(f=q(null,[r,n,i,l],c,u)||f),D(t,&quot;C&quot;)&amp;&amp;(f=q(null,[r,a,o,l],c,u)||f),D(t,&quot;D&quot;)&amp;&amp;(f=q(null,[n,a,s,l],c,u)||f),D(t,&quot;E&quot;)&amp;&amp;(f=q(null,[r,n,a,l],c,u)||f)),g&amp;&amp;(f=q(t,[r,n,a,l],c,u)||f),f}function G(t,e,r,n,i,a,o,s){return[!0===s[0]||V(t,U([e,r,n]),[e,r,n],a,o),!0===s[1]||V(t,U([n,i,e]),[n,i,e],a,o)]}function Y(t,e,r,n,i,a,o,s,l){return s?G(t,e,r,i,n,a,o,l):G(t,r,i,n,e,a,o,l)}function W(t,e,r,n,i,a,o){var s,l,c,u,f=!1,h=function(){f=V(t,[s,l,c],[-1,-1,-1],i,a)||f,f=V(t,[c,u,s],[-1,-1,-1],i,a)||f},p=o[0],d=o[1],g=o[2];return p&amp;&amp;(s=z(U([k(e,r-0,n-0)])[0],U([k(e-1,r-0,n-0)])[0],p),l=z(U([k(e,r-0,n-1)])[0],U([k(e-1,r-0,n-1)])[0],p),c=z(U([k(e,r-1,n-1)])[0],U([k(e-1,r-1,n-1)])[0],p),u=z(U([k(e,r-1,n-0)])[0],U([k(e-1,r-1,n-0)])[0],p),h()),d&amp;&amp;(s=z(U([k(e-0,r,n-0)])[0],U([k(e-0,r-1,n-0)])[0],d),l=z(U([k(e-0,r,n-1)])[0],U([k(e-0,r-1,n-1)])[0],d),c=z(U([k(e-1,r,n-1)])[0],U([k(e-1,r-1,n-1)])[0],d),u=z(U([k(e-1,r,n-0)])[0],U([k(e-1,r-1,n-0)])[0],d),h()),g&amp;&amp;(s=z(U([k(e-0,r-0,n)])[0],U([k(e-0,r-0,n-1)])[0],g),l=z(U([k(e-0,r-1,n)])[0],U([k(e-0,r-1,n-1)])[0],g),c=z(U([k(e-1,r-1,n)])[0],U([k(e-1,r-1,n-1)])[0],g),u=z(U([k(e-1,r-0,n)])[0],U([k(e-1,r-0,n-1)])[0],g),h()),f}function X(t,e,r,n,i,a,o,s,l,c,u,f){var h=t;return f?(d&amp;&amp;&quot;even&quot;===t&amp;&amp;(h=null),H(h,e,r,n,i,a,o,s,l,c,u)):(d&amp;&amp;&quot;odd&quot;===t&amp;&amp;(h=null),H(h,l,s,o,a,i,n,r,e,c,u))}function Z(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;w;c++)for(var u=1;u&lt;_;u++)a.push(Y(t,k(l,u-1,c-1),k(l,u-1,c),k(l,u,c-1),k(l,u,c),r,n,(l+u+c)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function J(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;b;c++)for(var u=1;u&lt;w;u++)a.push(Y(t,k(c-1,l,u-1),k(c,l,u-1),k(c-1,l,u),k(c,l,u),r,n,(c+l+u)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function K(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;_;c++)for(var u=1;u&lt;b;u++)a.push(Y(t,k(u-1,c-1,l),k(u-1,c,l),k(u,c-1,l),k(u,c,l),r,n,(u+c+l)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function Q(t,e,r){for(var n=1;n&lt;w;n++)for(var i=1;i&lt;_;i++)for(var a=1;a&lt;b;a++)X(t,k(a-1,i-1,n-1),k(a-1,i-1,n),k(a-1,i,n-1),k(a-1,i,n),k(a,i-1,n-1),k(a,i-1,n),k(a,i,n-1),k(a,i,n),e,r,(a+i+n)%2)}function $(t,e,r){d=!0,Q(t,e,r),d=!1}function tt(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;w;u++)for(var f=1;f&lt;_;f++)o.push(W(t,c,f,u,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function et(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;b;u++)for(var f=1;f&lt;w;f++)o.push(W(t,u,c,f,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function rt(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;_;u++)for(var f=1;f&lt;b;f++)o.push(W(t,f,u,c,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function nt(t,e){for(var r=[],n=t;n&lt;e;n++)r.push(n);return r}return function(){if(I(),function(){for(var e=0;e&lt;b;e++)for(var r=0;r&lt;_;r++)for(var n=0;n&lt;w;n++){var i=k(e,r,n);P(t._x[i],t._y[i],t._z[i],t._value[i])}}(),u&amp;&amp;p&amp;&amp;(O(p),g=!0,Q(null,S,E),g=!1),c&amp;&amp;h){O(h);for(var e=t.surface.pattern,r=t.surface.count,s=0;s&lt;r;s++){var f=1===r?.5:s/(r-1),d=(1-f)*S+f*E,T=Math.abs(d-M)&gt;Math.abs(d-A)?[M,d]:[d,A];$(e,T[0],T[1])}}var C=[[Math.min(S,A),Math.max(S,A)],[Math.min(M,E),Math.max(M,E)]];[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].forEach((function(e){for(var r=[],n=0;n&lt;C.length;n++){var i=0,a=C[n][0],o=C[n][1],s=t.slices[e];if(s.show&amp;&amp;s.fill){O(s.fill);var c=[],u=[],f=[];if(s.locations.length)for(var h=0;h&lt;s.locations.length;h++){var p=l(s.locations[h],&quot;x&quot;===e?v:&quot;y&quot;===e?y:x);0===p.distRatio?c.push(p.id):p.id&gt;0&amp;&amp;(u.push(p.id),&quot;x&quot;===e?f.push([p.distRatio,0,0]):&quot;y&quot;===e?f.push([0,p.distRatio,0]):f.push([0,0,p.distRatio]))}else c=nt(1,&quot;x&quot;===e?b-1:&quot;y&quot;===e?_-1:w-1);u.length&gt;0&amp;&amp;(r[i]=&quot;x&quot;===e?tt(null,u,a,o,f,r[i]):&quot;y&quot;===e?et(null,u,a,o,f,r[i]):rt(null,u,a,o,f,r[i]),i++),c.length&gt;0&amp;&amp;(r[i]=&quot;x&quot;===e?Z(null,c,a,o,r[i]):&quot;y&quot;===e?J(null,c,a,o,r[i]):K(null,c,a,o,r[i]),i++)}var d=t.caps[e];d.show&amp;&amp;d.fill&amp;&amp;(O(d.fill),r[i]=&quot;x&quot;===e?Z(null,[0,b-1],a,o,r[i]):&quot;y&quot;===e?J(null,[0,_-1],a,o,r[i]):K(null,[0,w-1],a,o,r[i]),i++)}})),0===m&amp;&amp;I(),t._meshX=n,t._meshY=i,t._meshZ=a,t._meshIntensity=o,t._Xs=v,t._Ys=y,t._Zs=x}(),t}e.exports={findNearestOnAxis:l,generateIsoMeshes:h,createIsosurfaceTrace:function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new c(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/gl3d/zip3&quot;:881,&quot;gl-mesh3d&quot;:309}],1126:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../../components/colorscale/defaults&quot;);function s(t,e,r,n,a){var s=a(&quot;isomin&quot;),l=a(&quot;isomax&quot;);null!=l&amp;&amp;null!=s&amp;&amp;s&gt;l&amp;&amp;(e.isomin=null,e.isomax=null);var c=a(&quot;x&quot;),u=a(&quot;y&quot;),f=a(&quot;z&quot;),h=a(&quot;value&quot;);c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length?(i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],n),[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].forEach((function(t){var e=&quot;caps.&quot;+t;a(e+&quot;.show&quot;)&amp;&amp;a(e+&quot;.fill&quot;);var r=&quot;slices.&quot;+t;a(r+&quot;.show&quot;)&amp;&amp;(a(r+&quot;.fill&quot;),a(r+&quot;.locations&quot;))})),a(&quot;spaceframe.show&quot;)&amp;&amp;a(&quot;spaceframe.fill&quot;),a(&quot;surface.show&quot;)&amp;&amp;(a(&quot;surface.count&quot;),a(&quot;surface.fill&quot;),a(&quot;surface.pattern&quot;)),a(&quot;contour.show&quot;)&amp;&amp;(a(&quot;contour.color&quot;),a(&quot;contour.width&quot;)),[&quot;text&quot;,&quot;hovertext&quot;,&quot;hovertemplate&quot;,&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lighting.vertexnormalsepsilon&quot;,&quot;lighting.facenormalsepsilon&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;flatshading&quot;,&quot;opacity&quot;].forEach((function(t){a(t)})),o(t,e,n,a,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),e._length=null):e.visible=!1}e.exports={supplyDefaults:function(t,e,r,i){s(t,e,r,i,(function(r,i){return n.coerce(t,e,a,r,i)}))},supplyIsoDefaults:s}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1123}],1127:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,calc:t(&quot;./calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;).createIsosurfaceTrace,moduleType:&quot;trace&quot;,name:&quot;isosurface&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1123,&quot;./calc&quot;:1124,&quot;./convert&quot;:1125,&quot;./defaults&quot;:1126}],1128:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../surface/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},i:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},j:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},k:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertemplate:i({editType:&quot;calc&quot;}),delaunayaxis:{valType:&quot;enumerated&quot;,values:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],dflt:&quot;z&quot;,editType:&quot;calc&quot;},alphahull:{valType:&quot;number&quot;,dflt:-1,editType:&quot;calc&quot;},intensity:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},intensitymode:{valType:&quot;enumerated&quot;,values:[&quot;vertex&quot;,&quot;cell&quot;],dflt:&quot;vertex&quot;,editType:&quot;calc&quot;},color:{valType:&quot;color&quot;,editType:&quot;calc&quot;},vertexcolor:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},facecolor:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},transforms:void 0},n(&quot;&quot;,{colorAttr:&quot;`intensity`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{opacity:a.opacity,flatshading:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},contour:{show:s({},a.contours.x.show,{}),color:a.contours.x.color,width:a.contours.x.width,editType:&quot;calc&quot;},lightposition:{x:s({},a.lightposition.x,{dflt:1e5}),y:s({},a.lightposition.y,{dflt:1e5}),z:s({},a.lightposition.z,{dflt:0}),editType:&quot;calc&quot;},lighting:s({vertexnormalsepsilon:{valType:&quot;number&quot;,min:0,max:1,dflt:1e-12,editType:&quot;calc&quot;},facenormalsepsilon:{valType:&quot;number&quot;,min:0,max:1,dflt:1e-6,editType:&quot;calc&quot;},editType:&quot;calc&quot;},a.lighting),hoverinfo:s({},o.hoverinfo,{editType:&quot;calc&quot;}),showlegend:s({},o.showlegend,{dflt:!1})})},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../surface/attributes&quot;:1311}],1129:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){e.intensity&amp;&amp;n(t,e,{vals:e.intensity,containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651}],1130:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;delaunay-triangulate&quot;),a=t(&quot;alpha-shape&quot;),o=t(&quot;convex-hull&quot;),s=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,l=t(&quot;../../lib/str2rgbarray&quot;),c=t(&quot;../../components/colorscale&quot;).extractOpts,u=t(&quot;../../plots/gl3d/zip3&quot;);function f(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.color=&quot;#fff&quot;,this.data=null,this.showContour=!1}var h=f.prototype;function p(t){for(var e=[],r=t.length,n=0;n&lt;r;n++)e[n]=l(t[n]);return e}function d(t,e,r,n){for(var i=[],a=e.length,o=0;o&lt;a;o++)i[o]=t.d2l(e[o],0,n)*r;return i}function g(t){for(var e=[],r=t.length,n=0;n&lt;r;n++)e[n]=Math.round(t[n]);return e}function m(t,e){for(var r=t.length,n=0;n&lt;r;n++)if(t[n]&lt;=-.5||t[n]&gt;=e-.5)return!1;return!0}h.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index;t.data._cellCenter?t.traceCoordinate=t.data.dataCoordinate:t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]];var r=this.data.hovertext||this.data.text;return Array.isArray(r)&amp;&amp;void 0!==r[e]?t.textLabel=r[e]:r&amp;&amp;(t.textLabel=r),!0}},h.update=function(t){var e=this.scene,r=e.fullSceneLayout;this.data=t;var n,f=t.x.length,h=u(d(r.xaxis,t.x,e.dataScale[0],t.xcalendar),d(r.yaxis,t.y,e.dataScale[1],t.ycalendar),d(r.zaxis,t.z,e.dataScale[2],t.zcalendar));if(t.i&amp;&amp;t.j&amp;&amp;t.k){if(t.i.length!==t.j.length||t.j.length!==t.k.length||!m(t.i,f)||!m(t.j,f)||!m(t.k,f))return;n=u(g(t.i),g(t.j),g(t.k))}else n=0===t.alphahull?o(h):t.alphahull&gt;0?a(t.alphahull,h):function(t,e){for(var r=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].indexOf(t),n=[],a=e.length,o=0;o&lt;a;o++)n[o]=[e[o][(r+1)%3],e[o][(r+2)%3]];return i(n)}(t.delaunayaxis,h);var v={positions:h,cells:n,lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:l(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading};if(t.intensity){var y=c(t);this.color=&quot;#fff&quot;;var x=t.intensitymode;v[x+&quot;Intensity&quot;]=t.intensity,v[x+&quot;IntensityBounds&quot;]=[y.min,y.max],v.colormap=s(t)}else t.vertexcolor?(this.color=t.vertexcolor[0],v.vertexColors=p(t.vertexcolor)):t.facecolor?(this.color=t.facecolor[0],v.cellColors=p(t.facecolor)):(this.color=t.color,v.meshColor=l(t.color));this.mesh.update(v)},h.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new f(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/gl3d/zip3&quot;:881,&quot;alpha-shape&quot;:69,&quot;convex-hull&quot;:135,&quot;delaunay-triangulate&quot;:171,&quot;gl-mesh3d&quot;:309}],1131:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,n){return i.coerce(t,e,o,r,n)}function c(t){var e=t.map((function(t){var e=l(t);return e&amp;&amp;i.isArrayOrTypedArray(e)?e:null}));return e.every((function(t){return t&amp;&amp;t.length===e[0].length}))&amp;&amp;e}c([&quot;x&quot;,&quot;y&quot;,&quot;z&quot;])?(c([&quot;i&quot;,&quot;j&quot;,&quot;k&quot;]),(!e.i||e.j&amp;&amp;e.k)&amp;&amp;(!e.j||e.k&amp;&amp;e.i)&amp;&amp;(!e.k||e.i&amp;&amp;e.j)?(n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],s),[&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lighting.vertexnormalsepsilon&quot;,&quot;lighting.facenormalsepsilon&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;flatshading&quot;,&quot;alphahull&quot;,&quot;delaunayaxis&quot;,&quot;opacity&quot;].forEach((function(t){l(t)})),l(&quot;contour.show&quot;)&amp;&amp;(l(&quot;contour.color&quot;),l(&quot;contour.width&quot;)),&quot;intensity&quot;in t?(l(&quot;intensity&quot;),l(&quot;intensitymode&quot;),a(t,e,s,l,{prefix:&quot;&quot;,cLetter:&quot;c&quot;})):(e.showscale=!1,&quot;facecolor&quot;in t?l(&quot;facecolor&quot;):&quot;vertexcolor&quot;in t?l(&quot;vertexcolor&quot;):l(&quot;color&quot;,r)),l(&quot;text&quot;),l(&quot;hovertext&quot;),l(&quot;hovertemplate&quot;),e._length=null):e.visible=!1):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1128}],1132:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;mesh3d&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1128,&quot;./calc&quot;:1129,&quot;./convert&quot;:1130,&quot;./defaults&quot;:1131}],1133:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).extendFlat,i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../components/drawing/attributes&quot;).dash,o=t(&quot;../../components/fx/attributes&quot;),s=t(&quot;../../constants/delta.js&quot;),l=s.INCREASING.COLOR,c=s.DECREASING.COLOR,u=i.line;function f(t){return{line:{color:n({},u.color,{dflt:t}),width:u.width,dash:a,editType:&quot;style&quot;},editType:&quot;style&quot;}}e.exports={xperiod:i.xperiod,xperiod0:i.xperiod0,xperiodalignment:i.xperiodalignment,x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},open:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},high:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},low:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},close:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{width:n({},u.width,{}),dash:n({},a,{}),editType:&quot;style&quot;},increasing:f(l),decreasing:f(c),text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},tickwidth:{valType:&quot;number&quot;,min:0,max:.5,dflt:.3,editType:&quot;calc&quot;},hoverlabel:n({},o.hoverlabel,{split:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;style&quot;}})}},{&quot;../../components/drawing/attributes&quot;:664,&quot;../../components/fx/attributes&quot;:674,&quot;../../constants/delta.js&quot;:747,&quot;../../lib&quot;:778,&quot;../scatter/attributes&quot;:1187}],1134:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=n._,a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r,n){return{o:t,h:e,l:r,c:n}}function c(t,e,r,o,l,c){for(var u=l.makeCalcdata(e,&quot;open&quot;),f=l.makeCalcdata(e,&quot;high&quot;),h=l.makeCalcdata(e,&quot;low&quot;),p=l.makeCalcdata(e,&quot;close&quot;),d=Array.isArray(e.text),g=Array.isArray(e.hovertext),m=!0,v=null,y=!!e.xperiodalignment,x=[],b=0;b&lt;o.length;b++){var _=o[b],w=u[b],T=f[b],k=h[b],M=p[b];if(_!==s&amp;&amp;w!==s&amp;&amp;T!==s&amp;&amp;k!==s&amp;&amp;M!==s){M===w?null!==v&amp;&amp;M!==v&amp;&amp;(m=M&gt;v):m=M&gt;w,v=M;var A=c(w,T,k,M);A.pos=_,A.yc=(w+M)/2,A.i=b,A.dir=m?&quot;increasing&quot;:&quot;decreasing&quot;,A.x=A.pos,A.y=[k,T],y&amp;&amp;(A.orig_p=r[b]),d&amp;&amp;(A.tx=e.text[b]),g&amp;&amp;(A.htx=e.hovertext[b]),x.push(A)}else x.push({pos:_,empty:!0})}return e._extremes[l._id]=a.findExtremes(l,n.concat(h,f),{padded:!0}),x.length&amp;&amp;(x[0].t={labels:{open:i(t,&quot;open:&quot;)+&quot; &quot;,high:i(t,&quot;high:&quot;)+&quot; &quot;,low:i(t,&quot;low:&quot;)+&quot; &quot;,close:i(t,&quot;close:&quot;)+&quot; &quot;}}),x}e.exports={calc:function(t,e){var r=a.getFromId(t,e.xaxis),i=a.getFromId(t,e.yaxis),s=function(t,e,r){var i=r._minDiff;if(!i){var a,s=t._fullData,l=[];for(i=1/0,a=0;a&lt;s.length;a++){var c=s[a];if(&quot;ohlc&quot;===c.type&amp;&amp;!0===c.visible&amp;&amp;c.xaxis===e._id){l.push(c);var u=e.makeCalcdata(c,&quot;x&quot;);c._origX=u;var f=o(r,e,&quot;x&quot;,u);c._xcalc=f;var h=n.distinctVals(f).minDiff;h&amp;&amp;isFinite(h)&amp;&amp;(i=Math.min(i,h))}}for(i===1/0&amp;&amp;(i=1),a=0;a&lt;l.length;a++)l[a]._minDiff=i}return i*r.tickwidth}(t,r,e),u=e._minDiff;e._minDiff=null;var f=e._origX;e._origX=null;var h=e._xcalc;e._xcalc=null;var p=c(t,e,f,h,i,l);return e._extremes[r._id]=a.findExtremes(r,h,{vpad:u/2}),p.length?(n.extendFlat(p[0].t,{wHover:u/2,tickLen:s}),p):[{t:{empty:!0}}]},calcCommon:c}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828}],1135:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./ohlc_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r,n){r(n+&quot;.line.color&quot;),r(n+&quot;.line.width&quot;,e.line.width),r(n+&quot;.line.dash&quot;,e.line.dash)}e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}i(t,e,c,l)?(a(t,e,l,c,{x:!0}),c(&quot;line.width&quot;),c(&quot;line.dash&quot;),s(t,e,c,&quot;increasing&quot;),s(t,e,c,&quot;decreasing&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;tickwidth&quot;),l._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:1133,&quot;./ohlc_defaults&quot;:1138}],1136:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../lib&quot;).fillText,l=t(&quot;../../constants/delta.js&quot;),c={increasing:l.INCREASING.SYMBOL,decreasing:l.DECREASING.SYMBOL};function u(t,e,r,n){var i,s,l=t.cd,c=t.xa,u=l[0].trace,f=l[0].t,h=u.type,p=&quot;ohlc&quot;===h?&quot;l&quot;:&quot;min&quot;,d=&quot;ohlc&quot;===h?&quot;h&quot;:&quot;max&quot;,g=f.bPos||0,m=f.bdPos||f.tickLen,v=f.wHover,y=Math.min(1,m/Math.abs(c.r2c(c.range[1])-c.r2c(c.range[0])));function x(t){var r=function(t){return t.pos+g-e}(t);return a.inbox(r-v,r+v,i)}function b(t){var e=t[p],n=t[d];return e===n||a.inbox(e-r,n-r,i)}function _(t){return(x(t)+b(t))/2}i=t.maxHoverDistance-y,s=t.maxSpikeDistance-y;var w=a.getDistanceFunction(n,x,b,_);if(a.getClosest(l,w,t),!1===t.index)return null;var T=l[t.index];if(T.empty)return null;var k=u[T.dir],M=k.line.color;return o.opacity(M)&amp;&amp;k.line.width?t.color=M:t.color=k.fillcolor,t.x0=c.c2p(T.pos+g-m,!0),t.x1=c.c2p(T.pos+g+m,!0),t.xLabelVal=void 0!==T.orig_p?T.orig_p:T.pos,t.spikeDistance=_(T)*s/i,t.xSpike=c.c2p(T.pos,!0),t}function f(t,e,r,a){var o=t.cd,s=t.ya,l=o[0].trace,c=o[0].t,f=[],h=u(t,e,r,a);if(!h)return[];var p=o[h.index].hi||l.hoverinfo,d=p.split(&quot;+&quot;);if(!(&quot;all&quot;===p||-1!==d.indexOf(&quot;y&quot;)))return[];for(var g=[&quot;high&quot;,&quot;open&quot;,&quot;close&quot;,&quot;low&quot;],m={},v=0;v&lt;g.length;v++){var y,x=g[v],b=l[x][h.index],_=s.c2p(b,!0);b in m?(y=m[b]).yLabel+=&quot;&lt;br&gt;&quot;+c.labels[x]+n.hoverLabelText(s,b):((y=i.extendFlat({},h)).y0=y.y1=_,y.yLabelVal=b,y.yLabel=c.labels[x]+n.hoverLabelText(s,b),y.name=&quot;&quot;,f.push(y),m[b]=y)}return f}function h(t,e,r,i){var a=t.cd,o=t.ya,l=a[0].trace,f=a[0].t,h=u(t,e,r,i);if(!h)return[];var p=a[h.index],d=h.index=p.i,g=p.dir;function m(t){return f.labels[t]+n.hoverLabelText(o,l[t][d])}var v=p.hi||l.hoverinfo,y=v.split(&quot;+&quot;),x=&quot;all&quot;===v,b=x||-1!==y.indexOf(&quot;y&quot;),_=x||-1!==y.indexOf(&quot;text&quot;),w=b?[m(&quot;open&quot;),m(&quot;high&quot;),m(&quot;low&quot;),m(&quot;close&quot;)+&quot;  &quot;+c[g]]:[];return _&amp;&amp;s(p,l,w),h.extraText=w.join(&quot;&lt;br&gt;&quot;),h.y0=h.y1=o.c2p(p.yc,!0),[h]}e.exports={hoverPoints:function(t,e,r,n){return t.cd[0].trace.hoverlabel.split?f(t,e,r,n):h(t,e,r,n)},hoverSplit:f,hoverOnPoints:h}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../constants/delta.js&quot;:747,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1137:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;ohlc&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;showLegend&quot;],meta:{},attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;./select&quot;)}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1133,&quot;./calc&quot;:1134,&quot;./defaults&quot;:1135,&quot;./hover&quot;:1136,&quot;./plot&quot;:1139,&quot;./select&quot;:1140,&quot;./style&quot;:1141}],1138:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=r(&quot;x&quot;),s=r(&quot;open&quot;),l=r(&quot;high&quot;),c=r(&quot;low&quot;),u=r(&quot;close&quot;);if(r(&quot;hoverlabel.split&quot;),n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;],a),s&amp;&amp;l&amp;&amp;c&amp;&amp;u){var f=Math.min(s.length,l.length,c.length,u.length);return o&amp;&amp;(f=Math.min(f,i.minRowLength(o))),e._length=f,f}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1139:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=e.yaxis,s=e.xaxis,l=!!s.rangebreaks;i.makeTraceGroups(a,r,&quot;trace ohlc&quot;).each((function(t){var e=n.select(this),r=t[0],a=r.t;if(!0!==r.trace.visible||a.empty)e.remove();else{var c=a.tickLen,u=e.selectAll(&quot;path&quot;).data(i.identity);u.enter().append(&quot;path&quot;),u.exit().remove(),u.attr(&quot;d&quot;,(function(t){if(t.empty)return&quot;M0,0Z&quot;;var e=s.c2p(t.pos-c,!0),r=s.c2p(t.pos+c,!0),n=l?(e+r)/2:s.c2p(t.pos,!0);return&quot;M&quot;+e+&quot;,&quot;+o.c2p(t.o,!0)+&quot;H&quot;+n+&quot;M&quot;+n+&quot;,&quot;+o.c2p(t.h,!0)+&quot;V&quot;+o.c2p(t.l,!0)+&quot;M&quot;+r+&quot;,&quot;+o.c2p(t.c,!0)+&quot;H&quot;+n}))}}))}},{&quot;../../lib&quot;:778,d3:169}],1140:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].t.bPos||0;if(!1===e)for(r=0;r&lt;n.length;r++)n[r].selected=0;else for(r=0;r&lt;n.length;r++){var l=n[r];e.contains([i.c2p(l.pos+s),a.c2p(l.yc)],null,l.i,t)?(o.push({pointNumber:l.i,x:i.c2d(l.pos),y:a.c2d(l.yc)}),l.selected=1):l.selected=0}return o}},{}],1141:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;);e.exports=function(t,e,r){var o=r||n.select(t).selectAll(&quot;g.ohlclayer&quot;).selectAll(&quot;g.trace&quot;);o.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),o.each((function(t){var e=t[0].trace;n.select(this).selectAll(&quot;path&quot;).each((function(t){if(!t.empty){var r=e[t.dir].line;n.select(this).style(&quot;fill&quot;,&quot;none&quot;).call(a.stroke,r.color).call(i.dashLine,r.dash,r.width).style(&quot;opacity&quot;,e.selectedpoints&amp;&amp;!t.selected?.3:1)}}))}))}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,d3:169}],1142:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/domain&quot;).attributes,c=n({editType:&quot;calc&quot;},o(&quot;line&quot;,{editTypeOverride:&quot;calc&quot;}),{shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;hspline&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},hovertemplate:s({editType:&quot;plot&quot;,arrayOk:!1},{keys:[&quot;count&quot;,&quot;probability&quot;]})});e.exports={domain:l({name:&quot;parcats&quot;,trace:!0,editType:&quot;calc&quot;}),hoverinfo:n({},i.hoverinfo,{flags:[&quot;count&quot;,&quot;probability&quot;],editType:&quot;plot&quot;,arrayOk:!1}),hoveron:{valType:&quot;enumerated&quot;,values:[&quot;category&quot;,&quot;color&quot;,&quot;dimension&quot;],dflt:&quot;category&quot;,editType:&quot;plot&quot;},hovertemplate:s({editType:&quot;plot&quot;,arrayOk:!1},{keys:[&quot;count&quot;,&quot;probability&quot;,&quot;category&quot;,&quot;categorycount&quot;,&quot;colorcount&quot;,&quot;bandcolorcount&quot;]}),arrangement:{valType:&quot;enumerated&quot;,values:[&quot;perpendicular&quot;,&quot;freeform&quot;,&quot;fixed&quot;],dflt:&quot;perpendicular&quot;,editType:&quot;plot&quot;},bundlecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},sortpaths:{valType:&quot;enumerated&quot;,values:[&quot;forward&quot;,&quot;backward&quot;],dflt:&quot;forward&quot;,editType:&quot;plot&quot;},labelfont:a({editType:&quot;calc&quot;}),tickfont:a({editType:&quot;calc&quot;}),dimensions:{_isLinkedToArray:&quot;dimension&quot;,label:{valType:&quot;string&quot;,editType:&quot;calc&quot;},categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},displayindex:{valType:&quot;integer&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;,visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}},line:c,counts:{valType:&quot;number&quot;,min:0,dflt:1,arrayOk:!0,editType:&quot;calc&quot;},customdata:void 0,hoverlabel:void 0,ids:void 0,legendgroup:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906}],1143:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getModuleCalcData,i=t(&quot;./plot&quot;);r.name=&quot;parcats&quot;,r.plot=function(t,e,r,a){var o=n(t.calcdata,&quot;parcats&quot;);if(o.length){var s=o[0];i(t,s,r,a)}},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;parcats&quot;),a=e._has&amp;&amp;e._has(&quot;parcats&quot;);i&amp;&amp;!a&amp;&amp;n._paperdiv.selectAll(&quot;.parcats&quot;).remove()}},{&quot;../../plots/get_data&quot;:865,&quot;./plot&quot;:1148}],1144:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/gup&quot;).wrap,i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/calc&quot;),o=t(&quot;../../lib/filter_unique.js&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;fast-isnumeric&quot;);function u(t,e,r){t.valueInds.push(e),t.count+=r}function f(t,e,r){return{categoryInds:t,color:e,rawColor:r,valueInds:[],count:0}}function h(t,e,r){t.valueInds.push(e),t.count+=r}e.exports=function(t,e){var r=l.filterVisible(e.dimensions);if(0===r.length)return[];var p,d,g,m=r.map((function(t){var e;if(&quot;trace&quot;===t.categoryorder)e=null;else if(&quot;array&quot;===t.categoryorder)e=t.categoryarray;else{e=o(t.values);for(var r=!0,n=0;n&lt;e.length;n++)if(!c(e[n])){r=!1;break}e.sort(r?l.sorterAsc:void 0),&quot;category descending&quot;===t.categoryorder&amp;&amp;(e=e.reverse())}return function(t,e){e=null==e?[]:e.map((function(t){return t}));var r={},n={},i=[];e.forEach((function(t,e){r[t]=0,n[t]=e}));for(var a=0;a&lt;t.length;a++){var o,s=t[a];void 0===r[s]?(r[s]=1,o=e.push(s)-1,n[s]=o):(r[s]++,o=n[s]),i.push(o)}var l=e.map((function(t){return r[t]}));return{uniqueValues:e,uniqueCounts:l,inds:i}}(t.values,e)}));p=l.isArrayOrTypedArray(e.counts)?e.counts:[e.counts],function(t){var e;if(function(t){for(var e=new Array(t.length),r=0;r&lt;t.length;r++){if(t[r]&lt;0||t[r]&gt;=t.length)return!1;if(void 0!==e[t[r]])return!1;e[t[r]]=!0}return!0}(t.map((function(t){return t.displayindex}))))for(e=0;e&lt;t.length;e++)t[e]._displayindex=t[e].displayindex;else for(e=0;e&lt;t.length;e++)t[e]._displayindex=e}(r),r.forEach((function(t,e){!function(t,e){t._categoryarray=e.uniqueValues,null===t.ticktext||void 0===t.ticktext?t._ticktext=[]:t._ticktext=t.ticktext.slice();for(var r=t._ticktext.length;r&lt;e.uniqueValues.length;r++)t._ticktext.push(e.uniqueValues[r])}(t,m[e])}));var v,y=e.line;y?(i(e,&quot;line&quot;)&amp;&amp;a(t,e,{vals:e.line.color,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;}),v=s.tryColorscale(y)):v=l.identity;var x,b,_,w,T,k=r[0].values.length,M={},A=m.map((function(t){return t.inds}));for(g=0,x=0;x&lt;k;x++){var S=[];for(b=0;b&lt;A.length;b++)S.push(A[b][x]);d=p[x%p.length],g+=d;var E=(_=x,w=void 0,T=void 0,l.isArrayOrTypedArray(y.color)?T=w=y.color[_%y.color.length]:w=y.color,{color:v(w),rawColor:T}),C=S+&quot;-&quot;+E.rawColor;void 0===M[C]&amp;&amp;(M[C]=f(S,E.color,E.rawColor)),h(M[C],x,d)}var L,I=r.map((function(t,e){return function(t,e,r,n,i){return{dimensionInd:t,containerInd:e,displayInd:r,dimensionLabel:n,count:i,categories:[],dragX:null}}(e,t._index,t._displayindex,t.label,g)}));for(x=0;x&lt;k;x++)for(d=p[x%p.length],b=0;b&lt;I.length;b++){var P=I[b].containerInd,z=m[b].inds[x],O=I[b].categories;if(void 0===O[z]){var D=e.dimensions[P]._categoryarray[z],R=e.dimensions[P]._ticktext[z];O[z]={dimensionInd:b,categoryInd:L=z,categoryValue:D,displayInd:L,categoryLabel:R,valueInds:[],count:0,dragY:null}}u(O[z],x,d)}return n(function(t,e,r){var n=t.map((function(t){return t.categories.length})).reduce((function(t,e){return Math.max(t,e)}));return{dimensions:t,paths:e,trace:void 0,maxCats:n,count:r}}(I,M,g))}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/filter_unique.js&quot;:769,&quot;../../lib/gup&quot;:775,&quot;fast-isnumeric&quot;:241}],1145:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../parcoords/merge_length&quot;);function u(t,e){function r(r,i){return n.coerce(t,e,l.dimensions,r,i)}var i=r(&quot;values&quot;),a=r(&quot;visible&quot;);if(i&amp;&amp;i.length||(a=e.visible=!1),a){r(&quot;label&quot;),r(&quot;displayindex&quot;,e._index);var o,s=t.categoryarray,c=Array.isArray(s)&amp;&amp;s.length&gt;0;c&amp;&amp;(o=&quot;array&quot;);var u=r(&quot;categoryorder&quot;,o);&quot;array&quot;===u?(r(&quot;categoryarray&quot;),r(&quot;ticktext&quot;)):(delete t.categoryarray,delete t.ticktext),c||&quot;array&quot;!==u||(e.categoryorder=&quot;trace&quot;)}}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,l,r,i)}var p=s(t,e,{name:&quot;dimensions&quot;,handleItemDefaults:u}),d=function(t,e,r,o,s){s(&quot;line.shape&quot;),s(&quot;line.hovertemplate&quot;);var l=s(&quot;line.color&quot;,o.colorway[0]);if(i(t,&quot;line&quot;)&amp;&amp;n.isArrayOrTypedArray(l)){if(l.length)return s(&quot;line.colorscale&quot;),a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}),l.length;e.line.color=r}return 1/0}(t,e,r,f,h);o(e,f,h),Array.isArray(p)&amp;&amp;p.length||(e.visible=!1),c(e,p,&quot;values&quot;,d),h(&quot;hoveron&quot;),h(&quot;hovertemplate&quot;),h(&quot;arrangement&quot;),h(&quot;bundlecolors&quot;),h(&quot;sortpaths&quot;),h(&quot;counts&quot;);var g={family:f.font.family,size:Math.round(f.font.size),color:f.font.color};n.coerceFont(h,&quot;labelfont&quot;,g);var m={family:f.font.family,size:Math.round(f.font.size/1.2),color:f.font.color};n.coerceFont(h,&quot;tickfont&quot;,m)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/domain&quot;:855,&quot;../parcoords/merge_length&quot;:1158,&quot;./attributes&quot;:1142}],1146:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},moduleType:&quot;trace&quot;,name:&quot;parcats&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1142,&quot;./base_plot&quot;:1143,&quot;./calc&quot;:1144,&quot;./defaults&quot;:1145,&quot;./plot&quot;:1148}],1147:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plot_api/plot_api&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../../components/drawing&quot;),c=t(&quot;tinycolor2&quot;),u=t(&quot;../../lib/svg_text_utils&quot;);function f(t,e,r,i){var a=t.map(R.bind(0,e,r)),c=i.selectAll(&quot;g.parcatslayer&quot;).data([null]);c.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;parcatslayer&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;);var f=c.selectAll(&quot;g.trace.parcats&quot;).data(a,h),v=f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;trace parcats&quot;);f.attr(&quot;transform&quot;,(function(t){return s(t.x,t.y)})),v.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;paths&quot;);var y=f.select(&quot;g.paths&quot;).selectAll(&quot;path.path&quot;).data((function(t){return t.paths}),h);y.attr(&quot;fill&quot;,(function(t){return t.model.color}));var _=y.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;path&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.model.color})).attr(&quot;fill-opacity&quot;,0);b(_),y.attr(&quot;d&quot;,(function(t){return t.svgD})),_.empty()||y.sort(d),y.exit().remove(),y.on(&quot;mouseover&quot;,g).on(&quot;mouseout&quot;,m).on(&quot;click&quot;,x),v.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;dimensions&quot;);var k=f.select(&quot;g.dimensions&quot;).selectAll(&quot;g.dimension&quot;).data((function(t){return t.dimensions}),h);k.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;dimension&quot;),k.attr(&quot;transform&quot;,(function(t){return s(t.x,0)})),k.exit().remove();var M=k.selectAll(&quot;g.category&quot;).data((function(t){return t.categories}),h),A=M.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;category&quot;);M.attr(&quot;transform&quot;,(function(t){return s(0,t.y)})),A.append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;catrect&quot;).attr(&quot;pointer-events&quot;,&quot;none&quot;),M.select(&quot;rect.catrect&quot;).attr(&quot;fill&quot;,&quot;none&quot;).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})),w(A);var S=M.selectAll(&quot;rect.bandrect&quot;).data((function(t){return t.bands}),h);S.each((function(){o.raiseToTop(this)})),S.attr(&quot;fill&quot;,(function(t){return t.color}));var z=S.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bandrect&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;fill-opacity&quot;,0);S.attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})).attr(&quot;y&quot;,(function(t){return t.y})).attr(&quot;cursor&quot;,(function(t){return&quot;fixed&quot;===t.parcatsViewModel.arrangement?&quot;default&quot;:&quot;perpendicular&quot;===t.parcatsViewModel.arrangement?&quot;ns-resize&quot;:&quot;move&quot;})),T(z),S.exit().remove(),A.append(&quot;text&quot;).attr(&quot;class&quot;,&quot;catlabel&quot;).attr(&quot;pointer-events&quot;,&quot;none&quot;);var O=e._fullLayout.paper_bgcolor;M.select(&quot;text.catlabel&quot;).attr(&quot;text-anchor&quot;,(function(t){return p(t)?&quot;start&quot;:&quot;end&quot;})).attr(&quot;alignment-baseline&quot;,&quot;middle&quot;).style(&quot;text-shadow&quot;,O+&quot; -1px  1px 2px, &quot;+O+&quot; 1px  1px 2px, &quot;+O+&quot;  1px -1px 2px, &quot;+O+&quot; -1px -1px 2px&quot;).style(&quot;fill&quot;,&quot;rgb(0, 0, 0)&quot;).attr(&quot;x&quot;,(function(t){return p(t)?t.width+5:-5})).attr(&quot;y&quot;,(function(t){return t.height/2})).text((function(t){return t.model.categoryLabel})).each((function(t){l.font(n.select(this),t.parcatsViewModel.categorylabelfont),u.convertToTspans(n.select(this),e)})),A.append(&quot;text&quot;).attr(&quot;class&quot;,&quot;dimlabel&quot;),M.select(&quot;text.dimlabel&quot;).attr(&quot;text-anchor&quot;,&quot;middle&quot;).attr(&quot;alignment-baseline&quot;,&quot;baseline&quot;).attr(&quot;cursor&quot;,(function(t){return&quot;fixed&quot;===t.parcatsViewModel.arrangement?&quot;default&quot;:&quot;ew-resize&quot;})).attr(&quot;x&quot;,(function(t){return t.width/2})).attr(&quot;y&quot;,-5).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})).each((function(t){l.font(n.select(this),t.parcatsViewModel.labelfont)})),M.selectAll(&quot;rect.bandrect&quot;).on(&quot;mouseover&quot;,E).on(&quot;mouseout&quot;,C),M.exit().remove(),k.call(n.behavior.drag().origin((function(t){return{x:t.x,y:0}})).on(&quot;dragstart&quot;,L).on(&quot;drag&quot;,I).on(&quot;dragend&quot;,P)),f.each((function(t){t.traceSelection=n.select(this),t.pathSelection=n.select(this).selectAll(&quot;g.paths&quot;).selectAll(&quot;path.path&quot;),t.dimensionSelection=n.select(this).selectAll(&quot;g.dimensions&quot;).selectAll(&quot;g.dimension&quot;)})),f.exit().remove()}function h(t){return t.key}function p(t){var e=t.parcatsViewModel.dimensions.length,r=t.parcatsViewModel.dimensions[e-1].model.dimensionInd;return t.model.dimensionInd===r}function d(t,e){return t.model.rawColor&gt;e.model.rawColor?1:t.model.rawColor&lt;e.model.rawColor?-1:0}function g(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){o.raiseToTop(this),_(n.select(this));var e=v(t),r=y(t);if(t.parcatsViewModel.graphDiv.emit(&quot;plotly_hover&quot;,{points:e,event:n.event,constraints:r}),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;none&quot;)){var i,s,l,u=n.mouse(this)[0],f=t.parcatsViewModel.graphDiv,h=t.parcatsViewModel.trace,p=f._fullLayout,d=p._paperdiv.node().getBoundingClientRect(),g=t.parcatsViewModel.graphDiv.getBoundingClientRect();for(l=0;l&lt;t.leftXs.length-1;l++)if(t.leftXs[l]+t.dimWidths[l]-2&lt;=u&amp;&amp;u&lt;=t.leftXs[l+1]+2){var m=t.parcatsViewModel.dimensions[l],x=t.parcatsViewModel.dimensions[l+1];i=(m.x+m.width+x.x)/2,s=(t.topYs[l]+t.topYs[l+1]+t.height)/2;break}var b=t.parcatsViewModel.x+i,w=t.parcatsViewModel.y+s,T=c.mostReadable(t.model.color,[&quot;black&quot;,&quot;white&quot;]),k=t.model.count,M=k/t.parcatsViewModel.model.count,A={countLabel:k,probabilityLabel:M.toFixed(3)},S=[];-1!==t.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;S.push([&quot;Count:&quot;,A.countLabel].join(&quot; &quot;)),-1!==t.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;S.push([&quot;P:&quot;,A.probabilityLabel].join(&quot; &quot;));var E=S.join(&quot;&lt;br&gt;&quot;),C=n.mouse(f)[0];a.loneHover({trace:h,x:b-d.left+g.left,y:w-d.top+g.top,text:E,color:t.model.color,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontSize:10,fontColor:T,idealAlign:C&lt;b?&quot;right&quot;:&quot;left&quot;,hovertemplate:(h.line||{}).hovertemplate,hovertemplateLabels:A,eventData:[{data:h._input,fullData:h,count:k,probability:M}]},{container:p._hoverlayer.node(),outerContainer:p._paper.node(),gd:f})}}}function m(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;(b(n.select(this)),a.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()),t.parcatsViewModel.pathSelection.sort(d),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;))){var e=v(t),r=y(t);t.parcatsViewModel.graphDiv.emit(&quot;plotly_unhover&quot;,{points:e,event:n.event,constraints:r})}}function v(t){for(var e=[],r=z(t.parcatsViewModel),n=0;n&lt;t.model.valueInds.length;n++){var i=t.model.valueInds[n];e.push({curveNumber:r,pointNumber:i})}return e}function y(t){for(var e={},r=t.parcatsViewModel.model.dimensions,n=0;n&lt;r.length;n++){var i=r[n],a=i.categories[t.model.categoryInds[n]];e[i.containerInd]=a.categoryValue}return void 0!==t.model.rawColor&amp;&amp;(e.color=t.model.rawColor),e}function x(t){if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){var e=v(t),r=y(t);t.parcatsViewModel.graphDiv.emit(&quot;plotly_click&quot;,{points:e,event:n.event,constraints:r})}}function b(t){t.attr(&quot;fill&quot;,(function(t){return t.model.color})).attr(&quot;fill-opacity&quot;,.6).attr(&quot;stroke&quot;,&quot;lightgray&quot;).attr(&quot;stroke-width&quot;,.2).attr(&quot;stroke-opacity&quot;,1)}function _(t){t.attr(&quot;fill-opacity&quot;,.8).attr(&quot;stroke&quot;,(function(t){return c.mostReadable(t.model.color,[&quot;black&quot;,&quot;white&quot;])})).attr(&quot;stroke-width&quot;,.3)}function w(t){t.select(&quot;rect.catrect&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,1).attr(&quot;stroke-opacity&quot;,1)}function T(t){t.attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,.2).attr(&quot;stroke-opacity&quot;,1).attr(&quot;fill-opacity&quot;,1)}function k(t){var e=t.parcatsViewModel.pathSelection,r=t.categoryViewModel.model.dimensionInd,n=t.categoryViewModel.model.categoryInd;return e.filter((function(e){return e.model.categoryInds[r]===n&amp;&amp;e.model.color===t.color}))}function M(t,e,r){var i=n.select(t).datum(),a=i.categoryViewModel.model,o=i.parcatsViewModel.graphDiv,s=n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;),l=[];s.each((function(t){k(t).each((function(t){Array.prototype.push.apply(l,v(t))}))}));var c={};c[a.dimensionInd]=a.categoryValue,o.emit(e,{points:l,event:r,constraints:c})}function A(t,e,r){var i=n.select(t).datum(),a=i.categoryViewModel.model,o=i.parcatsViewModel.graphDiv,s=k(i),l=[];s.each((function(t){Array.prototype.push.apply(l,v(t))}));var c={};c[a.dimensionInd]=a.categoryValue,void 0!==i.rawColor&amp;&amp;(c.color=i.rawColor),o.emit(e,{points:l,event:r,constraints:c})}function S(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=n.select(r.parentNode).select(&quot;rect.catrect&quot;),c=l.node().getBoundingClientRect(),u=l.datum(),f=u.parcatsViewModel,h=f.model.dimensions[u.model.dimensionInd],p=f.trace,d=c.top+c.height/2;f.dimensions.length&gt;1&amp;&amp;h.displayInd===f.dimensions.length-1?(i=c.left,a=&quot;left&quot;):(i=c.left+c.width,a=&quot;right&quot;);var g=u.model.count,m=u.model.categoryLabel,v=g/u.parcatsViewModel.model.count,y={countLabel:g,categoryLabel:m,probabilityLabel:v.toFixed(3)},x=[];-1!==u.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;x.push([&quot;Count:&quot;,y.countLabel].join(&quot; &quot;)),-1!==u.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;x.push([&quot;P(&quot;+y.categoryLabel+&quot;):&quot;,y.probabilityLabel].join(&quot; &quot;));var b=x.join(&quot;&lt;br&gt;&quot;);return{trace:p,x:o*(i-e.left),y:s*(d-e.top),text:b,color:&quot;lightgray&quot;,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontSize:12,fontColor:&quot;black&quot;,idealAlign:a,hovertemplate:p.hovertemplate,hovertemplateLabels:y,eventData:[{data:p._input,fullData:p,count:g,category:m,probability:v}]}}function E(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){if(n.mouse(this)[1]&lt;-1)return;var e,r=t.parcatsViewModel.graphDiv,i=r._fullLayout,s=i._paperdiv.node().getBoundingClientRect(),l=t.parcatsViewModel.hoveron;if(&quot;color&quot;===l?(!function(t){var e=n.select(t).datum(),r=k(e);_(r),r.each((function(){o.raiseToTop(this)})),n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;).filter((function(t){return t.color===e.color})).each((function(){o.raiseToTop(this),n.select(this).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,1.5)}))}(this),A(this,&quot;plotly_hover&quot;,n.event)):(!function(t){n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;).each((function(t){var e=k(t);_(e),e.each((function(){o.raiseToTop(this)}))})),n.select(t.parentNode).select(&quot;rect.catrect&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,2.5)}(this),M(this,&quot;plotly_hover&quot;,n.event)),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;none&quot;))&quot;category&quot;===l?e=S(r,s,this):&quot;color&quot;===l?e=function(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=r.getBoundingClientRect(),u=n.select(r).datum(),f=u.categoryViewModel,h=f.parcatsViewModel,p=h.model.dimensions[f.model.dimensionInd],d=h.trace,g=l.y+l.height/2;h.dimensions.length&gt;1&amp;&amp;p.displayInd===h.dimensions.length-1?(i=l.left,a=&quot;left&quot;):(i=l.left+l.width,a=&quot;right&quot;);var m=f.model.categoryLabel,v=u.parcatsViewModel.model.count,y=0;u.categoryViewModel.bands.forEach((function(t){t.color===u.color&amp;&amp;(y+=t.count)}));var x=f.model.count,b=0;h.pathSelection.each((function(t){t.model.color===u.color&amp;&amp;(b+=t.model.count)}));var _=y/v,w=y/b,T=y/x,k={countLabel:v,categoryLabel:m,probabilityLabel:_.toFixed(3)},M=[];-1!==f.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;M.push([&quot;Count:&quot;,k.countLabel].join(&quot; &quot;)),-1!==f.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;(M.push(&quot;P(color \u2229 &quot;+m+&quot;): &quot;+k.probabilityLabel),M.push(&quot;P(&quot;+m+&quot; | color): &quot;+w.toFixed(3)),M.push(&quot;P(color | &quot;+m+&quot;): &quot;+T.toFixed(3)));var A=M.join(&quot;&lt;br&gt;&quot;),S=c.mostReadable(u.color,[&quot;black&quot;,&quot;white&quot;]);return{trace:d,x:o*(i-e.left),y:s*(g-e.top),text:A,color:u.color,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontColor:S,fontSize:10,idealAlign:a,hovertemplate:d.hovertemplate,hovertemplateLabels:k,eventData:[{data:d._input,fullData:d,category:m,count:v,probability:_,categorycount:x,colorcount:b,bandcolorcount:y}]}}(r,s,this):&quot;dimension&quot;===l&amp;&amp;(e=function(t,e,r){var i=[];return n.select(r.parentNode.parentNode).selectAll(&quot;g.category&quot;).select(&quot;rect.catrect&quot;).each((function(){i.push(S(t,e,this))})),i}(r,s,this)),e&amp;&amp;a.loneHover(e,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r})}}function C(t){var e=t.parcatsViewModel;if(!e.dragDimension&amp;&amp;(b(e.pathSelection),w(e.dimensionSelection.selectAll(&quot;g.category&quot;)),T(e.dimensionSelection.selectAll(&quot;g.category&quot;).selectAll(&quot;rect.bandrect&quot;)),a.loneUnhover(e.graphDiv._fullLayout._hoverlayer.node()),e.pathSelection.sort(d),-1===e.hoverinfoItems.indexOf(&quot;skip&quot;))){&quot;color&quot;===t.parcatsViewModel.hoveron?A(this,&quot;plotly_unhover&quot;,n.event):M(this,&quot;plotly_unhover&quot;,n.event)}}function L(t){&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;(t.dragDimensionDisplayInd=t.model.displayInd,t.initialDragDimensionDisplayInds=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),t.dragHasMoved=!1,t.dragCategoryDisplayInd=null,n.select(this).selectAll(&quot;g.category&quot;).select(&quot;rect.catrect&quot;).each((function(e){var r=n.mouse(this)[0],i=n.mouse(this)[1];-2&lt;=r&amp;&amp;r&lt;=e.width+2&amp;&amp;-2&lt;=i&amp;&amp;i&lt;=e.height+2&amp;&amp;(t.dragCategoryDisplayInd=e.model.displayInd,t.initialDragCategoryDisplayInds=t.model.categories.map((function(t){return t.displayInd})),e.model.dragY=e.y,o.raiseToTop(this.parentNode),n.select(this.parentNode).selectAll(&quot;rect.bandrect&quot;).each((function(e){e.y&lt;i&amp;&amp;i&lt;=e.y+e.height&amp;&amp;(t.potentialClickBand=this)})))})),t.parcatsViewModel.dragDimension=t,a.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()))}function I(t){if(&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;(t.dragHasMoved=!0,null!==t.dragDimensionDisplayInd)){var e=t.dragDimensionDisplayInd,r=e-1,i=e+1,a=t.parcatsViewModel.dimensions[e];if(null!==t.dragCategoryDisplayInd){var o=a.categories[t.dragCategoryDisplayInd];o.model.dragY+=n.event.dy;var s=o.model.dragY,l=o.model.displayInd,c=a.categories,u=c[l-1],f=c[l+1];void 0!==u&amp;&amp;s&lt;u.y+u.height/2&amp;&amp;(o.model.displayInd=u.model.displayInd,u.model.displayInd=l),void 0!==f&amp;&amp;s+o.height&gt;f.y+f.height/2&amp;&amp;(o.model.displayInd=f.model.displayInd,f.model.displayInd=l),t.dragCategoryDisplayInd=o.model.displayInd}if(null===t.dragCategoryDisplayInd||&quot;freeform&quot;===t.parcatsViewModel.arrangement){a.model.dragX=n.event.x;var h=t.parcatsViewModel.dimensions[r],p=t.parcatsViewModel.dimensions[i];void 0!==h&amp;&amp;a.model.dragX&lt;h.x+h.width&amp;&amp;(a.model.displayInd=h.model.displayInd,h.model.displayInd=e),void 0!==p&amp;&amp;a.model.dragX+a.width&gt;p.x&amp;&amp;(a.model.displayInd=p.model.displayInd,p.model.displayInd=t.dragDimensionDisplayInd),t.dragDimensionDisplayInd=a.model.displayInd}N(t.parcatsViewModel),B(t.parcatsViewModel),D(t.parcatsViewModel),O(t.parcatsViewModel)}}function P(t){if(&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;null!==t.dragDimensionDisplayInd){n.select(this).selectAll(&quot;text&quot;).attr(&quot;font-weight&quot;,&quot;normal&quot;);var e={},r=z(t.parcatsViewModel),a=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),o=t.initialDragDimensionDisplayInds.some((function(t,e){return t!==a[e]}));o&amp;&amp;a.forEach((function(r,n){var i=t.parcatsViewModel.model.dimensions[n].containerInd;e[&quot;dimensions[&quot;+i+&quot;].displayindex&quot;]=r}));var s=!1;if(null!==t.dragCategoryDisplayInd){var l=t.model.categories.map((function(t){return t.displayInd}));if(s=t.initialDragCategoryDisplayInds.some((function(t,e){return t!==l[e]}))){var c=t.model.categories.slice().sort((function(t,e){return t.displayInd-e.displayInd})),u=c.map((function(t){return t.categoryValue})),f=c.map((function(t){return t.categoryLabel}));e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].categoryarray&quot;]=[u],e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].ticktext&quot;]=[f],e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].categoryorder&quot;]=&quot;array&quot;}}if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)&amp;&amp;!t.dragHasMoved&amp;&amp;t.potentialClickBand&amp;&amp;(&quot;color&quot;===t.parcatsViewModel.hoveron?A(t.potentialClickBand,&quot;plotly_click&quot;,n.event.sourceEvent):M(t.potentialClickBand,&quot;plotly_click&quot;,n.event.sourceEvent)),t.model.dragX=null,null!==t.dragCategoryDisplayInd)t.parcatsViewModel.dimensions[t.dragDimensionDisplayInd].categories[t.dragCategoryDisplayInd].model.dragY=null,t.dragCategoryDisplayInd=null;t.dragDimensionDisplayInd=null,t.parcatsViewModel.dragDimension=null,t.dragHasMoved=null,t.potentialClickBand=null,N(t.parcatsViewModel),B(t.parcatsViewModel),n.transition().duration(300).ease(&quot;cubic-in-out&quot;).each((function(){D(t.parcatsViewModel,!0),O(t.parcatsViewModel,!0)})).each(&quot;end&quot;,(function(){(o||s)&amp;&amp;i.restyle(t.parcatsViewModel.graphDiv,e,[r])}))}}function z(t){for(var e,r=t.graphDiv._fullData,n=0;n&lt;r.length;n++)if(t.key===r[n].uid){e=n;break}return e}function O(t,e){var r;void 0===e&amp;&amp;(e=!1),t.pathSelection.data((function(t){return t.paths}),h),(r=t.pathSelection,e?r.transition():r).attr(&quot;d&quot;,(function(t){return t.svgD}))}function D(t,e){function r(t){return e?t.transition():t}void 0===e&amp;&amp;(e=!1),t.dimensionSelection.data((function(t){return t.dimensions}),h);var i=t.dimensionSelection.selectAll(&quot;g.category&quot;).data((function(t){return t.categories}),h);r(t.dimensionSelection).attr(&quot;transform&quot;,(function(t){return s(t.x,0)})),r(i).attr(&quot;transform&quot;,(function(t){return s(0,t.y)})),i.select(&quot;.dimlabel&quot;).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})),i.select(&quot;.catlabel&quot;).attr(&quot;text-anchor&quot;,(function(t){return p(t)?&quot;start&quot;:&quot;end&quot;})).attr(&quot;x&quot;,(function(t){return p(t)?t.width+5:-5})).each((function(t){var e,r;p(t)?(e=t.width+5,r=&quot;start&quot;):(e=-5,r=&quot;end&quot;),n.select(this).selectAll(&quot;tspan&quot;).attr(&quot;x&quot;,e).attr(&quot;text-anchor&quot;,r)}));var a=i.selectAll(&quot;rect.bandrect&quot;).data((function(t){return t.bands}),h),l=a.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bandrect&quot;).attr(&quot;cursor&quot;,&quot;move&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;fill-opacity&quot;,0);a.attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})).attr(&quot;y&quot;,(function(t){return t.y})),T(l),a.each((function(){o.raiseToTop(this)})),a.exit().remove()}function R(t,e,r){var n,i=r[0],a=e.margin||{l:80,r:80,t:100,b:80},o=i.trace,s=o.domain,l=e.width,c=e.height,u=Math.floor(l*(s.x[1]-s.x[0])),f=Math.floor(c*(s.y[1]-s.y[0])),h=s.x[0]*l+a.l,p=e.height-s.y[1]*e.height+a.t,d=o.line.shape;n=&quot;all&quot;===o.hoverinfo?[&quot;count&quot;,&quot;probability&quot;]:(o.hoverinfo||&quot;&quot;).split(&quot;+&quot;);var g={trace:o,key:o.uid,model:i,x:h,y:p,width:u,height:f,hoveron:o.hoveron,hoverinfoItems:n,arrangement:o.arrangement,bundlecolors:o.bundlecolors,sortpaths:o.sortpaths,labelfont:o.labelfont,categorylabelfont:o.tickfont,pathShape:d,dragDimension:null,margin:a,paths:[],dimensions:[],graphDiv:t,traceSelection:null,pathSelection:null,dimensionSelection:null};return i.dimensions&amp;&amp;(N(g),B(g)),g}function F(t,e,r,i,a){var o,s,l=[],c=[];for(s=0;s&lt;r.length-1;s++)o=n.interpolateNumber(r[s]+t[s],t[s+1]),l.push(o(a)),c.push(o(1-a));var u=&quot;M &quot;+t[0]+&quot;,&quot;+e[0];for(u+=&quot;l&quot;+r[0]+&quot;,0 &quot;,s=1;s&lt;r.length;s++)u+=&quot;C&quot;+l[s-1]+&quot;,&quot;+e[s-1]+&quot; &quot;+c[s-1]+&quot;,&quot;+e[s]+&quot; &quot;+t[s]+&quot;,&quot;+e[s],u+=&quot;l&quot;+r[s]+&quot;,0 &quot;;for(u+=&quot;l0,&quot;+i+&quot; &quot;,u+=&quot;l -&quot;+r[r.length-1]+&quot;,0 &quot;,s=r.length-2;s&gt;=0;s--)u+=&quot;C&quot;+c[s]+&quot;,&quot;+(e[s+1]+i)+&quot; &quot;+l[s]+&quot;,&quot;+(e[s]+i)+&quot; &quot;+(t[s]+r[s])+&quot;,&quot;+(e[s]+i),u+=&quot;l-&quot;+r[s]+&quot;,0 &quot;;return u+=&quot;Z&quot;}function B(t){var e=t.dimensions,r=t.model,n=e.map((function(t){return t.categories.map((function(t){return t.y}))})),i=t.model.dimensions.map((function(t){return t.categories.map((function(t){return t.displayInd}))})),a=t.model.dimensions.map((function(t){return t.displayInd})),o=t.dimensions.map((function(t){return t.model.dimensionInd})),s=e.map((function(t){return t.x})),l=e.map((function(t){return t.width})),c=[];for(var u in r.paths)r.paths.hasOwnProperty(u)&amp;&amp;c.push(r.paths[u]);function f(t){var e=t.categoryInds.map((function(t,e){return i[e][t]}));return o.map((function(t){return e[t]}))}c.sort((function(e,r){var n=f(e),i=f(r);return&quot;backward&quot;===t.sortpaths&amp;&amp;(n.reverse(),i.reverse()),n.push(e.valueInds[0]),i.push(r.valueInds[0]),t.bundlecolors&amp;&amp;(n.unshift(e.rawColor),i.unshift(r.rawColor)),n&lt;i?-1:n&gt;i?1:0}));for(var h=new Array(c.length),p=e[0].model.count,d=e[0].categories.map((function(t){return t.height})).reduce((function(t,e){return t+e})),g=0;g&lt;c.length;g++){var m,v=c[g];m=p&gt;0?d*(v.count/p):0;for(var y,x=new Array(n.length),b=0;b&lt;v.categoryInds.length;b++){var _=v.categoryInds[b],w=i[b][_],T=a[b];x[T]=n[T][w],n[T][w]+=m;var k=t.dimensions[T].categories[w],M=k.bands.length,A=k.bands[M-1];if(void 0===A||v.rawColor!==A.rawColor){var S=void 0===A?0:A.y+A.height;k.bands.push({key:S,color:v.color,rawColor:v.rawColor,height:m,width:k.width,count:v.count,y:S,categoryViewModel:k,parcatsViewModel:t})}else{var E=k.bands[M-1];E.height+=m,E.count+=v.count}}y=&quot;hspline&quot;===t.pathShape?F(s,x,l,m,.5):F(s,x,l,m,0),h[g]={key:v.valueInds[0],model:v,height:m,leftXs:s,topYs:x,dimWidths:l,svgD:y,parcatsViewModel:t}}t.paths=h}function N(t){var e=t.model.dimensions.map((function(t){return{displayInd:t.displayInd,dimensionInd:t.dimensionInd}}));e.sort((function(t,e){return t.displayInd-e.displayInd}));var r=[];for(var n in e){var i=e[n].dimensionInd,a=t.model.dimensions[i];r.push(j(t,a))}t.dimensions=r}function j(t,e){var r,n=t.model.dimensions.length,i=e.displayInd;r=40+(n&gt;1?(t.width-80-16)/(n-1):0)*i;var a,o,s,l,c,u=[],f=t.model.maxCats,h=e.categories.length,p=e.count,d=t.height-8*(f-1),g=8*(f-h)/2,m=e.categories.map((function(t){return{displayInd:t.displayInd,categoryInd:t.categoryInd}}));for(m.sort((function(t,e){return t.displayInd-e.displayInd})),c=0;c&lt;h;c++)l=m[c].categoryInd,o=e.categories[l],a=p&gt;0?o.count/p*d:0,s={key:o.valueInds[0],model:o,width:16,height:a,y:null!==o.dragY?o.dragY:g,bands:[],parcatsViewModel:t},g=g+a+8,u.push(s);return{key:e.dimensionInd,x:null!==e.dragX?e.dragX:r,y:0,width:16,model:e,categories:u,parcatsViewModel:t,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}e.exports=function(t,e,r,n){f(r,t,n,e)}},{&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_api&quot;:814,d3:169,tinycolor2:576}],1148:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./parcats&quot;);e.exports=function(t,e,r,i){var a=t._fullLayout,o=a._paper,s=a._size;n(t,o,e,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},r,i)}},{&quot;./parcats&quot;:1147}],1149:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/layout_attributes&quot;),a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/plot_template&quot;).templatedArray;e.exports={domain:o({name:&quot;parcoords&quot;,trace:!0,editType:&quot;plot&quot;}),labelangle:{valType:&quot;angle&quot;,dflt:0,editType:&quot;plot&quot;},labelside:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;plot&quot;},labelfont:a({editType:&quot;plot&quot;}),tickfont:a({editType:&quot;plot&quot;}),rangefont:a({editType:&quot;plot&quot;}),dimensions:l(&quot;dimension&quot;,{label:{valType:&quot;string&quot;,editType:&quot;plot&quot;},tickvals:s({},i.tickvals,{editType:&quot;plot&quot;}),ticktext:s({},i.ticktext,{editType:&quot;plot&quot;}),tickformat:s({},i.tickformat,{editType:&quot;plot&quot;}),visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},constraintrange:{valType:&quot;info_array&quot;,freeLength:!0,dimensions:&quot;1-2&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},multiselect:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;}),line:s({editType:&quot;calc&quot;},n(&quot;line&quot;,{colorscaleDflt:&quot;Viridis&quot;,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}))}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856}],1150:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;d3&quot;),a=t(&quot;../../lib/gup&quot;).keyFun,o=t(&quot;../../lib/gup&quot;).repeat,s=t(&quot;../../lib&quot;).sorterAsc,l=t(&quot;../../lib&quot;).strTranslate,c=n.bar.snapRatio;function u(t,e){return t*(1-c)+e*c}var f=n.bar.snapClose;function h(t,e){return t*(1-f)+e*f}function p(t,e,r,n){if(function(t,e){for(var r=0;r&lt;e.length;r++)if(t&gt;=e[r][0]&amp;&amp;t&lt;=e[r][1])return!0;return!1}(r,n))return r;var i=t?-1:1,a=0,o=e.length-1;if(i&lt;0){var s=a;a=o,o=s}for(var l=e[a],c=l,f=a;i*f&lt;i*o;f+=i){var p=f+i,d=e[p];if(i*r&lt;i*h(l,d))return u(l,c);if(i*r&lt;i*d||p===o)return u(d,l);c=l,l=d}}function d(t){t.attr(&quot;x&quot;,-n.bar.captureWidth/2).attr(&quot;width&quot;,n.bar.captureWidth)}function g(t){t.attr(&quot;visibility&quot;,&quot;visible&quot;).style(&quot;visibility&quot;,&quot;visible&quot;).attr(&quot;fill&quot;,&quot;yellow&quot;).attr(&quot;opacity&quot;,0)}function m(t){if(!t.brush.filterSpecified)return&quot;0,&quot;+t.height;for(var e,r,n,i=v(t.brush.filter.getConsolidated(),t.height),a=[0],o=i.length?i[0][0]:null,s=0;s&lt;i.length;s++)r=(e=i[s])[1]-e[0],a.push(o),a.push(r),(n=s+1)&lt;i.length&amp;&amp;(o=i[n][0]-e[1]);return a.push(t.height),a}function v(t,e){return t.map((function(t){return t.map((function(t){return Math.max(0,t*e)})).sort(s)}))}function y(){i.select(document.body).style(&quot;cursor&quot;,null)}function x(t){t.attr(&quot;stroke-dasharray&quot;,m)}function b(t,e){var r=i.select(t).selectAll(&quot;.highlight, .highlight-shadow&quot;);x(e?r.transition().duration(n.bar.snapDuration).each(&quot;end&quot;,e):r)}function _(t,e){var r,i=t.brush,a=NaN,o={};if(i.filterSpecified){var s=t.height,l=i.filter.getConsolidated(),c=v(l,s),u=NaN,f=NaN,h=NaN;for(r=0;r&lt;=c.length;r++){var p=c[r];if(p&amp;&amp;p[0]&lt;=e&amp;&amp;e&lt;=p[1]){u=r;break}if(f=r?r-1:NaN,p&amp;&amp;p[0]&gt;e){h=r;break}}if(a=u,isNaN(a)&amp;&amp;(a=isNaN(f)||isNaN(h)?isNaN(f)?h:f:e-c[f][1]&lt;c[h][0]-e?f:h),!isNaN(a)){var d=c[a],g=function(t,e){var r=n.bar.handleHeight;if(!(e&gt;t[1]+r||e&lt;t[0]-r))return e&gt;=.9*t[1]+.1*t[0]?&quot;n&quot;:e&lt;=.9*t[0]+.1*t[1]?&quot;s&quot;:&quot;ns&quot;}(d,e);g&amp;&amp;(o.interval=l[a],o.intervalPix=d,o.region=g)}}if(t.ordinal&amp;&amp;!o.region){var m=t.unitTickvals,y=t.unitToPaddedPx.invert(e);for(r=0;r&lt;m.length;r++){var x=[.25*m[Math.max(r-1,0)]+.75*m[r],.25*m[Math.min(r+1,m.length-1)]+.75*m[r]];if(y&gt;=x[0]&amp;&amp;y&lt;=x[1]){o.clickableOrdinalRange=x;break}}}return o}function w(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[r-a.grabPoint,r+a.barLength-a.grabPoint].map(e.unitToPaddedPx.invert):a.newExtent=[a.startExtent,e.unitToPaddedPx.invert(r)].sort(s),e.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(e),b(t.parentNode)}function T(t,e){var r=_(e,e.height-i.mouse(t)[1]-2*n.verticalPadding),a=&quot;crosshair&quot;;r.clickableOrdinalRange?a=&quot;pointer&quot;:r.region&amp;&amp;(a=r.region+&quot;-resize&quot;),i.select(document.body).style(&quot;cursor&quot;,a)}function k(t){t.on(&quot;mousemove&quot;,(function(t){i.event.preventDefault(),t.parent.inBrushDrag||T(this,t)})).on(&quot;mouseleave&quot;,(function(t){t.parent.inBrushDrag||y()})).call(i.behavior.drag().on(&quot;dragstart&quot;,(function(t){!function(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.unitToPaddedPx.invert(r),o=e.brush,s=_(e,r),l=s.interval,c=o.svgBrush;if(c.wasDragged=!1,c.grabbingBar=&quot;ns&quot;===s.region,c.grabbingBar){var u=l.map(e.unitToPaddedPx);c.grabPoint=r-u[0]-n.verticalPadding,c.barLength=u[1]-u[0]}c.clickableOrdinalRange=s.clickableOrdinalRange,c.stayingIntervals=e.multiselect&amp;&amp;o.filterSpecified?o.filter.getConsolidated():[],l&amp;&amp;(c.stayingIntervals=c.stayingIntervals.filter((function(t){return t[0]!==l[0]&amp;&amp;t[1]!==l[1]}))),c.startExtent=s.region?l[&quot;s&quot;===s.region?1:0]:a,e.parent.inBrushDrag=!0,c.brushStartCallback()}(this,t)})).on(&quot;drag&quot;,(function(t){w(this,t)})).on(&quot;dragend&quot;,(function(t){!function(t,e){var r=e.brush,n=r.filter,a=r.svgBrush;a._dragging||(T(t,e),w(t,e),e.brush.svgBrush.wasDragged=!1),a._dragging=!1,i.event.sourceEvent.stopPropagation();var o=a.grabbingBar;if(a.grabbingBar=!1,a.grabLocation=void 0,e.parent.inBrushDrag=!1,y(),!a.wasDragged)return a.wasDragged=void 0,a.clickableOrdinalRange?r.filterSpecified&amp;&amp;e.multiselect?a.extent.push(a.clickableOrdinalRange):(a.extent=[a.clickableOrdinalRange],r.filterSpecified=!0):o?(a.extent=a.stayingIntervals,0===a.extent.length&amp;&amp;A(r)):A(r),a.brushCallback(e),b(t.parentNode),void a.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);var s=function(){n.set(n.getConsolidated())};if(e.ordinal){var l=e.unitTickvals;l[l.length-1]&lt;l[0]&amp;&amp;l.reverse(),a.newExtent=[p(0,l,a.newExtent[0],a.stayingIntervals),p(1,l,a.newExtent[1],a.stayingIntervals)];var c=a.newExtent[1]&gt;a.newExtent[0];a.extent=a.stayingIntervals.concat(c?[a.newExtent]:[]),a.extent.length||A(r),a.brushCallback(e),c?b(t.parentNode,s):(s(),b(t.parentNode))}else s();a.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}(this,t)})))}function M(t,e){return t[0]-e[0]}function A(t){t.filterSpecified=!1,t.svgBrush.extent=[[-1/0,1/0]]}function S(t){for(var e,r=t.slice(),n=[],i=r.shift();i;){for(e=i.slice();(i=r.shift())&amp;&amp;i[0]&lt;=e[1];)e[1]=Math.max(e[1],i[1]);n.push(e)}return 1===n.length&amp;&amp;n[0][0]&gt;n[0][1]&amp;&amp;(n=[]),n}e.exports={makeBrush:function(t,e,r,n,i,a){var o,l=function(){var t,e,r=[];return{set:function(n){1===(r=n.map((function(t){return t.slice().sort(s)})).sort(M)).length&amp;&amp;r[0][0]===-1/0&amp;&amp;r[0][1]===1/0&amp;&amp;(r=[[0,-1]]),t=S(r),e=r.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0])},get:function(){return r.slice()},getConsolidated:function(){return t},getBounds:function(){return e}}}();return l.set(r),{filter:l,filterSpecified:e,svgBrush:{extent:[],brushStartCallback:n,brushCallback:(o=i,function(t){var e=t.brush,r=function(t){return t.svgBrush.extent.map((function(t){return t.slice()}))}(e).slice();e.filter.set(r),o()}),brushEndCallback:a}}},ensureAxisBrush:function(t){var e=t.selectAll(&quot;.&quot;+n.cn.axisBrush).data(o,a);e.enter().append(&quot;g&quot;).classed(n.cn.axisBrush,!0),function(t){var e=t.selectAll(&quot;.background&quot;).data(o);e.enter().append(&quot;rect&quot;).classed(&quot;background&quot;,!0).call(d).call(g).style(&quot;pointer-events&quot;,&quot;auto&quot;).attr(&quot;transform&quot;,l(0,n.verticalPadding)),e.call(k).attr(&quot;height&quot;,(function(t){return t.height-n.verticalPadding}));var r=t.selectAll(&quot;.highlight-shadow&quot;).data(o);r.enter().append(&quot;line&quot;).classed(&quot;highlight-shadow&quot;,!0).attr(&quot;x&quot;,-n.bar.width/2).attr(&quot;stroke-width&quot;,n.bar.width+n.bar.strokeWidth).attr(&quot;stroke&quot;,n.bar.strokeColor).attr(&quot;opacity&quot;,n.bar.strokeOpacity).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;),r.attr(&quot;y1&quot;,(function(t){return t.height})).call(x);var i=t.selectAll(&quot;.highlight&quot;).data(o);i.enter().append(&quot;line&quot;).classed(&quot;highlight&quot;,!0).attr(&quot;x&quot;,-n.bar.width/2).attr(&quot;stroke-width&quot;,n.bar.width-n.bar.strokeWidth).attr(&quot;stroke&quot;,n.bar.fillColor).attr(&quot;opacity&quot;,n.bar.fillOpacity).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;),i.attr(&quot;y1&quot;,(function(t){return t.height})).call(x)}(e)},cleanRanges:function(t,e){if(Array.isArray(t[0])?(t=t.map((function(t){return t.sort(s)})),t=e.multiselect?S(t.sort(M)):[t[0]]):t=[t.sort(s)],e.tickvals){var r=e.tickvals.slice().sort(s);if(!(t=t.map((function(t){var e=[p(0,r,t[0],[]),p(1,r,t[1],[])];if(e[1]&gt;e[0])return e})).filter((function(t){return t}))).length)return}return t.length&gt;1?t:t[0]}}},{&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;./constants&quot;:1153,d3:169}],1151:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/get_data&quot;).getModuleCalcData,a=t(&quot;./plot&quot;),o=t(&quot;../../constants/xmlns_namespaces&quot;);r.name=&quot;parcoords&quot;,r.plot=function(t){var e=i(t.calcdata,&quot;parcoords&quot;)[0];e.length&amp;&amp;a(t,e)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;parcoords&quot;),a=e._has&amp;&amp;e._has(&quot;parcoords&quot;);i&amp;&amp;!a&amp;&amp;(n._paperdiv.selectAll(&quot;.parcoords&quot;).remove(),n._glimages.selectAll(&quot;*&quot;).remove())},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(&quot;.svg-container&quot;);r.filter((function(t,e){return e===r.size()-1})).selectAll(&quot;.gl-canvas-context, .gl-canvas-focus&quot;).each((function(){var t=this.toDataURL(&quot;image/png&quot;);e.append(&quot;svg:image&quot;).attr({xmlns:o.svg,&quot;xlink:href&quot;:t,preserveAspectRatio:&quot;none&quot;,x:0,y:0,width:this.width,height:this.height})})),window.setTimeout((function(){n.selectAll(&quot;#filterBarPattern&quot;).attr(&quot;id&quot;,&quot;filterBarPattern&quot;)}),60)}},{&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../plots/get_data&quot;:865,&quot;./plot&quot;:1160,d3:169}],1152:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray,i=t(&quot;../../components/colorscale&quot;),a=t(&quot;../../lib/gup&quot;).wrap;e.exports=function(t,e){var r,o;return i.hasColorscale(e,&quot;line&quot;)&amp;&amp;n(e.line.color)?(r=e.line.color,o=i.extractOpts(e.line).colorscale,i.calc(t,e,{vals:r,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;})):(r=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=.5;return e}(e._length),o=[[0,e.line.color],[1,e.line.color]]),a({lineColor:r,cscale:o})}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775}],1153:[function(t,e,r){&quot;use strict&quot;;e.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:[&quot;contextLineLayer&quot;,&quot;focusLineLayer&quot;,&quot;pickLineLayer&quot;],axisTitleOffset:28,axisExtentOffset:10,deselectedLineColor:&quot;#777&quot;,bar:{width:4,captureWidth:10,fillColor:&quot;magenta&quot;,fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeColor:&quot;white&quot;,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:&quot;axis-extent-text&quot;,parcoordsLineLayers:&quot;parcoords-line-layers&quot;,parcoordsLineLayer:&quot;parcoords-lines&quot;,parcoords:&quot;parcoords&quot;,parcoordsControlView:&quot;parcoords-control-view&quot;,yAxis:&quot;y-axis&quot;,axisOverlays:&quot;axis-overlays&quot;,axis:&quot;axis&quot;,axisHeading:&quot;axis-heading&quot;,axisTitle:&quot;axis-title&quot;,axisExtent:&quot;axis-extent&quot;,axisExtentTop:&quot;axis-extent-top&quot;,axisExtentTopText:&quot;axis-extent-top-text&quot;,axisExtentBottom:&quot;axis-extent-bottom&quot;,axisExtentBottomText:&quot;axis-extent-bottom-text&quot;,axisBrush:&quot;axis-brush&quot;},id:{filterBarPattern:&quot;filter-bar-pattern&quot;}}},{}],1154:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;./attributes&quot;),u=t(&quot;./axisbrush&quot;),f=t(&quot;./constants&quot;).maxDimensionCount,h=t(&quot;./merge_length&quot;);function p(t,e,r,i){function a(r,i){return n.coerce(t,e,c.dimensions,r,i)}var o=a(&quot;values&quot;),s=a(&quot;visible&quot;);if(o&amp;&amp;o.length||(s=e.visible=!1),s){a(&quot;label&quot;),a(&quot;tickvals&quot;),a(&quot;ticktext&quot;),a(&quot;tickformat&quot;);var f=a(&quot;range&quot;);e._ax={_id:&quot;y&quot;,type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;,range:f},l.setConvert(e._ax,i.layout),a(&quot;multiselect&quot;);var h=a(&quot;constraintrange&quot;);h&amp;&amp;(e.constraintrange=u.cleanRanges(h,e))}}e.exports=function(t,e,r,l){function u(r,i){return n.coerce(t,e,c,r,i)}var d=t.dimensions;Array.isArray(d)&amp;&amp;d.length&gt;f&amp;&amp;(n.log(&quot;parcoords traces support up to &quot;+f+&quot; dimensions at the moment&quot;),d.splice(f));var g=s(t,e,{name:&quot;dimensions&quot;,layout:l,handleItemDefaults:p}),m=function(t,e,r,o,s){var l=s(&quot;line.color&quot;,r);if(i(t,&quot;line&quot;)&amp;&amp;n.isArrayOrTypedArray(l)){if(l.length)return s(&quot;line.colorscale&quot;),a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}),l.length;e.line.color=r}return 1/0}(t,e,r,l,u);o(e,l,u),Array.isArray(g)&amp;&amp;g.length||(e.visible=!1),h(e,g,&quot;values&quot;,m);var v={family:l.font.family,size:Math.round(l.font.size/1.2),color:l.font.color};n.coerceFont(u,&quot;labelfont&quot;,v),n.coerceFont(u,&quot;tickfont&quot;,v),n.coerceFont(u,&quot;rangefont&quot;,v),u(&quot;labelangle&quot;),u(&quot;labelside&quot;)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1149,&quot;./axisbrush&quot;:1150,&quot;./constants&quot;:1153,&quot;./merge_length&quot;:1158}],1155:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isTypedArray;r.convertTypedArray=function(t){return n(t)?Array.prototype.slice.call(t):t},r.isOrdinal=function(t){return!!t.tickvals},r.isVisible=function(t){return t.visible||!(&quot;visible&quot;in t)}},{&quot;../../lib&quot;:778}],1156:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},moduleType:&quot;trace&quot;,name:&quot;parcoords&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;noOpacity&quot;,&quot;noHover&quot;],meta:{}}},{&quot;./attributes&quot;:1149,&quot;./base_plot&quot;:1151,&quot;./calc&quot;:1152,&quot;./defaults&quot;:1154,&quot;./plot&quot;:1160}],1157:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nattribute vec4 p01_04, p05_08, p09_12, p13_16,\n               p17_20, p21_24, p25_28, p29_32,\n               p33_36, p37_40, p41_44, p45_48,\n               p49_52, p53_56, p57_60, colors;\n\nuniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,\n             loA, hiA, loB, hiB, loC, hiC, loD, hiD;\n\nuniform vec2 resolution, viewBoxPos, viewBoxSize;\nuniform sampler2D mask, palette;\nuniform float maskHeight;\nuniform float drwLayer; // 0: context, 1: focus, 2: pick\nuniform vec4 contextColor;\n\nbool isPick    = (drwLayer &gt; 1.5);\nbool isContext = (drwLayer &lt; 0.5);\n\nconst vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);\nconst vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);\n\nfloat val(mat4 p, mat4 v) {\n    return dot(matrixCompMult(p, v) * UNITS, UNITS);\n}\n\nfloat axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {\n    float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);\n    float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);\n    return y1 * (1.0 - ratio) + y2 * ratio;\n}\n\nint iMod(int a, int b) {\n    return a - b * (a / b);\n}\n\nbool fOutside(float p, float lo, float hi) {\n    return (lo &lt; hi) &amp;&amp; (lo &gt; p || p &gt; hi);\n}\n\nbool vOutside(vec4 p, vec4 lo, vec4 hi) {\n    return (\n        fOutside(p[0], lo[0], hi[0]) ||\n        fOutside(p[1], lo[1], hi[1]) ||\n        fOutside(p[2], lo[2], hi[2]) ||\n        fOutside(p[3], lo[3], hi[3])\n    );\n}\n\nbool mOutside(mat4 p, mat4 lo, mat4 hi) {\n    return (\n        vOutside(p[0], lo[0], hi[0]) ||\n        vOutside(p[1], lo[1], hi[1]) ||\n        vOutside(p[2], lo[2], hi[2]) ||\n        vOutside(p[3], lo[3], hi[3])\n    );\n}\n\nbool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {\n    return mOutside(A, loA, hiA) ||\n           mOutside(B, loB, hiB) ||\n           mOutside(C, loC, hiC) ||\n           mOutside(D, loD, hiD);\n}\n\nbool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {\n    mat4 pnts[4];\n    pnts[0] = A;\n    pnts[1] = B;\n    pnts[2] = C;\n    pnts[3] = D;\n\n    for(int i = 0; i &lt; 4; ++i) {\n        for(int j = 0; j &lt; 4; ++j) {\n            for(int k = 0; k &lt; 4; ++k) {\n                if(0 == iMod(\n                    int(255.0 * texture2D(mask,\n                        vec2(\n                            (float(i * 2 + j / 2) + 0.5) / 8.0,\n                            (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight\n                        ))[3]\n                    ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),\n                    2\n                )) return true;\n            }\n        }\n    }\n    return false;\n}\n\nvec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {\n    float x = 0.5 * sign(v) + 0.5;\n    float y = axisY(x, A, B, C, D);\n    float z = 1.0 - abs(v);\n\n    z += isContext ? 0.0 : 2.0 * float(\n        outsideBoundingBox(A, B, C, D) ||\n        outsideRasterMask(A, B, C, D)\n    );\n\n    return vec4(\n        2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,\n        z,\n        1.0\n    );\n}\n\nvoid main() {\n    mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);\n    mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);\n    mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);\n    mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);\n\n    float v = colors[3];\n\n    gl_Position = position(isContext, v, A, B, C, D);\n\n    fragColor =\n        isContext ? vec4(contextColor) :\n        isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));\n}\n&quot;]),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n    gl_FragColor = fragColor;\n}\n&quot;]),o=t(&quot;./constants&quot;).maxDimensionCount,s=t(&quot;../../lib&quot;),l=new Uint8Array(4),c=new Uint8Array(4),u={shape:[256,1],format:&quot;rgba&quot;,type:&quot;uint8&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;};function f(t,e,r,n,i){var a=t._gl;a.enable(a.SCISSOR_TEST),a.scissor(e,r,n,i),t.clear({color:[0,0,0,0],depth:1})}function h(t,e,r,n,i,a){var o=a.key;r.drawCompleted||(!function(t){t.read({x:0,y:0,width:1,height:1,data:l})}(t),r.drawCompleted=!0),function s(l){var c=Math.min(n,i-l*n);0===l&amp;&amp;(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],f(t,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),r.clearOnly||(a.count=2*c,a.offset=2*l*n,e(a),l*n+c&lt;i&amp;&amp;(r.currentRafs[o]=window.requestAnimationFrame((function(){s(l+1)}))),r.drawCompleted=!1)}(0)}function p(t,e){for(var r=new Array(256),n=0;n&lt;256;n++)r[n]=t(n/255).concat(e);return r}function d(t,e){return(t&gt;&gt;&gt;8*e)%256/255}function g(t,e,r){for(var n=new Array(8*e),i=0,a=0;a&lt;e;a++)for(var o=0;o&lt;2;o++)for(var s=0;s&lt;4;s++){var l=4*t+s,c=r[64*a+l];63===l&amp;&amp;0===o&amp;&amp;(c*=-1),n[i++]=c}return n}function m(t){var e=&quot;0&quot;+t;return e.substr(e.length-2)}function v(t){return t&lt;o?&quot;p&quot;+m(t+1)+&quot;_&quot;+m(t+4):&quot;colors&quot;}function y(t,e,r,n,i,a,o,l,c,u,f,h,p){for(var d=[[],[]],g=0;g&lt;64;g++)d[0][g]=g===i?1:0,d[1][g]=g===a?1:0;var m=t.lines.canvasOverdrag,v=t.domain,y=t.canvasWidth,x=t.canvasHeight,b=t.deselectedLines.color;return s.extendFlat({key:f,resolution:[y,x],viewBoxPos:[o+m,l],viewBoxSize:[c,u],i0:i,i1:a,dim0A:d[0].slice(0,16),dim0B:d[0].slice(16,32),dim0C:d[0].slice(32,48),dim0D:d[0].slice(48,64),dim1A:d[1].slice(0,16),dim1B:d[1].slice(16,32),dim1C:d[1].slice(32,48),dim1D:d[1].slice(48,64),drwLayer:h,contextColor:[b[0]/255,b[1]/255,b[2]/255,b[3]&lt;1?b[3]:Math.max(1/255,Math.pow(1/t.lines.color.length,1/3))],scissorX:(n===e?0:o+m)+(t.pad.l-m)+t.layoutWidth*v.x[0],scissorWidth:(n===r?y-o+m:c+.5)+(n===e?o+m:0),scissorY:l+t.pad.b+t.layoutHeight*v.y[0],scissorHeight:u,viewportX:t.pad.l-m+t.layoutWidth*v.x[0],viewportY:t.pad.b+t.layoutHeight*v.y[0],viewportWidth:y,viewportHeight:x},p)}function x(t){var e=Math.max(0,Math.floor(2047*t[0]),0),r=Math.min(2047,Math.ceil(2047*t[1]),2047);return[Math.min(e,r),Math.max(e,r)]}e.exports=function(t,e){var r,n,l,m,b,_=e.context,w=e.pick,T=e.regl,k={currentRafs:{},drawCompleted:!0,clearOnly:!1},M=function(t){for(var e={},r=0;r&lt;=o;r+=4)e[v(r)]=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)});return e}(T),A=T.texture(u),S=[];C(e);var E=T({profile:!1,blend:{enable:_,func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:1,dstAlpha:1},equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},color:[0,0,0,0]},depth:{enable:!_,mask:!0,func:&quot;less&quot;,range:[0,1]},cull:{enable:!0,face:&quot;back&quot;},scissor:{enable:!0,box:{x:T.prop(&quot;scissorX&quot;),y:T.prop(&quot;scissorY&quot;),width:T.prop(&quot;scissorWidth&quot;),height:T.prop(&quot;scissorHeight&quot;)}},viewport:{x:T.prop(&quot;viewportX&quot;),y:T.prop(&quot;viewportY&quot;),width:T.prop(&quot;viewportWidth&quot;),height:T.prop(&quot;viewportHeight&quot;)},dither:!1,vert:i,frag:a,primitive:&quot;lines&quot;,lineWidth:1,attributes:M,uniforms:{resolution:T.prop(&quot;resolution&quot;),viewBoxPos:T.prop(&quot;viewBoxPos&quot;),viewBoxSize:T.prop(&quot;viewBoxSize&quot;),dim0A:T.prop(&quot;dim0A&quot;),dim1A:T.prop(&quot;dim1A&quot;),dim0B:T.prop(&quot;dim0B&quot;),dim1B:T.prop(&quot;dim1B&quot;),dim0C:T.prop(&quot;dim0C&quot;),dim1C:T.prop(&quot;dim1C&quot;),dim0D:T.prop(&quot;dim0D&quot;),dim1D:T.prop(&quot;dim1D&quot;),loA:T.prop(&quot;loA&quot;),hiA:T.prop(&quot;hiA&quot;),loB:T.prop(&quot;loB&quot;),hiB:T.prop(&quot;hiB&quot;),loC:T.prop(&quot;loC&quot;),hiC:T.prop(&quot;hiC&quot;),loD:T.prop(&quot;loD&quot;),hiD:T.prop(&quot;hiD&quot;),palette:A,contextColor:T.prop(&quot;contextColor&quot;),mask:T.prop(&quot;maskTexture&quot;),drwLayer:T.prop(&quot;drwLayer&quot;),maskHeight:T.prop(&quot;maskHeight&quot;)},offset:T.prop(&quot;offset&quot;),count:T.prop(&quot;count&quot;)});function C(t){r=t.model,n=t.viewModel,l=n.dimensions.slice(),m=l[0]?l[0].values.length:0;var e=r.lines,i=w?e.color.map((function(t,r){return r/e.color.length})):e.color,a=function(t,e,r){for(var n,i=new Array(t*(o+4)),a=0,s=0;s&lt;t;s++){for(var l=0;l&lt;o;l++)i[a++]=l&lt;e.length?e[l].paddedUnitValues[s]:.5;i[a++]=d(s,2),i[a++]=d(s,1),i[a++]=d(s,0),i[a++]=(n=r[s],Math.max(1e-6,Math.min(.999999,n)))}return i}(m,l,i);!function(t,e,r){for(var n=0;n&lt;=o;n+=4)t[v(n)](g(n/4,e,r))}(M,m,a),_||w||(A=T.texture(s.extendFlat({data:p(r.unitToColor,255)},u)))}return{render:function(t,e,n){var i,a,o,s=t.length,c=1/0,u=-1/0;for(i=0;i&lt;s;i++)t[i].dim0.canvasX&lt;c&amp;&amp;(c=t[i].dim0.canvasX,a=i),t[i].dim1.canvasX&gt;u&amp;&amp;(u=t[i].dim1.canvasX,o=i);0===s&amp;&amp;f(T,0,0,r.canvasWidth,r.canvasHeight);var p=function(t){var e,r,n,i=[[],[]];for(n=0;n&lt;64;n++){var a=!t&amp;&amp;n&lt;l.length?l[n].brush.filter.getBounds():[-1/0,1/0];i[0][n]=a[0],i[1][n]=a[1]}var o=new Array(16384);for(e=0;e&lt;16384;e++)o[e]=255;if(!t)for(e=0;e&lt;l.length;e++){var s=e%8,c=(e-s)/8,u=Math.pow(2,s),f=l[e].brush.filter.get();if(!(f.length&lt;2)){var h=x(f[0])[1];for(r=1;r&lt;f.length;r++){var p=x(f[r]);for(n=h+1;n&lt;p[0];n++)o[8*n+c]&amp;=~u;h=Math.max(h,p[1])}}}var d={shape:[8,2048],format:&quot;alpha&quot;,type:&quot;uint8&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;,data:o};return b?b(d):b=T.texture(d),{maskTexture:b,maskHeight:2048,loA:i[0].slice(0,16),loB:i[0].slice(16,32),loC:i[0].slice(32,48),loD:i[0].slice(48,64),hiA:i[1].slice(0,16),hiB:i[1].slice(16,32),hiC:i[1].slice(32,48),hiD:i[1].slice(48,64)}}(_);for(i=0;i&lt;s;i++){var d=t[i],g=d.dim0.crossfilterDimensionIndex,v=d.dim1.crossfilterDimensionIndex,M=d.canvasX,A=d.canvasY,C=M+d.panelSizeX;if(e||!S[g]||S[g][0]!==M||S[g][1]!==C){S[g]=[M,C];var L=y(r,a,o,i,g,v,M,A,d.panelSizeX,d.panelSizeY,d.dim0.crossfilterDimensionIndex,_?0:w?2:1,p);k.clearOnly=n;var I=e?r.lines.blockLineCount:m;h(T,E,k,I,m,L)}}},readPixel:function(t,e){return T.read({x:t,y:e,width:1,height:1,data:c}),c},readPixels:function(t,e,r,n){var i=new Uint8Array(4*r*n);return T.read({x:t,y:e,width:r,height:n,data:i}),i},destroy:function(){for(var e in t.style[&quot;pointer-events&quot;]=&quot;none&quot;,A.destroy(),b&amp;&amp;b.destroy(),M)M[e].destroy()},update:C}}},{&quot;../../lib&quot;:778,&quot;./constants&quot;:1153,glslify:439}],1158:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i,a;for(n||(n=1/0),i=0;i&lt;e.length;i++)(a=e[i]).visible&amp;&amp;(n=Math.min(n,a[r].length));for(n===1/0&amp;&amp;(n=0),t._length=n,i=0;i&lt;e.length;i++)(a=e[i]).visible&amp;&amp;(a._length=n);return n}},{}],1159:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;color-rgba&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../lib&quot;),s=o.strRotate,l=o.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../../components/colorscale&quot;),h=t(&quot;../../lib/gup&quot;),p=h.keyFun,d=h.repeat,g=h.unwrap,m=t(&quot;./helpers&quot;),v=t(&quot;./constants&quot;),y=t(&quot;./axisbrush&quot;),x=t(&quot;./lines&quot;);function b(t,e,r){return o.aggNums(t,null,e,r)}function _(t,e){return T(b(Math.min,t,e),b(Math.max,t,e))}function w(t){var e=t.range;return e?T(e[0],e[1]):_(t.values,t._length)}function T(t,e){return!isNaN(t)&amp;&amp;isFinite(t)||(t=0),!isNaN(e)&amp;&amp;isFinite(e)||(e=0),t===e&amp;&amp;(0===t?(t-=1,e+=1):(t*=.9,e*=1.1)),[t,e]}function k(t,e,r,i,a){var o,s,l=w(r);return i?n.scale.ordinal().domain(i.map((o=n.format(r.tickformat),s=a,s?function(t,e){var r=s[e];return null==r?o(t):r}:o))).range(i.map((function(r){var n=(r-l[0])/(l[1]-l[0]);return t-e+n*(2*e-t)}))):n.scale.linear().domain(l).range([t-e,e])}function M(t){if(t.tickvals){var e=w(t);return n.scale.ordinal().domain(t.tickvals).range(t.tickvals.map((function(t){return(t-e[0])/(e[1]-e[0])})))}}function A(t){var e=t.map((function(t){return t[0]})),r=t.map((function(t){var e=i(t[1]);return n.rgb(&quot;rgb(&quot;+e[0]+&quot;,&quot;+e[1]+&quot;,&quot;+e[2]+&quot;)&quot;)})),a=&quot;rgb&quot;.split(&quot;&quot;).map((function(t){return n.scale.linear().clamp(!0).domain(e).range(r.map((i=t,function(t){return t[i]})));var i}));return function(t){return a.map((function(e){return e(t)}))}}function S(t){return t.dimensions.some((function(t){return t.brush.filterSpecified}))}function E(t,e,r){var a=g(e),s=a.trace,l=m.convertTypedArray(a.lineColor),c=s.line,u={color:i(v.deselectedLineColor)},h=f.extractOpts(c),p=h.reversescale?f.flipScale(a.cscale):a.cscale,d=s.domain,y=s.dimensions,x=t.width,b=s.labelangle,_=s.labelside,T=s.labelfont,k=s.tickfont,M=s.rangefont,S=o.extendDeepNoArrays({},c,{color:l.map(n.scale.linear().domain(w({values:l,range:[h.min,h.max],_length:s._length}))),blockLineCount:v.blockLineCount,canvasOverdrag:v.overdrag*v.canvasPixelRatio}),E=Math.floor(x*(d.x[1]-d.x[0])),C=Math.floor(t.height*(d.y[1]-d.y[0])),L=t.margin||{l:80,r:80,t:100,b:80},I=E,P=C;return{key:r,colCount:y.filter(m.isVisible).length,dimensions:y,tickDistance:v.tickDistance,unitToColor:A(p),lines:S,deselectedLines:u,labelAngle:b,labelSide:_,labelFont:T,tickFont:k,rangeFont:M,layoutWidth:x,layoutHeight:t.height,domain:d,translateX:d.x[0]*x,translateY:t.height-d.y[1]*t.height,pad:L,canvasWidth:I*v.canvasPixelRatio+2*S.canvasOverdrag,canvasHeight:P*v.canvasPixelRatio,width:I,height:P,canvasPixelRatio:v.canvasPixelRatio}}function C(t,e,r){var i=r.width,a=r.height,s=r.dimensions,l=r.canvasPixelRatio,c=function(t){return i*t/Math.max(1,r.colCount-1)},u=v.verticalPadding/a,f=function(t,e){return n.scale.linear().range([e,t-e])}(a,v.verticalPadding),h={key:r.key,xScale:c,model:r,inBrushDrag:!1},p={};return h.dimensions=s.filter(m.isVisible).map((function(i,s){var d=function(t,e){return n.scale.linear().domain(w(t)).range([e,1-e])}(i,u),g=p[i.label];p[i.label]=(g||0)+1;var x=i.label+(g?&quot;__&quot;+g:&quot;&quot;),b=i.constraintrange,_=b&amp;&amp;b.length;_&amp;&amp;!Array.isArray(b[0])&amp;&amp;(b=[b]);var T=_?b.map((function(t){return t.map(d)})):[[-1/0,1/0]],A=i.values;A.length&gt;i._length&amp;&amp;(A=A.slice(0,i._length));var E,C=i.tickvals;function L(t,e){return{val:t,text:E[e]}}function I(t,e){return t.val-e.val}if(Array.isArray(C)&amp;&amp;C.length){E=i.ticktext,Array.isArray(E)&amp;&amp;E.length?E.length&gt;C.length?E=E.slice(0,C.length):C.length&gt;E.length&amp;&amp;(C=C.slice(0,E.length)):E=C.map(n.format(i.tickformat));for(var P=1;P&lt;C.length;P++)if(C[P]&lt;C[P-1]){for(var z=C.map(L).sort(I),O=0;O&lt;C.length;O++)C[O]=z[O].val,E[O]=z[O].text;break}}else C=void 0;return A=m.convertTypedArray(A),{key:x,label:i.label,tickFormat:i.tickformat,tickvals:C,ticktext:E,ordinal:m.isOrdinal(i),multiselect:i.multiselect,xIndex:s,crossfilterDimensionIndex:s,visibleIndex:i._index,height:a,values:A,paddedUnitValues:A.map(d),unitTickvals:C&amp;&amp;C.map(d),xScale:c,x:c(s),canvasX:c(s)*l,unitToPaddedPx:f,domainScale:k(a,v.verticalPadding,i,C,E),ordinalScale:M(i),parent:h,model:r,brush:y.makeBrush(t,_,T,(function(){t.linePickActive(!1)}),(function(){var e=h;e.focusLayer&amp;&amp;e.focusLayer.render(e.panels,!0);var r=S(e);!t.contextShown()&amp;&amp;r?(e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!0),t.contextShown(!0)):t.contextShown()&amp;&amp;!r&amp;&amp;(e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!0,!0),t.contextShown(!1))}),(function(r){if(h.focusLayer.render(h.panels,!0),h.pickLayer&amp;&amp;h.pickLayer.render(h.panels,!0),t.linePickActive(!0),e&amp;&amp;e.filterChanged){var n=d.invert,a=r.map((function(t){return t.map(n).sort(o.sorterAsc)})).sort((function(t,e){return t[0]-e[0]}));e.filterChanged(h.key,i._index,a)}}))}})),h}function L(t){t.classed(v.cn.axisExtentText,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).style(&quot;cursor&quot;,&quot;default&quot;)}function I(t,e){var r=&quot;top&quot;===e?1:-1,n=t*Math.PI/180;return{dir:r,dx:Math.sin(n),dy:Math.cos(n),degrees:t}}function P(t,e){for(var r=e.panels||(e.panels=[]),n=t.data(),i=0;i&lt;n.length-1;i++){var a=r[i]||(r[i]={}),o=n[i],s=n[i+1];a.dim0=o,a.dim1=s,a.canvasX=o.canvasX,a.panelSizeX=s.canvasX-o.canvasX,a.panelSizeY=e.model.canvasHeight,a.y=0,a.canvasY=0}}function z(t,e){return a.tickText(t._ax,e,!1).text}function O(t,e){if(t.ordinal)return&quot;&quot;;var r=t.domainScale.domain(),n=r[e?r.length-1:0];return z(t.model.dimensions[t.visibleIndex],n)}e.exports=function(t,e,r,i){var f=t._fullLayout,h=f._toppaper,b=f._glcontainer;!function(t){for(var e=0;e&lt;t.length;e++)for(var r=0;r&lt;t[e].length;r++)for(var n=t[e][r].trace,i=n.dimensions,o=0;o&lt;i.length;o++){var s=i[o].values,l=i[o]._ax;l&amp;&amp;(l.range?l.range=T(l.range[0],l.range[1]):l.range=_(s,n._length),l.dtick||(l.dtick=.01*(Math.abs(l.range[1]-l.range[0])||1)),l.tickformat=i[o].tickformat,a.calcTicks(l),l.cleanRange())}}(e);var w,k,M=(w=!0,k=!1,{linePickActive:function(t){return arguments.length?w=!!t:w},contextShown:function(t){return arguments.length?k=!!t:k}}),A=e.filter((function(t){return g(t).trace.visible})).map(E.bind(0,r)).map(C.bind(0,M,i));b.each((function(t,e){return o.extendFlat(t,A[e])}));var D=b.selectAll(&quot;.gl-canvas&quot;).each((function(t){t.viewModel=A[0],t.model=t.viewModel?t.viewModel.model:null})),R=null;D.filter((function(t){return t.pick})).style(&quot;pointer-events&quot;,&quot;auto&quot;).on(&quot;mousemove&quot;,(function(t){if(M.linePickActive()&amp;&amp;t.lineLayer&amp;&amp;i&amp;&amp;i.hover){var e=n.event,r=this.width,a=this.height,o=n.mouse(this),s=o[0],l=o[1];if(s&lt;0||l&lt;0||s&gt;=r||l&gt;=a)return;var c=t.lineLayer.readPixel(s,a-1-l),u=0!==c[3],f=u?c[2]+256*(c[1]+256*c[0]):null,h={x:s,y:l,clientX:e.clientX,clientY:e.clientY,dataIndex:t.model.key,curveNumber:f};f!==R&amp;&amp;(u?i.hover(h):i.unhover&amp;&amp;i.unhover(h),R=f)}})),D.style(&quot;opacity&quot;,(function(t){return t.pick?0:1})),h.style(&quot;background&quot;,&quot;rgba(255, 255, 255, 0)&quot;);var F=h.selectAll(&quot;.&quot;+v.cn.parcoords).data(A,p);F.exit().remove(),F.enter().append(&quot;g&quot;).classed(v.cn.parcoords,!0).style(&quot;shape-rendering&quot;,&quot;crispEdges&quot;).style(&quot;pointer-events&quot;,&quot;none&quot;),F.attr(&quot;transform&quot;,(function(t){return l(t.model.translateX,t.model.translateY)}));var B=F.selectAll(&quot;.&quot;+v.cn.parcoordsControlView).data(d,p);B.enter().append(&quot;g&quot;).classed(v.cn.parcoordsControlView,!0),B.attr(&quot;transform&quot;,(function(t){return l(t.model.pad.l,t.model.pad.t)}));var N=B.selectAll(&quot;.&quot;+v.cn.yAxis).data((function(t){return t.dimensions}),p);N.enter().append(&quot;g&quot;).classed(v.cn.yAxis,!0),B.each((function(t){P(N,t)})),D.each((function(t){if(t.viewModel){!t.lineLayer||i?t.lineLayer=x(this,t):t.lineLayer.update(t),(t.key||0===t.key)&amp;&amp;(t.viewModel[t.key]=t.lineLayer);var e=!t.context||i;t.lineLayer.render(t.viewModel.panels,e)}})),N.attr(&quot;transform&quot;,(function(t){return l(t.xScale(t.xIndex),0)})),N.call(n.behavior.drag().origin((function(t){return t})).on(&quot;drag&quot;,(function(t){var e=t.parent;M.linePickActive(!1),t.x=Math.max(-v.overdrag,Math.min(t.model.width+v.overdrag,n.event.x)),t.canvasX=t.x*t.model.canvasPixelRatio,N.sort((function(t,e){return t.x-e.x})).each((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e.xIndex),e.canvasX=e.x*e.model.canvasPixelRatio})),P(N,e),N.filter((function(e){return 0!==Math.abs(t.xIndex-e.xIndex)})).attr(&quot;transform&quot;,(function(t){return l(t.xScale(t.xIndex),0)})),n.select(this).attr(&quot;transform&quot;,l(t.x,0)),N.each((function(r,n,i){i===t.parent.key&amp;&amp;(e.dimensions[n]=r)})),e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!1,!S(e)),e.focusLayer.render&amp;&amp;e.focusLayer.render(e.panels)})).on(&quot;dragend&quot;,(function(t){var e=t.parent;t.x=t.xScale(t.xIndex),t.canvasX=t.x*t.model.canvasPixelRatio,P(N,e),n.select(this).attr(&quot;transform&quot;,(function(t){return l(t.x,0)})),e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!1,!S(e)),e.focusLayer&amp;&amp;e.focusLayer.render(e.panels),e.pickLayer&amp;&amp;e.pickLayer.render(e.panels,!0),M.linePickActive(!0),i&amp;&amp;i.axesMoved&amp;&amp;i.axesMoved(e.key,e.dimensions.map((function(t){return t.crossfilterDimensionIndex})))}))),N.exit().remove();var j=N.selectAll(&quot;.&quot;+v.cn.axisOverlays).data(d,p);j.enter().append(&quot;g&quot;).classed(v.cn.axisOverlays,!0),j.selectAll(&quot;.&quot;+v.cn.axis).remove();var U=j.selectAll(&quot;.&quot;+v.cn.axis).data(d,p);U.enter().append(&quot;g&quot;).classed(v.cn.axis,!0),U.each((function(t){var e=t.model.height/t.model.tickDistance,r=t.domainScale,i=r.domain();n.select(this).call(n.svg.axis().orient(&quot;left&quot;).tickSize(4).outerTickSize(2).ticks(e,t.tickFormat).tickValues(t.ordinal?i:null).tickFormat((function(e){return m.isOrdinal(t)?e:z(t.model.dimensions[t.visibleIndex],e)})).scale(r)),u.font(U.selectAll(&quot;text&quot;),t.model.tickFont)})),U.selectAll(&quot;.domain, .tick&gt;line&quot;).attr(&quot;fill&quot;,&quot;none&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-opacity&quot;,.25).attr(&quot;stroke-width&quot;,&quot;1px&quot;),U.selectAll(&quot;text&quot;).style(&quot;text-shadow&quot;,&quot;1px 1px 1px #fff, -1px -1px 1px #fff, 1px -1px 1px #fff, -1px 1px 1px #fff&quot;).style(&quot;cursor&quot;,&quot;default&quot;);var V=j.selectAll(&quot;.&quot;+v.cn.axisHeading).data(d,p);V.enter().append(&quot;g&quot;).classed(v.cn.axisHeading,!0);var q=V.selectAll(&quot;.&quot;+v.cn.axisTitle).data(d,p);q.enter().append(&quot;text&quot;).classed(v.cn.axisTitle,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).style(&quot;cursor&quot;,&quot;ew-resize&quot;).style(&quot;pointer-events&quot;,&quot;auto&quot;),q.text((function(t){return t.label})).each((function(e){var r=n.select(this);u.font(r,e.model.labelFont),c.convertToTspans(r,t)})).attr(&quot;transform&quot;,(function(t){var e=I(t.model.labelAngle,t.model.labelSide),r=v.axisTitleOffset;return(e.dir&gt;0?&quot;&quot;:l(0,2*r+t.model.height))+s(e.degrees)+l(-r*e.dx,-r*e.dy)})).attr(&quot;text-anchor&quot;,(function(t){var e=I(t.model.labelAngle,t.model.labelSide);return 2*Math.abs(e.dx)&gt;Math.abs(e.dy)?e.dir*e.dx&lt;0?&quot;start&quot;:&quot;end&quot;:&quot;middle&quot;}));var H=j.selectAll(&quot;.&quot;+v.cn.axisExtent).data(d,p);H.enter().append(&quot;g&quot;).classed(v.cn.axisExtent,!0);var G=H.selectAll(&quot;.&quot;+v.cn.axisExtentTop).data(d,p);G.enter().append(&quot;g&quot;).classed(v.cn.axisExtentTop,!0),G.attr(&quot;transform&quot;,l(0,-v.axisExtentOffset));var Y=G.selectAll(&quot;.&quot;+v.cn.axisExtentTopText).data(d,p);Y.enter().append(&quot;text&quot;).classed(v.cn.axisExtentTopText,!0).call(L),Y.text((function(t){return O(t,!0)})).each((function(t){u.font(n.select(this),t.model.rangeFont)}));var W=H.selectAll(&quot;.&quot;+v.cn.axisExtentBottom).data(d,p);W.enter().append(&quot;g&quot;).classed(v.cn.axisExtentBottom,!0),W.attr(&quot;transform&quot;,(function(t){return l(0,t.model.height+v.axisExtentOffset)}));var X=W.selectAll(&quot;.&quot;+v.cn.axisExtentBottomText).data(d,p);X.enter().append(&quot;text&quot;).classed(v.cn.axisExtentBottomText,!0).attr(&quot;dy&quot;,&quot;0.75em&quot;).call(L),X.text((function(t){return O(t,!1)})).each((function(t){u.font(n.select(this),t.model.rangeFont)})),y.ensureAxisBrush(j)}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;./axisbrush&quot;:1150,&quot;./constants&quot;:1153,&quot;./helpers&quot;:1155,&quot;./lines&quot;:1157,&quot;color-rgba&quot;:127,d3:169}],1160:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./parcoords&quot;),i=t(&quot;../../lib/prepare_regl&quot;),a=t(&quot;./helpers&quot;).isVisible;function o(t,e,r){var n=e.indexOf(r),i=t.indexOf(n);return-1===i&amp;&amp;(i+=e.length),i}e.exports=function(t,e){var r=t._fullLayout;if(i(t)){var s={},l={},c={},u={},f=r._size;e.forEach((function(e,r){var n=e[0].trace;c[r]=n.index;var i=u[r]=n._fullInput.index;s[r]=t.data[i].dimensions,l[r]=t.data[i].dimensions.slice()}));n(t,e,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{filterChanged:function(e,n,i){var a=l[e][n],o=i.map((function(t){return t.slice()})),s=&quot;dimensions[&quot;+n+&quot;].constraintrange&quot;,f=r._tracePreGUI[t._fullData[c[e]]._fullInput.uid];if(void 0===f[s]){var h=a.constraintrange;f[s]=h||null}var p=t._fullData[c[e]].dimensions[n];o.length?(1===o.length&amp;&amp;(o=o[0]),a.constraintrange=o,p.constraintrange=o.slice(),o=[o]):(delete a.constraintrange,delete p.constraintrange,o=null);var d={};d[s]=o,t.emit(&quot;plotly_restyle&quot;,[d,[u[e]]])},hover:function(e){t.emit(&quot;plotly_hover&quot;,e)},unhover:function(e){t.emit(&quot;plotly_unhover&quot;,e)},axesMoved:function(e,r){var n=function(t,e){return function(r,n){return o(t,e,r)-o(t,e,n)}}(r,l[e].filter(a));s[e].sort(n),l[e].filter((function(t){return!a(t)})).sort((function(t){return l[e].indexOf(t)})).forEach((function(t){s[e].splice(s[e].indexOf(t),1),s[e].splice(l[e].indexOf(t),0,t)})),t.emit(&quot;plotly_restyle&quot;,[{dimensions:[s[e]]},[u[e]]])}})}}},{&quot;../../lib/prepare_regl&quot;:791,&quot;./helpers&quot;:1155,&quot;./parcoords&quot;:1159}],1161:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/domain&quot;).attributes,a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../components/color/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,c=t(&quot;../../lib/extend&quot;).extendFlat,u=a({editType:&quot;plot&quot;,arrayOk:!0,colorEditType:&quot;plot&quot;});e.exports={labels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},label0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},dlabel:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},marker:{colors:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:o.defaultLine,arrayOk:!0,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,arrayOk:!0,editType:&quot;style&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},text:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},scalegroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;],extras:[&quot;none&quot;],editType:&quot;calc&quot;},hoverinfo:c({},n.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;name&quot;]}),hovertemplate:s({},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;text&quot;]}),texttemplate:l({editType:&quot;plot&quot;},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;text&quot;]}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;auto&quot;,&quot;none&quot;],dflt:&quot;auto&quot;,arrayOk:!0,editType:&quot;plot&quot;},textfont:c({},u,{}),insidetextorientation:{valType:&quot;enumerated&quot;,values:[&quot;horizontal&quot;,&quot;radial&quot;,&quot;tangential&quot;,&quot;auto&quot;],dflt:&quot;auto&quot;,editType:&quot;plot&quot;},insidetextfont:c({},u,{}),outsidetextfont:c({},u,{}),automargin:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},font:c({},u,{}),position:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle center&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},domain:i({name:&quot;pie&quot;,trace:!0,editType:&quot;calc&quot;}),hole:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;},sort:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;],dflt:&quot;counterclockwise&quot;,editType:&quot;calc&quot;},rotation:{valType:&quot;number&quot;,min:-360,max:360,dflt:0,editType:&quot;calc&quot;},pull:{valType:&quot;number&quot;,min:0,max:1,dflt:0,arrayOk:!0,editType:&quot;calc&quot;},_deprecated:{title:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},titlefont:c({},u,{}),titleposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle center&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],editType:&quot;calc&quot;}}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906}],1162:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;pie&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1163:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../components/color&quot;),o={};function s(t){return function(e,r){return!!e&amp;&amp;(!!(e=i(e)).isValid()&amp;&amp;(e=a.addOpacity(e,e.getAlpha()),t[r]||(t[r]=e),e))}}function l(t,e){var r,n=JSON.stringify(t),a=e[n];if(!a){for(a=t.slice(),r=0;r&lt;t.length;r++)a.push(i(t[r]).lighten(20).toHexString());for(r=0;r&lt;t.length;r++)a.push(i(t[r]).darken(20).toHexString());e[n]=a}return a}e.exports={calc:function(t,e){var r,i,a=[],o=t._fullLayout,l=o.hiddenlabels||[],c=e.labels,u=e.marker.colors||[],f=e.values,h=e._length,p=e._hasValues&amp;&amp;h;if(e.dlabel)for(c=new Array(h),r=0;r&lt;h;r++)c[r]=String(e.label0+r*e.dlabel);var d={},g=s(o[&quot;_&quot;+e.type+&quot;colormap&quot;]),m=0,v=!1;for(r=0;r&lt;h;r++){var y,x,b;if(p){if(y=f[r],!n(y))continue;if((y=+y)&lt;0)continue}else y=1;void 0!==(x=c[r])&amp;&amp;&quot;&quot;!==x||(x=r);var _=d[x=String(x)];void 0===_?(d[x]=a.length,(b=-1!==l.indexOf(x))||(m+=y),a.push({v:y,label:x,color:g(u[r],x),i:r,pts:[r],hidden:b})):(v=!0,(i=a[_]).v+=y,i.pts.push(r),i.hidden||(m+=y),!1===i.color&amp;&amp;u[r]&amp;&amp;(i.color=g(u[r],x)))}return(&quot;funnelarea&quot;===e.type?v:e.sort)&amp;&amp;a.sort((function(t,e){return e.v-t.v})),a[0]&amp;&amp;(a[0].vTotal=m),a},crossTraceCalc:function(t,e){var r=(e||{}).type;r||(r=&quot;pie&quot;);var n=t._fullLayout,i=t.calcdata,a=n[r+&quot;colorway&quot;],s=n[&quot;_&quot;+r+&quot;colormap&quot;];n[&quot;extend&quot;+r+&quot;colors&quot;]&amp;&amp;(a=l(a,o));for(var c=0,u=0;u&lt;i.length;u++){var f=i[u];if(f[0].trace.type===r)for(var h=0;h&lt;f.length;h++){var p=f[h];!1===p.color&amp;&amp;(s[p.label]?p.color=s[p.label]:(s[p.label]=p.color=a[c%a.length],c++))}}},makePullColorFn:s,generateExtendedColors:l}},{&quot;../../components/color&quot;:643,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],1164:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText;function l(t,e){var r=Array.isArray(t),a=i.isArrayOrTypedArray(e),o=Math.min(r?t.length:1/0,a?e.length:1/0);if(isFinite(o)||(o=0),o&amp;&amp;a){for(var s,l=0;l&lt;o;l++){var c=e[l];if(n(c)&amp;&amp;c&gt;0){s=!0;break}}s||(o=0)}return{hasLabels:r,hasValues:a,len:o}}e.exports={handleLabelsAndValues:l,supplyDefaults:function(t,e,r,n){function c(r,n){return i.coerce(t,e,a,r,n)}var u=l(c(&quot;labels&quot;),c(&quot;values&quot;)),f=u.len;if(e._hasLabels=u.hasLabels,e._hasValues=u.hasValues,!e._hasLabels&amp;&amp;e._hasValues&amp;&amp;(c(&quot;label0&quot;),c(&quot;dlabel&quot;)),f){e._length=f,c(&quot;marker.line.width&quot;)&amp;&amp;c(&quot;marker.line.color&quot;),c(&quot;marker.colors&quot;),c(&quot;scalegroup&quot;);var h,p=c(&quot;text&quot;),d=c(&quot;texttemplate&quot;);if(d||(h=c(&quot;textinfo&quot;,Array.isArray(p)?&quot;text+percent&quot;:&quot;percent&quot;)),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),d||h&amp;&amp;&quot;none&quot;!==h){var g=c(&quot;textposition&quot;);s(t,e,n,c,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(g)||&quot;auto&quot;===g||&quot;outside&quot;===g)&amp;&amp;c(&quot;automargin&quot;),(&quot;inside&quot;===g||&quot;auto&quot;===g||Array.isArray(g))&amp;&amp;c(&quot;insidetextorientation&quot;)}o(e,n,c);var m=c(&quot;hole&quot;);if(c(&quot;title.text&quot;)){var v=c(&quot;title.position&quot;,m?&quot;middle center&quot;:&quot;top center&quot;);m||&quot;middle center&quot;!==v||(e.title.position=&quot;top center&quot;),i.coerceFont(c,&quot;title.font&quot;,n.font)}c(&quot;sort&quot;),c(&quot;direction&quot;),c(&quot;rotation&quot;),c(&quot;pull&quot;)}else e.visible=!1}}},{&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/defaults&quot;:925,&quot;./attributes&quot;:1161,&quot;fast-isnumeric&quot;:241}],1165:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx/helpers&quot;).appendArrayMultiPointValues;e.exports=function(t,e){var r={curveNumber:e.index,pointNumbers:t.pts,data:e._input,fullData:e,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,v:t.v};return 1===t.pts.length&amp;&amp;(r.pointNumber=r.i=t.pts[0]),n(r,e,t.pts),&quot;funnelarea&quot;===e.type&amp;&amp;(delete r.v,delete r.i),r}},{&quot;../../components/fx/helpers&quot;:679}],1166:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);function i(t){return-1!==t.indexOf(&quot;e&quot;)?t.replace(/[.]?0+e/,&quot;e&quot;):-1!==t.indexOf(&quot;.&quot;)?t.replace(/[.]?0+$/,&quot;&quot;):t}r.formatPiePercent=function(t,e){var r=i((100*t).toPrecision(3));return n.numSeparate(r,e)+&quot;%&quot;},r.formatPieValue=function(t,e){var r=i(t.toPrecision(10));return n.numSeparate(r,e)},r.getFirstFilled=function(t,e){if(Array.isArray(t))for(var r=0;r&lt;e.length;r++){var n=t[e[r]];if(n||0===n||&quot;&quot;===n)return n}},r.castOption=function(t,e){return Array.isArray(t)?r.getFirstFilled(t,e):t||void 0},r.getRotationAngle=function(t){return(&quot;auto&quot;===t?0:t)*Math.PI/180}},{&quot;../../lib&quot;:778}],1167:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),styleOne:t(&quot;./style_one&quot;),moduleType:&quot;trace&quot;,name:&quot;pie&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;pie-like&quot;,&quot;pie&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;./attributes&quot;:1161,&quot;./base_plot&quot;:1162,&quot;./calc&quot;:1163,&quot;./defaults&quot;:1164,&quot;./layout_attributes&quot;:1168,&quot;./layout_defaults&quot;:1169,&quot;./plot&quot;:1170,&quot;./style&quot;:1171,&quot;./style_one&quot;:1172}],1168:[function(t,e,r){&quot;use strict&quot;;e.exports={hiddenlabels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},piecolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendpiecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1169:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;hiddenlabels&quot;),r(&quot;piecolorway&quot;,e.colorway),r(&quot;extendpiecolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1168}],1170:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib&quot;),c=l.strScale,u=l.strTranslate,f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../bar/uniform_text&quot;),p=h.recordMinTextSize,d=h.clearMinTextSize,g=t(&quot;../bar/constants&quot;).TEXTPAD,m=t(&quot;./helpers&quot;),v=t(&quot;./event_data&quot;),y=t(&quot;../../lib&quot;).isValidTextValue;function x(t,e,r){var i=r[0],o=i.trace,s=i.cx,c=i.cy;&quot;_hasHoverLabel&quot;in o||(o._hasHoverLabel=!1),&quot;_hasHoverEvent&quot;in o||(o._hasHoverEvent=!1),t.on(&quot;mouseover&quot;,(function(t){var r=e._fullLayout,u=e._fullData[o.index];if(!e._dragging&amp;&amp;!1!==r.hovermode){var f=u.hoverinfo;if(Array.isArray(f)&amp;&amp;(f=a.castHoverinfo({hoverinfo:[m.castOption(f,t.pts)],_module:o._module},r,0)),&quot;all&quot;===f&amp;&amp;(f=&quot;label+text+value+percent+name&quot;),u.hovertemplate||&quot;none&quot;!==f&amp;&amp;&quot;skip&quot;!==f&amp;&amp;f){var h=t.rInscribed||0,p=s+t.pxmid[0]*(1-h),d=c+t.pxmid[1]*(1-h),g=r.separators,y=[];if(f&amp;&amp;-1!==f.indexOf(&quot;label&quot;)&amp;&amp;y.push(t.label),t.text=m.castOption(u.hovertext||u.text,t.pts),f&amp;&amp;-1!==f.indexOf(&quot;text&quot;)){var x=t.text;l.isValidTextValue(x)&amp;&amp;y.push(x)}t.value=t.v,t.valueLabel=m.formatPieValue(t.v,g),f&amp;&amp;-1!==f.indexOf(&quot;value&quot;)&amp;&amp;y.push(t.valueLabel),t.percent=t.v/i.vTotal,t.percentLabel=m.formatPiePercent(t.percent,g),f&amp;&amp;-1!==f.indexOf(&quot;percent&quot;)&amp;&amp;y.push(t.percentLabel);var b=u.hoverlabel,_=b.font;a.loneHover({trace:o,x0:p-h*i.r,x1:p+h*i.r,y:d,text:y.join(&quot;&lt;br&gt;&quot;),name:u.hovertemplate||-1!==f.indexOf(&quot;name&quot;)?u.name:void 0,idealAlign:t.pxmid[0]&lt;0?&quot;left&quot;:&quot;right&quot;,color:m.castOption(b.bgcolor,t.pts)||t.color,borderColor:m.castOption(b.bordercolor,t.pts),fontFamily:m.castOption(_.family,t.pts),fontSize:m.castOption(_.size,t.pts),fontColor:m.castOption(_.color,t.pts),nameLength:m.castOption(b.namelength,t.pts),textAlign:m.castOption(b.align,t.pts),hovertemplate:m.castOption(u.hovertemplate,t.pts),hovertemplateLabels:t,eventData:[v(t,u)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:e}),o._hasHoverLabel=!0}o._hasHoverEvent=!0,e.emit(&quot;plotly_hover&quot;,{points:[v(t,u)],event:n.event})}})),t.on(&quot;mouseout&quot;,(function(t){var r=e._fullLayout,i=e._fullData[o.index],s=n.select(this).datum();o._hasHoverEvent&amp;&amp;(t.originalEvent=n.event,e.emit(&quot;plotly_unhover&quot;,{points:[v(s,i)],event:n.event}),o._hasHoverEvent=!1),o._hasHoverLabel&amp;&amp;(a.loneUnhover(r._hoverlayer.node()),o._hasHoverLabel=!1)})),t.on(&quot;click&quot;,(function(t){var r=e._fullLayout,i=e._fullData[o.index];e._dragging||!1===r.hovermode||(e._hoverdata=[v(t,i)],a.click(e,n.event))}))}function b(t,e,r){var n=m.castOption(t.insidetextfont.color,e.pts);!n&amp;&amp;t._input.textfont&amp;&amp;(n=m.castOption(t._input.textfont.color,e.pts));var i=m.castOption(t.insidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,a=m.castOption(t.insidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size;return{color:n||o.contrast(e.color),family:i,size:a}}function _(t,e){for(var r,n,i=0;i&lt;t.length;i++)if((n=(r=t[i][0]).trace).title.text){var a=n.title.text;n._meta&amp;&amp;(a=l.templateString(a,n._meta));var o=s.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).text(a).call(s.font,n.title.font).call(f.convertToTspans,e),c=s.bBox(o.node(),!0);r.titleBox={width:c.width,height:c.height},o.remove()}}function w(t,e,r){var n=r.r||e.rpx1,i=e.rInscribed;if(e.startangle===e.stopangle)return{rCenter:1-i,scale:0,rotate:0,textPosAngle:0};var a,o=e.ring,s=1===o&amp;&amp;Math.abs(e.startangle-e.stopangle)===2*Math.PI,l=e.halfangle,c=e.midangle,u=r.trace.insidetextorientation,f=&quot;horizontal&quot;===u,h=&quot;tangential&quot;===u,p=&quot;radial&quot;===u,d=&quot;auto&quot;===u,g=[];if(!d){var m,v=function(r,i){if(function(t,e){var r=t.startangle,n=t.stopangle;return r&gt;e&amp;&amp;e&gt;n||r&lt;e&amp;&amp;e&lt;n}(e,r)){var s=Math.abs(r-e.startangle),l=Math.abs(r-e.stopangle),c=s&lt;l?s:l;(a=&quot;tan&quot;===i?k(t,n,o,c,0):T(t,n,o,c,Math.PI/2)).textPosAngle=r,g.push(a)}};if(f||h){for(m=4;m&gt;=-4;m-=2)v(Math.PI*m,&quot;tan&quot;);for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+1),&quot;tan&quot;)}if(f||p){for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+1.5),&quot;rad&quot;);for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+.5),&quot;rad&quot;)}}if(s||d||f){var y=Math.sqrt(t.width*t.width+t.height*t.height);if((a={scale:i*n*2/y,rCenter:1-i,rotate:0}).textPosAngle=(e.startangle+e.stopangle)/2,a.scale&gt;=1)return a;g.push(a)}(d||p)&amp;&amp;((a=T(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,g.push(a)),(d||h)&amp;&amp;((a=k(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,g.push(a));for(var x=0,b=0,_=0;_&lt;g.length;_++){var w=g[_].scale;if(b&lt;w&amp;&amp;(b=w,x=_),!d&amp;&amp;b&gt;=1)break}return g[x]}function T(t,e,r,n,i){e=Math.max(0,e-2*g);var a=t.width/t.height,o=S(a,n,e,r);return{scale:2*o/t.height,rCenter:M(a,o/e),rotate:A(i)}}function k(t,e,r,n,i){e=Math.max(0,e-2*g);var a=t.height/t.width,o=S(a,n,e,r);return{scale:2*o/t.width,rCenter:M(a,o/e),rotate:A(i+Math.PI/2)}}function M(t,e){return Math.cos(e)-t*e}function A(t){return(180/Math.PI*t+720)%180-90}function S(t,e,r,n){var i=t+1/(2*Math.tan(e));return r*Math.min(1/(Math.sqrt(i*i+.5)+i),n/(Math.sqrt(t*t+n/2)+t))}function E(t,e){return t.v!==e.vTotal||e.trace.hole?Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2):1}function C(t,e){var r=e.pxmid[0],n=e.pxmid[1],i=t.width/2,a=t.height/2;return r&lt;0&amp;&amp;(i*=-1),n&lt;0&amp;&amp;(a*=-1),{scale:1,rCenter:1,rotate:0,x:i+Math.abs(a)*(i&gt;0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function L(t,e){var r,n,i,a=t.trace,o={x:t.cx,y:t.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=P(a),-1!==a.title.position.indexOf(&quot;top&quot;)?(o.y-=(1+i)*t.r,s.ty-=t.titleBox.height):-1!==a.title.position.indexOf(&quot;bottom&quot;)&amp;&amp;(o.y+=(1+i)*t.r);var l,c,u=(l=t.r,c=t.trace.aspectratio,l/(void 0===c?1:c)),f=e.w*(a.domain.x[1]-a.domain.x[0])/2;return-1!==a.title.position.indexOf(&quot;left&quot;)?(f+=u,o.x-=(1+i)*u,s.tx+=t.titleBox.width/2):-1!==a.title.position.indexOf(&quot;center&quot;)?f*=2:-1!==a.title.position.indexOf(&quot;right&quot;)&amp;&amp;(f+=u,o.x+=(1+i)*u,s.tx-=t.titleBox.width/2),r=f/t.titleBox.width,n=I(t,e)/t.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function I(t,e){var r=t.trace,n=e.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(t.titleBox.height,n/2)}function P(t){var e,r=t.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,e=0;e&lt;t.pull.length;e++)t.pull[e]&gt;r&amp;&amp;(r=t.pull[e]);return r}function z(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i=t[n][0],a=i.trace,o=a.domain,s=e.w*(o.x[1]-o.x[0]),l=e.h*(o.y[1]-o.y[0]);a.title.text&amp;&amp;&quot;middle center&quot;!==a.title.position&amp;&amp;(l-=I(i,e));var c=s/2,u=l/2;&quot;funnelarea&quot;!==a.type||a.scalegroup||(u/=a.aspectratio),i.r=Math.min(c,u)/(1+P(a)),i.cx=e.l+e.w*(a.domain.x[1]+a.domain.x[0])/2,i.cy=e.t+e.h*(1-a.domain.y[0])-l/2,a.title.text&amp;&amp;-1!==a.title.position.indexOf(&quot;bottom&quot;)&amp;&amp;(i.cy-=I(i,e)),a.scalegroup&amp;&amp;-1===r.indexOf(a.scalegroup)&amp;&amp;r.push(a.scalegroup)}!function(t,e){for(var r,n,i,a=0;a&lt;e.length;a++){var o=1/0,s=e[a];for(n=0;n&lt;t.length;n++)if(r=t[n][0],(i=r.trace).scalegroup===s){var l;if(&quot;pie&quot;===i.type)l=r.r*r.r;else if(&quot;funnelarea&quot;===i.type){var c,u;i.aspectratio&gt;1?(c=r.r,u=c/i.aspectratio):(u=r.r,c=u*i.aspectratio),c*=(1+i.baseratio)/2,l=c*u}o=Math.min(o,l/r.vTotal)}for(n=0;n&lt;t.length;n++)if(r=t[n][0],(i=r.trace).scalegroup===s){var f=o*r.vTotal;&quot;funnelarea&quot;===i.type&amp;&amp;(f/=(1+i.baseratio)/2,f/=i.aspectratio),r.r=Math.sqrt(f)}}}(t,r)}function O(t,e){return[t*Math.sin(e),-t*Math.cos(e)]}function D(t,e,r){var n=t._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&amp;&amp;o&amp;&amp;&quot;none&quot;!==o){var s,c=o.split(&quot;+&quot;),u=function(t){return-1!==c.indexOf(t)},f=u(&quot;label&quot;),h=u(&quot;text&quot;),p=u(&quot;value&quot;),d=u(&quot;percent&quot;),g=n.separators;if(s=f?[e.label]:[],h){var v=m.getFirstFilled(i.text,e.pts);y(v)&amp;&amp;s.push(v)}p&amp;&amp;s.push(m.formatPieValue(e.v,g)),d&amp;&amp;s.push(m.formatPiePercent(e.v/r.vTotal,g)),e.text=s.join(&quot;&lt;br&gt;&quot;)}if(a){var x=l.castOption(i,e.i,&quot;texttemplate&quot;);if(x){var b=function(t){return{label:t.label,value:t.v,valueLabel:m.formatPieValue(t.v,n.separators),percent:t.v/r.vTotal,percentLabel:m.formatPiePercent(t.v/r.vTotal,n.separators),color:t.color,text:t.text,customdata:l.castOption(i,t.i,&quot;customdata&quot;)}}(e),_=m.getFirstFilled(i.text,e.pts);(y(_)||&quot;&quot;===_)&amp;&amp;(b.text=_),e.text=l.texttemplateString(x,b,t._fullLayout._d3locale,b,i._meta||{})}else e.text=&quot;&quot;}}function R(t,e){var r=t.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(e.left+e.right)/2,o=(e.top+e.bottom)/2;t.textX=a*n-o*i,t.textY=a*i+o*n,t.noCenter=!0}e.exports={plot:function(t,e){var r=t._fullLayout,a=r._size;d(&quot;pie&quot;,r),_(e,t),z(e,a);var h=l.makeTraceGroups(r._pielayer,e,&quot;trace&quot;).each((function(e){var h=n.select(this),d=e[0],g=d.trace;!function(t){var e,r,n,i=t[0],a=i.r,o=i.trace,s=m.getRotationAngle(o.rotation),l=2*Math.PI/i.vTotal,c=&quot;px0&quot;,u=&quot;px1&quot;;if(&quot;counterclockwise&quot;===o.direction){for(e=0;e&lt;t.length&amp;&amp;t[e].hidden;e++);if(e===t.length)return;s+=l*t[e].v,l*=-1,c=&quot;px1&quot;,u=&quot;px0&quot;}for(n=O(a,s),e=0;e&lt;t.length;e++)(r=t[e]).hidden||(r[c]=n,r.startangle=s,s+=l*r.v/2,r.pxmid=O(a,s),r.midangle=s,s+=l*r.v/2,n=O(a,s),r.stopangle=s,r[u]=n,r.largeArc=r.v&gt;i.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/i.vTotal,.5),r.ring=1-o.hole,r.rInscribed=E(r,i))}(e),h.attr(&quot;stroke-linejoin&quot;,&quot;round&quot;),h.each((function(){var v=n.select(this).selectAll(&quot;g.slice&quot;).data(e);v.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),v.exit().remove();var y=[[[],[]],[[],[]]],_=!1;v.each((function(i,a){if(i.hidden)n.select(this).selectAll(&quot;path,g&quot;).remove();else{i.pointNumber=i.i,i.curveNumber=g.index,y[i.pxmid[1]&lt;0?0:1][i.pxmid[0]&lt;0?0:1].push(i);var o=d.cx,c=d.cy,u=n.select(this),h=u.selectAll(&quot;path.surface&quot;).data([i]);if(h.enter().append(&quot;path&quot;).classed(&quot;surface&quot;,!0).style({&quot;pointer-events&quot;:&quot;all&quot;}),u.call(x,t,e),g.pull){var v=+m.castOption(g.pull,i.pts)||0;v&gt;0&amp;&amp;(o+=v*i.pxmid[0],c+=v*i.pxmid[1])}i.cxFinal=o,i.cyFinal=c;var T=g.hole;if(i.v===d.vTotal){var k=&quot;M&quot;+(o+i.px0[0])+&quot;,&quot;+(c+i.px0[1])+L(i.px0,i.pxmid,!0,1)+L(i.pxmid,i.px0,!0,1)+&quot;Z&quot;;T?h.attr(&quot;d&quot;,&quot;M&quot;+(o+T*i.px0[0])+&quot;,&quot;+(c+T*i.px0[1])+L(i.px0,i.pxmid,!1,T)+L(i.pxmid,i.px0,!1,T)+&quot;Z&quot;+k):h.attr(&quot;d&quot;,k)}else{var M=L(i.px0,i.px1,!0,1);if(T){var A=1-T;h.attr(&quot;d&quot;,&quot;M&quot;+(o+T*i.px1[0])+&quot;,&quot;+(c+T*i.px1[1])+L(i.px1,i.px0,!1,T)+&quot;l&quot;+A*i.px0[0]+&quot;,&quot;+A*i.px0[1]+M+&quot;Z&quot;)}else h.attr(&quot;d&quot;,&quot;M&quot;+o+&quot;,&quot;+c+&quot;l&quot;+i.px0[0]+&quot;,&quot;+i.px0[1]+M+&quot;Z&quot;)}D(t,i,d);var S=m.castOption(g.textposition,i.pts),E=u.selectAll(&quot;g.slicetext&quot;).data(i.text&amp;&amp;&quot;none&quot;!==S?[0]:[]);E.enter().append(&quot;g&quot;).classed(&quot;slicetext&quot;,!0),E.exit().remove(),E.each((function(){var u=l.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),h=l.ensureUniformFontSize(t,&quot;outside&quot;===S?function(t,e,r){var n=m.castOption(t.outsidetextfont.color,e.pts)||m.castOption(t.textfont.color,e.pts)||r.color,i=m.castOption(t.outsidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,a=m.castOption(t.outsidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size;return{color:n,family:i,size:a}}(g,i,r.font):b(g,i,r.font));u.text(i.text).attr({class:&quot;slicetext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(s.font,h).call(f.convertToTspans,t);var v,y=s.bBox(u.node());if(&quot;outside&quot;===S)v=C(y,i);else if(v=w(y,i,d),&quot;auto&quot;===S&amp;&amp;v.scale&lt;1){var x=l.ensureUniformFontSize(t,g.outsidetextfont);u.call(s.font,x),v=C(y=s.bBox(u.node()),i)}var T=v.textPosAngle,k=void 0===T?i.pxmid:O(d.r,T);if(v.targetX=o+k[0]*v.rCenter+(v.x||0),v.targetY=c+k[1]*v.rCenter+(v.y||0),R(v,y),v.outside){var M=v.targetY;i.yLabelMin=M-y.height/2,i.yLabelMid=M,i.yLabelMax=M+y.height/2,i.labelExtraX=0,i.labelExtraY=0,_=!0}v.fontSize=h.size,p(g.type,v,r),e[a].transform=v,u.attr(&quot;transform&quot;,l.getTextTransform(v))}))}function L(t,e,r,n){var a=n*(e[0]-t[0]),o=n*(e[1]-t[1]);return&quot;a&quot;+n*d.r+&quot;,&quot;+n*d.r+&quot; 0 &quot;+i.largeArc+(r?&quot; 1 &quot;:&quot; 0 &quot;)+a+&quot;,&quot;+o}}));var T=n.select(this).selectAll(&quot;g.titletext&quot;).data(g.title.text?[0]:[]);if(T.enter().append(&quot;g&quot;).classed(&quot;titletext&quot;,!0),T.exit().remove(),T.each((function(){var e,r=l.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),i=g.title.text;g._meta&amp;&amp;(i=l.templateString(i,g._meta)),r.text(i).attr({class:&quot;titletext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(s.font,g.title.font).call(f.convertToTspans,t),e=&quot;middle center&quot;===g.title.position?function(t){var e=Math.sqrt(t.titleBox.width*t.titleBox.width+t.titleBox.height*t.titleBox.height);return{x:t.cx,y:t.cy,scale:t.trace.hole*t.r*2/e,tx:0,ty:-t.titleBox.height/2+t.trace.title.font.size}}(d):L(d,a),r.attr(&quot;transform&quot;,u(e.x,e.y)+c(Math.min(1,e.scale))+u(e.tx,e.ty))})),_&amp;&amp;function(t,e){var r,n,i,a,o,s,l,c,u,f,h,p,d;function g(t,e){return t.pxmid[1]-e.pxmid[1]}function v(t,e){return e.pxmid[1]-t.pxmid[1]}function y(t,r){r||(r={});var i,c,u,h,p=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),d=n?t.yLabelMin:t.yLabelMax,g=n?t.yLabelMax:t.yLabelMin,v=t.cyFinal+o(t.px0[1],t.px1[1]),y=p-d;if(y*l&gt;0&amp;&amp;(t.labelExtraY=y),Array.isArray(e.pull))for(c=0;c&lt;f.length;c++)(u=f[c])===t||(m.castOption(e.pull,t.pts)||0)&gt;=(m.castOption(e.pull,u.pts)||0)||((t.pxmid[1]-u.pxmid[1])*l&gt;0?(y=u.cyFinal+o(u.px0[1],u.px1[1])-d-t.labelExtraY)*l&gt;0&amp;&amp;(t.labelExtraY+=y):(g+t.labelExtraY-v)*l&gt;0&amp;&amp;(i=3*s*Math.abs(c-f.indexOf(t)),(h=u.cxFinal+a(u.px0[0],u.px1[0])+i-(t.cxFinal+t.pxmid[0])-t.labelExtraX)*s&gt;0&amp;&amp;(t.labelExtraX+=h)))}for(n=0;n&lt;2;n++)for(i=n?g:v,o=n?Math.max:Math.min,l=n?1:-1,r=0;r&lt;2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,(c=t[n][r]).sort(i),u=t[1-n][r],f=u.concat(c),p=[],h=0;h&lt;c.length;h++)void 0!==c[h].yLabelMid&amp;&amp;p.push(c[h]);for(d=!1,h=0;n&amp;&amp;h&lt;u.length;h++)if(void 0!==u[h].yLabelMid){d=u[h];break}for(h=0;h&lt;p.length;h++){var x=h&amp;&amp;p[h-1];d&amp;&amp;!h&amp;&amp;(x=d),y(p[h],x)}}}(y,g),function(t,e){t.each((function(t){var r=n.select(this);if(t.labelExtraX||t.labelExtraY){var i=r.select(&quot;g.slicetext text&quot;);t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,i.attr(&quot;transform&quot;,l.getTextTransform(t.transform));var a=t.cxFinal+t.pxmid[0],s=&quot;M&quot;+a+&quot;,&quot;+(t.cyFinal+t.pxmid[1]),c=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]&lt;0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)&gt;Math.abs(f)?s+=&quot;l&quot;+f*t.pxmid[0]/t.pxmid[1]+&quot;,&quot;+f+&quot;H&quot;+(a+t.labelExtraX+c):s+=&quot;l&quot;+t.labelExtraX+&quot;,&quot;+u+&quot;v&quot;+(f-u)+&quot;h&quot;+c}else s+=&quot;V&quot;+(t.yLabelMid+t.labelExtraY)+&quot;h&quot;+c;l.ensureSingle(r,&quot;path&quot;,&quot;textline&quot;).call(o.stroke,e.outsidetextfont.color).attr({&quot;stroke-width&quot;:Math.min(2,e.outsidetextfont.size/8),d:s,fill:&quot;none&quot;})}else r.select(&quot;path.textline&quot;).remove()}))}(v,g),_&amp;&amp;g.automargin){var k=s.bBox(h.node()),M=g.domain,A=a.w*(M.x[1]-M.x[0]),S=a.h*(M.y[1]-M.y[0]),E=(.5*A-d.r)/a.w,I=(.5*S-d.r)/a.h;i.autoMargin(t,&quot;pie.&quot;+g.uid+&quot;.automargin&quot;,{xl:M.x[0]-E,xr:M.x[1]+E,yb:M.y[0]-I,yt:M.y[1]+I,l:Math.max(d.cx-d.r-k.left,0),r:Math.max(k.right-(d.cx+d.r),0),b:Math.max(k.bottom-(d.cy+d.r),0),t:Math.max(d.cy-d.r-k.top,0),pad:5})}}))}));setTimeout((function(){h.selectAll(&quot;tspan&quot;).each((function(){var t=n.select(this);t.attr(&quot;dy&quot;)&amp;&amp;t.attr(&quot;dy&quot;,t.attr(&quot;dy&quot;))}))}),0)},formatSliceLabel:D,transformInsideText:w,determineInsideTextFont:b,positionTitleOutside:L,prerenderTitles:_,layoutAreas:z,attachFxHandlers:x,computeTransform:R}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../bar/constants&quot;:923,&quot;../bar/uniform_text&quot;:937,&quot;./event_data&quot;:1165,&quot;./helpers&quot;:1166,d3:169}],1171:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;./style_one&quot;),a=t(&quot;../bar/uniform_text&quot;).resizeText;e.exports=function(t){var e=t._fullLayout._pielayer.selectAll(&quot;.trace&quot;);a(t,e,&quot;pie&quot;),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(i,t,e)}))}))}},{&quot;../bar/uniform_text&quot;:937,&quot;./style_one&quot;:1172,d3:169}],1172:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;./helpers&quot;).castOption;e.exports=function(t,e,r){var a=r.marker.line,o=i(a.color,e.pts)||n.defaultLine,s=i(a.width,e.pts)||0;t.style(&quot;stroke-width&quot;,s).call(n.fill,e.color).call(n.stroke,o)}},{&quot;../../components/color&quot;:643,&quot;./helpers&quot;:1166}],1173:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;);e.exports={x:n.x,y:n.y,xy:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},indices:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},xbounds:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ybounds:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},text:n.text,marker:{color:{valType:&quot;color&quot;,arrayOk:!1,editType:&quot;calc&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,arrayOk:!1,editType:&quot;calc&quot;},blend:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},sizemin:{valType:&quot;number&quot;,min:.1,max:2,dflt:.5,editType:&quot;calc&quot;},sizemax:{valType:&quot;number&quot;,min:.1,dflt:20,editType:&quot;calc&quot;},border:{color:{valType:&quot;color&quot;,arrayOk:!1,editType:&quot;calc&quot;},arearatio:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},transforms:void 0}},{&quot;../scatter/attributes&quot;:1187}],1174:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-pointcloud2d&quot;),i=t(&quot;../../lib/str2rgbarray&quot;),a=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,o=t(&quot;../scatter/get_trace_color&quot;);function s(t,e){this.scene=t,this.uid=e,this.type=&quot;pointcloud&quot;,this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color=&quot;rgb(0, 0, 0)&quot;,this.name=&quot;&quot;,this.hoverinfo=&quot;all&quot;,this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=n(t.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var l=s.prototype;l.handlePick=function(t){var e=this.idToIndex[t.pointId];return{trace:this,dataCoord:t.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[2*e],this.pickXYData[2*e+1]]:[this.pickXData[e],this.pickYData[e]],textLabel:Array.isArray(this.textLabels)?this.textLabels[e]:this.textLabels,color:this.color,name:this.name,pointIndex:e,hoverinfo:this.hoverinfo}},l.update=function(t){this.index=t.index,this.textLabels=t.text,this.name=t.name,this.hoverinfo=t.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(t),this.color=o(t,{})},l.updateFast=function(t){var e,r,n,o,s,l,c=this.xData=this.pickXData=t.x,u=this.yData=this.pickYData=t.y,f=this.pickXYData=t.xy,h=t.xbounds&amp;&amp;t.ybounds,p=t.indices,d=this.bounds;if(f){if(n=f,e=f.length&gt;&gt;&gt;1,h)d[0]=t.xbounds[0],d[2]=t.xbounds[1],d[1]=t.ybounds[0],d[3]=t.ybounds[1];else for(l=0;l&lt;e;l++)o=n[2*l],s=n[2*l+1],o&lt;d[0]&amp;&amp;(d[0]=o),o&gt;d[2]&amp;&amp;(d[2]=o),s&lt;d[1]&amp;&amp;(d[1]=s),s&gt;d[3]&amp;&amp;(d[3]=s);if(p)r=p;else for(r=new Int32Array(e),l=0;l&lt;e;l++)r[l]=l}else for(e=c.length,n=new Float32Array(2*e),r=new Int32Array(e),l=0;l&lt;e;l++)o=c[l],s=u[l],r[l]=l,n[2*l]=o,n[2*l+1]=s,o&lt;d[0]&amp;&amp;(d[0]=o),o&gt;d[2]&amp;&amp;(d[2]=o),s&lt;d[1]&amp;&amp;(d[1]=s),s&gt;d[3]&amp;&amp;(d[3]=s);this.idToIndex=r,this.pointcloudOptions.idToIndex=r,this.pointcloudOptions.positions=n;var g=i(t.marker.color),m=i(t.marker.border.color),v=t.opacity*t.marker.opacity;g[3]*=v,this.pointcloudOptions.color=g;var y=t.marker.blend;if(null===y){y=c.length&lt;100||u.length&lt;100}this.pointcloudOptions.blend=y,m[3]*=v,this.pointcloudOptions.borderColor=m;var x=t.marker.sizemin,b=Math.max(t.marker.sizemax,t.marker.sizemin);this.pointcloudOptions.sizeMin=x,this.pointcloudOptions.sizeMax=b,this.pointcloudOptions.areaRatio=t.marker.border.arearatio,this.pointcloud.update(this.pointcloudOptions);var _=this.scene.xaxis,w=this.scene.yaxis,T=b/2||.5;t._extremes[_._id]=a(_,[d[0],d[2]],{ppad:T}),t._extremes[w._id]=a(w,[d[1],d[3]],{ppad:T})},l.dispose=function(){this.pointcloud.dispose()},e.exports=function(t,e){var r=new s(t,e.uid);return r.update(e),r}},{&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/autorange&quot;:827,&quot;../scatter/get_trace_color&quot;:1197,&quot;gl-pointcloud2d&quot;:324}],1175:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;);e.exports=function(t,e,r){function a(r,a){return n.coerce(t,e,i,r,a)}a(&quot;x&quot;),a(&quot;y&quot;),a(&quot;xbounds&quot;),a(&quot;ybounds&quot;),t.xy&amp;&amp;t.xy instanceof Float32Array&amp;&amp;(e.xy=t.xy),t.indices&amp;&amp;t.indices instanceof Int32Array&amp;&amp;(e.indices=t.indices),a(&quot;text&quot;),a(&quot;marker.color&quot;,r),a(&quot;marker.opacity&quot;),a(&quot;marker.blend&quot;),a(&quot;marker.sizemin&quot;),a(&quot;marker.sizemax&quot;),a(&quot;marker.border.color&quot;,r),a(&quot;marker.border.arearatio&quot;),e._length=null}},{&quot;../../lib&quot;:778,&quot;./attributes&quot;:1173}],1176:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;../scatter3d/calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;pointcloud&quot;,basePlotModule:t(&quot;../../plots/gl2d&quot;),categories:[&quot;gl&quot;,&quot;gl2d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl2d&quot;:868,&quot;../scatter3d/calc&quot;:1216,&quot;./attributes&quot;:1173,&quot;./convert&quot;:1174,&quot;./defaults&quot;:1175}],1177:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=t(&quot;../../components/fx/attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../plot_api/plot_template&quot;).templatedArray,f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../plot_api/edit_types&quot;).overrideAll;t(&quot;../../constants/docs&quot;).FORMAT_LINK;(e.exports=h({hoverinfo:f({},i.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:o.hoverlabel,domain:s({name:&quot;sankey&quot;,trace:!0}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;},valueformat:{valType:&quot;string&quot;,dflt:&quot;.3s&quot;},valuesuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;},arrangement:{valType:&quot;enumerated&quot;,values:[&quot;snap&quot;,&quot;perpendicular&quot;,&quot;freeform&quot;,&quot;fixed&quot;],dflt:&quot;snap&quot;},textfont:n({}),customdata:void 0,node:{label:{valType:&quot;data_array&quot;,dflt:[]},groups:{valType:&quot;info_array&quot;,impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:&quot;number&quot;,editType:&quot;calc&quot;}},x:{valType:&quot;data_array&quot;,dflt:[]},y:{valType:&quot;data_array&quot;,dflt:[]},color:{valType:&quot;color&quot;,arrayOk:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:a.defaultLine,arrayOk:!0},width:{valType:&quot;number&quot;,min:0,dflt:.5,arrayOk:!0}},pad:{valType:&quot;number&quot;,arrayOk:!1,min:0,dflt:20},thickness:{valType:&quot;number&quot;,arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],dflt:&quot;all&quot;},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:[&quot;value&quot;,&quot;label&quot;]})},link:{label:{valType:&quot;data_array&quot;,dflt:[]},color:{valType:&quot;color&quot;,arrayOk:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:a.defaultLine,arrayOk:!0},width:{valType:&quot;number&quot;,min:0,dflt:0,arrayOk:!0}},source:{valType:&quot;data_array&quot;,dflt:[]},target:{valType:&quot;data_array&quot;,dflt:[]},value:{valType:&quot;data_array&quot;,dflt:[]},hoverinfo:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],dflt:&quot;all&quot;},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:[&quot;value&quot;,&quot;label&quot;]}),colorscales:u(&quot;concentrationscales&quot;,{editType:&quot;calc&quot;,label:{valType:&quot;string&quot;,editType:&quot;calc&quot;,dflt:&quot;&quot;},cmax:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:1},cmin:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:0},colorscale:f(c().colorscale,{dflt:[[0,&quot;white&quot;],[1,&quot;black&quot;]]})})}},&quot;calc&quot;,&quot;nested&quot;)).transforms=void 0},{&quot;../../components/color/attributes&quot;:642,&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/fx/attributes&quot;:674,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906}],1178:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;../../plots/get_data&quot;).getModuleCalcData,a=t(&quot;./plot&quot;),o=t(&quot;../../components/fx/layout_attributes&quot;),s=t(&quot;../../lib/setcursor&quot;),l=t(&quot;../../components/dragelement&quot;),c=t(&quot;../../plots/cartesian/select&quot;).prepSelect,u=t(&quot;../../lib&quot;),f=t(&quot;../../registry&quot;);function h(t,e){var r=t._fullData[e],n=t._fullLayout,i=n.dragmode,a=&quot;pan&quot;===n.dragmode?&quot;move&quot;:&quot;crosshair&quot;,o=r._bgRect;if(&quot;pan&quot;!==i&amp;&amp;&quot;zoom&quot;!==i){s(o,a);var h={_id:&quot;x&quot;,c2p:u.identity,_offset:r._sankey.translateX,_length:r._sankey.width},p={_id:&quot;y&quot;,c2p:u.identity,_offset:r._sankey.translateY,_length:r._sankey.height},d={gd:t,element:o.node(),plotinfo:{id:e,xaxis:h,yaxis:p,fillRangeItems:u.noop},subplot:e,xaxes:[h],yaxes:[p],doneFnCompleted:function(r){var n,i=t._fullData[e],a=i.node.groups.slice(),o=[];function s(t){for(var e=i._sankey.graph.nodes,r=0;r&lt;e.length;r++)if(e[r].pointNumber===t)return e[r]}for(var l=0;l&lt;r.length;l++){var c=s(r[l].pointNumber);if(c)if(c.group){for(var u=0;u&lt;c.childrenNodes.length;u++)o.push(c.childrenNodes[u].pointNumber);a[c.pointNumber-i.node._count]=!1}else o.push(c.pointNumber)}n=a.filter(Boolean).concat([o]),f.call(&quot;_guiRestyle&quot;,t,{&quot;node.groups&quot;:[n]},e)},prepFn:function(t,e,r){c(t,e,r,d,i)}};l.init(d)}}r.name=&quot;sankey&quot;,r.baseLayoutAttrOverrides=n({hoverlabel:o.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.plot=function(t){var e=i(t.calcdata,&quot;sankey&quot;)[0];a(t,e),r.updateFx(t)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;sankey&quot;),a=e._has&amp;&amp;e._has(&quot;sankey&quot;);i&amp;&amp;!a&amp;&amp;(n._paperdiv.selectAll(&quot;.sankey&quot;).remove(),n._paperdiv.selectAll(&quot;.bgsankey&quot;).remove())},r.updateFx=function(t){for(var e=0;e&lt;t._fullData.length;e++)h(t,e)}},{&quot;../../components/dragelement&quot;:662,&quot;../../components/fx/layout_attributes&quot;:684,&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/cartesian/select&quot;:847,&quot;../../plots/get_data&quot;:865,&quot;../../registry&quot;:911,&quot;./plot&quot;:1183}],1179:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;strongly-connected-components&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/gup&quot;).wrap,o=i.isArrayOrTypedArray,s=i.isIndex,l=t(&quot;../../components/colorscale&quot;);function c(t){var e,r=t.node,a=t.link,c=[],u=o(a.color),f=o(a.customdata),h={},p={},d=a.colorscales.length;for(e=0;e&lt;d;e++){var g=a.colorscales[e],m=l.extractScale(g,{cLetter:&quot;c&quot;}),v=l.makeColorScaleFunc(m);p[g.label]=v}var y=0;for(e=0;e&lt;a.value.length;e++)a.source[e]&gt;y&amp;&amp;(y=a.source[e]),a.target[e]&gt;y&amp;&amp;(y=a.target[e]);var x,b=y+1;t.node._count=b;var _=t.node.groups,w={};for(e=0;e&lt;_.length;e++){var T=_[e];for(x=0;x&lt;T.length;x++){var k=T[x],M=b+e;w.hasOwnProperty(k)?i.warn(&quot;Node &quot;+k+&quot; is already part of a group.&quot;):w[k]=M}}var A={source:[],target:[]};for(e=0;e&lt;a.value.length;e++){var S=a.value[e],E=a.source[e],C=a.target[e];if(S&gt;0&amp;&amp;s(E,b)&amp;&amp;s(C,b)&amp;&amp;(!w.hasOwnProperty(E)||!w.hasOwnProperty(C)||w[E]!==w[C])){w.hasOwnProperty(C)&amp;&amp;(C=w[C]),w.hasOwnProperty(E)&amp;&amp;(E=w[E]),C=+C,h[E=+E]=h[C]=!0;var L=&quot;&quot;;a.label&amp;&amp;a.label[e]&amp;&amp;(L=a.label[e]);var I=null;L&amp;&amp;p.hasOwnProperty(L)&amp;&amp;(I=p[L]),c.push({pointNumber:e,label:L,color:u?a.color[e]:a.color,customdata:f?a.customdata[e]:a.customdata,concentrationscale:I,source:E,target:C,value:+S}),A.source.push(E),A.target.push(C)}}var P=b+_.length,z=o(r.color),O=o(r.customdata),D=[];for(e=0;e&lt;P;e++)if(h[e]){var R=r.label[e];D.push({group:e&gt;b-1,childrenNodes:[],pointNumber:e,label:R,color:z?r.color[e]:r.color,customdata:O?r.customdata[e]:r.customdata})}var F=!1;return function(t,e,r){for(var a=i.init2dArray(t,0),o=0;o&lt;Math.min(e.length,r.length);o++)if(i.isIndex(e[o],t)&amp;&amp;i.isIndex(r[o],t)){if(e[o]===r[o])return!0;a[e[o]].push(r[o])}return n(a).components.some((function(t){return t.length&gt;1}))}(P,A.source,A.target)&amp;&amp;(F=!0),{circular:F,links:c,nodes:D,groups:_,groupLookup:w}}e.exports=function(t,e){var r=c(e);return a({circular:r.circular,_nodes:r.nodes,_links:r.links,_groups:r.groups,_groupLookup:r.groupLookup})}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;strongly-connected-components&quot;:569}],1180:[function(t,e,r){&quot;use strict&quot;;e.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:&quot;linear&quot;,cn:{sankey:&quot;sankey&quot;,sankeyLinks:&quot;sankey-links&quot;,sankeyLink:&quot;sankey-link&quot;,sankeyNodeSet:&quot;sankey-node-set&quot;,sankeyNode:&quot;sankey-node&quot;,nodeRect:&quot;node-rect&quot;,nodeCapture:&quot;node-capture&quot;,nodeCentered:&quot;node-entered&quot;,nodeLabelGuide:&quot;node-label-guide&quot;,nodeLabel:&quot;node-label&quot;,nodeLabelTextPath:&quot;node-label-text-path&quot;}}},{}],1181:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;tinycolor2&quot;),s=t(&quot;../../plots/domain&quot;).defaults,l=t(&quot;../../components/fx/hoverlabel_defaults&quot;),c=t(&quot;../../plot_api/plot_template&quot;),u=t(&quot;../../plots/array_container_defaults&quot;);function f(t,e){function r(r,a){return n.coerce(t,e,i.link.colorscales,r,a)}r(&quot;label&quot;),r(&quot;cmin&quot;),r(&quot;cmax&quot;),r(&quot;colorscale&quot;)}e.exports=function(t,e,r,h){function p(r,a){return n.coerce(t,e,i,r,a)}var d=n.extendDeep(h.hoverlabel,t.hoverlabel),g=t.node,m=c.newContainer(e,&quot;node&quot;);function v(t,e){return n.coerce(g,m,i.node,t,e)}v(&quot;label&quot;),v(&quot;groups&quot;),v(&quot;x&quot;),v(&quot;y&quot;),v(&quot;pad&quot;),v(&quot;thickness&quot;),v(&quot;line.color&quot;),v(&quot;line.width&quot;),v(&quot;hoverinfo&quot;,t.hoverinfo),l(g,m,v,d),v(&quot;hovertemplate&quot;);var y=h.colorway;v(&quot;color&quot;,m.label.map((function(t,e){return a.addOpacity(function(t){return y[t%y.length]}(e),.8)}))),v(&quot;customdata&quot;);var x=t.link||{},b=c.newContainer(e,&quot;link&quot;);function _(t,e){return n.coerce(x,b,i.link,t,e)}_(&quot;label&quot;),_(&quot;source&quot;),_(&quot;target&quot;),_(&quot;value&quot;),_(&quot;line.color&quot;),_(&quot;line.width&quot;),_(&quot;hoverinfo&quot;,t.hoverinfo),l(x,b,_,d),_(&quot;hovertemplate&quot;);var w,T=o(h.paper_bgcolor).getLuminance()&lt;.333?&quot;rgba(255, 255, 255, 0.6)&quot;:&quot;rgba(0, 0, 0, 0.2)&quot;;_(&quot;color&quot;,n.repeat(T,b.value.length)),_(&quot;customdata&quot;),u(x,b,{name:&quot;colorscales&quot;,handleItemDefaults:f}),s(e,h,p),p(&quot;orientation&quot;),p(&quot;valueformat&quot;),p(&quot;valuesuffix&quot;),m.x.length&amp;&amp;m.y.length&amp;&amp;(w=&quot;freeform&quot;),p(&quot;arrangement&quot;,w),n.coerceFont(p,&quot;textfont&quot;,n.extendFlat({},h.font)),e._length=null}},{&quot;../../components/color&quot;:643,&quot;../../components/fx/hoverlabel_defaults&quot;:681,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1177,tinycolor2:576}],1182:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),moduleType:&quot;trace&quot;,name:&quot;sankey&quot;,basePlotModule:t(&quot;./base_plot&quot;),selectPoints:t(&quot;./select.js&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1177,&quot;./base_plot&quot;:1178,&quot;./calc&quot;:1179,&quot;./defaults&quot;:1181,&quot;./plot&quot;:1183,&quot;./select.js&quot;:1185}],1183:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;./render&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;./constants&quot;).cn,c=s._;function u(t){return&quot;&quot;!==t}function f(t,e){return t.filter((function(t){return t.key===e.traceId}))}function h(t,e){n.select(t).select(&quot;path&quot;).style(&quot;fill-opacity&quot;,e),n.select(t).select(&quot;rect&quot;).style(&quot;fill-opacity&quot;,e)}function p(t){n.select(t).select(&quot;text.name&quot;).style(&quot;fill&quot;,&quot;black&quot;)}function d(t){return function(e){return-1!==t.node.sourceLinks.indexOf(e.link)||-1!==t.node.targetLinks.indexOf(e.link)}}function g(t){return function(e){return-1!==e.node.sourceLinks.indexOf(t.link)||-1!==e.node.targetLinks.indexOf(t.link)}}function m(t,e,r){e&amp;&amp;r&amp;&amp;f(r,e).selectAll(&quot;.&quot;+l.sankeyLink).filter(d(e)).call(y.bind(0,e,r,!1))}function v(t,e,r){e&amp;&amp;r&amp;&amp;f(r,e).selectAll(&quot;.&quot;+l.sankeyLink).filter(d(e)).call(x.bind(0,e,r,!1))}function y(t,e,r,n){var i=n.datum().link.label;n.style(&quot;fill-opacity&quot;,(function(t){if(!t.link.concentrationscale)return.4})),i&amp;&amp;f(e,t).selectAll(&quot;.&quot;+l.sankeyLink).filter((function(t){return t.link.label===i})).style(&quot;fill-opacity&quot;,(function(t){if(!t.link.concentrationscale)return.4})),r&amp;&amp;f(e,t).selectAll(&quot;.&quot;+l.sankeyNode).filter(g(t)).call(m)}function x(t,e,r,n){var i=n.datum().link.label;n.style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),i&amp;&amp;f(e,t).selectAll(&quot;.&quot;+l.sankeyLink).filter((function(t){return t.link.label===i})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),r&amp;&amp;f(e,t).selectAll(l.sankeyNode).filter(g(t)).call(v)}function b(t,e){var r=t.hoverlabel||{},n=s.nestedProperty(r,e).get();return!Array.isArray(n)&amp;&amp;n}e.exports=function(t,e){for(var r=t._fullLayout,s=r._paper,f=r._size,d=0;d&lt;t._fullData.length;d++)if(t._fullData[d].visible&amp;&amp;t._fullData[d].type===l.sankey&amp;&amp;!t._fullData[d]._viewInitial){var g=t._fullData[d].node;t._fullData[d]._viewInitial={node:{groups:g.groups.slice(),x:g.x.slice(),y:g.y.slice()}}}var _=c(t,&quot;source:&quot;)+&quot; &quot;,w=c(t,&quot;target:&quot;)+&quot; &quot;,T=c(t,&quot;concentration:&quot;)+&quot; &quot;,k=c(t,&quot;incoming flow count:&quot;)+&quot; &quot;,M=c(t,&quot;outgoing flow count:&quot;)+&quot; &quot;;i(t,s,e,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{linkEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(y.bind(0,r,i,!0)),&quot;skip&quot;!==r.link.trace.link.hoverinfo&amp;&amp;(r.link.fullData=r.link.trace,t.emit(&quot;plotly_hover&quot;,{event:n.event,points:[r.link]})))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var s=i.link.trace.link;if(&quot;none&quot;!==s.hoverinfo&amp;&amp;&quot;skip&quot;!==s.hoverinfo){for(var l=[],c=0,f=0;f&lt;i.flow.links.length;f++){var d=i.flow.links[f];if(&quot;closest&quot;!==t._fullLayout.hovermode||i.link.pointNumber===d.pointNumber){i.link.pointNumber===d.pointNumber&amp;&amp;(c=f),d.fullData=d.trace,s=i.link.trace.link;var g=v(d),m={valueLabel:n.format(i.valueFormat)(d.value)+i.valueSuffix};l.push({x:g[0],y:g[1],name:m.valueLabel,text:[d.label||&quot;&quot;,_+d.source.label,w+d.target.label,d.concentrationscale?T+n.format(&quot;%0.2f&quot;)(d.flow.labelConcentration):&quot;&quot;].filter(u).join(&quot;&lt;br&gt;&quot;),color:b(s,&quot;bgcolor&quot;)||o.addOpacity(d.color,1),borderColor:b(s,&quot;bordercolor&quot;),fontFamily:b(s,&quot;font.family&quot;),fontSize:b(s,&quot;font.size&quot;),fontColor:b(s,&quot;font.color&quot;),nameLength:b(s,&quot;namelength&quot;),textAlign:b(s,&quot;align&quot;),idealAlign:n.event.x&lt;g[0]?&quot;right&quot;:&quot;left&quot;,hovertemplate:s.hovertemplate,hovertemplateLabels:m,eventData:[d]})}}a.loneHover(l,{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t,anchorIndex:c}).each((function(){i.link.concentrationscale||h(this,.65),p(this)}))}}function v(t){var e,r;t.circular?(e=(t.circularPathData.leftInnerExtent+t.circularPathData.rightInnerExtent)/2,r=t.circularPathData.verticalFullExtent):(e=(t.source.x1+t.target.x0)/2,r=(t.y0+t.y1)/2);var n=[e,r];return&quot;v&quot;===t.trace.orientation&amp;&amp;n.reverse(),n[0]+=i.parent.translateX,n[1]+=i.parent.translateY,n}},unhover:function(e,i,o){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(x.bind(0,i,o,!0)),&quot;skip&quot;!==i.link.trace.link.hoverinfo&amp;&amp;(i.link.fullData=i.link.trace,t.emit(&quot;plotly_unhover&quot;,{event:n.event,points:[i.link]})),a.loneUnhover(r._hoverlayer.node()))},select:function(e,r){var i=r.link;i.originalEvent=n.event,t._hoverdata=[i],a.click(t,{target:!0})}},nodeEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(m,r,i),&quot;skip&quot;!==r.node.trace.node.hoverinfo&amp;&amp;(r.node.fullData=r.node.trace,t.emit(&quot;plotly_hover&quot;,{event:n.event,points:[r.node]})))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var o=i.node.trace.node;if(&quot;none&quot;!==o.hoverinfo&amp;&amp;&quot;skip&quot;!==o.hoverinfo){var s=n.select(e).select(&quot;.&quot;+l.nodeRect),c=t._fullLayout._paperdiv.node().getBoundingClientRect(),f=s.node().getBoundingClientRect(),d=f.left-2-c.left,g=f.right+2-c.left,m=f.top+f.height/4-c.top,v={valueLabel:n.format(i.valueFormat)(i.node.value)+i.valueSuffix};i.node.fullData=i.node.trace,t._fullLayout._calcInverseTransform(t);var y=t._fullLayout._invScaleX,x=t._fullLayout._invScaleY,_=a.loneHover({x0:y*d,x1:y*g,y:x*m,name:n.format(i.valueFormat)(i.node.value)+i.valueSuffix,text:[i.node.label,k+i.node.targetLinks.length,M+i.node.sourceLinks.length].filter(u).join(&quot;&lt;br&gt;&quot;),color:b(o,&quot;bgcolor&quot;)||i.tinyColorHue,borderColor:b(o,&quot;bordercolor&quot;),fontFamily:b(o,&quot;font.family&quot;),fontSize:b(o,&quot;font.size&quot;),fontColor:b(o,&quot;font.color&quot;),nameLength:b(o,&quot;namelength&quot;),textAlign:b(o,&quot;align&quot;),idealAlign:&quot;left&quot;,hovertemplate:o.hovertemplate,hovertemplateLabels:v,eventData:[i.node]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t});h(_,.85),p(_)}}},unhover:function(e,i,o){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(v,i,o),&quot;skip&quot;!==i.node.trace.node.hoverinfo&amp;&amp;(i.node.fullData=i.node.trace,t.emit(&quot;plotly_unhover&quot;,{event:n.event,points:[i.node]})),a.loneUnhover(r._hoverlayer.node()))},select:function(e,r,i){var o=r.node;o.originalEvent=n.event,t._hoverdata=[o],n.select(e).call(v,r,i),a.click(t,{target:!0})}}})}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;./constants&quot;:1180,&quot;./render&quot;:1184,d3:169}],1184:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;d3&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;@plotly/d3-sankey&quot;),c=t(&quot;@plotly/d3-sankey-circular&quot;),u=t(&quot;d3-force&quot;),f=t(&quot;../../lib&quot;),h=f.strTranslate,p=t(&quot;../../lib/gup&quot;),d=p.keyFun,g=p.repeat,m=p.unwrap,v=t(&quot;d3-interpolate&quot;).interpolateNumber,y=t(&quot;../../registry&quot;);function x(t,e,r){var i,o=m(e),s=o.trace,u=s.domain,h=&quot;h&quot;===s.orientation,p=s.node.pad,d=s.node.thickness,g=t.width*(u.x[1]-u.x[0]),v=t.height*(u.y[1]-u.y[0]),y=o._nodes,x=o._links,b=o.circular;(i=b?c.sankeyCircular().circularLinkGap(0):l.sankey()).iterations(n.sankeyIterations).size(h?[g,v]:[v,g]).nodeWidth(d).nodePadding(p).nodeId((function(t){return t.pointNumber})).nodes(y).links(x);var _,w,T,k=i();for(var M in i.nodePadding()&lt;p&amp;&amp;f.warn(&quot;node.pad was reduced to &quot;,i.nodePadding(),&quot; to fit within the figure.&quot;),o._groupLookup){var A,S=parseInt(o._groupLookup[M]);for(_=0;_&lt;k.nodes.length;_++)if(k.nodes[_].pointNumber===S){A=k.nodes[_];break}if(A){var E={pointNumber:parseInt(M),x0:A.x0,x1:A.x1,y0:A.y0,y1:A.y1,partOfGroup:!0,sourceLinks:[],targetLinks:[]};k.nodes.unshift(E),A.childrenNodes.unshift(E)}}if(function(){for(_=0;_&lt;k.nodes.length;_++){var t,e,r=k.nodes[_],n={};for(w=0;w&lt;r.targetLinks.length;w++)t=(e=r.targetLinks[w]).source.pointNumber+&quot;:&quot;+e.target.pointNumber,n.hasOwnProperty(t)||(n[t]=[]),n[t].push(e);var i=Object.keys(n);for(w=0;w&lt;i.length;w++){var o=n[t=i[w]],s=0,l={};for(T=0;T&lt;o.length;T++)l[(e=o[T]).label]||(l[e.label]=0),l[e.label]+=e.value,s+=e.value;for(T=0;T&lt;o.length;T++)(e=o[T]).flow={value:s,labelConcentration:l[e.label]/s,concentration:e.value/s,links:o},e.concentrationscale&amp;&amp;(e.color=a(e.concentrationscale(e.flow.labelConcentration)))}var c=0;for(w=0;w&lt;r.sourceLinks.length;w++)c+=r.sourceLinks[w].value;for(w=0;w&lt;r.sourceLinks.length;w++)(e=r.sourceLinks[w]).concentrationOut=e.value/c;var u=0;for(w=0;w&lt;r.targetLinks.length;w++)u+=r.targetLinks[w].value;for(w=0;w&lt;r.targetLinks.length;w++)(e=r.targetLinks[w]).concenrationIn=e.value/u}}(),s.node.x.length&amp;&amp;s.node.y.length){for(_=0;_&lt;Math.min(s.node.x.length,s.node.y.length,k.nodes.length);_++)if(s.node.x[_]&amp;&amp;s.node.y[_]){var C=[s.node.x[_]*g,s.node.y[_]*v];k.nodes[_].x0=C[0]-d/2,k.nodes[_].x1=C[0]+d/2;var L=k.nodes[_].y1-k.nodes[_].y0;k.nodes[_].y0=C[1]-L/2,k.nodes[_].y1=C[1]+L/2}if(&quot;snap&quot;===s.arrangement)!function(t){t.forEach((function(t){var e,r,n,i=0,a=t.length;for(t.sort((function(t,e){return t.y0-e.y0})),n=0;n&lt;a;++n)(e=t[n]).y0&gt;=i||(r=i-e.y0)&gt;1e-6&amp;&amp;(e.y0+=r,e.y1+=r),i=e.y1+p}))}(function(t){var e,r,n=t.map((function(t,e){return{x0:t.x0,index:e}})).sort((function(t,e){return t.x0-e.x0})),i=[],a=-1,o=-1/0;for(_=0;_&lt;n.length;_++){var s=t[n[_].index];s.x0&gt;o+d&amp;&amp;(a+=1,e=s.x0),o=s.x0,i[a]||(i[a]=[]),i[a].push(s),r=e-s.x0,s.x0+=r,s.x1+=r}return i}(y=k.nodes));i.update(k)}return{circular:b,key:r,trace:s,guid:f.randstr(),horizontal:h,width:g,height:v,nodePad:s.node.pad,nodeLineColor:s.node.line.color,nodeLineWidth:s.node.line.width,linkLineColor:s.link.line.color,linkLineWidth:s.link.line.width,valueFormat:s.valueformat,valueSuffix:s.valuesuffix,textFont:s.textfont,translateX:u.x[0]*t.width+t.margin.l,translateY:t.height-u.y[1]*t.height+t.margin.t,dragParallel:h?v:g,dragPerpendicular:h?g:v,arrangement:s.arrangement,sankey:i,graph:k,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}function b(t,e,r){var n=a(e.color),i=e.source.label+&quot;|&quot;+e.target.label+&quot;__&quot;+r;return e.trace=t.trace,e.curveNumber=t.trace.index,{circular:t.circular,key:i,traceId:t.key,pointNumber:e.pointNumber,link:e,tinyColorHue:o.tinyRGB(n),tinyColorAlpha:n.getAlpha(),linkPath:_,linkLineColor:t.linkLineColor,linkLineWidth:t.linkLineWidth,valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,parent:t,interactionState:t.interactionState,flow:e.flow}}function _(){return function(t){if(t.link.circular)return e=t.link,r=e.width/2,n=e.circularPathData,&quot;top&quot;===e.circularLinkType?&quot;M &quot;+n.targetX+&quot; &quot;+(n.targetY+r)+&quot; L&quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY+r)+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightSmallArcRadius+r)+&quot; 0 0 1 &quot;+(n.rightFullExtent-r)+&quot; &quot;+(n.targetY-n.rightSmallArcRadius)+&quot;L&quot;+(n.rightFullExtent-r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightLargeArcRadius+r)+&quot; 0 0 1 &quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftLargeArcRadius+r)+&quot; 0 0 1 &quot;+(n.leftFullExtent+r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;L&quot;+(n.leftFullExtent+r)+&quot; &quot;+(n.sourceY-n.leftSmallArcRadius)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftSmallArcRadius+r)+&quot; 0 0 1 &quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY-r)+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftSmallArcRadius-r)+&quot; 0 0 0 &quot;+(n.leftFullExtent-r)+&quot; &quot;+(n.sourceY-n.leftSmallArcRadius)+&quot;L&quot;+(n.leftFullExtent-r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftLargeArcRadius-r)+&quot; 0 0 0 &quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;L&quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightLargeArcRadius-r)+&quot; 0 0 0 &quot;+(n.rightFullExtent+r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;L&quot;+(n.rightFullExtent+r)+&quot; &quot;+(n.targetY-n.rightSmallArcRadius)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightSmallArcRadius-r)+&quot; 0 0 0 &quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY-r)+&quot;L&quot;+n.targetX+&quot; &quot;+(n.targetY-r)+&quot;Z&quot;:&quot;M &quot;+n.targetX+&quot; &quot;+(n.targetY-r)+&quot; L&quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY-r)+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightSmallArcRadius+r)+&quot; 0 0 0 &quot;+(n.rightFullExtent-r)+&quot; &quot;+(n.targetY+n.rightSmallArcRadius)+&quot;L&quot;+(n.rightFullExtent-r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightLargeArcRadius+r)+&quot; 0 0 0 &quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftLargeArcRadius+r)+&quot; 0 0 0 &quot;+(n.leftFullExtent+r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;L&quot;+(n.leftFullExtent+r)+&quot; &quot;+(n.sourceY+n.leftSmallArcRadius)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftSmallArcRadius+r)+&quot; 0 0 0 &quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY+r)+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftSmallArcRadius-r)+&quot; 0 0 1 &quot;+(n.leftFullExtent-r)+&quot; &quot;+(n.sourceY+n.leftSmallArcRadius)+&quot;L&quot;+(n.leftFullExtent-r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftLargeArcRadius-r)+&quot; 0 0 1 &quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;L&quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightLargeArcRadius-r)+&quot; 0 0 1 &quot;+(n.rightFullExtent+r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;L&quot;+(n.rightFullExtent+r)+&quot; &quot;+(n.targetY+n.rightSmallArcRadius)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightSmallArcRadius-r)+&quot; 0 0 1 &quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY+r)+&quot;L&quot;+n.targetX+&quot; &quot;+(n.targetY+r)+&quot;Z&quot;;var e,r,n,i=t.link.source.x1,a=t.link.target.x0,o=v(i,a),s=o(.5),l=o(.5),c=t.link.y0-t.link.width/2,u=t.link.y0+t.link.width/2,f=t.link.y1-t.link.width/2,h=t.link.y1+t.link.width/2;return&quot;M&quot;+i+&quot;,&quot;+c+&quot;C&quot;+s+&quot;,&quot;+c+&quot; &quot;+l+&quot;,&quot;+f+&quot; &quot;+a+&quot;,&quot;+f+&quot;L&quot;+a+&quot;,&quot;+h+&quot;C&quot;+l+&quot;,&quot;+h+&quot; &quot;+s+&quot;,&quot;+u+&quot; &quot;+i+&quot;,&quot;+u+&quot;Z&quot;}}function w(t,e){var r=a(e.color),i=n.nodePadAcross,s=t.nodePad/2;e.dx=e.x1-e.x0,e.dy=e.y1-e.y0;var l=e.dx,c=Math.max(.5,e.dy),u=&quot;node_&quot;+e.pointNumber;return e.group&amp;&amp;(u=f.randstr()),e.trace=t.trace,e.curveNumber=t.trace.index,{index:e.pointNumber,key:u,partOfGroup:e.partOfGroup||!1,group:e.group,traceId:t.key,trace:t.trace,node:e,nodePad:t.nodePad,nodeLineColor:t.nodeLineColor,nodeLineWidth:t.nodeLineWidth,textFont:t.textFont,size:t.horizontal?t.height:t.width,visibleWidth:Math.ceil(l),visibleHeight:c,zoneX:-i,zoneY:-s,zoneWidth:l+2*i,zoneHeight:c+2*s,labelY:t.horizontal?e.dy/2+1:e.dx/2+1,left:1===e.originalLayer,sizeAcross:t.width,forceLayouts:t.forceLayouts,horizontal:t.horizontal,darkBackground:r.getBrightness()&lt;=128,tinyColorHue:o.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,graph:t.graph,arrangement:t.arrangement,uniqueNodeLabelPathId:[t.guid,t.key,u].join(&quot;_&quot;),interactionState:t.interactionState,figure:t}}function T(t){t.attr(&quot;transform&quot;,(function(t){return h(t.node.x0.toFixed(3),t.node.y0.toFixed(3))}))}function k(t){t.call(T)}function M(t,e){t.call(k),e.attr(&quot;d&quot;,_())}function A(t){t.attr(&quot;width&quot;,(function(t){return t.node.x1-t.node.x0})).attr(&quot;height&quot;,(function(t){return t.visibleHeight}))}function S(t){return t.link.width&gt;1||t.linkLineWidth&gt;0}function E(t){return h(t.translateX,t.translateY)+(t.horizontal?&quot;matrix(1 0 0 1 0 0)&quot;:&quot;matrix(0 1 1 0 0 0)&quot;)}function C(t){return h(t.horizontal?0:t.labelY,t.horizontal?t.labelY:0)}function L(t){return i.svg.line()([[t.horizontal?t.left?-t.sizeAcross:t.visibleWidth+n.nodeTextOffsetHorizontal:n.nodeTextOffsetHorizontal,0],[t.horizontal?t.left?-n.nodeTextOffsetHorizontal:t.sizeAcross:t.visibleHeight-n.nodeTextOffsetHorizontal,0]])}function I(t){return t.horizontal?&quot;matrix(1 0 0 1 0 0)&quot;:&quot;matrix(0 1 1 0 0 0)&quot;}function P(t){return t.horizontal?&quot;scale(1 1)&quot;:&quot;scale(-1 1)&quot;}function z(t){return t.darkBackground&amp;&amp;!t.horizontal?&quot;rgb(255,255,255)&quot;:&quot;rgb(0,0,0)&quot;}function O(t){return t.horizontal&amp;&amp;t.left?&quot;100%&quot;:&quot;0%&quot;}function D(t,e,r){t.on(&quot;.basic&quot;,null).on(&quot;mouseover.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.hover(this,t,e),t.interactionState.hovered=[this,t])})).on(&quot;mousemove.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.follow(this,t),t.interactionState.hovered=[this,t])})).on(&quot;mouseout.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.unhover(this,t,e),t.interactionState.hovered=!1)})).on(&quot;click.basic&quot;,(function(t){t.interactionState.hovered&amp;&amp;(r.unhover(this,t,e),t.interactionState.hovered=!1),t.interactionState.dragInProgress||t.partOfGroup||r.select(this,t,e)}))}function R(t,e,r,a){var o=i.behavior.drag().origin((function(t){return{x:t.node.x0+t.visibleWidth/2,y:t.node.y0+t.visibleHeight/2}})).on(&quot;dragstart&quot;,(function(i){if(&quot;fixed&quot;!==i.arrangement&amp;&amp;(f.ensureSingle(a._fullLayout._infolayer,&quot;g&quot;,&quot;dragcover&quot;,(function(t){a._fullLayout._dragCover=t})),f.raiseToTop(this),i.interactionState.dragInProgress=i.node,B(i.node),i.interactionState.hovered&amp;&amp;(r.nodeEvents.unhover.apply(0,i.interactionState.hovered),i.interactionState.hovered=!1),&quot;snap&quot;===i.arrangement)){var o=i.traceId+&quot;|&quot;+i.key;i.forceLayouts[o]?i.forceLayouts[o].alpha(1):function(t,e,r,i){!function(t){for(var e=0;e&lt;t.length;e++)t[e].y=(t[e].y0+t[e].y1)/2,t[e].x=(t[e].x0+t[e].x1)/2}(r.graph.nodes);var a=r.graph.nodes.filter((function(t){return t.originalX===r.node.originalX})).filter((function(t){return!t.partOfGroup}));r.forceLayouts[e]=u.forceSimulation(a).alphaDecay(0).force(&quot;collide&quot;,u.forceCollide().radius((function(t){return t.dy/2+r.nodePad/2})).strength(1).iterations(n.forceIterations)).force(&quot;constrain&quot;,function(t,e,r,i){return function(){for(var t=0,a=0;a&lt;r.length;a++){var o=r[a];o===i.interactionState.dragInProgress?(o.x=o.lastDraggedX,o.y=o.lastDraggedY):(o.vx=(o.originalX-o.x)/n.forceTicksPerFrame,o.y=Math.min(i.size-o.dy/2,Math.max(o.dy/2,o.y))),t=Math.max(t,Math.abs(o.vx),Math.abs(o.vy))}!i.interactionState.dragInProgress&amp;&amp;t&lt;.1&amp;&amp;i.forceLayouts[e].alpha()&gt;0&amp;&amp;i.forceLayouts[e].alpha(0)}}(0,e,a,r)).stop()}(0,o,i),function(t,e,r,i,a){window.requestAnimationFrame((function o(){var s;for(s=0;s&lt;n.forceTicksPerFrame;s++)r.forceLayouts[i].tick();if(function(t){for(var e=0;e&lt;t.length;e++)t[e].y0=t[e].y-t[e].dy/2,t[e].y1=t[e].y0+t[e].dy,t[e].x0=t[e].x-t[e].dx/2,t[e].x1=t[e].x0+t[e].dx}(r.graph.nodes),r.sankey.update(r.graph),M(t.filter(N(r)),e),r.forceLayouts[i].alpha()&gt;0)window.requestAnimationFrame(o);else{var l=r.node.originalX;r.node.x0=l-r.visibleWidth/2,r.node.x1=l+r.visibleWidth/2,F(r,a)}}))}(t,e,i,o,a)}})).on(&quot;drag&quot;,(function(r){if(&quot;fixed&quot;!==r.arrangement){var n=i.event.x,a=i.event.y;&quot;snap&quot;===r.arrangement?(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2,r.node.y0=a-r.visibleHeight/2,r.node.y1=a+r.visibleHeight/2):(&quot;freeform&quot;===r.arrangement&amp;&amp;(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2),a=Math.max(0,Math.min(r.size-r.visibleHeight/2,a)),r.node.y0=a-r.visibleHeight/2,r.node.y1=a+r.visibleHeight/2),B(r.node),&quot;snap&quot;!==r.arrangement&amp;&amp;(r.sankey.update(r.graph),M(t.filter(N(r)),e))}})).on(&quot;dragend&quot;,(function(t){if(&quot;fixed&quot;!==t.arrangement){t.interactionState.dragInProgress=!1;for(var e=0;e&lt;t.node.childrenNodes.length;e++)t.node.childrenNodes[e].x=t.node.x,t.node.childrenNodes[e].y=t.node.y;&quot;snap&quot;!==t.arrangement&amp;&amp;F(t,a)}}));t.on(&quot;.drag&quot;,null).call(o)}function F(t,e){for(var r=[],n=[],i=0;i&lt;t.graph.nodes.length;i++){var a=(t.graph.nodes[i].x0+t.graph.nodes[i].x1)/2,o=(t.graph.nodes[i].y0+t.graph.nodes[i].y1)/2;r.push(a/t.figure.width),n.push(o/t.figure.height)}y.call(&quot;_guiRestyle&quot;,e,{&quot;node.x&quot;:[r],&quot;node.y&quot;:[n]},t.trace.index).then((function(){e._fullLayout._dragCover&amp;&amp;e._fullLayout._dragCover.remove()}))}function B(t){t.lastDraggedX=t.x0+t.dx/2,t.lastDraggedY=t.y0+t.dy/2}function N(t){return function(e){return e.node.originalX===t.node.originalX}}e.exports=function(t,e,r,l,c){var u=!1;f.ensureSingle(t._fullLayout._infolayer,&quot;g&quot;,&quot;first-render&quot;,(function(){u=!0}));var h=t._fullLayout._dragCover,p=r.filter((function(t){return m(t).trace.visible})).map(x.bind(null,l)),v=e.selectAll(&quot;.&quot;+n.cn.sankey).data(p,d);v.exit().remove(),v.enter().append(&quot;g&quot;).classed(n.cn.sankey,!0).style(&quot;box-sizing&quot;,&quot;content-box&quot;).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;left&quot;,0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;).style(&quot;pointer-events&quot;,&quot;auto&quot;).attr(&quot;transform&quot;,E),v.each((function(e,r){t._fullData[r]._sankey=e;var n=&quot;bgsankey-&quot;+e.trace.uid+&quot;-&quot;+r;f.ensureSingle(t._fullLayout._draggers,&quot;rect&quot;,n),t._fullData[r]._bgRect=i.select(&quot;.&quot;+n),t._fullData[r]._bgRect.style(&quot;pointer-events&quot;,&quot;all&quot;).attr(&quot;width&quot;,e.width).attr(&quot;height&quot;,e.height).attr(&quot;x&quot;,e.translateX).attr(&quot;y&quot;,e.translateY).classed(&quot;bgsankey&quot;,!0).style({fill:&quot;transparent&quot;,&quot;stroke-width&quot;:0})})),v.transition().ease(n.ease).duration(n.duration).attr(&quot;transform&quot;,E);var y=v.selectAll(&quot;.&quot;+n.cn.sankeyLinks).data(g,d);y.enter().append(&quot;g&quot;).classed(n.cn.sankeyLinks,!0).style(&quot;fill&quot;,&quot;none&quot;);var k=y.selectAll(&quot;.&quot;+n.cn.sankeyLink).data((function(t){return t.graph.links.filter((function(t){return t.value})).map(b.bind(null,t))}),d);k.enter().append(&quot;path&quot;).classed(n.cn.sankeyLink,!0).call(D,v,c.linkEvents),k.style(&quot;stroke&quot;,(function(t){return S(t)?o.tinyRGB(a(t.linkLineColor)):t.tinyColorHue})).style(&quot;stroke-opacity&quot;,(function(t){return S(t)?o.opacity(t.linkLineColor):t.tinyColorAlpha})).style(&quot;fill&quot;,(function(t){return t.tinyColorHue})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})).style(&quot;stroke-width&quot;,(function(t){return S(t)?t.linkLineWidth:1})).attr(&quot;d&quot;,_()),k.style(&quot;opacity&quot;,(function(){return t._context.staticPlot||u||h?1:0})).transition().ease(n.ease).duration(n.duration).style(&quot;opacity&quot;,1),k.exit().transition().ease(n.ease).duration(n.duration).style(&quot;opacity&quot;,0).remove();var M=v.selectAll(&quot;.&quot;+n.cn.sankeyNodeSet).data(g,d);M.enter().append(&quot;g&quot;).classed(n.cn.sankeyNodeSet,!0),M.style(&quot;cursor&quot;,(function(t){switch(t.arrangement){case&quot;fixed&quot;:return&quot;default&quot;;case&quot;perpendicular&quot;:return&quot;ns-resize&quot;;default:return&quot;move&quot;}}));var F=M.selectAll(&quot;.&quot;+n.cn.sankeyNode).data((function(t){var e=t.graph.nodes;return function(t){var e,r=[];for(e=0;e&lt;t.length;e++)t[e].originalX=(t[e].x0+t[e].x1)/2,t[e].originalY=(t[e].y0+t[e].y1)/2,-1===r.indexOf(t[e].originalX)&amp;&amp;r.push(t[e].originalX);for(r.sort((function(t,e){return t-e})),e=0;e&lt;t.length;e++)t[e].originalLayerIndex=r.indexOf(t[e].originalX),t[e].originalLayer=t[e].originalLayerIndex/(r.length-1)}(e),e.map(w.bind(null,t))}),d);F.enter().append(&quot;g&quot;).classed(n.cn.sankeyNode,!0).call(T).style(&quot;opacity&quot;,(function(e){return!t._context.staticPlot&amp;&amp;!u||e.partOfGroup?0:1})),F.call(D,v,c.nodeEvents).call(R,k,c,t),F.transition().ease(n.ease).duration(n.duration).call(T).style(&quot;opacity&quot;,(function(t){return t.partOfGroup?0:1})),F.exit().transition().ease(n.ease).duration(n.duration).style(&quot;opacity&quot;,0).remove();var B=F.selectAll(&quot;.&quot;+n.cn.nodeRect).data(g);B.enter().append(&quot;rect&quot;).classed(n.cn.nodeRect,!0).call(A),B.style(&quot;stroke-width&quot;,(function(t){return t.nodeLineWidth})).style(&quot;stroke&quot;,(function(t){return o.tinyRGB(a(t.nodeLineColor))})).style(&quot;stroke-opacity&quot;,(function(t){return o.opacity(t.nodeLineColor)})).style(&quot;fill&quot;,(function(t){return t.tinyColorHue})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),B.transition().ease(n.ease).duration(n.duration).call(A);var N=F.selectAll(&quot;.&quot;+n.cn.nodeCapture).data(g);N.enter().append(&quot;rect&quot;).classed(n.cn.nodeCapture,!0).style(&quot;fill-opacity&quot;,0),N.attr(&quot;x&quot;,(function(t){return t.zoneX})).attr(&quot;y&quot;,(function(t){return t.zoneY})).attr(&quot;width&quot;,(function(t){return t.zoneWidth})).attr(&quot;height&quot;,(function(t){return t.zoneHeight}));var j=F.selectAll(&quot;.&quot;+n.cn.nodeCentered).data(g);j.enter().append(&quot;g&quot;).classed(n.cn.nodeCentered,!0).attr(&quot;transform&quot;,C),j.transition().ease(n.ease).duration(n.duration).attr(&quot;transform&quot;,C);var U=j.selectAll(&quot;.&quot;+n.cn.nodeLabelGuide).data(g);U.enter().append(&quot;path&quot;).classed(n.cn.nodeLabelGuide,!0).attr(&quot;id&quot;,(function(t){return t.uniqueNodeLabelPathId})).attr(&quot;d&quot;,L).attr(&quot;transform&quot;,I),U.transition().ease(n.ease).duration(n.duration).attr(&quot;d&quot;,L).attr(&quot;transform&quot;,I);var V=j.selectAll(&quot;.&quot;+n.cn.nodeLabel).data(g);V.enter().append(&quot;text&quot;).classed(n.cn.nodeLabel,!0).attr(&quot;transform&quot;,P).style(&quot;cursor&quot;,&quot;default&quot;).style(&quot;fill&quot;,&quot;black&quot;),V.style(&quot;text-shadow&quot;,(function(t){return t.horizontal?&quot;-1px 1px 1px #fff, 1px 1px 1px #fff, 1px -1px 1px #fff, -1px -1px 1px #fff&quot;:&quot;none&quot;})).each((function(t){s.font(V,t.textFont)})),V.transition().ease(n.ease).duration(n.duration).attr(&quot;transform&quot;,P);var q=V.selectAll(&quot;.&quot;+n.cn.nodeLabelTextPath).data(g);q.enter().append(&quot;textPath&quot;).classed(n.cn.nodeLabelTextPath,!0).attr(&quot;alignment-baseline&quot;,&quot;middle&quot;).attr(&quot;xlink:href&quot;,(function(t){return&quot;#&quot;+t.uniqueNodeLabelPathId})).attr(&quot;startOffset&quot;,O).style(&quot;fill&quot;,z),q.text((function(t){return t.horizontal||t.node.dy&gt;5?t.node.label:&quot;&quot;})).attr(&quot;text-anchor&quot;,(function(t){return t.horizontal&amp;&amp;t.left?&quot;end&quot;:&quot;start&quot;})),q.transition().ease(n.ease).duration(n.duration).attr(&quot;startOffset&quot;,O).style(&quot;fill&quot;,z)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;../../registry&quot;:911,&quot;./constants&quot;:1180,&quot;@plotly/d3-sankey&quot;:56,&quot;@plotly/d3-sankey-circular&quot;:55,d3:169,&quot;d3-force&quot;:160,&quot;d3-interpolate&quot;:162,tinycolor2:576}],1185:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=[],n=t.cd[0].trace,i=n._sankey.graph.nodes,a=0;a&lt;i.length;a++){var o=i[a];if(!o.partOfGroup){var s=[(o.x0+o.x1)/2,(o.y0+o.y1)/2];&quot;v&quot;===n.orientation&amp;&amp;s.reverse(),e&amp;&amp;e.contains(s,!1,a,t)&amp;&amp;r.push({pointNumber:o.pointNumber})}}return r}},{}],1186:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.texttemplate,t,&quot;txt&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;),n.mergeArray(e.customdata,t,&quot;data&quot;),n.mergeArray(e.textposition,t,&quot;tp&quot;),e.textfont&amp;&amp;(n.mergeArrayCastPositive(e.textfont.size,t,&quot;ts&quot;),n.mergeArray(e.textfont.color,t,&quot;tc&quot;),n.mergeArray(e.textfont.family,t,&quot;tf&quot;));var i=e.marker;if(i){n.mergeArrayCastPositive(i.size,t,&quot;ms&quot;),n.mergeArrayCastPositive(i.opacity,t,&quot;mo&quot;),n.mergeArray(i.symbol,t,&quot;mx&quot;),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;i.line&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;));var o=i.gradient;o&amp;&amp;&quot;none&quot;!==o.type&amp;&amp;(n.mergeArray(o.type,t,&quot;mgt&quot;),n.mergeArray(o.color,t,&quot;mgc&quot;))}}},{&quot;../../lib&quot;:778}],1187:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../components/drawing/attributes&quot;).dash,l=t(&quot;../../components/drawing&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},x0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},dx:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;,anim:!0},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},y0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},dy:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;,anim:!0},xperiod:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},yperiod:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},xperiod0:{valType:&quot;any&quot;,editType:&quot;calc&quot;},yperiod0:{valType:&quot;any&quot;,editType:&quot;calc&quot;},xperiodalignment:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;middle&quot;,&quot;end&quot;],dflt:&quot;middle&quot;,editType:&quot;calc&quot;},yperiodalignment:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;middle&quot;,&quot;end&quot;],dflt:&quot;middle&quot;,editType:&quot;calc&quot;},stackgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc&quot;},groupnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;fraction&quot;,&quot;percent&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},stackgaps:{valType:&quot;enumerated&quot;,values:[&quot;infer zero&quot;,&quot;interpolate&quot;],dflt:&quot;infer zero&quot;,editType:&quot;calc&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},texttemplate:n({},{}),hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},mode:{valType:&quot;flaglist&quot;,flags:[&quot;lines&quot;,&quot;markers&quot;,&quot;text&quot;],extras:[&quot;none&quot;],editType:&quot;calc&quot;},hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;points&quot;,&quot;fills&quot;],editType:&quot;style&quot;},hovertemplate:i({},{keys:c.eventDataKeys}),line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;,anim:!0},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;,anim:!0},shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;spline&quot;,&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},smoothing:{valType:&quot;number&quot;,min:0,max:1.3,dflt:1,editType:&quot;plot&quot;},dash:u({},s,{editType:&quot;style&quot;}),simplify:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},connectgaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},cliponaxis:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},fill:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;tozeroy&quot;,&quot;tozerox&quot;,&quot;tonexty&quot;,&quot;tonextx&quot;,&quot;toself&quot;,&quot;tonext&quot;],editType:&quot;calc&quot;},fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;,anim:!0},marker:u({symbol:{valType:&quot;enumerated&quot;,values:l.symbolList,dflt:&quot;circle&quot;,arrayOk:!0,editType:&quot;style&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,arrayOk:!0,editType:&quot;style&quot;,anim:!0},size:{valType:&quot;number&quot;,min:0,dflt:6,arrayOk:!0,editType:&quot;calc&quot;,anim:!0},maxdisplayed:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},sizeref:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},sizemin:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},sizemode:{valType:&quot;enumerated&quot;,values:[&quot;diameter&quot;,&quot;area&quot;],dflt:&quot;diameter&quot;,editType:&quot;calc&quot;},line:u({width:{valType:&quot;number&quot;,min:0,arrayOk:!0,editType:&quot;style&quot;,anim:!0},editType:&quot;calc&quot;},a(&quot;marker.line&quot;,{anim:!0})),gradient:{type:{valType:&quot;enumerated&quot;,values:[&quot;radial&quot;,&quot;horizontal&quot;,&quot;vertical&quot;,&quot;none&quot;],arrayOk:!0,dflt:&quot;none&quot;,editType:&quot;calc&quot;},color:{valType:&quot;color&quot;,arrayOk:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},a(&quot;marker&quot;,{anim:!0})),selected:{marker:{opacity:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},size:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},textfont:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;},unselected:{marker:{opacity:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},size:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},textfont:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;},textposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle left&quot;,&quot;middle center&quot;,&quot;middle right&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],dflt:&quot;middle center&quot;,arrayOk:!0,editType:&quot;calc&quot;},textfont:o({editType:&quot;calc&quot;,colorEditType:&quot;style&quot;,arrayOk:!0}),r:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},t:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;}}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing&quot;:665,&quot;../../components/drawing/attributes&quot;:664,&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906,&quot;./constants&quot;:1191}],1188:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=t(&quot;./subtypes&quot;),c=t(&quot;./colorscale_calc&quot;),u=t(&quot;./arrays_to_calcdata&quot;),f=t(&quot;./calc_selection&quot;);function h(t,e,r,n,i,o,s){var c=e._length,u=t._fullLayout,f=r._id,h=n._id,p=u._firstScatter[g(e)]===e.uid,d=(m(e,u,r,n)||{}).orientation,v=e.fill;r._minDtick=0,n._minDtick=0;var y={padded:!0},x={padded:!0};s&amp;&amp;(y.ppad=x.ppad=s);var b=c&lt;2||i[0]!==i[c-1]||o[0]!==o[c-1];b&amp;&amp;(&quot;tozerox&quot;===v||&quot;tonextx&quot;===v&amp;&amp;(p||&quot;h&quot;===d))?y.tozero=!0:(e.error_y||{}).visible||&quot;tonexty&quot;!==v&amp;&amp;&quot;tozeroy&quot;!==v&amp;&amp;(l.hasMarkers(e)||l.hasText(e))||(y.padded=!1,y.ppad=0),b&amp;&amp;(&quot;tozeroy&quot;===v||&quot;tonexty&quot;===v&amp;&amp;(p||&quot;v&quot;===d))?x.tozero=!0:&quot;tonextx&quot;!==v&amp;&amp;&quot;tozerox&quot;!==v||(x.padded=!1),f&amp;&amp;(e._extremes[f]=a.findExtremes(r,i,y)),h&amp;&amp;(e._extremes[h]=a.findExtremes(n,o,x))}function p(t,e){if(l.hasMarkers(t)){var r,n=t.marker,o=1.6*(t.marker.sizeref||1);if(r=&quot;area&quot;===t.marker.sizemode?function(t){return Math.max(Math.sqrt((t||0)/o),3)}:function(t){return Math.max((t||0)/o,3)},i.isArrayOrTypedArray(n.size)){var s={type:&quot;linear&quot;};a.setConvert(s);for(var c=s.makeCalcdata(t.marker,&quot;size&quot;),u=new Array(e),f=0;f&lt;e;f++)u[f]=r(c[f]);return u}return r(n.size)}}function d(t,e){var r=g(e),n=t._firstScatter;n[r]||(n[r]=e.uid)}function g(t){var e=t.stackgroup;return t.xaxis+t.yaxis+t.type+(e?&quot;-&quot;+e:&quot;&quot;)}function m(t,e,r,n){var i=t.stackgroup;if(i){var a=e._scatterStackOpts[r._id+n._id][i],o=&quot;v&quot;===a.orientation?n:r;return&quot;linear&quot;===o.type||&quot;log&quot;===o.type?a:void 0}}e.exports={calc:function(t,e){var r,l,g,v,y,x,b=t._fullLayout,_=a.getFromId(t,e.xaxis||&quot;x&quot;),w=a.getFromId(t,e.yaxis||&quot;y&quot;),T=_.makeCalcdata(e,&quot;x&quot;),k=w.makeCalcdata(e,&quot;y&quot;),M=o(e,_,&quot;x&quot;,T),A=o(e,w,&quot;y&quot;,k),S=e._length,E=new Array(S),C=e.ids,L=m(e,b,_,w),I=!1;d(b,e);var P,z=&quot;x&quot;,O=&quot;y&quot;;L?(i.pushUnique(L.traceIndices,e._expandedIndex),(r=&quot;v&quot;===L.orientation)?(O=&quot;s&quot;,P=&quot;x&quot;):(z=&quot;s&quot;,P=&quot;y&quot;),y=&quot;interpolate&quot;===L.stackgaps):h(t,e,_,w,M,A,p(e,S));var D=!!e.xperiodalignment,R=!!e.yperiodalignment;for(l=0;l&lt;S;l++){var F=E[l]={},B=n(M[l]),N=n(A[l]);B&amp;&amp;N?(F[z]=M[l],F[O]=A[l],D&amp;&amp;(F.orig_x=T[l]),R&amp;&amp;(F.orig_y=k[l])):L&amp;&amp;(r?B:N)?(F[P]=r?M[l]:A[l],F.gap=!0,y?(F.s=s,I=!0):F.s=0):F[z]=F[O]=s,C&amp;&amp;(F.id=String(C[l]))}if(u(E,e),c(t,e),f(E,e),L){for(l=0;l&lt;E.length;)E[l][P]===s?E.splice(l,1):l++;if(i.sort(E,(function(t,e){return t[P]-e[P]||t.i-e.i})),I){for(l=0;l&lt;E.length-1&amp;&amp;E[l].gap;)l++;for((x=E[l].s)||(x=E[l].s=0),g=0;g&lt;l;g++)E[g].s=x;for(v=E.length-1;v&gt;l&amp;&amp;E[v].gap;)v--;for(x=E[v].s,g=E.length-1;g&gt;v;g--)E[g].s=x;for(;l&lt;v;)if(E[++l].gap){for(g=l+1;E[g].gap;)g++;for(var j=E[l-1][P],U=E[l-1].s,V=(E[g].s-U)/(E[g][P]-j);l&lt;g;)E[l].s=U+(E[l][P]-j)*V,l++}}}return E},calcMarkerSize:p,calcAxisExpansion:h,setFirstScatter:d,getStackOpts:m}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;./arrays_to_calcdata&quot;:1186,&quot;./calc_selection&quot;:1189,&quot;./colorscale_calc&quot;:1190,&quot;./subtypes&quot;:1212,&quot;fast-isnumeric&quot;:241}],1189:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){n.isArrayOrTypedArray(e.selectedpoints)&amp;&amp;n.tagSelected(t,e)}},{&quot;../../lib&quot;:778}],1190:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,i=t(&quot;../../components/colorscale/calc&quot;),a=t(&quot;./subtypes&quot;);e.exports=function(t,e){a.hasLines(e)&amp;&amp;n(e,&quot;line&quot;)&amp;&amp;i(t,e,{vals:e.line.color,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;}),a.hasMarkers(e)&amp;&amp;(n(e,&quot;marker&quot;)&amp;&amp;i(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),n(e,&quot;marker.line&quot;)&amp;&amp;i(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}))}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;./subtypes&quot;:1212}],1191:[function(t,e,r){&quot;use strict&quot;;e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},{}],1192:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./calc&quot;);function i(t,e,r,n,i,a,o){i[n]=!0;var s={i:null,gap:!0,s:0};if(s[o]=r,t.splice(e,0,s),e&amp;&amp;r===t[e-1][o]){var l=t[e-1];s.s=l.s,s.i=l.i,s.gap=l.gap}else a&amp;&amp;(s.s=function(t,e,r,n){var i=t[e-1],a=t[e+1];return a?i?i.s+(a.s-i.s)*(r-i[n])/(a[n]-i[n]):a.s:i.s}(t,e,r,o));e||(t[0].t=t[1].t,t[0].trace=t[1].trace,delete t[1].t,delete t[1].trace)}e.exports=function(t,e){var r=e.xaxis,a=e.yaxis,o=r._id+a._id,s=t._fullLayout._scatterStackOpts[o];if(s){var l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T=t.calcdata;for(var k in s){var M=(v=s[k]).traceIndices;if(M.length){for(y=&quot;interpolate&quot;===v.stackgaps,x=v.groupnorm,&quot;v&quot;===v.orientation?(b=&quot;x&quot;,_=&quot;y&quot;):(b=&quot;y&quot;,_=&quot;x&quot;),w=new Array(M.length),l=0;l&lt;w.length;l++)w[l]=!1;p=T[M[0]];var A=new Array(p.length);for(l=0;l&lt;p.length;l++)A[l]=p[l][b];for(l=1;l&lt;M.length;l++){for(h=T[M[l]],c=u=0;c&lt;h.length;c++){for(d=h[c][b];d&gt;A[u]&amp;&amp;u&lt;A.length;u++)i(h,c,A[u],l,w,y,b),c++;if(d!==A[u]){for(f=0;f&lt;l;f++)i(T[M[f]],u,d,f,w,y,b);A.splice(u,0,d)}u++}for(;u&lt;A.length;u++)i(h,c,A[u],l,w,y,b),c++}var S=A.length;for(c=0;c&lt;p.length;c++){for(g=p[c][_]=p[c].s,l=1;l&lt;M.length;l++)(h=T[M[l]])[0].trace._rawLength=h[0].trace._length,h[0].trace._length=S,g+=h[c].s,h[c][_]=g;if(x)for(m=(&quot;fraction&quot;===x?g:g/100)||1,l=0;l&lt;M.length;l++){var E=T[M[l]][c];E[_]/=m,E.sNorm=E.s/m}}for(l=0;l&lt;M.length;l++){var C=(h=T[M[l]])[0].trace,L=n.calcMarkerSize(C,C._rawLength),I=Array.isArray(L);if(L&amp;&amp;w[l]||I){var P=L;for(L=new Array(S),c=0;c&lt;S;c++)L[c]=h[c].gap?0:I?P[h[c].i]:P}var z=new Array(S),O=new Array(S);for(c=0;c&lt;S;c++)z[c]=h[c].x,O[c]=h[c].y;n.calcAxisExpansion(t,C,r,a,z,O,L),h[0].t.orientation=v.orientation}}}}}},{&quot;./calc&quot;:1188}],1193:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=0;e&lt;t.length;e++){var r=t[e];if(&quot;scatter&quot;===r.type){var n=r.fill;if(&quot;none&quot;!==n&amp;&amp;&quot;toself&quot;!==n&amp;&amp;(r.opacity=void 0,&quot;tonexty&quot;===n||&quot;tonextx&quot;===n))for(var i=e-1;i&gt;=0;i--){var a=t[i];if(&quot;scatter&quot;===a.type&amp;&amp;a.xaxis===r.xaxis&amp;&amp;a.yaxis===r.yaxis){a.opacity=void 0;break}}}}}},{}],1194:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;),s=t(&quot;./subtypes&quot;),l=t(&quot;./xy_defaults&quot;),c=t(&quot;./period_defaults&quot;),u=t(&quot;./stack_defaults&quot;),f=t(&quot;./marker_defaults&quot;),h=t(&quot;./line_defaults&quot;),p=t(&quot;./line_shape_defaults&quot;),d=t(&quot;./text_defaults&quot;),g=t(&quot;./fillcolor_defaults&quot;);e.exports=function(t,e,r,m){function v(r,i){return n.coerce(t,e,a,r,i)}var y=l(t,e,m,v);if(y||(e.visible=!1),e.visible){c(t,e,m,v);var x=u(t,e,m,v),b=!x&amp;&amp;y&lt;o.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;;v(&quot;text&quot;),v(&quot;hovertext&quot;),v(&quot;mode&quot;,b),s.hasLines(e)&amp;&amp;(h(t,e,r,m,v),p(t,e,v),v(&quot;connectgaps&quot;),v(&quot;line.simplify&quot;)),s.hasMarkers(e)&amp;&amp;f(t,e,r,m,v,{gradient:!0}),s.hasText(e)&amp;&amp;(v(&quot;texttemplate&quot;),d(t,e,m,v));var _=[];(s.hasMarkers(e)||s.hasText(e))&amp;&amp;(v(&quot;cliponaxis&quot;),v(&quot;marker.maxdisplayed&quot;),_.push(&quot;points&quot;)),v(&quot;fill&quot;,x?x.fillDflt:&quot;none&quot;),&quot;none&quot;!==e.fill&amp;&amp;(g(t,e,r,v),s.hasLines(e)||p(t,e,v));var w=(e.line||{}).color,T=(e.marker||{}).color;&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||_.push(&quot;fills&quot;),v(&quot;hoveron&quot;,_.join(&quot;+&quot;)||&quot;points&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;v(&quot;hovertemplate&quot;);var k=i.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);k(t,e,w||T||r,{axis:&quot;y&quot;}),k(t,e,w||T||r,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,v)}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1187,&quot;./constants&quot;:1191,&quot;./fillcolor_defaults&quot;:1195,&quot;./line_defaults&quot;:1200,&quot;./line_shape_defaults&quot;:1202,&quot;./marker_defaults&quot;:1206,&quot;./period_defaults&quot;:1207,&quot;./stack_defaults&quot;:1210,&quot;./subtypes&quot;:1212,&quot;./text_defaults&quot;:1213,&quot;./xy_defaults&quot;:1214}],1195:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a){var o=!1;if(e.marker){var s=e.marker.color,l=(e.marker.line||{}).color;s&amp;&amp;!i(s)?o=s:l&amp;&amp;!i(l)&amp;&amp;(o=l)}a(&quot;fillcolor&quot;,n.addOpacity((e.line||{}).color||o||r,.5))}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778}],1196:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a={_fullLayout:r},o=n.getFromTrace(a,e,&quot;x&quot;),s=n.getFromTrace(a,e,&quot;y&quot;);return i.xLabel=n.tickText(o,t.x,!0).text,i.yLabel=n.tickText(s,t.y,!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1197:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;./subtypes&quot;);e.exports=function(t,e){var r,a;if(&quot;lines&quot;===t.mode)return(r=t.line.color)&amp;&amp;n.opacity(r)?r:t.fillcolor;if(&quot;none&quot;===t.mode)return t.fill?t.fillcolor:&quot;&quot;;var o=e.mcc||(t.marker||{}).color,s=e.mlcc||((t.marker||{}).line||{}).color;return(a=o&amp;&amp;n.opacity(o)?o:s&amp;&amp;n.opacity(s)&amp;&amp;(e.mlw||((t.marker||{}).line||{}).width)?s:&quot;&quot;)?n.opacity(a)&lt;.3?n.addOpacity(a,.3):a:(r=(t.line||{}).color)&amp;&amp;n.opacity(r)&amp;&amp;i.hasLines(t)&amp;&amp;t.line.width?r:t.fillcolor}},{&quot;../../components/color&quot;:643,&quot;./subtypes&quot;:1212}],1198:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/fx&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;./get_trace_color&quot;),s=t(&quot;../../components/color&quot;),l=n.fillText;e.exports=function(t,e,r,c){var u=t.cd,f=u[0].trace,h=t.xa,p=t.ya,d=h.c2p(e),g=p.c2p(r),m=[d,g],v=f.hoveron||&quot;&quot;,y=-1!==f.mode.indexOf(&quot;markers&quot;)?3:.5;if(-1!==v.indexOf(&quot;points&quot;)){var x=function(t){var e=Math.max(y,t.mrc||0),r=h.c2p(t.x)-d,n=p.c2p(t.y)-g;return Math.max(Math.sqrt(r*r+n*n)-e,1-y/e)},b=i.getDistanceFunction(c,(function(t){var e=Math.max(3,t.mrc||0),r=1-1/e,n=Math.abs(h.c2p(t.x)-d);return n&lt;e?r*n/e:n-e+r}),(function(t){var e=Math.max(3,t.mrc||0),r=1-1/e,n=Math.abs(p.c2p(t.y)-g);return n&lt;e?r*n/e:n-e+r}),x);if(i.getClosest(u,b,t),!1!==t.index){var _=u[t.index],w=h.c2p(_.x,!0),T=p.c2p(_.y,!0),k=_.mrc||1;t.index=_.i;var M=u[0].t.orientation,A=M&amp;&amp;(_.sNorm||_.s),S=&quot;h&quot;===M?A:void 0!==_.orig_x?_.orig_x:_.x,E=&quot;v&quot;===M?A:void 0!==_.orig_y?_.orig_y:_.y;return n.extendFlat(t,{color:o(f,_),x0:w-k,x1:w+k,xLabelVal:S,y0:T-k,y1:T+k,yLabelVal:E,spikeDistance:x(_),hovertemplate:f.hovertemplate}),l(_,f,t),a.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(_,f,t),[t]}}if(-1!==v.indexOf(&quot;fills&quot;)&amp;&amp;f._polygons){var C,L,I,P,z,O,D,R,F,B=f._polygons,N=[],j=!1,U=1/0,V=-1/0,q=1/0,H=-1/0;for(C=0;C&lt;B.length;C++)(I=B[C]).contains(m)&amp;&amp;(j=!j,N.push(I),q=Math.min(q,I.ymin),H=Math.max(H,I.ymax));if(j){var G=((q=Math.max(q,0))+(H=Math.min(H,p._length)))/2;for(C=0;C&lt;N.length;C++)for(P=N[C].pts,L=1;L&lt;P.length;L++)(R=P[L-1][1])&gt;G!=(F=P[L][1])&gt;=G&amp;&amp;(O=P[L-1][0],D=P[L][0],F-R&amp;&amp;(z=O+(D-O)*(G-R)/(F-R),U=Math.min(U,z),V=Math.max(V,z)));U=Math.max(U,0),V=Math.min(V,h._length);var Y=s.defaultLine;return s.opacity(f.fillcolor)?Y=f.fillcolor:s.opacity((f.line||{}).color)&amp;&amp;(Y=f.line.color),n.extendFlat(t,{distance:t.maxHoverDistance,x0:U,x1:V,y0:G,y1:G,color:Y,hovertemplate:!1}),delete t.index,f.text&amp;&amp;!Array.isArray(f.text)?t.text=String(f.text):t.text=f.name,[t]}}}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./get_trace_color&quot;:1197}],1199:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./subtypes&quot;);e.exports={hasLines:n.hasLines,hasMarkers:n.hasMarkers,hasText:n.hasText,isBubble:n.isBubble,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./cross_trace_calc&quot;),arraysToCalcdata:t(&quot;./arrays_to_calcdata&quot;),plot:t(&quot;./plot&quot;),colorbar:t(&quot;./marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;./select&quot;),animatable:!0,moduleType:&quot;trace&quot;,name:&quot;scatter&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./arrays_to_calcdata&quot;:1186,&quot;./attributes&quot;:1187,&quot;./calc&quot;:1188,&quot;./cross_trace_calc&quot;:1192,&quot;./cross_trace_defaults&quot;:1193,&quot;./defaults&quot;:1194,&quot;./format_labels&quot;:1196,&quot;./hover&quot;:1198,&quot;./marker_colorbar&quot;:1205,&quot;./plot&quot;:1208,&quot;./select&quot;:1209,&quot;./style&quot;:1211,&quot;./subtypes&quot;:1212}],1200:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray,i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;);e.exports=function(t,e,r,o,s,l){var c=(t.marker||{}).color;(s(&quot;line.color&quot;,r),i(t,&quot;line&quot;))?a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}):s(&quot;line.color&quot;,!n(c)&amp;&amp;c||r);s(&quot;line.width&quot;),(l||{}).noDash||s(&quot;line.dash&quot;)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778}],1201:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/numerical&quot;),i=n.BADNUM,a=n.LOG_CLIP,o=a+.5,s=a-.5,l=t(&quot;../../lib&quot;),c=l.segmentsIntersect,u=l.constrain,f=t(&quot;./constants&quot;);e.exports=function(t,e){var r,n,a,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S=e.xaxis,E=e.yaxis,C=&quot;log&quot;===S.type,L=&quot;log&quot;===E.type,I=S._length,P=E._length,z=e.connectGaps,O=e.baseTolerance,D=e.shape,R=&quot;linear&quot;===D,F=e.fill&amp;&amp;&quot;none&quot;!==e.fill,B=[],N=f.minTolerance,j=t.length,U=new Array(j),V=0;function q(r){var n=t[r];if(!n)return!1;var a=e.linearized?S.l2p(n.x):S.c2p(n.x),l=e.linearized?E.l2p(n.y):E.c2p(n.y);if(a===i){if(C&amp;&amp;(a=S.c2p(n.x,!0)),a===i)return!1;L&amp;&amp;l===i&amp;&amp;(a*=Math.abs(S._m*P*(S._m&gt;0?o:s)/(E._m*I*(E._m&gt;0?o:s)))),a*=1e3}if(l===i){if(L&amp;&amp;(l=E.c2p(n.y,!0)),l===i)return!1;l*=1e3}return[a,l]}function H(t,e,r,n){var i=r-t,a=n-e,o=.5-t,s=.5-e,l=i*i+a*a,c=i*o+a*s;if(c&gt;0&amp;&amp;c&lt;l){var u=o*a-s*i;if(u*u&lt;l)return!0}}function G(t,e){var r=t[0]/I,n=t[1]/P,i=Math.max(0,-r,r-1,-n,n-1);return i&amp;&amp;void 0!==M&amp;&amp;H(r,n,M,A)&amp;&amp;(i=0),i&amp;&amp;e&amp;&amp;H(r,n,e[0]/I,e[1]/P)&amp;&amp;(i=0),(1+f.toleranceGrowth*i)*O}function Y(t,e){var r=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(r*r+n*n)}var W,X,Z,J,K,Q,$,tt=f.maxScreensAway,et=-I*tt,rt=I*(1+tt),nt=-P*tt,it=P*(1+tt),at=[[et,nt,rt,nt],[rt,nt,rt,it],[rt,it,et,it],[et,it,et,nt]];function ot(t){if(t[0]&lt;et||t[0]&gt;rt||t[1]&lt;nt||t[1]&gt;it)return[u(t[0],et,rt),u(t[1],nt,it)]}function st(t,e){return t[0]===e[0]&amp;&amp;(t[0]===et||t[0]===rt)||(t[1]===e[1]&amp;&amp;(t[1]===nt||t[1]===it)||void 0)}function lt(t,e,r){return function(n,i){var a=ot(n),o=ot(i),s=[];if(a&amp;&amp;o&amp;&amp;st(a,o))return s;a&amp;&amp;s.push(a),o&amp;&amp;s.push(o);var c=2*l.constrain((n[t]+i[t])/2,e,r)-((a||n)[t]+(o||i)[t]);c&amp;&amp;((a&amp;&amp;o?c&gt;0==a[t]&gt;o[t]?a:o:a||o)[t]+=c);return s}}function ct(t){var e=t[0],r=t[1],n=e===U[V-1][0],i=r===U[V-1][1];if(!n||!i)if(V&gt;1){var a=e===U[V-2][0],o=r===U[V-2][1];n&amp;&amp;(e===et||e===rt)&amp;&amp;a?o?V--:U[V-1]=t:i&amp;&amp;(r===nt||r===it)&amp;&amp;o?a?V--:U[V-1]=t:U[V++]=t}else U[V++]=t}function ut(t){U[V-1][0]!==t[0]&amp;&amp;U[V-1][1]!==t[1]&amp;&amp;ct([Z,J]),ct(t),K=null,Z=J=0}function ft(t){if(M=t[0]/I,A=t[1]/P,W=t[0]&lt;et?et:t[0]&gt;rt?rt:0,X=t[1]&lt;nt?nt:t[1]&gt;it?it:0,W||X){if(V)if(K){var e=$(K,t);e.length&gt;1&amp;&amp;(ut(e[0]),U[V++]=e[1])}else Q=$(U[V-1],t)[0],U[V++]=Q;else U[V++]=[W||t[0],X||t[1]];var r=U[V-1];W&amp;&amp;X&amp;&amp;(r[0]!==W||r[1]!==X)?(K&amp;&amp;(Z!==W&amp;&amp;J!==X?ct(Z&amp;&amp;J?(n=K,a=(i=t)[0]-n[0],o=(i[1]-n[1])/a,(n[1]*i[0]-i[1]*n[0])/a&gt;0?[o&gt;0?et:rt,it]:[o&gt;0?rt:et,nt]):[Z||W,J||X]):Z&amp;&amp;J&amp;&amp;ct([Z,J])),ct([W,X])):Z-W&amp;&amp;J-X&amp;&amp;ct([W||Z,X||J]),K=t,Z=W,J=X}else K&amp;&amp;ut($(K,t)[0]),U[V++]=t;var n,i,a,o}for(&quot;linear&quot;===D||&quot;spline&quot;===D?$=function(t,e){for(var r=[],n=0,i=0;i&lt;4;i++){var a=at[i],o=c(t[0],t[1],e[0],e[1],a[0],a[1],a[2],a[3]);o&amp;&amp;(!n||Math.abs(o.x-r[0][0])&gt;1||Math.abs(o.y-r[0][1])&gt;1)&amp;&amp;(o=[o.x,o.y],n&amp;&amp;Y(o,t)&lt;Y(r[0],t)?r.unshift(o):r.push(o),n++)}return r}:&quot;hv&quot;===D||&quot;vh&quot;===D?$=function(t,e){var r=[],n=ot(t),i=ot(e);return n&amp;&amp;i&amp;&amp;st(n,i)||(n&amp;&amp;r.push(n),i&amp;&amp;r.push(i)),r}:&quot;hvh&quot;===D?$=lt(0,et,rt):&quot;vhv&quot;===D&amp;&amp;($=lt(1,nt,it)),r=0;r&lt;j;r++)if(n=q(r)){for(V=0,K=null,ft(n),r++;r&lt;j;r++){if(!(h=q(r))){if(z)continue;break}if(R&amp;&amp;e.simplify){var ht=q(r+1);if(y=Y(h,n),F&amp;&amp;(0===V||V===j-1)||!(y&lt;G(h,ht)*N)){for(m=[(h[0]-n[0])/y,(h[1]-n[1])/y],p=n,x=y,b=w=T=0,g=!1,a=h,r++;r&lt;t.length;r++){if(d=ht,ht=q(r+1),!d){if(z)continue;break}if(k=(v=[d[0]-n[0],d[1]-n[1]])[0]*m[1]-v[1]*m[0],w=Math.min(w,k),(T=Math.max(T,k))-w&gt;G(d,ht))break;a=d,(_=v[0]*m[0]+v[1]*m[1])&gt;x?(x=_,h=d,g=!1):_&lt;b&amp;&amp;(b=_,p=d,g=!0)}if(g?(ft(h),a!==p&amp;&amp;ft(p)):(p!==n&amp;&amp;ft(p),a!==h&amp;&amp;ft(h)),ft(a),r&gt;=t.length||!d)break;ft(d),n=d}}else ft(h)}K&amp;&amp;ct([Z||K[0],J||K[1]]),B.push(U.slice(0,V))}return B}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./constants&quot;:1191}],1202:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){&quot;spline&quot;===r(&quot;line.shape&quot;)&amp;&amp;r(&quot;line.smoothing&quot;)}},{}],1203:[function(t,e,r){&quot;use strict&quot;;var n={tonextx:1,tonexty:1,tonext:1};e.exports=function(t,e,r){var i,a,o,s,l,c={},u=!1,f=-1,h=0,p=-1;for(a=0;a&lt;r.length;a++)(o=(i=r[a][0].trace).stackgroup||&quot;&quot;)?o in c?l=c[o]:(l=c[o]=h,h++):i.fill in n&amp;&amp;p&gt;=0?l=p:(l=p=h,h++),l&lt;f&amp;&amp;(u=!0),i._groupIndex=f=l;var d=r.slice();u&amp;&amp;d.sort((function(t,e){var r=t[0].trace,n=e[0].trace;return r._groupIndex-n._groupIndex||r.index-n.index}));var g={};for(a=0;a&lt;d.length;a++)o=(i=d[a][0].trace).stackgroup||&quot;&quot;,!0===i.visible?(i._nexttrace=null,i.fill in n&amp;&amp;(s=g[o],i._prevtrace=s||null,s&amp;&amp;(s._nexttrace=i)),i._ownfill=i.fill&amp;&amp;(&quot;tozero&quot;===i.fill.substr(0,6)||&quot;toself&quot;===i.fill||&quot;to&quot;===i.fill.substr(0,2)&amp;&amp;!i._prevtrace),g[o]=i):i._prevtrace=i._nexttrace=i._ownfill=null;return d}},{}],1204:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports=function(t){var e=t.marker,r=e.sizeref||1,i=e.sizemin||0,a=&quot;area&quot;===e.sizemode?function(t){return Math.sqrt(t/r)}:function(t){return t/r};return function(t){var e=a(t/2);return n(e)&amp;&amp;e&gt;0?Math.max(e,i):0}}},{&quot;fast-isnumeric&quot;:241}],1205:[function(t,e,r){&quot;use strict&quot;;e.exports={container:&quot;marker&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;}},{}],1206:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./subtypes&quot;);e.exports=function(t,e,r,s,l,c){var u=o.isBubble(t),f=(t.line||{}).color;(c=c||{},f&amp;&amp;(r=f),l(&quot;marker.symbol&quot;),l(&quot;marker.opacity&quot;,u?.7:1),l(&quot;marker.size&quot;),l(&quot;marker.color&quot;,r),i(t,&quot;marker&quot;)&amp;&amp;a(t,e,s,l,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),c.noSelect||(l(&quot;selected.marker.color&quot;),l(&quot;unselected.marker.color&quot;),l(&quot;selected.marker.size&quot;),l(&quot;unselected.marker.size&quot;)),c.noLine||(l(&quot;marker.line.color&quot;,f&amp;&amp;!Array.isArray(f)&amp;&amp;e.marker.color!==f?f:u?n.background:n.defaultLine),i(t,&quot;marker.line&quot;)&amp;&amp;a(t,e,s,l,{prefix:&quot;marker.line.&quot;,cLetter:&quot;c&quot;}),l(&quot;marker.line.width&quot;,u?1:0)),u&amp;&amp;(l(&quot;marker.sizeref&quot;),l(&quot;marker.sizemin&quot;),l(&quot;marker.sizemode&quot;)),c.gradient)&amp;&amp;(&quot;none&quot;!==l(&quot;marker.gradient.type&quot;)&amp;&amp;l(&quot;marker.gradient.color&quot;))}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;./subtypes&quot;:1212}],1207:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).dateTick0,i=t(&quot;../../constants/numerical&quot;).ONEWEEK;function a(t,e){return n(e,t%i==0?1:0)}e.exports=function(t,e,r,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n(&quot;xperiod&quot;);o&amp;&amp;(n(&quot;xperiod0&quot;,a(o,e.xcalendar)),n(&quot;xperiodalignment&quot;))}if(i.y){var s=n(&quot;yperiod&quot;);s&amp;&amp;(n(&quot;yperiod0&quot;,a(s,e.ycalendar)),n(&quot;yperiodalignment&quot;))}}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778}],1208:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.ensureSingle,s=a.identity,l=t(&quot;../../components/drawing&quot;),c=t(&quot;./subtypes&quot;),u=t(&quot;./line_points&quot;),f=t(&quot;./link_traces&quot;),h=t(&quot;../../lib/polygon&quot;).tester;function p(t,e,r,f,p,d,g){var m;!function(t,e,r,i,o){var s=r.xaxis,l=r.yaxis,u=n.extent(a.simpleMap(s.range,s.r2c)),f=n.extent(a.simpleMap(l.range,l.r2c)),h=i[0].trace;if(!c.hasMarkers(h))return;var p=h.marker.maxdisplayed;if(0===p)return;var d=i.filter((function(t){return t.x&gt;=u[0]&amp;&amp;t.x&lt;=u[1]&amp;&amp;t.y&gt;=f[0]&amp;&amp;t.y&lt;=f[1]})),g=Math.ceil(d.length/p),m=0;o.forEach((function(t,r){var n=t[0].trace;c.hasMarkers(n)&amp;&amp;n.marker.maxdisplayed&gt;0&amp;&amp;r&lt;e&amp;&amp;m++}));var v=Math.round(m*g/3+Math.floor(m/3)*g/7.1);i.forEach((function(t){delete t.vis})),d.forEach((function(t,e){0===Math.round((e+v)%g)&amp;&amp;(t.vis=!0)}))}(0,e,r,f,p);var v=!!g&amp;&amp;g.duration&gt;0;function y(t){return v?t.transition():t}var x=r.xaxis,b=r.yaxis,_=f[0].trace,w=_.line,T=n.select(d),k=o(T,&quot;g&quot;,&quot;errorbars&quot;),M=o(T,&quot;g&quot;,&quot;lines&quot;),A=o(T,&quot;g&quot;,&quot;points&quot;),S=o(T,&quot;g&quot;,&quot;text&quot;);if(i.getComponentMethod(&quot;errorbars&quot;,&quot;plot&quot;)(t,k,r,g),!0===_.visible){var E,C;y(T).style(&quot;opacity&quot;,_.opacity);var L=_.fill.charAt(_.fill.length-1);&quot;x&quot;!==L&amp;&amp;&quot;y&quot;!==L&amp;&amp;(L=&quot;&quot;),f[0][r.isRangePlot?&quot;nodeRangePlot3&quot;:&quot;node3&quot;]=T;var I,P,z=&quot;&quot;,O=[],D=_._prevtrace;D&amp;&amp;(z=D._prevRevpath||&quot;&quot;,C=D._nextFill,O=D._polygons);var R,F,B,N,j,U,V,q=&quot;&quot;,H=&quot;&quot;,G=[],Y=a.noop;if(E=_._ownFill,c.hasLines(_)||&quot;none&quot;!==_.fill){for(C&amp;&amp;C.datum(f),-1!==[&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;].indexOf(w.shape)?(R=l.steps(w.shape),F=l.steps(w.shape.split(&quot;&quot;).reverse().join(&quot;&quot;))):R=F=&quot;spline&quot;===w.shape?function(t){var e=t[t.length-1];return t.length&gt;1&amp;&amp;t[0][0]===e[0]&amp;&amp;t[0][1]===e[1]?l.smoothclosed(t.slice(1),w.smoothing):l.smoothopen(t,w.smoothing)}:function(t){return&quot;M&quot;+t.join(&quot;L&quot;)},B=function(t){return F(t.reverse())},G=u(f,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify,fill:_.fill}),V=_._polygons=new Array(G.length),m=0;m&lt;G.length;m++)_._polygons[m]=h(G[m]);G.length&amp;&amp;(N=G[0][0],U=(j=G[G.length-1])[j.length-1]),Y=function(t){return function(e){if(I=R(e),P=B(e),q?L?(q+=&quot;L&quot;+I.substr(1),H=P+&quot;L&quot;+H.substr(1)):(q+=&quot;Z&quot;+I,H=P+&quot;Z&quot;+H):(q=I,H=P),c.hasLines(_)&amp;&amp;e.length&gt;1){var r=n.select(this);if(r.datum(f),t)y(r.style(&quot;opacity&quot;,0).attr(&quot;d&quot;,I).call(l.lineGroupStyle)).style(&quot;opacity&quot;,1);else{var i=y(r);i.attr(&quot;d&quot;,I),l.singleLineStyle(f,i)}}}}}var W=M.selectAll(&quot;.js-line&quot;).data(G);y(W.exit()).style(&quot;opacity&quot;,0).remove(),W.each(Y(!1)),W.enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).call(l.lineGroupStyle).each(Y(!0)),l.setClipUrl(W,r.layerClipId,t),G.length?(E?(E.datum(f),N&amp;&amp;U&amp;&amp;(L?(&quot;y&quot;===L?N[1]=U[1]=b.c2p(0,!0):&quot;x&quot;===L&amp;&amp;(N[0]=U[0]=x.c2p(0,!0)),y(E).attr(&quot;d&quot;,&quot;M&quot;+U+&quot;L&quot;+N+&quot;L&quot;+q.substr(1)).call(l.singleFillStyle)):y(E).attr(&quot;d&quot;,q+&quot;Z&quot;).call(l.singleFillStyle))):C&amp;&amp;(&quot;tonext&quot;===_.fill.substr(0,6)&amp;&amp;q&amp;&amp;z?(&quot;tonext&quot;===_.fill?y(C).attr(&quot;d&quot;,q+&quot;Z&quot;+z+&quot;Z&quot;).call(l.singleFillStyle):y(C).attr(&quot;d&quot;,q+&quot;L&quot;+z.substr(1)+&quot;Z&quot;).call(l.singleFillStyle),_._polygons=_._polygons.concat(O)):(Z(C),_._polygons=null)),_._prevRevpath=H,_._prevPolygons=V):(E?Z(E):C&amp;&amp;Z(C),_._polygons=_._prevRevpath=_._prevPolygons=null),A.datum(f),S.datum(f),function(e,i,a){var o,u=a[0].trace,f=c.hasMarkers(u),h=c.hasText(u),p=tt(u),d=et,g=et;if(f||h){var m=s,_=u.stackgroup,w=_&amp;&amp;&quot;infer zero&quot;===t._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;u.marker.maxdisplayed||u._needsCull?m=w?K:J:_&amp;&amp;!w&amp;&amp;(m=Q),f&amp;&amp;(d=m),h&amp;&amp;(g=m)}var T,k=(o=e.selectAll(&quot;path.point&quot;).data(d,p)).enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0);v&amp;&amp;k.call(l.pointStyle,u,t).call(l.translatePoints,x,b).style(&quot;opacity&quot;,0).transition().style(&quot;opacity&quot;,1),o.order(),f&amp;&amp;(T=l.makePointStyleFns(u)),o.each((function(e){var i=n.select(this),a=y(i);l.translatePoint(e,a,x,b)?(l.singlePointStyle(e,a,u,T,t),r.layerClipId&amp;&amp;l.hideOutsideRangePoint(e,a,x,b,u.xcalendar,u.ycalendar),u.customdata&amp;&amp;i.classed(&quot;plotly-customdata&quot;,null!==e.data&amp;&amp;void 0!==e.data)):a.remove()})),v?o.exit().transition().style(&quot;opacity&quot;,0).remove():o.exit().remove(),(o=i.selectAll(&quot;g&quot;).data(g,p)).enter().append(&quot;g&quot;).classed(&quot;textpoint&quot;,!0).append(&quot;text&quot;),o.order(),o.each((function(t){var e=n.select(this),i=y(e.select(&quot;text&quot;));l.translatePoint(t,i,x,b)?r.layerClipId&amp;&amp;l.hideOutsideRangePoint(t,e,x,b,u.xcalendar,u.ycalendar):e.remove()})),o.selectAll(&quot;text&quot;).call(l.textPointStyle,u,t).each((function(t){var e=x.c2p(t.x),r=b.c2p(t.y);n.select(this).selectAll(&quot;tspan.line&quot;).each((function(){y(n.select(this)).attr({x:e,y:r})}))})),o.exit().remove()}(A,S,f);var X=!1===_.cliponaxis?null:r.layerClipId;l.setClipUrl(A,X,t),l.setClipUrl(S,X,t)}function Z(t){y(t).attr(&quot;d&quot;,&quot;M0,0Z&quot;)}function J(t){return t.filter((function(t){return!t.gap&amp;&amp;t.vis}))}function K(t){return t.filter((function(t){return t.vis}))}function Q(t){return t.filter((function(t){return!t.gap}))}function $(t){return t.id}function tt(t){if(t.ids)return $}function et(){return!1}}e.exports=function(t,e,r,i,a,c){var u,h,d=!a,g=!!a&amp;&amp;a.duration&gt;0,m=f(t,e,r);((u=i.selectAll(&quot;g.trace&quot;).data(m,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;trace scatter trace&quot;+t[0].trace.uid})).style(&quot;stroke-miterlimit&quot;,2),u.order(),function(t,e,r){e.each((function(e){var i=o(n.select(this),&quot;g&quot;,&quot;fills&quot;);l.setClipUrl(i,r.layerClipId,t);var a=e[0].trace,c=[];a._ownfill&amp;&amp;c.push(&quot;_ownFill&quot;),a._nexttrace&amp;&amp;c.push(&quot;_nextFill&quot;);var u=i.selectAll(&quot;g&quot;).data(c,s);u.enter().append(&quot;g&quot;),u.exit().each((function(t){a[t]=null})).remove(),u.order().each((function(t){a[t]=o(n.select(this),&quot;path&quot;,&quot;js-fill&quot;)}))}))}(t,u,e),g)?(c&amp;&amp;(h=c()),n.transition().duration(a.duration).ease(a.easing).each(&quot;end&quot;,(function(){h&amp;&amp;h()})).each(&quot;interrupt&quot;,(function(){h&amp;&amp;h()})).each((function(){i.selectAll(&quot;g.trace&quot;).each((function(r,n){p(t,n,e,r,m,this,a)}))}))):u.each((function(r,n){p(t,n,e,r,m,this,a)}));d&amp;&amp;u.exit().remove(),i.selectAll(&quot;path:not([d])&quot;).remove()}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/polygon&quot;:790,&quot;../../registry&quot;:911,&quot;./line_points&quot;:1201,&quot;./link_traces&quot;:1203,&quot;./subtypes&quot;:1212,d3:169}],1209:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./subtypes&quot;);e.exports=function(t,e){var r,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[],f=s[0].trace;if(!n.hasMarkers(f)&amp;&amp;!n.hasText(f))return[];if(!1===e)for(r=0;r&lt;s.length;r++)s[r].selected=0;else for(r=0;r&lt;s.length;r++)i=s[r],a=l.c2p(i.x),o=c.c2p(i.y),null!==i.i&amp;&amp;e.contains([a,o],!1,r,t)?(u.push({pointNumber:i.i,x:l.c2d(i.x),y:c.c2d(i.y)}),i.selected=1):i.selected=0;return u}},{&quot;./subtypes&quot;:1212}],1210:[function(t,e,r){&quot;use strict&quot;;var n=[&quot;orientation&quot;,&quot;groupnorm&quot;,&quot;stackgaps&quot;];e.exports=function(t,e,r,i){var a=r._scatterStackOpts,o=i(&quot;stackgroup&quot;);if(o){var s=e.xaxis+e.yaxis,l=a[s];l||(l=a[s]={});var c=l[o],u=!1;c?c.traces.push(e):(c=l[o]={traceIndices:[],traces:[e]},u=!0);for(var f={orientation:e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;},h=0;h&lt;n.length;h++){var p=n[h],d=p+&quot;Found&quot;;if(!c[d]){var g=void 0!==t[p],m=&quot;orientation&quot;===p;if((g||u)&amp;&amp;(c[p]=i(p,f[p]),m&amp;&amp;(c.fillDflt=&quot;h&quot;===c[p]?&quot;tonextx&quot;:&quot;tonexty&quot;),g&amp;&amp;(c[d]=!0,!u&amp;&amp;(delete c.traces[0][p],m))))for(var v=0;v&lt;c.traces.length-1;v++){var y=c.traces[v];y._input.fill!==y.fill&amp;&amp;(y.fill=c.fillDflt)}}}return c}}},{}],1211:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../registry&quot;);function o(t,e,r){i.pointStyle(t.selectAll(&quot;path.point&quot;),e,r)}function s(t,e,r){i.textPointStyle(t.selectAll(&quot;text&quot;),e,r)}e.exports={style:function(t){var e=n.select(t).selectAll(&quot;g.trace.scatter&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.selectAll(&quot;g.points&quot;).each((function(e){o(n.select(this),e.trace||e[0].trace,t)})),e.selectAll(&quot;g.text&quot;).each((function(e){s(n.select(this),e.trace||e[0].trace,t)})),e.selectAll(&quot;g.trace path.js-line&quot;).call(i.lineGroupStyle),e.selectAll(&quot;g.trace path.js-fill&quot;).call(i.fillGroupStyle),a.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(e)},stylePoints:o,styleText:s,styleOnSelect:function(t,e,r){var n=e[0].trace;n.selectedpoints?(i.selectedPointStyle(r.selectAll(&quot;path.point&quot;),n),i.selectedTextStyle(r.selectAll(&quot;text&quot;),n)):(o(r,n,t),s(r,n,t))}}},{&quot;../../components/drawing&quot;:665,&quot;../../registry&quot;:911,d3:169}],1212:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports={hasLines:function(t){return t.visible&amp;&amp;t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;lines&quot;)},hasMarkers:function(t){return t.visible&amp;&amp;(t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;markers&quot;)||&quot;splom&quot;===t.type)},hasText:function(t){return t.visible&amp;&amp;t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;text&quot;)},isBubble:function(t){return n.isPlainObject(t.marker)&amp;&amp;n.isArrayOrTypedArray(t.marker.size)}}},{&quot;../../lib&quot;:778}],1213:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r,i,a){a=a||{},i(&quot;textposition&quot;),n.coerceFont(i,&quot;textfont&quot;,r.font),a.noSelect||(i(&quot;selected.textfont.color&quot;),i(&quot;unselected.textfont.color&quot;))}},{&quot;../../lib&quot;:778}],1214:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;);e.exports=function(t,e,r,a){var o,s=a(&quot;x&quot;),l=a(&quot;y&quot;);if(i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],r),s){var c=n.minRowLength(s);l?o=Math.min(c,n.minRowLength(l)):(o=c,a(&quot;y0&quot;),a(&quot;dy&quot;))}else{if(!l)return 0;o=n.minRowLength(l),a(&quot;x0&quot;),a(&quot;dx&quot;)}return e._length=o,o}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1215:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../constants/gl3d_dashes&quot;),c=t(&quot;../../constants/gl3d_markers&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat,f=t(&quot;../../plot_api/edit_types&quot;).overrideAll,h=n.line,p=n.marker,d=p.line,g=u({width:h.width,dash:{valType:&quot;enumerated&quot;,values:Object.keys(l),dflt:&quot;solid&quot;}},i(&quot;line&quot;));var m=e.exports=f({x:n.x,y:n.y,z:{valType:&quot;data_array&quot;},text:u({},n.text,{}),texttemplate:o({},{}),hovertext:u({},n.hovertext,{}),hovertemplate:a(),mode:u({},n.mode,{dflt:&quot;lines+markers&quot;}),surfaceaxis:{valType:&quot;enumerated&quot;,values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:&quot;color&quot;},projection:{x:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}},y:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}},z:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}}},connectgaps:n.connectgaps,line:g,marker:u({symbol:{valType:&quot;enumerated&quot;,values:Object.keys(c),dflt:&quot;circle&quot;,arrayOk:!0},size:u({},p.size,{dflt:8}),sizeref:p.sizeref,sizemin:p.sizemin,sizemode:p.sizemode,opacity:u({},p.opacity,{arrayOk:!1}),colorbar:p.colorbar,line:u({width:u({},d.width,{arrayOk:!1})},i(&quot;marker.line&quot;))},i(&quot;marker&quot;)),textposition:u({},n.textposition,{dflt:&quot;top center&quot;}),textfont:{color:n.textfont.color,size:n.textfont.size,family:u({},n.textfont.family,{arrayOk:!1})},hoverinfo:u({},s.hoverinfo)},&quot;calc&quot;,&quot;nested&quot;);m.x.editType=m.y.editType=m.z.editType=&quot;calc+clearAxisTypes&quot;},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../constants/gl3d_dashes&quot;:750,&quot;../../constants/gl3d_markers&quot;:751,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1216:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/arrays_to_calcdata&quot;),i=t(&quot;../scatter/colorscale_calc&quot;);e.exports=function(t,e){var r=[{x:!1,y:!1,trace:e,t:{}}];return n(r,e),i(t,e),r}},{&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/colorscale_calc&quot;:1190}],1217:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;);function i(t,e,r,i){if(!e||!e.visible)return null;for(var a=n.getComponentMethod(&quot;errorbars&quot;,&quot;makeComputeError&quot;)(e),o=new Array(t.length),s=0;s&lt;t.length;s++){var l=a(+t[s],s);if(&quot;log&quot;===i.type){var c=i.c2l(t[s]),u=t[s]-l[0],f=t[s]+l[1];if(o[s]=[(i.c2l(u,!0)-c)*r,(i.c2l(f,!0)-c)*r],u&gt;0){var h=i.c2l(u);i._lowerLogErrorBound||(i._lowerLogErrorBound=h),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,h)}}else o[s]=[-l[0]*r,l[1]*r]}return o}e.exports=function(t,e,r){var n=[i(t.x,t.error_x,e[0],r.xaxis),i(t.y,t.error_y,e[1],r.yaxis),i(t.z,t.error_z,e[2],r.zaxis)],a=function(t){for(var e=0;e&lt;t.length;e++)if(t[e])return t[e].length;return 0}(n);if(0===a)return null;for(var o=new Array(a),s=0;s&lt;a;s++){for(var l=[[0,0,0],[0,0,0]],c=0;c&lt;3;c++)if(n[c])for(var u=0;u&lt;2;u++)l[u][c]=n[c][s][u];o[s]=l}return o}},{&quot;../../registry&quot;:911}],1218:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-line3d&quot;),i=t(&quot;gl-scatter3d&quot;),a=t(&quot;gl-error3d&quot;),o=t(&quot;gl-mesh3d&quot;),s=t(&quot;delaunay-triangulate&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;../../lib/str2rgbarray&quot;),u=t(&quot;../../lib/gl_format_color&quot;).formatColor,f=t(&quot;../scatter/make_bubble_size_func&quot;),h=t(&quot;../../constants/gl3d_dashes&quot;),p=t(&quot;../../constants/gl3d_markers&quot;),d=t(&quot;../../plots/cartesian/axes&quot;),g=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,m=t(&quot;./calc_errors&quot;);function v(t,e){this.scene=t,this.uid=e,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode=&quot;&quot;,this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var y=v.prototype;function x(t){return null==t?0:t.indexOf(&quot;left&quot;)&gt;-1?-1:t.indexOf(&quot;right&quot;)&gt;-1?1:0}function b(t){return null==t?0:t.indexOf(&quot;top&quot;)&gt;-1?-1:t.indexOf(&quot;bottom&quot;)&gt;-1?1:0}function _(t,e){return e(4*t)}function w(t){return p[t]}function T(t,e,r,n,i){var a=null;if(l.isArrayOrTypedArray(t)){a=[];for(var o=0;o&lt;e;o++)void 0===t[o]?a[o]=n:a[o]=r(t[o],i)}else a=r(t,l.identity);return a}function k(t,e){var r,n,i,a,o,s,h=[],p=t.fullSceneLayout,v=t.dataScale,y=p.xaxis,k=p.yaxis,M=p.zaxis,A=e.marker,S=e.line,E=e.x||[],C=e.y||[],L=e.z||[],I=E.length,P=e.xcalendar,z=e.ycalendar,O=e.zcalendar;for(o=0;o&lt;I;o++)r=y.d2l(E[o],0,P)*v[0],n=k.d2l(C[o],0,z)*v[1],i=M.d2l(L[o],0,O)*v[2],h[o]=[r,n,i];if(Array.isArray(e.text))s=e.text;else if(void 0!==e.text)for(s=new Array(I),o=0;o&lt;I;o++)s[o]=e.text;function D(t,e){var r=p[t];return d.tickText(r,r.d2l(e),!0).text}var R=e.texttemplate;if(R){var F=t.fullLayout._d3locale,B=Array.isArray(R),N=B?Math.min(R.length,I):I,j=B?function(t){return R[t]}:function(){return R};for(s=new Array(N),o=0;o&lt;N;o++){var U={x:E[o],y:C[o],z:L[o]},V={xLabel:D(&quot;xaxis&quot;,E[o]),yLabel:D(&quot;yaxis&quot;,C[o]),zLabel:D(&quot;zaxis&quot;,L[o])},q={};g(q,e,o);var H=e._meta||{};s[o]=l.texttemplateString(j(o),V,F,q,U,H)}}if(a={position:h,mode:e.mode,text:s},&quot;line&quot;in e&amp;&amp;(a.lineColor=u(S,1,I),a.lineWidth=S.width,a.lineDashes=S.dash),&quot;marker&quot;in e){var G=f(e);a.scatterColor=u(A,1,I),a.scatterSize=T(A.size,I,_,20,G),a.scatterMarker=T(A.symbol,I,w,&quot;\u25cf&quot;),a.scatterLineWidth=A.line.width,a.scatterLineColor=u(A.line,1,I),a.scatterAngle=0}&quot;textposition&quot;in e&amp;&amp;(a.textOffset=function(t){var e=[0,0];if(Array.isArray(t))for(var r=0;r&lt;t.length;r++)e[r]=[0,0],t[r]&amp;&amp;(e[r][0]=x(t[r]),e[r][1]=b(t[r]));else e[0]=x(t),e[1]=b(t);return e}(e.textposition),a.textColor=u(e.textfont,1,I),a.textSize=T(e.textfont.size,I,l.identity,12),a.textFont=e.textfont.family,a.textAngle=0);var Y=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(a.project=[!1,!1,!1],a.projectScale=[1,1,1],a.projectOpacity=[1,1,1],o=0;o&lt;3;++o){var W=e.projection[Y[o]];(a.project[o]=W.show)&amp;&amp;(a.projectOpacity[o]=W.opacity,a.projectScale[o]=W.scale)}a.errorBounds=m(e,v,p);var X=function(t){for(var e=[0,0,0],r=[[0,0,0],[0,0,0],[0,0,0]],n=[1,1,1],i=0;i&lt;3;i++){var a=t[i];a&amp;&amp;!1!==a.copy_zstyle&amp;&amp;!1!==t[2].visible&amp;&amp;(a=t[2]),a&amp;&amp;a.visible&amp;&amp;(e[i]=a.width/2,r[i]=c(a.color),n[i]=a.thickness)}return{capSize:e,color:r,lineWidth:n}}([e.error_x,e.error_y,e.error_z]);return a.errorColor=X.color,a.errorLineWidth=X.lineWidth,a.errorCapSize=X.capSize,a.delaunayAxis=e.surfaceaxis,a.delaunayColor=c(e.surfacecolor),a}function M(t){if(l.isArrayOrTypedArray(t)){var e=t[0];return l.isArrayOrTypedArray(e)&amp;&amp;(t=e),&quot;rgb(&quot;+t.slice(0,3).map((function(t){return Math.round(255*t)}))+&quot;)&quot;}return null}function A(t){return l.isArrayOrTypedArray(t)?4===t.length&amp;&amp;&quot;number&quot;==typeof t[0]?M(t):t.map(M):null}y.handlePick=function(t){if(t.object&amp;&amp;(t.object===this.linePlot||t.object===this.delaunayMesh||t.object===this.textMarkers||t.object===this.scatterPlot)){var e=t.index=t.data.index;return t.object.highlight&amp;&amp;t.object.highlight(null),this.scatterPlot&amp;&amp;(t.object=this.scatterPlot,this.scatterPlot.highlight(t.data)),t.textLabel=&quot;&quot;,this.textLabels&amp;&amp;(Array.isArray(this.textLabels)?(this.textLabels[e]||0===this.textLabels[e])&amp;&amp;(t.textLabel=this.textLabels[e]):t.textLabel=this.textLabels),t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]],!0}},y.update=function(t){var e,r,l,c,u=this.scene.glplot.gl,f=h.solid;this.data=t;var p=k(this.scene,t);&quot;mode&quot;in p&amp;&amp;(this.mode=p.mode),&quot;lineDashes&quot;in p&amp;&amp;p.lineDashes in h&amp;&amp;(f=h[p.lineDashes]),this.color=A(p.scatterColor)||A(p.lineColor),this.dataPoints=p.position,e={gl:this.scene.glplot.gl,position:p.position,color:p.lineColor,lineWidth:p.lineWidth||1,dashes:f[0],dashScale:f[1],opacity:t.opacity,connectGaps:t.connectgaps},-1!==this.mode.indexOf(&quot;lines&quot;)?this.linePlot?this.linePlot.update(e):(this.linePlot=n(e),this.linePlot._trace=this,this.scene.glplot.add(this.linePlot)):this.linePlot&amp;&amp;(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose(),this.linePlot=null);var d=t.opacity;if(t.marker&amp;&amp;t.marker.opacity&amp;&amp;(d*=t.marker.opacity),r={gl:this.scene.glplot.gl,position:p.position,color:p.scatterColor,size:p.scatterSize,glyph:p.scatterMarker,opacity:d,orthographic:!0,lineWidth:p.scatterLineWidth,lineColor:p.scatterLineColor,project:p.project,projectScale:p.projectScale,projectOpacity:p.projectOpacity},-1!==this.mode.indexOf(&quot;markers&quot;)?this.scatterPlot?this.scatterPlot.update(r):(this.scatterPlot=i(r),this.scatterPlot._trace=this,this.scatterPlot.highlightScale=1,this.scene.glplot.add(this.scatterPlot)):this.scatterPlot&amp;&amp;(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose(),this.scatterPlot=null),c={gl:this.scene.glplot.gl,position:p.position,glyph:p.text,color:p.textColor,size:p.textSize,angle:p.textAngle,alignment:p.textOffset,font:p.textFont,orthographic:!0,lineWidth:0,project:!1,opacity:t.opacity},this.textLabels=t.hovertext||t.text,-1!==this.mode.indexOf(&quot;text&quot;)?this.textMarkers?this.textMarkers.update(c):(this.textMarkers=i(c),this.textMarkers._trace=this,this.textMarkers.highlightScale=1,this.scene.glplot.add(this.textMarkers)):this.textMarkers&amp;&amp;(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose(),this.textMarkers=null),l={gl:this.scene.glplot.gl,position:p.position,color:p.errorColor,error:p.errorBounds,lineWidth:p.errorLineWidth,capSize:p.errorCapSize,opacity:t.opacity},this.errorBars?p.errorBounds?this.errorBars.update(l):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):p.errorBounds&amp;&amp;(this.errorBars=a(l),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),p.delaunayAxis&gt;=0){var g=function(t,e,r){var n,i=(r+1)%3,a=(r+2)%3,o=[],l=[];for(n=0;n&lt;t.length;++n){var c=t[n];!isNaN(c[i])&amp;&amp;isFinite(c[i])&amp;&amp;!isNaN(c[a])&amp;&amp;isFinite(c[a])&amp;&amp;(o.push([c[i],c[a]]),l.push(n))}var u=s(o);for(n=0;n&lt;u.length;++n)for(var f=u[n],h=0;h&lt;f.length;++h)f[h]=l[f[h]];return{positions:t,cells:u,meshColor:e}}(p.position,p.delaunayColor,p.delaunayAxis);g.opacity=t.opacity,this.delaunayMesh?this.delaunayMesh.update(g):(g.gl=u,this.delaunayMesh=o(g),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&amp;&amp;(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},y.dispose=function(){this.linePlot&amp;&amp;(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&amp;&amp;(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&amp;&amp;(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&amp;&amp;(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&amp;&amp;(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())},e.exports=function(t,e){var r=new v(t,e.uid);return r.update(e),r}},{&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/gl3d_dashes&quot;:750,&quot;../../constants/gl3d_markers&quot;:751,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/make_bubble_size_func&quot;:1204,&quot;./calc_errors&quot;:1217,&quot;delaunay-triangulate&quot;:171,&quot;gl-error3d&quot;:266,&quot;gl-line3d&quot;:275,&quot;gl-mesh3d&quot;:309,&quot;gl-scatter3d&quot;:330}],1219:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,n){return i.coerce(t,e,c,r,n)}if(function(t,e,r,i){var a=0,o=r(&quot;x&quot;),s=r(&quot;y&quot;),l=r(&quot;z&quot;);n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],i),o&amp;&amp;s&amp;&amp;l&amp;&amp;(a=Math.min(o.length,s.length,l.length),e._length=e._xlength=e._ylength=e._zlength=a);return a}(t,e,f,u)){f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),a.hasLines(e)&amp;&amp;(f(&quot;connectgaps&quot;),s(t,e,r,u,f)),a.hasMarkers(e)&amp;&amp;o(t,e,r,u,f,{noSelect:!0}),a.hasText(e)&amp;&amp;(f(&quot;texttemplate&quot;),l(t,e,u,f,{noSelect:!0}));var h=(e.line||{}).color,p=(e.marker||{}).color;f(&quot;surfaceaxis&quot;)&gt;=0&amp;&amp;f(&quot;surfacecolor&quot;,h||p);for(var d=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],g=0;g&lt;3;++g){var m=&quot;projection.&quot;+d[g];f(m+&quot;.show&quot;)&amp;&amp;(f(m+&quot;.opacity&quot;),f(m+&quot;.scale&quot;))}var v=n.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);v(t,e,h||p||r,{axis:&quot;z&quot;}),v(t,e,h||p||r,{axis:&quot;y&quot;,inherit:&quot;z&quot;}),v(t,e,h||p||r,{axis:&quot;x&quot;,inherit:&quot;z&quot;})}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1215}],1220:[function(t,e,r){&quot;use strict&quot;;e.exports={plot:t(&quot;./convert&quot;),attributes:t(&quot;./attributes&quot;),markerSymbols:t(&quot;../../constants/gl3d_markers&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:[{container:&quot;marker&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;}],calc:t(&quot;./calc&quot;),moduleType:&quot;trace&quot;,name:&quot;scatter3d&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../constants/gl3d_markers&quot;:751,&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1215,&quot;./calc&quot;:1216,&quot;./convert&quot;:1218,&quot;./defaults&quot;:1219}],1221:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=n.marker,u=n.line,f=c.line;e.exports={carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},mode:l({},n.mode,{dflt:&quot;markers&quot;}),text:l({},n.text,{}),texttemplate:o({editType:&quot;plot&quot;},{keys:[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;]}),hovertext:l({},n.hovertext,{}),line:{color:u.color,width:u.width,dash:u.dash,shape:l({},u.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:u.smoothing,editType:&quot;calc&quot;},connectgaps:n.connectgaps,fill:l({},n.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:n.fillcolor,marker:l({symbol:c.symbol,opacity:c.opacity,maxdisplayed:c.maxdisplayed,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,line:l({width:f.width,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),gradient:c.gradient,editType:&quot;calc&quot;},s(&quot;marker&quot;)),textfont:n.textfont,textposition:n.textposition,selected:n.selected,unselected:n.unselected,hoverinfo:l({},i.hoverinfo,{flags:[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:n.hoveron,hovertemplate:a()}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1222:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scatter/arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../scatter/calc&quot;).calcMarkerSize,l=t(&quot;../carpet/lookup_carpetid&quot;);e.exports=function(t,e){var r=e._carpetTrace=l(t,e);if(r&amp;&amp;r.visible&amp;&amp;&quot;legendonly&quot;!==r.visible){var c;e.xaxis=r.xaxis,e.yaxis=r.yaxis;var u,f,h=e._length,p=new Array(h),d=!1;for(c=0;c&lt;h;c++)if(u=e.a[c],f=e.b[c],n(u)&amp;&amp;n(f)){var g=r.ab2xy(+u,+f,!0),m=r.isVisible(+u,+f);m||(d=!0),p[c]={x:g[0],y:g[1],a:u,b:f,vis:m}}else p[c]={x:!1,y:!1};return e._needsCull=d,p[0].carpet=r,p[0].trace=e,s(e,h),i(t,e),a(p,e),o(p,e),p}}},{&quot;../carpet/lookup_carpetid&quot;:981,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc&quot;:1188,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1223:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/constants&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/line_shape_defaults&quot;),c=t(&quot;../scatter/text_defaults&quot;),u=t(&quot;../scatter/fillcolor_defaults&quot;),f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}p(&quot;carpet&quot;),e.xaxis=&quot;x&quot;,e.yaxis=&quot;y&quot;;var d=p(&quot;a&quot;),g=p(&quot;b&quot;),m=Math.min(d.length,g.length);if(m){e._length=m,p(&quot;text&quot;),p(&quot;texttemplate&quot;),p(&quot;hovertext&quot;),p(&quot;mode&quot;,m&lt;i.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;),a.hasLines(e)&amp;&amp;(s(t,e,r,h,p),l(t,e,p),p(&quot;connectgaps&quot;)),a.hasMarkers(e)&amp;&amp;o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&amp;&amp;c(t,e,h,p);var v=[];(a.hasMarkers(e)||a.hasText(e))&amp;&amp;(p(&quot;marker.maxdisplayed&quot;),v.push(&quot;points&quot;)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||v.push(&quot;fills&quot;),&quot;fills&quot;!==p(&quot;hoveron&quot;,v.join(&quot;+&quot;)||&quot;points&quot;)&amp;&amp;p(&quot;hovertemplate&quot;),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/line_shape_defaults&quot;:1202,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1221}],1224:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=n[i];return t.a=a.a,t.b=a.b,t.y=a.y,t}},{}],1225:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r={},n=e._carpet,i=n.ab2ij([t.a,t.b]),a=Math.floor(i[0]),o=i[0]-a,s=Math.floor(i[1]),l=i[1]-s,c=n.evalxy([],a,s,o,l);return r.yLabel=c[1].toFixed(3),r}},{}],1226:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;),i=t(&quot;../../lib&quot;).fillText;e.exports=function(t,e,r,a){var o=n(t,e,r,a);if(o&amp;&amp;!1!==o[0].index){var s=o[0];if(void 0===s.index){var l=1-s.y0/t.ya._length,c=t.xa._length,u=c*l/2,f=c-u;return s.x0=Math.max(Math.min(s.x0,f),u),s.x1=Math.max(Math.min(s.x1,f),u),o}var h=s.cd[s.index];s.a=h.a,s.b=h.b,s.xLabelVal=void 0,s.yLabelVal=void 0;var p=s.trace,d=p._carpet,g=p._module.formatLabels(h,p);s.yLabel=g.yLabel,delete s.text;var m=[];if(!p.hovertemplate){var v=(h.hi||p.hoverinfo).split(&quot;+&quot;);-1!==v.indexOf(&quot;all&quot;)&amp;&amp;(v=[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;]),-1!==v.indexOf(&quot;a&quot;)&amp;&amp;y(d.aaxis,h.a),-1!==v.indexOf(&quot;b&quot;)&amp;&amp;y(d.baxis,h.b),m.push(&quot;y: &quot;+s.yLabel),-1!==v.indexOf(&quot;text&quot;)&amp;&amp;i(h,p,m),s.extraText=m.join(&quot;&lt;br&gt;&quot;)}return o}function y(t,e){var r;r=t.labelprefix&amp;&amp;t.labelprefix.length&gt;0?t.labelprefix.replace(/ = $/,&quot;&quot;):t._hovertitle,m.push(r+&quot;: &quot;+e.toFixed(3)+t.labelsuffix)}}},{&quot;../../lib&quot;:778,&quot;../scatter/hover&quot;:1198}],1227:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../scatter/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;scattercarpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;svg&quot;,&quot;carpet&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;carpetDependent&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/select&quot;:1209,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1221,&quot;./calc&quot;:1222,&quot;./defaults&quot;:1223,&quot;./event_data&quot;:1224,&quot;./format_labels&quot;:1225,&quot;./hover&quot;:1226,&quot;./plot&quot;:1228}],1228:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../components/drawing&quot;);e.exports=function(t,e,r,o){var s,l,c,u=r[0][0].carpet,f={xaxis:i.getFromId(t,u.xaxis||&quot;x&quot;),yaxis:i.getFromId(t,u.yaxis||&quot;y&quot;),plot:e.plot};for(n(t,f,r,o),s=0;s&lt;r.length;s++)l=r[s][0].trace,c=o.selectAll(&quot;g.trace&quot;+l.uid+&quot; .js-line&quot;),a.setClipUrl(c,r[s][0].carpet._clipPathId,t)}},{&quot;../../components/drawing&quot;:665,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/plot&quot;:1208}],1229:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scatter/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../plot_api/edit_types&quot;).overrideAll,f=a.marker,h=a.line,p=f.line;e.exports=u({lon:{valType:&quot;data_array&quot;},lat:{valType:&quot;data_array&quot;},locations:{valType:&quot;data_array&quot;},locationmode:{valType:&quot;enumerated&quot;,values:[&quot;ISO-3&quot;,&quot;USA-states&quot;,&quot;country names&quot;,&quot;geojson-id&quot;],dflt:&quot;ISO-3&quot;},geojson:{valType:&quot;any&quot;,editType:&quot;calc&quot;},featureidkey:{valType:&quot;string&quot;,editType:&quot;calc&quot;,dflt:&quot;id&quot;},mode:c({},a.mode,{dflt:&quot;markers&quot;}),text:c({},a.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;lat&quot;,&quot;lon&quot;,&quot;location&quot;,&quot;text&quot;]}),hovertext:c({},a.hovertext,{}),textfont:a.textfont,textposition:a.textposition,line:{color:h.color,width:h.width,dash:l},connectgaps:a.connectgaps,marker:c({symbol:f.symbol,opacity:f.opacity,size:f.size,sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,colorbar:f.colorbar,line:c({width:p.width},s(&quot;marker.line&quot;)),gradient:f.gradient},s(&quot;marker&quot;)),fill:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;toself&quot;],dflt:&quot;none&quot;},fillcolor:a.fillcolor,selected:a.selected,unselected:a.unselected,hoverinfo:c({},o.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;location&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n()},&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing/attributes&quot;:664,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1230:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../scatter/colorscale_calc&quot;),o=t(&quot;../scatter/arrays_to_calcdata&quot;),s=t(&quot;../scatter/calc_selection&quot;),l=t(&quot;../../lib&quot;)._;function c(t){return t&amp;&amp;&quot;string&quot;==typeof t}e.exports=function(t,e){var r,u=Array.isArray(e.locations),f=u?e.locations.length:e._length,h=new Array(f);r=e.geojson?function(t){return c(t)||n(t)}:c;for(var p=0;p&lt;f;p++){var d=h[p]={};if(u){var g=e.locations[p];d.loc=r(g)?g:null}else{var m=e.lon[p],v=e.lat[p];n(m)&amp;&amp;n(v)?d.lonlat=[+m,+v]:d.lonlat=[i,i]}}return o(h,e),a(t,e),s(h,e),f&amp;&amp;(h[0].t={labels:{lat:l(t,&quot;lat:&quot;)+&quot; &quot;,lon:l(t,&quot;lon:&quot;)+&quot; &quot;}}),h}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1231:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/text_defaults&quot;),l=t(&quot;../scatter/fillcolor_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}var h,p=f(&quot;locations&quot;);if(p&amp;&amp;p.length){var d,g=f(&quot;geojson&quot;);(&quot;string&quot;==typeof g&amp;&amp;&quot;&quot;!==g||n.isPlainObject(g))&amp;&amp;(d=&quot;geojson-id&quot;),&quot;geojson-id&quot;===f(&quot;locationmode&quot;,d)&amp;&amp;f(&quot;featureidkey&quot;),h=p.length}else{var m=f(&quot;lon&quot;)||[],v=f(&quot;lat&quot;)||[];h=Math.min(m.length,v.length)}h?(e._length=h,f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,u,f),f(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;a(t,e,r,u,f,{gradient:!0}),i.hasText(e)&amp;&amp;(f(&quot;texttemplate&quot;),s(t,e,u,f)),f(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1229}],1232:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){t.lon=e.lon,t.lat=e.lat,t.location=e.loc?e.loc:null;var a=n[i];return a.fIn&amp;&amp;a.fIn.properties&amp;&amp;(t.properties=a.fIn.properties),t}},{}],1233:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.geo]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=n.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=n.tickText(a,a.c2l(o[1]),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1234:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../scatter/get_trace_color&quot;),o=t(&quot;../../lib&quot;).fillText,s=t(&quot;./attributes&quot;);e.exports=function(t,e,r){var l=t.cd,c=l[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=h.projection.isLonLatOverEdges,d=h.project;if(n.getClosest(l,(function(t){var n=t.lonlat;if(n[0]===i)return 1/0;if(p(n))return 1/0;var a=d(n),o=d([e,r]),s=Math.abs(a[0]-o[0]),l=Math.abs(a[1]-o[1]),c=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(s*s+l*l)-c,1-3/c)}),t),!1!==t.index){var g=l[t.index],m=g.lonlat,v=[u.c2p(m),f.c2p(m)],y=g.mrc||1;t.x0=v[0]-y,t.x1=v[0]+y,t.y0=v[1]-y,t.y1=v[1]+y,t.loc=g.loc,t.lon=m[0],t.lat=m[1];var x={};x[c.geo]={_subplot:h};var b=c._module.formatLabels(g,c,x);return t.lonLabel=b.lonLabel,t.latLabel=b.latLabel,t.color=a(c,g),t.extraText=function(t,e,r,n){if(t.hovertemplate)return;var i=e.hi||t.hoverinfo,a=&quot;all&quot;===i?s.hoverinfo.flags:i.split(&quot;+&quot;),l=-1!==a.indexOf(&quot;location&quot;)&amp;&amp;Array.isArray(t.locations),c=-1!==a.indexOf(&quot;lon&quot;),u=-1!==a.indexOf(&quot;lat&quot;),f=-1!==a.indexOf(&quot;text&quot;),h=[];function p(t){return t+&quot;\xb0&quot;}l?h.push(e.loc):c&amp;&amp;u?h.push(&quot;(&quot;+p(r.lonLabel)+&quot;, &quot;+p(r.latLabel)+&quot;)&quot;):c?h.push(n.lon+p(r.lonLabel)):u&amp;&amp;h.push(n.lat+p(r.latLabel));f&amp;&amp;o(e,t,h);return h.join(&quot;&lt;br&gt;&quot;)}(c,g,t,l[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}}},{&quot;../../components/fx&quot;:683,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/get_trace_color&quot;:1197,&quot;./attributes&quot;:1229}],1235:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),calcGeoJSON:t(&quot;./plot&quot;).calcGeoJSON,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;scattergeo&quot;,basePlotModule:t(&quot;../../plots/geo&quot;),categories:[&quot;geo&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/geo&quot;:860,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1229,&quot;./calc&quot;:1230,&quot;./defaults&quot;:1231,&quot;./event_data&quot;:1232,&quot;./format_labels&quot;:1233,&quot;./hover&quot;:1234,&quot;./plot&quot;:1236,&quot;./select&quot;:1237,&quot;./style&quot;:1238}],1236:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/topojson_utils&quot;).getTopojsonFeatures,o=t(&quot;../../lib/geojson_utils&quot;),s=t(&quot;../../lib/geo_location_utils&quot;),l=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,c=t(&quot;../../constants/numerical&quot;).BADNUM,u=t(&quot;../scatter/calc&quot;).calcMarkerSize,f=t(&quot;../scatter/subtypes&quot;),h=t(&quot;./style&quot;);e.exports={calcGeoJSON:function(t,e){var r,n,i=t[0].trace,o=e[i.geo],f=o._subplot,h=i._length;if(Array.isArray(i.locations)){var p=i.locationmode,d=&quot;geojson-id&quot;===p?s.extractTraceFeature(t):a(i,f.topojson);for(r=0;r&lt;h;r++){n=t[r];var g=&quot;geojson-id&quot;===p?n.fOut:s.locationToFeature(p,n.loc,d);n.lonlat=g?g.properties.ct:[c,c]}}var m,v,y={padded:!0};if(&quot;geojson&quot;===o.fitbounds&amp;&amp;&quot;geojson-id&quot;===i.locationmode){var x=s.computeBbox(s.getTraceGeojson(i));m=[x[0],x[2]],v=[x[1],x[3]]}else{for(m=new Array(h),v=new Array(h),r=0;r&lt;h;r++)n=t[r],m[r]=n.lonlat[0],v[r]=n.lonlat[1];y.ppad=u(i,h)}i._extremes.lon=l(o.lonaxis._ax,m,y),i._extremes.lat=l(o.lataxis._ax,v,y)},plot:function(t,e,r){var a=e.layers.frontplot.select(&quot;.scatterlayer&quot;),s=i.makeTraceGroups(a,r,&quot;trace scattergeo&quot;);function l(t,e){t.lonlat[0]===c&amp;&amp;n.select(e).remove()}s.selectAll(&quot;*&quot;).remove(),s.each((function(e){var r=n.select(this),a=e[0].trace;if(f.hasLines(a)||&quot;none&quot;!==a.fill){var s=o.calcTraceToLineCoords(e),c=&quot;none&quot;!==a.fill?o.makePolygon(s):o.makeLine(s);r.selectAll(&quot;path.js-line&quot;).data([{geojson:c,trace:a}]).enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0).style(&quot;stroke-miterlimit&quot;,2)}f.hasMarkers(a)&amp;&amp;r.selectAll(&quot;path.point&quot;).data(i.identity).enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0).each((function(t){l(t,this)})),f.hasText(a)&amp;&amp;r.selectAll(&quot;g&quot;).data(i.identity).enter().append(&quot;g&quot;).append(&quot;text&quot;).each((function(t){l(t,this)})),h(t,e)}))}}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/geojson_utils&quot;:772,&quot;../../lib/topojson_utils&quot;:806,&quot;../../plots/cartesian/autorange&quot;:827,&quot;../scatter/calc&quot;:1188,&quot;../scatter/subtypes&quot;:1212,&quot;./style&quot;:1238,d3:169}],1237:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/subtypes&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e){var r,a,o,s,l,c=t.cd,u=t.xaxis,f=t.yaxis,h=[],p=c[0].trace;if(!n.hasMarkers(p)&amp;&amp;!n.hasText(p))return[];if(!1===e)for(l=0;l&lt;c.length;l++)c[l].selected=0;else for(l=0;l&lt;c.length;l++)(a=(r=c[l]).lonlat)[0]!==i&amp;&amp;(o=u.c2p(a),s=f.c2p(a),e.contains([o,s],null,l,t)?(h.push({pointNumber:l,lon:a[0],lat:a[1]}),r.selected=1):r.selected=0);return h}},{&quot;../../constants/numerical&quot;:753,&quot;../scatter/subtypes&quot;:1212}],1238:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../scatter/style&quot;),s=o.stylePoints,l=o.styleText;e.exports=function(t,e){e&amp;&amp;function(t,e){var r=e[0].trace,o=e[0].node3;o.style(&quot;opacity&quot;,e[0].trace.opacity),s(o,r,t),l(o,r,t),o.selectAll(&quot;path.js-line&quot;).style(&quot;fill&quot;,&quot;none&quot;).each((function(t){var e=n.select(this),r=t.trace,o=r.line||{};e.call(a.stroke,o.color).call(i.dashLine,o.dash||&quot;&quot;,o.width||0),&quot;none&quot;!==r.fill&amp;&amp;e.call(a.fill,r.fillcolor)}))}(t,e)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../scatter/style&quot;:1211,d3:169}],1239:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/edit_types&quot;).overrideAll,l=t(&quot;./constants&quot;).DASHES,c=i.line,u=i.marker,f=u.line,h=e.exports=s({x:i.x,x0:i.x0,dx:i.dx,y:i.y,y0:i.y0,dy:i.dy,xperiod:i.xperiod,yperiod:i.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:i.xperiodalignment,yperiodalignment:i.yperiodalignment,text:i.text,hovertext:i.hovertext,textposition:i.textposition,textfont:i.textfont,mode:{valType:&quot;flaglist&quot;,flags:[&quot;lines&quot;,&quot;markers&quot;,&quot;text&quot;],extras:[&quot;none&quot;]},line:{color:c.color,width:c.width,shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},dash:{valType:&quot;enumerated&quot;,values:Object.keys(l),dflt:&quot;solid&quot;}},marker:o({},a(&quot;marker&quot;),{symbol:u.symbol,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,opacity:u.opacity,colorbar:u.colorbar,line:o({},a(&quot;marker.line&quot;),{width:f.width})}),connectgaps:i.connectgaps,fill:o({},i.fill,{dflt:&quot;none&quot;}),fillcolor:i.fillcolor,selected:{marker:i.selected.marker,textfont:i.selected.textfont},unselected:{marker:i.unselected.marker,textfont:i.unselected.textfont},opacity:n.opacity},&quot;calc&quot;,&quot;nested&quot;);h.x.editType=h.y.editType=h.x0.editType=h.y0.editType=&quot;calc+clearAxisTypes&quot;,h.hovertemplate=i.hovertemplate,h.texttemplate=i.texttemplate},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:1241}],1240:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/point-cluster&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,s=t(&quot;../../plots/cartesian/align_period&quot;),l=t(&quot;../scatter/calc&quot;),c=l.calcMarkerSize,u=l.calcAxisExpansion,f=l.setFirstScatter,h=t(&quot;../scatter/colorscale_calc&quot;),p=t(&quot;./convert&quot;),d=t(&quot;./scene_update&quot;),g=t(&quot;../../constants/numerical&quot;).BADNUM,m=t(&quot;./constants&quot;).TOO_MANY_POINTS;function v(t,e,r){var n=t._extremes[e._id],i=o(e,r._bnds,{padded:!0});n.min=n.min.concat(i.min),n.max=n.max.concat(i.max)}e.exports=function(t,e){var r,o,l,y=t._fullLayout,x=a.getFromId(t,e.xaxis),b=a.getFromId(t,e.yaxis),_=y._plots[e.xaxis+e.yaxis],w=e._length,T=w&gt;=m,k=2*w,M={},A=x.makeCalcdata(e,&quot;x&quot;),S=b.makeCalcdata(e,&quot;y&quot;),E=s(e,x,&quot;x&quot;,A),C=s(e,b,&quot;y&quot;,S);e._x=E,e._y=C,e.xperiodalignment&amp;&amp;(e._origX=A),e.yperiodalignment&amp;&amp;(e._origY=S);var L=new Array(k);for(r=0;r&lt;w;r++)o=E[r],l=C[r],L[2*r]=o===g?NaN:o,L[2*r+1]=l===g?NaN:l;if(&quot;log&quot;===x.type)for(r=0;r&lt;k;r+=2)L[r]=x.c2l(L[r]);if(&quot;log&quot;===b.type)for(r=1;r&lt;k;r+=2)L[r]=b.c2l(L[r]);if(T&amp;&amp;&quot;log&quot;!==x.type&amp;&amp;&quot;log&quot;!==b.type)M.tree=n(L);else{var I=M.ids=new Array(w);for(r=0;r&lt;w;r++)I[r]=r}h(t,e);var P,z=function(t,e,r,n,a,o){var s=p.style(t,r);s.marker&amp;&amp;(s.marker.positions=n);s.line&amp;&amp;n.length&gt;1&amp;&amp;i.extendFlat(s.line,p.linePositions(t,r,n));if(s.errorX||s.errorY){var l=p.errorBarPositions(t,r,n,a,o);s.errorX&amp;&amp;i.extendFlat(s.errorX,l.x),s.errorY&amp;&amp;i.extendFlat(s.errorY,l.y)}s.text&amp;&amp;(i.extendFlat(s.text,{positions:n},p.textPosition(t,r,s.text,s.marker)),i.extendFlat(s.textSel,{positions:n},p.textPosition(t,r,s.text,s.markerSel)),i.extendFlat(s.textUnsel,{positions:n},p.textPosition(t,r,s.text,s.markerUnsel)));return s}(t,0,e,L,E,C),O=d(t,_);return f(y,e),T?z.marker&amp;&amp;(P=2*(z.marker.sizeAvg||Math.max(z.marker.size,3))):P=c(e,w),u(t,e,x,b,E,C,P),z.errorX&amp;&amp;v(e,x,z.errorX),z.errorY&amp;&amp;v(e,b,z.errorY),z.fill&amp;&amp;!O.fill2d&amp;&amp;(O.fill2d=!0),z.marker&amp;&amp;!O.scatter2d&amp;&amp;(O.scatter2d=!0),z.line&amp;&amp;!O.line2d&amp;&amp;(O.line2d=!0),!z.errorX&amp;&amp;!z.errorY||O.error2d||(O.error2d=!0),z.text&amp;&amp;!O.glText&amp;&amp;(O.glText=!0),z.marker&amp;&amp;(z.marker.snap=w),O.lineOptions.push(z.line),O.errorXOptions.push(z.errorX),O.errorYOptions.push(z.errorY),O.fillOptions.push(z.fill),O.markerOptions.push(z.marker),O.markerSelectedOptions.push(z.markerSel),O.markerUnselectedOptions.push(z.markerUnsel),O.textOptions.push(z.text),O.textSelectedOptions.push(z.textSel),O.textUnselectedOptions.push(z.textUnsel),O.selectBatch.push([]),O.unselectBatch.push([]),M._scene=O,M.index=O.count,M.x=E,M.y=C,M.positions=L,O.count++,[{x:!1,y:!1,t:M,trace:e}]}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/autorange&quot;:827,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../scatter/calc&quot;:1188,&quot;../scatter/colorscale_calc&quot;:1190,&quot;./constants&quot;:1241,&quot;./convert&quot;:1242,&quot;./scene_update&quot;:1250,&quot;@plotly/point-cluster&quot;:57}],1241:[function(t,e,r){&quot;use strict&quot;;e.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:20,SYMBOL_STROKE:1,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},{}],1242:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;svg-path-sdf&quot;),a=t(&quot;color-normalize&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../plots/cartesian/axis_ids&quot;),u=t(&quot;../../lib/gl_format_color&quot;).formatColor,f=t(&quot;../scatter/subtypes&quot;),h=t(&quot;../scatter/make_bubble_size_func&quot;),p=t(&quot;./helpers&quot;),d=t(&quot;./constants&quot;),g=t(&quot;../../constants/interactions&quot;).DESELECTDIM,m={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},v=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue;function y(t,e){var r,i=t._fullLayout,a=e._length,o=e.textfont,l=e.textposition,c=Array.isArray(l)?l:[l],u=o.color,f=o.size,h=o.family,p={},d=e.texttemplate;if(d){p.text=[];var g=i._d3locale,m=Array.isArray(d),y=m?Math.min(d.length,a):a,x=m?function(t){return d[t]}:function(){return d};for(r=0;r&lt;y;r++){var b={i:r},_=e._module.formatLabels(b,e,i),w={};v(w,e,r);var T=e._meta||{};p.text.push(s.texttemplateString(x(r),_,g,w,b,T))}}else Array.isArray(e.text)&amp;&amp;e.text.length&lt;a?p.text=e.text.slice():p.text=e.text;if(Array.isArray(p.text))for(r=p.text.length;r&lt;a;r++)p.text[r]=&quot;&quot;;for(p.opacity=e.opacity,p.font={},p.align=[],p.baseline=[],r=0;r&lt;c.length;r++){var k=c[r].split(/\s+/);switch(k[1]){case&quot;left&quot;:p.align.push(&quot;right&quot;);break;case&quot;right&quot;:p.align.push(&quot;left&quot;);break;default:p.align.push(k[1])}switch(k[0]){case&quot;top&quot;:p.baseline.push(&quot;bottom&quot;);break;case&quot;bottom&quot;:p.baseline.push(&quot;top&quot;);break;default:p.baseline.push(k[0])}}if(Array.isArray(u))for(p.color=new Array(a),r=0;r&lt;a;r++)p.color[r]=u[r];else p.color=u;if(s.isArrayOrTypedArray(f)||Array.isArray(h))for(p.font=new Array(a),r=0;r&lt;a;r++){var M=p.font[r]={};M.size=s.isTypedArray(f)?f[r]:Array.isArray(f)?n(f[r])?f[r]:0:f,M.family=Array.isArray(h)?h[r]:h}else p.font={size:f,family:h};return p}function x(t){var e,r,n=t._length,i=t.marker,o={},l=s.isArrayOrTypedArray(i.symbol),c=s.isArrayOrTypedArray(i.color),f=s.isArrayOrTypedArray(i.line.color),d=s.isArrayOrTypedArray(i.opacity),g=s.isArrayOrTypedArray(i.size),m=s.isArrayOrTypedArray(i.line.width);if(l||(r=p.isOpenSymbol(i.symbol)),l||c||f||d){o.colors=new Array(n),o.borderColors=new Array(n);var v=u(i,i.opacity,n),y=u(i.line,i.opacity,n);if(!Array.isArray(y[0])){var x=y;for(y=Array(n),e=0;e&lt;n;e++)y[e]=x}if(!Array.isArray(v[0])){var b=v;for(v=Array(n),e=0;e&lt;n;e++)v[e]=b}for(o.colors=v,o.borderColors=y,e=0;e&lt;n;e++){if(l){var _=i.symbol[e];r=p.isOpenSymbol(_)}r&amp;&amp;(y[e]=v[e].slice(),v[e]=v[e].slice(),v[e][3]=0)}o.opacity=t.opacity}else r?(o.color=a(i.color,&quot;uint8&quot;),o.color[3]=0,o.borderColor=a(i.color,&quot;uint8&quot;)):(o.color=a(i.color,&quot;uint8&quot;),o.borderColor=a(i.line.color,&quot;uint8&quot;)),o.opacity=t.opacity*i.opacity;if(l)for(o.markers=new Array(n),e=0;e&lt;n;e++)o.markers[e]=E(i.symbol[e]);else o.marker=E(i.symbol);var w,T=h(t);if(g||m){var k,M=o.sizes=new Array(n),A=o.borderSizes=new Array(n),S=0;if(g){for(e=0;e&lt;n;e++)M[e]=T(i.size[e]),S+=M[e];k=S/n}else for(w=T(i.size),e=0;e&lt;n;e++)M[e]=w;if(m)for(e=0;e&lt;n;e++)A[e]=i.line.width[e]/2;else for(w=i.line.width/2,e=0;e&lt;n;e++)A[e]=w;o.sizeAvg=k}else o.size=T(i&amp;&amp;i.size||10),o.borderSizes=T(i.line.width);return o}function b(t,e){var r=t.marker,n={};return e?(e.marker&amp;&amp;e.marker.symbol?n=x(s.extendFlat({},r,e.marker)):e.marker&amp;&amp;(e.marker.size&amp;&amp;(n.size=e.marker.size/2),e.marker.color&amp;&amp;(n.colors=e.marker.color),void 0!==e.marker.opacity&amp;&amp;(n.opacity=e.marker.opacity)),n):n}function _(t,e,r){var n={};if(!r)return n;if(r.textfont){var i={opacity:1,text:e.text,texttemplate:e.texttemplate,textposition:e.textposition,textfont:s.extendFlat({},e.textfont)};r.textfont&amp;&amp;s.extendFlat(i.textfont,r.textfont),n=y(t,i)}return n}function w(t,e){var r={capSize:2*e.width,lineWidth:e.thickness,color:e.color};return e.copy_ystyle&amp;&amp;(r=t.error_y),r}var T=d.SYMBOL_SDF_SIZE,k=d.SYMBOL_SIZE,M=d.SYMBOL_STROKE,A={},S=l.symbolFuncs[0](.05*k);function E(t){if(&quot;circle&quot;===t)return null;var e,r,n=l.symbolNumber(t),a=l.symbolFuncs[n%100],o=!!l.symbolNoDot[n%100],s=!!l.symbolNoFill[n%100],c=p.isDotSymbol(t);return A[t]?A[t]:(e=c&amp;&amp;!o?a(1.1*k)+S:a(k),r=i(e,{w:T,h:T,viewBox:[-k,-k,k,k],stroke:s?M:-M}),A[t]=r,r||null)}e.exports={style:function(t,e){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0};if(!0!==e.visible)return n;if(f.hasText(e)&amp;&amp;(n.text=y(t,e),n.textSel=_(t,e,e.selected),n.textUnsel=_(t,e,e.unselected)),f.hasMarkers(e)&amp;&amp;(n.marker=x(e),n.markerSel=b(e,e.selected),n.markerUnsel=b(e,e.unselected),!e.unselected&amp;&amp;s.isArrayOrTypedArray(e.marker.opacity))){var i=e.marker.opacity;for(n.markerUnsel.opacity=new Array(i.length),r=0;r&lt;i.length;r++)n.markerUnsel.opacity[r]=g*i[r]}if(f.hasLines(e)){n.line={overlay:!0,thickness:e.line.width,color:e.line.color,opacity:e.opacity};var a=(d.DASHES[e.line.dash]||[1]).slice();for(r=0;r&lt;a.length;++r)a[r]*=e.line.width;n.line.dashes=a}return e.error_x&amp;&amp;e.error_x.visible&amp;&amp;(n.errorX=w(e,e.error_x)),e.error_y&amp;&amp;e.error_y.visible&amp;&amp;(n.errorY=w(e,e.error_y)),e.fill&amp;&amp;&quot;none&quot;!==e.fill&amp;&amp;(n.fill={closed:!0,fill:e.fillcolor,thickness:0}),n},markerStyle:x,markerSelection:b,linePositions:function(t,e,r){var n,i,a=r.length,o=a/2;if(f.hasLines(e)&amp;&amp;o)if(&quot;hv&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i+2],r[2*i+1]));n.push(r[a-2],r[a-1])}else if(&quot;hvh&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var s=(r[2*i]+r[2*i+2])/2;n.push(r[2*i],r[2*i+1],s,r[2*i+1],s,r[2*i+3])}n.push(r[a-2],r[a-1])}else if(&quot;vhv&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var l=(r[2*i+1]+r[2*i+3])/2;n.push(r[2*i],r[2*i+1],r[2*i],l,r[2*i+2],l)}n.push(r[a-2],r[a-1])}else if(&quot;vh&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+3]));n.push(r[a-2],r[a-1])}else n=r;var c=!1;for(i=0;i&lt;n.length;i++)if(isNaN(n[i])){c=!0;break}var u=c||n.length&gt;d.TOO_MANY_POINTS||f.hasMarkers(e)?&quot;rect&quot;:&quot;round&quot;;if(c&amp;&amp;e.connectgaps){var h=n[0],p=n[1];for(i=0;i&lt;n.length;i+=2)isNaN(n[i])||isNaN(n[i+1])?(n[i]=h,n[i+1]=p):(h=n[i],p=n[i+1])}return{join:u,positions:n}},errorBarPositions:function(t,e,r,i,a){var s=o.getComponentMethod(&quot;errorbars&quot;,&quot;makeComputeError&quot;),l=c.getFromId(t,e.xaxis),u=c.getFromId(t,e.yaxis),f=r.length/2,h={};function p(t,i){var a=i._id.charAt(0),o=e[&quot;error_&quot;+a];if(o&amp;&amp;o.visible&amp;&amp;(&quot;linear&quot;===i.type||&quot;log&quot;===i.type)){for(var l=s(o),c={x:0,y:1}[a],u={x:[0,1,2,3],y:[2,3,0,1]}[a],p=new Float64Array(4*f),d=1/0,g=-1/0,m=0,v=0;m&lt;f;m++,v+=4){var y=t[m];if(n(y)){var x=r[2*m+c],b=l(y,m),_=b[0],w=b[1];if(n(_)&amp;&amp;n(w)){var T=y-_,k=y+w;p[v+u[0]]=x-i.c2l(T),p[v+u[1]]=i.c2l(k)-x,p[v+u[2]]=0,p[v+u[3]]=0,d=Math.min(d,y-_),g=Math.max(g,y+w)}}}h[a]={positions:r,errors:p,_bnds:[d,g]}}}return p(i,l),p(a,u),h},textPosition:function(t,e,r,n){var i,a=e._length,o={};if(f.hasMarkers(e)){var s=r.font,l=r.align,c=r.baseline;for(o.offset=new Array(a),i=0;i&lt;a;i++){var u=n.sizes?n.sizes[i]:n.size,h=Array.isArray(s)?s[i].size:s.size,p=Array.isArray(l)?l.length&gt;1?l[i]:l[0]:l,d=Array.isArray(c)?c.length&gt;1?c[i]:c[0]:c,g=m[p],v=m[d],y=u?u/.8+1:0,x=-v*y-.5*v;o.offset[i]=[g*y/h,x/h]}}return o}}},{&quot;../../components/drawing&quot;:665,&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/interactions&quot;:752,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../registry&quot;:911,&quot;../scatter/make_bubble_size_func&quot;:1204,&quot;../scatter/subtypes&quot;:1212,&quot;./constants&quot;:1241,&quot;./helpers&quot;:1246,&quot;color-normalize&quot;:125,&quot;fast-isnumeric&quot;:241,&quot;svg-path-sdf&quot;:574}],1243:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./helpers&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../scatter/constants&quot;),l=t(&quot;../scatter/subtypes&quot;),c=t(&quot;../scatter/xy_defaults&quot;),u=t(&quot;../scatter/period_defaults&quot;),f=t(&quot;../scatter/marker_defaults&quot;),h=t(&quot;../scatter/line_defaults&quot;),p=t(&quot;../scatter/fillcolor_defaults&quot;),d=t(&quot;../scatter/text_defaults&quot;);e.exports=function(t,e,r,g){function m(r,i){return n.coerce(t,e,o,r,i)}var v=!!t.marker&amp;&amp;a.isOpenSymbol(t.marker.symbol),y=l.isBubble(t),x=c(t,e,g,m);if(x){u(t,e,g,m);var b=x&lt;s.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;;m(&quot;text&quot;),m(&quot;hovertext&quot;),m(&quot;hovertemplate&quot;),m(&quot;mode&quot;,b),l.hasLines(e)&amp;&amp;(m(&quot;connectgaps&quot;),h(t,e,r,g,m),m(&quot;line.shape&quot;)),l.hasMarkers(e)&amp;&amp;(f(t,e,r,g,m),m(&quot;marker.line.width&quot;,v||y?1:0)),l.hasText(e)&amp;&amp;(m(&quot;texttemplate&quot;),d(t,e,g,m));var _=(e.line||{}).color,w=(e.marker||{}).color;m(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;p(t,e,r,m);var T=i.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);T(t,e,_||w||r,{axis:&quot;y&quot;}),T(t,e,_||w||r,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,m)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:1239,&quot;./helpers&quot;:1246}],1244:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../constants/interactions&quot;).DESELECTDIM;e.exports={styleTextSelection:function(t){var e,r,o=t[0],s=o.trace,l=o.t,c=l._scene,u=l.index,f=c.selectBatch[u],h=c.unselectBatch[u],p=c.textOptions[u],d=c.textSelectedOptions[u]||{},g=c.textUnselectedOptions[u]||{},m=n.extendFlat({},p);if(f.length||h.length){var v=d.color,y=g.color,x=p.color,b=Array.isArray(x);for(m.color=new Array(s._length),e=0;e&lt;f.length;e++)r=f[e],m.color[r]=v||(b?x[r]:x);for(e=0;e&lt;h.length;e++){r=h[e];var _=b?x[r]:x;m.color[r]=y||(v?_:i.addOpacity(_,a))}}c.glText[u].update(m)}}},{&quot;../../components/color&quot;:643,&quot;../../constants/interactions&quot;:752,&quot;../../lib&quot;:778}],1245:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/format_labels&quot;);e.exports=function(t,e,r){var i=t.i;return&quot;x&quot;in t||(t.x=e._x[i]),&quot;y&quot;in t||(t.y=e._y[i]),n(t,e,r)}},{&quot;../scatter/format_labels&quot;:1196}],1246:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);r.isOpenSymbol=function(t){return&quot;string&quot;==typeof t?n.OPEN_RE.test(t):t%200&gt;100},r.isDotSymbol=function(t){return&quot;string&quot;==typeof t?n.DOT_RE.test(t):t&gt;200}},{&quot;./constants&quot;:1241}],1247:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/get_trace_color&quot;);function o(t,e,r,o){var s=t.xa,l=t.ya,c=t.distance,u=t.dxy,f=t.index,h={pointNumber:f,x:e[f],y:r[f]};h.tx=Array.isArray(o.text)?o.text[f]:o.text,h.htx=Array.isArray(o.hovertext)?o.hovertext[f]:o.hovertext,h.data=Array.isArray(o.customdata)?o.customdata[f]:o.customdata,h.tp=Array.isArray(o.textposition)?o.textposition[f]:o.textposition;var p=o.textfont;p&amp;&amp;(h.ts=i.isArrayOrTypedArray(p.size)?p.size[f]:p.size,h.tc=Array.isArray(p.color)?p.color[f]:p.color,h.tf=Array.isArray(p.family)?p.family[f]:p.family);var d=o.marker;d&amp;&amp;(h.ms=i.isArrayOrTypedArray(d.size)?d.size[f]:d.size,h.mo=i.isArrayOrTypedArray(d.opacity)?d.opacity[f]:d.opacity,h.mx=i.isArrayOrTypedArray(d.symbol)?d.symbol[f]:d.symbol,h.mc=i.isArrayOrTypedArray(d.color)?d.color[f]:d.color);var g=d&amp;&amp;d.line;g&amp;&amp;(h.mlc=Array.isArray(g.color)?g.color[f]:g.color,h.mlw=i.isArrayOrTypedArray(g.width)?g.width[f]:g.width);var m=d&amp;&amp;d.gradient;m&amp;&amp;&quot;none&quot;!==m.type&amp;&amp;(h.mgt=Array.isArray(m.type)?m.type[f]:m.type,h.mgc=Array.isArray(m.color)?m.color[f]:m.color);var v=s.c2p(h.x,!0),y=l.c2p(h.y,!0),x=h.mrc||1,b=o.hoverlabel;b&amp;&amp;(h.hbg=Array.isArray(b.bgcolor)?b.bgcolor[f]:b.bgcolor,h.hbc=Array.isArray(b.bordercolor)?b.bordercolor[f]:b.bordercolor,h.hts=i.isArrayOrTypedArray(b.font.size)?b.font.size[f]:b.font.size,h.htc=Array.isArray(b.font.color)?b.font.color[f]:b.font.color,h.htf=Array.isArray(b.font.family)?b.font.family[f]:b.font.family,h.hnl=i.isArrayOrTypedArray(b.namelength)?b.namelength[f]:b.namelength);var _=o.hoverinfo;_&amp;&amp;(h.hi=Array.isArray(_)?_[f]:_);var w=o.hovertemplate;w&amp;&amp;(h.ht=Array.isArray(w)?w[f]:w);var T={};T[t.index]=h;var k=o._origX,M=o._origY,A=i.extendFlat({},t,{color:a(o,h),x0:v-x,x1:v+x,xLabelVal:k?k[f]:h.x,y0:y-x,y1:y+x,yLabelVal:M?M[f]:h.y,cd:T,distance:c,spikeDistance:u,hovertemplate:h.ht});return h.htx?A.text=h.htx:h.tx?A.text=h.tx:o.text&amp;&amp;(A.text=o.text),i.fillText(h,o,A),n.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(h,o,A),A}e.exports={hoverPoints:function(t,e,r,n){var i,a,s,l,c,u,f,h,p,d=t.cd,g=d[0].t,m=d[0].trace,v=t.xa,y=t.ya,x=g.x,b=g.y,_=v.c2p(e),w=y.c2p(r),T=t.distance;if(g.tree){var k=v.p2c(_-T),M=v.p2c(_+T),A=y.p2c(w-T),S=y.p2c(w+T);i=&quot;x&quot;===n?g.tree.range(Math.min(k,M),Math.min(y._rl[0],y._rl[1]),Math.max(k,M),Math.max(y._rl[0],y._rl[1])):g.tree.range(Math.min(k,M),Math.min(A,S),Math.max(k,M),Math.max(A,S))}else i=g.ids;var E=T;if(&quot;x&quot;===n)for(c=0;c&lt;i.length;c++)s=x[i[c]],(u=Math.abs(v.c2p(s)-_))&lt;E&amp;&amp;(E=u,f=y.c2p(b[i[c]])-w,p=Math.sqrt(u*u+f*f),a=i[c]);else for(c=i.length-1;c&gt;-1;c--)s=x[i[c]],l=b[i[c]],u=v.c2p(s)-_,f=y.c2p(l)-w,(h=Math.sqrt(u*u+f*f))&lt;E&amp;&amp;(E=p=h,a=i[c]);return t.index=a,t.distance=E,t.dxy=p,void 0===a?[t]:[o(t,x,b,m)]},calcHover:o}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../scatter/get_trace_color&quot;:1197}],1248:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./hover&quot;);e.exports={moduleType:&quot;trace&quot;,name:&quot;scattergl&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;cartesian&quot;,&quot;symbols&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../scatter/cross_trace_defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:n.hoverPoints,selectPoints:t(&quot;./select&quot;),meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../scatter/cross_trace_defaults&quot;:1193,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1239,&quot;./calc&quot;:1240,&quot;./defaults&quot;:1243,&quot;./format_labels&quot;:1245,&quot;./hover&quot;:1247,&quot;./plot&quot;:1249,&quot;./select&quot;:1251}],1249:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-scatter2d&quot;),i=t(&quot;regl-line2d&quot;),a=t(&quot;regl-error2d&quot;),o=t(&quot;gl-text&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../components/dragelement/helpers&quot;).selectMode,c=t(&quot;../../lib/prepare_regl&quot;),u=t(&quot;../scatter/subtypes&quot;),f=t(&quot;../scatter/link_traces&quot;),h=t(&quot;./edit_style&quot;).styleTextSelection;function p(t,e,r){var n=t._size,i=t.width,a=t.height;return[n.l+e.domain[0]*n.w,n.b+r.domain[0]*n.h,i-n.r-(1-e.domain[1])*n.w,a-n.t-(1-r.domain[1])*n.h]}e.exports=function(t,e,r){if(r.length){var d,g,m=t._fullLayout,v=e._scene,y=e.xaxis,x=e.yaxis;if(v)if(c(t,[&quot;ANGLE_instanced_arrays&quot;,&quot;OES_element_index_uint&quot;])){var b=v.count,_=m._glcanvas.data()[0].regl;if(f(t,e,r),v.dirty){if(!0===v.error2d&amp;&amp;(v.error2d=a(_)),!0===v.line2d&amp;&amp;(v.line2d=i(_)),!0===v.scatter2d&amp;&amp;(v.scatter2d=n(_,{constPointSize:!0})),!0===v.fill2d&amp;&amp;(v.fill2d=i(_)),!0===v.glText)for(v.glText=new Array(b),d=0;d&lt;b;d++)v.glText[d]=new o(_);if(v.glText){if(b&gt;v.glText.length){var w=b-v.glText.length;for(d=0;d&lt;w;d++)v.glText.push(new o(_))}else if(b&lt;v.glText.length){var T=v.glText.length-b;v.glText.splice(b,T).forEach((function(t){t.destroy()}))}for(d=0;d&lt;b;d++)v.glText[d].update(v.textOptions[d])}if(v.line2d&amp;&amp;(v.line2d.update(v.lineOptions),v.lineOptions=v.lineOptions.map((function(t){if(t&amp;&amp;t.positions){for(var e=t.positions,r=0;r&lt;e.length&amp;&amp;(isNaN(e[r])||isNaN(e[r+1]));)r+=2;for(var n=e.length-2;n&gt;r&amp;&amp;(isNaN(e[n])||isNaN(e[n+1]));)n-=2;t.positions=e.slice(r,n+2)}return t})),v.line2d.update(v.lineOptions)),v.error2d){var k=(v.errorXOptions||[]).concat(v.errorYOptions||[]);v.error2d.update(k)}v.scatter2d&amp;&amp;v.scatter2d.update(v.markerOptions),v.fillOrder=s.repeat(null,b),v.fill2d&amp;&amp;(v.fillOptions=v.fillOptions.map((function(t,e){var n=r[e];if(t&amp;&amp;n&amp;&amp;n[0]&amp;&amp;n[0].trace){var i,a,o=n[0],s=o.trace,l=o.t,c=v.lineOptions[e],u=[];s._ownfill&amp;&amp;u.push(e),s._nexttrace&amp;&amp;u.push(e+1),u.length&amp;&amp;(v.fillOrder[e]=u);var f,h,p=[],d=c&amp;&amp;c.positions||l.positions;if(&quot;tozeroy&quot;===s.fill){for(f=0;f&lt;d.length&amp;&amp;isNaN(d[f+1]);)f+=2;for(h=d.length-2;h&gt;f&amp;&amp;isNaN(d[h+1]);)h-=2;0!==d[f+1]&amp;&amp;(p=[d[f],0]),p=p.concat(d.slice(f,h+2)),0!==d[h+1]&amp;&amp;(p=p.concat([d[h],0]))}else if(&quot;tozerox&quot;===s.fill){for(f=0;f&lt;d.length&amp;&amp;isNaN(d[f]);)f+=2;for(h=d.length-2;h&gt;f&amp;&amp;isNaN(d[h]);)h-=2;0!==d[f]&amp;&amp;(p=[0,d[f+1]]),p=p.concat(d.slice(f,h+2)),0!==d[h]&amp;&amp;(p=p.concat([0,d[h+1]]))}else if(&quot;toself&quot;===s.fill||&quot;tonext&quot;===s.fill){for(p=[],i=0,a=0;a&lt;d.length;a+=2)(isNaN(d[a])||isNaN(d[a+1]))&amp;&amp;((p=p.concat(d.slice(i,a))).push(d[i],d[i+1]),i=a+2);p=p.concat(d.slice(i)),i&amp;&amp;p.push(d[i],d[i+1])}else{var g=s._nexttrace;if(g){var m=v.lineOptions[e+1];if(m){var y=m.positions;if(&quot;tonexty&quot;===s.fill){for(p=d.slice(),e=Math.floor(y.length/2);e--;){var x=y[2*e],b=y[2*e+1];isNaN(x)||isNaN(b)||p.push(x,b)}t.fill=g.fillcolor}}}}if(s._prevtrace&amp;&amp;&quot;tonext&quot;===s._prevtrace.fill){var _=v.lineOptions[e-1].positions,w=p.length/2,T=[i=w];for(a=0;a&lt;_.length;a+=2)(isNaN(_[a])||isNaN(_[a+1]))&amp;&amp;(T.push(a/2+w+1),i=a+2);p=p.concat(_),t.hole=T}return t.fillmode=s.fill,t.opacity=s.opacity,t.positions=p,t}})),v.fill2d.update(v.fillOptions))}var M=m.dragmode,A=l(M),S=m.clickmode.indexOf(&quot;select&quot;)&gt;-1;for(d=0;d&lt;b;d++){var E=r[d][0],C=E.trace,L=E.t,I=L.index,P=C._length,z=L.x,O=L.y;if(C.selectedpoints||A||S){if(A||(A=!0),C.selectedpoints){var D=v.selectBatch[I]=s.selIndices2selPoints(C),R={};for(g=0;g&lt;D.length;g++)R[D[g]]=1;var F=[];for(g=0;g&lt;P;g++)R[g]||F.push(g);v.unselectBatch[I]=F}var B=L.xpx=new Array(P),N=L.ypx=new Array(P);for(g=0;g&lt;P;g++)B[g]=y.c2p(z[g]),N[g]=x.c2p(O[g])}else L.xpx=L.ypx=null}if(A){if(v.select2d||(v.select2d=n(m._glcanvas.data()[1].regl)),v.scatter2d){var j=new Array(b);for(d=0;d&lt;b;d++)j[d]=v.selectBatch[d].length||v.unselectBatch[d].length?v.markerUnselectedOptions[d]:{};v.scatter2d.update(j)}v.select2d&amp;&amp;(v.select2d.update(v.markerOptions),v.select2d.update(v.markerSelectedOptions)),v.glText&amp;&amp;r.forEach((function(t){var e=((t||[])[0]||{}).trace||{};u.hasText(e)&amp;&amp;h(t)}))}else v.scatter2d&amp;&amp;v.scatter2d.update(v.markerOptions);var U={viewport:p(m,y,x),range:[(y._rl||y.range)[0],(x._rl||x.range)[0],(y._rl||y.range)[1],(x._rl||x.range)[1]]},V=s.repeat(U,v.count);v.fill2d&amp;&amp;v.fill2d.update(V),v.line2d&amp;&amp;v.line2d.update(V),v.error2d&amp;&amp;v.error2d.update(V.concat(V)),v.scatter2d&amp;&amp;v.scatter2d.update(V),v.select2d&amp;&amp;v.select2d.update(V),v.glText&amp;&amp;v.glText.forEach((function(t){t.update(U)}))}else v.init()}}},{&quot;../../components/dragelement/helpers&quot;:661,&quot;../../lib&quot;:778,&quot;../../lib/prepare_regl&quot;:791,&quot;../scatter/link_traces&quot;:1203,&quot;../scatter/subtypes&quot;:1212,&quot;./edit_style&quot;:1244,&quot;gl-text&quot;:352,&quot;regl-error2d&quot;:534,&quot;regl-line2d&quot;:535,&quot;regl-scatter2d&quot;:537}],1250:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=e._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return e._scene||((r=e._scene={}).init=function(){n.extendFlat(r,a,i)},r.init(),r.update=function(t){var e=n.repeat(t,r.count);if(r.fill2d&amp;&amp;r.fill2d.update(e),r.scatter2d&amp;&amp;r.scatter2d.update(e),r.line2d&amp;&amp;r.line2d.update(e),r.error2d&amp;&amp;r.error2d.update(e.concat(e)),r.select2d&amp;&amp;r.select2d.update(e),r.glText)for(var i=0;i&lt;r.count;i++)r.glText[i].update(t)},r.draw=function(){for(var t=r.count,e=r.fill2d,i=r.error2d,a=r.line2d,o=r.scatter2d,s=r.glText,l=r.select2d,c=r.selectBatch,u=r.unselectBatch,f=0;f&lt;t;f++){if(e&amp;&amp;r.fillOrder[f]&amp;&amp;e.draw(r.fillOrder[f]),a&amp;&amp;r.lineOptions[f]&amp;&amp;a.draw(f),i&amp;&amp;(r.errorXOptions[f]&amp;&amp;i.draw(f),r.errorYOptions[f]&amp;&amp;i.draw(f+t)),o&amp;&amp;r.markerOptions[f])if(u[f].length){var h=n.repeat([],r.count);h[f]=u[f],o.draw(h)}else c[f].length||o.draw(f);s[f]&amp;&amp;r.textOptions[f]&amp;&amp;s[f].render()}l&amp;&amp;l.draw(c),r.dirty=!1},r.destroy=function(){r.fill2d&amp;&amp;r.fill2d.destroy&amp;&amp;r.fill2d.destroy(),r.scatter2d&amp;&amp;r.scatter2d.destroy&amp;&amp;r.scatter2d.destroy(),r.error2d&amp;&amp;r.error2d.destroy&amp;&amp;r.error2d.destroy(),r.line2d&amp;&amp;r.line2d.destroy&amp;&amp;r.line2d.destroy(),r.select2d&amp;&amp;r.select2d.destroy&amp;&amp;r.select2d.destroy(),r.glText&amp;&amp;r.glText.forEach((function(t){t.destroy&amp;&amp;t.destroy()})),r.lineOptions=null,r.fillOptions=null,r.markerOptions=null,r.markerSelectedOptions=null,r.markerUnselectedOptions=null,r.errorXOptions=null,r.errorYOptions=null,r.textOptions=null,r.textSelectedOptions=null,r.textUnselectedOptions=null,r.selectBatch=null,r.unselectBatch=null,e._scene=null}),r.dirty||n.extendFlat(r,i),r}},{&quot;../../lib&quot;:778}],1251:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/subtypes&quot;),i=t(&quot;./edit_style&quot;).styleTextSelection;e.exports=function(t,e){var r=t.cd,a=[],o=r[0].trace,s=r[0].t,l=o._length,c=s.x,u=s.y,f=s._scene,h=s.index;if(!f)return a;var p=n.hasText(o),d=n.hasMarkers(o),g=!d&amp;&amp;!p;if(!0!==o.visible||g)return a;var m=[],v=[];if(!1!==e&amp;&amp;!e.degenerate)for(var y=0;y&lt;l;y++)e.contains([s.xpx[y],s.ypx[y]],!1,y,t)?(m.push(y),a.push({pointNumber:y,x:c[y],y:u[y]})):v.push(y);if(d){var x=f.scatter2d;if(m.length||v.length){if(!f.selectBatch[h].length&amp;&amp;!f.unselectBatch[h].length){var b=new Array(f.count);b[h]=f.markerUnselectedOptions[h],x.update.apply(x,b)}}else{var _=new Array(f.count);_[h]=f.markerOptions[h],x.update.apply(x,_)}}return f.selectBatch[h]=m,f.unselectBatch[h]=v,p&amp;&amp;i(r),a}},{&quot;../scatter/subtypes&quot;:1212,&quot;./edit_style&quot;:1244}],1252:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scattergeo/attributes&quot;),o=t(&quot;../scatter/attributes&quot;),s=t(&quot;../../plots/mapbox/layout_attributes&quot;),l=t(&quot;../../plots/attributes&quot;),c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat,f=t(&quot;../../plot_api/edit_types&quot;).overrideAll,h=a.line,p=a.marker;e.exports=f({lon:a.lon,lat:a.lat,mode:u({},o.mode,{dflt:&quot;markers&quot;}),text:u({},o.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;lat&quot;,&quot;lon&quot;,&quot;text&quot;]}),hovertext:u({},o.hovertext,{}),line:{color:h.color,width:h.width},connectgaps:o.connectgaps,marker:u({symbol:{valType:&quot;string&quot;,dflt:&quot;circle&quot;,arrayOk:!0},angle:{valType:&quot;number&quot;,dflt:&quot;auto&quot;,arrayOk:!0},allowoverlap:{valType:&quot;boolean&quot;,dflt:!1},opacity:p.opacity,size:p.size,sizeref:p.sizeref,sizemin:p.sizemin,sizemode:p.sizemode},c(&quot;marker&quot;)),fill:a.fill,fillcolor:o.fillcolor,textfont:s.layers.symbol.textfont,textposition:s.layers.symbol.textposition,below:{valType:&quot;string&quot;},selected:{marker:o.selected.marker},unselected:{marker:o.unselected.marker},hoverinfo:u({},l.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n()},&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/mapbox/layout_attributes&quot;:887,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187,&quot;../scattergeo/attributes&quot;:1229}],1253:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../lib/geojson_utils&quot;),s=t(&quot;../../components/colorscale&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../scatter/make_bubble_size_func&quot;),u=t(&quot;../scatter/subtypes&quot;),f=t(&quot;../../plots/mapbox/convert_text_opts&quot;),h=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,p=t(&quot;../../lib/svg_text_utils&quot;).NEWLINES,d=t(&quot;../../lib/svg_text_utils&quot;).BR_TAG_ALL;function g(){return{geojson:o.makeBlank(),layout:{visibility:&quot;none&quot;},paint:{}}}function m(t,e){return i.isArrayOrTypedArray(t)?e?function(e){return n(t[e])?+t[e]:0}:function(e){return t[e]}:t?function(){return t}:v}function v(){return&quot;&quot;}function y(t){return t[0]===a}e.exports=function(t,e){var r,a=e[0].trace,x=!0===a.visible&amp;&amp;0!==a._length,b=&quot;none&quot;!==a.fill,_=u.hasLines(a),w=u.hasMarkers(a),T=u.hasText(a),k=w&amp;&amp;&quot;circle&quot;===a.marker.symbol,M=w&amp;&amp;&quot;circle&quot;!==a.marker.symbol,A=g(),S=g(),E=g(),C=g(),L={fill:A,line:S,circle:E,symbol:C};if(!x)return L;if((b||_)&amp;&amp;(r=o.calcTraceToLineCoords(e)),b&amp;&amp;(A.geojson=o.makePolygon(r),A.layout.visibility=&quot;visible&quot;,i.extendFlat(A.paint,{&quot;fill-color&quot;:a.fillcolor})),_&amp;&amp;(S.geojson=o.makeLine(r),S.layout.visibility=&quot;visible&quot;,i.extendFlat(S.paint,{&quot;line-width&quot;:a.line.width,&quot;line-color&quot;:a.line.color,&quot;line-opacity&quot;:a.opacity})),k){var I=function(t){var e,r,a,o,u=t[0].trace,f=u.marker,h=u.selectedpoints,p=i.isArrayOrTypedArray(f.color),d=i.isArrayOrTypedArray(f.size),g=i.isArrayOrTypedArray(f.opacity);function m(t){return u.opacity*t}p&amp;&amp;(r=s.hasColorscale(u,&quot;marker&quot;)?s.makeColorScaleFuncFromTrace(f):i.identity);d&amp;&amp;(a=c(u));g&amp;&amp;(o=function(t){return m(n(t)?+i.constrain(t,0,1):0)});var v,x=[];for(e=0;e&lt;t.length;e++){var b=t[e],_=b.lonlat;if(!y(_)){var w={};r&amp;&amp;(w.mcc=b.mcc=r(b.mc)),a&amp;&amp;(w.mrc=b.mrc=a(b.ms)),o&amp;&amp;(w.mo=o(b.mo)),h&amp;&amp;(w.selected=b.selected||0),x.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:_},properties:w})}}if(h)for(v=l.makeSelectedPointStyleFns(u),e=0;e&lt;x.length;e++){var T=x[e].properties;v.selectedOpacityFn&amp;&amp;(T.mo=m(v.selectedOpacityFn(T))),v.selectedColorFn&amp;&amp;(T.mcc=v.selectedColorFn(T)),v.selectedSizeFn&amp;&amp;(T.mrc=v.selectedSizeFn(T))}return{geojson:{type:&quot;FeatureCollection&quot;,features:x},mcc:p||v&amp;&amp;v.selectedColorFn?{type:&quot;identity&quot;,property:&quot;mcc&quot;}:f.color,mrc:d||v&amp;&amp;v.selectedSizeFn?{type:&quot;identity&quot;,property:&quot;mrc&quot;}:(k=f.size,k/2),mo:g||v&amp;&amp;v.selectedOpacityFn?{type:&quot;identity&quot;,property:&quot;mo&quot;}:m(f.opacity)};var k}(e);E.geojson=I.geojson,E.layout.visibility=&quot;visible&quot;,i.extendFlat(E.paint,{&quot;circle-color&quot;:I.mcc,&quot;circle-radius&quot;:I.mrc,&quot;circle-opacity&quot;:I.mo})}if((M||T)&amp;&amp;(C.geojson=function(t,e){for(var r=e._fullLayout,n=t[0].trace,a=n.marker||{},o=a.symbol,s=a.angle,l=&quot;circle&quot;!==o?m(o):v,c=&quot;auto&quot;!==s?m(s,!0):v,f=u.hasText(n)?m(n.text):v,g=[],x=0;x&lt;t.length;x++){var b=t[x];if(!y(b.lonlat)){var _,w=n.texttemplate;if(w){var T=Array.isArray(w)?w[x]||&quot;&quot;:w,k=n._module.formatLabels(b,n,r),M={};h(M,n,b.i);var A=n._meta||{};_=i.texttemplateString(T,k,r._d3locale,M,b,A)}else _=f(x);_&amp;&amp;(_=_.replace(p,&quot;&quot;).replace(d,&quot;\n&quot;)),g.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:b.lonlat},properties:{symbol:l(x),angle:c(x),text:_}})}}return{type:&quot;FeatureCollection&quot;,features:g}}(e,t),i.extendFlat(C.layout,{visibility:&quot;visible&quot;,&quot;icon-image&quot;:&quot;{symbol}-15&quot;,&quot;text-field&quot;:&quot;{text}&quot;}),M&amp;&amp;(i.extendFlat(C.layout,{&quot;icon-size&quot;:a.marker.size/10}),&quot;angle&quot;in a.marker&amp;&amp;&quot;auto&quot;!==a.marker.angle&amp;&amp;i.extendFlat(C.layout,{&quot;icon-rotate&quot;:{type:&quot;identity&quot;,property:&quot;angle&quot;},&quot;icon-rotation-alignment&quot;:&quot;map&quot;}),C.layout[&quot;icon-allow-overlap&quot;]=a.marker.allowoverlap,i.extendFlat(C.paint,{&quot;icon-opacity&quot;:a.opacity*a.marker.opacity,&quot;icon-color&quot;:a.marker.color})),T)){var P=(a.marker||{}).size,z=f(a.textposition,P);i.extendFlat(C.layout,{&quot;text-size&quot;:a.textfont.size,&quot;text-anchor&quot;:z.anchor,&quot;text-offset&quot;:z.offset}),i.extendFlat(C.paint,{&quot;text-color&quot;:a.textfont.color,&quot;text-opacity&quot;:a.opacity})}return L}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/geojson_utils&quot;:772,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/mapbox/convert_text_opts&quot;:884,&quot;../scatter/make_bubble_size_func&quot;:1204,&quot;../scatter/subtypes&quot;:1212,&quot;fast-isnumeric&quot;:241}],1254:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/text_defaults&quot;),l=t(&quot;../scatter/fillcolor_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}if(function(t,e,r){var n=r(&quot;lon&quot;)||[],i=r(&quot;lat&quot;)||[],a=Math.min(n.length,i.length);return e._length=a,a}(0,e,f)){if(f(&quot;text&quot;),f(&quot;texttemplate&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),f(&quot;below&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,u,f,{noDash:!0}),f(&quot;connectgaps&quot;)),i.hasMarkers(e)){a(t,e,r,u,f,{noLine:!0}),f(&quot;marker.allowoverlap&quot;),f(&quot;marker.angle&quot;);var h=e.marker;&quot;circle&quot;!==h.symbol&amp;&amp;(n.isArrayOrTypedArray(h.size)&amp;&amp;(h.size=h.size[0]),n.isArrayOrTypedArray(h.color)&amp;&amp;(h.color=h.color[0]))}i.hasText(e)&amp;&amp;s(t,e,u,f,{noSelect:!0}),f(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1252}],1255:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t}},{}],1256:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.subplot]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=n.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=n.tickText(a,a.c2l(o[1]),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1257:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/get_trace_color&quot;),o=i.fillText,s=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r){var l=t.cd,c=l[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=360*(e&gt;=0?Math.floor((e+180)/360):Math.ceil((e-180)/360)),d=e-p;if(n.getClosest(l,(function(t){var e=t.lonlat;if(e[0]===s)return 1/0;var n=i.modHalf(e[0],360),a=e[1],o=h.project([n,a]),l=o.x-u.c2p([d,a]),c=o.y-f.c2p([n,r]),p=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(l*l+c*c)-p,1-3/p)}),t),!1!==t.index){var g=l[t.index],m=g.lonlat,v=[i.modHalf(m[0],360)+p,m[1]],y=u.c2p(v),x=f.c2p(v),b=g.mrc||1;t.x0=y-b,t.x1=y+b,t.y0=x-b,t.y1=x+b;var _={};_[c.subplot]={_subplot:h};var w=c._module.formatLabels(g,c,_);return t.lonLabel=w.lonLabel,t.latLabel=w.latLabel,t.color=a(c,g),t.extraText=function(t,e,r){if(t.hovertemplate)return;var n=(e.hi||t.hoverinfo).split(&quot;+&quot;),i=-1!==n.indexOf(&quot;all&quot;),a=-1!==n.indexOf(&quot;lon&quot;),s=-1!==n.indexOf(&quot;lat&quot;),l=e.lonlat,c=[];function u(t){return t+&quot;\xb0&quot;}i||a&amp;&amp;s?c.push(&quot;(&quot;+u(l[0])+&quot;, &quot;+u(l[1])+&quot;)&quot;):a?c.push(r.lon+u(l[0])):s&amp;&amp;c.push(r.lat+u(l[1]));(i||-1!==n.indexOf(&quot;text&quot;))&amp;&amp;o(e,t,c);return c.join(&quot;&lt;br&gt;&quot;)}(c,g,l[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}}},{&quot;../../components/fx&quot;:683,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/get_trace_color&quot;:1197}],1258:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;../scattergeo/calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),styleOnSelect:function(t,e){e&amp;&amp;e[0].trace._glTrace.update(e)},moduleType:&quot;trace&quot;,name:&quot;scattermapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/mapbox&quot;:885,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scattergeo/calc&quot;:1230,&quot;./attributes&quot;:1252,&quot;./defaults&quot;:1254,&quot;./event_data&quot;:1255,&quot;./format_labels&quot;:1256,&quot;./hover&quot;:1257,&quot;./plot&quot;:1259,&quot;./select&quot;:1260}],1259:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;),i=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix,a=[&quot;fill&quot;,&quot;line&quot;,&quot;circle&quot;,&quot;symbol&quot;];function o(t,e){this.type=&quot;scattermapbox&quot;,this.subplot=t,this.uid=e,this.sourceIds={fill:&quot;source-&quot;+e+&quot;-fill&quot;,line:&quot;source-&quot;+e+&quot;-line&quot;,circle:&quot;source-&quot;+e+&quot;-circle&quot;,symbol:&quot;source-&quot;+e+&quot;-symbol&quot;},this.layerIds={fill:i+e+&quot;-fill&quot;,line:i+e+&quot;-line&quot;,circle:i+e+&quot;-circle&quot;,symbol:i+e+&quot;-symbol&quot;},this.below=null}var s=o.prototype;s.addSource=function(t,e){this.subplot.map.addSource(this.sourceIds[t],{type:&quot;geojson&quot;,data:e.geojson})},s.setSourceData=function(t,e){this.subplot.map.getSource(this.sourceIds[t]).setData(e.geojson)},s.addLayer=function(t,e,r){this.subplot.addLayer({type:t,id:this.layerIds[t],source:this.sourceIds[t],layout:e.layout,paint:e.paint},r)},s.update=function(t){var e,r,i,o=this.subplot,s=o.map,l=n(o.gd,t),c=o.belowLookup[&quot;trace-&quot;+this.uid];if(c!==this.below){for(e=a.length-1;e&gt;=0;e--)r=a[e],s.removeLayer(this.layerIds[r]);for(e=0;e&lt;a.length;e++)i=l[r=a[e]],this.addLayer(r,i,c);this.below=c}for(e=0;e&lt;a.length;e++)i=l[r=a[e]],o.setOptions(this.layerIds[r],&quot;setLayoutProperty&quot;,i.layout),&quot;visible&quot;===i.layout.visibility&amp;&amp;(this.setSourceData(r,i),o.setOptions(this.layerIds[r],&quot;setPaintProperty&quot;,i.paint));t[0].trace._glTrace=this},s.dispose=function(){for(var t=this.subplot.map,e=a.length-1;e&gt;=0;e--){var r=a[e];t.removeLayer(this.layerIds[r]),t.removeSource(this.sourceIds[r])}},e.exports=function(t,e){for(var r=e[0].trace,i=new o(t,r.uid),s=n(t.gd,e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid],c=0;c&lt;a.length;c++){var u=a[c],f=s[u];i.addSource(u,f),i.addLayer(u,f,l)}return e[0].trace._glTrace=i,i}},{&quot;../../plots/mapbox/constants&quot;:883,&quot;./convert&quot;:1253}],1260:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e){var r,o=t.cd,s=t.xaxis,l=t.yaxis,c=[],u=o[0].trace;if(!i.hasMarkers(u))return[];if(!1===e)for(r=0;r&lt;o.length;r++)o[r].selected=0;else for(r=0;r&lt;o.length;r++){var f=o[r],h=f.lonlat;if(h[0]!==a){var p=[n.modHalf(h[0],360),h[1]],d=[s.c2p(p),l.c2p(p)];e.contains(d,null,r,t)?(c.push({pointNumber:r,lon:h[0],lat:h[1]}),f.selected=1):f.selected=0}}return c}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/subtypes&quot;:1212}],1261:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../scatter/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=o.line;e.exports={mode:o.mode,r:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},theta:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},r0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dr:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},theta0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dtheta:{valType:&quot;number&quot;,editType:&quot;calc&quot;},thetaunit:{valType:&quot;enumerated&quot;,values:[&quot;radians&quot;,&quot;degrees&quot;,&quot;gradians&quot;],dflt:&quot;degrees&quot;,editType:&quot;calc+clearAxisTypes&quot;},text:o.text,texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]}),hovertext:o.hovertext,line:{color:l.color,width:l.width,dash:l.dash,shape:a({},l.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:l.smoothing,editType:&quot;calc&quot;},connectgaps:o.connectgaps,marker:o.marker,cliponaxis:a({},o.cliponaxis,{dflt:!1}),textposition:o.textposition,textfont:o.textfont,fill:a({},o.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:o.fillcolor,hoverinfo:a({},s.hoverinfo,{flags:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:o.hoveron,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1262:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../scatter/colorscale_calc&quot;),s=t(&quot;../scatter/arrays_to_calcdata&quot;),l=t(&quot;../scatter/calc_selection&quot;),c=t(&quot;../scatter/calc&quot;).calcMarkerSize;e.exports=function(t,e){for(var r=t._fullLayout,u=e.subplot,f=r[u].radialaxis,h=r[u].angularaxis,p=f.makeCalcdata(e,&quot;r&quot;),d=h.makeCalcdata(e,&quot;theta&quot;),g=e._length,m=new Array(g),v=0;v&lt;g;v++){var y=p[v],x=d[v],b=m[v]={};n(y)&amp;&amp;n(x)?(b.r=y,b.theta=x):b.r=i}var _=c(e,g);return e._extremes.x=a.findExtremes(f,p,{ppad:_}),o(t,e),s(m,e),l(m,e),m}},{&quot;../../constants/numerical&quot;:753,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc&quot;:1188,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1263:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/line_shape_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;../scatter/fillcolor_defaults&quot;),u=t(&quot;../scatter/constants&quot;).PTS_LINESONLY,f=t(&quot;./attributes&quot;);function h(t,e,r,n){var i,a=n(&quot;r&quot;),o=n(&quot;theta&quot;);if(a)o?i=Math.min(a.length,o.length):(i=a.length,n(&quot;theta0&quot;),n(&quot;dtheta&quot;));else{if(!o)return 0;i=e.theta.length,n(&quot;r0&quot;),n(&quot;dr&quot;)}return e._length=i,i}e.exports={handleRThetaDefaults:h,supplyDefaults:function(t,e,r,p){function d(r,i){return n.coerce(t,e,f,r,i)}var g=h(t,e,p,d);if(g){d(&quot;thetaunit&quot;),d(&quot;mode&quot;,g&lt;u?&quot;lines+markers&quot;:&quot;lines&quot;),d(&quot;text&quot;),d(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;d(&quot;hovertemplate&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,p,d),s(t,e,d),d(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;a(t,e,r,p,d,{gradient:!0}),i.hasText(e)&amp;&amp;(d(&quot;texttemplate&quot;),l(t,e,p,d));var m=[];(i.hasMarkers(e)||i.hasText(e))&amp;&amp;(d(&quot;cliponaxis&quot;),d(&quot;marker.maxdisplayed&quot;),m.push(&quot;points&quot;)),d(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(c(t,e,r,d),i.hasLines(e)||s(t,e,d)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||m.push(&quot;fills&quot;),d(&quot;hoveron&quot;,m.join(&quot;+&quot;)||&quot;points&quot;),n.coerceSelectionMarkerOpacity(e,d)}else e.visible=!1}}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/line_shape_defaults&quot;:1202,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1261}],1264:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var a,o,s={},l=r[e.subplot]._subplot;l?(a=l.radialAxis,o=l.angularAxis):(a=(l=r[e.subplot]).radialaxis,o=l.angularaxis);var c=a.c2l(t.r);s.rLabel=i.tickText(a,c,!0).text;var u=&quot;degrees&quot;===o.thetaunit?n.rad2deg(t.theta):t.theta;return s.thetaLabel=i.tickText(o,u,!0).text,s}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1265:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;);function i(t,e,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle=&quot;r&quot;,a._hovertitle=&quot;\u03b8&quot;;var o={};o[e.subplot]={_subplot:r};var s=e._module.formatLabels(t,e,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var l=t.hi||e.hoverinfo,c=[];function u(t,e){c.push(t._hovertitle+&quot;: &quot;+e)}if(!e.hovertemplate){var f=l.split(&quot;+&quot;);-1!==f.indexOf(&quot;all&quot;)&amp;&amp;(f=[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]),-1!==f.indexOf(&quot;r&quot;)&amp;&amp;u(i,n.rLabel),-1!==f.indexOf(&quot;theta&quot;)&amp;&amp;u(a,n.thetaLabel),-1!==f.indexOf(&quot;text&quot;)&amp;&amp;n.text&amp;&amp;(c.push(n.text),delete n.text),n.extraText=c.join(&quot;&lt;br&gt;&quot;)}}e.exports={hoverPoints:function(t,e,r,a){var o=n(t,e,r,a);if(o&amp;&amp;!1!==o[0].index){var s=o[0];if(void 0===s.index)return o;var l=t.subplot,c=s.cd[s.index],u=s.trace;if(l.isPtInside(c))return s.xLabelVal=void 0,s.yLabelVal=void 0,i(c,u,l,s),s.hovertemplate=u.hovertemplate,o}},makeHoverPointText:i}},{&quot;../scatter/hover&quot;:1198}],1266:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;scatterpolar&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;polar&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;../scatter/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:894,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/select&quot;:1209,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1261,&quot;./calc&quot;:1262,&quot;./defaults&quot;:1263,&quot;./format_labels&quot;:1264,&quot;./hover&quot;:1265,&quot;./plot&quot;:1267}],1267:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r){for(var a=e.layers.frontplot.select(&quot;g.scatterlayer&quot;),o={xaxis:e.xaxis,yaxis:e.yaxis,plot:e.framework,layerClipId:e._hasClipOnAxisFalse?e.clipIds.forTraces:null},s=e.radialAxis,l=e.angularAxis,c=0;c&lt;r.length;c++)for(var u=r[c],f=0;f&lt;u.length;f++){var h=u[f],p=h.r;if(p===i)h.x=h.y=i;else{var d=s.c2g(p),g=l.c2g(h.theta);h.x=d*Math.cos(g),h.y=d*Math.sin(g)}}n(t,o,r,a)}},{&quot;../../constants/numerical&quot;:753,&quot;../scatter/plot&quot;:1208}],1268:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatterpolar/attributes&quot;),i=t(&quot;../scattergl/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs;e.exports={mode:n.mode,r:n.r,theta:n.theta,r0:n.r0,dr:n.dr,theta0:n.theta0,dtheta:n.dtheta,thetaunit:n.thetaunit,text:n.text,texttemplate:a({editType:&quot;plot&quot;},{keys:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]}),hovertext:n.hovertext,hovertemplate:n.hovertemplate,line:i.line,connectgaps:i.connectgaps,marker:i.marker,fill:i.fill,fillcolor:i.fillcolor,textposition:i.textposition,textfont:i.textfont,hoverinfo:n.hoverinfo,selected:n.selected,unselected:n.unselected}},{&quot;../../plots/template_attributes&quot;:906,&quot;../scattergl/attributes&quot;:1239,&quot;../scatterpolar/attributes&quot;:1261}],1269:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/colorscale_calc&quot;),i=t(&quot;../scatter/calc&quot;).calcMarkerSize,a=t(&quot;../scattergl/convert&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e){var r=t._fullLayout,l=e.subplot,c=r[l].radialaxis,u=r[l].angularaxis,f=e._r=c.makeCalcdata(e,&quot;r&quot;),h=e._theta=u.makeCalcdata(e,&quot;theta&quot;),p=e._length,d={};p&lt;f.length&amp;&amp;(f=f.slice(0,p)),p&lt;h.length&amp;&amp;(h=h.slice(0,p)),d.r=f,d.theta=h,n(t,e);var g,m=d.opts=a.style(t,e);return p&lt;s?g=i(e,p):m.marker&amp;&amp;(g=2*(m.marker.sizeAvg||Math.max(m.marker.size,3))),e._extremes.x=o.findExtremes(c,f,{ppad:g}),[{x:!1,y:!1,t:d,trace:e}]}},{&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc&quot;:1188,&quot;../scatter/colorscale_calc&quot;:1190,&quot;../scattergl/constants&quot;:1241,&quot;../scattergl/convert&quot;:1242}],1270:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatterpolar/defaults&quot;).handleRThetaDefaults,o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;../scatter/fillcolor_defaults&quot;),u=t(&quot;../scatter/constants&quot;).PTS_LINESONLY,f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d=a(t,e,h,p);d?(p(&quot;thetaunit&quot;),p(&quot;mode&quot;,d&lt;u?&quot;lines+markers&quot;:&quot;lines&quot;),p(&quot;text&quot;),p(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;p(&quot;hovertemplate&quot;),i.hasLines(e)&amp;&amp;(s(t,e,r,h,p),p(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;o(t,e,r,h,p),i.hasText(e)&amp;&amp;(p(&quot;texttemplate&quot;),l(t,e,h,p)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;c(t,e,r,p),n.coerceSelectionMarkerOpacity(e,p)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;../scatterpolar/defaults&quot;:1263,&quot;./attributes&quot;:1268}],1271:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatterpolar/format_labels&quot;);e.exports=function(t,e,r){var i=t.i;return&quot;r&quot;in t||(t.r=e._r[i]),&quot;theta&quot;in t||(t.theta=e._theta[i]),n(t,e,r)}},{&quot;../scatterpolar/format_labels&quot;:1264}],1272:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scattergl/hover&quot;),i=t(&quot;../scatterpolar/hover&quot;).makeHoverPointText;e.exports={hoverPoints:function(t,e,r,a){var o=t.cd[0].t,s=o.r,l=o.theta,c=n.hoverPoints(t,e,r,a);if(c&amp;&amp;!1!==c[0].index){var u=c[0];if(void 0===u.index)return c;var f=t.subplot,h=u.cd[u.index],p=u.trace;if(h.r=s[u.index],h.theta=l[u.index],f.isPtInside(h))return u.xLabelVal=void 0,u.yLabelVal=void 0,i(h,p,f,u),c}}}},{&quot;../scattergl/hover&quot;:1247,&quot;../scatterpolar/hover&quot;:1265}],1273:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;scatterpolargl&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;polar&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;../scattergl/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:894,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scattergl/select&quot;:1251,&quot;./attributes&quot;:1268,&quot;./calc&quot;:1269,&quot;./defaults&quot;:1270,&quot;./format_labels&quot;:1271,&quot;./hover&quot;:1272,&quot;./plot&quot;:1274}],1274:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/point-cluster&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../scattergl/plot&quot;),o=t(&quot;../scattergl/scene_update&quot;),s=t(&quot;../scattergl/convert&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e,r){if(r.length){var u=e.radialAxis,f=e.angularAxis,h=o(t,e);return r.forEach((function(r){if(r&amp;&amp;r[0]&amp;&amp;r[0].trace){var a,o=r[0],p=o.trace,d=o.t,g=p._length,m=d.r,v=d.theta,y=d.opts,x=m.slice(),b=v.slice();for(a=0;a&lt;m.length;a++)e.isPtInside({r:m[a],theta:v[a]})||(x[a]=NaN,b[a]=NaN);var _=new Array(2*g),w=Array(g),T=Array(g);for(a=0;a&lt;g;a++){var k,M,A=x[a];if(i(A)){var S=u.c2g(A),E=f.c2g(b[a],p.thetaunit);k=S*Math.cos(E),M=S*Math.sin(E)}else k=M=NaN;w[a]=_[2*a]=k,T[a]=_[2*a+1]=M}d.tree=n(_),y.marker&amp;&amp;g&gt;=c&amp;&amp;(y.marker.cluster=d.tree),y.marker&amp;&amp;(y.markerSel.positions=y.markerUnsel.positions=y.marker.positions=_),y.line&amp;&amp;_.length&gt;1&amp;&amp;l.extendFlat(y.line,s.linePositions(t,p,_)),y.text&amp;&amp;(l.extendFlat(y.text,{positions:_},s.textPosition(t,p,y.text,y.marker)),l.extendFlat(y.textSel,{positions:_},s.textPosition(t,p,y.text,y.markerSel)),l.extendFlat(y.textUnsel,{positions:_},s.textPosition(t,p,y.text,y.markerUnsel))),y.fill&amp;&amp;!h.fill2d&amp;&amp;(h.fill2d=!0),y.marker&amp;&amp;!h.scatter2d&amp;&amp;(h.scatter2d=!0),y.line&amp;&amp;!h.line2d&amp;&amp;(h.line2d=!0),y.text&amp;&amp;!h.glText&amp;&amp;(h.glText=!0),h.lineOptions.push(y.line),h.fillOptions.push(y.fill),h.markerOptions.push(y.marker),h.markerSelectedOptions.push(y.markerSel),h.markerUnselectedOptions.push(y.markerUnsel),h.textOptions.push(y.text),h.textSelectedOptions.push(y.textSel),h.textUnselectedOptions.push(y.textUnsel),h.selectBatch.push([]),h.unselectBatch.push([]),d.x=w,d.y=T,d.rawx=w,d.rawy=T,d.r=m,d.theta=v,d.positions=_,d._scene=h,d.index=h.count,h.count++}})),a(t,e,r)}}},{&quot;../../lib&quot;:778,&quot;../scattergl/constants&quot;:1241,&quot;../scattergl/convert&quot;:1242,&quot;../scattergl/plot&quot;:1249,&quot;../scattergl/scene_update&quot;:1250,&quot;@plotly/point-cluster&quot;:57,&quot;fast-isnumeric&quot;:241}],1275:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scatter/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../lib/extend&quot;).extendFlat,u=a.marker,f=a.line,h=u.line;e.exports={a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},c:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sum:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;calc&quot;},mode:c({},a.mode,{dflt:&quot;markers&quot;}),text:c({},a.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;text&quot;]}),hovertext:c({},a.hovertext,{}),line:{color:f.color,width:f.width,dash:l,shape:c({},f.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:f.smoothing,editType:&quot;calc&quot;},connectgaps:a.connectgaps,cliponaxis:a.cliponaxis,fill:c({},a.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:a.fillcolor,marker:c({symbol:u.symbol,opacity:u.opacity,maxdisplayed:u.maxdisplayed,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,line:c({width:h.width,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),gradient:u.gradient,editType:&quot;calc&quot;},s(&quot;marker&quot;)),textfont:a.textfont,textposition:a.textposition,selected:a.selected,unselected:a.unselected,hoverinfo:c({},o.hoverinfo,{flags:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:a.hoveron,hovertemplate:n()}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing/attributes&quot;:664,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1276:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scatter/arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../scatter/calc&quot;).calcMarkerSize,l=[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],c={a:[&quot;b&quot;,&quot;c&quot;],b:[&quot;a&quot;,&quot;c&quot;],c:[&quot;a&quot;,&quot;b&quot;]};e.exports=function(t,e){var r,u,f,h,p,d,g=t._fullLayout[e.subplot].sum,m=e.sum||g,v={a:e.a,b:e.b,c:e.c};for(r=0;r&lt;l.length;r++)if(!v[f=l[r]]){for(p=v[c[f][0]],d=v[c[f][1]],h=new Array(p.length),u=0;u&lt;p.length;u++)h[u]=m-p[u]-d[u];v[f]=h}var y,x,b,_,w,T,k=e._length,M=new Array(k);for(r=0;r&lt;k;r++)y=v.a[r],x=v.b[r],b=v.c[r],n(y)&amp;&amp;n(x)&amp;&amp;n(b)?(1!==(_=g/((y=+y)+(x=+x)+(b=+b)))&amp;&amp;(y*=_,x*=_,b*=_),T=y,w=b-x,M[r]={x:w,y:T,a:y,b:x,c:b}):M[r]={x:!1,y:!1};return s(e,k),i(t,e),a(M,e),o(M,e),M}},{&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc&quot;:1188,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1277:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/constants&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/line_shape_defaults&quot;),c=t(&quot;../scatter/text_defaults&quot;),u=t(&quot;../scatter/fillcolor_defaults&quot;),f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d,g=p(&quot;a&quot;),m=p(&quot;b&quot;),v=p(&quot;c&quot;);if(g?(d=g.length,m?(d=Math.min(d,m.length),v&amp;&amp;(d=Math.min(d,v.length))):d=v?Math.min(d,v.length):0):m&amp;&amp;v&amp;&amp;(d=Math.min(m.length,v.length)),d){e._length=d,p(&quot;sum&quot;),p(&quot;text&quot;),p(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;p(&quot;hovertemplate&quot;),p(&quot;mode&quot;,d&lt;i.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;),a.hasLines(e)&amp;&amp;(s(t,e,r,h,p),l(t,e,p),p(&quot;connectgaps&quot;)),a.hasMarkers(e)&amp;&amp;o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&amp;&amp;(p(&quot;texttemplate&quot;),c(t,e,h,p));var y=[];(a.hasMarkers(e)||a.hasText(e))&amp;&amp;(p(&quot;cliponaxis&quot;),p(&quot;marker.maxdisplayed&quot;),y.push(&quot;points&quot;)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||y.push(&quot;fills&quot;),p(&quot;hoveron&quot;,y.join(&quot;+&quot;)||&quot;points&quot;),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/line_shape_defaults&quot;:1202,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1275}],1278:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){if(e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),n[i]){var a=n[i];t.a=a.a,t.b=a.b,t.c=a.c}else t.a=e.a,t.b=e.b,t.c=e.c;return t}},{}],1279:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.subplot]._subplot;return i.aLabel=n.tickText(a.aaxis,t.a,!0).text,i.bLabel=n.tickText(a.baxis,t.b,!0).text,i.cLabel=n.tickText(a.caxis,t.c,!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1280:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;);e.exports=function(t,e,r,i){var a=n(t,e,r,i);if(a&amp;&amp;!1!==a[0].index){var o=a[0];if(void 0===o.index){var s=1-o.y0/t.ya._length,l=t.xa._length,c=l*s/2,u=l-c;return o.x0=Math.max(Math.min(o.x0,u),c),o.x1=Math.max(Math.min(o.x1,u),c),a}var f=o.cd[o.index],h=o.trace,p=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var d={};d[h.subplot]={_subplot:p};var g=h._module.formatLabels(f,h,d);o.aLabel=g.aLabel,o.bLabel=g.bLabel,o.cLabel=g.cLabel;var m=f.hi||h.hoverinfo,v=[];if(!h.hovertemplate){var y=m.split(&quot;+&quot;);-1!==y.indexOf(&quot;all&quot;)&amp;&amp;(y=[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]),-1!==y.indexOf(&quot;a&quot;)&amp;&amp;x(p.aaxis,o.aLabel),-1!==y.indexOf(&quot;b&quot;)&amp;&amp;x(p.baxis,o.bLabel),-1!==y.indexOf(&quot;c&quot;)&amp;&amp;x(p.caxis,o.cLabel)}return o.extraText=v.join(&quot;&lt;br&gt;&quot;),o.hovertemplate=h.hovertemplate,a}function x(t,e){v.push(t._hovertitle+&quot;: &quot;+e)}}},{&quot;../scatter/hover&quot;:1198}],1281:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../scatter/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;scatterternary&quot;,basePlotModule:t(&quot;../../plots/ternary&quot;),categories:[&quot;ternary&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/ternary&quot;:907,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/select&quot;:1209,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1275,&quot;./calc&quot;:1276,&quot;./defaults&quot;:1277,&quot;./event_data&quot;:1278,&quot;./format_labels&quot;:1279,&quot;./hover&quot;:1280,&quot;./plot&quot;:1282}],1282:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;);e.exports=function(t,e,r){var i=e.plotContainer;i.select(&quot;.scatterlayer&quot;).selectAll(&quot;*&quot;).remove();var a={xaxis:e.xaxis,yaxis:e.yaxis,plot:i,layerClipId:e._hasClipOnAxisFalse?e.clipIdRelative:null},o=e.layers.frontplot.select(&quot;g.scatterlayer&quot;);n(t,a,r,o)}},{&quot;../scatter/plot&quot;:1208}],1283:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../scattergl/attributes&quot;),s=t(&quot;../../plots/cartesian/constants&quot;).idRegex,l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=t(&quot;../../lib/extend&quot;).extendFlat,u=n.marker,f=u.line,h=c(i(&quot;marker.line&quot;,{editTypeOverride:&quot;calc&quot;}),{width:c({},f.width,{editType:&quot;calc&quot;}),editType:&quot;calc&quot;}),p=c(i(&quot;marker&quot;),{symbol:u.symbol,size:c({},u.size,{editType:&quot;markerSize&quot;}),sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,opacity:u.opacity,colorbar:u.colorbar,line:h,editType:&quot;calc&quot;});function d(t){return{valType:&quot;info_array&quot;,freeLength:!0,editType:&quot;calc&quot;,items:{valType:&quot;subplotid&quot;,regex:s[t],editType:&quot;plot&quot;}}}p.color.editType=p.cmin.editType=p.cmax.editType=&quot;style&quot;,e.exports={dimensions:l(&quot;dimension&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},label:{valType:&quot;string&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},axis:{type:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;],editType:&quot;calc+clearAxisTypes&quot;},matches:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},editType:&quot;calc+clearAxisTypes&quot;},editType:&quot;calc+clearAxisTypes&quot;}),text:c({},o.text,{}),hovertext:c({},o.hovertext,{}),hovertemplate:a(),marker:p,xaxes:d(&quot;x&quot;),yaxes:d(&quot;y&quot;),diagonal:{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},showupperhalf:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},showlowerhalf:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},selected:{marker:o.selected.marker,editType:&quot;calc&quot;},unselected:{marker:o.unselected.marker,editType:&quot;calc&quot;},opacity:o.opacity}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187,&quot;../scattergl/attributes&quot;:1239}],1284:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-line2d&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib/prepare_regl&quot;),o=t(&quot;../../plots/get_data&quot;).getModuleCalcData,s=t(&quot;../../plots/cartesian&quot;),l=t(&quot;../../plots/cartesian/axis_ids&quot;).getFromId,c=t(&quot;../../plots/cartesian/axes&quot;).shouldShowZeroLine;function u(t,e,r){for(var n=r.matrixOptions.data.length,i=e._visibleDims,a=r.viewOpts.ranges=new Array(n),o=0;o&lt;i.length;o++){var s=i[o],c=a[o]=new Array(4),u=l(t,e._diag[s][0]);u&amp;&amp;(c[0]=u.r2l(u.range[0]),c[2]=u.r2l(u.range[1]));var f=l(t,e._diag[s][1]);f&amp;&amp;(c[1]=f.r2l(f.range[0]),c[3]=f.r2l(f.range[1]))}r.selectBatch.length||r.unselectBatch.length?r.matrix.update({ranges:a},{ranges:a}):r.matrix.update({ranges:a})}function f(t){var e=t._fullLayout,r=e._glcanvas.data()[0].regl,i=e._splomGrid;i||(i=e._splomGrid=n(r)),i.update(function(t){var e,r=t._fullLayout,n=r._size,i=[0,0,r.width,r.height],a={};function o(t,e,r,n,o,s){var l=e[t+&quot;color&quot;],c=e[t+&quot;width&quot;],u=String(l+c);u in a?a[u].data.push(NaN,NaN,r,n,o,s):a[u]={data:[r,n,o,s],join:&quot;rect&quot;,thickness:c,color:l,viewport:i,range:i,overlay:!1}}for(e in r._splomSubplots){var s,l,u=r._plots[e],f=u.xaxis,h=u.yaxis,p=f._gridVals,d=h._gridVals,g=n.b+h.domain[0]*n.h,m=-h._m,v=-m*h.r2l(h.range[0],h.calendar);if(f.showgrid)for(e=0;e&lt;p.length;e++)s=f._offset+f.l2p(p[e].x),o(&quot;grid&quot;,f,s,g,s,g+h._length);if(h.showgrid)for(e=0;e&lt;d.length;e++)l=g+v+m*d[e].x,o(&quot;grid&quot;,h,f._offset,l,f._offset+f._length,l);c(t,f,h)&amp;&amp;(s=f._offset+f.l2p(0),o(&quot;zeroline&quot;,f,s,g,s,g+h._length)),c(t,h,f)&amp;&amp;(l=g+v+0,o(&quot;zeroline&quot;,h,f._offset,l,f._offset+f._length,l))}var y=[];for(e in a)y.push(a[e]);return y}(t))}e.exports={name:&quot;splom&quot;,attr:s.attr,attrRegex:s.attrRegex,layoutAttributes:s.layoutAttributes,supplyLayoutDefaults:s.supplyLayoutDefaults,drawFramework:s.drawFramework,plot:function(t){var e=t._fullLayout,r=i.getModule(&quot;splom&quot;),n=o(t.calcdata,r)[0];a(t,[&quot;ANGLE_instanced_arrays&quot;,&quot;OES_element_index_uint&quot;])&amp;&amp;(e._hasOnlyLargeSploms&amp;&amp;f(t),r.plot(t,{},n))},drag:function(t){var e=t.calcdata,r=t._fullLayout;r._hasOnlyLargeSploms&amp;&amp;f(t);for(var n=0;n&lt;e.length;n++){var i=e[n][0].trace,a=r._splomScenes[i.uid];&quot;splom&quot;===i.type&amp;&amp;a&amp;&amp;a.matrix&amp;&amp;u(t,i,a)}},updateGrid:f,clean:function(t,e,r,n){var i,a={};if(n._splomScenes){for(i=0;i&lt;t.length;i++){var o=t[i];&quot;splom&quot;===o.type&amp;&amp;(a[o.uid]=1)}for(i=0;i&lt;r.length;i++){var l=r[i];if(!a[l.uid]){var c=n._splomScenes[l.uid];c&amp;&amp;c.destroy&amp;&amp;c.destroy(),n._splomScenes[l.uid]=null,delete n._splomScenes[l.uid]}}}0===Object.keys(n._splomScenes||{}).length&amp;&amp;delete n._splomScenes,n._splomGrid&amp;&amp;!e._hasOnlyLargeSploms&amp;&amp;n._hasOnlyLargeSploms&amp;&amp;(n._splomGrid.destroy(),n._splomGrid=null,delete n._splomGrid),s.clean(t,e,r,n)},updateFx:s.updateFx,toSVG:s.toSVG}},{&quot;../../lib/prepare_regl&quot;:791,&quot;../../plots/cartesian&quot;:841,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/get_data&quot;:865,&quot;../../registry&quot;:911,&quot;regl-line2d&quot;:535}],1285:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axis_ids&quot;),a=t(&quot;../scatter/calc&quot;).calcMarkerSize,o=t(&quot;../scatter/calc&quot;).calcAxisExpansion,s=t(&quot;../scatter/colorscale_calc&quot;),l=t(&quot;../scattergl/convert&quot;).markerSelection,c=t(&quot;../scattergl/convert&quot;).markerStyle,u=t(&quot;./scene_update&quot;),f=t(&quot;../../constants/numerical&quot;).BADNUM,h=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e){var r,p,d,g,m,v,y=e.dimensions,x=e._length,b={},_=b.cdata=[],w=b.data=[],T=e._visibleDims=[];function k(t,r){for(var i=t.makeCalcdata({v:r.values,vcalendar:e.calendar},&quot;v&quot;),a=0;a&lt;i.length;a++)i[a]=i[a]===f?NaN:i[a];_.push(i),w.push(&quot;log&quot;===t.type?n.simpleMap(i,t.c2l):i)}for(r=0;r&lt;y.length;r++)if((d=y[r]).visible){if(g=i.getFromId(t,e._diag[r][0]),m=i.getFromId(t,e._diag[r][1]),g&amp;&amp;m&amp;&amp;g.type!==m.type){n.log(&quot;Skipping splom dimension &quot;+r+&quot; with conflicting axis types&quot;);continue}g?(k(g,d),m&amp;&amp;&quot;category&quot;===m.type&amp;&amp;(m._categories=g._categories.slice())):k(m,d),T.push(r)}for(s(t,e),n.extendFlat(b,c(e)),v=_.length*x&gt;h?2*(b.sizeAvg||Math.max(b.size,3)):a(e,x),p=0;p&lt;T.length;p++)d=y[r=T[p]],g=i.getFromId(t,e._diag[r][0])||{},m=i.getFromId(t,e._diag[r][1])||{},o(t,e,g,m,_[p],_[p],v);var M=u(t,e);return M.matrix||(M.matrix=!0),M.matrixOptions=b,M.selectedOptions=l(e,e.selected),M.unselectedOptions=l(e,e.unselected),[{x:!1,y:!1,t:{},trace:e}]}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../scatter/calc&quot;:1188,&quot;../scatter/colorscale_calc&quot;:1190,&quot;../scattergl/constants&quot;:1241,&quot;../scattergl/convert&quot;:1242,&quot;./scene_update&quot;:1292}],1286:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../scatter/subtypes&quot;),s=t(&quot;../scatter/marker_defaults&quot;),l=t(&quot;../parcoords/merge_length&quot;),c=t(&quot;../scattergl/helpers&quot;).isOpenSymbol;function u(t,e){function r(r,i){return n.coerce(t,e,a.dimensions,r,i)}r(&quot;label&quot;);var i=r(&quot;values&quot;);i&amp;&amp;i.length?r(&quot;visible&quot;):e.visible=!1,r(&quot;axis.type&quot;),r(&quot;axis.matches&quot;)}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,a,r,i)}var p=i(t,e,{name:&quot;dimensions&quot;,handleItemDefaults:u}),d=h(&quot;diagonal.visible&quot;),g=h(&quot;showupperhalf&quot;),m=h(&quot;showlowerhalf&quot;);if(l(e,p,&quot;values&quot;)&amp;&amp;(d||g||m)){h(&quot;text&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;),s(t,e,r,f,h);var v=c(e.marker.symbol),y=o.isBubble(e);h(&quot;marker.line.width&quot;,v||y?1:0),function(t,e,r,n){var i,a,o=e.dimensions,s=o.length,l=e.showupperhalf,c=e.showlowerhalf,u=e.diagonal.visible,f=new Array(s),h=new Array(s);for(i=0;i&lt;s;i++){var p=i?i+1:&quot;&quot;;f[i]=&quot;x&quot;+p,h[i]=&quot;y&quot;+p}var d=n(&quot;xaxes&quot;,f),g=n(&quot;yaxes&quot;,h),m=e._diag=new Array(s);e._xaxes={},e._yaxes={};var v=[],y=[];function x(t,n,i,a){if(t){var o=t.charAt(0),s=r._splomAxes[o];if(e[&quot;_&quot;+o+&quot;axes&quot;][t]=1,a.push(t),!(t in s)){var l=s[t]={};i&amp;&amp;(l.label=i.label||&quot;&quot;,i.visible&amp;&amp;i.axis&amp;&amp;(i.axis.type&amp;&amp;(l.type=i.axis.type),i.axis.matches&amp;&amp;(l.matches=n)))}}}var b=!u&amp;&amp;!c,_=!u&amp;&amp;!l;for(e._axesDim={},i=0;i&lt;s;i++){var w=o[i],T=0===i,k=i===s-1,M=T&amp;&amp;b||k&amp;&amp;_?void 0:d[i],A=T&amp;&amp;_||k&amp;&amp;b?void 0:g[i];x(M,A,w,v),x(A,M,w,y),m[i]=[M,A],e._axesDim[M]=i,e._axesDim[A]=i}for(i=0;i&lt;v.length;i++)for(a=0;a&lt;y.length;a++){var S=v[i]+y[a];i&gt;a&amp;&amp;l||i&lt;a&amp;&amp;c?r._splomSubplots[S]=1:i!==a||!u&amp;&amp;c&amp;&amp;l||(r._splomSubplots[S]=1)}(!c||!u&amp;&amp;l&amp;&amp;c)&amp;&amp;(r._splomGridDflt.xside=&quot;bottom&quot;,r._splomGridDflt.yside=&quot;left&quot;)}(0,e,f,h),n.coerceSelectionMarkerOpacity(e,h)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../parcoords/merge_length&quot;:1158,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scattergl/helpers&quot;:1246,&quot;./attributes&quot;:1283}],1287:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scattergl/convert&quot;).markerStyle;e.exports=function(t,e){var r=e.trace,o=t._fullLayout._splomScenes[r.uid];if(o){i(t,r),n.extendFlat(o.matrixOptions,a(r));var s=n.extendFlat({},o.matrixOptions,o.viewOpts);o.matrix.update(s,null)}}},{&quot;../../lib&quot;:778,&quot;../scatter/colorscale_calc&quot;:1190,&quot;../scattergl/convert&quot;:1242}],1288:[function(t,e,r){&quot;use strict&quot;;r.getDimIndex=function(t,e){for(var r=e._id,n={x:0,y:1}[r.charAt(0)],i=t._visibleDims,a=0;a&lt;i.length;a++){var o=i[a];if(t._diag[o][n]===r)return a}return!1}},{}],1289:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./helpers&quot;),i=t(&quot;../scattergl/hover&quot;).calcHover;e.exports={hoverPoints:function(t,e,r){var a=t.cd[0].trace,o=t.scene.matrixOptions.cdata,s=t.xa,l=t.ya,c=s.c2p(e),u=l.c2p(r),f=t.distance,h=n.getDimIndex(a,s),p=n.getDimIndex(a,l);if(!1===h||!1===p)return[t];for(var d,g,m=o[h],v=o[p],y=f,x=0;x&lt;m.length;x++){var b=m[x],_=v[x],w=s.c2p(b)-c,T=l.c2p(_)-u,k=Math.sqrt(w*w+T*T);k&lt;y&amp;&amp;(y=g=k,d=x)}return t.index=d,t.distance=y,t.dxy=g,void 0===d?[t]:[i(t,m,v,a)]}}},{&quot;../scattergl/hover&quot;:1247,&quot;./helpers&quot;:1288}],1290:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../components/grid&quot;);e.exports={moduleType:&quot;trace&quot;,name:&quot;splom&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;cartesian&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;./select&quot;),editStyle:t(&quot;./edit_style&quot;),meta:{}},n.register(i)},{&quot;../../components/grid&quot;:687,&quot;../../registry&quot;:911,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1283,&quot;./base_plot&quot;:1284,&quot;./calc&quot;:1285,&quot;./defaults&quot;:1286,&quot;./edit_style&quot;:1287,&quot;./hover&quot;:1289,&quot;./plot&quot;:1291,&quot;./select&quot;:1293}],1291:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-splom&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../components/dragelement/helpers&quot;).selectMode;function s(t,e){var r,s,l,c,u,f=t._fullLayout,h=f._size,p=e.trace,d=e.t,g=f._splomScenes[p.uid],m=g.matrixOptions,v=m.cdata,y=f._glcanvas.data()[0].regl,x=f.dragmode;if(0!==v.length){m.lower=p.showupperhalf,m.upper=p.showlowerhalf,m.diagonal=p.diagonal.visible;var b=p._visibleDims,_=v.length,w=g.viewOpts={};for(w.ranges=new Array(_),w.domains=new Array(_),u=0;u&lt;b.length;u++){l=b[u];var T=w.ranges[u]=new Array(4),k=w.domains[u]=new Array(4);(r=a.getFromId(t,p._diag[l][0]))&amp;&amp;(T[0]=r._rl[0],T[2]=r._rl[1],k[0]=r.domain[0],k[2]=r.domain[1]),(s=a.getFromId(t,p._diag[l][1]))&amp;&amp;(T[1]=s._rl[0],T[3]=s._rl[1],k[1]=s.domain[0],k[3]=s.domain[1])}w.viewport=[h.l,h.b,h.w+h.l,h.h+h.b],!0===g.matrix&amp;&amp;(g.matrix=n(y));var M=f.clickmode.indexOf(&quot;select&quot;)&gt;-1,A=!0;if(o(x)||!!p.selectedpoints||M){var S=p._length;if(p.selectedpoints){g.selectBatch=p.selectedpoints;var E=p.selectedpoints,C={};for(l=0;l&lt;E.length;l++)C[E[l]]=!0;var L=[];for(l=0;l&lt;S;l++)C[l]||L.push(l);g.unselectBatch=L}var I=d.xpx=new Array(_),P=d.ypx=new Array(_);for(u=0;u&lt;b.length;u++){if(l=b[u],r=a.getFromId(t,p._diag[l][0]))for(I[u]=new Array(S),c=0;c&lt;S;c++)I[u][c]=r.c2p(v[u][c]);if(s=a.getFromId(t,p._diag[l][1]))for(P[u]=new Array(S),c=0;c&lt;S;c++)P[u][c]=s.c2p(v[u][c])}if(g.selectBatch.length||g.unselectBatch.length){var z=i.extendFlat({},m,g.unselectedOptions,w),O=i.extendFlat({},m,g.selectedOptions,w);g.matrix.update(z,O),A=!1}}else d.xpx=d.ypx=null;if(A){var D=i.extendFlat({},m,w);g.matrix.update(D,null)}}}e.exports=function(t,e,r){if(r.length)for(var n=0;n&lt;r.length;n++)s(t,r[n][0])}},{&quot;../../components/dragelement/helpers&quot;:661,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;regl-splom&quot;:539}],1292:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=t._fullLayout,i=e.uid,a=r._splomScenes;a||(a=r._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s=a[e.uid];return s||((s=a[i]=n.extendFlat({},o,{matrix:!1,selectBatch:[],unselectBatch:[]})).draw=function(){s.matrix&amp;&amp;s.matrix.draw&amp;&amp;(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&amp;&amp;s.matrix.destroy&amp;&amp;s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||n.extendFlat(s,o),s}},{&quot;../../lib&quot;:778}],1293:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;./helpers&quot;);e.exports=function(t,e){var r=t.cd,o=r[0].trace,s=r[0].t,l=t.scene,c=l.matrixOptions.cdata,u=t.xaxis,f=t.yaxis,h=[];if(!l)return h;var p=!i.hasMarkers(o)&amp;&amp;!i.hasText(o);if(!0!==o.visible||p)return h;var d=a.getDimIndex(o,u),g=a.getDimIndex(o,f);if(!1===d||!1===g)return h;var m=s.xpx[d],v=s.ypx[g],y=c[d],x=c[g],b=[],_=[];if(!1!==e&amp;&amp;!e.degenerate)for(var w=0;w&lt;y.length;w++)e.contains([m[w],v[w]],null,w,t)?(b.push(w),h.push({pointNumber:w,x:y[w],y:x[w]})):_.push(w);var T=l.matrixOptions;return b.length||_.length?l.selectBatch.length||l.unselectBatch.length||l.matrix.update(l.unselectedOptions,n.extendFlat({},T,l.selectedOptions,l.viewOpts)):l.matrix.update(T,null),l.selectBatch=b,l.unselectBatch=_,h}},{&quot;../../lib&quot;:778,&quot;../scatter/subtypes&quot;:1212,&quot;./helpers&quot;:1288}],1294:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../mesh3d/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},u:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},v:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},w:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},starts:{x:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},maxdisplayed:{valType:&quot;integer&quot;,min:0,dflt:1e3,editType:&quot;calc&quot;},sizeref:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0,dflt:1},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertemplate:i({editType:&quot;calc&quot;},{keys:[&quot;tubex&quot;,&quot;tubey&quot;,&quot;tubez&quot;,&quot;tubeu&quot;,&quot;tubev&quot;,&quot;tubew&quot;,&quot;norm&quot;,&quot;divergence&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})};s(l,n(&quot;&quot;,{colorAttr:&quot;u/v/w norm&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}));[&quot;opacity&quot;,&quot;lightposition&quot;,&quot;lighting&quot;].forEach((function(t){l[t]=a[t]})),l.hoverinfo=s({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;norm&quot;,&quot;divergence&quot;,&quot;text&quot;,&quot;name&quot;],dflt:&quot;x+y+z+norm+text+name&quot;}),l.transforms=void 0,e.exports=l},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../mesh3d/attributes&quot;:1128}],1295:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/calc&quot;);function a(t){var e,r,i,a,s,l,c,u,f,h,p,d,g=t._x,m=t._y,v=t._z,y=t._len,x=-1/0,b=1/0,_=-1/0,w=1/0,T=-1/0,k=1/0,M=&quot;&quot;;for(y&amp;&amp;(c=g[0],f=m[0],p=v[0]),y&gt;1&amp;&amp;(u=g[y-1],h=m[y-1],d=v[y-1]),e=0;e&lt;y;e++)x=Math.max(x,g[e]),b=Math.min(b,g[e]),_=Math.max(_,m[e]),w=Math.min(w,m[e]),T=Math.max(T,v[e]),k=Math.min(k,v[e]),a||g[e]===c||(a=!0,M+=&quot;x&quot;),s||m[e]===f||(s=!0,M+=&quot;y&quot;),l||v[e]===p||(l=!0,M+=&quot;z&quot;);a||(M+=&quot;x&quot;),s||(M+=&quot;y&quot;),l||(M+=&quot;z&quot;);var A=o(t._x),S=o(t._y),E=o(t._z);M=(M=(M=M.replace(&quot;x&quot;,(c&gt;u?&quot;-&quot;:&quot;+&quot;)+&quot;x&quot;)).replace(&quot;y&quot;,(f&gt;h?&quot;-&quot;:&quot;+&quot;)+&quot;y&quot;)).replace(&quot;z&quot;,(p&gt;d?&quot;-&quot;:&quot;+&quot;)+&quot;z&quot;);var C=function(){y=0,A=[],S=[],E=[]};(!y||y&lt;A.length*S.length*E.length)&amp;&amp;C();var L=function(t){return&quot;x&quot;===t?g:&quot;y&quot;===t?m:v},I=function(t){return&quot;x&quot;===t?A:&quot;y&quot;===t?S:E},P=function(t){return t[y-1]&lt;t[0]?-1:1},z=L(M[1]),O=L(M[3]),D=L(M[5]),R=I(M[1]).length,F=I(M[3]).length,B=I(M[5]).length,N=!1,j=function(t,e,r){return R*(F*t+e)+r},U=P(L(M[1])),V=P(L(M[3])),q=P(L(M[5]));for(e=0;e&lt;B-1;e++){for(r=0;r&lt;F-1;r++){for(i=0;i&lt;R-1;i++){var H=j(e,r,i),G=j(e,r,i+1),Y=j(e,r+1,i),W=j(e+1,r,i);if(z[H]*U&lt;z[G]*U&amp;&amp;O[H]*V&lt;O[Y]*V&amp;&amp;D[H]*q&lt;D[W]*q||(N=!0),N)break}if(N)break}if(N)break}return N&amp;&amp;(n.warn(&quot;Encountered arbitrary coordinates! Unable to input data grid.&quot;),C()),{xMin:b,yMin:w,zMin:k,xMax:x,yMax:_,zMax:T,Xs:A,Ys:S,Zs:E,len:y,fill:M}}function o(t){return n.distinctVals(t).vals}function s(t,e){if(void 0===e&amp;&amp;(e=t.length),n.isTypedArray(t))return t.subarray(0,e);for(var r=[],i=0;i&lt;e;i++)r[i]=+t[i];return r}e.exports={calc:function(t,e){e._len=Math.min(e.u.length,e.v.length,e.w.length,e.x.length,e.y.length,e.z.length),e._u=s(e.u,e._len),e._v=s(e.v,e._len),e._w=s(e.w,e._len),e._x=s(e.x,e._len),e._y=s(e.y,e._len),e._z=s(e.z,e._len);var r=a(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;var n,o,l,c=0;e.starts&amp;&amp;(n=s(e.starts.x||[]),o=s(e.starts.y||[]),l=s(e.starts.z||[]),c=Math.min(n.length,o.length,l.length)),e._startsX=n||[],e._startsY=o||[],e._startsZ=l||[];var u,f=0,h=1/0;for(u=0;u&lt;e._len;u++){var p=e._u[u],d=e._v[u],g=e._w[u],m=Math.sqrt(p*p+d*d+g*g);f=Math.max(f,m),h=Math.min(h,m)}for(i(t,e,{vals:[h,f],containerStr:&quot;&quot;,cLetter:&quot;c&quot;}),u=0;u&lt;c;u++){var v=n[u];r.xMax=Math.max(r.xMax,v),r.xMin=Math.min(r.xMin,v);var y=o[u];r.yMax=Math.max(r.yMax,y),r.yMin=Math.min(r.yMin,y);var x=l[u];r.zMax=Math.max(r.zMax,x),r.zMin=Math.min(r.zMin,x)}e._slen=c,e._normMax=f,e._xbnds=[r.xMin,r.xMax],e._ybnds=[r.yMin,r.yMax],e._zbnds=[r.zMin,r.zMax]},filter:s,processGrid:a}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../lib&quot;:778}],1296:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-streamtube3d&quot;),i=n.createTubeMesh,a=t(&quot;../../lib&quot;),o=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,s=t(&quot;../../components/colorscale&quot;).extractOpts,l=t(&quot;../../plots/gl3d/zip3&quot;),c={xaxis:0,yaxis:1,zaxis:2};function u(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var f=u.prototype;function h(t){var e=t.length;return e&gt;2?t.slice(1,e-1):2===e?[(t[0]+t[1])/2]:t}function p(t){var e=t.length;return 1===e?[.5,.5]:[t[1]-t[0],t[e-1]-t[e-2]]}function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,u=e._len,f={};function d(t,e){var n=r[e],o=i[c[e]];return a.simpleMap(t,(function(t){return n.d2l(t)*o}))}if(f.vectors=l(d(e._u,&quot;xaxis&quot;),d(e._v,&quot;yaxis&quot;),d(e._w,&quot;zaxis&quot;),u),!u)return{positions:[],cells:[]};var g=d(e._Xs,&quot;xaxis&quot;),m=d(e._Ys,&quot;yaxis&quot;),v=d(e._Zs,&quot;zaxis&quot;);if(f.meshgrid=[g,m,v],f.gridFill=e._gridFill,e._slen)f.startingPositions=l(d(e._startsX,&quot;xaxis&quot;),d(e._startsY,&quot;yaxis&quot;),d(e._startsZ,&quot;zaxis&quot;));else{for(var y=m[0],x=h(g),b=h(v),_=new Array(x.length*b.length),w=0,T=0;T&lt;x.length;T++)for(var k=0;k&lt;b.length;k++)_[w++]=[x[T],y,b[k]];f.startingPositions=_}f.colormap=o(e),f.tubeSize=e.sizeref,f.maxLength=e.maxdisplayed;var M=d(e._xbnds,&quot;xaxis&quot;),A=d(e._ybnds,&quot;yaxis&quot;),S=d(e._zbnds,&quot;zaxis&quot;),E=p(g),C=p(m),L=p(v),I=[[M[0]-E[0],A[0]-C[0],S[0]-L[0]],[M[1]+E[1],A[1]+C[1],S[1]+L[1]]],P=n(f,I),z=s(e);P.vertexIntensityBounds=[z.min/e._normMax,z.max/e._normMax];var O=e.lightposition;return P.lightPosition=[O.x,O.y,O.z],P.ambient=e.lighting.ambient,P.diffuse=e.lighting.diffuse,P.specular=e.lighting.specular,P.roughness=e.lighting.roughness,P.fresnel=e.lighting.fresnel,P.opacity=e.opacity,e._pad=P.tubeScale*e.sizeref*2,P}f.handlePick=function(t){var e=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(t,n){var i=e[n],a=r[c[n]];return i.l2c(t)/a}if(t.object===this.mesh){var i=t.data.position,a=t.data.velocity;return t.traceCoordinate=[n(i[0],&quot;xaxis&quot;),n(i[1],&quot;yaxis&quot;),n(i[2],&quot;zaxis&quot;),n(a[0],&quot;xaxis&quot;),n(a[1],&quot;yaxis&quot;),n(a[2],&quot;zaxis&quot;),t.data.intensity*this.data._normMax,t.data.divergence],t.textLabel=this.data.hovertext||this.data.text,!0}},f.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new u(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../plots/gl3d/zip3&quot;:881,&quot;gl-streamtube3d&quot;:348}],1297:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;u&quot;),c=s(&quot;v&quot;),u=s(&quot;w&quot;),f=s(&quot;x&quot;),h=s(&quot;y&quot;),p=s(&quot;z&quot;);l&amp;&amp;l.length&amp;&amp;c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length&amp;&amp;p&amp;&amp;p.length?(s(&quot;starts.x&quot;),s(&quot;starts.y&quot;),s(&quot;starts.z&quot;),s(&quot;maxdisplayed&quot;),s(&quot;sizeref&quot;),s(&quot;lighting.ambient&quot;),s(&quot;lighting.diffuse&quot;),s(&quot;lighting.specular&quot;),s(&quot;lighting.roughness&quot;),s(&quot;lighting.fresnel&quot;),s(&quot;lightposition.x&quot;),s(&quot;lightposition.y&quot;),s(&quot;lightposition.z&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:1294}],1298:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;streamtube&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./convert&quot;),eventData:function(t,e){return t.tubex=t.x,t.tubey=t.y,t.tubez=t.z,t.tubeu=e.traceCoordinate[3],t.tubev=e.traceCoordinate[4],t.tubew=e.traceCoordinate[5],t.norm=e.traceCoordinate[6],t.divergence=e.traceCoordinate[7],delete t.x,delete t.y,delete t.z,t},meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1294,&quot;./calc&quot;:1295,&quot;./convert&quot;:1296,&quot;./defaults&quot;:1297}],1299:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../pie/attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},parents:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},branchvalues:{valType:&quot;enumerated&quot;,values:[&quot;remainder&quot;,&quot;total&quot;],dflt:&quot;remainder&quot;,editType:&quot;calc&quot;},count:{valType:&quot;flaglist&quot;,flags:[&quot;branches&quot;,&quot;leaves&quot;],dflt:&quot;leaves&quot;,editType:&quot;calc&quot;},level:{valType:&quot;any&quot;,editType:&quot;plot&quot;,anim:!0},maxdepth:{valType:&quot;integer&quot;,editType:&quot;plot&quot;,dflt:-1},marker:u({colors:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:u({},l.marker.line.color,{dflt:null}),width:u({},l.marker.line.width,{dflt:1}),editType:&quot;calc&quot;},editType:&quot;calc&quot;},o(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),leaf:{opacity:{valType:&quot;number&quot;,editType:&quot;style&quot;,min:0,max:1},editType:&quot;plot&quot;},text:l.text,textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;current path&quot;,&quot;percent root&quot;,&quot;percent entry&quot;,&quot;percent parent&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;},texttemplate:a({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:l.hovertext,hoverinfo:u({},n.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;name&quot;,&quot;current path&quot;,&quot;percent root&quot;,&quot;percent entry&quot;,&quot;percent parent&quot;],dflt:&quot;label+text+value+name&quot;}),hovertemplate:i({},{keys:c.eventDataKeys}),textfont:l.textfont,insidetextorientation:l.insidetextorientation,insidetextfont:l.insidetextfont,outsidetextfont:u({},l.outsidetextfont,{}),rotation:{valType:&quot;angle&quot;,dflt:0,editType:&quot;plot&quot;},sort:l.sort,root:{color:{valType:&quot;color&quot;,editType:&quot;calc&quot;,dflt:&quot;rgba(0,0,0,0)&quot;},editType:&quot;calc&quot;},domain:s({name:&quot;sunburst&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/template_attributes&quot;:906,&quot;../pie/attributes&quot;:1161,&quot;./constants&quot;:1302}],1300:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;sunburst&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1301:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/colorscale&quot;).makeColorScaleFuncFromTrace,s=t(&quot;../pie/calc&quot;).makePullColorFn,l=t(&quot;../pie/calc&quot;).generateExtendedColors,c=t(&quot;../../components/colorscale&quot;).calc,u=t(&quot;../../constants/numerical&quot;).ALMOST_EQUAL,f={},h={};r.calc=function(t,e){var r,l,f,h,p,d,g=t._fullLayout,m=e.ids,v=a.isArrayOrTypedArray(m),y=e.labels,x=e.parents,b=e.values,_=a.isArrayOrTypedArray(b),w=[],T={},k={},M=function(t){return t||&quot;number&quot;==typeof t},A=function(t){return!_||i(b[t])&amp;&amp;b[t]&gt;=0};v?(r=Math.min(m.length,x.length),l=function(t){return M(m[t])&amp;&amp;A(t)},f=function(t){return String(m[t])}):(r=Math.min(y.length,x.length),l=function(t){return M(y[t])&amp;&amp;A(t)},f=function(t){return String(y[t])}),_&amp;&amp;(r=Math.min(r,b.length));for(var S=0;S&lt;r;S++)if(l(S)){var E=f(S),C=M(x[S])?String(x[S]):&quot;&quot;,L={i:S,id:E,pid:C,label:M(y[S])?String(y[S]):&quot;&quot;};_&amp;&amp;(L.v=+b[S]),w.push(L),p=E,T[h=C]?T[h].push(p):T[h]=[p],k[p]=1}if(T[&quot;&quot;]){if(T[&quot;&quot;].length&gt;1){for(var I=a.randstr(),P=0;P&lt;w.length;P++)&quot;&quot;===w[P].pid&amp;&amp;(w[P].pid=I);w.unshift({hasMultipleRoots:!0,id:I,pid:&quot;&quot;,label:&quot;&quot;})}}else{var z,O=[];for(z in T)k[z]||O.push(z);if(1!==O.length)return a.warn([&quot;Multiple implied roots, cannot build&quot;,e.type,&quot;hierarchy of&quot;,e.name+&quot;.&quot;,&quot;These roots include:&quot;,O.join(&quot;, &quot;)].join(&quot; &quot;));z=O[0],w.unshift({hasImpliedRoot:!0,id:z,pid:&quot;&quot;,label:z})}try{d=n.stratify().id((function(t){return t.id})).parentId((function(t){return t.pid}))(w)}catch(t){return a.warn([&quot;Failed to build&quot;,e.type,&quot;hierarchy of&quot;,e.name+&quot;.&quot;,&quot;Error:&quot;,t.message].join(&quot; &quot;))}var D=n.hierarchy(d),R=!1;if(_)switch(e.branchvalues){case&quot;remainder&quot;:D.sum((function(t){return t.data.v}));break;case&quot;total&quot;:D.each((function(t){var r=t.data.data,n=r.v;if(t.children){var i=t.children.reduce((function(t,e){return t+e.data.data.v}),0);if((r.hasImpliedRoot||r.hasMultipleRoots)&amp;&amp;(n=i),n&lt;i*u)return R=!0,a.warn([&quot;Total value for node&quot;,t.data.data.id,&quot;of&quot;,e.name,&quot;is smaller than the sum of its children.&quot;,&quot;\nparent value =&quot;,n,&quot;\nchildren sum =&quot;,i].join(&quot; &quot;))}t.value=n}))}else!function t(e,r,n){var i=0,a=e.children;if(a){for(var o=a.length,s=0;s&lt;o;s++)i+=t(a[s],r,n);n.branches&amp;&amp;i++}else n.leaves&amp;&amp;i++;e.value=e.data.data.value=i,r._values||(r._values=[]);return r._values[e.data.data.i]=i,i}(D,e,{branches:-1!==e.count.indexOf(&quot;branches&quot;),leaves:-1!==e.count.indexOf(&quot;leaves&quot;)});if(!R){var F,B;e.sort&amp;&amp;D.sort((function(t,e){return e.value-t.value}));var N=e.marker.colors||[],j=!!N.length;return e._hasColorscale?(j||(N=_?e.values:e._values),c(t,e,{vals:N,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),B=o(e.marker)):F=s(g[&quot;_&quot;+e.type+&quot;colormap&quot;]),D.each((function(t){var r=t.data.data;r.color=e._hasColorscale?B(N[r.i]):F(N[r.i],r.id)})),w[0].hierarchy=D,w}},r._runCrossTraceCalc=function(t,e){var r=e._fullLayout,n=e.calcdata,i=r[t+&quot;colorway&quot;],a=r[&quot;_&quot;+t+&quot;colormap&quot;];r[&quot;extend&quot;+t+&quot;colors&quot;]&amp;&amp;(i=l(i,&quot;treemap&quot;===t?h:f));var o,s=0;function c(t){var e=t.data.data,r=e.id;!1===e.color&amp;&amp;(a[r]?e.color=a[r]:t.parent?t.parent.parent?e.color=t.parent.data.data.color:(a[r]=e.color=i[s%i.length],s++):e.color=o)}for(var u=0;u&lt;n.length;u++){var p=n[u][0];p.trace.type===t&amp;&amp;p.hierarchy&amp;&amp;(o=p.trace.root.color,p.hierarchy.each(c))}},r.crossTraceCalc=function(t){return r._runCrossTraceCalc(&quot;sunburst&quot;,t)}},{&quot;../../components/colorscale&quot;:655,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../pie/calc&quot;:1163,&quot;d3-hierarchy&quot;:161,&quot;fast-isnumeric&quot;:241}],1302:[function(t,e,r){&quot;use strict&quot;;e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:&quot;linear&quot;,eventDataKeys:[&quot;currentPath&quot;,&quot;root&quot;,&quot;entry&quot;,&quot;percentRoot&quot;,&quot;percentEntry&quot;,&quot;percentParent&quot;]}},{}],1303:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../bar/defaults&quot;).handleText,s=t(&quot;../../components/colorscale&quot;),l=s.hasColorscale,c=s.handleDefaults;e.exports=function(t,e,r,s){function u(r,a){return n.coerce(t,e,i,r,a)}var f=u(&quot;labels&quot;),h=u(&quot;parents&quot;);if(f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length){var p=u(&quot;values&quot;);p&amp;&amp;p.length?u(&quot;branchvalues&quot;):u(&quot;count&quot;),u(&quot;level&quot;),u(&quot;maxdepth&quot;),u(&quot;marker.line.width&quot;)&amp;&amp;u(&quot;marker.line.color&quot;,s.paper_bgcolor),u(&quot;marker.colors&quot;);var d=e._hasColorscale=l(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis;d&amp;&amp;c(t,e,s,u,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),u(&quot;leaf.opacity&quot;,d?1:.7);var g=u(&quot;text&quot;);u(&quot;texttemplate&quot;),e.texttemplate||u(&quot;textinfo&quot;,Array.isArray(g)?&quot;text+label&quot;:&quot;label&quot;),u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;);o(t,e,s,u,&quot;auto&quot;,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),u(&quot;insidetextorientation&quot;),u(&quot;sort&quot;),u(&quot;rotation&quot;),u(&quot;root.color&quot;),a(e,s,u),e._length=null}else e.visible=!1}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/defaults&quot;:925,&quot;./attributes&quot;:1299}],1304:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,o=t(&quot;../../components/fx&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/events&quot;),c=t(&quot;./helpers&quot;),u=t(&quot;../pie/helpers&quot;).formatPieValue;function f(t,e,r){for(var n=t.data.data,i={curveNumber:e.index,pointNumber:n.i,data:e._input,fullData:e},o=0;o&lt;r.length;o++){var s=r[o];s in t&amp;&amp;(i[s]=t[s])}return&quot;parentString&quot;in t&amp;&amp;!c.isHierarchyRoot(t)&amp;&amp;(i.parent=t.parentString),a(i,e,n.i),i}e.exports=function(t,e,r,a,h){var p=a[0],d=p.trace,g=p.hierarchy,m=&quot;sunburst&quot;===d.type,v=&quot;treemap&quot;===d.type;&quot;_hasHoverLabel&quot;in d||(d._hasHoverLabel=!1),&quot;_hasHoverEvent&quot;in d||(d._hasHoverEvent=!1);t.on(&quot;mouseover&quot;,(function(i){var a=r._fullLayout;if(!r._dragging&amp;&amp;!1!==a.hovermode){var l=r._fullData[d.index],y=i.data.data,x=y.i,b=c.isHierarchyRoot(i),_=c.getParent(g,i),w=c.getValue(i),T=function(t){return s.castOption(l,x,t)},k=T(&quot;hovertemplate&quot;),M=o.castHoverinfo(l,a,x),A=a.separators;if(k||M&amp;&amp;&quot;none&quot;!==M&amp;&amp;&quot;skip&quot;!==M){var S,E;m&amp;&amp;(S=p.cx+i.pxmid[0]*(1-i.rInscribed),E=p.cy+i.pxmid[1]*(1-i.rInscribed)),v&amp;&amp;(S=i._hoverX,E=i._hoverY);var C,L={},I=[],P=[],z=function(t){return-1!==I.indexOf(t)};M&amp;&amp;(I=&quot;all&quot;===M?l._module.attributes.hoverinfo.flags:M.split(&quot;+&quot;)),L.label=y.label,z(&quot;label&quot;)&amp;&amp;L.label&amp;&amp;P.push(L.label),y.hasOwnProperty(&quot;v&quot;)&amp;&amp;(L.value=y.v,L.valueLabel=u(L.value,A),z(&quot;value&quot;)&amp;&amp;P.push(L.valueLabel)),L.currentPath=i.currentPath=c.getPath(i.data),z(&quot;current path&quot;)&amp;&amp;!b&amp;&amp;P.push(L.currentPath);var O=[],D=function(){-1===O.indexOf(C)&amp;&amp;(P.push(C),O.push(C))};L.percentParent=i.percentParent=w/c.getValue(_),L.parent=i.parentString=c.getPtLabel(_),z(&quot;percent parent&quot;)&amp;&amp;(C=c.formatPercent(L.percentParent,A)+&quot; of &quot;+L.parent,D()),L.percentEntry=i.percentEntry=w/c.getValue(e),L.entry=i.entry=c.getPtLabel(e),!z(&quot;percent entry&quot;)||b||i.onPathbar||(C=c.formatPercent(L.percentEntry,A)+&quot; of &quot;+L.entry,D()),L.percentRoot=i.percentRoot=w/c.getValue(g),L.root=i.root=c.getPtLabel(g),z(&quot;percent root&quot;)&amp;&amp;!b&amp;&amp;(C=c.formatPercent(L.percentRoot,A)+&quot; of &quot;+L.root,D()),L.text=T(&quot;hovertext&quot;)||T(&quot;text&quot;),z(&quot;text&quot;)&amp;&amp;(C=L.text,s.isValidTextValue(C)&amp;&amp;P.push(C));var R={trace:l,y:E,text:P.join(&quot;&lt;br&gt;&quot;),name:k||z(&quot;name&quot;)?l.name:void 0,color:T(&quot;hoverlabel.bgcolor&quot;)||y.color,borderColor:T(&quot;hoverlabel.bordercolor&quot;),fontFamily:T(&quot;hoverlabel.font.family&quot;),fontSize:T(&quot;hoverlabel.font.size&quot;),fontColor:T(&quot;hoverlabel.font.color&quot;),nameLength:T(&quot;hoverlabel.namelength&quot;),textAlign:T(&quot;hoverlabel.align&quot;),hovertemplate:k,hovertemplateLabels:L,eventData:[f(i,l,h.eventDataKeys)]};m&amp;&amp;(R.x0=S-i.rInscribed*i.rpx1,R.x1=S+i.rInscribed*i.rpx1,R.idealAlign=i.pxmid[0]&lt;0?&quot;left&quot;:&quot;right&quot;),v&amp;&amp;(R.x=S,R.idealAlign=S&lt;0?&quot;left&quot;:&quot;right&quot;),o.loneHover(R,{container:a._hoverlayer.node(),outerContainer:a._paper.node(),gd:r}),d._hasHoverLabel=!0}if(v){var F=t.select(&quot;path.surface&quot;);h.styleOne(F,i,l,{hovered:!0})}d._hasHoverEvent=!0,r.emit(&quot;plotly_hover&quot;,{points:[f(i,l,h.eventDataKeys)],event:n.event})}})),t.on(&quot;mouseout&quot;,(function(e){var i=r._fullLayout,a=r._fullData[d.index],s=n.select(this).datum();if(d._hasHoverEvent&amp;&amp;(e.originalEvent=n.event,r.emit(&quot;plotly_unhover&quot;,{points:[f(s,a,h.eventDataKeys)],event:n.event}),d._hasHoverEvent=!1),d._hasHoverLabel&amp;&amp;(o.loneUnhover(i._hoverlayer.node()),d._hasHoverLabel=!1),v){var l=t.select(&quot;path.surface&quot;);h.styleOne(l,s,a,{hovered:!1})}})),t.on(&quot;click&quot;,(function(t){var e=r._fullLayout,a=r._fullData[d.index],s=m&amp;&amp;(c.isHierarchyRoot(t)||c.isLeaf(t)),u=c.getPtId(t),p=c.isEntry(t)?c.findEntryWithChild(g,u):c.findEntryWithLevel(g,u),v=c.getPtId(p),y={points:[f(t,a,h.eventDataKeys)],event:n.event};s||(y.nextLevel=v);var x=l.triggerHandler(r,&quot;plotly_&quot;+d.type+&quot;click&quot;,y);if(!1!==x&amp;&amp;e.hovermode&amp;&amp;(r._hoverdata=[f(t,a,h.eventDataKeys)],o.click(r,n.event)),!s&amp;&amp;!1!==x&amp;&amp;!r._dragging&amp;&amp;!r._transitioning){i.call(&quot;_storeDirectGUIEdit&quot;,a,e._tracePreGUI[a.uid],{level:a.level});var b={data:[{level:v}],traces:[d.index]},_={frame:{redraw:!1,duration:h.transitionTime},transition:{duration:h.transitionTime,easing:h.transitionEasing},mode:&quot;immediate&quot;,fromcurrent:!0};o.loneUnhover(e._hoverlayer.node()),i.call(&quot;animate&quot;,r,b,_)}}))}},{&quot;../../components/fx&quot;:683,&quot;../../components/fx/helpers&quot;:679,&quot;../../lib&quot;:778,&quot;../../lib/events&quot;:767,&quot;../../registry&quot;:911,&quot;../pie/helpers&quot;:1166,&quot;./helpers&quot;:1305,d3:169}],1305:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib/setcursor&quot;),o=t(&quot;../pie/helpers&quot;);function s(t){return t.data.data.pid}r.findEntryWithLevel=function(t,e){var n;return e&amp;&amp;t.eachAfter((function(t){if(r.getPtId(t)===e)return n=t.copy()})),n||t},r.findEntryWithChild=function(t,e){var n;return t.eachAfter((function(t){for(var i=t.children||[],a=0;a&lt;i.length;a++){var o=i[a];if(r.getPtId(o)===e)return n=t.copy()}})),n||t},r.isEntry=function(t){return!t.parent},r.isLeaf=function(t){return!t.children},r.getPtId=function(t){return t.data.data.id},r.getPtLabel=function(t){return t.data.data.label},r.getValue=function(t){return t.value},r.isHierarchyRoot=function(t){return&quot;&quot;===s(t)},r.setSliceCursor=function(t,e,n){var i=n.isTransitioning;if(!i){var o=t.datum();i=n.hideOnRoot&amp;&amp;r.isHierarchyRoot(o)||n.hideOnLeaves&amp;&amp;r.isLeaf(o)}a(t,i?null:&quot;pointer&quot;)},r.getInsideTextFontKey=function(t,e,r,i,a){var o=(a||{}).onPathbar?&quot;pathbar.textfont&quot;:&quot;insidetextfont&quot;,s=r.data.data.i;return n.castOption(e,s,o+&quot;.&quot;+t)||n.castOption(e,s,&quot;textfont.&quot;+t)||i.size},r.getOutsideTextFontKey=function(t,e,r,i){var a=r.data.data.i;return n.castOption(e,a,&quot;outsidetextfont.&quot;+t)||n.castOption(e,a,&quot;textfont.&quot;+t)||i.size},r.isOutsideText=function(t,e){return!t._hasColorscale&amp;&amp;r.isHierarchyRoot(e)},r.determineTextFont=function(t,e,a,o){return r.isOutsideText(t,e)?function(t,e,n){return{color:r.getOutsideTextFontKey(&quot;color&quot;,t,e,n),family:r.getOutsideTextFontKey(&quot;family&quot;,t,e,n),size:r.getOutsideTextFontKey(&quot;size&quot;,t,e,n)}}(t,e,a):function(t,e,a,o){var s=(o||{}).onPathbar,l=e.data.data,c=l.i,u=n.castOption(t,c,(s?&quot;pathbar.textfont&quot;:&quot;insidetextfont&quot;)+&quot;.color&quot;);return!u&amp;&amp;t._input.textfont&amp;&amp;(u=n.castOption(t._input,c,&quot;textfont.color&quot;)),{color:u||i.contrast(l.color),family:r.getInsideTextFontKey(&quot;family&quot;,t,e,a,o),size:r.getInsideTextFontKey(&quot;size&quot;,t,e,a,o)}}(t,e,a,o)},r.hasTransition=function(t){return!!(t&amp;&amp;t.duration&gt;0)},r.getMaxDepth=function(t){return t.maxdepth&gt;=0?t.maxdepth:1/0},r.isHeader=function(t,e){return!(r.isLeaf(t)||t.depth===e._maxDepth-1)},r.getParent=function(t,e){return r.findEntryWithLevel(t,s(e))},r.listPath=function(t,e){var n=t.parent;if(!n)return[];var i=e?[n.data[e]]:[n];return r.listPath(n,e).concat(i)},r.getPath=function(t){return r.listPath(t,&quot;label&quot;).join(&quot;/&quot;)+&quot;/&quot;},r.formatValue=o.formatPieValue,r.formatPercent=function(t,e){var r=n.formatPercent(t,0);return&quot;0%&quot;===r&amp;&amp;(r=o.formatPiePercent(t,e)),r}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../pie/helpers&quot;:1166}],1306:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;sunburst&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1299,&quot;./base_plot&quot;:1300,&quot;./calc&quot;:1301,&quot;./defaults&quot;:1303,&quot;./layout_attributes&quot;:1307,&quot;./layout_defaults&quot;:1308,&quot;./plot&quot;:1309,&quot;./style&quot;:1310}],1307:[function(t,e,r){&quot;use strict&quot;;e.exports={sunburstcolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendsunburstcolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1308:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;sunburstcolorway&quot;,e.colorway),r(&quot;extendsunburstcolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1307}],1309:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-hierarchy&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../bar/uniform_text&quot;),c=l.recordMinTextSize,u=l.clearMinTextSize,f=t(&quot;../pie/plot&quot;),h=t(&quot;../pie/helpers&quot;).getRotationAngle,p=f.computeTransform,d=f.transformInsideText,g=t(&quot;./style&quot;).styleOne,m=t(&quot;../bar/style&quot;).resizeText,v=t(&quot;./fx&quot;),y=t(&quot;./constants&quot;),x=t(&quot;./helpers&quot;);function b(t,e,l,u){var f=t._fullLayout,m=!f.uniformtext.mode&amp;&amp;x.hasTransition(u),b=n.select(l).selectAll(&quot;g.slice&quot;),w=e[0],T=w.trace,k=w.hierarchy,M=x.findEntryWithLevel(k,T.level),A=x.getMaxDepth(T),S=f._size,E=T.domain,C=S.w*(E.x[1]-E.x[0]),L=S.h*(E.y[1]-E.y[0]),I=.5*Math.min(C,L),P=w.cx=S.l+S.w*(E.x[1]+E.x[0])/2,z=w.cy=S.t+S.h*(1-E.y[0])-L/2;if(!M)return b.remove();var O=null,D={};m&amp;&amp;b.each((function(t){D[x.getPtId(t)]={rpx0:t.rpx0,rpx1:t.rpx1,x0:t.x0,x1:t.x1,transform:t.transform},!O&amp;&amp;x.isEntry(t)&amp;&amp;(O=t)}));var R=function(t){return i.partition().size([2*Math.PI,t.height+1])(t)}(M).descendants(),F=M.height+1,B=0,N=A;w.hasMultipleRoots&amp;&amp;x.isHierarchyRoot(M)&amp;&amp;(R=R.slice(1),F-=1,B=1,N+=1),R=R.filter((function(t){return t.y1&lt;=N}));var j=h(T.rotation);j&amp;&amp;R.forEach((function(t){t.x0+=j,t.x1+=j}));var U=Math.min(F,A),V=function(t){return(t-B)/U*I},q=function(t,e){return[t*Math.cos(e),-t*Math.sin(e)]},H=function(t){return o.pathAnnulus(t.rpx0,t.rpx1,t.x0,t.x1,P,z)},G=function(t){return P+_(t)[0]*(t.transform.rCenter||0)+(t.transform.x||0)},Y=function(t){return z+_(t)[1]*(t.transform.rCenter||0)+(t.transform.y||0)};(b=b.data(R,x.getPtId)).enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),m?b.exit().transition().each((function(){var t=n.select(this);t.select(&quot;path.surface&quot;).transition().attrTween(&quot;d&quot;,(function(t){var e=function(t){var e,r=x.getPtId(t),i=D[r],a=D[x.getPtId(M)];if(a){var o=(t.x1&gt;a.x1?2*Math.PI:0)+j;e=t.rpx1&lt;a.rpx1?{rpx0:0,rpx1:0}:{x0:o,x1:o}}else{var s,l=x.getPtId(t.parent);b.each((function(t){if(x.getPtId(t)===l)return s=t}));var c,u=s.children;u.forEach((function(t,e){if(x.getPtId(t)===r)return c=e}));var f=u.length,h=n.interpolate(s.x0,s.x1);e={rpx0:I,rpx1:I,x0:h(c/f),x1:h((c+1)/f)}}return n.interpolate(i,e)}(t);return function(t){return H(e(t))}})),t.select(&quot;g.slicetext&quot;).attr(&quot;opacity&quot;,0)})).remove():b.exit().remove(),b.order();var W=null;if(m&amp;&amp;O){var X=x.getPtId(O);b.each((function(t){null===W&amp;&amp;x.getPtId(t)===X&amp;&amp;(W=t.x1)}))}var Z=b;function J(t){var e=t.parent,r=D[x.getPtId(e)],i={};if(r){var a=e.children,o=a.indexOf(t),s=a.length,l=n.interpolate(r.x0,r.x1);i.x0=l(o/s),i.x1=l(o/s)}else i.x0=i.x1=0;return i}m&amp;&amp;(Z=Z.transition().each(&quot;end&quot;,(function(){var e=n.select(this);x.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})}))),Z.each((function(i){var l=n.select(this),u=o.ensureSingle(l,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));i.rpx0=V(i.y0),i.rpx1=V(i.y1),i.xmid=(i.x0+i.x1)/2,i.pxmid=q(i.rpx1,i.xmid),i.midangle=-(i.xmid-Math.PI/2),i.startangle=-(i.x0-Math.PI/2),i.stopangle=-(i.x1-Math.PI/2),i.halfangle=.5*Math.min(o.angleDelta(i.x0,i.x1)||Math.PI,Math.PI),i.ring=1-i.rpx0/i.rpx1,i.rInscribed=function(t){return 0===t.rpx0&amp;&amp;o.isFullCircle([t.x0,t.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2))}(i),m?u.transition().attrTween(&quot;d&quot;,(function(t){var e=function(t){var e,r=D[x.getPtId(t)],i={x0:t.x0,x1:t.x1,rpx0:t.rpx0,rpx1:t.rpx1};if(r)e=r;else if(O)if(t.parent)if(W){var a=(t.x1&gt;W?2*Math.PI:0)+j;e={x0:a,x1:a}}else e={rpx0:I,rpx1:I},o.extendFlat(e,J(t));else e={rpx0:0,rpx1:0};else e={x0:j,x1:j};return n.interpolate(e,i)}(t);return function(t){return H(e(t))}})):u.attr(&quot;d&quot;,H),l.call(v,M,t,e,{eventDataKeys:y.eventDataKeys,transitionTime:y.CLICK_TRANSITION_TIME,transitionEasing:y.CLICK_TRANSITION_EASING}).call(x.setSliceCursor,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:t._transitioning}),u.call(g,i,T);var h=o.ensureSingle(l,&quot;g&quot;,&quot;slicetext&quot;),b=o.ensureSingle(h,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),_=o.ensureUniformFontSize(t,x.determineTextFont(T,i,f.font));b.text(r.formatSliceLabel(i,M,T,e,f)).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(a.font,_).call(s.convertToTspans,t);var k=a.bBox(b.node());i.transform=d(k,i,w),i.transform.targetX=G(i),i.transform.targetY=Y(i);var A=function(t,e){var r=t.transform;return p(r,e),r.fontSize=_.size,c(T.type,r,f),o.getTextTransform(r)};m?b.transition().attrTween(&quot;transform&quot;,(function(t){var e=function(t){var e,r=D[x.getPtId(t)],i=t.transform;if(r)e=r;else if(e={rpx1:t.rpx1,transform:{textPosAngle:i.textPosAngle,scale:0,rotate:i.rotate,rCenter:i.rCenter,x:i.x,y:i.y}},O)if(t.parent)if(W){var a=t.x1&gt;W?2*Math.PI:0;e.x0=e.x1=a}else o.extendFlat(e,J(t));else e.x0=e.x1=j;else e.x0=e.x1=j;var s=n.interpolate(e.transform.textPosAngle,t.transform.textPosAngle),l=n.interpolate(e.rpx1,t.rpx1),u=n.interpolate(e.x0,t.x0),h=n.interpolate(e.x1,t.x1),p=n.interpolate(e.transform.scale,i.scale),d=n.interpolate(e.transform.rotate,i.rotate),g=0===i.rCenter?3:0===e.transform.rCenter?1/3:1,m=n.interpolate(e.transform.rCenter,i.rCenter);return function(t){var e=l(t),r=u(t),n=h(t),a=function(t){return m(Math.pow(t,g))}(t),o={pxmid:q(e,(r+n)/2),rpx1:e,transform:{textPosAngle:s(t),rCenter:a,x:i.x,y:i.y}};return c(T.type,i,f),{transform:{targetX:G(o),targetY:Y(o),scale:p(t),rotate:d(t),rCenter:a}}}}(t);return function(t){return A(e(t),k)}})):b.attr(&quot;transform&quot;,A(i,k))}))}function _(t){return e=t.rpx1,r=t.transform.textPosAngle,[e*Math.sin(r),-e*Math.cos(r)];var e,r}r.plot=function(t,e,r,i){var a,o,s=t._fullLayout,l=s._sunburstlayer,c=!r,f=!s.uniformtext.mode&amp;&amp;x.hasTransition(r);(u(&quot;sunburst&quot;,s),(a=l.selectAll(&quot;g.trace.sunburst&quot;).data(e,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).classed(&quot;trace&quot;,!0).classed(&quot;sunburst&quot;,!0).attr(&quot;stroke-linejoin&quot;,&quot;round&quot;),a.order(),f)?(i&amp;&amp;(o=i()),n.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){o&amp;&amp;o()})).each(&quot;interrupt&quot;,(function(){o&amp;&amp;o()})).each((function(){l.selectAll(&quot;g.trace&quot;).each((function(e){b(t,e,this,r)}))}))):(a.each((function(e){b(t,e,this,r)})),s.uniformtext.mode&amp;&amp;m(t,s._sunburstlayer.selectAll(&quot;.trace&quot;),&quot;sunburst&quot;));c&amp;&amp;a.exit().remove()},r.formatSliceLabel=function(t,e,r,n,i){var a=r.texttemplate,s=r.textinfo;if(!(a||s&amp;&amp;&quot;none&quot;!==s))return&quot;&quot;;var l=i.separators,c=n[0],u=t.data.data,f=c.hierarchy,h=x.isHierarchyRoot(t),p=x.getParent(f,t),d=x.getValue(t);if(!a){var g,m=s.split(&quot;+&quot;),v=function(t){return-1!==m.indexOf(t)},y=[];if(v(&quot;label&quot;)&amp;&amp;u.label&amp;&amp;y.push(u.label),u.hasOwnProperty(&quot;v&quot;)&amp;&amp;v(&quot;value&quot;)&amp;&amp;y.push(x.formatValue(u.v,l)),!h){v(&quot;current path&quot;)&amp;&amp;y.push(x.getPath(t.data));var b=0;v(&quot;percent parent&quot;)&amp;&amp;b++,v(&quot;percent entry&quot;)&amp;&amp;b++,v(&quot;percent root&quot;)&amp;&amp;b++;var _=b&gt;1;if(b){var w,T=function(t){g=x.formatPercent(w,l),_&amp;&amp;(g+=&quot; of &quot;+t),y.push(g)};v(&quot;percent parent&quot;)&amp;&amp;!h&amp;&amp;(w=d/x.getValue(p),T(&quot;parent&quot;)),v(&quot;percent entry&quot;)&amp;&amp;(w=d/x.getValue(e),T(&quot;entry&quot;)),v(&quot;percent root&quot;)&amp;&amp;(w=d/x.getValue(f),T(&quot;root&quot;))}}return v(&quot;text&quot;)&amp;&amp;(g=o.castOption(r,u.i,&quot;text&quot;),o.isValidTextValue(g)&amp;&amp;y.push(g)),y.join(&quot;&lt;br&gt;&quot;)}var k=o.castOption(r,u.i,&quot;texttemplate&quot;);if(!k)return&quot;&quot;;var M={};u.label&amp;&amp;(M.label=u.label),u.hasOwnProperty(&quot;v&quot;)&amp;&amp;(M.value=u.v,M.valueLabel=x.formatValue(u.v,l)),M.currentPath=x.getPath(t.data),h||(M.percentParent=d/x.getValue(p),M.percentParentLabel=x.formatPercent(M.percentParent,l),M.parent=x.getPtLabel(p)),M.percentEntry=d/x.getValue(e),M.percentEntryLabel=x.formatPercent(M.percentEntry,l),M.entry=x.getPtLabel(e),M.percentRoot=d/x.getValue(f),M.percentRootLabel=x.formatPercent(M.percentRoot,l),M.root=x.getPtLabel(f),u.hasOwnProperty(&quot;color&quot;)&amp;&amp;(M.color=u.color);var A=o.castOption(r,u.i,&quot;text&quot;);return(o.isValidTextValue(A)||&quot;&quot;===A)&amp;&amp;(M.text=A),M.customdata=o.castOption(r,u.i,&quot;customdata&quot;),o.texttemplateString(k,M,i._d3locale,M,r._meta||{})}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,&quot;../pie/helpers&quot;:1166,&quot;../pie/plot&quot;:1170,&quot;./constants&quot;:1302,&quot;./fx&quot;:1304,&quot;./helpers&quot;:1305,&quot;./style&quot;:1310,d3:169,&quot;d3-hierarchy&quot;:161}],1310:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../bar/uniform_text&quot;).resizeText;function s(t,e,r){var n=e.data.data,o=!e.children,s=n.i,l=a.castOption(r,s,&quot;marker.line.color&quot;)||i.defaultLine,c=a.castOption(r,s,&quot;marker.line.width&quot;)||0;t.style(&quot;stroke-width&quot;,c).call(i.fill,n.color).call(i.stroke,l).style(&quot;opacity&quot;,o?r.leaf.opacity:null)}e.exports={style:function(t){var e=t._fullLayout._sunburstlayer.selectAll(&quot;.trace&quot;);o(t,e,&quot;sunburst&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(s,t,r)}))}))},styleOne:s}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/uniform_text&quot;:937,d3:169}],1311:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll;function c(t){return{show:{valType:&quot;boolean&quot;,dflt:!1},start:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;},end:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;},size:{valType:&quot;number&quot;,dflt:null,min:0,editType:&quot;plot&quot;},project:{x:{valType:&quot;boolean&quot;,dflt:!1},y:{valType:&quot;boolean&quot;,dflt:!1},z:{valType:&quot;boolean&quot;,dflt:!1}},color:{valType:&quot;color&quot;,dflt:n.defaultLine},usecolormap:{valType:&quot;boolean&quot;,dflt:!1},width:{valType:&quot;number&quot;,min:1,max:16,dflt:2},highlight:{valType:&quot;boolean&quot;,dflt:!0},highlightcolor:{valType:&quot;color&quot;,dflt:n.defaultLine},highlightwidth:{valType:&quot;number&quot;,min:1,max:16,dflt:2}}}var u=e.exports=l(s({z:{valType:&quot;data_array&quot;},x:{valType:&quot;data_array&quot;},y:{valType:&quot;data_array&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertemplate:a(),connectgaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},surfacecolor:{valType:&quot;data_array&quot;}},i(&quot;&quot;,{colorAttr:&quot;z or surfacecolor&quot;,showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}),{contours:{x:c(),y:c(),z:c()},hidesurface:{valType:&quot;boolean&quot;,dflt:!1},lightposition:{x:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:10},y:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:1e4},z:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:&quot;number&quot;,min:0,max:1,dflt:.8},diffuse:{valType:&quot;number&quot;,min:0,max:1,dflt:.8},specular:{valType:&quot;number&quot;,min:0,max:2,dflt:.05},roughness:{valType:&quot;number&quot;,min:0,max:1,dflt:.5},fresnel:{valType:&quot;number&quot;,min:0,max:5,dflt:.2}},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},opacityscale:{valType:&quot;any&quot;,editType:&quot;calc&quot;},_deprecated:{zauto:s({},i.zauto,{}),zmin:s({},i.zmin,{}),zmax:s({},i.zmax,{})},hoverinfo:s({},o.hoverinfo),showlegend:s({},o.showlegend,{dflt:!1})}),&quot;calc&quot;,&quot;nested&quot;);u.x.editType=u.y.editType=u.z.editType=&quot;calc+clearAxisTypes&quot;,u.transforms=void 0},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906}],1312:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){e.surfacecolor?n(t,e,{vals:e.surfacecolor,containerStr:&quot;&quot;,cLetter:&quot;c&quot;}):n(t,e,{vals:e.z,containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651}],1313:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-surface3d&quot;),i=t(&quot;ndarray&quot;),a=t(&quot;ndarray-linear-interpolate&quot;).d2,o=t(&quot;../heatmap/interp2d&quot;),s=t(&quot;../heatmap/find_empties&quot;),l=t(&quot;../../lib&quot;).isArrayOrTypedArray,c=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,u=t(&quot;../../lib/str2rgbarray&quot;),f=t(&quot;../../components/colorscale&quot;).extractOpts;function h(t,e,r){this.scene=t,this.uid=r,this.surface=e,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var p=h.prototype;p.getXat=function(t,e,r,n){var i=l(this.data.x)?l(this.data.x[0])?this.data.x[e][t]:this.data.x[t]:t;return void 0===r?i:n.d2l(i,0,r)},p.getYat=function(t,e,r,n){var i=l(this.data.y)?l(this.data.y[0])?this.data.y[e][t]:this.data.y[e]:e;return void 0===r?i:n.d2l(i,0,r)},p.getZat=function(t,e,r,n){var i=this.data.z[e][t];return null===i&amp;&amp;this.data.connectgaps&amp;&amp;this.data._interpolatedZ&amp;&amp;(i=this.data._interpolatedZ[e][t]),void 0===r?i:n.d2l(i,0,r)},p.handlePick=function(t){if(t.object===this.surface){var e=(t.data.index[0]-1)/this.dataScaleX-1,r=(t.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(e),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);t.index=[n,i],t.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],t.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a&lt;3;a++){var o=t.dataCoordinate[a];null!=o&amp;&amp;(t.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return Array.isArray(s)&amp;&amp;s[i]&amp;&amp;void 0!==s[i][n]?t.textLabel=s[i][n]:t.textLabel=s||&quot;&quot;,t.data.dataCoordinate=t.dataCoordinate.slice(),this.surface.highlight(t.data),this.scene.glplot.spikes.position=t.dataCoordinate,!0}};var d=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function g(t,e){if(t&lt;e)return 0;for(var r=0;0===Math.floor(t%e);)t/=e,r++;return r}function m(t){for(var e=[],r=0;r&lt;d.length;r++){var n=d[r];e.push(g(t,n))}return e}function v(t){for(var e=m(t),r=t,n=0;n&lt;d.length;n++)if(e[n]&gt;0){r=d[n];break}return r}function y(t,e){if(!(t&lt;1||e&lt;1)){for(var r=m(t),n=m(e),i=1,a=0;a&lt;d.length;a++)i*=Math.pow(d[a],Math.max(r[a],n[a]));return i}}p.calcXnums=function(t){var e,r=[];for(e=1;e&lt;t;e++){var n=this.getXat(e-1,0),i=this.getXat(e,0);r[e-1]=i!==n&amp;&amp;null!=n&amp;&amp;null!=i?Math.abs(i-n):0}var a=0;for(e=1;e&lt;t;e++)a+=r[e-1];for(e=1;e&lt;t;e++)0===r[e-1]?r[e-1]=1:r[e-1]=Math.round(a/r[e-1]);return r},p.calcYnums=function(t){var e,r=[];for(e=1;e&lt;t;e++){var n=this.getYat(0,e-1),i=this.getYat(0,e);r[e-1]=i!==n&amp;&amp;null!=n&amp;&amp;null!=i?Math.abs(i-n):0}var a=0;for(e=1;e&lt;t;e++)a+=r[e-1];for(e=1;e&lt;t;e++)0===r[e-1]?r[e-1]=1:r[e-1]=Math.round(a/r[e-1]);return r};var x=[1,2,4,6,12,24,36,48,60,120,180,240,360,720,840,1260],b=x[9],_=x[13];function w(t,e,r){var n=r[8]+r[2]*e[0]+r[5]*e[1];return t[0]=(r[6]+r[0]*e[0]+r[3]*e[1])/n,t[1]=(r[7]+r[1]*e[0]+r[4]*e[1])/n,t}function T(t,e,r){return function(t,e,r,n){for(var i=[0,0],o=t.shape[0],s=t.shape[1],l=0;l&lt;o;l++)for(var c=0;c&lt;s;c++)r(i,[l,c],n),t.set(l,c,a(e,i[0],i[1]))}(t,e,w,r),t}function k(t,e){for(var r=!1,n=0;n&lt;t.length;n++)if(e===t[n]){r=!0;break}!1===r&amp;&amp;t.push(e)}p.estimateScale=function(t,e){for(var r=1+function(t){if(0!==t.length){for(var e=1,r=0;r&lt;t.length;r++)e=y(e,t[r]);return e}}(0===e?this.calcXnums(t):this.calcYnums(t));r&lt;b;)r*=2;for(;r&gt;_;)r--,r/=v(r),++r&lt;b&amp;&amp;(r=_);var n=Math.round(r/t);return n&gt;1?n:1},p.refineCoords=function(t){for(var e=this.dataScaleX,r=this.dataScaleY,n=t[0].shape[0],a=t[0].shape[1],o=0|Math.floor(t[0].shape[0]*e+1),s=0|Math.floor(t[0].shape[1]*r+1),l=1+n+1,c=1+a+1,u=i(new Float32Array(l*c),[l,c]),f=[1/e,0,0,0,1/r,0,0,0,1],h=0;h&lt;t.length;++h){this.surface.padField(u,t[h]);var p=i(new Float32Array(o*s),[o,s]);T(p,u,f),t[h]=p}},p.setContourLevels=function(){var t,e,r,n=[[],[],[]],i=[!1,!1,!1],a=!1;for(t=0;t&lt;3;++t)if(this.showContour[t]&amp;&amp;(a=!0,this.contourSize[t]&gt;0&amp;&amp;null!==this.contourStart[t]&amp;&amp;null!==this.contourEnd[t]&amp;&amp;this.contourEnd[t]&gt;this.contourStart[t]))for(i[t]=!0,e=this.contourStart[t];e&lt;this.contourEnd[t];e+=this.contourSize[t])r=e*this.scene.dataScale[t],k(n[t],r);if(a){var o=[[],[],[]];for(t=0;t&lt;3;++t)this.showContour[t]&amp;&amp;(o[t]=i[t]?n[t]:this.scene.contourLevels[t]);this.surface.update({levels:o})}},p.update=function(t){var e,r,n,a,l=this.scene,h=l.fullSceneLayout,p=this.surface,d=c(t),g=l.dataScale,m=t.z[0].length,v=t._ylength,y=l.contourLevels;this.data=t;var x=[];for(e=0;e&lt;3;e++)for(x[e]=[],r=0;r&lt;m;r++)x[e][r]=[];for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)x[0][r][n]=this.getXat(r,n,t.xcalendar,h.xaxis),x[1][r][n]=this.getYat(r,n,t.ycalendar,h.yaxis),x[2][r][n]=this.getZat(r,n,t.zcalendar,h.zaxis);if(t.connectgaps)for(t._emptypoints=s(x[2]),o(x[2],t._emptypoints),t._interpolatedZ=[],r=0;r&lt;m;r++)for(t._interpolatedZ[r]=[],n=0;n&lt;v;n++)t._interpolatedZ[r][n]=x[2][r][n];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null==(a=x[e][r][n])?x[e][r][n]=NaN:a=x[e][r][n]*=g[e];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null!=(a=x[e][r][n])&amp;&amp;(this.minValues[e]&gt;a&amp;&amp;(this.minValues[e]=a),this.maxValues[e]&lt;a&amp;&amp;(this.maxValues[e]=a));for(e=0;e&lt;3;e++)this.objectOffset[e]=.5*(this.minValues[e]+this.maxValues[e]);for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null!=(a=x[e][r][n])&amp;&amp;(x[e][r][n]-=this.objectOffset[e]);var b=[i(new Float32Array(m*v),[m,v]),i(new Float32Array(m*v),[m,v]),i(new Float32Array(m*v),[m,v])];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)b[e].set(r,n,x[e][r][n]);x=[];var w={colormap:d,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!t.hidesurface,contourProject:[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],contourWidth:[1,1,1],contourColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],contourTint:[1,1,1],dynamicColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],dynamicWidth:[1,1,1],dynamicTint:[1,1,1],opacityscale:t.opacityscale,opacity:t.opacity},T=f(t);if(w.intensityBounds=[T.min,T.max],t.surfacecolor){var k=i(new Float32Array(m*v),[m,v]);for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)k.set(r,n,t.surfacecolor[n][r]);b.push(k)}else w.intensityBounds[0]*=g[2],w.intensityBounds[1]*=g[2];(_&lt;b[0].shape[0]||_&lt;b[0].shape[1])&amp;&amp;(this.refineData=!1),!0===this.refineData&amp;&amp;(this.dataScaleX=this.estimateScale(b[0].shape[0],0),this.dataScaleY=this.estimateScale(b[0].shape[1],1),1===this.dataScaleX&amp;&amp;1===this.dataScaleY||this.refineCoords(b)),t.surfacecolor&amp;&amp;(w.intensity=b.pop());var M=[!0,!0,!0],A=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(e=0;e&lt;3;++e){var S=t.contours[A[e]];M[e]=S.highlight,w.showContour[e]=S.show||S.highlight,w.showContour[e]&amp;&amp;(w.contourProject[e]=[S.project.x,S.project.y,S.project.z],S.show?(this.showContour[e]=!0,w.levels[e]=y[e],p.highlightColor[e]=w.contourColor[e]=u(S.color),S.usecolormap?p.highlightTint[e]=w.contourTint[e]=0:p.highlightTint[e]=w.contourTint[e]=1,w.contourWidth[e]=S.width,this.contourStart[e]=S.start,this.contourEnd[e]=S.end,this.contourSize[e]=S.size):(this.showContour[e]=!1,this.contourStart[e]=null,this.contourEnd[e]=null,this.contourSize[e]=0),S.highlight&amp;&amp;(w.dynamicColor[e]=u(S.highlightcolor),w.dynamicWidth[e]=S.highlightwidth))}(function(t){var e=t[0].rgb,r=t[t.length-1].rgb;return e[0]===r[0]&amp;&amp;e[1]===r[1]&amp;&amp;e[2]===r[2]&amp;&amp;e[3]===r[3]})(d)&amp;&amp;(w.vertexColor=!0),w.objectOffset=this.objectOffset,w.coords=b,p.update(w),p.visible=t.visible,p.enableDynamic=M,p.enableHighlight=M,p.snapToData=!0,&quot;lighting&quot;in t&amp;&amp;(p.ambientLight=t.lighting.ambient,p.diffuseLight=t.lighting.diffuse,p.specularLight=t.lighting.specular,p.roughness=t.lighting.roughness,p.fresnel=t.lighting.fresnel),&quot;lightposition&quot;in t&amp;&amp;(p.lightPosition=[t.lightposition.x,t.lightposition.y,t.lightposition.z])},p.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new h(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../heatmap/find_empties&quot;:1071,&quot;../heatmap/interp2d&quot;:1074,&quot;gl-surface3d&quot;:351,ndarray:495,&quot;ndarray-linear-interpolate&quot;:489}],1314:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r,n){var i=n(&quot;opacityscale&quot;);&quot;max&quot;===i?e.opacityscale=[[0,.1],[1,1]]:&quot;min&quot;===i?e.opacityscale=[[0,1],[1,.1]]:&quot;extremes&quot;===i?e.opacityscale=function(t,e){for(var r=[],n=0;n&lt;32;n++){var i=n/31,a=e+(1-e)*(1-Math.pow(Math.sin(t*i*Math.PI),2));r.push([i,Math.max(0,Math.min(1,a))])}return r}(1,.1):function(t){var e=0;if(!Array.isArray(t)||t.length&lt;2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r&lt;t.length;r++){var n=t[r];if(2!==n.length||+n[0]&lt;e)return!1;e=+n[0]}return!0}(i)||(e.opacityscale=void 0)}function l(t,e,r){e in t&amp;&amp;!(r in t)&amp;&amp;(t[r]=t[e])}e.exports={supplyDefaults:function(t,e,r,c){var u,f;function h(r,n){return i.coerce(t,e,o,r,n)}var p=h(&quot;x&quot;),d=h(&quot;y&quot;),g=h(&quot;z&quot;);if(!g||!g.length||p&amp;&amp;p.length&lt;1||d&amp;&amp;d.length&lt;1)e.visible=!1;else{e._xlength=Array.isArray(p)&amp;&amp;i.isArrayOrTypedArray(p[0])?g.length:g[0].length,e._ylength=g.length,n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],c),h(&quot;text&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;),[&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;hidesurface&quot;,&quot;connectgaps&quot;,&quot;opacity&quot;].forEach((function(t){h(t)}));var m=h(&quot;surfacecolor&quot;),v=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(u=0;u&lt;3;++u){var y=&quot;contours.&quot;+v[u],x=h(y+&quot;.show&quot;),b=h(y+&quot;.highlight&quot;);if(x||b)for(f=0;f&lt;3;++f)h(y+&quot;.project.&quot;+v[f]);x&amp;&amp;(h(y+&quot;.color&quot;),h(y+&quot;.width&quot;),h(y+&quot;.usecolormap&quot;)),b&amp;&amp;(h(y+&quot;.highlightcolor&quot;),h(y+&quot;.highlightwidth&quot;)),h(y+&quot;.start&quot;),h(y+&quot;.end&quot;),h(y+&quot;.size&quot;)}m||(l(t,&quot;zmin&quot;,&quot;cmin&quot;),l(t,&quot;zmax&quot;,&quot;cmax&quot;),l(t,&quot;zauto&quot;,&quot;cauto&quot;)),a(t,e,c,h,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(t,e,c,h),e._length=null}},opacityscaleDefaults:s}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1311}],1315:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;surface&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;2dMap&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1311,&quot;./calc&quot;:1312,&quot;./convert&quot;:1313,&quot;./defaults&quot;:1314}],1316:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/annotations/attributes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../../plot_api/edit_types&quot;).overrideAll,o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes;t(&quot;../../constants/docs&quot;).FORMAT_LINK;(e.exports=a({domain:s({name:&quot;table&quot;,trace:!0}),columnwidth:{valType:&quot;number&quot;,arrayOk:!0,dflt:null},columnorder:{valType:&quot;data_array&quot;},header:{values:{valType:&quot;data_array&quot;,dflt:[]},format:{valType:&quot;data_array&quot;,dflt:[]},prefix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},suffix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},height:{valType:&quot;number&quot;,dflt:28},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:&quot;number&quot;,arrayOk:!0,dflt:1},color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;grey&quot;}},fill:{color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;white&quot;}},font:i({},o({arrayOk:!0}))},cells:{values:{valType:&quot;data_array&quot;,dflt:[]},format:{valType:&quot;data_array&quot;,dflt:[]},prefix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},suffix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},height:{valType:&quot;number&quot;,dflt:20},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:&quot;number&quot;,arrayOk:!0,dflt:1},color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;grey&quot;}},fill:{color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;white&quot;}},font:i({},o({arrayOk:!0}))}},&quot;calc&quot;,&quot;from-root&quot;)).transforms=void 0},{&quot;../../components/annotations/attributes&quot;:626,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856}],1317:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getModuleCalcData,i=t(&quot;./plot&quot;);r.name=&quot;table&quot;,r.plot=function(t){var e=n(t.calcdata,&quot;table&quot;)[0];e.length&amp;&amp;i(t,e)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;table&quot;),a=e._has&amp;&amp;e._has(&quot;table&quot;);i&amp;&amp;!a&amp;&amp;n._paperdiv.selectAll(&quot;.table&quot;).remove()}},{&quot;../../plots/get_data&quot;:865,&quot;./plot&quot;:1324}],1318:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/gup&quot;).wrap;e.exports=function(){return n({})}},{&quot;../../lib/gup&quot;:775}],1319:[function(t,e,r){&quot;use strict&quot;;e.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:&quot;&lt;br&gt;&quot;,maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:&quot;cubic-out&quot;,scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:&quot;cubic-out&quot;,uplift:5,wrapSpacer:&quot; &quot;,wrapSplitCharacter:&quot; &quot;,cn:{table:&quot;table&quot;,tableControlView:&quot;table-control-view&quot;,scrollBackground:&quot;scroll-background&quot;,yColumn:&quot;y-column&quot;,columnBlock:&quot;column-block&quot;,scrollAreaClip:&quot;scroll-area-clip&quot;,scrollAreaClipRect:&quot;scroll-area-clip-rect&quot;,columnBoundary:&quot;column-boundary&quot;,columnBoundaryClippath:&quot;column-boundary-clippath&quot;,columnBoundaryRect:&quot;column-boundary-rect&quot;,columnCells:&quot;column-cells&quot;,columnCell:&quot;column-cell&quot;,cellRect:&quot;cell-rect&quot;,cellText:&quot;cell-text&quot;,cellTextHolder:&quot;cell-text-holder&quot;,scrollbarKit:&quot;scrollbar-kit&quot;,scrollbar:&quot;scrollbar&quot;,scrollbarSlider:&quot;scrollbar-slider&quot;,scrollbarGlyph:&quot;scrollbar-glyph&quot;,scrollbarCaptureZone:&quot;scrollbar-capture-zone&quot;}}},{}],1320:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;fast-isnumeric&quot;);function o(t){if(Array.isArray(t)){for(var e=0,r=0;r&lt;t.length;r++)e=Math.max(e,o(t[r]));return e}return t}function s(t,e){return t+e}function l(t){var e,r=t.slice(),n=1/0,i=0;for(e=0;e&lt;r.length;e++)Array.isArray(r[e])||(r[e]=[r[e]]),n=Math.min(n,r[e].length),i=Math.max(i,r[e].length);if(n!==i)for(e=0;e&lt;r.length;e++){var a=i-r[e].length;a&amp;&amp;(r[e]=r[e].concat(c(a)))}return r}function c(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=&quot;&quot;;return e}function u(t){return t.calcdata.columns.reduce((function(e,r){return r.xIndex&lt;t.xIndex?e+r.columnWidth:e}),0)}function f(t,e){return Object.keys(t).map((function(r){return i({},t[r],{auxiliaryBlocks:e})}))}function h(t,e){for(var r,n={},i=0,a=0,o={firstRowIndex:null,lastRowIndex:null,rows:[]},s=0,l=0,c=0;c&lt;t.length;c++)r=t[c],o.rows.push({rowIndex:c,rowHeight:r}),((a+=r)&gt;=e||c===t.length-1)&amp;&amp;(n[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=c,o={firstRowIndex:null,lastRowIndex:null,rows:[]},i+=a,s=c+1,a=0);return n}e.exports=function(t,e){var r=l(e.cells.values),p=function(t){return t.slice(e.header.values.length,t.length)},d=l(e.header.values);d.length&amp;&amp;!d[0].length&amp;&amp;(d[0]=[&quot;&quot;],d=l(d));var g=d.concat(p(r).map((function(){return c((d[0]||[&quot;&quot;]).length)}))),m=e.domain,v=Math.floor(t._fullLayout._size.w*(m.x[1]-m.x[0])),y=Math.floor(t._fullLayout._size.h*(m.y[1]-m.y[0])),x=e.header.values.length?g[0].map((function(){return e.header.height})):[n.emptyHeaderHeight],b=r.length?r[0].map((function(){return e.cells.height})):[],_=x.reduce(s,0),w=h(b,y-_+n.uplift),T=f(h(x,_),[]),k=f(w,T),M={},A=e._fullInput.columnorder.concat(p(r.map((function(t,e){return e})))),S=g.map((function(t,r){var n=Array.isArray(e.columnwidth)?e.columnwidth[Math.min(r,e.columnwidth.length-1)]:e.columnwidth;return a(n)?Number(n):1})),E=S.reduce(s,0);S=S.map((function(t){return t/E*v}));var C=Math.max(o(e.header.line.width),o(e.cells.line.width)),L={key:e.uid+t._context.staticPlot,translateX:m.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-m.y[1]),size:t._fullLayout._size,width:v,maxLineWidth:C,height:y,columnOrder:A,groupHeight:y,rowBlocks:k,headerRowBlocks:T,scrollY:0,cells:i({},e.cells,{values:r}),headerCells:i({},e.header,{values:g}),gdColumns:g.map((function(t){return t[0]})),gdColumnsOriginalOrder:g.map((function(t){return t[0]})),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:g.map((function(t,e){var r=M[t];return M[t]=(r||0)+1,{key:t+&quot;__&quot;+M[t],label:t,specIndex:e,xIndex:A[e],xScale:u,x:void 0,calcdata:void 0,columnWidth:S[e]}}))};return L.columns.forEach((function(t){t.calcdata=L,t.x=u(t)})),L}},{&quot;../../lib/extend&quot;:768,&quot;./constants&quot;:1319,&quot;fast-isnumeric&quot;:241}],1321:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat;r.splitToPanels=function(t){var e=[0,0],r=n({},t,{key:&quot;header&quot;,type:&quot;header&quot;,page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!0,values:t.calcdata.headerCells.values[t.specIndex],rowBlocks:t.calcdata.headerRowBlocks,calcdata:n({},t.calcdata,{cells:t.calcdata.headerCells})});return[n({},t,{key:&quot;cells1&quot;,type:&quot;cells&quot;,page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),n({},t,{key:&quot;cells2&quot;,type:&quot;cells&quot;,page:1,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),r]},r.splitToCells=function(t){var e=function(t){var e=t.rowBlocks[t.page],r=e?e.rows[0].rowIndex:0,n=e?r+e.rows.length:0;return[r,n]}(t);return(t.values||[]).slice(e[0],e[1]).map((function(r,n){return{keyWithinBlock:n+(&quot;string&quot;==typeof r&amp;&amp;r.match(/[&lt;$&amp;&gt; ]/)?&quot;_keybuster_&quot;+Math.random():&quot;&quot;),key:e[0]+n,column:t,calcdata:t.calcdata,page:t.page,rowBlocks:t.rowBlocks,value:r}}))}},{&quot;../../lib/extend&quot;:768}],1322:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults;e.exports=function(t,e,r,o){function s(r,a){return n.coerce(t,e,i,r,a)}a(e,o,s),s(&quot;columnwidth&quot;),s(&quot;header.values&quot;),s(&quot;header.format&quot;),s(&quot;header.align&quot;),s(&quot;header.prefix&quot;),s(&quot;header.suffix&quot;),s(&quot;header.height&quot;),s(&quot;header.line.width&quot;),s(&quot;header.line.color&quot;),s(&quot;header.fill.color&quot;),n.coerceFont(s,&quot;header.font&quot;,n.extendFlat({},o.font)),function(t,e){for(var r=t.columnorder||[],n=t.header.values.length,i=r.slice(0,n),a=i.slice().sort((function(t,e){return t-e})),o=i.map((function(t){return a.indexOf(t)})),s=o.length;s&lt;n;s++)o.push(s);e(&quot;columnorder&quot;,o)}(e,s),s(&quot;cells.values&quot;),s(&quot;cells.format&quot;),s(&quot;cells.align&quot;),s(&quot;cells.prefix&quot;),s(&quot;cells.suffix&quot;),s(&quot;cells.height&quot;),s(&quot;cells.line.width&quot;),s(&quot;cells.line.color&quot;),s(&quot;cells.fill.color&quot;),n.coerceFont(s,&quot;cells.font&quot;,n.extendFlat({},o.font)),e._length=null}},{&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1316}],1323:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),moduleType:&quot;trace&quot;,name:&quot;table&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1316,&quot;./base_plot&quot;:1317,&quot;./calc&quot;:1318,&quot;./defaults&quot;:1322,&quot;./plot&quot;:1324}],1324:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;d3&quot;),a=t(&quot;../../lib/gup&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../../lib&quot;).raiseToTop,c=t(&quot;../../lib&quot;).strTranslate,u=t(&quot;../../lib&quot;).cancelTransition,f=t(&quot;./data_preparation_helper&quot;),h=t(&quot;./data_split_helpers&quot;),p=t(&quot;../../components/color&quot;);function d(t){return Math.ceil(t.calcdata.maxLineWidth/2)}function g(t,e){return&quot;clip&quot;+t._fullLayout._uid+&quot;_scrollAreaBottomClip_&quot;+e.key}function m(t,e){return&quot;clip&quot;+t._fullLayout._uid+&quot;_columnBoundaryClippath_&quot;+e.calcdata.key+&quot;_&quot;+e.specIndex}function v(t){return[].concat.apply([],t.map((function(t){return t}))).map((function(t){return t.__data__}))}function y(t,e,r){var o=t.selectAll(&quot;.&quot;+n.cn.scrollbarKit).data(a.repeat,a.keyFun);o.enter().append(&quot;g&quot;).classed(n.cn.scrollbarKit,!0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;),o.each((function(t){var e=t.scrollbarState;e.totalHeight=function(t){var e=t.rowBlocks;return O(e,e.length-1)+(e.length?D(e[e.length-1],1/0):1)}(t),e.scrollableAreaHeight=t.groupHeight-A(t),e.currentlyVisibleHeight=Math.min(e.totalHeight,e.scrollableAreaHeight),e.ratio=e.currentlyVisibleHeight/e.totalHeight,e.barLength=Math.max(e.ratio*e.currentlyVisibleHeight,n.goldenRatio*n.scrollbarWidth),e.barWiggleRoom=e.currentlyVisibleHeight-e.barLength,e.wiggleRoom=Math.max(0,e.totalHeight-e.scrollableAreaHeight),e.topY=0===e.barWiggleRoom?0:t.scrollY/e.wiggleRoom*e.barWiggleRoom,e.bottomY=e.topY+e.barLength,e.dragMultiplier=e.wiggleRoom/e.barWiggleRoom})).attr(&quot;transform&quot;,(function(t){var e=t.width+n.scrollbarWidth/2+n.scrollbarOffset;return c(e,A(t))}));var s=o.selectAll(&quot;.&quot;+n.cn.scrollbar).data(a.repeat,a.keyFun);s.enter().append(&quot;g&quot;).classed(n.cn.scrollbar,!0);var l=s.selectAll(&quot;.&quot;+n.cn.scrollbarSlider).data(a.repeat,a.keyFun);l.enter().append(&quot;g&quot;).classed(n.cn.scrollbarSlider,!0),l.attr(&quot;transform&quot;,(function(t){return c(0,t.scrollbarState.topY||0)}));var u=l.selectAll(&quot;.&quot;+n.cn.scrollbarGlyph).data(a.repeat,a.keyFun);u.enter().append(&quot;line&quot;).classed(n.cn.scrollbarGlyph,!0).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,n.scrollbarWidth).attr(&quot;stroke-linecap&quot;,&quot;round&quot;).attr(&quot;y1&quot;,n.scrollbarWidth/2),u.attr(&quot;y2&quot;,(function(t){return t.scrollbarState.barLength-n.scrollbarWidth/2})).attr(&quot;stroke-opacity&quot;,(function(t){return t.columnDragInProgress||!t.scrollbarState.barWiggleRoom||r?0:.4})),u.transition().delay(0).duration(0),u.transition().delay(n.scrollbarHideDelay).duration(n.scrollbarHideDuration).attr(&quot;stroke-opacity&quot;,0);var f=s.selectAll(&quot;.&quot;+n.cn.scrollbarCaptureZone).data(a.repeat,a.keyFun);f.enter().append(&quot;line&quot;).classed(n.cn.scrollbarCaptureZone,!0).attr(&quot;stroke&quot;,&quot;white&quot;).attr(&quot;stroke-opacity&quot;,.01).attr(&quot;stroke-width&quot;,n.scrollbarCaptureWidth).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;).attr(&quot;y1&quot;,0).on(&quot;mousedown&quot;,(function(r){var n=i.event.y,a=this.getBoundingClientRect(),o=r.scrollbarState,s=n-a.top,l=i.scale.linear().domain([0,o.scrollableAreaHeight]).range([0,o.totalHeight]).clamp(!0);o.topY&lt;=s&amp;&amp;s&lt;=o.bottomY||E(e,t,null,l(s-o.barLength/2))(r)})).call(i.behavior.drag().origin((function(t){return i.event.stopPropagation(),t.scrollbarState.scrollbarScrollInProgress=!0,t})).on(&quot;drag&quot;,E(e,t)).on(&quot;dragend&quot;,(function(){}))),f.attr(&quot;y2&quot;,(function(t){return t.scrollbarState.scrollableAreaHeight})),e._context.staticPlot&amp;&amp;(u.remove(),f.remove())}function x(t,e,r,s){var l=function(t){var e=t.selectAll(&quot;.&quot;+n.cn.columnCell).data(h.splitToCells,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;g&quot;).classed(n.cn.columnCell,!0),e.exit().remove(),e}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.columnCells).data(a.repeat,a.keyFun);return e.enter().append(&quot;g&quot;).classed(n.cn.columnCells,!0),e.exit().remove(),e}(r));!function(t){t.each((function(t,e){var r=t.calcdata.cells.font,n=t.column.specIndex,i={size:w(r.size,n,e),color:w(r.color,n,e),family:w(r.family,n,e)};t.rowNumber=t.key,t.align=w(t.calcdata.cells.align,n,e),t.cellBorderWidth=w(t.calcdata.cells.line.width,n,e),t.font=i}))}(l),function(t){t.attr(&quot;width&quot;,(function(t){return t.column.columnWidth})).attr(&quot;stroke-width&quot;,(function(t){return t.cellBorderWidth})).each((function(t){var e=i.select(this);p.stroke(e,w(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),p.fill(e,w(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))}))}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellRect).data(a.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;rect&quot;).classed(n.cn.cellRect,!0),e}(l));var c=function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellText).data(a.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;text&quot;).classed(n.cn.cellText,!0).style(&quot;cursor&quot;,(function(){return&quot;auto&quot;})).on(&quot;mousedown&quot;,(function(){i.event.stopPropagation()})),e}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellTextHolder).data(a.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;g&quot;).classed(n.cn.cellTextHolder,!0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;),e}(l));!function(t){t.each((function(t){o.font(i.select(this),t.font)}))}(c),b(c,e,s,t),z(l)}function b(t,e,r,a){t.text((function(t){var e=t.column.specIndex,r=t.rowNumber,a=t.value,o=&quot;string&quot;==typeof a,s=o&amp;&amp;a.match(/&lt;br&gt;/i),l=!o||s;t.mayHaveMarkup=o&amp;&amp;a.match(/[&lt;&amp;&gt;]/);var c,u=&quot;string&quot;==typeof(c=a)&amp;&amp;c.match(n.latexCheck);t.latex=u;var f,h,p=u?&quot;&quot;:w(t.calcdata.cells.prefix,e,r)||&quot;&quot;,d=u?&quot;&quot;:w(t.calcdata.cells.suffix,e,r)||&quot;&quot;,g=u?null:w(t.calcdata.cells.format,e,r)||null,m=p+(g?i.format(g)(t.value):t.value)+d;if(t.wrappingNeeded=!t.wrapped&amp;&amp;!l&amp;&amp;!u&amp;&amp;(f=_(m)),t.cellHeightMayIncrease=s||u||t.mayHaveMarkup||(void 0===f?_(m):f),t.needsConvertToTspans=t.mayHaveMarkup||t.wrappingNeeded||t.latex,t.wrappingNeeded){var v=(&quot; &quot;===n.wrapSplitCharacter?m.replace(/&lt;a href=/gi,&quot;&lt;a_href=&quot;):m).split(n.wrapSplitCharacter),y=&quot; &quot;===n.wrapSplitCharacter?v.map((function(t){return t.replace(/&lt;a_href=/gi,&quot;&lt;a href=&quot;)})):v;t.fragments=y.map((function(t){return{text:t,width:null}})),t.fragments.push({fragment:n.wrapSpacer,width:null}),h=y.join(n.lineBreaker)+n.lineBreaker+n.wrapSpacer}else delete t.fragments,h=m;return h})).attr(&quot;dy&quot;,(function(t){return t.needsConvertToTspans?0:&quot;0.75em&quot;})).each((function(t){var o=i.select(this),l=t.wrappingNeeded?L:I;t.needsConvertToTspans?s.convertToTspans(o,a,l(r,this,e,a,t)):i.select(this.parentNode).attr(&quot;transform&quot;,(function(t){return c(P(t),n.cellPad)})).attr(&quot;text-anchor&quot;,(function(t){return{left:&quot;start&quot;,center:&quot;middle&quot;,right:&quot;end&quot;}[t.align]}))}))}function _(t){return-1!==t.indexOf(n.wrapSplitCharacter)}function w(t,e,r){if(Array.isArray(t)){var n=t[Math.min(e,t.length-1)];return Array.isArray(n)?n[Math.min(r,n.length-1)]:n}return t}function T(t,e,r){t.transition().ease(n.releaseTransitionEase).duration(n.releaseTransitionDuration).attr(&quot;transform&quot;,c(e.x,r))}function k(t){return&quot;cells&quot;===t.type}function M(t){return&quot;header&quot;===t.type}function A(t){return(t.rowBlocks.length?t.rowBlocks[0].auxiliaryBlocks:[]).reduce((function(t,e){return t+D(e,1/0)}),0)}function S(t,e,r){var n=v(e)[0];if(void 0!==n){var i=n.rowBlocks,a=n.calcdata,o=O(i,i.length),s=n.calcdata.groupHeight-A(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),u=function(t,e,r){for(var n=[],i=0,a=0;a&lt;t.length;a++){for(var o=t[a],s=o.rows,l=0,c=0;c&lt;s.length;c++)l+=s[c].rowHeight;o.allRowsHeight=l;e&lt;i+l&amp;&amp;e+r&gt;i&amp;&amp;n.push(a),i+=l}return n}(i,l,s);1===u.length&amp;&amp;(u[0]===i.length-1?u.unshift(u[0]-1):u.push(u[0]+1)),u[0]%2&amp;&amp;u.reverse(),e.each((function(t,e){t.page=u[e],t.scrollY=l})),e.attr(&quot;transform&quot;,(function(t){var e=O(t.rowBlocks,t.page)-t.scrollY;return c(0,e)})),t&amp;&amp;(C(t,r,e,u,n.prevPages,n,0),C(t,r,e,u,n.prevPages,n,1),y(r,t))}}function E(t,e,r,a){return function(o){var s=o.calcdata?o.calcdata:o,l=e.filter((function(t){return s.key===t.key})),c=r||s.scrollbarState.dragMultiplier,u=s.scrollY;s.scrollY=void 0===a?s.scrollY+c*i.event.dy:a;var f=l.selectAll(&quot;.&quot;+n.cn.yColumn).selectAll(&quot;.&quot;+n.cn.columnBlock).filter(k);return S(t,f,l),s.scrollY===u}}function C(t,e,r,n,i,a,o){n[o]!==i[o]&amp;&amp;(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout((function(){var a=r.filter((function(t,e){return e===o&amp;&amp;n[e]!==i[e]}));x(t,e,a,r),i[o]=n[o]})))}function L(t,e,r,a){return function(){var o=i.select(e.parentNode);o.each((function(t){var e=t.fragments;o.selectAll(&quot;tspan.line&quot;).each((function(t,r){e[r].width=this.getComputedTextLength()}));var r,i,a=e[e.length-1].width,s=e.slice(0,-1),l=[],c=0,u=t.column.columnWidth-2*n.cellPad;for(t.value=&quot;&quot;;s.length;)c+(i=(r=s.shift()).width+a)&gt;u&amp;&amp;(t.value+=l.join(n.wrapSpacer)+n.lineBreaker,l=[],c=0),l.push(r.text),c+=i;c&amp;&amp;(t.value+=l.join(n.wrapSpacer)),t.wrapped=!0})),o.selectAll(&quot;tspan.line&quot;).remove(),b(o.select(&quot;.&quot;+n.cn.cellText),r,t,a),i.select(e.parentNode.parentNode).call(z)}}function I(t,e,r,a,o){return function(){if(!o.settledY){var s=i.select(e.parentNode),l=F(o),u=o.key-l.firstRowIndex,f=l.rows[u].rowHeight,h=o.cellHeightMayIncrease?e.parentNode.getBoundingClientRect().height+2*n.cellPad:f,p=Math.max(h,f);p-l.rows[u].rowHeight&amp;&amp;(l.rows[u].rowHeight=p,t.selectAll(&quot;.&quot;+n.cn.columnCell).call(z),S(null,t.filter(k),0),y(r,a,!0)),s.attr(&quot;transform&quot;,(function(){var t=this.parentNode.getBoundingClientRect(),e=i.select(this.parentNode).select(&quot;.&quot;+n.cn.cellRect).node().getBoundingClientRect(),r=this.transform.baseVal.consolidate(),a=e.top-t.top+(r?r.matrix.f:n.cellPad);return c(P(o,i.select(this.parentNode).select(&quot;.&quot;+n.cn.cellTextHolder).node().getBoundingClientRect().width),a)})),o.settledY=!0}}}function P(t,e){switch(t.align){case&quot;left&quot;:return n.cellPad;case&quot;right&quot;:return t.column.columnWidth-(e||0)-n.cellPad;case&quot;center&quot;:return(t.column.columnWidth-(e||0))/2;default:return n.cellPad}}function z(t){t.attr(&quot;transform&quot;,(function(t){var e=t.rowBlocks[0].auxiliaryBlocks.reduce((function(t,e){return t+D(e,1/0)}),0),r=D(F(t),t.key);return c(0,r+e)})).selectAll(&quot;.&quot;+n.cn.cellRect).attr(&quot;height&quot;,(function(t){return(e=F(t),r=t.key,e.rows[r-e.firstRowIndex]).rowHeight;var e,r}))}function O(t,e){for(var r=0,n=e-1;n&gt;=0;n--)r+=R(t[n]);return r}function D(t,e){for(var r=0,n=0;n&lt;t.rows.length&amp;&amp;t.rows[n].rowIndex&lt;e;n++)r+=t.rows[n].rowHeight;return r}function R(t){var e=t.allRowsHeight;if(void 0!==e)return e;for(var r=0,n=0;n&lt;t.rows.length;n++)r+=t.rows[n].rowHeight;return t.allRowsHeight=r,r}function F(t){return t.rowBlocks[t.page]}e.exports=function(t,e){var r=!t._context.staticPlot,s=t._fullLayout._paper.selectAll(&quot;.&quot;+n.cn.table).data(e.map((function(e){var r=a.unwrap(e).trace;return f(t,r)})),a.keyFun);s.exit().remove(),s.enter().append(&quot;g&quot;).classed(n.cn.table,!0).attr(&quot;overflow&quot;,&quot;visible&quot;).style(&quot;box-sizing&quot;,&quot;content-box&quot;).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;left&quot;,0).style(&quot;overflow&quot;,&quot;visible&quot;).style(&quot;shape-rendering&quot;,&quot;crispEdges&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;),s.attr(&quot;width&quot;,(function(t){return t.width+t.size.l+t.size.r})).attr(&quot;height&quot;,(function(t){return t.height+t.size.t+t.size.b})).attr(&quot;transform&quot;,(function(t){return c(t.translateX,t.translateY)}));var p=s.selectAll(&quot;.&quot;+n.cn.tableControlView).data(a.repeat,a.keyFun),b=p.enter().append(&quot;g&quot;).classed(n.cn.tableControlView,!0).style(&quot;box-sizing&quot;,&quot;content-box&quot;);if(r){var _=&quot;onwheel&quot;in document?&quot;wheel&quot;:&quot;mousewheel&quot;;b.on(&quot;mousemove&quot;,(function(e){p.filter((function(t){return e===t})).call(y,t)})).on(_,(function(e){if(!e.scrollbarState.wheeling){e.scrollbarState.wheeling=!0;var r=e.scrollY+i.event.deltaY;E(t,p,null,r)(e)||(i.event.stopPropagation(),i.event.preventDefault()),e.scrollbarState.wheeling=!1}})).call(y,t,!0)}p.attr(&quot;transform&quot;,(function(t){return c(t.size.l,t.size.t)}));var w=p.selectAll(&quot;.&quot;+n.cn.scrollBackground).data(a.repeat,a.keyFun);w.enter().append(&quot;rect&quot;).classed(n.cn.scrollBackground,!0).attr(&quot;fill&quot;,&quot;none&quot;),w.attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})),p.each((function(e){o.setClipUrl(i.select(this),g(t,e),t)}));var A=p.selectAll(&quot;.&quot;+n.cn.yColumn).data((function(t){return t.columns}),a.keyFun);A.enter().append(&quot;g&quot;).classed(n.cn.yColumn,!0),A.exit().remove(),A.attr(&quot;transform&quot;,(function(t){return c(t.x,0)})),r&amp;&amp;A.call(i.behavior.drag().origin((function(e){return T(i.select(this),e,-n.uplift),l(this),e.calcdata.columnDragInProgress=!0,y(p.filter((function(t){return e.calcdata.key===t.key})),t),e})).on(&quot;drag&quot;,(function(t){var e=i.select(this),r=function(e){return(t===e?i.event.x:e.x)+e.columnWidth/2};t.x=Math.max(-n.overdrag,Math.min(t.calcdata.width+n.overdrag-t.columnWidth,i.event.x)),v(A).filter((function(e){return e.calcdata.key===t.calcdata.key})).sort((function(t,e){return r(t)-r(e)})).forEach((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e)})),A.filter((function(e){return t!==e})).transition().ease(n.transitionEase).duration(n.transitionDuration).attr(&quot;transform&quot;,(function(t){return c(t.x,0)})),e.call(u).attr(&quot;transform&quot;,c(t.x,-n.uplift))})).on(&quot;dragend&quot;,(function(e){var r=i.select(this),n=e.calcdata;e.x=e.xScale(e),e.calcdata.columnDragInProgress=!1,T(r,e,0),function(t,e,r){var n=e.gdColumnsOriginalOrder;e.gdColumns.sort((function(t,e){return r[n.indexOf(t)]-r[n.indexOf(e)]})),e.columnorder=r,t.emit(&quot;plotly_restyle&quot;)}(t,n,n.columns.map((function(t){return t.xIndex})))}))),A.each((function(e){o.setClipUrl(i.select(this),m(t,e),t)}));var C=A.selectAll(&quot;.&quot;+n.cn.columnBlock).data(h.splitToPanels,a.keyFun);C.enter().append(&quot;g&quot;).classed(n.cn.columnBlock,!0).attr(&quot;id&quot;,(function(t){return t.key})),C.style(&quot;cursor&quot;,(function(t){return t.dragHandle?&quot;ew-resize&quot;:t.calcdata.scrollbarState.barWiggleRoom?&quot;ns-resize&quot;:&quot;default&quot;}));var L=C.filter(M),I=C.filter(k);r&amp;&amp;I.call(i.behavior.drag().origin((function(t){return i.event.stopPropagation(),t})).on(&quot;drag&quot;,E(t,p,-1)).on(&quot;dragend&quot;,(function(){}))),x(t,p,L,C),x(t,p,I,C);var P=p.selectAll(&quot;.&quot;+n.cn.scrollAreaClip).data(a.repeat,a.keyFun);P.enter().append(&quot;clipPath&quot;).classed(n.cn.scrollAreaClip,!0).attr(&quot;id&quot;,(function(e){return g(t,e)}));var z=P.selectAll(&quot;.&quot;+n.cn.scrollAreaClipRect).data(a.repeat,a.keyFun);z.enter().append(&quot;rect&quot;).classed(n.cn.scrollAreaClipRect,!0).attr(&quot;x&quot;,-n.overdrag).attr(&quot;y&quot;,-n.uplift).attr(&quot;fill&quot;,&quot;none&quot;),z.attr(&quot;width&quot;,(function(t){return t.width+2*n.overdrag})).attr(&quot;height&quot;,(function(t){return t.height+n.uplift})),A.selectAll(&quot;.&quot;+n.cn.columnBoundary).data(a.repeat,a.keyFun).enter().append(&quot;g&quot;).classed(n.cn.columnBoundary,!0);var O=A.selectAll(&quot;.&quot;+n.cn.columnBoundaryClippath).data(a.repeat,a.keyFun);O.enter().append(&quot;clipPath&quot;).classed(n.cn.columnBoundaryClippath,!0),O.attr(&quot;id&quot;,(function(e){return m(t,e)}));var D=O.selectAll(&quot;.&quot;+n.cn.columnBoundaryRect).data(a.repeat,a.keyFun);D.enter().append(&quot;rect&quot;).classed(n.cn.columnBoundaryRect,!0).attr(&quot;fill&quot;,&quot;none&quot;),D.attr(&quot;width&quot;,(function(t){return t.columnWidth+2*d(t)})).attr(&quot;height&quot;,(function(t){return t.calcdata.height+2*d(t)+n.uplift})).attr(&quot;x&quot;,(function(t){return-d(t)})).attr(&quot;y&quot;,(function(t){return-d(t)})),S(null,I,p)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;../../lib/svg_text_utils&quot;:803,&quot;./constants&quot;:1319,&quot;./data_preparation_helper&quot;:1320,&quot;./data_split_helpers&quot;:1321,d3:169}],1325:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../pie/attributes&quot;),l=t(&quot;../sunburst/attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:l.labels,parents:l.parents,values:l.values,branchvalues:l.branchvalues,count:l.count,level:l.level,maxdepth:l.maxdepth,tiling:{packing:{valType:&quot;enumerated&quot;,values:[&quot;squarify&quot;,&quot;binary&quot;,&quot;dice&quot;,&quot;slice&quot;,&quot;slice-dice&quot;,&quot;dice-slice&quot;],dflt:&quot;squarify&quot;,editType:&quot;plot&quot;},squarifyratio:{valType:&quot;number&quot;,min:1,dflt:1,editType:&quot;plot&quot;},flip:{valType:&quot;flaglist&quot;,flags:[&quot;x&quot;,&quot;y&quot;],dflt:&quot;&quot;,editType:&quot;plot&quot;},pad:{valType:&quot;number&quot;,min:0,dflt:3,editType:&quot;plot&quot;},editType:&quot;calc&quot;},marker:u({pad:{t:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},l:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},r:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},b:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},colors:l.marker.colors,depthfade:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],editType:&quot;style&quot;},line:l.marker.line,editType:&quot;calc&quot;},a(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),pathbar:{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;plot&quot;},edgeshape:{valType:&quot;enumerated&quot;,values:[&quot;&gt;&quot;,&quot;&lt;&quot;,&quot;|&quot;,&quot;/&quot;,&quot;\\&quot;],dflt:&quot;&gt;&quot;,editType:&quot;plot&quot;},thickness:{valType:&quot;number&quot;,min:12,editType:&quot;plot&quot;},textfont:u({},s.textfont,{}),editType:&quot;calc&quot;},text:s.text,textinfo:l.textinfo,texttemplate:i({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:s.hovertext,hoverinfo:l.hoverinfo,hovertemplate:n({},{keys:c.eventDataKeys}),textfont:s.textfont,insidetextfont:s.insidetextfont,outsidetextfont:u({},s.outsidetextfont,{}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle left&quot;,&quot;middle center&quot;,&quot;middle right&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],dflt:&quot;top left&quot;,editType:&quot;plot&quot;},sort:s.sort,root:l.root,domain:o({name:&quot;treemap&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/domain&quot;:855,&quot;../../plots/template_attributes&quot;:906,&quot;../pie/attributes&quot;:1161,&quot;../sunburst/attributes&quot;:1299,&quot;./constants&quot;:1328}],1326:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;treemap&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1327:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../sunburst/calc&quot;);r.calc=function(t,e){return n.calc(t,e)},r.crossTraceCalc=function(t){return n._runCrossTraceCalc(&quot;treemap&quot;,t)}},{&quot;../sunburst/calc&quot;:1301}],1328:[function(t,e,r){&quot;use strict&quot;;e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:&quot;poly&quot;,eventDataKeys:[&quot;currentPath&quot;,&quot;root&quot;,&quot;entry&quot;,&quot;percentRoot&quot;,&quot;percentEntry&quot;,&quot;percentParent&quot;],gapWithPathbar:1}},{}],1329:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText,l=t(&quot;../bar/constants&quot;).TEXTPAD,c=t(&quot;../../components/colorscale&quot;),u=c.hasColorscale,f=c.handleDefaults;e.exports=function(t,e,r,c){function h(r,a){return n.coerce(t,e,i,r,a)}var p=h(&quot;labels&quot;),d=h(&quot;parents&quot;);if(p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length){var g=h(&quot;values&quot;);g&amp;&amp;g.length?h(&quot;branchvalues&quot;):h(&quot;count&quot;),h(&quot;level&quot;),h(&quot;maxdepth&quot;),&quot;squarify&quot;===h(&quot;tiling.packing&quot;)&amp;&amp;h(&quot;tiling.squarifyratio&quot;),h(&quot;tiling.flip&quot;),h(&quot;tiling.pad&quot;);var m=h(&quot;text&quot;);h(&quot;texttemplate&quot;),e.texttemplate||h(&quot;textinfo&quot;,Array.isArray(m)?&quot;text+label&quot;:&quot;label&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;);var v=h(&quot;pathbar.visible&quot;);s(t,e,c,h,&quot;auto&quot;,{hasPathbar:v,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),h(&quot;textposition&quot;);var y=-1!==e.textposition.indexOf(&quot;bottom&quot;);h(&quot;marker.line.width&quot;)&amp;&amp;h(&quot;marker.line.color&quot;,c.paper_bgcolor);var x=h(&quot;marker.colors&quot;),b=e._hasColorscale=u(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis;b?f(t,e,c,h,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}):h(&quot;marker.depthfade&quot;,!(x||[]).length);var _=2*e.textfont.size;h(&quot;marker.pad.t&quot;,y?_/4:_),h(&quot;marker.pad.l&quot;,_/4),h(&quot;marker.pad.r&quot;,_/4),h(&quot;marker.pad.b&quot;,y?_:_/4),b&amp;&amp;f(t,e,c,h,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),e._hovered={marker:{line:{width:2,color:a.contrast(c.paper_bgcolor)}}},v&amp;&amp;(h(&quot;pathbar.thickness&quot;,e.pathbar.textfont.size+2*l),h(&quot;pathbar.side&quot;),h(&quot;pathbar.edgeshape&quot;)),h(&quot;sort&quot;),h(&quot;root.color&quot;),o(e,c,h),e._length=null}else e.visible=!1}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/constants&quot;:923,&quot;../bar/defaults&quot;:925,&quot;./attributes&quot;:1325}],1330:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;./constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;);e.exports=function(t,e,r,h,p){var d=p.barDifY,g=p.width,m=p.height,v=p.viewX,y=p.viewY,x=p.pathSlice,b=p.toMoveInsideSlice,_=p.strTransform,w=p.hasTransition,T=p.handleSlicesExit,k=p.makeUpdateSliceInterpolator,M=p.makeUpdateTextInterpolator,A={},S=t._fullLayout,E=e[0],C=E.trace,L=E.hierarchy,I=g/C._entryDepth,P=u.listPath(r.data,&quot;id&quot;),z=s(L.copy(),[g,m],{packing:&quot;dice&quot;,pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();(z=z.filter((function(t){var e=P.indexOf(t.data.id);return-1!==e&amp;&amp;(t.x0=I*e,t.x1=I*(e+1),t.y0=d,t.y1=d+m,t.onPathbar=!0,!0)}))).reverse(),(h=h.data(z,u.getPtId)).enter().append(&quot;g&quot;).classed(&quot;pathbar&quot;,!0),T(h,!0,A,[g,m],x),h.order();var O=h;w&amp;&amp;(O=O.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})}))),O.each((function(s){s._hoverX=v(s.x1-Math.min(g,m)/2),s._hoverY=y(s.y1-m/2);var h=n.select(this),p=i.ensureSingle(h,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?p.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!0,A,[g,m]);return function(t){return x(e(t))}})):p.attr(&quot;d&quot;,x),h.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),p.call(l,s,C,{hovered:!1}),s._text=(u.getPtLabel(s)||&quot;&quot;).split(&quot;&lt;br&gt;&quot;).join(&quot; &quot;)||&quot;&quot;;var d=i.ensureSingle(h,&quot;g&quot;,&quot;slicetext&quot;),T=i.ensureSingle(d,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),E=i.ensureUniformFontSize(t,u.determineTextFont(C,s,S.font,{onPathbar:!0}));T.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,&quot;start&quot;).call(a.font,E).call(o.convertToTspans,t),s.textBB=a.bBox(T.node()),s.transform=b(s,{fontSize:E.size,onPathbar:!0}),s.transform.fontSize=E.size,w?T.transition().attrTween(&quot;transform&quot;,(function(t){var e=M(t,!0,A,[g,m]);return function(t){return _(e(t))}})):T.attr(&quot;transform&quot;,_(s))}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../sunburst/fx&quot;:1304,&quot;../sunburst/helpers&quot;:1305,&quot;./constants&quot;:1328,&quot;./partition&quot;:1335,&quot;./style&quot;:1337,d3:169}],1331:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;./constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;),h=t(&quot;../sunburst/plot&quot;).formatSliceLabel;e.exports=function(t,e,r,p,d){var g=d.width,m=d.height,v=d.viewX,y=d.viewY,x=d.pathSlice,b=d.toMoveInsideSlice,_=d.strTransform,w=d.hasTransition,T=d.handleSlicesExit,k=d.makeUpdateSliceInterpolator,M=d.makeUpdateTextInterpolator,A=d.prevEntry,S=t._fullLayout,E=e[0].trace,C=-1!==E.textposition.indexOf(&quot;left&quot;),L=-1!==E.textposition.indexOf(&quot;right&quot;),I=-1!==E.textposition.indexOf(&quot;bottom&quot;),P=!I&amp;&amp;!E.marker.pad.t||I&amp;&amp;!E.marker.pad.b,z=s(r,[g,m],{packing:E.tiling.packing,squarifyratio:E.tiling.squarifyratio,flipX:E.tiling.flip.indexOf(&quot;x&quot;)&gt;-1,flipY:E.tiling.flip.indexOf(&quot;y&quot;)&gt;-1,pad:{inner:E.tiling.pad,top:E.marker.pad.t,left:E.marker.pad.l,right:E.marker.pad.r,bottom:E.marker.pad.b}}).descendants(),O=1/0,D=-1/0;z.forEach((function(t){var e=t.depth;e&gt;=E._maxDepth?(t.x0=t.x1=(t.x0+t.x1)/2,t.y0=t.y1=(t.y0+t.y1)/2):(O=Math.min(O,e),D=Math.max(D,e))})),p=p.data(z,u.getPtId),E._maxVisibleLayers=isFinite(D)?D-O+1:0,p.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),T(p,!1,{},[g,m],x),p.order();var R=null;if(w&amp;&amp;A){var F=u.getPtId(A);p.each((function(t){null===R&amp;&amp;u.getPtId(t)===F&amp;&amp;(R={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})}))}var B=function(){return R||{x0:0,x1:g,y0:0,y1:m}},N=p;return w&amp;&amp;(N=N.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),N.each((function(s){var p=u.isHeader(s,E);s._hoverX=v(s.x1-E.marker.pad.r),s._hoverY=y(I?s.y1-E.marker.pad.b/2:s.y0+E.marker.pad.t/2);var d=n.select(this),T=i.ensureSingle(d,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?T.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!1,B(),[g,m]);return function(t){return x(e(t))}})):T.attr(&quot;d&quot;,x),d.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{isTransitioning:t._transitioning}),T.call(l,s,E,{hovered:!1}),s.x0===s.x1||s.y0===s.y1?s._text=&quot;&quot;:s._text=p?P?&quot;&quot;:u.getPtLabel(s)||&quot;&quot;:h(s,r,E,e,S)||&quot;&quot;;var A=i.ensureSingle(d,&quot;g&quot;,&quot;slicetext&quot;),z=i.ensureSingle(A,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),O=i.ensureUniformFontSize(t,u.determineTextFont(E,s,S.font));z.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,L?&quot;end&quot;:C||p?&quot;start&quot;:&quot;middle&quot;).call(a.font,O).call(o.convertToTspans,t),s.textBB=a.bBox(z.node()),s.transform=b(s,{fontSize:O.size,isHeader:p}),s.transform.fontSize=O.size,w?z.transition().attrTween(&quot;transform&quot;,(function(t){var e=M(t,!1,B(),[g,m]);return function(t){return _(e(t))}})):z.attr(&quot;transform&quot;,_(s))})),R}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../sunburst/fx&quot;:1304,&quot;../sunburst/helpers&quot;:1305,&quot;../sunburst/plot&quot;:1309,&quot;./constants&quot;:1328,&quot;./partition&quot;:1335,&quot;./style&quot;:1337,d3:169}],1332:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;treemap&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1325,&quot;./base_plot&quot;:1326,&quot;./calc&quot;:1327,&quot;./defaults&quot;:1329,&quot;./layout_attributes&quot;:1333,&quot;./layout_defaults&quot;:1334,&quot;./plot&quot;:1336,&quot;./style&quot;:1337}],1333:[function(t,e,r){&quot;use strict&quot;;e.exports={treemapcolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendtreemapcolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1334:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;treemapcolorway&quot;,e.colorway),r(&quot;extendtreemapcolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1333}],1335:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;);e.exports=function(t,e,r){var i,a=r.flipX,o=r.flipY,s=&quot;dice-slice&quot;===r.packing,l=r.pad[o?&quot;bottom&quot;:&quot;top&quot;],c=r.pad[a?&quot;right&quot;:&quot;left&quot;],u=r.pad[a?&quot;left&quot;:&quot;right&quot;],f=r.pad[o?&quot;top&quot;:&quot;bottom&quot;];s&amp;&amp;(i=c,c=l,l=i,i=u,u=f,f=i);var h=n.treemap().tile(function(t,e){switch(t){case&quot;squarify&quot;:return n.treemapSquarify.ratio(e);case&quot;binary&quot;:return n.treemapBinary;case&quot;dice&quot;:return n.treemapDice;case&quot;slice&quot;:return n.treemapSlice;default:return n.treemapSliceDice}}(r.packing,r.squarifyratio)).paddingInner(r.pad.inner).paddingLeft(c).paddingRight(u).paddingTop(l).paddingBottom(f).size(s?[e[1],e[0]]:e)(t);return(s||a||o)&amp;&amp;function t(e,r,n){var i;n.swapXY&amp;&amp;(i=e.x0,e.x0=e.y0,e.y0=i,i=e.x1,e.x1=e.y1,e.y1=i);n.flipX&amp;&amp;(i=e.x0,e.x0=r[0]-e.x1,e.x1=r[0]-i);n.flipY&amp;&amp;(i=e.y0,e.y0=r[1]-e.y1,e.y1=r[1]-i);var a=e.children;if(a)for(var o=0;o&lt;a.length;o++)t(a[o],r,n)}(h,e,{swapXY:s,flipX:a,flipY:o}),h}},{&quot;d3-hierarchy&quot;:161}],1336:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../sunburst/helpers&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../bar/constants&quot;).TEXTPAD,s=t(&quot;../bar/plot&quot;).toMoveInsideBar,l=t(&quot;../bar/uniform_text&quot;),c=l.recordMinTextSize,u=l.clearMinTextSize,f=t(&quot;../bar/style&quot;).resizeText,h=t(&quot;./constants&quot;),p=t(&quot;./draw_descendants&quot;),d=t(&quot;./draw_ancestors&quot;);function g(t){return i.isHierarchyRoot(t)?&quot;&quot;:i.getPtId(t)}function m(t,e,r,l){var u=t._fullLayout,f=e[0],m=f.trace,v=f.hierarchy,y=i.findEntryWithLevel(v,m.level),x=n.select(r),b=x.selectAll(&quot;g.pathbar&quot;),_=x.selectAll(&quot;g.slice&quot;);if(!y)return b.remove(),void _.remove();var w=i.isHierarchyRoot(y),T=!u.uniformtext.mode&amp;&amp;i.hasTransition(l),k=i.getMaxDepth(m),M=u._size,A=m.domain,S=M.w*(A.x[1]-A.x[0]),E=M.h*(A.y[1]-A.y[0]),C=S,L=m.pathbar.thickness,I=m.marker.line.width+h.gapWithPathbar,P=m.pathbar.visible?m.pathbar.side.indexOf(&quot;bottom&quot;)&gt;-1?E+I:-(L+I):0,z={x0:C,x1:C,y0:P,y1:P+L},O=function(t,e,r){var n=m.tiling.pad,i=function(t){return t-n&lt;=e.x0},a=function(t){return t+n&gt;=e.x1},o=function(t){return t-n&lt;=e.y0},s=function(t){return t+n&gt;=e.y1};return{x0:i(t.x0-n)?0:a(t.x0-n)?r[0]:t.x0,x1:i(t.x1+n)?0:a(t.x1+n)?r[0]:t.x1,y0:o(t.y0-n)?0:s(t.y0-n)?r[1]:t.y0,y1:o(t.y1+n)?0:s(t.y1+n)?r[1]:t.y1}},D=null,R={},F={},B=null,N=function(t,e){return e?R[g(t)]:F[g(t)]},j=function(t,e,r,n){if(e)return R[g(v)]||z;var i=F[m.level]||r;return function(t){return t.data.depth-y.data.depth&lt;k}(t)?O(t,i,n):{}};f.hasMultipleRoots&amp;&amp;w&amp;&amp;k++,m._maxDepth=k,m._backgroundColor=u.paper_bgcolor,m._entryDepth=y.data.depth,m._atRootLevel=w;var U=-S/2+M.l+M.w*(A.x[1]+A.x[0])/2,V=-E/2+M.t+M.h*(1-(A.y[1]+A.y[0])/2),q=function(t){return U+t},H=function(t){return V+t},G=H(0),Y=q(0),W=function(t){return Y+t},X=function(t){return G+t};function Z(t,e){return t+&quot;,&quot;+e}var J=W(0),K=function(t){t.x=Math.max(J,t.x)},Q=m.pathbar.edgeshape,$=function(t,e){var r=t.x0,n=t.x1,i=t.y0,a=t.y1,l=t.textBB,f=function(t){return-1!==m.textposition.indexOf(t)},h=f(&quot;bottom&quot;),p=f(&quot;top&quot;)||e.isHeader&amp;&amp;!h?&quot;start&quot;:h?&quot;end&quot;:&quot;middle&quot;,d=f(&quot;right&quot;),g=f(&quot;left&quot;)||e.onPathbar?-1:d?1:0,v=m.marker.pad;if(e.isHeader){if((r+=v.l-o)&gt;=(n-=v.r-o)){var y=(r+n)/2;r=y,n=y}var x;h?i&lt;(x=a-v.b)&amp;&amp;x&lt;a&amp;&amp;(i=x):i&lt;(x=i+v.t)&amp;&amp;x&lt;a&amp;&amp;(a=x)}var b=s(r,n,i,a,l,{isHorizontal:!1,constrained:!0,angle:0,anchor:p,leftToRight:g});return b.fontSize=e.fontSize,b.targetX=q(b.targetX),b.targetY=H(b.targetY),isNaN(b.targetX)||isNaN(b.targetY)?{}:(r!==n&amp;&amp;i!==a&amp;&amp;c(m.type,b,u),{scale:b.scale,rotate:b.rotate,textX:b.textX,textY:b.textY,anchorX:b.anchorX,anchorY:b.anchorY,targetX:b.targetX,targetY:b.targetY})},tt=function(t,e){for(var r,n=0,i=t;!r&amp;&amp;n&lt;k;)n++,(i=i.parent)?r=N(i,e):n=k;return r||{}},et=function(t,e,r,i){var o,s=N(t,e);if(s)o=s;else if(e)o=z;else if(D)if(t.parent){var l=B||r;l&amp;&amp;!e?o=O(t,l,i):(o={},a.extendFlat(o,tt(t,e)))}else o=t;else o={};return n.interpolate(o,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})},rt=function(t,e,r,o){var s=N(t,e),l={},f=j(t,e,r,o);a.extendFlat(l,{transform:$({x0:f.x0,x1:f.x1,y0:f.y0,y1:f.y1,textBB:t.textBB,_text:t._text},{isHeader:i.isHeader(t,m)})}),s?l=s:t.parent&amp;&amp;a.extendFlat(l,tt(t,e));var h=t.transform;return t.x0!==t.x1&amp;&amp;t.y0!==t.y1&amp;&amp;c(m.type,h,u),n.interpolate(l,{transform:{scale:h.scale,rotate:h.rotate,textX:h.textX,textY:h.textY,anchorX:h.anchorX,anchorY:h.anchorY,targetX:h.targetX,targetY:h.targetY}})},nt=function(t,e,r,i,a){var o=i[0],s=i[1];T?t.exit().transition().each((function(){var t=n.select(this);t.select(&quot;path.surface&quot;).transition().attrTween(&quot;d&quot;,(function(t){var r=function(t,e,r,i){var a,o=N(t,e);if(e)a=z;else{var s=N(y,e);a=s?O(t,s,i):{}}return n.interpolate(o,a)}(t,e,0,[o,s]);return function(t){return a(r(t))}})),t.select(&quot;g.slicetext&quot;).attr(&quot;opacity&quot;,0)})).remove():t.exit().remove()},it=function(t){var e=t.transform;return t.x0!==t.x1&amp;&amp;t.y0!==t.y1&amp;&amp;c(m.type,e,u),a.getTextTransform({textX:e.textX,textY:e.textY,anchorX:e.anchorX,anchorY:e.anchorY,targetX:e.targetX,targetY:e.targetY,scale:e.scale,rotate:e.rotate})};T&amp;&amp;(b.each((function(t){R[g(t)]={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1},t.transform&amp;&amp;(R[g(t)].transform={textX:t.transform.textX,textY:t.transform.textY,anchorX:t.transform.anchorX,anchorY:t.transform.anchorY,targetX:t.transform.targetX,targetY:t.transform.targetY,scale:t.transform.scale,rotate:t.transform.rotate})})),_.each((function(t){F[g(t)]={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1},t.transform&amp;&amp;(F[g(t)].transform={textX:t.transform.textX,textY:t.transform.textY,anchorX:t.transform.anchorX,anchorY:t.transform.anchorY,targetX:t.transform.targetX,targetY:t.transform.targetY,scale:t.transform.scale,rotate:t.transform.rotate}),!D&amp;&amp;i.isEntry(t)&amp;&amp;(D=t)}))),B=p(t,e,y,_,{width:S,height:E,viewX:q,viewY:H,pathSlice:function(t){var e=q(t.x0),r=q(t.x1),n=H(t.y0),i=H(t.y1),a=r-e,o=i-n;if(!a||!o)return&quot;&quot;;return&quot;M&quot;+Z(e,n+0)+&quot;L&quot;+Z(r-0,n)+&quot;L&quot;+Z(r,i-0)+&quot;L&quot;+Z(e+0,i)+&quot;Z&quot;},toMoveInsideSlice:$,prevEntry:D,makeUpdateSliceInterpolator:et,makeUpdateTextInterpolator:rt,handleSlicesExit:nt,hasTransition:T,strTransform:it}),m.pathbar.visible?d(t,e,y,b,{barDifY:P,width:C,height:L,viewX:W,viewY:X,pathSlice:function(t){var e=W(Math.max(Math.min(t.x0,t.x0),0)),r=W(Math.min(Math.max(t.x1,t.x1),C)),n=X(t.y0),i=X(t.y1),a=L/2,o={},s={};o.x=e,s.x=r,o.y=s.y=(n+i)/2;var l={x:e,y:n},c={x:r,y:n},u={x:r,y:i},f={x:e,y:i};return&quot;&gt;&quot;===Q?(l.x-=a,c.x-=a,u.x-=a,f.x-=a):&quot;/&quot;===Q?(u.x-=a,f.x-=a,o.x-=a/2,s.x-=a/2):&quot;\\&quot;===Q?(l.x-=a,c.x-=a,o.x-=a/2,s.x-=a/2):&quot;&lt;&quot;===Q&amp;&amp;(o.x-=a,s.x-=a),K(l),K(f),K(o),K(c),K(u),K(s),&quot;M&quot;+Z(l.x,l.y)+&quot;L&quot;+Z(c.x,c.y)+&quot;L&quot;+Z(s.x,s.y)+&quot;L&quot;+Z(u.x,u.y)+&quot;L&quot;+Z(f.x,f.y)+&quot;L&quot;+Z(o.x,o.y)+&quot;Z&quot;},toMoveInsideSlice:$,makeUpdateSliceInterpolator:et,makeUpdateTextInterpolator:rt,handleSlicesExit:nt,hasTransition:T,strTransform:it}):b.remove()}e.exports=function(t,e,r,a){var o,s,l=t._fullLayout,c=l._treemaplayer,h=!r;(u(&quot;treemap&quot;,l),(o=c.selectAll(&quot;g.trace.treemap&quot;).data(e,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).classed(&quot;trace&quot;,!0).classed(&quot;treemap&quot;,!0),o.order(),!l.uniformtext.mode&amp;&amp;i.hasTransition(r))?(a&amp;&amp;(s=a()),n.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){s&amp;&amp;s()})).each(&quot;interrupt&quot;,(function(){s&amp;&amp;s()})).each((function(){c.selectAll(&quot;g.trace&quot;).each((function(e){m(t,e,this,r)}))}))):(o.each((function(e){m(t,e,this,r)})),l.uniformtext.mode&amp;&amp;f(t,l._treemaplayer.selectAll(&quot;.trace&quot;),&quot;treemap&quot;));h&amp;&amp;o.exit().remove()}},{&quot;../../lib&quot;:778,&quot;../bar/constants&quot;:923,&quot;../bar/plot&quot;:932,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,&quot;../sunburst/helpers&quot;:1305,&quot;./constants&quot;:1328,&quot;./draw_ancestors&quot;:1330,&quot;./draw_descendants&quot;:1331,d3:169}],1337:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../sunburst/helpers&quot;),s=t(&quot;../bar/uniform_text&quot;).resizeText;function l(t,e,r,n){var s,l,c=(n||{}).hovered,u=e.data.data,f=u.i,h=u.color,p=o.isHierarchyRoot(e),d=1;if(c)s=r._hovered.marker.line.color,l=r._hovered.marker.line.width;else if(p&amp;&amp;h===r.root.color)d=100,s=&quot;rgba(0,0,0,0)&quot;,l=0;else if(s=a.castOption(r,f,&quot;marker.line.color&quot;)||i.defaultLine,l=a.castOption(r,f,&quot;marker.line.width&quot;)||0,!r._hasColorscale&amp;&amp;!e.onPathbar){var g=r.marker.depthfade;if(g){var m,v=i.combine(i.addOpacity(r._backgroundColor,.75),h);if(!0===g){var y=o.getMaxDepth(r);m=isFinite(y)?o.isLeaf(e)?0:r._maxVisibleLayers-(e.data.depth-r._entryDepth):e.data.height+1}else m=e.data.depth-r._entryDepth,r._atRootLevel||m++;if(m&gt;0)for(var x=0;x&lt;m;x++){var b=.5*x/m;h=i.combine(i.addOpacity(v,b),h)}}}t.style(&quot;stroke-width&quot;,l).call(i.fill,h).call(i.stroke,s).style(&quot;opacity&quot;,d)}e.exports={style:function(t){var e=t._fullLayout._treemaplayer.selectAll(&quot;.trace&quot;);s(t,e,&quot;treemap&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(l,t,r,{hovered:!1})}))}))},styleOne:l}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/uniform_text&quot;:937,&quot;../sunburst/helpers&quot;:1305,d3:169}],1338:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/attributes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={y:n.y,x:n.x,x0:n.x0,y0:n.y0,name:i({},n.name,{}),orientation:i({},n.orientation,{}),bandwidth:{valType:&quot;number&quot;,min:0,editType:&quot;calc&quot;},scalegroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},scalemode:{valType:&quot;enumerated&quot;,values:[&quot;width&quot;,&quot;count&quot;],dflt:&quot;width&quot;,editType:&quot;calc&quot;},spanmode:{valType:&quot;enumerated&quot;,values:[&quot;soft&quot;,&quot;hard&quot;,&quot;manual&quot;],dflt:&quot;soft&quot;,editType:&quot;calc&quot;},span:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},editType:&quot;plot&quot;},fillcolor:n.fillcolor,points:i({},n.boxpoints,{}),jitter:i({},n.jitter,{}),pointpos:i({},n.pointpos,{}),width:i({},n.width,{}),marker:n.marker,text:n.text,hovertext:n.hovertext,hovertemplate:n.hovertemplate,box:{visible:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},width:{valType:&quot;number&quot;,min:0,max:1,dflt:.25,editType:&quot;plot&quot;},fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;plot&quot;},meanline:{visible:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;both&quot;,&quot;positive&quot;,&quot;negative&quot;],dflt:&quot;both&quot;,editType:&quot;calc&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;violins&quot;,&quot;points&quot;,&quot;kde&quot;],dflt:&quot;violins+points+kde&quot;,extras:[&quot;all&quot;],editType:&quot;style&quot;}}},{&quot;../../lib/extend&quot;:768,&quot;../box/attributes&quot;:946}],1339:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../box/calc&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r){var i=e.max-e.min;if(!i)return t.bandwidth?t.bandwidth:0;if(t.bandwidth)return Math.max(t.bandwidth,i/1e4);var a=r.length,o=n.stdev(r,a-1,e.mean);return Math.max(function(t,e,r){return 1.059*Math.min(e,r/1.349)*Math.pow(t,-.2)}(a,o,e.q3-e.q1),i/100)}function c(t,e,r,n){var a,o=t.spanmode,l=t.span||[],c=[e.min,e.max],u=[e.min-2*n,e.max+2*n];function f(n){var i=l[n],a=&quot;multicategory&quot;===r.type?r.r2c(i):r.d2c(i,0,t[e.valLetter+&quot;calendar&quot;]);return a===s?u[n]:a}var h={type:&quot;linear&quot;,range:a=&quot;soft&quot;===o?u:&quot;hard&quot;===o?c:[f(0),f(1)]};return i.setConvert(h),h.cleanRange(),a}e.exports=function(t,e){var r=a(t,e);if(r[0].t.empty)return r;for(var s=t._fullLayout,u=i.getFromId(t,e[&quot;h&quot;===e.orientation?&quot;xaxis&quot;:&quot;yaxis&quot;]),f=1/0,h=-1/0,p=0,d=0,g=0;g&lt;r.length;g++){var m=r[g],v=m.pts.map(o.extractVal),y=m.bandwidth=l(e,m,v),x=m.span=c(e,m,u,y);if(m.min===m.max&amp;&amp;0===y)x=m.span=[m.min,m.max],m.density=[{v:1,t:x[0]}],m.bandwidth=y,p=Math.max(p,1);else{var b=x[1]-x[0],_=Math.ceil(b/(y/3)),w=b/_;if(!isFinite(w)||!isFinite(_))return n.error(&quot;Something went wrong with computing the violin span&quot;),r[0].t.empty=!0,r;var T=o.makeKDE(m,e,v);m.density=new Array(_);for(var k=0,M=x[0];M&lt;x[1]+w/2;k++,M+=w){var A=T(M);m.density[k]={v:A,t:M},p=Math.max(p,A)}}d=Math.max(d,v.length),f=Math.min(f,x[0]),h=Math.max(h,x[1])}var S=i.findExtremes(u,[f,h],{padded:!0});if(e._extremes[u._id]=S,e.width)r[0].t.maxKDE=p;else{var E=s._violinScaleGroupStats,C=e.scalegroup,L=E[C];L?(L.maxKDE=Math.max(L.maxKDE,p),L.maxCount=Math.max(L.maxCount,d)):E[C]={maxKDE:p,maxCount:d}}return r[0].t.labels.kde=n._(t,&quot;kde:&quot;),r}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../box/calc&quot;:947,&quot;./helpers&quot;:1342}],1340:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/cross_trace_calc&quot;).setPositionOffset,i=[&quot;v&quot;,&quot;h&quot;];e.exports=function(t,e){for(var r=t.calcdata,a=e.xaxis,o=e.yaxis,s=0;s&lt;i.length;s++){for(var l=i[s],c=&quot;h&quot;===l?o:a,u=[],f=0;f&lt;r.length;f++){var h=r[f],p=h[0].t,d=h[0].trace;!0!==d.visible||&quot;violin&quot;!==d.type||p.empty||d.orientation!==l||d.xaxis!==a._id||d.yaxis!==o._id||u.push(f)}n(&quot;violin&quot;,t,u,c)}}},{&quot;../box/cross_trace_calc&quot;:948}],1341:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../box/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}function c(r,i){return n.coerce2(t,e,o,r,i)}if(a.handleSampleDefaults(t,e,l,s),!1!==e.visible){l(&quot;bandwidth&quot;),l(&quot;side&quot;),l(&quot;width&quot;)||(l(&quot;scalegroup&quot;,e.name),l(&quot;scalemode&quot;));var u,f=l(&quot;span&quot;);Array.isArray(f)&amp;&amp;(u=&quot;manual&quot;),l(&quot;spanmode&quot;,u);var h=l(&quot;line.color&quot;,(t.marker||{}).color||r),p=l(&quot;line.width&quot;),d=l(&quot;fillcolor&quot;,i.addOpacity(e.line.color,.5));a.handlePointsDefaults(t,e,l,{prefix:&quot;&quot;});var g=c(&quot;box.width&quot;),m=c(&quot;box.fillcolor&quot;,d),v=c(&quot;box.line.color&quot;,h),y=c(&quot;box.line.width&quot;,p);l(&quot;box.visible&quot;,Boolean(g||m||v||y))||(e.box={visible:!1});var x=c(&quot;meanline.color&quot;,h),b=c(&quot;meanline.width&quot;,p);l(&quot;meanline.visible&quot;,Boolean(x||b))||(e.meanline={visible:!1})}}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../box/defaults&quot;:949,&quot;./attributes&quot;:1338}],1342:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=function(t){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*t*t)};r.makeKDE=function(t,e,r){var n=r.length,a=i,o=t.bandwidth,s=1/(n*o);return function(t){for(var e=0,i=0;i&lt;n;i++)e+=a((t-r[i])/o);return s*e}},r.getPositionOnKdePath=function(t,e,r){var i,a;&quot;h&quot;===e.orientation?(i=&quot;y&quot;,a=&quot;x&quot;):(i=&quot;x&quot;,a=&quot;y&quot;);var o=n.findPointOnPath(t.path,r,a,{pathLength:t.pathLength}),s=t.posCenterPx,l=o[i];return[l,&quot;both&quot;===e.side?2*s-l:s]},r.getKdeValue=function(t,e,n){var i=t.pts.map(r.extractVal);return r.makeKDE(t,e,i)(n)/t.posDensityScale},r.extractVal=function(t){return t.v}},{&quot;../../lib&quot;:778}],1343:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../box/hover&quot;),o=t(&quot;./helpers&quot;);e.exports=function(t,e,r,s,l){var c,u,f=t.cd,h=f[0].trace,p=h.hoveron,d=-1!==p.indexOf(&quot;violins&quot;),g=-1!==p.indexOf(&quot;kde&quot;),m=[];if(d||g){var v=a.hoverOnBoxes(t,e,r,s);if(g&amp;&amp;v.length&gt;0){var y,x,b,_,w,T=t.xa,k=t.ya;&quot;h&quot;===h.orientation?(w=e,y=&quot;y&quot;,b=k,x=&quot;x&quot;,_=T):(w=r,y=&quot;x&quot;,b=T,x=&quot;y&quot;,_=k);var M=f[t.index];if(w&gt;=M.span[0]&amp;&amp;w&lt;=M.span[1]){var A=n.extendFlat({},t),S=_.c2p(w,!0),E=o.getKdeValue(M,h,w),C=o.getPositionOnKdePath(M,h,S),L=b._offset,I=b._length;A[y+&quot;0&quot;]=C[0],A[y+&quot;1&quot;]=C[1],A[x+&quot;0&quot;]=A[x+&quot;1&quot;]=S,A[x+&quot;Label&quot;]=x+&quot;: &quot;+i.hoverLabelText(_,w)+&quot;, &quot;+f[0].t.labels.kde+&quot; &quot;+E.toFixed(3),A.spikeDistance=v[0].spikeDistance;var P=y+&quot;Spike&quot;;A[P]=v[0][P],v[0].spikeDistance=void 0,v[0][P]=void 0,A.hovertemplate=!1,m.push(A),(u={stroke:t.color})[y+&quot;1&quot;]=n.constrain(L+C[0],L,L+I),u[y+&quot;2&quot;]=n.constrain(L+C[1],L,L+I),u[x+&quot;1&quot;]=u[x+&quot;2&quot;]=_._offset+S}}d&amp;&amp;(m=m.concat(v))}-1!==p.indexOf(&quot;points&quot;)&amp;&amp;(c=a.hoverOnPoints(t,e,r));var z=l.selectAll(&quot;.violinline-&quot;+h.uid).data(u?[0]:[]);return z.enter().append(&quot;line&quot;).classed(&quot;violinline-&quot;+h.uid,!0).attr(&quot;stroke-width&quot;,1.5),z.exit().remove(),z.attr(u),&quot;closest&quot;===s?c?[c]:m:c?(m.push(c),m):m}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../box/hover&quot;:951,&quot;./helpers&quot;:1342}],1344:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../box/defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../box/select&quot;),moduleType:&quot;trace&quot;,name:&quot;violin&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;oriented&quot;,&quot;box-violin&quot;,&quot;showLegend&quot;,&quot;violinLayout&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../box/defaults&quot;:949,&quot;../box/select&quot;:956,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1338,&quot;./calc&quot;:1339,&quot;./cross_trace_calc&quot;:1340,&quot;./defaults&quot;:1341,&quot;./hover&quot;:1343,&quot;./layout_attributes&quot;:1345,&quot;./layout_defaults&quot;:1346,&quot;./plot&quot;:1347,&quot;./style&quot;:1348}],1345:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/layout_attributes&quot;),i=t(&quot;../../lib&quot;).extendFlat;e.exports={violinmode:i({},n.boxmode,{}),violingap:i({},n.boxgap,{}),violingroupgap:i({},n.boxgroupgap,{})}},{&quot;../../lib&quot;:778,&quot;../box/layout_attributes&quot;:953}],1346:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;),a=t(&quot;../box/layout_defaults&quot;);e.exports=function(t,e,r){a._supply(t,e,r,(function(r,a){return n.coerce(t,e,i,r,a)}),&quot;violin&quot;)}},{&quot;../../lib&quot;:778,&quot;../box/layout_defaults&quot;:954,&quot;./layout_attributes&quot;:1345}],1347:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../box/plot&quot;),s=t(&quot;../scatter/line_points&quot;),l=t(&quot;./helpers&quot;);e.exports=function(t,e,r,c){var u=t._fullLayout,f=e.xaxis,h=e.yaxis;function p(t){var e=s(t,{xaxis:f,yaxis:h,connectGaps:!0,baseTolerance:.75,shape:&quot;spline&quot;,simplify:!0,linearized:!0});return a.smoothopen(e[0],1)}i.makeTraceGroups(c,r,&quot;trace violins&quot;).each((function(t){var r=n.select(this),a=t[0],s=a.t,c=a.trace;if(!0!==c.visible||s.empty)r.remove();else{var d=s.bPos,g=s.bdPos,m=e[s.valLetter+&quot;axis&quot;],v=e[s.posLetter+&quot;axis&quot;],y=&quot;both&quot;===c.side,x=y||&quot;positive&quot;===c.side,b=y||&quot;negative&quot;===c.side,_=r.selectAll(&quot;path.violin&quot;).data(i.identity);_.enter().append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;class&quot;,&quot;violin&quot;),_.exit().remove(),_.each((function(t){var e,r,i,a,o,l,f,h,_=n.select(this),w=t.density,T=w.length,k=v.c2l(t.pos+d,!0),M=v.l2p(k);if(c.width)e=s.maxKDE/g;else{var A=u._violinScaleGroupStats[c.scalegroup];e=&quot;count&quot;===c.scalemode?A.maxKDE/g*(A.maxCount/t.pts.length):A.maxKDE/g}if(x){for(f=new Array(T),o=0;o&lt;T;o++)(h=f[o]={})[s.posLetter]=k+w[o].v/e,h[s.valLetter]=m.c2l(w[o].t,!0);r=p(f)}if(b){for(f=new Array(T),l=0,o=T-1;l&lt;T;l++,o--)(h=f[l]={})[s.posLetter]=k-w[o].v/e,h[s.valLetter]=m.c2l(w[o].t,!0);i=p(f)}if(y)a=r+&quot;L&quot;+i.substr(1)+&quot;Z&quot;;else{var S=[M,m.c2p(w[0].t)],E=[M,m.c2p(w[T-1].t)];&quot;h&quot;===c.orientation&amp;&amp;(S.reverse(),E.reverse()),a=x?&quot;M&quot;+S+&quot;L&quot;+r.substr(1)+&quot;L&quot;+E:&quot;M&quot;+E+&quot;L&quot;+i.substr(1)+&quot;L&quot;+S}_.attr(&quot;d&quot;,a),t.posCenterPx=M,t.posDensityScale=e*g,t.path=_.node(),t.pathLength=t.path.getTotalLength()/(y?2:1)}));var w,T,k,M=c.box,A=M.width,S=(M.line||{}).width;y?(w=g*A,T=0):x?(w=[0,g*A/2],T=S*{x:1,y:-1}[s.posLetter]):(w=[g*A/2,0],T=S*{x:-1,y:1}[s.posLetter]),o.plotBoxAndWhiskers(r,{pos:v,val:m},c,{bPos:d,bdPos:w,bPosPxOffset:T}),o.plotBoxMean(r,{pos:v,val:m},c,{bPos:d,bdPos:w,bPosPxOffset:T}),!c.box.visible&amp;&amp;c.meanline.visible&amp;&amp;(k=i.identity);var E=r.selectAll(&quot;path.meanline&quot;).data(k||[]);E.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;meanline&quot;).style(&quot;fill&quot;,&quot;none&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;),E.exit().remove(),E.each((function(t){var e=m.c2p(t.mean,!0),r=l.getPositionOnKdePath(t,c,e);n.select(this).attr(&quot;d&quot;,&quot;h&quot;===c.orientation?&quot;M&quot;+e+&quot;,&quot;+r[0]+&quot;V&quot;+r[1]:&quot;M&quot;+r[0]+&quot;,&quot;+e+&quot;H&quot;+r[1])})),o.plotPoints(r,{x:f,y:h},c,s)}}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../box/plot&quot;:955,&quot;../scatter/line_points&quot;:1201,&quot;./helpers&quot;:1342,d3:169}],1348:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../scatter/style&quot;).stylePoints;e.exports=function(t){var e=n.select(t).selectAll(&quot;g.trace.violins&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.each((function(e){var r=e[0].trace,o=n.select(this),s=r.box||{},l=s.line||{},c=r.meanline||{},u=c.width;o.selectAll(&quot;path.violin&quot;).style(&quot;stroke-width&quot;,r.line.width+&quot;px&quot;).call(i.stroke,r.line.color).call(i.fill,r.fillcolor),o.selectAll(&quot;path.box&quot;).style(&quot;stroke-width&quot;,l.width+&quot;px&quot;).call(i.stroke,l.color).call(i.fill,s.fillcolor);var f={&quot;stroke-width&quot;:u+&quot;px&quot;,&quot;stroke-dasharray&quot;:2*u+&quot;px,&quot;+u+&quot;px&quot;};o.selectAll(&quot;path.mean&quot;).style(f).call(i.stroke,c.color),o.selectAll(&quot;path.meanline&quot;).style(f).call(i.stroke,c.color),a(o,r,t)}))}},{&quot;../../components/color&quot;:643,&quot;../scatter/style&quot;:1211,d3:169}],1349:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../isosurface/attributes&quot;),a=t(&quot;../surface/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll,c=e.exports=l(s({x:i.x,y:i.y,z:i.z,value:i.value,isomin:i.isomin,isomax:i.isomax,surface:i.surface,spaceframe:{show:{valType:&quot;boolean&quot;,dflt:!1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},slices:i.slices,caps:i.caps,text:i.text,hovertext:i.hovertext,hovertemplate:i.hovertemplate},n(&quot;&quot;,{colorAttr:&quot;`value`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{colorbar:i.colorbar,opacity:i.opacity,opacityscale:a.opacityscale,lightposition:i.lightposition,lighting:i.lighting,flatshading:i.flatshading,contour:i.contour,hoverinfo:s({},o.hoverinfo),showlegend:s({},o.showlegend,{dflt:!1})}),&quot;calc&quot;,&quot;nested&quot;);c.x.editType=c.y.editType=c.z.editType=c.value.editType=&quot;calc+clearAxisTypes&quot;,c.transforms=void 0},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../isosurface/attributes&quot;:1123,&quot;../surface/attributes&quot;:1311}],1350:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,a=t(&quot;../../lib/str2rgbarray&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts,s=t(&quot;../../plots/gl3d/zip3&quot;),l=t(&quot;../isosurface/convert&quot;).findNearestOnAxis,c=t(&quot;../isosurface/convert&quot;).generateIsoMeshes;function u(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.data=null,this.showContour=!1}var f=u.prototype;f.handlePick=function(t){if(t.object===this.mesh){var e=t.data.index,r=this.data._meshX[e],n=this.data._meshY[e],i=this.data._meshZ[e],a=this.data._Ys.length,o=this.data._Zs.length,s=l(r,this.data._Xs).id,c=l(n,this.data._Ys).id,u=l(i,this.data._Zs).id,f=t.index=u+o*c+o*a*s;t.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Array.isArray(h)&amp;&amp;void 0!==h[f]?t.textLabel=h[f]:h&amp;&amp;(t.textLabel=h),!0}},f.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map((function(e){return t.d2l(e,0,n)*r}))}this.data=c(t);var l={positions:s(n(r.xaxis,t._meshX,e.dataScale[0],t.xcalendar),n(r.yaxis,t._meshY,e.dataScale[1],t.ycalendar),n(r.zaxis,t._meshZ,e.dataScale[2],t.zcalendar)),cells:s(t._meshI,t._meshJ,t._meshK),lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,opacityscale:t.opacityscale,contourEnable:t.contour.show,contourColor:a(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading},u=o(t);l.vertexIntensity=t._meshIntensity,l.vertexIntensityBounds=[u.min,u.max],l.colormap=i(t),this.mesh.update(l)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new u(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/gl3d/zip3&quot;:881,&quot;../isosurface/convert&quot;:1125,&quot;gl-mesh3d&quot;:309}],1351:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../isosurface/defaults&quot;).supplyIsoDefaults,o=t(&quot;../surface/defaults&quot;).opacityscaleDefaults;e.exports=function(t,e,r,s){function l(r,a){return n.coerce(t,e,i,r,a)}a(t,e,r,s,l),o(t,e,s,l)}},{&quot;../../lib&quot;:778,&quot;../isosurface/defaults&quot;:1126,&quot;../surface/defaults&quot;:1314,&quot;./attributes&quot;:1349}],1352:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;../isosurface/calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;volume&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;../isosurface/calc&quot;:1124,&quot;./attributes&quot;:1349,&quot;./convert&quot;:1350,&quot;./defaults&quot;:1351}],1353:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../scatter/attributes&quot;).line,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;./constants&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../components/color&quot;);function f(t){return{marker:{color:c({},n.marker.color,{arrayOk:!1,editType:&quot;style&quot;}),line:{color:c({},n.marker.line.color,{arrayOk:!1,editType:&quot;style&quot;}),width:c({},n.marker.line.width,{arrayOk:!1,editType:&quot;style&quot;}),editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;}}e.exports={measure:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},base:{valType:&quot;number&quot;,dflt:null,arrayOk:!1,editType:&quot;calc&quot;},x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,hovertext:n.hovertext,hovertemplate:o({},{keys:l.eventDataKeys}),hoverinfo:c({},a.hoverinfo,{flags:[&quot;name&quot;,&quot;x&quot;,&quot;y&quot;,&quot;text&quot;,&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;]}),textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;,arrayOk:!1},texttemplate:s({editType:&quot;plot&quot;},{keys:l.eventDataKeys.concat([&quot;label&quot;])}),text:n.text,textposition:n.textposition,insidetextanchor:n.insidetextanchor,textangle:n.textangle,textfont:n.textfont,insidetextfont:n.insidetextfont,outsidetextfont:n.outsidetextfont,constraintext:n.constraintext,cliponaxis:n.cliponaxis,orientation:n.orientation,offset:n.offset,width:n.width,increasing:f(),decreasing:f(),totals:f(),connector:{line:{color:c({},i.color,{dflt:u.defaultLine}),width:c({},i.width,{editType:&quot;plot&quot;}),dash:i.dash,editType:&quot;plot&quot;},mode:{valType:&quot;enumerated&quot;,values:[&quot;spanning&quot;,&quot;between&quot;],dflt:&quot;between&quot;,editType:&quot;plot&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup}},{&quot;../../components/color&quot;:643,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:1355}],1354:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;../../lib&quot;).mergeArray,o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t){return&quot;a&quot;===t||&quot;absolute&quot;===t}function c(t){return&quot;t&quot;===t||&quot;total&quot;===t}e.exports=function(t,e){var r,u,f,h,p=n.getFromId(t,e.xaxis||&quot;x&quot;),d=n.getFromId(t,e.yaxis||&quot;y&quot;);&quot;h&quot;===e.orientation?(r=p.makeCalcdata(e,&quot;x&quot;),f=d.makeCalcdata(e,&quot;y&quot;),u=i(e,d,&quot;y&quot;,f),h=!!e.yperiodalignment):(r=d.makeCalcdata(e,&quot;y&quot;),f=p.makeCalcdata(e,&quot;x&quot;),u=i(e,p,&quot;x&quot;,f),h=!!e.xperiodalignment);for(var g,m=Math.min(u.length,r.length),v=new Array(m),y=0,x=!1,b=0;b&lt;m;b++){var _=r[b]||0,w=!1;(r[b]!==s||c(e.measure[b])||l(e.measure[b]))&amp;&amp;b+1&lt;m&amp;&amp;(r[b+1]!==s||c(e.measure[b+1])||l(e.measure[b+1]))&amp;&amp;(w=!0);var T=v[b]={i:b,p:u[b],s:_,rawS:_,cNext:w};l(e.measure[b])?(y=T.s,T.isSum=!0,T.dir=&quot;totals&quot;,T.s=y):c(e.measure[b])?(T.isSum=!0,T.dir=&quot;totals&quot;,T.s=y):(T.isSum=!1,T.dir=T.rawS&lt;0?&quot;decreasing&quot;:&quot;increasing&quot;,g=T.s,T.s=y+g,y+=g),&quot;totals&quot;===T.dir&amp;&amp;(x=!0),h&amp;&amp;(v[b].orig_p=f[b]),e.ids&amp;&amp;(T.id=String(e.ids[b])),T.v=(e.base||0)+y}return v.length&amp;&amp;(v[0].hasTotals=x),a(e.text,v,&quot;tx&quot;),a(e.hovertext,v,&quot;htx&quot;),o(v,e),v}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc_selection&quot;:1189}],1355:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;]}},{}],1356:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions;e.exports=function(t,e){var r,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,c=e.yaxis,u=[],f=[],h=[];for(i=0;i&lt;o.length;i++){var p=o[i];!0===p.visible&amp;&amp;p.xaxis===l._id&amp;&amp;p.yaxis===c._id&amp;&amp;&quot;waterfall&quot;===p.type&amp;&amp;(r=s[i],&quot;h&quot;===p.orientation?h.push(r):f.push(r),u.push(r))}var d={mode:a.waterfallmode,norm:a.waterfallnorm,gap:a.waterfallgap,groupgap:a.waterfallgroupgap};for(n(t,l,c,f,d),n(t,c,l,h,d),i=0;i&lt;u.length;i++){r=u[i];for(var g=0;g&lt;r.length;g++){var m=r[g];!1===m.isSum&amp;&amp;(m.s0+=0===g?0:r[g-1].s),g+1&lt;r.length&amp;&amp;(r[g].nextP0=r[g+1].p0,r[g].nextS0=r[g+1].s0)}}}},{&quot;../bar/cross_trace_calc&quot;:924}],1357:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,a=t(&quot;../bar/defaults&quot;).handleText,o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../../components/color&quot;),u=t(&quot;../../constants/delta.js&quot;),f=u.INCREASING.COLOR,h=u.DECREASING.COLOR;function p(t,e,r){t(e+&quot;.marker.color&quot;,r),t(e+&quot;.marker.line.color&quot;,c.defaultLine),t(e+&quot;.marker.line.width&quot;)}e.exports={supplyDefaults:function(t,e,r,i){function c(r,i){return n.coerce(t,e,l,r,i)}if(o(t,e,i,c)){s(t,e,i,c),c(&quot;measure&quot;),c(&quot;orientation&quot;,e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;),c(&quot;base&quot;),c(&quot;offset&quot;),c(&quot;width&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;);var u=c(&quot;textposition&quot;);if(a(t,e,i,c,u,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),&quot;none&quot;!==e.textposition&amp;&amp;(c(&quot;texttemplate&quot;),e.texttemplate||c(&quot;textinfo&quot;)),p(c,&quot;increasing&quot;,f),p(c,&quot;decreasing&quot;,h),p(c,&quot;totals&quot;,&quot;#4499FF&quot;),c(&quot;connector.visible&quot;))c(&quot;connector.mode&quot;),c(&quot;connector.line.width&quot;)&amp;&amp;(c(&quot;connector.line.color&quot;),c(&quot;connector.line.dash&quot;))}else e.visible=!1},crossTraceDefaults:function(t,e){var r,a;function o(t){return n.coerce(a._input,a,l,t)}if(&quot;group&quot;===e.waterfallmode)for(var s=0;s&lt;t.length;s++)r=(a=t[s])._input,i(r,a,e,o)}}},{&quot;../../components/color&quot;:643,&quot;../../constants/delta.js&quot;:747,&quot;../../lib&quot;:778,&quot;../bar/defaults&quot;:925,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:1353}],1358:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;initial&quot;in e&amp;&amp;(t.initial=e.initial),&quot;delta&quot;in e&amp;&amp;(t.delta=e.delta),&quot;final&quot;in e&amp;&amp;(t.final=e.final),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],1359:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText,i=t(&quot;../../components/color&quot;).opacity,a=t(&quot;../bar/hover&quot;).hoverOnBars,o=t(&quot;../../constants/delta.js&quot;),s=o.INCREASING.SYMBOL,l=o.DECREASING.SYMBOL;e.exports=function(t,e,r,o){var c=a(t,e,r,o);if(c){var u=c.cd,f=u[0].trace,h=&quot;h&quot;===f.orientation,p=h?t.xa:t.ya,d=u[c.index],g=d.isSum?d.b+d.s:d.rawS;if(!d.isSum){c.initial=d.b+d.s-g,c.delta=g,c.final=c.initial+c.delta;var m=w(Math.abs(c.delta));c.deltaLabel=g&lt;0?&quot;(&quot;+m+&quot;)&quot;:m,c.finalLabel=w(c.final),c.initialLabel=w(c.initial)}var v=d.hi||f.hoverinfo,y=[];if(v&amp;&amp;&quot;none&quot;!==v&amp;&amp;&quot;skip&quot;!==v){var x=&quot;all&quot;===v,b=v.split(&quot;+&quot;),_=function(t){return x||-1!==b.indexOf(t)};d.isSum||(!_(&quot;final&quot;)||_(h?&quot;x&quot;:&quot;y&quot;)||y.push(c.finalLabel),_(&quot;delta&quot;)&amp;&amp;(g&lt;0?y.push(c.deltaLabel+&quot; &quot;+l):y.push(c.deltaLabel+&quot; &quot;+s)),_(&quot;initial&quot;)&amp;&amp;y.push(&quot;Initial: &quot;+c.initialLabel))}return y.length&amp;&amp;(c.extraText=y.join(&quot;&lt;br&gt;&quot;)),c.color=function(t,e){var r=t[e.dir].marker,n=r.color,a=r.line.color,o=r.line.width;if(i(n))return n;if(i(a)&amp;&amp;o)return a}(f,d),[c]}function w(t){return n(p,t)}}},{&quot;../../components/color&quot;:643,&quot;../../constants/delta.js&quot;:747,&quot;../../plots/cartesian/axes&quot;:828,&quot;../bar/hover&quot;:928}],1360:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;../bar/select&quot;),moduleType:&quot;trace&quot;,name:&quot;waterfall&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;oriented&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../bar/select&quot;:933,&quot;./attributes&quot;:1353,&quot;./calc&quot;:1354,&quot;./cross_trace_calc&quot;:1356,&quot;./defaults&quot;:1357,&quot;./event_data&quot;:1358,&quot;./hover&quot;:1359,&quot;./layout_attributes&quot;:1361,&quot;./layout_defaults&quot;:1362,&quot;./plot&quot;:1363,&quot;./style&quot;:1364}],1361:[function(t,e,r){&quot;use strict&quot;;e.exports={waterfallmode:{valType:&quot;enumerated&quot;,values:[&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;group&quot;,editType:&quot;calc&quot;},waterfallgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},waterfallgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],1362:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s&lt;r.length;s++){var l=r[s];if(l.visible&amp;&amp;&quot;waterfall&quot;===l.type){a=!0;break}}a&amp;&amp;(o(&quot;waterfallmode&quot;),o(&quot;waterfallgap&quot;,.2),o(&quot;waterfallgroupgap&quot;))}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1361}],1363:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../constants/numerical&quot;).BADNUM,s=t(&quot;../bar/plot&quot;),l=t(&quot;../bar/uniform_text&quot;).clearMinTextSize;e.exports=function(t,e,r,c){var u=t._fullLayout;l(&quot;waterfall&quot;,u),s.plot(t,e,r,c,{mode:u.waterfallmode,norm:u.waterfallmode,gap:u.waterfallgap,groupgap:u.waterfallgroupgap}),function(t,e,r,s){var l=e.xaxis,c=e.yaxis;i.makeTraceGroups(s,r,&quot;trace bars&quot;).each((function(r){var s=n.select(this),u=r[0].trace,f=i.ensureSingle(s,&quot;g&quot;,&quot;lines&quot;);if(u.connector&amp;&amp;u.connector.visible){var h=&quot;h&quot;===u.orientation,p=u.connector.mode,d=f.selectAll(&quot;g.line&quot;).data(i.identity);d.enter().append(&quot;g&quot;).classed(&quot;line&quot;,!0),d.exit().remove();var g=d.size();d.each((function(r,s){if(s===g-1||r.cNext){var u=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),n?[i,a]:[a,i]}(r,l,c,h),f=u[0],d=u[1],m=&quot;&quot;;f[0]!==o&amp;&amp;d[0]!==o&amp;&amp;f[1]!==o&amp;&amp;d[1]!==o&amp;&amp;(&quot;spanning&quot;===p&amp;&amp;!r.isSum&amp;&amp;s&gt;0&amp;&amp;(m+=h?&quot;M&quot;+f[0]+&quot;,&quot;+d[1]+&quot;V&quot;+d[0]:&quot;M&quot;+f[1]+&quot;,&quot;+d[0]+&quot;H&quot;+f[0]),&quot;between&quot;!==p&amp;&amp;(r.isSum||s&lt;g-1)&amp;&amp;(m+=h?&quot;M&quot;+f[1]+&quot;,&quot;+d[0]+&quot;V&quot;+d[1]:&quot;M&quot;+f[0]+&quot;,&quot;+d[1]+&quot;H&quot;+f[1]),f[2]!==o&amp;&amp;d[2]!==o&amp;&amp;(m+=h?&quot;M&quot;+f[1]+&quot;,&quot;+d[1]+&quot;V&quot;+d[2]:&quot;M&quot;+f[1]+&quot;,&quot;+d[1]+&quot;H&quot;+f[2])),&quot;&quot;===m&amp;&amp;(m=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,m).call(a.setClipUrl,e.layerClipId,t)}}))}else f.remove()}))}(t,e,r,c)}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../bar/plot&quot;:932,&quot;../bar/uniform_text&quot;:937,d3:169}],1364:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../constants/interactions&quot;).DESELECTDIM,s=t(&quot;../bar/style&quot;),l=t(&quot;../bar/uniform_text&quot;).resizeText,c=s.styleTextPoints;e.exports={style:function(t,e,r){var s=r||n.select(t).selectAll(&quot;g.waterfalllayer&quot;).selectAll(&quot;g.trace&quot;);l(t,s,&quot;waterfall&quot;),s.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),s.each((function(e){var r=n.select(this),s=e[0].trace;r.selectAll(&quot;.point &gt; path&quot;).each((function(t){if(!t.isBlank){var e=s[t.dir].marker;n.select(this).call(a.fill,e.color).call(a.stroke,e.line.color).call(i.dashLine,e.line.dash,e.line.width).style(&quot;opacity&quot;,s.selectedpoints&amp;&amp;!t.selected?o:1)}})),c(r,s,t),r.selectAll(&quot;.lines&quot;).each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll(&quot;path&quot;),t.width,t.color,t.dash)}))}))}}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../constants/interactions&quot;:752,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,d3:169}],1365:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../plots/cartesian/axes&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../plot_api/plot_schema&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction,s=t(&quot;../constants/numerical&quot;).BADNUM;r.moduleType=&quot;transform&quot;,r.name=&quot;aggregate&quot;;var l=r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},groups:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},aggregations:{_isLinkedToArray:&quot;aggregation&quot;,target:{valType:&quot;string&quot;,editType:&quot;calc&quot;},func:{valType:&quot;enumerated&quot;,values:[&quot;count&quot;,&quot;sum&quot;,&quot;avg&quot;,&quot;median&quot;,&quot;mode&quot;,&quot;rms&quot;,&quot;stddev&quot;,&quot;min&quot;,&quot;max&quot;,&quot;first&quot;,&quot;last&quot;,&quot;change&quot;,&quot;range&quot;],dflt:&quot;first&quot;,editType:&quot;calc&quot;},funcmode:{valType:&quot;enumerated&quot;,values:[&quot;sample&quot;,&quot;population&quot;],dflt:&quot;sample&quot;,editType:&quot;calc&quot;},enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},c=l.aggregations;function u(t,e,r,a){if(a.enabled){for(var o=a.target,l=i.nestedProperty(e,o),c=l.get(),u=function(t,e){var r=t.func,n=e.d2c,a=e.c2d;switch(r){case&quot;count&quot;:return f;case&quot;first&quot;:return h;case&quot;last&quot;:return p;case&quot;sum&quot;:return function(t,e){for(var r=0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r+=o)}return a(r)};case&quot;avg&quot;:return function(t,e){for(var r=0,i=0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r+=l,i++)}return i?a(r/i):s};case&quot;min&quot;:return function(t,e){for(var r=1/0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r=Math.min(r,o))}return r===1/0?s:a(r)};case&quot;max&quot;:return function(t,e){for(var r=-1/0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r=Math.max(r,o))}return r===-1/0?s:a(r)};case&quot;range&quot;:return function(t,e){for(var r=1/0,i=-1/0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r=Math.min(r,l),i=Math.max(i,l))}return i===-1/0||r===1/0?s:a(i-r)};case&quot;change&quot;:return function(t,e){var r=n(t[e[0]]),i=n(t[e[e.length-1]]);return r===s||i===s?s:a(i-r)};case&quot;median&quot;:return function(t,e){for(var r=[],o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;r.push(l)}if(!r.length)return s;r.sort(i.sorterAsc);var c=(r.length-1)/2;return a((r[Math.floor(c)]+r[Math.ceil(c)])/2)};case&quot;mode&quot;:return function(t,e){for(var r={},i=0,o=s,l=0;l&lt;e.length;l++){var c=n(t[e[l]]);if(c!==s){var u=r[c]=(r[c]||0)+1;u&gt;i&amp;&amp;(i=u,o=c)}}return i?a(o):s};case&quot;rms&quot;:return function(t,e){for(var r=0,i=0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r+=l*l,i++)}return i?a(Math.sqrt(r/i)):s};case&quot;stddev&quot;:return function(e,r){var i,a=0,o=0,l=1,c=s;for(i=0;i&lt;r.length&amp;&amp;c===s;i++)c=n(e[r[i]]);if(c===s)return s;for(;i&lt;r.length;i++){var u=n(e[r[i]]);if(u!==s){var f=u-c;a+=f,o+=f*f,l++}}var h=&quot;sample&quot;===t.funcmode?l-1:l;return h?Math.sqrt((o-a*a/l)/h):0}}}(a,n.getDataConversions(t,e,o,c)),d=new Array(r.length),g=0;g&lt;r.length;g++)d[g]=u(c,r[g]);l.set(d),&quot;count&quot;===a.func&amp;&amp;i.pushUnique(e._arrayAttrs,o)}}function f(t,e){return e.length}function h(t,e){return t[e[0]]}function p(t,e){return t[e[e.length-1]]}r.supplyDefaults=function(t,e){var r,n={};function o(e,r){return i.coerce(t,n,l,e,r)}if(!o(&quot;enabled&quot;))return n;var s=a.findArrayAttributes(e),u={};for(r=0;r&lt;s.length;r++)u[s[r]]=1;var f=o(&quot;groups&quot;);if(!Array.isArray(f)){if(!u[f])return n.enabled=!1,n;u[f]=0}var h,p=t.aggregations||[],d=n.aggregations=new Array(p.length);function g(t,e){return i.coerce(p[r],h,c,t,e)}for(r=0;r&lt;p.length;r++){h={_index:r};var m=g(&quot;target&quot;),v=g(&quot;func&quot;);g(&quot;enabled&quot;)&amp;&amp;m&amp;&amp;(u[m]||&quot;count&quot;===v&amp;&amp;void 0===u[m])?(&quot;stddev&quot;===v&amp;&amp;g(&quot;funcmode&quot;),u[m]=0,d[r]=h):d[r]={enabled:!1,_index:r}}for(r=0;r&lt;s.length;r++)u[s[r]]&amp;&amp;d.push({target:s[r],func:c.func.dflt,enabled:!0,_index:-1});return n},r.calcTransform=function(t,e,r){if(r.enabled){var n=r.groups,a=i.getTargetArray(e,{target:n});if(a){var s,l,c,f,h={},p={},d=[],g=o(e.transforms,r),m=a.length;for(e._length&amp;&amp;(m=Math.min(m,e._length)),s=0;s&lt;m;s++)void 0===(c=h[l=a[s]])?(h[l]=d.length,f=[s],d.push(f),p[h[l]]=g(s)):(d[c].push(s),p[h[l]]=(p[h[l]]||[]).concat(g(s)));r._indexToPoints=p;var v=r.aggregations;for(s=0;s&lt;v.length;s++)u(t,e,d,v[s]);&quot;string&quot;==typeof n&amp;&amp;u(t,e,d,{target:n,func:&quot;first&quot;,enabled:!0}),e._length=d.length}}}},{&quot;../constants/numerical&quot;:753,&quot;../lib&quot;:778,&quot;../plot_api/plot_schema&quot;:816,&quot;../plots/cartesian/axes&quot;:828,&quot;./helpers&quot;:1368}],1366:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../registry&quot;),a=t(&quot;../plots/cartesian/axes&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction,s=t(&quot;../constants/filter_ops&quot;),l=s.COMPARISON_OPS,c=s.INTERVAL_OPS,u=s.SET_OPS;r.moduleType=&quot;transform&quot;,r.name=&quot;filter&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},target:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},operation:{valType:&quot;enumerated&quot;,values:[].concat(l).concat(c).concat(u),dflt:&quot;=&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},preservegaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t){var e={};function a(i,a){return n.coerce(t,e,r.attributes,i,a)}if(a(&quot;enabled&quot;)){var o=a(&quot;target&quot;);if(n.isArrayOrTypedArray(o)&amp;&amp;0===o.length)return e.enabled=!1,e;a(&quot;preservegaps&quot;),a(&quot;operation&quot;),a(&quot;value&quot;);var s=i.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;);s(t,e,&quot;valuecalendar&quot;,null),s(t,e,&quot;targetcalendar&quot;,null)}return e},r.calcTransform=function(t,e,r){if(r.enabled){var i=n.getTargetArray(e,r);if(i){var s=r.target,f=i.length;e._length&amp;&amp;(f=Math.min(f,e._length));var h=r.targetcalendar,p=e._arrayAttrs,d=r.preservegaps;if(&quot;string&quot;==typeof s){var g=n.nestedProperty(e,s+&quot;calendar&quot;).get();g&amp;&amp;(h=g)}var m,v,y=function(t,e,r){var n=t.operation,i=t.value,a=Array.isArray(i);function o(t){return-1!==t.indexOf(n)}var s,f=function(r){return e(r,0,t.valuecalendar)},h=function(t){return e(t,0,r)};o(l)?s=f(a?i[0]:i):o(c)?s=a?[f(i[0]),f(i[1])]:[f(i),f(i)]:o(u)&amp;&amp;(s=a?i.map(f):[f(i)]);switch(n){case&quot;=&quot;:return function(t){return h(t)===s};case&quot;!=&quot;:return function(t){return h(t)!==s};case&quot;&lt;&quot;:return function(t){return h(t)&lt;s};case&quot;&lt;=&quot;:return function(t){return h(t)&lt;=s};case&quot;&gt;&quot;:return function(t){return h(t)&gt;s};case&quot;&gt;=&quot;:return function(t){return h(t)&gt;=s};case&quot;[]&quot;:return function(t){var e=h(t);return e&gt;=s[0]&amp;&amp;e&lt;=s[1]};case&quot;()&quot;:return function(t){var e=h(t);return e&gt;s[0]&amp;&amp;e&lt;s[1]};case&quot;[)&quot;:return function(t){var e=h(t);return e&gt;=s[0]&amp;&amp;e&lt;s[1]};case&quot;(]&quot;:return function(t){var e=h(t);return e&gt;s[0]&amp;&amp;e&lt;=s[1]};case&quot;][&quot;:return function(t){var e=h(t);return e&lt;=s[0]||e&gt;=s[1]};case&quot;)(&quot;:return function(t){var e=h(t);return e&lt;s[0]||e&gt;s[1]};case&quot;](&quot;:return function(t){var e=h(t);return e&lt;=s[0]||e&gt;s[1]};case&quot;)[&quot;:return function(t){var e=h(t);return e&lt;s[0]||e&gt;=s[1]};case&quot;{}&quot;:return function(t){return-1!==s.indexOf(h(t))};case&quot;}{&quot;:return function(t){return-1===s.indexOf(h(t))}}}(r,a.getDataToCoordFunc(t,e,s,i),h),x={},b={},_=0;d?(m=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set(new Array(f))},v=function(t,e){var r=x[t.astr][e];t.get()[e]=r}):(m=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set([])},v=function(t,e){var r=x[t.astr][e];t.get().push(r)}),k(m);for(var w=o(e.transforms,r),T=0;T&lt;f;T++){y(i[T])?(k(v,T),b[_++]=w(T)):d&amp;&amp;_++}r._indexToPoints=b,e._length=_}}function k(t,r){for(var i=0;i&lt;p.length;i++){t(n.nestedProperty(e,p[i]),r)}}}},{&quot;../constants/filter_ops&quot;:749,&quot;../lib&quot;:778,&quot;../plots/cartesian/axes&quot;:828,&quot;../registry&quot;:911,&quot;./helpers&quot;:1368}],1367:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_schema&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction;function s(t,e){var r,s,l,c,u,f,h,p,d,g,m=e.transform,v=e.transformIndex,y=t.transforms[v].groups,x=o(t.transforms,m);if(!n.isArrayOrTypedArray(y)||0===y.length)return[t];var b=n.filterUnique(y),_=new Array(b.length),w=y.length,T=i.findArrayAttributes(t),k=m.styles||[],M={};for(r=0;r&lt;k.length;r++)M[k[r].target]=k[r].value;m.styles&amp;&amp;(g=n.keyedContainer(m,&quot;styles&quot;,&quot;target&quot;,&quot;value.name&quot;));var A={},S={};for(r=0;r&lt;b.length;r++){A[f=b[r]]=r,S[f]=0,(h=_[r]=n.extendDeepNoArrays({},t))._group=f,h.transforms[v]._indexToPoints={};var E=null;for(g&amp;&amp;(E=g.get(f)),h.name=E||&quot;&quot;===E?E:n.templateString(m.nameformat,{trace:t.name,group:f}),p=h.transforms,h.transforms=[],s=0;s&lt;p.length;s++)h.transforms[s]=n.extendDeepNoArrays({},p[s]);for(s=0;s&lt;T.length;s++)n.nestedProperty(h,T[s]).set([])}for(l=0;l&lt;T.length;l++){for(c=T[l],s=0,d=[];s&lt;b.length;s++)d[s]=n.nestedProperty(_[s],c).get();for(u=n.nestedProperty(t,c).get(),s=0;s&lt;w;s++)d[A[y[s]]].push(u[s])}for(s=0;s&lt;w;s++){(h=_[A[y[s]]]).transforms[v]._indexToPoints[S[y[s]]]=x(s),S[y[s]]++}for(r=0;r&lt;b.length;r++)f=b[r],h=_[r],a.clearExpandedTraceDefaultColors(h),h=n.extendDeepNoArrays(h,M[f]||{});return _}r.moduleType=&quot;transform&quot;,r.name=&quot;groupby&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},groups:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},nameformat:{valType:&quot;string&quot;,editType:&quot;calc&quot;},styles:{_isLinkedToArray:&quot;style&quot;,target:{valType:&quot;string&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:{},editType:&quot;calc&quot;,_compareAsJSON:!0},editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t,e,i){var a,o={};function s(e,i){return n.coerce(t,o,r.attributes,e,i)}if(!s(&quot;enabled&quot;))return o;s(&quot;groups&quot;),s(&quot;nameformat&quot;,i._dataLength&gt;1?&quot;%{group} (%{trace})&quot;:&quot;%{group}&quot;);var l=t.styles,c=o.styles=[];if(l)for(a=0;a&lt;l.length;a++){var u=c[a]={};n.coerce(l[a],c[a],r.attributes.styles,&quot;target&quot;);var f=n.coerce(l[a],c[a],r.attributes.styles,&quot;value&quot;);n.isPlainObject(f)?u.value=n.extendDeep({},f):f&amp;&amp;delete u.value}return o},r.transform=function(t,e){var r,n,i,a=[];for(n=0;n&lt;t.length;n++)for(r=s(t[n],e),i=0;i&lt;r.length;i++)a.push(r[i]);return a}},{&quot;../lib&quot;:778,&quot;../plot_api/plot_schema&quot;:816,&quot;../plots/plots&quot;:891,&quot;./helpers&quot;:1368}],1368:[function(t,e,r){&quot;use strict&quot;;r.pointsAccessorFunction=function(t,e){for(var r,n,i=0;i&lt;t.length&amp;&amp;(r=t[i])!==e;i++)r._indexToPoints&amp;&amp;!1!==r.enabled&amp;&amp;(n=r._indexToPoints);return n?function(t){return n[t]}:function(t){return[t]}}},{}],1369:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/cartesian/axes&quot;),a=t(&quot;./helpers&quot;).pointsAccessorFunction,o=t(&quot;../constants/numerical&quot;).BADNUM;r.moduleType=&quot;transform&quot;,r.name=&quot;sort&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},target:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},order:{valType:&quot;enumerated&quot;,values:[&quot;ascending&quot;,&quot;descending&quot;],dflt:&quot;ascending&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t){var e={};function i(i,a){return n.coerce(t,e,r.attributes,i,a)}return i(&quot;enabled&quot;)&amp;&amp;(i(&quot;target&quot;),i(&quot;order&quot;)),e},r.calcTransform=function(t,e,r){if(r.enabled){var s=n.getTargetArray(e,r);if(s){var l=r.target,c=s.length;e._length&amp;&amp;(c=Math.min(c,e._length));var u,f,h=e._arrayAttrs,p=function(t,e,r,n){var i,a=new Array(n),s=new Array(n);for(i=0;i&lt;n;i++)a[i]={v:e[i],i:i};for(a.sort(function(t,e){switch(t.order){case&quot;ascending&quot;:return function(t,r){var n=e(t.v),i=e(r.v);return n===o?1:i===o?-1:n-i};case&quot;descending&quot;:return function(t,r){var n=e(t.v),i=e(r.v);return n===o?1:i===o?-1:i-n}}}(t,r)),i=0;i&lt;n;i++)s[i]=a[i].i;return s}(r,s,i.getDataToCoordFunc(t,e,l,s),c),d=a(e.transforms,r),g={};for(u=0;u&lt;h.length;u++){var m=n.nestedProperty(e,h[u]),v=m.get(),y=new Array(c);for(f=0;f&lt;c;f++)y[f]=v[p[f]];m.set(y)}for(f=0;f&lt;c;f++)g[f]=d(p[f]);r._indexToPoints=g,e._length=c}}}},{&quot;../constants/numerical&quot;:753,&quot;../lib&quot;:778,&quot;../plots/cartesian/axes&quot;:828,&quot;./helpers&quot;:1368}],1370:[function(t,e,r){&quot;use strict&quot;;r.version=&quot;1.58.4&quot;},{}]},{},[26])(26)}));&lt;/script&gt;                &lt;div id=&quot;491b360d-800c-4127-843d-a99a93ee25d1&quot; class=&quot;plotly-graph-div&quot; style=&quot;height:100%; width:100%;&quot;&gt;&lt;/div&gt;            &lt;script type=&quot;text/javascript&quot;&gt;                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById(&quot;491b360d-800c-4127-843d-a99a93ee25d1&quot;)) {                    Plotly.newPlot(                        &quot;491b360d-800c-4127-843d-a99a93ee25d1&quot;,                        [{&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;LATITUDE=%{lat}&lt;br&gt;LONGITUDE=%{lon}&lt;br&gt;ESTIMATED YEAR INCREASE (C)=%{marker.color}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;ABALA_ABALA&quot;, &quot;ABASOLO&quot;, &quot;ACAPONETA_ACAPONETA&quot;, &quot;ACAPULCOGRO&quot;, &quot;ACATLAN_ACATLAN&quot;, &quot;ACTOPAN&quot;, &quot;ADOLFO_LOPEZ_MATEOS&quot;, &quot;AEROPINTERNACIONAL&quot;, &quot;AEROP_INTERN&quot;, &quot;AGUASCALIENTES&quot;, &quot;AGUA_BUENA_TAMASOPO&quot;, &quot;AHUACATLAN_AHUACATLA&quot;, &quot;AHUALULCO_GOMEZ_FARI&quot;, &quot;AKIL_AKIL&quot;, &quot;ALLENDE&quot;, &quot;ALMANDRO&quot;, &quot;ALTAMIRANO&quot;, &quot;ALTARSON&quot;, &quot;ALTAR_SONMEXICO&quot;, &quot;ALVARO_OBREGON&quot;, &quot;APAN&quot;, &quot;AQUESPALA&quot;, &quot;AQUIXTLA&quot;, &quot;ARIVECHI_ARIVECHI&quot;, &quot;ATOTONILCO&quot;, &quot;ATOYAC_ATOYACDGE&quot;, &quot;ATOYAC_DE_ALVAREZ_SM&quot;, &quot;AYOTOXCO&quot;, &quot;BACADEHUACHI_DGE&quot;, &quot;BACHINIVA&quot;, &quot;BADIRAGUATO&quot;, &quot;BAHIA_DE_KINO&quot;, &quot;BAHIA_TORTUGAS_MULEG&quot;, &quot;BALLEZA_BALLEZA&quot;, &quot;BATOPILAS&quot;, &quot;BECANCHEN_TEKAX&quot;, &quot;BOCA_DEL_CERRO&quot;, &quot;BOCHIL_BOCHIL&quot;, &quot;BOLONCHEN&quot;, &quot;BONBANA_BOCHIL&quot;, &quot;BUENAVISTA_CUAUHTEMO&quot;, &quot;BURGOS_BURGOS_DGE&quot;, &quot;CABO_SAN_LUCAS&quot;, &quot;CADEGE_COMONDU&quot;, &quot;CADUANO_SANTIAGO&quot;, &quot;CAHUACAN&quot;, &quot;CALLEJONES_TECOMAN&quot;, &quot;CAMPECHECAMP&quot;, &quot;CANATLAN_CANATLAN&quot;, &quot;CANCUN_INTL&quot;, &quot;CANDELARIA&quot;, &quot;CANTON&quot;, &quot;CAON_FERNANDEZ&quot;, &quot;CAPOMAL_STGO_IXCUIN&quot;, &quot;CAPULUAQUE&quot;, &quot;CASCAJAL_V_CARRANZA&quot;, &quot;CDE_FLORES&quot;, &quot;CD_CUBIL&quot;, &quot;CD_OBREGON_SON&quot;, &quot;CEI_CD_MANTE_MAN&quot;, &quot;CERRO_PRIETO_LINARES&quot;, &quot;CHAMPOTONCHAMPOTON&quot;, &quot;CHAPALA&quot;, &quot;CHAPALA&quot;, &quot;CHAPARACO&quot;, &quot;CHAPINGO&quot;, &quot;CHARCAS&quot;, &quot;CHETUMAL_INTL&quot;, &quot;CHIAPILLACHIAPILLA&quot;, &quot;CHICAPA&quot;, &quot;CHIETLA&quot;, &quot;CHIHUAHUACHIH&quot;, &quot;CHILPANCINGORO&quot;, &quot;CHINIPAS_CHINIPAS_DG&quot;, &quot;CHOIX&quot;, &quot;CIHUALTEPEC_SAN_JUAN&quot;, &quot;CIUDAD_CONSTITUCION&quot;, &quot;CIUDAD_DELICIAS&quot;, &quot;CIUDAD_GUERRERO&quot;, &quot;CIUDAD_GUZMANJAL&quot;, &quot;CIUDAD_JIMENEZ&quot;, &quot;CIUDAD_OBREGONSON&quot;, &quot;CIUDAD_OBREGON_INTL&quot;, &quot;CIUDAD_VICTORIA&quot;, &quot;COATZACOALCOSVER&quot;, &quot;COLIMA&quot;, &quot;COLONIA_JUAN_CARRAS&quot;, &quot;COLOTLANJAL&quot;, &quot;COL_ESCANDON&quot;, &quot;COMITANCHIS&quot;, &quot;COQUIMATLAN_COQUIMAT&quot;, &quot;COSCOMATEPEC_BRAVO_S&quot;, &quot;COYAME&quot;, &quot;COYUQUILLA_PETATLAN&quot;, &quot;COZOALTEPECSTAMARIA&quot;, &quot;CREEL&quot;, &quot;CUASTECOMATILLO&quot;, &quot;CUATRO_CIENEGAS&quot;, &quot;CUAUTLA_CUAUTLA_DGE&quot;, &quot;CUENCAME&quot;, &quot;CUERNAVACA&quot;, &quot;CULIACAN_INTL&quot;, &quot;CUMUATO&quot;, &quot;CUQUIO&quot;, &quot;DON_MIGUEL_Y_HIDALG&quot;, &quot;DOS_PATRIAS&quot;, &quot;DURANGODGO&quot;, &quot;DURANGO_DGOMEXICO&quot;, &quot;DZITAS&quot;, &quot;EJIDO_NUEVO_LEON_BC&quot;, &quot;EJIDO_REATARAMOS_ARI&quot;, &quot;EL_AGUAJITO_LA_PAZ&quot;, &quot;EL_ARCO&quot;, &quot;EL_BARRETAL&quot;, &quot;EL_BOQUERON_SUCHIAPA&quot;, &quot;EL_CANTIL&quot;, &quot;EL_COLORADO&quot;, &quot;EL_FUERTE&quot;, &quot;EL_MANANTIAL&quot;, &quot;EL_NOVILLO&quot;, &quot;EL_OREGANO&quot;, &quot;EL_PALMAR_ZONGOLICA&quot;, &quot;EL_PASO_IRITU&quot;, &quot;EL_PILAR_LA_PAZ&quot;, &quot;EL_PLATANITO&quot;, &quot;EL_PUEBLITO&quot;, &quot;EL_REFUGIO_COMONDU&quot;, &quot;EL_REFUGIO_MANTE_DGE&quot;, &quot;EL_RODEO_MIACATLAN&quot;, &quot;EL_SALTO&quot;, &quot;EL_SALTO&quot;, &quot;EL_SALTO_EL_SALTO&quot;, &quot;EL_SAUZ&quot;, &quot;EL_TUITO_C_CORRIENT&quot;, &quot;EMPALMESON&quot;, &quot;ENSENADA&quot;, &quot;ESCARCEGA_ESCARCEGA&quot;, &quot;EXCAME_III&quot;, &quot;FCOIMADERO&quot;, &quot;FELIPE_CARRILLO_PUE&quot;, &quot;FELIPE_CARRILLO_PUERTOQROO&quot;, &quot;FELIPE_PESCADOR&quot;, &quot;FRANCISCO_PRIMO_VERD&quot;, &quot;FRANCISCO_SARABIA&quot;, &quot;GALEANA&quot;, &quot;GENERAL_BRAVO&quot;, &quot;GENERAL_CEPEDA&quot;, &quot;GENERAL_IGNACIO_P_GARCIA_INTL&quot;, &quot;GENERAL_JUAN_N_ALVA&quot;, &quot;GOMEZ_FARIAS_G_FARI&quot;, &quot;GRANJA_EXPERIMENTAL&quot;, &quot;GUACHOCHIC&quot;, &quot;GUADALAJARA&quot;, &quot;GUADALAJARA&quot;, &quot;GUADALAJARA_JALISCO&quot;, &quot;GUADALUPE_Y_CALVO&quot;, &quot;GUANACEVI&quot;, &quot;GUANACEVIGUANACEVISM&quot;, &quot;GUANAJUATO&quot;, &quot;GUSTAVO_DIAZ_ORDAZ&quot;, &quot;HACIENDA_YLANG_YLANG_VERACRUZ&quot;, &quot;HECELCHAKAN&quot;, &quot;HERMANOS_SERDAN_INTL&quot;, &quot;HIDALGO&quot;, &quot;HIDALGO_DEL_PARRALCHIH&quot;, &quot;HUAHUAXTLA&quot;, &quot;HUAUCHINANGO&quot;, &quot;HUEJUTLA_HUEJUTLA&quot;, &quot;HUICHAPAN_HUICHAPAN&quot;, &quot;HUISTAN&quot;, &quot;HUITES_CHOIX&quot;, &quot;HUITZUCO&quot;, &quot;IGNACIO_ALLENDEGPEV&quot;, &quot;IGUALA&quot;, &quot;IGUALA_IGUALA&quot;, &quot;INGENIERO_ALBERTO_ACUNA_ONGAY&quot;, &quot;IRAPUATO&quot;, &quot;ISLA_SOCORROCOL&quot;, &quot;IXCAMILPA&quot;, &quot;IXHUATLAN&quot;, &quot;IXTACAMAXTITLAN&quot;, &quot;IXTAPA&quot;, &quot;IXTEPEC&quot;, &quot;IXTLAHUACAN_DGE&quot;, &quot;JAINA&quot;, &quot;JALAPAVER&quot;, &quot;JAUMAVE&quot;, &quot;JDE_ZARAGOZA&quot;, &quot;JESUS_TERAN_INTL&quot;, &quot;JOLALPAN_JOLALPAN_SM&quot;, &quot;JOPALA&quot;, &quot;JUMATAN&quot;, &quot;KANTUNILKIN&quot;, &quot;LAS_ADJUNTAS&quot;, &quot;LAS_BURRAS&quot;, &quot;LAS_CASAS&quot;, &quot;LAS_ESCOBAS&quot;, &quot;LAS_FLORES_JIQUIPILA&quot;, &quot;LAS_GAVIOTAS_COMPOST&quot;, &quot;LAS_TASAS&quot;, &quot;LA_ANGOSTURA&quot;, &quot;LA_BOCA_SANTIAGO&quot;, &quot;LA_BOQUILLA_P&quot;, &quot;LA_CALZADA&quot;, &quot;LA_CATARATA&quot;, &quot;LA_DESEMBOCADA&quot;, &quot;LA_DURA_ROSARIO&quot;, &quot;LA_FLORIDA&quot;, &quot;LA_FUNDICION&quot;, &quot;LA_GRANDE_TEXCOCO&quot;, &quot;LA_GUADALUPE&quot;, &quot;LA_JUNTA_TEMOSACHIC&quot;, &quot;LA_PAGODA&quot;, &quot;LA_PALMA_V_CARRANZA&quot;, &quot;LA_PAZ_BSC&quot;, &quot;LA_PAZ_CITY&quot;, &quot;LA_PIEDAD_C&quot;, &quot;LA_PIMIENTA&quot;, &quot;LA_PURISIMA&quot;, &quot;LA_RIBERA&quot;, &quot;LA_SOLEDAD&quot;, &quot;LA_TRINITARIA_ZAPALU&quot;, &quot;LA_UNION&quot;, &quot;LA_UNION_CINTALAPA&quot;, &quot;LA_VILLITA&quot;, &quot;LERDO_IN_DURANGO&quot;, &quot;LINARES_LINARES_DGE&quot;, &quot;LIVINGSTON&quot;, &quot;LOMA_ALTA&quot;, &quot;LORETO&quot;, &quot;LOS_RAMONES&quot;, &quot;MACUSPANA&quot;, &quot;MADERA&quot;, &quot;MANZANILLO&quot;, &quot;MASCOTA&quot;, &quot;MATIAS_ROMERO_M_ROM&quot;, &quot;MATLAPASLP&quot;, &quot;MAZATAN_MAZATANSMN&quot;, &quot;MAZATLAN&quot;, &quot;MEOQUI&quot;, &quot;MERIDA&quot;, &quot;MESA_DEL_HURACAN&quot;, &quot;MEXICALI&quot;, &quot;MEXICO_CITY&quot;, &quot;MINAS_NUEVAS&quot;, &quot;MIXQUIAHUALA&quot;, &quot;MOCORITO&quot;, &quot;MOCTEZUMAMOCTEZUMADG&quot;, &quot;MOLINO_BLANCO&quot;, &quot;MONCLOVA&quot;, &quot;MONTEMORELOS&quot;, &quot;MONTERREYNL&quot;, &quot;MONTERREY_CITY&quot;, &quot;MORELIAMICH&quot;, &quot;MULATOS_SAHUARIPA_SM&quot;, &quot;NAMIQUIPA_NAMIQUIPA&quot;, &quot;NAZAS&quot;, &quot;NUEVA_CASAS_GRANDES&quot;, &quot;OAXACAOAX&quot;, &quot;OCOZOCUAUTLA&quot;, &quot;OJINAGA&quot;, &quot;ORIZABAVER&quot;, &quot;ORIZATLAN_ORIZATLAN&quot;, &quot;OSTUTA_SANTO_DOMINGO&quot;, &quot;PABELLON&quot;, &quot;PACHUCAHGO&quot;, &quot;PADILLA&quot;, &quot;PALOS_BLANCOS_CULIAC&quot;, &quot;PARRAS&quot;, &quot;PASO_DE_AROCHA&quot;, &quot;PASO_DE_NACORI&quot;, &quot;PETATLAN_PETATLAN_SM&quot;, &quot;PIAXTLA&quot;, &quot;PIEDRAS_NEGRAS_INTL&quot;, &quot;PILARES_DE_NACOZARISON&quot;, &quot;PONCIANO_ARRIAGA_INTL&quot;, &quot;POZOS&quot;, &quot;PRESACARRANZA&quot;, &quot;PRESA_CALLES&quot;, &quot;PRESA_GUARACHA&quot;, &quot;PRESA_REQUENA_T_DEL&quot;, &quot;PRESA_RODRIGUEZ&quot;, &quot;PROGRESO&quot;, &quot;PROGRESOYUC&quot;, &quot;PSA_ABELARDO_RODRIG&quot;, &quot;PUEBLA_PUE&quot;, &quot;PUERTO_ANGELOAX&quot;, &quot;PUERTO_MORELOS&quot;, &quot;PUERTO_PENASCOSON&quot;, &quot;PUNTA_PRIETA_ENSENAD&quot;, &quot;PUNTA_SAN_TELMO_AGUI&quot;, &quot;QUERETARO_INTERCONTINENTAL&quot;, &quot;QUEROBABI&quot;, &quot;QUIRIEGO&quot;, &quot;RAMOS_ARIZPESMN&quot;, &quot;RAMOS_ARIZPE_DGE&quot;, &quot;RANCHO_ALEGRE_ENSENA&quot;, &quot;RAYON&quot;, &quot;REQUETEMU&quot;, &quot;RIITO&quot;, &quot;RIO_VERDESLP&quot;, &quot;RODEO&quot;, &quot;ROSARITO&quot;, &quot;SABINAS&quot;, &quot;SAHUARIPA&quot;, &quot;SALINILLAS&quot;, &quot;SALTILLO&quot;, &quot;SALTILLO&quot;, &quot;SALTILLO_COAHUILA&quot;, &quot;SAMALAYUCA&quot;, &quot;SAMARIA&quot;, &quot;SANALONA&quot;, &quot;SANTA_FE_DEL_RIO&quot;, &quot;SANTA_GERTRUDISTSAN&quot;, &quot;SANTA_ROSALIA&quot;, &quot;SANTIAGO_IXCUINTLA&quot;, &quot;SANTIAGO_SANTIAGO&quot;, &quot;SANTO_TOMAS&quot;, &quot;SAN_AGUSTIN&quot;, &quot;SAN_BARTOLOME_AYAUTL&quot;, &quot;SAN_BARTOLO_SAN_ANTO&quot;, &quot;SAN_BLAS&quot;, &quot;SAN_BORJA_ENSENADA&quot;, &quot;SAN_DIEGO_DE_LA_UNION&quot;, &quot;SAN_FELIPE_SAN_J_DE&quot;, &quot;SAN_FERNANDO&quot;, &quot;SAN_IGNACIO_MULEGE&quot;, &quot;SAN_JACINTOTODOS_SAN&quot;, &quot;SAN_JERONIMO&quot;, &quot;SAN_JOSE_DEL_CABO&quot;, &quot;SAN_JOSE_DE_GRACIA&quot;, &quot;SAN_JUAN&quot;, &quot;SAN_LUIS_POTOSI&quot;, &quot;SAN_LUIS_Y_SAN_PEDRO&quot;, &quot;SAN_MIGUEL_EL_ALTO&quot;, &quot;SAN_PEDRO_DE_LA_CUEV&quot;, &quot;SAN_PEDRO_LA_PAZ&quot;, &quot;SAN_PEDRO_RUIZ&quot;, &quot;SAN_REGIS_ENSENADA&quot;, &quot;SFELIPE_USILA&quot;, &quot;SIMOJOVEL_DE_A_DGE&quot;, &quot;SIQUIRICHIC_GUACHOCH&quot;, &quot;SN_CRISTOBAL_LAS_CASASCHIS&quot;, &quot;SOMBRERETEZAC&quot;, &quot;SOTO_LA_MARINATAMPS&quot;, &quot;SOTUTA_SOTUTA_DGE&quot;, &quot;SPEDRO_DEL_G&quot;, &quot;STA_MARIA_CHILCHOTL&quot;, &quot;STGOCHIVELA&quot;, &quot;STODOMINGO_TEHUANTE&quot;, &quot;TAMPICOTAMPS&quot;, &quot;TAMUINSLP&quot;, &quot;TANTIZOHUICHE&quot;, &quot;TAPACHULACHIS&quot;, &quot;TECOMAN_TECOMAN&quot;, &quot;TEHUACAN&quot;, &quot;TEJOLOCACHIC_SMN&quot;, &quot;TEKAX_DE_ALVARO_OBRE&quot;, &quot;TEMASCAL&quot;, &quot;TEMOSACHIC&quot;, &quot;TEOCELO&quot;, &quot;TEPATITLAN&quot;, &quot;TEPEHUANESDGO&quot;, &quot;TEPIC&quot;, &quot;TEPIC_NAYARIT&quot;, &quot;TETELILA&quot;, &quot;TEZIUTLAN&quot;, &quot;TEZONTEPEC&quot;, &quot;TIHOSUCO&quot;, &quot;TLANCHINOL_TLANCHINO&quot;, &quot;TODOS_SANTOS&quot;, &quot;TOLUCAMEX&quot;, &quot;TONICHI&quot;, &quot;TORREONCOAH&quot;, &quot;TORREON_INTL&quot;, &quot;TOTOTLAN_TOTOTLAN&quot;, &quot;TRES_HERMANOS&quot;, &quot;TULANCINGOHGO&quot;, &quot;TUMBALA&quot;, &quot;TUXPANVER&quot;, &quot;VALLADOLIDYUC&quot;, &quot;VALLE_DE_GUADALUPE&quot;, &quot;VALLE_DE_PALMAS&quot;, &quot;VALLE_NACIONAL_VALLE&quot;, &quot;VICTORIA_VICTORIA&quot;, &quot;VILLAFLORES_CHIAPAS&quot;, &quot;VILLAGRAN&quot;, &quot;VILLAHERMOSATAB&quot;, &quot;VILLA_DE_ALDAMA&quot;, &quot;VILLA_JUAREZ&quot;, &quot;XCUPIL&quot;, &quot;XICOHTENCATL&quot;, &quot;XOCNACEH_TICUL&quot;, &quot;YURECUARO&quot;, &quot;ZACATECASZAC_LA_BUFAZAC&quot;, &quot;ZAMORA&quot;], &quot;lat&quot;: [20.65, 20.45, 22.5, 16.833, 18.2, 19.5, 19.67, 20.983, 19.43, 21.8833, 21.95, 21.05, 22.95, 20.26, 28.33, 17.25, 16.73, 30.717, 30.7, 18.3, 19.72, 15.78, 19.8, 28.93, 20.57, 17.2, 17.21, 20.08, 29.76, 28.8, 25.37, 28.82, 27.71, 26.95, 27.02, 19.83, 17.43, 16.98, 20.0, 16.95, 19.21, 24.95, 22.87, 26.33, 23.26, 14.8, 18.83, 19.85, 24.53, 21.033, 18.18, 18.02, 25.28, 21.85, 19.78, 16.31, 25.95, 29.2, 18.5333, 22.71, 24.93, 19.36, 20.3, 29.52, 19.98, 19.5, 23.13, 18.505, 16.51, 16.58, 18.52, 28.633, 17.55, 27.4, 26.733, 17.45, 24.95, 28.2, 28.52, 19.717, 27.13, 27.367, 27.393, 23.733, 18.133, 19.277, 23.2, 22.1, 19.5, 16.25, 19.2, 19.06, 18.43, 17.38, 15.78, 27.75, 21.06, 26.98, 18.79, 24.78, 18.883, 24.765, 20.27, 20.95, 20.517, 17.6, 24.05, 24.0, 20.85, 32.4, 26.13, 24.93, 28.0, 24.1, 16.65, 24.95, 16.17, 26.33, 19.85, 28.97, 29.23, 19.2, 24.77, 24.46, 22.58, 23.95, 24.76, 22.5, 18.76, 22.6, 23.78, 20.53, 23.18, 20.33, 27.95, 31.85, 18.61, 21.65, 24.47, 19.7, 19.5667, 23.6, 24.91, 16.77, 30.12, 25.8, 25.37, 29.096, 16.75, 23.03, 27.23, 26.82, 20.6756, 20.72, 20.67, 26.1, 25.93, 25.46, 21.0, 27.72, 19.15, 20.18, 19.158, 24.25, 26.933, 19.92, 20.18, 21.15, 20.38, 16.75, 26.9, 18.33, 24.5, 18.42, 18.35, 19.817, 20.68, 18.717, 18.03, 20.7, 19.62, 16.77, 16.467, 19.0, 25.9, 19.55, 23.4, 16.43, 21.705, 18.31, 20.18, 21.57, 21.12, 20.68, 28.53, 16.7, 30.55, 16.75, 20.91, 16.77, 16.42, 25.41, 27.55, 21.12, 16.32, 20.73, 28.38, 22.68, 19.85, 19.54, 28.97, 28.75, 19.85, 20.15, 24.1667, 24.167, 20.37, 16.33, 26.18, 23.58, 19.95, 16.1, 17.9, 16.75, 21.67, 25.533, 24.86, 16.62, 19.95, 26.017, 25.7, 17.77, 29.2, 19.05, 20.52, 16.88, 21.317, 29.0, 23.1881, 28.27, 20.97, 29.63, 32.55, 19.4, 27.05, 20.23, 25.48, 22.75, 19.48, 26.883, 25.2, 25.87, 25.733, 19.7, 28.63, 29.25, 25.23, 30.367, 17.05, 16.7, 29.57, 18.85, 21.18, 16.5, 22.18, 20.133, 24.0, 24.93, 25.45, 21.83, 29.33, 17.53, 18.2, 28.627, 30.367, 22.254, 21.22, 27.55, 22.13, 19.97, 19.95, 32.45, 27.08, 21.3, 29.08, 19.0333, 15.683, 20.83, 31.3, 28.96, 18.31, 20.617, 30.05, 27.52, 25.53, 25.53, 28.28, 20.7, 21.43, 32.13, 21.933, 25.18, 28.63, 27.87, 29.05, 27.45, 25.367, 25.4272, 25.45, 31.35, 18.02, 24.8, 20.2, 23.48, 27.3, 21.81, 23.45, 31.55, 29.98, 18.03, 23.71, 21.53, 28.78, 21.47, 23.15, 24.85, 27.26, 23.21, 19.82, 23.05, 26.48, 25.55, 22.2075, 17.29, 21.05, 29.28, 23.91, 21.98, 28.58, 17.88, 17.13, 27.13, 16.75, 23.633, 23.767, 20.6, 25.52, 18.25, 16.72, 16.33, 22.2, 22.0, 21.82, 14.917, 18.91, 18.5, 28.73, 20.2, 18.25, 28.95, 19.38, 20.82, 25.35, 21.419, 21.52, 19.93, 19.82, 19.87, 20.23, 20.98, 23.43, 19.283, 28.58, 21.5167, 25.568, 20.55, 27.2, 20.083, 17.3, 20.95, 20.683, 21.0, 32.38, 17.78, 21.2, 16.25, 24.48, 17.983, 28.83, 27.62, 19.72, 19.32, 20.35, 20.35, 22.783, 20.0], &quot;legendgroup&quot;: &quot;&quot;, &quot;lon&quot;: [-89.51, -101.53, -105.36, -99.933, -98.05, -96.62, -88.7, -89.65, -99.08, -102.3, -99.38, -104.48, -99.13, -89.33, -100.83, -92.67, -92.03, -111.833, -111.7, -88.62, -98.45, -91.97, -97.95, -109.18, -102.52, -100.43, -100.45, -97.4, -109.28, -107.25, -107.55, -111.95, -114.98, -106.16, -107.75, -89.35, -91.52, -92.88, -89.82, -93.03, -103.95, -98.8, -109.9, -112.46, -109.73, -92.25, -103.66, -90.55, -104.78, -86.883, -91.05, -96.28, -103.75, -105.11, -97.77, -92.4, -100.17, -109.25, -92.65, -98.96, -99.4, -90.71, -103.2, -114.47, -102.28, -98.88, -101.12, -88.327, -92.75, -94.82, -98.57, -106.083, -99.5, -108.53, -108.283, -95.38, -111.7, -105.43, -108.52, -103.467, -104.93, -109.933, -109.833, -99.133, -94.417, -103.577, -106.417, -103.267, -99.13, -92.133, -103.81, -97.03, -95.02, -101.06, -96.71, -107.63, -104.76, -102.07, -98.95, -103.67, -99.233, -107.475, -102.58, -103.05, -103.3, -92.83, -104.6, -104.7, -88.53, -115.183, -101.08, -111.05, -113.42, -99.13, -93.15, -106.28, -91.1, -108.62, -98.95, -109.63, -110.72, -97.2, -111.12, -110.98, -104.07, -104.73, -111.71, -98.9, -99.35, -99.43, -105.37, -103.18, -103.23, -105.36, -110.767, -116.633, -90.75, -103.37, -104.3, -87.9, -88.05, -102.72, -104.46, -93.341, -107.63, -99.18, -101.47, -111.048, -99.75, -99.03, -100.15, -107.7, -99.15, -103.38, -103.38, -106.97, -105.97, -105.96, -101.283, -113.3, -96.117, -90.13, -98.371, -99.43, -105.667, -97.6, -98.05, -98.41, -99.65, -92.78, -108.36, -99.35, -103.98, -99.52, -99.53, -90.5, -101.35, -110.95, -98.7, -98.0, -97.82, -92.9, -95.1, -103.73, -108.02, -96.917, -99.37, -95.03, -102.318, -98.81, -97.68, -104.97, -87.5, -101.85, -105.42, -92.6, -115.93, -93.55, -105.11, -91.6, -92.42, -100.15, -105.4, -101.68, -91.97, -105.15, -109.55, -103.62, -97.32, -98.88, -108.72, -107.96, -97.53, -102.75, -110.4167, -110.3, -102.03, -91.77, -112.08, -109.55, -97.43, -92.03, -101.78, -93.88, -103.35, -103.517, -99.56, -91.68, -98.08, -111.333, -99.63, -92.58, -108.1, -104.317, -104.82, -95.03, -98.817, -110.11, -105.0, -105.48, -89.63, -108.23, -115.47, -99.183, -109.02, -99.2, -107.92, -101.08, -99.22, -101.433, -99.83, -100.2, -100.3, -101.183, -108.75, -107.41, -104.12, -107.95, -96.717, -93.38, -104.42, -97.1, -98.61, -94.43, -102.33, -98.75, -98.78, -107.38, -102.17, -105.13, -108.92, -101.26, -98.25, -100.535, -109.683, -100.931, -100.5, -100.75, -102.43, -102.58, -99.31, -116.9, -101.0, -89.65, -110.93, -98.2, -96.483, -86.9, -113.55, -114.28, -103.48, -100.186, -111.02, -109.25, -100.98, -100.95, -113.88, -103.38, -98.9, -114.92, -99.983, -104.53, -114.05, -101.28, -109.23, -100.12, -101.017, -100.3444, -100.98, -106.48, -93.27, -107.15, -101.78, -110.1, -112.283, -105.21, -109.71, -116.37, -114.98, -96.66, -109.88, -105.28, -113.93, -100.87, -109.85, -98.15, -112.33, -110.03, -98.48, -109.66, -112.38, -99.85, -101.0222, -100.4, -102.4, -109.73, -110.25, -105.15, -113.93, -96.53, -92.71, -107.16, -92.633, -103.65, -98.2, -89.01, -104.3, -96.81, -95.0, -95.23, -97.85, -98.767, -98.98, -92.25, -103.88, -97.417, -107.63, -89.3, -96.4, -107.817, -96.97, -102.77, -105.75, -104.843, -104.9, -97.42, -97.35, -98.82, -88.17, -98.65, -110.22, -99.683, -109.57, -103.4333, -103.411, -102.8, -109.2, -98.367, -92.32, -97.4, -88.2, -102.61, -116.65, -96.31, -100.21, -93.27, -99.48, -92.933, -105.18, -100.72, -89.85, -98.23, -89.5, -102.28, -102.567, -102.28], &quot;marker&quot;: {&quot;color&quot;: [0.0235, 0.0718, 0.0073, 0.0155, 0.0716, 0.04, 0.1305, 0.0105, 0.1035, -0.0227, 0.1202, -0.036, 0.0513, -0.0005, 0.071, 0.0295, 0.094, 0.0553, 0.1272, 0.1096, 0.0292, 0.0738, 0.0762, 0.025, 0.0412, 0.0341, -0.0207, 0.0866, 0.0118, 0.0643, -0.0061, 0.0808, -0.0097, 0.129, 0.01, 0.0535, 0.0529, 0.0773, 0.0133, 0.0869, 0.0572, 0.1337, -0.0134, 0.0237, -0.1601, 0.0336, 0.0144, 0.0369, 0.0089, -0.0528, 0.0151, 0.1131, 0.0132, 0.0246, 0.0482, 0.1204, 0.0314, 0.0142, -0.2145, 0.0824, 0.1453, 0.0129, 0.0189, 0.0995, 0.0447, 0.0304, 0.018, 0.0412, 0.0342, 0.0652, 0.0558, 0.0478, 0.0406, -0.0829, 0.0545, 0.0911, 0.0445, 0.0459, 0.0891, 0.0793, 0.0543, 0.013, -0.0148, 0.037, 0.0346, 0.0253, 0.0358, 0.0713, 0.0891, 0.0359, 0.0537, 0.1407, 0.0949, 0.0395, -0.221, -0.0312, -0.0299, 0.0298, 0.0739, 0.0163, 0.0351, 0.0535, 0.0042, 0.0241, 0.0234, 0.0591, 0.0072, 0.0223, 0.0215, 0.0264, 0.0961, 0.0173, -0.023, 0.1534, 0.0492, -0.0592, 0.0315, 0.0281, 0.0593, 0.0471, 0.0745, 0.0977, -0.0126, 0.0152, 0.0175, 0.0388, 0.0145, 0.0844, 0.0537, 0.081, -0.0592, 0.095, 0.0026, 0.0232, 0.0496, 0.0081, -0.0158, 0.0059, 0.064, 0.022, 0.0059, 0.0692, -0.0107, 0.0292, -0.0202, 0.1344, 0.0496, 0.0469, -0.0116, 0.1008, 0.1187, 0.008, -0.8786, 0.0202, -0.0413, -0.0384, -0.1154, -0.0536, 0.0179, 0.0643, 0.0449, 0.042, 0.0205, 0.1117, 0.0325, 0.0959, 0.0707, 0.0684, 0.055, 0.0553, -0.0245, 0.1784, -0.101, 0.0406, 0.0555, -0.0209, 0.0534, 0.0105, 0.0504, 0.0512, 0.0563, 0.0762, 0.0332, 0.0562, -0.0393, 0.031, 0.0368, 0.0782, 0.025, 0.0549, -0.0649, -0.0078, 0.0519, -0.0057, 0.0319, 0.0112, -0.0046, 0.0368, -0.0036, 0.0749, 0.1016, 0.1022, 0.1064, 0.0358, 0.1115, -0.0095, 0.2395, -0.0146, 0.043, 0.0354, 0.0878, 0.0757, 0.0622, 0.0287, 0.031, 0.0444, 0.0547, 0.0935, -0.0449, -0.0437, 0.0392, 0.0162, 0.0298, 0.0145, 0.0286, 0.0503, 0.1314, 0.1007, -0.0113, 0.0157, 0.1362, 0.0547, -0.0417, 0.0286, -0.0325, 0.1366, 0.0267, 0.0735, 0.0161, -0.0159, 0.0446, -0.0066, -0.0056, 0.0254, 0.0374, 0.0607, -0.0855, 0.0084, 0.0466, 0.0545, 0.1303, 0.0476, 0.0607, 0.0268, -0.0696, -0.0386, 0.0041, 0.0347, 0.023, 0.0529, -0.0136, 0.0677, 0.0561, 0.0116, 0.0145, 0.0433, 0.12, -0.0841, 0.1021, -0.0157, 0.0007, 0.0157, 0.0203, 0.0722, 0.0041, 0.0141, -0.0826, 0.1195, 0.0707, 0.0276, -0.0227, 0.0019, 0.0656, 0.0252, 0.1101, 0.0455, 0.06, -0.1931, 0.074, 0.0798, -0.0516, -0.0057, -0.0254, -0.0593, 0.076, 0.0437, 0.0252, 0.0081, 0.078, 0.0206, 0.044, 0.0388, -0.0246, 0.1759, -0.0238, 0.0713, 0.0659, -0.1479, 0.0694, -0.0117, 0.0947, -0.0047, 0.1464, 0.0756, 0.0426, -0.0383, 0.004, -0.0271, 0.0458, 0.1113, 0.0416, -0.0036, 0.0915, -0.0064, 0.0435, 0.1033, 0.0864, 0.013, 0.0323, -0.0165, 0.0764, 0.1446, 0.063, 0.0688, -0.0266, 0.0867, -0.0376, 0.0553, 0.0191, 0.0648, 0.1259, 0.1057, 0.0251, 0.0013, 0.0255, 0.0253, 0.1255, -0.0101, 0.0216, 0.0403, 0.012, -0.0624, 0.0934, 0.0461, 0.0315, 0.0831, -0.0317, 0.0961, 0.0498, -0.0285, 0.0493, 0.1717, 0.0013, 0.1057, 0.0244, 0.1066, 0.0273, 0.0955, 0.0965, 0.0643, 0.0235, 0.0274, 0.0222, -0.0752, 0.0572, 0.0135, -0.0341, 0.0304, 0.0243, -0.0476, -0.008, -0.0976, 0.03, -0.0181, 0.0986, 0.0193, 0.1247, 0.02, -0.0421, -0.029, 0.0388, 0.0364, 0.0469, 0.0058, 0.0192, 0.0135], &quot;coloraxis&quot;: &quot;coloraxis&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;&quot;, &quot;showlegend&quot;: false, &quot;subplot&quot;: &quot;mapbox&quot;, &quot;type&quot;: &quot;scattermapbox&quot;}],                        {&quot;coloraxis&quot;: {&quot;cmid&quot;: 0, &quot;colorbar&quot;: {&quot;title&quot;: {&quot;text&quot;: &quot;ESTIMATED YEAR INCREASE (C)&quot;}}, &quot;colorscale&quot;: [[0.0, &quot;rgb(26,26,26)&quot;], [0.1, &quot;rgb(77,77,77)&quot;], [0.2, &quot;rgb(135,135,135)&quot;], [0.3, &quot;rgb(186,186,186)&quot;], [0.4, &quot;rgb(224,224,224)&quot;], [0.5, &quot;rgb(255,255,255)&quot;], [0.6, &quot;rgb(253,219,199)&quot;], [0.7, &quot;rgb(244,165,130)&quot;], [0.8, &quot;rgb(214,96,77)&quot;], [0.9, &quot;rgb(178,24,43)&quot;], [1.0, &quot;rgb(103,0,31)&quot;]]}, &quot;legend&quot;: {&quot;tracegroupgap&quot;: 0}, &quot;mapbox&quot;: {&quot;center&quot;: {&quot;lat&quot;: 22.53694545454546, &quot;lon&quot;: -101.62484242424243}, &quot;domain&quot;: {&quot;x&quot;: [0.0, 1.0], &quot;y&quot;: [0.0, 1.0]}, &quot;style&quot;: &quot;carto-positron&quot;, &quot;zoom&quot;: 2}, &quot;margin&quot;: {&quot;t&quot;: 60}, &quot;template&quot;: {&quot;data&quot;: {&quot;bar&quot;: [{&quot;error_x&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}, &quot;error_y&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}, &quot;marker&quot;: {&quot;line&quot;: {&quot;color&quot;: &quot;#E5ECF6&quot;, &quot;width&quot;: 0.5}}, &quot;type&quot;: &quot;bar&quot;}], &quot;barpolar&quot;: [{&quot;marker&quot;: {&quot;line&quot;: {&quot;color&quot;: &quot;#E5ECF6&quot;, &quot;width&quot;: 0.5}}, &quot;type&quot;: &quot;barpolar&quot;}], &quot;carpet&quot;: [{&quot;aaxis&quot;: {&quot;endlinecolor&quot;: &quot;#2a3f5f&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;minorgridcolor&quot;: &quot;white&quot;, &quot;startlinecolor&quot;: &quot;#2a3f5f&quot;}, &quot;baxis&quot;: {&quot;endlinecolor&quot;: &quot;#2a3f5f&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;minorgridcolor&quot;: &quot;white&quot;, &quot;startlinecolor&quot;: &quot;#2a3f5f&quot;}, &quot;type&quot;: &quot;carpet&quot;}], &quot;choropleth&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;type&quot;: &quot;choropleth&quot;}], &quot;contour&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;contour&quot;}], &quot;contourcarpet&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;type&quot;: &quot;contourcarpet&quot;}], &quot;heatmap&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;heatmap&quot;}], &quot;heatmapgl&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;heatmapgl&quot;}], &quot;histogram&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;histogram&quot;}], &quot;histogram2d&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;histogram2d&quot;}], &quot;histogram2dcontour&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;histogram2dcontour&quot;}], &quot;mesh3d&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;type&quot;: &quot;mesh3d&quot;}], &quot;parcoords&quot;: [{&quot;line&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;parcoords&quot;}], &quot;pie&quot;: [{&quot;automargin&quot;: true, &quot;type&quot;: &quot;pie&quot;}], &quot;scatter&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatter&quot;}], &quot;scatter3d&quot;: [{&quot;line&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatter3d&quot;}], &quot;scattercarpet&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattercarpet&quot;}], &quot;scattergeo&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattergeo&quot;}], &quot;scattergl&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattergl&quot;}], &quot;scattermapbox&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattermapbox&quot;}], &quot;scatterpolar&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatterpolar&quot;}], &quot;scatterpolargl&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatterpolargl&quot;}], &quot;scatterternary&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatterternary&quot;}], &quot;surface&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;surface&quot;}], &quot;table&quot;: [{&quot;cells&quot;: {&quot;fill&quot;: {&quot;color&quot;: &quot;#EBF0F8&quot;}, &quot;line&quot;: {&quot;color&quot;: &quot;white&quot;}}, &quot;header&quot;: {&quot;fill&quot;: {&quot;color&quot;: &quot;#C8D4E3&quot;}, &quot;line&quot;: {&quot;color&quot;: &quot;white&quot;}}, &quot;type&quot;: &quot;table&quot;}]}, &quot;layout&quot;: {&quot;annotationdefaults&quot;: {&quot;arrowcolor&quot;: &quot;#2a3f5f&quot;, &quot;arrowhead&quot;: 0, &quot;arrowwidth&quot;: 1}, &quot;autotypenumbers&quot;: &quot;strict&quot;, &quot;coloraxis&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;colorscale&quot;: {&quot;diverging&quot;: [[0, &quot;#8e0152&quot;], [0.1, &quot;#c51b7d&quot;], [0.2, &quot;#de77ae&quot;], [0.3, &quot;#f1b6da&quot;], [0.4, &quot;#fde0ef&quot;], [0.5, &quot;#f7f7f7&quot;], [0.6, &quot;#e6f5d0&quot;], [0.7, &quot;#b8e186&quot;], [0.8, &quot;#7fbc41&quot;], [0.9, &quot;#4d9221&quot;], [1, &quot;#276419&quot;]], &quot;sequential&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;sequentialminus&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]]}, &quot;colorway&quot;: [&quot;#636efa&quot;, &quot;#EF553B&quot;, &quot;#00cc96&quot;, &quot;#ab63fa&quot;, &quot;#FFA15A&quot;, &quot;#19d3f3&quot;, &quot;#FF6692&quot;, &quot;#B6E880&quot;, &quot;#FF97FF&quot;, &quot;#FECB52&quot;], &quot;font&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}, &quot;geo&quot;: {&quot;bgcolor&quot;: &quot;white&quot;, &quot;lakecolor&quot;: &quot;white&quot;, &quot;landcolor&quot;: &quot;#E5ECF6&quot;, &quot;showlakes&quot;: true, &quot;showland&quot;: true, &quot;subunitcolor&quot;: &quot;white&quot;}, &quot;hoverlabel&quot;: {&quot;align&quot;: &quot;left&quot;}, &quot;hovermode&quot;: &quot;closest&quot;, &quot;mapbox&quot;: {&quot;style&quot;: &quot;light&quot;}, &quot;paper_bgcolor&quot;: &quot;white&quot;, &quot;plot_bgcolor&quot;: &quot;#E5ECF6&quot;, &quot;polar&quot;: {&quot;angularaxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}, &quot;bgcolor&quot;: &quot;#E5ECF6&quot;, &quot;radialaxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}}, &quot;scene&quot;: {&quot;xaxis&quot;: {&quot;backgroundcolor&quot;: &quot;#E5ECF6&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;gridwidth&quot;: 2, &quot;linecolor&quot;: &quot;white&quot;, &quot;showbackground&quot;: true, &quot;ticks&quot;: &quot;&quot;, &quot;zerolinecolor&quot;: &quot;white&quot;}, &quot;yaxis&quot;: {&quot;backgroundcolor&quot;: &quot;#E5ECF6&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;gridwidth&quot;: 2, &quot;linecolor&quot;: &quot;white&quot;, &quot;showbackground&quot;: true, &quot;ticks&quot;: &quot;&quot;, &quot;zerolinecolor&quot;: &quot;white&quot;}, &quot;zaxis&quot;: {&quot;backgroundcolor&quot;: &quot;#E5ECF6&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;gridwidth&quot;: 2, &quot;linecolor&quot;: &quot;white&quot;, &quot;showbackground&quot;: true, &quot;ticks&quot;: &quot;&quot;, &quot;zerolinecolor&quot;: &quot;white&quot;}}, &quot;shapedefaults&quot;: {&quot;line&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}}, &quot;ternary&quot;: {&quot;aaxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}, &quot;baxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}, &quot;bgcolor&quot;: &quot;#E5ECF6&quot;, &quot;caxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}}, &quot;title&quot;: {&quot;x&quot;: 0.05}, &quot;xaxis&quot;: {&quot;automargin&quot;: true, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;, &quot;title&quot;: {&quot;standoff&quot;: 15}, &quot;zerolinecolor&quot;: &quot;white&quot;, &quot;zerolinewidth&quot;: 2}, &quot;yaxis&quot;: {&quot;automargin&quot;: true, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;, &quot;title&quot;: {&quot;standoff&quot;: 15}, &quot;zerolinecolor&quot;: &quot;white&quot;, &quot;zerolinewidth&quot;: 2}}}, &quot;title&quot;: {&quot;text&quot;: &quot;Estimates of yearly increase in temperature in Mexico years 1975 - 2020&quot;}},                        {&quot;responsive&quot;: true}                    )                };                            &lt;/script&gt;        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

&lt;p&gt;So, let’s examine this idea starting with our new query function:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;#function to query accross a latitude range
&lt;/span&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;lat_query&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat_start&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    &lt;span class=&quot;s&quot;&gt;&quot;&quot;&quot;
    Function to return a Pandas dataframe of temperature readings for a specified
    latitude range by querying an sqlite database
    
    Parameters
    ----------
    lat_start - int: the start of the latitude range to query for
    lat_end - int: the end of the latitude range to query for
    
    Returns
    -------
    df - pandas dataframe constructed by function
    &quot;&quot;&quot;&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;conn&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sqlite3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;connect&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;temps.db&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#open connection to temps database
&lt;/span&gt;    
    &lt;span class=&quot;c1&quot;&gt;#write command 
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;cmd&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; \
    &lt;span class=&quot;s&quot;&gt;&quot;&quot;&quot;
    SELECT C.name, S.name, S.latitude, S.longitude, T.year, T.month, T.temp
    FROM temperatures T
    LEFT JOIN stations S ON T.id = S.id
    LEFT JOIN countries C ON SUBSTRING(S.id, 1, 2) = C.&quot;FIPS_10-4&quot;
    WHERE S.latitude &amp;gt; (?) AND S.latitude &amp;lt; (?) 
    &quot;&quot;&quot;&lt;/span&gt;
    &lt;span class=&quot;c1&quot;&gt;#&quot;&quot;&quot;
&lt;/span&gt;    &lt;span class=&quot;c1&quot;&gt;#SELECT S.name, S.latitude, S.longitude, T.year, T.month, T.temp
&lt;/span&gt;    &lt;span class=&quot;c1&quot;&gt;#FROM temperatures T
&lt;/span&gt;    &lt;span class=&quot;c1&quot;&gt;#LEFT JOIN stations S ON T.id = S.id
&lt;/span&gt;    &lt;span class=&quot;c1&quot;&gt;#WHERE S.latitude &amp;gt; (?) AND S.latitude &amp;lt; (?)
&lt;/span&gt;    &lt;span class=&quot;c1&quot;&gt;#&quot;&quot;&quot;
&lt;/span&gt;    
    &lt;span class=&quot;c1&quot;&gt;#read data for our given command and connection to a pandas dataframe
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_sql&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;cmd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;conn&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;params&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat_start&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;conn&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;close&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#close connection
&lt;/span&gt;    
    &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#return our new dataframe
&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_query&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;30&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;30&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div&gt;
&lt;style scoped=&quot;&quot;&gt;
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }

    .dataframe tbody tr th {
        vertical-align: top;
    }

    .dataframe thead th {
        text-align: right;
    }
&lt;/style&gt;
&lt;table border=&quot;1&quot; class=&quot;dataframe&quot;&gt;
  &lt;thead&gt;
    &lt;tr style=&quot;text-align: right;&quot;&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;Name&lt;/th&gt;
      &lt;th&gt;NAME&lt;/th&gt;
      &lt;th&gt;LATITUDE&lt;/th&gt;
      &lt;th&gt;LONGITUDE&lt;/th&gt;
      &lt;th&gt;Year&lt;/th&gt;
      &lt;th&gt;Month&lt;/th&gt;
      &lt;th&gt;Temp&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;th&gt;0&lt;/th&gt;
      &lt;td&gt;United Arab Emirates&lt;/td&gt;
      &lt;td&gt;SHARJAH_INTER_AIRP&lt;/td&gt;
      &lt;td&gt;25.333&lt;/td&gt;
      &lt;td&gt;55.517&lt;/td&gt;
      &lt;td&gt;1933&lt;/td&gt;
      &lt;td&gt;5&lt;/td&gt;
      &lt;td&gt;28.9&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1&lt;/th&gt;
      &lt;td&gt;United Arab Emirates&lt;/td&gt;
      &lt;td&gt;SHARJAH_INTER_AIRP&lt;/td&gt;
      &lt;td&gt;25.333&lt;/td&gt;
      &lt;td&gt;55.517&lt;/td&gt;
      &lt;td&gt;1933&lt;/td&gt;
      &lt;td&gt;6&lt;/td&gt;
      &lt;td&gt;28.8&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2&lt;/th&gt;
      &lt;td&gt;United Arab Emirates&lt;/td&gt;
      &lt;td&gt;SHARJAH_INTER_AIRP&lt;/td&gt;
      &lt;td&gt;25.333&lt;/td&gt;
      &lt;td&gt;55.517&lt;/td&gt;
      &lt;td&gt;1933&lt;/td&gt;
      &lt;td&gt;7&lt;/td&gt;
      &lt;td&gt;32.0&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3&lt;/th&gt;
      &lt;td&gt;United Arab Emirates&lt;/td&gt;
      &lt;td&gt;SHARJAH_INTER_AIRP&lt;/td&gt;
      &lt;td&gt;25.333&lt;/td&gt;
      &lt;td&gt;55.517&lt;/td&gt;
      &lt;td&gt;1933&lt;/td&gt;
      &lt;td&gt;8&lt;/td&gt;
      &lt;td&gt;34.8&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;4&lt;/th&gt;
      &lt;td&gt;United Arab Emirates&lt;/td&gt;
      &lt;td&gt;SHARJAH_INTER_AIRP&lt;/td&gt;
      &lt;td&gt;25.333&lt;/td&gt;
      &lt;td&gt;55.517&lt;/td&gt;
      &lt;td&gt;1933&lt;/td&gt;
      &lt;td&gt;9&lt;/td&gt;
      &lt;td&gt;30.2&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;...&lt;/th&gt;
      &lt;td&gt;...&lt;/td&gt;
      &lt;td&gt;...&lt;/td&gt;
      &lt;td&gt;...&lt;/td&gt;
      &lt;td&gt;...&lt;/td&gt;
      &lt;td&gt;...&lt;/td&gt;
      &lt;td&gt;...&lt;/td&gt;
      &lt;td&gt;...&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1983795&lt;/th&gt;
      &lt;td&gt;Zimbabwe&lt;/td&gt;
      &lt;td&gt;GWELO&lt;/td&gt;
      &lt;td&gt;-19.430&lt;/td&gt;
      &lt;td&gt;29.750&lt;/td&gt;
      &lt;td&gt;1970&lt;/td&gt;
      &lt;td&gt;8&lt;/td&gt;
      &lt;td&gt;15.4&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1983796&lt;/th&gt;
      &lt;td&gt;Zimbabwe&lt;/td&gt;
      &lt;td&gt;GWELO&lt;/td&gt;
      &lt;td&gt;-19.430&lt;/td&gt;
      &lt;td&gt;29.750&lt;/td&gt;
      &lt;td&gt;1970&lt;/td&gt;
      &lt;td&gt;9&lt;/td&gt;
      &lt;td&gt;20.4&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1983797&lt;/th&gt;
      &lt;td&gt;Zimbabwe&lt;/td&gt;
      &lt;td&gt;GWELO&lt;/td&gt;
      &lt;td&gt;-19.430&lt;/td&gt;
      &lt;td&gt;29.750&lt;/td&gt;
      &lt;td&gt;1970&lt;/td&gt;
      &lt;td&gt;10&lt;/td&gt;
      &lt;td&gt;20.3&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1983798&lt;/th&gt;
      &lt;td&gt;Zimbabwe&lt;/td&gt;
      &lt;td&gt;GWELO&lt;/td&gt;
      &lt;td&gt;-19.430&lt;/td&gt;
      &lt;td&gt;29.750&lt;/td&gt;
      &lt;td&gt;1970&lt;/td&gt;
      &lt;td&gt;11&lt;/td&gt;
      &lt;td&gt;21.3&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1983799&lt;/th&gt;
      &lt;td&gt;Zimbabwe&lt;/td&gt;
      &lt;td&gt;GWELO&lt;/td&gt;
      &lt;td&gt;-19.430&lt;/td&gt;
      &lt;td&gt;29.750&lt;/td&gt;
      &lt;td&gt;1970&lt;/td&gt;
      &lt;td&gt;12&lt;/td&gt;
      &lt;td&gt;21.5&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;1983800 rows × 7 columns&lt;/p&gt;
&lt;/div&gt;

&lt;h1 id=&quot;graphing--function-15---latitude-ranges-test&quot;&gt;Graphing  Function 1.5 - Latitude Ranges Test&lt;/h1&gt;

&lt;p&gt;As a first test of the prior query, and the idea in general, let’s do a little remix of our prior geographic plot function, this time for a spatial, north/south range, rather than for a temporal one:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;temperature_coef_lat_plot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat_start&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;delta_threshold&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;**&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;kwargs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    
    &lt;span class=&quot;s&quot;&gt;&quot;&quot;&quot;
    Function to create an interactive, geographic plot of estimated average increase
    in temperature over a provided latitude range
    
    Parameters
    ----------
    lat_start - int: the start of the latitude range to query for
    lat_end - int: the end of the latitude range to query for
    delta_threshold - int: threshold for inclusion in the plot (avoids say, every weather
    station in America from being plotted)
    kwargs: variable arguments fed to the plotly graphing function
    
    Returns
    -------
    fig - the plotly fig generated by the function
    &quot;&quot;&quot;&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#use prior defined query function to build our df
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_query&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat_start&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#group our df by station
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;groupby&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;NAME&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;LATITUDE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;LONGITUDE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]).&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;apply&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coef&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;reset_index&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#rename new column 
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rename&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;columns&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;ESTIMATED YEAR INCREASE (C)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;})&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#round temp values
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;round&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#drop all entries where the average yearly temp delta is below our threshold
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;drop&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;ESTIMATED YEAR INCREASE (C)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;][&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;ESTIMATED YEAR INCREASE (C)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;delta_threshold&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;index&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#pass dataframe and parameters to plot the scatter map_box 
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;px&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;scatter_mapbox&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#our df w/ first order coeficients for yearly temp change
&lt;/span&gt;                            &lt;span class=&quot;n&quot;&gt;lat&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;LATITUDE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#column name for latitude informataion
&lt;/span&gt;                            &lt;span class=&quot;n&quot;&gt;lon&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;LONGITUDE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#column name for longitude information
&lt;/span&gt;                            &lt;span class=&quot;n&quot;&gt;hover_name&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;NAME&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#hover will display station name
&lt;/span&gt;                            &lt;span class=&quot;o&quot;&gt;**&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;kwargs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#all other keyword args for scatter_mapbox()
&lt;/span&gt;                            &lt;span class=&quot;n&quot;&gt;color&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;ESTIMATED YEAR INCREASE (C)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                           &lt;span class=&quot;n&quot;&gt;color_continuous_midpoint&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#tweak layout and add title
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;str_start&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat_start&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;str_end&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat_end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;str_thres&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;delta_threshold&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;update_layout&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;title&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Estimates of Yearly Increase in Temperature from &quot;&lt;/span&gt;
                      &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;str_start&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot; to &quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;str_end&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot; Degrees Latitude&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#return figure to calling scope
&lt;/span&gt;   
    
    &lt;span class=&quot;c1&quot;&gt;#Note: I wrote one of the &quot;coefs&quot; above as &quot;coef&quot; and thus kept getting a &quot;local 
&lt;/span&gt;    &lt;span class=&quot;c1&quot;&gt;#variable referenced before assignment&quot; for .apply(coef)...most baffling single letter
&lt;/span&gt;    &lt;span class=&quot;c1&quot;&gt;#typo turned bug I've had in a long time...it thought coefs the function was the local
&lt;/span&gt;    &lt;span class=&quot;c1&quot;&gt;#scope variable typo many lines down...I only rewrote half of it before I realized...
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now let’s test it:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;temperature_coef_lat_plot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;60&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;zoom&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                                   &lt;span class=&quot;n&quot;&gt;mapbox_style&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;carto-positron&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                                   &lt;span class=&quot;n&quot;&gt;color_continuous_scale&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;color_map&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;show&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;pio&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;write_html&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;hw1_geo3&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;
&lt;html&gt;
&lt;head&gt;&lt;meta charset=&quot;utf-8&quot; /&gt;&lt;/head&gt;
&lt;body&gt;
    &lt;div&gt;                        &lt;script type=&quot;text/javascript&quot;&gt;window.PlotlyConfig = {MathJaxConfig: 'local'};&lt;/script&gt;
        &lt;script type=&quot;text/javascript&quot;&gt;/**
* plotly.js v1.58.4
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
!function(t){if(&quot;object&quot;==typeof exports&amp;&amp;&quot;undefined&quot;!=typeof module)module.exports=t();else if(&quot;function&quot;==typeof define&amp;&amp;define.amd)define([],t);else{(&quot;undefined&quot;!=typeof window?window:&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:this).Plotly=t()}}((function(){return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var l=&quot;function&quot;==typeof require&amp;&amp;require;if(!s&amp;&amp;l)return l(o,!0);if(a)return a(o,!0);var c=new Error(&quot;Cannot find module '&quot;+o+&quot;'&quot;);throw c.code=&quot;MODULE_NOT_FOUND&quot;,c}var u=r[o]={exports:{}};e[o][0].call(u.exports,(function(t){return i(e[o][1][t]||t)}),u,u.exports,t,e,r,n)}return r[o].exports}for(var a=&quot;function&quot;==typeof require&amp;&amp;require,o=0;o&lt;n.length;o++)i(n[o]);return i}({1:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../src/lib&quot;),i={&quot;X,X div&quot;:&quot;direction:ltr;font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding:0;&quot;,&quot;X input,X button&quot;:&quot;font-family:'Open Sans', verdana, arial, sans-serif;&quot;,&quot;X input:focus,X button:focus&quot;:&quot;outline:none;&quot;,&quot;X a&quot;:&quot;text-decoration:none;&quot;,&quot;X a:hover&quot;:&quot;text-decoration:none;&quot;,&quot;X .crisp&quot;:&quot;shape-rendering:crispEdges;&quot;,&quot;X .user-select-none&quot;:&quot;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;&quot;,&quot;X svg&quot;:&quot;overflow:hidden;&quot;,&quot;X svg a&quot;:&quot;fill:#447adb;&quot;,&quot;X svg a:hover&quot;:&quot;fill:#3c6dc5;&quot;,&quot;X .main-svg&quot;:&quot;position:absolute;top:0;left:0;pointer-events:none;&quot;,&quot;X .main-svg .draglayer&quot;:&quot;pointer-events:all;&quot;,&quot;X .cursor-default&quot;:&quot;cursor:default;&quot;,&quot;X .cursor-pointer&quot;:&quot;cursor:pointer;&quot;,&quot;X .cursor-crosshair&quot;:&quot;cursor:crosshair;&quot;,&quot;X .cursor-move&quot;:&quot;cursor:move;&quot;,&quot;X .cursor-col-resize&quot;:&quot;cursor:col-resize;&quot;,&quot;X .cursor-row-resize&quot;:&quot;cursor:row-resize;&quot;,&quot;X .cursor-ns-resize&quot;:&quot;cursor:ns-resize;&quot;,&quot;X .cursor-ew-resize&quot;:&quot;cursor:ew-resize;&quot;,&quot;X .cursor-sw-resize&quot;:&quot;cursor:sw-resize;&quot;,&quot;X .cursor-s-resize&quot;:&quot;cursor:s-resize;&quot;,&quot;X .cursor-se-resize&quot;:&quot;cursor:se-resize;&quot;,&quot;X .cursor-w-resize&quot;:&quot;cursor:w-resize;&quot;,&quot;X .cursor-e-resize&quot;:&quot;cursor:e-resize;&quot;,&quot;X .cursor-nw-resize&quot;:&quot;cursor:nw-resize;&quot;,&quot;X .cursor-n-resize&quot;:&quot;cursor:n-resize;&quot;,&quot;X .cursor-ne-resize&quot;:&quot;cursor:ne-resize;&quot;,&quot;X .cursor-grab&quot;:&quot;cursor:-webkit-grab;cursor:grab;&quot;,&quot;X .modebar&quot;:&quot;position:absolute;top:2px;right:2px;&quot;,&quot;X .ease-bg&quot;:&quot;-webkit-transition:background-color 0.3s ease 0s;-moz-transition:background-color 0.3s ease 0s;-ms-transition:background-color 0.3s ease 0s;-o-transition:background-color 0.3s ease 0s;transition:background-color 0.3s ease 0s;&quot;,&quot;X .modebar--hover&gt;:not(.watermark)&quot;:&quot;opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;&quot;,&quot;X:hover .modebar--hover .modebar-group&quot;:&quot;opacity:1;&quot;,&quot;X .modebar-group&quot;:&quot;float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;&quot;,&quot;X .modebar-btn&quot;:&quot;position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;&quot;,&quot;X .modebar-btn svg&quot;:&quot;position:relative;top:2px;&quot;,&quot;X .modebar.vertical&quot;:&quot;display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;&quot;,&quot;X .modebar.vertical svg&quot;:&quot;top:-1px;&quot;,&quot;X .modebar.vertical .modebar-group&quot;:&quot;display:block;float:none;padding-left:0px;padding-bottom:8px;&quot;,&quot;X .modebar.vertical .modebar-group .modebar-btn&quot;:&quot;display:block;text-align:center;&quot;,&quot;X [data-title]:before,X [data-title]:after&quot;:&quot;position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;&quot;,&quot;X [data-title]:hover:before,X [data-title]:hover:after&quot;:&quot;display:block;opacity:1;&quot;,&quot;X [data-title]:before&quot;:&quot;content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;&quot;,&quot;X [data-title]:after&quot;:&quot;content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;&quot;,&quot;X .vertical [data-title]:before,X .vertical [data-title]:after&quot;:&quot;top:0%;right:200%;&quot;,&quot;X .vertical [data-title]:before&quot;:&quot;border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;&quot;,&quot;X .select-outline&quot;:&quot;fill:none;stroke-width:1;shape-rendering:crispEdges;&quot;,&quot;X .select-outline-1&quot;:&quot;stroke:white;&quot;,&quot;X .select-outline-2&quot;:&quot;stroke:black;stroke-dasharray:2px 2px;&quot;,Y:&quot;font-family:'Open Sans', verdana, arial, sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;&quot;,&quot;Y p&quot;:&quot;margin:0;&quot;,&quot;Y .notifier-note&quot;:&quot;min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;&quot;,&quot;Y .notifier-close&quot;:&quot;color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;&quot;,&quot;Y .notifier-close:hover&quot;:&quot;color:#444;text-decoration:none;cursor:pointer;&quot;};for(var a in i){var o=a.replace(/^,/,&quot; ,&quot;).replace(/X/g,&quot;.js-plotly-plot .plotly&quot;).replace(/Y/g,&quot;.plotly-notifier&quot;);n.addStyleRule(o,i[a])}},{&quot;../src/lib&quot;:778}],2:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/aggregate&quot;)},{&quot;../src/transforms/aggregate&quot;:1365}],3:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/bar&quot;)},{&quot;../src/traces/bar&quot;:929}],4:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/barpolar&quot;)},{&quot;../src/traces/barpolar&quot;:942}],5:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/box&quot;)},{&quot;../src/traces/box&quot;:952}],6:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/components/calendars&quot;)},{&quot;../src/components/calendars&quot;:641}],7:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/candlestick&quot;)},{&quot;../src/traces/candlestick&quot;:961}],8:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/carpet&quot;)},{&quot;../src/traces/carpet&quot;:980}],9:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/choropleth&quot;)},{&quot;../src/traces/choropleth&quot;:994}],10:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/choroplethmapbox&quot;)},{&quot;../src/traces/choroplethmapbox&quot;:1001}],11:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/cone&quot;)},{&quot;../src/traces/cone&quot;:1007}],12:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/contour&quot;)},{&quot;../src/traces/contour&quot;:1022}],13:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/contourcarpet&quot;)},{&quot;../src/traces/contourcarpet&quot;:1033}],14:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/core&quot;)},{&quot;../src/core&quot;:755}],15:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/densitymapbox&quot;)},{&quot;../src/traces/densitymapbox&quot;:1041}],16:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/filter&quot;)},{&quot;../src/transforms/filter&quot;:1366}],17:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/funnel&quot;)},{&quot;../src/traces/funnel&quot;:1051}],18:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/funnelarea&quot;)},{&quot;../src/traces/funnelarea&quot;:1060}],19:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/groupby&quot;)},{&quot;../src/transforms/groupby&quot;:1367}],20:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/heatmap&quot;)},{&quot;../src/traces/heatmap&quot;:1073}],21:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/heatmapgl&quot;)},{&quot;../src/traces/heatmapgl&quot;:1083}],22:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram&quot;)},{&quot;../src/traces/histogram&quot;:1095}],23:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram2d&quot;)},{&quot;../src/traces/histogram2d&quot;:1101}],24:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram2dcontour&quot;)},{&quot;../src/traces/histogram2dcontour&quot;:1105}],25:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/image&quot;)},{&quot;../src/traces/image&quot;:1113}],26:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./core&quot;);n.register([t(&quot;./bar&quot;),t(&quot;./box&quot;),t(&quot;./heatmap&quot;),t(&quot;./histogram&quot;),t(&quot;./histogram2d&quot;),t(&quot;./histogram2dcontour&quot;),t(&quot;./contour&quot;),t(&quot;./scatterternary&quot;),t(&quot;./violin&quot;),t(&quot;./funnel&quot;),t(&quot;./waterfall&quot;),t(&quot;./image&quot;),t(&quot;./pie&quot;),t(&quot;./sunburst&quot;),t(&quot;./treemap&quot;),t(&quot;./funnelarea&quot;),t(&quot;./scatter3d&quot;),t(&quot;./surface&quot;),t(&quot;./isosurface&quot;),t(&quot;./volume&quot;),t(&quot;./mesh3d&quot;),t(&quot;./cone&quot;),t(&quot;./streamtube&quot;),t(&quot;./scattergeo&quot;),t(&quot;./choropleth&quot;),t(&quot;./scattergl&quot;),t(&quot;./splom&quot;),t(&quot;./pointcloud&quot;),t(&quot;./heatmapgl&quot;),t(&quot;./parcoords&quot;),t(&quot;./parcats&quot;),t(&quot;./scattermapbox&quot;),t(&quot;./choroplethmapbox&quot;),t(&quot;./densitymapbox&quot;),t(&quot;./sankey&quot;),t(&quot;./indicator&quot;),t(&quot;./table&quot;),t(&quot;./carpet&quot;),t(&quot;./scattercarpet&quot;),t(&quot;./contourcarpet&quot;),t(&quot;./ohlc&quot;),t(&quot;./candlestick&quot;),t(&quot;./scatterpolar&quot;),t(&quot;./scatterpolargl&quot;),t(&quot;./barpolar&quot;)]),n.register([t(&quot;./aggregate&quot;),t(&quot;./filter&quot;),t(&quot;./groupby&quot;),t(&quot;./sort&quot;)]),n.register([t(&quot;./calendars&quot;)]),e.exports=n},{&quot;./aggregate&quot;:2,&quot;./bar&quot;:3,&quot;./barpolar&quot;:4,&quot;./box&quot;:5,&quot;./calendars&quot;:6,&quot;./candlestick&quot;:7,&quot;./carpet&quot;:8,&quot;./choropleth&quot;:9,&quot;./choroplethmapbox&quot;:10,&quot;./cone&quot;:11,&quot;./contour&quot;:12,&quot;./contourcarpet&quot;:13,&quot;./core&quot;:14,&quot;./densitymapbox&quot;:15,&quot;./filter&quot;:16,&quot;./funnel&quot;:17,&quot;./funnelarea&quot;:18,&quot;./groupby&quot;:19,&quot;./heatmap&quot;:20,&quot;./heatmapgl&quot;:21,&quot;./histogram&quot;:22,&quot;./histogram2d&quot;:23,&quot;./histogram2dcontour&quot;:24,&quot;./image&quot;:25,&quot;./indicator&quot;:27,&quot;./isosurface&quot;:28,&quot;./mesh3d&quot;:29,&quot;./ohlc&quot;:30,&quot;./parcats&quot;:31,&quot;./parcoords&quot;:32,&quot;./pie&quot;:33,&quot;./pointcloud&quot;:34,&quot;./sankey&quot;:35,&quot;./scatter3d&quot;:36,&quot;./scattercarpet&quot;:37,&quot;./scattergeo&quot;:38,&quot;./scattergl&quot;:39,&quot;./scattermapbox&quot;:40,&quot;./scatterpolar&quot;:41,&quot;./scatterpolargl&quot;:42,&quot;./scatterternary&quot;:43,&quot;./sort&quot;:44,&quot;./splom&quot;:45,&quot;./streamtube&quot;:46,&quot;./sunburst&quot;:47,&quot;./surface&quot;:48,&quot;./table&quot;:49,&quot;./treemap&quot;:50,&quot;./violin&quot;:51,&quot;./volume&quot;:52,&quot;./waterfall&quot;:53}],27:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/indicator&quot;)},{&quot;../src/traces/indicator&quot;:1121}],28:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/isosurface&quot;)},{&quot;../src/traces/isosurface&quot;:1127}],29:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/mesh3d&quot;)},{&quot;../src/traces/mesh3d&quot;:1132}],30:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/ohlc&quot;)},{&quot;../src/traces/ohlc&quot;:1137}],31:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/parcats&quot;)},{&quot;../src/traces/parcats&quot;:1146}],32:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/parcoords&quot;)},{&quot;../src/traces/parcoords&quot;:1156}],33:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/pie&quot;)},{&quot;../src/traces/pie&quot;:1167}],34:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/pointcloud&quot;)},{&quot;../src/traces/pointcloud&quot;:1176}],35:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/sankey&quot;)},{&quot;../src/traces/sankey&quot;:1182}],36:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatter3d&quot;)},{&quot;../src/traces/scatter3d&quot;:1220}],37:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattercarpet&quot;)},{&quot;../src/traces/scattercarpet&quot;:1227}],38:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattergeo&quot;)},{&quot;../src/traces/scattergeo&quot;:1235}],39:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattergl&quot;)},{&quot;../src/traces/scattergl&quot;:1248}],40:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattermapbox&quot;)},{&quot;../src/traces/scattermapbox&quot;:1258}],41:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterpolar&quot;)},{&quot;../src/traces/scatterpolar&quot;:1266}],42:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterpolargl&quot;)},{&quot;../src/traces/scatterpolargl&quot;:1273}],43:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterternary&quot;)},{&quot;../src/traces/scatterternary&quot;:1281}],44:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/sort&quot;)},{&quot;../src/transforms/sort&quot;:1369}],45:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/splom&quot;)},{&quot;../src/traces/splom&quot;:1290}],46:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/streamtube&quot;)},{&quot;../src/traces/streamtube&quot;:1298}],47:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/sunburst&quot;)},{&quot;../src/traces/sunburst&quot;:1306}],48:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/surface&quot;)},{&quot;../src/traces/surface&quot;:1315}],49:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/table&quot;)},{&quot;../src/traces/table&quot;:1323}],50:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/treemap&quot;)},{&quot;../src/traces/treemap&quot;:1332}],51:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/violin&quot;)},{&quot;../src/traces/violin&quot;:1344}],52:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/volume&quot;)},{&quot;../src/traces/volume&quot;:1352}],53:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/waterfall&quot;)},{&quot;../src/traces/waterfall&quot;:1360}],54:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).eye||[0,0,1],r=t.center||[0,0,0],s=t.up||[0,1,0],l=t.distanceLimits||[0,1/0],c=t.mode||&quot;turntable&quot;,u=n(),f=i(),h=a();return u.setDistanceLimits(l[0],l[1]),u.lookAt(0,e,r,s),f.setDistanceLimits(l[0],l[1]),f.lookAt(0,e,r,s),h.setDistanceLimits(l[0],l[1]),h.lookAt(0,e,r,s),new o({turntable:u,orbit:f,matrix:h},c)};var n=t(&quot;turntable-camera-controller&quot;),i=t(&quot;orbit-camera-controller&quot;),a=t(&quot;matrix-camera-controller&quot;);function o(t,e){this._controllerNames=Object.keys(t),this._controllerList=this._controllerNames.map((function(e){return t[e]})),this._mode=e,this._active=t[e],this._active||(this._mode=&quot;turntable&quot;,this._active=t.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var s=o.prototype;[[&quot;flush&quot;,1],[&quot;idle&quot;,1],[&quot;lookAt&quot;,4],[&quot;rotate&quot;,4],[&quot;pan&quot;,4],[&quot;translate&quot;,4],[&quot;setMatrix&quot;,2],[&quot;setDistanceLimits&quot;,2],[&quot;setDistance&quot;,2]].forEach((function(t){for(var e=t[0],r=[],n=0;n&lt;t[1];++n)r.push(&quot;a&quot;+n);var i=&quot;var cc=this._controllerList;for(var i=0;i&lt;cc.length;++i){cc[i].&quot;+t[0]+&quot;(&quot;+r.join()+&quot;)}&quot;;s[e]=Function.apply(null,r.concat(i))})),s.recalcMatrix=function(t){this._active.recalcMatrix(t)},s.getDistance=function(t){return this._active.getDistance(t)},s.getDistanceLimits=function(t){return this._active.getDistanceLimits(t)},s.lastT=function(){return this._active.lastT()},s.setMode=function(t){if(t!==this._mode){var e=this._controllerNames.indexOf(t);if(!(e&lt;0)){var r=this._active,n=this._controllerList[e],i=Math.max(r.lastT(),n.lastT());r.recalcMatrix(i),n.setMatrix(i,r.computedMatrix),this._active=n,this._mode=t,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}}},s.getMode=function(){return this._mode}},{&quot;matrix-camera-controller&quot;:480,&quot;orbit-camera-controller&quot;:501,&quot;turntable-camera-controller&quot;:581}],55:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-array&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-shape&quot;),t(&quot;elementary-circuits-directed-graph&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,null)}(this,(function(t,e,r,n,i){&quot;use strict&quot;;function a(t){return t.target.depth}function o(t,e){return t.sourceLinks.length?t.depth:e-1}function s(t){return function(){return t}}i=i&amp;&amp;i.hasOwnProperty(&quot;default&quot;)?i.default:i;var l=&quot;function&quot;==typeof Symbol&amp;&amp;&quot;symbol&quot;==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;&quot;function&quot;==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?&quot;symbol&quot;:typeof t};function c(t,e){return f(t.source,e.source)||t.index-e.index}function u(t,e){return f(t.target,e.target)||t.index-e.index}function f(t,e){return t.partOfCycle===e.partOfCycle?t.y0-e.y0:&quot;top&quot;===t.circularLinkType||&quot;bottom&quot;===e.circularLinkType?-1:1}function h(t){return t.value}function p(t){return(t.y0+t.y1)/2}function d(t){return p(t.source)}function g(t){return p(t.target)}function m(t){return t.index}function v(t){return t.nodes}function y(t){return t.links}function x(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function b(t,e){return e(t)}function _(t,e,r){var n=0;if(null===r){for(var a=[],o=0;o&lt;t.links.length;o++){var s=t.links[o],l=s.source.index,c=s.target.index;a[l]||(a[l]=[]),a[c]||(a[c]=[]),-1===a[l].indexOf(c)&amp;&amp;a[l].push(c)}var u=i(a);u.sort((function(t,e){return t.length-e.length}));var f={};for(o=0;o&lt;u.length;o++){var h=u[o].slice(-2);f[h[0]]||(f[h[0]]={}),f[h[0]][h[1]]=!0}t.links.forEach((function(t){var e=t.target.index,r=t.source.index;e===r||f[r]&amp;&amp;f[r][e]?(t.circular=!0,t.circularLinkID=n,n+=1):t.circular=!1}))}else t.links.forEach((function(t){t.source[r]&lt;t.target[r]?t.circular=!1:(t.circular=!0,t.circularLinkID=n,n+=1)}))}function w(t,e){var r=0,n=0;t.links.forEach((function(i){i.circular&amp;&amp;(i.source.circularLinkType||i.target.circularLinkType?i.circularLinkType=i.source.circularLinkType?i.source.circularLinkType:i.target.circularLinkType:i.circularLinkType=r&lt;n?&quot;top&quot;:&quot;bottom&quot;,&quot;top&quot;==i.circularLinkType?r+=1:n+=1,t.nodes.forEach((function(t){b(t,e)!=b(i.source,e)&amp;&amp;b(t,e)!=b(i.target,e)||(t.circularLinkType=i.circularLinkType)})))})),t.links.forEach((function(t){t.circular&amp;&amp;(t.source.circularLinkType==t.target.circularLinkType&amp;&amp;(t.circularLinkType=t.source.circularLinkType),H(t,e)&amp;&amp;(t.circularLinkType=t.source.circularLinkType))}))}function T(t){var e=Math.abs(t.y1-t.y0),r=Math.abs(t.target.x0-t.source.x1);return Math.atan(r/e)}function k(t,e){var r=0;t.sourceLinks.forEach((function(t){r=t.circular&amp;&amp;!H(t,e)?r+1:r}));var n=0;return t.targetLinks.forEach((function(t){n=t.circular&amp;&amp;!H(t,e)?n+1:n})),r+n}function M(t){var e=t.source.sourceLinks,r=0;e.forEach((function(t){r=t.circular?r+1:r}));var n=t.target.targetLinks,i=0;return n.forEach((function(t){i=t.circular?i+1:i})),!(r&gt;1||i&gt;1)}function A(t,e,r){return t.sort(E),t.forEach((function(n,i){var a,o,s=0;if(H(n,r)&amp;&amp;M(n))n.circularPathData.verticalBuffer=s+n.width/2;else{for(var l=0;l&lt;i;l++)if(a=t[i],o=t[l],!(a.source.column&lt;o.target.column||a.target.column&gt;o.source.column)){var c=t[l].circularPathData.verticalBuffer+t[l].width/2+e;s=c&gt;s?c:s}n.circularPathData.verticalBuffer=s+n.width/2}})),t}function S(t,r,i,a){var o=e.min(t.links,(function(t){return t.source.y0}));t.links.forEach((function(t){t.circular&amp;&amp;(t.circularPathData={})})),A(t.links.filter((function(t){return&quot;top&quot;==t.circularLinkType})),r,a),A(t.links.filter((function(t){return&quot;bottom&quot;==t.circularLinkType})),r,a),t.links.forEach((function(e){if(e.circular){if(e.circularPathData.arcRadius=e.width+10,e.circularPathData.leftNodeBuffer=5,e.circularPathData.rightNodeBuffer=5,e.circularPathData.sourceWidth=e.source.x1-e.source.x0,e.circularPathData.sourceX=e.source.x0+e.circularPathData.sourceWidth,e.circularPathData.targetX=e.target.x0,e.circularPathData.sourceY=e.y0,e.circularPathData.targetY=e.y1,H(e,a)&amp;&amp;M(e))e.circularPathData.leftSmallArcRadius=10+e.width/2,e.circularPathData.leftLargeArcRadius=10+e.width/2,e.circularPathData.rightSmallArcRadius=10+e.width/2,e.circularPathData.rightLargeArcRadius=10+e.width/2,&quot;bottom&quot;==e.circularLinkType?(e.circularPathData.verticalFullExtent=e.source.y1+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=e.source.y0-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius);else{var s=e.source.column,l=e.circularLinkType,c=t.links.filter((function(t){return t.source.column==s&amp;&amp;t.circularLinkType==l}));&quot;bottom&quot;==e.circularLinkType?c.sort(L):c.sort(C);var u=0;c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&amp;&amp;(e.circularPathData.leftSmallArcRadius=10+e.width/2+u,e.circularPathData.leftLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),s=e.target.column,c=t.links.filter((function(t){return t.target.column==s&amp;&amp;t.circularLinkType==l})),&quot;bottom&quot;==e.circularLinkType?c.sort(P):c.sort(I),u=0,c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&amp;&amp;(e.circularPathData.rightSmallArcRadius=10+e.width/2+u,e.circularPathData.rightLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),&quot;bottom&quot;==e.circularLinkType?(e.circularPathData.verticalFullExtent=Math.max(i,e.source.y1,e.target.y1)+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=o-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius)}e.circularPathData.leftInnerExtent=e.circularPathData.sourceX+e.circularPathData.leftNodeBuffer,e.circularPathData.rightInnerExtent=e.circularPathData.targetX-e.circularPathData.rightNodeBuffer,e.circularPathData.leftFullExtent=e.circularPathData.sourceX+e.circularPathData.leftLargeArcRadius+e.circularPathData.leftNodeBuffer,e.circularPathData.rightFullExtent=e.circularPathData.targetX-e.circularPathData.rightLargeArcRadius-e.circularPathData.rightNodeBuffer}if(e.circular)e.path=function(t){var e=&quot;&quot;;e=&quot;top&quot;==t.circularLinkType?&quot;M&quot;+t.circularPathData.sourceX+&quot; &quot;+t.circularPathData.sourceY+&quot; L&quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.sourceY+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftSmallArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.leftFullExtent+&quot; &quot;+(t.circularPathData.sourceY-t.circularPathData.leftSmallArcRadius)+&quot; L&quot;+t.circularPathData.leftFullExtent+&quot; &quot;+t.circularPathData.verticalLeftInnerExtent+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftLargeArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; L&quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightLargeArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.rightFullExtent+&quot; &quot;+t.circularPathData.verticalRightInnerExtent+&quot; L&quot;+t.circularPathData.rightFullExtent+&quot; &quot;+(t.circularPathData.targetY-t.circularPathData.rightSmallArcRadius)+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightSmallArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.targetY+&quot; L&quot;+t.circularPathData.targetX+&quot; &quot;+t.circularPathData.targetY:&quot;M&quot;+t.circularPathData.sourceX+&quot; &quot;+t.circularPathData.sourceY+&quot; L&quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.sourceY+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftSmallArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.leftFullExtent+&quot; &quot;+(t.circularPathData.sourceY+t.circularPathData.leftSmallArcRadius)+&quot; L&quot;+t.circularPathData.leftFullExtent+&quot; &quot;+t.circularPathData.verticalLeftInnerExtent+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftLargeArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; L&quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightLargeArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.rightFullExtent+&quot; &quot;+t.circularPathData.verticalRightInnerExtent+&quot; L&quot;+t.circularPathData.rightFullExtent+&quot; &quot;+(t.circularPathData.targetY+t.circularPathData.rightSmallArcRadius)+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightSmallArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.targetY+&quot; L&quot;+t.circularPathData.targetX+&quot; &quot;+t.circularPathData.targetY;return e}(e);else{var f=n.linkHorizontal().source((function(t){return[t.source.x0+(t.source.x1-t.source.x0),t.y0]})).target((function(t){return[t.target.x0,t.y1]}));e.path=f(e)}}))}function E(t,e){return z(t)==z(e)?&quot;bottom&quot;==t.circularLinkType?L(t,e):C(t,e):z(e)-z(t)}function C(t,e){return t.y0-e.y0}function L(t,e){return e.y0-t.y0}function I(t,e){return t.y1-e.y1}function P(t,e){return e.y1-t.y1}function z(t){return t.target.column-t.source.column}function O(t){return t.target.x0-t.source.x1}function D(t,e){var r=T(t),n=O(e)/Math.tan(r);return&quot;up&quot;==q(t)?t.y1+n:t.y1-n}function R(t,e){var r=T(t),n=O(e)/Math.tan(r);return&quot;up&quot;==q(t)?t.y1-n:t.y1+n}function F(t,e,r,n){t.links.forEach((function(i){if(!i.circular&amp;&amp;i.target.column-i.source.column&gt;1){var a=i.source.column+1,o=i.target.column-1,s=1,l=o-a+1;for(s=1;a&lt;=o;a++,s++)t.nodes.forEach((function(o){if(o.column==a){var c,u=s/(l+1),f=Math.pow(1-u,3),h=3*u*Math.pow(1-u,2),p=3*Math.pow(u,2)*(1-u),d=Math.pow(u,3),g=f*i.y0+h*i.y0+p*i.y1+d*i.y1,m=g-i.width/2,v=g+i.width/2;m&gt;o.y0&amp;&amp;m&lt;o.y1?(c=o.y1-m+10,c=&quot;bottom&quot;==o.circularLinkType?c:-c,o=N(o,c,e,r),t.nodes.forEach((function(t){b(t,n)!=b(o,n)&amp;&amp;t.column==o.column&amp;&amp;B(o,t)&amp;&amp;N(t,c,e,r)}))):(v&gt;o.y0&amp;&amp;v&lt;o.y1||m&lt;o.y0&amp;&amp;v&gt;o.y1)&amp;&amp;(c=v-o.y0+10,o=N(o,c,e,r),t.nodes.forEach((function(t){b(t,n)!=b(o,n)&amp;&amp;t.column==o.column&amp;&amp;t.y0&lt;o.y1&amp;&amp;t.y1&gt;o.y1&amp;&amp;N(t,c,e,r)})))}}))}}))}function B(t,e){return t.y0&gt;e.y0&amp;&amp;t.y0&lt;e.y1||(t.y1&gt;e.y0&amp;&amp;t.y1&lt;e.y1||t.y0&lt;e.y0&amp;&amp;t.y1&gt;e.y1)}function N(t,e,r,n){return t.y0+e&gt;=r&amp;&amp;t.y1+e&lt;=n&amp;&amp;(t.y0=t.y0+e,t.y1=t.y1+e,t.targetLinks.forEach((function(t){t.y1=t.y1+e})),t.sourceLinks.forEach((function(t){t.y0=t.y0+e}))),t}function j(t,e,r,n){t.nodes.forEach((function(i){n&amp;&amp;i.y+(i.y1-i.y0)&gt;e&amp;&amp;(i.y=i.y-(i.y+(i.y1-i.y0)-e));var a=t.links.filter((function(t){return b(t.source,r)==b(i,r)})),o=a.length;o&gt;1&amp;&amp;a.sort((function(t,e){if(!t.circular&amp;&amp;!e.circular){if(t.target.column==e.target.column)return t.y1-e.y1;if(!V(t,e))return t.y1-e.y1;if(t.target.column&gt;e.target.column){var r=R(e,t);return t.y1-r}if(e.target.column&gt;t.target.column)return R(t,e)-e.y1}return t.circular&amp;&amp;!e.circular?&quot;top&quot;==t.circularLinkType?-1:1:e.circular&amp;&amp;!t.circular?&quot;top&quot;==e.circularLinkType?1:-1:t.circular&amp;&amp;e.circular?t.circularLinkType===e.circularLinkType&amp;&amp;&quot;top&quot;==t.circularLinkType?t.target.column===e.target.column?t.target.y1-e.target.y1:e.target.column-t.target.column:t.circularLinkType===e.circularLinkType&amp;&amp;&quot;bottom&quot;==t.circularLinkType?t.target.column===e.target.column?e.target.y1-t.target.y1:t.target.column-e.target.column:&quot;top&quot;==t.circularLinkType?-1:1:void 0}));var s=i.y0;a.forEach((function(t){t.y0=s+t.width/2,s+=t.width})),a.forEach((function(t,e){if(&quot;bottom&quot;==t.circularLinkType){for(var r=e+1,n=0;r&lt;o;r++)n+=a[r].width;t.y0=i.y1-n-t.width/2}}))}))}function U(t,e,r){t.nodes.forEach((function(e){var n=t.links.filter((function(t){return b(t.target,r)==b(e,r)})),i=n.length;i&gt;1&amp;&amp;n.sort((function(t,e){if(!t.circular&amp;&amp;!e.circular){if(t.source.column==e.source.column)return t.y0-e.y0;if(!V(t,e))return t.y0-e.y0;if(e.source.column&lt;t.source.column){var r=D(e,t);return t.y0-r}if(t.source.column&lt;e.source.column)return D(t,e)-e.y0}return t.circular&amp;&amp;!e.circular?&quot;top&quot;==t.circularLinkType?-1:1:e.circular&amp;&amp;!t.circular?&quot;top&quot;==e.circularLinkType?1:-1:t.circular&amp;&amp;e.circular?t.circularLinkType===e.circularLinkType&amp;&amp;&quot;top&quot;==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:t.source.column-e.source.column:t.circularLinkType===e.circularLinkType&amp;&amp;&quot;bottom&quot;==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:e.source.column-t.source.column:&quot;top&quot;==t.circularLinkType?-1:1:void 0}));var a=e.y0;n.forEach((function(t){t.y1=a+t.width/2,a+=t.width})),n.forEach((function(t,r){if(&quot;bottom&quot;==t.circularLinkType){for(var a=r+1,o=0;a&lt;i;a++)o+=n[a].width;t.y1=e.y1-o-t.width/2}}))}))}function V(t,e){return q(t)==q(e)}function q(t){return t.y0-t.y1&gt;0?&quot;up&quot;:&quot;down&quot;}function H(t,e){return b(t.source,e)==b(t.target,e)}function G(t,r,n){var i=t.nodes,a=t.links,o=!1,s=!1;if(a.forEach((function(t){&quot;top&quot;==t.circularLinkType?o=!0:&quot;bottom&quot;==t.circularLinkType&amp;&amp;(s=!0)})),0==o||0==s){var l=e.min(i,(function(t){return t.y0})),c=(n-r)/(e.max(i,(function(t){return t.y1}))-l);i.forEach((function(t){var e=(t.y1-t.y0)*c;t.y0=(t.y0-l)*c,t.y1=t.y0+e})),a.forEach((function(t){t.y0=(t.y0-l)*c,t.y1=(t.y1-l)*c,t.width=t.width*c}))}}t.sankeyCircular=function(){var t,n,i=0,a=0,b=1,T=1,M=24,A=m,E=o,C=v,L=y,I=32,P=2,z=null;function O(){var t={nodes:C.apply(null,arguments),links:L.apply(null,arguments)};D(t),_(t,A,z),R(t),B(t),w(t,A),N(t,I,A),V(t);for(var e=4,r=0;r&lt;e;r++)j(t,T,A),U(t,T,A),F(t,a,T,A),j(t,T,A),U(t,T,A);return G(t,a,T),S(t,P,T,A),t}function D(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,A);return t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;&quot;object&quot;!==(&quot;undefined&quot;==typeof n?&quot;undefined&quot;:l(n))&amp;&amp;(n=t.source=x(e,n)),&quot;object&quot;!==(&quot;undefined&quot;==typeof i?&quot;undefined&quot;:l(i))&amp;&amp;(i=t.target=x(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)})),t}function R(t){t.nodes.forEach((function(t){t.partOfCycle=!1,t.value=Math.max(e.sum(t.sourceLinks,h),e.sum(t.targetLinks,h)),t.sourceLinks.forEach((function(e){e.circular&amp;&amp;(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)})),t.targetLinks.forEach((function(e){e.circular&amp;&amp;(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)}))}))}function B(t){var e,r,n;for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.depth=n,t.sourceLinks.forEach((function(t){r.indexOf(t.target)&lt;0&amp;&amp;!t.circular&amp;&amp;r.push(t.target)}))}));for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.height=n,t.targetLinks.forEach((function(t){r.indexOf(t.source)&lt;0&amp;&amp;!t.circular&amp;&amp;r.push(t.source)}))}));t.nodes.forEach((function(t){t.column=Math.floor(E.call(null,t,n))}))}function N(o,s,l){var c=r.nest().key((function(t){return t.column})).sortKeys(e.ascending).entries(o.nodes).map((function(t){return t.values}));!function(r){if(n){var s=1/0;c.forEach((function(t){var e=T*n/(t.length+1);s=e&lt;s?e:s})),t=s}var l=e.min(c,(function(r){return(T-a-(r.length-1)*t)/e.sum(r,h)}));l*=.3,o.links.forEach((function(t){t.width=t.value*l}));var u=function(t){var r=0,n=0,i=0,a=0,o=e.max(t.nodes,(function(t){return t.column}));return t.links.forEach((function(t){t.circular&amp;&amp;(&quot;top&quot;==t.circularLinkType?r+=t.width:n+=t.width,0==t.target.column&amp;&amp;(a+=t.width),t.source.column==o&amp;&amp;(i+=t.width))})),{top:r=r&gt;0?r+25+10:r,bottom:n=n&gt;0?n+25+10:n,left:a=a&gt;0?a+25+10:a,right:i=i&gt;0?i+25+10:i}}(o),f=function(t,r){var n=e.max(t.nodes,(function(t){return t.column})),o=b-i,s=T-a,l=o/(o+r.right+r.left),c=s/(s+r.top+r.bottom);return i=i*l+r.left,b=0==r.right?b:b*l,a=a*c+r.top,T*=c,t.nodes.forEach((function(t){t.x0=i+t.column*((b-i-M)/n),t.x1=t.x0+M})),c}(o,u);l*=f,o.links.forEach((function(t){t.width=t.value*l})),c.forEach((function(t){var e=t.length;t.forEach((function(t,n){t.depth==c.length-1&amp;&amp;1==e||0==t.depth&amp;&amp;1==e?(t.y0=T/2-t.value*l,t.y1=t.y0+t.value*l):t.partOfCycle?0==k(t,r)?(t.y0=T/2+n,t.y1=t.y0+t.value*l):&quot;top&quot;==t.circularLinkType?(t.y0=a+n,t.y1=t.y0+t.value*l):(t.y0=T-t.value*l-n,t.y1=t.y0+t.value*l):0==u.top||0==u.bottom?(t.y0=(T-a)/e*n,t.y1=t.y0+t.value*l):(t.y0=(T-a)/2-e/2+n,t.y1=t.y0+t.value*l)}))}))}(l),y();for(var u=1,m=s;m&gt;0;--m)v(u*=.99,l),y();function v(t,r){var n=c.length;c.forEach((function(i){var a=i.length,o=i[0].depth;i.forEach((function(i){var s;if(i.sourceLinks.length||i.targetLinks.length)if(i.partOfCycle&amp;&amp;k(i,r)&gt;0);else if(0==o&amp;&amp;1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else if(o==n-1&amp;&amp;1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else{var l=e.mean(i.sourceLinks,g),c=e.mean(i.targetLinks,d),u=((l&amp;&amp;c?(l+c)/2:l||c)-p(i))*t;i.y0+=u,i.y1+=u}}))}))}function y(){c.forEach((function(e){var r,n,i,o=a,s=e.length;for(e.sort(f),i=0;i&lt;s;++i)(n=o-(r=e[i]).y0)&gt;0&amp;&amp;(r.y0+=n,r.y1+=n),o=r.y1+t;if((n=o-t-T)&gt;0)for(o=r.y0-=n,r.y1-=n,i=s-2;i&gt;=0;--i)(n=(r=e[i]).y1+t-o)&gt;0&amp;&amp;(r.y0-=n,r.y1-=n),o=r.y0}))}}function V(t){t.nodes.forEach((function(t){t.sourceLinks.sort(u),t.targetLinks.sort(c)})),t.nodes.forEach((function(t){var e=t.y0,r=e,n=t.y1,i=n;t.sourceLinks.forEach((function(t){t.circular?(t.y0=n-t.width/2,n-=t.width):(t.y0=e+t.width/2,e+=t.width)})),t.targetLinks.forEach((function(t){t.circular?(t.y1=i-t.width/2,i-=t.width):(t.y1=r+t.width/2,r+=t.width)}))}))}return O.nodeId=function(t){return arguments.length?(A=&quot;function&quot;==typeof t?t:s(t),O):A},O.nodeAlign=function(t){return arguments.length?(E=&quot;function&quot;==typeof t?t:s(t),O):E},O.nodeWidth=function(t){return arguments.length?(M=+t,O):M},O.nodePadding=function(e){return arguments.length?(t=+e,O):t},O.nodes=function(t){return arguments.length?(C=&quot;function&quot;==typeof t?t:s(t),O):C},O.links=function(t){return arguments.length?(L=&quot;function&quot;==typeof t?t:s(t),O):L},O.size=function(t){return arguments.length?(i=a=0,b=+t[0],T=+t[1],O):[b-i,T-a]},O.extent=function(t){return arguments.length?(i=+t[0][0],b=+t[1][0],a=+t[0][1],T=+t[1][1],O):[[i,a],[b,T]]},O.iterations=function(t){return arguments.length?(I=+t,O):I},O.circularLinkGap=function(t){return arguments.length?(P=+t,O):P},O.nodePaddingRatio=function(t){return arguments.length?(n=+t,O):n},O.sortNodes=function(t){return arguments.length?(z=t,O):z},O.update=function(t){return w(t,A),V(t),t.links.forEach((function(t){t.circular&amp;&amp;(t.circularLinkType=t.y0+t.y1&lt;T?&quot;top&quot;:&quot;bottom&quot;,t.source.circularLinkType=t.circularLinkType,t.target.circularLinkType=t.circularLinkType)})),j(t,T,A,!1),U(t,T,A),S(t,P,T,A),t},O},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,a)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=o,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:156,&quot;d3-collection&quot;:157,&quot;d3-shape&quot;:165,&quot;elementary-circuits-directed-graph&quot;:179}],56:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-array&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-shape&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3)}(this,(function(t,e,r,n){&quot;use strict&quot;;function i(t){return t.target.depth}function a(t,e){return t.sourceLinks.length?t.depth:e-1}function o(t){return function(){return t}}function s(t,e){return c(t.source,e.source)||t.index-e.index}function l(t,e){return c(t.target,e.target)||t.index-e.index}function c(t,e){return t.y0-e.y0}function u(t){return t.value}function f(t){return(t.y0+t.y1)/2}function h(t){return f(t.source)*t.value}function p(t){return f(t.target)*t.value}function d(t){return t.index}function g(t){return t.nodes}function m(t){return t.links}function v(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function y(t){return[t.source.x1,t.y0]}function x(t){return[t.target.x0,t.y1]}t.sankey=function(){var t=0,n=0,i=1,y=1,x=24,b=8,_=d,w=a,T=g,k=m,M=32;function A(){var t={nodes:T.apply(null,arguments),links:k.apply(null,arguments)};return S(t),E(t),C(t),L(t),I(t),t}function S(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,_);t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;&quot;object&quot;!=typeof n&amp;&amp;(n=t.source=v(e,n)),&quot;object&quot;!=typeof i&amp;&amp;(i=t.target=v(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)}))}function E(t){t.nodes.forEach((function(t){t.value=Math.max(e.sum(t.sourceLinks,u),e.sum(t.targetLinks,u))}))}function C(e){var r,n,a;for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.depth=a,t.sourceLinks.forEach((function(t){n.indexOf(t.target)&lt;0&amp;&amp;n.push(t.target)}))}));for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.height=a,t.targetLinks.forEach((function(t){n.indexOf(t.source)&lt;0&amp;&amp;n.push(t.source)}))}));var o=(i-t-x)/(a-1);e.nodes.forEach((function(e){e.x1=(e.x0=t+Math.max(0,Math.min(a-1,Math.floor(w.call(null,e,a))))*o)+x}))}function L(t){var i=r.nest().key((function(t){return t.x0})).sortKeys(e.ascending).entries(t.nodes).map((function(t){return t.values}));!function(){var r=e.max(i,(function(t){return t.length})),a=2/3*(y-n)/(r-1);b&gt;a&amp;&amp;(b=a);var o=e.min(i,(function(t){return(y-n-(t.length-1)*b)/e.sum(t,u)}));i.forEach((function(t){t.forEach((function(t,e){t.y1=(t.y0=e)+t.value*o}))})),t.links.forEach((function(t){t.width=t.value*o}))}(),d();for(var a=1,o=M;o&gt;0;--o)l(a*=.99),d(),s(a),d();function s(t){i.forEach((function(r){r.forEach((function(r){if(r.targetLinks.length){var n=(e.sum(r.targetLinks,h)/e.sum(r.targetLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function l(t){i.slice().reverse().forEach((function(r){r.forEach((function(r){if(r.sourceLinks.length){var n=(e.sum(r.sourceLinks,p)/e.sum(r.sourceLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function d(){i.forEach((function(t){var e,r,i,a=n,o=t.length;for(t.sort(c),i=0;i&lt;o;++i)(r=a-(e=t[i]).y0)&gt;0&amp;&amp;(e.y0+=r,e.y1+=r),a=e.y1+b;if((r=a-b-y)&gt;0)for(a=e.y0-=r,e.y1-=r,i=o-2;i&gt;=0;--i)(r=(e=t[i]).y1+b-a)&gt;0&amp;&amp;(e.y0-=r,e.y1-=r),a=e.y0}))}}function I(t){t.nodes.forEach((function(t){t.sourceLinks.sort(l),t.targetLinks.sort(s)})),t.nodes.forEach((function(t){var e=t.y0,r=e;t.sourceLinks.forEach((function(t){t.y0=e+t.width/2,e+=t.width})),t.targetLinks.forEach((function(t){t.y1=r+t.width/2,r+=t.width}))}))}return A.update=function(t){return I(t),t},A.nodeId=function(t){return arguments.length?(_=&quot;function&quot;==typeof t?t:o(t),A):_},A.nodeAlign=function(t){return arguments.length?(w=&quot;function&quot;==typeof t?t:o(t),A):w},A.nodeWidth=function(t){return arguments.length?(x=+t,A):x},A.nodePadding=function(t){return arguments.length?(b=+t,A):b},A.nodes=function(t){return arguments.length?(T=&quot;function&quot;==typeof t?t:o(t),A):T},A.links=function(t){return arguments.length?(k=&quot;function&quot;==typeof t?t:o(t),A):k},A.size=function(e){return arguments.length?(t=n=0,i=+e[0],y=+e[1],A):[i-t,y-n]},A.extent=function(e){return arguments.length?(t=+e[0][0],i=+e[1][0],n=+e[0][1],y=+e[1][1],A):[[t,n],[i,y]]},A.iterations=function(t){return arguments.length?(M=+t,A):M},A},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,i)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=a,t.sankeyLinkHorizontal=function(){return n.linkHorizontal().source(y).target(x)},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:156,&quot;d3-collection&quot;:157,&quot;d3-shape&quot;:165}],57:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./quad&quot;)},{&quot;./quad&quot;:58}],58:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;clamp&quot;),a=t(&quot;parse-rect&quot;),o=t(&quot;array-bounds&quot;),s=t(&quot;pick-by-alias&quot;),l=t(&quot;defined&quot;),c=t(&quot;flatten-vertex-data&quot;),u=t(&quot;is-obj&quot;),f=t(&quot;dtype&quot;),h=t(&quot;math-log2&quot;);function p(t,e){for(var r=e[0],n=e[1],a=1/(e[2]-r),o=1/(e[3]-n),s=new Array(t.length),l=0,c=t.length/2;l&lt;c;l++)s[2*l]=i((t[2*l]-r)*a,0,1),s[2*l+1]=i((t[2*l+1]-n)*o,0,1);return s}e.exports=function(t,e){e||(e={}),t=c(t,&quot;float64&quot;),e=s(e,{bounds:&quot;range bounds dataBox databox&quot;,maxDepth:&quot;depth maxDepth maxdepth level maxLevel maxlevel levels&quot;,dtype:&quot;type dtype format out dst output destination&quot;});var r=l(e.maxDepth,255),i=l(e.bounds,o(t,2));i[0]===i[2]&amp;&amp;i[2]++,i[1]===i[3]&amp;&amp;i[3]++;var d,g=p(t,i),m=t.length&gt;&gt;&gt;1;e.dtype||(e.dtype=&quot;array&quot;),&quot;string&quot;==typeof e.dtype?d=new(f(e.dtype))(m):e.dtype&amp;&amp;(d=e.dtype,Array.isArray(d)&amp;&amp;(d.length=m));for(var v=0;v&lt;m;++v)d[v]=v;var y=[],x=[],b=[],_=[];!function t(e,n,i,a,o,s){if(!a.length)return null;var l=y[o]||(y[o]=[]),c=b[o]||(b[o]=[]),u=x[o]||(x[o]=[]),f=l.length;if(++o&gt;r||s&gt;1073741824){for(var h=0;h&lt;a.length;h++)l.push(a[h]),c.push(s),u.push(null,null,null,null);return f}if(l.push(a[0]),c.push(s),a.length&lt;=1)return u.push(null,null,null,null),f;for(var p=.5*i,d=e+p,m=n+p,v=[],_=[],w=[],T=[],k=1,M=a.length;k&lt;M;k++){var A=a[k],S=g[2*A],E=g[2*A+1];S&lt;d?E&lt;m?v.push(A):_.push(A):E&lt;m?w.push(A):T.push(A)}return s&lt;&lt;=2,u.push(t(e,n,p,v,o,s),t(e,m,p,_,o,s+1),t(d,n,p,w,o,s+2),t(d,m,p,T,o,s+3)),f}(0,0,1,d,0,1);for(var w=0,T=0;T&lt;y.length;T++){var k=y[T];if(d.set)d.set(k,w);else for(var M=0,A=k.length;M&lt;A;M++)d[M+w]=k[M];var S=w+y[T].length;_[T]=[w,S],w=S}return d.range=function(){var e,r=[],n=arguments.length;for(;n--;)r[n]=arguments[n];if(u(r[r.length-1])){var o=r.pop();r.length||null==o.x&amp;&amp;null==o.l&amp;&amp;null==o.left||(r=[o],e={}),e=s(o,{level:&quot;level maxLevel&quot;,d:&quot;d diam diameter r radius px pxSize pixel pixelSize maxD size minSize&quot;,lod:&quot;lod details ranges offsets&quot;})}else e={};r.length||(r=i);var c=a.apply(void 0,r),f=[Math.min(c.x,c.x+c.width),Math.min(c.y,c.y+c.height),Math.max(c.x,c.x+c.width),Math.max(c.y,c.y+c.height)],d=f[0],g=f[1],m=f[2],v=f[3],b=p([d,g,m,v],i),_=b[0],w=b[1],T=b[2],k=b[3],M=l(e.level,y.length);if(null!=e.d){var A;&quot;number&quot;==typeof e.d?A=[e.d,e.d]:e.d.length&amp;&amp;(A=e.d),M=Math.min(Math.max(Math.ceil(-h(Math.abs(A[0])/(i[2]-i[0]))),Math.ceil(-h(Math.abs(A[1])/(i[3]-i[1])))),M)}if(M=Math.min(M,y.length),e.lod)return E(_,w,T,k,M);var S=[];function C(e,r,n,i,a,o){if(null!==a&amp;&amp;null!==o&amp;&amp;!(_&gt;e+n||w&gt;r+n||T&lt;e||k&lt;r||i&gt;=M||a===o)){var s=y[i];void 0===o&amp;&amp;(o=s.length);for(var l=a;l&lt;o;l++){var c=s[l],u=t[2*c],f=t[2*c+1];u&gt;=d&amp;&amp;u&lt;=m&amp;&amp;f&gt;=g&amp;&amp;f&lt;=v&amp;&amp;S.push(c)}var h=x[i],p=h[4*a+0],b=h[4*a+1],A=h[4*a+2],E=h[4*a+3],I=L(h,a+1),P=.5*n,z=i+1;C(e,r,P,z,p,b||A||E||I),C(e,r+P,P,z,b,A||E||I),C(e+P,r,P,z,A,E||I),C(e+P,r+P,P,z,E,I)}}function L(t,e){for(var r=null,n=0;null===r;)if(r=t[4*e+n],++n&gt;t.length)return null;return r}return C(0,0,1,0,0,1),S},d;function E(t,e,r,i,a){for(var o=[],s=0;s&lt;a;s++){var l=b[s],c=_[s][0],u=C(t,e,s),f=C(r,i,s),h=n.ge(l,u),p=n.gt(l,f,h,l.length-1);o[s]=[h+c,p+c]}return o}function C(t,e,r){for(var n=1,i=.5,a=.5,o=.5,s=0;s&lt;r;s++)n&lt;&lt;=2,n+=t&lt;i?e&lt;a?0:1:e&lt;a?2:3,o*=.5,i+=t&lt;i?-o:o,a+=e&lt;a?-o:o;return n}}},{&quot;array-bounds&quot;:70,&quot;binary-search-bounds&quot;:96,clamp:120,defined:170,dtype:175,&quot;flatten-vertex-data&quot;:244,&quot;is-obj&quot;:468,&quot;math-log2&quot;:479,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511}],59:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;);function i(t){var e=0;if(t&amp;&amp;t.length&gt;0){e+=Math.abs(a(t[0]));for(var r=1;r&lt;t.length;r++)e-=Math.abs(a(t[r]))}return e}function a(t){var e,r,n,i,a,s,l=0,c=t.length;if(c&gt;2){for(s=0;s&lt;c;s++)s===c-2?(n=c-2,i=c-1,a=0):s===c-1?(n=c-1,i=0,a=1):(n=s,i=s+1,a=s+2),e=t[n],r=t[i],l+=(o(t[a][0])-o(e[0]))*Math.sin(o(r[1]));l=6378137*l*6378137/2}return l}function o(t){return t*Math.PI/180}r.default=function(t){return n.geomReduce(t,(function(t,e){return t+function(t){var e,r=0;switch(t.type){case&quot;Polygon&quot;:return i(t.coordinates);case&quot;MultiPolygon&quot;:for(e=0;e&lt;t.coordinates.length;e++)r+=i(t.coordinates[e]);return r;case&quot;Point&quot;:case&quot;MultiPoint&quot;:case&quot;LineString&quot;:case&quot;MultiLineString&quot;:return 0}return 0}(e)}),0)}},{&quot;@turf/meta&quot;:63}],60:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;);r.default=function(t){var e=[1/0,1/0,-1/0,-1/0];return n.coordEach(t,(function(t){e[0]&gt;t[0]&amp;&amp;(e[0]=t[0]),e[1]&gt;t[1]&amp;&amp;(e[1]=t[1]),e[2]&lt;t[0]&amp;&amp;(e[2]=t[0]),e[3]&lt;t[1]&amp;&amp;(e[3]=t[1])})),e}},{&quot;@turf/meta&quot;:63}],61:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;),i=t(&quot;@turf/helpers&quot;);r.default=function(t,e){void 0===e&amp;&amp;(e={});var r=0,a=0,o=0;return n.coordEach(t,(function(t){r+=t[0],a+=t[1],o++})),i.point([r/o,a/o],e.properties)}},{&quot;@turf/helpers&quot;:62,&quot;@turf/meta&quot;:63}],62:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){void 0===r&amp;&amp;(r={});var n={type:&quot;Feature&quot;};return(0===r.id||r.id)&amp;&amp;(n.id=r.id),r.bbox&amp;&amp;(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function i(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;Point&quot;,coordinates:t},e,r)}function a(t,e,r){void 0===r&amp;&amp;(r={});for(var i=0,a=t;i&lt;a.length;i++){var o=a[i];if(o.length&lt;4)throw new Error(&quot;Each LinearRing of a Polygon must have 4 or more Positions.&quot;);for(var s=0;s&lt;o[o.length-1].length;s++)if(o[o.length-1][s]!==o[0][s])throw new Error(&quot;First and last Position are not equivalent.&quot;)}return n({type:&quot;Polygon&quot;,coordinates:t},e,r)}function o(t,e,r){if(void 0===r&amp;&amp;(r={}),t.length&lt;2)throw new Error(&quot;coordinates must be an array of two or more positions&quot;);return n({type:&quot;LineString&quot;,coordinates:t},e,r)}function s(t,e){void 0===e&amp;&amp;(e={});var r={type:&quot;FeatureCollection&quot;};return e.id&amp;&amp;(r.id=e.id),e.bbox&amp;&amp;(r.bbox=e.bbox),r.features=t,r}function l(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiLineString&quot;,coordinates:t},e,r)}function c(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPoint&quot;,coordinates:t},e,r)}function u(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPolygon&quot;,coordinates:t},e,r)}function f(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t*n}function h(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t/n}function p(t){return 180*(t%(2*Math.PI))/Math.PI}function d(t){return!isNaN(t)&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)&amp;&amp;!/^\s*$/.test(t)}Object.defineProperty(r,&quot;__esModule&quot;,{value:!0}),r.earthRadius=6371008.8,r.factors={centimeters:100*r.earthRadius,centimetres:100*r.earthRadius,degrees:r.earthRadius/111325,feet:3.28084*r.earthRadius,inches:39.37*r.earthRadius,kilometers:r.earthRadius/1e3,kilometres:r.earthRadius/1e3,meters:r.earthRadius,metres:r.earthRadius,miles:r.earthRadius/1609.344,millimeters:1e3*r.earthRadius,millimetres:1e3*r.earthRadius,nauticalmiles:r.earthRadius/1852,radians:1,yards:r.earthRadius/1.0936},r.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/r.earthRadius,yards:1/1.0936},r.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},r.feature=n,r.geometry=function(t,e,r){switch(void 0===r&amp;&amp;(r={}),t){case&quot;Point&quot;:return i(e).geometry;case&quot;LineString&quot;:return o(e).geometry;case&quot;Polygon&quot;:return a(e).geometry;case&quot;MultiPoint&quot;:return c(e).geometry;case&quot;MultiLineString&quot;:return l(e).geometry;case&quot;MultiPolygon&quot;:return u(e).geometry;default:throw new Error(t+&quot; is invalid&quot;)}},r.point=i,r.points=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return i(t,e)})),r)},r.polygon=a,r.polygons=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return a(t,e)})),r)},r.lineString=o,r.lineStrings=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return o(t,e)})),r)},r.featureCollection=s,r.multiLineString=l,r.multiPoint=c,r.multiPolygon=u,r.geometryCollection=function(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;GeometryCollection&quot;,geometries:t},e,r)},r.round=function(t,e){if(void 0===e&amp;&amp;(e=0),e&amp;&amp;!(e&gt;=0))throw new Error(&quot;precision must be a positive number&quot;);var r=Math.pow(10,e||0);return Math.round(t*r)/r},r.radiansToLength=f,r.lengthToRadians=h,r.lengthToDegrees=function(t,e){return p(h(t,e))},r.bearingToAzimuth=function(t){var e=t%360;return e&lt;0&amp;&amp;(e+=360),e},r.radiansToDegrees=p,r.degreesToRadians=function(t){return t%360*Math.PI/180},r.convertLength=function(t,e,r){if(void 0===e&amp;&amp;(e=&quot;kilometers&quot;),void 0===r&amp;&amp;(r=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;length must be a positive number&quot;);return f(h(t,e),r)},r.convertArea=function(t,e,n){if(void 0===e&amp;&amp;(e=&quot;meters&quot;),void 0===n&amp;&amp;(n=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;area must be a positive number&quot;);var i=r.areaFactors[e];if(!i)throw new Error(&quot;invalid original units&quot;);var a=r.areaFactors[n];if(!a)throw new Error(&quot;invalid final units&quot;);return t/i*a},r.isNumber=d,r.isObject=function(t){return!!t&amp;&amp;t.constructor===Object},r.validateBBox=function(t){if(!t)throw new Error(&quot;bbox is required&quot;);if(!Array.isArray(t))throw new Error(&quot;bbox must be an Array&quot;);if(4!==t.length&amp;&amp;6!==t.length)throw new Error(&quot;bbox must be an Array of 4 or 6 numbers&quot;);t.forEach((function(t){if(!d(t))throw new Error(&quot;bbox must only contain numbers&quot;)}))},r.validateId=function(t){if(!t)throw new Error(&quot;id is required&quot;);if(-1===[&quot;string&quot;,&quot;number&quot;].indexOf(typeof t))throw new Error(&quot;id must be a number or a string&quot;)},r.radians2degrees=function(){throw new Error(&quot;method has been renamed to `radiansToDegrees`&quot;)},r.degrees2radians=function(){throw new Error(&quot;method has been renamed to `degreesToRadians`&quot;)},r.distanceToDegrees=function(){throw new Error(&quot;method has been renamed to `lengthToDegrees`&quot;)},r.distanceToRadians=function(){throw new Error(&quot;method has been renamed to `lengthToRadians`&quot;)},r.radiansToDistance=function(){throw new Error(&quot;method has been renamed to `radiansToLength`&quot;)},r.bearingToAngle=function(){throw new Error(&quot;method has been renamed to `bearingToAzimuth`&quot;)},r.convertDistance=function(){throw new Error(&quot;method has been renamed to `convertLength`&quot;)}},{}],63:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/helpers&quot;);function i(t,e,r){if(null!==t)for(var n,a,o,s,l,c,u,f,h=0,p=0,d=t.type,g=&quot;FeatureCollection&quot;===d,m=&quot;Feature&quot;===d,v=g?t.features.length:1,y=0;y&lt;v;y++){l=(f=!!(u=g?t.features[y].geometry:m?t.geometry:t)&amp;&amp;&quot;GeometryCollection&quot;===u.type)?u.geometries.length:1;for(var x=0;x&lt;l;x++){var b=0,_=0;if(null!==(s=f?u.geometries[x]:u)){c=s.coordinates;var w=s.type;switch(h=!r||&quot;Polygon&quot;!==w&amp;&amp;&quot;MultiPolygon&quot;!==w?0:1,w){case null:break;case&quot;Point&quot;:if(!1===e(c,p,y,b,_))return!1;p++,b++;break;case&quot;LineString&quot;:case&quot;MultiPoint&quot;:for(n=0;n&lt;c.length;n++){if(!1===e(c[n],p,y,b,_))return!1;p++,&quot;MultiPoint&quot;===w&amp;&amp;b++}&quot;LineString&quot;===w&amp;&amp;b++;break;case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:for(n=0;n&lt;c.length;n++){for(a=0;a&lt;c[n].length-h;a++){if(!1===e(c[n][a],p,y,b,_))return!1;p++}&quot;MultiLineString&quot;===w&amp;&amp;b++,&quot;Polygon&quot;===w&amp;&amp;_++}&quot;Polygon&quot;===w&amp;&amp;b++;break;case&quot;MultiPolygon&quot;:for(n=0;n&lt;c.length;n++){for(_=0,a=0;a&lt;c[n].length;a++){for(o=0;o&lt;c[n][a].length-h;o++){if(!1===e(c[n][a][o],p,y,b,_))return!1;p++}_++}b++}break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;s.geometries.length;n++)if(!1===i(s.geometries[n],e,r))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}}}}}function a(t,e){var r;switch(t.type){case&quot;FeatureCollection&quot;:for(r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r].properties,r);r++);break;case&quot;Feature&quot;:e(t.properties,0)}}function o(t,e){if(&quot;Feature&quot;===t.type)e(t,0);else if(&quot;FeatureCollection&quot;===t.type)for(var r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r],r);r++);}function s(t,e){var r,n,i,a,o,s,l,c,u,f,h=0,p=&quot;FeatureCollection&quot;===t.type,d=&quot;Feature&quot;===t.type,g=p?t.features.length:1;for(r=0;r&lt;g;r++){for(s=p?t.features[r].geometry:d?t.geometry:t,c=p?t.features[r].properties:d?t.properties:{},u=p?t.features[r].bbox:d?t.bbox:void 0,f=p?t.features[r].id:d?t.id:void 0,o=(l=!!s&amp;&amp;&quot;GeometryCollection&quot;===s.type)?s.geometries.length:1,i=0;i&lt;o;i++)if(null!==(a=l?s.geometries[i]:s))switch(a.type){case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;MultiPoint&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:if(!1===e(a,h,c,u,f))return!1;break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;a.geometries.length;n++)if(!1===e(a.geometries[n],h,c,u,f))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}else if(!1===e(null,h,c,u,f))return!1;h++}}function l(t,e){s(t,(function(t,r,i,a,o){var s,l=null===t?null:t.type;switch(l){case null:case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;Polygon&quot;:return!1!==e(n.feature(t,i,{bbox:a,id:o}),r,0)&amp;&amp;void 0}switch(l){case&quot;MultiPoint&quot;:s=&quot;Point&quot;;break;case&quot;MultiLineString&quot;:s=&quot;LineString&quot;;break;case&quot;MultiPolygon&quot;:s=&quot;Polygon&quot;}for(var c=0;c&lt;t.coordinates.length;c++){var u={type:s,coordinates:t.coordinates[c]};if(!1===e(n.feature(u,i),r,c))return!1}}))}function c(t,e){l(t,(function(t,r,a){var o=0;if(t.geometry){var s=t.geometry.type;if(&quot;Point&quot;!==s&amp;&amp;&quot;MultiPoint&quot;!==s){var l,c=0,u=0,f=0;return!1!==i(t,(function(i,s,h,p,d){if(void 0===l||r&gt;c||p&gt;u||d&gt;f)return l=i,c=r,u=p,f=d,void(o=0);var g=n.lineString([l,i],t.properties);if(!1===e(g,r,a,d,o))return!1;o++,l=i}))&amp;&amp;void 0}}}))}function u(t,e){if(!t)throw new Error(&quot;geojson is required&quot;);l(t,(function(t,r,i){if(null!==t.geometry){var a=t.geometry.type,o=t.geometry.coordinates;switch(a){case&quot;LineString&quot;:if(!1===e(t,r,i,0,0))return!1;break;case&quot;Polygon&quot;:for(var s=0;s&lt;o.length;s++)if(!1===e(n.lineString(o[s],t.properties),r,i,s))return!1}}}))}r.coordEach=i,r.coordReduce=function(t,e,r,n){var a=r;return i(t,(function(t,n,i,o,s){a=0===n&amp;&amp;void 0===r?t:e(a,t,n,i,o,s)}),n),a},r.propEach=a,r.propReduce=function(t,e,r){var n=r;return a(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.featureEach=o,r.featureReduce=function(t,e,r){var n=r;return o(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.coordAll=function(t){var e=[];return i(t,(function(t){e.push(t)})),e},r.geomEach=s,r.geomReduce=function(t,e,r){var n=r;return s(t,(function(t,i,a,o,s){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o,s)})),n},r.flattenEach=l,r.flattenReduce=function(t,e,r){var n=r;return l(t,(function(t,i,a){n=0===i&amp;&amp;0===a&amp;&amp;void 0===r?t:e(n,t,i,a)})),n},r.segmentEach=c,r.segmentReduce=function(t,e,r){var n=r,i=!1;return c(t,(function(t,a,o,s,l){n=!1===i&amp;&amp;void 0===r?t:e(n,t,a,o,s,l),i=!0})),n},r.lineEach=u,r.lineReduce=function(t,e,r){var n=r;return u(t,(function(t,i,a,o){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o)})),n},r.findSegment=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.segmentIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s-1),n.lineString([c[s],c[s+1]],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s-1),n.lineString([c[o][s],c[o][s+1]],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s-1),n.lineString([c[a][s],c[a][s+1]],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s-1),n.lineString([c[a][o][s],c[a][o][s+1]],l,e)}throw new Error(&quot;geojson is invalid&quot;)},r.findPoint=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.coordIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:return n.point(c,l,e);case&quot;MultiPoint&quot;:return a&lt;0&amp;&amp;(a=c.length+a),n.point(c[a],l,e);case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s),n.point(c[s],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s),n.point(c[o][s],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s),n.point(c[a][s],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s),n.point(c[a][o][s],l,e)}throw new Error(&quot;geojson is invalid&quot;)}},{&quot;@turf/helpers&quot;:62}],64:[function(t,e,r){&quot;use strict&quot;;var n=&quot;undefined&quot;==typeof WeakMap?t(&quot;weak-map&quot;):WeakMap,i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=new n;e.exports=function(t){var e=o.get(t),r=e&amp;&amp;(e._triangleBuffer.handle||e._triangleBuffer.buffer);if(!r||!t.isBuffer(r)){var n=i(t,new Float32Array([-1,-1,-1,4,4,-1]));(e=a(t,[{buffer:n,type:t.FLOAT,size:2}]))._triangleBuffer=n,o.set(t,e)}e.bind(),t.drawArrays(t.TRIANGLES,0,3),e.unbind()}},{&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358,&quot;weak-map&quot;:602}],65:[function(t,e,r){e.exports=function(t){var e=0,r=0,n=0,i=0;return t.map((function(t){var a=(t=t.slice())[0],o=a.toUpperCase();if(a!=o)switch(t[0]=o,a){case&quot;a&quot;:t[6]+=n,t[7]+=i;break;case&quot;v&quot;:t[1]+=i;break;case&quot;h&quot;:t[1]+=n;break;default:for(var s=1;s&lt;t.length;)t[s++]+=n,t[s++]+=i}switch(o){case&quot;Z&quot;:n=e,i=r;break;case&quot;H&quot;:n=t[1];break;case&quot;V&quot;:i=t[1];break;case&quot;M&quot;:n=e=t[1],i=r=t[2];break;default:n=t[t.length-2],i=t[t.length-1]}return t}))}},{}],66:[function(t,e,r){var n=t(&quot;pad-left&quot;);e.exports=function(t,e,r){e=&quot;number&quot;==typeof e?e:1,r=r||&quot;: &quot;;var i=t.split(/\r?\n/),a=String(i.length+e-1).length;return i.map((function(t,i){var o=i+e,s=String(o).length;return n(o,a-s)+r+t})).join(&quot;\n&quot;)}},{&quot;pad-left&quot;:502}],67:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[0];for(var r=t[0].length,n=[t[0]],a=[0],o=1;o&lt;e;++o)if(n.push(t[o]),i(n,r)){if(a.push(o),a.length===r+1)return a}else n.pop();return a};var n=t(&quot;robust-orientation&quot;);function i(t,e){for(var r=new Array(e+1),i=0;i&lt;t.length;++i)r[i]=t[i];for(i=0;i&lt;=t.length;++i){for(var a=t.length;a&lt;=e;++a){for(var o=new Array(e),s=0;s&lt;e;++s)o[s]=Math.pow(a+1-i,s);r[a]=o}if(n.apply(void 0,r))return!0}return!1}},{&quot;robust-orientation&quot;:548}],68:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return n(e).filter((function(r){for(var n=new Array(r.length),a=0;a&lt;r.length;++a)n[a]=e[r[a]];return i(n)*t&lt;1}))};var n=t(&quot;delaunay-triangulate&quot;),i=t(&quot;circumradius&quot;)},{circumradius:119,&quot;delaunay-triangulate&quot;:171}],69:[function(t,e,r){e.exports=function(t,e){return i(n(t,e))};var n=t(&quot;alpha-complex&quot;),i=t(&quot;simplicial-complex-boundary&quot;)},{&quot;alpha-complex&quot;:68,&quot;simplicial-complex-boundary&quot;:555}],70:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(!t||null==t.length)throw Error(&quot;Argument should be an array&quot;);e=null==e?1:Math.floor(e);for(var r=Array(2*e),n=0;n&lt;e;n++){for(var i=-1/0,a=1/0,o=n,s=t.length;o&lt;s;o+=e)t[o]&gt;i&amp;&amp;(i=t[o]),t[o]&lt;a&amp;&amp;(a=t[o]);r[n]=a,r[e+n]=i}return r}},{}],71:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;array-bounds&quot;);e.exports=function(t,e,r){if(!t||null==t.length)throw Error(&quot;Argument should be an array&quot;);null==e&amp;&amp;(e=1);null==r&amp;&amp;(r=n(t,e));for(var i=0;i&lt;e;i++){var a=r[e+i],o=r[i],s=i,l=t.length;if(a===1/0&amp;&amp;o===-1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===a?1:t[s]===o?0:.5;else if(a===1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===a?1:0;else if(o===-1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===o?0:1;else{var c=a-o;for(s=i;s&lt;l;s+=e)isNaN(t[s])||(t[s]=0===c?.5:(t[s]-o)/c)}}return t}},{&quot;array-bounds&quot;:70}],72:[function(t,e,r){e.exports=function(t,e){var r=&quot;number&quot;==typeof t,n=&quot;number&quot;==typeof e;r&amp;&amp;!n?(e=t,t=0):r||n||(t=0,e=0);var i=(e|=0)-(t|=0);if(i&lt;0)throw new Error(&quot;array length must be positive&quot;);for(var a=new Array(i),o=0,s=t;o&lt;i;o++,s++)a[o]=s;return a}},{}],73:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;object-assign&quot;);
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh &lt;feross@feross.org&gt; &lt;http://feross.org&gt;
 * @license  MIT
 */function i(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i&lt;a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r&lt;n?-1:n&lt;r?1:0}function a(t){return r.Buffer&amp;&amp;&quot;function&quot;==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var o=t(&quot;util/&quot;),s=Object.prototype.hasOwnProperty,l=Array.prototype.slice,c=&quot;foo&quot;===function(){}.name;function u(t){return Object.prototype.toString.call(t)}function f(t){return!a(t)&amp;&amp;(&quot;function&quot;==typeof r.ArrayBuffer&amp;&amp;(&quot;function&quot;==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&amp;&amp;(t instanceof DataView||!!(t.buffer&amp;&amp;t.buffer instanceof ArrayBuffer))))}var h=e.exports=y,p=/\s*function\s+([^\(\s]*)\s*/;function d(t){if(o.isFunction(t)){if(c)return t.name;var e=t.toString().match(p);return e&amp;&amp;e[1]}}function g(t,e){return&quot;string&quot;==typeof t?t.length&lt;e?t:t.slice(0,e):t}function m(t){if(c||!o.isFunction(t))return o.inspect(t);var e=d(t);return&quot;[Function&quot;+(e?&quot;: &quot;+e:&quot;&quot;)+&quot;]&quot;}function v(t,e,r,n,i){throw new h.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function y(t,e){t||v(t,!0,e,&quot;==&quot;,h.ok)}function x(t,e,r,n){if(t===e)return!0;if(a(t)&amp;&amp;a(e))return 0===i(t,e);if(o.isDate(t)&amp;&amp;o.isDate(e))return t.getTime()===e.getTime();if(o.isRegExp(t)&amp;&amp;o.isRegExp(e))return t.source===e.source&amp;&amp;t.global===e.global&amp;&amp;t.multiline===e.multiline&amp;&amp;t.lastIndex===e.lastIndex&amp;&amp;t.ignoreCase===e.ignoreCase;if(null!==t&amp;&amp;&quot;object&quot;==typeof t||null!==e&amp;&amp;&quot;object&quot;==typeof e){if(f(t)&amp;&amp;f(e)&amp;&amp;u(t)===u(e)&amp;&amp;!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(a(t)!==a(e))return!1;var s=(n=n||{actual:[],expected:[]}).actual.indexOf(t);return-1!==s&amp;&amp;s===n.expected.indexOf(e)||(n.actual.push(t),n.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(o.isPrimitive(t)||o.isPrimitive(e))return t===e;if(r&amp;&amp;Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=b(t),a=b(e);if(i&amp;&amp;!a||!i&amp;&amp;a)return!1;if(i)return t=l.call(t),e=l.call(e),x(t,e,r);var s,c,u=T(t),f=T(e);if(u.length!==f.length)return!1;for(u.sort(),f.sort(),c=u.length-1;c&gt;=0;c--)if(u[c]!==f[c])return!1;for(c=u.length-1;c&gt;=0;c--)if(s=u[c],!x(t[s],e[s],r,n))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function b(t){return&quot;[object Arguments]&quot;==Object.prototype.toString.call(t)}function _(t,e){if(!t||!e)return!1;if(&quot;[object RegExp]&quot;==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&amp;&amp;!0===e.call({},t)}function w(t,e,r,n){var i;if(&quot;function&quot;!=typeof e)throw new TypeError('&quot;block&quot; argument must be a function');&quot;string&quot;==typeof r&amp;&amp;(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&amp;&amp;r.name?&quot; (&quot;+r.name+&quot;).&quot;:&quot;.&quot;)+(n?&quot; &quot;+n:&quot;.&quot;),t&amp;&amp;!i&amp;&amp;v(i,r,&quot;Missing expected exception&quot;+n);var a=&quot;string&quot;==typeof n,s=!t&amp;&amp;i&amp;&amp;!r;if((!t&amp;&amp;o.isError(i)&amp;&amp;a&amp;&amp;_(i,r)||s)&amp;&amp;v(i,r,&quot;Got unwanted exception&quot;+n),t&amp;&amp;i&amp;&amp;r&amp;&amp;!_(i,r)||!t&amp;&amp;i)throw i}h.AssertionError=function(t){this.name=&quot;AssertionError&quot;,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return g(m(t.actual),128)+&quot; &quot;+t.operator+&quot; &quot;+g(m(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=d(e),a=n.indexOf(&quot;\n&quot;+i);if(a&gt;=0){var o=n.indexOf(&quot;\n&quot;,a+1);n=n.substring(o+1)}this.stack=n}}},o.inherits(h.AssertionError,Error),h.fail=v,h.ok=y,h.equal=function(t,e,r){t!=e&amp;&amp;v(t,e,r,&quot;==&quot;,h.equal)},h.notEqual=function(t,e,r){t==e&amp;&amp;v(t,e,r,&quot;!=&quot;,h.notEqual)},h.deepEqual=function(t,e,r){x(t,e,!1)||v(t,e,r,&quot;deepEqual&quot;,h.deepEqual)},h.deepStrictEqual=function(t,e,r){x(t,e,!0)||v(t,e,r,&quot;deepStrictEqual&quot;,h.deepStrictEqual)},h.notDeepEqual=function(t,e,r){x(t,e,!1)&amp;&amp;v(t,e,r,&quot;notDeepEqual&quot;,h.notDeepEqual)},h.notDeepStrictEqual=function t(e,r,n){x(e,r,!0)&amp;&amp;v(e,r,n,&quot;notDeepStrictEqual&quot;,t)},h.strictEqual=function(t,e,r){t!==e&amp;&amp;v(t,e,r,&quot;===&quot;,h.strictEqual)},h.notStrictEqual=function(t,e,r){t===e&amp;&amp;v(t,e,r,&quot;!==&quot;,h.notStrictEqual)},h.throws=function(t,e,r){w(!0,t,e,r)},h.doesNotThrow=function(t,e,r){w(!1,t,e,r)},h.ifError=function(t){if(t)throw t},h.strict=n((function t(e,r){e||v(e,!0,r,&quot;==&quot;,t)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var T=Object.keys||function(t){var e=[];for(var r in t)s.call(t,r)&amp;&amp;e.push(r);return e}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;object-assign&quot;:499,&quot;util/&quot;:76}],74:[function(t,e,r){&quot;function&quot;==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],75:[function(t,e,r){e.exports=function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;&quot;function&quot;==typeof t.copy&amp;&amp;&quot;function&quot;==typeof t.fill&amp;&amp;&quot;function&quot;==typeof t.readUInt8}},{}],76:[function(t,e,r){(function(e,n){(function(){var i=/%[sdj%]/g;r.format=function(t){if(!v(t)){for(var e=[],r=0;r&lt;arguments.length;r++)e.push(s(arguments[r]));return e.join(&quot; &quot;)}r=1;for(var n=arguments,a=n.length,o=String(t).replace(i,(function(t){if(&quot;%%&quot;===t)return&quot;%&quot;;if(r&gt;=a)return t;switch(t){case&quot;%s&quot;:return String(n[r++]);case&quot;%d&quot;:return Number(n[r++]);case&quot;%j&quot;:try{return JSON.stringify(n[r++])}catch(t){return&quot;[Circular]&quot;}default:return t}})),l=n[r];r&lt;a;l=n[++r])g(l)||!b(l)?o+=&quot; &quot;+l:o+=&quot; &quot;+s(l);return o},r.deprecate=function(t,i){if(y(n.process))return function(){return r.deprecate(t,i).apply(this,arguments)};if(!0===e.noDeprecation)return t;var a=!1;return function(){if(!a){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),a=!0}return t.apply(this,arguments)}};var a,o={};function s(t,e){var n={seen:[],stylize:c};return arguments.length&gt;=3&amp;&amp;(n.depth=arguments[2]),arguments.length&gt;=4&amp;&amp;(n.colors=arguments[3]),d(e)?n.showHidden=e:e&amp;&amp;r._extend(n,e),y(n.showHidden)&amp;&amp;(n.showHidden=!1),y(n.depth)&amp;&amp;(n.depth=2),y(n.colors)&amp;&amp;(n.colors=!1),y(n.customInspect)&amp;&amp;(n.customInspect=!0),n.colors&amp;&amp;(n.stylize=l),u(n,t,n.depth)}function l(t,e){var r=s.styles[e];return r?&quot;\x1b[&quot;+s.colors[r][0]+&quot;m&quot;+t+&quot;\x1b[&quot;+s.colors[r][1]+&quot;m&quot;:t}function c(t,e){return t}function u(t,e,n){if(t.customInspect&amp;&amp;e&amp;&amp;T(e.inspect)&amp;&amp;e.inspect!==r.inspect&amp;&amp;(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return v(i)||(i=u(t,i,n)),i}var a=function(t,e){if(y(e))return t.stylize(&quot;undefined&quot;,&quot;undefined&quot;);if(v(e)){var r=&quot;'&quot;+JSON.stringify(e).replace(/^&quot;|&quot;$/g,&quot;&quot;).replace(/'/g,&quot;\\'&quot;).replace(/\\&quot;/g,'&quot;')+&quot;'&quot;;return t.stylize(r,&quot;string&quot;)}if(m(e))return t.stylize(&quot;&quot;+e,&quot;number&quot;);if(d(e))return t.stylize(&quot;&quot;+e,&quot;boolean&quot;);if(g(e))return t.stylize(&quot;null&quot;,&quot;null&quot;)}(t,e);if(a)return a;var o=Object.keys(e),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&amp;&amp;(o=Object.getOwnPropertyNames(e)),w(e)&amp;&amp;(o.indexOf(&quot;message&quot;)&gt;=0||o.indexOf(&quot;description&quot;)&gt;=0))return f(e);if(0===o.length){if(T(e)){var l=e.name?&quot;: &quot;+e.name:&quot;&quot;;return t.stylize(&quot;[Function&quot;+l+&quot;]&quot;,&quot;special&quot;)}if(x(e))return t.stylize(RegExp.prototype.toString.call(e),&quot;regexp&quot;);if(_(e))return t.stylize(Date.prototype.toString.call(e),&quot;date&quot;);if(w(e))return f(e)}var c,b=&quot;&quot;,k=!1,M=[&quot;{&quot;,&quot;}&quot;];(p(e)&amp;&amp;(k=!0,M=[&quot;[&quot;,&quot;]&quot;]),T(e))&amp;&amp;(b=&quot; [Function&quot;+(e.name?&quot;: &quot;+e.name:&quot;&quot;)+&quot;]&quot;);return x(e)&amp;&amp;(b=&quot; &quot;+RegExp.prototype.toString.call(e)),_(e)&amp;&amp;(b=&quot; &quot;+Date.prototype.toUTCString.call(e)),w(e)&amp;&amp;(b=&quot; &quot;+f(e)),0!==o.length||k&amp;&amp;0!=e.length?n&lt;0?x(e)?t.stylize(RegExp.prototype.toString.call(e),&quot;regexp&quot;):t.stylize(&quot;[Object]&quot;,&quot;special&quot;):(t.seen.push(e),c=k?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o&lt;s;++o)E(e,String(o))?a.push(h(t,e,r,n,String(o),!0)):a.push(&quot;&quot;);return i.forEach((function(i){i.match(/^\d+$/)||a.push(h(t,e,r,n,i,!0))})),a}(t,e,n,s,o):o.map((function(r){return h(t,e,n,s,r,k)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf(&quot;\n&quot;)&gt;=0&amp;&amp;0,t+e.replace(/\u001b\[\d\d?m/g,&quot;&quot;).length+1}),0)&gt;60)return r[0]+(&quot;&quot;===e?&quot;&quot;:e+&quot;\n &quot;)+&quot; &quot;+t.join(&quot;,\n  &quot;)+&quot; &quot;+r[1];return r[0]+e+&quot; &quot;+t.join(&quot;, &quot;)+&quot; &quot;+r[1]}(c,b,M)):M[0]+b+M[1]}function f(t){return&quot;[&quot;+Error.prototype.toString.call(t)+&quot;]&quot;}function h(t,e,r,n,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=l.set?t.stylize(&quot;[Getter/Setter]&quot;,&quot;special&quot;):t.stylize(&quot;[Getter]&quot;,&quot;special&quot;):l.set&amp;&amp;(s=t.stylize(&quot;[Setter]&quot;,&quot;special&quot;)),E(n,i)||(o=&quot;[&quot;+i+&quot;]&quot;),s||(t.seen.indexOf(l.value)&lt;0?(s=g(r)?u(t,l.value,null):u(t,l.value,r-1)).indexOf(&quot;\n&quot;)&gt;-1&amp;&amp;(s=a?s.split(&quot;\n&quot;).map((function(t){return&quot;  &quot;+t})).join(&quot;\n&quot;).substr(2):&quot;\n&quot;+s.split(&quot;\n&quot;).map((function(t){return&quot;   &quot;+t})).join(&quot;\n&quot;)):s=t.stylize(&quot;[Circular]&quot;,&quot;special&quot;)),y(o)){if(a&amp;&amp;i.match(/^\d+$/))return s;(o=JSON.stringify(&quot;&quot;+i)).match(/^&quot;([a-zA-Z_][a-zA-Z_0-9]*)&quot;$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,&quot;name&quot;)):(o=o.replace(/'/g,&quot;\\'&quot;).replace(/\\&quot;/g,'&quot;').replace(/(^&quot;|&quot;$)/g,&quot;'&quot;),o=t.stylize(o,&quot;string&quot;))}return o+&quot;: &quot;+s}function p(t){return Array.isArray(t)}function d(t){return&quot;boolean&quot;==typeof t}function g(t){return null===t}function m(t){return&quot;number&quot;==typeof t}function v(t){return&quot;string&quot;==typeof t}function y(t){return void 0===t}function x(t){return b(t)&amp;&amp;&quot;[object RegExp]&quot;===k(t)}function b(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t}function _(t){return b(t)&amp;&amp;&quot;[object Date]&quot;===k(t)}function w(t){return b(t)&amp;&amp;(&quot;[object Error]&quot;===k(t)||t instanceof Error)}function T(t){return&quot;function&quot;==typeof t}function k(t){return Object.prototype.toString.call(t)}function M(t){return t&lt;10?&quot;0&quot;+t.toString(10):t.toString(10)}r.debuglog=function(t){if(y(a)&amp;&amp;(a=e.env.NODE_DEBUG||&quot;&quot;),t=t.toUpperCase(),!o[t])if(new RegExp(&quot;\\b&quot;+t+&quot;\\b&quot;,&quot;i&quot;).test(a)){var n=e.pid;o[t]=function(){var e=r.format.apply(r,arguments);console.error(&quot;%s %d: %s&quot;,t,n,e)}}else o[t]=function(){};return o[t]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:&quot;cyan&quot;,number:&quot;yellow&quot;,boolean:&quot;yellow&quot;,undefined:&quot;grey&quot;,null:&quot;bold&quot;,string:&quot;green&quot;,date:&quot;magenta&quot;,regexp:&quot;red&quot;},r.isArray=p,r.isBoolean=d,r.isNull=g,r.isNullOrUndefined=function(t){return null==t},r.isNumber=m,r.isString=v,r.isSymbol=function(t){return&quot;symbol&quot;==typeof t},r.isUndefined=y,r.isRegExp=x,r.isObject=b,r.isDate=_,r.isError=w,r.isFunction=T,r.isPrimitive=function(t){return null===t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||&quot;symbol&quot;==typeof t||&quot;undefined&quot;==typeof t},r.isBuffer=t(&quot;./support/isBuffer&quot;);var A=[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;];function S(){var t=new Date,e=[M(t.getHours()),M(t.getMinutes()),M(t.getSeconds())].join(&quot;:&quot;);return[t.getDate(),A[t.getMonth()],e].join(&quot; &quot;)}function E(t,e){return Object.prototype.hasOwnProperty.call(t,e)}r.log=function(){console.log(&quot;%s - %s&quot;,S(),r.format.apply(r,arguments))},r.inherits=t(&quot;inherits&quot;),r._extend=function(t,e){if(!e||!b(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;./support/isBuffer&quot;:75,_process:526,inherits:74}],77:[function(t,e,r){e.exports=function(t){return atob(t)}},{}],78:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=e.length,a=new Array(r+1),o=0;o&lt;r;++o){for(var s=new Array(r+1),l=0;l&lt;=r;++l)s[l]=t[l][o];a[o]=s}a[r]=new Array(r+1);for(o=0;o&lt;=r;++o)a[r][o]=1;var c=new Array(r+1);for(o=0;o&lt;r;++o)c[o]=e[o];c[r]=1;var u=n(a,c),f=i(u[r+1]);0===f&amp;&amp;(f=1);var h=new Array(r+1);for(o=0;o&lt;=r;++o)h[o]=i(u[o])/f;return h};var n=t(&quot;robust-linear-solve&quot;);function i(t){for(var e=0,r=0;r&lt;t.length;++r)e+=t[r];return e}},{&quot;robust-linear-solve&quot;:547}],79:[function(t,e,r){&quot;use strict&quot;;r.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){var e,r,n=c(t),o=n[0],s=n[1],l=new a(function(t,e,r){return 3*(e+r)/4-r}(0,o,s)),u=0,f=s&gt;0?o-4:o;for(r=0;r&lt;f;r+=4)e=i[t.charCodeAt(r)]&lt;&lt;18|i[t.charCodeAt(r+1)]&lt;&lt;12|i[t.charCodeAt(r+2)]&lt;&lt;6|i[t.charCodeAt(r+3)],l[u++]=e&gt;&gt;16&amp;255,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e;2===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;2|i[t.charCodeAt(r+1)]&gt;&gt;4,l[u++]=255&amp;e);1===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;10|i[t.charCodeAt(r+1)]&lt;&lt;4|i[t.charCodeAt(r+2)]&gt;&gt;2,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e);return l},r.fromByteArray=function(t){for(var e,r=t.length,i=r%3,a=[],o=0,s=r-i;o&lt;s;o+=16383)a.push(u(t,o,o+16383&gt;s?s:o+16383));1===i?(e=t[r-1],a.push(n[e&gt;&gt;2]+n[e&lt;&lt;4&amp;63]+&quot;==&quot;)):2===i&amp;&amp;(e=(t[r-2]&lt;&lt;8)+t[r-1],a.push(n[e&gt;&gt;10]+n[e&gt;&gt;4&amp;63]+n[e&lt;&lt;2&amp;63]+&quot;=&quot;));return a.join(&quot;&quot;)};for(var n=[],i=[],a=&quot;undefined&quot;!=typeof Uint8Array?Uint8Array:Array,o=&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/&quot;,s=0,l=o.length;s&lt;l;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4&gt;0)throw new Error(&quot;Invalid string. Length must be a multiple of 4&quot;);var r=t.indexOf(&quot;=&quot;);return-1===r&amp;&amp;(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var i,a,o=[],s=e;s&lt;r;s+=3)i=(t[s]&lt;&lt;16&amp;16711680)+(t[s+1]&lt;&lt;8&amp;65280)+(255&amp;t[s+2]),o.push(n[(a=i)&gt;&gt;18&amp;63]+n[a&gt;&gt;12&amp;63]+n[a&gt;&gt;6&amp;63]+n[63&amp;a]);return o.join(&quot;&quot;)}i[&quot;-&quot;.charCodeAt(0)]=62,i[&quot;_&quot;.charCodeAt(0)]=63},{}],80:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]).add(e[0].mul(t[1])),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:90}],81:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t[0].mul(e[1]).cmp(e[0].mul(t[1]))}},{}],82:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]),t[1].mul(e[0]))}},{&quot;./lib/rationalize&quot;:90}],83:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-rat&quot;),i=t(&quot;./lib/is-bn&quot;),a=t(&quot;./lib/num-to-bn&quot;),o=t(&quot;./lib/str-to-bn&quot;),s=t(&quot;./lib/rationalize&quot;),l=t(&quot;./div&quot;);e.exports=function t(e,r){if(n(e))return r?l(e,t(r)):[e[0].clone(),e[1].clone()];var c,u,f=0;if(i(e))c=e.clone();else if(&quot;string&quot;==typeof e)c=o(e);else{if(0===e)return[a(0),a(1)];if(e===Math.floor(e))c=a(e);else{for(;e!==Math.floor(e);)e*=Math.pow(2,256),f-=256;c=a(e)}}if(n(r))c.mul(r[1]),u=r[0].clone();else if(i(r))u=r.clone();else if(&quot;string&quot;==typeof r)u=o(r);else if(r)if(r===Math.floor(r))u=a(r);else{for(;r!==Math.floor(r);)r*=Math.pow(2,256),f+=256;u=a(r)}else u=a(1);f&gt;0?c=c.ushln(f):f&lt;0&amp;&amp;(u=u.ushln(-f));return s(c,u)}},{&quot;./div&quot;:82,&quot;./is-rat&quot;:84,&quot;./lib/is-bn&quot;:88,&quot;./lib/num-to-bn&quot;:89,&quot;./lib/rationalize&quot;:90,&quot;./lib/str-to-bn&quot;:91}],84:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/is-bn&quot;);e.exports=function(t){return Array.isArray(t)&amp;&amp;2===t.length&amp;&amp;n(t[0])&amp;&amp;n(t[1])}},{&quot;./lib/is-bn&quot;:88}],85:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;);e.exports=function(t){return t.cmp(new n(0))}},{&quot;bn.js&quot;:99}],86:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./bn-sign&quot;);e.exports=function(t){var e=t.length,r=t.words,i=0;if(1===e)i=r[0];else if(2===e)i=r[0]+67108864*r[1];else for(var a=0;a&lt;e;a++){var o=r[a];i+=o*Math.pow(67108864,a)}return n(t)*i}},{&quot;./bn-sign&quot;:85}],87:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;double-bits&quot;),i=t(&quot;bit-twiddle&quot;).countTrailingZeros;e.exports=function(t){var e=i(n.lo(t));if(e&lt;32)return e;var r=i(n.hi(t));if(r&gt;20)return 52;return r+32}},{&quot;bit-twiddle&quot;:97,&quot;double-bits&quot;:173}],88:[function(t,e,r){&quot;use strict&quot;;t(&quot;bn.js&quot;);e.exports=function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;Boolean(t.words)}},{&quot;bn.js&quot;:99}],89:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;),i=t(&quot;double-bits&quot;);e.exports=function(t){var e=i.exponent(t);return e&lt;52?new n(t):new n(t*Math.pow(2,52-e)).ushln(e-52)}},{&quot;bn.js&quot;:99,&quot;double-bits&quot;:173}],90:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./num-to-bn&quot;),i=t(&quot;./bn-sign&quot;);e.exports=function(t,e){var r=i(t),a=i(e);if(0===r)return[n(0),n(1)];if(0===a)return[n(0),n(0)];a&lt;0&amp;&amp;(t=t.neg(),e=e.neg());var o=t.gcd(e);if(o.cmpn(1))return[t.div(o),e.div(o)];return[t,e]}},{&quot;./bn-sign&quot;:85,&quot;./num-to-bn&quot;:89}],91:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;);e.exports=function(t){return new n(t)}},{&quot;bn.js&quot;:99}],92:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[0]),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:90}],93:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/bn-sign&quot;);e.exports=function(t){return n(t[0])*n(t[1])}},{&quot;./lib/bn-sign&quot;:85}],94:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]).sub(t[1].mul(e[0])),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:90}],95:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/bn-to-num&quot;),i=t(&quot;./lib/ctz&quot;);e.exports=function(t){var e=t[0],r=t[1];if(0===e.cmpn(0))return 0;var a=e.abs().divmod(r.abs()),o=a.div,s=n(o),l=a.mod,c=e.negative!==r.negative?-1:1;if(0===l.cmpn(0))return c*s;if(s){var u=i(s)+4,f=n(l.ushln(u).divRound(r));return c*(s+f*Math.pow(2,-u))}var h=r.bitLength()-l.bitLength()+53;f=n(l.ushln(h).divRound(r));return h&lt;1023?c*f*Math.pow(2,-h):(f*=Math.pow(2,-1023),c*f*Math.pow(2,1023-h))}},{&quot;./lib/bn-to-num&quot;:86,&quot;./lib/ctz&quot;:87}],96:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i){var a=[&quot;function &quot;,t,&quot;(a,l,h,&quot;,n.join(&quot;,&quot;),&quot;){&quot;,i?&quot;&quot;:&quot;var i=&quot;,r?&quot;l-1&quot;:&quot;h+1&quot;,&quot;;while(l&lt;=h){var m=(l+h)&gt;&gt;&gt;1,x=a[m]&quot;];return i?e.indexOf(&quot;c&quot;)&lt;0?a.push(&quot;;if(x===y){return m}else if(x&lt;=y){&quot;):a.push(&quot;;var p=c(x,y);if(p===0){return m}else if(p&lt;=0){&quot;):a.push(&quot;;if(&quot;,e,&quot;){i=m;&quot;),r?a.push(&quot;l=m+1}else{h=m-1}&quot;):a.push(&quot;h=m-1}else{l=m+1}&quot;),a.push(&quot;}&quot;),i?a.push(&quot;return -1};&quot;):a.push(&quot;return i};&quot;),a.join(&quot;&quot;)}function i(t,e,r,i){return new Function([n(&quot;A&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],i),n(&quot;P&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],i),&quot;function dispatchBsearch&quot;,r,&quot;(a,y,c,l,h){if(typeof(c)==='function'){return P(a,(l===void 0)?0:l|0,(h===void 0)?a.length-1:h|0,y,c)}else{return A(a,(c===void 0)?0:c|0,(l===void 0)?a.length-1:l|0,y)}}return dispatchBsearch&quot;,r].join(&quot;&quot;))()}e.exports={ge:i(&quot;&gt;=&quot;,!1,&quot;GE&quot;),gt:i(&quot;&gt;&quot;,!1,&quot;GT&quot;),lt:i(&quot;&lt;&quot;,!0,&quot;LT&quot;),le:i(&quot;&lt;=&quot;,!0,&quot;LE&quot;),eq:i(&quot;-&quot;,!0,&quot;EQ&quot;,!0)}},{}],97:[function(t,e,r){&quot;use strict&quot;;function n(t){var e=32;return(t&amp;=-t)&amp;&amp;e--,65535&amp;t&amp;&amp;(e-=16),16711935&amp;t&amp;&amp;(e-=8),252645135&amp;t&amp;&amp;(e-=4),858993459&amp;t&amp;&amp;(e-=2),1431655765&amp;t&amp;&amp;(e-=1),e}r.INT_BITS=32,r.INT_MAX=2147483647,r.INT_MIN=-1&lt;&lt;31,r.sign=function(t){return(t&gt;0)-(t&lt;0)},r.abs=function(t){var e=t&gt;&gt;31;return(t^e)-e},r.min=function(t,e){return e^(t^e)&amp;-(t&lt;e)},r.max=function(t,e){return t^(t^e)&amp;-(t&lt;e)},r.isPow2=function(t){return!(t&amp;t-1||!t)},r.log2=function(t){var e,r;return e=(t&gt;65535)&lt;&lt;4,e|=r=((t&gt;&gt;&gt;=e)&gt;255)&lt;&lt;3,e|=r=((t&gt;&gt;&gt;=r)&gt;15)&lt;&lt;2,(e|=r=((t&gt;&gt;&gt;=r)&gt;3)&lt;&lt;1)|(t&gt;&gt;&gt;=r)&gt;&gt;1},r.log10=function(t){return t&gt;=1e9?9:t&gt;=1e8?8:t&gt;=1e7?7:t&gt;=1e6?6:t&gt;=1e5?5:t&gt;=1e4?4:t&gt;=1e3?3:t&gt;=100?2:t&gt;=10?1:0},r.popCount=function(t){return 16843009*((t=(858993459&amp;(t-=t&gt;&gt;&gt;1&amp;1431655765))+(t&gt;&gt;&gt;2&amp;858993459))+(t&gt;&gt;&gt;4)&amp;252645135)&gt;&gt;&gt;24},r.countTrailingZeros=n,r.nextPow2=function(t){return t+=0===t,--t,t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)+1},r.prevPow2=function(t){return t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)-(t&gt;&gt;&gt;1)},r.parity=function(t){return t^=t&gt;&gt;&gt;16,t^=t&gt;&gt;&gt;8,t^=t&gt;&gt;&gt;4,27030&gt;&gt;&gt;(t&amp;=15)&amp;1};var i=new Array(256);!function(t){for(var e=0;e&lt;256;++e){var r=e,n=e,i=7;for(r&gt;&gt;&gt;=1;r;r&gt;&gt;&gt;=1)n&lt;&lt;=1,n|=1&amp;r,--i;t[e]=n&lt;&lt;i&amp;255}}(i),r.reverse=function(t){return i[255&amp;t]&lt;&lt;24|i[t&gt;&gt;&gt;8&amp;255]&lt;&lt;16|i[t&gt;&gt;&gt;16&amp;255]&lt;&lt;8|i[t&gt;&gt;&gt;24&amp;255]},r.interleave2=function(t,e){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t&amp;=65535)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e&amp;=65535)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1},r.deinterleave2=function(t,e){return(t=65535&amp;((t=16711935&amp;((t=252645135&amp;((t=858993459&amp;((t=t&gt;&gt;&gt;e&amp;1431655765)|t&gt;&gt;&gt;1))|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;16))&lt;&lt;16&gt;&gt;16},r.interleave3=function(t,e,r){return t=1227133513&amp;((t=3272356035&amp;((t=251719695&amp;((t=4278190335&amp;((t&amp;=1023)|t&lt;&lt;16))|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2),(t|=(e=1227133513&amp;((e=3272356035&amp;((e=251719695&amp;((e=4278190335&amp;((e&amp;=1023)|e&lt;&lt;16))|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))&lt;&lt;1)|(r=1227133513&amp;((r=3272356035&amp;((r=251719695&amp;((r=4278190335&amp;((r&amp;=1023)|r&lt;&lt;16))|r&lt;&lt;8))|r&lt;&lt;4))|r&lt;&lt;2))&lt;&lt;2},r.deinterleave3=function(t,e){return(t=1023&amp;((t=4278190335&amp;((t=251719695&amp;((t=3272356035&amp;((t=t&gt;&gt;&gt;e&amp;1227133513)|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;8))|t&gt;&gt;&gt;16))&lt;&lt;22&gt;&gt;22},r.nextCombination=function(t){var e=t|t-1;return e+1|(~e&amp;-~e)-1&gt;&gt;&gt;n(t)+1}},{}],98:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;clamp&quot;);e.exports=function(t,e){e||(e={});var r,o,s,l,c,u,f,h,p,d,g,m=null==e.cutoff?.25:e.cutoff,v=null==e.radius?8:e.radius,y=e.channel||0;if(ArrayBuffer.isView(t)||Array.isArray(t)){if(!e.width||!e.height)throw Error(&quot;For raw data width and height should be provided by options&quot;);r=e.width,o=e.height,l=t,u=e.stride?e.stride:Math.floor(t.length/r/o)}else window.HTMLCanvasElement&amp;&amp;t instanceof window.HTMLCanvasElement?(f=(h=t).getContext(&quot;2d&quot;),r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.CanvasRenderingContext2D&amp;&amp;t instanceof window.CanvasRenderingContext2D?(h=t.canvas,f=t,r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.ImageData&amp;&amp;t instanceof window.ImageData&amp;&amp;(p=t,r=t.width,o=t.height,l=p.data,u=4);if(s=Math.max(r,o),window.Uint8ClampedArray&amp;&amp;l instanceof window.Uint8ClampedArray||window.Uint8Array&amp;&amp;l instanceof window.Uint8Array)for(c=l,l=Array(r*o),d=0,g=c.length;d&lt;g;d++)l[d]=c[d*u+y]/255;else if(1!==u)throw Error(&quot;Raw data can have only 1 value per pixel&quot;);var x=Array(r*o),b=Array(r*o),_=Array(s),w=Array(s),T=Array(s+1),k=Array(s);for(d=0,g=r*o;d&lt;g;d++){var M=l[d];x[d]=1===M?0:0===M?i:Math.pow(Math.max(0,.5-M),2),b[d]=1===M?i:0===M?0:Math.pow(Math.max(0,M-.5),2)}a(x,r,o,_,w,k,T),a(b,r,o,_,w,k,T);var A=window.Float32Array?new Float32Array(r*o):new Array(r*o);for(d=0,g=r*o;d&lt;g;d++)A[d]=n(1-((x[d]-b[d])/v+m),0,1);return A};var i=1e20;function a(t,e,r,n,i,a,s){for(var l=0;l&lt;e;l++){for(var c=0;c&lt;r;c++)n[c]=t[c*e+l];for(o(n,i,a,s,r),c=0;c&lt;r;c++)t[c*e+l]=i[c]}for(c=0;c&lt;r;c++){for(l=0;l&lt;e;l++)n[l]=t[c*e+l];for(o(n,i,a,s,e),l=0;l&lt;e;l++)t[c*e+l]=Math.sqrt(i[l])}}function o(t,e,r,n,a){r[0]=0,n[0]=-i,n[1]=+i;for(var o=1,s=0;o&lt;a;o++){for(var l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);l&lt;=n[s];)s--,l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);r[++s]=o,n[s]=l,n[s+1]=+i}for(o=0,s=0;o&lt;a;o++){for(;n[s+1]&lt;o;)s++;e[o]=(o-r[s])*(o-r[s])+t[r[s]]}}},{clamp:120}],99:[function(t,e,r){!function(e,r){&quot;use strict&quot;;function n(t,e){if(!t)throw new Error(e||&quot;Assertion failed&quot;)}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,e,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&amp;&amp;(&quot;le&quot;!==e&amp;&amp;&quot;be&quot;!==e||(r=e,e=10),this._init(t||0,e||10,r||&quot;be&quot;))}var o;&quot;object&quot;==typeof e?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{o=t(&quot;buffer&quot;).Buffer}catch(t){}function s(t,e,r){for(var n=0,i=Math.min(t.length,r),a=e;a&lt;i;a++){var o=t.charCodeAt(a)-48;n&lt;&lt;=4,n|=o&gt;=49&amp;&amp;o&lt;=54?o-49+10:o&gt;=17&amp;&amp;o&lt;=22?o-17+10:15&amp;o}return n}function l(t,e,r,n){for(var i=0,a=Math.min(t.length,r),o=e;o&lt;a;o++){var s=t.charCodeAt(o)-48;i*=n,i+=s&gt;=49?s-49+10:s&gt;=17?s-17+10:s}return i}a.isBN=function(t){return t instanceof a||null!==t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;t.constructor.wordSize===a.wordSize&amp;&amp;Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)&gt;0?t:e},a.min=function(t,e){return t.cmp(e)&lt;0?t:e},a.prototype._init=function(t,e,r){if(&quot;number&quot;==typeof t)return this._initNumber(t,e,r);if(&quot;object&quot;==typeof t)return this._initArray(t,e,r);&quot;hex&quot;===e&amp;&amp;(e=16),n(e===(0|e)&amp;&amp;e&gt;=2&amp;&amp;e&lt;=36);var i=0;&quot;-&quot;===(t=t.toString().replace(/\s+/g,&quot;&quot;))[0]&amp;&amp;i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),&quot;-&quot;===t[0]&amp;&amp;(this.negative=1),this.strip(),&quot;le&quot;===r&amp;&amp;this._initArray(this.toArray(),e,r)},a.prototype._initNumber=function(t,e,r){t&lt;0&amp;&amp;(this.negative=1,t=-t),t&lt;67108864?(this.words=[67108863&amp;t],this.length=1):t&lt;4503599627370496?(this.words=[67108863&amp;t,t/67108864&amp;67108863],this.length=2):(n(t&lt;9007199254740992),this.words=[67108863&amp;t,t/67108864&amp;67108863,1],this.length=3),&quot;le&quot;===r&amp;&amp;this._initArray(this.toArray(),e,r)},a.prototype._initArray=function(t,e,r){if(n(&quot;number&quot;==typeof t.length),t.length&lt;=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i&lt;this.length;i++)this.words[i]=0;var a,o,s=0;if(&quot;be&quot;===r)for(i=t.length-1,a=0;i&gt;=0;i-=3)o=t[i]|t[i-1]&lt;&lt;8|t[i-2]&lt;&lt;16,this.words[a]|=o&lt;&lt;s&amp;67108863,this.words[a+1]=o&gt;&gt;&gt;26-s&amp;67108863,(s+=24)&gt;=26&amp;&amp;(s-=26,a++);else if(&quot;le&quot;===r)for(i=0,a=0;i&lt;t.length;i+=3)o=t[i]|t[i+1]&lt;&lt;8|t[i+2]&lt;&lt;16,this.words[a]|=o&lt;&lt;s&amp;67108863,this.words[a+1]=o&gt;&gt;&gt;26-s&amp;67108863,(s+=24)&gt;=26&amp;&amp;(s-=26,a++);return this.strip()},a.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r&lt;this.length;r++)this.words[r]=0;var n,i,a=0;for(r=t.length-6,n=0;r&gt;=e;r-=6)i=s(t,r,r+6),this.words[n]|=i&lt;&lt;a&amp;67108863,this.words[n+1]|=i&gt;&gt;&gt;26-a&amp;4194303,(a+=24)&gt;=26&amp;&amp;(a-=26,n++);r+6!==e&amp;&amp;(i=s(t,e,r+6),this.words[n]|=i&lt;&lt;a&amp;67108863,this.words[n+1]|=i&gt;&gt;&gt;26-a&amp;4194303),this.strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i&lt;=67108863;i*=e)n++;n--,i=i/e|0;for(var a=t.length-r,o=a%n,s=Math.min(a,a-o)+r,c=0,u=r;u&lt;s;u+=n)c=l(t,u,u+n,e),this.imuln(i),this.words[0]+c&lt;67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var f=1;for(c=l(t,u,t.length,e),u=0;u&lt;o;u++)f*=e;this.imuln(f),this.words[0]+c&lt;67108864?this.words[0]+=c:this._iaddn(c)}},a.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e&lt;this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length&lt;t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length&gt;1&amp;&amp;0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&amp;&amp;0===this.words[0]&amp;&amp;(this.negative=0),this},a.prototype.inspect=function(){return(this.red?&quot;&lt;BN-R: &quot;:&quot;&lt;BN: &quot;)+this.toString(16)+&quot;&gt;&quot;};var c=[&quot;&quot;,&quot;0&quot;,&quot;00&quot;,&quot;000&quot;,&quot;0000&quot;,&quot;00000&quot;,&quot;000000&quot;,&quot;0000000&quot;,&quot;00000000&quot;,&quot;000000000&quot;,&quot;0000000000&quot;,&quot;00000000000&quot;,&quot;000000000000&quot;,&quot;0000000000000&quot;,&quot;00000000000000&quot;,&quot;000000000000000&quot;,&quot;0000000000000000&quot;,&quot;00000000000000000&quot;,&quot;000000000000000000&quot;,&quot;0000000000000000000&quot;,&quot;00000000000000000000&quot;,&quot;000000000000000000000&quot;,&quot;0000000000000000000000&quot;,&quot;00000000000000000000000&quot;,&quot;000000000000000000000000&quot;,&quot;0000000000000000000000000&quot;],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],a=0|e.words[0],o=i*a,s=67108863&amp;o,l=o/67108864|0;r.words[0]=s;for(var c=1;c&lt;n;c++){for(var u=l&gt;&gt;&gt;26,f=67108863&amp;l,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p&lt;=h;p++){var d=c-p|0;u+=(o=(i=0|t.words[d])*(a=0|e.words[p])+f)/67108864|0,f=67108863&amp;o}r.words[c]=0|f,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||&quot;hex&quot;===t){r=&quot;&quot;;for(var i=0,a=0,o=0;o&lt;this.length;o++){var s=this.words[o],l=(16777215&amp;(s&lt;&lt;i|a)).toString(16);r=0!==(a=s&gt;&gt;&gt;24-i&amp;16777215)||o!==this.length-1?c[6-l.length]+l+r:l+r,(i+=2)&gt;=26&amp;&amp;(i-=26,o--)}for(0!==a&amp;&amp;(r=a.toString(16)+r);r.length%e!=0;)r=&quot;0&quot;+r;return 0!==this.negative&amp;&amp;(r=&quot;-&quot;+r),r}if(t===(0|t)&amp;&amp;t&gt;=2&amp;&amp;t&lt;=36){var h=u[t],p=f[t];r=&quot;&quot;;var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modn(p).toString(t);r=(d=d.idivn(p)).isZero()?g+r:c[h-g.length]+g+r}for(this.isZero()&amp;&amp;(r=&quot;0&quot;+r);r.length%e!=0;)r=&quot;0&quot;+r;return 0!==this.negative&amp;&amp;(r=&quot;-&quot;+r),r}n(!1,&quot;Base should be between 2 and 36&quot;)},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&amp;&amp;1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length&gt;2&amp;&amp;n(!1,&quot;Number can only safely store up to 53 bits&quot;),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return n(&quot;undefined&quot;!=typeof o),this.toArrayLike(o,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i&lt;=a,&quot;byte array longer than desired length&quot;),n(a&gt;0,&quot;Requested array length &lt;= 0&quot;),this.strip();var o,s,l=&quot;le&quot;===e,c=new t(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s&lt;a;s++)c[s]=0}else{for(s=0;s&lt;a-i;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[a-s-1]=o}return c},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var e=t,r=0;return e&gt;=4096&amp;&amp;(r+=13,e&gt;&gt;&gt;=13),e&gt;=64&amp;&amp;(r+=7,e&gt;&gt;&gt;=7),e&gt;=8&amp;&amp;(r+=4,e&gt;&gt;&gt;=4),e&gt;=2&amp;&amp;(r+=2,e&gt;&gt;&gt;=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&amp;e)&amp;&amp;(r+=13,e&gt;&gt;&gt;=13),0==(127&amp;e)&amp;&amp;(r+=7,e&gt;&gt;&gt;=7),0==(15&amp;e)&amp;&amp;(r+=4,e&gt;&gt;&gt;=4),0==(3&amp;e)&amp;&amp;(r+=2,e&gt;&gt;&gt;=2),0==(1&amp;e)&amp;&amp;r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e&lt;this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length&lt;t.length;)this.words[this.length++]=0;for(var e=0;e&lt;t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},a.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length&gt;t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length&gt;t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length&gt;t.length?t:this;for(var r=0;r&lt;e.length;r++)this.words[r]=this.words[r]&amp;t.words[r];return this.length=e.length,this.strip()},a.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length&gt;t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length&gt;t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length&gt;t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n&lt;r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n&lt;e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},a.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length&gt;t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length&gt;t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r&gt;0&amp;&amp;e--;for(var i=0;i&lt;e;i++)this.words[i]=67108863&amp;~this.words[i];return r&gt;0&amp;&amp;(this.words[i]=~this.words[i]&amp;67108863&gt;&gt;26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1&lt;&lt;i:this.words[r]&amp;~(1&lt;&lt;i),this.strip()},a.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&amp;&amp;0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&amp;&amp;0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length&gt;t.length?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a&lt;n.length;a++)e=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&amp;e,i=e&gt;&gt;&gt;26;for(;0!==i&amp;&amp;a&lt;r.length;a++)e=(0|r.words[a])+i,this.words[a]=67108863&amp;e,i=e&gt;&gt;&gt;26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a&lt;r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(t){var e;return 0!==t.negative&amp;&amp;0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&amp;&amp;0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length&gt;t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i&gt;0?(r=this,n=t):(r=t,n=this);for(var a=0,o=0;o&lt;n.length;o++)a=(e=(0|r.words[o])-(0|n.words[o])+a)&gt;&gt;26,this.words[o]=67108863&amp;e;for(;0!==a&amp;&amp;o&lt;r.length;o++)a=(e=(0|r.words[o])+a)&gt;&gt;26,this.words[o]=67108863&amp;e;if(0===a&amp;&amp;o&lt;r.length&amp;&amp;r!==this)for(;o&lt;r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&amp;&amp;(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,a,o=t.words,s=e.words,l=r.words,c=0,u=0|o[0],f=8191&amp;u,h=u&gt;&gt;&gt;13,p=0|o[1],d=8191&amp;p,g=p&gt;&gt;&gt;13,m=0|o[2],v=8191&amp;m,y=m&gt;&gt;&gt;13,x=0|o[3],b=8191&amp;x,_=x&gt;&gt;&gt;13,w=0|o[4],T=8191&amp;w,k=w&gt;&gt;&gt;13,M=0|o[5],A=8191&amp;M,S=M&gt;&gt;&gt;13,E=0|o[6],C=8191&amp;E,L=E&gt;&gt;&gt;13,I=0|o[7],P=8191&amp;I,z=I&gt;&gt;&gt;13,O=0|o[8],D=8191&amp;O,R=O&gt;&gt;&gt;13,F=0|o[9],B=8191&amp;F,N=F&gt;&gt;&gt;13,j=0|s[0],U=8191&amp;j,V=j&gt;&gt;&gt;13,q=0|s[1],H=8191&amp;q,G=q&gt;&gt;&gt;13,Y=0|s[2],W=8191&amp;Y,X=Y&gt;&gt;&gt;13,Z=0|s[3],J=8191&amp;Z,K=Z&gt;&gt;&gt;13,Q=0|s[4],$=8191&amp;Q,tt=Q&gt;&gt;&gt;13,et=0|s[5],rt=8191&amp;et,nt=et&gt;&gt;&gt;13,it=0|s[6],at=8191&amp;it,ot=it&gt;&gt;&gt;13,st=0|s[7],lt=8191&amp;st,ct=st&gt;&gt;&gt;13,ut=0|s[8],ft=8191&amp;ut,ht=ut&gt;&gt;&gt;13,pt=0|s[9],dt=8191&amp;pt,gt=pt&gt;&gt;&gt;13;r.negative=t.negative^e.negative,r.length=19;var mt=(c+(n=Math.imul(f,U))|0)+((8191&amp;(i=(i=Math.imul(f,V))+Math.imul(h,U)|0))&lt;&lt;13)|0;c=((a=Math.imul(h,V))+(i&gt;&gt;&gt;13)|0)+(mt&gt;&gt;&gt;26)|0,mt&amp;=67108863,n=Math.imul(d,U),i=(i=Math.imul(d,V))+Math.imul(g,U)|0,a=Math.imul(g,V);var vt=(c+(n=n+Math.imul(f,H)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,H)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,G)|0)+(i&gt;&gt;&gt;13)|0)+(vt&gt;&gt;&gt;26)|0,vt&amp;=67108863,n=Math.imul(v,U),i=(i=Math.imul(v,V))+Math.imul(y,U)|0,a=Math.imul(y,V),n=n+Math.imul(d,H)|0,i=(i=i+Math.imul(d,G)|0)+Math.imul(g,H)|0,a=a+Math.imul(g,G)|0;var yt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,W)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,X)|0)+(i&gt;&gt;&gt;13)|0)+(yt&gt;&gt;&gt;26)|0,yt&amp;=67108863,n=Math.imul(b,U),i=(i=Math.imul(b,V))+Math.imul(_,U)|0,a=Math.imul(_,V),n=n+Math.imul(v,H)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(d,W)|0,i=(i=i+Math.imul(d,X)|0)+Math.imul(g,W)|0,a=a+Math.imul(g,X)|0;var xt=(c+(n=n+Math.imul(f,J)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,J)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,K)|0)+(i&gt;&gt;&gt;13)|0)+(xt&gt;&gt;&gt;26)|0,xt&amp;=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,V))+Math.imul(k,U)|0,a=Math.imul(k,V),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,G)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(y,W)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(d,J)|0,i=(i=i+Math.imul(d,K)|0)+Math.imul(g,J)|0,a=a+Math.imul(g,K)|0;var bt=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,$)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,tt)|0)+(i&gt;&gt;&gt;13)|0)+(bt&gt;&gt;&gt;26)|0,bt&amp;=67108863,n=Math.imul(A,U),i=(i=Math.imul(A,V))+Math.imul(S,U)|0,a=Math.imul(S,V),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(k,H)|0,a=a+Math.imul(k,G)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(_,W)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(y,J)|0,a=a+Math.imul(y,K)|0,n=n+Math.imul(d,$)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(g,$)|0,a=a+Math.imul(g,tt)|0;var _t=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,nt)|0)+(i&gt;&gt;&gt;13)|0)+(_t&gt;&gt;&gt;26)|0,_t&amp;=67108863,n=Math.imul(C,U),i=(i=Math.imul(C,V))+Math.imul(L,U)|0,a=Math.imul(L,V),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(k,W)|0,a=a+Math.imul(k,X)|0,n=n+Math.imul(b,J)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(_,J)|0,a=a+Math.imul(_,K)|0,n=n+Math.imul(v,$)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,tt)|0,n=n+Math.imul(d,rt)|0,i=(i=i+Math.imul(d,nt)|0)+Math.imul(g,rt)|0,a=a+Math.imul(g,nt)|0;var wt=(c+(n=n+Math.imul(f,at)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ot)|0)+Math.imul(h,at)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ot)|0)+(i&gt;&gt;&gt;13)|0)+(wt&gt;&gt;&gt;26)|0,wt&amp;=67108863,n=Math.imul(P,U),i=(i=Math.imul(P,V))+Math.imul(z,U)|0,a=Math.imul(z,V),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(L,H)|0,a=a+Math.imul(L,G)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,X)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(k,J)|0,a=a+Math.imul(k,K)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(y,rt)|0,a=a+Math.imul(y,nt)|0,n=n+Math.imul(d,at)|0,i=(i=i+Math.imul(d,ot)|0)+Math.imul(g,at)|0,a=a+Math.imul(g,ot)|0;var Tt=(c+(n=n+Math.imul(f,lt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ct)|0)+Math.imul(h,lt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ct)|0)+(i&gt;&gt;&gt;13)|0)+(Tt&gt;&gt;&gt;26)|0,Tt&amp;=67108863,n=Math.imul(D,U),i=(i=Math.imul(D,V))+Math.imul(R,U)|0,a=Math.imul(R,V),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(z,H)|0,a=a+Math.imul(z,G)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(L,W)|0,a=a+Math.imul(L,X)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(S,J)|0,a=a+Math.imul(S,K)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(_,rt)|0,a=a+Math.imul(_,nt)|0,n=n+Math.imul(v,at)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(y,at)|0,a=a+Math.imul(y,ot)|0,n=n+Math.imul(d,lt)|0,i=(i=i+Math.imul(d,ct)|0)+Math.imul(g,lt)|0,a=a+Math.imul(g,ct)|0;var kt=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ht)|0)+(i&gt;&gt;&gt;13)|0)+(kt&gt;&gt;&gt;26)|0,kt&amp;=67108863,n=Math.imul(B,U),i=(i=Math.imul(B,V))+Math.imul(N,U)|0,a=Math.imul(N,V),n=n+Math.imul(D,H)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(R,H)|0,a=a+Math.imul(R,G)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(z,W)|0,a=a+Math.imul(z,X)|0,n=n+Math.imul(C,J)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(L,J)|0,a=a+Math.imul(L,K)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(k,rt)|0,a=a+Math.imul(k,nt)|0,n=n+Math.imul(b,at)|0,i=(i=i+Math.imul(b,ot)|0)+Math.imul(_,at)|0,a=a+Math.imul(_,ot)|0,n=n+Math.imul(v,lt)|0,i=(i=i+Math.imul(v,ct)|0)+Math.imul(y,lt)|0,a=a+Math.imul(y,ct)|0,n=n+Math.imul(d,ft)|0,i=(i=i+Math.imul(d,ht)|0)+Math.imul(g,ft)|0,a=a+Math.imul(g,ht)|0;var Mt=(c+(n=n+Math.imul(f,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,gt)|0)+Math.imul(h,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Mt&gt;&gt;&gt;26)|0,Mt&amp;=67108863,n=Math.imul(B,H),i=(i=Math.imul(B,G))+Math.imul(N,H)|0,a=Math.imul(N,G),n=n+Math.imul(D,W)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(R,W)|0,a=a+Math.imul(R,X)|0,n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(z,J)|0,a=a+Math.imul(z,K)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(L,$)|0,a=a+Math.imul(L,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(S,rt)|0,a=a+Math.imul(S,nt)|0,n=n+Math.imul(T,at)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(k,at)|0,a=a+Math.imul(k,ot)|0,n=n+Math.imul(b,lt)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(_,lt)|0,a=a+Math.imul(_,ct)|0,n=n+Math.imul(v,ft)|0,i=(i=i+Math.imul(v,ht)|0)+Math.imul(y,ft)|0,a=a+Math.imul(y,ht)|0;var At=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(d,gt)|0)+Math.imul(g,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(g,gt)|0)+(i&gt;&gt;&gt;13)|0)+(At&gt;&gt;&gt;26)|0,At&amp;=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,X))+Math.imul(N,W)|0,a=Math.imul(N,X),n=n+Math.imul(D,J)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(R,J)|0,a=a+Math.imul(R,K)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(z,$)|0,a=a+Math.imul(z,tt)|0,n=n+Math.imul(C,rt)|0,i=(i=i+Math.imul(C,nt)|0)+Math.imul(L,rt)|0,a=a+Math.imul(L,nt)|0,n=n+Math.imul(A,at)|0,i=(i=i+Math.imul(A,ot)|0)+Math.imul(S,at)|0,a=a+Math.imul(S,ot)|0,n=n+Math.imul(T,lt)|0,i=(i=i+Math.imul(T,ct)|0)+Math.imul(k,lt)|0,a=a+Math.imul(k,ct)|0,n=n+Math.imul(b,ft)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(_,ft)|0,a=a+Math.imul(_,ht)|0;var St=(c+(n=n+Math.imul(v,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(v,gt)|0)+Math.imul(y,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(y,gt)|0)+(i&gt;&gt;&gt;13)|0)+(St&gt;&gt;&gt;26)|0,St&amp;=67108863,n=Math.imul(B,J),i=(i=Math.imul(B,K))+Math.imul(N,J)|0,a=Math.imul(N,K),n=n+Math.imul(D,$)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(z,rt)|0,a=a+Math.imul(z,nt)|0,n=n+Math.imul(C,at)|0,i=(i=i+Math.imul(C,ot)|0)+Math.imul(L,at)|0,a=a+Math.imul(L,ot)|0,n=n+Math.imul(A,lt)|0,i=(i=i+Math.imul(A,ct)|0)+Math.imul(S,lt)|0,a=a+Math.imul(S,ct)|0,n=n+Math.imul(T,ft)|0,i=(i=i+Math.imul(T,ht)|0)+Math.imul(k,ft)|0,a=a+Math.imul(k,ht)|0;var Et=(c+(n=n+Math.imul(b,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(b,gt)|0)+Math.imul(_,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(_,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Et&gt;&gt;&gt;26)|0,Et&amp;=67108863,n=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(N,$)|0,a=Math.imul(N,tt),n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(R,rt)|0,a=a+Math.imul(R,nt)|0,n=n+Math.imul(P,at)|0,i=(i=i+Math.imul(P,ot)|0)+Math.imul(z,at)|0,a=a+Math.imul(z,ot)|0,n=n+Math.imul(C,lt)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(L,lt)|0,a=a+Math.imul(L,ct)|0,n=n+Math.imul(A,ft)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(S,ft)|0,a=a+Math.imul(S,ht)|0;var Ct=(c+(n=n+Math.imul(T,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(T,gt)|0)+Math.imul(k,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(k,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Ct&gt;&gt;&gt;26)|0,Ct&amp;=67108863,n=Math.imul(B,rt),i=(i=Math.imul(B,nt))+Math.imul(N,rt)|0,a=Math.imul(N,nt),n=n+Math.imul(D,at)|0,i=(i=i+Math.imul(D,ot)|0)+Math.imul(R,at)|0,a=a+Math.imul(R,ot)|0,n=n+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(z,lt)|0,a=a+Math.imul(z,ct)|0,n=n+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,ht)|0)+Math.imul(L,ft)|0,a=a+Math.imul(L,ht)|0;var Lt=(c+(n=n+Math.imul(A,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(A,gt)|0)+Math.imul(S,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(S,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Lt&gt;&gt;&gt;26)|0,Lt&amp;=67108863,n=Math.imul(B,at),i=(i=Math.imul(B,ot))+Math.imul(N,at)|0,a=Math.imul(N,ot),n=n+Math.imul(D,lt)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(R,lt)|0,a=a+Math.imul(R,ct)|0,n=n+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(z,ft)|0,a=a+Math.imul(z,ht)|0;var It=(c+(n=n+Math.imul(C,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(C,gt)|0)+Math.imul(L,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(L,gt)|0)+(i&gt;&gt;&gt;13)|0)+(It&gt;&gt;&gt;26)|0,It&amp;=67108863,n=Math.imul(B,lt),i=(i=Math.imul(B,ct))+Math.imul(N,lt)|0,a=Math.imul(N,ct),n=n+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(R,ft)|0,a=a+Math.imul(R,ht)|0;var Pt=(c+(n=n+Math.imul(P,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(P,gt)|0)+Math.imul(z,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(z,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Pt&gt;&gt;&gt;26)|0,Pt&amp;=67108863,n=Math.imul(B,ft),i=(i=Math.imul(B,ht))+Math.imul(N,ft)|0,a=Math.imul(N,ht);var zt=(c+(n=n+Math.imul(D,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(D,gt)|0)+Math.imul(R,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(R,gt)|0)+(i&gt;&gt;&gt;13)|0)+(zt&gt;&gt;&gt;26)|0,zt&amp;=67108863;var Ot=(c+(n=Math.imul(B,dt))|0)+((8191&amp;(i=(i=Math.imul(B,gt))+Math.imul(N,dt)|0))&lt;&lt;13)|0;return c=((a=Math.imul(N,gt))+(i&gt;&gt;&gt;13)|0)+(Ot&gt;&gt;&gt;26)|0,Ot&amp;=67108863,l[0]=mt,l[1]=vt,l[2]=yt,l[3]=xt,l[4]=bt,l[5]=_t,l[6]=wt,l[7]=Tt,l[8]=kt,l[9]=Mt,l[10]=At,l[11]=St,l[12]=Et,l[13]=Ct,l[14]=Lt,l[15]=It,l[16]=Pt,l[17]=zt,l[18]=Ot,0!==c&amp;&amp;(l[19]=c,r.length++),r};function d(t,e,r){return(new g).mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=h),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&amp;&amp;10===t.length?p(this,t,e):r&lt;63?h(this,t,e):r&lt;1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,a=0;a&lt;r.length-1;a++){var o=i;i=0;for(var s=67108863&amp;n,l=Math.min(a,e.length-1),c=Math.max(0,a-t.length+1);c&lt;=l;c++){var u=a-c,f=(0|t.words[u])*(0|e.words[c]),h=67108863&amp;f;s=67108863&amp;(h=h+s|0),i+=(o=(o=o+(f/67108864|0)|0)+(h&gt;&gt;&gt;26)|0)&gt;&gt;&gt;26,o&amp;=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,t,e):d(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n&lt;t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i&lt;e;i++)n|=(1&amp;t)&lt;&lt;e-i-1,t&gt;&gt;=1;return n},g.prototype.permute=function(t,e,r,n,i,a){for(var o=0;o&lt;a;o++)n[o]=e[t[o]],i[o]=r[t[o]]},g.prototype.transform=function(t,e,r,n,i,a){this.permute(a,t,e,r,n,i);for(var o=1;o&lt;i;o&lt;&lt;=1)for(var s=o&lt;&lt;1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u&lt;i;u+=s)for(var f=l,h=c,p=0;p&lt;o;p++){var d=r[u+p],g=n[u+p],m=r[u+p+o],v=n[u+p+o],y=f*m-h*v;v=f*v+h*m,m=y,r[u+p]=d+m,n[u+p]=g+v,r[u+p+o]=d-m,n[u+p+o]=g-v,p!==s&amp;&amp;(y=l*f-c*h,h=l*h+c*f,f=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&amp;r,i=0;for(r=r/2|0;r;r&gt;&gt;&gt;=1)i++;return 1&lt;&lt;i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r&lt;=1))for(var n=0;n&lt;r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n&lt;e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&amp;i,r=i&lt;67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var a=0,o=0;o&lt;e;o++)a+=0|t[o],r[2*o]=8191&amp;a,a&gt;&gt;&gt;=13,r[2*o+1]=8191&amp;a,a&gt;&gt;&gt;=13;for(o=2*e;o&lt;i;++o)r[o]=0;n(0===a),n(0==(-8192&amp;a))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,c,n),this.transform(o,a,s,l,n,i),this.transform(c,a,u,f,n,i);for(var p=0;p&lt;n;p++){var d=s[p]*u[p]-l[p]*f[p];l[p]=s[p]*f[p]+l[p]*u[p],s[p]=d}return this.conjugate(s,l,n),this.transform(s,l,h,a,n,i),this.conjugate(h,a,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},a.prototype.mul=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},a.prototype.mulf=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),d(this,t,e)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){n(&quot;number&quot;==typeof t),n(t&lt;67108864);for(var e=0,r=0;r&lt;this.length;r++){var i=(0|this.words[r])*t,a=(67108863&amp;i)+(67108863&amp;e);e&gt;&gt;=26,e+=i/67108864|0,e+=a&gt;&gt;&gt;26,this.words[r]=67108863&amp;a}return 0!==e&amp;&amp;(this.words[r]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r&lt;e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&amp;1&lt;&lt;i)&gt;&gt;&gt;i}return e}(t);if(0===e.length)return new a(1);for(var r=this,n=0;n&lt;e.length&amp;&amp;0===e[n];n++,r=r.sqr());if(++n&lt;e.length)for(var i=r.sqr();n&lt;e.length;n++,i=i.sqr())0!==e[n]&amp;&amp;(r=r.mul(i));return r},a.prototype.iushln=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e,r=t%26,i=(t-r)/26,a=67108863&gt;&gt;&gt;26-r&lt;&lt;26-r;if(0!==r){var o=0;for(e=0;e&lt;this.length;e++){var s=this.words[e]&amp;a,l=(0|this.words[e])-s&lt;&lt;r;this.words[e]=l|o,o=s&gt;&gt;&gt;26-r}o&amp;&amp;(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e&gt;=0;e--)this.words[e+i]=this.words[e];for(e=0;e&lt;i;e++)this.words[e]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,e,r){var i;n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0),i=e?(e-e%26)/26:0;var a=t%26,o=Math.min((t-a)/26,this.length),s=67108863^67108863&gt;&gt;&gt;a&lt;&lt;a,l=r;if(i-=o,i=Math.max(0,i),l){for(var c=0;c&lt;o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length&gt;o)for(this.length-=o,c=0;c&lt;this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c&gt;=0&amp;&amp;(0!==u||c&gt;=i);c--){var f=0|this.words[c];this.words[c]=u&lt;&lt;26-a|f&gt;&gt;&gt;a,u=f&amp;s}return l&amp;&amp;0!==u&amp;&amp;(l.words[l.length++]=u),0===this.length&amp;&amp;(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=t%26,r=(t-e)/26,i=1&lt;&lt;e;return!(this.length&lt;=r)&amp;&amp;!!(this.words[r]&amp;i)},a.prototype.imaskn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,&quot;imaskn works only with positive numbers&quot;),this.length&lt;=r)return this;if(0!==e&amp;&amp;r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863&gt;&gt;&gt;e&lt;&lt;e;this.words[this.length-1]&amp;=i}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return n(&quot;number&quot;==typeof t),n(t&lt;67108864),t&lt;0?this.isubn(-t):0!==this.negative?1===this.length&amp;&amp;(0|this.words[0])&lt;t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e&lt;this.length&amp;&amp;this.words[e]&gt;=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(n(&quot;number&quot;==typeof t),n(t&lt;67108864),t&lt;0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&amp;&amp;this.words[0]&lt;0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e&lt;this.length&amp;&amp;this.words[e]&lt;0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,e,r){var i,a,o=t.length+r;this._expand(o);var s=0;for(i=0;i&lt;t.length;i++){a=(0|this.words[i+r])+s;var l=(0|t.words[i])*e;s=((a-=67108863&amp;l)&gt;&gt;26)-(l/67108864|0),this.words[i+r]=67108863&amp;a}for(;i&lt;this.length-r;i++)s=(a=(0|this.words[i+r])+s)&gt;&gt;26,this.words[i+r]=67108863&amp;a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i&lt;this.length;i++)s=(a=-(0|this.words[i])+s)&gt;&gt;26,this.words[i]=67108863&amp;a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&amp;&amp;(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,l=n.length-i.length;if(&quot;mod&quot;!==e){(s=new a(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c&lt;s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(i,1,l);0===u.negative&amp;&amp;(n=u,s&amp;&amp;(s.words[l]=1));for(var f=l-1;f&gt;=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&amp;&amp;(s.words[f]=h)}return s&amp;&amp;s.strip(),n.strip(),&quot;div&quot;!==e&amp;&amp;0!==r&amp;&amp;n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&amp;&amp;0===t.negative?(s=this.neg().divmod(t,e),&quot;mod&quot;!==e&amp;&amp;(i=s.div.neg()),&quot;div&quot;!==e&amp;&amp;(o=s.mod.neg(),r&amp;&amp;0!==o.negative&amp;&amp;o.iadd(t)),{div:i,mod:o}):0===this.negative&amp;&amp;0!==t.negative?(s=this.divmod(t.neg(),e),&quot;mod&quot;!==e&amp;&amp;(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&amp;t.negative)?(s=this.neg().divmod(t.neg(),e),&quot;div&quot;!==e&amp;&amp;(o=s.mod.neg(),r&amp;&amp;0!==o.negative&amp;&amp;o.isub(t)),{div:s.div,mod:o}):t.length&gt;this.length||this.cmp(t)&lt;0?{div:new a(0),mod:this}:1===t.length?&quot;div&quot;===e?{div:this.divn(t.words[0]),mod:null}:&quot;mod&quot;===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,s},a.prototype.div=function(t){return this.divmod(t,&quot;div&quot;,!1).div},a.prototype.mod=function(t){return this.divmod(t,&quot;mod&quot;,!1).mod},a.prototype.umod=function(t){return this.divmod(t,&quot;mod&quot;,!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),a=r.cmp(n);return a&lt;0||1===i&amp;&amp;0===a?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){n(t&lt;=67108863);for(var e=(1&lt;&lt;26)%t,r=0,i=this.length-1;i&gt;=0;i--)r=(e*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){n(t&lt;=67108863);for(var e=0,r=this.length-1;r&gt;=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new a(1),o=new a(0),s=new a(0),l=new a(1),c=0;e.isEven()&amp;&amp;r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),f=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&amp;p)&amp;&amp;h&lt;26;++h,p&lt;&lt;=1);if(h&gt;0)for(e.iushrn(h);h-- &gt;0;)(i.isOdd()||o.isOdd())&amp;&amp;(i.iadd(u),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var d=0,g=1;0==(r.words[0]&amp;g)&amp;&amp;d&lt;26;++d,g&lt;&lt;=1);if(d&gt;0)for(r.iushrn(d);d-- &gt;0;)(s.isOdd()||l.isOdd())&amp;&amp;(s.iadd(u),l.isub(f)),s.iushrn(1),l.iushrn(1);e.cmp(r)&gt;=0?(e.isub(r),i.isub(s),o.isub(l)):(r.isub(e),s.isub(i),l.isub(o))}return{a:s,b:l,gcd:r.iushln(c)}},a.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new a(1),s=new a(0),l=r.clone();e.cmpn(1)&gt;0&amp;&amp;r.cmpn(1)&gt;0;){for(var c=0,u=1;0==(e.words[0]&amp;u)&amp;&amp;c&lt;26;++c,u&lt;&lt;=1);if(c&gt;0)for(e.iushrn(c);c-- &gt;0;)o.isOdd()&amp;&amp;o.iadd(l),o.iushrn(1);for(var f=0,h=1;0==(r.words[0]&amp;h)&amp;&amp;f&lt;26;++f,h&lt;&lt;=1);if(f&gt;0)for(r.iushrn(f);f-- &gt;0;)s.isOdd()&amp;&amp;s.iadd(l),s.iushrn(1);e.cmp(r)&gt;=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(i=0===e.cmpn(1)?o:s).cmpn(0)&lt;0&amp;&amp;i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&amp;&amp;r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i&lt;0){var a=e;e=r,r=a}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&amp;this.words[0])},a.prototype.isOdd=function(){return 1==(1&amp;this.words[0])},a.prototype.andln=function(t){return this.words[0]&amp;t},a.prototype.bincn=function(t){n(&quot;number&quot;==typeof t);var e=t%26,r=(t-e)/26,i=1&lt;&lt;e;if(this.length&lt;=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&amp;&amp;o&lt;this.length;o++){var s=0|this.words[o];a=(s+=a)&gt;&gt;&gt;26,s&amp;=67108863,this.words[o]=s}return 0!==a&amp;&amp;(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&amp;&amp;0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t&lt;0;if(0!==this.negative&amp;&amp;!r)return-1;if(0===this.negative&amp;&amp;r)return 1;if(this.strip(),this.length&gt;1)e=1;else{r&amp;&amp;(t=-t),n(t&lt;=67108863,&quot;Number is too big&quot;);var i=0|this.words[0];e=i===t?0:i&lt;t?-1:1}return 0!==this.negative?0|-e:e},a.prototype.cmp=function(t){if(0!==this.negative&amp;&amp;0===t.negative)return-1;if(0===this.negative&amp;&amp;0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},a.prototype.ucmp=function(t){if(this.length&gt;t.length)return 1;if(this.length&lt;t.length)return-1;for(var e=0,r=this.length-1;r&gt;=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n&lt;i?e=-1:n&gt;i&amp;&amp;(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)&gt;=0},a.prototype.gte=function(t){return this.cmp(t)&gt;=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)&lt;=0},a.prototype.lte=function(t){return this.cmp(t)&lt;=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new w(t)},a.prototype.toRed=function(t){return n(!this.red,&quot;Already a number in reduction context&quot;),n(0===this.negative,&quot;red works only with positives&quot;),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return n(this.red,&quot;fromRed works only with numbers in reduction context&quot;),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return n(!this.red,&quot;Already a number in reduction context&quot;),this._forceRed(t)},a.prototype.redAdd=function(t){return n(this.red,&quot;redAdd works only with red numbers&quot;),this.red.add(this,t)},a.prototype.redIAdd=function(t){return n(this.red,&quot;redIAdd works only with red numbers&quot;),this.red.iadd(this,t)},a.prototype.redSub=function(t){return n(this.red,&quot;redSub works only with red numbers&quot;),this.red.sub(this,t)},a.prototype.redISub=function(t){return n(this.red,&quot;redISub works only with red numbers&quot;),this.red.isub(this,t)},a.prototype.redShl=function(t){return n(this.red,&quot;redShl works only with red numbers&quot;),this.red.shl(this,t)},a.prototype.redMul=function(t){return n(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return n(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return n(this.red,&quot;redSqr works only with red numbers&quot;),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,&quot;redISqr works only with red numbers&quot;),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,&quot;redSqrt works only with red numbers&quot;),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,&quot;redInvm works only with red numbers&quot;),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,&quot;redNeg works only with red numbers&quot;),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return n(this.red&amp;&amp;!t.red,&quot;redPow(normalNum)&quot;),this.red._verify1(this),this.red.pow(this,t)};var m={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,&quot;k256&quot;,&quot;ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f&quot;)}function x(){v.call(this,&quot;p224&quot;,&quot;ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001&quot;)}function b(){v.call(this,&quot;p192&quot;,&quot;ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff&quot;)}function _(){v.call(this,&quot;25519&quot;,&quot;7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed&quot;)}function w(t){if(&quot;string&quot;==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),&quot;modulus must be greater than 1&quot;),this.m=t,this.prime=null}function T(t){w.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&amp;&amp;(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e&gt;this.n);var n=e&lt;this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n&gt;0?r.isub(this.p):r.strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(y,v),y.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n&lt;r;n++)e.words[n]=t.words[n];if(e.length=r,t.length&lt;=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&amp;i,n=10;n&lt;t.length;n++){var a=0|t.words[n];t.words[n-10]=(4194303&amp;a)&lt;&lt;4|i&gt;&gt;&gt;22,i=a}i&gt;&gt;&gt;=22,t.words[n-10]=i,0===i&amp;&amp;t.length&gt;10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r&lt;t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&amp;e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&amp;&amp;(t.length--,0===t.words[t.length-1]&amp;&amp;t.length--),t},i(x,v),i(b,v),i(_,v),_.prototype.imulK=function(t){for(var e=0,r=0;r&lt;t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&amp;n;n&gt;&gt;&gt;=26,t.words[r]=i,e=n}return 0!==e&amp;&amp;(t.words[t.length++]=e),t},a._prime=function(t){if(m[t])return m[t];var e;if(&quot;k256&quot;===t)e=new y;else if(&quot;p224&quot;===t)e=new x;else if(&quot;p192&quot;===t)e=new b;else{if(&quot;p25519&quot;!==t)throw new Error(&quot;Unknown prime &quot;+t);e=new _}return m[t]=e,e},w.prototype._verify1=function(t){n(0===t.negative,&quot;red works only with positives&quot;),n(t.red,&quot;red works only with red numbers&quot;)},w.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),&quot;red works only with positives&quot;),n(t.red&amp;&amp;t.red===e.red,&quot;red works only with red numbers&quot;)},w.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)&gt;=0&amp;&amp;r.isub(this.m),r._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)&gt;=0&amp;&amp;r.isub(this.m),r},w.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)&lt;0&amp;&amp;r.iadd(this.m),r._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)&lt;0&amp;&amp;r.iadd(this.m),r},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&amp;&amp;0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var f=this.pow(u,i),h=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),d=o;0!==p.cmp(s);){for(var g=p,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m&lt;d);var v=this.pow(f,new a(1).iushln(d-m-1));h=h.redMul(v),f=v.redSqr(),p=p.redMul(f),d=m}return h},w.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},w.prototype.pow=function(t,e){if(e.isZero())return new a(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=t;for(var n=2;n&lt;r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,s=0,l=e.bitLength()%26;for(0===l&amp;&amp;(l=26),n=e.length-1;n&gt;=0;n--){for(var c=e.words[n],u=l-1;u&gt;=0;u--){var f=c&gt;&gt;u&amp;1;i!==r[0]&amp;&amp;(i=this.sqr(i)),0!==f||0!==o?(o&lt;&lt;=1,o|=f,(4===++s||0===n&amp;&amp;0===u)&amp;&amp;(i=this.mul(i,r[o]),s=0,o=0)):s=0}l=26}return i},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new T(t)},i(T,w),T.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},T.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},T.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)&gt;=0?a=i.isub(this.m):i.cmpn(0)&lt;0&amp;&amp;(a=i.iadd(this.m)),a._forceRed(this)},T.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)&gt;=0?o=i.isub(this.m):i.cmpn(0)&lt;0&amp;&amp;(o=i.iadd(this.m)),o._forceRed(this)},T.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(&quot;undefined&quot;==typeof e||e,this)},{buffer:108}],100:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e,r,n,i=t.length,a=0;for(e=0;e&lt;i;++e)a+=t[e].length;var o=new Array(a),s=0;for(e=0;e&lt;i;++e){var l=t[e],c=l.length;for(r=0;r&lt;c;++r){var u=o[s++]=new Array(c-1),f=0;for(n=0;n&lt;c;++n)n!==r&amp;&amp;(u[f++]=l[n]);if(1&amp;r){var h=u[1];u[1]=u[0],u[0]=h}}}return o}},{}],101:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){switch(arguments.length){case 1:return f(t);case 2:return&quot;function&quot;==typeof e?c(t,t,e,!0):h(t,e);case 3:return c(t,e,r,!1);default:throw new Error(&quot;box-intersect: Invalid arguments&quot;)}};var n,i=t(&quot;typedarray-pool&quot;),a=t(&quot;./lib/sweep&quot;),o=t(&quot;./lib/intersect&quot;);function s(t,e){for(var r=0;r&lt;t;++r)if(!(e[r]&lt;=e[r+t]))return!0;return!1}function l(t,e,r,n){for(var i=0,a=0,o=0,l=t.length;o&lt;l;++o){var c=t[o];if(!s(e,c)){for(var u=0;u&lt;2*e;++u)r[i++]=c[u];n[a++]=o}}return a}function c(t,e,r,n){var s=t.length,c=e.length;if(!(s&lt;=0||c&lt;=0)){var u=t[0].length&gt;&gt;&gt;1;if(!(u&lt;=0)){var f,h=i.mallocDouble(2*u*s),p=i.mallocInt32(s);if((s=l(t,u,h,p))&gt;0){if(1===u&amp;&amp;n)a.init(s),f=a.sweepComplete(u,r,0,s,h,p,0,s,h,p);else{var d=i.mallocDouble(2*u*c),g=i.mallocInt32(c);(c=l(e,u,d,g))&gt;0&amp;&amp;(a.init(s+c),f=1===u?a.sweepBipartite(u,r,0,s,h,p,0,c,d,g):o(u,r,n,s,h,p,c,d,g),i.free(d),i.free(g))}i.free(h),i.free(p)}return f}}}function u(t,e){n.push([t,e])}function f(t){return n=[],c(t,t,u,!0),n}function h(t,e){return n=[],c(t,e,u,!1),n}},{&quot;./lib/intersect&quot;:103,&quot;./lib/sweep&quot;:107,&quot;typedarray-pool&quot;:595}],102:[function(t,e,r){&quot;use strict&quot;;var n=[&quot;d&quot;,&quot;ax&quot;,&quot;vv&quot;,&quot;rs&quot;,&quot;re&quot;,&quot;rb&quot;,&quot;ri&quot;,&quot;bs&quot;,&quot;be&quot;,&quot;bb&quot;,&quot;bi&quot;];function i(t){var e=&quot;bruteForce&quot;+(t?&quot;Full&quot;:&quot;Partial&quot;),r=[],i=n.slice();t||i.splice(3,0,&quot;fp&quot;);var a=[&quot;function &quot;+e+&quot;(&quot;+i.join()+&quot;){&quot;];function o(e,i){var o=function(t,e,r){var i=&quot;bruteForce&quot;+(t?&quot;Red&quot;:&quot;Blue&quot;)+(e?&quot;Flip&quot;:&quot;&quot;)+(r?&quot;Full&quot;:&quot;&quot;),a=[&quot;function &quot;,i,&quot;(&quot;,n.join(),&quot;){&quot;,&quot;var &quot;,&quot;es&quot;,&quot;=2*&quot;,&quot;d&quot;,&quot;;&quot;],o=&quot;for(var i=rs,rp=es*rs;i&lt;re;++i,rp+=es){var x0=rb[ax+rp],x1=rb[ax+rp+d],xi=ri[i];&quot;,s=&quot;for(var j=bs,bp=es*bs;j&lt;be;++j,bp+=es){var y0=bb[ax+bp],&quot;+(r?&quot;y1=bb[ax+bp+d],&quot;:&quot;&quot;)+&quot;yi=bi[j];&quot;;return t?a.push(o,&quot;Q&quot;,&quot;:&quot;,s):a.push(s,&quot;Q&quot;,&quot;:&quot;,o),r?a.push(&quot;if(y1&lt;x0||x1&lt;y0)continue;&quot;):e?a.push(&quot;if(y0&lt;=x0||x1&lt;y0)continue;&quot;):a.push(&quot;if(y0&lt;x0||x1&lt;y0)continue;&quot;),a.push(&quot;for(var k=ax+1;k&lt;d;++k){var r0=rb[k+rp],r1=rb[k+d+rp],b0=bb[k+bp],b1=bb[k+d+bp];if(r1&lt;b0||b1&lt;r0)continue Q;}var rv=vv(&quot;),e?a.push(&quot;yi,xi&quot;):a.push(&quot;xi,yi&quot;),a.push(&quot;);if(rv!==void 0)return rv;}}}&quot;),{name:i,code:a.join(&quot;&quot;)}}(e,i,t);r.push(o.code),a.push(&quot;return &quot;+o.name+&quot;(&quot;+n.join()+&quot;);&quot;)}a.push(&quot;if(re-rs&gt;be-bs){&quot;),t?(o(!0,!1),a.push(&quot;}else{&quot;),o(!1,!1)):(a.push(&quot;if(fp){&quot;),o(!0,!0),a.push(&quot;}else{&quot;),o(!0,!1),a.push(&quot;}}else{if(fp){&quot;),o(!1,!0),a.push(&quot;}else{&quot;),o(!1,!1),a.push(&quot;}&quot;)),a.push(&quot;}}return &quot;+e);var s=r.join(&quot;&quot;)+a.join(&quot;&quot;);return new Function(s)()}r.partial=i(!1),r.full=i(!0)},{}],103:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,u,w,T,k,M){!function(t,e){var r=8*i.log2(e+1)*(t+1)|0,a=i.nextPow2(6*r);v.length&lt;a&amp;&amp;(n.free(v),v=n.mallocInt32(a));var o=i.nextPow2(2*r);y.length&lt;o&amp;&amp;(n.free(y),y=n.mallocDouble(o))}(t,a+T);var A,S=0,E=2*t;x(S++,0,0,a,0,T,r?16:0,-1/0,1/0),r||x(S++,0,0,T,0,a,1,-1/0,1/0);for(;S&gt;0;){var C=6*(S-=1),L=v[C],I=v[C+1],P=v[C+2],z=v[C+3],O=v[C+4],D=v[C+5],R=2*S,F=y[R],B=y[R+1],N=1&amp;D,j=!!(16&amp;D),U=u,V=w,q=k,H=M;if(N&amp;&amp;(U=k,V=M,q=u,H=w),!(2&amp;D&amp;&amp;(P=p(t,L,I,P,U,V,B),I&gt;=P)||4&amp;D&amp;&amp;(I=d(t,L,I,P,U,V,F))&gt;=P)){var G=P-I,Y=O-z;if(j){if(t*G*(G+Y)&lt;1&lt;&lt;22){if(void 0!==(A=l.scanComplete(t,L,e,I,P,U,V,z,O,q,H)))return A;continue}}else{if(t*Math.min(G,Y)&lt;128){if(void 0!==(A=o(t,L,e,N,I,P,U,V,z,O,q,H)))return A;continue}if(t*G*Y&lt;1&lt;&lt;22){if(void 0!==(A=l.scanBipartite(t,L,e,N,I,P,U,V,z,O,q,H)))return A;continue}}var W=f(t,L,I,P,U,V,F,B);if(I&lt;W)if(t*(W-I)&lt;128){if(void 0!==(A=s(t,L+1,e,I,W,U,V,z,O,q,H)))return A}else if(L===t-2){if(void 0!==(A=N?l.sweepBipartite(t,e,z,O,q,H,I,W,U,V):l.sweepBipartite(t,e,I,W,U,V,z,O,q,H)))return A}else x(S++,L+1,I,W,z,O,N,-1/0,1/0),x(S++,L+1,z,O,I,W,1^N,-1/0,1/0);if(W&lt;P){var X=c(t,L,z,O,q,H),Z=q[E*X+L],J=h(t,L,X,O,q,H,Z);if(J&lt;O&amp;&amp;x(S++,L,W,P,J,O,(4|N)+(j?16:0),Z,B),z&lt;X&amp;&amp;x(S++,L,W,P,z,X,(2|N)+(j?16:0),F,Z),X+1===J){if(void 0!==(A=j?_(t,L,e,W,P,U,V,X,q,H[X]):b(t,L,e,N,W,P,U,V,X,q,H[X])))return A}else if(X&lt;J){var K;if(j){if(K=g(t,L,W,P,U,V,Z),W&lt;K){var Q=h(t,L,W,K,U,V,Z);if(L===t-2){if(W&lt;Q&amp;&amp;void 0!==(A=l.sweepComplete(t,e,W,Q,U,V,X,J,q,H)))return A;if(Q&lt;K&amp;&amp;void 0!==(A=l.sweepBipartite(t,e,Q,K,U,V,X,J,q,H)))return A}else W&lt;Q&amp;&amp;x(S++,L+1,W,Q,X,J,16,-1/0,1/0),Q&lt;K&amp;&amp;(x(S++,L+1,Q,K,X,J,0,-1/0,1/0),x(S++,L+1,X,J,Q,K,1,-1/0,1/0))}}else K=N?m(t,L,W,P,U,V,Z):g(t,L,W,P,U,V,Z),W&lt;K&amp;&amp;(L===t-2?A=N?l.sweepBipartite(t,e,X,J,q,H,W,K,U,V):l.sweepBipartite(t,e,W,K,U,V,X,J,q,H):(x(S++,L+1,W,K,X,J,N,-1/0,1/0),x(S++,L+1,X,J,W,K,1^N,-1/0,1/0)))}}}}};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;bit-twiddle&quot;),a=t(&quot;./brute&quot;),o=a.partial,s=a.full,l=t(&quot;./sweep&quot;),c=t(&quot;./median&quot;),u=t(&quot;./partition&quot;),f=u(&quot;!(lo&gt;=p0)&amp;&amp;!(p1&gt;=hi)&quot;,[&quot;p0&quot;,&quot;p1&quot;]),h=u(&quot;lo===p0&quot;,[&quot;p0&quot;]),p=u(&quot;lo&lt;p0&quot;,[&quot;p0&quot;]),d=u(&quot;hi&lt;=p0&quot;,[&quot;p0&quot;]),g=u(&quot;lo&lt;=p0&amp;&amp;p0&lt;=hi&quot;,[&quot;p0&quot;]),m=u(&quot;lo&lt;p0&amp;&amp;p0&lt;=hi&quot;,[&quot;p0&quot;]),v=n.mallocInt32(1024),y=n.mallocDouble(1024);function x(t,e,r,n,i,a,o,s,l){var c=6*t;v[c]=e,v[c+1]=r,v[c+2]=n,v[c+3]=i,v[c+4]=a,v[c+5]=o;var u=2*t;y[u]=s,y[u+1]=l}function b(t,e,r,n,i,a,o,s,l,c,u){var f=2*t,h=l*f,p=c[h+e];t:for(var d=i,g=i*f;d&lt;a;++d,g+=f){var m=o[g+e],v=o[g+e+t];if(!(p&lt;m||v&lt;p)&amp;&amp;(!n||p!==m)){for(var y,x=s[d],b=e+1;b&lt;t;++b){m=o[g+b],v=o[g+b+t];var _=c[h+b],w=c[h+b+t];if(v&lt;_||w&lt;m)continue t}if(void 0!==(y=n?r(u,x):r(x,u)))return y}}}function _(t,e,r,n,i,a,o,s,l,c){var u=2*t,f=s*u,h=l[f+e];t:for(var p=n,d=n*u;p&lt;i;++p,d+=u){var g=o[p];if(g!==c){var m=a[d+e],v=a[d+e+t];if(!(h&lt;m||v&lt;h)){for(var y=e+1;y&lt;t;++y){m=a[d+y],v=a[d+y+t];var x=l[f+y],b=l[f+y+t];if(v&lt;x||b&lt;m)continue t}var _=r(g,c);if(void 0!==_)return _}}}}},{&quot;./brute&quot;:102,&quot;./median&quot;:104,&quot;./partition&quot;:105,&quot;./sweep&quot;:107,&quot;bit-twiddle&quot;:97,&quot;typedarray-pool&quot;:595}],104:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,o,s){if(a&lt;=r+1)return r;var l=r,c=a,u=a+r&gt;&gt;&gt;1,f=2*t,h=u,p=o[f*u+e];for(;l&lt;c;){if(c-l&lt;8){i(t,e,l,c,o,s),p=o[f*u+e];break}var d=c-l,g=Math.random()*d+l|0,m=o[f*g+e],v=Math.random()*d+l|0,y=o[f*v+e],x=Math.random()*d+l|0,b=o[f*x+e];m&lt;=y?b&gt;=y?(h=v,p=y):m&gt;=b?(h=g,p=m):(h=x,p=b):y&gt;=b?(h=v,p=y):b&gt;=m?(h=g,p=m):(h=x,p=b);for(var _=f*(c-1),w=f*h,T=0;T&lt;f;++T,++_,++w){var k=o[_];o[_]=o[w],o[w]=k}var M=s[c-1];s[c-1]=s[h],s[h]=M,h=n(t,e,l,c-1,o,s,p);for(_=f*(c-1),w=f*h,T=0;T&lt;f;++T,++_,++w){k=o[_];o[_]=o[w],o[w]=k}M=s[c-1];if(s[c-1]=s[h],s[h]=M,u&lt;h){for(c=h-1;l&lt;c&amp;&amp;o[f*(c-1)+e]===p;)c-=1;c+=1}else{if(!(h&lt;u))break;for(l=h+1;l&lt;c&amp;&amp;o[f*l+e]===p;)l+=1}}return n(t,e,r,u,o,s,o[f*u+e])};var n=t(&quot;./partition&quot;)(&quot;lo&lt;p0&quot;,[&quot;p0&quot;]);function i(t,e,r,n,i,a){for(var o=2*t,s=o*(r+1)+e,l=r+1;l&lt;n;++l,s+=o)for(var c=i[s],u=l,f=o*(l-1);u&gt;r&amp;&amp;i[f+e]&gt;c;--u,f-=o){for(var h=f,p=f+o,d=0;d&lt;o;++d,++h,++p){var g=i[h];i[h]=i[p],i[p]=g}var m=a[u];a[u]=a[u-1],a[u-1]=m}}},{&quot;./partition&quot;:105}],105:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=&quot;abcdef&quot;.split(&quot;&quot;).concat(e),n=[];t.indexOf(&quot;lo&quot;)&gt;=0&amp;&amp;n.push(&quot;lo=e[k+n]&quot;);t.indexOf(&quot;hi&quot;)&gt;=0&amp;&amp;n.push(&quot;hi=e[k+o]&quot;);return r.push(&quot;for(var j=2*a,k=j*c,l=k,m=c,n=b,o=a+b,p=c;d&gt;p;++p,k+=j){var _;if($)if(m===p)m+=1,l+=j;else{for(var s=0;j&gt;s;++s){var t=e[k+s];e[k+s]=e[l],e[l++]=t}var u=f[p];f[p]=f[m],f[m++]=u}}return m&quot;.replace(&quot;_&quot;,n.join()).replace(&quot;$&quot;,t)),Function.apply(void 0,r)}},{}],106:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e&lt;=128?n(0,e-1,t):function t(e,r,u){var f=(r-e+1)/6|0,h=e+f,p=r-f,d=e+r&gt;&gt;1,g=d-f,m=d+f,v=h,y=g,x=d,b=m,_=p,w=e+1,T=r-1,k=0;l(v,y,u)&amp;&amp;(k=v,v=y,y=k);l(b,_,u)&amp;&amp;(k=b,b=_,_=k);l(v,x,u)&amp;&amp;(k=v,v=x,x=k);l(y,x,u)&amp;&amp;(k=y,y=x,x=k);l(v,b,u)&amp;&amp;(k=v,v=b,b=k);l(x,b,u)&amp;&amp;(k=x,x=b,b=k);l(y,_,u)&amp;&amp;(k=y,y=_,_=k);l(y,x,u)&amp;&amp;(k=y,y=x,x=k);l(b,_,u)&amp;&amp;(k=b,b=_,_=k);for(var M=u[2*y],A=u[2*y+1],S=u[2*b],E=u[2*b+1],C=2*v,L=2*x,I=2*_,P=2*h,z=2*d,O=2*p,D=0;D&lt;2;++D){var R=u[C+D],F=u[L+D],B=u[I+D];u[P+D]=R,u[z+D]=F,u[O+D]=B}a(g,e,u),a(m,r,u);for(var N=w;N&lt;=T;++N)if(c(N,M,A,u))N!==w&amp;&amp;i(N,w,u),++w;else if(!c(N,S,E,u))for(;;){if(c(T,S,E,u)){c(T,M,A,u)?(o(N,w,T,u),++w,--T):(i(N,T,u),--T);break}if(--T&lt;N)break}s(e,w-1,M,A,u),s(r,T+1,S,E,u),w-2-e&lt;=32?n(e,w-2,u):t(e,w-2,u);r-(T+2)&lt;=32?n(T+2,r,u):t(T+2,r,u);T-w&lt;=32?n(w,T,u):t(w,T,u)}(0,e-1,t)};function n(t,e,r){for(var n=2*(t+1),i=t+1;i&lt;=e;++i){for(var a=r[n++],o=r[n++],s=i,l=n-2;s-- &gt;t;){var c=r[l-2],u=r[l-1];if(c&lt;a)break;if(c===a&amp;&amp;u&lt;o)break;r[l]=c,r[l+1]=u,l-=2}r[l]=a,r[l+1]=o}}function i(t,e,r){e*=2;var n=r[t*=2],i=r[t+1];r[t]=r[e],r[t+1]=r[e+1],r[e]=n,r[e+1]=i}function a(t,e,r){e*=2,r[t*=2]=r[e],r[t+1]=r[e+1]}function o(t,e,r,n){e*=2,r*=2;var i=n[t*=2],a=n[t+1];n[t]=n[e],n[t+1]=n[e+1],n[e]=n[r],n[e+1]=n[r+1],n[r]=i,n[r+1]=a}function s(t,e,r,n,i){e*=2,i[t*=2]=i[e],i[e]=r,i[t+1]=i[e+1],i[e+1]=n}function l(t,e,r){e*=2;var n=r[t*=2],i=r[e];return!(n&lt;i)&amp;&amp;(n!==i||r[t+1]&gt;r[e+1])}function c(t,e,r,n){var i=n[t*=2];return i&lt;e||i===e&amp;&amp;n[t+1]&lt;r}},{}],107:[function(t,e,r){&quot;use strict&quot;;e.exports={init:function(t){var e=i.nextPow2(t);o.length&lt;e&amp;&amp;(n.free(o),o=n.mallocInt32(e));s.length&lt;e&amp;&amp;(n.free(s),s=n.mallocInt32(e));l.length&lt;e&amp;&amp;(n.free(l),l=n.mallocInt32(e));c.length&lt;e&amp;&amp;(n.free(c),c=n.mallocInt32(e));u.length&lt;e&amp;&amp;(n.free(u),u=n.mallocInt32(e));f.length&lt;e&amp;&amp;(n.free(f),f=n.mallocInt32(e));var r=8*e;h.length&lt;r&amp;&amp;(n.free(h),h=n.mallocDouble(r))},sweepBipartite:function(t,e,r,n,i,u,f,g,m,v){for(var y=0,x=2*t,b=t-1,_=x-1,w=r;w&lt;n;++w){var T=u[w],k=x*w;h[y++]=i[k+b],h[y++]=-(T+1),h[y++]=i[k+_],h[y++]=T}for(w=f;w&lt;g;++w){T=v[w]+(1&lt;&lt;28);var M=x*w;h[y++]=m[M+b],h[y++]=-T,h[y++]=m[M+_],h[y++]=T}var A=y&gt;&gt;&gt;1;a(h,A);var S=0,E=0;for(w=0;w&lt;A;++w){var C=0|h[2*w+1];if(C&gt;=1&lt;&lt;28)p(l,c,E--,C=C-(1&lt;&lt;28)|0);else if(C&gt;=0)p(o,s,S--,C);else if(C&lt;=-(1&lt;&lt;28)){C=-C-(1&lt;&lt;28)|0;for(var L=0;L&lt;S;++L){if(void 0!==(I=e(o[L],C)))return I}d(l,c,E++,C)}else{C=-C-1|0;for(L=0;L&lt;E;++L){var I;if(void 0!==(I=e(C,l[L])))return I}d(o,s,S++,C)}}},sweepComplete:function(t,e,r,n,i,g,m,v,y,x){for(var b=0,_=2*t,w=t-1,T=_-1,k=r;k&lt;n;++k){var M=g[k]+1&lt;&lt;1,A=_*k;h[b++]=i[A+w],h[b++]=-M,h[b++]=i[A+T],h[b++]=M}for(k=m;k&lt;v;++k){M=x[k]+1&lt;&lt;1;var S=_*k;h[b++]=y[S+w],h[b++]=1|-M,h[b++]=y[S+T],h[b++]=1|M}var E=b&gt;&gt;&gt;1;a(h,E);var C=0,L=0,I=0;for(k=0;k&lt;E;++k){var P=0|h[2*k+1],z=1&amp;P;if(k&lt;E-1&amp;&amp;P&gt;&gt;1==h[2*k+3]&gt;&gt;1&amp;&amp;(z=2,k+=1),P&lt;0){for(var O=-(P&gt;&gt;1)-1,D=0;D&lt;I;++D){if(void 0!==(R=e(u[D],O)))return R}if(0!==z)for(D=0;D&lt;C;++D){if(void 0!==(R=e(o[D],O)))return R}if(1!==z)for(D=0;D&lt;L;++D){var R;if(void 0!==(R=e(l[D],O)))return R}0===z?d(o,s,C++,O):1===z?d(l,c,L++,O):2===z&amp;&amp;d(u,f,I++,O)}else{O=(P&gt;&gt;1)-1;0===z?p(o,s,C--,O):1===z?p(l,c,L--,O):2===z&amp;&amp;p(u,f,I--,O)}}},scanBipartite:function(t,e,r,n,i,l,c,u,f,g,m,v){var y=0,x=2*t,b=e,_=e+t,w=1,T=1;n?T=1&lt;&lt;28:w=1&lt;&lt;28;for(var k=i;k&lt;l;++k){var M=k+w,A=x*k;h[y++]=c[A+b],h[y++]=-M,h[y++]=c[A+_],h[y++]=M}for(k=f;k&lt;g;++k){M=k+T;var S=x*k;h[y++]=m[S+b],h[y++]=-M}var E=y&gt;&gt;&gt;1;a(h,E);var C=0;for(k=0;k&lt;E;++k){var L=0|h[2*k+1];if(L&lt;0){var I=!1;if((M=-L)&gt;=1&lt;&lt;28?(I=!n,M-=1&lt;&lt;28):(I=!!n,M-=1),I)d(o,s,C++,M);else{var P=v[M],z=x*M,O=m[z+e+1],D=m[z+e+1+t];t:for(var R=0;R&lt;C;++R){var F=o[R],B=x*F;if(!(D&lt;c[B+e+1]||c[B+e+1+t]&lt;O)){for(var N=e+2;N&lt;t;++N)if(m[z+N+t]&lt;c[B+N]||c[B+N+t]&lt;m[z+N])continue t;var j,U=u[F];if(void 0!==(j=n?r(P,U):r(U,P)))return j}}}}else p(o,s,C--,L-w)}},scanComplete:function(t,e,r,n,i,s,l,c,u,f,p){for(var d=0,g=2*t,m=e,v=e+t,y=n;y&lt;i;++y){var x=y+(1&lt;&lt;28),b=g*y;h[d++]=s[b+m],h[d++]=-x,h[d++]=s[b+v],h[d++]=x}for(y=c;y&lt;u;++y){x=y+1;var _=g*y;h[d++]=f[_+m],h[d++]=-x}var w=d&gt;&gt;&gt;1;a(h,w);var T=0;for(y=0;y&lt;w;++y){var k=0|h[2*y+1];if(k&lt;0){if((x=-k)&gt;=1&lt;&lt;28)o[T++]=x-(1&lt;&lt;28);else{var M=p[x-=1],A=g*x,S=f[A+e+1],E=f[A+e+1+t];t:for(var C=0;C&lt;T;++C){var L=o[C],I=l[L];if(I===M)break;var P=g*L;if(!(E&lt;s[P+e+1]||s[P+e+1+t]&lt;S)){for(var z=e+2;z&lt;t;++z)if(f[A+z+t]&lt;s[P+z]||s[P+z+t]&lt;f[A+z])continue t;var O=r(I,M);if(void 0!==O)return O}}}}else{for(x=k-(1&lt;&lt;28),C=T-1;C&gt;=0;--C)if(o[C]===x){for(z=C+1;z&lt;T;++z)o[z-1]=o[z];break}--T}}}};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;bit-twiddle&quot;),a=t(&quot;./sort&quot;),o=n.mallocInt32(1024),s=n.mallocInt32(1024),l=n.mallocInt32(1024),c=n.mallocInt32(1024),u=n.mallocInt32(1024),f=n.mallocInt32(1024),h=n.mallocDouble(8192);function p(t,e,r,n){var i=e[n],a=t[r-1];t[i]=a,e[a]=i}function d(t,e,r,n){t[r]=n,e[n]=r}},{&quot;./sort&quot;:106,&quot;bit-twiddle&quot;:97,&quot;typedarray-pool&quot;:595}],108:[function(t,e,r){},{}],109:[function(t,e,r){arguments[4][108][0].apply(r,arguments)},{dup:108}],110:[function(t,e,r){&quot;use strict&quot;;var n,i=&quot;object&quot;==typeof Reflect?Reflect:null,a=i&amp;&amp;&quot;function&quot;==typeof i.apply?i.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=i&amp;&amp;&quot;function&quot;==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(t,e){return new Promise((function(r,n){function i(){void 0!==a&amp;&amp;t.removeListener(&quot;error&quot;,a),r([].slice.call(arguments))}var a;&quot;error&quot;!==e&amp;&amp;(a=function(r){t.removeListener(e,i),n(r)},t.once(&quot;error&quot;,a)),t.once(e,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(t){if(&quot;function&quot;!=typeof t)throw new TypeError('The &quot;listener&quot; argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function f(t,e,r,n){var i,a,o,s;if(c(r),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&amp;&amp;(t.emit(&quot;newListener&quot;,e,r.listener?r.listener:r),a=t._events),o=a[e]),void 0===o)o=a[e]=r,++t._eventsCount;else if(&quot;function&quot;==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=u(t))&gt;0&amp;&amp;o.length&gt;i&amp;&amp;!o.warned){o.warned=!0;var l=new Error(&quot;Possible EventEmitter memory leak detected. &quot;+o.length+&quot; &quot;+String(e)+&quot; listeners added. Use emitter.setMaxListeners() to increase limit&quot;);l.name=&quot;MaxListenersExceededWarning&quot;,l.emitter=t,l.type=e,l.count=o.length,s=l,console&amp;&amp;console.warn&amp;&amp;console.warn(s)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function d(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:&quot;function&quot;==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r&lt;e.length;++r)e[r]=t[r].listener||t[r];return e}(i):m(i,i.length)}function g(t){var e=this._events;if(void 0!==e){var r=e[t];if(&quot;function&quot;==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(t,e){for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n];return r}Object.defineProperty(s,&quot;defaultMaxListeners&quot;,{enumerable:!0,get:function(){return l},set:function(t){if(&quot;number&quot;!=typeof t||t&lt;0||o(t))throw new RangeError('The value of &quot;defaultMaxListeners&quot; is out of range. It must be a non-negative number. Received '+t+&quot;.&quot;);l=t}}),s.init=function(){void 0!==this._events&amp;&amp;this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(t){if(&quot;number&quot;!=typeof t||t&lt;0||o(t))throw new RangeError('The value of &quot;n&quot; is out of range. It must be a non-negative number. Received '+t+&quot;.&quot;);return this._maxListeners=t,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(t){for(var e=[],r=1;r&lt;arguments.length;r++)e.push(arguments[r]);var n=&quot;error&quot;===t,i=this._events;if(void 0!==i)n=n&amp;&amp;void 0===i.error;else if(!n)return!1;if(n){var o;if(e.length&gt;0&amp;&amp;(o=e[0]),o instanceof Error)throw o;var s=new Error(&quot;Unhandled error.&quot;+(o?&quot; (&quot;+o.message+&quot;)&quot;:&quot;&quot;));throw s.context=o,s}var l=i[t];if(void 0===l)return!1;if(&quot;function&quot;==typeof l)a(l,this,e);else{var c=l.length,u=m(l,c);for(r=0;r&lt;c;++r)a(u[r],this,e)}return!0},s.prototype.addListener=function(t,e){return f(this,t,e,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(t,e){return f(this,t,e,!0)},s.prototype.once=function(t,e){return c(e),this.on(t,p(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,p(this,t,e)),this},s.prototype.removeListener=function(t,e){var r,n,i,a,o;if(c(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,t,r.listener||e));else if(&quot;function&quot;!=typeof r){for(i=-1,a=r.length-1;a&gt;=0;a--)if(r[a]===e||r[a].listener===e){o=r[a].listener,i=a;break}if(i&lt;0)return this;0===i?r.shift():function(t,e){for(;e+1&lt;t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&amp;&amp;(n[t]=r[0]),void 0!==n.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,t,o||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&amp;&amp;(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,a=Object.keys(r);for(n=0;n&lt;a.length;++n)&quot;removeListener&quot;!==(i=a[n])&amp;&amp;this.removeAllListeners(i);return this.removeAllListeners(&quot;removeListener&quot;),this._events=Object.create(null),this._eventsCount=0,this}if(&quot;function&quot;==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n&gt;=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return&quot;function&quot;==typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount&gt;0?n(this._events):[]}},{}],111:[function(t,e,r){(function(e){(function(){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh &lt;https://feross.org&gt;
 * @license  MIT
 */
&quot;use strict&quot;;var e=t(&quot;base64-js&quot;),n=t(&quot;ieee754&quot;);r.Buffer=a,r.SlowBuffer=function(t){+t!=t&amp;&amp;(t=0);return a.alloc(+t)},r.INSPECT_MAX_BYTES=50;function i(t){if(t&gt;2147483647)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;');var e=new Uint8Array(t);return e.__proto__=a.prototype,e}function a(t,e,r){if(&quot;number&quot;==typeof t){if(&quot;string&quot;==typeof e)throw new TypeError('The &quot;string&quot; argument must be of type string. Received type number');return l(t)}return o(t,e,r)}function o(t,e,r){if(&quot;string&quot;==typeof t)return function(t,e){&quot;string&quot;==typeof e&amp;&amp;&quot;&quot;!==e||(e=&quot;utf8&quot;);if(!a.isEncoding(e))throw new TypeError(&quot;Unknown encoding: &quot;+e);var r=0|f(t,e),n=i(r),o=n.write(t,e);o!==r&amp;&amp;(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t);if(B(t,ArrayBuffer)||t&amp;&amp;B(t.buffer,ArrayBuffer))return function(t,e,r){if(e&lt;0||t.byteLength&lt;e)throw new RangeError('&quot;offset&quot; is outside of buffer bounds');if(t.byteLength&lt;e+(r||0))throw new RangeError('&quot;length&quot; is outside of buffer bounds');var n;n=void 0===e&amp;&amp;void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return n.__proto__=a.prototype,n}(t,e,r);if(&quot;number&quot;==typeof t)throw new TypeError('The &quot;value&quot; argument must not be of type number. Received type number');var n=t.valueOf&amp;&amp;t.valueOf();if(null!=n&amp;&amp;n!==t)return a.from(n,e,r);var o=function(t){if(a.isBuffer(t)){var e=0|u(t.length),r=i(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return&quot;number&quot;!=typeof t.length||N(t.length)?i(0):c(t);if(&quot;Buffer&quot;===t.type&amp;&amp;Array.isArray(t.data))return c(t.data)}(t);if(o)return o;if(&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.toPrimitive&amp;&amp;&quot;function&quot;==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive](&quot;string&quot;),e,r);throw new TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t)}function s(t){if(&quot;number&quot;!=typeof t)throw new TypeError('&quot;size&quot; argument must be of type number');if(t&lt;0)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;')}function l(t){return s(t),i(t&lt;0?0:0|u(t))}function c(t){for(var e=t.length&lt;0?0:0|u(t.length),r=i(e),n=0;n&lt;e;n+=1)r[n]=255&amp;t[n];return r}function u(t){if(t&gt;=2147483647)throw new RangeError(&quot;Attempt to allocate Buffer larger than maximum size: 0x&quot;+2147483647..toString(16)+&quot; bytes&quot;);return 0|t}function f(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||B(t,ArrayBuffer))return t.byteLength;if(&quot;string&quot;!=typeof t)throw new TypeError('The &quot;string&quot; argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length&gt;2&amp;&amp;!0===arguments[2];if(!n&amp;&amp;0===r)return 0;for(var i=!1;;)switch(e){case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:return r;case&quot;utf8&quot;:case&quot;utf-8&quot;:return D(t).length;case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return 2*r;case&quot;hex&quot;:return r&gt;&gt;&gt;1;case&quot;base64&quot;:return R(t).length;default:if(i)return n?-1:D(t).length;e=(&quot;&quot;+e).toLowerCase(),i=!0}}function h(t,e,r){var n=!1;if((void 0===e||e&lt;0)&amp;&amp;(e=0),e&gt;this.length)return&quot;&quot;;if((void 0===r||r&gt;this.length)&amp;&amp;(r=this.length),r&lt;=0)return&quot;&quot;;if((r&gt;&gt;&gt;=0)&lt;=(e&gt;&gt;&gt;=0))return&quot;&quot;;for(t||(t=&quot;utf8&quot;);;)switch(t){case&quot;hex&quot;:return A(this,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return T(this,e,r);case&quot;ascii&quot;:return k(this,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return M(this,e,r);case&quot;base64&quot;:return w(this,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return S(this,e,r);default:if(n)throw new TypeError(&quot;Unknown encoding: &quot;+t);t=(t+&quot;&quot;).toLowerCase(),n=!0}}function p(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,i){if(0===t.length)return-1;if(&quot;string&quot;==typeof r?(n=r,r=0):r&gt;2147483647?r=2147483647:r&lt;-2147483648&amp;&amp;(r=-2147483648),N(r=+r)&amp;&amp;(r=i?0:t.length-1),r&lt;0&amp;&amp;(r=t.length+r),r&gt;=t.length){if(i)return-1;r=t.length-1}else if(r&lt;0){if(!i)return-1;r=0}if(&quot;string&quot;==typeof e&amp;&amp;(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:g(t,e,r,n,i);if(&quot;number&quot;==typeof e)return e&amp;=255,&quot;function&quot;==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):g(t,[e],r,n,i);throw new TypeError(&quot;val must be string, number or Buffer&quot;)}function g(t,e,r,n,i){var a,o=1,s=t.length,l=e.length;if(void 0!==n&amp;&amp;(&quot;ucs2&quot;===(n=String(n).toLowerCase())||&quot;ucs-2&quot;===n||&quot;utf16le&quot;===n||&quot;utf-16le&quot;===n)){if(t.length&lt;2||e.length&lt;2)return-1;o=2,s/=2,l/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var u=-1;for(a=r;a&lt;s;a++)if(c(t,a)===c(e,-1===u?0:a-u)){if(-1===u&amp;&amp;(u=a),a-u+1===l)return u*o}else-1!==u&amp;&amp;(a-=a-u),u=-1}else for(r+l&gt;s&amp;&amp;(r=s-l),a=r;a&gt;=0;a--){for(var f=!0,h=0;h&lt;l;h++)if(c(t,a+h)!==c(e,h)){f=!1;break}if(f)return a}return-1}function m(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))&gt;i&amp;&amp;(n=i):n=i;var a=e.length;n&gt;a/2&amp;&amp;(n=a/2);for(var o=0;o&lt;n;++o){var s=parseInt(e.substr(2*o,2),16);if(N(s))return o;t[r+o]=s}return o}function v(t,e,r,n){return F(D(e,t.length-r),t,r,n)}function y(t,e,r,n){return F(function(t){for(var e=[],r=0;r&lt;t.length;++r)e.push(255&amp;t.charCodeAt(r));return e}(e),t,r,n)}function x(t,e,r,n){return y(t,e,r,n)}function b(t,e,r,n){return F(R(e),t,r,n)}function _(t,e,r,n){return F(function(t,e){for(var r,n,i,a=[],o=0;o&lt;t.length&amp;&amp;!((e-=2)&lt;0);++o)r=t.charCodeAt(o),n=r&gt;&gt;8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function w(t,r,n){return 0===r&amp;&amp;n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function T(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i&lt;r;){var a,o,s,l,c=t[i],u=null,f=c&gt;239?4:c&gt;223?3:c&gt;191?2:1;if(i+f&lt;=r)switch(f){case 1:c&lt;128&amp;&amp;(u=c);break;case 2:128==(192&amp;(a=t[i+1]))&amp;&amp;(l=(31&amp;c)&lt;&lt;6|63&amp;a)&gt;127&amp;&amp;(u=l);break;case 3:a=t[i+1],o=t[i+2],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;(l=(15&amp;c)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;o)&gt;2047&amp;&amp;(l&lt;55296||l&gt;57343)&amp;&amp;(u=l);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;128==(192&amp;s)&amp;&amp;(l=(15&amp;c)&lt;&lt;18|(63&amp;a)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;s)&gt;65535&amp;&amp;l&lt;1114112&amp;&amp;(u=l)}null===u?(u=65533,f=1):u&gt;65535&amp;&amp;(u-=65536,n.push(u&gt;&gt;&gt;10&amp;1023|55296),u=56320|1023&amp;u),n.push(u),i+=f}return function(t){var e=t.length;if(e&lt;=4096)return String.fromCharCode.apply(String,t);var r=&quot;&quot;,n=0;for(;n&lt;e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}r.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||&quot;undefined&quot;==typeof console||&quot;function&quot;!=typeof console.error||console.error(&quot;This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.&quot;),Object.defineProperty(a.prototype,&quot;parent&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,&quot;offset&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.species&amp;&amp;a[Symbol.species]===a&amp;&amp;Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(t,e,r){return o(t,e,r)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(t,e,r){return function(t,e,r){return s(t),t&lt;=0?i(t):void 0!==e?&quot;string&quot;==typeof r?i(t).fill(e,r):i(t).fill(e):i(t)}(t,e,r)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&amp;&amp;!0===t._isBuffer&amp;&amp;t!==a.prototype},a.compare=function(t,e){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),B(e,Uint8Array)&amp;&amp;(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError('The &quot;buf1&quot;, &quot;buf2&quot; arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i&lt;o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r&lt;n?-1:n&lt;r?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case&quot;hex&quot;:case&quot;utf8&quot;:case&quot;utf-8&quot;:case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:case&quot;base64&quot;:case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return!0;default:return!1}},a.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);var r;if(void 0===e)for(e=0,r=0;r&lt;t.length;++r)e+=t[r].length;var n=a.allocUnsafe(e),i=0;for(r=0;r&lt;t.length;++r){var o=t[r];if(B(o,Uint8Array)&amp;&amp;(o=a.from(o)),!a.isBuffer(o))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(&quot;Buffer size must be a multiple of 16-bits&quot;);for(var e=0;e&lt;t;e+=2)p(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(&quot;Buffer size must be a multiple of 32-bits&quot;);for(var e=0;e&lt;t;e+=4)p(this,e,e+3),p(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(&quot;Buffer size must be a multiple of 64-bits&quot;);for(var e=0;e&lt;t;e+=8)p(this,e,e+7),p(this,e+1,e+6),p(this,e+2,e+5),p(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?&quot;&quot;:0===arguments.length?T(this,0,t):h.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError(&quot;Argument must be a Buffer&quot;);return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t=&quot;&quot;,e=r.INSPECT_MAX_BYTES;return t=this.toString(&quot;hex&quot;,0,e).replace(/(.{2})/g,&quot;$1 &quot;).trim(),this.length&gt;e&amp;&amp;(t+=&quot; ... &quot;),&quot;&lt;Buffer &quot;+t+&quot;&gt;&quot;},a.prototype.compare=function(t,e,r,n,i){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The &quot;target&quot; argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&amp;&amp;(e=0),void 0===r&amp;&amp;(r=t?t.length:0),void 0===n&amp;&amp;(n=0),void 0===i&amp;&amp;(i=this.length),e&lt;0||r&gt;t.length||n&lt;0||i&gt;this.length)throw new RangeError(&quot;out of range index&quot;);if(n&gt;=i&amp;&amp;e&gt;=r)return 0;if(n&gt;=i)return-1;if(e&gt;=r)return 1;if(this===t)return 0;for(var o=(i&gt;&gt;&gt;=0)-(n&gt;&gt;&gt;=0),s=(r&gt;&gt;&gt;=0)-(e&gt;&gt;&gt;=0),l=Math.min(o,s),c=this.slice(n,i),u=t.slice(e,r),f=0;f&lt;l;++f)if(c[f]!==u[f]){o=c[f],s=u[f];break}return o&lt;s?-1:s&lt;o?1:0},a.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return d(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return d(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){if(void 0===e)n=&quot;utf8&quot;,r=this.length,e=0;else if(void 0===r&amp;&amp;&quot;string&quot;==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error(&quot;Buffer.write(string, encoding, offset[, length]) is no longer supported&quot;);e&gt;&gt;&gt;=0,isFinite(r)?(r&gt;&gt;&gt;=0,void 0===n&amp;&amp;(n=&quot;utf8&quot;)):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r&gt;i)&amp;&amp;(r=i),t.length&gt;0&amp;&amp;(r&lt;0||e&lt;0)||e&gt;this.length)throw new RangeError(&quot;Attempt to write outside buffer bounds&quot;);n||(n=&quot;utf8&quot;);for(var a=!1;;)switch(n){case&quot;hex&quot;:return m(this,t,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return v(this,t,e,r);case&quot;ascii&quot;:return y(this,t,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return x(this,t,e,r);case&quot;base64&quot;:return b(this,t,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return _(this,t,e,r);default:if(a)throw new TypeError(&quot;Unknown encoding: &quot;+n);n=(&quot;&quot;+n).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:&quot;Buffer&quot;,data:Array.prototype.slice.call(this._arr||this,0)}};function k(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(127&amp;t[i]);return n}function M(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(t[i]);return n}function A(t,e,r){var n=t.length;(!e||e&lt;0)&amp;&amp;(e=0),(!r||r&lt;0||r&gt;n)&amp;&amp;(r=n);for(var i=&quot;&quot;,a=e;a&lt;r;++a)i+=O(t[a]);return i}function S(t,e,r){for(var n=t.slice(e,r),i=&quot;&quot;,a=0;a&lt;n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function E(t,e,r){if(t%1!=0||t&lt;0)throw new RangeError(&quot;offset is not uint&quot;);if(t+e&gt;r)throw new RangeError(&quot;Trying to access beyond buffer length&quot;)}function C(t,e,r,n,i,o){if(!a.isBuffer(t))throw new TypeError('&quot;buffer&quot; argument must be a Buffer instance');if(e&gt;i||e&lt;o)throw new RangeError('&quot;value&quot; argument is out of bounds');if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;)}function L(t,e,r,n,i,a){if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;);if(r&lt;0)throw new RangeError(&quot;Index out of range&quot;)}function I(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||L(t,0,r,4),n.write(t,e,r,i,23,4),r+4}function P(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||L(t,0,r,8),n.write(t,e,r,i,52,8),r+8}a.prototype.slice=function(t,e){var r=this.length;(t=~~t)&lt;0?(t+=r)&lt;0&amp;&amp;(t=0):t&gt;r&amp;&amp;(t=r),(e=void 0===e?r:~~e)&lt;0?(e+=r)&lt;0&amp;&amp;(e=0):e&gt;r&amp;&amp;(e=r),e&lt;t&amp;&amp;(e=t);var n=this.subarray(t,e);return n.__proto__=a.prototype,n},a.prototype.readUIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n},a.prototype.readUIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t+--e],i=1;e&gt;0&amp;&amp;(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]|this[t+1]&lt;&lt;8},a.prototype.readUInt16BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]&lt;&lt;8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),(this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),16777216*this[t]+(this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n&gt;=(i*=128)&amp;&amp;(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n&gt;0&amp;&amp;(i*=256);)a+=this[t+--n]*i;return a&gt;=(i*=128)&amp;&amp;(a-=Math.pow(2,8*e)),a},a.prototype.readInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),128&amp;this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t]|this[t+1]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t+1]|this[t]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16|this[t+3]&lt;&lt;24},a.prototype.readInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]&lt;&lt;24|this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||C(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(i*=256);)this[e+a]=t/i&amp;255;return e+r},a.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||C(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&amp;t;--i&gt;=0&amp;&amp;(a*=256);)this[e+i]=t/a&amp;255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,1,255,0),this[e]=255&amp;t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,65535,0),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,65535,0),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,4294967295,0),this[e+3]=t&gt;&gt;&gt;24,this[e+2]=t&gt;&gt;&gt;16,this[e+1]=t&gt;&gt;&gt;8,this[e]=255&amp;t,e+4},a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,4294967295,0),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a-1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&amp;t;--a&gt;=0&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a+1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,1,127,-128),t&lt;0&amp;&amp;(t=255+t+1),this[e]=255&amp;t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,32767,-32768),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,32767,-32768),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,2147483647,-2147483648),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,this[e+2]=t&gt;&gt;&gt;16,this[e+3]=t&gt;&gt;&gt;24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,2147483647,-2147483648),t&lt;0&amp;&amp;(t=4294967295+t+1),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeFloatLE=function(t,e,r){return I(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return I(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return P(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return P(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw new TypeError(&quot;argument should be a Buffer&quot;);if(r||(r=0),n||0===n||(n=this.length),e&gt;=t.length&amp;&amp;(e=t.length),e||(e=0),n&gt;0&amp;&amp;n&lt;r&amp;&amp;(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e&lt;0)throw new RangeError(&quot;targetStart out of bounds&quot;);if(r&lt;0||r&gt;=this.length)throw new RangeError(&quot;Index out of range&quot;);if(n&lt;0)throw new RangeError(&quot;sourceEnd out of bounds&quot;);n&gt;this.length&amp;&amp;(n=this.length),t.length-e&lt;n-r&amp;&amp;(n=t.length-e+r);var i=n-r;if(this===t&amp;&amp;&quot;function&quot;==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&amp;&amp;r&lt;e&amp;&amp;e&lt;n)for(var o=i-1;o&gt;=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},a.prototype.fill=function(t,e,r,n){if(&quot;string&quot;==typeof t){if(&quot;string&quot;==typeof e?(n=e,e=0,r=this.length):&quot;string&quot;==typeof r&amp;&amp;(n=r,r=this.length),void 0!==n&amp;&amp;&quot;string&quot;!=typeof n)throw new TypeError(&quot;encoding must be a string&quot;);if(&quot;string&quot;==typeof n&amp;&amp;!a.isEncoding(n))throw new TypeError(&quot;Unknown encoding: &quot;+n);if(1===t.length){var i=t.charCodeAt(0);(&quot;utf8&quot;===n&amp;&amp;i&lt;128||&quot;latin1&quot;===n)&amp;&amp;(t=i)}}else&quot;number&quot;==typeof t&amp;&amp;(t&amp;=255);if(e&lt;0||this.length&lt;e||this.length&lt;r)throw new RangeError(&quot;Out of range index&quot;);if(r&lt;=e)return this;var o;if(e&gt;&gt;&gt;=0,r=void 0===r?this.length:r&gt;&gt;&gt;0,t||(t=0),&quot;number&quot;==typeof t)for(o=e;o&lt;r;++o)this[o]=t;else{var s=a.isBuffer(t)?t:a.from(t,n),l=s.length;if(0===l)throw new TypeError('The value &quot;'+t+'&quot; is invalid for argument &quot;value&quot;');for(o=0;o&lt;r-e;++o)this[o+e]=s[o%l]}return this};var z=/[^+/0-9A-Za-z-_]/g;function O(t){return t&lt;16?&quot;0&quot;+t.toString(16):t.toString(16)}function D(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o&lt;n;++o){if((r=t.charCodeAt(o))&gt;55295&amp;&amp;r&lt;57344){if(!i){if(r&gt;56319){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}if(o+1===n){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}i=r;continue}if(r&lt;56320){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189),i=r;continue}r=65536+(i-55296&lt;&lt;10|r-56320)}else i&amp;&amp;(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);if(i=null,r&lt;128){if((e-=1)&lt;0)break;a.push(r)}else if(r&lt;2048){if((e-=2)&lt;0)break;a.push(r&gt;&gt;6|192,63&amp;r|128)}else if(r&lt;65536){if((e-=3)&lt;0)break;a.push(r&gt;&gt;12|224,r&gt;&gt;6&amp;63|128,63&amp;r|128)}else{if(!(r&lt;1114112))throw new Error(&quot;Invalid code point&quot;);if((e-=4)&lt;0)break;a.push(r&gt;&gt;18|240,r&gt;&gt;12&amp;63|128,r&gt;&gt;6&amp;63|128,63&amp;r|128)}}return a}function R(t){return e.toByteArray(function(t){if((t=(t=t.split(&quot;=&quot;)[0]).trim().replace(z,&quot;&quot;)).length&lt;2)return&quot;&quot;;for(;t.length%4!=0;)t+=&quot;=&quot;;return t}(t))}function F(t,e,r,n){for(var i=0;i&lt;n&amp;&amp;!(i+r&gt;=e.length||i&gt;=t.length);++i)e[i+r]=t[i];return i}function B(t,e){return t instanceof e||null!=t&amp;&amp;null!=t.constructor&amp;&amp;null!=t.constructor.name&amp;&amp;t.constructor.name===e.name}function N(t){return t!=t}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;base64-js&quot;:79,buffer:111,ieee754:442}],112:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/monotone&quot;),i=t(&quot;./lib/triangulation&quot;),a=t(&quot;./lib/delaunay&quot;),o=t(&quot;./lib/filter&quot;);function s(t){return[Math.min(t[0],t[1]),Math.max(t[0],t[1])]}function l(t,e){return t[0]-e[0]||t[1]-e[1]}function c(t,e,r){return e in t?t[e]:r}e.exports=function(t,e,r){Array.isArray(e)?(r=r||{},e=e||[]):(r=e||{},e=[]);var u=!!c(r,&quot;delaunay&quot;,!0),f=!!c(r,&quot;interior&quot;,!0),h=!!c(r,&quot;exterior&quot;,!0),p=!!c(r,&quot;infinity&quot;,!1);if(!f&amp;&amp;!h||0===t.length)return[];var d=n(t,e);if(u||f!==h||p){for(var g=i(t.length,function(t){return t.map(s).sort(l)}(e)),m=0;m&lt;d.length;++m){var v=d[m];g.addTriangle(v[0],v[1],v[2])}return u&amp;&amp;a(t,g),h?f?p?o(g,0,p):g.cells():o(g,1,p):o(g,-1)}return d}},{&quot;./lib/delaunay&quot;:113,&quot;./lib/filter&quot;:114,&quot;./lib/monotone&quot;:115,&quot;./lib/triangulation&quot;:116}],113:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-in-sphere&quot;)[4];t(&quot;binary-search-bounds&quot;);function i(t,e,r,i,a,o){var s=e.opposite(i,a);if(!(s&lt;0)){if(a&lt;i){var l=i;i=a,a=l,l=o,o=s,s=l}e.isConstraint(i,a)||n(t[i],t[a],t[o],t[s])&lt;0&amp;&amp;r.push(i,a)}}e.exports=function(t,e){for(var r=[],a=t.length,o=e.stars,s=0;s&lt;a;++s)for(var l=o[s],c=1;c&lt;l.length;c+=2){if(!((p=l[c])&lt;s)&amp;&amp;!e.isConstraint(s,p)){for(var u=l[c-1],f=-1,h=1;h&lt;l.length;h+=2)if(l[h-1]===p){f=l[h];break}f&lt;0||n(t[s],t[p],t[u],t[f])&lt;0&amp;&amp;r.push(s,p)}}for(;r.length&gt;0;){for(var p=r.pop(),d=(s=r.pop(),u=-1,f=-1,l=o[s],1);d&lt;l.length;d+=2){var g=l[d-1],m=l[d];g===p?f=m:m===p&amp;&amp;(u=g)}u&lt;0||f&lt;0||(n(t[s],t[p],t[u],t[f])&gt;=0||(e.flip(s,p),i(t,e,r,u,s,f),i(t,e,r,s,f,u),i(t,e,r,f,p,u),i(t,e,r,p,u,f)))}}},{&quot;binary-search-bounds&quot;:96,&quot;robust-in-sphere&quot;:546}],114:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;binary-search-bounds&quot;);function a(t,e,r,n,i,a,o){this.cells=t,this.neighbor=e,this.flags=n,this.constraint=r,this.active=i,this.next=a,this.boundary=o}function o(t,e){return t[0]-e[0]||t[1]-e[1]||t[2]-e[2]}e.exports=function(t,e,r){var n=function(t,e){for(var r=t.cells(),n=r.length,i=0;i&lt;n;++i){var s=(v=r[i])[0],l=v[1],c=v[2];l&lt;c?l&lt;s&amp;&amp;(v[0]=l,v[1]=c,v[2]=s):c&lt;s&amp;&amp;(v[0]=c,v[1]=s,v[2]=l)}r.sort(o);var u=new Array(n);for(i=0;i&lt;u.length;++i)u[i]=0;var f=[],h=[],p=new Array(3*n),d=new Array(3*n),g=null;e&amp;&amp;(g=[]);var m=new a(r,p,d,u,f,h,g);for(i=0;i&lt;n;++i)for(var v=r[i],y=0;y&lt;3;++y){s=v[y],l=v[(y+1)%3];var x=p[3*i+y]=m.locate(l,s,t.opposite(l,s)),b=d[3*i+y]=t.isConstraint(s,l);x&lt;0&amp;&amp;(b?h.push(i):(f.push(i),u[i]=1),e&amp;&amp;g.push([l,s,-1]))}return m}(t,r);if(0===e)return r?n.cells.concat(n.boundary):n.cells;var i=1,s=n.active,l=n.next,c=n.flags,u=n.cells,f=n.constraint,h=n.neighbor;for(;s.length&gt;0||l.length&gt;0;){for(;s.length&gt;0;){var p=s.pop();if(c[p]!==-i){c[p]=i;u[p];for(var d=0;d&lt;3;++d){var g=h[3*p+d];g&gt;=0&amp;&amp;0===c[g]&amp;&amp;(f[3*p+d]?l.push(g):(s.push(g),c[g]=i))}}}var m=l;l=s,s=m,l.length=0,i=-i}var v=function(t,e,r){for(var n=0,i=0;i&lt;t.length;++i)e[i]===r&amp;&amp;(t[n++]=t[i]);return t.length=n,t}(u,c,e);if(r)return v.concat(n.boundary);return v},a.prototype.locate=(n=[0,0,0],function(t,e,r){var a=t,s=e,l=r;return e&lt;r?e&lt;t&amp;&amp;(a=e,s=r,l=t):r&lt;t&amp;&amp;(a=r,s=t,l=e),a&lt;0?-1:(n[0]=a,n[1]=s,n[2]=l,i.eq(this.cells,n,o))})},{&quot;binary-search-bounds&quot;:96}],115:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;robust-orientation&quot;)[3];function a(t,e,r,n,i){this.a=t,this.b=e,this.idx=r,this.lowerIds=n,this.upperIds=i}function o(t,e,r,n){this.a=t,this.b=e,this.type=r,this.idx=n}function s(t,e){var r=t.a[0]-e.a[0]||t.a[1]-e.a[1]||t.type-e.type;return r||(0!==t.type&amp;&amp;(r=i(t.a,t.b,e.b))?r:t.idx-e.idx)}function l(t,e){return i(t.a,t.b,e)}function c(t,e,r,a,o){for(var s=n.lt(e,a,l),c=n.gt(e,a,l),u=s;u&lt;c;++u){for(var f=e[u],h=f.lowerIds,p=h.length;p&gt;1&amp;&amp;i(r[h[p-2]],r[h[p-1]],a)&gt;0;)t.push([h[p-1],h[p-2],o]),p-=1;h.length=p,h.push(o);var d=f.upperIds;for(p=d.length;p&gt;1&amp;&amp;i(r[d[p-2]],r[d[p-1]],a)&lt;0;)t.push([d[p-2],d[p-1],o]),p-=1;d.length=p,d.push(o)}}function u(t,e){var r;return(r=t.a[0]&lt;e.a[0]?i(t.a,t.b,e.a):i(e.b,e.a,t.a))?r:(r=e.b[0]&lt;t.b[0]?i(t.a,t.b,e.b):i(e.b,e.a,t.b))||t.idx-e.idx}function f(t,e,r){var i=n.le(t,r,u),o=t[i],s=o.upperIds,l=s[s.length-1];o.upperIds=[l],t.splice(i+1,0,new a(r.a,r.b,r.idx,[l],s))}function h(t,e,r){var i=r.a;r.a=r.b,r.b=i;var a=n.eq(t,r,u),o=t[a];t[a-1].upperIds=o.upperIds,t.splice(a,1)}e.exports=function(t,e){for(var r=t.length,n=e.length,i=[],l=0;l&lt;r;++l)i.push(new o(t[l],null,0,l));for(l=0;l&lt;n;++l){var u=e[l],p=t[u[0]],d=t[u[1]];p[0]&lt;d[0]?i.push(new o(p,d,2,l),new o(d,p,1,l)):p[0]&gt;d[0]&amp;&amp;i.push(new o(d,p,2,l),new o(p,d,1,l))}i.sort(s);for(var g=i[0].a[0]-(1+Math.abs(i[0].a[0]))*Math.pow(2,-52),m=[new a([g,1],[g,0],-1,[],[],[],[])],v=[],y=(l=0,i.length);l&lt;y;++l){var x=i[l],b=x.type;0===b?c(v,m,t,x.a,x.idx):2===b?f(m,t,x):h(m,t,x)}return v}},{&quot;binary-search-bounds&quot;:96,&quot;robust-orientation&quot;:548}],116:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;);function i(t,e){this.stars=t,this.edges=e}e.exports=function(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=[];return new i(r,e)};var a=i.prototype;function o(t,e,r){for(var n=1,i=t.length;n&lt;i;n+=2)if(t[n-1]===e&amp;&amp;t[n]===r)return t[n-1]=t[i-2],t[n]=t[i-1],void(t.length=i-2)}a.isConstraint=function(){var t=[0,0];function e(t,e){return t[0]-e[0]||t[1]-e[1]}return function(r,i){return t[0]=Math.min(r,i),t[1]=Math.max(r,i),n.eq(this.edges,t,e)&gt;=0}}(),a.removeTriangle=function(t,e,r){var n=this.stars;o(n[t],e,r),o(n[e],r,t),o(n[r],t,e)},a.addTriangle=function(t,e,r){var n=this.stars;n[t].push(e,r),n[e].push(r,t),n[r].push(t,e)},a.opposite=function(t,e){for(var r=this.stars[e],n=1,i=r.length;n&lt;i;n+=2)if(r[n]===t)return r[n-1];return-1},a.flip=function(t,e){var r=this.opposite(t,e),n=this.opposite(e,t);this.removeTriangle(t,e,r),this.removeTriangle(e,t,n),this.addTriangle(t,n,r),this.addTriangle(e,r,n)},a.edges=function(){for(var t=this.stars,e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;a+=2)e.push([i[a],i[a+1]]);return e},a.cells=function(){for(var t=this.stars,e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;a+=2){var s=i[a],l=i[a+1];r&lt;Math.min(s,l)&amp;&amp;e.push([r,s,l])}return e}},{&quot;binary-search-bounds&quot;:96}],117:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=1,r=1;r&lt;t.length;++r)for(var n=0;n&lt;r;++n)if(t[r]&lt;t[n])e=-e;else if(t[n]===t[r])return 0;return e}},{}],118:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;dup&quot;),i=t(&quot;robust-linear-solve&quot;);function a(t,e){for(var r=0,n=t.length,i=0;i&lt;n;++i)r+=t[i]*e[i];return r}function o(t){var e=t.length;if(0===e)return[];t[0].length;var r=n([t.length+1,t.length+1],1),o=n([t.length+1],1);r[e][e]=0;for(var s=0;s&lt;e;++s){for(var l=0;l&lt;=s;++l)r[l][s]=r[s][l]=2*a(t[s],t[l]);o[s]=a(t[s],t[s])}var c=i(r,o),u=0,f=c[e+1];for(s=0;s&lt;f.length;++s)u+=f[s];var h=new Array(e);for(s=0;s&lt;e;++s){f=c[s];var p=0;for(l=0;l&lt;f.length;++l)p+=f[l];h[s]=p/u}return h}function s(t){if(0===t.length)return[];for(var e=t[0].length,r=n([e]),i=o(t),a=0;a&lt;t.length;++a)for(var s=0;s&lt;e;++s)r[s]+=t[a][s]*i[a];return r}s.barycenetric=o,e.exports=s},{dup:176,&quot;robust-linear-solve&quot;:547}],119:[function(t,e,r){e.exports=function(t){for(var e=n(t),r=0,i=0;i&lt;t.length;++i)for(var a=t[i],o=0;o&lt;e.length;++o)r+=Math.pow(a[o]-e[o],2);return Math.sqrt(r/t.length)};var n=t(&quot;circumcenter&quot;)},{circumcenter:118}],120:[function(t,e,r){e.exports=function(t,e,r){return e&lt;r?t&lt;e?e:t&gt;r?r:t:t&lt;r?r:t&gt;e?e:t}},{}],121:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n;if(r){n=e;for(var i=new Array(e.length),a=0;a&lt;e.length;++a){var o=e[a];i[a]=[o[0],o[1],r[a]]}e=i}var s=function(t,e,r){var n=d(t,[],p(t));return v(e,n,r),!!n}(t,e,!!r);for(;y(t,e,!!r);)s=!0;if(r&amp;&amp;s){n.length=0,r.length=0;for(a=0;a&lt;e.length;++a){o=e[a];n.push([o[0],o[1]]),r.push(o[2])}}return s};var n=t(&quot;union-find&quot;),i=t(&quot;box-intersect&quot;),a=t(&quot;robust-segment-intersect&quot;),o=t(&quot;big-rat&quot;),s=t(&quot;big-rat/cmp&quot;),l=t(&quot;big-rat/to-float&quot;),c=t(&quot;rat-vec&quot;),u=t(&quot;nextafter&quot;),f=t(&quot;./lib/rat-seg-intersect&quot;);function h(t){var e=l(t);return[u(e,-1/0),u(e,1/0)]}function p(t){for(var e=new Array(t.length),r=0;r&lt;t.length;++r){var n=t[r];e[r]=[u(n[0],-1/0),u(n[1],-1/0),u(n[0],1/0),u(n[1],1/0)]}return e}function d(t,e,r){for(var a=e.length,o=new n(a),s=[],l=0;l&lt;e.length;++l){var c=e[l],f=h(c[0]),p=h(c[1]);s.push([u(f[0],-1/0),u(p[0],-1/0),u(f[1],1/0),u(p[1],1/0)])}i(s,(function(t,e){o.link(t,e)}));var d=!0,g=new Array(a);for(l=0;l&lt;a;++l){(v=o.find(l))!==l&amp;&amp;(d=!1,t[v]=[Math.min(t[l][0],t[v][0]),Math.min(t[l][1],t[v][1])])}if(d)return null;var m=0;for(l=0;l&lt;a;++l){var v;(v=o.find(l))===l?(g[l]=m,t[m++]=t[l]):g[l]=-1}t.length=m;for(l=0;l&lt;a;++l)g[l]&lt;0&amp;&amp;(g[l]=g[o.find(l)]);return g}function g(t,e){return t[0]-e[0]||t[1]-e[1]}function m(t,e){var r=t[0]-e[0]||t[1]-e[1];return r||(t[2]&lt;e[2]?-1:t[2]&gt;e[2]?1:0)}function v(t,e,r){if(0!==t.length){if(e)for(var n=0;n&lt;t.length;++n){var i=e[(o=t[n])[0]],a=e[o[1]];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}else for(n=0;n&lt;t.length;++n){var o;i=(o=t[n])[0],a=o[1];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}r?t.sort(m):t.sort(g);var s=1;for(n=1;n&lt;t.length;++n){var l=t[n-1],c=t[n];(c[0]!==l[0]||c[1]!==l[1]||r&amp;&amp;c[2]!==l[2])&amp;&amp;(t[s++]=c)}t.length=s}}function y(t,e,r){var n=function(t,e){for(var r=new Array(e.length),n=0;n&lt;e.length;++n){var i=e[n],a=t[i[0]],o=t[i[1]];r[n]=[u(Math.min(a[0],o[0]),-1/0),u(Math.min(a[1],o[1]),-1/0),u(Math.max(a[0],o[0]),1/0),u(Math.max(a[1],o[1]),1/0)]}return r}(t,e),h=function(t,e,r){var n=[];return i(r,(function(r,i){var o=e[r],s=e[i];if(o[0]!==s[0]&amp;&amp;o[0]!==s[1]&amp;&amp;o[1]!==s[0]&amp;&amp;o[1]!==s[1]){var l=t[o[0]],c=t[o[1]],u=t[s[0]],f=t[s[1]];a(l,c,u,f)&amp;&amp;n.push([r,i])}})),n}(t,e,n),g=p(t),m=function(t,e,r,n){var o=[];return i(r,n,(function(r,n){var i=e[r];if(i[0]!==n&amp;&amp;i[1]!==n){var s=t[n],l=t[i[0]],c=t[i[1]];a(l,c,s,s)&amp;&amp;o.push([r,n])}})),o}(t,e,n,g),y=d(t,function(t,e,r,n,i){var a,u,h=t.map((function(t){return[o(t[0]),o(t[1])]}));for(a=0;a&lt;r.length;++a){var p=r[a];u=p[0];var d=p[1],g=e[u],m=e[d],v=f(c(t[g[0]]),c(t[g[1]]),c(t[m[0]]),c(t[m[1]]));if(v){var y=t.length;t.push([l(v[0]),l(v[1])]),h.push(v),n.push([u,y],[d,y])}}for(n.sort((function(t,e){if(t[0]!==e[0])return t[0]-e[0];var r=h[t[1]],n=h[e[1]];return s(r[0],n[0])||s(r[1],n[1])})),a=n.length-1;a&gt;=0;--a){var x=e[u=(S=n[a])[0]],b=x[0],_=x[1],w=t[b],T=t[_];if((w[0]-T[0]||w[1]-T[1])&lt;0){var k=b;b=_,_=k}x[0]=b;var M,A=x[1]=S[1];for(i&amp;&amp;(M=x[2]);a&gt;0&amp;&amp;n[a-1][0]===u;){var S,E=(S=n[--a])[1];i?e.push([A,E,M]):e.push([A,E]),A=E}i?e.push([A,_,M]):e.push([A,_])}return h}(t,e,h,m,r));return v(e,y,r),!!y||(h.length&gt;0||m.length&gt;0)}},{&quot;./lib/rat-seg-intersect&quot;:122,&quot;big-rat&quot;:83,&quot;big-rat/cmp&quot;:81,&quot;big-rat/to-float&quot;:95,&quot;box-intersect&quot;:101,nextafter:496,&quot;rat-vec&quot;:530,&quot;robust-segment-intersect&quot;:551,&quot;union-find&quot;:596}],122:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var a=s(e,t),f=s(n,r),h=u(a,f);if(0===o(h))return null;var p=s(t,r),d=u(f,p),g=i(d,h),m=c(a,g);return l(t,m)};var n=t(&quot;big-rat/mul&quot;),i=t(&quot;big-rat/div&quot;),a=t(&quot;big-rat/sub&quot;),o=t(&quot;big-rat/sign&quot;),s=t(&quot;rat-vec/sub&quot;),l=t(&quot;rat-vec/add&quot;),c=t(&quot;rat-vec/muls&quot;);function u(t,e){return a(n(t[0],e[1]),n(t[1],e[0]))}},{&quot;big-rat/div&quot;:82,&quot;big-rat/mul&quot;:92,&quot;big-rat/sign&quot;:93,&quot;big-rat/sub&quot;:94,&quot;rat-vec/add&quot;:529,&quot;rat-vec/muls&quot;:531,&quot;rat-vec/sub&quot;:532}],123:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;clamp&quot;);function i(t,e){null==e&amp;&amp;(e=!0);var r=t[0],i=t[1],a=t[2],o=t[3];return null==o&amp;&amp;(o=e?1:255),e&amp;&amp;(r*=255,i*=255,a*=255,o*=255),16777216*(r=255&amp;n(r,0,255))+((i=255&amp;n(i,0,255))&lt;&lt;16)+((a=255&amp;n(a,0,255))&lt;&lt;8)+(o=255&amp;n(o,0,255))}e.exports=i,e.exports.to=i,e.exports.from=function(t,e){var r=(t=+t)&gt;&gt;&gt;24,n=(16711680&amp;t)&gt;&gt;&gt;16,i=(65280&amp;t)&gt;&gt;&gt;8,a=255&amp;t;return!1===e?[r,n,i,a]:[r/255,n/255,i/255,a/255]}},{clamp:120}],124:[function(t,e,r){&quot;use strict&quot;;e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],125:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-rgba&quot;),i=t(&quot;clamp&quot;),a=t(&quot;dtype&quot;);e.exports=function(t,e){&quot;float&quot;!==e&amp;&amp;e||(e=&quot;array&quot;),&quot;uint&quot;===e&amp;&amp;(e=&quot;uint8&quot;),&quot;uint_clamped&quot;===e&amp;&amp;(e=&quot;uint8_clamped&quot;);var r=new(a(e))(4),o=&quot;uint8&quot;!==e&amp;&amp;&quot;uint8_clamped&quot;!==e;return t.length&amp;&amp;&quot;string&quot;!=typeof t||((t=n(t))[0]/=255,t[1]/=255,t[2]/=255),function(t){return t instanceof Uint8Array||t instanceof Uint8ClampedArray||!!(Array.isArray(t)&amp;&amp;(t[0]&gt;1||0===t[0])&amp;&amp;(t[1]&gt;1||0===t[1])&amp;&amp;(t[2]&gt;1||0===t[2])&amp;&amp;(!t[3]||t[3]&gt;1))}(t)?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:255,o&amp;&amp;(r[0]/=255,r[1]/=255,r[2]/=255,r[3]/=255),r):(o?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:1):(r[0]=i(Math.floor(255*t[0]),0,255),r[1]=i(Math.floor(255*t[1]),0,255),r[2]=i(Math.floor(255*t[2]),0,255),r[3]=null==t[3]?255:i(Math.floor(255*t[3]),0,255)),r)}},{clamp:120,&quot;color-rgba&quot;:127,dtype:175}],126:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;color-name&quot;),i=t(&quot;is-plain-obj&quot;),a=t(&quot;defined&quot;);e.exports=function(t){var e,s,l=[],c=1;if(&quot;string&quot;==typeof t)if(n[t])l=n[t].slice(),s=&quot;rgb&quot;;else if(&quot;transparent&quot;===t)c=0,s=&quot;rgb&quot;,l=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var u=(p=t.slice(1)).length;c=1,u&lt;=4?(l=[parseInt(p[0]+p[0],16),parseInt(p[1]+p[1],16),parseInt(p[2]+p[2],16)],4===u&amp;&amp;(c=parseInt(p[3]+p[3],16)/255)):(l=[parseInt(p[0]+p[1],16),parseInt(p[2]+p[3],16),parseInt(p[4]+p[5],16)],8===u&amp;&amp;(c=parseInt(p[6]+p[7],16)/255)),l[0]||(l[0]=0),l[1]||(l[1]=0),l[2]||(l[2]=0),s=&quot;rgb&quot;}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(t)){var f=e[1],h=&quot;rgb&quot;===f,p=f.replace(/a$/,&quot;&quot;);s=p;u=&quot;cmyk&quot;===p?4:&quot;gray&quot;===p?1:3;l=e[2].trim().split(/\s*,\s*/).map((function(t,e){if(/%$/.test(t))return e===u?parseFloat(t)/100:&quot;rgb&quot;===p?255*parseFloat(t)/100:parseFloat(t);if(&quot;h&quot;===p[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==o[t])return o[t]}return parseFloat(t)})),f===p&amp;&amp;l.push(1),c=h||void 0===l[u]?1:l[u],l=l.slice(0,u)}else t.length&gt;10&amp;&amp;/[0-9](?:\s|\/)/.test(t)&amp;&amp;(l=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),s=t.match(/([a-z])/gi).join(&quot;&quot;).toLowerCase());else if(isNaN(t))if(i(t)){var d=a(t.r,t.red,t.R,null);null!==d?(s=&quot;rgb&quot;,l=[d,a(t.g,t.green,t.G),a(t.b,t.blue,t.B)]):(s=&quot;hsl&quot;,l=[a(t.h,t.hue,t.H),a(t.s,t.saturation,t.S),a(t.l,t.lightness,t.L,t.b,t.brightness)]),c=a(t.a,t.alpha,t.opacity,1),null!=t.opacity&amp;&amp;(c/=100)}else(Array.isArray(t)||r.ArrayBuffer&amp;&amp;ArrayBuffer.isView&amp;&amp;ArrayBuffer.isView(t))&amp;&amp;(l=[t[0],t[1],t[2]],s=&quot;rgb&quot;,c=4===t.length?t[3]:1);else s=&quot;rgb&quot;,l=[t&gt;&gt;&gt;16,(65280&amp;t)&gt;&gt;&gt;8,255&amp;t];return{space:s,values:l,alpha:c}};var o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;color-name&quot;:124,defined:170,&quot;is-plain-obj&quot;:469}],127:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-parse&quot;),i=t(&quot;color-space/hsl&quot;),a=t(&quot;clamp&quot;);e.exports=function(t){var e,r=n(t);return r.space?((e=Array(3))[0]=a(r.values[0],0,255),e[1]=a(r.values[1],0,255),e[2]=a(r.values[2],0,255),&quot;h&quot;===r.space[0]&amp;&amp;(e=i.rgb(e)),e.push(a(r.alpha,0,1)),e):[]}},{clamp:120,&quot;color-parse&quot;:126,&quot;color-space/hsl&quot;:128}],128:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./rgb&quot;);e.exports={name:&quot;hsl&quot;,min:[0,0,0],max:[360,100,100],channel:[&quot;hue&quot;,&quot;saturation&quot;,&quot;lightness&quot;],alias:[&quot;HSL&quot;],rgb:function(t){var e,r,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[a=255*l,a,a];e=2*l-(r=l&lt;.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c&lt;3;c++)(n=o+1/3*-(c-1))&lt;0?n++:n&gt;1&amp;&amp;n--,a=6*n&lt;1?e+6*(r-e)*n:2*n&lt;1?r:3*n&lt;2?e+(r-e)*(2/3-n)*6:e,i[c]=255*a;return i}},n.hsl=function(t){var e,r,n=t[0]/255,i=t[1]/255,a=t[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o;return s===o?e=0:n===s?e=(i-a)/l:i===s?e=2+(a-n)/l:a===s&amp;&amp;(e=4+(n-i)/l),(e=Math.min(60*e,360))&lt;0&amp;&amp;(e+=360),r=(o+s)/2,[e,100*(s===o?0:r&lt;=.5?l/(s+o):l/(2-s-o)),100*r]}},{&quot;./rgb&quot;:129}],129:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;rgb&quot;,min:[0,0,0],max:[255,255,255],channel:[&quot;red&quot;,&quot;green&quot;,&quot;blue&quot;],alias:[&quot;RGB&quot;]}},{}],130:[function(t,e,r){e.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],cool:[{index:0,rgb:[0,255,255]},{index:1,rgb:[255,0,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],&quot;rainbow-soft&quot;:[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],&quot;freesurface-blue&quot;:[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],&quot;freesurface-red&quot;:[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],&quot;velocity-blue&quot;:[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],&quot;velocity-green&quot;:[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},{}],131:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./colorScale&quot;),i=t(&quot;lerp&quot;);function a(t){return[t[0]/255,t[1]/255,t[2]/255,t[3]]}function o(t){for(var e,r=&quot;#&quot;,n=0;n&lt;3;++n)r+=(&quot;00&quot;+(e=(e=t[n]).toString(16))).substr(e.length);return r}function s(t){return&quot;rgba(&quot;+t.join(&quot;,&quot;)+&quot;)&quot;}e.exports=function(t){var e,r,l,c,u,f,h,p,d,g;t||(t={});p=(t.nshades||72)-1,h=t.format||&quot;hex&quot;,(f=t.colormap)||(f=&quot;jet&quot;);if(&quot;string&quot;==typeof f){if(f=f.toLowerCase(),!n[f])throw Error(f+&quot; not a supported colorscale&quot;);u=n[f]}else{if(!Array.isArray(f))throw Error(&quot;unsupported colormap option&quot;,f);u=f.slice()}if(u.length&gt;p+1)throw new Error(f+&quot; map requires nshades to be at least size &quot;+u.length);d=Array.isArray(t.alpha)?2!==t.alpha.length?[1,1]:t.alpha.slice():&quot;number&quot;==typeof t.alpha?[t.alpha,t.alpha]:[1,1];e=u.map((function(t){return Math.round(t.index*p)})),d[0]=Math.min(Math.max(d[0],0),1),d[1]=Math.min(Math.max(d[1],0),1);var m=u.map((function(t,e){var r=u[e].index,n=u[e].rgb.slice();return 4===n.length&amp;&amp;n[3]&gt;=0&amp;&amp;n[3]&lt;=1||(n[3]=d[0]+(d[1]-d[0])*r),n})),v=[];for(g=0;g&lt;e.length-1;++g){c=e[g+1]-e[g],r=m[g],l=m[g+1];for(var y=0;y&lt;c;y++){var x=y/c;v.push([Math.round(i(r[0],l[0],x)),Math.round(i(r[1],l[1],x)),Math.round(i(r[2],l[2],x)),i(r[3],l[3],x)])}}v.push(u[u.length-1].rgb.concat(d[1])),&quot;hex&quot;===h?v=v.map(o):&quot;rgbaString&quot;===h?v=v.map(s):&quot;float&quot;===h&amp;&amp;(v=v.map(a));return v}},{&quot;./colorScale&quot;:130,lerp:472}],132:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a){var o=n(e,r,a);if(0===o){var s=i(n(t,e,r)),c=i(n(t,e,a));if(s===c){if(0===s){var u=l(t,e,r),f=l(t,e,a);return u===f?0:u?1:-1}return 0}return 0===c?s&gt;0||l(t,e,a)?-1:1:0===s?c&gt;0||l(t,e,r)?1:-1:i(c-s)}var h=n(t,e,r);return h&gt;0?o&gt;0&amp;&amp;n(t,e,a)&gt;0?1:-1:h&lt;0?o&gt;0||n(t,e,a)&gt;0?1:-1:n(t,e,a)&gt;0||l(t,e,r)?1:-1};var n=t(&quot;robust-orientation&quot;),i=t(&quot;signum&quot;),a=t(&quot;two-sum&quot;),o=t(&quot;robust-product&quot;),s=t(&quot;robust-sum&quot;);function l(t,e,r){var n=a(t[0],-e[0]),i=a(t[1],-e[1]),l=a(r[0],-e[0]),c=a(r[1],-e[1]),u=s(o(n,l),o(i,c));return u[u.length-1]&gt;=0}},{&quot;robust-orientation&quot;:548,&quot;robust-product&quot;:549,&quot;robust-sum&quot;:553,signum:554,&quot;two-sum&quot;:583}],133:[function(t,e,r){e.exports=function(t,e){var r=t.length,a=t.length-e.length;if(a)return a;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return t[0]+t[1]-e[0]-e[1]||n(t[0],t[1])-n(e[0],e[1]);case 3:var o=t[0]+t[1],s=e[0]+e[1];if(a=o+t[2]-(s+e[2]))return a;var l=n(t[0],t[1]),c=n(e[0],e[1]);return n(l,t[2])-n(c,e[2])||n(l+t[2],o)-n(c+e[2],s);case 4:var u=t[0],f=t[1],h=t[2],p=t[3],d=e[0],g=e[1],m=e[2],v=e[3];return u+f+h+p-(d+g+m+v)||n(u,f,h,p)-n(d,g,m,v,d)||n(u+f,u+h,u+p,f+h,f+p,h+p)-n(d+g,d+m,d+v,g+m,g+v,m+v)||n(u+f+h,u+f+p,u+h+p,f+h+p)-n(d+g+m,d+g+v,d+m+v,g+m+v);default:for(var y=t.slice().sort(i),x=e.slice().sort(i),b=0;b&lt;r;++b)if(a=y[b]-x[b])return a;return 0}};var n=Math.min;function i(t,e){return t-e}},{}],134:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;compare-cell&quot;),i=t(&quot;cell-orientation&quot;);e.exports=function(t,e){return n(t,e)||i(t)-i(e)}},{&quot;cell-orientation&quot;:117,&quot;compare-cell&quot;:133}],135:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/ch1d&quot;),i=t(&quot;./lib/ch2d&quot;),a=t(&quot;./lib/chnd&quot;);e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[[0]];var r=t[0].length;if(0===r)return[];if(1===r)return n(t);if(2===r)return i(t);return a(t,r)}},{&quot;./lib/ch1d&quot;:136,&quot;./lib/ch2d&quot;:137,&quot;./lib/chnd&quot;:138}],136:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=0,r=0,n=1;n&lt;t.length;++n)t[n][0]&lt;t[e][0]&amp;&amp;(e=n),t[n][0]&gt;t[r][0]&amp;&amp;(r=n);return e&lt;r?[[e],[r]]:e&gt;r?[[r],[e]]:[[e]]}},{}],137:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=n(t),r=e.length;if(r&lt;=2)return[];for(var i=new Array(r),a=e[r-1],o=0;o&lt;r;++o){var s=e[o];i[o]=[a,s],a=s}return i};var n=t(&quot;monotone-convex-hull-2d&quot;)},{&quot;monotone-convex-hull-2d&quot;:482}],138:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){try{return n(t,!0)}catch(o){var r=i(t);if(r.length&lt;=e)return[];var a=function(t,e){for(var r=t.length,n=new Array(r),i=0;i&lt;e.length;++i)n[i]=t[e[i]];var a=e.length;for(i=0;i&lt;r;++i)e.indexOf(i)&lt;0&amp;&amp;(n[a++]=t[i]);return n}(t,r);return function(t,e){for(var r=t.length,n=e.length,i=0;i&lt;r;++i)for(var a=t[i],o=0;o&lt;a.length;++o){var s=a[o];if(s&lt;n)a[o]=e[s];else{s-=n;for(var l=0;l&lt;n;++l)s&gt;=e[l]&amp;&amp;(s+=1);a[o]=s}}return t}(n(a,!0),r)}};var n=t(&quot;incremental-convex-hull&quot;),i=t(&quot;affine-hull&quot;)},{&quot;affine-hull&quot;:67,&quot;incremental-convex-hull&quot;:459}],139:[function(t,e,r){e.exports={AFG:&quot;afghan&quot;,ALA:&quot;\\b\\wland&quot;,ALB:&quot;albania&quot;,DZA:&quot;algeria&quot;,ASM:&quot;^(?=.*americ).*samoa&quot;,AND:&quot;andorra&quot;,AGO:&quot;angola&quot;,AIA:&quot;anguill?a&quot;,ATA:&quot;antarctica&quot;,ATG:&quot;antigua&quot;,ARG:&quot;argentin&quot;,ARM:&quot;armenia&quot;,ABW:&quot;^(?!.*bonaire).*\\baruba&quot;,AUS:&quot;australia&quot;,AUT:&quot;^(?!.*hungary).*austria|\\baustri.*\\bemp&quot;,AZE:&quot;azerbaijan&quot;,BHS:&quot;bahamas&quot;,BHR:&quot;bahrain&quot;,BGD:&quot;bangladesh|^(?=.*east).*paki?stan&quot;,BRB:&quot;barbados&quot;,BLR:&quot;belarus|byelo&quot;,BEL:&quot;^(?!.*luxem).*belgium&quot;,BLZ:&quot;belize|^(?=.*british).*honduras&quot;,BEN:&quot;benin|dahome&quot;,BMU:&quot;bermuda&quot;,BTN:&quot;bhutan&quot;,BOL:&quot;bolivia&quot;,BES:&quot;^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands&quot;,BIH:&quot;herzegovina|bosnia&quot;,BWA:&quot;botswana|bechuana&quot;,BVT:&quot;bouvet&quot;,BRA:&quot;brazil&quot;,IOT:&quot;british.?indian.?ocean&quot;,BRN:&quot;brunei&quot;,BGR:&quot;bulgaria&quot;,BFA:&quot;burkina|\\bfaso|upper.?volta&quot;,BDI:&quot;burundi&quot;,CPV:&quot;verde&quot;,KHM:&quot;cambodia|kampuchea|khmer&quot;,CMR:&quot;cameroon&quot;,CAN:&quot;canada&quot;,CYM:&quot;cayman&quot;,CAF:&quot;\\bcentral.african.republic&quot;,TCD:&quot;\\bchad&quot;,CHL:&quot;\\bchile&quot;,CHN:&quot;^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china&quot;,CXR:&quot;christmas&quot;,CCK:&quot;\\bcocos|keeling&quot;,COL:&quot;colombia&quot;,COM:&quot;comoro&quot;,COG:&quot;^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo&quot;,COK:&quot;\\bcook&quot;,CRI:&quot;costa.?rica&quot;,CIV:&quot;ivoire|ivory&quot;,HRV:&quot;croatia&quot;,CUB:&quot;\\bcuba&quot;,CUW:&quot;^(?!.*bonaire).*\\bcura(c|\xe7)ao&quot;,CYP:&quot;cyprus&quot;,CSK:&quot;czechoslovakia&quot;,CZE:&quot;^(?=.*rep).*czech|czechia|bohemia&quot;,COD:&quot;\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc&quot;,DNK:&quot;denmark&quot;,DJI:&quot;djibouti&quot;,DMA:&quot;dominica(?!n)&quot;,DOM:&quot;dominican.rep&quot;,ECU:&quot;ecuador&quot;,EGY:&quot;egypt&quot;,SLV:&quot;el.?salvador&quot;,GNQ:&quot;guine.*eq|eq.*guine|^(?=.*span).*guinea&quot;,ERI:&quot;eritrea&quot;,EST:&quot;estonia&quot;,ETH:&quot;ethiopia|abyssinia&quot;,FLK:&quot;falkland|malvinas&quot;,FRO:&quot;faroe|faeroe&quot;,FJI:&quot;fiji&quot;,FIN:&quot;finland&quot;,FRA:&quot;^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul&quot;,GUF:&quot;^(?=.*french).*guiana&quot;,PYF:&quot;french.?polynesia|tahiti&quot;,ATF:&quot;french.?southern&quot;,GAB:&quot;gabon&quot;,GMB:&quot;gambia&quot;,GEO:&quot;^(?!.*south).*georgia&quot;,DDR:&quot;german.?democratic.?republic|democratic.?republic.*germany|east.germany&quot;,DEU:&quot;^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german&quot;,GHA:&quot;ghana|gold.?coast&quot;,GIB:&quot;gibraltar&quot;,GRC:&quot;greece|hellenic|hellas&quot;,GRL:&quot;greenland&quot;,GRD:&quot;grenada&quot;,GLP:&quot;guadeloupe&quot;,GUM:&quot;\\bguam&quot;,GTM:&quot;guatemala&quot;,GGY:&quot;guernsey&quot;,GIN:&quot;^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea&quot;,GNB:&quot;bissau|^(?=.*portu).*guinea&quot;,GUY:&quot;guyana|british.?guiana&quot;,HTI:&quot;haiti&quot;,HMD:&quot;heard.*mcdonald&quot;,VAT:&quot;holy.?see|vatican|papal.?st&quot;,HND:&quot;^(?!.*brit).*honduras&quot;,HKG:&quot;hong.?kong&quot;,HUN:&quot;^(?!.*austr).*hungary&quot;,ISL:&quot;iceland&quot;,IND:&quot;india(?!.*ocea)&quot;,IDN:&quot;indonesia&quot;,IRN:&quot;\\biran|persia&quot;,IRQ:&quot;\\biraq|mesopotamia&quot;,IRL:&quot;(^ireland)|(^republic.*ireland)&quot;,IMN:&quot;^(?=.*isle).*\\bman&quot;,ISR:&quot;israel&quot;,ITA:&quot;italy&quot;,JAM:&quot;jamaica&quot;,JPN:&quot;japan&quot;,JEY:&quot;jersey&quot;,JOR:&quot;jordan&quot;,KAZ:&quot;kazak&quot;,KEN:&quot;kenya|british.?east.?africa|east.?africa.?prot&quot;,KIR:&quot;kiribati&quot;,PRK:&quot;^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)&quot;,KWT:&quot;kuwait&quot;,KGZ:&quot;kyrgyz|kirghiz&quot;,LAO:&quot;\\blaos?\\b&quot;,LVA:&quot;latvia&quot;,LBN:&quot;lebanon&quot;,LSO:&quot;lesotho|basuto&quot;,LBR:&quot;liberia&quot;,LBY:&quot;libya&quot;,LIE:&quot;liechtenstein&quot;,LTU:&quot;lithuania&quot;,LUX:&quot;^(?!.*belg).*luxem&quot;,MAC:&quot;maca(o|u)&quot;,MDG:&quot;madagascar|malagasy&quot;,MWI:&quot;malawi|nyasa&quot;,MYS:&quot;malaysia&quot;,MDV:&quot;maldive&quot;,MLI:&quot;\\bmali\\b&quot;,MLT:&quot;\\bmalta&quot;,MHL:&quot;marshall&quot;,MTQ:&quot;martinique&quot;,MRT:&quot;mauritania&quot;,MUS:&quot;mauritius&quot;,MYT:&quot;\\bmayotte&quot;,MEX:&quot;\\bmexic&quot;,FSM:&quot;fed.*micronesia|micronesia.*fed&quot;,MCO:&quot;monaco&quot;,MNG:&quot;mongolia&quot;,MNE:&quot;^(?!.*serbia).*montenegro&quot;,MSR:&quot;montserrat&quot;,MAR:&quot;morocco|\\bmaroc&quot;,MOZ:&quot;mozambique&quot;,MMR:&quot;myanmar|burma&quot;,NAM:&quot;namibia&quot;,NRU:&quot;nauru&quot;,NPL:&quot;nepal&quot;,NLD:&quot;^(?!.*\\bant)(?!.*\\bcarib).*netherlands&quot;,ANT:&quot;^(?=.*\\bant).*(nether|dutch)&quot;,NCL:&quot;new.?caledonia&quot;,NZL:&quot;new.?zealand&quot;,NIC:&quot;nicaragua&quot;,NER:&quot;\\bniger(?!ia)&quot;,NGA:&quot;nigeria&quot;,NIU:&quot;niue&quot;,NFK:&quot;norfolk&quot;,MNP:&quot;mariana&quot;,NOR:&quot;norway&quot;,OMN:&quot;\\boman|trucial&quot;,PAK:&quot;^(?!.*east).*paki?stan&quot;,PLW:&quot;palau&quot;,PSE:&quot;palestin|\\bgaza|west.?bank&quot;,PAN:&quot;panama&quot;,PNG:&quot;papua|new.?guinea&quot;,PRY:&quot;paraguay&quot;,PER:&quot;peru&quot;,PHL:&quot;philippines&quot;,PCN:&quot;pitcairn&quot;,POL:&quot;poland&quot;,PRT:&quot;portugal&quot;,PRI:&quot;puerto.?rico&quot;,QAT:&quot;qatar&quot;,KOR:&quot;^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)&quot;,MDA:&quot;moldov|b(a|e)ssarabia&quot;,REU:&quot;r(e|\xe9)union&quot;,ROU:&quot;r(o|u|ou)mania&quot;,RUS:&quot;\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics&quot;,RWA:&quot;rwanda&quot;,BLM:&quot;barth(e|\xe9)lemy&quot;,SHN:&quot;helena&quot;,KNA:&quot;kitts|\\bnevis&quot;,LCA:&quot;\\blucia&quot;,MAF:&quot;^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)&quot;,SPM:&quot;miquelon&quot;,VCT:&quot;vincent&quot;,WSM:&quot;^(?!.*amer).*samoa&quot;,SMR:&quot;san.?marino&quot;,STP:&quot;\\bs(a|\xe3)o.?tom(e|\xe9)&quot;,SAU:&quot;\\bsa\\w*.?arabia&quot;,SEN:&quot;senegal&quot;,SRB:&quot;^(?!.*monte).*serbia&quot;,SYC:&quot;seychell&quot;,SLE:&quot;sierra&quot;,SGP:&quot;singapore&quot;,SXM:&quot;^(?!.*martin)(?!.*saba).*maarten&quot;,SVK:&quot;^(?!.*cze).*slovak&quot;,SVN:&quot;slovenia&quot;,SLB:&quot;solomon&quot;,SOM:&quot;somali&quot;,ZAF:&quot;south.africa|s\\\\..?africa&quot;,SGS:&quot;south.?georgia|sandwich&quot;,SSD:&quot;\\bs\\w*.?sudan&quot;,ESP:&quot;spain&quot;,LKA:&quot;sri.?lanka|ceylon&quot;,SDN:&quot;^(?!.*\\bs(?!u)).*sudan&quot;,SUR:&quot;surinam|dutch.?guiana&quot;,SJM:&quot;svalbard&quot;,SWZ:&quot;swaziland&quot;,SWE:&quot;sweden&quot;,CHE:&quot;switz|swiss&quot;,SYR:&quot;syria&quot;,TWN:&quot;taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china&quot;,TJK:&quot;tajik&quot;,THA:&quot;thailand|\\bsiam&quot;,MKD:&quot;macedonia|fyrom&quot;,TLS:&quot;^(?=.*leste).*timor|^(?=.*east).*timor&quot;,TGO:&quot;togo&quot;,TKL:&quot;tokelau&quot;,TON:&quot;tonga&quot;,TTO:&quot;trinidad|tobago&quot;,TUN:&quot;tunisia&quot;,TUR:&quot;turkey&quot;,TKM:&quot;turkmen&quot;,TCA:&quot;turks&quot;,TUV:&quot;tuvalu&quot;,UGA:&quot;uganda&quot;,UKR:&quot;ukrain&quot;,ARE:&quot;emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em&quot;,GBR:&quot;united.?kingdom|britain|^u\\.?k\\.?$&quot;,TZA:&quot;tanzania&quot;,USA:&quot;united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)&quot;,UMI:&quot;minor.?outlying.?is&quot;,URY:&quot;uruguay&quot;,UZB:&quot;uzbek&quot;,VUT:&quot;vanuatu|new.?hebrides&quot;,VEN:&quot;venezuela&quot;,VNM:&quot;^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam&quot;,VGB:&quot;^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin&quot;,VIR:&quot;^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin&quot;,WLF:&quot;futuna|wallis&quot;,ESH:&quot;western.sahara&quot;,YEM:&quot;^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen&quot;,YMD:&quot;^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen&quot;,YUG:&quot;yugoslavia&quot;,ZMB:&quot;zambia|northern.?rhodesia&quot;,EAZ:&quot;zanzibar&quot;,ZWE:&quot;zimbabwe|^(?!.*northern).*rhodesia&quot;}},{}],140:[function(t,e,r){e.exports=[&quot;xx-small&quot;,&quot;x-small&quot;,&quot;small&quot;,&quot;medium&quot;,&quot;large&quot;,&quot;x-large&quot;,&quot;xx-large&quot;,&quot;larger&quot;,&quot;smaller&quot;]},{}],141:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;condensed&quot;,&quot;semi-condensed&quot;,&quot;extra-condensed&quot;,&quot;ultra-condensed&quot;,&quot;expanded&quot;,&quot;semi-expanded&quot;,&quot;extra-expanded&quot;,&quot;ultra-expanded&quot;]},{}],142:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;italic&quot;,&quot;oblique&quot;]},{}],143:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;bold&quot;,&quot;bolder&quot;,&quot;lighter&quot;,&quot;100&quot;,&quot;200&quot;,&quot;300&quot;,&quot;400&quot;,&quot;500&quot;,&quot;600&quot;,&quot;700&quot;,&quot;800&quot;,&quot;900&quot;]},{}],144:[function(t,e,r){&quot;use strict&quot;;e.exports={parse:t(&quot;./parse&quot;),stringify:t(&quot;./stringify&quot;)}},{&quot;./parse&quot;:146,&quot;./stringify&quot;:147}],145:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font-size-keywords&quot;);e.exports={isSize:function(t){return/^[\d\.]/.test(t)||-1!==t.indexOf(&quot;/&quot;)||-1!==n.indexOf(t)}}},{&quot;css-font-size-keywords&quot;:140}],146:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;unquote&quot;),i=t(&quot;css-global-keywords&quot;),a=t(&quot;css-system-font-keywords&quot;),o=t(&quot;css-font-weight-keywords&quot;),s=t(&quot;css-font-style-keywords&quot;),l=t(&quot;css-font-stretch-keywords&quot;),c=t(&quot;string-split-by&quot;),u=t(&quot;./lib/util&quot;).isSize;e.exports=h;var f=h.cache={};function h(t){if(&quot;string&quot;!=typeof t)throw new Error(&quot;Font argument must be a string.&quot;);if(f[t])return f[t];if(&quot;&quot;===t)throw new Error(&quot;Cannot parse an empty string.&quot;);if(-1!==a.indexOf(t))return f[t]={system:t};for(var e,r={style:&quot;normal&quot;,variant:&quot;normal&quot;,weight:&quot;normal&quot;,stretch:&quot;normal&quot;,lineHeight:&quot;normal&quot;,size:&quot;1rem&quot;,family:[&quot;serif&quot;]},h=c(t,/\s+/);e=h.shift();){if(-1!==i.indexOf(e))return[&quot;style&quot;,&quot;variant&quot;,&quot;weight&quot;,&quot;stretch&quot;].forEach((function(t){r[t]=e})),f[t]=r;if(-1===s.indexOf(e))if(&quot;normal&quot;!==e&amp;&amp;&quot;small-caps&quot;!==e)if(-1===l.indexOf(e)){if(-1===o.indexOf(e)){if(u(e)){var d=c(e,&quot;/&quot;);if(r.size=d[0],null!=d[1]?r.lineHeight=p(d[1]):&quot;/&quot;===h[0]&amp;&amp;(h.shift(),r.lineHeight=p(h.shift())),!h.length)throw new Error(&quot;Missing required font-family.&quot;);return r.family=c(h.join(&quot; &quot;),/\s*,\s*/).map(n),f[t]=r}throw new Error(&quot;Unknown or unsupported font token: &quot;+e)}r.weight=e}else r.stretch=e;else r.variant=e;else r.style=e}throw new Error(&quot;Missing required font-size.&quot;)}function p(t){var e=parseFloat(t);return e.toString()===t?e:t}},{&quot;./lib/util&quot;:145,&quot;css-font-stretch-keywords&quot;:141,&quot;css-font-style-keywords&quot;:142,&quot;css-font-weight-keywords&quot;:143,&quot;css-global-keywords&quot;:148,&quot;css-system-font-keywords&quot;:149,&quot;string-split-by&quot;:568,unquote:598}],147:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;),i=t(&quot;./lib/util&quot;).isSize,a=g(t(&quot;css-global-keywords&quot;)),o=g(t(&quot;css-system-font-keywords&quot;)),s=g(t(&quot;css-font-weight-keywords&quot;)),l=g(t(&quot;css-font-style-keywords&quot;)),c=g(t(&quot;css-font-stretch-keywords&quot;)),u={normal:1,&quot;small-caps&quot;:1},f={serif:1,&quot;sans-serif&quot;:1,monospace:1,cursive:1,fantasy:1,&quot;system-ui&quot;:1},h=&quot;1rem&quot;,p=&quot;serif&quot;;function d(t,e){if(t&amp;&amp;!e[t]&amp;&amp;!a[t])throw Error(&quot;Unknown keyword `&quot;+t+&quot;`&quot;);return t}function g(t){for(var e={},r=0;r&lt;t.length;r++)e[t[r]]=1;return e}e.exports=function(t){if((t=n(t,{style:&quot;style fontstyle fontStyle font-style slope distinction&quot;,variant:&quot;variant font-variant fontVariant fontvariant var capitalization&quot;,weight:&quot;weight w font-weight fontWeight fontweight&quot;,stretch:&quot;stretch font-stretch fontStretch fontstretch width&quot;,size:&quot;size s font-size fontSize fontsize height em emSize&quot;,lineHeight:&quot;lh line-height lineHeight lineheight leading&quot;,family:&quot;font family fontFamily font-family fontfamily type typeface face&quot;,system:&quot;system reserved default global&quot;})).system)return t.system&amp;&amp;d(t.system,o),t.system;if(d(t.style,l),d(t.variant,u),d(t.weight,s),d(t.stretch,c),null==t.size&amp;&amp;(t.size=h),&quot;number&quot;==typeof t.size&amp;&amp;(t.size+=&quot;px&quot;),!i)throw Error(&quot;Bad size value `&quot;+t.size+&quot;`&quot;);t.family||(t.family=p),Array.isArray(t.family)&amp;&amp;(t.family.length||(t.family=[p]),t.family=t.family.map((function(t){return f[t]?t:'&quot;'+t+'&quot;'})).join(&quot;, &quot;));var e=[];return e.push(t.style),t.variant!==t.style&amp;&amp;e.push(t.variant),t.weight!==t.variant&amp;&amp;t.weight!==t.style&amp;&amp;e.push(t.weight),t.stretch!==t.weight&amp;&amp;t.stretch!==t.variant&amp;&amp;t.stretch!==t.style&amp;&amp;e.push(t.stretch),e.push(t.size+(null==t.lineHeight||&quot;normal&quot;===t.lineHeight||t.lineHeight+&quot;&quot;==&quot;1&quot;?&quot;&quot;:&quot;/&quot;+t.lineHeight)),e.push(t.family),e.filter(Boolean).join(&quot; &quot;)}},{&quot;./lib/util&quot;:145,&quot;css-font-stretch-keywords&quot;:141,&quot;css-font-style-keywords&quot;:142,&quot;css-font-weight-keywords&quot;:143,&quot;css-global-keywords&quot;:148,&quot;css-system-font-keywords&quot;:149,&quot;pick-by-alias&quot;:511}],148:[function(t,e,r){e.exports=[&quot;inherit&quot;,&quot;initial&quot;,&quot;unset&quot;]},{}],149:[function(t,e,r){e.exports=[&quot;caption&quot;,&quot;icon&quot;,&quot;menu&quot;,&quot;message-box&quot;,&quot;small-caption&quot;,&quot;status-bar&quot;]},{}],150:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a){var o=i-1,s=i*i,l=o*o,c=(1+2*i)*l,u=i*l,f=s*(3-2*i),h=s*o;if(t.length){a||(a=new Array(t.length));for(var p=t.length-1;p&gt;=0;--p)a[p]=c*t[p]+u*e[p]+f*r[p]+h*n[p];return a}return c*t+u*e+f*r+h*n},e.exports.derivative=function(t,e,r,n,i,a){var o=6*i*i-6*i,s=3*i*i-4*i+1,l=-6*i*i+6*i,c=3*i*i-2*i;if(t.length){a||(a=new Array(t.length));for(var u=t.length-1;u&gt;=0;--u)a[u]=o*t[u]+s*e[u]+l*r[u]+c*n[u];return a}return o*t+s*e+l*r[u]+c*n}},{}],151:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/thunk.js&quot;);function i(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName=&quot;&quot;,this.pre=null,this.body=null,this.post=null,this.debug=!1}e.exports=function(t){var e=new i;e.pre=t.pre,e.body=t.body,e.post=t.post;var r=t.args.slice(0);e.argTypes=r;for(var a=0;a&lt;r.length;++a){var o=r[a];if(&quot;array&quot;===o||&quot;object&quot;==typeof o&amp;&amp;o.blockIndices){if(e.argTypes[a]=&quot;array&quot;,e.arrayArgs.push(a),e.arrayBlockIndices.push(o.blockIndices?o.blockIndices:0),e.shimArgs.push(&quot;array&quot;+a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].count&gt;0)throw new Error(&quot;cwise: pre() block may not reference array args&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].count&gt;0)throw new Error(&quot;cwise: post() block may not reference array args&quot;)}else if(&quot;scalar&quot;===o)e.scalarArgs.push(a),e.shimArgs.push(&quot;scalar&quot;+a);else if(&quot;index&quot;===o){if(e.indexArgs.push(a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].count&gt;0)throw new Error(&quot;cwise: pre() block may not reference array index&quot;);if(a&lt;e.body.args.length&amp;&amp;e.body.args[a].lvalue)throw new Error(&quot;cwise: body() block may not write to array index&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].count&gt;0)throw new Error(&quot;cwise: post() block may not reference array index&quot;)}else if(&quot;shape&quot;===o){if(e.shapeArgs.push(a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].lvalue)throw new Error(&quot;cwise: pre() block may not write to array shape&quot;);if(a&lt;e.body.args.length&amp;&amp;e.body.args[a].lvalue)throw new Error(&quot;cwise: body() block may not write to array shape&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].lvalue)throw new Error(&quot;cwise: post() block may not write to array shape&quot;)}else{if(&quot;object&quot;!=typeof o||!o.offset)throw new Error(&quot;cwise: Unknown argument type &quot;+r[a]);e.argTypes[a]=&quot;offset&quot;,e.offsetArgs.push({array:o.array,offset:o.offset}),e.offsetArgIndex.push(a)}}if(e.arrayArgs.length&lt;=0)throw new Error(&quot;cwise: No array arguments specified&quot;);if(e.pre.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in pre() block&quot;);if(e.body.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in body() block&quot;);if(e.post.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in post() block&quot;);return e.debug=!!t.printCode||!!t.debug,e.funcName=t.funcName||&quot;cwise&quot;,e.blockSize=t.blockSize||64,n(e)}},{&quot;./lib/thunk.js&quot;:153}],152:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;uniq&quot;);function i(t,e,r){var n,i,a=t.length,o=e.arrayArgs.length,s=e.indexArgs.length&gt;0,l=[],c=[],u=0,f=0;for(n=0;n&lt;a;++n)c.push([&quot;i&quot;,n,&quot;=0&quot;].join(&quot;&quot;));for(i=0;i&lt;o;++i)for(n=0;n&lt;a;++n)f=u,u=t[n],0===n?c.push([&quot;d&quot;,i,&quot;s&quot;,n,&quot;=t&quot;,i,&quot;p&quot;,u].join(&quot;&quot;)):c.push([&quot;d&quot;,i,&quot;s&quot;,n,&quot;=(t&quot;,i,&quot;p&quot;,u,&quot;-s&quot;,f,&quot;*t&quot;,i,&quot;p&quot;,f,&quot;)&quot;].join(&quot;&quot;));for(c.length&gt;0&amp;&amp;l.push(&quot;var &quot;+c.join(&quot;,&quot;)),n=a-1;n&gt;=0;--n)u=t[n],l.push([&quot;for(i&quot;,n,&quot;=0;i&quot;,n,&quot;&lt;s&quot;,u,&quot;;++i&quot;,n,&quot;){&quot;].join(&quot;&quot;));for(l.push(r),n=0;n&lt;a;++n){for(f=u,u=t[n],i=0;i&lt;o;++i)l.push([&quot;p&quot;,i,&quot;+=d&quot;,i,&quot;s&quot;,n].join(&quot;&quot;));s&amp;&amp;(n&gt;0&amp;&amp;l.push([&quot;index[&quot;,f,&quot;]-=s&quot;,f].join(&quot;&quot;)),l.push([&quot;++index[&quot;,u,&quot;]&quot;].join(&quot;&quot;))),l.push(&quot;}&quot;)}return l.join(&quot;\n&quot;)}function a(t,e,r){for(var n=t.body,i=[],a=[],o=0;o&lt;t.args.length;++o){var s=t.args[o];if(!(s.count&lt;=0)){var l=new RegExp(s.name,&quot;g&quot;),c=&quot;&quot;,u=e.arrayArgs.indexOf(o);switch(e.argTypes[o]){case&quot;offset&quot;:var f=e.offsetArgIndex.indexOf(o);u=e.offsetArgs[f].array,c=&quot;+q&quot;+f;case&quot;array&quot;:c=&quot;p&quot;+u+c;var h=&quot;l&quot;+o,p=&quot;a&quot;+u;if(0===e.arrayBlockIndices[u])1===s.count?&quot;generic&quot;===r[u]?s.lvalue?(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)),n=n.replace(l,h),a.push([p,&quot;.set(&quot;,c,&quot;,&quot;,h,&quot;)&quot;].join(&quot;&quot;))):n=n.replace(l,[p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)):n=n.replace(l,[p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;)):&quot;generic&quot;===r[u]?(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)),n=n.replace(l,h),s.lvalue&amp;&amp;a.push([p,&quot;.set(&quot;,c,&quot;,&quot;,h,&quot;)&quot;].join(&quot;&quot;))):(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;)),n=n.replace(l,h),s.lvalue&amp;&amp;a.push([p,&quot;[&quot;,c,&quot;]=&quot;,h].join(&quot;&quot;)));else{for(var d=[s.name],g=[c],m=0;m&lt;Math.abs(e.arrayBlockIndices[u]);m++)d.push(&quot;\\s*\\[([^\\]]+)\\]&quot;),g.push(&quot;$&quot;+(m+1)+&quot;*t&quot;+u+&quot;b&quot;+m);if(l=new RegExp(d.join(&quot;&quot;),&quot;g&quot;),c=g.join(&quot;+&quot;),&quot;generic&quot;===r[u])throw new Error(&quot;cwise: Generic arrays not supported in combination with blocks!&quot;);n=n.replace(l,[p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;))}break;case&quot;scalar&quot;:n=n.replace(l,&quot;Y&quot;+e.scalarArgs.indexOf(o));break;case&quot;index&quot;:n=n.replace(l,&quot;index&quot;);break;case&quot;shape&quot;:n=n.replace(l,&quot;shape&quot;)}}}return[i.join(&quot;\n&quot;),n,a.join(&quot;\n&quot;)].join(&quot;\n&quot;).trim()}function o(t){for(var e=new Array(t.length),r=!0,n=0;n&lt;t.length;++n){var i=t[n],a=i.match(/\d+/);a=a?a[0]:&quot;&quot;,0===i.charAt(0)?e[n]=&quot;u&quot;+i.charAt(1)+a:e[n]=i.charAt(0)+a,n&gt;0&amp;&amp;(r=r&amp;&amp;e[n]===e[n-1])}return r?e[0]:e.join(&quot;&quot;)}e.exports=function(t,e){for(var r=e[1].length-Math.abs(t.arrayBlockIndices[0])|0,s=new Array(t.arrayArgs.length),l=new Array(t.arrayArgs.length),c=0;c&lt;t.arrayArgs.length;++c)l[c]=e[2*c],s[c]=e[2*c+1];var u=[],f=[],h=[],p=[],d=[];for(c=0;c&lt;t.arrayArgs.length;++c){t.arrayBlockIndices[c]&lt;0?(h.push(0),p.push(r),u.push(r),f.push(r+t.arrayBlockIndices[c])):(h.push(t.arrayBlockIndices[c]),p.push(t.arrayBlockIndices[c]+r),u.push(0),f.push(t.arrayBlockIndices[c]));for(var g=[],m=0;m&lt;s[c].length;m++)h[c]&lt;=s[c][m]&amp;&amp;s[c][m]&lt;p[c]&amp;&amp;g.push(s[c][m]-h[c]);d.push(g)}var v=[&quot;SS&quot;],y=[&quot;'use strict'&quot;],x=[];for(m=0;m&lt;r;++m)x.push([&quot;s&quot;,m,&quot;=SS[&quot;,m,&quot;]&quot;].join(&quot;&quot;));for(c=0;c&lt;t.arrayArgs.length;++c){v.push(&quot;a&quot;+c),v.push(&quot;t&quot;+c),v.push(&quot;p&quot;+c);for(m=0;m&lt;r;++m)x.push([&quot;t&quot;,c,&quot;p&quot;,m,&quot;=t&quot;,c,&quot;[&quot;,h[c]+m,&quot;]&quot;].join(&quot;&quot;));for(m=0;m&lt;Math.abs(t.arrayBlockIndices[c]);++m)x.push([&quot;t&quot;,c,&quot;b&quot;,m,&quot;=t&quot;,c,&quot;[&quot;,u[c]+m,&quot;]&quot;].join(&quot;&quot;))}for(c=0;c&lt;t.scalarArgs.length;++c)v.push(&quot;Y&quot;+c);if(t.shapeArgs.length&gt;0&amp;&amp;x.push(&quot;shape=SS.slice(0)&quot;),t.indexArgs.length&gt;0){var b=new Array(r);for(c=0;c&lt;r;++c)b[c]=&quot;0&quot;;x.push([&quot;index=[&quot;,b.join(&quot;,&quot;),&quot;]&quot;].join(&quot;&quot;))}for(c=0;c&lt;t.offsetArgs.length;++c){var _=t.offsetArgs[c],w=[];for(m=0;m&lt;_.offset.length;++m)0!==_.offset[m]&amp;&amp;(1===_.offset[m]?w.push([&quot;t&quot;,_.array,&quot;p&quot;,m].join(&quot;&quot;)):w.push([_.offset[m],&quot;*t&quot;,_.array,&quot;p&quot;,m].join(&quot;&quot;)));0===w.length?x.push(&quot;q&quot;+c+&quot;=0&quot;):x.push([&quot;q&quot;,c,&quot;=&quot;,w.join(&quot;+&quot;)].join(&quot;&quot;))}var T=n([].concat(t.pre.thisVars).concat(t.body.thisVars).concat(t.post.thisVars));for((x=x.concat(T)).length&gt;0&amp;&amp;y.push(&quot;var &quot;+x.join(&quot;,&quot;)),c=0;c&lt;t.arrayArgs.length;++c)y.push(&quot;p&quot;+c+&quot;|=0&quot;);t.pre.body.length&gt;3&amp;&amp;y.push(a(t.pre,t,l));var k=a(t.body,t,l),M=function(t){for(var e=0,r=t[0].length;e&lt;r;){for(var n=1;n&lt;t.length;++n)if(t[n][e]!==t[0][e])return e;++e}return e}(d);M&lt;r?y.push(function(t,e,r,n){for(var a=e.length,o=r.arrayArgs.length,s=r.blockSize,l=r.indexArgs.length&gt;0,c=[],u=0;u&lt;o;++u)c.push([&quot;var offset&quot;,u,&quot;=p&quot;,u].join(&quot;&quot;));for(u=t;u&lt;a;++u)c.push([&quot;for(var j&quot;+u+&quot;=SS[&quot;,e[u],&quot;]|0;j&quot;,u,&quot;&gt;0;){&quot;].join(&quot;&quot;)),c.push([&quot;if(j&quot;,u,&quot;&lt;&quot;,s,&quot;){&quot;].join(&quot;&quot;)),c.push([&quot;s&quot;,e[u],&quot;=j&quot;,u].join(&quot;&quot;)),c.push([&quot;j&quot;,u,&quot;=0&quot;].join(&quot;&quot;)),c.push([&quot;}else{s&quot;,e[u],&quot;=&quot;,s].join(&quot;&quot;)),c.push([&quot;j&quot;,u,&quot;-=&quot;,s,&quot;}&quot;].join(&quot;&quot;)),l&amp;&amp;c.push([&quot;index[&quot;,e[u],&quot;]=j&quot;,u].join(&quot;&quot;));for(u=0;u&lt;o;++u){for(var f=[&quot;offset&quot;+u],h=t;h&lt;a;++h)f.push([&quot;j&quot;,h,&quot;*t&quot;,u,&quot;p&quot;,e[h]].join(&quot;&quot;));c.push([&quot;p&quot;,u,&quot;=(&quot;,f.join(&quot;+&quot;),&quot;)&quot;].join(&quot;&quot;))}for(c.push(i(e,r,n)),u=t;u&lt;a;++u)c.push(&quot;}&quot;);return c.join(&quot;\n&quot;)}(M,d[0],t,k)):y.push(i(d[0],t,k)),t.post.body.length&gt;3&amp;&amp;y.push(a(t.post,t,l)),t.debug&amp;&amp;console.log(&quot;-----Generated cwise routine for &quot;,e,&quot;:\n&quot;+y.join(&quot;\n&quot;)+&quot;\n----------&quot;);var A=[t.funcName||&quot;unnamed&quot;,&quot;_cwise_loop_&quot;,s[0].join(&quot;s&quot;),&quot;m&quot;,M,o(l)].join(&quot;&quot;);return new Function([&quot;function &quot;,A,&quot;(&quot;,v.join(&quot;,&quot;),&quot;){&quot;,y.join(&quot;\n&quot;),&quot;} return &quot;,A].join(&quot;&quot;))()}},{uniq:597}],153:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./compile.js&quot;);e.exports=function(t){var e=[&quot;'use strict'&quot;,&quot;var CACHED={}&quot;],r=[],i=t.funcName+&quot;_cwise_thunk&quot;;e.push([&quot;return function &quot;,i,&quot;(&quot;,t.shimArgs.join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));for(var a=[],o=[],s=[[&quot;array&quot;,t.arrayArgs[0],&quot;.shape.slice(&quot;,Math.max(0,t.arrayBlockIndices[0]),t.arrayBlockIndices[0]&lt;0?&quot;,&quot;+t.arrayBlockIndices[0]+&quot;)&quot;:&quot;)&quot;].join(&quot;&quot;)],l=[],c=[],u=0;u&lt;t.arrayArgs.length;++u){var f=t.arrayArgs[u];r.push([&quot;t&quot;,f,&quot;=array&quot;,f,&quot;.dtype,&quot;,&quot;r&quot;,f,&quot;=array&quot;,f,&quot;.order&quot;].join(&quot;&quot;)),a.push(&quot;t&quot;+f),a.push(&quot;r&quot;+f),o.push(&quot;t&quot;+f),o.push(&quot;r&quot;+f+&quot;.join()&quot;),s.push(&quot;array&quot;+f+&quot;.data&quot;),s.push(&quot;array&quot;+f+&quot;.stride&quot;),s.push(&quot;array&quot;+f+&quot;.offset|0&quot;),u&gt;0&amp;&amp;(l.push(&quot;array&quot;+t.arrayArgs[0]+&quot;.shape.length===array&quot;+f+&quot;.shape.length+&quot;+(Math.abs(t.arrayBlockIndices[0])-Math.abs(t.arrayBlockIndices[u]))),c.push(&quot;array&quot;+t.arrayArgs[0]+&quot;.shape[shapeIndex+&quot;+Math.max(0,t.arrayBlockIndices[0])+&quot;]===array&quot;+f+&quot;.shape[shapeIndex+&quot;+Math.max(0,t.arrayBlockIndices[u])+&quot;]&quot;))}for(t.arrayArgs.length&gt;1&amp;&amp;(e.push(&quot;if (!(&quot;+l.join(&quot; &amp;&amp; &quot;)+&quot;)) throw new Error('cwise: Arrays do not all have the same dimensionality!')&quot;),e.push(&quot;for(var shapeIndex=array&quot;+t.arrayArgs[0]+&quot;.shape.length-&quot;+Math.abs(t.arrayBlockIndices[0])+&quot;; shapeIndex--\x3e0;) {&quot;),e.push(&quot;if (!(&quot;+c.join(&quot; &amp;&amp; &quot;)+&quot;)) throw new Error('cwise: Arrays do not all have the same shape!')&quot;),e.push(&quot;}&quot;)),u=0;u&lt;t.scalarArgs.length;++u)s.push(&quot;scalar&quot;+t.scalarArgs[u]);return r.push([&quot;type=[&quot;,o.join(&quot;,&quot;),&quot;].join()&quot;].join(&quot;&quot;)),r.push(&quot;proc=CACHED[type]&quot;),e.push(&quot;var &quot;+r.join(&quot;,&quot;)),e.push([&quot;if(!proc){&quot;,&quot;CACHED[type]=proc=compile([&quot;,a.join(&quot;,&quot;),&quot;])}&quot;,&quot;return proc(&quot;,s.join(&quot;,&quot;),&quot;)}&quot;].join(&quot;&quot;)),t.debug&amp;&amp;console.log(&quot;-----Generated thunk:\n&quot;+e.join(&quot;\n&quot;)+&quot;\n----------&quot;),new Function(&quot;compile&quot;,e.join(&quot;\n&quot;))(n.bind(void 0,t))}},{&quot;./compile.js&quot;:152}],154:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;type/value/is&quot;),a=t(&quot;type/value/ensure&quot;),o=t(&quot;type/plain-function/ensure&quot;),s=t(&quot;es5-ext/object/copy&quot;),l=t(&quot;es5-ext/object/normalize-options&quot;),c=t(&quot;es5-ext/object/map&quot;),u=Function.prototype.bind,f=Object.defineProperty,h=Object.prototype.hasOwnProperty;n=function(t,e,r){var n,i=a(e)&amp;&amp;o(e.value);return delete(n=s(e)).writable,delete n.value,n.get=function(){return!r.overwriteDefinition&amp;&amp;h.call(this,t)?i:(e.value=u.call(i,r.resolveContext?r.resolveContext(this):this),f(this,t,e),this[t])},n},e.exports=function(t){var e=l(arguments[1]);return i(e.resolveContext)&amp;&amp;o(e.resolveContext),c(t,(function(t,r){return n(r,t,e)}))}},{&quot;es5-ext/object/copy&quot;:196,&quot;es5-ext/object/map&quot;:204,&quot;es5-ext/object/normalize-options&quot;:205,&quot;type/plain-function/ensure&quot;:589,&quot;type/value/ensure&quot;:593,&quot;type/value/is&quot;:594}],155:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;type/value/is&quot;),i=t(&quot;type/plain-function/is&quot;),a=t(&quot;es5-ext/object/assign&quot;),o=t(&quot;es5-ext/object/normalize-options&quot;),s=t(&quot;es5-ext/string/#/contains&quot;);(e.exports=function(t,e){var r,i,l,c,u;return arguments.length&lt;2||&quot;string&quot;!=typeof t?(c=e,e=t,t=null):c=arguments[2],n(t)?(r=s.call(t,&quot;c&quot;),i=s.call(t,&quot;e&quot;),l=s.call(t,&quot;w&quot;)):(r=l=!0,i=!1),u={value:e,configurable:r,enumerable:i,writable:l},c?a(o(c),u):u}).gs=function(t,e,r){var l,c,u,f;return&quot;string&quot;!=typeof t?(u=r,r=e,e=t,t=null):u=arguments[3],n(e)?i(e)?n(r)?i(r)||(u=r,r=void 0):r=void 0:(u=e,e=r=void 0):e=void 0,n(t)?(l=s.call(t,&quot;c&quot;),c=s.call(t,&quot;e&quot;)):(l=!0,c=!1),f={get:e,set:r,configurable:l,enumerable:c},u?a(o(u),f):f}},{&quot;es5-ext/object/assign&quot;:193,&quot;es5-ext/object/normalize-options&quot;:205,&quot;es5-ext/string/#/contains&quot;:212,&quot;type/plain-function/is&quot;:590,&quot;type/value/is&quot;:594}],156:[function(t,e,r){!function(t,n){n(&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?r:t.d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){return t&lt;e?-1:t&gt;e?1:t&gt;=e?0:NaN}function r(t){var r;return 1===t.length&amp;&amp;(r=t,t=function(t,n){return e(r(t),n)}),{left:function(e,r,n,i){for(null==n&amp;&amp;(n=0),null==i&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&lt;0?n=a+1:i=a}return n},right:function(e,r,n,i){for(null==n&amp;&amp;(n=0),null==i&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&gt;0?i=a:n=a+1}return n}}}var n=r(e),i=n.right,a=n.left;function o(t,e){return[t,e]}function s(t){return null===t?NaN:+t}function l(t,e){var r,n,i=t.length,a=0,o=-1,l=0,c=0;if(null==e)for(;++o&lt;i;)isNaN(r=s(t[o]))||(c+=(n=r-l)*(r-(l+=n/++a)));else for(;++o&lt;i;)isNaN(r=s(e(t[o],o,t)))||(c+=(n=r-l)*(r-(l+=n/++a)));if(a&gt;1)return c/(a-1)}function c(t,e){var r=l(t,e);return r?Math.sqrt(r):r}function u(t,e){var r,n,i,a=t.length,o=-1;if(null==e){for(;++o&lt;a;)if(null!=(r=t[o])&amp;&amp;r&gt;=r)for(n=i=r;++o&lt;a;)null!=(r=t[o])&amp;&amp;(n&gt;r&amp;&amp;(n=r),i&lt;r&amp;&amp;(i=r))}else for(;++o&lt;a;)if(null!=(r=e(t[o],o,t))&amp;&amp;r&gt;=r)for(n=i=r;++o&lt;a;)null!=(r=e(t[o],o,t))&amp;&amp;(n&gt;r&amp;&amp;(n=r),i&lt;r&amp;&amp;(i=r));return[n,i]}var f=Array.prototype,h=f.slice,p=f.map;function d(t){return function(){return t}}function g(t){return t}function m(t,e,r){t=+t,e=+e,r=(i=arguments.length)&lt;2?(e=t,t=0,1):i&lt;3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),a=new Array(i);++n&lt;i;)a[n]=t+n*r;return a}var v=Math.sqrt(50),y=Math.sqrt(10),x=Math.sqrt(2);function b(t,e,r){var n=(e-t)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),a=n/Math.pow(10,i);return i&gt;=0?(a&gt;=v?10:a&gt;=y?5:a&gt;=x?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a&gt;=v?10:a&gt;=y?5:a&gt;=x?2:1)}function _(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/i;return a&gt;=v?i*=10:a&gt;=y?i*=5:a&gt;=x&amp;&amp;(i*=2),e&lt;t?-i:i}function w(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function T(t,e,r){if(null==r&amp;&amp;(r=s),n=t.length){if((e=+e)&lt;=0||n&lt;2)return+r(t[0],0,t);if(e&gt;=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t);return o+(+r(t[a+1],a+1,t)-o)*(i-a)}}function k(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a&lt;i;)if(null!=(r=t[a])&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=t[a])&amp;&amp;n&gt;r&amp;&amp;(n=r)}else for(;++a&lt;i;)if(null!=(r=e(t[a],a,t))&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=e(t[a],a,t))&amp;&amp;n&gt;r&amp;&amp;(n=r);return n}function M(t){if(!(i=t.length))return[];for(var e=-1,r=k(t,A),n=new Array(r);++e&lt;r;)for(var i,a=-1,o=n[e]=new Array(i);++a&lt;i;)o[a]=t[a][e];return n}function A(t){return t.length}t.bisect=i,t.bisectRight=i,t.bisectLeft=a,t.ascending=e,t.bisector=r,t.cross=function(t,e,r){var n,i,a,s,l=t.length,c=e.length,u=new Array(l*c);for(null==r&amp;&amp;(r=o),n=a=0;n&lt;l;++n)for(s=t[n],i=0;i&lt;c;++i,++a)u[a]=r(s,e[i]);return u},t.descending=function(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN},t.deviation=c,t.extent=u,t.histogram=function(){var t=g,e=u,r=w;function n(n){var a,o,s=n.length,l=new Array(s);for(a=0;a&lt;s;++a)l[a]=t(n[a],a,n);var c=e(l),u=c[0],f=c[1],h=r(l,u,f);Array.isArray(h)||(h=_(u,f,h),h=m(Math.ceil(u/h)*h,f,h));for(var p=h.length;h[0]&lt;=u;)h.shift(),--p;for(;h[p-1]&gt;f;)h.pop(),--p;var d,g=new Array(p+1);for(a=0;a&lt;=p;++a)(d=g[a]=[]).x0=a&gt;0?h[a-1]:u,d.x1=a&lt;p?h[a]:f;for(a=0;a&lt;s;++a)u&lt;=(o=l[a])&amp;&amp;o&lt;=f&amp;&amp;g[i(h,o,0,p)].push(n[a]);return g}return n.value=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:d(e),n):t},n.domain=function(t){return arguments.length?(e=&quot;function&quot;==typeof t?t:d([t[0],t[1]]),n):e},n.thresholds=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:Array.isArray(t)?d(h.call(t)):d(t),n):r},n},t.thresholdFreedmanDiaconis=function(t,r,n){return t=p.call(t,s).sort(e),Math.ceil((n-r)/(2*(T(t,.75)-T(t,.25))*Math.pow(t.length,-1/3)))},t.thresholdScott=function(t,e,r){return Math.ceil((r-e)/(3.5*c(t)*Math.pow(t.length,-1/3)))},t.thresholdSturges=w,t.max=function(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a&lt;i;)if(null!=(r=t[a])&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=t[a])&amp;&amp;r&gt;n&amp;&amp;(n=r)}else for(;++a&lt;i;)if(null!=(r=e(t[a],a,t))&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=e(t[a],a,t))&amp;&amp;r&gt;n&amp;&amp;(n=r);return n},t.mean=function(t,e){var r,n=t.length,i=n,a=-1,o=0;if(null==e)for(;++a&lt;n;)isNaN(r=s(t[a]))?--i:o+=r;else for(;++a&lt;n;)isNaN(r=s(e(t[a],a,t)))?--i:o+=r;if(i)return o/i},t.median=function(t,r){var n,i=t.length,a=-1,o=[];if(null==r)for(;++a&lt;i;)isNaN(n=s(t[a]))||o.push(n);else for(;++a&lt;i;)isNaN(n=s(r(t[a],a,t)))||o.push(n);return T(o.sort(e),.5)},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a&lt;i;)o+=t[a].length;for(r=new Array(o);--i&gt;=0;)for(e=(n=t[i]).length;--e&gt;=0;)r[--o]=n[e];return r},t.min=k,t.pairs=function(t,e){null==e&amp;&amp;(e=o);for(var r=0,n=t.length-1,i=t[0],a=new Array(n&lt;0?0:n);r&lt;n;)a[r]=e(i,i=t[++r]);return a},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.quantile=T,t.range=m,t.scan=function(t,r){if(n=t.length){var n,i,a=0,o=0,s=t[o];for(null==r&amp;&amp;(r=e);++a&lt;n;)(r(i=t[a],s)&lt;0||0!==r(s,s))&amp;&amp;(s=i,o=a);return 0===r(s,s)?o:void 0}},t.shuffle=function(t,e,r){for(var n,i,a=(null==r?t.length:r)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.sum=function(t,e){var r,n=t.length,i=-1,a=0;if(null==e)for(;++i&lt;n;)(r=+t[i])&amp;&amp;(a+=r);else for(;++i&lt;n;)(r=+e(t[i],i,t))&amp;&amp;(a+=r);return a},t.ticks=function(t,e,r){var n,i,a,o,s=-1;if(r=+r,(t=+t)===(e=+e)&amp;&amp;r&gt;0)return[t];if((n=e&lt;t)&amp;&amp;(i=t,t=e,e=i),0===(o=b(t,e,r))||!isFinite(o))return[];if(o&gt;0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s&lt;i;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++s&lt;i;)a[s]=(t-s)/o;return n&amp;&amp;a.reverse(),a},t.tickIncrement=b,t.tickStep=_,t.transpose=M,t.variance=l,t.zip=function(){return M(arguments)},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],157:[function(t,e,r){!function(t,n){n(&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?r:t.d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(){}function r(t,r){var n=new e;if(t instanceof e)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var i,a=-1,o=t.length;if(null==r)for(;++a&lt;o;)n.set(a,t[a]);else for(;++a&lt;o;)n.set(r(i=t[a],a,t),i)}else if(t)for(var s in t)n.set(s,t[s]);return n}function n(){return{}}function i(t,e,r){t[e]=r}function a(){return r()}function o(t,e,r){t.set(e,r)}function s(){}e.prototype=r.prototype={constructor:e,has:function(t){return&quot;$&quot;+t in this},get:function(t){return this[&quot;$&quot;+t]},set:function(t,e){return this[&quot;$&quot;+t]=e,this},remove:function(t){var e=&quot;$&quot;+t;return e in this&amp;&amp;delete this[e]},clear:function(){for(var t in this)&quot;$&quot;===t[0]&amp;&amp;delete this[t]},keys:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)&quot;$&quot;===e[0]&amp;&amp;++t;return t},empty:function(){for(var t in this)if(&quot;$&quot;===t[0])return!1;return!0},each:function(t){for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t(this[e],e.slice(1),this)}};var l=r.prototype;function c(t,e){var r=new s;if(t instanceof s)t.each((function(t){r.add(t)}));else if(t){var n=-1,i=t.length;if(null==e)for(;++n&lt;i;)r.add(t[n]);else for(;++n&lt;i;)r.add(e(t[n],n,t))}return r}s.prototype=c.prototype={constructor:s,has:l.has,add:function(t){return this[&quot;$&quot;+(t+=&quot;&quot;)]=t,this},remove:l.remove,clear:l.clear,values:l.keys,size:l.size,empty:l.empty,each:l.each},t.nest=function(){var t,e,s,l=[],c=[];function u(n,i,a,o){if(i&gt;=l.length)return null!=t&amp;&amp;n.sort(t),null!=e?e(n):n;for(var s,c,f,h=-1,p=n.length,d=l[i++],g=r(),m=a();++h&lt;p;)(f=g.get(s=d(c=n[h])+&quot;&quot;))?f.push(c):g.set(s,[c]);return g.each((function(t,e){o(m,e,u(t,i,a,o))})),m}return s={object:function(t){return u(t,0,n,i)},map:function(t){return u(t,0,a,o)},entries:function(t){return function t(r,n){if(++n&gt;l.length)return r;var i,a=c[n-1];return null!=e&amp;&amp;n&gt;=l.length?i=r.entries():(i=[],r.each((function(e,r){i.push({key:r,values:t(e,n)})}))),null!=a?i.sort((function(t,e){return a(t.key,e.key)})):i}(u(t,0,a,o),0)},key:function(t){return l.push(t),s},sortKeys:function(t){return c[l.length-1]=t,s},sortValues:function(e){return t=e,s},rollup:function(t){return e=t,s}}},t.set=c,t.map=r,t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],158:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function r(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function n(){}var i=&quot;\\s*([+-]?\\d+)\\s*&quot;,a=&quot;\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*&quot;,o=&quot;\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*&quot;,s=/^#([0-9a-f]{3,8})$/,l=new RegExp(&quot;^rgb\\(&quot;+[i,i,i]+&quot;\\)$&quot;),c=new RegExp(&quot;^rgb\\(&quot;+[o,o,o]+&quot;\\)$&quot;),u=new RegExp(&quot;^rgba\\(&quot;+[i,i,i,a]+&quot;\\)$&quot;),f=new RegExp(&quot;^rgba\\(&quot;+[o,o,o,a]+&quot;\\)$&quot;),h=new RegExp(&quot;^hsl\\(&quot;+[a,o,o]+&quot;\\)$&quot;),p=new RegExp(&quot;^hsla\\(&quot;+[a,o,o,a]+&quot;\\)$&quot;),d={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 g(){return this.rgb().formatHex()}function m(){return this.rgb().formatRgb()}function v(t){var e,r;return t=(t+&quot;&quot;).trim().toLowerCase(),(e=s.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?y(e):3===r?new w(e&gt;&gt;8&amp;15|e&gt;&gt;4&amp;240,e&gt;&gt;4&amp;15|240&amp;e,(15&amp;e)&lt;&lt;4|15&amp;e,1):8===r?x(e&gt;&gt;24&amp;255,e&gt;&gt;16&amp;255,e&gt;&gt;8&amp;255,(255&amp;e)/255):4===r?x(e&gt;&gt;12&amp;15|e&gt;&gt;8&amp;240,e&gt;&gt;8&amp;15|e&gt;&gt;4&amp;240,e&gt;&gt;4&amp;15|240&amp;e,((15&amp;e)&lt;&lt;4|15&amp;e)/255):null):(e=l.exec(t))?new w(e[1],e[2],e[3],1):(e=c.exec(t))?new w(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=u.exec(t))?x(e[1],e[2],e[3],e[4]):(e=f.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=h.exec(t))?A(e[1],e[2]/100,e[3]/100,1):(e=p.exec(t))?A(e[1],e[2]/100,e[3]/100,e[4]):d.hasOwnProperty(t)?y(d[t]):&quot;transparent&quot;===t?new w(NaN,NaN,NaN,0):null}function y(t){return new w(t&gt;&gt;16&amp;255,t&gt;&gt;8&amp;255,255&amp;t,1)}function x(t,e,r,n){return n&lt;=0&amp;&amp;(t=e=r=NaN),new w(t,e,r,n)}function b(t){return t instanceof n||(t=v(t)),t?new w((t=t.rgb()).r,t.g,t.b,t.opacity):new w}function _(t,e,r,n){return 1===arguments.length?b(t):new w(t,e,r,null==n?1:n)}function w(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function T(){return&quot;#&quot;+M(this.r)+M(this.g)+M(this.b)}function k(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?&quot;rgb(&quot;:&quot;rgba(&quot;)+Math.max(0,Math.min(255,Math.round(this.r)||0))+&quot;, &quot;+Math.max(0,Math.min(255,Math.round(this.g)||0))+&quot;, &quot;+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?&quot;)&quot;:&quot;, &quot;+t+&quot;)&quot;)}function M(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))&lt;16?&quot;0&quot;:&quot;&quot;)+t.toString(16)}function A(t,e,r,n){return n&lt;=0?t=e=r=NaN:r&lt;=0||r&gt;=1?t=e=NaN:e&lt;=0&amp;&amp;(t=NaN),new C(t,e,r,n)}function S(t){if(t instanceof C)return new C(t.h,t.s,t.l,t.opacity);if(t instanceof n||(t=v(t)),!t)return new C;if(t instanceof C)return t;var e=(t=t.rgb()).r/255,r=t.g/255,i=t.b/255,a=Math.min(e,r,i),o=Math.max(e,r,i),s=NaN,l=o-a,c=(o+a)/2;return l?(s=e===o?(r-i)/l+6*(r&lt;i):r===o?(i-e)/l+2:(e-r)/l+4,l/=c&lt;.5?o+a:2-o-a,s*=60):l=c&gt;0&amp;&amp;c&lt;1?0:s,new C(s,l,c,t.opacity)}function E(t,e,r,n){return 1===arguments.length?S(t):new C(t,e,r,null==n?1:n)}function C(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function L(t,e,r){return 255*(t&lt;60?e+(r-e)*t/60:t&lt;180?r:t&lt;240?e+(r-e)*(240-t)/60:e)}e(n,v,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:g,formatHex:g,formatHsl:function(){return S(this).formatHsl()},formatRgb:m,toString:m}),e(w,_,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5&lt;=this.r&amp;&amp;this.r&lt;255.5&amp;&amp;-.5&lt;=this.g&amp;&amp;this.g&lt;255.5&amp;&amp;-.5&lt;=this.b&amp;&amp;this.b&lt;255.5&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},hex:T,formatHex:T,formatRgb:k,toString:k})),e(C,E,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new C(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new C(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h&lt;0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r&lt;.5?r:1-r)*e,i=2*r-n;return new w(L(t&gt;=240?t-240:t+120,i,n),L(t,i,n),L(t&lt;120?t+240:t-120,i,n),this.opacity)},displayable:function(){return(0&lt;=this.s&amp;&amp;this.s&lt;=1||isNaN(this.s))&amp;&amp;0&lt;=this.l&amp;&amp;this.l&lt;=1&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?&quot;hsl(&quot;:&quot;hsla(&quot;)+(this.h||0)+&quot;, &quot;+100*(this.s||0)+&quot;%, &quot;+100*(this.l||0)+&quot;%&quot;+(1===t?&quot;)&quot;:&quot;, &quot;+t+&quot;)&quot;)}}));var I=Math.PI/180,P=180/Math.PI,z=6/29,O=3*z*z;function D(t){if(t instanceof F)return new F(t.l,t.a,t.b,t.opacity);if(t instanceof H)return G(t);t instanceof w||(t=b(t));var e,r,n=U(t.r),i=U(t.g),a=U(t.b),o=B((.2225045*n+.7168786*i+.0606169*a)/1);return n===i&amp;&amp;i===a?e=r=o:(e=B((.4360747*n+.3850649*i+.1430804*a)/.96422),r=B((.0139322*n+.0971045*i+.7141733*a)/.82521)),new F(116*o-16,500*(e-o),200*(o-r),t.opacity)}function R(t,e,r,n){return 1===arguments.length?D(t):new F(t,e,r,null==n?1:n)}function F(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function B(t){return t&gt;.008856451679035631?Math.pow(t,1/3):t/O+4/29}function N(t){return t&gt;z?t*t*t:O*(t-4/29)}function j(t){return 255*(t&lt;=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function U(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function V(t){if(t instanceof H)return new H(t.h,t.c,t.l,t.opacity);if(t instanceof F||(t=D(t)),0===t.a&amp;&amp;0===t.b)return new H(NaN,0&lt;t.l&amp;&amp;t.l&lt;100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*P;return new H(e&lt;0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function q(t,e,r,n){return 1===arguments.length?V(t):new H(t,e,r,null==n?1:n)}function H(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function G(t){if(isNaN(t.h))return new F(t.l,0,0,t.opacity);var e=t.h*I;return new F(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}e(F,R,r(n,{brighter:function(t){return new F(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new F(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new w(j(3.1338561*(e=.96422*N(e))-1.6168667*(t=1*N(t))-.4906146*(r=.82521*N(r))),j(-.9787684*e+1.9161415*t+.033454*r),j(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),e(H,q,r(n,{brighter:function(t){return new H(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new H(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return G(this).rgb()}}));var Y=-.14861,W=1.78277,X=-.29227,Z=-.90649,J=1.97294,K=J*Z,Q=J*W,$=W*X-Z*Y;function tt(t){if(t instanceof rt)return new rt(t.h,t.s,t.l,t.opacity);t instanceof w||(t=b(t));var e=t.r/255,r=t.g/255,n=t.b/255,i=($*n+K*e-Q*r)/($+K-Q),a=n-i,o=(J*(r-i)-X*a)/Z,s=Math.sqrt(o*o+a*a)/(J*i*(1-i)),l=s?Math.atan2(o,a)*P-120:NaN;return new rt(l&lt;0?l+360:l,s,i,t.opacity)}function et(t,e,r,n){return 1===arguments.length?tt(t):new rt(t,e,r,null==n?1:n)}function rt(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}e(rt,et,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*I,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),i=Math.sin(t);return new w(255*(e+r*(Y*n+W*i)),255*(e+r*(X*n+Z*i)),255*(e+r*(J*n)),this.opacity)}})),t.color=v,t.cubehelix=et,t.gray=function(t,e){return new F(t,0,0,null==e?1:e)},t.hcl=q,t.hsl=E,t.lab=R,t.lch=function(t,e,r,n){return 1===arguments.length?V(t):new H(r,e,t,null==n?1:n)},t.rgb=_,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],159:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e={value:function(){}};function r(){for(var t,e=0,r=arguments.length,i={};e&lt;r;++e){if(!(t=arguments[e]+&quot;&quot;)||t in i||/[\s.]/.test(t))throw new Error(&quot;illegal type: &quot;+t);i[t]=[]}return new n(i)}function n(t){this._=t}function i(t,e){return t.trim().split(/^|\s+/).map((function(t){var r=&quot;&quot;,n=t.indexOf(&quot;.&quot;);if(n&gt;=0&amp;&amp;(r=t.slice(n+1),t=t.slice(0,n)),t&amp;&amp;!e.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);return{type:t,name:r}}))}function a(t,e){for(var r,n=0,i=t.length;n&lt;i;++n)if((r=t[n]).name===e)return r.value}function o(t,r,n){for(var i=0,a=t.length;i&lt;a;++i)if(t[i].name===r){t[i]=e,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&amp;&amp;t.push({name:r,value:n}),t}n.prototype=r.prototype={constructor:n,on:function(t,e){var r,n=this._,s=i(t+&quot;&quot;,n),l=-1,c=s.length;if(!(arguments.length&lt;2)){if(null!=e&amp;&amp;&quot;function&quot;!=typeof e)throw new Error(&quot;invalid callback: &quot;+e);for(;++l&lt;c;)if(r=(t=s[l]).type)n[r]=o(n[r],t.name,e);else if(null==e)for(r in n)n[r]=o(n[r],t.name,null);return this}for(;++l&lt;c;)if((r=(t=s[l]).type)&amp;&amp;(r=a(n[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new n(t)},call:function(t,e){if((r=arguments.length-2)&gt;0)for(var r,n,i=new Array(r),a=0;a&lt;r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);for(a=0,r=(n=this._[t]).length;a&lt;r;++a)n[a].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);for(var n=this._[t],i=0,a=n.length;i&lt;a;++i)n[i].value.apply(e,r)}},t.dispatch=r,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],160:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-quadtree&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-dispatch&quot;),t(&quot;d3-timer&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,n.d3)}(this,(function(t,e,r,n,i){&quot;use strict&quot;;function a(t){return function(){return t}}function o(){return 1e-6*(Math.random()-.5)}function s(t){return t.x+t.vx}function l(t){return t.y+t.vy}function c(t){return t.index}function u(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function f(t){return t.x}function h(t){return t.y}var p=Math.PI*(3-Math.sqrt(5));t.forceCenter=function(t,e){var r;function n(){var n,i,a=r.length,o=0,s=0;for(n=0;n&lt;a;++n)o+=(i=r[n]).x,s+=i.y;for(o=o/a-t,s=s/a-e,n=0;n&lt;a;++n)(i=r[n]).x-=o,i.y-=s}return null==t&amp;&amp;(t=0),null==e&amp;&amp;(e=0),n.initialize=function(t){r=t},n.x=function(e){return arguments.length?(t=+e,n):t},n.y=function(t){return arguments.length?(e=+t,n):e},n},t.forceCollide=function(t){var r,n,i=1,c=1;function u(){for(var t,a,u,h,p,d,g,m=r.length,v=0;v&lt;c;++v)for(a=e.quadtree(r,s,l).visitAfter(f),t=0;t&lt;m;++t)u=r[t],d=n[u.index],g=d*d,h=u.x+u.vx,p=u.y+u.vy,a.visit(y);function y(t,e,r,n,a){var s=t.data,l=t.r,c=d+l;if(!s)return e&gt;h+c||n&lt;h-c||r&gt;p+c||a&lt;p-c;if(s.index&gt;u.index){var f=h-s.x-s.vx,m=p-s.y-s.vy,v=f*f+m*m;v&lt;c*c&amp;&amp;(0===f&amp;&amp;(v+=(f=o())*f),0===m&amp;&amp;(v+=(m=o())*m),v=(c-(v=Math.sqrt(v)))/v*i,u.vx+=(f*=v)*(c=(l*=l)/(g+l)),u.vy+=(m*=v)*c,s.vx-=f*(c=1-c),s.vy-=m*c)}}}function f(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e&lt;4;++e)t[e]&amp;&amp;t[e].r&gt;t.r&amp;&amp;(t.r=t[e].r)}function h(){if(r){var e,i,a=r.length;for(n=new Array(a),e=0;e&lt;a;++e)i=r[e],n[i.index]=+t(i,e,r)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?1:+t)),u.initialize=function(t){r=t,h()},u.iterations=function(t){return arguments.length?(c=+t,u):c},u.strength=function(t){return arguments.length?(i=+t,u):i},u.radius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),h(),u):t},u},t.forceLink=function(t){var e,n,i,s,l,f=c,h=function(t){return 1/Math.min(s[t.source.index],s[t.target.index])},p=a(30),d=1;function g(r){for(var i=0,a=t.length;i&lt;d;++i)for(var s,c,u,f,h,p,g,m=0;m&lt;a;++m)c=(s=t[m]).source,f=(u=s.target).x+u.vx-c.x-c.vx||o(),h=u.y+u.vy-c.y-c.vy||o(),f*=p=((p=Math.sqrt(f*f+h*h))-n[m])/p*r*e[m],h*=p,u.vx-=f*(g=l[m]),u.vy-=h*g,c.vx+=f*(g=1-g),c.vy+=h*g}function m(){if(i){var a,o,c=i.length,h=t.length,p=r.map(i,f);for(a=0,s=new Array(c);a&lt;h;++a)(o=t[a]).index=a,&quot;object&quot;!=typeof o.source&amp;&amp;(o.source=u(p,o.source)),&quot;object&quot;!=typeof o.target&amp;&amp;(o.target=u(p,o.target)),s[o.source.index]=(s[o.source.index]||0)+1,s[o.target.index]=(s[o.target.index]||0)+1;for(a=0,l=new Array(h);a&lt;h;++a)o=t[a],l[a]=s[o.source.index]/(s[o.source.index]+s[o.target.index]);e=new Array(h),v(),n=new Array(h),y()}}function v(){if(i)for(var r=0,n=t.length;r&lt;n;++r)e[r]=+h(t[r],r,t)}function y(){if(i)for(var e=0,r=t.length;e&lt;r;++e)n[e]=+p(t[e],e,t)}return null==t&amp;&amp;(t=[]),g.initialize=function(t){i=t,m()},g.links=function(e){return arguments.length?(t=e,m(),g):t},g.id=function(t){return arguments.length?(f=t,g):f},g.iterations=function(t){return arguments.length?(d=+t,g):d},g.strength=function(t){return arguments.length?(h=&quot;function&quot;==typeof t?t:a(+t),v(),g):h},g.distance=function(t){return arguments.length?(p=&quot;function&quot;==typeof t?t:a(+t),y(),g):p},g},t.forceManyBody=function(){var t,r,n,i,s=a(-30),l=1,c=1/0,u=.81;function p(i){var a,o=t.length,s=e.quadtree(t,f,h).visitAfter(g);for(n=i,a=0;a&lt;o;++a)r=t[a],s.visit(m)}function d(){if(t){var e,r,n=t.length;for(i=new Array(n),e=0;e&lt;n;++e)r=t[e],i[r.index]=+s(r,e,t)}}function g(t){var e,r,n,a,o,s=0,l=0;if(t.length){for(n=a=o=0;o&lt;4;++o)(e=t[o])&amp;&amp;(r=Math.abs(e.value))&amp;&amp;(s+=e.value,l+=r,n+=r*e.x,a+=r*e.y);t.x=n/l,t.y=a/l}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=i[e.data.index]}while(e=e.next)}t.value=s}function m(t,e,a,s){if(!t.value)return!0;var f=t.x-r.x,h=t.y-r.y,p=s-e,d=f*f+h*h;if(p*p/u&lt;d)return d&lt;c&amp;&amp;(0===f&amp;&amp;(d+=(f=o())*f),0===h&amp;&amp;(d+=(h=o())*h),d&lt;l&amp;&amp;(d=Math.sqrt(l*d)),r.vx+=f*t.value*n/d,r.vy+=h*t.value*n/d),!0;if(!(t.length||d&gt;=c)){(t.data!==r||t.next)&amp;&amp;(0===f&amp;&amp;(d+=(f=o())*f),0===h&amp;&amp;(d+=(h=o())*h),d&lt;l&amp;&amp;(d=Math.sqrt(l*d)));do{t.data!==r&amp;&amp;(p=i[t.data.index]*n/d,r.vx+=f*p,r.vy+=h*p)}while(t=t.next)}}return p.initialize=function(e){t=e,d()},p.strength=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:a(+t),d(),p):s},p.distanceMin=function(t){return arguments.length?(l=t*t,p):Math.sqrt(l)},p.distanceMax=function(t){return arguments.length?(c=t*t,p):Math.sqrt(c)},p.theta=function(t){return arguments.length?(u=t*t,p):Math.sqrt(u)},p},t.forceRadial=function(t,e,r){var n,i,o,s=a(.1);function l(t){for(var a=0,s=n.length;a&lt;s;++a){var l=n[a],c=l.x-e||1e-6,u=l.y-r||1e-6,f=Math.sqrt(c*c+u*u),h=(o[a]-f)*i[a]*t/f;l.vx+=c*h,l.vy+=u*h}}function c(){if(n){var e,r=n.length;for(i=new Array(r),o=new Array(r),e=0;e&lt;r;++e)o[e]=+t(n[e],e,n),i[e]=isNaN(o[e])?0:+s(n[e],e,n)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(+t)),null==e&amp;&amp;(e=0),null==r&amp;&amp;(r=0),l.initialize=function(t){n=t,c()},l.strength=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:a(+t),c(),l):s},l.radius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),c(),l):t},l.x=function(t){return arguments.length?(e=+t,l):e},l.y=function(t){return arguments.length?(r=+t,l):r},l},t.forceSimulation=function(t){var e,a=1,o=.001,s=1-Math.pow(o,1/300),l=0,c=.6,u=r.map(),f=i.timer(d),h=n.dispatch(&quot;tick&quot;,&quot;end&quot;);function d(){g(),h.call(&quot;tick&quot;,e),a&lt;o&amp;&amp;(f.stop(),h.call(&quot;end&quot;,e))}function g(r){var n,i,o=t.length;void 0===r&amp;&amp;(r=1);for(var f=0;f&lt;r;++f)for(a+=(l-a)*s,u.each((function(t){t(a)})),n=0;n&lt;o;++n)null==(i=t[n]).fx?i.x+=i.vx*=c:(i.x=i.fx,i.vx=0),null==i.fy?i.y+=i.vy*=c:(i.y=i.fy,i.vy=0);return e}function m(){for(var e,r=0,n=t.length;r&lt;n;++r){if((e=t[r]).index=r,null!=e.fx&amp;&amp;(e.x=e.fx),null!=e.fy&amp;&amp;(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(r),a=r*p;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&amp;&amp;(e.vx=e.vy=0)}}function v(e){return e.initialize&amp;&amp;e.initialize(t),e}return null==t&amp;&amp;(t=[]),m(),e={tick:g,restart:function(){return f.restart(d),e},stop:function(){return f.stop(),e},nodes:function(r){return arguments.length?(t=r,m(),u.each(v),e):t},alpha:function(t){return arguments.length?(a=+t,e):a},alphaMin:function(t){return arguments.length?(o=+t,e):o},alphaDecay:function(t){return arguments.length?(s=+t,e):+s},alphaTarget:function(t){return arguments.length?(l=+t,e):l},velocityDecay:function(t){return arguments.length?(c=1-t,e):1-c},force:function(t,r){return arguments.length&gt;1?(null==r?u.remove(t):u.set(t,v(r)),e):u.get(t)},find:function(e,r,n){var i,a,o,s,l,c=0,u=t.length;for(null==n?n=1/0:n*=n,c=0;c&lt;u;++c)(o=(i=e-(s=t[c]).x)*i+(a=r-s.y)*a)&lt;n&amp;&amp;(l=s,n=o);return l},on:function(t,r){return arguments.length&gt;1?(h.on(t,r),e):h.on(t)}}},t.forceX=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a&lt;o;++a)(i=e[a]).vx+=(n[a]-i.x)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a&lt;o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:a(+t),s(),o):i},o.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),s(),o):t},o},t.forceY=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a&lt;o;++a)(i=e[a]).vy+=(n[a]-i.y)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a&lt;o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:a(+t),s(),o):i},o.y=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),s(),o):t},o},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-collection&quot;:157,&quot;d3-dispatch&quot;:159,&quot;d3-quadtree&quot;:164,&quot;d3-timer&quot;:168}],161:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){return t.parent===e.parent?1:2}function r(t,e){return t+e.x}function n(t,e){return Math.max(t,e.y)}function i(t){var e=0,r=t.children,n=r&amp;&amp;r.length;if(n)for(;--n&gt;=0;)e+=r[n].value;else e=1;t.value=e}function a(t,e){var r,n,i,a,s,u=new c(t),f=+t.value&amp;&amp;(u.value=t.value),h=[u];for(null==e&amp;&amp;(e=o);r=h.pop();)if(f&amp;&amp;(r.value=+r.data.value),(i=e(r.data))&amp;&amp;(s=i.length))for(r.children=new Array(s),a=s-1;a&gt;=0;--a)h.push(n=r.children[a]=new c(i[a])),n.parent=r,n.depth=r.depth+1;return u.eachBefore(l)}function o(t){return t.children}function s(t){t.data=t.data.data}function l(t){var e=0;do{t.height=e}while((t=t.parent)&amp;&amp;t.height&lt;++e)}function c(t){this.data=t,this.depth=this.height=0,this.parent=null}c.prototype=a.prototype={constructor:c,count:function(){return this.eachAfter(i)},each:function(t){var e,r,n,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),r=a.children)for(n=0,i=r.length;n&lt;i;++n)o.push(r[n])}while(o.length);return this},eachAfter:function(t){for(var e,r,n,i=this,a=[i],o=[];i=a.pop();)if(o.push(i),e=i.children)for(r=0,n=e.length;r&lt;n;++r)a.push(e[r]);for(;i=o.pop();)t(i);return this},eachBefore:function(t){for(var e,r,n=this,i=[n];n=i.pop();)if(t(n),e=n.children)for(r=e.length-1;r&gt;=0;--r)i.push(e[r]);return this},sum:function(t){return this.eachAfter((function(e){for(var r=+t(e.data)||0,n=e.children,i=n&amp;&amp;n.length;--i&gt;=0;)r+=n[i].value;e.value=r}))},sort:function(t){return this.eachBefore((function(e){e.children&amp;&amp;e.children.sort(t)}))},path:function(t){for(var e=this,r=function(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;t=r.pop(),e=n.pop();for(;t===e;)i=t,t=r.pop(),e=n.pop();return i}(e,t),n=[e];e!==r;)e=e.parent,n.push(e);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(r){r!==t&amp;&amp;e.push({source:r.parent,target:r})})),e},copy:function(){return a(this).eachBefore(s)}};var u=Array.prototype.slice;function f(t){for(var e,r,n=0,i=(t=function(t){for(var e,r,n=t.length;n;)r=Math.random()*n--|0,e=t[n],t[n]=t[r],t[r]=e;return t}(u.call(t))).length,a=[];n&lt;i;)e=t[n],r&amp;&amp;d(r,e)?++n:(r=m(a=h(a,e)),n=0);return r}function h(t,e){var r,n;if(g(e,t))return[e];for(r=0;r&lt;t.length;++r)if(p(e,t[r])&amp;&amp;g(v(t[r],e),t))return[t[r],e];for(r=0;r&lt;t.length-1;++r)for(n=r+1;n&lt;t.length;++n)if(p(v(t[r],t[n]),e)&amp;&amp;p(v(t[r],e),t[n])&amp;&amp;p(v(t[n],e),t[r])&amp;&amp;g(y(t[r],t[n],e),t))return[t[r],t[n],e];throw new Error}function p(t,e){var r=t.r-e.r,n=e.x-t.x,i=e.y-t.y;return r&lt;0||r*r&lt;n*n+i*i}function d(t,e){var r=t.r-e.r+1e-6,n=e.x-t.x,i=e.y-t.y;return r&gt;0&amp;&amp;r*r&gt;n*n+i*i}function g(t,e){for(var r=0;r&lt;e.length;++r)if(!d(t,e[r]))return!1;return!0}function m(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return v(t[0],t[1]);case 3:return y(t[0],t[1],t[2])}var e}function v(t,e){var r=t.x,n=t.y,i=t.r,a=e.x,o=e.y,s=e.r,l=a-r,c=o-n,u=s-i,f=Math.sqrt(l*l+c*c);return{x:(r+a+l/f*u)/2,y:(n+o+c/f*u)/2,r:(f+i+s)/2}}function y(t,e,r){var n=t.x,i=t.y,a=t.r,o=e.x,s=e.y,l=e.r,c=r.x,u=r.y,f=r.r,h=n-o,p=n-c,d=i-s,g=i-u,m=l-a,v=f-a,y=n*n+i*i-a*a,x=y-o*o-s*s+l*l,b=y-c*c-u*u+f*f,_=p*d-h*g,w=(d*b-g*x)/(2*_)-n,T=(g*m-d*v)/_,k=(p*x-h*b)/(2*_)-i,M=(h*v-p*m)/_,A=T*T+M*M-1,S=2*(a+w*T+k*M),E=w*w+k*k-a*a,C=-(A?(S+Math.sqrt(S*S-4*A*E))/(2*A):E/S);return{x:n+w+T*C,y:i+k+M*C,r:C}}function x(t,e,r){var n,i,a,o,s=t.x-e.x,l=t.y-e.y,c=s*s+l*l;c?(i=e.r+r.r,i*=i,o=t.r+r.r,i&gt;(o*=o)?(n=(c+o-i)/(2*c),a=Math.sqrt(Math.max(0,o/c-n*n)),r.x=t.x-n*s-a*l,r.y=t.y-n*l+a*s):(n=(c+i-o)/(2*c),a=Math.sqrt(Math.max(0,i/c-n*n)),r.x=e.x+n*s-a*l,r.y=e.y+n*l+a*s)):(r.x=e.x+r.r,r.y=e.y)}function b(t,e){var r=t.r+e.r-1e-6,n=e.x-t.x,i=e.y-t.y;return r&gt;0&amp;&amp;r*r&gt;n*n+i*i}function _(t){var e=t._,r=t.next._,n=e.r+r.r,i=(e.x*r.r+r.x*e.r)/n,a=(e.y*r.r+r.y*e.r)/n;return i*i+a*a}function w(t){this._=t,this.next=null,this.previous=null}function T(t){if(!(i=t.length))return 0;var e,r,n,i,a,o,s,l,c,u,h;if((e=t[0]).x=0,e.y=0,!(i&gt;1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(i&gt;2))return e.r+r.r;x(r,e,n=t[2]),e=new w(e),r=new w(r),n=new w(n),e.next=n.previous=r,r.next=e.previous=n,n.next=r.previous=e;t:for(s=3;s&lt;i;++s){x(e._,r._,n=t[s]),n=new w(n),l=r.next,c=e.previous,u=r._.r,h=e._.r;do{if(u&lt;=h){if(b(l._,n._)){r=l,e.next=r,r.previous=e,--s;continue t}u+=l._.r,l=l.next}else{if(b(c._,n._)){(e=c).next=r,r.previous=e,--s;continue t}h+=c._.r,c=c.previous}}while(l!==c.next);for(n.previous=e,n.next=r,e.next=r.previous=r=n,a=_(e);(n=n.next)!==r;)(o=_(n))&lt;a&amp;&amp;(e=n,a=o);r=e.next}for(e=[r._],n=r;(n=n.next)!==r;)e.push(n._);for(n=f(e),s=0;s&lt;i;++s)(e=t[s]).x-=n.x,e.y-=n.y;return n.r}function k(t){return null==t?null:M(t)}function M(t){if(&quot;function&quot;!=typeof t)throw new Error;return t}function A(){return 0}function S(t){return function(){return t}}function E(t){return Math.sqrt(t.value)}function C(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function L(t,e){return function(r){if(n=r.children){var n,i,a,o=n.length,s=t(r)*e||0;if(s)for(i=0;i&lt;o;++i)n[i].r+=s;if(a=T(n),s)for(i=0;i&lt;o;++i)n[i].r-=s;r.r=a+s}}}function I(t){return function(e){var r=e.parent;e.r*=t,r&amp;&amp;(e.x=r.x+t*e.x,e.y=r.y+t*e.y)}}function P(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function z(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&amp;&amp;(n-e)/t.value;++s&lt;l;)(a=o[s]).y0=r,a.y1=i,a.x0=e,a.x1=e+=a.value*c}var O={depth:-1},D={};function R(t){return t.id}function F(t){return t.parentId}function B(t,e){return t.parent===e.parent?1:2}function N(t){var e=t.children;return e?e[0]:t.t}function j(t){var e=t.children;return e?e[e.length-1]:t.t}function U(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function V(t,e,r){return t.a.parent===e.parent?t.a:r}function q(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function H(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&amp;&amp;(i-r)/t.value;++s&lt;l;)(a=o[s]).x0=e,a.x1=n,a.y0=r,a.y1=r+=a.value*c}q.prototype=Object.create(c.prototype);var G=(1+Math.sqrt(5))/2;function Y(t,e,r,n,i,a){for(var o,s,l,c,u,f,h,p,d,g,m,v=[],y=e.children,x=0,b=0,_=y.length,w=e.value;x&lt;_;){l=i-r,c=a-n;do{u=y[b++].value}while(!u&amp;&amp;b&lt;_);for(f=h=u,m=u*u*(g=Math.max(c/l,l/c)/(w*t)),d=Math.max(h/m,m/f);b&lt;_;++b){if(u+=s=y[b].value,s&lt;f&amp;&amp;(f=s),s&gt;h&amp;&amp;(h=s),m=u*u*g,(p=Math.max(h/m,m/f))&gt;d){u-=s;break}d=p}v.push(o={value:u,dice:l&lt;c,children:y.slice(x,b)}),o.dice?z(o,r,n,i,w?n+=c*u/w:a):H(o,r,n,w?r+=l*u/w:i,a),w-=u,x=b}return v}var W=function t(e){function r(t,r,n,i,a){Y(e,t,r,n,i,a)}return r.ratio=function(e){return t((e=+e)&gt;1?e:1)},r}(G);var X=function t(e){function r(t,r,n,i,a){if((o=t._squarify)&amp;&amp;o.ratio===e)for(var o,s,l,c,u,f=-1,h=o.length,p=t.value;++f&lt;h;){for(l=(s=o[f]).children,c=s.value=0,u=l.length;c&lt;u;++c)s.value+=l[c].value;s.dice?z(s,r,n,i,n+=(a-n)*s.value/p):H(s,r,n,r+=(i-r)*s.value/p,a),p-=s.value}else t._squarify=o=Y(e,t,r,n,i,a),o.ratio=e}return r.ratio=function(e){return t((e=+e)&gt;1?e:1)},r}(G);t.cluster=function(){var t=e,i=1,a=1,o=!1;function s(e){var s,l=0;e.eachAfter((function(e){var i=e.children;i?(e.x=function(t){return t.reduce(r,0)/t.length}(i),e.y=function(t){return 1+t.reduce(n,0)}(i)):(e.x=s?l+=t(e,s):0,e.y=0,s=e)}));var c=function(t){for(var e;e=t.children;)t=e[0];return t}(e),u=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(e),f=c.x-t(c,u)/2,h=u.x+t(u,c)/2;return e.eachAfter(o?function(t){t.x=(t.x-e.x)*i,t.y=(e.y-t.y)*a}:function(t){t.x=(t.x-f)/(h-f)*i,t.y=(1-(e.y?t.y/e.y:1))*a})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(o=!1,i=+t[0],a=+t[1],s):o?null:[i,a]},s.nodeSize=function(t){return arguments.length?(o=!0,i=+t[0],a=+t[1],s):o?[i,a]:null},s},t.hierarchy=a,t.pack=function(){var t=null,e=1,r=1,n=A;function i(i){return i.x=e/2,i.y=r/2,t?i.eachBefore(C(t)).eachAfter(L(n,.5)).eachBefore(I(1)):i.eachBefore(C(E)).eachAfter(L(A,1)).eachAfter(L(n,i.r/Math.min(e,r))).eachBefore(I(Math.min(e,r)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=k(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],r=+t[1],i):[e,r]},i.padding=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:S(+t),i):n},i},t.packEnclose=f,t.packSiblings=function(t){return T(t),t},t.partition=function(){var t=1,e=1,r=0,n=!1;function i(i){var a=i.height+1;return i.x0=i.y0=r,i.x1=t,i.y1=e/a,i.eachBefore(function(t,e){return function(n){n.children&amp;&amp;z(n,n.x0,t*(n.depth+1)/e,n.x1,t*(n.depth+2)/e);var i=n.x0,a=n.y0,o=n.x1-r,s=n.y1-r;o&lt;i&amp;&amp;(i=o=(i+o)/2),s&lt;a&amp;&amp;(a=s=(a+s)/2),n.x0=i,n.y0=a,n.x1=o,n.y1=s}}(e,a)),n&amp;&amp;i.eachBefore(P),i}return i.round=function(t){return arguments.length?(n=!!t,i):n},i.size=function(r){return arguments.length?(t=+r[0],e=+r[1],i):[t,e]},i.padding=function(t){return arguments.length?(r=+t,i):r},i},t.stratify=function(){var t=R,e=F;function r(r){var n,i,a,o,s,u,f,h=r.length,p=new Array(h),d={};for(i=0;i&lt;h;++i)n=r[i],s=p[i]=new c(n),null!=(u=t(n,i,r))&amp;&amp;(u+=&quot;&quot;)&amp;&amp;(d[f=&quot;$&quot;+(s.id=u)]=f in d?D:s);for(i=0;i&lt;h;++i)if(s=p[i],null!=(u=e(r[i],i,r))&amp;&amp;(u+=&quot;&quot;)){if(!(o=d[&quot;$&quot;+u]))throw new Error(&quot;missing: &quot;+u);if(o===D)throw new Error(&quot;ambiguous: &quot;+u);o.children?o.children.push(s):o.children=[s],s.parent=o}else{if(a)throw new Error(&quot;multiple roots&quot;);a=s}if(!a)throw new Error(&quot;no root&quot;);if(a.parent=O,a.eachBefore((function(t){t.depth=t.parent.depth+1,--h})).eachBefore(l),a.parent=null,h&gt;0)throw new Error(&quot;cycle&quot;);return a}return r.id=function(e){return arguments.length?(t=M(e),r):t},r.parentId=function(t){return arguments.length?(e=M(t),r):e},r},t.tree=function(){var t=B,e=1,r=1,n=null;function i(i){var l=function(t){for(var e,r,n,i,a,o=new q(t,0),s=[o];e=s.pop();)if(n=e._.children)for(e.children=new Array(a=n.length),i=a-1;i&gt;=0;--i)s.push(r=e.children[i]=new q(n[i],i)),r.parent=e;return(o.parent=new q(null,0)).children=[o],o}(i);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(o),n)i.eachBefore(s);else{var c=i,u=i,f=i;i.eachBefore((function(t){t.x&lt;c.x&amp;&amp;(c=t),t.x&gt;u.x&amp;&amp;(u=t),t.depth&gt;f.depth&amp;&amp;(f=t)}));var h=c===u?1:t(c,u)/2,p=h-c.x,d=e/(u.x+h+p),g=r/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*g}))}return i}function a(e){var r=e.children,n=e.parent.children,i=e.i?n[e.i-1]:null;if(r){!function(t){for(var e,r=0,n=0,i=t.children,a=i.length;--a&gt;=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(e);var a=(r[0].z+r[r.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&amp;&amp;(e.z=i.z+t(e._,i._));e.parent.A=function(e,r,n){if(r){for(var i,a=e,o=e,s=r,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=j(s),a=N(a),s&amp;&amp;a;)l=N(l),(o=j(o)).a=e,(i=s.z+f-a.z-c+t(s._,a._))&gt;0&amp;&amp;(U(V(s,e,n),e,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&amp;&amp;!j(o)&amp;&amp;(o.t=s,o.m+=f-u),a&amp;&amp;!N(l)&amp;&amp;(l.t=a,l.m+=c-h,n=e)}return n}(e,i,e.parent.A||n[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*r}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(n=!1,e=+t[0],r=+t[1],i):n?null:[e,r]},i.nodeSize=function(t){return arguments.length?(n=!0,e=+t[0],r=+t[1],i):n?[e,r]:null},i},t.treemap=function(){var t=W,e=!1,r=1,n=1,i=[0],a=A,o=A,s=A,l=A,c=A;function u(t){return t.x0=t.y0=0,t.x1=r,t.y1=n,t.eachBefore(f),i=[0],e&amp;&amp;t.eachBefore(P),t}function f(e){var r=i[e.depth],n=e.x0+r,u=e.y0+r,f=e.x1-r,h=e.y1-r;f&lt;n&amp;&amp;(n=f=(n+f)/2),h&lt;u&amp;&amp;(u=h=(u+h)/2),e.x0=n,e.y0=u,e.x1=f,e.y1=h,e.children&amp;&amp;(r=i[e.depth+1]=a(e)/2,n+=c(e)-r,u+=o(e)-r,(f-=s(e)-r)&lt;n&amp;&amp;(n=f=(n+f)/2),(h-=l(e)-r)&lt;u&amp;&amp;(u=h=(u+h)/2),t(e,n,u,f,h))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(r=+t[0],n=+t[1],u):[r,n]},u.tile=function(e){return arguments.length?(t=M(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:S(+t),u):a},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:S(+t),u):o},u.paddingRight=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:S(+t),u):s},u.paddingBottom=function(t){return arguments.length?(l=&quot;function&quot;==typeof t?t:S(+t),u):l},u.paddingLeft=function(t){return arguments.length?(c=&quot;function&quot;==typeof t?t:S(+t),u):c},u},t.treemapBinary=function(t,e,r,n,i){var a,o,s=t.children,l=s.length,c=new Array(l+1);for(c[0]=o=a=0;a&lt;l;++a)c[a+1]=o+=s[a].value;!function t(e,r,n,i,a,o,l){if(e&gt;=r-1){var u=s[e];return u.x0=i,u.y0=a,u.x1=o,void(u.y1=l)}var f=c[e],h=n/2+f,p=e+1,d=r-1;for(;p&lt;d;){var g=p+d&gt;&gt;&gt;1;c[g]&lt;h?p=g+1:d=g}h-c[p-1]&lt;c[p]-h&amp;&amp;e+1&lt;p&amp;&amp;--p;var m=c[p]-f,v=n-m;if(o-i&gt;l-a){var y=(i*v+o*m)/n;t(e,p,m,i,a,y,l),t(p,r,v,y,a,o,l)}else{var x=(a*v+l*m)/n;t(e,p,m,i,a,o,x),t(p,r,v,i,x,o,l)}}(0,l,t.value,e,r,n,i)},t.treemapDice=z,t.treemapResquarify=X,t.treemapSlice=H,t.treemapSliceDice=function(t,e,r,n,i){(1&amp;t.depth?H:z)(t,e,r,n,i)},t.treemapSquarify=W,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],162:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-color&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}function n(t){var e=t.length-1;return function(n){var i=n&lt;=0?n=0:n&gt;=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i&gt;0?t[i-1]:2*a-o,l=i&lt;e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,l)}}function i(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)&lt;0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],l=t[(i+2)%e];return r((n-i/e)*e,a,o,s,l)}}function a(t){return function(){return t}}function o(t,e){return function(r){return t+r*e}}function s(t,e){var r=e-t;return r?o(t,r&gt;180||r&lt;-180?r-360*Math.round(r/360):r):a(isNaN(t)?e:t)}function l(t){return 1==(t=+t)?c:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):a(isNaN(e)?r:e)}}function c(t,e){var r=e-t;return r?o(t,r):a(isNaN(t)?e:t)}var u=function t(r){var n=l(r);function i(t,r){var i=n((t=e.rgb(t)).r,(r=e.rgb(r)).r),a=n(t.g,r.g),o=n(t.b,r.b),s=c(t.opacity,r.opacity);return function(e){return t.r=i(e),t.g=a(e),t.b=o(e),t.opacity=s(e),t+&quot;&quot;}}return i.gamma=t,i}(1);function f(t){return function(r){var n,i,a=r.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;n&lt;a;++n)i=e.rgb(r[n]),o[n]=i.r||0,s[n]=i.g||0,l[n]=i.b||0;return o=t(o),s=t(s),l=t(l),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=l(t),i+&quot;&quot;}}}var h=f(n),p=f(i);function d(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(r=0;r&lt;n;++r)i[r]=t[r]*(1-a)+e[r]*a;return i}}function g(t){return ArrayBuffer.isView(t)&amp;&amp;!(t instanceof DataView)}function m(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,a=new Array(i),o=new Array(n);for(r=0;r&lt;i;++r)a[r]=T(t[r],e[r]);for(;r&lt;n;++r)o[r]=e[r];return function(t){for(r=0;r&lt;i;++r)o[r]=a[r](t);return o}}function v(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function y(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function x(t,e){var r,n={},i={};for(r in null!==t&amp;&amp;&quot;object&quot;==typeof t||(t={}),null!==e&amp;&amp;&quot;object&quot;==typeof e||(e={}),e)r in t?n[r]=T(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var b=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(b.source,&quot;g&quot;);function w(t,e){var r,n,i,a=b.lastIndex=_.lastIndex=0,o=-1,s=[],l=[];for(t+=&quot;&quot;,e+=&quot;&quot;;(r=b.exec(t))&amp;&amp;(n=_.exec(e));)(i=n.index)&gt;a&amp;&amp;(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:y(r,n)})),a=_.lastIndex;return a&lt;e.length&amp;&amp;(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length&lt;2?l[0]?function(t){return function(e){return t(e)+&quot;&quot;}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var r,n=0;n&lt;e;++n)s[(r=l[n]).i]=r.x(t);return s.join(&quot;&quot;)})}function T(t,r){var n,i=typeof r;return null==r||&quot;boolean&quot;===i?a(r):(&quot;number&quot;===i?y:&quot;string&quot;===i?(n=e.color(r))?(r=n,u):w:r instanceof e.color?u:r instanceof Date?v:g(r)?d:Array.isArray(r)?m:&quot;function&quot;!=typeof r.valueOf&amp;&amp;&quot;function&quot;!=typeof r.toString||isNaN(r)?x:y)(t,r)}var k,M,A,S,E=180/Math.PI,C={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function L(t,e,r,n,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&amp;&amp;(t/=o,e/=o),(l=t*r+e*n)&amp;&amp;(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&amp;&amp;(r/=s,n/=s,l/=s),t*n&lt;e*r&amp;&amp;(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*E,skewX:Math.atan(l)*E,scaleX:o,scaleY:s}}function I(t,e,r,n){function i(t){return t.length?t.pop()+&quot; &quot;:&quot;&quot;}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,n,i,a,o,s){if(t!==i||n!==a){var l=o.push(&quot;translate(&quot;,null,e,null,r);s.push({i:l-4,x:y(t,i)},{i:l-2,x:y(n,a)})}else(i||a)&amp;&amp;o.push(&quot;translate(&quot;+i+e+a+r)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,r,a){t!==e?(t-e&gt;180?e+=360:e-t&gt;180&amp;&amp;(t+=360),a.push({i:r.push(i(r)+&quot;rotate(&quot;,null,n)-2,x:y(t,e)})):e&amp;&amp;r.push(i(r)+&quot;rotate(&quot;+e+n)}(a.rotate,o.rotate,s,l),function(t,e,r,a){t!==e?a.push({i:r.push(i(r)+&quot;skewX(&quot;,null,n)-2,x:y(t,e)}):e&amp;&amp;r.push(i(r)+&quot;skewX(&quot;+e+n)}(a.skewX,o.skewX,s,l),function(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+&quot;scale(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);o.push({i:s-4,x:y(t,r)},{i:s-2,x:y(e,n)})}else 1===r&amp;&amp;1===n||a.push(i(a)+&quot;scale(&quot;+r+&quot;,&quot;+n+&quot;)&quot;)}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,r=-1,n=l.length;++r&lt;n;)s[(e=l[r]).i]=e.x(t);return s.join(&quot;&quot;)}}}var P=I((function(t){return&quot;none&quot;===t?C:(k||(k=document.createElement(&quot;DIV&quot;),M=document.documentElement,A=document.defaultView),k.style.transform=t,t=A.getComputedStyle(M.appendChild(k),null).getPropertyValue(&quot;transform&quot;),M.removeChild(k),L(+(t=t.slice(7,-1).split(&quot;,&quot;))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),&quot;px, &quot;,&quot;px)&quot;,&quot;deg)&quot;),z=I((function(t){return null==t?C:(S||(S=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;)),S.setAttribute(&quot;transform&quot;,t),(t=S.transform.baseVal.consolidate())?L((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):C)}),&quot;, &quot;,&quot;)&quot;,&quot;)&quot;),O=Math.SQRT2;function D(t){return((t=Math.exp(t))+1/t)/2}function R(t){return function(r,n){var i=t((r=e.hsl(r)).h,(n=e.hsl(n)).h),a=c(r.s,n.s),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.s=a(t),r.l=o(t),r.opacity=s(t),r+&quot;&quot;}}}var F=R(s),B=R(c);function N(t){return function(r,n){var i=t((r=e.hcl(r)).h,(n=e.hcl(n)).h),a=c(r.c,n.c),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.c=a(t),r.l=o(t),r.opacity=s(t),r+&quot;&quot;}}}var j=N(s),U=N(c);function V(t){return function r(n){function i(r,i){var a=t((r=e.cubehelix(r)).h,(i=e.cubehelix(i)).h),o=c(r.s,i.s),s=c(r.l,i.l),l=c(r.opacity,i.opacity);return function(t){return r.h=a(t),r.s=o(t),r.l=s(Math.pow(t,n)),r.opacity=l(t),r+&quot;&quot;}}return n=+n,i.gamma=r,i}(1)}var q=V(s),H=V(c);t.interpolate=T,t.interpolateArray=function(t,e){return(g(e)?d:m)(t,e)},t.interpolateBasis=n,t.interpolateBasisClosed=i,t.interpolateCubehelix=q,t.interpolateCubehelixLong=H,t.interpolateDate=v,t.interpolateDiscrete=function(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}},t.interpolateHcl=j,t.interpolateHclLong=U,t.interpolateHsl=F,t.interpolateHslLong=B,t.interpolateHue=function(t,e){var r=s(+t,+e);return function(t){var e=r(t);return e-360*Math.floor(e/360)}},t.interpolateLab=function(t,r){var n=c((t=e.lab(t)).l,(r=e.lab(r)).l),i=c(t.a,r.a),a=c(t.b,r.b),o=c(t.opacity,r.opacity);return function(e){return t.l=n(e),t.a=i(e),t.b=a(e),t.opacity=o(e),t+&quot;&quot;}},t.interpolateNumber=y,t.interpolateNumberArray=d,t.interpolateObject=x,t.interpolateRgb=u,t.interpolateRgbBasis=h,t.interpolateRgbBasisClosed=p,t.interpolateRound=function(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}},t.interpolateString=w,t.interpolateTransformCss=P,t.interpolateTransformSvg=z,t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h&lt;1e-12)n=Math.log(c/o)/O,r=function(t){return[i+t*u,a+t*f,o*Math.exp(O*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),g=(c*c-o*o-4*h)/(2*c*2*p),m=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(g*g+1)-g);n=(v-m)/O,r=function(t){var e,r=t*n,s=D(m),l=o/(2*p)*(s*(e=O*r+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[i+l*u,a+l*f,o*s/D(O*r+m)]}}return r.duration=1e3*n,r},t.piecewise=function(t,e){for(var r=0,n=e.length-1,i=e[0],a=new Array(n&lt;0?0:n);r&lt;n;)a[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return a[e](t-e)}},t.quantize=function(t,e){for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=t(n/(e-1));return r},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-color&quot;:158}],163:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e=Math.PI,r=2*e,n=r-1e-6;function i(){this._x0=this._y0=this._x1=this._y1=null,this._=&quot;&quot;}function a(){return new i}i.prototype=a.prototype={constructor:i,moveTo:function(t,e){this._+=&quot;M&quot;+(this._x0=this._x1=+t)+&quot;,&quot;+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&amp;&amp;(this._x1=this._x0,this._y1=this._y0,this._+=&quot;Z&quot;)},lineTo:function(t,e){this._+=&quot;L&quot;+(this._x1=+t)+&quot;,&quot;+(this._y1=+e)},quadraticCurveTo:function(t,e,r,n){this._+=&quot;Q&quot;+ +t+&quot;,&quot;+ +e+&quot;,&quot;+(this._x1=+r)+&quot;,&quot;+(this._y1=+n)},bezierCurveTo:function(t,e,r,n,i,a){this._+=&quot;C&quot;+ +t+&quot;,&quot;+ +e+&quot;,&quot;+ +r+&quot;,&quot;+ +n+&quot;,&quot;+(this._x1=+i)+&quot;,&quot;+(this._y1=+a)},arcTo:function(t,r,n,i,a){t=+t,r=+r,n=+n,i=+i,a=+a;var o=this._x1,s=this._y1,l=n-t,c=i-r,u=o-t,f=s-r,h=u*u+f*f;if(a&lt;0)throw new Error(&quot;negative radius: &quot;+a);if(null===this._x1)this._+=&quot;M&quot;+(this._x1=t)+&quot;,&quot;+(this._y1=r);else if(h&gt;1e-6)if(Math.abs(f*l-c*u)&gt;1e-6&amp;&amp;a){var p=n-o,d=i-s,g=l*l+c*c,m=p*p+d*d,v=Math.sqrt(g),y=Math.sqrt(h),x=a*Math.tan((e-Math.acos((g+h-m)/(2*v*y)))/2),b=x/y,_=x/v;Math.abs(b-1)&gt;1e-6&amp;&amp;(this._+=&quot;L&quot;+(t+b*u)+&quot;,&quot;+(r+b*f)),this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,0,&quot;+ +(f*p&gt;u*d)+&quot;,&quot;+(this._x1=t+_*l)+&quot;,&quot;+(this._y1=r+_*c)}else this._+=&quot;L&quot;+(this._x1=t)+&quot;,&quot;+(this._y1=r);else;},arc:function(t,i,a,o,s,l){t=+t,i=+i,l=!!l;var c=(a=+a)*Math.cos(o),u=a*Math.sin(o),f=t+c,h=i+u,p=1^l,d=l?o-s:s-o;if(a&lt;0)throw new Error(&quot;negative radius: &quot;+a);null===this._x1?this._+=&quot;M&quot;+f+&quot;,&quot;+h:(Math.abs(this._x1-f)&gt;1e-6||Math.abs(this._y1-h)&gt;1e-6)&amp;&amp;(this._+=&quot;L&quot;+f+&quot;,&quot;+h),a&amp;&amp;(d&lt;0&amp;&amp;(d=d%r+r),d&gt;n?this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,1,&quot;+p+&quot;,&quot;+(t-c)+&quot;,&quot;+(i-u)+&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,1,&quot;+p+&quot;,&quot;+(this._x1=f)+&quot;,&quot;+(this._y1=h):d&gt;1e-6&amp;&amp;(this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,&quot;+ +(d&gt;=e)+&quot;,&quot;+p+&quot;,&quot;+(this._x1=t+a*Math.cos(s))+&quot;,&quot;+(this._y1=i+a*Math.sin(s))))},rect:function(t,e,r,n){this._+=&quot;M&quot;+(this._x0=this._x1=+t)+&quot;,&quot;+(this._y0=this._y1=+e)+&quot;h&quot;+ +r+&quot;v&quot;+ +n+&quot;h&quot;+-r+&quot;Z&quot;},toString:function(){return this._}},t.path=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],164:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var i,a,o,s,l,c,u,f,h,p=t._root,d={data:n},g=t._x0,m=t._y0,v=t._x1,y=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((c=e&gt;=(a=(g+v)/2))?g=a:v=a,(u=r&gt;=(o=(m+y)/2))?m=o:y=o,i=p,!(p=p[f=u&lt;&lt;1|c]))return i[f]=d,t;if(s=+t._x.call(null,p.data),l=+t._y.call(null,p.data),e===s&amp;&amp;r===l)return d.next=p,i?i[f]=d:t._root=d,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(c=e&gt;=(a=(g+v)/2))?g=a:v=a,(u=r&gt;=(o=(m+y)/2))?m=o:y=o}while((f=u&lt;&lt;1|c)==(h=(l&gt;=o)&lt;&lt;1|s&gt;=a));return i[h]=p,i[f]=d,t}function r(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i}function n(t){return t[0]}function i(t){return t[1]}function a(t,e,r){var a=new o(null==e?n:e,null==r?i:r,NaN,NaN,NaN,NaN);return null==t?a:a.addAll(t)}function o(t,e,r,n,i,a){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function s(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var l=a.prototype=o.prototype;l.copy=function(){var t,e,r=new o(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=s(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var i=0;i&lt;4;++i)(e=n.source[i])&amp;&amp;(e.length?t.push({source:e,target:n.target[i]=new Array(4)}):n.target[i]=s(e));return r},l.add=function(t){var r=+this._x.call(null,t),n=+this._y.call(null,t);return e(this.cover(r,n),r,n,t)},l.addAll=function(t){var r,n,i,a,o=t.length,s=new Array(o),l=new Array(o),c=1/0,u=1/0,f=-1/0,h=-1/0;for(n=0;n&lt;o;++n)isNaN(i=+this._x.call(null,r=t[n]))||isNaN(a=+this._y.call(null,r))||(s[n]=i,l[n]=a,i&lt;c&amp;&amp;(c=i),i&gt;f&amp;&amp;(f=i),a&lt;u&amp;&amp;(u=a),a&gt;h&amp;&amp;(h=a));if(c&gt;f||u&gt;h)return this;for(this.cover(c,u).cover(f,h),n=0;n&lt;o;++n)e(this,s[n],l[n],t[n]);return this},l.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,n=this._y0,i=this._x1,a=this._y1;if(isNaN(r))i=(r=Math.floor(t))+1,a=(n=Math.floor(e))+1;else{for(var o,s,l=i-r,c=this._root;r&gt;t||t&gt;=i||n&gt;e||e&gt;=a;)switch(s=(e&lt;n)&lt;&lt;1|t&lt;r,(o=new Array(4))[s]=c,c=o,l*=2,s){case 0:i=r+l,a=n+l;break;case 1:r=i-l,a=n+l;break;case 2:i=r+l,n=a-l;break;case 3:r=i-l,n=a-l}this._root&amp;&amp;this._root.length&amp;&amp;(this._root=c)}return this._x0=r,this._y0=n,this._x1=i,this._y1=a,this},l.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},l.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},l.find=function(t,e,n){var i,a,o,s,l,c,u,f=this._x0,h=this._y0,p=this._x1,d=this._y1,g=[],m=this._root;for(m&amp;&amp;g.push(new r(m,f,h,p,d)),null==n?n=1/0:(f=t-n,h=e-n,p=t+n,d=e+n,n*=n);c=g.pop();)if(!(!(m=c.node)||(a=c.x0)&gt;p||(o=c.y0)&gt;d||(s=c.x1)&lt;f||(l=c.y1)&lt;h))if(m.length){var v=(a+s)/2,y=(o+l)/2;g.push(new r(m[3],v,y,s,l),new r(m[2],a,y,v,l),new r(m[1],v,o,s,y),new r(m[0],a,o,v,y)),(u=(e&gt;=y)&lt;&lt;1|t&gt;=v)&amp;&amp;(c=g[g.length-1],g[g.length-1]=g[g.length-1-u],g[g.length-1-u]=c)}else{var x=t-+this._x.call(null,m.data),b=e-+this._y.call(null,m.data),_=x*x+b*b;if(_&lt;n){var w=Math.sqrt(n=_);f=t-w,h=e-w,p=t+w,d=e+w,i=m.data}}return i},l.remove=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,r,n,i,a,o,s,l,c,u,f,h,p=this._root,d=this._x0,g=this._y0,m=this._x1,v=this._y1;if(!p)return this;if(p.length)for(;;){if((c=a&gt;=(s=(d+m)/2))?d=s:m=s,(u=o&gt;=(l=(g+v)/2))?g=l:v=l,e=p,!(p=p[f=u&lt;&lt;1|c]))return this;if(!p.length)break;(e[f+1&amp;3]||e[f+2&amp;3]||e[f+3&amp;3])&amp;&amp;(r=e,h=f)}for(;p.data!==t;)if(n=p,!(p=p.next))return this;return(i=p.next)&amp;&amp;delete p.next,n?(i?n.next=i:delete n.next,this):e?(i?e[f]=i:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&amp;&amp;p===(e[3]||e[2]||e[1]||e[0])&amp;&amp;!p.length&amp;&amp;(r?r[h]=p:this._root=p),this):(this._root=i,this)},l.removeAll=function(t){for(var e=0,r=t.length;e&lt;r;++e)this.remove(t[e]);return this},l.root=function(){return this._root},l.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},l.visit=function(t){var e,n,i,a,o,s,l=[],c=this._root;for(c&amp;&amp;l.push(new r(c,this._x0,this._y0,this._x1,this._y1));e=l.pop();)if(!t(c=e.node,i=e.x0,a=e.y0,o=e.x1,s=e.y1)&amp;&amp;c.length){var u=(i+o)/2,f=(a+s)/2;(n=c[3])&amp;&amp;l.push(new r(n,u,f,o,s)),(n=c[2])&amp;&amp;l.push(new r(n,i,f,u,s)),(n=c[1])&amp;&amp;l.push(new r(n,u,a,o,f)),(n=c[0])&amp;&amp;l.push(new r(n,i,a,u,f))}return this},l.visitAfter=function(t){var e,n=[],i=[];for(this._root&amp;&amp;n.push(new r(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var a=e.node;if(a.length){var o,s=e.x0,l=e.y0,c=e.x1,u=e.y1,f=(s+c)/2,h=(l+u)/2;(o=a[0])&amp;&amp;n.push(new r(o,s,l,f,h)),(o=a[1])&amp;&amp;n.push(new r(o,f,l,c,h)),(o=a[2])&amp;&amp;n.push(new r(o,s,h,f,u)),(o=a[3])&amp;&amp;n.push(new r(o,f,h,c,u))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},l.x=function(t){return arguments.length?(this._x=t,this):this._x},l.y=function(t){return arguments.length?(this._y=t,this):this._y},t.quadtree=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],165:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-path&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t){return function(){return t}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,c=Math.sqrt,u=Math.PI,f=u/2,h=2*u;function p(t){return t&gt;1?0:t&lt;-1?u:Math.acos(t)}function d(t){return t&gt;=1?f:t&lt;=-1?-f:Math.asin(t)}function g(t){return t.innerRadius}function m(t){return t.outerRadius}function v(t){return t.startAngle}function y(t){return t.endAngle}function x(t){return t&amp;&amp;t.padAngle}function b(t,e,r,n,i,a,o,s){var l=r-t,c=n-e,u=o-i,f=s-a,h=f*l-u*c;if(!(h*h&lt;1e-12))return[t+(h=(u*(e-a)-f*(t-i))/h)*l,e+h*c]}function _(t,e,r,n,i,a,s){var l=t-r,u=e-n,f=(s?a:-a)/c(l*l+u*u),h=f*u,p=-f*l,d=t+h,g=e+p,m=r+h,v=n+p,y=(d+m)/2,x=(g+v)/2,b=m-d,_=v-g,w=b*b+_*_,T=i-a,k=d*v-m*g,M=(_&lt;0?-1:1)*c(o(0,T*T*w-k*k)),A=(k*_-b*M)/w,S=(-k*b-_*M)/w,E=(k*_+b*M)/w,C=(-k*b+_*M)/w,L=A-y,I=S-x,P=E-y,z=C-x;return L*L+I*I&gt;P*P+z*z&amp;&amp;(A=E,S=C),{cx:A,cy:S,x01:-h,y01:-p,x11:A*(i/T-1),y11:S*(i/T-1)}}function w(t){this._context=t}function T(t){return new w(t)}function k(t){return t[0]}function M(t){return t[1]}function A(){var t=k,n=M,i=r(!0),a=null,o=T,s=null;function l(r){var l,c,u,f=r.length,h=!1;for(null==a&amp;&amp;(s=o(u=e.path())),l=0;l&lt;=f;++l)!(l&lt;f&amp;&amp;i(c=r[l],l,r))===h&amp;&amp;((h=!h)?s.lineStart():s.lineEnd()),h&amp;&amp;s.point(+t(c,l,r),+n(c,l,r));if(u)return s=null,u+&quot;&quot;||null}return l.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),l):t},l.y=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:r(+t),l):n},l.defined=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(!!t),l):i},l.curve=function(t){return arguments.length?(o=t,null!=a&amp;&amp;(s=o(a)),l):o},l.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),l):a},l}function S(){var t=k,n=null,i=r(0),a=M,o=r(!0),s=null,l=T,c=null;function u(r){var u,f,h,p,d,g=r.length,m=!1,v=new Array(g),y=new Array(g);for(null==s&amp;&amp;(c=l(d=e.path())),u=0;u&lt;=g;++u){if(!(u&lt;g&amp;&amp;o(p=r[u],u,r))===m)if(m=!m)f=u,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),h=u-1;h&gt;=f;--h)c.point(v[h],y[h]);c.lineEnd(),c.areaEnd()}m&amp;&amp;(v[u]=+t(p,u,r),y[u]=+i(p,u,r),c.point(n?+n(p,u,r):v[u],a?+a(p,u,r):y[u]))}if(d)return c=null,d+&quot;&quot;||null}function f(){return A().defined(o).curve(l).context(s)}return u.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),n=null,u):t},u.x0=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),u):t},u.x1=function(t){return arguments.length?(n=null==t?null:&quot;function&quot;==typeof t?t:r(+t),u):n},u.y=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),a=null,u):i},u.y0=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),u):i},u.y1=function(t){return arguments.length?(a=null==t?null:&quot;function&quot;==typeof t?t:r(+t),u):a},u.lineX0=u.lineY0=function(){return f().x(t).y(i)},u.lineY1=function(){return f().x(t).y(a)},u.lineX1=function(){return f().x(n).y(i)},u.defined=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(!!t),u):o},u.curve=function(t){return arguments.length?(l=t,null!=s&amp;&amp;(c=l(s)),u):l},u.context=function(t){return arguments.length?(null==t?s=c=null:c=l(s=t),u):s},u}function E(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN}function C(t){return t}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var L=P(T);function I(t){this._curve=t}function P(t){function e(e){return new I(t(e))}return e._curve=t,e}function z(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(P(t)):e()._curve},t}function O(){return z(A().curve(L))}function D(){var t=S().curve(L),e=t.curve,r=t.lineX0,n=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return z(r())},delete t.lineX0,t.lineEndAngle=function(){return z(n())},delete t.lineX1,t.lineInnerRadius=function(){return z(i())},delete t.lineY0,t.lineOuterRadius=function(){return z(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(P(t)):e()._curve},t}function R(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}I.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var F=Array.prototype.slice;function B(t){return t.source}function N(t){return t.target}function j(t){var n=B,i=N,a=k,o=M,s=null;function l(){var r,l=F.call(arguments),c=n.apply(this,l),u=i.apply(this,l);if(s||(s=r=e.path()),t(s,+a.apply(this,(l[0]=c,l)),+o.apply(this,l),+a.apply(this,(l[0]=u,l)),+o.apply(this,l)),r)return s=null,r+&quot;&quot;||null}return l.source=function(t){return arguments.length?(n=t,l):n},l.target=function(t){return arguments.length?(i=t,l):i},l.x=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:r(+t),l):a},l.y=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),l):o},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function U(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,i,n,i)}function V(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e,r=(r+i)/2,n,r,n,i)}function q(t,e,r,n,i){var a=R(e,r),o=R(e,r=(r+i)/2),s=R(n,r),l=R(n,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}var H={draw:function(t,e){var r=Math.sqrt(e/u);t.moveTo(r,0),t.arc(0,0,r,0,h)}},G={draw:function(t,e){var r=Math.sqrt(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Y=Math.sqrt(1/3),W=2*Y,X={draw:function(t,e){var r=Math.sqrt(e/W),n=r*Y;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Z=Math.sin(u/10)/Math.sin(7*u/10),J=Math.sin(h/10)*Z,K=-Math.cos(h/10)*Z,Q={draw:function(t,e){var r=Math.sqrt(.8908130915292852*e),n=J*r,i=K*r;t.moveTo(0,-r),t.lineTo(n,i);for(var a=1;a&lt;5;++a){var o=h*a/5,s=Math.cos(o),l=Math.sin(o);t.lineTo(l*r,-s*r),t.lineTo(s*n-l*i,l*n+s*i)}t.closePath()}},$={draw:function(t,e){var r=Math.sqrt(e),n=-r/2;t.rect(n,n,r,r)}},tt=Math.sqrt(3),et={draw:function(t,e){var r=-Math.sqrt(e/(3*tt));t.moveTo(0,2*r),t.lineTo(-tt*r,-r),t.lineTo(tt*r,-r),t.closePath()}},rt=-.5,nt=Math.sqrt(3)/2,it=1/Math.sqrt(12),at=3*(it/2+1),ot={draw:function(t,e){var r=Math.sqrt(e/at),n=r/2,i=r*it,a=n,o=r*it+r,s=-a,l=o;t.moveTo(n,i),t.lineTo(a,o),t.lineTo(s,l),t.lineTo(rt*n-nt*i,nt*n+rt*i),t.lineTo(rt*a-nt*o,nt*a+rt*o),t.lineTo(rt*s-nt*l,nt*s+rt*l),t.lineTo(rt*n+nt*i,rt*i-nt*n),t.lineTo(rt*a+nt*o,rt*o-nt*a),t.lineTo(rt*s+nt*l,rt*l-nt*s),t.closePath()}},st=[H,G,X,$,Q,et,ot];function lt(){}function ct(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function ut(t){this._context=t}function ft(t){this._context=t}function ht(t){this._context=t}function pt(t,e){this._basis=new ut(t),this._beta=e}ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ct(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ft.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},pt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r&gt;0)for(var n,i=t[0],a=e[0],o=t[r]-i,s=e[r]-a,l=-1;++l&lt;=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+n*o),this._beta*e[l]+(1-this._beta)*(a+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var dt=function t(e){function r(t){return 1===e?new ut(t):new pt(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function gt(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function mt(t,e){this._context=t,this._k=(1-e)/6}mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:gt(this,this._x1,this._y1)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var vt=function t(e){function r(t){return new mt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function yt(t,e){this._context=t,this._k=(1-e)/6}yt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var xt=function t(e){function r(t){return new yt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function bt(t,e){this._context=t,this._k=(1-e)/6}bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var _t=function t(e){function r(t){return new bt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function wt(t,e,r){var n=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a&gt;1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a&gt;1e-12){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(n,i,a,o,t._x2,t._y2)}function Tt(t,e){this._context=t,this._alpha=e}Tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var kt=function t(e){function r(t){return e?new Tt(t,e):new mt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Mt(t,e){this._context=t,this._alpha=e}Mt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var At=function t(e){function r(t){return e?new Mt(t,e):new yt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function St(t,e){this._context=t,this._alpha=e}St.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Et=function t(e){function r(t){return e?new St(t,e):new bt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Ct(t){this._context=t}function Lt(t){return t&lt;0?-1:1}function It(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i&lt;0&amp;&amp;-0),o=(r-t._y1)/(i||n&lt;0&amp;&amp;-0),s=(a*i+o*n)/(n+i);return(Lt(a)+Lt(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Pt(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function zt(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-n)/3;t._context.bezierCurveTo(n+s,i+s*e,a-s,o-s*r,a,o)}function Ot(t){this._context=t}function Dt(t){this._context=new Rt(t)}function Rt(t){this._context=t}function Ft(t){this._context=t}function Bt(t){var e,r,n=t.length-1,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e&lt;n-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e&lt;n;++e)r=i[e]/a[e-1],a[e]-=r,o[e]-=r*o[e-1];for(i[n-1]=o[n-1]/a[n-1],e=n-2;e&gt;=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[n-1]=(t[n]+i[n-1])/2,e=0;e&lt;n-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function Nt(t,e){this._context=t,this._t=e}function jt(t,e){if((i=t.length)&gt;1)for(var r,n,i,a=1,o=t[e[0]],s=o.length;a&lt;i;++a)for(n=o,o=t[e[a]],r=0;r&lt;s;++r)o[r][1]+=o[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Ut(t){for(var e=t.length,r=new Array(e);--e&gt;=0;)r[e]=e;return r}function Vt(t,e){return t[e]}function qt(t){var e=t.map(Ht);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function Ht(t){for(var e,r=-1,n=0,i=t.length,a=-1/0;++r&lt;i;)(e=+t[r][1])&gt;a&amp;&amp;(a=e,n=r);return n}function Gt(t){var e=t.map(Yt);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function Yt(t){for(var e,r=0,n=-1,i=t.length;++n&lt;i;)(e=+t[n][1])&amp;&amp;(r+=e);return r}Ct.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._point=0},lineEnd:function(){this._point&amp;&amp;this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Ot.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:zt(this,this._t0,Pt(this,this._t0))}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,zt(this,Pt(this,r=It(this,t,e)),r);break;default:zt(this,this._t0,r=It(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Dt.prototype=Object.create(Ot.prototype)).point=function(t,e){Ot.prototype.point.call(this,e,t)},Rt.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}},Ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=Bt(t),i=Bt(e),a=0,o=1;o&lt;r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&amp;&amp;1===r)&amp;&amp;this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Nt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0&lt;this._t&amp;&amp;this._t&lt;1&amp;&amp;2===this._point&amp;&amp;this._context.lineTo(this._x,this._y),(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line&gt;=0&amp;&amp;(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t&lt;=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},t.arc=function(){var t=g,o=m,w=r(0),T=null,k=v,M=y,A=x,S=null;function E(){var r,g,m=+t.apply(this,arguments),v=+o.apply(this,arguments),y=k.apply(this,arguments)-f,x=M.apply(this,arguments)-f,E=n(x-y),C=x&gt;y;if(S||(S=r=e.path()),v&lt;m&amp;&amp;(g=v,v=m,m=g),v&gt;1e-12)if(E&gt;h-1e-12)S.moveTo(v*a(y),v*l(y)),S.arc(0,0,v,y,x,!C),m&gt;1e-12&amp;&amp;(S.moveTo(m*a(x),m*l(x)),S.arc(0,0,m,x,y,C));else{var L,I,P=y,z=x,O=y,D=x,R=E,F=E,B=A.apply(this,arguments)/2,N=B&gt;1e-12&amp;&amp;(T?+T.apply(this,arguments):c(m*m+v*v)),j=s(n(v-m)/2,+w.apply(this,arguments)),U=j,V=j;if(N&gt;1e-12){var q=d(N/m*l(B)),H=d(N/v*l(B));(R-=2*q)&gt;1e-12?(O+=q*=C?1:-1,D-=q):(R=0,O=D=(y+x)/2),(F-=2*H)&gt;1e-12?(P+=H*=C?1:-1,z-=H):(F=0,P=z=(y+x)/2)}var G=v*a(P),Y=v*l(P),W=m*a(D),X=m*l(D);if(j&gt;1e-12){var Z,J=v*a(z),K=v*l(z),Q=m*a(O),$=m*l(O);if(E&lt;u&amp;&amp;(Z=b(G,Y,Q,$,J,K,W,X))){var tt=G-Z[0],et=Y-Z[1],rt=J-Z[0],nt=K-Z[1],it=1/l(p((tt*rt+et*nt)/(c(tt*tt+et*et)*c(rt*rt+nt*nt)))/2),at=c(Z[0]*Z[0]+Z[1]*Z[1]);U=s(j,(m-at)/(it-1)),V=s(j,(v-at)/(it+1))}}F&gt;1e-12?V&gt;1e-12?(L=_(Q,$,G,Y,v,V,C),I=_(J,K,W,X,v,V,C),S.moveTo(L.cx+L.x01,L.cy+L.y01),V&lt;j?S.arc(L.cx,L.cy,V,i(L.y01,L.x01),i(I.y01,I.x01),!C):(S.arc(L.cx,L.cy,V,i(L.y01,L.x01),i(L.y11,L.x11),!C),S.arc(0,0,v,i(L.cy+L.y11,L.cx+L.x11),i(I.cy+I.y11,I.cx+I.x11),!C),S.arc(I.cx,I.cy,V,i(I.y11,I.x11),i(I.y01,I.x01),!C))):(S.moveTo(G,Y),S.arc(0,0,v,P,z,!C)):S.moveTo(G,Y),m&gt;1e-12&amp;&amp;R&gt;1e-12?U&gt;1e-12?(L=_(W,X,J,K,m,-U,C),I=_(G,Y,Q,$,m,-U,C),S.lineTo(L.cx+L.x01,L.cy+L.y01),U&lt;j?S.arc(L.cx,L.cy,U,i(L.y01,L.x01),i(I.y01,I.x01),!C):(S.arc(L.cx,L.cy,U,i(L.y01,L.x01),i(L.y11,L.x11),!C),S.arc(0,0,m,i(L.cy+L.y11,L.cx+L.x11),i(I.cy+I.y11,I.cx+I.x11),C),S.arc(I.cx,I.cy,U,i(I.y11,I.x11),i(I.y01,I.x01),!C))):S.arc(0,0,m,D,O,C):S.lineTo(W,X)}else S.moveTo(0,0);if(S.closePath(),r)return S=null,r+&quot;&quot;||null}return E.centroid=function(){var e=(+t.apply(this,arguments)+ +o.apply(this,arguments))/2,r=(+k.apply(this,arguments)+ +M.apply(this,arguments))/2-u/2;return[a(r)*e,l(r)*e]},E.innerRadius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),E):t},E.outerRadius=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),E):o},E.cornerRadius=function(t){return arguments.length?(w=&quot;function&quot;==typeof t?t:r(+t),E):w},E.padRadius=function(t){return arguments.length?(T=null==t?null:&quot;function&quot;==typeof t?t:r(+t),E):T},E.startAngle=function(t){return arguments.length?(k=&quot;function&quot;==typeof t?t:r(+t),E):k},E.endAngle=function(t){return arguments.length?(M=&quot;function&quot;==typeof t?t:r(+t),E):M},E.padAngle=function(t){return arguments.length?(A=&quot;function&quot;==typeof t?t:r(+t),E):A},E.context=function(t){return arguments.length?(S=null==t?null:t,E):S},E},t.area=S,t.areaRadial=D,t.curveBasis=function(t){return new ut(t)},t.curveBasisClosed=function(t){return new ft(t)},t.curveBasisOpen=function(t){return new ht(t)},t.curveBundle=dt,t.curveCardinal=vt,t.curveCardinalClosed=xt,t.curveCardinalOpen=_t,t.curveCatmullRom=kt,t.curveCatmullRomClosed=At,t.curveCatmullRomOpen=Et,t.curveLinear=T,t.curveLinearClosed=function(t){return new Ct(t)},t.curveMonotoneX=function(t){return new Ot(t)},t.curveMonotoneY=function(t){return new Dt(t)},t.curveNatural=function(t){return new Ft(t)},t.curveStep=function(t){return new Nt(t,.5)},t.curveStepAfter=function(t){return new Nt(t,1)},t.curveStepBefore=function(t){return new Nt(t,0)},t.line=A,t.lineRadial=O,t.linkHorizontal=function(){return j(U)},t.linkRadial=function(){var t=j(q);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},t.linkVertical=function(){return j(V)},t.pie=function(){var t=C,e=E,n=null,i=r(0),a=r(h),o=r(0);function s(r){var s,l,c,u,f,p=r.length,d=0,g=new Array(p),m=new Array(p),v=+i.apply(this,arguments),y=Math.min(h,Math.max(-h,a.apply(this,arguments)-v)),x=Math.min(Math.abs(y)/p,o.apply(this,arguments)),b=x*(y&lt;0?-1:1);for(s=0;s&lt;p;++s)(f=m[g[s]=s]=+t(r[s],s,r))&gt;0&amp;&amp;(d+=f);for(null!=e?g.sort((function(t,r){return e(m[t],m[r])})):null!=n&amp;&amp;g.sort((function(t,e){return n(r[t],r[e])})),s=0,c=d?(y-p*b)/d:0;s&lt;p;++s,v=u)l=g[s],u=v+((f=m[l])&gt;0?f*c:0)+b,m[l]={data:r[l],index:s,value:f,startAngle:v,endAngle:u,padAngle:x};return m}return s.value=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),s):i},s.endAngle=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:r(+t),s):a},s.padAngle=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),s):o},s},t.pointRadial=R,t.radialArea=D,t.radialLine=O,t.stack=function(){var t=r([]),e=Ut,n=jt,i=Vt;function a(r){var a,o,s=t.apply(this,arguments),l=r.length,c=s.length,u=new Array(c);for(a=0;a&lt;c;++a){for(var f,h=s[a],p=u[a]=new Array(l),d=0;d&lt;l;++d)p[d]=f=[0,+i(r[d],h,d,r)],f.data=r[d];p.key=h}for(a=0,o=e(u);a&lt;c;++a)u[o[a]].index=a;return n(u,o),u}return a.keys=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(F.call(e)),a):t},a.value=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),a):i},a.order=function(t){return arguments.length?(e=null==t?Ut:&quot;function&quot;==typeof t?t:r(F.call(t)),a):e},a.offset=function(t){return arguments.length?(n=null==t?jt:t,a):n},a},t.stackOffsetDiverging=function(t,e){if((s=t.length)&gt;0)for(var r,n,i,a,o,s,l=0,c=t[e[0]].length;l&lt;c;++l)for(a=o=0,r=0;r&lt;s;++r)(i=(n=t[e[r]][l])[1]-n[0])&gt;0?(n[0]=a,n[1]=a+=i):i&lt;0?(n[1]=o,n[0]=o+=i):(n[0]=0,n[1]=i)},t.stackOffsetExpand=function(t,e){if((n=t.length)&gt;0){for(var r,n,i,a=0,o=t[0].length;a&lt;o;++a){for(i=r=0;r&lt;n;++r)i+=t[r][a][1]||0;if(i)for(r=0;r&lt;n;++r)t[r][a][1]/=i}jt(t,e)}},t.stackOffsetNone=jt,t.stackOffsetSilhouette=function(t,e){if((r=t.length)&gt;0){for(var r,n=0,i=t[e[0]],a=i.length;n&lt;a;++n){for(var o=0,s=0;o&lt;r;++o)s+=t[o][n][1]||0;i[n][1]+=i[n][0]=-s/2}jt(t,e)}},t.stackOffsetWiggle=function(t,e){if((i=t.length)&gt;0&amp;&amp;(n=(r=t[e[0]]).length)&gt;0){for(var r,n,i,a=0,o=1;o&lt;n;++o){for(var s=0,l=0,c=0;s&lt;i;++s){for(var u=t[e[s]],f=u[o][1]||0,h=(f-(u[o-1][1]||0))/2,p=0;p&lt;s;++p){var d=t[e[p]];h+=(d[o][1]||0)-(d[o-1][1]||0)}l+=f,c+=h*f}r[o-1][1]+=r[o-1][0]=a,l&amp;&amp;(a-=c/l)}r[o-1][1]+=r[o-1][0]=a,jt(t,e)}},t.stackOrderAppearance=qt,t.stackOrderAscending=Gt,t.stackOrderDescending=function(t){return Gt(t).reverse()},t.stackOrderInsideOut=function(t){var e,r,n=t.length,i=t.map(Yt),a=qt(t),o=0,s=0,l=[],c=[];for(e=0;e&lt;n;++e)r=a[e],o&lt;s?(o+=i[r],l.push(r)):(s+=i[r],c.push(r));return c.reverse().concat(l)},t.stackOrderNone=Ut,t.stackOrderReverse=function(t){return Ut(t).reverse()},t.symbol=function(){var t=r(H),n=r(64),i=null;function a(){var r;if(i||(i=r=e.path()),t.apply(this,arguments).draw(i,+n.apply(this,arguments)),r)return i=null,r+&quot;&quot;||null}return a.type=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(e),a):t},a.size=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:r(+t),a):n},a.context=function(t){return arguments.length?(i=null==t?null:t,a):i},a},t.symbolCircle=H,t.symbolCross=G,t.symbolDiamond=X,t.symbolSquare=$,t.symbolStar=Q,t.symbolTriangle=et,t.symbolWye=ot,t.symbols=st,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-path&quot;:163}],166:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-time&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t){if(0&lt;=t.y&amp;&amp;t.y&lt;100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function n(t){if(0&lt;=t.y&amp;&amp;t.y&lt;100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function i(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function a(t){var a=t.dateTime,o=t.date,l=t.time,c=t.periods,u=t.days,f=t.shortDays,h=t.months,yt=t.shortMonths,xt=p(c),bt=d(c),_t=p(u),wt=d(u),Tt=p(f),kt=d(f),Mt=p(h),At=d(h),St=p(yt),Et=d(yt),Ct={a:function(t){return f[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return yt[t.getMonth()]},B:function(t){return h[t.getMonth()]},c:null,d:D,e:D,f:j,H:R,I:F,j:B,L:N,m:U,M:V,p:function(t){return c[+(t.getHours()&gt;=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:mt,s:vt,S:q,u:H,U:G,V:Y,w:W,W:X,x:null,X:null,y:Z,Y:J,Z:K,&quot;%&quot;:gt},Lt={a:function(t){return f[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return yt[t.getUTCMonth()]},B:function(t){return h[t.getUTCMonth()]},c:null,d:Q,e:Q,f:nt,H:$,I:tt,j:et,L:rt,m:it,M:at,p:function(t){return c[+(t.getUTCHours()&gt;=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:mt,s:vt,S:ot,u:st,U:lt,V:ct,w:ut,W:ft,x:null,X:null,y:ht,Y:pt,Z:dt,&quot;%&quot;:gt},It={a:function(t,e,r){var n=Tt.exec(e.slice(r));return n?(t.w=kt[n[0].toLowerCase()],r+n[0].length):-1},A:function(t,e,r){var n=_t.exec(e.slice(r));return n?(t.w=wt[n[0].toLowerCase()],r+n[0].length):-1},b:function(t,e,r){var n=St.exec(e.slice(r));return n?(t.m=Et[n[0].toLowerCase()],r+n[0].length):-1},B:function(t,e,r){var n=Mt.exec(e.slice(r));return n?(t.m=At[n[0].toLowerCase()],r+n[0].length):-1},c:function(t,e,r){return Ot(t,a,e,r)},d:M,e:M,f:I,H:S,I:S,j:A,L:L,m:k,M:E,p:function(t,e,r){var n=xt.exec(e.slice(r));return n?(t.p=bt[n[0].toLowerCase()],r+n[0].length):-1},q:T,Q:z,s:O,S:C,u:m,U:v,V:y,w:g,W:x,x:function(t,e,r){return Ot(t,o,e,r)},X:function(t,e,r){return Ot(t,l,e,r)},y:_,Y:b,Z:w,&quot;%&quot;:P};function Pt(t,e){return function(r){var n,i,a,o=[],l=-1,c=0,u=t.length;for(r instanceof Date||(r=new Date(+r));++l&lt;u;)37===t.charCodeAt(l)&amp;&amp;(o.push(t.slice(c,l)),null!=(i=s[n=t.charAt(++l)])?n=t.charAt(++l):i=&quot;e&quot;===n?&quot; &quot;:&quot;0&quot;,(a=e[n])&amp;&amp;(n=a(r,i)),o.push(n),c=l+1);return o.push(t.slice(c,l)),o.join(&quot;&quot;)}}function zt(t,a){return function(o){var s,l,c=i(1900,void 0,1);if(Ot(c,t,o+=&quot;&quot;,0)!=o.length)return null;if(&quot;Q&quot;in c)return new Date(c.Q);if(&quot;s&quot;in c)return new Date(1e3*c.s+(&quot;L&quot;in c?c.L:0));if(a&amp;&amp;!(&quot;Z&quot;in c)&amp;&amp;(c.Z=0),&quot;p&quot;in c&amp;&amp;(c.H=c.H%12+12*c.p),void 0===c.m&amp;&amp;(c.m=&quot;q&quot;in c?c.q:0),&quot;V&quot;in c){if(c.V&lt;1||c.V&gt;53)return null;&quot;w&quot;in c||(c.w=1),&quot;Z&quot;in c?(l=(s=n(i(c.y,0,1))).getUTCDay(),s=l&gt;4||0===l?e.utcMonday.ceil(s):e.utcMonday(s),s=e.utcDay.offset(s,7*(c.V-1)),c.y=s.getUTCFullYear(),c.m=s.getUTCMonth(),c.d=s.getUTCDate()+(c.w+6)%7):(l=(s=r(i(c.y,0,1))).getDay(),s=l&gt;4||0===l?e.timeMonday.ceil(s):e.timeMonday(s),s=e.timeDay.offset(s,7*(c.V-1)),c.y=s.getFullYear(),c.m=s.getMonth(),c.d=s.getDate()+(c.w+6)%7)}else(&quot;W&quot;in c||&quot;U&quot;in c)&amp;&amp;(&quot;w&quot;in c||(c.w=&quot;u&quot;in c?c.u%7:&quot;W&quot;in c?1:0),l=&quot;Z&quot;in c?n(i(c.y,0,1)).getUTCDay():r(i(c.y,0,1)).getDay(),c.m=0,c.d=&quot;W&quot;in c?(c.w+6)%7+7*c.W-(l+5)%7:c.w+7*c.U-(l+6)%7);return&quot;Z&quot;in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,n(c)):r(c)}}function Ot(t,e,r,n){for(var i,a,o=0,l=e.length,c=r.length;o&lt;l;){if(n&gt;=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=It[i in s?e.charAt(o++):i])||(n=a(t,r,n))&lt;0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return Ct.x=Pt(o,Ct),Ct.X=Pt(l,Ct),Ct.c=Pt(a,Ct),Lt.x=Pt(o,Lt),Lt.X=Pt(l,Lt),Lt.c=Pt(a,Lt),{format:function(t){var e=Pt(t+=&quot;&quot;,Ct);return e.toString=function(){return t},e},parse:function(t){var e=zt(t+=&quot;&quot;,!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=Pt(t+=&quot;&quot;,Lt);return e.toString=function(){return t},e},utcParse:function(t){var e=zt(t+=&quot;&quot;,!0);return e.toString=function(){return t},e}}}var o,s={&quot;-&quot;:&quot;&quot;,_:&quot; &quot;,0:&quot;0&quot;},l=/^\s*\d+/,c=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(t,e,r){var n=t&lt;0?&quot;-&quot;:&quot;&quot;,i=(n?-t:t)+&quot;&quot;,a=i.length;return n+(a&lt;r?new Array(r-a+1).join(e)+i:i)}function h(t){return t.replace(u,&quot;\\$&amp;&quot;)}function p(t){return new RegExp(&quot;^(?:&quot;+t.map(h).join(&quot;|&quot;)+&quot;)&quot;,&quot;i&quot;)}function d(t){for(var e={},r=-1,n=t.length;++r&lt;n;)e[t[r].toLowerCase()]=r;return e}function g(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function m(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function v(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function y(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function x(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function b(t,e,r){var n=l.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function _(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]&gt;68?1900:2e3),r+n[0].length):-1}function w(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||&quot;00&quot;)),r+n[0].length):-1}function T(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function k(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function M(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function A(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function S(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function E(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function C(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function L(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function I(t,e,r){var n=l.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function P(t,e,r){var n=c.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function z(t,e,r){var n=l.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function O(t,e,r){var n=l.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function D(t,e){return f(t.getDate(),e,2)}function R(t,e){return f(t.getHours(),e,2)}function F(t,e){return f(t.getHours()%12||12,e,2)}function B(t,r){return f(1+e.timeDay.count(e.timeYear(t),t),r,3)}function N(t,e){return f(t.getMilliseconds(),e,3)}function j(t,e){return N(t,e)+&quot;000&quot;}function U(t,e){return f(t.getMonth()+1,e,2)}function V(t,e){return f(t.getMinutes(),e,2)}function q(t,e){return f(t.getSeconds(),e,2)}function H(t){var e=t.getDay();return 0===e?7:e}function G(t,r){return f(e.timeSunday.count(e.timeYear(t)-1,t),r,2)}function Y(t,r){var n=t.getDay();return t=n&gt;=4||0===n?e.timeThursday(t):e.timeThursday.ceil(t),f(e.timeThursday.count(e.timeYear(t),t)+(4===e.timeYear(t).getDay()),r,2)}function W(t){return t.getDay()}function X(t,r){return f(e.timeMonday.count(e.timeYear(t)-1,t),r,2)}function Z(t,e){return f(t.getFullYear()%100,e,2)}function J(t,e){return f(t.getFullYear()%1e4,e,4)}function K(t){var e=t.getTimezoneOffset();return(e&gt;0?&quot;-&quot;:(e*=-1,&quot;+&quot;))+f(e/60|0,&quot;0&quot;,2)+f(e%60,&quot;0&quot;,2)}function Q(t,e){return f(t.getUTCDate(),e,2)}function $(t,e){return f(t.getUTCHours(),e,2)}function tt(t,e){return f(t.getUTCHours()%12||12,e,2)}function et(t,r){return f(1+e.utcDay.count(e.utcYear(t),t),r,3)}function rt(t,e){return f(t.getUTCMilliseconds(),e,3)}function nt(t,e){return rt(t,e)+&quot;000&quot;}function it(t,e){return f(t.getUTCMonth()+1,e,2)}function at(t,e){return f(t.getUTCMinutes(),e,2)}function ot(t,e){return f(t.getUTCSeconds(),e,2)}function st(t){var e=t.getUTCDay();return 0===e?7:e}function lt(t,r){return f(e.utcSunday.count(e.utcYear(t)-1,t),r,2)}function ct(t,r){var n=t.getUTCDay();return t=n&gt;=4||0===n?e.utcThursday(t):e.utcThursday.ceil(t),f(e.utcThursday.count(e.utcYear(t),t)+(4===e.utcYear(t).getUTCDay()),r,2)}function ut(t){return t.getUTCDay()}function ft(t,r){return f(e.utcMonday.count(e.utcYear(t)-1,t),r,2)}function ht(t,e){return f(t.getUTCFullYear()%100,e,2)}function pt(t,e){return f(t.getUTCFullYear()%1e4,e,4)}function dt(){return&quot;+0000&quot;}function gt(){return&quot;%&quot;}function mt(t){return+t}function vt(t){return Math.floor(+t/1e3)}function yt(e){return o=a(e),t.timeFormat=o.format,t.timeParse=o.parse,t.utcFormat=o.utcFormat,t.utcParse=o.utcParse,o}yt({dateTime:&quot;%x, %X&quot;,date:&quot;%-m/%-d/%Y&quot;,time:&quot;%-I:%M:%S %p&quot;,periods:[&quot;AM&quot;,&quot;PM&quot;],days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;]});var xt=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);var bt=+new Date(&quot;2000-01-01T00:00:00.000Z&quot;)?function(t){var e=new Date(t);return isNaN(e)?null:e}:t.utcParse(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);t.isoFormat=xt,t.isoParse=bt,t.timeFormatDefaultLocale=yt,t.timeFormatLocale=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-time&quot;:167}],167:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e=new Date,r=new Date;function n(t,i,a,o){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),i(e,1),t(e),e},s.round=function(t){var e=s(t),r=s.ceil(t);return t-e&lt;r-t?e:r},s.offset=function(t,e){return i(t=new Date(+t),null==e?1:Math.floor(e)),t},s.range=function(e,r,n){var a,o=[];if(e=s.ceil(e),n=null==n?1:Math.floor(n),!(e&lt;r&amp;&amp;n&gt;0))return o;do{o.push(a=new Date(+e)),i(e,n),t(e)}while(a&lt;e&amp;&amp;e&lt;r);return o},s.filter=function(e){return n((function(r){if(r&gt;=r)for(;t(r),!e(r);)r.setTime(r-1)}),(function(t,r){if(t&gt;=t)if(r&lt;0)for(;++r&lt;=0;)for(;i(t,-1),!e(t););else for(;--r&gt;=0;)for(;i(t,1),!e(t););}))},a&amp;&amp;(s.count=function(n,i){return e.setTime(+n),r.setTime(+i),t(e),t(r),Math.floor(a(e,r))},s.every=function(t){return t=Math.floor(t),isFinite(t)&amp;&amp;t&gt;0?t&gt;1?s.filter(o?function(e){return o(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}var i=n((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));i.every=function(t){return t=Math.floor(t),isFinite(t)&amp;&amp;t&gt;0?t&gt;1?n((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,r){e.setTime(+e+r*t)}),(function(e,r){return(r-e)/t})):i:null};var a=i.range,o=n((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()})),s=o.range,l=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()})),c=l.range,u=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()})),f=u.range,h=n((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1})),p=h.range;function d(t){return n((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var g=d(0),m=d(1),v=d(2),y=d(3),x=d(4),b=d(5),_=d(6),w=g.range,T=m.range,k=v.range,M=y.range,A=x.range,S=b.range,E=_.range,C=n((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),L=C.range,I=n((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));I.every=function(t){return isFinite(t=Math.floor(t))&amp;&amp;t&gt;0?n((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,r){e.setFullYear(e.getFullYear()+r*t)})):null};var P=I.range,z=n((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getUTCMinutes()})),O=z.range,D=n((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()})),R=D.range,F=n((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1})),B=F.range;function N(t){return n((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}var j=N(0),U=N(1),V=N(2),q=N(3),H=N(4),G=N(5),Y=N(6),W=j.range,X=U.range,Z=V.range,J=q.range,K=H.range,Q=G.range,$=Y.range,tt=n((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),et=tt.range,rt=n((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));rt.every=function(t){return isFinite(t=Math.floor(t))&amp;&amp;t&gt;0?n((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null};var nt=rt.range;t.timeDay=h,t.timeDays=p,t.timeFriday=b,t.timeFridays=S,t.timeHour=u,t.timeHours=f,t.timeInterval=n,t.timeMillisecond=i,t.timeMilliseconds=a,t.timeMinute=l,t.timeMinutes=c,t.timeMonday=m,t.timeMondays=T,t.timeMonth=C,t.timeMonths=L,t.timeSaturday=_,t.timeSaturdays=E,t.timeSecond=o,t.timeSeconds=s,t.timeSunday=g,t.timeSundays=w,t.timeThursday=x,t.timeThursdays=A,t.timeTuesday=v,t.timeTuesdays=k,t.timeWednesday=y,t.timeWednesdays=M,t.timeWeek=g,t.timeWeeks=w,t.timeYear=I,t.timeYears=P,t.utcDay=F,t.utcDays=B,t.utcFriday=G,t.utcFridays=Q,t.utcHour=D,t.utcHours=R,t.utcMillisecond=i,t.utcMilliseconds=a,t.utcMinute=z,t.utcMinutes=O,t.utcMonday=U,t.utcMondays=X,t.utcMonth=tt,t.utcMonths=et,t.utcSaturday=Y,t.utcSaturdays=$,t.utcSecond=o,t.utcSeconds=s,t.utcSunday=j,t.utcSundays=W,t.utcThursday=H,t.utcThursdays=K,t.utcTuesday=V,t.utcTuesdays=Z,t.utcWednesday=q,t.utcWednesdays=J,t.utcWeek=j,t.utcWeeks=W,t.utcYear=rt,t.utcYears=nt,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],168:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e,r,n=0,i=0,a=0,o=0,s=0,l=0,c=&quot;object&quot;==typeof performance&amp;&amp;performance.now?performance:Date,u=&quot;object&quot;==typeof window&amp;&amp;window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function f(){return s||(u(h),s=c.now()+l)}function h(){s=0}function p(){this._call=this._time=this._next=null}function d(t,e,r){var n=new p;return n.restart(t,e,r),n}function g(){f(),++n;for(var t,r=e;r;)(t=s-r._time)&gt;=0&amp;&amp;r._call.call(null,t),r=r._next;--n}function m(){s=(o=c.now())+l,n=i=0;try{g()}finally{n=0,function(){var t,n,i=e,a=1/0;for(;i;)i._call?(a&gt;i._time&amp;&amp;(a=i._time),t=i,i=i._next):(n=i._next,i._next=null,i=t?t._next=n:e=n);r=t,y(a)}(),s=0}}function v(){var t=c.now(),e=t-o;e&gt;1e3&amp;&amp;(l-=e,o=t)}function y(t){n||(i&amp;&amp;(i=clearTimeout(i)),t-s&gt;24?(t&lt;1/0&amp;&amp;(i=setTimeout(m,t-c.now()-l)),a&amp;&amp;(a=clearInterval(a))):(a||(o=c.now(),a=setInterval(v,1e3)),n=1,u(m)))}p.prototype=d.prototype={constructor:p,restart:function(t,n,i){if(&quot;function&quot;!=typeof t)throw new TypeError(&quot;callback is not a function&quot;);i=(null==i?f():+i)+(null==n?0:+n),this._next||r===this||(r?r._next=this:e=this,r=this),this._call=t,this._time=i,y()},stop:function(){this._call&amp;&amp;(this._call=null,this._time=1/0,y())}},t.interval=function(t,e,r){var n=new p,i=e;return null==e?(n.restart(t,e,r),n):(e=+e,r=null==r?f():+r,n.restart((function a(o){o+=i,n.restart(a,i+=e,r),t(o)}),e,r),n)},t.now=f,t.timeout=function(t,e,r){var n=new p;return e=null==e?0:+e,n.restart((function(r){n.stop(),t(r+e)}),e,r),n},t.timer=d,t.timerFlush=g,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],169:[function(t,e,r){!function(){var t={version:&quot;3.5.17&quot;},r=[].slice,n=function(t){return r.call(t)},i=this.document;function a(t){return t&amp;&amp;(t.ownerDocument||t.document||t).documentElement}function o(t){return t&amp;&amp;(t.ownerDocument&amp;&amp;t.ownerDocument.defaultView||t.document&amp;&amp;t||t.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch(t){n=function(t){for(var e=t.length,r=new Array(e);e--;)r[e]=t[e];return r}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement(&quot;DIV&quot;).style.setProperty(&quot;opacity&quot;,0,&quot;&quot;)}catch(t){var s=this.Element.prototype,l=s.setAttribute,c=s.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;s.setAttribute=function(t,e){l.call(this,t,e+&quot;&quot;)},s.setAttributeNS=function(t,e,r){c.call(this,t,e,r+&quot;&quot;)},u.setProperty=function(t,e,r){f.call(this,t,e+&quot;&quot;,r)}}function h(t,e){return t&lt;e?-1:t&gt;e?1:t&gt;=e?0:NaN}function p(t){return null===t?NaN:+t}function d(t){return!isNaN(t)}function g(t){return{left:function(e,r,n,i){for(arguments.length&lt;3&amp;&amp;(n=0),arguments.length&lt;4&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&lt;0?n=a+1:i=a}return n},right:function(e,r,n,i){for(arguments.length&lt;3&amp;&amp;(n=0),arguments.length&lt;4&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&gt;0?i=a:n=a+1}return n}}}t.ascending=h,t.descending=function(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN},t.min=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i&lt;a;)if(null!=(n=t[i])&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=t[i])&amp;&amp;r&gt;n&amp;&amp;(r=n)}else{for(;++i&lt;a;)if(null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=e.call(t,t[i],i))&amp;&amp;r&gt;n&amp;&amp;(r=n)}return r},t.max=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i&lt;a;)if(null!=(n=t[i])&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=t[i])&amp;&amp;n&gt;r&amp;&amp;(r=n)}else{for(;++i&lt;a;)if(null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;r&amp;&amp;(r=n)}return r},t.extent=function(t,e){var r,n,i,a=-1,o=t.length;if(1===arguments.length){for(;++a&lt;o;)if(null!=(n=t[a])&amp;&amp;n&gt;=n){r=i=n;break}for(;++a&lt;o;)null!=(n=t[a])&amp;&amp;(r&gt;n&amp;&amp;(r=n),i&lt;n&amp;&amp;(i=n))}else{for(;++a&lt;o;)if(null!=(n=e.call(t,t[a],a))&amp;&amp;n&gt;=n){r=i=n;break}for(;++a&lt;o;)null!=(n=e.call(t,t[a],a))&amp;&amp;(r&gt;n&amp;&amp;(r=n),i&lt;n&amp;&amp;(i=n))}return[r,i]},t.sum=function(t,e){var r,n=0,i=t.length,a=-1;if(1===arguments.length)for(;++a&lt;i;)d(r=+t[a])&amp;&amp;(n+=r);else for(;++a&lt;i;)d(r=+e.call(t,t[a],a))&amp;&amp;(n+=r);return n},t.mean=function(t,e){var r,n=0,i=t.length,a=-1,o=i;if(1===arguments.length)for(;++a&lt;i;)d(r=p(t[a]))?n+=r:--o;else for(;++a&lt;i;)d(r=p(e.call(t,t[a],a)))?n+=r:--o;if(o)return n/o},t.quantile=function(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i},t.median=function(e,r){var n,i=[],a=e.length,o=-1;if(1===arguments.length)for(;++o&lt;a;)d(n=p(e[o]))&amp;&amp;i.push(n);else for(;++o&lt;a;)d(n=p(r.call(e,e[o],o)))&amp;&amp;i.push(n);if(i.length)return t.quantile(i.sort(h),.5)},t.variance=function(t,e){var r,n,i=t.length,a=0,o=0,s=-1,l=0;if(1===arguments.length)for(;++s&lt;i;)d(r=p(t[s]))&amp;&amp;(o+=(n=r-a)*(r-(a+=n/++l)));else for(;++s&lt;i;)d(r=p(e.call(t,t[s],s)))&amp;&amp;(o+=(n=r-a)*(r-(a+=n/++l)));if(l&gt;1)return o/(l-1)},t.deviation=function(){var e=t.variance.apply(this,arguments);return e?Math.sqrt(e):e};var m=g(h);function v(t){return t.length}t.bisectLeft=m.left,t.bisect=t.bisectRight=m.right,t.bisector=function(t){return g(1===t.length?function(e,r){return h(t(e),r)}:t)},t.shuffle=function(t,e,r){(a=arguments.length)&lt;3&amp;&amp;(r=t.length,a&lt;2&amp;&amp;(e=0));for(var n,i,a=r-e;a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.pairs=function(t){for(var e=0,r=t.length-1,n=t[0],i=new Array(r&lt;0?0:r);e&lt;r;)i[e]=[n,n=t[++e]];return i},t.transpose=function(e){if(!(a=e.length))return[];for(var r=-1,n=t.min(e,v),i=new Array(n);++r&lt;n;)for(var a,o=-1,s=i[r]=new Array(a);++o&lt;a;)s[o]=e[o][r];return i},t.zip=function(){return t.transpose(arguments)},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a&lt;i;)o+=t[a].length;for(r=new Array(o);--i&gt;=0;)for(e=(n=t[i]).length;--e&gt;=0;)r[--o]=n[e];return r};var y=Math.abs;function x(t){for(var e=1;t*e%1;)e*=10;return e}function b(t,e){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],enumerable:!1})}function _(){this._=Object.create(null)}t.range=function(t,e,r){if(arguments.length&lt;3&amp;&amp;(r=1,arguments.length&lt;2&amp;&amp;(e=t,t=0)),(e-t)/r==1/0)throw new Error(&quot;infinite range&quot;);var n,i=[],a=x(y(r)),o=-1;if(t*=a,e*=a,(r*=a)&lt;0)for(;(n=t+r*++o)&gt;e;)i.push(n/a);else for(;(n=t+r*++o)&lt;e;)i.push(n/a);return i},t.map=function(t,e){var r=new _;if(t instanceof _)t.forEach((function(t,e){r.set(t,e)}));else if(Array.isArray(t)){var n,i=-1,a=t.length;if(1===arguments.length)for(;++i&lt;a;)r.set(i,t[i]);else for(;++i&lt;a;)r.set(e.call(t,n=t[i],i),n)}else for(var o in t)r.set(o,t[o]);return r};function w(t){return&quot;__proto__&quot;==(t+=&quot;&quot;)||&quot;\0&quot;===t[0]?&quot;\0&quot;+t:t}function T(t){return&quot;\0&quot;===(t+=&quot;&quot;)[0]?t.slice(1):t}function k(t){return w(t)in this._}function M(t){return(t=w(t))in this._&amp;&amp;delete this._[t]}function A(){var t=[];for(var e in this._)t.push(T(e));return t}function S(){var t=0;for(var e in this._)++t;return t}function E(){for(var t in this._)return!1;return!0}function C(){this._=Object.create(null)}function L(t){return t}function I(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}function P(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var r=0,n=z.length;r&lt;n;++r){var i=z[r]+e;if(i in t)return i}}b(_,{has:k,get:function(t){return this._[w(t)]},set:function(t,e){return this._[w(t)]=e},remove:M,keys:A,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:T(e),value:this._[e]});return t},size:S,empty:E,forEach:function(t){for(var e in this._)t.call(this,T(e),this._[e])}}),t.nest=function(){var e,r,n={},i=[],a=[];function o(t,a,s){if(s&gt;=i.length)return r?r.call(n,a):e?a.sort(e):a;for(var l,c,u,f,h=-1,p=a.length,d=i[s++],g=new _;++h&lt;p;)(f=g.get(l=d(c=a[h])))?f.push(c):g.set(l,[c]);return t?(c=t(),u=function(e,r){c.set(e,o(t,r,s))}):(c={},u=function(e,r){c[e]=o(t,r,s)}),g.forEach(u),c}return n.map=function(t,e){return o(e,t,0)},n.entries=function(e){return function t(e,r){if(r&gt;=i.length)return e;var n=[],o=a[r++];return e.forEach((function(e,i){n.push({key:e,values:t(i,r)})})),o?n.sort((function(t,e){return o(t.key,e.key)})):n}(o(t.map,e,0),0)},n.key=function(t){return i.push(t),n},n.sortKeys=function(t){return a[i.length-1]=t,n},n.sortValues=function(t){return e=t,n},n.rollup=function(t){return r=t,n},n},t.set=function(t){var e=new C;if(t)for(var r=0,n=t.length;r&lt;n;++r)e.add(t[r]);return e},b(C,{has:k,add:function(t){return this._[w(t+=&quot;&quot;)]=!0,t},remove:M,values:A,size:S,empty:E,forEach:function(t){for(var e in this._)t.call(this,T(e))}}),t.behavior={},t.rebind=function(t,e){for(var r,n=1,i=arguments.length;++n&lt;i;)t[r=arguments[n]]=I(t,e,e[r]);return t};var z=[&quot;webkit&quot;,&quot;ms&quot;,&quot;moz&quot;,&quot;Moz&quot;,&quot;o&quot;,&quot;O&quot;];function O(){}function D(){}function R(t){var e=[],r=new _;function n(){for(var r,n=e,i=-1,a=n.length;++i&lt;a;)(r=n[i].on)&amp;&amp;r.apply(this,arguments);return t}return n.on=function(n,i){var a,o=r.get(n);return arguments.length&lt;2?o&amp;&amp;o.on:(o&amp;&amp;(o.on=null,e=e.slice(0,a=e.indexOf(o)).concat(e.slice(a+1)),r.remove(n)),i&amp;&amp;e.push(r.set(n,{on:i})),t)},n}function F(){t.event.preventDefault()}function B(){for(var e,r=t.event;e=r.sourceEvent;)r=e;return r}function N(e){for(var r=new D,n=0,i=arguments.length;++n&lt;i;)r[arguments[n]]=R(r);return r.of=function(n,i){return function(a){try{var o=a.sourceEvent=t.event;a.target=e,t.event=a,r[a.type].apply(n,i)}finally{t.event=o}}},r}t.dispatch=function(){for(var t=new D,e=-1,r=arguments.length;++e&lt;r;)t[arguments[e]]=R(t);return t},D.prototype.on=function(t,e){var r=t.indexOf(&quot;.&quot;),n=&quot;&quot;;if(r&gt;=0&amp;&amp;(n=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length&lt;2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&amp;&amp;this[t].on(n,null);return this}},t.event=null,t.requote=function(t){return t.replace(j,&quot;\\$&amp;&quot;)};var j=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,U={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)t[r]=e[r]};function V(t){return U(t,Y),t}var q=function(t,e){return e.querySelector(t)},H=function(t,e){return e.querySelectorAll(t)},G=function(t,e){var r=t.matches||t[P(t,&quot;matchesSelector&quot;)];return(G=function(t,e){return r.call(t,e)})(t,e)};&quot;function&quot;==typeof Sizzle&amp;&amp;(q=function(t,e){return Sizzle(t,e)[0]||null},H=Sizzle,G=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Y=t.selection.prototype=[];function W(t){return&quot;function&quot;==typeof t?t:function(){return q(t,this)}}function X(t){return&quot;function&quot;==typeof t?t:function(){return H(t,this)}}Y.select=function(t){var e,r,n,i,a=[];t=W(t);for(var o=-1,s=this.length;++o&lt;s;){a.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var l=-1,c=n.length;++l&lt;c;)(i=n[l])?(e.push(r=t.call(i,i.__data__,l,o)),r&amp;&amp;&quot;__data__&quot;in i&amp;&amp;(r.__data__=i.__data__)):e.push(null)}return V(a)},Y.selectAll=function(t){var e,r,i=[];t=X(t);for(var a=-1,o=this.length;++a&lt;o;)for(var s=this[a],l=-1,c=s.length;++l&lt;c;)(r=s[l])&amp;&amp;(i.push(e=n(t.call(r,r.__data__,l,a))),e.parentNode=r);return V(i)};var Z=&quot;http://www.w3.org/1999/xhtml&quot;,J={svg:&quot;http://www.w3.org/2000/svg&quot;,xhtml:Z,xlink:&quot;http://www.w3.org/1999/xlink&quot;,xml:&quot;http://www.w3.org/XML/1998/namespace&quot;,xmlns:&quot;http://www.w3.org/2000/xmlns/&quot;};function K(e,r){return e=t.ns.qualify(e),null==r?e.local?function(){this.removeAttributeNS(e.space,e.local)}:function(){this.removeAttribute(e)}:&quot;function&quot;==typeof r?e.local?function(){var t=r.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}:function(){var t=r.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}:e.local?function(){this.setAttributeNS(e.space,e.local,r)}:function(){this.setAttribute(e,r)}}function Q(t){return t.trim().replace(/\s+/g,&quot; &quot;)}function $(e){return new RegExp(&quot;(?:^|\\s+)&quot;+t.requote(e)+&quot;(?:\\s+|$)&quot;,&quot;g&quot;)}function tt(t){return(t+&quot;&quot;).trim().split(/^|\s+/)}function et(t,e){var r=(t=tt(t).map(rt)).length;return&quot;function&quot;==typeof e?function(){for(var n=-1,i=e.apply(this,arguments);++n&lt;r;)t[n](this,i)}:function(){for(var n=-1;++n&lt;r;)t[n](this,e)}}function rt(t){var e=$(t);return function(r,n){if(i=r.classList)return n?i.add(t):i.remove(t);var i=r.getAttribute(&quot;class&quot;)||&quot;&quot;;n?(e.lastIndex=0,e.test(i)||r.setAttribute(&quot;class&quot;,Q(i+&quot; &quot;+t))):r.setAttribute(&quot;class&quot;,Q(i.replace(e,&quot; &quot;)))}}function nt(t,e,r){return null==e?function(){this.style.removeProperty(t)}:&quot;function&quot;==typeof e?function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}:function(){this.style.setProperty(t,e,r)}}function it(t,e){return null==e?function(){delete this[t]}:&quot;function&quot;==typeof e?function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}:function(){this[t]=e}}function at(e){return&quot;function&quot;==typeof e?e:(e=t.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Z&amp;&amp;t.documentElement.namespaceURI===Z?t.createElement(e):t.createElementNS(r,e)}}function ot(){var t=this.parentNode;t&amp;&amp;t.removeChild(this)}function st(t){return{__data__:t}}function lt(t){return function(){return G(this,t)}}function ct(t){return arguments.length||(t=h),function(e,r){return e&amp;&amp;r?t(e.__data__,r.__data__):!e-!r}}function ut(t,e){for(var r=0,n=t.length;r&lt;n;r++)for(var i,a=t[r],o=0,s=a.length;o&lt;s;o++)(i=a[o])&amp;&amp;e(i,o,r);return t}function ft(t){return U(t,ht),t}t.ns={prefix:J,qualify:function(t){var e=t.indexOf(&quot;:&quot;),r=t;return e&gt;=0&amp;&amp;&quot;xmlns&quot;!==(r=t.slice(0,e))&amp;&amp;(t=t.slice(e+1)),J.hasOwnProperty(r)?{space:J[r],local:t}:t}},Y.attr=function(e,r){if(arguments.length&lt;2){if(&quot;string&quot;==typeof e){var n=this.node();return(e=t.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(r in e)this.each(K(r,e[r]));return this}return this.each(K(e,r))},Y.classed=function(t,e){if(arguments.length&lt;2){if(&quot;string&quot;==typeof t){var r=this.node(),n=(t=tt(t)).length,i=-1;if(e=r.classList){for(;++i&lt;n;)if(!e.contains(t[i]))return!1}else for(e=r.getAttribute(&quot;class&quot;);++i&lt;n;)if(!$(t[i]).test(e))return!1;return!0}for(e in t)this.each(et(e,t[e]));return this}return this.each(et(t,e))},Y.style=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=&quot;&quot;),t)this.each(nt(r,t[r],e));return this}if(n&lt;2){var i=this.node();return o(i).getComputedStyle(i,null).getPropertyValue(t)}r=&quot;&quot;}return this.each(nt(t,e,r))},Y.property=function(t,e){if(arguments.length&lt;2){if(&quot;string&quot;==typeof t)return this.node()[t];for(e in t)this.each(it(e,t[e]));return this}return this.each(it(t,e))},Y.text=function(t){return arguments.length?this.each(&quot;function&quot;==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?&quot;&quot;:e}:null==t?function(){this.textContent=&quot;&quot;}:function(){this.textContent=t}):this.node().textContent},Y.html=function(t){return arguments.length?this.each(&quot;function&quot;==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?&quot;&quot;:e}:null==t?function(){this.innerHTML=&quot;&quot;}:function(){this.innerHTML=t}):this.node().innerHTML},Y.append=function(t){return t=at(t),this.select((function(){return this.appendChild(t.apply(this,arguments))}))},Y.insert=function(t,e){return t=at(t),e=W(e),this.select((function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)}))},Y.remove=function(){return this.each(ot)},Y.data=function(t,e){var r,n,i=-1,a=this.length;if(!arguments.length){for(t=new Array(a=(r=this[0]).length);++i&lt;a;)(n=r[i])&amp;&amp;(t[i]=n.__data__);return t}function o(t,r){var n,i,a,o=t.length,u=r.length,f=Math.min(o,u),h=new Array(u),p=new Array(u),d=new Array(o);if(e){var g,m=new _,v=new Array(o);for(n=-1;++n&lt;o;)(i=t[n])&amp;&amp;(m.has(g=e.call(i,i.__data__,n))?d[n]=i:m.set(g,i),v[n]=g);for(n=-1;++n&lt;u;)(i=m.get(g=e.call(r,a=r[n],n)))?!0!==i&amp;&amp;(h[n]=i,i.__data__=a):p[n]=st(a),m.set(g,!0);for(n=-1;++n&lt;o;)n in v&amp;&amp;!0!==m.get(v[n])&amp;&amp;(d[n]=t[n])}else{for(n=-1;++n&lt;f;)i=t[n],a=r[n],i?(i.__data__=a,h[n]=i):p[n]=st(a);for(;n&lt;u;++n)p[n]=st(r[n]);for(;n&lt;o;++n)d[n]=t[n]}p.update=h,p.parentNode=h.parentNode=d.parentNode=t.parentNode,s.push(p),l.push(h),c.push(d)}var s=ft([]),l=V([]),c=V([]);if(&quot;function&quot;==typeof t)for(;++i&lt;a;)o(r=this[i],t.call(r,r.parentNode.__data__,i));else for(;++i&lt;a;)o(r=this[i],t);return l.enter=function(){return s},l.exit=function(){return c},l},Y.datum=function(t){return arguments.length?this.property(&quot;__data__&quot;,t):this.property(&quot;__data__&quot;)},Y.filter=function(t){var e,r,n,i=[];&quot;function&quot;!=typeof t&amp;&amp;(t=lt(t));for(var a=0,o=this.length;a&lt;o;a++){i.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var s=0,l=r.length;s&lt;l;s++)(n=r[s])&amp;&amp;t.call(n,n.__data__,s,a)&amp;&amp;e.push(n)}return V(i)},Y.order=function(){for(var t=-1,e=this.length;++t&lt;e;)for(var r,n=this[t],i=n.length-1,a=n[i];--i&gt;=0;)(r=n[i])&amp;&amp;(a&amp;&amp;a!==r.nextSibling&amp;&amp;a.parentNode.insertBefore(r,a),a=r);return this},Y.sort=function(t){t=ct.apply(this,arguments);for(var e=-1,r=this.length;++e&lt;r;)this[e].sort(t);return this.order()},Y.each=function(t){return ut(this,(function(e,r,n){t.call(e,e.__data__,r,n)}))},Y.call=function(t){var e=n(arguments);return t.apply(e[0]=this,e),this},Y.empty=function(){return!this.node()},Y.node=function(){for(var t=0,e=this.length;t&lt;e;t++)for(var r=this[t],n=0,i=r.length;n&lt;i;n++){var a=r[n];if(a)return a}return null},Y.size=function(){var t=0;return ut(this,(function(){++t})),t};var ht=[];function pt(t){var e,r;return function(n,i,a){var o,s=t[a].update,l=s.length;for(a!=r&amp;&amp;(r=a,e=0),i&gt;=e&amp;&amp;(e=i+1);!(o=s[e])&amp;&amp;++e&lt;l;);return o}}function dt(e,r,i){var a=&quot;__on&quot;+e,o=e.indexOf(&quot;.&quot;),s=mt;o&gt;0&amp;&amp;(e=e.slice(0,o));var l=gt.get(e);function c(){var t=this[a];t&amp;&amp;(this.removeEventListener(e,t,t.$),delete this[a])}return l&amp;&amp;(e=l,s=vt),o?r?function(){var t=s(r,n(arguments));c.call(this),this.addEventListener(e,this[a]=t,t.$=i),t._=r}:c:r?O:function(){var r,n=new RegExp(&quot;^__on([^.]+)&quot;+t.requote(e)+&quot;$&quot;);for(var i in this)if(r=i.match(n)){var a=this[i];this.removeEventListener(r[1],a,a.$),delete this[i]}}}t.selection.enter=ft,t.selection.enter.prototype=ht,ht.append=Y.append,ht.empty=Y.empty,ht.node=Y.node,ht.call=Y.call,ht.size=Y.size,ht.select=function(t){for(var e,r,n,i,a,o=[],s=-1,l=this.length;++s&lt;l;){n=(i=this[s]).update,o.push(e=[]),e.parentNode=i.parentNode;for(var c=-1,u=i.length;++c&lt;u;)(a=i[c])?(e.push(n[c]=r=t.call(i.parentNode,a.__data__,c,s)),r.__data__=a.__data__):e.push(null)}return V(o)},ht.insert=function(t,e){return arguments.length&lt;2&amp;&amp;(e=pt(this)),Y.insert.call(this,t,e)},t.select=function(t){var e;return&quot;string&quot;==typeof t?(e=[q(t,i)]).parentNode=i.documentElement:(e=[t]).parentNode=a(t),V([e])},t.selectAll=function(t){var e;return&quot;string&quot;==typeof t?(e=n(H(t,i))).parentNode=i.documentElement:(e=n(t)).parentNode=null,V([e])},Y.on=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=!1),t)this.each(dt(r,t[r],e));return this}if(n&lt;2)return(n=this.node()[&quot;__on&quot;+t])&amp;&amp;n._;r=!1}return this.each(dt(t,e,r))};var gt=t.map({mouseenter:&quot;mouseover&quot;,mouseleave:&quot;mouseout&quot;});function mt(e,r){return function(n){var i=t.event;t.event=n,r[0]=this.__data__;try{e.apply(this,r)}finally{t.event=i}}}function vt(t,e){var r=mt(t,e);return function(t){var e=t.relatedTarget;e&amp;&amp;(e===this||8&amp;e.compareDocumentPosition(this))||r.call(this,t)}}i&amp;&amp;gt.forEach((function(t){&quot;on&quot;+t in i&amp;&amp;gt.remove(t)}));var yt,xt=0;function bt(e){var r=&quot;.dragsuppress-&quot;+ ++xt,n=&quot;click&quot;+r,i=t.select(o(e)).on(&quot;touchmove&quot;+r,F).on(&quot;dragstart&quot;+r,F).on(&quot;selectstart&quot;+r,F);if(null==yt&amp;&amp;(yt=!(&quot;onselectstart&quot;in e)&amp;&amp;P(e.style,&quot;userSelect&quot;)),yt){var s=a(e).style,l=s[yt];s[yt]=&quot;none&quot;}return function(t){if(i.on(r,null),yt&amp;&amp;(s[yt]=l),t){var e=function(){i.on(n,null)};i.on(n,(function(){F(),e()}),!0),setTimeout(e,0)}}}t.mouse=function(t){return wt(t,B())};var _t=this.navigator&amp;&amp;/WebKit/.test(this.navigator.userAgent)?-1:0;function wt(e,r){r.changedTouches&amp;&amp;(r=r.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();if(_t&lt;0){var a=o(e);if(a.scrollX||a.scrollY){var s=(n=t.select(&quot;body&quot;).append(&quot;svg&quot;).style({position:&quot;absolute&quot;,top:0,left:0,margin:0,padding:0,border:&quot;none&quot;},&quot;important&quot;))[0][0].getScreenCTM();_t=!(s.f||s.e),n.remove()}}return _t?(i.x=r.pageX,i.y=r.pageY):(i.x=r.clientX,i.y=r.clientY),[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}var l=e.getBoundingClientRect();return[r.clientX-l.left-e.clientLeft,r.clientY-l.top-e.clientTop]}function Tt(){return t.event.changedTouches[0].identifier}t.touch=function(t,e,r){if(arguments.length&lt;3&amp;&amp;(r=e,e=B().changedTouches),e)for(var n,i=0,a=e.length;i&lt;a;++i)if((n=e[i]).identifier===r)return wt(t,n)},t.behavior.drag=function(){var e=N(a,&quot;drag&quot;,&quot;dragstart&quot;,&quot;dragend&quot;),r=null,n=s(O,t.mouse,o,&quot;mousemove&quot;,&quot;mouseup&quot;),i=s(Tt,t.touch,L,&quot;touchmove&quot;,&quot;touchend&quot;);function a(){this.on(&quot;mousedown.drag&quot;,n).on(&quot;touchstart.drag&quot;,i)}function s(n,i,a,o,s){return function(){var l,c=this,u=t.event.target.correspondingElement||t.event.target,f=c.parentNode,h=e.of(c,arguments),p=0,d=n(),g=&quot;.drag&quot;+(null==d?&quot;&quot;:&quot;-&quot;+d),m=t.select(a(u)).on(o+g,x).on(s+g,b),v=bt(u),y=i(f,d);function x(){var t,e,r=i(f,d);r&amp;&amp;(t=r[0]-y[0],e=r[1]-y[1],p|=t|e,y=r,h({type:&quot;drag&quot;,x:r[0]+l[0],y:r[1]+l[1],dx:t,dy:e}))}function b(){i(f,d)&amp;&amp;(m.on(o+g,null).on(s+g,null),v(p),h({type:&quot;dragend&quot;}))}l=r?[(l=r.apply(c,arguments)).x-y[0],l.y-y[1]]:[0,0],h({type:&quot;dragstart&quot;})}}return a.origin=function(t){return arguments.length?(r=t,a):r},t.rebind(a,e,&quot;on&quot;)},t.touches=function(t,e){return arguments.length&lt;2&amp;&amp;(e=B().touches),e?n(e).map((function(e){var r=wt(t,e);return r.identifier=e.identifier,r})):[]};var kt=1e-6,Mt=1e-12,At=Math.PI,St=2*At,Et=St-kt,Ct=At/2,Lt=At/180,It=180/At;function Pt(t){return t&gt;0?1:t&lt;0?-1:0}function zt(t,e,r){return(e[0]-t[0])*(r[1]-t[1])-(e[1]-t[1])*(r[0]-t[0])}function Ot(t){return t&gt;1?0:t&lt;-1?At:Math.acos(t)}function Dt(t){return t&gt;1?Ct:t&lt;-1?-Ct:Math.asin(t)}function Rt(t){return((t=Math.exp(t))+1/t)/2}function Ft(t){return(t=Math.sin(t/2))*t}var Bt=Math.SQRT2;t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h&lt;Mt)n=Math.log(c/o)/Bt,r=function(t){return[i+t*u,a+t*f,o*Math.exp(Bt*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),g=(c*c-o*o-4*h)/(2*c*2*p),m=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(g*g+1)-g);n=(v-m)/Bt,r=function(t){var e,r=t*n,s=Rt(m),l=o/(2*p)*(s*(e=Bt*r+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[i+l*u,a+l*f,o*s/Rt(Bt*r+m)]}}return r.duration=1e3*n,r},t.behavior.zoom=function(){var e,r,n,a,s,l,c,u,f,h={x:0,y:0,k:1},p=[960,500],d=Ut,g=250,m=0,v=&quot;mousedown.zoom&quot;,y=&quot;mousemove.zoom&quot;,x=&quot;mouseup.zoom&quot;,b=&quot;touchstart.zoom&quot;,_=N(w,&quot;zoomstart&quot;,&quot;zoom&quot;,&quot;zoomend&quot;);function w(t){t.on(v,I).on(jt+&quot;.zoom&quot;,z).on(&quot;dblclick.zoom&quot;,O).on(b,P)}function T(t){return[(t[0]-h.x)/h.k,(t[1]-h.y)/h.k]}function k(t){h.k=Math.max(d[0],Math.min(d[1],t))}function M(t,e){e=function(t){return[t[0]*h.k+h.x,t[1]*h.k+h.y]}(e),h.x+=t[0]-e[0],h.y+=t[1]-e[1]}function A(e,n,i,a){e.__chart__={x:h.x,y:h.y,k:h.k},k(Math.pow(2,a)),M(r=n,i),e=t.select(e),g&gt;0&amp;&amp;(e=e.transition().duration(g)),e.call(w.event)}function S(){c&amp;&amp;c.domain(l.range().map((function(t){return(t-h.x)/h.k})).map(l.invert)),f&amp;&amp;f.domain(u.range().map((function(t){return(t-h.y)/h.k})).map(u.invert))}function E(t){m++||t({type:&quot;zoomstart&quot;})}function C(t){S(),t({type:&quot;zoom&quot;,scale:h.k,translate:[h.x,h.y]})}function L(t){--m||(t({type:&quot;zoomend&quot;}),r=null)}function I(){var e=this,r=_.of(e,arguments),n=0,i=t.select(o(e)).on(y,l).on(x,c),a=T(t.mouse(e)),s=bt(e);function l(){n=1,M(t.mouse(e),a),C(r)}function c(){i.on(y,null).on(x,null),s(n),L(r)}vs.call(e),E(r)}function P(){var e,r=this,n=_.of(r,arguments),i={},a=0,o=&quot;.zoom-&quot;+t.event.changedTouches[0].identifier,l=&quot;touchmove&quot;+o,c=&quot;touchend&quot;+o,u=[],f=t.select(r),p=bt(r);function d(){var n=t.touches(r);return e=h.k,n.forEach((function(t){t.identifier in i&amp;&amp;(i[t.identifier]=T(t))})),n}function g(){var e=t.event.target;t.select(e).on(l,m).on(c,y),u.push(e);for(var n=t.event.changedTouches,o=0,f=n.length;o&lt;f;++o)i[n[o].identifier]=null;var p=d(),g=Date.now();if(1===p.length){if(g-s&lt;500){var v=p[0];A(r,v,i[v.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),F()}s=g}else if(p.length&gt;1){v=p[0];var x=p[1],b=v[0]-x[0],_=v[1]-x[1];a=b*b+_*_}}function m(){var o,l,c,u,f=t.touches(r);vs.call(r);for(var h=0,p=f.length;h&lt;p;++h,u=null)if(c=f[h],u=i[c.identifier]){if(l)break;o=c,l=u}if(u){var d=(d=c[0]-o[0])*d+(d=c[1]-o[1])*d,g=a&amp;&amp;Math.sqrt(d/a);o=[(o[0]+c[0])/2,(o[1]+c[1])/2],l=[(l[0]+u[0])/2,(l[1]+u[1])/2],k(g*e)}s=null,M(o,l),C(n)}function y(){if(t.event.touches.length){for(var e=t.event.changedTouches,r=0,a=e.length;r&lt;a;++r)delete i[e[r].identifier];for(var s in i)return void d()}t.selectAll(u).on(o,null),f.on(v,I).on(b,P),p(),L(n)}g(),E(n),f.on(v,null).on(b,g)}function z(){var i=_.of(this,arguments);a?clearTimeout(a):(vs.call(this),e=T(r=n||t.mouse(this)),E(i)),a=setTimeout((function(){a=null,L(i)}),50),F(),k(Math.pow(2,.002*Nt())*h.k),M(r,e),C(i)}function O(){var e=t.mouse(this),r=Math.log(h.k)/Math.LN2;A(this,e,T(e),t.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)}return jt||(jt=&quot;onwheel&quot;in i?(Nt=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},&quot;wheel&quot;):&quot;onmousewheel&quot;in i?(Nt=function(){return t.event.wheelDelta},&quot;mousewheel&quot;):(Nt=function(){return-t.event.detail},&quot;MozMousePixelScroll&quot;)),w.event=function(e){e.each((function(){var e=_.of(this,arguments),n=h;bs?t.select(this).transition().each(&quot;start.zoom&quot;,(function(){h=this.__chart__||{x:0,y:0,k:1},E(e)})).tween(&quot;zoom:zoom&quot;,(function(){var i=p[0],a=p[1],o=r?r[0]:i/2,s=r?r[1]:a/2,l=t.interpolateZoom([(o-h.x)/h.k,(s-h.y)/h.k,i/h.k],[(o-n.x)/n.k,(s-n.y)/n.k,i/n.k]);return function(t){var r=l(t),n=i/r[2];this.__chart__=h={x:o-r[0]*n,y:s-r[1]*n,k:n},C(e)}})).each(&quot;interrupt.zoom&quot;,(function(){L(e)})).each(&quot;end.zoom&quot;,(function(){L(e)})):(this.__chart__=h,E(e),C(e),L(e))}))},w.translate=function(t){return arguments.length?(h={x:+t[0],y:+t[1],k:h.k},S(),w):[h.x,h.y]},w.scale=function(t){return arguments.length?(h={x:h.x,y:h.y,k:null},k(+t),S(),w):h.k},w.scaleExtent=function(t){return arguments.length?(d=null==t?Ut:[+t[0],+t[1]],w):d},w.center=function(t){return arguments.length?(n=t&amp;&amp;[+t[0],+t[1]],w):n},w.size=function(t){return arguments.length?(p=t&amp;&amp;[+t[0],+t[1]],w):p},w.duration=function(t){return arguments.length?(g=+t,w):g},w.x=function(t){return arguments.length?(c=t,l=t.copy(),h={x:0,y:0,k:1},w):c},w.y=function(t){return arguments.length?(f=t,u=t.copy(),h={x:0,y:0,k:1},w):f},t.rebind(w,_,&quot;on&quot;)};var Nt,jt,Ut=[0,1/0];function Vt(){}function qt(t,e,r){return this instanceof qt?(this.h=+t,this.s=+e,void(this.l=+r)):arguments.length&lt;2?t instanceof qt?new qt(t.h,t.s,t.l):le(&quot;&quot;+t,ce,qt):new qt(t,e,r)}t.color=Vt,Vt.prototype.toString=function(){return this.rgb()+&quot;&quot;},t.hsl=qt;var Ht=qt.prototype=new Vt;function Gt(t,e,r){var n,i;function a(t){return Math.round(255*function(t){return t&gt;360?t-=360:t&lt;0&amp;&amp;(t+=360),t&lt;60?n+(i-n)*t/60:t&lt;180?i:t&lt;240?n+(i-n)*(240-t)/60:n}(t))}return t=isNaN(t)?0:(t%=360)&lt;0?t+360:t,e=isNaN(e)||e&lt;0?0:e&gt;1?1:e,n=2*(r=r&lt;0?0:r&gt;1?1:r)-(i=r&lt;=.5?r*(1+e):r+e-r*e),new ne(a(t+120),a(t),a(t-120))}function Yt(e,r,n){return this instanceof Yt?(this.h=+e,this.c=+r,void(this.l=+n)):arguments.length&lt;2?e instanceof Yt?new Yt(e.h,e.c,e.l):$t(e instanceof Zt?e.l:(e=ue((e=t.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Yt(e,r,n)}Ht.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new qt(this.h,this.s,this.l/t)},Ht.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new qt(this.h,this.s,t*this.l)},Ht.rgb=function(){return Gt(this.h,this.s,this.l)},t.hcl=Yt;var Wt=Yt.prototype=new Vt;function Xt(t,e,r){return isNaN(t)&amp;&amp;(t=0),isNaN(e)&amp;&amp;(e=0),new Zt(r,Math.cos(t*=Lt)*e,Math.sin(t)*e)}function Zt(t,e,r){return this instanceof Zt?(this.l=+t,this.a=+e,void(this.b=+r)):arguments.length&lt;2?t instanceof Zt?new Zt(t.l,t.a,t.b):t instanceof Yt?Xt(t.h,t.c,t.l):ue((t=ne(t)).r,t.g,t.b):new Zt(t,e,r)}Wt.brighter=function(t){return new Yt(this.h,this.c,Math.min(100,this.l+Jt*(arguments.length?t:1)))},Wt.darker=function(t){return new Yt(this.h,this.c,Math.max(0,this.l-Jt*(arguments.length?t:1)))},Wt.rgb=function(){return Xt(this.h,this.c,this.l).rgb()},t.lab=Zt;var Jt=18,Kt=Zt.prototype=new Vt;function Qt(t,e,r){var n=(t+16)/116,i=n+e/500,a=n-r/200;return new ne(re(3.2404542*(i=.95047*te(i))-1.5371385*(n=1*te(n))-.4985314*(a=1.08883*te(a))),re(-.969266*i+1.8760108*n+.041556*a),re(.0556434*i-.2040259*n+1.0572252*a))}function $t(t,e,r){return t&gt;0?new Yt(Math.atan2(r,e)*It,Math.sqrt(e*e+r*r),t):new Yt(NaN,NaN,t)}function te(t){return t&gt;.206893034?t*t*t:(t-4/29)/7.787037}function ee(t){return t&gt;.008856?Math.pow(t,1/3):7.787037*t+4/29}function re(t){return Math.round(255*(t&lt;=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function ne(t,e,r){return this instanceof ne?(this.r=~~t,this.g=~~e,void(this.b=~~r)):arguments.length&lt;2?t instanceof ne?new ne(t.r,t.g,t.b):le(&quot;&quot;+t,ne,Gt):new ne(t,e,r)}function ie(t){return new ne(t&gt;&gt;16,t&gt;&gt;8&amp;255,255&amp;t)}function ae(t){return ie(t)+&quot;&quot;}Kt.brighter=function(t){return new Zt(Math.min(100,this.l+Jt*(arguments.length?t:1)),this.a,this.b)},Kt.darker=function(t){return new Zt(Math.max(0,this.l-Jt*(arguments.length?t:1)),this.a,this.b)},Kt.rgb=function(){return Qt(this.l,this.a,this.b)},t.rgb=ne;var oe=ne.prototype=new Vt;function se(t){return t&lt;16?&quot;0&quot;+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function le(t,e,r){var n,i,a,o=0,s=0,l=0;if(n=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=n[2].split(&quot;,&quot;),n[1]){case&quot;hsl&quot;:return r(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case&quot;rgb&quot;:return e(he(i[0]),he(i[1]),he(i[2]))}return(a=pe.get(t))?e(a.r,a.g,a.b):(null==t||&quot;#&quot;!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&amp;a)&gt;&gt;4,o|=o&gt;&gt;4,s=240&amp;a,s|=s&gt;&gt;4,l=15&amp;a,l|=l&lt;&lt;4):7===t.length&amp;&amp;(o=(16711680&amp;a)&gt;&gt;16,s=(65280&amp;a)&gt;&gt;8,l=255&amp;a)),e(o,s,l))}function ce(t,e,r){var n,i,a=Math.min(t/=255,e/=255,r/=255),o=Math.max(t,e,r),s=o-a,l=(o+a)/2;return s?(i=l&lt;.5?s/(o+a):s/(2-o-a),n=t==o?(e-r)/s+(e&lt;r?6:0):e==o?(r-t)/s+2:(t-e)/s+4,n*=60):(n=NaN,i=l&gt;0&amp;&amp;l&lt;1?0:n),new qt(n,i,l)}function ue(t,e,r){var n=ee((.4124564*(t=fe(t))+.3575761*(e=fe(e))+.1804375*(r=fe(r)))/.95047),i=ee((.2126729*t+.7151522*e+.072175*r)/1);return Zt(116*i-16,500*(n-i),200*(i-ee((.0193339*t+.119192*e+.9503041*r)/1.08883)))}function fe(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function he(t){var e=parseFloat(t);return&quot;%&quot;===t.charAt(t.length-1)?Math.round(2.55*e):e}oe.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,r=this.g,n=this.b,i=30;return e||r||n?(e&amp;&amp;e&lt;i&amp;&amp;(e=i),r&amp;&amp;r&lt;i&amp;&amp;(r=i),n&amp;&amp;n&lt;i&amp;&amp;(n=i),new ne(Math.min(255,e/t),Math.min(255,r/t),Math.min(255,n/t))):new ne(i,i,i)},oe.darker=function(t){return new ne((t=Math.pow(.7,arguments.length?t:1))*this.r,t*this.g,t*this.b)},oe.hsl=function(){return ce(this.r,this.g,this.b)},oe.toString=function(){return&quot;#&quot;+se(this.r)+se(this.g)+se(this.b)};var pe=t.map({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 de(t){return&quot;function&quot;==typeof t?t:function(){return t}}function ge(t){return function(e,r,n){return 2===arguments.length&amp;&amp;&quot;function&quot;==typeof r&amp;&amp;(n=r,r=null),me(e,r,t,n)}}function me(e,r,i,a){var o={},s=t.dispatch(&quot;beforesend&quot;,&quot;progress&quot;,&quot;load&quot;,&quot;error&quot;),l={},c=new XMLHttpRequest,u=null;function f(){var t,e=c.status;if(!e&amp;&amp;function(t){var e=t.responseType;return e&amp;&amp;&quot;text&quot;!==e?t.response:t.responseText}(c)||e&gt;=200&amp;&amp;e&lt;300||304===e){try{t=i.call(o,c)}catch(t){return void s.error.call(o,t)}s.load.call(o,t)}else s.error.call(o,c)}return this.XDomainRequest&amp;&amp;!(&quot;withCredentials&quot;in c)&amp;&amp;/^(http(s)?:)?\/\//.test(e)&amp;&amp;(c=new XDomainRequest),&quot;onload&quot;in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState&gt;3&amp;&amp;f()},c.onprogress=function(e){var r=t.event;t.event=e;try{s.progress.call(o,c)}finally{t.event=r}},o.header=function(t,e){return t=(t+&quot;&quot;).toLowerCase(),arguments.length&lt;2?l[t]:(null==e?delete l[t]:l[t]=e+&quot;&quot;,o)},o.mimeType=function(t){return arguments.length?(r=null==t?null:t+&quot;&quot;,o):r},o.responseType=function(t){return arguments.length?(u=t,o):u},o.response=function(t){return i=t,o},[&quot;get&quot;,&quot;post&quot;].forEach((function(t){o[t]=function(){return o.send.apply(o,[t].concat(n(arguments)))}})),o.send=function(t,n,i){if(2===arguments.length&amp;&amp;&quot;function&quot;==typeof n&amp;&amp;(i=n,n=null),c.open(t,e,!0),null==r||&quot;accept&quot;in l||(l.accept=r+&quot;,*/*&quot;),c.setRequestHeader)for(var a in l)c.setRequestHeader(a,l[a]);return null!=r&amp;&amp;c.overrideMimeType&amp;&amp;c.overrideMimeType(r),null!=u&amp;&amp;(c.responseType=u),null!=i&amp;&amp;o.on(&quot;error&quot;,i).on(&quot;load&quot;,(function(t){i(null,t)})),s.beforesend.call(o,c),c.send(null==n?null:n),o},o.abort=function(){return c.abort(),o},t.rebind(o,s,&quot;on&quot;),null==a?o:o.get(function(t){return 1===t.length?function(e,r){t(null==e?r:null)}:t}(a))}pe.forEach((function(t,e){pe.set(t,ie(e))})),t.functor=de,t.xhr=ge(L),t.dsv=function(t,e){var r=new RegExp('[&quot;'+t+&quot;\n]&quot;),n=t.charCodeAt(0);function i(t,r,n){arguments.length&lt;3&amp;&amp;(n=r,r=null);var i=me(t,e,null==r?a:o(r),n);return i.row=function(t){return arguments.length?i.response(null==(r=t)?a:o(t)):r},i}function a(t){return i.parse(t.responseText)}function o(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(l).join(t)}function l(t){return r.test(t)?'&quot;'+t.replace(/\&quot;/g,'&quot;&quot;')+'&quot;':t}return i.parse=function(t,e){var r;return i.parseRows(t,(function(t,n){if(r)return r(t,n-1);var i=new Function(&quot;d&quot;,&quot;return {&quot;+t.map((function(t,e){return JSON.stringify(t)+&quot;: d[&quot;+e+&quot;]&quot;})).join(&quot;,&quot;)+&quot;}&quot;);r=e?function(t,r){return e(i(t),r)}:i}))},i.parseRows=function(t,e){var r,i,a={},o={},s=[],l=t.length,c=0,u=0;function f(){if(c&gt;=l)return o;if(i)return i=!1,a;var e=c;if(34===t.charCodeAt(e)){for(var r=e;r++&lt;l;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return c=r+2,13===(s=t.charCodeAt(r+1))?(i=!0,10===t.charCodeAt(r+2)&amp;&amp;++c):10===s&amp;&amp;(i=!0),t.slice(e+1,r).replace(/&quot;&quot;/g,'&quot;')}for(;c&lt;l;){var s,u=1;if(10===(s=t.charCodeAt(c++)))i=!0;else if(13===s)i=!0,10===t.charCodeAt(c)&amp;&amp;(++c,++u);else if(s!==n)continue;return t.slice(e,c-u)}return t.slice(e)}for(;(r=f())!==o;){for(var h=[];r!==a&amp;&amp;r!==o;)h.push(r),r=f();e&amp;&amp;null==(h=e(h,u++))||s.push(h)}return s},i.format=function(e){if(Array.isArray(e[0]))return i.formatRows(e);var r=new C,n=[];return e.forEach((function(t){for(var e in t)r.has(e)||n.push(r.add(e))})),[n.map(l).join(t)].concat(e.map((function(e){return n.map((function(t){return l(e[t])})).join(t)}))).join(&quot;\n&quot;)},i.formatRows=function(t){return t.map(s).join(&quot;\n&quot;)},i},t.csv=t.dsv(&quot;,&quot;,&quot;text/csv&quot;),t.tsv=t.dsv(&quot;\t&quot;,&quot;text/tab-separated-values&quot;);var ve,ye,xe,be,_e=this[P(this,&quot;requestAnimationFrame&quot;)]||function(t){setTimeout(t,17)};function we(t,e,r){var n=arguments.length;n&lt;2&amp;&amp;(e=0),n&lt;3&amp;&amp;(r=Date.now());var i=r+e,a={c:t,t:i,n:null};return ye?ye.n=a:ve=a,ye=a,xe||(be=clearTimeout(be),xe=1,_e(Te)),a}function Te(){var t=ke(),e=Me()-t;e&gt;24?(isFinite(e)&amp;&amp;(clearTimeout(be),be=setTimeout(Te,e)),xe=0):(xe=1,_e(Te))}function ke(){for(var t=Date.now(),e=ve;e;)t&gt;=e.t&amp;&amp;e.c(t-e.t)&amp;&amp;(e.c=null),e=e.n;return t}function Me(){for(var t,e=ve,r=1/0;e;)e.c?(e.t&lt;r&amp;&amp;(r=e.t),e=(t=e).n):e=t?t.n=e.n:ve=e.n;return ye=t,r}function Ae(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}t.timer=function(){we.apply(this,arguments)},t.timer.flush=function(){ke(),Me()},t.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var Se=[&quot;y&quot;,&quot;z&quot;,&quot;a&quot;,&quot;f&quot;,&quot;p&quot;,&quot;n&quot;,&quot;\xb5&quot;,&quot;m&quot;,&quot;&quot;,&quot;k&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;,&quot;P&quot;,&quot;E&quot;,&quot;Z&quot;,&quot;Y&quot;].map((function(t,e){var r=Math.pow(10,3*y(8-e));return{scale:e&gt;8?function(t){return t/r}:function(t){return t*r},symbol:t}}));function Ee(e){var r=e.decimal,n=e.thousands,i=e.grouping,a=e.currency,o=i&amp;&amp;n?function(t,e){for(var r=t.length,a=[],o=0,s=i[0],l=0;r&gt;0&amp;&amp;s&gt;0&amp;&amp;(l+s+1&gt;e&amp;&amp;(s=Math.max(1,e-l)),a.push(t.substring(r-=s,r+s)),!((l+=s+1)&gt;e));)s=i[o=(o+1)%i.length];return a.reverse().join(n)}:L;return function(e){var n=Ce.exec(e),i=n[1]||&quot; &quot;,s=n[2]||&quot;&gt;&quot;,l=n[3]||&quot;-&quot;,c=n[4]||&quot;&quot;,u=n[5],f=+n[6],h=n[7],p=n[8],d=n[9],g=1,m=&quot;&quot;,v=&quot;&quot;,y=!1,x=!0;switch(p&amp;&amp;(p=+p.substring(1)),(u||&quot;0&quot;===i&amp;&amp;&quot;=&quot;===s)&amp;&amp;(u=i=&quot;0&quot;,s=&quot;=&quot;),d){case&quot;n&quot;:h=!0,d=&quot;g&quot;;break;case&quot;%&quot;:g=100,v=&quot;%&quot;,d=&quot;f&quot;;break;case&quot;p&quot;:g=100,v=&quot;%&quot;,d=&quot;r&quot;;break;case&quot;b&quot;:case&quot;o&quot;:case&quot;x&quot;:case&quot;X&quot;:&quot;#&quot;===c&amp;&amp;(m=&quot;0&quot;+d.toLowerCase());case&quot;c&quot;:x=!1;case&quot;d&quot;:y=!0,p=0;break;case&quot;s&quot;:g=-1,d=&quot;r&quot;}&quot;$&quot;===c&amp;&amp;(m=a[0],v=a[1]),&quot;r&quot;!=d||p||(d=&quot;g&quot;),null!=p&amp;&amp;(&quot;g&quot;==d?p=Math.max(1,Math.min(21,p)):&quot;e&quot;!=d&amp;&amp;&quot;f&quot;!=d||(p=Math.max(0,Math.min(20,p)))),d=Le.get(d)||Ie;var b=u&amp;&amp;h;return function(e){var n=v;if(y&amp;&amp;e%1)return&quot;&quot;;var a=e&lt;0||0===e&amp;&amp;1/e&lt;0?(e=-e,&quot;-&quot;):&quot;-&quot;===l?&quot;&quot;:l;if(g&lt;0){var c=t.formatPrefix(e,p);e=c.scale(e),n=c.symbol+v}else e*=g;var _,w,T=(e=d(e,p)).lastIndexOf(&quot;.&quot;);if(T&lt;0){var k=x?e.lastIndexOf(&quot;e&quot;):-1;k&lt;0?(_=e,w=&quot;&quot;):(_=e.substring(0,k),w=e.substring(k))}else _=e.substring(0,T),w=r+e.substring(T+1);!u&amp;&amp;h&amp;&amp;(_=o(_,1/0));var M=m.length+_.length+w.length+(b?0:a.length),A=M&lt;f?new Array(M=f-M+1).join(i):&quot;&quot;;return b&amp;&amp;(_=o(A+_,A.length?f-w.length:1/0)),a+=m,e=_+w,(&quot;&lt;&quot;===s?a+e+A:&quot;&gt;&quot;===s?A+a+e:&quot;^&quot;===s?A.substring(0,M&gt;&gt;=1)+a+e+A.substring(M):a+(b?e:A+e))+n}}}t.formatPrefix=function(e,r){var n=0;return(e=+e)&amp;&amp;(e&lt;0&amp;&amp;(e*=-1),r&amp;&amp;(e=t.round(e,Ae(e,r))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Se[8+n/3]};var Ce=/(?:([^{])?([&lt;&gt;=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Le=t.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(e,r){return(e=t.round(e,Ae(e,r))).toFixed(Math.max(0,Math.min(20,Ae(e*(1+1e-15),r))))}});function Ie(t){return t+&quot;&quot;}var Pe=t.time={},ze=Date;function Oe(){this._=new Date(arguments.length&gt;1?Date.UTC.apply(this,arguments):arguments[0])}Oe.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){De.setUTCDate.apply(this._,arguments)},setDay:function(){De.setUTCDay.apply(this._,arguments)},setFullYear:function(){De.setUTCFullYear.apply(this._,arguments)},setHours:function(){De.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){De.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){De.setUTCMinutes.apply(this._,arguments)},setMonth:function(){De.setUTCMonth.apply(this._,arguments)},setSeconds:function(){De.setUTCSeconds.apply(this._,arguments)},setTime:function(){De.setTime.apply(this._,arguments)}};var De=Date.prototype;function Re(t,e,r){function n(e){var r=t(e),n=a(r,1);return e-r&lt;n-e?r:n}function i(r){return e(r=t(new ze(r-1)),1),r}function a(t,r){return e(t=new ze(+t),r),t}function o(t,n,a){var o=i(t),s=[];if(a&gt;1)for(;o&lt;n;)r(o)%a||s.push(new Date(+o)),e(o,1);else for(;o&lt;n;)s.push(new Date(+o)),e(o,1);return s}t.floor=t,t.round=n,t.ceil=i,t.offset=a,t.range=o;var s=t.utc=Fe(t);return s.floor=s,s.round=Fe(n),s.ceil=Fe(i),s.offset=Fe(a),s.range=function(t,e,r){try{ze=Oe;var n=new Oe;return n._=t,o(n,e,r)}finally{ze=Date}},t}function Fe(t){return function(e,r){try{ze=Oe;var n=new Oe;return n._=e,t(n,r)._}finally{ze=Date}}}function Be(e){var r=e.dateTime,n=e.date,i=e.time,a=e.periods,o=e.days,s=e.shortDays,l=e.months,c=e.shortMonths;function u(t){var e=t.length;function r(r){for(var n,i,a,o=[],s=-1,l=0;++s&lt;e;)37===t.charCodeAt(s)&amp;&amp;(o.push(t.slice(l,s)),null!=(i=Ne[n=t.charAt(++s)])&amp;&amp;(n=t.charAt(++s)),(a=_[n])&amp;&amp;(n=a(r,null==i?&quot;e&quot;===n?&quot; &quot;:&quot;0&quot;:i)),o.push(n),l=s+1);return o.push(t.slice(l,s)),o.join(&quot;&quot;)}return r.parse=function(e){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(f(r,t,e,0)!=e.length)return null;&quot;p&quot;in r&amp;&amp;(r.H=r.H%12+12*r.p);var n=null!=r.Z&amp;&amp;ze!==Oe,i=new(n?Oe:ze);return&quot;j&quot;in r?i.setFullYear(r.y,0,r.j):&quot;W&quot;in r||&quot;U&quot;in r?(&quot;w&quot;in r||(r.w=&quot;W&quot;in r?1:0),i.setFullYear(r.y,0,1),i.setFullYear(r.y,0,&quot;W&quot;in r?(r.w+6)%7+7*r.W-(i.getDay()+5)%7:r.w+7*r.U-(i.getDay()+6)%7)):i.setFullYear(r.y,r.m,r.d),i.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),n?i._:i},r.toString=function(){return t},r}function f(t,e,r,n){for(var i,a,o,s=0,l=e.length,c=r.length;s&lt;l;){if(n&gt;=c)return-1;if(37===(i=e.charCodeAt(s++))){if(o=e.charAt(s++),!(a=w[o in Ne?e.charAt(s++):o])||(n=a(t,r,n))&lt;0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}u.utc=function(t){var e=u(t);function r(t){try{var r=new(ze=Oe);return r._=t,e(r)}finally{ze=Date}}return r.parse=function(t){try{ze=Oe;var r=e.parse(t);return r&amp;&amp;r._}finally{ze=Date}},r.toString=e.toString,r},u.multi=u.utc.multi=or;var h=t.map(),p=qe(o),d=He(o),g=qe(s),m=He(s),v=qe(l),y=He(l),x=qe(c),b=He(c);a.forEach((function(t,e){h.set(t.toLowerCase(),e)}));var _={a:function(t){return s[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return l[t.getMonth()]},c:u(r),d:function(t,e){return Ve(t.getDate(),e,2)},e:function(t,e){return Ve(t.getDate(),e,2)},H:function(t,e){return Ve(t.getHours(),e,2)},I:function(t,e){return Ve(t.getHours()%12||12,e,2)},j:function(t,e){return Ve(1+Pe.dayOfYear(t),e,3)},L:function(t,e){return Ve(t.getMilliseconds(),e,3)},m:function(t,e){return Ve(t.getMonth()+1,e,2)},M:function(t,e){return Ve(t.getMinutes(),e,2)},p:function(t){return a[+(t.getHours()&gt;=12)]},S:function(t,e){return Ve(t.getSeconds(),e,2)},U:function(t,e){return Ve(Pe.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Ve(Pe.mondayOfYear(t),e,2)},x:u(n),X:u(i),y:function(t,e){return Ve(t.getFullYear()%100,e,2)},Y:function(t,e){return Ve(t.getFullYear()%1e4,e,4)},Z:ir,&quot;%&quot;:function(){return&quot;%&quot;}},w={a:function(t,e,r){g.lastIndex=0;var n=g.exec(e.slice(r));return n?(t.w=m.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){p.lastIndex=0;var n=p.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){x.lastIndex=0;var n=x.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){v.lastIndex=0;var n=v.exec(e.slice(r));return n?(t.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,e,r){return f(t,_.c.toString(),e,r)},d:Qe,e:Qe,H:tr,I:tr,j:$e,L:nr,m:Ke,M:er,p:function(t,e,r){var n=h.get(e.slice(r,r+=2).toLowerCase());return null==n?-1:(t.p=n,r)},S:rr,U:Ye,w:Ge,W:We,x:function(t,e,r){return f(t,_.x.toString(),e,r)},X:function(t,e,r){return f(t,_.X.toString(),e,r)},y:Ze,Y:Xe,Z:Je,&quot;%&quot;:ar};return u}Pe.year=Re((function(t){return(t=Pe.day(t)).setMonth(0,1),t}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t){return t.getFullYear()})),Pe.years=Pe.year.range,Pe.years.utc=Pe.year.utc.range,Pe.day=Re((function(t){var e=new ze(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t){return t.getDate()-1})),Pe.days=Pe.day.range,Pe.days.utc=Pe.day.utc.range,Pe.dayOfYear=function(t){var e=Pe.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},[&quot;sunday&quot;,&quot;monday&quot;,&quot;tuesday&quot;,&quot;wednesday&quot;,&quot;thursday&quot;,&quot;friday&quot;,&quot;saturday&quot;].forEach((function(t,e){e=7-e;var r=Pe[t]=Re((function(t){return(t=Pe.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t}),(function(t,e){t.setDate(t.getDate()+7*Math.floor(e))}),(function(t){var r=Pe.year(t).getDay();return Math.floor((Pe.dayOfYear(t)+(r+e)%7)/7)-(r!==e)}));Pe[t+&quot;s&quot;]=r.range,Pe[t+&quot;s&quot;].utc=r.utc.range,Pe[t+&quot;OfYear&quot;]=function(t){var r=Pe.year(t).getDay();return Math.floor((Pe.dayOfYear(t)+(r+e)%7)/7)}})),Pe.week=Pe.sunday,Pe.weeks=Pe.sunday.range,Pe.weeks.utc=Pe.sunday.utc.range,Pe.weekOfYear=Pe.sundayOfYear;var Ne={&quot;-&quot;:&quot;&quot;,_:&quot; &quot;,0:&quot;0&quot;},je=/^\s*\d+/,Ue=/^%/;function Ve(t,e,r){var n=t&lt;0?&quot;-&quot;:&quot;&quot;,i=(n?-t:t)+&quot;&quot;,a=i.length;return n+(a&lt;r?new Array(r-a+1).join(e)+i:i)}function qe(e){return new RegExp(&quot;^(?:&quot;+e.map(t.requote).join(&quot;|&quot;)+&quot;)&quot;,&quot;i&quot;)}function He(t){for(var e=new _,r=-1,n=t.length;++r&lt;n;)e.set(t[r].toLowerCase(),r);return e}function Ge(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Ye(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r));return n?(t.U=+n[0],r+n[0].length):-1}function We(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r));return n?(t.W=+n[0],r+n[0].length):-1}function Xe(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Ze(t,e,r){je.lastIndex=0;var n,i=je.exec(e.slice(r,r+2));return i?(t.y=(n=+i[0])+(n&gt;68?1900:2e3),r+i[0].length):-1}function Je(t,e,r){return/^[+-]\d{4}$/.test(e=e.slice(r,r+5))?(t.Z=-e,r+5):-1}function Ke(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Qe(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function $e(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+3));return n?(t.j=+n[0],r+n[0].length):-1}function tr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function er(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function rr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function nr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function ir(t){var e=t.getTimezoneOffset(),r=e&gt;0?&quot;-&quot;:&quot;+&quot;,n=y(e)/60|0,i=y(e)%60;return r+Ve(n,&quot;0&quot;,2)+Ve(i,&quot;0&quot;,2)}function ar(t,e,r){Ue.lastIndex=0;var n=Ue.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function or(t){for(var e=t.length,r=-1;++r&lt;e;)t[r][0]=this(t[r][0]);return function(e){for(var r=0,n=t[r];!n[1](e);)n=t[++r];return n[0](e)}}t.locale=function(t){return{numberFormat:Ee(t),timeFormat:Be(t)}};var sr=t.locale({decimal:&quot;.&quot;,thousands:&quot;,&quot;,grouping:[3],currency:[&quot;$&quot;,&quot;&quot;],dateTime:&quot;%a %b %e %X %Y&quot;,date:&quot;%m/%d/%Y&quot;,time:&quot;%H:%M:%S&quot;,periods:[&quot;AM&quot;,&quot;PM&quot;],days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;]});function lr(){}t.format=sr.numberFormat,t.geo={},lr.prototype={s:0,t:0,add:function(t){ur(t,this.t,cr),ur(cr.s,this.s,this),this.s?this.t+=cr.t:this.s=cr.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var cr=new lr;function ur(t,e,r){var n=r.s=t+e,i=n-t,a=n-i;r.t=t-a+(e-i)}function fr(t,e){t&amp;&amp;pr.hasOwnProperty(t.type)&amp;&amp;pr[t.type](t,e)}t.geo.stream=function(t,e){t&amp;&amp;hr.hasOwnProperty(t.type)?hr[t.type](t,e):fr(t,e)};var hr={Feature:function(t,e){fr(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n&lt;i;)fr(r[n].geometry,e)}},pr={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)t=r[n],e.point(t[0],t[1],t[2])},LineString:function(t,e){dr(t.coordinates,e,0)},MultiLineString:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)dr(r[n],e,0)},Polygon:function(t,e){gr(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)gr(r[n],e)},GeometryCollection:function(t,e){for(var r=t.geometries,n=-1,i=r.length;++n&lt;i;)fr(r[n],e)}};function dr(t,e,r){var n,i=-1,a=t.length-r;for(e.lineStart();++i&lt;a;)n=t[i],e.point(n[0],n[1],n[2]);e.lineEnd()}function gr(t,e){var r=-1,n=t.length;for(e.polygonStart();++r&lt;n;)dr(t[r],e,1);e.polygonEnd()}t.geo.area=function(e){return mr=0,t.geo.stream(e,Cr),mr};var mr,vr,yr,xr,br,_r,wr,Tr,kr,Mr,Ar,Sr,Er=new lr,Cr={sphere:function(){mr+=4*At},point:O,lineStart:O,lineEnd:O,polygonStart:function(){Er.reset(),Cr.lineStart=Lr},polygonEnd:function(){var t=2*Er;mr+=t&lt;0?4*At+t:t,Cr.lineStart=Cr.lineEnd=Cr.point=O}};function Lr(){var t,e,r,n,i;function a(t,e){e=e*Lt/2+At/4;var a=(t*=Lt)-r,o=a&gt;=0?1:-1,s=o*a,l=Math.cos(e),c=Math.sin(e),u=i*c,f=n*l+u*Math.cos(s),h=u*o*Math.sin(s);Er.add(Math.atan2(h,f)),r=t,n=l,i=c}Cr.point=function(o,s){Cr.point=a,r=(t=o)*Lt,n=Math.cos(s=(e=s)*Lt/2+At/4),i=Math.sin(s)},Cr.lineEnd=function(){a(t,e)}}function Ir(t){var e=t[0],r=t[1],n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}function Pr(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function zr(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Or(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Dr(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Rr(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Fr(t){return[Math.atan2(t[1],t[0]),Dt(t[2])]}function Br(t,e){return y(t[0]-e[0])&lt;kt&amp;&amp;y(t[1]-e[1])&lt;kt}t.geo.bounds=function(){var e,r,n,i,a,o,s,l,c,u,f,h={point:p,lineStart:g,lineEnd:m,polygonStart:function(){h.point=v,h.lineStart=x,h.lineEnd=b,c=0,Cr.polygonStart()},polygonEnd:function(){Cr.polygonEnd(),h.point=p,h.lineStart=g,h.lineEnd=m,Er&lt;0?(e=-(n=180),r=-(i=90)):c&gt;kt?i=90:c&lt;-kt&amp;&amp;(r=-90),f[0]=e,f[1]=n}};function p(t,a){u.push(f=[e=t,n=t]),a&lt;r&amp;&amp;(r=a),a&gt;i&amp;&amp;(i=a)}function d(t,o){var s=Ir([t*Lt,o*Lt]);if(l){var c=zr(l,s),u=zr([c[1],-c[0],0],c);Rr(u),u=Fr(u);var f=t-a,h=f&gt;0?1:-1,d=u[0]*It*h,g=y(f)&gt;180;if(g^(h*a&lt;d&amp;&amp;d&lt;h*t))(m=u[1]*It)&gt;i&amp;&amp;(i=m);else if(g^(h*a&lt;(d=(d+360)%360-180)&amp;&amp;d&lt;h*t)){var m;(m=-u[1]*It)&lt;r&amp;&amp;(r=m)}else o&lt;r&amp;&amp;(r=o),o&gt;i&amp;&amp;(i=o);g?t&lt;a?_(e,t)&gt;_(e,n)&amp;&amp;(n=t):_(t,n)&gt;_(e,n)&amp;&amp;(e=t):n&gt;=e?(t&lt;e&amp;&amp;(e=t),t&gt;n&amp;&amp;(n=t)):t&gt;a?_(e,t)&gt;_(e,n)&amp;&amp;(n=t):_(t,n)&gt;_(e,n)&amp;&amp;(e=t)}else p(t,o);l=s,a=t}function g(){h.point=d}function m(){f[0]=e,f[1]=n,h.point=p,l=null}function v(t,e){if(l){var r=t-a;c+=y(r)&gt;180?r+(r&gt;0?360:-360):r}else o=t,s=e;Cr.point(t,e),d(t,e)}function x(){Cr.lineStart()}function b(){v(o,s),Cr.lineEnd(),y(c)&gt;kt&amp;&amp;(e=-(n=180)),f[0]=e,f[1]=n,l=null}function _(t,e){return(e-=t)&lt;0?e+360:e}function w(t,e){return t[0]-e[0]}function T(t,e){return e[0]&lt;=e[1]?e[0]&lt;=t&amp;&amp;t&lt;=e[1]:t&lt;e[0]||e[1]&lt;t}return function(a){if(i=n=-(e=r=1/0),u=[],t.geo.stream(a,h),c=u.length){u.sort(w);for(var o=1,s=[g=u[0]];o&lt;c;++o)T((p=u[o])[0],g)||T(p[1],g)?(_(g[0],p[1])&gt;_(g[0],g[1])&amp;&amp;(g[1]=p[1]),_(p[0],g[1])&gt;_(g[0],g[1])&amp;&amp;(g[0]=p[0])):s.push(g=p);for(var l,c,p,d=-1/0,g=(o=0,s[c=s.length-1]);o&lt;=c;g=p,++o)p=s[o],(l=_(g[1],p[0]))&gt;d&amp;&amp;(d=l,e=p[0],n=g[1])}return u=f=null,e===1/0||r===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,r],[n,i]]}}(),t.geo.centroid=function(e){vr=yr=xr=br=_r=wr=Tr=kr=Mr=Ar=Sr=0,t.geo.stream(e,Nr);var r=Mr,n=Ar,i=Sr,a=r*r+n*n+i*i;return a&lt;Mt&amp;&amp;(r=wr,n=Tr,i=kr,yr&lt;kt&amp;&amp;(r=xr,n=br,i=_r),(a=r*r+n*n+i*i)&lt;Mt)?[NaN,NaN]:[Math.atan2(n,r)*It,Dt(i/Math.sqrt(a))*It]};var Nr={sphere:O,point:jr,lineStart:Vr,lineEnd:qr,polygonStart:function(){Nr.lineStart=Hr},polygonEnd:function(){Nr.lineStart=Vr}};function jr(t,e){t*=Lt;var r=Math.cos(e*=Lt);Ur(r*Math.cos(t),r*Math.sin(t),Math.sin(e))}function Ur(t,e,r){++vr,xr+=(t-xr)/vr,br+=(e-br)/vr,_r+=(r-_r)/vr}function Vr(){var t,e,r;function n(n,i){n*=Lt;var a=Math.cos(i*=Lt),o=a*Math.cos(n),s=a*Math.sin(n),l=Math.sin(i),c=Math.atan2(Math.sqrt((c=e*l-r*s)*c+(c=r*o-t*l)*c+(c=t*s-e*o)*c),t*o+e*s+r*l);yr+=c,wr+=c*(t+(t=o)),Tr+=c*(e+(e=s)),kr+=c*(r+(r=l)),Ur(t,e,r)}Nr.point=function(i,a){i*=Lt;var o=Math.cos(a*=Lt);t=o*Math.cos(i),e=o*Math.sin(i),r=Math.sin(a),Nr.point=n,Ur(t,e,r)}}function qr(){Nr.point=jr}function Hr(){var t,e,r,n,i;function a(t,e){t*=Lt;var a=Math.cos(e*=Lt),o=a*Math.cos(t),s=a*Math.sin(t),l=Math.sin(e),c=n*l-i*s,u=i*o-r*l,f=r*s-n*o,h=Math.sqrt(c*c+u*u+f*f),p=r*o+n*s+i*l,d=h&amp;&amp;-Ot(p)/h,g=Math.atan2(h,p);Mr+=d*c,Ar+=d*u,Sr+=d*f,yr+=g,wr+=g*(r+(r=o)),Tr+=g*(n+(n=s)),kr+=g*(i+(i=l)),Ur(r,n,i)}Nr.point=function(o,s){t=o,e=s,Nr.point=a,o*=Lt;var l=Math.cos(s*=Lt);r=l*Math.cos(o),n=l*Math.sin(o),i=Math.sin(s),Ur(r,n,i)},Nr.lineEnd=function(){a(t,e),Nr.lineEnd=qr,Nr.point=jr}}function Gr(t,e){function r(r,n){return r=t(r,n),e(r[0],r[1])}return t.invert&amp;&amp;e.invert&amp;&amp;(r.invert=function(r,n){return(r=e.invert(r,n))&amp;&amp;t.invert(r[0],r[1])}),r}function Yr(){return!0}function Wr(t,e,r,n,i){var a=[],o=[];if(t.forEach((function(t){if(!((e=t.length-1)&lt;=0)){var e,r=t[0],n=t[e];if(Br(r,n)){i.lineStart();for(var s=0;s&lt;e;++s)i.point((r=t[s])[0],r[1]);i.lineEnd()}else{var l=new Zr(r,t,null,!0),c=new Zr(r,null,l,!1);l.o=c,a.push(l),o.push(c),l=new Zr(n,t,null,!1),c=new Zr(n,null,l,!0),l.o=c,a.push(l),o.push(c)}}})),o.sort(e),Xr(a),Xr(o),a.length){for(var s=0,l=r,c=o.length;s&lt;c;++s)o[s].e=l=!l;for(var u,f,h=a[0];;){for(var p=h,d=!0;p.v;)if((p=p.n)===h)return;u=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(s=0,c=u.length;s&lt;c;++s)i.point((f=u[s])[0],f[1]);else n(p.x,p.n.x,1,i);p=p.n}else{if(d)for(s=(u=p.p.z).length-1;s&gt;=0;--s)i.point((f=u[s])[0],f[1]);else n(p.x,p.p.x,-1,i);p=p.p}u=(p=p.o).z,d=!d}while(!p.v);i.lineEnd()}}}function Xr(t){if(e=t.length){for(var e,r,n=0,i=t[0];++n&lt;e;)i.n=r=t[n],r.p=i,i=r;i.n=r=t[0],r.p=i}}function Zr(t,e,r,n){this.x=t,this.z=e,this.o=r,this.e=n,this.v=!1,this.n=this.p=null}function Jr(e,r,n,i){return function(a,o){var s,l=r(o),c=a.invert(i[0],i[1]),u={point:f,lineStart:p,lineEnd:d,polygonStart:function(){u.point=b,u.lineStart=_,u.lineEnd=w,s=[],g=[]},polygonEnd:function(){u.point=f,u.lineStart=p,u.lineEnd=d,s=t.merge(s);var e=function(t,e){var r=t[0],n=t[1],i=[Math.sin(r),-Math.cos(r),0],a=0,o=0;Er.reset();for(var s=0,l=e.length;s&lt;l;++s){var c=e[s],u=c.length;if(u)for(var f=c[0],h=f[0],p=f[1]/2+At/4,d=Math.sin(p),g=Math.cos(p),m=1;;){m===u&amp;&amp;(m=0);var v=(t=c[m])[0],y=t[1]/2+At/4,x=Math.sin(y),b=Math.cos(y),_=v-h,w=_&gt;=0?1:-1,T=w*_,k=T&gt;At,M=d*x;if(Er.add(Math.atan2(M*w*Math.sin(T),g*b+M*Math.cos(T))),a+=k?_+w*St:_,k^h&gt;=r^v&gt;=r){var A=zr(Ir(f),Ir(t));Rr(A);var S=zr(i,A);Rr(S);var E=(k^_&gt;=0?-1:1)*Dt(S[2]);(n&gt;E||n===E&amp;&amp;(A[0]||A[1]))&amp;&amp;(o+=k^_&gt;=0?1:-1)}if(!m++)break;h=v,d=x,g=b,f=t}}return(a&lt;-kt||a&lt;kt&amp;&amp;Er&lt;-kt)^1&amp;o}(c,g);s.length?(x||(o.polygonStart(),x=!0),Wr(s,$r,e,n,o)):e&amp;&amp;(x||(o.polygonStart(),x=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),x&amp;&amp;(o.polygonEnd(),x=!1),s=g=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function f(t,r){var n=a(t,r);e(t=n[0],r=n[1])&amp;&amp;o.point(t,r)}function h(t,e){var r=a(t,e);l.point(r[0],r[1])}function p(){u.point=h,l.lineStart()}function d(){u.point=f,l.lineEnd()}var g,m,v=Qr(),y=r(v),x=!1;function b(t,e){m.push([t,e]);var r=a(t,e);y.point(r[0],r[1])}function _(){y.lineStart(),m=[]}function w(){b(m[0][0],m[0][1]),y.lineEnd();var t,e=y.clean(),r=v.buffer(),n=r.length;if(m.pop(),g.push(m),m=null,n)if(1&amp;e){var i,a=-1;if((n=(t=r[0]).length-1)&gt;0){for(x||(o.polygonStart(),x=!0),o.lineStart();++a&lt;n;)o.point((i=t[a])[0],i[1]);o.lineEnd()}}else n&gt;1&amp;&amp;2&amp;e&amp;&amp;r.push(r.pop().concat(r.shift())),s.push(r.filter(Kr))}return u}}function Kr(t){return t.length&gt;1}function Qr(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,r){t.push([e,r])},lineEnd:O,buffer:function(){var r=e;return e=[],t=null,r},rejoin:function(){e.length&gt;1&amp;&amp;e.push(e.pop().concat(e.shift()))}}}function $r(t,e){return((t=t.x)[0]&lt;0?t[1]-Ct-kt:Ct-t[1])-((e=e.x)[0]&lt;0?e[1]-Ct-kt:Ct-e[1])}var tn=Jr(Yr,(function(t){var e,r=NaN,n=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a&gt;0?At:-At,l=y(a-r);y(l-At)&lt;kt?(t.point(r,n=(n+o)/2&gt;0?Ct:-Ct),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),t.point(a,n),e=0):i!==s&amp;&amp;l&gt;=At&amp;&amp;(y(r-i)&lt;kt&amp;&amp;(r-=i*kt),y(a-s)&lt;kt&amp;&amp;(a-=s*kt),n=function(t,e,r,n){var i,a,o=Math.sin(t-r);return y(o)&gt;kt?Math.atan((Math.sin(e)*(a=Math.cos(n))*Math.sin(r)-Math.sin(n)*(i=Math.cos(e))*Math.sin(t))/(i*a*o)):(e+n)/2}(r,n,a,o),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),e=0),t.point(r=a,n=o),i=s},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}}),(function(t,e,r,n){var i;if(null==t)i=r*Ct,n.point(-At,i),n.point(0,i),n.point(At,i),n.point(At,0),n.point(At,-i),n.point(0,-i),n.point(-At,-i),n.point(-At,0),n.point(-At,i);else if(y(t[0]-e[0])&gt;kt){var a=t[0]&lt;e[0]?At:-At;i=r*a/2,n.point(-a,i),n.point(0,i),n.point(a,i)}else n.point(e[0],e[1])}),[-At,-At/2]);function en(t){var e=Math.cos(t),r=e&gt;0,n=y(e)&gt;kt;return Jr(i,(function(t){var e,s,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(f,h){var p,d=[f,h],g=i(f,h),m=r?g?0:o(f,h):g?o(f+(f&lt;0?At:-At),h):0;if(!e&amp;&amp;(c=l=g)&amp;&amp;t.lineStart(),g!==l&amp;&amp;(p=a(e,d),(Br(e,p)||Br(d,p))&amp;&amp;(d[0]+=kt,d[1]+=kt,g=i(d[0],d[1]))),g!==l)u=0,g?(t.lineStart(),p=a(d,e),t.point(p[0],p[1])):(p=a(e,d),t.point(p[0],p[1]),t.lineEnd()),e=p;else if(n&amp;&amp;e&amp;&amp;r^g){var v;m&amp;s||!(v=a(d,e,!0))||(u=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!g||e&amp;&amp;Br(e,d)||t.point(d[0],d[1]),e=d,l=g,s=m},lineEnd:function(){l&amp;&amp;t.lineEnd(),e=null},clean:function(){return u|(c&amp;&amp;l)&lt;&lt;1}}}),Bn(t,6*Lt),r?[0,-t]:[-At,t-At]);function i(t,r){return Math.cos(t)*Math.cos(r)&gt;e}function a(t,r,n){var i=[1,0,0],a=zr(Ir(t),Ir(r)),o=Pr(a,a),s=a[0],l=o-s*s;if(!l)return!n&amp;&amp;t;var c=e*o/l,u=-e*s/l,f=zr(i,a),h=Dr(i,c);Or(h,Dr(a,u));var p=f,d=Pr(h,p),g=Pr(p,p),m=d*d-g*(Pr(h,h)-1);if(!(m&lt;0)){var v=Math.sqrt(m),x=Dr(p,(-d-v)/g);if(Or(x,h),x=Fr(x),!n)return x;var b,_=t[0],w=r[0],T=t[1],k=r[1];w&lt;_&amp;&amp;(b=_,_=w,w=b);var M=w-_,A=y(M-At)&lt;kt;if(!A&amp;&amp;k&lt;T&amp;&amp;(b=T,T=k,k=b),A||M&lt;kt?A?T+k&gt;0^x[1]&lt;(y(x[0]-_)&lt;kt?T:k):T&lt;=x[1]&amp;&amp;x[1]&lt;=k:M&gt;At^(_&lt;=x[0]&amp;&amp;x[0]&lt;=w)){var S=Dr(p,(-d+v)/g);return Or(S,h),[x,Fr(S)]}}}function o(e,n){var i=r?t:At-t,a=0;return e&lt;-i?a|=1:e&gt;i&amp;&amp;(a|=2),n&lt;-i?a|=4:n&gt;i&amp;&amp;(a|=8),a}}function rn(t,e,r,n){return function(i){var a,o=i.a,s=i.b,l=o.x,c=o.y,u=0,f=1,h=s.x-l,p=s.y-c;if(a=t-l,h||!(a&gt;0)){if(a/=h,h&lt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}else if(h&gt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}if(a=r-l,h||!(a&lt;0)){if(a/=h,h&lt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}else if(h&gt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}if(a=e-c,p||!(a&gt;0)){if(a/=p,p&lt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}else if(p&gt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}if(a=n-c,p||!(a&lt;0)){if(a/=p,p&lt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}else if(p&gt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}return u&gt;0&amp;&amp;(i.a={x:l+u*h,y:c+u*p}),f&lt;1&amp;&amp;(i.b={x:l+f*h,y:c+f*p}),i}}}}}}function nn(e,r,n,i){return function(l){var c,u,f,h,p,d,g,m,v,y,x,b=l,_=Qr(),w=rn(e,r,n,i),T={point:A,lineStart:function(){T.point=S,u&amp;&amp;u.push(f=[]);y=!0,v=!1,g=m=NaN},lineEnd:function(){c&amp;&amp;(S(h,p),d&amp;&amp;v&amp;&amp;_.rejoin(),c.push(_.buffer()));T.point=A,v&amp;&amp;l.lineEnd()},polygonStart:function(){l=_,c=[],u=[],x=!0},polygonEnd:function(){l=b,c=t.merge(c);var r=function(t){for(var e=0,r=u.length,n=t[1],i=0;i&lt;r;++i)for(var a,o=1,s=u[i],l=s.length,c=s[0];o&lt;l;++o)a=s[o],c[1]&lt;=n?a[1]&gt;n&amp;&amp;zt(c,a,t)&gt;0&amp;&amp;++e:a[1]&lt;=n&amp;&amp;zt(c,a,t)&lt;0&amp;&amp;--e,c=a;return 0!==e}([e,i]),n=x&amp;&amp;r,a=c.length;(n||a)&amp;&amp;(l.polygonStart(),n&amp;&amp;(l.lineStart(),k(null,null,1,l),l.lineEnd()),a&amp;&amp;Wr(c,o,r,k,l),l.polygonEnd()),c=u=f=null}};function k(t,o,l,c){var u=0,f=0;if(null==t||(u=a(t,l))!==(f=a(o,l))||s(t,o)&lt;0^l&gt;0)do{c.point(0===u||3===u?e:n,u&gt;1?i:r)}while((u=(u+l+4)%4)!==f);else c.point(o[0],o[1])}function M(t,a){return e&lt;=t&amp;&amp;t&lt;=n&amp;&amp;r&lt;=a&amp;&amp;a&lt;=i}function A(t,e){M(t,e)&amp;&amp;l.point(t,e)}function S(t,e){var r=M(t=Math.max(-1e9,Math.min(1e9,t)),e=Math.max(-1e9,Math.min(1e9,e)));if(u&amp;&amp;f.push([t,e]),y)h=t,p=e,d=r,y=!1,r&amp;&amp;(l.lineStart(),l.point(t,e));else if(r&amp;&amp;v)l.point(t,e);else{var n={a:{x:g,y:m},b:{x:t,y:e}};w(n)?(v||(l.lineStart(),l.point(n.a.x,n.a.y)),l.point(n.b.x,n.b.y),r||l.lineEnd(),x=!1):r&amp;&amp;(l.lineStart(),l.point(t,e),x=!1)}g=t,m=e,v=r}return T};function a(t,i){return y(t[0]-e)&lt;kt?i&gt;0?0:3:y(t[0]-n)&lt;kt?i&gt;0?2:1:y(t[1]-r)&lt;kt?i&gt;0?1:0:i&gt;0?3:2}function o(t,e){return s(t.x,e.x)}function s(t,e){var r=a(t,1),n=a(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}}function an(t){var e=0,r=At/3,n=Ln(t),i=n(e,r);return i.parallels=function(t){return arguments.length?n(e=t[0]*At/180,r=t[1]*At/180):[e/At*180,r/At*180]},i}function on(t,e){var r=Math.sin(t),n=(r+Math.sin(e))/2,i=1+r*(2*n-r),a=Math.sqrt(i)/n;function o(t,e){var r=Math.sqrt(i-2*n*Math.sin(e))/n;return[r*Math.sin(t*=n),a-r*Math.cos(t)]}return o.invert=function(t,e){var r=a-e;return[Math.atan2(t,r)/n,Dt((i-(t*t+r*r)*n*n)/(2*n))]},o}t.geo.clipExtent=function(){var t,e,r,n,i,a,o={stream:function(t){return i&amp;&amp;(i.valid=!1),(i=a(t)).valid=!0,i},extent:function(s){return arguments.length?(a=nn(t=+s[0][0],e=+s[0][1],r=+s[1][0],n=+s[1][1]),i&amp;&amp;(i.valid=!1,i=null),o):[[t,e],[r,n]]}};return o.extent([[0,0],[960,500]])},(t.geo.conicEqualArea=function(){return an(on)}).raw=on,t.geo.albers=function(){return t.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},t.geo.albersUsa=function(){var e,r,n,i,a=t.geo.albers(),o=t.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=t.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,r){e=[t,r]}};function c(t){var a=t[0],o=t[1];return e=null,r(a,o),e||(n(a,o),e)||i(a,o),e}return c.invert=function(t){var e=a.scale(),r=a.translate(),n=(t[0]-r[0])/e,i=(t[1]-r[1])/e;return(i&gt;=.12&amp;&amp;i&lt;.234&amp;&amp;n&gt;=-.425&amp;&amp;n&lt;-.214?o:i&gt;=.166&amp;&amp;i&lt;.234&amp;&amp;n&gt;=-.214&amp;&amp;n&lt;-.115?s:a).invert(t)},c.stream=function(t){var e=a.stream(t),r=o.stream(t),n=s.stream(t);return{point:function(t,i){e.point(t,i),r.point(t,i),n.point(t,i)},sphere:function(){e.sphere(),r.sphere(),n.sphere()},lineStart:function(){e.lineStart(),r.lineStart(),n.lineStart()},lineEnd:function(){e.lineEnd(),r.lineEnd(),n.lineEnd()},polygonStart:function(){e.polygonStart(),r.polygonStart(),n.polygonStart()},polygonEnd:function(){e.polygonEnd(),r.polygonEnd(),n.polygonEnd()}}},c.precision=function(t){return arguments.length?(a.precision(t),o.precision(t),s.precision(t),c):a.precision()},c.scale=function(t){return arguments.length?(a.scale(t),o.scale(.35*t),s.scale(t),c.translate(a.translate())):a.scale()},c.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),u=+t[0],f=+t[1];return r=a.translate(t).clipExtent([[u-.455*e,f-.238*e],[u+.455*e,f+.238*e]]).stream(l).point,n=o.translate([u-.307*e,f+.201*e]).clipExtent([[u-.425*e+kt,f+.12*e+kt],[u-.214*e-kt,f+.234*e-kt]]).stream(l).point,i=s.translate([u-.205*e,f+.212*e]).clipExtent([[u-.214*e+kt,f+.166*e+kt],[u-.115*e-kt,f+.234*e-kt]]).stream(l).point,c},c.scale(1070)};var sn,ln,cn,un,fn,hn,pn={point:O,lineStart:O,lineEnd:O,polygonStart:function(){ln=0,pn.lineStart=dn},polygonEnd:function(){pn.lineStart=pn.lineEnd=pn.point=O,sn+=y(ln/2)}};function dn(){var t,e,r,n;function i(t,e){ln+=n*t-r*e,r=t,n=e}pn.point=function(a,o){pn.point=i,t=r=a,e=n=o},pn.lineEnd=function(){i(t,e)}}var gn={point:function(t,e){t&lt;cn&amp;&amp;(cn=t);t&gt;fn&amp;&amp;(fn=t);e&lt;un&amp;&amp;(un=e);e&gt;hn&amp;&amp;(hn=e)},lineStart:O,lineEnd:O,polygonStart:O,polygonEnd:O};function mn(){var t=vn(4.5),e=[],r={point:n,lineStart:function(){r.point=i},lineEnd:o,polygonStart:function(){r.lineEnd=s},polygonEnd:function(){r.lineEnd=o,r.point=n},pointRadius:function(e){return t=vn(e),r},result:function(){if(e.length){var t=e.join(&quot;&quot;);return e=[],t}}};function n(r,n){e.push(&quot;M&quot;,r,&quot;,&quot;,n,t)}function i(t,n){e.push(&quot;M&quot;,t,&quot;,&quot;,n),r.point=a}function a(t,r){e.push(&quot;L&quot;,t,&quot;,&quot;,r)}function o(){r.point=n}function s(){e.push(&quot;Z&quot;)}return r}function vn(t){return&quot;m0,&quot;+t+&quot;a&quot;+t+&quot;,&quot;+t+&quot; 0 1,1 0,&quot;+-2*t+&quot;a&quot;+t+&quot;,&quot;+t+&quot; 0 1,1 0,&quot;+2*t+&quot;z&quot;}var yn,xn={point:bn,lineStart:_n,lineEnd:wn,polygonStart:function(){xn.lineStart=Tn},polygonEnd:function(){xn.point=bn,xn.lineStart=_n,xn.lineEnd=wn}};function bn(t,e){xr+=t,br+=e,++_r}function _n(){var t,e;function r(r,n){var i=r-t,a=n-e,o=Math.sqrt(i*i+a*a);wr+=o*(t+r)/2,Tr+=o*(e+n)/2,kr+=o,bn(t=r,e=n)}xn.point=function(n,i){xn.point=r,bn(t=n,e=i)}}function wn(){xn.point=bn}function Tn(){var t,e,r,n;function i(t,e){var i=t-r,a=e-n,o=Math.sqrt(i*i+a*a);wr+=o*(r+t)/2,Tr+=o*(n+e)/2,kr+=o,Mr+=(o=n*t-r*e)*(r+t),Ar+=o*(n+e),Sr+=3*o,bn(r=t,n=e)}xn.point=function(a,o){xn.point=i,bn(t=r=a,e=n=o)},xn.lineEnd=function(){i(t,e)}}function kn(t){var e=4.5,r={point:n,lineStart:function(){r.point=i},lineEnd:o,polygonStart:function(){r.lineEnd=s},polygonEnd:function(){r.lineEnd=o,r.point=n},pointRadius:function(t){return e=t,r},result:O};function n(r,n){t.moveTo(r+e,n),t.arc(r,n,e,0,St)}function i(e,n){t.moveTo(e,n),r.point=a}function a(e,r){t.lineTo(e,r)}function o(){r.point=n}function s(){t.closePath()}return r}function Mn(t){var e=.5,r=Math.cos(30*Lt),n=16;function i(t){return(n?o:a)(t)}function a(e){return En(e,(function(r,n){r=t(r,n),e.point(r[0],r[1])}))}function o(e){var r,i,a,o,l,c,u,f,h,p,d,g,m={point:v,lineStart:y,lineEnd:b,polygonStart:function(){e.polygonStart(),m.lineStart=_},polygonEnd:function(){e.polygonEnd(),m.lineStart=y}};function v(r,n){r=t(r,n),e.point(r[0],r[1])}function y(){f=NaN,m.point=x,e.lineStart()}function x(r,i){var a=Ir([r,i]),o=t(r,i);s(f,h,u,p,d,g,f=o[0],h=o[1],u=r,p=a[0],d=a[1],g=a[2],n,e),e.point(f,h)}function b(){m.point=v,e.lineEnd()}function _(){y(),m.point=w,m.lineEnd=T}function w(t,e){x(r=t,e),i=f,a=h,o=p,l=d,c=g,m.point=x}function T(){s(f,h,u,p,d,g,i,a,r,o,l,c,n,e),m.lineEnd=b,b()}return m}function s(n,i,a,o,l,c,u,f,h,p,d,g,m,v){var x=u-n,b=f-i,_=x*x+b*b;if(_&gt;4*e&amp;&amp;m--){var w=o+p,T=l+d,k=c+g,M=Math.sqrt(w*w+T*T+k*k),A=Math.asin(k/=M),S=y(y(k)-1)&lt;kt||y(a-h)&lt;kt?(a+h)/2:Math.atan2(T,w),E=t(S,A),C=E[0],L=E[1],I=C-n,P=L-i,z=b*I-x*P;(z*z/_&gt;e||y((x*I+b*P)/_-.5)&gt;.3||o*p+l*d+c*g&lt;r)&amp;&amp;(s(n,i,a,o,l,c,C,L,S,w/=M,T/=M,k,m,v),v.point(C,L),s(C,L,S,w,T,k,u,f,h,p,d,g,m,v))}}return i.precision=function(t){return arguments.length?(n=(e=t*t)&gt;0&amp;&amp;16,i):Math.sqrt(e)},i}function An(t){var e=Mn((function(e,r){return t([e*It,r*It])}));return function(t){return In(e(t))}}function Sn(t){this.stream=t}function En(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function Cn(t){return Ln((function(){return t}))()}function Ln(e){var r,n,i,a,o,s,l=Mn((function(t,e){return[(t=r(t,e))[0]*c+a,o-t[1]*c]})),c=150,u=480,f=250,h=0,p=0,d=0,g=0,m=0,v=tn,y=L,x=null,b=null;function _(t){return[(t=i(t[0]*Lt,t[1]*Lt))[0]*c+a,o-t[1]*c]}function w(t){return(t=i.invert((t[0]-a)/c,(o-t[1])/c))&amp;&amp;[t[0]*It,t[1]*It]}function T(){i=Gr(n=On(d,g,m),r);var t=r(h,p);return a=u-t[0]*c,o=f+t[1]*c,k()}function k(){return s&amp;&amp;(s.valid=!1,s=null),_}return _.stream=function(t){return s&amp;&amp;(s.valid=!1),(s=In(v(n,l(y(t))))).valid=!0,s},_.clipAngle=function(t){return arguments.length?(v=null==t?(x=t,tn):en((x=+t)*Lt),k()):x},_.clipExtent=function(t){return arguments.length?(b=t,y=t?nn(t[0][0],t[0][1],t[1][0],t[1][1]):L,k()):b},_.scale=function(t){return arguments.length?(c=+t,T()):c},_.translate=function(t){return arguments.length?(u=+t[0],f=+t[1],T()):[u,f]},_.center=function(t){return arguments.length?(h=t[0]%360*Lt,p=t[1]%360*Lt,T()):[h*It,p*It]},_.rotate=function(t){return arguments.length?(d=t[0]%360*Lt,g=t[1]%360*Lt,m=t.length&gt;2?t[2]%360*Lt:0,T()):[d*It,g*It,m*It]},t.rebind(_,l,&quot;precision&quot;),function(){return r=e.apply(this,arguments),_.invert=r.invert&amp;&amp;w,T()}}function In(t){return En(t,(function(e,r){t.point(e*Lt,r*Lt)}))}function Pn(t,e){return[t,e]}function zn(t,e){return[t&gt;At?t-St:t&lt;-At?t+St:t,e]}function On(t,e,r){return t?e||r?Gr(Rn(t),Fn(e,r)):Rn(t):e||r?Fn(e,r):zn}function Dn(t){return function(e,r){return[(e+=t)&gt;At?e-St:e&lt;-At?e+St:e,r]}}function Rn(t){var e=Dn(t);return e.invert=Dn(-t),e}function Fn(t,e){var r=Math.cos(t),n=Math.sin(t),i=Math.cos(e),a=Math.sin(e);function o(t,e){var o=Math.cos(e),s=Math.cos(t)*o,l=Math.sin(t)*o,c=Math.sin(e),u=c*r+s*n;return[Math.atan2(l*i-u*a,s*r-c*n),Dt(u*i+l*a)]}return o.invert=function(t,e){var o=Math.cos(e),s=Math.cos(t)*o,l=Math.sin(t)*o,c=Math.sin(e),u=c*i-l*a;return[Math.atan2(l*i+c*a,s*r+u*n),Dt(u*r-s*n)]},o}function Bn(t,e){var r=Math.cos(t),n=Math.sin(t);return function(i,a,o,s){var l=o*e;null!=i?(i=Nn(r,i),a=Nn(r,a),(o&gt;0?i&lt;a:i&gt;a)&amp;&amp;(i+=o*St)):(i=t+o*St,a=t-.5*l);for(var c,u=i;o&gt;0?u&gt;a:u&lt;a;u-=l)s.point((c=Fr([r,-n*Math.cos(u),-n*Math.sin(u)]))[0],c[1])}}function Nn(t,e){var r=Ir(e);r[0]-=t,Rr(r);var n=Ot(-r[1]);return((-r[2]&lt;0?-n:n)+2*Math.PI-kt)%(2*Math.PI)}function jn(e,r,n){var i=t.range(e,r-kt,n).concat(r);return function(t){return i.map((function(e){return[t,e]}))}}function Un(e,r,n){var i=t.range(e,r-kt,n).concat(r);return function(t){return i.map((function(e){return[e,t]}))}}function Vn(t){return t.source}function qn(t){return t.target}t.geo.path=function(){var e,r,n,i,a,o=4.5;function s(e){return e&amp;&amp;(&quot;function&quot;==typeof o&amp;&amp;i.pointRadius(+o.apply(this,arguments)),a&amp;&amp;a.valid||(a=n(i)),t.geo.stream(e,a)),i.result()}function l(){return a=null,s}return s.area=function(e){return sn=0,t.geo.stream(e,n(pn)),sn},s.centroid=function(e){return xr=br=_r=wr=Tr=kr=Mr=Ar=Sr=0,t.geo.stream(e,n(xn)),Sr?[Mr/Sr,Ar/Sr]:kr?[wr/kr,Tr/kr]:_r?[xr/_r,br/_r]:[NaN,NaN]},s.bounds=function(e){return fn=hn=-(cn=un=1/0),t.geo.stream(e,n(gn)),[[cn,un],[fn,hn]]},s.projection=function(t){return arguments.length?(n=(e=t)?t.stream||An(t):L,l()):e},s.context=function(t){return arguments.length?(i=null==(r=t)?new mn:new kn(t),&quot;function&quot;!=typeof o&amp;&amp;i.pointRadius(o),l()):r},s.pointRadius=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:(i.pointRadius(+t),+t),s):o},s.projection(t.geo.albersUsa()).context(null)},t.geo.transform=function(t){return{stream:function(e){var r=new Sn(e);for(var n in t)r[n]=t[n];return r}}},Sn.prototype={point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},t.geo.projection=Cn,t.geo.projectionMutator=Ln,(t.geo.equirectangular=function(){return Cn(Pn)}).raw=Pn.invert=Pn,t.geo.rotation=function(t){function e(e){return(e=t(e[0]*Lt,e[1]*Lt))[0]*=It,e[1]*=It,e}return t=On(t[0]%360*Lt,t[1]*Lt,t.length&gt;2?t[2]*Lt:0),e.invert=function(e){return(e=t.invert(e[0]*Lt,e[1]*Lt))[0]*=It,e[1]*=It,e},e},zn.invert=Pn,t.geo.circle=function(){var t,e,r=[0,0],n=6;function i(){var t=&quot;function&quot;==typeof r?r.apply(this,arguments):r,n=On(-t[0]*Lt,-t[1]*Lt,0).invert,i=[];return e(null,null,1,{point:function(t,e){i.push(t=n(t,e)),t[0]*=It,t[1]*=It}}),{type:&quot;Polygon&quot;,coordinates:[i]}}return i.origin=function(t){return arguments.length?(r=t,i):r},i.angle=function(r){return arguments.length?(e=Bn((t=+r)*Lt,n*Lt),i):t},i.precision=function(r){return arguments.length?(e=Bn(t*Lt,(n=+r)*Lt),i):n},i.angle(90)},t.geo.distance=function(t,e){var r,n=(e[0]-t[0])*Lt,i=t[1]*Lt,a=e[1]*Lt,o=Math.sin(n),s=Math.cos(n),l=Math.sin(i),c=Math.cos(i),u=Math.sin(a),f=Math.cos(a);return Math.atan2(Math.sqrt((r=f*o)*r+(r=c*u-l*f*s)*r),l*u+c*f*s)},t.geo.graticule=function(){var e,r,n,i,a,o,s,l,c,u,f,h,p=10,d=p,g=90,m=360,v=2.5;function x(){return{type:&quot;MultiLineString&quot;,coordinates:b()}}function b(){return t.range(Math.ceil(i/g)*g,n,g).map(f).concat(t.range(Math.ceil(l/m)*m,s,m).map(h)).concat(t.range(Math.ceil(r/p)*p,e,p).filter((function(t){return y(t%g)&gt;kt})).map(c)).concat(t.range(Math.ceil(o/d)*d,a,d).filter((function(t){return y(t%m)&gt;kt})).map(u))}return x.lines=function(){return b().map((function(t){return{type:&quot;LineString&quot;,coordinates:t}}))},x.outline=function(){return{type:&quot;Polygon&quot;,coordinates:[f(i).concat(h(s).slice(1),f(n).reverse().slice(1),h(l).reverse().slice(1))]}},x.extent=function(t){return arguments.length?x.majorExtent(t).minorExtent(t):x.minorExtent()},x.majorExtent=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],l=+t[0][1],s=+t[1][1],i&gt;n&amp;&amp;(t=i,i=n,n=t),l&gt;s&amp;&amp;(t=l,l=s,s=t),x.precision(v)):[[i,l],[n,s]]},x.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],o=+t[0][1],a=+t[1][1],r&gt;e&amp;&amp;(t=r,r=e,e=t),o&gt;a&amp;&amp;(t=o,o=a,a=t),x.precision(v)):[[r,o],[e,a]]},x.step=function(t){return arguments.length?x.majorStep(t).minorStep(t):x.minorStep()},x.majorStep=function(t){return arguments.length?(g=+t[0],m=+t[1],x):[g,m]},x.minorStep=function(t){return arguments.length?(p=+t[0],d=+t[1],x):[p,d]},x.precision=function(t){return arguments.length?(v=+t,c=jn(o,a,90),u=Un(r,e,v),f=jn(l,s,90),h=Un(i,n,v),x):v},x.majorExtent([[-180,-90+kt],[180,90-kt]]).minorExtent([[-180,-80-kt],[180,80+kt]])},t.geo.greatArc=function(){var e,r,n=Vn,i=qn;function a(){return{type:&quot;LineString&quot;,coordinates:[e||n.apply(this,arguments),r||i.apply(this,arguments)]}}return a.distance=function(){return t.geo.distance(e||n.apply(this,arguments),r||i.apply(this,arguments))},a.source=function(t){return arguments.length?(n=t,e=&quot;function&quot;==typeof t?null:t,a):n},a.target=function(t){return arguments.length?(i=t,r=&quot;function&quot;==typeof t?null:t,a):i},a.precision=function(){return arguments.length?a:0},a},t.geo.interpolate=function(t,e){return r=t[0]*Lt,n=t[1]*Lt,i=e[0]*Lt,a=e[1]*Lt,o=Math.cos(n),s=Math.sin(n),l=Math.cos(a),c=Math.sin(a),u=o*Math.cos(r),f=o*Math.sin(r),h=l*Math.cos(i),p=l*Math.sin(i),d=2*Math.asin(Math.sqrt(Ft(a-n)+o*l*Ft(i-r))),g=1/Math.sin(d),(m=d?function(t){var e=Math.sin(t*=d)*g,r=Math.sin(d-t)*g,n=r*u+e*h,i=r*f+e*p,a=r*s+e*c;return[Math.atan2(i,n)*It,Math.atan2(a,Math.sqrt(n*n+i*i))*It]}:function(){return[r*It,n*It]}).distance=d,m;var r,n,i,a,o,s,l,c,u,f,h,p,d,g,m},t.geo.length=function(e){return yn=0,t.geo.stream(e,Hn),yn};var Hn={sphere:O,point:O,lineStart:function(){var t,e,r;function n(n,i){var a=Math.sin(i*=Lt),o=Math.cos(i),s=y((n*=Lt)-t),l=Math.cos(s);yn+=Math.atan2(Math.sqrt((s=o*Math.sin(s))*s+(s=r*a-e*o*l)*s),e*a+r*o*l),t=n,e=a,r=o}Hn.point=function(i,a){t=i*Lt,e=Math.sin(a*=Lt),r=Math.cos(a),Hn.point=n},Hn.lineEnd=function(){Hn.point=Hn.lineEnd=O}},lineEnd:O,polygonStart:O,polygonEnd:O};function Gn(t,e){function r(e,r){var n=Math.cos(e),i=Math.cos(r),a=t(n*i);return[a*i*Math.sin(e),a*Math.sin(r)]}return r.invert=function(t,r){var n=Math.sqrt(t*t+r*r),i=e(n),a=Math.sin(i),o=Math.cos(i);return[Math.atan2(t*a,n*o),Math.asin(n&amp;&amp;r*a/n)]},r}var Yn=Gn((function(t){return Math.sqrt(2/(1+t))}),(function(t){return 2*Math.asin(t/2)}));(t.geo.azimuthalEqualArea=function(){return Cn(Yn)}).raw=Yn;var Wn=Gn((function(t){var e=Math.acos(t);return e&amp;&amp;e/Math.sin(e)}),L);function Xn(t,e){var r=Math.cos(t),n=function(t){return Math.tan(At/4+t/2)},i=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(n(e)/n(t)),a=r*Math.pow(n(t),i)/i;if(!i)return Kn;function o(t,e){a&gt;0?e&lt;-Ct+kt&amp;&amp;(e=-Ct+kt):e&gt;Ct-kt&amp;&amp;(e=Ct-kt);var r=a/Math.pow(n(e),i);return[r*Math.sin(i*t),a-r*Math.cos(i*t)]}return o.invert=function(t,e){var r=a-e,n=Pt(i)*Math.sqrt(t*t+r*r);return[Math.atan2(t,r)/i,2*Math.atan(Math.pow(a/n,1/i))-Ct]},o}function Zn(t,e){var r=Math.cos(t),n=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),i=r/n+t;if(y(n)&lt;kt)return Pn;function a(t,e){var r=i-e;return[r*Math.sin(n*t),i-r*Math.cos(n*t)]}return a.invert=function(t,e){var r=i-e;return[Math.atan2(t,r)/n,i-Pt(n)*Math.sqrt(t*t+r*r)]},a}(t.geo.azimuthalEquidistant=function(){return Cn(Wn)}).raw=Wn,(t.geo.conicConformal=function(){return an(Xn)}).raw=Xn,(t.geo.conicEquidistant=function(){return an(Zn)}).raw=Zn;var Jn=Gn((function(t){return 1/t}),Math.atan);function Kn(t,e){return[t,Math.log(Math.tan(At/4+e/2))]}function Qn(t){var e,r=Cn(t),n=r.scale,i=r.translate,a=r.clipExtent;return r.scale=function(){var t=n.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.translate=function(){var t=i.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.clipExtent=function(t){var o=a.apply(r,arguments);if(o===r){if(e=null==t){var s=At*n(),l=i();a([[l[0]-s,l[1]-s],[l[0]+s,l[1]+s]])}}else e&amp;&amp;(o=null);return o},r.clipExtent(null)}(t.geo.gnomonic=function(){return Cn(Jn)}).raw=Jn,Kn.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Ct]},(t.geo.mercator=function(){return Qn(Kn)}).raw=Kn;var $n=Gn((function(){return 1}),Math.asin);(t.geo.orthographic=function(){return Cn($n)}).raw=$n;var ti=Gn((function(t){return 1/(1+t)}),(function(t){return 2*Math.atan(t)}));function ei(t,e){return[Math.log(Math.tan(At/4+e/2)),-t]}function ri(t){return t[0]}function ni(t){return t[1]}function ii(t){for(var e=t.length,r=[0,1],n=2,i=2;i&lt;e;i++){for(;n&gt;1&amp;&amp;zt(t[r[n-2]],t[r[n-1]],t[i])&lt;=0;)--n;r[n++]=i}return r.slice(0,n)}function ai(t,e){return t[0]-e[0]||t[1]-e[1]}(t.geo.stereographic=function(){return Cn(ti)}).raw=ti,ei.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Ct]},(t.geo.transverseMercator=function(){var t=Qn(ei),e=t.center,r=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return t?r([t[0],t[1],t.length&gt;2?t[2]+90:90]):[(t=r())[0],t[1],t[2]-90]},r([0,0,90])}).raw=ei,t.geom={},t.geom.hull=function(t){var e=ri,r=ni;if(arguments.length)return n(t);function n(t){if(t.length&lt;3)return[];var n,i=de(e),a=de(r),o=t.length,s=[],l=[];for(n=0;n&lt;o;n++)s.push([+i.call(this,t[n],n),+a.call(this,t[n],n),n]);for(s.sort(ai),n=0;n&lt;o;n++)l.push([s[n][0],-s[n][1]]);var c=ii(s),u=ii(l),f=u[0]===c[0],h=u[u.length-1]===c[c.length-1],p=[];for(n=c.length-1;n&gt;=0;--n)p.push(t[s[c[n]][2]]);for(n=+f;n&lt;u.length-h;++n)p.push(t[s[u[n]][2]]);return p}return n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n},t.geom.polygon=function(t){return U(t,oi),t};var oi=t.geom.polygon.prototype=[];function si(t,e,r){return(r[0]-e[0])*(t[1]-e[1])&lt;(r[1]-e[1])*(t[0]-e[0])}function li(t,e,r,n){var i=t[0],a=r[0],o=e[0]-i,s=n[0]-a,l=t[1],c=r[1],u=e[1]-l,f=n[1]-c,h=(s*(l-c)-f*(i-a))/(f*o-s*u);return[i+h*o,l+h*u]}function ci(t){var e=t[0],r=t[t.length-1];return!(e[0]-r[0]||e[1]-r[1])}oi.area=function(){for(var t,e=-1,r=this.length,n=this[r-1],i=0;++e&lt;r;)t=n,n=this[e],i+=t[1]*n[0]-t[0]*n[1];return.5*i},oi.centroid=function(t){var e,r,n=-1,i=this.length,a=0,o=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++n&lt;i;)e=s,s=this[n],r=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*r,o+=(e[1]+s[1])*r;return[a*t,o*t]},oi.clip=function(t){for(var e,r,n,i,a,o,s=ci(t),l=-1,c=this.length-ci(this),u=this[c-1];++l&lt;c;){for(e=t.slice(),t.length=0,i=this[l],a=e[(n=e.length-s)-1],r=-1;++r&lt;n;)si(o=e[r],u,i)?(si(a,u,i)||t.push(li(a,o,u,i)),t.push(o)):si(a,u,i)&amp;&amp;t.push(li(a,o,u,i)),a=o;s&amp;&amp;t.push(t[0]),u=i}return t};var ui,fi,hi,pi,di,gi=[],mi=[];function vi(){Ri(this),this.edge=this.site=this.circle=null}function yi(t){var e=gi.pop()||new vi;return e.site=t,e}function xi(t){Ei(t),hi.remove(t),gi.push(t),Ri(t)}function bi(t){var e=t.circle,r=e.x,n=e.cy,i={x:r,y:n},a=t.P,o=t.N,s=[t];xi(t);for(var l=a;l.circle&amp;&amp;y(r-l.circle.x)&lt;kt&amp;&amp;y(n-l.circle.cy)&lt;kt;)a=l.P,s.unshift(l),xi(l),l=a;s.unshift(l),Ei(l);for(var c=o;c.circle&amp;&amp;y(r-c.circle.x)&lt;kt&amp;&amp;y(n-c.circle.cy)&lt;kt;)o=c.N,s.push(c),xi(c),c=o;s.push(c),Ei(c);var u,f=s.length;for(u=1;u&lt;f;++u)c=s[u],l=s[u-1],zi(c.edge,l.site,c.site,i);l=s[0],(c=s[f-1]).edge=Ii(l.site,c.site,null,i),Si(l),Si(c)}function _i(t){for(var e,r,n,i,a=t.x,o=t.y,s=hi._;s;)if((n=wi(s,o)-a)&gt;kt)s=s.L;else{if(!((i=a-Ti(s,o))&gt;kt)){n&gt;-kt?(e=s.P,r=s):i&gt;-kt?(e=s,r=s.N):e=r=s;break}if(!s.R){e=s;break}s=s.R}var l=yi(t);if(hi.insert(e,l),e||r){if(e===r)return Ei(e),r=yi(e.site),hi.insert(l,r),l.edge=r.edge=Ii(e.site,l.site),Si(e),void Si(r);if(r){Ei(e),Ei(r);var c=e.site,u=c.x,f=c.y,h=t.x-u,p=t.y-f,d=r.site,g=d.x-u,m=d.y-f,v=2*(h*m-p*g),y=h*h+p*p,x=g*g+m*m,b={x:(m*y-p*x)/v+u,y:(h*x-g*y)/v+f};zi(r.edge,c,d,b),l.edge=Ii(c,t,null,b),r.edge=Ii(t,d,null,b),Si(e),Si(r)}else l.edge=Ii(e.site,l.site)}}function wi(t,e){var r=t.site,n=r.x,i=r.y,a=i-e;if(!a)return n;var o=t.P;if(!o)return-1/0;var s=(r=o.site).x,l=r.y,c=l-e;if(!c)return s;var u=s-n,f=1/a-1/c,h=u/c;return f?(-h+Math.sqrt(h*h-2*f*(u*u/(-2*c)-l+c/2+i-a/2)))/f+n:(n+s)/2}function Ti(t,e){var r=t.N;if(r)return wi(r,e);var n=t.site;return n.y===e?n.x:1/0}function ki(t){this.site=t,this.edges=[]}function Mi(t,e){return e.angle-t.angle}function Ai(){Ri(this),this.x=this.y=this.arc=this.site=this.cy=null}function Si(t){var e=t.P,r=t.N;if(e&amp;&amp;r){var n=e.site,i=t.site,a=r.site;if(n!==a){var o=i.x,s=i.y,l=n.x-o,c=n.y-s,u=a.x-o,f=2*(l*(m=a.y-s)-c*u);if(!(f&gt;=-Mt)){var h=l*l+c*c,p=u*u+m*m,d=(m*h-c*p)/f,g=(l*p-u*h)/f,m=g+s,v=mi.pop()||new Ai;v.arc=t,v.site=i,v.x=d+o,v.y=m+Math.sqrt(d*d+g*g),v.cy=m,t.circle=v;for(var y=null,x=di._;x;)if(v.y&lt;x.y||v.y===x.y&amp;&amp;v.x&lt;=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}di.insert(y,v),y||(pi=v)}}}}function Ei(t){var e=t.circle;e&amp;&amp;(e.P||(pi=e.N),di.remove(e),mi.push(e),Ri(e),t.circle=null)}function Ci(t,e){var r=t.b;if(r)return!0;var n,i,a=t.a,o=e[0][0],s=e[1][0],l=e[0][1],c=e[1][1],u=t.l,f=t.r,h=u.x,p=u.y,d=f.x,g=f.y,m=(h+d)/2,v=(p+g)/2;if(g===p){if(m&lt;o||m&gt;=s)return;if(h&gt;d){if(a){if(a.y&gt;=c)return}else a={x:m,y:l};r={x:m,y:c}}else{if(a){if(a.y&lt;l)return}else a={x:m,y:c};r={x:m,y:l}}}else if(i=v-(n=(h-d)/(g-p))*m,n&lt;-1||n&gt;1)if(h&gt;d){if(a){if(a.y&gt;=c)return}else a={x:(l-i)/n,y:l};r={x:(c-i)/n,y:c}}else{if(a){if(a.y&lt;l)return}else a={x:(c-i)/n,y:c};r={x:(l-i)/n,y:l}}else if(p&lt;g){if(a){if(a.x&gt;=s)return}else a={x:o,y:n*o+i};r={x:s,y:n*s+i}}else{if(a){if(a.x&lt;o)return}else a={x:s,y:n*s+i};r={x:o,y:n*o+i}}return t.a=a,t.b=r,!0}function Li(t,e){this.l=t,this.r=e,this.a=this.b=null}function Ii(t,e,r,n){var i=new Li(t,e);return ui.push(i),r&amp;&amp;zi(i,t,e,r),n&amp;&amp;zi(i,e,t,n),fi[t.i].edges.push(new Oi(i,t,e)),fi[e.i].edges.push(new Oi(i,e,t)),i}function Pi(t,e,r){var n=new Li(t,null);return n.a=e,n.b=r,ui.push(n),n}function zi(t,e,r,n){t.a||t.b?t.l===r?t.b=n:t.a=n:(t.a=n,t.l=e,t.r=r)}function Oi(t,e,r){var n=t.a,i=t.b;this.edge=t,this.site=e,this.angle=r?Math.atan2(r.y-e.y,r.x-e.x):t.l===e?Math.atan2(i.x-n.x,n.y-i.y):Math.atan2(n.x-i.x,i.y-n.y)}function Di(){this._=null}function Ri(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Fi(t,e){var r=e,n=e.R,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.R=n.L,r.R&amp;&amp;(r.R.U=r),n.L=r}function Bi(t,e){var r=e,n=e.L,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.L=n.R,r.L&amp;&amp;(r.L.U=r),n.R=r}function Ni(t){for(;t.L;)t=t.L;return t}function ji(t,e){var r,n,i,a=t.sort(Ui).pop();for(ui=[],fi=new Array(t.length),hi=new Di,di=new Di;;)if(i=pi,a&amp;&amp;(!i||a.y&lt;i.y||a.y===i.y&amp;&amp;a.x&lt;i.x))a.x===r&amp;&amp;a.y===n||(fi[a.i]=new ki(a),_i(a),r=a.x,n=a.y),a=t.pop();else{if(!i)break;bi(i.arc)}e&amp;&amp;(function(t){for(var e,r=ui,n=rn(t[0][0],t[0][1],t[1][0],t[1][1]),i=r.length;i--;)(!Ci(e=r[i],t)||!n(e)||y(e.a.x-e.b.x)&lt;kt&amp;&amp;y(e.a.y-e.b.y)&lt;kt)&amp;&amp;(e.a=e.b=null,r.splice(i,1))}(e),function(t){for(var e,r,n,i,a,o,s,l,c,u,f=t[0][0],h=t[1][0],p=t[0][1],d=t[1][1],g=fi,m=g.length;m--;)if((a=g[m])&amp;&amp;a.prepare())for(l=(s=a.edges).length,o=0;o&lt;l;)n=(u=s[o].end()).x,i=u.y,e=(c=s[++o%l].start()).x,r=c.y,(y(n-e)&gt;kt||y(i-r)&gt;kt)&amp;&amp;(s.splice(o,0,new Oi(Pi(a.site,u,y(n-f)&lt;kt&amp;&amp;d-i&gt;kt?{x:f,y:y(e-f)&lt;kt?r:d}:y(i-d)&lt;kt&amp;&amp;h-n&gt;kt?{x:y(r-d)&lt;kt?e:h,y:d}:y(n-h)&lt;kt&amp;&amp;i-p&gt;kt?{x:h,y:y(e-h)&lt;kt?r:p}:y(i-p)&lt;kt&amp;&amp;n-f&gt;kt?{x:y(r-p)&lt;kt?e:f,y:p}:null),a.site,null)),++l)}(e));var o={cells:fi,edges:ui};return hi=di=ui=fi=null,o}function Ui(t,e){return e.y-t.y||e.x-t.x}ki.prototype.prepare=function(){for(var t,e=this.edges,r=e.length;r--;)(t=e[r].edge).b&amp;&amp;t.a||e.splice(r,1);return e.sort(Mi),e.length},Oi.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Di.prototype={insert:function(t,e){var r,n,i;if(t){if(e.P=t,e.N=t.N,t.N&amp;&amp;(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;r=t}else this._?(t=Ni(this._),e.P=null,e.N=t,t.P=t.L=e,r=t):(e.P=e.N=null,this._=e,r=null);for(e.L=e.R=null,e.U=r,e.C=!0,t=e;r&amp;&amp;r.C;)r===(n=r.U).L?(i=n.R)&amp;&amp;i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.R&amp;&amp;(Fi(this,r),r=(t=r).U),r.C=!1,n.C=!0,Bi(this,n)):(i=n.L)&amp;&amp;i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.L&amp;&amp;(Bi(this,r),r=(t=r).U),r.C=!1,n.C=!0,Fi(this,n)),r=t.U;this._.C=!1},remove:function(t){t.N&amp;&amp;(t.N.P=t.P),t.P&amp;&amp;(t.P.N=t.N),t.N=t.P=null;var e,r,n,i=t.U,a=t.L,o=t.R;if(r=a?o?Ni(o):a:o,i?i.L===t?i.L=r:i.R=r:this._=r,a&amp;&amp;o?(n=r.C,r.C=t.C,r.L=a,a.U=r,r!==o?(i=r.U,r.U=t.U,t=r.R,i.L=t,r.R=o,o.U=r):(r.U=i,i=r,t=r.R)):(n=t.C,t=r),t&amp;&amp;(t.U=i),!n)if(t&amp;&amp;t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&amp;&amp;(e.C=!1,i.C=!0,Fi(this,i),e=i.R),e.L&amp;&amp;e.L.C||e.R&amp;&amp;e.R.C){e.R&amp;&amp;e.R.C||(e.L.C=!1,e.C=!0,Bi(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,Fi(this,i),t=this._;break}}else if((e=i.L).C&amp;&amp;(e.C=!1,i.C=!0,Bi(this,i),e=i.L),e.L&amp;&amp;e.L.C||e.R&amp;&amp;e.R.C){e.L&amp;&amp;e.L.C||(e.R.C=!1,e.C=!0,Fi(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,Bi(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&amp;&amp;(t.C=!1)}}},t.geom.voronoi=function(t){var e=ri,r=ni,n=e,i=r,a=Vi;if(t)return o(t);function o(t){var e=new Array(t.length),r=a[0][0],n=a[0][1],i=a[1][0],o=a[1][1];return ji(s(t),a).cells.forEach((function(a,s){var l=a.edges,c=a.site;(e[s]=l.length?l.map((function(t){var e=t.start();return[e.x,e.y]})):c.x&gt;=r&amp;&amp;c.x&lt;=i&amp;&amp;c.y&gt;=n&amp;&amp;c.y&lt;=o?[[r,o],[i,o],[i,n],[r,n]]:[]).point=t[s]})),e}function s(t){return t.map((function(t,e){return{x:Math.round(n(t,e)/kt)*kt,y:Math.round(i(t,e)/kt)*kt,i:e}}))}return o.links=function(t){return ji(s(t)).edges.filter((function(t){return t.l&amp;&amp;t.r})).map((function(e){return{source:t[e.l.i],target:t[e.r.i]}}))},o.triangles=function(t){var e=[];return ji(s(t)).cells.forEach((function(r,n){for(var i,a,o,s,l=r.site,c=r.edges.sort(Mi),u=-1,f=c.length,h=c[f-1].edge,p=h.l===l?h.r:h.l;++u&lt;f;)h,i=p,p=(h=c[u].edge).l===l?h.r:h.l,n&lt;i.i&amp;&amp;n&lt;p.i&amp;&amp;(o=i,s=p,((a=l).x-s.x)*(o.y-a.y)-(a.x-o.x)*(s.y-a.y)&lt;0)&amp;&amp;e.push([t[n],t[i.i],t[p.i]])})),e},o.x=function(t){return arguments.length?(n=de(e=t),o):e},o.y=function(t){return arguments.length?(i=de(r=t),o):r},o.clipExtent=function(t){return arguments.length?(a=null==t?Vi:t,o):a===Vi?null:a},o.size=function(t){return arguments.length?o.clipExtent(t&amp;&amp;[[0,0],t]):a===Vi?null:a&amp;&amp;a[1]},o};var Vi=[[-1e6,-1e6],[1e6,1e6]];function qi(t){return t.x}function Hi(t){return t.y}function Gi(t,e,r,n,i,a){if(!t(e,r,n,i,a)){var o=.5*(r+i),s=.5*(n+a),l=e.nodes;l[0]&amp;&amp;Gi(t,l[0],r,n,o,s),l[1]&amp;&amp;Gi(t,l[1],o,n,i,s),l[2]&amp;&amp;Gi(t,l[2],r,s,o,a),l[3]&amp;&amp;Gi(t,l[3],o,s,i,a)}}function Yi(t,e,r,n,i,a,o){var s,l=1/0;return function t(c,u,f,h,p){if(!(u&gt;a||f&gt;o||h&lt;n||p&lt;i)){if(d=c.point){var d,g=e-c.x,m=r-c.y,v=g*g+m*m;if(v&lt;l){var y=Math.sqrt(l=v);n=e-y,i=r-y,a=e+y,o=r+y,s=d}}for(var x=c.nodes,b=.5*(u+h),_=.5*(f+p),w=(r&gt;=_)&lt;&lt;1|e&gt;=b,T=w+4;w&lt;T;++w)if(c=x[3&amp;w])switch(3&amp;w){case 0:t(c,u,f,b,_);break;case 1:t(c,b,f,h,_);break;case 2:t(c,u,_,b,p);break;case 3:t(c,b,_,h,p)}}}(t,n,i,a,o),s}function Wi(e,r){e=t.rgb(e),r=t.rgb(r);var n=e.r,i=e.g,a=e.b,o=r.r-n,s=r.g-i,l=r.b-a;return function(t){return&quot;#&quot;+se(Math.round(n+o*t))+se(Math.round(i+s*t))+se(Math.round(a+l*t))}}function Xi(t,e){var r,n={},i={};for(r in t)r in e?n[r]=$i(t[r],e[r]):i[r]=t[r];for(r in e)r in t||(i[r]=e[r]);return function(t){for(r in n)i[r]=n[r](t);return i}}function Zi(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Ji(t,e){var r,n,i,a=Ki.lastIndex=Qi.lastIndex=0,o=-1,s=[],l=[];for(t+=&quot;&quot;,e+=&quot;&quot;;(r=Ki.exec(t))&amp;&amp;(n=Qi.exec(e));)(i=n.index)&gt;a&amp;&amp;(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:Zi(r,n)})),a=Qi.lastIndex;return a&lt;e.length&amp;&amp;(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length&lt;2?l[0]?(e=l[0].x,function(t){return e(t)+&quot;&quot;}):function(){return e}:(e=l.length,function(t){for(var r,n=0;n&lt;e;++n)s[(r=l[n]).i]=r.x(t);return s.join(&quot;&quot;)})}t.geom.delaunay=function(e){return t.geom.voronoi().triangles(e)},t.geom.quadtree=function(t,e,r,n,i){var a,o=ri,s=ni;if(a=arguments.length)return o=qi,s=Hi,3===a&amp;&amp;(i=r,n=e,r=e=0),l(t);function l(t){var l,c,u,f,h,p,d,g,m,v=de(o),x=de(s);if(null!=e)p=e,d=r,g=n,m=i;else if(g=m=-(p=d=1/0),c=[],u=[],h=t.length,a)for(f=0;f&lt;h;++f)(l=t[f]).x&lt;p&amp;&amp;(p=l.x),l.y&lt;d&amp;&amp;(d=l.y),l.x&gt;g&amp;&amp;(g=l.x),l.y&gt;m&amp;&amp;(m=l.y),c.push(l.x),u.push(l.y);else for(f=0;f&lt;h;++f){var b=+v(l=t[f],f),_=+x(l,f);b&lt;p&amp;&amp;(p=b),_&lt;d&amp;&amp;(d=_),b&gt;g&amp;&amp;(g=b),_&gt;m&amp;&amp;(m=_),c.push(b),u.push(_)}var w=g-p,T=m-d;function k(t,e,r,n,i,a,o,s){if(!isNaN(r)&amp;&amp;!isNaN(n))if(t.leaf){var l=t.x,c=t.y;if(null!=l)if(y(l-r)+y(c-n)&lt;.01)M(t,e,r,n,i,a,o,s);else{var u=t.point;t.x=t.y=t.point=null,M(t,u,l,c,i,a,o,s),M(t,e,r,n,i,a,o,s)}else t.x=r,t.y=n,t.point=e}else M(t,e,r,n,i,a,o,s)}function M(t,e,r,n,i,a,o,s){var l=.5*(i+o),c=.5*(a+s),u=r&gt;=l,f=n&gt;=c,h=f&lt;&lt;1|u;t.leaf=!1,u?i=l:o=l,f?a=c:s=c,k(t=t.nodes[h]||(t.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null}),e,r,n,i,a,o,s)}w&gt;T?m=d+w:g=p+T;var A={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){k(A,t,+v(t,++f),+x(t,f),p,d,g,m)},visit:function(t){Gi(t,A,p,d,g,m)},find:function(t){return Yi(A,t[0],t[1],p,d,g,m)}};if(f=-1,null==e){for(;++f&lt;h;)k(A,t[f],c[f],u[f],p,d,g,m);--f}else t.forEach(A.add);return c=u=t=l=null,A}return l.x=function(t){return arguments.length?(o=t,l):o},l.y=function(t){return arguments.length?(s=t,l):s},l.extent=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=+t[0][0],r=+t[0][1],n=+t[1][0],i=+t[1][1]),l):null==e?null:[[e,r],[n,i]]},l.size=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=r=0,n=+t[0],i=+t[1]),l):null==e?null:[n-e,i-r]},l},t.interpolateRgb=Wi,t.interpolateObject=Xi,t.interpolateNumber=Zi,t.interpolateString=Ji;var Ki=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qi=new RegExp(Ki.source,&quot;g&quot;);function $i(e,r){for(var n,i=t.interpolators.length;--i&gt;=0&amp;&amp;!(n=t.interpolators[i](e,r)););return n}function ta(t,e){var r,n=[],i=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(r=0;r&lt;s;++r)n.push($i(t[r],e[r]));for(;r&lt;a;++r)i[r]=t[r];for(;r&lt;o;++r)i[r]=e[r];return function(t){for(r=0;r&lt;s;++r)i[r]=n[r](t);return i}}t.interpolate=$i,t.interpolators=[function(t,e){var r=typeof e;return(&quot;string&quot;===r?pe.has(e.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(e)?Wi:Ji:e instanceof Vt?Wi:Array.isArray(e)?ta:&quot;object&quot;===r&amp;&amp;isNaN(e)?Xi:Zi)(t,e)}],t.interpolateArray=ta;var ea=function(){return L},ra=t.map({linear:ea,poly:function(t){return function(e){return Math.pow(e,t)}},quad:function(){return sa},cubic:function(){return la},sin:function(){return ua},exp:function(){return fa},circle:function(){return ha},elastic:function(t,e){var r;arguments.length&lt;2&amp;&amp;(e=.45);arguments.length?r=e/St*Math.asin(1/t):(t=1,r=e/4);return function(n){return 1+t*Math.pow(2,-10*n)*Math.sin((n-r)*St/e)}},back:function(t){t||(t=1.70158);return function(e){return e*e*((t+1)*e-t)}},bounce:function(){return pa}}),na=t.map({in:L,out:aa,&quot;in-out&quot;:oa,&quot;out-in&quot;:function(t){return oa(aa(t))}});function ia(t){return function(e){return e&lt;=0?0:e&gt;=1?1:t(e)}}function aa(t){return function(e){return 1-t(1-e)}}function oa(t){return function(e){return.5*(e&lt;.5?t(2*e):2-t(2-2*e))}}function sa(t){return t*t}function la(t){return t*t*t}function ca(t){if(t&lt;=0)return 0;if(t&gt;=1)return 1;var e=t*t,r=e*t;return 4*(t&lt;.5?r:3*(t-e)+r-.75)}function ua(t){return 1-Math.cos(t*Ct)}function fa(t){return Math.pow(2,10*(t-1))}function ha(t){return 1-Math.sqrt(1-t*t)}function pa(t){return t&lt;1/2.75?7.5625*t*t:t&lt;2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t&lt;2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function da(t,e){return e-=t,function(r){return Math.round(t+e*r)}}function ga(t){var e,r,n,i=[t.a,t.b],a=[t.c,t.d],o=va(i),s=ma(i,a),l=va(((e=a)[0]+=(n=-s)*(r=i)[0],e[1]+=n*r[1],e))||0;i[0]*a[1]&lt;a[0]*i[1]&amp;&amp;(i[0]*=-1,i[1]*=-1,o*=-1,s*=-1),this.rotate=(o?Math.atan2(i[1],i[0]):Math.atan2(-a[0],a[1]))*It,this.translate=[t.e,t.f],this.scale=[o,l],this.skew=l?Math.atan2(s,l)*It:0}function ma(t,e){return t[0]*e[0]+t[1]*e[1]}function va(t){var e=Math.sqrt(ma(t,t));return e&amp;&amp;(t[0]/=e,t[1]/=e),e}t.ease=function(t){var e=t.indexOf(&quot;-&quot;),n=e&gt;=0?t.slice(0,e):t,i=e&gt;=0?t.slice(e+1):&quot;in&quot;;return n=ra.get(n)||ea,ia((i=na.get(i)||L)(n.apply(null,r.call(arguments,1))))},t.interpolateHcl=function(e,r){e=t.hcl(e),r=t.hcl(r);var n=e.h,i=e.c,a=e.l,o=r.h-n,s=r.c-i,l=r.l-a;isNaN(s)&amp;&amp;(s=0,i=isNaN(i)?r.c:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o&gt;180?o-=360:o&lt;-180&amp;&amp;(o+=360);return function(t){return Xt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateHsl=function(e,r){e=t.hsl(e),r=t.hsl(r);var n=e.h,i=e.s,a=e.l,o=r.h-n,s=r.s-i,l=r.l-a;isNaN(s)&amp;&amp;(s=0,i=isNaN(i)?r.s:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o&gt;180?o-=360:o&lt;-180&amp;&amp;(o+=360);return function(t){return Gt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateLab=function(e,r){e=t.lab(e),r=t.lab(r);var n=e.l,i=e.a,a=e.b,o=r.l-n,s=r.a-i,l=r.b-a;return function(t){return Qt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateRound=da,t.transform=function(e){var r=i.createElementNS(t.ns.prefix.svg,&quot;g&quot;);return(t.transform=function(t){if(null!=t){r.setAttribute(&quot;transform&quot;,t);var e=r.transform.baseVal.consolidate()}return new ga(e?e.matrix:ya)})(e)},ga.prototype.toString=function(){return&quot;translate(&quot;+this.translate+&quot;)rotate(&quot;+this.rotate+&quot;)skewX(&quot;+this.skew+&quot;)scale(&quot;+this.scale+&quot;)&quot;};var ya={a:1,b:0,c:0,d:1,e:0,f:0};function xa(t){return t.length?t.pop()+&quot;,&quot;:&quot;&quot;}function ba(e,r){var n=[],i=[];return e=t.transform(e),r=t.transform(r),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(&quot;translate(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);n.push({i:i-4,x:Zi(t[0],e[0])},{i:i-2,x:Zi(t[1],e[1])})}else(e[0]||e[1])&amp;&amp;r.push(&quot;translate(&quot;+e+&quot;)&quot;)}(e.translate,r.translate,n,i),function(t,e,r,n){t!==e?(t-e&gt;180?e+=360:e-t&gt;180&amp;&amp;(t+=360),n.push({i:r.push(xa(r)+&quot;rotate(&quot;,null,&quot;)&quot;)-2,x:Zi(t,e)})):e&amp;&amp;r.push(xa(r)+&quot;rotate(&quot;+e+&quot;)&quot;)}(e.rotate,r.rotate,n,i),function(t,e,r,n){t!==e?n.push({i:r.push(xa(r)+&quot;skewX(&quot;,null,&quot;)&quot;)-2,x:Zi(t,e)}):e&amp;&amp;r.push(xa(r)+&quot;skewX(&quot;+e+&quot;)&quot;)}(e.skew,r.skew,n,i),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(xa(r)+&quot;scale(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);n.push({i:i-4,x:Zi(t[0],e[0])},{i:i-2,x:Zi(t[1],e[1])})}else 1===e[0]&amp;&amp;1===e[1]||r.push(xa(r)+&quot;scale(&quot;+e+&quot;)&quot;)}(e.scale,r.scale,n,i),e=r=null,function(t){for(var e,r=-1,a=i.length;++r&lt;a;)n[(e=i[r]).i]=e.x(t);return n.join(&quot;&quot;)}}function _a(t,e){return e=(e-=t=+t)||1/e,function(r){return(r-t)/e}}function wa(t,e){return e=(e-=t=+t)||1/e,function(r){return Math.max(0,Math.min(1,(r-t)/e))}}function Ta(t){for(var e=t.source,r=t.target,n=function(t,e){if(t===e)return t;var r=ka(t),n=ka(e),i=r.pop(),a=n.pop(),o=null;for(;i===a;)o=i,i=r.pop(),a=n.pop();return o}(e,r),i=[e];e!==n;)e=e.parent,i.push(e);for(var a=i.length;r!==n;)i.splice(a,0,r),r=r.parent;return i}function ka(t){for(var e=[],r=t.parent;null!=r;)e.push(t),t=r,r=r.parent;return e.push(t),e}function Ma(t){t.fixed|=2}function Aa(t){t.fixed&amp;=-7}function Sa(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Ea(t){t.fixed&amp;=-5}t.interpolateTransform=ba,t.layout={},t.layout.bundle=function(){return function(t){for(var e=[],r=-1,n=t.length;++r&lt;n;)e.push(Ta(t[r]));return e}},t.layout.chord=function(){var e,r,n,i,a,o,s,l={},c=0;function u(){var l,u,h,p,d,g={},m=[],v=t.range(i),y=[];for(e=[],r=[],l=0,p=-1;++p&lt;i;){for(u=0,d=-1;++d&lt;i;)u+=n[p][d];m.push(u),y.push(t.range(i)),l+=u}for(a&amp;&amp;v.sort((function(t,e){return a(m[t],m[e])})),o&amp;&amp;y.forEach((function(t,e){t.sort((function(t,r){return o(n[e][t],n[e][r])}))})),l=(St-c*i)/l,u=0,p=-1;++p&lt;i;){for(h=u,d=-1;++d&lt;i;){var x=v[p],b=y[x][d],_=n[x][b],w=u,T=u+=_*l;g[x+&quot;-&quot;+b]={index:x,subindex:b,startAngle:w,endAngle:T,value:_}}r[x]={index:x,startAngle:h,endAngle:u,value:m[x]},u+=c}for(p=-1;++p&lt;i;)for(d=p-1;++d&lt;i;){var k=g[p+&quot;-&quot;+d],M=g[d+&quot;-&quot;+p];(k.value||M.value)&amp;&amp;e.push(k.value&lt;M.value?{source:M,target:k}:{source:k,target:M})}s&amp;&amp;f()}function f(){e.sort((function(t,e){return s((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)}))}return l.matrix=function(t){return arguments.length?(i=(n=t)&amp;&amp;n.length,e=r=null,l):n},l.padding=function(t){return arguments.length?(c=t,e=r=null,l):c},l.sortGroups=function(t){return arguments.length?(a=t,e=r=null,l):a},l.sortSubgroups=function(t){return arguments.length?(o=t,e=null,l):o},l.sortChords=function(t){return arguments.length?(s=t,e&amp;&amp;f(),l):s},l.chords=function(){return e||u(),e},l.groups=function(){return r||u(),r},l},t.layout.force=function(){var e,r,n,i,a,o,s={},l=t.dispatch(&quot;start&quot;,&quot;tick&quot;,&quot;end&quot;),c=[1,1],u=.9,f=Ca,h=La,p=-30,d=Ia,g=.1,m=.64,v=[],y=[];function x(t){return function(e,r,n,i){if(e.point!==t){var a=e.cx-t.x,o=e.cy-t.y,s=i-r,l=a*a+o*o;if(s*s/m&lt;l){if(l&lt;d){var c=e.charge/l;t.px-=a*c,t.py-=o*c}return!0}if(e.point&amp;&amp;l&amp;&amp;l&lt;d){c=e.pointCharge/l;t.px-=a*c,t.py-=o*c}}return!e.charge}}function b(e){e.px=t.event.x,e.py=t.event.y,s.resume()}return s.tick=function(){if((n*=.99)&lt;.005)return e=null,l.end({type:&quot;end&quot;,alpha:n=0}),!0;var r,s,f,h,d,m,b,_,w,T=v.length,k=y.length;for(s=0;s&lt;k;++s)h=(f=y[s]).source,(m=(_=(d=f.target).x-h.x)*_+(w=d.y-h.y)*w)&amp;&amp;(_*=m=n*a[s]*((m=Math.sqrt(m))-i[s])/m,w*=m,d.x-=_*(b=h.weight+d.weight?h.weight/(h.weight+d.weight):.5),d.y-=w*b,h.x+=_*(b=1-b),h.y+=w*b);if((b=n*g)&amp;&amp;(_=c[0]/2,w=c[1]/2,s=-1,b))for(;++s&lt;T;)(f=v[s]).x+=(_-f.x)*b,f.y+=(w-f.y)*b;if(p)for(!function t(e,r,n){var i=0,a=0;if(e.charge=0,!e.leaf)for(var o,s=e.nodes,l=s.length,c=-1;++c&lt;l;)null!=(o=s[c])&amp;&amp;(t(o,r,n),e.charge+=o.charge,i+=o.charge*o.cx,a+=o.charge*o.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var u=r*n[e.point.index];e.charge+=e.pointCharge=u,i+=u*e.point.x,a+=u*e.point.y}e.cx=i/e.charge,e.cy=a/e.charge}(r=t.geom.quadtree(v),n,o),s=-1;++s&lt;T;)(f=v[s]).fixed||r.visit(x(f));for(s=-1;++s&lt;T;)(f=v[s]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*u,f.y-=(f.py-(f.py=f.y))*u);l.tick({type:&quot;tick&quot;,alpha:n})},s.nodes=function(t){return arguments.length?(v=t,s):v},s.links=function(t){return arguments.length?(y=t,s):y},s.size=function(t){return arguments.length?(c=t,s):c},s.linkDistance=function(t){return arguments.length?(f=&quot;function&quot;==typeof t?t:+t,s):f},s.distance=s.linkDistance,s.linkStrength=function(t){return arguments.length?(h=&quot;function&quot;==typeof t?t:+t,s):h},s.friction=function(t){return arguments.length?(u=+t,s):u},s.charge=function(t){return arguments.length?(p=&quot;function&quot;==typeof t?t:+t,s):p},s.chargeDistance=function(t){return arguments.length?(d=t*t,s):Math.sqrt(d)},s.gravity=function(t){return arguments.length?(g=+t,s):g},s.theta=function(t){return arguments.length?(m=t*t,s):Math.sqrt(m)},s.alpha=function(t){return arguments.length?(t=+t,n?t&gt;0?n=t:(e.c=null,e.t=NaN,e=null,l.end({type:&quot;end&quot;,alpha:n=0})):t&gt;0&amp;&amp;(l.start({type:&quot;start&quot;,alpha:n=t}),e=we(s.tick)),s):n},s.start=function(){var t,e,r,n=v.length,l=y.length,u=c[0],d=c[1];for(t=0;t&lt;n;++t)(r=v[t]).index=t,r.weight=0;for(t=0;t&lt;l;++t)&quot;number&quot;==typeof(r=y[t]).source&amp;&amp;(r.source=v[r.source]),&quot;number&quot;==typeof r.target&amp;&amp;(r.target=v[r.target]),++r.source.weight,++r.target.weight;for(t=0;t&lt;n;++t)r=v[t],isNaN(r.x)&amp;&amp;(r.x=g(&quot;x&quot;,u)),isNaN(r.y)&amp;&amp;(r.y=g(&quot;y&quot;,d)),isNaN(r.px)&amp;&amp;(r.px=r.x),isNaN(r.py)&amp;&amp;(r.py=r.y);if(i=[],&quot;function&quot;==typeof f)for(t=0;t&lt;l;++t)i[t]=+f.call(this,y[t],t);else for(t=0;t&lt;l;++t)i[t]=f;if(a=[],&quot;function&quot;==typeof h)for(t=0;t&lt;l;++t)a[t]=+h.call(this,y[t],t);else for(t=0;t&lt;l;++t)a[t]=h;if(o=[],&quot;function&quot;==typeof p)for(t=0;t&lt;n;++t)o[t]=+p.call(this,v[t],t);else for(t=0;t&lt;n;++t)o[t]=p;function g(r,i){if(!e){for(e=new Array(n),c=0;c&lt;n;++c)e[c]=[];for(c=0;c&lt;l;++c){var a=y[c];e[a.source.index].push(a.target),e[a.target.index].push(a.source)}}for(var o,s=e[t],c=-1,u=s.length;++c&lt;u;)if(!isNaN(o=s[c][r]))return o;return Math.random()*i}return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){if(r||(r=t.behavior.drag().origin(L).on(&quot;dragstart.force&quot;,Ma).on(&quot;drag.force&quot;,b).on(&quot;dragend.force&quot;,Aa)),!arguments.length)return r;this.on(&quot;mouseover.force&quot;,Sa).on(&quot;mouseout.force&quot;,Ea).call(r)},t.rebind(s,l,&quot;on&quot;)};var Ca=20,La=1,Ia=1/0;function Pa(e,r){return t.rebind(e,r,&quot;sort&quot;,&quot;children&quot;,&quot;value&quot;),e.nodes=e,e.links=Ba,e}function za(t,e){for(var r=[t];null!=(t=r.pop());)if(e(t),(i=t.children)&amp;&amp;(n=i.length))for(var n,i;--n&gt;=0;)r.push(i[n])}function Oa(t,e){for(var r=[t],n=[];null!=(t=r.pop());)if(n.push(t),(a=t.children)&amp;&amp;(i=a.length))for(var i,a,o=-1;++o&lt;i;)r.push(a[o]);for(;null!=(t=n.pop());)e(t)}function Da(t){return t.children}function Ra(t){return t.value}function Fa(t,e){return e.value-t.value}function Ba(e){return t.merge(e.map((function(t){return(t.children||[]).map((function(e){return{source:t,target:e}}))})))}t.layout.hierarchy=function(){var t=Fa,e=Da,r=Ra;function n(i){var a,o=[i],s=[];for(i.depth=0;null!=(a=o.pop());)if(s.push(a),(c=e.call(n,a,a.depth))&amp;&amp;(l=c.length)){for(var l,c,u;--l&gt;=0;)o.push(u=c[l]),u.parent=a,u.depth=a.depth+1;r&amp;&amp;(a.value=0),a.children=c}else r&amp;&amp;(a.value=+r.call(n,a,a.depth)||0),delete a.children;return Oa(i,(function(e){var n,i;t&amp;&amp;(n=e.children)&amp;&amp;n.sort(t),r&amp;&amp;(i=e.parent)&amp;&amp;(i.value+=e.value)})),s}return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&amp;&amp;(za(t,(function(t){t.children&amp;&amp;(t.value=0)})),Oa(t,(function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&amp;&amp;(e.value+=t.value)}))),t},n},t.layout.partition=function(){var e=t.layout.hierarchy(),r=[1,1];function n(t,n){var i=e.call(this,t,n);return function t(e,r,n,i){var a=e.children;if(e.x=r,e.y=e.depth*i,e.dx=n,e.dy=i,a&amp;&amp;(o=a.length)){var o,s,l,c=-1;for(n=e.value?n/e.value:0;++c&lt;o;)t(s=a[c],r,l=s.value*n,i),r+=l}}(i[0],0,r[0],r[1]/function t(e){var r=e.children,n=0;if(r&amp;&amp;(i=r.length))for(var i,a=-1;++a&lt;i;)n=Math.max(n,t(r[a]));return 1+n}(i[0])),i}return n.size=function(t){return arguments.length?(r=t,n):r},Pa(n,e)},t.layout.pie=function(){var e=Number,r=Na,n=0,i=St,a=0;function o(s){var l,c=s.length,u=s.map((function(t,r){return+e.call(o,t,r)})),f=+(&quot;function&quot;==typeof n?n.apply(this,arguments):n),h=(&quot;function&quot;==typeof i?i.apply(this,arguments):i)-f,p=Math.min(Math.abs(h)/c,+(&quot;function&quot;==typeof a?a.apply(this,arguments):a)),d=p*(h&lt;0?-1:1),g=t.sum(u),m=g?(h-c*d)/g:0,v=t.range(c),y=[];return null!=r&amp;&amp;v.sort(r===Na?function(t,e){return u[e]-u[t]}:function(t,e){return r(s[t],s[e])}),v.forEach((function(t){y[t]={data:s[t],value:l=u[t],startAngle:f,endAngle:f+=l*m+d,padAngle:p}})),y}return o.value=function(t){return arguments.length?(e=t,o):e},o.sort=function(t){return arguments.length?(r=t,o):r},o.startAngle=function(t){return arguments.length?(n=t,o):n},o.endAngle=function(t){return arguments.length?(i=t,o):i},o.padAngle=function(t){return arguments.length?(a=t,o):a},o};var Na={};function ja(t){return t.x}function Ua(t){return t.y}function Va(t,e,r){t.y0=e,t.y=r}t.layout.stack=function(){var e=L,r=Ga,n=Ya,i=Va,a=ja,o=Ua;function s(l,c){if(!(p=l.length))return l;var u=l.map((function(t,r){return e.call(s,t,r)})),f=u.map((function(t){return t.map((function(t,e){return[a.call(s,t,e),o.call(s,t,e)]}))})),h=r.call(s,f,c);u=t.permute(u,h),f=t.permute(f,h);var p,d,g,m,v=n.call(s,f,c),y=u[0].length;for(g=0;g&lt;y;++g)for(i.call(s,u[0][g],m=v[g],f[0][g][1]),d=1;d&lt;p;++d)i.call(s,u[d][g],m+=f[d-1][g][1],f[d][g][1]);return l}return s.values=function(t){return arguments.length?(e=t,s):e},s.order=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:qa.get(t)||Ga,s):r},s.offset=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:Ha.get(t)||Ya,s):n},s.x=function(t){return arguments.length?(a=t,s):a},s.y=function(t){return arguments.length?(o=t,s):o},s.out=function(t){return arguments.length?(i=t,s):i},s};var qa=t.map({&quot;inside-out&quot;:function(e){var r,n,i=e.length,a=e.map(Wa),o=e.map(Xa),s=t.range(i).sort((function(t,e){return a[t]-a[e]})),l=0,c=0,u=[],f=[];for(r=0;r&lt;i;++r)n=s[r],l&lt;c?(l+=o[n],u.push(n)):(c+=o[n],f.push(n));return f.reverse().concat(u)},reverse:function(e){return t.range(e.length).reverse()},default:Ga}),Ha=t.map({silhouette:function(t){var e,r,n,i=t.length,a=t[0].length,o=[],s=0,l=[];for(r=0;r&lt;a;++r){for(e=0,n=0;e&lt;i;e++)n+=t[e][r][1];n&gt;s&amp;&amp;(s=n),o.push(n)}for(r=0;r&lt;a;++r)l[r]=(s-o[r])/2;return l},wiggle:function(t){var e,r,n,i,a,o,s,l,c,u=t.length,f=t[0],h=f.length,p=[];for(p[0]=l=c=0,r=1;r&lt;h;++r){for(e=0,i=0;e&lt;u;++e)i+=t[e][r][1];for(e=0,a=0,s=f[r][0]-f[r-1][0];e&lt;u;++e){for(n=0,o=(t[e][r][1]-t[e][r-1][1])/(2*s);n&lt;e;++n)o+=(t[n][r][1]-t[n][r-1][1])/s;a+=o*t[e][r][1]}p[r]=l-=i?a/i*s:0,l&lt;c&amp;&amp;(c=l)}for(r=0;r&lt;h;++r)p[r]-=c;return p},expand:function(t){var e,r,n,i=t.length,a=t[0].length,o=1/i,s=[];for(r=0;r&lt;a;++r){for(e=0,n=0;e&lt;i;e++)n+=t[e][r][1];if(n)for(e=0;e&lt;i;e++)t[e][r][1]/=n;else for(e=0;e&lt;i;e++)t[e][r][1]=o}for(r=0;r&lt;a;++r)s[r]=0;return s},zero:Ya});function Ga(e){return t.range(e.length)}function Ya(t){for(var e=-1,r=t[0].length,n=[];++e&lt;r;)n[e]=0;return n}function Wa(t){for(var e,r=1,n=0,i=t[0][1],a=t.length;r&lt;a;++r)(e=t[r][1])&gt;i&amp;&amp;(n=r,i=e);return n}function Xa(t){return t.reduce(Za,0)}function Za(t,e){return t+e[1]}function Ja(t,e){return Ka(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Ka(t,e){for(var r=-1,n=+t[0],i=(t[1]-n)/e,a=[];++r&lt;=e;)a[r]=i*r+n;return a}function Qa(e){return[t.min(e),t.max(e)]}function $a(t,e){return t.value-e.value}function to(t,e){var r=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=r,r._pack_prev=e}function eo(t,e){t._pack_next=e,e._pack_prev=t}function ro(t,e){var r=e.x-t.x,n=e.y-t.y,i=t.r+e.r;return.999*i*i&gt;r*r+n*n}function no(t){if((e=t.children)&amp;&amp;(l=e.length)){var e,r,n,i,a,o,s,l,c=1/0,u=-1/0,f=1/0,h=-1/0;if(e.forEach(io),(r=e[0]).x=-r.r,r.y=0,x(r),l&gt;1&amp;&amp;((n=e[1]).x=n.r,n.y=0,x(n),l&gt;2))for(oo(r,n,i=e[2]),x(i),to(r,i),r._pack_prev=i,to(i,n),n=r._pack_next,a=3;a&lt;l;a++){oo(r,n,i=e[a]);var p=0,d=1,g=1;for(o=n._pack_next;o!==n;o=o._pack_next,d++)if(ro(o,i)){p=1;break}if(1==p)for(s=r._pack_prev;s!==o._pack_prev&amp;&amp;!ro(s,i);s=s._pack_prev,g++);p?(d&lt;g||d==g&amp;&amp;n.r&lt;r.r?eo(r,n=o):eo(r=s,n),a--):(to(r,i),n=i,x(i))}var m=(c+u)/2,v=(f+h)/2,y=0;for(a=0;a&lt;l;a++)(i=e[a]).x-=m,i.y-=v,y=Math.max(y,i.r+Math.sqrt(i.x*i.x+i.y*i.y));t.r=y,e.forEach(ao)}function x(t){c=Math.min(t.x-t.r,c),u=Math.max(t.x+t.r,u),f=Math.min(t.y-t.r,f),h=Math.max(t.y+t.r,h)}}function io(t){t._pack_next=t._pack_prev=t}function ao(t){delete t._pack_next,delete t._pack_prev}function oo(t,e,r){var n=t.r+r.r,i=e.x-t.x,a=e.y-t.y;if(n&amp;&amp;(i||a)){var o=e.r+r.r,s=i*i+a*a,l=.5+((n*=n)-(o*=o))/(2*s),c=Math.sqrt(Math.max(0,2*o*(n+s)-(n-=s)*n-o*o))/(2*s);r.x=t.x+l*i+c*a,r.y=t.y+l*a-c*i}else r.x=t.x+n,r.y=t.y}function so(t,e){return t.parent==e.parent?1:2}function lo(t){var e=t.children;return e.length?e[0]:t.t}function co(t){var e,r=t.children;return(e=r.length)?r[e-1]:t.t}function uo(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function fo(t,e,r){return t.a.parent===e.parent?t.a:r}function ho(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function po(t,e){var r=t.x+e[3],n=t.y+e[0],i=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return i&lt;0&amp;&amp;(r+=i/2,i=0),a&lt;0&amp;&amp;(n+=a/2,a=0),{x:r,y:n,dx:i,dy:a}}function go(t){var e=t[0],r=t[t.length-1];return e&lt;r?[e,r]:[r,e]}function mo(t){return t.rangeExtent?t.rangeExtent():go(t.range())}function vo(t,e,r,n){var i=r(t[0],t[1]),a=n(e[0],e[1]);return function(t){return a(i(t))}}function yo(t,e){var r,n=0,i=t.length-1,a=t[n],o=t[i];return o&lt;a&amp;&amp;(r=n,n=i,i=r,r=a,a=o,o=r),t[n]=e.floor(a),t[i]=e.ceil(o),t}function xo(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:bo}t.layout.histogram=function(){var e=!0,r=Number,n=Qa,i=Ja;function a(a,o){for(var s,l,c=[],u=a.map(r,this),f=n.call(this,u,o),h=i.call(this,f,u,o),p=(o=-1,u.length),d=h.length-1,g=e?1:1/p;++o&lt;d;)(s=c[o]=[]).dx=h[o+1]-(s.x=h[o]),s.y=0;if(d&gt;0)for(o=-1;++o&lt;p;)(l=u[o])&gt;=f[0]&amp;&amp;l&lt;=f[1]&amp;&amp;((s=c[t.bisect(h,l,1,d)-1]).y+=g,s.push(a[o]));return c}return a.value=function(t){return arguments.length?(r=t,a):r},a.range=function(t){return arguments.length?(n=de(t),a):n},a.bins=function(t){return arguments.length?(i=&quot;number&quot;==typeof t?function(e){return Ka(e,t)}:de(t),a):i},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},t.layout.pack=function(){var e,r=t.layout.hierarchy().sort($a),n=0,i=[1,1];function a(t,a){var o=r.call(this,t,a),s=o[0],l=i[0],c=i[1],u=null==e?Math.sqrt:&quot;function&quot;==typeof e?e:function(){return e};if(s.x=s.y=0,Oa(s,(function(t){t.r=+u(t.value)})),Oa(s,no),n){var f=n*(e?1:Math.max(2*s.r/l,2*s.r/c))/2;Oa(s,(function(t){t.r+=f})),Oa(s,no),Oa(s,(function(t){t.r-=f}))}return function t(e,r,n,i){var a=e.children;if(e.x=r+=i*e.x,e.y=n+=i*e.y,e.r*=i,a)for(var o=-1,s=a.length;++o&lt;s;)t(a[o],r,n,i)}(s,l/2,c/2,e?1:1/Math.max(2*s.r/l,2*s.r/c)),o}return a.size=function(t){return arguments.length?(i=t,a):i},a.radius=function(t){return arguments.length?(e=null==t||&quot;function&quot;==typeof t?t:+t,a):e},a.padding=function(t){return arguments.length?(n=+t,a):n},Pa(a,r)},t.layout.tree=function(){var e=t.layout.hierarchy().sort(null).value(null),r=so,n=[1,1],i=null;function a(t,a){var c=e.call(this,t,a),u=c[0],f=function(t){var e,r={A:null,children:[t]},n=[r];for(;null!=(e=n.pop());)for(var i,a=e.children,o=0,s=a.length;o&lt;s;++o)n.push((a[o]=i={_:a[o],parent:e,children:(i=a[o].children)&amp;&amp;i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return r.children[0]}(u);if(Oa(f,o),f.parent.m=-f.z,za(f,s),i)za(u,l);else{var h=u,p=u,d=u;za(u,(function(t){t.x&lt;h.x&amp;&amp;(h=t),t.x&gt;p.x&amp;&amp;(p=t),t.depth&gt;d.depth&amp;&amp;(d=t)}));var g=r(h,p)/2-h.x,m=n[0]/(p.x+r(p,h)/2+g),v=n[1]/(d.depth||1);za(u,(function(t){t.x=(t.x+g)*m,t.y=t.depth*v}))}return c}function o(t){var e=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(e.length){!function(t){var e,r=0,n=0,i=t.children,a=i.length;for(;--a&gt;=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(t);var a=(e[0].z+e[e.length-1].z)/2;i?(t.z=i.z+r(t._,i._),t.m=t.z-a):t.z=a}else i&amp;&amp;(t.z=i.z+r(t._,i._));t.parent.A=function(t,e,n){if(e){for(var i,a=t,o=t,s=e,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=co(s),a=lo(a),s&amp;&amp;a;)l=lo(l),(o=co(o)).a=t,(i=s.z+f-a.z-c+r(s._,a._))&gt;0&amp;&amp;(uo(fo(s,t,n),t,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&amp;&amp;!co(o)&amp;&amp;(o.t=s,o.m+=f-u),a&amp;&amp;!lo(l)&amp;&amp;(l.t=a,l.m+=c-h,n=t)}return n}(t,i,t.parent.A||n[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function l(t){t.x*=n[0],t.y=t.depth*n[1]}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t)?l:null,a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null==(n=t)?null:l,a):i?n:null},Pa(a,e)},t.layout.cluster=function(){var e=t.layout.hierarchy().sort(null).value(null),r=so,n=[1,1],i=!1;function a(a,o){var s,l=e.call(this,a,o),c=l[0],u=0;Oa(c,(function(e){var n=e.children;n&amp;&amp;n.length?(e.x=function(t){return t.reduce((function(t,e){return t+e.x}),0)/t.length}(n),e.y=function(e){return 1+t.max(e,(function(t){return t.y}))}(n)):(e.x=s?u+=r(e,s):0,e.y=0,s=e)}));var f=function t(e){var r=e.children;return r&amp;&amp;r.length?t(r[0]):e}(c),h=function t(e){var r,n=e.children;return n&amp;&amp;(r=n.length)?t(n[r-1]):e}(c),p=f.x-r(f,h)/2,d=h.x+r(h,f)/2;return Oa(c,i?function(t){t.x=(t.x-c.x)*n[0],t.y=(c.y-t.y)*n[1]}:function(t){t.x=(t.x-p)/(d-p)*n[0],t.y=(1-(c.y?t.y/c.y:1))*n[1]}),l}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t),a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null!=(n=t),a):i?n:null},Pa(a,e)},t.layout.treemap=function(){var e,r=t.layout.hierarchy(),n=Math.round,i=[1,1],a=null,o=ho,s=!1,l=&quot;squarify&quot;,c=.5*(1+Math.sqrt(5));function u(t,e){for(var r,n,i=-1,a=t.length;++i&lt;a;)n=(r=t[i]).value*(e&lt;0?0:e),r.area=isNaN(n)||n&lt;=0?0:n}function f(t){var e=t.children;if(e&amp;&amp;e.length){var r,n,i,a=o(t),s=[],c=e.slice(),h=1/0,g=&quot;slice&quot;===l?a.dx:&quot;dice&quot;===l?a.dy:&quot;slice-dice&quot;===l?1&amp;t.depth?a.dy:a.dx:Math.min(a.dx,a.dy);for(u(c,a.dx*a.dy/t.value),s.area=0;(i=c.length)&gt;0;)s.push(r=c[i-1]),s.area+=r.area,&quot;squarify&quot;!==l||(n=p(s,g))&lt;=h?(c.pop(),h=n):(s.area-=s.pop().area,d(s,g,a,!1),g=Math.min(a.dx,a.dy),s.length=s.area=0,h=1/0);s.length&amp;&amp;(d(s,g,a,!0),s.length=s.area=0),e.forEach(f)}}function h(t){var e=t.children;if(e&amp;&amp;e.length){var r,n=o(t),i=e.slice(),a=[];for(u(i,n.dx*n.dy/t.value),a.area=0;r=i.pop();)a.push(r),a.area+=r.area,null!=r.z&amp;&amp;(d(a,r.z?n.dx:n.dy,n,!i.length),a.length=a.area=0);e.forEach(h)}}function p(t,e){for(var r,n=t.area,i=0,a=1/0,o=-1,s=t.length;++o&lt;s;)(r=t[o].area)&amp;&amp;(r&lt;a&amp;&amp;(a=r),r&gt;i&amp;&amp;(i=r));return e*=e,(n*=n)?Math.max(e*i*c/n,n/(e*a*c)):1/0}function d(t,e,r,i){var a,o=-1,s=t.length,l=r.x,c=r.y,u=e?n(t.area/e):0;if(e==r.dx){for((i||u&gt;r.dy)&amp;&amp;(u=r.dy);++o&lt;s;)(a=t[o]).x=l,a.y=c,a.dy=u,l+=a.dx=Math.min(r.x+r.dx-l,u?n(a.area/u):0);a.z=!0,a.dx+=r.x+r.dx-l,r.y+=u,r.dy-=u}else{for((i||u&gt;r.dx)&amp;&amp;(u=r.dx);++o&lt;s;)(a=t[o]).x=l,a.y=c,a.dx=u,c+=a.dy=Math.min(r.y+r.dy-c,u?n(a.area/u):0);a.z=!1,a.dy+=r.y+r.dy-c,r.x+=u,r.dx-=u}}function g(t){var n=e||r(t),a=n[0];return a.x=a.y=0,a.value?(a.dx=i[0],a.dy=i[1]):a.dx=a.dy=0,e&amp;&amp;r.revalue(a),u([a],a.dx*a.dy/a.value),(e?h:f)(a),s&amp;&amp;(e=n),n}return g.size=function(t){return arguments.length?(i=t,g):i},g.padding=function(t){if(!arguments.length)return a;function e(e){var r=t.call(g,e,e.depth);return null==r?ho(e):po(e,&quot;number&quot;==typeof r?[r,r,r,r]:r)}function r(e){return po(e,t)}var n;return o=null==(a=t)?ho:&quot;function&quot;==(n=typeof t)?e:&quot;number&quot;===n?(t=[t,t,t,t],r):r,g},g.round=function(t){return arguments.length?(n=t?Math.round:Number,g):n!=Number},g.sticky=function(t){return arguments.length?(s=t,e=null,g):s},g.ratio=function(t){return arguments.length?(c=t,g):c},g.mode=function(t){return arguments.length?(l=t+&quot;&quot;,g):l},Pa(g,r)},t.random={normal:function(t,e){var r=arguments.length;return r&lt;2&amp;&amp;(e=1),r&lt;1&amp;&amp;(t=0),function(){var r,n,i;do{i=(r=2*Math.random()-1)*r+(n=2*Math.random()-1)*n}while(!i||i&gt;1);return t+e*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=t.random.normal.apply(t,arguments);return function(){return Math.exp(e())}},bates:function(e){var r=t.random.irwinHall(e);return function(){return r()/e}},irwinHall:function(t){return function(){for(var e=0,r=0;r&lt;t;r++)e+=Math.random();return e}}},t.scale={};var bo={floor:L,ceil:L};function _o(e,r,n,i){var a=[],o=[],s=0,l=Math.min(e.length,r.length)-1;for(e[l]&lt;e[0]&amp;&amp;(e=e.slice().reverse(),r=r.slice().reverse());++s&lt;=l;)a.push(n(e[s-1],e[s])),o.push(i(r[s-1],r[s]));return function(r){var n=t.bisect(e,r,1,l)-1;return o[n](a[n](r))}}function wo(e,r){return t.rebind(e,r,&quot;range&quot;,&quot;rangeRound&quot;,&quot;interpolate&quot;,&quot;clamp&quot;)}function To(t,e){return yo(t,xo(ko(t,e)[2])),yo(t,xo(ko(t,e)[2])),t}function ko(t,e){null==e&amp;&amp;(e=10);var r=go(t),n=r[1]-r[0],i=Math.pow(10,Math.floor(Math.log(n/e)/Math.LN10)),a=e/n*i;return a&lt;=.15?i*=10:a&lt;=.35?i*=5:a&lt;=.75&amp;&amp;(i*=2),r[0]=Math.ceil(r[0]/i)*i,r[1]=Math.floor(r[1]/i)*i+.5*i,r[2]=i,r}function Mo(e,r){return t.range.apply(t,ko(e,r))}function Ao(e,r,n){var i=ko(e,r);if(n){var a=Ce.exec(n);if(a.shift(),&quot;s&quot;===a[8]){var o=t.formatPrefix(Math.max(y(i[0]),y(i[1])));return a[7]||(a[7]=&quot;.&quot;+Eo(o.scale(i[2]))),a[8]=&quot;f&quot;,n=t.format(a.join(&quot;&quot;)),function(t){return n(o.scale(t))+o.symbol}}a[7]||(a[7]=&quot;.&quot;+function(t,e){var r=Eo(e[2]);return t in So?Math.abs(r-Eo(Math.max(y(e[0]),y(e[1]))))+ +(&quot;e&quot;!==t):r-2*(&quot;%&quot;===t)}(a[8],i)),n=a.join(&quot;&quot;)}else n=&quot;,.&quot;+Eo(i[2])+&quot;f&quot;;return t.format(n)}t.scale.linear=function(){return function t(e,r,n,i){var a,o;function s(){var t=Math.min(e.length,r.length)&gt;2?_o:vo,s=i?wa:_a;return a=t(e,r,s,n),o=t(r,e,s,$i),l}function l(t){return a(t)}return l.invert=function(t){return o(t)},l.domain=function(t){return arguments.length?(e=t.map(Number),s()):e},l.range=function(t){return arguments.length?(r=t,s()):r},l.rangeRound=function(t){return l.range(t).interpolate(da)},l.clamp=function(t){return arguments.length?(i=t,s()):i},l.interpolate=function(t){return arguments.length?(n=t,s()):n},l.ticks=function(t){return Mo(e,t)},l.tickFormat=function(t,r){return Ao(e,t,r)},l.nice=function(t){return To(e,t),s()},l.copy=function(){return t(e,r,n,i)},s()}([0,1],[0,1],$i,!1)};var So={s:1,g:1,p:1,r:1,e:1};function Eo(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}t.scale.log=function(){return function e(r,n,i,a){function o(t){return(i?Math.log(t&lt;0?0:t):-Math.log(t&gt;0?0:-t))/Math.log(n)}function s(t){return i?Math.pow(n,t):-Math.pow(n,-t)}function l(t){return r(o(t))}return l.invert=function(t){return s(r.invert(t))},l.domain=function(t){return arguments.length?(i=t[0]&gt;=0,r.domain((a=t.map(Number)).map(o)),l):a},l.base=function(t){return arguments.length?(n=+t,r.domain(a.map(o)),l):n},l.nice=function(){var t=yo(a.map(o),i?Math:Lo);return r.domain(t),a=t.map(s),l},l.ticks=function(){var t=go(a),e=[],r=t[0],l=t[1],c=Math.floor(o(r)),u=Math.ceil(o(l)),f=n%1?2:n;if(isFinite(u-c)){if(i){for(;c&lt;u;c++)for(var h=1;h&lt;f;h++)e.push(s(c)*h);e.push(s(c))}else for(e.push(s(c));c++&lt;u;)for(h=f-1;h&gt;0;h--)e.push(s(c)*h);for(c=0;e[c]&lt;r;c++);for(u=e.length;e[u-1]&gt;l;u--);e=e.slice(c,u)}return e},l.tickFormat=function(e,r){if(!arguments.length)return Co;arguments.length&lt;2?r=Co:&quot;function&quot;!=typeof r&amp;&amp;(r=t.format(r));var i=Math.max(1,n*e/l.ticks().length);return function(t){var e=t/s(Math.round(o(t)));return e*n&lt;n-.5&amp;&amp;(e*=n),e&lt;=i?r(t):&quot;&quot;}},l.copy=function(){return e(r.copy(),n,i,a)},wo(l,r)}(t.scale.linear().domain([0,1]),10,!0,[1,10])};var Co=t.format(&quot;.0e&quot;),Lo={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function Io(t){return function(e){return e&lt;0?-Math.pow(-e,t):Math.pow(e,t)}}t.scale.pow=function(){return function t(e,r,n){var i=Io(r),a=Io(1/r);function o(t){return e(i(t))}return o.invert=function(t){return a(e.invert(t))},o.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(i)),o):n},o.ticks=function(t){return Mo(n,t)},o.tickFormat=function(t,e){return Ao(n,t,e)},o.nice=function(t){return o.domain(To(n,t))},o.exponent=function(t){return arguments.length?(i=Io(r=t),a=Io(1/r),e.domain(n.map(i)),o):r},o.copy=function(){return t(e.copy(),r,n)},wo(o,e)}(t.scale.linear(),1,[0,1])},t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return function e(r,n){var i,a,o;function s(t){return a[((i.get(t)||(&quot;range&quot;===n.t?i.set(t,r.push(t)):NaN))-1)%a.length]}function l(e,n){return t.range(r.length).map((function(t){return e+n*t}))}return s.domain=function(t){if(!arguments.length)return r;r=[],i=new _;for(var e,a=-1,o=t.length;++a&lt;o;)i.has(e=t[a])||i.set(e,r.push(e));return s[n.t].apply(s,n.a)},s.range=function(t){return arguments.length?(a=t,o=0,n={t:&quot;range&quot;,a:arguments},s):a},s.rangePoints=function(t,e){arguments.length&lt;2&amp;&amp;(e=0);var i=t[0],c=t[1],u=r.length&lt;2?(i=(i+c)/2,0):(c-i)/(r.length-1+e);return a=l(i+u*e/2,u),o=0,n={t:&quot;rangePoints&quot;,a:arguments},s},s.rangeRoundPoints=function(t,e){arguments.length&lt;2&amp;&amp;(e=0);var i=t[0],c=t[1],u=r.length&lt;2?(i=c=Math.round((i+c)/2),0):(c-i)/(r.length-1+e)|0;return a=l(i+Math.round(u*e/2+(c-i-(r.length-1+e)*u)/2),u),o=0,n={t:&quot;rangeRoundPoints&quot;,a:arguments},s},s.rangeBands=function(t,e,i){arguments.length&lt;2&amp;&amp;(e=0),arguments.length&lt;3&amp;&amp;(i=e);var c=t[1]&lt;t[0],u=t[c-0],f=t[1-c],h=(f-u)/(r.length-e+2*i);return a=l(u+h*i,h),c&amp;&amp;a.reverse(),o=h*(1-e),n={t:&quot;rangeBands&quot;,a:arguments},s},s.rangeRoundBands=function(t,e,i){arguments.length&lt;2&amp;&amp;(e=0),arguments.length&lt;3&amp;&amp;(i=e);var c=t[1]&lt;t[0],u=t[c-0],f=t[1-c],h=Math.floor((f-u)/(r.length-e+2*i));return a=l(u+Math.round((f-u-(r.length-e)*h)/2),h),c&amp;&amp;a.reverse(),o=Math.round(h*(1-e)),n={t:&quot;rangeRoundBands&quot;,a:arguments},s},s.rangeBand=function(){return o},s.rangeExtent=function(){return go(n.a[0])},s.copy=function(){return e(r,n)},s.domain(r)}([],{t:&quot;range&quot;,a:[[]]})},t.scale.category10=function(){return t.scale.ordinal().range(Po)},t.scale.category20=function(){return t.scale.ordinal().range(zo)},t.scale.category20b=function(){return t.scale.ordinal().range(Oo)},t.scale.category20c=function(){return t.scale.ordinal().range(Do)};var Po=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(ae),zo=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(ae),Oo=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(ae),Do=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(ae);function Ro(){return 0}t.scale.quantile=function(){return function e(r,n){var i;function a(){var e=0,a=n.length;for(i=[];++e&lt;a;)i[e-1]=t.quantile(r,e/a);return o}function o(e){if(!isNaN(e=+e))return n[t.bisect(i,e)]}return o.domain=function(t){return arguments.length?(r=t.map(p).filter(d).sort(h),a()):r},o.range=function(t){return arguments.length?(n=t,a()):n},o.quantiles=function(){return i},o.invertExtent=function(t){return(t=n.indexOf(t))&lt;0?[NaN,NaN]:[t&gt;0?i[t-1]:r[0],t&lt;i.length?i[t]:r[r.length-1]]},o.copy=function(){return e(r,n)},a()}([],[])},t.scale.quantize=function(){return function t(e,r,n){var i,a;function o(t){return n[Math.max(0,Math.min(a,Math.floor(i*(t-e))))]}function s(){return i=n.length/(r-e),a=n.length-1,o}return o.domain=function(t){return arguments.length?(e=+t[0],r=+t[t.length-1],s()):[e,r]},o.range=function(t){return arguments.length?(n=t,s()):n},o.invertExtent=function(t){return[t=(t=n.indexOf(t))&lt;0?NaN:t/i+e,t+1/i]},o.copy=function(){return t(e,r,n)},s()}(0,1,[0,1])},t.scale.threshold=function(){return function e(r,n){function i(e){if(e&lt;=e)return n[t.bisect(r,e)]}return i.domain=function(t){return arguments.length?(r=t,i):r},i.range=function(t){return arguments.length?(n=t,i):n},i.invertExtent=function(t){return t=n.indexOf(t),[r[t-1],r[t]]},i.copy=function(){return e(r,n)},i}([.5],[0,1])},t.scale.identity=function(){return function t(e){function r(t){return+t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=t.map(r),r):e},r.ticks=function(t){return Mo(e,t)},r.tickFormat=function(t,r){return Ao(e,t,r)},r.copy=function(){return t(e)},r}([0,1])},t.svg={},t.svg.arc=function(){var t=Bo,e=No,r=Ro,n=Fo,i=jo,a=Uo,o=Vo;function s(){var s=Math.max(0,+t.apply(this,arguments)),c=Math.max(0,+e.apply(this,arguments)),u=i.apply(this,arguments)-Ct,f=a.apply(this,arguments)-Ct,h=Math.abs(f-u),p=u&gt;f?0:1;if(c&lt;s&amp;&amp;(d=c,c=s,s=d),h&gt;=Et)return l(c,p)+(s?l(s,1-p):&quot;&quot;)+&quot;Z&quot;;var d,g,m,v,y,x,b,_,w,T,k,M,A=0,S=0,E=[];if((v=(+o.apply(this,arguments)||0)/2)&amp;&amp;(m=n===Fo?Math.sqrt(s*s+c*c):+n.apply(this,arguments),p||(S*=-1),c&amp;&amp;(S=Dt(m/c*Math.sin(v))),s&amp;&amp;(A=Dt(m/s*Math.sin(v)))),c){y=c*Math.cos(u+S),x=c*Math.sin(u+S),b=c*Math.cos(f-S),_=c*Math.sin(f-S);var C=Math.abs(f-u-2*S)&lt;=At?0:1;if(S&amp;&amp;qo(y,x,b,_)===p^C){var L=(u+f)/2;y=c*Math.cos(L),x=c*Math.sin(L),b=_=null}}else y=x=0;if(s){w=s*Math.cos(f-A),T=s*Math.sin(f-A),k=s*Math.cos(u+A),M=s*Math.sin(u+A);var I=Math.abs(u-f+2*A)&lt;=At?0:1;if(A&amp;&amp;qo(w,T,k,M)===1-p^I){var P=(u+f)/2;w=s*Math.cos(P),T=s*Math.sin(P),k=M=null}}else w=T=0;if(h&gt;kt&amp;&amp;(d=Math.min(Math.abs(c-s)/2,+r.apply(this,arguments)))&gt;.001){g=s&lt;c^p?0:1;var z=d,O=d;if(h&lt;At){var D=null==k?[w,T]:null==b?[y,x]:li([y,x],[k,M],[b,_],[w,T]),R=y-D[0],F=x-D[1],B=b-D[0],N=_-D[1],j=1/Math.sin(Math.acos((R*B+F*N)/(Math.sqrt(R*R+F*F)*Math.sqrt(B*B+N*N)))/2),U=Math.sqrt(D[0]*D[0]+D[1]*D[1]);O=Math.min(d,(s-U)/(j-1)),z=Math.min(d,(c-U)/(j+1))}if(null!=b){var V=Ho(null==k?[w,T]:[k,M],[y,x],c,z,p),q=Ho([b,_],[w,T],c,z,p);d===z?E.push(&quot;M&quot;,V[0],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,g,&quot; &quot;,V[1],&quot;A&quot;,c,&quot;,&quot;,c,&quot; 0 &quot;,1-p^qo(V[1][0],V[1][1],q[1][0],q[1][1]),&quot;,&quot;,p,&quot; &quot;,q[1],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,g,&quot; &quot;,q[0]):E.push(&quot;M&quot;,V[0],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 1,&quot;,g,&quot; &quot;,q[0])}else E.push(&quot;M&quot;,y,&quot;,&quot;,x);if(null!=k){var H=Ho([y,x],[k,M],s,-O,p),G=Ho([w,T],null==b?[y,x]:[b,_],s,-O,p);d===O?E.push(&quot;L&quot;,G[0],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,G[1],&quot;A&quot;,s,&quot;,&quot;,s,&quot; 0 &quot;,p^qo(G[1][0],G[1][1],H[1][0],H[1][1]),&quot;,&quot;,1-p,&quot; &quot;,H[1],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,H[0]):E.push(&quot;L&quot;,G[0],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,H[0])}else E.push(&quot;L&quot;,w,&quot;,&quot;,T)}else E.push(&quot;M&quot;,y,&quot;,&quot;,x),null!=b&amp;&amp;E.push(&quot;A&quot;,c,&quot;,&quot;,c,&quot; 0 &quot;,C,&quot;,&quot;,p,&quot; &quot;,b,&quot;,&quot;,_),E.push(&quot;L&quot;,w,&quot;,&quot;,T),null!=k&amp;&amp;E.push(&quot;A&quot;,s,&quot;,&quot;,s,&quot; 0 &quot;,I,&quot;,&quot;,1-p,&quot; &quot;,k,&quot;,&quot;,M);return E.push(&quot;Z&quot;),E.join(&quot;&quot;)}function l(t,e){return&quot;M0,&quot;+t+&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 1,&quot;+e+&quot; 0,&quot;+-t+&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 1,&quot;+e+&quot; 0,&quot;+t}return s.innerRadius=function(e){return arguments.length?(t=de(e),s):t},s.outerRadius=function(t){return arguments.length?(e=de(t),s):e},s.cornerRadius=function(t){return arguments.length?(r=de(t),s):r},s.padRadius=function(t){return arguments.length?(n=t==Fo?Fo:de(t),s):n},s.startAngle=function(t){return arguments.length?(i=de(t),s):i},s.endAngle=function(t){return arguments.length?(a=de(t),s):a},s.padAngle=function(t){return arguments.length?(o=de(t),s):o},s.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Ct;return[Math.cos(n)*r,Math.sin(n)*r]},s};var Fo=&quot;auto&quot;;function Bo(t){return t.innerRadius}function No(t){return t.outerRadius}function jo(t){return t.startAngle}function Uo(t){return t.endAngle}function Vo(t){return t&amp;&amp;t.padAngle}function qo(t,e,r,n){return(t-r)*e-(e-n)*t&gt;0?0:1}function Ho(t,e,r,n,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?n:-n)/Math.sqrt(a*a+o*o),l=s*o,c=-s*a,u=t[0]+l,f=t[1]+c,h=e[0]+l,p=e[1]+c,d=(u+h)/2,g=(f+p)/2,m=h-u,v=p-f,y=m*m+v*v,x=r-n,b=u*p-h*f,_=(v&lt;0?-1:1)*Math.sqrt(Math.max(0,x*x*y-b*b)),w=(b*v-m*_)/y,T=(-b*m-v*_)/y,k=(b*v+m*_)/y,M=(-b*m+v*_)/y,A=w-d,S=T-g,E=k-d,C=M-g;return A*A+S*S&gt;E*E+C*C&amp;&amp;(w=k,T=M),[[w-l,T-c],[w*r/x,T*r/x]]}function Go(t){var e=ri,r=ni,n=Yr,i=Wo,a=i.key,o=.7;function s(a){var s,l=[],c=[],u=-1,f=a.length,h=de(e),p=de(r);function d(){l.push(&quot;M&quot;,i(t(c),o))}for(;++u&lt;f;)n.call(this,s=a[u],u)?c.push([+h.call(this,s,u),+p.call(this,s,u)]):c.length&amp;&amp;(d(),c=[]);return c.length&amp;&amp;d(),l.length?l.join(&quot;&quot;):null}return s.x=function(t){return arguments.length?(e=t,s):e},s.y=function(t){return arguments.length?(r=t,s):r},s.defined=function(t){return arguments.length?(n=t,s):n},s.interpolate=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?i=t:(i=Yo.get(t)||Wo).key,s):a},s.tension=function(t){return arguments.length?(o=t,s):o},s}t.svg.line=function(){return Go(L)};var Yo=t.map({linear:Wo,&quot;linear-closed&quot;:Xo,step:function(t){var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];for(;++e&lt;r;)i.push(&quot;H&quot;,(n[0]+(n=t[e])[0])/2,&quot;V&quot;,n[1]);r&gt;1&amp;&amp;i.push(&quot;H&quot;,n[0]);return i.join(&quot;&quot;)},&quot;step-before&quot;:Zo,&quot;step-after&quot;:Jo,basis:$o,&quot;basis-open&quot;:function(t){if(t.length&lt;4)return Wo(t);var e,r=[],n=-1,i=t.length,a=[0],o=[0];for(;++n&lt;3;)e=t[n],a.push(e[0]),o.push(e[1]);r.push(ts(ns,a)+&quot;,&quot;+ts(ns,o)),--n;for(;++n&lt;i;)e=t[n],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),is(r,a,o);return r.join(&quot;&quot;)},&quot;basis-closed&quot;:function(t){var e,r,n=-1,i=t.length,a=i+4,o=[],s=[];for(;++n&lt;4;)r=t[n%i],o.push(r[0]),s.push(r[1]);e=[ts(ns,o),&quot;,&quot;,ts(ns,s)],--n;for(;++n&lt;a;)r=t[n%i],o.shift(),o.push(r[0]),s.shift(),s.push(r[1]),is(e,o,s);return e.join(&quot;&quot;)},bundle:function(t,e){var r=t.length-1;if(r)for(var n,i,a=t[0][0],o=t[0][1],s=t[r][0]-a,l=t[r][1]-o,c=-1;++c&lt;=r;)n=t[c],i=c/r,n[0]=e*n[0]+(1-e)*(a+i*s),n[1]=e*n[1]+(1-e)*(o+i*l);return $o(t)},cardinal:function(t,e){return t.length&lt;3?Wo(t):t[0]+Ko(t,Qo(t,e))},&quot;cardinal-open&quot;:function(t,e){return t.length&lt;4?Wo(t):t[1]+Ko(t.slice(1,-1),Qo(t,e))},&quot;cardinal-closed&quot;:function(t,e){return t.length&lt;3?Xo(t):t[0]+Ko((t.push(t[0]),t),Qo([t[t.length-2]].concat(t,[t[1]]),e))},monotone:function(t){return t.length&lt;3?Wo(t):t[0]+Ko(t,function(t){var e,r,n,i,a=[],o=function(t){var e=0,r=t.length-1,n=[],i=t[0],a=t[1],o=n[0]=as(i,a);for(;++e&lt;r;)n[e]=(o+(o=as(i=a,a=t[e+1])))/2;return n[e]=o,n}(t),s=-1,l=t.length-1;for(;++s&lt;l;)e=as(t[s],t[s+1]),y(e)&lt;kt?o[s]=o[s+1]=0:(r=o[s]/e,n=o[s+1]/e,(i=r*r+n*n)&gt;9&amp;&amp;(i=3*e/Math.sqrt(i),o[s]=i*r,o[s+1]=i*n));s=-1;for(;++s&lt;=l;)i=(t[Math.min(l,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}(t))}});function Wo(t){return t.length&gt;1?t.join(&quot;L&quot;):t+&quot;Z&quot;}function Xo(t){return t.join(&quot;L&quot;)+&quot;Z&quot;}function Zo(t){for(var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];++e&lt;r;)i.push(&quot;V&quot;,(n=t[e])[1],&quot;H&quot;,n[0]);return i.join(&quot;&quot;)}function Jo(t){for(var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];++e&lt;r;)i.push(&quot;H&quot;,(n=t[e])[0],&quot;V&quot;,n[1]);return i.join(&quot;&quot;)}function Ko(t,e){if(e.length&lt;1||t.length!=e.length&amp;&amp;t.length!=e.length+2)return Wo(t);var r=t.length!=e.length,n=&quot;&quot;,i=t[0],a=t[1],o=e[0],s=o,l=1;if(r&amp;&amp;(n+=&quot;Q&quot;+(a[0]-2*o[0]/3)+&quot;,&quot;+(a[1]-2*o[1]/3)+&quot;,&quot;+a[0]+&quot;,&quot;+a[1],i=t[1],l=2),e.length&gt;1){s=e[1],a=t[l],l++,n+=&quot;C&quot;+(i[0]+o[0])+&quot;,&quot;+(i[1]+o[1])+&quot;,&quot;+(a[0]-s[0])+&quot;,&quot;+(a[1]-s[1])+&quot;,&quot;+a[0]+&quot;,&quot;+a[1];for(var c=2;c&lt;e.length;c++,l++)a=t[l],s=e[c],n+=&quot;S&quot;+(a[0]-s[0])+&quot;,&quot;+(a[1]-s[1])+&quot;,&quot;+a[0]+&quot;,&quot;+a[1]}if(r){var u=t[l];n+=&quot;Q&quot;+(a[0]+2*s[0]/3)+&quot;,&quot;+(a[1]+2*s[1]/3)+&quot;,&quot;+u[0]+&quot;,&quot;+u[1]}return n}function Qo(t,e){for(var r,n=[],i=(1-e)/2,a=t[0],o=t[1],s=1,l=t.length;++s&lt;l;)r=a,a=o,o=t[s],n.push([i*(o[0]-r[0]),i*(o[1]-r[1])]);return n}function $o(t){if(t.length&lt;3)return Wo(t);var e=1,r=t.length,n=t[0],i=n[0],a=n[1],o=[i,i,i,(n=t[1])[0]],s=[a,a,a,n[1]],l=[i,&quot;,&quot;,a,&quot;L&quot;,ts(ns,o),&quot;,&quot;,ts(ns,s)];for(t.push(t[r-1]);++e&lt;=r;)n=t[e],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),is(l,o,s);return t.pop(),l.push(&quot;L&quot;,n),l.join(&quot;&quot;)}function ts(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}Yo.forEach((function(t,e){e.key=t,e.closed=/-closed$/.test(t)}));var es=[0,2/3,1/3,0],rs=[0,1/3,2/3,0],ns=[0,1/6,2/3,1/6];function is(t,e,r){t.push(&quot;C&quot;,ts(es,e),&quot;,&quot;,ts(es,r),&quot;,&quot;,ts(rs,e),&quot;,&quot;,ts(rs,r),&quot;,&quot;,ts(ns,e),&quot;,&quot;,ts(ns,r))}function as(t,e){return(e[1]-t[1])/(e[0]-t[0])}function os(t){for(var e,r,n,i=-1,a=t.length;++i&lt;a;)r=(e=t[i])[0],n=e[1]-Ct,e[0]=r*Math.cos(n),e[1]=r*Math.sin(n);return t}function ss(t){var e=ri,r=ri,n=0,i=ni,a=Yr,o=Wo,s=o.key,l=o,c=&quot;L&quot;,u=.7;function f(s){var f,h,p,d=[],g=[],m=[],v=-1,y=s.length,x=de(e),b=de(n),_=e===r?function(){return h}:de(r),w=n===i?function(){return p}:de(i);function T(){d.push(&quot;M&quot;,o(t(m),u),c,l(t(g.reverse()),u),&quot;Z&quot;)}for(;++v&lt;y;)a.call(this,f=s[v],v)?(g.push([h=+x.call(this,f,v),p=+b.call(this,f,v)]),m.push([+_.call(this,f,v),+w.call(this,f,v)])):g.length&amp;&amp;(T(),g=[],m=[]);return g.length&amp;&amp;T(),d.length?d.join(&quot;&quot;):null}return f.x=function(t){return arguments.length?(e=r=t,f):r},f.x0=function(t){return arguments.length?(e=t,f):e},f.x1=function(t){return arguments.length?(r=t,f):r},f.y=function(t){return arguments.length?(n=i=t,f):i},f.y0=function(t){return arguments.length?(n=t,f):n},f.y1=function(t){return arguments.length?(i=t,f):i},f.defined=function(t){return arguments.length?(a=t,f):a},f.interpolate=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?o=t:(o=Yo.get(t)||Wo).key,l=o.reverse||o,c=o.closed?&quot;M&quot;:&quot;L&quot;,f):s},f.tension=function(t){return arguments.length?(u=t,f):u},f}function ls(t){return t.radius}function cs(t){return[t.x,t.y]}function us(t){return function(){var e=t.apply(this,arguments),r=e[0],n=e[1]-Ct;return[r*Math.cos(n),r*Math.sin(n)]}}function fs(){return 64}function hs(){return&quot;circle&quot;}function ps(t){var e=Math.sqrt(t/At);return&quot;M0,&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,&quot;+-e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,&quot;+e+&quot;Z&quot;}t.svg.line.radial=function(){var t=Go(os);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},Zo.reverse=Jo,Jo.reverse=Zo,t.svg.area=function(){return ss(L)},t.svg.area.radial=function(){var t=ss(os);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},t.svg.chord=function(){var t=Vn,e=qn,r=ls,n=jo,i=Uo;function a(r,n){var i,a,c=o(this,t,r,n),u=o(this,e,r,n);return&quot;M&quot;+c.p0+s(c.r,c.p1,c.a1-c.a0)+(a=u,((i=c).a0==a.a0&amp;&amp;i.a1==a.a1?l(c.r,c.p1,c.r,c.p0):l(c.r,c.p1,u.r,u.p0)+s(u.r,u.p1,u.a1-u.a0)+l(u.r,u.p1,c.r,c.p0))+&quot;Z&quot;)}function o(t,e,a,o){var s=e.call(t,a,o),l=r.call(t,s,o),c=n.call(t,s,o)-Ct,u=i.call(t,s,o)-Ct;return{r:l,a0:c,a1:u,p0:[l*Math.cos(c),l*Math.sin(c)],p1:[l*Math.cos(u),l*Math.sin(u)]}}function s(t,e,r){return&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 &quot;+ +(r&gt;At)+&quot;,1 &quot;+e}function l(t,e,r,n){return&quot;Q 0,0 &quot;+n}return a.radius=function(t){return arguments.length?(r=de(t),a):r},a.source=function(e){return arguments.length?(t=de(e),a):t},a.target=function(t){return arguments.length?(e=de(t),a):e},a.startAngle=function(t){return arguments.length?(n=de(t),a):n},a.endAngle=function(t){return arguments.length?(i=de(t),a):i},a},t.svg.diagonal=function(){var t=Vn,e=qn,r=cs;function n(n,i){var a=t.call(this,n,i),o=e.call(this,n,i),s=(a.y+o.y)/2,l=[a,{x:a.x,y:s},{x:o.x,y:s},o];return&quot;M&quot;+(l=l.map(r))[0]+&quot;C&quot;+l[1]+&quot; &quot;+l[2]+&quot; &quot;+l[3]}return n.source=function(e){return arguments.length?(t=de(e),n):t},n.target=function(t){return arguments.length?(e=de(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},t.svg.diagonal.radial=function(){var e=t.svg.diagonal(),r=cs,n=e.projection;return e.projection=function(t){return arguments.length?n(us(r=t)):r},e},t.svg.symbol=function(){var t=hs,e=fs;function r(r,n){return(ds.get(t.call(this,r,n))||ps)(e.call(this,r,n))}return r.type=function(e){return arguments.length?(t=de(e),r):t},r.size=function(t){return arguments.length?(e=de(t),r):e},r};var ds=t.map({circle:ps,cross:function(t){var e=Math.sqrt(t/5)/2;return&quot;M&quot;+-3*e+&quot;,&quot;+-e+&quot;H&quot;+-e+&quot;V&quot;+-3*e+&quot;H&quot;+e+&quot;V&quot;+-e+&quot;H&quot;+3*e+&quot;V&quot;+e+&quot;H&quot;+e+&quot;V&quot;+3*e+&quot;H&quot;+-e+&quot;V&quot;+e+&quot;H&quot;+-3*e+&quot;Z&quot;},diamond:function(t){var e=Math.sqrt(t/(2*ms)),r=e*ms;return&quot;M0,&quot;+-e+&quot;L&quot;+r+&quot;,0 0,&quot;+e+&quot; &quot;+-r+&quot;,0Z&quot;},square:function(t){var e=Math.sqrt(t)/2;return&quot;M&quot;+-e+&quot;,&quot;+-e+&quot;L&quot;+e+&quot;,&quot;+-e+&quot; &quot;+e+&quot;,&quot;+e+&quot; &quot;+-e+&quot;,&quot;+e+&quot;Z&quot;},&quot;triangle-down&quot;:function(t){var e=Math.sqrt(t/gs),r=e*gs/2;return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,&quot;+-r+&quot; &quot;+-e+&quot;,&quot;+-r+&quot;Z&quot;},&quot;triangle-up&quot;:function(t){var e=Math.sqrt(t/gs),r=e*gs/2;return&quot;M0,&quot;+-r+&quot;L&quot;+e+&quot;,&quot;+r+&quot; &quot;+-e+&quot;,&quot;+r+&quot;Z&quot;}});t.svg.symbolTypes=ds.keys();var gs=Math.sqrt(3),ms=Math.tan(30*Lt);Y.transition=function(t){for(var e,r,n=bs||++Ts,i=As(t),a=[],o=_s||{time:Date.now(),ease:ca,delay:0,duration:250},s=-1,l=this.length;++s&lt;l;){a.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u&lt;f;)(r=c[u])&amp;&amp;Ss(r,u,i,n,o),e.push(r)}return xs(a,i,n)},Y.interrupt=function(t){return this.each(null==t?vs:ys(As(t)))};var vs=ys(As());function ys(t){return function(){var e,r,n;(e=this[t])&amp;&amp;(n=e[r=e.active])&amp;&amp;(n.timer.c=null,n.timer.t=NaN,--e.count?delete e[r]:delete this[t],e.active+=.5,n.event&amp;&amp;n.event.interrupt.call(this,this.__data__,n.index))}}function xs(t,e,r){return U(t,ws),t.namespace=e,t.id=r,t}var bs,_s,ws=[],Ts=0;function ks(t,e,r,n){var i=t.id,a=t.namespace;return ut(t,&quot;function&quot;==typeof r?function(t,o,s){t[a][i].tween.set(e,n(r.call(t,t.__data__,o,s)))}:(r=n(r),function(t){t[a][i].tween.set(e,r)}))}function Ms(t){return null==t&amp;&amp;(t=&quot;&quot;),function(){this.textContent=t}}function As(t){return null==t?&quot;__transition__&quot;:&quot;__transition_&quot;+t+&quot;__&quot;}function Ss(t,e,r,n,i){var a,o,s,l,c,u=t[r]||(t[r]={active:0,count:0}),f=u[n];function h(r){var i=u.active,h=u[i];for(var d in h&amp;&amp;(h.timer.c=null,h.timer.t=NaN,--u.count,delete u[i],h.event&amp;&amp;h.event.interrupt.call(t,t.__data__,h.index)),u)if(+d&lt;n){var g=u[d];g.timer.c=null,g.timer.t=NaN,--u.count,delete u[d]}o.c=p,we((function(){return o.c&amp;&amp;p(r||1)&amp;&amp;(o.c=null,o.t=NaN),1}),0,a),u.active=n,f.event&amp;&amp;f.event.start.call(t,t.__data__,e),c=[],f.tween.forEach((function(r,n){(n=n.call(t,t.__data__,e))&amp;&amp;c.push(n)})),l=f.ease,s=f.duration}function p(i){for(var a=i/s,o=l(a),h=c.length;h&gt;0;)c[--h].call(t,o);if(a&gt;=1)return f.event&amp;&amp;f.event.end.call(t,t.__data__,e),--u.count?delete u[n]:delete t[r],1}f||(a=i.time,o=we((function(t){var e=f.delay;if(o.t=e+a,e&lt;=t)return h(t-e);o.c=h}),0,a),f=u[n]={tween:new _,time:a,timer:o,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++u.count)}ws.call=Y.call,ws.empty=Y.empty,ws.node=Y.node,ws.size=Y.size,t.transition=function(e,r){return e&amp;&amp;e.transition?bs?e.transition(r):e:t.selection().transition(e)},t.transition.prototype=ws,ws.select=function(t){var e,r,n,i=this.id,a=this.namespace,o=[];t=W(t);for(var s=-1,l=this.length;++s&lt;l;){o.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u&lt;f;)(n=c[u])&amp;&amp;(r=t.call(n,n.__data__,u,s))?(&quot;__data__&quot;in n&amp;&amp;(r.__data__=n.__data__),Ss(r,u,a,i,n[a][i]),e.push(r)):e.push(null)}return xs(o,a,i)},ws.selectAll=function(t){var e,r,n,i,a,o=this.id,s=this.namespace,l=[];t=X(t);for(var c=-1,u=this.length;++c&lt;u;)for(var f=this[c],h=-1,p=f.length;++h&lt;p;)if(n=f[h]){a=n[s][o],r=t.call(n,n.__data__,h,c),l.push(e=[]);for(var d=-1,g=r.length;++d&lt;g;)(i=r[d])&amp;&amp;Ss(i,d,s,o,a),e.push(i)}return xs(l,s,o)},ws.filter=function(t){var e,r,n=[];&quot;function&quot;!=typeof t&amp;&amp;(t=lt(t));for(var i=0,a=this.length;i&lt;a;i++){n.push(e=[]);for(var o,s=0,l=(o=this[i]).length;s&lt;l;s++)(r=o[s])&amp;&amp;t.call(r,r.__data__,s,i)&amp;&amp;e.push(r)}return xs(n,this.namespace,this.id)},ws.tween=function(t,e){var r=this.id,n=this.namespace;return arguments.length&lt;2?this.node()[n][r].tween.get(t):ut(this,null==e?function(e){e[n][r].tween.remove(t)}:function(i){i[n][r].tween.set(t,e)})},ws.attr=function(e,r){if(arguments.length&lt;2){for(r in e)this.attr(r,e[r]);return this}var n=&quot;transform&quot;==e?ba:$i,i=t.ns.qualify(e);function a(){this.removeAttribute(i)}function o(){this.removeAttributeNS(i.space,i.local)}function s(t){return null==t?a:(t+=&quot;&quot;,function(){var e,r=this.getAttribute(i);return r!==t&amp;&amp;(e=n(r,t),function(t){this.setAttribute(i,e(t))})})}function l(t){return null==t?o:(t+=&quot;&quot;,function(){var e,r=this.getAttributeNS(i.space,i.local);return r!==t&amp;&amp;(e=n(r,t),function(t){this.setAttributeNS(i.space,i.local,e(t))})})}return ks(this,&quot;attr.&quot;+e,r,i.local?l:s)},ws.attrTween=function(e,r){var n=t.ns.qualify(e);return this.tween(&quot;attr.&quot;+e,n.local?function(t,e){var i=r.call(this,t,e,this.getAttributeNS(n.space,n.local));return i&amp;&amp;function(t){this.setAttributeNS(n.space,n.local,i(t))}}:function(t,e){var i=r.call(this,t,e,this.getAttribute(n));return i&amp;&amp;function(t){this.setAttribute(n,i(t))}})},ws.style=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=&quot;&quot;),t)this.style(r,t[r],e);return this}r=&quot;&quot;}function i(){this.style.removeProperty(t)}function a(e){return null==e?i:(e+=&quot;&quot;,function(){var n,i=o(this).getComputedStyle(this,null).getPropertyValue(t);return i!==e&amp;&amp;(n=$i(i,e),function(e){this.style.setProperty(t,n(e),r)})})}return ks(this,&quot;style.&quot;+t,e,a)},ws.styleTween=function(t,e,r){function n(n,i){var a=e.call(this,n,i,o(this).getComputedStyle(this,null).getPropertyValue(t));return a&amp;&amp;function(e){this.style.setProperty(t,a(e),r)}}return arguments.length&lt;3&amp;&amp;(r=&quot;&quot;),this.tween(&quot;style.&quot;+t,n)},ws.text=function(t){return ks(this,&quot;text&quot;,t,Ms)},ws.remove=function(){var t=this.namespace;return this.each(&quot;end.transition&quot;,(function(){var e;this[t].count&lt;2&amp;&amp;(e=this.parentNode)&amp;&amp;e.removeChild(this)}))},ws.ease=function(e){var r=this.id,n=this.namespace;return arguments.length&lt;1?this.node()[n][r].ease:(&quot;function&quot;!=typeof e&amp;&amp;(e=t.ease.apply(t,arguments)),ut(this,(function(t){t[n][r].ease=e})))},ws.delay=function(t){var e=this.id,r=this.namespace;return arguments.length&lt;1?this.node()[r][e].delay:ut(this,&quot;function&quot;==typeof t?function(n,i,a){n[r][e].delay=+t.call(n,n.__data__,i,a)}:(t=+t,function(n){n[r][e].delay=t}))},ws.duration=function(t){var e=this.id,r=this.namespace;return arguments.length&lt;1?this.node()[r][e].duration:ut(this,&quot;function&quot;==typeof t?function(n,i,a){n[r][e].duration=Math.max(1,t.call(n,n.__data__,i,a))}:(t=Math.max(1,t),function(n){n[r][e].duration=t}))},ws.each=function(e,r){var n=this.id,i=this.namespace;if(arguments.length&lt;2){var a=_s,o=bs;try{bs=n,ut(this,(function(t,r,a){_s=t[i][n],e.call(t,t.__data__,r,a)}))}finally{_s=a,bs=o}}else ut(this,(function(a){var o=a[i][n];(o.event||(o.event=t.dispatch(&quot;start&quot;,&quot;end&quot;,&quot;interrupt&quot;))).on(e,r)}));return this},ws.transition=function(){for(var t,e,r,n=this.id,i=++Ts,a=this.namespace,o=[],s=0,l=this.length;s&lt;l;s++){o.push(t=[]);for(var c,u=0,f=(c=this[s]).length;u&lt;f;u++)(e=c[u])&amp;&amp;Ss(e,u,a,i,{time:(r=e[a][n]).time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration}),t.push(e)}return xs(o,a,i)},t.svg.axis=function(){var e,r=t.scale.linear(),i=Es,a=6,o=6,s=3,l=[10],c=null;function u(n){n.each((function(){var n,u=t.select(this),f=this.__chart__||r,h=this.__chart__=r.copy(),p=null==c?h.ticks?h.ticks.apply(h,l):h.domain():c,d=null==e?h.tickFormat?h.tickFormat.apply(h,l):L:e,g=u.selectAll(&quot;.tick&quot;).data(p,h),m=g.enter().insert(&quot;g&quot;,&quot;.domain&quot;).attr(&quot;class&quot;,&quot;tick&quot;).style(&quot;opacity&quot;,kt),v=t.transition(g.exit()).style(&quot;opacity&quot;,kt).remove(),y=t.transition(g.order()).style(&quot;opacity&quot;,1),x=Math.max(a,0)+s,b=mo(h),_=u.selectAll(&quot;.domain&quot;).data([0]),w=(_.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;domain&quot;),t.transition(_));m.append(&quot;line&quot;),m.append(&quot;text&quot;);var T,k,M,A,S=m.select(&quot;line&quot;),E=y.select(&quot;line&quot;),C=g.select(&quot;text&quot;).text(d),I=m.select(&quot;text&quot;),P=y.select(&quot;text&quot;),z=&quot;top&quot;===i||&quot;left&quot;===i?-1:1;if(&quot;bottom&quot;===i||&quot;top&quot;===i?(n=Ls,T=&quot;x&quot;,M=&quot;y&quot;,k=&quot;x2&quot;,A=&quot;y2&quot;,C.attr(&quot;dy&quot;,z&lt;0?&quot;0em&quot;:&quot;.71em&quot;).style(&quot;text-anchor&quot;,&quot;middle&quot;),w.attr(&quot;d&quot;,&quot;M&quot;+b[0]+&quot;,&quot;+z*o+&quot;V0H&quot;+b[1]+&quot;V&quot;+z*o)):(n=Is,T=&quot;y&quot;,M=&quot;x&quot;,k=&quot;y2&quot;,A=&quot;x2&quot;,C.attr(&quot;dy&quot;,&quot;.32em&quot;).style(&quot;text-anchor&quot;,z&lt;0?&quot;end&quot;:&quot;start&quot;),w.attr(&quot;d&quot;,&quot;M&quot;+z*o+&quot;,&quot;+b[0]+&quot;H0V&quot;+b[1]+&quot;H&quot;+z*o)),S.attr(A,z*a),I.attr(M,z*x),E.attr(k,0).attr(A,z*a),P.attr(T,0).attr(M,z*x),h.rangeBand){var O=h,D=O.rangeBand()/2;f=h=function(t){return O(t)+D}}else f.rangeBand?f=h:v.call(n,h,f);m.call(n,f,h),y.call(n,h,h)}))}return u.scale=function(t){return arguments.length?(r=t,u):r},u.orient=function(t){return arguments.length?(i=t in Cs?t+&quot;&quot;:Es,u):i},u.ticks=function(){return arguments.length?(l=n(arguments),u):l},u.tickValues=function(t){return arguments.length?(c=t,u):c},u.tickFormat=function(t){return arguments.length?(e=t,u):e},u.tickSize=function(t){var e=arguments.length;return e?(a=+t,o=+arguments[e-1],u):a},u.innerTickSize=function(t){return arguments.length?(a=+t,u):a},u.outerTickSize=function(t){return arguments.length?(o=+t,u):o},u.tickPadding=function(t){return arguments.length?(s=+t,u):s},u.tickSubdivide=function(){return arguments.length&amp;&amp;u},u};var Es=&quot;bottom&quot;,Cs={top:1,right:1,bottom:1,left:1};function Ls(t,e,r){t.attr(&quot;transform&quot;,(function(t){var n=e(t);return&quot;translate(&quot;+(isFinite(n)?n:r(t))+&quot;,0)&quot;}))}function Is(t,e,r){t.attr(&quot;transform&quot;,(function(t){var n=e(t);return&quot;translate(0,&quot;+(isFinite(n)?n:r(t))+&quot;)&quot;}))}t.svg.brush=function(){var e,r,n=N(h,&quot;brushstart&quot;,&quot;brush&quot;,&quot;brushend&quot;),i=null,a=null,s=[0,0],l=[0,0],c=!0,u=!0,f=zs[0];function h(e){e.each((function(){var e=t.select(this).style(&quot;pointer-events&quot;,&quot;all&quot;).style(&quot;-webkit-tap-highlight-color&quot;,&quot;rgba(0,0,0,0)&quot;).on(&quot;mousedown.brush&quot;,m).on(&quot;touchstart.brush&quot;,m),r=e.selectAll(&quot;.background&quot;).data([0]);r.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;background&quot;).style(&quot;visibility&quot;,&quot;hidden&quot;).style(&quot;cursor&quot;,&quot;crosshair&quot;),e.selectAll(&quot;.extent&quot;).data([0]).enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;extent&quot;).style(&quot;cursor&quot;,&quot;move&quot;);var n=e.selectAll(&quot;.resize&quot;).data(f,L);n.exit().remove(),n.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;resize &quot;+t})).style(&quot;cursor&quot;,(function(t){return Ps[t]})).append(&quot;rect&quot;).attr(&quot;x&quot;,(function(t){return/[ew]$/.test(t)?-3:null})).attr(&quot;y&quot;,(function(t){return/^[ns]/.test(t)?-3:null})).attr(&quot;width&quot;,6).attr(&quot;height&quot;,6).style(&quot;visibility&quot;,&quot;hidden&quot;),n.style(&quot;display&quot;,h.empty()?&quot;none&quot;:null);var o,s=t.transition(e),l=t.transition(r);i&amp;&amp;(o=mo(i),l.attr(&quot;x&quot;,o[0]).attr(&quot;width&quot;,o[1]-o[0]),d(s)),a&amp;&amp;(o=mo(a),l.attr(&quot;y&quot;,o[0]).attr(&quot;height&quot;,o[1]-o[0]),g(s)),p(s)}))}function p(t){t.selectAll(&quot;.resize&quot;).attr(&quot;transform&quot;,(function(t){return&quot;translate(&quot;+s[+/e$/.test(t)]+&quot;,&quot;+l[+/^s/.test(t)]+&quot;)&quot;}))}function d(t){t.select(&quot;.extent&quot;).attr(&quot;x&quot;,s[0]),t.selectAll(&quot;.extent,.n&gt;rect,.s&gt;rect&quot;).attr(&quot;width&quot;,s[1]-s[0])}function g(t){t.select(&quot;.extent&quot;).attr(&quot;y&quot;,l[0]),t.selectAll(&quot;.extent,.e&gt;rect,.w&gt;rect&quot;).attr(&quot;height&quot;,l[1]-l[0])}function m(){var f,m,v=this,y=t.select(t.event.target),x=n.of(v,arguments),b=t.select(v),_=y.datum(),w=!/^(n|s)$/.test(_)&amp;&amp;i,T=!/^(e|w)$/.test(_)&amp;&amp;a,k=y.classed(&quot;extent&quot;),M=bt(v),A=t.mouse(v),S=t.select(o(v)).on(&quot;keydown.brush&quot;,L).on(&quot;keyup.brush&quot;,I);if(t.event.changedTouches?S.on(&quot;touchmove.brush&quot;,P).on(&quot;touchend.brush&quot;,O):S.on(&quot;mousemove.brush&quot;,P).on(&quot;mouseup.brush&quot;,O),b.interrupt().selectAll(&quot;*&quot;).interrupt(),k)A[0]=s[0]-A[0],A[1]=l[0]-A[1];else if(_){var E=+/w$/.test(_),C=+/^n/.test(_);m=[s[1-E]-A[0],l[1-C]-A[1]],A[0]=s[E],A[1]=l[C]}else t.event.altKey&amp;&amp;(f=A.slice());function L(){32==t.event.keyCode&amp;&amp;(k||(f=null,A[0]-=s[1],A[1]-=l[1],k=2),F())}function I(){32==t.event.keyCode&amp;&amp;2==k&amp;&amp;(A[0]+=s[1],A[1]+=l[1],k=0,F())}function P(){var e=t.mouse(v),r=!1;m&amp;&amp;(e[0]+=m[0],e[1]+=m[1]),k||(t.event.altKey?(f||(f=[(s[0]+s[1])/2,(l[0]+l[1])/2]),A[0]=s[+(e[0]&lt;f[0])],A[1]=l[+(e[1]&lt;f[1])]):f=null),w&amp;&amp;z(e,i,0)&amp;&amp;(d(b),r=!0),T&amp;&amp;z(e,a,1)&amp;&amp;(g(b),r=!0),r&amp;&amp;(p(b),x({type:&quot;brush&quot;,mode:k?&quot;move&quot;:&quot;resize&quot;}))}function z(t,n,i){var a,o,h=mo(n),p=h[0],d=h[1],g=A[i],m=i?l:s,v=m[1]-m[0];if(k&amp;&amp;(p-=g,d-=v+g),a=(i?u:c)?Math.max(p,Math.min(d,t[i])):t[i],k?o=(a+=g)+v:(f&amp;&amp;(g=Math.max(p,Math.min(d,2*f[i]-a))),g&lt;a?(o=a,a=g):o=g),m[0]!=a||m[1]!=o)return i?r=null:e=null,m[0]=a,m[1]=o,!0}function O(){P(),b.style(&quot;pointer-events&quot;,&quot;all&quot;).selectAll(&quot;.resize&quot;).style(&quot;display&quot;,h.empty()?&quot;none&quot;:null),t.select(&quot;body&quot;).style(&quot;cursor&quot;,null),S.on(&quot;mousemove.brush&quot;,null).on(&quot;mouseup.brush&quot;,null).on(&quot;touchmove.brush&quot;,null).on(&quot;touchend.brush&quot;,null).on(&quot;keydown.brush&quot;,null).on(&quot;keyup.brush&quot;,null),M(),x({type:&quot;brushend&quot;})}b.style(&quot;pointer-events&quot;,&quot;none&quot;).selectAll(&quot;.resize&quot;).style(&quot;display&quot;,null),t.select(&quot;body&quot;).style(&quot;cursor&quot;,y.style(&quot;cursor&quot;)),x({type:&quot;brushstart&quot;}),P()}return h.event=function(i){i.each((function(){var i=n.of(this,arguments),a={x:s,y:l,i:e,j:r},o=this.__chart__||a;this.__chart__=a,bs?t.select(this).transition().each(&quot;start.brush&quot;,(function(){e=o.i,r=o.j,s=o.x,l=o.y,i({type:&quot;brushstart&quot;})})).tween(&quot;brush:brush&quot;,(function(){var t=ta(s,a.x),n=ta(l,a.y);return e=r=null,function(e){s=a.x=t(e),l=a.y=n(e),i({type:&quot;brush&quot;,mode:&quot;resize&quot;})}})).each(&quot;end.brush&quot;,(function(){e=a.i,r=a.j,i({type:&quot;brush&quot;,mode:&quot;resize&quot;}),i({type:&quot;brushend&quot;})})):(i({type:&quot;brushstart&quot;}),i({type:&quot;brush&quot;,mode:&quot;resize&quot;}),i({type:&quot;brushend&quot;}))}))},h.x=function(t){return arguments.length?(f=zs[!(i=t)&lt;&lt;1|!a],h):i},h.y=function(t){return arguments.length?(f=zs[!i&lt;&lt;1|!(a=t)],h):a},h.clamp=function(t){return arguments.length?(i&amp;&amp;a?(c=!!t[0],u=!!t[1]):i?c=!!t:a&amp;&amp;(u=!!t),h):i&amp;&amp;a?[c,u]:i?c:a?u:null},h.extent=function(t){var n,o,c,u,f;return arguments.length?(i&amp;&amp;(n=t[0],o=t[1],a&amp;&amp;(n=n[0],o=o[0]),e=[n,o],i.invert&amp;&amp;(n=i(n),o=i(o)),o&lt;n&amp;&amp;(f=n,n=o,o=f),n==s[0]&amp;&amp;o==s[1]||(s=[n,o])),a&amp;&amp;(c=t[0],u=t[1],i&amp;&amp;(c=c[1],u=u[1]),r=[c,u],a.invert&amp;&amp;(c=a(c),u=a(u)),u&lt;c&amp;&amp;(f=c,c=u,u=f),c==l[0]&amp;&amp;u==l[1]||(l=[c,u])),h):(i&amp;&amp;(e?(n=e[0],o=e[1]):(n=s[0],o=s[1],i.invert&amp;&amp;(n=i.invert(n),o=i.invert(o)),o&lt;n&amp;&amp;(f=n,n=o,o=f))),a&amp;&amp;(r?(c=r[0],u=r[1]):(c=l[0],u=l[1],a.invert&amp;&amp;(c=a.invert(c),u=a.invert(u)),u&lt;c&amp;&amp;(f=c,c=u,u=f))),i&amp;&amp;a?[[n,c],[o,u]]:i?[n,o]:a&amp;&amp;[c,u])},h.clear=function(){return h.empty()||(s=[0,0],l=[0,0],e=r=null),h},h.empty=function(){return!!i&amp;&amp;s[0]==s[1]||!!a&amp;&amp;l[0]==l[1]},t.rebind(h,n,&quot;on&quot;)};var Ps={n:&quot;ns-resize&quot;,e:&quot;ew-resize&quot;,s:&quot;ns-resize&quot;,w:&quot;ew-resize&quot;,nw:&quot;nwse-resize&quot;,ne:&quot;nesw-resize&quot;,se:&quot;nwse-resize&quot;,sw:&quot;nesw-resize&quot;},zs=[[&quot;n&quot;,&quot;e&quot;,&quot;s&quot;,&quot;w&quot;,&quot;nw&quot;,&quot;ne&quot;,&quot;se&quot;,&quot;sw&quot;],[&quot;e&quot;,&quot;w&quot;],[&quot;n&quot;,&quot;s&quot;],[]],Os=Pe.format=sr.timeFormat,Ds=Os.utc,Rs=Ds(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);function Fs(t){return t.toISOString()}function Bs(e,r,n){function i(t){return e(t)}function a(e,n){var i=(e[1]-e[0])/n,a=t.bisect(js,i);return a==js.length?[r.year,ko(e.map((function(t){return t/31536e6})),n)[2]]:a?r[i/js[a-1]&lt;js[a]/i?a-1:a]:[qs,ko(e,n)[2]]}return i.invert=function(t){return Ns(e.invert(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain().map(Ns)},i.nice=function(t,e){var r=i.domain(),n=go(r),o=null==t?a(n,10):&quot;number&quot;==typeof t&amp;&amp;a(n,t);function s(r){return!isNaN(r)&amp;&amp;!t.range(r,Ns(+r+1),e).length}return o&amp;&amp;(t=o[0],e=o[1]),i.domain(yo(r,e&gt;1?{floor:function(e){for(;s(e=t.floor(e));)e=Ns(e-1);return e},ceil:function(e){for(;s(e=t.ceil(e));)e=Ns(+e+1);return e}}:t))},i.ticks=function(t,e){var r=go(i.domain()),n=null==t?a(r,10):&quot;number&quot;==typeof t?a(r,t):!t.range&amp;&amp;[{range:t},e];return n&amp;&amp;(t=n[0],e=n[1]),t.range(r[0],Ns(+r[1]+1),e&lt;1?1:e)},i.tickFormat=function(){return n},i.copy=function(){return Bs(e.copy(),r,n)},wo(i,e)}function Ns(t){return new Date(t)}Os.iso=Date.prototype.toISOString&amp;&amp;+new Date(&quot;2000-01-01T00:00:00.000Z&quot;)?Fs:Rs,Fs.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},Fs.toString=Rs.toString,Pe.second=Re((function(t){return new ze(1e3*Math.floor(t/1e3))}),(function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))}),(function(t){return t.getSeconds()})),Pe.seconds=Pe.second.range,Pe.seconds.utc=Pe.second.utc.range,Pe.minute=Re((function(t){return new ze(6e4*Math.floor(t/6e4))}),(function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))}),(function(t){return t.getMinutes()})),Pe.minutes=Pe.minute.range,Pe.minutes.utc=Pe.minute.utc.range,Pe.hour=Re((function(t){var e=t.getTimezoneOffset()/60;return new ze(36e5*(Math.floor(t/36e5-e)+e))}),(function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))}),(function(t){return t.getHours()})),Pe.hours=Pe.hour.range,Pe.hours.utc=Pe.hour.utc.range,Pe.month=Re((function(t){return(t=Pe.day(t)).setDate(1),t}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t){return t.getMonth()})),Pe.months=Pe.month.range,Pe.months.utc=Pe.month.utc.range;var js=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Us=[[Pe.second,1],[Pe.second,5],[Pe.second,15],[Pe.second,30],[Pe.minute,1],[Pe.minute,5],[Pe.minute,15],[Pe.minute,30],[Pe.hour,1],[Pe.hour,3],[Pe.hour,6],[Pe.hour,12],[Pe.day,1],[Pe.day,2],[Pe.week,1],[Pe.month,1],[Pe.month,3],[Pe.year,1]],Vs=Os.multi([[&quot;.%L&quot;,function(t){return t.getMilliseconds()}],[&quot;:%S&quot;,function(t){return t.getSeconds()}],[&quot;%I:%M&quot;,function(t){return t.getMinutes()}],[&quot;%I %p&quot;,function(t){return t.getHours()}],[&quot;%a %d&quot;,function(t){return t.getDay()&amp;&amp;1!=t.getDate()}],[&quot;%b %d&quot;,function(t){return 1!=t.getDate()}],[&quot;%B&quot;,function(t){return t.getMonth()}],[&quot;%Y&quot;,Yr]]),qs={range:function(e,r,n){return t.range(Math.ceil(e/n)*n,+r,n).map(Ns)},floor:L,ceil:L};Us.year=Pe.year,Pe.scale=function(){return Bs(t.scale.linear(),Us,Vs)};var Hs=Us.map((function(t){return[t[0].utc,t[1]]})),Gs=Ds.multi([[&quot;.%L&quot;,function(t){return t.getUTCMilliseconds()}],[&quot;:%S&quot;,function(t){return t.getUTCSeconds()}],[&quot;%I:%M&quot;,function(t){return t.getUTCMinutes()}],[&quot;%I %p&quot;,function(t){return t.getUTCHours()}],[&quot;%a %d&quot;,function(t){return t.getUTCDay()&amp;&amp;1!=t.getUTCDate()}],[&quot;%b %d&quot;,function(t){return 1!=t.getUTCDate()}],[&quot;%B&quot;,function(t){return t.getUTCMonth()}],[&quot;%Y&quot;,Yr]]);function Ys(t){return JSON.parse(t.responseText)}function Ws(t){var e=i.createRange();return e.selectNode(i.body),e.createContextualFragment(t.responseText)}Hs.year=Pe.year.utc,Pe.scale.utc=function(){return Bs(t.scale.linear(),Hs,Gs)},t.text=ge((function(t){return t.responseText})),t.json=function(t,e){return me(t,&quot;application/json&quot;,Ys,e)},t.html=function(t,e){return me(t,&quot;text/html&quot;,Ws,e)},t.xml=ge((function(t){return t.responseXML})),&quot;object&quot;==typeof e&amp;&amp;e.exports?e.exports=t:this.d3=t}()},{}],170:[function(t,e,r){e.exports=function(){for(var t=0;t&lt;arguments.length;t++)if(void 0!==arguments[t])return arguments[t]}},{}],171:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;incremental-convex-hull&quot;),i=t(&quot;uniq&quot;);function a(t,e){this.point=t,this.index=e}function o(t,e){for(var r=t.point,n=e.point,i=r.length,a=0;a&lt;i;++a){var o=n[a]-r[a];if(o)return o}return 0}e.exports=function(t,e){var r=t.length;if(0===r)return[];var s=t[0].length;if(s&lt;1)return[];if(1===s)return function(t,e,r){if(1===t)return r?[[-1,0]]:[];var n=e.map((function(t,e){return[t[0],e]}));n.sort((function(t,e){return t[0]-e[0]}));for(var i=new Array(t-1),a=1;a&lt;t;++a){var o=n[a-1],s=n[a];i[a-1]=[o[1],s[1]]}r&amp;&amp;i.push([-1,i[0][1]],[i[t-1][1],-1]);return i}(r,t,e);for(var l=new Array(r),c=1,u=0;u&lt;r;++u){for(var f=t[u],h=new Array(s+1),p=0,d=0;d&lt;s;++d){var g=f[d];h[d]=g,p+=g*g}h[s]=p,l[u]=new a(h,u),c=Math.max(p,c)}i(l,o),r=l.length;var m=new Array(r+s+1),v=new Array(r+s+1),y=(s+1)*(s+1)*c,x=new Array(s+1);for(u=0;u&lt;=s;++u)x[u]=0;x[s]=y,m[0]=x.slice(),v[0]=-1;for(u=0;u&lt;=s;++u){(h=x.slice())[u]=1,m[u+1]=h,v[u+1]=-1}for(u=0;u&lt;r;++u){var b=l[u];m[u+s+1]=b.point,v[u+s+1]=b.index}var _=n(m,!1);_=e?_.filter((function(t){for(var e=0,r=0;r&lt;=s;++r){var n=v[t[r]];if(n&lt;0&amp;&amp;++e&gt;=2)return!1;t[r]=n}return!0})):_.filter((function(t){for(var e=0;e&lt;=s;++e){var r=v[t[e]];if(r&lt;0)return!1;t[e]=r}return!0}));if(1&amp;s)for(u=0;u&lt;_.length;++u){h=(b=_[u])[0];b[0]=b[1],b[1]=h}return _}},{&quot;incremental-convex-hull&quot;:459,uniq:597}],172:[function(t,e,r){&quot;use strict&quot;;e.exports=a;var n=(a.canvas=document.createElement(&quot;canvas&quot;)).getContext(&quot;2d&quot;),i=o([32,126]);function a(t,e){Array.isArray(t)&amp;&amp;(t=t.join(&quot;, &quot;));var r,a={},s=16,l=.05;e&amp;&amp;(2===e.length&amp;&amp;&quot;number&quot;==typeof e[0]?r=o(e):Array.isArray(e)?r=e:(e.o?r=o(e.o):e.pairs&amp;&amp;(r=e.pairs),e.fontSize&amp;&amp;(s=e.fontSize),null!=e.threshold&amp;&amp;(l=e.threshold))),r||(r=i),n.font=s+&quot;px &quot;+t;for(var c=0;c&lt;r.length;c++){var u=r[c],f=n.measureText(u[0]).width+n.measureText(u[1]).width,h=n.measureText(u).width;if(Math.abs(f-h)&gt;s*l){var p=(h-f)/s;a[u]=1e3*p}}return a}function o(t){for(var e=[],r=t[0];r&lt;=t[1];r++)for(var n=String.fromCharCode(r),i=t[0];i&lt;t[1];i++){var a=n+String.fromCharCode(i);e.push(a)}return e}a.createPairs=o,a.ascii=i},{}],173:[function(t,e,r){(function(t){(function(){var r=!1;if(&quot;undefined&quot;!=typeof Float64Array){var n=new Float64Array(1),i=new Uint32Array(n.buffer);if(n[0]=1,r=!0,1072693248===i[1]){e.exports=function(t){return n[0]=t,[i[0],i[1]]},e.exports.pack=function(t,e){return i[0]=t,i[1]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[0]},e.exports.hi=function(t){return n[0]=t,i[1]}}else if(1072693248===i[0]){e.exports=function(t){return n[0]=t,[i[1],i[0]]},e.exports.pack=function(t,e){return i[1]=t,i[0]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[1]},e.exports.hi=function(t){return n[0]=t,i[0]}}else r=!1}if(!r){var a=new t(8);e.exports=function(t){return a.writeDoubleLE(t,0,!0),[a.readUInt32LE(0,!0),a.readUInt32LE(4,!0)]},e.exports.pack=function(t,e){return a.writeUInt32LE(t,0,!0),a.writeUInt32LE(e,4,!0),a.readDoubleLE(0,!0)},e.exports.lo=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(0,!0)},e.exports.hi=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(4,!0)}}e.exports.sign=function(t){return e.exports.hi(t)&gt;&gt;&gt;31},e.exports.exponent=function(t){return(e.exports.hi(t)&lt;&lt;1&gt;&gt;&gt;21)-1023},e.exports.fraction=function(t){var r=e.exports.lo(t),n=e.exports.hi(t),i=1048575&amp;n;return 2146435072&amp;n&amp;&amp;(i+=1&lt;&lt;20),[r,i]},e.exports.denormalized=function(t){return!(2146435072&amp;e.exports.hi(t))}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{buffer:111}],174:[function(t,e,r){var n=t(&quot;abs-svg-path&quot;),i=t(&quot;normalize-svg-path&quot;),a={M:&quot;moveTo&quot;,C:&quot;bezierCurveTo&quot;};e.exports=function(t,e){t.beginPath(),i(n(e)).forEach((function(e){var r=e[0],n=e.slice(1);t[a[r]].apply(t,n)})),t.closePath()}},{&quot;abs-svg-path&quot;:65,&quot;normalize-svg-path&quot;:497}],175:[function(t,e,r){e.exports=function(t){switch(t){case&quot;int8&quot;:return Int8Array;case&quot;int16&quot;:return Int16Array;case&quot;int32&quot;:return Int32Array;case&quot;uint8&quot;:return Uint8Array;case&quot;uint16&quot;:return Uint16Array;case&quot;uint32&quot;:return Uint32Array;case&quot;float32&quot;:return Float32Array;case&quot;float64&quot;:return Float64Array;case&quot;array&quot;:return Array;case&quot;uint8_clamped&quot;:return Uint8ClampedArray}}},{}],176:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){switch(&quot;undefined&quot;==typeof e&amp;&amp;(e=0),typeof t){case&quot;number&quot;:if(t&gt;0)return function(t,e){var r,n;for(r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}(0|t,e);break;case&quot;object&quot;:if(&quot;number&quot;==typeof t.length)return function t(e,r,n){var i=0|e[n];if(i&lt;=0)return[];var a,o=new Array(i);if(n===e.length-1)for(a=0;a&lt;i;++a)o[a]=r;else for(a=0;a&lt;i;++a)o[a]=t(e,r,n+1);return o}(t,e,0)}return[]}},{}],177:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){r=r||2;var n,s,l,c,u,p,d,m=e&amp;&amp;e.length,v=m?e[0]*r:t.length,y=i(t,0,v,r,!0),x=[];if(!y||y.next===y.prev)return x;if(m&amp;&amp;(y=function(t,e,r,n){var o,s,l,c,u,p=[];for(o=0,s=e.length;o&lt;s;o++)l=e[o]*n,c=o&lt;s-1?e[o+1]*n:t.length,(u=i(t,l,c,n,!1))===u.next&amp;&amp;(u.steiner=!0),p.push(g(u));for(p.sort(f),o=0;o&lt;p.length;o++)h(p[o],r),r=a(r,r.next);return r}(t,e,y,r)),t.length&gt;80*r){n=l=t[0],s=c=t[1];for(var b=r;b&lt;v;b+=r)(u=t[b])&lt;n&amp;&amp;(n=u),(p=t[b+1])&lt;s&amp;&amp;(s=p),u&gt;l&amp;&amp;(l=u),p&gt;c&amp;&amp;(c=p);d=0!==(d=Math.max(l-n,c-s))?1/d:0}return o(y,x,r,n,s,d),x}function i(t,e,r,n,i){var a,o;if(i===E(t,e,r,n)&gt;0)for(a=e;a&lt;r;a+=n)o=M(a,t[a],t[a+1],o);else for(a=r-n;a&gt;=e;a-=n)o=M(a,t[a],t[a+1],o);return o&amp;&amp;x(o,o.next)&amp;&amp;(A(o),o=o.next),o}function a(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!x(n,n.next)&amp;&amp;0!==y(n.prev,n,n.next))n=n.next;else{if(A(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function o(t,e,r,n,i,f,h){if(t){!h&amp;&amp;f&amp;&amp;function(t,e,r,n){var i=t;do{null===i.z&amp;&amp;(i.z=d(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e&lt;c&amp;&amp;(s++,n=n.nextZ);e++);for(l=c;s&gt;0||l&gt;0&amp;&amp;n;)0!==s&amp;&amp;(0===l||!n||r.z&lt;=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o&gt;1)}(i)}(t,n,i,f);for(var p,g,m=t;t.prev!==t.next;)if(p=t.prev,g=t.next,f?l(t,n,i,f):s(t))e.push(p.i/r),e.push(t.i/r),e.push(g.i/r),A(t),t=g.next,m=g.next;else if((t=g)===m){h?1===h?o(t=c(a(t),e,r),e,r,n,i,f,2):2===h&amp;&amp;u(t,e,r,n,i,f):o(a(t),e,r,n,i,f,1);break}}}function s(t){var e=t.prev,r=t,n=t.next;if(y(e,r,n)&gt;=0)return!1;for(var i=t.next.next;i!==t.prev;){if(m(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&amp;&amp;y(i.prev,i,i.next)&gt;=0)return!1;i=i.next}return!0}function l(t,e,r,n){var i=t.prev,a=t,o=t.next;if(y(i,a,o)&gt;=0)return!1;for(var s=i.x&lt;a.x?i.x&lt;o.x?i.x:o.x:a.x&lt;o.x?a.x:o.x,l=i.y&lt;a.y?i.y&lt;o.y?i.y:o.y:a.y&lt;o.y?a.y:o.y,c=i.x&gt;a.x?i.x&gt;o.x?i.x:o.x:a.x&gt;o.x?a.x:o.x,u=i.y&gt;a.y?i.y&gt;o.y?i.y:o.y:a.y&gt;o.y?a.y:o.y,f=d(s,l,e,r,n),h=d(c,u,e,r,n),p=t.prevZ,g=t.nextZ;p&amp;&amp;p.z&gt;=f&amp;&amp;g&amp;&amp;g.z&lt;=h;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;y(p.prev,p,p.next)&gt;=0)return!1;if(p=p.prevZ,g!==t.prev&amp;&amp;g!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&amp;&amp;y(g.prev,g,g.next)&gt;=0)return!1;g=g.nextZ}for(;p&amp;&amp;p.z&gt;=f;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;y(p.prev,p,p.next)&gt;=0)return!1;p=p.prevZ}for(;g&amp;&amp;g.z&lt;=h;){if(g!==t.prev&amp;&amp;g!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&amp;&amp;y(g.prev,g,g.next)&gt;=0)return!1;g=g.nextZ}return!0}function c(t,e,r){var n=t;do{var i=n.prev,o=n.next.next;!x(i,o)&amp;&amp;b(i,n,n.next,o)&amp;&amp;T(i,o)&amp;&amp;T(o,i)&amp;&amp;(e.push(i.i/r),e.push(n.i/r),e.push(o.i/r),A(n),A(n.next),n=t=o),n=n.next}while(n!==t);return a(n)}function u(t,e,r,n,i,s){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&amp;&amp;v(l,c)){var u=k(l,c);return l=a(l,l.next),u=a(u,u.next),o(l,e,r,n,i,s),void o(u,e,r,n,i,s)}c=c.next}l=l.next}while(l!==t)}function f(t,e){return t.x-e.x}function h(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a&lt;=n.y&amp;&amp;a&gt;=n.next.y&amp;&amp;n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s&lt;=i&amp;&amp;s&gt;o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x&lt;n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,h=1/0;n=r;do{i&gt;=n.x&amp;&amp;n.x&gt;=u&amp;&amp;i!==n.x&amp;&amp;m(a&lt;f?i:o,a,u,f,a&lt;f?o:i,a,n.x,n.y)&amp;&amp;(l=Math.abs(a-n.y)/(i-n.x),T(n,t)&amp;&amp;(l&lt;h||l===h&amp;&amp;(n.x&gt;r.x||n.x===r.x&amp;&amp;p(r,n)))&amp;&amp;(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e)){var r=k(e,t);a(e,e.next),a(r,r.next)}}function p(t,e){return y(t.prev,t,e.prev)&lt;0&amp;&amp;y(e.next,t,t.next)&lt;0}function d(t,e,r,n,i){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t=32767*(t-r)*i)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e=32767*(e-n)*i)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1}function g(t){var e=t,r=t;do{(e.x&lt;r.x||e.x===r.x&amp;&amp;e.y&lt;r.y)&amp;&amp;(r=e),e=e.next}while(e!==t);return r}function m(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)&gt;=0&amp;&amp;(t-o)*(n-s)-(r-o)*(e-s)&gt;=0&amp;&amp;(r-o)*(a-s)-(i-o)*(n-s)&gt;=0}function v(t,e){return t.next.i!==e.i&amp;&amp;t.prev.i!==e.i&amp;&amp;!function(t,e){var r=t;do{if(r.i!==t.i&amp;&amp;r.next.i!==t.i&amp;&amp;r.i!==e.i&amp;&amp;r.next.i!==e.i&amp;&amp;b(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&amp;&amp;(T(t,e)&amp;&amp;T(e,t)&amp;&amp;function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y&gt;a!=r.next.y&gt;a&amp;&amp;r.next.y!==r.y&amp;&amp;i&lt;(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&amp;&amp;(n=!n),r=r.next}while(r!==t);return n}(t,e)&amp;&amp;(y(t.prev,t,e.prev)||y(t,e.prev,e))||x(t,e)&amp;&amp;y(t.prev,t,t.next)&gt;0&amp;&amp;y(e.prev,e,e.next)&gt;0)}function y(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function x(t,e){return t.x===e.x&amp;&amp;t.y===e.y}function b(t,e,r,n){var i=w(y(t,e,r)),a=w(y(t,e,n)),o=w(y(r,n,t)),s=w(y(r,n,e));return i!==a&amp;&amp;o!==s||(!(0!==i||!_(t,r,e))||(!(0!==a||!_(t,n,e))||(!(0!==o||!_(r,t,n))||!(0!==s||!_(r,e,n)))))}function _(t,e,r){return e.x&lt;=Math.max(t.x,r.x)&amp;&amp;e.x&gt;=Math.min(t.x,r.x)&amp;&amp;e.y&lt;=Math.max(t.y,r.y)&amp;&amp;e.y&gt;=Math.min(t.y,r.y)}function w(t){return t&gt;0?1:t&lt;0?-1:0}function T(t,e){return y(t.prev,t,t.next)&lt;0?y(t,e,t.next)&gt;=0&amp;&amp;y(t,t.prev,e)&gt;=0:y(t,e,t.prev)&lt;0||y(t,t.next,e)&lt;0}function k(t,e){var r=new S(t.i,t.x,t.y),n=new S(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function M(t,e,r,n){var i=new S(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function A(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&amp;&amp;(t.prevZ.nextZ=t.nextZ),t.nextZ&amp;&amp;(t.nextZ.prevZ=t.prevZ)}function S(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function E(t,e,r,n){for(var i=0,a=e,o=r-n;a&lt;r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}e.exports=n,e.exports.default=n,n.deviation=function(t,e,r,n){var i=e&amp;&amp;e.length,a=i?e[0]*r:t.length,o=Math.abs(E(t,0,a,r));if(i)for(var s=0,l=e.length;s&lt;l;s++){var c=e[s]*r,u=s&lt;l-1?e[s+1]*r:t.length;o-=Math.abs(E(t,c,u,r))}var f=0;for(s=0;s&lt;n.length;s+=3){var h=n[s]*r,p=n[s+1]*r,d=n[s+2]*r;f+=Math.abs((t[h]-t[d])*(t[p+1]-t[h+1])-(t[h]-t[p])*(t[d+1]-t[h+1]))}return 0===o&amp;&amp;0===f?0:Math.abs((f-o)/o)},n.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i&lt;t.length;i++){for(var a=0;a&lt;t[i].length;a++)for(var o=0;o&lt;e;o++)r.vertices.push(t[i][a][o]);i&gt;0&amp;&amp;(n+=t[i-1].length,r.holes.push(n))}return r}},{}],178:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.length;if(&quot;number&quot;!=typeof e){e=0;for(var i=0;i&lt;r;++i){var a=t[i];e=Math.max(e,a[0],a[1])}e=1+(0|e)}e|=0;var o=new Array(e);for(i=0;i&lt;e;++i)o[i]=[];for(i=0;i&lt;r;++i){a=t[i];o[a[0]].push(a[1]),o[a[1]].push(a[0])}for(var s=0;s&lt;e;++s)n(o[s],(function(t,e){return t-e}));return o};var n=t(&quot;uniq&quot;)},{uniq:597}],179:[function(t,e,r){var n=t(&quot;strongly-connected-components&quot;);e.exports=function(t,e){var r,i=[],a=[],o=[],s={},l=[];function c(t){var e,n,i=!1;for(a.push(t),o[t]=!0,e=0;e&lt;l[t].length;e++)(n=l[t][e])===r?(u(r,a),i=!0):o[n]||(i=c(n));if(i)!function t(e){o[e]=!1,s.hasOwnProperty(e)&amp;&amp;Object.keys(s[e]).forEach((function(r){delete s[e][r],o[r]&amp;&amp;t(r)}))}(t);else for(e=0;e&lt;l[t].length;e++){n=l[t][e];var f=s[n];f||(f={},s[n]=f),f[n]=!0}return a.pop(),i}function u(t,r){var n=[].concat(r).concat(t);e?e(c):i.push(n)}function f(e){!function(e){for(var r=0;r&lt;t.length;r++)r&lt;e&amp;&amp;(t[r]=[]),t[r]=t[r].filter((function(t){return t&gt;=e}))}(e);for(var r,i=n(t).components.filter((function(t){return t.length&gt;1})),a=1/0,o=0;o&lt;i.length;o++)for(var s=0;s&lt;i[o].length;s++)i[o][s]&lt;a&amp;&amp;(a=i[o][s],r=o);var l=i[r];return!!l&amp;&amp;{leastVertex:a,adjList:t.map((function(t,e){return-1===l.indexOf(e)?[]:t.filter((function(t){return-1!==l.indexOf(t)}))}))}}r=0;for(var h=t.length;r&lt;h;){var p=f(r);if(r=p.leastVertex,l=p.adjList){for(var d=0;d&lt;l.length;d++)for(var g=0;g&lt;l[d].length;g++){var m=l[d][g];o[+m]=!1,s[m]={}}c(r),r+=1}else r=h}return e?void 0:i}},{&quot;strongly-connected-components&quot;:569}],180:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../object/valid-value&quot;);e.exports=function(){return n(this).length=0,this}},{&quot;../../object/valid-value&quot;:211}],181:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Array.from:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:182,&quot;./shim&quot;:183}],182:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e,r=Array.from;return&quot;function&quot;==typeof r&amp;&amp;(e=r(t=[&quot;raz&quot;,&quot;dwa&quot;]),Boolean(e&amp;&amp;e!==t&amp;&amp;&quot;dwa&quot;===e[1]))}},{}],183:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es6-symbol&quot;).iterator,i=t(&quot;../../function/is-arguments&quot;),a=t(&quot;../../function/is-function&quot;),o=t(&quot;../../number/to-pos-integer&quot;),s=t(&quot;../../object/valid-callable&quot;),l=t(&quot;../../object/valid-value&quot;),c=t(&quot;../../object/is-value&quot;),u=t(&quot;../../string/is-string&quot;),f=Array.isArray,h=Function.prototype.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},d=Object.defineProperty;e.exports=function(t){var e,r,g,m,v,y,x,b,_,w,T=arguments[1],k=arguments[2];if(t=Object(l(t)),c(T)&amp;&amp;s(T),this&amp;&amp;this!==Array&amp;&amp;a(this))e=this;else{if(!T){if(i(t))return 1!==(v=t.length)?Array.apply(null,t):((m=new Array(1))[0]=t[0],m);if(f(t)){for(m=new Array(v=t.length),r=0;r&lt;v;++r)m[r]=t[r];return m}}m=[]}if(!f(t))if(void 0!==(_=t[n])){for(x=s(_).call(t),e&amp;&amp;(m=new e),b=x.next(),r=0;!b.done;)w=T?h.call(T,k,b.value,r):b.value,e?(p.value=w,d(m,r,p)):m[r]=w,b=x.next(),++r;v=r}else if(u(t)){for(v=t.length,e&amp;&amp;(m=new e),r=0,g=0;r&lt;v;++r)w=t[r],r+1&lt;v&amp;&amp;(y=w.charCodeAt(0))&gt;=55296&amp;&amp;y&lt;=56319&amp;&amp;(w+=t[++r]),w=T?h.call(T,k,w,g):w,e?(p.value=w,d(m,g,p)):m[g]=w,++g;v=g}if(void 0===v)for(v=o(t.length),e&amp;&amp;(m=new e(v)),r=0;r&lt;v;++r)w=T?h.call(T,k,t[r],r):t[r],e?(p.value=w,d(m,r,p)):m[r]=w;return e&amp;&amp;(p.value=null,m.length=v),m}},{&quot;../../function/is-arguments&quot;:184,&quot;../../function/is-function&quot;:185,&quot;../../number/to-pos-integer&quot;:191,&quot;../../object/is-value&quot;:200,&quot;../../object/valid-callable&quot;:209,&quot;../../object/valid-value&quot;:211,&quot;../../string/is-string&quot;:215,&quot;es6-symbol&quot;:225}],184:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=n.call(function(){return arguments}());e.exports=function(t){return n.call(t)===i}},{}],185:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);e.exports=function(t){return&quot;function&quot;==typeof t&amp;&amp;i(n.call(t))}},{}],186:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){}},{}],187:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Math.sign:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:188,&quot;./shim&quot;:189}],188:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t=Math.sign;return&quot;function&quot;==typeof t&amp;&amp;(1===t(10)&amp;&amp;-1===t(-20))}},{}],189:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t=Number(t),isNaN(t)||0===t?t:t&gt;0?1:-1}},{}],190:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../math/sign&quot;),i=Math.abs,a=Math.floor;e.exports=function(t){return isNaN(t)?0:0!==(t=Number(t))&amp;&amp;isFinite(t)?n(t)*a(i(t)):t}},{&quot;../math/sign&quot;:187}],191:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./to-integer&quot;),i=Math.max;e.exports=function(t){return i(0,n(t))}},{&quot;./to-integer&quot;:190}],192:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./valid-callable&quot;),i=t(&quot;./valid-value&quot;),a=Function.prototype.bind,o=Function.prototype.call,s=Object.keys,l=Object.prototype.propertyIsEnumerable;e.exports=function(t,e){return function(r,c){var u,f=arguments[2],h=arguments[3];return r=Object(i(r)),n(c),u=s(r),h&amp;&amp;u.sort(&quot;function&quot;==typeof h?a.call(h,r):void 0),&quot;function&quot;!=typeof t&amp;&amp;(t=u[t]),o.call(t,u,(function(t,n){return l.call(r,t)?o.call(c,f,r[t],t,r,n):e}))}}},{&quot;./valid-callable&quot;:209,&quot;./valid-value&quot;:211}],193:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.assign:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:194,&quot;./shim&quot;:195}],194:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e=Object.assign;return&quot;function&quot;==typeof e&amp;&amp;(e(t={foo:&quot;raz&quot;},{bar:&quot;dwa&quot;},{trzy:&quot;trzy&quot;}),t.foo+t.bar+t.trzy===&quot;razdwatrzy&quot;)}},{}],195:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../keys&quot;),i=t(&quot;../valid-value&quot;),a=Math.max;e.exports=function(t,e){var r,o,s,l=a(arguments.length,2);for(t=Object(i(t)),s=function(n){try{t[n]=e[n]}catch(t){r||(r=t)}},o=1;o&lt;l;++o)n(e=arguments[o]).forEach(s);if(void 0!==r)throw r;return t}},{&quot;../keys&quot;:201,&quot;../valid-value&quot;:211}],196:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../array/from&quot;),i=t(&quot;./assign&quot;),a=t(&quot;./valid-value&quot;);e.exports=function(t){var e=Object(a(t)),r=arguments[1],o=Object(arguments[2]);if(e!==t&amp;&amp;!r)return e;var s={};return r?n(r,(function(e){(o.ensure||e in t)&amp;&amp;(s[e]=t[e])})):i(s,t),s}},{&quot;../array/from&quot;:181,&quot;./assign&quot;:193,&quot;./valid-value&quot;:211}],197:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o,s=Object.create;t(&quot;./set-prototype-of/is-implemented&quot;)()||(n=t(&quot;./set-prototype-of/shim&quot;)),e.exports=n?1!==n.level?s:(i={},a={},o={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach((function(t){a[t]=&quot;__proto__&quot;!==t?o:{configurable:!0,enumerable:!1,writable:!0,value:void 0}})),Object.defineProperties(i,a),Object.defineProperty(n,&quot;nullPolyfill&quot;,{configurable:!1,enumerable:!1,writable:!1,value:i}),function(t,e){return s(null===t?i:t,e)}):s},{&quot;./set-prototype-of/is-implemented&quot;:207,&quot;./set-prototype-of/shim&quot;:208}],198:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./_iterate&quot;)(&quot;forEach&quot;)},{&quot;./_iterate&quot;:192}],199:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;),i={function:!0,object:!0};e.exports=function(t){return n(t)&amp;&amp;i[typeof t]||!1}},{&quot;./is-value&quot;:200}],200:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../function/noop&quot;)();e.exports=function(t){return t!==n&amp;&amp;null!==t}},{&quot;../function/noop&quot;:186}],201:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.keys:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:202,&quot;./shim&quot;:203}],202:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){try{return Object.keys(&quot;primitive&quot;),!0}catch(t){return!1}}},{}],203:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../is-value&quot;),i=Object.keys;e.exports=function(t){return i(n(t)?Object(t):t)}},{&quot;../is-value&quot;:200}],204:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./valid-callable&quot;),i=t(&quot;./for-each&quot;),a=Function.prototype.call;e.exports=function(t,e){var r={},o=arguments[2];return n(e),i(t,(function(t,n,i,s){r[n]=a.call(e,o,t,n,i,s)})),r}},{&quot;./for-each&quot;:198,&quot;./valid-callable&quot;:209}],205:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;),i=Array.prototype.forEach,a=Object.create,o=function(t,e){var r;for(r in t)e[r]=t[r]};e.exports=function(t){var e=a(null);return i.call(arguments,(function(t){n(t)&amp;&amp;o(Object(t),e)})),e}},{&quot;./is-value&quot;:200}],206:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.setPrototypeOf:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:207,&quot;./shim&quot;:208}],207:[function(t,e,r){&quot;use strict&quot;;var n=Object.create,i=Object.getPrototypeOf,a={};e.exports=function(){var t=Object.setPrototypeOf,e=arguments[0]||n;return&quot;function&quot;==typeof t&amp;&amp;i(t(e(null),a))===a}},{}],208:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;../is-object&quot;),a=t(&quot;../valid-value&quot;),o=Object.prototype.isPrototypeOf,s=Object.defineProperty,l={configurable:!0,enumerable:!1,writable:!0,value:void 0};n=function(t,e){if(a(t),null===e||i(e))return t;throw new TypeError(&quot;Prototype must be null or an object&quot;)},e.exports=function(t){var e,r;return t?(2===t.level?t.set?(r=t.set,e=function(t,e){return r.call(n(t,e),e),t}):e=function(t,e){return n(t,e).__proto__=e,t}:e=function t(e,r){var i;return n(e,r),(i=o.call(t.nullPolyfill,e))&amp;&amp;delete t.nullPolyfill.__proto__,null===r&amp;&amp;(r=t.nullPolyfill),e.__proto__=r,i&amp;&amp;s(t.nullPolyfill,&quot;__proto__&quot;,l),e},Object.defineProperty(e,&quot;level&quot;,{configurable:!1,enumerable:!1,writable:!1,value:t.level})):null}(function(){var t,e=Object.create(null),r={},n=Object.getOwnPropertyDescriptor(Object.prototype,&quot;__proto__&quot;);if(n){try{(t=n.set).call(e,r)}catch(t){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:((e={}).__proto__=r,Object.getPrototypeOf(e)===r&amp;&amp;{level:1})}()),t(&quot;../create&quot;)},{&quot;../create&quot;:197,&quot;../is-object&quot;:199,&quot;../valid-value&quot;:211}],209:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){if(&quot;function&quot;!=typeof t)throw new TypeError(t+&quot; is not a function&quot;);return t}},{}],210:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-object&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not an Object&quot;);return t}},{&quot;./is-object&quot;:199}],211:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;);e.exports=function(t){if(!n(t))throw new TypeError(&quot;Cannot use null or undefined&quot;);return t}},{&quot;./is-value&quot;:200}],212:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?String.prototype.contains:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:213,&quot;./shim&quot;:214}],213:[function(t,e,r){&quot;use strict&quot;;var n=&quot;razdwatrzy&quot;;e.exports=function(){return&quot;function&quot;==typeof n.contains&amp;&amp;(!0===n.contains(&quot;dwa&quot;)&amp;&amp;!1===n.contains(&quot;foo&quot;))}},{}],214:[function(t,e,r){&quot;use strict&quot;;var n=String.prototype.indexOf;e.exports=function(t){return n.call(this,t,arguments[1])&gt;-1}},{}],215:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=n.call(&quot;&quot;);e.exports=function(t){return&quot;string&quot;==typeof t||t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;(t instanceof String||n.call(t)===i)||!1}},{}],216:[function(t,e,r){&quot;use strict&quot;;var n=Object.create(null),i=Math.random;e.exports=function(){var t;do{t=i().toString(36).slice(2)}while(n[t]);return t}},{}],217:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/set-prototype-of&quot;),a=t(&quot;es5-ext/string/#/contains&quot;),o=t(&quot;d&quot;),s=t(&quot;es6-symbol&quot;),l=t(&quot;./&quot;),c=Object.defineProperty;n=e.exports=function(t,e){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);l.call(this,t),e=e?a.call(e,&quot;key+value&quot;)?&quot;key+value&quot;:a.call(e,&quot;key&quot;)?&quot;key&quot;:&quot;value&quot;:&quot;value&quot;,c(this,&quot;__kind__&quot;,o(&quot;&quot;,e))},i&amp;&amp;i(n,l),delete n.prototype.constructor,n.prototype=Object.create(l.prototype,{_resolve:o((function(t){return&quot;value&quot;===this.__kind__?this.__list__[t]:&quot;key+value&quot;===this.__kind__?[t,this.__list__[t]]:t}))}),c(n.prototype,s.toStringTag,o(&quot;c&quot;,&quot;Array Iterator&quot;))},{&quot;./&quot;:220,d:155,&quot;es5-ext/object/set-prototype-of&quot;:206,&quot;es5-ext/string/#/contains&quot;:212,&quot;es6-symbol&quot;:225}],218:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/object/valid-callable&quot;),a=t(&quot;es5-ext/string/is-string&quot;),o=t(&quot;./get&quot;),s=Array.isArray,l=Function.prototype.call,c=Array.prototype.some;e.exports=function(t,e){var r,u,f,h,p,d,g,m,v=arguments[2];if(s(t)||n(t)?r=&quot;array&quot;:a(t)?r=&quot;string&quot;:t=o(t),i(e),f=function(){h=!0},&quot;array&quot;!==r)if(&quot;string&quot;!==r)for(u=t.next();!u.done;){if(l.call(e,v,u.value,f),h)return;u=t.next()}else for(d=t.length,p=0;p&lt;d&amp;&amp;(g=t[p],p+1&lt;d&amp;&amp;(m=g.charCodeAt(0))&gt;=55296&amp;&amp;m&lt;=56319&amp;&amp;(g+=t[++p]),l.call(e,v,g,f),!h);++p);else c.call(t,(function(t){return l.call(e,v,t,f),h}))}},{&quot;./get&quot;:219,&quot;es5-ext/function/is-arguments&quot;:184,&quot;es5-ext/object/valid-callable&quot;:209,&quot;es5-ext/string/is-string&quot;:215}],219:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/string/is-string&quot;),a=t(&quot;./array&quot;),o=t(&quot;./string&quot;),s=t(&quot;./valid-iterable&quot;),l=t(&quot;es6-symbol&quot;).iterator;e.exports=function(t){return&quot;function&quot;==typeof s(t)[l]?t[l]():n(t)?new a(t):i(t)?new o(t):new a(t)}},{&quot;./array&quot;:217,&quot;./string&quot;:222,&quot;./valid-iterable&quot;:223,&quot;es5-ext/function/is-arguments&quot;:184,&quot;es5-ext/string/is-string&quot;:215,&quot;es6-symbol&quot;:225}],220:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/array/#/clear&quot;),a=t(&quot;es5-ext/object/assign&quot;),o=t(&quot;es5-ext/object/valid-callable&quot;),s=t(&quot;es5-ext/object/valid-value&quot;),l=t(&quot;d&quot;),c=t(&quot;d/auto-bind&quot;),u=t(&quot;es6-symbol&quot;),f=Object.defineProperty,h=Object.defineProperties;e.exports=n=function(t,e){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);h(this,{__list__:l(&quot;w&quot;,s(t)),__context__:l(&quot;w&quot;,e),__nextIndex__:l(&quot;w&quot;,0)}),e&amp;&amp;(o(e.on),e.on(&quot;_add&quot;,this._onAdd),e.on(&quot;_delete&quot;,this._onDelete),e.on(&quot;_clear&quot;,this._onClear))},delete n.prototype.constructor,h(n.prototype,a({_next:l((function(){var t;if(this.__list__)return this.__redo__&amp;&amp;void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__&lt;this.__list__.length?this.__nextIndex__++:void this._unBind()})),next:l((function(){return this._createResult(this._next())})),_createResult:l((function(t){return void 0===t?{done:!0,value:void 0}:{done:!1,value:this._resolve(t)}})),_resolve:l((function(t){return this.__list__[t]})),_unBind:l((function(){this.__list__=null,delete this.__redo__,this.__context__&amp;&amp;(this.__context__.off(&quot;_add&quot;,this._onAdd),this.__context__.off(&quot;_delete&quot;,this._onDelete),this.__context__.off(&quot;_clear&quot;,this._onClear),this.__context__=null)})),toString:l((function(){return&quot;[object &quot;+(this[u.toStringTag]||&quot;Object&quot;)+&quot;]&quot;}))},c({_onAdd:l((function(t){t&gt;=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach((function(e,r){e&gt;=t&amp;&amp;(this.__redo__[r]=++e)}),this),this.__redo__.push(t)):f(this,&quot;__redo__&quot;,l(&quot;c&quot;,[t])))})),_onDelete:l((function(t){var e;t&gt;=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&amp;&amp;(-1!==(e=this.__redo__.indexOf(t))&amp;&amp;this.__redo__.splice(e,1),this.__redo__.forEach((function(e,r){e&gt;t&amp;&amp;(this.__redo__[r]=--e)}),this)))})),_onClear:l((function(){this.__redo__&amp;&amp;i.call(this.__redo__),this.__nextIndex__=0}))}))),f(n.prototype,u.iterator,l((function(){return this})))},{d:155,&quot;d/auto-bind&quot;:154,&quot;es5-ext/array/#/clear&quot;:180,&quot;es5-ext/object/assign&quot;:193,&quot;es5-ext/object/valid-callable&quot;:209,&quot;es5-ext/object/valid-value&quot;:211,&quot;es6-symbol&quot;:225}],221:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/object/is-value&quot;),a=t(&quot;es5-ext/string/is-string&quot;),o=t(&quot;es6-symbol&quot;).iterator,s=Array.isArray;e.exports=function(t){return!!i(t)&amp;&amp;(!!s(t)||(!!a(t)||(!!n(t)||&quot;function&quot;==typeof t[o])))}},{&quot;es5-ext/function/is-arguments&quot;:184,&quot;es5-ext/object/is-value&quot;:200,&quot;es5-ext/string/is-string&quot;:215,&quot;es6-symbol&quot;:225}],222:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/set-prototype-of&quot;),a=t(&quot;d&quot;),o=t(&quot;es6-symbol&quot;),s=t(&quot;./&quot;),l=Object.defineProperty;n=e.exports=function(t){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);t=String(t),s.call(this,t),l(this,&quot;__length__&quot;,a(&quot;&quot;,t.length))},i&amp;&amp;i(n,s),delete n.prototype.constructor,n.prototype=Object.create(s.prototype,{_next:a((function(){if(this.__list__)return this.__nextIndex__&lt;this.__length__?this.__nextIndex__++:void this._unBind()})),_resolve:a((function(t){var e,r=this.__list__[t];return this.__nextIndex__===this.__length__?r:(e=r.charCodeAt(0))&gt;=55296&amp;&amp;e&lt;=56319?r+this.__list__[this.__nextIndex__++]:r}))}),l(n.prototype,o.toStringTag,a(&quot;c&quot;,&quot;String Iterator&quot;))},{&quot;./&quot;:220,d:155,&quot;es5-ext/object/set-prototype-of&quot;:206,&quot;es6-symbol&quot;:225}],223:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-iterable&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not iterable&quot;);return t}},{&quot;./is-iterable&quot;:221}],224:[function(t,e,r){(function(n,i){(function(){
/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
 * @version   v4.2.8+1e68dce6
 */
!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?e.exports=n():t.ES6Promise=n()}(this,(function(){&quot;use strict&quot;;function e(t){return&quot;function&quot;==typeof t}var r=Array.isArray?Array.isArray:function(t){return&quot;[object Array]&quot;===Object.prototype.toString.call(t)},a=0,o=void 0,s=void 0,l=function(t,e){g[a]=t,g[a+1]=e,2===(a+=2)&amp;&amp;(s?s(m):_())};var c=&quot;undefined&quot;!=typeof window?window:void 0,u=c||{},f=u.MutationObserver||u.WebKitMutationObserver,h=&quot;undefined&quot;==typeof self&amp;&amp;&quot;undefined&quot;!=typeof n&amp;&amp;&quot;[object process]&quot;==={}.toString.call(n),p=&quot;undefined&quot;!=typeof Uint8ClampedArray&amp;&amp;&quot;undefined&quot;!=typeof importScripts&amp;&amp;&quot;undefined&quot;!=typeof MessageChannel;function d(){var t=setTimeout;return function(){return t(m,1)}}var g=new Array(1e3);function m(){for(var t=0;t&lt;a;t+=2){(0,g[t])(g[t+1]),g[t]=void 0,g[t+1]=void 0}a=0}var v,y,x,b,_=void 0;function w(t,e){var r=this,n=new this.constructor(M);void 0===n[k]&amp;&amp;D(n);var i=r._state;if(i){var a=arguments[i-1];l((function(){return z(i,n,a,r._result)}))}else I(r,n,t,e);return n}function T(t){if(t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;t.constructor===this)return t;var e=new this(M);return S(e,t),e}h?_=function(){return n.nextTick(m)}:f?(y=0,x=new f(m),b=document.createTextNode(&quot;&quot;),x.observe(b,{characterData:!0}),_=function(){b.data=y=++y%2}):p?((v=new MessageChannel).port1.onmessage=m,_=function(){return v.port2.postMessage(0)}):_=void 0===c&amp;&amp;&quot;function&quot;==typeof t?function(){try{var t=Function(&quot;return this&quot;)().require(&quot;vertx&quot;);return&quot;undefined&quot;!=typeof(o=t.runOnLoop||t.runOnContext)?function(){o(m)}:d()}catch(t){return d()}}():d();var k=Math.random().toString(36).substring(2);function M(){}function A(t,r,n){r.constructor===t.constructor&amp;&amp;n===w&amp;&amp;r.constructor.resolve===T?function(t,e){1===e._state?C(t,e._result):2===e._state?L(t,e._result):I(e,void 0,(function(e){return S(t,e)}),(function(e){return L(t,e)}))}(t,r):void 0===n?C(t,r):e(n)?function(t,e,r){l((function(t){var n=!1,i=function(t,e,r,n){try{t.call(e,r,n)}catch(t){return t}}(r,e,(function(r){n||(n=!0,e!==r?S(t,r):C(t,r))}),(function(e){n||(n=!0,L(t,e))}),t._label);!n&amp;&amp;i&amp;&amp;(n=!0,L(t,i))}),t)}(t,r,n):C(t,r)}function S(t,e){if(t===e)L(t,new TypeError(&quot;You cannot resolve a promise with itself&quot;));else if(i=typeof(n=e),null===n||&quot;object&quot;!==i&amp;&amp;&quot;function&quot;!==i)C(t,e);else{var r=void 0;try{r=e.then}catch(e){return void L(t,e)}A(t,e,r)}var n,i}function E(t){t._onerror&amp;&amp;t._onerror(t._result),P(t)}function C(t,e){void 0===t._state&amp;&amp;(t._result=e,t._state=1,0!==t._subscribers.length&amp;&amp;l(P,t))}function L(t,e){void 0===t._state&amp;&amp;(t._state=2,t._result=e,l(E,t))}function I(t,e,r,n){var i=t._subscribers,a=i.length;t._onerror=null,i[a]=e,i[a+1]=r,i[a+2]=n,0===a&amp;&amp;t._state&amp;&amp;l(P,t)}function P(t){var e=t._subscribers,r=t._state;if(0!==e.length){for(var n=void 0,i=void 0,a=t._result,o=0;o&lt;e.length;o+=3)n=e[o],i=e[o+r],n?z(r,n,i,a):i(a);t._subscribers.length=0}}function z(t,r,n,i){var a=e(n),o=void 0,s=void 0,l=!0;if(a){try{o=n(i)}catch(t){l=!1,s=t}if(r===o)return void L(r,new TypeError(&quot;A promises callback cannot return that same promise.&quot;))}else o=i;void 0!==r._state||(a&amp;&amp;l?S(r,o):!1===l?L(r,s):1===t?C(r,o):2===t&amp;&amp;L(r,o))}var O=0;function D(t){t[k]=O++,t._state=void 0,t._result=void 0,t._subscribers=[]}var R=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(M),this.promise[k]||D(this.promise),r(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?C(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&amp;&amp;C(this.promise,this._result))):L(this.promise,new Error(&quot;Array Methods must be provided an Array&quot;))}return t.prototype._enumerate=function(t){for(var e=0;void 0===this._state&amp;&amp;e&lt;t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,n=r.resolve;if(n===T){var i=void 0,a=void 0,o=!1;try{i=t.then}catch(t){o=!0,a=t}if(i===w&amp;&amp;void 0!==t._state)this._settledAt(t._state,e,t._result);else if(&quot;function&quot;!=typeof i)this._remaining--,this._result[e]=t;else if(r===F){var s=new r(M);o?L(s,a):A(s,t,i),this._willSettleAt(s,e)}else this._willSettleAt(new r((function(e){return e(t)})),e)}else this._willSettleAt(n(t),e)},t.prototype._settledAt=function(t,e,r){var n=this.promise;void 0===n._state&amp;&amp;(this._remaining--,2===t?L(n,r):this._result[e]=r),0===this._remaining&amp;&amp;C(n,this._result)},t.prototype._willSettleAt=function(t,e){var r=this;I(t,void 0,(function(t){return r._settledAt(1,e,t)}),(function(t){return r._settledAt(2,e,t)}))},t}();var F=function(){function t(e){this[k]=O++,this._result=this._state=void 0,this._subscribers=[],M!==e&amp;&amp;(&quot;function&quot;!=typeof e&amp;&amp;function(){throw new TypeError(&quot;You must pass a resolver function as the first argument to the promise constructor&quot;)}(),this instanceof t?function(t,e){try{e((function(e){S(t,e)}),(function(e){L(t,e)}))}catch(e){L(t,e)}}(this,e):function(){throw new TypeError(&quot;Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.&quot;)}())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var r=this.constructor;return e(t)?this.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){throw e}))})):this.then(t,t)},t}();return F.prototype.then=w,F.all=function(t){return new R(this,t).promise},F.race=function(t){var e=this;return r(t)?new e((function(r,n){for(var i=t.length,a=0;a&lt;i;a++)e.resolve(t[a]).then(r,n)})):new e((function(t,e){return e(new TypeError(&quot;You must pass an array to race.&quot;))}))},F.resolve=T,F.reject=function(t){var e=new this(M);return L(e,t),e},F._setScheduler=function(t){s=t},F._setAsap=function(t){l=t},F._asap=l,F.polyfill=function(){var t=void 0;if(&quot;undefined&quot;!=typeof i)t=i;else if(&quot;undefined&quot;!=typeof self)t=self;else try{t=Function(&quot;return this&quot;)()}catch(t){throw new Error(&quot;polyfill failed because global object is unavailable in this environment&quot;)}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if(&quot;[object Promise]&quot;===r&amp;&amp;!e.cast)return}t.Promise=F},F.Promise=F,F}))}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{_process:526}],225:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?t(&quot;ext/global-this&quot;).Symbol:t(&quot;./polyfill&quot;)},{&quot;./is-implemented&quot;:226,&quot;./polyfill&quot;:231,&quot;ext/global-this&quot;:238}],226:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ext/global-this&quot;),i={object:!0,symbol:!0};e.exports=function(){var t,e=n.Symbol;if(&quot;function&quot;!=typeof e)return!1;t=e(&quot;test symbol&quot;);try{String(t)}catch(t){return!1}return!!i[typeof e.iterator]&amp;&amp;(!!i[typeof e.toPrimitive]&amp;&amp;!!i[typeof e.toStringTag])}},{&quot;ext/global-this&quot;:238}],227:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return!!t&amp;&amp;(&quot;symbol&quot;==typeof t||!!t.constructor&amp;&amp;(&quot;Symbol&quot;===t.constructor.name&amp;&amp;&quot;Symbol&quot;===t[t.constructor.toStringTag]))}},{}],228:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=Object.create,a=Object.defineProperty,o=Object.prototype,s=i(null);e.exports=function(t){for(var e,r,i=0;s[t+(i||&quot;&quot;)];)++i;return s[t+=i||&quot;&quot;]=!0,a(o,e=&quot;@@&quot;+t,n.gs(null,(function(t){r||(r=!0,a(this,e,n(t)),r=!1)}))),e}},{d:155}],229:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=t(&quot;ext/global-this&quot;).Symbol;e.exports=function(t){return Object.defineProperties(t,{hasInstance:n(&quot;&quot;,i&amp;&amp;i.hasInstance||t(&quot;hasInstance&quot;)),isConcatSpreadable:n(&quot;&quot;,i&amp;&amp;i.isConcatSpreadable||t(&quot;isConcatSpreadable&quot;)),iterator:n(&quot;&quot;,i&amp;&amp;i.iterator||t(&quot;iterator&quot;)),match:n(&quot;&quot;,i&amp;&amp;i.match||t(&quot;match&quot;)),replace:n(&quot;&quot;,i&amp;&amp;i.replace||t(&quot;replace&quot;)),search:n(&quot;&quot;,i&amp;&amp;i.search||t(&quot;search&quot;)),species:n(&quot;&quot;,i&amp;&amp;i.species||t(&quot;species&quot;)),split:n(&quot;&quot;,i&amp;&amp;i.split||t(&quot;split&quot;)),toPrimitive:n(&quot;&quot;,i&amp;&amp;i.toPrimitive||t(&quot;toPrimitive&quot;)),toStringTag:n(&quot;&quot;,i&amp;&amp;i.toStringTag||t(&quot;toStringTag&quot;)),unscopables:n(&quot;&quot;,i&amp;&amp;i.unscopables||t(&quot;unscopables&quot;))})}},{d:155,&quot;ext/global-this&quot;:238}],230:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=t(&quot;../../../validate-symbol&quot;),a=Object.create(null);e.exports=function(t){return Object.defineProperties(t,{for:n((function(e){return a[e]?a[e]:a[e]=t(String(e))})),keyFor:n((function(t){var e;for(e in i(t),a)if(a[e]===t)return e}))})}},{&quot;../../../validate-symbol&quot;:232,d:155}],231:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o=t(&quot;d&quot;),s=t(&quot;./validate-symbol&quot;),l=t(&quot;ext/global-this&quot;).Symbol,c=t(&quot;./lib/private/generate-name&quot;),u=t(&quot;./lib/private/setup/standard-symbols&quot;),f=t(&quot;./lib/private/setup/symbol-registry&quot;),h=Object.create,p=Object.defineProperties,d=Object.defineProperty;if(&quot;function&quot;==typeof l)try{String(l()),a=!0}catch(t){}else l=null;i=function(t){if(this instanceof i)throw new TypeError(&quot;Symbol is not a constructor&quot;);return n(t)},e.exports=n=function t(e){var r;if(this instanceof t)throw new TypeError(&quot;Symbol is not a constructor&quot;);return a?l(e):(r=h(i.prototype),e=void 0===e?&quot;&quot;:String(e),p(r,{__description__:o(&quot;&quot;,e),__name__:o(&quot;&quot;,c(e))}))},u(n),f(n),p(i.prototype,{constructor:o(n),toString:o(&quot;&quot;,(function(){return this.__name__}))}),p(n.prototype,{toString:o((function(){return&quot;Symbol (&quot;+s(this).__description__+&quot;)&quot;})),valueOf:o((function(){return s(this)}))}),d(n.prototype,n.toPrimitive,o(&quot;&quot;,(function(){var t=s(this);return&quot;symbol&quot;==typeof t?t:t.toString()}))),d(n.prototype,n.toStringTag,o(&quot;c&quot;,&quot;Symbol&quot;)),d(i.prototype,n.toStringTag,o(&quot;c&quot;,n.prototype[n.toStringTag])),d(i.prototype,n.toPrimitive,o(&quot;c&quot;,n.prototype[n.toPrimitive]))},{&quot;./lib/private/generate-name&quot;:228,&quot;./lib/private/setup/standard-symbols&quot;:229,&quot;./lib/private/setup/symbol-registry&quot;:230,&quot;./validate-symbol&quot;:232,d:155,&quot;ext/global-this&quot;:238}],232:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-symbol&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not a symbol&quot;);return t}},{&quot;./is-symbol&quot;:227}],233:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?WeakMap:t(&quot;./polyfill&quot;)},{&quot;./is-implemented&quot;:234,&quot;./polyfill&quot;:236}],234:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e;if(&quot;function&quot;!=typeof WeakMap)return!1;try{t=new WeakMap([[e={},&quot;one&quot;],[{},&quot;two&quot;],[{},&quot;three&quot;]])}catch(t){return!1}return&quot;[object WeakMap]&quot;===String(t)&amp;&amp;(&quot;function&quot;==typeof t.set&amp;&amp;(t.set({},1)===t&amp;&amp;(&quot;function&quot;==typeof t.delete&amp;&amp;(&quot;function&quot;==typeof t.has&amp;&amp;&quot;one&quot;===t.get(e)))))}},{}],235:[function(t,e,r){&quot;use strict&quot;;e.exports=&quot;function&quot;==typeof WeakMap&amp;&amp;&quot;[object WeakMap]&quot;===Object.prototype.toString.call(new WeakMap)},{}],236:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/is-value&quot;),a=t(&quot;es5-ext/object/set-prototype-of&quot;),o=t(&quot;es5-ext/object/valid-object&quot;),s=t(&quot;es5-ext/object/valid-value&quot;),l=t(&quot;es5-ext/string/random-uniq&quot;),c=t(&quot;d&quot;),u=t(&quot;es6-iterator/get&quot;),f=t(&quot;es6-iterator/for-of&quot;),h=t(&quot;es6-symbol&quot;).toStringTag,p=t(&quot;./is-native-implemented&quot;),d=Array.isArray,g=Object.defineProperty,m=Object.prototype.hasOwnProperty,v=Object.getPrototypeOf;e.exports=n=function(){var t,e=arguments[0];if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);return t=p&amp;&amp;a&amp;&amp;WeakMap!==n?a(new WeakMap,v(this)):this,i(e)&amp;&amp;(d(e)||(e=u(e))),g(t,&quot;__weakMapData__&quot;,c(&quot;c&quot;,&quot;$weakMap$&quot;+l())),e?(f(e,(function(e){s(e),t.set(e[0],e[1])})),t):t},p&amp;&amp;(a&amp;&amp;a(n,WeakMap),n.prototype=Object.create(WeakMap.prototype,{constructor:c(n)})),Object.defineProperties(n.prototype,{delete:c((function(t){return!!m.call(o(t),this.__weakMapData__)&amp;&amp;(delete t[this.__weakMapData__],!0)})),get:c((function(t){if(m.call(o(t),this.__weakMapData__))return t[this.__weakMapData__]})),has:c((function(t){return m.call(o(t),this.__weakMapData__)})),set:c((function(t,e){return g(o(t),this.__weakMapData__,c(&quot;c&quot;,e)),this})),toString:c((function(){return&quot;[object WeakMap]&quot;}))}),g(n.prototype,h,c(&quot;c&quot;,&quot;WeakMap&quot;))},{&quot;./is-native-implemented&quot;:235,d:155,&quot;es5-ext/object/is-value&quot;:200,&quot;es5-ext/object/set-prototype-of&quot;:206,&quot;es5-ext/object/valid-object&quot;:210,&quot;es5-ext/object/valid-value&quot;:211,&quot;es5-ext/string/random-uniq&quot;:216,&quot;es6-iterator/for-of&quot;:218,&quot;es6-iterator/get&quot;:219,&quot;es6-symbol&quot;:225}],237:[function(t,e,r){var n=function(){if(&quot;object&quot;==typeof self&amp;&amp;self)return self;if(&quot;object&quot;==typeof window&amp;&amp;window)return window;throw new Error(&quot;Unable to resolve global `this`&quot;)};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,&quot;__global__&quot;,{get:function(){return this},configurable:!0})}catch(t){return n()}try{return __global__||n()}finally{delete Object.prototype.__global__}}()},{}],238:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?globalThis:t(&quot;./implementation&quot;)},{&quot;./implementation&quot;:237,&quot;./is-implemented&quot;:239}],239:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){return&quot;object&quot;==typeof globalThis&amp;&amp;(!!globalThis&amp;&amp;globalThis.Array===Array)}},{}],240:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n=e||0,i=r||1;return[[t[12]+t[0],t[13]+t[1],t[14]+t[2],t[15]+t[3]],[t[12]-t[0],t[13]-t[1],t[14]-t[2],t[15]-t[3]],[t[12]+t[4],t[13]+t[5],t[14]+t[6],t[15]+t[7]],[t[12]-t[4],t[13]-t[5],t[14]-t[6],t[15]-t[7]],[n*t[12]+t[8],n*t[13]+t[9],n*t[14]+t[10],n*t[15]+t[11]],[i*t[12]-t[8],i*t[13]-t[9],i*t[14]-t[10],i*t[15]-t[11]]]}},{}],241:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-string-blank&quot;);e.exports=function(t){var e=typeof t;if(&quot;string&quot;===e){var r=t;if(0===(t=+t)&amp;&amp;n(r))return!1}else if(&quot;number&quot;!==e)return!1;return t-t&lt;1}},{&quot;is-string-blank&quot;:470}],242:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){switch(arguments.length){case 0:return new o([0],[0],0);case 1:return&quot;number&quot;==typeof t?new o(n=l(t),n,0):new o(t,l(t.length),0);case 2:if(&quot;number&quot;==typeof e){var n=l(t.length);return new o(t,n,+e)}r=0;case 3:if(t.length!==e.length)throw new Error(&quot;state and velocity lengths must match&quot;);return new o(t,e,r)}};var n=t(&quot;cubic-hermite&quot;),i=t(&quot;binary-search-bounds&quot;);function a(t,e,r){return Math.min(e,Math.max(t,r))}function o(t,e,r){this.dimension=t.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var n=0;n&lt;this.dimension;++n)this.bounds[0][n]=-1/0,this.bounds[1][n]=1/0;this._state=t.slice().reverse(),this._velocity=e.slice().reverse(),this._time=[r],this._scratch=[t.slice(),t.slice(),t.slice(),t.slice(),t.slice()]}var s=o.prototype;function l(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=0;return e}s.flush=function(t){var e=i.gt(this._time,t)-1;e&lt;=0||(this._time.splice(0,e),this._state.splice(0,e*this.dimension),this._velocity.splice(0,e*this.dimension))},s.curve=function(t){var e=this._time,r=e.length,o=i.le(e,t),s=this._scratch[0],l=this._state,c=this._velocity,u=this.dimension,f=this.bounds;if(o&lt;0)for(var h=u-1,p=0;p&lt;u;++p,--h)s[p]=l[h];else if(o&gt;=r-1){h=l.length-1;var d=t-e[r-1];for(p=0;p&lt;u;++p,--h)s[p]=l[h]+d*c[h]}else{h=u*(o+1)-1;var g=e[o],m=e[o+1]-g||1,v=this._scratch[1],y=this._scratch[2],x=this._scratch[3],b=this._scratch[4],_=!0;for(p=0;p&lt;u;++p,--h)v[p]=l[h],x[p]=c[h]*m,y[p]=l[h+u],b[p]=c[h+u]*m,_=_&amp;&amp;v[p]===y[p]&amp;&amp;x[p]===b[p]&amp;&amp;0===x[p];if(_)for(p=0;p&lt;u;++p)s[p]=v[p];else n(v,x,y,b,(t-g)/m,s)}var w=f[0],T=f[1];for(p=0;p&lt;u;++p)s[p]=a(w[p],T[p],s[p]);return s},s.dcurve=function(t){var e=this._time,r=e.length,a=i.le(e,t),o=this._scratch[0],s=this._state,l=this._velocity,c=this.dimension;if(a&gt;=r-1)for(var u=s.length-1,f=(e[r-1],0);f&lt;c;++f,--u)o[f]=l[u];else{u=c*(a+1)-1;var h=e[a],p=e[a+1]-h||1,d=this._scratch[1],g=this._scratch[2],m=this._scratch[3],v=this._scratch[4],y=!0;for(f=0;f&lt;c;++f,--u)d[f]=s[u],m[f]=l[u]*p,g[f]=s[u+c],v[f]=l[u+c]*p,y=y&amp;&amp;d[f]===g[f]&amp;&amp;m[f]===v[f]&amp;&amp;0===m[f];if(y)for(f=0;f&lt;c;++f)o[f]=0;else{n.derivative(d,m,g,v,(t-h)/p,o);for(f=0;f&lt;c;++f)o[f]/=p}}return o},s.lastT=function(){var t=this._time;return t[t.length-1]},s.stable=function(){for(var t=this._velocity,e=t.length,r=this.dimension-1;r&gt;=0;--r)if(t[--e])return!1;return!0},s.jump=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1];this._time.push(e,t);for(var u=0;u&lt;2;++u)for(var f=0;f&lt;r;++f)n.push(n[o++]),i.push(0);this._time.push(t);for(f=r;f&gt;0;--f)n.push(a(l[f-1],c[f-1],arguments[f])),i.push(0)}},s.push=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=t-e,l=this.bounds,c=l[0],u=l[1],f=s&gt;1e-6?1/s:0;this._time.push(t);for(var h=r;h&gt;0;--h){var p=a(c[h-1],u[h-1],arguments[h]);n.push(p),i.push((p-n[o++])*f)}}},s.set=function(t){var e=this.dimension;if(!(t&lt;this.lastT()||arguments.length!==e+1)){var r=this._state,n=this._velocity,i=this.bounds,o=i[0],s=i[1];this._time.push(t);for(var l=e;l&gt;0;--l)r.push(a(o[l-1],s[l-1],arguments[l])),n.push(0)}},s.move=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;=e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1],u=t-e,f=u&gt;1e-6?1/u:0;this._time.push(t);for(var h=r;h&gt;0;--h){var p=arguments[h];n.push(a(l[h-1],c[h-1],n[o++]+p)),i.push(p*f)}}},s.idle=function(t){var e=this.lastT();if(!(t&lt;e)){var r=this.dimension,n=this._state,i=this._velocity,o=n.length-r,s=this.bounds,l=s[0],c=s[1],u=t-e;this._time.push(t);for(var f=r-1;f&gt;=0;--f)n.push(a(l[f],c[f],n[o]+u*i[o])),i.push(0),o+=1}}},{&quot;binary-search-bounds&quot;:243,&quot;cubic-hermite&quot;:150}],243:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i,a){var o=[&quot;function &quot;,t,&quot;(a,l,h,&quot;,n.join(&quot;,&quot;),&quot;){&quot;,a?&quot;&quot;:&quot;var i=&quot;,r?&quot;l-1&quot;:&quot;h+1&quot;,&quot;;while(l&lt;=h){var m=(l+h)&gt;&gt;&gt;1,x=a&quot;,i?&quot;.get(m)&quot;:&quot;[m]&quot;];return a?e.indexOf(&quot;c&quot;)&lt;0?o.push(&quot;;if(x===y){return m}else if(x&lt;=y){&quot;):o.push(&quot;;var p=c(x,y);if(p===0){return m}else if(p&lt;=0){&quot;):o.push(&quot;;if(&quot;,e,&quot;){i=m;&quot;),r?o.push(&quot;l=m+1}else{h=m-1}&quot;):o.push(&quot;h=m-1}else{l=m+1}&quot;),o.push(&quot;}&quot;),a?o.push(&quot;return -1};&quot;):o.push(&quot;return i};&quot;),o.join(&quot;&quot;)}function i(t,e,r,i){return new Function([n(&quot;A&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],!1,i),n(&quot;B&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],!0,i),n(&quot;P&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],!1,i),n(&quot;Q&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],!0,i),&quot;function dispatchBsearch&quot;,r,&quot;(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch&quot;,r].join(&quot;&quot;))()}e.exports={ge:i(&quot;&gt;=&quot;,!1,&quot;GE&quot;),gt:i(&quot;&gt;&quot;,!1,&quot;GT&quot;),lt:i(&quot;&lt;&quot;,!0,&quot;LT&quot;),le:i(&quot;&lt;=&quot;,!0,&quot;LE&quot;),eq:i(&quot;-&quot;,!0,&quot;EQ&quot;,!0)}},{}],244:[function(t,e,r){var n=t(&quot;dtype&quot;);e.exports=function(t,e,r){if(!t)throw new TypeError(&quot;must specify data as first parameter&quot;);if(r=0|+(r||0),Array.isArray(t)&amp;&amp;t[0]&amp;&amp;&quot;number&quot;==typeof t[0][0]){var i,a,o,s,l=t[0].length,c=t.length*l;e&amp;&amp;&quot;string&quot;!=typeof e||(e=new(n(e||&quot;float32&quot;))(c+r));var u=e.length-r;if(c!==u)throw new Error(&quot;source length &quot;+c+&quot; (&quot;+l+&quot;x&quot;+t.length+&quot;) does not match destination length &quot;+u);for(i=0,o=r;i&lt;t.length;i++)for(a=0;a&lt;l;a++)e[o++]=null===t[i][a]?NaN:t[i][a]}else if(e&amp;&amp;&quot;string&quot;!=typeof e)e.set(t,r);else{var f=n(e||&quot;float32&quot;);if(Array.isArray(t)||&quot;array&quot;===e)for(e=new f(t.length+r),i=0,o=r,s=e.length;o&lt;s;o++,i++)e[o]=null===t[i]?NaN:t[i];else 0===r?e=new f(t):(e=new f(t.length+r)).set(t,r)}return e}},{dtype:175}],245:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font/stringify&quot;),i=[32,126];e.exports=function(t){var e=(t=t||{}).shape?t.shape:t.canvas?[t.canvas.width,t.canvas.height]:[512,512],r=t.canvas||document.createElement(&quot;canvas&quot;),a=t.font,o=&quot;number&quot;==typeof t.step?[t.step,t.step]:t.step||[32,32],s=t.chars||i;a&amp;&amp;&quot;string&quot;!=typeof a&amp;&amp;(a=n(a));if(Array.isArray(s)){if(2===s.length&amp;&amp;&quot;number&quot;==typeof s[0]&amp;&amp;&quot;number&quot;==typeof s[1]){for(var l=[],c=s[0],u=0;c&lt;=s[1];c++)l[u++]=String.fromCharCode(c);s=l}}else s=String(s).split(&quot;&quot;);e=e.slice(),r.width=e[0],r.height=e[1];var f=r.getContext(&quot;2d&quot;);f.fillStyle=&quot;#000&quot;,f.fillRect(0,0,r.width,r.height),f.font=a,f.textAlign=&quot;center&quot;,f.textBaseline=&quot;middle&quot;,f.fillStyle=&quot;#fff&quot;;var h=o[0]/2,p=o[1]/2;for(c=0;c&lt;s.length;c++)f.fillText(s[c],h,p),(h+=o[0])&gt;e[0]-o[0]/2&amp;&amp;(h=o[0]/2,p+=o[1]);return r}},{&quot;css-font/stringify&quot;:147}],246:[function(t,e,r){&quot;use strict&quot;;function n(t,e){e||(e={}),(&quot;string&quot;==typeof t||Array.isArray(t))&amp;&amp;(e.family=t);var r=Array.isArray(e.family)?e.family.join(&quot;, &quot;):e.family;if(!r)throw Error(&quot;`family` must be defined&quot;);var s=e.size||e.fontSize||e.em||48,l=e.weight||e.fontWeight||&quot;&quot;,c=(t=[e.style||e.fontStyle||&quot;&quot;,l,s].join(&quot; &quot;)+&quot;px &quot;+r,e.origin||&quot;top&quot;);if(n.cache[r]&amp;&amp;s&lt;=n.cache[r].em)return i(n.cache[r],c);var u=e.canvas||n.canvas,f=u.getContext(&quot;2d&quot;),h={upper:void 0!==e.upper?e.upper:&quot;H&quot;,lower:void 0!==e.lower?e.lower:&quot;x&quot;,descent:void 0!==e.descent?e.descent:&quot;p&quot;,ascent:void 0!==e.ascent?e.ascent:&quot;h&quot;,tittle:void 0!==e.tittle?e.tittle:&quot;i&quot;,overshoot:void 0!==e.overshoot?e.overshoot:&quot;O&quot;},p=Math.ceil(1.5*s);u.height=p,u.width=.5*p,f.font=t;var d={top:0};f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillStyle=&quot;black&quot;,f.fillText(&quot;H&quot;,0,0);var g=a(f.getImageData(0,0,p,p));f.clearRect(0,0,p,p),f.textBaseline=&quot;bottom&quot;,f.fillText(&quot;H&quot;,0,p);var m=a(f.getImageData(0,0,p,p));d.lineHeight=d.bottom=p-m+g,f.clearRect(0,0,p,p),f.textBaseline=&quot;alphabetic&quot;,f.fillText(&quot;H&quot;,0,p);var v=p-a(f.getImageData(0,0,p,p))-1+g;d.baseline=d.alphabetic=v,f.clearRect(0,0,p,p),f.textBaseline=&quot;middle&quot;,f.fillText(&quot;H&quot;,0,.5*p);var y=a(f.getImageData(0,0,p,p));d.median=d.middle=p-y-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=&quot;hanging&quot;,f.fillText(&quot;H&quot;,0,.5*p);var x=a(f.getImageData(0,0,p,p));d.hanging=p-x-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=&quot;ideographic&quot;,f.fillText(&quot;H&quot;,0,p);var b=a(f.getImageData(0,0,p,p));if(d.ideographic=p-b-1+g,h.upper&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.upper,0,0),d.upper=a(f.getImageData(0,0,p,p)),d.capHeight=d.baseline-d.upper),h.lower&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.lower,0,0),d.lower=a(f.getImageData(0,0,p,p)),d.xHeight=d.baseline-d.lower),h.tittle&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.tittle,0,0),d.tittle=a(f.getImageData(0,0,p,p))),h.ascent&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.ascent,0,0),d.ascent=a(f.getImageData(0,0,p,p))),h.descent&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.descent,0,0),d.descent=o(f.getImageData(0,0,p,p))),h.overshoot){f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.overshoot,0,0);var _=o(f.getImageData(0,0,p,p));d.overshoot=_-v}for(var w in d)d[w]/=s;return d.em=s,n.cache[r]=d,i(d,c)}function i(t,e){var r={};for(var n in&quot;string&quot;==typeof e&amp;&amp;(e=t[e]),t)&quot;em&quot;!==n&amp;&amp;(r[n]=t[n]-e);return r}function a(t){for(var e=t.height,r=t.data,n=3;n&lt;r.length;n+=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}function o(t){for(var e=t.height,r=t.data,n=r.length-1;n&gt;0;n-=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}e.exports=n,n.canvas=document.createElement(&quot;canvas&quot;),n.cache={}},{}],247:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return new s(t||g,null)};function n(t,e,r,n,i,a){this._color=t,this.key=e,this.value=r,this.left=n,this.right=i,this._count=a}function i(t){return new n(t._color,t.key,t.value,t.left,t.right,t._count)}function a(t,e){return new n(t,e.key,e.value,e.left,e.right,e._count)}function o(t){t._count=1+(t.left?t.left._count:0)+(t.right?t.right._count:0)}function s(t,e){this._compare=t,this.root=e}var l=s.prototype;function c(t,e){var r;if(e.left&amp;&amp;(r=c(t,e.left)))return r;return(r=t(e.key,e.value))||(e.right?c(t,e.right):void 0)}function u(t,e,r,n){if(e(t,n.key)&lt;=0){var i;if(n.left)if(i=u(t,e,r,n.left))return i;if(i=r(n.key,n.value))return i}if(n.right)return u(t,e,r,n.right)}function f(t,e,r,n,i){var a,o=r(t,i.key),s=r(e,i.key);if(o&lt;=0){if(i.left&amp;&amp;(a=f(t,e,r,n,i.left)))return a;if(s&gt;0&amp;&amp;(a=n(i.key,i.value)))return a}if(s&gt;0&amp;&amp;i.right)return f(t,e,r,n,i.right)}function h(t,e){this.tree=t,this._stack=e}Object.defineProperty(l,&quot;keys&quot;,{get:function(){var t=[];return this.forEach((function(e,r){t.push(e)})),t}}),Object.defineProperty(l,&quot;values&quot;,{get:function(){var t=[];return this.forEach((function(e,r){t.push(r)})),t}}),Object.defineProperty(l,&quot;length&quot;,{get:function(){return this.root?this.root._count:0}}),l.insert=function(t,e){for(var r=this._compare,i=this.root,l=[],c=[];i;){var u=r(t,i.key);l.push(i),c.push(u),i=u&lt;=0?i.left:i.right}l.push(new n(0,t,e,null,null,1));for(var f=l.length-2;f&gt;=0;--f){i=l[f];c[f]&lt;=0?l[f]=new n(i._color,i.key,i.value,l[f+1],i.right,i._count+1):l[f]=new n(i._color,i.key,i.value,i.left,l[f+1],i._count+1)}for(f=l.length-1;f&gt;1;--f){var h=l[f-1];i=l[f];if(1===h._color||1===i._color)break;var p=l[f-2];if(p.left===h)if(h.left===i){if(!(d=p.right)||0!==d._color){if(p._color=0,p.left=h.right,h._color=1,h.right=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f&gt;=3)(g=l[f-3]).left===p?g.left=h:g.right=h;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else{if(!(d=p.right)||0!==d._color){if(h.right=i.left,p._color=0,p.left=i.right,i._color=1,i.left=h,i.right=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f&gt;=3)(g=l[f-3]).left===p?g.left=i:g.right=i;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else if(h.right===i){if(!(d=p.left)||0!==d._color){if(p._color=0,p.right=h.left,h._color=1,h.left=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f&gt;=3)(g=l[f-3]).right===p?g.right=h:g.left=h;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}else{var d;if(!(d=p.left)||0!==d._color){var g;if(h.left=i.right,p._color=0,p.right=i.left,i._color=1,i.right=h,i.left=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f&gt;=3)(g=l[f-3]).right===p?g.right=i:g.left=i;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}}return l[0]._color=1,new s(r,l[0])},l.forEach=function(t,e,r){if(this.root)switch(arguments.length){case 1:return c(t,this.root);case 2:return u(e,this._compare,t,this.root);case 3:if(this._compare(e,r)&gt;=0)return;return f(e,r,this._compare,t,this.root)}},Object.defineProperty(l,&quot;begin&quot;,{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.left;return new h(this,t)}}),Object.defineProperty(l,&quot;end&quot;,{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.right;return new h(this,t)}}),l.at=function(t){if(t&lt;0)return new h(this,[]);for(var e=this.root,r=[];;){if(r.push(e),e.left){if(t&lt;e.left._count){e=e.left;continue}t-=e.left._count}if(!t)return new h(this,r);if(t-=1,!e.right)break;if(t&gt;=e.right._count)break;e=e.right}return new h(this,[])},l.ge=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&lt;=0&amp;&amp;(i=n.length),r=a&lt;=0?r.left:r.right}return n.length=i,new h(this,n)},l.gt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&lt;0&amp;&amp;(i=n.length),r=a&lt;0?r.left:r.right}return n.length=i,new h(this,n)},l.lt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&gt;0&amp;&amp;(i=n.length),r=a&lt;=0?r.left:r.right}return n.length=i,new h(this,n)},l.le=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&gt;=0&amp;&amp;(i=n.length),r=a&lt;0?r.left:r.right}return n.length=i,new h(this,n)},l.find=function(t){for(var e=this._compare,r=this.root,n=[];r;){var i=e(t,r.key);if(n.push(r),0===i)return new h(this,n);r=i&lt;=0?r.left:r.right}return new h(this,[])},l.remove=function(t){var e=this.find(t);return e?e.remove():this},l.get=function(t){for(var e=this._compare,r=this.root;r;){var n=e(t,r.key);if(0===n)return r.value;r=n&lt;=0?r.left:r.right}};var p=h.prototype;function d(t,e){t.key=e.key,t.value=e.value,t.left=e.left,t.right=e.right,t._color=e._color,t._count=e._count}function g(t,e){return t&lt;e?-1:t&gt;e?1:0}Object.defineProperty(p,&quot;valid&quot;,{get:function(){return this._stack.length&gt;0}}),Object.defineProperty(p,&quot;node&quot;,{get:function(){return this._stack.length&gt;0?this._stack[this._stack.length-1]:null},enumerable:!0}),p.clone=function(){return new h(this.tree,this._stack.slice())},p.remove=function(){var t=this._stack;if(0===t.length)return this.tree;var e=new Array(t.length),r=t[t.length-1];e[e.length-1]=new n(r._color,r.key,r.value,r.left,r.right,r._count);for(var l=t.length-2;l&gt;=0;--l){(r=t[l]).left===t[l+1]?e[l]=new n(r._color,r.key,r.value,e[l+1],r.right,r._count):e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count)}if((r=e[e.length-1]).left&amp;&amp;r.right){var c=e.length;for(r=r.left;r.right;)e.push(r),r=r.right;var u=e[c-1];e.push(new n(r._color,u.key,u.value,r.left,r.right,r._count)),e[c-1].key=r.key,e[c-1].value=r.value;for(l=e.length-2;l&gt;=c;--l)r=e[l],e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count);e[c-1].left=e[c]}if(0===(r=e[e.length-1])._color){var f=e[e.length-2];f.left===r?f.left=null:f.right===r&amp;&amp;(f.right=null),e.pop();for(l=0;l&lt;e.length;++l)e[l]._count--;return new s(this.tree._compare,e[0])}if(r.left||r.right){r.left?d(r,r.left):r.right&amp;&amp;d(r,r.right),r._color=1;for(l=0;l&lt;e.length-1;++l)e[l]._count--;return new s(this.tree._compare,e[0])}if(1===e.length)return new s(this.tree._compare,null);for(l=0;l&lt;e.length;++l)e[l]._count--;var h=e[e.length-2];return function(t){for(var e,r,n,s,l=t.length-1;l&gt;=0;--l){if(e=t[l],0===l)return void(e._color=1);if((r=t[l-1]).left===e){if((n=r.right).right&amp;&amp;0===n.right._color){if(s=(n=r.right=i(n)).right=i(n.right),r.right=n.left,n.left=r,n.right=s,n._color=r._color,e._color=1,r._color=1,s._color=1,o(r),o(n),l&gt;1)(c=t[l-2]).left===r?c.left=n:c.right=n;return void(t[l-1]=n)}if(n.left&amp;&amp;0===n.left._color){if(s=(n=r.right=i(n)).left=i(n.left),r.right=s.left,n.left=s.right,s.left=r,s.right=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l&gt;1)(c=t[l-2]).left===r?c.left=s:c.right=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.right=a(0,n));r.right=a(0,n);continue}n=i(n),r.right=n.left,n.left=r,n._color=r._color,r._color=0,o(r),o(n),l&gt;1&amp;&amp;((c=t[l-2]).left===r?c.left=n:c.right=n),t[l-1]=n,t[l]=r,l+1&lt;t.length?t[l+1]=e:t.push(e),l+=2}else{if((n=r.left).left&amp;&amp;0===n.left._color){if(s=(n=r.left=i(n)).left=i(n.left),r.left=n.right,n.right=r,n.left=s,n._color=r._color,e._color=1,r._color=1,s._color=1,o(r),o(n),l&gt;1)(c=t[l-2]).right===r?c.right=n:c.left=n;return void(t[l-1]=n)}if(n.right&amp;&amp;0===n.right._color){if(s=(n=r.left=i(n)).right=i(n.right),r.left=s.right,n.right=s.left,s.right=r,s.left=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l&gt;1)(c=t[l-2]).right===r?c.right=s:c.left=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.left=a(0,n));r.left=a(0,n);continue}var c;n=i(n),r.left=n.right,n.right=r,n._color=r._color,r._color=0,o(r),o(n),l&gt;1&amp;&amp;((c=t[l-2]).right===r?c.right=n:c.left=n),t[l-1]=n,t[l]=r,l+1&lt;t.length?t[l+1]=e:t.push(e),l+=2}}}(e),h.left===r?h.left=null:h.right=null,new s(this.tree._compare,e[0])},Object.defineProperty(p,&quot;key&quot;,{get:function(){if(this._stack.length&gt;0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(p,&quot;value&quot;,{get:function(){if(this._stack.length&gt;0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(p,&quot;index&quot;,{get:function(){var t=0,e=this._stack;if(0===e.length){var r=this.tree.root;return r?r._count:0}e[e.length-1].left&amp;&amp;(t=e[e.length-1].left._count);for(var n=e.length-2;n&gt;=0;--n)e[n+1]===e[n].right&amp;&amp;(++t,e[n].left&amp;&amp;(t+=e[n].left._count));return t},enumerable:!0}),p.next=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.right)for(e=e.right;e;)t.push(e),e=e.left;else for(t.pop();t.length&gt;0&amp;&amp;t[t.length-1].right===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,&quot;hasNext&quot;,{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].right)return!0;for(var e=t.length-1;e&gt;0;--e)if(t[e-1].left===t[e])return!0;return!1}}),p.update=function(t){var e=this._stack;if(0===e.length)throw new Error(&quot;Can't update empty node!&quot;);var r=new Array(e.length),i=e[e.length-1];r[r.length-1]=new n(i._color,i.key,t,i.left,i.right,i._count);for(var a=e.length-2;a&gt;=0;--a)(i=e[a]).left===e[a+1]?r[a]=new n(i._color,i.key,i.value,r[a+1],i.right,i._count):r[a]=new n(i._color,i.key,i.value,i.left,r[a+1],i._count);return new s(this.tree._compare,r[0])},p.prev=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.left)for(e=e.left;e;)t.push(e),e=e.right;else for(t.pop();t.length&gt;0&amp;&amp;t[t.length-1].left===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,&quot;hasPrev&quot;,{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].left)return!0;for(var e=t.length-1;e&gt;0;--e)if(t[e-1].right===t[e])return!0;return!1}})},{}],248:[function(t,e,r){var n=[.9999999999998099,676.5203681218851,-1259.1392167224028,771.3234287776531,-176.6150291621406,12.507343278686905,-.13857109526572012,9984369578019572e-21,1.5056327351493116e-7],i=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function a(t){if(t&lt;0)return Number(&quot;0/0&quot;);for(var e=i[0],r=i.length-1;r&gt;0;--r)e+=i[r]/(t+r);var n=t+607/128+.5;return.5*Math.log(2*Math.PI)+(t+.5)*Math.log(n)-n+Math.log(e)-Math.log(t)}e.exports=function t(e){if(e&lt;.5)return Math.PI/(Math.sin(Math.PI*e)*t(1-e));if(e&gt;100)return Math.exp(a(e));e-=1;for(var r=n[0],i=1;i&lt;9;i++)r+=n[i]/(e+i);var o=e+7+.5;return Math.sqrt(2*Math.PI)*Math.pow(o,e+.5)*Math.exp(-o)*r},e.exports.log=a},{}],249:[function(t,e,r){e.exports=function(t,e){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;must specify type string&quot;);if(e=e||{},&quot;undefined&quot;==typeof document&amp;&amp;!e.canvas)return null;var r=e.canvas||document.createElement(&quot;canvas&quot;);&quot;number&quot;==typeof e.width&amp;&amp;(r.width=e.width);&quot;number&quot;==typeof e.height&amp;&amp;(r.height=e.height);var n,i=e;try{var a=[t];0===t.indexOf(&quot;webgl&quot;)&amp;&amp;a.push(&quot;experimental-&quot;+t);for(var o=0;o&lt;a.length;o++)if(n=r.getContext(a[o],i))return n}catch(t){n=null}return n||null}},{}],250:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=new u(t);return r.update(e),r};var n=t(&quot;./lib/text.js&quot;),i=t(&quot;./lib/lines.js&quot;),a=t(&quot;./lib/background.js&quot;),o=t(&quot;./lib/cube.js&quot;),s=t(&quot;./lib/ticks.js&quot;),l=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t){this.gl=t,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=[&quot;auto&quot;,&quot;auto&quot;,&quot;auto&quot;],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],this.labelEnable=[!0,!0,!0],this.labelFont=&quot;sans-serif&quot;,this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=[&quot;auto&quot;,&quot;auto&quot;,&quot;auto&quot;],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=a(t)}var f=u.prototype;function h(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}f.update=function(t){function e(e,r,n){if(n in t){var i,a=t[n],o=this[n];(e?Array.isArray(a)&amp;&amp;Array.isArray(a[0]):Array.isArray(a))?this[n]=i=[r(a[0]),r(a[1]),r(a[2])]:this[n]=i=[r(a),r(a),r(a)];for(var s=0;s&lt;3;++s)if(i[s]!==o[s])return!0}return!1}t=t||{};var r,a=e.bind(this,!1,Number),o=e.bind(this,!1,Boolean),l=e.bind(this,!1,String),c=e.bind(this,!0,(function(t){if(Array.isArray(t)){if(3===t.length)return[+t[0],+t[1],+t[2],1];if(4===t.length)return[+t[0],+t[1],+t[2],+t[3]]}return[0,0,0,1]})),u=!1,f=!1;if(&quot;bounds&quot;in t)for(var h=t.bounds,p=0;p&lt;2;++p)for(var d=0;d&lt;3;++d)h[p][d]!==this.bounds[p][d]&amp;&amp;(f=!0),this.bounds[p][d]=h[p][d];if(&quot;ticks&quot;in t){r=t.ticks,u=!0,this.autoTicks=!1;for(p=0;p&lt;3;++p)this.tickSpacing[p]=0}else a(&quot;tickSpacing&quot;)&amp;&amp;(this.autoTicks=!0,f=!0);if(this._firstInit&amp;&amp;(&quot;ticks&quot;in t||&quot;tickSpacing&quot;in t||(this.autoTicks=!0),f=!0,u=!0,this._firstInit=!1),f&amp;&amp;this.autoTicks&amp;&amp;(r=s.create(this.bounds,this.tickSpacing),u=!0),u){for(p=0;p&lt;3;++p)r[p].sort((function(t,e){return t.x-e.x}));s.equal(r,this.ticks)?u=!1:this.ticks=r}o(&quot;tickEnable&quot;),l(&quot;tickFont&quot;)&amp;&amp;(u=!0),a(&quot;tickSize&quot;),a(&quot;tickAngle&quot;),a(&quot;tickPad&quot;),c(&quot;tickColor&quot;);var g=l(&quot;labels&quot;);l(&quot;labelFont&quot;)&amp;&amp;(g=!0),o(&quot;labelEnable&quot;),a(&quot;labelSize&quot;),a(&quot;labelPad&quot;),c(&quot;labelColor&quot;),o(&quot;lineEnable&quot;),o(&quot;lineMirror&quot;),a(&quot;lineWidth&quot;),c(&quot;lineColor&quot;),o(&quot;lineTickEnable&quot;),o(&quot;lineTickMirror&quot;),a(&quot;lineTickLength&quot;),a(&quot;lineTickWidth&quot;),c(&quot;lineTickColor&quot;),o(&quot;gridEnable&quot;),a(&quot;gridWidth&quot;),c(&quot;gridColor&quot;),o(&quot;zeroEnable&quot;),c(&quot;zeroLineColor&quot;),a(&quot;zeroLineWidth&quot;),o(&quot;backgroundEnable&quot;),c(&quot;backgroundColor&quot;),this._text?this._text&amp;&amp;(g||u)&amp;&amp;this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=n(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&amp;&amp;u&amp;&amp;(this._lines.dispose(),this._lines=null),this._lines||(this._lines=i(this.gl,this.bounds,this.ticks))};var p=[new h,new h,new h];function d(t,e,r,n,i){for(var a=t.primalOffset,o=t.primalMinor,s=t.mirrorOffset,l=t.mirrorMinor,c=n[e],u=0;u&lt;3;++u)if(e!==u){var f=a,h=s,p=o,d=l;c&amp;1&lt;&lt;u&amp;&amp;(f=s,h=a,p=l,d=o),f[u]=r[0][u],h[u]=r[1][u],i[u]&gt;0?(p[u]=-1,d[u]=0):(p[u]=0,d[u]=1)}}var g=[0,0,0],m={model:l,view:l,projection:l,_ortho:!1};f.isOpaque=function(){return!0},f.isTransparent=function(){return!1},f.drawTransparent=function(t){};var v=[0,0,0],y=[0,0,0],x=[0,0,0];f.draw=function(t){t=t||m;for(var e=this.gl,r=t.model||l,n=t.view||l,i=t.projection||l,a=this.bounds,s=t._ortho||!1,u=o(r,n,i,a,s),f=u.cubeEdges,h=u.axis,b=n[12],_=n[13],w=n[14],T=n[15],k=(s?2:1)*this.pixelRatio*(i[3]*b+i[7]*_+i[11]*w+i[15]*T)/e.drawingBufferHeight,M=0;M&lt;3;++M)this.lastCubeProps.cubeEdges[M]=f[M],this.lastCubeProps.axis[M]=h[M];var A=p;for(M=0;M&lt;3;++M)d(p[M],M,this.bounds,f,h);e=this.gl;var S,E=g;for(M=0;M&lt;3;++M)this.backgroundEnable[M]?E[M]=h[M]:E[M]=0;this._background.draw(r,n,i,a,E,this.backgroundColor),this._lines.bind(r,n,i,this);for(M=0;M&lt;3;++M){var C=[0,0,0];h[M]&gt;0?C[M]=a[1][M]:C[M]=a[0][M];for(var L=0;L&lt;2;++L){var I=(M+1+L)%3,P=(M+1+(1^L))%3;this.gridEnable[I]&amp;&amp;this._lines.drawGrid(I,P,this.bounds,C,this.gridColor[I],this.gridWidth[I]*this.pixelRatio)}for(L=0;L&lt;2;++L){I=(M+1+L)%3,P=(M+1+(1^L))%3;this.zeroEnable[P]&amp;&amp;Math.min(a[0][P],a[1][P])&lt;=0&amp;&amp;Math.max(a[0][P],a[1][P])&gt;=0&amp;&amp;this._lines.drawZero(I,P,this.bounds,C,this.zeroLineColor[P],this.zeroLineWidth[P]*this.pixelRatio)}}for(M=0;M&lt;3;++M){this.lineEnable[M]&amp;&amp;this._lines.drawAxisLine(M,this.bounds,A[M].primalOffset,this.lineColor[M],this.lineWidth[M]*this.pixelRatio),this.lineMirror[M]&amp;&amp;this._lines.drawAxisLine(M,this.bounds,A[M].mirrorOffset,this.lineColor[M],this.lineWidth[M]*this.pixelRatio);var z=c(v,A[M].primalMinor),O=c(y,A[M].mirrorMinor),D=this.lineTickLength;for(L=0;L&lt;3;++L){var R=k/r[5*L];z[L]*=D[L]*R,O[L]*=D[L]*R}this.lineTickEnable[M]&amp;&amp;this._lines.drawAxisTicks(M,A[M].primalOffset,z,this.lineTickColor[M],this.lineTickWidth[M]*this.pixelRatio),this.lineTickMirror[M]&amp;&amp;this._lines.drawAxisTicks(M,A[M].mirrorOffset,O,this.lineTickColor[M],this.lineTickWidth[M]*this.pixelRatio)}this._lines.unbind(),this._text.bind(r,n,i,this.pixelRatio);var F,B;function N(t){(B=[0,0,0])[t]=1}function j(t,e,r){var n=(t+1)%3,i=(t+2)%3,a=e[n],o=e[i],s=r[n],l=r[i];a&gt;0&amp;&amp;l&gt;0||a&gt;0&amp;&amp;l&lt;0||a&lt;0&amp;&amp;l&gt;0||a&lt;0&amp;&amp;l&lt;0?N(n):(o&gt;0&amp;&amp;s&gt;0||o&gt;0&amp;&amp;s&lt;0||o&lt;0&amp;&amp;s&gt;0||o&lt;0&amp;&amp;s&lt;0)&amp;&amp;N(i)}for(M=0;M&lt;3;++M){var U=A[M].primalMinor,V=A[M].mirrorMinor,q=c(x,A[M].primalOffset);for(L=0;L&lt;3;++L)this.lineTickEnable[M]&amp;&amp;(q[L]+=k*U[L]*Math.max(this.lineTickLength[L],0)/r[5*L]);var H=[0,0,0];if(H[M]=1,this.tickEnable[M]){-3600===this.tickAngle[M]?(this.tickAngle[M]=0,this.tickAlign[M]=&quot;auto&quot;):this.tickAlign[M]=-1,F=1,&quot;auto&quot;===(S=[this.tickAlign[M],.5,F])[0]?S[0]=0:S[0]=parseInt(&quot;&quot;+S[0]),B=[0,0,0],j(M,U,V);for(L=0;L&lt;3;++L)q[L]+=k*U[L]*this.tickPad[L]/r[5*L];this._text.drawTicks(M,this.tickSize[M],this.tickAngle[M],q,this.tickColor[M],H,B,S)}if(this.labelEnable[M]){F=0,B=[0,0,0],this.labels[M].length&gt;4&amp;&amp;(N(M),F=1),&quot;auto&quot;===(S=[this.labelAlign[M],.5,F])[0]?S[0]=0:S[0]=parseInt(&quot;&quot;+S[0]);for(L=0;L&lt;3;++L)q[L]+=k*U[L]*this.labelPad[L]/r[5*L];q[M]+=.5*(a[0][M]+a[1][M]),this._text.drawLabel(M,this.labelSize[M],this.labelAngle[M],q,this.labelColor[M],[0,0,0],B,S)}}this._text.unbind()},f.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},{&quot;./lib/background.js&quot;:251,&quot;./lib/cube.js&quot;:252,&quot;./lib/lines.js&quot;:253,&quot;./lib/text.js&quot;:255,&quot;./lib/ticks.js&quot;:256}],251:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=[],r=[],s=0,l=0;l&lt;3;++l)for(var c=(l+1)%3,u=(l+2)%3,f=[0,0,0],h=[0,0,0],p=-1;p&lt;=1;p+=2){r.push(s,s+2,s+1,s+1,s+2,s+3),f[l]=p,h[l]=p;for(var d=-1;d&lt;=1;d+=2){f[c]=d;for(var g=-1;g&lt;=1;g+=2)f[u]=g,e.push(f[0],f[1],f[2],h[0],h[1],h[2]),s+=1}var m=c;c=u,u=m}var v=n(t,new Float32Array(e)),y=n(t,new Uint16Array(r),t.ELEMENT_ARRAY_BUFFER),x=i(t,[{buffer:v,type:t.FLOAT,size:3,offset:0,stride:24},{buffer:v,type:t.FLOAT,size:3,offset:12,stride:24}],y),b=a(t);return b.attributes.position.location=0,b.attributes.normal.location=1,new o(t,v,x,b)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders&quot;).bg;function o(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n}var s=o.prototype;s.draw=function(t,e,r,n,i,a){for(var o=!1,s=0;s&lt;3;++s)o=o||i[s];if(o){var l=this.gl;l.enable(l.POLYGON_OFFSET_FILL),l.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:t,view:e,projection:r,bounds:n,enable:i,colors:a},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),l.disable(l.POLYGON_OFFSET_FILL)}},s.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:254,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],252:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,p){i(s,e,t),i(s,r,s);for(var y=0,x=0;x&lt;2;++x){u[2]=a[x][2];for(var b=0;b&lt;2;++b){u[1]=a[b][1];for(var _=0;_&lt;2;++_)u[0]=a[_][0],h(l[y],u,s),y+=1}}var w=-1;for(x=0;x&lt;8;++x){for(var T=l[x][3],k=0;k&lt;3;++k)c[x][k]=l[x][k]/T;p&amp;&amp;(c[x][2]*=-1),T&lt;0&amp;&amp;(w&lt;0||c[x][2]&lt;c[w][2])&amp;&amp;(w=x)}if(w&lt;0){w=0;for(var M=0;M&lt;3;++M){for(var A=(M+2)%3,S=(M+1)%3,E=-1,C=-1,L=0;L&lt;2;++L){var I=(z=L&lt;&lt;M)+(L&lt;&lt;A)+(1-L&lt;&lt;S),P=z+(1-L&lt;&lt;A)+(L&lt;&lt;S);o(c[z],c[I],c[P],f)&lt;0||(L?E=1:C=1)}if(E&lt;0||C&lt;0)C&gt;E&amp;&amp;(w|=1&lt;&lt;M);else{for(L=0;L&lt;2;++L){I=(z=L&lt;&lt;M)+(L&lt;&lt;A)+(1-L&lt;&lt;S),P=z+(1-L&lt;&lt;A)+(L&lt;&lt;S);var z,O=d([l[z],l[I],l[P],l[z+(1&lt;&lt;A)+(1&lt;&lt;S)]]);L?E=O:C=O}C&gt;E&amp;&amp;(w|=1&lt;&lt;M)}}}var D=7^w,R=-1;for(x=0;x&lt;8;++x)x!==w&amp;&amp;x!==D&amp;&amp;(R&lt;0||c[R][1]&gt;c[x][1])&amp;&amp;(R=x);var F=-1;for(x=0;x&lt;3;++x){if((N=R^1&lt;&lt;x)!==w&amp;&amp;N!==D)F&lt;0&amp;&amp;(F=N),(S=c[N])[0]&lt;c[F][0]&amp;&amp;(F=N)}var B=-1;for(x=0;x&lt;3;++x){var N;if((N=R^1&lt;&lt;x)!==w&amp;&amp;N!==D&amp;&amp;N!==F)B&lt;0&amp;&amp;(B=N),(S=c[N])[0]&gt;c[B][0]&amp;&amp;(B=N)}var j=g;j[0]=j[1]=j[2]=0,j[n.log2(F^R)]=R&amp;F,j[n.log2(R^B)]=R&amp;B;var U=7^B;U===w||U===D?(U=7^F,j[n.log2(B^U)]=U&amp;B):j[n.log2(F^U)]=U&amp;F;var V=m,q=w;for(M=0;M&lt;3;++M)V[M]=q&amp;1&lt;&lt;M?-1:1;return v};var n=t(&quot;bit-twiddle&quot;),i=t(&quot;gl-mat4/multiply&quot;),a=t(&quot;split-polygon&quot;),o=t(&quot;robust-orientation&quot;),s=new Array(16),l=new Array(8),c=new Array(8),u=new Array(3),f=[0,0,0];function h(t,e,r){for(var n=0;n&lt;4;++n){t[n]=r[12+n];for(var i=0;i&lt;3;++i)t[n]+=e[i]*r[4*i+n]}}!function(){for(var t=0;t&lt;8;++t)l[t]=[1,1,1,1],c[t]=[1,1,1]}();var p=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function d(t){for(var e=0;e&lt;p.length;++e)if((t=a.positive(t,p[e])).length&lt;3)return 0;var r=t[0],n=r[0]/r[3],i=r[1]/r[3],o=0;for(e=1;e+1&lt;t.length;++e){var s=t[e],l=t[e+1],c=s[0]/s[3]-n,u=s[1]/s[3]-i,f=l[0]/l[3]-n,h=l[1]/l[3]-i;o+=Math.abs(c*h-u*f)}return o}var g=[1,1,1],m=[0,0,0],v={cubeEdges:g,axis:m}},{&quot;bit-twiddle&quot;:97,&quot;gl-mat4/multiply&quot;:295,&quot;robust-orientation&quot;:548,&quot;split-polygon&quot;:566}],253:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var o=[],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[0,0,0];o.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var f=0;f&lt;3;++f){for(var h=o.length/3|0,d=0;d&lt;r[f].length;++d){var g=+r[f][d].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}var m=o.length/3|0;s[f]=h,l[f]=m-h;h=o.length/3|0;for(var v=0;v&lt;r[f].length;++v){g=+r[f][v].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}m=o.length/3|0;c[f]=h,u[f]=m-h}var y=n(t,new Float32Array(o)),x=i(t,[{buffer:y,type:t.FLOAT,size:3,stride:0,offset:0}]),b=a(t);return b.attributes.position.location=0,new p(t,y,x,b,l,s,u,c)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders&quot;).line,o=[0,0,0],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[1,1];function f(t){return t[0]=t[1]=t[2]=0,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function p(t,e,r,n,i,a,o,s){this.gl=t,this.vertBuffer=e,this.vao=r,this.shader=n,this.tickCount=i,this.tickOffset=a,this.gridCount=o,this.gridOffset=s}var d=p.prototype;d.bind=function(t,e,r){this.shader.bind(),this.shader.uniforms.model=t,this.shader.uniforms.view=e,this.shader.uniforms.projection=r,u[0]=this.gl.drawingBufferWidth,u[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=u,this.vao.bind()},d.unbind=function(){this.vao.unbind()},d.drawAxisLine=function(t,e,r,n,i){var a=f(s);this.shader.uniforms.majorAxis=s,a[t]=e[1][t]-e[0][t],this.shader.uniforms.minorAxis=a;var o,u=h(c,r);u[t]+=e[0][t],this.shader.uniforms.offset=u,this.shader.uniforms.lineWidth=i,this.shader.uniforms.color=n,(o=f(l))[(t+2)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6),(o=f(l))[(t+1)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6)},d.drawAxisTicks=function(t,e,r,n,i){if(this.tickCount[t]){var a=f(o);a[t]=1,this.shader.uniforms.majorAxis=a,this.shader.uniforms.offset=e,this.shader.uniforms.minorAxis=r,this.shader.uniforms.color=n,this.shader.uniforms.lineWidth=i;var s=f(l);s[t]=1,this.shader.uniforms.screenAxis=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t])}},d.drawGrid=function(t,e,r,n,i,a){if(this.gridCount[t]){var u=f(s);u[e]=r[1][e]-r[0][e],this.shader.uniforms.minorAxis=u;var p=h(c,n);p[e]+=r[0][e],this.shader.uniforms.offset=p;var d=f(o);d[t]=1,this.shader.uniforms.majorAxis=d;var g=f(l);g[t]=1,this.shader.uniforms.screenAxis=g,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,this.gridCount[t],this.gridOffset[t])}},d.drawZero=function(t,e,r,n,i,a){var o=f(s);this.shader.uniforms.majorAxis=o,o[t]=r[1][t]-r[0][t],this.shader.uniforms.minorAxis=o;var u=h(c,n);u[t]+=r[0][t],this.shader.uniforms.offset=u;var p=f(l);p[e]=1,this.shader.uniforms.screenAxis=p,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,6)},d.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:254,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],254:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, majorAxis, minorAxis, screenAxis;\nuniform float lineWidth;\nuniform vec2 screenShape;\n\nvec3 project(vec3 p) {\n  vec4 pp = projection * view * model * vec4(p, 1.0);\n  return pp.xyz / max(pp.w, 0.0001);\n}\n\nvoid main() {\n  vec3 major = position.x * majorAxis;\n  vec3 minor = position.y * minorAxis;\n\n  vec3 vPosition = major + minor + offset;\n  vec3 pPosition = project(vPosition);\n  vec3 offset = project(vPosition + screenAxis * position.z);\n\n  vec2 screen = normalize((offset - pPosition).xy * screenShape) / screenShape;\n\n  gl_Position = vec4(pPosition + vec3(0.5 * screen * lineWidth, 0), 1.0);\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = color;\n}&quot;]);r.line=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;}])};var s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, axis, alignDir, alignOpt;\nuniform float scale, angle, pixelScale;\nuniform vec2 resolution;\n\nvec3 project(vec3 p) {\n  vec4 pp = projection * view * model * vec4(p, 1.0);\n  return pp.xyz / max(pp.w, 0.0001);\n}\n\nfloat computeViewAngle(vec3 a, vec3 b) {\n  vec3 A = project(a);\n  vec3 B = project(b);\n\n  return atan(\n    (B.y - A.y) * resolution.y,\n    (B.x - A.x) * resolution.x\n  );\n}\n\nconst float PI = 3.141592;\nconst float TWO_PI = 2.0 * PI;\nconst float HALF_PI = 0.5 * PI;\nconst float ONE_AND_HALF_PI = 1.5 * PI;\n\nint option = int(floor(alignOpt.x + 0.001));\nfloat hv_ratio =       alignOpt.y;\nbool enableAlign =    (alignOpt.z != 0.0);\n\nfloat mod_angle(float a) {\n  return mod(a, PI);\n}\n\nfloat positive_angle(float a) {\n  return mod_angle((a &lt; 0.0) ?\n    a + TWO_PI :\n    a\n  );\n}\n\nfloat look_upwards(float a) {\n  float b = positive_angle(a);\n  return ((b &gt; HALF_PI) &amp;&amp; (b &lt;= ONE_AND_HALF_PI)) ?\n    b - PI :\n    b;\n}\n\nfloat look_horizontal_or_vertical(float a, float ratio) {\n  // ratio controls the ratio between being horizontal to (vertical + horizontal)\n  // if ratio is set to 0.5 then it is 50%, 50%.\n  // when using a higher ratio e.g. 0.75 the result would\n  // likely be more horizontal than vertical.\n\n  float b = positive_angle(a);\n\n  return\n    (b &lt; (      ratio) * HALF_PI) ? 0.0 :\n    (b &lt; (2.0 - ratio) * HALF_PI) ? -HALF_PI :\n    (b &lt; (2.0 + ratio) * HALF_PI) ? 0.0 :\n    (b &lt; (4.0 - ratio) * HALF_PI) ? HALF_PI :\n                                    0.0;\n}\n\nfloat roundTo(float a, float b) {\n  return float(b * floor((a + 0.5 * b) / b));\n}\n\nfloat look_round_n_directions(float a, int n) {\n  float b = positive_angle(a);\n  float div = TWO_PI / float(n);\n  float c = roundTo(b, div);\n  return look_upwards(c);\n}\n\nfloat applyAlignOption(float rawAngle, float delta) {\n  return\n    (option &gt;  2) ? look_round_n_directions(rawAngle + delta, option) :       // option 3-n: round to n directions\n    (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\n    (option == 1) ? rawAngle + delta :       // use free angle, and flip to align with one direction of the axis\n    (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\n    (option ==-1) ? 0.0 :                    // useful for backward compatibility, all texts remains horizontal\n                    rawAngle;                // otherwise return back raw input angle\n}\n\nbool isAxisTitle = (axis.x == 0.0) &amp;&amp;\n                   (axis.y == 0.0) &amp;&amp;\n                   (axis.z == 0.0);\n\nvoid main() {\n  //Compute world offset\n  float axisDistance = position.z;\n  vec3 dataPosition = axisDistance * axis + offset;\n\n  float beta = angle; // i.e. user defined attributes for each tick\n\n  float axisAngle;\n  float clipAngle;\n  float flip;\n\n  if (enableAlign) {\n    axisAngle = (isAxisTitle) ? HALF_PI :\n                      computeViewAngle(dataPosition, dataPosition + axis);\n    clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\n\n    axisAngle += (sin(axisAngle) &lt; 0.0) ? PI : 0.0;\n    clipAngle += (sin(clipAngle) &lt; 0.0) ? PI : 0.0;\n\n    flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\n                vec2(sin(clipAngle),-cos(clipAngle))) &gt; 0.0) ? 1.0 : 0.0;\n\n    beta += applyAlignOption(clipAngle, flip * PI);\n  }\n\n  //Compute plane offset\n  vec2 planeCoord = position.xy * pixelScale;\n\n  mat2 planeXform = scale * mat2(\n     cos(beta), sin(beta),\n    -sin(beta), cos(beta)\n  );\n\n  vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\n\n  //Compute clip position\n  vec3 clipPosition = project(dataPosition);\n\n  //Apply text offset in clip coordinates\n  clipPosition += vec3(viewOffset, 0.0);\n\n  //Done\n  gl_Position = vec4(clipPosition, 1.0);\n}&quot;]),l=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = color;\n}&quot;]);r.text=function(t){return i(t,s,l,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;}])};var c=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec3 normal;\n\nuniform mat4 model, view, projection;\nuniform vec3 enable;\nuniform vec3 bounds[2];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n\n  vec3 signAxis = sign(bounds[1] - bounds[0]);\n\n  vec3 realNormal = signAxis * normal;\n\n  if(dot(realNormal, enable) &gt; 0.0) {\n    vec3 minRange = min(bounds[0], bounds[1]);\n    vec3 maxRange = max(bounds[0], bounds[1]);\n    vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\n    gl_Position = projection * view * model * vec4(nPosition, 1.0);\n  } else {\n    gl_Position = vec4(0,0,0,0);\n  }\n\n  colorChannel = abs(realNormal);\n}&quot;]),u=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 colors[3];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n  gl_FragColor = colorChannel.x * colors[0] +\n                 colorChannel.y * colors[1] +\n                 colorChannel.z * colors[2];\n}&quot;]);r.bg=function(t){return i(t,c,u,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}])}},{&quot;gl-shader&quot;:335,glslify:257}],255:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;e.exports=function(t,e,r,a,s,l){var u=n(t),f=i(t,[{buffer:u,size:3}]),h=o(t);h.attributes.position.location=0;var p=new c(t,h,u,f);return p.update(e,r,a,s,l),p};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;vectorize-text&quot;),o=t(&quot;./shaders&quot;).text,s=window||r.global||{},l=s.__TEXT_CACHE||{};s.__TEXT_CACHE={};function c(t,e,r,n){this.gl=t,this.shader=e,this.buffer=r,this.vao=n,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var u=c.prototype,f=[0,0];u.bind=function(t,e,r,n){this.vao.bind(),this.shader.bind();var i=this.shader.uniforms;i.model=t,i.view=e,i.projection=r,i.pixelScale=n,f[0]=this.gl.drawingBufferWidth,f[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=f},u.unbind=function(){this.vao.unbind()},u.update=function(t,e,r,n,i){var o=[];function s(t,e,r,n,i,s){var c=l[r];c||(c=l[r]={});var u=c[e];u||(u=c[e]=function(t,e){try{return a(t,e)}catch(e){return console.warn('error vectorizing text:&quot;'+t+'&quot; error:',e),{cells:[],positions:[]}}}(e,{triangles:!0,font:r,textAlign:&quot;center&quot;,textBaseline:&quot;middle&quot;,lineSpacing:i,styletags:s}));for(var f=(n||12)/12,h=u.positions,p=u.cells,d=0,g=p.length;d&lt;g;++d)for(var m=p[d],v=2;v&gt;=0;--v){var y=h[m[v]];o.push(f*y[0],-f*y[1],t)}}for(var c=[0,0,0],u=[0,0,0],f=[0,0,0],h=[0,0,0],p={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},d=0;d&lt;3;++d){f[d]=o.length/3|0,s(.5*(t[0][d]+t[1][d]),e[d],r[d],12,1.25,p),h[d]=(o.length/3|0)-f[d],c[d]=o.length/3|0;for(var g=0;g&lt;n[d].length;++g)n[d][g].text&amp;&amp;s(n[d][g].x,n[d][g].text,n[d][g].font||i,n[d][g].fontSize||12,1.25,p);u[d]=(o.length/3|0)-c[d]}this.buffer.update(o),this.tickOffset=c,this.tickCount=u,this.labelOffset=f,this.labelCount=h},u.drawTicks=function(t,e,r,n,i,a,o,s){this.tickCount[t]&amp;&amp;(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t]))},u.drawLabel=function(t,e,r,n,i,a,o,s){this.labelCount[t]&amp;&amp;(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.labelCount[t],this.labelOffset[t]))},u.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()}}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./shaders&quot;:254,_process:526,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358,&quot;vectorize-text&quot;:600}],256:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=t+&quot;&quot;,n=r.indexOf(&quot;.&quot;),i=0;n&gt;=0&amp;&amp;(i=r.length-n-1);var a=Math.pow(10,i),o=Math.round(t*e*a),s=o+&quot;&quot;;if(s.indexOf(&quot;e&quot;)&gt;=0)return s;var l=o/a,c=o%a;o&lt;0?(l=0|-Math.ceil(l),c=0|-c):(l=0|Math.floor(l),c|=0);var u=&quot;&quot;+l;if(o&lt;0&amp;&amp;(u=&quot;-&quot;+u),i){for(var f=&quot;&quot;+c;f.length&lt;i;)f=&quot;0&quot;+f;return u+&quot;.&quot;+f}return u}r.create=function(t,e){for(var r=[],i=0;i&lt;3;++i){for(var a=[],o=(t[0][i],t[1][i],0);o*e[i]&lt;=t[1][i];++o)a.push({x:o*e[i],text:n(e[i],o)});for(o=-1;o*e[i]&gt;=t[0][i];--o)a.push({x:o*e[i],text:n(e[i],o)});r.push(a)}return r},r.equal=function(t,e){for(var r=0;r&lt;3;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n&lt;t[r].length;++n){var i=t[r][n],a=e[r][n];if(i.x!==a.x||i.text!==a.text||i.font!==a.font||i.fontColor!==a.fontColor||i.fontSize!==a.fontSize||i.dx!==a.dx||i.dy!==a.dy)return!1}}return!0}},{}],257:[function(t,e,r){e.exports=function(t){&quot;string&quot;==typeof t&amp;&amp;(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n&lt;t.length-1;n++)r.push(t[n],e[n]||&quot;&quot;);return r.push(t[n]),r.join(&quot;&quot;)}},{}],258:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,l,f){var h=e.model||c,p=e.view||c,v=e.projection||c,y=e._ortho||!1,x=t.bounds,b=(f=f||a(h,p,v,x,y)).axis;o(u,p,h),o(u,v,u);for(var _=g,w=0;w&lt;3;++w)_[w].lo=1/0,_[w].hi=-1/0,_[w].pixelsPerDataUnit=1/0;var T=n(s(u,u));s(u,u);for(var k=0;k&lt;3;++k){var M=(k+1)%3,A=(k+2)%3,S=m;t:for(w=0;w&lt;2;++w){var E=[];if(b[k]&lt;0!=!!w){S[k]=x[w][k];for(var C=0;C&lt;2;++C){S[M]=x[C^w][M];for(var L=0;L&lt;2;++L)S[A]=x[L^C^w][A],E.push(S.slice())}var I=y?5:4;for(C=I;C===I;++C){if(0===E.length)continue t;E=i.positive(E,T[C])}for(C=0;C&lt;E.length;++C){A=E[C];var P=d(m,u,A,r,l);for(L=0;L&lt;3;++L)_[L].lo=Math.min(_[L].lo,A[L]),_[L].hi=Math.max(_[L].hi,A[L]),L!==k&amp;&amp;(_[L].pixelsPerDataUnit=Math.min(_[L].pixelsPerDataUnit,Math.abs(P[L])))}}}}return _};var n=t(&quot;extract-frustum-planes&quot;),i=t(&quot;split-polygon&quot;),a=t(&quot;./lib/cube.js&quot;),o=t(&quot;gl-mat4/multiply&quot;),s=t(&quot;gl-mat4/transpose&quot;),l=t(&quot;gl-vec4/transformMat4&quot;),c=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),u=new Float32Array(16);function f(t,e,r){this.lo=t,this.hi=e,this.pixelsPerDataUnit=r}var h=[0,0,0,1],p=[0,0,0,1];function d(t,e,r,n,i){for(var a=0;a&lt;3;++a){for(var o=h,s=p,c=0;c&lt;3;++c)s[c]=o[c]=r[c];s[3]=o[3]=1,s[a]+=1,l(s,s,e),s[3]&lt;0&amp;&amp;(t[a]=1/0),o[a]-=1,l(o,o,e),o[3]&lt;0&amp;&amp;(t[a]=1/0);var u=(o[0]/o[3]-s[0]/s[3])*n,f=(o[1]/o[3]-s[1]/s[3])*i;t[a]=.25*Math.sqrt(u*u+f*f)}return t}var g=[new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0)],m=[0,0,0]},{&quot;./lib/cube.js&quot;:252,&quot;extract-frustum-planes&quot;:240,&quot;gl-mat4/multiply&quot;:295,&quot;gl-mat4/transpose&quot;:306,&quot;gl-vec4/transformMat4&quot;:429,&quot;split-polygon&quot;:566}],259:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=t(&quot;ndarray-ops&quot;),a=t(&quot;ndarray&quot;),o=[&quot;uint8&quot;,&quot;uint8_clamped&quot;,&quot;uint16&quot;,&quot;uint32&quot;,&quot;int8&quot;,&quot;int16&quot;,&quot;int32&quot;,&quot;float32&quot;];function s(t,e,r,n,i){this.gl=t,this.type=e,this.handle=r,this.length=n,this.usage=i}var l=s.prototype;function c(t,e,r,n,i,a){var o=i.length*i.BYTES_PER_ELEMENT;if(a&lt;0)return t.bufferData(e,i,n),o;if(o+a&gt;r)throw new Error(&quot;gl-buffer: If resizing buffer, must not specify offset&quot;);return t.bufferSubData(e,a,i),r}function u(t,e){for(var r=n.malloc(t.length,e),i=t.length,a=0;a&lt;i;++a)r[a]=t[a];return r}l.bind=function(){this.gl.bindBuffer(this.type,this.handle)},l.unbind=function(){this.gl.bindBuffer(this.type,null)},l.dispose=function(){this.gl.deleteBuffer(this.handle)},l.update=function(t,e){if(&quot;number&quot;!=typeof e&amp;&amp;(e=-1),this.bind(),&quot;object&quot;==typeof t&amp;&amp;&quot;undefined&quot;!=typeof t.shape){var r=t.dtype;if(o.indexOf(r)&lt;0&amp;&amp;(r=&quot;float32&quot;),this.type===this.gl.ELEMENT_ARRAY_BUFFER)r=gl.getExtension(&quot;OES_element_index_uint&quot;)&amp;&amp;&quot;uint16&quot;!==r?&quot;uint32&quot;:&quot;uint16&quot;;if(r===t.dtype&amp;&amp;function(t,e){for(var r=1,n=e.length-1;n&gt;=0;--n){if(e[n]!==r)return!1;r*=t[n]}return!0}(t.shape,t.stride))0===t.offset&amp;&amp;t.data.length===t.shape[0]?this.length=c(this.gl,this.type,this.length,this.usage,t.data,e):this.length=c(this.gl,this.type,this.length,this.usage,t.data.subarray(t.offset,t.shape[0]),e);else{var s=n.malloc(t.size,r),l=a(s,t.shape);i.assign(l,t),this.length=c(this.gl,this.type,this.length,this.usage,e&lt;0?s:s.subarray(0,t.size),e),n.free(s)}}else if(Array.isArray(t)){var f;f=this.type===this.gl.ELEMENT_ARRAY_BUFFER?u(t,&quot;uint16&quot;):u(t,&quot;float32&quot;),this.length=c(this.gl,this.type,this.length,this.usage,e&lt;0?f:f.subarray(0,t.length),e),n.free(f)}else if(&quot;object&quot;==typeof t&amp;&amp;&quot;number&quot;==typeof t.length)this.length=c(this.gl,this.type,this.length,this.usage,t,e);else{if(&quot;number&quot;!=typeof t&amp;&amp;void 0!==t)throw new Error(&quot;gl-buffer: Invalid data type&quot;);if(e&gt;=0)throw new Error(&quot;gl-buffer: Cannot specify offset when resizing buffer&quot;);(t|=0)&lt;=0&amp;&amp;(t=1),this.gl.bufferData(this.type,0|t,this.usage),this.length=t}},e.exports=function(t,e,r,n){if(r=r||t.ARRAY_BUFFER,n=n||t.DYNAMIC_DRAW,r!==t.ARRAY_BUFFER&amp;&amp;r!==t.ELEMENT_ARRAY_BUFFER)throw new Error(&quot;gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER&quot;);if(n!==t.DYNAMIC_DRAW&amp;&amp;n!==t.STATIC_DRAW&amp;&amp;n!==t.STREAM_DRAW)throw new Error(&quot;gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW&quot;);var i=t.createBuffer(),a=new s(t,r,i,0,n);return a.update(e),a}},{ndarray:495,&quot;ndarray-ops&quot;:490,&quot;typedarray-pool&quot;:595}],260:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-vec3&quot;);e.exports=function(t,e){var r=t.positions,i=t.vectors,a={positions:[],vertexIntensity:[],vertexIntensityBounds:t.vertexIntensityBounds,vectors:[],cells:[],coneOffset:t.coneOffset,colormap:t.colormap};if(0===t.positions.length)return e&amp;&amp;(e[0]=[0,0,0],e[1]=[0,0,0]),a;for(var o=0,s=1/0,l=-1/0,c=1/0,u=-1/0,f=1/0,h=-1/0,p=null,d=null,g=[],m=1/0,v=!1,y=0;y&lt;r.length;y++){var x=r[y];s=Math.min(x[0],s),l=Math.max(x[0],l),c=Math.min(x[1],c),u=Math.max(x[1],u),f=Math.min(x[2],f),h=Math.max(x[2],h);var b=i[y];if(n.length(b)&gt;o&amp;&amp;(o=n.length(b)),y){var _=2*n.distance(p,x)/(n.length(d)+n.length(b));_?(m=Math.min(m,_),v=!1):v=!0}v||(p=x,d=b),g.push(b)}var w=[s,c,f],T=[l,u,h];e&amp;&amp;(e[0]=w,e[1]=T),0===o&amp;&amp;(o=1);var k=1/o;isFinite(m)||(m=1),a.vectorScale=m;var M=t.coneSize||.5;t.absoluteConeSize&amp;&amp;(M=t.absoluteConeSize*k),a.coneScale=M;y=0;for(var A=0;y&lt;r.length;y++)for(var S=(x=r[y])[0],E=x[1],C=x[2],L=g[y],I=n.length(L)*k,P=0;P&lt;8;P++){a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vertexIntensity.push(I,I,I),a.vertexIntensity.push(I,I,I);var z=a.positions.length;a.cells.push([z-6,z-5,z-4],[z-3,z-2,z-1])}return a};var i=t(&quot;./lib/shaders&quot;);e.exports.createMesh=t(&quot;./create_mesh&quot;),e.exports.createConeMesh=function(t,r){return e.exports.createMesh(t,r,{shaders:i,traceType:&quot;cone&quot;})}},{&quot;./create_mesh&quot;:261,&quot;./lib/shaders&quot;:262,&quot;gl-vec3&quot;:377}],261:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;gl-mat4/multiply&quot;),l=t(&quot;gl-mat4/invert&quot;),c=t(&quot;ndarray&quot;),u=t(&quot;colormap&quot;),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e,r,n,i,a,o,s,l,c,u){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.pickShader=n,this.trianglePositions=i,this.triangleVectors=a,this.triangleColors=s,this.triangleUVs=l,this.triangleIds=o,this.triangleVAO=c,this.triangleCount=0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.traceType=u,this.tubeScale=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=f,this._view=f,this._projection=f,this._resolution=[1,1]}var p=h.prototype;function d(t,e){var r=n(t,e.meshShader.vertex,e.meshShader.fragment,null,e.meshShader.attributes);return r.attributes.position.location=0,r.attributes.color.location=2,r.attributes.uv.location=3,r.attributes.vector.location=4,r}function g(t,e){var r=n(t,e.pickShader.vertex,e.pickShader.fragment,null,e.pickShader.attributes);return r.attributes.position.location=0,r.attributes.id.location=1,r.attributes.vector.location=4,r}p.isOpaque=function(){return this.opacity&gt;=1},p.isTransparent=function(){return this.opacity&lt;1},p.pickSlots=1,p.setPickBase=function(t){this.pickId=t},p.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,&quot;lightPosition&quot;in t&amp;&amp;(this.lightPosition=t.lightPosition),&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity),&quot;ambient&quot;in t&amp;&amp;(this.ambientLight=t.ambient),&quot;diffuse&quot;in t&amp;&amp;(this.diffuseLight=t.diffuse),&quot;specular&quot;in t&amp;&amp;(this.specularLight=t.specular),&quot;roughness&quot;in t&amp;&amp;(this.roughness=t.roughness),&quot;fresnel&quot;in t&amp;&amp;(this.fresnel=t.fresnel),void 0!==t.tubeScale&amp;&amp;(this.tubeScale=t.tubeScale),void 0!==t.vectorScale&amp;&amp;(this.vectorScale=t.vectorScale),void 0!==t.coneScale&amp;&amp;(this.coneScale=t.coneScale),void 0!==t.coneOffset&amp;&amp;(this.coneOffset=t.coneOffset),t.colormap&amp;&amp;(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t){for(var e=u({colormap:t,nshades:256,format:&quot;rgba&quot;}),r=new Uint8Array(1024),n=0;n&lt;256;++n){for(var i=e[n],a=0;a&lt;3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return c(r,[256,256,4],[4,0,1])}(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions,i=t.vectors;if(n&amp;&amp;r&amp;&amp;i){var a=[],o=[],s=[],l=[],f=[];this.cells=r,this.positions=n,this.vectors=i;var h=t.meshColor||[1,1,1,1],p=t.vertexIntensity,d=1/0,g=-1/0;if(p)if(t.vertexIntensityBounds)d=+t.vertexIntensityBounds[0],g=+t.vertexIntensityBounds[1];else for(var m=0;m&lt;p.length;++m){var v=p[m];d=Math.min(d,v),g=Math.max(g,v)}else for(m=0;m&lt;n.length;++m){v=n[m][2];d=Math.min(d,v),g=Math.max(g,v)}this.intensity=p||function(t){for(var e=t.length,r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n][2];return r}(n),this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(m=0;m&lt;n.length;++m)for(var y=n[m],x=0;x&lt;3;++x)!isNaN(y[x])&amp;&amp;isFinite(y[x])&amp;&amp;(this.bounds[0][x]=Math.min(this.bounds[0][x],y[x]),this.bounds[1][x]=Math.max(this.bounds[1][x],y[x]));var b=0;t:for(m=0;m&lt;r.length;++m){var _=r[m];switch(_.length){case 3:for(x=0;x&lt;3;++x){y=n[T=_[x]];for(var w=0;w&lt;3;++w)if(isNaN(y[w])||!isFinite(y[w]))continue t}for(x=0;x&lt;3;++x){var T;y=n[T=_[2-x]];a.push(y[0],y[1],y[2],y[3]);var k=i[T];o.push(k[0],k[1],k[2],k[3]||0);var M,A=h;3===A.length?s.push(A[0],A[1],A[2],1):s.push(A[0],A[1],A[2],A[3]),M=p?[(p[T]-d)/(g-d),0]:[(y[2]-d)/(g-d),0],l.push(M[0],M[1]),f.push(m)}b+=1}}this.triangleCount=b,this.trianglePositions.update(a),this.triangleVectors.update(o),this.triangleColors.update(s),this.triangleUVs.update(l),this.triangleIds.update(new Uint32Array(f))}},p.drawTransparent=p.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var c={model:r,view:n,projection:i,inverseModel:f.slice(),clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,texture:0};c.inverseModel=l(c.inverseModel,c.model),e.disable(e.CULL_FACE),this.texture.bind(0);var u=new Array(16);s(u,c.view,c.model),s(u,c.projection,u),l(u,u);for(o=0;o&lt;3;++o)c.eyePosition[o]=u[12+o]/u[15];var h=u[15];for(o=0;o&lt;3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o&lt;3;++o){for(var p=u[12+o],d=0;d&lt;3;++d)p+=u[4*d+o]*this.lightPosition[d];c.lightPosition[o]=p/h}if(this.triangleCount&gt;0){var g=this.triShader;g.bind(),g.uniforms=c,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}},p.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s={model:r,view:n,projection:i,clipBounds:a,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},l=this.pickShader;l.bind(),l.uniforms=s,this.triangleCount&gt;0&amp;&amp;(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind())},p.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions[r[1]].slice(0,3),i={position:n,dataCoordinate:n,index:Math.floor(r[1]/48)};return&quot;cone&quot;===this.traceType?i.index=Math.floor(r[1]/48):&quot;streamtube&quot;===this.traceType&amp;&amp;(i.intensity=this.intensity[r[1]],i.velocity=this.vectors[r[1]].slice(0,3),i.divergence=this.vectors[r[1]][3],i.index=e),i},p.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()},e.exports=function(t,e,r){var n=r.shaders;1===arguments.length&amp;&amp;(t=(e=t).gl);var s=d(t,n),l=g(t,n),u=o(t,c(new Uint8Array([255,255,255,255]),[1,1,4]));u.generateMipmap(),u.minFilter=t.LINEAR_MIPMAP_LINEAR,u.magFilter=t.LINEAR;var f=i(t),p=i(t),m=i(t),v=i(t),y=i(t),x=a(t,[{buffer:f,type:t.FLOAT,size:4},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:m,type:t.FLOAT,size:4},{buffer:v,type:t.FLOAT,size:2},{buffer:p,type:t.FLOAT,size:4}]),b=new h(t,u,s,l,f,p,y,m,v,x,r.traceType||&quot;cone&quot;);return b.update(e),b}},{colormap:131,&quot;gl-buffer&quot;:259,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/multiply&quot;:295,&quot;gl-shader&quot;:335,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495}],262:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n//   segment + 0 top vertex\n//   segment + 1 perimeter vertex a+1\n//   segment + 2 perimeter vertex a\n//   segment + 3 center base vertex\n//   segment + 4 perimeter vertex a\n//   segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n  const float segmentCount = 8.0;\n\n  float index = rawIndex - floor(rawIndex /\n    (segmentCount * 6.0)) *\n    (segmentCount * 6.0);\n\n  float segment = floor(0.001 + index/6.0);\n  float segmentIndex = index - (segment*6.0);\n\n  normal = -normalize(d);\n\n  if (segmentIndex &gt; 2.99 &amp;&amp; segmentIndex &lt; 3.01) {\n    return mix(vec3(0.0), -d, coneOffset);\n  }\n\n  float nextAngle = (\n    (segmentIndex &gt; 0.99 &amp;&amp;  segmentIndex &lt; 1.01) ||\n    (segmentIndex &gt; 4.99 &amp;&amp;  segmentIndex &lt; 5.01)\n  ) ? 1.0 : 0.0;\n  float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n  vec3 v1 = mix(d, vec3(0.0), coneOffset);\n  vec3 v2 = v1 - d;\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d)*0.25;\n  vec3 y = v * sin(angle) * length(d)*0.25;\n  vec3 v3 = v2 + x + y;\n  if (segmentIndex &lt; 3.0) {\n    vec3 tx = u * sin(angle);\n    vec3 ty = v * -cos(angle);\n    vec3 tangent = tx + ty;\n    normal = normalize(cross(v3 - v1, tangent));\n  }\n\n  if (segmentIndex == 0.0) {\n    return mix(d, vec3(0.0), coneOffset);\n  }\n  return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  // Scale the vector magnitude to stay constant with\n  // model &amp; view changes.\n  vec3 normal;\n  vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n  vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * conePosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  // vec4 m_position  = model * vec4(conePosition, 1.0);\n  vec4 t_position  = view * conePosition;\n  gl_Position      = projection * t_position;\n\n  f_color          = color;\n  f_data           = conePosition.xyz;\n  f_position       = position.xyz;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * opacity;\n}\n&quot;]),o=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n//   segment + 0 top vertex\n//   segment + 1 perimeter vertex a+1\n//   segment + 2 perimeter vertex a\n//   segment + 3 center base vertex\n//   segment + 4 perimeter vertex a\n//   segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n  const float segmentCount = 8.0;\n\n  float index = rawIndex - floor(rawIndex /\n    (segmentCount * 6.0)) *\n    (segmentCount * 6.0);\n\n  float segment = floor(0.001 + index/6.0);\n  float segmentIndex = index - (segment*6.0);\n\n  normal = -normalize(d);\n\n  if (segmentIndex &gt; 2.99 &amp;&amp; segmentIndex &lt; 3.01) {\n    return mix(vec3(0.0), -d, coneOffset);\n  }\n\n  float nextAngle = (\n    (segmentIndex &gt; 0.99 &amp;&amp;  segmentIndex &lt; 1.01) ||\n    (segmentIndex &gt; 4.99 &amp;&amp;  segmentIndex &lt; 5.01)\n  ) ? 1.0 : 0.0;\n  float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n  vec3 v1 = mix(d, vec3(0.0), coneOffset);\n  vec3 v2 = v1 - d;\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d)*0.25;\n  vec3 y = v * sin(angle) * length(d)*0.25;\n  vec3 v3 = v2 + x + y;\n  if (segmentIndex &lt; 3.0) {\n    vec3 tx = u * sin(angle);\n    vec3 ty = v * -cos(angle);\n    vec3 tangent = tx + ty;\n    normal = normalize(cross(v3 - v1, tangent));\n  }\n\n  if (segmentIndex == 0.0) {\n    return mix(d, vec3(0.0), coneOffset);\n  }\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float vectorScale, coneScale, coneOffset;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  vec3 normal;\n  vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);\n  vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n  gl_Position = projection * view * conePosition;\n  f_id        = id;\n  f_position  = position.xyz;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;vector&quot;,type:&quot;vec3&quot;}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;},{name:&quot;vector&quot;,type:&quot;vec3&quot;}]}},{glslify:263}],263:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],264:[function(t,e,r){e.exports={0:&quot;NONE&quot;,1:&quot;ONE&quot;,2:&quot;LINE_LOOP&quot;,3:&quot;LINE_STRIP&quot;,4:&quot;TRIANGLES&quot;,5:&quot;TRIANGLE_STRIP&quot;,6:&quot;TRIANGLE_FAN&quot;,256:&quot;DEPTH_BUFFER_BIT&quot;,512:&quot;NEVER&quot;,513:&quot;LESS&quot;,514:&quot;EQUAL&quot;,515:&quot;LEQUAL&quot;,516:&quot;GREATER&quot;,517:&quot;NOTEQUAL&quot;,518:&quot;GEQUAL&quot;,519:&quot;ALWAYS&quot;,768:&quot;SRC_COLOR&quot;,769:&quot;ONE_MINUS_SRC_COLOR&quot;,770:&quot;SRC_ALPHA&quot;,771:&quot;ONE_MINUS_SRC_ALPHA&quot;,772:&quot;DST_ALPHA&quot;,773:&quot;ONE_MINUS_DST_ALPHA&quot;,774:&quot;DST_COLOR&quot;,775:&quot;ONE_MINUS_DST_COLOR&quot;,776:&quot;SRC_ALPHA_SATURATE&quot;,1024:&quot;STENCIL_BUFFER_BIT&quot;,1028:&quot;FRONT&quot;,1029:&quot;BACK&quot;,1032:&quot;FRONT_AND_BACK&quot;,1280:&quot;INVALID_ENUM&quot;,1281:&quot;INVALID_VALUE&quot;,1282:&quot;INVALID_OPERATION&quot;,1285:&quot;OUT_OF_MEMORY&quot;,1286:&quot;INVALID_FRAMEBUFFER_OPERATION&quot;,2304:&quot;CW&quot;,2305:&quot;CCW&quot;,2849:&quot;LINE_WIDTH&quot;,2884:&quot;CULL_FACE&quot;,2885:&quot;CULL_FACE_MODE&quot;,2886:&quot;FRONT_FACE&quot;,2928:&quot;DEPTH_RANGE&quot;,2929:&quot;DEPTH_TEST&quot;,2930:&quot;DEPTH_WRITEMASK&quot;,2931:&quot;DEPTH_CLEAR_VALUE&quot;,2932:&quot;DEPTH_FUNC&quot;,2960:&quot;STENCIL_TEST&quot;,2961:&quot;STENCIL_CLEAR_VALUE&quot;,2962:&quot;STENCIL_FUNC&quot;,2963:&quot;STENCIL_VALUE_MASK&quot;,2964:&quot;STENCIL_FAIL&quot;,2965:&quot;STENCIL_PASS_DEPTH_FAIL&quot;,2966:&quot;STENCIL_PASS_DEPTH_PASS&quot;,2967:&quot;STENCIL_REF&quot;,2968:&quot;STENCIL_WRITEMASK&quot;,2978:&quot;VIEWPORT&quot;,3024:&quot;DITHER&quot;,3042:&quot;BLEND&quot;,3088:&quot;SCISSOR_BOX&quot;,3089:&quot;SCISSOR_TEST&quot;,3106:&quot;COLOR_CLEAR_VALUE&quot;,3107:&quot;COLOR_WRITEMASK&quot;,3317:&quot;UNPACK_ALIGNMENT&quot;,3333:&quot;PACK_ALIGNMENT&quot;,3379:&quot;MAX_TEXTURE_SIZE&quot;,3386:&quot;MAX_VIEWPORT_DIMS&quot;,3408:&quot;SUBPIXEL_BITS&quot;,3410:&quot;RED_BITS&quot;,3411:&quot;GREEN_BITS&quot;,3412:&quot;BLUE_BITS&quot;,3413:&quot;ALPHA_BITS&quot;,3414:&quot;DEPTH_BITS&quot;,3415:&quot;STENCIL_BITS&quot;,3553:&quot;TEXTURE_2D&quot;,4352:&quot;DONT_CARE&quot;,4353:&quot;FASTEST&quot;,4354:&quot;NICEST&quot;,5120:&quot;BYTE&quot;,5121:&quot;UNSIGNED_BYTE&quot;,5122:&quot;SHORT&quot;,5123:&quot;UNSIGNED_SHORT&quot;,5124:&quot;INT&quot;,5125:&quot;UNSIGNED_INT&quot;,5126:&quot;FLOAT&quot;,5386:&quot;INVERT&quot;,5890:&quot;TEXTURE&quot;,6401:&quot;STENCIL_INDEX&quot;,6402:&quot;DEPTH_COMPONENT&quot;,6406:&quot;ALPHA&quot;,6407:&quot;RGB&quot;,6408:&quot;RGBA&quot;,6409:&quot;LUMINANCE&quot;,6410:&quot;LUMINANCE_ALPHA&quot;,7680:&quot;KEEP&quot;,7681:&quot;REPLACE&quot;,7682:&quot;INCR&quot;,7683:&quot;DECR&quot;,7936:&quot;VENDOR&quot;,7937:&quot;RENDERER&quot;,7938:&quot;VERSION&quot;,9728:&quot;NEAREST&quot;,9729:&quot;LINEAR&quot;,9984:&quot;NEAREST_MIPMAP_NEAREST&quot;,9985:&quot;LINEAR_MIPMAP_NEAREST&quot;,9986:&quot;NEAREST_MIPMAP_LINEAR&quot;,9987:&quot;LINEAR_MIPMAP_LINEAR&quot;,10240:&quot;TEXTURE_MAG_FILTER&quot;,10241:&quot;TEXTURE_MIN_FILTER&quot;,10242:&quot;TEXTURE_WRAP_S&quot;,10243:&quot;TEXTURE_WRAP_T&quot;,10497:&quot;REPEAT&quot;,10752:&quot;POLYGON_OFFSET_UNITS&quot;,16384:&quot;COLOR_BUFFER_BIT&quot;,32769:&quot;CONSTANT_COLOR&quot;,32770:&quot;ONE_MINUS_CONSTANT_COLOR&quot;,32771:&quot;CONSTANT_ALPHA&quot;,32772:&quot;ONE_MINUS_CONSTANT_ALPHA&quot;,32773:&quot;BLEND_COLOR&quot;,32774:&quot;FUNC_ADD&quot;,32777:&quot;BLEND_EQUATION_RGB&quot;,32778:&quot;FUNC_SUBTRACT&quot;,32779:&quot;FUNC_REVERSE_SUBTRACT&quot;,32819:&quot;UNSIGNED_SHORT_4_4_4_4&quot;,32820:&quot;UNSIGNED_SHORT_5_5_5_1&quot;,32823:&quot;POLYGON_OFFSET_FILL&quot;,32824:&quot;POLYGON_OFFSET_FACTOR&quot;,32854:&quot;RGBA4&quot;,32855:&quot;RGB5_A1&quot;,32873:&quot;TEXTURE_BINDING_2D&quot;,32926:&quot;SAMPLE_ALPHA_TO_COVERAGE&quot;,32928:&quot;SAMPLE_COVERAGE&quot;,32936:&quot;SAMPLE_BUFFERS&quot;,32937:&quot;SAMPLES&quot;,32938:&quot;SAMPLE_COVERAGE_VALUE&quot;,32939:&quot;SAMPLE_COVERAGE_INVERT&quot;,32968:&quot;BLEND_DST_RGB&quot;,32969:&quot;BLEND_SRC_RGB&quot;,32970:&quot;BLEND_DST_ALPHA&quot;,32971:&quot;BLEND_SRC_ALPHA&quot;,33071:&quot;CLAMP_TO_EDGE&quot;,33170:&quot;GENERATE_MIPMAP_HINT&quot;,33189:&quot;DEPTH_COMPONENT16&quot;,33306:&quot;DEPTH_STENCIL_ATTACHMENT&quot;,33635:&quot;UNSIGNED_SHORT_5_6_5&quot;,33648:&quot;MIRRORED_REPEAT&quot;,33901:&quot;ALIASED_POINT_SIZE_RANGE&quot;,33902:&quot;ALIASED_LINE_WIDTH_RANGE&quot;,33984:&quot;TEXTURE0&quot;,33985:&quot;TEXTURE1&quot;,33986:&quot;TEXTURE2&quot;,33987:&quot;TEXTURE3&quot;,33988:&quot;TEXTURE4&quot;,33989:&quot;TEXTURE5&quot;,33990:&quot;TEXTURE6&quot;,33991:&quot;TEXTURE7&quot;,33992:&quot;TEXTURE8&quot;,33993:&quot;TEXTURE9&quot;,33994:&quot;TEXTURE10&quot;,33995:&quot;TEXTURE11&quot;,33996:&quot;TEXTURE12&quot;,33997:&quot;TEXTURE13&quot;,33998:&quot;TEXTURE14&quot;,33999:&quot;TEXTURE15&quot;,34e3:&quot;TEXTURE16&quot;,34001:&quot;TEXTURE17&quot;,34002:&quot;TEXTURE18&quot;,34003:&quot;TEXTURE19&quot;,34004:&quot;TEXTURE20&quot;,34005:&quot;TEXTURE21&quot;,34006:&quot;TEXTURE22&quot;,34007:&quot;TEXTURE23&quot;,34008:&quot;TEXTURE24&quot;,34009:&quot;TEXTURE25&quot;,34010:&quot;TEXTURE26&quot;,34011:&quot;TEXTURE27&quot;,34012:&quot;TEXTURE28&quot;,34013:&quot;TEXTURE29&quot;,34014:&quot;TEXTURE30&quot;,34015:&quot;TEXTURE31&quot;,34016:&quot;ACTIVE_TEXTURE&quot;,34024:&quot;MAX_RENDERBUFFER_SIZE&quot;,34041:&quot;DEPTH_STENCIL&quot;,34055:&quot;INCR_WRAP&quot;,34056:&quot;DECR_WRAP&quot;,34067:&quot;TEXTURE_CUBE_MAP&quot;,34068:&quot;TEXTURE_BINDING_CUBE_MAP&quot;,34069:&quot;TEXTURE_CUBE_MAP_POSITIVE_X&quot;,34070:&quot;TEXTURE_CUBE_MAP_NEGATIVE_X&quot;,34071:&quot;TEXTURE_CUBE_MAP_POSITIVE_Y&quot;,34072:&quot;TEXTURE_CUBE_MAP_NEGATIVE_Y&quot;,34073:&quot;TEXTURE_CUBE_MAP_POSITIVE_Z&quot;,34074:&quot;TEXTURE_CUBE_MAP_NEGATIVE_Z&quot;,34076:&quot;MAX_CUBE_MAP_TEXTURE_SIZE&quot;,34338:&quot;VERTEX_ATTRIB_ARRAY_ENABLED&quot;,34339:&quot;VERTEX_ATTRIB_ARRAY_SIZE&quot;,34340:&quot;VERTEX_ATTRIB_ARRAY_STRIDE&quot;,34341:&quot;VERTEX_ATTRIB_ARRAY_TYPE&quot;,34342:&quot;CURRENT_VERTEX_ATTRIB&quot;,34373:&quot;VERTEX_ATTRIB_ARRAY_POINTER&quot;,34466:&quot;NUM_COMPRESSED_TEXTURE_FORMATS&quot;,34467:&quot;COMPRESSED_TEXTURE_FORMATS&quot;,34660:&quot;BUFFER_SIZE&quot;,34661:&quot;BUFFER_USAGE&quot;,34816:&quot;STENCIL_BACK_FUNC&quot;,34817:&quot;STENCIL_BACK_FAIL&quot;,34818:&quot;STENCIL_BACK_PASS_DEPTH_FAIL&quot;,34819:&quot;STENCIL_BACK_PASS_DEPTH_PASS&quot;,34877:&quot;BLEND_EQUATION_ALPHA&quot;,34921:&quot;MAX_VERTEX_ATTRIBS&quot;,34922:&quot;VERTEX_ATTRIB_ARRAY_NORMALIZED&quot;,34930:&quot;MAX_TEXTURE_IMAGE_UNITS&quot;,34962:&quot;ARRAY_BUFFER&quot;,34963:&quot;ELEMENT_ARRAY_BUFFER&quot;,34964:&quot;ARRAY_BUFFER_BINDING&quot;,34965:&quot;ELEMENT_ARRAY_BUFFER_BINDING&quot;,34975:&quot;VERTEX_ATTRIB_ARRAY_BUFFER_BINDING&quot;,35040:&quot;STREAM_DRAW&quot;,35044:&quot;STATIC_DRAW&quot;,35048:&quot;DYNAMIC_DRAW&quot;,35632:&quot;FRAGMENT_SHADER&quot;,35633:&quot;VERTEX_SHADER&quot;,35660:&quot;MAX_VERTEX_TEXTURE_IMAGE_UNITS&quot;,35661:&quot;MAX_COMBINED_TEXTURE_IMAGE_UNITS&quot;,35663:&quot;SHADER_TYPE&quot;,35664:&quot;FLOAT_VEC2&quot;,35665:&quot;FLOAT_VEC3&quot;,35666:&quot;FLOAT_VEC4&quot;,35667:&quot;INT_VEC2&quot;,35668:&quot;INT_VEC3&quot;,35669:&quot;INT_VEC4&quot;,35670:&quot;BOOL&quot;,35671:&quot;BOOL_VEC2&quot;,35672:&quot;BOOL_VEC3&quot;,35673:&quot;BOOL_VEC4&quot;,35674:&quot;FLOAT_MAT2&quot;,35675:&quot;FLOAT_MAT3&quot;,35676:&quot;FLOAT_MAT4&quot;,35678:&quot;SAMPLER_2D&quot;,35680:&quot;SAMPLER_CUBE&quot;,35712:&quot;DELETE_STATUS&quot;,35713:&quot;COMPILE_STATUS&quot;,35714:&quot;LINK_STATUS&quot;,35715:&quot;VALIDATE_STATUS&quot;,35716:&quot;INFO_LOG_LENGTH&quot;,35717:&quot;ATTACHED_SHADERS&quot;,35718:&quot;ACTIVE_UNIFORMS&quot;,35719:&quot;ACTIVE_UNIFORM_MAX_LENGTH&quot;,35720:&quot;SHADER_SOURCE_LENGTH&quot;,35721:&quot;ACTIVE_ATTRIBUTES&quot;,35722:&quot;ACTIVE_ATTRIBUTE_MAX_LENGTH&quot;,35724:&quot;SHADING_LANGUAGE_VERSION&quot;,35725:&quot;CURRENT_PROGRAM&quot;,36003:&quot;STENCIL_BACK_REF&quot;,36004:&quot;STENCIL_BACK_VALUE_MASK&quot;,36005:&quot;STENCIL_BACK_WRITEMASK&quot;,36006:&quot;FRAMEBUFFER_BINDING&quot;,36007:&quot;RENDERBUFFER_BINDING&quot;,36048:&quot;FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE&quot;,36049:&quot;FRAMEBUFFER_ATTACHMENT_OBJECT_NAME&quot;,36050:&quot;FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL&quot;,36051:&quot;FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE&quot;,36053:&quot;FRAMEBUFFER_COMPLETE&quot;,36054:&quot;FRAMEBUFFER_INCOMPLETE_ATTACHMENT&quot;,36055:&quot;FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT&quot;,36057:&quot;FRAMEBUFFER_INCOMPLETE_DIMENSIONS&quot;,36061:&quot;FRAMEBUFFER_UNSUPPORTED&quot;,36064:&quot;COLOR_ATTACHMENT0&quot;,36096:&quot;DEPTH_ATTACHMENT&quot;,36128:&quot;STENCIL_ATTACHMENT&quot;,36160:&quot;FRAMEBUFFER&quot;,36161:&quot;RENDERBUFFER&quot;,36162:&quot;RENDERBUFFER_WIDTH&quot;,36163:&quot;RENDERBUFFER_HEIGHT&quot;,36164:&quot;RENDERBUFFER_INTERNAL_FORMAT&quot;,36168:&quot;STENCIL_INDEX8&quot;,36176:&quot;RENDERBUFFER_RED_SIZE&quot;,36177:&quot;RENDERBUFFER_GREEN_SIZE&quot;,36178:&quot;RENDERBUFFER_BLUE_SIZE&quot;,36179:&quot;RENDERBUFFER_ALPHA_SIZE&quot;,36180:&quot;RENDERBUFFER_DEPTH_SIZE&quot;,36181:&quot;RENDERBUFFER_STENCIL_SIZE&quot;,36194:&quot;RGB565&quot;,36336:&quot;LOW_FLOAT&quot;,36337:&quot;MEDIUM_FLOAT&quot;,36338:&quot;HIGH_FLOAT&quot;,36339:&quot;LOW_INT&quot;,36340:&quot;MEDIUM_INT&quot;,36341:&quot;HIGH_INT&quot;,36346:&quot;SHADER_COMPILER&quot;,36347:&quot;MAX_VERTEX_UNIFORM_VECTORS&quot;,36348:&quot;MAX_VARYING_VECTORS&quot;,36349:&quot;MAX_FRAGMENT_UNIFORM_VECTORS&quot;,37440:&quot;UNPACK_FLIP_Y_WEBGL&quot;,37441:&quot;UNPACK_PREMULTIPLY_ALPHA_WEBGL&quot;,37442:&quot;CONTEXT_LOST_WEBGL&quot;,37443:&quot;UNPACK_COLORSPACE_CONVERSION_WEBGL&quot;,37444:&quot;BROWSER_DEFAULT_WEBGL&quot;}},{}],265:[function(t,e,r){var n=t(&quot;./1.0/numbers&quot;);e.exports=function(t){return n[t]}},{&quot;./1.0/numbers&quot;:264}],266:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),o=i(e,[{buffer:r,type:e.FLOAT,size:3,offset:0,stride:40},{buffer:r,type:e.FLOAT,size:4,offset:12,stride:40},{buffer:r,type:e.FLOAT,size:3,offset:28,stride:40}]),l=a(e);l.attributes.position.location=0,l.attributes.color.location=1,l.attributes.offset.location=2;var c=new s(e,r,o,l);return c.update(t),c};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders/index&quot;),o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.shader=n,this.buffer=e,this.vao=r,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var l=s.prototype;function c(t,e){for(var r=0;r&lt;3;++r)t[0][r]=Math.min(t[0][r],e[r]),t[1][r]=Math.max(t[1][r],e[r])}l.isOpaque=function(){return!this.hasAlpha},l.isTransparent=function(){return this.hasAlpha},l.drawTransparent=l.draw=function(t){var e=this.gl,r=this.shader.uniforms;this.shader.bind();var n=r.view=t.view||o,i=r.projection=t.projection||o;r.model=t.model||o,r.clipBounds=this.clipBounds,r.opacity=this.opacity;var a=n[12],s=n[13],l=n[14],c=n[15],u=(t._ortho||!1?2:1)*this.pixelRatio*(i[3]*a+i[7]*s+i[11]*l+i[15]*c)/e.drawingBufferHeight;this.vao.bind();for(var f=0;f&lt;3;++f)e.lineWidth(this.lineWidth[f]*this.pixelRatio),r.capSize=this.capSize[f]*u,this.lineCount[f]&amp;&amp;e.drawArrays(e.LINES,this.lineOffset[f],this.lineCount[f]);this.vao.unbind()};var u=function(){for(var t=new Array(3),e=0;e&lt;3;++e){for(var r=[],n=1;n&lt;=2;++n)for(var i=-1;i&lt;=1;i+=2){var a=[0,0,0];a[(n+e)%3]=i,r.push(a)}t[e]=r}return t}();function f(t,e,r,n){for(var i=u[n],a=0;a&lt;i.length;++a){var o=i[a];t.push(e[0],e[1],e[2],r[0],r[1],r[2],r[3],o[0],o[1],o[2])}return i.length}l.update=function(t){&quot;lineWidth&quot;in(t=t||{})&amp;&amp;(this.lineWidth=t.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),&quot;capSize&quot;in t&amp;&amp;(this.capSize=t.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=+t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0));var e=t.color||[[0,0,0],[0,0,0],[0,0,0]],r=t.position,n=t.error;if(Array.isArray(e[0])||(e=[e,e,e]),r&amp;&amp;n){var i=[],a=r.length,o=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var s=0;s&lt;3;++s){this.lineOffset[s]=o;t:for(var l=0;l&lt;a;++l){for(var u=r[l],h=0;h&lt;3;++h)if(isNaN(u[h])||!isFinite(u[h]))continue t;var p=n[l],d=e[s];if(Array.isArray(d[0])&amp;&amp;(d=e[l]),3===d.length?d=[d[0],d[1],d[2],1]:4===d.length&amp;&amp;(d=[d[0],d[1],d[2],d[3]],!this.hasAlpha&amp;&amp;d[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),!isNaN(p[0][s])&amp;&amp;!isNaN(p[1][s])){var g;if(p[0][s]&lt;0)(g=u.slice())[s]+=p[0][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s);if(p[1][s]&gt;0)(g=u.slice())[s]+=p[1][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s)}}this.lineCount[s]=o-this.lineOffset[s]}this.buffer.update(i)}},l.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},{&quot;./shaders/index&quot;:268,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],267:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],268:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, offset;\nattribute vec4 color;\nuniform mat4 model, view, projection;\nuniform float capSize;\nvarying vec4 fragColor;\nvarying vec3 fragPosition;\n\nvoid main() {\n  vec4 worldPosition  = model * vec4(position, 1.0);\n  worldPosition       = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\n  gl_Position         = projection * view * worldPosition;\n  fragColor           = color;\n  fragPosition        = position;\n}&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float opacity;\nvarying vec3 fragPosition;\nvarying vec4 fragColor;\n\nvoid main() {\n  if (\n    outOfRange(clipBounds[0], clipBounds[1], fragPosition) ||\n    fragColor.a * opacity == 0.\n  ) discard;\n\n  gl_FragColor = opacity * fragColor;\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;offset&quot;,type:&quot;vec3&quot;}])}},{&quot;gl-shader&quot;:335,glslify:267}],269:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-texture2d&quot;);e.exports=function(t,e,r,n){i||(i=t.FRAMEBUFFER_UNSUPPORTED,a=t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,o=t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,s=t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var c=t.getExtension(&quot;WEBGL_draw_buffers&quot;);!l&amp;&amp;c&amp;&amp;function(t,e){var r=t.getParameter(e.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(r+1);for(var n=0;n&lt;=r;++n){for(var i=new Array(r),a=0;a&lt;n;++a)i[a]=t.COLOR_ATTACHMENT0+a;for(a=n;a&lt;r;++a)i[a]=t.NONE;l[n]=i}}(t,c);Array.isArray(e)&amp;&amp;(n=r,r=0|e[1],e=0|e[0]);if(&quot;number&quot;!=typeof e)throw new Error(&quot;gl-fbo: Missing shape parameter&quot;);var u=t.getParameter(t.MAX_RENDERBUFFER_SIZE);if(e&lt;0||e&gt;u||r&lt;0||r&gt;u)throw new Error(&quot;gl-fbo: Parameters are too large for FBO&quot;);var f=1;if(&quot;color&quot;in(n=n||{})){if((f=Math.max(0|n.color,0))&lt;0)throw new Error(&quot;gl-fbo: Must specify a nonnegative number of colors&quot;);if(f&gt;1){if(!c)throw new Error(&quot;gl-fbo: Multiple draw buffer extension not supported&quot;);if(f&gt;t.getParameter(c.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error(&quot;gl-fbo: Context does not support &quot;+f+&quot; draw buffers&quot;)}}var h=t.UNSIGNED_BYTE,p=t.getExtension(&quot;OES_texture_float&quot;);if(n.float&amp;&amp;f&gt;0){if(!p)throw new Error(&quot;gl-fbo: Context does not support floating point textures&quot;);h=t.FLOAT}else n.preferFloat&amp;&amp;f&gt;0&amp;&amp;p&amp;&amp;(h=t.FLOAT);var g=!0;&quot;depth&quot;in n&amp;&amp;(g=!!n.depth);var m=!1;&quot;stencil&quot;in n&amp;&amp;(m=!!n.stencil);return new d(t,e,r,h,f,g,m,c)};var i,a,o,s,l=null;function c(t){return[t.getParameter(t.FRAMEBUFFER_BINDING),t.getParameter(t.RENDERBUFFER_BINDING),t.getParameter(t.TEXTURE_BINDING_2D)]}function u(t,e){t.bindFramebuffer(t.FRAMEBUFFER,e[0]),t.bindRenderbuffer(t.RENDERBUFFER,e[1]),t.bindTexture(t.TEXTURE_2D,e[2])}function f(t){switch(t){case i:throw new Error(&quot;gl-fbo: Framebuffer unsupported&quot;);case a:throw new Error(&quot;gl-fbo: Framebuffer incomplete attachment&quot;);case o:throw new Error(&quot;gl-fbo: Framebuffer incomplete dimensions&quot;);case s:throw new Error(&quot;gl-fbo: Framebuffer incomplete missing attachment&quot;);default:throw new Error(&quot;gl-fbo: Framebuffer failed for unspecified reason&quot;)}}function h(t,e,r,i,a,o){if(!i)return null;var s=n(t,e,r,a,i);return s.magFilter=t.NEAREST,s.minFilter=t.NEAREST,s.mipSamples=1,s.bind(),t.framebufferTexture2D(t.FRAMEBUFFER,o,t.TEXTURE_2D,s.handle,0),s}function p(t,e,r,n,i){var a=t.createRenderbuffer();return t.bindRenderbuffer(t.RENDERBUFFER,a),t.renderbufferStorage(t.RENDERBUFFER,n,e,r),t.framebufferRenderbuffer(t.FRAMEBUFFER,i,t.RENDERBUFFER,a),a}function d(t,e,r,n,i,a,o,s){this.gl=t,this._shape=[0|e,0|r],this._destroyed=!1,this._ext=s,this.color=new Array(i);for(var d=0;d&lt;i;++d)this.color[d]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=n,this._useDepth=a,this._useStencil=o;var g=this,m=[0|e,0|r];Object.defineProperties(m,{0:{get:function(){return g._shape[0]},set:function(t){return g.width=t}},1:{get:function(){return g._shape[1]},set:function(t){return g.height=t}}}),this._shapeVector=m,function(t){var e=c(t.gl),r=t.gl,n=t.handle=r.createFramebuffer(),i=t._shape[0],a=t._shape[1],o=t.color.length,s=t._ext,d=t._useStencil,g=t._useDepth,m=t._colorType;r.bindFramebuffer(r.FRAMEBUFFER,n);for(var v=0;v&lt;o;++v)t.color[v]=h(r,i,a,m,r.RGBA,r.COLOR_ATTACHMENT0+v);0===o?(t._color_rb=p(r,i,a,r.RGBA4,r.COLOR_ATTACHMENT0),s&amp;&amp;s.drawBuffersWEBGL(l[0])):o&gt;1&amp;&amp;s.drawBuffersWEBGL(l[o]);var y=r.getExtension(&quot;WEBGL_depth_texture&quot;);y?d?t.depth=h(r,i,a,y.UNSIGNED_INT_24_8_WEBGL,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g&amp;&amp;(t.depth=h(r,i,a,r.UNSIGNED_SHORT,r.DEPTH_COMPONENT,r.DEPTH_ATTACHMENT)):g&amp;&amp;d?t._depth_rb=p(r,i,a,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g?t._depth_rb=p(r,i,a,r.DEPTH_COMPONENT16,r.DEPTH_ATTACHMENT):d&amp;&amp;(t._depth_rb=p(r,i,a,r.STENCIL_INDEX,r.STENCIL_ATTACHMENT));var x=r.checkFramebufferStatus(r.FRAMEBUFFER);if(x!==r.FRAMEBUFFER_COMPLETE){t._destroyed=!0,r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(t.handle),t.handle=null,t.depth&amp;&amp;(t.depth.dispose(),t.depth=null),t._depth_rb&amp;&amp;(r.deleteRenderbuffer(t._depth_rb),t._depth_rb=null);for(v=0;v&lt;t.color.length;++v)t.color[v].dispose(),t.color[v]=null;t._color_rb&amp;&amp;(r.deleteRenderbuffer(t._color_rb),t._color_rb=null),u(r,e),f(x)}u(r,e)}(this)}var g=d.prototype;function m(t,e,r){if(t._destroyed)throw new Error(&quot;gl-fbo: Can't resize destroyed FBO&quot;);if(t._shape[0]!==e||t._shape[1]!==r){var n=t.gl,i=n.getParameter(n.MAX_RENDERBUFFER_SIZE);if(e&lt;0||e&gt;i||r&lt;0||r&gt;i)throw new Error(&quot;gl-fbo: Can't resize FBO, invalid dimensions&quot;);t._shape[0]=e,t._shape[1]=r;for(var a=c(n),o=0;o&lt;t.color.length;++o)t.color[o].shape=t._shape;t._color_rb&amp;&amp;(n.bindRenderbuffer(n.RENDERBUFFER,t._color_rb),n.renderbufferStorage(n.RENDERBUFFER,n.RGBA4,t._shape[0],t._shape[1])),t.depth&amp;&amp;(t.depth.shape=t._shape),t._depth_rb&amp;&amp;(n.bindRenderbuffer(n.RENDERBUFFER,t._depth_rb),t._useDepth&amp;&amp;t._useStencil?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t._shape[0],t._shape[1]):t._useDepth?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_COMPONENT16,t._shape[0],t._shape[1]):t._useStencil&amp;&amp;n.renderbufferStorage(n.RENDERBUFFER,n.STENCIL_INDEX,t._shape[0],t._shape[1])),n.bindFramebuffer(n.FRAMEBUFFER,t.handle);var s=n.checkFramebufferStatus(n.FRAMEBUFFER);s!==n.FRAMEBUFFER_COMPLETE&amp;&amp;(t.dispose(),u(n,a),f(s)),u(n,a)}}Object.defineProperties(g,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(t){if(Array.isArray(t)||(t=[0|t,0|t]),2!==t.length)throw new Error(&quot;gl-fbo: Shape vector must be length 2&quot;);var e=0|t[0],r=0|t[1];return m(this,e,r),[e,r]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(t){return m(this,t|=0,this._shape[1]),t},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(t){return t|=0,m(this,this._shape[0],t),t},enumerable:!1}}),g.bind=function(){if(!this._destroyed){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,this.handle),t.viewport(0,0,this._shape[0],this._shape[1])}},g.dispose=function(){if(!this._destroyed){this._destroyed=!0;var t=this.gl;t.deleteFramebuffer(this.handle),this.handle=null,this.depth&amp;&amp;(this.depth.dispose(),this.depth=null),this._depth_rb&amp;&amp;(t.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var e=0;e&lt;this.color.length;++e)this.color[e].dispose(),this.color[e]=null;this._color_rb&amp;&amp;(t.deleteRenderbuffer(this._color_rb),this._color_rb=null)}}},{&quot;gl-texture2d&quot;:353}],270:[function(t,e,r){var n=t(&quot;sprintf-js&quot;).sprintf,i=t(&quot;gl-constants/lookup&quot;),a=t(&quot;glsl-shader-name&quot;),o=t(&quot;add-line-numbers&quot;);e.exports=function(t,e,r){&quot;use strict&quot;;var s=a(e)||&quot;of unknown name (see npm glsl-shader-name)&quot;,l=&quot;unknown type&quot;;void 0!==r&amp;&amp;(l=r===i.FRAGMENT_SHADER?&quot;fragment&quot;:&quot;vertex&quot;);for(var c=n(&quot;Error compiling %s shader %s:\n&quot;,l,s),u=n(&quot;%s%s&quot;,c,t),f=t.split(&quot;\n&quot;),h={},p=0;p&lt;f.length;p++){var d=f[p];if(&quot;&quot;!==d&amp;&amp;&quot;\0&quot;!==d){var g=parseInt(d.split(&quot;:&quot;)[2]);if(isNaN(g))throw new Error(n(&quot;Could not parse error: %s&quot;,d));h[g]=d}}var m=o(e).split(&quot;\n&quot;);for(p=0;p&lt;m.length;p++)if(h[p+3]||h[p+2]||h[p+1]){var v=m[p];if(c+=v+&quot;\n&quot;,h[p+1]){var y=h[p+1];y=y.substr(y.split(&quot;:&quot;,3).join(&quot;:&quot;).length+1).trim(),c+=n(&quot;^^^ %s\n\n&quot;,y)}}return{long:c.trim(),short:u.trim()}}},{&quot;add-line-numbers&quot;:66,&quot;gl-constants/lookup&quot;:265,&quot;glsl-shader-name&quot;:431,&quot;sprintf-js&quot;:567}],271:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.gl,n=o(r,l.vertex,l.fragment),i=o(r,l.pickVertex,l.pickFragment),a=s(r),u=s(r),f=s(r),h=s(r),p=new c(t,n,i,a,u,f,h);return p.update(e),t.addObject(p),p};var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;iota-array&quot;),a=t(&quot;typedarray-pool&quot;),o=t(&quot;gl-shader&quot;),s=t(&quot;gl-buffer&quot;),l=t(&quot;./lib/shaders&quot;);function c(t,e,r,n,i,a,o){this.plot=t,this.shader=e,this.pickShader=r,this.positionBuffer=n,this.weightBuffer=i,this.colorBuffer=a,this.idBuffer=o,this.xData=[],this.yData=[],this.shape=[0,0],this.bounds=[1/0,1/0,-1/0,-1/0],this.pickOffset=0}var u,f=c.prototype,h=[0,0,1,0,0,1,1,0,1,1,0,1];f.draw=(u=[1,0,0,0,1,0,0,0,1],function(){var t=this.plot,e=this.shader,r=this.bounds,n=this.numVertices;if(!(n&lt;=0)){var i=t.gl,a=t.dataBox,o=r[2]-r[0],s=r[3]-r[1],l=a[2]-a[0],c=a[3]-a[1];u[0]=2*o/l,u[4]=2*s/c,u[6]=2*(r[0]-a[0])/l-1,u[7]=2*(r[1]-a[1])/c-1,e.bind();var f=e.uniforms;f.viewTransform=u,f.shape=this.shape;var h=e.attributes;this.positionBuffer.bind(),h.position.pointer(),this.weightBuffer.bind(),h.weight.pointer(i.UNSIGNED_BYTE,!1),this.colorBuffer.bind(),h.color.pointer(i.UNSIGNED_BYTE,!0),i.drawArrays(i.TRIANGLES,0,n)}}),f.drawPick=function(){var t=[1,0,0,0,1,0,0,0,1],e=[0,0,0,0];return function(r){var n=this.plot,i=this.pickShader,a=this.bounds,o=this.numVertices;if(!(o&lt;=0)){var s=n.gl,l=n.dataBox,c=a[2]-a[0],u=a[3]-a[1],f=l[2]-l[0],h=l[3]-l[1];t[0]=2*c/f,t[4]=2*u/h,t[6]=2*(a[0]-l[0])/f-1,t[7]=2*(a[1]-l[1])/h-1;for(var p=0;p&lt;4;++p)e[p]=r&gt;&gt;8*p&amp;255;this.pickOffset=r,i.bind();var d=i.uniforms;d.viewTransform=t,d.pickOffset=e,d.shape=this.shape;var g=i.attributes;return this.positionBuffer.bind(),g.position.pointer(),this.weightBuffer.bind(),g.weight.pointer(s.UNSIGNED_BYTE,!1),this.idBuffer.bind(),g.pickId.pointer(s.UNSIGNED_BYTE,!1),s.drawArrays(s.TRIANGLES,0,o),r+this.shape[0]*this.shape[1]}}}(),f.pick=function(t,e,r){var n=this.pickOffset,i=this.shape[0]*this.shape[1];if(r&lt;n||r&gt;=n+i)return null;var a=r-n,o=this.xData,s=this.yData;return{object:this,pointId:a,dataCoord:[o[a%this.shape[0]],s[a/this.shape[0]|0]]}},f.update=function(t){var e=(t=t||{}).shape||[0,0],r=t.x||i(e[0]),o=t.y||i(e[1]),s=t.z||new Float32Array(e[0]*e[1]),l=!1!==t.zsmooth;this.xData=r,this.yData=o;var c,u,f,p,d=t.colorLevels||[0],g=t.colorValues||[0,0,0,1],m=d.length,v=this.bounds;l?(c=v[0]=r[0],u=v[1]=o[0],f=v[2]=r[r.length-1],p=v[3]=o[o.length-1]):(c=v[0]=r[0]+(r[1]-r[0])/2,u=v[1]=o[0]+(o[1]-o[0])/2,f=v[2]=r[r.length-1]+(r[r.length-1]-r[r.length-2])/2,p=v[3]=o[o.length-1]+(o[o.length-1]-o[o.length-2])/2);var y=1/(f-c),x=1/(p-u),b=e[0],_=e[1];this.shape=[b,_];var w=(l?(b-1)*(_-1):b*_)*(h.length&gt;&gt;&gt;1);this.numVertices=w;for(var T=a.mallocUint8(4*w),k=a.mallocFloat32(2*w),M=a.mallocUint8(2*w),A=a.mallocUint32(w),S=0,E=l?b-1:b,C=l?_-1:_,L=0;L&lt;C;++L){var I,P;l?(I=x*(o[L]-u),P=x*(o[L+1]-u)):(I=L&lt;_-1?x*(o[L]-(o[L+1]-o[L])/2-u):x*(o[L]-(o[L]-o[L-1])/2-u),P=L&lt;_-1?x*(o[L]+(o[L+1]-o[L])/2-u):x*(o[L]+(o[L]-o[L-1])/2-u));for(var z=0;z&lt;E;++z){var O,D;l?(O=y*(r[z]-c),D=y*(r[z+1]-c)):(O=z&lt;b-1?y*(r[z]-(r[z+1]-r[z])/2-c):y*(r[z]-(r[z]-r[z-1])/2-c),D=z&lt;b-1?y*(r[z]+(r[z+1]-r[z])/2-c):y*(r[z]+(r[z]-r[z-1])/2-c));for(var R=0;R&lt;h.length;R+=2){var F,B,N,j,U=h[R],V=h[R+1],q=s[l?(L+V)*b+(z+U):L*b+z],H=n.le(d,q);if(H&lt;0)F=g[0],B=g[1],N=g[2],j=g[3];else if(H===m-1)F=g[4*m-4],B=g[4*m-3],N=g[4*m-2],j=g[4*m-1];else{var G=(q-d[H])/(d[H+1]-d[H]),Y=1-G,W=4*H,X=4*(H+1);F=Y*g[W]+G*g[X],B=Y*g[W+1]+G*g[X+1],N=Y*g[W+2]+G*g[X+2],j=Y*g[W+3]+G*g[X+3]}T[4*S]=255*F,T[4*S+1]=255*B,T[4*S+2]=255*N,T[4*S+3]=255*j,k[2*S]=.5*O+.5*D,k[2*S+1]=.5*I+.5*P,M[2*S]=U,M[2*S+1]=V,A[S]=L*b+z,S+=1}}}this.positionBuffer.update(k),this.weightBuffer.update(M),this.colorBuffer.update(T),this.idBuffer.update(A),a.free(k),a.free(T),a.free(M),a.free(A)},f.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.positionBuffer.dispose(),this.weightBuffer.dispose(),this.colorBuffer.dispose(),this.idBuffer.dispose(),this.plot.removeObject(this)}},{&quot;./lib/shaders&quot;:272,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335,&quot;iota-array&quot;:463,&quot;typedarray-pool&quot;:595}],272:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;);e.exports={fragment:n([&quot;precision lowp float;\n#define GLSLIFY 1\nvarying vec4 fragColor;\nvoid main() {\n  gl_FragColor = vec4(fragColor.rgb * fragColor.a, fragColor.a);\n}\n&quot;]),vertex:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 color;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragColor;\n\nvoid main() {\n  vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n  fragColor = color;\n  gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n&quot;]),pickFragment:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nuniform vec2 shape;\nuniform vec4 pickOffset;\n\nvoid main() {\n  vec2 d = step(.5, vWeight);\n  vec4 id = fragId + pickOffset;\n  id.x += d.x + d.y*shape.x;\n\n  id.y += floor(id.x / 256.0);\n  id.x -= floor(id.x / 256.0) * 256.0;\n\n  id.z += floor(id.y / 256.0);\n  id.y -= floor(id.y / 256.0) * 256.0;\n\n  id.w += floor(id.z / 256.0);\n  id.z -= floor(id.z / 256.0) * 256.0;\n\n  gl_FragColor = id/255.;\n}\n&quot;]),pickVertex:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nvoid main() {\n  vWeight = weight;\n\n  fragId = pickId;\n\n  vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n  gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n&quot;])}},{glslify:273}],273:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],274:[function(t,e,r){var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, nextPosition;\nattribute float arcLength, lineWidth;\nattribute vec4 color;\n\nuniform vec2 screenShape;\nuniform float pixelRatio;\nuniform mat4 model, view, projection;\n\nvarying vec4 fragColor;\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\n\nvec4 project(vec3 p) {\n  return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n  vec4 startPoint = project(position);\n  vec4 endPoint   = project(nextPosition);\n\n  vec2 A = startPoint.xy / startPoint.w;\n  vec2 B =   endPoint.xy /   endPoint.w;\n\n  float clipAngle = atan(\n    (B.y - A.y) * screenShape.y,\n    (B.x - A.x) * screenShape.x\n  );\n\n  vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\n    sin(clipAngle),\n    -cos(clipAngle)\n  ) / screenShape;\n\n  gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\n\n  worldPosition = position;\n  pixelArcLength = arcLength;\n  fragColor = color;\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3      clipBounds[2];\nuniform sampler2D dashTexture;\nuniform float     dashScale;\nuniform float     opacity;\n\nvarying vec3    worldPosition;\nvarying float   pixelArcLength;\nvarying vec4    fragColor;\n\nvoid main() {\n  if (\n    outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||\n    fragColor.a * opacity == 0.\n  ) discard;\n\n  float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\n  if(dashWeight &lt; 0.5) {\n    discard;\n  }\n  gl_FragColor = fragColor * opacity;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\n#define FLOAT_MAX  1.70141184e38\n#define FLOAT_MIN  1.17549435e-38\n\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl\nvec4 packFloat(float v) {\n  float av = abs(v);\n\n  //Handle special cases\n  if(av &lt; FLOAT_MIN) {\n    return vec4(0.0, 0.0, 0.0, 0.0);\n  } else if(v &gt; FLOAT_MAX) {\n    return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\n  } else if(v &lt; -FLOAT_MAX) {\n    return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\n  }\n\n  vec4 c = vec4(0,0,0,0);\n\n  //Compute exponent and mantissa\n  float e = floor(log2(av));\n  float m = av * pow(2.0, -e) - 1.0;\n\n  //Unpack mantissa\n  c[1] = floor(128.0 * m);\n  m -= c[1] / 128.0;\n  c[2] = floor(32768.0 * m);\n  m -= c[2] / 32768.0;\n  c[3] = floor(8388608.0 * m);\n\n  //Unpack exponent\n  float ebias = e + 127.0;\n  c[0] = floor(ebias / 2.0);\n  ebias -= c[0] * 2.0;\n  c[1] += floor(ebias) * 128.0;\n\n  //Unpack sign bit\n  c[0] += 128.0 * step(0.0, -v);\n\n  //Scale back to range\n  return c / 255.0;\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform float pickId;\nuniform vec3 clipBounds[2];\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\n\n  gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);\n}&quot;]),l=[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;nextPosition&quot;,type:&quot;vec3&quot;},{name:&quot;arcLength&quot;,type:&quot;float&quot;},{name:&quot;lineWidth&quot;,type:&quot;float&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;}];r.createShader=function(t){return i(t,a,o,null,l)},r.createPickShader=function(t){return i(t,a,s,null,l)}},{&quot;gl-shader&quot;:335,glslify:276}],275:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl||t.scene&amp;&amp;t.scene.gl,r=f(e);r.attributes.position.location=0,r.attributes.nextPosition.location=1,r.attributes.arcLength.location=2,r.attributes.lineWidth.location=3,r.attributes.color.location=4;var o=h(e);o.attributes.position.location=0,o.attributes.nextPosition.location=1,o.attributes.arcLength.location=2,o.attributes.lineWidth.location=3,o.attributes.color.location=4;for(var s=n(e),l=i(e,[{buffer:s,size:3,offset:0,stride:48},{buffer:s,size:3,offset:12,stride:48},{buffer:s,size:1,offset:24,stride:48},{buffer:s,size:1,offset:28,stride:48},{buffer:s,size:4,offset:32,stride:48}]),u=c(new Array(1024),[256,1,4]),p=0;p&lt;1024;++p)u.data[p]=255;var d=a(e,u);d.wrap=e.REPEAT;var g=new v(e,r,o,s,l,d);return g.update(t),g};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;gl-texture2d&quot;),o=new Uint8Array(4),s=new Float32Array(o.buffer);var l=t(&quot;binary-search-bounds&quot;),c=t(&quot;ndarray&quot;),u=t(&quot;./lib/shaders&quot;),f=u.createShader,h=u.createPickShader,p=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function d(t,e){for(var r=0,n=0;n&lt;3;++n){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)}function g(t){for(var e=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],r=0;r&lt;3;++r)e[0][r]=Math.max(t[0][r],e[0][r]),e[1][r]=Math.min(t[1][r],e[1][r]);return e}function m(t,e,r,n){this.arcLength=t,this.position=e,this.index=r,this.dataCoordinate=n}function v(t,e,r,n,i,a){this.gl=t,this.shader=e,this.pickShader=r,this.buffer=n,this.vao=i,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=a,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var y=v.prototype;y.isTransparent=function(){return this.hasAlpha},y.isOpaque=function(){return!this.hasAlpha},y.pickSlots=1,y.setPickBase=function(t){this.pickId=t},y.drawTransparent=y.draw=function(t){if(this.vertexCount){var e=this.gl,r=this.shader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,clipBounds:g(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.drawPick=function(t){if(this.vertexCount){var e=this.gl,r=this.pickShader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,pickId:this.pickId,clipBounds:g(this.clipBounds),screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.update=function(t){var e,r;this.dirty=!0;var n=!!t.connectGaps;&quot;dashScale&quot;in t&amp;&amp;(this.dashScale=t.dashScale),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=+t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0));var i=[],a=[],o=[],s=0,u=0,f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],h=t.position||t.positions;if(h){var p=t.color||t.colors||[0,0,0,1],g=t.lineWidth||1,m=!1;t:for(e=1;e&lt;h.length;++e){var v,y,x,b=h[e-1],_=h[e];for(a.push(s),o.push(b.slice()),r=0;r&lt;3;++r){if(isNaN(b[r])||isNaN(_[r])||!isFinite(b[r])||!isFinite(_[r])){if(!n&amp;&amp;i.length&gt;0){for(var w=0;w&lt;24;++w)i.push(i[i.length-12]);u+=2,m=!0}continue t}f[0][r]=Math.min(f[0][r],b[r],_[r]),f[1][r]=Math.max(f[1][r],b[r],_[r])}Array.isArray(p[0])?(v=p.length&gt;e-1?p[e-1]:p.length&gt;0?p[p.length-1]:[0,0,0,1],y=p.length&gt;e?p[e]:p.length&gt;0?p[p.length-1]:[0,0,0,1]):v=y=p,3===v.length&amp;&amp;(v=[v[0],v[1],v[2],1]),3===y.length&amp;&amp;(y=[y[0],y[1],y[2],1]),!this.hasAlpha&amp;&amp;v[3]&lt;1&amp;&amp;(this.hasAlpha=!0),x=Array.isArray(g)?g.length&gt;e-1?g[e-1]:g.length&gt;0?g[g.length-1]:[0,0,0,1]:g;var T=s;if(s+=d(b,_),m){for(r=0;r&lt;2;++r)i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3]);u+=2,m=!1}i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3],b[0],b[1],b[2],_[0],_[1],_[2],T,-x,v[0],v[1],v[2],v[3],_[0],_[1],_[2],b[0],b[1],b[2],s,-x,y[0],y[1],y[2],y[3],_[0],_[1],_[2],b[0],b[1],b[2],s,x,y[0],y[1],y[2],y[3]),u+=4}}if(this.buffer.update(i),a.push(s),o.push(h[h.length-1].slice()),this.bounds=f,this.vertexCount=u,this.points=o,this.arcLength=a,&quot;dashes&quot;in t){var k=t.dashes.slice();for(k.unshift(0),e=1;e&lt;k.length;++e)k[e]=k[e-1]+k[e];var M=c(new Array(1024),[256,1,4]);for(e=0;e&lt;256;++e){for(r=0;r&lt;4;++r)M.set(e,0,r,0);1&amp;l.le(k,k[k.length-1]*e/255)?M.set(e,0,0,0):M.set(e,0,0,255)}this.texture.setPixels(M)}},y.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},y.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=function(t,e,r,n){return o[0]=n,o[1]=r,o[2]=e,o[3]=t,s[0]}(t.value[0],t.value[1],t.value[2],0),r=l.le(this.arcLength,e);if(r&lt;0)return null;if(r===this.arcLength.length-1)return new m(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),r);for(var n=this.points[r],i=this.points[Math.min(r+1,this.points.length-1)],a=(e-this.arcLength[r])/(this.arcLength[r+1]-this.arcLength[r]),c=1-a,u=[0,0,0],f=0;f&lt;3;++f)u[f]=c*n[f]+a*i[f];var h=Math.min(a&lt;.5?r:r+1,this.points.length-1);return new m(e,u,h,this.points[h])}},{&quot;./lib/shaders&quot;:274,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495}],276:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],277:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15];return t[0]=s*(h*v-p*m)-f*(l*v-c*m)+g*(l*p-c*h),t[1]=-(n*(h*v-p*m)-f*(i*v-a*m)+g*(i*p-a*h)),t[2]=n*(l*v-c*m)-s*(i*v-a*m)+g*(i*c-a*l),t[3]=-(n*(l*p-c*h)-s*(i*p-a*h)+f*(i*c-a*l)),t[4]=-(o*(h*v-p*m)-u*(l*v-c*m)+d*(l*p-c*h)),t[5]=r*(h*v-p*m)-u*(i*v-a*m)+d*(i*p-a*h),t[6]=-(r*(l*v-c*m)-o*(i*v-a*m)+d*(i*c-a*l)),t[7]=r*(l*p-c*h)-o*(i*p-a*h)+u*(i*c-a*l),t[8]=o*(f*v-p*g)-u*(s*v-c*g)+d*(s*p-c*f),t[9]=-(r*(f*v-p*g)-u*(n*v-a*g)+d*(n*p-a*f)),t[10]=r*(s*v-c*g)-o*(n*v-a*g)+d*(n*c-a*s),t[11]=-(r*(s*p-c*f)-o*(n*p-a*f)+u*(n*c-a*s)),t[12]=-(o*(f*m-h*g)-u*(s*m-l*g)+d*(s*h-l*f)),t[13]=r*(f*m-h*g)-u*(n*m-i*g)+d*(n*h-i*f),t[14]=-(r*(s*m-l*g)-o*(n*m-i*g)+d*(n*l-i*s)),t[15]=r*(s*h-l*f)-o*(n*h-i*f)+u*(n*l-i*s),t}},{}],278:[function(t,e,r){e.exports=function(t){var e=new Float32Array(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},{}],279:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],280:[function(t,e,r){e.exports=function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],281:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],f=t[10],h=t[11],p=t[12],d=t[13],g=t[14],m=t[15];return(e*o-r*a)*(f*m-h*g)-(e*s-n*a)*(u*m-h*d)+(e*l-i*a)*(u*g-f*d)+(r*s-n*o)*(c*m-h*p)-(r*l-i*o)*(c*g-f*p)+(n*l-i*s)*(c*d-u*p)}},{}],282:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,c=r*o,u=n*o,f=n*s,h=i*o,p=i*s,d=i*l,g=a*o,m=a*s,v=a*l;return t[0]=1-f-d,t[1]=u+v,t[2]=h-m,t[3]=0,t[4]=u-v,t[5]=1-c-d,t[6]=p+g,t[7]=0,t[8]=h+m,t[9]=p-g,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],283:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o=r[0],s=r[1],l=r[2],c=Math.sqrt(o*o+s*s+l*l);if(Math.abs(c)&lt;1e-6)return null;return o*=c=1/c,s*=c,l*=c,n=Math.sin(e),i=Math.cos(e),a=1-i,t[0]=o*o*a+i,t[1]=s*o*a+l*n,t[2]=l*o*a-s*n,t[3]=0,t[4]=o*s*a-l*n,t[5]=s*s*a+i,t[6]=l*s*a+o*n,t[7]=0,t[8]=o*l*a+s*n,t[9]=s*l*a-o*n,t[10]=l*l*a+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],284:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=n+n,l=i+i,c=a+a,u=n*s,f=n*l,h=n*c,p=i*l,d=i*c,g=a*c,m=o*s,v=o*l,y=o*c;return t[0]=1-(p+g),t[1]=f+y,t[2]=h-v,t[3]=0,t[4]=f-y,t[5]=1-(u+g),t[6]=d+m,t[7]=0,t[8]=h+v,t[9]=d-m,t[10]=1-(u+p),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}},{}],285:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],286:[function(t,e,r){e.exports=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}},{}],287:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],288:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],289:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],290:[function(t,e,r){e.exports=function(t,e,r,n,i,a,o){var s=1/(r-e),l=1/(i-n),c=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(i+n)*l,t[10]=(o+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*c,t[15]=0,t}},{}],291:[function(t,e,r){e.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],292:[function(t,e,r){e.exports={create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),copy:t(&quot;./copy&quot;),identity:t(&quot;./identity&quot;),transpose:t(&quot;./transpose&quot;),invert:t(&quot;./invert&quot;),adjoint:t(&quot;./adjoint&quot;),determinant:t(&quot;./determinant&quot;),multiply:t(&quot;./multiply&quot;),translate:t(&quot;./translate&quot;),scale:t(&quot;./scale&quot;),rotate:t(&quot;./rotate&quot;),rotateX:t(&quot;./rotateX&quot;),rotateY:t(&quot;./rotateY&quot;),rotateZ:t(&quot;./rotateZ&quot;),fromRotation:t(&quot;./fromRotation&quot;),fromRotationTranslation:t(&quot;./fromRotationTranslation&quot;),fromScaling:t(&quot;./fromScaling&quot;),fromTranslation:t(&quot;./fromTranslation&quot;),fromXRotation:t(&quot;./fromXRotation&quot;),fromYRotation:t(&quot;./fromYRotation&quot;),fromZRotation:t(&quot;./fromZRotation&quot;),fromQuat:t(&quot;./fromQuat&quot;),frustum:t(&quot;./frustum&quot;),perspective:t(&quot;./perspective&quot;),perspectiveFromFieldOfView:t(&quot;./perspectiveFromFieldOfView&quot;),ortho:t(&quot;./ortho&quot;),lookAt:t(&quot;./lookAt&quot;),str:t(&quot;./str&quot;)}},{&quot;./adjoint&quot;:277,&quot;./clone&quot;:278,&quot;./copy&quot;:279,&quot;./create&quot;:280,&quot;./determinant&quot;:281,&quot;./fromQuat&quot;:282,&quot;./fromRotation&quot;:283,&quot;./fromRotationTranslation&quot;:284,&quot;./fromScaling&quot;:285,&quot;./fromTranslation&quot;:286,&quot;./fromXRotation&quot;:287,&quot;./fromYRotation&quot;:288,&quot;./fromZRotation&quot;:289,&quot;./frustum&quot;:290,&quot;./identity&quot;:291,&quot;./invert&quot;:293,&quot;./lookAt&quot;:294,&quot;./multiply&quot;:295,&quot;./ortho&quot;:296,&quot;./perspective&quot;:297,&quot;./perspectiveFromFieldOfView&quot;:298,&quot;./rotate&quot;:299,&quot;./rotateX&quot;:300,&quot;./rotateY&quot;:301,&quot;./rotateZ&quot;:302,&quot;./scale&quot;:303,&quot;./str&quot;:304,&quot;./translate&quot;:305,&quot;./transpose&quot;:306}],293:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*g-f*d,M=u*m-h*d,A=u*v-p*d,S=f*m-h*g,E=f*v-p*g,C=h*v-p*m,L=y*C-x*E+b*S+_*A-w*M+T*k;if(!L)return null;return L=1/L,t[0]=(s*C-l*E+c*S)*L,t[1]=(i*E-n*C-a*S)*L,t[2]=(g*T-m*w+v*_)*L,t[3]=(h*w-f*T-p*_)*L,t[4]=(l*A-o*C-c*M)*L,t[5]=(r*C-i*A+a*M)*L,t[6]=(m*b-d*T-v*x)*L,t[7]=(u*T-h*b+p*x)*L,t[8]=(o*E-s*A+c*k)*L,t[9]=(n*A-r*E-a*k)*L,t[10]=(d*w-g*b+v*y)*L,t[11]=(f*b-u*w-p*y)*L,t[12]=(s*M-o*S-l*k)*L,t[13]=(r*S-n*M+i*k)*L,t[14]=(g*x-d*_-m*y)*L,t[15]=(u*_-f*x+h*y)*L,t}},{}],294:[function(t,e,r){var n=t(&quot;./identity&quot;);e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g=e[0],m=e[1],v=e[2],y=i[0],x=i[1],b=i[2],_=r[0],w=r[1],T=r[2];if(Math.abs(g-_)&lt;1e-6&amp;&amp;Math.abs(m-w)&lt;1e-6&amp;&amp;Math.abs(v-T)&lt;1e-6)return n(t);f=g-_,h=m-w,p=v-T,d=1/Math.sqrt(f*f+h*h+p*p),a=x*(p*=d)-b*(h*=d),o=b*(f*=d)-y*p,s=y*h-x*f,(d=Math.sqrt(a*a+o*o+s*s))?(a*=d=1/d,o*=d,s*=d):(a=0,o=0,s=0);l=h*s-p*o,c=p*a-f*s,u=f*o-h*a,(d=Math.sqrt(l*l+c*c+u*u))?(l*=d=1/d,c*=d,u*=d):(l=0,c=0,u=0);return t[0]=a,t[1]=l,t[2]=f,t[3]=0,t[4]=o,t[5]=c,t[6]=h,t[7]=0,t[8]=s,t[9]=u,t[10]=p,t[11]=0,t[12]=-(a*g+o*m+s*v),t[13]=-(l*g+c*m+u*v),t[14]=-(f*g+h*m+p*v),t[15]=1,t}},{&quot;./identity&quot;:291}],295:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],m=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*m,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,x=r[4],b=r[5],_=r[6],w=r[7],t[4]=x*n+b*s+_*f+w*g,t[5]=x*i+b*l+_*h+w*m,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,x=r[8],b=r[9],_=r[10],w=r[11],t[8]=x*n+b*s+_*f+w*g,t[9]=x*i+b*l+_*h+w*m,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,x=r[12],b=r[13],_=r[14],w=r[15],t[12]=x*n+b*s+_*f+w*g,t[13]=x*i+b*l+_*h+w*m,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}},{}],296:[function(t,e,r){e.exports=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t}},{}],297:[function(t,e,r){e.exports=function(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t}},{}],298:[function(t,e,r){e.exports=function(t,e,r,n){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),c=2/(i+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(i-a)*c*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t}},{}],299:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S,E=n[0],C=n[1],L=n[2],I=Math.sqrt(E*E+C*C+L*L);if(Math.abs(I)&lt;1e-6)return null;E*=I=1/I,C*=I,L*=I,i=Math.sin(r),a=Math.cos(r),o=1-a,s=e[0],l=e[1],c=e[2],u=e[3],f=e[4],h=e[5],p=e[6],d=e[7],g=e[8],m=e[9],v=e[10],y=e[11],x=E*E*o+a,b=C*E*o+L*i,_=L*E*o-C*i,w=E*C*o-L*i,T=C*C*o+a,k=L*C*o+E*i,M=E*L*o+C*i,A=C*L*o-E*i,S=L*L*o+a,t[0]=s*x+f*b+g*_,t[1]=l*x+h*b+m*_,t[2]=c*x+p*b+v*_,t[3]=u*x+d*b+y*_,t[4]=s*w+f*T+g*k,t[5]=l*w+h*T+m*k,t[6]=c*w+p*T+v*k,t[7]=u*w+d*T+y*k,t[8]=s*M+f*A+g*S,t[9]=l*M+h*A+m*S,t[10]=c*M+p*A+v*S,t[11]=u*M+d*A+y*S,e!==t&amp;&amp;(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t}},{}],300:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t}},{}],301:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i-c*n,t[1]=o*i-u*n,t[2]=s*i-f*n,t[3]=l*i-h*n,t[8]=a*n+c*i,t[9]=o*n+u*i,t[10]=s*n+f*i,t[11]=l*n+h*i,t}},{}],302:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t}},{}],303:[function(t,e,r){e.exports=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],304:[function(t,e,r){e.exports=function(t){return&quot;mat4(&quot;+t[0]+&quot;, &quot;+t[1]+&quot;, &quot;+t[2]+&quot;, &quot;+t[3]+&quot;, &quot;+t[4]+&quot;, &quot;+t[5]+&quot;, &quot;+t[6]+&quot;, &quot;+t[7]+&quot;, &quot;+t[8]+&quot;, &quot;+t[9]+&quot;, &quot;+t[10]+&quot;, &quot;+t[11]+&quot;, &quot;+t[12]+&quot;, &quot;+t[13]+&quot;, &quot;+t[14]+&quot;, &quot;+t[15]+&quot;)&quot;}},{}],305:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],m=r[1],v=r[2];e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*m+f*v+e[12],t[13]=i*g+l*m+h*v+e[13],t[14]=a*g+c*m+p*v+e[14],t[15]=o*g+u*m+d*v+e[15]);return t}},{}],306:[function(t,e,r){e.exports=function(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}},{}],307:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;barycentric&quot;),i=t(&quot;polytope-closest-point/lib/closest_point_2d.js&quot;);function a(t,e){for(var r=[0,0,0,0],n=0;n&lt;4;++n)for(var i=0;i&lt;4;++i)r[i]+=t[4*n+i]*e[n];return r}function o(t,e,r,n,i){for(var o=a(n,a(r,a(e,[t[0],t[1],t[2],1]))),s=0;s&lt;3;++s)o[s]/=o[3];return[.5*i[0]*(1+o[0]),.5*i[1]*(1-o[1])]}function s(t,e){for(var r=[0,0,0],n=0;n&lt;t.length;++n)for(var i=t[n],a=e[n],o=0;o&lt;3;++o)r[o]+=a*i[o];return r}e.exports=function(t,e,r,a,l,c){if(1===t.length)return[0,t[0].slice()];for(var u=new Array(t.length),f=0;f&lt;t.length;++f)u[f]=o(t[f],r,a,l,c);var h=0,p=1/0;for(f=0;f&lt;u.length;++f){for(var d=0,g=0;g&lt;2;++g)d+=Math.pow(u[f][g]-e[g],2);d&lt;p&amp;&amp;(p=d,h=f)}var m=function(t,e){if(2===t.length){for(var r=0,a=0,o=0;o&lt;2;++o)r+=Math.pow(e[o]-t[0][o],2),a+=Math.pow(e[o]-t[1][o],2);return r=Math.sqrt(r),a=Math.sqrt(a),r+a&lt;1e-6?[1,0]:[a/(r+a),r/(a+r)]}if(3===t.length){var s=[0,0];return i(t[0],t[1],t[2],e,s),n(t,s)}return[]}(u,e),v=0;for(f=0;f&lt;3;++f){if(m[f]&lt;-.001||m[f]&gt;1.0001)return null;v+=m[f]}if(Math.abs(v-1)&gt;.001)return null;return[h,s(t,m),m]}},{barycentric:78,&quot;polytope-closest-point/lib/closest_point_2d.js&quot;:525}],308:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n           , view\n           , projection\n           , inverseModel;\nuniform vec3 eyePosition\n           , lightPosition;\n\nvarying vec3 f_normal\n           , f_lightDirection\n           , f_eyeDirection\n           , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvec4 project(vec3 p) {\n  return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n  gl_Position      = project(position);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * vec4(position , 1.0);\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal  = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  f_color          = color;\n  f_data           = position;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n            , fresnel\n            , kambient\n            , kdiffuse\n            , kspecular;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n           , f_lightDirection\n           , f_eyeDirection\n           , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (f_color.a == 0.0 ||\n    outOfRange(clipBounds[0], clipBounds[1], f_data)\n  ) discard;\n\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\n\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * f_color.a;\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model, view, projection;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n  f_color = color;\n  f_data  = position;\n  f_uv    = uv;\n}&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\n\n  gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}&quot;]),l=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\nattribute float pointSize;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0);\n  } else {\n    gl_Position = projection * view * model * vec4(position, 1.0);\n  }\n  gl_PointSize = pointSize;\n  f_color = color;\n  f_uv = uv;\n}&quot;]),c=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5);\n  if(dot(pointR, pointR) &gt; 0.25) {\n    discard;\n  }\n  gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}&quot;]),u=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n  f_id        = id;\n  f_position  = position;\n}&quot;]),f=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]),h=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3  position;\nattribute float pointSize;\nattribute vec4  id;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0.0, 0.0, 0.0, 0.0);\n  } else {\n    gl_Position  = projection * view * model * vec4(position, 1.0);\n    gl_PointSize = pointSize;\n  }\n  f_id         = id;\n  f_position   = position;\n}&quot;]),p=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n}&quot;]),d=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec3 contourColor;\n\nvoid main() {\n  gl_FragColor = vec4(contourColor, 1.0);\n}\n&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;}]},r.wireShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;}]},r.pointShader={vertex:l,fragment:c,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;pointSize&quot;,type:&quot;float&quot;}]},r.pickShader={vertex:u,fragment:f,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}]},r.pointPickShader={vertex:h,fragment:f,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;pointSize&quot;,type:&quot;float&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}]},r.contourShader={vertex:p,fragment:d,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;}]}},{glslify:310}],309:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;normals&quot;),l=t(&quot;gl-mat4/multiply&quot;),c=t(&quot;gl-mat4/invert&quot;),u=t(&quot;ndarray&quot;),f=t(&quot;colormap&quot;),h=t(&quot;simplicial-complex-contour&quot;),p=t(&quot;typedarray-pool&quot;),d=t(&quot;./lib/shaders&quot;),g=t(&quot;./lib/closest-point&quot;),m=d.meshShader,v=d.wireShader,y=d.pointShader,x=d.pickShader,b=d.pointPickShader,_=d.contourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function T(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,T,k,M,A,S){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleColors=u,this.triangleNormals=h,this.triangleUVs=f,this.triangleIds=c,this.triangleVAO=p,this.triangleCount=0,this.lineWidth=1,this.edgePositions=d,this.edgeColors=m,this.edgeUVs=v,this.edgeIds=g,this.edgeVAO=y,this.edgeCount=0,this.pointPositions=x,this.pointColors=_,this.pointUVs=T,this.pointSizes=k,this.pointIds=b,this.pointVAO=M,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=A,this.contourVAO=S,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=w,this._view=w,this._projection=w,this._resolution=[1,1]}var k=T.prototype;function M(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;r&lt;e.length;++r){if(e.length&lt;2)return 1;if(e[r][0]===t)return e[r][1];if(e[r][0]&gt;t&amp;&amp;r&gt;0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}function A(t){var e=n(t,m.vertex,m.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.normal.location=4,e}function S(t){var e=n(t,v.vertex,v.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e}function E(t){var e=n(t,y.vertex,y.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.pointSize.location=4,e}function C(t){var e=n(t,x.vertex,x.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e}function L(t){var e=n(t,b.vertex,b.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e.attributes.pointSize.location=4,e}function I(t){var e=n(t,_.vertex,_.fragment);return e.attributes.position.location=0,e}k.isOpaque=function(){return!this.hasAlpha},k.isTransparent=function(){return this.hasAlpha},k.pickSlots=1,k.setPickBase=function(t){this.pickId=t},k.highlight=function(t){if(t&amp;&amp;this.contourEnable){for(var e=h(this.cells,this.intensity,t.intensity),r=e.cells,n=e.vertexIds,i=e.vertexWeights,a=r.length,o=p.mallocFloat32(6*a),s=0,l=0;l&lt;a;++l)for(var c=r[l],u=0;u&lt;2;++u){var f=c[0];2===c.length&amp;&amp;(f=c[u]);for(var d=n[f][0],g=n[f][1],m=i[f],v=1-m,y=this.positions[d],x=this.positions[g],b=0;b&lt;3;++b)o[s++]=m*y[b]+v*x[b]}this.contourCount=s/3|0,this.contourPositions.update(o.subarray(0,s)),p.free(o)}else this.contourCount=0},k.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,&quot;contourEnable&quot;in t&amp;&amp;(this.contourEnable=t.contourEnable),&quot;contourColor&quot;in t&amp;&amp;(this.contourColor=t.contourColor),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;lightPosition&quot;in t&amp;&amp;(this.lightPosition=t.lightPosition),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0)),&quot;opacityscale&quot;in t&amp;&amp;(this.opacityscale=t.opacityscale,this.hasAlpha=!0),&quot;ambient&quot;in t&amp;&amp;(this.ambientLight=t.ambient),&quot;diffuse&quot;in t&amp;&amp;(this.diffuseLight=t.diffuse),&quot;specular&quot;in t&amp;&amp;(this.specularLight=t.specular),&quot;roughness&quot;in t&amp;&amp;(this.roughness=t.roughness),&quot;fresnel&quot;in t&amp;&amp;(this.fresnel=t.fresnel),t.texture?(this.texture.dispose(),this.texture=o(e,t.texture)):t.colormap&amp;&amp;(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t,e){for(var r=f({colormap:t,nshades:256,format:&quot;rgba&quot;}),n=new Uint8Array(1024),i=0;i&lt;256;++i){for(var a=r[i],o=0;o&lt;3;++o)n[4*i+o]=a[o];n[4*i+3]=e?255*M(i/255,e):255*a[3]}return u(n,[256,256,4],[4,0,1])}(t.colormap,this.opacityscale)),this.texture.generateMipmap());var r=t.cells,n=t.positions;if(n&amp;&amp;r){var i=[],a=[],l=[],c=[],h=[],p=[],d=[],g=[],m=[],v=[],y=[],x=[],b=[],_=[];this.cells=r,this.positions=n;var w=t.vertexNormals,T=t.cellNormals,k=void 0===t.vertexNormalsEpsilon?1e-6:t.vertexNormalsEpsilon,A=void 0===t.faceNormalsEpsilon?1e-6:t.faceNormalsEpsilon;t.useFacetNormals&amp;&amp;!T&amp;&amp;(T=s.faceNormals(r,n,A)),T||w||(w=s.vertexNormals(r,n,k));var S=t.vertexColors,E=t.cellColors,C=t.meshColor||[1,1,1,1],L=t.vertexUVs,I=t.vertexIntensity,P=t.cellUVs,z=t.cellIntensity,O=1/0,D=-1/0;if(!L&amp;&amp;!P)if(I)if(t.vertexIntensityBounds)O=+t.vertexIntensityBounds[0],D=+t.vertexIntensityBounds[1];else for(var R=0;R&lt;I.length;++R){var F=I[R];O=Math.min(O,F),D=Math.max(D,F)}else if(z)if(t.cellIntensityBounds)O=+t.cellIntensityBounds[0],D=+t.cellIntensityBounds[1];else for(R=0;R&lt;z.length;++R){F=z[R];O=Math.min(O,F),D=Math.max(D,F)}else for(R=0;R&lt;n.length;++R){F=n[R][2];O=Math.min(O,F),D=Math.max(D,F)}this.intensity=I||(z||function(t){for(var e=t.length,r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n][2];return r}(n)),this.pickVertex=!(z||E);var B=t.pointSizes,N=t.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(R=0;R&lt;n.length;++R)for(var j=n[R],U=0;U&lt;3;++U)!isNaN(j[U])&amp;&amp;isFinite(j[U])&amp;&amp;(this.bounds[0][U]=Math.min(this.bounds[0][U],j[U]),this.bounds[1][U]=Math.max(this.bounds[1][U],j[U]));var V=0,q=0,H=0;t:for(R=0;R&lt;r.length;++R){var G=r[R];switch(G.length){case 1:for(j=n[W=G[0]],U=0;U&lt;3;++U)if(isNaN(j[U])||!isFinite(j[U]))continue t;v.push(j[0],j[1],j[2]),X=S?S[W]:E?E[R]:C,this.opacityscale&amp;&amp;I?a.push(X[0],X[1],X[2],this.opacity*M((I[W]-O)/(D-O),this.opacityscale)):3===X.length?y.push(X[0],X[1],X[2],this.opacity):(y.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),Z=L?L[W]:I?[(I[W]-O)/(D-O),0]:P?P[R]:z?[(z[R]-O)/(D-O),0]:[(j[2]-O)/(D-O),0],x.push(Z[0],Z[1]),B?b.push(B[W]):b.push(N),_.push(R),H+=1;break;case 2:for(U=0;U&lt;2;++U){j=n[W=G[U]];for(var Y=0;Y&lt;3;++Y)if(isNaN(j[Y])||!isFinite(j[Y]))continue t}for(U=0;U&lt;2;++U){j=n[W=G[U]];p.push(j[0],j[1],j[2]),X=S?S[W]:E?E[R]:C,this.opacityscale&amp;&amp;I?a.push(X[0],X[1],X[2],this.opacity*M((I[W]-O)/(D-O),this.opacityscale)):3===X.length?d.push(X[0],X[1],X[2],this.opacity):(d.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),Z=L?L[W]:I?[(I[W]-O)/(D-O),0]:P?P[R]:z?[(z[R]-O)/(D-O),0]:[(j[2]-O)/(D-O),0],g.push(Z[0],Z[1]),m.push(R)}q+=1;break;case 3:for(U=0;U&lt;3;++U)for(j=n[W=G[U]],Y=0;Y&lt;3;++Y)if(isNaN(j[Y])||!isFinite(j[Y]))continue t;for(U=0;U&lt;3;++U){var W,X,Z,J;j=n[W=G[2-U]];i.push(j[0],j[1],j[2]),(X=S?S[W]:E?E[R]:C)?this.opacityscale&amp;&amp;I?a.push(X[0],X[1],X[2],this.opacity*M((I[W]-O)/(D-O),this.opacityscale)):3===X.length?a.push(X[0],X[1],X[2],this.opacity):(a.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)):a.push(.5,.5,.5,1),Z=L?L[W]:I?[(I[W]-O)/(D-O),0]:P?P[R]:z?[(z[R]-O)/(D-O),0]:[(j[2]-O)/(D-O),0],c.push(Z[0],Z[1]),J=w?w[W]:T[R],l.push(J[0],J[1],J[2]),h.push(R)}V+=1}}this.pointCount=H,this.edgeCount=q,this.triangleCount=V,this.pointPositions.update(v),this.pointColors.update(y),this.pointUVs.update(x),this.pointSizes.update(b),this.pointIds.update(new Uint32Array(_)),this.edgePositions.update(p),this.edgeColors.update(d),this.edgeUVs.update(g),this.edgeIds.update(new Uint32Array(m)),this.trianglePositions.update(i),this.triangleColors.update(a),this.triangleUVs.update(c),this.triangleNormals.update(l),this.triangleIds.update(new Uint32Array(h))}},k.drawTransparent=k.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var s={model:r,view:n,projection:i,inverseModel:w.slice(),clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],contourColor:this.contourColor,texture:0};s.inverseModel=c(s.inverseModel,s.model),e.disable(e.CULL_FACE),this.texture.bind(0);var u=new Array(16);l(u,s.view,s.model),l(u,s.projection,u),c(u,u);for(o=0;o&lt;3;++o)s.eyePosition[o]=u[12+o]/u[15];var f,h=u[15];for(o=0;o&lt;3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o&lt;3;++o){for(var p=u[12+o],d=0;d&lt;3;++d)p+=u[4*d+o]*this.lightPosition[d];s.lightPosition[o]=p/h}this.triangleCount&gt;0&amp;&amp;((f=this.triShader).bind(),f.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind());this.edgeCount&gt;0&amp;&amp;this.lineWidth&gt;0&amp;&amp;((f=this.lineShader).bind(),f.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind());this.pointCount&gt;0&amp;&amp;((f=this.pointShader).bind(),f.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind());this.contourEnable&amp;&amp;this.contourCount&gt;0&amp;&amp;this.contourLineWidth&gt;0&amp;&amp;((f=this.contourShader).bind(),f.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind())},k.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s,l={model:r,view:n,projection:i,clipBounds:a,pickId:this.pickId/255};((s=this.pickShader).bind(),s.uniforms=l,this.triangleCount&gt;0&amp;&amp;(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount&gt;0&amp;&amp;(this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount&gt;0)&amp;&amp;((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind())},k.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;for(var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions,i=new Array(r.length),a=0;a&lt;r.length;++a)i[a]=n[r[a]];var o=t.coord[0],s=t.coord[1];if(!this.pickVertex){var l=this.positions[r[0]],c=this.positions[r[1]],u=this.positions[r[2]],f=[(l[0]+c[0]+u[0])/3,(l[1]+c[1]+u[1])/3,(l[2]+c[2]+u[2])/3];return{_cellCenter:!0,position:[o,s],index:e,cell:r,cellId:e,intensity:this.intensity[e],dataCoordinate:f}}var h=g(i,[o*this.pixelRatio,this._resolution[1]-s*this.pixelRatio],this._model,this._view,this._projection,this._resolution);if(!h)return null;var p=h[2],d=0;for(a=0;a&lt;r.length;++a)d+=p[a]*this.intensity[r[a]];return{position:h[1],index:r[h[0]],cell:r,cellId:e,intensity:d,dataCoordinate:this.positions[r[h[0]]]}},k.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.lineShader.dispose(),this.pointShader.dispose(),this.pickShader.dispose(),this.pointPickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose(),this.contourShader.dispose()},e.exports=function(t,e){1===arguments.length&amp;&amp;(t=(e=t).gl);var r=t.getExtension(&quot;OES_standard_derivatives&quot;)||t.getExtension(&quot;MOZ_OES_standard_derivatives&quot;)||t.getExtension(&quot;WEBKIT_OES_standard_derivatives&quot;);if(!r)throw new Error(&quot;derivatives not supported&quot;);var n=A(t),s=S(t),l=E(t),c=C(t),f=L(t),h=I(t),p=o(t,u(new Uint8Array([255,255,255,255]),[1,1,4]));p.generateMipmap(),p.minFilter=t.LINEAR_MIPMAP_LINEAR,p.magFilter=t.LINEAR;var d=i(t),g=i(t),m=i(t),v=i(t),y=i(t),x=a(t,[{buffer:d,type:t.FLOAT,size:3},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:g,type:t.FLOAT,size:4},{buffer:m,type:t.FLOAT,size:2},{buffer:v,type:t.FLOAT,size:3}]),b=i(t),_=i(t),w=i(t),k=i(t),M=a(t,[{buffer:b,type:t.FLOAT,size:3},{buffer:k,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:_,type:t.FLOAT,size:4},{buffer:w,type:t.FLOAT,size:2}]),P=i(t),z=i(t),O=i(t),D=i(t),R=i(t),F=a(t,[{buffer:P,type:t.FLOAT,size:3},{buffer:R,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:z,type:t.FLOAT,size:4},{buffer:O,type:t.FLOAT,size:2},{buffer:D,type:t.FLOAT,size:1}]),B=i(t),N=a(t,[{buffer:B,type:t.FLOAT,size:3}]),j=new T(t,p,n,s,l,c,f,h,d,y,g,m,v,x,b,k,_,w,M,P,R,z,O,D,F,B,N);return j.update(e),j}},{&quot;./lib/closest-point&quot;:307,&quot;./lib/shaders&quot;:308,colormap:131,&quot;gl-buffer&quot;:259,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/multiply&quot;:295,&quot;gl-shader&quot;:335,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495,normals:498,&quot;simplicial-complex-contour&quot;:556,&quot;typedarray-pool&quot;:595}],310:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],311:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[0,0,0,1,1,0,1,1]),s=i(e,a.boxVert,a.lineFrag);return new o(t,r,s)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;./shaders&quot;);function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawBox=(s=[0,0],l=[0,0],function(t,e,r,n,i){var a=this.plot,o=this.shader,c=a.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,o.uniforms.lo=s,o.uniforms.hi=l,o.uniforms.color=i,c.drawArrays(c.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:314,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],312:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),a=i(e,o.gridVert,o.gridFrag),l=i(e,o.tickVert,o.gridFrag);return new s(t,r,a,l)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;binary-search-bounds&quot;),o=t(&quot;./shaders&quot;);function s(t,e,r,n){this.plot=t,this.vbo=e,this.shader=r,this.tickShader=n,this.ticks=[[],[]]}function l(t,e){return t-e}var c,u,f,h,p,d=s.prototype;d.draw=(c=[0,0],u=[0,0],f=[0,0],function(){for(var t=this.plot,e=this.vbo,r=this.shader,n=this.ticks,i=t.gl,a=t._tickBounds,o=t.dataBox,s=t.viewBox,l=t.gridLineWidth,h=t.gridLineColor,p=t.gridLineEnable,d=t.pixelRatio,g=0;g&lt;2;++g){var m=a[g],v=a[g+2]-m,y=.5*(o[g+2]+o[g]),x=o[g+2]-o[g];u[g]=2*v/x,c[g]=2*(m-y)/x}r.bind(),e.bind(),r.attributes.dataCoord.pointer(),r.uniforms.dataShift=c,r.uniforms.dataScale=u;var b=0;for(g=0;g&lt;2;++g){f[0]=f[1]=0,f[g]=1,r.uniforms.dataAxis=f,r.uniforms.lineWidth=l[g]/(s[g+2]-s[g])*d,r.uniforms.color=h[g];var _=6*n[g].length;p[g]&amp;&amp;_&amp;&amp;i.drawArrays(i.TRIANGLES,b,_),b+=_}}),d.drawTickMarks=function(){var t=[0,0],e=[0,0],r=[1,0],n=[0,1],i=[0,0],o=[0,0];return function(){for(var s=this.plot,c=this.vbo,u=this.tickShader,f=this.ticks,h=s.gl,p=s._tickBounds,d=s.dataBox,g=s.viewBox,m=s.pixelRatio,v=s.screenBox,y=v[2]-v[0],x=v[3]-v[1],b=g[2]-g[0],_=g[3]-g[1],w=0;w&lt;2;++w){var T=p[w],k=p[w+2]-T,M=.5*(d[w+2]+d[w]),A=d[w+2]-d[w];e[w]=2*k/A,t[w]=2*(T-M)/A}e[0]*=b/y,t[0]*=b/y,e[1]*=_/x,t[1]*=_/x,u.bind(),c.bind(),u.attributes.dataCoord.pointer();var S=u.uniforms;S.dataShift=t,S.dataScale=e;var E=s.tickMarkLength,C=s.tickMarkWidth,L=s.tickMarkColor,I=6*f[0].length,P=Math.min(a.ge(f[0],(d[0]-p[0])/(p[2]-p[0]),l),f[0].length),z=Math.min(a.gt(f[0],(d[2]-p[0])/(p[2]-p[0]),l),f[0].length),O=0+6*P,D=6*Math.max(0,z-P),R=Math.min(a.ge(f[1],(d[1]-p[1])/(p[3]-p[1]),l),f[1].length),F=Math.min(a.gt(f[1],(d[3]-p[1])/(p[3]-p[1]),l),f[1].length),B=I+6*R,N=6*Math.max(0,F-R);i[0]=2*(g[0]-E[1])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[1]*m/y,o[1]=C[1]*m/x,N&amp;&amp;(S.color=L[1],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,B,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[1]-E[0])/x-1,o[0]=C[0]*m/y,o[1]=E[0]*m/x,D&amp;&amp;(S.color=L[0],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,O,D)),i[0]=2*(g[2]+E[3])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[3]*m/y,o[1]=C[3]*m/x,N&amp;&amp;(S.color=L[3],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,B,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[3]+E[2])/x-1,o[0]=C[2]*m/y,o[1]=E[2]*m/x,D&amp;&amp;(S.color=L[2],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,O,D))}}(),d.update=(h=[1,1,-1,-1,1,-1],p=[1,-1,1,1,-1,-1],function(t){for(var e=t.ticks,r=t.bounds,n=new Float32Array(18*(e[0].length+e[1].length)),i=(this.plot.zeroLineEnable,0),a=[[],[]],o=0;o&lt;2;++o)for(var s=a[o],l=e[o],c=r[o],u=r[o+2],f=0;f&lt;l.length;++f){var d=(l[f].x-c)/(u-c);s.push(d);for(var g=0;g&lt;6;++g)n[i++]=d,n[i++]=h[g],n[i++]=p[g]}this.ticks=a,this.vbo.update(n)}),d.dispose=function(){this.vbo.dispose(),this.shader.dispose(),this.tickShader.dispose()}},{&quot;./shaders&quot;:314,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],313:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[-1,-1,-1,1,1,-1,1,1]),s=i(e,a.lineVert,a.lineFrag);return new o(t,r,s)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;./shaders&quot;);function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawLine=(s=[0,0],l=[0,0],function(t,e,r,n,i,a){var o=this.plot,c=this.shader,u=o.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,c.uniforms.start=s,c.uniforms.end=l,c.uniforms.width=i*o.pixelRatio,c.uniforms.color=a,u.drawArrays(u.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:314,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],314:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=n([&quot;precision lowp float;\n#define GLSLIFY 1\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = vec4(color.xyz * color.w, color.w);\n}\n&quot;]);e.exports={lineVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 start, end;\nuniform float width;\n\nvec2 perp(vec2 v) {\n  return vec2(v.y, -v.x);\n}\n\nvec2 screen(vec2 v) {\n  return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n  vec2 delta = normalize(perp(start - end));\n  vec2 offset = mix(start, end, 0.5 * (coord.y+1.0));\n  gl_Position = vec4(screen(offset + 0.5 * width * delta * coord.x), 0, 1);\n}\n&quot;]),lineFrag:i,textVert:n([&quot;#define GLSLIFY 1\nattribute vec3 textCoordinate;\n\nuniform vec2 dataScale, dataShift, dataAxis, screenOffset, textScale;\nuniform float angle;\n\nvoid main() {\n  float dataOffset  = textCoordinate.z;\n  vec2 glyphOffset  = textCoordinate.xy;\n  mat2 glyphMatrix = mat2(cos(angle), sin(angle), -sin(angle), cos(angle));\n  vec2 screenCoordinate = dataAxis * (dataScale * dataOffset + dataShift) +\n    glyphMatrix * glyphOffset * textScale + screenOffset;\n  gl_Position = vec4(screenCoordinate, 0, 1);\n}\n&quot;]),textFrag:i,gridVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale;\nuniform float lineWidth;\n\nvoid main() {\n  vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n  pos += 10.0 * dataCoord.y * vec2(dataAxis.y, -dataAxis.x) + dataCoord.z * lineWidth;\n  gl_Position = vec4(pos, 0, 1);\n}\n&quot;]),gridFrag:i,boxVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 lo, hi;\n\nvec2 screen(vec2 v) {\n  return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n  gl_Position = vec4(screen(mix(lo, hi, coord)), 0, 1);\n}\n&quot;]),tickVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale, screenOffset, tickScale;\n\nvoid main() {\n  vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n  gl_Position = vec4(pos + tickScale*dataCoord.yz + screenOffset, 0, 1);\n}\n&quot;])}},{glslify:316}],315:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),a=i(e,s.textVert,s.textFrag);return new l(t,r,a)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;text-cache&quot;),o=t(&quot;binary-search-bounds&quot;),s=t(&quot;./shaders&quot;);function l(t,e,r){this.plot=t,this.vbo=e,this.shader=r,this.tickOffset=[[],[]],this.tickX=[[],[]],this.labelOffset=[0,0],this.labelCount=[0,0]}var c,u,f,h,p,d,g=l.prototype;g.drawTicks=(c=[0,0],u=[0,0],f=[0,0],function(t){var e=this.plot,r=this.shader,n=this.tickX[t],i=this.tickOffset[t],a=e.gl,s=e.viewBox,l=e.dataBox,h=e.screenBox,p=e.pixelRatio,d=e.tickEnable,g=e.tickPad,m=e.tickColor,v=e.tickAngle,y=e.labelEnable,x=e.labelPad,b=e.labelColor,_=e.labelAngle,w=this.labelOffset[t],T=this.labelCount[t],k=o.lt(n,l[t]),M=o.le(n,l[t+2]);c[0]=c[1]=0,c[t]=1,u[t]=(s[2+t]+s[t])/(h[2+t]-h[t])-1;var A=2/h[2+(1^t)]-h[1^t];u[1^t]=A*s[1^t]-1,d[t]&amp;&amp;(u[1^t]-=A*p*g[t],k&lt;M&amp;&amp;i[M]&gt;i[k]&amp;&amp;(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=m[t],r.uniforms.angle=v[t],a.drawArrays(a.TRIANGLES,i[k],i[M]-i[k]))),y[t]&amp;&amp;T&amp;&amp;(u[1^t]-=A*p*x[t],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t],r.uniforms.angle=_[t],a.drawArrays(a.TRIANGLES,w,T)),u[1^t]=A*s[2+(1^t)]-1,d[t+2]&amp;&amp;(u[1^t]+=A*p*g[t+2],k&lt;M&amp;&amp;i[M]&gt;i[k]&amp;&amp;(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=m[t+2],r.uniforms.angle=v[t+2],a.drawArrays(a.TRIANGLES,i[k],i[M]-i[k]))),y[t+2]&amp;&amp;T&amp;&amp;(u[1^t]+=A*p*x[t+2],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t+2],r.uniforms.angle=_[t+2],a.drawArrays(a.TRIANGLES,w,T))}),g.drawTitle=function(){var t=[0,0],e=[0,0];return function(){var r=this.plot,n=this.shader,i=r.gl,a=r.screenBox,o=r.titleCenter,s=r.titleAngle,l=r.titleColor,c=r.pixelRatio;if(this.titleCount){for(var u=0;u&lt;2;++u)e[u]=2*(o[u]*c-a[u])/(a[2+u]-a[u])-1;n.bind(),n.uniforms.dataAxis=t,n.uniforms.screenOffset=e,n.uniforms.angle=s,n.uniforms.color=l,i.drawArrays(i.TRIANGLES,this.titleOffset,this.titleCount)}}}(),g.bind=(h=[0,0],p=[0,0],d=[0,0],function(){var t=this.plot,e=this.shader,r=t._tickBounds,n=t.dataBox,i=t.screenBox,a=t.viewBox;e.bind();for(var o=0;o&lt;2;++o){var s=r[o],l=r[o+2]-s,c=.5*(n[o+2]+n[o]),u=n[o+2]-n[o],f=a[o],g=a[o+2]-f,m=i[o],v=i[o+2]-m;p[o]=2*l/u*g/v,h[o]=2*(s-c)/u*g/v}d[1]=2*t.pixelRatio/(i[3]-i[1]),d[0]=d[1]*(i[3]-i[1])/(i[2]-i[0]),e.uniforms.dataScale=p,e.uniforms.dataShift=h,e.uniforms.textScale=d,this.vbo.bind(),e.attributes.textCoordinate.pointer()}),g.update=function(t){var e,r,n,i,o,s=[],l=t.ticks,c=t.bounds;for(o=0;o&lt;2;++o){var u=[Math.floor(s.length/3)],f=[-1/0],h=l[o];for(e=0;e&lt;h.length;++e){var p=h[e],d=p.x,g=p.text,m=p.font||&quot;sans-serif&quot;;i=p.fontSize||12;for(var v=1/(c[o+2]-c[o]),y=c[o],x=g.split(&quot;\n&quot;),b=0;b&lt;x.length;b++)for(n=a(m,x[b]).data,r=0;r&lt;n.length;r+=2)s.push(n[r]*i,-n[r+1]*i-b*i*1.2,(d-y)*v);u.push(Math.floor(s.length/3)),f.push(d)}this.tickOffset[o]=u,this.tickX[o]=f}for(o=0;o&lt;2;++o){for(this.labelOffset[o]=Math.floor(s.length/3),n=a(t.labelFont[o],t.labels[o],{textAlign:&quot;center&quot;}).data,i=t.labelSize[o],e=0;e&lt;n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.labelCount[o]=Math.floor(s.length/3)-this.labelOffset[o]}for(this.titleOffset=Math.floor(s.length/3),n=a(t.titleFont,t.title).data,i=t.titleSize,e=0;e&lt;n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.titleCount=Math.floor(s.length/3)-this.titleOffset,this.vbo.update(s)},g.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:314,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335,&quot;text-cache&quot;:575}],316:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],317:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[e.drawingBufferWidth,e.drawingBufferHeight]),c=new l(e,r);return c.grid=i(c),c.text=a(c),c.line=o(c),c.box=s(c),c.update(t),c};var n=t(&quot;gl-select-static&quot;),i=t(&quot;./lib/grid&quot;),a=t(&quot;./lib/text&quot;),o=t(&quot;./lib/line&quot;),s=t(&quot;./lib/box&quot;);function l(t,e){this.gl=t,this.pickBuffer=e,this.screenBox=[0,0,t.drawingBufferWidth,t.drawingBufferHeight],this.viewBox=[0,0,0,0],this.dataBox=[-10,-10,10,10],this.gridLineEnable=[!0,!0],this.gridLineWidth=[1,1],this.gridLineColor=[[0,0,0,1],[0,0,0,1]],this.pixelRatio=1,this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickEnable=[!0,!0,!0,!0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[15,15,15,15],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelEnable=[!0,!0,!0,!0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.titleCenter=[0,0],this.titleEnable=!0,this.titleAngle=0,this.titleColor=[0,0,0,1],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[4,4],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderLineEnable=[!0,!0,!0,!0],this.borderLineWidth=[2,2,2,2],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.grid=null,this.text=null,this.line=null,this.box=null,this.objects=[],this.overlays=[],this._tickBounds=[1/0,1/0,-1/0,-1/0],this.static=!1,this.dirty=!1,this.pickDirty=!1,this.pickDelay=120,this.pickRadius=10,this._pickTimeout=null,this._drawPick=this.drawPick.bind(this),this._depthCounter=0}var c=l.prototype;function u(t){for(var e=t.slice(),r=0;r&lt;e.length;++r)e[r]=e[r].slice();return e}function f(t,e){return t.x-e.x}c.setDirty=function(){this.dirty=this.pickDirty=!0},c.setOverlayDirty=function(){this.dirty=!0},c.nextDepthValue=function(){return this._depthCounter++/65536},c.draw=function(){var t=this.gl,e=this.screenBox,r=this.viewBox,n=this.dataBox,i=this.pixelRatio,a=this.grid,o=this.line,s=this.text,l=this.objects;if(this._depthCounter=0,this.pickDirty&amp;&amp;(this._pickTimeout&amp;&amp;clearTimeout(this._pickTimeout),this.pickDirty=!1,this._pickTimeout=setTimeout(this._drawPick,this.pickDelay)),this.dirty){if(this.dirty=!1,t.bindFramebuffer(t.FRAMEBUFFER,null),t.enable(t.SCISSOR_TEST),t.disable(t.DEPTH_TEST),t.depthFunc(t.LESS),t.depthMask(!1),t.enable(t.BLEND),t.blendEquation(t.FUNC_ADD,t.FUNC_ADD),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),this.borderColor){t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]);var c=this.borderColor;t.clearColor(c[0]*c[3],c[1]*c[3],c[2]*c[3],c[3]),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}t.scissor(r[0],r[1],r[2]-r[0],r[3]-r[1]),t.viewport(r[0],r[1],r[2]-r[0],r[3]-r[1]);var u=this.backgroundColor;t.clearColor(u[0]*u[3],u[1]*u[3],u[2]*u[3],u[3]),t.clear(t.COLOR_BUFFER_BIT),a.draw();var f=this.zeroLineEnable,h=this.zeroLineColor,p=this.zeroLineWidth;if(f[0]||f[1]){o.bind();for(var d=0;d&lt;2;++d)if(f[d]&amp;&amp;n[d]&lt;=0&amp;&amp;n[d+2]&gt;=0){var g=e[d]-n[d]*(e[d+2]-e[d])/(n[d+2]-n[d]);0===d?o.drawLine(g,e[1],g,e[3],p[d],h[d]):o.drawLine(e[0],g,e[2],g,p[d],h[d])}}for(d=0;d&lt;l.length;++d)l[d].draw();t.viewport(e[0],e[1],e[2]-e[0],e[3]-e[1]),t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]),this.grid.drawTickMarks(),o.bind();var m=this.borderLineEnable,v=this.borderLineWidth,y=this.borderLineColor;for(m[1]&amp;&amp;o.drawLine(r[0],r[1]-.5*v[1]*i,r[0],r[3]+.5*v[3]*i,v[1],y[1]),m[0]&amp;&amp;o.drawLine(r[0]-.5*v[0]*i,r[1],r[2]+.5*v[2]*i,r[1],v[0],y[0]),m[3]&amp;&amp;o.drawLine(r[2],r[1]-.5*v[1]*i,r[2],r[3]+.5*v[3]*i,v[3],y[3]),m[2]&amp;&amp;o.drawLine(r[0]-.5*v[0]*i,r[3],r[2]+.5*v[2]*i,r[3],v[2],y[2]),s.bind(),d=0;d&lt;2;++d)s.drawTicks(d);this.titleEnable&amp;&amp;s.drawTitle();var x=this.overlays;for(d=0;d&lt;x.length;++d)x[d].draw();t.disable(t.SCISSOR_TEST),t.disable(t.BLEND),t.depthMask(!0)}},c.drawPick=function(){if(!this.static){var t=this.pickBuffer;this.gl,this._pickTimeout=null,t.begin();for(var e=1,r=this.objects,n=0;n&lt;r.length;++n)e=r[n].drawPick(e);t.end()}},c.pick=function(t,e){if(!this.static){var r=this.pixelRatio,n=this.pickPixelRatio,i=this.viewBox,a=0|Math.round((t-i[0]/r)*n),o=0|Math.round((e-i[1]/r)*n),s=this.pickBuffer.query(a,o,this.pickRadius);if(!s)return null;for(var l=s.id+(s.value[0]&lt;&lt;8)+(s.value[1]&lt;&lt;16)+(s.value[2]&lt;&lt;24),c=this.objects,u=0;u&lt;c.length;++u){var f=c[u].pick(a,o,l);if(f)return f}return null}},c.setScreenBox=function(t){var e=this.screenBox,r=this.pixelRatio;e[0]=0|Math.round(t[0]*r),e[1]=0|Math.round(t[1]*r),e[2]=0|Math.round(t[2]*r),e[3]=0|Math.round(t[3]*r),this.setDirty()},c.setDataBox=function(t){var e=this.dataBox;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3])&amp;&amp;(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],this.setDirty())},c.setViewBox=function(t){var e=this.pixelRatio,r=this.viewBox;r[0]=0|Math.round(t[0]*e),r[1]=0|Math.round(t[1]*e),r[2]=0|Math.round(t[2]*e),r[3]=0|Math.round(t[3]*e);var n=this.pickPixelRatio;this.pickBuffer.shape=[0|Math.round((t[2]-t[0])*n),0|Math.round((t[3]-t[1])*n)],this.setDirty()},c.update=function(t){t=t||{};var e=this.gl;this.pixelRatio=t.pixelRatio||1;var r=this.pixelRatio;this.pickPixelRatio=Math.max(r,1),this.setScreenBox(t.screenBox||[0,0,e.drawingBufferWidth/r,e.drawingBufferHeight/r]);this.screenBox;this.setViewBox(t.viewBox||[.125*(this.screenBox[2]-this.screenBox[0])/r,.125*(this.screenBox[3]-this.screenBox[1])/r,.875*(this.screenBox[2]-this.screenBox[0])/r,.875*(this.screenBox[3]-this.screenBox[1])/r]);var n=this.viewBox,i=(n[2]-n[0])/(n[3]-n[1]);this.setDataBox(t.dataBox||[-10,-10/i,10,10/i]),this.borderColor=!1!==t.borderColor&amp;&amp;(t.borderColor||[0,0,0,0]).slice(),this.backgroundColor=(t.backgroundColor||[0,0,0,0]).slice(),this.gridLineEnable=(t.gridLineEnable||[!0,!0]).slice(),this.gridLineWidth=(t.gridLineWidth||[1,1]).slice(),this.gridLineColor=u(t.gridLineColor||[[.5,.5,.5,1],[.5,.5,.5,1]]),this.zeroLineEnable=(t.zeroLineEnable||[!0,!0]).slice(),this.zeroLineWidth=(t.zeroLineWidth||[4,4]).slice(),this.zeroLineColor=u(t.zeroLineColor||[[0,0,0,1],[0,0,0,1]]),this.tickMarkLength=(t.tickMarkLength||[0,0,0,0]).slice(),this.tickMarkWidth=(t.tickMarkWidth||[0,0,0,0]).slice(),this.tickMarkColor=u(t.tickMarkColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.titleCenter=(t.titleCenter||[.5*(n[0]+n[2])/r,(n[3]+120)/r]).slice(),this.titleEnable=!(&quot;titleEnable&quot;in t)||!!t.titleEnable,this.titleAngle=t.titleAngle||0,this.titleColor=(t.titleColor||[0,0,0,1]).slice(),this.labelPad=(t.labelPad||[15,15,15,15]).slice(),this.labelAngle=(t.labelAngle||[0,Math.PI/2,0,3*Math.PI/2]).slice(),this.labelEnable=(t.labelEnable||[!0,!0,!0,!0]).slice(),this.labelColor=u(t.labelColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.tickPad=(t.tickPad||[15,15,15,15]).slice(),this.tickAngle=(t.tickAngle||[0,0,0,0]).slice(),this.tickEnable=(t.tickEnable||[!0,!0,!0,!0]).slice(),this.tickColor=u(t.tickColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.borderLineEnable=(t.borderLineEnable||[!0,!0,!0,!0]).slice(),this.borderLineWidth=(t.borderLineWidth||[2,2,2,2]).slice(),this.borderLineColor=u(t.borderLineColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]);var a=t.ticks||[[],[]],o=this._tickBounds;o[0]=o[1]=1/0,o[2]=o[3]=-1/0;for(var s=0;s&lt;2;++s){var l=a[s].slice(0);0!==l.length&amp;&amp;(l.sort(f),o[s]=Math.min(o[s],l[0].x),o[s+2]=Math.max(o[s+2],l[l.length-1].x))}this.grid.update({bounds:o,ticks:a}),this.text.update({bounds:o,ticks:a,labels:t.labels||[&quot;x&quot;,&quot;y&quot;],labelSize:t.labelSize||[12,12],labelFont:t.labelFont||[&quot;sans-serif&quot;,&quot;sans-serif&quot;],title:t.title||&quot;&quot;,titleSize:t.titleSize||18,titleFont:t.titleFont||&quot;sans-serif&quot;}),this.static=!!t.static,this.setDirty()},c.dispose=function(){this.box.dispose(),this.grid.dispose(),this.text.dispose(),this.line.dispose();for(var t=this.objects.length-1;t&gt;=0;--t)this.objects[t].dispose();this.objects.length=0;for(t=this.overlays.length-1;t&gt;=0;--t)this.overlays[t].dispose();this.overlays.length=0,this.gl=null},c.addObject=function(t){this.objects.indexOf(t)&lt;0&amp;&amp;(this.objects.push(t),this.setDirty())},c.removeObject=function(t){for(var e=this.objects,r=0;r&lt;e.length;++r)if(e[r]===t){e.splice(r,1),this.setDirty();break}},c.addOverlay=function(t){this.overlays.indexOf(t)&lt;0&amp;&amp;(this.overlays.push(t),this.setOverlayDirty())},c.removeOverlay=function(t){for(var e=this.overlays,r=0;r&lt;e.length;++r)if(e[r]===t){e.splice(r,1),this.setOverlayDirty();break}}},{&quot;./lib/box&quot;:311,&quot;./lib/grid&quot;:312,&quot;./lib/line&quot;:313,&quot;./lib/text&quot;:315,&quot;gl-select-static&quot;:334}],318:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){t=t||document.body,e=e||{};var r=[.01,1/0];&quot;distanceLimits&quot;in e&amp;&amp;(r[0]=e.distanceLimits[0],r[1]=e.distanceLimits[1]);&quot;zoomMin&quot;in e&amp;&amp;(r[0]=e.zoomMin);&quot;zoomMax&quot;in e&amp;&amp;(r[1]=e.zoomMax);var c=i({center:e.center||[0,0,0],up:e.up||[0,1,0],eye:e.eye||[0,0,10],mode:e.mode||&quot;orbit&quot;,distanceLimits:r}),u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],f=0,h=t.clientWidth,p=t.clientHeight,d={keyBindingMode:&quot;rotate&quot;,enableWheel:!0,view:c,element:t,delay:e.delay||16,rotateSpeed:e.rotateSpeed||1,zoomSpeed:e.zoomSpeed||1,translateSpeed:e.translateSpeed||1,flipX:!!e.flipX,flipY:!!e.flipY,modes:c.modes,_ortho:e._ortho||e.projection&amp;&amp;&quot;orthographic&quot;===e.projection.type||!1,tick:function(){var e=n(),r=this.delay,i=e-2*r;c.idle(e-r),c.recalcMatrix(i),c.flush(e-(100+2*r));for(var a=!0,o=c.computedMatrix,s=0;s&lt;16;++s)a=a&amp;&amp;u[s]===o[s],u[s]=o[s];var l=t.clientWidth===h&amp;&amp;t.clientHeight===p;return h=t.clientWidth,p=t.clientHeight,a?!l:(f=Math.exp(c.computedRadius[0]),!0)},lookAt:function(t,e,r){c.lookAt(c.lastT(),t,e,r)},rotate:function(t,e,r){c.rotate(c.lastT(),t,e,r)},pan:function(t,e,r){c.pan(c.lastT(),t,e,r)},translate:function(t,e,r){c.translate(c.lastT(),t,e,r)}};return Object.defineProperties(d,{matrix:{get:function(){return c.computedMatrix},set:function(t){return c.setMatrix(c.lastT(),t),c.computedMatrix},enumerable:!0},mode:{get:function(){return c.getMode()},set:function(t){var e=c.computedUp.slice(),r=c.computedEye.slice(),i=c.computedCenter.slice();if(c.setMode(t),&quot;turntable&quot;===t){var a=n();c._active.lookAt(a,r,i,e),c._active.lookAt(a+500,r,i,[0,0,1]),c._active.flush(a)}return c.getMode()},enumerable:!0},center:{get:function(){return c.computedCenter},set:function(t){return c.lookAt(c.lastT(),null,t),c.computedCenter},enumerable:!0},eye:{get:function(){return c.computedEye},set:function(t){return c.lookAt(c.lastT(),t),c.computedEye},enumerable:!0},up:{get:function(){return c.computedUp},set:function(t){return c.lookAt(c.lastT(),null,null,t),c.computedUp},enumerable:!0},distance:{get:function(){return f},set:function(t){return c.setDistance(c.lastT(),t),t},enumerable:!0},distanceLimits:{get:function(){return c.getDistanceLimits(r)},set:function(t){return c.setDistanceLimits(t),t},enumerable:!0}}),t.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault(),!1})),d._lastX=-1,d._lastY=-1,d._lastMods={shift:!1,control:!1,alt:!1,meta:!1},d.enableMouseListeners=function(){function e(e,r,i,a){var o=d.keyBindingMode;if(!1!==o){var s=&quot;rotate&quot;===o,l=&quot;pan&quot;===o,u=&quot;zoom&quot;===o,h=!!a.control,p=!!a.alt,g=!!a.shift,m=!!(1&amp;e),v=!!(2&amp;e),y=!!(4&amp;e),x=1/t.clientHeight,b=x*(r-d._lastX),_=x*(i-d._lastY),w=d.flipX?1:-1,T=d.flipY?1:-1,k=Math.PI*d.rotateSpeed,M=n();if(-1!==d._lastX&amp;&amp;-1!==d._lastY&amp;&amp;((s&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||m&amp;&amp;!h&amp;&amp;!p&amp;&amp;g)&amp;&amp;c.rotate(M,w*k*b,-T*k*_,0),(l&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||v||m&amp;&amp;h&amp;&amp;!p&amp;&amp;!g)&amp;&amp;c.pan(M,-d.translateSpeed*b*f,d.translateSpeed*_*f,0),u&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||y||m&amp;&amp;!h&amp;&amp;p&amp;&amp;!g)){var A=-d.zoomSpeed*_/window.innerHeight*(M-c.lastT())*100;c.pan(M,0,0,f*(Math.exp(A)-1))}return d._lastX=r,d._lastY=i,d._lastMods=a,!0}}d.mouseListener=a(t,e),t.addEventListener(&quot;touchstart&quot;,(function(r){var n=s(r.changedTouches[0],t);e(0,n[0],n[1],d._lastMods),e(1,n[0],n[1],d._lastMods)}),!!l&amp;&amp;{passive:!0}),t.addEventListener(&quot;touchmove&quot;,(function(r){var n=s(r.changedTouches[0],t);e(1,n[0],n[1],d._lastMods),r.preventDefault()}),!!l&amp;&amp;{passive:!1}),t.addEventListener(&quot;touchend&quot;,(function(t){e(0,d._lastX,d._lastY,d._lastMods)}),!!l&amp;&amp;{passive:!0}),d.wheelListener=o(t,(function(t,e){if(!1!==d.keyBindingMode&amp;&amp;d.enableWheel){var r=d.flipX?1:-1,i=d.flipY?1:-1,a=n();if(Math.abs(t)&gt;Math.abs(e))c.rotate(a,0,0,-t*r*Math.PI*d.rotateSpeed/window.innerWidth);else if(!d._ortho){var o=-d.zoomSpeed*i*e/window.innerHeight*(a-c.lastT())/20;c.pan(a,0,0,f*(Math.exp(o)-1))}}}),!0)},d.enableMouseListeners(),d};var n=t(&quot;right-now&quot;),i=t(&quot;3d-view&quot;),a=t(&quot;mouse-change&quot;),o=t(&quot;mouse-wheel&quot;),s=t(&quot;mouse-event-offset&quot;),l=t(&quot;has-passive-events&quot;)},{&quot;3d-view&quot;:54,&quot;has-passive-events&quot;:441,&quot;mouse-change&quot;:483,&quot;mouse-event-offset&quot;:484,&quot;mouse-wheel&quot;:486,&quot;right-now&quot;:542}],319:[function(t,e,r){var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision mediump float;\n#define GLSLIFY 1\nattribute vec2 position;\nvarying vec2 uv;\nvoid main() {\n  uv = position;\n  gl_Position = vec4(position, 0, 1);\n}&quot;]),o=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform sampler2D accumBuffer;\nvarying vec2 uv;\n\nvoid main() {\n  vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\n  gl_FragColor = min(vec4(1,1,1,1), accum);\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec2&quot;}])}},{&quot;gl-shader&quot;:335,glslify:320}],320:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],321:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./camera.js&quot;),i=t(&quot;gl-axes3d&quot;),a=t(&quot;gl-axes3d/properties&quot;),o=t(&quot;gl-spikes3d&quot;),s=t(&quot;gl-select-static&quot;),l=t(&quot;gl-fbo&quot;),c=t(&quot;a-big-triangle&quot;),u=t(&quot;mouse-change&quot;),f=t(&quot;gl-mat4/perspective&quot;),h=t(&quot;gl-mat4/ortho&quot;),p=t(&quot;./lib/shader&quot;),d=t(&quot;is-mobile&quot;)({tablet:!0,featureDetect:!0});function g(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function m(t){var e=Math.round(Math.log(Math.abs(t))/Math.log(10));if(e&lt;0){var r=Math.round(Math.pow(10,-e));return Math.ceil(t*r)/r}if(e&gt;0){r=Math.round(Math.pow(10,e));return Math.ceil(t/r)*r}return Math.ceil(t)}function v(t){return&quot;boolean&quot;!=typeof t||t}e.exports={createScene:function(t){(t=t||{}).camera=t.camera||{};var e=t.canvas;if(!e){if(e=document.createElement(&quot;canvas&quot;),t.container)t.container.appendChild(e);else document.body.appendChild(e)}var r=t.gl;r||(t.glOptions&amp;&amp;(d=!!t.glOptions.preserveDrawingBuffer),r=function(t,e){var r=null;try{(r=t.getContext(&quot;webgl&quot;,e))||(r=t.getContext(&quot;experimental-webgl&quot;,e))}catch(t){return null}return r}(e,t.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:d}));if(!r)throw new Error(&quot;webgl not supported&quot;);var y=t.bounds||[[-10,-10,-10],[10,10,10]],x=new g,b=l(r,r.drawingBufferWidth,r.drawingBufferHeight,{preferFloat:!d}),_=p(r),w=t.cameraObject&amp;&amp;!0===t.cameraObject._ortho||t.camera.projection&amp;&amp;&quot;orthographic&quot;===t.camera.projection.type||!1,T={eye:t.camera.eye||[2,0,0],center:t.camera.center||[0,0,0],up:t.camera.up||[0,1,0],zoomMin:t.camera.zoomMax||.1,zoomMax:t.camera.zoomMin||100,mode:t.camera.mode||&quot;turntable&quot;,_ortho:w},k=t.axes||{},M=i(r,k);M.enable=!k.disable;var A=t.spikes||{},S=o(r,A),E=[],C=[],L=[],I=[],P=!0,z=!0,O=new Array(16),D=new Array(16),R={view:null,projection:O,model:D,_ortho:!1},F=(z=!0,[r.drawingBufferWidth,r.drawingBufferHeight]),B=t.cameraObject||n(e,T),N={gl:r,contextLost:!1,pixelRatio:t.pixelRatio||1,canvas:e,selection:x,camera:B,axes:M,axesPixels:null,spikes:S,bounds:y,objects:E,shape:F,aspect:t.aspectRatio||[1,1,1],pickRadius:t.pickRadius||10,zNear:t.zNear||.01,zFar:t.zFar||1e3,fovy:t.fovy||Math.PI/4,clearColor:t.clearColor||[0,0,0,0],autoResize:v(t.autoResize),autoBounds:v(t.autoBounds),autoScale:!!t.autoScale,autoCenter:v(t.autoCenter),clipToBounds:v(t.clipToBounds),snapToData:!!t.snapToData,onselect:t.onselect||null,onrender:t.onrender||null,onclick:t.onclick||null,cameraParams:R,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(t){this.aspect[0]=t.x,this.aspect[1]=t.y,this.aspect[2]=t.z,z=!0},setBounds:function(t,e){this.bounds[0][t]=e.min,this.bounds[1][t]=e.max},setClearColor:function(t){this.clearColor=t},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},j=[r.drawingBufferWidth/N.pixelRatio|0,r.drawingBufferHeight/N.pixelRatio|0];function U(){if(!N._stopped&amp;&amp;N.autoResize){var t=e.parentNode,r=1,n=1;t&amp;&amp;t!==document.body?(r=t.clientWidth,n=t.clientHeight):(r=window.innerWidth,n=window.innerHeight);var i=0|Math.ceil(r*N.pixelRatio),a=0|Math.ceil(n*N.pixelRatio);if(i!==e.width||a!==e.height){e.width=i,e.height=a;var o=e.style;o.position=o.position||&quot;absolute&quot;,o.left=&quot;0px&quot;,o.top=&quot;0px&quot;,o.width=r+&quot;px&quot;,o.height=n+&quot;px&quot;,P=!0}}}N.autoResize&amp;&amp;U();function V(){for(var t=E.length,e=I.length,n=0;n&lt;e;++n)L[n]=0;t:for(n=0;n&lt;t;++n){var i=E[n],a=i.pickSlots;if(a){for(var o=0;o&lt;e;++o)if(L[o]+a&lt;255){C[n]=o,i.setPickBase(L[o]+1),L[o]+=a;continue t}var l=s(r,F);C[n]=e,I.push(l),L.push(a),i.setPickBase(1),e+=1}else C[n]=-1}for(;e&gt;0&amp;&amp;0===L[e-1];)L.pop(),I.pop().dispose()}function q(){if(N.contextLost)return!0;r.isContextLost()&amp;&amp;(N.contextLost=!0,N.mouseListener.enabled=!1,N.selection.object=null,N.oncontextloss&amp;&amp;N.oncontextloss())}window.addEventListener(&quot;resize&quot;,U),N.update=function(t){N._stopped||(t=t||{},P=!0,z=!0)},N.add=function(t){N._stopped||(t.axes=M,E.push(t),C.push(-1),P=!0,z=!0,V())},N.remove=function(t){if(!N._stopped){var e=E.indexOf(t);e&lt;0||(E.splice(e,1),C.pop(),P=!0,z=!0,V())}},N.dispose=function(){if(!N._stopped&amp;&amp;(N._stopped=!0,window.removeEventListener(&quot;resize&quot;,U),e.removeEventListener(&quot;webglcontextlost&quot;,q),N.mouseListener.enabled=!1,!N.contextLost)){M.dispose(),S.dispose();for(var t=0;t&lt;E.length;++t)E[t].dispose();b.dispose();for(t=0;t&lt;I.length;++t)I[t].dispose();_.dispose(),r=null,M=null,S=null,E=[]}},N._mouseRotating=!1,N._prevButtons=0,N.enableMouseListeners=function(){N.mouseListener=u(e,(function(t,e,r){if(!N._stopped){var n=I.length,i=E.length,a=x.object;x.distance=1/0,x.mouse[0]=e,x.mouse[1]=r,x.object=null,x.screen=null,x.dataCoordinate=x.dataPosition=null;var o=!1;if(t&amp;&amp;N._prevButtons)N._mouseRotating=!0;else{N._mouseRotating&amp;&amp;(z=!0),N._mouseRotating=!1;for(var s=0;s&lt;n;++s){var l=I[s].query(e,j[1]-r-1,N.pickRadius);if(l){if(l.distance&gt;x.distance)continue;for(var c=0;c&lt;i;++c){var u=E[c];if(C[c]===s){var f=u.pick(l);f&amp;&amp;(x.buttons=t,x.screen=l.coord,x.distance=l.distance,x.object=u,x.index=f.distance,x.dataPosition=f.position,x.dataCoordinate=f.dataCoordinate,x.data=f,o=!0)}}}}}a&amp;&amp;a!==x.object&amp;&amp;(a.highlight&amp;&amp;a.highlight(null),P=!0),x.object&amp;&amp;(x.object.highlight&amp;&amp;x.object.highlight(x.data),P=!0),(o=o||x.object!==a)&amp;&amp;N.onselect&amp;&amp;N.onselect(x),1&amp;t&amp;&amp;!(1&amp;N._prevButtons)&amp;&amp;N.onclick&amp;&amp;N.onclick(x),N._prevButtons=t}}))},e.addEventListener(&quot;webglcontextlost&quot;,q);var H=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],G=[H[0].slice(),H[1].slice()];function Y(){if(!q()){U();var t=N.camera.tick();R.view=N.camera.matrix,P=P||t,z=z||t,M.pixelRatio=N.pixelRatio,S.pixelRatio=N.pixelRatio;var e=E.length,n=H[0],i=H[1];n[0]=n[1]=n[2]=1/0,i[0]=i[1]=i[2]=-1/0;for(var o=0;o&lt;e;++o){(L=E[o]).pixelRatio=N.pixelRatio,L.axes=N.axes,P=P||!!L.dirty,z=z||!!L.dirty;var s=L.bounds;if(s)for(var l=s[0],u=s[1],p=0;p&lt;3;++p)n[p]=Math.min(n[p],l[p]),i[p]=Math.max(i[p],u[p])}var d=N.bounds;if(N.autoBounds)for(p=0;p&lt;3;++p){if(i[p]&lt;n[p])n[p]=-1,i[p]=1;else{n[p]===i[p]&amp;&amp;(n[p]-=1,i[p]+=1);var g=.05*(i[p]-n[p]);n[p]=n[p]-g,i[p]=i[p]+g}d[0][p]=n[p],d[1][p]=i[p]}var v=!1;for(p=0;p&lt;3;++p)v=v||G[0][p]!==d[0][p]||G[1][p]!==d[1][p],G[0][p]=d[0][p],G[1][p]=d[1][p];if(z=z||v,P=P||v){if(v){var y=[0,0,0];for(o=0;o&lt;3;++o)y[o]=m((d[1][o]-d[0][o])/10);M.autoTicks?M.update({bounds:d,tickSpacing:y}):M.update({bounds:d})}var T=r.drawingBufferWidth,k=r.drawingBufferHeight;F[0]=T,F[1]=k,j[0]=0|Math.max(T/N.pixelRatio,1),j[1]=0|Math.max(k/N.pixelRatio,1),function(t,e){var r=t.bounds,n=t.cameraParams,i=n.projection,a=n.model,o=t.gl.drawingBufferWidth,s=t.gl.drawingBufferHeight,l=t.zNear,c=t.zFar,u=t.fovy,p=o/s;e?(h(i,-p,p,-1,1,l,c),n._ortho=!0):(f(i,u,p,l,c),n._ortho=!1);for(var d=0;d&lt;16;++d)a[d]=0;a[15]=1;var g=0;for(d=0;d&lt;3;++d)g=Math.max(g,r[1][d]-r[0][d]);for(d=0;d&lt;3;++d)t.autoScale?a[5*d]=t.aspect[d]/(r[1][d]-r[0][d]):a[5*d]=1/g,t.autoCenter&amp;&amp;(a[12+d]=.5*-a[5*d]*(r[0][d]+r[1][d]))}(N,w);for(o=0;o&lt;e;++o){(L=E[o]).axesBounds=d,N.clipToBounds&amp;&amp;(L.clipBounds=d)}x.object&amp;&amp;(N.snapToData?S.position=x.dataCoordinate:S.position=x.dataPosition,S.bounds=d),z&amp;&amp;(z=!1,function(){if(!q()){r.colorMask(!0,!0,!0,!0),r.depthMask(!0),r.disable(r.BLEND),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL);for(var t=E.length,e=I.length,n=0;n&lt;e;++n){var i=I[n];i.shape=j,i.begin();for(var a=0;a&lt;t;++a)if(C[a]===n){var o=E[a];o.drawPick&amp;&amp;(o.pixelRatio=1,o.drawPick(R))}i.end()}}}()),N.axesPixels=a(N.axes,R,T,k),N.onrender&amp;&amp;N.onrender(),r.bindFramebuffer(r.FRAMEBUFFER,null),r.viewport(0,0,T,k),N.clearRGBA(),r.depthMask(!0),r.colorMask(!0,!0,!0,!0),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL),r.disable(r.BLEND),r.disable(r.CULL_FACE);var A=!1;M.enable&amp;&amp;(A=A||M.isTransparent(),M.draw(R)),S.axes=M,x.object&amp;&amp;S.draw(R),r.disable(r.CULL_FACE);for(o=0;o&lt;e;++o){(L=E[o]).axes=M,L.pixelRatio=N.pixelRatio,L.isOpaque&amp;&amp;L.isOpaque()&amp;&amp;L.draw(R),L.isTransparent&amp;&amp;L.isTransparent()&amp;&amp;(A=!0)}if(A){b.shape=F,b.bind(),r.clear(r.DEPTH_BUFFER_BIT),r.colorMask(!1,!1,!1,!1),r.depthMask(!0),r.depthFunc(r.LESS),M.enable&amp;&amp;M.isTransparent()&amp;&amp;M.drawTransparent(R);for(o=0;o&lt;e;++o){(L=E[o]).isOpaque&amp;&amp;L.isOpaque()&amp;&amp;L.draw(R)}r.enable(r.BLEND),r.blendEquation(r.FUNC_ADD),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.colorMask(!0,!0,!0,!0),r.depthMask(!1),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),M.isTransparent()&amp;&amp;M.drawTransparent(R);for(o=0;o&lt;e;++o){var L;(L=E[o]).isTransparent&amp;&amp;L.isTransparent()&amp;&amp;L.drawTransparent(R)}r.bindFramebuffer(r.FRAMEBUFFER,null),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.disable(r.DEPTH_TEST),_.bind(),b.color[0].bind(0),_.uniforms.accumBuffer=0,c(r),r.disable(r.BLEND)}P=!1;for(o=0;o&lt;e;++o)E[o].dirty=!1}}}return N.enableMouseListeners(),function t(){if(N._stopped||N.contextLost)return;Y(),requestAnimationFrame(t)}(),N.redraw=function(){N._stopped||(P=!0,Y())},N},createCamera:n}},{&quot;./camera.js&quot;:318,&quot;./lib/shader&quot;:319,&quot;a-big-triangle&quot;:64,&quot;gl-axes3d&quot;:250,&quot;gl-axes3d/properties&quot;:258,&quot;gl-fbo&quot;:269,&quot;gl-mat4/ortho&quot;:296,&quot;gl-mat4/perspective&quot;:297,&quot;gl-select-static&quot;:334,&quot;gl-spikes3d&quot;:345,&quot;is-mobile&quot;:467,&quot;mouse-change&quot;:483}],322:[function(t,e,r){var n=t(&quot;glslify&quot;);r.pointVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform float pointCloud;\n\nhighp float rand(vec2 co) {\n  highp float a = 12.9898;\n  highp float b = 78.233;\n  highp float c = 43758.5453;\n  highp float d = dot(co.xy, vec2(a, b));\n  highp float e = mod(d, 3.14);\n  return fract(sin(e) * c);\n}\n\nvoid main() {\n  vec3 hgPosition = matrix * vec3(position, 1);\n  gl_Position  = vec4(hgPosition.xy, 0, hgPosition.z);\n    // if we don't jitter the point size a bit, overall point cloud\n    // saturation 'jumps' on zooming, which is disturbing and confusing\n  gl_PointSize = pointSize * ((19.5 + rand(position)) / 20.0);\n  if(pointCloud != 0.0) { // pointCloud is truthy\n    // get the same square surface as circle would be\n    gl_PointSize *= 0.886;\n  }\n}&quot;]),r.pointFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color, borderColor;\nuniform float centerFraction;\nuniform float pointCloud;\n\nvoid main() {\n  float radius;\n  vec4 baseColor;\n  if(pointCloud != 0.0) { // pointCloud is truthy\n    if(centerFraction == 1.0) {\n      gl_FragColor = color;\n    } else {\n      gl_FragColor = mix(borderColor, color, centerFraction);\n    }\n  } else {\n    radius = length(2.0 * gl_PointCoord.xy - 1.0);\n    if(radius &gt; 1.0) {\n      discard;\n    }\n    baseColor = mix(borderColor, color, step(radius, centerFraction));\n    gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\n  }\n}\n&quot;]),r.pickVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform vec4 pickOffset;\n\nvarying vec4 fragId;\n\nvoid main() {\n  vec3 hgPosition = matrix * vec3(position, 1);\n  gl_Position  = vec4(hgPosition.xy, 0, hgPosition.z);\n  gl_PointSize = pointSize;\n\n  vec4 id = pickId + pickOffset;\n  id.y += floor(id.x / 256.0);\n  id.x -= floor(id.x / 256.0) * 256.0;\n\n  id.z += floor(id.y / 256.0);\n  id.y -= floor(id.y / 256.0) * 256.0;\n\n  id.w += floor(id.z / 256.0);\n  id.z -= floor(id.z / 256.0) * 256.0;\n\n  fragId = id;\n}\n&quot;]),r.pickFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\n\nvoid main() {\n  float radius = length(2.0 * gl_PointCoord.xy - 1.0);\n  if(radius &gt; 1.0) {\n    discard;\n  }\n  gl_FragColor = fragId / 255.0;\n}\n&quot;])},{glslify:323}],323:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],324:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;typedarray-pool&quot;),o=t(&quot;./lib/shader&quot;);function s(t,e,r,n,i){this.plot=t,this.offsetBuffer=e,this.pickBuffer=r,this.shader=n,this.pickShader=i,this.sizeMin=.5,this.sizeMinCap=2,this.sizeMax=20,this.areaRatio=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.blend=!1,this.pickOffset=0,this.points=null}e.exports=function(t,e){var r=t.gl,a=i(r),l=i(r),c=n(r,o.pointVertex,o.pointFragment),u=n(r,o.pickVertex,o.pickFragment),f=new s(t,a,l,c,u);return f.update(e),t.addObject(f),f};var l,c,u=s.prototype;u.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.plot.removeObject(this)},u.update=function(t){var e;function r(e,r){return e in t?t[e]:r}t=t||{},this.sizeMin=r(&quot;sizeMin&quot;,.5),this.sizeMax=r(&quot;sizeMax&quot;,20),this.color=r(&quot;color&quot;,[1,0,0,1]).slice(),this.areaRatio=r(&quot;areaRatio&quot;,1),this.borderColor=r(&quot;borderColor&quot;,[0,0,0,1]).slice(),this.blend=r(&quot;blend&quot;,!1);var n=t.positions.length&gt;&gt;&gt;1,i=t.positions instanceof Float32Array,o=t.idToIndex instanceof Int32Array&amp;&amp;t.idToIndex.length&gt;=n,s=t.positions,l=i?s:a.mallocFloat32(s.length),c=o?t.idToIndex:a.mallocInt32(n);if(i||l.set(s),!o)for(l.set(s),e=0;e&lt;n;e++)c[e]=e;this.points=s,this.offsetBuffer.update(l),this.pickBuffer.update(c),i||a.free(l),o||a.free(c),this.pointCount=n,this.pickOffset=0},u.unifiedDraw=(l=[1,0,0,0,1,0,0,0,1],c=[0,0,0,0],function(t){var e=void 0!==t,r=e?this.pickShader:this.shader,n=this.plot.gl,i=this.plot.dataBox;if(0===this.pointCount)return t;var a=i[2]-i[0],o=i[3]-i[1],s=function(t,e){var r,n=0,i=t.length&gt;&gt;&gt;1;for(r=0;r&lt;i;r++){var a=t[2*r],o=t[2*r+1];a&gt;=e[0]&amp;&amp;a&lt;=e[2]&amp;&amp;o&gt;=e[1]&amp;&amp;o&lt;=e[3]&amp;&amp;n++}return n}(this.points,i),u=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(s,.33333)));l[0]=2/a,l[4]=2/o,l[6]=-2*i[0]/a-1,l[7]=-2*i[1]/o-1,this.offsetBuffer.bind(),r.bind(),r.attributes.position.pointer(),r.uniforms.matrix=l,r.uniforms.color=this.color,r.uniforms.borderColor=this.borderColor,r.uniforms.pointCloud=u&lt;5,r.uniforms.pointSize=u,r.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),e&amp;&amp;(c[0]=255&amp;t,c[1]=t&gt;&gt;8&amp;255,c[2]=t&gt;&gt;16&amp;255,c[3]=t&gt;&gt;24&amp;255,this.pickBuffer.bind(),r.attributes.pickId.pointer(n.UNSIGNED_BYTE),r.uniforms.pickOffset=c,this.pickOffset=t);var f=n.getParameter(n.BLEND),h=n.getParameter(n.DITHER);return f&amp;&amp;!this.blend&amp;&amp;n.disable(n.BLEND),h&amp;&amp;n.disable(n.DITHER),n.drawArrays(n.POINTS,0,this.pointCount),f&amp;&amp;!this.blend&amp;&amp;n.enable(n.BLEND),h&amp;&amp;n.enable(n.DITHER),t+this.pointCount}),u.draw=u.unifiedDraw,u.drawPick=u.unifiedDraw,u.pick=function(t,e,r){var n=this.pickOffset,i=this.pointCount;if(r&lt;n||r&gt;=n+i)return null;var a=r-n,o=this.points;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}}},{&quot;./lib/shader&quot;:322,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335,&quot;typedarray-pool&quot;:595}],325:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c=e[0],u=e[1],f=e[2],h=e[3],p=r[0],d=r[1],g=r[2],m=r[3];(a=c*p+u*d+f*g+h*m)&lt;0&amp;&amp;(a=-a,p=-p,d=-d,g=-g,m=-m);1-a&gt;1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n);return t[0]=s*c+l*p,t[1]=s*u+l*d,t[2]=s*f+l*g,t[3]=s*h+l*m,t}},{}],326:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t||0===t?t.toString():&quot;&quot;}},{}],327:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;vectorize-text&quot;);e.exports=function(t,e,r){var a=i[e];a||(a=i[e]={});if(t in a)return a[t];var o={textAlign:&quot;center&quot;,textBaseline:&quot;middle&quot;,lineHeight:1,font:e,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},triangles:!0},s=n(t,o);o.triangles=!1;var l,c,u=n(t,o);if(r&amp;&amp;1!==r){for(l=0;l&lt;s.positions.length;++l)for(c=0;c&lt;s.positions[l].length;++c)s.positions[l][c]/=r;for(l=0;l&lt;u.positions.length;++l)for(c=0;c&lt;u.positions[l].length;++c)u.positions[l][c]/=r}var f=[[1/0,1/0],[-1/0,-1/0]],h=u.positions.length;for(l=0;l&lt;h;++l){var p=u.positions[l];for(c=0;c&lt;2;++c)f[0][c]=Math.min(f[0][c],p[c]),f[1][c]=Math.max(f[1][c],p[c])}return a[t]=[s,u,f]};var i={}},{&quot;vectorize-text&quot;:600}],328:[function(t,e,r){var n=t(&quot;gl-shader&quot;),i=t(&quot;glslify&quot;),a=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform vec4 highlightId;\nuniform float highlightScale;\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float scale = 1.0;\n    if(distance(highlightId, id) &lt; 0.0001) {\n      scale = highlightScale;\n    }\n\n    vec4 worldPosition = model * vec4(position, 1);\n    vec4 viewPosition = view * worldPosition;\n    viewPosition = viewPosition / viewPosition.w;\n    vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\n\n    gl_Position = clipPosition;\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = position;\n  }\n}&quot;]),o=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float highlightScale, pixelRatio;\nuniform vec4 highlightId;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float scale = pixelRatio;\n    if(distance(highlightId.bgr, id.bgr) &lt; 0.001) {\n      scale *= highlightScale;\n    }\n\n    vec4 worldPosition = model * vec4(position, 1.0);\n    vec4 viewPosition = view * worldPosition;\n    vec4 clipPosition = projection * viewPosition;\n    clipPosition /= clipPosition.w;\n\n    gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = position;\n  }\n}&quot;]),s=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform float highlightScale;\nuniform vec4 highlightId;\nuniform vec3 axes[2];\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float scale, pixelRatio;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float lscale = pixelRatio * scale;\n    if(distance(highlightId, id) &lt; 0.0001) {\n      lscale *= highlightScale;\n    }\n\n    vec4 clipCenter   = projection * view * model * vec4(position, 1);\n    vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\n    vec4 clipPosition = projection * view * model * vec4(dataPosition, 1);\n\n    gl_Position = clipPosition;\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = dataPosition;\n  }\n}\n&quot;]),l=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float opacity;\n\nvarying vec4 interpColor;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (\n    outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) ||\n    interpColor.a * opacity == 0.\n  ) discard;\n  gl_FragColor = interpColor * opacity;\n}\n&quot;]),c=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float pickGroup;\n\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\n\n  gl_FragColor = vec4(pickGroup, pickId.bgr);\n}&quot;]),u=[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;glyph&quot;,type:&quot;vec2&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}],f={vertex:a,fragment:l,attributes:u},h={vertex:o,fragment:l,attributes:u},p={vertex:s,fragment:l,attributes:u},d={vertex:a,fragment:c,attributes:u},g={vertex:o,fragment:c,attributes:u},m={vertex:s,fragment:c,attributes:u};function v(t,e){var r=n(t,e),i=r.attributes;return i.position.location=0,i.color.location=1,i.glyph.location=2,i.id.location=3,r}r.createPerspective=function(t){return v(t,f)},r.createOrtho=function(t){return v(t,h)},r.createProject=function(t){return v(t,p)},r.createPickPerspective=function(t){return v(t,d)},r.createPickOrtho=function(t){return v(t,g)},r.createPickProject=function(t){return v(t,m)}},{&quot;gl-shader&quot;:335,glslify:329}],329:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],330:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-string-blank&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;typedarray-pool&quot;),s=t(&quot;gl-mat4/multiply&quot;),l=t(&quot;./lib/shaders&quot;),c=t(&quot;./lib/glyphs&quot;),u=t(&quot;./lib/get-simple-string&quot;),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];return t[0]=e[0]*r+e[4]*n+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*n+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*n+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*n+e[11]*i+e[15]*a,t}function p(t,e,r,n){return h(n,n),h(n,n),h(n,n)}function d(t,e){this.index=t,this.dataCoordinate=this.position=e}function g(t){return!0===t||t&gt;1?1:t}function m(t,e,r,n,i,a,o,s,l,c,u,f){this.gl=t,this.pixelRatio=1,this.shader=e,this.orthoShader=r,this.projectShader=n,this.pointBuffer=i,this.colorBuffer=a,this.glyphBuffer=o,this.idBuffer=s,this.vao=l,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[2/3,2/3,2/3],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=c,this.pickOrthoShader=u,this.pickProjectShader=f,this.points=[],this._selectResult=new d(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}e.exports=function(t){var e=t.gl,r=l.createPerspective(e),n=l.createOrtho(e),o=l.createProject(e),s=l.createPickPerspective(e),c=l.createPickOrtho(e),u=l.createPickProject(e),f=i(e),h=i(e),p=i(e),d=i(e),g=a(e,[{buffer:f,size:3,type:e.FLOAT},{buffer:h,size:4,type:e.FLOAT},{buffer:p,size:2,type:e.FLOAT},{buffer:d,size:4,type:e.UNSIGNED_BYTE,normalized:!0}]),v=new m(e,r,n,o,f,h,p,d,g,s,c,u);return v.update(t),v};var v=m.prototype;v.pickSlots=1,v.setPickBase=function(t){this.pickId=t},v.isTransparent=function(){if(this.hasAlpha)return!0;for(var t=0;t&lt;3;++t)if(this.axesProject[t]&amp;&amp;this.projectHasAlpha)return!0;return!1},v.isOpaque=function(){if(!this.hasAlpha)return!0;for(var t=0;t&lt;3;++t)if(this.axesProject[t]&amp;&amp;!this.projectHasAlpha)return!0;return!1};var y=[0,0],x=[0,0,0],b=[0,0,0],_=[0,0,0,1],w=[0,0,0,1],T=f.slice(),k=[0,0,0],M=[[0,0,0],[0,0,0]];function A(t){return t[0]=t[1]=t[2]=0,t}function S(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=1,t}function E(t,e,r,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[r]=n,t}function C(t,e,r,n){var i,a=e.axesProject,o=e.gl,l=t.uniforms,c=r.model||f,u=r.view||f,h=r.projection||f,d=e.axesBounds,g=function(t){for(var e=M,r=0;r&lt;2;++r)for(var n=0;n&lt;3;++n)e[r][n]=Math.max(Math.min(t[r][n],1e8),-1e8);return e}(e.clipBounds);i=e.axes&amp;&amp;e.axes.lastCubeProps?e.axes.lastCubeProps.axis:[1,1,1],y[0]=2/o.drawingBufferWidth,y[1]=2/o.drawingBufferHeight,t.bind(),l.view=u,l.projection=h,l.screenSize=y,l.highlightId=e.highlightId,l.highlightScale=e.highlightScale,l.clipBounds=g,l.pickGroup=e.pickId/255,l.pixelRatio=n;for(var m=0;m&lt;3;++m)if(a[m]){l.scale=e.projectScale[m],l.opacity=e.projectOpacity[m];for(var v=T,C=0;C&lt;16;++C)v[C]=0;for(C=0;C&lt;4;++C)v[5*C]=1;v[5*m]=0,i[m]&lt;0?v[12+m]=d[0][m]:v[12+m]=d[1][m],s(v,c,v),l.model=v;var L=(m+1)%3,I=(m+2)%3,P=A(x),z=A(b);P[L]=1,z[I]=1;var O=p(0,0,0,S(_,P)),D=p(0,0,0,S(w,z));if(Math.abs(O[1])&gt;Math.abs(D[1])){var R=O;O=D,D=R,R=P,P=z,z=R;var F=L;L=I,I=F}O[0]&lt;0&amp;&amp;(P[L]=-1),D[1]&gt;0&amp;&amp;(z[I]=-1);var B=0,N=0;for(C=0;C&lt;4;++C)B+=Math.pow(c[4*L+C],2),N+=Math.pow(c[4*I+C],2);P[L]/=Math.sqrt(B),z[I]/=Math.sqrt(N),l.axes[0]=P,l.axes[1]=z,l.fragClipBounds[0]=E(k,g[0],m,-1e8),l.fragClipBounds[1]=E(k,g[1],m,1e8),e.vao.bind(),e.vao.draw(o.TRIANGLES,e.vertexCount),e.lineWidth&gt;0&amp;&amp;(o.lineWidth(e.lineWidth*n),e.vao.draw(o.LINES,e.lineVertexCount,e.vertexCount)),e.vao.unbind()}}var L=[[-1e8,-1e8,-1e8],[1e8,1e8,1e8]];function I(t,e,r,n,i,a,o){var s=r.gl;if((a===r.projectHasAlpha||o)&amp;&amp;C(e,r,n,i),a===r.hasAlpha||o){t.bind();var l=t.uniforms;l.model=n.model||f,l.view=n.view||f,l.projection=n.projection||f,y[0]=2/s.drawingBufferWidth,y[1]=2/s.drawingBufferHeight,l.screenSize=y,l.highlightId=r.highlightId,l.highlightScale=r.highlightScale,l.fragClipBounds=L,l.clipBounds=r.axes.bounds,l.opacity=r.opacity,l.pickGroup=r.pickId/255,l.pixelRatio=i,r.vao.bind(),r.vao.draw(s.TRIANGLES,r.vertexCount),r.lineWidth&gt;0&amp;&amp;(s.lineWidth(r.lineWidth*i),r.vao.draw(s.LINES,r.lineVertexCount,r.vertexCount)),r.vao.unbind()}}function P(t,e,r,i){var a;a=Array.isArray(t)?e&lt;t.length?t[e]:void 0:t,a=u(a);var o=!0;n(a)&amp;&amp;(a=&quot;\u25bc&quot;,o=!1);var s=c(a,r,i);return{mesh:s[0],lines:s[1],bounds:s[2],visible:o}}v.draw=function(t){I(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,this.pixelRatio,!1,!1)},v.drawTransparent=function(t){I(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,this.pixelRatio,!0,!1)},v.drawPick=function(t){I(this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader,this.pickProjectShader,this,t,1,!0,!0)},v.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[2]+(t.value[1]&lt;&lt;8)+(t.value[0]&lt;&lt;16);if(e&gt;=this.pointCount||e&lt;0)return null;var r=this.points[e],n=this._selectResult;n.index=e;for(var i=0;i&lt;3;++i)n.position[i]=n.dataCoordinate[i]=r[i];return n},v.highlight=function(t){if(t){var e=t.index,r=255&amp;e,n=e&gt;&gt;8&amp;255,i=e&gt;&gt;16&amp;255;this.highlightId=[r/255,n/255,i/255,0]}else this.highlightId=[1,1,1,1]},v.update=function(t){if(&quot;perspective&quot;in(t=t||{})&amp;&amp;(this.useOrtho=!t.perspective),&quot;orthographic&quot;in t&amp;&amp;(this.useOrtho=!!t.orthographic),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;project&quot;in t)if(Array.isArray(t.project))this.axesProject=t.project;else{var e=!!t.project;this.axesProject=[e,e,e]}if(&quot;projectScale&quot;in t)if(Array.isArray(t.projectScale))this.projectScale=t.projectScale.slice();else{var r=+t.projectScale;this.projectScale=[r,r,r]}if(this.projectHasAlpha=!1,&quot;projectOpacity&quot;in t){if(Array.isArray(t.projectOpacity))this.projectOpacity=t.projectOpacity.slice();else{r=+t.projectOpacity;this.projectOpacity=[r,r,r]}for(var n=0;n&lt;3;++n)this.projectOpacity[n]=g(this.projectOpacity[n]),this.projectOpacity[n]&lt;1&amp;&amp;(this.projectHasAlpha=!0)}this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=g(t.opacity),this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0)),this.dirty=!0;var i,a,s=t.position,l=t.font||&quot;normal&quot;,c=t.alignment||[0,0];if(2===c.length)i=c[0],a=c[1];else{i=[],a=[];for(n=0;n&lt;c.length;++n)i[n]=c[n][0],a[n]=c[n][1]}var u=[1/0,1/0,1/0],f=[-1/0,-1/0,-1/0],h=t.glyph,p=t.color,d=t.size,m=t.angle,v=t.lineColor,y=-1,x=0,b=0,_=0;if(s.length){_=s.length;t:for(n=0;n&lt;_;++n){for(var w=s[n],T=0;T&lt;3;++T)if(isNaN(w[T])||!isFinite(w[T]))continue t;var k=(N=P(h,n,l,this.pixelRatio)).mesh,M=N.lines,A=N.bounds;x+=3*k.cells.length,b+=2*M.edges.length}}var S=x+b,E=o.mallocFloat(3*S),C=o.mallocFloat(4*S),L=o.mallocFloat(2*S),I=o.mallocUint32(S);if(S&gt;0){var z=0,O=x,D=[0,0,0,1],R=[0,0,0,1],F=Array.isArray(p)&amp;&amp;Array.isArray(p[0]),B=Array.isArray(v)&amp;&amp;Array.isArray(v[0]);t:for(n=0;n&lt;_;++n){y+=1;for(w=s[n],T=0;T&lt;3;++T){if(isNaN(w[T])||!isFinite(w[T]))continue t;f[T]=Math.max(f[T],w[T]),u[T]=Math.min(u[T],w[T])}k=(N=P(h,n,l,this.pixelRatio)).mesh,M=N.lines,A=N.bounds;var N,j=N.visible;if(j)if(Array.isArray(p)){if(3===(U=F?n&lt;p.length?p[n]:[0,0,0,0]:p).length){for(T=0;T&lt;3;++T)D[T]=U[T];D[3]=1}else if(4===U.length){for(T=0;T&lt;4;++T)D[T]=U[T];!this.hasAlpha&amp;&amp;U[3]&lt;1&amp;&amp;(this.hasAlpha=!0)}}else D[0]=D[1]=D[2]=0,D[3]=1;else D=[1,1,1,0];if(j)if(Array.isArray(v)){var U;if(3===(U=B?n&lt;v.length?v[n]:[0,0,0,0]:v).length){for(T=0;T&lt;3;++T)R[T]=U[T];R[T]=1}else if(4===U.length){for(T=0;T&lt;4;++T)R[T]=U[T];!this.hasAlpha&amp;&amp;U[3]&lt;1&amp;&amp;(this.hasAlpha=!0)}}else R[0]=R[1]=R[2]=0,R[3]=1;else R=[1,1,1,0];var V=.5;j?Array.isArray(d)?V=n&lt;d.length?+d[n]:12:d?V=+d:this.useOrtho&amp;&amp;(V=12):V=0;var q=0;Array.isArray(m)?q=n&lt;m.length?+m[n]:0:m&amp;&amp;(q=+m);var H=Math.cos(q),G=Math.sin(q);for(w=s[n],T=0;T&lt;3;++T)f[T]=Math.max(f[T],w[T]),u[T]=Math.min(u[T],w[T]);var Y=i,W=a;Y=0;Array.isArray(i)?Y=n&lt;i.length?i[n]:0:i&amp;&amp;(Y=i);W=0;Array.isArray(a)?W=n&lt;a.length?a[n]:0:a&amp;&amp;(W=a);var X=[Y*=Y&gt;0?1-A[0][0]:Y&lt;0?1+A[1][0]:1,W*=W&gt;0?1-A[0][1]:W&lt;0?1+A[1][1]:1],Z=k.cells||[],J=k.positions||[];for(T=0;T&lt;Z.length;++T)for(var K=Z[T],Q=0;Q&lt;3;++Q){for(var $=0;$&lt;3;++$)E[3*z+$]=w[$];for($=0;$&lt;4;++$)C[4*z+$]=D[$];I[z]=y;var tt=J[K[Q]];L[2*z]=V*(H*tt[0]-G*tt[1]+X[0]),L[2*z+1]=V*(G*tt[0]+H*tt[1]+X[1]),z+=1}for(Z=M.edges,J=M.positions,T=0;T&lt;Z.length;++T)for(K=Z[T],Q=0;Q&lt;2;++Q){for($=0;$&lt;3;++$)E[3*O+$]=w[$];for($=0;$&lt;4;++$)C[4*O+$]=R[$];I[O]=y;tt=J[K[Q]];L[2*O]=V*(H*tt[0]-G*tt[1]+X[0]),L[2*O+1]=V*(G*tt[0]+H*tt[1]+X[1]),O+=1}}}this.bounds=[u,f],this.points=s,this.pointCount=s.length,this.vertexCount=x,this.lineVertexCount=b,this.pointBuffer.update(E),this.colorBuffer.update(C),this.glyphBuffer.update(L),this.idBuffer.update(I),o.free(E),o.free(C),o.free(L),o.free(I)},v.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()}},{&quot;./lib/get-simple-string&quot;:326,&quot;./lib/glyphs&quot;:327,&quot;./lib/shaders&quot;:328,&quot;gl-buffer&quot;:259,&quot;gl-mat4/multiply&quot;:295,&quot;gl-vao&quot;:358,&quot;is-string-blank&quot;:470,&quot;typedarray-pool&quot;:595}],331:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;);r.boxVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 vertex;\n\nuniform vec2 cornerA, cornerB;\n\nvoid main() {\n  gl_Position = vec4(mix(cornerA, cornerB, vertex), 0, 1);\n}\n&quot;]),r.boxFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color;\n\nvoid main() {\n  gl_FragColor = color;\n}\n&quot;])},{glslify:332}],332:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],333:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;./lib/shaders&quot;);function o(t,e,r){this.plot=t,this.boxBuffer=e,this.boxShader=r,this.enabled=!0,this.selectBox=[1/0,1/0,-1/0,-1/0],this.borderColor=[0,0,0,1],this.innerFill=!1,this.innerColor=[0,0,0,.25],this.outerFill=!0,this.outerColor=[0,0,0,.5],this.borderWidth=10}e.exports=function(t,e){var r=t.gl,s=i(r,[0,0,0,1,1,0,1,1]),l=n(r,a.boxVertex,a.boxFragment),c=new o(t,s,l);return c.update(e),t.addOverlay(c),c};var s=o.prototype;s.draw=function(){if(this.enabled){var t=this.plot,e=this.selectBox,r=this.borderWidth,n=(this.innerFill,this.innerColor),i=(this.outerFill,this.outerColor),a=this.borderColor,o=t.box,s=t.screenBox,l=t.dataBox,c=t.viewBox,u=t.pixelRatio,f=(e[0]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],h=(e[1]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1],p=(e[2]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],d=(e[3]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1];if(f=Math.max(f,c[0]),h=Math.max(h,c[1]),p=Math.min(p,c[2]),d=Math.min(d,c[3]),!(p&lt;f||d&lt;h)){o.bind();var g=s[2]-s[0],m=s[3]-s[1];if(this.outerFill&amp;&amp;(o.drawBox(0,0,g,h,i),o.drawBox(0,h,f,d,i),o.drawBox(0,d,g,m,i),o.drawBox(p,h,g,d,i)),this.innerFill&amp;&amp;o.drawBox(f,h,p,d,n),r&gt;0){var v=r*u;o.drawBox(f-v,h-v,p+v,h+v,a),o.drawBox(f-v,d-v,p+v,d+v,a),o.drawBox(f-v,h-v,f+v,d+v,a),o.drawBox(p-v,h-v,p+v,d+v,a)}}}},s.update=function(t){t=t||{},this.innerFill=!!t.innerFill,this.outerFill=!!t.outerFill,this.innerColor=(t.innerColor||[0,0,0,.5]).slice(),this.outerColor=(t.outerColor||[0,0,0,.5]).slice(),this.borderColor=(t.borderColor||[0,0,0,1]).slice(),this.borderWidth=t.borderWidth||0,this.selectBox=(t.selectBox||this.selectBox).slice()},s.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)}},{&quot;./lib/shaders&quot;:331,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],334:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=e[0],a=e[1],o=n(t,r,a,{}),s=i.mallocUint8(r*a*4);return new l(t,o,s)};var n=t(&quot;gl-fbo&quot;),i=t(&quot;typedarray-pool&quot;),a=t(&quot;ndarray&quot;),o=t(&quot;bit-twiddle&quot;).nextPow2;function s(t,e,r,n,i){this.coord=[t,e],this.id=r,this.value=n,this.distance=i}function l(t,e,r){this.gl=t,this.fbo=e,this.buffer=r,this._readTimeout=null;var n=this;this._readCallback=function(){n.gl&amp;&amp;(e.bind(),t.readPixels(0,0,e.shape[0],e.shape[1],t.RGBA,t.UNSIGNED_BYTE,n.buffer),n._readTimeout=null)}}var c=l.prototype;Object.defineProperty(c,&quot;shape&quot;,{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(t){if(this.gl){this.fbo.shape=t;var e=this.fbo.shape[0],r=this.fbo.shape[1];if(r*e*4&gt;this.buffer.length){i.free(this.buffer);for(var n=this.buffer=i.mallocUint8(o(r*e*4)),a=0;a&lt;r*e*4;++a)n[a]=255}return t}}}),c.begin=function(){var t=this.gl;this.shape;t&amp;&amp;(this.fbo.bind(),t.clearColor(1,1,1,1),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT))},c.end=function(){var t=this.gl;t&amp;&amp;(t.bindFramebuffer(t.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},c.query=function(t,e,r){if(!this.gl)return null;var n=this.fbo.shape.slice();t|=0,e|=0,&quot;number&quot;!=typeof r&amp;&amp;(r=1);var i=0|Math.min(Math.max(t-r,0),n[0]),o=0|Math.min(Math.max(t+r,0),n[0]),l=0|Math.min(Math.max(e-r,0),n[1]),c=0|Math.min(Math.max(e+r,0),n[1]);if(o&lt;=i||c&lt;=l)return null;var u=[o-i,c-l],f=a(this.buffer,[u[0],u[1],4],[4,4*n[0],1],4*(i+n[0]*l)),h=function(t,e,r){for(var n=1e8,i=-1,a=-1,o=t.shape[0],s=t.shape[1],l=0;l&lt;o;l++)for(var c=0;c&lt;s;c++){var u=t.get(l,c,0),f=t.get(l,c,1),h=t.get(l,c,2),p=t.get(l,c,3);if(u&lt;255||f&lt;255||h&lt;255||p&lt;255){var d=e-l,g=r-c,m=d*d+g*g;m&lt;n&amp;&amp;(n=m,i=l,a=c)}}return[i,a,n]}(f.hi(u[0],u[1],1),r,r),p=h[0],d=h[1];return p&lt;0||Math.pow(this.radius,2)&lt;h[2]?null:new s(p+i|0,d+l|0,f.get(p,d,0),[f.get(p,d,1),f.get(p,d,2),f.get(p,d,3)],Math.sqrt(h[2]))},c.dispose=function(){this.gl&amp;&amp;(this.fbo.dispose(),i.free(this.buffer),this.gl=null,this._readTimeout&amp;&amp;clearTimeout(this._readTimeout))}},{&quot;bit-twiddle&quot;:97,&quot;gl-fbo&quot;:269,ndarray:495,&quot;typedarray-pool&quot;:595}],335:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/create-uniforms&quot;),i=t(&quot;./lib/create-attributes&quot;),a=t(&quot;./lib/reflect&quot;),o=t(&quot;./lib/shader-cache&quot;),s=t(&quot;./lib/runtime-reflect&quot;),l=t(&quot;./lib/GLError&quot;);function c(t){this.gl=t,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}var u=c.prototype;function f(t,e){return t.name&lt;e.name?-1:1}u.bind=function(){var t;this.program||this._relink();var e=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),r=this.gl.lastAttribCount;if(e&gt;r)for(t=r;t&lt;e;t++)this.gl.enableVertexAttribArray(t);else if(r&gt;e)for(t=e;t&lt;r;t++)this.gl.disableVertexAttribArray(t);this.gl.lastAttribCount=e,this.gl.useProgram(this.program)},u.dispose=function(){for(var t=this.gl.lastAttribCount,e=0;e&lt;t;e++)this.gl.disableVertexAttribArray(e);this.gl.lastAttribCount=0,this._fref&amp;&amp;this._fref.dispose(),this._vref&amp;&amp;this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null},u.update=function(t,e,r,c){if(!e||1===arguments.length){var u=t;t=u.vertex,e=u.fragment,r=u.uniforms,c=u.attributes}var h=this,p=h.gl,d=h._vref;h._vref=o.shader(p,p.VERTEX_SHADER,t),d&amp;&amp;d.dispose(),h.vertShader=h._vref.shader;var g=this._fref;if(h._fref=o.shader(p,p.FRAGMENT_SHADER,e),g&amp;&amp;g.dispose(),h.fragShader=h._fref.shader,!r||!c){var m=p.createProgram();if(p.attachShader(m,h.fragShader),p.attachShader(m,h.vertShader),p.linkProgram(m),!p.getProgramParameter(m,p.LINK_STATUS)){var v=p.getProgramInfoLog(m);throw new l(v,&quot;Error linking program:&quot;+v)}r=r||s.uniforms(p,m),c=c||s.attributes(p,m),p.deleteProgram(m)}(c=c.slice()).sort(f);var y,x=[],b=[],_=[];for(y=0;y&lt;c.length;++y){var w=c[y];if(w.type.indexOf(&quot;mat&quot;)&gt;=0){for(var T=0|w.type.charAt(w.type.length-1),k=new Array(T),M=0;M&lt;T;++M)k[M]=_.length,b.push(w.name+&quot;[&quot;+M+&quot;]&quot;),&quot;number&quot;==typeof w.location?_.push(w.location+M):Array.isArray(w.location)&amp;&amp;w.location.length===T&amp;&amp;&quot;number&quot;==typeof w.location[M]?_.push(0|w.location[M]):_.push(-1);x.push({name:w.name,type:w.type,locations:k})}else x.push({name:w.name,type:w.type,locations:[_.length]}),b.push(w.name),&quot;number&quot;==typeof w.location?_.push(0|w.location):_.push(-1)}var A=0;for(y=0;y&lt;_.length;++y)if(_[y]&lt;0){for(;_.indexOf(A)&gt;=0;)A+=1;_[y]=A}var S=new Array(r.length);function E(){h.program=o.program(p,h._vref,h._fref,b,_);for(var t=0;t&lt;r.length;++t)S[t]=p.getUniformLocation(h.program,r[t].name)}E(),h._relink=E,h.types={uniforms:a(r),attributes:a(c)},h.attributes=i(p,h,x,_),Object.defineProperty(h,&quot;uniforms&quot;,n(p,h,r,S))},e.exports=function(t,e,r,n,i){var a=new c(t);return a.update(e,r,n,i),a}},{&quot;./lib/GLError&quot;:336,&quot;./lib/create-attributes&quot;:337,&quot;./lib/create-uniforms&quot;:338,&quot;./lib/reflect&quot;:339,&quot;./lib/runtime-reflect&quot;:340,&quot;./lib/shader-cache&quot;:341}],336:[function(t,e,r){function n(t,e,r){this.shortMessage=e||&quot;&quot;,this.longMessage=r||&quot;&quot;,this.rawError=t||&quot;&quot;,this.message=&quot;gl-shader: &quot;+(e||t||&quot;&quot;)+(r?&quot;\n&quot;+r:&quot;&quot;),this.stack=(new Error).stack}n.prototype=new Error,n.prototype.name=&quot;GLError&quot;,n.prototype.constructor=n,e.exports=n},{}],337:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,i){for(var a={},l=0,c=r.length;l&lt;c;++l){var u=r[l],f=u.name,h=u.type,p=u.locations;switch(h){case&quot;bool&quot;:case&quot;int&quot;:case&quot;float&quot;:o(t,e,p[0],i,1,a,f);break;default:if(h.indexOf(&quot;vec&quot;)&gt;=0){if((d=h.charCodeAt(h.length-1)-48)&lt;2||d&gt;4)throw new n(&quot;&quot;,&quot;Invalid data type for attribute &quot;+f+&quot;: &quot;+h);o(t,e,p[0],i,d,a,f)}else{if(!(h.indexOf(&quot;mat&quot;)&gt;=0))throw new n(&quot;&quot;,&quot;Unknown data type for attribute &quot;+f+&quot;: &quot;+h);var d;if((d=h.charCodeAt(h.length-1)-48)&lt;2||d&gt;4)throw new n(&quot;&quot;,&quot;Invalid data type for attribute &quot;+f+&quot;: &quot;+h);s(t,e,p,i,d,a,f)}}}return a};var n=t(&quot;./GLError&quot;);function i(t,e,r,n,i,a){this._gl=t,this._wrapper=e,this._index=r,this._locations=n,this._dimension=i,this._constFunc=a}var a=i.prototype;function o(t,e,r,n,a,o,s){for(var l=[&quot;gl&quot;,&quot;v&quot;],c=[],u=0;u&lt;a;++u)l.push(&quot;x&quot;+u),c.push(&quot;x&quot;+u);l.push(&quot;if(x0.length===void 0){return gl.vertexAttrib&quot;+a+&quot;f(v,&quot;+c.join()+&quot;)}else{return gl.vertexAttrib&quot;+a+&quot;fv(v,x0)}&quot;);var f=Function.apply(null,l),h=new i(t,e,r,n,a,f);Object.defineProperty(o,s,{set:function(e){return t.disableVertexAttribArray(n[r]),f(t,n[r],e),e},get:function(){return h},enumerable:!0})}function s(t,e,r,n,i,a,s){for(var l=new Array(i),c=new Array(i),u=0;u&lt;i;++u)o(t,e,r[u],n,i,l,u),c[u]=l[u];Object.defineProperty(l,&quot;location&quot;,{set:function(t){if(Array.isArray(t))for(var e=0;e&lt;i;++e)c[e].location=t[e];else for(e=0;e&lt;i;++e)c[e].location=t+e;return t},get:function(){for(var t=new Array(i),e=0;e&lt;i;++e)t[e]=n[r[e]];return t},enumerable:!0}),l.pointer=function(e,a,o,s){e=e||t.FLOAT,a=!!a,o=o||i*i,s=s||0;for(var l=0;l&lt;i;++l){var c=n[r[l]];t.vertexAttribPointer(c,i,e,a,o,s+l*i),t.enableVertexAttribArray(c)}};var f=new Array(i),h=t[&quot;vertexAttrib&quot;+i+&quot;fv&quot;];Object.defineProperty(a,s,{set:function(e){for(var a=0;a&lt;i;++a){var o=n[r[a]];if(t.disableVertexAttribArray(o),Array.isArray(e[0]))h.call(t,o,e[a]);else{for(var s=0;s&lt;i;++s)f[s]=e[i*a+s];h.call(t,o,f)}}return e},get:function(){return l},enumerable:!0})}a.pointer=function(t,e,r,n){var i=this._gl,a=this._locations[this._index];i.vertexAttribPointer(a,this._dimension,t||i.FLOAT,!!e,r||0,n||0),i.enableVertexAttribArray(a)},a.set=function(t,e,r,n){return this._constFunc(this._locations[this._index],t,e,r,n)},Object.defineProperty(a,&quot;location&quot;,{get:function(){return this._locations[this._index]},set:function(t){return t!==this._locations[this._index]&amp;&amp;(this._locations[this._index]=0|t,this._wrapper.program=null),0|t}})},{&quot;./GLError&quot;:336}],338:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./reflect&quot;),i=t(&quot;./GLError&quot;);function a(t){return new Function(&quot;y&quot;,&quot;return function(){return y}&quot;)(t)}function o(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}e.exports=function(t,e,r,s){function l(t,e,r){switch(r){case&quot;bool&quot;:case&quot;int&quot;:case&quot;sampler2D&quot;:case&quot;samplerCube&quot;:return&quot;gl.uniform1i(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;case&quot;float&quot;:return&quot;gl.uniform1f(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;default:var n=r.indexOf(&quot;vec&quot;);if(!(0&lt;=n&amp;&amp;n&lt;=1&amp;&amp;r.length===4+n)){if(0===r.indexOf(&quot;mat&quot;)&amp;&amp;4===r.length){var a;if((a=r.charCodeAt(r.length-1)-48)&lt;2||a&gt;4)throw new i(&quot;&quot;,&quot;Invalid uniform dimension type for matrix &quot;+name+&quot;: &quot;+r);return&quot;gl.uniformMatrix&quot;+a+&quot;fv(locations[&quot;+e+&quot;],false,obj&quot;+t+&quot;)&quot;}throw new i(&quot;&quot;,&quot;Unknown uniform data type for &quot;+name+&quot;: &quot;+r)}if((a=r.charCodeAt(r.length-1)-48)&lt;2||a&gt;4)throw new i(&quot;&quot;,&quot;Invalid data type&quot;);switch(r.charAt(0)){case&quot;b&quot;:case&quot;i&quot;:return&quot;gl.uniform&quot;+a+&quot;iv(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;case&quot;v&quot;:return&quot;gl.uniform&quot;+a+&quot;fv(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;default:throw new i(&quot;&quot;,&quot;Unrecognized data type for vector &quot;+name+&quot;: &quot;+r)}}}function c(e){for(var n=[&quot;return function updateProperty(obj){&quot;],i=function t(e,r){if(&quot;object&quot;!=typeof r)return[[e,r]];var n=[];for(var i in r){var a=r[i],o=e;parseInt(i)+&quot;&quot;===i?o+=&quot;[&quot;+i+&quot;]&quot;:o+=&quot;.&quot;+i,&quot;object&quot;==typeof a?n.push.apply(n,t(o,a)):n.push([o,a])}return n}(&quot;&quot;,e),a=0;a&lt;i.length;++a){var o=i[a],c=o[0],u=o[1];s[u]&amp;&amp;n.push(l(c,u,r[u].type))}return n.push(&quot;return obj}&quot;),new Function(&quot;gl&quot;,&quot;locations&quot;,n.join(&quot;\n&quot;))(t,s)}function u(n,l,u){if(&quot;object&quot;==typeof u){var h=f(u);Object.defineProperty(n,l,{get:a(h),set:c(u),enumerable:!0,configurable:!1})}else s[u]?Object.defineProperty(n,l,{get:(p=u,new Function(&quot;gl&quot;,&quot;wrapper&quot;,&quot;locations&quot;,&quot;return function(){return gl.getUniform(wrapper.program,locations[&quot;+p+&quot;])}&quot;)(t,e,s)),set:c(u),enumerable:!0,configurable:!1}):n[l]=function(t){switch(t){case&quot;bool&quot;:return!1;case&quot;int&quot;:case&quot;sampler2D&quot;:case&quot;samplerCube&quot;:case&quot;float&quot;:return 0;default:var e=t.indexOf(&quot;vec&quot;);if(0&lt;=e&amp;&amp;e&lt;=1&amp;&amp;t.length===4+e){if((r=t.charCodeAt(t.length-1)-48)&lt;2||r&gt;4)throw new i(&quot;&quot;,&quot;Invalid data type&quot;);return&quot;b&quot;===t.charAt(0)?o(r,!1):o(r,0)}if(0===t.indexOf(&quot;mat&quot;)&amp;&amp;4===t.length){var r;if((r=t.charCodeAt(t.length-1)-48)&lt;2||r&gt;4)throw new i(&quot;&quot;,&quot;Invalid uniform dimension type for matrix &quot;+name+&quot;: &quot;+t);return o(r*r,0)}throw new i(&quot;&quot;,&quot;Unknown uniform data type for &quot;+name+&quot;: &quot;+t)}}(r[u].type);var p}function f(t){var e;if(Array.isArray(t)){e=new Array(t.length);for(var r=0;r&lt;t.length;++r)u(e,r,t[r])}else for(var n in e={},t)u(e,n,t[n]);return e}var h=n(r,!0);return{get:a(f(h)),set:c(h),enumerable:!0,configurable:!0}}},{&quot;./GLError&quot;:336,&quot;./reflect&quot;:339}],339:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r={},n=0;n&lt;t.length;++n)for(var i=t[n].name.split(&quot;.&quot;),a=r,o=0;o&lt;i.length;++o){var s=i[o].split(&quot;[&quot;);if(s.length&gt;1){s[0]in a||(a[s[0]]=[]),a=a[s[0]];for(var l=1;l&lt;s.length;++l){var c=parseInt(s[l]);l&lt;s.length-1||o&lt;i.length-1?(c in a||(l&lt;s.length-1?a[c]=[]:a[c]={}),a=a[c]):a[c]=e?n:t[n].type}}else o&lt;i.length-1?(s[0]in a||(a[s[0]]={}),a=a[s[0]]):a[s[0]]=e?n:t[n].type}return r}},{}],340:[function(t,e,r){&quot;use strict&quot;;r.uniforms=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),n=[],i=0;i&lt;r;++i){var o=t.getActiveUniform(e,i);if(o){var s=a(t,o.type);if(o.size&gt;1)for(var l=0;l&lt;o.size;++l)n.push({name:o.name.replace(&quot;[0]&quot;,&quot;[&quot;+l+&quot;]&quot;),type:s});else n.push({name:o.name,type:s})}}return n},r.attributes=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),n=[],i=0;i&lt;r;++i){var o=t.getActiveAttrib(e,i);o&amp;&amp;n.push({name:o.name,type:a(t,o.type)})}return n};var n={FLOAT:&quot;float&quot;,FLOAT_VEC2:&quot;vec2&quot;,FLOAT_VEC3:&quot;vec3&quot;,FLOAT_VEC4:&quot;vec4&quot;,INT:&quot;int&quot;,INT_VEC2:&quot;ivec2&quot;,INT_VEC3:&quot;ivec3&quot;,INT_VEC4:&quot;ivec4&quot;,BOOL:&quot;bool&quot;,BOOL_VEC2:&quot;bvec2&quot;,BOOL_VEC3:&quot;bvec3&quot;,BOOL_VEC4:&quot;bvec4&quot;,FLOAT_MAT2:&quot;mat2&quot;,FLOAT_MAT3:&quot;mat3&quot;,FLOAT_MAT4:&quot;mat4&quot;,SAMPLER_2D:&quot;sampler2D&quot;,SAMPLER_CUBE:&quot;samplerCube&quot;},i=null;function a(t,e){if(!i){var r=Object.keys(n);i={};for(var a=0;a&lt;r.length;++a){var o=r[a];i[t[o]]=n[o]}}return i[e]}},{}],341:[function(t,e,r){&quot;use strict&quot;;r.shader=function(t,e,r){return u(t).getShaderReference(e,r)},r.program=function(t,e,r,n,i){return u(t).getProgram(e,r,n,i)};var n=t(&quot;./GLError&quot;),i=t(&quot;gl-format-compiler-error&quot;),a=new(&quot;undefined&quot;==typeof WeakMap?t(&quot;weakmap-shim&quot;):WeakMap),o=0;function s(t,e,r,n,i,a,o){this.id=t,this.src=e,this.type=r,this.shader=n,this.count=a,this.programs=[],this.cache=o}function l(t){this.gl=t,this.shaders=[{},{}],this.programs={}}s.prototype.dispose=function(){if(0==--this.count){for(var t=this.cache,e=t.gl,r=this.programs,n=0,i=r.length;n&lt;i;++n){var a=t.programs[r[n]];a&amp;&amp;(delete t.programs[n],e.deleteProgram(a))}e.deleteShader(this.shader),delete t.shaders[this.type===e.FRAGMENT_SHADER|0][this.src]}};var c=l.prototype;function u(t){var e=a.get(t);return e||(e=new l(t),a.set(t,e)),e}c.getShaderReference=function(t,e){var r=this.gl,a=this.shaders[t===r.FRAGMENT_SHADER|0],l=a[e];if(l&amp;&amp;r.isShader(l.shader))l.count+=1;else{var c=function(t,e,r){var a=t.createShader(e);if(t.shaderSource(a,r),t.compileShader(a),!t.getShaderParameter(a,t.COMPILE_STATUS)){var o=t.getShaderInfoLog(a);try{var s=i(o,r,e)}catch(t){throw console.warn(&quot;Failed to format compiler error: &quot;+t),new n(o,&quot;Error compiling shader:\n&quot;+o)}throw new n(o,s.short,s.long)}return a}(r,t,e);l=a[e]=new s(o++,e,t,c,[],1,this)}return l},c.getProgram=function(t,e,r,i){var a=[t.id,e.id,r.join(&quot;:&quot;),i.join(&quot;:&quot;)].join(&quot;@&quot;),o=this.programs[a];return o&amp;&amp;this.gl.isProgram(o)||(this.programs[a]=o=function(t,e,r,i,a){var o=t.createProgram();t.attachShader(o,e),t.attachShader(o,r);for(var s=0;s&lt;i.length;++s)t.bindAttribLocation(o,a[s],i[s]);if(t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS)){var l=t.getProgramInfoLog(o);throw new n(l,&quot;Error linking program: &quot;+l)}return o}(this.gl,t.shader,e.shader,r,i),t.programs.push(a),e.programs.push(a)),o}},{&quot;./GLError&quot;:336,&quot;gl-format-compiler-error&quot;:270,&quot;weakmap-shim&quot;:605}],342:[function(t,e,r){&quot;use strict&quot;;function n(t){this.plot=t,this.enable=[!0,!0,!1,!1],this.width=[1,1,1,1],this.color=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.center=[1/0,1/0]}e.exports=function(t,e){var r=new n(t);return r.update(e),t.addOverlay(r),r};var i=n.prototype;i.update=function(t){t=t||{},this.enable=(t.enable||[!0,!0,!1,!1]).slice(),this.width=(t.width||[1,1,1,1]).slice(),this.color=(t.color||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]).map((function(t){return t.slice()})),this.center=(t.center||[1/0,1/0]).slice(),this.plot.setOverlayDirty()},i.draw=function(){var t=this.enable,e=this.width,r=this.color,n=this.center,i=this.plot,a=i.line,o=i.dataBox,s=i.viewBox;if(a.bind(),o[0]&lt;=n[0]&amp;&amp;n[0]&lt;=o[2]&amp;&amp;o[1]&lt;=n[1]&amp;&amp;n[1]&lt;=o[3]){var l=s[0]+(n[0]-o[0])/(o[2]-o[0])*(s[2]-s[0]),c=s[1]+(n[1]-o[1])/(o[3]-o[1])*(s[3]-s[1]);t[0]&amp;&amp;a.drawLine(l,c,s[0],c,e[0],r[0]),t[1]&amp;&amp;a.drawLine(l,c,l,s[1],e[1],r[1]),t[2]&amp;&amp;a.drawLine(l,c,s[2],c,e[2],r[2]),t[3]&amp;&amp;a.drawLine(l,c,l,s[3],e[3],r[3])}},i.dispose=function(){this.plot.removeOverlay(this)}},{}],343:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],344:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position, color;\nattribute float weight;\n\nuniform mat4 model, view, projection;\nuniform vec3 coordinates[3];\nuniform vec4 colors[3];\nuniform vec2 screenShape;\nuniform float lineWidth;\n\nvarying vec4 fragColor;\n\nvoid main() {\n  vec3 vertexPosition = mix(coordinates[0],\n    mix(coordinates[2], coordinates[1], 0.5 * (position + 1.0)), abs(position));\n\n  vec4 clipPos = projection * view * model * vec4(vertexPosition, 1.0);\n  vec2 clipOffset = (projection * view * model * vec4(color, 0.0)).xy;\n  vec2 delta = weight * clipOffset * screenShape;\n  vec2 lineOffset = normalize(vec2(delta.y, -delta.x)) / screenShape;\n\n  gl_Position   = vec4(clipPos.xy + clipPos.w * 0.5 * lineWidth * lineOffset, clipPos.z, clipPos.w);\n  fragColor     = color.x * colors[0] + color.y * colors[1] + color.z * colors[2];\n}\n&quot;]),o=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n  gl_FragColor = fragColor;\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec3&quot;},{name:&quot;weight&quot;,type:&quot;float&quot;}])}},{&quot;gl-shader&quot;:335,glslify:343}],345:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders/index&quot;);e.exports=function(t,e){var r=[];function o(t,e,n,i,a,o){var s=[t,e,n,0,0,0,1];s[i+3]=1,s[i]=a,r.push.apply(r,s),s[6]=-1,r.push.apply(r,s),s[i]=o,r.push.apply(r,s),r.push.apply(r,s),s[6]=1,r.push.apply(r,s),s[i]=a,r.push.apply(r,s)}o(0,0,0,0,0,1),o(0,0,0,1,0,1),o(0,0,0,2,0,1),o(1,0,0,1,-1,1),o(1,0,0,2,-1,1),o(0,1,0,0,-1,1),o(0,1,0,2,-1,1),o(0,0,1,0,-1,1),o(0,0,1,1,-1,1);var l=n(t,r),c=i(t,[{type:t.FLOAT,buffer:l,size:3,offset:0,stride:28},{type:t.FLOAT,buffer:l,size:3,offset:12,stride:28},{type:t.FLOAT,buffer:l,size:1,offset:24,stride:28}]),u=a(t);u.attributes.position.location=0,u.attributes.color.location=1,u.attributes.weight.location=2;var f=new s(t,l,c,u);return f.update(e),f};var o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n,this.pixelRatio=1,this.bounds=[[-1e3,-1e3,-1e3],[1e3,1e3,1e3]],this.position=[0,0,0],this.lineWidth=[2,2,2],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.enabled=[!0,!0,!0],this.drawSides=[!0,!0,!0],this.axes=null}var l=s.prototype,c=[0,0,0],u=[0,0,0],f=[0,0];l.isTransparent=function(){return!1},l.drawTransparent=function(t){},l.draw=function(t){var e=this.gl,r=this.vao,n=this.shader;r.bind(),n.bind();var i,a=t.model||o,s=t.view||o,l=t.projection||o;this.axes&amp;&amp;(i=this.axes.lastCubeProps.axis);for(var h=c,p=u,d=0;d&lt;3;++d)i&amp;&amp;i[d]&lt;0?(h[d]=this.bounds[0][d],p[d]=this.bounds[1][d]):(h[d]=this.bounds[1][d],p[d]=this.bounds[0][d]);f[0]=e.drawingBufferWidth,f[1]=e.drawingBufferHeight,n.uniforms.model=a,n.uniforms.view=s,n.uniforms.projection=l,n.uniforms.coordinates=[this.position,h,p],n.uniforms.colors=this.colors,n.uniforms.screenShape=f;for(d=0;d&lt;3;++d)n.uniforms.lineWidth=this.lineWidth[d]*this.pixelRatio,this.enabled[d]&amp;&amp;(r.draw(e.TRIANGLES,6,6*d),this.drawSides[d]&amp;&amp;r.draw(e.TRIANGLES,12,18+12*d));r.unbind()},l.update=function(t){t&amp;&amp;(&quot;bounds&quot;in t&amp;&amp;(this.bounds=t.bounds),&quot;position&quot;in t&amp;&amp;(this.position=t.position),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;colors&quot;in t&amp;&amp;(this.colors=t.colors),&quot;enabled&quot;in t&amp;&amp;(this.enabled=t.enabled),&quot;drawSides&quot;in t&amp;&amp;(this.drawSides=t.drawSides))},l.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{&quot;./shaders/index&quot;:344,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],346:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n  float segmentCount = 8.0;\n\n  float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d);\n  vec3 y = v * sin(angle) * length(d);\n  vec3 v3 = x + y;\n\n  normal = normalize(v3);\n\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, tubeScale;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  // Scale the vector magnitude to stay constant with\n  // model &amp; view changes.\n  vec3 normal;\n  vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n  vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * tubePosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  // vec4 m_position  = model * vec4(tubePosition, 1.0);\n  vec4 t_position  = view * tubePosition;\n  gl_Position      = projection * t_position;\n\n  f_color          = color;\n  f_data           = tubePosition.xyz;\n  f_position       = position.xyz;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * opacity;\n}\n&quot;]),o=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n  float segmentCount = 8.0;\n\n  float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d);\n  vec3 y = v * sin(angle) * length(d);\n  vec3 v3 = x + y;\n\n  normal = normalize(v3);\n\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float tubeScale;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  vec3 normal;\n  vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n  vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  gl_Position = projection * view * tubePosition;\n  f_id        = id;\n  f_position  = position.xyz;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;vector&quot;,type:&quot;vec4&quot;}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;},{name:&quot;vector&quot;,type:&quot;vec4&quot;}]}},{glslify:347}],347:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],348:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-vec3&quot;),i=t(&quot;gl-vec4&quot;),a=[&quot;xyz&quot;,&quot;xzy&quot;,&quot;yxz&quot;,&quot;yzx&quot;,&quot;zxy&quot;,&quot;zyx&quot;],o=function(t,e,r,a){for(var o=0,s=0;s&lt;t.length;s++)for(var l=t[s].velocities,c=0;c&lt;l.length;c++)o=Math.max(o,n.length(l[c]));var u=t.map((function(t){return function(t,e,r,a){for(var o=t.points,s=t.velocities,l=t.divergences,c=[],u=[],f=[],h=[],p=[],d=[],g=0,m=0,v=i.create(),y=i.create(),x=0;x&lt;o.length;x++){var b=o[x],_=s[x],w=l[x];0===e&amp;&amp;(w=.05*r),m=n.length(_)/a,v=i.create(),n.copy(v,_),v[3]=w;for(var T=0;T&lt;8;T++)p[T]=[b[0],b[1],b[2],T];if(h.length&gt;0)for(T=0;T&lt;8;T++){var k=(T+1)%8;c.push(h[T],p[T],p[k],p[k],h[k],h[T]),f.push(y,v,v,v,y,y),d.push(g,m,m,m,g,g);var M=c.length;u.push([M-6,M-5,M-4],[M-3,M-2,M-1])}var A=h;h=p,p=A;var S=y;y=v,v=S;var E=g;g=m,m=E}return{positions:c,cells:u,vectors:f,vertexIntensity:d}}(t,r,a,o)})),f=[],h=[],p=[],d=[];for(s=0;s&lt;u.length;s++){var g=u[s],m=f.length;f=f.concat(g.positions),p=p.concat(g.vectors),d=d.concat(g.vertexIntensity);for(c=0;c&lt;g.cells.length;c++){var v=g.cells[c],y=[];h.push(y);for(var x=0;x&lt;v.length;x++)y.push(v[x]+m)}}return{positions:f,cells:h,vectors:p,vertexIntensity:d,colormap:e}},s=function(t,e){var r,n=t.length;for(r=0;r&lt;n;r++){var i=t[r];if(i===e)return r;if(i&gt;e)return r-1}return r},l=function(t,e,r){return t&lt;e?e:t&gt;r?r:t},c=function(t){var e=1/0;t.sort((function(t,e){return t-e}));for(var r=t.length,n=1;n&lt;r;n++){var i=Math.abs(t[n]-t[n-1]);i&lt;e&amp;&amp;(e=i)}return e};e.exports=function(t,e){var r=t.startingPositions,i=t.maxLength||1e3,u=t.tubeSize||1,f=t.absoluteTubeSize,h=t.gridFill||&quot;+x+y+z&quot;,p={};-1!==h.indexOf(&quot;-x&quot;)&amp;&amp;(p.reversedX=!0),-1!==h.indexOf(&quot;-y&quot;)&amp;&amp;(p.reversedY=!0),-1!==h.indexOf(&quot;-z&quot;)&amp;&amp;(p.reversedZ=!0),p.filled=a.indexOf(h.replace(/-/g,&quot;&quot;).replace(/\+/g,&quot;&quot;));var d=t.getVelocity||function(e){return function(t,e,r){var i=e.vectors,a=e.meshgrid,o=t[0],c=t[1],u=t[2],f=a[0].length,h=a[1].length,p=a[2].length,d=s(a[0],o),g=s(a[1],c),m=s(a[2],u),v=d+1,y=g+1,x=m+1;if(d=l(d,0,f-1),v=l(v,0,f-1),g=l(g,0,h-1),y=l(y,0,h-1),m=l(m,0,p-1),x=l(x,0,p-1),d&lt;0||g&lt;0||m&lt;0||v&gt;f-1||y&gt;h-1||x&gt;p-1)return n.create();var b,_,w,T,k,M,A=a[0][d],S=a[0][v],E=a[1][g],C=a[1][y],L=a[2][m],I=(o-A)/(S-A),P=(c-E)/(C-E),z=(u-L)/(a[2][x]-L);switch(isFinite(I)||(I=.5),isFinite(P)||(P=.5),isFinite(z)||(z=.5),r.reversedX&amp;&amp;(d=f-1-d,v=f-1-v),r.reversedY&amp;&amp;(g=h-1-g,y=h-1-y),r.reversedZ&amp;&amp;(m=p-1-m,x=p-1-x),r.filled){case 5:k=m,M=x,w=g*p,T=y*p,b=d*p*h,_=v*p*h;break;case 4:k=m,M=x,b=d*p,_=v*p,w=g*p*f,T=y*p*f;break;case 3:w=g,T=y,k=m*h,M=x*h,b=d*h*p,_=v*h*p;break;case 2:w=g,T=y,b=d*h,_=v*h,k=m*h*f,M=x*h*f;break;case 1:b=d,_=v,k=m*f,M=x*f,w=g*f*p,T=y*f*p;break;default:b=d,_=v,w=g*f,T=y*f,k=m*f*h,M=x*f*h}var O=i[b+w+k],D=i[b+w+M],R=i[b+T+k],F=i[b+T+M],B=i[_+w+k],N=i[_+w+M],j=i[_+T+k],U=i[_+T+M],V=n.create(),q=n.create(),H=n.create(),G=n.create();n.lerp(V,O,B,I),n.lerp(q,D,N,I),n.lerp(H,R,j,I),n.lerp(G,F,U,I);var Y=n.create(),W=n.create();n.lerp(Y,V,H,P),n.lerp(W,q,G,P);var X=n.create();return n.lerp(X,Y,W,z),X}(e,t,p)},g=t.getDivergence||function(t,e){var r=n.create(),i=1e-4;n.add(r,t,[i,0,0]);var a=d(r);n.subtract(a,a,e),n.scale(a,a,1/i),n.add(r,t,[0,i,0]);var o=d(r);n.subtract(o,o,e),n.scale(o,o,1/i),n.add(r,t,[0,0,i]);var s=d(r);return n.subtract(s,s,e),n.scale(s,s,1/i),n.add(r,a,o),n.add(r,r,s),r},m=[],v=e[0][0],y=e[0][1],x=e[0][2],b=e[1][0],_=e[1][1],w=e[1][2],T=function(t){var e=t[0],r=t[1],n=t[2];return!(e&lt;v||e&gt;b||r&lt;y||r&gt;_||n&lt;x||n&gt;w)},k=10*n.distance(e[0],e[1])/i,M=k*k,A=1,S=0,E=r.length;E&gt;1&amp;&amp;(A=function(t){for(var e=[],r=[],n=[],i={},a={},o={},s=t.length,l=0;l&lt;s;l++){var u=t[l],f=u[0],h=u[1],p=u[2];i[f]||(e.push(f),i[f]=!0),a[h]||(r.push(h),a[h]=!0),o[p]||(n.push(p),o[p]=!0)}var d=c(e),g=c(r),m=c(n),v=Math.min(d,g,m);return isFinite(v)?v:1}(r));for(var C=0;C&lt;E;C++){var L=n.create();n.copy(L,r[C]);var I=[L],P=[],z=d(L),O=L;P.push(z);var D=[],R=g(L,z),F=n.length(R);isFinite(F)&amp;&amp;F&gt;S&amp;&amp;(S=F),D.push(F),m.push({points:I,velocities:P,divergences:D});for(var B=0;B&lt;100*i&amp;&amp;I.length&lt;i&amp;&amp;T(L);){B++;var N=n.clone(z),j=n.squaredLength(N);if(0===j)break;if(j&gt;M&amp;&amp;n.scale(N,N,k/Math.sqrt(j)),n.add(N,N,L),z=d(N),n.squaredDistance(O,N)-M&gt;-1e-4*M){I.push(N),O=N,P.push(z);R=g(N,z),F=n.length(R);isFinite(F)&amp;&amp;F&gt;S&amp;&amp;(S=F),D.push(F)}L=N}}var U=o(m,t.colormap,S,A);return f?U.tubeScale=f:(0===S&amp;&amp;(S=1),U.tubeScale=.5*u*A/S),U};var u=t(&quot;./lib/shaders&quot;),f=t(&quot;gl-cone3d&quot;).createMesh;e.exports.createTubeMesh=function(t,e){return f(t,e,{shaders:u,traceType:&quot;streamtube&quot;})}},{&quot;./lib/shaders&quot;:346,&quot;gl-cone3d&quot;:260,&quot;gl-vec3&quot;:377,&quot;gl-vec4&quot;:413}],349:[function(t,e,r){var n=t(&quot;gl-shader&quot;),i=t(&quot;glslify&quot;),a=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute vec3 f;\nattribute vec3 normal;\n\nuniform vec3 objectOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 lightPosition, eyePosition;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  vec3 localCoordinate = vec3(uv.zw, f.x);\n  worldCoordinate = objectOffset + localCoordinate;\n  vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n  vec4 clipPosition = projection * view * worldPosition;\n  gl_Position = clipPosition;\n  kill = f.y;\n  value = f.z;\n  planeCoordinate = uv.xy;\n\n  vColor = texture2D(colormap, vec2(value, value));\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * worldPosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  lightDirection = lightPosition - cameraCoordinate.xyz;\n  eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  surfaceNormal  = normalize((vec4(normal,0) * inverseModel).xyz);\n}\n&quot;]),o=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat beckmannSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness) {\n  return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 lowerBound, upperBound;\nuniform float contourTint;\nuniform vec4 contourColor;\nuniform sampler2D colormap;\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform float vertexColor;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  if (\n    kill &gt; 0.0 ||\n    vColor.a == 0.0 ||\n    outOfRange(clipBounds[0], clipBounds[1], worldCoordinate)\n  ) discard;\n\n  vec3 N = normalize(surfaceNormal);\n  vec3 V = normalize(eyeDirection);\n  vec3 L = normalize(lightDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = max(beckmannSpecular(L, V, N, roughness), 0.);\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  //decide how to interpolate color \u2014 in vertex or in fragment\n  vec4 surfaceColor =\n    step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) +\n    step(.5, vertexColor) * vColor;\n\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\n}\n&quot;]),s=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute float f;\n\nuniform vec3 objectOffset;\nuniform mat3 permutation;\nuniform mat4 model, view, projection;\nuniform float height, zOffset;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  vec3 dataCoordinate = permutation * vec3(uv.xy, height);\n  worldCoordinate = objectOffset + dataCoordinate;\n  vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n\n  vec4 clipPosition = projection * view * worldPosition;\n  clipPosition.z += zOffset;\n\n  gl_Position = clipPosition;\n  value = f + objectOffset.z;\n  kill = -1.0;\n  planeCoordinate = uv.zw;\n\n  vColor = texture2D(colormap, vec2(value, value));\n\n  //Don't do lighting for contours\n  surfaceNormal   = vec3(1,0,0);\n  eyeDirection    = vec3(0,1,0);\n  lightDirection  = vec3(0,0,1);\n}\n&quot;]),l=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec2 shape;\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 surfaceNormal;\n\nvec2 splitFloat(float v) {\n  float vh = 255.0 * v;\n  float upper = floor(vh);\n  float lower = fract(vh);\n  return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\n}\n\nvoid main() {\n  if ((kill &gt; 0.0) ||\n      (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\n\n  vec2 ux = splitFloat(planeCoordinate.x / shape.x);\n  vec2 uy = splitFloat(planeCoordinate.y / shape.y);\n  gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\n}\n&quot;]);r.createShader=function(t){var e=n(t,a,o,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createPickShader=function(t){var e=n(t,a,l,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createContourShader=function(t){var e=n(t,s,o,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;float&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e},r.createPickContourShader=function(t){var e=n(t,s,l,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;float&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e}},{&quot;gl-shader&quot;:335,glslify:350}],350:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],351:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=y(e),n=b(e),s=x(e),l=_(e),c=i(e),u=a(e,[{buffer:c,size:4,stride:40,offset:0},{buffer:c,size:3,stride:40,offset:16},{buffer:c,size:3,stride:40,offset:28}]),f=i(e),h=a(e,[{buffer:f,size:4,stride:20,offset:0},{buffer:f,size:1,stride:20,offset:16}]),p=i(e),d=a(e,[{buffer:p,size:2,type:e.FLOAT}]),g=o(e,1,256,e.RGBA,e.UNSIGNED_BYTE);g.minFilter=e.LINEAR,g.magFilter=e.LINEAR;var m=new A(e,[0,0],[[0,0,0],[0,0,0]],r,n,c,u,g,s,l,f,h,p,d,[0,0,0]),v={levels:[[],[],[]]};for(var w in t)v[w]=t[w];return v.colormap=v.colormap||&quot;jet&quot;,m.update(v),m};var n=t(&quot;bit-twiddle&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;typedarray-pool&quot;),l=t(&quot;colormap&quot;),c=t(&quot;ndarray-ops&quot;),u=t(&quot;ndarray-pack&quot;),f=t(&quot;ndarray&quot;),h=t(&quot;surface-nets&quot;),p=t(&quot;gl-mat4/multiply&quot;),d=t(&quot;gl-mat4/invert&quot;),g=t(&quot;binary-search-bounds&quot;),m=t(&quot;ndarray-gradient&quot;),v=t(&quot;./lib/shaders&quot;),y=v.createShader,x=v.createContourShader,b=v.createPickShader,_=v.createPickContourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],k=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];function M(t,e,r,n,i){this.position=t,this.index=e,this.uv=r,this.level=n,this.dataCoordinate=i}!function(){for(var t=0;t&lt;3;++t){var e=k[t],r=(t+2)%3;e[(t+1)%3+0]=1,e[r+3]=1,e[t+6]=1}}();function A(t,e,r,n,i,a,o,l,c,u,h,p,d,g,m){this.gl=t,this.shape=e,this.bounds=r,this.objectOffset=m,this.intensityBounds=[],this._shader=n,this._pickShader=i,this._coordinateBuffer=a,this._vao=o,this._colorMap=l,this._contourShader=c,this._contourPickShader=u,this._contourBuffer=h,this._contourVAO=p,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new M([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=d,this._dynamicVAO=g,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var S=A.prototype;S.genColormap=function(t,e){var r=!1,n=u([l({colormap:t,nshades:256,format:&quot;rgba&quot;}).map((function(t,n){var i=e?function(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;r&lt;e.length;++r){if(e.length&lt;2)return 1;if(e[r][0]===t)return e[r][1];if(e[r][0]&gt;t&amp;&amp;r&gt;0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}(n/255,e):t[3];return i&lt;1&amp;&amp;(r=!0),[t[0],t[1],t[2],255*i]}))]);return c.divseq(n,255),this.hasAlphaScale=r,n},S.isTransparent=function(){return this.opacity&lt;1||this.hasAlphaScale},S.isOpaque=function(){return!this.isTransparent()},S.pickSlots=1,S.setPickBase=function(t){this.pickId=t};var E=[0,0,0],C={showSurface:!1,showContour:!1,projections:[w.slice(),w.slice(),w.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function L(t,e){var r,n,i,a=e.axes&amp;&amp;e.axes.lastCubeProps.axis||E,o=e.showSurface,s=e.showContour;for(r=0;r&lt;3;++r)for(o=o||e.surfaceProject[r],n=0;n&lt;3;++n)s=s||e.contourProject[r][n];for(r=0;r&lt;3;++r){var l=C.projections[r];for(n=0;n&lt;16;++n)l[n]=0;for(n=0;n&lt;4;++n)l[5*n]=1;l[5*r]=0,l[12+r]=e.axesBounds[+(a[r]&gt;0)][r],p(l,t.model,l);var c=C.clipBounds[r];for(i=0;i&lt;2;++i)for(n=0;n&lt;3;++n)c[i][n]=t.clipBounds[i][n];c[0][r]=-1e8,c[1][r]=1e8}return C.showSurface=o,C.showContour=s,C}var I={model:w,view:w,projection:w,inverseModel:w.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},P=w.slice(),z=[1,0,0,0,1,0,0,0,1];function O(t,e){t=t||{};var r=this.gl;r.disable(r.CULL_FACE),this._colorMap.bind(0);var n=I;n.model=t.model||w,n.view=t.view||w,n.projection=t.projection||w,n.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],n.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],n.objectOffset=this.objectOffset,n.contourColor=this.contourColor[0],n.inverseModel=d(n.inverseModel,n.model);for(var i=0;i&lt;2;++i)for(var a=n.clipBounds[i],o=0;o&lt;3;++o)a[o]=Math.min(Math.max(this.clipBounds[i][o],-1e8),1e8);n.kambient=this.ambientLight,n.kdiffuse=this.diffuseLight,n.kspecular=this.specularLight,n.roughness=this.roughness,n.fresnel=this.fresnel,n.opacity=this.opacity,n.height=0,n.permutation=z,n.vertexColor=this.vertexColor;var s=P;for(p(s,n.view,n.model),p(s,n.projection,s),d(s,s),i=0;i&lt;3;++i)n.eyePosition[i]=s[12+i]/s[15];var l=s[15];for(i=0;i&lt;3;++i)l+=this.lightPosition[i]*s[4*i+3];for(i=0;i&lt;3;++i){var c=s[12+i];for(o=0;o&lt;3;++o)c+=s[4*o+i]*this.lightPosition[o];n.lightPosition[i]=c/l}var u=L(n,this);if(u.showSurface){for(this._shader.bind(),this._shader.uniforms=n,this._vao.bind(),this.showSurface&amp;&amp;this._vertexCount&amp;&amp;this._vao.draw(r.TRIANGLES,this._vertexCount),i=0;i&lt;3;++i)this.surfaceProject[i]&amp;&amp;this.vertexCount&amp;&amp;(this._shader.uniforms.model=u.projections[i],this._shader.uniforms.clipBounds=u.clipBounds[i],this._vao.draw(r.TRIANGLES,this._vertexCount));this._vao.unbind()}if(u.showContour){var f=this._contourShader;n.kambient=1,n.kdiffuse=0,n.kspecular=0,n.opacity=1,f.bind(),f.uniforms=n;var h=this._contourVAO;for(h.bind(),i=0;i&lt;3;++i)for(f.uniforms.permutation=k[i],r.lineWidth(this.contourWidth[i]*this.pixelRatio),o=0;o&lt;this.contourLevels[i].length;++o)o===this.highlightLevel[i]?(f.uniforms.contourColor=this.highlightColor[i],f.uniforms.contourTint=this.highlightTint[i]):0!==o&amp;&amp;o-1!==this.highlightLevel[i]||(f.uniforms.contourColor=this.contourColor[i],f.uniforms.contourTint=this.contourTint[i]),this._contourCounts[i][o]&amp;&amp;(f.uniforms.height=this.contourLevels[i][o],h.draw(r.LINES,this._contourCounts[i][o],this._contourOffsets[i][o]));for(i=0;i&lt;3;++i)for(f.uniforms.model=u.projections[i],f.uniforms.clipBounds=u.clipBounds[i],o=0;o&lt;3;++o)if(this.contourProject[i][o]){f.uniforms.permutation=k[o],r.lineWidth(this.contourWidth[o]*this.pixelRatio);for(var g=0;g&lt;this.contourLevels[o].length;++g)g===this.highlightLevel[o]?(f.uniforms.contourColor=this.highlightColor[o],f.uniforms.contourTint=this.highlightTint[o]):0!==g&amp;&amp;g-1!==this.highlightLevel[o]||(f.uniforms.contourColor=this.contourColor[o],f.uniforms.contourTint=this.contourTint[o]),this._contourCounts[o][g]&amp;&amp;(f.uniforms.height=this.contourLevels[o][g],h.draw(r.LINES,this._contourCounts[o][g],this._contourOffsets[o][g]))}for(h.unbind(),(h=this._dynamicVAO).bind(),i=0;i&lt;3;++i)if(0!==this._dynamicCounts[i])for(f.uniforms.model=n.model,f.uniforms.clipBounds=n.clipBounds,f.uniforms.permutation=k[i],r.lineWidth(this.dynamicWidth[i]*this.pixelRatio),f.uniforms.contourColor=this.dynamicColor[i],f.uniforms.contourTint=this.dynamicTint[i],f.uniforms.height=this.dynamicLevel[i],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]),o=0;o&lt;3;++o)this.contourProject[o][i]&amp;&amp;(f.uniforms.model=u.projections[o],f.uniforms.clipBounds=u.clipBounds[o],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]));h.unbind()}}S.draw=function(t){return O.call(this,t,!1)},S.drawTransparent=function(t){return O.call(this,t,!0)};var D={model:w,view:w,projection:w,inverseModel:w,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,objectOffset:[0,0,0],permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};function R(t,e){return Array.isArray(t)?[e(t[0]),e(t[1]),e(t[2])]:[e(t),e(t),e(t)]}function F(t){return Array.isArray(t)?3===t.length?[t[0],t[1],t[2],1]:[t[0],t[1],t[2],t[3]]:[0,0,0,1]}function B(t){if(Array.isArray(t)){if(Array.isArray(t))return[F(t[0]),F(t[1]),F(t[2])];var e=F(t);return[e.slice(),e.slice(),e.slice()]}}S.drawPick=function(t){t=t||{};var e=this.gl;e.disable(e.CULL_FACE);var r=D;r.model=t.model||w,r.view=t.view||w,r.projection=t.projection||w,r.shape=this._field[2].shape,r.pickId=this.pickId/255,r.lowerBound=this.bounds[0],r.upperBound=this.bounds[1],r.objectOffset=this.objectOffset,r.permutation=z;for(var n=0;n&lt;2;++n)for(var i=r.clipBounds[n],a=0;a&lt;3;++a)i[a]=Math.min(Math.max(this.clipBounds[n][a],-1e8),1e8);var o=L(r,this);if(o.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=r,this._vao.bind(),this._vao.draw(e.TRIANGLES,this._vertexCount),n=0;n&lt;3;++n)this.surfaceProject[n]&amp;&amp;(this._pickShader.uniforms.model=o.projections[n],this._pickShader.uniforms.clipBounds=o.clipBounds[n],this._vao.draw(e.TRIANGLES,this._vertexCount));this._vao.unbind()}if(o.showContour){var s=this._contourPickShader;s.bind(),s.uniforms=r;var l=this._contourVAO;for(l.bind(),a=0;a&lt;3;++a)for(e.lineWidth(this.contourWidth[a]*this.pixelRatio),s.uniforms.permutation=k[a],n=0;n&lt;this.contourLevels[a].length;++n)this._contourCounts[a][n]&amp;&amp;(s.uniforms.height=this.contourLevels[a][n],l.draw(e.LINES,this._contourCounts[a][n],this._contourOffsets[a][n]));for(n=0;n&lt;3;++n)for(s.uniforms.model=o.projections[n],s.uniforms.clipBounds=o.clipBounds[n],a=0;a&lt;3;++a)if(this.contourProject[n][a]){s.uniforms.permutation=k[a],e.lineWidth(this.contourWidth[a]*this.pixelRatio);for(var c=0;c&lt;this.contourLevels[a].length;++c)this._contourCounts[a][c]&amp;&amp;(s.uniforms.height=this.contourLevels[a][c],l.draw(e.LINES,this._contourCounts[a][c],this._contourOffsets[a][c]))}l.unbind()}},S.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=this._field[2].shape,r=this._pickResult,n=e[0]*(t.value[0]+(t.value[2]&gt;&gt;4)/16)/255,i=Math.floor(n),a=n-i,o=e[1]*(t.value[1]+(15&amp;t.value[2])/16)/255,s=Math.floor(o),l=o-s;i+=1,s+=1;var c=r.position;c[0]=c[1]=c[2]=0;for(var u=0;u&lt;2;++u)for(var f=u?a:1-a,h=0;h&lt;2;++h)for(var p=i+u,d=s+h,m=f*(h?l:1-l),v=0;v&lt;3;++v)c[v]+=this._field[v].get(p,d)*m;for(var y=this._pickResult.level,x=0;x&lt;3;++x)if(y[x]=g.le(this.contourLevels[x],c[x]),y[x]&lt;0)this.contourLevels[x].length&gt;0&amp;&amp;(y[x]=0);else if(y[x]&lt;this.contourLevels[x].length-1){var b=this.contourLevels[x][y[x]],_=this.contourLevels[x][y[x]+1];Math.abs(b-c[x])&gt;Math.abs(_-c[x])&amp;&amp;(y[x]+=1)}for(r.index[0]=a&lt;.5?i:i+1,r.index[1]=l&lt;.5?s:s+1,r.uv[0]=n/e[0],r.uv[1]=o/e[1],v=0;v&lt;3;++v)r.dataCoordinate[v]=this._field[v].get(r.index[0],r.index[1]);return r},S.padField=function(t,e){var r=e.shape.slice(),n=t.shape.slice();c.assign(t.lo(1,1).hi(r[0],r[1]),e),c.assign(t.lo(1).hi(r[0],1),e.hi(r[0],1)),c.assign(t.lo(1,n[1]-1).hi(r[0],1),e.lo(0,r[1]-1).hi(r[0],1)),c.assign(t.lo(0,1).hi(1,r[1]),e.hi(1)),c.assign(t.lo(n[0]-1,1).hi(1,r[1]),e.lo(r[0]-1)),t.set(0,0,e.get(0,0)),t.set(0,n[1]-1,e.get(0,r[1]-1)),t.set(n[0]-1,0,e.get(r[0]-1,0)),t.set(n[0]-1,n[1]-1,e.get(r[0]-1,r[1]-1))},S.update=function(t){t=t||{},this.objectOffset=t.objectOffset||this.objectOffset,this.dirty=!0,&quot;contourWidth&quot;in t&amp;&amp;(this.contourWidth=R(t.contourWidth,Number)),&quot;showContour&quot;in t&amp;&amp;(this.showContour=R(t.showContour,Boolean)),&quot;showSurface&quot;in t&amp;&amp;(this.showSurface=!!t.showSurface),&quot;contourTint&quot;in t&amp;&amp;(this.contourTint=R(t.contourTint,Boolean)),&quot;contourColor&quot;in t&amp;&amp;(this.contourColor=B(t.contourColor)),&quot;contourProject&quot;in t&amp;&amp;(this.contourProject=R(t.contourProject,(function(t){return R(t,Boolean)}))),&quot;surfaceProject&quot;in t&amp;&amp;(this.surfaceProject=t.surfaceProject),&quot;dynamicColor&quot;in t&amp;&amp;(this.dynamicColor=B(t.dynamicColor)),&quot;dynamicTint&quot;in t&amp;&amp;(this.dynamicTint=R(t.dynamicTint,Number)),&quot;dynamicWidth&quot;in t&amp;&amp;(this.dynamicWidth=R(t.dynamicWidth,Number)),&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity),&quot;opacityscale&quot;in t&amp;&amp;(this.opacityscale=t.opacityscale),&quot;colorBounds&quot;in t&amp;&amp;(this.colorBounds=t.colorBounds),&quot;vertexColor&quot;in t&amp;&amp;(this.vertexColor=t.vertexColor?1:0),&quot;colormap&quot;in t&amp;&amp;this._colorMap.setPixels(this.genColormap(t.colormap,this.opacityscale));var e=t.field||t.coords&amp;&amp;t.coords[2]||null,r=!1;if(e||(e=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),&quot;field&quot;in t||&quot;coords&quot;in t){var i=(e.shape[0]+2)*(e.shape[1]+2);i&gt;this._field[2].data.length&amp;&amp;(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(n.nextPow2(i))),this._field[2]=f(this._field[2].data,[e.shape[0]+2,e.shape[1]+2]),this.padField(this._field[2],e),this.shape=e.shape.slice();for(var a=this.shape,o=0;o&lt;2;++o)this._field[2].size&gt;this._field[o].data.length&amp;&amp;(s.freeFloat(this._field[o].data),this._field[o].data=s.mallocFloat(this._field[2].size)),this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2]);if(t.coords){var l=t.coords;if(!Array.isArray(l)||3!==l.length)throw new Error(&quot;gl-surface: invalid coordinates for x/y&quot;);for(o=0;o&lt;2;++o){var c=l[o];for(v=0;v&lt;2;++v)if(c.shape[v]!==a[v])throw new Error(&quot;gl-surface: coords have incorrect shape&quot;);this.padField(this._field[o],c)}}else if(t.ticks){var u=t.ticks;if(!Array.isArray(u)||2!==u.length)throw new Error(&quot;gl-surface: invalid ticks&quot;);for(o=0;o&lt;2;++o){var p=u[o];if((Array.isArray(p)||p.length)&amp;&amp;(p=f(p)),p.shape[0]!==a[o])throw new Error(&quot;gl-surface: invalid tick length&quot;);var d=f(p.data,a);d.stride[o]=p.stride[0],d.stride[1^o]=0,this.padField(this._field[o],d)}}else{for(o=0;o&lt;2;++o){var g=[0,0];g[o]=1,this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2],g,0)}this._field[0].set(0,0,0);for(var v=0;v&lt;a[0];++v)this._field[0].set(v+1,0,v);for(this._field[0].set(a[0]+1,0,a[0]-1),this._field[1].set(0,0,0),v=0;v&lt;a[1];++v)this._field[1].set(0,v+1,v);this._field[1].set(0,a[1]+1,a[1]-1)}var y=this._field,x=f(s.mallocFloat(3*y[2].size*2),[3,a[0]+2,a[1]+2,2]);for(o=0;o&lt;3;++o)m(x.pick(o),y[o],&quot;mirror&quot;);var b=f(s.mallocFloat(3*y[2].size),[a[0]+2,a[1]+2,3]);for(o=0;o&lt;a[0]+2;++o)for(v=0;v&lt;a[1]+2;++v){var _=x.get(0,o,v,0),w=x.get(0,o,v,1),k=x.get(1,o,v,0),M=x.get(1,o,v,1),A=x.get(2,o,v,0),S=x.get(2,o,v,1),E=k*S-M*A,C=A*w-S*_,L=_*M-w*k,I=Math.sqrt(E*E+C*C+L*L);I&lt;1e-8?(I=Math.max(Math.abs(E),Math.abs(C),Math.abs(L)))&lt;1e-8?(L=1,C=E=0,I=1):I=1/I:I=1/Math.sqrt(I),b.set(o,v,0,E*I),b.set(o,v,1,C*I),b.set(o,v,2,L*I)}s.free(x.data);var P=[1/0,1/0,1/0],z=[-1/0,-1/0,-1/0],O=1/0,D=-1/0,F=(a[0]-1)*(a[1]-1)*6,N=s.mallocFloat(n.nextPow2(10*F)),j=0,U=0;for(o=0;o&lt;a[0]-1;++o)t:for(v=0;v&lt;a[1]-1;++v){for(var V=0;V&lt;2;++V)for(var q=0;q&lt;2;++q)for(var H=0;H&lt;3;++H){var G=this._field[H].get(1+o+V,1+v+q);if(isNaN(G)||!isFinite(G))continue t}for(H=0;H&lt;6;++H){var Y=o+T[H][0],W=v+T[H][1],X=this._field[0].get(Y+1,W+1),Z=this._field[1].get(Y+1,W+1);G=this._field[2].get(Y+1,W+1),E=b.get(Y+1,W+1,0),C=b.get(Y+1,W+1,1),L=b.get(Y+1,W+1,2),t.intensity&amp;&amp;(J=t.intensity.get(Y,W));var J=t.intensity?t.intensity.get(Y,W):G+this.objectOffset[2];N[j++]=Y,N[j++]=W,N[j++]=X,N[j++]=Z,N[j++]=G,N[j++]=0,N[j++]=J,N[j++]=E,N[j++]=C,N[j++]=L,P[0]=Math.min(P[0],X+this.objectOffset[0]),P[1]=Math.min(P[1],Z+this.objectOffset[1]),P[2]=Math.min(P[2],G+this.objectOffset[2]),O=Math.min(O,J),z[0]=Math.max(z[0],X+this.objectOffset[0]),z[1]=Math.max(z[1],Z+this.objectOffset[1]),z[2]=Math.max(z[2],G+this.objectOffset[2]),D=Math.max(D,J),U+=1}}for(t.intensityBounds&amp;&amp;(O=+t.intensityBounds[0],D=+t.intensityBounds[1]),o=6;o&lt;j;o+=10)N[o]=(N[o]-O)/(D-O);this._vertexCount=U,this._coordinateBuffer.update(N.subarray(0,j)),s.freeFloat(N),s.free(b.data),this.bounds=[P,z],this.intensity=t.intensity||this._field[2],this.intensityBounds[0]===O&amp;&amp;this.intensityBounds[1]===D||(r=!0),this.intensityBounds=[O,D]}if(&quot;levels&quot;in t){var K=t.levels;for(K=Array.isArray(K[0])?K.slice():[[],[],K],o=0;o&lt;3;++o)K[o]=K[o].slice(),K[o].sort((function(t,e){return t-e}));for(o=0;o&lt;3;++o)for(v=0;v&lt;K[o].length;++v)K[o][v]-=this.objectOffset[o];t:for(o=0;o&lt;3;++o){if(K[o].length!==this.contourLevels[o].length){r=!0;break}for(v=0;v&lt;K[o].length;++v)if(K[o][v]!==this.contourLevels[o][v]){r=!0;break t}}this.contourLevels=K}if(r){y=this._field,a=this.shape;for(var Q=[],$=0;$&lt;3;++$){var tt=this.contourLevels[$],et=[],rt=[],nt=[0,0,0];for(o=0;o&lt;tt.length;++o){var it=h(this._field[$],tt[o]);et.push(Q.length/5|0),U=0;t:for(v=0;v&lt;it.cells.length;++v){var at=it.cells[v];for(H=0;H&lt;2;++H){var ot=it.positions[at[H]],st=ot[0],lt=0|Math.floor(st),ct=st-lt,ut=ot[1],ft=0|Math.floor(ut),ht=ut-ft,pt=!1;e:for(var dt=0;dt&lt;3;++dt){nt[dt]=0;var gt=($+dt+1)%3;for(V=0;V&lt;2;++V){var mt=V?ct:1-ct;for(Y=0|Math.min(Math.max(lt+V,0),a[0]),q=0;q&lt;2;++q){var vt=q?ht:1-ht;if(W=0|Math.min(Math.max(ft+q,0),a[1]),G=dt&lt;2?this._field[gt].get(Y,W):(this.intensity.get(Y,W)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(G)||isNaN(G)){pt=!0;break e}var yt=mt*vt;nt[dt]+=yt*G}}}if(pt){if(H&gt;0){for(var xt=0;xt&lt;5;++xt)Q.pop();U-=1}continue t}Q.push(nt[0],nt[1],ot[0],ot[1],nt[2]),U+=1}}rt.push(U)}this._contourOffsets[$]=et,this._contourCounts[$]=rt}var bt=s.mallocFloat(Q.length);for(o=0;o&lt;Q.length;++o)bt[o]=Q[o];this._contourBuffer.update(bt),s.freeFloat(bt)}},S.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var t=0;t&lt;3;++t)s.freeFloat(this._field[t].data)},S.highlight=function(t){var e,r;if(!t)return this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],void(this.highlightLevel=[-1,-1,-1]);for(e=0;e&lt;3;++e)this.enableHighlight[e]?this.highlightLevel[e]=t.level[e]:this.highlightLevel[e]=-1;for(r=this.snapToData?t.dataCoordinate:t.position,e=0;e&lt;3;++e)r[e]-=this.objectOffset[e];if(this.enableDynamic[0]&amp;&amp;r[0]!==this.dynamicLevel[0]||this.enableDynamic[1]&amp;&amp;r[1]!==this.dynamicLevel[1]||this.enableDynamic[2]&amp;&amp;r[2]!==this.dynamicLevel[2]){for(var n=0,i=this.shape,a=s.mallocFloat(12*i[0]*i[1]),o=0;o&lt;3;++o)if(this.enableDynamic[o]){this.dynamicLevel[o]=r[o];var l=(o+1)%3,c=(o+2)%3,u=this._field[o],f=this._field[l],p=this._field[c],d=h(u,r[o]),g=d.cells,m=d.positions;for(this._dynamicOffsets[o]=n,e=0;e&lt;g.length;++e)for(var v=g[e],y=0;y&lt;2;++y){var x=m[v[y]],b=+x[0],_=0|b,w=0|Math.min(_+1,i[0]),T=b-_,k=1-T,M=+x[1],A=0|M,S=0|Math.min(A+1,i[1]),E=M-A,C=1-E,L=k*C,I=k*E,P=T*C,z=T*E,O=L*f.get(_,A)+I*f.get(_,S)+P*f.get(w,A)+z*f.get(w,S),D=L*p.get(_,A)+I*p.get(_,S)+P*p.get(w,A)+z*p.get(w,S);if(isNaN(O)||isNaN(D)){y&amp;&amp;(n-=1);break}a[2*n+0]=O,a[2*n+1]=D,n+=1}this._dynamicCounts[o]=n-this._dynamicOffsets[o]}else this.dynamicLevel[o]=NaN,this._dynamicCounts[o]=0;this._dynamicBuffer.update(a.subarray(0,2*n)),s.freeFloat(a)}}},{&quot;./lib/shaders&quot;:349,&quot;binary-search-bounds&quot;:96,&quot;bit-twiddle&quot;:97,colormap:131,&quot;gl-buffer&quot;:259,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/multiply&quot;:295,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495,&quot;ndarray-gradient&quot;:488,&quot;ndarray-ops&quot;:490,&quot;ndarray-pack&quot;:491,&quot;surface-nets&quot;:570,&quot;typedarray-pool&quot;:595}],352:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font&quot;),i=t(&quot;pick-by-alias&quot;),a=t(&quot;regl&quot;),o=t(&quot;gl-util/context&quot;),s=t(&quot;es6-weak-map&quot;),l=t(&quot;color-normalize&quot;),c=t(&quot;font-atlas&quot;),u=t(&quot;typedarray-pool&quot;),f=t(&quot;parse-rect&quot;),h=t(&quot;is-plain-obj&quot;),p=t(&quot;parse-unit&quot;),d=t(&quot;to-px&quot;),g=t(&quot;detect-kerning&quot;),m=t(&quot;object-assign&quot;),v=t(&quot;font-measure&quot;),y=t(&quot;flatten-vertex-data&quot;),x=t(&quot;bit-twiddle&quot;).nextPow2,b=new s,_=!1;if(document.body){var w=document.body.appendChild(document.createElement(&quot;div&quot;));w.style.font=&quot;italic small-caps bold condensed 16px/2 cursive&quot;,getComputedStyle(w).fontStretch&amp;&amp;(_=!0),document.body.removeChild(w)}var T=function(t){!function(t){return&quot;function&quot;==typeof t&amp;&amp;t._gl&amp;&amp;t.prop&amp;&amp;t.texture&amp;&amp;t.buffer}(t)?this.gl=o(t):(t={regl:t},this.gl=t.regl._gl),this.shader=b.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||a({gl:this.gl}),this.charBuffer=this.regl.buffer({type:&quot;uint8&quot;,usage:&quot;stream&quot;}),this.sizeBuffer=this.regl.buffer({type:&quot;float&quot;,usage:&quot;stream&quot;}),this.shader||(this.shader=this.createShader(),b.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(t)?t:{})};T.prototype.createShader=function(){var t=this.regl,e=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},stencil:{enable:!1},depth:{enable:!1},count:t.prop(&quot;count&quot;),offset:t.prop(&quot;offset&quot;),attributes:{charOffset:{offset:4,stride:8,buffer:t.this(&quot;sizeBuffer&quot;)},width:{offset:0,stride:8,buffer:t.this(&quot;sizeBuffer&quot;)},char:t.this(&quot;charBuffer&quot;),position:t.this(&quot;position&quot;)},uniforms:{atlasSize:function(t,e){return[e.atlas.width,e.atlas.height]},atlasDim:function(t,e){return[e.atlas.cols,e.atlas.rows]},atlas:function(t,e){return e.atlas.texture},charStep:function(t,e){return e.atlas.step},em:function(t,e){return e.atlas.em},color:t.prop(&quot;color&quot;),opacity:t.prop(&quot;opacity&quot;),viewport:t.this(&quot;viewportArray&quot;),scale:t.this(&quot;scale&quot;),align:t.prop(&quot;align&quot;),baseline:t.prop(&quot;baseline&quot;),translate:t.this(&quot;translate&quot;),positionOffset:t.prop(&quot;positionOffset&quot;)},primitive:&quot;points&quot;,viewport:t.this(&quot;viewport&quot;),vert:&quot;\n\t\t\tprecision highp float;\n\t\t\tattribute float width, charOffset, char;\n\t\t\tattribute vec2 position;\n\t\t\tuniform float fontSize, charStep, em, align, baseline;\n\t\t\tuniform vec4 viewport;\n\t\t\tuniform vec4 color;\n\t\t\tuniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvoid main () {\n\t\t\t\t&quot;+(T.normalViewport?&quot;&quot;:&quot;vec2 positionOffset = vec2(positionOffset.x,- positionOffset.y);&quot;)+&quot;\n\n\t\t\t\tvec2 offset = floor(em * (vec2(align + charOffset, baseline)\n\t\t\t\t\t+ positionOffset))\n\t\t\t\t\t/ (viewport.zw * scale.xy);\n\n\t\t\t\tvec2 position = (position + translate) * scale;\n\t\t\t\tposition += offset * scale;\n\n\t\t\t\t&quot;+(T.normalViewport?&quot;position.y = 1. - position.y;&quot;:&quot;&quot;)+&quot;\n\n\t\t\t\tcharCoord = position * viewport.zw + viewport.xy;\n\n\t\t\t\tgl_Position = vec4(position * 2. - 1., 0, 1);\n\n\t\t\t\tgl_PointSize = charStep;\n\n\t\t\t\tcharId.x = mod(char, atlasDim.x);\n\t\t\t\tcharId.y = floor(char / atlasDim.x);\n\n\t\t\t\tcharWidth = width * em;\n\n\t\t\t\tfontColor = color / 255.;\n\t\t\t}&quot;,frag:&quot;\n\t\t\tprecision highp float;\n\t\t\tuniform sampler2D atlas;\n\t\t\tuniform float fontSize, charStep, opacity;\n\t\t\tuniform vec2 atlasSize;\n\t\t\tuniform vec4 viewport;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\n\t\t\tfloat lightness(vec4 color) {\n\t\t\t\treturn color.r * 0.299 + color.g * 0.587 + color.b * 0.114;\n\t\t\t}\n\n\t\t\tvoid main () {\n\t\t\t\tvec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;\n\t\t\t\tfloat halfCharStep = floor(charStep * .5 + .5);\n\n\t\t\t\t// invert y and shift by 1px (FF expecially needs that)\n\t\t\t\tuv.y = charStep - uv.y;\n\n\t\t\t\t// ignore points outside of character bounding box\n\t\t\t\tfloat halfCharWidth = ceil(charWidth * .5);\n\t\t\t\tif (floor(uv.x) &gt; halfCharStep + halfCharWidth ||\n\t\t\t\t\tfloor(uv.x) &lt; halfCharStep - halfCharWidth) return;\n\n\t\t\t\tuv += charId * charStep;\n\t\t\t\tuv = uv / atlasSize;\n\n\t\t\t\tvec4 color = fontColor;\n\t\t\t\tvec4 mask = texture2D(atlas, uv);\n\n\t\t\t\tfloat maskY = lightness(mask);\n\t\t\t\t// float colorY = lightness(color);\n\t\t\t\tcolor.a *= maskY;\n\t\t\t\tcolor.a *= opacity;\n\n\t\t\t\t// color.a += .1;\n\n\t\t\t\t// antialiasing, see yiq color space y-channel formula\n\t\t\t\t// color.rgb += (1. - color.rgb) * (1. - mask.rgb);\n\n\t\t\t\tgl_FragColor = color;\n\t\t\t}&quot;});return{regl:t,draw:e,atlas:{}}},T.prototype.update=function(t){var e=this;if(&quot;string&quot;==typeof t)t={text:t};else if(!t)return;null!=(t=i(t,{position:&quot;position positions coord coords coordinates&quot;,font:&quot;font fontFace fontface typeface cssFont css-font family fontFamily&quot;,fontSize:&quot;fontSize fontsize size font-size&quot;,text:&quot;text texts chars characters value values symbols&quot;,align:&quot;align alignment textAlign textbaseline&quot;,baseline:&quot;baseline textBaseline textbaseline&quot;,direction:&quot;dir direction textDirection&quot;,color:&quot;color colour fill fill-color fillColor textColor textcolor&quot;,kerning:&quot;kerning kern&quot;,range:&quot;range dataBox&quot;,viewport:&quot;vp viewport viewBox viewbox viewPort&quot;,opacity:&quot;opacity alpha transparency visible visibility opaque&quot;,offset:&quot;offset positionOffset padding shift indent indentation&quot;},!0)).opacity&amp;&amp;(Array.isArray(t.opacity)?this.opacity=t.opacity.map((function(t){return parseFloat(t)})):this.opacity=parseFloat(t.opacity)),null!=t.viewport&amp;&amp;(this.viewport=f(t.viewport),T.normalViewport&amp;&amp;(this.viewport.y=this.canvas.height-this.viewport.y-this.viewport.height),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null==this.viewport&amp;&amp;(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null!=t.kerning&amp;&amp;(this.kerning=t.kerning),null!=t.offset&amp;&amp;(&quot;number&quot;==typeof t.offset&amp;&amp;(t.offset=[t.offset,0]),this.positionOffset=y(t.offset)),t.direction&amp;&amp;(this.direction=t.direction),t.range&amp;&amp;(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&amp;&amp;(this.scale=t.scale),t.translate&amp;&amp;(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),this.font.length||t.font||(t.font=T.baseFontSize+&quot;px sans-serif&quot;);var r,a=!1,o=!1;if(t.font&amp;&amp;(Array.isArray(t.font)?t.font:[t.font]).forEach((function(t,r){if(&quot;string&quot;==typeof t)try{t=n.parse(t)}catch(e){t=n.parse(T.baseFontSize+&quot;px &quot;+t)}else t=n.parse(n.stringify(t));var i=n.stringify({size:T.baseFontSize,family:t.family,stretch:_?t.stretch:void 0,variant:t.variant,weight:t.weight,style:t.style}),s=p(t.size),l=Math.round(s[0]*d(s[1]));if(l!==e.fontSize[r]&amp;&amp;(o=!0,e.fontSize[r]=l),!(e.font[r]&amp;&amp;i==e.font[r].baseString||(a=!0,e.font[r]=T.fonts[i],e.font[r]))){var c=t.family.join(&quot;, &quot;),u=[t.style];t.style!=t.variant&amp;&amp;u.push(t.variant),t.variant!=t.weight&amp;&amp;u.push(t.weight),_&amp;&amp;t.weight!=t.stretch&amp;&amp;u.push(t.stretch),e.font[r]={baseString:i,family:c,weight:t.weight,stretch:t.stretch,style:t.style,variant:t.variant,width:{},kerning:{},metrics:v(c,{origin:&quot;top&quot;,fontSize:T.baseFontSize,fontStyle:u.join(&quot; &quot;)})},T.fonts[i]=e.font[r]}})),(a||o)&amp;&amp;this.font.forEach((function(r,i){var a=n.stringify({size:e.fontSize[i],family:r.family,stretch:_?r.stretch:void 0,variant:r.variant,weight:r.weight,style:r.style});if(e.fontAtlas[i]=e.shader.atlas[a],!e.fontAtlas[i]){var o=r.metrics;e.shader.atlas[a]=e.fontAtlas[i]={fontString:a,step:2*Math.ceil(e.fontSize[i]*o.bottom*.5),em:e.fontSize[i],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:e.regl.texture()}}null==t.text&amp;&amp;(t.text=e.text)})),&quot;string&quot;==typeof t.text&amp;&amp;t.position&amp;&amp;t.position.length&gt;2){for(var s=Array(.5*t.position.length),h=0;h&lt;s.length;h++)s[h]=t.text;t.text=s}if(null!=t.text||a){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var b=1;b&lt;t.text.length;b++)this.textOffsets[b]=this.textOffsets[b-1]+t.text[b-1].length,this.count+=t.text[b].length,this.counts.push(t.text[b].length);this.text=t.text.join(&quot;&quot;)}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];r=[],this.font.forEach((function(t,n){T.atlasContext.font=t.baseString;for(var i=e.fontAtlas[n],a=0;a&lt;e.text.length;a++){var o=e.text.charAt(a);if(null==i.ids[o]&amp;&amp;(i.ids[o]=i.chars.length,i.chars.push(o),r.push(o)),null==t.width[o]&amp;&amp;(t.width[o]=T.atlasContext.measureText(o).width/T.baseFontSize,e.kerning)){var s=[];for(var l in t.width)s.push(l+o,o+l);m(t.kerning,g(t.family,{pairs:s}))}}}))}if(t.position)if(t.position.length&gt;2){for(var w=!t.position[0].length,k=u.mallocFloat(2*this.count),M=0,A=0;M&lt;this.counts.length;M++){var S=this.counts[M];if(w)for(var E=0;E&lt;S;E++)k[A++]=t.position[2*M],k[A++]=t.position[2*M+1];else for(var C=0;C&lt;S;C++)k[A++]=t.position[M][0],k[A++]=t.position[M][1]}this.position.call?this.position({type:&quot;float&quot;,data:k}):this.position=this.regl.buffer({type:&quot;float&quot;,data:k}),u.freeFloat(k)}else this.position.destroy&amp;&amp;this.position.destroy(),this.position={constant:t.position};if(t.text||a){var L=u.mallocUint8(this.count),I=u.mallocFloat(2*this.count);this.textWidth=[];for(var P=0,z=0;P&lt;this.counts.length;P++){for(var O=this.counts[P],D=this.font[P]||this.font[0],R=this.fontAtlas[P]||this.fontAtlas[0],F=0;F&lt;O;F++){var B=this.text.charAt(z),N=this.text.charAt(z-1);if(L[z]=R.ids[B],I[2*z]=D.width[B],F){var j=I[2*z-2],U=I[2*z],V=I[2*z-1]+.5*j+.5*U;if(this.kerning){var q=D.kerning[N+B];q&amp;&amp;(V+=.001*q)}I[2*z+1]=V}else I[2*z+1]=.5*I[2*z];z++}this.textWidth.push(I.length?.5*I[2*z-2]+I[2*z-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:L,type:&quot;uint8&quot;,usage:&quot;stream&quot;}),this.sizeBuffer({data:I,type:&quot;float&quot;,usage:&quot;stream&quot;}),u.freeUint8(L),u.freeFloat(I),r.length&amp;&amp;this.font.forEach((function(t,r){var n=e.fontAtlas[r],i=n.step,a=Math.floor(T.maxAtlasSize/i),o=Math.min(a,n.chars.length),s=Math.ceil(n.chars.length/o),l=x(o*i),u=x(s*i);n.width=l,n.height=u,n.rows=s,n.cols=o,n.em&amp;&amp;n.texture({data:c({canvas:T.atlasCanvas,font:n.fontString,chars:n.chars,shape:[l,u],step:[i,i]})})}))}if(t.align&amp;&amp;(this.align=t.align,this.alignOffset=this.textWidth.map((function(t,r){var n=Array.isArray(e.align)?e.align.length&gt;1?e.align[r]:e.align[0]:e.align;if(&quot;number&quot;==typeof n)return n;switch(n){case&quot;right&quot;:case&quot;end&quot;:return-t;case&quot;center&quot;:case&quot;centre&quot;:case&quot;middle&quot;:return.5*-t}return 0}))),null==this.baseline&amp;&amp;null==t.baseline&amp;&amp;(t.baseline=0),null!=t.baseline&amp;&amp;(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map((function(t,r){var n=(e.font[r]||e.font[0]).metrics,i=0;return i+=.5*n.bottom,i+=&quot;number&quot;==typeof t?t-n.baseline:-n[t],T.normalViewport||(i*=-1),i}))),null!=t.color)if(t.color||(t.color=&quot;transparent&quot;),&quot;string&quot;!=typeof t.color&amp;&amp;isNaN(t.color)){var H;if(&quot;number&quot;==typeof t.color[0]&amp;&amp;t.color.length&gt;this.counts.length){var G=t.color.length;H=u.mallocUint8(G);for(var Y=(t.color.subarray||t.color.slice).bind(t.color),W=0;W&lt;G;W+=4)H.set(l(Y(W,W+4),&quot;uint8&quot;),W)}else{var X=t.color.length;H=u.mallocUint8(4*X);for(var Z=0;Z&lt;X;Z++)H.set(l(t.color[Z]||0,&quot;uint8&quot;),4*Z)}this.color=H}else this.color=l(t.color,&quot;uint8&quot;);if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity)if(this.color.length&gt;4||this.baselineOffset.length&gt;1||this.align&amp;&amp;this.align.length&gt;1||this.fontAtlas.length&gt;1||this.positionOffset.length&gt;2){var J=Math.max(.5*this.position.length||0,.25*this.color.length||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,.5*this.positionOffset.length||0);this.batch=Array(J);for(var K=0;K&lt;this.batch.length;K++)this.batch[K]={count:this.counts.length&gt;1?this.counts[K]:this.counts[0],offset:this.textOffsets.length&gt;1?this.textOffsets[K]:this.textOffsets[0],color:this.color?this.color.length&lt;=4?this.color:this.color.subarray(4*K,4*K+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[K]:this.opacity,baseline:null!=this.baselineOffset[K]?this.baselineOffset[K]:this.baselineOffset[0],align:this.align?null!=this.alignOffset[K]?this.alignOffset[K]:this.alignOffset[0]:0,atlas:this.fontAtlas[K]||this.fontAtlas[0],positionOffset:this.positionOffset.length&gt;2?this.positionOffset.subarray(2*K,2*K+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]},T.prototype.destroy=function(){},T.prototype.kerning=!0,T.prototype.position={constant:new Float32Array(2)},T.prototype.translate=null,T.prototype.scale=null,T.prototype.font=null,T.prototype.text=&quot;&quot;,T.prototype.positionOffset=[0,0],T.prototype.opacity=1,T.prototype.color=new Uint8Array([0,0,0,255]),T.prototype.alignOffset=[0,0],T.normalViewport=!1,T.maxAtlasSize=1024,T.atlasCanvas=document.createElement(&quot;canvas&quot;),T.atlasContext=T.atlasCanvas.getContext(&quot;2d&quot;,{alpha:!1}),T.baseFontSize=64,T.fonts={},e.exports=T},{&quot;bit-twiddle&quot;:97,&quot;color-normalize&quot;:125,&quot;css-font&quot;:144,&quot;detect-kerning&quot;:172,&quot;es6-weak-map&quot;:233,&quot;flatten-vertex-data&quot;:244,&quot;font-atlas&quot;:245,&quot;font-measure&quot;:246,&quot;gl-util/context&quot;:354,&quot;is-plain-obj&quot;:469,&quot;object-assign&quot;:499,&quot;parse-rect&quot;:504,&quot;parse-unit&quot;:506,&quot;pick-by-alias&quot;:511,regl:540,&quot;to-px&quot;:578,&quot;typedarray-pool&quot;:595}],353:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ndarray&quot;),i=t(&quot;ndarray-ops&quot;),a=t(&quot;typedarray-pool&quot;);e.exports=function(t){if(arguments.length&lt;=1)throw new Error(&quot;gl-texture2d: Missing arguments for texture2d constructor&quot;);o||c(t);if(&quot;number&quot;==typeof arguments[1])return v(t,arguments[1],arguments[2],arguments[3]||t.RGBA,arguments[4]||t.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return v(t,0|arguments[1][0],0|arguments[1][1],arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(&quot;object&quot;==typeof arguments[1]){var e=arguments[1],r=u(e)?e:e.raw;if(r)return y(t,r,0|e.width,0|e.height,arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(e.shape&amp;&amp;e.data&amp;&amp;e.stride)return x(t,e)}throw new Error(&quot;gl-texture2d: Invalid arguments for texture2d constructor&quot;)};var o=null,s=null,l=null;function c(t){o=[t.LINEAR,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_NEAREST],s=[t.NEAREST,t.LINEAR,t.NEAREST_MIPMAP_NEAREST,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_LINEAR],l=[t.REPEAT,t.CLAMP_TO_EDGE,t.MIRRORED_REPEAT]}function u(t){return&quot;undefined&quot;!=typeof HTMLCanvasElement&amp;&amp;t instanceof HTMLCanvasElement||&quot;undefined&quot;!=typeof HTMLImageElement&amp;&amp;t instanceof HTMLImageElement||&quot;undefined&quot;!=typeof HTMLVideoElement&amp;&amp;t instanceof HTMLVideoElement||&quot;undefined&quot;!=typeof ImageData&amp;&amp;t instanceof ImageData}var f=function(t,e){i.muls(t,e,255)};function h(t,e,r){var n=t.gl,i=n.getParameter(n.MAX_TEXTURE_SIZE);if(e&lt;0||e&gt;i||r&lt;0||r&gt;i)throw new Error(&quot;gl-texture2d: Invalid texture size&quot;);return t._shape=[e,r],t.bind(),n.texImage2D(n.TEXTURE_2D,0,t.format,e,r,0,t.format,t.type,null),t._mipLevels=[0],t}function p(t,e,r,n,i,a){this.gl=t,this.handle=e,this.format=i,this.type=a,this._shape=[r,n],this._mipLevels=[0],this._magFilter=t.NEAREST,this._minFilter=t.NEAREST,this._wrapS=t.CLAMP_TO_EDGE,this._wrapT=t.CLAMP_TO_EDGE,this._anisoSamples=1;var o=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return o._wrapS},set:function(t){return o.wrapS=t}},{get:function(){return o._wrapT},set:function(t){return o.wrapT=t}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return o._shape[0]},set:function(t){return o.width=t}},{get:function(){return o._shape[1]},set:function(t){return o.height=t}}]),this._shapeVector=l}var d=p.prototype;function g(t,e){return 3===t.length?1===e[2]&amp;&amp;e[1]===t[0]*t[2]&amp;&amp;e[0]===t[2]:1===e[0]&amp;&amp;e[1]===t[0]}function m(t){var e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),e}function v(t,e,r,n,i){var a=t.getParameter(t.MAX_TEXTURE_SIZE);if(e&lt;0||e&gt;a||r&lt;0||r&gt;a)throw new Error(&quot;gl-texture2d: Invalid texture shape&quot;);if(i===t.FLOAT&amp;&amp;!t.getExtension(&quot;OES_texture_float&quot;))throw new Error(&quot;gl-texture2d: Floating point textures not supported on this platform&quot;);var o=m(t);return t.texImage2D(t.TEXTURE_2D,0,n,e,r,0,n,i,null),new p(t,o,e,r,n,i)}function y(t,e,r,n,i,a){var o=m(t);return t.texImage2D(t.TEXTURE_2D,0,i,i,a,e),new p(t,o,r,n,i,a)}function x(t,e){var r=e.dtype,o=e.shape.slice(),s=t.getParameter(t.MAX_TEXTURE_SIZE);if(o[0]&lt;0||o[0]&gt;s||o[1]&lt;0||o[1]&gt;s)throw new Error(&quot;gl-texture2d: Invalid texture size&quot;);var l=g(o,e.stride.slice()),c=0;&quot;float32&quot;===r?c=t.FLOAT:&quot;float64&quot;===r?(c=t.FLOAT,l=!1,r=&quot;float32&quot;):&quot;uint8&quot;===r?c=t.UNSIGNED_BYTE:(c=t.UNSIGNED_BYTE,l=!1,r=&quot;uint8&quot;);var u,h,d=0;if(2===o.length)d=t.LUMINANCE,o=[o[0],o[1],1],e=n(e.data,o,[e.stride[0],e.stride[1],1],e.offset);else{if(3!==o.length)throw new Error(&quot;gl-texture2d: Invalid shape for texture&quot;);if(1===o[2])d=t.ALPHA;else if(2===o[2])d=t.LUMINANCE_ALPHA;else if(3===o[2])d=t.RGB;else{if(4!==o[2])throw new Error(&quot;gl-texture2d: Invalid shape for pixel coords&quot;);d=t.RGBA}}c!==t.FLOAT||t.getExtension(&quot;OES_texture_float&quot;)||(c=t.UNSIGNED_BYTE,l=!1);var v=e.size;if(l)u=0===e.offset&amp;&amp;e.data.length===v?e.data:e.data.subarray(e.offset,e.offset+v);else{var y=[o[2],o[2]*o[0],1];h=a.malloc(v,r);var x=n(h,o,y,0);&quot;float32&quot;!==r&amp;&amp;&quot;float64&quot;!==r||c!==t.UNSIGNED_BYTE?i.assign(x,e):f(x,e),u=h.subarray(0,v)}var b=m(t);return t.texImage2D(t.TEXTURE_2D,0,d,o[0],o[1],0,d,c,u),l||a.free(h),new p(t,b,o[0],o[1],d,c)}Object.defineProperties(d,{minFilter:{get:function(){return this._minFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&amp;&amp;o.indexOf(t)&gt;=0&amp;&amp;(e.getExtension(&quot;OES_texture_float_linear&quot;)||(t=e.NEAREST)),s.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown filter mode &quot;+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t),this._minFilter=t}},magFilter:{get:function(){return this._magFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&amp;&amp;o.indexOf(t)&gt;=0&amp;&amp;(e.getExtension(&quot;OES_texture_float_linear&quot;)||(t=e.NEAREST)),s.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown filter mode &quot;+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t),this._magFilter=t}},mipSamples:{get:function(){return this._anisoSamples},set:function(t){var e=this._anisoSamples;if(this._anisoSamples=0|Math.max(t,1),e!==this._anisoSamples){var r=this.gl.getExtension(&quot;EXT_texture_filter_anisotropic&quot;);r&amp;&amp;this.gl.texParameterf(this.gl.TEXTURE_2D,r.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(t){if(this.bind(),l.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,t),this._wrapS=t}},wrapT:{get:function(){return this._wrapT},set:function(t){if(this.bind(),l.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,t),this._wrapT=t}},wrap:{get:function(){return this._wrapVector},set:function(t){if(Array.isArray(t)||(t=[t,t]),2!==t.length)throw new Error(&quot;gl-texture2d: Must specify wrap mode for rows and columns&quot;);for(var e=0;e&lt;2;++e)if(l.indexOf(t[e])&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);this._wrapS=t[0],this._wrapT=t[1];var r=this.gl;return this.bind(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,this._wrapS),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,this._wrapT),t}},shape:{get:function(){return this._shapeVector},set:function(t){if(Array.isArray(t)){if(2!==t.length)throw new Error(&quot;gl-texture2d: Invalid texture shape&quot;)}else t=[0|t,0|t];return h(this,0|t[0],0|t[1]),[0|t[0],0|t[1]]}},width:{get:function(){return this._shape[0]},set:function(t){return h(this,t|=0,this._shape[1]),t}},height:{get:function(){return this._shape[1]},set:function(t){return t|=0,h(this,this._shape[0],t),t}}}),d.bind=function(t){var e=this.gl;return void 0!==t&amp;&amp;e.activeTexture(e.TEXTURE0+(0|t)),e.bindTexture(e.TEXTURE_2D,this.handle),void 0!==t?0|t:e.getParameter(e.ACTIVE_TEXTURE)-e.TEXTURE0},d.dispose=function(){this.gl.deleteTexture(this.handle)},d.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var t=Math.min(this._shape[0],this._shape[1]),e=0;t&gt;0;++e,t&gt;&gt;&gt;=1)this._mipLevels.indexOf(e)&lt;0&amp;&amp;this._mipLevels.push(e)},d.setPixels=function(t,e,r,o){var s=this.gl;this.bind(),Array.isArray(e)?(o=r,r=0|e[1],e=0|e[0]):(e=e||0,r=r||0),o=o||0;var l=u(t)?t:t.raw;if(l){this._mipLevels.indexOf(o)&lt;0?(s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,this.type,l),this._mipLevels.push(o)):s.texSubImage2D(s.TEXTURE_2D,o,e,r,this.format,this.type,l)}else{if(!(t.shape&amp;&amp;t.stride&amp;&amp;t.data))throw new Error(&quot;gl-texture2d: Unsupported data type&quot;);if(t.shape.length&lt;2||e+t.shape[1]&gt;this._shape[1]&gt;&gt;&gt;o||r+t.shape[0]&gt;this._shape[0]&gt;&gt;&gt;o||e&lt;0||r&lt;0)throw new Error(&quot;gl-texture2d: Texture dimensions are out of bounds&quot;);!function(t,e,r,o,s,l,c,u){var h=u.dtype,p=u.shape.slice();if(p.length&lt;2||p.length&gt;3)throw new Error(&quot;gl-texture2d: Invalid ndarray, must be 2d or 3d&quot;);var d=0,m=0,v=g(p,u.stride.slice());&quot;float32&quot;===h?d=t.FLOAT:&quot;float64&quot;===h?(d=t.FLOAT,v=!1,h=&quot;float32&quot;):&quot;uint8&quot;===h?d=t.UNSIGNED_BYTE:(d=t.UNSIGNED_BYTE,v=!1,h=&quot;uint8&quot;);if(2===p.length)m=t.LUMINANCE,p=[p[0],p[1],1],u=n(u.data,p,[u.stride[0],u.stride[1],1],u.offset);else{if(3!==p.length)throw new Error(&quot;gl-texture2d: Invalid shape for texture&quot;);if(1===p[2])m=t.ALPHA;else if(2===p[2])m=t.LUMINANCE_ALPHA;else if(3===p[2])m=t.RGB;else{if(4!==p[2])throw new Error(&quot;gl-texture2d: Invalid shape for pixel coords&quot;);m=t.RGBA}p[2]}m!==t.LUMINANCE&amp;&amp;m!==t.ALPHA||s!==t.LUMINANCE&amp;&amp;s!==t.ALPHA||(m=s);if(m!==s)throw new Error(&quot;gl-texture2d: Incompatible texture format for setPixels&quot;);var y=u.size,x=c.indexOf(o)&lt;0;x&amp;&amp;c.push(o);if(d===l&amp;&amp;v)0===u.offset&amp;&amp;u.data.length===y?x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data):x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data.subarray(u.offset,u.offset+y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data.subarray(u.offset,u.offset+y));else{var b;b=l===t.FLOAT?a.mallocFloat32(y):a.mallocUint8(y);var _=n(b,p,[p[2],p[2]*p[0],1]);d===t.FLOAT&amp;&amp;l===t.UNSIGNED_BYTE?f(_,u):i.assign(_,u),x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,b.subarray(0,y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,b.subarray(0,y)),l===t.FLOAT?a.freeFloat32(b):a.freeUint8(b)}}(s,e,r,o,this.format,this.type,this._mipLevels,t)}}},{ndarray:495,&quot;ndarray-ops&quot;:490,&quot;typedarray-pool&quot;:595}],354:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;);function i(t){if(t.container)if(t.container==document.body)document.body.style.width||(t.canvas.width=t.width||t.pixelRatio*r.innerWidth),document.body.style.height||(t.canvas.height=t.height||t.pixelRatio*r.innerHeight);else{var e=t.container.getBoundingClientRect();t.canvas.width=t.width||e.right-e.left,t.canvas.height=t.height||e.bottom-e.top}}function a(t){return&quot;function&quot;==typeof t.getContext&amp;&amp;&quot;width&quot;in t&amp;&amp;&quot;height&quot;in t}function o(){var t=document.createElement(&quot;canvas&quot;);return t.style.position=&quot;absolute&quot;,t.style.top=0,t.style.left=0,t}e.exports=function(t){var e;if(t?&quot;string&quot;==typeof t&amp;&amp;(t={container:t}):t={},a(t)?t={container:t}:t=&quot;string&quot;==typeof(e=t).nodeName&amp;&amp;&quot;function&quot;==typeof e.appendChild&amp;&amp;&quot;function&quot;==typeof e.getBoundingClientRect?{container:t}:function(t){return&quot;function&quot;==typeof t.drawArrays||&quot;function&quot;==typeof t.drawElements}(t)?{gl:t}:n(t,{container:&quot;container target element el canvas holder parent parentNode wrapper use ref root node&quot;,gl:&quot;gl context webgl glContext&quot;,attrs:&quot;attributes attrs contextAttributes&quot;,pixelRatio:&quot;pixelRatio pxRatio px ratio pxratio pixelratio&quot;,width:&quot;w width&quot;,height:&quot;h height&quot;},!0),t.pixelRatio||(t.pixelRatio=r.pixelRatio||1),t.gl)return t.gl;if(t.canvas&amp;&amp;(t.container=t.canvas.parentNode),t.container){if(&quot;string&quot;==typeof t.container){var s=document.querySelector(t.container);if(!s)throw Error(&quot;Element &quot;+t.container+&quot; is not found&quot;);t.container=s}a(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=o(),t.container.appendChild(t.canvas),i(t))}else if(!t.canvas){if(&quot;undefined&quot;==typeof document)throw Error(&quot;Not DOM environment. Use headless-gl.&quot;);t.container=document.body||document.documentElement,t.canvas=o(),t.container.appendChild(t.canvas),i(t)}if(!t.gl)try{t.gl=t.canvas.getContext(&quot;webgl&quot;,t.attrs)}catch(e){try{t.gl=t.canvas.getContext(&quot;experimental-webgl&quot;,t.attrs)}catch(e){t.gl=t.canvas.getContext(&quot;webgl-experimental&quot;,t.attrs)}}return t.gl}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;pick-by-alias&quot;:511}],355:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){e?e.bind():t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null);var n=0|t.getParameter(t.MAX_VERTEX_ATTRIBS);if(r){if(r.length&gt;n)throw new Error(&quot;gl-vao: Too many vertex attributes&quot;);for(var i=0;i&lt;r.length;++i){var a=r[i];if(a.buffer){var o=a.buffer,s=a.size||4,l=a.type||t.FLOAT,c=!!a.normalized,u=a.stride||0,f=a.offset||0;o.bind(),t.enableVertexAttribArray(i),t.vertexAttribPointer(i,s,l,c,u,f)}else{if(&quot;number&quot;==typeof a)t.vertexAttrib1f(i,a);else if(1===a.length)t.vertexAttrib1f(i,a[0]);else if(2===a.length)t.vertexAttrib2f(i,a[0],a[1]);else if(3===a.length)t.vertexAttrib3f(i,a[0],a[1],a[2]);else{if(4!==a.length)throw new Error(&quot;gl-vao: Invalid vertex attribute&quot;);t.vertexAttrib4f(i,a[0],a[1],a[2],a[3])}t.disableVertexAttribArray(i)}}for(;i&lt;n;++i)t.disableVertexAttribArray(i)}else{t.bindBuffer(t.ARRAY_BUFFER,null);for(i=0;i&lt;n;++i)t.disableVertexAttribArray(i)}}},{}],356:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./do-bind.js&quot;);function i(t){this.gl=t,this._elements=null,this._attributes=null,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(){n(this.gl,this._elements,this._attributes)},i.prototype.update=function(t,e,r){this._elements=e,this._attributes=t,this._elementsType=r||this.gl.UNSIGNED_SHORT},i.prototype.dispose=function(){},i.prototype.unbind=function(){},i.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._elements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t){return new i(t)}},{&quot;./do-bind.js&quot;:355}],357:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./do-bind.js&quot;);function i(t,e,r,n,i,a){this.location=t,this.dimension=e,this.a=r,this.b=n,this.c=i,this.d=a}function a(t,e,r){this.gl=t,this._ext=e,this.handle=r,this._attribs=[],this._useElements=!1,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(t){switch(this.dimension){case 1:t.vertexAttrib1f(this.location,this.a);break;case 2:t.vertexAttrib2f(this.location,this.a,this.b);break;case 3:t.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:t.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d)}},a.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var t=0;t&lt;this._attribs.length;++t)this._attribs[t].bind(this.gl)},a.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},a.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},a.prototype.update=function(t,e,r){if(this.bind(),n(this.gl,e,t),this.unbind(),this._attribs.length=0,t)for(var a=0;a&lt;t.length;++a){var o=t[a];&quot;number&quot;==typeof o?this._attribs.push(new i(a,1,o)):Array.isArray(o)&amp;&amp;this._attribs.push(new i(a,o.length,o[0],o[1],o[2],o[3]))}this._useElements=!!e,this._elementsType=r||this.gl.UNSIGNED_SHORT},a.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._useElements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t,e){return new a(t,e,e.createVertexArrayOES())}},{&quot;./do-bind.js&quot;:355}],358:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/vao-native.js&quot;),i=t(&quot;./lib/vao-emulated.js&quot;);function a(t){this.bindVertexArrayOES=t.bindVertexArray.bind(t),this.createVertexArrayOES=t.createVertexArray.bind(t),this.deleteVertexArrayOES=t.deleteVertexArray.bind(t)}e.exports=function(t,e,r,o){var s,l=t.createVertexArray?new a(t):t.getExtension(&quot;OES_vertex_array_object&quot;);return(s=l?n(t,l):i(t)).update(e,r,o),s}},{&quot;./lib/vao-emulated.js&quot;:356,&quot;./lib/vao-native.js&quot;:357}],359:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}},{}],360:[function(t,e,r){e.exports=function(t,e){var r=n(t[0],t[1],t[2]),o=n(e[0],e[1],e[2]);i(r,r),i(o,o);var s=a(r,o);return s&gt;1?0:Math.acos(s)};var n=t(&quot;./fromValues&quot;),i=t(&quot;./normalize&quot;),a=t(&quot;./dot&quot;)},{&quot;./dot&quot;:370,&quot;./fromValues&quot;:376,&quot;./normalize&quot;:387}],361:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}},{}],362:[function(t,e,r){e.exports=function(t){var e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}},{}],363:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},{}],364:[function(t,e,r){e.exports=function(){var t=new Float32Array(3);return t[0]=0,t[1]=0,t[2]=0,t}},{}],365:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t}},{}],366:[function(t,e,r){e.exports=t(&quot;./distance&quot;)},{&quot;./distance&quot;:367}],367:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}},{}],368:[function(t,e,r){e.exports=t(&quot;./divide&quot;)},{&quot;./divide&quot;:369}],369:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}},{}],370:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}},{}],371:[function(t,e,r){e.exports=1e-6},{}],372:[function(t,e,r){e.exports=function(t,e){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(r-o)&lt;=n*Math.max(1,Math.abs(r),Math.abs(o))&amp;&amp;Math.abs(i-s)&lt;=n*Math.max(1,Math.abs(i),Math.abs(s))&amp;&amp;Math.abs(a-l)&lt;=n*Math.max(1,Math.abs(a),Math.abs(l))};var n=t(&quot;./epsilon&quot;)},{&quot;./epsilon&quot;:371}],373:[function(t,e,r){e.exports=function(t,e){return t[0]===e[0]&amp;&amp;t[1]===e[1]&amp;&amp;t[2]===e[2]}},{}],374:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}},{}],375:[function(t,e,r){e.exports=function(t,e,r,i,a,o){var s,l;e||(e=3);r||(r=0);l=i?Math.min(i*e+r,t.length):t.length;for(s=r;s&lt;l;s+=e)n[0]=t[s],n[1]=t[s+1],n[2]=t[s+2],a(n,n,o),t[s]=n[0],t[s+1]=n[1],t[s+2]=n[2];return t};var n=t(&quot;./create&quot;)()},{&quot;./create&quot;:364}],376:[function(t,e,r){e.exports=function(t,e,r){var n=new Float32Array(3);return n[0]=t,n[1]=e,n[2]=r,n}},{}],377:[function(t,e,r){e.exports={EPSILON:t(&quot;./epsilon&quot;),create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),angle:t(&quot;./angle&quot;),fromValues:t(&quot;./fromValues&quot;),copy:t(&quot;./copy&quot;),set:t(&quot;./set&quot;),equals:t(&quot;./equals&quot;),exactEquals:t(&quot;./exactEquals&quot;),add:t(&quot;./add&quot;),subtract:t(&quot;./subtract&quot;),sub:t(&quot;./sub&quot;),multiply:t(&quot;./multiply&quot;),mul:t(&quot;./mul&quot;),divide:t(&quot;./divide&quot;),div:t(&quot;./div&quot;),min:t(&quot;./min&quot;),max:t(&quot;./max&quot;),floor:t(&quot;./floor&quot;),ceil:t(&quot;./ceil&quot;),round:t(&quot;./round&quot;),scale:t(&quot;./scale&quot;),scaleAndAdd:t(&quot;./scaleAndAdd&quot;),distance:t(&quot;./distance&quot;),dist:t(&quot;./dist&quot;),squaredDistance:t(&quot;./squaredDistance&quot;),sqrDist:t(&quot;./sqrDist&quot;),length:t(&quot;./length&quot;),len:t(&quot;./len&quot;),squaredLength:t(&quot;./squaredLength&quot;),sqrLen:t(&quot;./sqrLen&quot;),negate:t(&quot;./negate&quot;),inverse:t(&quot;./inverse&quot;),normalize:t(&quot;./normalize&quot;),dot:t(&quot;./dot&quot;),cross:t(&quot;./cross&quot;),lerp:t(&quot;./lerp&quot;),random:t(&quot;./random&quot;),transformMat4:t(&quot;./transformMat4&quot;),transformMat3:t(&quot;./transformMat3&quot;),transformQuat:t(&quot;./transformQuat&quot;),rotateX:t(&quot;./rotateX&quot;),rotateY:t(&quot;./rotateY&quot;),rotateZ:t(&quot;./rotateZ&quot;),forEach:t(&quot;./forEach&quot;)}},{&quot;./add&quot;:359,&quot;./angle&quot;:360,&quot;./ceil&quot;:361,&quot;./clone&quot;:362,&quot;./copy&quot;:363,&quot;./create&quot;:364,&quot;./cross&quot;:365,&quot;./dist&quot;:366,&quot;./distance&quot;:367,&quot;./div&quot;:368,&quot;./divide&quot;:369,&quot;./dot&quot;:370,&quot;./epsilon&quot;:371,&quot;./equals&quot;:372,&quot;./exactEquals&quot;:373,&quot;./floor&quot;:374,&quot;./forEach&quot;:375,&quot;./fromValues&quot;:376,&quot;./inverse&quot;:378,&quot;./len&quot;:379,&quot;./length&quot;:380,&quot;./lerp&quot;:381,&quot;./max&quot;:382,&quot;./min&quot;:383,&quot;./mul&quot;:384,&quot;./multiply&quot;:385,&quot;./negate&quot;:386,&quot;./normalize&quot;:387,&quot;./random&quot;:388,&quot;./rotateX&quot;:389,&quot;./rotateY&quot;:390,&quot;./rotateZ&quot;:391,&quot;./round&quot;:392,&quot;./scale&quot;:393,&quot;./scaleAndAdd&quot;:394,&quot;./set&quot;:395,&quot;./sqrDist&quot;:396,&quot;./sqrLen&quot;:397,&quot;./squaredDistance&quot;:398,&quot;./squaredLength&quot;:399,&quot;./sub&quot;:400,&quot;./subtract&quot;:401,&quot;./transformMat3&quot;:402,&quot;./transformMat4&quot;:403,&quot;./transformQuat&quot;:404}],378:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}},{}],379:[function(t,e,r){e.exports=t(&quot;./length&quot;)},{&quot;./length&quot;:380}],380:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}},{}],381:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t}},{}],382:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}},{}],383:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}},{}],384:[function(t,e,r){e.exports=t(&quot;./multiply&quot;)},{&quot;./multiply&quot;:385}],385:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}},{}],386:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}},{}],387:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;a&gt;0&amp;&amp;(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a);return t}},{}],388:[function(t,e,r){e.exports=function(t,e){e=e||1;var r=2*Math.random()*Math.PI,n=2*Math.random()-1,i=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=n*e,t}},{}],389:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[1],a=r[2],o=e[1]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=e[0],t[1]=i+o*c-s*l,t[2]=a+o*l+s*c,t}},{}],390:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[2],o=e[0]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+s*l+o*c,t[1]=e[1],t[2]=a+s*c-o*l,t}},{}],391:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[1],o=e[0]-i,s=e[1]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+o*c-s*l,t[1]=a+o*l+s*c,t[2]=e[2],t}},{}],392:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}},{}],393:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}},{}],394:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}},{}],395:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}},{}],396:[function(t,e,r){e.exports=t(&quot;./squaredDistance&quot;)},{&quot;./squaredDistance&quot;:398}],397:[function(t,e,r){e.exports=t(&quot;./squaredLength&quot;)},{&quot;./squaredLength&quot;:399}],398:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}},{}],399:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}},{}],400:[function(t,e,r){e.exports=t(&quot;./subtract&quot;)},{&quot;./subtract&quot;:401}],401:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}},{}],402:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t}},{}],403:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,t[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,t[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,t}},{}],404:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t}},{}],405:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}},{}],406:[function(t,e,r){e.exports=function(t){var e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}},{}],407:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},{}],408:[function(t,e,r){e.exports=function(){var t=new Float32Array(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}},{}],409:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(r*r+n*n+i*i+a*a)}},{}],410:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}},{}],411:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}},{}],412:[function(t,e,r){e.exports=function(t,e,r,n){var i=new Float32Array(4);return i[0]=t,i[1]=e,i[2]=r,i[3]=n,i}},{}],413:[function(t,e,r){e.exports={create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),fromValues:t(&quot;./fromValues&quot;),copy:t(&quot;./copy&quot;),set:t(&quot;./set&quot;),add:t(&quot;./add&quot;),subtract:t(&quot;./subtract&quot;),multiply:t(&quot;./multiply&quot;),divide:t(&quot;./divide&quot;),min:t(&quot;./min&quot;),max:t(&quot;./max&quot;),scale:t(&quot;./scale&quot;),scaleAndAdd:t(&quot;./scaleAndAdd&quot;),distance:t(&quot;./distance&quot;),squaredDistance:t(&quot;./squaredDistance&quot;),length:t(&quot;./length&quot;),squaredLength:t(&quot;./squaredLength&quot;),negate:t(&quot;./negate&quot;),inverse:t(&quot;./inverse&quot;),normalize:t(&quot;./normalize&quot;),dot:t(&quot;./dot&quot;),lerp:t(&quot;./lerp&quot;),random:t(&quot;./random&quot;),transformMat4:t(&quot;./transformMat4&quot;),transformQuat:t(&quot;./transformQuat&quot;)}},{&quot;./add&quot;:405,&quot;./clone&quot;:406,&quot;./copy&quot;:407,&quot;./create&quot;:408,&quot;./distance&quot;:409,&quot;./divide&quot;:410,&quot;./dot&quot;:411,&quot;./fromValues&quot;:412,&quot;./inverse&quot;:414,&quot;./length&quot;:415,&quot;./lerp&quot;:416,&quot;./max&quot;:417,&quot;./min&quot;:418,&quot;./multiply&quot;:419,&quot;./negate&quot;:420,&quot;./normalize&quot;:421,&quot;./random&quot;:422,&quot;./scale&quot;:423,&quot;./scaleAndAdd&quot;:424,&quot;./set&quot;:425,&quot;./squaredDistance&quot;:426,&quot;./squaredLength&quot;:427,&quot;./subtract&quot;:428,&quot;./transformMat4&quot;:429,&quot;./transformQuat&quot;:430}],414:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}},{}],415:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return Math.sqrt(e*e+r*r+n*n+i*i)}},{}],416:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t}},{}],417:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}},{}],418:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}},{}],419:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}},{}],420:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}},{}],421:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a;o&gt;0&amp;&amp;(o=1/Math.sqrt(o),t[0]=r*o,t[1]=n*o,t[2]=i*o,t[3]=a*o);return t}},{}],422:[function(t,e,r){var n=t(&quot;./normalize&quot;),i=t(&quot;./scale&quot;);e.exports=function(t,e){return e=e||1,t[0]=Math.random(),t[1]=Math.random(),t[2]=Math.random(),t[3]=Math.random(),n(t,t),i(t,t,e),t}},{&quot;./normalize&quot;:421,&quot;./scale&quot;:423}],423:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}},{}],424:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t}},{}],425:[function(t,e,r){e.exports=function(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}},{}],426:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return r*r+n*n+i*i+a*a}},{}],427:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+i*i}},{}],428:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}},{}],429:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}},{}],430:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t[3]=e[3],t}},{}],431:[function(t,e,r){var n=t(&quot;glsl-tokenizer&quot;),i=t(&quot;atob-lite&quot;);e.exports=function(t){for(var e=Array.isArray(t)?t:n(t),r=0;r&lt;e.length;r++){var a=e[r];if(&quot;preprocessor&quot;===a.type){var o=a.data.match(/\#define\s+SHADER_NAME(_B64)?\s+(.+)$/);if(o&amp;&amp;o[2]){var s=o[1],l=o[2];return(s?i(l):l).trim()}}}}},{&quot;atob-lite&quot;:77,&quot;glsl-tokenizer&quot;:438}],432:[function(t,e,r){e.exports=function(t){var e,r,c,u=0,f=0,h=999,p=[],d=[],g=1,m=0,v=0,y=!1,x=!1,b=&quot;&quot;,_=a,w=n;&quot;300 es&quot;===(t=t||{}).version&amp;&amp;(_=s,w=o);var T={},k={};for(u=0;u&lt;_.length;u++)T[_[u]]=!0;for(u=0;u&lt;w.length;u++)k[w[u]]=!0;return function(t){return d=[],null!==t?function(t){u=0,t.toString&amp;&amp;(t=t.toString());var r;b+=t.replace(/\r\n/g,&quot;\n&quot;),c=b.length;for(;e=b[u],u&lt;c;){switch(r=u,h){case 0:u=C();break;case 1:case 2:u=E();break;case 3:u=L();break;case 4:u=z();break;case 11:u=P();break;case 5:u=O();break;case 9999:u=D();break;case 9:u=S();break;case 999:u=A()}if(r!==u)switch(b[r]){case&quot;\n&quot;:m=0,++g;break;default:++m}}return f+=u,b=b.slice(u),d}(t):function(t){p.length&amp;&amp;M(p.join(&quot;&quot;));return h=10,M(&quot;(eof)&quot;),d}()};function M(t){t.length&amp;&amp;d.push({type:l[h],data:t,position:v,line:g,column:m})}function A(){return p=p.length?[]:p,&quot;/&quot;===r&amp;&amp;&quot;*&quot;===e?(v=f+u-1,h=0,r=e,u+1):&quot;/&quot;===r&amp;&amp;&quot;/&quot;===e?(v=f+u-1,h=1,r=e,u+1):&quot;#&quot;===e?(h=2,v=f+u,u):/\s/.test(e)?(h=9,v=f+u,u):(y=/\d/.test(e),x=/[^\w_]/.test(e),v=f+u,h=y?4:x?3:9999,u)}function S(){return/[^\s]/g.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function E(){return&quot;\r&quot;!==e&amp;&amp;&quot;\n&quot;!==e||&quot;\\&quot;===r?(p.push(e),r=e,u+1):(M(p.join(&quot;&quot;)),h=999,u)}function C(){return&quot;/&quot;===e&amp;&amp;&quot;*&quot;===r?(p.push(e),M(p.join(&quot;&quot;)),h=999,u+1):(p.push(e),r=e,u+1)}function L(){if(&quot;.&quot;===r&amp;&amp;/\d/.test(e))return h=5,u;if(&quot;/&quot;===r&amp;&amp;&quot;*&quot;===e)return h=0,u;if(&quot;/&quot;===r&amp;&amp;&quot;/&quot;===e)return h=1,u;if(&quot;.&quot;===e&amp;&amp;p.length){for(;I(p););return h=5,u}if(&quot;;&quot;===e||&quot;)&quot;===e||&quot;(&quot;===e){if(p.length)for(;I(p););return M(e),h=999,u+1}var t=2===p.length&amp;&amp;&quot;=&quot;!==e;if(/[\w_\d\s]/.test(e)||t){for(;I(p););return h=999,u}return p.push(e),r=e,u+1}function I(t){for(var e,r,n=0;;){if(e=i.indexOf(t.slice(0,t.length+n).join(&quot;&quot;)),r=i[e],-1===e){if(n--+t.length&gt;0)continue;r=t.slice(0,1).join(&quot;&quot;)}return M(r),v+=r.length,(p=p.slice(r.length)).length}}function P(){return/[^a-fA-F0-9]/.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function z(){return&quot;.&quot;===e||/[eE]/.test(e)?(p.push(e),h=5,r=e,u+1):&quot;x&quot;===e&amp;&amp;1===p.length&amp;&amp;&quot;0&quot;===p[0]?(h=11,p.push(e),r=e,u+1):/[^\d]/.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function O(){return&quot;f&quot;===e&amp;&amp;(p.push(e),r=e,u+=1),/[eE]/.test(e)?(p.push(e),r=e,u+1):(&quot;-&quot;!==e&amp;&amp;&quot;+&quot;!==e||!/[eE]/.test(r))&amp;&amp;/[^\d]/.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function D(){if(/[^\d\w_]/.test(e)){var t=p.join(&quot;&quot;);return h=k[t]?8:T[t]?7:6,M(p.join(&quot;&quot;)),h=999,u}return p.push(e),r=e,u+1}};var n=t(&quot;./lib/literals&quot;),i=t(&quot;./lib/operators&quot;),a=t(&quot;./lib/builtins&quot;),o=t(&quot;./lib/literals-300es&quot;),s=t(&quot;./lib/builtins-300es&quot;),l=[&quot;block-comment&quot;,&quot;line-comment&quot;,&quot;preprocessor&quot;,&quot;operator&quot;,&quot;integer&quot;,&quot;float&quot;,&quot;ident&quot;,&quot;builtin&quot;,&quot;keyword&quot;,&quot;whitespace&quot;,&quot;eof&quot;,&quot;integer&quot;]},{&quot;./lib/builtins&quot;:434,&quot;./lib/builtins-300es&quot;:433,&quot;./lib/literals&quot;:436,&quot;./lib/literals-300es&quot;:435,&quot;./lib/operators&quot;:437}],433:[function(t,e,r){var n=t(&quot;./builtins&quot;);n=n.slice().filter((function(t){return!/^(gl\_|texture)/.test(t)})),e.exports=n.concat([&quot;gl_VertexID&quot;,&quot;gl_InstanceID&quot;,&quot;gl_Position&quot;,&quot;gl_PointSize&quot;,&quot;gl_FragCoord&quot;,&quot;gl_FrontFacing&quot;,&quot;gl_FragDepth&quot;,&quot;gl_PointCoord&quot;,&quot;gl_MaxVertexAttribs&quot;,&quot;gl_MaxVertexUniformVectors&quot;,&quot;gl_MaxVertexOutputVectors&quot;,&quot;gl_MaxFragmentInputVectors&quot;,&quot;gl_MaxVertexTextureImageUnits&quot;,&quot;gl_MaxCombinedTextureImageUnits&quot;,&quot;gl_MaxTextureImageUnits&quot;,&quot;gl_MaxFragmentUniformVectors&quot;,&quot;gl_MaxDrawBuffers&quot;,&quot;gl_MinProgramTexelOffset&quot;,&quot;gl_MaxProgramTexelOffset&quot;,&quot;gl_DepthRangeParameters&quot;,&quot;gl_DepthRange&quot;,&quot;trunc&quot;,&quot;round&quot;,&quot;roundEven&quot;,&quot;isnan&quot;,&quot;isinf&quot;,&quot;floatBitsToInt&quot;,&quot;floatBitsToUint&quot;,&quot;intBitsToFloat&quot;,&quot;uintBitsToFloat&quot;,&quot;packSnorm2x16&quot;,&quot;unpackSnorm2x16&quot;,&quot;packUnorm2x16&quot;,&quot;unpackUnorm2x16&quot;,&quot;packHalf2x16&quot;,&quot;unpackHalf2x16&quot;,&quot;outerProduct&quot;,&quot;transpose&quot;,&quot;determinant&quot;,&quot;inverse&quot;,&quot;texture&quot;,&quot;textureSize&quot;,&quot;textureProj&quot;,&quot;textureLod&quot;,&quot;textureOffset&quot;,&quot;texelFetch&quot;,&quot;texelFetchOffset&quot;,&quot;textureProjOffset&quot;,&quot;textureLodOffset&quot;,&quot;textureProjLod&quot;,&quot;textureProjLodOffset&quot;,&quot;textureGrad&quot;,&quot;textureGradOffset&quot;,&quot;textureProjGrad&quot;,&quot;textureProjGradOffset&quot;])},{&quot;./builtins&quot;:434}],434:[function(t,e,r){e.exports=[&quot;abs&quot;,&quot;acos&quot;,&quot;all&quot;,&quot;any&quot;,&quot;asin&quot;,&quot;atan&quot;,&quot;ceil&quot;,&quot;clamp&quot;,&quot;cos&quot;,&quot;cross&quot;,&quot;dFdx&quot;,&quot;dFdy&quot;,&quot;degrees&quot;,&quot;distance&quot;,&quot;dot&quot;,&quot;equal&quot;,&quot;exp&quot;,&quot;exp2&quot;,&quot;faceforward&quot;,&quot;floor&quot;,&quot;fract&quot;,&quot;gl_BackColor&quot;,&quot;gl_BackLightModelProduct&quot;,&quot;gl_BackLightProduct&quot;,&quot;gl_BackMaterial&quot;,&quot;gl_BackSecondaryColor&quot;,&quot;gl_ClipPlane&quot;,&quot;gl_ClipVertex&quot;,&quot;gl_Color&quot;,&quot;gl_DepthRange&quot;,&quot;gl_DepthRangeParameters&quot;,&quot;gl_EyePlaneQ&quot;,&quot;gl_EyePlaneR&quot;,&quot;gl_EyePlaneS&quot;,&quot;gl_EyePlaneT&quot;,&quot;gl_Fog&quot;,&quot;gl_FogCoord&quot;,&quot;gl_FogFragCoord&quot;,&quot;gl_FogParameters&quot;,&quot;gl_FragColor&quot;,&quot;gl_FragCoord&quot;,&quot;gl_FragData&quot;,&quot;gl_FragDepth&quot;,&quot;gl_FragDepthEXT&quot;,&quot;gl_FrontColor&quot;,&quot;gl_FrontFacing&quot;,&quot;gl_FrontLightModelProduct&quot;,&quot;gl_FrontLightProduct&quot;,&quot;gl_FrontMaterial&quot;,&quot;gl_FrontSecondaryColor&quot;,&quot;gl_LightModel&quot;,&quot;gl_LightModelParameters&quot;,&quot;gl_LightModelProducts&quot;,&quot;gl_LightProducts&quot;,&quot;gl_LightSource&quot;,&quot;gl_LightSourceParameters&quot;,&quot;gl_MaterialParameters&quot;,&quot;gl_MaxClipPlanes&quot;,&quot;gl_MaxCombinedTextureImageUnits&quot;,&quot;gl_MaxDrawBuffers&quot;,&quot;gl_MaxFragmentUniformComponents&quot;,&quot;gl_MaxLights&quot;,&quot;gl_MaxTextureCoords&quot;,&quot;gl_MaxTextureImageUnits&quot;,&quot;gl_MaxTextureUnits&quot;,&quot;gl_MaxVaryingFloats&quot;,&quot;gl_MaxVertexAttribs&quot;,&quot;gl_MaxVertexTextureImageUnits&quot;,&quot;gl_MaxVertexUniformComponents&quot;,&quot;gl_ModelViewMatrix&quot;,&quot;gl_ModelViewMatrixInverse&quot;,&quot;gl_ModelViewMatrixInverseTranspose&quot;,&quot;gl_ModelViewMatrixTranspose&quot;,&quot;gl_ModelViewProjectionMatrix&quot;,&quot;gl_ModelViewProjectionMatrixInverse&quot;,&quot;gl_ModelViewProjectionMatrixInverseTranspose&quot;,&quot;gl_ModelViewProjectionMatrixTranspose&quot;,&quot;gl_MultiTexCoord0&quot;,&quot;gl_MultiTexCoord1&quot;,&quot;gl_MultiTexCoord2&quot;,&quot;gl_MultiTexCoord3&quot;,&quot;gl_MultiTexCoord4&quot;,&quot;gl_MultiTexCoord5&quot;,&quot;gl_MultiTexCoord6&quot;,&quot;gl_MultiTexCoord7&quot;,&quot;gl_Normal&quot;,&quot;gl_NormalMatrix&quot;,&quot;gl_NormalScale&quot;,&quot;gl_ObjectPlaneQ&quot;,&quot;gl_ObjectPlaneR&quot;,&quot;gl_ObjectPlaneS&quot;,&quot;gl_ObjectPlaneT&quot;,&quot;gl_Point&quot;,&quot;gl_PointCoord&quot;,&quot;gl_PointParameters&quot;,&quot;gl_PointSize&quot;,&quot;gl_Position&quot;,&quot;gl_ProjectionMatrix&quot;,&quot;gl_ProjectionMatrixInverse&quot;,&quot;gl_ProjectionMatrixInverseTranspose&quot;,&quot;gl_ProjectionMatrixTranspose&quot;,&quot;gl_SecondaryColor&quot;,&quot;gl_TexCoord&quot;,&quot;gl_TextureEnvColor&quot;,&quot;gl_TextureMatrix&quot;,&quot;gl_TextureMatrixInverse&quot;,&quot;gl_TextureMatrixInverseTranspose&quot;,&quot;gl_TextureMatrixTranspose&quot;,&quot;gl_Vertex&quot;,&quot;greaterThan&quot;,&quot;greaterThanEqual&quot;,&quot;inversesqrt&quot;,&quot;length&quot;,&quot;lessThan&quot;,&quot;lessThanEqual&quot;,&quot;log&quot;,&quot;log2&quot;,&quot;matrixCompMult&quot;,&quot;max&quot;,&quot;min&quot;,&quot;mix&quot;,&quot;mod&quot;,&quot;normalize&quot;,&quot;not&quot;,&quot;notEqual&quot;,&quot;pow&quot;,&quot;radians&quot;,&quot;reflect&quot;,&quot;refract&quot;,&quot;sign&quot;,&quot;sin&quot;,&quot;smoothstep&quot;,&quot;sqrt&quot;,&quot;step&quot;,&quot;tan&quot;,&quot;texture2D&quot;,&quot;texture2DLod&quot;,&quot;texture2DProj&quot;,&quot;texture2DProjLod&quot;,&quot;textureCube&quot;,&quot;textureCubeLod&quot;,&quot;texture2DLodEXT&quot;,&quot;texture2DProjLodEXT&quot;,&quot;textureCubeLodEXT&quot;,&quot;texture2DGradEXT&quot;,&quot;texture2DProjGradEXT&quot;,&quot;textureCubeGradEXT&quot;]},{}],435:[function(t,e,r){var n=t(&quot;./literals&quot;);e.exports=n.slice().concat([&quot;layout&quot;,&quot;centroid&quot;,&quot;smooth&quot;,&quot;case&quot;,&quot;mat2x2&quot;,&quot;mat2x3&quot;,&quot;mat2x4&quot;,&quot;mat3x2&quot;,&quot;mat3x3&quot;,&quot;mat3x4&quot;,&quot;mat4x2&quot;,&quot;mat4x3&quot;,&quot;mat4x4&quot;,&quot;uvec2&quot;,&quot;uvec3&quot;,&quot;uvec4&quot;,&quot;samplerCubeShadow&quot;,&quot;sampler2DArray&quot;,&quot;sampler2DArrayShadow&quot;,&quot;isampler2D&quot;,&quot;isampler3D&quot;,&quot;isamplerCube&quot;,&quot;isampler2DArray&quot;,&quot;usampler2D&quot;,&quot;usampler3D&quot;,&quot;usamplerCube&quot;,&quot;usampler2DArray&quot;,&quot;coherent&quot;,&quot;restrict&quot;,&quot;readonly&quot;,&quot;writeonly&quot;,&quot;resource&quot;,&quot;atomic_uint&quot;,&quot;noperspective&quot;,&quot;patch&quot;,&quot;sample&quot;,&quot;subroutine&quot;,&quot;common&quot;,&quot;partition&quot;,&quot;active&quot;,&quot;filter&quot;,&quot;image1D&quot;,&quot;image2D&quot;,&quot;image3D&quot;,&quot;imageCube&quot;,&quot;iimage1D&quot;,&quot;iimage2D&quot;,&quot;iimage3D&quot;,&quot;iimageCube&quot;,&quot;uimage1D&quot;,&quot;uimage2D&quot;,&quot;uimage3D&quot;,&quot;uimageCube&quot;,&quot;image1DArray&quot;,&quot;image2DArray&quot;,&quot;iimage1DArray&quot;,&quot;iimage2DArray&quot;,&quot;uimage1DArray&quot;,&quot;uimage2DArray&quot;,&quot;image1DShadow&quot;,&quot;image2DShadow&quot;,&quot;image1DArrayShadow&quot;,&quot;image2DArrayShadow&quot;,&quot;imageBuffer&quot;,&quot;iimageBuffer&quot;,&quot;uimageBuffer&quot;,&quot;sampler1DArray&quot;,&quot;sampler1DArrayShadow&quot;,&quot;isampler1D&quot;,&quot;isampler1DArray&quot;,&quot;usampler1D&quot;,&quot;usampler1DArray&quot;,&quot;isampler2DRect&quot;,&quot;usampler2DRect&quot;,&quot;samplerBuffer&quot;,&quot;isamplerBuffer&quot;,&quot;usamplerBuffer&quot;,&quot;sampler2DMS&quot;,&quot;isampler2DMS&quot;,&quot;usampler2DMS&quot;,&quot;sampler2DMSArray&quot;,&quot;isampler2DMSArray&quot;,&quot;usampler2DMSArray&quot;])},{&quot;./literals&quot;:436}],436:[function(t,e,r){e.exports=[&quot;precision&quot;,&quot;highp&quot;,&quot;mediump&quot;,&quot;lowp&quot;,&quot;attribute&quot;,&quot;const&quot;,&quot;uniform&quot;,&quot;varying&quot;,&quot;break&quot;,&quot;continue&quot;,&quot;do&quot;,&quot;for&quot;,&quot;while&quot;,&quot;if&quot;,&quot;else&quot;,&quot;in&quot;,&quot;out&quot;,&quot;inout&quot;,&quot;float&quot;,&quot;int&quot;,&quot;uint&quot;,&quot;void&quot;,&quot;bool&quot;,&quot;true&quot;,&quot;false&quot;,&quot;discard&quot;,&quot;return&quot;,&quot;mat2&quot;,&quot;mat3&quot;,&quot;mat4&quot;,&quot;vec2&quot;,&quot;vec3&quot;,&quot;vec4&quot;,&quot;ivec2&quot;,&quot;ivec3&quot;,&quot;ivec4&quot;,&quot;bvec2&quot;,&quot;bvec3&quot;,&quot;bvec4&quot;,&quot;sampler1D&quot;,&quot;sampler2D&quot;,&quot;sampler3D&quot;,&quot;samplerCube&quot;,&quot;sampler1DShadow&quot;,&quot;sampler2DShadow&quot;,&quot;struct&quot;,&quot;asm&quot;,&quot;class&quot;,&quot;union&quot;,&quot;enum&quot;,&quot;typedef&quot;,&quot;template&quot;,&quot;this&quot;,&quot;packed&quot;,&quot;goto&quot;,&quot;switch&quot;,&quot;default&quot;,&quot;inline&quot;,&quot;noinline&quot;,&quot;volatile&quot;,&quot;public&quot;,&quot;static&quot;,&quot;extern&quot;,&quot;external&quot;,&quot;interface&quot;,&quot;long&quot;,&quot;short&quot;,&quot;double&quot;,&quot;half&quot;,&quot;fixed&quot;,&quot;unsigned&quot;,&quot;input&quot;,&quot;output&quot;,&quot;hvec2&quot;,&quot;hvec3&quot;,&quot;hvec4&quot;,&quot;dvec2&quot;,&quot;dvec3&quot;,&quot;dvec4&quot;,&quot;fvec2&quot;,&quot;fvec3&quot;,&quot;fvec4&quot;,&quot;sampler2DRect&quot;,&quot;sampler3DRect&quot;,&quot;sampler2DRectShadow&quot;,&quot;sizeof&quot;,&quot;cast&quot;,&quot;namespace&quot;,&quot;using&quot;]},{}],437:[function(t,e,r){e.exports=[&quot;&lt;&lt;=&quot;,&quot;&gt;&gt;=&quot;,&quot;++&quot;,&quot;--&quot;,&quot;&lt;&lt;&quot;,&quot;&gt;&gt;&quot;,&quot;&lt;=&quot;,&quot;&gt;=&quot;,&quot;==&quot;,&quot;!=&quot;,&quot;&amp;&amp;&quot;,&quot;||&quot;,&quot;+=&quot;,&quot;-=&quot;,&quot;*=&quot;,&quot;/=&quot;,&quot;%=&quot;,&quot;&amp;=&quot;,&quot;^^&quot;,&quot;^=&quot;,&quot;|=&quot;,&quot;(&quot;,&quot;)&quot;,&quot;[&quot;,&quot;]&quot;,&quot;.&quot;,&quot;!&quot;,&quot;~&quot;,&quot;*&quot;,&quot;/&quot;,&quot;%&quot;,&quot;+&quot;,&quot;-&quot;,&quot;&lt;&quot;,&quot;&gt;&quot;,&quot;&amp;&quot;,&quot;^&quot;,&quot;|&quot;,&quot;?&quot;,&quot;:&quot;,&quot;=&quot;,&quot;,&quot;,&quot;;&quot;,&quot;{&quot;,&quot;}&quot;]},{}],438:[function(t,e,r){var n=t(&quot;./index&quot;);e.exports=function(t,e){var r=n(e),i=[];return i=(i=i.concat(r(t))).concat(r(null))}},{&quot;./index&quot;:432}],439:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],440:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n,i=t(&quot;is-browser&quot;);n=&quot;function&quot;==typeof r.matchMedia?!r.matchMedia(&quot;(hover: none)&quot;).matches:i,e.exports=n}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;is-browser&quot;:464}],441:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-browser&quot;);e.exports=n&amp;&amp;function(){var t=!1;try{var e=Object.defineProperty({},&quot;passive&quot;,{get:function(){t=!0}});window.addEventListener(&quot;test&quot;,null,e),window.removeEventListener(&quot;test&quot;,null,e)}catch(e){t=!1}return t}()},{&quot;is-browser&quot;:464}],442:[function(t,e,r){r.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1&lt;&lt;s)-1,c=l&gt;&gt;1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&amp;(1&lt;&lt;-u)-1,p&gt;&gt;=-u,u+=s;u&gt;0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&amp;(1&lt;&lt;-u)-1,a&gt;&gt;=-u,u+=n;u&gt;0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1&lt;&lt;c)-1,f=u&gt;&gt;1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e&lt;0||0===e&amp;&amp;1/e&lt;0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))&lt;1&amp;&amp;(o--,l*=2),(e+=o+f&gt;=1?h/l:h*Math.pow(2,1-f))*l&gt;=2&amp;&amp;(o++,l/=2),o+f&gt;=u?(s=0,o=u):o+f&gt;=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i&gt;=8;t[r+p]=255&amp;s,p+=d,s/=256,i-=8);for(o=o&lt;&lt;i|s,c+=i;c&gt;0;t[r+p]=255&amp;o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g}},{}],443:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./types&quot;);e.exports=function(t,e){var r;for(r in n)if(n[r].detect(t,e))return r}},{&quot;./types&quot;:446}],444:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;fs&quot;),i=t(&quot;path&quot;),a=t(&quot;./types&quot;),o=t(&quot;./detector&quot;);function s(t,e){var r=o(t,e);if(r in a){var n=a[r].calculate(t,e);if(!1!==n)return n.type=r,n}throw new TypeError(&quot;unsupported file type: &quot;+r+&quot; (file: &quot;+e+&quot;)&quot;)}e.exports=function(t,e){if(r.isBuffer(t))return s(t);if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;invalid invocation&quot;);var a=i.resolve(t);if(&quot;function&quot;!=typeof e)return s(function(t){var e=n.openSync(t,&quot;r&quot;),i=n.fstatSync(e).size,a=Math.min(i,524288),o=r.alloc(a);return n.readSync(e,o,0,a,0),n.closeSync(e),o}(a),a);!function(t,e){n.open(t,&quot;r&quot;,(function(i,a){if(i)return e(i);n.fstat(a,(function(i,o){if(i)return e(i);var s=o.size;if(s&lt;=0)return e(new Error(&quot;File size is not greater than 0 \u2014\u2014 &quot;+t));var l=Math.min(s,524288),c=r.alloc(l);n.read(a,c,0,l,0,(function(t){if(t)return e(t);n.close(a,(function(t){e(t,c)}))}))}))}))}(a,(function(t,r){if(t)return e(t);var n;try{n=s(r,a)}catch(e){t=e}e(t,n)}))},e.exports.types=Object.keys(a)}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;./detector&quot;:443,&quot;./types&quot;:446,buffer:111,fs:109,path:507}],445:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){return r=r||0,t[&quot;readUInt&quot;+e+(n?&quot;BE&quot;:&quot;LE&quot;)].call(t,r)}},{}],446:[function(t,e,r){&quot;use strict&quot;;var n={bmp:t(&quot;./types/bmp&quot;),cur:t(&quot;./types/cur&quot;),dds:t(&quot;./types/dds&quot;),gif:t(&quot;./types/gif&quot;),icns:t(&quot;./types/icns&quot;),ico:t(&quot;./types/ico&quot;),jpg:t(&quot;./types/jpg&quot;),png:t(&quot;./types/png&quot;),psd:t(&quot;./types/psd&quot;),svg:t(&quot;./types/svg&quot;),tiff:t(&quot;./types/tiff&quot;),webp:t(&quot;./types/webp&quot;)};e.exports=n},{&quot;./types/bmp&quot;:447,&quot;./types/cur&quot;:448,&quot;./types/dds&quot;:449,&quot;./types/gif&quot;:450,&quot;./types/icns&quot;:451,&quot;./types/ico&quot;:452,&quot;./types/jpg&quot;:453,&quot;./types/png&quot;:454,&quot;./types/psd&quot;:455,&quot;./types/svg&quot;:456,&quot;./types/tiff&quot;:457,&quot;./types/webp&quot;:458}],447:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return&quot;BM&quot;===t.toString(&quot;ascii&quot;,0,2)},calculate:function(t){return{width:t.readUInt32LE(18),height:Math.abs(t.readInt32LE(22))}}}},{}],448:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return 0===t.readUInt16LE(0)&amp;&amp;2===t.readUInt16LE(2)},calculate:t(&quot;./ico&quot;).calculate}},{&quot;./ico&quot;:452}],449:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return 542327876===t.readUInt32LE(0)},calculate:function(t){return{height:t.readUInt32LE(12),width:t.readUInt32LE(16)}}}},{}],450:[function(t,e,r){&quot;use strict&quot;;var n=/^GIF8[79]a/;e.exports={detect:function(t){var e=t.toString(&quot;ascii&quot;,0,6);return n.test(e)},calculate:function(t){return{width:t.readUInt16LE(6),height:t.readUInt16LE(8)}}}},{}],451:[function(t,e,r){&quot;use strict&quot;;var n={ICON:32,&quot;ICN#&quot;:32,&quot;icm#&quot;:16,icm4:16,icm8:16,&quot;ics#&quot;:16,ics4:16,ics8:16,is32:16,s8mk:16,icp4:16,icl4:32,icl8:32,il32:32,l8mk:32,icp5:32,ic11:32,ich4:48,ich8:48,ih32:48,h8mk:48,icp6:64,ic12:32,it32:128,t8mk:128,ic07:128,ic08:256,ic13:256,ic09:512,ic14:512,ic10:1024};function i(t,e){var r=e+4;return[t.toString(&quot;ascii&quot;,e,r),t.readUInt32BE(r)]}function a(t){var e=n[t];return{width:e,height:e,type:t}}e.exports={detect:function(t){return&quot;icns&quot;===t.toString(&quot;ascii&quot;,0,4)},calculate:function(t){var e,r,n,o=t.length,s=8,l=t.readUInt32BE(4);if(r=a((e=i(t,s))[0]),(s+=e[1])===l)return r;for(n={width:r.width,height:r.height,images:[r]};s&lt;l&amp;&amp;s&lt;o;)r=a((e=i(t,s))[0]),s+=e[1],n.images.push(r);return n}}},{}],452:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=t.readUInt8(e);return 0===r?256:r}function i(t,e){var r=6+16*e;return{width:n(t,r),height:n(t,r+1)}}e.exports={detect:function(t){return 0===t.readUInt16LE(0)&amp;&amp;1===t.readUInt16LE(2)},calculate:function(t){var e,r=t.readUInt16LE(4),n=i(t,0);if(1===r)return n;for(n.images=[{width:n.width,height:n.height}],e=1;e&lt;r;e+=1)n.images.push(i(t,e));return n}}},{}],453:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../readUInt&quot;);function i(t){return&quot;45786966&quot;===t.toString(&quot;hex&quot;,2,6)}function a(t,e){return{height:t.readUInt16BE(e),width:t.readUInt16BE(e+2)}}function o(t,e){var r=t.slice(2,e),i=r.toString(&quot;hex&quot;,6,8),a=&quot;4d4d&quot;===i;if(a||&quot;4949&quot;===i)return function(t,e){for(var r,i,a=n(t,16,14,e),o=0;o&lt;a;o++){if(i=(r=16+12*o)+12,r&gt;t.length)return;var s=t.slice(r,i);if(274===n(s,16,0,e)){if(3!==n(s,16,2,e))return;if(1!==n(s,32,4,e))return;return n(s,16,8,e)}}}(r,a)}function s(t,e){if(e&gt;t.length)throw new TypeError(&quot;Corrupt JPG, exceeded buffer limits&quot;);if(255!==t[e])throw new TypeError(&quot;Invalid JPG, marker table corrupted&quot;)}e.exports={detect:function(t){return&quot;ffd8&quot;===t.toString(&quot;hex&quot;,0,2)},calculate:function(t){var e,r,n;for(t=t.slice(4);t.length;){if(r=t.readUInt16BE(0),i(t)&amp;&amp;(e=o(t,r)),s(t,r),192===(n=t[r+1])||193===n||194===n){var l=a(t,r+5);return e?{width:l.width,height:l.height,orientation:e}:l}t=t.slice(r+2)}throw new TypeError(&quot;Invalid JPG, no size found&quot;)}}},{&quot;../readUInt&quot;:445}],454:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){if(&quot;PNG\r\n\x1a\n&quot;===t.toString(&quot;ascii&quot;,1,8)){var e=t.toString(&quot;ascii&quot;,12,16);if(&quot;CgBI&quot;===e&amp;&amp;(e=t.toString(&quot;ascii&quot;,28,32)),&quot;IHDR&quot;!==e)throw new TypeError(&quot;invalid png&quot;);return!0}},calculate:function(t){return&quot;CgBI&quot;===t.toString(&quot;ascii&quot;,12,16)?{width:t.readUInt32BE(32),height:t.readUInt32BE(36)}:{width:t.readUInt32BE(16),height:t.readUInt32BE(20)}}}},{}],455:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return&quot;8BPS&quot;===t.toString(&quot;ascii&quot;,0,4)},calculate:function(t){return{width:t.readUInt32BE(18),height:t.readUInt32BE(14)}}}},{}],456:[function(t,e,r){&quot;use strict&quot;;var n=/&lt;svg\s([^&gt;&quot;']|&quot;[^&quot;]*&quot;|'[^']*')*&gt;/;var i={root:n,width:/\swidth=(['&quot;])([^%]+?)\1/,height:/\sheight=(['&quot;])([^%]+?)\1/,viewbox:/\sviewBox=(['&quot;])(.+?)\1/},a={cm:96/2.54,mm:96/2.54/10,m:96/2.54*100,pt:96/72,pc:96/72/12,em:16,ex:8};function o(t){var e=/([0-9.]+)([a-z]*)/.exec(t);if(e)return Math.round(parseFloat(e[1])*(a[e[2]]||1))}function s(t){var e=t.split(&quot; &quot;);return{width:o(e[2]),height:o(e[3])}}e.exports={detect:function(t){return n.test(t)},calculate:function(t){var e=t.toString(&quot;utf8&quot;).match(i.root);if(e){var r=function(t){var e=t.match(i.width),r=t.match(i.height),n=t.match(i.viewbox);return{width:e&amp;&amp;o(e[2]),height:r&amp;&amp;o(r[2]),viewbox:n&amp;&amp;s(n[2])}}(e[0]);if(r.width&amp;&amp;r.height)return function(t){return{width:t.width,height:t.height}}(r);if(r.viewbox)return function(t){var e=t.viewbox.width/t.viewbox.height;return t.width?{width:t.width,height:Math.floor(t.width/e)}:t.height?{width:Math.floor(t.height*e),height:t.height}:{width:t.viewbox.width,height:t.viewbox.height}}(r)}throw new TypeError(&quot;invalid svg&quot;)}}},{}],457:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;fs&quot;),i=t(&quot;../readUInt&quot;);function a(t,e){var r=i(t,16,8,e);return(i(t,16,10,e)&lt;&lt;16)+r}function o(t){if(t.length&gt;24)return t.slice(12)}e.exports={detect:function(t){var e=t.toString(&quot;hex&quot;,0,4);return&quot;49492a00&quot;===e||&quot;4d4d002a&quot;===e},calculate:function(t,e){if(!e)throw new TypeError(&quot;Tiff doesn't support buffer&quot;);var s=&quot;BE&quot;===function(t){var e=t.toString(&quot;ascii&quot;,0,2);return&quot;II&quot;===e?&quot;LE&quot;:&quot;MM&quot;===e?&quot;BE&quot;:void 0}(t),l=function(t,e){for(var r,n,s,l={};t&amp;&amp;t.length&amp;&amp;(r=i(t,16,0,e),n=i(t,16,2,e),s=i(t,32,4,e),0!==r);)1!==s||3!==n&amp;&amp;4!==n||(l[r]=a(t,e)),t=o(t);return l}(function(t,e,a){var o=i(t,32,4,a),s=1024,l=n.statSync(e).size;o+s&gt;l&amp;&amp;(s=l-o-10);var c=r.alloc(s),u=n.openSync(e,&quot;r&quot;);return n.readSync(u,c,0,s,o),c.slice(2)}(t,e,s),s),c=l[256],u=l[257];if(!c||!u)throw new TypeError(&quot;Invalid Tiff, missing tags&quot;);return{width:c,height:u}}}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;../readUInt&quot;:445,buffer:111,fs:109}],458:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){var e=&quot;RIFF&quot;===t.toString(&quot;ascii&quot;,0,4),r=&quot;WEBP&quot;===t.toString(&quot;ascii&quot;,8,12),n=&quot;VP8&quot;===t.toString(&quot;ascii&quot;,12,15);return e&amp;&amp;r&amp;&amp;n},calculate:function(t){var e=t.toString(&quot;ascii&quot;,12,16);if(t=t.slice(20,30),&quot;VP8X&quot;===e){var r=t[0];return!(!(0==(192&amp;r))||!(0==(1&amp;r)))&amp;&amp;function(t){return{width:1+t.readUIntLE(4,3),height:1+t.readUIntLE(7,3)}}(t)}if(&quot;VP8 &quot;===e&amp;&amp;47!==t[0])return function(t){return{width:16383&amp;t.readInt16LE(6),height:16383&amp;t.readInt16LE(8)}}(t);var n=t.toString(&quot;hex&quot;,3,6);return&quot;VP8L&quot;===e&amp;&amp;&quot;9d012a&quot;!==n&amp;&amp;function(t){return{width:1+((63&amp;t[2])&lt;&lt;8|t[1]),height:1+((15&amp;t[4])&lt;&lt;10|t[3]&lt;&lt;2|(192&amp;t[2])&gt;&gt;6)}}(t)}}},{}],459:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.length;if(0===r)throw new Error(&quot;Must have at least d+1 points&quot;);var i=t[0].length;if(r&lt;=i)throw new Error(&quot;Must input at least d+1 points&quot;);var o=t.slice(0,i+1),s=n.apply(void 0,o);if(0===s)throw new Error(&quot;Input not in general position&quot;);for(var l=new Array(i+1),u=0;u&lt;=i;++u)l[u]=u;s&lt;0&amp;&amp;(l[0]=1,l[1]=0);var f=new a(l,new Array(i+1),!1),h=f.adjacent,p=new Array(i+2);for(u=0;u&lt;=i;++u){for(var d=l.slice(),g=0;g&lt;=i;++g)g===u&amp;&amp;(d[g]=-1);var m=d[0];d[0]=d[1],d[1]=m;var v=new a(d,new Array(i+1),!0);h[u]=v,p[u]=v}p[i+1]=f;for(u=0;u&lt;=i;++u){d=h[u].vertices;var y=h[u].adjacent;for(g=0;g&lt;=i;++g){var x=d[g];if(x&lt;0)y[g]=f;else for(var b=0;b&lt;=i;++b)h[b].vertices.indexOf(x)&lt;0&amp;&amp;(y[g]=h[b])}}var _=new c(i,o,p),w=!!e;for(u=i+1;u&lt;r;++u)_.insert(t[u],w);return _.boundary()};var n=t(&quot;robust-orientation&quot;),i=t(&quot;simplicial-complex&quot;).compareCells;function a(t,e,r){this.vertices=t,this.adjacent=e,this.boundary=r,this.lastVisited=-1}function o(t,e,r){this.vertices=t,this.cell=e,this.index=r}function s(t,e){return i(t.vertices,e.vertices)}a.prototype.flip=function(){var t=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=t;var e=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=e};var l=[];function c(t,e,r){this.dimension=t,this.vertices=e,this.simplices=r,this.interior=r.filter((function(t){return!t.boundary})),this.tuple=new Array(t+1);for(var i=0;i&lt;=t;++i)this.tuple[i]=this.vertices[i];var a=l[t];a||(a=l[t]=function(t){for(var e=[&quot;function orient(){var tuple=this.tuple;return test(&quot;],r=0;r&lt;=t;++r)r&gt;0&amp;&amp;e.push(&quot;,&quot;),e.push(&quot;tuple[&quot;,r,&quot;]&quot;);e.push(&quot;)}return orient&quot;);var i=new Function(&quot;test&quot;,e.join(&quot;&quot;)),a=n[t+1];return a||(a=n),i(a)}(t)),this.orient=a}var u=c.prototype;u.handleBoundaryDegeneracy=function(t,e){var r=this.dimension,n=this.vertices.length-1,i=this.tuple,a=this.vertices,o=[t];for(t.lastVisited=-n;o.length&gt;0;){(t=o.pop()).vertices;for(var s=t.adjacent,l=0;l&lt;=r;++l){var c=s[l];if(c.boundary&amp;&amp;!(c.lastVisited&lt;=-n)){for(var u=c.vertices,f=0;f&lt;=r;++f){var h=u[f];i[f]=h&lt;0?e:a[h]}var p=this.orient();if(p&gt;0)return c;c.lastVisited=-n,0===p&amp;&amp;o.push(c)}}}return null},u.walk=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,a=this.tuple,o=e?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[o];t:for(;!s.boundary;){for(var l=s.vertices,c=s.adjacent,u=0;u&lt;=n;++u)a[u]=i[l[u]];s.lastVisited=r;for(u=0;u&lt;=n;++u){var f=c[u];if(!(f.lastVisited&gt;=r)){var h=a[u];a[u]=t;var p=this.orient();if(a[u]=h,p&lt;0){s=f;continue t}f.boundary?f.lastVisited=-r:f.lastVisited=r}}return}return s},u.addPeaks=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,l=this.tuple,c=this.interior,u=this.simplices,f=[e];e.lastVisited=r,e.vertices[e.vertices.indexOf(-1)]=r,e.boundary=!1,c.push(e);for(var h=[];f.length&gt;0;){var p=(e=f.pop()).vertices,d=e.adjacent,g=p.indexOf(r);if(!(g&lt;0))for(var m=0;m&lt;=n;++m)if(m!==g){var v=d[m];if(v.boundary&amp;&amp;!(v.lastVisited&gt;=r)){var y=v.vertices;if(v.lastVisited!==-r){for(var x=0,b=0;b&lt;=n;++b)y[b]&lt;0?(x=b,l[b]=t):l[b]=i[y[b]];if(this.orient()&gt;0){y[x]=r,v.boundary=!1,c.push(v),f.push(v),v.lastVisited=r;continue}v.lastVisited=-r}var _=v.adjacent,w=p.slice(),T=d.slice(),k=new a(w,T,!0);u.push(k);var M=_.indexOf(e);if(!(M&lt;0)){_[M]=k,T[g]=v,w[m]=-1,T[m]=e,d[m]=k,k.flip();for(b=0;b&lt;=n;++b){var A=w[b];if(!(A&lt;0||A===r)){for(var S=new Array(n-1),E=0,C=0;C&lt;=n;++C){var L=w[C];L&lt;0||C===b||(S[E++]=L)}h.push(new o(S,k,b))}}}}}}h.sort(s);for(m=0;m+1&lt;h.length;m+=2){var I=h[m],P=h[m+1],z=I.index,O=P.index;z&lt;0||O&lt;0||(I.cell.adjacent[I.index]=P.cell,P.cell.adjacent[P.index]=I.cell)}},u.insert=function(t,e){var r=this.vertices;r.push(t);var n=this.walk(t,e);if(n){for(var i=this.dimension,a=this.tuple,o=0;o&lt;=i;++o){var s=n.vertices[o];a[o]=s&lt;0?t:r[s]}var l=this.orient(a);l&lt;0||(0!==l||(n=this.handleBoundaryDegeneracy(n,t)))&amp;&amp;this.addPeaks(t,n)}},u.boundary=function(){for(var t=this.dimension,e=[],r=this.simplices,n=r.length,i=0;i&lt;n;++i){var a=r[i];if(a.boundary){for(var o=new Array(t),s=a.vertices,l=0,c=0,u=0;u&lt;=t;++u)s[u]&gt;=0?o[l++]=s[u]:c=1&amp;u;if(c===(1&amp;t)){var f=o[0];o[0]=o[1],o[1]=f}e.push(o)}}return e}},{&quot;robust-orientation&quot;:548,&quot;simplicial-complex&quot;:558}],460:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;);function i(t,e,r,n,i){this.mid=t,this.left=e,this.right=r,this.leftPoints=n,this.rightPoints=i,this.count=(e?e.count:0)+(r?r.count:0)+n.length}e.exports=function(t){if(!t||0===t.length)return new v(null);return new v(m(t))};var a=i.prototype;function o(t,e){t.mid=e.mid,t.left=e.left,t.right=e.right,t.leftPoints=e.leftPoints,t.rightPoints=e.rightPoints,t.count=e.count}function s(t,e){var r=m(e);t.mid=r.mid,t.left=r.left,t.right=r.right,t.leftPoints=r.leftPoints,t.rightPoints=r.rightPoints,t.count=r.count}function l(t,e){var r=t.intervals([]);r.push(e),s(t,r)}function c(t,e){var r=t.intervals([]),n=r.indexOf(e);return n&lt;0?0:(r.splice(n,1),s(t,r),1)}function u(t,e,r){for(var n=0;n&lt;t.length&amp;&amp;t[n][0]&lt;=e;++n){var i=r(t[n]);if(i)return i}}function f(t,e,r){for(var n=t.length-1;n&gt;=0&amp;&amp;t[n][1]&gt;=e;--n){var i=r(t[n]);if(i)return i}}function h(t,e){for(var r=0;r&lt;t.length;++r){var n=e(t[r]);if(n)return n}}function p(t,e){return t-e}function d(t,e){var r=t[0]-e[0];return r||t[1]-e[1]}function g(t,e){var r=t[1]-e[1];return r||t[0]-e[0]}function m(t){if(0===t.length)return null;for(var e=[],r=0;r&lt;t.length;++r)e.push(t[r][0],t[r][1]);e.sort(p);var n=e[e.length&gt;&gt;1],a=[],o=[],s=[];for(r=0;r&lt;t.length;++r){var l=t[r];l[1]&lt;n?a.push(l):n&lt;l[0]?o.push(l):s.push(l)}var c=s,u=s.slice();return c.sort(d),u.sort(g),new i(n,m(a),m(o),c,u)}function v(t){this.root=t}a.intervals=function(t){return t.push.apply(t,this.leftPoints),this.left&amp;&amp;this.left.intervals(t),this.right&amp;&amp;this.right.intervals(t),t},a.insert=function(t){var e=this.count-this.leftPoints.length;if(this.count+=1,t[1]&lt;this.mid)this.left?4*(this.left.count+1)&gt;3*(e+1)?l(this,t):this.left.insert(t):this.left=m([t]);else if(t[0]&gt;this.mid)this.right?4*(this.right.count+1)&gt;3*(e+1)?l(this,t):this.right.insert(t):this.right=m([t]);else{var r=n.ge(this.leftPoints,t,d),i=n.ge(this.rightPoints,t,g);this.leftPoints.splice(r,0,t),this.rightPoints.splice(i,0,t)}},a.remove=function(t){var e=this.count-this.leftPoints;if(t[1]&lt;this.mid)return this.left?4*(this.right?this.right.count:0)&gt;3*(e-1)?c(this,t):2===(s=this.left.remove(t))?(this.left=null,this.count-=1,1):(1===s&amp;&amp;(this.count-=1),s):0;if(t[0]&gt;this.mid)return this.right?4*(this.left?this.left.count:0)&gt;3*(e-1)?c(this,t):2===(s=this.right.remove(t))?(this.right=null,this.count-=1,1):(1===s&amp;&amp;(this.count-=1),s):0;if(1===this.count)return this.leftPoints[0]===t?2:0;if(1===this.leftPoints.length&amp;&amp;this.leftPoints[0]===t){if(this.left&amp;&amp;this.right){for(var r=this,i=this.left;i.right;)r=i,i=i.right;if(r===this)i.right=this.right;else{var a=this.left,s=this.right;r.count-=i.count,r.right=i.left,i.left=a,i.right=s}o(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?o(this,this.left):o(this,this.right);return 1}for(a=n.ge(this.leftPoints,t,d);a&lt;this.leftPoints.length&amp;&amp;this.leftPoints[a][0]===t[0];++a)if(this.leftPoints[a]===t){this.count-=1,this.leftPoints.splice(a,1);for(s=n.ge(this.rightPoints,t,g);s&lt;this.rightPoints.length&amp;&amp;this.rightPoints[s][1]===t[1];++s)if(this.rightPoints[s]===t)return this.rightPoints.splice(s,1),1}return 0},a.queryPoint=function(t,e){if(t&lt;this.mid){if(this.left)if(r=this.left.queryPoint(t,e))return r;return u(this.leftPoints,t,e)}if(t&gt;this.mid){var r;if(this.right)if(r=this.right.queryPoint(t,e))return r;return f(this.rightPoints,t,e)}return h(this.leftPoints,e)},a.queryInterval=function(t,e,r){var n;if(t&lt;this.mid&amp;&amp;this.left&amp;&amp;(n=this.left.queryInterval(t,e,r)))return n;if(e&gt;this.mid&amp;&amp;this.right&amp;&amp;(n=this.right.queryInterval(t,e,r)))return n;return e&lt;this.mid?u(this.leftPoints,e,r):t&gt;this.mid?f(this.rightPoints,t,r):h(this.leftPoints,r)};var y=v.prototype;y.insert=function(t){this.root?this.root.insert(t):this.root=new i(t[0],null,null,[t],[t])},y.remove=function(t){if(this.root){var e=this.root.remove(t);return 2===e&amp;&amp;(this.root=null),0!==e}return!1},y.queryPoint=function(t,e){if(this.root)return this.root.queryPoint(t,e)},y.queryInterval=function(t,e,r){if(t&lt;=e&amp;&amp;this.root)return this.root.queryInterval(t,e,r)},Object.defineProperty(y,&quot;count&quot;,{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(y,&quot;intervals&quot;,{get:function(){return this.root?this.root.intervals([]):[]}})},{&quot;binary-search-bounds&quot;:461}],461:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],462:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e=e||new Array(t.length);for(var r=0;r&lt;t.length;++r)e[t[r]]=r;return e}},{}],463:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=r;return e}},{}],464:[function(t,e,r){e.exports=!0},{}],465:[function(t,e,r){function n(t){return!!t.constructor&amp;&amp;&quot;function&quot;==typeof t.constructor.isBuffer&amp;&amp;t.constructor.isBuffer(t)}
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh &lt;https://feross.org&gt;
 * @license  MIT
 */
e.exports=function(t){return null!=t&amp;&amp;(n(t)||function(t){return&quot;function&quot;==typeof t.readFloatLE&amp;&amp;&quot;function&quot;==typeof t.slice&amp;&amp;n(t.slice(0,0))}(t)||!!t._isBuffer)}},{}],466:[function(t,e,r){&quot;use strict&quot;;e.exports=&quot;undefined&quot;!=typeof navigator&amp;&amp;(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))},{}],467:[function(t,e,r){&quot;use strict&quot;;e.exports=a,e.exports.isMobile=a,e.exports.default=a;var n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function a(t){t||(t={});var e=t.ua;if(e||&quot;undefined&quot;==typeof navigator||(e=navigator.userAgent),e&amp;&amp;e.headers&amp;&amp;&quot;string&quot;==typeof e.headers[&quot;user-agent&quot;]&amp;&amp;(e=e.headers[&quot;user-agent&quot;]),&quot;string&quot;!=typeof e)return!1;var r=t.tablet?i.test(e):n.test(e);return!r&amp;&amp;t.tablet&amp;&amp;t.featureDetect&amp;&amp;navigator&amp;&amp;navigator.maxTouchPoints&gt;1&amp;&amp;-1!==e.indexOf(&quot;Macintosh&quot;)&amp;&amp;-1!==e.indexOf(&quot;Safari&quot;)&amp;&amp;(r=!0),r}},{}],468:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=typeof t;return null!==t&amp;&amp;(&quot;object&quot;===e||&quot;function&quot;===e)}},{}],469:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString;e.exports=function(t){var e;return&quot;[object Object]&quot;===n.call(t)&amp;&amp;(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))}},{}],470:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e,r=t.length,n=0;n&lt;r;n++)if(((e=t.charCodeAt(n))&lt;9||e&gt;13)&amp;&amp;32!==e&amp;&amp;133!==e&amp;&amp;160!==e&amp;&amp;5760!==e&amp;&amp;6158!==e&amp;&amp;(e&lt;8192||e&gt;8205)&amp;&amp;8232!==e&amp;&amp;8233!==e&amp;&amp;8239!==e&amp;&amp;8287!==e&amp;&amp;8288!==e&amp;&amp;12288!==e&amp;&amp;65279!==e)return!1;return!0}},{}],471:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return&quot;string&quot;==typeof t&amp;&amp;(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&amp;&amp;/[\dz]$/i.test(t)&amp;&amp;t.length&gt;4))}},{}],472:[function(t,e,r){e.exports=function(t,e,r){return t*(1-r)+e*r}},{}],473:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?e.exports=n():(t=t||self).mapboxgl=n()}(this,(function(){&quot;use strict&quot;;var t,e,r;function n(n,i){if(t)if(e){var a=&quot;var sharedChunk = {}; (&quot;+t+&quot;)(sharedChunk); (&quot;+e+&quot;)(sharedChunk);&quot;,o={};t(o),(r=i(o)).workerUrl=window.URL.createObjectURL(new Blob([a],{type:&quot;text/javascript&quot;}))}else e=i;else t=i}return n(0,(function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r=n;function n(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}n.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},n.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},n.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},n.prototype.solveCurveX=function(t,e){var r,n,i,a,o;for(void 0===e&amp;&amp;(e=1e-6),i=t,o=0;o&lt;8;o++){if(a=this.sampleCurveX(i)-t,Math.abs(a)&lt;e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)&lt;1e-6)break;i-=a/s}if((i=t)&lt;(r=0))return r;if(i&gt;(n=1))return n;for(;r&lt;n;){if(a=this.sampleCurveX(i),Math.abs(a-t)&lt;e)return i;t&gt;a?r=i:n=i,i=.5*(n-r)+r}return i},n.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var i=a;function a(t,e){this.x=t,this.y=e}function o(t,e,n,i){var a=new r(t,e,n,i);return function(t){return a.solve(t)}}a.prototype={clone:function(){return new a(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&amp;&amp;this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=r*this.x+e*this.y;return this.x=e*this.x-r*this.y,this.y=n,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),i=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=e.x+r*(this.x-e.x)-n*(this.y-e.y),this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},a.convert=function(t){return t instanceof a?t:Array.isArray(t)?new a(t[0],t[1]):t};var s=o(.25,.1,.25,1);function l(t,e,r){return Math.min(r,Math.max(e,t))}function c(t,e,r){var n=r-e,i=((t-e)%n+n)%n+e;return i===e?r:i}function u(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}var f=1;function h(){return f++}function p(){return function t(e){return e?(e^16*Math.random()&gt;&gt;e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function d(t){return!!t&amp;&amp;/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function g(t,e){t.forEach((function(t){e[t]&amp;&amp;(e[t]=e[t].bind(e))}))}function m(t,e){return-1!==t.indexOf(e,t.length-e.length)}function v(t,e,r){var n={};for(var i in t)n[i]=e.call(r||this,t[i],i,t);return n}function y(t,e,r){var n={};for(var i in t)e.call(r||this,t[i],i,t)&amp;&amp;(n[i]=t[i]);return n}function x(t){return Array.isArray(t)?t.map(x):&quot;object&quot;==typeof t&amp;&amp;t?v(t,x):t}var b={};function _(t){b[t]||(&quot;undefined&quot;!=typeof console&amp;&amp;console.warn(t),b[t]=!0)}function w(t,e,r){return(r.y-t.y)*(e.x-t.x)&gt;(e.y-t.y)*(r.x-t.x)}function T(t){for(var e=0,r=0,n=t.length,i=n-1,a=void 0,o=void 0;r&lt;n;i=r++)e+=((o=t[i]).x-(a=t[r]).x)*(a.y+o.y);return e}function k(){return&quot;undefined&quot;!=typeof WorkerGlobalScope&amp;&amp;&quot;undefined&quot;!=typeof self&amp;&amp;self instanceof WorkerGlobalScope}function M(t){var e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)&lt;&gt;@\,;\:\\&quot;\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)&lt;&gt;@\,;\:\\&quot;\/\[\]\?\=\{\}\x7F]+)|(?:\&quot;((?:[^&quot;\\]|\\.)*)\&quot;)))?/g,(function(t,r,n,i){var a=n||i;return e[r]=!a||a.toLowerCase(),&quot;&quot;})),e[&quot;max-age&quot;]){var r=parseInt(e[&quot;max-age&quot;],10);isNaN(r)?delete e[&quot;max-age&quot;]:e[&quot;max-age&quot;]=r}return e}var A=null;function S(t){if(null==A){var e=t.navigator?t.navigator.userAgent:null;A=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match(&quot;Safari&quot;)&amp;&amp;!e.match(&quot;Chrome&quot;)))}return A}function E(t){try{var e=self[t];return e.setItem(&quot;_mapbox_test_&quot;,1),e.removeItem(&quot;_mapbox_test_&quot;),!0}catch(t){return!1}}var C,L,I,P,z=self.performance&amp;&amp;self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),O=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,D=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,R={now:z,frame:function(t){var e=O(t);return{cancel:function(){return D(e)}}},getImageData:function(t,e){void 0===e&amp;&amp;(e=0);var r=self.document.createElement(&quot;canvas&quot;),n=r.getContext(&quot;2d&quot;);if(!n)throw new Error(&quot;failed to create canvas 2d context&quot;);return r.width=t.width,r.height=t.height,n.drawImage(t,0,0,t.width,t.height),n.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return C||(C=self.document.createElement(&quot;a&quot;)),C.href=t,C.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&amp;&amp;(null==L&amp;&amp;(L=self.matchMedia(&quot;(prefers-reduced-motion: reduce)&quot;)),L.matches)}},F={API_URL:&quot;https://api.mapbox.com&quot;,get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf(&quot;https://api.mapbox.cn&quot;)?&quot;https://events.mapbox.cn/events/v2&quot;:0===this.API_URL.indexOf(&quot;https://api.mapbox.com&quot;)?&quot;https://events.mapbox.com/events/v2&quot;:null:null},FEEDBACK_URL:&quot;https://apps.mapbox.com/feedback&quot;,REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},B={supported:!1,testSupport:function(t){!N&amp;&amp;P&amp;&amp;(j?U(t):I=t)}},N=!1,j=!1;function U(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,P),t.isContextLost())return;B.supported=!0}catch(t){}t.deleteTexture(e),N=!0}self.document&amp;&amp;((P=self.document.createElement(&quot;img&quot;)).onload=function(){I&amp;&amp;U(I),I=null,j=!0},P.onerror=function(){N=!0,I=null},P.src=&quot;data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=&quot;);var V=&quot;01&quot;,q=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function H(t){return 0===t.indexOf(&quot;mapbox:&quot;)}q.prototype._createSkuToken=function(){var t=function(){for(var t=&quot;&quot;,e=0;e&lt;10;e++)t+=&quot;0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ&quot;[Math.floor(62*Math.random())];return{token:[&quot;1&quot;,V,t].join(&quot;&quot;),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},q.prototype._isSkuTokenExpired=function(){return Date.now()&gt;this._skuTokenExpiresAt},q.prototype.transformRequest=function(t,e){return this._transformRequestFn&amp;&amp;this._transformRequestFn(t,e)||{url:t}},q.prototype.normalizeStyleURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/styles/v1&quot;+r.path,this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeGlyphsURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/fonts/v1&quot;+r.path,this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeSourceURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/v4/&quot;+r.authority+&quot;.json&quot;,r.params.push(&quot;secure&quot;),this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeSpriteURL=function(t,e,r,n){var i=X(t);return H(t)?(i.path=&quot;/styles/v1&quot;+i.path+&quot;/sprite&quot;+e+r,this._makeAPIURL(i,this._customAccessToken||n)):(i.path+=&quot;&quot;+e+r,Z(i))},q.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&amp;&amp;this._createSkuToken(),t&amp;&amp;!H(t))return t;var r=X(t);r.path=r.path.replace(/(\.(png|jpg)\d*)(?=$)/,(R.devicePixelRatio&gt;=2||512===e?&quot;@2x&quot;:&quot;&quot;)+(B.supported?&quot;.webp&quot;:&quot;$1&quot;)),r.path=r.path.replace(/^.+\/v4\//,&quot;/&quot;),r.path=&quot;/v4&quot;+r.path;var n=this._customAccessToken||function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var n=r[e].match(/^access_token=(.*)$/);if(n)return n[1]}return null}(r.params)||F.ACCESS_TOKEN;return F.REQUIRE_ACCESS_TOKEN&amp;&amp;n&amp;&amp;this._skuToken&amp;&amp;r.params.push(&quot;sku=&quot;+this._skuToken),this._makeAPIURL(r,n)},q.prototype.canonicalizeTileURL=function(t,e){var r=X(t);if(!r.path.match(/(^\/v4\/)/)||!r.path.match(/\.[\w]+$/))return t;var n=&quot;mapbox://tiles/&quot;;n+=r.path.replace(&quot;/v4/&quot;,&quot;&quot;);var i=r.params;return e&amp;&amp;(i=i.filter((function(t){return!t.match(/^access_token=/)}))),i.length&amp;&amp;(n+=&quot;?&quot;+i.join(&quot;&amp;&quot;)),n},q.prototype.canonicalizeTileset=function(t,e){for(var r=!!e&amp;&amp;H(e),n=[],i=0,a=t.tiles||[];i&lt;a.length;i+=1){var o=a[i];Y(o)?n.push(this.canonicalizeTileURL(o,r)):n.push(o)}return n},q.prototype._makeAPIURL=function(t,e){var r=&quot;See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes&quot;,n=X(F.API_URL);if(t.protocol=n.protocol,t.authority=n.authority,&quot;/&quot;!==n.path&amp;&amp;(t.path=&quot;&quot;+n.path+t.path),!F.REQUIRE_ACCESS_TOKEN)return Z(t);if(!(e=e||F.ACCESS_TOKEN))throw new Error(&quot;An API access token is required to use Mapbox GL. &quot;+r);if(&quot;s&quot;===e[0])throw new Error(&quot;Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). &quot;+r);return t.params=t.params.filter((function(t){return-1===t.indexOf(&quot;access_token&quot;)})),t.params.push(&quot;access_token=&quot;+e),Z(t)};var G=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Y(t){return G.test(t)}var W=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function X(t){var e=t.match(W);if(!e)throw new Error(&quot;Unable to parse URL object&quot;);return{protocol:e[1],authority:e[2],path:e[3]||&quot;/&quot;,params:e[4]?e[4].split(&quot;&amp;&quot;):[]}}function Z(t){var e=t.params.length?&quot;?&quot;+t.params.join(&quot;&amp;&quot;):&quot;&quot;;return t.protocol+&quot;://&quot;+t.authority+t.path+e}function J(t){if(!t)return null;var e=t.split(&quot;.&quot;);if(!e||3!==e.length)return null;try{return JSON.parse(decodeURIComponent(self.atob(e[1]).split(&quot;&quot;).map((function(t){return&quot;%&quot;+(&quot;00&quot;+t.charCodeAt(0).toString(16)).slice(-2)})).join(&quot;&quot;)))}catch(t){return null}}var K=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};K.prototype.getStorageKey=function(t){var e,r=J(F.ACCESS_TOKEN);return e=r&amp;&amp;r.u?self.btoa(encodeURIComponent(r.u).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(Number(&quot;0x&quot;+e))}))):F.ACCESS_TOKEN||&quot;&quot;,t?&quot;mapbox.eventData.&quot;+t+&quot;:&quot;+e:&quot;mapbox.eventData:&quot;+e},K.prototype.fetchEventData=function(){var t=E(&quot;localStorage&quot;),e=this.getStorageKey(),r=this.getStorageKey(&quot;uuid&quot;);if(t)try{var n=self.localStorage.getItem(e);n&amp;&amp;(this.eventData=JSON.parse(n));var i=self.localStorage.getItem(r);i&amp;&amp;(this.anonId=i)}catch(t){_(&quot;Unable to read from LocalStorage&quot;)}},K.prototype.saveEventData=function(){var t=E(&quot;localStorage&quot;),e=this.getStorageKey(),r=this.getStorageKey(&quot;uuid&quot;);if(t)try{self.localStorage.setItem(r,this.anonId),Object.keys(this.eventData).length&gt;=1&amp;&amp;self.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){_(&quot;Unable to write to LocalStorage&quot;)}},K.prototype.processRequests=function(t){},K.prototype.postEvent=function(t,e,r,n){var i=this;if(F.EVENTS_URL){var a=X(F.EVENTS_URL);a.params.push(&quot;access_token=&quot;+(n||F.ACCESS_TOKEN||&quot;&quot;));var o={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:&quot;mapbox-gl-js&quot;,sdkVersion:&quot;1.10.1&quot;,skuId:V,userId:this.anonId},s=e?u(o,e):o,l={url:Z(a),headers:{&quot;Content-Type&quot;:&quot;text/plain&quot;},body:JSON.stringify([s])};this.pendingRequest=xt(l,(function(t){i.pendingRequest=null,r(t),i.saveEventData(),i.processRequests(n)}))}},K.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var Q,$,tt=function(t){function e(){t.call(this,&quot;map.load&quot;),this.success={},this.skuToken=&quot;&quot;}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.postMapLoadEvent=function(t,e,r,n){this.skuToken=r,(F.EVENTS_URL&amp;&amp;n||F.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return H(t)||Y(t)})))&amp;&amp;this.queueRequest({id:e,timestamp:Date.now()},n)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){var r=this.queue.shift(),n=r.id,i=r.timestamp;n&amp;&amp;this.success[n]||(this.anonId||this.fetchEventData(),d(this.anonId)||(this.anonId=p()),this.postEvent(i,{skuToken:this.skuToken},(function(t){t||n&amp;&amp;(e.success[n]=!0)}),t))}},e}(K),et=new(function(t){function e(e){t.call(this,&quot;appUserTurnstile&quot;),this._customAccessToken=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.postTurnstileEvent=function(t,e){F.EVENTS_URL&amp;&amp;F.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return H(t)||Y(t)}))&amp;&amp;this.queueRequest(Date.now(),e)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){this.anonId&amp;&amp;this.eventData.lastSuccess&amp;&amp;this.eventData.tokenU||this.fetchEventData();var r=J(F.ACCESS_TOKEN),n=r?r.u:F.ACCESS_TOKEN,i=n!==this.eventData.tokenU;d(this.anonId)||(this.anonId=p(),i=!0);var a=this.queue.shift();if(this.eventData.lastSuccess){var o=new Date(this.eventData.lastSuccess),s=new Date(a),l=(a-this.eventData.lastSuccess)/864e5;i=i||l&gt;=1||l&lt;-1||o.getDate()!==s.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(a,{&quot;enabled.telemetry&quot;:!1},(function(t){t||(e.eventData.lastSuccess=a,e.eventData.tokenU=n)}),t)}},e}(K)),rt=et.postTurnstileEvent.bind(et),nt=new tt,it=nt.postMapLoadEvent.bind(nt),at=500,ot=50;function st(){self.caches&amp;&amp;!Q&amp;&amp;(Q=self.caches.open(&quot;mapbox-tiles&quot;))}function lt(t){var e=t.indexOf(&quot;?&quot;);return e&lt;0?t:t.slice(0,e)}var ct,ut=1/0;function ft(){return null==ct&amp;&amp;(ct=self.OffscreenCanvas&amp;&amp;new self.OffscreenCanvas(1,1).getContext(&quot;2d&quot;)&amp;&amp;&quot;function&quot;==typeof self.createImageBitmap),ct}var ht={Unknown:&quot;Unknown&quot;,Style:&quot;Style&quot;,Source:&quot;Source&quot;,Tile:&quot;Tile&quot;,Glyphs:&quot;Glyphs&quot;,SpriteImage:&quot;SpriteImage&quot;,SpriteJSON:&quot;SpriteJSON&quot;,Image:&quot;Image&quot;};&quot;function&quot;==typeof Object.freeze&amp;&amp;Object.freeze(ht);var pt,dt,gt=function(t){function e(e,r,n){401===r&amp;&amp;Y(n)&amp;&amp;(e+=&quot;: you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes&quot;),t.call(this,e),this.status=r,this.url=n,this.name=this.constructor.name,this.message=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.toString=function(){return this.name+&quot;: &quot;+this.message+&quot; (&quot;+this.status+&quot;): &quot;+this.url},e}(Error),mt=k()?function(){return self.worker&amp;&amp;self.worker.referrer}:function(){return(&quot;blob:&quot;===self.location.protocol?self.parent:self).location.href},vt=function(t,e){if(!(/^file:/.test(r=t.url)||/^file:/.test(mt())&amp;&amp;!/^\w+:/.test(r))){if(self.fetch&amp;&amp;self.Request&amp;&amp;self.AbortController&amp;&amp;self.Request.prototype.hasOwnProperty(&quot;signal&quot;))return function(t,e){var r,n=new self.AbortController,i=new self.Request(t.url,{method:t.method||&quot;GET&quot;,body:t.body,credentials:t.credentials,headers:t.headers,referrer:mt(),signal:n.signal}),a=!1,o=!1,s=(r=i.url).indexOf(&quot;sku=&quot;)&gt;0&amp;&amp;Y(r);&quot;json&quot;===t.type&amp;&amp;i.headers.set(&quot;Accept&quot;,&quot;application/json&quot;);var l=function(r,n,a){if(!o){if(r&amp;&amp;&quot;SecurityError&quot;!==r.message&amp;&amp;_(r),n&amp;&amp;a)return c(n);var l=Date.now();self.fetch(i).then((function(r){if(r.ok){var n=s?r.clone():null;return c(r,n,l)}return e(new gt(r.statusText,r.status,t.url))})).catch((function(t){20!==t.code&amp;&amp;e(new Error(t.message))}))}},c=function(r,n,s){(&quot;arrayBuffer&quot;===t.type?r.arrayBuffer():&quot;json&quot;===t.type?r.json():r.text()).then((function(t){o||(n&amp;&amp;s&amp;&amp;function(t,e,r){if(st(),Q){var n={status:e.status,statusText:e.statusText,headers:new self.Headers};e.headers.forEach((function(t,e){return n.headers.set(e,t)}));var i=M(e.headers.get(&quot;Cache-Control&quot;)||&quot;&quot;);i[&quot;no-store&quot;]||(i[&quot;max-age&quot;]&amp;&amp;n.headers.set(&quot;Expires&quot;,new Date(r+1e3*i[&quot;max-age&quot;]).toUTCString()),new Date(n.headers.get(&quot;Expires&quot;)).getTime()-r&lt;42e4||function(t,e){if(void 0===$)try{new Response(new ReadableStream),$=!0}catch(t){$=!1}$?e(t.body):t.blob().then(e)}(e,(function(e){var r=new self.Response(e,n);st(),Q&amp;&amp;Q.then((function(e){return e.put(lt(t.url),r)})).catch((function(t){return _(t.message)}))})))}}(i,n,s),a=!0,e(null,t,r.headers.get(&quot;Cache-Control&quot;),r.headers.get(&quot;Expires&quot;)))})).catch((function(t){o||e(new Error(t.message))}))};return s?function(t,e){if(st(),!Q)return e(null);var r=lt(t.url);Q.then((function(t){t.match(r).then((function(n){var i=function(t){if(!t)return!1;var e=new Date(t.headers.get(&quot;Expires&quot;)||0),r=M(t.headers.get(&quot;Cache-Control&quot;)||&quot;&quot;);return e&gt;Date.now()&amp;&amp;!r[&quot;no-cache&quot;]}(n);t.delete(r),i&amp;&amp;t.put(r,n.clone()),e(null,n,i)})).catch(e)})).catch(e)}(i,l):l(null,null),{cancel:function(){o=!0,a||n.abort()}}}(t,e);if(k()&amp;&amp;self.worker&amp;&amp;self.worker.actor)return self.worker.actor.send(&quot;getResource&quot;,t,e,void 0,!0)}var r;return function(t,e){var r=new self.XMLHttpRequest;for(var n in r.open(t.method||&quot;GET&quot;,t.url,!0),&quot;arrayBuffer&quot;===t.type&amp;&amp;(r.responseType=&quot;arraybuffer&quot;),t.headers)r.setRequestHeader(n,t.headers[n]);return&quot;json&quot;===t.type&amp;&amp;(r.responseType=&quot;text&quot;,r.setRequestHeader(&quot;Accept&quot;,&quot;application/json&quot;)),r.withCredentials=&quot;include&quot;===t.credentials,r.onerror=function(){e(new Error(r.statusText))},r.onload=function(){if((r.status&gt;=200&amp;&amp;r.status&lt;300||0===r.status)&amp;&amp;null!==r.response){var n=r.response;if(&quot;json&quot;===t.type)try{n=JSON.parse(r.response)}catch(t){return e(t)}e(null,n,r.getResponseHeader(&quot;Cache-Control&quot;),r.getResponseHeader(&quot;Expires&quot;))}else e(new gt(r.statusText,r.status,t.url))},r.send(t.body),{cancel:function(){return r.abort()}}}(t,e)},yt=function(t,e){return vt(u(t,{type:&quot;arrayBuffer&quot;}),e)},xt=function(t,e){return vt(u(t,{method:&quot;POST&quot;}),e)};pt=[],dt=0;var bt=function(t,e){if(B.supported&amp;&amp;(t.headers||(t.headers={}),t.headers.accept=&quot;image/webp,*/*&quot;),dt&gt;=F.MAX_PARALLEL_IMAGE_REQUESTS){var r={requestParameters:t,callback:e,cancelled:!1,cancel:function(){this.cancelled=!0}};return pt.push(r),r}dt++;var n=!1,i=function(){if(!n)for(n=!0,dt--;pt.length&amp;&amp;dt&lt;F.MAX_PARALLEL_IMAGE_REQUESTS;){var t=pt.shift();t.cancelled||(t.cancel=bt(t.requestParameters,t.callback).cancel)}},a=yt(t,(function(t,r,n,a){i(),t?e(t):r&amp;&amp;(ft()?function(t,e){var r=new self.Blob([new Uint8Array(t)],{type:&quot;image/png&quot;});self.createImageBitmap(r).then((function(t){e(null,t)})).catch((function(t){e(new Error(&quot;Could not load image because of &quot;+t.message+&quot;. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.&quot;))}))}(r,e):function(t,e,r,n){var i=new self.Image,a=self.URL;i.onload=function(){e(null,i),a.revokeObjectURL(i.src)},i.onerror=function(){return e(new Error(&quot;Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.&quot;))};var o=new self.Blob([new Uint8Array(t)],{type:&quot;image/png&quot;});i.cacheControl=r,i.expires=n,i.src=t.byteLength?a.createObjectURL(o):&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=&quot;}(r,e,n,a))}));return{cancel:function(){a.cancel(),i()}}};function _t(t,e,r){r[t]&amp;&amp;-1!==r[t].indexOf(e)||(r[t]=r[t]||[],r[t].push(e))}function wt(t,e,r){if(r&amp;&amp;r[t]){var n=r[t].indexOf(e);-1!==n&amp;&amp;r[t].splice(n,1)}}var Tt=function(t,e){void 0===e&amp;&amp;(e={}),u(this,e),this.type=t},kt=function(t){function e(e,r){void 0===r&amp;&amp;(r={}),t.call(this,&quot;error&quot;,u({error:e},r))}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(Tt),Mt=function(){};Mt.prototype.on=function(t,e){return this._listeners=this._listeners||{},_t(t,e,this._listeners),this},Mt.prototype.off=function(t,e){return wt(t,e,this._listeners),wt(t,e,this._oneTimeListeners),this},Mt.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},_t(t,e,this._oneTimeListeners),this},Mt.prototype.fire=function(t,e){&quot;string&quot;==typeof t&amp;&amp;(t=new Tt(t,e||{}));var r=t.type;if(this.listens(r)){t.target=this;for(var n=0,i=this._listeners&amp;&amp;this._listeners[r]?this._listeners[r].slice():[];n&lt;i.length;n+=1)i[n].call(this,t);for(var a=0,o=this._oneTimeListeners&amp;&amp;this._oneTimeListeners[r]?this._oneTimeListeners[r].slice():[];a&lt;o.length;a+=1){var s=o[a];wt(r,s,this._oneTimeListeners),s.call(this,t)}var l=this._eventedParent;l&amp;&amp;(u(t,&quot;function&quot;==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),l.fire(t))}else t instanceof kt&amp;&amp;console.error(t.error);return this},Mt.prototype.listens=function(t){return this._listeners&amp;&amp;this._listeners[t]&amp;&amp;this._listeners[t].length&gt;0||this._oneTimeListeners&amp;&amp;this._oneTimeListeners[t]&amp;&amp;this._oneTimeListeners[t].length&gt;0||this._eventedParent&amp;&amp;this._eventedParent.listens(t)},Mt.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var At={$version:8,$root:{version:{required:!0,type:&quot;enum&quot;,values:[8]},name:{type:&quot;string&quot;},metadata:{type:&quot;*&quot;},center:{type:&quot;array&quot;,value:&quot;number&quot;},zoom:{type:&quot;number&quot;},bearing:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;},pitch:{type:&quot;number&quot;,default:0,units:&quot;degrees&quot;},light:{type:&quot;light&quot;},sources:{required:!0,type:&quot;sources&quot;},sprite:{type:&quot;string&quot;},glyphs:{type:&quot;string&quot;},transition:{type:&quot;transition&quot;},layers:{required:!0,type:&quot;array&quot;,value:&quot;layer&quot;}},sources:{&quot;*&quot;:{type:&quot;source&quot;}},source:[&quot;source_vector&quot;,&quot;source_raster&quot;,&quot;source_raster_dem&quot;,&quot;source_geojson&quot;,&quot;source_video&quot;,&quot;source_image&quot;],source_vector:{type:{required:!0,type:&quot;enum&quot;,values:{vector:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:&quot;enum&quot;,values:{xyz:{},tms:{}},default:&quot;xyz&quot;},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},attribution:{type:&quot;string&quot;},promoteId:{type:&quot;promoteId&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_raster:{type:{required:!0,type:&quot;enum&quot;,values:{raster:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},tileSize:{type:&quot;number&quot;,default:512,units:&quot;pixels&quot;},scheme:{type:&quot;enum&quot;,values:{xyz:{},tms:{}},default:&quot;xyz&quot;},attribution:{type:&quot;string&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_raster_dem:{type:{required:!0,type:&quot;enum&quot;,values:{&quot;raster-dem&quot;:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},tileSize:{type:&quot;number&quot;,default:512,units:&quot;pixels&quot;},attribution:{type:&quot;string&quot;},encoding:{type:&quot;enum&quot;,values:{terrarium:{},mapbox:{}},default:&quot;mapbox&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_geojson:{type:{required:!0,type:&quot;enum&quot;,values:{geojson:{}}},data:{type:&quot;*&quot;},maxzoom:{type:&quot;number&quot;,default:18},attribution:{type:&quot;string&quot;},buffer:{type:&quot;number&quot;,default:128,maximum:512,minimum:0},tolerance:{type:&quot;number&quot;,default:.375},cluster:{type:&quot;boolean&quot;,default:!1},clusterRadius:{type:&quot;number&quot;,default:50,minimum:0},clusterMaxZoom:{type:&quot;number&quot;},clusterProperties:{type:&quot;*&quot;},lineMetrics:{type:&quot;boolean&quot;,default:!1},generateId:{type:&quot;boolean&quot;,default:!1},promoteId:{type:&quot;promoteId&quot;}},source_video:{type:{required:!0,type:&quot;enum&quot;,values:{video:{}}},urls:{required:!0,type:&quot;array&quot;,value:&quot;string&quot;},coordinates:{required:!0,type:&quot;array&quot;,length:4,value:{type:&quot;array&quot;,length:2,value:&quot;number&quot;}}},source_image:{type:{required:!0,type:&quot;enum&quot;,values:{image:{}}},url:{required:!0,type:&quot;string&quot;},coordinates:{required:!0,type:&quot;array&quot;,length:4,value:{type:&quot;array&quot;,length:2,value:&quot;number&quot;}}},layer:{id:{type:&quot;string&quot;,required:!0},type:{type:&quot;enum&quot;,values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},&quot;fill-extrusion&quot;:{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:&quot;*&quot;},source:{type:&quot;string&quot;},&quot;source-layer&quot;:{type:&quot;string&quot;},minzoom:{type:&quot;number&quot;,minimum:0,maximum:24},maxzoom:{type:&quot;number&quot;,minimum:0,maximum:24},filter:{type:&quot;filter&quot;},layout:{type:&quot;layout&quot;},paint:{type:&quot;paint&quot;}},layout:[&quot;layout_fill&quot;,&quot;layout_line&quot;,&quot;layout_circle&quot;,&quot;layout_heatmap&quot;,&quot;layout_fill-extrusion&quot;,&quot;layout_symbol&quot;,&quot;layout_raster&quot;,&quot;layout_hillshade&quot;,&quot;layout_background&quot;],layout_background:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_fill:{&quot;fill-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_circle:{&quot;circle-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_heatmap:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},&quot;layout_fill-extrusion&quot;:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_line:{&quot;line-cap&quot;:{type:&quot;enum&quot;,values:{butt:{},round:{},square:{}},default:&quot;butt&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-join&quot;:{type:&quot;enum&quot;,values:{bevel:{},round:{},miter:{}},default:&quot;miter&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-miter-limit&quot;:{type:&quot;number&quot;,default:2,requires:[{&quot;line-join&quot;:&quot;miter&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-round-limit&quot;:{type:&quot;number&quot;,default:1.05,requires:[{&quot;line-join&quot;:&quot;round&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_symbol:{&quot;symbol-placement&quot;:{type:&quot;enum&quot;,values:{point:{},line:{},&quot;line-center&quot;:{}},default:&quot;point&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-spacing&quot;:{type:&quot;number&quot;,default:250,minimum:1,units:&quot;pixels&quot;,requires:[{&quot;symbol-placement&quot;:&quot;line&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-avoid-edges&quot;:{type:&quot;boolean&quot;,default:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;symbol-z-order&quot;:{type:&quot;enum&quot;,values:{auto:{},&quot;viewport-y&quot;:{},source:{}},default:&quot;auto&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-allow-overlap&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-ignore-placement&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-optional&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;,&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-rotation-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-size&quot;:{type:&quot;number&quot;,default:1,minimum:0,units:&quot;factor of the original icon size&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-text-fit&quot;:{type:&quot;enum&quot;,values:{none:{},width:{},height:{},both:{}},default:&quot;none&quot;,requires:[&quot;icon-image&quot;,&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-text-fit-padding&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[0,0,0,0],units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;,&quot;text-field&quot;,{&quot;icon-text-fit&quot;:[&quot;both&quot;,&quot;width&quot;,&quot;height&quot;]}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-image&quot;:{type:&quot;resolvedImage&quot;,tokens:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-padding&quot;:{type:&quot;number&quot;,default:2,minimum:0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-keep-upright&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;,{&quot;icon-rotation-alignment&quot;:&quot;map&quot;},{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-offset&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-anchor&quot;:{type:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},default:&quot;center&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-rotation-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-field&quot;:{type:&quot;formatted&quot;,default:&quot;&quot;,tokens:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-font&quot;:{type:&quot;array&quot;,value:&quot;string&quot;,default:[&quot;Open Sans Regular&quot;,&quot;Arial Unicode MS Regular&quot;],requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-size&quot;:{type:&quot;number&quot;,default:16,minimum:0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-max-width&quot;:{type:&quot;number&quot;,default:10,minimum:0,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-line-height&quot;:{type:&quot;number&quot;,default:1.2,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-letter-spacing&quot;:{type:&quot;number&quot;,default:0,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-justify&quot;:{type:&quot;enum&quot;,values:{auto:{},left:{},center:{},right:{}},default:&quot;center&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-radial-offset&quot;:{type:&quot;number&quot;,units:&quot;ems&quot;,default:0,requires:[&quot;text-field&quot;],&quot;property-type&quot;:&quot;data-driven&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]}},&quot;text-variable-anchor&quot;:{type:&quot;array&quot;,value:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;point&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-anchor&quot;:{type:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},default:&quot;center&quot;,requires:[&quot;text-field&quot;,{&quot;!&quot;:&quot;text-variable-anchor&quot;}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-max-angle&quot;:{type:&quot;number&quot;,default:45,units:&quot;degrees&quot;,requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-writing-mode&quot;:{type:&quot;array&quot;,value:&quot;enum&quot;,values:{horizontal:{},vertical:{}},requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;point&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-padding&quot;:{type:&quot;number&quot;,default:2,minimum:0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-keep-upright&quot;:{type:&quot;boolean&quot;,default:!0,requires:[&quot;text-field&quot;,{&quot;text-rotation-alignment&quot;:&quot;map&quot;},{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-transform&quot;:{type:&quot;enum&quot;,values:{none:{},uppercase:{},lowercase:{}},default:&quot;none&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-offset&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,units:&quot;ems&quot;,length:2,default:[0,0],requires:[&quot;text-field&quot;,{&quot;!&quot;:&quot;text-radial-offset&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-allow-overlap&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-ignore-placement&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-optional&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;,&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_raster:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_hillshade:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},filter:{type:&quot;array&quot;,value:&quot;*&quot;},filter_operator:{type:&quot;enum&quot;,values:{&quot;==&quot;:{},&quot;!=&quot;:{},&quot;&gt;&quot;:{},&quot;&gt;=&quot;:{},&quot;&lt;&quot;:{},&quot;&lt;=&quot;:{},in:{},&quot;!in&quot;:{},all:{},any:{},none:{},has:{},&quot;!has&quot;:{},within:{}}},geometry_type:{type:&quot;enum&quot;,values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:&quot;expression&quot;},stops:{type:&quot;array&quot;,value:&quot;function_stop&quot;},base:{type:&quot;number&quot;,default:1,minimum:0},property:{type:&quot;string&quot;,default:&quot;$zoom&quot;},type:{type:&quot;enum&quot;,values:{identity:{},exponential:{},interval:{},categorical:{}},default:&quot;exponential&quot;},colorSpace:{type:&quot;enum&quot;,values:{rgb:{},lab:{},hcl:{}},default:&quot;rgb&quot;},default:{type:&quot;*&quot;,required:!1}},function_stop:{type:&quot;array&quot;,minimum:0,maximum:24,value:[&quot;number&quot;,&quot;color&quot;],length:2},expression:{type:&quot;array&quot;,value:&quot;*&quot;,minimum:1},expression_name:{type:&quot;enum&quot;,values:{let:{group:&quot;Variable binding&quot;},var:{group:&quot;Variable binding&quot;},literal:{group:&quot;Types&quot;},array:{group:&quot;Types&quot;},at:{group:&quot;Lookup&quot;},in:{group:&quot;Lookup&quot;},&quot;index-of&quot;:{group:&quot;Lookup&quot;},slice:{group:&quot;Lookup&quot;},case:{group:&quot;Decision&quot;},match:{group:&quot;Decision&quot;},coalesce:{group:&quot;Decision&quot;},step:{group:&quot;Ramps, scales, curves&quot;},interpolate:{group:&quot;Ramps, scales, curves&quot;},&quot;interpolate-hcl&quot;:{group:&quot;Ramps, scales, curves&quot;},&quot;interpolate-lab&quot;:{group:&quot;Ramps, scales, curves&quot;},ln2:{group:&quot;Math&quot;},pi:{group:&quot;Math&quot;},e:{group:&quot;Math&quot;},typeof:{group:&quot;Types&quot;},string:{group:&quot;Types&quot;},number:{group:&quot;Types&quot;},boolean:{group:&quot;Types&quot;},object:{group:&quot;Types&quot;},collator:{group:&quot;Types&quot;},format:{group:&quot;Types&quot;},image:{group:&quot;Types&quot;},&quot;number-format&quot;:{group:&quot;Types&quot;},&quot;to-string&quot;:{group:&quot;Types&quot;},&quot;to-number&quot;:{group:&quot;Types&quot;},&quot;to-boolean&quot;:{group:&quot;Types&quot;},&quot;to-rgba&quot;:{group:&quot;Color&quot;},&quot;to-color&quot;:{group:&quot;Types&quot;},rgb:{group:&quot;Color&quot;},rgba:{group:&quot;Color&quot;},get:{group:&quot;Lookup&quot;},has:{group:&quot;Lookup&quot;},length:{group:&quot;Lookup&quot;},properties:{group:&quot;Feature data&quot;},&quot;feature-state&quot;:{group:&quot;Feature data&quot;},&quot;geometry-type&quot;:{group:&quot;Feature data&quot;},id:{group:&quot;Feature data&quot;},zoom:{group:&quot;Zoom&quot;},&quot;heatmap-density&quot;:{group:&quot;Heatmap&quot;},&quot;line-progress&quot;:{group:&quot;Feature data&quot;},accumulated:{group:&quot;Feature data&quot;},&quot;+&quot;:{group:&quot;Math&quot;},&quot;*&quot;:{group:&quot;Math&quot;},&quot;-&quot;:{group:&quot;Math&quot;},&quot;/&quot;:{group:&quot;Math&quot;},&quot;%&quot;:{group:&quot;Math&quot;},&quot;^&quot;:{group:&quot;Math&quot;},sqrt:{group:&quot;Math&quot;},log10:{group:&quot;Math&quot;},ln:{group:&quot;Math&quot;},log2:{group:&quot;Math&quot;},sin:{group:&quot;Math&quot;},cos:{group:&quot;Math&quot;},tan:{group:&quot;Math&quot;},asin:{group:&quot;Math&quot;},acos:{group:&quot;Math&quot;},atan:{group:&quot;Math&quot;},min:{group:&quot;Math&quot;},max:{group:&quot;Math&quot;},round:{group:&quot;Math&quot;},abs:{group:&quot;Math&quot;},ceil:{group:&quot;Math&quot;},floor:{group:&quot;Math&quot;},distance:{group:&quot;Math&quot;},&quot;==&quot;:{group:&quot;Decision&quot;},&quot;!=&quot;:{group:&quot;Decision&quot;},&quot;&gt;&quot;:{group:&quot;Decision&quot;},&quot;&lt;&quot;:{group:&quot;Decision&quot;},&quot;&gt;=&quot;:{group:&quot;Decision&quot;},&quot;&lt;=&quot;:{group:&quot;Decision&quot;},all:{group:&quot;Decision&quot;},any:{group:&quot;Decision&quot;},&quot;!&quot;:{group:&quot;Decision&quot;},within:{group:&quot;Decision&quot;},&quot;is-supported-script&quot;:{group:&quot;String&quot;},upcase:{group:&quot;String&quot;},downcase:{group:&quot;String&quot;},concat:{group:&quot;String&quot;},&quot;resolved-locale&quot;:{group:&quot;String&quot;}}},light:{anchor:{type:&quot;enum&quot;,default:&quot;viewport&quot;,values:{map:{},viewport:{}},&quot;property-type&quot;:&quot;data-constant&quot;,transition:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]}},position:{type:&quot;array&quot;,default:[1.15,210,30],length:3,value:&quot;number&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]}},color:{type:&quot;color&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,default:&quot;#ffffff&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},transition:!0},intensity:{type:&quot;number&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},transition:!0}},paint:[&quot;paint_fill&quot;,&quot;paint_line&quot;,&quot;paint_circle&quot;,&quot;paint_heatmap&quot;,&quot;paint_fill-extrusion&quot;,&quot;paint_symbol&quot;,&quot;paint_raster&quot;,&quot;paint_hillshade&quot;,&quot;paint_background&quot;],paint_fill:{&quot;fill-antialias&quot;:{type:&quot;boolean&quot;,default:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-outline-color&quot;:{type:&quot;color&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-pattern&quot;},{&quot;fill-antialias&quot;:!0}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;fill-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;}},&quot;paint_fill-extrusion&quot;:{&quot;fill-extrusion-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-extrusion-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;fill-extrusion-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;},&quot;fill-extrusion-height&quot;:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;meters&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-base&quot;:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;meters&quot;,transition:!0,requires:[&quot;fill-extrusion-height&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-vertical-gradient&quot;:{type:&quot;boolean&quot;,default:!0,transition:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_line:{&quot;line-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;line-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;line-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-width&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-gap-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-offset&quot;:{type:&quot;number&quot;,default:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-dasharray&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,minimum:0,transition:!0,units:&quot;line widths&quot;,requires:[{&quot;!&quot;:&quot;line-pattern&quot;}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;cross-faded&quot;},&quot;line-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;},&quot;line-gradient&quot;:{type:&quot;color&quot;,transition:!1,requires:[{&quot;!&quot;:&quot;line-dasharray&quot;},{&quot;!&quot;:&quot;line-pattern&quot;},{source:&quot;geojson&quot;,has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:[&quot;line-progress&quot;]},&quot;property-type&quot;:&quot;color-ramp&quot;}},paint_circle:{&quot;circle-radius&quot;:{type:&quot;number&quot;,default:5,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-blur&quot;:{type:&quot;number&quot;,default:0,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;circle-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-pitch-scale&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;viewport&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-stroke-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-stroke-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-stroke-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;}},paint_heatmap:{&quot;heatmap-radius&quot;:{type:&quot;number&quot;,default:30,minimum:1,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;heatmap-weight&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;heatmap-intensity&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;heatmap-color&quot;:{type:&quot;color&quot;,default:[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;heatmap-density&quot;],0,&quot;rgba(0, 0, 255, 0)&quot;,.1,&quot;royalblue&quot;,.3,&quot;cyan&quot;,.5,&quot;lime&quot;,.7,&quot;yellow&quot;,1,&quot;red&quot;],transition:!1,expression:{interpolated:!0,parameters:[&quot;heatmap-density&quot;]},&quot;property-type&quot;:&quot;color-ramp&quot;},&quot;heatmap-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_symbol:{&quot;icon-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-color&quot;:{type:&quot;color&quot;,default:&quot;rgba(0, 0, 0, 0)&quot;,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;icon-image&quot;,&quot;icon-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,overridable:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-color&quot;:{type:&quot;color&quot;,default:&quot;rgba(0, 0, 0, 0)&quot;,transition:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;text-field&quot;,&quot;text-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_raster:{&quot;raster-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-hue-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,transition:!0,units:&quot;degrees&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-brightness-min&quot;:{type:&quot;number&quot;,default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-brightness-max&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-saturation&quot;:{type:&quot;number&quot;,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-contrast&quot;:{type:&quot;number&quot;,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-resampling&quot;:{type:&quot;enum&quot;,values:{linear:{},nearest:{}},default:&quot;linear&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-fade-duration&quot;:{type:&quot;number&quot;,default:300,minimum:0,transition:!1,units:&quot;milliseconds&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_hillshade:{&quot;hillshade-illumination-direction&quot;:{type:&quot;number&quot;,default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-illumination-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;viewport&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-exaggeration&quot;:{type:&quot;number&quot;,default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-shadow-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-highlight-color&quot;:{type:&quot;color&quot;,default:&quot;#FFFFFF&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-accent-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_background:{&quot;background-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;background-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;background-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;cross-faded&quot;},&quot;background-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},transition:{duration:{type:&quot;number&quot;,default:300,minimum:0,units:&quot;milliseconds&quot;},delay:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;milliseconds&quot;}},&quot;property-type&quot;:{&quot;data-driven&quot;:{type:&quot;property-type&quot;},&quot;cross-faded&quot;:{type:&quot;property-type&quot;},&quot;cross-faded-data-driven&quot;:{type:&quot;property-type&quot;},&quot;color-ramp&quot;:{type:&quot;property-type&quot;},&quot;data-constant&quot;:{type:&quot;property-type&quot;},constant:{type:&quot;property-type&quot;}},promoteId:{&quot;*&quot;:{type:&quot;string&quot;}}},St=function(t,e,r,n){this.message=(t?t+&quot;: &quot;:&quot;&quot;)+r,n&amp;&amp;(this.identifier=n),null!=e&amp;&amp;e.__line__&amp;&amp;(this.line=e.__line__)};function Et(t){var e=t.value;return e?[new St(t.key,e,&quot;constants have been deprecated as of v8&quot;)]:[]}function Ct(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}function Lt(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function It(t){if(Array.isArray(t))return t.map(It);if(t instanceof Object&amp;&amp;!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var r in t)e[r]=It(t[r]);return e}return Lt(t)}var Pt=function(t){function e(e,r){t.call(this,r),this.message=r,this.key=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(Error),zt=function(t,e){void 0===e&amp;&amp;(e=[]),this.parent=t,this.bindings={};for(var r=0,n=e;r&lt;n.length;r+=1){var i=n[r];this.bindings[i[0]]=i[1]}};zt.prototype.concat=function(t){return new zt(this,t)},zt.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+&quot; not found in scope.&quot;)},zt.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&amp;&amp;this.parent.has(t)};var Ot={kind:&quot;null&quot;},Dt={kind:&quot;number&quot;},Rt={kind:&quot;string&quot;},Ft={kind:&quot;boolean&quot;},Bt={kind:&quot;color&quot;},Nt={kind:&quot;object&quot;},jt={kind:&quot;value&quot;},Ut={kind:&quot;collator&quot;},Vt={kind:&quot;formatted&quot;},qt={kind:&quot;resolvedImage&quot;};function Ht(t,e){return{kind:&quot;array&quot;,itemType:t,N:e}}function Gt(t){if(&quot;array&quot;===t.kind){var e=Gt(t.itemType);return&quot;number&quot;==typeof t.N?&quot;array&lt;&quot;+e+&quot;, &quot;+t.N+&quot;&gt;&quot;:&quot;value&quot;===t.itemType.kind?&quot;array&quot;:&quot;array&lt;&quot;+e+&quot;&gt;&quot;}return t.kind}var Yt=[Ot,Dt,Rt,Ft,Bt,Vt,Nt,Ht(jt),qt];function Wt(t,e){if(&quot;error&quot;===e.kind)return null;if(&quot;array&quot;===t.kind){if(&quot;array&quot;===e.kind&amp;&amp;(0===e.N&amp;&amp;&quot;value&quot;===e.itemType.kind||!Wt(t.itemType,e.itemType))&amp;&amp;(&quot;number&quot;!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(&quot;value&quot;===t.kind)for(var r=0,n=Yt;r&lt;n.length;r+=1)if(!Wt(n[r],e))return null}return&quot;Expected &quot;+Gt(t)+&quot; but found &quot;+Gt(e)+&quot; instead.&quot;}function Xt(t,e){return e.some((function(e){return e.kind===t.kind}))}function Zt(t,e){return e.some((function(e){return&quot;null&quot;===e?null===t:&quot;array&quot;===e?Array.isArray(t):&quot;object&quot;===e?t&amp;&amp;!Array.isArray(t)&amp;&amp;&quot;object&quot;==typeof t:e===typeof t}))}var Jt=e((function(t,e){var r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function n(t){return(t=Math.round(t))&lt;0?0:t&gt;255?255:t}function i(t){return n(&quot;%&quot;===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function a(t){return(e=&quot;%&quot;===t[t.length-1]?parseFloat(t)/100:parseFloat(t))&lt;0?0:e&gt;1?1:e;var e}function o(t,e,r){return r&lt;0?r+=1:r&gt;1&amp;&amp;(r-=1),6*r&lt;1?t+(e-t)*r*6:2*r&lt;1?e:3*r&lt;2?t+(e-t)*(2/3-r)*6:t}try{e.parseCSSColor=function(t){var e,s=t.replace(/ /g,&quot;&quot;).toLowerCase();if(s in r)return r[s].slice();if(&quot;#&quot;===s[0])return 4===s.length?(e=parseInt(s.substr(1),16))&gt;=0&amp;&amp;e&lt;=4095?[(3840&amp;e)&gt;&gt;4|(3840&amp;e)&gt;&gt;8,240&amp;e|(240&amp;e)&gt;&gt;4,15&amp;e|(15&amp;e)&lt;&lt;4,1]:null:7===s.length&amp;&amp;(e=parseInt(s.substr(1),16))&gt;=0&amp;&amp;e&lt;=16777215?[(16711680&amp;e)&gt;&gt;16,(65280&amp;e)&gt;&gt;8,255&amp;e,1]:null;var l=s.indexOf(&quot;(&quot;),c=s.indexOf(&quot;)&quot;);if(-1!==l&amp;&amp;c+1===s.length){var u=s.substr(0,l),f=s.substr(l+1,c-(l+1)).split(&quot;,&quot;),h=1;switch(u){case&quot;rgba&quot;:if(4!==f.length)return null;h=a(f.pop());case&quot;rgb&quot;:return 3!==f.length?null:[i(f[0]),i(f[1]),i(f[2]),h];case&quot;hsla&quot;:if(4!==f.length)return null;h=a(f.pop());case&quot;hsl&quot;:if(3!==f.length)return null;var p=(parseFloat(f[0])%360+360)%360/360,d=a(f[1]),g=a(f[2]),m=g&lt;=.5?g*(d+1):g+d-g*d,v=2*g-m;return[n(255*o(v,m,p+1/3)),n(255*o(v,m,p)),n(255*o(v,m,p-1/3)),h];default:return null}}return null}}catch(t){}})).parseCSSColor,Kt=function(t,e,r,n){void 0===n&amp;&amp;(n=1),this.r=t,this.g=e,this.b=r,this.a=n};Kt.parse=function(t){if(t){if(t instanceof Kt)return t;if(&quot;string&quot;==typeof t){var e=Jt(t);if(e)return new Kt(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},Kt.prototype.toString=function(){var t=this.toArray(),e=t[1],r=t[2],n=t[3];return&quot;rgba(&quot;+Math.round(t[0])+&quot;,&quot;+Math.round(e)+&quot;,&quot;+Math.round(r)+&quot;,&quot;+n+&quot;)&quot;},Kt.prototype.toArray=function(){var t=this.a;return 0===t?[0,0,0,0]:[255*this.r/t,255*this.g/t,255*this.b/t,t]},Kt.black=new Kt(0,0,0,1),Kt.white=new Kt(1,1,1,1),Kt.transparent=new Kt(0,0,0,0),Kt.red=new Kt(1,0,0,1);var Qt=function(t,e,r){this.sensitivity=t?e?&quot;variant&quot;:&quot;case&quot;:e?&quot;accent&quot;:&quot;base&quot;,this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:&quot;search&quot;})};Qt.prototype.compare=function(t,e){return this.collator.compare(t,e)},Qt.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var $t=function(t,e,r,n,i){this.text=t,this.image=e,this.scale=r,this.fontStack=n,this.textColor=i},te=function(t){this.sections=t};te.fromString=function(t){return new te([new $t(t,null,null,null,null)])},te.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&amp;&amp;0!==t.image.name.length}))},te.factory=function(t){return t instanceof te?t:te.fromString(t)},te.prototype.toString=function(){return 0===this.sections.length?&quot;&quot;:this.sections.map((function(t){return t.text})).join(&quot;&quot;)},te.prototype.serialize=function(){for(var t=[&quot;format&quot;],e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];if(n.image)t.push([&quot;image&quot;,n.image.name]);else{t.push(n.text);var i={};n.fontStack&amp;&amp;(i[&quot;text-font&quot;]=[&quot;literal&quot;,n.fontStack.split(&quot;,&quot;)]),n.scale&amp;&amp;(i[&quot;font-scale&quot;]=n.scale),n.textColor&amp;&amp;(i[&quot;text-color&quot;]=[&quot;rgba&quot;].concat(n.textColor.toArray())),t.push(i)}}return t};var ee=function(t){this.name=t.name,this.available=t.available};function re(t,e,r,n){return&quot;number&quot;==typeof t&amp;&amp;t&gt;=0&amp;&amp;t&lt;=255&amp;&amp;&quot;number&quot;==typeof e&amp;&amp;e&gt;=0&amp;&amp;e&lt;=255&amp;&amp;&quot;number&quot;==typeof r&amp;&amp;r&gt;=0&amp;&amp;r&lt;=255?void 0===n||&quot;number&quot;==typeof n&amp;&amp;n&gt;=0&amp;&amp;n&lt;=1?null:&quot;Invalid rgba value [&quot;+[t,e,r,n].join(&quot;, &quot;)+&quot;]: 'a' must be between 0 and 1.&quot;:&quot;Invalid rgba value [&quot;+(&quot;number&quot;==typeof n?[t,e,r,n]:[t,e,r]).join(&quot;, &quot;)+&quot;]: 'r', 'g', and 'b' must be between 0 and 255.&quot;}function ne(t){if(null===t)return!0;if(&quot;string&quot;==typeof t)return!0;if(&quot;boolean&quot;==typeof t)return!0;if(&quot;number&quot;==typeof t)return!0;if(t instanceof Kt)return!0;if(t instanceof Qt)return!0;if(t instanceof te)return!0;if(t instanceof ee)return!0;if(Array.isArray(t)){for(var e=0,r=t;e&lt;r.length;e+=1)if(!ne(r[e]))return!1;return!0}if(&quot;object&quot;==typeof t){for(var n in t)if(!ne(t[n]))return!1;return!0}return!1}function ie(t){if(null===t)return Ot;if(&quot;string&quot;==typeof t)return Rt;if(&quot;boolean&quot;==typeof t)return Ft;if(&quot;number&quot;==typeof t)return Dt;if(t instanceof Kt)return Bt;if(t instanceof Qt)return Ut;if(t instanceof te)return Vt;if(t instanceof ee)return qt;if(Array.isArray(t)){for(var e,r=t.length,n=0,i=t;n&lt;i.length;n+=1){var a=ie(i[n]);if(e){if(e===a)continue;e=jt;break}e=a}return Ht(e||jt,r)}return Nt}function ae(t){var e=typeof t;return null===t?&quot;&quot;:&quot;string&quot;===e||&quot;number&quot;===e||&quot;boolean&quot;===e?String(t):t instanceof Kt||t instanceof te||t instanceof ee?t.toString():JSON.stringify(t)}ee.prototype.toString=function(){return this.name},ee.fromString=function(t){return t?new ee({name:t,available:!1}):null},ee.prototype.serialize=function(){return[&quot;image&quot;,this.name]};var oe=function(t,e){this.type=t,this.value=e};oe.parse=function(t,e){if(2!==t.length)return e.error(&quot;'literal' expression requires exactly one argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);if(!ne(t[1]))return e.error(&quot;invalid value&quot;);var r=t[1],n=ie(r),i=e.expectedType;return&quot;array&quot;!==n.kind||0!==n.N||!i||&quot;array&quot;!==i.kind||&quot;number&quot;==typeof i.N&amp;&amp;0!==i.N||(n=i),new oe(n,r)},oe.prototype.evaluate=function(){return this.value},oe.prototype.eachChild=function(){},oe.prototype.outputDefined=function(){return!0},oe.prototype.serialize=function(){return&quot;array&quot;===this.type.kind||&quot;object&quot;===this.type.kind?[&quot;literal&quot;,this.value]:this.value instanceof Kt?[&quot;rgba&quot;].concat(this.value.toArray()):this.value instanceof te?this.value.serialize():this.value};var se=function(t){this.name=&quot;ExpressionEvaluationError&quot;,this.message=t};se.prototype.toJSON=function(){return this.message};var le={string:Rt,number:Dt,boolean:Ft,object:Nt},ce=function(t,e){this.type=t,this.args=e};ce.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r,n=1,i=t[0];if(&quot;array&quot;===i){var a,o;if(t.length&gt;2){var s=t[1];if(&quot;string&quot;!=typeof s||!(s in le)||&quot;object&quot;===s)return e.error('The item type argument of &quot;array&quot; must be one of string, number, boolean',1);a=le[s],n++}else a=jt;if(t.length&gt;3){if(null!==t[2]&amp;&amp;(&quot;number&quot;!=typeof t[2]||t[2]&lt;0||t[2]!==Math.floor(t[2])))return e.error('The length argument to &quot;array&quot; must be a positive integer literal',2);o=t[2],n++}r=Ht(a,o)}else r=le[i];for(var l=[];n&lt;t.length;n++){var c=e.parse(t[n],n,jt);if(!c)return null;l.push(c)}return new ce(r,l)},ce.prototype.evaluate=function(t){for(var e=0;e&lt;this.args.length;e++){var r=this.args[e].evaluate(t);if(!Wt(this.type,ie(r)))return r;if(e===this.args.length-1)throw new se(&quot;Expected value to be of type &quot;+Gt(this.type)+&quot;, but found &quot;+Gt(ie(r))+&quot; instead.&quot;)}return null},ce.prototype.eachChild=function(t){this.args.forEach(t)},ce.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ce.prototype.serialize=function(){var t=this.type,e=[t.kind];if(&quot;array&quot;===t.kind){var r=t.itemType;if(&quot;string&quot;===r.kind||&quot;number&quot;===r.kind||&quot;boolean&quot;===r.kind){e.push(r.kind);var n=t.N;(&quot;number&quot;==typeof n||this.args.length&gt;1)&amp;&amp;e.push(n)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var ue=function(t){this.type=Vt,this.sections=t};ue.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r=t[1];if(!Array.isArray(r)&amp;&amp;&quot;object&quot;==typeof r)return e.error(&quot;First argument must be an image or text section.&quot;);for(var n=[],i=!1,a=1;a&lt;=t.length-1;++a){var o=t[a];if(i&amp;&amp;&quot;object&quot;==typeof o&amp;&amp;!Array.isArray(o)){i=!1;var s=null;if(o[&quot;font-scale&quot;]&amp;&amp;!(s=e.parse(o[&quot;font-scale&quot;],1,Dt)))return null;var l=null;if(o[&quot;text-font&quot;]&amp;&amp;!(l=e.parse(o[&quot;text-font&quot;],1,Ht(Rt))))return null;var c=null;if(o[&quot;text-color&quot;]&amp;&amp;!(c=e.parse(o[&quot;text-color&quot;],1,Bt)))return null;var u=n[n.length-1];u.scale=s,u.font=l,u.textColor=c}else{var f=e.parse(t[a],1,jt);if(!f)return null;var h=f.type.kind;if(&quot;string&quot;!==h&amp;&amp;&quot;value&quot;!==h&amp;&amp;&quot;null&quot;!==h&amp;&amp;&quot;resolvedImage&quot;!==h)return e.error(&quot;Formatted text type must be 'string', 'value', 'image' or 'null'.&quot;);i=!0,n.push({content:f,scale:null,font:null,textColor:null})}}return new ue(n)},ue.prototype.evaluate=function(t){return new te(this.sections.map((function(e){var r=e.content.evaluate(t);return ie(r)===qt?new $t(&quot;&quot;,r,null,null,null):new $t(ae(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(&quot;,&quot;):null,e.textColor?e.textColor.evaluate(t):null)})))},ue.prototype.eachChild=function(t){for(var e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];t(n.content),n.scale&amp;&amp;t(n.scale),n.font&amp;&amp;t(n.font),n.textColor&amp;&amp;t(n.textColor)}},ue.prototype.outputDefined=function(){return!1},ue.prototype.serialize=function(){for(var t=[&quot;format&quot;],e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];t.push(n.content.serialize());var i={};n.scale&amp;&amp;(i[&quot;font-scale&quot;]=n.scale.serialize()),n.font&amp;&amp;(i[&quot;text-font&quot;]=n.font.serialize()),n.textColor&amp;&amp;(i[&quot;text-color&quot;]=n.textColor.serialize()),t.push(i)}return t};var fe=function(t){this.type=qt,this.input=t};fe.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected two arguments.&quot;);var r=e.parse(t[1],1,Rt);return r?new fe(r):e.error(&quot;No image name provided.&quot;)},fe.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=ee.fromString(e);return r&amp;&amp;t.availableImages&amp;&amp;(r.available=t.availableImages.indexOf(e)&gt;-1),r},fe.prototype.eachChild=function(t){t(this.input)},fe.prototype.outputDefined=function(){return!1},fe.prototype.serialize=function(){return[&quot;image&quot;,this.input.serialize()]};var he={&quot;to-boolean&quot;:Ft,&quot;to-color&quot;:Bt,&quot;to-number&quot;:Dt,&quot;to-string&quot;:Rt},pe=function(t,e){this.type=t,this.args=e};pe.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r=t[0];if((&quot;to-boolean&quot;===r||&quot;to-string&quot;===r)&amp;&amp;2!==t.length)return e.error(&quot;Expected one argument.&quot;);for(var n=he[r],i=[],a=1;a&lt;t.length;a++){var o=e.parse(t[a],a,jt);if(!o)return null;i.push(o)}return new pe(n,i)},pe.prototype.evaluate=function(t){if(&quot;boolean&quot;===this.type.kind)return Boolean(this.args[0].evaluate(t));if(&quot;color&quot;===this.type.kind){for(var e,r,n=0,i=this.args;n&lt;i.length;n+=1){if(r=null,(e=i[n].evaluate(t))instanceof Kt)return e;if(&quot;string&quot;==typeof e){var a=t.parseColor(e);if(a)return a}else if(Array.isArray(e)&amp;&amp;!(r=e.length&lt;3||e.length&gt;4?&quot;Invalid rbga value &quot;+JSON.stringify(e)+&quot;: expected an array containing either three or four numeric values.&quot;:re(e[0],e[1],e[2],e[3])))return new Kt(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new se(r||&quot;Could not parse color from value '&quot;+(&quot;string&quot;==typeof e?e:String(JSON.stringify(e)))+&quot;'&quot;)}if(&quot;number&quot;===this.type.kind){for(var o=null,s=0,l=this.args;s&lt;l.length;s+=1){if(null===(o=l[s].evaluate(t)))return 0;var c=Number(o);if(!isNaN(c))return c}throw new se(&quot;Could not convert &quot;+JSON.stringify(o)+&quot; to number.&quot;)}return&quot;formatted&quot;===this.type.kind?te.fromString(ae(this.args[0].evaluate(t))):&quot;resolvedImage&quot;===this.type.kind?ee.fromString(ae(this.args[0].evaluate(t))):ae(this.args[0].evaluate(t))},pe.prototype.eachChild=function(t){this.args.forEach(t)},pe.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},pe.prototype.serialize=function(){if(&quot;formatted&quot;===this.type.kind)return new ue([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(&quot;resolvedImage&quot;===this.type.kind)return new fe(this.args[0]).serialize();var t=[&quot;to-&quot;+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};var de=[&quot;Unknown&quot;,&quot;Point&quot;,&quot;LineString&quot;,&quot;Polygon&quot;],ge=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};ge.prototype.id=function(){return this.feature&amp;&amp;&quot;id&quot;in this.feature?this.feature.id:null},ge.prototype.geometryType=function(){return this.feature?&quot;number&quot;==typeof this.feature.type?de[this.feature.type]:this.feature.type:null},ge.prototype.geometry=function(){return this.feature&amp;&amp;&quot;geometry&quot;in this.feature?this.feature.geometry:null},ge.prototype.canonicalID=function(){return this.canonical},ge.prototype.properties=function(){return this.feature&amp;&amp;this.feature.properties||{}},ge.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=Kt.parse(t)),e};var me=function(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n};me.prototype.evaluate=function(t){return this._evaluate(t,this.args)},me.prototype.eachChild=function(t){this.args.forEach(t)},me.prototype.outputDefined=function(){return!1},me.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},me.parse=function(t,e){var r,n=t[0],i=me.definitions[n];if(!i)return e.error('Unknown expression &quot;'+n+'&quot;. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0);for(var a=Array.isArray(i)?i[0]:i.type,o=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=o.filter((function(e){var r=e[0];return!Array.isArray(r)||r.length===t.length-1})),l=null,c=0,u=s;c&lt;u.length;c+=1){var f=u[c],h=f[0],p=f[1];l=new Be(e.registry,e.path,null,e.scope);for(var d=[],g=!1,m=1;m&lt;t.length;m++){var v=t[m],y=Array.isArray(h)?h[m-1]:h.type,x=l.parse(v,1+d.length,y);if(!x){g=!0;break}d.push(x)}if(!g)if(Array.isArray(h)&amp;&amp;h.length!==d.length)l.error(&quot;Expected &quot;+h.length+&quot; arguments, but found &quot;+d.length+&quot; instead.&quot;);else{for(var b=0;b&lt;d.length;b++){var _=Array.isArray(h)?h[b]:h.type,w=d[b];l.concat(b+1).checkSubtype(_,w.type)}if(0===l.errors.length)return new me(n,a,p,d)}}if(1===s.length)(r=e.errors).push.apply(r,l.errors);else{for(var T=(s.length?s:o).map((function(t){var e;return e=t[0],Array.isArray(e)?&quot;(&quot;+e.map(Gt).join(&quot;, &quot;)+&quot;)&quot;:&quot;(&quot;+Gt(e.type)+&quot;...)&quot;})).join(&quot; | &quot;),k=[],M=1;M&lt;t.length;M++){var A=e.parse(t[M],1+k.length);if(!A)return null;k.push(Gt(A.type))}e.error(&quot;Expected arguments of type &quot;+T+&quot;, but found (&quot;+k.join(&quot;, &quot;)+&quot;) instead.&quot;)}return null},me.register=function(t,e){for(var r in me.definitions=e,e)t[r]=me};var ve=function(t,e,r){this.type=Ut,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};function ye(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function xe(t,e){return!(t[0]&lt;=e[0]||t[2]&gt;=e[2]||t[1]&lt;=e[1]||t[3]&gt;=e[3])}function be(t,e){var r=(180+t[0])/360,n=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,i=Math.pow(2,e.z);return[Math.round(r*i*8192),Math.round(n*i*8192)]}function _e(t,e,r){return e[1]&gt;t[1]!=r[1]&gt;t[1]&amp;&amp;t[0]&lt;(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function we(t,e){for(var r,n,i,a,o,s,l,c=!1,u=0,f=e.length;u&lt;f;u++)for(var h=e[u],p=0,d=h.length;p&lt;d-1;p++){if((a=(r=t)[0]-(n=h[p])[0])*(l=r[1]-(i=h[p+1])[1])-(s=r[0]-i[0])*(o=r[1]-n[1])==0&amp;&amp;a*s&lt;=0&amp;&amp;o*l&lt;=0)return!1;_e(t,h[p],h[p+1])&amp;&amp;(c=!c)}return c}function Te(t,e){for(var r=0;r&lt;e.length;r++)if(we(t,e[r]))return!0;return!1}function ke(t,e,r,n){var i=n[0]-r[0],a=n[1]-r[1],o=(t[0]-r[0])*a-i*(t[1]-r[1]),s=(e[0]-r[0])*a-i*(e[1]-r[1]);return o&gt;0&amp;&amp;s&lt;0||o&lt;0&amp;&amp;s&gt;0}function Me(t,e,r){for(var n=0,i=r;n&lt;i.length;n+=1)for(var a=i[n],o=0;o&lt;a.length-1;++o)if(0!=(f=[(u=a[o+1])[0]-(c=a[o])[0],u[1]-c[1]])[0]*(h=[(l=e)[0]-(s=t)[0],l[1]-s[1]])[1]-f[1]*h[0]&amp;&amp;ke(s,l,c,u)&amp;&amp;ke(c,u,s,l))return!0;var s,l,c,u,f,h;return!1}function Ae(t,e){for(var r=0;r&lt;t.length;++r)if(!we(t[r],e))return!1;for(var n=0;n&lt;t.length-1;++n)if(Me(t[n],t[n+1],e))return!1;return!0}function Se(t,e){for(var r=0;r&lt;e.length;r++)if(Ae(t,e[r]))return!0;return!1}function Ee(t,e,r){for(var n=[],i=0;i&lt;t.length;i++){for(var a=[],o=0;o&lt;t[i].length;o++){var s=be(t[i][o],r);ye(e,s),a.push(s)}n.push(a)}return n}function Ce(t,e,r){for(var n=[],i=0;i&lt;t.length;i++){var a=Ee(t[i],e,r);n.push(a)}return n}function Le(t,e,r,n){if(t[0]&lt;r[0]||t[0]&gt;r[2]){var i=.5*n,a=t[0]-r[0]&gt;i?-n:r[0]-t[0]&gt;i?n:0;0===a&amp;&amp;(a=t[0]-r[2]&gt;i?-n:r[2]-t[0]&gt;i?n:0),t[0]+=a}ye(e,t)}function Ie(t,e,r,n){for(var i=8192*Math.pow(2,n.z),a=[8192*n.x,8192*n.y],o=[],s=0,l=t;s&lt;l.length;s+=1)for(var c=0,u=l[s];c&lt;u.length;c+=1){var f=u[c],h=[f.x+a[0],f.y+a[1]];Le(h,e,r,i),o.push(h)}return o}function Pe(t,e,r,n){for(var i,a=8192*Math.pow(2,n.z),o=[8192*n.x,8192*n.y],s=[],l=0,c=t;l&lt;c.length;l+=1){for(var u=[],f=0,h=c[l];f&lt;h.length;f+=1){var p=h[f],d=[p.x+o[0],p.y+o[1]];ye(e,d),u.push(d)}s.push(u)}if(e[2]-e[0]&lt;=a/2){(i=e)[0]=i[1]=1/0,i[2]=i[3]=-1/0;for(var g=0,m=s;g&lt;m.length;g+=1)for(var v=0,y=m[g];v&lt;y.length;v+=1)Le(y[v],e,r,a)}return s}ve.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected one argument.&quot;);var r=t[1];if(&quot;object&quot;!=typeof r||Array.isArray(r))return e.error(&quot;Collator options argument must be an object.&quot;);var n=e.parse(void 0!==r[&quot;case-sensitive&quot;]&amp;&amp;r[&quot;case-sensitive&quot;],1,Ft);if(!n)return null;var i=e.parse(void 0!==r[&quot;diacritic-sensitive&quot;]&amp;&amp;r[&quot;diacritic-sensitive&quot;],1,Ft);if(!i)return null;var a=null;return r.locale&amp;&amp;!(a=e.parse(r.locale,1,Rt))?null:new ve(n,i,a)},ve.prototype.evaluate=function(t){return new Qt(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},ve.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&amp;&amp;t(this.locale)},ve.prototype.outputDefined=function(){return!1},ve.prototype.serialize=function(){var t={};return t[&quot;case-sensitive&quot;]=this.caseSensitive.serialize(),t[&quot;diacritic-sensitive&quot;]=this.diacriticSensitive.serialize(),this.locale&amp;&amp;(t.locale=this.locale.serialize()),[&quot;collator&quot;,t]};var ze=function(t,e){this.type=Ft,this.geojson=t,this.geometries=e};function Oe(t){if(t instanceof me){if(&quot;get&quot;===t.name&amp;&amp;1===t.args.length)return!1;if(&quot;feature-state&quot;===t.name)return!1;if(&quot;has&quot;===t.name&amp;&amp;1===t.args.length)return!1;if(&quot;properties&quot;===t.name||&quot;geometry-type&quot;===t.name||&quot;id&quot;===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof ze)return!1;var e=!0;return t.eachChild((function(t){e&amp;&amp;!Oe(t)&amp;&amp;(e=!1)})),e}function De(t){if(t instanceof me&amp;&amp;&quot;feature-state&quot;===t.name)return!1;var e=!0;return t.eachChild((function(t){e&amp;&amp;!De(t)&amp;&amp;(e=!1)})),e}function Re(t,e){if(t instanceof me&amp;&amp;e.indexOf(t.name)&gt;=0)return!1;var r=!0;return t.eachChild((function(t){r&amp;&amp;!Re(t,e)&amp;&amp;(r=!1)})),r}ze.parse=function(t,e){if(2!==t.length)return e.error(&quot;'within' expression requires exactly one argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);if(ne(t[1])){var r=t[1];if(&quot;FeatureCollection&quot;===r.type)for(var n=0;n&lt;r.features.length;++n){var i=r.features[n].geometry.type;if(&quot;Polygon&quot;===i||&quot;MultiPolygon&quot;===i)return new ze(r,r.features[n].geometry)}else if(&quot;Feature&quot;===r.type){var a=r.geometry.type;if(&quot;Polygon&quot;===a||&quot;MultiPolygon&quot;===a)return new ze(r,r.geometry)}else if(&quot;Polygon&quot;===r.type||&quot;MultiPolygon&quot;===r.type)return new ze(r,r)}return e.error(&quot;'within' expression requires valid geojson object that contains polygon geometry type.&quot;)},ze.prototype.evaluate=function(t){if(null!=t.geometry()&amp;&amp;null!=t.canonicalID()){if(&quot;Point&quot;===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(&quot;Polygon&quot;===e.type){var a=Ee(e.coordinates,n,i),o=Ie(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var s=0,l=o;s&lt;l.length;s+=1)if(!we(l[s],a))return!1}if(&quot;MultiPolygon&quot;===e.type){var c=Ce(e.coordinates,n,i),u=Ie(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var f=0,h=u;f&lt;h.length;f+=1)if(!Te(h[f],c))return!1}return!0}(t,this.geometries);if(&quot;LineString&quot;===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(&quot;Polygon&quot;===e.type){var a=Ee(e.coordinates,n,i),o=Pe(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var s=0,l=o;s&lt;l.length;s+=1)if(!Ae(l[s],a))return!1}if(&quot;MultiPolygon&quot;===e.type){var c=Ce(e.coordinates,n,i),u=Pe(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var f=0,h=u;f&lt;h.length;f+=1)if(!Se(h[f],c))return!1}return!0}(t,this.geometries)}return!1},ze.prototype.eachChild=function(){},ze.prototype.outputDefined=function(){return!0},ze.prototype.serialize=function(){return[&quot;within&quot;,this.geojson]};var Fe=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};Fe.parse=function(t,e){if(2!==t.length||&quot;string&quot;!=typeof t[1])return e.error(&quot;'var' expression requires exactly one string literal argument.&quot;);var r=t[1];return e.scope.has(r)?new Fe(r,e.scope.get(r)):e.error('Unknown variable &quot;'+r+'&quot;. Make sure &quot;'+r+'&quot; has been bound in an enclosing &quot;let&quot; expression before using it.',1)},Fe.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},Fe.prototype.eachChild=function(){},Fe.prototype.outputDefined=function(){return!1},Fe.prototype.serialize=function(){return[&quot;var&quot;,this.name]};var Be=function(t,e,r,n,i){void 0===e&amp;&amp;(e=[]),void 0===n&amp;&amp;(n=new zt),void 0===i&amp;&amp;(i=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return&quot;[&quot;+t+&quot;]&quot;})).join(&quot;&quot;),this.scope=n,this.errors=i,this.expectedType=r};function Ne(t,e){for(var r,n=t.length-1,i=0,a=n,o=0;i&lt;=a;)if((r=t[o=Math.floor((i+a)/2)])&lt;=e){if(o===n||e&lt;t[o+1])return o;i=o+1}else{if(!(r&gt;e))throw new se(&quot;Input is not a number.&quot;);a=o-1}return 0}Be.prototype.parse=function(t,e,r,n,i){return void 0===i&amp;&amp;(i={}),e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)},Be.prototype._parse=function(t,e){function r(t,e,r){return&quot;assert&quot;===r?new ce(e,[t]):&quot;coerce&quot;===r?new pe(e,[t]):t}if(null!==t&amp;&amp;&quot;string&quot;!=typeof t&amp;&amp;&quot;boolean&quot;!=typeof t&amp;&amp;&quot;number&quot;!=typeof t||(t=[&quot;literal&quot;,t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use [&quot;literal&quot;, []].');var n=t[0];if(&quot;string&quot;!=typeof n)return this.error(&quot;Expression name must be a string, but found &quot;+typeof n+' instead. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0),null;var i=this.registry[n];if(i){var a=i.parse(t,this);if(!a)return null;if(this.expectedType){var o=this.expectedType,s=a.type;if(&quot;string&quot;!==o.kind&amp;&amp;&quot;number&quot;!==o.kind&amp;&amp;&quot;boolean&quot;!==o.kind&amp;&amp;&quot;object&quot;!==o.kind&amp;&amp;&quot;array&quot;!==o.kind||&quot;value&quot;!==s.kind)if(&quot;color&quot;!==o.kind&amp;&amp;&quot;formatted&quot;!==o.kind&amp;&amp;&quot;resolvedImage&quot;!==o.kind||&quot;value&quot;!==s.kind&amp;&amp;&quot;string&quot;!==s.kind){if(this.checkSubtype(o,s))return null}else a=r(a,o,e.typeAnnotation||&quot;coerce&quot;);else a=r(a,o,e.typeAnnotation||&quot;assert&quot;)}if(!(a instanceof oe)&amp;&amp;&quot;resolvedImage&quot;!==a.type.kind&amp;&amp;function t(e){if(e instanceof Fe)return t(e.boundExpression);if(e instanceof me&amp;&amp;&quot;error&quot;===e.name)return!1;if(e instanceof ve)return!1;if(e instanceof ze)return!1;var r=e instanceof pe||e instanceof ce,n=!0;return e.eachChild((function(e){n=r?n&amp;&amp;t(e):n&amp;&amp;e instanceof oe})),!!n&amp;&amp;Oe(e)&amp;&amp;Re(e,[&quot;zoom&quot;,&quot;heatmap-density&quot;,&quot;line-progress&quot;,&quot;accumulated&quot;,&quot;is-supported-script&quot;])}(a)){var l=new ge;try{a=new oe(a.type,a.evaluate(l))}catch(t){return this.error(t.message),null}}return a}return this.error('Unknown expression &quot;'+n+'&quot;. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0)}return this.error(void 0===t?&quot;'undefined' value invalid. Use null instead.&quot;:&quot;object&quot;==typeof t?'Bare objects invalid. Use [&quot;literal&quot;, {...}] instead.':&quot;Expected an array, but found &quot;+typeof t+&quot; instead.&quot;)},Be.prototype.concat=function(t,e,r){var n=&quot;number&quot;==typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new Be(this.registry,n,e||null,i,this.errors)},Be.prototype.error=function(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];var n=&quot;&quot;+this.key+e.map((function(t){return&quot;[&quot;+t+&quot;]&quot;})).join(&quot;&quot;);this.errors.push(new Pt(n,t))},Be.prototype.checkSubtype=function(t,e){var r=Wt(t,e);return r&amp;&amp;this.error(r),r};var je=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,i=r;n&lt;i.length;n+=1){var a=i[n],o=a[1];this.labels.push(a[0]),this.outputs.push(o)}};function Ue(t,e,r){return t*(1-r)+e*r}je.parse=function(t,e){if(t.length-1&lt;4)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if((t.length-1)%2!=0)return e.error(&quot;Expected an even number of arguments.&quot;);var r=e.parse(t[1],1,Dt);if(!r)return null;var n=[],i=null;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(i=e.expectedType);for(var a=1;a&lt;t.length;a+=2){var o=1===a?-1/0:t[a],s=t[a+1],l=a,c=a+1;if(&quot;number&quot;!=typeof o)return e.error('Input/output pairs for &quot;step&quot; expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(n.length&amp;&amp;n[n.length-1][0]&gt;=o)return e.error('Input/output pairs for &quot;step&quot; expressions must be arranged with input values in strictly ascending order.',l);var u=e.parse(s,c,i);if(!u)return null;i=i||u.type,n.push([o,u])}return new je(i,r,n)},je.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n&lt;=e[0])return r[0].evaluate(t);var i=e.length;return n&gt;=e[i-1]?r[i-1].evaluate(t):r[Ne(e,n)].evaluate(t)},je.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1)t(r[e])},je.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},je.prototype.serialize=function(){for(var t=[&quot;step&quot;,this.input.serialize()],e=0;e&lt;this.labels.length;e++)e&gt;0&amp;&amp;t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var Ve=Object.freeze({__proto__:null,number:Ue,color:function(t,e,r){return new Kt(Ue(t.r,e.r,r),Ue(t.g,e.g,r),Ue(t.b,e.b,r),Ue(t.a,e.a,r))},array:function(t,e,r){return t.map((function(t,n){return Ue(t,e[n],r)}))}}),qe=6/29*3*(6/29),He=Math.PI/180,Ge=180/Math.PI;function Ye(t){return t&gt;.008856451679035631?Math.pow(t,1/3):t/qe+4/29}function We(t){return t&gt;6/29?t*t*t:qe*(t-4/29)}function Xe(t){return 255*(t&lt;=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ze(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Je(t){var e=Ze(t.r),r=Ze(t.g),n=Ze(t.b),i=Ye((.4124564*e+.3575761*r+.1804375*n)/.95047),a=Ye((.2126729*e+.7151522*r+.072175*n)/1);return{l:116*a-16,a:500*(i-a),b:200*(a-Ye((.0193339*e+.119192*r+.9503041*n)/1.08883)),alpha:t.a}}function Ke(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=1*We(e),r=.95047*We(r),n=1.08883*We(n),new Kt(Xe(3.2404542*r-1.5371385*e-.4985314*n),Xe(-.969266*r+1.8760108*e+.041556*n),Xe(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function Qe(t,e,r){var n=e-t;return t+r*(n&gt;180||n&lt;-180?n-360*Math.round(n/360):n)}var $e={forward:Je,reverse:Ke,interpolate:function(t,e,r){return{l:Ue(t.l,e.l,r),a:Ue(t.a,e.a,r),b:Ue(t.b,e.b,r),alpha:Ue(t.alpha,e.alpha,r)}}},tr={forward:function(t){var e=Je(t),r=e.l,n=e.a,i=e.b,a=Math.atan2(i,n)*Ge;return{h:a&lt;0?a+360:a,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}},reverse:function(t){var e=t.h*He,r=t.c;return Ke({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:Qe(t.h,e.h,r),c:Ue(t.c,e.c,r),l:Ue(t.l,e.l,r),alpha:Ue(t.alpha,e.alpha,r)}}},er=Object.freeze({__proto__:null,lab:$e,hcl:tr}),rr=function(t,e,r,n,i){this.type=t,this.operator=e,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var a=0,o=i;a&lt;o.length;a+=1){var s=o[a],l=s[1];this.labels.push(s[0]),this.outputs.push(l)}};function nr(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}rr.interpolationFactor=function(t,e,n,i){var a=0;if(&quot;exponential&quot;===t.name)a=nr(e,t.base,n,i);else if(&quot;linear&quot;===t.name)a=nr(e,1,n,i);else if(&quot;cubic-bezier&quot;===t.name){var o=t.controlPoints;a=new r(o[0],o[1],o[2],o[3]).solve(nr(e,1,n,i))}return a},rr.parse=function(t,e){var r=t[0],n=t[1],i=t[2],a=t.slice(3);if(!Array.isArray(n)||0===n.length)return e.error(&quot;Expected an interpolation type expression.&quot;,1);if(&quot;linear&quot;===n[0])n={name:&quot;linear&quot;};else if(&quot;exponential&quot;===n[0]){var o=n[1];if(&quot;number&quot;!=typeof o)return e.error(&quot;Exponential interpolation requires a numeric base.&quot;,1,1);n={name:&quot;exponential&quot;,base:o}}else{if(&quot;cubic-bezier&quot;!==n[0])return e.error(&quot;Unknown interpolation type &quot;+String(n[0]),1,0);var s=n.slice(1);if(4!==s.length||s.some((function(t){return&quot;number&quot;!=typeof t||t&lt;0||t&gt;1})))return e.error(&quot;Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.&quot;,1);n={name:&quot;cubic-bezier&quot;,controlPoints:s}}if(t.length-1&lt;4)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if((t.length-1)%2!=0)return e.error(&quot;Expected an even number of arguments.&quot;);if(!(i=e.parse(i,2,Dt)))return null;var l=[],c=null;&quot;interpolate-hcl&quot;===r||&quot;interpolate-lab&quot;===r?c=Bt:e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(c=e.expectedType);for(var u=0;u&lt;a.length;u+=2){var f=a[u],h=a[u+1],p=u+3,d=u+4;if(&quot;number&quot;!=typeof f)return e.error('Input/output pairs for &quot;interpolate&quot; expressions must be defined using literal numeric values (not computed expressions) for the input values.',p);if(l.length&amp;&amp;l[l.length-1][0]&gt;=f)return e.error('Input/output pairs for &quot;interpolate&quot; expressions must be arranged with input values in strictly ascending order.',p);var g=e.parse(h,d,c);if(!g)return null;c=c||g.type,l.push([f,g])}return&quot;number&quot;===c.kind||&quot;color&quot;===c.kind||&quot;array&quot;===c.kind&amp;&amp;&quot;number&quot;===c.itemType.kind&amp;&amp;&quot;number&quot;==typeof c.N?new rr(c,r,n,i,l):e.error(&quot;Type &quot;+Gt(c)+&quot; is not interpolatable.&quot;)},rr.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n&lt;=e[0])return r[0].evaluate(t);var i=e.length;if(n&gt;=e[i-1])return r[i-1].evaluate(t);var a=Ne(e,n),o=rr.interpolationFactor(this.interpolation,n,e[a],e[a+1]),s=r[a].evaluate(t),l=r[a+1].evaluate(t);return&quot;interpolate&quot;===this.operator?Ve[this.type.kind.toLowerCase()](s,l,o):&quot;interpolate-hcl&quot;===this.operator?tr.reverse(tr.interpolate(tr.forward(s),tr.forward(l),o)):$e.reverse($e.interpolate($e.forward(s),$e.forward(l),o))},rr.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1)t(r[e])},rr.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},rr.prototype.serialize=function(){var t;t=&quot;linear&quot;===this.interpolation.name?[&quot;linear&quot;]:&quot;exponential&quot;===this.interpolation.name?1===this.interpolation.base?[&quot;linear&quot;]:[&quot;exponential&quot;,this.interpolation.base]:[&quot;cubic-bezier&quot;].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],r=0;r&lt;this.labels.length;r++)e.push(this.labels[r],this.outputs[r].serialize());return e};var ir=function(t,e){this.type=t,this.args=e};ir.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expectected at least one argument.&quot;);var r=null,n=e.expectedType;n&amp;&amp;&quot;value&quot;!==n.kind&amp;&amp;(r=n);for(var i=[],a=0,o=t.slice(1);a&lt;o.length;a+=1){var s=e.parse(o[a],1+i.length,r,void 0,{typeAnnotation:&quot;omit&quot;});if(!s)return null;r=r||s.type,i.push(s)}var l=n&amp;&amp;i.some((function(t){return Wt(n,t.type)}));return new ir(l?jt:r,i)},ir.prototype.evaluate=function(t){for(var e,r=null,n=0,i=0,a=this.args;i&lt;a.length&amp;&amp;(n++,(r=a[i].evaluate(t))&amp;&amp;r instanceof ee&amp;&amp;!r.available&amp;&amp;(e||(e=r.name),r=null,n===this.args.length&amp;&amp;(r=e)),null===r);i+=1);return r},ir.prototype.eachChild=function(t){this.args.forEach(t)},ir.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ir.prototype.serialize=function(){var t=[&quot;coalesce&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var ar=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};ar.prototype.evaluate=function(t){return this.result.evaluate(t)},ar.prototype.eachChild=function(t){for(var e=0,r=this.bindings;e&lt;r.length;e+=1)t(r[e][1]);t(this.result)},ar.parse=function(t,e){if(t.length&lt;4)return e.error(&quot;Expected at least 3 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);for(var r=[],n=1;n&lt;t.length-1;n+=2){var i=t[n];if(&quot;string&quot;!=typeof i)return e.error(&quot;Expected string, but found &quot;+typeof i+&quot; instead.&quot;,n);if(/[^a-zA-Z0-9_]/.test(i))return e.error(&quot;Variable names must contain only alphanumeric characters or '_'.&quot;,n);var a=e.parse(t[n+1],n+1);if(!a)return null;r.push([i,a])}var o=e.parse(t[t.length-1],t.length-1,e.expectedType,r);return o?new ar(r,o):null},ar.prototype.outputDefined=function(){return this.result.outputDefined()},ar.prototype.serialize=function(){for(var t=[&quot;let&quot;],e=0,r=this.bindings;e&lt;r.length;e+=1){var n=r[e];t.push(n[0],n[1].serialize())}return t.push(this.result.serialize()),t};var or=function(t,e,r){this.type=t,this.index=e,this.input=r};or.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected 2 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,Dt),n=e.parse(t[2],2,Ht(e.expectedType||jt));return r&amp;&amp;n?new or(n.type.itemType,r,n):null},or.prototype.evaluate=function(t){var e=this.index.evaluate(t),r=this.input.evaluate(t);if(e&lt;0)throw new se(&quot;Array index out of bounds: &quot;+e+&quot; &lt; 0.&quot;);if(e&gt;=r.length)throw new se(&quot;Array index out of bounds: &quot;+e+&quot; &gt; &quot;+(r.length-1)+&quot;.&quot;);if(e!==Math.floor(e))throw new se(&quot;Array index must be an integer, but found &quot;+e+&quot; instead.&quot;);return r[e]},or.prototype.eachChild=function(t){t(this.index),t(this.input)},or.prototype.outputDefined=function(){return!1},or.prototype.serialize=function(){return[&quot;at&quot;,this.index.serialize(),this.input.serialize()]};var sr=function(t,e){this.type=Ft,this.needle=t,this.haystack=e};sr.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected 2 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,jt),n=e.parse(t[2],2,jt);return r&amp;&amp;n?Xt(r.type,[Ft,Rt,Dt,Ot,jt])?new sr(r,n):e.error(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(r.type)+&quot; instead&quot;):null},sr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!r)return!1;if(!Zt(e,[&quot;boolean&quot;,&quot;string&quot;,&quot;number&quot;,&quot;null&quot;]))throw new se(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(ie(e))+&quot; instead.&quot;);if(!Zt(r,[&quot;string&quot;,&quot;array&quot;]))throw new se(&quot;Expected second argument to be of type array or string, but found &quot;+Gt(ie(r))+&quot; instead.&quot;);return r.indexOf(e)&gt;=0},sr.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},sr.prototype.outputDefined=function(){return!0},sr.prototype.serialize=function(){return[&quot;in&quot;,this.needle.serialize(),this.haystack.serialize()]};var lr=function(t,e,r){this.type=Dt,this.needle=t,this.haystack=e,this.fromIndex=r};lr.parse=function(t,e){if(t.length&lt;=2||t.length&gt;=5)return e.error(&quot;Expected 3 or 4 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,jt),n=e.parse(t[2],2,jt);if(!r||!n)return null;if(!Xt(r.type,[Ft,Rt,Dt,Ot,jt]))return e.error(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(r.type)+&quot; instead&quot;);if(4===t.length){var i=e.parse(t[3],3,Dt);return i?new lr(r,n,i):null}return new lr(r,n)},lr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!Zt(e,[&quot;boolean&quot;,&quot;string&quot;,&quot;number&quot;,&quot;null&quot;]))throw new se(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(ie(e))+&quot; instead.&quot;);if(!Zt(r,[&quot;string&quot;,&quot;array&quot;]))throw new se(&quot;Expected second argument to be of type array or string, but found &quot;+Gt(ie(r))+&quot; instead.&quot;);if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},lr.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&amp;&amp;t(this.fromIndex)},lr.prototype.outputDefined=function(){return!1},lr.prototype.serialize=function(){if(null!=this.fromIndex&amp;&amp;void 0!==this.fromIndex){var t=this.fromIndex.serialize();return[&quot;index-of&quot;,this.needle.serialize(),this.haystack.serialize(),t]}return[&quot;index-of&quot;,this.needle.serialize(),this.haystack.serialize()]};var cr=function(t,e,r,n,i,a){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=a};cr.parse=function(t,e){if(t.length&lt;5)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if(t.length%2!=1)return e.error(&quot;Expected an even number of arguments.&quot;);var r,n;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(n=e.expectedType);for(var i={},a=[],o=2;o&lt;t.length-1;o+=2){var s=t[o],l=t[o+1];Array.isArray(s)||(s=[s]);var c=e.concat(o);if(0===s.length)return c.error(&quot;Expected at least one branch label.&quot;);for(var u=0,f=s;u&lt;f.length;u+=1){var h=f[u];if(&quot;number&quot;!=typeof h&amp;&amp;&quot;string&quot;!=typeof h)return c.error(&quot;Branch labels must be numbers or strings.&quot;);if(&quot;number&quot;==typeof h&amp;&amp;Math.abs(h)&gt;Number.MAX_SAFE_INTEGER)return c.error(&quot;Branch labels must be integers no larger than &quot;+Number.MAX_SAFE_INTEGER+&quot;.&quot;);if(&quot;number&quot;==typeof h&amp;&amp;Math.floor(h)!==h)return c.error(&quot;Numeric branch labels must be integer values.&quot;);if(r){if(c.checkSubtype(r,ie(h)))return null}else r=ie(h);if(void 0!==i[String(h)])return c.error(&quot;Branch labels must be unique.&quot;);i[String(h)]=a.length}var p=e.parse(l,o,n);if(!p)return null;n=n||p.type,a.push(p)}var d=e.parse(t[1],1,jt);if(!d)return null;var g=e.parse(t[t.length-1],t.length-1,n);return g?&quot;value&quot;!==d.type.kind&amp;&amp;e.concat(1).checkSubtype(r,d.type)?null:new cr(r,n,d,i,a,g):null},cr.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(ie(e)===this.inputType&amp;&amp;this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},cr.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},cr.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&amp;&amp;this.otherwise.outputDefined()},cr.prototype.serialize=function(){for(var t=this,e=[&quot;match&quot;,this.input.serialize()],r=[],n={},i=0,a=Object.keys(this.cases).sort();i&lt;a.length;i+=1){var o=a[i];void 0===(f=n[this.cases[o]])?(n[this.cases[o]]=r.length,r.push([this.cases[o],[o]])):r[f][1].push(o)}for(var s=function(e){return&quot;number&quot;===t.inputType.kind?Number(e):e},l=0,c=r;l&lt;c.length;l+=1){var u=c[l],f=u[0],h=u[1];e.push(1===h.length?s(h[0]):h.map(s)),e.push(this.outputs[outputIndex$1].serialize())}return e.push(this.otherwise.serialize()),e};var ur=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};ur.parse=function(t,e){if(t.length&lt;4)return e.error(&quot;Expected at least 3 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if(t.length%2!=0)return e.error(&quot;Expected an odd number of arguments.&quot;);var r;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(r=e.expectedType);for(var n=[],i=1;i&lt;t.length-1;i+=2){var a=e.parse(t[i],i,Ft);if(!a)return null;var o=e.parse(t[i+1],i+1,r);if(!o)return null;n.push([a,o]),r=r||o.type}var s=e.parse(t[t.length-1],t.length-1,r);return s?new ur(r,n,s):null},ur.prototype.evaluate=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var n=r[e],i=n[1];if(n[0].evaluate(t))return i.evaluate(t)}return this.otherwise.evaluate(t)},ur.prototype.eachChild=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var n=r[e],i=n[1];t(n[0]),t(i)}t(this.otherwise)},ur.prototype.outputDefined=function(){return this.branches.every((function(t){return t[1].outputDefined()}))&amp;&amp;this.otherwise.outputDefined()},ur.prototype.serialize=function(){var t=[&quot;case&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var fr=function(t,e,r,n){this.type=t,this.input=e,this.beginIndex=r,this.endIndex=n};function hr(t,e){return&quot;==&quot;===t||&quot;!=&quot;===t?&quot;boolean&quot;===e.kind||&quot;string&quot;===e.kind||&quot;number&quot;===e.kind||&quot;null&quot;===e.kind||&quot;value&quot;===e.kind:&quot;string&quot;===e.kind||&quot;number&quot;===e.kind||&quot;value&quot;===e.kind}function pr(t,e,r,n){return 0===n.compare(e,r)}function dr(t,e,r){var n=&quot;==&quot;!==t&amp;&amp;&quot;!=&quot;!==t;return function(){function i(t,e,r){this.type=Ft,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument=&quot;value&quot;===t.type.kind||&quot;value&quot;===e.type.kind}return i.parse=function(t,e){if(3!==t.length&amp;&amp;4!==t.length)return e.error(&quot;Expected two or three arguments.&quot;);var r=t[0],a=e.parse(t[1],1,jt);if(!a)return null;if(!hr(r,a.type))return e.concat(1).error('&quot;'+r+&quot;\&quot; comparisons are not supported for type '&quot;+Gt(a.type)+&quot;'.&quot;);var o=e.parse(t[2],2,jt);if(!o)return null;if(!hr(r,o.type))return e.concat(2).error('&quot;'+r+&quot;\&quot; comparisons are not supported for type '&quot;+Gt(o.type)+&quot;'.&quot;);if(a.type.kind!==o.type.kind&amp;&amp;&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind)return e.error(&quot;Cannot compare types '&quot;+Gt(a.type)+&quot;' and '&quot;+Gt(o.type)+&quot;'.&quot;);n&amp;&amp;(&quot;value&quot;===a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind?a=new ce(o.type,[a]):&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;===o.type.kind&amp;&amp;(o=new ce(a.type,[o])));var s=null;if(4===t.length){if(&quot;string&quot;!==a.type.kind&amp;&amp;&quot;string&quot;!==o.type.kind&amp;&amp;&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind)return e.error(&quot;Cannot use collator to compare non-string types.&quot;);if(!(s=e.parse(t[3],3,Ut)))return null}return new i(a,o,s)},i.prototype.evaluate=function(i){var a=this.lhs.evaluate(i),o=this.rhs.evaluate(i);if(n&amp;&amp;this.hasUntypedArgument){var s=ie(a),l=ie(o);if(s.kind!==l.kind||&quot;string&quot;!==s.kind&amp;&amp;&quot;number&quot;!==s.kind)throw new se('Expected arguments for &quot;'+t+'&quot; to be (string, string) or (number, number), but found ('+s.kind+&quot;, &quot;+l.kind+&quot;) instead.&quot;)}if(this.collator&amp;&amp;!n&amp;&amp;this.hasUntypedArgument){var c=ie(a),u=ie(o);if(&quot;string&quot;!==c.kind||&quot;string&quot;!==u.kind)return e(i,a,o)}return this.collator?r(i,a,o,this.collator.evaluate(i)):e(i,a,o)},i.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&amp;&amp;t(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},i}()}fr.parse=function(t,e){if(t.length&lt;=2||t.length&gt;=5)return e.error(&quot;Expected 3 or 4 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,jt),n=e.parse(t[2],2,Dt);if(!r||!n)return null;if(!Xt(r.type,[Ht(jt),Rt,jt]))return e.error(&quot;Expected first argument to be of type array or string, but found &quot;+Gt(r.type)+&quot; instead&quot;);if(4===t.length){var i=e.parse(t[3],3,Dt);return i?new fr(r.type,r,n,i):null}return new fr(r.type,r,n)},fr.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!Zt(e,[&quot;string&quot;,&quot;array&quot;]))throw new se(&quot;Expected first argument to be of type array or string, but found &quot;+Gt(ie(e))+&quot; instead.&quot;);if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},fr.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&amp;&amp;t(this.endIndex)},fr.prototype.outputDefined=function(){return!1},fr.prototype.serialize=function(){if(null!=this.endIndex&amp;&amp;void 0!==this.endIndex){var t=this.endIndex.serialize();return[&quot;slice&quot;,this.input.serialize(),this.beginIndex.serialize(),t]}return[&quot;slice&quot;,this.input.serialize(),this.beginIndex.serialize()]};var gr=dr(&quot;==&quot;,(function(t,e,r){return e===r}),pr),mr=dr(&quot;!=&quot;,(function(t,e,r){return e!==r}),(function(t,e,r,n){return!pr(0,e,r,n)})),vr=dr(&quot;&lt;&quot;,(function(t,e,r){return e&lt;r}),(function(t,e,r,n){return n.compare(e,r)&lt;0})),yr=dr(&quot;&gt;&quot;,(function(t,e,r){return e&gt;r}),(function(t,e,r,n){return n.compare(e,r)&gt;0})),xr=dr(&quot;&lt;=&quot;,(function(t,e,r){return e&lt;=r}),(function(t,e,r,n){return n.compare(e,r)&lt;=0})),br=dr(&quot;&gt;=&quot;,(function(t,e,r){return e&gt;=r}),(function(t,e,r,n){return n.compare(e,r)&gt;=0})),_r=function(t,e,r,n,i){this.type=Rt,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};_r.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected two arguments.&quot;);var r=e.parse(t[1],1,Dt);if(!r)return null;var n=t[2];if(&quot;object&quot;!=typeof n||Array.isArray(n))return e.error(&quot;NumberFormat options argument must be an object.&quot;);var i=null;if(n.locale&amp;&amp;!(i=e.parse(n.locale,1,Rt)))return null;var a=null;if(n.currency&amp;&amp;!(a=e.parse(n.currency,1,Rt)))return null;var o=null;if(n[&quot;min-fraction-digits&quot;]&amp;&amp;!(o=e.parse(n[&quot;min-fraction-digits&quot;],1,Dt)))return null;var s=null;return n[&quot;max-fraction-digits&quot;]&amp;&amp;!(s=e.parse(n[&quot;max-fraction-digits&quot;],1,Dt))?null:new _r(r,i,a,o,s)},_r.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?&quot;currency&quot;:&quot;decimal&quot;,currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},_r.prototype.eachChild=function(t){t(this.number),this.locale&amp;&amp;t(this.locale),this.currency&amp;&amp;t(this.currency),this.minFractionDigits&amp;&amp;t(this.minFractionDigits),this.maxFractionDigits&amp;&amp;t(this.maxFractionDigits)},_r.prototype.outputDefined=function(){return!1},_r.prototype.serialize=function(){var t={};return this.locale&amp;&amp;(t.locale=this.locale.serialize()),this.currency&amp;&amp;(t.currency=this.currency.serialize()),this.minFractionDigits&amp;&amp;(t[&quot;min-fraction-digits&quot;]=this.minFractionDigits.serialize()),this.maxFractionDigits&amp;&amp;(t[&quot;max-fraction-digits&quot;]=this.maxFractionDigits.serialize()),[&quot;number-format&quot;,this.number.serialize(),t]};var wr=function(t){this.type=Dt,this.input=t};wr.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected 1 argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1);return r?&quot;array&quot;!==r.type.kind&amp;&amp;&quot;string&quot;!==r.type.kind&amp;&amp;&quot;value&quot;!==r.type.kind?e.error(&quot;Expected argument of type string or array, but found &quot;+Gt(r.type)+&quot; instead.&quot;):new wr(r):null},wr.prototype.evaluate=function(t){var e=this.input.evaluate(t);if(&quot;string&quot;==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new se(&quot;Expected value to be of type string or array, but found &quot;+Gt(ie(e))+&quot; instead.&quot;)},wr.prototype.eachChild=function(t){t(this.input)},wr.prototype.outputDefined=function(){return!1},wr.prototype.serialize=function(){var t=[&quot;length&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var Tr={&quot;==&quot;:gr,&quot;!=&quot;:mr,&quot;&gt;&quot;:yr,&quot;&lt;&quot;:vr,&quot;&gt;=&quot;:br,&quot;&lt;=&quot;:xr,array:ce,at:or,boolean:ce,case:ur,coalesce:ir,collator:ve,format:ue,image:fe,in:sr,&quot;index-of&quot;:lr,interpolate:rr,&quot;interpolate-hcl&quot;:rr,&quot;interpolate-lab&quot;:rr,length:wr,let:ar,literal:oe,match:cr,number:ce,&quot;number-format&quot;:_r,object:ce,slice:fr,step:je,string:ce,&quot;to-boolean&quot;:pe,&quot;to-color&quot;:pe,&quot;to-number&quot;:pe,&quot;to-string&quot;:pe,var:Fe,within:ze};function kr(t,e){var r=e[0],n=e[1],i=e[2],a=e[3];r=r.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);var o=a?a.evaluate(t):1,s=re(r,n,i,o);if(s)throw new se(s);return new Kt(r/255*o,n/255*o,i/255*o,o)}function Mr(t,e){return t in e}function Ar(t,e){var r=e[t];return void 0===r?null:r}function Sr(t){return{type:t}}function Er(t){return{result:&quot;success&quot;,value:t}}function Cr(t){return{result:&quot;error&quot;,value:t}}function Lr(t){return&quot;data-driven&quot;===t[&quot;property-type&quot;]||&quot;cross-faded-data-driven&quot;===t[&quot;property-type&quot;]}function Ir(t){return!!t.expression&amp;&amp;t.expression.parameters.indexOf(&quot;zoom&quot;)&gt;-1}function Pr(t){return!!t.expression&amp;&amp;t.expression.interpolated}function zr(t){return t instanceof Number?&quot;number&quot;:t instanceof String?&quot;string&quot;:t instanceof Boolean?&quot;boolean&quot;:Array.isArray(t)?&quot;array&quot;:null===t?&quot;null&quot;:typeof t}function Or(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)}function Dr(t){return t}function Rr(t,e,r){return void 0!==t?t:void 0!==e?e:void 0!==r?r:void 0}function Fr(t,e,r,n,i){return Rr(typeof r===i?n[r]:void 0,t.default,e.default)}function Br(t,e,r){if(&quot;number&quot;!==zr(r))return Rr(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[n-1][0])return t.stops[n-1][1];var i=Ne(t.stops.map((function(t){return t[0]})),r);return t.stops[i][1]}function Nr(t,e,r){var n=void 0!==t.base?t.base:1;if(&quot;number&quot;!==zr(r))return Rr(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[i-1][0])return t.stops[i-1][1];var a=Ne(t.stops.map((function(t){return t[0]})),r),o=function(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}(r,n,t.stops[a][0],t.stops[a+1][0]),s=t.stops[a][1],l=t.stops[a+1][1],c=Ve[e.type]||Dr;if(t.colorSpace&amp;&amp;&quot;rgb&quot;!==t.colorSpace){var u=er[t.colorSpace];c=function(t,e){return u.reverse(u.interpolate(u.forward(t),u.forward(e),o))}}return&quot;function&quot;==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=s.evaluate.apply(void 0,t),n=l.evaluate.apply(void 0,t);if(void 0!==r&amp;&amp;void 0!==n)return c(r,n,o)}}:c(s,l,o)}function jr(t,e,r){return&quot;color&quot;===e.type?r=Kt.parse(r):&quot;formatted&quot;===e.type?r=te.fromString(r.toString()):&quot;resolvedImage&quot;===e.type?r=ee.fromString(r.toString()):zr(r)===e.type||&quot;enum&quot;===e.type&amp;&amp;e.values[r]||(r=void 0),Rr(r,t.default,e.default)}me.register(Tr,{error:[{kind:&quot;error&quot;},[Rt],function(t,e){throw new se(e[0].evaluate(t))}],typeof:[Rt,[jt],function(t,e){return Gt(ie(e[0].evaluate(t)))}],&quot;to-rgba&quot;:[Ht(Dt,4),[Bt],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Bt,[Dt,Dt,Dt],kr],rgba:[Bt,[Dt,Dt,Dt,Dt],kr],has:{type:Ft,overloads:[[[Rt],function(t,e){return Mr(e[0].evaluate(t),t.properties())}],[[Rt,Nt],function(t,e){var r=e[1];return Mr(e[0].evaluate(t),r.evaluate(t))}]]},get:{type:jt,overloads:[[[Rt],function(t,e){return Ar(e[0].evaluate(t),t.properties())}],[[Rt,Nt],function(t,e){var r=e[1];return Ar(e[0].evaluate(t),r.evaluate(t))}]]},&quot;feature-state&quot;:[jt,[Rt],function(t,e){return Ar(e[0].evaluate(t),t.featureState||{})}],properties:[Nt,[],function(t){return t.properties()}],&quot;geometry-type&quot;:[Rt,[],function(t){return t.geometryType()}],id:[jt,[],function(t){return t.id()}],zoom:[Dt,[],function(t){return t.globals.zoom}],&quot;heatmap-density&quot;:[Dt,[],function(t){return t.globals.heatmapDensity||0}],&quot;line-progress&quot;:[Dt,[],function(t){return t.globals.lineProgress||0}],accumulated:[jt,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],&quot;+&quot;:[Dt,Sr(Dt),function(t,e){for(var r=0,n=0,i=e;n&lt;i.length;n+=1)r+=i[n].evaluate(t);return r}],&quot;*&quot;:[Dt,Sr(Dt),function(t,e){for(var r=1,n=0,i=e;n&lt;i.length;n+=1)r*=i[n].evaluate(t);return r}],&quot;-&quot;:{type:Dt,overloads:[[[Dt,Dt],function(t,e){var r=e[1];return e[0].evaluate(t)-r.evaluate(t)}],[[Dt],function(t,e){return-e[0].evaluate(t)}]]},&quot;/&quot;:[Dt,[Dt,Dt],function(t,e){var r=e[1];return e[0].evaluate(t)/r.evaluate(t)}],&quot;%&quot;:[Dt,[Dt,Dt],function(t,e){var r=e[1];return e[0].evaluate(t)%r.evaluate(t)}],ln2:[Dt,[],function(){return Math.LN2}],pi:[Dt,[],function(){return Math.PI}],e:[Dt,[],function(){return Math.E}],&quot;^&quot;:[Dt,[Dt,Dt],function(t,e){var r=e[1];return Math.pow(e[0].evaluate(t),r.evaluate(t))}],sqrt:[Dt,[Dt],function(t,e){return Math.sqrt(e[0].evaluate(t))}],log10:[Dt,[Dt],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN10}],ln:[Dt,[Dt],function(t,e){return Math.log(e[0].evaluate(t))}],log2:[Dt,[Dt],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN2}],sin:[Dt,[Dt],function(t,e){return Math.sin(e[0].evaluate(t))}],cos:[Dt,[Dt],function(t,e){return Math.cos(e[0].evaluate(t))}],tan:[Dt,[Dt],function(t,e){return Math.tan(e[0].evaluate(t))}],asin:[Dt,[Dt],function(t,e){return Math.asin(e[0].evaluate(t))}],acos:[Dt,[Dt],function(t,e){return Math.acos(e[0].evaluate(t))}],atan:[Dt,[Dt],function(t,e){return Math.atan(e[0].evaluate(t))}],min:[Dt,Sr(Dt),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[Dt,Sr(Dt),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[Dt,[Dt],function(t,e){return Math.abs(e[0].evaluate(t))}],round:[Dt,[Dt],function(t,e){var r=e[0].evaluate(t);return r&lt;0?-Math.round(-r):Math.round(r)}],floor:[Dt,[Dt],function(t,e){return Math.floor(e[0].evaluate(t))}],ceil:[Dt,[Dt],function(t,e){return Math.ceil(e[0].evaluate(t))}],&quot;filter-==&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1];return t.properties()[r.value]===n.value}],&quot;filter-id-==&quot;:[Ft,[jt],function(t,e){var r=e[0];return t.id()===r.value}],&quot;filter-type-==&quot;:[Ft,[Rt],function(t,e){var r=e[0];return t.geometryType()===r.value}],&quot;filter-&lt;&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&lt;a}],&quot;filter-id-&lt;&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&lt;i}],&quot;filter-&gt;&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&gt;a}],&quot;filter-id-&gt;&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&gt;i}],&quot;filter-&lt;=&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&lt;=a}],&quot;filter-id-&lt;=&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&lt;=i}],&quot;filter-&gt;=&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&gt;=a}],&quot;filter-id-&gt;=&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&gt;=i}],&quot;filter-has&quot;:[Ft,[jt],function(t,e){return e[0].value in t.properties()}],&quot;filter-has-id&quot;:[Ft,[],function(t){return null!==t.id()&amp;&amp;void 0!==t.id()}],&quot;filter-type-in&quot;:[Ft,[Ht(Rt)],function(t,e){return e[0].value.indexOf(t.geometryType())&gt;=0}],&quot;filter-id-in&quot;:[Ft,[Ht(jt)],function(t,e){return e[0].value.indexOf(t.id())&gt;=0}],&quot;filter-in-small&quot;:[Ft,[Rt,Ht(jt)],function(t,e){var r=e[0];return e[1].value.indexOf(t.properties()[r.value])&gt;=0}],&quot;filter-in-large&quot;:[Ft,[Rt,Ht(jt)],function(t,e){var r=e[0],n=e[1];return function(t,e,r,n){for(;r&lt;=n;){var i=r+n&gt;&gt;1;if(e[i]===t)return!0;e[i]&gt;t?n=i-1:r=i+1}return!1}(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:Ft,overloads:[[[Ft,Ft],function(t,e){var r=e[1];return e[0].evaluate(t)&amp;&amp;r.evaluate(t)}],[Sr(Ft),function(t,e){for(var r=0,n=e;r&lt;n.length;r+=1)if(!n[r].evaluate(t))return!1;return!0}]]},any:{type:Ft,overloads:[[[Ft,Ft],function(t,e){var r=e[1];return e[0].evaluate(t)||r.evaluate(t)}],[Sr(Ft),function(t,e){for(var r=0,n=e;r&lt;n.length;r+=1)if(n[r].evaluate(t))return!0;return!1}]]},&quot;!&quot;:[Ft,[Ft],function(t,e){return!e[0].evaluate(t)}],&quot;is-supported-script&quot;:[Ft,[Rt],function(t,e){var r=t.globals&amp;&amp;t.globals.isSupportedScript;return!r||r(e[0].evaluate(t))}],upcase:[Rt,[Rt],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[Rt,[Rt],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[Rt,Sr(jt),function(t,e){return e.map((function(e){return ae(e.evaluate(t))})).join(&quot;&quot;)}],&quot;resolved-locale&quot;:[Rt,[Ut],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var Ur=function(t,e){this.expression=t,this._warningHistory={},this._evaluator=new ge,this._defaultValue=e?function(t){return&quot;color&quot;===t.type&amp;&amp;Or(t.default)?new Kt(0,0,0,0):&quot;color&quot;===t.type?Kt.parse(t.default)||null:void 0===t.default?null:t.default}(e):null,this._enumValues=e&amp;&amp;&quot;enum&quot;===e.type?e.values:null};function Vr(t){return Array.isArray(t)&amp;&amp;t.length&gt;0&amp;&amp;&quot;string&quot;==typeof t[0]&amp;&amp;t[0]in Tr}function qr(t,e){var r=new Be(Tr,[],e?function(t){var e={color:Bt,string:Rt,number:Dt,enum:Rt,boolean:Ft,formatted:Vt,resolvedImage:qt};return&quot;array&quot;===t.type?Ht(e[t.value]||jt,t.length):e[t.type]}(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&amp;&amp;&quot;string&quot;===e.type?{typeAnnotation:&quot;coerce&quot;}:void 0);return n?Er(new Ur(n,e)):Cr(r.errors)}Ur.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)},Ur.prototype.evaluate=function(t,e,r,n,i,a){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a||null;try{var o=this.expression.evaluate(this._evaluator);if(null==o||&quot;number&quot;==typeof o&amp;&amp;o!=o)return this._defaultValue;if(this._enumValues&amp;&amp;!(o in this._enumValues))throw new se(&quot;Expected value to be one of &quot;+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(&quot;, &quot;)+&quot;, but found &quot;+JSON.stringify(o)+&quot; instead.&quot;);return o}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,&quot;undefined&quot;!=typeof console&amp;&amp;console.warn(t.message)),this._defaultValue}};var Hr=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent=&quot;constant&quot;!==t&amp;&amp;!De(e.expression)};Hr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},Hr.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)};var Gr=function(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent=&quot;camera&quot;!==t&amp;&amp;!De(e.expression),this.interpolationType=n};function Yr(t,e){if(&quot;error&quot;===(t=qr(t,e)).result)return t;var r=t.value.expression,n=Oe(r);if(!n&amp;&amp;!Lr(e))return Cr([new Pt(&quot;&quot;,&quot;data expressions not supported&quot;)]);var i=Re(r,[&quot;zoom&quot;]);if(!i&amp;&amp;!Ir(e))return Cr([new Pt(&quot;&quot;,&quot;zoom expressions not supported&quot;)]);var a=function t(e){var r=null;if(e instanceof ar)r=t(e.result);else if(e instanceof ir)for(var n=0,i=e.args;n&lt;i.length&amp;&amp;!(r=t(i[n]));n+=1);else(e instanceof je||e instanceof rr)&amp;&amp;e.input instanceof me&amp;&amp;&quot;zoom&quot;===e.input.name&amp;&amp;(r=e);return r instanceof Pt||e.eachChild((function(e){var n=t(e);n instanceof Pt?r=n:!r&amp;&amp;n?r=new Pt(&quot;&quot;,'&quot;zoom&quot; expression may only be used as input to a top-level &quot;step&quot; or &quot;interpolate&quot; expression.'):r&amp;&amp;n&amp;&amp;r!==n&amp;&amp;(r=new Pt(&quot;&quot;,'Only one zoom-based &quot;step&quot; or &quot;interpolate&quot; subexpression may be used in an expression.'))})),r}(r);return a||i?a instanceof Pt?Cr([a]):a instanceof rr&amp;&amp;!Pr(e)?Cr([new Pt(&quot;&quot;,'&quot;interpolate&quot; expressions cannot be used with this property')]):Er(a?new Gr(n?&quot;camera&quot;:&quot;composite&quot;,t.value,a.labels,a instanceof rr?a.interpolation:void 0):new Hr(n?&quot;constant&quot;:&quot;source&quot;,t.value)):Cr([new Pt(&quot;&quot;,'&quot;zoom&quot; expression may only be used as input to a top-level &quot;step&quot; or &quot;interpolate&quot; expression.')])}Gr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},Gr.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)},Gr.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?rr.interpolationFactor(this.interpolationType,t,e,r):0};var Wr=function(t,e){this._parameters=t,this._specification=e,Ct(this,function t(e,r){var n,i,a,o=&quot;color&quot;===r.type,s=e.stops&amp;&amp;&quot;object&quot;==typeof e.stops[0][0],l=s||!(s||void 0!==e.property),c=e.type||(Pr(r)?&quot;exponential&quot;:&quot;interval&quot;);if(o&amp;&amp;((e=Ct({},e)).stops&amp;&amp;(e.stops=e.stops.map((function(t){return[t[0],Kt.parse(t[1])]}))),e.default=Kt.parse(e.default?e.default:r.default)),e.colorSpace&amp;&amp;&quot;rgb&quot;!==e.colorSpace&amp;&amp;!er[e.colorSpace])throw new Error(&quot;Unknown color space: &quot;+e.colorSpace);if(&quot;exponential&quot;===c)n=Nr;else if(&quot;interval&quot;===c)n=Br;else if(&quot;categorical&quot;===c){n=Fr,i=Object.create(null);for(var u=0,f=e.stops;u&lt;f.length;u+=1){var h=f[u];i[h[0]]=h[1]}a=typeof e.stops[0][0]}else{if(&quot;identity&quot;!==c)throw new Error('Unknown function type &quot;'+c+'&quot;');n=jr}if(s){for(var p={},d=[],g=0;g&lt;e.stops.length;g++){var m=e.stops[g],v=m[0].zoom;void 0===p[v]&amp;&amp;(p[v]={zoom:v,type:e.type,property:e.property,default:e.default,stops:[]},d.push(v)),p[v].stops.push([m[0].value,m[1]])}for(var y=[],x=0,b=d;x&lt;b.length;x+=1){var _=b[x];y.push([p[_].zoom,t(p[_],r)])}var w={name:&quot;linear&quot;};return{kind:&quot;composite&quot;,interpolationType:w,interpolationFactor:rr.interpolationFactor.bind(void 0,w),zoomStops:y.map((function(t){return t[0]})),evaluate:function(t,n){var i=t.zoom;return Nr({stops:y,base:e.base},r,i).evaluate(i,n)}}}if(l){var T=&quot;exponential&quot;===c?{name:&quot;exponential&quot;,base:void 0!==e.base?e.base:1}:null;return{kind:&quot;camera&quot;,interpolationType:T,interpolationFactor:rr.interpolationFactor.bind(void 0,T),zoomStops:e.stops.map((function(t){return t[0]})),evaluate:function(t){return n(e,r,t.zoom,i,a)}}}return{kind:&quot;source&quot;,evaluate:function(t,o){var s=o&amp;&amp;o.properties?o.properties[e.property]:void 0;return void 0===s?Rr(e.default,r.default):n(e,r,s,i,a)}}}(this._parameters,this._specification))};function Xr(t){var e=t.key,r=t.value,n=t.valueSpec||{},i=t.objectElementValidators||{},a=t.style,o=t.styleSpec,s=[],l=zr(r);if(&quot;object&quot;!==l)return[new St(e,r,&quot;object expected, &quot;+l+&quot; found&quot;)];for(var c in r){var u=c.split(&quot;.&quot;)[0],f=n[u]||n[&quot;*&quot;],h=void 0;if(i[u])h=i[u];else if(n[u])h=bn;else if(i[&quot;*&quot;])h=i[&quot;*&quot;];else{if(!n[&quot;*&quot;]){s.push(new St(e,r[c],'unknown property &quot;'+c+'&quot;'));continue}h=bn}s=s.concat(h({key:(e?e+&quot;.&quot;:e)+c,value:r[c],valueSpec:f,style:a,styleSpec:o,object:r,objectKey:c},r))}for(var p in n)i[p]||n[p].required&amp;&amp;void 0===n[p].default&amp;&amp;void 0===r[p]&amp;&amp;s.push(new St(e,r,'missing required property &quot;'+p+'&quot;'));return s}function Zr(t){var e=t.value,r=t.valueSpec,n=t.style,i=t.styleSpec,a=t.key,o=t.arrayElementValidator||bn;if(&quot;array&quot;!==zr(e))return[new St(a,e,&quot;array expected, &quot;+zr(e)+&quot; found&quot;)];if(r.length&amp;&amp;e.length!==r.length)return[new St(a,e,&quot;array length &quot;+r.length+&quot; expected, length &quot;+e.length+&quot; found&quot;)];if(r[&quot;min-length&quot;]&amp;&amp;e.length&lt;r[&quot;min-length&quot;])return[new St(a,e,&quot;array length at least &quot;+r[&quot;min-length&quot;]+&quot; expected, length &quot;+e.length+&quot; found&quot;)];var s={type:r.value,values:r.values};i.$version&lt;7&amp;&amp;(s.function=r.function),&quot;object&quot;===zr(r.value)&amp;&amp;(s=r.value);for(var l=[],c=0;c&lt;e.length;c++)l=l.concat(o({array:e,arrayIndex:c,value:e[c],valueSpec:s,style:n,styleSpec:i,key:a+&quot;[&quot;+c+&quot;]&quot;}));return l}function Jr(t){var e=t.key,r=t.value,n=t.valueSpec,i=zr(r);return&quot;number&quot;===i&amp;&amp;r!=r&amp;&amp;(i=&quot;NaN&quot;),&quot;number&quot;!==i?[new St(e,r,&quot;number expected, &quot;+i+&quot; found&quot;)]:&quot;minimum&quot;in n&amp;&amp;r&lt;n.minimum?[new St(e,r,r+&quot; is less than the minimum value &quot;+n.minimum)]:&quot;maximum&quot;in n&amp;&amp;r&gt;n.maximum?[new St(e,r,r+&quot; is greater than the maximum value &quot;+n.maximum)]:[]}function Kr(t){var e,r,n,i=t.valueSpec,a=Lt(t.value.type),o={},s=&quot;categorical&quot;!==a&amp;&amp;void 0===t.value.property,l=!s,c=&quot;array&quot;===zr(t.value.stops)&amp;&amp;&quot;array&quot;===zr(t.value.stops[0])&amp;&amp;&quot;object&quot;===zr(t.value.stops[0][0]),u=Xr({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if(&quot;identity&quot;===a)return[new St(t.key,t.value,'identity function may not have a &quot;stops&quot; property')];var e=[],r=t.value;return e=e.concat(Zr({key:t.key,value:r,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:f})),&quot;array&quot;===zr(r)&amp;&amp;0===r.length&amp;&amp;e.push(new St(t.key,r,&quot;array must have at least one stop&quot;)),e},default:function(t){return bn({key:t.key,value:t.value,valueSpec:i,style:t.style,styleSpec:t.styleSpec})}}});return&quot;identity&quot;===a&amp;&amp;s&amp;&amp;u.push(new St(t.key,t.value,'missing required property &quot;property&quot;')),&quot;identity&quot;===a||t.value.stops||u.push(new St(t.key,t.value,'missing required property &quot;stops&quot;')),&quot;exponential&quot;===a&amp;&amp;t.valueSpec.expression&amp;&amp;!Pr(t.valueSpec)&amp;&amp;u.push(new St(t.key,t.value,&quot;exponential functions not supported&quot;)),t.styleSpec.$version&gt;=8&amp;&amp;(l&amp;&amp;!Lr(t.valueSpec)?u.push(new St(t.key,t.value,&quot;property functions not supported&quot;)):s&amp;&amp;!Ir(t.valueSpec)&amp;&amp;u.push(new St(t.key,t.value,&quot;zoom functions not supported&quot;))),&quot;categorical&quot;!==a&amp;&amp;!c||void 0!==t.value.property||u.push(new St(t.key,t.value,'&quot;property&quot; property is required')),u;function f(t){var e=[],a=t.value,s=t.key;if(&quot;array&quot;!==zr(a))return[new St(s,a,&quot;array expected, &quot;+zr(a)+&quot; found&quot;)];if(2!==a.length)return[new St(s,a,&quot;array length 2 expected, length &quot;+a.length+&quot; found&quot;)];if(c){if(&quot;object&quot;!==zr(a[0]))return[new St(s,a,&quot;object expected, &quot;+zr(a[0])+&quot; found&quot;)];if(void 0===a[0].zoom)return[new St(s,a,&quot;object stop key must have zoom&quot;)];if(void 0===a[0].value)return[new St(s,a,&quot;object stop key must have value&quot;)];if(n&amp;&amp;n&gt;Lt(a[0].zoom))return[new St(s,a[0].zoom,&quot;stop zoom values must appear in ascending order&quot;)];Lt(a[0].zoom)!==n&amp;&amp;(n=Lt(a[0].zoom),r=void 0,o={}),e=e.concat(Xr({key:s+&quot;[0]&quot;,value:a[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:Jr,value:h}}))}else e=e.concat(h({key:s+&quot;[0]&quot;,value:a[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},a));return Vr(It(a[1]))?e.concat([new St(s+&quot;[1]&quot;,a[1],&quot;expressions are not allowed in function stops.&quot;)]):e.concat(bn({key:s+&quot;[1]&quot;,value:a[1],valueSpec:i,style:t.style,styleSpec:t.styleSpec}))}function h(t,n){var s=zr(t.value),l=Lt(t.value),c=null!==t.value?t.value:n;if(e){if(s!==e)return[new St(t.key,c,s+&quot; stop domain type must match previous stop domain type &quot;+e)]}else e=s;if(&quot;number&quot;!==s&amp;&amp;&quot;string&quot;!==s&amp;&amp;&quot;boolean&quot;!==s)return[new St(t.key,c,&quot;stop domain value must be a number, string, or boolean&quot;)];if(&quot;number&quot;!==s&amp;&amp;&quot;categorical&quot;!==a){var u=&quot;number expected, &quot;+s+&quot; found&quot;;return Lr(i)&amp;&amp;void 0===a&amp;&amp;(u+='\nIf you intended to use a categorical function, specify `&quot;type&quot;: &quot;categorical&quot;`.'),[new St(t.key,c,u)]}return&quot;categorical&quot;!==a||&quot;number&quot;!==s||isFinite(l)&amp;&amp;Math.floor(l)===l?&quot;categorical&quot;!==a&amp;&amp;&quot;number&quot;===s&amp;&amp;void 0!==r&amp;&amp;l&lt;r?[new St(t.key,c,&quot;stop domain values must appear in ascending order&quot;)]:(r=l,&quot;categorical&quot;===a&amp;&amp;l in o?[new St(t.key,c,&quot;stop domain values must be unique&quot;)]:(o[l]=!0,[])):[new St(t.key,c,&quot;integer expected, found &quot;+l)]}}function Qr(t){var e=(&quot;property&quot;===t.expressionContext?Yr:qr)(It(t.value),t.valueSpec);if(&quot;error&quot;===e.result)return e.value.map((function(e){return new St(&quot;&quot;+t.key+e.key,t.value,e.message)}));var r=e.value.expression||e.value._styleExpression.expression;if(&quot;property&quot;===t.expressionContext&amp;&amp;&quot;text-font&quot;===t.propertyKey&amp;&amp;!r.outputDefined())return[new St(t.key,t.value,'Invalid data expression for &quot;'+t.propertyKey+'&quot;. Output values must be contained as literals within the expression.')];if(&quot;property&quot;===t.expressionContext&amp;&amp;&quot;layout&quot;===t.propertyType&amp;&amp;!De(r))return[new St(t.key,t.value,'&quot;feature-state&quot; data expressions are not supported with layout properties.')];if(&quot;filter&quot;===t.expressionContext&amp;&amp;!De(r))return[new St(t.key,t.value,'&quot;feature-state&quot; data expressions are not supported with filters.')];if(t.expressionContext&amp;&amp;0===t.expressionContext.indexOf(&quot;cluster&quot;)){if(!Re(r,[&quot;zoom&quot;,&quot;feature-state&quot;]))return[new St(t.key,t.value,'&quot;zoom&quot; and &quot;feature-state&quot; expressions are not supported with cluster properties.')];if(&quot;cluster-initial&quot;===t.expressionContext&amp;&amp;!Oe(r))return[new St(t.key,t.value,&quot;Feature data expressions are not supported with initial expression part of cluster properties.&quot;)]}return[]}function $r(t){var e=t.key,r=t.value,n=t.valueSpec,i=[];return Array.isArray(n.values)?-1===n.values.indexOf(Lt(r))&amp;&amp;i.push(new St(e,r,&quot;expected one of [&quot;+n.values.join(&quot;, &quot;)+&quot;], &quot;+JSON.stringify(r)+&quot; found&quot;)):-1===Object.keys(n.values).indexOf(Lt(r))&amp;&amp;i.push(new St(e,r,&quot;expected one of [&quot;+Object.keys(n.values).join(&quot;, &quot;)+&quot;], &quot;+JSON.stringify(r)+&quot; found&quot;)),i}function tn(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case&quot;has&quot;:return t.length&gt;=2&amp;&amp;&quot;$id&quot;!==t[1]&amp;&amp;&quot;$type&quot;!==t[1];case&quot;in&quot;:return t.length&gt;=3&amp;&amp;(&quot;string&quot;!=typeof t[1]||Array.isArray(t[2]));case&quot;!in&quot;:case&quot;!has&quot;:case&quot;none&quot;:return!1;case&quot;==&quot;:case&quot;!=&quot;:case&quot;&gt;&quot;:case&quot;&gt;=&quot;:case&quot;&lt;&quot;:case&quot;&lt;=&quot;:return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case&quot;any&quot;:case&quot;all&quot;:for(var e=0,r=t.slice(1);e&lt;r.length;e+=1){var n=r[e];if(!tn(n)&amp;&amp;&quot;boolean&quot;!=typeof n)return!1}return!0;default:return!0}}Wr.deserialize=function(t){return new Wr(t._parameters,t._specification)},Wr.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var en={type:&quot;boolean&quot;,default:!1,transition:!1,&quot;property-type&quot;:&quot;data-driven&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]}};function rn(t){if(null==t)return{filter:function(){return!0},needGeometry:!1};tn(t)||(t=an(t));var e=qr(t,en);if(&quot;error&quot;===e.result)throw new Error(e.value.map((function(t){return t.key+&quot;: &quot;+t.message})).join(&quot;, &quot;));return{filter:function(t,r,n){return e.value.evaluate(t,r,{},n)},needGeometry:function t(e){if(!Array.isArray(e))return!1;if(&quot;within&quot;===e[0])return!0;for(var r=1;r&lt;e.length;r++)if(t(e[r]))return!0;return!1}(t)}}function nn(t,e){return t&lt;e?-1:t&gt;e?1:0}function an(t){if(!t)return!0;var e,r=t[0];return t.length&lt;=1?&quot;any&quot;!==r:&quot;==&quot;===r?on(t[1],t[2],&quot;==&quot;):&quot;!=&quot;===r?cn(on(t[1],t[2],&quot;==&quot;)):&quot;&lt;&quot;===r||&quot;&gt;&quot;===r||&quot;&lt;=&quot;===r||&quot;&gt;=&quot;===r?on(t[1],t[2],r):&quot;any&quot;===r?(e=t.slice(1),[&quot;any&quot;].concat(e.map(an))):&quot;all&quot;===r?[&quot;all&quot;].concat(t.slice(1).map(an)):&quot;none&quot;===r?[&quot;all&quot;].concat(t.slice(1).map(an).map(cn)):&quot;in&quot;===r?sn(t[1],t.slice(2)):&quot;!in&quot;===r?cn(sn(t[1],t.slice(2))):&quot;has&quot;===r?ln(t[1]):&quot;!has&quot;===r?cn(ln(t[1])):&quot;within&quot;!==r||t}function on(t,e,r){switch(t){case&quot;$type&quot;:return[&quot;filter-type-&quot;+r,e];case&quot;$id&quot;:return[&quot;filter-id-&quot;+r,e];default:return[&quot;filter-&quot;+r,t,e]}}function sn(t,e){if(0===e.length)return!1;switch(t){case&quot;$type&quot;:return[&quot;filter-type-in&quot;,[&quot;literal&quot;,e]];case&quot;$id&quot;:return[&quot;filter-id-in&quot;,[&quot;literal&quot;,e]];default:return e.length&gt;200&amp;&amp;!e.some((function(t){return typeof t!=typeof e[0]}))?[&quot;filter-in-large&quot;,t,[&quot;literal&quot;,e.sort(nn)]]:[&quot;filter-in-small&quot;,t,[&quot;literal&quot;,e]]}}function ln(t){switch(t){case&quot;$type&quot;:return!0;case&quot;$id&quot;:return[&quot;filter-has-id&quot;];default:return[&quot;filter-has&quot;,t]}}function cn(t){return[&quot;!&quot;,t]}function un(t){return tn(It(t.value))?Qr(Ct({},t,{expressionContext:&quot;filter&quot;,valueSpec:{value:&quot;boolean&quot;}})):function t(e){var r=e.value,n=e.key;if(&quot;array&quot;!==zr(r))return[new St(n,r,&quot;array expected, &quot;+zr(r)+&quot; found&quot;)];var i,a=e.styleSpec,o=[];if(r.length&lt;1)return[new St(n,r,&quot;filter array must have at least 1 element&quot;)];switch(o=o.concat($r({key:n+&quot;[0]&quot;,value:r[0],valueSpec:a.filter_operator,style:e.style,styleSpec:e.styleSpec})),Lt(r[0])){case&quot;&lt;&quot;:case&quot;&lt;=&quot;:case&quot;&gt;&quot;:case&quot;&gt;=&quot;:r.length&gt;=2&amp;&amp;&quot;$type&quot;===Lt(r[1])&amp;&amp;o.push(new St(n,r,'&quot;$type&quot; cannot be use with operator &quot;'+r[0]+'&quot;'));case&quot;==&quot;:case&quot;!=&quot;:3!==r.length&amp;&amp;o.push(new St(n,r,'filter array for operator &quot;'+r[0]+'&quot; must have 3 elements'));case&quot;in&quot;:case&quot;!in&quot;:r.length&gt;=2&amp;&amp;&quot;string&quot;!==(i=zr(r[1]))&amp;&amp;o.push(new St(n+&quot;[1]&quot;,r[1],&quot;string expected, &quot;+i+&quot; found&quot;));for(var s=2;s&lt;r.length;s++)i=zr(r[s]),&quot;$type&quot;===Lt(r[1])?o=o.concat($r({key:n+&quot;[&quot;+s+&quot;]&quot;,value:r[s],valueSpec:a.geometry_type,style:e.style,styleSpec:e.styleSpec})):&quot;string&quot;!==i&amp;&amp;&quot;number&quot;!==i&amp;&amp;&quot;boolean&quot;!==i&amp;&amp;o.push(new St(n+&quot;[&quot;+s+&quot;]&quot;,r[s],&quot;string, number, or boolean expected, &quot;+i+&quot; found&quot;));break;case&quot;any&quot;:case&quot;all&quot;:case&quot;none&quot;:for(var l=1;l&lt;r.length;l++)o=o.concat(t({key:n+&quot;[&quot;+l+&quot;]&quot;,value:r[l],style:e.style,styleSpec:e.styleSpec}));break;case&quot;has&quot;:case&quot;!has&quot;:i=zr(r[1]),2!==r.length?o.push(new St(n,r,'filter array for &quot;'+r[0]+'&quot; operator must have 2 elements')):&quot;string&quot;!==i&amp;&amp;o.push(new St(n+&quot;[1]&quot;,r[1],&quot;string expected, &quot;+i+&quot; found&quot;));break;case&quot;within&quot;:i=zr(r[1]),2!==r.length?o.push(new St(n,r,'filter array for &quot;'+r[0]+'&quot; operator must have 2 elements')):&quot;object&quot;!==i&amp;&amp;o.push(new St(n+&quot;[1]&quot;,r[1],&quot;object expected, &quot;+i+&quot; found&quot;))}return o}(t)}function fn(t,e){var r=t.key,n=t.style,i=t.styleSpec,a=t.value,o=t.objectKey,s=i[e+&quot;_&quot;+t.layerType];if(!s)return[];var l=o.match(/^(.*)-transition$/);if(&quot;paint&quot;===e&amp;&amp;l&amp;&amp;s[l[1]]&amp;&amp;s[l[1]].transition)return bn({key:r,value:a,valueSpec:i.transition,style:n,styleSpec:i});var c,u=t.valueSpec||s[o];if(!u)return[new St(r,a,'unknown property &quot;'+o+'&quot;')];if(&quot;string&quot;===zr(a)&amp;&amp;Lr(u)&amp;&amp;!u.tokens&amp;&amp;(c=/^{([^}]+)}$/.exec(a)))return[new St(r,a,'&quot;'+o+'&quot; does not support interpolation syntax\nUse an identity property function instead: `{ &quot;type&quot;: &quot;identity&quot;, &quot;property&quot;: '+JSON.stringify(c[1])+&quot; }`.&quot;)];var f=[];return&quot;symbol&quot;===t.layerType&amp;&amp;(&quot;text-field&quot;===o&amp;&amp;n&amp;&amp;!n.glyphs&amp;&amp;f.push(new St(r,a,'use of &quot;text-field&quot; requires a style &quot;glyphs&quot; property')),&quot;text-font&quot;===o&amp;&amp;Or(It(a))&amp;&amp;&quot;identity&quot;===Lt(a.type)&amp;&amp;f.push(new St(r,a,'&quot;text-font&quot; does not support identity functions'))),f.concat(bn({key:t.key,value:a,valueSpec:u,style:n,styleSpec:i,expressionContext:&quot;property&quot;,propertyType:e,propertyKey:o}))}function hn(t){return fn(t,&quot;paint&quot;)}function pn(t){return fn(t,&quot;layout&quot;)}function dn(t){var e=[],r=t.value,n=t.key,i=t.style,a=t.styleSpec;r.type||r.ref||e.push(new St(n,r,'either &quot;type&quot; or &quot;ref&quot; is required'));var o,s=Lt(r.type),l=Lt(r.ref);if(r.id)for(var c=Lt(r.id),u=0;u&lt;t.arrayIndex;u++){var f=i.layers[u];Lt(f.id)===c&amp;&amp;e.push(new St(n,r.id,'duplicate layer id &quot;'+r.id+'&quot;, previously used at line '+f.id.__line__))}if(&quot;ref&quot;in r)[&quot;type&quot;,&quot;source&quot;,&quot;source-layer&quot;,&quot;filter&quot;,&quot;layout&quot;].forEach((function(t){t in r&amp;&amp;e.push(new St(n,r[t],'&quot;'+t+'&quot; is prohibited for ref layers'))})),i.layers.forEach((function(t){Lt(t.id)===l&amp;&amp;(o=t)})),o?o.ref?e.push(new St(n,r.ref,&quot;ref cannot reference another ref layer&quot;)):s=Lt(o.type):e.push(new St(n,r.ref,'ref layer &quot;'+l+'&quot; not found'));else if(&quot;background&quot;!==s)if(r.source){var h=i.sources&amp;&amp;i.sources[r.source],p=h&amp;&amp;Lt(h.type);h?&quot;vector&quot;===p&amp;&amp;&quot;raster&quot;===s?e.push(new St(n,r.source,'layer &quot;'+r.id+'&quot; requires a raster source')):&quot;raster&quot;===p&amp;&amp;&quot;raster&quot;!==s?e.push(new St(n,r.source,'layer &quot;'+r.id+'&quot; requires a vector source')):&quot;vector&quot;!==p||r[&quot;source-layer&quot;]?&quot;raster-dem&quot;===p&amp;&amp;&quot;hillshade&quot;!==s?e.push(new St(n,r.source,&quot;raster-dem source can only be used with layer type 'hillshade'.&quot;)):&quot;line&quot;!==s||!r.paint||!r.paint[&quot;line-gradient&quot;]||&quot;geojson&quot;===p&amp;&amp;h.lineMetrics||e.push(new St(n,r,'layer &quot;'+r.id+'&quot; specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new St(n,r,'layer &quot;'+r.id+'&quot; must specify a &quot;source-layer&quot;')):e.push(new St(n,r.source,'source &quot;'+r.source+'&quot; not found'))}else e.push(new St(n,r,'missing required property &quot;source&quot;'));return e=e.concat(Xr({key:n,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(){return[]},type:function(){return bn({key:n+&quot;.type&quot;,value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,object:r,objectKey:&quot;type&quot;})},filter:un,layout:function(t){return Xr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(t){return pn(Ct({layerType:s},t))}}})},paint:function(t){return Xr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(t){return hn(Ct({layerType:s},t))}}})}}}))}function gn(t){var e=t.value,r=t.key,n=zr(e);return&quot;string&quot;!==n?[new St(r,e,&quot;string expected, &quot;+n+&quot; found&quot;)]:[]}var mn={promoteId:function(t){var e=t.key,r=t.value;if(&quot;string&quot;===zr(r))return gn({key:e,value:r});var n=[];for(var i in r)n.push.apply(n,gn({key:e+&quot;.&quot;+i,value:r[i]}));return n}};function vn(t){var e=t.value,r=t.key,n=t.styleSpec,i=t.style;if(!e.type)return[new St(r,e,'&quot;type&quot; is required')];var a,o=Lt(e.type);switch(o){case&quot;vector&quot;:case&quot;raster&quot;:case&quot;raster-dem&quot;:return Xr({key:r,value:e,valueSpec:n[&quot;source_&quot;+o.replace(&quot;-&quot;,&quot;_&quot;)],style:t.style,styleSpec:n,objectElementValidators:mn});case&quot;geojson&quot;:if(a=Xr({key:r,value:e,valueSpec:n.source_geojson,style:i,styleSpec:n,objectElementValidators:mn}),e.cluster)for(var s in e.clusterProperties){var l=e.clusterProperties[s],c=l[0],u=&quot;string&quot;==typeof c?[c,[&quot;accumulated&quot;],[&quot;get&quot;,s]]:c;a.push.apply(a,Qr({key:r+&quot;.&quot;+s+&quot;.map&quot;,value:l[1],expressionContext:&quot;cluster-map&quot;})),a.push.apply(a,Qr({key:r+&quot;.&quot;+s+&quot;.reduce&quot;,value:u,expressionContext:&quot;cluster-reduce&quot;}))}return a;case&quot;video&quot;:return Xr({key:r,value:e,valueSpec:n.source_video,style:i,styleSpec:n});case&quot;image&quot;:return Xr({key:r,value:e,valueSpec:n.source_image,style:i,styleSpec:n});case&quot;canvas&quot;:return[new St(r,null,&quot;Please use runtime APIs to add canvas sources, rather than including them in stylesheets.&quot;,&quot;source.canvas&quot;)];default:return $r({key:r+&quot;.type&quot;,value:e.type,valueSpec:{values:[&quot;vector&quot;,&quot;raster&quot;,&quot;raster-dem&quot;,&quot;geojson&quot;,&quot;video&quot;,&quot;image&quot;]},style:i,styleSpec:n})}}function yn(t){var e=t.value,r=t.styleSpec,n=r.light,i=t.style,a=[],o=zr(e);if(void 0===e)return a;if(&quot;object&quot;!==o)return a.concat([new St(&quot;light&quot;,e,&quot;object expected, &quot;+o+&quot; found&quot;)]);for(var s in e){var l=s.match(/^(.*)-transition$/);a=a.concat(l&amp;&amp;n[l[1]]&amp;&amp;n[l[1]].transition?bn({key:s,value:e[s],valueSpec:r.transition,style:i,styleSpec:r}):n[s]?bn({key:s,value:e[s],valueSpec:n[s],style:i,styleSpec:r}):[new St(s,e[s],'unknown property &quot;'+s+'&quot;')])}return a}var xn={&quot;*&quot;:function(){return[]},array:Zr,boolean:function(t){var e=t.value,r=t.key,n=zr(e);return&quot;boolean&quot;!==n?[new St(r,e,&quot;boolean expected, &quot;+n+&quot; found&quot;)]:[]},number:Jr,color:function(t){var e=t.key,r=t.value,n=zr(r);return&quot;string&quot;!==n?[new St(e,r,&quot;color expected, &quot;+n+&quot; found&quot;)]:null===Jt(r)?[new St(e,r,'color expected, &quot;'+r+'&quot; found')]:[]},constants:Et,enum:$r,filter:un,function:Kr,layer:dn,object:Xr,source:vn,light:yn,string:gn,formatted:function(t){return 0===gn(t).length?[]:Qr(t)},resolvedImage:function(t){return 0===gn(t).length?[]:Qr(t)}};function bn(t){var e=t.value,r=t.valueSpec,n=t.styleSpec;return r.expression&amp;&amp;Or(Lt(e))?Kr(t):r.expression&amp;&amp;Vr(It(e))?Qr(t):r.type&amp;&amp;xn[r.type]?xn[r.type](t):Xr(Ct({},t,{valueSpec:r.type?n[r.type]:r}))}function _n(t){var e=t.value,r=t.key,n=gn(t);return n.length||(-1===e.indexOf(&quot;{fontstack}&quot;)&amp;&amp;n.push(new St(r,e,'&quot;glyphs&quot; url must include a &quot;{fontstack}&quot; token')),-1===e.indexOf(&quot;{range}&quot;)&amp;&amp;n.push(new St(r,e,'&quot;glyphs&quot; url must include a &quot;{range}&quot; token'))),n}function wn(t,e){void 0===e&amp;&amp;(e=At);var r=[];return r=r.concat(bn({key:&quot;&quot;,value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:_n,&quot;*&quot;:function(){return[]}}})),t.constants&amp;&amp;(r=r.concat(Et({key:&quot;constants&quot;,value:t.constants,style:t,styleSpec:e}))),Tn(r)}function Tn(t){return[].concat(t).sort((function(t,e){return t.line-e.line}))}function kn(t){return function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return Tn(t.apply(this,e))}}wn.source=kn(vn),wn.light=kn(yn),wn.layer=kn(dn),wn.filter=kn(un),wn.paintProperty=kn(hn),wn.layoutProperty=kn(pn);var Mn=wn,An=Mn.light,Sn=Mn.paintProperty,En=Mn.layoutProperty;function Cn(t,e){var r=!1;if(e&amp;&amp;e.length)for(var n=0,i=e;n&lt;i.length;n+=1)t.fire(new kt(new Error(i[n].message))),r=!0;return r}var Ln=In;function In(t,e,r){var n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var i=new Int32Array(this.arrayBuffer);t=i[0],this.d=(e=i[1])+2*(r=i[2]);for(var a=0;a&lt;this.d*this.d;a++){var o=i[3+a],s=i[3+a+1];n.push(o===s?null:i.subarray(o,s))}var l=i[3+n.length+1];this.keys=i.subarray(i[3+n.length],l),this.bboxes=i.subarray(l),this.insert=this._insertReadonly}else{this.d=e+2*r;for(var c=0;c&lt;this.d*this.d;c++)n.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=r,this.scale=e/t,this.uid=0;var u=r/e*t;this.min=-u,this.max=t+u}In.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},In.prototype._insertReadonly=function(){throw&quot;Cannot insert into a GridIndex created from an ArrayBuffer.&quot;},In.prototype._insertCell=function(t,e,r,n,i,a){this.cells[i].push(a)},In.prototype.query=function(t,e,r,n,i){var a=this.min,o=this.max;if(t&lt;=a&amp;&amp;e&lt;=a&amp;&amp;o&lt;=r&amp;&amp;o&lt;=n&amp;&amp;!i)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(t,e,r,n,this._queryCell,s,{},i),s},In.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=this.cells[i];if(null!==l)for(var c=this.keys,u=this.bboxes,f=0;f&lt;l.length;f++){var h=l[f];if(void 0===o[h]){var p=4*h;(s?s(u[p+0],u[p+1],u[p+2],u[p+3]):t&lt;=u[p+2]&amp;&amp;e&lt;=u[p+3]&amp;&amp;r&gt;=u[p+0]&amp;&amp;n&gt;=u[p+1])?(o[h]=!0,a.push(c[h])):o[h]=!1}}},In.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToCellCoord(t),c=this._convertToCellCoord(e),u=this._convertToCellCoord(r),f=this._convertToCellCoord(n),h=l;h&lt;=u;h++)for(var p=c;p&lt;=f;p++){var d=this.d*p+h;if((!s||s(this._convertFromCellCoord(h),this._convertFromCellCoord(p),this._convertFromCellCoord(h+1),this._convertFromCellCoord(p+1)))&amp;&amp;i.call(this,t,e,r,n,d,a,o,s))return}},In.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},In.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},In.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,r=0,n=0;n&lt;this.cells.length;n++)r+=this.cells[n].length;var i=new Int32Array(e+r+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var a=e,o=0;o&lt;t.length;o++){var s=t[o];i[3+o]=a,i.set(s,a),a+=s.length}return i[3+t.length]=a,i.set(this.keys,a),i[3+t.length+1]=a+=this.keys.length,i.set(this.bboxes,a),a+=this.bboxes.length,i.buffer};var Pn=self.ImageData,zn=self.ImageBitmap,On={};function Dn(t,e,r){void 0===r&amp;&amp;(r={}),Object.defineProperty(e,&quot;_classRegistryKey&quot;,{value:t,writeable:!1}),On[t]={klass:e,omit:r.omit||[],shallow:r.shallow||[]}}for(var Rn in Dn(&quot;Object&quot;,Object),Ln.serialize=function(t,e){var r=t.toArrayBuffer();return e&amp;&amp;e.push(r),{buffer:r}},Ln.deserialize=function(t){return new Ln(t.buffer)},Dn(&quot;Grid&quot;,Ln),Dn(&quot;Color&quot;,Kt),Dn(&quot;Error&quot;,Error),Dn(&quot;ResolvedImage&quot;,ee),Dn(&quot;StylePropertyFunction&quot;,Wr),Dn(&quot;StyleExpression&quot;,Ur,{omit:[&quot;_evaluator&quot;]}),Dn(&quot;ZoomDependentExpression&quot;,Gr),Dn(&quot;ZoomConstantExpression&quot;,Hr),Dn(&quot;CompoundExpression&quot;,me,{omit:[&quot;_evaluate&quot;]}),Tr)Tr[Rn]._classRegistryKey||Dn(&quot;Expression_&quot;+Rn,Tr[Rn]);function Fn(t){return t&amp;&amp;&quot;undefined&quot;!=typeof ArrayBuffer&amp;&amp;(t instanceof ArrayBuffer||t.constructor&amp;&amp;&quot;ArrayBuffer&quot;===t.constructor.name)}function Bn(t){return zn&amp;&amp;t instanceof zn}function Nn(t,e){if(null==t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(Fn(t)||Bn(t))return e&amp;&amp;e.push(t),t;if(ArrayBuffer.isView(t)){var r=t;return e&amp;&amp;e.push(r.buffer),r}if(t instanceof Pn)return e&amp;&amp;e.push(t.data.buffer),t;if(Array.isArray(t)){for(var n=[],i=0,a=t;i&lt;a.length;i+=1)n.push(Nn(a[i],e));return n}if(&quot;object&quot;==typeof t){var o=t.constructor,s=o._classRegistryKey;if(!s)throw new Error(&quot;can't serialize object of unregistered class&quot;);var l=o.serialize?o.serialize(t,e):{};if(!o.serialize){for(var c in t)if(t.hasOwnProperty(c)&amp;&amp;!(On[s].omit.indexOf(c)&gt;=0)){var u=t[c];l[c]=On[s].shallow.indexOf(c)&gt;=0?u:Nn(u,e)}t instanceof Error&amp;&amp;(l.message=t.message)}if(l.$name)throw new Error(&quot;$name property is reserved for worker serialization logic.&quot;);return&quot;Object&quot;!==s&amp;&amp;(l.$name=s),l}throw new Error(&quot;can't serialize object of type &quot;+typeof t)}function jn(t){if(null==t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||Fn(t)||Bn(t)||ArrayBuffer.isView(t)||t instanceof Pn)return t;if(Array.isArray(t))return t.map(jn);if(&quot;object&quot;==typeof t){var e=t.$name||&quot;Object&quot;,r=On[e].klass;if(!r)throw new Error(&quot;can't deserialize unregistered class &quot;+e);if(r.deserialize)return r.deserialize(t);for(var n=Object.create(r.prototype),i=0,a=Object.keys(t);i&lt;a.length;i+=1){var o=a[i];if(&quot;$name&quot;!==o){var s=t[o];n[o]=On[e].shallow.indexOf(o)&gt;=0?s:jn(s)}}return n}throw new Error(&quot;can't deserialize object of type &quot;+typeof t)}var Un=function(){this.first=!0};Un.prototype.update=function(t,e){var r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom&gt;r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoom&lt;r&amp;&amp;(this.lastIntegerZoom=r,this.lastIntegerZoomTime=e),t!==this.lastZoom&amp;&amp;(this.lastZoom=t,this.lastFloorZoom=r,!0))};var Vn={&quot;Latin-1 Supplement&quot;:function(t){return t&gt;=128&amp;&amp;t&lt;=255},Arabic:function(t){return t&gt;=1536&amp;&amp;t&lt;=1791},&quot;Arabic Supplement&quot;:function(t){return t&gt;=1872&amp;&amp;t&lt;=1919},&quot;Arabic Extended-A&quot;:function(t){return t&gt;=2208&amp;&amp;t&lt;=2303},&quot;Hangul Jamo&quot;:function(t){return t&gt;=4352&amp;&amp;t&lt;=4607},&quot;Unified Canadian Aboriginal Syllabics&quot;:function(t){return t&gt;=5120&amp;&amp;t&lt;=5759},Khmer:function(t){return t&gt;=6016&amp;&amp;t&lt;=6143},&quot;Unified Canadian Aboriginal Syllabics Extended&quot;:function(t){return t&gt;=6320&amp;&amp;t&lt;=6399},&quot;General Punctuation&quot;:function(t){return t&gt;=8192&amp;&amp;t&lt;=8303},&quot;Letterlike Symbols&quot;:function(t){return t&gt;=8448&amp;&amp;t&lt;=8527},&quot;Number Forms&quot;:function(t){return t&gt;=8528&amp;&amp;t&lt;=8591},&quot;Miscellaneous Technical&quot;:function(t){return t&gt;=8960&amp;&amp;t&lt;=9215},&quot;Control Pictures&quot;:function(t){return t&gt;=9216&amp;&amp;t&lt;=9279},&quot;Optical Character Recognition&quot;:function(t){return t&gt;=9280&amp;&amp;t&lt;=9311},&quot;Enclosed Alphanumerics&quot;:function(t){return t&gt;=9312&amp;&amp;t&lt;=9471},&quot;Geometric Shapes&quot;:function(t){return t&gt;=9632&amp;&amp;t&lt;=9727},&quot;Miscellaneous Symbols&quot;:function(t){return t&gt;=9728&amp;&amp;t&lt;=9983},&quot;Miscellaneous Symbols and Arrows&quot;:function(t){return t&gt;=11008&amp;&amp;t&lt;=11263},&quot;CJK Radicals Supplement&quot;:function(t){return t&gt;=11904&amp;&amp;t&lt;=12031},&quot;Kangxi Radicals&quot;:function(t){return t&gt;=12032&amp;&amp;t&lt;=12255},&quot;Ideographic Description Characters&quot;:function(t){return t&gt;=12272&amp;&amp;t&lt;=12287},&quot;CJK Symbols and Punctuation&quot;:function(t){return t&gt;=12288&amp;&amp;t&lt;=12351},Hiragana:function(t){return t&gt;=12352&amp;&amp;t&lt;=12447},Katakana:function(t){return t&gt;=12448&amp;&amp;t&lt;=12543},Bopomofo:function(t){return t&gt;=12544&amp;&amp;t&lt;=12591},&quot;Hangul Compatibility Jamo&quot;:function(t){return t&gt;=12592&amp;&amp;t&lt;=12687},Kanbun:function(t){return t&gt;=12688&amp;&amp;t&lt;=12703},&quot;Bopomofo Extended&quot;:function(t){return t&gt;=12704&amp;&amp;t&lt;=12735},&quot;CJK Strokes&quot;:function(t){return t&gt;=12736&amp;&amp;t&lt;=12783},&quot;Katakana Phonetic Extensions&quot;:function(t){return t&gt;=12784&amp;&amp;t&lt;=12799},&quot;Enclosed CJK Letters and Months&quot;:function(t){return t&gt;=12800&amp;&amp;t&lt;=13055},&quot;CJK Compatibility&quot;:function(t){return t&gt;=13056&amp;&amp;t&lt;=13311},&quot;CJK Unified Ideographs Extension A&quot;:function(t){return t&gt;=13312&amp;&amp;t&lt;=19903},&quot;Yijing Hexagram Symbols&quot;:function(t){return t&gt;=19904&amp;&amp;t&lt;=19967},&quot;CJK Unified Ideographs&quot;:function(t){return t&gt;=19968&amp;&amp;t&lt;=40959},&quot;Yi Syllables&quot;:function(t){return t&gt;=40960&amp;&amp;t&lt;=42127},&quot;Yi Radicals&quot;:function(t){return t&gt;=42128&amp;&amp;t&lt;=42191},&quot;Hangul Jamo Extended-A&quot;:function(t){return t&gt;=43360&amp;&amp;t&lt;=43391},&quot;Hangul Syllables&quot;:function(t){return t&gt;=44032&amp;&amp;t&lt;=55215},&quot;Hangul Jamo Extended-B&quot;:function(t){return t&gt;=55216&amp;&amp;t&lt;=55295},&quot;Private Use Area&quot;:function(t){return t&gt;=57344&amp;&amp;t&lt;=63743},&quot;CJK Compatibility Ideographs&quot;:function(t){return t&gt;=63744&amp;&amp;t&lt;=64255},&quot;Arabic Presentation Forms-A&quot;:function(t){return t&gt;=64336&amp;&amp;t&lt;=65023},&quot;Vertical Forms&quot;:function(t){return t&gt;=65040&amp;&amp;t&lt;=65055},&quot;CJK Compatibility Forms&quot;:function(t){return t&gt;=65072&amp;&amp;t&lt;=65103},&quot;Small Form Variants&quot;:function(t){return t&gt;=65104&amp;&amp;t&lt;=65135},&quot;Arabic Presentation Forms-B&quot;:function(t){return t&gt;=65136&amp;&amp;t&lt;=65279},&quot;Halfwidth and Fullwidth Forms&quot;:function(t){return t&gt;=65280&amp;&amp;t&lt;=65519}};function qn(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(Hn(r[e].charCodeAt(0)))return!0;return!1}function Hn(t){return!(746!==t&amp;&amp;747!==t&amp;&amp;(t&lt;4352||!(Vn[&quot;Bopomofo Extended&quot;](t)||Vn.Bopomofo(t)||Vn[&quot;CJK Compatibility Forms&quot;](t)&amp;&amp;!(t&gt;=65097&amp;&amp;t&lt;=65103)||Vn[&quot;CJK Compatibility Ideographs&quot;](t)||Vn[&quot;CJK Compatibility&quot;](t)||Vn[&quot;CJK Radicals Supplement&quot;](t)||Vn[&quot;CJK Strokes&quot;](t)||!(!Vn[&quot;CJK Symbols and Punctuation&quot;](t)||t&gt;=12296&amp;&amp;t&lt;=12305||t&gt;=12308&amp;&amp;t&lt;=12319||12336===t)||Vn[&quot;CJK Unified Ideographs Extension A&quot;](t)||Vn[&quot;CJK Unified Ideographs&quot;](t)||Vn[&quot;Enclosed CJK Letters and Months&quot;](t)||Vn[&quot;Hangul Compatibility Jamo&quot;](t)||Vn[&quot;Hangul Jamo Extended-A&quot;](t)||Vn[&quot;Hangul Jamo Extended-B&quot;](t)||Vn[&quot;Hangul Jamo&quot;](t)||Vn[&quot;Hangul Syllables&quot;](t)||Vn.Hiragana(t)||Vn[&quot;Ideographic Description Characters&quot;](t)||Vn.Kanbun(t)||Vn[&quot;Kangxi Radicals&quot;](t)||Vn[&quot;Katakana Phonetic Extensions&quot;](t)||Vn.Katakana(t)&amp;&amp;12540!==t||!(!Vn[&quot;Halfwidth and Fullwidth Forms&quot;](t)||65288===t||65289===t||65293===t||t&gt;=65306&amp;&amp;t&lt;=65310||65339===t||65341===t||65343===t||t&gt;=65371&amp;&amp;t&lt;=65503||65507===t||t&gt;=65512&amp;&amp;t&lt;=65519)||!(!Vn[&quot;Small Form Variants&quot;](t)||t&gt;=65112&amp;&amp;t&lt;=65118||t&gt;=65123&amp;&amp;t&lt;=65126)||Vn[&quot;Unified Canadian Aboriginal Syllabics&quot;](t)||Vn[&quot;Unified Canadian Aboriginal Syllabics Extended&quot;](t)||Vn[&quot;Vertical Forms&quot;](t)||Vn[&quot;Yijing Hexagram Symbols&quot;](t)||Vn[&quot;Yi Syllables&quot;](t)||Vn[&quot;Yi Radicals&quot;](t))))}function Gn(t){return!(Hn(t)||function(t){return!!(Vn[&quot;Latin-1 Supplement&quot;](t)&amp;&amp;(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||Vn[&quot;General Punctuation&quot;](t)&amp;&amp;(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||Vn[&quot;Letterlike Symbols&quot;](t)||Vn[&quot;Number Forms&quot;](t)||Vn[&quot;Miscellaneous Technical&quot;](t)&amp;&amp;(t&gt;=8960&amp;&amp;t&lt;=8967||t&gt;=8972&amp;&amp;t&lt;=8991||t&gt;=8996&amp;&amp;t&lt;=9e3||9003===t||t&gt;=9085&amp;&amp;t&lt;=9114||t&gt;=9150&amp;&amp;t&lt;=9165||9167===t||t&gt;=9169&amp;&amp;t&lt;=9179||t&gt;=9186&amp;&amp;t&lt;=9215)||Vn[&quot;Control Pictures&quot;](t)&amp;&amp;9251!==t||Vn[&quot;Optical Character Recognition&quot;](t)||Vn[&quot;Enclosed Alphanumerics&quot;](t)||Vn[&quot;Geometric Shapes&quot;](t)||Vn[&quot;Miscellaneous Symbols&quot;](t)&amp;&amp;!(t&gt;=9754&amp;&amp;t&lt;=9759)||Vn[&quot;Miscellaneous Symbols and Arrows&quot;](t)&amp;&amp;(t&gt;=11026&amp;&amp;t&lt;=11055||t&gt;=11088&amp;&amp;t&lt;=11097||t&gt;=11192&amp;&amp;t&lt;=11243)||Vn[&quot;CJK Symbols and Punctuation&quot;](t)||Vn.Katakana(t)||Vn[&quot;Private Use Area&quot;](t)||Vn[&quot;CJK Compatibility Forms&quot;](t)||Vn[&quot;Small Form Variants&quot;](t)||Vn[&quot;Halfwidth and Fullwidth Forms&quot;](t)||8734===t||8756===t||8757===t||t&gt;=9984&amp;&amp;t&lt;=10087||t&gt;=10102&amp;&amp;t&lt;=10131||65532===t||65533===t)}(t))}function Yn(t){return t&gt;=1424&amp;&amp;t&lt;=2303||Vn[&quot;Arabic Presentation Forms-A&quot;](t)||Vn[&quot;Arabic Presentation Forms-B&quot;](t)}function Wn(t,e){return!(!e&amp;&amp;Yn(t)||t&gt;=2304&amp;&amp;t&lt;=3583||t&gt;=3840&amp;&amp;t&lt;=4255||Vn.Khmer(t))}function Xn(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(Yn(r[e].charCodeAt(0)))return!0;return!1}var Zn=null,Jn=&quot;unavailable&quot;,Kn=null,Qn=function(t){t&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;t.indexOf(&quot;NetworkError&quot;)&gt;-1&amp;&amp;(Jn=&quot;error&quot;),Zn&amp;&amp;Zn(t)};function $n(){ti.fire(new Tt(&quot;pluginStateChange&quot;,{pluginStatus:Jn,pluginURL:Kn}))}var ti=new Mt,ei=function(){return Jn},ri=function(){if(&quot;deferred&quot;!==Jn||!Kn)throw new Error(&quot;rtl-text-plugin cannot be downloaded unless a pluginURL is specified&quot;);Jn=&quot;loading&quot;,$n(),Kn&amp;&amp;yt({url:Kn},(function(t){t?Qn(t):(Jn=&quot;loaded&quot;,$n())}))},ni={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return&quot;loaded&quot;===Jn||null!=ni.applyArabicShaping},isLoading:function(){return&quot;loading&quot;===Jn},setState:function(t){Jn=t.pluginStatus,Kn=t.pluginURL},isParsed:function(){return null!=ni.applyArabicShaping&amp;&amp;null!=ni.processBidirectionalText&amp;&amp;null!=ni.processStyledBidirectionalText},getPluginURL:function(){return Kn}},ii=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Un,this.transition={})};ii.prototype.isSupportedScript=function(t){return function(t,e){for(var r=0,n=t;r&lt;n.length;r+=1)if(!Wn(n[r].charCodeAt(0),e))return!1;return!0}(t,ni.isLoaded())},ii.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},ii.prototype.getCrossfadeParameters=function(){var t=this.zoom,e=t-Math.floor(t),r=this.crossFadingFactor();return t&gt;this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}};var ai=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(Or(t))return new Wr(t,e);if(Vr(t)){var r=Yr(t,e);if(&quot;error&quot;===r.result)throw new Error(r.value.map((function(t){return t.key+&quot;: &quot;+t.message})).join(&quot;, &quot;));return r.value}var n=t;return&quot;string&quot;==typeof t&amp;&amp;&quot;color&quot;===e.type&amp;&amp;(n=Kt.parse(t)),{kind:&quot;constant&quot;,evaluate:function(){return n}}}(void 0===e?t.specification.default:e,t.specification)};ai.prototype.isDataDriven=function(){return&quot;source&quot;===this.expression.kind||&quot;composite&quot;===this.expression.kind},ai.prototype.possiblyEvaluate=function(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)};var oi=function(t){this.property=t,this.value=new ai(t,void 0)};oi.prototype.transitioned=function(t,e){return new li(this.property,this.value,e,u({},t.transition,this.transition),t.now)},oi.prototype.untransitioned=function(){return new li(this.property,this.value,null,{},0)};var si=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};si.prototype.getValue=function(t){return x(this._values[t].value.value)},si.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new oi(this._values[t].property)),this._values[t].value=new ai(this._values[t].property,null===e?void 0:x(e))},si.prototype.getTransition=function(t){return x(this._values[t].transition)},si.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new oi(this._values[t].property)),this._values[t].transition=x(e)||void 0},si.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&amp;&amp;(t[n]=i);var a=this.getTransition(n);void 0!==a&amp;&amp;(t[n+&quot;-transition&quot;]=a)}return t},si.prototype.transitioned=function(t,e){for(var r=new ci(this._properties),n=0,i=Object.keys(this._values);n&lt;i.length;n+=1){var a=i[n];r._values[a]=this._values[a].transitioned(t,e._values[a])}return r},si.prototype.untransitioned=function(){for(var t=new ci(this._properties),e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e];t._values[n]=this._values[n].untransitioned()}return t};var li=function(t,e,r,n,i){this.property=t,this.value=e,this.begin=i+n.delay||0,this.end=this.begin+n.duration||0,t.specification.transition&amp;&amp;(n.delay||n.duration)&amp;&amp;(this.prior=r)};li.prototype.possiblyEvaluate=function(t,e,r){var n=t.now||0,i=this.value.possiblyEvaluate(t,e,r),a=this.prior;if(a){if(n&gt;this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(n&lt;this.begin)return a.possiblyEvaluate(t,e,r);var o=(n-this.begin)/(this.end-this.begin);return this.property.interpolate(a.possiblyEvaluate(t,e,r),i,function(t){if(t&lt;=0)return 0;if(t&gt;=1)return 1;var e=t*t,r=e*t;return 4*(t&lt;.5?r:3*(t-e)+r-.75)}(o))}return i};var ci=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};ci.prototype.possiblyEvaluate=function(t,e,r){for(var n=new hi(this._properties),i=0,a=Object.keys(this._values);i&lt;a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n},ci.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t&lt;e.length;t+=1)if(this._values[e[t]].prior)return!0;return!1};var ui=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};ui.prototype.getValue=function(t){return x(this._values[t].value)},ui.prototype.setValue=function(t,e){this._values[t]=new ai(this._values[t].property,null===e?void 0:x(e))},ui.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&amp;&amp;(t[n]=i)}return t},ui.prototype.possiblyEvaluate=function(t,e,r){for(var n=new hi(this._properties),i=0,a=Object.keys(this._values);i&lt;a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n};var fi=function(t,e,r){this.property=t,this.value=e,this.parameters=r};fi.prototype.isConstant=function(){return&quot;constant&quot;===this.value.kind},fi.prototype.constantOr=function(t){return&quot;constant&quot;===this.value.kind?this.value.value:t},fi.prototype.evaluate=function(t,e,r,n){return this.property.evaluate(this.value,this.parameters,t,e,r,n)};var hi=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};hi.prototype.get=function(t){return this._values[t]};var pi=function(t){this.specification=t};pi.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},pi.prototype.interpolate=function(t,e,r){var n=Ve[this.specification.type];return n?n(t,e,r):t};var di=function(t,e){this.specification=t,this.overrides=e};di.prototype.possiblyEvaluate=function(t,e,r,n){return new fi(this,&quot;constant&quot;===t.expression.kind||&quot;camera&quot;===t.expression.kind?{kind:&quot;constant&quot;,value:t.expression.evaluate(e,null,{},r,n)}:t.expression,e)},di.prototype.interpolate=function(t,e,r){if(&quot;constant&quot;!==t.value.kind||&quot;constant&quot;!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new fi(this,{kind:&quot;constant&quot;,value:void 0},t.parameters);var n=Ve[this.specification.type];return n?new fi(this,{kind:&quot;constant&quot;,value:n(t.value.value,e.value.value,r)},t.parameters):t},di.prototype.evaluate=function(t,e,r,n,i,a){return&quot;constant&quot;===t.kind?t.value:t.evaluate(e,r,n,i,a)};var gi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0===t.value)return new fi(this,{kind:&quot;constant&quot;,value:void 0},e);if(&quot;constant&quot;===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n),a=&quot;resolvedImage&quot;===t.property.specification.type&amp;&amp;&quot;string&quot;!=typeof i?i.name:i,o=this._calculate(a,a,a,e);return new fi(this,{kind:&quot;constant&quot;,value:o},e)}if(&quot;camera&quot;===t.expression.kind){var s=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new fi(this,{kind:&quot;constant&quot;,value:s},e)}return new fi(this,t.expression,e)},e.prototype.evaluate=function(t,e,r,n,i,a){if(&quot;source&quot;===t.kind){var o=t.evaluate(e,r,n,i,a);return this._calculate(o,o,o,e)}return&quot;composite&quot;===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},r,n),t.evaluate({zoom:Math.floor(e.zoom)},r,n),t.evaluate({zoom:Math.floor(e.zoom)+1},r,n),e):t.value},e.prototype._calculate=function(t,e,r,n){return n.zoom&gt;n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},e.prototype.interpolate=function(t){return t},e}(di),mi=function(t){this.specification=t};mi.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0!==t.value){if(&quot;constant&quot;===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n);return this._calculate(i,i,i,e)}return this._calculate(t.expression.evaluate(new ii(Math.floor(e.zoom-1),e)),t.expression.evaluate(new ii(Math.floor(e.zoom),e)),t.expression.evaluate(new ii(Math.floor(e.zoom+1),e)),e)}},mi.prototype._calculate=function(t,e,r,n){return n.zoom&gt;n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},mi.prototype.interpolate=function(t){return t};var vi=function(t){this.specification=t};vi.prototype.possiblyEvaluate=function(t,e,r,n){return!!t.expression.evaluate(e,null,{},r,n)},vi.prototype.interpolate=function(){return!1};var yi=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var r=t[e];r.specification.overridable&amp;&amp;this.overridableProperties.push(e);var n=this.defaultPropertyValues[e]=new ai(r,void 0),i=this.defaultTransitionablePropertyValues[e]=new oi(r);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=n.possiblyEvaluate({})}};Dn(&quot;DataDrivenProperty&quot;,di),Dn(&quot;DataConstantProperty&quot;,pi),Dn(&quot;CrossFadedDataDrivenProperty&quot;,gi),Dn(&quot;CrossFadedProperty&quot;,mi),Dn(&quot;ColorRampProperty&quot;,vi);var xi=function(t){function e(e,r){if(t.call(this),this.id=e.id,this.type=e.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},&quot;custom&quot;!==e.type&amp;&amp;(this.metadata=(e=e).metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,&quot;background&quot;!==e.type&amp;&amp;(this.source=e.source,this.sourceLayer=e[&quot;source-layer&quot;],this.filter=e.filter),r.layout&amp;&amp;(this._unevaluatedLayout=new ui(r.layout)),r.paint)){for(var n in this._transitionablePaint=new si(r.paint),e.paint)this.setPaintProperty(n,e.paint[n],{validate:!1});for(var i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new hi(r.paint)}}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return&quot;visibility&quot;===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,r){void 0===r&amp;&amp;(r={}),null!=e&amp;&amp;this._validate(En,&quot;layers.&quot;+this.id+&quot;.layout.&quot;+t,t,e,r)||(&quot;visibility&quot;!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e)},e.prototype.getPaintProperty=function(t){return m(t,&quot;-transition&quot;)?this._transitionablePaint.getTransition(t.slice(0,-&quot;-transition&quot;.length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,r){if(void 0===r&amp;&amp;(r={}),null!=e&amp;&amp;this._validate(Sn,&quot;layers.&quot;+this.id+&quot;.paint.&quot;+t,t,e,r))return!1;if(m(t,&quot;-transition&quot;))return this._transitionablePaint.setTransition(t.slice(0,-&quot;-transition&quot;.length),e||void 0),!1;var n=this._transitionablePaint._values[t],i=&quot;cross-faded-data-driven&quot;===n.property.specification[&quot;property-type&quot;],a=n.value.isDataDriven(),o=n.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var s=this._transitionablePaint._values[t].value;return s.isDataDriven()||a||i||this._handleOverridablePaintPropertyUpdate(t,o,s)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype._handleOverridablePaintPropertyUpdate=function(t,e,r){return!1},e.prototype.isHidden=function(t){return!!(this.minzoom&amp;&amp;t&lt;this.minzoom)||!!(this.maxzoom&amp;&amp;t&gt;=this.maxzoom)||&quot;none&quot;===this.visibility},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t,e){t.getCrossfadeParameters&amp;&amp;(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&amp;&amp;(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,&quot;source-layer&quot;:this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&amp;&amp;this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&amp;&amp;this._transitionablePaint.serialize()};return this.visibility&amp;&amp;(t.layout=t.layout||{},t.layout.visibility=this.visibility),y(t,(function(t,e){return!(void 0===t||&quot;layout&quot;===e&amp;&amp;!Object.keys(t).length||&quot;paint&quot;===e&amp;&amp;!Object.keys(t).length)}))},e.prototype._validate=function(t,e,r,n,i){return void 0===i&amp;&amp;(i={}),(!i||!1!==i.validate)&amp;&amp;Cn(this,t.call(Mn,{key:e,layerType:this.type,objectKey:r,value:n,styleSpec:At,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof fi&amp;&amp;Lr(e.property.specification)&amp;&amp;(&quot;source&quot;===e.value.kind||&quot;composite&quot;===e.value.kind)&amp;&amp;e.value.isStateDependent)return!0}return!1},e}(Mt),bi={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},_i=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},wi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Ti(t,e){void 0===e&amp;&amp;(e=1);var r=0,n=0;return{members:t.map((function(t){var i=bi[t.type].BYTES_PER_ELEMENT,a=r=ki(r,Math.max(e,i)),o=t.components||1;return n=Math.max(n,i),r+=i*o,{name:t.name,type:t.type,components:o,offset:a}})),size:ki(r,Math.max(n,e)),alignment:e}}function ki(t,e){return Math.ceil(t/e)*e}wi.serialize=function(t,e){return t._trim(),e&amp;&amp;(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},wi.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},wi.prototype._trim=function(){this.length!==this.capacity&amp;&amp;(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},wi.prototype.clear=function(){this.length=0},wi.prototype.resize=function(t){this.reserve(t),this.length=t},wi.prototype.reserve=function(t){if(t&gt;this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&amp;&amp;this.uint8.set(e)}},wi.prototype._refreshViews=function(){throw new Error(&quot;_refreshViews() must be implemented by each concrete StructArray layout&quot;)};var Mi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.int16[n+0]=e,this.int16[n+1]=r,t},e}(wi);Mi.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout2i4&quot;,Mi);var Ai=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.int16[a+0]=e,this.int16[a+1]=r,this.int16[a+2]=n,this.int16[a+3]=i,t},e}(wi);Ai.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout4i8&quot;,Ai);var Si=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(wi);Si.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout2i4i12&quot;,Si);var Ei=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=4*t,l=8*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.uint8[l+4]=n,this.uint8[l+5]=i,this.uint8[l+6]=a,this.uint8[l+7]=o,t},e}(wi);Ei.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout2i4ub8&quot;,Ei);var Ci=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,n,i,a,o,s,l,c)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u){var f=9*t,h=18*t;return this.uint16[f+0]=e,this.uint16[f+1]=r,this.uint16[f+2]=n,this.uint16[f+3]=i,this.uint16[f+4]=a,this.uint16[f+5]=o,this.uint16[f+6]=s,this.uint16[f+7]=l,this.uint8[h+16]=c,this.uint8[h+17]=u,t},e}(wi);Ci.prototype.bytesPerElement=18,Dn(&quot;StructArrayLayout8ui2ub18&quot;,Ci);var Li=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f){var h=this.length;return this.resize(h+1),this.emplace(h,t,e,r,n,i,a,o,s,l,c,u,f)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=12*t;return this.int16[p+0]=e,this.int16[p+1]=r,this.int16[p+2]=n,this.int16[p+3]=i,this.uint16[p+4]=a,this.uint16[p+5]=o,this.uint16[p+6]=s,this.uint16[p+7]=l,this.int16[p+8]=c,this.int16[p+9]=u,this.int16[p+10]=f,this.int16[p+11]=h,t},e}(wi);Li.prototype.bytesPerElement=24,Dn(&quot;StructArrayLayout4i4ui4i24&quot;,Li);var Ii=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.float32[i+0]=e,this.float32[i+1]=r,this.float32[i+2]=n,t},e}(wi);Ii.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout3f12&quot;,Ii);var Pi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint32[1*t+0]=e,t},e}(wi);Pi.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout1ul4&quot;,Pi);var zi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,r,n,i,a,o,s,l)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c){var u=10*t,f=5*t;return this.int16[u+0]=e,this.int16[u+1]=r,this.int16[u+2]=n,this.int16[u+3]=i,this.int16[u+4]=a,this.int16[u+5]=o,this.uint32[f+3]=s,this.uint16[u+8]=l,this.uint16[u+9]=c,t},e}(wi);zi.prototype.bytesPerElement=20,Dn(&quot;StructArrayLayout6i1ul2ui20&quot;,zi);var Oi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(wi);Oi.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout2i2i2i12&quot;,Oi);var Di=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,n,i)},e.prototype.emplace=function(t,e,r,n,i,a){var o=4*t,s=8*t;return this.float32[o+0]=e,this.float32[o+1]=r,this.float32[o+2]=n,this.int16[s+6]=i,this.int16[s+7]=a,t},e}(wi);Di.prototype.bytesPerElement=16,Dn(&quot;StructArrayLayout2f1f2i16&quot;,Di);var Ri=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=12*t,o=3*t;return this.uint8[a+0]=e,this.uint8[a+1]=r,this.float32[o+1]=n,this.float32[o+2]=i,t},e}(wi);Ri.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout2ub2f12&quot;,Ri);var Fi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.uint16[i+0]=e,this.uint16[i+1]=r,this.uint16[i+2]=n,t},e}(wi);Fi.prototype.bytesPerElement=6,Dn(&quot;StructArrayLayout3ui6&quot;,Fi);var Bi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m){var v=this.length;return this.resize(v+1),this.emplace(v,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v){var y=24*t,x=12*t,b=48*t;return this.int16[y+0]=e,this.int16[y+1]=r,this.uint16[y+2]=n,this.uint16[y+3]=i,this.uint32[x+2]=a,this.uint32[x+3]=o,this.uint32[x+4]=s,this.uint16[y+10]=l,this.uint16[y+11]=c,this.uint16[y+12]=u,this.float32[x+7]=f,this.float32[x+8]=h,this.uint8[b+36]=p,this.uint8[b+37]=d,this.uint8[b+38]=g,this.uint32[x+10]=m,this.int16[y+22]=v,t},e}(wi);Bi.prototype.bytesPerElement=48,Dn(&quot;StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48&quot;,Bi);var Ni=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S){var E=this.length;return this.resize(E+1),this.emplace(E,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S,E){var C=34*t,L=17*t;return this.int16[C+0]=e,this.int16[C+1]=r,this.int16[C+2]=n,this.int16[C+3]=i,this.int16[C+4]=a,this.int16[C+5]=o,this.int16[C+6]=s,this.int16[C+7]=l,this.uint16[C+8]=c,this.uint16[C+9]=u,this.uint16[C+10]=f,this.uint16[C+11]=h,this.uint16[C+12]=p,this.uint16[C+13]=d,this.uint16[C+14]=g,this.uint16[C+15]=m,this.uint16[C+16]=v,this.uint16[C+17]=y,this.uint16[C+18]=x,this.uint16[C+19]=b,this.uint16[C+20]=_,this.uint16[C+21]=w,this.uint16[C+22]=T,this.uint32[L+12]=k,this.float32[L+13]=M,this.float32[L+14]=A,this.float32[L+15]=S,this.float32[L+16]=E,t},e}(wi);Ni.prototype.bytesPerElement=68,Dn(&quot;StructArrayLayout8i15ui1ul4f68&quot;,Ni);var ji=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.float32[1*t+0]=e,t},e}(wi);ji.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout1f4&quot;,ji);var Ui=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.int16[i+0]=e,this.int16[i+1]=r,this.int16[i+2]=n,t},e}(wi);Ui.prototype.bytesPerElement=6,Dn(&quot;StructArrayLayout3i6&quot;,Ui);var Vi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=4*t;return this.uint32[2*t+0]=e,this.uint16[i+2]=r,this.uint16[i+3]=n,t},e}(wi);Vi.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout1ul2ui8&quot;,Vi);var qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.uint16[n+0]=e,this.uint16[n+1]=r,t},e}(wi);qi.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout2ui4&quot;,qi);var Hi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint16[1*t+0]=e,t},e}(wi);Hi.prototype.bytesPerElement=2,Dn(&quot;StructArrayLayout1ui2&quot;,Hi);var Gi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.float32[n+0]=e,this.float32[n+1]=r,t},e}(wi);Gi.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout2f8&quot;,Gi);var Yi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=n,this.float32[a+3]=i,t},e}(wi);Yi.prototype.bytesPerElement=16,Dn(&quot;StructArrayLayout4f16&quot;,Yi);var Wi=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return r.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},r.x1.get=function(){return this._structArray.int16[this._pos2+2]},r.y1.get=function(){return this._structArray.int16[this._pos2+3]},r.x2.get=function(){return this._structArray.int16[this._pos2+4]},r.y2.get=function(){return this._structArray.int16[this._pos2+5]},r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.anchorPoint.get=function(){return new i(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,r),e}(_i);Wi.prototype.size=20;var Xi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new Wi(this,t)},e}(zi);Dn(&quot;CollisionBoxArray&quot;,Xi);var Zi=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},r.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},r.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},r.segment.get=function(){return this._structArray.uint16[this._pos2+10]},r.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},r.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},r.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},r.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},r.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},r.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},r.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},r.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},r.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},r.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(e.prototype,r),e}(_i);Zi.prototype.size=48;var Ji=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new Zi(this,t)},e}(Bi);Dn(&quot;PlacedSymbolArray&quot;,Ji);var Ki=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},r.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},r.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},r.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},r.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},r.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},r.key.get=function(){return this._structArray.uint16[this._pos2+8]},r.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},r.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},r.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},r.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},r.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},r.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},r.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},r.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},r.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},r.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},r.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},r.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},r.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+12]=t},r.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},r.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},r.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},r.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(e.prototype,r),e}(_i);Ki.prototype.size=68;var Qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new Ki(this,t)},e}(Ni);Dn(&quot;SymbolInstanceArray&quot;,Qi);var $i=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e}(ji);Dn(&quot;GlyphOffsetArray&quot;,$i);var ta=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e}(Ui);Dn(&quot;SymbolLineVertexArray&quot;,ta);var ea=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(e.prototype,r),e}(_i);ea.prototype.size=8;var ra=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new ea(this,t)},e}(Vi);Dn(&quot;FeatureIndexArray&quot;,ra);var na=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;}],4).members,ia=function(t){void 0===t&amp;&amp;(t=[]),this.segments=t};function aa(t,e){return 256*(t=l(Math.floor(t),0,255))+l(Math.floor(e),0,255)}ia.prototype.prepareSegment=function(t,e,r,n){var i=this.segments[this.segments.length-1];return t&gt;ia.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;_(&quot;Max vertices per segment is &quot;+ia.MAX_VERTEX_ARRAY_LENGTH+&quot;: bucket requested &quot;+t),(!i||i.vertexLength+t&gt;ia.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==n)&amp;&amp;(i={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},void 0!==n&amp;&amp;(i.sortKey=n),this.segments.push(i)),i},ia.prototype.get=function(){return this.segments},ia.prototype.destroy=function(){for(var t=0,e=this.segments;t&lt;e.length;t+=1){var r=e[t];for(var n in r.vaos)r.vaos[n].destroy()}},ia.simpleSegment=function(t,e,r,n){return new ia([{vertexOffset:t,primitiveOffset:e,vertexLength:r,primitiveLength:n,vaos:{},sortKey:0}])},ia.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Dn(&quot;SegmentVector&quot;,ia);var oa=Ti([{name:&quot;a_pattern_from&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pattern_to&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pixel_ratio_from&quot;,components:1,type:&quot;Uint8&quot;},{name:&quot;a_pixel_ratio_to&quot;,components:1,type:&quot;Uint8&quot;}]),sa=e((function(t){t.exports=function(t,e){var r,n,i,a,o,s,l,c;for(n=t.length-(r=3&amp;t.length),i=e,o=3432918353,s=461845907,c=0;c&lt;n;)l=255&amp;t.charCodeAt(c)|(255&amp;t.charCodeAt(++c))&lt;&lt;8|(255&amp;t.charCodeAt(++c))&lt;&lt;16|(255&amp;t.charCodeAt(++c))&lt;&lt;24,++c,i=27492+(65535&amp;(a=5*(65535&amp;(i=(i^=l=(65535&amp;(l=(l=(65535&amp;l)*o+(((l&gt;&gt;&gt;16)*o&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;13|i&gt;&gt;&gt;19))+((5*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295))+((58964+(a&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16);switch(l=0,r){case 3:l^=(255&amp;t.charCodeAt(c+2))&lt;&lt;16;case 2:l^=(255&amp;t.charCodeAt(c+1))&lt;&lt;8;case 1:i^=l=(65535&amp;(l=(l=(65535&amp;(l^=255&amp;t.charCodeAt(c)))*o+(((l&gt;&gt;&gt;16)*o&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295}return i^=t.length,i=2246822507*(65535&amp;(i^=i&gt;&gt;&gt;16))+((2246822507*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,i=3266489909*(65535&amp;(i^=i&gt;&gt;&gt;13))+((3266489909*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,(i^=i&gt;&gt;&gt;16)&gt;&gt;&gt;0}})),la=e((function(t){t.exports=function(t,e){for(var r,n=t.length,i=e^n,a=0;n&gt;=4;)r=1540483477*(65535&amp;(r=255&amp;t.charCodeAt(a)|(255&amp;t.charCodeAt(++a))&lt;&lt;8|(255&amp;t.charCodeAt(++a))&lt;&lt;16|(255&amp;t.charCodeAt(++a))&lt;&lt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),i=1540483477*(65535&amp;i)+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)^(r=1540483477*(65535&amp;(r^=r&gt;&gt;&gt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)),n-=4,++a;switch(n){case 3:i^=(255&amp;t.charCodeAt(a+2))&lt;&lt;16;case 2:i^=(255&amp;t.charCodeAt(a+1))&lt;&lt;8;case 1:i=1540483477*(65535&amp;(i^=255&amp;t.charCodeAt(a)))+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)}return i=1540483477*(65535&amp;(i^=i&gt;&gt;&gt;13))+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),(i^=i&gt;&gt;&gt;15)&gt;&gt;&gt;0}})),ca=sa,ua=la;ca.murmur3=sa,ca.murmur2=ua;var fa=function(){this.ids=[],this.positions=[],this.indexed=!1};fa.prototype.add=function(t,e,r,n){this.ids.push(pa(t)),this.positions.push(e,r,n)},fa.prototype.getPositions=function(t){for(var e=pa(t),r=0,n=this.ids.length-1;r&lt;n;){var i=r+n&gt;&gt;1;this.ids[i]&gt;=e?n=i:r=i+1}for(var a=[];this.ids[r]===e;)a.push({index:this.positions[3*r],start:this.positions[3*r+1],end:this.positions[3*r+2]}),r++;return a},fa.serialize=function(t,e){var r=new Float64Array(t.ids),n=new Uint32Array(t.positions);return function t(e,r,n,i){for(;n&lt;i;){for(var a=e[n+i&gt;&gt;1],o=n-1,s=i+1;;){do{o++}while(e[o]&lt;a);do{s--}while(e[s]&gt;a);if(o&gt;=s)break;da(e,o,s),da(r,3*o,3*s),da(r,3*o+1,3*s+1),da(r,3*o+2,3*s+2)}s-n&lt;i-s?(t(e,r,n,s),n=s+1):(t(e,r,s+1,i),i=s)}}(r,n,0,r.length-1),e&amp;&amp;e.push(r.buffer,n.buffer),{ids:r,positions:n}},fa.deserialize=function(t){var e=new fa;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e};var ha=Math.pow(2,53)-1;function pa(t){var e=+t;return!isNaN(e)&amp;&amp;e&lt;=ha?e:ca(String(t))}function da(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}Dn(&quot;FeaturePositionMap&quot;,fa);var ga=function(t,e){this.gl=t.gl,this.location=e},ma=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1i(this.location,t))},e}(ga),va=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1f(this.location,t))},e}(ga),ya=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0]}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))},e}(ga),xa=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0]}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))},e}(ga),ba=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0,0]}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]&amp;&amp;t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))},e}(ga),_a=function(t){function e(e,r){t.call(this,e,r),this.current=Kt.transparent}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t.r===this.current.r&amp;&amp;t.g===this.current.g&amp;&amp;t.b===this.current.b&amp;&amp;t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))},e}(ga),wa=new Float32Array(16),Ta=function(t){function e(e,r){t.call(this,e,r),this.current=wa}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(var e=1;e&lt;16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}},e}(ga);function ka(t){return[aa(255*t.r,255*t.g),aa(255*t.b,255*t.a)]}var Ma=function(t,e,r){this.value=t,this.uniformNames=e.map((function(t){return&quot;u_&quot;+t})),this.type=r};Ma.prototype.setUniform=function(t,e,r){t.set(r.constantOr(this.value))},Ma.prototype.getBinding=function(t,e,r){return&quot;color&quot;===this.type?new _a(t,e):new va(t,e)};var Aa=function(t,e){this.uniformNames=e.map((function(t){return&quot;u_&quot;+t})),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1};Aa.prototype.setConstantPatternPositions=function(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr},Aa.prototype.setUniform=function(t,e,r,n){var i=&quot;u_pattern_to&quot;===n?this.patternTo:&quot;u_pattern_from&quot;===n?this.patternFrom:&quot;u_pixel_ratio_to&quot;===n?this.pixelRatioTo:&quot;u_pixel_ratio_from&quot;===n?this.pixelRatioFrom:null;i&amp;&amp;t.set(i)},Aa.prototype.getBinding=function(t,e,r){return&quot;u_pattern&quot;===r.substr(0,9)?new ba(t,e):new va(t,e)};var Sa=function(t,e,r,n){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:&quot;a_&quot;+t,type:&quot;Float32&quot;,components:&quot;color&quot;===r?2:1,offset:0}})),this.paintVertexArray=new n};Sa.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.paintVertexArray.length,o=this.expression.evaluate(new ii(0),e,{},n,[],i);this.paintVertexArray.resize(t),this._setPaintValue(a,t,o)},Sa.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:0},r,n);this._setPaintValue(t,e,i)},Sa.prototype._setPaintValue=function(t,e,r){if(&quot;color&quot;===this.type)for(var n=ka(r),i=t;i&lt;e;i++)this.paintVertexArray.emplace(i,n[0],n[1]);else{for(var a=t;a&lt;e;a++)this.paintVertexArray.emplace(a,r);this.maxValue=Math.max(this.maxValue,Math.abs(r))}},Sa.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Sa.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()};var Ea=function(t,e,r,n,i,a){this.expression=t,this.uniformNames=e.map((function(t){return&quot;u_&quot;+t+&quot;_t&quot;})),this.type=r,this.useIntegerZoom=n,this.zoom=i,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:&quot;a_&quot;+t,type:&quot;Float32&quot;,components:&quot;color&quot;===r?4:2,offset:0}})),this.paintVertexArray=new a};Ea.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.expression.evaluate(new ii(this.zoom),e,{},n,[],i),o=this.expression.evaluate(new ii(this.zoom+1),e,{},n,[],i),s=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(s,t,a,o)},Ea.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:this.zoom},r,n),a=this.expression.evaluate({zoom:this.zoom+1},r,n);this._setPaintValue(t,e,i,a)},Ea.prototype._setPaintValue=function(t,e,r,n){if(&quot;color&quot;===this.type)for(var i=ka(r),a=ka(n),o=t;o&lt;e;o++)this.paintVertexArray.emplace(o,i[0],i[1],a[0],a[1]);else{for(var s=t;s&lt;e;s++)this.paintVertexArray.emplace(s,r,n);this.maxValue=Math.max(this.maxValue,Math.abs(r),Math.abs(n))}},Ea.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Ea.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()},Ea.prototype.setUniform=function(t,e){var r=this.useIntegerZoom?Math.floor(e.zoom):e.zoom,n=l(this.expression.interpolationFactor(r,this.zoom,this.zoom+1),0,1);t.set(n)},Ea.prototype.getBinding=function(t,e,r){return new va(t,e)};var Ca=function(t,e,r,n,i,a){this.expression=t,this.type=e,this.useIntegerZoom=r,this.zoom=n,this.layerId=a,this.zoomInPaintVertexArray=new i,this.zoomOutPaintVertexArray=new i};Ca.prototype.populatePaintArray=function(t,e,r){var n=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(n,t,e.patterns&amp;&amp;e.patterns[this.layerId],r)},Ca.prototype.updatePaintArray=function(t,e,r,n,i){this._setPaintValues(t,e,r.patterns&amp;&amp;r.patterns[this.layerId],i)},Ca.prototype._setPaintValues=function(t,e,r,n){if(n&amp;&amp;r){var i=n[r.min],a=n[r.mid],o=n[r.max];if(i&amp;&amp;a&amp;&amp;o)for(var s=t;s&lt;e;s++)this.zoomInPaintVertexArray.emplace(s,a.tl[0],a.tl[1],a.br[0],a.br[1],i.tl[0],i.tl[1],i.br[0],i.br[1],a.pixelRatio,i.pixelRatio),this.zoomOutPaintVertexArray.emplace(s,a.tl[0],a.tl[1],a.br[0],a.br[1],o.tl[0],o.tl[1],o.br[0],o.br[1],a.pixelRatio,o.pixelRatio)}},Ca.prototype.upload=function(t){this.zoomInPaintVertexArray&amp;&amp;this.zoomInPaintVertexArray.arrayBuffer&amp;&amp;this.zoomOutPaintVertexArray&amp;&amp;this.zoomOutPaintVertexArray.arrayBuffer&amp;&amp;(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,oa.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,oa.members,this.expression.isStateDependent))},Ca.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&amp;&amp;this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&amp;&amp;this.zoomInPaintVertexBuffer.destroy()};var La=function(t,e,r,n){this.binders={},this.layoutAttributes=n,this._buffers=[];var i=[];for(var a in t.paint._values)if(r(a)){var o=t.paint.get(a);if(o instanceof fi&amp;&amp;Lr(o.property.specification)){var s=Pa(a,t.type),l=o.value,c=o.property.specification.type,u=o.property.useIntegerZoom,f=o.property.specification[&quot;property-type&quot;],h=&quot;cross-faded&quot;===f||&quot;cross-faded-data-driven&quot;===f;if(&quot;constant&quot;===l.kind)this.binders[a]=h?new Aa(l.value,s):new Ma(l.value,s,c),i.push(&quot;/u_&quot;+a);else if(&quot;source&quot;===l.kind||h){var p=za(a,c,&quot;source&quot;);this.binders[a]=h?new Ca(l,c,u,e,p,t.id):new Sa(l,s,c,p),i.push(&quot;/a_&quot;+a)}else{var d=za(a,c,&quot;composite&quot;);this.binders[a]=new Ea(l,s,c,u,e,d),i.push(&quot;/z_&quot;+a)}}}this.cacheKey=i.sort().join(&quot;&quot;)};La.prototype.getMaxValue=function(t){var e=this.binders[t];return e instanceof Sa||e instanceof Ea?e.maxValue:0},La.prototype.populatePaintArrays=function(t,e,r,n,i){for(var a in this.binders){var o=this.binders[a];(o instanceof Sa||o instanceof Ea||o instanceof Ca)&amp;&amp;o.populatePaintArray(t,e,r,n,i)}},La.prototype.setConstantPatternPositions=function(t,e){for(var r in this.binders){var n=this.binders[r];n instanceof Aa&amp;&amp;n.setConstantPatternPositions(t,e)}},La.prototype.updatePaintArrays=function(t,e,r,n,i){var a=!1;for(var o in t)for(var s=0,l=e.getPositions(o);s&lt;l.length;s+=1){var c=l[s],u=r.feature(c.index);for(var f in this.binders){var h=this.binders[f];if((h instanceof Sa||h instanceof Ea||h instanceof Ca)&amp;&amp;!0===h.expression.isStateDependent){var p=n.paint.get(f);h.expression=p.value,h.updatePaintArray(c.start,c.end,u,t[o],i),a=!0}}}return a},La.prototype.defines=function(){var t=[];for(var e in this.binders){var r=this.binders[e];(r instanceof Ma||r instanceof Aa)&amp;&amp;t.push.apply(t,r.uniformNames.map((function(t){return&quot;#define HAS_UNIFORM_&quot;+t})))}return t},La.prototype.getPaintVertexBuffers=function(){return this._buffers},La.prototype.getUniforms=function(t,e){var r=[];for(var n in this.binders){var i=this.binders[n];if(i instanceof Ma||i instanceof Aa||i instanceof Ea)for(var a=0,o=i.uniformNames;a&lt;o.length;a+=1){var s=o[a];if(e[s]){var l=i.getBinding(t,e[s],s);r.push({name:s,property:n,binding:l})}}}return r},La.prototype.setUniforms=function(t,e,r,n){for(var i=0,a=e;i&lt;a.length;i+=1){var o=a[i],s=o.name,l=o.property;this.binders[l].setUniform(o.binding,n,r.get(l),s)}},La.prototype.updatePaintBuffers=function(t){for(var e in this._buffers=[],this.binders){var r=this.binders[e];if(t&amp;&amp;r instanceof Ca){var n=2===t.fromScale?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;n&amp;&amp;this._buffers.push(n)}else(r instanceof Sa||r instanceof Ea)&amp;&amp;r.paintVertexBuffer&amp;&amp;this._buffers.push(r.paintVertexBuffer)}},La.prototype.upload=function(t){for(var e in this.binders){var r=this.binders[e];(r instanceof Sa||r instanceof Ea||r instanceof Ca)&amp;&amp;r.upload(t)}this.updatePaintBuffers()},La.prototype.destroy=function(){for(var t in this.binders){var e=this.binders[t];(e instanceof Sa||e instanceof Ea||e instanceof Ca)&amp;&amp;e.destroy()}};var Ia=function(t,e,r,n){void 0===n&amp;&amp;(n=function(){return!0}),this.programConfigurations={};for(var i=0,a=e;i&lt;a.length;i+=1){var o=a[i];this.programConfigurations[o.id]=new La(o,r,n,t)}this.needsUpload=!1,this._featureMap=new fa,this._bufferOffset=0};function Pa(t,e){return{&quot;text-opacity&quot;:[&quot;opacity&quot;],&quot;icon-opacity&quot;:[&quot;opacity&quot;],&quot;text-color&quot;:[&quot;fill_color&quot;],&quot;icon-color&quot;:[&quot;fill_color&quot;],&quot;text-halo-color&quot;:[&quot;halo_color&quot;],&quot;icon-halo-color&quot;:[&quot;halo_color&quot;],&quot;text-halo-blur&quot;:[&quot;halo_blur&quot;],&quot;icon-halo-blur&quot;:[&quot;halo_blur&quot;],&quot;text-halo-width&quot;:[&quot;halo_width&quot;],&quot;icon-halo-width&quot;:[&quot;halo_width&quot;],&quot;line-gap-width&quot;:[&quot;gapwidth&quot;],&quot;line-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;],&quot;fill-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;],&quot;fill-extrusion-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;]}[t]||[t.replace(e+&quot;-&quot;,&quot;&quot;).replace(/-/g,&quot;_&quot;)]}function za(t,e,r){var n={color:{source:Gi,composite:Yi},number:{source:ji,composite:Gi}},i=function(t){return{&quot;line-pattern&quot;:{source:Ci,composite:Ci},&quot;fill-pattern&quot;:{source:Ci,composite:Ci},&quot;fill-extrusion-pattern&quot;:{source:Ci,composite:Ci}}[t]}(t);return i&amp;&amp;i[r]||n[e][r]}Ia.prototype.populatePaintArrays=function(t,e,r,n,i,a){for(var o in this.programConfigurations)this.programConfigurations[o].populatePaintArrays(t,e,n,i,a);void 0!==e.id&amp;&amp;this._featureMap.add(e.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0},Ia.prototype.updatePaintArrays=function(t,e,r,n){for(var i=0,a=r;i&lt;a.length;i+=1){var o=a[i];this.needsUpload=this.programConfigurations[o.id].updatePaintArrays(t,this._featureMap,e,o,n)||this.needsUpload}},Ia.prototype.get=function(t){return this.programConfigurations[t]},Ia.prototype.upload=function(t){if(this.needsUpload){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}},Ia.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},Dn(&quot;ConstantBinder&quot;,Ma),Dn(&quot;CrossFadedConstantBinder&quot;,Aa),Dn(&quot;SourceExpressionBinder&quot;,Sa),Dn(&quot;CrossFadedCompositeBinder&quot;,Ca),Dn(&quot;CompositeExpressionBinder&quot;,Ea),Dn(&quot;ProgramConfiguration&quot;,La,{omit:[&quot;_buffers&quot;]}),Dn(&quot;ProgramConfigurationSet&quot;,Ia);var Oa={min:-1*Math.pow(2,14),max:Math.pow(2,14)-1};function Da(t){for(var e=8192/t.extent,r=t.loadGeometry(),n=0;n&lt;r.length;n++)for(var i=r[n],a=0;a&lt;i.length;a++){var o=i[a];o.x=Math.round(o.x*e),o.y=Math.round(o.y*e),(o.x&lt;Oa.min||o.x&gt;Oa.max||o.y&lt;Oa.min||o.y&gt;Oa.max)&amp;&amp;(_(&quot;Geometry exceeds allowed extent, reduce your vector tile buffer size&quot;),o.x=l(o.x,Oa.min,Oa.max),o.y=l(o.y,Oa.min,Oa.max))}return r}function Ra(t,e,r,n,i){t.emplaceBack(2*e+(n+1)/2,2*r+(i+1)/2)}var Fa=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Mi,this.indexArray=new Fi,this.segments=new ia,this.programConfigurations=new Ia(na,t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Ba(t,e){for(var r=0;r&lt;t.length;r++)if(Wa(e,t[r]))return!0;for(var n=0;n&lt;e.length;n++)if(Wa(t,e[n]))return!0;return!!Va(t,e)}function Na(t,e,r){return!!Wa(t,e)||!!Ha(e,t,r)}function ja(t,e){if(1===t.length)return Ya(e,t[0]);for(var r=0;r&lt;e.length;r++)for(var n=e[r],i=0;i&lt;n.length;i++)if(Wa(t,n[i]))return!0;for(var a=0;a&lt;t.length;a++)if(Ya(e,t[a]))return!0;for(var o=0;o&lt;e.length;o++)if(Va(t,e[o]))return!0;return!1}function Ua(t,e,r){if(t.length&gt;1){if(Va(t,e))return!0;for(var n=0;n&lt;e.length;n++)if(Ha(e[n],t,r))return!0}for(var i=0;i&lt;t.length;i++)if(Ha(t[i],e,r))return!0;return!1}function Va(t,e){if(0===t.length||0===e.length)return!1;for(var r=0;r&lt;t.length-1;r++)for(var n=t[r],i=t[r+1],a=0;a&lt;e.length-1;a++)if(qa(n,i,e[a],e[a+1]))return!0;return!1}function qa(t,e,r,n){return w(t,r,n)!==w(e,r,n)&amp;&amp;w(t,e,r)!==w(t,e,n)}function Ha(t,e,r){var n=r*r;if(1===e.length)return t.distSqr(e[0])&lt;n;for(var i=1;i&lt;e.length;i++)if(Ga(t,e[i-1],e[i])&lt;n)return!0;return!1}function Ga(t,e,r){var n=e.distSqr(r);if(0===n)return t.distSqr(e);var i=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;return t.distSqr(i&lt;0?e:i&gt;1?r:r.sub(e)._mult(i)._add(e))}function Ya(t,e){for(var r,n,i,a=!1,o=0;o&lt;t.length;o++)for(var s=0,l=(r=t[o]).length-1;s&lt;r.length;l=s++)(n=r[s]).y&gt;e.y!=(i=r[l]).y&gt;e.y&amp;&amp;e.x&lt;(i.x-n.x)*(e.y-n.y)/(i.y-n.y)+n.x&amp;&amp;(a=!a);return a}function Wa(t,e){for(var r=!1,n=0,i=t.length-1;n&lt;t.length;i=n++){var a=t[n],o=t[i];a.y&gt;e.y!=o.y&gt;e.y&amp;&amp;e.x&lt;(o.x-a.x)*(e.y-a.y)/(o.y-a.y)+a.x&amp;&amp;(r=!r)}return r}function Xa(t,e,r){var n=r[0],i=r[2];if(t.x&lt;n.x&amp;&amp;e.x&lt;n.x||t.x&gt;i.x&amp;&amp;e.x&gt;i.x||t.y&lt;n.y&amp;&amp;e.y&lt;n.y||t.y&gt;i.y&amp;&amp;e.y&gt;i.y)return!1;var a=w(t,e,r[0]);return a!==w(t,e,r[1])||a!==w(t,e,r[2])||a!==w(t,e,r[3])}function Za(t,e,r){var n=e.paint.get(t).value;return&quot;constant&quot;===n.kind?n.value:r.programConfigurations.get(e.id).getMaxValue(t)}function Ja(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ka(t,e,r,n,a){if(!e[0]&amp;&amp;!e[1])return t;var o=i.convert(e)._mult(a);&quot;viewport&quot;===r&amp;&amp;o._rotate(-n);for(var s=[],l=0;l&lt;t.length;l++)s.push(t[l].sub(o));return s}Fa.prototype.populate=function(t,e,r){var n=this.layers[0],i=[],a=null;&quot;circle&quot;===n.type&amp;&amp;(a=n.layout.get(&quot;circle-sort-key&quot;));for(var o=0,s=t;o&lt;s.length;o+=1){var l=s[o],c=l.feature,u=l.id,f=l.index,h=l.sourceLayerIndex,p=this.layers[0]._featureFilter.needGeometry,d={type:c.type,id:u,properties:c.properties,geometry:p?Da(c):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),d,r)){p||(d.geometry=Da(c));var g=a?a.evaluate(d,{},r):void 0;i.push({id:u,properties:c.properties,type:c.type,sourceLayerIndex:h,index:f,geometry:d.geometry,patterns:{},sortKey:g})}}a&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var m=0,v=i;m&lt;v.length;m+=1){var y=v[m],x=y.geometry,b=y.index,_=y.sourceLayerIndex,w=t[b].feature;this.addFeature(y,x,b,r),e.featureIndex.insert(w,x,b,_,this.index)}},Fa.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Fa.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Fa.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Fa.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,na),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Fa.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Fa.prototype.addFeature=function(t,e,r,n){for(var i=0,a=e;i&lt;a.length;i+=1)for(var o=0,s=a[i];o&lt;s.length;o+=1){var l=s[o],c=l.x,u=l.y;if(!(c&lt;0||c&gt;=8192||u&lt;0||u&gt;=8192)){var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),h=f.vertexLength;Ra(this.layoutVertexArray,c,u,-1,-1),Ra(this.layoutVertexArray,c,u,1,-1),Ra(this.layoutVertexArray,c,u,1,1),Ra(this.layoutVertexArray,c,u,-1,1),this.indexArray.emplaceBack(h,h+1,h+2),this.indexArray.emplaceBack(h,h+3,h+2),f.vertexLength+=4,f.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{},n)},Dn(&quot;CircleBucket&quot;,Fa,{omit:[&quot;layers&quot;]});var Qa=new yi({&quot;circle-sort-key&quot;:new di(At.layout_circle[&quot;circle-sort-key&quot;])}),$a={paint:new yi({&quot;circle-radius&quot;:new di(At.paint_circle[&quot;circle-radius&quot;]),&quot;circle-color&quot;:new di(At.paint_circle[&quot;circle-color&quot;]),&quot;circle-blur&quot;:new di(At.paint_circle[&quot;circle-blur&quot;]),&quot;circle-opacity&quot;:new di(At.paint_circle[&quot;circle-opacity&quot;]),&quot;circle-translate&quot;:new pi(At.paint_circle[&quot;circle-translate&quot;]),&quot;circle-translate-anchor&quot;:new pi(At.paint_circle[&quot;circle-translate-anchor&quot;]),&quot;circle-pitch-scale&quot;:new pi(At.paint_circle[&quot;circle-pitch-scale&quot;]),&quot;circle-pitch-alignment&quot;:new pi(At.paint_circle[&quot;circle-pitch-alignment&quot;]),&quot;circle-stroke-width&quot;:new di(At.paint_circle[&quot;circle-stroke-width&quot;]),&quot;circle-stroke-color&quot;:new di(At.paint_circle[&quot;circle-stroke-color&quot;]),&quot;circle-stroke-opacity&quot;:new di(At.paint_circle[&quot;circle-stroke-opacity&quot;])}),layout:Qa},to=&quot;undefined&quot;!=typeof Float32Array?Float32Array:Array;function eo(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ro(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],m=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*m,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,t[4]=(x=r[4])*n+(b=r[5])*s+(_=r[6])*f+(w=r[7])*g,t[5]=x*i+b*l+_*h+w*m,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,t[8]=(x=r[8])*n+(b=r[9])*s+(_=r[10])*f+(w=r[11])*g,t[9]=x*i+b*l+_*h+w*m,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,t[12]=(x=r[12])*n+(b=r[13])*s+(_=r[14])*f+(w=r[15])*g,t[13]=x*i+b*l+_*h+w*m,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,r=arguments.length;r--;)e+=t[r]*t[r];return Math.sqrt(e)});var no,io=ro;function ao(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}no=new to(3),to!=Float32Array&amp;&amp;(no[0]=0,no[1]=0,no[2]=0),function(){var t=new to(4);to!=Float32Array&amp;&amp;(t[0]=0,t[1]=0,t[2]=0,t[3]=0)}();var oo=(function(){var t=new to(2);to!=Float32Array&amp;&amp;(t[0]=0,t[1]=0)}(),function(t){function e(e){t.call(this,e,$a)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new Fa(t)},e.prototype.queryRadius=function(t){var e=t;return Za(&quot;circle-radius&quot;,this,e)+Za(&quot;circle-stroke-width&quot;,this,e)+Ja(this.paint.get(&quot;circle-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o,s){for(var l=Ka(t,this.paint.get(&quot;circle-translate&quot;),this.paint.get(&quot;circle-translate-anchor&quot;),a.angle,o),c=this.paint.get(&quot;circle-radius&quot;).evaluate(e,r)+this.paint.get(&quot;circle-stroke-width&quot;).evaluate(e,r),u=&quot;map&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;),f=u?l:function(t,e){return t.map((function(t){return so(t,e)}))}(l,s),h=u?c*o:c,p=0,d=n;p&lt;d.length;p+=1)for(var g=0,m=d[p];g&lt;m.length;g+=1){var v=m[g],y=u?v:so(v,s),x=h,b=ao([],[v.x,v.y,0,1],s);if(&quot;viewport&quot;===this.paint.get(&quot;circle-pitch-scale&quot;)&amp;&amp;&quot;map&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;)?x*=b[3]/a.cameraToCenterDistance:&quot;map&quot;===this.paint.get(&quot;circle-pitch-scale&quot;)&amp;&amp;&quot;viewport&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;)&amp;&amp;(x*=a.cameraToCenterDistance/b[3]),Na(f,y,x))return!0}return!1},e}(xi));function so(t,e){var r=ao([],[t.x,t.y,0,1],e);return new i(r[0]/r[3],r[1]/r[3])}var lo=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(Fa);function co(t,e,r,n){var i=e.width,a=e.height;if(n){if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==i*a*r)throw new RangeError(&quot;mismatched image size&quot;)}else n=new Uint8Array(i*a*r);return t.width=i,t.height=a,t.data=n,t}function uo(t,e,r){var n=e.width,i=e.height;if(n!==t.width||i!==t.height){var a=co({},{width:n,height:i},r);fo(t,a,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,n),height:Math.min(t.height,i)},r),t.width=n,t.height=i,t.data=a.data}}function fo(t,e,r,n,i,a){if(0===i.width||0===i.height)return e;if(i.width&gt;t.width||i.height&gt;t.height||r.x&gt;t.width-i.width||r.y&gt;t.height-i.height)throw new RangeError(&quot;out of range source coordinates for image copy&quot;);if(i.width&gt;e.width||i.height&gt;e.height||n.x&gt;e.width-i.width||n.y&gt;e.height-i.height)throw new RangeError(&quot;out of range destination coordinates for image copy&quot;);for(var o=t.data,s=e.data,l=0;l&lt;i.height;l++)for(var c=((r.y+l)*t.width+r.x)*a,u=((n.y+l)*e.width+n.x)*a,f=0;f&lt;i.width*a;f++)s[u+f]=o[c+f];return e}Dn(&quot;HeatmapBucket&quot;,lo,{omit:[&quot;layers&quot;]});var ho=function(t,e){co(this,t,1,e)};ho.prototype.resize=function(t){uo(this,t,1)},ho.prototype.clone=function(){return new ho({width:this.width,height:this.height},new Uint8Array(this.data))},ho.copy=function(t,e,r,n,i){fo(t,e,r,n,i,1)};var po=function(t,e){co(this,t,4,e)};po.prototype.resize=function(t){uo(this,t,4)},po.prototype.replace=function(t,e){e?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t},po.prototype.clone=function(){return new po({width:this.width,height:this.height},new Uint8Array(this.data))},po.copy=function(t,e,r,n,i){fo(t,e,r,n,i,4)},Dn(&quot;AlphaImage&quot;,ho),Dn(&quot;RGBAImage&quot;,po);var go={paint:new yi({&quot;heatmap-radius&quot;:new di(At.paint_heatmap[&quot;heatmap-radius&quot;]),&quot;heatmap-weight&quot;:new di(At.paint_heatmap[&quot;heatmap-weight&quot;]),&quot;heatmap-intensity&quot;:new pi(At.paint_heatmap[&quot;heatmap-intensity&quot;]),&quot;heatmap-color&quot;:new vi(At.paint_heatmap[&quot;heatmap-color&quot;]),&quot;heatmap-opacity&quot;:new pi(At.paint_heatmap[&quot;heatmap-opacity&quot;])})};function mo(t,e){for(var r=new Uint8Array(1024),n={},i=0,a=0;i&lt;256;i++,a+=4){n[e]=i/255;var o=t.evaluate(n);r[a+0]=Math.floor(255*o.r/o.a),r[a+1]=Math.floor(255*o.g/o.a),r[a+2]=Math.floor(255*o.b/o.a),r[a+3]=Math.floor(255*o.a)}return new po({width:256,height:1},r)}var vo=function(t){function e(e){t.call(this,e,go),this._updateColorRamp()}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new lo(t)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){&quot;heatmap-color&quot;===t&amp;&amp;this._updateColorRamp()},e.prototype._updateColorRamp=function(){this.colorRamp=mo(this._transitionablePaint._values[&quot;heatmap-color&quot;].value.expression,&quot;heatmapDensity&quot;),this.colorRampTexture=null},e.prototype.resize=function(){this.heatmapFbo&amp;&amp;(this.heatmapFbo.destroy(),this.heatmapFbo=null)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(&quot;heatmap-opacity&quot;)&amp;&amp;&quot;none&quot;!==this.visibility},e}(xi),yo={paint:new yi({&quot;hillshade-illumination-direction&quot;:new pi(At.paint_hillshade[&quot;hillshade-illumination-direction&quot;]),&quot;hillshade-illumination-anchor&quot;:new pi(At.paint_hillshade[&quot;hillshade-illumination-anchor&quot;]),&quot;hillshade-exaggeration&quot;:new pi(At.paint_hillshade[&quot;hillshade-exaggeration&quot;]),&quot;hillshade-shadow-color&quot;:new pi(At.paint_hillshade[&quot;hillshade-shadow-color&quot;]),&quot;hillshade-highlight-color&quot;:new pi(At.paint_hillshade[&quot;hillshade-highlight-color&quot;]),&quot;hillshade-accent-color&quot;:new pi(At.paint_hillshade[&quot;hillshade-accent-color&quot;])})},xo=function(t){function e(e){t.call(this,e,yo)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(&quot;hillshade-exaggeration&quot;)&amp;&amp;&quot;none&quot;!==this.visibility},e}(xi),bo=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;}],4).members,_o=To,wo=To;function To(t,e,r){r=r||2;var n,i,a,o,s,l,c,u=e&amp;&amp;e.length,f=u?e[0]*r:t.length,h=ko(t,0,f,r,!0),p=[];if(!h||h.next===h.prev)return p;if(u&amp;&amp;(h=function(t,e,r,n){var i,a,o,s=[];for(i=0,a=e.length;i&lt;a;i++)(o=ko(t,e[i]*n,i&lt;a-1?e[i+1]*n:t.length,n,!1))===o.next&amp;&amp;(o.steiner=!0),s.push(Do(o));for(s.sort(Io),i=0;i&lt;s.length;i++)Po(s[i],r),r=Mo(r,r.next);return r}(t,e,h,r)),t.length&gt;80*r){n=a=t[0],i=o=t[1];for(var d=r;d&lt;f;d+=r)(s=t[d])&lt;n&amp;&amp;(n=s),(l=t[d+1])&lt;i&amp;&amp;(i=l),s&gt;a&amp;&amp;(a=s),l&gt;o&amp;&amp;(o=l);c=0!==(c=Math.max(a-n,o-i))?1/c:0}return Ao(h,p,r,n,i,c),p}function ko(t,e,r,n,i){var a,o;if(i===Xo(t,e,r,n)&gt;0)for(a=e;a&lt;r;a+=n)o=Go(a,t[a],t[a+1],o);else for(a=r-n;a&gt;=e;a-=n)o=Go(a,t[a],t[a+1],o);return o&amp;&amp;No(o,o.next)&amp;&amp;(Yo(o),o=o.next),o}function Mo(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!No(n,n.next)&amp;&amp;0!==Bo(n.prev,n,n.next))n=n.next;else{if(Yo(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function Ao(t,e,r,n,i,a,o){if(t){!o&amp;&amp;a&amp;&amp;function(t,e,r,n){var i=t;do{null===i.z&amp;&amp;(i.z=Oo(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e&lt;c&amp;&amp;(s++,n=n.nextZ);e++);for(l=c;s&gt;0||l&gt;0&amp;&amp;n;)0!==s&amp;&amp;(0===l||!n||r.z&lt;=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o&gt;1)}(i)}(t,n,i,a);for(var s,l,c=t;t.prev!==t.next;)if(s=t.prev,l=t.next,a?Eo(t,n,i,a):So(t))e.push(s.i/r),e.push(t.i/r),e.push(l.i/r),Yo(t),t=l.next,c=l.next;else if((t=l)===c){o?1===o?Ao(t=Co(Mo(t),e,r),e,r,n,i,a,2):2===o&amp;&amp;Lo(t,e,r,n,i,a):Ao(Mo(t),e,r,n,i,a,1);break}}}function So(t){var e=t.prev,r=t,n=t.next;if(Bo(e,r,n)&gt;=0)return!1;for(var i=t.next.next;i!==t.prev;){if(Ro(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&amp;&amp;Bo(i.prev,i,i.next)&gt;=0)return!1;i=i.next}return!0}function Eo(t,e,r,n){var i=t.prev,a=t,o=t.next;if(Bo(i,a,o)&gt;=0)return!1;for(var s=i.x&gt;a.x?i.x&gt;o.x?i.x:o.x:a.x&gt;o.x?a.x:o.x,l=i.y&gt;a.y?i.y&gt;o.y?i.y:o.y:a.y&gt;o.y?a.y:o.y,c=Oo(i.x&lt;a.x?i.x&lt;o.x?i.x:o.x:a.x&lt;o.x?a.x:o.x,i.y&lt;a.y?i.y&lt;o.y?i.y:o.y:a.y&lt;o.y?a.y:o.y,e,r,n),u=Oo(s,l,e,r,n),f=t.prevZ,h=t.nextZ;f&amp;&amp;f.z&gt;=c&amp;&amp;h&amp;&amp;h.z&lt;=u;){if(f!==t.prev&amp;&amp;f!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,f.x,f.y)&amp;&amp;Bo(f.prev,f,f.next)&gt;=0)return!1;if(f=f.prevZ,h!==t.prev&amp;&amp;h!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&amp;&amp;Bo(h.prev,h,h.next)&gt;=0)return!1;h=h.nextZ}for(;f&amp;&amp;f.z&gt;=c;){if(f!==t.prev&amp;&amp;f!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,f.x,f.y)&amp;&amp;Bo(f.prev,f,f.next)&gt;=0)return!1;f=f.prevZ}for(;h&amp;&amp;h.z&lt;=u;){if(h!==t.prev&amp;&amp;h!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&amp;&amp;Bo(h.prev,h,h.next)&gt;=0)return!1;h=h.nextZ}return!0}function Co(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!No(i,a)&amp;&amp;jo(i,n,n.next,a)&amp;&amp;qo(i,a)&amp;&amp;qo(a,i)&amp;&amp;(e.push(i.i/r),e.push(n.i/r),e.push(a.i/r),Yo(n),Yo(n.next),n=t=a),n=n.next}while(n!==t);return Mo(n)}function Lo(t,e,r,n,i,a){var o=t;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&amp;&amp;Fo(o,s)){var l=Ho(o,s);return o=Mo(o,o.next),l=Mo(l,l.next),Ao(o,e,r,n,i,a),void Ao(l,e,r,n,i,a)}s=s.next}o=o.next}while(o!==t)}function Io(t,e){return t.x-e.x}function Po(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a&lt;=n.y&amp;&amp;a&gt;=n.next.y&amp;&amp;n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s&lt;=i&amp;&amp;s&gt;o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x&lt;n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,h=1/0;n=r;do{i&gt;=n.x&amp;&amp;n.x&gt;=u&amp;&amp;i!==n.x&amp;&amp;Ro(a&lt;f?i:o,a,u,f,a&lt;f?o:i,a,n.x,n.y)&amp;&amp;(l=Math.abs(a-n.y)/(i-n.x),qo(n,t)&amp;&amp;(l&lt;h||l===h&amp;&amp;(n.x&gt;r.x||n.x===r.x&amp;&amp;zo(r,n)))&amp;&amp;(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e)){var r=Ho(e,t);Mo(e,e.next),Mo(r,r.next)}}function zo(t,e){return Bo(t.prev,t,e.prev)&lt;0&amp;&amp;Bo(e.next,t,t.next)&lt;0}function Oo(t,e,r,n,i){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t=32767*(t-r)*i)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e=32767*(e-n)*i)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1}function Do(t){var e=t,r=t;do{(e.x&lt;r.x||e.x===r.x&amp;&amp;e.y&lt;r.y)&amp;&amp;(r=e),e=e.next}while(e!==t);return r}function Ro(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)&gt;=0&amp;&amp;(t-o)*(n-s)-(r-o)*(e-s)&gt;=0&amp;&amp;(r-o)*(a-s)-(i-o)*(n-s)&gt;=0}function Fo(t,e){return t.next.i!==e.i&amp;&amp;t.prev.i!==e.i&amp;&amp;!function(t,e){var r=t;do{if(r.i!==t.i&amp;&amp;r.next.i!==t.i&amp;&amp;r.i!==e.i&amp;&amp;r.next.i!==e.i&amp;&amp;jo(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&amp;&amp;(qo(t,e)&amp;&amp;qo(e,t)&amp;&amp;function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y&gt;a!=r.next.y&gt;a&amp;&amp;r.next.y!==r.y&amp;&amp;i&lt;(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&amp;&amp;(n=!n),r=r.next}while(r!==t);return n}(t,e)&amp;&amp;(Bo(t.prev,t,e.prev)||Bo(t,e.prev,e))||No(t,e)&amp;&amp;Bo(t.prev,t,t.next)&gt;0&amp;&amp;Bo(e.prev,e,e.next)&gt;0)}function Bo(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function No(t,e){return t.x===e.x&amp;&amp;t.y===e.y}function jo(t,e,r,n){var i=Vo(Bo(t,e,r)),a=Vo(Bo(t,e,n)),o=Vo(Bo(r,n,t)),s=Vo(Bo(r,n,e));return i!==a&amp;&amp;o!==s||!(0!==i||!Uo(t,r,e))||!(0!==a||!Uo(t,n,e))||!(0!==o||!Uo(r,t,n))||!(0!==s||!Uo(r,e,n))}function Uo(t,e,r){return e.x&lt;=Math.max(t.x,r.x)&amp;&amp;e.x&gt;=Math.min(t.x,r.x)&amp;&amp;e.y&lt;=Math.max(t.y,r.y)&amp;&amp;e.y&gt;=Math.min(t.y,r.y)}function Vo(t){return t&gt;0?1:t&lt;0?-1:0}function qo(t,e){return Bo(t.prev,t,t.next)&lt;0?Bo(t,e,t.next)&gt;=0&amp;&amp;Bo(t,t.prev,e)&gt;=0:Bo(t,e,t.prev)&lt;0||Bo(t,t.next,e)&lt;0}function Ho(t,e){var r=new Wo(t.i,t.x,t.y),n=new Wo(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function Go(t,e,r,n){var i=new Wo(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Yo(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&amp;&amp;(t.prevZ.nextZ=t.nextZ),t.nextZ&amp;&amp;(t.nextZ.prevZ=t.prevZ)}function Wo(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Xo(t,e,r,n){for(var i=0,a=e,o=r-n;a&lt;r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}function Zo(t,e,r,n,i){!function t(e,r,n,i,a){for(;i&gt;n;){if(i-n&gt;600){var o=i-n+1,s=r-n+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2&lt;0?-1:1);t(e,r,Math.max(n,Math.floor(r-s*c/o+u)),Math.min(i,Math.floor(r+(o-s)*c/o+u)),a)}var f=e[r],h=n,p=i;for(Jo(e,n,r),a(e[i],f)&gt;0&amp;&amp;Jo(e,n,i);h&lt;p;){for(Jo(e,h,p),h++,p--;a(e[h],f)&lt;0;)h++;for(;a(e[p],f)&gt;0;)p--}0===a(e[n],f)?Jo(e,n,p):Jo(e,++p,i),p&lt;=r&amp;&amp;(n=p+1),r&lt;=p&amp;&amp;(i=p-1)}}(t,e,r||0,n||t.length-1,i||Ko)}function Jo(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Ko(t,e){return t&lt;e?-1:t&gt;e?1:0}function Qo(t,e){var r=t.length;if(r&lt;=1)return[t];for(var n,i,a=[],o=0;o&lt;r;o++){var s=T(t[o]);0!==s&amp;&amp;(t[o].area=Math.abs(s),void 0===i&amp;&amp;(i=s&lt;0),i===s&lt;0?(n&amp;&amp;a.push(n),n=[t[o]]):n.push(t[o]))}if(n&amp;&amp;a.push(n),e&gt;1)for(var l=0;l&lt;a.length;l++)a[l].length&lt;=e||(Zo(a[l],e,1,a[l].length-1,$o),a[l]=a[l].slice(0,e));return a}function $o(t,e){return e.area-t.area}function ts(t,e,r){for(var n=r.patternDependencies,i=!1,a=0,o=e;a&lt;o.length;a+=1){var s=o[a].paint.get(t+&quot;-pattern&quot;);s.isConstant()||(i=!0);var l=s.constantOr(null);l&amp;&amp;(i=!0,n[l.to]=!0,n[l.from]=!0)}return i}function es(t,e,r,n,i){for(var a=i.patternDependencies,o=0,s=e;o&lt;s.length;o+=1){var l=s[o],c=l.paint.get(t+&quot;-pattern&quot;).value;if(&quot;constant&quot;!==c.kind){var u=c.evaluate({zoom:n-1},r,{},i.availableImages),f=c.evaluate({zoom:n},r,{},i.availableImages),h=c.evaluate({zoom:n+1},r,{},i.availableImages);f=f&amp;&amp;f.name?f.name:f,h=h&amp;&amp;h.name?h.name:h,a[u=u&amp;&amp;u.name?u.name:u]=!0,a[f]=!0,a[h]=!0,r.patterns[l.id]={min:u,mid:f,max:h}}}return r}To.deviation=function(t,e,r,n){var i=e&amp;&amp;e.length,a=Math.abs(Xo(t,0,i?e[0]*r:t.length,r));if(i)for(var o=0,s=e.length;o&lt;s;o++)a-=Math.abs(Xo(t,e[o]*r,o&lt;s-1?e[o+1]*r:t.length,r));var l=0;for(o=0;o&lt;n.length;o+=3){var c=n[o]*r,u=n[o+1]*r,f=n[o+2]*r;l+=Math.abs((t[c]-t[f])*(t[u+1]-t[c+1])-(t[c]-t[u])*(t[f+1]-t[c+1]))}return 0===a&amp;&amp;0===l?0:Math.abs((l-a)/a)},To.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i&lt;t.length;i++){for(var a=0;a&lt;t[i].length;a++)for(var o=0;o&lt;e;o++)r.vertices.push(t[i][a][o]);i&gt;0&amp;&amp;r.holes.push(n+=t[i-1].length)}return r},_o.default=wo;var rs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Mi,this.indexArray=new Fi,this.indexArray2=new qi,this.programConfigurations=new Ia(bo,t.layers,t.zoom),this.segments=new ia,this.segments2=new ia,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};rs.prototype.populate=function(t,e,r){this.hasPattern=ts(&quot;fill&quot;,this.layers,e);for(var n=this.layers[0].layout.get(&quot;fill-sort-key&quot;),i=[],a=0,o=t;a&lt;o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,p={type:l.type,id:c,properties:l.properties,geometry:h?Da(l):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),p,r)){h||(p.geometry=Da(l));var d=n?n.evaluate(p,{},r,e.availableImages):void 0;i.push({id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:p.geometry,patterns:{},sortKey:d})}}n&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var g=0,m=i;g&lt;m.length;g+=1){var v=m[g],y=v.geometry,x=v.index,b=v.sourceLayerIndex;if(this.hasPattern){var _=es(&quot;fill&quot;,this.layers,v,this.zoom,e);this.patternFeatures.push(_)}else this.addFeature(v,y,x,r,{});e.featureIndex.insert(t[x].feature,y,x,b,this.index)}},rs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},rs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},rs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},rs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},rs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,bo),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0},rs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},rs.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=Qo(e,500);a&lt;o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c&lt;u.length;c+=1)l+=u[c].length;for(var f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray),h=f.vertexLength,p=[],d=[],g=0,m=s;g&lt;m.length;g+=1){var v=m[g];if(0!==v.length){v!==s[0]&amp;&amp;d.push(p.length/2);var y=this.segments2.prepareSegment(v.length,this.layoutVertexArray,this.indexArray2),x=y.vertexLength;this.layoutVertexArray.emplaceBack(v[0].x,v[0].y),this.indexArray2.emplaceBack(x+v.length-1,x),p.push(v[0].x),p.push(v[0].y);for(var b=1;b&lt;v.length;b++)this.layoutVertexArray.emplaceBack(v[b].x,v[b].y),this.indexArray2.emplaceBack(x+b-1,x+b),p.push(v[b].x),p.push(v[b].y);y.vertexLength+=v.length,y.primitiveLength+=v.length}}for(var _=_o(p,d),w=0;w&lt;_.length;w+=3)this.indexArray.emplaceBack(h+_[w],h+_[w+1],h+_[w+2]);f.vertexLength+=l,f.primitiveLength+=_.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Dn(&quot;FillBucket&quot;,rs,{omit:[&quot;layers&quot;,&quot;patternFeatures&quot;]});var ns=new yi({&quot;fill-sort-key&quot;:new di(At.layout_fill[&quot;fill-sort-key&quot;])}),is={paint:new yi({&quot;fill-antialias&quot;:new pi(At.paint_fill[&quot;fill-antialias&quot;]),&quot;fill-opacity&quot;:new di(At.paint_fill[&quot;fill-opacity&quot;]),&quot;fill-color&quot;:new di(At.paint_fill[&quot;fill-color&quot;]),&quot;fill-outline-color&quot;:new di(At.paint_fill[&quot;fill-outline-color&quot;]),&quot;fill-translate&quot;:new pi(At.paint_fill[&quot;fill-translate&quot;]),&quot;fill-translate-anchor&quot;:new pi(At.paint_fill[&quot;fill-translate-anchor&quot;]),&quot;fill-pattern&quot;:new gi(At.paint_fill[&quot;fill-pattern&quot;])}),layout:ns},as=function(t){function e(e){t.call(this,e,is)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r);var n=this.paint._values[&quot;fill-outline-color&quot;];&quot;constant&quot;===n.value.kind&amp;&amp;void 0===n.value.value&amp;&amp;(this.paint._values[&quot;fill-outline-color&quot;]=this.paint._values[&quot;fill-color&quot;])},e.prototype.createBucket=function(t){return new rs(t)},e.prototype.queryRadius=function(){return Ja(this.paint.get(&quot;fill-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o){return ja(Ka(t,this.paint.get(&quot;fill-translate&quot;),this.paint.get(&quot;fill-translate-anchor&quot;),a.angle,o),n)},e.prototype.isTileClipped=function(){return!0},e}(xi),os=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_normal_ed&quot;,components:4,type:&quot;Int16&quot;}],4).members,ss=ls;function ls(t,e,r,n,i){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=i,t.readFields(cs,this,e)}function cs(t,e,r){1==t?e.id=r.readVarint():2==t?function(t,e){for(var r=t.readVarint()+t.pos;t.pos&lt;r;){var n=e._keys[t.readVarint()],i=e._values[t.readVarint()];e.properties[n]=i}}(r,e):3==t?e.type=r.readVarint():4==t&amp;&amp;(e._geometry=r.pos)}function us(t){for(var e,r,n=0,i=0,a=t.length,o=a-1;i&lt;a;o=i++)n+=((r=t[o]).x-(e=t[i]).x)*(e.y+r.y);return n}ls.types=[&quot;Unknown&quot;,&quot;Point&quot;,&quot;LineString&quot;,&quot;Polygon&quot;],ls.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,r=t.readVarint()+t.pos,n=1,a=0,o=0,s=0,l=[];t.pos&lt;r;){if(a&lt;=0){var c=t.readVarint();n=7&amp;c,a=c&gt;&gt;3}if(a--,1===n||2===n)o+=t.readSVarint(),s+=t.readSVarint(),1===n&amp;&amp;(e&amp;&amp;l.push(e),e=[]),e.push(new i(o,s));else{if(7!==n)throw new Error(&quot;unknown command &quot;+n);e&amp;&amp;e.push(e[0].clone())}}return e&amp;&amp;l.push(e),l},ls.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,i=0,a=0,o=1/0,s=-1/0,l=1/0,c=-1/0;t.pos&lt;e;){if(n&lt;=0){var u=t.readVarint();r=7&amp;u,n=u&gt;&gt;3}if(n--,1===r||2===r)(i+=t.readSVarint())&lt;o&amp;&amp;(o=i),i&gt;s&amp;&amp;(s=i),(a+=t.readSVarint())&lt;l&amp;&amp;(l=a),a&gt;c&amp;&amp;(c=a);else if(7!==r)throw new Error(&quot;unknown command &quot;+r)}return[o,l,s,c]},ls.prototype.toGeoJSON=function(t,e,r){var n,i,a=this.extent*Math.pow(2,r),o=this.extent*t,s=this.extent*e,l=this.loadGeometry(),c=ls.types[this.type];function u(t){for(var e=0;e&lt;t.length;e++){var r=t[e];t[e]=[360*(r.x+o)/a-180,360/Math.PI*Math.atan(Math.exp((180-360*(r.y+s)/a)*Math.PI/180))-90]}}switch(this.type){case 1:var f=[];for(n=0;n&lt;l.length;n++)f[n]=l[n][0];u(l=f);break;case 2:for(n=0;n&lt;l.length;n++)u(l[n]);break;case 3:for(l=function(t){var e=t.length;if(e&lt;=1)return[t];for(var r,n,i=[],a=0;a&lt;e;a++){var o=us(t[a]);0!==o&amp;&amp;(void 0===n&amp;&amp;(n=o&lt;0),n===o&lt;0?(r&amp;&amp;i.push(r),r=[t[a]]):r.push(t[a]))}return r&amp;&amp;i.push(r),i}(l),n=0;n&lt;l.length;n++)for(i=0;i&lt;l[n].length;i++)u(l[n][i])}1===l.length?l=l[0]:c=&quot;Multi&quot;+c;var h={type:&quot;Feature&quot;,geometry:{type:c,coordinates:l},properties:this.properties};return&quot;id&quot;in this&amp;&amp;(h.id=this.id),h};var fs=hs;function hs(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(ps,this,e),this.length=this._features.length}function ps(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():5===t?e.extent=r.readVarint():2===t?e._features.push(r.pos):3===t?e._keys.push(r.readString()):4===t&amp;&amp;e._values.push(function(t){for(var e=null,r=t.readVarint()+t.pos;t.pos&lt;r;){var n=t.readVarint()&gt;&gt;3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}(r))}function ds(t,e,r){if(3===t){var n=new fs(r,r.readVarint()+r.pos);n.length&amp;&amp;(e[n.name]=n)}}hs.prototype.feature=function(t){if(t&lt;0||t&gt;=this._features.length)throw new Error(&quot;feature index out of bounds&quot;);this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new ss(this._pbf,e,this.extent,this._keys,this._values)};var gs={VectorTile:function(t,e){this.layers=t.readFields(ds,{},e)},VectorTileFeature:ss,VectorTileLayer:fs},ms=gs.VectorTileFeature.types,vs=Math.pow(2,13);function ys(t,e,r,n,i,a,o,s){t.emplaceBack(e,r,2*Math.floor(n*vs)+o,i*vs*2,a*vs*2,Math.round(s))}var xs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Si,this.indexArray=new Fi,this.programConfigurations=new Ia(os,t.layers,t.zoom),this.segments=new ia,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function bs(t,e){return t.x===e.x&amp;&amp;(t.x&lt;0||t.x&gt;8192)||t.y===e.y&amp;&amp;(t.y&lt;0||t.y&gt;8192)}xs.prototype.populate=function(t,e,r){this.features=[],this.hasPattern=ts(&quot;fill-extrusion&quot;,this.layers,e);for(var n=0,i=t;n&lt;i.length;n+=1){var a=i[n],o=a.feature,s=a.id,l=a.index,c=a.sourceLayerIndex,u=this.layers[0]._featureFilter.needGeometry,f={type:o.type,id:s,properties:o.properties,geometry:u?Da(o):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),f,r)){var h={id:s,sourceLayerIndex:c,index:l,geometry:u?f.geometry:Da(o),properties:o.properties,type:o.type,patterns:{}};void 0!==o.id&amp;&amp;(h.id=o.id),this.hasPattern?this.features.push(es(&quot;fill-extrusion&quot;,this.layers,h,this.zoom,e)):this.addFeature(h,h.geometry,l,r,{}),e.featureIndex.insert(o,h.geometry,l,c,this.index,!0)}}},xs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.features;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},xs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},xs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},xs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},xs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,os),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},xs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},xs.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=Qo(e,500);a&lt;o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c&lt;u.length;c+=1)l+=u[c].length;for(var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),h=0,p=s;h&lt;p.length;h+=1){var d=p[h];if(0!==d.length&amp;&amp;!((P=d).every((function(t){return t.x&lt;0}))||P.every((function(t){return t.x&gt;8192}))||P.every((function(t){return t.y&lt;0}))||P.every((function(t){return t.y&gt;8192}))))for(var g=0,m=0;m&lt;d.length;m++){var v=d[m];if(m&gt;=1){var y=d[m-1];if(!bs(v,y)){f.vertexLength+4&gt;ia.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var x=v.sub(y)._perp()._unit(),b=y.dist(v);g+b&gt;32768&amp;&amp;(g=0),ys(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,0,g),ys(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,1,g),ys(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,0,g+=b),ys(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,1,g);var _=f.vertexLength;this.indexArray.emplaceBack(_,_+2,_+1),this.indexArray.emplaceBack(_+1,_+2,_+3),f.vertexLength+=4,f.primitiveLength+=2}}}}if(f.vertexLength+l&gt;ia.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray)),&quot;Polygon&quot;===ms[t.type]){for(var w=[],T=[],k=f.vertexLength,M=0,A=s;M&lt;A.length;M+=1){var S=A[M];if(0!==S.length){S!==s[0]&amp;&amp;T.push(w.length/2);for(var E=0;E&lt;S.length;E++){var C=S[E];ys(this.layoutVertexArray,C.x,C.y,0,0,1,1,0),w.push(C.x),w.push(C.y)}}}for(var L=_o(w,T),I=0;I&lt;L.length;I+=3)this.indexArray.emplaceBack(k+L[I],k+L[I+2],k+L[I+1]);f.primitiveLength+=L.length/3,f.vertexLength+=l}}var P;this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Dn(&quot;FillExtrusionBucket&quot;,xs,{omit:[&quot;layers&quot;,&quot;features&quot;]});var _s={paint:new yi({&quot;fill-extrusion-opacity&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-opacity&quot;]),&quot;fill-extrusion-color&quot;:new di(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-color&quot;]),&quot;fill-extrusion-translate&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-translate&quot;]),&quot;fill-extrusion-translate-anchor&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-translate-anchor&quot;]),&quot;fill-extrusion-pattern&quot;:new gi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-pattern&quot;]),&quot;fill-extrusion-height&quot;:new di(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-height&quot;]),&quot;fill-extrusion-base&quot;:new di(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-base&quot;]),&quot;fill-extrusion-vertical-gradient&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-vertical-gradient&quot;])})},ws=function(t){function e(e){t.call(this,e,_s)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new xs(t)},e.prototype.queryRadius=function(){return Ja(this.paint.get(&quot;fill-extrusion-translate&quot;))},e.prototype.is3D=function(){return!0},e.prototype.queryIntersectsFeature=function(t,e,r,n,a,o,s,l){var c=Ka(t,this.paint.get(&quot;fill-extrusion-translate&quot;),this.paint.get(&quot;fill-extrusion-translate-anchor&quot;),o.angle,s),u=this.paint.get(&quot;fill-extrusion-height&quot;).evaluate(e,r),f=this.paint.get(&quot;fill-extrusion-base&quot;).evaluate(e,r),h=function(t,e,r,n){for(var a=[],o=0,s=t;o&lt;s.length;o+=1){var l=s[o],c=[l.x,l.y,0,1];ao(c,c,e),a.push(new i(c[0]/c[3],c[1]/c[3]))}return a}(c,l),p=function(t,e,r,n){for(var a=[],o=[],s=n[8]*e,l=n[9]*e,c=n[10]*e,u=n[11]*e,f=n[8]*r,h=n[9]*r,p=n[10]*r,d=n[11]*r,g=0,m=t;g&lt;m.length;g+=1){for(var v=[],y=[],x=0,b=m[g];x&lt;b.length;x+=1){var _=b[x],w=_.x,T=_.y,k=n[0]*w+n[4]*T+n[12],M=n[1]*w+n[5]*T+n[13],A=n[2]*w+n[6]*T+n[14],S=n[3]*w+n[7]*T+n[15],E=A+c,C=S+u,L=k+f,I=M+h,P=A+p,z=S+d,O=new i((k+s)/C,(M+l)/C);O.z=E/C,v.push(O);var D=new i(L/z,I/z);D.z=P/z,y.push(D)}a.push(v),o.push(y)}return[a,o]}(n,f,u,l);return function(t,e,r){var n=1/0;ja(r,e)&amp;&amp;(n=ks(r,e[0]));for(var i=0;i&lt;e.length;i++)for(var a=e[i],o=t[i],s=0;s&lt;a.length-1;s++){var l=a[s],c=[l,a[s+1],o[s+1],o[s],l];Ba(r,c)&amp;&amp;(n=Math.min(n,ks(r,c)))}return n!==1/0&amp;&amp;n}(p[0],p[1],h)},e}(xi);function Ts(t,e){return t.x*e.x+t.y*e.y}function ks(t,e){if(1===t.length){for(var r,n=0,i=e[n++];!r||i.equals(r);)if(!(r=e[n++]))return 1/0;for(;n&lt;e.length;n++){var a=e[n],o=t[0],s=r.sub(i),l=a.sub(i),c=o.sub(i),u=Ts(s,s),f=Ts(s,l),h=Ts(l,l),p=Ts(c,s),d=Ts(c,l),g=u*h-f*f,m=(h*p-f*d)/g,v=(u*d-f*p)/g,y=i.z*(1-m-v)+r.z*m+a.z*v;if(isFinite(y))return y}return 1/0}for(var x=1/0,b=0,_=e;b&lt;_.length;b+=1)x=Math.min(x,_[b].z);return x}var Ms=Ti([{name:&quot;a_pos_normal&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_data&quot;,components:4,type:&quot;Uint8&quot;}],4).members,As=gs.VectorTileFeature.types,Ss=Math.cos(Math.PI/180*37.5),Es=Math.pow(2,14)/.5,Cs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Ei,this.indexArray=new Fi,this.programConfigurations=new Ia(Ms,t.layers,t.zoom),this.segments=new ia,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};Cs.prototype.populate=function(t,e,r){this.hasPattern=ts(&quot;line&quot;,this.layers,e);for(var n=this.layers[0].layout.get(&quot;line-sort-key&quot;),i=[],a=0,o=t;a&lt;o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,p={type:l.type,id:c,properties:l.properties,geometry:h?Da(l):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),p,r)){h||(p.geometry=Da(l));var d=n?n.evaluate(p,{},r):void 0;i.push({id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:p.geometry,patterns:{},sortKey:d})}}n&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var g=0,m=i;g&lt;m.length;g+=1){var v=m[g],y=v.geometry,x=v.index,b=v.sourceLayerIndex;if(this.hasPattern){var _=es(&quot;line&quot;,this.layers,v,this.zoom,e);this.patternFeatures.push(_)}else this.addFeature(v,y,x,r,{});e.featureIndex.insert(t[x].feature,y,x,b,this.index)}},Cs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Cs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},Cs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Cs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Cs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ms),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Cs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Cs.prototype.addFeature=function(t,e,r,n,i){for(var a=this.layers[0].layout,o=a.get(&quot;line-join&quot;).evaluate(t,{}),s=a.get(&quot;line-cap&quot;),l=a.get(&quot;line-miter-limit&quot;),c=a.get(&quot;line-round-limit&quot;),u=0,f=e;u&lt;f.length;u+=1)this.addLine(f[u],t,o,s,l,c);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Cs.prototype.addLine=function(t,e,r,n,i,a){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,e.properties&amp;&amp;e.properties.hasOwnProperty(&quot;mapbox_clip_start&quot;)&amp;&amp;e.properties.hasOwnProperty(&quot;mapbox_clip_end&quot;)){this.clipStart=+e.properties.mapbox_clip_start,this.clipEnd=+e.properties.mapbox_clip_end;for(var o=0;o&lt;t.length-1;o++)this.totalDistance+=t[o].dist(t[o+1]);this.updateScaledDistance()}for(var s=&quot;Polygon&quot;===As[e.type],l=t.length;l&gt;=2&amp;&amp;t[l-1].equals(t[l-2]);)l--;for(var c=0;c&lt;l-1&amp;&amp;t[c].equals(t[c+1]);)c++;if(!(l&lt;(s?3:2))){&quot;bevel&quot;===r&amp;&amp;(i=1.05);var u,f=this.overscaling&lt;=16?122880/(512*this.overscaling):0,h=this.segments.prepareSegment(10*l,this.layoutVertexArray,this.indexArray),p=void 0,d=void 0,g=void 0,m=void 0;this.e1=this.e2=-1,s&amp;&amp;(m=t[c].sub(u=t[l-2])._unit()._perp());for(var v=c;v&lt;l;v++)if(!(d=v===l-1?s?t[c+1]:void 0:t[v+1])||!t[v].equals(d)){m&amp;&amp;(g=m),u&amp;&amp;(p=u),u=t[v],m=d?d.sub(u)._unit()._perp():g;var y=(g=g||m).add(m);0===y.x&amp;&amp;0===y.y||y._unit();var x=g.x*m.x+g.y*m.y,b=y.x*m.x+y.y*m.y,_=0!==b?1/b:1/0,w=2*Math.sqrt(2-2*b),T=b&lt;Ss&amp;&amp;p&amp;&amp;d,k=g.x*m.y-g.y*m.x&gt;0;if(T&amp;&amp;v&gt;c){var M=u.dist(p);if(M&gt;2*f){var A=u.sub(u.sub(p)._mult(f/M)._round());this.updateDistance(p,A),this.addCurrentVertex(A,g,0,0,h),p=A}}var S=p&amp;&amp;d,E=S?r:s?&quot;butt&quot;:n;if(S&amp;&amp;&quot;round&quot;===E&amp;&amp;(_&lt;a?E=&quot;miter&quot;:_&lt;=2&amp;&amp;(E=&quot;fakeround&quot;)),&quot;miter&quot;===E&amp;&amp;_&gt;i&amp;&amp;(E=&quot;bevel&quot;),&quot;bevel&quot;===E&amp;&amp;(_&gt;2&amp;&amp;(E=&quot;flipbevel&quot;),_&lt;i&amp;&amp;(E=&quot;miter&quot;)),p&amp;&amp;this.updateDistance(p,u),&quot;miter&quot;===E)y._mult(_),this.addCurrentVertex(u,y,0,0,h);else if(&quot;flipbevel&quot;===E){if(_&gt;100)y=m.mult(-1);else{var C=_*g.add(m).mag()/g.sub(m).mag();y._perp()._mult(C*(k?-1:1))}this.addCurrentVertex(u,y,0,0,h),this.addCurrentVertex(u,y.mult(-1),0,0,h)}else if(&quot;bevel&quot;===E||&quot;fakeround&quot;===E){var L=-Math.sqrt(_*_-1),I=k?L:0,P=k?0:L;if(p&amp;&amp;this.addCurrentVertex(u,g,I,P,h),&quot;fakeround&quot;===E)for(var z=Math.round(180*w/Math.PI/20),O=1;O&lt;z;O++){var D=O/z;if(.5!==D){var R=D-.5;D+=D*R*(D-1)*((1.0904+x*(x*(3.55645-1.43519*x)-3.2452))*R*R+(.848013+x*(.215638*x-1.06021)))}var F=m.sub(g)._mult(D)._add(g)._unit()._mult(k?-1:1);this.addHalfVertex(u,F.x,F.y,!1,k,0,h)}d&amp;&amp;this.addCurrentVertex(u,m,-I,-P,h)}else if(&quot;butt&quot;===E)this.addCurrentVertex(u,y,0,0,h);else if(&quot;square&quot;===E){var B=p?1:-1;this.addCurrentVertex(u,y,B,B,h)}else&quot;round&quot;===E&amp;&amp;(p&amp;&amp;(this.addCurrentVertex(u,g,0,0,h),this.addCurrentVertex(u,g,1,1,h,!0)),d&amp;&amp;(this.addCurrentVertex(u,m,-1,-1,h,!0),this.addCurrentVertex(u,m,0,0,h)));if(T&amp;&amp;v&lt;l-1){var N=u.dist(d);if(N&gt;2*f){var j=u.add(d.sub(u)._mult(f/N)._round());this.updateDistance(u,j),this.addCurrentVertex(j,m,0,0,h),u=j}}}}},Cs.prototype.addCurrentVertex=function(t,e,r,n,i,a){void 0===a&amp;&amp;(a=!1);var o=e.y*n-e.x,s=-e.y-e.x*n;this.addHalfVertex(t,e.x+e.y*r,e.y-e.x*r,a,!1,r,i),this.addHalfVertex(t,o,s,a,!0,-n,i),this.distance&gt;Es/2&amp;&amp;0===this.totalDistance&amp;&amp;(this.distance=0,this.addCurrentVertex(t,e,r,n,i,a))},Cs.prototype.addHalfVertex=function(t,e,r,n,i,a,o){var s=.5*this.scaledDistance;this.layoutVertexArray.emplaceBack((t.x&lt;&lt;1)+(n?1:0),(t.y&lt;&lt;1)+(i?1:0),Math.round(63*e)+128,Math.round(63*r)+128,1+(0===a?0:a&lt;0?-1:1)|(63&amp;s)&lt;&lt;2,s&gt;&gt;6);var l=o.vertexLength++;this.e1&gt;=0&amp;&amp;this.e2&gt;=0&amp;&amp;(this.indexArray.emplaceBack(this.e1,this.e2,l),o.primitiveLength++),i?this.e2=l:this.e1=l},Cs.prototype.updateScaledDistance=function(){this.scaledDistance=this.totalDistance&gt;0?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(Es-1):this.distance},Cs.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},Dn(&quot;LineBucket&quot;,Cs,{omit:[&quot;layers&quot;,&quot;patternFeatures&quot;]});var Ls=new yi({&quot;line-cap&quot;:new pi(At.layout_line[&quot;line-cap&quot;]),&quot;line-join&quot;:new di(At.layout_line[&quot;line-join&quot;]),&quot;line-miter-limit&quot;:new pi(At.layout_line[&quot;line-miter-limit&quot;]),&quot;line-round-limit&quot;:new pi(At.layout_line[&quot;line-round-limit&quot;]),&quot;line-sort-key&quot;:new di(At.layout_line[&quot;line-sort-key&quot;])}),Is={paint:new yi({&quot;line-opacity&quot;:new di(At.paint_line[&quot;line-opacity&quot;]),&quot;line-color&quot;:new di(At.paint_line[&quot;line-color&quot;]),&quot;line-translate&quot;:new pi(At.paint_line[&quot;line-translate&quot;]),&quot;line-translate-anchor&quot;:new pi(At.paint_line[&quot;line-translate-anchor&quot;]),&quot;line-width&quot;:new di(At.paint_line[&quot;line-width&quot;]),&quot;line-gap-width&quot;:new di(At.paint_line[&quot;line-gap-width&quot;]),&quot;line-offset&quot;:new di(At.paint_line[&quot;line-offset&quot;]),&quot;line-blur&quot;:new di(At.paint_line[&quot;line-blur&quot;]),&quot;line-dasharray&quot;:new mi(At.paint_line[&quot;line-dasharray&quot;]),&quot;line-pattern&quot;:new gi(At.paint_line[&quot;line-pattern&quot;]),&quot;line-gradient&quot;:new vi(At.paint_line[&quot;line-gradient&quot;])}),layout:Ls},Ps=new(function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(e,r){return r=new ii(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),t.prototype.possiblyEvaluate.call(this,e,r)},e.prototype.evaluate=function(e,r,n,i){return r=u({},r,{zoom:Math.floor(r.zoom)}),t.prototype.evaluate.call(this,e,r,n,i)},e}(di))(Is.paint.properties[&quot;line-width&quot;].specification);Ps.useIntegerZoom=!0;var zs=function(t){function e(e){t.call(this,e,Is)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){&quot;line-gradient&quot;===t&amp;&amp;this._updateGradient()},e.prototype._updateGradient=function(){this.gradient=mo(this._transitionablePaint._values[&quot;line-gradient&quot;].value.expression,&quot;lineProgress&quot;),this.gradientTexture=null},e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r),this.paint._values[&quot;line-floorwidth&quot;]=Ps.possiblyEvaluate(this._transitioningPaint._values[&quot;line-width&quot;].value,e)},e.prototype.createBucket=function(t){return new Cs(t)},e.prototype.queryRadius=function(t){var e=t,r=Os(Za(&quot;line-width&quot;,this,e),Za(&quot;line-gap-width&quot;,this,e)),n=Za(&quot;line-offset&quot;,this,e);return r/2+Math.abs(n)+Ja(this.paint.get(&quot;line-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,a,o,s){var l=Ka(t,this.paint.get(&quot;line-translate&quot;),this.paint.get(&quot;line-translate-anchor&quot;),o.angle,s),c=s/2*Os(this.paint.get(&quot;line-width&quot;).evaluate(e,r),this.paint.get(&quot;line-gap-width&quot;).evaluate(e,r)),u=this.paint.get(&quot;line-offset&quot;).evaluate(e,r);return u&amp;&amp;(n=function(t,e){for(var r=[],n=new i(0,0),a=0;a&lt;t.length;a++){for(var o=t[a],s=[],l=0;l&lt;o.length;l++){var c=o[l],u=o[l+1],f=0===l?n:c.sub(o[l-1])._unit()._perp(),h=l===o.length-1?n:u.sub(c)._unit()._perp(),p=f._add(h)._unit();p._mult(1/(p.x*h.x+p.y*h.y)),s.push(p._mult(e)._add(c))}r.push(s)}return r}(n,u*s)),function(t,e,r){for(var n=0;n&lt;e.length;n++){var i=e[n];if(t.length&gt;=3)for(var a=0;a&lt;i.length;a++)if(Wa(t,i[a]))return!0;if(Ua(t,i,r))return!0}return!1}(l,n,c)},e.prototype.isTileClipped=function(){return!0},e}(xi);function Os(t,e){return e&gt;0?e+2*t:t}var Ds=Ti([{name:&quot;a_pos_offset&quot;,components:4,type:&quot;Int16&quot;},{name:&quot;a_data&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pixeloffset&quot;,components:4,type:&quot;Int16&quot;}],4),Rs=Ti([{name:&quot;a_projected_pos&quot;,components:3,type:&quot;Float32&quot;}],4),Fs=(Ti([{name:&quot;a_fade_opacity&quot;,components:1,type:&quot;Uint32&quot;}],4),Ti([{name:&quot;a_placed&quot;,components:2,type:&quot;Uint8&quot;},{name:&quot;a_shift&quot;,components:2,type:&quot;Float32&quot;}])),Bs=(Ti([{type:&quot;Int16&quot;,name:&quot;anchorPointX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorPointY&quot;},{type:&quot;Int16&quot;,name:&quot;x1&quot;},{type:&quot;Int16&quot;,name:&quot;y1&quot;},{type:&quot;Int16&quot;,name:&quot;x2&quot;},{type:&quot;Int16&quot;,name:&quot;y2&quot;},{type:&quot;Uint32&quot;,name:&quot;featureIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;sourceLayerIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;bucketIndex&quot;}]),Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_anchor_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_extrude&quot;,components:2,type:&quot;Int16&quot;}],4)),Ns=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Float32&quot;},{name:&quot;a_radius&quot;,components:1,type:&quot;Float32&quot;},{name:&quot;a_flags&quot;,components:2,type:&quot;Int16&quot;}],4);function js(t,e,r){return t.sections.forEach((function(t){t.text=function(t,e,r){var n=e.layout.get(&quot;text-transform&quot;).evaluate(r,{});return&quot;uppercase&quot;===n?t=t.toLocaleUpperCase():&quot;lowercase&quot;===n&amp;&amp;(t=t.toLocaleLowerCase()),ni.applyArabicShaping&amp;&amp;(t=ni.applyArabicShaping(t)),t}(t.text,e,r)})),t}Ti([{name:&quot;triangle&quot;,components:3,type:&quot;Uint16&quot;}]),Ti([{type:&quot;Int16&quot;,name:&quot;anchorX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorY&quot;},{type:&quot;Uint16&quot;,name:&quot;glyphStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;numGlyphs&quot;},{type:&quot;Uint32&quot;,name:&quot;vertexStartIndex&quot;},{type:&quot;Uint32&quot;,name:&quot;lineStartIndex&quot;},{type:&quot;Uint32&quot;,name:&quot;lineLength&quot;},{type:&quot;Uint16&quot;,name:&quot;segment&quot;},{type:&quot;Uint16&quot;,name:&quot;lowerSize&quot;},{type:&quot;Uint16&quot;,name:&quot;upperSize&quot;},{type:&quot;Float32&quot;,name:&quot;lineOffsetX&quot;},{type:&quot;Float32&quot;,name:&quot;lineOffsetY&quot;},{type:&quot;Uint8&quot;,name:&quot;writingMode&quot;},{type:&quot;Uint8&quot;,name:&quot;placedOrientation&quot;},{type:&quot;Uint8&quot;,name:&quot;hidden&quot;},{type:&quot;Uint32&quot;,name:&quot;crossTileID&quot;},{type:&quot;Int16&quot;,name:&quot;associatedIconIndex&quot;}]),Ti([{type:&quot;Int16&quot;,name:&quot;anchorX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorY&quot;},{type:&quot;Int16&quot;,name:&quot;rightJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;centerJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;leftJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;verticalPlacedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;placedIconSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;verticalPlacedIconSymbolIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;key&quot;},{type:&quot;Uint16&quot;,name:&quot;textBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;textBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalTextBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalTextBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;iconBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;iconBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalIconBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalIconBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;featureIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;numHorizontalGlyphVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numVerticalGlyphVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numIconVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numVerticalIconVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;useRuntimeCollisionCircles&quot;},{type:&quot;Uint32&quot;,name:&quot;crossTileID&quot;},{type:&quot;Float32&quot;,name:&quot;textBoxScale&quot;},{type:&quot;Float32&quot;,components:2,name:&quot;textOffset&quot;},{type:&quot;Float32&quot;,name:&quot;collisionCircleDiameter&quot;}]),Ti([{type:&quot;Float32&quot;,name:&quot;offsetX&quot;}]),Ti([{type:&quot;Int16&quot;,name:&quot;x&quot;},{type:&quot;Int16&quot;,name:&quot;y&quot;},{type:&quot;Int16&quot;,name:&quot;tileUnitDistanceFromAnchor&quot;}]);var Us={&quot;!&quot;:&quot;\ufe15&quot;,&quot;#&quot;:&quot;\uff03&quot;,$:&quot;\uff04&quot;,&quot;%&quot;:&quot;\uff05&quot;,&quot;&amp;&quot;:&quot;\uff06&quot;,&quot;(&quot;:&quot;\ufe35&quot;,&quot;)&quot;:&quot;\ufe36&quot;,&quot;*&quot;:&quot;\uff0a&quot;,&quot;+&quot;:&quot;\uff0b&quot;,&quot;,&quot;:&quot;\ufe10&quot;,&quot;-&quot;:&quot;\ufe32&quot;,&quot;.&quot;:&quot;\u30fb&quot;,&quot;/&quot;:&quot;\uff0f&quot;,&quot;:&quot;:&quot;\ufe13&quot;,&quot;;&quot;:&quot;\ufe14&quot;,&quot;&lt;&quot;:&quot;\ufe3f&quot;,&quot;=&quot;:&quot;\uff1d&quot;,&quot;&gt;&quot;:&quot;\ufe40&quot;,&quot;?&quot;:&quot;\ufe16&quot;,&quot;@&quot;:&quot;\uff20&quot;,&quot;[&quot;:&quot;\ufe47&quot;,&quot;\\&quot;:&quot;\uff3c&quot;,&quot;]&quot;:&quot;\ufe48&quot;,&quot;^&quot;:&quot;\uff3e&quot;,_:&quot;\ufe33&quot;,&quot;`&quot;:&quot;\uff40&quot;,&quot;{&quot;:&quot;\ufe37&quot;,&quot;|&quot;:&quot;\u2015&quot;,&quot;}&quot;:&quot;\ufe38&quot;,&quot;~&quot;:&quot;\uff5e&quot;,&quot;\xa2&quot;:&quot;\uffe0&quot;,&quot;\xa3&quot;:&quot;\uffe1&quot;,&quot;\xa5&quot;:&quot;\uffe5&quot;,&quot;\xa6&quot;:&quot;\uffe4&quot;,&quot;\xac&quot;:&quot;\uffe2&quot;,&quot;\xaf&quot;:&quot;\uffe3&quot;,&quot;\u2013&quot;:&quot;\ufe32&quot;,&quot;\u2014&quot;:&quot;\ufe31&quot;,&quot;\u2018&quot;:&quot;\ufe43&quot;,&quot;\u2019&quot;:&quot;\ufe44&quot;,&quot;\u201c&quot;:&quot;\ufe41&quot;,&quot;\u201d&quot;:&quot;\ufe42&quot;,&quot;\u2026&quot;:&quot;\ufe19&quot;,&quot;\u2027&quot;:&quot;\u30fb&quot;,&quot;\u20a9&quot;:&quot;\uffe6&quot;,&quot;\u3001&quot;:&quot;\ufe11&quot;,&quot;\u3002&quot;:&quot;\ufe12&quot;,&quot;\u3008&quot;:&quot;\ufe3f&quot;,&quot;\u3009&quot;:&quot;\ufe40&quot;,&quot;\u300a&quot;:&quot;\ufe3d&quot;,&quot;\u300b&quot;:&quot;\ufe3e&quot;,&quot;\u300c&quot;:&quot;\ufe41&quot;,&quot;\u300d&quot;:&quot;\ufe42&quot;,&quot;\u300e&quot;:&quot;\ufe43&quot;,&quot;\u300f&quot;:&quot;\ufe44&quot;,&quot;\u3010&quot;:&quot;\ufe3b&quot;,&quot;\u3011&quot;:&quot;\ufe3c&quot;,&quot;\u3014&quot;:&quot;\ufe39&quot;,&quot;\u3015&quot;:&quot;\ufe3a&quot;,&quot;\u3016&quot;:&quot;\ufe17&quot;,&quot;\u3017&quot;:&quot;\ufe18&quot;,&quot;\uff01&quot;:&quot;\ufe15&quot;,&quot;\uff08&quot;:&quot;\ufe35&quot;,&quot;\uff09&quot;:&quot;\ufe36&quot;,&quot;\uff0c&quot;:&quot;\ufe10&quot;,&quot;\uff0d&quot;:&quot;\ufe32&quot;,&quot;\uff0e&quot;:&quot;\u30fb&quot;,&quot;\uff1a&quot;:&quot;\ufe13&quot;,&quot;\uff1b&quot;:&quot;\ufe14&quot;,&quot;\uff1c&quot;:&quot;\ufe3f&quot;,&quot;\uff1e&quot;:&quot;\ufe40&quot;,&quot;\uff1f&quot;:&quot;\ufe16&quot;,&quot;\uff3b&quot;:&quot;\ufe47&quot;,&quot;\uff3d&quot;:&quot;\ufe48&quot;,&quot;\uff3f&quot;:&quot;\ufe33&quot;,&quot;\uff5b&quot;:&quot;\ufe37&quot;,&quot;\uff5c&quot;:&quot;\u2015&quot;,&quot;\uff5d&quot;:&quot;\ufe38&quot;,&quot;\uff5f&quot;:&quot;\ufe35&quot;,&quot;\uff60&quot;:&quot;\ufe36&quot;,&quot;\uff61&quot;:&quot;\ufe12&quot;,&quot;\uff62&quot;:&quot;\ufe41&quot;,&quot;\uff63&quot;:&quot;\ufe42&quot;},Vs=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1&lt;&lt;s)-1,c=l&gt;&gt;1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&amp;(1&lt;&lt;-u)-1,p&gt;&gt;=-u,u+=s;u&gt;0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&amp;(1&lt;&lt;-u)-1,a&gt;&gt;=-u,u+=n;u&gt;0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},qs=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1&lt;&lt;c)-1,f=u&gt;&gt;1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e&lt;0||0===e&amp;&amp;1/e&lt;0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))&lt;1&amp;&amp;(o--,l*=2),(e+=o+f&gt;=1?h/l:h*Math.pow(2,1-f))*l&gt;=2&amp;&amp;(o++,l/=2),o+f&gt;=u?(s=0,o=u):o+f&gt;=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i&gt;=8;t[r+p]=255&amp;s,p+=d,s/=256,i-=8);for(o=o&lt;&lt;i|s,c+=i;c&gt;0;t[r+p]=255&amp;o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g},Hs=Gs;function Gs(t){this.buf=ArrayBuffer.isView&amp;&amp;ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Gs.Varint=0,Gs.Fixed64=1,Gs.Bytes=2,Gs.Fixed32=5;var Ys=&quot;undefined&quot;==typeof TextDecoder?null:new TextDecoder(&quot;utf8&quot;);function Ws(t){return t.type===Gs.Bytes?t.readVarint()+t.pos:t.pos+1}function Xs(t,e,r){return r?4294967296*e+(t&gt;&gt;&gt;0):4294967296*(e&gt;&gt;&gt;0)+(t&gt;&gt;&gt;0)}function Zs(t,e,r){var n=e&lt;=16383?1:e&lt;=2097151?2:e&lt;=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i&gt;=t;i--)r.buf[i+n]=r.buf[i]}function Js(t,e){for(var r=0;r&lt;t.length;r++)e.writeVarint(t[r])}function Ks(t,e){for(var r=0;r&lt;t.length;r++)e.writeSVarint(t[r])}function Qs(t,e){for(var r=0;r&lt;t.length;r++)e.writeFloat(t[r])}function $s(t,e){for(var r=0;r&lt;t.length;r++)e.writeDouble(t[r])}function tl(t,e){for(var r=0;r&lt;t.length;r++)e.writeBoolean(t[r])}function el(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed32(t[r])}function rl(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed32(t[r])}function nl(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed64(t[r])}function il(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed64(t[r])}function al(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+16777216*t[e+3]}function ol(t,e,r){t[r]=e,t[r+1]=e&gt;&gt;&gt;8,t[r+2]=e&gt;&gt;&gt;16,t[r+3]=e&gt;&gt;&gt;24}function sl(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+(t[e+3]&lt;&lt;24)}function ll(t,e,r){1===t&amp;&amp;r.readMessage(cl,e)}function cl(t,e,r){if(3===t){var n=r.readMessage(ul,{}),i=n.width,a=n.height,o=n.left,s=n.top,l=n.advance;e.push({id:n.id,bitmap:new ho({width:i+6,height:a+6},n.bitmap),metrics:{width:i,height:a,left:o,top:s,advance:l}})}}function ul(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&amp;&amp;(e.advance=r.readVarint())}function fl(t){for(var e=0,r=0,n=0,i=t;n&lt;i.length;n+=1){var a=i[n];e+=a.w*a.h,r=Math.max(r,a.w)}t.sort((function(t,e){return e.h-t.h}));for(var o=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}],s=0,l=0,c=0,u=t;c&lt;u.length;c+=1)for(var f=u[c],h=o.length-1;h&gt;=0;h--){var p=o[h];if(!(f.w&gt;p.w||f.h&gt;p.h)){if(f.x=p.x,f.y=p.y,l=Math.max(l,f.y+f.h),s=Math.max(s,f.x+f.w),f.w===p.w&amp;&amp;f.h===p.h){var d=o.pop();h&lt;o.length&amp;&amp;(o[h]=d)}else f.h===p.h?(p.x+=f.w,p.w-=f.w):f.w===p.w?(p.y+=f.h,p.h-=f.h):(o.push({x:p.x+f.w,y:p.y,w:p.w-f.w,h:f.h}),p.y+=f.h,p.h-=f.h);break}}return{w:s,h:l,fill:e/(s*l)||0}}Gs.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos&lt;r;){var n=this.readVarint(),i=n&gt;&gt;3,a=this.pos;this.type=7&amp;n,t(i,e,this),this.pos===a&amp;&amp;this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=al(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=sl(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=al(this.buf,this.pos)+4294967296*al(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=al(this.buf,this.pos)+4294967296*sl(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=Vs(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Vs(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return e=127&amp;(r=n[this.pos++]),r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;7,r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;14,r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;21,r&lt;128?e:function(t,e,r){var n,i,a=r.buf;if(n=(112&amp;(i=a[r.pos++]))&gt;&gt;4,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;3,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;10,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;17,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;24,i&lt;128)return Xs(t,n,e);if(n|=(1&amp;(i=a[r.pos++]))&lt;&lt;31,i&lt;128)return Xs(t,n,e);throw new Error(&quot;Expected varint not more than 10 bytes&quot;)}(e|=(15&amp;(r=n[this.pos]))&lt;&lt;28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e&gt;=12&amp;&amp;Ys?function(t,e,r){return Ys.decode(t.subarray(e,r))}(this.buf,e,t):function(t,e,r){for(var n=&quot;&quot;,i=e;i&lt;r;){var a,o,s,l=t[i],c=null,u=l&gt;239?4:l&gt;223?3:l&gt;191?2:1;if(i+u&gt;r)break;1===u?l&lt;128&amp;&amp;(c=l):2===u?128==(192&amp;(a=t[i+1]))&amp;&amp;(c=(31&amp;l)&lt;&lt;6|63&amp;a)&lt;=127&amp;&amp;(c=null):3===u?(o=t[i+2],128==(192&amp;(a=t[i+1]))&amp;&amp;128==(192&amp;o)&amp;&amp;((c=(15&amp;l)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;o)&lt;=2047||c&gt;=55296&amp;&amp;c&lt;=57343)&amp;&amp;(c=null)):4===u&amp;&amp;(o=t[i+2],s=t[i+3],128==(192&amp;(a=t[i+1]))&amp;&amp;128==(192&amp;o)&amp;&amp;128==(192&amp;s)&amp;&amp;((c=(15&amp;l)&lt;&lt;18|(63&amp;a)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;s)&lt;=65535||c&gt;=1114112)&amp;&amp;(c=null)),null===c?(c=65533,u=1):c&gt;65535&amp;&amp;(c-=65536,n+=String.fromCharCode(c&gt;&gt;&gt;10&amp;1023|55296),c=56320|1023&amp;c),n+=String.fromCharCode(c),i+=u}return n}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Gs.Bytes)return t.push(this.readVarint(e));var r=Ws(this);for(t=t||[];this.pos&lt;r;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==Gs.Bytes)return t.push(this.readSVarint());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==Gs.Bytes)return t.push(this.readBoolean());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==Gs.Bytes)return t.push(this.readFloat());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==Gs.Bytes)return t.push(this.readDouble());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==Gs.Bytes)return t.push(this.readFixed32());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==Gs.Bytes)return t.push(this.readSFixed32());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==Gs.Bytes)return t.push(this.readFixed64());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==Gs.Bytes)return t.push(this.readSFixed64());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&amp;t;if(e===Gs.Varint)for(;this.buf[this.pos++]&gt;127;);else if(e===Gs.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Gs.Fixed32)this.pos+=4;else{if(e!==Gs.Fixed64)throw new Error(&quot;Unimplemented type: &quot;+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t&lt;&lt;3|e)},realloc:function(t){for(var e=this.length||16;e&lt;this.pos+t;)e*=2;if(e!==this.length){var r=new Uint8Array(e);r.set(this.buf),this.buf=r,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),ol(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),ol(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),ol(this.buf,-1&amp;t,this.pos),ol(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),ol(this.buf,-1&amp;t,this.pos),ol(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)&gt;268435455||t&lt;0?function(t,e){var r,n;if(t&gt;=0?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,n=n+1|0)),t&gt;=0x10000000000000000||t&lt;-0x10000000000000000)throw new Error(&quot;Given varint doesn't fit into 10 bytes&quot;);e.realloc(10),function(t,e,r){r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,r.buf[r.pos]=127&amp;(t&gt;&gt;&gt;=7)}(r,0,e),function(t,e){var r=(7&amp;t)&lt;&lt;4;e.buf[e.pos++]|=r|((t&gt;&gt;&gt;=3)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t)))))}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&amp;t|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=t&gt;&gt;&gt;7&amp;127))))},writeSVarint:function(t){this.writeVarint(t&lt;0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,r){for(var n,i,a=0;a&lt;e.length;a++){if((n=e.charCodeAt(a))&gt;55295&amp;&amp;n&lt;57344){if(!i){n&gt;56319||a+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n&lt;56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296&lt;&lt;10|n-56320|65536,i=null}else i&amp;&amp;(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n&lt;128?t[r++]=n:(n&lt;2048?t[r++]=n&gt;&gt;6|192:(n&lt;65536?t[r++]=n&gt;&gt;12|224:(t[r++]=n&gt;&gt;18|240,t[r++]=n&gt;&gt;12&amp;63|128),t[r++]=n&gt;&gt;6&amp;63|128),t[r++]=63&amp;n|128)}return r}(this.buf,t,this.pos);var r=this.pos-e;r&gt;=128&amp;&amp;Zs(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),qs(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),qs(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r&lt;e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var n=this.pos-r;n&gt;=128&amp;&amp;Zs(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,Gs.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,Js,e)},writePackedSVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,Ks,e)},writePackedBoolean:function(t,e){e.length&amp;&amp;this.writeMessage(t,tl,e)},writePackedFloat:function(t,e){e.length&amp;&amp;this.writeMessage(t,Qs,e)},writePackedDouble:function(t,e){e.length&amp;&amp;this.writeMessage(t,$s,e)},writePackedFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,el,e)},writePackedSFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,rl,e)},writePackedFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,nl,e)},writePackedSFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,il,e)},writeBytesField:function(t,e){this.writeTag(t,Gs.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Gs.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Gs.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Gs.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Gs.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Gs.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Gs.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Gs.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Gs.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Gs.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var hl=function(t,e){var r=e.pixelRatio,n=e.version,i=e.stretchX,a=e.stretchY,o=e.content;this.paddedRect=t,this.pixelRatio=r,this.stretchX=i,this.stretchY=a,this.content=o,this.version=n},pl={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};pl.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},pl.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},pl.tlbr.get=function(){return this.tl.concat(this.br)},pl.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(hl.prototype,pl);var dl=function(t,e){var r={},n={};this.haveRenderCallbacks=[];var i=[];this.addImages(t,r,i),this.addImages(e,n,i);var a=fl(i),o=new po({width:a.w||1,height:a.h||1});for(var s in t){var l=t[s],c=r[s].paddedRect;po.copy(l.data,o,{x:0,y:0},{x:c.x+1,y:c.y+1},l.data)}for(var u in e){var f=e[u],h=n[u].paddedRect,p=h.x+1,d=h.y+1,g=f.data.width,m=f.data.height;po.copy(f.data,o,{x:0,y:0},{x:p,y:d},f.data),po.copy(f.data,o,{x:0,y:m-1},{x:p,y:d-1},{width:g,height:1}),po.copy(f.data,o,{x:0,y:0},{x:p,y:d+m},{width:g,height:1}),po.copy(f.data,o,{x:g-1,y:0},{x:p-1,y:d},{width:1,height:m}),po.copy(f.data,o,{x:0,y:0},{x:p+g,y:d},{width:1,height:m})}this.image=o,this.iconPositions=r,this.patternPositions=n};dl.prototype.addImages=function(t,e,r){for(var n in t){var i=t[n],a={x:0,y:0,w:i.data.width+2,h:i.data.height+2};r.push(a),e[n]=new hl(a,i),i.hasRenderCallback&amp;&amp;this.haveRenderCallbacks.push(n)}},dl.prototype.patchUpdatedImages=function(t,e){for(var r in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[r],t.getImage(r),e),this.patchUpdatedImage(this.patternPositions[r],t.getImage(r),e)},dl.prototype.patchUpdatedImage=function(t,e,r){if(t&amp;&amp;e&amp;&amp;t.version!==e.version){t.version=e.version;var n=t.tl;r.update(e.data,void 0,{x:n[0],y:n[1]})}},Dn(&quot;ImagePosition&quot;,hl),Dn(&quot;ImageAtlas&quot;,dl);var gl={horizontal:1,vertical:2,horizontalOnly:3},ml=function(){this.scale=1,this.fontStack=&quot;&quot;,this.imageName=null};ml.forText=function(t,e){var r=new ml;return r.scale=t||1,r.fontStack=e,r},ml.forImage=function(t){var e=new ml;return e.imageName=t,e};var vl=function(){this.text=&quot;&quot;,this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function yl(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g){var m,v=vl.fromFeature(t,i);f===gl.vertical&amp;&amp;v.verticalizePunctuation();var y=ni.processBidirectionalText,x=ni.processStyledBidirectionalText;if(y&amp;&amp;1===v.sections.length){m=[];for(var b=0,_=y(v.toString(),Ml(v,c,a,e,n,p,d));b&lt;_.length;b+=1){var w=_[b],T=new vl;T.text=w,T.sections=v.sections;for(var k=0;k&lt;w.length;k++)T.sectionIndex.push(0);m.push(T)}}else if(x){m=[];for(var M=0,A=x(v.text,v.sectionIndex,Ml(v,c,a,e,n,p,d));M&lt;A.length;M+=1){var S=A[M],E=new vl;E.text=S[0],E.sectionIndex=S[1],E.sections=v.sections,m.push(E)}}else m=function(t,e){for(var r=[],n=t.text,i=0,a=0,o=e;a&lt;o.length;a+=1){var s=o[a];r.push(t.substring(i,s)),i=s}return i&lt;n.length&amp;&amp;r.push(t.substring(i,n.length)),r}(v,Ml(v,c,a,e,n,p,d));var C=[],L={positionedLines:C,text:v.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:f,iconsInText:!1,verticalizable:!1};return function(t,e,r,n,i,a,o,s,l,c,u,f){for(var h=0,p=-17,d=0,g=0,m=&quot;right&quot;===s?1:&quot;left&quot;===s?0:.5,v=0,y=0,x=i;y&lt;x.length;y+=1){var b=x[y];b.trim();var _=b.getMaxScale(),w=24*(_-1),T={positionedGlyphs:[],lineOffset:0};t.positionedLines[v]=T;var k=T.positionedGlyphs,M=0;if(b.length()){for(var A=0;A&lt;b.length();A++){var S=b.getSection(A),E=b.getSectionIndex(A),C=b.getCharCode(A),L=0,I=null,P=null,z=null,O=24,D=!(l===gl.horizontal||!u&amp;&amp;!Hn(C)||u&amp;&amp;(xl[C]||(H=C,Vn.Arabic(H)||Vn[&quot;Arabic Supplement&quot;](H)||Vn[&quot;Arabic Extended-A&quot;](H)||Vn[&quot;Arabic Presentation Forms-A&quot;](H)||Vn[&quot;Arabic Presentation Forms-B&quot;](H))));if(S.imageName){var R=n[S.imageName];if(!R)continue;z=S.imageName,t.iconsInText=t.iconsInText||!0,P=R.paddedRect;var F=R.displaySize;S.scale=24*S.scale/f,L=w+(24-F[1]*S.scale),O=(I={width:F[0],height:F[1],left:1,top:-3,advance:D?F[1]:F[0]}).advance;var B=D?F[0]*S.scale-24*_:F[1]*S.scale-24*_;B&gt;0&amp;&amp;B&gt;M&amp;&amp;(M=B)}else{var N=r[S.fontStack],j=N&amp;&amp;N[C];if(j&amp;&amp;j.rect)P=j.rect,I=j.metrics;else{var U=e[S.fontStack],V=U&amp;&amp;U[C];if(!V)continue;I=V.metrics}L=24*(_-S.scale)}D?(t.verticalizable=!0,k.push({glyph:C,imageName:z,x:h,y:p+L,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:I,rect:P}),h+=O*S.scale+c):(k.push({glyph:C,imageName:z,x:h,y:p+L,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:I,rect:P}),h+=I.advance*S.scale+c)}0!==k.length&amp;&amp;(d=Math.max(h-c,d),Sl(k,0,k.length-1,m,M)),h=0;var q=a*_+M;T.lineOffset=Math.max(M,w),p+=q,g=Math.max(q,g),++v}else p+=a,++v}var H,G=p- -17,Y=Al(o),W=Y.horizontalAlign,X=Y.verticalAlign;(function(t,e,r,n,i,a,o,s,l){var c,u=(e-r)*i;c=a!==o?-s*n- -17:(-n*l+.5)*o;for(var f=0,h=t;f&lt;h.length;f+=1)for(var p=0,d=h[f].positionedGlyphs;p&lt;d.length;p+=1){var g=d[p];g.x+=u,g.y+=c}})(t.positionedLines,m,W,X,d,g,a,G,i.length),t.top+=-X*G,t.bottom=t.top+G,t.left+=-W*d,t.right=t.left+d}(L,e,r,n,m,o,s,l,f,c,h,g),!function(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(0!==r[e].positionedGlyphs.length)return!1;return!0}(C)&amp;&amp;L}vl.fromFeature=function(t,e){for(var r=new vl,n=0;n&lt;t.sections.length;n++){var i=t.sections[n];i.image?r.addImageSection(i):r.addTextSection(i,e)}return r},vl.prototype.length=function(){return this.text.length},vl.prototype.getSection=function(t){return this.sections[this.sectionIndex[t]]},vl.prototype.getSectionIndex=function(t){return this.sectionIndex[t]},vl.prototype.getCharCode=function(t){return this.text.charCodeAt(t)},vl.prototype.verticalizePunctuation=function(){this.text=function(t){for(var e=&quot;&quot;,r=0;r&lt;t.length;r++){var n=t.charCodeAt(r+1)||null,i=t.charCodeAt(r-1)||null;e+=n&amp;&amp;Gn(n)&amp;&amp;!Us[t[r+1]]||i&amp;&amp;Gn(i)&amp;&amp;!Us[t[r-1]]||!Us[t[r]]?t[r]:Us[t[r]]}return e}(this.text)},vl.prototype.trim=function(){for(var t=0,e=0;e&lt;this.text.length&amp;&amp;xl[this.text.charCodeAt(e)];e++)t++;for(var r=this.text.length,n=this.text.length-1;n&gt;=0&amp;&amp;n&gt;=t&amp;&amp;xl[this.text.charCodeAt(n)];n--)r--;this.text=this.text.substring(t,r),this.sectionIndex=this.sectionIndex.slice(t,r)},vl.prototype.substring=function(t,e){var r=new vl;return r.text=this.text.substring(t,e),r.sectionIndex=this.sectionIndex.slice(t,e),r.sections=this.sections,r},vl.prototype.toString=function(){return this.text},vl.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,r){return Math.max(e,t.sections[r].scale)}),0)},vl.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(ml.forText(t.scale,t.fontStack||e));for(var r=this.sections.length-1,n=0;n&lt;t.text.length;++n)this.sectionIndex.push(r)},vl.prototype.addImageSection=function(t){var e=t.image?t.image.name:&quot;&quot;;if(0!==e.length){var r=this.getNextImageSectionCharCode();r?(this.text+=String.fromCharCode(r),this.sections.push(ml.forImage(e)),this.sectionIndex.push(this.sections.length-1)):_(&quot;Reached maximum number of images 6401&quot;)}else _(&quot;Can't add FormattedSection with an empty image.&quot;)},vl.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID&gt;=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var xl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},bl={};function _l(t,e,r,n,i,a){if(e.imageName){var o=n[e.imageName];return o?o.displaySize[0]*e.scale*24/a+i:0}var s=r[e.fontStack],l=s&amp;&amp;s[t];return l?l.metrics.advance*e.scale+i:0}function wl(t,e,r,n){var i=Math.pow(t-e,2);return n?t&lt;e?i/2:2*i:i+Math.abs(r)*r}function Tl(t,e,r){var n=0;return 10===t&amp;&amp;(n-=1e4),r&amp;&amp;(n+=150),40!==t&amp;&amp;65288!==t||(n+=50),41!==e&amp;&amp;65289!==e||(n+=50),n}function kl(t,e,r,n,i,a){for(var o=null,s=wl(e,r,i,a),l=0,c=n;l&lt;c.length;l+=1){var u=c[l],f=wl(e-u.x,r,i,a)+u.badness;f&lt;=s&amp;&amp;(o=u,s=f)}return{index:t,x:e,priorBreak:o,badness:s}}function Ml(t,e,r,n,i,a,o){if(&quot;point&quot;!==a)return[];if(!t)return[];for(var s,l=[],c=function(t,e,r,n,i,a){for(var o=0,s=0;s&lt;t.length();s++){var l=t.getSection(s);o+=_l(t.getCharCode(s),l,n,i,e,a)}return o/Math.max(1,Math.ceil(o/r))}(t,e,r,n,i,o),u=t.text.indexOf(&quot;\u200b&quot;)&gt;=0,f=0,h=0;h&lt;t.length();h++){var p=t.getSection(h),d=t.getCharCode(h);if(xl[d]||(f+=_l(d,p,n,i,e,o)),h&lt;t.length()-1){var g=!((s=d)&lt;11904||!(Vn[&quot;Bopomofo Extended&quot;](s)||Vn.Bopomofo(s)||Vn[&quot;CJK Compatibility Forms&quot;](s)||Vn[&quot;CJK Compatibility Ideographs&quot;](s)||Vn[&quot;CJK Compatibility&quot;](s)||Vn[&quot;CJK Radicals Supplement&quot;](s)||Vn[&quot;CJK Strokes&quot;](s)||Vn[&quot;CJK Symbols and Punctuation&quot;](s)||Vn[&quot;CJK Unified Ideographs Extension A&quot;](s)||Vn[&quot;CJK Unified Ideographs&quot;](s)||Vn[&quot;Enclosed CJK Letters and Months&quot;](s)||Vn[&quot;Halfwidth and Fullwidth Forms&quot;](s)||Vn.Hiragana(s)||Vn[&quot;Ideographic Description Characters&quot;](s)||Vn[&quot;Kangxi Radicals&quot;](s)||Vn[&quot;Katakana Phonetic Extensions&quot;](s)||Vn.Katakana(s)||Vn[&quot;Vertical Forms&quot;](s)||Vn[&quot;Yi Radicals&quot;](s)||Vn[&quot;Yi Syllables&quot;](s)));(bl[d]||g||p.imageName)&amp;&amp;l.push(kl(h+1,f,c,l,Tl(d,t.getCharCode(h+1),g&amp;&amp;u),!1))}}return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(kl(t.length(),f,c,l,0,!0))}function Al(t){var e=.5,r=.5;switch(t){case&quot;right&quot;:case&quot;top-right&quot;:case&quot;bottom-right&quot;:e=1;break;case&quot;left&quot;:case&quot;top-left&quot;:case&quot;bottom-left&quot;:e=0}switch(t){case&quot;bottom&quot;:case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:r=1;break;case&quot;top&quot;:case&quot;top-right&quot;:case&quot;top-left&quot;:r=0}return{horizontalAlign:e,verticalAlign:r}}function Sl(t,e,r,n,i){if(n||i)for(var a=t[r],o=(t[r].x+a.metrics.advance*a.scale)*n,s=e;s&lt;=r;s++)t[s].x-=o,t[s].y+=i}function El(t,e,r,n,i,a){var o,s=t.image;if(s.content){var l=s.content,c=s.pixelRatio||1;o=[l[0]/c,l[1]/c,s.displaySize[0]-l[2]/c,s.displaySize[1]-l[3]/c]}var u,f,h,p,d=e.left*a,g=e.right*a;&quot;width&quot;===r||&quot;both&quot;===r?(p=i[0]+d-n[3],f=i[0]+g+n[1]):f=(p=i[0]+(d+g-s.displaySize[0])/2)+s.displaySize[0];var m=e.top*a,v=e.bottom*a;return&quot;height&quot;===r||&quot;both&quot;===r?(u=i[1]+m-n[0],h=i[1]+v+n[2]):h=(u=i[1]+(m+v-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:u,right:f,bottom:h,left:p,collisionPadding:o}}bl[10]=!0,bl[32]=!0,bl[38]=!0,bl[40]=!0,bl[41]=!0,bl[43]=!0,bl[45]=!0,bl[47]=!0,bl[173]=!0,bl[183]=!0,bl[8203]=!0,bl[8208]=!0,bl[8211]=!0,bl[8231]=!0;var Cl=function(t){function e(e,r,n,i){t.call(this,e,r),this.angle=n,void 0!==i&amp;&amp;(this.segment=i)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.clone=function(){return new e(this.x,this.y,this.angle,this.segment)},e}(i);function Ll(t,e){var r=e.expression;if(&quot;constant&quot;===r.kind)return{kind:&quot;constant&quot;,layoutSize:r.evaluate(new ii(t+1))};if(&quot;source&quot;===r.kind)return{kind:&quot;source&quot;};for(var n=r.zoomStops,i=r.interpolationType,a=0;a&lt;n.length&amp;&amp;n[a]&lt;=t;)a++;for(var o=a=Math.max(0,a-1);o&lt;n.length&amp;&amp;n[o]&lt;t+1;)o++;o=Math.min(n.length-1,o);var s=n[a],l=n[o];return&quot;composite&quot;===r.kind?{kind:&quot;composite&quot;,minZoom:s,maxZoom:l,interpolationType:i}:{kind:&quot;camera&quot;,minZoom:s,maxZoom:l,minSize:r.evaluate(new ii(s)),maxSize:r.evaluate(new ii(l)),interpolationType:i}}function Il(t,e,r){var n=e.uSize,i=r.lowerSize;return&quot;source&quot;===t.kind?i/128:&quot;composite&quot;===t.kind?Ue(i/128,r.upperSize/128,e.uSizeT):n}function Pl(t,e){var r=0,n=0;if(&quot;constant&quot;===t.kind)n=t.layoutSize;else if(&quot;source&quot;!==t.kind){var i=t.interpolationType,a=i?l(rr.interpolationFactor(i,e,t.minZoom,t.maxZoom),0,1):0;&quot;camera&quot;===t.kind?n=Ue(t.minSize,t.maxSize,a):r=a}return{uSizeT:r,uSize:n}}Dn(&quot;Anchor&quot;,Cl);var zl=Object.freeze({__proto__:null,getSizeData:Ll,evaluateSizeForFeature:Il,evaluateSizeForZoom:Pl,SIZE_PACK_FACTOR:128});function Ol(t,e,r,n,i){if(void 0===e.segment)return!0;for(var a=e,o=e.segment+1,s=0;s&gt;-r/2;){if(--o&lt;0)return!1;s-=t[o].dist(a),a=t[o]}s+=t[o].dist(t[o+1]),o++;for(var l=[],c=0;s&lt;r/2;){var u=t[o],f=t[o+1];if(!f)return!1;var h=t[o-1].angleTo(u)-u.angleTo(f);for(h=Math.abs((h+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:h}),c+=h;s-l[0].distance&gt;n;)c-=l.shift().angleDelta;if(c&gt;i)return!1;o++,s+=u.dist(f)}return!0}function Dl(t){for(var e=0,r=0;r&lt;t.length-1;r++)e+=t[r].dist(t[r+1]);return e}function Rl(t,e,r){return t?.6*e*r:0}function Fl(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function Bl(t,e,r,n,i,a){for(var o=Rl(r,i,a),s=Fl(r,n)*a,l=0,c=Dl(t)/2,u=0;u&lt;t.length-1;u++){var f=t[u],h=t[u+1],p=f.dist(h);if(l+p&gt;c){var d=(c-l)/p,g=Ue(f.x,h.x,d),m=Ue(f.y,h.y,d),v=new Cl(g,m,h.angleTo(f),u);return v._round(),!o||Ol(t,v,s,o,e)?v:void 0}l+=p}}function Nl(t,e,r,n,i,a,o,s,l){var c=Rl(n,a,o),u=Fl(n,i),f=u*o,h=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-f&lt;e/4&amp;&amp;(e=f+e/4),function t(e,r,n,i,a,o,s,l,c){for(var u=o/2,f=Dl(e),h=0,p=r-n,d=[],g=0;g&lt;e.length-1;g++){for(var m=e[g],v=e[g+1],y=m.dist(v),x=v.angleTo(m);p+n&lt;h+y;){var b=((p+=n)-h)/y,_=Ue(m.x,v.x,b),w=Ue(m.y,v.y,b);if(_&gt;=0&amp;&amp;_&lt;c&amp;&amp;w&gt;=0&amp;&amp;w&lt;c&amp;&amp;p-u&gt;=0&amp;&amp;p+u&lt;=f){var T=new Cl(_,w,x,g);T._round(),i&amp;&amp;!Ol(e,T,o,i,a)||d.push(T)}}h+=y}return l||d.length||s||(d=t(e,h/2,n,i,a,o,s,!0,c)),d}(t,h?e/2*s%e:(u/2+2*a)*o*s%e,e,c,r,f,h,!1,l)}function jl(t,e,r,n,a){for(var o=[],s=0;s&lt;t.length;s++)for(var l=t[s],c=void 0,u=0;u&lt;l.length-1;u++){var f=l[u],h=l[u+1];f.x&lt;e&amp;&amp;h.x&lt;e||(f.x&lt;e?f=new i(e,f.y+(e-f.x)/(h.x-f.x)*(h.y-f.y))._round():h.x&lt;e&amp;&amp;(h=new i(e,f.y+(e-f.x)/(h.x-f.x)*(h.y-f.y))._round()),f.y&lt;r&amp;&amp;h.y&lt;r||(f.y&lt;r?f=new i(f.x+(r-f.y)/(h.y-f.y)*(h.x-f.x),r)._round():h.y&lt;r&amp;&amp;(h=new i(f.x+(r-f.y)/(h.y-f.y)*(h.x-f.x),r)._round()),f.x&gt;=n&amp;&amp;h.x&gt;=n||(f.x&gt;=n?f=new i(n,f.y+(n-f.x)/(h.x-f.x)*(h.y-f.y))._round():h.x&gt;=n&amp;&amp;(h=new i(n,f.y+(n-f.x)/(h.x-f.x)*(h.y-f.y))._round()),f.y&gt;=a&amp;&amp;h.y&gt;=a||(f.y&gt;=a?f=new i(f.x+(a-f.y)/(h.y-f.y)*(h.x-f.x),a)._round():h.y&gt;=a&amp;&amp;(h=new i(f.x+(a-f.y)/(h.y-f.y)*(h.x-f.x),a)._round()),c&amp;&amp;f.equals(c[c.length-1])||o.push(c=[f]),c.push(h)))))}return o}function Ul(t,e,r,n){var a=[],o=t.image,s=o.pixelRatio,l=o.paddedRect.w-2,c=o.paddedRect.h-2,u=t.right-t.left,f=t.bottom-t.top,h=o.stretchX||[[0,l]],p=o.stretchY||[[0,c]],d=function(t,e){return t+e[1]-e[0]},g=h.reduce(d,0),m=p.reduce(d,0),v=l-g,y=c-m,x=0,b=g,_=0,w=m,T=0,k=v,M=0,A=y;if(o.content&amp;&amp;n){var S=o.content;x=Vl(h,0,S[0]),_=Vl(p,0,S[1]),b=Vl(h,S[0],S[2]),w=Vl(p,S[1],S[3]),T=S[0]-x,M=S[1]-_,k=S[2]-S[0]-b,A=S[3]-S[1]-w}var E=function(n,a,l,c){var h=Hl(n.stretch-x,b,u,t.left),p=Gl(n.fixed-T,k,n.stretch,g),d=Hl(a.stretch-_,w,f,t.top),v=Gl(a.fixed-M,A,a.stretch,m),y=Hl(l.stretch-x,b,u,t.left),S=Gl(l.fixed-T,k,l.stretch,g),E=Hl(c.stretch-_,w,f,t.top),C=Gl(c.fixed-M,A,c.stretch,m),L=new i(h,d),I=new i(y,d),P=new i(y,E),z=new i(h,E),O=new i(p/s,v/s),D=new i(S/s,C/s),R=e*Math.PI/180;if(R){var F=Math.sin(R),B=Math.cos(R),N=[B,-F,F,B];L._matMult(N),I._matMult(N),z._matMult(N),P._matMult(N)}var j=n.stretch+n.fixed,U=a.stretch+a.fixed;return{tl:L,tr:I,bl:z,br:P,tex:{x:o.paddedRect.x+1+j,y:o.paddedRect.y+1+U,w:l.stretch+l.fixed-j,h:c.stretch+c.fixed-U},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:O,pixelOffsetBR:D,minFontScaleX:k/s/u,minFontScaleY:A/s/f,isSDF:r}};if(n&amp;&amp;(o.stretchX||o.stretchY))for(var C=ql(h,v,g),L=ql(p,y,m),I=0;I&lt;C.length-1;I++)for(var P=C[I],z=C[I+1],O=0;O&lt;L.length-1;O++)a.push(E(P,L[O],z,L[O+1]));else a.push(E({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return a}function Vl(t,e,r){for(var n=0,i=0,a=t;i&lt;a.length;i+=1){var o=a[i];n+=Math.max(e,Math.min(r,o[1]))-Math.max(e,Math.min(r,o[0]))}return n}function ql(t,e,r){for(var n=[{fixed:-1,stretch:0}],i=0,a=t;i&lt;a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=n[n.length-1];n.push({fixed:s-c.stretch,stretch:c.stretch}),n.push({fixed:s-c.stretch,stretch:c.stretch+(l-s)})}return n.push({fixed:e+1,stretch:r}),n}function Hl(t,e,r,n){return t/e*r+n}function Gl(t,e,r,n){return t-e*r/n}var Yl=function(t,e,r,n,a,o,s,l,c,u){if(this.boxStartIndex=t.length,c){var f=o.top,h=o.bottom,p=o.collisionPadding;p&amp;&amp;(f-=p[1],h+=p[3]);var d=h-f;d&gt;0&amp;&amp;(d=Math.max(10,d),this.circleDiameter=d)}else{var g=o.top*s-l,m=o.bottom*s+l,v=o.left*s-l,y=o.right*s+l,x=o.collisionPadding;if(x&amp;&amp;(v-=x[0]*s,g-=x[1]*s,y+=x[2]*s,m+=x[3]*s),u){var b=new i(v,g),_=new i(y,g),w=new i(v,m),T=new i(y,m),k=u*Math.PI/180;b._rotate(k),_._rotate(k),w._rotate(k),T._rotate(k),v=Math.min(b.x,_.x,w.x,T.x),y=Math.max(b.x,_.x,w.x,T.x),g=Math.min(b.y,_.y,w.y,T.y),m=Math.max(b.y,_.y,w.y,T.y)}t.emplaceBack(e.x,e.y,v,g,y,m,r,n,a)}this.boxEndIndex=t.length},Wl=function(t,e){if(void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e=Xl),this.data=t,this.length=this.data.length,this.compare=e,this.length&gt;0)for(var r=(this.length&gt;&gt;1)-1;r&gt;=0;r--)this._down(r)};function Xl(t,e){return t&lt;e?-1:t&gt;e?1:0}function Zl(t,e,r){void 0===e&amp;&amp;(e=1),void 0===r&amp;&amp;(r=!1);for(var n=1/0,a=1/0,o=-1/0,s=-1/0,l=t[0],c=0;c&lt;l.length;c++){var u=l[c];(!c||u.x&lt;n)&amp;&amp;(n=u.x),(!c||u.y&lt;a)&amp;&amp;(a=u.y),(!c||u.x&gt;o)&amp;&amp;(o=u.x),(!c||u.y&gt;s)&amp;&amp;(s=u.y)}var f=Math.min(o-n,s-a),h=f/2,p=new Wl([],Jl);if(0===f)return new i(n,a);for(var d=n;d&lt;o;d+=f)for(var g=a;g&lt;s;g+=f)p.push(new Kl(d+h,g+h,h,t));for(var m=function(t){for(var e=0,r=0,n=0,i=t[0],a=0,o=i.length,s=o-1;a&lt;o;s=a++){var l=i[a],c=i[s],u=l.x*c.y-c.x*l.y;r+=(l.x+c.x)*u,n+=(l.y+c.y)*u,e+=3*u}return new Kl(r/e,n/e,0,t)}(t),v=p.length;p.length;){var y=p.pop();(y.d&gt;m.d||!m.d)&amp;&amp;(m=y,r&amp;&amp;console.log(&quot;found best %d after %d probes&quot;,Math.round(1e4*y.d)/1e4,v)),y.max-m.d&lt;=e||(p.push(new Kl(y.p.x-(h=y.h/2),y.p.y-h,h,t)),p.push(new Kl(y.p.x+h,y.p.y-h,h,t)),p.push(new Kl(y.p.x-h,y.p.y+h,h,t)),p.push(new Kl(y.p.x+h,y.p.y+h,h,t)),v+=4)}return r&amp;&amp;(console.log(&quot;num probes: &quot;+v),console.log(&quot;best distance: &quot;+m.d)),m.p}function Jl(t,e){return e.max-t.max}function Kl(t,e,r,n){this.p=new i(t,e),this.h=r,this.d=function(t,e){for(var r=!1,n=1/0,i=0;i&lt;e.length;i++)for(var a=e[i],o=0,s=a.length,l=s-1;o&lt;s;l=o++){var c=a[o],u=a[l];c.y&gt;t.y!=u.y&gt;t.y&amp;&amp;t.x&lt;(u.x-c.x)*(t.y-c.y)/(u.y-c.y)+c.x&amp;&amp;(r=!r),n=Math.min(n,Ga(t,c,u))}return(r?1:-1)*Math.sqrt(n)}(this.p,n),this.max=this.d+this.h*Math.SQRT2}Wl.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},Wl.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length&gt;0&amp;&amp;(this.data[0]=e,this._down(0)),t}},Wl.prototype.peek=function(){return this.data[0]},Wl.prototype._up=function(t){for(var e=this.data,r=this.compare,n=e[t];t&gt;0;){var i=t-1&gt;&gt;1,a=e[i];if(r(n,a)&gt;=0)break;e[t]=a,t=i}e[t]=n},Wl.prototype._down=function(t){for(var e=this.data,r=this.compare,n=this.length&gt;&gt;1,i=e[t];t&lt;n;){var a=1+(t&lt;&lt;1),o=e[a],s=a+1;if(s&lt;this.length&amp;&amp;r(e[s],o)&lt;0&amp;&amp;(a=s,o=e[s]),r(o,i)&gt;=0)break;e[t]=o,t=a}e[t]=i};var Ql=Number.POSITIVE_INFINITY;function $l(t,e){return e[1]!==Ql?function(t,e,r){var n=0,i=0;switch(e=Math.abs(e),r=Math.abs(r),t){case&quot;top-right&quot;:case&quot;top-left&quot;:case&quot;top&quot;:i=r-7;break;case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:case&quot;bottom&quot;:i=7-r}switch(t){case&quot;top-right&quot;:case&quot;bottom-right&quot;:case&quot;right&quot;:n=-e;break;case&quot;top-left&quot;:case&quot;bottom-left&quot;:case&quot;left&quot;:n=e}return[n,i]}(t,e[0],e[1]):function(t,e){var r=0,n=0;e&lt;0&amp;&amp;(e=0);var i=e/Math.sqrt(2);switch(t){case&quot;top-right&quot;:case&quot;top-left&quot;:n=i-7;break;case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:n=7-i;break;case&quot;bottom&quot;:n=7-e;break;case&quot;top&quot;:n=e-7}switch(t){case&quot;top-right&quot;:case&quot;bottom-right&quot;:r=-i;break;case&quot;top-left&quot;:case&quot;bottom-left&quot;:r=i;break;case&quot;left&quot;:r=e;break;case&quot;right&quot;:r=-e}return[r,n]}(t,e[0])}function tc(t){switch(t){case&quot;right&quot;:case&quot;top-right&quot;:case&quot;bottom-right&quot;:return&quot;right&quot;;case&quot;left&quot;:case&quot;top-left&quot;:case&quot;bottom-left&quot;:return&quot;left&quot;}return&quot;center&quot;}function ec(t,e,r,n,a,o,s,l,c,u,f,h,p,d,g){var m=function(t,e,r,n,a,o,s,l){for(var c=n.layout.get(&quot;text-rotate&quot;).evaluate(o,{})*Math.PI/180,u=[],f=0,h=e.positionedLines;f&lt;h.length;f+=1)for(var p=h[f],d=0,g=p.positionedGlyphs;d&lt;g.length;d+=1){var m=g[d];if(m.rect){var v=m.rect||{},y=4,x=!0,b=1,_=0,w=(a||l)&amp;&amp;m.vertical,T=m.metrics.advance*m.scale/2;if(l&amp;&amp;e.verticalizable&amp;&amp;(_=p.lineOffset/2-(m.imageName?-(24-m.metrics.width*m.scale)/2:24*(m.scale-1))),m.imageName){var k=s[m.imageName];x=k.sdf,y=1/(b=k.pixelRatio)}var M=a?[m.x+T,m.y]:[0,0],A=a?[0,0]:[m.x+T+r[0],m.y+r[1]-_],S=[0,0];w&amp;&amp;(S=A,A=[0,0]);var E=(m.metrics.left-y)*m.scale-T+A[0],C=(-m.metrics.top-y)*m.scale+A[1],L=E+v.w*m.scale/b,I=C+v.h*m.scale/b,P=new i(E,C),z=new i(L,C),O=new i(E,I),D=new i(L,I);if(w){var R=new i(-T,T- -17),F=-Math.PI/2,B=12-T,N=new i(22-B,-(m.imageName?B:0)),j=new(Function.prototype.bind.apply(i,[null].concat(S)));P._rotateAround(F,R)._add(N)._add(j),z._rotateAround(F,R)._add(N)._add(j),O._rotateAround(F,R)._add(N)._add(j),D._rotateAround(F,R)._add(N)._add(j)}if(c){var U=Math.sin(c),V=Math.cos(c),q=[V,-U,U,V];P._matMult(q),z._matMult(q),O._matMult(q),D._matMult(q)}var H=new i(0,0),G=new i(0,0);u.push({tl:P,tr:z,bl:O,br:D,tex:v,writingMode:e.writingMode,glyphOffset:M,sectionIndex:m.sectionIndex,isSDF:x,pixelOffsetTL:H,pixelOffsetBR:G,minFontScaleX:0,minFontScaleY:0})}}return u}(0,r,l,a,o,s,n,t.allowVerticalPlacement),v=t.textSizeData,y=null;&quot;source&quot;===v.kind?(y=[128*a.layout.get(&quot;text-size&quot;).evaluate(s,{})])[0]&gt;32640&amp;&amp;_(t.layerIds[0]+': Value for &quot;text-size&quot; is &gt;= 255. Reduce your &quot;text-size&quot;.'):&quot;composite&quot;===v.kind&amp;&amp;((y=[128*d.compositeTextSizes[0].evaluate(s,{},g),128*d.compositeTextSizes[1].evaluate(s,{},g)])[0]&gt;32640||y[1]&gt;32640)&amp;&amp;_(t.layerIds[0]+': Value for &quot;text-size&quot; is &gt;= 255. Reduce your &quot;text-size&quot;.'),t.addSymbols(t.text,m,y,l,o,s,u,e,c.lineStartIndex,c.lineLength,p,g);for(var x=0,b=f;x&lt;b.length;x+=1)h[b[x]]=t.text.placedSymbolArray.length-1;return 4*m.length}function rc(t){for(var e in t)return t[e];return null}function nc(t,e,r,n){var i=t.compareText;if(e in i){for(var a=i[e],o=a.length-1;o&gt;=0;o--)if(n.dist(a[o])&lt;r)return!0}else i[e]=[];return i[e].push(n),!1}var ic=gs.VectorTileFeature.types,ac=[{name:&quot;a_fade_opacity&quot;,components:1,type:&quot;Uint8&quot;,offset:0}];function oc(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=s?Math.min(32640,Math.round(s[0])):0,d=s?Math.min(32640,Math.round(s[1])):0;t.emplaceBack(e,r,Math.round(32*n),Math.round(32*i),a,o,(p&lt;&lt;1)+(l?1:0),d,16*c,16*u,256*f,256*h)}function sc(t,e,r){t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r)}function lc(t){for(var e=0,r=t.sections;e&lt;r.length;e+=1)if(Xn(r[e].text))return!0;return!1}var cc=function(t){this.layoutVertexArray=new Li,this.indexArray=new Fi,this.programConfigurations=t,this.segments=new ia,this.dynamicLayoutVertexArray=new Ii,this.opacityVertexArray=new Pi,this.placedSymbolArray=new Ji};cc.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&amp;&amp;0===this.indexArray.length&amp;&amp;0===this.dynamicLayoutVertexArray.length&amp;&amp;0===this.opacityVertexArray.length},cc.prototype.upload=function(t,e,r,n){this.isEmpty()||(r&amp;&amp;(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ds.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,Rs.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,ac,!0),this.opacityVertexBuffer.itemSize=1),(r||n)&amp;&amp;this.programConfigurations.upload(t))},cc.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},Dn(&quot;SymbolBuffers&quot;,cc);var uc=function(t,e,r){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new r,this.segments=new ia,this.collisionVertexArray=new Ri};uc.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,Fs.members,!0)},uc.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},Dn(&quot;CollisionBuffers&quot;,uc);var fc=function(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=eo([]),this.placementViewportMatrix=eo([]);var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Ll(this.zoom,e[&quot;text-size&quot;]),this.iconSizeData=Ll(this.zoom,e[&quot;icon-size&quot;]);var r=this.layers[0].layout,n=r.get(&quot;symbol-sort-key&quot;),i=r.get(&quot;symbol-z-order&quot;);this.sortFeaturesByKey=&quot;viewport-y&quot;!==i&amp;&amp;void 0!==n.constantOr(1),this.sortFeaturesByY=(&quot;viewport-y&quot;===i||&quot;auto&quot;===i&amp;&amp;!this.sortFeaturesByKey)&amp;&amp;(r.get(&quot;text-allow-overlap&quot;)||r.get(&quot;icon-allow-overlap&quot;)||r.get(&quot;text-ignore-placement&quot;)||r.get(&quot;icon-ignore-placement&quot;)),&quot;point&quot;===r.get(&quot;symbol-placement&quot;)&amp;&amp;(this.writingModes=r.get(&quot;text-writing-mode&quot;).map((function(t){return gl[t]}))),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id})),this.sourceID=t.sourceID};fc.prototype.createArrays=function(){this.text=new cc(new Ia(Ds.members,this.layers,this.zoom,(function(t){return/^text/.test(t)}))),this.icon=new cc(new Ia(Ds.members,this.layers,this.zoom,(function(t){return/^icon/.test(t)}))),this.glyphOffsetArray=new $i,this.lineVertexArray=new ta,this.symbolInstances=new Qi},fc.prototype.calculateGlyphDependencies=function(t,e,r,n,i){for(var a=0;a&lt;t.length;a++)if(e[t.charCodeAt(a)]=!0,(r||n)&amp;&amp;i){var o=Us[t.charAt(a)];o&amp;&amp;(e[o.charCodeAt(0)]=!0)}},fc.prototype.populate=function(t,e,r){var n=this.layers[0],i=n.layout,a=i.get(&quot;text-font&quot;),o=i.get(&quot;text-field&quot;),s=i.get(&quot;icon-image&quot;),l=(&quot;constant&quot;!==o.value.kind||o.value.value instanceof te&amp;&amp;!o.value.value.isEmpty()||o.value.value.toString().length&gt;0)&amp;&amp;(&quot;constant&quot;!==a.value.kind||a.value.value.length&gt;0),c=&quot;constant&quot;!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length&gt;0,u=i.get(&quot;symbol-sort-key&quot;);if(this.features=[],l||c){for(var f=e.iconDependencies,h=e.glyphDependencies,p=e.availableImages,d=new ii(this.zoom),g=0,m=t;g&lt;m.length;g+=1){var v=m[g],y=v.feature,x=v.id,b=v.index,_=v.sourceLayerIndex,w=n._featureFilter.needGeometry,T={type:y.type,id:x,properties:y.properties,geometry:w?Da(y):[]};if(n._featureFilter.filter(d,T,r)){w||(T.geometry=Da(y));var k=void 0;if(l){var M=n.getValueAndResolveTokens(&quot;text-field&quot;,T,r,p),A=te.factory(M);lc(A)&amp;&amp;(this.hasRTLText=!0),(!this.hasRTLText||&quot;unavailable&quot;===ei()||this.hasRTLText&amp;&amp;ni.isParsed())&amp;&amp;(k=js(A,n,T))}var S=void 0;if(c){var E=n.getValueAndResolveTokens(&quot;icon-image&quot;,T,r,p);S=E instanceof ee?E:ee.fromString(E)}if(k||S){var C=this.sortFeaturesByKey?u.evaluate(T,{},r):void 0,L={id:x,text:k,icon:S,index:b,sourceLayerIndex:_,geometry:Da(y),properties:y.properties,type:ic[y.type],sortKey:C};if(this.features.push(L),S&amp;&amp;(f[S.name]=!0),k){var I=a.evaluate(T,{},r).join(&quot;,&quot;),P=&quot;map&quot;===i.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==i.get(&quot;symbol-placement&quot;);this.allowVerticalPlacement=this.writingModes&amp;&amp;this.writingModes.indexOf(gl.vertical)&gt;=0;for(var z=0,O=k.sections;z&lt;O.length;z+=1){var D=O[z];if(D.image)f[D.image.name]=!0;else{var R=qn(k.toString()),F=D.fontStack||I,B=h[F]=h[F]||{};this.calculateGlyphDependencies(D.text,B,P,this.allowVerticalPlacement,R)}}}}}}&quot;line&quot;===i.get(&quot;symbol-placement&quot;)&amp;&amp;(this.features=function(t){var e={},r={},n=[],i=0;function a(e){n.push(t[e]),i++}function o(t,e,i){var a=r[t];return delete r[t],r[e]=a,n[a].geometry[0].pop(),n[a].geometry[0]=n[a].geometry[0].concat(i[0]),a}function s(t,r,i){var a=e[r];return delete e[r],e[t]=a,n[a].geometry[0].shift(),n[a].geometry[0]=i[0].concat(n[a].geometry[0]),a}function l(t,e,r){var n=r?e[0][e[0].length-1]:e[0][0];return t+&quot;:&quot;+n.x+&quot;:&quot;+n.y}for(var c=0;c&lt;t.length;c++){var u=t[c],f=u.geometry,h=u.text?u.text.toString():null;if(h){var p=l(h,f),d=l(h,f,!0);if(p in r&amp;&amp;d in e&amp;&amp;r[p]!==e[d]){var g=s(p,d,f),m=o(p,d,n[g].geometry);delete e[p],delete r[d],r[l(h,n[m].geometry,!0)]=m,n[g].geometry=null}else p in r?o(p,d,f):d in e?s(p,d,f):(a(c),e[p]=i-1,r[d]=i-1)}else a(c)}return n.filter((function(t){return t.geometry}))}(this.features)),this.sortFeaturesByKey&amp;&amp;this.features.sort((function(t,e){return t.sortKey-e.sortKey}))}},fc.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,r),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,r))},fc.prototype.isEmpty=function(){return 0===this.symbolInstances.length&amp;&amp;!this.hasRTLText},fc.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},fc.prototype.upload=function(t){!this.uploaded&amp;&amp;this.hasDebugData()&amp;&amp;(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},fc.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},fc.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&amp;&amp;this.destroyDebugData()},fc.prototype.addToLineVertexArray=function(t,e){var r=this.lineVertexArray.length;if(void 0!==t.segment){for(var n=t.dist(e[t.segment+1]),i=t.dist(e[t.segment]),a={},o=t.segment+1;o&lt;e.length;o++)a[o]={x:e[o].x,y:e[o].y,tileUnitDistanceFromAnchor:n},o&lt;e.length-1&amp;&amp;(n+=e[o+1].dist(e[o]));for(var s=t.segment||0;s&gt;=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s&gt;0&amp;&amp;(i+=e[s-1].dist(e[s]));for(var l=0;l&lt;e.length;l++){var c=a[l];this.lineVertexArray.emplaceBack(c.x,c.y,c.tileUnitDistanceFromAnchor)}}return{lineStartIndex:r,lineLength:this.lineVertexArray.length-r}},fc.prototype.addSymbols=function(t,e,r,n,i,a,o,s,l,c,u,f){for(var h=t.indexArray,p=t.layoutVertexArray,d=t.segments.prepareSegment(4*e.length,p,h,a.sortKey),g=this.glyphOffsetArray.length,m=d.vertexLength,v=this.allowVerticalPlacement&amp;&amp;o===gl.vertical?Math.PI/2:0,y=a.text&amp;&amp;a.text.sections,x=0;x&lt;e.length;x++){var b=e[x],_=b.tl,w=b.tr,T=b.bl,k=b.br,M=b.tex,A=b.pixelOffsetTL,S=b.pixelOffsetBR,E=b.minFontScaleX,C=b.minFontScaleY,L=b.glyphOffset,I=b.isSDF,P=b.sectionIndex,z=d.vertexLength,O=L[1];oc(p,s.x,s.y,_.x,O+_.y,M.x,M.y,r,I,A.x,A.y,E,C),oc(p,s.x,s.y,w.x,O+w.y,M.x+M.w,M.y,r,I,S.x,A.y,E,C),oc(p,s.x,s.y,T.x,O+T.y,M.x,M.y+M.h,r,I,A.x,S.y,E,C),oc(p,s.x,s.y,k.x,O+k.y,M.x+M.w,M.y+M.h,r,I,S.x,S.y,E,C),sc(t.dynamicLayoutVertexArray,s,v),h.emplaceBack(z,z+1,z+2),h.emplaceBack(z+1,z+2,z+3),d.vertexLength+=4,d.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(L[0]),x!==e.length-1&amp;&amp;P===e[x+1].sectionIndex||t.programConfigurations.populatePaintArrays(p.length,a,a.index,{},f,y&amp;&amp;y[P])}t.placedSymbolArray.emplaceBack(s.x,s.y,g,this.glyphOffsetArray.length-g,m,l,c,s.segment,r?r[0]:0,r?r[1]:0,n[0],n[1],o,0,!1,0,u)},fc.prototype._addCollisionDebugVertex=function(t,e,r,n,i,a){return e.emplaceBack(0,0),t.emplaceBack(r.x,r.y,n,i,Math.round(a.x),Math.round(a.y))},fc.prototype.addCollisionDebugVertices=function(t,e,r,n,a,o,s){var l=a.segments.prepareSegment(4,a.layoutVertexArray,a.indexArray),c=l.vertexLength,u=a.layoutVertexArray,f=a.collisionVertexArray,h=s.anchorX,p=s.anchorY;this._addCollisionDebugVertex(u,f,o,h,p,new i(t,e)),this._addCollisionDebugVertex(u,f,o,h,p,new i(r,e)),this._addCollisionDebugVertex(u,f,o,h,p,new i(r,n)),this._addCollisionDebugVertex(u,f,o,h,p,new i(t,n)),l.vertexLength+=4;var d=a.indexArray;d.emplaceBack(c,c+1),d.emplaceBack(c+1,c+2),d.emplaceBack(c+2,c+3),d.emplaceBack(c+3,c),l.primitiveLength+=4},fc.prototype.addDebugCollisionBoxes=function(t,e,r,n){for(var i=t;i&lt;e;i++){var a=this.collisionBoxArray.get(i);this.addCollisionDebugVertices(a.x1,a.y1,a.x2,a.y2,n?this.textCollisionBox:this.iconCollisionBox,a.anchorPoint,r)}},fc.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&amp;&amp;this.destroyDebugData(),this.textCollisionBox=new uc(Oi,Bs.members,qi),this.iconCollisionBox=new uc(Oi,Bs.members,qi);for(var t=0;t&lt;this.symbolInstances.length;t++){var e=this.symbolInstances.get(t);this.addDebugCollisionBoxes(e.textBoxStartIndex,e.textBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.verticalTextBoxStartIndex,e.verticalTextBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.iconBoxStartIndex,e.iconBoxEndIndex,e,!1),this.addDebugCollisionBoxes(e.verticalIconBoxStartIndex,e.verticalIconBoxEndIndex,e,!1)}},fc.prototype._deserializeCollisionBoxesForSymbol=function(t,e,r,n,i,a,o,s,l){for(var c={},u=e;u&lt;r;u++){var f=t.get(u);c.textBox={x1:f.x1,y1:f.y1,x2:f.x2,y2:f.y2,anchorPointX:f.anchorPointX,anchorPointY:f.anchorPointY},c.textFeatureIndex=f.featureIndex;break}for(var h=n;h&lt;i;h++){var p=t.get(h);c.verticalTextBox={x1:p.x1,y1:p.y1,x2:p.x2,y2:p.y2,anchorPointX:p.anchorPointX,anchorPointY:p.anchorPointY},c.verticalTextFeatureIndex=p.featureIndex;break}for(var d=a;d&lt;o;d++){var g=t.get(d);c.iconBox={x1:g.x1,y1:g.y1,x2:g.x2,y2:g.y2,anchorPointX:g.anchorPointX,anchorPointY:g.anchorPointY},c.iconFeatureIndex=g.featureIndex;break}for(var m=s;m&lt;l;m++){var v=t.get(m);c.verticalIconBox={x1:v.x1,y1:v.y1,x2:v.x2,y2:v.y2,anchorPointX:v.anchorPointX,anchorPointY:v.anchorPointY},c.verticalIconFeatureIndex=v.featureIndex;break}return c},fc.prototype.deserializeCollisionBoxes=function(t){this.collisionArrays=[];for(var e=0;e&lt;this.symbolInstances.length;e++){var r=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,r.textBoxStartIndex,r.textBoxEndIndex,r.verticalTextBoxStartIndex,r.verticalTextBoxEndIndex,r.iconBoxStartIndex,r.iconBoxEndIndex,r.verticalIconBoxStartIndex,r.verticalIconBoxEndIndex))}},fc.prototype.hasTextData=function(){return this.text.segments.get().length&gt;0},fc.prototype.hasIconData=function(){return this.icon.segments.get().length&gt;0},fc.prototype.hasDebugData=function(){return this.textCollisionBox&amp;&amp;this.iconCollisionBox},fc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&amp;&amp;this.textCollisionBox.segments.get().length&gt;0},fc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&amp;&amp;this.iconCollisionBox.segments.get().length&gt;0},fc.prototype.addIndicesForPlacedSymbol=function(t,e){for(var r=t.placedSymbolArray.get(e),n=r.vertexStartIndex+4*r.numGlyphs,i=r.vertexStartIndex;i&lt;n;i+=4)t.indexArray.emplaceBack(i,i+1,i+2),t.indexArray.emplaceBack(i+1,i+2,i+3)},fc.prototype.getSortedSymbolIndexes=function(t){if(this.sortedAngle===t&amp;&amp;void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var e=Math.sin(t),r=Math.cos(t),n=[],i=[],a=[],o=0;o&lt;this.symbolInstances.length;++o){a.push(o);var s=this.symbolInstances.get(o);n.push(0|Math.round(e*s.anchorX+r*s.anchorY)),i.push(s.featureIndex)}return a.sort((function(t,e){return n[t]-n[e]||i[e]-i[t]})),a},fc.prototype.addToSortKeyRanges=function(t,e){var r=this.sortKeyRanges[this.sortKeyRanges.length-1];r&amp;&amp;r.sortKey===e?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})},fc.prototype.sortFeatures=function(t){var e=this;if(this.sortFeaturesByY&amp;&amp;this.sortedAngle!==t&amp;&amp;!(this.text.segments.get().length&gt;1||this.icon.segments.get().length&gt;1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var r=0,n=this.symbolInstanceIndexes;r&lt;n.length;r+=1){var i=this.symbolInstances.get(n[r]);this.featureSortOrder.push(i.featureIndex),[i.rightJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.leftJustifiedTextSymbolIndex].forEach((function(t,r,n){t&gt;=0&amp;&amp;n.indexOf(t)===r&amp;&amp;e.addIndicesForPlacedSymbol(e.text,t)})),i.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.text,i.verticalPlacedTextSymbolIndex),i.placedIconSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.icon,i.placedIconSymbolIndex),i.verticalPlacedIconSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.icon,i.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&amp;&amp;this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&amp;&amp;this.icon.indexBuffer.updateData(this.icon.indexArray)}},Dn(&quot;SymbolBucket&quot;,fc,{omit:[&quot;layers&quot;,&quot;collisionBoxArray&quot;,&quot;features&quot;,&quot;compareText&quot;]}),fc.MAX_GLYPHS=65535,fc.addDynamicAttributes=sc;var hc=new yi({&quot;symbol-placement&quot;:new pi(At.layout_symbol[&quot;symbol-placement&quot;]),&quot;symbol-spacing&quot;:new pi(At.layout_symbol[&quot;symbol-spacing&quot;]),&quot;symbol-avoid-edges&quot;:new pi(At.layout_symbol[&quot;symbol-avoid-edges&quot;]),&quot;symbol-sort-key&quot;:new di(At.layout_symbol[&quot;symbol-sort-key&quot;]),&quot;symbol-z-order&quot;:new pi(At.layout_symbol[&quot;symbol-z-order&quot;]),&quot;icon-allow-overlap&quot;:new pi(At.layout_symbol[&quot;icon-allow-overlap&quot;]),&quot;icon-ignore-placement&quot;:new pi(At.layout_symbol[&quot;icon-ignore-placement&quot;]),&quot;icon-optional&quot;:new pi(At.layout_symbol[&quot;icon-optional&quot;]),&quot;icon-rotation-alignment&quot;:new pi(At.layout_symbol[&quot;icon-rotation-alignment&quot;]),&quot;icon-size&quot;:new di(At.layout_symbol[&quot;icon-size&quot;]),&quot;icon-text-fit&quot;:new pi(At.layout_symbol[&quot;icon-text-fit&quot;]),&quot;icon-text-fit-padding&quot;:new pi(At.layout_symbol[&quot;icon-text-fit-padding&quot;]),&quot;icon-image&quot;:new di(At.layout_symbol[&quot;icon-image&quot;]),&quot;icon-rotate&quot;:new di(At.layout_symbol[&quot;icon-rotate&quot;]),&quot;icon-padding&quot;:new pi(At.layout_symbol[&quot;icon-padding&quot;]),&quot;icon-keep-upright&quot;:new pi(At.layout_symbol[&quot;icon-keep-upright&quot;]),&quot;icon-offset&quot;:new di(At.layout_symbol[&quot;icon-offset&quot;]),&quot;icon-anchor&quot;:new di(At.layout_symbol[&quot;icon-anchor&quot;]),&quot;icon-pitch-alignment&quot;:new pi(At.layout_symbol[&quot;icon-pitch-alignment&quot;]),&quot;text-pitch-alignment&quot;:new pi(At.layout_symbol[&quot;text-pitch-alignment&quot;]),&quot;text-rotation-alignment&quot;:new pi(At.layout_symbol[&quot;text-rotation-alignment&quot;]),&quot;text-field&quot;:new di(At.layout_symbol[&quot;text-field&quot;]),&quot;text-font&quot;:new di(At.layout_symbol[&quot;text-font&quot;]),&quot;text-size&quot;:new di(At.layout_symbol[&quot;text-size&quot;]),&quot;text-max-width&quot;:new di(At.layout_symbol[&quot;text-max-width&quot;]),&quot;text-line-height&quot;:new pi(At.layout_symbol[&quot;text-line-height&quot;]),&quot;text-letter-spacing&quot;:new di(At.layout_symbol[&quot;text-letter-spacing&quot;]),&quot;text-justify&quot;:new di(At.layout_symbol[&quot;text-justify&quot;]),&quot;text-radial-offset&quot;:new di(At.layout_symbol[&quot;text-radial-offset&quot;]),&quot;text-variable-anchor&quot;:new pi(At.layout_symbol[&quot;text-variable-anchor&quot;]),&quot;text-anchor&quot;:new di(At.layout_symbol[&quot;text-anchor&quot;]),&quot;text-max-angle&quot;:new pi(At.layout_symbol[&quot;text-max-angle&quot;]),&quot;text-writing-mode&quot;:new pi(At.layout_symbol[&quot;text-writing-mode&quot;]),&quot;text-rotate&quot;:new di(At.layout_symbol[&quot;text-rotate&quot;]),&quot;text-padding&quot;:new pi(At.layout_symbol[&quot;text-padding&quot;]),&quot;text-keep-upright&quot;:new pi(At.layout_symbol[&quot;text-keep-upright&quot;]),&quot;text-transform&quot;:new di(At.layout_symbol[&quot;text-transform&quot;]),&quot;text-offset&quot;:new di(At.layout_symbol[&quot;text-offset&quot;]),&quot;text-allow-overlap&quot;:new pi(At.layout_symbol[&quot;text-allow-overlap&quot;]),&quot;text-ignore-placement&quot;:new pi(At.layout_symbol[&quot;text-ignore-placement&quot;]),&quot;text-optional&quot;:new pi(At.layout_symbol[&quot;text-optional&quot;])}),pc={paint:new yi({&quot;icon-opacity&quot;:new di(At.paint_symbol[&quot;icon-opacity&quot;]),&quot;icon-color&quot;:new di(At.paint_symbol[&quot;icon-color&quot;]),&quot;icon-halo-color&quot;:new di(At.paint_symbol[&quot;icon-halo-color&quot;]),&quot;icon-halo-width&quot;:new di(At.paint_symbol[&quot;icon-halo-width&quot;]),&quot;icon-halo-blur&quot;:new di(At.paint_symbol[&quot;icon-halo-blur&quot;]),&quot;icon-translate&quot;:new pi(At.paint_symbol[&quot;icon-translate&quot;]),&quot;icon-translate-anchor&quot;:new pi(At.paint_symbol[&quot;icon-translate-anchor&quot;]),&quot;text-opacity&quot;:new di(At.paint_symbol[&quot;text-opacity&quot;]),&quot;text-color&quot;:new di(At.paint_symbol[&quot;text-color&quot;],{runtimeType:Bt,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),&quot;text-halo-color&quot;:new di(At.paint_symbol[&quot;text-halo-color&quot;]),&quot;text-halo-width&quot;:new di(At.paint_symbol[&quot;text-halo-width&quot;]),&quot;text-halo-blur&quot;:new di(At.paint_symbol[&quot;text-halo-blur&quot;]),&quot;text-translate&quot;:new pi(At.paint_symbol[&quot;text-translate&quot;]),&quot;text-translate-anchor&quot;:new pi(At.paint_symbol[&quot;text-translate-anchor&quot;])}),layout:hc},dc=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Ot,this.defaultValue=t};dc.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&amp;&amp;e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&amp;&amp;t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},dc.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},dc.prototype.outputDefined=function(){return!1},dc.prototype.serialize=function(){return null},Dn(&quot;FormatSectionOverride&quot;,dc,{omit:[&quot;defaultValue&quot;]});var gc=function(t){function e(e){t.call(this,e,pc)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.recalculate=function(e,r){if(t.prototype.recalculate.call(this,e,r),&quot;auto&quot;===this.layout.get(&quot;icon-rotation-alignment&quot;)&amp;&amp;(this.layout._values[&quot;icon-rotation-alignment&quot;]=&quot;point&quot;!==this.layout.get(&quot;symbol-placement&quot;)?&quot;map&quot;:&quot;viewport&quot;),&quot;auto&quot;===this.layout.get(&quot;text-rotation-alignment&quot;)&amp;&amp;(this.layout._values[&quot;text-rotation-alignment&quot;]=&quot;point&quot;!==this.layout.get(&quot;symbol-placement&quot;)?&quot;map&quot;:&quot;viewport&quot;),&quot;auto&quot;===this.layout.get(&quot;text-pitch-alignment&quot;)&amp;&amp;(this.layout._values[&quot;text-pitch-alignment&quot;]=this.layout.get(&quot;text-rotation-alignment&quot;)),&quot;auto&quot;===this.layout.get(&quot;icon-pitch-alignment&quot;)&amp;&amp;(this.layout._values[&quot;icon-pitch-alignment&quot;]=this.layout.get(&quot;icon-rotation-alignment&quot;)),&quot;point&quot;===this.layout.get(&quot;symbol-placement&quot;)){var n=this.layout.get(&quot;text-writing-mode&quot;);if(n){for(var i=[],a=0,o=n;a&lt;o.length;a+=1){var s=o[a];i.indexOf(s)&lt;0&amp;&amp;i.push(s)}this.layout._values[&quot;text-writing-mode&quot;]=i}else this.layout._values[&quot;text-writing-mode&quot;]=[&quot;horizontal&quot;]}this._setPaintOverrides()},e.prototype.getValueAndResolveTokens=function(t,e,r,n){var i=this.layout.get(t).evaluate(e,{},r,n),a=this._unevaluatedLayout._values[t];return a.isDataDriven()||Vr(a.value)||!i?i:function(t,e){return e.replace(/{([^{}]+)}/g,(function(e,r){return r in t?String(t[r]):&quot;&quot;}))}(e.properties,i)},e.prototype.createBucket=function(t){return new fc(t)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype._setPaintOverrides=function(){for(var t=0,r=pc.paint.overridableProperties;t&lt;r.length;t+=1){var n=r[t];if(e.hasPaintOverride(this.layout,n)){var i,a=this.paint.get(n),o=new dc(a),s=new Ur(o,a.property.specification);i=&quot;constant&quot;===a.value.kind||&quot;source&quot;===a.value.kind?new Hr(&quot;source&quot;,s):new Gr(&quot;composite&quot;,s,a.value.zoomStops,a.value._interpolationType),this.paint._values[n]=new fi(a.property,i,a.parameters)}}},e.prototype._handleOverridablePaintPropertyUpdate=function(t,r,n){return!(!this.layout||r.isDataDriven()||n.isDataDriven())&amp;&amp;e.hasPaintOverride(this.layout,t)},e.hasPaintOverride=function(t,e){var r=t.get(&quot;text-field&quot;),n=pc.paint.properties[e],i=!1,a=function(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(n.overrides&amp;&amp;n.overrides.hasOverride(r[e]))return void(i=!0)};if(&quot;constant&quot;===r.value.kind&amp;&amp;r.value.value instanceof te)a(r.value.value.sections);else if(&quot;source&quot;===r.value.kind){var o=function(t){i||(t instanceof oe&amp;&amp;ie(t.value)===Vt?a(t.value.sections):t instanceof ue?a(t.sections):t.eachChild(o))},s=r.value;s._styleExpression&amp;&amp;o(s._styleExpression.expression)}return i},e}(xi),mc={paint:new yi({&quot;background-color&quot;:new pi(At.paint_background[&quot;background-color&quot;]),&quot;background-pattern&quot;:new mi(At.paint_background[&quot;background-pattern&quot;]),&quot;background-opacity&quot;:new pi(At.paint_background[&quot;background-opacity&quot;])})},vc=function(t){function e(e){t.call(this,e,mc)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(xi),yc={paint:new yi({&quot;raster-opacity&quot;:new pi(At.paint_raster[&quot;raster-opacity&quot;]),&quot;raster-hue-rotate&quot;:new pi(At.paint_raster[&quot;raster-hue-rotate&quot;]),&quot;raster-brightness-min&quot;:new pi(At.paint_raster[&quot;raster-brightness-min&quot;]),&quot;raster-brightness-max&quot;:new pi(At.paint_raster[&quot;raster-brightness-max&quot;]),&quot;raster-saturation&quot;:new pi(At.paint_raster[&quot;raster-saturation&quot;]),&quot;raster-contrast&quot;:new pi(At.paint_raster[&quot;raster-contrast&quot;]),&quot;raster-resampling&quot;:new pi(At.paint_raster[&quot;raster-resampling&quot;]),&quot;raster-fade-duration&quot;:new pi(At.paint_raster[&quot;raster-fade-duration&quot;])})},xc=function(t){function e(e){t.call(this,e,yc)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(xi),bc=function(t){function e(e){t.call(this,e,{}),this.implementation=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.is3D=function(){return&quot;3d&quot;===this.implementation.renderingMode},e.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},e.prototype.recalculate=function(){},e.prototype.updateTransitions=function(){},e.prototype.hasTransition=function(){},e.prototype.serialize=function(){},e.prototype.onAdd=function(t){this.implementation.onAdd&amp;&amp;this.implementation.onAdd(t,t.painter.context.gl)},e.prototype.onRemove=function(t){this.implementation.onRemove&amp;&amp;this.implementation.onRemove(t,t.painter.context.gl)},e}(xi),_c={circle:oo,heatmap:vo,hillshade:xo,fill:as,&quot;fill-extrusion&quot;:ws,line:zs,symbol:gc,background:vc,raster:xc},wc=self.HTMLImageElement,Tc=self.HTMLCanvasElement,kc=self.HTMLVideoElement,Mc=self.ImageData,Ac=self.ImageBitmap,Sc=function(t,e,r,n){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this.update(e,n)};Sc.prototype.update=function(t,e,r){var n=t.width,i=t.height,a=!(this.size&amp;&amp;this.size[0]===n&amp;&amp;this.size[1]===i||r),o=this.context,s=o.gl;if(this.useMipmap=Boolean(e&amp;&amp;e.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1),o.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&amp;&amp;(!e||!1!==e.premultiply)),a)this.size=[n,i],t instanceof wc||t instanceof Tc||t instanceof kc||t instanceof Mc||Ac&amp;&amp;t instanceof Ac?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,t):s.texImage2D(s.TEXTURE_2D,0,this.format,n,i,0,this.format,s.UNSIGNED_BYTE,t.data);else{var l=r||{x:0,y:0},c=l.x,u=l.y;t instanceof wc||t instanceof Tc||t instanceof kc||t instanceof Mc||Ac&amp;&amp;t instanceof Ac?s.texSubImage2D(s.TEXTURE_2D,0,c,u,s.RGBA,s.UNSIGNED_BYTE,t):s.texSubImage2D(s.TEXTURE_2D,0,c,u,n,i,s.RGBA,s.UNSIGNED_BYTE,t.data)}this.useMipmap&amp;&amp;this.isSizePowerOfTwo()&amp;&amp;s.generateMipmap(s.TEXTURE_2D)},Sc.prototype.bind=function(t,e,r){var n=this.context.gl;n.bindTexture(n.TEXTURE_2D,this.texture),r!==n.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(r=n.LINEAR),t!==this.filter&amp;&amp;(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,r||t),this.filter=t),e!==this.wrap&amp;&amp;(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)},Sc.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&amp;&amp;Math.log(this.size[0])/Math.LN2%1==0},Sc.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var Ec=function(t){var e=this;this._callback=t,this._triggered=!1,&quot;undefined&quot;!=typeof MessageChannel&amp;&amp;(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){e._triggered=!1,e._callback()})};Ec.prototype.trigger=function(){var t=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((function(){t._triggered=!1,t._callback()}),0))},Ec.prototype.remove=function(){delete this._channel,this._callback=function(){}};var Cc=function(t,e,r){this.target=t,this.parent=e,this.mapId=r,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},g([&quot;receive&quot;,&quot;process&quot;],this),this.invoker=new Ec(this.process),this.target.addEventListener(&quot;message&quot;,this.receive,!1),this.globalScope=k()?t:self};function Lc(t,e,r){var n=2*Math.PI*6378137/256/Math.pow(2,r);return[t*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}Cc.prototype.send=function(t,e,r,n,i){var a=this;void 0===i&amp;&amp;(i=!1);var o=Math.round(1e18*Math.random()).toString(36).substring(0,10);r&amp;&amp;(this.callbacks[o]=r);var s=S(this.globalScope)?void 0:[];return this.target.postMessage({id:o,type:t,hasCallback:!!r,targetMapId:n,mustQueue:i,sourceMapId:this.mapId,data:Nn(e,s)},s),{cancel:function(){r&amp;&amp;delete a.callbacks[o],a.target.postMessage({id:o,type:&quot;&lt;cancel&gt;&quot;,targetMapId:n,sourceMapId:a.mapId})}}},Cc.prototype.receive=function(t){var e=t.data,r=e.id;if(r&amp;&amp;(!e.targetMapId||this.mapId===e.targetMapId))if(&quot;&lt;cancel&gt;&quot;===e.type){delete this.tasks[r];var n=this.cancelCallbacks[r];delete this.cancelCallbacks[r],n&amp;&amp;n()}else k()||e.mustQueue?(this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger()):this.processTask(r,e)},Cc.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&amp;&amp;this.invoker.trigger(),e&amp;&amp;this.processTask(t,e)}},Cc.prototype.processTask=function(t,e){var r=this;if(&quot;&lt;response&gt;&quot;===e.type){var n=this.callbacks[t];delete this.callbacks[t],n&amp;&amp;(e.error?n(jn(e.error)):n(null,jn(e.data)))}else{var i=!1,a=S(this.globalScope)?void 0:[],o=e.hasCallback?function(e,n){i=!0,delete r.cancelCallbacks[t],r.target.postMessage({id:t,type:&quot;&lt;response&gt;&quot;,sourceMapId:r.mapId,error:e?Nn(e):null,data:Nn(n,a)},a)}:function(t){i=!0},s=null,l=jn(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,l,o);else if(this.parent.getWorkerSource){var c=e.type.split(&quot;.&quot;);s=this.parent.getWorkerSource(e.sourceMapId,c[0],l.source)[c[1]](l,o)}else o(new Error(&quot;Could not find function &quot;+e.type));!i&amp;&amp;s&amp;&amp;s.cancel&amp;&amp;(this.cancelCallbacks[t]=s.cancel)}},Cc.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener(&quot;message&quot;,this.receive,!1)};var Ic=function(t,e){t&amp;&amp;(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};Ic.prototype.setNorthEast=function(t){return this._ne=t instanceof Pc?new Pc(t.lng,t.lat):Pc.convert(t),this},Ic.prototype.setSouthWest=function(t){return this._sw=t instanceof Pc?new Pc(t.lng,t.lat):Pc.convert(t),this},Ic.prototype.extend=function(t){var e,r,n=this._sw,i=this._ne;if(t instanceof Pc)e=t,r=t;else{if(!(t instanceof Ic))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(Ic.convert(t)):this.extend(Pc.convert(t)):this;if(r=t._ne,!(e=t._sw)||!r)return this}return n||i?(n.lng=Math.min(e.lng,n.lng),n.lat=Math.min(e.lat,n.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this._sw=new Pc(e.lng,e.lat),this._ne=new Pc(r.lng,r.lat)),this},Ic.prototype.getCenter=function(){return new Pc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Ic.prototype.getSouthWest=function(){return this._sw},Ic.prototype.getNorthEast=function(){return this._ne},Ic.prototype.getNorthWest=function(){return new Pc(this.getWest(),this.getNorth())},Ic.prototype.getSouthEast=function(){return new Pc(this.getEast(),this.getSouth())},Ic.prototype.getWest=function(){return this._sw.lng},Ic.prototype.getSouth=function(){return this._sw.lat},Ic.prototype.getEast=function(){return this._ne.lng},Ic.prototype.getNorth=function(){return this._ne.lat},Ic.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Ic.prototype.toString=function(){return&quot;LngLatBounds(&quot;+this._sw.toString()+&quot;, &quot;+this._ne.toString()+&quot;)&quot;},Ic.prototype.isEmpty=function(){return!(this._sw&amp;&amp;this._ne)},Ic.prototype.contains=function(t){var e=Pc.convert(t),r=e.lng,n=e.lat,i=this._sw.lng&lt;=r&amp;&amp;r&lt;=this._ne.lng;return this._sw.lng&gt;this._ne.lng&amp;&amp;(i=this._sw.lng&gt;=r&amp;&amp;r&gt;=this._ne.lng),this._sw.lat&lt;=n&amp;&amp;n&lt;=this._ne.lat&amp;&amp;i},Ic.convert=function(t){return!t||t instanceof Ic?t:new Ic(t)};var Pc=function(t,e){if(isNaN(t)||isNaN(e))throw new Error(&quot;Invalid LngLat object: (&quot;+t+&quot;, &quot;+e+&quot;)&quot;);if(this.lng=+t,this.lat=+e,this.lat&gt;90||this.lat&lt;-90)throw new Error(&quot;Invalid LngLat latitude value: must be between -90 and 90&quot;)};Pc.prototype.wrap=function(){return new Pc(c(this.lng,-180,180),this.lat)},Pc.prototype.toArray=function(){return[this.lng,this.lat]},Pc.prototype.toString=function(){return&quot;LngLat(&quot;+this.lng+&quot;, &quot;+this.lat+&quot;)&quot;},Pc.prototype.distanceTo=function(t){var e=Math.PI/180,r=this.lat*e,n=t.lat*e,i=Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos((t.lng-this.lng)*e);return 6371008.8*Math.acos(Math.min(i,1))},Pc.prototype.toBounds=function(t){void 0===t&amp;&amp;(t=0);var e=360*t/40075017,r=e/Math.cos(Math.PI/180*this.lat);return new Ic(new Pc(this.lng-r,this.lat-e),new Pc(this.lng+r,this.lat+e))},Pc.convert=function(t){if(t instanceof Pc)return t;if(Array.isArray(t)&amp;&amp;(2===t.length||3===t.length))return new Pc(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;null!==t)return new Pc(Number(&quot;lng&quot;in t?t.lng:t.lon),Number(t.lat));throw new Error(&quot;`LngLatLike` argument must be specified as a LngLat instance, an object {lng: &lt;lng&gt;, lat: &lt;lat&gt;}, an object {lon: &lt;lng&gt;, lat: &lt;lat&gt;}, or an array of [&lt;lng&gt;, &lt;lat&gt;]&quot;)};var zc=2*Math.PI*6371008.8;function Oc(t){return zc*Math.cos(t*Math.PI/180)}function Dc(t){return(180+t)/360}function Rc(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Fc(t,e){return t/Oc(e)}function Bc(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}var Nc=function(t,e,r){void 0===r&amp;&amp;(r=0),this.x=+t,this.y=+e,this.z=+r};Nc.fromLngLat=function(t,e){void 0===e&amp;&amp;(e=0);var r=Pc.convert(t);return new Nc(Dc(r.lng),Rc(r.lat),Fc(e,r.lat))},Nc.prototype.toLngLat=function(){return new Pc(360*this.x-180,Bc(this.y))},Nc.prototype.toAltitude=function(){return this.z*Oc(Bc(this.y))},Nc.prototype.meterInMercatorCoordinateUnits=function(){return 1/zc*(t=Bc(this.y),1/Math.cos(t*Math.PI/180));var t};var jc=function(t,e,r){this.z=t,this.x=e,this.y=r,this.key=qc(0,t,t,e,r)};jc.prototype.equals=function(t){return this.z===t.z&amp;&amp;this.x===t.x&amp;&amp;this.y===t.y},jc.prototype.url=function(t,e){var r,n,i,a,o,s=(n=this.y,i=this.z,a=Lc(256*(r=this.x),256*(n=Math.pow(2,i)-n-1),i),o=Lc(256*(r+1),256*(n+1),i),a[0]+&quot;,&quot;+a[1]+&quot;,&quot;+o[0]+&quot;,&quot;+o[1]),l=function(t,e,r){for(var n,i=&quot;&quot;,a=t;a&gt;0;a--)i+=(e&amp;(n=1&lt;&lt;a-1)?1:0)+(r&amp;n?2:0);return i}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(&quot;{prefix}&quot;,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(&quot;{z}&quot;,String(this.z)).replace(&quot;{x}&quot;,String(this.x)).replace(&quot;{y}&quot;,String(&quot;tms&quot;===e?Math.pow(2,this.z)-this.y-1:this.y)).replace(&quot;{quadkey}&quot;,l).replace(&quot;{bbox-epsg-3857}&quot;,s)},jc.prototype.getTilePoint=function(t){var e=Math.pow(2,this.z);return new i(8192*(t.x*e-this.x),8192*(t.y*e-this.y))},jc.prototype.toString=function(){return this.z+&quot;/&quot;+this.x+&quot;/&quot;+this.y};var Uc=function(t,e){this.wrap=t,this.canonical=e,this.key=qc(t,e.z,e.z,e.x,e.y)},Vc=function(t,e,r,n,i){this.overscaledZ=t,this.wrap=e,this.canonical=new jc(r,+n,+i),this.key=qc(e,t,r,n,i)};function qc(t,e,r,n,i){(t*=2)&lt;0&amp;&amp;(t=-1*t-1);var a=1&lt;&lt;r;return(a*a*t+a*i+n).toString(36)+r.toString(36)+e.toString(36)}Vc.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&amp;&amp;this.wrap===t.wrap&amp;&amp;this.canonical.equals(t.canonical)},Vc.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t&gt;this.canonical.z?new Vc(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Vc(t,this.wrap,t,this.canonical.x&gt;&gt;e,this.canonical.y&gt;&gt;e)},Vc.prototype.calculateScaledKey=function(t,e){var r=this.canonical.z-t;return t&gt;this.canonical.z?qc(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):qc(this.wrap*+e,t,t,this.canonical.x&gt;&gt;r,this.canonical.y&gt;&gt;r)},Vc.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ&lt;this.overscaledZ&amp;&amp;t.canonical.x===this.canonical.x&gt;&gt;e&amp;&amp;t.canonical.y===this.canonical.y&gt;&gt;e},Vc.prototype.children=function(t){if(this.overscaledZ&gt;=t)return[new Vc(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,r=2*this.canonical.x,n=2*this.canonical.y;return[new Vc(e,this.wrap,e,r,n),new Vc(e,this.wrap,e,r+1,n),new Vc(e,this.wrap,e,r,n+1),new Vc(e,this.wrap,e,r+1,n+1)]},Vc.prototype.isLessThan=function(t){return this.wrap&lt;t.wrap||!(this.wrap&gt;t.wrap)&amp;&amp;(this.overscaledZ&lt;t.overscaledZ||!(this.overscaledZ&gt;t.overscaledZ)&amp;&amp;(this.canonical.x&lt;t.canonical.x||!(this.canonical.x&gt;t.canonical.x)&amp;&amp;this.canonical.y&lt;t.canonical.y))},Vc.prototype.wrapped=function(){return new Vc(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},Vc.prototype.unwrapTo=function(t){return new Vc(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},Vc.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},Vc.prototype.toUnwrapped=function(){return new Uc(this.wrap,this.canonical)},Vc.prototype.toString=function(){return this.overscaledZ+&quot;/&quot;+this.canonical.x+&quot;/&quot;+this.canonical.y},Vc.prototype.getTilePoint=function(t){return this.canonical.getTilePoint(new Nc(t.x-this.wrap,t.y))},Dn(&quot;CanonicalTileID&quot;,jc),Dn(&quot;OverscaledTileID&quot;,Vc,{omit:[&quot;posMatrix&quot;]});var Hc=function(t,e,r){if(this.uid=t,e.height!==e.width)throw new RangeError(&quot;DEM tiles must be square&quot;);if(r&amp;&amp;&quot;mapbox&quot;!==r&amp;&amp;&quot;terrarium&quot;!==r)return _('&quot;'+r+'&quot; is not a valid encoding type. Valid types include &quot;mapbox&quot; and &quot;terrarium&quot;.');this.stride=e.height;var n=this.dim=e.height-2;this.data=new Uint32Array(e.data.buffer),this.encoding=r||&quot;mapbox&quot;;for(var i=0;i&lt;n;i++)this.data[this._idx(-1,i)]=this.data[this._idx(0,i)],this.data[this._idx(n,i)]=this.data[this._idx(n-1,i)],this.data[this._idx(i,-1)]=this.data[this._idx(i,0)],this.data[this._idx(i,n)]=this.data[this._idx(i,n-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(n,-1)]=this.data[this._idx(n-1,0)],this.data[this._idx(-1,n)]=this.data[this._idx(0,n-1)],this.data[this._idx(n,n)]=this.data[this._idx(n-1,n-1)]};Hc.prototype.get=function(t,e){var r=new Uint8Array(this.data.buffer),n=4*this._idx(t,e);return(&quot;terrarium&quot;===this.encoding?this._unpackTerrarium:this._unpackMapbox)(r[n],r[n+1],r[n+2])},Hc.prototype.getUnpackVector=function(){return&quot;terrarium&quot;===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},Hc.prototype._idx=function(t,e){if(t&lt;-1||t&gt;=this.dim+1||e&lt;-1||e&gt;=this.dim+1)throw new RangeError(&quot;out of range source coordinates for DEM data&quot;);return(e+1)*this.stride+(t+1)},Hc.prototype._unpackMapbox=function(t,e,r){return(256*t*256+256*e+r)/10-1e4},Hc.prototype._unpackTerrarium=function(t,e,r){return 256*t+e+r/256-32768},Hc.prototype.getPixels=function(){return new po({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Hc.prototype.backfillBorder=function(t,e,r){if(this.dim!==t.dim)throw new Error(&quot;dem dimension mismatch&quot;);var n=e*this.dim,i=e*this.dim+this.dim,a=r*this.dim,o=r*this.dim+this.dim;switch(e){case-1:n=i-1;break;case 1:i=n+1}switch(r){case-1:a=o-1;break;case 1:o=a+1}for(var s=-e*this.dim,l=-r*this.dim,c=a;c&lt;o;c++)for(var u=n;u&lt;i;u++)this.data[this._idx(u,c)]=t.data[this._idx(u+s,c+l)]},Dn(&quot;DEMData&quot;,Hc);var Gc=function(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e&lt;t.length;e++){var r=t[e];this._stringToNumber[r]=e,this._numberToString[e]=r}};Gc.prototype.encode=function(t){return this._stringToNumber[t]},Gc.prototype.decode=function(t){return this._numberToString[t]};var Yc=function(t,e,r,n,i){this.type=&quot;Feature&quot;,this._vectorTileFeature=t,t._z=e,t._x=r,t._y=n,this.properties=t.properties,this.id=i},Wc={geometry:{configurable:!0}};Wc.geometry.get=function(){return void 0===this._geometry&amp;&amp;(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},Wc.geometry.set=function(t){this._geometry=t},Yc.prototype.toJSON=function(){var t={geometry:this.geometry};for(var e in this)&quot;_geometry&quot;!==e&amp;&amp;&quot;_vectorTileFeature&quot;!==e&amp;&amp;(t[e]=this[e]);return t},Object.defineProperties(Yc.prototype,Wc);var Xc=function(){this.state={},this.stateChanges={},this.deletedStates={}};Xc.prototype.updateState=function(t,e,r){var n=String(e);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][n]=this.stateChanges[t][n]||{},u(this.stateChanges[t][n],r),null===this.deletedStates[t])for(var i in this.deletedStates[t]={},this.state[t])i!==n&amp;&amp;(this.deletedStates[t][i]=null);else if(this.deletedStates[t]&amp;&amp;null===this.deletedStates[t][n])for(var a in this.deletedStates[t][n]={},this.state[t][n])r[a]||(this.deletedStates[t][n][a]=null);else for(var o in r)this.deletedStates[t]&amp;&amp;this.deletedStates[t][n]&amp;&amp;null===this.deletedStates[t][n][o]&amp;&amp;delete this.deletedStates[t][n][o]},Xc.prototype.removeFeatureState=function(t,e,r){if(null!==this.deletedStates[t]){var n=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},r&amp;&amp;void 0!==e)null!==this.deletedStates[t][n]&amp;&amp;(this.deletedStates[t][n]=this.deletedStates[t][n]||{},this.deletedStates[t][n][r]=null);else if(void 0!==e)if(this.stateChanges[t]&amp;&amp;this.stateChanges[t][n])for(r in this.deletedStates[t][n]={},this.stateChanges[t][n])this.deletedStates[t][n][r]=null;else this.deletedStates[t][n]=null;else this.deletedStates[t]=null}},Xc.prototype.getState=function(t,e){var r=String(e),n=u({},(this.state[t]||{})[r],(this.stateChanges[t]||{})[r]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){var i=this.deletedStates[t][e];if(null===i)return{};for(var a in i)delete n[a]}return n},Xc.prototype.initializeTileState=function(t,e){t.setFeatureState(this.state,e)},Xc.prototype.coalesceChanges=function(t,e){var r={};for(var n in this.stateChanges){this.state[n]=this.state[n]||{};var i={};for(var a in this.stateChanges[n])this.state[n][a]||(this.state[n][a]={}),u(this.state[n][a],this.stateChanges[n][a]),i[a]=this.state[n][a];r[n]=i}for(var o in this.deletedStates){this.state[o]=this.state[o]||{};var s={};if(null===this.deletedStates[o])for(var l in this.state[o])s[l]={},this.state[o][l]={};else for(var c in this.deletedStates[o]){if(null===this.deletedStates[o][c])this.state[o][c]={};else for(var f=0,h=Object.keys(this.deletedStates[o][c]);f&lt;h.length;f+=1)delete this.state[o][c][h[f]];s[c]=this.state[o][c]}r[o]=r[o]||{},u(r[o],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(r).length)for(var p in t)t[p].setFeatureState(r,e)};var Zc=function(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new Ln(8192,16,0),this.grid3D=new Ln(8192,16,0),this.featureIndexArray=new ra,this.promoteId=e};function Jc(t,e,r,n,i){return v(t,(function(t,a){var o=e instanceof hi?e.get(a):null;return o&amp;&amp;o.evaluate?o.evaluate(r,n,i):o}))}function Kc(t){for(var e=1/0,r=1/0,n=-1/0,i=-1/0,a=0,o=t;a&lt;o.length;a+=1){var s=o[a];e=Math.min(e,s.x),r=Math.min(r,s.y),n=Math.max(n,s.x),i=Math.max(i,s.y)}return{minX:e,minY:r,maxX:n,maxY:i}}function Qc(t,e){return e-t}Zc.prototype.insert=function(t,e,r,n,i,a){var o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,n,i);for(var s=a?this.grid3D:this.grid,l=0;l&lt;e.length;l++){for(var c=e[l],u=[1/0,1/0,-1/0,-1/0],f=0;f&lt;c.length;f++){var h=c[f];u[0]=Math.min(u[0],h.x),u[1]=Math.min(u[1],h.y),u[2]=Math.max(u[2],h.x),u[3]=Math.max(u[3],h.y)}u[0]&lt;8192&amp;&amp;u[1]&lt;8192&amp;&amp;u[2]&gt;=0&amp;&amp;u[3]&gt;=0&amp;&amp;s.insert(o,u[0],u[1],u[2],u[3])}},Zc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new gs.VectorTile(new Hs(this.rawTileData)).layers,this.sourceLayerCoder=new Gc(this.vtLayers?Object.keys(this.vtLayers).sort():[&quot;_geojsonTileLayer&quot;])),this.vtLayers},Zc.prototype.query=function(t,e,r,n){var a=this;this.loadVTLayers();for(var o=t.params||{},s=8192/t.tileSize/t.scale,l=rn(o.filter),c=t.queryGeometry,u=t.queryPadding*s,f=Kc(c),h=this.grid.query(f.minX-u,f.minY-u,f.maxX+u,f.maxY+u),p=Kc(t.cameraQueryGeometry),d=0,g=this.grid3D.query(p.minX-u,p.minY-u,p.maxX+u,p.maxY+u,(function(e,r,n,a){return function(t,e,r,n,a){for(var o=0,s=t;o&lt;s.length;o+=1){var l=s[o];if(e&lt;=l.x&amp;&amp;r&lt;=l.y&amp;&amp;n&gt;=l.x&amp;&amp;a&gt;=l.y)return!0}var c=[new i(e,r),new i(e,a),new i(n,a),new i(n,r)];if(t.length&gt;2)for(var u=0,f=c;u&lt;f.length;u+=1)if(Wa(t,f[u]))return!0;for(var h=0;h&lt;t.length-1;h++)if(Xa(t[h],t[h+1],c))return!0;return!1}(t.cameraQueryGeometry,e-u,r-u,n+u,a+u)}));d&lt;g.length;d+=1)h.push(g[d]);h.sort(Qc);for(var m,v={},y=function(i){var u=h[i];if(u!==m){m=u;var f=a.featureIndexArray.get(u),p=null;a.loadMatchingFeature(v,f.bucketIndex,f.sourceLayerIndex,f.featureIndex,l,o.layers,o.availableImages,e,r,n,(function(e,r,n){return p||(p=Da(e)),r.queryIntersectsFeature(c,e,n,p,a.z,t.transform,s,t.pixelPosMatrix)}))}},x=0;x&lt;h.length;x++)y(x);return v},Zc.prototype.loadMatchingFeature=function(t,e,r,n,i,a,o,s,l,c,u){var f=this.bucketLayerIDs[e];if(!a||function(t,e){for(var r=0;r&lt;t.length;r++)if(e.indexOf(t[r])&gt;=0)return!0;return!1}(a,f)){var h=this.sourceLayerCoder.decode(r),p=this.vtLayers[h].feature(n);if(i.filter(new ii(this.tileID.overscaledZ),p))for(var d=this.getId(p,h),g=0;g&lt;f.length;g++){var m=f[g];if(!(a&amp;&amp;a.indexOf(m)&lt;0)){var v=s[m];if(v){var y={};void 0!==d&amp;&amp;c&amp;&amp;(y=c.getState(v.sourceLayer||&quot;_geojsonTileLayer&quot;,d));var x=l[m];x.paint=Jc(x.paint,v.paint,p,y,o),x.layout=Jc(x.layout,v.layout,p,y,o);var b=!u||u(p,v,y);if(b){var _=new Yc(p,this.z,this.x,this.y,d);_.layer=x;var w=t[m];void 0===w&amp;&amp;(w=t[m]=[]),w.push({featureIndex:n,feature:_,intersectionZ:b})}}}}}},Zc.prototype.lookupSymbolFeatures=function(t,e,r,n,i,a,o,s){var l={};this.loadVTLayers();for(var c=rn(i),u=0,f=t;u&lt;f.length;u+=1)this.loadMatchingFeature(l,r,n,f[u],c,a,o,s,e);return l},Zc.prototype.hasLayer=function(t){for(var e=0,r=this.bucketLayerIDs;e&lt;r.length;e+=1)for(var n=0,i=r[e];n&lt;i.length;n+=1)if(t===i[n])return!0;return!1},Zc.prototype.getId=function(t,e){var r=t.id;return this.promoteId&amp;&amp;&quot;boolean&quot;==typeof(r=t.properties[&quot;string&quot;==typeof this.promoteId?this.promoteId:this.promoteId[e]])&amp;&amp;(r=Number(r)),r},Dn(&quot;FeatureIndex&quot;,Zc,{omit:[&quot;rawTileData&quot;,&quot;sourceLayerCoder&quot;]});var $c=function(t,e){this.tileID=t,this.uid=h(),this.uses=0,this.tileSize=e,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state=&quot;loading&quot;};$c.prototype.registerFadeDuration=function(t){var e=t+this.timeAdded;e&lt;R.now()||this.fadeEndTime&amp;&amp;e&lt;this.fadeEndTime||(this.fadeEndTime=e)},$c.prototype.wasRequested=function(){return&quot;errored&quot;===this.state||&quot;loaded&quot;===this.state||&quot;reloading&quot;===this.state},$c.prototype.loadVectorData=function(t,e,r){if(this.hasData()&amp;&amp;this.unloadVectorData(),this.state=&quot;loaded&quot;,t){for(var n in t.featureIndex&amp;&amp;(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&amp;&amp;(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,e){var r={};if(!e)return r;for(var n=function(){var t=a[i],n=t.layerIds.map((function(t){return e.getLayer(t)})).filter(Boolean);if(0!==n.length){t.layers=n,t.stateDependentLayerIds&amp;&amp;(t.stateDependentLayers=t.stateDependentLayerIds.map((function(t){return n.filter((function(e){return e.id===t}))[0]})));for(var o=0,s=n;o&lt;s.length;o+=1)r[s[o].id]=t}},i=0,a=t;i&lt;a.length;i+=1)n();return r}(t.buckets,e.style),this.hasSymbolBuckets=!1,this.buckets){var i=this.buckets[n];if(i instanceof fc){if(this.hasSymbolBuckets=!0,!r)break;i.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(var a in this.buckets){var o=this.buckets[a];if(o instanceof fc&amp;&amp;o.hasRTLText){this.hasRTLText=!0,ni.isLoading()||ni.isLoaded()||&quot;deferred&quot;!==ei()||ri();break}}for(var s in this.queryPadding=0,this.buckets){var l=this.buckets[s];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(s).queryRadius(l))}t.imageAtlas&amp;&amp;(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&amp;&amp;(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new Xi},$c.prototype.unloadVectorData=function(){for(var t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&amp;&amp;this.imageAtlasTexture.destroy(),this.imageAtlas&amp;&amp;(this.imageAtlas=null),this.glyphAtlasTexture&amp;&amp;this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state=&quot;unloaded&quot;},$c.prototype.getBucket=function(t){return this.buckets[t.id]},$c.prototype.upload=function(t){for(var e in this.buckets){var r=this.buckets[e];r.uploadPending()&amp;&amp;r.upload(t)}var n=t.gl;this.imageAtlas&amp;&amp;!this.imageAtlas.uploaded&amp;&amp;(this.imageAtlasTexture=new Sc(t,this.imageAtlas.image,n.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&amp;&amp;(this.glyphAtlasTexture=new Sc(t,this.glyphAtlasImage,n.ALPHA),this.glyphAtlasImage=null)},$c.prototype.prepare=function(t){this.imageAtlas&amp;&amp;this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)},$c.prototype.queryRenderedFeatures=function(t,e,r,n,i,a,o,s,l,c){return this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:n,cameraQueryGeometry:i,scale:a,tileSize:this.tileSize,pixelPosMatrix:c,transform:s,params:o,queryPadding:this.queryPadding*l},t,e,r):{}},$c.prototype.querySourceFeatures=function(t,e){var r=this.latestFeatureIndex;if(r&amp;&amp;r.rawTileData){var n=r.loadVTLayers(),i=e?e.sourceLayer:&quot;&quot;,a=n._geojsonTileLayer||n[i];if(a)for(var o=rn(e&amp;&amp;e.filter),s=this.tileID.canonical,l=s.z,c=s.x,u=s.y,f={z:l,x:c,y:u},h=0;h&lt;a.length;h++){var p=a.feature(h);if(o.filter(new ii(this.tileID.overscaledZ),p)){var d=r.getId(p,i),g=new Yc(p,l,c,u,d);g.tile=f,t.push(g)}}}},$c.prototype.hasData=function(){return&quot;loaded&quot;===this.state||&quot;reloading&quot;===this.state||&quot;expired&quot;===this.state},$c.prototype.patternsLoaded=function(){return this.imageAtlas&amp;&amp;!!Object.keys(this.imageAtlas.patternPositions).length},$c.prototype.setExpiryData=function(t){var e=this.expirationTime;if(t.cacheControl){var r=M(t.cacheControl);r[&quot;max-age&quot;]&amp;&amp;(this.expirationTime=Date.now()+1e3*r[&quot;max-age&quot;])}else t.expires&amp;&amp;(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){var n=Date.now(),i=!1;if(this.expirationTime&gt;n)i=!1;else if(e)if(this.expirationTime&lt;e)i=!0;else{var a=this.expirationTime-e;a?this.expirationTime=n+Math.max(a,3e4):i=!0}else i=!0;i?(this.expiredRequestCount++,this.state=&quot;expired&quot;):this.expiredRequestCount=0}},$c.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1&lt;&lt;Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},$c.prototype.setFeatureState=function(t,e){if(this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData&amp;&amp;0!==Object.keys(t).length){var r=this.latestFeatureIndex.loadVTLayers();for(var n in this.buckets)if(e.style.hasLayer(n)){var i=this.buckets[n],a=i.layers[0].sourceLayer||&quot;_geojsonTileLayer&quot;,o=r[a],s=t[a];if(o&amp;&amp;s&amp;&amp;0!==Object.keys(s).length){i.update(s,o,this.imageAtlas&amp;&amp;this.imageAtlas.patternPositions||{});var l=e&amp;&amp;e.style&amp;&amp;e.style.getLayer(n);l&amp;&amp;(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(i)))}}}},$c.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},$c.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil&lt;R.now()},$c.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},$c.prototype.setHoldDuration=function(t){this.symbolFadeHoldUntil=R.now()+t},$c.prototype.setDependencies=function(t,e){for(var r={},n=0,i=e;n&lt;i.length;n+=1)r[i[n]]=!0;this.dependencies[t]=r},$c.prototype.hasDependency=function(t,e){for(var r=0,n=t;r&lt;n.length;r+=1){var i=this.dependencies[n[r]];if(i)for(var a=0,o=e;a&lt;o.length;a+=1)if(i[o[a]])return!0}return!1};var tu=self.performance,eu=function(t){this._marks={start:[t.url,&quot;start&quot;].join(&quot;#&quot;),end:[t.url,&quot;end&quot;].join(&quot;#&quot;),measure:t.url.toString()},tu.mark(this._marks.start)};eu.prototype.finish=function(){tu.mark(this._marks.end);var t=tu.getEntriesByName(this._marks.measure);return 0===t.length&amp;&amp;(tu.measure(this._marks.measure,this._marks.start,this._marks.end),t=tu.getEntriesByName(this._marks.measure),tu.clearMarks(this._marks.start),tu.clearMarks(this._marks.end),tu.clearMeasures(this._marks.measure)),t},t.Actor=Cc,t.AlphaImage=ho,t.CanonicalTileID=jc,t.CollisionBoxArray=Xi,t.Color=Kt,t.DEMData=Hc,t.DataConstantProperty=pi,t.DictionaryCoder=Gc,t.EXTENT=8192,t.ErrorEvent=kt,t.EvaluationParameters=ii,t.Event=Tt,t.Evented=Mt,t.FeatureIndex=Zc,t.FillBucket=rs,t.FillExtrusionBucket=xs,t.ImageAtlas=dl,t.ImagePosition=hl,t.LineBucket=Cs,t.LngLat=Pc,t.LngLatBounds=Ic,t.MercatorCoordinate=Nc,t.ONE_EM=24,t.OverscaledTileID=Vc,t.Point=i,t.Point$1=i,t.Properties=yi,t.Protobuf=Hs,t.RGBAImage=po,t.RequestManager=q,t.RequestPerformance=eu,t.ResourceType=ht,t.SegmentVector=ia,t.SourceFeatureState=Xc,t.StructArrayLayout1ui2=Hi,t.StructArrayLayout2f1f2i16=Di,t.StructArrayLayout2i4=Mi,t.StructArrayLayout3ui6=Fi,t.StructArrayLayout4i8=Ai,t.SymbolBucket=fc,t.Texture=Sc,t.Tile=$c,t.Transitionable=si,t.Uniform1f=va,t.Uniform1i=ma,t.Uniform2f=ya,t.Uniform3f=xa,t.Uniform4f=ba,t.UniformColor=_a,t.UniformMatrix4f=Ta,t.UnwrappedTileID=Uc,t.ValidationError=St,t.WritingMode=gl,t.ZoomHistory=Un,t.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},t.addDynamicAttributes=sc,t.asyncAll=function(t,e,r){if(!t.length)return r(null,[]);var n=t.length,i=new Array(t.length),a=null;t.forEach((function(t,o){e(t,(function(t,e){t&amp;&amp;(a=t),i[o]=e,0==--n&amp;&amp;r(a,i)}))}))},t.bezier=o,t.bindAll=g,t.browser=R,t.cacheEntryPossiblyAdded=function(t){++ut&gt;ot&amp;&amp;(t.getActor().send(&quot;enforceCacheSizeLimit&quot;,at),ut=0)},t.clamp=l,t.clearTileCache=function(t){var e=self.caches.delete(&quot;mapbox-tiles&quot;);t&amp;&amp;e.catch(t).then((function(){return t()}))},t.clipLine=jl,t.clone=function(t){var e=new to(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=x,t.clone$2=function(t){var e=new to(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.collisionCircleLayout=Ns,t.config=F,t.create=function(){var t=new to(16);return to!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=function(){var t=new to(9);return to!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},t.create$2=function(){var t=new to(4);return to!=Float32Array&amp;&amp;(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=qr,t.createLayout=Ti,t.createStyleLayer=function(t){return&quot;custom&quot;===t.type?new bc(t):new _c[t.type](t)},t.cross=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t},t.deepEqual=function t(e,r){if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(var n=0;n&lt;e.length;n++)if(!t(e[n],r[n]))return!1;return!0}if(&quot;object&quot;==typeof e&amp;&amp;null!==e&amp;&amp;null!==r){if(&quot;object&quot;!=typeof r)return!1;if(Object.keys(e).length!==Object.keys(r).length)return!1;for(var i in e)if(!t(e[i],r[i]))return!1;return!0}return e===r},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},t.dot$1=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},t.ease=s,t.emitValidationErrors=Cn,t.endsWith=m,t.enforceCacheSizeLimit=function(t){st(),Q&amp;&amp;Q.then((function(e){e.keys().then((function(r){for(var n=0;n&lt;r.length-t;n++)e.delete(r[n])}))}))},t.evaluateSizeForFeature=Il,t.evaluateSizeForZoom=Pl,t.evaluateVariableOffset=$l,t.evented=ti,t.extend=u,t.featureFilter=rn,t.filterObject=y,t.fromRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},t.getAnchorAlignment=Al,t.getAnchorJustification=tc,t.getArrayBuffer=yt,t.getImage=bt,t.getJSON=function(t,e){return vt(u(t,{type:&quot;json&quot;}),e)},t.getRTLTextPluginStatus=ei,t.getReferrer=mt,t.getVideo=function(t,e){var r,n,i=self.document.createElement(&quot;video&quot;);i.muted=!0,i.onloadstart=function(){e(null,i)};for(var a=0;a&lt;t.length;a++){var o=self.document.createElement(&quot;source&quot;);r=t[a],n=void 0,(n=self.document.createElement(&quot;a&quot;)).href=r,(n.protocol!==self.document.location.protocol||n.host!==self.document.location.host)&amp;&amp;(i.crossOrigin=&quot;Anonymous&quot;),o.src=t[a],i.appendChild(o)}return{cancel:function(){}}},t.identity=eo,t.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*g-f*d,M=u*m-h*d,A=u*v-p*d,S=f*m-h*g,E=f*v-p*g,C=h*v-p*m,L=y*C-x*E+b*S+_*A-w*M+T*k;return L?(t[0]=(s*C-l*E+c*S)*(L=1/L),t[1]=(i*E-n*C-a*S)*L,t[2]=(g*T-m*w+v*_)*L,t[3]=(h*w-f*T-p*_)*L,t[4]=(l*A-o*C-c*M)*L,t[5]=(r*C-i*A+a*M)*L,t[6]=(m*b-d*T-v*x)*L,t[7]=(u*T-h*b+p*x)*L,t[8]=(o*E-s*A+c*k)*L,t[9]=(n*A-r*E-a*k)*L,t[10]=(d*w-g*b+v*y)*L,t[11]=(f*b-u*w-p*y)*L,t[12]=(s*M-o*S-l*k)*L,t[13]=(r*S-n*M+i*k)*L,t[14]=(g*x-d*_-m*y)*L,t[15]=(u*_-f*x+h*y)*L,t):null},t.isChar=Vn,t.isMapboxURL=H,t.keysDifference=function(t,e){var r=[];for(var n in t)n in e||r.push(n);return r},t.makeRequest=vt,t.mapObject=v,t.mercatorXfromLng=Dc,t.mercatorYfromLat=Rc,t.mercatorZfromAltitude=Fc,t.mul=io,t.multiply=ro,t.mvt=gs,t.normalize=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;return a&gt;0&amp;&amp;(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t},t.number=Ue,t.offscreenCanvasSupported=ft,t.ortho=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t},t.parseGlyphPBF=function(t){return new Hs(t).readFields(ll,[])},t.pbf=Hs,t.performSymbolLayout=function(t,e,r,n,i,a,o){t.createArrays(),t.tilePixelRatio=8192/(512*t.overscaling),t.compareText={},t.iconsNeedLinear=!1;var s=t.layers[0].layout,l=t.layers[0]._unevaluatedLayout._values,c={};if(&quot;composite&quot;===t.textSizeData.kind){var u=t.textSizeData,f=u.maxZoom;c.compositeTextSizes=[l[&quot;text-size&quot;].possiblyEvaluate(new ii(u.minZoom),o),l[&quot;text-size&quot;].possiblyEvaluate(new ii(f),o)]}if(&quot;composite&quot;===t.iconSizeData.kind){var h=t.iconSizeData,p=h.maxZoom;c.compositeIconSizes=[l[&quot;icon-size&quot;].possiblyEvaluate(new ii(h.minZoom),o),l[&quot;icon-size&quot;].possiblyEvaluate(new ii(p),o)]}c.layoutTextSize=l[&quot;text-size&quot;].possiblyEvaluate(new ii(t.zoom+1),o),c.layoutIconSize=l[&quot;icon-size&quot;].possiblyEvaluate(new ii(t.zoom+1),o),c.textMaxSize=l[&quot;text-size&quot;].possiblyEvaluate(new ii(18));for(var d=24*s.get(&quot;text-line-height&quot;),g=&quot;map&quot;===s.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==s.get(&quot;symbol-placement&quot;),m=s.get(&quot;text-keep-upright&quot;),v=s.get(&quot;text-size&quot;),y=function(){var a=b[x],l=s.get(&quot;text-font&quot;).evaluate(a,{},o).join(&quot;,&quot;),u=v.evaluate(a,{},o),f=c.layoutTextSize.evaluate(a,{},o),h=c.layoutIconSize.evaluate(a,{},o),p={horizontal:{},vertical:void 0},y=a.text,w=[0,0];if(y){var T=y.toString(),k=24*s.get(&quot;text-letter-spacing&quot;).evaluate(a,{},o),M=function(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(n=r[e].charCodeAt(0),Vn.Arabic(n)||Vn[&quot;Arabic Supplement&quot;](n)||Vn[&quot;Arabic Extended-A&quot;](n)||Vn[&quot;Arabic Presentation Forms-A&quot;](n)||Vn[&quot;Arabic Presentation Forms-B&quot;](n))return!1;var n;return!0}(T)?k:0,A=s.get(&quot;text-anchor&quot;).evaluate(a,{},o),S=s.get(&quot;text-variable-anchor&quot;);if(!S){var E=s.get(&quot;text-radial-offset&quot;).evaluate(a,{},o);w=E?$l(A,[24*E,Ql]):s.get(&quot;text-offset&quot;).evaluate(a,{},o).map((function(t){return 24*t}))}var C=g?&quot;center&quot;:s.get(&quot;text-justify&quot;).evaluate(a,{},o),L=s.get(&quot;symbol-placement&quot;),I=&quot;point&quot;===L?24*s.get(&quot;text-max-width&quot;).evaluate(a,{},o):0,P=function(){t.allowVerticalPlacement&amp;&amp;qn(T)&amp;&amp;(p.vertical=yl(y,e,r,i,l,I,d,A,&quot;left&quot;,M,w,gl.vertical,!0,L,f,u))};if(!g&amp;&amp;S){for(var z=&quot;auto&quot;===C?S.map((function(t){return tc(t)})):[C],O=!1,D=0;D&lt;z.length;D++){var R=z[D];if(!p.horizontal[R])if(O)p.horizontal[R]=p.horizontal[0];else{var F=yl(y,e,r,i,l,I,d,&quot;center&quot;,R,M,w,gl.horizontal,!1,L,f,u);F&amp;&amp;(p.horizontal[R]=F,O=1===F.positionedLines.length)}}P()}else{&quot;auto&quot;===C&amp;&amp;(C=tc(A));var B=yl(y,e,r,i,l,I,d,A,C,M,w,gl.horizontal,!1,L,f,u);B&amp;&amp;(p.horizontal[C]=B),P(),qn(T)&amp;&amp;g&amp;&amp;m&amp;&amp;(p.vertical=yl(y,e,r,i,l,I,d,A,C,M,w,gl.vertical,!1,L,f,u))}}var N=void 0,j=!1;if(a.icon&amp;&amp;a.icon.name){var U=n[a.icon.name];U&amp;&amp;(N=function(t,e,r){var n=Al(r),i=e[0]-t.displaySize[0]*n.horizontalAlign,a=e[1]-t.displaySize[1]*n.verticalAlign;return{image:t,top:a,bottom:a+t.displaySize[1],left:i,right:i+t.displaySize[0]}}(i[a.icon.name],s.get(&quot;icon-offset&quot;).evaluate(a,{},o),s.get(&quot;icon-anchor&quot;).evaluate(a,{},o)),j=U.sdf,void 0===t.sdfIcons?t.sdfIcons=U.sdf:t.sdfIcons!==U.sdf&amp;&amp;_(&quot;Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer&quot;),(U.pixelRatio!==t.pixelRatio||0!==s.get(&quot;icon-rotate&quot;).constantOr(1))&amp;&amp;(t.iconsNeedLinear=!0))}var V=rc(p.horizontal)||p.vertical;t.iconsInText=!!V&amp;&amp;V.iconsInText,(V||N)&amp;&amp;function(t,e,r,n,i,a,o,s,l,c,u){var f=a.textMaxSize.evaluate(e,{});void 0===f&amp;&amp;(f=o);var h,p=t.layers[0].layout,d=p.get(&quot;icon-offset&quot;).evaluate(e,{},u),g=rc(r.horizontal),m=o/24,v=t.tilePixelRatio*m,y=t.tilePixelRatio*f/24,x=t.tilePixelRatio*s,b=t.tilePixelRatio*p.get(&quot;symbol-spacing&quot;),w=p.get(&quot;text-padding&quot;)*t.tilePixelRatio,T=p.get(&quot;icon-padding&quot;)*t.tilePixelRatio,k=p.get(&quot;text-max-angle&quot;)/180*Math.PI,M=&quot;map&quot;===p.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==p.get(&quot;symbol-placement&quot;),A=&quot;map&quot;===p.get(&quot;icon-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==p.get(&quot;symbol-placement&quot;),S=p.get(&quot;symbol-placement&quot;),E=b/2,C=p.get(&quot;icon-text-fit&quot;);n&amp;&amp;&quot;none&quot;!==C&amp;&amp;(t.allowVerticalPlacement&amp;&amp;r.vertical&amp;&amp;(h=El(n,r.vertical,C,p.get(&quot;icon-text-fit-padding&quot;),d,m)),g&amp;&amp;(n=El(n,g,C,p.get(&quot;icon-text-fit-padding&quot;),d,m)));var L=function(s,f){f.x&lt;0||f.x&gt;=8192||f.y&lt;0||f.y&gt;=8192||function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,w,T,k,M){var A,S,E,C,L,I=t.addToLineVertexArray(e,r),P=0,z=0,O=0,D=0,R=-1,F=-1,B={},N=ca(&quot;&quot;),j=0,U=0;if(void 0===s._unevaluatedLayout.getValue(&quot;text-radial-offset&quot;)?(j=(A=s.layout.get(&quot;text-offset&quot;).evaluate(b,{},k).map((function(t){return 24*t})))[0],U=A[1]):(j=24*s.layout.get(&quot;text-radial-offset&quot;).evaluate(b,{},k),U=Ql),t.allowVerticalPlacement&amp;&amp;n.vertical){var V=s.layout.get(&quot;text-rotate&quot;).evaluate(b,{},k)+90;C=new Yl(l,e,c,u,f,n.vertical,h,p,d,V),o&amp;&amp;(L=new Yl(l,e,c,u,f,o,m,v,d,V))}if(i){var q=s.layout.get(&quot;icon-rotate&quot;).evaluate(b,{}),H=&quot;none&quot;!==s.layout.get(&quot;icon-text-fit&quot;),G=Ul(i,q,T,H),Y=o?Ul(o,q,T,H):void 0;E=new Yl(l,e,c,u,f,i,m,v,!1,q),P=4*G.length;var W=t.iconSizeData,X=null;&quot;source&quot;===W.kind?(X=[128*s.layout.get(&quot;icon-size&quot;).evaluate(b,{})])[0]&gt;32640&amp;&amp;_(t.layerIds[0]+': Value for &quot;icon-size&quot; is &gt;= 255. Reduce your &quot;icon-size&quot;.'):&quot;composite&quot;===W.kind&amp;&amp;((X=[128*w.compositeIconSizes[0].evaluate(b,{},k),128*w.compositeIconSizes[1].evaluate(b,{},k)])[0]&gt;32640||X[1]&gt;32640)&amp;&amp;_(t.layerIds[0]+': Value for &quot;icon-size&quot; is &gt;= 255. Reduce your &quot;icon-size&quot;.'),t.addSymbols(t.icon,G,X,x,y,b,!1,e,I.lineStartIndex,I.lineLength,-1,k),R=t.icon.placedSymbolArray.length-1,Y&amp;&amp;(z=4*Y.length,t.addSymbols(t.icon,Y,X,x,y,b,gl.vertical,e,I.lineStartIndex,I.lineLength,-1,k),F=t.icon.placedSymbolArray.length-1)}for(var Z in n.horizontal){var J=n.horizontal[Z];if(!S){N=ca(J.text);var K=s.layout.get(&quot;text-rotate&quot;).evaluate(b,{},k);S=new Yl(l,e,c,u,f,J,h,p,d,K)}var Q=1===J.positionedLines.length;if(O+=ec(t,e,J,a,s,d,b,g,I,n.vertical?gl.horizontal:gl.horizontalOnly,Q?Object.keys(n.horizontal):[Z],B,R,w,k),Q)break}n.vertical&amp;&amp;(D+=ec(t,e,n.vertical,a,s,d,b,g,I,gl.vertical,[&quot;vertical&quot;],B,F,w,k));var $=S?S.boxStartIndex:t.collisionBoxArray.length,tt=S?S.boxEndIndex:t.collisionBoxArray.length,et=C?C.boxStartIndex:t.collisionBoxArray.length,rt=C?C.boxEndIndex:t.collisionBoxArray.length,nt=E?E.boxStartIndex:t.collisionBoxArray.length,it=E?E.boxEndIndex:t.collisionBoxArray.length,at=L?L.boxStartIndex:t.collisionBoxArray.length,ot=L?L.boxEndIndex:t.collisionBoxArray.length,st=-1,lt=function(t,e){return t&amp;&amp;t.circleDiameter?Math.max(t.circleDiameter,e):e};st=lt(S,st),st=lt(C,st),st=lt(E,st);var ct=(st=lt(L,st))&gt;-1?1:0;ct&amp;&amp;(st*=M/24),t.glyphOffsetArray.length&gt;=fc.MAX_GLYPHS&amp;&amp;_(&quot;Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907&quot;),void 0!==b.sortKey&amp;&amp;t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey),t.symbolInstances.emplaceBack(e.x,e.y,B.right&gt;=0?B.right:-1,B.center&gt;=0?B.center:-1,B.left&gt;=0?B.left:-1,B.vertical||-1,R,F,N,$,tt,et,rt,nt,it,at,ot,c,O,D,P,z,ct,0,h,j,U,st)}(t,f,s,r,n,i,h,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,v,w,M,l,x,T,A,d,e,a,c,u,o)};if(&quot;line&quot;===S)for(var I=0,P=jl(e.geometry,0,0,8192,8192);I&lt;P.length;I+=1)for(var z=P[I],O=0,D=Nl(z,b,k,r.vertical||g,n,24,y,t.overscaling,8192);O&lt;D.length;O+=1){var R=D[O];g&amp;&amp;nc(t,g.text,E,R)||L(z,R)}else if(&quot;line-center&quot;===S)for(var F=0,B=e.geometry;F&lt;B.length;F+=1){var N=B[F];if(N.length&gt;1){var j=Bl(N,k,r.vertical||g,n,24,y);j&amp;&amp;L(N,j)}}else if(&quot;Polygon&quot;===e.type)for(var U=0,V=Qo(e.geometry,0);U&lt;V.length;U+=1){var q=V[U],H=Zl(q,16);L(q[0],new Cl(H.x,H.y,0))}else if(&quot;LineString&quot;===e.type)for(var G=0,Y=e.geometry;G&lt;Y.length;G+=1){var W=Y[G];L(W,new Cl(W[0].x,W[0].y,0))}else if(&quot;Point&quot;===e.type)for(var X=0,Z=e.geometry;X&lt;Z.length;X+=1)for(var J=0,K=Z[X];J&lt;K.length;J+=1){var Q=K[J];L([Q],new Cl(Q.x,Q.y,0))}}(t,a,p,N,n,c,f,h,w,j,o)},x=0,b=t.features;x&lt;b.length;x+=1)y();a&amp;&amp;t.generateCollisionDebugBuffers()},t.perspective=function(t,e,r,n,i){var a,o=1/Math.tan(e/2);return t[0]=o/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&amp;&amp;i!==1/0?(t[10]=(i+n)*(a=1/(n-i)),t[14]=2*i*n*a):(t[10]=-1,t[14]=-2*n),t},t.pick=function(t,e){for(var r={},n=0;n&lt;e.length;n++){var i=e[n];i in t&amp;&amp;(r[i]=t[i])}return r},t.plugin=ni,t.polygonIntersectsPolygon=Ba,t.postMapLoadEvent=it,t.postTurnstileEvent=rt,t.potpack=fl,t.refProperties=[&quot;type&quot;,&quot;source&quot;,&quot;source-layer&quot;,&quot;minzoom&quot;,&quot;maxzoom&quot;,&quot;filter&quot;,&quot;layout&quot;],t.register=Dn,t.registerForPluginStateChange=function(t){return t({pluginStatus:Jn,pluginURL:Kn}),ti.on(&quot;pluginStateChange&quot;,t),t},t.rotate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l+a*s,t[1]=i*l+o*s,t[2]=n*-s+a*l,t[3]=i*-s+o*l,t},t.rotateX=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];return e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t},t.rotateZ=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];return e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t},t.scale=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.scale$1=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t},t.scale$2=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t},t.setCacheLimits=function(t,e){at=t,ot=e},t.setRTLTextPlugin=function(t,e,r){if(void 0===r&amp;&amp;(r=!1),&quot;deferred&quot;===Jn||&quot;loading&quot;===Jn||&quot;loaded&quot;===Jn)throw new Error(&quot;setRTLTextPlugin cannot be called multiple times.&quot;);Kn=R.resolveURL(t),Jn=&quot;deferred&quot;,Zn=e,$n(),r||ri()},t.sphericalToCartesian=function(t){var e=t[0],r=t[1],n=t[2];return r+=90,r*=Math.PI/180,n*=Math.PI/180,{x:e*Math.cos(r)*Math.sin(n),y:e*Math.sin(r)*Math.sin(n),z:e*Math.cos(n)}},t.sqrLen=function(t){var e=t[0],r=t[1];return e*e+r*r},t.styleSpec=At,t.sub=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t},t.symbolSize=zl,t.transformMat3=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t},t.transformMat4=ao,t.translate=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],m=r[1],v=r[2];return e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n=e[0],t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*m+f*v+e[12],t[13]=i*g+l*m+h*v+e[13],t[14]=a*g+c*m+p*v+e[14],t[15]=o*g+u*m+d*v+e[15]),t},t.triggerPluginCompletionEvent=Qn,t.uniqueId=h,t.validateCustomStyleLayer=function(t){var e=[],r=t.id;return void 0===r&amp;&amp;e.push({message:&quot;layers.&quot;+r+': missing required property &quot;id&quot;'}),void 0===t.render&amp;&amp;e.push({message:&quot;layers.&quot;+r+': missing required method &quot;render&quot;'}),t.renderingMode&amp;&amp;&quot;2d&quot;!==t.renderingMode&amp;&amp;&quot;3d&quot;!==t.renderingMode&amp;&amp;e.push({message:&quot;layers.&quot;+r+': property &quot;renderingMode&quot; must be either &quot;2d&quot; or &quot;3d&quot;'}),e},t.validateLight=An,t.validateStyle=Mn,t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.vectorTile=gs,t.version=&quot;1.10.1&quot;,t.warnOnce=_,t.webpSupported=B,t.window=self,t.wrap=c})),n(0,(function(t){function e(t){var r=typeof t;if(&quot;number&quot;===r||&quot;boolean&quot;===r||&quot;string&quot;===r||null==t)return JSON.stringify(t);if(Array.isArray(t)){for(var n=&quot;[&quot;,i=0,a=t;i&lt;a.length;i+=1)n+=e(a[i])+&quot;,&quot;;return n+&quot;]&quot;}for(var o=Object.keys(t).sort(),s=&quot;{&quot;,l=0;l&lt;o.length;l++)s+=JSON.stringify(o[l])+&quot;:&quot;+e(t[o[l]])+&quot;,&quot;;return s+&quot;}&quot;}function r(r){for(var n=&quot;&quot;,i=0,a=t.refProperties;i&lt;a.length;i+=1)n+=&quot;/&quot;+e(r[a[i]]);return n}var n=function(t){this.keyCache={},t&amp;&amp;this.replace(t)};n.prototype.replace=function(t){this._layerConfigs={},this._layers={},this.update(t,[])},n.prototype.update=function(e,n){for(var i=this,a=0,o=e;a&lt;o.length;a+=1){var s=o[a];this._layerConfigs[s.id]=s;var l=this._layers[s.id]=t.createStyleLayer(s);l._featureFilter=t.featureFilter(l.filter),this.keyCache[s.id]&amp;&amp;delete this.keyCache[s.id]}for(var c=0,u=n;c&lt;u.length;c+=1){var f=u[c];delete this.keyCache[f],delete this._layerConfigs[f],delete this._layers[f]}this.familiesBySource={};for(var h=0,p=function(t,e){for(var n={},i=0;i&lt;t.length;i++){var a=e&amp;&amp;e[t[i].id]||r(t[i]);e&amp;&amp;(e[t[i].id]=a);var o=n[a];o||(o=n[a]=[]),o.push(t[i])}var s=[];for(var l in n)s.push(n[l]);return s}(t.values(this._layerConfigs),this.keyCache);h&lt;p.length;h+=1){var d=p[h].map((function(t){return i._layers[t.id]})),g=d[0];if(&quot;none&quot;!==g.visibility){var m=g.source||&quot;&quot;,v=this.familiesBySource[m];v||(v=this.familiesBySource[m]={});var y=g.sourceLayer||&quot;_geojsonTileLayer&quot;,x=v[y];x||(x=v[y]=[]),x.push(d)}}};var i=function(e){var r={},n=[];for(var i in e){var a=e[i],o=r[i]={};for(var s in a){var l=a[+s];if(l&amp;&amp;0!==l.bitmap.width&amp;&amp;0!==l.bitmap.height){var c={x:0,y:0,w:l.bitmap.width+2,h:l.bitmap.height+2};n.push(c),o[s]={rect:c,metrics:l.metrics}}}}var u=t.potpack(n),f=new t.AlphaImage({width:u.w||1,height:u.h||1});for(var h in e){var p=e[h];for(var d in p){var g=p[+d];if(g&amp;&amp;0!==g.bitmap.width&amp;&amp;0!==g.bitmap.height){var m=r[h][d].rect;t.AlphaImage.copy(g.bitmap,f,{x:0,y:0},{x:m.x+1,y:m.y+1},g.bitmap)}}}this.image=f,this.positions=r};t.register(&quot;GlyphAtlas&quot;,i);var a=function(e){this.tileID=new t.OverscaledTileID(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId};function o(e,r,n){for(var i=new t.EvaluationParameters(r),a=0,o=e;a&lt;o.length;a+=1)o[a].recalculate(i,n)}function s(e,r){var n=t.getArrayBuffer(e.request,(function(e,n,i,a){e?r(e):n&amp;&amp;r(null,{vectorTile:new t.vectorTile.VectorTile(new t.pbf(n)),rawData:n,cacheControl:i,expires:a})}));return function(){n.cancel(),r()}}a.prototype.parse=function(e,r,n,a,s){var l=this;this.status=&quot;parsing&quot;,this.data=e,this.collisionBoxArray=new t.CollisionBoxArray;var c=new t.DictionaryCoder(Object.keys(e.layers).sort()),u=new t.FeatureIndex(this.tileID,this.promoteId);u.bucketLayerIDs=[];var f,h,p,d,g={},m={featureIndex:u,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:n},v=r.familiesBySource[this.source];for(var y in v){var x=e.layers[y];if(x){1===x.version&amp;&amp;t.warnOnce('Vector tile source &quot;'+this.source+'&quot; layer &quot;'+y+'&quot; does not use vector tile spec v2 and therefore may have some rendering errors.');for(var b=c.encode(y),_=[],w=0;w&lt;x.length;w++){var T=x.feature(w),k=u.getId(T,y);_.push({feature:T,id:k,index:w,sourceLayerIndex:b})}for(var M=0,A=v[y];M&lt;A.length;M+=1){var S=A[M],E=S[0];E.minzoom&amp;&amp;this.zoom&lt;Math.floor(E.minzoom)||E.maxzoom&amp;&amp;this.zoom&gt;=E.maxzoom||&quot;none&quot;!==E.visibility&amp;&amp;(o(S,this.zoom,n),(g[E.id]=E.createBucket({index:u.bucketLayerIDs.length,layers:S,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:b,sourceID:this.source})).populate(_,m,this.tileID.canonical),u.bucketLayerIDs.push(S.map((function(t){return t.id}))))}}}var C=t.mapObject(m.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(C).length?a.send(&quot;getGlyphs&quot;,{uid:this.uid,stacks:C},(function(t,e){f||(f=t,h=e,P.call(l))})):h={};var L=Object.keys(m.iconDependencies);L.length?a.send(&quot;getImages&quot;,{icons:L,source:this.source,tileID:this.tileID,type:&quot;icons&quot;},(function(t,e){f||(f=t,p=e,P.call(l))})):p={};var I=Object.keys(m.patternDependencies);function P(){if(f)return s(f);if(h&amp;&amp;p&amp;&amp;d){var e=new i(h),r=new t.ImageAtlas(p,d);for(var a in g){var l=g[a];l instanceof t.SymbolBucket?(o(l.layers,this.zoom,n),t.performSymbolLayout(l,h,e.positions,p,r.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):l.hasPattern&amp;&amp;(l instanceof t.LineBucket||l instanceof t.FillBucket||l instanceof t.FillExtrusionBucket)&amp;&amp;(o(l.layers,this.zoom,n),l.addFeatures(m,this.tileID.canonical,r.patternPositions))}this.status=&quot;done&quot;,s(null,{buckets:t.values(g).filter((function(t){return!t.isEmpty()})),featureIndex:u,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:r,glyphMap:this.returnDependencies?h:null,iconMap:this.returnDependencies?p:null,glyphPositions:this.returnDependencies?e.positions:null})}}I.length?a.send(&quot;getImages&quot;,{icons:I,source:this.source,tileID:this.tileID,type:&quot;patterns&quot;},(function(t,e){f||(f=t,d=e,P.call(l))})):d={},P.call(this)};var l=function(t,e,r,n){this.actor=t,this.layerIndex=e,this.availableImages=r,this.loadVectorData=n||s,this.loading={},this.loaded={}};l.prototype.loadTile=function(e,r){var n=this,i=e.uid;this.loading||(this.loading={});var o=!!(e&amp;&amp;e.request&amp;&amp;e.request.collectResourceTiming)&amp;&amp;new t.RequestPerformance(e.request),s=this.loading[i]=new a(e);s.abort=this.loadVectorData(e,(function(e,a){if(delete n.loading[i],e||!a)return s.status=&quot;done&quot;,n.loaded[i]=s,r(e);var l=a.rawData,c={};a.expires&amp;&amp;(c.expires=a.expires),a.cacheControl&amp;&amp;(c.cacheControl=a.cacheControl);var u={};if(o){var f=o.finish();f&amp;&amp;(u.resourceTiming=JSON.parse(JSON.stringify(f)))}s.vectorTile=a.vectorTile,s.parse(a.vectorTile,n.layerIndex,n.availableImages,n.actor,(function(e,n){if(e||!n)return r(e);r(null,t.extend({rawTileData:l.slice(0)},n,c,u))})),n.loaded=n.loaded||{},n.loaded[i]=s}))},l.prototype.reloadTile=function(t,e){var r=this,n=this.loaded,i=t.uid,a=this;if(n&amp;&amp;n[i]){var o=n[i];o.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,n){var i=o.reloadCallback;i&amp;&amp;(delete o.reloadCallback,o.parse(o.vectorTile,a.layerIndex,r.availableImages,a.actor,i)),e(t,n)};&quot;parsing&quot;===o.status?o.reloadCallback=s:&quot;done&quot;===o.status&amp;&amp;(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},l.prototype.abortTile=function(t,e){var r=this.loading,n=t.uid;r&amp;&amp;r[n]&amp;&amp;r[n].abort&amp;&amp;(r[n].abort(),delete r[n]),e()},l.prototype.removeTile=function(t,e){var r=this.loaded,n=t.uid;r&amp;&amp;r[n]&amp;&amp;delete r[n],e()};var c=t.window.ImageBitmap,u=function(){this.loaded={}};function f(t,e){if(0!==t.length){h(t[0],e);for(var r=1;r&lt;t.length;r++)h(t[r],!e)}}function h(t,e){for(var r=0,n=0,i=t.length,a=i-1;n&lt;i;a=n++)r+=(t[n][0]-t[a][0])*(t[a][1]+t[n][1]);r&gt;=0!=!!e&amp;&amp;t.reverse()}u.prototype.loadTile=function(e,r){var n=e.uid,i=e.encoding,a=e.rawImageData,o=c&amp;&amp;a instanceof c?this.getImageData(a):a,s=new t.DEMData(n,o,i);this.loaded=this.loaded||{},this.loaded[n]=s,r(null,s)},u.prototype.getImageData=function(e){this.offscreenCanvas&amp;&amp;this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext(&quot;2d&quot;)),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);var r=this.offscreenCanvasContext.getImageData(-1,-1,e.width+2,e.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new t.RGBAImage({width:r.width,height:r.height},r.data)},u.prototype.removeTile=function(t){var e=this.loaded,r=t.uid;e&amp;&amp;e[r]&amp;&amp;delete e[r]};var p=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,d=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,&quot;id&quot;in e&amp;&amp;!isNaN(e.id)&amp;&amp;(this.id=parseInt(e.id,10))};d.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],r=0,n=this._feature.geometry;r&lt;n.length;r+=1){var i=n[r];e.push([new t.Point$1(i[0],i[1])])}return e}for(var a=[],o=0,s=this._feature.geometry;o&lt;s.length;o+=1){for(var l=[],c=0,u=s[o];c&lt;u.length;c+=1){var f=u[c];l.push(new t.Point$1(f[0],f[1]))}a.push(l)}return a},d.prototype.toGeoJSON=function(t,e,r){return p.call(this,t,e,r)};var g=function(e){this.layers={_geojsonTileLayer:this},this.name=&quot;_geojsonTileLayer&quot;,this.extent=t.EXTENT,this.length=e.length,this._features=e};g.prototype.feature=function(t){return new d(this._features[t])};var m=t.vectorTile.VectorTileFeature,v=y;function y(t,e){this.options=e||{},this.features=t,this.length=t.length}function x(t,e){this.id=&quot;number&quot;==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}y.prototype.feature=function(t){return new x(this.features[t],this.options.extent)},x.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var r=0;r&lt;e.length;r++){for(var n=e[r],i=[],a=0;a&lt;n.length;a++)i.push(new t.Point$1(n[a][0],n[a][1]));this.geometry.push(i)}return this.geometry},x.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,r=-1/0,n=1/0,i=-1/0,a=0;a&lt;t.length;a++)for(var o=t[a],s=0;s&lt;o.length;s++){var l=o[s];e=Math.min(e,l.x),r=Math.max(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.y)}return[e,n,r,i]},x.prototype.toGeoJSON=m.prototype.toGeoJSON;var b=w,_=v;function w(e){var r=new t.pbf;return function(t,e){for(var r in t.layers)e.writeMessage(3,T,t.layers[r])}(e,r),r.finish()}function T(t,e){var r;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||&quot;&quot;),e.writeVarintField(5,t.extent||4096);var n={keys:[],values:[],keycache:{},valuecache:{}};for(r=0;r&lt;t.length;r++)n.feature=t.feature(r),e.writeMessage(2,k,n);var i=n.keys;for(r=0;r&lt;i.length;r++)e.writeStringField(3,i[r]);var a=n.values;for(r=0;r&lt;a.length;r++)e.writeMessage(4,C,a[r])}function k(t,e){var r=t.feature;void 0!==r.id&amp;&amp;e.writeVarintField(1,r.id),e.writeMessage(2,M,t),e.writeVarintField(3,r.type),e.writeMessage(4,E,r)}function M(t,e){var r=t.feature,n=t.keys,i=t.values,a=t.keycache,o=t.valuecache;for(var s in r.properties){var l=a[s];void 0===l&amp;&amp;(n.push(s),a[s]=l=n.length-1),e.writeVarint(l);var c=r.properties[s],u=typeof c;&quot;string&quot;!==u&amp;&amp;&quot;boolean&quot;!==u&amp;&amp;&quot;number&quot;!==u&amp;&amp;(c=JSON.stringify(c));var f=u+&quot;:&quot;+c,h=o[f];void 0===h&amp;&amp;(i.push(c),o[f]=h=i.length-1),e.writeVarint(h)}}function A(t,e){return(e&lt;&lt;3)+(7&amp;t)}function S(t){return t&lt;&lt;1^t&gt;&gt;31}function E(t,e){for(var r=t.loadGeometry(),n=t.type,i=0,a=0,o=r.length,s=0;s&lt;o;s++){var l=r[s],c=1;1===n&amp;&amp;(c=l.length),e.writeVarint(A(1,c));for(var u=3===n?l.length-1:l.length,f=0;f&lt;u;f++){1===f&amp;&amp;1!==n&amp;&amp;e.writeVarint(A(2,u-1));var h=l[f].x-i,p=l[f].y-a;e.writeVarint(S(h)),e.writeVarint(S(p)),i+=h,a+=p}3===n&amp;&amp;e.writeVarint(A(7,1))}}function C(t,e){var r=typeof t;&quot;string&quot;===r?e.writeStringField(1,t):&quot;boolean&quot;===r?e.writeBooleanField(7,t):&quot;number&quot;===r&amp;&amp;(t%1!=0?e.writeDoubleField(3,t):t&lt;0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}function L(t,e,r,n){I(t,r,n),I(e,2*r,2*n),I(e,2*r+1,2*n+1)}function I(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function P(t,e,r,n){var i=t-r,a=e-n;return i*i+a*a}b.fromVectorTileJs=w,b.fromGeojsonVt=function(t,e){e=e||{};var r={};for(var n in t)r[n]=new v(t[n].features,e),r[n].name=n,r[n].version=e.version,r[n].extent=e.extent;return w({layers:r})},b.GeoJSONWrapper=_;var z=function(t){return t[0]},O=function(t){return t[1]},D=function(t,e,r,n,i){void 0===e&amp;&amp;(e=z),void 0===r&amp;&amp;(r=O),void 0===n&amp;&amp;(n=64),void 0===i&amp;&amp;(i=Float64Array),this.nodeSize=n,this.points=t;for(var a=t.length&lt;65536?Uint16Array:Uint32Array,o=this.ids=new a(t.length),s=this.coords=new i(2*t.length),l=0;l&lt;t.length;l++)o[l]=l,s[2*l]=e(t[l]),s[2*l+1]=r(t[l]);!function t(e,r,n,i,a,o){if(!(a-i&lt;=n)){var s=i+a&gt;&gt;1;!function t(e,r,n,i,a,o){for(;a&gt;i;){if(a-i&gt;600){var s=a-i+1,l=n-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2&lt;0?-1:1);t(e,r,n,Math.max(i,Math.floor(n-l*u/s+f)),Math.min(a,Math.floor(n+(s-l)*u/s+f)),o)}var h=r[2*n+o],p=i,d=a;for(L(e,r,i,n),r[2*a+o]&gt;h&amp;&amp;L(e,r,i,a);p&lt;d;){for(L(e,r,p,d),p++,d--;r[2*p+o]&lt;h;)p++;for(;r[2*d+o]&gt;h;)d--}r[2*i+o]===h?L(e,r,i,d):L(e,r,++d,a),d&lt;=n&amp;&amp;(i=d+1),n&lt;=d&amp;&amp;(a=d-1)}}(e,r,s,i,a,o%2),t(e,r,n,i,s-1,o+1),t(e,r,n,s+1,a,o+1)}}(o,s,n,0,o.length-1,0)};D.prototype.range=function(t,e,r,n){return function(t,e,r,n,i,a,o){for(var s,l,c=[0,t.length-1,0],u=[];c.length;){var f=c.pop(),h=c.pop(),p=c.pop();if(h-p&lt;=o)for(var d=p;d&lt;=h;d++)l=e[2*d+1],(s=e[2*d])&gt;=r&amp;&amp;s&lt;=i&amp;&amp;l&gt;=n&amp;&amp;l&lt;=a&amp;&amp;u.push(t[d]);else{var g=Math.floor((p+h)/2);l=e[2*g+1],(s=e[2*g])&gt;=r&amp;&amp;s&lt;=i&amp;&amp;l&gt;=n&amp;&amp;l&lt;=a&amp;&amp;u.push(t[g]);var m=(f+1)%2;(0===f?r&lt;=s:n&lt;=l)&amp;&amp;(c.push(p),c.push(g-1),c.push(m)),(0===f?i&gt;=s:a&gt;=l)&amp;&amp;(c.push(g+1),c.push(h),c.push(m))}}return u}(this.ids,this.coords,t,e,r,n,this.nodeSize)},D.prototype.within=function(t,e,r){return function(t,e,r,n,i,a){for(var o=[0,t.length-1,0],s=[],l=i*i;o.length;){var c=o.pop(),u=o.pop(),f=o.pop();if(u-f&lt;=a)for(var h=f;h&lt;=u;h++)P(e[2*h],e[2*h+1],r,n)&lt;=l&amp;&amp;s.push(t[h]);else{var p=Math.floor((f+u)/2),d=e[2*p],g=e[2*p+1];P(d,g,r,n)&lt;=l&amp;&amp;s.push(t[p]);var m=(c+1)%2;(0===c?r-i&lt;=d:n-i&lt;=g)&amp;&amp;(o.push(f),o.push(p-1),o.push(m)),(0===c?r+i&gt;=d:n+i&gt;=g)&amp;&amp;(o.push(p+1),o.push(u),o.push(m))}}return s}(this.ids,this.coords,t,e,r,this.nodeSize)};var R={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},F=function(t){this.options=H(Object.create(R),t),this.trees=new Array(this.options.maxZoom+1)};function B(t,e,r,n,i){return{x:t,y:e,zoom:1/0,id:r,parentId:-1,numPoints:n,properties:i}}function N(t,e){var r=t.geometry.coordinates,n=r[1];return{x:V(r[0]),y:q(n),zoom:1/0,index:e,parentId:-1}}function j(t){return{type:&quot;Feature&quot;,id:t.id,properties:U(t),geometry:{type:&quot;Point&quot;,coordinates:[(n=t.x,360*(n-.5)),(e=t.y,r=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(r))/Math.PI-90)]}};var e,r,n}function U(t){var e=t.numPoints,r=e&gt;=1e4?Math.round(e/1e3)+&quot;k&quot;:e&gt;=1e3?Math.round(e/100)/10+&quot;k&quot;:e;return H(H({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function V(t){return t/360+.5}function q(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function H(t,e){for(var r in e)t[r]=e[r];return t}function G(t){return t.x}function Y(t){return t.y}function W(t,e,r,n,i,a){var o=i-r,s=a-n;if(0!==o||0!==s){var l=((t-r)*o+(e-n)*s)/(o*o+s*s);l&gt;1?(r=i,n=a):l&gt;0&amp;&amp;(r+=o*l,n+=s*l)}return(o=t-r)*o+(s=e-n)*s}function X(t,e,r,n){var i={id:void 0===t?null:t,type:e,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,r=t.type;if(&quot;Point&quot;===r||&quot;MultiPoint&quot;===r||&quot;LineString&quot;===r)Z(t,e);else if(&quot;Polygon&quot;===r||&quot;MultiLineString&quot;===r)for(var n=0;n&lt;e.length;n++)Z(t,e[n]);else if(&quot;MultiPolygon&quot;===r)for(n=0;n&lt;e.length;n++)for(var i=0;i&lt;e[n].length;i++)Z(t,e[n][i])}(i),i}function Z(t,e){for(var r=0;r&lt;e.length;r+=3)t.minX=Math.min(t.minX,e[r]),t.minY=Math.min(t.minY,e[r+1]),t.maxX=Math.max(t.maxX,e[r]),t.maxY=Math.max(t.maxY,e[r+1])}function J(t,e,r,n){if(e.geometry){var i=e.geometry.coordinates,a=e.geometry.type,o=Math.pow(r.tolerance/((1&lt;&lt;r.maxZoom)*r.extent),2),s=[],l=e.id;if(r.promoteId?l=e.properties[r.promoteId]:r.generateId&amp;&amp;(l=n||0),&quot;Point&quot;===a)K(i,s);else if(&quot;MultiPoint&quot;===a)for(var c=0;c&lt;i.length;c++)K(i[c],s);else if(&quot;LineString&quot;===a)Q(i,s,o,!1);else if(&quot;MultiLineString&quot;===a){if(r.lineMetrics){for(c=0;c&lt;i.length;c++)Q(i[c],s=[],o,!1),t.push(X(l,&quot;LineString&quot;,s,e.properties));return}$(i,s,o,!1)}else if(&quot;Polygon&quot;===a)$(i,s,o,!0);else{if(&quot;MultiPolygon&quot;!==a){if(&quot;GeometryCollection&quot;===a){for(c=0;c&lt;e.geometry.geometries.length;c++)J(t,{id:l,geometry:e.geometry.geometries[c],properties:e.properties},r,n);return}throw new Error(&quot;Input data is not a valid GeoJSON object.&quot;)}for(c=0;c&lt;i.length;c++){var u=[];$(i[c],u,o,!0),s.push(u)}}t.push(X(l,a,s,e.properties))}}function K(t,e){e.push(tt(t[0])),e.push(et(t[1])),e.push(0)}function Q(t,e,r,n){for(var i,a,o=0,s=0;s&lt;t.length;s++){var l=tt(t[s][0]),c=et(t[s][1]);e.push(l),e.push(c),e.push(0),s&gt;0&amp;&amp;(o+=n?(i*c-l*a)/2:Math.sqrt(Math.pow(l-i,2)+Math.pow(c-a,2))),i=l,a=c}var u=e.length-3;e[2]=1,function t(e,r,n,i){for(var a,o=i,s=n-r&gt;&gt;1,l=n-r,c=e[r],u=e[r+1],f=e[n],h=e[n+1],p=r+3;p&lt;n;p+=3){var d=W(e[p],e[p+1],c,u,f,h);if(d&gt;o)a=p,o=d;else if(d===o){var g=Math.abs(p-s);g&lt;l&amp;&amp;(a=p,l=g)}}o&gt;i&amp;&amp;(a-r&gt;3&amp;&amp;t(e,r,a,i),e[a+2]=o,n-a&gt;3&amp;&amp;t(e,a,n,i))}(e,0,u,r),e[u+2]=1,e.size=Math.abs(o),e.start=0,e.end=e.size}function $(t,e,r,n){for(var i=0;i&lt;t.length;i++){var a=[];Q(t[i],a,r,n),e.push(a)}}function tt(t){return t/360+.5}function et(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function rt(t,e,r,n,i,a,o,s){if(n/=e,a&gt;=(r/=e)&amp;&amp;o&lt;n)return t;if(o&lt;r||a&gt;=n)return null;for(var l=[],c=0;c&lt;t.length;c++){var u=t[c],f=u.geometry,h=u.type,p=0===i?u.minX:u.minY,d=0===i?u.maxX:u.maxY;if(p&gt;=r&amp;&amp;d&lt;n)l.push(u);else if(!(d&lt;r||p&gt;=n)){var g=[];if(&quot;Point&quot;===h||&quot;MultiPoint&quot;===h)nt(f,g,r,n,i);else if(&quot;LineString&quot;===h)it(f,g,r,n,i,!1,s.lineMetrics);else if(&quot;MultiLineString&quot;===h)ot(f,g,r,n,i,!1);else if(&quot;Polygon&quot;===h)ot(f,g,r,n,i,!0);else if(&quot;MultiPolygon&quot;===h)for(var m=0;m&lt;f.length;m++){var v=[];ot(f[m],v,r,n,i,!0),v.length&amp;&amp;g.push(v)}if(g.length){if(s.lineMetrics&amp;&amp;&quot;LineString&quot;===h){for(m=0;m&lt;g.length;m++)l.push(X(u.id,h,g[m],u.tags));continue}&quot;LineString&quot;!==h&amp;&amp;&quot;MultiLineString&quot;!==h||(1===g.length?(h=&quot;LineString&quot;,g=g[0]):h=&quot;MultiLineString&quot;),&quot;Point&quot;!==h&amp;&amp;&quot;MultiPoint&quot;!==h||(h=3===g.length?&quot;Point&quot;:&quot;MultiPoint&quot;),l.push(X(u.id,h,g,u.tags))}}}return l.length?l:null}function nt(t,e,r,n,i){for(var a=0;a&lt;t.length;a+=3){var o=t[a+i];o&gt;=r&amp;&amp;o&lt;=n&amp;&amp;(e.push(t[a]),e.push(t[a+1]),e.push(t[a+2]))}}function it(t,e,r,n,i,a,o){for(var s,l,c=at(t),u=0===i?lt:ct,f=t.start,h=0;h&lt;t.length-3;h+=3){var p=t[h],d=t[h+1],g=t[h+2],m=t[h+3],v=t[h+4],y=0===i?p:d,x=0===i?m:v,b=!1;o&amp;&amp;(s=Math.sqrt(Math.pow(p-m,2)+Math.pow(d-v,2))),y&lt;r?x&gt;r&amp;&amp;(l=u(c,p,d,m,v,r),o&amp;&amp;(c.start=f+s*l)):y&gt;n?x&lt;n&amp;&amp;(l=u(c,p,d,m,v,n),o&amp;&amp;(c.start=f+s*l)):st(c,p,d,g),x&lt;r&amp;&amp;y&gt;=r&amp;&amp;(l=u(c,p,d,m,v,r),b=!0),x&gt;n&amp;&amp;y&lt;=n&amp;&amp;(l=u(c,p,d,m,v,n),b=!0),!a&amp;&amp;b&amp;&amp;(o&amp;&amp;(c.end=f+s*l),e.push(c),c=at(t)),o&amp;&amp;(f+=s)}var _=t.length-3;p=t[_],d=t[_+1],g=t[_+2],(y=0===i?p:d)&gt;=r&amp;&amp;y&lt;=n&amp;&amp;st(c,p,d,g),_=c.length-3,a&amp;&amp;_&gt;=3&amp;&amp;(c[_]!==c[0]||c[_+1]!==c[1])&amp;&amp;st(c,c[0],c[1],c[2]),c.length&amp;&amp;e.push(c)}function at(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function ot(t,e,r,n,i,a){for(var o=0;o&lt;t.length;o++)it(t[o],e,r,n,i,a,!1)}function st(t,e,r,n){t.push(e),t.push(r),t.push(n)}function lt(t,e,r,n,i,a){var o=(a-e)/(n-e);return t.push(a),t.push(r+(i-r)*o),t.push(1),o}function ct(t,e,r,n,i,a){var o=(a-r)/(i-r);return t.push(e+(n-e)*o),t.push(a),t.push(1),o}function ut(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i,a=t[n],o=a.type;if(&quot;Point&quot;===o||&quot;MultiPoint&quot;===o||&quot;LineString&quot;===o)i=ft(a.geometry,e);else if(&quot;MultiLineString&quot;===o||&quot;Polygon&quot;===o){i=[];for(var s=0;s&lt;a.geometry.length;s++)i.push(ft(a.geometry[s],e))}else if(&quot;MultiPolygon&quot;===o)for(i=[],s=0;s&lt;a.geometry.length;s++){for(var l=[],c=0;c&lt;a.geometry[s].length;c++)l.push(ft(a.geometry[s][c],e));i.push(l)}r.push(X(a.id,o,i,a.tags))}return r}function ft(t,e){var r=[];r.size=t.size,void 0!==t.start&amp;&amp;(r.start=t.start,r.end=t.end);for(var n=0;n&lt;t.length;n+=3)r.push(t[n]+e,t[n+1],t[n+2]);return r}function ht(t,e){if(t.transformed)return t;var r,n,i,a=1&lt;&lt;t.z,o=t.x,s=t.y;for(r=0;r&lt;t.features.length;r++){var l=t.features[r],c=l.geometry,u=l.type;if(l.geometry=[],1===u)for(n=0;n&lt;c.length;n+=2)l.geometry.push(pt(c[n],c[n+1],e,a,o,s));else for(n=0;n&lt;c.length;n++){var f=[];for(i=0;i&lt;c[n].length;i+=2)f.push(pt(c[n][i],c[n][i+1],e,a,o,s));l.geometry.push(f)}}return t.transformed=!0,t}function pt(t,e,r,n,i,a){return[Math.round(r*(t*n-i)),Math.round(r*(e*n-a))]}function dt(t,e,r,n,i){for(var a=e===i.maxZoom?0:i.tolerance/((1&lt;&lt;e)*i.extent),o={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:r,y:n,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s&lt;t.length;s++){o.numFeatures++,gt(o,t[s],a,i);var l=t[s].minX,c=t[s].minY,u=t[s].maxX,f=t[s].maxY;l&lt;o.minX&amp;&amp;(o.minX=l),c&lt;o.minY&amp;&amp;(o.minY=c),u&gt;o.maxX&amp;&amp;(o.maxX=u),f&gt;o.maxY&amp;&amp;(o.maxY=f)}return o}function gt(t,e,r,n){var i=e.geometry,a=e.type,o=[];if(&quot;Point&quot;===a||&quot;MultiPoint&quot;===a)for(var s=0;s&lt;i.length;s+=3)o.push(i[s]),o.push(i[s+1]),t.numPoints++,t.numSimplified++;else if(&quot;LineString&quot;===a)mt(o,i,t,r,!1,!1);else if(&quot;MultiLineString&quot;===a||&quot;Polygon&quot;===a)for(s=0;s&lt;i.length;s++)mt(o,i[s],t,r,&quot;Polygon&quot;===a,0===s);else if(&quot;MultiPolygon&quot;===a)for(var l=0;l&lt;i.length;l++){var c=i[l];for(s=0;s&lt;c.length;s++)mt(o,c[s],t,r,!0,0===s)}if(o.length){var u=e.tags||null;if(&quot;LineString&quot;===a&amp;&amp;n.lineMetrics){for(var f in u={},e.tags)u[f]=e.tags[f];u.mapbox_clip_start=i.start/i.size,u.mapbox_clip_end=i.end/i.size}var h={geometry:o,type:&quot;Polygon&quot;===a||&quot;MultiPolygon&quot;===a?3:&quot;LineString&quot;===a||&quot;MultiLineString&quot;===a?2:1,tags:u};null!==e.id&amp;&amp;(h.id=e.id),t.features.push(h)}}function mt(t,e,r,n,i,a){var o=n*n;if(n&gt;0&amp;&amp;e.size&lt;(i?o:n))r.numPoints+=e.length/3;else{for(var s=[],l=0;l&lt;e.length;l+=3)(0===n||e[l+2]&gt;o)&amp;&amp;(r.numSimplified++,s.push(e[l]),s.push(e[l+1])),r.numPoints++;i&amp;&amp;function(t,e){for(var r=0,n=0,i=t.length,a=i-2;n&lt;i;a=n,n+=2)r+=(t[n]-t[a])*(t[n+1]+t[a+1]);if(r&gt;0===e)for(n=0,i=t.length;n&lt;i/2;n+=2){var o=t[n],s=t[n+1];t[n]=t[i-2-n],t[n+1]=t[i-1-n],t[i-2-n]=o,t[i-1-n]=s}}(s,a),t.push(s)}}function vt(t,e){var r=(e=this.options=function(t,e){for(var r in e)t[r]=e[r];return t}(Object.create(this.options),e)).debug;if(r&amp;&amp;console.time(&quot;preprocess data&quot;),e.maxZoom&lt;0||e.maxZoom&gt;24)throw new Error(&quot;maxZoom should be in the 0-24 range&quot;);if(e.promoteId&amp;&amp;e.generateId)throw new Error(&quot;promoteId and generateId cannot be used together.&quot;);var n=function(t,e){var r=[];if(&quot;FeatureCollection&quot;===t.type)for(var n=0;n&lt;t.features.length;n++)J(r,t.features[n],e,n);else J(r,&quot;Feature&quot;===t.type?t:{geometry:t},e);return r}(t,e);this.tiles={},this.tileCoords=[],r&amp;&amp;(console.timeEnd(&quot;preprocess data&quot;),console.log(&quot;index: maxZoom: %d, maxPoints: %d&quot;,e.indexMaxZoom,e.indexMaxPoints),console.time(&quot;generate tiles&quot;),this.stats={},this.total=0),(n=function(t,e){var r=e.buffer/e.extent,n=t,i=rt(t,1,-1-r,r,0,-1,2,e),a=rt(t,1,1-r,2+r,0,-1,2,e);return(i||a)&amp;&amp;(n=rt(t,1,-r,1+r,0,-1,2,e)||[],i&amp;&amp;(n=ut(i,1).concat(n)),a&amp;&amp;(n=n.concat(ut(a,-1)))),n}(n,e)).length&amp;&amp;this.splitTile(n,0,0,0),r&amp;&amp;(n.length&amp;&amp;console.log(&quot;features: %d, points: %d&quot;,this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd(&quot;generate tiles&quot;),console.log(&quot;tiles generated:&quot;,this.total,JSON.stringify(this.stats)))}function yt(t,e,r){return 32*((1&lt;&lt;t)*r+e)+t}function xt(t,e){var r=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);var n=this._geoJSONIndex.getTile(r.z,r.x,r.y);if(!n)return e(null,null);var i=new g(n.features),a=b(i);0===a.byteOffset&amp;&amp;a.byteLength===a.buffer.byteLength||(a=new Uint8Array(a)),e(null,{vectorTile:i,rawData:a.buffer})}F.prototype.load=function(t){var e=this.options,r=e.log,n=e.minZoom,i=e.maxZoom,a=e.nodeSize;r&amp;&amp;console.time(&quot;total time&quot;);var o=&quot;prepare &quot;+t.length+&quot; points&quot;;r&amp;&amp;console.time(o),this.points=t;for(var s=[],l=0;l&lt;t.length;l++)t[l].geometry&amp;&amp;s.push(N(t[l],l));this.trees[i+1]=new D(s,G,Y,a,Float32Array),r&amp;&amp;console.timeEnd(o);for(var c=i;c&gt;=n;c--){var u=+Date.now();s=this._cluster(s,c),this.trees[c]=new D(s,G,Y,a,Float32Array),r&amp;&amp;console.log(&quot;z%d: %d clusters in %dms&quot;,c,s.length,+Date.now()-u)}return r&amp;&amp;console.timeEnd(&quot;total time&quot;),this},F.prototype.getClusters=function(t,e){var r=((t[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]&gt;=360)r=-180,i=180;else if(r&gt;i){var o=this.getClusters([r,n,180,a],e),s=this.getClusters([-180,n,i,a],e);return o.concat(s)}for(var l=this.trees[this._limitZoom(e)],c=[],u=0,f=l.range(V(r),q(a),V(i),q(n));u&lt;f.length;u+=1){var h=l.points[f[u]];c.push(h.numPoints?j(h):this.points[h.index])}return c},F.prototype.getChildren=function(t){var e=this._getOriginId(t),r=this._getOriginZoom(t),n=&quot;No cluster with the specified id.&quot;,i=this.trees[r];if(!i)throw new Error(n);var a=i.points[e];if(!a)throw new Error(n);for(var o=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=[],l=0,c=i.within(a.x,a.y,o);l&lt;c.length;l+=1){var u=i.points[c[l]];u.parentId===t&amp;&amp;s.push(u.numPoints?j(u):this.points[u.index])}if(0===s.length)throw new Error(n);return s},F.prototype.getLeaves=function(t,e,r){var n=[];return this._appendLeaves(n,t,e=e||10,r=r||0,0),n},F.prototype.getTile=function(t,e,r){var n=this.trees[this._limitZoom(t)],i=Math.pow(2,t),a=this.options,o=a.radius/a.extent,s=(r-o)/i,l=(r+1+o)/i,c={features:[]};return this._addTileFeatures(n.range((e-o)/i,s,(e+1+o)/i,l),n.points,e,r,i,c),0===e&amp;&amp;this._addTileFeatures(n.range(1-o/i,s,1,l),n.points,i,r,i,c),e===i-1&amp;&amp;this._addTileFeatures(n.range(0,s,o/i,l),n.points,-1,r,i,c),c.features.length?c:null},F.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e&lt;=this.options.maxZoom;){var r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e},F.prototype._appendLeaves=function(t,e,r,n,i){for(var a=0,o=this.getChildren(e);a&lt;o.length;a+=1){var s=o[a],l=s.properties;if(l&amp;&amp;l.cluster?i+l.point_count&lt;=n?i+=l.point_count:i=this._appendLeaves(t,l.cluster_id,r,n,i):i&lt;n?i++:t.push(s),t.length===r)break}return i},F.prototype._addTileFeatures=function(t,e,r,n,i,a){for(var o=0,s=t;o&lt;s.length;o+=1){var l=e[s[o]],c=l.numPoints,u={type:1,geometry:[[Math.round(this.options.extent*(l.x*i-r)),Math.round(this.options.extent*(l.y*i-n))]],tags:c?U(l):this.points[l.index].properties},f=void 0;c?f=l.id:this.options.generateId?f=l.index:this.points[l.index].id&amp;&amp;(f=this.points[l.index].id),void 0!==f&amp;&amp;(u.id=f),a.features.push(u)}},F.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},F.prototype._cluster=function(t,e){for(var r=[],n=this.options,i=n.reduce,a=n.radius/(n.extent*Math.pow(2,e)),o=0;o&lt;t.length;o++){var s=t[o];if(!(s.zoom&lt;=e)){s.zoom=e;for(var l=this.trees[e+1],c=l.within(s.x,s.y,a),u=s.numPoints||1,f=s.x*u,h=s.y*u,p=i&amp;&amp;u&gt;1?this._map(s,!0):null,d=(o&lt;&lt;5)+(e+1)+this.points.length,g=0,m=c;g&lt;m.length;g+=1){var v=l.points[m[g]];if(!(v.zoom&lt;=e)){v.zoom=e;var y=v.numPoints||1;f+=v.x*y,h+=v.y*y,u+=y,v.parentId=d,i&amp;&amp;(p||(p=this._map(s,!0)),i(p,this._map(v)))}}1===u?r.push(s):(s.parentId=d,r.push(B(f/u,h/u,d,u,p)))}}return r},F.prototype._getOriginId=function(t){return t-this.points.length&gt;&gt;5},F.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},F.prototype._map=function(t,e){if(t.numPoints)return e?H({},t.properties):t.properties;var r=this.points[t.index].properties,n=this.options.map(r);return e&amp;&amp;n===r?H({},n):n},vt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},vt.prototype.splitTile=function(t,e,r,n,i,a,o){for(var s=[t,e,r,n],l=this.options,c=l.debug;s.length;){n=s.pop(),r=s.pop(),e=s.pop(),t=s.pop();var u=1&lt;&lt;e,f=yt(e,r,n),h=this.tiles[f];if(!h&amp;&amp;(c&gt;1&amp;&amp;console.time(&quot;creation&quot;),h=this.tiles[f]=dt(t,e,r,n,l),this.tileCoords.push({z:e,x:r,y:n}),c)){c&gt;1&amp;&amp;(console.log(&quot;tile z%d-%d-%d (features: %d, points: %d, simplified: %d)&quot;,e,r,n,h.numFeatures,h.numPoints,h.numSimplified),console.timeEnd(&quot;creation&quot;));var p=&quot;z&quot;+e;this.stats[p]=(this.stats[p]||0)+1,this.total++}if(h.source=t,i){if(e===l.maxZoom||e===i)continue;var d=1&lt;&lt;i-e;if(r!==Math.floor(a/d)||n!==Math.floor(o/d))continue}else if(e===l.indexMaxZoom||h.numPoints&lt;=l.indexMaxPoints)continue;if(h.source=null,0!==t.length){c&gt;1&amp;&amp;console.time(&quot;clipping&quot;);var g,m,v,y,x,b,_=.5*l.buffer/l.extent,w=.5-_,T=.5+_,k=1+_;g=m=v=y=null,x=rt(t,u,r-_,r+T,0,h.minX,h.maxX,l),b=rt(t,u,r+w,r+k,0,h.minX,h.maxX,l),t=null,x&amp;&amp;(g=rt(x,u,n-_,n+T,1,h.minY,h.maxY,l),m=rt(x,u,n+w,n+k,1,h.minY,h.maxY,l),x=null),b&amp;&amp;(v=rt(b,u,n-_,n+T,1,h.minY,h.maxY,l),y=rt(b,u,n+w,n+k,1,h.minY,h.maxY,l),b=null),c&gt;1&amp;&amp;console.timeEnd(&quot;clipping&quot;),s.push(g||[],e+1,2*r,2*n),s.push(m||[],e+1,2*r,2*n+1),s.push(v||[],e+1,2*r+1,2*n),s.push(y||[],e+1,2*r+1,2*n+1)}}},vt.prototype.getTile=function(t,e,r){var n=this.options,i=n.extent,a=n.debug;if(t&lt;0||t&gt;24)return null;var o=1&lt;&lt;t,s=yt(t,e=(e%o+o)%o,r);if(this.tiles[s])return ht(this.tiles[s],i);a&gt;1&amp;&amp;console.log(&quot;drilling down to z%d-%d-%d&quot;,t,e,r);for(var l,c=t,u=e,f=r;!l&amp;&amp;c&gt;0;)c--,u=Math.floor(u/2),f=Math.floor(f/2),l=this.tiles[yt(c,u,f)];return l&amp;&amp;l.source?(a&gt;1&amp;&amp;console.log(&quot;found parent tile z%d-%d-%d&quot;,c,u,f),a&gt;1&amp;&amp;console.time(&quot;drilling down&quot;),this.splitTile(l.source,c,u,f,t,e,r),a&gt;1&amp;&amp;console.timeEnd(&quot;drilling down&quot;),this.tiles[s]?ht(this.tiles[s],i):null):null};var bt=function(e){function r(t,r,n,i){e.call(this,t,r,n,xt),i&amp;&amp;(this.loadGeoJSON=i)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.loadData=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&amp;&amp;&quot;Idle&quot;!==this._state?this._state=&quot;NeedsLoadData&quot;:(this._state=&quot;Coalescing&quot;,this._loadData())},r.prototype._loadData=function(){var e=this;if(this._pendingCallback&amp;&amp;this._pendingLoadDataParams){var r=this._pendingCallback,n=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var i=!!(n&amp;&amp;n.request&amp;&amp;n.request.collectResourceTiming)&amp;&amp;new t.RequestPerformance(n.request);this.loadGeoJSON(n,(function(a,o){if(a||!o)return r(a);if(&quot;object&quot;!=typeof o)return r(new Error(&quot;Input data given to '&quot;+n.source+&quot;' is not a valid GeoJSON object.&quot;));!function t(e,r){var n,i=e&amp;&amp;e.type;if(&quot;FeatureCollection&quot;===i)for(n=0;n&lt;e.features.length;n++)t(e.features[n],r);else if(&quot;GeometryCollection&quot;===i)for(n=0;n&lt;e.geometries.length;n++)t(e.geometries[n],r);else if(&quot;Feature&quot;===i)t(e.geometry,r);else if(&quot;Polygon&quot;===i)f(e.coordinates,r);else if(&quot;MultiPolygon&quot;===i)for(n=0;n&lt;e.coordinates.length;n++)f(e.coordinates[n],r);return e}(o,!0);try{e._geoJSONIndex=n.cluster?new F(function(e){var r=e.superclusterOptions,n=e.clusterProperties;if(!n||!r)return r;for(var i={},a={},o={accumulated:null,zoom:0},s={properties:null},l=Object.keys(n),c=0,u=l;c&lt;u.length;c+=1){var f=u[c],h=n[f],p=h[0],d=t.createExpression(h[1]),g=t.createExpression(&quot;string&quot;==typeof p?[p,[&quot;accumulated&quot;],[&quot;get&quot;,f]]:p);i[f]=d.value,a[f]=g.value}return r.map=function(t){s.properties=t;for(var e={},r=0,n=l;r&lt;n.length;r+=1){var a=n[r];e[a]=i[a].evaluate(o,s)}return e},r.reduce=function(t,e){s.properties=e;for(var r=0,n=l;r&lt;n.length;r+=1){var i=n[r];o.accumulated=t[i],t[i]=a[i].evaluate(o,s)}},r}(n)).load(o.features):function(t,e){return new vt(t,e)}(o,n.geojsonVtOptions)}catch(a){return r(a)}e.loaded={};var s={};if(i){var l=i.finish();l&amp;&amp;(s.resourceTiming={},s.resourceTiming[n.source]=JSON.parse(JSON.stringify(l)))}r(null,s)}))}},r.prototype.coalesce=function(){&quot;Coalescing&quot;===this._state?this._state=&quot;Idle&quot;:&quot;NeedsLoadData&quot;===this._state&amp;&amp;(this._state=&quot;Coalescing&quot;,this._loadData())},r.prototype.reloadTile=function(t,r){var n=this.loaded;return n&amp;&amp;n[t.uid]?e.prototype.reloadTile.call(this,t,r):this.loadTile(t,r)},r.prototype.loadGeoJSON=function(e,r){if(e.request)t.getJSON(e.request,r);else{if(&quot;string&quot;!=typeof e.data)return r(new Error(&quot;Input data given to '&quot;+e.source+&quot;' is not a valid GeoJSON object.&quot;));try{return r(null,JSON.parse(e.data))}catch(t){return r(new Error(&quot;Input data given to '&quot;+e.source+&quot;' is not a valid GeoJSON object.&quot;))}}},r.prototype.removeSource=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),e()},r.prototype.getClusterExpansionZoom=function(t,e){try{e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterChildren=function(t,e){try{e(null,this._geoJSONIndex.getChildren(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterLeaves=function(t,e){try{e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))}catch(t){e(t)}},r}(l),_t=function(e){var r=this;this.self=e,this.actor=new t.Actor(e,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:l,geojson:bt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(r.workerSourceTypes[t])throw new Error('Worker source with name &quot;'+t+'&quot; already registered.');r.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(e){if(t.plugin.isParsed())throw new Error(&quot;RTL text plugin already registered.&quot;);t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText,t.plugin.processStyledBidirectionalText=e.processStyledBidirectionalText}};return _t.prototype.setReferrer=function(t,e){this.referrer=e},_t.prototype.setImages=function(t,e,r){for(var n in this.availableImages[t]=e,this.workerSources[t]){var i=this.workerSources[t][n];for(var a in i)i[a].availableImages=e}r()},_t.prototype.setLayers=function(t,e,r){this.getLayerIndex(t).replace(e),r()},_t.prototype.updateLayers=function(t,e,r){this.getLayerIndex(t).update(e.layers,e.removedIds),r()},_t.prototype.loadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).loadTile(e,r)},_t.prototype.loadDEMTile=function(t,e,r){this.getDEMWorkerSource(t,e.source).loadTile(e,r)},_t.prototype.reloadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).reloadTile(e,r)},_t.prototype.abortTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).abortTile(e,r)},_t.prototype.removeTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).removeTile(e,r)},_t.prototype.removeDEMTile=function(t,e){this.getDEMWorkerSource(t,e.source).removeTile(e)},_t.prototype.removeSource=function(t,e,r){if(this.workerSources[t]&amp;&amp;this.workerSources[t][e.type]&amp;&amp;this.workerSources[t][e.type][e.source]){var n=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==n.removeSource?n.removeSource(e,r):r()}},_t.prototype.loadWorkerSource=function(t,e,r){try{this.self.importScripts(e.url),r()}catch(t){r(t.toString())}},_t.prototype.syncRTLPluginState=function(e,r,n){try{t.plugin.setState(r);var i=t.plugin.getPluginURL();if(t.plugin.isLoaded()&amp;&amp;!t.plugin.isParsed()&amp;&amp;null!=i){this.self.importScripts(i);var a=t.plugin.isParsed();n(a?void 0:new Error(&quot;RTL Text Plugin failed to import scripts from &quot;+i),a)}}catch(t){n(t.toString())}},_t.prototype.getAvailableImages=function(t){var e=this.availableImages[t];return e||(e=[]),e},_t.prototype.getLayerIndex=function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new n),e},_t.prototype.getWorkerSource=function(t,e,r){var n=this;return this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),this.workerSources[t][e][r]||(this.workerSources[t][e][r]=new this.workerSourceTypes[e]({send:function(e,r,i){n.actor.send(e,r,i,t)}},this.getLayerIndex(t),this.getAvailableImages(t))),this.workerSources[t][e][r]},_t.prototype.getDEMWorkerSource=function(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new u),this.demWorkerSources[t][e]},_t.prototype.enforceCacheSizeLimit=function(e,r){t.enforceCacheSizeLimit(r)},&quot;undefined&quot;!=typeof WorkerGlobalScope&amp;&amp;void 0!==t.window&amp;&amp;t.window instanceof WorkerGlobalScope&amp;&amp;(t.window.worker=new _t(t.window)),_t})),n(0,(function(t){var e=t.createCommonjsModule((function(t){function e(t){return!r(t)}function r(t){return&quot;undefined&quot;==typeof window||&quot;undefined&quot;==typeof document?&quot;not a browser&quot;:Array.prototype&amp;&amp;Array.prototype.every&amp;&amp;Array.prototype.filter&amp;&amp;Array.prototype.forEach&amp;&amp;Array.prototype.indexOf&amp;&amp;Array.prototype.lastIndexOf&amp;&amp;Array.prototype.map&amp;&amp;Array.prototype.some&amp;&amp;Array.prototype.reduce&amp;&amp;Array.prototype.reduceRight&amp;&amp;Array.isArray?Function.prototype&amp;&amp;Function.prototype.bind?Object.keys&amp;&amp;Object.create&amp;&amp;Object.getPrototypeOf&amp;&amp;Object.getOwnPropertyNames&amp;&amp;Object.isSealed&amp;&amp;Object.isFrozen&amp;&amp;Object.isExtensible&amp;&amp;Object.getOwnPropertyDescriptor&amp;&amp;Object.defineProperty&amp;&amp;Object.defineProperties&amp;&amp;Object.seal&amp;&amp;Object.freeze&amp;&amp;Object.preventExtensions?&quot;JSON&quot;in window&amp;&amp;&quot;parse&quot;in JSON&amp;&amp;&quot;stringify&quot;in JSON?function(){if(!(&quot;Worker&quot;in window&amp;&amp;&quot;Blob&quot;in window&amp;&amp;&quot;URL&quot;in window))return!1;var t,e,r=new Blob([&quot;&quot;],{type:&quot;text/javascript&quot;}),n=URL.createObjectURL(r);try{e=new Worker(n),t=!0}catch(e){t=!1}return e&amp;&amp;e.terminate(),URL.revokeObjectURL(n),t}()?&quot;Uint8ClampedArray&quot;in window?ArrayBuffer.isView?function(){var t=document.createElement(&quot;canvas&quot;);t.width=t.height=1;var e=t.getContext(&quot;2d&quot;);if(!e)return!1;var r=e.getImageData(0,0,1,1);return r&amp;&amp;r.width===t.width}()?(void 0===n[r=t&amp;&amp;t.failIfMajorPerformanceCaveat]&amp;&amp;(n[r]=function(t){var r=function(t){var r=document.createElement(&quot;canvas&quot;),n=Object.create(e.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=t,r.probablySupportsContext?r.probablySupportsContext(&quot;webgl&quot;,n)||r.probablySupportsContext(&quot;experimental-webgl&quot;,n):r.supportsContext?r.supportsContext(&quot;webgl&quot;,n)||r.supportsContext(&quot;experimental-webgl&quot;,n):r.getContext(&quot;webgl&quot;,n)||r.getContext(&quot;experimental-webgl&quot;,n)}(t);if(!r)return!1;var n=r.createShader(r.VERTEX_SHADER);return!(!n||r.isContextLost())&amp;&amp;(r.shaderSource(n,&quot;void main() {}&quot;),r.compileShader(n),!0===r.getShaderParameter(n,r.COMPILE_STATUS))}(r)),n[r]?void 0:&quot;insufficient WebGL support&quot;):&quot;insufficient Canvas/getImageData support&quot;:&quot;insufficient ArrayBuffer support&quot;:&quot;insufficient Uint8ClampedArray support&quot;:&quot;insufficient worker support&quot;:&quot;insufficient JSON support&quot;:&quot;insufficient Object support&quot;:&quot;insufficient Function support&quot;:&quot;insufficent Array support&quot;;var r}t.exports?t.exports=e:window&amp;&amp;(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=e,window.mapboxgl.notSupportedReason=r);var n={};e.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}})),r={create:function(e,r,n){var i=t.window.document.createElement(e);return void 0!==r&amp;&amp;(i.className=r),n&amp;&amp;n.appendChild(i),i},createNS:function(e,r){return t.window.document.createElementNS(e,r)}},n=t.window.document.documentElement.style;function i(t){if(!n)return t[0];for(var e=0;e&lt;t.length;e++)if(t[e]in n)return t[e];return t[0]}var a,o=i([&quot;userSelect&quot;,&quot;MozUserSelect&quot;,&quot;WebkitUserSelect&quot;,&quot;msUserSelect&quot;]);r.disableDrag=function(){n&amp;&amp;o&amp;&amp;(a=n[o],n[o]=&quot;none&quot;)},r.enableDrag=function(){n&amp;&amp;o&amp;&amp;(n[o]=a)};var s=i([&quot;transform&quot;,&quot;WebkitTransform&quot;]);r.setTransform=function(t,e){t.style[s]=e};var l=!1;try{var c=Object.defineProperty({},&quot;passive&quot;,{get:function(){l=!0}});t.window.addEventListener(&quot;test&quot;,c,c),t.window.removeEventListener(&quot;test&quot;,c,c)}catch(t){l=!1}r.addEventListener=function(t,e,r,n){void 0===n&amp;&amp;(n={}),t.addEventListener(e,r,&quot;passive&quot;in n&amp;&amp;l?n:n.capture)},r.removeEventListener=function(t,e,r,n){void 0===n&amp;&amp;(n={}),t.removeEventListener(e,r,&quot;passive&quot;in n&amp;&amp;l?n:n.capture)};var u=function(e){e.preventDefault(),e.stopPropagation(),t.window.removeEventListener(&quot;click&quot;,u,!0)};function f(t){var e=t.userImage;return!!(e&amp;&amp;e.render&amp;&amp;e.render())&amp;&amp;(t.data.replace(new Uint8Array(e.data.buffer)),!0)}r.suppressClick=function(){t.window.addEventListener(&quot;click&quot;,u,!0),t.window.setTimeout((function(){t.window.removeEventListener(&quot;click&quot;,u,!0)}),0)},r.mousePos=function(e,r){var n=e.getBoundingClientRect();return new t.Point(r.clientX-n.left-e.clientLeft,r.clientY-n.top-e.clientTop)},r.touchPos=function(e,r){for(var n=e.getBoundingClientRect(),i=[],a=0;a&lt;r.length;a++)i.push(new t.Point(r[a].clientX-n.left-e.clientLeft,r[a].clientY-n.top-e.clientTop));return i},r.mouseButton=function(e){return void 0!==t.window.InstallTrigger&amp;&amp;2===e.button&amp;&amp;e.ctrlKey&amp;&amp;t.window.navigator.platform.toUpperCase().indexOf(&quot;MAC&quot;)&gt;=0?0:e.button},r.remove=function(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)};var h=function(e){function r(){e.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.isLoaded=function(){return this.loaded},r.prototype.setLoaded=function(t){if(this.loaded!==t&amp;&amp;(this.loaded=t,t)){for(var e=0,r=this.requestors;e&lt;r.length;e+=1){var n=r[e];this._notify(n.ids,n.callback)}this.requestors=[]}},r.prototype.getImage=function(t){return this.images[t]},r.prototype.addImage=function(t,e){this._validate(t,e)&amp;&amp;(this.images[t]=e)},r.prototype._validate=function(e,r){var n=!0;return this._validateStretch(r.stretchX,r.data&amp;&amp;r.data.width)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;stretchX&quot; value'))),n=!1),this._validateStretch(r.stretchY,r.data&amp;&amp;r.data.height)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;stretchY&quot; value'))),n=!1),this._validateContent(r.content,r)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;content&quot; value'))),n=!1),n},r.prototype._validateStretch=function(t,e){if(!t)return!0;for(var r=0,n=0,i=t;n&lt;i.length;n+=1){var a=i[n];if(a[0]&lt;r||a[1]&lt;a[0]||e&lt;a[1])return!1;r=a[1]}return!0},r.prototype._validateContent=function(t,e){return!(t&amp;&amp;(4!==t.length||t[0]&lt;0||e.data.width&lt;t[0]||t[1]&lt;0||e.data.height&lt;t[1]||t[2]&lt;0||e.data.width&lt;t[2]||t[3]&lt;0||e.data.height&lt;t[3]||t[2]&lt;t[0]||t[3]&lt;t[1]))},r.prototype.updateImage=function(t,e){e.version=this.images[t].version+1,this.images[t]=e,this.updatedImages[t]=!0},r.prototype.removeImage=function(t){var e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&amp;&amp;e.userImage.onRemove&amp;&amp;e.userImage.onRemove()},r.prototype.listImages=function(){return Object.keys(this.images)},r.prototype.getImages=function(t,e){var r=!0;if(!this.isLoaded())for(var n=0,i=t;n&lt;i.length;n+=1)this.images[i[n]]||(r=!1);this.isLoaded()||r?this._notify(t,e):this.requestors.push({ids:t,callback:e})},r.prototype._notify=function(e,r){for(var n={},i=0,a=e;i&lt;a.length;i+=1){var o=a[i];this.images[o]||this.fire(new t.Event(&quot;styleimagemissing&quot;,{id:o}));var s=this.images[o];s?n[o]={data:s.data.clone(),pixelRatio:s.pixelRatio,sdf:s.sdf,version:s.version,stretchX:s.stretchX,stretchY:s.stretchY,content:s.content,hasRenderCallback:Boolean(s.userImage&amp;&amp;s.userImage.render)}:t.warnOnce('Image &quot;'+o+'&quot; could not be loaded. Please make sure you have added the image with map.addImage() or a &quot;sprite&quot; property in your style. You can provide missing images by listening for the &quot;styleimagemissing&quot; map event.')}r(null,n)},r.prototype.getPixelSize=function(){var t=this.atlasImage;return{width:t.width,height:t.height}},r.prototype.getPattern=function(e){var r=this.patterns[e],n=this.getImage(e);if(!n)return null;if(r&amp;&amp;r.position.version===n.version)return r.position;if(r)r.position.version=n.version;else{var i={w:n.data.width+2,h:n.data.height+2,x:0,y:0},a=new t.ImagePosition(i,n);this.patterns[e]={bin:i,position:a}}return this._updatePatternAtlas(),this.patterns[e].position},r.prototype.bind=function(e){var r=e.gl;this.atlasTexture?this.dirty&amp;&amp;(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new t.Texture(e,this.atlasImage,r.RGBA),this.atlasTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)},r.prototype._updatePatternAtlas=function(){var e=[];for(var r in this.patterns)e.push(this.patterns[r].bin);var n=t.potpack(e),i=n.w,a=n.h,o=this.atlasImage;for(var s in o.resize({width:i||1,height:a||1}),this.patterns){var l=this.patterns[s].bin,c=l.x+1,u=l.y+1,f=this.images[s].data,h=f.width,p=f.height;t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u},{width:h,height:p}),t.RGBAImage.copy(f,o,{x:0,y:p-1},{x:c,y:u-1},{width:h,height:1}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u+p},{width:h,height:1}),t.RGBAImage.copy(f,o,{x:h-1,y:0},{x:c-1,y:u},{width:1,height:p}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c+h,y:u},{width:1,height:p})}this.dirty=!0},r.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},r.prototype.dispatchRenderCallbacks=function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var n=r[e];if(!this.callbackDispatchedThisFrame[n]){this.callbackDispatchedThisFrame[n]=!0;var i=this.images[n];f(i)&amp;&amp;this.updateImage(n,i)}}},r}(t.Evented),p=m,d=m,g=1e20;function m(t,e,r,n,i,a){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=n||.25,this.fontFamily=i||&quot;sans-serif&quot;,this.fontWeight=a||&quot;normal&quot;,this.radius=r||8;var o=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement(&quot;canvas&quot;),this.canvas.width=this.canvas.height=o,this.ctx=this.canvas.getContext(&quot;2d&quot;),this.ctx.font=this.fontWeight+&quot; &quot;+this.fontSize+&quot;px &quot;+this.fontFamily,this.ctx.textBaseline=&quot;middle&quot;,this.ctx.fillStyle=&quot;black&quot;,this.gridOuter=new Float64Array(o*o),this.gridInner=new Float64Array(o*o),this.f=new Float64Array(o),this.d=new Float64Array(o),this.z=new Float64Array(o+1),this.v=new Int16Array(o),this.middle=Math.round(o/2*(navigator.userAgent.indexOf(&quot;Gecko/&quot;)&gt;=0?1.2:1))}function v(t,e,r,n,i,a,o){for(var s=0;s&lt;e;s++){for(var l=0;l&lt;r;l++)n[l]=t[l*e+s];for(y(n,i,a,o,r),l=0;l&lt;r;l++)t[l*e+s]=i[l]}for(l=0;l&lt;r;l++){for(s=0;s&lt;e;s++)n[s]=t[l*e+s];for(y(n,i,a,o,e),s=0;s&lt;e;s++)t[l*e+s]=Math.sqrt(i[s])}}function y(t,e,r,n,i){r[0]=0,n[0]=-g,n[1]=+g;for(var a=1,o=0;a&lt;i;a++){for(var s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);s&lt;=n[o];)o--,s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);r[++o]=a,n[o]=s,n[o+1]=+g}for(a=0,o=0;a&lt;i;a++){for(;n[o+1]&lt;a;)o++;e[a]=(a-r[o])*(a-r[o])+t[r[o]]}}m.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),r=new Uint8ClampedArray(this.size*this.size),n=0;n&lt;this.size*this.size;n++){var i=e.data[4*n+3]/255;this.gridOuter[n]=1===i?0:0===i?g:Math.pow(Math.max(0,.5-i),2),this.gridInner[n]=1===i?g:0===i?0:Math.pow(Math.max(0,i-.5),2)}for(v(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),v(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),n=0;n&lt;this.size*this.size;n++)r[n]=Math.max(0,Math.min(255,Math.round(255-255*((this.gridOuter[n]-this.gridInner[n])/this.radius+this.cutoff))));return r},p.default=d;var x=function(t,e){this.requestManager=t,this.localIdeographFontFamily=e,this.entries={}};x.prototype.setURL=function(t){this.url=t},x.prototype.getGlyphs=function(e,r){var n=this,i=[];for(var a in e)for(var o=0,s=e[a];o&lt;s.length;o+=1)i.push({stack:a,id:s[o]});t.asyncAll(i,(function(t,e){var r=t.stack,i=t.id,a=n.entries[r];a||(a=n.entries[r]={glyphs:{},requests:{},ranges:{}});var o=a.glyphs[i];if(void 0===o){if(o=n._tinySDF(a,r,i))return a.glyphs[i]=o,void e(null,{stack:r,id:i,glyph:o});var s=Math.floor(i/256);if(256*s&gt;65535)e(new Error(&quot;glyphs &gt; 65535 not supported&quot;));else if(a.ranges[s])e(null,{stack:r,id:i,glyph:o});else{var l=a.requests[s];l||(l=a.requests[s]=[],x.loadGlyphRange(r,s,n.url,n.requestManager,(function(t,e){if(e){for(var r in e)n._doesCharSupportLocalGlyph(+r)||(a.glyphs[+r]=e[+r]);a.ranges[s]=!0}for(var i=0,o=l;i&lt;o.length;i+=1)(0,o[i])(t,e);delete a.requests[s]}))),l.push((function(t,n){t?e(t):n&amp;&amp;e(null,{stack:r,id:i,glyph:n[i]||null})}))}}else e(null,{stack:r,id:i,glyph:o})}),(function(t,e){if(t)r(t);else if(e){for(var n={},i=0,a=e;i&lt;a.length;i+=1){var o=a[i],s=o.stack,l=o.id,c=o.glyph;(n[s]||(n[s]={}))[l]=c&amp;&amp;{id:c.id,bitmap:c.bitmap.clone(),metrics:c.metrics}}r(null,n)}}))},x.prototype._doesCharSupportLocalGlyph=function(e){return!!this.localIdeographFontFamily&amp;&amp;(t.isChar[&quot;CJK Unified Ideographs&quot;](e)||t.isChar[&quot;Hangul Syllables&quot;](e)||t.isChar.Hiragana(e)||t.isChar.Katakana(e))},x.prototype._tinySDF=function(e,r,n){var i=this.localIdeographFontFamily;if(i&amp;&amp;this._doesCharSupportLocalGlyph(n)){var a=e.tinySDF;if(!a){var o=&quot;400&quot;;/bold/i.test(r)?o=&quot;900&quot;:/medium/i.test(r)?o=&quot;500&quot;:/light/i.test(r)&amp;&amp;(o=&quot;200&quot;),a=e.tinySDF=new x.TinySDF(24,3,8,.25,i,o)}return{id:n,bitmap:new t.AlphaImage({width:30,height:30},a.draw(String.fromCharCode(n))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},x.loadGlyphRange=function(e,r,n,i,a){var o=256*r,s=o+255,l=i.transformRequest(i.normalizeGlyphsURL(n).replace(&quot;{fontstack}&quot;,e).replace(&quot;{range}&quot;,o+&quot;-&quot;+s),t.ResourceType.Glyphs);t.getArrayBuffer(l,(function(e,r){if(e)a(e);else if(r){for(var n={},i=0,o=t.parseGlyphPBF(r);i&lt;o.length;i+=1){var s=o[i];n[s.id]=s}a(null,n)}}))},x.TinySDF=p;var b=function(){this.specification=t.styleSpec.light.position};b.prototype.possiblyEvaluate=function(e,r){return t.sphericalToCartesian(e.expression.evaluate(r))},b.prototype.interpolate=function(e,r,n){return{x:t.number(e.x,r.x,n),y:t.number(e.y,r.y,n),z:t.number(e.z,r.z,n)}};var _=new t.Properties({anchor:new t.DataConstantProperty(t.styleSpec.light.anchor),position:new b,color:new t.DataConstantProperty(t.styleSpec.light.color),intensity:new t.DataConstantProperty(t.styleSpec.light.intensity)}),w=function(e){function r(r){e.call(this),this._transitionable=new t.Transitionable(_),this.setLight(r),this._transitioning=this._transitionable.untransitioned()}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getLight=function(){return this._transitionable.serialize()},r.prototype.setLight=function(e,r){if(void 0===r&amp;&amp;(r={}),!this._validate(t.validateLight,e,r))for(var n in e){var i=e[n];t.endsWith(n,&quot;-transition&quot;)?this._transitionable.setTransition(n.slice(0,-&quot;-transition&quot;.length),i):this._transitionable.setValue(n,i)}},r.prototype.updateTransitions=function(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)},r.prototype.hasTransition=function(){return this._transitioning.hasTransition()},r.prototype.recalculate=function(t){this.properties=this._transitioning.possiblyEvaluate(t)},r.prototype._validate=function(e,r,n){return(!n||!1!==n.validate)&amp;&amp;t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:r,style:{glyphs:!0,sprite:!0},styleSpec:t.styleSpec})))},r}(t.Evented),T=function(t,e){this.width=t,this.height=e,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}};T.prototype.getDash=function(t,e){var r=t.join(&quot;,&quot;)+String(e);return this.dashEntry[r]||(this.dashEntry[r]=this.addDash(t,e)),this.dashEntry[r]},T.prototype.getDashRanges=function(t,e,r){var n=[],i=t.length%2==1?-t[t.length-1]*r:0,a=t[0]*r,o=!0;n.push({left:i,right:a,isDash:o,zeroLength:0===t[0]});for(var s=t[0],l=1;l&lt;t.length;l++){var c=t[l];n.push({left:i=s*r,right:a=(s+=c)*r,isDash:o=!o,zeroLength:0===c})}return n},T.prototype.addRoundDash=function(t,e,r){for(var n=e/2,i=-r;i&lt;=r;i++)for(var a=this.width*(this.nextRow+r+i),o=0,s=t[o],l=0;l&lt;this.width;l++){l/s.right&gt;1&amp;&amp;(s=t[++o]);var c=Math.abs(l-s.left),u=Math.abs(l-s.right),f=Math.min(c,u),h=void 0,p=i/r*(n+1);if(s.isDash){var d=n-Math.abs(p);h=Math.sqrt(f*f+d*d)}else h=n-Math.sqrt(f*f+p*p);this.data[a+l]=Math.max(0,Math.min(255,h+128))}},T.prototype.addRegularDash=function(t){for(var e=t.length-1;e&gt;=0;--e){var r=t[e],n=t[e+1];r.zeroLength?t.splice(e,1):n&amp;&amp;n.isDash===r.isDash&amp;&amp;(n.left=r.left,t.splice(e,1))}var i=t[0],a=t[t.length-1];i.isDash===a.isDash&amp;&amp;(i.left=a.left-this.width,a.right=i.right+this.width);for(var o=this.width*this.nextRow,s=0,l=t[s],c=0;c&lt;this.width;c++){c/l.right&gt;1&amp;&amp;(l=t[++s]);var u=Math.abs(c-l.left),f=Math.abs(c-l.right),h=Math.min(u,f);this.data[o+c]=Math.max(0,Math.min(255,(l.isDash?h:-h)+128))}},T.prototype.addDash=function(e,r){var n=r?7:0,i=2*n+1;if(this.nextRow+i&gt;this.height)return t.warnOnce(&quot;LineAtlas out of space&quot;),null;for(var a=0,o=0;o&lt;e.length;o++)a+=e[o];if(0!==a){var s=this.width/a,l=this.getDashRanges(e,this.width,s);r?this.addRoundDash(l,s,n):this.addRegularDash(l)}var c={y:(this.nextRow+n+.5)/this.height,height:2*n/this.height,width:a};return this.nextRow+=i,this.dirty=!0,c},T.prototype.bind=function(t){var e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&amp;&amp;(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.ALPHA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.ALPHA,this.width,this.height,0,e.ALPHA,e.UNSIGNED_BYTE,this.data))};var k=function e(r,n){this.workerPool=r,this.actors=[],this.currentActor=0,this.id=t.uniqueId();for(var i=this.workerPool.acquire(this.id),a=0;a&lt;i.length;a++){var o=new e.Actor(i[a],n,this.id);o.name=&quot;Worker &quot;+a,this.actors.push(o)}};function M(e,r,n){var i=function(i,a){if(i)return n(i);if(a){var o=t.pick(t.extend(a,e),[&quot;tiles&quot;,&quot;minzoom&quot;,&quot;maxzoom&quot;,&quot;attribution&quot;,&quot;mapbox_logo&quot;,&quot;bounds&quot;,&quot;scheme&quot;,&quot;tileSize&quot;,&quot;encoding&quot;]);a.vector_layers&amp;&amp;(o.vectorLayers=a.vector_layers,o.vectorLayerIds=o.vectorLayers.map((function(t){return t.id}))),o.tiles=r.canonicalizeTileset(o,e.url),n(null,o)}};return e.url?t.getJSON(r.transformRequest(r.normalizeSourceURL(e.url),t.ResourceType.Source),i):t.browser.frame((function(){return i(null,e)}))}k.prototype.broadcast=function(e,r,n){t.asyncAll(this.actors,(function(t,n){t.send(e,r,n)}),n=n||function(){})},k.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},k.prototype.remove=function(){this.actors.forEach((function(t){t.remove()})),this.actors=[],this.workerPool.release(this.id)},k.Actor=t.Actor;var A=function(e,r,n){this.bounds=t.LngLatBounds.convert(this.validateBounds(e)),this.minzoom=r||0,this.maxzoom=n||24};A.prototype.validateBounds=function(t){return Array.isArray(t)&amp;&amp;4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]},A.prototype.contains=function(e){var r=Math.pow(2,e.z),n=Math.floor(t.mercatorXfromLng(this.bounds.getWest())*r),i=Math.floor(t.mercatorYfromLat(this.bounds.getNorth())*r),a=Math.ceil(t.mercatorXfromLng(this.bounds.getEast())*r),o=Math.ceil(t.mercatorYfromLat(this.bounds.getSouth())*r);return e.x&gt;=n&amp;&amp;e.x&lt;a&amp;&amp;e.y&gt;=i&amp;&amp;e.y&lt;o};var S=function(e){function r(r,n,i,a){if(e.call(this),this.id=r,this.dispatcher=i,this.type=&quot;vector&quot;,this.minzoom=0,this.maxzoom=22,this.scheme=&quot;xyz&quot;,this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,t.extend(this,t.pick(n,[&quot;url&quot;,&quot;scheme&quot;,&quot;tileSize&quot;,&quot;promoteId&quot;])),this._options=t.extend({type:&quot;vector&quot;},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error(&quot;vector tile sources must have a tileSize of 512&quot;);this.setEventedParent(a)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._tileJSONRequest=M(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(t.extend(e,n),n.bounds&amp;&amp;(e.tileBounds=new A(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles,e.map._requestManager._customAccessToken),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken,e.map._requestManager._customAccessToken),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme)),i={request:this.map._requestManager.transformRequest(n,t.ResourceType.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function a(n,i){return delete e.request,e.aborted?r(null):n&amp;&amp;404!==n.status?r(n):(i&amp;&amp;i.resourceTiming&amp;&amp;(e.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&amp;&amp;i&amp;&amp;e.setExpiryData(i),e.loadVectorData(i,this.map.painter),t.cacheEntryPossiblyAdded(this.dispatcher),r(null),void(e.reloadCallback&amp;&amp;(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}i.request.collectResourceTiming=this._collectResourceTiming,e.actor&amp;&amp;&quot;expired&quot;!==e.state?&quot;loading&quot;===e.state?e.reloadCallback=r:e.request=e.actor.send(&quot;reloadTile&quot;,i,a.bind(this)):(e.actor=this.dispatcher.getActor(),e.request=e.actor.send(&quot;loadTile&quot;,i,a.bind(this)))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.actor&amp;&amp;t.actor.send(&quot;abortTile&quot;,{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.unloadTile=function(t){t.unloadVectorData(),t.actor&amp;&amp;t.actor.send(&quot;removeTile&quot;,{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.hasTransition=function(){return!1},r}(t.Evented),E=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.dispatcher=i,this.setEventedParent(a),this.type=&quot;raster&quot;,this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme=&quot;xyz&quot;,this.tileSize=512,this._loaded=!1,this._options=t.extend({type:&quot;raster&quot;},n),t.extend(this,t.pick(n,[&quot;url&quot;,&quot;scheme&quot;,&quot;tileSize&quot;]))}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._tileJSONRequest=M(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(t.extend(e,n),n.bounds&amp;&amp;(e.tileBounds=new A(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.loadTile=function(e,r){var n=this,i=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);e.request=t.getImage(this.map._requestManager.transformRequest(i,t.ResourceType.Tile),(function(i,a){if(delete e.request,e.aborted)e.state=&quot;unloaded&quot;,r(null);else if(i)e.state=&quot;errored&quot;,r(i);else if(a){n.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(a),delete a.cacheControl,delete a.expires;var o=n.map.painter.context,s=o.gl;e.texture=n.map.painter.getTileTexture(a.width),e.texture?e.texture.update(a,{useMipmap:!0}):(e.texture=new t.Texture(o,a,s.RGBA,{useMipmap:!0}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),o.extTextureFilterAnisotropic&amp;&amp;s.texParameterf(s.TEXTURE_2D,o.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,o.extTextureFilterAnisotropicMax)),e.state=&quot;loaded&quot;,t.cacheEntryPossiblyAdded(n.dispatcher),r(null)}}))},r.prototype.abortTile=function(t,e){t.request&amp;&amp;(t.request.cancel(),delete t.request),e()},r.prototype.unloadTile=function(t,e){t.texture&amp;&amp;this.map.painter.saveTileTexture(t.texture),e()},r.prototype.hasTransition=function(){return!1},r}(t.Evented),C=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),this.type=&quot;raster-dem&quot;,this.maxzoom=22,this._options=t.extend({type:&quot;raster-dem&quot;},n),this.encoding=n.encoding||&quot;mapbox&quot;}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.serialize=function(){return{type:&quot;raster-dem&quot;,url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);function i(t,n){t&amp;&amp;(e.state=&quot;errored&quot;,r(t)),n&amp;&amp;(e.dem=n,e.needsHillshadePrepare=!0,e.state=&quot;loaded&quot;,r(null))}e.request=t.getImage(this.map._requestManager.transformRequest(n,t.ResourceType.Tile),function(n,a){if(delete e.request,e.aborted)e.state=&quot;unloaded&quot;,r(null);else if(n)e.state=&quot;errored&quot;,r(n);else if(a){this.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(a),delete a.cacheControl,delete a.expires;var o=t.window.ImageBitmap&amp;&amp;a instanceof t.window.ImageBitmap&amp;&amp;t.offscreenCanvasSupported()?a:t.browser.getImageData(a,1),s={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:o,encoding:this.encoding};e.actor&amp;&amp;&quot;expired&quot;!==e.state||(e.actor=this.dispatcher.getActor(),e.actor.send(&quot;loadDEMTile&quot;,s,i.bind(this)))}}.bind(this)),e.neighboringTiles=this._getNeighboringTiles(e.tileID)},r.prototype._getNeighboringTiles=function(e){var r=e.canonical,n=Math.pow(2,r.z),i=(r.x-1+n)%n,a=0===r.x?e.wrap-1:e.wrap,o=(r.x+1+n)%n,s=r.x+1===n?e.wrap+1:e.wrap,l={};return l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y).key]={backfilled:!1},r.y&gt;0&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y-1).key]={backfilled:!1}),r.y+1&lt;n&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y+1).key]={backfilled:!1}),l},r.prototype.unloadTile=function(t){t.demTexture&amp;&amp;this.map.painter.saveTileTexture(t.demTexture),t.fbo&amp;&amp;(t.fbo.destroy(),delete t.fbo),t.dem&amp;&amp;delete t.dem,delete t.neighboringTiles,t.state=&quot;unloaded&quot;,t.actor&amp;&amp;t.actor.send(&quot;removeDEMTile&quot;,{uid:t.uid,source:this.id})},r}(E),L=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.type=&quot;geojson&quot;,this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=i.getActor(),this.setEventedParent(a),this._data=n.data,this._options=t.extend({},n),this._collectResourceTiming=n.collectResourceTiming,this._resourceTiming=[],void 0!==n.maxzoom&amp;&amp;(this.maxzoom=n.maxzoom),n.type&amp;&amp;(this.type=n.type),n.attribution&amp;&amp;(this.attribution=n.attribution),this.promoteId=n.promoteId;var o=t.EXTENT/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*o,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*o,extent:t.EXTENT,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?Math.min(n.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,extent:t.EXTENT,radius:(n.clusterRadius||50)*o,log:!1,generateId:n.generateId||!1},clusterProperties:n.clusterProperties},n.workerOptions)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._updateWorkerData((function(r){if(r)e.fire(new t.ErrorEvent(r));else{var n={dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;};e._collectResourceTiming&amp;&amp;e._resourceTiming&amp;&amp;e._resourceTiming.length&gt;0&amp;&amp;(n.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event(&quot;data&quot;,n))}}))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setData=function(e){var r=this;return this._data=e,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._updateWorkerData((function(e){if(e)r.fire(new t.ErrorEvent(e));else{var n={dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;};r._collectResourceTiming&amp;&amp;r._resourceTiming&amp;&amp;r._resourceTiming.length&gt;0&amp;&amp;(n.resourceTiming=r._resourceTiming,r._resourceTiming=[]),r.fire(new t.Event(&quot;data&quot;,n))}})),this},r.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send(&quot;geojson.getClusterExpansionZoom&quot;,{clusterId:t,source:this.id},e),this},r.prototype.getClusterChildren=function(t,e){return this.actor.send(&quot;geojson.getClusterChildren&quot;,{clusterId:t,source:this.id},e),this},r.prototype.getClusterLeaves=function(t,e,r,n){return this.actor.send(&quot;geojson.getClusterLeaves&quot;,{source:this.id,clusterId:t,limit:e,offset:r},n),this},r.prototype._updateWorkerData=function(e){var r=this;this._loaded=!1;var n=t.extend({},this.workerOptions),i=this._data;&quot;string&quot;==typeof i?(n.request=this.map._requestManager.transformRequest(t.browser.resolveURL(i),t.ResourceType.Source),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(i),this.actor.send(this.type+&quot;.loadData&quot;,n,(function(t,i){r._removed||i&amp;&amp;i.abandoned||(r._loaded=!0,i&amp;&amp;i.resourceTiming&amp;&amp;i.resourceTiming[r.id]&amp;&amp;(r._resourceTiming=i.resourceTiming[r.id].slice(0)),r.actor.send(r.type+&quot;.coalesce&quot;,{source:n.source},null),e(t))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.loadTile=function(e,r){var n=this,i=e.actor?&quot;reloadTile&quot;:&quot;loadTile&quot;;e.actor=this.actor,e.request=this.actor.send(i,{type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(function(t,a){return delete e.request,e.unloadVectorData(),e.aborted?r(null):t?r(t):(e.loadVectorData(a,n.map.painter,&quot;reloadTile&quot;===i),r(null))}))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.aborted=!0},r.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send(&quot;removeTile&quot;,{uid:t.uid,type:this.type,source:this.id})},r.prototype.onRemove=function(){this._removed=!0,this.actor.send(&quot;removeSource&quot;,{type:this.type,source:this.id})},r.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},r.prototype.hasTransition=function(){return!1},r}(t.Evented),I=t.createLayout([{name:&quot;a_pos&quot;,type:&quot;Int16&quot;,components:2},{name:&quot;a_texture_pos&quot;,type:&quot;Int16&quot;,components:2}]),P=function(e){function r(t,r,n,i){e.call(this),this.id=t,this.dispatcher=n,this.coordinates=r.coordinates,this.type=&quot;image&quot;,this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=r}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(e,r){var n=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(function(i,a){n._loaded=!0,i?n.fire(new t.ErrorEvent(i)):a&amp;&amp;(n.image=a,e&amp;&amp;(n.coordinates=e),r&amp;&amp;r(),n._finishLoading())}))},r.prototype.loaded=function(){return this._loaded},r.prototype.updateImage=function(t){var e=this;return this.image&amp;&amp;t.url?(this.options.url=t.url,this.load(t.coordinates,(function(){e.texture=null})),this):this},r.prototype._finishLoading=function(){this.map&amp;&amp;(this.setCoordinates(this.coordinates),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setCoordinates=function(e){var r=this;this.coordinates=e;var n=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){for(var r=1/0,n=1/0,i=-1/0,a=-1/0,o=0,s=e;o&lt;s.length;o+=1){var l=s[o];r=Math.min(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.x),a=Math.max(a,l.y)}var c=Math.max(i-r,a-n),u=Math.max(0,Math.floor(-Math.log(c)/Math.LN2)),f=Math.pow(2,u);return new t.CanonicalTileID(u,Math.floor((r+i)/2*f),Math.floor((n+a)/2*f))}(n),this.minzoom=this.maxzoom=this.tileID.z;var i=n.map((function(t){return r.tileID.getTilePoint(t)._round()}));return this._boundsArray=new t.StructArrayLayout4i8,this._boundsArray.emplaceBack(i[0].x,i[0].y,0,0),this._boundsArray.emplaceBack(i[1].x,i[1].y,t.EXTENT,0),this._boundsArray.emplaceBack(i[3].x,i[3].y,0,t.EXTENT),this._boundsArray.emplaceBack(i[2].x,i[2].y,t.EXTENT,t.EXTENT),this.boundsBuffer&amp;&amp;(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})),this},r.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&amp;&amp;this.image){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new t.Texture(e,this.image,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];&quot;loaded&quot;!==i.state&amp;&amp;(i.state=&quot;loaded&quot;,i.texture=this.texture)}}},r.prototype.loadTile=function(t,e){this.tileID&amp;&amp;this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state=&quot;errored&quot;,e(null))},r.prototype.serialize=function(){return{type:&quot;image&quot;,url:this.options.url,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return!1},r}(t.Evented),z=function(e){function r(t,r,n,i){e.call(this,t,r,n,i),this.roundZoom=!0,this.type=&quot;video&quot;,this.options=r}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1;var r=this.options;this.urls=[];for(var n=0,i=r.urls;n&lt;i.length;n+=1)this.urls.push(this.map._requestManager.transformRequest(i[n],t.ResourceType.Source).url);t.getVideo(this.urls,(function(r,n){e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(e.video=n,e.video.loop=!0,e.video.addEventListener(&quot;playing&quot;,(function(){e.map.triggerRepaint()})),e.map&amp;&amp;e.video.play(),e._finishLoading())}))},r.prototype.pause=function(){this.video&amp;&amp;this.video.pause()},r.prototype.play=function(){this.video&amp;&amp;this.video.play()},r.prototype.seek=function(e){if(this.video){var r=this.video.seekable;e&lt;r.start(0)||e&gt;r.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+this.id,null,&quot;Playback for this video can be set only between the &quot;+r.start(0)+&quot; and &quot;+r.end(0)+&quot;-second mark.&quot;))):this.video.currentTime=e}},r.prototype.getVideo=function(){return this.video},r.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&amp;&amp;(this.video.play(),this.setCoordinates(this.coordinates)))},r.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState&lt;2)){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];&quot;loaded&quot;!==i.state&amp;&amp;(i.state=&quot;loaded&quot;,i.texture=this.texture)}}},r.prototype.serialize=function(){return{type:&quot;video&quot;,urls:this.urls,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this.video&amp;&amp;!this.video.paused},r}(P),O=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),n.coordinates?Array.isArray(n.coordinates)&amp;&amp;4===n.coordinates.length&amp;&amp;!n.coordinates.some((function(t){return!Array.isArray(t)||2!==t.length||t.some((function(t){return&quot;number&quot;!=typeof t}))}))||this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'&quot;coordinates&quot; property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'missing required property &quot;coordinates&quot;'))),n.animate&amp;&amp;&quot;boolean&quot;!=typeof n.animate&amp;&amp;this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'optional &quot;animate&quot; property must be a boolean value'))),n.canvas?&quot;string&quot;==typeof n.canvas||n.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'&quot;canvas&quot; must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'missing required property &quot;canvas&quot;'))),this.options=n,this.animate=void 0===n.animate||n.animate}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error(&quot;Canvas dimensions cannot be less than or equal to zero.&quot;))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&amp;&amp;(this.prepare(),this._playing=!1)},this._finishLoading())},r.prototype.getCanvas=function(){return this.canvas},r.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&amp;&amp;this.animate&amp;&amp;this.play()},r.prototype.onRemove=function(){this.pause()},r.prototype.prepare=function(){var e=!1;if(this.canvas.width!==this.width&amp;&amp;(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&amp;&amp;(this.height=this.canvas.height,e=!0),!this._hasInvalidDimensions()&amp;&amp;0!==Object.keys(this.tiles).length){var r=this.map.painter.context,n=r.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=r.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&amp;&amp;this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(r,this.canvas,n.RGBA,{premultiply:!0}),this.tiles){var a=this.tiles[i];&quot;loaded&quot;!==a.state&amp;&amp;(a.state=&quot;loaded&quot;,a.texture=this.texture)}}},r.prototype.serialize=function(){return{type:&quot;canvas&quot;,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this._playing},r.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];t&lt;e.length;t+=1){var r=e[t];if(isNaN(r)||r&lt;=0)return!0}return!1},r}(P),D={vector:S,raster:E,&quot;raster-dem&quot;:C,geojson:L,video:z,image:P,canvas:O};function R(e,r){var n=t.identity([]);return t.translate(n,n,[1,1,0]),t.scale(n,n,[.5*e.width,.5*e.height,1]),t.multiply(n,n,e.calculatePosMatrix(r.toUnwrapped()))}function F(t,e,r,n,i,a){var o=function(t,e,r){if(t)for(var n=0,i=t;n&lt;i.length;n+=1){var a=e[i[n]];if(a&amp;&amp;a.source===r&amp;&amp;&quot;fill-extrusion&quot;===a.type)return!0}else for(var o in e){var s=e[o];if(s.source===r&amp;&amp;&quot;fill-extrusion&quot;===s.type)return!0}return!1}(i&amp;&amp;i.layers,e,t.id),s=a.maxPitchScaleFactor(),l=t.tilesIn(n,s,o);l.sort(B);for(var c=[],u=0,f=l;u&lt;f.length;u+=1){var h=f[u];c.push({wrappedTileID:h.tileID.wrapped().key,queryResults:h.tile.queryRenderedFeatures(e,r,t._state,h.queryGeometry,h.cameraQueryGeometry,h.scale,i,a,s,R(t.transform,h.tileID))})}var p=function(t){for(var e={},r={},n=0,i=t;n&lt;i.length;n+=1){var a=i[n],o=a.queryResults,s=a.wrappedTileID,l=r[s]=r[s]||{};for(var c in o)for(var u=o[c],f=l[c]=l[c]||{},h=e[c]=e[c]||[],p=0,d=u;p&lt;d.length;p+=1){var g=d[p];f[g.featureIndex]||(f[g.featureIndex]=!0,h.push(g))}}return e}(c);for(var d in p)p[d].forEach((function(e){var r=e.feature,n=t.getFeatureState(r.layer[&quot;source-layer&quot;],r.id);r.source=r.layer.source,r.layer[&quot;source-layer&quot;]&amp;&amp;(r.sourceLayer=r.layer[&quot;source-layer&quot;]),r.state=n}));return p}function B(t,e){var r=t.tileID,n=e.tileID;return r.overscaledZ-n.overscaledZ||r.canonical.y-n.canonical.y||r.wrap-n.wrap||r.canonical.x-n.canonical.x}var N=function(t,e){this.max=t,this.onRemove=e,this.reset()};N.prototype.reset=function(){for(var t in this.data)for(var e=0,r=this.data[t];e&lt;r.length;e+=1){var n=r[e];n.timeout&amp;&amp;clearTimeout(n.timeout),this.onRemove(n.value)}return this.data={},this.order=[],this},N.prototype.add=function(t,e,r){var n=this,i=t.wrapped().key;void 0===this.data[i]&amp;&amp;(this.data[i]=[]);var a={value:e,timeout:void 0};if(void 0!==r&amp;&amp;(a.timeout=setTimeout((function(){n.remove(t,a)}),r)),this.data[i].push(a),this.order.push(i),this.order.length&gt;this.max){var o=this._getAndRemoveByKey(this.order[0]);o&amp;&amp;this.onRemove(o)}return this},N.prototype.has=function(t){return t.wrapped().key in this.data},N.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},N.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&amp;&amp;clearTimeout(e.timeout),0===this.data[t].length&amp;&amp;delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},N.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},N.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},N.prototype.remove=function(t,e){if(!this.has(t))return this;var r=t.wrapped().key,n=void 0===e?0:this.data[r].indexOf(e),i=this.data[r][n];return this.data[r].splice(n,1),i.timeout&amp;&amp;clearTimeout(i.timeout),0===this.data[r].length&amp;&amp;delete this.data[r],this.onRemove(i.value),this.order.splice(this.order.indexOf(r),1),this},N.prototype.setMaxSize=function(t){for(this.max=t;this.order.length&gt;this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&amp;&amp;this.onRemove(e)}return this},N.prototype.filter=function(t){var e=[];for(var r in this.data)for(var n=0,i=this.data[r];n&lt;i.length;n+=1){var a=i[n];t(a.value)||e.push(a)}for(var o=0,s=e;o&lt;s.length;o+=1){var l=s[o];this.remove(l.value.tileID,l)}};var j=function(t,e,r){this.context=t;var n=t.gl;this.buffer=n.createBuffer(),this.dynamicDraw=Boolean(r),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),n.bufferData(n.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};j.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},j.prototype.updateData=function(t){var e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)},j.prototype.destroy=function(){this.buffer&amp;&amp;(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var U={Int8:&quot;BYTE&quot;,Uint8:&quot;UNSIGNED_BYTE&quot;,Int16:&quot;SHORT&quot;,Uint16:&quot;UNSIGNED_SHORT&quot;,Int32:&quot;INT&quot;,Uint32:&quot;UNSIGNED_INT&quot;,Float32:&quot;FLOAT&quot;},V=function(t,e,r,n){this.length=e.length,this.attributes=r,this.itemSize=e.bytesPerElement,this.dynamicDraw=n,this.context=t;var i=t.gl;this.buffer=i.createBuffer(),t.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};V.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},V.prototype.updateData=function(t){var e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)},V.prototype.enableAttributes=function(t,e){for(var r=0;r&lt;this.attributes.length;r++){var n=e.attributes[this.attributes[r].name];void 0!==n&amp;&amp;t.enableVertexAttribArray(n)}},V.prototype.setVertexAttribPointers=function(t,e,r){for(var n=0;n&lt;this.attributes.length;n++){var i=this.attributes[n],a=e.attributes[i.name];void 0!==a&amp;&amp;t.vertexAttribPointer(a,i.components,t[U[i.type]],!1,this.itemSize,i.offset+this.itemSize*(r||0))}},V.prototype.destroy=function(){this.buffer&amp;&amp;(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var q=function(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};q.prototype.get=function(){return this.current},q.prototype.set=function(t){},q.prototype.getDefault=function(){return this.default},q.prototype.setDefault=function(){this.set(this.default)};var H=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),G=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 1},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearDepth(t),this.current=t,this.dirty=!1)},e}(q),Y=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearStencil(t),this.current=t,this.dirty=!1)},e}(q),W=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return[!0,!0,!0,!0]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),X=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthMask(t),this.current=t,this.dirty=!1)},e}(q),Z=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 255},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.stencilMask(t),this.current=t,this.dirty=!1)},e}(q),J=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},e.prototype.set=function(t){var e=this.current;(t.func!==e.func||t.ref!==e.ref||t.mask!==e.mask||this.dirty)&amp;&amp;(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)},e}(q),K=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||this.dirty)&amp;&amp;(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)},e}(q),Q=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}},e}(q),$=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return[0,1]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),tt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}},e}(q),et=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.LESS},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthFunc(t),this.current=t,this.dirty=!1)},e}(q),rt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}},e}(q),nt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.ONE,t.ZERO]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),it=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),at=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.FUNC_ADD},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.blendEquation(t),this.current=t,this.dirty=!1)},e}(q),ot=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}},e}(q),st=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.BACK},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.cullFace(t),this.current=t,this.dirty=!1)},e}(q),lt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.CCW},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.frontFace(t),this.current=t,this.dirty=!1)},e}(q),ct=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.useProgram(t),this.current=t,this.dirty=!1)},e}(q),ut=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.TEXTURE0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.activeTexture(t),this.current=t,this.dirty=!1)},e}(q),ft=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),ht=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}},e}(q),pt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(q),dt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}},e}(q),gt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}},e}(q),mt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1},e}(q),vt=function(t){function e(e){t.call(this,e),this.vao=e.extVertexArrayObject}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){this.vao&amp;&amp;(t!==this.current||this.dirty)&amp;&amp;(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1)},e}(q),yt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 4},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}},e}(q),xt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),bt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),_t=function(t){function e(e,r){t.call(this,e),this.context=e,this.parent=r}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e}(q),wt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.setDirty=function(){this.dirty=!0},e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},e}(_t),Tt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(_t),kt=function(t,e,r,n){this.context=t,this.width=e,this.height=r;var i=this.framebuffer=t.gl.createFramebuffer();this.colorAttachment=new wt(t,i),n&amp;&amp;(this.depthAttachment=new Tt(t,i))};kt.prototype.destroy=function(){var t=this.context.gl,e=this.colorAttachment.get();if(e&amp;&amp;t.deleteTexture(e),this.depthAttachment){var r=this.depthAttachment.get();r&amp;&amp;t.deleteRenderbuffer(r)}t.deleteFramebuffer(this.framebuffer)};var Mt=function(t,e,r){this.func=t,this.mask=e,this.range=r};Mt.ReadOnly=!1,Mt.ReadWrite=!0,Mt.disabled=new Mt(519,Mt.ReadOnly,[0,1]);var At=function(t,e,r,n,i,a){this.test=t,this.ref=e,this.mask=r,this.fail=n,this.depthFail=i,this.pass=a};At.disabled=new At({func:519,mask:0},0,0,7680,7680,7680);var St=function(t,e,r){this.blendFunction=t,this.blendColor=e,this.mask=r};St.disabled=new St(St.Replace=[1,0],t.Color.transparent,[!1,!1,!1,!1]),St.unblended=new St(St.Replace,t.Color.transparent,[!0,!0,!0,!0]),St.alphaBlended=new St([1,771],t.Color.transparent,[!0,!0,!0,!0]);var Et=function(t,e,r){this.enable=t,this.mode=e,this.frontFace=r};Et.disabled=new Et(!1,1029,2305),Et.backCCW=new Et(!0,1029,2305);var Ct=function(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension(&quot;OES_vertex_array_object&quot;),this.clearColor=new H(this),this.clearDepth=new G(this),this.clearStencil=new Y(this),this.colorMask=new W(this),this.depthMask=new X(this),this.stencilMask=new Z(this),this.stencilFunc=new J(this),this.stencilOp=new K(this),this.stencilTest=new Q(this),this.depthRange=new $(this),this.depthTest=new tt(this),this.depthFunc=new et(this),this.blend=new rt(this),this.blendFunc=new nt(this),this.blendColor=new it(this),this.blendEquation=new at(this),this.cullFace=new ot(this),this.cullFaceSide=new st(this),this.frontFace=new lt(this),this.program=new ct(this),this.activeTexture=new ut(this),this.viewport=new ft(this),this.bindFramebuffer=new ht(this),this.bindRenderbuffer=new pt(this),this.bindTexture=new dt(this),this.bindVertexBuffer=new gt(this),this.bindElementBuffer=new mt(this),this.bindVertexArrayOES=this.extVertexArrayObject&amp;&amp;new vt(this),this.pixelStoreUnpack=new yt(this),this.pixelStoreUnpackPremultiplyAlpha=new xt(this),this.pixelStoreUnpackFlipY=new bt(this),this.extTextureFilterAnisotropic=t.getExtension(&quot;EXT_texture_filter_anisotropic&quot;)||t.getExtension(&quot;MOZ_EXT_texture_filter_anisotropic&quot;)||t.getExtension(&quot;WEBKIT_EXT_texture_filter_anisotropic&quot;),this.extTextureFilterAnisotropic&amp;&amp;(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension(&quot;OES_texture_half_float&quot;),this.extTextureHalfFloat&amp;&amp;(t.getExtension(&quot;OES_texture_half_float_linear&quot;),this.extRenderToTextureHalfFloat=t.getExtension(&quot;EXT_color_buffer_half_float&quot;)),this.extTimerQuery=t.getExtension(&quot;EXT_disjoint_timer_query&quot;)};Ct.prototype.setDefault=function(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()},Ct.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&amp;&amp;(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},Ct.prototype.createIndexBuffer=function(t,e){return new j(this,t,e)},Ct.prototype.createVertexBuffer=function(t,e,r){return new V(this,t,e,r)},Ct.prototype.createRenderbuffer=function(t,e,r){var n=this.gl,i=n.createRenderbuffer();return this.bindRenderbuffer.set(i),n.renderbufferStorage(n.RENDERBUFFER,t,e,r),this.bindRenderbuffer.set(null),i},Ct.prototype.createFramebuffer=function(t,e,r){return new kt(this,t,e,r)},Ct.prototype.clear=function(t){var e=t.color,r=t.depth,n=this.gl,i=0;e&amp;&amp;(i|=n.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==r&amp;&amp;(i|=n.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(r),this.depthMask.set(!0)),n.clear(i)},Ct.prototype.setCullFace=function(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))},Ct.prototype.setDepthMode=function(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)},Ct.prototype.setStencilMode=function(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)},Ct.prototype.setColorMode=function(e){t.deepEqual(e.blendFunction,St.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)},Ct.prototype.unbindVAO=function(){this.extVertexArrayObject&amp;&amp;this.bindVertexArrayOES.set(null)};var Lt=function(e){function r(r,n,i){var a=this;e.call(this),this.id=r,this.dispatcher=i,this.on(&quot;data&quot;,(function(t){&quot;source&quot;===t.dataType&amp;&amp;&quot;metadata&quot;===t.sourceDataType&amp;&amp;(a._sourceLoaded=!0),a._sourceLoaded&amp;&amp;!a._paused&amp;&amp;&quot;source&quot;===t.dataType&amp;&amp;&quot;content&quot;===t.sourceDataType&amp;&amp;(a.reload(),a.transform&amp;&amp;a.update(a.transform))})),this.on(&quot;error&quot;,(function(){a._sourceErrored=!0})),this._source=function(e,r,n,i){var a=new D[r.type](e,r,n,i);if(a.id!==e)throw new Error(&quot;Expected Source id to be &quot;+e+&quot; instead of &quot;+a.id);return t.bindAll([&quot;load&quot;,&quot;abort&quot;,&quot;unload&quot;,&quot;serialize&quot;,&quot;prepare&quot;],a),a}(r,n,i,this),this._tiles={},this._cache=new N(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new t.SourceFeatureState}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.onAdd=function(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&amp;&amp;this._source.onAdd&amp;&amp;this._source.onAdd(t)},r.prototype.onRemove=function(t){this._source&amp;&amp;this._source.onRemove&amp;&amp;this._source.onRemove(t)},r.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var t in this._tiles){var e=this._tiles[t];if(&quot;loaded&quot;!==e.state&amp;&amp;&quot;errored&quot;!==e.state)return!1}return!0},r.prototype.getSource=function(){return this._source},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){if(this._paused){var t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&amp;&amp;this.reload(),this.transform&amp;&amp;this.update(this.transform)}},r.prototype._loadTile=function(t,e){return this._source.loadTile(t,e)},r.prototype._unloadTile=function(t){if(this._source.unloadTile)return this._source.unloadTile(t,(function(){}))},r.prototype._abortTile=function(t){if(this._source.abortTile)return this._source.abortTile(t,(function(){}))},r.prototype.serialize=function(){return this._source.serialize()},r.prototype.prepare=function(t){for(var e in this._source.prepare&amp;&amp;this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var r=this._tiles[e];r.upload(t),r.prepare(this.map.style.imageManager)}},r.prototype.getIds=function(){return t.values(this._tiles).map((function(t){return t.tileID})).sort(It).map((function(t){return t.key}))},r.prototype.getRenderableIds=function(e){var r=this,n=[];for(var i in this._tiles)this._isIdRenderable(i,e)&amp;&amp;n.push(this._tiles[i]);return e?n.sort((function(e,n){var i=e.tileID,a=n.tileID,o=new t.Point(i.canonical.x,i.canonical.y)._rotate(r.transform.angle),s=new t.Point(a.canonical.x,a.canonical.y)._rotate(r.transform.angle);return i.overscaledZ-a.overscaledZ||s.y-o.y||s.x-o.x})).map((function(t){return t.tileID.key})):n.map((function(t){return t.tileID})).sort(It).map((function(t){return t.key}))},r.prototype.hasRenderableParent=function(t){var e=this.findLoadedParent(t,0);return!!e&amp;&amp;this._isIdRenderable(e.tileID.key)},r.prototype._isIdRenderable=function(t,e){return this._tiles[t]&amp;&amp;this._tiles[t].hasData()&amp;&amp;!this._coveredTiles[t]&amp;&amp;(e||!this._tiles[t].holdingForFade())},r.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var t in this._cache.reset(),this._tiles)&quot;errored&quot;!==this._tiles[t].state&amp;&amp;this._reloadTile(t,&quot;reloading&quot;)},r.prototype._reloadTile=function(t,e){var r=this._tiles[t];r&amp;&amp;(&quot;loading&quot;!==r.state&amp;&amp;(r.state=e),this._loadTile(r,this._tileLoaded.bind(this,r,t,e)))},r.prototype._tileLoaded=function(e,r,n,i){if(i)return e.state=&quot;errored&quot;,void(404!==i.status?this._source.fire(new t.ErrorEvent(i,{tile:e})):this.update(this.transform));e.timeAdded=t.browser.now(),&quot;expired&quot;===n&amp;&amp;(e.refreshedUponExpiration=!0),this._setTileReloadTimer(r,e),&quot;raster-dem&quot;===this.getSource().type&amp;&amp;e.dem&amp;&amp;this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,tile:e,coord:e.tileID}))},r.prototype._backfillDEM=function(t){for(var e=this.getRenderableIds(),r=0;r&lt;e.length;r++){var n=e[r];if(t.neighboringTiles&amp;&amp;t.neighboringTiles[n]){var i=this.getTileByID(n);a(t,i),a(i,t)}}function a(t,e){t.needsHillshadePrepare=!0;var r=e.tileID.canonical.x-t.tileID.canonical.x,n=e.tileID.canonical.y-t.tileID.canonical.y,i=Math.pow(2,t.tileID.canonical.z),a=e.tileID.key;0===r&amp;&amp;0===n||Math.abs(n)&gt;1||(Math.abs(r)&gt;1&amp;&amp;(1===Math.abs(r+i)?r+=i:1===Math.abs(r-i)&amp;&amp;(r-=i)),e.dem&amp;&amp;t.dem&amp;&amp;(t.dem.backfillBorder(e.dem,r,n),t.neighboringTiles&amp;&amp;t.neighboringTiles[a]&amp;&amp;(t.neighboringTiles[a].backfilled=!0)))}},r.prototype.getTile=function(t){return this.getTileByID(t.key)},r.prototype.getTileByID=function(t){return this._tiles[t]},r.prototype._retainLoadedChildren=function(t,e,r,n){for(var i in this._tiles){var a=this._tiles[i];if(!(n[i]||!a.hasData()||a.tileID.overscaledZ&lt;=e||a.tileID.overscaledZ&gt;r)){for(var o=a.tileID;a&amp;&amp;a.tileID.overscaledZ&gt;e+1;){var s=a.tileID.scaledTo(a.tileID.overscaledZ-1);(a=this._tiles[s.key])&amp;&amp;a.hasData()&amp;&amp;(o=s)}for(var l=o;l.overscaledZ&gt;e;)if(t[(l=l.scaledTo(l.overscaledZ-1)).key]){n[o.key]=o;break}}}},r.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var r=this._loadedParentTiles[t.key];return r&amp;&amp;r.tileID.overscaledZ&gt;=e?r:null}for(var n=t.overscaledZ-1;n&gt;=e;n--){var i=t.scaledTo(n),a=this._getLoadedTile(i);if(a)return a}},r.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&amp;&amp;e.hasData()?e:this._cache.getByKey(t.wrapped().key)},r.prototype.updateCacheSize=function(t){var e=Math.ceil(t.width/this._source.tileSize)+1,r=Math.ceil(t.height/this._source.tileSize)+1,n=Math.floor(e*r*5),i=&quot;number&quot;==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,n):n;this._cache.setMaxSize(i)},r.prototype.handleWrapJump=function(t){var e=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);if(this._prevLng=t,e){var r={};for(var n in this._tiles){var i=this._tiles[n];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+e),r[i.tileID.key]=i}for(var a in this._tiles=r,this._timers)clearTimeout(this._timers[a]),delete this._timers[a];for(var o in this._tiles)this._setTileReloadTimer(o,this._tiles[o])}},r.prototype.update=function(e){var n=this;if(this.transform=e,this._sourceLoaded&amp;&amp;!this._paused){var i;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)})):(i=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&amp;&amp;(i=i.filter((function(t){return n._source.hasTile(t)})))):i=[];var a=e.coveringZoomLevel(this._source),o=Math.max(a-r.maxOverzooming,this._source.minzoom),s=Math.max(a+r.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(i,a);if(Pt(this._source.type)){for(var c={},u={},f=0,h=Object.keys(l);f&lt;h.length;f+=1){var p=h[f],d=l[p],g=this._tiles[p];if(g&amp;&amp;!(g.fadeEndTime&amp;&amp;g.fadeEndTime&lt;=t.browser.now())){var m=this.findLoadedParent(d,o);m&amp;&amp;(this._addTile(m.tileID),c[m.tileID.key]=m.tileID),u[p]=d}}for(var v in this._retainLoadedChildren(u,a,s,l),c)l[v]||(this._coveredTiles[v]=!0,l[v]=c[v])}for(var y in l)this._tiles[y].clearFadeHold();for(var x=0,b=t.keysDifference(this._tiles,l);x&lt;b.length;x+=1){var _=b[x],w=this._tiles[_];w.hasSymbolBuckets&amp;&amp;!w.holdingForFade()?w.setHoldDuration(this.map._fadeDuration):w.hasSymbolBuckets&amp;&amp;!w.symbolFadeFinished()||this._removeTile(_)}this._updateLoadedParentTileCache()}},r.prototype.releaseSymbolFadeTiles=function(){for(var t in this._tiles)this._tiles[t].holdingForFade()&amp;&amp;this._removeTile(t)},r.prototype._updateRetainedTiles=function(t,e){for(var n={},i={},a=Math.max(e-r.maxOverzooming,this._source.minzoom),o=Math.max(e+r.maxUnderzooming,this._source.minzoom),s={},l=0,c=t;l&lt;c.length;l+=1){var u=c[l],f=this._addTile(u);n[u.key]=u,f.hasData()||e&lt;this._source.maxzoom&amp;&amp;(s[u.key]=u)}this._retainLoadedChildren(s,e,o,n);for(var h=0,p=t;h&lt;p.length;h+=1){var d=p[h],g=this._tiles[d.key];if(!g.hasData()){if(e+1&gt;this._source.maxzoom){var m=d.children(this._source.maxzoom)[0],v=this.getTile(m);if(v&amp;&amp;v.hasData()){n[m.key]=m;continue}}else{var y=d.children(this._source.maxzoom);if(n[y[0].key]&amp;&amp;n[y[1].key]&amp;&amp;n[y[2].key]&amp;&amp;n[y[3].key])continue}for(var x=g.wasRequested(),b=d.overscaledZ-1;b&gt;=a;--b){var _=d.scaledTo(b);if(i[_.key])break;if(i[_.key]=!0,!(g=this.getTile(_))&amp;&amp;x&amp;&amp;(g=this._addTile(_)),g&amp;&amp;(n[_.key]=_,x=g.wasRequested(),g.hasData()))break}}}return n},r.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],r=void 0,n=this._tiles[t].tileID;n.overscaledZ&gt;0;){if(n.key in this._loadedParentTiles){r=this._loadedParentTiles[n.key];break}e.push(n.key);var i=n.scaledTo(n.overscaledZ-1);if(r=this._getLoadedTile(i))break;n=i}for(var a=0,o=e;a&lt;o.length;a+=1)this._loadedParentTiles[o[a]]=r}},r.prototype._addTile=function(e){var r=this._tiles[e.key];if(r)return r;(r=this._cache.getAndRemove(e))&amp;&amp;(this._setTileReloadTimer(e.key,r),r.tileID=e,this._state.initializeTileState(r,this.map?this.map.painter:null),this._cacheTimers[e.key]&amp;&amp;(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,r)));var n=Boolean(r);return n||(r=new t.Tile(e,this._source.tileSize*e.overscaleFactor()),this._loadTile(r,this._tileLoaded.bind(this,r,e.key,r.state))),r?(r.uses++,this._tiles[e.key]=r,n||this._source.fire(new t.Event(&quot;dataloading&quot;,{tile:r,coord:r.tileID,dataType:&quot;source&quot;})),r):null},r.prototype._setTileReloadTimer=function(t,e){var r=this;t in this._timers&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]);var n=e.getExpiryTimeout();n&amp;&amp;(this._timers[t]=setTimeout((function(){r._reloadTile(t,&quot;expired&quot;),delete r._timers[t]}),n))},r.prototype._removeTile=function(t){var e=this._tiles[t];e&amp;&amp;(e.uses--,delete this._tiles[t],this._timers[t]&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses&gt;0||(e.hasData()&amp;&amp;&quot;reloading&quot;!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},r.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},r.prototype.tilesIn=function(e,r,n){var i=this,a=[],o=this.transform;if(!o)return a;for(var s=n?o.getCameraQueryGeometry(e):e,l=e.map((function(t){return o.pointCoordinate(t)})),c=s.map((function(t){return o.pointCoordinate(t)})),u=this.getIds(),f=1/0,h=1/0,p=-1/0,d=-1/0,g=0,m=c;g&lt;m.length;g+=1){var v=m[g];f=Math.min(f,v.x),h=Math.min(h,v.y),p=Math.max(p,v.x),d=Math.max(d,v.y)}for(var y=function(e){var n=i._tiles[u[e]];if(!n.holdingForFade()){var s=n.tileID,g=Math.pow(2,o.zoom-n.tileID.overscaledZ),m=r*n.queryPadding*t.EXTENT/n.tileSize/g,v=[s.getTilePoint(new t.MercatorCoordinate(f,h)),s.getTilePoint(new t.MercatorCoordinate(p,d))];if(v[0].x-m&lt;t.EXTENT&amp;&amp;v[0].y-m&lt;t.EXTENT&amp;&amp;v[1].x+m&gt;=0&amp;&amp;v[1].y+m&gt;=0){var y=l.map((function(t){return s.getTilePoint(t)})),x=c.map((function(t){return s.getTilePoint(t)}));a.push({tile:n,tileID:s,queryGeometry:y,cameraQueryGeometry:x,scale:g})}}},x=0;x&lt;u.length;x++)y(x);return a},r.prototype.getVisibleCoordinates=function(t){for(var e=this,r=this.getRenderableIds(t).map((function(t){return e._tiles[t].tileID})),n=0,i=r;n&lt;i.length;n+=1){var a=i[n];a.posMatrix=this.transform.calculatePosMatrix(a.toUnwrapped())}return r},r.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(Pt(this._source.type))for(var e in this._tiles){var r=this._tiles[e];if(void 0!==r.fadeEndTime&amp;&amp;r.fadeEndTime&gt;=t.browser.now())return!0}return!1},r.prototype.setFeatureState=function(t,e,r){this._state.updateState(t=t||&quot;_geojsonTileLayer&quot;,e,r)},r.prototype.removeFeatureState=function(t,e,r){this._state.removeFeatureState(t=t||&quot;_geojsonTileLayer&quot;,e,r)},r.prototype.getFeatureState=function(t,e){return this._state.getState(t=t||&quot;_geojsonTileLayer&quot;,e)},r.prototype.setDependencies=function(t,e,r){var n=this._tiles[t];n&amp;&amp;n.setDependencies(e,r)},r.prototype.reloadTilesForDependencies=function(t,e){for(var r in this._tiles)this._tiles[r].hasDependency(t,e)&amp;&amp;this._reloadTile(r,&quot;reloading&quot;);this._cache.filter((function(r){return!r.hasDependency(t,e)}))},r}(t.Evented);function It(t,e){var r=Math.abs(2*t.wrap)-+(t.wrap&lt;0),n=Math.abs(2*e.wrap)-+(e.wrap&lt;0);return t.overscaledZ-e.overscaledZ||n-r||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function Pt(t){return&quot;raster&quot;===t||&quot;image&quot;===t||&quot;video&quot;===t}function zt(){return new t.window.Worker(Yi.workerUrl)}Lt.maxOverzooming=10,Lt.maxUnderzooming=3;var Ot=&quot;mapboxgl_preloaded_worker_pool&quot;,Dt=function(){this.active={}};Dt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length&lt;Dt.workerCount;)this.workers.push(new zt);return this.active[t]=!0,this.workers.slice()},Dt.prototype.release=function(t){delete this.active[t],0===this.numActive()&amp;&amp;(this.workers.forEach((function(t){t.terminate()})),this.workers=null)},Dt.prototype.isPreloaded=function(){return!!this.active[Ot]},Dt.prototype.numActive=function(){return Object.keys(this.active).length};var Rt,Ft=Math.floor(t.browser.hardwareConcurrency/2);function Bt(){return Rt||(Rt=new Dt),Rt}function Nt(e,r){var n={};for(var i in e)&quot;ref&quot;!==i&amp;&amp;(n[i]=e[i]);return t.refProperties.forEach((function(t){t in r&amp;&amp;(n[t]=r[t])})),n}function jt(t){t=t.slice();for(var e=Object.create(null),r=0;r&lt;t.length;r++)e[t[r].id]=t[r];for(var n=0;n&lt;t.length;n++)&quot;ref&quot;in t[n]&amp;&amp;(t[n]=Nt(t[n],e[t[n].ref]));return t}Dt.workerCount=Math.max(Math.min(Ft,6),1);var Ut={setStyle:&quot;setStyle&quot;,addLayer:&quot;addLayer&quot;,removeLayer:&quot;removeLayer&quot;,setPaintProperty:&quot;setPaintProperty&quot;,setLayoutProperty:&quot;setLayoutProperty&quot;,setFilter:&quot;setFilter&quot;,addSource:&quot;addSource&quot;,removeSource:&quot;removeSource&quot;,setGeoJSONSourceData:&quot;setGeoJSONSourceData&quot;,setLayerZoomRange:&quot;setLayerZoomRange&quot;,setLayerProperty:&quot;setLayerProperty&quot;,setCenter:&quot;setCenter&quot;,setZoom:&quot;setZoom&quot;,setBearing:&quot;setBearing&quot;,setPitch:&quot;setPitch&quot;,setSprite:&quot;setSprite&quot;,setGlyphs:&quot;setGlyphs&quot;,setTransition:&quot;setTransition&quot;,setLight:&quot;setLight&quot;};function Vt(t,e,r){r.push({command:Ut.addSource,args:[t,e[t]]})}function qt(t,e,r){e.push({command:Ut.removeSource,args:[t]}),r[t]=!0}function Ht(t,e,r,n){qt(t,r,n),Vt(t,e,r)}function Gt(e,r,n){var i;for(i in e[n])if(e[n].hasOwnProperty(i)&amp;&amp;&quot;data&quot;!==i&amp;&amp;!t.deepEqual(e[n][i],r[n][i]))return!1;for(i in r[n])if(r[n].hasOwnProperty(i)&amp;&amp;&quot;data&quot;!==i&amp;&amp;!t.deepEqual(e[n][i],r[n][i]))return!1;return!0}function Yt(e,r,n,i,a,o){var s;for(s in r=r||{},e=e||{})e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}));for(s in r)r.hasOwnProperty(s)&amp;&amp;!e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}))}function Wt(t){return t.id}function Xt(t,e){return t[e.id]=e,t}var Zt=function(t,e){this.reset(t,e)};Zt.prototype.reset=function(t,e){this.points=t||[],this._distances=[0];for(var r=1;r&lt;this.points.length;r++)this._distances[r]=this._distances[r-1]+this.points[r].dist(this.points[r-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(e||0,.5*this.length),this.paddedLength=this.length-2*this.padding},Zt.prototype.lerp=function(e){if(1===this.points.length)return this.points[0];e=t.clamp(e,0,1);for(var r=1,n=this._distances[r],i=e*this.paddedLength+this.padding;n&lt;i&amp;&amp;r&lt;this._distances.length;)n=this._distances[++r];var a=r-1,o=this._distances[a],s=n-o,l=s&gt;0?(i-o)/s:0;return this.points[a].mult(1-l).add(this.points[r].mult(l))};var Jt=function(t,e,r){var n=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(e/r);for(var a=0;a&lt;this.xCellCount*this.yCellCount;a++)n.push([]),i.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0};function Kt(e,r,n,i,a){var o=t.create();return r?(t.scale(o,o,[1/a,1/a,1]),n||t.rotateZ(o,o,i.angle)):t.multiply(o,i.labelPlaneMatrix,e),o}function Qt(e,r,n,i,a){if(r){var o=t.clone(e);return t.scale(o,o,[a,a,1]),n||t.rotateZ(o,o,-i.angle),o}return i.glCoordMatrix}function $t(e,r){var n=[e.x,e.y,0,1];ue(n,n,r);var i=n[3];return{point:new t.Point(n[0]/i,n[1]/i),signedDistanceFromCamera:i}}function te(t,e){return.5+t/e*.5}function ee(t,e){var r=t[0]/t[3],n=t[1]/t[3];return r&gt;=-e[0]&amp;&amp;r&lt;=e[0]&amp;&amp;n&gt;=-e[1]&amp;&amp;n&lt;=e[1]}function re(e,r,n,i,a,o,s,l){var c=i?e.textSizeData:e.iconSizeData,u=t.evaluateSizeForZoom(c,n.transform.zoom),f=[256/n.width*2+1,256/n.height*2+1],h=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;h.clear();for(var p=e.lineVertexArray,d=i?e.text.placedSymbolArray:e.icon.placedSymbolArray,g=n.transform.width/n.transform.height,m=!1,v=0;v&lt;d.length;v++){var y=d.get(v);if(y.hidden||y.writingMode===t.WritingMode.vertical&amp;&amp;!m)ce(y.numGlyphs,h);else{m=!1;var x=[y.anchorX,y.anchorY,0,1];if(t.transformMat4(x,x,r),ee(x,f)){var b=te(n.transform.cameraToCenterDistance,x[3]),_=t.evaluateSizeForFeature(c,u,y),w=s?_/b:_*b,T=new t.Point(y.anchorX,y.anchorY),k=$t(T,a).point,M={},A=ae(y,w,!1,l,r,a,o,e.glyphOffsetArray,p,h,k,T,M,g);m=A.useVertical,(A.notEnoughRoom||m||A.needsFlipping&amp;&amp;ae(y,w,!0,l,r,a,o,e.glyphOffsetArray,p,h,k,T,M,g).notEnoughRoom)&amp;&amp;ce(y.numGlyphs,h)}else ce(y.numGlyphs,h)}}i?e.text.dynamicLayoutVertexBuffer.updateData(h):e.icon.dynamicLayoutVertexBuffer.updateData(h)}function ne(t,e,r,n,i,a,o,s,l,c,u){var f=s.glyphStartIndex+s.numGlyphs,h=s.lineStartIndex,p=s.lineStartIndex+s.lineLength,d=e.getoffsetX(s.glyphStartIndex),g=e.getoffsetX(f-1),m=se(t*d,r,n,i,a,o,s.segment,h,p,l,c,u);if(!m)return null;var v=se(t*g,r,n,i,a,o,s.segment,h,p,l,c,u);return v?{first:m,last:v}:null}function ie(e,r,n,i){return e===t.WritingMode.horizontal&amp;&amp;Math.abs(n.y-r.y)&gt;Math.abs(n.x-r.x)*i?{useVertical:!0}:(e===t.WritingMode.vertical?r.y&lt;n.y:r.x&gt;n.x)?{needsFlipping:!0}:null}function ae(e,r,n,i,a,o,s,l,c,u,f,h,p,d){var g,m=r/24,v=e.lineOffsetX*m,y=e.lineOffsetY*m;if(e.numGlyphs&gt;1){var x=e.glyphStartIndex+e.numGlyphs,b=e.lineStartIndex,_=e.lineStartIndex+e.lineLength,w=ne(m,l,v,y,n,f,h,e,c,o,p);if(!w)return{notEnoughRoom:!0};var T=$t(w.first.point,s).point,k=$t(w.last.point,s).point;if(i&amp;&amp;!n){var M=ie(e.writingMode,T,k,d);if(M)return M}g=[w.first];for(var A=e.glyphStartIndex+1;A&lt;x-1;A++)g.push(se(m*l.getoffsetX(A),v,y,n,f,h,e.segment,b,_,c,o,p));g.push(w.last)}else{if(i&amp;&amp;!n){var S=$t(h,a).point,E=e.lineStartIndex+e.segment+1,C=new t.Point(c.getx(E),c.gety(E)),L=$t(C,a),I=L.signedDistanceFromCamera&gt;0?L.point:oe(h,C,S,1,a),P=ie(e.writingMode,S,I,d);if(P)return P}var z=se(m*l.getoffsetX(e.glyphStartIndex),v,y,n,f,h,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,c,o,p);if(!z)return{notEnoughRoom:!0};g=[z]}for(var O=0,D=g;O&lt;D.length;O+=1){var R=D[O];t.addDynamicAttributes(u,R.point,R.angle)}return{}}function oe(t,e,r,n,i){var a=$t(t.add(t.sub(e)._unit()),i).point,o=r.sub(a);return r.add(o._mult(n/o.mag()))}function se(e,r,n,i,a,o,s,l,c,u,f,h){var p=i?e-r:e+r,d=p&gt;0?1:-1,g=0;i&amp;&amp;(d*=-1,g=Math.PI),d&lt;0&amp;&amp;(g+=Math.PI);for(var m=d&gt;0?l+s:l+s+1,v=a,y=a,x=0,b=0,_=Math.abs(p),w=[];x+b&lt;=_;){if((m+=d)&lt;l||m&gt;=c)return null;if(y=v,w.push(v),void 0===(v=h[m])){var T=new t.Point(u.getx(m),u.gety(m)),k=$t(T,f);if(k.signedDistanceFromCamera&gt;0)v=h[m]=k.point;else{var M=m-d;v=oe(0===x?o:new t.Point(u.getx(M),u.gety(M)),T,y,_-x+1,f)}}x+=b,b=y.dist(v)}var A=(_-x)/b,S=v.sub(y),E=S.mult(A)._add(y);E._add(S._unit()._perp()._mult(n*d));var C=g+Math.atan2(v.y-y.y,v.x-y.x);return w.push(E),{point:E,angle:C,path:w}}Jt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Jt.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},Jt.prototype.insertCircle=function(t,e,r,n){this._forEachCell(e-n,r-n,e+n,r+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(r),this.circles.push(n)},Jt.prototype._insertBoxCell=function(t,e,r,n,i,a){this.boxCells[i].push(a)},Jt.prototype._insertCircleCell=function(t,e,r,n,i,a){this.circleCells[i].push(a)},Jt.prototype._query=function(t,e,r,n,i,a){if(r&lt;0||t&gt;this.width||n&lt;0||e&gt;this.height)return!i&amp;&amp;[];var o=[];if(t&lt;=0&amp;&amp;e&lt;=0&amp;&amp;this.width&lt;=r&amp;&amp;this.height&lt;=n){if(i)return!0;for(var s=0;s&lt;this.boxKeys.length;s++)o.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var l=0;l&lt;this.circleKeys.length;l++){var c=this.circles[3*l],u=this.circles[3*l+1],f=this.circles[3*l+2];o.push({key:this.circleKeys[l],x1:c-f,y1:u-f,x2:c+f,y2:u+f})}return a?o.filter(a):o}return this._forEachCell(t,e,r,n,this._queryCell,o,{hitTest:i,seenUids:{box:{},circle:{}}},a),i?o.length&gt;0:o},Jt.prototype._queryCircle=function(t,e,r,n,i){var a=t-r,o=t+r,s=e-r,l=e+r;if(o&lt;0||a&gt;this.width||l&lt;0||s&gt;this.height)return!n&amp;&amp;[];var c=[];return this._forEachCell(a,s,o,l,this._queryCellCircle,c,{hitTest:n,circle:{x:t,y:e,radius:r},seenUids:{box:{},circle:{}}},i),n?c.length&gt;0:c},Jt.prototype.query=function(t,e,r,n,i){return this._query(t,e,r,n,!1,i)},Jt.prototype.hitTest=function(t,e,r,n,i){return this._query(t,e,r,n,!0,i)},Jt.prototype.hitTestCircle=function(t,e,r,n){return this._queryCircle(t,e,r,!0,n)},Jt.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=o.seenUids,c=this.boxCells[i];if(null!==c)for(var u=this.bboxes,f=0,h=c;f&lt;h.length;f+=1){var p=h[f];if(!l.box[p]){l.box[p]=!0;var d=4*p;if(t&lt;=u[d+2]&amp;&amp;e&lt;=u[d+3]&amp;&amp;r&gt;=u[d+0]&amp;&amp;n&gt;=u[d+1]&amp;&amp;(!s||s(this.boxKeys[p]))){if(o.hitTest)return a.push(!0),!0;a.push({key:this.boxKeys[p],x1:u[d],y1:u[d+1],x2:u[d+2],y2:u[d+3]})}}}var g=this.circleCells[i];if(null!==g)for(var m=this.circles,v=0,y=g;v&lt;y.length;v+=1){var x=y[v];if(!l.circle[x]){l.circle[x]=!0;var b=3*x;if(this._circleAndRectCollide(m[b],m[b+1],m[b+2],t,e,r,n)&amp;&amp;(!s||s(this.circleKeys[x]))){if(o.hitTest)return a.push(!0),!0;var _=m[b],w=m[b+1],T=m[b+2];a.push({key:this.circleKeys[x],x1:_-T,y1:w-T,x2:_+T,y2:w+T})}}}},Jt.prototype._queryCellCircle=function(t,e,r,n,i,a,o,s){var l=o.circle,c=o.seenUids,u=this.boxCells[i];if(null!==u)for(var f=this.bboxes,h=0,p=u;h&lt;p.length;h+=1){var d=p[h];if(!c.box[d]){c.box[d]=!0;var g=4*d;if(this._circleAndRectCollide(l.x,l.y,l.radius,f[g+0],f[g+1],f[g+2],f[g+3])&amp;&amp;(!s||s(this.boxKeys[d])))return a.push(!0),!0}}var m=this.circleCells[i];if(null!==m)for(var v=this.circles,y=0,x=m;y&lt;x.length;y+=1){var b=x[y];if(!c.circle[b]){c.circle[b]=!0;var _=3*b;if(this._circlesCollide(v[_],v[_+1],v[_+2],l.x,l.y,l.radius)&amp;&amp;(!s||s(this.circleKeys[b])))return a.push(!0),!0}}},Jt.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToXCellCoord(t),c=this._convertToYCellCoord(e),u=this._convertToXCellCoord(r),f=this._convertToYCellCoord(n),h=l;h&lt;=u;h++)for(var p=c;p&lt;=f;p++)if(i.call(this,t,e,r,n,this.xCellCount*p+h,a,o,s))return},Jt.prototype._convertToXCellCoord=function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))},Jt.prototype._convertToYCellCoord=function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))},Jt.prototype._circlesCollide=function(t,e,r,n,i,a){var o=n-t,s=i-e,l=r+a;return l*l&gt;o*o+s*s},Jt.prototype._circleAndRectCollide=function(t,e,r,n,i,a,o){var s=(a-n)/2,l=Math.abs(t-(n+s));if(l&gt;s+r)return!1;var c=(o-i)/2,u=Math.abs(e-(i+c));if(u&gt;c+r)return!1;if(l&lt;=s||u&lt;=c)return!0;var f=l-s,h=u-c;return f*f+h*h&lt;=r*r};var le=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ce(t,e){for(var r=0;r&lt;t;r++){var n=e.length;e.resize(n+4),e.float32.set(le,3*n)}}function ue(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[4]*i+r[12],t[1]=r[1]*n+r[5]*i+r[13],t[3]=r[3]*n+r[7]*i+r[15],t}var fe=function(t,e,r){void 0===e&amp;&amp;(e=new Jt(t.width+200,t.height+200,25)),void 0===r&amp;&amp;(r=new Jt(t.width+200,t.height+200,25)),this.transform=t,this.grid=e,this.ignoredGrid=r,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200};function he(e,r,n){return r*(t.EXTENT/(e.tileSize*Math.pow(2,n-e.tileID.overscaledZ)))}fe.prototype.placeCollisionBox=function(t,e,r,n,i){var a=this.projectAndGetPerspectiveRatio(n,t.anchorPointX,t.anchorPointY),o=r*a.perspectiveRatio,s=t.x1*o+a.point.x,l=t.y1*o+a.point.y,c=t.x2*o+a.point.x,u=t.y2*o+a.point.y;return!this.isInsideGrid(s,l,c,u)||!e&amp;&amp;this.grid.hitTest(s,l,c,u,i)?{box:[],offscreen:!1}:{box:[s,l,c,u],offscreen:this.isOffscreen(s,l,c,u)}},fe.prototype.placeCollisionCircles=function(e,r,n,i,a,o,s,l,c,u,f,h,p){var d=[],g=new t.Point(r.anchorX,r.anchorY),m=$t(g,o),v=te(this.transform.cameraToCenterDistance,m.signedDistanceFromCamera),y=(u?a/v:a*v)/t.ONE_EM,x=$t(g,s).point,b=ne(y,i,r.lineOffsetX*y,r.lineOffsetY*y,!1,x,g,r,n,s,{}),_=!1,w=!1,T=!0;if(b){for(var k=.5*h*v+p,M=new t.Point(-100,-100),A=new t.Point(this.screenRightBoundary,this.screenBottomBoundary),S=new Zt,E=b.first,C=b.last,L=[],I=E.path.length-1;I&gt;=1;I--)L.push(E.path[I]);for(var P=1;P&lt;C.path.length;P++)L.push(C.path[P]);var z=2.5*k;if(l){var O=L.map((function(t){return $t(t,l)}));L=O.some((function(t){return t.signedDistanceFromCamera&lt;=0}))?[]:O.map((function(t){return t.point}))}var D=[];if(L.length&gt;0){for(var R=L[0].clone(),F=L[0].clone(),B=1;B&lt;L.length;B++)R.x=Math.min(R.x,L[B].x),R.y=Math.min(R.y,L[B].y),F.x=Math.max(F.x,L[B].x),F.y=Math.max(F.y,L[B].y);D=R.x&gt;=M.x&amp;&amp;F.x&lt;=A.x&amp;&amp;R.y&gt;=M.y&amp;&amp;F.y&lt;=A.y?[L]:F.x&lt;M.x||R.x&gt;A.x||F.y&lt;M.y||R.y&gt;A.y?[]:t.clipLine([L],M.x,M.y,A.x,A.y)}for(var N=0,j=D;N&lt;j.length;N+=1){var U;S.reset(j[N],.25*k),U=S.length&lt;=.5*k?1:Math.ceil(S.paddedLength/z)+1;for(var V=0;V&lt;U;V++){var q=V/Math.max(U-1,1),H=S.lerp(q),G=H.x+100,Y=H.y+100;d.push(G,Y,k,0);var W=G-k,X=Y-k,Z=G+k,J=Y+k;if(T=T&amp;&amp;this.isOffscreen(W,X,Z,J),w=w||this.isInsideGrid(W,X,Z,J),!e&amp;&amp;this.grid.hitTestCircle(G,Y,k,f)&amp;&amp;(_=!0,!c))return{circles:[],offscreen:!1,collisionDetected:_}}}}return{circles:!c&amp;&amp;_||!w?[]:d,offscreen:T,collisionDetected:_}},fe.prototype.queryRenderedSymbols=function(e){if(0===e.length||0===this.grid.keysLength()&amp;&amp;0===this.ignoredGrid.keysLength())return{};for(var r=[],n=1/0,i=1/0,a=-1/0,o=-1/0,s=0,l=e;s&lt;l.length;s+=1){var c=l[s],u=new t.Point(c.x+100,c.y+100);n=Math.min(n,u.x),i=Math.min(i,u.y),a=Math.max(a,u.x),o=Math.max(o,u.y),r.push(u)}for(var f={},h={},p=0,d=this.grid.query(n,i,a,o).concat(this.ignoredGrid.query(n,i,a,o));p&lt;d.length;p+=1){var g=d[p],m=g.key;if(void 0===f[m.bucketInstanceId]&amp;&amp;(f[m.bucketInstanceId]={}),!f[m.bucketInstanceId][m.featureIndex]){var v=[new t.Point(g.x1,g.y1),new t.Point(g.x2,g.y1),new t.Point(g.x2,g.y2),new t.Point(g.x1,g.y2)];t.polygonIntersectsPolygon(r,v)&amp;&amp;(f[m.bucketInstanceId][m.featureIndex]=!0,void 0===h[m.bucketInstanceId]&amp;&amp;(h[m.bucketInstanceId]=[]),h[m.bucketInstanceId].push(m.featureIndex))}}return h},fe.prototype.insertCollisionBox=function(t,e,r,n,i){(e?this.ignoredGrid:this.grid).insert({bucketInstanceId:r,featureIndex:n,collisionGroupID:i},t[0],t[1],t[2],t[3])},fe.prototype.insertCollisionCircles=function(t,e,r,n,i){for(var a=e?this.ignoredGrid:this.grid,o={bucketInstanceId:r,featureIndex:n,collisionGroupID:i},s=0;s&lt;t.length;s+=4)a.insertCircle(o,t[s],t[s+1],t[s+2])},fe.prototype.projectAndGetPerspectiveRatio=function(e,r,n){var i=[r,n,0,1];return ue(i,i,e),{point:new t.Point((i[0]/i[3]+1)/2*this.transform.width+100,(-i[1]/i[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/i[3]*.5}},fe.prototype.isOffscreen=function(t,e,r,n){return r&lt;100||t&gt;=this.screenRightBoundary||n&lt;100||e&gt;this.screenBottomBoundary},fe.prototype.isInsideGrid=function(t,e,r,n){return r&gt;=0&amp;&amp;t&lt;this.gridRightBoundary&amp;&amp;n&gt;=0&amp;&amp;e&lt;this.gridBottomBoundary},fe.prototype.getViewportMatrix=function(){var e=t.identity([]);return t.translate(e,e,[-100,-100,0]),e};var pe=function(t,e,r,n){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):n&amp;&amp;r?1:0,this.placed=r};pe.prototype.isHidden=function(){return 0===this.opacity&amp;&amp;!this.placed};var de=function(t,e,r,n,i){this.text=new pe(t?t.text:null,e,r,i),this.icon=new pe(t?t.icon:null,e,n,i)};de.prototype.isHidden=function(){return this.text.isHidden()&amp;&amp;this.icon.isHidden()};var ge=function(t,e,r){this.text=t,this.icon=e,this.skipFade=r},me=function(){this.invProjMatrix=t.create(),this.viewportMatrix=t.create(),this.circles=[]},ve=function(t,e,r,n,i){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=r,this.bucketIndex=n,this.tileID=i},ye=function(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}};function xe(e,r,n,i,a){var o=t.getAnchorAlignment(e),s=-(o.horizontalAlign-.5)*r,l=-(o.verticalAlign-.5)*n,c=t.evaluateVariableOffset(e,i);return new t.Point(s+c[0]*a,l+c[1]*a)}function be(e,r,n,i,a,o){var s=e.x1,l=e.x2,c=e.y1,u=e.y2,f=e.anchorPointX,h=e.anchorPointY,p=new t.Point(r,n);return i&amp;&amp;p._rotate(a?o:-o),{x1:s+p.x,y1:c+p.y,x2:l+p.x,y2:u+p.y,anchorPointX:f,anchorPointY:h}}ye.prototype.get=function(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){var e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:function(t){return t.collisionGroupID===e}}}return this.collisionGroups[t]};var _e=function(t,e,r,n){this.transform=t.clone(),this.collisionIndex=new fe(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new ye(r),this.collisionCircleArrays={},this.prevPlacement=n,n&amp;&amp;(n.prevPlacement=void 0),this.placedOrientations={}};function we(t,e,r,n,i){t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0)}_e.prototype.getBucketParts=function(e,r,n,i){var a=n.getBucket(r),o=n.latestFeatureIndex;if(a&amp;&amp;o&amp;&amp;r.id===a.layerIds[0]){var s=n.collisionBoxArray,l=a.layers[0].layout,c=Math.pow(2,this.transform.zoom-n.tileID.overscaledZ),u=n.tileSize/t.EXTENT,f=this.transform.calculatePosMatrix(n.tileID.toUnwrapped()),h=&quot;map&quot;===l.get(&quot;text-pitch-alignment&quot;),p=&quot;map&quot;===l.get(&quot;text-rotation-alignment&quot;),d=he(n,1,this.transform.zoom),g=Kt(f,h,p,this.transform,d),m=null;if(h){var v=Qt(f,h,p,this.transform,d);m=t.multiply([],this.transform.labelPlaneMatrix,v)}this.retainedQueryData[a.bucketInstanceId]=new ve(a.bucketInstanceId,o,a.sourceLayerIndex,a.index,n.tileID);var y={bucket:a,layout:l,posMatrix:f,textLabelPlaneMatrix:g,labelToScreenMatrix:m,scale:c,textPixelRatio:u,holdingForFade:n.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:t.evaluateSizeForZoom(a.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(a.sourceID)};if(i)for(var x=0,b=a.sortKeyRanges;x&lt;b.length;x+=1){var _=b[x];e.push({sortKey:_.sortKey,symbolInstanceStart:_.symbolInstanceStart,symbolInstanceEnd:_.symbolInstanceEnd,parameters:y})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:a.symbolInstances.length,parameters:y})}},_e.prototype.attemptAnchorPlacement=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d){var g,m=[f.textOffset0,f.textOffset1],v=xe(t,r,n,m,i),y=this.collisionIndex.placeCollisionBox(be(e,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate);if(!d||0!==this.collisionIndex.placeCollisionBox(be(d,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate).box.length)return y.box.length&gt;0?(this.prevPlacement&amp;&amp;this.prevPlacement.variableOffsets[f.crossTileID]&amp;&amp;this.prevPlacement.placements[f.crossTileID]&amp;&amp;this.prevPlacement.placements[f.crossTileID].text&amp;&amp;(g=this.prevPlacement.variableOffsets[f.crossTileID].anchor),this.variableOffsets[f.crossTileID]={textOffset:m,width:r,height:n,anchor:t,textBoxScale:i,prevAnchor:g},this.markUsedJustification(h,t,f,p),h.allowVerticalPlacement&amp;&amp;(this.markUsedOrientation(h,p,f),this.placedOrientations[f.crossTileID]=p),{shift:v,placedGlyphBoxes:y}):void 0},_e.prototype.placeLayerBucketPart=function(e,r,n){var i=this,a=e.parameters,o=a.bucket,s=a.layout,l=a.posMatrix,c=a.textLabelPlaneMatrix,u=a.labelToScreenMatrix,f=a.textPixelRatio,h=a.holdingForFade,p=a.collisionBoxArray,d=a.partiallyEvaluatedTextSize,g=a.collisionGroup,m=s.get(&quot;text-optional&quot;),v=s.get(&quot;icon-optional&quot;),y=s.get(&quot;text-allow-overlap&quot;),x=s.get(&quot;icon-allow-overlap&quot;),b=&quot;map&quot;===s.get(&quot;text-rotation-alignment&quot;),_=&quot;map&quot;===s.get(&quot;text-pitch-alignment&quot;),w=&quot;none&quot;!==s.get(&quot;icon-text-fit&quot;),T=&quot;viewport-y&quot;===s.get(&quot;symbol-z-order&quot;),k=y&amp;&amp;(x||!o.hasIconData()||v),M=x&amp;&amp;(y||!o.hasTextData()||m);!o.collisionArrays&amp;&amp;p&amp;&amp;o.deserializeCollisionBoxes(p);var A=function(e,a){if(!r[e.crossTileID])if(h)i.placements[e.crossTileID]=new ge(!1,!1,!1);else{var p,T=!1,A=!1,S=!0,E=null,C={box:null,offscreen:null},L={box:null,offscreen:null},I=null,P=null,z=0,O=0,D=0;a.textFeatureIndex?z=a.textFeatureIndex:e.useRuntimeCollisionCircles&amp;&amp;(z=e.featureIndex),a.verticalTextFeatureIndex&amp;&amp;(O=a.verticalTextFeatureIndex);var R=a.textBox;if(R){var F=function(r){var n=t.WritingMode.horizontal;if(o.allowVerticalPlacement&amp;&amp;!r&amp;&amp;i.prevPlacement){var a=i.prevPlacement.placedOrientations[e.crossTileID];a&amp;&amp;(i.placedOrientations[e.crossTileID]=a,i.markUsedOrientation(o,n=a,e))}return n},B=function(r,n){if(o.allowVerticalPlacement&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;a.verticalTextBox)for(var i=0,s=o.writingModes;i&lt;s.length&amp;&amp;(s[i]===t.WritingMode.vertical?(C=n(),L=C):C=r(),!(C&amp;&amp;C.box&amp;&amp;C.box.length));i+=1);else C=r()};if(s.get(&quot;text-variable-anchor&quot;)){var N=s.get(&quot;text-variable-anchor&quot;);if(i.prevPlacement&amp;&amp;i.prevPlacement.variableOffsets[e.crossTileID]){var j=i.prevPlacement.variableOffsets[e.crossTileID];N.indexOf(j.anchor)&gt;0&amp;&amp;(N=N.filter((function(t){return t!==j.anchor}))).unshift(j.anchor)}var U=function(t,r,n){for(var a=t.x2-t.x1,s=t.y2-t.y1,c=e.textBoxScale,u=w&amp;&amp;!x?r:null,h={box:[],offscreen:!1},p=y?2*N.length:N.length,d=0;d&lt;p;++d){var m=i.attemptAnchorPlacement(N[d%N.length],t,a,s,c,b,_,f,l,g,d&gt;=N.length,e,o,n,u);if(m&amp;&amp;(h=m.placedGlyphBoxes)&amp;&amp;h.box&amp;&amp;h.box.length){T=!0,E=m.shift;break}}return h};B((function(){return U(R,a.iconBox,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox;return o.allowVerticalPlacement&amp;&amp;!(C&amp;&amp;C.box&amp;&amp;C.box.length)&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;r?U(r,a.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),C&amp;&amp;(T=C.box,S=C.offscreen);var V=F(C&amp;&amp;C.box);if(!T&amp;&amp;i.prevPlacement){var q=i.prevPlacement.variableOffsets[e.crossTileID];q&amp;&amp;(i.variableOffsets[e.crossTileID]=q,i.markUsedJustification(o,q.anchor,e,V))}}else{var H=function(t,r){var n=i.collisionIndex.placeCollisionBox(t,y,f,l,g.predicate);return n&amp;&amp;n.box&amp;&amp;n.box.length&amp;&amp;(i.markUsedOrientation(o,r,e),i.placedOrientations[e.crossTileID]=r),n};B((function(){return H(R,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox;return o.allowVerticalPlacement&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;r?H(r,t.WritingMode.vertical):{box:null,offscreen:null}})),F(C&amp;&amp;C.box&amp;&amp;C.box.length)}}if(T=(p=C)&amp;&amp;p.box&amp;&amp;p.box.length&gt;0,S=p&amp;&amp;p.offscreen,e.useRuntimeCollisionCircles){var G=o.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),Y=t.evaluateSizeForFeature(o.textSizeData,d,G),W=s.get(&quot;text-padding&quot;);I=i.collisionIndex.placeCollisionCircles(y,G,o.lineVertexArray,o.glyphOffsetArray,Y,l,c,u,n,_,g.predicate,e.collisionCircleDiameter,W),T=y||I.circles.length&gt;0&amp;&amp;!I.collisionDetected,S=S&amp;&amp;I.offscreen}if(a.iconFeatureIndex&amp;&amp;(D=a.iconFeatureIndex),a.iconBox){var X=function(t){var e=w&amp;&amp;E?be(t,E.x,E.y,b,_,i.transform.angle):t;return i.collisionIndex.placeCollisionBox(e,x,f,l,g.predicate)};A=L&amp;&amp;L.box&amp;&amp;L.box.length&amp;&amp;a.verticalIconBox?(P=X(a.verticalIconBox)).box.length&gt;0:(P=X(a.iconBox)).box.length&gt;0,S=S&amp;&amp;P.offscreen}var Z=m||0===e.numHorizontalGlyphVertices&amp;&amp;0===e.numVerticalGlyphVertices,J=v||0===e.numIconVertices;if(Z||J?J?Z||(A=A&amp;&amp;T):T=A&amp;&amp;T:A=T=A&amp;&amp;T,T&amp;&amp;p&amp;&amp;p.box&amp;&amp;i.collisionIndex.insertCollisionBox(p.box,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,L&amp;&amp;L.box&amp;&amp;O?O:z,g.ID),A&amp;&amp;P&amp;&amp;i.collisionIndex.insertCollisionBox(P.box,s.get(&quot;icon-ignore-placement&quot;),o.bucketInstanceId,D,g.ID),I&amp;&amp;(T&amp;&amp;i.collisionIndex.insertCollisionCircles(I.circles,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,z,g.ID),n)){var K=o.bucketInstanceId,Q=i.collisionCircleArrays[K];void 0===Q&amp;&amp;(Q=i.collisionCircleArrays[K]=new me);for(var $=0;$&lt;I.circles.length;$+=4)Q.circles.push(I.circles[$+0]),Q.circles.push(I.circles[$+1]),Q.circles.push(I.circles[$+2]),Q.circles.push(I.collisionDetected?1:0)}i.placements[e.crossTileID]=new ge(T||k,A||M,S||o.justReloaded),r[e.crossTileID]=!0}};if(T)for(var S=o.getSortedSymbolIndexes(this.transform.angle),E=S.length-1;E&gt;=0;--E){var C=S[E];A(o.symbolInstances.get(C),o.collisionArrays[C])}else for(var L=e.symbolInstanceStart;L&lt;e.symbolInstanceEnd;L++)A(o.symbolInstances.get(L),o.collisionArrays[L]);if(n&amp;&amp;o.bucketInstanceId in this.collisionCircleArrays){var I=this.collisionCircleArrays[o.bucketInstanceId];t.invert(I.invProjMatrix,l),I.viewportMatrix=this.collisionIndex.getViewportMatrix()}o.justReloaded=!1},_e.prototype.markUsedJustification=function(e,r,n,i){var a;a=i===t.WritingMode.vertical?n.verticalPlacedTextSymbolIndex:{left:n.leftJustifiedTextSymbolIndex,center:n.centerJustifiedTextSymbolIndex,right:n.rightJustifiedTextSymbolIndex}[t.getAnchorJustification(r)];for(var o=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex,n.verticalPlacedTextSymbolIndex];o&lt;s.length;o+=1){var l=s[o];l&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(l).crossTileID=a&gt;=0&amp;&amp;l!==a?0:n.crossTileID)}},_e.prototype.markUsedOrientation=function(e,r,n){for(var i=r===t.WritingMode.horizontal||r===t.WritingMode.horizontalOnly?r:0,a=r===t.WritingMode.vertical?r:0,o=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex];o&lt;s.length;o+=1)e.text.placedSymbolArray.get(s[o]).placedOrientation=i;n.verticalPlacedTextSymbolIndex&amp;&amp;(e.text.placedSymbolArray.get(n.verticalPlacedTextSymbolIndex).placedOrientation=a)},_e.prototype.commit=function(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;var e=this.prevPlacement,r=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;var n=e?e.symbolFadeChange(t):1,i=e?e.opacities:{},a=e?e.variableOffsets:{},o=e?e.placedOrientations:{};for(var s in this.placements){var l=this.placements[s],c=i[s];c?(this.opacities[s]=new de(c,n,l.text,l.icon),r=r||l.text!==c.text.placed||l.icon!==c.icon.placed):(this.opacities[s]=new de(null,n,l.text,l.icon,l.skipFade),r=r||l.text||l.icon)}for(var u in i){var f=i[u];if(!this.opacities[u]){var h=new de(f,n,!1,!1);h.isHidden()||(this.opacities[u]=h,r=r||f.text.placed||f.icon.placed)}}for(var p in a)this.variableOffsets[p]||!this.opacities[p]||this.opacities[p].isHidden()||(this.variableOffsets[p]=a[p]);for(var d in o)this.placedOrientations[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.placedOrientations[d]=o[d]);r?this.lastPlacementChangeTime=t:&quot;number&quot;!=typeof this.lastPlacementChangeTime&amp;&amp;(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)},_e.prototype.updateLayerOpacities=function(t,e){for(var r={},n=0,i=e;n&lt;i.length;n+=1){var a=i[n],o=a.getBucket(t);o&amp;&amp;a.latestFeatureIndex&amp;&amp;t.id===o.layerIds[0]&amp;&amp;this.updateBucketOpacities(o,r,a.collisionBoxArray)}},_e.prototype.updateBucketOpacities=function(e,r,n){var i=this;e.hasTextData()&amp;&amp;e.text.opacityVertexArray.clear(),e.hasIconData()&amp;&amp;e.icon.opacityVertexArray.clear(),e.hasIconCollisionBoxData()&amp;&amp;e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&amp;&amp;e.textCollisionBox.collisionVertexArray.clear();var a=e.layers[0].layout,o=new de(null,0,!1,!1,!0),s=a.get(&quot;text-allow-overlap&quot;),l=a.get(&quot;icon-allow-overlap&quot;),c=a.get(&quot;text-variable-anchor&quot;),u=&quot;map&quot;===a.get(&quot;text-rotation-alignment&quot;),f=&quot;map&quot;===a.get(&quot;text-pitch-alignment&quot;),h=&quot;none&quot;!==a.get(&quot;icon-text-fit&quot;),p=new de(null,0,s&amp;&amp;(l||!e.hasIconData()||a.get(&quot;icon-optional&quot;)),l&amp;&amp;(s||!e.hasTextData()||a.get(&quot;text-optional&quot;)),!0);!e.collisionArrays&amp;&amp;n&amp;&amp;(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&amp;&amp;e.deserializeCollisionBoxes(n);for(var d=function(t,e,r){for(var n=0;n&lt;e/4;n++)t.opacityVertexArray.emplaceBack(r)},g=function(n){var a=e.symbolInstances.get(n),s=a.numHorizontalGlyphVertices,l=a.numVerticalGlyphVertices,g=a.crossTileID,m=i.opacities[g];r[g]?m=o:m||(i.opacities[g]=m=p),r[g]=!0;var v=a.numIconVertices&gt;0,y=i.placedOrientations[a.crossTileID],x=y===t.WritingMode.vertical,b=y===t.WritingMode.horizontal||y===t.WritingMode.horizontalOnly;if(s&gt;0||l&gt;0){var _=Le(m.text);d(e.text,s,x?Ie:_),d(e.text,l,b?Ie:_);var w=m.text.isHidden();[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((function(t){t&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(t).hidden=w||x?1:0)})),a.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).hidden=w||b?1:0);var T=i.variableOffsets[a.crossTileID];T&amp;&amp;i.markUsedJustification(e,T.anchor,a,y);var k=i.placedOrientations[a.crossTileID];k&amp;&amp;(i.markUsedJustification(e,&quot;left&quot;,a,k),i.markUsedOrientation(e,k,a))}if(v){var M=Le(m.icon),A=!(h&amp;&amp;a.verticalPlacedIconSymbolIndex&amp;&amp;x);a.placedIconSymbolIndex&gt;=0&amp;&amp;(d(e.icon,a.numIconVertices,A?M:Ie),e.icon.placedSymbolArray.get(a.placedIconSymbolIndex).hidden=m.icon.isHidden()),a.verticalPlacedIconSymbolIndex&gt;=0&amp;&amp;(d(e.icon,a.numVerticalIconVertices,A?Ie:M),e.icon.placedSymbolArray.get(a.verticalPlacedIconSymbolIndex).hidden=m.icon.isHidden())}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){var S=e.collisionArrays[n];if(S){var E=new t.Point(0,0);if(S.textBox||S.verticalTextBox){var C=!0;if(c){var L=i.variableOffsets[g];L?(E=xe(L.anchor,L.width,L.height,L.textOffset,L.textBoxScale),u&amp;&amp;E._rotate(f?i.transform.angle:-i.transform.angle)):C=!1}S.textBox&amp;&amp;we(e.textCollisionBox.collisionVertexArray,m.text.placed,!C||x,E.x,E.y),S.verticalTextBox&amp;&amp;we(e.textCollisionBox.collisionVertexArray,m.text.placed,!C||b,E.x,E.y)}var I=Boolean(!b&amp;&amp;S.verticalIconBox);S.iconBox&amp;&amp;we(e.iconCollisionBox.collisionVertexArray,m.icon.placed,I,h?E.x:0,h?E.y:0),S.verticalIconBox&amp;&amp;we(e.iconCollisionBox.collisionVertexArray,m.icon.placed,!I,h?E.x:0,h?E.y:0)}}},m=0;m&lt;e.symbolInstances.length;m++)g(m);if(e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&amp;&amp;(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&amp;&amp;e.text.opacityVertexBuffer&amp;&amp;e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&amp;&amp;e.icon.opacityVertexBuffer&amp;&amp;e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&amp;&amp;e.iconCollisionBox.collisionVertexBuffer&amp;&amp;e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&amp;&amp;e.textCollisionBox.collisionVertexBuffer&amp;&amp;e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.bucketInstanceId in this.collisionCircleArrays){var v=this.collisionCircleArrays[e.bucketInstanceId];e.placementInvProjMatrix=v.invProjMatrix,e.placementViewportMatrix=v.viewportMatrix,e.collisionCircleArray=v.circles,delete this.collisionCircleArrays[e.bucketInstanceId]}},_e.prototype.symbolFadeChange=function(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},_e.prototype.zoomAdjustment=function(t){return Math.max(0,(this.transform.zoom-t)/1.5)},_e.prototype.hasTransitions=function(t){return this.stale||t-this.lastPlacementChangeTime&lt;this.fadeDuration},_e.prototype.stillRecent=function(t,e){var r=this.zoomAtLastRecencyCheck===e?1-this.zoomAdjustment(e):1;return this.zoomAtLastRecencyCheck=e,this.commitTime+this.fadeDuration*r&gt;t},_e.prototype.setStale=function(){this.stale=!0};var Te=Math.pow(2,25),ke=Math.pow(2,24),Me=Math.pow(2,17),Ae=Math.pow(2,16),Se=Math.pow(2,9),Ee=Math.pow(2,8),Ce=Math.pow(2,1);function Le(t){if(0===t.opacity&amp;&amp;!t.placed)return 0;if(1===t.opacity&amp;&amp;t.placed)return 4294967295;var e=t.placed?1:0,r=Math.floor(127*t.opacity);return r*Te+e*ke+r*Me+e*Ae+r*Se+e*Ee+r*Ce+e}var Ie=0,Pe=function(t){this._sortAcrossTiles=&quot;viewport-y&quot;!==t.layout.get(&quot;symbol-z-order&quot;)&amp;&amp;void 0!==t.layout.get(&quot;symbol-sort-key&quot;).constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Pe.prototype.continuePlacement=function(t,e,r,n,i){for(var a=this._bucketParts;this._currentTileIndex&lt;t.length;)if(e.getBucketParts(a,n,t[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,i())return!0;for(this._sortAcrossTiles&amp;&amp;(this._sortAcrossTiles=!1,a.sort((function(t,e){return t.sortKey-e.sortKey})));this._currentPartIndex&lt;a.length;)if(e.placeLayerBucketPart(a[this._currentPartIndex],this._seenCrossTileIDs,r),this._currentPartIndex++,i())return!0;return!1};var ze=function(t,e,r,n,i,a,o){this.placement=new _e(t,i,a,o),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=n,this._done=!1};ze.prototype.isDone=function(){return this._done},ze.prototype.continuePlacement=function(e,r,n){for(var i=this,a=t.browser.now(),o=function(){var e=t.browser.now()-a;return!i._forceFullPlacement&amp;&amp;e&gt;2};this._currentPlacementIndex&gt;=0;){var s=r[e[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if(&quot;symbol&quot;===s.type&amp;&amp;(!s.minzoom||s.minzoom&lt;=l)&amp;&amp;(!s.maxzoom||s.maxzoom&gt;l)){if(this._inProgressLayer||(this._inProgressLayer=new Pe(s)),this._inProgressLayer.continuePlacement(n[s.source],this.placement,this._showCollisionBoxes,s,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},ze.prototype.commit=function(t){return this.placement.commit(t),this.placement};var Oe=512/t.EXTENT/2,De=function(t,e,r){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=r;for(var n=0;n&lt;e.length;n++){var i=e.get(n),a=i.key;this.indexedSymbolInstances[a]||(this.indexedSymbolInstances[a]=[]),this.indexedSymbolInstances[a].push({crossTileID:i.crossTileID,coord:this.getScaledCoordinates(i,t)})}};De.prototype.getScaledCoordinates=function(e,r){var n=Oe/Math.pow(2,r.canonical.z-this.tileID.canonical.z);return{x:Math.floor((r.canonical.x*t.EXTENT+e.anchorX)*n),y:Math.floor((r.canonical.y*t.EXTENT+e.anchorY)*n)}},De.prototype.findMatches=function(t,e,r){for(var n=this.tileID.canonical.z&lt;e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z),i=0;i&lt;t.length;i++){var a=t.get(i);if(!a.crossTileID){var o=this.indexedSymbolInstances[a.key];if(o)for(var s=this.getScaledCoordinates(a,e),l=0,c=o;l&lt;c.length;l+=1){var u=c[l];if(Math.abs(u.coord.x-s.x)&lt;=n&amp;&amp;Math.abs(u.coord.y-s.y)&lt;=n&amp;&amp;!r[u.crossTileID]){r[u.crossTileID]=!0,a.crossTileID=u.crossTileID;break}}}}};var Re=function(){this.maxCrossTileID=0};Re.prototype.generate=function(){return++this.maxCrossTileID};var Fe=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};Fe.prototype.handleWrapJump=function(t){var e=Math.round((t-this.lng)/360);if(0!==e)for(var r in this.indexes){var n=this.indexes[r],i={};for(var a in n){var o=n[a];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+e),i[o.tileID.key]=o}this.indexes[r]=i}this.lng=t},Fe.prototype.addBucket=function(t,e,r){if(this.indexes[t.overscaledZ]&amp;&amp;this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(var n=0;n&lt;e.symbolInstances.length;n++)e.symbolInstances.get(n).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});var i=this.usedCrossTileIDs[t.overscaledZ];for(var a in this.indexes){var o=this.indexes[a];if(Number(a)&gt;t.overscaledZ)for(var s in o){var l=o[s];l.tileID.isChildOf(t)&amp;&amp;l.findMatches(e.symbolInstances,t,i)}else{var c=o[t.scaledTo(Number(a)).key];c&amp;&amp;c.findMatches(e.symbolInstances,t,i)}}for(var u=0;u&lt;e.symbolInstances.length;u++){var f=e.symbolInstances.get(u);f.crossTileID||(f.crossTileID=r.generate(),i[f.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&amp;&amp;(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new De(t,e.symbolInstances,e.bucketInstanceId),!0},Fe.prototype.removeBucketCrossTileIDs=function(t,e){for(var r in e.indexedSymbolInstances)for(var n=0,i=e.indexedSymbolInstances[r];n&lt;i.length;n+=1)delete this.usedCrossTileIDs[t][i[n].crossTileID]},Fe.prototype.removeStaleBuckets=function(t){var e=!1;for(var r in this.indexes){var n=this.indexes[r];for(var i in n)t[n[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(r,n[i]),delete n[i],e=!0)}return e};var Be=function(){this.layerIndexes={},this.crossTileIDs=new Re,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};Be.prototype.addLayer=function(t,e,r){var n=this.layerIndexes[t.id];void 0===n&amp;&amp;(n=this.layerIndexes[t.id]=new Fe);var i=!1,a={};n.handleWrapJump(r);for(var o=0,s=e;o&lt;s.length;o+=1){var l=s[o],c=l.getBucket(t);c&amp;&amp;t.id===c.layerIds[0]&amp;&amp;(c.bucketInstanceId||(c.bucketInstanceId=++this.maxBucketInstanceId),n.addBucket(l.tileID,c,this.crossTileIDs)&amp;&amp;(i=!0),a[c.bucketInstanceId]=!0)}return n.removeStaleBuckets(a)&amp;&amp;(i=!0),i},Be.prototype.pruneUnusedLayers=function(t){var e={};for(var r in t.forEach((function(t){e[t]=!0})),this.layerIndexes)e[r]||delete this.layerIndexes[r]};var Ne=function(e,r){return t.emitValidationErrors(e,r&amp;&amp;r.filter((function(t){return&quot;source.canvas&quot;!==t.identifier})))},je=t.pick(Ut,[&quot;addLayer&quot;,&quot;removeLayer&quot;,&quot;setPaintProperty&quot;,&quot;setLayoutProperty&quot;,&quot;setFilter&quot;,&quot;addSource&quot;,&quot;removeSource&quot;,&quot;setLayerZoomRange&quot;,&quot;setLight&quot;,&quot;setTransition&quot;,&quot;setGeoJSONSourceData&quot;]),Ue=t.pick(Ut,[&quot;setCenter&quot;,&quot;setZoom&quot;,&quot;setBearing&quot;,&quot;setPitch&quot;]),Ve=function(){var e={},r=t.styleSpec.$version;for(var n in t.styleSpec.$root){var i,a=t.styleSpec.$root[n];a.required&amp;&amp;null!=(i=&quot;version&quot;===n?r:&quot;array&quot;===a.type?[]:{})&amp;&amp;(e[n]=i)}return e}(),qe=function(e){function r(n,i){var a=this;void 0===i&amp;&amp;(i={}),e.call(this),this.map=n,this.dispatcher=new k(Bt(),this),this.imageManager=new h,this.imageManager.setEventedParent(this),this.glyphManager=new x(n._requestManager,i.localIdeographFontFamily),this.lineAtlas=new T(256,512),this.crossTileSymbolIndex=new Be,this._layers={},this._serializedLayers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast(&quot;setReferrer&quot;,t.getReferrer());var o=this;this._rtlTextPluginCallback=r.registerForPluginStateChange((function(e){o.dispatcher.broadcast(&quot;syncRTLPluginState&quot;,{pluginStatus:e.pluginStatus,pluginURL:e.pluginURL},(function(e,r){if(t.triggerPluginCompletionEvent(e),r&amp;&amp;r.every((function(t){return t})))for(var n in o.sourceCaches)o.sourceCaches[n].reload()}))})),this.on(&quot;data&quot;,(function(t){if(&quot;source&quot;===t.dataType&amp;&amp;&quot;metadata&quot;===t.sourceDataType){var e=a.sourceCaches[t.sourceId];if(e){var r=e.getSource();if(r&amp;&amp;r.vectorLayerIds)for(var n in a._layers){var i=a._layers[n];i.source===r.id&amp;&amp;a._validateLayer(i)}}}}))}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.loadURL=function(e,r){var n=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;}));var i=&quot;boolean&quot;==typeof r.validate?r.validate:!t.isMapboxURL(e);e=this.map._requestManager.normalizeStyleURL(e,r.accessToken);var a=this.map._requestManager.transformRequest(e,t.ResourceType.Style);this._request=t.getJSON(a,(function(e,r){n._request=null,e?n.fire(new t.ErrorEvent(e)):r&amp;&amp;n._load(r,i)}))},r.prototype.loadJSON=function(e,r){var n=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;})),this._request=t.browser.frame((function(){n._request=null,n._load(e,!1!==r.validate)}))},r.prototype.loadEmpty=function(){this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;})),this._load(Ve,!1)},r.prototype._load=function(e,r){if(!r||!Ne(this,t.validateStyle(e))){for(var n in this._loaded=!0,this.stylesheet=e,e.sources)this.addSource(n,e.sources[n],{validate:!1});e.sprite?this._loadSprite(e.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(e.glyphs);var i=jt(this.stylesheet.layers);this._order=i.map((function(t){return t.id})),this._layers={},this._serializedLayers={};for(var a=0,o=i;a&lt;o.length;a+=1){var s=o[a];(s=t.createStyleLayer(s)).setEventedParent(this,{layer:{id:s.id}}),this._layers[s.id]=s,this._serializedLayers[s.id]=s.serialize()}this.dispatcher.broadcast(&quot;setLayers&quot;,this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;})),this.fire(new t.Event(&quot;style.load&quot;))}},r.prototype._loadSprite=function(e){var r=this;this._spriteRequest=function(e,r,n){var i,a,o,s=t.browser.devicePixelRatio&gt;1?&quot;@2x&quot;:&quot;&quot;,l=t.getJSON(r.transformRequest(r.normalizeSpriteURL(e,s,&quot;.json&quot;),t.ResourceType.SpriteJSON),(function(t,e){l=null,o||(o=t,i=e,u())})),c=t.getImage(r.transformRequest(r.normalizeSpriteURL(e,s,&quot;.png&quot;),t.ResourceType.SpriteImage),(function(t,e){c=null,o||(o=t,a=e,u())}));function u(){if(o)n(o);else if(i&amp;&amp;a){var e=t.browser.getImageData(a),r={};for(var s in i){var l=i[s],c=l.width,u=l.height,f=l.x,h=l.y,p=l.sdf,d=l.pixelRatio,g=l.stretchX,m=l.stretchY,v=l.content,y=new t.RGBAImage({width:c,height:u});t.RGBAImage.copy(e,y,{x:f,y:h},{x:0,y:0},{width:c,height:u}),r[s]={data:y,pixelRatio:d,sdf:p,stretchX:g,stretchY:m,content:v}}n(null,r)}}return{cancel:function(){l&amp;&amp;(l.cancel(),l=null),c&amp;&amp;(c.cancel(),c=null)}}}(e,this.map._requestManager,(function(e,n){if(r._spriteRequest=null,e)r.fire(new t.ErrorEvent(e));else if(n)for(var i in n)r.imageManager.addImage(i,n[i]);r.imageManager.setLoaded(!0),r._availableImages=r.imageManager.listImages(),r.dispatcher.broadcast(&quot;setImages&quot;,r._availableImages),r.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))}))},r.prototype._validateLayer=function(e){var r=this.sourceCaches[e.source];if(r){var n=e.sourceLayer;if(n){var i=r.getSource();(&quot;geojson&quot;===i.type||i.vectorLayerIds&amp;&amp;-1===i.vectorLayerIds.indexOf(n))&amp;&amp;this.fire(new t.ErrorEvent(new Error('Source layer &quot;'+n+'&quot; does not exist on source &quot;'+i.id+'&quot; as specified by style layer &quot;'+e.id+'&quot;')))}}},r.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},r.prototype._serializeLayers=function(t){for(var e=[],r=0,n=t;r&lt;n.length;r+=1){var i=this._layers[n[r]];&quot;custom&quot;!==i.type&amp;&amp;e.push(i.serialize())}return e},r.prototype.hasTransitions=function(){if(this.light&amp;&amp;this.light.hasTransition())return!0;for(var t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(var e in this._layers)if(this._layers[e].hasTransition())return!0;return!1},r.prototype._checkLoaded=function(){if(!this._loaded)throw new Error(&quot;Style is not done loading&quot;)},r.prototype.update=function(e){if(this._loaded){var r=this._changed;if(this._changed){var n=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);for(var a in(n.length||i.length)&amp;&amp;this._updateWorkerLayers(n,i),this._updatedSources){var o=this._updatedSources[a];&quot;reload&quot;===o?this._reloadSource(a):&quot;clear&quot;===o&amp;&amp;this._clearSource(a)}for(var s in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[s].updateTransitions(e);this.light.updateTransitions(e),this._resetUpdates()}for(var l in this.sourceCaches)this.sourceCaches[l].used=!1;for(var c=0,u=this._order;c&lt;u.length;c+=1){var f=this._layers[u[c]];f.recalculate(e,this._availableImages),!f.isHidden(e.zoom)&amp;&amp;f.source&amp;&amp;(this.sourceCaches[f.source].used=!0)}this.light.recalculate(e),this.z=e.zoom,r&amp;&amp;this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))}},r.prototype._updateTilesForChangedImages=function(){var t=Object.keys(this._changedImages);if(t.length){for(var e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies([&quot;icons&quot;,&quot;patterns&quot;],t);this._changedImages={}}},r.prototype._updateWorkerLayers=function(t,e){this.dispatcher.broadcast(&quot;updateLayers&quot;,{layers:this._serializeLayers(t),removedIds:e})},r.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}},r.prototype.setState=function(e){var r=this;if(this._checkLoaded(),Ne(this,t.validateStyle(e)))return!1;(e=t.clone$1(e)).layers=jt(e.layers);var n=function(e,r){if(!e)return[{command:Ut.setStyle,args:[r]}];var n=[];try{if(!t.deepEqual(e.version,r.version))return[{command:Ut.setStyle,args:[r]}];t.deepEqual(e.center,r.center)||n.push({command:Ut.setCenter,args:[r.center]}),t.deepEqual(e.zoom,r.zoom)||n.push({command:Ut.setZoom,args:[r.zoom]}),t.deepEqual(e.bearing,r.bearing)||n.push({command:Ut.setBearing,args:[r.bearing]}),t.deepEqual(e.pitch,r.pitch)||n.push({command:Ut.setPitch,args:[r.pitch]}),t.deepEqual(e.sprite,r.sprite)||n.push({command:Ut.setSprite,args:[r.sprite]}),t.deepEqual(e.glyphs,r.glyphs)||n.push({command:Ut.setGlyphs,args:[r.glyphs]}),t.deepEqual(e.transition,r.transition)||n.push({command:Ut.setTransition,args:[r.transition]}),t.deepEqual(e.light,r.light)||n.push({command:Ut.setLight,args:[r.light]});var i={},a=[];!function(e,r,n,i){var a;for(a in r=r||{},e=e||{})e.hasOwnProperty(a)&amp;&amp;(r.hasOwnProperty(a)||qt(a,n,i));for(a in r)r.hasOwnProperty(a)&amp;&amp;(e.hasOwnProperty(a)?t.deepEqual(e[a],r[a])||(&quot;geojson&quot;===e[a].type&amp;&amp;&quot;geojson&quot;===r[a].type&amp;&amp;Gt(e,r,a)?n.push({command:Ut.setGeoJSONSourceData,args:[a,r[a].data]}):Ht(a,r,n,i)):Vt(a,r,n))}(e.sources,r.sources,a,i);var o=[];e.layers&amp;&amp;e.layers.forEach((function(t){i[t.source]?n.push({command:Ut.removeLayer,args:[t.id]}):o.push(t)})),n=n.concat(a),function(e,r,n){r=r||[];var i,a,o,s,l,c,u,f=(e=e||[]).map(Wt),h=r.map(Wt),p=e.reduce(Xt,{}),d=r.reduce(Xt,{}),g=f.slice(),m=Object.create(null);for(i=0,a=0;i&lt;f.length;i++)d.hasOwnProperty(o=f[i])?a++:(n.push({command:Ut.removeLayer,args:[o]}),g.splice(g.indexOf(o,a),1));for(i=0,a=0;i&lt;h.length;i++)g[g.length-1-i]!==(o=h[h.length-1-i])&amp;&amp;(p.hasOwnProperty(o)?(n.push({command:Ut.removeLayer,args:[o]}),g.splice(g.lastIndexOf(o,g.length-a),1)):a++,n.push({command:Ut.addLayer,args:[d[o],c=g[g.length-i]]}),g.splice(g.length-i,0,o),m[o]=!0);for(i=0;i&lt;h.length;i++)if(s=p[o=h[i]],l=d[o],!m[o]&amp;&amp;!t.deepEqual(s,l))if(t.deepEqual(s.source,l.source)&amp;&amp;t.deepEqual(s[&quot;source-layer&quot;],l[&quot;source-layer&quot;])&amp;&amp;t.deepEqual(s.type,l.type)){for(u in Yt(s.layout,l.layout,n,o,null,Ut.setLayoutProperty),Yt(s.paint,l.paint,n,o,null,Ut.setPaintProperty),t.deepEqual(s.filter,l.filter)||n.push({command:Ut.setFilter,args:[o,l.filter]}),t.deepEqual(s.minzoom,l.minzoom)&amp;&amp;t.deepEqual(s.maxzoom,l.maxzoom)||n.push({command:Ut.setLayerZoomRange,args:[o,l.minzoom,l.maxzoom]}),s)s.hasOwnProperty(u)&amp;&amp;&quot;layout&quot;!==u&amp;&amp;&quot;paint&quot;!==u&amp;&amp;&quot;filter&quot;!==u&amp;&amp;&quot;metadata&quot;!==u&amp;&amp;&quot;minzoom&quot;!==u&amp;&amp;&quot;maxzoom&quot;!==u&amp;&amp;(0===u.indexOf(&quot;paint.&quot;)?Yt(s[u],l[u],n,o,u.slice(6),Ut.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:Ut.setLayerProperty,args:[o,u,l[u]]}));for(u in l)l.hasOwnProperty(u)&amp;&amp;!s.hasOwnProperty(u)&amp;&amp;&quot;layout&quot;!==u&amp;&amp;&quot;paint&quot;!==u&amp;&amp;&quot;filter&quot;!==u&amp;&amp;&quot;metadata&quot;!==u&amp;&amp;&quot;minzoom&quot;!==u&amp;&amp;&quot;maxzoom&quot;!==u&amp;&amp;(0===u.indexOf(&quot;paint.&quot;)?Yt(s[u],l[u],n,o,u.slice(6),Ut.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:Ut.setLayerProperty,args:[o,u,l[u]]}))}else n.push({command:Ut.removeLayer,args:[o]}),c=g[g.lastIndexOf(o)+1],n.push({command:Ut.addLayer,args:[l,c]})}(o,r.layers,n)}catch(t){console.warn(&quot;Unable to compute style diff:&quot;,t),n=[{command:Ut.setStyle,args:[r]}]}return n}(this.serialize(),e).filter((function(t){return!(t.command in Ue)}));if(0===n.length)return!1;var i=n.filter((function(t){return!(t.command in je)}));if(i.length&gt;0)throw new Error(&quot;Unimplemented: &quot;+i.map((function(t){return t.command})).join(&quot;, &quot;)+&quot;.&quot;);return n.forEach((function(t){&quot;setTransition&quot;!==t.command&amp;&amp;r[t.command].apply(r,t.args)})),this.stylesheet=e,!0},r.prototype.addImage=function(e,r){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error(&quot;An image with this name already exists.&quot;)));this.imageManager.addImage(e,r),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))},r.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},r.prototype.getImage=function(t){return this.imageManager.getImage(t)},r.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error(&quot;No image with this name exists.&quot;)));this.imageManager.removeImage(e),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))},r.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},r.prototype.addSource=function(e,r,n){var i=this;if(void 0===n&amp;&amp;(n={}),this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error(&quot;There is already a source with this ID&quot;);if(!r.type)throw new Error(&quot;The type property must be defined, but the only the following properties were given: &quot;+Object.keys(r).join(&quot;, &quot;)+&quot;.&quot;);if(!([&quot;vector&quot;,&quot;raster&quot;,&quot;geojson&quot;,&quot;video&quot;,&quot;image&quot;].indexOf(r.type)&gt;=0&amp;&amp;this._validate(t.validateStyle.source,&quot;sources.&quot;+e,r,null,n))){this.map&amp;&amp;this.map._collectResourceTiming&amp;&amp;(r.collectResourceTiming=!0);var a=this.sourceCaches[e]=new Lt(e,r,this.dispatcher);a.style=this,a.setEventedParent(this,(function(){return{isSourceLoaded:i.loaded(),source:a.serialize(),sourceId:e}})),a.onAdd(this.map),this._changed=!0}},r.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error(&quot;There is no source with this ID&quot;);for(var r in this._layers)if(this._layers[r].source===e)return this.fire(new t.ErrorEvent(new Error('Source &quot;'+e+'&quot; cannot be removed while layer &quot;'+r+'&quot; is using it.')));var n=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],n.fire(new t.Event(&quot;data&quot;,{sourceDataType:&quot;metadata&quot;,dataType:&quot;source&quot;,sourceId:e})),n.setEventedParent(null),n.clearTiles(),n.onRemove&amp;&amp;n.onRemove(this.map),this._changed=!0},r.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},r.prototype.getSource=function(t){return this.sourceCaches[t]&amp;&amp;this.sourceCaches[t].getSource()},r.prototype.addLayer=function(e,r,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var i=e.id;if(this.getLayer(i))this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+i+'&quot; already exists on this map')));else{var a;if(&quot;custom&quot;===e.type){if(Ne(this,t.validateCustomStyleLayer(e)))return;a=t.createStyleLayer(e)}else{if(&quot;object&quot;==typeof e.source&amp;&amp;(this.addSource(i,e.source),e=t.clone$1(e),e=t.extend(e,{source:i})),this._validate(t.validateStyle.layer,&quot;layers.&quot;+i,e,{arrayIndex:-1},n))return;a=t.createStyleLayer(e),this._validateLayer(a),a.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[a.id]=a.serialize()}var o=r?this._order.indexOf(r):this._order.length;if(r&amp;&amp;-1===o)this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+r+'&quot; does not exist on this map.')));else{if(this._order.splice(o,0,i),this._layerOrderChanged=!0,this._layers[i]=a,this._removedLayers[i]&amp;&amp;a.source&amp;&amp;&quot;custom&quot;!==a.type){var s=this._removedLayers[i];delete this._removedLayers[i],s.type!==a.type?this._updatedSources[a.source]=&quot;clear&quot;:(this._updatedSources[a.source]=&quot;reload&quot;,this.sourceCaches[a.source].pause())}this._updateLayer(a),a.onAdd&amp;&amp;a.onAdd(this.map)}}},r.prototype.moveLayer=function(e,r){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==r){var n=this._order.indexOf(e);this._order.splice(n,1);var i=r?this._order.indexOf(r):this._order.length;r&amp;&amp;-1===i?this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+r+'&quot; does not exist on this map.'))):(this._order.splice(i,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be moved.&quot;)))},r.prototype.removeLayer=function(e){this._checkLoaded();var r=this._layers[e];if(r){r.setEventedParent(null);var n=this._order.indexOf(e);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=r,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],r.onRemove&amp;&amp;r.onRemove(this.map)}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be removed.&quot;)))},r.prototype.getLayer=function(t){return this._layers[t]},r.prototype.hasLayer=function(t){return t in this._layers},r.prototype.setLayerZoomRange=function(e,r,n){this._checkLoaded();var i=this.getLayer(e);i?i.minzoom===r&amp;&amp;i.maxzoom===n||(null!=r&amp;&amp;(i.minzoom=r),null!=n&amp;&amp;(i.maxzoom=n),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot have zoom extent.&quot;)))},r.prototype.setFilter=function(e,r,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var i=this.getLayer(e);if(i){if(!t.deepEqual(i.filter,r))return null==r?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(t.validateStyle.filter,&quot;layers.&quot;+i.id+&quot;.filter&quot;,r,null,n)||(i.filter=t.clone$1(r),this._updateLayer(i)))}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be filtered.&quot;)))},r.prototype.getFilter=function(e){return t.clone$1(this.getLayer(e).filter)},r.prototype.setLayoutProperty=function(e,r,n,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getLayoutProperty(r),n)||(a.setLayoutProperty(r,n,i),this._updateLayer(a)):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be styled.&quot;)))},r.prototype.getLayoutProperty=function(e,r){var n=this.getLayer(e);if(n)return n.getLayoutProperty(r);this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style.&quot;)))},r.prototype.setPaintProperty=function(e,r,n,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getPaintProperty(r),n)||(a.setPaintProperty(r,n,i)&amp;&amp;this._updateLayer(a),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be styled.&quot;)))},r.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},r.prototype.setFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=e.sourceLayer,a=this.sourceCaches[n];if(void 0!==a){var o=a.getSource().type;&quot;geojson&quot;===o&amp;&amp;i?this.fire(new t.ErrorEvent(new Error(&quot;GeoJSON sources cannot have a sourceLayer parameter.&quot;))):&quot;vector&quot;!==o||i?(void 0===e.id&amp;&amp;this.fire(new t.ErrorEvent(new Error(&quot;The feature id parameter must be provided.&quot;))),a.setFeatureState(i,e.id,r)):this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+n+&quot;' does not exist in the map's style.&quot;)))},r.prototype.removeFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=this.sourceCaches[n];if(void 0!==i){var a=i.getSource().type,o=&quot;vector&quot;===a?e.sourceLayer:void 0;&quot;vector&quot;!==a||o?r&amp;&amp;&quot;string&quot;!=typeof e.id&amp;&amp;&quot;number&quot;!=typeof e.id?this.fire(new t.ErrorEvent(new Error(&quot;A feature id is requred to remove its specific state property.&quot;))):i.removeFeatureState(o,e.id,r):this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+n+&quot;' does not exist in the map's style.&quot;)))},r.prototype.getFeatureState=function(e){this._checkLoaded();var r=e.source,n=e.sourceLayer,i=this.sourceCaches[r];if(void 0!==i){if(&quot;vector&quot;!==i.getSource().type||n)return void 0===e.id&amp;&amp;this.fire(new t.ErrorEvent(new Error(&quot;The feature id parameter must be provided.&quot;))),i.getFeatureState(n,e.id);this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+r+&quot;' does not exist in the map's style.&quot;)))},r.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&amp;&amp;this.stylesheet.transition)},r.prototype.serialize=function(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,(function(t){return t.serialize()})),layers:this._serializeLayers(this._order)},(function(t){return void 0!==t}))},r.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&amp;&amp;!this._updatedSources[t.source]&amp;&amp;&quot;raster&quot;!==this.sourceCaches[t.source].getSource().type&amp;&amp;(this._updatedSources[t.source]=&quot;reload&quot;,this.sourceCaches[t.source].pause()),this._changed=!0},r.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,r=function(t){return&quot;fill-extrusion&quot;===e._layers[t].type},n={},i=[],a=this._order.length-1;a&gt;=0;a--){var o=this._order[a];if(r(o)){n[o]=a;for(var s=0,l=t;s&lt;l.length;s+=1){var c=l[s][o];if(c)for(var u=0,f=c;u&lt;f.length;u+=1)i.push(f[u])}}}i.sort((function(t,e){return e.intersectionZ-t.intersectionZ}));for(var h=[],p=this._order.length-1;p&gt;=0;p--){var d=this._order[p];if(r(d))for(var g=i.length-1;g&gt;=0;g--){var m=i[g].feature;if(n[m.layer.id]&lt;p)break;h.push(m),i.pop()}else for(var v=0,y=t;v&lt;y.length;v+=1){var x=y[v][d];if(x)for(var b=0,_=x;b&lt;_.length;b+=1)h.push(_[b].feature)}}return h},r.prototype.queryRenderedFeatures=function(e,r,n){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,&quot;queryRenderedFeatures.filter&quot;,r.filter,null,r);var i={};if(r&amp;&amp;r.layers){if(!Array.isArray(r.layers))return this.fire(new t.ErrorEvent(new Error(&quot;parameters.layers must be an Array.&quot;))),[];for(var a=0,o=r.layers;a&lt;o.length;a+=1){var s=o[a],l=this._layers[s];if(!l)return this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+s+&quot;' does not exist in the map's style and cannot be queried for features.&quot;))),[];i[l.source]=!0}}var c=[];for(var u in r.availableImages=this._availableImages,this.sourceCaches)r.layers&amp;&amp;!i[u]||c.push(F(this.sourceCaches[u],this._layers,this._serializedLayers,e,r,n));return this.placement&amp;&amp;c.push(function(t,e,r,n,i,a,o){for(var s={},l=a.queryRenderedSymbols(n),c=[],u=0,f=Object.keys(l).map(Number);u&lt;f.length;u+=1)c.push(o[f[u]]);c.sort(B);for(var h=function(){var r=d[p],n=r.featureIndex.lookupSymbolFeatures(l[r.bucketInstanceId],e,r.bucketIndex,r.sourceLayerIndex,i.filter,i.layers,i.availableImages,t);for(var a in n){var o=s[a]=s[a]||[],c=n[a];c.sort((function(t,e){var n=r.featureSortOrder;if(n){var i=n.indexOf(t.featureIndex);return n.indexOf(e.featureIndex)-i}return e.featureIndex-t.featureIndex}));for(var u=0,f=c;u&lt;f.length;u+=1)o.push(f[u])}},p=0,d=c;p&lt;d.length;p+=1)h();var g=function(e){s[e].forEach((function(n){var i=n.feature,a=r[t[e].source].getFeatureState(i.layer[&quot;source-layer&quot;],i.id);i.source=i.layer.source,i.layer[&quot;source-layer&quot;]&amp;&amp;(i.sourceLayer=i.layer[&quot;source-layer&quot;]),i.state=a}))};for(var m in s)g(m);return s}(this._layers,this._serializedLayers,this.sourceCaches,e,r,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(c)},r.prototype.querySourceFeatures=function(e,r){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,&quot;querySourceFeatures.filter&quot;,r.filter,null,r);var n=this.sourceCaches[e];return n?function(t,e){for(var r=t.getRenderableIds().map((function(e){return t.getTileByID(e)})),n=[],i={},a=0;a&lt;r.length;a++){var o=r[a],s=o.tileID.canonical.key;i[s]||(i[s]=!0,o.querySourceFeatures(n,e))}return n}(n,r):[]},r.prototype.addSourceType=function(t,e,n){return r.getSourceType(t)?n(new Error('A source type called &quot;'+t+'&quot; already exists.')):(r.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast(&quot;loadWorkerSource&quot;,{name:t,url:e.workerSourceURL},n):n(null,null))},r.prototype.getLight=function(){return this.light.getLight()},r.prototype.setLight=function(e,r){void 0===r&amp;&amp;(r={}),this._checkLoaded();var n=this.light.getLight(),i=!1;for(var a in e)if(!t.deepEqual(e[a],n[a])){i=!0;break}if(i){var o={now:t.browser.now(),transition:t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,r),this.light.updateTransitions(o)}},r.prototype._validate=function(e,r,n,i,a){return void 0===a&amp;&amp;(a={}),(!a||!1!==a.validate)&amp;&amp;Ne(this,e.call(t.validateStyle,t.extend({key:r,style:this.serialize(),value:n,styleSpec:t.styleSpec},i)))},r.prototype._remove=function(){for(var e in this._request&amp;&amp;(this._request.cancel(),this._request=null),this._spriteRequest&amp;&amp;(this._spriteRequest.cancel(),this._spriteRequest=null),t.evented.off(&quot;pluginStateChange&quot;,this._rtlTextPluginCallback),this._layers)this._layers[e].setEventedParent(null);for(var r in this.sourceCaches)this.sourceCaches[r].clearTiles(),this.sourceCaches[r].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()},r.prototype._clearSource=function(t){this.sourceCaches[t].clearTiles()},r.prototype._reloadSource=function(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()},r.prototype._updateSources=function(t){for(var e in this.sourceCaches)this.sourceCaches[e].update(t)},r.prototype._generateCollisionBoxes=function(){for(var t in this.sourceCaches)this._reloadSource(t)},r.prototype._updatePlacement=function(e,r,n,i,a){void 0===a&amp;&amp;(a=!1);for(var o=!1,s=!1,l={},c=0,u=this._order;c&lt;u.length;c+=1){var f=this._layers[u[c]];if(&quot;symbol&quot;===f.type){if(!l[f.source]){var h=this.sourceCaches[f.source];l[f.source]=h.getRenderableIds(!0).map((function(t){return h.getTileByID(t)})).sort((function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)}))}var p=this.crossTileSymbolIndex.addLayer(f,l[f.source],e.center.lng);o=o||p}}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((a=a||this._layerOrderChanged||0===n)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&amp;&amp;!this.placement.stillRecent(t.browser.now(),e.zoom))&amp;&amp;(this.pauseablePlacement=new ze(e,this._order,a,r,n,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&amp;&amp;(this.placement=this.pauseablePlacement.commit(t.browser.now()),s=!0),o&amp;&amp;this.pauseablePlacement.placement.setStale()),s||o)for(var d=0,g=this._order;d&lt;g.length;d+=1){var m=this._layers[g[d]];&quot;symbol&quot;===m.type&amp;&amp;this.placement.updateLayerOpacities(m,l[m.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(t.browser.now())},r.prototype._releaseSymbolFadeTiles=function(){for(var t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()},r.prototype.getImages=function(t,e,r){this.imageManager.getImages(e.icons,r),this._updateTilesForChangedImages();var n=this.sourceCaches[e.source];n&amp;&amp;n.setDependencies(e.tileID.key,e.type,e.icons)},r.prototype.getGlyphs=function(t,e,r){this.glyphManager.getGlyphs(e.stacks,r)},r.prototype.getResource=function(e,r,n){return t.makeRequest(r,n)},r}(t.Evented);qe.getSourceType=function(t){return D[t]},qe.setSourceType=function(t,e){D[t]=e},qe.registerForPluginStateChange=t.registerForPluginStateChange;var He=t.createLayout([{name:&quot;a_pos&quot;,type:&quot;Int16&quot;,components:2}]),Ge=vr(&quot;#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif&quot;,&quot;#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}&quot;),Ye=vr(&quot;uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),We=vr(&quot;uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}&quot;),Xe=vr(&quot;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width &lt; 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}&quot;),Ze=vr(&quot;void main() {gl_FragColor=vec4(1.0);}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),Je=vr(&quot;uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}&quot;),Ke=vr(&quot;uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}&quot;),Qe=vr(&quot;varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed &gt; 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed &gt; 0.5) {gl_FragColor*=.1;}}&quot;,&quot;attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}&quot;),$e=vr(&quot;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}&quot;,&quot;attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd  =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz  /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx &gt;=2.0)),mix(-1.0,1.0,float(vertexIdx &gt;=1.0 &amp;&amp; vertexIdx &lt;=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}&quot;),tr=vr(&quot;uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}&quot;,&quot;attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}&quot;),er=vr(&quot;#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),rr=vr(&quot;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}&quot;),nr=vr(&quot;uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}&quot;),ir=vr(&quot;uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}&quot;),ar=vr(&quot;varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t &gt; 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}&quot;),or=vr(&quot;uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t &gt; 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 &amp;&amp; normal.y==0.0 &amp;&amp; normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}&quot;),sr=vr(&quot;#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform float u_maxzoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom &lt; 2.0 ? 0.4 : u_zoom &lt; 4.5 ? 0.35 : 0.3;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}&quot;),lr=vr(&quot;uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y &gt; 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}&quot;),cr=vr(&quot;uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}&quot;),ur=vr(&quot;uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define MAX_LINE_DISTANCE 32767.0\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}&quot;),fr=vr(&quot;uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}&quot;),hr=vr(&quot;uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}&quot;),pr=vr(&quot;uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a &gt; 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a &gt; 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}&quot;),dr=vr(&quot;uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}&quot;),gr=vr(&quot;#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}&quot;),mr=vr(&quot;#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}&quot;);function vr(t,e){var r=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,n={};return{fragmentSource:t=t.replace(r,(function(t,e,r,i,a){return n[a]=!0,&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nvarying &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifdef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;})),vertexSource:e=e.replace(r,(function(t,e,r,i,a){var o=&quot;float&quot;===i?&quot;vec2&quot;:&quot;vec4&quot;,s=a.match(/color/)?&quot;color&quot;:o;return n[a]?&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nuniform lowp float u_&quot;+a+&quot;_t;\nattribute &quot;+r+&quot; &quot;+o+&quot; a_&quot;+a+&quot;;\nvarying &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;vec4&quot;===s?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+a+&quot; = a_&quot;+a+&quot;;\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+a+&quot; = unpack_mix_&quot;+s+&quot;(a_&quot;+a+&quot;, u_&quot;+a+&quot;_t);\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nuniform lowp float u_&quot;+a+&quot;_t;\nattribute &quot;+r+&quot; &quot;+o+&quot; a_&quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;vec4&quot;===s?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = a_&quot;+a+&quot;;\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = unpack_mix_&quot;+s+&quot;(a_&quot;+a+&quot;, u_&quot;+a+&quot;_t);\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;}))}}var yr=Object.freeze({__proto__:null,prelude:Ge,background:Ye,backgroundPattern:We,circle:Xe,clippingMask:Ze,heatmap:Je,heatmapTexture:Ke,collisionBox:Qe,collisionCircle:$e,debug:tr,fill:er,fillOutline:rr,fillOutlinePattern:nr,fillPattern:ir,fillExtrusion:ar,fillExtrusionPattern:or,hillshadePrepare:sr,hillshade:lr,line:cr,lineGradient:ur,linePattern:fr,lineSDF:hr,raster:pr,symbolIcon:dr,symbolSDF:gr,symbolTextAndIcon:mr}),xr=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};xr.prototype.bind=function(t,e,r,n,i,a,o,s){this.context=t;for(var l=this.boundPaintVertexBuffers.length!==n.length,c=0;!l&amp;&amp;c&lt;n.length;c++)this.boundPaintVertexBuffers[c]!==n[c]&amp;&amp;(l=!0);t.extVertexArrayObject&amp;&amp;this.vao&amp;&amp;this.boundProgram===e&amp;&amp;this.boundLayoutVertexBuffer===r&amp;&amp;!l&amp;&amp;this.boundIndexBuffer===i&amp;&amp;this.boundVertexOffset===a&amp;&amp;this.boundDynamicVertexBuffer===o&amp;&amp;this.boundDynamicVertexBuffer2===s?(t.bindVertexArrayOES.set(this.vao),o&amp;&amp;o.bind(),i&amp;&amp;i.dynamicDraw&amp;&amp;i.bind(),s&amp;&amp;s.bind()):this.freshBind(e,r,n,i,a,o,s)},xr.prototype.freshBind=function(t,e,r,n,i,a,o){var s,l=t.numAttributes,c=this.context,u=c.gl;if(c.extVertexArrayObject)this.vao&amp;&amp;this.destroy(),this.vao=c.extVertexArrayObject.createVertexArrayOES(),c.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=r,this.boundIndexBuffer=n,this.boundVertexOffset=i,this.boundDynamicVertexBuffer=a,this.boundDynamicVertexBuffer2=o;else{s=c.currentNumAttributes||0;for(var f=l;f&lt;s;f++)u.disableVertexAttribArray(f)}e.enableAttributes(u,t);for(var h=0,p=r;h&lt;p.length;h+=1)p[h].enableAttributes(u,t);a&amp;&amp;a.enableAttributes(u,t),o&amp;&amp;o.enableAttributes(u,t),e.bind(),e.setVertexAttribPointers(u,t,i);for(var d=0,g=r;d&lt;g.length;d+=1){var m=g[d];m.bind(),m.setVertexAttribPointers(u,t,i)}a&amp;&amp;(a.bind(),a.setVertexAttribPointers(u,t,i)),n&amp;&amp;n.bind(),o&amp;&amp;(o.bind(),o.setVertexAttribPointers(u,t,i)),c.currentNumAttributes=l},xr.prototype.destroy=function(){this.vao&amp;&amp;(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var br=function(t,e,r,n,i){var a=t.gl;this.program=a.createProgram();var o=r?r.defines():[];i&amp;&amp;o.push(&quot;#define OVERDRAW_INSPECTOR;&quot;);var s=o.concat(Ge.fragmentSource,e.fragmentSource).join(&quot;\n&quot;),l=o.concat(Ge.vertexSource,e.vertexSource).join(&quot;\n&quot;),c=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(c,s),a.compileShader(c),a.attachShader(this.program,c);var u=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(u,l),a.compileShader(u),a.attachShader(this.program,u);for(var f=r?r.layoutAttributes:[],h=0;h&lt;f.length;h++)a.bindAttribLocation(this.program,h,f[h].name);a.linkProgram(this.program),a.deleteShader(u),a.deleteShader(c),this.numAttributes=a.getProgramParameter(this.program,a.ACTIVE_ATTRIBUTES),this.attributes={};for(var p={},d=0;d&lt;this.numAttributes;d++){var g=a.getActiveAttrib(this.program,d);g&amp;&amp;(this.attributes[g.name]=a.getAttribLocation(this.program,g.name))}for(var m=a.getProgramParameter(this.program,a.ACTIVE_UNIFORMS),v=0;v&lt;m;v++){var y=a.getActiveUniform(this.program,v);y&amp;&amp;(p[y.name]=a.getUniformLocation(this.program,y.name))}this.fixedUniforms=n(t,p),this.binderUniforms=r?r.getUniforms(t,p):[]}}};function _r(t,e,r){var n=1/he(r,1,e.transform.tileZoom),i=Math.pow(2,r.tileID.overscaledZ),a=r.tileSize*Math.pow(2,e.transform.tileZoom)/i,o=a*(r.tileID.canonical.x+r.tileID.wrap*i),s=a*r.tileID.canonical.y;return{u_image:0,u_texsize:r.imageAtlasTexture.size,u_scale:[n,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[o&gt;&gt;16,s&gt;&gt;16],u_pixel_coord_lower:[65535&amp;o,65535&amp;s]}}br.prototype.draw=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g){var m,v=t.gl;if(!this.failedToCreate){for(var y in t.program.set(this.program),t.setDepthMode(r),t.setStencilMode(n),t.setColorMode(i),t.setCullFace(a),this.fixedUniforms)this.fixedUniforms[y].set(o[y]);p&amp;&amp;p.setUniforms(t,this.binderUniforms,f,{zoom:h});for(var x=(m={},m[v.LINES]=2,m[v.TRIANGLES]=3,m[v.LINE_STRIP]=1,m)[e],b=0,_=u.get();b&lt;_.length;b+=1){var w=_[b],T=w.vaos||(w.vaos={});(T[s]||(T[s]=new xr)).bind(t,this,l,p?p.getPaintVertexBuffers():[],c,w.vertexOffset,d,g),v.drawElements(e,w.primitiveLength*x,v.UNSIGNED_SHORT,w.primitiveOffset*x*2)}}};var wr=function(e,r,n,i){var a=r.style.light,o=a.properties.get(&quot;position&quot;),s=[o.x,o.y,o.z],l=t.create$1();&quot;viewport&quot;===a.properties.get(&quot;anchor&quot;)&amp;&amp;t.fromRotation(l,-r.transform.angle),t.transformMat3(s,s,l);var c=a.properties.get(&quot;color&quot;);return{u_matrix:e,u_lightpos:s,u_lightintensity:a.properties.get(&quot;intensity&quot;),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+n,u_opacity:i}},Tr=function(e,r,n,i,a,o,s){return t.extend(wr(e,r,n,i),_r(o,r,s),{u_height_factor:-Math.pow(2,a.overscaledZ)/s.tileSize/8})},kr=function(t){return{u_matrix:t}},Mr=function(e,r,n,i){return t.extend(kr(e),_r(n,r,i))},Ar=function(t,e){return{u_matrix:t,u_world:e}},Sr=function(e,r,n,i,a){return t.extend(Mr(e,r,n,i),{u_world:a})},Er=function(e,r,n,i){var a,o,s=e.transform;if(&quot;map&quot;===i.paint.get(&quot;circle-pitch-alignment&quot;)){var l=he(n,1,s.zoom);a=!0,o=[l,l]}else a=!1,o=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+(&quot;map&quot;===i.paint.get(&quot;circle-pitch-scale&quot;)),u_matrix:e.translatePosMatrix(r.posMatrix,n,i.paint.get(&quot;circle-translate&quot;),i.paint.get(&quot;circle-translate-anchor&quot;)),u_pitch_with_map:+a,u_device_pixel_ratio:t.browser.devicePixelRatio,u_extrude_scale:o}},Cr=function(t,e,r){var n=he(r,1,e.zoom),i=Math.pow(2,e.zoom-r.tileID.overscaledZ),a=r.tileID.overscaleFactor();return{u_matrix:t,u_camera_to_center_distance:e.cameraToCenterDistance,u_pixels_to_tile_units:n,u_extrude_scale:[e.pixelsToGLUnits[0]/(n*i),e.pixelsToGLUnits[1]/(n*i)],u_overscale_factor:a}},Lr=function(t,e,r){return{u_matrix:t,u_inv_matrix:e,u_camera_to_center_distance:r.cameraToCenterDistance,u_viewport_size:[r.width,r.height]}},Ir=function(t,e,r){return void 0===r&amp;&amp;(r=1),{u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:r}},Pr=function(t){return{u_matrix:t}},zr=function(t,e,r,n){return{u_matrix:t,u_extrude_scale:he(e,1,r),u_intensity:n}},Or=function(e,r,n){var i=e.transform;return{u_matrix:Nr(e,r,n),u_ratio:1/he(r,1,i.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},Dr=function(e,r,n){return t.extend(Or(e,r,n),{u_image:0})},Rr=function(e,r,n,i){var a=e.transform,o=Br(r,a);return{u_matrix:Nr(e,r,n),u_texsize:r.imageAtlasTexture.size,u_ratio:1/he(r,1,a.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_image:0,u_scale:[o,i.fromScale,i.toScale],u_fade:i.t,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]]}},Fr=function(e,r,n,i,a){var o=e.lineAtlas,s=Br(r,e.transform),l=&quot;round&quot;===n.layout.get(&quot;line-cap&quot;),c=o.getDash(i.from,l),u=o.getDash(i.to,l),f=c.width*a.fromScale,h=u.width*a.toScale;return t.extend(Or(e,r,n),{u_patternscale_a:[s/f,-c.height/2],u_patternscale_b:[s/h,-u.height/2],u_sdfgamma:o.width/(256*Math.min(f,h)*t.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:c.y,u_tex_y_b:u.y,u_mix:a.t})};function Br(t,e){return 1/he(t,1,e.tileZoom)}function Nr(t,e,r){return t.translatePosMatrix(e.tileID.posMatrix,e,r.paint.get(&quot;line-translate&quot;),r.paint.get(&quot;line-translate-anchor&quot;))}var jr=function(t,e,r,n,i){return{u_matrix:t,u_tl_parent:e,u_scale_parent:r,u_buffer_scale:1,u_fade_t:n.mix,u_opacity:n.opacity*i.paint.get(&quot;raster-opacity&quot;),u_image0:0,u_image1:1,u_brightness_low:i.paint.get(&quot;raster-brightness-min&quot;),u_brightness_high:i.paint.get(&quot;raster-brightness-max&quot;),u_saturation_factor:(o=i.paint.get(&quot;raster-saturation&quot;),o&gt;0?1-1/(1.001-o):-o),u_contrast_factor:(a=i.paint.get(&quot;raster-contrast&quot;),a&gt;0?1/(1-a):1+a),u_spin_weights:Ur(i.paint.get(&quot;raster-hue-rotate&quot;))};var a,o};function Ur(t){t*=Math.PI/180;var e=Math.sin(t),r=Math.cos(t);return[(2*r+1)/3,(-Math.sqrt(3)*e-r+1)/3,(Math.sqrt(3)*e-r+1)/3]}var Vr,qr=function(t,e,r,n,i,a,o,s,l,c){var u=i.transform;return{u_is_size_zoom_constant:+(&quot;constant&quot;===t||&quot;source&quot;===t),u_is_size_feature_constant:+(&quot;constant&quot;===t||&quot;camera&quot;===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:u.cameraToCenterDistance,u_pitch:u.pitch/360*2*Math.PI,u_rotate_symbol:+r,u_aspect_ratio:u.width/u.height,u_fade_change:i.options.fadeDuration?i.symbolFadeChange:1,u_matrix:a,u_label_plane_matrix:o,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+n,u_texsize:c,u_texture:0}},Hr=function(e,r,n,i,a,o,s,l,c,u,f){var h=a.transform;return t.extend(qr(e,r,n,i,a,o,s,l,c,u),{u_gamma_scale:i?Math.cos(h._pitch)*h.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+f})},Gr=function(e,r,n,i,a,o,s,l,c,u){return t.extend(Hr(e,r,n,i,a,o,s,l,!0,c,!0),{u_texsize_icon:u,u_texture_icon:1})},Yr=function(t,e,r){return{u_matrix:t,u_opacity:e,u_color:r}},Wr=function(e,r,n,i,a,o){return t.extend(function(t,e,r,n){var i=r.imageManager.getPattern(t.from.toString()),a=r.imageManager.getPattern(t.to.toString()),o=r.imageManager.getPixelSize(),s=o.width,l=o.height,c=Math.pow(2,n.tileID.overscaledZ),u=n.tileSize*Math.pow(2,r.transform.tileZoom)/c,f=u*(n.tileID.canonical.x+n.tileID.wrap*c),h=u*n.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[s,l],u_mix:e.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/he(n,1,r.transform.tileZoom),u_pixel_coord_upper:[f&gt;&gt;16,h&gt;&gt;16],u_pixel_coord_lower:[65535&amp;f,65535&amp;h]}}(i,o,n,a),{u_matrix:e,u_opacity:r})},Xr={fillExtrusion:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fillExtrusionPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,r.u_height_factor),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fill:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},fillPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},fillOutline:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world)}},fillOutlinePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},circle:function(e,r){return{u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,r.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},collisionBox:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,r.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,r.u_overscale_factor)}},collisionCircle:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,r.u_inv_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,r.u_viewport_size)}},debug:function(e,r){return{u_color:new t.UniformColor(e,r.u_color),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_overlay:new t.Uniform1i(e,r.u_overlay),u_overlay_scale:new t.Uniform1f(e,r.u_overlay_scale)}},clippingMask:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmap:function(e,r){return{u_extrude_scale:new t.Uniform1f(e,r.u_extrude_scale),u_intensity:new t.Uniform1f(e,r.u_intensity),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmapTexture:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_color_ramp:new t.Uniform1i(e,r.u_color_ramp),u_opacity:new t.Uniform1f(e,r.u_opacity)}},hillshade:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_latrange:new t.Uniform2f(e,r.u_latrange),u_light:new t.Uniform2f(e,r.u_light),u_shadow:new t.UniformColor(e,r.u_shadow),u_highlight:new t.UniformColor(e,r.u_highlight),u_accent:new t.UniformColor(e,r.u_accent)}},hillshadePrepare:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_dimension:new t.Uniform2f(e,r.u_dimension),u_zoom:new t.Uniform1f(e,r.u_zoom),u_maxzoom:new t.Uniform1f(e,r.u_maxzoom),u_unpack:new t.Uniform4f(e,r.u_unpack)}},line:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels)}},lineGradient:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_image:new t.Uniform1i(e,r.u_image)}},linePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_texsize:new t.Uniform2f(e,r.u_texsize),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_image:new t.Uniform1i(e,r.u_image),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},lineSDF:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,r.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,r.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,r.u_sdfgamma),u_image:new t.Uniform1i(e,r.u_image),u_tex_y_a:new t.Uniform1f(e,r.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,r.u_tex_y_b),u_mix:new t.Uniform1f(e,r.u_mix)}},raster:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_tl_parent:new t.Uniform2f(e,r.u_tl_parent),u_scale_parent:new t.Uniform1f(e,r.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,r.u_buffer_scale),u_fade_t:new t.Uniform1f(e,r.u_fade_t),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image0:new t.Uniform1i(e,r.u_image0),u_image1:new t.Uniform1i(e,r.u_image1),u_brightness_low:new t.Uniform1f(e,r.u_brightness_low),u_brightness_high:new t.Uniform1f(e,r.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,r.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,r.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,r.u_spin_weights)}},symbolIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture)}},symbolSDF:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},symbolTextAndIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texsize_icon:new t.Uniform2f(e,r.u_texsize_icon),u_texture:new t.Uniform1i(e,r.u_texture),u_texture_icon:new t.Uniform1i(e,r.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},background:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_color:new t.UniformColor(e,r.u_color)}},backgroundPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image:new t.Uniform1i(e,r.u_image),u_pattern_tl_a:new t.Uniform2f(e,r.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,r.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,r.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,r.u_pattern_br_b),u_texsize:new t.Uniform2f(e,r.u_texsize),u_mix:new t.Uniform1f(e,r.u_mix),u_pattern_size_a:new t.Uniform2f(e,r.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,r.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,r.u_scale_a),u_scale_b:new t.Uniform1f(e,r.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,r.u_tile_units_to_pixels)}}};function Zr(e,r,n,i,a,o,s){for(var l=e.context,c=l.gl,u=e.useProgram(&quot;collisionBox&quot;),f=[],h=0,p=0,d=0;d&lt;i.length;d++){var g=i[d],m=r.getTile(g),v=m.getBucket(n);if(v){var y=g.posMatrix;0===a[0]&amp;&amp;0===a[1]||(y=e.translatePosMatrix(g.posMatrix,m,a,o));var x=s?v.textCollisionBox:v.iconCollisionBox,b=v.collisionCircleArray;if(b.length&gt;0){var _=t.create(),w=y;t.mul(_,v.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul(_,_,v.placementViewportMatrix),f.push({circleArray:b,circleOffset:p,transform:w,invTransform:_}),p=h+=b.length/4}x&amp;&amp;u.draw(l,c.LINES,Mt.disabled,At.disabled,e.colorModeForRenderPass(),Et.disabled,Cr(y,e.transform,m),n.id,x.layoutVertexBuffer,x.indexBuffer,x.segments,null,e.transform.zoom,null,null,x.collisionVertexBuffer)}}if(s&amp;&amp;f.length){var T=e.useProgram(&quot;collisionCircle&quot;),k=new t.StructArrayLayout2f1f2i16;k.resize(4*h),k._trim();for(var M=0,A=0,S=f;A&lt;S.length;A+=1)for(var E=S[A],C=0;C&lt;E.circleArray.length/4;C++){var L=4*C,I=E.circleArray[L+0],P=E.circleArray[L+1],z=E.circleArray[L+2],O=E.circleArray[L+3];k.emplace(M++,I,P,z,O,0),k.emplace(M++,I,P,z,O,1),k.emplace(M++,I,P,z,O,2),k.emplace(M++,I,P,z,O,3)}(!Vr||Vr.length&lt;2*h)&amp;&amp;(Vr=function(e){var r=2*e,n=new t.StructArrayLayout3ui6;n.resize(r),n._trim();for(var i=0;i&lt;r;i++){var a=6*i;n.uint16[a+0]=4*i+0,n.uint16[a+1]=4*i+1,n.uint16[a+2]=4*i+2,n.uint16[a+3]=4*i+2,n.uint16[a+4]=4*i+3,n.uint16[a+5]=4*i+0}return n}(h));for(var D=l.createIndexBuffer(Vr,!0),R=l.createVertexBuffer(k,t.collisionCircleLayout.members,!0),F=0,B=f;F&lt;B.length;F+=1){var N=B[F],j=Lr(N.transform,N.invTransform,e.transform);T.draw(l,c.TRIANGLES,Mt.disabled,At.disabled,e.colorModeForRenderPass(),Et.disabled,j,n.id,R,D,t.SegmentVector.simpleSegment(0,2*N.circleOffset,N.circleArray.length,N.circleArray.length/2),null,e.transform.zoom,null,null,null)}R.destroy(),D.destroy()}}var Jr=t.identity(new Float32Array(16));function Kr(e,r,n,i,a,o){var s=t.getAnchorAlignment(e),l=-(s.horizontalAlign-.5)*r,c=-(s.verticalAlign-.5)*n,u=t.evaluateVariableOffset(e,i);return new t.Point((l/a+u[0])*o,(c/a+u[1])*o)}function Qr(e,r,n,i,a,o,s,l,c,u,f){var h=e.text.placedSymbolArray,p=e.text.dynamicLayoutVertexArray,d=e.icon.dynamicLayoutVertexArray,g={};p.clear();for(var m=0;m&lt;h.length;m++){var v=h.get(m),y=v.hidden||!v.crossTileID||e.allowVerticalPlacement&amp;&amp;!v.placedOrientation?null:i[v.crossTileID];if(y){var x=new t.Point(v.anchorX,v.anchorY),b=$t(x,n?l:s),_=te(o.cameraToCenterDistance,b.signedDistanceFromCamera),w=a.evaluateSizeForFeature(e.textSizeData,u,v)*_/t.ONE_EM;n&amp;&amp;(w*=e.tilePixelRatio/c);for(var T=Kr(y.anchor,y.width,y.height,y.textOffset,y.textBoxScale,w),k=n?$t(x.add(T),s).point:b.point.add(r?T.rotate(-o.angle):T),M=e.allowVerticalPlacement&amp;&amp;v.placedOrientation===t.WritingMode.vertical?Math.PI/2:0,A=0;A&lt;v.numGlyphs;A++)t.addDynamicAttributes(p,k,M);f&amp;&amp;v.associatedIconIndex&gt;=0&amp;&amp;(g[v.associatedIconIndex]={shiftedAnchor:k,angle:M})}else ce(v.numGlyphs,p)}if(f){d.clear();for(var S=e.icon.placedSymbolArray,E=0;E&lt;S.length;E++){var C=S.get(E);if(C.hidden)ce(C.numGlyphs,d);else{var L=g[E];if(L)for(var I=0;I&lt;C.numGlyphs;I++)t.addDynamicAttributes(d,L.shiftedAnchor,L.angle);else ce(C.numGlyphs,d)}}e.icon.dynamicLayoutVertexBuffer.updateData(d)}e.text.dynamicLayoutVertexBuffer.updateData(p)}function $r(t,e,r){return r.iconsInText&amp;&amp;e?&quot;symbolTextAndIcon&quot;:t?&quot;symbolSDF&quot;:&quot;symbolIcon&quot;}function tn(e,r,n,i,a,o,s,l,c,u,f,h){for(var p=e.context,d=p.gl,g=e.transform,m=&quot;map&quot;===l,v=&quot;map&quot;===c,y=m&amp;&amp;&quot;point&quot;!==n.layout.get(&quot;symbol-placement&quot;),x=m&amp;&amp;!v&amp;&amp;!y,b=void 0!==n.layout.get(&quot;symbol-sort-key&quot;).constantOr(1),_=e.depthModeForSublayer(0,Mt.ReadOnly),w=n.layout.get(&quot;text-variable-anchor&quot;),T=[],k=0,M=i;k&lt;M.length;k+=1){var A=M[k],S=r.getTile(A),E=S.getBucket(n);if(E){var C=a?E.text:E.icon;if(C&amp;&amp;C.segments.get().length){var L=C.programConfigurations.get(n.id),I=a||E.sdfIcons,P=a?E.textSizeData:E.iconSizeData,z=v||0!==g.pitch,O=e.useProgram($r(I,a,E),L),D=t.evaluateSizeForZoom(P,g.zoom),R=void 0,F=[0,0],B=void 0,N=void 0,j=null,U=void 0;if(a)B=S.glyphAtlasTexture,N=d.LINEAR,R=S.glyphAtlasTexture.size,E.iconsInText&amp;&amp;(F=S.imageAtlasTexture.size,j=S.imageAtlasTexture,U=z||e.options.rotating||e.options.zooming||&quot;composite&quot;===P.kind||&quot;camera&quot;===P.kind?d.LINEAR:d.NEAREST);else{var V=1!==n.layout.get(&quot;icon-size&quot;).constantOr(0)||E.iconsNeedLinear;B=S.imageAtlasTexture,N=I||e.options.rotating||e.options.zooming||V||z?d.LINEAR:d.NEAREST,R=S.imageAtlasTexture.size}var q=he(S,1,e.transform.zoom),H=Kt(A.posMatrix,v,m,e.transform,q),G=Qt(A.posMatrix,v,m,e.transform,q),Y=w&amp;&amp;E.hasTextData(),W=&quot;none&quot;!==n.layout.get(&quot;icon-text-fit&quot;)&amp;&amp;Y&amp;&amp;E.hasIconData();y&amp;&amp;re(E,A.posMatrix,e,a,H,G,v,u);var X=e.translatePosMatrix(A.posMatrix,S,o,s),Z=y||a&amp;&amp;w||W?Jr:H,J=e.translatePosMatrix(G,S,o,s,!0),K=I&amp;&amp;0!==n.paint.get(a?&quot;text-halo-width&quot;:&quot;icon-halo-width&quot;).constantOr(1),Q={program:O,buffers:C,uniformValues:I?E.iconsInText?Gr(P.kind,D,x,v,e,X,Z,J,R,F):Hr(P.kind,D,x,v,e,X,Z,J,a,R,!0):qr(P.kind,D,x,v,e,X,Z,J,a,R),atlasTexture:B,atlasTextureIcon:j,atlasInterpolation:N,atlasInterpolationIcon:U,isSDF:I,hasHalo:K};if(b)for(var $=0,tt=C.segments.get();$&lt;tt.length;$+=1){var et=tt[$];T.push({segments:new t.SegmentVector([et]),sortKey:et.sortKey,state:Q})}else T.push({segments:C.segments,sortKey:0,state:Q})}}}b&amp;&amp;T.sort((function(t,e){return t.sortKey-e.sortKey}));for(var rt=0,nt=T;rt&lt;nt.length;rt+=1){var it=nt[rt],at=it.state;if(p.activeTexture.set(d.TEXTURE0),at.atlasTexture.bind(at.atlasInterpolation,d.CLAMP_TO_EDGE),at.atlasTextureIcon&amp;&amp;(p.activeTexture.set(d.TEXTURE1),at.atlasTextureIcon&amp;&amp;at.atlasTextureIcon.bind(at.atlasInterpolationIcon,d.CLAMP_TO_EDGE)),at.isSDF){var ot=at.uniformValues;at.hasHalo&amp;&amp;(ot.u_is_halo=1,en(at.buffers,it.segments,n,e,at.program,_,f,h,ot)),ot.u_is_halo=0}en(at.buffers,it.segments,n,e,at.program,_,f,h,at.uniformValues)}}function en(t,e,r,n,i,a,o,s,l){var c=n.context;i.draw(c,c.gl.TRIANGLES,a,o,s,Et.disabled,l,r.id,t.layoutVertexBuffer,t.indexBuffer,e,r.paint,n.transform.zoom,t.programConfigurations.get(r.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function rn(t,e,r,n,i,a,o){var s,l,c,u,f,h=t.context.gl,p=r.paint.get(&quot;fill-pattern&quot;),d=p&amp;&amp;p.constantOr(1),g=r.getCrossfadeParameters();o?(l=d&amp;&amp;!r.getPaintProperty(&quot;fill-outline-color&quot;)?&quot;fillOutlinePattern&quot;:&quot;fillOutline&quot;,s=h.LINES):(l=d?&quot;fillPattern&quot;:&quot;fill&quot;,s=h.TRIANGLES);for(var m=0,v=n;m&lt;v.length;m+=1){var y=v[m],x=e.getTile(y);if(!d||x.patternsLoaded()){var b=x.getBucket(r);if(b){var _=b.programConfigurations.get(r.id),w=t.useProgram(l,_);d&amp;&amp;(t.context.activeTexture.set(h.TEXTURE0),x.imageAtlasTexture.bind(h.LINEAR,h.CLAMP_TO_EDGE),_.updatePaintBuffers(g));var T=p.constantOr(null);if(T&amp;&amp;x.imageAtlas){var k=x.imageAtlas,M=k.patternPositions[T.to.toString()],A=k.patternPositions[T.from.toString()];M&amp;&amp;A&amp;&amp;_.setConstantPatternPositions(M,A)}var S=t.translatePosMatrix(y.posMatrix,x,r.paint.get(&quot;fill-translate&quot;),r.paint.get(&quot;fill-translate-anchor&quot;));if(o){u=b.indexBuffer2,f=b.segments2;var E=[h.drawingBufferWidth,h.drawingBufferHeight];c=&quot;fillOutlinePattern&quot;===l&amp;&amp;d?Sr(S,t,g,x,E):Ar(S,E)}else u=b.indexBuffer,f=b.segments,c=d?Mr(S,t,g,x):kr(S);w.draw(t.context,s,i,t.stencilModeForClipping(y),a,Et.disabled,c,r.id,b.layoutVertexBuffer,u,f,r.paint,t.transform.zoom,_)}}}}function nn(t,e,r,n,i,a,o){for(var s=t.context,l=s.gl,c=r.paint.get(&quot;fill-extrusion-pattern&quot;),u=c.constantOr(1),f=r.getCrossfadeParameters(),h=r.paint.get(&quot;fill-extrusion-opacity&quot;),p=0,d=n;p&lt;d.length;p+=1){var g=d[p],m=e.getTile(g),v=m.getBucket(r);if(v){var y=v.programConfigurations.get(r.id),x=t.useProgram(u?&quot;fillExtrusionPattern&quot;:&quot;fillExtrusion&quot;,y);u&amp;&amp;(t.context.activeTexture.set(l.TEXTURE0),m.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),y.updatePaintBuffers(f));var b=c.constantOr(null);if(b&amp;&amp;m.imageAtlas){var _=m.imageAtlas,w=_.patternPositions[b.to.toString()],T=_.patternPositions[b.from.toString()];w&amp;&amp;T&amp;&amp;y.setConstantPatternPositions(w,T)}var k=t.translatePosMatrix(g.posMatrix,m,r.paint.get(&quot;fill-extrusion-translate&quot;),r.paint.get(&quot;fill-extrusion-translate-anchor&quot;)),M=r.paint.get(&quot;fill-extrusion-vertical-gradient&quot;),A=u?Tr(k,t,M,h,g,f,m):wr(k,t,M,h);x.draw(s,s.gl.TRIANGLES,i,a,o,Et.backCCW,A,r.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,r.paint,t.transform.zoom,y)}}}function an(e,r,n,i,a,o){var s=e.context,l=s.gl,c=r.fbo;if(c){var u=e.useProgram(&quot;hillshade&quot;);s.activeTexture.set(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,c.colorAttachment.get());var f=function(e,r,n){var i=n.paint.get(&quot;hillshade-shadow-color&quot;),a=n.paint.get(&quot;hillshade-highlight-color&quot;),o=n.paint.get(&quot;hillshade-accent-color&quot;),s=n.paint.get(&quot;hillshade-illumination-direction&quot;)*(Math.PI/180);&quot;viewport&quot;===n.paint.get(&quot;hillshade-illumination-anchor&quot;)&amp;&amp;(s-=e.transform.angle);var l,c,u,f=!e.options.moving;return{u_matrix:e.transform.calculatePosMatrix(r.tileID.toUnwrapped(),f),u_image:0,u_latrange:(l=r.tileID,c=Math.pow(2,l.canonical.z),u=l.canonical.y,[new t.MercatorCoordinate(0,u/c).toLngLat().lat,new t.MercatorCoordinate(0,(u+1)/c).toLngLat().lat]),u_light:[n.paint.get(&quot;hillshade-exaggeration&quot;),s],u_shadow:i,u_highlight:a,u_accent:o}}(e,r,n);u.draw(s,l.TRIANGLES,i,a,o,Et.disabled,f,n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}}function on(e,r,n,i,a,o,s){var l=e.context,c=l.gl,u=r.dem;if(u&amp;&amp;u.data){var f=u.dim,h=u.stride,p=u.getPixels();if(l.activeTexture.set(c.TEXTURE1),l.pixelStoreUnpackPremultiplyAlpha.set(!1),r.demTexture=r.demTexture||e.getTileTexture(h),r.demTexture){var d=r.demTexture;d.update(p,{premultiply:!1}),d.bind(c.NEAREST,c.CLAMP_TO_EDGE)}else r.demTexture=new t.Texture(l,p,c.RGBA,{premultiply:!1}),r.demTexture.bind(c.NEAREST,c.CLAMP_TO_EDGE);l.activeTexture.set(c.TEXTURE0);var g=r.fbo;if(!g){var m=new t.Texture(l,{width:f,height:f,data:null},c.RGBA);m.bind(c.LINEAR,c.CLAMP_TO_EDGE),(g=r.fbo=l.createFramebuffer(f,f,!0)).colorAttachment.set(m.texture)}l.bindFramebuffer.set(g.framebuffer),l.viewport.set([0,0,f,f]),e.useProgram(&quot;hillshadePrepare&quot;).draw(l,c.TRIANGLES,a,o,s,Et.disabled,function(e,r,n){var i=r.stride,a=t.create();return t.ortho(a,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(a,a,[0,-t.EXTENT,0]),{u_matrix:a,u_image:1,u_dimension:[i,i],u_zoom:e.overscaledZ,u_maxzoom:n,u_unpack:r.getUnpackVector()}}(r.tileID,u,i),n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),r.needsHillshadePrepare=!1}}function sn(e,r,n,i,a){var o=i.paint.get(&quot;raster-fade-duration&quot;);if(o&gt;0){var s=t.browser.now(),l=(s-e.timeAdded)/o,c=r?(s-r.timeAdded)/o:-1,u=n.getSource(),f=a.coveringZoomLevel({tileSize:u.tileSize,roundZoom:u.roundZoom}),h=!r||Math.abs(r.tileID.overscaledZ-f)&gt;Math.abs(e.tileID.overscaledZ-f),p=h&amp;&amp;e.refreshedUponExpiration?1:t.clamp(h?l:1-c,0,1);return e.refreshedUponExpiration&amp;&amp;l&gt;=1&amp;&amp;(e.refreshedUponExpiration=!1),r?{opacity:1,mix:1-p}:{opacity:p,mix:0}}return{opacity:1,mix:0}}var ln=new t.Color(1,0,0,1),cn=new t.Color(0,1,0,1),un=new t.Color(0,0,1,1),fn=new t.Color(1,0,1,1),hn=new t.Color(0,1,1,1);function pn(t,e,r,n){gn(t,0,e+r/2,t.transform.width,r,n)}function dn(t,e,r,n){gn(t,e-r/2,0,r,t.transform.height,n)}function gn(e,r,n,i,a,o){var s=e.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(r*t.browser.devicePixelRatio,n*t.browser.devicePixelRatio,i*t.browser.devicePixelRatio,a*t.browser.devicePixelRatio),s.clear({color:o}),l.disable(l.SCISSOR_TEST)}function mn(e,r,n){var i=e.context,a=i.gl,o=n.posMatrix,s=e.useProgram(&quot;debug&quot;),l=Mt.disabled,c=At.disabled,u=e.colorModeForRenderPass();i.activeTexture.set(a.TEXTURE0),e.emptyTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE),s.draw(i,a.LINE_STRIP,l,c,u,Et.disabled,Ir(o,t.Color.red),&quot;$debug&quot;,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);var f=r.getTileByID(n.key).latestRawTileData,h=Math.floor((f&amp;&amp;f.byteLength||0)/1024),p=r.getTile(n).tileSize,d=512/Math.min(p,512)*(n.overscaledZ/e.transform.zoom)*.5,g=n.canonical.toString();n.overscaledZ!==n.canonical.z&amp;&amp;(g+=&quot; =&gt; &quot;+n.overscaledZ),function(t,e){t.initDebugOverlayCanvas();var r=t.debugOverlayCanvas,n=t.context.gl,i=t.debugOverlayCanvas.getContext(&quot;2d&quot;);i.clearRect(0,0,r.width,r.height),i.shadowColor=&quot;white&quot;,i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle=&quot;white&quot;,i.textBaseline=&quot;top&quot;,i.font=&quot;bold 36px Open Sans, sans-serif&quot;,i.fillText(e,5,5),i.strokeText(e,5,5),t.debugOverlayTexture.update(r),t.debugOverlayTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}(e,g+&quot; &quot;+h+&quot;kb&quot;),s.draw(i,a.TRIANGLES,l,c,St.alphaBlended,Et.disabled,Ir(o,t.Color.transparent,d),&quot;$debug&quot;,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments)}var vn={symbol:function(e,r,n,i,a){if(&quot;translucent&quot;===e.renderPass){var o=At.disabled,s=e.colorModeForRenderPass();n.layout.get(&quot;text-variable-anchor&quot;)&amp;&amp;function(e,r,n,i,a,o,s){for(var l=r.transform,c=&quot;map&quot;===a,u=&quot;map&quot;===o,f=0,h=e;f&lt;h.length;f+=1){var p=h[f],d=i.getTile(p),g=d.getBucket(n);if(g&amp;&amp;g.text&amp;&amp;g.text.segments.get().length){var m=t.evaluateSizeForZoom(g.textSizeData,l.zoom),v=he(d,1,r.transform.zoom),y=Kt(p.posMatrix,u,c,r.transform,v),x=&quot;none&quot;!==n.layout.get(&quot;icon-text-fit&quot;)&amp;&amp;g.hasIconData();if(m){var b=Math.pow(2,l.zoom-d.tileID.overscaledZ);Qr(g,c,u,s,t.symbolSize,l,y,p.posMatrix,b,m,x)}}}}(i,e,n,r,n.layout.get(&quot;text-rotation-alignment&quot;),n.layout.get(&quot;text-pitch-alignment&quot;),a),0!==n.paint.get(&quot;icon-opacity&quot;).constantOr(1)&amp;&amp;tn(e,r,n,i,!1,n.paint.get(&quot;icon-translate&quot;),n.paint.get(&quot;icon-translate-anchor&quot;),n.layout.get(&quot;icon-rotation-alignment&quot;),n.layout.get(&quot;icon-pitch-alignment&quot;),n.layout.get(&quot;icon-keep-upright&quot;),o,s),0!==n.paint.get(&quot;text-opacity&quot;).constantOr(1)&amp;&amp;tn(e,r,n,i,!0,n.paint.get(&quot;text-translate&quot;),n.paint.get(&quot;text-translate-anchor&quot;),n.layout.get(&quot;text-rotation-alignment&quot;),n.layout.get(&quot;text-pitch-alignment&quot;),n.layout.get(&quot;text-keep-upright&quot;),o,s),r.map.showCollisionBoxes&amp;&amp;(Zr(e,r,n,i,n.paint.get(&quot;text-translate&quot;),n.paint.get(&quot;text-translate-anchor&quot;),!0),Zr(e,r,n,i,n.paint.get(&quot;icon-translate&quot;),n.paint.get(&quot;icon-translate-anchor&quot;),!1))}},circle:function(e,r,n,i){if(&quot;translucent&quot;===e.renderPass){var a=n.paint.get(&quot;circle-opacity&quot;),o=n.paint.get(&quot;circle-stroke-width&quot;),s=n.paint.get(&quot;circle-stroke-opacity&quot;),l=void 0!==n.layout.get(&quot;circle-sort-key&quot;).constantOr(1);if(0!==a.constantOr(1)||0!==o.constantOr(1)&amp;&amp;0!==s.constantOr(1)){for(var c=e.context,u=c.gl,f=e.depthModeForSublayer(0,Mt.ReadOnly),h=At.disabled,p=e.colorModeForRenderPass(),d=[],g=0;g&lt;i.length;g++){var m=i[g],v=r.getTile(m),y=v.getBucket(n);if(y){var x=y.programConfigurations.get(n.id),b={programConfiguration:x,program:e.useProgram(&quot;circle&quot;,x),layoutVertexBuffer:y.layoutVertexBuffer,indexBuffer:y.indexBuffer,uniformValues:Er(e,m,v,n)};if(l)for(var _=0,w=y.segments.get();_&lt;w.length;_+=1){var T=w[_];d.push({segments:new t.SegmentVector([T]),sortKey:T.sortKey,state:b})}else d.push({segments:y.segments,sortKey:0,state:b})}}l&amp;&amp;d.sort((function(t,e){return t.sortKey-e.sortKey}));for(var k=0,M=d;k&lt;M.length;k+=1){var A=M[k],S=A.state;S.program.draw(c,u.TRIANGLES,f,h,p,Et.disabled,S.uniformValues,n.id,S.layoutVertexBuffer,S.indexBuffer,A.segments,n.paint,e.transform.zoom,S.programConfiguration)}}}},heatmap:function(e,r,n,i){if(0!==n.paint.get(&quot;heatmap-opacity&quot;))if(&quot;offscreen&quot;===e.renderPass){var a=e.context,o=a.gl,s=At.disabled,l=new St([o.ONE,o.ONE],t.Color.transparent,[!0,!0,!0,!0]);!function(t,e,r){var n=t.gl;t.activeTexture.set(n.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);var i=r.heatmapFbo;if(i)n.bindTexture(n.TEXTURE_2D,i.colorAttachment.get()),t.bindFramebuffer.set(i.framebuffer);else{var a=n.createTexture();n.bindTexture(n.TEXTURE_2D,a),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),i=r.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4,!1),function(t,e,r,n){var i=t.gl;i.texImage2D(i.TEXTURE_2D,0,i.RGBA,e.width/4,e.height/4,0,i.RGBA,t.extRenderToTextureHalfFloat?t.extTextureHalfFloat.HALF_FLOAT_OES:i.UNSIGNED_BYTE,null),n.colorAttachment.set(r)}(t,e,a,i)}}(a,e,n),a.clear({color:t.Color.transparent});for(var c=0;c&lt;i.length;c++){var u=i[c];if(!r.hasRenderableParent(u)){var f=r.getTile(u),h=f.getBucket(n);if(h){var p=h.programConfigurations.get(n.id);e.useProgram(&quot;heatmap&quot;,p).draw(a,o.TRIANGLES,Mt.disabled,s,l,Et.disabled,zr(u.posMatrix,f,e.transform.zoom,n.paint.get(&quot;heatmap-intensity&quot;)),n.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,n.paint,e.transform.zoom,p)}}}a.viewport.set([0,0,e.width,e.height])}else&quot;translucent&quot;===e.renderPass&amp;&amp;(e.context.setColorMode(e.colorModeForRenderPass()),function(e,r){var n=e.context,i=n.gl,a=r.heatmapFbo;if(a){n.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),n.activeTexture.set(i.TEXTURE1);var o=r.colorRampTexture;o||(o=r.colorRampTexture=new t.Texture(n,r.colorRamp,i.RGBA)),o.bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram(&quot;heatmapTexture&quot;).draw(n,i.TRIANGLES,Mt.disabled,At.disabled,e.colorModeForRenderPass(),Et.disabled,function(e,r,n,i){var a=t.create();t.ortho(a,0,e.width,e.height,0,0,1);var o=e.context.gl;return{u_matrix:a,u_world:[o.drawingBufferWidth,o.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:r.paint.get(&quot;heatmap-opacity&quot;)}}(e,r),r.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,r.paint,e.transform.zoom)}}(e,n))},line:function(e,r,n,i){if(&quot;translucent&quot;===e.renderPass){var a=n.paint.get(&quot;line-opacity&quot;),o=n.paint.get(&quot;line-width&quot;);if(0!==a.constantOr(1)&amp;&amp;0!==o.constantOr(1)){var s=e.depthModeForSublayer(0,Mt.ReadOnly),l=e.colorModeForRenderPass(),c=n.paint.get(&quot;line-dasharray&quot;),u=n.paint.get(&quot;line-pattern&quot;),f=u.constantOr(1),h=n.paint.get(&quot;line-gradient&quot;),p=n.getCrossfadeParameters(),d=f?&quot;linePattern&quot;:c?&quot;lineSDF&quot;:h?&quot;lineGradient&quot;:&quot;line&quot;,g=e.context,m=g.gl,v=!0;if(h){g.activeTexture.set(m.TEXTURE0);var y=n.gradientTexture;if(!n.gradient)return;y||(y=n.gradientTexture=new t.Texture(g,n.gradient,m.RGBA)),y.bind(m.LINEAR,m.CLAMP_TO_EDGE)}for(var x=0,b=i;x&lt;b.length;x+=1){var _=b[x],w=r.getTile(_);if(!f||w.patternsLoaded()){var T=w.getBucket(n);if(T){var k=T.programConfigurations.get(n.id),M=e.context.program.get(),A=e.useProgram(d,k),S=v||A.program!==M,E=u.constantOr(null);if(E&amp;&amp;w.imageAtlas){var C=w.imageAtlas,L=C.patternPositions[E.to.toString()],I=C.patternPositions[E.from.toString()];L&amp;&amp;I&amp;&amp;k.setConstantPatternPositions(L,I)}var P=f?Rr(e,w,n,p):c?Fr(e,w,n,c,p):h?Dr(e,w,n):Or(e,w,n);f?(g.activeTexture.set(m.TEXTURE0),w.imageAtlasTexture.bind(m.LINEAR,m.CLAMP_TO_EDGE),k.updatePaintBuffers(p)):c&amp;&amp;(S||e.lineAtlas.dirty)&amp;&amp;(g.activeTexture.set(m.TEXTURE0),e.lineAtlas.bind(g)),A.draw(g,m.TRIANGLES,s,e.stencilModeForClipping(_),l,Et.disabled,P,n.id,T.layoutVertexBuffer,T.indexBuffer,T.segments,n.paint,e.transform.zoom,k),v=!1}}}}}},fill:function(e,r,n,i){var a=n.paint.get(&quot;fill-color&quot;),o=n.paint.get(&quot;fill-opacity&quot;);if(0!==o.constantOr(1)){var s=e.colorModeForRenderPass(),l=n.paint.get(&quot;fill-pattern&quot;),c=e.opaquePassEnabledForLayer()&amp;&amp;!l.constantOr(1)&amp;&amp;1===a.constantOr(t.Color.transparent).a&amp;&amp;1===o.constantOr(0)?&quot;opaque&quot;:&quot;translucent&quot;;if(e.renderPass===c){var u=e.depthModeForSublayer(1,&quot;opaque&quot;===e.renderPass?Mt.ReadWrite:Mt.ReadOnly);rn(e,r,n,i,u,s,!1)}if(&quot;translucent&quot;===e.renderPass&amp;&amp;n.paint.get(&quot;fill-antialias&quot;)){var f=e.depthModeForSublayer(n.getPaintProperty(&quot;fill-outline-color&quot;)?2:0,Mt.ReadOnly);rn(e,r,n,i,f,s,!0)}}},&quot;fill-extrusion&quot;:function(t,e,r,n){var i=r.paint.get(&quot;fill-extrusion-opacity&quot;);if(0!==i&amp;&amp;&quot;translucent&quot;===t.renderPass){var a=new Mt(t.context.gl.LEQUAL,Mt.ReadWrite,t.depthRangeFor3D);if(1!==i||r.paint.get(&quot;fill-extrusion-pattern&quot;).constantOr(1))nn(t,e,r,n,a,At.disabled,St.disabled),nn(t,e,r,n,a,t.stencilModeFor3D(),t.colorModeForRenderPass());else{var o=t.colorModeForRenderPass();nn(t,e,r,n,a,At.disabled,o)}}},hillshade:function(t,e,r,n){if(&quot;offscreen&quot;===t.renderPass||&quot;translucent&quot;===t.renderPass){for(var i=t.context,a=e.getSource().maxzoom,o=t.depthModeForSublayer(0,Mt.ReadOnly),s=t.colorModeForRenderPass(),l=&quot;translucent&quot;===t.renderPass?t.stencilConfigForOverlap(n):[{},n],c=l[0],u=0,f=l[1];u&lt;f.length;u+=1){var h=f[u],p=e.getTile(h);p.needsHillshadePrepare&amp;&amp;&quot;offscreen&quot;===t.renderPass?on(t,p,r,a,o,At.disabled,s):&quot;translucent&quot;===t.renderPass&amp;&amp;an(t,p,r,o,c[h.overscaledZ],s)}i.viewport.set([0,0,t.width,t.height])}},raster:function(t,e,r,n){if(&quot;translucent&quot;===t.renderPass&amp;&amp;0!==r.paint.get(&quot;raster-opacity&quot;)&amp;&amp;n.length)for(var i=t.context,a=i.gl,o=e.getSource(),s=t.useProgram(&quot;raster&quot;),l=t.colorModeForRenderPass(),c=o instanceof P?[{},n]:t.stencilConfigForOverlap(n),u=c[0],f=c[1],h=f[f.length-1].overscaledZ,p=!t.options.moving,d=0,g=f;d&lt;g.length;d+=1){var m=g[d],v=t.depthModeForSublayer(m.overscaledZ-h,1===r.paint.get(&quot;raster-opacity&quot;)?Mt.ReadWrite:Mt.ReadOnly,a.LESS),y=e.getTile(m),x=t.transform.calculatePosMatrix(m.toUnwrapped(),p);y.registerFadeDuration(r.paint.get(&quot;raster-fade-duration&quot;));var b=e.findLoadedParent(m,0),_=sn(y,b,e,r,t.transform),w=void 0,T=void 0,k=&quot;nearest&quot;===r.paint.get(&quot;raster-resampling&quot;)?a.NEAREST:a.LINEAR;i.activeTexture.set(a.TEXTURE0),y.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),i.activeTexture.set(a.TEXTURE1),b?(b.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),w=Math.pow(2,b.tileID.overscaledZ-y.tileID.overscaledZ),T=[y.tileID.canonical.x*w%1,y.tileID.canonical.y*w%1]):y.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST);var M=jr(x,T||[0,0],w||1,_,r);o instanceof P?s.draw(i,a.TRIANGLES,v,At.disabled,l,Et.disabled,M,r.id,o.boundsBuffer,t.quadTriangleIndexBuffer,o.boundsSegments):s.draw(i,a.TRIANGLES,v,u[m.overscaledZ],l,Et.disabled,M,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}},background:function(t,e,r){var n=r.paint.get(&quot;background-color&quot;),i=r.paint.get(&quot;background-opacity&quot;);if(0!==i){var a=t.context,o=a.gl,s=t.transform,l=s.tileSize,c=r.paint.get(&quot;background-pattern&quot;);if(!t.isPatternMissing(c)){var u=!c&amp;&amp;1===n.a&amp;&amp;1===i&amp;&amp;t.opaquePassEnabledForLayer()?&quot;opaque&quot;:&quot;translucent&quot;;if(t.renderPass===u){var f=At.disabled,h=t.depthModeForSublayer(0,&quot;opaque&quot;===u?Mt.ReadWrite:Mt.ReadOnly),p=t.colorModeForRenderPass(),d=t.useProgram(c?&quot;backgroundPattern&quot;:&quot;background&quot;),g=s.coveringTiles({tileSize:l});c&amp;&amp;(a.activeTexture.set(o.TEXTURE0),t.imageManager.bind(t.context));for(var m=r.getCrossfadeParameters(),v=0,y=g;v&lt;y.length;v+=1){var x=y[v],b=t.transform.calculatePosMatrix(x.toUnwrapped()),_=c?Wr(b,i,t,c,{tileID:x,tileSize:l},m):Yr(b,i,n);d.draw(a,o.TRIANGLES,h,f,p,Et.disabled,_,r.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments)}}}}},debug:function(t,e,r){for(var n=0;n&lt;r.length;n++)mn(t,e,r[n])},custom:function(t,e,r){var n=t.context,i=r.implementation;if(&quot;offscreen&quot;===t.renderPass){var a=i.prerender;a&amp;&amp;(t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),a.call(i,n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState())}else if(&quot;translucent&quot;===t.renderPass){t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),n.setStencilMode(At.disabled);var o=&quot;3d&quot;===i.renderingMode?new Mt(t.context.gl.LEQUAL,Mt.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,Mt.ReadOnly);n.setDepthMode(o),i.render(n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState(),n.bindFramebuffer.set(null)}}},yn=function(t,e){this.context=new Ct(t),this.transform=e,this._tileTextures={},this.setup(),this.numSublayers=Lt.maxUnderzooming+Lt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Be,this.gpuTimers={}};yn.prototype.resize=function(e,r){if(this.width=e*t.browser.devicePixelRatio,this.height=r*t.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var n=0,i=this.style._order;n&lt;i.length;n+=1)this.style._layers[i[n]].resize()},yn.prototype.setup=function(){var e=this.context,r=new t.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(t.EXTENT,0),r.emplaceBack(0,t.EXTENT),r.emplaceBack(t.EXTENT,t.EXTENT),this.tileExtentBuffer=e.createVertexBuffer(r,He.members),this.tileExtentSegments=t.SegmentVector.simpleSegment(0,0,4,2);var n=new t.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(t.EXTENT,0),n.emplaceBack(0,t.EXTENT),n.emplaceBack(t.EXTENT,t.EXTENT),this.debugBuffer=e.createVertexBuffer(n,He.members),this.debugSegments=t.SegmentVector.simpleSegment(0,0,4,5);var i=new t.StructArrayLayout4i8;i.emplaceBack(0,0,0,0),i.emplaceBack(t.EXTENT,0,t.EXTENT,0),i.emplaceBack(0,t.EXTENT,0,t.EXTENT),i.emplaceBack(t.EXTENT,t.EXTENT,t.EXTENT,t.EXTENT),this.rasterBoundsBuffer=e.createVertexBuffer(i,I.members),this.rasterBoundsSegments=t.SegmentVector.simpleSegment(0,0,4,2);var a=new t.StructArrayLayout2i4;a.emplaceBack(0,0),a.emplaceBack(1,0),a.emplaceBack(0,1),a.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(a,He.members),this.viewportSegments=t.SegmentVector.simpleSegment(0,0,4,2);var o=new t.StructArrayLayout1ui2;o.emplaceBack(0),o.emplaceBack(1),o.emplaceBack(3),o.emplaceBack(2),o.emplaceBack(0),this.tileBorderIndexBuffer=e.createIndexBuffer(o);var s=new t.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(s),this.emptyTexture=new t.Texture(e,{width:1,height:1,data:new Uint8Array([0,0,0,0])},e.gl.RGBA);var l=this.context.gl;this.stencilClearMode=new At({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)},yn.prototype.clearStencil=function(){var e=this.context,r=e.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var n=t.create();t.ortho(n,0,this.width,this.height,0,0,1),t.scale(n,n,[r.drawingBufferWidth,r.drawingBufferHeight,0]),this.useProgram(&quot;clippingMask&quot;).draw(e,r.TRIANGLES,Mt.disabled,this.stencilClearMode,St.disabled,Et.disabled,Pr(n),&quot;$clipping&quot;,this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},yn.prototype._renderTileClippingMasks=function(t,e){if(this.currentStencilSource!==t.source&amp;&amp;t.isTileClipped()&amp;&amp;e&amp;&amp;e.length){this.currentStencilSource=t.source;var r=this.context,n=r.gl;this.nextStencilID+e.length&gt;256&amp;&amp;this.clearStencil(),r.setColorMode(St.disabled),r.setDepthMode(Mt.disabled);var i=this.useProgram(&quot;clippingMask&quot;);this._tileClippingMaskIDs={};for(var a=0,o=e;a&lt;o.length;a+=1){var s=o[a],l=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;i.draw(r,n.TRIANGLES,Mt.disabled,new At({func:n.ALWAYS,mask:0},l,255,n.KEEP,n.KEEP,n.REPLACE),St.disabled,Et.disabled,Pr(s.posMatrix),&quot;$clipping&quot;,this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},yn.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1&gt;256&amp;&amp;this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new At({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},yn.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new At({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},yn.prototype.stencilConfigForOverlap=function(t){var e,r=this.context.gl,n=t.sort((function(t,e){return e.overscaledZ-t.overscaledZ})),i=n[n.length-1].overscaledZ,a=n[0].overscaledZ-i+1;if(a&gt;1){this.currentStencilSource=void 0,this.nextStencilID+a&gt;256&amp;&amp;this.clearStencil();for(var o={},s=0;s&lt;a;s++)o[s+i]=new At({func:r.GEQUAL,mask:255},s+this.nextStencilID,255,r.KEEP,r.KEEP,r.REPLACE);return this.nextStencilID+=a,[o,n]}return[(e={},e[i]=At.disabled,e),n]},yn.prototype.colorModeForRenderPass=function(){var e=this.context.gl;return this._showOverdrawInspector?new St([e.CONSTANT_COLOR,e.ONE],new t.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):&quot;opaque&quot;===this.renderPass?St.unblended:St.alphaBlended},yn.prototype.depthModeForSublayer=function(t,e,r){if(!this.opaquePassEnabledForLayer())return Mt.disabled;var n=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new Mt(r||this.context.gl.LEQUAL,e,[n,n])},yn.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer&lt;this.opaquePassCutoff},yn.prototype.render=function(e,r){var n=this;this.style=e,this.options=r,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(t.browser.now()),this.imageManager.beginFrame();var i=this.style._order,a=this.style.sourceCaches;for(var o in a){var s=a[o];s.used&amp;&amp;s.prepare(this.context)}var l,c,u={},f={},h={};for(var p in a){var d=a[p];u[p]=d.getVisibleCoordinates(),f[p]=u[p].slice().reverse(),h[p]=d.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(var g=0;g&lt;i.length;g++)if(this.style._layers[i[g]].is3D()){this.opaquePassCutoff=g;break}this.renderPass=&quot;offscreen&quot;;for(var m=0,v=i;m&lt;v.length;m+=1){var y=this.style._layers[v[m]];if(y.hasOffscreenPass()&amp;&amp;!y.isHidden(this.transform.zoom)){var x=f[y.source];(&quot;custom&quot;===y.type||x.length)&amp;&amp;this.renderLayer(this,a[y.source],y,x)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:r.showOverdrawInspector?t.Color.black:t.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=r.showOverdrawInspector,this.depthRangeFor3D=[0,1-(e._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass=&quot;opaque&quot;,this.currentLayer=i.length-1;this.currentLayer&gt;=0;this.currentLayer--){var b=this.style._layers[i[this.currentLayer]],_=a[b.source],w=u[b.source];this._renderTileClippingMasks(b,w),this.renderLayer(this,_,b,w)}for(this.renderPass=&quot;translucent&quot;,this.currentLayer=0;this.currentLayer&lt;i.length;this.currentLayer++){var T=this.style._layers[i[this.currentLayer]],k=a[T.source],M=(&quot;symbol&quot;===T.type?h:f)[T.source];this._renderTileClippingMasks(T,u[T.source]),this.renderLayer(this,k,T,M)}this.options.showTileBoundaries&amp;&amp;(t.values(this.style._layers).forEach((function(t){t.source&amp;&amp;!t.isHidden(n.transform.zoom)&amp;&amp;(t.source!==(c&amp;&amp;c.id)&amp;&amp;(c=n.style.sourceCaches[t.source]),(!l||l.getSource().maxzoom&lt;c.getSource().maxzoom)&amp;&amp;(l=c))})),l&amp;&amp;vn.debug(this,l,l.getVisibleCoordinates())),this.options.showPadding&amp;&amp;function(t){var e=t.transform.padding;pn(t,t.transform.height-(e.top||0),3,ln),pn(t,e.bottom||0,3,cn),dn(t,e.left||0,3,un),dn(t,t.transform.width-(e.right||0),3,fn);var r=t.transform.centerPoint;!function(t,e,r,n){gn(t,e-1,r-10,2,20,n),gn(t,e-10,r-1,20,2,n)}(t,r.x,t.transform.height-r.y,hn)}(this),this.context.setDefault()},yn.prototype.renderLayer=function(t,e,r,n){r.isHidden(this.transform.zoom)||(&quot;background&quot;===r.type||&quot;custom&quot;===r.type||n.length)&amp;&amp;(this.id=r.id,this.gpuTimingStart(r),vn[r.type](t,e,r,n,this.style.placement.variableOffsets),this.gpuTimingEnd())},yn.prototype.gpuTimingStart=function(t){if(this.options.gpuTiming){var e=this.context.extTimerQuery,r=this.gpuTimers[t.id];r||(r=this.gpuTimers[t.id]={calls:0,cpuTime:0,query:e.createQueryEXT()}),r.calls++,e.beginQueryEXT(e.TIME_ELAPSED_EXT,r.query)}},yn.prototype.gpuTimingEnd=function(){if(this.options.gpuTiming){var t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}},yn.prototype.collectGpuTimers=function(){var t=this.gpuTimers;return this.gpuTimers={},t},yn.prototype.queryGpuTimers=function(t){var e={};for(var r in t){var n=t[r],i=this.context.extTimerQuery,a=i.getQueryObjectEXT(n.query,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(n.query),e[r]=a}return e},yn.prototype.translatePosMatrix=function(e,r,n,i,a){if(!n[0]&amp;&amp;!n[1])return e;var o=a?&quot;map&quot;===i?this.transform.angle:0:&quot;viewport&quot;===i?-this.transform.angle:0;if(o){var s=Math.sin(o),l=Math.cos(o);n=[n[0]*l-n[1]*s,n[0]*s+n[1]*l]}var c=[a?n[0]:he(r,n[0],this.transform.zoom),a?n[1]:he(r,n[1],this.transform.zoom),0],u=new Float32Array(16);return t.translate(u,e,c),u},yn.prototype.saveTileTexture=function(t){var e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]},yn.prototype.getTileTexture=function(t){var e=this._tileTextures[t];return e&amp;&amp;e.length&gt;0?e.pop():null},yn.prototype.isPatternMissing=function(t){if(!t)return!1;if(!t.from||!t.to)return!0;var e=this.imageManager.getPattern(t.from.toString()),r=this.imageManager.getPattern(t.to.toString());return!e||!r},yn.prototype.useProgram=function(t,e){this.cache=this.cache||{};var r=&quot;&quot;+t+(e?e.cacheKey:&quot;&quot;)+(this._showOverdrawInspector?&quot;/overdraw&quot;:&quot;&quot;);return this.cache[r]||(this.cache[r]=new br(this.context,yr[t],e,Xr[t],this._showOverdrawInspector)),this.cache[r]},yn.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},yn.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)},yn.prototype.initDebugOverlayCanvas=function(){null==this.debugOverlayCanvas&amp;&amp;(this.debugOverlayCanvas=t.window.document.createElement(&quot;canvas&quot;),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},yn.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&amp;&amp;this.debugOverlayTexture.destroy()};var xn=function(t,e){this.points=t,this.planes=e};xn.fromInvProjectionMatrix=function(e,r,n){var i=Math.pow(2,n),a=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((function(r){return t.transformMat4([],r,e)})).map((function(e){return t.scale$1([],e,1/e[3]/r*i)})),o=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(e){var r=t.sub([],a[e[0]],a[e[1]]),n=t.sub([],a[e[2]],a[e[1]]),i=t.normalize([],t.cross([],r,n)),o=-t.dot(i,a[e[1]]);return i.concat(o)}));return new xn(a,o)};var bn=function(e,r){this.min=e,this.max=r,this.center=t.scale$2([],t.add([],this.min,this.max),.5)};bn.prototype.quadrant=function(e){for(var r=[e%2==0,e&lt;2],n=t.clone$2(this.min),i=t.clone$2(this.max),a=0;a&lt;r.length;a++)n[a]=r[a]?this.min[a]:this.center[a],i[a]=r[a]?this.center[a]:this.max[a];return i[2]=this.max[2],new bn(n,i)},bn.prototype.distanceX=function(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]},bn.prototype.distanceY=function(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]},bn.prototype.intersects=function(e){for(var r=[[this.min[0],this.min[1],0,1],[this.max[0],this.min[1],0,1],[this.max[0],this.max[1],0,1],[this.min[0],this.max[1],0,1]],n=!0,i=0;i&lt;e.planes.length;i++){for(var a=e.planes[i],o=0,s=0;s&lt;r.length;s++)o+=t.dot$1(a,r[s])&gt;=0;if(0===o)return 0;o!==r.length&amp;&amp;(n=!1)}if(n)return 2;for(var l=0;l&lt;3;l++){for(var c=Number.MAX_VALUE,u=-Number.MAX_VALUE,f=0;f&lt;e.points.length;f++){var h=e.points[f][l]-this.min[l];c=Math.min(c,h),u=Math.max(u,h)}if(u&lt;0||c&gt;this.max[l]-this.min[l])return 0}return 1};var _n=function(t,e,r,n){if(void 0===t&amp;&amp;(t=0),void 0===e&amp;&amp;(e=0),void 0===r&amp;&amp;(r=0),void 0===n&amp;&amp;(n=0),isNaN(t)||t&lt;0||isNaN(e)||e&lt;0||isNaN(r)||r&lt;0||isNaN(n)||n&lt;0)throw new Error(&quot;Invalid value for edge-insets, top, bottom, left and right must all be numbers&quot;);this.top=t,this.bottom=e,this.left=r,this.right=n};_n.prototype.interpolate=function(e,r,n){return null!=r.top&amp;&amp;null!=e.top&amp;&amp;(this.top=t.number(e.top,r.top,n)),null!=r.bottom&amp;&amp;null!=e.bottom&amp;&amp;(this.bottom=t.number(e.bottom,r.bottom,n)),null!=r.left&amp;&amp;null!=e.left&amp;&amp;(this.left=t.number(e.left,r.left,n)),null!=r.right&amp;&amp;null!=e.right&amp;&amp;(this.right=t.number(e.right,r.right,n)),this},_n.prototype.getCenter=function(e,r){var n=t.clamp((this.left+e-this.right)/2,0,e),i=t.clamp((this.top+r-this.bottom)/2,0,r);return new t.Point(n,i)},_n.prototype.equals=function(t){return this.top===t.top&amp;&amp;this.bottom===t.bottom&amp;&amp;this.left===t.left&amp;&amp;this.right===t.right},_n.prototype.clone=function(){return new _n(this.top,this.bottom,this.left,this.right)},_n.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var wn=function(e,r,n,i,a){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===a||a,this._minZoom=e||0,this._maxZoom=r||22,this._minPitch=null==n?0:n,this._maxPitch=null==i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new _n,this._posMatrixCache={},this._alignedPosMatrixCache={}},Tn={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};wn.prototype.clone=function(){var t=new wn(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._calcMatrices(),t},Tn.minZoom.get=function(){return this._minZoom},Tn.minZoom.set=function(t){this._minZoom!==t&amp;&amp;(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Tn.maxZoom.get=function(){return this._maxZoom},Tn.maxZoom.set=function(t){this._maxZoom!==t&amp;&amp;(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Tn.minPitch.get=function(){return this._minPitch},Tn.minPitch.set=function(t){this._minPitch!==t&amp;&amp;(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},Tn.maxPitch.get=function(){return this._maxPitch},Tn.maxPitch.set=function(t){this._maxPitch!==t&amp;&amp;(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},Tn.renderWorldCopies.get=function(){return this._renderWorldCopies},Tn.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&amp;&amp;(t=!1),this._renderWorldCopies=t},Tn.worldSize.get=function(){return this.tileSize*this.scale},Tn.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Tn.size.get=function(){return new t.Point(this.width,this.height)},Tn.bearing.get=function(){return-this.angle/Math.PI*180},Tn.bearing.set=function(e){var r=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==r&amp;&amp;(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Tn.pitch.get=function(){return this._pitch/Math.PI*180},Tn.pitch.set=function(e){var r=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==r&amp;&amp;(this._unmodified=!1,this._pitch=r,this._calcMatrices())},Tn.fov.get=function(){return this._fov/Math.PI*180},Tn.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&amp;&amp;(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Tn.zoom.get=function(){return this._zoom},Tn.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&amp;&amp;(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Tn.center.get=function(){return this._center},Tn.center.set=function(t){t.lat===this._center.lat&amp;&amp;t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Tn.padding.get=function(){return this._edgeInsets.toJSON()},Tn.padding.set=function(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())},Tn.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},wn.prototype.isPaddingEqual=function(t){return this._edgeInsets.equals(t)},wn.prototype.interpolatePadding=function(t,e,r){this._unmodified=!1,this._edgeInsets.interpolate(t,e,r),this._constrain(),this._calcMatrices()},wn.prototype.coveringZoomLevel=function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)},wn.prototype.getVisibleUnwrappedCoordinates=function(e){var r=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var n=this.pointCoordinate(new t.Point(0,0)),i=this.pointCoordinate(new t.Point(this.width,0)),a=this.pointCoordinate(new t.Point(this.width,this.height)),o=this.pointCoordinate(new t.Point(0,this.height)),s=Math.floor(Math.min(n.x,i.x,a.x,o.x)),l=Math.floor(Math.max(n.x,i.x,a.x,o.x)),c=s-1;c&lt;=l+1;c++)0!==c&amp;&amp;r.push(new t.UnwrappedTileID(c,e));return r},wn.prototype.coveringTiles=function(e){var r=this.coveringZoomLevel(e),n=r;if(void 0!==e.minzoom&amp;&amp;r&lt;e.minzoom)return[];void 0!==e.maxzoom&amp;&amp;r&gt;e.maxzoom&amp;&amp;(r=e.maxzoom);var i=t.MercatorCoordinate.fromLngLat(this.center),a=Math.pow(2,r),o=[a*i.x,a*i.y,0],s=xn.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,r),l=e.minzoom||0;this.pitch&lt;=60&amp;&amp;this._edgeInsets.top&lt;.1&amp;&amp;(l=r);var c=function(t){return{aabb:new bn([t*a,0,0],[(t+1)*a,a,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}},u=[],f=[],h=r,p=e.reparseOverscaled?n:r;if(this._renderWorldCopies)for(var d=1;d&lt;=3;d++)u.push(c(-d)),u.push(c(d));for(u.push(c(0));u.length&gt;0;){var g=u.pop(),m=g.x,v=g.y,y=g.fullyVisible;if(!y){var x=g.aabb.intersects(s);if(0===x)continue;y=2===x}var b=g.aabb.distanceX(o),_=g.aabb.distanceY(o),w=Math.max(Math.abs(b),Math.abs(_));if(g.zoom===h||w&gt;3+(1&lt;&lt;h-g.zoom)-2&amp;&amp;g.zoom&gt;=l)f.push({tileID:new t.OverscaledTileID(g.zoom===h?p:g.zoom,g.wrap,g.zoom,m,v),distanceSq:t.sqrLen([o[0]-.5-m,o[1]-.5-v])});else for(var T=0;T&lt;4;T++){var k=(m&lt;&lt;1)+T%2,M=(v&lt;&lt;1)+(T&gt;&gt;1);u.push({aabb:g.aabb.quadrant(T),zoom:g.zoom+1,x:k,y:M,wrap:g.wrap,fullyVisible:y})}}return f.sort((function(t,e){return t.distanceSq-e.distanceSq})).map((function(t){return t.tileID}))},wn.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Tn.unmodified.get=function(){return this._unmodified},wn.prototype.zoomScale=function(t){return Math.pow(2,t)},wn.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},wn.prototype.project=function(e){var r=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(r)*this.worldSize)},wn.prototype.unproject=function(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()},Tn.point.get=function(){return this.project(this.center)},wn.prototype.setLocationAtPoint=function(e,r){var n=this.pointCoordinate(r),i=this.pointCoordinate(this.centerPoint),a=this.locationCoordinate(e),o=new t.MercatorCoordinate(a.x-(n.x-i.x),a.y-(n.y-i.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&amp;&amp;(this.center=this.center.wrap())},wn.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},wn.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},wn.prototype.locationCoordinate=function(e){return t.MercatorCoordinate.fromLngLat(e)},wn.prototype.coordinateLocation=function(t){return t.toLngLat()},wn.prototype.pointCoordinate=function(e){var r=[e.x,e.y,0,1],n=[e.x,e.y,1,1];t.transformMat4(r,r,this.pixelMatrixInverse),t.transformMat4(n,n,this.pixelMatrixInverse);var i=r[3],a=n[3],o=r[1]/i,s=n[1]/a,l=r[2]/i,c=n[2]/a,u=l===c?0:(0-l)/(c-l);return new t.MercatorCoordinate(t.number(r[0]/i,n[0]/a,u)/this.worldSize,t.number(o,s,u)/this.worldSize)},wn.prototype.coordinatePoint=function(e){var r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix),new t.Point(r[0]/r[3],r[1]/r[3])},wn.prototype.getBounds=function(){return(new t.LngLatBounds).extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},wn.prototype.getMaxBounds=function(){return this.latRange&amp;&amp;2===this.latRange.length&amp;&amp;this.lngRange&amp;&amp;2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},wn.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},wn.prototype.calculatePosMatrix=function(e,r){void 0===r&amp;&amp;(r=!1);var n=e.key,i=r?this._alignedPosMatrixCache:this._posMatrixCache;if(i[n])return i[n];var a=e.canonical,o=this.worldSize/this.zoomScale(a.z),s=a.x+Math.pow(2,a.z)*e.wrap,l=t.identity(new Float64Array(16));return t.translate(l,l,[s*o,a.y*o,0]),t.scale(l,l,[o/t.EXTENT,o/t.EXTENT,1]),t.multiply(l,r?this.alignedProjMatrix:this.projMatrix,l),i[n]=new Float32Array(l),i[n]},wn.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},wn.prototype._constrain=function(){if(this.center&amp;&amp;this.width&amp;&amp;this.height&amp;&amp;!this._constraining){this._constraining=!0;var e,r,n,i,a=-90,o=90,s=-180,l=180,c=this.size,u=this._unmodified;if(this.latRange){var f=this.latRange;a=t.mercatorYfromLat(f[1])*this.worldSize,e=(o=t.mercatorYfromLat(f[0])*this.worldSize)-a&lt;c.y?c.y/(o-a):0}if(this.lngRange){var h=this.lngRange;s=t.mercatorXfromLng(h[0])*this.worldSize,r=(l=t.mercatorXfromLng(h[1])*this.worldSize)-s&lt;c.x?c.x/(l-s):0}var p=this.point,d=Math.max(r||0,e||0);if(d)return this.center=this.unproject(new t.Point(r?(l+s)/2:p.x,e?(o+a)/2:p.y)),this.zoom+=this.scaleZoom(d),this._unmodified=u,void(this._constraining=!1);if(this.latRange){var g=p.y,m=c.y/2;g-m&lt;a&amp;&amp;(i=a+m),g+m&gt;o&amp;&amp;(i=o-m)}if(this.lngRange){var v=p.x,y=c.x/2;v-y&lt;s&amp;&amp;(n=s+y),v+y&gt;l&amp;&amp;(n=l-y)}void 0===n&amp;&amp;void 0===i||(this.center=this.unproject(new t.Point(void 0!==n?n:p.x,void 0!==i?i:p.y))),this._unmodified=u,this._constraining=!1}},wn.prototype._calcMatrices=function(){if(this.height){var e=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var r=Math.PI/2+this._pitch,n=this._fov*(.5+e.y/this.height),i=Math.sin(n)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-r-n,.01,Math.PI-.01)),a=this.point,o=a.x,s=a.y,l=1.01*(Math.cos(Math.PI/2-this._pitch)*i+this.cameraToCenterDistance),c=this.height/50,u=new Float64Array(16);t.perspective(u,this._fov,this.width/this.height,c,l),u[8]=2*-e.x/this.width,u[9]=2*e.y/this.height,t.scale(u,u,[1,-1,1]),t.translate(u,u,[0,0,-this.cameraToCenterDistance]),t.rotateX(u,u,this._pitch),t.rotateZ(u,u,this.angle),t.translate(u,u,[-o,-s,0]),this.mercatorMatrix=t.scale([],u,[this.worldSize,this.worldSize,this.worldSize]),t.scale(u,u,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=u,this.invProjMatrix=t.invert([],this.projMatrix);var f=this.width%2/2,h=this.height%2/2,p=Math.cos(this.angle),d=Math.sin(this.angle),g=o-Math.round(o)+p*f+d*h,m=s-Math.round(s)+p*h+d*f,v=new Float64Array(u);if(t.translate(v,v,[g&gt;.5?g-1:g,m&gt;.5?m-1:m,0]),this.alignedProjMatrix=v,u=t.create(),t.scale(u,u,[this.width/2,-this.height/2,1]),t.translate(u,u,[1,-1,0]),this.labelPlaneMatrix=u,u=t.create(),t.scale(u,u,[1,-1,1]),t.translate(u,u,[-1,-1,0]),t.scale(u,u,[2/this.width,2/this.height,1]),this.glCoordMatrix=u,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(u=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error(&quot;failed to invert matrix&quot;);this.pixelMatrixInverse=u,this._posMatrixCache={},this._alignedPosMatrixCache={}}},wn.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)),r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance},wn.prototype.getCameraPoint=function(){var e=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,e))},wn.prototype.getCameraQueryGeometry=function(e){var r=this.getCameraPoint();if(1===e.length)return[e[0],r];for(var n=r.x,i=r.y,a=r.x,o=r.y,s=0,l=e;s&lt;l.length;s+=1){var c=l[s];n=Math.min(n,c.x),i=Math.min(i,c.y),a=Math.max(a,c.x),o=Math.max(o,c.y)}return[new t.Point(n,i),new t.Point(a,i),new t.Point(a,o),new t.Point(n,o),new t.Point(n,i)]},Object.defineProperties(wn.prototype,Tn);var kn=function(e){var r,n,i,a;this._hashName=e&amp;&amp;encodeURIComponent(e),t.bindAll([&quot;_getCurrentHash&quot;,&quot;_onHashChange&quot;,&quot;_updateHash&quot;],this),this._updateHash=(r=this._updateHashUnthrottled.bind(this),n=!1,i=null,a=function(){i=null,n&amp;&amp;(r(),i=setTimeout(a,300),n=!1)},function(){return n=!0,i||a(),i})};kn.prototype.addTo=function(e){return this._map=e,t.window.addEventListener(&quot;hashchange&quot;,this._onHashChange,!1),this._map.on(&quot;moveend&quot;,this._updateHash),this},kn.prototype.remove=function(){return t.window.removeEventListener(&quot;hashchange&quot;,this._onHashChange,!1),this._map.off(&quot;moveend&quot;,this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},kn.prototype.getHashString=function(e){var r=this._map.getCenter(),n=Math.round(100*this._map.getZoom())/100,i=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),a=Math.pow(10,i),o=Math.round(r.lng*a)/a,s=Math.round(r.lat*a)/a,l=this._map.getBearing(),c=this._map.getPitch(),u=&quot;&quot;;if(u+=e?&quot;/&quot;+o+&quot;/&quot;+s+&quot;/&quot;+n:n+&quot;/&quot;+s+&quot;/&quot;+o,(l||c)&amp;&amp;(u+=&quot;/&quot;+Math.round(10*l)/10),c&amp;&amp;(u+=&quot;/&quot;+Math.round(c)),this._hashName){var f=this._hashName,h=!1,p=t.window.location.hash.slice(1).split(&quot;&amp;&quot;).map((function(t){var e=t.split(&quot;=&quot;)[0];return e===f?(h=!0,e+&quot;=&quot;+u):t})).filter((function(t){return t}));return h||p.push(f+&quot;=&quot;+u),&quot;#&quot;+p.join(&quot;&amp;&quot;)}return&quot;#&quot;+u},kn.prototype._getCurrentHash=function(){var e,r=this,n=t.window.location.hash.replace(&quot;#&quot;,&quot;&quot;);return this._hashName?(n.split(&quot;&amp;&quot;).map((function(t){return t.split(&quot;=&quot;)})).forEach((function(t){t[0]===r._hashName&amp;&amp;(e=t)})),(e&amp;&amp;e[1]||&quot;&quot;).split(&quot;/&quot;)):n.split(&quot;/&quot;)},kn.prototype._onHashChange=function(){var t=this._getCurrentHash();if(t.length&gt;=3&amp;&amp;!t.some((function(t){return isNaN(t)}))){var e=this._map.dragRotate.isEnabled()&amp;&amp;this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},kn.prototype._updateHashUnthrottled=function(){var e=this.getHashString();try{t.window.history.replaceState(t.window.history.state,&quot;&quot;,e)}catch(t){}};var Mn={linearity:.3,easing:t.bezier(0,0,.3,1)},An=t.extend({deceleration:2500,maxSpeed:1400},Mn),Sn=t.extend({deceleration:20,maxSpeed:1400},Mn),En=t.extend({deceleration:1e3,maxSpeed:360},Mn),Cn=t.extend({deceleration:1e3,maxSpeed:90},Mn),Ln=function(t){this._map=t,this.clear()};function In(t,e){(!t.duration||t.duration&lt;e.duration)&amp;&amp;(t.duration=e.duration,t.easing=e.easing)}function Pn(e,r,n){var i=n.maxSpeed,a=n.linearity,o=n.deceleration,s=t.clamp(e*a/(r/1e3),-i,i),l=Math.abs(s)/(o*a);return{easing:n.easing,duration:1e3*l,amount:s*(l/2)}}Ln.prototype.clear=function(){this._inertiaBuffer=[]},Ln.prototype.record=function(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:t.browser.now(),settings:e})},Ln.prototype._drainInertiaBuffer=function(){for(var e=this._inertiaBuffer,r=t.browser.now();e.length&gt;0&amp;&amp;r-e[0].time&gt;160;)e.shift()},Ln.prototype._onMoveEnd=function(e){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length&lt;2)){for(var r={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0},n=0,i=this._inertiaBuffer;n&lt;i.length;n+=1){var a=i[n].settings;r.zoom+=a.zoomDelta||0,r.bearing+=a.bearingDelta||0,r.pitch+=a.pitchDelta||0,a.panDelta&amp;&amp;r.pan._add(a.panDelta),a.around&amp;&amp;(r.around=a.around),a.pinchAround&amp;&amp;(r.pinchAround=a.pinchAround)}var o=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,s={};if(r.pan.mag()){var l=Pn(r.pan.mag(),o,t.extend({},An,e||{}));s.offset=r.pan.mult(l.amount/r.pan.mag()),s.center=this._map.transform.center,In(s,l)}if(r.zoom){var c=Pn(r.zoom,o,Sn);s.zoom=this._map.transform.zoom+c.amount,In(s,c)}if(r.bearing){var u=Pn(r.bearing,o,En);s.bearing=this._map.transform.bearing+t.clamp(u.amount,-179,179),In(s,u)}if(r.pitch){var f=Pn(r.pitch,o,Cn);s.pitch=this._map.transform.pitch+f.amount,In(s,f)}if(s.zoom||s.bearing){var h=void 0===r.pinchAround?r.around:r.pinchAround;s.around=h?this._map.unproject(h):this._map.getCenter()}return this.clear(),t.extend(s,{noMoveStart:!0})}};var zn=function(e){function n(n,i,a,o){void 0===o&amp;&amp;(o={});var s=r.mousePos(i.getCanvasContainer(),a),l=i.unproject(s);e.call(this,n,t.extend({point:s,lngLat:l,originalEvent:a},o)),this._defaultPrevented=!1,this.target=i}e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),On=function(e){function n(n,i,a){var o=&quot;touchend&quot;===n?a.changedTouches:a.touches,s=r.touchPos(i.getCanvasContainer(),o),l=s.map((function(t){return i.unproject(t)})),c=s.reduce((function(t,e,r,n){return t.add(e.div(n.length))}),new t.Point(0,0)),u=i.unproject(c);e.call(this,n,{points:s,point:c,lngLats:l,lngLat:u,originalEvent:a}),this._defaultPrevented=!1}e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),Dn=function(t){function e(e,r,n){t.call(this,e,{originalEvent:n}),this._defaultPrevented=!1}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={defaultPrevented:{configurable:!0}};return e.prototype.preventDefault=function(){this._defaultPrevented=!0},r.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(e.prototype,r),e}(t.Event),Rn=function(t,e){this._map=t,this._clickTolerance=e.clickTolerance};Rn.prototype.reset=function(){delete this._mousedownPos},Rn.prototype.wheel=function(t){return this._firePreventable(new Dn(t.type,this._map,t))},Rn.prototype.mousedown=function(t,e){return this._mousedownPos=e,this._firePreventable(new zn(t.type,this._map,t))},Rn.prototype.mouseup=function(t){this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.click=function(t,e){this._mousedownPos&amp;&amp;this._mousedownPos.dist(e)&gt;=this._clickTolerance||this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.dblclick=function(t){return this._firePreventable(new zn(t.type,this._map,t))},Rn.prototype.mouseover=function(t){this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.mouseout=function(t){this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.touchstart=function(t){return this._firePreventable(new On(t.type,this._map,t))},Rn.prototype.touchmove=function(t){this._map.fire(new On(t.type,this._map,t))},Rn.prototype.touchend=function(t){this._map.fire(new On(t.type,this._map,t))},Rn.prototype.touchcancel=function(t){this._map.fire(new On(t.type,this._map,t))},Rn.prototype._firePreventable=function(t){if(this._map.fire(t),t.defaultPrevented)return{}},Rn.prototype.isEnabled=function(){return!0},Rn.prototype.isActive=function(){return!1},Rn.prototype.enable=function(){},Rn.prototype.disable=function(){};var Fn=function(t){this._map=t};Fn.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Fn.prototype.mousemove=function(t){this._map.fire(new zn(t.type,this._map,t))},Fn.prototype.mousedown=function(){this._delayContextMenu=!0},Fn.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&amp;&amp;(this._map.fire(new zn(&quot;contextmenu&quot;,this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Fn.prototype.contextmenu=function(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new zn(t.type,this._map,t)),this._map.listens(&quot;contextmenu&quot;)&amp;&amp;t.preventDefault()},Fn.prototype.isEnabled=function(){return!0},Fn.prototype.isActive=function(){return!1},Fn.prototype.enable=function(){},Fn.prototype.disable=function(){};var Bn=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1};function Nn(t,e){for(var r={},n=0;n&lt;t.length;n++)r[t[n].identifier]=e[n];return r}Bn.prototype.isEnabled=function(){return!!this._enabled},Bn.prototype.isActive=function(){return!!this._active},Bn.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Bn.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},Bn.prototype.mousedown=function(t,e){this.isEnabled()&amp;&amp;t.shiftKey&amp;&amp;0===t.button&amp;&amp;(r.disableDrag(),this._startPos=this._lastPos=e,this._active=!0)},Bn.prototype.mousemoveWindow=function(t,e){if(this._active){var n=e;if(!(this._lastPos.equals(n)||!this._box&amp;&amp;n.dist(this._startPos)&lt;this._clickTolerance)){var i=this._startPos;this._lastPos=n,this._box||(this._box=r.create(&quot;div&quot;,&quot;mapboxgl-boxzoom&quot;,this._container),this._container.classList.add(&quot;mapboxgl-crosshair&quot;),this._fireEvent(&quot;boxzoomstart&quot;,t));var a=Math.min(i.x,n.x),o=Math.max(i.x,n.x),s=Math.min(i.y,n.y),l=Math.max(i.y,n.y);r.setTransform(this._box,&quot;translate(&quot;+a+&quot;px,&quot;+s+&quot;px)&quot;),this._box.style.width=o-a+&quot;px&quot;,this._box.style.height=l-s+&quot;px&quot;}}},Bn.prototype.mouseupWindow=function(e,n){var i=this;if(this._active&amp;&amp;0===e.button){var a=this._startPos,o=n;if(this.reset(),r.suppressClick(),a.x!==o.x||a.y!==o.y)return this._map.fire(new t.Event(&quot;boxzoomend&quot;,{originalEvent:e})),{cameraAnimation:function(t){return t.fitScreenCoordinates(a,o,i._map.getBearing(),{linear:!0})}};this._fireEvent(&quot;boxzoomcancel&quot;,e)}},Bn.prototype.keydown=function(t){this._active&amp;&amp;27===t.keyCode&amp;&amp;(this.reset(),this._fireEvent(&quot;boxzoomcancel&quot;,t))},Bn.prototype.reset=function(){this._active=!1,this._container.classList.remove(&quot;mapboxgl-crosshair&quot;),this._box&amp;&amp;(r.remove(this._box),this._box=null),r.enableDrag(),delete this._startPos,delete this._lastPos},Bn.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,{originalEvent:r}))};var jn=function(t){this.reset(),this.numTouches=t.numTouches};jn.prototype.reset=function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1},jn.prototype.touchstart=function(e,r,n){(this.centroid||n.length&gt;this.numTouches)&amp;&amp;(this.aborted=!0),this.aborted||(void 0===this.startTime&amp;&amp;(this.startTime=e.timeStamp),n.length===this.numTouches&amp;&amp;(this.centroid=function(e){for(var r=new t.Point(0,0),n=0,i=e;n&lt;i.length;n+=1)r._add(i[n]);return r.div(e.length)}(r),this.touches=Nn(n,r)))},jn.prototype.touchmove=function(t,e,r){if(!this.aborted&amp;&amp;this.centroid){var n=Nn(r,e);for(var i in this.touches){var a=n[i];(!a||a.dist(this.touches[i])&gt;30)&amp;&amp;(this.aborted=!0)}}},jn.prototype.touchend=function(t,e,r){if((!this.centroid||t.timeStamp-this.startTime&gt;500)&amp;&amp;(this.aborted=!0),0===r.length){var n=!this.aborted&amp;&amp;this.centroid;if(this.reset(),n)return n}};var Un=function(t){this.singleTap=new jn(t),this.numTaps=t.numTaps,this.reset()};Un.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Un.prototype.touchstart=function(t,e,r){this.singleTap.touchstart(t,e,r)},Un.prototype.touchmove=function(t,e,r){this.singleTap.touchmove(t,e,r)},Un.prototype.touchend=function(t,e,r){var n=this.singleTap.touchend(t,e,r);if(n){var i=t.timeStamp-this.lastTime&lt;500,a=!this.lastTap||this.lastTap.dist(n)&lt;30;if(i&amp;&amp;a||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=n,this.count===this.numTaps)return this.reset(),n}};var Vn=function(){this._zoomIn=new Un({numTouches:1,numTaps:2}),this._zoomOut=new Un({numTouches:2,numTaps:1}),this.reset()};Vn.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Vn.prototype.touchstart=function(t,e,r){this._zoomIn.touchstart(t,e,r),this._zoomOut.touchstart(t,e,r)},Vn.prototype.touchmove=function(t,e,r){this._zoomIn.touchmove(t,e,r),this._zoomOut.touchmove(t,e,r)},Vn.prototype.touchend=function(t,e,r){var n=this,i=this._zoomIn.touchend(t,e,r),a=this._zoomOut.touchend(t,e,r);return i?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(i)},{originalEvent:t})}}):a?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(a)},{originalEvent:t})}}):void 0},Vn.prototype.touchcancel=function(){this.reset()},Vn.prototype.enable=function(){this._enabled=!0},Vn.prototype.disable=function(){this._enabled=!1,this.reset()},Vn.prototype.isEnabled=function(){return this._enabled},Vn.prototype.isActive=function(){return this._active};var qn=function(t){this.reset(),this._clickTolerance=t.clickTolerance||1};qn.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},qn.prototype._correctButton=function(t,e){return!1},qn.prototype._move=function(t,e){return{}},qn.prototype.mousedown=function(t,e){if(!this._lastPoint){var n=r.mouseButton(t);this._correctButton(t,n)&amp;&amp;(this._lastPoint=e,this._eventButton=n)}},qn.prototype.mousemoveWindow=function(t,e){var r=this._lastPoint;if(r&amp;&amp;(t.preventDefault(),this._moved||!(e.dist(r)&lt;this._clickTolerance)))return this._moved=!0,this._lastPoint=e,this._move(r,e)},qn.prototype.mouseupWindow=function(t){r.mouseButton(t)===this._eventButton&amp;&amp;(this._moved&amp;&amp;r.suppressClick(),this.reset())},qn.prototype.enable=function(){this._enabled=!0},qn.prototype.disable=function(){this._enabled=!1,this.reset()},qn.prototype.isEnabled=function(){return this._enabled},qn.prototype.isActive=function(){return this._active};var Hn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.mousedown=function(e,r){t.prototype.mousedown.call(this,e,r),this._lastPoint&amp;&amp;(this._active=!0)},e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;!t.ctrlKey},e.prototype._move=function(t,e){return{around:e,panDelta:e.sub(t)}},e}(qn),Gn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=.8*(e.x-t.x);if(r)return this._active=!0,{bearingDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(qn),Yn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=-.5*(e.y-t.y);if(r)return this._active=!0,{pitchDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(qn),Wn=function(t){this._minTouches=1,this._clickTolerance=t.clickTolerance||1,this.reset()};Wn.prototype.reset=function(){this._active=!1,this._touches={},this._sum=new t.Point(0,0)},Wn.prototype.touchstart=function(t,e,r){return this._calculateTransform(t,e,r)},Wn.prototype.touchmove=function(t,e,r){if(this._active)return t.preventDefault(),this._calculateTransform(t,e,r)},Wn.prototype.touchend=function(t,e,r){this._calculateTransform(t,e,r),this._active&amp;&amp;r.length&lt;this._minTouches&amp;&amp;this.reset()},Wn.prototype.touchcancel=function(){this.reset()},Wn.prototype._calculateTransform=function(e,r,n){n.length&gt;0&amp;&amp;(this._active=!0);var i=Nn(n,r),a=new t.Point(0,0),o=new t.Point(0,0),s=0;for(var l in i){var c=i[l],u=this._touches[l];u&amp;&amp;(a._add(c),o._add(c.sub(u)),s++,i[l]=c)}if(this._touches=i,!(s&lt;this._minTouches)&amp;&amp;o.mag()){var f=o.div(s);if(this._sum._add(f),!(this._sum.mag()&lt;this._clickTolerance))return{around:a.div(s),panDelta:f}}},Wn.prototype.enable=function(){this._enabled=!0},Wn.prototype.disable=function(){this._enabled=!1,this.reset()},Wn.prototype.isEnabled=function(){return this._enabled},Wn.prototype.isActive=function(){return this._active};var Xn=function(){this.reset()};function Zn(t,e,r){for(var n=0;n&lt;t.length;n++)if(t[n].identifier===r)return e[n]}function Jn(t,e){return Math.log(t/e)/Math.LN2}Xn.prototype.reset=function(){this._active=!1,delete this._firstTwoTouches},Xn.prototype._start=function(t){},Xn.prototype._move=function(t,e,r){return{}},Xn.prototype.touchstart=function(t,e,r){this._firstTwoTouches||r.length&lt;2||(this._firstTwoTouches=[r[0].identifier,r[1].identifier],this._start([e[0],e[1]]))},Xn.prototype.touchmove=function(t,e,r){if(this._firstTwoTouches){t.preventDefault();var n=this._firstTwoTouches,i=n[1],a=Zn(r,e,n[0]),o=Zn(r,e,i);if(a&amp;&amp;o){var s=this._aroundCenter?null:a.add(o).div(2);return this._move([a,o],s,t)}}},Xn.prototype.touchend=function(t,e,n){if(this._firstTwoTouches){var i=this._firstTwoTouches,a=i[1],o=Zn(n,e,i[0]),s=Zn(n,e,a);o&amp;&amp;s||(this._active&amp;&amp;r.suppressClick(),this.reset())}},Xn.prototype.touchcancel=function(){this.reset()},Xn.prototype.enable=function(t){this._enabled=!0,this._aroundCenter=!!t&amp;&amp;&quot;center&quot;===t.around},Xn.prototype.disable=function(){this._enabled=!1,this.reset()},Xn.prototype.isEnabled=function(){return this._enabled},Xn.prototype.isActive=function(){return this._active};var Kn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._distance,delete this._startDistance},e.prototype._start=function(t){this._startDistance=this._distance=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._distance;if(this._distance=t[0].dist(t[1]),this._active||!(Math.abs(Jn(this._distance,this._startDistance))&lt;.1))return this._active=!0,{zoomDelta:Jn(this._distance,r),pinchAround:e}},e}(Xn);function Qn(t,e){return 180*t.angleWith(e)/Math.PI}var $n=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._minDiameter,delete this._startVector,delete this._vector},e.prototype._start=function(t){this._startVector=this._vector=t[0].sub(t[1]),this._minDiameter=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._vector;if(this._vector=t[0].sub(t[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:Qn(this._vector,r),pinchAround:e}},e.prototype._isBelowThreshold=function(t){this._minDiameter=Math.min(this._minDiameter,t.mag());var e=25/(Math.PI*this._minDiameter)*360,r=Qn(t,this._startVector);return Math.abs(r)&lt;e},e}(Xn);function ti(t){return Math.abs(t.y)&gt;Math.abs(t.x)}var ei=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},e.prototype._start=function(t){this._lastPoints=t,ti(t[0].sub(t[1]))&amp;&amp;(this._valid=!1)},e.prototype._move=function(t,e,r){var n=t[0].sub(this._lastPoints[0]),i=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(n,i,r.timeStamp),this._valid)return this._lastPoints=t,this._active=!0,{pitchDelta:(n.y+i.y)/2*-.5}},e.prototype.gestureBeginsVertically=function(t,e,r){if(void 0!==this._valid)return this._valid;var n=t.mag()&gt;=2,i=e.mag()&gt;=2;if(n||i){if(!n||!i)return void 0===this._firstMove&amp;&amp;(this._firstMove=r),r-this._firstMove&lt;100&amp;&amp;void 0;var a=t.y&gt;0==e.y&gt;0;return ti(t)&amp;&amp;ti(e)&amp;&amp;a}},e}(Xn),ri={panStep:100,bearingStep:15,pitchStep:10},ni=function(){var t=ri;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep};function ii(t){return t*(2-t)}ni.prototype.reset=function(){this._active=!1},ni.prototype.keydown=function(t){var e=this;if(!(t.altKey||t.ctrlKey||t.metaKey)){var r=0,n=0,i=0,a=0,o=0;switch(t.keyCode){case 61:case 107:case 171:case 187:r=1;break;case 189:case 109:case 173:r=-1;break;case 37:t.shiftKey?n=-1:(t.preventDefault(),a=-1);break;case 39:t.shiftKey?n=1:(t.preventDefault(),a=1);break;case 38:t.shiftKey?i=1:(t.preventDefault(),o=-1);break;case 40:t.shiftKey?i=-1:(t.preventDefault(),o=1);break;default:return}return{cameraAnimation:function(s){var l=s.getZoom();s.easeTo({duration:300,easeId:&quot;keyboardHandler&quot;,easing:ii,zoom:r?Math.round(l)+r*(t.shiftKey?2:1):l,bearing:s.getBearing()+n*e._bearingStep,pitch:s.getPitch()+i*e._pitchStep,offset:[-a*e._panStep,-o*e._panStep],center:s.getCenter()},{originalEvent:t})}}}},ni.prototype.enable=function(){this._enabled=!0},ni.prototype.disable=function(){this._enabled=!1,this.reset()},ni.prototype.isEnabled=function(){return this._enabled},ni.prototype.isActive=function(){return this._active};var ai=function(e,r){this._map=e,this._el=e.getCanvasContainer(),this._handler=r,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,t.bindAll([&quot;_onWheel&quot;,&quot;_onTimeout&quot;,&quot;_onScrollFrame&quot;,&quot;_onScrollFinished&quot;],this)};ai.prototype.setZoomRate=function(t){this._defaultZoomRate=t},ai.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},ai.prototype.isEnabled=function(){return!!this._enabled},ai.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},ai.prototype.isZooming=function(){return!!this._zooming},ai.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&amp;&amp;&quot;center&quot;===t.around)},ai.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},ai.prototype.wheel=function(e){if(this.isEnabled()){var r=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,n=t.browser.now(),i=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==r&amp;&amp;r%4.000244140625==0?this._type=&quot;wheel&quot;:0!==r&amp;&amp;Math.abs(r)&lt;4?this._type=&quot;trackpad&quot;:i&gt;400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*r)&lt;200?&quot;trackpad&quot;:&quot;wheel&quot;,this._timeout&amp;&amp;(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),e.shiftKey&amp;&amp;r&amp;&amp;(r/=4),this._type&amp;&amp;(this._lastWheelEvent=e,this._delta-=r,this._active||this._start(e)),e.preventDefault()}},ai.prototype._onTimeout=function(t){this._type=&quot;wheel&quot;,this._delta-=this._lastValue,this._active||this._start(t)},ai.prototype._start=function(e){if(this._delta){this._frameId&amp;&amp;(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&amp;&amp;(clearTimeout(this._finishTimeout),delete this._finishTimeout);var n=r.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(n)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},ai.prototype.renderFrame=function(){return this._onScrollFrame()},ai.prototype._onScrollFrame=function(){var e=this;if(this._frameId&amp;&amp;(this._frameId=null,this.isActive())){var r=this._map.transform;if(0!==this._delta){var n=&quot;wheel&quot;===this._type&amp;&amp;Math.abs(this._delta)&gt;4.000244140625?this._wheelZoomRate:this._defaultZoomRate,i=2/(1+Math.exp(-Math.abs(this._delta*n)));this._delta&lt;0&amp;&amp;0!==i&amp;&amp;(i=1/i);var a=&quot;number&quot;==typeof this._targetZoom?r.zoomScale(this._targetZoom):r.scale;this._targetZoom=Math.min(r.maxZoom,Math.max(r.minZoom,r.scaleZoom(a*i))),&quot;wheel&quot;===this._type&amp;&amp;(this._startZoom=r.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var o,s=&quot;number&quot;==typeof this._targetZoom?this._targetZoom:r.zoom,l=this._startZoom,c=this._easing,u=!1;if(&quot;wheel&quot;===this._type&amp;&amp;l&amp;&amp;c){var f=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),h=c(f);o=t.number(l,s,h),f&lt;1?this._frameId||(this._frameId=!0):u=!0}else o=s,u=!0;return this._active=!0,u&amp;&amp;(this._active=!1,this._finishTimeout=setTimeout((function(){e._zooming=!1,e._handler._triggerRenderFrame(),delete e._targetZoom,delete e._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!u,zoomDelta:o-r.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},ai.prototype._smoothOutEasing=function(e){var r=t.ease;if(this._prevEase){var n=this._prevEase,i=(t.browser.now()-n.start)/n.duration,a=n.easing(i+.01)-n.easing(i),o=.27/Math.sqrt(a*a+1e-4)*.01,s=Math.sqrt(.0729-o*o);r=t.bezier(o,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:r},r},ai.prototype.reset=function(){this._active=!1};var oi=function(t,e){this._clickZoom=t,this._tapZoom=e};oi.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},oi.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},oi.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&amp;&amp;this._tapZoom.isEnabled()},oi.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var si=function(){this.reset()};si.prototype.reset=function(){this._active=!1},si.prototype.dblclick=function(t,e){return t.preventDefault(),{cameraAnimation:function(r){r.easeTo({duration:300,zoom:r.getZoom()+(t.shiftKey?-1:1),around:r.unproject(e)},{originalEvent:t})}}},si.prototype.enable=function(){this._enabled=!0},si.prototype.disable=function(){this._enabled=!1,this.reset()},si.prototype.isEnabled=function(){return this._enabled},si.prototype.isActive=function(){return this._active};var li=function(){this._tap=new Un({numTouches:1,numTaps:1}),this.reset()};li.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},li.prototype.touchstart=function(t,e,r){this._swipePoint||(this._tapTime&amp;&amp;t.timeStamp-this._tapTime&gt;500&amp;&amp;this.reset(),this._tapTime?r.length&gt;0&amp;&amp;(this._swipePoint=e[0],this._swipeTouch=r[0].identifier):this._tap.touchstart(t,e,r))},li.prototype.touchmove=function(t,e,r){if(this._tapTime){if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;var n=e[0],i=n.y-this._swipePoint.y;return this._swipePoint=n,t.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(t,e,r)},li.prototype.touchend=function(t,e,r){this._tapTime?this._swipePoint&amp;&amp;0===r.length&amp;&amp;this.reset():this._tap.touchend(t,e,r)&amp;&amp;(this._tapTime=t.timeStamp)},li.prototype.touchcancel=function(){this.reset()},li.prototype.enable=function(){this._enabled=!0},li.prototype.disable=function(){this._enabled=!1,this.reset()},li.prototype.isEnabled=function(){return this._enabled},li.prototype.isActive=function(){return this._active};var ci=function(t,e,r){this._el=t,this._mousePan=e,this._touchPan=r};ci.prototype.enable=function(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add(&quot;mapboxgl-touch-drag-pan&quot;)},ci.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove(&quot;mapboxgl-touch-drag-pan&quot;)},ci.prototype.isEnabled=function(){return this._mousePan.isEnabled()&amp;&amp;this._touchPan.isEnabled()},ci.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var ui=function(t,e,r){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=r};ui.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&amp;&amp;this._mousePitch.enable()},ui.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},ui.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&amp;&amp;(!this._pitchWithRotate||this._mousePitch.isEnabled())},ui.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var fi=function(t,e,r,n){this._el=t,this._touchZoom=e,this._touchRotate=r,this._tapDragZoom=n,this._rotationDisabled=!1,this._enabled=!0};fi.prototype.enable=function(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add(&quot;mapboxgl-touch-zoom-rotate&quot;)},fi.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove(&quot;mapboxgl-touch-zoom-rotate&quot;)},fi.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&amp;&amp;(this._rotationDisabled||this._touchRotate.isEnabled())&amp;&amp;this._tapDragZoom.isEnabled()},fi.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},fi.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},fi.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&amp;&amp;this._touchRotate.enable()};var hi=function(t){return t.zoom||t.drag||t.pitch||t.rotate},pi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(t.Event);function di(t){return t.panDelta&amp;&amp;t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var gi=function(e,n){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Ln(e),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(n),t.bindAll([&quot;handleEvent&quot;,&quot;handleWindowEvent&quot;],this);var i=this._el;this._listeners=[[i,&quot;touchstart&quot;,{passive:!1}],[i,&quot;touchmove&quot;,{passive:!1}],[i,&quot;touchend&quot;,void 0],[i,&quot;touchcancel&quot;,void 0],[i,&quot;mousedown&quot;,void 0],[i,&quot;mousemove&quot;,void 0],[i,&quot;mouseup&quot;,void 0],[t.window.document,&quot;mousemove&quot;,{capture:!0}],[t.window.document,&quot;mouseup&quot;,void 0],[i,&quot;mouseover&quot;,void 0],[i,&quot;mouseout&quot;,void 0],[i,&quot;dblclick&quot;,void 0],[i,&quot;click&quot;,void 0],[i,&quot;keydown&quot;,{capture:!1}],[i,&quot;keyup&quot;,void 0],[i,&quot;wheel&quot;,{passive:!1}],[i,&quot;contextmenu&quot;,void 0],[t.window,&quot;blur&quot;,void 0]];for(var a=0,o=this._listeners;a&lt;o.length;a+=1){var s=o[a],l=s[0];r.addEventListener(l,s[1],l===t.window.document?this.handleWindowEvent:this.handleEvent,s[2])}};gi.prototype.destroy=function(){for(var e=0,n=this._listeners;e&lt;n.length;e+=1){var i=n[e],a=i[0];r.removeEventListener(a,i[1],a===t.window.document?this.handleWindowEvent:this.handleEvent,i[2])}},gi.prototype._addDefaultHandlers=function(t){var e=this._map,r=e.getCanvasContainer();this._add(&quot;mapEvent&quot;,new Rn(e,t));var n=e.boxZoom=new Bn(e,t);this._add(&quot;boxZoom&quot;,n);var i=new Vn,a=new si;e.doubleClickZoom=new oi(a,i),this._add(&quot;tapZoom&quot;,i),this._add(&quot;clickZoom&quot;,a);var o=new li;this._add(&quot;tapDragZoom&quot;,o);var s=e.touchPitch=new ei;this._add(&quot;touchPitch&quot;,s);var l=new Gn(t),c=new Yn(t);e.dragRotate=new ui(t,l,c),this._add(&quot;mouseRotate&quot;,l,[&quot;mousePitch&quot;]),this._add(&quot;mousePitch&quot;,c,[&quot;mouseRotate&quot;]);var u=new Hn(t),f=new Wn(t);e.dragPan=new ci(r,u,f),this._add(&quot;mousePan&quot;,u),this._add(&quot;touchPan&quot;,f,[&quot;touchZoom&quot;,&quot;touchRotate&quot;]);var h=new $n,p=new Kn;e.touchZoomRotate=new fi(r,p,h,o),this._add(&quot;touchRotate&quot;,h,[&quot;touchPan&quot;,&quot;touchZoom&quot;]),this._add(&quot;touchZoom&quot;,p,[&quot;touchPan&quot;,&quot;touchRotate&quot;]);var d=e.scrollZoom=new ai(e,this);this._add(&quot;scrollZoom&quot;,d,[&quot;mousePan&quot;]);var g=e.keyboard=new ni;this._add(&quot;keyboard&quot;,g),this._add(&quot;blockableMapEvent&quot;,new Fn(e));for(var m=0,v=[&quot;boxZoom&quot;,&quot;doubleClickZoom&quot;,&quot;tapDragZoom&quot;,&quot;touchPitch&quot;,&quot;dragRotate&quot;,&quot;dragPan&quot;,&quot;touchZoomRotate&quot;,&quot;scrollZoom&quot;,&quot;keyboard&quot;];m&lt;v.length;m+=1){var y=v[m];t.interactive&amp;&amp;t[y]&amp;&amp;e[y].enable(t[y])}},gi.prototype._add=function(t,e,r){this._handlers.push({handlerName:t,handler:e,allowed:r}),this._handlersById[t]=e},gi.prototype.stop=function(){if(!this._updatingCamera){for(var t=0,e=this._handlers;t&lt;e.length;t+=1)e[t].handler.reset();this._inertia.clear(),this._fireEvents({},{}),this._changes=[]}},gi.prototype.isActive=function(){for(var t=0,e=this._handlers;t&lt;e.length;t+=1)if(e[t].handler.isActive())return!0;return!1},gi.prototype.isZooming=function(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()},gi.prototype.isRotating=function(){return!!this._eventsInProgress.rotate},gi.prototype.isMoving=function(){return Boolean(hi(this._eventsInProgress))||this.isZooming()},gi.prototype._blockedByActive=function(t,e,r){for(var n in t)if(n!==r&amp;&amp;(!e||e.indexOf(n)&lt;0))return!0;return!1},gi.prototype.handleWindowEvent=function(t){this.handleEvent(t,t.type+&quot;Window&quot;)},gi.prototype._getMapTouches=function(t){for(var e=[],r=0,n=t;r&lt;n.length;r+=1){var i=n[r];this._el.contains(i.target)&amp;&amp;e.push(i)}return e},gi.prototype.handleEvent=function(t,e){if(&quot;blur&quot;!==t.type){this._updatingCamera=!0;for(var n=&quot;renderFrame&quot;===t.type?void 0:t,i={needsRenderFrame:!1},a={},o={},s=t.touches?this._getMapTouches(t.touches):void 0,l=s?r.touchPos(this._el,s):r.mousePos(this._el,t),c=0,u=this._handlers;c&lt;u.length;c+=1){var f=u[c],h=f.handlerName,p=f.handler,d=f.allowed;if(p.isEnabled()){var g=void 0;this._blockedByActive(o,d,h)?p.reset():p[e||t.type]&amp;&amp;(g=p[e||t.type](t,l,s),this.mergeHandlerResult(i,a,g,h,n),g&amp;&amp;g.needsRenderFrame&amp;&amp;this._triggerRenderFrame()),(g||p.isActive())&amp;&amp;(o[h]=p)}}var m={};for(var v in this._previousActiveHandlers)o[v]||(m[v]=n);this._previousActiveHandlers=o,(Object.keys(m).length||di(i))&amp;&amp;(this._changes.push([i,a,m]),this._triggerRenderFrame()),(Object.keys(o).length||di(i))&amp;&amp;this._map._stop(!0),this._updatingCamera=!1;var y=i.cameraAnimation;y&amp;&amp;(this._inertia.clear(),this._fireEvents({},{}),this._changes=[],y(this._map))}else this.stop()},gi.prototype.mergeHandlerResult=function(e,r,n,i,a){if(n){t.extend(e,n);var o={handlerName:i,originalEvent:n.originalEvent||a};void 0!==n.zoomDelta&amp;&amp;(r.zoom=o),void 0!==n.panDelta&amp;&amp;(r.drag=o),void 0!==n.pitchDelta&amp;&amp;(r.pitch=o),void 0!==n.bearingDelta&amp;&amp;(r.rotate=o)}},gi.prototype._applyChanges=function(){for(var e={},r={},n={},i=0,a=this._changes;i&lt;a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=o[2];s.panDelta&amp;&amp;(e.panDelta=(e.panDelta||new t.Point(0,0))._add(s.panDelta)),s.zoomDelta&amp;&amp;(e.zoomDelta=(e.zoomDelta||0)+s.zoomDelta),s.bearingDelta&amp;&amp;(e.bearingDelta=(e.bearingDelta||0)+s.bearingDelta),s.pitchDelta&amp;&amp;(e.pitchDelta=(e.pitchDelta||0)+s.pitchDelta),void 0!==s.around&amp;&amp;(e.around=s.around),void 0!==s.pinchAround&amp;&amp;(e.pinchAround=s.pinchAround),s.noInertia&amp;&amp;(e.noInertia=s.noInertia),t.extend(r,l),t.extend(n,c)}this._updateMapTransform(e,r,n),this._changes=[]},gi.prototype._updateMapTransform=function(t,e,r){var n=this._map,i=n.transform;if(!di(t))return this._fireEvents(e,r);var a=t.panDelta,o=t.zoomDelta,s=t.bearingDelta,l=t.pitchDelta,c=t.around,u=t.pinchAround;void 0!==u&amp;&amp;(c=u),n._stop(!0),c=c||n.transform.centerPoint;var f=i.pointLocation(a?c.sub(a):c);s&amp;&amp;(i.bearing+=s),l&amp;&amp;(i.pitch+=l),o&amp;&amp;(i.zoom+=o),i.setLocationAtPoint(f,c),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(e,r)},gi.prototype._fireEvents=function(e,r){var n=this,i=hi(this._eventsInProgress),a=hi(e),o={};for(var s in e)this._eventsInProgress[s]||(o[s+&quot;start&quot;]=e[s].originalEvent),this._eventsInProgress[s]=e[s];for(var l in!i&amp;&amp;a&amp;&amp;this._fireEvent(&quot;movestart&quot;,a.originalEvent),o)this._fireEvent(l,o[l]);for(var c in e.rotate&amp;&amp;(this._bearingChanged=!0),a&amp;&amp;this._fireEvent(&quot;move&quot;,a.originalEvent),e)this._fireEvent(c,e[c].originalEvent);var u,f={};for(var h in this._eventsInProgress){var p=this._eventsInProgress[h],d=p.handlerName,g=p.originalEvent;this._handlersById[d].isActive()||(delete this._eventsInProgress[h],f[h+&quot;end&quot;]=u=r[d]||g)}for(var m in f)this._fireEvent(m,f[m]);var v=hi(this._eventsInProgress);if((i||a)&amp;&amp;!v){this._updatingCamera=!0;var y=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),x=function(t){return 0!==t&amp;&amp;-n._bearingSnap&lt;t&amp;&amp;t&lt;n._bearingSnap};y?(x(y.bearing||this._map.getBearing())&amp;&amp;(y.bearing=0),this._map.easeTo(y,{originalEvent:u})):(this._map.fire(new t.Event(&quot;moveend&quot;,{originalEvent:u})),x(this._map.getBearing())&amp;&amp;this._map.resetNorth()),this._bearingChanged=!1,this._updatingCamera=!1}},gi.prototype._fireEvent=function(e,r){this._map.fire(new t.Event(e,r?{originalEvent:r}:{}))},gi.prototype._triggerRenderFrame=function(){var t=this;void 0===this._frameId&amp;&amp;(this._frameId=this._map._requestRenderFrame((function(e){delete t._frameId,t.handleEvent(new pi(&quot;renderFrame&quot;,{timeStamp:e})),t._applyChanges()})))};var mi=function(e){function r(r,n){e.call(this),this._moving=!1,this._zooming=!1,this.transform=r,this._bearingSnap=n.bearingSnap,t.bindAll([&quot;_renderFrameCallback&quot;],this)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getCenter=function(){return new t.LngLat(this.transform.center.lng,this.transform.center.lat)},r.prototype.setCenter=function(t,e){return this.jumpTo({center:t},e)},r.prototype.panBy=function(e,r,n){return e=t.Point.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},r),n)},r.prototype.panTo=function(e,r,n){return this.easeTo(t.extend({center:e},r),n)},r.prototype.getZoom=function(){return this.transform.zoom},r.prototype.setZoom=function(t,e){return this.jumpTo({zoom:t},e),this},r.prototype.zoomTo=function(e,r,n){return this.easeTo(t.extend({zoom:e},r),n)},r.prototype.zoomIn=function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},r.prototype.zoomOut=function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},r.prototype.getBearing=function(){return this.transform.bearing},r.prototype.setBearing=function(t,e){return this.jumpTo({bearing:t},e),this},r.prototype.getPadding=function(){return this.transform.padding},r.prototype.setPadding=function(t,e){return this.jumpTo({padding:t},e),this},r.prototype.rotateTo=function(e,r,n){return this.easeTo(t.extend({bearing:e},r),n)},r.prototype.resetNorth=function(e,r){return this.rotateTo(0,t.extend({duration:1e3},e),r),this},r.prototype.resetNorthPitch=function(e,r){return this.easeTo(t.extend({bearing:0,pitch:0,duration:1e3},e),r),this},r.prototype.snapToNorth=function(t,e){return Math.abs(this.getBearing())&lt;this._bearingSnap?this.resetNorth(t,e):this},r.prototype.getPitch=function(){return this.transform.pitch},r.prototype.setPitch=function(t,e){return this.jumpTo({pitch:t},e),this},r.prototype.cameraForBounds=function(e,r){return e=t.LngLatBounds.convert(e),this._cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),0,r)},r.prototype._cameraForBoxAndBearing=function(e,r,n,i){var a={top:0,bottom:0,right:0,left:0};if(&quot;number&quot;==typeof(i=t.extend({padding:a,offset:[0,0],maxZoom:this.transform.maxZoom},i)).padding){var o=i.padding;i.padding={top:o,bottom:o,right:o,left:o}}i.padding=t.extend(a,i.padding);var s=this.transform,l=s.padding,c=s.project(t.LngLat.convert(e)),u=s.project(t.LngLat.convert(r)),f=c.rotate(-n*Math.PI/180),h=u.rotate(-n*Math.PI/180),p=new t.Point(Math.max(f.x,h.x),Math.max(f.y,h.y)),d=new t.Point(Math.min(f.x,h.x),Math.min(f.y,h.y)),g=p.sub(d),m=(s.width-(l.left+l.right+i.padding.left+i.padding.right))/g.x,v=(s.height-(l.top+l.bottom+i.padding.top+i.padding.bottom))/g.y;if(!(v&lt;0||m&lt;0)){var y=Math.min(s.scaleZoom(s.scale*Math.min(m,v)),i.maxZoom),x=t.Point.convert(i.offset),b=new t.Point(x.x+(i.padding.left-i.padding.right)/2,x.y+(i.padding.top-i.padding.bottom)/2).mult(s.scale/s.zoomScale(y));return{center:s.unproject(c.add(u).div(2).sub(b)),zoom:y,bearing:n}}t.warnOnce(&quot;Map cannot fit within canvas with the given bounds, padding, and/or offset.&quot;)},r.prototype.fitBounds=function(t,e,r){return this._fitInternal(this.cameraForBounds(t,e),e,r)},r.prototype.fitScreenCoordinates=function(e,r,n,i,a){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(t.Point.convert(e)),this.transform.pointLocation(t.Point.convert(r)),n,i),i,a)},r.prototype._fitInternal=function(e,r,n){return e?(delete(r=t.extend(e,r)).padding,r.linear?this.easeTo(r,n):this.flyTo(r,n)):this},r.prototype.jumpTo=function(e,r){this.stop();var n=this.transform,i=!1,a=!1,o=!1;return&quot;zoom&quot;in e&amp;&amp;n.zoom!==+e.zoom&amp;&amp;(i=!0,n.zoom=+e.zoom),void 0!==e.center&amp;&amp;(n.center=t.LngLat.convert(e.center)),&quot;bearing&quot;in e&amp;&amp;n.bearing!==+e.bearing&amp;&amp;(a=!0,n.bearing=+e.bearing),&quot;pitch&quot;in e&amp;&amp;n.pitch!==+e.pitch&amp;&amp;(o=!0,n.pitch=+e.pitch),null==e.padding||n.isPaddingEqual(e.padding)||(n.padding=e.padding),this.fire(new t.Event(&quot;movestart&quot;,r)).fire(new t.Event(&quot;move&quot;,r)),i&amp;&amp;this.fire(new t.Event(&quot;zoomstart&quot;,r)).fire(new t.Event(&quot;zoom&quot;,r)).fire(new t.Event(&quot;zoomend&quot;,r)),a&amp;&amp;this.fire(new t.Event(&quot;rotatestart&quot;,r)).fire(new t.Event(&quot;rotate&quot;,r)).fire(new t.Event(&quot;rotateend&quot;,r)),o&amp;&amp;this.fire(new t.Event(&quot;pitchstart&quot;,r)).fire(new t.Event(&quot;pitch&quot;,r)).fire(new t.Event(&quot;pitchend&quot;,r)),this.fire(new t.Event(&quot;moveend&quot;,r))},r.prototype.easeTo=function(e,r){var n=this;this._stop(!1,e.easeId),(!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate||!e.essential&amp;&amp;t.browser.prefersReducedMotion)&amp;&amp;(e.duration=0);var i=this.transform,a=this.getZoom(),o=this.getBearing(),s=this.getPitch(),l=this.getPadding(),c=&quot;zoom&quot;in e?+e.zoom:a,u=&quot;bearing&quot;in e?this._normalizeBearing(e.bearing,o):o,f=&quot;pitch&quot;in e?+e.pitch:s,h=&quot;padding&quot;in e?e.padding:i.padding,p=t.Point.convert(e.offset),d=i.centerPoint.add(p),g=i.pointLocation(d),m=t.LngLat.convert(e.center||g);this._normalizeCenter(m);var v,y,x=i.project(g),b=i.project(m).sub(x),_=i.zoomScale(c-a);e.around&amp;&amp;(v=t.LngLat.convert(e.around),y=i.locationPoint(v));var w={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||c!==a,this._rotating=this._rotating||o!==u,this._pitching=this._pitching||f!==s,this._padding=!i.isPaddingEqual(h),this._easeId=e.easeId,this._prepareEase(r,e.noMoveStart,w),clearTimeout(this._easeEndTimeoutID),this._ease((function(e){if(n._zooming&amp;&amp;(i.zoom=t.number(a,c,e)),n._rotating&amp;&amp;(i.bearing=t.number(o,u,e)),n._pitching&amp;&amp;(i.pitch=t.number(s,f,e)),n._padding&amp;&amp;(i.interpolatePadding(l,h,e),d=i.centerPoint.add(p)),v)i.setLocationAtPoint(v,y);else{var g=i.zoomScale(i.zoom-a),m=c&gt;a?Math.min(2,_):Math.max(.5,_),w=Math.pow(m,1-e),T=i.unproject(x.add(b.mult(e*w)).mult(g));i.setLocationAtPoint(i.renderWorldCopies?T.wrap():T,d)}n._fireMoveEvents(r)}),(function(t){n._afterEase(r,t)}),e),this},r.prototype._prepareEase=function(e,r,n){void 0===n&amp;&amp;(n={}),this._moving=!0,r||n.moving||this.fire(new t.Event(&quot;movestart&quot;,e)),this._zooming&amp;&amp;!n.zooming&amp;&amp;this.fire(new t.Event(&quot;zoomstart&quot;,e)),this._rotating&amp;&amp;!n.rotating&amp;&amp;this.fire(new t.Event(&quot;rotatestart&quot;,e)),this._pitching&amp;&amp;!n.pitching&amp;&amp;this.fire(new t.Event(&quot;pitchstart&quot;,e))},r.prototype._fireMoveEvents=function(e){this.fire(new t.Event(&quot;move&quot;,e)),this._zooming&amp;&amp;this.fire(new t.Event(&quot;zoom&quot;,e)),this._rotating&amp;&amp;this.fire(new t.Event(&quot;rotate&quot;,e)),this._pitching&amp;&amp;this.fire(new t.Event(&quot;pitch&quot;,e))},r.prototype._afterEase=function(e,r){if(!this._easeId||!r||this._easeId!==r){delete this._easeId;var n=this._zooming,i=this._rotating,a=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&amp;&amp;this.fire(new t.Event(&quot;zoomend&quot;,e)),i&amp;&amp;this.fire(new t.Event(&quot;rotateend&quot;,e)),a&amp;&amp;this.fire(new t.Event(&quot;pitchend&quot;,e)),this.fire(new t.Event(&quot;moveend&quot;,e))}},r.prototype.flyTo=function(e,r){var n=this;if(!e.essential&amp;&amp;t.browser.prefersReducedMotion){var i=t.pick(e,[&quot;center&quot;,&quot;zoom&quot;,&quot;bearing&quot;,&quot;pitch&quot;,&quot;around&quot;]);return this.jumpTo(i,r)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var a=this.transform,o=this.getZoom(),s=this.getBearing(),l=this.getPitch(),c=this.getPadding(),u=&quot;zoom&quot;in e?t.clamp(+e.zoom,a.minZoom,a.maxZoom):o,f=&quot;bearing&quot;in e?this._normalizeBearing(e.bearing,s):s,h=&quot;pitch&quot;in e?+e.pitch:l,p=&quot;padding&quot;in e?e.padding:a.padding,d=a.zoomScale(u-o),g=t.Point.convert(e.offset),m=a.centerPoint.add(g),v=a.pointLocation(m),y=t.LngLat.convert(e.center||v);this._normalizeCenter(y);var x=a.project(v),b=a.project(y).sub(x),_=e.curve,w=Math.max(a.width,a.height),T=w/d,k=b.mag();if(&quot;minZoom&quot;in e){var M=t.clamp(Math.min(e.minZoom,o,u),a.minZoom,a.maxZoom),A=w/a.zoomScale(M-o);_=Math.sqrt(A/k*2)}var S=_*_;function E(t){var e=(T*T-w*w+(t?-1:1)*S*S*k*k)/(2*(t?T:w)*S*k);return Math.log(Math.sqrt(e*e+1)-e)}function C(t){return(Math.exp(t)-Math.exp(-t))/2}function L(t){return(Math.exp(t)+Math.exp(-t))/2}var I=E(0),P=function(t){return L(I)/L(I+_*t)},z=function(t){return w*((L(I)*(C(e=I+_*t)/L(e))-C(I))/S)/k;var e},O=(E(1)-I)/_;if(Math.abs(k)&lt;1e-6||!isFinite(O)){if(Math.abs(w-T)&lt;1e-6)return this.easeTo(e,r);var D=T&lt;w?-1:1;O=Math.abs(Math.log(T/w))/_,z=function(){return 0},P=function(t){return Math.exp(D*_*t)}}return e.duration=&quot;duration&quot;in e?+e.duration:1e3*O/(&quot;screenSpeed&quot;in e?+e.screenSpeed/_:+e.speed),e.maxDuration&amp;&amp;e.duration&gt;e.maxDuration&amp;&amp;(e.duration=0),this._zooming=!0,this._rotating=s!==f,this._pitching=h!==l,this._padding=!a.isPaddingEqual(p),this._prepareEase(r,!1),this._ease((function(e){var i=e*O,d=1/P(i);a.zoom=1===e?u:o+a.scaleZoom(d),n._rotating&amp;&amp;(a.bearing=t.number(s,f,e)),n._pitching&amp;&amp;(a.pitch=t.number(l,h,e)),n._padding&amp;&amp;(a.interpolatePadding(c,p,e),m=a.centerPoint.add(g));var v=1===e?y:a.unproject(x.add(b.mult(z(i))).mult(d));a.setLocationAtPoint(a.renderWorldCopies?v.wrap():v,m),n._fireMoveEvents(r)}),(function(){return n._afterEase(r)}),e),this},r.prototype.isEasing=function(){return!!this._easeFrameId},r.prototype.stop=function(){return this._stop()},r.prototype._stop=function(t,e){if(this._easeFrameId&amp;&amp;(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,e)}if(!t){var n=this.handlers;n&amp;&amp;n.stop()}return this},r.prototype._ease=function(e,r,n){!1===n.animate||0===n.duration?(e(1),r()):(this._easeStart=t.browser.now(),this._easeOptions=n,this._onEaseFrame=e,this._onEaseEnd=r,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},r.prototype._renderFrameCallback=function(){var e=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e&lt;1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},r.prototype._normalizeBearing=function(e,r){e=t.wrap(e,-180,180);var n=Math.abs(e-r);return Math.abs(e-360-r)&lt;n&amp;&amp;(e-=360),Math.abs(e+360-r)&lt;n&amp;&amp;(e+=360),e},r.prototype._normalizeCenter=function(t){var e=this.transform;if(e.renderWorldCopies&amp;&amp;!e.lngRange){var r=t.lng-e.center.lng;t.lng+=r&gt;180?-360:r&lt;-180?360:0}},r}(t.Evented),vi=function(e){void 0===e&amp;&amp;(e={}),this.options=e,t.bindAll([&quot;_updateEditLink&quot;,&quot;_updateData&quot;,&quot;_updateCompact&quot;],this)};vi.prototype.getDefaultPosition=function(){return&quot;bottom-right&quot;},vi.prototype.onAdd=function(t){var e=this.options&amp;&amp;this.options.compact;return this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-attrib&quot;),this._innerContainer=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl-attrib-inner&quot;,this._container),e&amp;&amp;this._container.classList.add(&quot;mapboxgl-compact&quot;),this._updateAttributions(),this._updateEditLink(),this._map.on(&quot;styledata&quot;,this._updateData),this._map.on(&quot;sourcedata&quot;,this._updateData),this._map.on(&quot;moveend&quot;,this._updateEditLink),void 0===e&amp;&amp;(this._map.on(&quot;resize&quot;,this._updateCompact),this._updateCompact()),this._container},vi.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;styledata&quot;,this._updateData),this._map.off(&quot;sourcedata&quot;,this._updateData),this._map.off(&quot;moveend&quot;,this._updateEditLink),this._map.off(&quot;resize&quot;,this._updateCompact),this._map=void 0,this._attribHTML=void 0},vi.prototype._updateEditLink=function(){var e=this._editLink;e||(e=this._editLink=this._container.querySelector(&quot;.mapbox-improve-map&quot;));var r=[{key:&quot;owner&quot;,value:this.styleOwner},{key:&quot;id&quot;,value:this.styleId},{key:&quot;access_token&quot;,value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if(e){var n=r.reduce((function(t,e,n){return e.value&amp;&amp;(t+=e.key+&quot;=&quot;+e.value+(n&lt;r.length-1?&quot;&amp;&quot;:&quot;&quot;)),t}),&quot;?&quot;);e.href=t.config.FEEDBACK_URL+&quot;/&quot;+n+(this._map._hash?this._map._hash.getHashString(!0):&quot;&quot;),e.rel=&quot;noopener nofollow&quot;}},vi.prototype._updateData=function(t){!t||&quot;metadata&quot;!==t.sourceDataType&amp;&amp;&quot;style&quot;!==t.dataType||(this._updateAttributions(),this._updateEditLink())},vi.prototype._updateAttributions=function(){if(this._map.style){var t=[];if(this.options.customAttribution&amp;&amp;(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map((function(t){return&quot;string&quot;!=typeof t?&quot;&quot;:t}))):&quot;string&quot;==typeof this.options.customAttribution&amp;&amp;t.push(this.options.customAttribution)),this._map.style.stylesheet){var e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}var r=this._map.style.sourceCaches;for(var n in r){var i=r[n];if(i.used){var a=i.getSource();a.attribution&amp;&amp;t.indexOf(a.attribution)&lt;0&amp;&amp;t.push(a.attribution)}}t.sort((function(t,e){return t.length-e.length}));var o=(t=t.filter((function(e,r){for(var n=r+1;n&lt;t.length;n++)if(t[n].indexOf(e)&gt;=0)return!1;return!0}))).join(&quot; | &quot;);o!==this._attribHTML&amp;&amp;(this._attribHTML=o,t.length?(this._innerContainer.innerHTML=o,this._container.classList.remove(&quot;mapboxgl-attrib-empty&quot;)):this._container.classList.add(&quot;mapboxgl-attrib-empty&quot;),this._editLink=null)}},vi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth&lt;=640?this._container.classList.add(&quot;mapboxgl-compact&quot;):this._container.classList.remove(&quot;mapboxgl-compact&quot;)};var yi=function(){t.bindAll([&quot;_updateLogo&quot;],this),t.bindAll([&quot;_updateCompact&quot;],this)};yi.prototype.onAdd=function(t){this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl&quot;);var e=r.create(&quot;a&quot;,&quot;mapboxgl-ctrl-logo&quot;);return e.target=&quot;_blank&quot;,e.rel=&quot;noopener nofollow&quot;,e.href=&quot;https://www.mapbox.com/&quot;,e.setAttribute(&quot;aria-label&quot;,this._map._getUIString(&quot;LogoControl.Title&quot;)),e.setAttribute(&quot;rel&quot;,&quot;noopener nofollow&quot;),this._container.appendChild(e),this._container.style.display=&quot;none&quot;,this._map.on(&quot;sourcedata&quot;,this._updateLogo),this._updateLogo(),this._map.on(&quot;resize&quot;,this._updateCompact),this._updateCompact(),this._container},yi.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;sourcedata&quot;,this._updateLogo),this._map.off(&quot;resize&quot;,this._updateCompact)},yi.prototype.getDefaultPosition=function(){return&quot;bottom-left&quot;},yi.prototype._updateLogo=function(t){t&amp;&amp;&quot;metadata&quot;!==t.sourceDataType||(this._container.style.display=this._logoRequired()?&quot;block&quot;:&quot;none&quot;)},yi.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}},yi.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth&lt;250?e.classList.add(&quot;mapboxgl-compact&quot;):e.classList.remove(&quot;mapboxgl-compact&quot;)}};var xi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};xi.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},xi.prototype.remove=function(t){for(var e=this._currentlyRunning,r=0,n=e?this._queue.concat(e):this._queue;r&lt;n.length;r+=1){var i=n[r];if(i.id===t)return void(i.cancelled=!0)}},xi.prototype.run=function(t){void 0===t&amp;&amp;(t=0);var e=this._currentlyRunning=this._queue;this._queue=[];for(var r=0,n=e;r&lt;n.length;r+=1){var i=n[r];if(!i.cancelled&amp;&amp;(i.callback(t),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},xi.prototype.clear=function(){this._currentlyRunning&amp;&amp;(this._cleared=!0),this._queue=[]};var bi={&quot;FullscreenControl.Enter&quot;:&quot;Enter fullscreen&quot;,&quot;FullscreenControl.Exit&quot;:&quot;Exit fullscreen&quot;,&quot;GeolocateControl.FindMyLocation&quot;:&quot;Find my location&quot;,&quot;GeolocateControl.LocationNotAvailable&quot;:&quot;Location not available&quot;,&quot;LogoControl.Title&quot;:&quot;Mapbox logo&quot;,&quot;NavigationControl.ResetBearing&quot;:&quot;Reset bearing to north&quot;,&quot;NavigationControl.ZoomIn&quot;:&quot;Zoom in&quot;,&quot;NavigationControl.ZoomOut&quot;:&quot;Zoom out&quot;,&quot;ScaleControl.Feet&quot;:&quot;ft&quot;,&quot;ScaleControl.Meters&quot;:&quot;m&quot;,&quot;ScaleControl.Kilometers&quot;:&quot;km&quot;,&quot;ScaleControl.Miles&quot;:&quot;mi&quot;,&quot;ScaleControl.NauticalMiles&quot;:&quot;nm&quot;},_i=t.window.HTMLImageElement,wi=t.window.HTMLElement,Ti=t.window.ImageBitmap,ki={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:&quot;sans-serif&quot;,transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Mi=function(n){function i(e){var r=this;if(null!=(e=t.extend({},ki,e)).minZoom&amp;&amp;null!=e.maxZoom&amp;&amp;e.minZoom&gt;e.maxZoom)throw new Error(&quot;maxZoom must be greater than or equal to minZoom&quot;);if(null!=e.minPitch&amp;&amp;null!=e.maxPitch&amp;&amp;e.minPitch&gt;e.maxPitch)throw new Error(&quot;maxPitch must be greater than or equal to minPitch&quot;);if(null!=e.minPitch&amp;&amp;e.minPitch&lt;0)throw new Error(&quot;minPitch must be greater than or equal to 0&quot;);if(null!=e.maxPitch&amp;&amp;e.maxPitch&gt;60)throw new Error(&quot;maxPitch must be less than or equal to 60&quot;);var i=new wn(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies);if(n.call(this,i,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new xi,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},bi,e.locale),this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken),&quot;string&quot;==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error(&quot;Container '&quot;+e.container+&quot;' not found.&quot;)}else{if(!(e.container instanceof wi))throw new Error(&quot;Invalid type: 'container' must be a String or HTMLElement.&quot;);this._container=e.container}if(e.maxBounds&amp;&amp;this.setMaxBounds(e.maxBounds),t.bindAll([&quot;_onWindowOnline&quot;,&quot;_onWindowResize&quot;,&quot;_contextLost&quot;,&quot;_contextRestored&quot;],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error(&quot;Failed to initialize WebGL.&quot;);this.on(&quot;move&quot;,(function(){return r._update(!1)})),this.on(&quot;moveend&quot;,(function(){return r._update(!1)})),this.on(&quot;zoom&quot;,(function(){return r._update(!0)})),void 0!==t.window&amp;&amp;(t.window.addEventListener(&quot;online&quot;,this._onWindowOnline,!1),t.window.addEventListener(&quot;resize&quot;,this._onWindowResize,!1)),this.handlers=new gi(this,e),this._hash=e.hash&amp;&amp;new kn(&quot;string&quot;==typeof e.hash&amp;&amp;e.hash||void 0).addTo(this),this._hash&amp;&amp;this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&amp;&amp;(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&amp;&amp;this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&amp;&amp;this.addControl(new vi({customAttribution:e.customAttribution})),this.addControl(new yi,e.logoPosition),this.on(&quot;style.load&quot;,(function(){r.transform.unmodified&amp;&amp;r.jumpTo(r.style.stylesheet)})),this.on(&quot;data&quot;,(function(e){r._update(&quot;style&quot;===e.dataType),r.fire(new t.Event(e.dataType+&quot;data&quot;,e))})),this.on(&quot;dataloading&quot;,(function(e){r.fire(new t.Event(e.dataType+&quot;dataloading&quot;,e))}))}n&amp;&amp;(i.__proto__=n),(i.prototype=Object.create(n&amp;&amp;n.prototype)).constructor=i;var a={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return i.prototype._getMapId=function(){return this._mapId},i.prototype.addControl=function(e,r){if(void 0===r&amp;&amp;e.getDefaultPosition&amp;&amp;(r=e.getDefaultPosition()),void 0===r&amp;&amp;(r=&quot;top-right&quot;),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.&quot;)));var n=e.onAdd(this);this._controls.push(e);var i=this._controlPositions[r];return-1!==r.indexOf(&quot;bottom&quot;)?i.insertBefore(n,i.firstChild):i.appendChild(n),this},i.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.&quot;)));var r=this._controls.indexOf(e);return r&gt;-1&amp;&amp;this._controls.splice(r,1),e.onRemove(this),this},i.prototype.resize=function(e){var r=this._containerDimensions(),n=r[0],i=r[1];this._resizeCanvas(n,i),this.transform.resize(n,i),this.painter.resize(n,i);var a=!this._moving;return a&amp;&amp;(this.stop(),this.fire(new t.Event(&quot;movestart&quot;,e)).fire(new t.Event(&quot;move&quot;,e))),this.fire(new t.Event(&quot;resize&quot;,e)),a&amp;&amp;this.fire(new t.Event(&quot;moveend&quot;,e)),this},i.prototype.getBounds=function(){return this.transform.getBounds()},i.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},i.prototype.setMaxBounds=function(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()},i.prototype.setMinZoom=function(t){if((t=null==t?-2:t)&gt;=-2&amp;&amp;t&lt;=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()&lt;t&amp;&amp;this.setZoom(t),this;throw new Error(&quot;minZoom must be between -2 and the current maxZoom, inclusive&quot;)},i.prototype.getMinZoom=function(){return this.transform.minZoom},i.prototype.setMaxZoom=function(t){if((t=null==t?22:t)&gt;=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()&gt;t&amp;&amp;this.setZoom(t),this;throw new Error(&quot;maxZoom must be greater than the current minZoom&quot;)},i.prototype.getMaxZoom=function(){return this.transform.maxZoom},i.prototype.setMinPitch=function(t){if((t=null==t?0:t)&lt;0)throw new Error(&quot;minPitch must be greater than or equal to 0&quot;);if(t&gt;=0&amp;&amp;t&lt;=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()&lt;t&amp;&amp;this.setPitch(t),this;throw new Error(&quot;minPitch must be between 0 and the current maxPitch, inclusive&quot;)},i.prototype.getMinPitch=function(){return this.transform.minPitch},i.prototype.setMaxPitch=function(t){if((t=null==t?60:t)&gt;60)throw new Error(&quot;maxPitch must be less than or equal to 60&quot;);if(t&gt;=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()&gt;t&amp;&amp;this.setPitch(t),this;throw new Error(&quot;maxPitch must be greater than the current minPitch&quot;)},i.prototype.getMaxPitch=function(){return this.transform.maxPitch},i.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},i.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},i.prototype.project=function(e){return this.transform.locationPoint(t.LngLat.convert(e))},i.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},i.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},i.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},i.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},i.prototype._createDelegatedListener=function(t,e,r){var n,i=this;if(&quot;mouseenter&quot;===t||&quot;mouseover&quot;===t){var a=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){var o=i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[];o.length?a||(a=!0,r.call(i,new zn(t,i,n.originalEvent,{features:o}))):a=!1},mouseout:function(){a=!1}}}}if(&quot;mouseleave&quot;===t||&quot;mouseout&quot;===t){var o=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){(i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[]).length?o=!0:o&amp;&amp;(o=!1,r.call(i,new zn(t,i,n.originalEvent)))},mouseout:function(e){o&amp;&amp;(o=!1,r.call(i,new zn(t,i,e.originalEvent)))}}}}return{layer:e,listener:r,delegates:(n={},n[t]=function(t){var n=i.getLayer(e)?i.queryRenderedFeatures(t.point,{layers:[e]}):[];n.length&amp;&amp;(t.features=n,r.call(i,t),delete t.features)},n)}},i.prototype.on=function(t,e,r){if(void 0===r)return n.prototype.on.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(i),i.delegates)this.on(a,i.delegates[a]);return this},i.prototype.once=function(t,e,r){if(void 0===r)return n.prototype.once.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in i.delegates)this.once(a,i.delegates[a]);return this},i.prototype.off=function(t,e,r){var i=this;return void 0===r?n.prototype.off.call(this,t,e):(this._delegatedListeners&amp;&amp;this._delegatedListeners[t]&amp;&amp;function(n){for(var a=n[t],o=0;o&lt;a.length;o++){var s=a[o];if(s.layer===e&amp;&amp;s.listener===r){for(var l in s.delegates)i.off(l,s.delegates[l]);return a.splice(o,1),i}}}(this._delegatedListeners),this)},i.prototype.queryRenderedFeatures=function(e,r){if(!this.style)return[];var n;if(void 0!==r||void 0===e||e instanceof t.Point||Array.isArray(e)||(r=e,e=void 0),r=r||{},(e=e||[[0,0],[this.transform.width,this.transform.height]])instanceof t.Point||&quot;number&quot;==typeof e[0])n=[t.Point.convert(e)];else{var i=t.Point.convert(e[0]),a=t.Point.convert(e[1]);n=[i,new t.Point(a.x,i.y),a,new t.Point(i.x,a.y),i]}return this.style.queryRenderedFeatures(n,r,this.transform)},i.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},i.prototype.setStyle=function(e,r){return!1!==(r=t.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},r)).diff&amp;&amp;r.localIdeographFontFamily===this._localIdeographFontFamily&amp;&amp;this.style&amp;&amp;e?(this._diffStyle(e,r),this):(this._localIdeographFontFamily=r.localIdeographFontFamily,this._updateStyle(e,r))},i.prototype._getUIString=function(t){var e=this._locale[t];if(null==e)throw new Error(&quot;Missing UI string '&quot;+t+&quot;'&quot;);return e},i.prototype._updateStyle=function(t,e){return this.style&amp;&amp;(this.style.setEventedParent(null),this.style._remove()),t?(this.style=new qe(this,e||{}),this.style.setEventedParent(this,{style:this.style}),&quot;string&quot;==typeof t?this.style.loadURL(t):this.style.loadJSON(t),this):(delete this.style,this)},i.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new qe(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},i.prototype._diffStyle=function(e,r){var n=this;if(&quot;string&quot;==typeof e){var i=this._requestManager.normalizeStyleURL(e),a=this._requestManager.transformRequest(i,t.ResourceType.Style);t.getJSON(a,(function(e,i){e?n.fire(new t.ErrorEvent(e)):i&amp;&amp;n._updateDiff(i,r)}))}else&quot;object&quot;==typeof e&amp;&amp;this._updateDiff(e,r)},i.prototype._updateDiff=function(e,r){try{this.style.setState(e)&amp;&amp;this._update(!0)}catch(n){t.warnOnce(&quot;Unable to perform style diff: &quot;+(n.message||n.error||n)+&quot;.  Rebuilding the style from scratch.&quot;),this._updateStyle(e,r)}},i.prototype.getStyle=function(){if(this.style)return this.style.serialize()},i.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():t.warnOnce(&quot;There is no style added to the map.&quot;)},i.prototype.addSource=function(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)},i.prototype.isSourceLoaded=function(e){var r=this.style&amp;&amp;this.style.sourceCaches[e];if(void 0!==r)return r.loaded();this.fire(new t.ErrorEvent(new Error(&quot;There is no source with ID '&quot;+e+&quot;'&quot;)))},i.prototype.areTilesLoaded=function(){var t=this.style&amp;&amp;this.style.sourceCaches;for(var e in t){var r=t[e]._tiles;for(var n in r){var i=r[n];if(&quot;loaded&quot;!==i.state&amp;&amp;&quot;errored&quot;!==i.state)return!1}}return!0},i.prototype.addSourceType=function(t,e,r){return this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,r)},i.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0)},i.prototype.getSource=function(t){return this.style.getSource(t)},i.prototype.addImage=function(e,r,n){void 0===n&amp;&amp;(n={});var i=n.pixelRatio;void 0===i&amp;&amp;(i=1);var a=n.sdf;void 0===a&amp;&amp;(a=!1);var o=n.stretchX,s=n.stretchY,l=n.content;if(this._lazyInitEmptyStyle(),r instanceof _i||Ti&amp;&amp;r instanceof Ti){var c=t.browser.getImageData(r);this.style.addImage(e,{data:new t.RGBAImage({width:c.width,height:c.height},c.data),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:0})}else{if(void 0===r.width||void 0===r.height)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`&quot;)));var u=r;this.style.addImage(e,{data:new t.RGBAImage({width:r.width,height:r.height},new Uint8Array(r.data)),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:0,userImage:u}),u.onAdd&amp;&amp;u.onAdd(this,e)}},i.prototype.updateImage=function(e,r){var n=this.style.getImage(e);if(!n)return this.fire(new t.ErrorEvent(new Error(&quot;The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.&quot;)));var i=r instanceof _i||Ti&amp;&amp;r instanceof Ti?t.browser.getImageData(r):r,a=i.width,o=i.height,s=i.data;return void 0===a||void 0===o?this.fire(new t.ErrorEvent(new Error(&quot;Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`&quot;))):a!==n.data.width||o!==n.data.height?this.fire(new t.ErrorEvent(new Error(&quot;The width and height of the updated image must be that same as the previous version of the image&quot;))):(n.data.replace(s,!(r instanceof _i||Ti&amp;&amp;r instanceof Ti)),void this.style.updateImage(e,n))},i.prototype.hasImage=function(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error(&quot;Missing required image id&quot;))),!1)},i.prototype.removeImage=function(t){this.style.removeImage(t)},i.prototype.loadImage=function(e,r){t.getImage(this._requestManager.transformRequest(e,t.ResourceType.Image),r)},i.prototype.listImages=function(){return this.style.listImages()},i.prototype.addLayer=function(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)},i.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0)},i.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0)},i.prototype.getLayer=function(t){return this.style.getLayer(t)},i.prototype.setLayerZoomRange=function(t,e,r){return this.style.setLayerZoomRange(t,e,r),this._update(!0)},i.prototype.setFilter=function(t,e,r){return void 0===r&amp;&amp;(r={}),this.style.setFilter(t,e,r),this._update(!0)},i.prototype.getFilter=function(t){return this.style.getFilter(t)},i.prototype.setPaintProperty=function(t,e,r,n){return void 0===n&amp;&amp;(n={}),this.style.setPaintProperty(t,e,r,n),this._update(!0)},i.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},i.prototype.setLayoutProperty=function(t,e,r,n){return void 0===n&amp;&amp;(n={}),this.style.setLayoutProperty(t,e,r,n),this._update(!0)},i.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},i.prototype.setLight=function(t,e){return void 0===e&amp;&amp;(e={}),this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)},i.prototype.getLight=function(){return this.style.getLight()},i.prototype.setFeatureState=function(t,e){return this.style.setFeatureState(t,e),this._update()},i.prototype.removeFeatureState=function(t,e){return this.style.removeFeatureState(t,e),this._update()},i.prototype.getFeatureState=function(t){return this.style.getFeatureState(t)},i.prototype.getContainer=function(){return this._container},i.prototype.getCanvasContainer=function(){return this._canvasContainer},i.prototype.getCanvas=function(){return this._canvas},i.prototype._containerDimensions=function(){var t=0,e=0;return this._container&amp;&amp;(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]},i.prototype._detectMissingCSS=function(){&quot;rgb(250, 128, 114)&quot;!==t.window.getComputedStyle(this._missingCSSCanary).getPropertyValue(&quot;background-color&quot;)&amp;&amp;t.warnOnce(&quot;This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.&quot;)},i.prototype._setupContainer=function(){var t=this._container;t.classList.add(&quot;mapboxgl-map&quot;),(this._missingCSSCanary=r.create(&quot;div&quot;,&quot;mapboxgl-canary&quot;,t)).style.visibility=&quot;hidden&quot;,this._detectMissingCSS();var e=this._canvasContainer=r.create(&quot;div&quot;,&quot;mapboxgl-canvas-container&quot;,t);this._interactive&amp;&amp;e.classList.add(&quot;mapboxgl-interactive&quot;),this._canvas=r.create(&quot;canvas&quot;,&quot;mapboxgl-canvas&quot;,e),this._canvas.addEventListener(&quot;webglcontextlost&quot;,this._contextLost,!1),this._canvas.addEventListener(&quot;webglcontextrestored&quot;,this._contextRestored,!1),this._canvas.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),this._canvas.setAttribute(&quot;aria-label&quot;,&quot;Map&quot;);var n=this._containerDimensions();this._resizeCanvas(n[0],n[1]);var i=this._controlContainer=r.create(&quot;div&quot;,&quot;mapboxgl-control-container&quot;,t),a=this._controlPositions={};[&quot;top-left&quot;,&quot;top-right&quot;,&quot;bottom-left&quot;,&quot;bottom-right&quot;].forEach((function(t){a[t]=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl-&quot;+t,i)}))},i.prototype._resizeCanvas=function(e,r){var n=t.browser.devicePixelRatio||1;this._canvas.width=n*e,this._canvas.height=n*r,this._canvas.style.width=e+&quot;px&quot;,this._canvas.style.height=r+&quot;px&quot;},i.prototype._setupPainter=function(){var r=t.extend({},e.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),n=this._canvas.getContext(&quot;webgl&quot;,r)||this._canvas.getContext(&quot;experimental-webgl&quot;,r);n?(this.painter=new yn(n,this.transform),t.webpSupported.testSupport(n)):this.fire(new t.ErrorEvent(new Error(&quot;Failed to initialize WebGL&quot;)))},i.prototype._contextLost=function(e){e.preventDefault(),this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this.fire(new t.Event(&quot;webglcontextlost&quot;,{originalEvent:e}))},i.prototype._contextRestored=function(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event(&quot;webglcontextrestored&quot;,{originalEvent:e}))},i.prototype.loaded=function(){return!this._styleDirty&amp;&amp;!this._sourcesDirty&amp;&amp;!!this.style&amp;&amp;this.style.loaded()},i.prototype._update=function(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this},i.prototype._requestRenderFrame=function(t){return this._update(),this._renderTaskQueue.add(t)},i.prototype._cancelRenderFrame=function(t){this._renderTaskQueue.remove(t)},i.prototype._render=function(e){var r,n=this,i=0,a=this.painter.context.extTimerQuery;if(this.listens(&quot;gpu-timing-frame&quot;)&amp;&amp;(r=a.createQueryEXT(),a.beginQueryEXT(a.TIME_ELAPSED_EXT,r),i=t.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),!this._removed){var o=!1;if(this.style&amp;&amp;this._styleDirty){this._styleDirty=!1;var s=this.transform.zoom,l=t.browser.now();this.style.zoomHistory.update(s,l);var c=new t.EvaluationParameters(s,{now:l,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),u=c.crossFadingFactor();1===u&amp;&amp;u===this._crossFadingFactor||(o=!0,this._crossFadingFactor=u),this.style.update(c)}if(this.style&amp;&amp;this._sourcesDirty&amp;&amp;(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&amp;&amp;this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens(&quot;gpu-timing-layer&quot;)}),this.fire(new t.Event(&quot;render&quot;)),this.loaded()&amp;&amp;!this._loaded&amp;&amp;(this._loaded=!0,this.fire(new t.Event(&quot;load&quot;))),this.style&amp;&amp;(this.style.hasTransitions()||o)&amp;&amp;(this._styleDirty=!0),this.style&amp;&amp;!this._placementDirty&amp;&amp;this.style._releaseSymbolFadeTiles(),this.listens(&quot;gpu-timing-frame&quot;)){var f=t.browser.now()-i;a.endQueryEXT(a.TIME_ELAPSED_EXT,r),setTimeout((function(){var e=a.getQueryObjectEXT(r,a.QUERY_RESULT_EXT)/1e6;a.deleteQueryEXT(r),n.fire(new t.Event(&quot;gpu-timing-frame&quot;,{cpuTime:f,gpuTime:e}))}),50)}if(this.listens(&quot;gpu-timing-layer&quot;)){var h=this.painter.collectGpuTimers();setTimeout((function(){var e=n.painter.queryGpuTimers(h);n.fire(new t.Event(&quot;gpu-timing-layer&quot;,{layerTimes:e}))}),50)}return this._sourcesDirty||this._styleDirty||this._placementDirty||this._repaint?this.triggerRepaint():!this.isMoving()&amp;&amp;this.loaded()&amp;&amp;(this._fullyLoaded||(this._fullyLoaded=!0),this.fire(new t.Event(&quot;idle&quot;))),this}},i.prototype.remove=function(){this._hash&amp;&amp;this._hash.remove();for(var e=0,r=this._controls;e&lt;r.length;e+=1)r[e].onRemove(this);this._controls=[],this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),void 0!==t.window&amp;&amp;(t.window.removeEventListener(&quot;resize&quot;,this._onWindowResize,!1),t.window.removeEventListener(&quot;online&quot;,this._onWindowOnline,!1));var n=this.painter.context.gl.getExtension(&quot;WEBGL_lose_context&quot;);n&amp;&amp;n.loseContext(),Ai(this._canvasContainer),Ai(this._controlContainer),Ai(this._missingCSSCanary),this._container.classList.remove(&quot;mapboxgl-map&quot;),this._removed=!0,this.fire(new t.Event(&quot;remove&quot;))},i.prototype.triggerRepaint=function(){var e=this;this.style&amp;&amp;!this._frame&amp;&amp;(this._frame=t.browser.frame((function(t){e._frame=null,e._render(t)})))},i.prototype._onWindowOnline=function(){this._update()},i.prototype._onWindowResize=function(t){this._trackResize&amp;&amp;this.resize({originalEvent:t})._update()},a.showTileBoundaries.get=function(){return!!this._showTileBoundaries},a.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&amp;&amp;(this._showTileBoundaries=t,this._update())},a.showPadding.get=function(){return!!this._showPadding},a.showPadding.set=function(t){this._showPadding!==t&amp;&amp;(this._showPadding=t,this._update())},a.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},a.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&amp;&amp;(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())},a.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},a.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&amp;&amp;(this._showOverdrawInspector=t,this._update())},a.repaint.get=function(){return!!this._repaint},a.repaint.set=function(t){this._repaint!==t&amp;&amp;(this._repaint=t,this.triggerRepaint())},a.vertices.get=function(){return!!this._vertices},a.vertices.set=function(t){this._vertices=t,this._update()},i.prototype._setCacheLimits=function(e,r){t.setCacheLimits(e,r)},a.version.get=function(){return t.version},Object.defineProperties(i.prototype,a),i}(mi);function Ai(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)}var Si={showCompass:!0,showZoom:!0,visualizePitch:!1},Ei=function(e){var n=this;this.options=t.extend({},Si,e),this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),this._container.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault()})),this.options.showZoom&amp;&amp;(t.bindAll([&quot;_setButtonTitle&quot;,&quot;_updateZoomButtons&quot;],this),this._zoomInButton=this._createButton(&quot;mapboxgl-ctrl-zoom-in&quot;,(function(t){return n._map.zoomIn({},{originalEvent:t})})),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._zoomInButton).setAttribute(&quot;aria-hidden&quot;,!0),this._zoomOutButton=this._createButton(&quot;mapboxgl-ctrl-zoom-out&quot;,(function(t){return n._map.zoomOut({},{originalEvent:t})})),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._zoomOutButton).setAttribute(&quot;aria-hidden&quot;,!0)),this.options.showCompass&amp;&amp;(t.bindAll([&quot;_rotateCompassArrow&quot;],this),this._compass=this._createButton(&quot;mapboxgl-ctrl-compass&quot;,(function(t){n.options.visualizePitch?n._map.resetNorthPitch({},{originalEvent:t}):n._map.resetNorth({},{originalEvent:t})})),this._compassIcon=r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._compass),this._compassIcon.setAttribute(&quot;aria-hidden&quot;,!0))};Ei.prototype._updateZoomButtons=function(){var t=this._map.getZoom();this._zoomInButton.disabled=t===this._map.getMaxZoom(),this._zoomOutButton.disabled=t===this._map.getMinZoom()},Ei.prototype._rotateCompassArrow=function(){var t=this.options.visualizePitch?&quot;scale(&quot;+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+&quot;) rotateX(&quot;+this._map.transform.pitch+&quot;deg) rotateZ(&quot;+this._map.transform.angle*(180/Math.PI)+&quot;deg)&quot;:&quot;rotate(&quot;+this._map.transform.angle*(180/Math.PI)+&quot;deg)&quot;;this._compassIcon.style.transform=t},Ei.prototype.onAdd=function(t){return this._map=t,this.options.showZoom&amp;&amp;(this._setButtonTitle(this._zoomInButton,&quot;ZoomIn&quot;),this._setButtonTitle(this._zoomOutButton,&quot;ZoomOut&quot;),this._map.on(&quot;zoom&quot;,this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&amp;&amp;(this._setButtonTitle(this._compass,&quot;ResetBearing&quot;),this.options.visualizePitch&amp;&amp;this._map.on(&quot;pitch&quot;,this._rotateCompassArrow),this._map.on(&quot;rotate&quot;,this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Ci(this._map,this._compass,this.options.visualizePitch)),this._container},Ei.prototype.onRemove=function(){r.remove(this._container),this.options.showZoom&amp;&amp;this._map.off(&quot;zoom&quot;,this._updateZoomButtons),this.options.showCompass&amp;&amp;(this.options.visualizePitch&amp;&amp;this._map.off(&quot;pitch&quot;,this._rotateCompassArrow),this._map.off(&quot;rotate&quot;,this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map},Ei.prototype._createButton=function(t,e){var n=r.create(&quot;button&quot;,t,this._container);return n.type=&quot;button&quot;,n.addEventListener(&quot;click&quot;,e),n},Ei.prototype._setButtonTitle=function(t,e){var r=this._map._getUIString(&quot;NavigationControl.&quot;+e);t.title=r,t.setAttribute(&quot;aria-label&quot;,r)};var Ci=function(e,n,i){void 0===i&amp;&amp;(i=!1),this._clickTolerance=10,this.element=n,this.mouseRotate=new Gn({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,i&amp;&amp;(this.mousePitch=new Yn({clickTolerance:e.dragRotate._mousePitch._clickTolerance})),t.bindAll([&quot;mousedown&quot;,&quot;mousemove&quot;,&quot;mouseup&quot;,&quot;touchstart&quot;,&quot;touchmove&quot;,&quot;touchend&quot;,&quot;reset&quot;],this),r.addEventListener(n,&quot;mousedown&quot;,this.mousedown),r.addEventListener(n,&quot;touchstart&quot;,this.touchstart,{passive:!1}),r.addEventListener(n,&quot;touchmove&quot;,this.touchmove),r.addEventListener(n,&quot;touchend&quot;,this.touchend),r.addEventListener(n,&quot;touchcancel&quot;,this.reset)};function Li(e,r,n){if(e=new t.LngLat(e.lng,e.lat),r){var i=new t.LngLat(e.lng-360,e.lat),a=new t.LngLat(e.lng+360,e.lat),o=n.locationPoint(e).distSqr(r);n.locationPoint(i).distSqr(r)&lt;o?e=i:n.locationPoint(a).distSqr(r)&lt;o&amp;&amp;(e=a)}for(;Math.abs(e.lng-n.center.lng)&gt;180;){var s=n.locationPoint(e);if(s.x&gt;=0&amp;&amp;s.y&gt;=0&amp;&amp;s.x&lt;=n.width&amp;&amp;s.y&lt;=n.height)break;e.lng&gt;n.center.lng?e.lng-=360:e.lng+=360}return e}Ci.prototype.down=function(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&amp;&amp;this.mousePitch.mousedown(t,e),r.disableDrag()},Ci.prototype.move=function(t,e){var r=this.map,n=this.mouseRotate.mousemoveWindow(t,e);if(n&amp;&amp;n.bearingDelta&amp;&amp;r.setBearing(r.getBearing()+n.bearingDelta),this.mousePitch){var i=this.mousePitch.mousemoveWindow(t,e);i&amp;&amp;i.pitchDelta&amp;&amp;r.setPitch(r.getPitch()+i.pitchDelta)}},Ci.prototype.off=function(){var t=this.element;r.removeEventListener(t,&quot;mousedown&quot;,this.mousedown),r.removeEventListener(t,&quot;touchstart&quot;,this.touchstart,{passive:!1}),r.removeEventListener(t,&quot;touchmove&quot;,this.touchmove),r.removeEventListener(t,&quot;touchend&quot;,this.touchend),r.removeEventListener(t,&quot;touchcancel&quot;,this.reset),this.offTemp()},Ci.prototype.offTemp=function(){r.enableDrag(),r.removeEventListener(t.window,&quot;mousemove&quot;,this.mousemove),r.removeEventListener(t.window,&quot;mouseup&quot;,this.mouseup)},Ci.prototype.mousedown=function(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:function(){return e.preventDefault()}}),r.mousePos(this.element,e)),r.addEventListener(t.window,&quot;mousemove&quot;,this.mousemove),r.addEventListener(t.window,&quot;mouseup&quot;,this.mouseup)},Ci.prototype.mousemove=function(t){this.move(t,r.mousePos(this.element,t))},Ci.prototype.mouseup=function(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&amp;&amp;this.mousePitch.mouseupWindow(t),this.offTemp()},Ci.prototype.touchstart=function(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.down({type:&quot;mousedown&quot;,button:0,ctrlKey:!0,preventDefault:function(){return t.preventDefault()}},this._startPos))},Ci.prototype.touchmove=function(t){1!==t.targetTouches.length?this.reset():(this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:function(){return t.preventDefault()}},this._lastPos))},Ci.prototype.touchend=function(t){0===t.targetTouches.length&amp;&amp;this._startPos&amp;&amp;this._lastPos&amp;&amp;this._startPos.dist(this._lastPos)&lt;this._clickTolerance&amp;&amp;this.element.click(),this.reset()},Ci.prototype.reset=function(){this.mouseRotate.reset(),this.mousePitch&amp;&amp;this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()};var Ii={center:&quot;translate(-50%,-50%)&quot;,top:&quot;translate(-50%,0)&quot;,&quot;top-left&quot;:&quot;translate(0,0)&quot;,&quot;top-right&quot;:&quot;translate(-100%,0)&quot;,bottom:&quot;translate(-50%,-100%)&quot;,&quot;bottom-left&quot;:&quot;translate(0,-100%)&quot;,&quot;bottom-right&quot;:&quot;translate(-100%,-100%)&quot;,left:&quot;translate(0,-50%)&quot;,right:&quot;translate(-100%,-50%)&quot;};function Pi(t,e,r){var n=t.classList;for(var i in Ii)n.remove(&quot;mapboxgl-&quot;+r+&quot;-anchor-&quot;+i);n.add(&quot;mapboxgl-&quot;+r+&quot;-anchor-&quot;+e)}var zi,Oi=function(e){function n(n,i){var a=this;if(e.call(this),(n instanceof t.window.HTMLElement||i)&amp;&amp;(n=t.extend({element:n},i)),t.bindAll([&quot;_update&quot;,&quot;_onMove&quot;,&quot;_onUp&quot;,&quot;_addDragHandler&quot;,&quot;_onMapClick&quot;,&quot;_onKeyPress&quot;],this),this._anchor=n&amp;&amp;n.anchor||&quot;center&quot;,this._color=n&amp;&amp;n.color||&quot;#3FB1CE&quot;,this._draggable=n&amp;&amp;n.draggable||!1,this._state=&quot;inactive&quot;,this._rotation=n&amp;&amp;n.rotation||0,this._rotationAlignment=n&amp;&amp;n.rotationAlignment||&quot;auto&quot;,this._pitchAlignment=n&amp;&amp;n.pitchAlignment&amp;&amp;&quot;auto&quot;!==n.pitchAlignment?n.pitchAlignment:this._rotationAlignment,n&amp;&amp;n.element)this._element=n.element,this._offset=t.Point.convert(n&amp;&amp;n.offset||[0,0]);else{this._defaultMarker=!0,this._element=r.create(&quot;div&quot;),this._element.setAttribute(&quot;aria-label&quot;,&quot;Map marker&quot;);var o=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);o.setAttributeNS(null,&quot;display&quot;,&quot;block&quot;),o.setAttributeNS(null,&quot;height&quot;,&quot;41px&quot;),o.setAttributeNS(null,&quot;width&quot;,&quot;27px&quot;),o.setAttributeNS(null,&quot;viewBox&quot;,&quot;0 0 27 41&quot;);var s=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);s.setAttributeNS(null,&quot;stroke&quot;,&quot;none&quot;),s.setAttributeNS(null,&quot;stroke-width&quot;,&quot;1&quot;),s.setAttributeNS(null,&quot;fill&quot;,&quot;none&quot;),s.setAttributeNS(null,&quot;fill-rule&quot;,&quot;evenodd&quot;);var l=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);l.setAttributeNS(null,&quot;fill-rule&quot;,&quot;nonzero&quot;);var c=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);c.setAttributeNS(null,&quot;transform&quot;,&quot;translate(3.0, 29.0)&quot;),c.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;);for(var u=0,f=[{rx:&quot;10.5&quot;,ry:&quot;5.25002273&quot;},{rx:&quot;10.5&quot;,ry:&quot;5.25002273&quot;},{rx:&quot;9.5&quot;,ry:&quot;4.77275007&quot;},{rx:&quot;8.5&quot;,ry:&quot;4.29549936&quot;},{rx:&quot;7.5&quot;,ry:&quot;3.81822308&quot;},{rx:&quot;6.5&quot;,ry:&quot;3.34094679&quot;},{rx:&quot;5.5&quot;,ry:&quot;2.86367051&quot;},{rx:&quot;4.5&quot;,ry:&quot;2.38636864&quot;}];u&lt;f.length;u+=1){var h=f[u],p=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;ellipse&quot;);p.setAttributeNS(null,&quot;opacity&quot;,&quot;0.04&quot;),p.setAttributeNS(null,&quot;cx&quot;,&quot;10.5&quot;),p.setAttributeNS(null,&quot;cy&quot;,&quot;5.80029008&quot;),p.setAttributeNS(null,&quot;rx&quot;,h.rx),p.setAttributeNS(null,&quot;ry&quot;,h.ry),c.appendChild(p)}var d=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);d.setAttributeNS(null,&quot;fill&quot;,this._color);var g=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;path&quot;);g.setAttributeNS(null,&quot;d&quot;,&quot;M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z&quot;),d.appendChild(g);var m=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);m.setAttributeNS(null,&quot;opacity&quot;,&quot;0.25&quot;),m.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;);var v=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;path&quot;);v.setAttributeNS(null,&quot;d&quot;,&quot;M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z&quot;),m.appendChild(v);var y=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);y.setAttributeNS(null,&quot;transform&quot;,&quot;translate(6.0, 7.0)&quot;),y.setAttributeNS(null,&quot;fill&quot;,&quot;#FFFFFF&quot;);var x=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);x.setAttributeNS(null,&quot;transform&quot;,&quot;translate(8.0, 8.0)&quot;);var b=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;circle&quot;);b.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;),b.setAttributeNS(null,&quot;opacity&quot;,&quot;0.25&quot;),b.setAttributeNS(null,&quot;cx&quot;,&quot;5.5&quot;),b.setAttributeNS(null,&quot;cy&quot;,&quot;5.5&quot;),b.setAttributeNS(null,&quot;r&quot;,&quot;5.4999962&quot;);var _=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;circle&quot;);_.setAttributeNS(null,&quot;fill&quot;,&quot;#FFFFFF&quot;),_.setAttributeNS(null,&quot;cx&quot;,&quot;5.5&quot;),_.setAttributeNS(null,&quot;cy&quot;,&quot;5.5&quot;),_.setAttributeNS(null,&quot;r&quot;,&quot;5.4999962&quot;),x.appendChild(b),x.appendChild(_),l.appendChild(c),l.appendChild(d),l.appendChild(m),l.appendChild(y),l.appendChild(x),o.appendChild(l),this._element.appendChild(o),this._offset=t.Point.convert(n&amp;&amp;n.offset||[0,-14])}this._element.classList.add(&quot;mapboxgl-marker&quot;),this._element.addEventListener(&quot;dragstart&quot;,(function(t){t.preventDefault()})),this._element.addEventListener(&quot;mousedown&quot;,(function(t){t.preventDefault()})),this._element.addEventListener(&quot;focus&quot;,(function(){var t=a._map.getContainer();t.scrollTop=0,t.scrollLeft=0})),Pi(this._element,this._anchor,&quot;marker&quot;),this._popup=null}return e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n,n.prototype.addTo=function(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on(&quot;move&quot;,this._update),t.on(&quot;moveend&quot;,this._update),this.setDraggable(this._draggable),this._update(),this._map.on(&quot;click&quot;,this._onMapClick),this},n.prototype.remove=function(){return this._map&amp;&amp;(this._map.off(&quot;click&quot;,this._onMapClick),this._map.off(&quot;move&quot;,this._update),this._map.off(&quot;moveend&quot;,this._update),this._map.off(&quot;mousedown&quot;,this._addDragHandler),this._map.off(&quot;touchstart&quot;,this._addDragHandler),this._map.off(&quot;mouseup&quot;,this._onUp),this._map.off(&quot;touchend&quot;,this._onUp),this._map.off(&quot;mousemove&quot;,this._onMove),this._map.off(&quot;touchmove&quot;,this._onMove),delete this._map),r.remove(this._element),this._popup&amp;&amp;this._popup.remove(),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._popup&amp;&amp;this._popup.setLngLat(this._lngLat),this._update(),this},n.prototype.getElement=function(){return this._element},n.prototype.setPopup=function(t){if(this._popup&amp;&amp;(this._popup.remove(),this._popup=null,this._element.removeEventListener(&quot;keypress&quot;,this._onKeyPress),this._originalTabIndex||this._element.removeAttribute(&quot;tabindex&quot;)),t){if(!(&quot;offset&quot;in t.options)){var e=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],&quot;top-left&quot;:[0,0],&quot;top-right&quot;:[0,0],bottom:[0,-38.1],&quot;bottom-left&quot;:[e,-1*(24.6+e)],&quot;bottom-right&quot;:[-e,-1*(24.6+e)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._lngLat&amp;&amp;this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute(&quot;tabindex&quot;),this._originalTabIndex||this._element.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),this._element.addEventListener(&quot;keypress&quot;,this._onKeyPress)}return this},n.prototype._onKeyPress=function(t){var e=t.code,r=t.charCode||t.keyCode;&quot;Space&quot;!==e&amp;&amp;&quot;Enter&quot;!==e&amp;&amp;32!==r&amp;&amp;13!==r||this.togglePopup()},n.prototype._onMapClick=function(t){var e=t.originalEvent.target,r=this._element;this._popup&amp;&amp;(e===r||r.contains(e))&amp;&amp;this.togglePopup()},n.prototype.getPopup=function(){return this._popup},n.prototype.togglePopup=function(){var t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this},n.prototype._update=function(t){if(this._map){this._map.transform.renderWorldCopies&amp;&amp;(this._lngLat=Li(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);var e=&quot;&quot;;&quot;viewport&quot;===this._rotationAlignment||&quot;auto&quot;===this._rotationAlignment?e=&quot;rotateZ(&quot;+this._rotation+&quot;deg)&quot;:&quot;map&quot;===this._rotationAlignment&amp;&amp;(e=&quot;rotateZ(&quot;+(this._rotation-this._map.getBearing())+&quot;deg)&quot;);var n=&quot;&quot;;&quot;viewport&quot;===this._pitchAlignment||&quot;auto&quot;===this._pitchAlignment?n=&quot;rotateX(0deg)&quot;:&quot;map&quot;===this._pitchAlignment&amp;&amp;(n=&quot;rotateX(&quot;+this._map.getPitch()+&quot;deg)&quot;),t&amp;&amp;&quot;moveend&quot;!==t.type||(this._pos=this._pos.round()),r.setTransform(this._element,Ii[this._anchor]+&quot; translate(&quot;+this._pos.x+&quot;px, &quot;+this._pos.y+&quot;px) &quot;+n+&quot; &quot;+e)}},n.prototype.getOffset=function(){return this._offset},n.prototype.setOffset=function(e){return this._offset=t.Point.convert(e),this._update(),this},n.prototype._onMove=function(e){this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents=&quot;none&quot;,&quot;pending&quot;===this._state&amp;&amp;(this._state=&quot;active&quot;,this.fire(new t.Event(&quot;dragstart&quot;))),this.fire(new t.Event(&quot;drag&quot;))},n.prototype._onUp=function(){this._element.style.pointerEvents=&quot;auto&quot;,this._positionDelta=null,this._map.off(&quot;mousemove&quot;,this._onMove),this._map.off(&quot;touchmove&quot;,this._onMove),&quot;active&quot;===this._state&amp;&amp;this.fire(new t.Event(&quot;dragend&quot;)),this._state=&quot;inactive&quot;},n.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&amp;&amp;(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._state=&quot;pending&quot;,this._map.on(&quot;mousemove&quot;,this._onMove),this._map.on(&quot;touchmove&quot;,this._onMove),this._map.once(&quot;mouseup&quot;,this._onUp),this._map.once(&quot;touchend&quot;,this._onUp))},n.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&amp;&amp;(t?(this._map.on(&quot;mousedown&quot;,this._addDragHandler),this._map.on(&quot;touchstart&quot;,this._addDragHandler)):(this._map.off(&quot;mousedown&quot;,this._addDragHandler),this._map.off(&quot;touchstart&quot;,this._addDragHandler))),this},n.prototype.isDraggable=function(){return this._draggable},n.prototype.setRotation=function(t){return this._rotation=t||0,this._update(),this},n.prototype.getRotation=function(){return this._rotation},n.prototype.setRotationAlignment=function(t){return this._rotationAlignment=t||&quot;auto&quot;,this._update(),this},n.prototype.getRotationAlignment=function(){return this._rotationAlignment},n.prototype.setPitchAlignment=function(t){return this._pitchAlignment=t&amp;&amp;&quot;auto&quot;!==t?t:this._rotationAlignment,this._update(),this},n.prototype.getPitchAlignment=function(){return this._pitchAlignment},n}(t.Evented),Di={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Ri=0,Fi=!1,Bi=function(e){function n(r){e.call(this),this.options=t.extend({},Di,r),t.bindAll([&quot;_onSuccess&quot;,&quot;_onError&quot;,&quot;_onZoom&quot;,&quot;_finish&quot;,&quot;_setupUI&quot;,&quot;_updateCamera&quot;,&quot;_updateMarker&quot;],this)}return e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n,n.prototype.onAdd=function(e){var n;return this._map=e,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),n=this._setupUI,void 0!==zi?n(zi):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:&quot;geolocation&quot;}).then((function(t){n(zi=&quot;denied&quot;!==t.state)})):n(zi=!!t.window.navigator.geolocation),this._container},n.prototype.onRemove=function(){void 0!==this._geolocationWatchID&amp;&amp;(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&amp;&amp;this._userLocationDotMarker&amp;&amp;this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&amp;&amp;this._accuracyCircleMarker&amp;&amp;this._accuracyCircleMarker.remove(),r.remove(this._container),this._map.off(&quot;zoom&quot;,this._onZoom),this._map=void 0,Ri=0,Fi=!1},n.prototype._isOutOfMapMaxBounds=function(t){var e=this._map.getMaxBounds(),r=t.coords;return e&amp;&amp;(r.longitude&lt;e.getWest()||r.longitude&gt;e.getEast()||r.latitude&lt;e.getSouth()||r.latitude&gt;e.getNorth())},n.prototype._setErrorState=function(){switch(this._watchState){case&quot;WAITING_ACTIVE&quot;:this._watchState=&quot;ACTIVE_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;);break;case&quot;ACTIVE_LOCK&quot;:this._watchState=&quot;ACTIVE_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;);break;case&quot;BACKGROUND&quot;:this._watchState=&quot;BACKGROUND_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;)}},n.prototype._onSuccess=function(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event(&quot;outofmaxbounds&quot;,e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case&quot;WAITING_ACTIVE&quot;:case&quot;ACTIVE_LOCK&quot;:case&quot;ACTIVE_ERROR&quot;:this._watchState=&quot;ACTIVE_LOCK&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;BACKGROUND&quot;:case&quot;BACKGROUND_ERROR&quot;:this._watchState=&quot;BACKGROUND&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;)}this.options.showUserLocation&amp;&amp;&quot;OFF&quot;!==this._watchState&amp;&amp;this._updateMarker(e),this.options.trackUserLocation&amp;&amp;&quot;ACTIVE_LOCK&quot;!==this._watchState||this._updateCamera(e),this.options.showUserLocation&amp;&amp;this._dotElement.classList.remove(&quot;mapboxgl-user-location-dot-stale&quot;),this.fire(new t.Event(&quot;geolocate&quot;,e)),this._finish()}},n.prototype._updateCamera=function(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude),n=e.coords.accuracy,i=this._map.getBearing(),a=t.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(r.toBounds(n),a,{geolocateSource:!0})},n.prototype._updateMarker=function(e){if(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&amp;&amp;this.options.showAccuracyCircle&amp;&amp;this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},n.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),r=this._map.unproject([1,t]),n=e.distanceTo(r),i=Math.ceil(2*this._accuracy/n);this._circleElement.style.width=i+&quot;px&quot;,this._circleElement.style.height=i+&quot;px&quot;},n.prototype._onZoom=function(){this.options.showUserLocation&amp;&amp;this.options.showAccuracyCircle&amp;&amp;this._updateCircleRadius()},n.prototype._onError=function(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState=&quot;OFF&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.disabled=!0;var r=this._map._getUIString(&quot;GeolocateControl.LocationNotAvailable&quot;);this._geolocateButton.title=r,this._geolocateButton.setAttribute(&quot;aria-label&quot;,r),void 0!==this._geolocationWatchID&amp;&amp;this._clearWatch()}else{if(3===e.code&amp;&amp;Fi)return;this._setErrorState()}&quot;OFF&quot;!==this._watchState&amp;&amp;this.options.showUserLocation&amp;&amp;this._dotElement.classList.add(&quot;mapboxgl-user-location-dot-stale&quot;),this.fire(new t.Event(&quot;error&quot;,e)),this._finish()}},n.prototype._finish=function(){this._timeoutId&amp;&amp;clearTimeout(this._timeoutId),this._timeoutId=void 0},n.prototype._setupUI=function(e){var n=this;if(this._container.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault()})),this._geolocateButton=r.create(&quot;button&quot;,&quot;mapboxgl-ctrl-geolocate&quot;,this._container),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._geolocateButton).setAttribute(&quot;aria-hidden&quot;,!0),this._geolocateButton.type=&quot;button&quot;,!1===e){t.warnOnce(&quot;Geolocation support is not available so the GeolocateControl will be disabled.&quot;);var i=this._map._getUIString(&quot;GeolocateControl.LocationNotAvailable&quot;);this._geolocateButton.disabled=!0,this._geolocateButton.title=i,this._geolocateButton.setAttribute(&quot;aria-label&quot;,i)}else{var a=this._map._getUIString(&quot;GeolocateControl.FindMyLocation&quot;);this._geolocateButton.title=a,this._geolocateButton.setAttribute(&quot;aria-label&quot;,a)}this.options.trackUserLocation&amp;&amp;(this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;false&quot;),this._watchState=&quot;OFF&quot;),this.options.showUserLocation&amp;&amp;(this._dotElement=r.create(&quot;div&quot;,&quot;mapboxgl-user-location-dot&quot;),this._userLocationDotMarker=new Oi(this._dotElement),this._circleElement=r.create(&quot;div&quot;,&quot;mapboxgl-user-location-accuracy-circle&quot;),this._accuracyCircleMarker=new Oi({element:this._circleElement,pitchAlignment:&quot;map&quot;}),this.options.trackUserLocation&amp;&amp;(this._watchState=&quot;OFF&quot;),this._map.on(&quot;zoom&quot;,this._onZoom)),this._geolocateButton.addEventListener(&quot;click&quot;,this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&amp;&amp;this._map.on(&quot;movestart&quot;,(function(e){e.geolocateSource||&quot;ACTIVE_LOCK&quot;!==n._watchState||e.originalEvent&amp;&amp;&quot;resize&quot;===e.originalEvent.type||(n._watchState=&quot;BACKGROUND&quot;,n._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;),n._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),n.fire(new t.Event(&quot;trackuserlocationend&quot;)))}))},n.prototype.trigger=function(){if(!this._setup)return t.warnOnce(&quot;Geolocate control triggered before added to a map&quot;),!1;if(this.options.trackUserLocation){switch(this._watchState){case&quot;OFF&quot;:this._watchState=&quot;WAITING_ACTIVE&quot;,this.fire(new t.Event(&quot;trackuserlocationstart&quot;));break;case&quot;WAITING_ACTIVE&quot;:case&quot;ACTIVE_LOCK&quot;:case&quot;ACTIVE_ERROR&quot;:case&quot;BACKGROUND_ERROR&quot;:Ri--,Fi=!1,this._watchState=&quot;OFF&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this.fire(new t.Event(&quot;trackuserlocationend&quot;));break;case&quot;BACKGROUND&quot;:this._watchState=&quot;ACTIVE_LOCK&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._lastKnownPosition&amp;&amp;this._updateCamera(this._lastKnownPosition),this.fire(new t.Event(&quot;trackuserlocationstart&quot;))}switch(this._watchState){case&quot;WAITING_ACTIVE&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;ACTIVE_LOCK&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;ACTIVE_ERROR&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;);break;case&quot;BACKGROUND&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;);break;case&quot;BACKGROUND_ERROR&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background-error&quot;)}if(&quot;OFF&quot;===this._watchState&amp;&amp;void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var e;this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;true&quot;),++Ri&gt;1?(e={maximumAge:6e5,timeout:0},Fi=!0):(e=this.options.positionOptions,Fi=!1),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},n.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;false&quot;),this.options.showUserLocation&amp;&amp;this._updateMarker(null)},n}(t.Evented),Ni={maxWidth:100,unit:&quot;metric&quot;},ji=function(e){this.options=t.extend({},Ni,e),t.bindAll([&quot;_onMove&quot;,&quot;setUnit&quot;],this)};function Ui(t,e,r){var n=r&amp;&amp;r.maxWidth||100,i=t._container.clientHeight/2,a=t.unproject([0,i]),o=t.unproject([n,i]),s=a.distanceTo(o);if(r&amp;&amp;&quot;imperial&quot;===r.unit){var l=3.2808*s;l&gt;5280?Vi(e,n,l/5280,t._getUIString(&quot;ScaleControl.Miles&quot;)):Vi(e,n,l,t._getUIString(&quot;ScaleControl.Feet&quot;))}else r&amp;&amp;&quot;nautical&quot;===r.unit?Vi(e,n,s/1852,t._getUIString(&quot;ScaleControl.NauticalMiles&quot;)):s&gt;=1e3?Vi(e,n,s/1e3,t._getUIString(&quot;ScaleControl.Kilometers&quot;)):Vi(e,n,s,t._getUIString(&quot;ScaleControl.Meters&quot;))}function Vi(t,e,r,n){var i,a,o,s=(i=r,(a=Math.pow(10,(&quot;&quot;+Math.floor(i)).length-1))*(o=(o=i/a)&gt;=10?10:o&gt;=5?5:o&gt;=3?3:o&gt;=2?2:o&gt;=1?1:function(t){var e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(o)));t.style.width=e*(s/r)+&quot;px&quot;,t.innerHTML=s+&quot;&amp;nbsp;&quot;+n}ji.prototype.getDefaultPosition=function(){return&quot;bottom-left&quot;},ji.prototype._onMove=function(){Ui(this._map,this._container,this.options)},ji.prototype.onAdd=function(t){return this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-scale&quot;,t.getContainer()),this._map.on(&quot;move&quot;,this._onMove),this._onMove(),this._container},ji.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;move&quot;,this._onMove),this._map=void 0},ji.prototype.setUnit=function(t){this.options.unit=t,Ui(this._map,this._container,this.options)};var qi=function(e){this._fullscreen=!1,e&amp;&amp;e.container&amp;&amp;(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce(&quot;Full screen control 'container' must be a DOM element.&quot;)),t.bindAll([&quot;_onClickFullscreen&quot;,&quot;_changeIcon&quot;],this),&quot;onfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;fullscreenchange&quot;:&quot;onmozfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;mozfullscreenchange&quot;:&quot;onwebkitfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;webkitfullscreenchange&quot;:&quot;onmsfullscreenchange&quot;in t.window.document&amp;&amp;(this._fullscreenchange=&quot;MSFullscreenChange&quot;)};qi.prototype.onAdd=function(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display=&quot;none&quot;,t.warnOnce(&quot;This device does not support fullscreen mode.&quot;)),this._controlContainer},qi.prototype.onRemove=function(){r.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},qi.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},qi.prototype._setupUI=function(){var e=this._fullscreenButton=r.create(&quot;button&quot;,&quot;mapboxgl-ctrl-fullscreen&quot;,this._controlContainer);r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,e).setAttribute(&quot;aria-hidden&quot;,!0),e.type=&quot;button&quot;,this._updateTitle(),this._fullscreenButton.addEventListener(&quot;click&quot;,this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},qi.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute(&quot;aria-label&quot;,t),this._fullscreenButton.title=t},qi.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?&quot;FullscreenControl.Exit&quot;:&quot;FullscreenControl.Enter&quot;)},qi.prototype._isFullscreen=function(){return this._fullscreen},qi.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._container!==this._fullscreen&amp;&amp;(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle(&quot;mapboxgl-ctrl-shrink&quot;),this._fullscreenButton.classList.toggle(&quot;mapboxgl-ctrl-fullscreen&quot;),this._updateTitle())},qi.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&amp;&amp;t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&amp;&amp;this._container.webkitRequestFullscreen()};var Hi={closeButton:!0,closeOnClick:!0,className:&quot;&quot;,maxWidth:&quot;240px&quot;},Gi=function(e){function n(r){e.call(this),this.options=t.extend(Object.create(Hi),r),t.bindAll([&quot;_update&quot;,&quot;_onClose&quot;,&quot;remove&quot;,&quot;_onMouseMove&quot;,&quot;_onMouseUp&quot;,&quot;_onDrag&quot;],this)}return e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n,n.prototype.addTo=function(e){return this._map&amp;&amp;this.remove(),this._map=e,this.options.closeOnClick&amp;&amp;this._map.on(&quot;click&quot;,this._onClose),this.options.closeOnMove&amp;&amp;this._map.on(&quot;move&quot;,this._onClose),this._map.on(&quot;remove&quot;,this.remove),this._update(),this._trackPointer?(this._map.on(&quot;mousemove&quot;,this._onMouseMove),this._map.on(&quot;mouseup&quot;,this._onMouseUp),this._container&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.add(&quot;mapboxgl-track-pointer&quot;)):this._map.on(&quot;move&quot;,this._update),this.fire(new t.Event(&quot;open&quot;)),this},n.prototype.isOpen=function(){return!!this._map},n.prototype.remove=function(){return this._content&amp;&amp;r.remove(this._content),this._container&amp;&amp;(r.remove(this._container),delete this._container),this._map&amp;&amp;(this._map.off(&quot;move&quot;,this._update),this._map.off(&quot;move&quot;,this._onClose),this._map.off(&quot;click&quot;,this._onClose),this._map.off(&quot;remove&quot;,this.remove),this._map.off(&quot;mousemove&quot;,this._onMouseMove),this._map.off(&quot;mouseup&quot;,this._onMouseUp),this._map.off(&quot;drag&quot;,this._onDrag),delete this._map),this.fire(new t.Event(&quot;close&quot;)),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&amp;&amp;(this._map.on(&quot;move&quot;,this._update),this._map.off(&quot;mousemove&quot;,this._onMouseMove),this._container&amp;&amp;this._container.classList.remove(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.remove(&quot;mapboxgl-track-pointer&quot;)),this},n.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&amp;&amp;(this._map.off(&quot;move&quot;,this._update),this._map.on(&quot;mousemove&quot;,this._onMouseMove),this._map.on(&quot;drag&quot;,this._onDrag),this._container&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.add(&quot;mapboxgl-track-pointer&quot;)),this},n.prototype.getElement=function(){return this._container},n.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},n.prototype.setHTML=function(e){var r,n=t.window.document.createDocumentFragment(),i=t.window.document.createElement(&quot;body&quot;);for(i.innerHTML=e;r=i.firstChild;)n.appendChild(r);return this.setDOMContent(n)},n.prototype.getMaxWidth=function(){return this._container&amp;&amp;this._container.style.maxWidth},n.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},n.prototype.setDOMContent=function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},n.prototype.addClassName=function(t){this._container&amp;&amp;this._container.classList.add(t)},n.prototype.removeClassName=function(t){this._container&amp;&amp;this._container.classList.remove(t)},n.prototype.toggleClassName=function(t){if(this._container)return this._container.classList.toggle(t)},n.prototype._createContent=function(){this._content&amp;&amp;r.remove(this._content),this._content=r.create(&quot;div&quot;,&quot;mapboxgl-popup-content&quot;,this._container),this.options.closeButton&amp;&amp;(this._closeButton=r.create(&quot;button&quot;,&quot;mapboxgl-popup-close-button&quot;,this._content),this._closeButton.type=&quot;button&quot;,this._closeButton.setAttribute(&quot;aria-label&quot;,&quot;Close popup&quot;),this._closeButton.innerHTML=&quot;&amp;#215;&quot;,this._closeButton.addEventListener(&quot;click&quot;,this._onClose))},n.prototype._onMouseUp=function(t){this._update(t.point)},n.prototype._onMouseMove=function(t){this._update(t.point)},n.prototype._onDrag=function(t){this._update(t.point)},n.prototype._update=function(e){var n=this;if(this._map&amp;&amp;(this._lngLat||this._trackPointer)&amp;&amp;this._content&amp;&amp;(this._container||(this._container=r.create(&quot;div&quot;,&quot;mapboxgl-popup&quot;,this._map.getContainer()),this._tip=r.create(&quot;div&quot;,&quot;mapboxgl-popup-tip&quot;,this._container),this._container.appendChild(this._content),this.options.className&amp;&amp;this.options.className.split(&quot; &quot;).forEach((function(t){return n._container.classList.add(t)})),this._trackPointer&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;)),this.options.maxWidth&amp;&amp;this._container.style.maxWidth!==this.options.maxWidth&amp;&amp;(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&amp;&amp;!this._trackPointer&amp;&amp;(this._lngLat=Li(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||e)){var i=this._pos=this._trackPointer&amp;&amp;e?e:this._map.project(this._lngLat),a=this.options.anchor,o=function e(r){if(r){if(&quot;number&quot;==typeof r){var n=Math.round(Math.sqrt(.5*Math.pow(r,2)));return{center:new t.Point(0,0),top:new t.Point(0,r),&quot;top-left&quot;:new t.Point(n,n),&quot;top-right&quot;:new t.Point(-n,n),bottom:new t.Point(0,-r),&quot;bottom-left&quot;:new t.Point(n,-n),&quot;bottom-right&quot;:new t.Point(-n,-n),left:new t.Point(r,0),right:new t.Point(-r,0)}}if(r instanceof t.Point||Array.isArray(r)){var i=t.Point.convert(r);return{center:i,top:i,&quot;top-left&quot;:i,&quot;top-right&quot;:i,bottom:i,&quot;bottom-left&quot;:i,&quot;bottom-right&quot;:i,left:i,right:i}}return{center:t.Point.convert(r.center||[0,0]),top:t.Point.convert(r.top||[0,0]),&quot;top-left&quot;:t.Point.convert(r[&quot;top-left&quot;]||[0,0]),&quot;top-right&quot;:t.Point.convert(r[&quot;top-right&quot;]||[0,0]),bottom:t.Point.convert(r.bottom||[0,0]),&quot;bottom-left&quot;:t.Point.convert(r[&quot;bottom-left&quot;]||[0,0]),&quot;bottom-right&quot;:t.Point.convert(r[&quot;bottom-right&quot;]||[0,0]),left:t.Point.convert(r.left||[0,0]),right:t.Point.convert(r.right||[0,0])}}return e(new t.Point(0,0))}(this.options.offset);if(!a){var s,l=this._container.offsetWidth,c=this._container.offsetHeight;s=i.y+o.bottom.y&lt;c?[&quot;top&quot;]:i.y&gt;this._map.transform.height-c?[&quot;bottom&quot;]:[],i.x&lt;l/2?s.push(&quot;left&quot;):i.x&gt;this._map.transform.width-l/2&amp;&amp;s.push(&quot;right&quot;),a=0===s.length?&quot;bottom&quot;:s.join(&quot;-&quot;)}var u=i.add(o[a]).round();r.setTransform(this._container,Ii[a]+&quot; translate(&quot;+u.x+&quot;px,&quot;+u.y+&quot;px)&quot;),Pi(this._container,a,&quot;popup&quot;)}},n.prototype._onClose=function(){this.remove()},n}(t.Evented),Yi={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:Mi,NavigationControl:Ei,GeolocateControl:Bi,AttributionControl:vi,ScaleControl:ji,FullscreenControl:qi,Popup:Gi,Marker:Oi,Style:qe,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,config:t.config,prewarm:function(){Bt().acquire(Ot)},clearPrewarmedResources:function(){var t=Rt;t&amp;&amp;(t.isPreloaded()&amp;&amp;1===t.numActive()?(t.release(Ot),Rt=null):console.warn(&quot;Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()&quot;))},get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return Dt.workerCount},set workerCount(t){Dt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage:function(e){t.clearTileCache(e)},workerUrl:&quot;&quot;};return Yi})),r}))},{}],474:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=1&lt;&lt;t+1,r=new Array(e),n=0;n&lt;e;++n)r[n]=a(t,n);return r};var n=t(&quot;convex-hull&quot;);function i(t,e,r){for(var n=new Array(t),i=0;i&lt;t;++i)n[i]=0,i===e&amp;&amp;(n[i]+=.5),i===r&amp;&amp;(n[i]+=.5);return n}function a(t,e){if(0===e||e===(1&lt;&lt;t+1)-1)return[];for(var r=[],a=[],o=0;o&lt;=t;++o)if(e&amp;1&lt;&lt;o){r.push(i(t,o-1,o-1)),a.push(null);for(var s=0;s&lt;=t;++s)~e&amp;1&lt;&lt;s&amp;&amp;(r.push(i(t,o-1,s-1)),a.push([o,s]))}var l=n(r),c=[];t:for(o=0;o&lt;l.length;++o){var u=l[o],f=[];for(s=0;s&lt;u.length;++s){if(!a[u[s]])continue t;f.push(a[u[s]].slice())}c.push(f)}return c}},{&quot;convex-hull&quot;:135}],475:[function(t,e,r){var n=t(&quot;./normalize&quot;),i=t(&quot;gl-mat4/create&quot;),a=t(&quot;gl-mat4/clone&quot;),o=t(&quot;gl-mat4/determinant&quot;),s=t(&quot;gl-mat4/invert&quot;),l=t(&quot;gl-mat4/transpose&quot;),c={length:t(&quot;gl-vec3/length&quot;),normalize:t(&quot;gl-vec3/normalize&quot;),dot:t(&quot;gl-vec3/dot&quot;),cross:t(&quot;gl-vec3/cross&quot;)},u=i(),f=i(),h=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],d=[0,0,0];function g(t,e,r,n,i){t[0]=e[0]*n+r[0]*i,t[1]=e[1]*n+r[1]*i,t[2]=e[2]*n+r[2]*i}e.exports=function(t,e,r,i,m,v){if(e||(e=[0,0,0]),r||(r=[0,0,0]),i||(i=[0,0,0]),m||(m=[0,0,0,1]),v||(v=[0,0,0,1]),!n(u,t))return!1;if(a(f,u),f[3]=0,f[7]=0,f[11]=0,f[15]=1,Math.abs(o(f)&lt;1e-8))return!1;var y,x,b,_,w,T,k,M=u[3],A=u[7],S=u[11],E=u[12],C=u[13],L=u[14],I=u[15];if(0!==M||0!==A||0!==S){if(h[0]=M,h[1]=A,h[2]=S,h[3]=I,!s(f,f))return!1;l(f,f),y=m,b=f,_=(x=h)[0],w=x[1],T=x[2],k=x[3],y[0]=b[0]*_+b[4]*w+b[8]*T+b[12]*k,y[1]=b[1]*_+b[5]*w+b[9]*T+b[13]*k,y[2]=b[2]*_+b[6]*w+b[10]*T+b[14]*k,y[3]=b[3]*_+b[7]*w+b[11]*T+b[15]*k}else m[0]=m[1]=m[2]=0,m[3]=1;if(e[0]=E,e[1]=C,e[2]=L,function(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}(p,u),r[0]=c.length(p[0]),c.normalize(p[0],p[0]),i[0]=c.dot(p[0],p[1]),g(p[1],p[1],p[0],1,-i[0]),r[1]=c.length(p[1]),c.normalize(p[1],p[1]),i[0]/=r[1],i[1]=c.dot(p[0],p[2]),g(p[2],p[2],p[0],1,-i[1]),i[2]=c.dot(p[1],p[2]),g(p[2],p[2],p[1],1,-i[2]),r[2]=c.length(p[2]),c.normalize(p[2],p[2]),i[1]/=r[2],i[2]/=r[2],c.cross(d,p[1],p[2]),c.dot(p[0],d)&lt;0)for(var P=0;P&lt;3;P++)r[P]*=-1,p[P][0]*=-1,p[P][1]*=-1,p[P][2]*=-1;return v[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),v[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),v[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),v[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]&gt;p[1][2]&amp;&amp;(v[0]=-v[0]),p[0][2]&gt;p[2][0]&amp;&amp;(v[1]=-v[1]),p[1][0]&gt;p[0][1]&amp;&amp;(v[2]=-v[2]),!0}},{&quot;./normalize&quot;:476,&quot;gl-mat4/clone&quot;:278,&quot;gl-mat4/create&quot;:280,&quot;gl-mat4/determinant&quot;:281,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/transpose&quot;:306,&quot;gl-vec3/cross&quot;:365,&quot;gl-vec3/dot&quot;:370,&quot;gl-vec3/length&quot;:380,&quot;gl-vec3/normalize&quot;:387}],476:[function(t,e,r){e.exports=function(t,e){var r=e[15];if(0===r)return!1;for(var n=1/r,i=0;i&lt;16;i++)t[i]=e[i]*n;return!0}},{}],477:[function(t,e,r){var n=t(&quot;gl-vec3/lerp&quot;),i=t(&quot;mat4-recompose&quot;),a=t(&quot;mat4-decompose&quot;),o=t(&quot;gl-mat4/determinant&quot;),s=t(&quot;quat-slerp&quot;),l=f(),c=f(),u=f();function f(){return{translate:h(),scale:h(1),skew:h(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function h(t){return[t||0,t||0,t||0]}e.exports=function(t,e,r,f){if(0===o(e)||0===o(r))return!1;var h=a(e,l.translate,l.scale,l.skew,l.perspective,l.quaternion),p=a(r,c.translate,c.scale,c.skew,c.perspective,c.quaternion);return!(!h||!p)&amp;&amp;(n(u.translate,l.translate,c.translate,f),n(u.skew,l.skew,c.skew,f),n(u.scale,l.scale,c.scale,f),n(u.perspective,l.perspective,c.perspective,f),s(u.quaternion,l.quaternion,c.quaternion,f),i(t,u.translate,u.scale,u.skew,u.perspective,u.quaternion),!0)}},{&quot;gl-mat4/determinant&quot;:281,&quot;gl-vec3/lerp&quot;:381,&quot;mat4-decompose&quot;:475,&quot;mat4-recompose&quot;:478,&quot;quat-slerp&quot;:527}],478:[function(t,e,r){var n={identity:t(&quot;gl-mat4/identity&quot;),translate:t(&quot;gl-mat4/translate&quot;),multiply:t(&quot;gl-mat4/multiply&quot;),create:t(&quot;gl-mat4/create&quot;),scale:t(&quot;gl-mat4/scale&quot;),fromRotationTranslation:t(&quot;gl-mat4/fromRotationTranslation&quot;)},i=(n.create(),n.create());e.exports=function(t,e,r,a,o,s){return n.identity(t),n.fromRotationTranslation(t,s,e),t[3]=o[0],t[7]=o[1],t[11]=o[2],t[15]=o[3],n.identity(i),0!==a[2]&amp;&amp;(i[9]=a[2],n.multiply(t,t,i)),0!==a[1]&amp;&amp;(i[9]=0,i[8]=a[1],n.multiply(t,t,i)),0!==a[0]&amp;&amp;(i[8]=0,i[4]=a[0],n.multiply(t,t,i)),n.scale(t,t,r),t}},{&quot;gl-mat4/create&quot;:280,&quot;gl-mat4/fromRotationTranslation&quot;:284,&quot;gl-mat4/identity&quot;:291,&quot;gl-mat4/multiply&quot;:295,&quot;gl-mat4/scale&quot;:303,&quot;gl-mat4/translate&quot;:305}],479:[function(t,e,r){&quot;use strict&quot;;e.exports=Math.log2||function(t){return Math.log(t)*Math.LOG2E}},{}],480:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;mat4-interpolate&quot;),a=t(&quot;gl-mat4/invert&quot;),o=t(&quot;gl-mat4/rotateX&quot;),s=t(&quot;gl-mat4/rotateY&quot;),l=t(&quot;gl-mat4/rotateZ&quot;),c=t(&quot;gl-mat4/lookAt&quot;),u=t(&quot;gl-mat4/translate&quot;),f=(t(&quot;gl-mat4/scale&quot;),t(&quot;gl-vec3/normalize&quot;)),h=[0,0,0];function p(t){this._components=t.slice(),this._time=[0],this.prevMatrix=t.slice(),this.nextMatrix=t.slice(),this.computedMatrix=t.slice(),this.computedInverse=t.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}e.exports=function(t){return new p((t=t||{}).matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};var d=p.prototype;d.recalcMatrix=function(t){var e=this._time,r=n.le(e,t),o=this.computedMatrix;if(!(r&lt;0)){var s=this._components;if(r===e.length-1)for(var l=16*r,c=0;c&lt;16;++c)o[c]=s[l++];else{var u=e[r+1]-e[r],h=(l=16*r,this.prevMatrix),p=!0;for(c=0;c&lt;16;++c)h[c]=s[l++];var d=this.nextMatrix;for(c=0;c&lt;16;++c)d[c]=s[l++],p=p&amp;&amp;h[c]===d[c];if(u&lt;1e-6||p)for(c=0;c&lt;16;++c)o[c]=h[c];else i(o,h,d,(t-e[r])/u)}var g=this.computedUp;g[0]=o[1],g[1]=o[5],g[2]=o[9],f(g,g);var m=this.computedInverse;a(m,o);var v=this.computedEye,y=m[15];v[0]=m[12]/y,v[1]=m[13]/y,v[2]=m[14]/y;var x=this.computedCenter,b=Math.exp(this.computedRadius[0]);for(c=0;c&lt;3;++c)x[c]=v[c]-o[2+4*c]*b}},d.idle=function(t){if(!(t&lt;this.lastT())){for(var e=this._components,r=e.length-16,n=0;n&lt;16;++n)e.push(e[r++]);this._time.push(t)}},d.flush=function(t){var e=n.gt(this._time,t)-2;e&lt;0||(this._time.splice(0,e),this._components.splice(0,16*e))},d.lastT=function(){return this._time[this._time.length-1]},d.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||h,n=n||this.computedUp,this.setMatrix(t,c(this.computedMatrix,e,r,n));for(var i=0,a=0;a&lt;3;++a)i+=Math.pow(r[a]-e[a],2);i=Math.log(Math.sqrt(i)),this.computedRadius[0]=i},d.rotate=function(t,e,r,n){this.recalcMatrix(t);var i=this.computedInverse;e&amp;&amp;s(i,i,e),r&amp;&amp;o(i,i,r),n&amp;&amp;l(i,i,n),this.setMatrix(t,a(this.computedMatrix,i))};var g=[0,0,0];d.pan=function(t,e,r,n){g[0]=-(e||0),g[1]=-(r||0),g[2]=-(n||0),this.recalcMatrix(t);var i=this.computedInverse;u(i,i,g),this.setMatrix(t,a(i,i))},d.translate=function(t,e,r,n){g[0]=e||0,g[1]=r||0,g[2]=n||0,this.recalcMatrix(t);var i=this.computedMatrix;u(i,i,g),this.setMatrix(t,i)},d.setMatrix=function(t,e){if(!(t&lt;this.lastT())){this._time.push(t);for(var r=0;r&lt;16;++r)this._components.push(e[r])}},d.setDistance=function(t,e){this.computedRadius[0]=e},d.setDistanceLimits=function(t,e){var r=this._limits;r[0]=t,r[1]=e},d.getDistanceLimits=function(t){var e=this._limits;return t?(t[0]=e[0],t[1]=e[1],t):e}},{&quot;binary-search-bounds&quot;:481,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/lookAt&quot;:294,&quot;gl-mat4/rotateX&quot;:300,&quot;gl-mat4/rotateY&quot;:301,&quot;gl-mat4/rotateZ&quot;:302,&quot;gl-mat4/scale&quot;:303,&quot;gl-mat4/translate&quot;:305,&quot;gl-vec3/normalize&quot;:387,&quot;mat4-interpolate&quot;:477}],481:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],482:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(e&lt;3){for(var r=new Array(e),i=0;i&lt;e;++i)r[i]=i;return 2===e&amp;&amp;t[0][0]===t[1][0]&amp;&amp;t[0][1]===t[1][1]?[0]:r}var a=new Array(e);for(i=0;i&lt;e;++i)a[i]=i;a.sort((function(e,r){var n=t[e][0]-t[r][0];return n||t[e][1]-t[r][1]}));var o=[a[0],a[1]],s=[a[0],a[1]];for(i=2;i&lt;e;++i){for(var l=a[i],c=t[l],u=o.length;u&gt;1&amp;&amp;n(t[o[u-2]],t[o[u-1]],c)&lt;=0;)u-=1,o.pop();for(o.push(l),u=s.length;u&gt;1&amp;&amp;n(t[s[u-2]],t[s[u-1]],c)&gt;=0;)u-=1,s.pop();s.push(l)}r=new Array(s.length+o.length-2);for(var f=0,h=(i=0,o.length);i&lt;h;++i)r[f++]=o[i];for(var p=s.length-2;p&gt;0;--p)r[f++]=s[p];return r};var n=t(&quot;robust-orientation&quot;)[3]},{&quot;robust-orientation&quot;:548}],483:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e||(e=t,t=window);var r=0,i=0,a=0,o={shift:!1,alt:!1,control:!1,meta:!1},s=!1;function l(t){var e=!1;return&quot;altKey&quot;in t&amp;&amp;(e=e||t.altKey!==o.alt,o.alt=!!t.altKey),&quot;shiftKey&quot;in t&amp;&amp;(e=e||t.shiftKey!==o.shift,o.shift=!!t.shiftKey),&quot;ctrlKey&quot;in t&amp;&amp;(e=e||t.ctrlKey!==o.control,o.control=!!t.ctrlKey),&quot;metaKey&quot;in t&amp;&amp;(e=e||t.metaKey!==o.meta,o.meta=!!t.metaKey),e}function c(t,s){var c=n.x(s),u=n.y(s);&quot;buttons&quot;in s&amp;&amp;(t=0|s.buttons),(t!==r||c!==i||u!==a||l(s))&amp;&amp;(r=0|t,i=c||0,a=u||0,e&amp;&amp;e(r,i,a,o))}function u(t){c(0,t)}function f(){(r||i||a||o.shift||o.alt||o.meta||o.control)&amp;&amp;(i=a=0,r=0,o.shift=o.alt=o.control=o.meta=!1,e&amp;&amp;e(0,0,0,o))}function h(t){l(t)&amp;&amp;e&amp;&amp;e(r,i,a,o)}function p(t){0===n.buttons(t)?c(0,t):c(r,t)}function d(t){c(r|n.buttons(t),t)}function g(t){c(r&amp;~n.buttons(t),t)}function m(){s||(s=!0,t.addEventListener(&quot;mousemove&quot;,p),t.addEventListener(&quot;mousedown&quot;,d),t.addEventListener(&quot;mouseup&quot;,g),t.addEventListener(&quot;mouseleave&quot;,u),t.addEventListener(&quot;mouseenter&quot;,u),t.addEventListener(&quot;mouseout&quot;,u),t.addEventListener(&quot;mouseover&quot;,u),t.addEventListener(&quot;blur&quot;,f),t.addEventListener(&quot;keyup&quot;,h),t.addEventListener(&quot;keydown&quot;,h),t.addEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.addEventListener(&quot;blur&quot;,f),window.addEventListener(&quot;keyup&quot;,h),window.addEventListener(&quot;keydown&quot;,h),window.addEventListener(&quot;keypress&quot;,h)))}m();var v={element:t};return Object.defineProperties(v,{enabled:{get:function(){return s},set:function(e){e?m():function(){if(!s)return;s=!1,t.removeEventListener(&quot;mousemove&quot;,p),t.removeEventListener(&quot;mousedown&quot;,d),t.removeEventListener(&quot;mouseup&quot;,g),t.removeEventListener(&quot;mouseleave&quot;,u),t.removeEventListener(&quot;mouseenter&quot;,u),t.removeEventListener(&quot;mouseout&quot;,u),t.removeEventListener(&quot;mouseover&quot;,u),t.removeEventListener(&quot;blur&quot;,f),t.removeEventListener(&quot;keyup&quot;,h),t.removeEventListener(&quot;keydown&quot;,h),t.removeEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.removeEventListener(&quot;blur&quot;,f),window.removeEventListener(&quot;keyup&quot;,h),window.removeEventListener(&quot;keydown&quot;,h),window.removeEventListener(&quot;keypress&quot;,h))}()},enumerable:!0},buttons:{get:function(){return r},enumerable:!0},x:{get:function(){return i},enumerable:!0},y:{get:function(){return a},enumerable:!0},mods:{get:function(){return o},enumerable:!0}}),v};var n=t(&quot;mouse-event&quot;)},{&quot;mouse-event&quot;:485}],484:[function(t,e,r){var n={left:0,top:0};e.exports=function(t,e,r){e=e||t.currentTarget||t.srcElement,Array.isArray(r)||(r=[0,0]);var i=t.clientX||0,a=t.clientY||0,o=(s=e,s===window||s===document||s===document.body?n:s.getBoundingClientRect());var s;return r[0]=i-o.left,r[1]=a-o.top,r}},{}],485:[function(t,e,r){&quot;use strict&quot;;function n(t){return t.target||t.srcElement||window}r.buttons=function(t){if(&quot;object&quot;==typeof t){if(&quot;buttons&quot;in t)return t.buttons;if(&quot;which&quot;in t){if(2===(e=t.which))return 4;if(3===e)return 2;if(e&gt;0)return 1&lt;&lt;e-1}else if(&quot;button&quot;in t){var e;if(1===(e=t.button))return 4;if(2===e)return 2;if(e&gt;=0)return 1&lt;&lt;e}}return 0},r.element=n,r.x=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetX&quot;in t)return t.offsetX;var e=n(t).getBoundingClientRect();return t.clientX-e.left}return 0},r.y=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetY&quot;in t)return t.offsetY;var e=n(t).getBoundingClientRect();return t.clientY-e.top}return 0}},{}],486:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;to-px&quot;);e.exports=function(t,e,r){&quot;function&quot;==typeof t&amp;&amp;(r=!!e,e=t,t=window);var i=n(&quot;ex&quot;,t),a=function(t){r&amp;&amp;t.preventDefault();var n=t.deltaX||0,a=t.deltaY||0,o=t.deltaZ||0,s=1;switch(t.deltaMode){case 1:s=i;break;case 2:s=window.innerHeight}if(a*=s,o*=s,(n*=s)||a||o)return e(n,a,o,t)};return t.addEventListener(&quot;wheel&quot;,a),a}},{&quot;to-px&quot;:578}],487:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;);function i(t){return&quot;a&quot;+t}function a(t){return&quot;d&quot;+t}function o(t,e){return&quot;c&quot;+t+&quot;_&quot;+e}function s(t){return&quot;s&quot;+t}function l(t,e){return&quot;t&quot;+t+&quot;_&quot;+e}function c(t){return&quot;o&quot;+t}function u(t){return&quot;x&quot;+t}function f(t){return&quot;p&quot;+t}function h(t,e){return&quot;d&quot;+t+&quot;_&quot;+e}function p(t){return&quot;i&quot;+t}function d(t,e){return&quot;u&quot;+t+&quot;_&quot;+e}function g(t){return&quot;b&quot;+t}function m(t){return&quot;y&quot;+t}function v(t){return&quot;e&quot;+t}function y(t){return&quot;v&quot;+t}e.exports=function(t){function e(t){throw new Error(&quot;ndarray-extract-contour: &quot;+t)}&quot;object&quot;!=typeof t&amp;&amp;e(&quot;Must specify arguments&quot;);var r=t.order;Array.isArray(r)||e(&quot;Must specify order&quot;);var b=t.arrayArguments||1;b&lt;1&amp;&amp;e(&quot;Must have at least one array argument&quot;);var _=t.scalarArguments||0;_&lt;0&amp;&amp;e(&quot;Scalar arg count must be &gt; 0&quot;);&quot;function&quot;!=typeof t.vertex&amp;&amp;e(&quot;Must specify vertex creation function&quot;);&quot;function&quot;!=typeof t.cell&amp;&amp;e(&quot;Must specify cell creation function&quot;);&quot;function&quot;!=typeof t.phase&amp;&amp;e(&quot;Must specify phase function&quot;);for(var w=t.getters||[],T=new Array(b),k=0;k&lt;b;++k)w.indexOf(k)&gt;=0?T[k]=!0:T[k]=!1;return function(t,e,r,b,_,w){var T=w.length,k=_.length;if(k&lt;2)throw new Error(&quot;ndarray-extract-contour: Dimension must be at least 2&quot;);for(var M=&quot;extractContour&quot;+_.join(&quot;_&quot;),A=[],S=[],E=[],C=0;C&lt;T;++C)E.push(i(C));for(C=0;C&lt;b;++C)E.push(u(C));for(C=0;C&lt;k;++C)S.push(s(C)+&quot;=&quot;+i(0)+&quot;.shape[&quot;+C+&quot;]|0&quot;);for(C=0;C&lt;T;++C){S.push(a(C)+&quot;=&quot;+i(C)+&quot;.data&quot;,c(C)+&quot;=&quot;+i(C)+&quot;.offset|0&quot;);for(var L=0;L&lt;k;++L)S.push(l(C,L)+&quot;=&quot;+i(C)+&quot;.stride[&quot;+L+&quot;]|0&quot;)}for(C=0;C&lt;T;++C){S.push(f(C)+&quot;=&quot;+c(C)),S.push(o(C,0));for(L=1;L&lt;1&lt;&lt;k;++L){for(var I=[],P=0;P&lt;k;++P)L&amp;1&lt;&lt;P&amp;&amp;I.push(&quot;-&quot;+l(C,P));S.push(h(C,L)+&quot;=(&quot;+I.join(&quot;&quot;)+&quot;)|0&quot;),S.push(o(C,L)+&quot;=0&quot;)}}for(C=0;C&lt;T;++C)for(L=0;L&lt;k;++L){var z=[l(C,_[L])];L&gt;0&amp;&amp;z.push(l(C,_[L-1])+&quot;*&quot;+s(_[L-1])),S.push(d(C,_[L])+&quot;=(&quot;+z.join(&quot;-&quot;)+&quot;)|0&quot;)}for(C=0;C&lt;k;++C)S.push(p(C)+&quot;=0&quot;);S.push(&quot;N=0&quot;);var O=[&quot;2&quot;];for(C=k-2;C&gt;=0;--C)O.push(s(_[C]));S.push(&quot;Q=(&quot;+O.join(&quot;*&quot;)+&quot;)|0&quot;,&quot;P=mallocUint32(Q)&quot;,&quot;V=mallocUint32(Q)&quot;,&quot;X=0&quot;),S.push(g(0)+&quot;=0&quot;);for(L=1;L&lt;1&lt;&lt;k;++L){var D=[],R=[];for(P=0;P&lt;k;++P)L&amp;1&lt;&lt;P&amp;&amp;(0===R.length?D.push(&quot;1&quot;):D.unshift(R.join(&quot;*&quot;))),R.push(s(_[P]));var F=&quot;&quot;;D[0].indexOf(s(_[k-2]))&lt;0&amp;&amp;(F=&quot;-&quot;);var B=x(k,L,_);S.push(v(B)+&quot;=(-&quot;+D.join(&quot;-&quot;)+&quot;)|0&quot;,m(B)+&quot;=(&quot;+F+D.join(&quot;-&quot;)+&quot;)|0&quot;,g(B)+&quot;=0&quot;)}function N(t,e){A.push(&quot;for(&quot;,p(_[t]),&quot;=&quot;,e,&quot;;&quot;,p(_[t]),&quot;&lt;&quot;,s(_[t]),&quot;;&quot;,&quot;++&quot;,p(_[t]),&quot;){&quot;)}function j(t){for(var e=0;e&lt;T;++e)A.push(f(e),&quot;+=&quot;,d(e,_[t]),&quot;;&quot;);A.push(&quot;}&quot;)}function U(){for(var t=1;t&lt;1&lt;&lt;k;++t)A.push(&quot;T&quot;,&quot;=&quot;,v(t),&quot;;&quot;,v(t),&quot;=&quot;,m(t),&quot;;&quot;,m(t),&quot;=&quot;,&quot;T&quot;,&quot;;&quot;)}S.push(y(0)+&quot;=0&quot;,&quot;T=0&quot;),function t(e,r){if(e&lt;0)!function(t){for(var e=0;e&lt;T;++e)w[e]?A.push(o(e,0),&quot;=&quot;,a(e),&quot;.get(&quot;,f(e),&quot;);&quot;):A.push(o(e,0),&quot;=&quot;,a(e),&quot;[&quot;,f(e),&quot;];&quot;);var r=[];for(e=0;e&lt;T;++e)r.push(o(e,0));for(e=0;e&lt;b;++e)r.push(u(e));A.push(g(0),&quot;=&quot;,&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;]=phase(&quot;,r.join(),&quot;);&quot;);for(var n=1;n&lt;1&lt;&lt;k;++n)A.push(g(n),&quot;=&quot;,&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;+&quot;,v(n),&quot;];&quot;);var i=[];for(n=1;n&lt;1&lt;&lt;k;++n)i.push(&quot;(&quot;+g(0)+&quot;!==&quot;+g(n)+&quot;)&quot;);A.push(&quot;if(&quot;,i.join(&quot;||&quot;),&quot;){&quot;);var s=[];for(e=0;e&lt;k;++e)s.push(p(e));for(e=0;e&lt;T;++e){s.push(o(e,0));for(n=1;n&lt;1&lt;&lt;k;++n)w[e]?A.push(o(e,n),&quot;=&quot;,a(e),&quot;.get(&quot;,f(e),&quot;+&quot;,h(e,n),&quot;);&quot;):A.push(o(e,n),&quot;=&quot;,a(e),&quot;[&quot;,f(e),&quot;+&quot;,h(e,n),&quot;];&quot;),s.push(o(e,n))}for(e=0;e&lt;1&lt;&lt;k;++e)s.push(g(e));for(e=0;e&lt;b;++e)s.push(u(e));A.push(&quot;vertex(&quot;,s.join(),&quot;);&quot;,y(0),&quot;=&quot;,&quot;V&quot;,&quot;[&quot;,&quot;X&quot;,&quot;]=&quot;,&quot;N&quot;,&quot;++;&quot;);var l=(1&lt;&lt;k)-1,c=g(l);for(n=0;n&lt;k;++n)if(0==(t&amp;~(1&lt;&lt;n))){for(var d=l^1&lt;&lt;n,m=g(d),x=[],_=d;_&gt;0;_=_-1&amp;d)x.push(&quot;V[X+&quot;+v(_)+&quot;]&quot;);x.push(y(0));for(_=0;_&lt;T;++_)1&amp;n?x.push(o(_,l),o(_,d)):x.push(o(_,d),o(_,l));1&amp;n?x.push(c,m):x.push(m,c);for(_=0;_&lt;b;++_)x.push(u(_));A.push(&quot;if(&quot;,c,&quot;!==&quot;,m,&quot;){&quot;,&quot;face(&quot;,x.join(),&quot;)}&quot;)}A.push(&quot;}&quot;,&quot;X&quot;,&quot;+=1;&quot;)}(r);else{!function(t){for(var e=t-1;e&gt;=0;--e)N(e,0);var r=[];for(e=0;e&lt;T;++e)w[e]?r.push(a(e)+&quot;.get(&quot;+f(e)+&quot;)&quot;):r.push(a(e)+&quot;[&quot;+f(e)+&quot;]&quot;);for(e=0;e&lt;b;++e)r.push(u(e));for(A.push(&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;++]=phase(&quot;,r.join(),&quot;);&quot;),e=0;e&lt;t;++e)j(e);for(var n=0;n&lt;T;++n)A.push(f(n),&quot;+=&quot;,d(n,_[t]),&quot;;&quot;)}(e),A.push(&quot;if(&quot;,s(_[e]),&quot;&gt;0){&quot;,p(_[e]),&quot;=1;&quot;),t(e-1,r|1&lt;&lt;_[e]);for(var n=0;n&lt;T;++n)A.push(f(n),&quot;+=&quot;,d(n,_[e]),&quot;;&quot;);e===k-1&amp;&amp;(A.push(&quot;X&quot;,&quot;=0;&quot;),U()),N(e,2),t(e-1,r),e===k-1&amp;&amp;(A.push(&quot;if(&quot;,p(_[k-1]),&quot;&amp;1){&quot;,&quot;X&quot;,&quot;=0;}&quot;),U()),j(e),A.push(&quot;}&quot;)}}(k-1,0),A.push(&quot;freeUint32(&quot;,&quot;V&quot;,&quot;);freeUint32(&quot;,&quot;P&quot;,&quot;);&quot;);var V=[&quot;'use strict';&quot;,&quot;function &quot;,M,&quot;(&quot;,E.join(),&quot;){&quot;,&quot;var &quot;,S.join(),&quot;;&quot;,A.join(&quot;&quot;),&quot;}&quot;,&quot;return &quot;,M].join(&quot;&quot;);return new Function(&quot;vertex&quot;,&quot;face&quot;,&quot;phase&quot;,&quot;mallocUint32&quot;,&quot;freeUint32&quot;,V)(t,e,r,n.mallocUint32,n.freeUint32)}(t.vertex,t.cell,t.phase,_,r,T)};function x(t,e,r){for(var n=0,i=0;i&lt;t;++i)e&amp;1&lt;&lt;i&amp;&amp;(n|=1&lt;&lt;r[i]);return n}},{&quot;typedarray-pool&quot;:595}],488:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(Array.isArray(r)){if(r.length!==e.dimension)throw new Error(&quot;ndarray-gradient: invalid boundary conditions&quot;)}else r=n(e.dimension,&quot;string&quot;==typeof r?r:&quot;clamp&quot;);if(t.dimension!==e.dimension+1)throw new Error(&quot;ndarray-gradient: output dimension must be +1 input dimension&quot;);if(t.shape[e.dimension]!==e.dimension)throw new Error(&quot;ndarray-gradient: output shape must match input shape&quot;);for(var i=0;i&lt;e.dimension;++i)if(t.shape[i]!==e.shape[i])throw new Error(&quot;ndarray-gradient: shape mismatch&quot;);if(0===e.size)return t;if(e.dimension&lt;=0)return t.set(0),t;return function(t){var e=t.join();if(v=o[e])return v;var r=t.length,n=[&quot;function gradient(dst,src){var s=src.shape.slice();&quot;];function i(e){for(var i=r-e.length,a=[],o=[],s=[],l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0?s.push(&quot;0&quot;):e.indexOf(-(l+1))&gt;=0?s.push(&quot;s[&quot;+l+&quot;]-1&quot;):(s.push(&quot;-1&quot;),a.push(&quot;1&quot;),o.push(&quot;s[&quot;+l+&quot;]-2&quot;));var c=&quot;.lo(&quot;+a.join()+&quot;).hi(&quot;+o.join()+&quot;)&quot;;if(0===a.length&amp;&amp;(c=&quot;&quot;),i&gt;0){n.push(&quot;if(1&quot;);for(l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0||e.indexOf(-(l+1))&gt;=0||n.push(&quot;&amp;&amp;s[&quot;,l,&quot;]&gt;2&quot;);n.push(&quot;){grad&quot;,i,&quot;(src.pick(&quot;,s.join(),&quot;)&quot;,c);for(l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0||e.indexOf(-(l+1))&gt;=0||n.push(&quot;,dst.pick(&quot;,s.join(),&quot;,&quot;,l,&quot;)&quot;,c);n.push(&quot;);&quot;)}for(l=0;l&lt;e.length;++l){var u=Math.abs(e[l])-1,f=&quot;dst.pick(&quot;+s.join()+&quot;,&quot;+u+&quot;)&quot;+c;switch(t[u]){case&quot;clamp&quot;:var h=s.slice(),p=s.slice();e[l]&lt;0?h[u]=&quot;s[&quot;+u+&quot;]-2&quot;:p[u]=&quot;1&quot;,0===i?n.push(&quot;if(s[&quot;,u,&quot;]&gt;1){dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0.5*(src.get(&quot;,h.join(),&quot;)-src.get(&quot;,p.join(),&quot;)))}else{dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0)};&quot;):n.push(&quot;if(s[&quot;,u,&quot;]&gt;1){diff(&quot;,f,&quot;,src.pick(&quot;,h.join(),&quot;)&quot;,c,&quot;,src.pick(&quot;,p.join(),&quot;)&quot;,c,&quot;);}else{zero(&quot;,f,&quot;);};&quot;);break;case&quot;mirror&quot;:0===i?n.push(&quot;dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0);&quot;):n.push(&quot;zero(&quot;,f,&quot;);&quot;);break;case&quot;wrap&quot;:var d=s.slice(),g=s.slice();e[l]&lt;0?(d[u]=&quot;s[&quot;+u+&quot;]-2&quot;,g[u]=&quot;0&quot;):(d[u]=&quot;s[&quot;+u+&quot;]-1&quot;,g[u]=&quot;1&quot;),0===i?n.push(&quot;if(s[&quot;,u,&quot;]&gt;2){dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0.5*(src.get(&quot;,d.join(),&quot;)-src.get(&quot;,g.join(),&quot;)))}else{dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0)};&quot;):n.push(&quot;if(s[&quot;,u,&quot;]&gt;2){diff(&quot;,f,&quot;,src.pick(&quot;,d.join(),&quot;)&quot;,c,&quot;,src.pick(&quot;,g.join(),&quot;)&quot;,c,&quot;);}else{zero(&quot;,f,&quot;);};&quot;);break;default:throw new Error(&quot;ndarray-gradient: Invalid boundary condition&quot;)}}i&gt;0&amp;&amp;n.push(&quot;};&quot;)}for(var s=0;s&lt;1&lt;&lt;r;++s){for(var f=[],h=0;h&lt;r;++h)s&amp;1&lt;&lt;h&amp;&amp;f.push(h+1);for(var p=0;p&lt;1&lt;&lt;f.length;++p){var d=f.slice();for(h=0;h&lt;f.length;++h)p&amp;1&lt;&lt;h&amp;&amp;(d[h]=-d[h]);i(d)}}n.push(&quot;return dst;};return gradient&quot;);var g=[&quot;diff&quot;,&quot;zero&quot;],m=[l,c];for(s=1;s&lt;=r;++s)g.push(&quot;grad&quot;+s),m.push(u(s));g.push(n.join(&quot;&quot;));var v=Function.apply(void 0,g).apply(void 0,m);return a[e]=v,v}(r)(t,e)};var n=t(&quot;dup&quot;),i=t(&quot;cwise-compiler&quot;),a={},o={},s={body:&quot;&quot;,args:[],thisVars:[],localVars:[]},l=i({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:s,post:s,body:{args:[{name:&quot;out&quot;,lvalue:!0,rvalue:!1,count:1},{name:&quot;left&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;right&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;out=0.5*(left-right)&quot;,thisVars:[],localVars:[]},funcName:&quot;cdiff&quot;}),c=i({args:[&quot;array&quot;],pre:s,post:s,body:{args:[{name:&quot;out&quot;,lvalue:!0,rvalue:!1,count:1}],body:&quot;out=0&quot;,thisVars:[],localVars:[]},funcName:&quot;zero&quot;});function u(t){if(t in a)return a[t];for(var e=[],r=0;r&lt;t;++r)e.push(&quot;out&quot;,r,&quot;s=0.5*(inp&quot;,r,&quot;l-inp&quot;,r,&quot;r);&quot;);var o=[&quot;array&quot;],l=[&quot;junk&quot;];for(r=0;r&lt;t;++r){o.push(&quot;array&quot;),l.push(&quot;out&quot;+r+&quot;s&quot;);var c=n(t);c[r]=-1,o.push({array:0,offset:c.slice()}),c[r]=1,o.push({array:0,offset:c.slice()}),l.push(&quot;inp&quot;+r+&quot;l&quot;,&quot;inp&quot;+r+&quot;r&quot;)}return a[t]=i({args:o,pre:s,post:s,body:{body:e.join(&quot;&quot;),args:l.map((function(t){return{name:t,lvalue:0===t.indexOf(&quot;out&quot;),rvalue:0===t.indexOf(&quot;inp&quot;),count:&quot;junk&quot;!==t|0}})),thisVars:[],localVars:[]},funcName:&quot;fdTemplate&quot;+t})}},{&quot;cwise-compiler&quot;:151,dup:176}],489:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=Math.floor(e),n=e-r,i=0&lt;=r&amp;&amp;r&lt;t.shape[0],a=0&lt;=r+1&amp;&amp;r+1&lt;t.shape[0];return(1-n)*(i?+t.get(r):0)+n*(a?+t.get(r+1):0)}function i(t,e,r){var n=Math.floor(e),i=e-n,a=0&lt;=n&amp;&amp;n&lt;t.shape[0],o=0&lt;=n+1&amp;&amp;n+1&lt;t.shape[0],s=Math.floor(r),l=r-s,c=0&lt;=s&amp;&amp;s&lt;t.shape[1],u=0&lt;=s+1&amp;&amp;s+1&lt;t.shape[1],f=a&amp;&amp;c?t.get(n,s):0,h=a&amp;&amp;u?t.get(n,s+1):0;return(1-l)*((1-i)*f+i*(o&amp;&amp;c?t.get(n+1,s):0))+l*((1-i)*h+i*(o&amp;&amp;u?t.get(n+1,s+1):0))}function a(t,e,r,n){var i=Math.floor(e),a=e-i,o=0&lt;=i&amp;&amp;i&lt;t.shape[0],s=0&lt;=i+1&amp;&amp;i+1&lt;t.shape[0],l=Math.floor(r),c=r-l,u=0&lt;=l&amp;&amp;l&lt;t.shape[1],f=0&lt;=l+1&amp;&amp;l+1&lt;t.shape[1],h=Math.floor(n),p=n-h,d=0&lt;=h&amp;&amp;h&lt;t.shape[2],g=0&lt;=h+1&amp;&amp;h+1&lt;t.shape[2],m=o&amp;&amp;u&amp;&amp;d?t.get(i,l,h):0,v=o&amp;&amp;f&amp;&amp;d?t.get(i,l+1,h):0,y=s&amp;&amp;u&amp;&amp;d?t.get(i+1,l,h):0,x=s&amp;&amp;f&amp;&amp;d?t.get(i+1,l+1,h):0,b=o&amp;&amp;u&amp;&amp;g?t.get(i,l,h+1):0,_=o&amp;&amp;f&amp;&amp;g?t.get(i,l+1,h+1):0;return(1-p)*((1-c)*((1-a)*m+a*y)+c*((1-a)*v+a*x))+p*((1-c)*((1-a)*b+a*(s&amp;&amp;u&amp;&amp;g?t.get(i+1,l,h+1):0))+c*((1-a)*_+a*(s&amp;&amp;f&amp;&amp;g?t.get(i+1,l+1,h+1):0)))}function o(t){var e,r,n=0|t.shape.length,i=new Array(n),a=new Array(n),o=new Array(n),s=new Array(n);for(e=0;e&lt;n;++e)r=+arguments[e+1],i[e]=Math.floor(r),a[e]=r-i[e],o[e]=0&lt;=i[e]&amp;&amp;i[e]&lt;t.shape[e],s[e]=0&lt;=i[e]+1&amp;&amp;i[e]+1&lt;t.shape[e];var l,c,u,f=0;t:for(e=0;e&lt;1&lt;&lt;n;++e){for(c=1,u=t.offset,l=0;l&lt;n;++l)if(e&amp;1&lt;&lt;l){if(!s[l])continue t;c*=a[l],u+=t.stride[l]*(i[l]+1)}else{if(!o[l])continue t;c*=1-a[l],u+=t.stride[l]*i[l]}f+=c*t.data[u]}return f}e.exports=function(t,e,r,s){switch(t.shape.length){case 0:return 0;case 1:return n(t,e);case 2:return i(t,e,r);case 3:return a(t,e,r,s);default:return o.apply(void 0,arguments)}},e.exports.d1=n,e.exports.d2=i,e.exports.d3=a},{}],490:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;cwise-compiler&quot;),i={body:&quot;&quot;,args:[],thisVars:[],localVars:[]};function a(t){if(!t)return i;for(var e=0;e&lt;t.args.length;++e){var r=t.args[e];t.args[e]=0===e?{name:r,lvalue:!0,rvalue:!!t.rvalue,count:t.count||1}:{name:r,lvalue:!1,rvalue:!0,count:1}}return t.thisVars||(t.thisVars=[]),t.localVars||(t.localVars=[]),t}function o(t){for(var e=[],r=0;r&lt;t.args.length;++r)e.push(&quot;a&quot;+r);return new Function(&quot;P&quot;,[&quot;return function &quot;,t.funcName,&quot;_ndarrayops(&quot;,e.join(&quot;,&quot;),&quot;) {P(&quot;,e.join(&quot;,&quot;),&quot;);return a0}&quot;].join(&quot;&quot;))(function(t){return n({args:t.args,pre:a(t.pre),body:a(t.body),post:a(t.proc),funcName:t.funcName})}(t))}var s={add:&quot;+&quot;,sub:&quot;-&quot;,mul:&quot;*&quot;,div:&quot;/&quot;,mod:&quot;%&quot;,band:&quot;&amp;&quot;,bor:&quot;|&quot;,bxor:&quot;^&quot;,lshift:&quot;&lt;&lt;&quot;,rshift:&quot;&gt;&gt;&quot;,rrshift:&quot;&gt;&gt;&gt;&quot;};!function(){for(var t in s){var e=s[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=b&quot;+e+&quot;c&quot;},funcName:t}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a&quot;+e+&quot;=b&quot;},rvalue:!0,funcName:t+&quot;eq&quot;}),r[t+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;s&quot;],body:&quot;a=b&quot;+e+&quot;s&quot;},funcName:t+&quot;s&quot;}),r[t+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;s&quot;],body:&quot;a&quot;+e+&quot;=s&quot;},rvalue:!0,funcName:t+&quot;seq&quot;})}}();var l={not:&quot;!&quot;,bnot:&quot;~&quot;,neg:&quot;-&quot;,recip:&quot;1.0/&quot;};!function(){for(var t in l){var e=l[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=&quot;+e+&quot;b&quot;},funcName:t}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;],body:{args:[&quot;a&quot;],body:&quot;a=&quot;+e+&quot;a&quot;},rvalue:!0,count:2,funcName:t+&quot;eq&quot;})}}();var c={and:&quot;&amp;&amp;&quot;,or:&quot;||&quot;,eq:&quot;===&quot;,neq:&quot;!==&quot;,lt:&quot;&lt;&quot;,gt:&quot;&gt;&quot;,leq:&quot;&lt;=&quot;,geq:&quot;&gt;=&quot;};!function(){for(var t in c){var e=c[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=b&quot;+e+&quot;c&quot;},funcName:t}),r[t+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;s&quot;],body:&quot;a=b&quot;+e+&quot;s&quot;},funcName:t+&quot;s&quot;}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=a&quot;+e+&quot;b&quot;},rvalue:!0,count:2,funcName:t+&quot;eq&quot;}),r[t+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;s&quot;],body:&quot;a=a&quot;+e+&quot;s&quot;},rvalue:!0,count:2,funcName:t+&quot;seq&quot;})}}();var u=[&quot;abs&quot;,&quot;acos&quot;,&quot;asin&quot;,&quot;atan&quot;,&quot;ceil&quot;,&quot;cos&quot;,&quot;exp&quot;,&quot;floor&quot;,&quot;log&quot;,&quot;round&quot;,&quot;sin&quot;,&quot;sqrt&quot;,&quot;tan&quot;];!function(){for(var t=0;t&lt;u.length;++t){var e=u[t];r[e]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e}),r[e+&quot;eq&quot;]=o({args:[&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;],body:&quot;a=this_f(a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;eq&quot;})}}();var f=[&quot;max&quot;,&quot;min&quot;,&quot;atan2&quot;,&quot;pow&quot;];!function(){for(var t=0;t&lt;f.length;++t){var e=f[t];r[e]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(b,c)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e}),r[e+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(b,c)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;s&quot;}),r[e+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(a,b)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;eq&quot;}),r[e+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(a,b)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;seq&quot;})}}();var h=[&quot;atan2&quot;,&quot;pow&quot;];!function(){for(var t=0;t&lt;h.length;++t){var e=h[t];r[e+&quot;op&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(c,b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;op&quot;}),r[e+&quot;ops&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(c,b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;ops&quot;}),r[e+&quot;opeq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b,a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;opeq&quot;}),r[e+&quot;opseq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b,a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;opseq&quot;})}}(),r.any=n({args:[&quot;array&quot;],pre:i,body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(a){return true}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return false&quot;},funcName:&quot;any&quot;}),r.all=n({args:[&quot;array&quot;],pre:i,body:{args:[{name:&quot;x&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(!x){return false}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return true&quot;},funcName:&quot;all&quot;}),r.sum=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;this_s+=a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;sum&quot;}),r.prod=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=1&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;this_s*=a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;prod&quot;}),r.norm2squared=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:2}],body:&quot;this_s+=a*a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norm2squared&quot;}),r.norm2=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:2}],body:&quot;this_s+=a*a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return Math.sqrt(this_s)&quot;},funcName:&quot;norm2&quot;}),r.norminf=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:4}],body:&quot;if(-a&gt;this_s){this_s=-a}else if(a&gt;this_s){this_s=a}&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norminf&quot;}),r.norm1=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:3}],body:&quot;this_s+=a&lt;0?-a:a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norm1&quot;}),r.sup=n({args:[&quot;array&quot;],pre:{body:&quot;this_h=-Infinity&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]},body:{body:&quot;if(_inline_1_arg0_&gt;this_h)this_h=_inline_1_arg0_&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_h&quot;],localVars:[]},post:{body:&quot;return this_h&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]}}),r.inf=n({args:[&quot;array&quot;],pre:{body:&quot;this_h=Infinity&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]},body:{body:&quot;if(_inline_1_arg0_&lt;this_h)this_h=_inline_1_arg0_&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_h&quot;],localVars:[]},post:{body:&quot;return this_h&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]}}),r.argmin=n({args:[&quot;index&quot;,&quot;array&quot;,&quot;shape&quot;],pre:{body:&quot;{this_v=Infinity;this_i=_inline_0_arg2_.slice(0)}&quot;,args:[{name:&quot;_inline_0_arg0_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg1_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg2_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[]},body:{body:&quot;{if(_inline_1_arg1_&lt;this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k&lt;_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[&quot;_inline_1_k&quot;]},post:{body:&quot;{return this_i}&quot;,args:[],thisVars:[&quot;this_i&quot;],localVars:[]}}),r.argmax=n({args:[&quot;index&quot;,&quot;array&quot;,&quot;shape&quot;],pre:{body:&quot;{this_v=-Infinity;this_i=_inline_0_arg2_.slice(0)}&quot;,args:[{name:&quot;_inline_0_arg0_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg1_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg2_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[]},body:{body:&quot;{if(_inline_1_arg1_&gt;this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k&lt;_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[&quot;_inline_1_k&quot;]},post:{body:&quot;{return this_i}&quot;,args:[],thisVars:[&quot;this_i&quot;],localVars:[]}}),r.random=o({args:[&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.random&quot;,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;],body:&quot;a=this_f()&quot;,thisVars:[&quot;this_f&quot;]},funcName:&quot;random&quot;}),r.assign=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=b&quot;},funcName:&quot;assign&quot;}),r.assigns=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=b&quot;},funcName:&quot;assigns&quot;}),r.equals=n({args:[&quot;array&quot;,&quot;array&quot;],pre:i,body:{args:[{name:&quot;x&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;y&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(x!==y){return false}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return true&quot;},funcName:&quot;equals&quot;})},{&quot;cwise-compiler&quot;:151}],491:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ndarray&quot;),i=t(&quot;./doConvert.js&quot;);e.exports=function(t,e){for(var r=[],a=t,o=1;Array.isArray(a);)r.push(a.length),o*=a.length,a=a[0];return 0===r.length?n():(e||(e=n(new Float64Array(o),r)),i(e,t),e)}},{&quot;./doConvert.js&quot;:492,ndarray:495}],492:[function(t,e,r){e.exports=t(&quot;cwise-compiler&quot;)({args:[&quot;array&quot;,&quot;scalar&quot;,&quot;index&quot;],pre:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},body:{body:&quot;{\nvar _inline_1_v=_inline_1_arg1_,_inline_1_i\nfor(_inline_1_i=0;_inline_1_i&lt;_inline_1_arg2_.length-1;++_inline_1_i) {\n_inline_1_v=_inline_1_v[_inline_1_arg2_[_inline_1_i]]\n}\n_inline_1_arg0_=_inline_1_v[_inline_1_arg2_[_inline_1_arg2_.length-1]]\n}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!0,rvalue:!1,count:1},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg2_&quot;,lvalue:!1,rvalue:!0,count:4}],thisVars:[],localVars:[&quot;_inline_1_i&quot;,&quot;_inline_1_v&quot;]},post:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},funcName:&quot;convert&quot;,blockSize:64})},{&quot;cwise-compiler&quot;:151}],493:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=32;function a(t){switch(t){case&quot;uint8&quot;:return[n.mallocUint8,n.freeUint8];case&quot;uint16&quot;:return[n.mallocUint16,n.freeUint16];case&quot;uint32&quot;:return[n.mallocUint32,n.freeUint32];case&quot;int8&quot;:return[n.mallocInt8,n.freeInt8];case&quot;int16&quot;:return[n.mallocInt16,n.freeInt16];case&quot;int32&quot;:return[n.mallocInt32,n.freeInt32];case&quot;float32&quot;:return[n.mallocFloat,n.freeFloat];case&quot;float64&quot;:return[n.mallocDouble,n.freeDouble];default:return null}}function o(t){for(var e=[],r=0;r&lt;t;++r)e.push(&quot;s&quot;+r);for(r=0;r&lt;t;++r)e.push(&quot;n&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;d&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;e&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;f&quot;+r);return e}e.exports=function(t,e){var r=[&quot;'use strict'&quot;],n=[&quot;ndarraySortWrapper&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;);r.push([&quot;function &quot;,n,&quot;(&quot;,[&quot;array&quot;].join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));for(var s=[&quot;data=array.data,offset=array.offset|0,shape=array.shape,stride=array.stride&quot;],l=0;l&lt;t.length;++l)s.push([&quot;s&quot;,l,&quot;=stride[&quot;,l,&quot;]|0,n&quot;,l,&quot;=shape[&quot;,l,&quot;]|0&quot;].join(&quot;&quot;));var c=new Array(t.length),u=[];for(l=0;l&lt;t.length;++l){0!==(p=t[l])&amp;&amp;(0===u.length?c[p]=&quot;1&quot;:c[p]=u.join(&quot;*&quot;),u.push(&quot;n&quot;+p))}var f=-1,h=-1;for(l=0;l&lt;t.length;++l){var p,d=t[l];0!==d&amp;&amp;(f&gt;0?s.push([&quot;d&quot;,d,&quot;=s&quot;,d,&quot;-d&quot;,f,&quot;*n&quot;,f].join(&quot;&quot;)):s.push([&quot;d&quot;,d,&quot;=s&quot;,d].join(&quot;&quot;)),f=d),0!==(p=t.length-1-l)&amp;&amp;(h&gt;0?s.push([&quot;e&quot;,p,&quot;=s&quot;,p,&quot;-e&quot;,h,&quot;*n&quot;,h,&quot;,f&quot;,p,&quot;=&quot;,c[p],&quot;-f&quot;,h,&quot;*n&quot;,h].join(&quot;&quot;)):s.push([&quot;e&quot;,p,&quot;=s&quot;,p,&quot;,f&quot;,p,&quot;=&quot;,c[p]].join(&quot;&quot;)),h=p)}r.push(&quot;var &quot;+s.join(&quot;,&quot;));var g=[&quot;0&quot;,&quot;n0-1&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length));r.push([&quot;if(n0&lt;=&quot;,i,&quot;){&quot;,&quot;insertionSort(&quot;,g.join(&quot;,&quot;),&quot;)}else{&quot;,&quot;quickSort(&quot;,g.join(&quot;,&quot;),&quot;)}&quot;].join(&quot;&quot;)),r.push(&quot;}return &quot;+n);var m=new Function(&quot;insertionSort&quot;,&quot;quickSort&quot;,r.join(&quot;\n&quot;)),v=function(t,e){var r=[&quot;'use strict'&quot;],n=[&quot;ndarrayInsertionSort&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;),i=[&quot;left&quot;,&quot;right&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length)),s=a(e),l=[&quot;i,j,cptr,ptr=left*s0+offset&quot;];if(t.length&gt;1){for(var c=[],u=1;u&lt;t.length;++u)l.push(&quot;i&quot;+u),c.push(&quot;n&quot;+u);s?l.push(&quot;scratch=malloc(&quot;+c.join(&quot;*&quot;)+&quot;)&quot;):l.push(&quot;scratch=new Array(&quot;+c.join(&quot;*&quot;)+&quot;)&quot;),l.push(&quot;dptr&quot;,&quot;sptr&quot;,&quot;a&quot;,&quot;b&quot;)}else l.push(&quot;scratch&quot;);function f(t){return&quot;generic&quot;===e?[&quot;data.get(&quot;,t,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]&quot;].join(&quot;&quot;)}function h(t,r){return&quot;generic&quot;===e?[&quot;data.set(&quot;,t,&quot;,&quot;,r,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]=&quot;,r].join(&quot;&quot;)}if(r.push([&quot;function &quot;,n,&quot;(&quot;,i.join(&quot;,&quot;),&quot;){var &quot;,l.join(&quot;,&quot;)].join(&quot;&quot;),&quot;for(i=left+1;i&lt;=right;++i){&quot;,&quot;j=i;ptr+=s0&quot;,&quot;cptr=ptr&quot;),t.length&gt;1){r.push(&quot;dptr=0;sptr=ptr&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(&quot;scratch[dptr++]=&quot;,f(&quot;sptr&quot;));for(u=0;u&lt;t.length;++u){0!==(p=t[u])&amp;&amp;r.push(&quot;sptr+=d&quot;+p,&quot;}&quot;)}r.push(&quot;__g:while(j--\x3eleft){&quot;,&quot;dptr=0&quot;,&quot;sptr=cptr-s0&quot;);for(u=1;u&lt;t.length;++u)1===u&amp;&amp;r.push(&quot;__l:&quot;),r.push([&quot;for(i&quot;,u,&quot;=0;i&quot;,u,&quot;&lt;n&quot;,u,&quot;;++i&quot;,u,&quot;){&quot;].join(&quot;&quot;));r.push([&quot;a=&quot;,f(&quot;sptr&quot;),&quot;\nb=scratch[dptr]\nif(a&lt;b){break __g}\nif(a&gt;b){break __l}&quot;].join(&quot;&quot;));for(u=t.length-1;u&gt;=1;--u)r.push(&quot;sptr+=e&quot;+u,&quot;dptr+=f&quot;+u,&quot;}&quot;);r.push(&quot;dptr=cptr;sptr=cptr-s0&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(h(&quot;dptr&quot;,f(&quot;sptr&quot;)));for(u=0;u&lt;t.length;++u){0!==(p=t[u])&amp;&amp;r.push([&quot;dptr+=d&quot;,p,&quot;;sptr+=d&quot;,p].join(&quot;&quot;),&quot;}&quot;)}r.push(&quot;cptr-=s0\n}&quot;),r.push(&quot;dptr=cptr;sptr=0&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(h(&quot;dptr&quot;,&quot;scratch[sptr++]&quot;));for(u=0;u&lt;t.length;++u){var p;0!==(p=t[u])&amp;&amp;r.push(&quot;dptr+=d&quot;+p,&quot;}&quot;)}}else r.push(&quot;scratch=&quot;+f(&quot;ptr&quot;),&quot;while((j--\x3eleft)&amp;&amp;(&quot;+f(&quot;cptr-s0&quot;)+&quot;&gt;scratch)){&quot;,h(&quot;cptr&quot;,f(&quot;cptr-s0&quot;)),&quot;cptr-=s0&quot;,&quot;}&quot;,h(&quot;cptr&quot;,&quot;scratch&quot;));return r.push(&quot;}&quot;),t.length&gt;1&amp;&amp;s&amp;&amp;r.push(&quot;free(scratch)&quot;),r.push(&quot;} return &quot;+n),s?new Function(&quot;malloc&quot;,&quot;free&quot;,r.join(&quot;\n&quot;))(s[0],s[1]):new Function(r.join(&quot;\n&quot;))()}(t,e),y=function(t,e,r){var n=[&quot;'use strict'&quot;],s=[&quot;ndarrayQuickSort&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;),l=[&quot;left&quot;,&quot;right&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length)),c=a(e),u=0;n.push([&quot;function &quot;,s,&quot;(&quot;,l.join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));var f=[&quot;sixth=((right-left+1)/6)|0&quot;,&quot;index1=left+sixth&quot;,&quot;index5=right-sixth&quot;,&quot;index3=(left+right)&gt;&gt;1&quot;,&quot;index2=index3-sixth&quot;,&quot;index4=index3+sixth&quot;,&quot;el1=index1&quot;,&quot;el2=index2&quot;,&quot;el3=index3&quot;,&quot;el4=index4&quot;,&quot;el5=index5&quot;,&quot;less=left+1&quot;,&quot;great=right-1&quot;,&quot;pivots_are_equal=true&quot;,&quot;tmp&quot;,&quot;tmp0&quot;,&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;k&quot;,&quot;ptr0&quot;,&quot;ptr1&quot;,&quot;ptr2&quot;,&quot;comp_pivot1=0&quot;,&quot;comp_pivot2=0&quot;,&quot;comp=0&quot;];if(t.length&gt;1){for(var h=[],p=1;p&lt;t.length;++p)h.push(&quot;n&quot;+p),f.push(&quot;i&quot;+p);for(p=0;p&lt;8;++p)f.push(&quot;b_ptr&quot;+p);f.push(&quot;ptr3&quot;,&quot;ptr4&quot;,&quot;ptr5&quot;,&quot;ptr6&quot;,&quot;ptr7&quot;,&quot;pivot_ptr&quot;,&quot;ptr_shift&quot;,&quot;elementSize=&quot;+h.join(&quot;*&quot;)),c?f.push(&quot;pivot1=malloc(elementSize)&quot;,&quot;pivot2=malloc(elementSize)&quot;):f.push(&quot;pivot1=new Array(elementSize),pivot2=new Array(elementSize)&quot;)}else f.push(&quot;pivot1&quot;,&quot;pivot2&quot;);function d(t){return[&quot;(offset+&quot;,t,&quot;*s0)&quot;].join(&quot;&quot;)}function g(t){return&quot;generic&quot;===e?[&quot;data.get(&quot;,t,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]&quot;].join(&quot;&quot;)}function m(t,r){return&quot;generic&quot;===e?[&quot;data.set(&quot;,t,&quot;,&quot;,r,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]=&quot;,r].join(&quot;&quot;)}function v(e,r,i){if(1===e.length)n.push(&quot;ptr0=&quot;+d(e[0]));else for(var a=0;a&lt;e.length;++a)n.push([&quot;b_ptr&quot;,a,&quot;=s0*&quot;,e[a]].join(&quot;&quot;));r&amp;&amp;n.push(&quot;pivot_ptr=0&quot;),n.push(&quot;ptr_shift=offset&quot;);for(a=t.length-1;a&gt;=0;--a){0!==(o=t[a])&amp;&amp;n.push([&quot;for(i&quot;,o,&quot;=0;i&quot;,o,&quot;&lt;n&quot;,o,&quot;;++i&quot;,o,&quot;){&quot;].join(&quot;&quot;))}if(e.length&gt;1)for(a=0;a&lt;e.length;++a)n.push([&quot;ptr&quot;,a,&quot;=b_ptr&quot;,a,&quot;+ptr_shift&quot;].join(&quot;&quot;));n.push(i),r&amp;&amp;n.push(&quot;++pivot_ptr&quot;);for(a=0;a&lt;t.length;++a){var o;0!==(o=t[a])&amp;&amp;(e.length&gt;1?n.push(&quot;ptr_shift+=d&quot;+o):n.push(&quot;ptr0+=d&quot;+o),n.push(&quot;}&quot;))}}function y(e,r,i,a){if(1===r.length)n.push(&quot;ptr0=&quot;+d(r[0]));else{for(var o=0;o&lt;r.length;++o)n.push([&quot;b_ptr&quot;,o,&quot;=s0*&quot;,r[o]].join(&quot;&quot;));n.push(&quot;ptr_shift=offset&quot;)}i&amp;&amp;n.push(&quot;pivot_ptr=0&quot;),e&amp;&amp;n.push(e+&quot;:&quot;);for(o=1;o&lt;t.length;++o)n.push([&quot;for(i&quot;,o,&quot;=0;i&quot;,o,&quot;&lt;n&quot;,o,&quot;;++i&quot;,o,&quot;){&quot;].join(&quot;&quot;));if(r.length&gt;1)for(o=0;o&lt;r.length;++o)n.push([&quot;ptr&quot;,o,&quot;=b_ptr&quot;,o,&quot;+ptr_shift&quot;].join(&quot;&quot;));n.push(a);for(o=t.length-1;o&gt;=1;--o)i&amp;&amp;n.push(&quot;pivot_ptr+=f&quot;+o),r.length&gt;1?n.push(&quot;ptr_shift+=e&quot;+o):n.push(&quot;ptr0+=e&quot;+o),n.push(&quot;}&quot;)}function x(){t.length&gt;1&amp;&amp;c&amp;&amp;n.push(&quot;free(pivot1)&quot;,&quot;free(pivot2)&quot;)}function b(e,r){var i=&quot;el&quot;+e,a=&quot;el&quot;+r;if(t.length&gt;1){var o=&quot;__l&quot;+ ++u;y(o,[i,a],!1,[&quot;comp=&quot;,g(&quot;ptr0&quot;),&quot;-&quot;,g(&quot;ptr1&quot;),&quot;\n&quot;,&quot;if(comp&gt;0){tmp0=&quot;,i,&quot;;&quot;,i,&quot;=&quot;,a,&quot;;&quot;,a,&quot;=tmp0;break &quot;,o,&quot;}\n&quot;,&quot;if(comp&lt;0){break &quot;,o,&quot;}&quot;].join(&quot;&quot;))}else n.push([&quot;if(&quot;,g(d(i)),&quot;&gt;&quot;,g(d(a)),&quot;){tmp0=&quot;,i,&quot;;&quot;,i,&quot;=&quot;,a,&quot;;&quot;,a,&quot;=tmp0}&quot;].join(&quot;&quot;))}function _(e,r){t.length&gt;1?v([e,r],!1,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;))):n.push(m(d(e),g(d(r))))}function w(e,r,i){if(t.length&gt;1){var a=&quot;__l&quot;+ ++u;y(a,[r],!0,[e,&quot;=&quot;,g(&quot;ptr0&quot;),&quot;-pivot&quot;,i,&quot;[pivot_ptr]\n&quot;,&quot;if(&quot;,e,&quot;!==0){break &quot;,a,&quot;}&quot;].join(&quot;&quot;))}else n.push([e,&quot;=&quot;,g(d(r)),&quot;-pivot&quot;,i].join(&quot;&quot;))}function T(e,r){t.length&gt;1?v([e,r],!1,[&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,&quot;tmp&quot;)].join(&quot;&quot;)):n.push([&quot;ptr0=&quot;,d(e),&quot;\n&quot;,&quot;ptr1=&quot;,d(r),&quot;\n&quot;,&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,&quot;tmp&quot;)].join(&quot;&quot;))}function k(e,r,i){t.length&gt;1?(v([e,r,i],!1,[&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,g(&quot;ptr2&quot;)),&quot;\n&quot;,m(&quot;ptr2&quot;,&quot;tmp&quot;)].join(&quot;&quot;)),n.push(&quot;++&quot;+r,&quot;--&quot;+i)):n.push([&quot;ptr0=&quot;,d(e),&quot;\n&quot;,&quot;ptr1=&quot;,d(r),&quot;\n&quot;,&quot;ptr2=&quot;,d(i),&quot;\n&quot;,&quot;++&quot;,r,&quot;\n&quot;,&quot;--&quot;,i,&quot;\n&quot;,&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,g(&quot;ptr2&quot;)),&quot;\n&quot;,m(&quot;ptr2&quot;,&quot;tmp&quot;)].join(&quot;&quot;))}function M(t,e){T(t,e),n.push(&quot;--&quot;+e)}function A(e,r,i){t.length&gt;1?v([e,r],!0,[m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,[&quot;pivot&quot;,i,&quot;[pivot_ptr]&quot;].join(&quot;&quot;))].join(&quot;&quot;)):n.push(m(d(e),g(d(r))),m(d(r),&quot;pivot&quot;+i))}function S(e,r){n.push([&quot;if((&quot;,r,&quot;-&quot;,e,&quot;)&lt;=&quot;,i,&quot;){\n&quot;,&quot;insertionSort(&quot;,e,&quot;,&quot;,r,&quot;,data,offset,&quot;,o(t.length).join(&quot;,&quot;),&quot;)\n&quot;,&quot;}else{\n&quot;,s,&quot;(&quot;,e,&quot;,&quot;,r,&quot;,data,offset,&quot;,o(t.length).join(&quot;,&quot;),&quot;)\n&quot;,&quot;}&quot;].join(&quot;&quot;))}function E(e,r,i){t.length&gt;1?(n.push([&quot;__l&quot;,++u,&quot;:while(true){&quot;].join(&quot;&quot;)),v([e],!0,[&quot;if(&quot;,g(&quot;ptr0&quot;),&quot;!==pivot&quot;,r,&quot;[pivot_ptr]){break __l&quot;,u,&quot;}&quot;].join(&quot;&quot;)),n.push(i,&quot;}&quot;)):n.push([&quot;while(&quot;,g(d(e)),&quot;===pivot&quot;,r,&quot;){&quot;,i,&quot;}&quot;].join(&quot;&quot;))}return n.push(&quot;var &quot;+f.join(&quot;,&quot;)),b(1,2),b(4,5),b(1,3),b(2,3),b(1,4),b(3,4),b(2,5),b(2,3),b(4,5),t.length&gt;1?v([&quot;el1&quot;,&quot;el2&quot;,&quot;el3&quot;,&quot;el4&quot;,&quot;el5&quot;,&quot;index1&quot;,&quot;index3&quot;,&quot;index5&quot;],!0,[&quot;pivot1[pivot_ptr]=&quot;,g(&quot;ptr1&quot;),&quot;\n&quot;,&quot;pivot2[pivot_ptr]=&quot;,g(&quot;ptr3&quot;),&quot;\n&quot;,&quot;pivots_are_equal=pivots_are_equal&amp;&amp;(pivot1[pivot_ptr]===pivot2[pivot_ptr])\n&quot;,&quot;x=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,&quot;y=&quot;,g(&quot;ptr2&quot;),&quot;\n&quot;,&quot;z=&quot;,g(&quot;ptr4&quot;),&quot;\n&quot;,m(&quot;ptr5&quot;,&quot;x&quot;),&quot;\n&quot;,m(&quot;ptr6&quot;,&quot;y&quot;),&quot;\n&quot;,m(&quot;ptr7&quot;,&quot;z&quot;)].join(&quot;&quot;)):n.push([&quot;pivot1=&quot;,g(d(&quot;el2&quot;)),&quot;\n&quot;,&quot;pivot2=&quot;,g(d(&quot;el4&quot;)),&quot;\n&quot;,&quot;pivots_are_equal=pivot1===pivot2\n&quot;,&quot;x=&quot;,g(d(&quot;el1&quot;)),&quot;\n&quot;,&quot;y=&quot;,g(d(&quot;el3&quot;)),&quot;\n&quot;,&quot;z=&quot;,g(d(&quot;el5&quot;)),&quot;\n&quot;,m(d(&quot;index1&quot;),&quot;x&quot;),&quot;\n&quot;,m(d(&quot;index3&quot;),&quot;y&quot;),&quot;\n&quot;,m(d(&quot;index5&quot;),&quot;z&quot;)].join(&quot;&quot;)),_(&quot;index2&quot;,&quot;left&quot;),_(&quot;index4&quot;,&quot;right&quot;),n.push(&quot;if(pivots_are_equal){&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp&quot;,&quot;k&quot;,1),n.push(&quot;if(comp===0){continue}&quot;),n.push(&quot;if(comp&lt;0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&gt;0){&quot;),n.push(&quot;great--&quot;),n.push(&quot;}else if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;break&quot;),n.push(&quot;}else{&quot;),M(&quot;k&quot;,&quot;great&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}else{&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp_pivot1&quot;,&quot;k&quot;,1),n.push(&quot;if(comp_pivot1&lt;0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),w(&quot;comp_pivot2&quot;,&quot;k&quot;,2),n.push(&quot;if(comp_pivot2&gt;0){&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,2),n.push(&quot;if(comp&gt;0){&quot;),n.push(&quot;if(--great&lt;k){break}&quot;),n.push(&quot;continue&quot;),n.push(&quot;}else{&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;}else{&quot;),M(&quot;k&quot;,&quot;great&quot;),n.push(&quot;}&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),A(&quot;left&quot;,&quot;(less-1)&quot;,1),A(&quot;right&quot;,&quot;(great+1)&quot;,2),S(&quot;left&quot;,&quot;(less-2)&quot;),S(&quot;(great+2)&quot;,&quot;right&quot;),n.push(&quot;if(pivots_are_equal){&quot;),x(),n.push(&quot;return&quot;),n.push(&quot;}&quot;),n.push(&quot;if(less&lt;index1&amp;&amp;great&gt;index5){&quot;),E(&quot;less&quot;,1,&quot;++less&quot;),E(&quot;great&quot;,2,&quot;--great&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp_pivot1&quot;,&quot;k&quot;,1),n.push(&quot;if(comp_pivot1===0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),w(&quot;comp_pivot2&quot;,&quot;k&quot;,2),n.push(&quot;if(comp_pivot2===0){&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,2),n.push(&quot;if(comp===0){&quot;),n.push(&quot;if(--great&lt;k){break}&quot;),n.push(&quot;continue&quot;),n.push(&quot;}else{&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;}else{&quot;),M(&quot;k&quot;,&quot;great&quot;),n.push(&quot;}&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),x(),S(&quot;less&quot;,&quot;great&quot;),n.push(&quot;}return &quot;+s),t.length&gt;1&amp;&amp;c?new Function(&quot;insertionSort&quot;,&quot;malloc&quot;,&quot;free&quot;,n.join(&quot;\n&quot;))(r,c[0],c[1]):new Function(&quot;insertionSort&quot;,n.join(&quot;\n&quot;))(r)}(t,e,v);return m(v,y)}},{&quot;typedarray-pool&quot;:595}],494:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/compile_sort.js&quot;),i={};e.exports=function(t){var e=t.order,r=t.dtype,a=[e,r].join(&quot;:&quot;),o=i[a];return o||(i[a]=o=n(e,r)),o(t),t}},{&quot;./lib/compile_sort.js&quot;:493}],495:[function(t,e,r){var n=t(&quot;iota-array&quot;),i=t(&quot;is-buffer&quot;),a=&quot;undefined&quot;!=typeof Float64Array;function o(t,e){return t[0]-e[0]}function s(){var t,e=this.stride,r=new Array(e.length);for(t=0;t&lt;r.length;++t)r[t]=[Math.abs(e[t]),t];r.sort(o);var n=new Array(r.length);for(t=0;t&lt;n.length;++t)n[t]=r[t][1];return n}function l(t,e){var r=[&quot;View&quot;,e,&quot;d&quot;,t].join(&quot;&quot;);e&lt;0&amp;&amp;(r=&quot;View_Nil&quot;+t);var i=&quot;generic&quot;===t;if(-1===e){var a=&quot;function &quot;+r+&quot;(a){this.data=a;};var proto=&quot;+r+&quot;.prototype;proto.dtype='&quot;+t+&quot;';proto.index=function(){return -1};proto.size=0;proto.dimension=-1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function(){return new &quot;+r+&quot;(this.data);};proto.get=proto.set=function(){};proto.pick=function(){return null};return function construct_&quot;+r+&quot;(a){return new &quot;+r+&quot;(a);}&quot;;return new Function(a)()}if(0===e){a=&quot;function &quot;+r+&quot;(a,d) {this.data = a;this.offset = d};var proto=&quot;+r+&quot;.prototype;proto.dtype='&quot;+t+&quot;';proto.index=function(){return this.offset};proto.dimension=0;proto.size=1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function &quot;+r+&quot;_copy() {return new &quot;+r+&quot;(this.data,this.offset)};proto.pick=function &quot;+r+&quot;_pick(){return TrivialArray(this.data);};proto.valueOf=proto.get=function &quot;+r+&quot;_get(){return &quot;+(i?&quot;this.data.get(this.offset)&quot;:&quot;this.data[this.offset]&quot;)+&quot;};proto.set=function &quot;+r+&quot;_set(v){return &quot;+(i?&quot;this.data.set(this.offset,v)&quot;:&quot;this.data[this.offset]=v&quot;)+&quot;};return function construct_&quot;+r+&quot;(a,b,c,d){return new &quot;+r+&quot;(a,d)}&quot;;return new Function(&quot;TrivialArray&quot;,a)(c[t][0])}a=[&quot;'use strict'&quot;];var o=n(e),l=o.map((function(t){return&quot;i&quot;+t})),u=&quot;this.offset+&quot;+o.map((function(t){return&quot;this.stride[&quot;+t+&quot;]*i&quot;+t})).join(&quot;+&quot;),f=o.map((function(t){return&quot;b&quot;+t})).join(&quot;,&quot;),h=o.map((function(t){return&quot;c&quot;+t})).join(&quot;,&quot;);a.push(&quot;function &quot;+r+&quot;(a,&quot;+f+&quot;,&quot;+h+&quot;,d){this.data=a&quot;,&quot;this.shape=[&quot;+f+&quot;]&quot;,&quot;this.stride=[&quot;+h+&quot;]&quot;,&quot;this.offset=d|0}&quot;,&quot;var proto=&quot;+r+&quot;.prototype&quot;,&quot;proto.dtype='&quot;+t+&quot;'&quot;,&quot;proto.dimension=&quot;+e),a.push(&quot;Object.defineProperty(proto,'size',{get:function &quot;+r+&quot;_size(){return &quot;+o.map((function(t){return&quot;this.shape[&quot;+t+&quot;]&quot;})).join(&quot;*&quot;),&quot;}})&quot;),1===e?a.push(&quot;proto.order=[0]&quot;):(a.push(&quot;Object.defineProperty(proto,'order',{get:&quot;),e&lt;4?(a.push(&quot;function &quot;+r+&quot;_order(){&quot;),2===e?a.push(&quot;return (Math.abs(this.stride[0])&gt;Math.abs(this.stride[1]))?[1,0]:[0,1]}})&quot;):3===e&amp;&amp;a.push(&quot;var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0&gt;s1){if(s1&gt;s2){return [2,1,0];}else if(s0&gt;s2){return [1,2,0];}else{return [1,0,2];}}else if(s0&gt;s2){return [2,0,1];}else if(s2&gt;s1){return [0,1,2];}else{return [0,2,1];}}})&quot;)):a.push(&quot;ORDER})&quot;)),a.push(&quot;proto.set=function &quot;+r+&quot;_set(&quot;+l.join(&quot;,&quot;)+&quot;,v){&quot;),i?a.push(&quot;return this.data.set(&quot;+u+&quot;,v)}&quot;):a.push(&quot;return this.data[&quot;+u+&quot;]=v}&quot;),a.push(&quot;proto.get=function &quot;+r+&quot;_get(&quot;+l.join(&quot;,&quot;)+&quot;){&quot;),i?a.push(&quot;return this.data.get(&quot;+u+&quot;)}&quot;):a.push(&quot;return this.data[&quot;+u+&quot;]}&quot;),a.push(&quot;proto.index=function &quot;+r+&quot;_index(&quot;,l.join(),&quot;){return &quot;+u+&quot;}&quot;),a.push(&quot;proto.hi=function &quot;+r+&quot;_hi(&quot;+l.join(&quot;,&quot;)+&quot;){return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return[&quot;(typeof i&quot;,t,&quot;!=='number'||i&quot;,t,&quot;&lt;0)?this.shape[&quot;,t,&quot;]:i&quot;,t,&quot;|0&quot;].join(&quot;&quot;)})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;this.stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,this.offset)}&quot;);var p=o.map((function(t){return&quot;a&quot;+t+&quot;=this.shape[&quot;+t+&quot;]&quot;})),d=o.map((function(t){return&quot;c&quot;+t+&quot;=this.stride[&quot;+t+&quot;]&quot;}));a.push(&quot;proto.lo=function &quot;+r+&quot;_lo(&quot;+l.join(&quot;,&quot;)+&quot;){var b=this.offset,d=0,&quot;+p.join(&quot;,&quot;)+&quot;,&quot;+d.join(&quot;,&quot;));for(var g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'&amp;&amp;i&quot;+g+&quot;&gt;=0){d=i&quot;+g+&quot;|0;b+=c&quot;+g+&quot;*d;a&quot;+g+&quot;-=d}&quot;);a.push(&quot;return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return&quot;a&quot;+t})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;c&quot;+t})).join(&quot;,&quot;)+&quot;,b)}&quot;),a.push(&quot;proto.step=function &quot;+r+&quot;_step(&quot;+l.join(&quot;,&quot;)+&quot;){var &quot;+o.map((function(t){return&quot;a&quot;+t+&quot;=this.shape[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;b&quot;+t+&quot;=this.stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,c=this.offset,d=0,ceil=Math.ceil&quot;);for(g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'){d=i&quot;+g+&quot;|0;if(d&lt;0){c+=b&quot;+g+&quot;*(a&quot;+g+&quot;-1);a&quot;+g+&quot;=ceil(-a&quot;+g+&quot;/d)}else{a&quot;+g+&quot;=ceil(a&quot;+g+&quot;/d)}b&quot;+g+&quot;*=d}&quot;);a.push(&quot;return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return&quot;a&quot;+t})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;b&quot;+t})).join(&quot;,&quot;)+&quot;,c)}&quot;);var m=new Array(e),v=new Array(e);for(g=0;g&lt;e;++g)m[g]=&quot;a[i&quot;+g+&quot;]&quot;,v[g]=&quot;b[i&quot;+g+&quot;]&quot;;a.push(&quot;proto.transpose=function &quot;+r+&quot;_transpose(&quot;+l+&quot;){&quot;+l.map((function(t,e){return t+&quot;=(&quot;+t+&quot;===undefined?&quot;+e+&quot;:&quot;+t+&quot;|0)&quot;})).join(&quot;;&quot;),&quot;var a=this.shape,b=this.stride;return new &quot;+r+&quot;(this.data,&quot;+m.join(&quot;,&quot;)+&quot;,&quot;+v.join(&quot;,&quot;)+&quot;,this.offset)}&quot;),a.push(&quot;proto.pick=function &quot;+r+&quot;_pick(&quot;+l+&quot;){var a=[],b=[],c=this.offset&quot;);for(g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'&amp;&amp;i&quot;+g+&quot;&gt;=0){c=(c+this.stride[&quot;+g+&quot;]*i&quot;+g+&quot;)|0}else{a.push(this.shape[&quot;+g+&quot;]);b.push(this.stride[&quot;+g+&quot;])}&quot;);return a.push(&quot;var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}&quot;),a.push(&quot;return function construct_&quot;+r+&quot;(data,shape,stride,offset){return new &quot;+r+&quot;(data,&quot;+o.map((function(t){return&quot;shape[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,offset)}&quot;),new Function(&quot;CTOR_LIST&quot;,&quot;ORDER&quot;,a.join(&quot;\n&quot;))(c[t],s)}var c={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],bigint64:[],biguint64:[],buffer:[],generic:[]};e.exports=function(t,e,r,n){if(void 0===t)return(0,c.array[0])([]);&quot;number&quot;==typeof t&amp;&amp;(t=[t]),void 0===e&amp;&amp;(e=[t.length]);var o=e.length;if(void 0===r){r=new Array(o);for(var s=o-1,u=1;s&gt;=0;--s)r[s]=u,u*=e[s]}if(void 0===n){n=0;for(s=0;s&lt;o;++s)r[s]&lt;0&amp;&amp;(n-=(e[s]-1)*r[s])}for(var f=function(t){if(i(t))return&quot;buffer&quot;;if(a)switch(Object.prototype.toString.call(t)){case&quot;[object Float64Array]&quot;:return&quot;float64&quot;;case&quot;[object Float32Array]&quot;:return&quot;float32&quot;;case&quot;[object Int8Array]&quot;:return&quot;int8&quot;;case&quot;[object Int16Array]&quot;:return&quot;int16&quot;;case&quot;[object Int32Array]&quot;:return&quot;int32&quot;;case&quot;[object Uint8Array]&quot;:return&quot;uint8&quot;;case&quot;[object Uint16Array]&quot;:return&quot;uint16&quot;;case&quot;[object Uint32Array]&quot;:return&quot;uint32&quot;;case&quot;[object Uint8ClampedArray]&quot;:return&quot;uint8_clamped&quot;;case&quot;[object BigInt64Array]&quot;:return&quot;bigint64&quot;;case&quot;[object BigUint64Array]&quot;:return&quot;biguint64&quot;}return Array.isArray(t)?&quot;array&quot;:&quot;generic&quot;}(t),h=c[f];h.length&lt;=o+1;)h.push(l(f,h.length-1));return(0,h[o+1])(t,e,r,n)}},{&quot;iota-array&quot;:463,&quot;is-buffer&quot;:465}],496:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;double-bits&quot;),i=Math.pow(2,-1074);e.exports=function(t,e){if(isNaN(t)||isNaN(e))return NaN;if(t===e)return t;if(0===t)return e&lt;0?-i:i;var r=n.hi(t),a=n.lo(t);e&gt;t==t&gt;0?a===-1&gt;&gt;&gt;0?(r+=1,a=0):a+=1:0===a?(a=-1&gt;&gt;&gt;0,r-=1):a-=1;return n.pack(a,r)}},{&quot;double-bits&quot;:173}],497:[function(t,e,r){var n=Math.PI,i=c(120);function a(t,e,r,n){return[&quot;C&quot;,t,e,r,n,r,n]}function o(t,e,r,n,i,a){return[&quot;C&quot;,t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function s(t,e,r,a,o,c,u,f,h,p){if(p)T=p[0],k=p[1],_=p[2],w=p[3];else{var d=l(t,e,-o);t=d.x,e=d.y;var g=(t-(f=(d=l(f,h,-o)).x))/2,m=(e-(h=d.y))/2,v=g*g/(r*r)+m*m/(a*a);v&gt;1&amp;&amp;(r*=v=Math.sqrt(v),a*=v);var y=r*r,x=a*a,b=(c==u?-1:1)*Math.sqrt(Math.abs((y*x-y*m*m-x*g*g)/(y*m*m+x*g*g)));b==1/0&amp;&amp;(b=1);var _=b*r*m/a+(t+f)/2,w=b*-a*g/r+(e+h)/2,T=Math.asin(((e-w)/a).toFixed(9)),k=Math.asin(((h-w)/a).toFixed(9));(T=t&lt;_?n-T:T)&lt;0&amp;&amp;(T=2*n+T),(k=f&lt;_?n-k:k)&lt;0&amp;&amp;(k=2*n+k),u&amp;&amp;T&gt;k&amp;&amp;(T-=2*n),!u&amp;&amp;k&gt;T&amp;&amp;(k-=2*n)}if(Math.abs(k-T)&gt;i){var M=k,A=f,S=h;k=T+i*(u&amp;&amp;k&gt;T?1:-1);var E=s(f=_+r*Math.cos(k),h=w+a*Math.sin(k),r,a,o,0,u,A,S,[k,M,_,w])}var C=Math.tan((k-T)/4),L=4/3*r*C,I=4/3*a*C,P=[2*t-(t+L*Math.sin(T)),2*e-(e-I*Math.cos(T)),f+L*Math.sin(k),h-I*Math.cos(k),f,h];if(p)return P;E&amp;&amp;(P=P.concat(E));for(var z=0;z&lt;P.length;){var O=l(P[z],P[z+1],o);P[z++]=O.x,P[z++]=O.y}return P}function l(t,e,r){return{x:t*Math.cos(r)-e*Math.sin(r),y:t*Math.sin(r)+e*Math.cos(r)}}function c(t){return t*(n/180)}e.exports=function(t){for(var e,r=[],n=0,i=0,l=0,u=0,f=null,h=null,p=0,d=0,g=0,m=t.length;g&lt;m;g++){var v=t[g],y=v[0];switch(y){case&quot;M&quot;:l=v[1],u=v[2];break;case&quot;A&quot;:(v=s(p,d,v[1],v[2],c(v[3]),v[4],v[5],v[6],v[7])).unshift(&quot;C&quot;),v.length&gt;7&amp;&amp;(r.push(v.splice(0,7)),v.unshift(&quot;C&quot;));break;case&quot;S&quot;:var x=p,b=d;&quot;C&quot;!=e&amp;&amp;&quot;S&quot;!=e||(x+=x-n,b+=b-i),v=[&quot;C&quot;,x,b,v[1],v[2],v[3],v[4]];break;case&quot;T&quot;:&quot;Q&quot;==e||&quot;T&quot;==e?(f=2*p-f,h=2*d-h):(f=p,h=d),v=o(p,d,f,h,v[1],v[2]);break;case&quot;Q&quot;:f=v[1],h=v[2],v=o(p,d,v[1],v[2],v[3],v[4]);break;case&quot;L&quot;:v=a(p,d,v[1],v[2]);break;case&quot;H&quot;:v=a(p,d,v[1],d);break;case&quot;V&quot;:v=a(p,d,p,v[1]);break;case&quot;Z&quot;:v=a(p,d,l,u)}e=y,p=v[v.length-2],d=v[v.length-1],v.length&gt;4?(n=v[v.length-4],i=v[v.length-3]):(n=p,i=d),r.push(v)}return r}},{}],498:[function(t,e,r){r.vertexNormals=function(t,e,r){for(var n=e.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o&lt;n;++o)i[o]=[0,0,0];for(o=0;o&lt;t.length;++o)for(var s=t[o],l=0,c=s[s.length-1],u=s[0],f=0;f&lt;s.length;++f){l=c,c=u,u=s[(f+1)%s.length];for(var h=e[l],p=e[c],d=e[u],g=new Array(3),m=0,v=new Array(3),y=0,x=0;x&lt;3;++x)g[x]=h[x]-p[x],m+=g[x]*g[x],v[x]=d[x]-p[x],y+=v[x]*v[x];if(m*y&gt;a){var b=i[c],_=1/Math.sqrt(m*y);for(x=0;x&lt;3;++x){var w=(x+1)%3,T=(x+2)%3;b[x]+=_*(v[w]*g[T]-v[T]*g[w])}}}for(o=0;o&lt;n;++o){b=i[o];var k=0;for(x=0;x&lt;3;++x)k+=b[x]*b[x];if(k&gt;a)for(_=1/Math.sqrt(k),x=0;x&lt;3;++x)b[x]*=_;else for(x=0;x&lt;3;++x)b[x]=0}return i},r.faceNormals=function(t,e,r){for(var n=t.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o&lt;n;++o){for(var s=t[o],l=new Array(3),c=0;c&lt;3;++c)l[c]=e[s[c]];var u=new Array(3),f=new Array(3);for(c=0;c&lt;3;++c)u[c]=l[1][c]-l[0][c],f[c]=l[2][c]-l[0][c];var h=new Array(3),p=0;for(c=0;c&lt;3;++c){var d=(c+1)%3,g=(c+2)%3;h[c]=u[d]*f[g]-u[g]*f[d],p+=h[c]*h[c]}p=p&gt;a?1/Math.sqrt(p):0;for(c=0;c&lt;3;++c)h[c]*=p;i[o]=h}return i}},{}],499:[function(t,e,r){
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
&quot;use strict&quot;;var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError(&quot;Object.assign cannot be called with null or undefined&quot;);return Object(t)}e.exports=function(){try{if(!Object.assign)return!1;var t=new String(&quot;abc&quot;);if(t[5]=&quot;de&quot;,&quot;5&quot;===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r&lt;10;r++)e[&quot;_&quot;+String.fromCharCode(r)]=r;if(&quot;0123456789&quot;!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(&quot;&quot;))return!1;var n={};return&quot;abcdefghijklmnopqrst&quot;.split(&quot;&quot;).forEach((function(t){n[t]=t})),&quot;abcdefghijklmnopqrst&quot;===Object.keys(Object.assign({},n)).join(&quot;&quot;)}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,l=o(t),c=1;c&lt;arguments.length;c++){for(var u in r=Object(arguments[c]))i.call(r,u)&amp;&amp;(l[u]=r[u]);if(n){s=n(r);for(var f=0;f&lt;s.length;f++)a.call(r,s[f])&amp;&amp;(l[s[f]]=r[s[f]])}}return l}},{}],500:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a,o,s,l,c){var u=e+a+c;if(f&gt;0){var f=Math.sqrt(u+1);t[0]=.5*(o-l)/f,t[1]=.5*(s-n)/f,t[2]=.5*(r-a)/f,t[3]=.5*f}else{var h=Math.max(e,a,c);f=Math.sqrt(2*h-u+1);e&gt;=h?(t[0]=.5*f,t[1]=.5*(i+r)/f,t[2]=.5*(s+n)/f,t[3]=.5*(o-l)/f):a&gt;=h?(t[0]=.5*(r+i)/f,t[1]=.5*f,t[2]=.5*(l+o)/f,t[3]=.5*(s-n)/f):(t[0]=.5*(n+s)/f,t[1]=.5*(o+l)/f,t[2]=.5*f,t[3]=.5*(r-i)/f)}return t}},{}],501:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.rotation||[0,0,0,1],n=t.radius||1;e=[].slice.call(e,0,3),u(r=[].slice.call(r,0,4),r);var i=new f(r,e,Math.log(n));i.setDistanceLimits(t.zoomMin,t.zoomMax),(&quot;eye&quot;in t||&quot;up&quot;in t)&amp;&amp;i.lookAt(0,t.eye,t.center,t.up);return i};var n=t(&quot;filtered-vector&quot;),i=t(&quot;gl-mat4/lookAt&quot;),a=t(&quot;gl-mat4/fromQuat&quot;),o=t(&quot;gl-mat4/invert&quot;),s=t(&quot;./lib/quatFromFrame&quot;);function l(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function c(t,e,r,n){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2)+Math.pow(n,2))}function u(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=c(r,n,i,a);o&gt;1e-6?(t[0]=r/o,t[1]=n/o,t[2]=i/o,t[3]=a/o):(t[0]=t[1]=t[2]=0,t[3]=1)}function f(t,e,r){this.radius=n([r]),this.center=n(e),this.rotation=n(t),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var h=f.prototype;h.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},h.recalcMatrix=function(t){this.radius.curve(t),this.center.curve(t),this.rotation.curve(t);var e=this.computedRotation;u(e,e);var r=this.computedMatrix;a(r,e);var n=this.computedCenter,i=this.computedEye,o=this.computedUp,s=Math.exp(this.computedRadius[0]);i[0]=n[0]+s*r[2],i[1]=n[1]+s*r[6],i[2]=n[2]+s*r[10],o[0]=r[1],o[1]=r[5],o[2]=r[9];for(var l=0;l&lt;3;++l){for(var c=0,f=0;f&lt;3;++f)c+=r[l+4*f]*i[f];r[12+l]=-c}},h.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n&lt;16;++n)e[n]=r[n];return e}return r},h.idle=function(t){this.center.idle(t),this.radius.idle(t),this.rotation.idle(t)},h.flush=function(t){this.center.flush(t),this.radius.flush(t),this.rotation.flush(t)},h.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=i[1],o=i[5],s=i[9],c=l(a,o,s);a/=c,o/=c,s/=c;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=l(u-=a*p,f-=o*p,h-=s*p);u/=d,f/=d,h/=d;var g=i[2],m=i[6],v=i[10],y=g*a+m*o+v*s,x=g*u+m*f+v*h,b=l(g-=y*a+x*u,m-=y*o+x*f,v-=y*s+x*h);g/=b,m/=b,v/=b;var _=u*e+a*r,w=f*e+o*r,T=h*e+s*r;this.center.move(t,_,w,T);var k=Math.exp(this.computedRadius[0]);k=Math.max(1e-4,k+n),this.radius.set(t,Math.log(k))},h.rotate=function(t,e,r,n){this.recalcMatrix(t),e=e||0,r=r||0;var i=this.computedMatrix,a=i[0],o=i[4],s=i[8],u=i[1],f=i[5],h=i[9],p=i[2],d=i[6],g=i[10],m=e*a+r*u,v=e*o+r*f,y=e*s+r*h,x=-(d*y-g*v),b=-(g*m-p*y),_=-(p*v-d*m),w=Math.sqrt(Math.max(0,1-Math.pow(x,2)-Math.pow(b,2)-Math.pow(_,2))),T=c(x,b,_,w);T&gt;1e-6?(x/=T,b/=T,_/=T,w/=T):(x=b=_=0,w=1);var k=this.computedRotation,M=k[0],A=k[1],S=k[2],E=k[3],C=M*w+E*x+A*_-S*b,L=A*w+E*b+S*x-M*_,I=S*w+E*_+M*b-A*x,P=E*w-M*x-A*b-S*_;if(n){x=p,b=d,_=g;var z=Math.sin(n)/l(x,b,_);x*=z,b*=z,_*=z,P=P*(w=Math.cos(e))-(C=C*w+P*x+L*_-I*b)*x-(L=L*w+P*b+I*x-C*_)*b-(I=I*w+P*_+C*b-L*x)*_}var O=c(C,L,I,P);O&gt;1e-6?(C/=O,L/=O,I/=O,P/=O):(C=L=I=0,P=1),this.rotation.set(t,C,L,I,P)},h.lookAt=function(t,e,r,n){this.recalcMatrix(t),r=r||this.computedCenter,e=e||this.computedEye,n=n||this.computedUp;var a=this.computedMatrix;i(a,e,r,n);var o=this.computedRotation;s(o,a[0],a[1],a[2],a[4],a[5],a[6],a[8],a[9],a[10]),u(o,o),this.rotation.set(t,o[0],o[1],o[2],o[3]);for(var l=0,c=0;c&lt;3;++c)l+=Math.pow(r[c]-e[c],2);this.radius.set(t,.5*Math.log(Math.max(l,1e-6))),this.center.set(t,r[0],r[1],r[2])},h.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},h.setMatrix=function(t,e){var r=this.computedRotation;s(r,e[0],e[1],e[2],e[4],e[5],e[6],e[8],e[9],e[10]),u(r,r),this.rotation.set(t,r[0],r[1],r[2],r[3]);var n=this.computedMatrix;o(n,e);var i=n[15];if(Math.abs(i)&gt;1e-6){var a=n[12]/i,l=n[13]/i,c=n[14]/i;this.recalcMatrix(t);var f=Math.exp(this.computedRadius[0]);this.center.set(t,a-n[2]*f,l-n[6]*f,c-n[10]*f),this.radius.idle(t)}else this.center.idle(t),this.radius.idle(t)},h.setDistance=function(t,e){e&gt;0&amp;&amp;this.radius.set(t,Math.log(e))},h.setDistanceLimits=function(t,e){t=t&gt;0?Math.log(t):-1/0,e=e&gt;0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},h.getDistanceLimits=function(t){var e=this.radius.bounds;return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},h.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},h.fromJSON=function(t){var e=this.lastT(),r=t.center;r&amp;&amp;this.center.set(e,r[0],r[1],r[2]);var n=t.rotation;n&amp;&amp;this.rotation.set(e,n[0],n[1],n[2],n[3]);var i=t.distance;i&amp;&amp;i&gt;0&amp;&amp;this.radius.set(e,Math.log(i)),this.setDistanceLimits(t.zoomMin,t.zoomMax)}},{&quot;./lib/quatFromFrame&quot;:500,&quot;filtered-vector&quot;:242,&quot;gl-mat4/fromQuat&quot;:282,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/lookAt&quot;:294}],502:[function(t,e,r){
/*!
 * pad-left &lt;https://github.com/jonschlinkert/pad-left&gt;
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT license.
 */
&quot;use strict&quot;;var n=t(&quot;repeat-string&quot;);e.exports=function(t,e,r){return n(r=&quot;undefined&quot;!=typeof r?r+&quot;&quot;:&quot; &quot;,e)+t}},{&quot;repeat-string&quot;:541}],503:[function(t,e,r){&quot;use strict&quot;;function n(t,e){if(&quot;string&quot;!=typeof t)return[t];var r=[t];&quot;string&quot;==typeof e||Array.isArray(e)?e={brackets:e}:e||(e={});var n=e.brackets?Array.isArray(e.brackets)?e.brackets:[e.brackets]:[&quot;{}&quot;,&quot;[]&quot;,&quot;()&quot;],i=e.escape||&quot;___&quot;,a=!!e.flat;n.forEach((function(t){var e=new RegExp([&quot;\\&quot;,t[0],&quot;[^\\&quot;,t[0],&quot;\\&quot;,t[1],&quot;]*\\&quot;,t[1]].join(&quot;&quot;)),n=[];function a(e,a,o){var s=r.push(e.slice(t[0].length,-t[1].length))-1;return n.push(s),i+s+i}r.forEach((function(t,n){for(var i,o=0;t!=i;)if(i=t,t=t.replace(e,a),o++&gt;1e4)throw Error(&quot;References have circular dependency. Please, check them.&quot;);r[n]=t})),n=n.reverse(),r=r.map((function(e){return n.forEach((function(r){e=e.replace(new RegExp(&quot;(\\&quot;+i+r+&quot;\\&quot;+i+&quot;)&quot;,&quot;g&quot;),t[0]+&quot;$1&quot;+t[1])})),e}))}));var o=new RegExp(&quot;\\&quot;+i+&quot;([0-9]+)\\&quot;+i);return a?r:function t(e,r,n){for(var i,a=[],s=0;i=o.exec(e);){if(s++&gt;1e4)throw Error(&quot;Circular references in parenthesis&quot;);a.push(e.slice(0,i.index)),a.push(t(r[i[1]],r)),e=e.slice(i.index+i[0].length)}return a.push(e),a}(r[0],r)}function i(t,e){if(e&amp;&amp;e.flat){var r,n=e&amp;&amp;e.escape||&quot;___&quot;,i=t[0];if(!i)return&quot;&quot;;for(var a=new RegExp(&quot;\\&quot;+n+&quot;([0-9]+)\\&quot;+n),o=0;i!=r;){if(o++&gt;1e4)throw Error(&quot;Circular references in &quot;+t);r=i,i=i.replace(a,s)}return i}return t.reduce((function t(e,r){return Array.isArray(r)&amp;&amp;(r=r.reduce(t,&quot;&quot;)),e+r}),&quot;&quot;);function s(e,r){if(null==t[r])throw Error(&quot;Reference &quot;+r+&quot;is undefined&quot;);return t[r]}}function a(t,e){return Array.isArray(t)?i(t,e):n(t,e)}a.parse=n,a.stringify=i,e.exports=a},{}],504:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;);e.exports=function(t){var e;arguments.length&gt;1&amp;&amp;(t=arguments);&quot;string&quot;==typeof t?t=t.split(/\s/).map(parseFloat):&quot;number&quot;==typeof t&amp;&amp;(t=[t]);t.length&amp;&amp;&quot;number&quot;==typeof t[0]?e=1===t.length?{width:t[0],height:t[0],x:0,y:0}:2===t.length?{width:t[0],height:t[1],x:0,y:0}:{x:t[0],y:t[1],width:t[2]-t[0]||0,height:t[3]-t[1]||0}:t&amp;&amp;(t=n(t,{left:&quot;x l left Left&quot;,top:&quot;y t top Top&quot;,width:&quot;w width W Width&quot;,height:&quot;h height W Width&quot;,bottom:&quot;b bottom Bottom&quot;,right:&quot;r right Right&quot;}),e={x:t.left||0,y:t.top||0},null==t.width?t.right?e.width=t.right-e.x:e.width=0:e.width=t.width,null==t.height?t.bottom?e.height=t.bottom-e.y:e.height=0:e.height=t.height);return e}},{&quot;pick-by-alias&quot;:511}],505:[function(t,e,r){e.exports=function(t){var e=[];return t.replace(i,(function(t,r,i){var o=r.toLowerCase();for(i=function(t){var e=t.match(a);return e?e.map(Number):[]}(i),&quot;m&quot;==o&amp;&amp;i.length&gt;2&amp;&amp;(e.push([r].concat(i.splice(0,2))),o=&quot;l&quot;,r=&quot;m&quot;==r?&quot;l&quot;:&quot;L&quot;);;){if(i.length==n[o])return i.unshift(r),e.push(i);if(i.length&lt;n[o])throw new Error(&quot;malformed path data&quot;);e.push([r].concat(i.splice(0,n[o])))}})),e};var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var a=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},{}],506:[function(t,e,r){e.exports=function(t,e){e||(e=[0,&quot;&quot;]),t=String(t);var r=parseFloat(t,10);return e[0]=r,e[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||&quot;&quot;,e}},{}],507:[function(t,e,r){(function(t){(function(){&quot;use strict&quot;;function r(t){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;Path must be a string. Received &quot;+JSON.stringify(t))}function n(t,e){for(var r,n=&quot;&quot;,i=0,a=-1,o=0,s=0;s&lt;=t.length;++s){if(s&lt;t.length)r=t.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(a===s-1||1===o);else if(a!==s-1&amp;&amp;2===o){if(n.length&lt;2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length&gt;2){var l=n.lastIndexOf(&quot;/&quot;);if(l!==n.length-1){-1===l?(n=&quot;&quot;,i=0):i=(n=n.slice(0,l)).length-1-n.lastIndexOf(&quot;/&quot;),a=s,o=0;continue}}else if(2===n.length||1===n.length){n=&quot;&quot;,i=0,a=s,o=0;continue}e&amp;&amp;(n.length&gt;0?n+=&quot;/..&quot;:n=&quot;..&quot;,i=2)}else n.length&gt;0?n+=&quot;/&quot;+t.slice(a+1,s):n=t.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===r&amp;&amp;-1!==o?++o:o=-1}return n}var i={resolve:function(){for(var e,i=&quot;&quot;,a=!1,o=arguments.length-1;o&gt;=-1&amp;&amp;!a;o--){var s;o&gt;=0?s=arguments[o]:(void 0===e&amp;&amp;(e=t.cwd()),s=e),r(s),0!==s.length&amp;&amp;(i=s+&quot;/&quot;+i,a=47===s.charCodeAt(0))}return i=n(i,!a),a?i.length&gt;0?&quot;/&quot;+i:&quot;/&quot;:i.length&gt;0?i:&quot;.&quot;},normalize:function(t){if(r(t),0===t.length)return&quot;.&quot;;var e=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1);return 0!==(t=n(t,!e)).length||e||(t=&quot;.&quot;),t.length&gt;0&amp;&amp;i&amp;&amp;(t+=&quot;/&quot;),e?&quot;/&quot;+t:t},isAbsolute:function(t){return r(t),t.length&gt;0&amp;&amp;47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return&quot;.&quot;;for(var t,e=0;e&lt;arguments.length;++e){var n=arguments[e];r(n),n.length&gt;0&amp;&amp;(void 0===t?t=n:t+=&quot;/&quot;+n)}return void 0===t?&quot;.&quot;:i.normalize(t)},relative:function(t,e){if(r(t),r(e),t===e)return&quot;&quot;;if((t=i.resolve(t))===(e=i.resolve(e)))return&quot;&quot;;for(var n=1;n&lt;t.length&amp;&amp;47===t.charCodeAt(n);++n);for(var a=t.length,o=a-n,s=1;s&lt;e.length&amp;&amp;47===e.charCodeAt(s);++s);for(var l=e.length-s,c=o&lt;l?o:l,u=-1,f=0;f&lt;=c;++f){if(f===c){if(l&gt;c){if(47===e.charCodeAt(s+f))return e.slice(s+f+1);if(0===f)return e.slice(s+f)}else o&gt;c&amp;&amp;(47===t.charCodeAt(n+f)?u=f:0===f&amp;&amp;(u=0));break}var h=t.charCodeAt(n+f);if(h!==e.charCodeAt(s+f))break;47===h&amp;&amp;(u=f)}var p=&quot;&quot;;for(f=n+u+1;f&lt;=a;++f)f!==a&amp;&amp;47!==t.charCodeAt(f)||(0===p.length?p+=&quot;..&quot;:p+=&quot;/..&quot;);return p.length&gt;0?p+e.slice(s+u):(s+=u,47===e.charCodeAt(s)&amp;&amp;++s,e.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(r(t),0===t.length)return&quot;.&quot;;for(var e=t.charCodeAt(0),n=47===e,i=-1,a=!0,o=t.length-1;o&gt;=1;--o)if(47===(e=t.charCodeAt(o))){if(!a){i=o;break}}else a=!1;return-1===i?n?&quot;/&quot;:&quot;.&quot;:n&amp;&amp;1===i?&quot;//&quot;:t.slice(0,i)},basename:function(t,e){if(void 0!==e&amp;&amp;&quot;string&quot;!=typeof e)throw new TypeError('&quot;ext&quot; argument must be a string');r(t);var n,i=0,a=-1,o=!0;if(void 0!==e&amp;&amp;e.length&gt;0&amp;&amp;e.length&lt;=t.length){if(e.length===t.length&amp;&amp;e===t)return&quot;&quot;;var s=e.length-1,l=-1;for(n=t.length-1;n&gt;=0;--n){var c=t.charCodeAt(n);if(47===c){if(!o){i=n+1;break}}else-1===l&amp;&amp;(o=!1,l=n+1),s&gt;=0&amp;&amp;(c===e.charCodeAt(s)?-1==--s&amp;&amp;(a=n):(s=-1,a=l))}return i===a?a=l:-1===a&amp;&amp;(a=t.length),t.slice(i,a)}for(n=t.length-1;n&gt;=0;--n)if(47===t.charCodeAt(n)){if(!o){i=n+1;break}}else-1===a&amp;&amp;(o=!1,a=n+1);return-1===a?&quot;&quot;:t.slice(i,a)},extname:function(t){r(t);for(var e=-1,n=0,i=-1,a=!0,o=0,s=t.length-1;s&gt;=0;--s){var l=t.charCodeAt(s);if(47!==l)-1===i&amp;&amp;(a=!1,i=s+1),46===l?-1===e?e=s:1!==o&amp;&amp;(o=1):-1!==e&amp;&amp;(o=-1);else if(!a){n=s+1;break}}return-1===e||-1===i||0===o||1===o&amp;&amp;e===i-1&amp;&amp;e===n+1?&quot;&quot;:t.slice(e,i)},format:function(t){if(null===t||&quot;object&quot;!=typeof t)throw new TypeError('The &quot;pathObject&quot; argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||&quot;&quot;)+(e.ext||&quot;&quot;);return r?r===e.root?r+n:r+t+n:n}(&quot;/&quot;,t)},parse:function(t){r(t);var e={root:&quot;&quot;,dir:&quot;&quot;,base:&quot;&quot;,ext:&quot;&quot;,name:&quot;&quot;};if(0===t.length)return e;var n,i=t.charCodeAt(0),a=47===i;a?(e.root=&quot;/&quot;,n=1):n=0;for(var o=-1,s=0,l=-1,c=!0,u=t.length-1,f=0;u&gt;=n;--u)if(47!==(i=t.charCodeAt(u)))-1===l&amp;&amp;(c=!1,l=u+1),46===i?-1===o?o=u:1!==f&amp;&amp;(f=1):-1!==o&amp;&amp;(f=-1);else if(!c){s=u+1;break}return-1===o||-1===l||0===f||1===f&amp;&amp;o===l-1&amp;&amp;o===s+1?-1!==l&amp;&amp;(e.base=e.name=0===s&amp;&amp;a?t.slice(1,l):t.slice(s,l)):(0===s&amp;&amp;a?(e.name=t.slice(1,o),e.base=t.slice(1,l)):(e.name=t.slice(s,o),e.base=t.slice(s,l)),e.ext=t.slice(o,l)),s&gt;0?e.dir=t.slice(0,s-1):a&amp;&amp;(e.dir=&quot;/&quot;),e},sep:&quot;/&quot;,delimiter:&quot;:&quot;,win32:null,posix:null};i.posix=i,e.exports=i}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:526}],508:[function(t,e,r){(function(t){(function(){(function(){var r,n,i,a,o,s;&quot;undefined&quot;!=typeof performance&amp;&amp;null!==performance&amp;&amp;performance.now?e.exports=function(){return performance.now()}:&quot;undefined&quot;!=typeof t&amp;&amp;null!==t&amp;&amp;t.hrtime?(e.exports=function(){return(r()-o)/1e6},n=t.hrtime,a=(r=function(){var t;return 1e9*(t=n())[0]+t[1]})(),s=1e9*t.uptime(),o=a-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:526}],509:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(e&lt;32){for(var r=1,i=0;i&lt;e;++i)for(var a=0;a&lt;i;++a)if(t[i]&lt;t[a])r=-r;else if(t[i]===t[a])return 0;return r}var o=n.mallocUint8(e);for(i=0;i&lt;e;++i)o[i]=0;for(r=1,i=0;i&lt;e;++i)if(!o[i]){var s=1;o[i]=1;for(a=t[i];a!==i;a=t[a]){if(o[a])return n.freeUint8(o),0;s+=1,o[a]=1}1&amp;s||(r=-r)}return n.freeUint8(o),r};var n=t(&quot;typedarray-pool&quot;)},{&quot;typedarray-pool&quot;:595}],510:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=t(&quot;invert-permutation&quot;);r.rank=function(t){var e=t.length;switch(e){case 0:case 1:return 0;case 2:return t[1]}var r,a,o,s=n.mallocUint32(e),l=n.mallocUint32(e),c=0;for(i(t,l),o=0;o&lt;e;++o)s[o]=t[o];for(o=e-1;o&gt;0;--o)a=l[o],r=s[o],s[o]=s[a],s[a]=r,l[o]=l[r],l[r]=a,c=(c+r)*o;return n.freeUint32(l),n.freeUint32(s),c},r.unrank=function(t,e,r){switch(t){case 0:return r||[];case 1:return r?(r[0]=0,r):[0];case 2:return r?(e?(r[0]=0,r[1]=1):(r[0]=1,r[1]=0),r):e?[0,1]:[1,0]}var n,i,a,o=1;for((r=r||new Array(t))[0]=0,a=1;a&lt;t;++a)r[a]=a,o=o*a|0;for(a=t-1;a&gt;0;--a)e=e-(n=e/o|0)*o|0,o=o/a|0,i=0|r[a],r[a]=0|r[n],r[n]=0|i;return r}},{&quot;invert-permutation&quot;:462,&quot;typedarray-pool&quot;:595}],511:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n,a,o={};if(&quot;string&quot;==typeof e&amp;&amp;(e=i(e)),Array.isArray(e)){var s={};for(a=0;a&lt;e.length;a++)s[e[a]]=!0;e=s}for(n in e)e[n]=i(e[n]);var l={};for(n in e){var c=e[n];if(Array.isArray(c))for(a=0;a&lt;c.length;a++){var u=c[a];if(r&amp;&amp;(l[u]=!0),u in t){if(o[n]=t[u],r)for(var f=a;f&lt;c.length;f++)l[c[f]]=!0;break}}else n in t&amp;&amp;(e[n]&amp;&amp;(o[n]=t[n]),r&amp;&amp;(l[n]=!0))}if(r)for(n in t)l[n]||(o[n]=t[n]);return o};var n={};function i(t){return n[t]?n[t]:(&quot;string&quot;==typeof t&amp;&amp;(t=n[t]=t.split(/\s*,\s*|\s+/)),t)}},{}],512:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=0|e.length,i=t.length,a=[new Array(r),new Array(r)],o=0;o&lt;r;++o)a[0][o]=[],a[1][o]=[];for(o=0;o&lt;i;++o){var s=t[o];a[0][s[0]].push(s),a[1][s[1]].push(s)}var l=[];for(o=0;o&lt;r;++o)a[0][o].length+a[1][o].length===0&amp;&amp;l.push([o]);function c(t,e){var r=a[e][t[e]];r.splice(r.indexOf(t),1)}function u(t,r,i){for(var o,s,l,u=0;u&lt;2;++u)if(a[u][r].length&gt;0){o=a[u][r][0],l=u;break}s=o[1^l];for(var f=0;f&lt;2;++f)for(var h=a[f][r],p=0;p&lt;h.length;++p){var d=h[p],g=d[1^f];n(e[t],e[r],e[s],e[g])&gt;0&amp;&amp;(o=d,s=g,l=f)}return i||o&amp;&amp;c(o,l),s}function f(t,r){var i=a[r][t][0],o=[t];c(i,r);for(var s=i[1^r];;){for(;s!==t;)o.push(s),s=u(o[o.length-2],s,!1);if(a[0][t].length+a[1][t].length===0)break;var l=o[o.length-1],f=t,h=o[1],p=u(l,f,!0);if(n(e[l],e[f],e[h],e[p])&lt;0)break;o.push(t),s=u(l,f)}return o}function h(t,e){return e[1]===e[e.length-1]}for(o=0;o&lt;r;++o)for(var p=0;p&lt;2;++p){for(var d=[];a[p][o].length&gt;0;){a[0][o].length;var g=f(o,p);h(0,g)?d.push.apply(d,g):(d.length&gt;0&amp;&amp;l.push(d),d=g)}d.length&gt;0&amp;&amp;l.push(d)}return l};var n=t(&quot;compare-angle&quot;)},{&quot;compare-angle&quot;:132}],513:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=n(t,e.length),i=new Array(e.length),a=new Array(e.length),o=[],s=0;s&lt;e.length;++s){var l=r[s].length;a[s]=l,i[s]=!0,l&lt;=1&amp;&amp;o.push(s)}for(;o.length&gt;0;){var c=o.pop();i[c]=!1;var u=r[c];for(s=0;s&lt;u.length;++s){var f=u[s];0==--a[f]&amp;&amp;o.push(f)}}var h=new Array(e.length),p=[];for(s=0;s&lt;e.length;++s)if(i[s]){c=p.length;h[s]=c,p.push(e[s])}else h[s]=-1;var d=[];for(s=0;s&lt;t.length;++s){var g=t[s];i[g[0]]&amp;&amp;i[g[1]]&amp;&amp;d.push([h[g[0]],h[g[1]]])}return[d,p]};var n=t(&quot;edges-to-adjacency-list&quot;)},{&quot;edges-to-adjacency-list&quot;:178}],514:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=c(t,e);t=r[0];for(var f=(e=r[1]).length,h=(t.length,n(t,e.length)),p=0;p&lt;f;++p)if(h[p].length%2==1)throw new Error(&quot;planar-graph-to-polyline: graph must be manifold&quot;);var d=i(t,e);var g=(d=d.filter((function(t){for(var r=t.length,n=[0],i=0;i&lt;r;++i){var a=e[t[i]],l=e[t[(i+1)%r]],c=o(-a[0],a[1]),u=o(-a[0],l[1]),f=o(l[0],a[1]),h=o(l[0],l[1]);n=s(n,s(s(c,u),s(f,h)))}return n[n.length-1]&gt;0}))).length,m=new Array(g),v=new Array(g);for(p=0;p&lt;g;++p){m[p]=p;var y=new Array(g),x=d[p].map((function(t){return e[t]})),b=a([x]),_=0;t:for(var w=0;w&lt;g;++w)if(y[w]=0,p!==w){for(var T=(q=d[w]).length,k=0;k&lt;T;++k){var M=b(e[q[k]]);if(0!==M){M&lt;0&amp;&amp;(y[w]=1,_+=1);continue t}}y[w]=1,_+=1}v[p]=[_,p,y]}v.sort((function(t,e){return e[0]-t[0]}));for(p=0;p&lt;g;++p){var A=(y=v[p])[1],S=y[2];for(w=0;w&lt;g;++w)S[w]&amp;&amp;(m[w]=A)}var E=function(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=[];return e}(g);for(p=0;p&lt;g;++p)E[p].push(m[p]),E[m[p]].push(p);var C={},L=u(f,!1);for(p=0;p&lt;g;++p)for(T=(q=d[p]).length,w=0;w&lt;T;++w){var I=q[w],P=q[(w+1)%T],z=Math.min(I,P)+&quot;:&quot;+Math.max(I,P);if(z in C){var O=C[z];E[O].push(p),E[p].push(O),L[I]=L[P]=!0}else C[z]=p}function D(t){for(var e=t.length,r=0;r&lt;e;++r)if(!L[t[r]])return!1;return!0}var R=[],F=u(g,-1);for(p=0;p&lt;g;++p)m[p]!==p||D(d[p])?F[p]=-1:(R.push(p),F[p]=0);r=[];for(;R.length&gt;0;){var B=R.pop(),N=E[B];l(N,(function(t,e){return t-e}));var j,U=N.length,V=F[B];if(0===V){var q=d[B];j=[q]}for(p=0;p&lt;U;++p){var H=N[p];if(!(F[H]&gt;=0))if(F[H]=1^V,R.push(H),0===V)D(q=d[H])||(q.reverse(),j.push(q))}0===V&amp;&amp;r.push(j)}return r};var n=t(&quot;edges-to-adjacency-list&quot;),i=t(&quot;planar-dual&quot;),a=t(&quot;point-in-big-polygon&quot;),o=t(&quot;two-product&quot;),s=t(&quot;robust-sum&quot;),l=t(&quot;uniq&quot;),c=t(&quot;./lib/trim-leaves&quot;);function u(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}},{&quot;./lib/trim-leaves&quot;:513,&quot;edges-to-adjacency-list&quot;:178,&quot;planar-dual&quot;:512,&quot;point-in-big-polygon&quot;:516,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582,uniq:597}],515:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],516:[function(t,e,r){e.exports=function(t){for(var e=t.length,r=[],a=[],s=0;s&lt;e;++s)for(var u=t[s],f=u.length,h=f-1,p=0;p&lt;f;h=p++){var d=u[h],g=u[p];d[0]===g[0]?a.push([d,g]):r.push([d,g])}if(0===r.length)return 0===a.length?c:(m=l(a),function(t){return m(t[0],t[1])?0:1});var m;var v=i(r),y=function(t,e){return function(r){var i=o.le(e,r[0]);if(i&lt;0)return 1;var a=t[i];if(!a){if(!(i&gt;0&amp;&amp;e[i]===r[0]))return 1;a=t[i-1]}for(var s=1;a;){var l=a.key,c=n(r,l[0],l[1]);if(l[0][0]&lt;l[1][0])if(c&lt;0)a=a.left;else{if(!(c&gt;0))return 0;s=-1,a=a.right}else if(c&gt;0)a=a.left;else{if(!(c&lt;0))return 0;s=1,a=a.right}}return s}}(v.slabs,v.coordinates);return 0===a.length?y:function(t,e){return function(r){return t(r[0],r[1])?0:e(r)}}(l(a),y)};var n=t(&quot;robust-orientation&quot;)[3],i=t(&quot;slab-decomposition&quot;),a=t(&quot;interval-tree-1d&quot;),o=t(&quot;binary-search-bounds&quot;);function s(){return!0}function l(t){for(var e={},r=0;r&lt;t.length;++r){var n=t[r],i=n[0][0],o=n[0][1],l=n[1][1],c=[Math.min(o,l),Math.max(o,l)];i in e?e[i].push(c):e[i]=[c]}var u={},f=Object.keys(e);for(r=0;r&lt;f.length;++r){var h=e[f[r]];u[f[r]]=a(h)}return function(t){return function(e,r){var n=t[e];return!!n&amp;&amp;!!n.queryPoint(r,s)}}(u)}function c(t){return 1}},{&quot;binary-search-bounds&quot;:515,&quot;interval-tree-1d&quot;:460,&quot;robust-orientation&quot;:548,&quot;slab-decomposition&quot;:565}],517:[function(t,e,r){
/*
 * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
 * @license MIT
 * @preserve Project Home: https://github.com/voidqk/polybooljs
 */
var n,i=t(&quot;./lib/build-log&quot;),a=t(&quot;./lib/epsilon&quot;),o=t(&quot;./lib/intersecter&quot;),s=t(&quot;./lib/segment-chainer&quot;),l=t(&quot;./lib/segment-selector&quot;),c=t(&quot;./lib/geojson&quot;),u=!1,f=a();function h(t,e,r){var i=n.segments(t),a=n.segments(e),o=r(n.combine(i,a));return n.polygon(o)}n={buildLog:function(t){return!0===t?u=i():!1===t&amp;&amp;(u=!1),!1!==u&amp;&amp;u.list},epsilon:function(t){return f.epsilon(t)},segments:function(t){var e=o(!0,f,u);return t.regions.forEach(e.addRegion),{segments:e.calculate(t.inverted),inverted:t.inverted}},combine:function(t,e){return{combined:o(!1,f,u).calculate(t.segments,t.inverted,e.segments,e.inverted),inverted1:t.inverted,inverted2:e.inverted}},selectUnion:function(t){return{segments:l.union(t.combined,u),inverted:t.inverted1||t.inverted2}},selectIntersect:function(t){return{segments:l.intersect(t.combined,u),inverted:t.inverted1&amp;&amp;t.inverted2}},selectDifference:function(t){return{segments:l.difference(t.combined,u),inverted:t.inverted1&amp;&amp;!t.inverted2}},selectDifferenceRev:function(t){return{segments:l.differenceRev(t.combined,u),inverted:!t.inverted1&amp;&amp;t.inverted2}},selectXor:function(t){return{segments:l.xor(t.combined,u),inverted:t.inverted1!==t.inverted2}},polygon:function(t){return{regions:s(t.segments,f,u),inverted:t.inverted}},polygonFromGeoJSON:function(t){return c.toPolygon(n,t)},polygonToGeoJSON:function(t){return c.fromPolygon(n,f,t)},union:function(t,e){return h(t,e,n.selectUnion)},intersect:function(t,e){return h(t,e,n.selectIntersect)},difference:function(t,e){return h(t,e,n.selectDifference)},differenceRev:function(t,e){return h(t,e,n.selectDifferenceRev)},xor:function(t,e){return h(t,e,n.selectXor)}},&quot;object&quot;==typeof window&amp;&amp;(window.PolyBool=n),e.exports=n},{&quot;./lib/build-log&quot;:518,&quot;./lib/epsilon&quot;:519,&quot;./lib/geojson&quot;:520,&quot;./lib/intersecter&quot;:521,&quot;./lib/segment-chainer&quot;:523,&quot;./lib/segment-selector&quot;:524}],518:[function(t,e,r){e.exports=function(){var t,e=0,r=!1;function n(e,r){return t.list.push({type:e,data:r?JSON.parse(JSON.stringify(r)):void 0}),t}return t={list:[],segmentId:function(){return e++},checkIntersection:function(t,e){return n(&quot;check&quot;,{seg1:t,seg2:e})},segmentChop:function(t,e){return n(&quot;div_seg&quot;,{seg:t,pt:e}),n(&quot;chop&quot;,{seg:t,pt:e})},statusRemove:function(t){return n(&quot;pop_seg&quot;,{seg:t})},segmentUpdate:function(t){return n(&quot;seg_update&quot;,{seg:t})},segmentNew:function(t,e){return n(&quot;new_seg&quot;,{seg:t,primary:e})},segmentRemove:function(t){return n(&quot;rem_seg&quot;,{seg:t})},tempStatus:function(t,e,r){return n(&quot;temp_status&quot;,{seg:t,above:e,below:r})},rewind:function(t){return n(&quot;rewind&quot;,{seg:t})},status:function(t,e,r){return n(&quot;status&quot;,{seg:t,above:e,below:r})},vert:function(e){return e===r?t:(r=e,n(&quot;vert&quot;,{x:e}))},log:function(t){return&quot;string&quot;!=typeof t&amp;&amp;(t=JSON.stringify(t,!1,&quot;  &quot;)),n(&quot;log&quot;,{txt:t})},reset:function(){return n(&quot;reset&quot;)},selected:function(t){return n(&quot;selected&quot;,{segs:t})},chainStart:function(t){return n(&quot;chain_start&quot;,{seg:t})},chainRemoveHead:function(t,e){return n(&quot;chain_rem_head&quot;,{index:t,pt:e})},chainRemoveTail:function(t,e){return n(&quot;chain_rem_tail&quot;,{index:t,pt:e})},chainNew:function(t,e){return n(&quot;chain_new&quot;,{pt1:t,pt2:e})},chainMatch:function(t){return n(&quot;chain_match&quot;,{index:t})},chainClose:function(t){return n(&quot;chain_close&quot;,{index:t})},chainAddHead:function(t,e){return n(&quot;chain_add_head&quot;,{index:t,pt:e})},chainAddTail:function(t,e){return n(&quot;chain_add_tail&quot;,{index:t,pt:e})},chainConnect:function(t,e){return n(&quot;chain_con&quot;,{index1:t,index2:e})},chainReverse:function(t){return n(&quot;chain_rev&quot;,{index:t})},chainJoin:function(t,e){return n(&quot;chain_join&quot;,{index1:t,index2:e})},done:function(){return n(&quot;done&quot;)}}}},{}],519:[function(t,e,r){e.exports=function(t){&quot;number&quot;!=typeof t&amp;&amp;(t=1e-10);var e={epsilon:function(e){return&quot;number&quot;==typeof e&amp;&amp;(t=e),t},pointAboveOrOnLine:function(e,r,n){var i=r[0],a=r[1],o=n[0],s=n[1],l=e[0];return(o-i)*(e[1]-a)-(s-a)*(l-i)&gt;=-t},pointBetween:function(e,r,n){var i=e[1]-r[1],a=n[0]-r[0],o=e[0]-r[0],s=n[1]-r[1],l=o*a+i*s;return!(l&lt;t)&amp;&amp;!(l-(a*a+s*s)&gt;-t)},pointsSameX:function(e,r){return Math.abs(e[0]-r[0])&lt;t},pointsSameY:function(e,r){return Math.abs(e[1]-r[1])&lt;t},pointsSame:function(t,r){return e.pointsSameX(t,r)&amp;&amp;e.pointsSameY(t,r)},pointsCompare:function(t,r){return e.pointsSameX(t,r)?e.pointsSameY(t,r)?0:t[1]&lt;r[1]?-1:1:t[0]&lt;r[0]?-1:1},pointsCollinear:function(e,r,n){var i=e[0]-r[0],a=e[1]-r[1],o=r[0]-n[0],s=r[1]-n[1];return Math.abs(i*s-o*a)&lt;t},linesIntersect:function(e,r,n,i){var a=r[0]-e[0],o=r[1]-e[1],s=i[0]-n[0],l=i[1]-n[1],c=a*l-o*s;if(Math.abs(c)&lt;t)return!1;var u=e[0]-n[0],f=e[1]-n[1],h=(s*f-l*u)/c,p=(a*f-o*u)/c,d={alongA:0,alongB:0,pt:[e[0]+h*a,e[1]+h*o]};return d.alongA=h&lt;=-t?-2:h&lt;t?-1:h-1&lt;=-t?0:h-1&lt;t?1:2,d.alongB=p&lt;=-t?-2:p&lt;t?-1:p-1&lt;=-t?0:p-1&lt;t?1:2,d},pointInsideRegion:function(e,r){for(var n=e[0],i=e[1],a=r[r.length-1][0],o=r[r.length-1][1],s=!1,l=0;l&lt;r.length;l++){var c=r[l][0],u=r[l][1];u-i&gt;t!=o-i&gt;t&amp;&amp;(a-c)*(i-u)/(o-u)+c-n&gt;t&amp;&amp;(s=!s),a=c,o=u}return s}};return e}},{}],520:[function(t,e,r){var n={toPolygon:function(t,e){function r(e){if(e.length&lt;=0)return t.segments({inverted:!1,regions:[]});function r(e){var r=e.slice(0,e.length-1);return t.segments({inverted:!1,regions:[r]})}for(var n=r(e[0]),i=1;i&lt;e.length;i++)n=t.selectDifference(t.combine(n,r(e[i])));return n}if(&quot;Polygon&quot;===e.type)return t.polygon(r(e.coordinates));if(&quot;MultiPolygon&quot;===e.type){for(var n=t.segments({inverted:!1,regions:[]}),i=0;i&lt;e.coordinates.length;i++)n=t.selectUnion(t.combine(n,r(e.coordinates[i])));return t.polygon(n)}throw new Error(&quot;PolyBool: Cannot convert GeoJSON object to PolyBool polygon&quot;)},fromPolygon:function(t,e,r){function n(t,r){return e.pointInsideRegion([.5*(t[0][0]+t[1][0]),.5*(t[0][1]+t[1][1])],r)}function i(t){return{region:t,children:[]}}r=t.polygon(t.segments(r));var a=i(null);function o(t,e){for(var r=0;r&lt;t.children.length;r++){if(n(e,(s=t.children[r]).region))return void o(s,e)}var a=i(e);for(r=0;r&lt;t.children.length;r++){var s;n((s=t.children[r]).region,e)&amp;&amp;(a.children.push(s),t.children.splice(r,1),r--)}t.children.push(a)}for(var s=0;s&lt;r.regions.length;s++){var l=r.regions[s];l.length&lt;3||o(a,l)}function c(t,e){for(var r=0,n=t[t.length-1][0],i=t[t.length-1][1],a=[],o=0;o&lt;t.length;o++){var s=t[o][0],l=t[o][1];a.push([s,l]),r+=l*n-s*i,n=s,i=l}return r&lt;0!==e&amp;&amp;a.reverse(),a.push([a[0][0],a[0][1]]),a}var u=[];function f(t){var e=[c(t.region,!1)];u.push(e);for(var r=0;r&lt;t.children.length;r++)e.push(h(t.children[r]))}function h(t){for(var e=0;e&lt;t.children.length;e++)f(t.children[e]);return c(t.region,!0)}for(s=0;s&lt;a.children.length;s++)f(a.children[s]);return u.length&lt;=0?{type:&quot;Polygon&quot;,coordinates:[]}:1==u.length?{type:&quot;Polygon&quot;,coordinates:u[0]}:{type:&quot;MultiPolygon&quot;,coordinates:u}}};e.exports=n},{}],521:[function(t,e,r){var n=t(&quot;./linked-list&quot;);e.exports=function(t,e,r){function i(t,e,n){return{id:r?r.segmentId():-1,start:t,end:e,myFill:{above:n.myFill.above,below:n.myFill.below},otherFill:null}}var a=n.create();function o(t,r){a.insertBefore(t,(function(n){return function(t,r,n,i,a,o){var s=e.pointsCompare(r,a);return 0!==s?s:e.pointsSame(n,o)?0:t!==i?t?1:-1:e.pointAboveOrOnLine(n,i?a:o,i?o:a)?1:-1}(t.isStart,t.pt,r,n.isStart,n.pt,n.other.pt)&lt;0}))}function s(t,e){var r=function(t,e){var r=n.node({isStart:!0,pt:t.start,seg:t,primary:e,other:null,status:null});return o(r,t.end),r}(t,e);return function(t,e,r){var i=n.node({isStart:!1,pt:e.end,seg:e,primary:r,other:t,status:null});t.other=i,o(i,t.pt)}(r,t,e),r}function l(t,e){var n=i(e,t.seg.end,t.seg);return function(t,e){r&amp;&amp;r.segmentChop(t.seg,e),t.other.remove(),t.seg.end=e,t.other.pt=e,o(t.other,t.pt)}(t,e),s(n,t.primary)}function c(i,o){var s=n.create();function c(t){return s.findTransition((function(r){var n,i,a,o,s,l;return(n=t,i=r.ev,a=n.seg.start,o=n.seg.end,s=i.seg.start,l=i.seg.end,e.pointsCollinear(a,s,l)?e.pointsCollinear(o,s,l)||e.pointAboveOrOnLine(o,s,l)?1:-1:e.pointAboveOrOnLine(a,s,l)?1:-1)&gt;0}))}function u(t,n){var i=t.seg,a=n.seg,o=i.start,s=i.end,c=a.start,u=a.end;r&amp;&amp;r.checkIntersection(i,a);var f=e.linesIntersect(o,s,c,u);if(!1===f){if(!e.pointsCollinear(o,s,c))return!1;if(e.pointsSame(o,u)||e.pointsSame(s,c))return!1;var h=e.pointsSame(o,c),p=e.pointsSame(s,u);if(h&amp;&amp;p)return n;var d=!h&amp;&amp;e.pointBetween(o,c,u),g=!p&amp;&amp;e.pointBetween(s,c,u);if(h)return g?l(n,s):l(t,u),n;d&amp;&amp;(p||(g?l(n,s):l(t,u)),l(n,o))}else 0===f.alongA&amp;&amp;(-1===f.alongB?l(t,c):0===f.alongB?l(t,f.pt):1===f.alongB&amp;&amp;l(t,u)),0===f.alongB&amp;&amp;(-1===f.alongA?l(n,o):0===f.alongA?l(n,f.pt):1===f.alongA&amp;&amp;l(n,s));return!1}for(var f=[];!a.isEmpty();){var h=a.getHead();if(r&amp;&amp;r.vert(h.pt[0]),h.isStart){r&amp;&amp;r.segmentNew(h.seg,h.primary);var p=c(h),d=p.before?p.before.ev:null,g=p.after?p.after.ev:null;function m(){if(d){var t=u(h,d);if(t)return t}return!!g&amp;&amp;u(h,g)}r&amp;&amp;r.tempStatus(h.seg,!!d&amp;&amp;d.seg,!!g&amp;&amp;g.seg);var v,y=m();if(y){var x;if(t)(x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below)&amp;&amp;(y.seg.myFill.above=!y.seg.myFill.above);else y.seg.otherFill=h.seg.myFill;r&amp;&amp;r.segmentUpdate(y.seg),h.other.remove(),h.remove()}if(a.getHead()!==h){r&amp;&amp;r.rewind(h.seg);continue}if(t)x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below,h.seg.myFill.below=g?g.seg.myFill.above:i,h.seg.myFill.above=x?!h.seg.myFill.below:h.seg.myFill.below;else if(null===h.seg.otherFill)v=g?h.primary===g.primary?g.seg.otherFill.above:g.seg.myFill.above:h.primary?o:i,h.seg.otherFill={above:v,below:v};r&amp;&amp;r.status(h.seg,!!d&amp;&amp;d.seg,!!g&amp;&amp;g.seg),h.other.status=p.insert(n.node({ev:h}))}else{var b=h.status;if(null===b)throw new Error(&quot;PolyBool: Zero-length segment detected; your epsilon is probably too small or too large&quot;);if(s.exists(b.prev)&amp;&amp;s.exists(b.next)&amp;&amp;u(b.prev.ev,b.next.ev),r&amp;&amp;r.statusRemove(b.ev.seg),b.remove(),!h.primary){var _=h.seg.myFill;h.seg.myFill=h.seg.otherFill,h.seg.otherFill=_}f.push(h.seg)}a.getHead().remove()}return r&amp;&amp;r.done(),f}return t?{addRegion:function(t){for(var n,i,a,o=t[t.length-1],l=0;l&lt;t.length;l++){n=o,o=t[l];var c=e.pointsCompare(n,o);0!==c&amp;&amp;s((i=c&lt;0?n:o,a=c&lt;0?o:n,{id:r?r.segmentId():-1,start:i,end:a,myFill:{above:null,below:null},otherFill:null}),!0)}},calculate:function(t){return c(t,!1)}}:{calculate:function(t,e,r,n){return t.forEach((function(t){s(i(t.start,t.end,t),!0)})),r.forEach((function(t){s(i(t.start,t.end,t),!1)})),c(e,n)}}}},{&quot;./linked-list&quot;:522}],522:[function(t,e,r){e.exports={create:function(){var t={root:{root:!0,next:null},exists:function(e){return null!==e&amp;&amp;e!==t.root},isEmpty:function(){return null===t.root.next},getHead:function(){return t.root.next},insertBefore:function(e,r){for(var n=t.root,i=t.root.next;null!==i;){if(r(i))return e.prev=i.prev,e.next=i,i.prev.next=e,void(i.prev=e);n=i,i=i.next}n.next=e,e.prev=n,e.next=null},findTransition:function(e){for(var r=t.root,n=t.root.next;null!==n&amp;&amp;!e(n);)r=n,n=n.next;return{before:r===t.root?null:r,after:n,insert:function(t){return t.prev=r,t.next=n,r.next=t,null!==n&amp;&amp;(n.prev=t),t}}}};return t},node:function(t){return t.prev=null,t.next=null,t.remove=function(){t.prev.next=t.next,t.next&amp;&amp;(t.next.prev=t.prev),t.prev=null,t.next=null},t}}},{}],523:[function(t,e,r){e.exports=function(t,e,r){var n=[],i=[];return t.forEach((function(t){var a=t.start,o=t.end;if(e.pointsSame(a,o))console.warn(&quot;PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large&quot;);else{r&amp;&amp;r.chainStart(t);for(var s={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},c=s,u=0;u&lt;n.length;u++){var f=(m=n[u])[0],h=(m[1],m[m.length-1]);m[m.length-2];if(e.pointsSame(f,a)){if(k(u,!0,!0))break}else if(e.pointsSame(f,o)){if(k(u,!0,!1))break}else if(e.pointsSame(h,a)){if(k(u,!1,!0))break}else if(e.pointsSame(h,o)&amp;&amp;k(u,!1,!1))break}if(c===s)return n.push([a,o]),void(r&amp;&amp;r.chainNew(a,o));if(c===l){r&amp;&amp;r.chainMatch(s.index);var p=s.index,d=s.matches_pt1?o:a,g=s.matches_head,m=n[p],v=g?m[0]:m[m.length-1],y=g?m[1]:m[m.length-2],x=g?m[m.length-1]:m[0],b=g?m[m.length-2]:m[1];return e.pointsCollinear(y,v,d)&amp;&amp;(g?(r&amp;&amp;r.chainRemoveHead(s.index,d),m.shift()):(r&amp;&amp;r.chainRemoveTail(s.index,d),m.pop()),v=y),e.pointsSame(x,d)?(n.splice(p,1),e.pointsCollinear(b,x,v)&amp;&amp;(g?(r&amp;&amp;r.chainRemoveTail(s.index,v),m.pop()):(r&amp;&amp;r.chainRemoveHead(s.index,v),m.shift())),r&amp;&amp;r.chainClose(s.index),void i.push(m)):void(g?(r&amp;&amp;r.chainAddHead(s.index,d),m.unshift(d)):(r&amp;&amp;r.chainAddTail(s.index,d),m.push(d)))}var _=s.index,w=l.index;r&amp;&amp;r.chainConnect(_,w);var T=n[_].length&lt;n[w].length;s.matches_head?l.matches_head?T?(M(_),A(_,w)):(M(w),A(w,_)):A(w,_):l.matches_head?A(_,w):T?(M(_),A(w,_)):(M(w),A(_,w))}function k(t,e,r){return c.index=t,c.matches_head=e,c.matches_pt1=r,c===s?(c=l,!1):(c=null,!0)}function M(t){r&amp;&amp;r.chainReverse(t),n[t].reverse()}function A(t,i){var a=n[t],o=n[i],s=a[a.length-1],l=a[a.length-2],c=o[0],u=o[1];e.pointsCollinear(l,s,c)&amp;&amp;(r&amp;&amp;r.chainRemoveTail(t,s),a.pop(),s=l),e.pointsCollinear(s,c,u)&amp;&amp;(r&amp;&amp;r.chainRemoveHead(i,c),o.shift()),r&amp;&amp;r.chainJoin(t,i),n[t]=a.concat(o),n.splice(i,1)}})),i}},{}],524:[function(t,e,r){function n(t,e,r){var n=[];return t.forEach((function(t){var i=(t.myFill.above?8:0)+(t.myFill.below?4:0)+(t.otherFill&amp;&amp;t.otherFill.above?2:0)+(t.otherFill&amp;&amp;t.otherFill.below?1:0);0!==e[i]&amp;&amp;n.push({id:r?r.segmentId():-1,start:t.start,end:t.end,myFill:{above:1===e[i],below:2===e[i]},otherFill:null})})),r&amp;&amp;r.selected(n),n}var i={union:function(t,e){return n(t,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],e)},intersect:function(t,e){return n(t,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],e)},difference:function(t,e){return n(t,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],e)},differenceRev:function(t,e){return n(t,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],e)},xor:function(t,e){return n(t,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],e)}};e.exports=i},{}],525:[function(t,e,r){&quot;use strict&quot;;var n=new Float64Array(4),i=new Float64Array(4),a=new Float64Array(4);e.exports=function(t,e,r,o,s){n.length&lt;o.length&amp;&amp;(n=new Float64Array(o.length),i=new Float64Array(o.length),a=new Float64Array(o.length));for(var l=0;l&lt;o.length;++l)n[l]=t[l]-o[l],i[l]=e[l]-t[l],a[l]=r[l]-t[l];var c=0,u=0,f=0,h=0,p=0,d=0;for(l=0;l&lt;o.length;++l){var g=i[l],m=a[l],v=n[l];c+=g*g,u+=g*m,f+=m*m,h+=v*g,p+=v*m,d+=v*v}var y,x,b,_,w,T=Math.abs(c*f-u*u),k=u*p-f*h,M=u*h-c*p;if(k+M&lt;=T)if(k&lt;0)M&lt;0&amp;&amp;h&lt;0?(M=0,-h&gt;=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d):(k=0,p&gt;=0?(M=0,y=d):-p&gt;=f?(M=1,y=f+2*p+d):y=p*(M=-p/f)+d);else if(M&lt;0)M=0,h&gt;=0?(k=0,y=d):-h&gt;=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d;else{var A=1/T;y=(k*=A)*(c*k+u*(M*=A)+2*h)+M*(u*k+f*M+2*p)+d}else k&lt;0?(b=f+p)&gt;(x=u+h)?(_=b-x)&gt;=(w=c-2*u+f)?(k=1,M=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(M=1-k)+2*h)+M*(u*k+f*M+2*p)+d:(k=0,b&lt;=0?(M=1,y=f+2*p+d):p&gt;=0?(M=0,y=d):y=p*(M=-p/f)+d):M&lt;0?(b=c+h)&gt;(x=u+p)?(_=b-x)&gt;=(w=c-2*u+f)?(M=1,k=0,y=f+2*p+d):y=(k=1-(M=_/w))*(c*k+u*M+2*h)+M*(u*k+f*M+2*p)+d:(M=0,b&lt;=0?(k=1,y=c+2*h+d):h&gt;=0?(k=0,y=d):y=h*(k=-h/c)+d):(_=f+p-u-h)&lt;=0?(k=0,M=1,y=f+2*p+d):_&gt;=(w=c-2*u+f)?(k=1,M=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(M=1-k)+2*h)+M*(u*k+f*M+2*p)+d;var S=1-k-M;for(l=0;l&lt;o.length;++l)s[l]=S*t[l]+k*e[l]+M*r[l];return y&lt;0?0:y}},{}],526:[function(t,e,r){var n,i,a=e.exports={};function o(){throw new Error(&quot;setTimeout has not been defined&quot;)}function s(){throw new Error(&quot;clearTimeout has not been defined&quot;)}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&amp;&amp;setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n=&quot;function&quot;==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i=&quot;function&quot;==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,u=[],f=!1,h=-1;function p(){f&amp;&amp;c&amp;&amp;(f=!1,c.length?u=c.concat(u):h=-1,u.length&amp;&amp;d())}function d(){if(!f){var t=l(p);f=!0;for(var e=u.length;e;){for(c=u,u=[];++h&lt;e;)c&amp;&amp;c[h].run();h=-1,e=u.length}c=null,f=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&amp;&amp;clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function m(){}a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length&gt;1)for(var r=1;r&lt;arguments.length;r++)e[r-1]=arguments[r];u.push(new g(t,e)),1!==u.length||f||l(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},a.title=&quot;browser&quot;,a.browser=!0,a.env={},a.argv=[],a.version=&quot;&quot;,a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(t){return[]},a.binding=function(t){throw new Error(&quot;process.binding is not supported&quot;)},a.cwd=function(){return&quot;/&quot;},a.chdir=function(t){throw new Error(&quot;process.chdir is not supported&quot;)},a.umask=function(){return 0}},{}],527:[function(t,e,r){e.exports=t(&quot;gl-quat/slerp&quot;)},{&quot;gl-quat/slerp&quot;:325}],528:[function(t,e,r){(function(r){(function(){for(var n=t(&quot;performance-now&quot;),i=&quot;undefined&quot;==typeof window?r:window,a=[&quot;moz&quot;,&quot;webkit&quot;],o=&quot;AnimationFrame&quot;,s=i[&quot;request&quot;+o],l=i[&quot;cancel&quot;+o]||i[&quot;cancelRequest&quot;+o],c=0;!s&amp;&amp;c&lt;a.length;c++)s=i[a[c]+&quot;Request&quot;+o],l=i[a[c]+&quot;Cancel&quot;+o]||i[a[c]+&quot;CancelRequest&quot;+o];if(!s||!l){var u=0,f=0,h=[];s=function(t){if(0===h.length){var e=n(),r=Math.max(0,1e3/60-(e-u));u=r+e,setTimeout((function(){var t=h.slice(0);h.length=0;for(var e=0;e&lt;t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(r))}return h.push({handle:++f,callback:t,cancelled:!1}),f},l=function(t){for(var e=0;e&lt;h.length;e++)h[e].handle===t&amp;&amp;(h[e].cancelled=!0)}}e.exports=function(t){return s.call(i,t)},e.exports.cancel=function(){l.apply(i,arguments)},e.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=s,t.cancelAnimationFrame=l}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;performance-now&quot;:508}],529:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat/add&quot;);e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a&lt;r;++a)i[a]=n(t[a],e[a]);return i}},{&quot;big-rat/add&quot;:80}],530:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=new Array(t.length),r=0;r&lt;t.length;++r)e[r]=n(t[r]);return e};var n=t(&quot;big-rat&quot;)},{&quot;big-rat&quot;:83}],531:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat&quot;),i=t(&quot;big-rat/mul&quot;);e.exports=function(t,e){for(var r=n(e),a=t.length,o=new Array(a),s=0;s&lt;a;++s)o[s]=i(t[s],r);return o}},{&quot;big-rat&quot;:83,&quot;big-rat/mul&quot;:92}],532:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat/sub&quot;);e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a&lt;r;++a)i[a]=n(t[a],e[a]);return i}},{&quot;big-rat/sub&quot;:94}],533:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;compare-cell&quot;),i=t(&quot;compare-oriented-cell&quot;),a=t(&quot;cell-orientation&quot;);e.exports=function(t){t.sort(i);for(var e=t.length,r=0,o=0;o&lt;e;++o){var s=t[o],l=a(s);if(0!==l){if(r&gt;0){var c=t[r-1];if(0===n(s,c)&amp;&amp;a(c)!==l){r-=1;continue}}t[r++]=s}}return t.length=r,t}},{&quot;cell-orientation&quot;:117,&quot;compare-cell&quot;:133,&quot;compare-oriented-cell&quot;:134}],534:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;array-bounds&quot;),i=t(&quot;color-normalize&quot;),a=t(&quot;update-diff&quot;),o=t(&quot;pick-by-alias&quot;),s=t(&quot;object-assign&quot;),l=t(&quot;flatten-vertex-data&quot;),c=t(&quot;to-float32&quot;),u=c.float32,f=c.fract32;e.exports=function(t,e){&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):e=t;e.length&amp;&amp;(e.positions=e);if(!(t=e.regl).hasExtension(&quot;ANGLE_instanced_arrays&quot;))throw Error(&quot;regl-error2d: `ANGLE_instanced_arrays` extension should be enabled&quot;);var r,c,p,d,g,m,v=t._gl,y={color:&quot;black&quot;,capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},x=[];return d=t.buffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:new Uint8Array(0)}),c=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),p=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),g=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),m=t.buffer({usage:&quot;static&quot;,type:&quot;float&quot;,data:h}),T(e),r=t({vert:&quot;\n\t\tprecision highp float;\n\n\t\tattribute vec2 position, positionFract;\n\t\tattribute vec4 error;\n\t\tattribute vec4 color;\n\n\t\tattribute vec2 direction, lineOffset, capOffset;\n\n\t\tuniform vec4 viewport;\n\t\tuniform float lineWidth, capSize;\n\t\tuniform vec2 scale, scaleFract, translate, translateFract;\n\n\t\tvarying vec4 fragColor;\n\n\t\tvoid main() {\n\t\t\tfragColor = color / 255.;\n\n\t\t\tvec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;\n\n\t\t\tvec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;\n\n\t\t\tvec2 position = position + dxy;\n\n\t\t\tvec2 pos = (position + translate) * scale\n\t\t\t\t+ (positionFract + translateFract) * scale\n\t\t\t\t+ (position + translate) * scaleFract\n\t\t\t\t+ (positionFract + translateFract) * scaleFract;\n\n\t\t\tpos += pixelOffset / viewport.zw;\n\n\t\t\tgl_Position = vec4(pos * 2. - 1., 0, 1);\n\t\t}\n\t\t&quot;,frag:&quot;\n\t\tprecision highp float;\n\n\t\tvarying vec4 fragColor;\n\n\t\tuniform float opacity;\n\n\t\tvoid main() {\n\t\t\tgl_FragColor = fragColor;\n\t\t\tgl_FragColor.a *= opacity;\n\t\t}\n\t\t&quot;,uniforms:{range:t.prop(&quot;range&quot;),lineWidth:t.prop(&quot;lineWidth&quot;),capSize:t.prop(&quot;capSize&quot;),opacity:t.prop(&quot;opacity&quot;),scale:t.prop(&quot;scale&quot;),translate:t.prop(&quot;translate&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{color:{buffer:d,offset:function(t,e){return 4*e.offset},divisor:1},position:{buffer:c,offset:function(t,e){return 8*e.offset},divisor:1},positionFract:{buffer:p,offset:function(t,e){return 8*e.offset},divisor:1},error:{buffer:g,offset:function(t,e){return 16*e.offset},divisor:1},direction:{buffer:m,stride:24,offset:0},lineOffset:{buffer:m,stride:24,offset:8},capOffset:{buffer:m,stride:24,offset:16}},primitive:&quot;triangles&quot;,blend:{enable:!0,color:[0,0,0,0],equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},depth:{enable:!1},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;),stencil:!1,instances:t.prop(&quot;count&quot;),count:h.length}),s(b,{update:T,draw:_,destroy:k,regl:t,gl:v,canvas:v.canvas,groups:x}),b;function b(t){t?T(t):null===t&amp;&amp;k(),_()}function _(e){if(&quot;number&quot;==typeof e)return w(e);e&amp;&amp;!Array.isArray(e)&amp;&amp;(e=[e]),t._refresh(),x.forEach((function(t,r){t&amp;&amp;(e&amp;&amp;(e[r]?t.draw=!0:t.draw=!1),t.draw?w(r):t.draw=!0)}))}function w(t){&quot;number&quot;==typeof t&amp;&amp;(t=x[t]),null!=t&amp;&amp;t&amp;&amp;t.count&amp;&amp;t.color&amp;&amp;t.opacity&amp;&amp;t.positions&amp;&amp;t.positions.length&gt;1&amp;&amp;(t.scaleRatio=[t.scale[0]*t.viewport.width,t.scale[1]*t.viewport.height],r(t),t.after&amp;&amp;t.after(t))}function T(t){if(t){null!=t.length?&quot;number&quot;==typeof t[0]&amp;&amp;(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var e=0,r=0;if(b.groups=x=t.map((function(t,c){var u=x[c];return t?(&quot;function&quot;==typeof t?t={after:t}:&quot;number&quot;==typeof t[0]&amp;&amp;(t={positions:t}),t=o(t,{color:&quot;color colors fill&quot;,capSize:&quot;capSize cap capsize cap-size&quot;,lineWidth:&quot;lineWidth line-width width line thickness&quot;,opacity:&quot;opacity alpha&quot;,range:&quot;range dataBox&quot;,viewport:&quot;viewport viewBox&quot;,errors:&quot;errors error&quot;,positions:&quot;positions position data points&quot;}),u||(x[c]=u={id:c,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},t=s({},y,t)),a(u,t,[{lineWidth:function(t){return.5*+t},capSize:function(t){return.5*+t},opacity:parseFloat,errors:function(t){return t=l(t),r+=t.length,t},positions:function(t,r){return t=l(t,&quot;float64&quot;),r.count=Math.floor(t.length/2),r.bounds=n(t,2),r.offset=e,e+=r.count,t}},{color:function(t,e){var r=e.count;if(t||(t=&quot;transparent&quot;),!Array.isArray(t)||&quot;number&quot;==typeof t[0]){var n=t;t=Array(r);for(var a=0;a&lt;r;a++)t[a]=n}if(t.length&lt;r)throw Error(&quot;Not enough colors&quot;);for(var o=new Uint8Array(4*r),s=0;s&lt;r;s++){var l=i(t[s],&quot;uint8&quot;);o.set(l,4*s)}return o},range:function(t,e,r){var n=e.bounds;return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=f(e.scale),e.translateFract=f(e.translate),t},viewport:function(t){var e;return Array.isArray(t)?e={x:t[0],y:t[1],width:t[2]-t[0],height:t[3]-t[1]}:t?(e={x:t.x||t.left||0,y:t.y||t.top||0},t.right?e.width=t.right-e.x:e.width=t.w||t.width||0,t.bottom?e.height=t.bottom-e.y:e.height=t.h||t.height||0):e={x:0,y:0,width:v.drawingBufferWidth,height:v.drawingBufferHeight},e}}]),u):u})),e||r){var h=x.reduce((function(t,e,r){return t+(e?e.count:0)}),0),m=new Float64Array(2*h),_=new Uint8Array(4*h),w=new Float32Array(4*h);x.forEach((function(t,e){if(t){var r=t.positions,n=t.count,i=t.offset,a=t.color,o=t.errors;n&amp;&amp;(_.set(a,4*i),w.set(o,4*i),m.set(r,2*i))}})),c(u(m)),p(f(m)),d(_),g(w)}}}function k(){c.destroy(),p.destroy(),d.destroy(),g.destroy(),m.destroy()}};var h=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]]},{&quot;array-bounds&quot;:70,&quot;color-normalize&quot;:125,&quot;flatten-vertex-data&quot;:244,&quot;object-assign&quot;:499,&quot;pick-by-alias&quot;:511,&quot;to-float32&quot;:577,&quot;update-diff&quot;:599}],535:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-normalize&quot;),i=t(&quot;array-bounds&quot;),a=t(&quot;object-assign&quot;),o=t(&quot;glslify&quot;),s=t(&quot;pick-by-alias&quot;),l=t(&quot;flatten-vertex-data&quot;),c=t(&quot;earcut&quot;),u=t(&quot;array-normalize&quot;),f=t(&quot;to-float32&quot;),h=f.float32,p=f.fract32,d=t(&quot;es6-weak-map&quot;),g=t(&quot;parse-rect&quot;);function m(t,e){if(!(this instanceof m))return new m(t,e);if(&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):e=t,e.length&amp;&amp;(e.positions=e),!(t=e.regl).hasExtension(&quot;ANGLE_instanced_arrays&quot;))throw Error(&quot;regl-error2d: `ANGLE_instanced_arrays` extension should be enabled&quot;);this.gl=t._gl,this.regl=t,this.passes=[],this.shaders=m.shaders.has(t)?m.shaders.get(t):m.shaders.set(t,m.createShaders(t)).get(t),this.update(e)}e.exports=m,m.dashMult=2,m.maxPatternLength=256,m.precisionThreshold=3e6,m.maxPoints=1e4,m.maxLines=2048,m.shaders=new d,m.createShaders=function(t){var e,r=t.buffer({usage:&quot;static&quot;,type:&quot;float&quot;,data:[0,1,0,0,1,1,1,0]}),n={primitive:&quot;triangle strip&quot;,instances:t.prop(&quot;count&quot;),count:4,offset:0,uniforms:{miterMode:function(t,e){return&quot;round&quot;===e.join?2:1},miterLimit:t.prop(&quot;miterLimit&quot;),scale:t.prop(&quot;scale&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),translate:t.prop(&quot;translate&quot;),thickness:t.prop(&quot;thickness&quot;),dashPattern:t.prop(&quot;dashTexture&quot;),opacity:t.prop(&quot;opacity&quot;),pixelRatio:t.context(&quot;pixelRatio&quot;),id:t.prop(&quot;id&quot;),dashSize:t.prop(&quot;dashLength&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]},depth:t.prop(&quot;depth&quot;)},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},depth:{enable:function(t,e){return!e.overlay}},stencil:{enable:!1},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;)},i=t(a({vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;\nattribute vec4 color;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvec2 project(vec2 position, vec2 positionFract, vec2 scale, vec2 scaleFract, vec2 translate, vec2 translateFract) {\n\t// the order is important\n\treturn position * scale + translate\n       + positionFract * scale + translateFract\n       + position * scaleFract\n       + positionFract * scaleFract;\n}\n\nvoid main() {\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineOffset = lineTop * 2. - 1.;\n\n\tvec2 diff = (bCoord + bCoordFract - aCoord - aCoordFract);\n\ttangent = normalize(diff * scale * viewport.zw);\n\tvec2 normal = vec2(-tangent.y, tangent.x);\n\n\tvec2 position = project(aCoord, aCoordFract, scale, scaleFract, translate, translateFract) * lineStart\n\t\t+ project(bCoord, bCoordFract, scale, scaleFract, translate, translateFract) * lineEnd\n\n\t\t+ thickness * normal * .5 * lineOffset / viewport.zw;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\n\nuniform float dashSize, pixelRatio, thickness, opacity, id;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvoid main() {\n\tfloat alpha = 1.;\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n&quot;]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:16,divisor:1},aCoordFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:8,divisor:1},bCoordFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:16,divisor:1},color:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:0,divisor:1}}},n));try{e=t(a({cull:{enable:!0,face:&quot;back&quot;},vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, nextCoord, prevCoord;\nattribute vec4 aColor, bColor;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, translate;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\nuniform float miterLimit, miterMode;\n\nvarying vec4 fragColor;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 tangent;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nconst float REVERSE_THRESHOLD = -.875;\nconst float MIN_DIFF = 1e-6;\n\n// TODO: possible optimizations: avoid overcalculating all for vertices and calc just one instead\n// TODO: precalculate dot products, normalize things beforehead etc.\n// TODO: refactor to rectangular algorithm\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nbool isNaN( float val ){\n  return ( val &lt; 0.0 || 0.0 &lt; val || val == 0.0 ) ? false : true;\n}\n\nvoid main() {\n\tvec2 aCoord = aCoord, bCoord = bCoord, prevCoord = prevCoord, nextCoord = nextCoord;\n\n  vec2 adjustedScale;\n  adjustedScale.x = (abs(scale.x) &lt; MIN_DIFF) ? MIN_DIFF : scale.x;\n  adjustedScale.y = (abs(scale.y) &lt; MIN_DIFF) ? MIN_DIFF : scale.y;\n\n  vec2 scaleRatio = adjustedScale * viewport.zw;\n\tvec2 normalWidth = thickness / scaleRatio;\n\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineBot = 1. - lineTop;\n\n\tfragColor = (lineStart * aColor + lineEnd * bColor) / 255.;\n\n\tif (isNaN(aCoord.x) || isNaN(aCoord.y) || isNaN(bCoord.x) || isNaN(bCoord.y)) return;\n\n\tif (aCoord == prevCoord) prevCoord = aCoord + normalize(bCoord - aCoord);\n\tif (bCoord == nextCoord) nextCoord = bCoord - normalize(bCoord - aCoord);\n\n\tvec2 prevDiff = aCoord - prevCoord;\n\tvec2 currDiff = bCoord - aCoord;\n\tvec2 nextDiff = nextCoord - bCoord;\n\n\tvec2 prevTangent = normalize(prevDiff * scaleRatio);\n\tvec2 currTangent = normalize(currDiff * scaleRatio);\n\tvec2 nextTangent = normalize(nextDiff * scaleRatio);\n\n\tvec2 prevNormal = vec2(-prevTangent.y, prevTangent.x);\n\tvec2 currNormal = vec2(-currTangent.y, currTangent.x);\n\tvec2 nextNormal = vec2(-nextTangent.y, nextTangent.x);\n\n\tvec2 startJoinDirection = normalize(prevTangent - currTangent);\n\tvec2 endJoinDirection = normalize(currTangent - nextTangent);\n\n\t// collapsed/unidirectional segment cases\n\t// FIXME: there should be more elegant solution\n\tvec2 prevTanDiff = abs(prevTangent - currTangent);\n\tvec2 nextTanDiff = abs(nextTangent - currTangent);\n\tif (max(prevTanDiff.x, prevTanDiff.y) &lt; MIN_DIFF) {\n\t\tstartJoinDirection = currNormal;\n\t}\n\tif (max(nextTanDiff.x, nextTanDiff.y) &lt; MIN_DIFF) {\n\t\tendJoinDirection = currNormal;\n\t}\n\tif (aCoord == bCoord) {\n\t\tendJoinDirection = startJoinDirection;\n\t\tcurrNormal = prevNormal;\n\t\tcurrTangent = prevTangent;\n\t}\n\n\ttangent = currTangent;\n\n\t//calculate join shifts relative to normals\n\tfloat startJoinShift = dot(currNormal, startJoinDirection);\n\tfloat endJoinShift = dot(currNormal, endJoinDirection);\n\n\tfloat startMiterRatio = abs(1. / startJoinShift);\n\tfloat endMiterRatio = abs(1. / endJoinShift);\n\n\tvec2 startJoin = startJoinDirection * startMiterRatio;\n\tvec2 endJoin = endJoinDirection * endMiterRatio;\n\n\tvec2 startTopJoin, startBotJoin, endTopJoin, endBotJoin;\n\tstartTopJoin = sign(startJoinShift) * startJoin * .5;\n\tstartBotJoin = -startTopJoin;\n\n\tendTopJoin = sign(endJoinShift) * endJoin * .5;\n\tendBotJoin = -endTopJoin;\n\n\tvec2 aTopCoord = aCoord + normalWidth * startTopJoin;\n\tvec2 bTopCoord = bCoord + normalWidth * endTopJoin;\n\tvec2 aBotCoord = aCoord + normalWidth * startBotJoin;\n\tvec2 bBotCoord = bCoord + normalWidth * endBotJoin;\n\n\t//miter anti-clipping\n\tfloat baClipping = distToLine(bCoord, aCoord, aBotCoord) / dot(normalize(normalWidth * endBotJoin), normalize(normalWidth.yx * vec2(-startBotJoin.y, startBotJoin.x)));\n\tfloat abClipping = distToLine(aCoord, bCoord, bTopCoord) / dot(normalize(normalWidth * startBotJoin), normalize(normalWidth.yx * vec2(-endBotJoin.y, endBotJoin.x)));\n\n\t//prevent close to reverse direction switch\n\tbool prevReverse = dot(currTangent, prevTangent) &lt;= REVERSE_THRESHOLD &amp;&amp; abs(dot(currTangent, prevNormal)) * min(length(prevDiff), length(currDiff)) &lt;  length(normalWidth * currNormal);\n\tbool nextReverse = dot(currTangent, nextTangent) &lt;= REVERSE_THRESHOLD &amp;&amp; abs(dot(currTangent, nextNormal)) * min(length(nextDiff), length(currDiff)) &lt;  length(normalWidth * currNormal);\n\n\tif (prevReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * startJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / startMiterRatio, 1.);\n\t\taBotCoord = aCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\taTopCoord = aCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!nextReverse &amp;&amp; baClipping &gt; 0. &amp;&amp; baClipping &lt; length(normalWidth * endBotJoin)) {\n\t\t//handle miter clipping\n\t\tbTopCoord -= normalWidth * endTopJoin;\n\t\tbTopCoord += normalize(endTopJoin * normalWidth) * baClipping;\n\t}\n\n\tif (nextReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);\n\t\tbBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\tbTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!prevReverse &amp;&amp; abClipping &gt; 0. &amp;&amp; abClipping &lt; length(normalWidth * startBotJoin)) {\n\t\t//handle miter clipping\n\t\taBotCoord -= normalWidth * startBotJoin;\n\t\taBotCoord += normalize(startBotJoin * normalWidth) * abClipping;\n\t}\n\n\tvec2 aTopPosition = (aTopCoord) * adjustedScale + translate;\n\tvec2 aBotPosition = (aBotCoord) * adjustedScale + translate;\n\n\tvec2 bTopPosition = (bTopCoord) * adjustedScale + translate;\n\tvec2 bBotPosition = (bBotCoord) * adjustedScale + translate;\n\n\t//position is normalized 0..1 coord on the screen\n\tvec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;\n\n\tstartCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\tendCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\n\tgl_Position = vec4(position  * 2.0 - 1.0, depth, 1);\n\n\tenableStartMiter = step(dot(currTangent, prevTangent), .5);\n\tenableEndMiter = step(dot(currTangent, nextTangent), .5);\n\n\t//bevel miter cutoffs\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n\n\t//round miter cutoffs\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\nuniform float dashSize, pixelRatio, thickness, opacity, id, miterMode;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nvoid main() {\n\tfloat alpha = 1., distToStart, distToEnd;\n\tfloat cutoff = thickness * .5;\n\n\t//bevel miter\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart &lt; -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToStart + 1., 0.), 1.);\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd &lt; -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToEnd + 1., 0.), 1.);\n\t\t}\n\t}\n\n\t// round miter\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart &lt; 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - startCoord);\n\n\t\t\t\tif(radius &gt; cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd &lt; 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - endCoord);\n\n\t\t\t\tif(radius &gt; cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\t}\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n&quot;]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:0,divisor:1},bColor:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:4,divisor:1},prevCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:0,divisor:1},aCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:16,divisor:1},nextCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:24,divisor:1}}},n))}catch(t){e=i}return{fill:t({primitive:&quot;triangle&quot;,elements:function(t,e){return e.triangles},offset:0,vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 position, positionFract;\n\nuniform vec4 color;\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio, id;\nuniform vec4 viewport;\nuniform float opacity;\n\nvarying vec4 fragColor;\n\nconst float MAX_LINES = 256.;\n\nvoid main() {\n\tfloat depth = (MAX_LINES - 4. - id) / (MAX_LINES);\n\n\tvec2 position = position * scale + translate\n       + positionFract * scale + translateFract\n       + position * scaleFract\n       + positionFract * scaleFract;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n\tfragColor.a *= opacity;\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n\tgl_FragColor = fragColor;\n}\n&quot;]),uniforms:{scale:t.prop(&quot;scale&quot;),color:t.prop(&quot;fill&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),translate:t.prop(&quot;translate&quot;),opacity:t.prop(&quot;opacity&quot;),pixelRatio:t.context(&quot;pixelRatio&quot;),id:t.prop(&quot;id&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{position:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8},positionFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:8}},blend:n.blend,depth:{enable:!1},scissor:n.scissor,stencil:n.stencil,viewport:n.viewport}),rect:i,miter:e}},m.defaults={dashes:null,join:&quot;miter&quot;,miterLimit:1,thickness:10,cap:&quot;square&quot;,color:&quot;black&quot;,opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},m.prototype.render=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];e.length&amp;&amp;(t=this).update.apply(t,e),this.draw()},m.prototype.draw=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];return(e.length?e:this.passes).forEach((function(e,r){var n;if(e&amp;&amp;Array.isArray(e))return(n=t).draw.apply(n,e);&quot;number&quot;==typeof e&amp;&amp;(e=t.passes[e]),e&amp;&amp;e.count&gt;1&amp;&amp;e.opacity&amp;&amp;(t.regl._refresh(),e.fill&amp;&amp;e.triangles&amp;&amp;e.triangles.length&gt;2&amp;&amp;t.shaders.fill(e),e.thickness&amp;&amp;(e.scale[0]*e.viewport.width&gt;m.precisionThreshold||e.scale[1]*e.viewport.height&gt;m.precisionThreshold||&quot;rect&quot;===e.join||!e.join&amp;&amp;(e.thickness&lt;=2||e.count&gt;=m.maxPoints)?t.shaders.rect(e):t.shaders.miter(e)))})),this},m.prototype.update=function(t){var e=this;if(t){null!=t.length?&quot;number&quot;==typeof t[0]&amp;&amp;(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var r=this.regl,o=this.gl;if(t.forEach((function(t,f){var d=e.passes[f];if(void 0!==t)if(null!==t){if(&quot;number&quot;==typeof t[0]&amp;&amp;(t={positions:t}),t=s(t,{positions:&quot;positions points data coords&quot;,thickness:&quot;thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth&quot;,join:&quot;lineJoin linejoin join type mode&quot;,miterLimit:&quot;miterlimit miterLimit&quot;,dashes:&quot;dash dashes dasharray dash-array dashArray&quot;,color:&quot;color colour stroke colors colours stroke-color strokeColor&quot;,fill:&quot;fill fill-color fillColor&quot;,opacity:&quot;alpha opacity&quot;,overlay:&quot;overlay crease overlap intersect&quot;,close:&quot;closed close closed-path closePath&quot;,range:&quot;range dataBox&quot;,viewport:&quot;viewport viewBox&quot;,hole:&quot;holes hole hollow&quot;}),d||(e.passes[f]=d={id:f,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:&quot;linear&quot;,min:&quot;linear&quot;}),colorBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:new Uint8Array}),positionBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array}),positionFractBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array})},t=a({},m.defaults,t)),null!=t.thickness&amp;&amp;(d.thickness=parseFloat(t.thickness)),null!=t.opacity&amp;&amp;(d.opacity=parseFloat(t.opacity)),null!=t.miterLimit&amp;&amp;(d.miterLimit=parseFloat(t.miterLimit)),null!=t.overlay&amp;&amp;(d.overlay=!!t.overlay,f&lt;m.maxLines&amp;&amp;(d.depth=2*(m.maxLines-1-f%m.maxLines)/m.maxLines-1)),null!=t.join&amp;&amp;(d.join=t.join),null!=t.hole&amp;&amp;(d.hole=t.hole),null!=t.fill&amp;&amp;(d.fill=t.fill?n(t.fill,&quot;uint8&quot;):null),null!=t.viewport&amp;&amp;(d.viewport=g(t.viewport)),d.viewport||(d.viewport=g([o.drawingBufferWidth,o.drawingBufferHeight])),null!=t.close&amp;&amp;(d.close=t.close),null===t.positions&amp;&amp;(t.positions=[]),t.positions){var v,y;if(t.positions.x&amp;&amp;t.positions.y){var x=t.positions.x,b=t.positions.y;y=d.count=Math.max(x.length,b.length),v=new Float64Array(2*y);for(var _=0;_&lt;y;_++)v[2*_]=x[_],v[2*_+1]=b[_]}else v=l(t.positions,&quot;float64&quot;),y=d.count=Math.floor(v.length/2);var w=d.bounds=i(v,2);if(d.fill){for(var T=[],k={},M=0,A=0,S=0,E=d.count;A&lt;E;A++){var C=v[2*A],L=v[2*A+1];isNaN(C)||isNaN(L)||null==C||null==L?(C=v[2*M],L=v[2*M+1],k[A]=M):M=A,T[S++]=C,T[S++]=L}for(var I=c(T,d.hole||[]),P=0,z=I.length;P&lt;z;P++)null!=k[I[P]]&amp;&amp;(I[P]=k[I[P]]);d.triangles=I}var O=new Float64Array(v);u(O,2,w);var D=new Float64Array(2*y+6);d.close?v[0]===v[2*y-2]&amp;&amp;v[1]===v[2*y-1]?(D[0]=O[2*y-4],D[1]=O[2*y-3]):(D[0]=O[2*y-2],D[1]=O[2*y-1]):(D[0]=O[0],D[1]=O[1]),D.set(O,2),d.close?v[0]===v[2*y-2]&amp;&amp;v[1]===v[2*y-1]?(D[2*y+2]=O[2],D[2*y+3]=O[3],d.count-=1):(D[2*y+2]=O[0],D[2*y+3]=O[1],D[2*y+4]=O[2],D[2*y+5]=O[3]):(D[2*y+2]=O[2*y-2],D[2*y+3]=O[2*y-1],D[2*y+4]=O[2*y-2],D[2*y+5]=O[2*y-1]),d.positionBuffer(h(D)),d.positionFractBuffer(p(D))}if(t.range?d.range=t.range:d.range||(d.range=d.bounds),(t.range||t.positions)&amp;&amp;d.count){var R=d.bounds,F=R[2]-R[0],B=R[3]-R[1],N=d.range[2]-d.range[0],j=d.range[3]-d.range[1];d.scale=[F/N,B/j],d.translate=[-d.range[0]/N+R[0]/N||0,-d.range[1]/j+R[1]/j||0],d.scaleFract=p(d.scale),d.translateFract=p(d.translate)}if(t.dashes){var U,V=0;if(!t.dashes||t.dashes.length&lt;2)V=1,U=new Uint8Array([255,255,255,255,255,255,255,255]);else{V=0;for(var q=0;q&lt;t.dashes.length;++q)V+=t.dashes[q];U=new Uint8Array(V*m.dashMult);for(var H=0,G=255,Y=0;Y&lt;2;Y++)for(var W=0;W&lt;t.dashes.length;++W){for(var X=0,Z=t.dashes[W]*m.dashMult*.5;X&lt;Z;++X)U[H++]=G;G^=255}}d.dashLength=V,d.dashTexture({channels:1,data:U,width:U.length,height:1,mag:&quot;linear&quot;,min:&quot;linear&quot;},0,0)}if(t.color){var J=d.count,K=t.color;K||(K=&quot;transparent&quot;);var Q=new Uint8Array(4*J+4);if(Array.isArray(K)&amp;&amp;&quot;number&quot;!=typeof K[0]){for(var $=0;$&lt;J;$++){var tt=n(K[$],&quot;uint8&quot;);Q.set(tt,4*$)}Q.set(n(K[0],&quot;uint8&quot;),4*J)}else for(var et=n(K,&quot;uint8&quot;),rt=0;rt&lt;J+1;rt++)Q.set(et,4*rt);d.colorBuffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:Q})}}else e.passes[f]=null})),t.length&lt;this.passes.length){for(var f=t.length;f&lt;this.passes.length;f++){var d=this.passes[f];d&amp;&amp;(d.colorBuffer.destroy(),d.positionBuffer.destroy(),d.dashTexture.destroy())}this.passes.length=t.length}for(var v=[],y=0;y&lt;this.passes.length;y++)null!==this.passes[y]&amp;&amp;v.push(this.passes[y]);return this.passes=v,this}},m.prototype.destroy=function(){return this.passes.forEach((function(t){t.colorBuffer.destroy(),t.positionBuffer.destroy(),t.dashTexture.destroy()})),this.passes.length=0,this}},{&quot;array-bounds&quot;:70,&quot;array-normalize&quot;:71,&quot;color-normalize&quot;:125,earcut:177,&quot;es6-weak-map&quot;:233,&quot;flatten-vertex-data&quot;:244,glslify:536,&quot;object-assign&quot;:499,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511,&quot;to-float32&quot;:577}],536:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],537:[function(t,e,r){&quot;use strict&quot;;function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(&quot;undefined&quot;==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&amp;&amp;(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}(t,e)||a(t,e)||function(){throw new TypeError(&quot;Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.&quot;)}()}function i(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if(&quot;undefined&quot;!=typeof Symbol&amp;&amp;Symbol.iterator in Object(t))return Array.from(t)}(t)||a(t)||function(){throw new TypeError(&quot;Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.&quot;)}()}function a(t,e){if(t){if(&quot;string&quot;==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return&quot;Object&quot;===r&amp;&amp;t.constructor&amp;&amp;(r=t.constructor.name),&quot;Map&quot;===r||&quot;Set&quot;===r?Array.from(t):&quot;Arguments&quot;===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e&gt;t.length)&amp;&amp;(e=t.length);for(var r=0,n=new Array(e);r&lt;e;r++)n[r]=t[r];return n}var s=t(&quot;color-normalize&quot;),l=t(&quot;array-bounds&quot;),c=t(&quot;color-id&quot;),u=t(&quot;@plotly/point-cluster&quot;),f=t(&quot;object-assign&quot;),h=t(&quot;glslify&quot;),p=t(&quot;pick-by-alias&quot;),d=t(&quot;update-diff&quot;),g=t(&quot;flatten-vertex-data&quot;),m=t(&quot;is-iexplorer&quot;),v=t(&quot;to-float32&quot;),y=t(&quot;parse-rect&quot;),x=b;function b(t,e){var r=this;if(!(this instanceof b))return new b(t,e);&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):(e=t,t=null),e&amp;&amp;e.length&amp;&amp;(e.positions=e);var n,i=(t=e.regl)._gl,a=[];this.tooManyColors=m,n=t.texture({data:new Uint8Array(1020),width:255,height:1,type:&quot;uint8&quot;,format:&quot;rgba&quot;,wrapS:&quot;clamp&quot;,wrapT:&quot;clamp&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;}),f(this,{regl:t,gl:i,groups:[],markerCache:[null],markerTextures:[null],palette:a,paletteIds:{},paletteTexture:n,maxColors:255,maxSize:100,canvas:i.canvas}),this.update(e);var o={uniforms:{constPointSize:!!e.constPointSize,pixelRatio:t.context(&quot;pixelRatio&quot;),palette:n,paletteSize:function(t,e){return[r.tooManyColors?0:255,n.height]},scale:t.prop(&quot;scale&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translate:t.prop(&quot;translate&quot;),translateFract:t.prop(&quot;translateFract&quot;),opacity:t.prop(&quot;opacity&quot;),marker:t.prop(&quot;markerTexture&quot;)},attributes:{x:function(t,e){return e.xAttr||{buffer:e.positionBuffer,stride:8,offset:0}},y:function(t,e){return e.yAttr||{buffer:e.positionBuffer,stride:8,offset:4}},xFract:function(t,e){return e.xAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:0}},yFract:function(t,e){return e.yAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:4}},size:function(t,e){return e.size.length?{buffer:e.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(255*e.size/r.maxSize)]}},borderSize:function(t,e){return e.borderSize.length?{buffer:e.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(255*e.borderSize/r.maxSize)]}},colorId:function(t,e){return e.color.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(4*e.color,4*e.color+4):[e.color]}},borderColorId:function(t,e){return e.borderColor.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(4*e.borderColor,4*e.borderColor+4):[e.borderColor]}},isActive:function(t,e){return!0===e.activation?{constant:[1]}:e.activation?e.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;),stencil:{enable:!1},depth:{enable:!1},elements:t.prop(&quot;elements&quot;),count:t.prop(&quot;count&quot;),offset:t.prop(&quot;offset&quot;),primitive:&quot;points&quot;},s=f({},o);s.frag=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragWidth, fragBorderColorLevel, fragColorLevel;\n\nuniform sampler2D marker;\nuniform float opacity;\n\nfloat smoothStep(float x, float y) {\n  return 1.0 / (1.0 + exp(50.0*(x - y)));\n}\n\nvoid main() {\n  float dist = texture2D(marker, gl_PointCoord).r, delta = fragWidth;\n\n  // max-distance alpha\n  if (dist &lt; 0.003) discard;\n\n  // null-border case\n  if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {\n    float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);\n    gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);\n  }\n  else {\n    float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);\n    float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);\n\n    vec4 color = fragBorderColor;\n    color.a *= borderColorAmt;\n    color = mix(color, fragColor, colorAmt);\n    color.a *= opacity;\n\n    gl_FragColor = color;\n  }\n\n}\n&quot;]),s.vert=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform vec2 scale, scaleFract, translate, translateFract, paletteSize;\nuniform float pixelRatio;\nuniform bool constPointSize;\nuniform sampler2D palette;\n\nconst float maxSize = 100.;\nconst float borderLevel = .5;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x &lt; 1.);\n\nvec4 getColor(vec4 id) {\n  return isDirect ? id / 255. : texture2D(palette,\n    vec2(\n      (id.x + .5) / paletteSize.x,\n      (id.y + .5) / paletteSize.y\n    )\n  );\n}\n\nvoid main() {\n  // ignore inactive points\n  if (isActive == 0.) return;\n\n  vec2 position = vec2(x, y);\n  vec2 positionFract = vec2(xFract, yFract);\n\n  vec4 color = getColor(colorId);\n  vec4 borderColor = getColor(borderColorId);\n\n  float size = size * maxSize / 255.;\n  float borderSize = borderSize * maxSize / 255.;\n\n  gl_PointSize = 2. * size * pointSizeScale;\n  fragPointSize = size * pixelRatio;\n\n  vec2 pos = (position + translate) * scale\n      + (positionFract + translateFract) * scale\n      + (position + translate) * scaleFract\n      + (positionFract + translateFract) * scaleFract;\n\n  gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n  fragColor = color;\n  fragBorderColor = borderColor;\n  fragWidth = 1. / gl_PointSize;\n\n  fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);\n  fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);\n}&quot;]),this.drawMarker=t(s);var l=f({},o);l.frag=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\n\nuniform float opacity;\nvarying float fragBorderRadius, fragWidth;\n\nfloat smoothStep(float edge0, float edge1, float x) {\n\tfloat t;\n\tt = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\n\treturn t * t * (3.0 - 2.0 * t);\n}\n\nvoid main() {\n\tfloat radius, alpha = 1.0, delta = fragWidth;\n\n\tradius = length(2.0 * gl_PointCoord.xy - 1.0);\n\n\tif (radius &gt; 1.0 + delta) {\n\t\tdiscard;\n\t}\n\n\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\n\n\tfloat borderRadius = fragBorderRadius;\n\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\n\tvec4 color = mix(fragColor, fragBorderColor, ratio);\n\tcolor.a *= alpha * opacity;\n\tgl_FragColor = color;\n}\n&quot;]),l.vert=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio;\nuniform bool constPointSize;\nuniform sampler2D palette;\nuniform vec2 paletteSize;\n\nconst float maxSize = 100.;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x &lt; 1.);\n\nvec4 getColor(vec4 id) {\n  return isDirect ? id / 255. : texture2D(palette,\n    vec2(\n      (id.x + .5) / paletteSize.x,\n      (id.y + .5) / paletteSize.y\n    )\n  );\n}\n\nvoid main() {\n  // ignore inactive points\n  if (isActive == 0.) return;\n\n  vec2 position = vec2(x, y);\n  vec2 positionFract = vec2(xFract, yFract);\n\n  vec4 color = getColor(colorId);\n  vec4 borderColor = getColor(borderColorId);\n\n  float size = size * maxSize / 255.;\n  float borderSize = borderSize * maxSize / 255.;\n\n  gl_PointSize = (size + borderSize) * pointSizeScale;\n\n  vec2 pos = (position + translate) * scale\n      + (positionFract + translateFract) * scale\n      + (position + translate) * scaleFract\n      + (positionFract + translateFract) * scaleFract;\n\n  gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n  fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\n  fragColor = color;\n  fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\n  fragWidth = 1. / gl_PointSize;\n}\n&quot;]),m&amp;&amp;(l.frag=l.frag.replace(&quot;smoothstep&quot;,&quot;smoothStep&quot;),s.frag=s.frag.replace(&quot;smoothstep&quot;,&quot;smoothStep&quot;)),this.drawCircle=t(l)}b.defaults={color:&quot;black&quot;,borderColor:&quot;transparent&quot;,borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},b.prototype.render=function(){return arguments.length&amp;&amp;this.update.apply(this,arguments),this.draw(),this},b.prototype.draw=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n&lt;e;n++)r[n]=arguments[n];var i=this.groups;if(1===r.length&amp;&amp;Array.isArray(r[0])&amp;&amp;(null===r[0][0]||Array.isArray(r[0][0]))&amp;&amp;(r=r[0]),this.regl._refresh(),r.length)for(var a=0;a&lt;r.length;a++)this.drawItem(a,r[a]);else i.forEach((function(e,r){t.drawItem(r)}));return this},b.prototype.drawItem=function(t,e){var r=this.groups,n=r[t];if(&quot;number&quot;==typeof e&amp;&amp;(t=e,n=r[e],e=null),n&amp;&amp;n.count&amp;&amp;n.opacity){n.activation[0]&amp;&amp;this.drawCircle(this.getMarkerDrawOptions(0,n,e));for(var a=[],o=1;o&lt;n.activation.length;o++)n.activation[o]&amp;&amp;(!0===n.activation[o]||n.activation[o].data.length)&amp;&amp;a.push.apply(a,i(this.getMarkerDrawOptions(o,n,e)));a.length&amp;&amp;this.drawMarker(a)}},b.prototype.getMarkerDrawOptions=function(t,e,r){var i=e.range,a=e.tree,o=e.viewport,s=e.activation,l=e.selectionBuffer,c=e.count;this.regl;if(!a)return r?[f({},e,{markerTexture:this.markerTextures[t],activation:s[t],count:r.length,elements:r,offset:0})]:[f({},e,{markerTexture:this.markerTextures[t],activation:s[t],offset:0})];var u=[],h=a.range(i,{lod:!0,px:[(i[2]-i[0])/o.width,(i[3]-i[1])/o.height]});if(r){for(var p=s[t].data,d=new Uint8Array(c),g=0;g&lt;r.length;g++){var m=r[g];d[m]=p?p[m]:1}l.subdata(d)}for(var v=h.length;v--;){var y=n(h[v],2),x=y[0],b=y[1];u.push(f({},e,{markerTexture:this.markerTextures[t],activation:r?l:s[t],offset:x,count:b-x}))}return u},b.prototype.update=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n&lt;e;n++)r[n]=arguments[n];if(r.length){1===r.length&amp;&amp;Array.isArray(r[0])&amp;&amp;(r=r[0]);var i=this.groups,a=this.gl,o=this.regl,s=this.maxSize,c=this.maxColors,h=this.palette;this.groups=i=r.map((function(e,r){var n=i[r];if(void 0===e)return n;null===e?e={positions:null}:&quot;function&quot;==typeof e?e={ondraw:e}:&quot;number&quot;==typeof e[0]&amp;&amp;(e={positions:e}),null===(e=p(e,{positions:&quot;positions data points&quot;,snap:&quot;snap cluster lod tree&quot;,size:&quot;sizes size radius&quot;,borderSize:&quot;borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline&quot;,color:&quot;colors color fill fill-color fillColor&quot;,borderColor:&quot;borderColors borderColor stroke stroke-color strokeColor&quot;,marker:&quot;markers marker shape&quot;,range:&quot;range dataBox databox&quot;,viewport:&quot;viewport viewPort viewBox viewbox&quot;,opacity:&quot;opacity alpha transparency&quot;,bounds:&quot;bound bounds boundaries limits&quot;,tooManyColors:&quot;tooManyColors palette paletteMode optimizePalette enablePalette&quot;})).positions&amp;&amp;(e.positions=[]),null!=e.tooManyColors&amp;&amp;(t.tooManyColors=e.tooManyColors),n||(i[r]=n={id:r,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;stream&quot;,type:&quot;uint8&quot;}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;uint8&quot;}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;uint8&quot;}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;float&quot;}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;float&quot;})},e=f({},b.defaults,e)),e.positions&amp;&amp;!(&quot;marker&quot;in e)&amp;&amp;(e.marker=n.marker,delete n.marker),e.marker&amp;&amp;!(&quot;positions&quot;in e)&amp;&amp;(e.positions=n.positions,delete n.positions);var m=0,x=0;if(d(n,e,[{snap:!0,size:function(t,e){return null==t&amp;&amp;(t=b.defaults.size),m+=t&amp;&amp;t.length?1:0,t},borderSize:function(t,e){return null==t&amp;&amp;(t=b.defaults.borderSize),m+=t&amp;&amp;t.length?1:0,t},opacity:parseFloat,color:function(e,r){return null==e&amp;&amp;(e=b.defaults.color),e=t.updateColor(e),x++,e},borderColor:function(e,r){return null==e&amp;&amp;(e=b.defaults.borderColor),e=t.updateColor(e),x++,e},bounds:function(t,e,r){return&quot;range&quot;in r||(r.range=null),t},positions:function(t,e,r){var n=e.snap,i=e.positionBuffer,a=e.positionFractBuffer,s=e.selectionBuffer;if(t.x||t.y)return t.x.length?e.xAttr={buffer:o.buffer(t.x),offset:0,stride:4,count:t.x.length}:e.xAttr={buffer:t.x.buffer,offset:4*t.x.offset||0,stride:4*(t.x.stride||1),count:t.x.count},t.y.length?e.yAttr={buffer:o.buffer(t.y),offset:0,stride:4,count:t.y.length}:e.yAttr={buffer:t.y.buffer,offset:4*t.y.offset||0,stride:4*(t.y.stride||1),count:t.y.count},e.count=Math.max(e.xAttr.count,e.yAttr.count),t;t=g(t,&quot;float64&quot;);var c=e.count=Math.floor(t.length/2),f=e.bounds=c?l(t,2):null;if(r.range||e.range||(delete e.range,r.range=f),r.marker||e.marker||(delete e.marker,r.marker=null),n&amp;&amp;(!0===n||c&gt;n)?e.tree=u(t,{bounds:f}):n&amp;&amp;n.length&amp;&amp;(e.tree=n),e.tree){var h={primitive:&quot;points&quot;,usage:&quot;static&quot;,data:e.tree,type:&quot;uint32&quot;};e.elements?e.elements(h):e.elements=o.elements(h)}return i({data:v.float(t),usage:&quot;dynamic&quot;}),a({data:v.fract(t),usage:&quot;dynamic&quot;}),s({data:new Uint8Array(c),type:&quot;uint8&quot;,usage:&quot;stream&quot;}),t}},{marker:function(e,r,n){var i=r.activation;if(i.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),i.length=0,e&amp;&amp;&quot;number&quot;!=typeof e[0]){for(var a=[],s=0,l=Math.min(e.length,r.count);s&lt;l;s++){var c=t.addMarker(e[s]);a[c]||(a[c]=new Uint8Array(r.count)),a[c][s]=1}for(var u=0;u&lt;a.length;u++)if(a[u]){var f={data:a[u],type:&quot;uint8&quot;,usage:&quot;static&quot;};i[u]?i[u](f):i[u]=o.buffer(f),i[u].data=a[u]}}else{i[t.addMarker(e)]=!0}return e},range:function(t,e,r){var n=e.bounds;if(n)return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=v.fract(e.scale),e.translateFract=v.fract(e.translate),t},viewport:function(t){return y(t||[a.drawingBufferWidth,a.drawingBufferHeight])}}]),m){var _=n,w=_.count,T=_.size,k=_.borderSize,M=_.sizeBuffer,A=new Uint8Array(2*w);if(T.length||k.length)for(var S=0;S&lt;w;S++)A[2*S]=Math.round(255*(null==T[S]?T:T[S])/s),A[2*S+1]=Math.round(255*(null==k[S]?k:k[S])/s);M({data:A,usage:&quot;dynamic&quot;})}if(x){var E,C=n,L=C.count,I=C.color,P=C.borderColor,z=C.colorBuffer;if(t.tooManyColors){if(I.length||P.length){E=new Uint8Array(8*L);for(var O=0;O&lt;L;O++){var D=I[O];E[8*O]=h[4*D],E[8*O+1]=h[4*D+1],E[8*O+2]=h[4*D+2],E[8*O+3]=h[4*D+3];var R=P[O];E[8*O+4]=h[4*R],E[8*O+5]=h[4*R+1],E[8*O+6]=h[4*R+2],E[8*O+7]=h[4*R+3]}}}else if(I.length||P.length){E=new Uint8Array(4*L+2);for(var F=0;F&lt;L;F++)null!=I[F]&amp;&amp;(E[4*F]=I[F]%c,E[4*F+1]=Math.floor(I[F]/c)),null!=P[F]&amp;&amp;(E[4*F+2]=P[F]%c,E[4*F+3]=Math.floor(P[F]/c))}z({data:E||new Uint8Array(0),type:&quot;uint8&quot;,usage:&quot;dynamic&quot;})}return n}))}},b.prototype.addMarker=function(t){var e,r=this.markerTextures,n=this.regl,i=this.markerCache,a=null==t?0:i.indexOf(t);if(a&gt;=0)return a;if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)e=t;else{e=new Uint8Array(t.length);for(var o=0,s=t.length;o&lt;s;o++)e[o]=255*t[o]}var l=Math.floor(Math.sqrt(e.length));return a=r.length,i.push(t),r.push(n.texture({channels:1,data:e,radius:l,mag:&quot;linear&quot;,min:&quot;linear&quot;})),a},b.prototype.updateColor=function(t){var e=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(t)||(t=[t]);var i=[];if(&quot;number&quot;==typeof t[0]){var a=[];if(Array.isArray(t))for(var o=0;o&lt;t.length;o+=4)a.push(t.slice(o,o+4));else for(var l=0;l&lt;t.length;l+=4)a.push(t.subarray(l,l+4));t=a}for(var u=0;u&lt;t.length;u++){var f=t[u];f=s(f,&quot;uint8&quot;);var h=c(f,!1);if(null==e[h]){var p=r.length;e[h]=Math.floor(p/4),r[p]=f[0],r[p+1]=f[1],r[p+2]=f[2],r[p+3]=f[3]}i[u]=e[h]}return!this.tooManyColors&amp;&amp;r.length&gt;4*n&amp;&amp;(this.tooManyColors=!0),this.updatePalette(r),1===i.length?i[0]:i},b.prototype.updatePalette=function(t){if(!this.tooManyColors){var e=this.maxColors,r=this.paletteTexture,n=Math.ceil(.25*t.length/e);if(n&gt;1)for(var i=.25*(t=t.slice()).length%e;i&lt;n*e;i++)t.push(0,0,0,0);r.height&lt;n&amp;&amp;r.resize(e,n),r.subimage({width:Math.min(.25*t.length,e),height:n,data:t},0,0)}},b.prototype.destroy=function(){return this.groups.forEach((function(t){t.sizeBuffer.destroy(),t.positionBuffer.destroy(),t.positionFractBuffer.destroy(),t.colorBuffer.destroy(),t.activation.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),t.selectionBuffer.destroy(),t.elements&amp;&amp;t.elements.destroy()})),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),this};var _=t(&quot;object-assign&quot;);e.exports=function(t,e){var r=new x(t,e),n=r.render.bind(r);return _(n,{render:n,update:r.update.bind(r),draw:r.draw.bind(r),destroy:r.destroy.bind(r),regl:r.regl,gl:r.gl,canvas:r.gl.canvas,groups:r.groups,markers:r.markerCache,palette:r.palette}),n}},{&quot;@plotly/point-cluster&quot;:57,&quot;array-bounds&quot;:70,&quot;color-id&quot;:123,&quot;color-normalize&quot;:125,&quot;flatten-vertex-data&quot;:244,glslify:538,&quot;is-iexplorer&quot;:466,&quot;object-assign&quot;:499,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511,&quot;to-float32&quot;:577,&quot;update-diff&quot;:599}],538:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],539:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-scatter2d&quot;),i=t(&quot;pick-by-alias&quot;),a=t(&quot;array-bounds&quot;),o=t(&quot;raf&quot;),s=t(&quot;array-range&quot;),l=t(&quot;parse-rect&quot;),c=t(&quot;flatten-vertex-data&quot;);function u(t,e){if(!(this instanceof u))return new u(t,e);this.traces=[],this.passes={},this.regl=t,this.scatter=n(t),this.canvas=this.scatter.canvas}function f(t,e,r){return(null!=t.id?t.id:t)&lt;&lt;16|(255&amp;e)&lt;&lt;8|255&amp;r}function h(t,e,r){var n,i,a,o,s=t[e],l=t[r];return s.length&gt;2?(s[0],s[2],n=s[1],i=s[3]):s.length?(n=s[0],i=s[1]):(s.x,n=s.y,s.x+s.width,i=s.y+s.height),l.length&gt;2?(a=l[0],o=l[2],l[1],l[3]):l.length?(a=l[0],o=l[1]):(a=l.x,l.y,o=l.x+l.width,l.y+l.height),[a,n,o,i]}function p(t){if(&quot;number&quot;==typeof t)return[t,t,t,t];if(2===t.length)return[t[0],t[1],t[0],t[1]];var e=l(t);return[e.x,e.y,e.x+e.width,e.y+e.height]}e.exports=u,u.prototype.render=function(){for(var t,e=this,r=[],n=arguments.length;n--;)r[n]=arguments[n];return r.length&amp;&amp;(t=this).update.apply(t,r),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?null==this.planned&amp;&amp;(this.planned=o((function(){e.draw(),e.dirty=!0,e.planned=null}))):(this.draw(),this.dirty=!0,o((function(){e.dirty=!1}))),this)},u.prototype.update=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=0;n&lt;e.length;n++)this.updateItem(n,e[n]);this.traces=this.traces.filter(Boolean);for(var i=[],a=0,o=0;o&lt;this.traces.length;o++){for(var s=this.traces[o],l=this.traces[o].passes,c=0;c&lt;l.length;c++)i.push(this.passes[l[c]]);s.passOffset=a,a+=s.passes.length}return(t=this.scatter).update.apply(t,i),this}},u.prototype.updateItem=function(t,e){var r=this.regl;if(null===e)return this.traces[t]=null,this;if(!e)return this;var n,o=i(e,{data:&quot;data items columns rows values dimensions samples x&quot;,snap:&quot;snap cluster&quot;,size:&quot;sizes size radius&quot;,color:&quot;colors color fill fill-color fillColor&quot;,opacity:&quot;opacity alpha transparency opaque&quot;,borderSize:&quot;borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline&quot;,borderColor:&quot;borderColors borderColor bordercolor stroke stroke-color strokeColor&quot;,marker:&quot;markers marker shape&quot;,range:&quot;range ranges databox dataBox&quot;,viewport:&quot;viewport viewBox viewbox&quot;,domain:&quot;domain domains area areas&quot;,padding:&quot;pad padding paddings pads margin margins&quot;,transpose:&quot;transpose transposed&quot;,diagonal:&quot;diagonal diag showDiagonal&quot;,upper:&quot;upper up top upperhalf upperHalf showupperhalf showUpper showUpperHalf&quot;,lower:&quot;lower low bottom lowerhalf lowerHalf showlowerhalf showLowerHalf showLower&quot;}),s=this.traces[t]||(this.traces[t]={id:t,buffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array}),color:&quot;black&quot;,marker:null,size:12,borderColor:&quot;transparent&quot;,borderSize:1,viewport:l([r._gl.drawingBufferWidth,r._gl.drawingBufferHeight]),padding:[0,0,0,0],opacity:1,diagonal:!0,upper:!0,lower:!0});if(null!=o.color&amp;&amp;(s.color=o.color),null!=o.size&amp;&amp;(s.size=o.size),null!=o.marker&amp;&amp;(s.marker=o.marker),null!=o.borderColor&amp;&amp;(s.borderColor=o.borderColor),null!=o.borderSize&amp;&amp;(s.borderSize=o.borderSize),null!=o.opacity&amp;&amp;(s.opacity=o.opacity),o.viewport&amp;&amp;(s.viewport=l(o.viewport)),null!=o.diagonal&amp;&amp;(s.diagonal=o.diagonal),null!=o.upper&amp;&amp;(s.upper=o.upper),null!=o.lower&amp;&amp;(s.lower=o.lower),o.data){s.buffer(c(o.data)),s.columns=o.data.length,s.count=o.data[0].length,s.bounds=[];for(var u=0;u&lt;s.columns;u++)s.bounds[u]=a(o.data[u],1)}o.range&amp;&amp;(s.range=o.range,n=s.range&amp;&amp;&quot;number&quot;!=typeof s.range[0]),o.domain&amp;&amp;(s.domain=o.domain);var d=!1;null!=o.padding&amp;&amp;(Array.isArray(o.padding)&amp;&amp;o.padding.length===s.columns&amp;&amp;&quot;number&quot;==typeof o.padding[o.padding.length-1]?(s.padding=o.padding.map(p),d=!0):s.padding=p(o.padding));var g=s.columns,m=s.count,v=s.viewport.width,y=s.viewport.height,x=s.viewport.x,b=s.viewport.y,_=v/g,w=y/g;s.passes=[];for(var T=0;T&lt;g;T++)for(var k=0;k&lt;g;k++)if((s.diagonal||k!==T)&amp;&amp;(s.upper||!(T&gt;k))&amp;&amp;(s.lower||!(T&lt;k))){var M=f(s.id,T,k),A=this.passes[M]||(this.passes[M]={});if(o.data&amp;&amp;(o.transpose?A.positions={x:{buffer:s.buffer,offset:k,count:m,stride:g},y:{buffer:s.buffer,offset:T,count:m,stride:g}}:A.positions={x:{buffer:s.buffer,offset:k*m,count:m},y:{buffer:s.buffer,offset:T*m,count:m}},A.bounds=h(s.bounds,T,k)),o.domain||o.viewport||o.data){var S=d?h(s.padding,T,k):s.padding;if(s.domain){var E=h(s.domain,T,k),C=E[0],L=E[1],I=E[2],P=E[3];A.viewport=[x+C*v+S[0],b+L*y+S[1],x+I*v-S[2],b+P*y-S[3]]}else A.viewport=[x+k*_+_*S[0],b+T*w+w*S[1],x+(k+1)*_-_*S[2],b+(T+1)*w-w*S[3]]}o.color&amp;&amp;(A.color=s.color),o.size&amp;&amp;(A.size=s.size),o.marker&amp;&amp;(A.marker=s.marker),o.borderSize&amp;&amp;(A.borderSize=s.borderSize),o.borderColor&amp;&amp;(A.borderColor=s.borderColor),o.opacity&amp;&amp;(A.opacity=s.opacity),o.range&amp;&amp;(A.range=n?h(s.range,T,k):s.range||A.bounds),s.passes.push(M)}return this},u.prototype.draw=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=[],i=0;i&lt;e.length;i++)if(&quot;number&quot;==typeof e[i]){var a=this.traces[e[i]],o=a.passes,l=a.passOffset;n.push.apply(n,s(l,l+o.length))}else if(e[i].length){var c=e[i],u=this.traces[i],f=u.passes,h=u.passOffset;f=f.map((function(t,e){n[h+e]=c}))}(t=this.scatter).draw.apply(t,n)}else this.scatter.draw();return this},u.prototype.destroy=function(){return this.traces.forEach((function(t){t.buffer&amp;&amp;t.buffer.destroy&amp;&amp;t.buffer.destroy()})),this.traces=null,this.passes=null,this.scatter.destroy(),this}},{&quot;array-bounds&quot;:70,&quot;array-range&quot;:72,&quot;flatten-vertex-data&quot;:244,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511,raf:528,&quot;regl-scatter2d&quot;:537}],540:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?e.exports=n():t.createREGL=n()}(this,(function(){function t(t,e){this.id=V++,this.type=t,this.data=e}function e(t){return&quot;[&quot;+function t(e){if(0===e.length)return[];var r=e.charAt(0),n=e.charAt(e.length-1);if(1&lt;e.length&amp;&amp;r===n&amp;&amp;('&quot;'===r||&quot;'&quot;===r))return['&quot;'+e.substr(1,e.length-2).replace(/\\/g,&quot;\\\\&quot;).replace(/&quot;/g,'\\&quot;')+'&quot;'];if(r=/\[(false|true|null|\d+|'[^']*'|&quot;[^&quot;]*&quot;)\]/.exec(e))return t(e.substr(0,r.index)).concat(t(r[1])).concat(t(e.substr(r.index+r[0].length)));if(1===(r=e.split(&quot;.&quot;)).length)return['&quot;'+e.replace(/\\/g,&quot;\\\\&quot;).replace(/&quot;/g,'\\&quot;')+'&quot;'];for(e=[],n=0;n&lt;r.length;++n)e=e.concat(t(r[n]));return e}(t).join(&quot;][&quot;)+&quot;]&quot;}function r(t){return&quot;string&quot;==typeof t?t.split():t}function n(t){return&quot;string&quot;==typeof t?document.querySelector(t):t}function i(t){var e,i,a,o,s=t||{};t={};var l=[],c=[],u=&quot;undefined&quot;==typeof window?1:window.devicePixelRatio,f=!1,h=function(t){},p=function(){};if(&quot;string&quot;==typeof s?e=document.querySelector(s):&quot;object&quot;==typeof s&amp;&amp;(&quot;string&quot;==typeof s.nodeName&amp;&amp;&quot;function&quot;==typeof s.appendChild&amp;&amp;&quot;function&quot;==typeof s.getBoundingClientRect?e=s:&quot;function&quot;==typeof s.drawArrays||&quot;function&quot;==typeof s.drawElements?a=(o=s).canvas:(&quot;gl&quot;in s?o=s.gl:&quot;canvas&quot;in s?a=n(s.canvas):&quot;container&quot;in s&amp;&amp;(i=n(s.container)),&quot;attributes&quot;in s&amp;&amp;(t=s.attributes),&quot;extensions&quot;in s&amp;&amp;(l=r(s.extensions)),&quot;optionalExtensions&quot;in s&amp;&amp;(c=r(s.optionalExtensions)),&quot;onDone&quot;in s&amp;&amp;(h=s.onDone),&quot;profile&quot;in s&amp;&amp;(f=!!s.profile),&quot;pixelRatio&quot;in s&amp;&amp;(u=+s.pixelRatio))),e&amp;&amp;(&quot;canvas&quot;===e.nodeName.toLowerCase()?a=e:i=e),!o){if(!a){if(!(e=function(t,e,r){function n(){var e=window.innerWidth,n=window.innerHeight;t!==document.body&amp;&amp;(e=(n=t.getBoundingClientRect()).right-n.left,n=n.bottom-n.top),a.width=r*e,a.height=r*n,U(a.style,{width:e+&quot;px&quot;,height:n+&quot;px&quot;})}var i,a=document.createElement(&quot;canvas&quot;);return U(a.style,{border:0,margin:0,padding:0,top:0,left:0}),t.appendChild(a),t===document.body&amp;&amp;(a.style.position=&quot;absolute&quot;,U(t.style,{margin:0,padding:0})),t!==document.body&amp;&amp;&quot;function&quot;==typeof ResizeObserver?(i=new ResizeObserver((function(){setTimeout(n)}))).observe(t):window.addEventListener(&quot;resize&quot;,n,!1),n(),{canvas:a,onDestroy:function(){i?i.disconnect():window.removeEventListener(&quot;resize&quot;,n),t.removeChild(a)}}}(i||document.body,0,u)))return null;a=e.canvas,p=e.onDestroy}void 0===t.premultipliedAlpha&amp;&amp;(t.premultipliedAlpha=!0),o=function(t,e){function r(r){try{return t.getContext(r,e)}catch(t){return null}}return r(&quot;webgl&quot;)||r(&quot;experimental-webgl&quot;)||r(&quot;webgl-experimental&quot;)}(a,t)}return o?{gl:o,canvas:a,container:i,extensions:l,optionalExtensions:c,pixelRatio:u,profile:f,onDone:h,onDestroy:p}:(p(),h(&quot;webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org&quot;),null)}function a(t,e){for(var r=Array(t),n=0;n&lt;t;++n)r[n]=e(n);return r}function o(t){var e,r;return e=(65535&lt;t)&lt;&lt;4,e|=r=(255&lt;(t&gt;&gt;&gt;=e))&lt;&lt;3,(e|=r=(15&lt;(t&gt;&gt;&gt;=r))&lt;&lt;2)|(r=(3&lt;(t&gt;&gt;&gt;=r))&lt;&lt;1)|t&gt;&gt;&gt;r&gt;&gt;1}function s(){function t(t){t:{for(var e=16;268435456&gt;=e;e*=16)if(t&lt;=e){t=e;break t}t=0}return 0&lt;(e=r[o(t)&gt;&gt;2]).length?e.pop():new ArrayBuffer(t)}function e(t){r[o(t.byteLength)&gt;&gt;2].push(t)}var r=a(8,(function(){return[]}));return{alloc:t,free:e,allocType:function(e,r){var n=null;switch(e){case 5120:n=new Int8Array(t(r),0,r);break;case 5121:n=new Uint8Array(t(r),0,r);break;case 5122:n=new Int16Array(t(2*r),0,r);break;case 5123:n=new Uint16Array(t(2*r),0,r);break;case 5124:n=new Int32Array(t(4*r),0,r);break;case 5125:n=new Uint32Array(t(4*r),0,r);break;case 5126:n=new Float32Array(t(4*r),0,r);break;default:return null}return n.length!==r?n.subarray(0,r):n},freeType:function(t){e(t.buffer)}}}function l(t){return!!t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;Array.isArray(t.shape)&amp;&amp;Array.isArray(t.stride)&amp;&amp;&quot;number&quot;==typeof t.offset&amp;&amp;t.shape.length===t.stride.length&amp;&amp;(Array.isArray(t.data)||X(t.data))}function c(t,e,r,n,i,a){for(var o=0;o&lt;e;++o)for(var s=t[o],l=0;l&lt;r;++l)for(var c=s[l],u=0;u&lt;n;++u)i[a++]=c[u]}function u(t){return 0|K[Object.prototype.toString.call(t)]}function f(t,e){for(var r=0;r&lt;e.length;++r)t[r]=e[r]}function h(t,e,r,n,i,a,o){for(var s=0,l=0;l&lt;r;++l)for(var c=0;c&lt;n;++c)t[s++]=e[i*l+a*c+o]}function p(t,e,r,n){function i(e){this.id=c++,this.buffer=t.createBuffer(),this.type=e,this.usage=35044,this.byteLength=0,this.dimension=1,this.dtype=5121,this.persistentData=null,r.profile&amp;&amp;(this.stats={size:0})}function a(e,r,n){e.byteLength=r.byteLength,t.bufferData(e.type,r,n)}function o(t,e,r,n,i,o){if(t.usage=r,Array.isArray(e)){if(t.dtype=n||5126,0&lt;e.length)if(Array.isArray(e[0])){i=et(e);for(var s=n=1;s&lt;i.length;++s)n*=i[s];t.dimension=n,a(t,e=tt(e,i,t.dtype),r),o?t.persistentData=e:Y.freeType(e)}else&quot;number&quot;==typeof e[0]?(t.dimension=i,f(i=Y.allocType(t.dtype,e.length),e),a(t,i,r),o?t.persistentData=i:Y.freeType(i)):X(e[0])&amp;&amp;(t.dimension=e[0].length,t.dtype=n||u(e[0])||5126,a(t,e=tt(e,[e.length,e[0].length],t.dtype),r),o?t.persistentData=e:Y.freeType(e))}else if(X(e))t.dtype=n||u(e),t.dimension=i,a(t,e,r),o&amp;&amp;(t.persistentData=new Uint8Array(new Uint8Array(e.buffer)));else if(l(e)){i=e.shape;var c=e.stride,p=(s=e.offset,0),d=0,g=0,m=0;1===i.length?(p=i[0],d=1,g=c[0],m=0):2===i.length&amp;&amp;(p=i[0],d=i[1],g=c[0],m=c[1]),t.dtype=n||u(e.data)||5126,t.dimension=d,h(i=Y.allocType(t.dtype,p*d),e.data,p,d,g,m,s),a(t,i,r),o?t.persistentData=i:Y.freeType(i)}else e instanceof ArrayBuffer&amp;&amp;(t.dtype=5121,t.dimension=i,a(t,e,r),o&amp;&amp;(t.persistentData=new Uint8Array(new Uint8Array(e))))}function s(r){e.bufferCount--,n(r),t.deleteBuffer(r.buffer),r.buffer=null,delete p[r.id]}var c=0,p={};i.prototype.bind=function(){t.bindBuffer(this.type,this.buffer)},i.prototype.destroy=function(){s(this)};var d=[];return r.profile&amp;&amp;(e.getTotalBufferSize=function(){var t=0;return Object.keys(p).forEach((function(e){t+=p[e].stats.size})),t}),{create:function(n,a,c,d){function g(e){var n=35044,i=null,a=0,s=0,c=1;return Array.isArray(e)||X(e)||l(e)||e instanceof ArrayBuffer?i=e:&quot;number&quot;==typeof e?a=0|e:e&amp;&amp;(&quot;data&quot;in e&amp;&amp;(i=e.data),&quot;usage&quot;in e&amp;&amp;(n=$[e.usage]),&quot;type&quot;in e&amp;&amp;(s=Q[e.type]),&quot;dimension&quot;in e&amp;&amp;(c=0|e.dimension),&quot;length&quot;in e&amp;&amp;(a=0|e.length)),m.bind(),i?o(m,i,n,s,c,d):(a&amp;&amp;t.bufferData(m.type,a,n),m.dtype=s||5121,m.usage=n,m.dimension=c,m.byteLength=a),r.profile&amp;&amp;(m.stats.size=m.byteLength*rt[m.dtype]),g}e.bufferCount++;var m=new i(a);return p[m.id]=m,c||g(n),g._reglType=&quot;buffer&quot;,g._buffer=m,g.subdata=function(e,r){var n,i=0|(r||0);if(m.bind(),X(e)||e instanceof ArrayBuffer)t.bufferSubData(m.type,i,e);else if(Array.isArray(e)){if(0&lt;e.length)if(&quot;number&quot;==typeof e[0]){var a=Y.allocType(m.dtype,e.length);f(a,e),t.bufferSubData(m.type,i,a),Y.freeType(a)}else(Array.isArray(e[0])||X(e[0]))&amp;&amp;(n=et(e),a=tt(e,n,m.dtype),t.bufferSubData(m.type,i,a),Y.freeType(a))}else if(l(e)){n=e.shape;var o=e.stride,s=a=0,c=0,p=0;1===n.length?(a=n[0],s=1,c=o[0],p=0):2===n.length&amp;&amp;(a=n[0],s=n[1],c=o[0],p=o[1]),n=Array.isArray(e.data)?m.dtype:u(e.data),h(n=Y.allocType(n,a*s),e.data,a,s,c,p,e.offset),t.bufferSubData(m.type,i,n),Y.freeType(n)}return g},r.profile&amp;&amp;(g.stats=m.stats),g.destroy=function(){s(m)},g},createStream:function(t,e){var r=d.pop();return r||(r=new i(t)),r.bind(),o(r,e,35040,0,1,!1),r},destroyStream:function(t){d.push(t)},clear:function(){Z(p).forEach(s),d.forEach(s)},getBuffer:function(t){return t&amp;&amp;t._buffer instanceof i?t._buffer:null},restore:function(){Z(p).forEach((function(e){e.buffer=t.createBuffer(),t.bindBuffer(e.type,e.buffer),t.bufferData(e.type,e.persistentData||e.byteLength,e.usage)}))},_initBuffer:o}}function d(t,e,r,n){function i(t){this.id=c++,s[this.id]=this,this.buffer=t,this.primType=4,this.type=this.vertCount=0}function a(n,i,a,o,s,c,u){var f;if(n.buffer.bind(),i?((f=u)||X(i)&amp;&amp;(!l(i)||X(i.data))||(f=e.oes_element_index_uint?5125:5123),r._initBuffer(n.buffer,i,a,f,3)):(t.bufferData(34963,c,a),n.buffer.dtype=f||5121,n.buffer.usage=a,n.buffer.dimension=3,n.buffer.byteLength=c),f=u,!u){switch(n.buffer.dtype){case 5121:case 5120:f=5121;break;case 5123:case 5122:f=5123;break;case 5125:case 5124:f=5125}n.buffer.dtype=f}n.type=f,0&gt;(i=s)&amp;&amp;(i=n.buffer.byteLength,5123===f?i&gt;&gt;=1:5125===f&amp;&amp;(i&gt;&gt;=2)),n.vertCount=i,i=o,0&gt;o&amp;&amp;(i=4,1===(o=n.buffer.dimension)&amp;&amp;(i=0),2===o&amp;&amp;(i=1),3===o&amp;&amp;(i=4)),n.primType=i}function o(t){n.elementsCount--,delete s[t.id],t.buffer.destroy(),t.buffer=null}var s={},c=0,u={uint8:5121,uint16:5123};e.oes_element_index_uint&amp;&amp;(u.uint32=5125),i.prototype.bind=function(){this.buffer.bind()};var f=[];return{create:function(t,e){function s(t){if(t)if(&quot;number&quot;==typeof t)c(t),f.primType=4,f.vertCount=0|t,f.type=5121;else{var e=null,r=35044,n=-1,i=-1,o=0,h=0;Array.isArray(t)||X(t)||l(t)?e=t:(&quot;data&quot;in t&amp;&amp;(e=t.data),&quot;usage&quot;in t&amp;&amp;(r=$[t.usage]),&quot;primitive&quot;in t&amp;&amp;(n=nt[t.primitive]),&quot;count&quot;in t&amp;&amp;(i=0|t.count),&quot;type&quot;in t&amp;&amp;(h=u[t.type]),&quot;length&quot;in t?o=0|t.length:(o=i,5123===h||5122===h?o*=2:5125!==h&amp;&amp;5124!==h||(o*=4))),a(f,e,r,n,i,o,h)}else c(),f.primType=4,f.vertCount=0,f.type=5121;return s}var c=r.create(null,34963,!0),f=new i(c._buffer);return n.elementsCount++,s(t),s._reglType=&quot;elements&quot;,s._elements=f,s.subdata=function(t,e){return c.subdata(t,e),s},s.destroy=function(){o(f)},s},createStream:function(t){var e=f.pop();return e||(e=new i(r.create(null,34963,!0,!1)._buffer)),a(e,t,35040,-1,-1,0,0),e},destroyStream:function(t){f.push(t)},getElements:function(t){return&quot;function&quot;==typeof t&amp;&amp;t._elements instanceof i?t._elements:null},clear:function(){Z(s).forEach(o)}}}function g(t){for(var e=Y.allocType(5123,t.length),r=0;r&lt;t.length;++r)if(isNaN(t[r]))e[r]=65535;else if(1/0===t[r])e[r]=31744;else if(-1/0===t[r])e[r]=64512;else{it[0]=t[r];var n=(a=at[0])&gt;&gt;&gt;31&lt;&lt;15,i=(a&lt;&lt;1&gt;&gt;&gt;24)-127,a=a&gt;&gt;13&amp;1023;e[r]=-24&gt;i?n:-14&gt;i?n+(a+1024&gt;&gt;-14-i):15&lt;i?n+31744:n+(i+15&lt;&lt;10)+a}return e}function m(t){return Array.isArray(t)||X(t)}function v(t){return&quot;[object &quot;+t+&quot;]&quot;}function y(t){return Array.isArray(t)&amp;&amp;(0===t.length||&quot;number&quot;==typeof t[0])}function x(t){return!(!Array.isArray(t)||0===t.length||!m(t[0]))}function b(t){return Object.prototype.toString.call(t)}function _(t){if(!t)return!1;var e=b(t);return 0&lt;=gt.indexOf(e)||(y(t)||x(t)||l(t))}function w(t,e){36193===t.type?(t.data=g(e),Y.freeType(e)):t.data=e}function T(t,e,r,n,i,a){if(t=&quot;undefined&quot;!=typeof vt[t]?vt[t]:lt[t]*mt[e],a&amp;&amp;(t*=6),i){for(n=0;1&lt;=r;)n+=t*r*r,r/=2;return n}return t*r*n}function k(t,e,r,n,i,a,o){function s(){this.format=this.internalformat=6408,this.type=5121,this.flipY=this.premultiplyAlpha=this.compressed=!1,this.unpackAlignment=1,this.colorSpace=37444,this.channels=this.height=this.width=0}function c(t,e){t.internalformat=e.internalformat,t.format=e.format,t.type=e.type,t.compressed=e.compressed,t.premultiplyAlpha=e.premultiplyAlpha,t.flipY=e.flipY,t.unpackAlignment=e.unpackAlignment,t.colorSpace=e.colorSpace,t.width=e.width,t.height=e.height,t.channels=e.channels}function u(t,e){if(&quot;object&quot;==typeof e&amp;&amp;e){&quot;premultiplyAlpha&quot;in e&amp;&amp;(t.premultiplyAlpha=e.premultiplyAlpha),&quot;flipY&quot;in e&amp;&amp;(t.flipY=e.flipY),&quot;alignment&quot;in e&amp;&amp;(t.unpackAlignment=e.alignment),&quot;colorSpace&quot;in e&amp;&amp;(t.colorSpace=q[e.colorSpace]),&quot;type&quot;in e&amp;&amp;(t.type=H[e.type]);var r=t.width,n=t.height,i=t.channels,a=!1;&quot;shape&quot;in e?(r=e.shape[0],n=e.shape[1],3===e.shape.length&amp;&amp;(i=e.shape[2],a=!0)):(&quot;radius&quot;in e&amp;&amp;(r=n=e.radius),&quot;width&quot;in e&amp;&amp;(r=e.width),&quot;height&quot;in e&amp;&amp;(n=e.height),&quot;channels&quot;in e&amp;&amp;(i=e.channels,a=!0)),t.width=0|r,t.height=0|n,t.channels=0|i,r=!1,&quot;format&quot;in e&amp;&amp;(r=e.format,n=t.internalformat=G[r],t.format=at[n],r in H&amp;&amp;!(&quot;type&quot;in e)&amp;&amp;(t.type=H[r]),r in W&amp;&amp;(t.compressed=!0),r=!0),!a&amp;&amp;r?t.channels=lt[t.format]:a&amp;&amp;!r&amp;&amp;t.channels!==st[t.format]&amp;&amp;(t.format=t.internalformat=st[t.channels])}}function f(e){t.pixelStorei(37440,e.flipY),t.pixelStorei(37441,e.premultiplyAlpha),t.pixelStorei(37443,e.colorSpace),t.pixelStorei(3317,e.unpackAlignment)}function h(){s.call(this),this.yOffset=this.xOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function p(t,e){var r=null;if(_(e)?r=e:e&amp;&amp;(u(t,e),&quot;x&quot;in e&amp;&amp;(t.xOffset=0|e.x),&quot;y&quot;in e&amp;&amp;(t.yOffset=0|e.y),_(e.data)&amp;&amp;(r=e.data)),e.copy){var n=i.viewportWidth,a=i.viewportHeight;t.width=t.width||n-t.xOffset,t.height=t.height||a-t.yOffset,t.needsCopy=!0}else if(r){if(X(r))t.channels=t.channels||4,t.data=r,&quot;type&quot;in e||5121!==t.type||(t.type=0|K[Object.prototype.toString.call(r)]);else if(y(r)){switch(t.channels=t.channels||4,a=(n=r).length,t.type){case 5121:case 5123:case 5125:case 5126:(a=Y.allocType(t.type,a)).set(n),t.data=a;break;case 36193:t.data=g(n)}t.alignment=1,t.needsFree=!0}else if(l(r)){n=r.data,Array.isArray(n)||5121!==t.type||(t.type=0|K[Object.prototype.toString.call(n)]);a=r.shape;var o,s,c,f,h=r.stride;3===a.length?(c=a[2],f=h[2]):f=c=1,o=a[0],s=a[1],a=h[0],h=h[1],t.alignment=1,t.width=o,t.height=s,t.channels=c,t.format=t.internalformat=st[c],t.needsFree=!0,o=f,r=r.offset,c=t.width,f=t.height,s=t.channels;for(var p=Y.allocType(36193===t.type?5126:t.type,c*f*s),d=0,v=0;v&lt;f;++v)for(var T=0;T&lt;c;++T)for(var k=0;k&lt;s;++k)p[d++]=n[a*T+h*v+o*k+r];w(t,p)}else if(b(r)===ct||b(r)===ut||b(r)===ft)b(r)===ct||b(r)===ut?t.element=r:t.element=r.canvas,t.width=t.element.width,t.height=t.element.height,t.channels=4;else if(b(r)===ht)t.element=r,t.width=r.width,t.height=r.height,t.channels=4;else if(b(r)===pt)t.element=r,t.width=r.naturalWidth,t.height=r.naturalHeight,t.channels=4;else if(b(r)===dt)t.element=r,t.width=r.videoWidth,t.height=r.videoHeight,t.channels=4;else if(x(r)){for(n=t.width||r[0].length,a=t.height||r.length,h=t.channels,h=m(r[0][0])?h||r[0][0].length:h||1,o=J.shape(r),c=1,f=0;f&lt;o.length;++f)c*=o[f];c=Y.allocType(36193===t.type?5126:t.type,c),J.flatten(r,o,&quot;&quot;,c),w(t,c),t.alignment=1,t.width=n,t.height=a,t.channels=h,t.format=t.internalformat=st[h],t.needsFree=!0}}else t.width=t.width||1,t.height=t.height||1,t.channels=t.channels||4}function d(e,r,i,a,o){var s=e.element,l=e.data,c=e.internalformat,u=e.format,h=e.type,p=e.width,d=e.height;f(e),s?t.texSubImage2D(r,o,i,a,u,h,s):e.compressed?t.compressedTexSubImage2D(r,o,i,a,c,p,d,l):e.needsCopy?(n(),t.copyTexSubImage2D(r,o,i,a,e.xOffset,e.yOffset,p,d)):t.texSubImage2D(r,o,i,a,p,d,u,h,l)}function v(){return gt.pop()||new h}function k(t){t.needsFree&amp;&amp;Y.freeType(t.data),h.call(t),gt.push(t)}function M(){s.call(this),this.genMipmaps=!1,this.mipmapHint=4352,this.mipmask=0,this.images=Array(16)}function A(t,e,r){var n=t.images[0]=v();t.mipmask=1,n.width=t.width=e,n.height=t.height=r,n.channels=t.channels=4}function S(t,e){var r=null;if(_(e))c(r=t.images[0]=v(),t),p(r,e),t.mipmask=1;else if(u(t,e),Array.isArray(e.mipmap))for(var n=e.mipmap,i=0;i&lt;n.length;++i)c(r=t.images[i]=v(),t),r.width&gt;&gt;=i,r.height&gt;&gt;=i,p(r,n[i]),t.mipmask|=1&lt;&lt;i;else c(r=t.images[0]=v(),t),p(r,e),t.mipmask=1;c(t,t.images[0])}function E(e,r){for(var i=e.images,a=0;a&lt;i.length&amp;&amp;i[a];++a){var o=i[a],s=r,l=a,c=o.element,u=o.data,h=o.internalformat,p=o.format,d=o.type,g=o.width,m=o.height;f(o),c?t.texImage2D(s,l,p,p,d,c):o.compressed?t.compressedTexImage2D(s,l,h,g,m,0,u):o.needsCopy?(n(),t.copyTexImage2D(s,l,p,o.xOffset,o.yOffset,g,m,0)):t.texImage2D(s,l,p,g,m,0,p,d,u||null)}}function C(){var t=mt.pop()||new M;s.call(t);for(var e=t.mipmask=0;16&gt;e;++e)t.images[e]=null;return t}function L(t){for(var e=t.images,r=0;r&lt;e.length;++r)e[r]&amp;&amp;k(e[r]),e[r]=null;mt.push(t)}function I(){this.magFilter=this.minFilter=9728,this.wrapT=this.wrapS=33071,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=4352}function P(t,e){&quot;min&quot;in e&amp;&amp;(t.minFilter=V[e.min],0&lt;=ot.indexOf(t.minFilter)&amp;&amp;!(&quot;faces&quot;in e)&amp;&amp;(t.genMipmaps=!0)),&quot;mag&quot;in e&amp;&amp;(t.magFilter=j[e.mag]);var r=t.wrapS,n=t.wrapT;if(&quot;wrap&quot;in e){var i=e.wrap;&quot;string&quot;==typeof i?r=n=N[i]:Array.isArray(i)&amp;&amp;(r=N[i[0]],n=N[i[1]])}else&quot;wrapS&quot;in e&amp;&amp;(r=N[e.wrapS]),&quot;wrapT&quot;in e&amp;&amp;(n=N[e.wrapT]);if(t.wrapS=r,t.wrapT=n,&quot;anisotropic&quot;in e&amp;&amp;(t.anisotropic=e.anisotropic),&quot;mipmap&quot;in e){switch(r=!1,typeof e.mipmap){case&quot;string&quot;:t.mipmapHint=B[e.mipmap],r=t.genMipmaps=!0;break;case&quot;boolean&quot;:r=t.genMipmaps=e.mipmap;break;case&quot;object&quot;:t.genMipmaps=!1,r=!0}!r||&quot;min&quot;in e||(t.minFilter=9984)}}function z(r,n){t.texParameteri(n,10241,r.minFilter),t.texParameteri(n,10240,r.magFilter),t.texParameteri(n,10242,r.wrapS),t.texParameteri(n,10243,r.wrapT),e.ext_texture_filter_anisotropic&amp;&amp;t.texParameteri(n,34046,r.anisotropic),r.genMipmaps&amp;&amp;(t.hint(33170,r.mipmapHint),t.generateMipmap(n))}function O(e){s.call(this),this.mipmask=0,this.internalformat=6408,this.id=vt++,this.refCount=1,this.target=e,this.texture=t.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new I,o.profile&amp;&amp;(this.stats={size:0})}function D(e){t.activeTexture(33984),t.bindTexture(e.target,e.texture)}function R(){var e=bt[0];e?t.bindTexture(e.target,e.texture):t.bindTexture(3553,null)}function F(e){var r=e.texture,n=e.unit,i=e.target;0&lt;=n&amp;&amp;(t.activeTexture(33984+n),t.bindTexture(i,null),bt[n]=null),t.deleteTexture(r),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete yt[e.id],a.textureCount--}var B={&quot;don't care&quot;:4352,&quot;dont care&quot;:4352,nice:4354,fast:4353},N={repeat:10497,clamp:33071,mirror:33648},j={nearest:9728,linear:9729},V=U({mipmap:9987,&quot;nearest mipmap nearest&quot;:9984,&quot;linear mipmap nearest&quot;:9985,&quot;nearest mipmap linear&quot;:9986,&quot;linear mipmap linear&quot;:9987},j),q={none:0,browser:37444},H={uint8:5121,rgba4:32819,rgb565:33635,&quot;rgb5 a1&quot;:32820},G={alpha:6406,luminance:6409,&quot;luminance alpha&quot;:6410,rgb:6407,rgba:6408,rgba4:32854,&quot;rgb5 a1&quot;:32855,rgb565:36194},W={};e.ext_srgb&amp;&amp;(G.srgb=35904,G.srgba=35906),e.oes_texture_float&amp;&amp;(H.float32=H.float=5126),e.oes_texture_half_float&amp;&amp;(H.float16=H[&quot;half float&quot;]=36193),e.webgl_depth_texture&amp;&amp;(U(G,{depth:6402,&quot;depth stencil&quot;:34041}),U(H,{uint16:5123,uint32:5125,&quot;depth stencil&quot;:34042})),e.webgl_compressed_texture_s3tc&amp;&amp;U(W,{&quot;rgb s3tc dxt1&quot;:33776,&quot;rgba s3tc dxt1&quot;:33777,&quot;rgba s3tc dxt3&quot;:33778,&quot;rgba s3tc dxt5&quot;:33779}),e.webgl_compressed_texture_atc&amp;&amp;U(W,{&quot;rgb atc&quot;:35986,&quot;rgba atc explicit alpha&quot;:35987,&quot;rgba atc interpolated alpha&quot;:34798}),e.webgl_compressed_texture_pvrtc&amp;&amp;U(W,{&quot;rgb pvrtc 4bppv1&quot;:35840,&quot;rgb pvrtc 2bppv1&quot;:35841,&quot;rgba pvrtc 4bppv1&quot;:35842,&quot;rgba pvrtc 2bppv1&quot;:35843}),e.webgl_compressed_texture_etc1&amp;&amp;(W[&quot;rgb etc1&quot;]=36196);var Q=Array.prototype.slice.call(t.getParameter(34467));Object.keys(W).forEach((function(t){var e=W[t];0&lt;=Q.indexOf(e)&amp;&amp;(G[t]=e)}));var $=Object.keys(G);r.textureFormats=$;var tt=[];Object.keys(G).forEach((function(t){tt[G[t]]=t}));var et=[];Object.keys(H).forEach((function(t){et[H[t]]=t}));var rt=[];Object.keys(j).forEach((function(t){rt[j[t]]=t}));var nt=[];Object.keys(V).forEach((function(t){nt[V[t]]=t}));var it=[];Object.keys(N).forEach((function(t){it[N[t]]=t}));var at=$.reduce((function(t,r){var n=G[r];return 6409===n||6406===n||6409===n||6410===n||6402===n||34041===n||e.ext_srgb&amp;&amp;(35904===n||35906===n)?t[n]=n:32855===n||0&lt;=r.indexOf(&quot;rgba&quot;)?t[n]=6408:t[n]=6407,t}),{}),gt=[],mt=[],vt=0,yt={},xt=r.maxTextureUnits,bt=Array(xt).map((function(){return null}));return U(O.prototype,{bind:function(){this.bindCount+=1;var e=this.unit;if(0&gt;e){for(var r=0;r&lt;xt;++r){var n=bt[r];if(n){if(0&lt;n.bindCount)continue;n.unit=-1}bt[r]=this,e=r;break}o.profile&amp;&amp;a.maxTextureUnits&lt;e+1&amp;&amp;(a.maxTextureUnits=e+1),this.unit=e,t.activeTexture(33984+e),t.bindTexture(this.target,this.texture)}return e},unbind:function(){--this.bindCount},decRef:function(){0&gt;=--this.refCount&amp;&amp;F(this)}}),o.profile&amp;&amp;(a.getTotalTextureSize=function(){var t=0;return Object.keys(yt).forEach((function(e){t+=yt[e].stats.size})),t}),{create2D:function(e,r){function n(t,e){var r=i.texInfo;I.call(r);var a=C();return&quot;number&quot;==typeof t?A(a,0|t,&quot;number&quot;==typeof e?0|e:0|t):t?(P(r,t),S(a,t)):A(a,1,1),r.genMipmaps&amp;&amp;(a.mipmask=(a.width&lt;&lt;1)-1),i.mipmask=a.mipmask,c(i,a),i.internalformat=a.internalformat,n.width=a.width,n.height=a.height,D(i),E(a,3553),z(r,3553),R(),L(a),o.profile&amp;&amp;(i.stats.size=T(i.internalformat,i.type,a.width,a.height,r.genMipmaps,!1)),n.format=tt[i.internalformat],n.type=et[i.type],n.mag=rt[r.magFilter],n.min=nt[r.minFilter],n.wrapS=it[r.wrapS],n.wrapT=it[r.wrapT],n}var i=new O(3553);return yt[i.id]=i,a.textureCount++,n(e,r),n.subimage=function(t,e,r,a){e|=0,r|=0,a|=0;var o=v();return c(o,i),o.width=0,o.height=0,p(o,t),o.width=o.width||(i.width&gt;&gt;a)-e,o.height=o.height||(i.height&gt;&gt;a)-r,D(i),d(o,3553,e,r,a),R(),k(o),n},n.resize=function(e,r){var a=0|e,s=0|r||a;if(a===i.width&amp;&amp;s===i.height)return n;n.width=i.width=a,n.height=i.height=s,D(i);for(var l=0;i.mipmask&gt;&gt;l;++l){var c=a&gt;&gt;l,u=s&gt;&gt;l;if(!c||!u)break;t.texImage2D(3553,l,i.format,c,u,0,i.format,i.type,null)}return R(),o.profile&amp;&amp;(i.stats.size=T(i.internalformat,i.type,a,s,!1,!1)),n},n._reglType=&quot;texture2d&quot;,n._texture=i,o.profile&amp;&amp;(n.stats=i.stats),n.destroy=function(){i.decRef()},n},createCube:function(e,r,n,i,s,l){function f(t,e,r,n,i,a){var s,l=h.texInfo;for(I.call(l),s=0;6&gt;s;++s)g[s]=C();if(&quot;number&quot;!=typeof t&amp;&amp;t){if(&quot;object&quot;==typeof t)if(e)S(g[0],t),S(g[1],e),S(g[2],r),S(g[3],n),S(g[4],i),S(g[5],a);else if(P(l,t),u(h,t),&quot;faces&quot;in t)for(t=t.faces,s=0;6&gt;s;++s)c(g[s],h),S(g[s],t[s]);else for(s=0;6&gt;s;++s)S(g[s],t)}else for(t=0|t||1,s=0;6&gt;s;++s)A(g[s],t,t);for(c(h,g[0]),h.mipmask=l.genMipmaps?(g[0].width&lt;&lt;1)-1:g[0].mipmask,h.internalformat=g[0].internalformat,f.width=g[0].width,f.height=g[0].height,D(h),s=0;6&gt;s;++s)E(g[s],34069+s);for(z(l,34067),R(),o.profile&amp;&amp;(h.stats.size=T(h.internalformat,h.type,f.width,f.height,l.genMipmaps,!0)),f.format=tt[h.internalformat],f.type=et[h.type],f.mag=rt[l.magFilter],f.min=nt[l.minFilter],f.wrapS=it[l.wrapS],f.wrapT=it[l.wrapT],s=0;6&gt;s;++s)L(g[s]);return f}var h=new O(34067);yt[h.id]=h,a.cubeCount++;var g=Array(6);return f(e,r,n,i,s,l),f.subimage=function(t,e,r,n,i){r|=0,n|=0,i|=0;var a=v();return c(a,h),a.width=0,a.height=0,p(a,e),a.width=a.width||(h.width&gt;&gt;i)-r,a.height=a.height||(h.height&gt;&gt;i)-n,D(h),d(a,34069+t,r,n,i),R(),k(a),f},f.resize=function(e){if((e|=0)!==h.width){f.width=h.width=e,f.height=h.height=e,D(h);for(var r=0;6&gt;r;++r)for(var n=0;h.mipmask&gt;&gt;n;++n)t.texImage2D(34069+r,n,h.format,e&gt;&gt;n,e&gt;&gt;n,0,h.format,h.type,null);return R(),o.profile&amp;&amp;(h.stats.size=T(h.internalformat,h.type,f.width,f.height,!1,!0)),f}},f._reglType=&quot;textureCube&quot;,f._texture=h,o.profile&amp;&amp;(f.stats=h.stats),f.destroy=function(){h.decRef()},f},clear:function(){for(var e=0;e&lt;xt;++e)t.activeTexture(33984+e),t.bindTexture(3553,null),bt[e]=null;Z(yt).forEach(F),a.cubeCount=0,a.textureCount=0},getTexture:function(t){return null},restore:function(){for(var e=0;e&lt;xt;++e){var r=bt[e];r&amp;&amp;(r.bindCount=0,r.unit=-1,bt[e]=null)}Z(yt).forEach((function(e){e.texture=t.createTexture(),t.bindTexture(e.target,e.texture);for(var r=0;32&gt;r;++r)if(0!=(e.mipmask&amp;1&lt;&lt;r))if(3553===e.target)t.texImage2D(3553,r,e.internalformat,e.width&gt;&gt;r,e.height&gt;&gt;r,0,e.internalformat,e.type,null);else for(var n=0;6&gt;n;++n)t.texImage2D(34069+n,r,e.internalformat,e.width&gt;&gt;r,e.height&gt;&gt;r,0,e.internalformat,e.type,null);z(e.texInfo,e.target)}))}}}function M(t,e,r,n,i,a){function o(t,e,r){this.target=t,this.texture=e,this.renderbuffer=r;var n=t=0;e?(t=e.width,n=e.height):r&amp;&amp;(t=r.width,n=r.height),this.width=t,this.height=n}function s(t){t&amp;&amp;(t.texture&amp;&amp;t.texture._texture.decRef(),t.renderbuffer&amp;&amp;t.renderbuffer._renderbuffer.decRef())}function l(t,e,r){t&amp;&amp;(t.texture?t.texture._texture.refCount+=1:t.renderbuffer._renderbuffer.refCount+=1)}function c(e,r){r&amp;&amp;(r.texture?t.framebufferTexture2D(36160,e,r.target,r.texture._texture.texture,0):t.framebufferRenderbuffer(36160,e,36161,r.renderbuffer._renderbuffer.renderbuffer))}function u(t){var e=3553,r=null,n=null,i=t;return&quot;object&quot;==typeof t&amp;&amp;(i=t.data,&quot;target&quot;in t&amp;&amp;(e=0|t.target)),&quot;texture2d&quot;===(t=i._reglType)||&quot;textureCube&quot;===t?r=i:&quot;renderbuffer&quot;===t&amp;&amp;(n=i,e=36161),new o(e,r,n)}function f(t,e,r,a,s){return r?((t=n.create2D({width:t,height:e,format:a,type:s}))._texture.refCount=0,new o(3553,t,null)):((t=i.create({width:t,height:e,format:a}))._renderbuffer.refCount=0,new o(36161,null,t))}function h(t){return t&amp;&amp;(t.texture||t.renderbuffer)}function p(t,e,r){t&amp;&amp;(t.texture?t.texture.resize(e,r):t.renderbuffer&amp;&amp;t.renderbuffer.resize(e,r),t.width=e,t.height=r)}function d(){this.id=T++,k[this.id]=this,this.framebuffer=t.createFramebuffer(),this.height=this.width=0,this.colorAttachments=[],this.depthStencilAttachment=this.stencilAttachment=this.depthAttachment=null}function g(t){t.colorAttachments.forEach(s),s(t.depthAttachment),s(t.stencilAttachment),s(t.depthStencilAttachment)}function m(e){t.deleteFramebuffer(e.framebuffer),e.framebuffer=null,a.framebufferCount--,delete k[e.id]}function v(e){var n;t.bindFramebuffer(36160,e.framebuffer);var i=e.colorAttachments;for(n=0;n&lt;i.length;++n)c(36064+n,i[n]);for(n=i.length;n&lt;r.maxColorAttachments;++n)t.framebufferTexture2D(36160,36064+n,3553,null,0);t.framebufferTexture2D(36160,33306,3553,null,0),t.framebufferTexture2D(36160,36096,3553,null,0),t.framebufferTexture2D(36160,36128,3553,null,0),c(36096,e.depthAttachment),c(36128,e.stencilAttachment),c(33306,e.depthStencilAttachment),t.checkFramebufferStatus(36160),t.isContextLost(),t.bindFramebuffer(36160,x.next?x.next.framebuffer:null),x.cur=x.next,t.getError()}function y(t,e){function r(t,e){var i,a=0,o=0,s=!0,c=!0;i=null;var p=!0,d=&quot;rgba&quot;,m=&quot;uint8&quot;,y=1,x=null,w=null,T=null,k=!1;&quot;number&quot;==typeof t?(a=0|t,o=0|e||a):t?(&quot;shape&quot;in t?(a=(o=t.shape)[0],o=o[1]):(&quot;radius&quot;in t&amp;&amp;(a=o=t.radius),&quot;width&quot;in t&amp;&amp;(a=t.width),&quot;height&quot;in t&amp;&amp;(o=t.height)),(&quot;color&quot;in t||&quot;colors&quot;in t)&amp;&amp;(i=t.color||t.colors,Array.isArray(i)),i||(&quot;colorCount&quot;in t&amp;&amp;(y=0|t.colorCount),&quot;colorTexture&quot;in t&amp;&amp;(p=!!t.colorTexture,d=&quot;rgba4&quot;),&quot;colorType&quot;in t&amp;&amp;(m=t.colorType,!p)&amp;&amp;(&quot;half float&quot;===m||&quot;float16&quot;===m?d=&quot;rgba16f&quot;:&quot;float&quot;!==m&amp;&amp;&quot;float32&quot;!==m||(d=&quot;rgba32f&quot;)),&quot;colorFormat&quot;in t&amp;&amp;(d=t.colorFormat,0&lt;=b.indexOf(d)?p=!0:0&lt;=_.indexOf(d)&amp;&amp;(p=!1))),(&quot;depthTexture&quot;in t||&quot;depthStencilTexture&quot;in t)&amp;&amp;(k=!(!t.depthTexture&amp;&amp;!t.depthStencilTexture)),&quot;depth&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.depth?s=t.depth:(x=t.depth,c=!1)),&quot;stencil&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.stencil?c=t.stencil:(w=t.stencil,s=!1)),&quot;depthStencil&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.depthStencil?s=c=t.depthStencil:(T=t.depthStencil,c=s=!1))):a=o=1;var M=null,A=null,S=null,E=null;if(Array.isArray(i))M=i.map(u);else if(i)M=[u(i)];else for(M=Array(y),i=0;i&lt;y;++i)M[i]=f(a,o,p,d,m);for(a=a||M[0].width,o=o||M[0].height,x?A=u(x):s&amp;&amp;!c&amp;&amp;(A=f(a,o,k,&quot;depth&quot;,&quot;uint32&quot;)),w?S=u(w):c&amp;&amp;!s&amp;&amp;(S=f(a,o,!1,&quot;stencil&quot;,&quot;uint8&quot;)),T?E=u(T):!x&amp;&amp;!w&amp;&amp;c&amp;&amp;s&amp;&amp;(E=f(a,o,k,&quot;depth stencil&quot;,&quot;depth stencil&quot;)),s=null,i=0;i&lt;M.length;++i)l(M[i]),M[i]&amp;&amp;M[i].texture&amp;&amp;(c=bt[M[i].texture._texture.format]*_t[M[i].texture._texture.type],null===s&amp;&amp;(s=c));return l(A),l(S),l(E),g(n),n.width=a,n.height=o,n.colorAttachments=M,n.depthAttachment=A,n.stencilAttachment=S,n.depthStencilAttachment=E,r.color=M.map(h),r.depth=h(A),r.stencil=h(S),r.depthStencil=h(E),r.width=n.width,r.height=n.height,v(n),r}var n=new d;return a.framebufferCount++,r(t,e),U(r,{resize:function(t,e){var i=Math.max(0|t,1),a=Math.max(0|e||i,1);if(i===n.width&amp;&amp;a===n.height)return r;for(var o=n.colorAttachments,s=0;s&lt;o.length;++s)p(o[s],i,a);return p(n.depthAttachment,i,a),p(n.stencilAttachment,i,a),p(n.depthStencilAttachment,i,a),n.width=r.width=i,n.height=r.height=a,v(n),r},_reglType:&quot;framebuffer&quot;,_framebuffer:n,destroy:function(){m(n),g(n)},use:function(t){x.setFBO({framebuffer:r},t)}})}var x={cur:null,next:null,dirty:!1,setFBO:null},b=[&quot;rgba&quot;],_=[&quot;rgba4&quot;,&quot;rgb565&quot;,&quot;rgb5 a1&quot;];e.ext_srgb&amp;&amp;_.push(&quot;srgba&quot;),e.ext_color_buffer_half_float&amp;&amp;_.push(&quot;rgba16f&quot;,&quot;rgb16f&quot;),e.webgl_color_buffer_float&amp;&amp;_.push(&quot;rgba32f&quot;);var w=[&quot;uint8&quot;];e.oes_texture_half_float&amp;&amp;w.push(&quot;half float&quot;,&quot;float16&quot;),e.oes_texture_float&amp;&amp;w.push(&quot;float&quot;,&quot;float32&quot;);var T=0,k={};return U(x,{getFramebuffer:function(t){return&quot;function&quot;==typeof t&amp;&amp;&quot;framebuffer&quot;===t._reglType&amp;&amp;(t=t._framebuffer)instanceof d?t:null},create:y,createCube:function(t){function e(t){var i,a={color:null},o=0,s=null;i=&quot;rgba&quot;;var l=&quot;uint8&quot;,c=1;if(&quot;number&quot;==typeof t?o=0|t:t?(&quot;shape&quot;in t?o=t.shape[0]:(&quot;radius&quot;in t&amp;&amp;(o=0|t.radius),&quot;width&quot;in t?o=0|t.width:&quot;height&quot;in t&amp;&amp;(o=0|t.height)),(&quot;color&quot;in t||&quot;colors&quot;in t)&amp;&amp;(s=t.color||t.colors,Array.isArray(s)),s||(&quot;colorCount&quot;in t&amp;&amp;(c=0|t.colorCount),&quot;colorType&quot;in t&amp;&amp;(l=t.colorType),&quot;colorFormat&quot;in t&amp;&amp;(i=t.colorFormat)),&quot;depth&quot;in t&amp;&amp;(a.depth=t.depth),&quot;stencil&quot;in t&amp;&amp;(a.stencil=t.stencil),&quot;depthStencil&quot;in t&amp;&amp;(a.depthStencil=t.depthStencil)):o=1,s)if(Array.isArray(s))for(t=[],i=0;i&lt;s.length;++i)t[i]=s[i];else t=[s];else for(t=Array(c),s={radius:o,format:i,type:l},i=0;i&lt;c;++i)t[i]=n.createCube(s);for(a.color=Array(t.length),i=0;i&lt;t.length;++i)c=t[i],o=o||c.width,a.color[i]={target:34069,data:t[i]};for(i=0;6&gt;i;++i){for(c=0;c&lt;t.length;++c)a.color[c].target=34069+i;0&lt;i&amp;&amp;(a.depth=r[0].depth,a.stencil=r[0].stencil,a.depthStencil=r[0].depthStencil),r[i]?r[i](a):r[i]=y(a)}return U(e,{width:o,height:o,color:t})}var r=Array(6);return e(t),U(e,{faces:r,resize:function(t){var n=0|t;if(n===e.width)return e;var i=e.color;for(t=0;t&lt;i.length;++t)i[t].resize(n);for(t=0;6&gt;t;++t)r[t].resize(n);return e.width=e.height=n,e},_reglType:&quot;framebufferCube&quot;,destroy:function(){r.forEach((function(t){t.destroy()}))}})},clear:function(){Z(k).forEach(m)},restore:function(){x.cur=null,x.next=null,x.dirty=!0,Z(k).forEach((function(e){e.framebuffer=t.createFramebuffer(),v(e)}))}})}function A(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function S(t,e,r,n,i){function a(){this.id=++c,this.attributes=[];var t=e.oes_vertex_array_object;this.vao=t?t.createVertexArrayOES():null,u[this.id]=this,this.buffers=[]}var o=r.maxAttributes,s=Array(o);for(r=0;r&lt;o;++r)s[r]=new A;var c=0,u={},f={Record:A,scope:{},state:s,currentVAO:null,targetVAO:null,restore:e.oes_vertex_array_object?function(){e.oes_vertex_array_object&amp;&amp;Z(u).forEach((function(t){t.refresh()}))}:function(){},createVAO:function(t){function e(t){for(var n=0;n&lt;r.buffers.length;++n)r.buffers[n].destroy();r.buffers.length=0,(n=r.attributes).length=t.length;for(var a=0;a&lt;t.length;++a){var o=t[a],s=n[a]=new A;Array.isArray(o)||X(o)||l(o)?(o=i.create(o,34962,!1,!0),s.buffer=i.getBuffer(o),s.size=0|s.buffer.dimension,s.normalized=!1,s.type=s.buffer.dtype,s.offset=0,s.stride=0,s.divisor=0,s.state=1,r.buffers.push(o)):i.getBuffer(o)?(s.buffer=i.getBuffer(o),s.size=0|s.buffer.dimension,s.normalized=!1,s.type=s.buffer.dtype,s.offset=0,s.stride=0,s.divisor=0,s.state=1):i.getBuffer(o.buffer)?(s.buffer=i.getBuffer(o.buffer),s.size=0|(+o.size||s.buffer.dimension),s.normalized=!!o.normalized||!1,s.type=&quot;type&quot;in o?Q[o.type]:s.buffer.dtype,s.offset=0|(o.offset||0),s.stride=0|(o.stride||0),s.divisor=0|(o.divisor||0),s.state=1):&quot;x&quot;in o&amp;&amp;(s.x=+o.x||0,s.y=+o.y||0,s.z=+o.z||0,s.w=+o.w||0,s.state=2)}return r.refresh(),e}var r=new a;return n.vaoCount+=1,e.destroy=function(){r.destroy()},e._vao=r,e._reglType=&quot;vao&quot;,e(t)},getVAO:function(t){return&quot;function&quot;==typeof t&amp;&amp;t._vao?t._vao:null},destroyBuffer:function(e){for(var r=0;r&lt;s.length;++r){var n=s[r];n.buffer===e&amp;&amp;(t.disableVertexAttribArray(r),n.buffer=null)}},setVAO:e.oes_vertex_array_object?function(t){if(t!==f.currentVAO){var r=e.oes_vertex_array_object;t?r.bindVertexArrayOES(t.vao):r.bindVertexArrayOES(null),f.currentVAO=t}}:function(r){if(r!==f.currentVAO){if(r)r.bindAttrs();else for(var n=e.angle_instanced_arrays,i=0;i&lt;s.length;++i){var a=s[i];a.buffer?(t.enableVertexAttribArray(i),t.vertexAttribPointer(i,a.size,a.type,a.normalized,a.stride,a.offfset),n&amp;&amp;n.vertexAttribDivisorANGLE(i,a.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,a.x,a.y,a.z,a.w))}f.currentVAO=r}},clear:e.oes_vertex_array_object?function(){Z(u).forEach((function(t){t.destroy()}))}:function(){}};return a.prototype.bindAttrs=function(){for(var r=e.angle_instanced_arrays,n=this.attributes,i=0;i&lt;n.length;++i){var a=n[i];a.buffer?(t.enableVertexAttribArray(i),t.bindBuffer(34962,a.buffer.buffer),t.vertexAttribPointer(i,a.size,a.type,a.normalized,a.stride,a.offset),r&amp;&amp;r.vertexAttribDivisorANGLE(i,a.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,a.x,a.y,a.z,a.w))}for(r=n.length;r&lt;o;++r)t.disableVertexAttribArray(r)},a.prototype.refresh=function(){var t=e.oes_vertex_array_object;t&amp;&amp;(t.bindVertexArrayOES(this.vao),this.bindAttrs(),f.currentVAO=this)},a.prototype.destroy=function(){if(this.vao){var t=e.oes_vertex_array_object;this===f.currentVAO&amp;&amp;(f.currentVAO=null,t.bindVertexArrayOES(null)),t.deleteVertexArrayOES(this.vao),this.vao=null}u[this.id]&amp;&amp;(delete u[this.id],--n.vaoCount)},f}function E(t,e,r,n){function i(t,e,r,n){this.name=t,this.id=e,this.location=r,this.info=n}function a(t,e){for(var r=0;r&lt;t.length;++r)if(t[r].id===e.id)return void(t[r].location=e.location);t.push(e)}function o(r,n,i){if(!(o=(i=35632===r?c:u)[n])){var a=e.str(n),o=t.createShader(r);t.shaderSource(o,a),t.compileShader(o),i[n]=o}return o}function s(t,e){this.id=p++,this.fragId=t,this.vertId=e,this.program=null,this.uniforms=[],this.attributes=[],n.profile&amp;&amp;(this.stats={uniformsCount:0,attributesCount:0})}function l(r,s,l){var c;c=o(35632,r.fragId);var u=o(35633,r.vertId);if(s=r.program=t.createProgram(),t.attachShader(s,c),t.attachShader(s,u),l)for(c=0;c&lt;l.length;++c)u=l[c],t.bindAttribLocation(s,u[0],u[1]);t.linkProgram(s),u=t.getProgramParameter(s,35718),n.profile&amp;&amp;(r.stats.uniformsCount=u);var f=r.uniforms;for(c=0;c&lt;u;++c)if(l=t.getActiveUniform(s,c))if(1&lt;l.size)for(var h=0;h&lt;l.size;++h){var p=l.name.replace(&quot;[0]&quot;,&quot;[&quot;+h+&quot;]&quot;);a(f,new i(p,e.id(p),t.getUniformLocation(s,p),l))}else a(f,new i(l.name,e.id(l.name),t.getUniformLocation(s,l.name),l));for(u=t.getProgramParameter(s,35721),n.profile&amp;&amp;(r.stats.attributesCount=u),r=r.attributes,c=0;c&lt;u;++c)(l=t.getActiveAttrib(s,c))&amp;&amp;a(r,new i(l.name,e.id(l.name),t.getAttribLocation(s,l.name),l))}var c={},u={},f={},h=[],p=0;return n.profile&amp;&amp;(r.getMaxUniformsCount=function(){var t=0;return h.forEach((function(e){e.stats.uniformsCount&gt;t&amp;&amp;(t=e.stats.uniformsCount)})),t},r.getMaxAttributesCount=function(){var t=0;return h.forEach((function(e){e.stats.attributesCount&gt;t&amp;&amp;(t=e.stats.attributesCount)})),t}),{clear:function(){var e=t.deleteShader.bind(t);Z(c).forEach(e),c={},Z(u).forEach(e),u={},h.forEach((function(e){t.deleteProgram(e.program)})),h.length=0,f={},r.shaderCount=0},program:function(t,e,n,i){var a=f[e];a||(a=f[e]={});var o=a[t];return o&amp;&amp;!i?o:(e=new s(e,t),r.shaderCount++,l(e,n,i),o||(a[t]=e),h.push(e),e)},restore:function(){c={},u={};for(var t=0;t&lt;h.length;++t)l(h[t],null,h[t].attributes.map((function(t){return[t.location,t.name]})))},shader:o,frag:-1,vert:-1}}function C(t,e,r,n,i,a,o){function s(i){var a;a=null===e.next?5121:e.next.colorAttachments[0].texture._texture.type;var o=0,s=0,l=n.framebufferWidth,c=n.framebufferHeight,u=null;return X(i)?u=i:i&amp;&amp;(o=0|i.x,s=0|i.y,l=0|(i.width||n.framebufferWidth-o),c=0|(i.height||n.framebufferHeight-s),u=i.data||null),r(),i=l*c*4,u||(5121===a?u=new Uint8Array(i):5126===a&amp;&amp;(u=u||new Float32Array(i))),t.pixelStorei(3333,4),t.readPixels(o,s,l,c,6408,a,u),u}return function(t){return t&amp;&amp;&quot;framebuffer&quot;in t?function(t){var r;return e.setFBO({framebuffer:t.framebuffer},(function(){r=s(t)})),r}(t):s(t)}}function L(t){return Array.prototype.slice.call(t)}function I(t){return L(t).join(&quot;&quot;)}function P(){function t(){var t=[],e=[];return U((function(){t.push.apply(t,L(arguments))}),{def:function(){var n=&quot;v&quot;+r++;return e.push(n),0&lt;arguments.length&amp;&amp;(t.push(n,&quot;=&quot;),t.push.apply(t,L(arguments)),t.push(&quot;;&quot;)),n},toString:function(){return I([0&lt;e.length?&quot;var &quot;+e.join(&quot;,&quot;)+&quot;;&quot;:&quot;&quot;,I(t)])}})}function e(){function e(t,e){n(t,e,&quot;=&quot;,r.def(t,e),&quot;;&quot;)}var r=t(),n=t(),i=r.toString,a=n.toString;return U((function(){r.apply(r,L(arguments))}),{def:r.def,entry:r,exit:n,save:e,set:function(t,n,i){e(t,n),r(t,n,&quot;=&quot;,i,&quot;;&quot;)},toString:function(){return i()+a()}})}var r=0,n=[],i=[],a=t(),o={};return{global:a,link:function(t){for(var e=0;e&lt;i.length;++e)if(i[e]===t)return n[e];return e=&quot;g&quot;+r++,n.push(e),i.push(t),e},block:t,proc:function(t,r){function n(){var t=&quot;a&quot;+i.length;return i.push(t),t}var i=[];r=r||0;for(var a=0;a&lt;r;++a)n();var s=(a=e()).toString;return o[t]=U(a,{arg:n,toString:function(){return I([&quot;function(&quot;,i.join(),&quot;){&quot;,s(),&quot;}&quot;])}})},scope:e,cond:function(){var t=I(arguments),r=e(),n=e(),i=r.toString,a=n.toString;return U(r,{then:function(){return r.apply(r,L(arguments)),this},else:function(){return n.apply(n,L(arguments)),this},toString:function(){var e=a();return e&amp;&amp;(e=&quot;else{&quot;+e+&quot;}&quot;),I([&quot;if(&quot;,t,&quot;){&quot;,i(),&quot;}&quot;,e])}})},compile:function(){var t=['&quot;use strict&quot;;',a,&quot;return {&quot;];Object.keys(o).forEach((function(e){t.push('&quot;',e,'&quot;:',o[e].toString(),&quot;,&quot;)})),t.push(&quot;}&quot;);var e=I(t).replace(/;/g,&quot;;\n&quot;).replace(/}/g,&quot;}\n&quot;).replace(/{/g,&quot;{\n&quot;);return Function.apply(null,n.concat(e)).apply(null,i)}}}function z(t){return Array.isArray(t)||X(t)||l(t)}function O(t){return t.sort((function(t,e){return&quot;viewport&quot;===t?-1:&quot;viewport&quot;===e?1:t&lt;e?-1:1}))}function D(t,e,r,n){this.thisDep=t,this.contextDep=e,this.propDep=r,this.append=n}function R(t){return t&amp;&amp;!(t.thisDep||t.contextDep||t.propDep)}function F(t){return new D(!1,!1,!1,t)}function B(t,e){var r=t.type;return 0===r?new D(!0,1&lt;=(r=t.data.length),2&lt;=r,e):4===r?new D((r=t.data).thisDep,r.contextDep,r.propDep,e):new D(3===r,2===r,1===r,e)}function N(t,e,r,n,i,o,s,l,c,u,f,h,p,d,g){function v(t){return t.replace(&quot;.&quot;,&quot;_&quot;)}function y(t,e,r){var n=v(t);rt.push(t),et[n]=tt[n]=!!r,it[n]=e}function x(t,e,r){var n=v(t);rt.push(t),Array.isArray(r)?(tt[n]=r.slice(),et[n]=r.slice()):tt[n]=et[n]=r,at[n]=e}function b(){var t=P(),r=t.link,n=t.global;t.id=lt++,t.batchId=&quot;0&quot;;var i=r(ot),a=t.shared={props:&quot;a0&quot;};Object.keys(ot).forEach((function(t){a[t]=n.def(i,&quot;.&quot;,t)}));var o=t.next={},s=t.current={};Object.keys(at).forEach((function(t){Array.isArray(tt[t])&amp;&amp;(o[t]=n.def(a.next,&quot;.&quot;,t),s[t]=n.def(a.current,&quot;.&quot;,t))}));var l=t.constants={};Object.keys(st).forEach((function(t){l[t]=n.def(JSON.stringify(st[t]))})),t.invoke=function(e,n){switch(n.type){case 0:var i=[&quot;this&quot;,a.context,a.props,t.batchId];return e.def(r(n.data),&quot;.call(&quot;,i.slice(0,Math.max(n.data.length+1,4)),&quot;)&quot;);case 1:return e.def(a.props,n.data);case 2:return e.def(a.context,n.data);case 3:return e.def(&quot;this&quot;,n.data);case 4:return n.data.append(t,e),n.data.ref}},t.attribCache={};var c={};return t.scopeAttrib=function(t){if((t=e.id(t))in c)return c[t];var n=u.scope[t];return n||(n=u.scope[t]=new Z),c[t]=r(n)},t}function _(t,e){var r=t.static,n=t.dynamic;if(&quot;framebuffer&quot;in r){var i=r.framebuffer;return i?(i=l.getFramebuffer(i),F((function(t,e){var r=t.link(i),n=t.shared;return e.set(n.framebuffer,&quot;.next&quot;,r),n=n.context,e.set(n,&quot;.framebufferWidth&quot;,r+&quot;.width&quot;),e.set(n,&quot;.framebufferHeight&quot;,r+&quot;.height&quot;),r}))):F((function(t,e){var r=t.shared;return e.set(r.framebuffer,&quot;.next&quot;,&quot;null&quot;),r=r.context,e.set(r,&quot;.framebufferWidth&quot;,r+&quot;.drawingBufferWidth&quot;),e.set(r,&quot;.framebufferHeight&quot;,r+&quot;.drawingBufferHeight&quot;),&quot;null&quot;}))}if(&quot;framebuffer&quot;in n){var a=n.framebuffer;return B(a,(function(t,e){var r=t.invoke(e,a),n=t.shared,i=n.framebuffer;r=e.def(i,&quot;.getFramebuffer(&quot;,r,&quot;)&quot;);return e.set(i,&quot;.next&quot;,r),n=n.context,e.set(n,&quot;.framebufferWidth&quot;,r+&quot;?&quot;+r+&quot;.width:&quot;+n+&quot;.drawingBufferWidth&quot;),e.set(n,&quot;.framebufferHeight&quot;,r+&quot;?&quot;+r+&quot;.height:&quot;+n+&quot;.drawingBufferHeight&quot;),r}))}return null}function w(t,r,n){function i(t){if(t in a){var r=e.id(a[t]);return(t=F((function(){return r}))).id=r,t}if(t in o){var n=o[t];return B(n,(function(t,e){var r=t.invoke(e,n);return e.def(t.shared.strings,&quot;.id(&quot;,r,&quot;)&quot;)}))}return null}var a=t.static,o=t.dynamic,s=i(&quot;frag&quot;),l=i(&quot;vert&quot;),c=null;return R(s)&amp;&amp;R(l)?(c=f.program(l.id,s.id,null,n),t=F((function(t,e){return t.link(c)}))):t=new D(s&amp;&amp;s.thisDep||l&amp;&amp;l.thisDep,s&amp;&amp;s.contextDep||l&amp;&amp;l.contextDep,s&amp;&amp;s.propDep||l&amp;&amp;l.propDep,(function(t,e){var r,n,i=t.shared.shader;return r=s?s.append(t,e):e.def(i,&quot;.&quot;,&quot;frag&quot;),n=l?l.append(t,e):e.def(i,&quot;.&quot;,&quot;vert&quot;),e.def(i+&quot;.program(&quot;+n+&quot;,&quot;+r+&quot;)&quot;)})),{frag:s,vert:l,progVar:t,program:c}}function T(t,e){function r(t,e){if(t in n){var r=0|n[t];return F((function(t,n){return e&amp;&amp;(t.OFFSET=r),r}))}if(t in i){var o=i[t];return B(o,(function(t,r){var n=t.invoke(r,o);return e&amp;&amp;(t.OFFSET=n),n}))}return e&amp;&amp;a?F((function(t,e){return t.OFFSET=&quot;0&quot;,0})):null}var n=t.static,i=t.dynamic,a=function(){if(&quot;elements&quot;in n){var t=n.elements;z(t)?t=o.getElements(o.create(t,!0)):t&amp;&amp;(t=o.getElements(t));var e=F((function(e,r){if(t){var n=e.link(t);return e.ELEMENTS=n}return e.ELEMENTS=null}));return e.value=t,e}if(&quot;elements&quot;in i){var r=i.elements;return B(r,(function(t,e){var n=(i=t.shared).isBufferArgs,i=i.elements,a=t.invoke(e,r),o=e.def(&quot;null&quot;);n=e.def(n,&quot;(&quot;,a,&quot;)&quot;),a=t.cond(n).then(o,&quot;=&quot;,i,&quot;.createStream(&quot;,a,&quot;);&quot;).else(o,&quot;=&quot;,i,&quot;.getElements(&quot;,a,&quot;);&quot;);return e.entry(a),e.exit(t.cond(n).then(i,&quot;.destroyStream(&quot;,o,&quot;);&quot;)),t.ELEMENTS=o}))}return null}(),s=r(&quot;offset&quot;,!0);return{elements:a,primitive:function(){if(&quot;primitive&quot;in n){var t=n.primitive;return F((function(e,r){return nt[t]}))}if(&quot;primitive&quot;in i){var e=i.primitive;return B(e,(function(t,r){var n=t.constants.primTypes,i=t.invoke(r,e);return r.def(n,&quot;[&quot;,i,&quot;]&quot;)}))}return a?R(a)?a.value?F((function(t,e){return e.def(t.ELEMENTS,&quot;.primType&quot;)})):F((function(){return 4})):new D(a.thisDep,a.contextDep,a.propDep,(function(t,e){var r=t.ELEMENTS;return e.def(r,&quot;?&quot;,r,&quot;.primType:&quot;,4)})):null}(),count:function(){if(&quot;count&quot;in n){var t=0|n.count;return F((function(){return t}))}if(&quot;count&quot;in i){var e=i.count;return B(e,(function(t,r){return t.invoke(r,e)}))}return a?R(a)?a?s?new D(s.thisDep,s.contextDep,s.propDep,(function(t,e){return e.def(t.ELEMENTS,&quot;.vertCount-&quot;,t.OFFSET)})):F((function(t,e){return e.def(t.ELEMENTS,&quot;.vertCount&quot;)})):F((function(){return-1})):new D(a.thisDep||s.thisDep,a.contextDep||s.contextDep,a.propDep||s.propDep,(function(t,e){var r=t.ELEMENTS;return t.OFFSET?e.def(r,&quot;?&quot;,r,&quot;.vertCount-&quot;,t.OFFSET,&quot;:-1&quot;):e.def(r,&quot;?&quot;,r,&quot;.vertCount:-1&quot;)})):null}(),instances:r(&quot;instances&quot;,!1),offset:s}}function k(t,r){var n=t.static,a=t.dynamic,o={};return Object.keys(n).forEach((function(t){var r=n[t],a=e.id(t),s=new Z;if(z(r))s.state=1,s.buffer=i.getBuffer(i.create(r,34962,!1,!0)),s.type=0;else if(c=i.getBuffer(r))s.state=1,s.buffer=c,s.type=0;else if(&quot;constant&quot;in r){var l=r.constant;s.buffer=&quot;null&quot;,s.state=2,&quot;number&quot;==typeof l?s.x=l:wt.forEach((function(t,e){e&lt;l.length&amp;&amp;(s[t]=l[e])}))}else{var c=z(r.buffer)?i.getBuffer(i.create(r.buffer,34962,!1,!0)):i.getBuffer(r.buffer),u=0|r.offset,f=0|r.stride,h=0|r.size,p=!!r.normalized,d=0;&quot;type&quot;in r&amp;&amp;(d=Q[r.type]),r=0|r.divisor,s.buffer=c,s.state=1,s.size=h,s.normalized=p,s.type=d||c.dtype,s.offset=u,s.stride=f,s.divisor=r}o[t]=F((function(t,e){var r=t.attribCache;if(a in r)return r[a];var n={isStream:!1};return Object.keys(s).forEach((function(t){n[t]=s[t]})),s.buffer&amp;&amp;(n.buffer=t.link(s.buffer),n.type=n.type||n.buffer+&quot;.dtype&quot;),r[a]=n}))})),Object.keys(a).forEach((function(t){var e=a[t];o[t]=B(e,(function(t,r){function n(t){r(l[t],&quot;=&quot;,i,&quot;.&quot;,t,&quot;|0;&quot;)}var i=t.invoke(r,e),a=t.shared,o=t.constants,s=a.isBufferArgs,l=(a=a.buffer,{isStream:r.def(!1)}),c=new Z;c.state=1,Object.keys(c).forEach((function(t){l[t]=r.def(&quot;&quot;+c[t])}));var u=l.buffer,f=l.type;return r(&quot;if(&quot;,s,&quot;(&quot;,i,&quot;)){&quot;,l.isStream,&quot;=true;&quot;,u,&quot;=&quot;,a,&quot;.createStream(&quot;,34962,&quot;,&quot;,i,&quot;);&quot;,f,&quot;=&quot;,u,&quot;.dtype;&quot;,&quot;}else{&quot;,u,&quot;=&quot;,a,&quot;.getBuffer(&quot;,i,&quot;);&quot;,&quot;if(&quot;,u,&quot;){&quot;,f,&quot;=&quot;,u,&quot;.dtype;&quot;,'}else if(&quot;constant&quot; in ',i,&quot;){&quot;,l.state,&quot;=&quot;,2,&quot;;&quot;,&quot;if(typeof &quot;+i+'.constant === &quot;number&quot;){',l[wt[0]],&quot;=&quot;,i,&quot;.constant;&quot;,wt.slice(1).map((function(t){return l[t]})).join(&quot;=&quot;),&quot;=0;&quot;,&quot;}else{&quot;,wt.map((function(t,e){return l[t]+&quot;=&quot;+i+&quot;.constant.length&gt;&quot;+e+&quot;?&quot;+i+&quot;.constant[&quot;+e+&quot;]:0;&quot;})).join(&quot;&quot;),&quot;}}else{&quot;,&quot;if(&quot;,s,&quot;(&quot;,i,&quot;.buffer)){&quot;,u,&quot;=&quot;,a,&quot;.createStream(&quot;,34962,&quot;,&quot;,i,&quot;.buffer);&quot;,&quot;}else{&quot;,u,&quot;=&quot;,a,&quot;.getBuffer(&quot;,i,&quot;.buffer);&quot;,&quot;}&quot;,f,'=&quot;type&quot; in ',i,&quot;?&quot;,o.glTypes,&quot;[&quot;,i,&quot;.type]:&quot;,u,&quot;.dtype;&quot;,l.normalized,&quot;=!!&quot;,i,&quot;.normalized;&quot;),n(&quot;size&quot;),n(&quot;offset&quot;),n(&quot;stride&quot;),n(&quot;divisor&quot;),r(&quot;}}&quot;),r.exit(&quot;if(&quot;,l.isStream,&quot;){&quot;,a,&quot;.destroyStream(&quot;,u,&quot;);&quot;,&quot;}&quot;),l}))})),o}function M(t,e,n,i,o){function s(t){var e=c[t];e&amp;&amp;(h[t]=e)}var l=function(t,e){if(&quot;string&quot;==typeof(r=t.static).frag&amp;&amp;&quot;string&quot;==typeof r.vert){if(0&lt;Object.keys(e.dynamic).length)return null;var r=e.static,n=Object.keys(r);if(0&lt;n.length&amp;&amp;&quot;number&quot;==typeof r[n[0]]){for(var i=[],a=0;a&lt;n.length;++a)i.push([0|r[n[a]],n[a]]);return i}}return null}(t,e),c=function(t,e,r){function n(t){if(t in i){var r=i[t];t=!0;var n,o,s=0|r.x,l=0|r.y;return&quot;width&quot;in r?n=0|r.width:t=!1,&quot;height&quot;in r?o=0|r.height:t=!1,new D(!t&amp;&amp;e&amp;&amp;e.thisDep,!t&amp;&amp;e&amp;&amp;e.contextDep,!t&amp;&amp;e&amp;&amp;e.propDep,(function(t,e){var i=t.shared.context,a=n;&quot;width&quot;in r||(a=e.def(i,&quot;.&quot;,&quot;framebufferWidth&quot;,&quot;-&quot;,s));var c=o;return&quot;height&quot;in r||(c=e.def(i,&quot;.&quot;,&quot;framebufferHeight&quot;,&quot;-&quot;,l)),[s,l,a,c]}))}if(t in a){var c=a[t];return t=B(c,(function(t,e){var r=t.invoke(e,c),n=t.shared.context,i=e.def(r,&quot;.x|0&quot;),a=e.def(r,&quot;.y|0&quot;);return[i,a,e.def('&quot;width&quot; in ',r,&quot;?&quot;,r,&quot;.width|0:&quot;,&quot;(&quot;,n,&quot;.&quot;,&quot;framebufferWidth&quot;,&quot;-&quot;,i,&quot;)&quot;),r=e.def('&quot;height&quot; in ',r,&quot;?&quot;,r,&quot;.height|0:&quot;,&quot;(&quot;,n,&quot;.&quot;,&quot;framebufferHeight&quot;,&quot;-&quot;,a,&quot;)&quot;)]})),e&amp;&amp;(t.thisDep=t.thisDep||e.thisDep,t.contextDep=t.contextDep||e.contextDep,t.propDep=t.propDep||e.propDep),t}return e?new D(e.thisDep,e.contextDep,e.propDep,(function(t,e){var r=t.shared.context;return[0,0,e.def(r,&quot;.&quot;,&quot;framebufferWidth&quot;),e.def(r,&quot;.&quot;,&quot;framebufferHeight&quot;)]})):null}var i=t.static,a=t.dynamic;if(t=n(&quot;viewport&quot;)){var o=t;t=new D(t.thisDep,t.contextDep,t.propDep,(function(t,e){var r=o.append(t,e),n=t.shared.context;return e.set(n,&quot;.viewportWidth&quot;,r[2]),e.set(n,&quot;.viewportHeight&quot;,r[3]),r}))}return{viewport:t,scissor_box:n(&quot;scissor.box&quot;)}}(t,d=_(t)),f=T(t),h=function(t,e){var r=t.static,n=t.dynamic,i={};return rt.forEach((function(t){function e(e,a){if(t in r){var s=e(r[t]);i[o]=F((function(){return s}))}else if(t in n){var l=n[t];i[o]=B(l,(function(t,e){return a(t,e,t.invoke(e,l))}))}}var o=v(t);switch(t){case&quot;cull.enable&quot;:case&quot;blend.enable&quot;:case&quot;dither&quot;:case&quot;stencil.enable&quot;:case&quot;depth.enable&quot;:case&quot;scissor.enable&quot;:case&quot;polygonOffset.enable&quot;:case&quot;sample.alpha&quot;:case&quot;sample.enable&quot;:case&quot;depth.mask&quot;:return e((function(t){return t}),(function(t,e,r){return r}));case&quot;depth.func&quot;:return e((function(t){return Mt[t]}),(function(t,e,r){return e.def(t.constants.compareFuncs,&quot;[&quot;,r,&quot;]&quot;)}));case&quot;depth.range&quot;:return e((function(t){return t}),(function(t,e,r){return[e.def(&quot;+&quot;,r,&quot;[0]&quot;),e=e.def(&quot;+&quot;,r,&quot;[1]&quot;)]}));case&quot;blend.func&quot;:return e((function(t){return[kt[&quot;srcRGB&quot;in t?t.srcRGB:t.src],kt[&quot;dstRGB&quot;in t?t.dstRGB:t.dst],kt[&quot;srcAlpha&quot;in t?t.srcAlpha:t.src],kt[&quot;dstAlpha&quot;in t?t.dstAlpha:t.dst]]}),(function(t,e,r){function n(t,n){return e.def('&quot;',t,n,'&quot; in ',r,&quot;?&quot;,r,&quot;.&quot;,t,n,&quot;:&quot;,r,&quot;.&quot;,t)}t=t.constants.blendFuncs;var i=n(&quot;src&quot;,&quot;RGB&quot;),a=n(&quot;dst&quot;,&quot;RGB&quot;),o=(i=e.def(t,&quot;[&quot;,i,&quot;]&quot;),e.def(t,&quot;[&quot;,n(&quot;src&quot;,&quot;Alpha&quot;),&quot;]&quot;));return[i,a=e.def(t,&quot;[&quot;,a,&quot;]&quot;),o,t=e.def(t,&quot;[&quot;,n(&quot;dst&quot;,&quot;Alpha&quot;),&quot;]&quot;)]}));case&quot;blend.equation&quot;:return e((function(t){return&quot;string&quot;==typeof t?[J[t],J[t]]:&quot;object&quot;==typeof t?[J[t.rgb],J[t.alpha]]:void 0}),(function(t,e,r){var n=t.constants.blendEquations,i=e.def(),a=e.def();return(t=t.cond(&quot;typeof &quot;,r,'===&quot;string&quot;')).then(i,&quot;=&quot;,a,&quot;=&quot;,n,&quot;[&quot;,r,&quot;];&quot;),t.else(i,&quot;=&quot;,n,&quot;[&quot;,r,&quot;.rgb];&quot;,a,&quot;=&quot;,n,&quot;[&quot;,r,&quot;.alpha];&quot;),e(t),[i,a]}));case&quot;blend.color&quot;:return e((function(t){return a(4,(function(e){return+t[e]}))}),(function(t,e,r){return a(4,(function(t){return e.def(&quot;+&quot;,r,&quot;[&quot;,t,&quot;]&quot;)}))}));case&quot;stencil.mask&quot;:return e((function(t){return 0|t}),(function(t,e,r){return e.def(r,&quot;|0&quot;)}));case&quot;stencil.func&quot;:return e((function(t){return[Mt[t.cmp||&quot;keep&quot;],t.ref||0,&quot;mask&quot;in t?t.mask:-1]}),(function(t,e,r){return[t=e.def('&quot;cmp&quot; in ',r,&quot;?&quot;,t.constants.compareFuncs,&quot;[&quot;,r,&quot;.cmp]&quot;,&quot;:&quot;,7680),e.def(r,&quot;.ref|0&quot;),e=e.def('&quot;mask&quot; in ',r,&quot;?&quot;,r,&quot;.mask|0:-1&quot;)]}));case&quot;stencil.opFront&quot;:case&quot;stencil.opBack&quot;:return e((function(e){return[&quot;stencil.opBack&quot;===t?1029:1028,At[e.fail||&quot;keep&quot;],At[e.zfail||&quot;keep&quot;],At[e.zpass||&quot;keep&quot;]]}),(function(e,r,n){function i(t){return r.def('&quot;',t,'&quot; in ',n,&quot;?&quot;,a,&quot;[&quot;,n,&quot;.&quot;,t,&quot;]:&quot;,7680)}var a=e.constants.stencilOps;return[&quot;stencil.opBack&quot;===t?1029:1028,i(&quot;fail&quot;),i(&quot;zfail&quot;),i(&quot;zpass&quot;)]}));case&quot;polygonOffset.offset&quot;:return e((function(t){return[0|t.factor,0|t.units]}),(function(t,e,r){return[e.def(r,&quot;.factor|0&quot;),e=e.def(r,&quot;.units|0&quot;)]}));case&quot;cull.face&quot;:return e((function(t){var e=0;return&quot;front&quot;===t?e=1028:&quot;back&quot;===t&amp;&amp;(e=1029),e}),(function(t,e,r){return e.def(r,'===&quot;front&quot;?',1028,&quot;:&quot;,1029)}));case&quot;lineWidth&quot;:return e((function(t){return t}),(function(t,e,r){return r}));case&quot;frontFace&quot;:return e((function(t){return St[t]}),(function(t,e,r){return e.def(r+'===&quot;cw&quot;?2304:2305')}));case&quot;colorMask&quot;:return e((function(t){return t.map((function(t){return!!t}))}),(function(t,e,r){return a(4,(function(t){return&quot;!!&quot;+r+&quot;[&quot;+t+&quot;]&quot;}))}));case&quot;sample.coverage&quot;:return e((function(t){return[&quot;value&quot;in t?t.value:1,!!t.invert]}),(function(t,e,r){return[e.def('&quot;value&quot; in ',r,&quot;?+&quot;,r,&quot;.value:1&quot;),e=e.def(&quot;!!&quot;,r,&quot;.invert&quot;)]}))}})),i}(t),p=w(t,0,l);s(&quot;viewport&quot;),s(v(&quot;scissor.box&quot;));var d,g=0&lt;Object.keys(h).length;if((d={framebuffer:d,draw:f,shader:p,state:h,dirty:g,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}}).profile=function(t){var e,r=t.static;if(t=t.dynamic,&quot;profile&quot;in r){var n=!!r.profile;(e=F((function(t,e){return n}))).enable=n}else if(&quot;profile&quot;in t){var i=t.profile;e=B(i,(function(t,e){return t.invoke(e,i)}))}return e}(t),d.uniforms=function(t,e){var r=t.static,n=t.dynamic,i={};return Object.keys(r).forEach((function(t){var e,n=r[t];if(&quot;number&quot;==typeof n||&quot;boolean&quot;==typeof n)e=F((function(){return n}));else if(&quot;function&quot;==typeof n){var o=n._reglType;&quot;texture2d&quot;===o||&quot;textureCube&quot;===o?e=F((function(t){return t.link(n)})):&quot;framebuffer&quot;!==o&amp;&amp;&quot;framebufferCube&quot;!==o||(e=F((function(t){return t.link(n.color[0])})))}else m(n)&amp;&amp;(e=F((function(t){return t.global.def(&quot;[&quot;,a(n.length,(function(t){return n[t]})),&quot;]&quot;)})));e.value=n,i[t]=e})),Object.keys(n).forEach((function(t){var e=n[t];i[t]=B(e,(function(t,r){return t.invoke(r,e)}))})),i}(n),d.drawVAO=d.scopeVAO=function(t,e){var r=t.static,n=t.dynamic;if(&quot;vao&quot;in r){var i=r.vao;return null!==i&amp;&amp;null===u.getVAO(i)&amp;&amp;(i=u.createVAO(i)),F((function(t){return t.link(u.getVAO(i))}))}if(&quot;vao&quot;in n){var a=n.vao;return B(a,(function(t,e){var r=t.invoke(e,a);return e.def(t.shared.vao+&quot;.getVAO(&quot;+r+&quot;)&quot;)}))}return null}(t),!d.drawVAO&amp;&amp;p.program&amp;&amp;!l&amp;&amp;r.angle_instanced_arrays){var y=!0;if(t=p.program.attributes.map((function(t){return t=e.static[t],y=y&amp;&amp;!!t,t})),y&amp;&amp;0&lt;t.length){var x=u.getVAO(u.createVAO(t));d.drawVAO=new D(null,null,null,(function(t,e){return t.link(x)})),d.useVAO=!0}}return l?d.useVAO=!0:d.attributes=k(e),d.context=function(t){var e=t.static,r=t.dynamic,n={};return Object.keys(e).forEach((function(t){var r=e[t];n[t]=F((function(t,e){return&quot;number&quot;==typeof r||&quot;boolean&quot;==typeof r?&quot;&quot;+r:t.link(r)}))})),Object.keys(r).forEach((function(t){var e=r[t];n[t]=B(e,(function(t,r){return t.invoke(r,e)}))})),n}(i),d}function A(t,e,r){var n=t.shared.context,i=t.scope();Object.keys(r).forEach((function(a){e.save(n,&quot;.&quot;+a),i(n,&quot;.&quot;,a,&quot;=&quot;,r[a].append(t,e),&quot;;&quot;)})),e(i)}function S(t,e,r,n){var i,a=(s=t.shared).gl,o=s.framebuffer;$&amp;&amp;(i=e.def(s.extensions,&quot;.webgl_draw_buffers&quot;));var s=(l=t.constants).drawBuffer,l=l.backBuffer;t=r?r.append(t,e):e.def(o,&quot;.next&quot;),n||e(&quot;if(&quot;,t,&quot;!==&quot;,o,&quot;.cur){&quot;),e(&quot;if(&quot;,t,&quot;){&quot;,a,&quot;.bindFramebuffer(&quot;,36160,&quot;,&quot;,t,&quot;.framebuffer);&quot;),$&amp;&amp;e(i,&quot;.drawBuffersWEBGL(&quot;,s,&quot;[&quot;,t,&quot;.colorAttachments.length]);&quot;),e(&quot;}else{&quot;,a,&quot;.bindFramebuffer(&quot;,36160,&quot;,null);&quot;),$&amp;&amp;e(i,&quot;.drawBuffersWEBGL(&quot;,l,&quot;);&quot;),e(&quot;}&quot;,o,&quot;.cur=&quot;,t,&quot;;&quot;),n||e(&quot;}&quot;)}function E(t,e,r){var n=t.shared,i=n.gl,o=t.current,s=t.next,l=n.current,c=n.next,u=t.cond(l,&quot;.dirty&quot;);rt.forEach((function(e){var n,f;if(!((e=v(e))in r.state))if(e in s){n=s[e],f=o[e];var h=a(tt[e].length,(function(t){return u.def(n,&quot;[&quot;,t,&quot;]&quot;)}));u(t.cond(h.map((function(t,e){return t+&quot;!==&quot;+f+&quot;[&quot;+e+&quot;]&quot;})).join(&quot;||&quot;)).then(i,&quot;.&quot;,at[e],&quot;(&quot;,h,&quot;);&quot;,h.map((function(t,e){return f+&quot;[&quot;+e+&quot;]=&quot;+t})).join(&quot;;&quot;),&quot;;&quot;))}else n=u.def(c,&quot;.&quot;,e),h=t.cond(n,&quot;!==&quot;,l,&quot;.&quot;,e),u(h),e in it?h(t.cond(n).then(i,&quot;.enable(&quot;,it[e],&quot;);&quot;).else(i,&quot;.disable(&quot;,it[e],&quot;);&quot;),l,&quot;.&quot;,e,&quot;=&quot;,n,&quot;;&quot;):h(i,&quot;.&quot;,at[e],&quot;(&quot;,n,&quot;);&quot;,l,&quot;.&quot;,e,&quot;=&quot;,n,&quot;;&quot;)})),0===Object.keys(r.state).length&amp;&amp;u(l,&quot;.dirty=false;&quot;),e(u)}function C(t,e,r,n){var i=t.shared,a=t.current,o=i.current,s=i.gl;O(Object.keys(r)).forEach((function(i){var l=r[i];if(!n||n(l)){var c=l.append(t,e);if(it[i]){var u=it[i];R(l)?e(s,c?&quot;.enable(&quot;:&quot;.disable(&quot;,u,&quot;);&quot;):e(t.cond(c).then(s,&quot;.enable(&quot;,u,&quot;);&quot;).else(s,&quot;.disable(&quot;,u,&quot;);&quot;)),e(o,&quot;.&quot;,i,&quot;=&quot;,c,&quot;;&quot;)}else if(m(c)){var f=a[i];e(s,&quot;.&quot;,at[i],&quot;(&quot;,c,&quot;);&quot;,c.map((function(t,e){return f+&quot;[&quot;+e+&quot;]=&quot;+t})).join(&quot;;&quot;),&quot;;&quot;)}else e(s,&quot;.&quot;,at[i],&quot;(&quot;,c,&quot;);&quot;,o,&quot;.&quot;,i,&quot;=&quot;,c,&quot;;&quot;)}}))}function L(t,e){K&amp;&amp;(t.instancing=e.def(t.shared.extensions,&quot;.angle_instanced_arrays&quot;))}function I(t,e,r,n,i){function a(){return&quot;undefined&quot;==typeof performance?&quot;Date.now()&quot;:&quot;performance.now()&quot;}function o(t){t(c=e.def(),&quot;=&quot;,a(),&quot;;&quot;),&quot;string&quot;==typeof i?t(h,&quot;.count+=&quot;,i,&quot;;&quot;):t(h,&quot;.count++;&quot;),d&amp;&amp;(n?t(u=e.def(),&quot;=&quot;,g,&quot;.getNumPendingQueries();&quot;):t(g,&quot;.beginQuery(&quot;,h,&quot;);&quot;))}function s(t){t(h,&quot;.cpuTime+=&quot;,a(),&quot;-&quot;,c,&quot;;&quot;),d&amp;&amp;(n?t(g,&quot;.pushScopeStats(&quot;,u,&quot;,&quot;,g,&quot;.getNumPendingQueries(),&quot;,h,&quot;);&quot;):t(g,&quot;.endQuery();&quot;))}function l(t){var r=e.def(p,&quot;.profile&quot;);e(p,&quot;.profile=&quot;,t,&quot;;&quot;),e.exit(p,&quot;.profile=&quot;,r,&quot;;&quot;)}var c,u,f=t.shared,h=t.stats,p=f.current,g=f.timer;if(r=r.profile){if(R(r))return void(r.enable?(o(e),s(e.exit),l(&quot;true&quot;)):l(&quot;false&quot;));l(r=r.append(t,e))}else r=e.def(p,&quot;.profile&quot;);o(f=t.block()),e(&quot;if(&quot;,r,&quot;){&quot;,f,&quot;}&quot;),s(t=t.block()),e.exit(&quot;if(&quot;,r,&quot;){&quot;,t,&quot;}&quot;)}function N(t,e,r,n,i){function a(r,n,i){function a(){e(&quot;if(!&quot;,u,&quot;.buffer){&quot;,l,&quot;.enableVertexAttribArray(&quot;,c,&quot;);}&quot;);var r,a=i.type;r=i.size?e.def(i.size,&quot;||&quot;,n):n,e(&quot;if(&quot;,u,&quot;.type!==&quot;,a,&quot;||&quot;,u,&quot;.size!==&quot;,r,&quot;||&quot;,p.map((function(t){return u+&quot;.&quot;+t+&quot;!==&quot;+i[t]})).join(&quot;||&quot;),&quot;){&quot;,l,&quot;.bindBuffer(&quot;,34962,&quot;,&quot;,f,&quot;.buffer);&quot;,l,&quot;.vertexAttribPointer(&quot;,[c,r,a,i.normalized,i.stride,i.offset],&quot;);&quot;,u,&quot;.type=&quot;,a,&quot;;&quot;,u,&quot;.size=&quot;,r,&quot;;&quot;,p.map((function(t){return u+&quot;.&quot;+t+&quot;=&quot;+i[t]+&quot;;&quot;})).join(&quot;&quot;),&quot;}&quot;),K&amp;&amp;(a=i.divisor,e(&quot;if(&quot;,u,&quot;.divisor!==&quot;,a,&quot;){&quot;,t.instancing,&quot;.vertexAttribDivisorANGLE(&quot;,[c,a],&quot;);&quot;,u,&quot;.divisor=&quot;,a,&quot;;}&quot;))}function s(){e(&quot;if(&quot;,u,&quot;.buffer){&quot;,l,&quot;.disableVertexAttribArray(&quot;,c,&quot;);&quot;,u,&quot;.buffer=null;&quot;,&quot;}if(&quot;,wt.map((function(t,e){return u+&quot;.&quot;+t+&quot;!==&quot;+h[e]})).join(&quot;||&quot;),&quot;){&quot;,l,&quot;.vertexAttrib4f(&quot;,c,&quot;,&quot;,h,&quot;);&quot;,wt.map((function(t,e){return u+&quot;.&quot;+t+&quot;=&quot;+h[e]+&quot;;&quot;})).join(&quot;&quot;),&quot;}&quot;)}var l=o.gl,c=e.def(r,&quot;.location&quot;),u=e.def(o.attributes,&quot;[&quot;,c,&quot;]&quot;);r=i.state;var f=i.buffer,h=[i.x,i.y,i.z,i.w],p=[&quot;buffer&quot;,&quot;normalized&quot;,&quot;offset&quot;,&quot;stride&quot;];1===r?a():2===r?s():(e(&quot;if(&quot;,r,&quot;===&quot;,1,&quot;){&quot;),a(),e(&quot;}else{&quot;),s(),e(&quot;}&quot;))}var o=t.shared;n.forEach((function(n){var o,s=n.name,l=r.attributes[s];if(l){if(!i(l))return;o=l.append(t,e)}else{if(!i(Et))return;var c=t.scopeAttrib(s);o={},Object.keys(new Z).forEach((function(t){o[t]=e.def(c,&quot;.&quot;,t)}))}a(t.link(n),function(t){switch(t){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}(n.info.type),o)}))}function j(t,r,n,i,o){for(var s,l=t.shared,c=l.gl,u=0;u&lt;i.length;++u){var f,h=(g=i[u]).name,p=g.info.type,d=n.uniforms[h],g=t.link(g)+&quot;.location&quot;;if(d){if(!o(d))continue;if(R(d)){if(h=d.value,35678===p||35680===p)r(c,&quot;.uniform1i(&quot;,g,&quot;,&quot;,(p=t.link(h._texture||h.color[0]._texture))+&quot;.bind());&quot;),r.exit(p,&quot;.unbind();&quot;);else if(35674===p||35675===p||35676===p)d=2,35675===p?d=3:35676===p&amp;&amp;(d=4),r(c,&quot;.uniformMatrix&quot;,d,&quot;fv(&quot;,g,&quot;,false,&quot;,h=t.global.def(&quot;new Float32Array([&quot;+Array.prototype.slice.call(h)+&quot;])&quot;),&quot;);&quot;);else{switch(p){case 5126:s=&quot;1f&quot;;break;case 35664:s=&quot;2f&quot;;break;case 35665:s=&quot;3f&quot;;break;case 35666:s=&quot;4f&quot;;break;case 35670:case 5124:s=&quot;1i&quot;;break;case 35671:case 35667:s=&quot;2i&quot;;break;case 35672:case 35668:s=&quot;3i&quot;;break;case 35673:s=&quot;4i&quot;;break;case 35669:s=&quot;4i&quot;}r(c,&quot;.uniform&quot;,s,&quot;(&quot;,g,&quot;,&quot;,m(h)?Array.prototype.slice.call(h):h,&quot;);&quot;)}continue}f=d.append(t,r)}else{if(!o(Et))continue;f=r.def(l.uniforms,&quot;[&quot;,e.id(h),&quot;]&quot;)}switch(35678===p?r(&quot;if(&quot;,f,&quot;&amp;&amp;&quot;,f,'._reglType===&quot;framebuffer&quot;){',f,&quot;=&quot;,f,&quot;.color[0];&quot;,&quot;}&quot;):35680===p&amp;&amp;r(&quot;if(&quot;,f,&quot;&amp;&amp;&quot;,f,'._reglType===&quot;framebufferCube&quot;){',f,&quot;=&quot;,f,&quot;.color[0];&quot;,&quot;}&quot;),h=1,p){case 35678:case 35680:p=r.def(f,&quot;._texture&quot;),r(c,&quot;.uniform1i(&quot;,g,&quot;,&quot;,p,&quot;.bind());&quot;),r.exit(p,&quot;.unbind();&quot;);continue;case 5124:case 35670:s=&quot;1i&quot;;break;case 35667:case 35671:s=&quot;2i&quot;,h=2;break;case 35668:case 35672:s=&quot;3i&quot;,h=3;break;case 35669:case 35673:s=&quot;4i&quot;,h=4;break;case 5126:s=&quot;1f&quot;;break;case 35664:s=&quot;2f&quot;,h=2;break;case 35665:s=&quot;3f&quot;,h=3;break;case 35666:s=&quot;4f&quot;,h=4;break;case 35674:s=&quot;Matrix2fv&quot;;break;case 35675:s=&quot;Matrix3fv&quot;;break;case 35676:s=&quot;Matrix4fv&quot;}if(r(c,&quot;.uniform&quot;,s,&quot;(&quot;,g,&quot;,&quot;),&quot;M&quot;===s.charAt(0)){g=Math.pow(p-35674+2,2);var v=t.global.def(&quot;new Float32Array(&quot;,g,&quot;)&quot;);r(&quot;false,(Array.isArray(&quot;,f,&quot;)||&quot;,f,&quot; instanceof Float32Array)?&quot;,f,&quot;:(&quot;,a(g,(function(t){return v+&quot;[&quot;+t+&quot;]=&quot;+f+&quot;[&quot;+t+&quot;]&quot;})),&quot;,&quot;,v,&quot;)&quot;)}else r(1&lt;h?a(h,(function(t){return f+&quot;[&quot;+t+&quot;]&quot;})):f);r(&quot;);&quot;)}}function U(t,e,r,n){function i(i){var a=h[i];return a?a.contextDep&amp;&amp;n.contextDynamic||a.propDep?a.append(t,r):a.append(t,e):e.def(f,&quot;.&quot;,i)}function a(){function t(){r(l,&quot;.drawElementsInstancedANGLE(&quot;,[d,m,v,g+&quot;&lt;&lt;((&quot;+v+&quot;-5121)&gt;&gt;1)&quot;,s],&quot;);&quot;)}function e(){r(l,&quot;.drawArraysInstancedANGLE(&quot;,[d,g,m,s],&quot;);&quot;)}p?y?t():(r(&quot;if(&quot;,p,&quot;){&quot;),t(),r(&quot;}else{&quot;),e(),r(&quot;}&quot;)):e()}function o(){function t(){r(u+&quot;.drawElements(&quot;+[d,m,v,g+&quot;&lt;&lt;((&quot;+v+&quot;-5121)&gt;&gt;1)&quot;]+&quot;);&quot;)}function e(){r(u+&quot;.drawArrays(&quot;+[d,g,m]+&quot;);&quot;)}p?y?t():(r(&quot;if(&quot;,p,&quot;){&quot;),t(),r(&quot;}else{&quot;),e(),r(&quot;}&quot;)):e()}var s,l,c=t.shared,u=c.gl,f=c.draw,h=n.draw,p=function(){var i=h.elements,a=e;return i?((i.contextDep&amp;&amp;n.contextDynamic||i.propDep)&amp;&amp;(a=r),i=i.append(t,a)):i=a.def(f,&quot;.&quot;,&quot;elements&quot;),i&amp;&amp;a(&quot;if(&quot;+i+&quot;)&quot;+u+&quot;.bindBuffer(34963,&quot;+i+&quot;.buffer.buffer);&quot;),i}(),d=i(&quot;primitive&quot;),g=i(&quot;offset&quot;),m=function(){var i=h.count,a=e;return i?((i.contextDep&amp;&amp;n.contextDynamic||i.propDep)&amp;&amp;(a=r),i=i.append(t,a)):i=a.def(f,&quot;.&quot;,&quot;count&quot;),i}();if(&quot;number&quot;==typeof m){if(0===m)return}else r(&quot;if(&quot;,m,&quot;){&quot;),r.exit(&quot;}&quot;);K&amp;&amp;(s=i(&quot;instances&quot;),l=t.instancing);var v=p+&quot;.type&quot;,y=h.elements&amp;&amp;R(h.elements);K&amp;&amp;(&quot;number&quot;!=typeof s||0&lt;=s)?&quot;string&quot;==typeof s?(r(&quot;if(&quot;,s,&quot;&gt;0){&quot;),a(),r(&quot;}else if(&quot;,s,&quot;&lt;0){&quot;),o(),r(&quot;}&quot;)):a():o()}function V(t,e,r,n,i){return i=(e=b()).proc(&quot;body&quot;,i),K&amp;&amp;(e.instancing=i.def(e.shared.extensions,&quot;.angle_instanced_arrays&quot;)),t(e,i,r,n),e.compile().body}function H(t,e,r,n){L(t,e),r.useVAO?r.drawVAO?e(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,e),&quot;);&quot;):e(t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;):(e(t.shared.vao,&quot;.setVAO(null);&quot;),N(t,e,r,n.attributes,(function(){return!0}))),j(t,e,r,n.uniforms,(function(){return!0})),U(t,e,e,r)}function G(t,e,r,n){function i(){return!0}t.batchId=&quot;a1&quot;,L(t,e),N(t,e,r,n.attributes,i),j(t,e,r,n.uniforms,i),U(t,e,e,r)}function Y(t,e,r,n){function i(t){return t.contextDep&amp;&amp;o||t.propDep}function a(t){return!i(t)}L(t,e);var o=r.contextDep,s=e.def(),l=e.def();t.shared.props=l,t.batchId=s;var c=t.scope(),u=t.scope();e(c.entry,&quot;for(&quot;,s,&quot;=0;&quot;,s,&quot;&lt;&quot;,&quot;a1&quot;,&quot;;++&quot;,s,&quot;){&quot;,l,&quot;=&quot;,&quot;a0&quot;,&quot;[&quot;,s,&quot;];&quot;,u,&quot;}&quot;,c.exit),r.needsContext&amp;&amp;A(t,u,r.context),r.needsFramebuffer&amp;&amp;S(t,u,r.framebuffer),C(t,u,r.state,i),r.profile&amp;&amp;i(r.profile)&amp;&amp;I(t,u,r,!1,!0),n?(r.useVAO?r.drawVAO?i(r.drawVAO)?u(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,u),&quot;);&quot;):c(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,c),&quot;);&quot;):c(t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;):(c(t.shared.vao,&quot;.setVAO(null);&quot;),N(t,c,r,n.attributes,a),N(t,u,r,n.attributes,i)),j(t,c,r,n.uniforms,a),j(t,u,r,n.uniforms,i),U(t,c,u,r)):(e=t.global.def(&quot;{}&quot;),n=r.shader.progVar.append(t,u),l=u.def(n,&quot;.id&quot;),c=u.def(e,&quot;[&quot;,l,&quot;]&quot;),u(t.shared.gl,&quot;.useProgram(&quot;,n,&quot;.program);&quot;,&quot;if(!&quot;,c,&quot;){&quot;,c,&quot;=&quot;,e,&quot;[&quot;,l,&quot;]=&quot;,t.link((function(e){return V(G,t,r,e,2)})),&quot;(&quot;,n,&quot;);}&quot;,c,&quot;.call(this,a0[&quot;,s,&quot;],&quot;,s,&quot;);&quot;))}function W(t,r){function n(e){var n=r.shader[e];n&amp;&amp;i.set(a.shader,&quot;.&quot;+e,n.append(t,i))}var i=t.proc(&quot;scope&quot;,3);t.batchId=&quot;a2&quot;;var a=t.shared,o=a.current;A(t,i,r.context),r.framebuffer&amp;&amp;r.framebuffer.append(t,i),O(Object.keys(r.state)).forEach((function(e){var n=r.state[e].append(t,i);m(n)?n.forEach((function(r,n){i.set(t.next[e],&quot;[&quot;+n+&quot;]&quot;,r)})):i.set(a.next,&quot;.&quot;+e,n)})),I(t,i,r,!0,!0),[&quot;elements&quot;,&quot;offset&quot;,&quot;count&quot;,&quot;instances&quot;,&quot;primitive&quot;].forEach((function(e){var n=r.draw[e];n&amp;&amp;i.set(a.draw,&quot;.&quot;+e,&quot;&quot;+n.append(t,i))})),Object.keys(r.uniforms).forEach((function(n){i.set(a.uniforms,&quot;[&quot;+e.id(n)+&quot;]&quot;,r.uniforms[n].append(t,i))})),Object.keys(r.attributes).forEach((function(e){var n=r.attributes[e].append(t,i),a=t.scopeAttrib(e);Object.keys(new Z).forEach((function(t){i.set(a,&quot;.&quot;+t,n[t])}))})),r.scopeVAO&amp;&amp;i.set(a.vao,&quot;.targetVAO&quot;,r.scopeVAO.append(t,i)),n(&quot;vert&quot;),n(&quot;frag&quot;),0&lt;Object.keys(r.state).length&amp;&amp;(i(o,&quot;.dirty=true;&quot;),i.exit(o,&quot;.dirty=true;&quot;)),i(&quot;a1(&quot;,t.shared.context,&quot;,a0,&quot;,t.batchId,&quot;);&quot;)}function X(t,e,r){var n=e.static[r];if(n&amp;&amp;function(t){if(&quot;object&quot;==typeof t&amp;&amp;!m(t)){for(var e=Object.keys(t),r=0;r&lt;e.length;++r)if(q.isDynamic(t[e[r]]))return!0;return!1}}(n)){var i=t.global,a=Object.keys(n),o=!1,s=!1,l=!1,c=t.global.def(&quot;{}&quot;);a.forEach((function(e){var r=n[e];if(q.isDynamic(r))&quot;function&quot;==typeof r&amp;&amp;(r=n[e]=q.unbox(r)),e=B(r,null),o=o||e.thisDep,l=l||e.propDep,s=s||e.contextDep;else{switch(i(c,&quot;.&quot;,e,&quot;=&quot;),typeof r){case&quot;number&quot;:i(r);break;case&quot;string&quot;:i('&quot;',r,'&quot;');break;case&quot;object&quot;:Array.isArray(r)&amp;&amp;i(&quot;[&quot;,r.join(),&quot;]&quot;);break;default:i(t.link(r))}i(&quot;;&quot;)}})),e.dynamic[r]=new q.DynamicVariable(4,{thisDep:o,contextDep:s,propDep:l,ref:c,append:function(t,e){a.forEach((function(r){var i=n[r];q.isDynamic(i)&amp;&amp;(i=t.invoke(e,i),e(c,&quot;.&quot;,r,&quot;=&quot;,i,&quot;;&quot;))}))}}),delete e.static[r]}}var Z=u.Record,J={add:32774,subtract:32778,&quot;reverse subtract&quot;:32779};r.ext_blend_minmax&amp;&amp;(J.min=32775,J.max=32776);var K=r.angle_instanced_arrays,$=r.webgl_draw_buffers,tt={dirty:!0,profile:g.profile},et={},rt=[],it={},at={};y(&quot;dither&quot;,3024),y(&quot;blend.enable&quot;,3042),x(&quot;blend.color&quot;,&quot;blendColor&quot;,[0,0,0,0]),x(&quot;blend.equation&quot;,&quot;blendEquationSeparate&quot;,[32774,32774]),x(&quot;blend.func&quot;,&quot;blendFuncSeparate&quot;,[1,0,1,0]),y(&quot;depth.enable&quot;,2929,!0),x(&quot;depth.func&quot;,&quot;depthFunc&quot;,513),x(&quot;depth.range&quot;,&quot;depthRange&quot;,[0,1]),x(&quot;depth.mask&quot;,&quot;depthMask&quot;,!0),x(&quot;colorMask&quot;,&quot;colorMask&quot;,[!0,!0,!0,!0]),y(&quot;cull.enable&quot;,2884),x(&quot;cull.face&quot;,&quot;cullFace&quot;,1029),x(&quot;frontFace&quot;,&quot;frontFace&quot;,2305),x(&quot;lineWidth&quot;,&quot;lineWidth&quot;,1),y(&quot;polygonOffset.enable&quot;,32823),x(&quot;polygonOffset.offset&quot;,&quot;polygonOffset&quot;,[0,0]),y(&quot;sample.alpha&quot;,32926),y(&quot;sample.enable&quot;,32928),x(&quot;sample.coverage&quot;,&quot;sampleCoverage&quot;,[1,!1]),y(&quot;stencil.enable&quot;,2960),x(&quot;stencil.mask&quot;,&quot;stencilMask&quot;,-1),x(&quot;stencil.func&quot;,&quot;stencilFunc&quot;,[519,0,-1]),x(&quot;stencil.opFront&quot;,&quot;stencilOpSeparate&quot;,[1028,7680,7680,7680]),x(&quot;stencil.opBack&quot;,&quot;stencilOpSeparate&quot;,[1029,7680,7680,7680]),y(&quot;scissor.enable&quot;,3089),x(&quot;scissor.box&quot;,&quot;scissor&quot;,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),x(&quot;viewport&quot;,&quot;viewport&quot;,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var ot={gl:t,context:p,strings:e,next:et,current:tt,draw:h,elements:o,buffer:i,shader:f,attributes:u.state,vao:u,uniforms:c,framebuffer:l,extensions:r,timer:d,isBufferArgs:z},st={primTypes:nt,compareFuncs:Mt,blendFuncs:kt,blendEquations:J,stencilOps:At,glTypes:Q,orientationType:St};$&amp;&amp;(st.backBuffer=[1029],st.drawBuffer=a(n.maxDrawbuffers,(function(t){return 0===t?[0]:a(t,(function(t){return 36064+t}))})));var lt=0;return{next:et,current:tt,procs:function(){var t=b(),e=t.proc(&quot;poll&quot;),i=t.proc(&quot;refresh&quot;),o=t.block();e(o),i(o);var s,l=t.shared,c=l.gl,u=l.next,f=l.current;o(f,&quot;.dirty=false;&quot;),S(t,e),S(t,i,null,!0),K&amp;&amp;(s=t.link(K)),r.oes_vertex_array_object&amp;&amp;i(t.link(r.oes_vertex_array_object),&quot;.bindVertexArrayOES(null);&quot;);for(var h=0;h&lt;n.maxAttributes;++h){var p=i.def(l.attributes,&quot;[&quot;,h,&quot;]&quot;),d=t.cond(p,&quot;.buffer&quot;);d.then(c,&quot;.enableVertexAttribArray(&quot;,h,&quot;);&quot;,c,&quot;.bindBuffer(&quot;,34962,&quot;,&quot;,p,&quot;.buffer.buffer);&quot;,c,&quot;.vertexAttribPointer(&quot;,h,&quot;,&quot;,p,&quot;.size,&quot;,p,&quot;.type,&quot;,p,&quot;.normalized,&quot;,p,&quot;.stride,&quot;,p,&quot;.offset);&quot;).else(c,&quot;.disableVertexAttribArray(&quot;,h,&quot;);&quot;,c,&quot;.vertexAttrib4f(&quot;,h,&quot;,&quot;,p,&quot;.x,&quot;,p,&quot;.y,&quot;,p,&quot;.z,&quot;,p,&quot;.w);&quot;,p,&quot;.buffer=null;&quot;),i(d),K&amp;&amp;i(s,&quot;.vertexAttribDivisorANGLE(&quot;,h,&quot;,&quot;,p,&quot;.divisor);&quot;)}return i(t.shared.vao,&quot;.currentVAO=null;&quot;,t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;),Object.keys(it).forEach((function(r){var n=it[r],a=o.def(u,&quot;.&quot;,r),s=t.block();s(&quot;if(&quot;,a,&quot;){&quot;,c,&quot;.enable(&quot;,n,&quot;)}else{&quot;,c,&quot;.disable(&quot;,n,&quot;)}&quot;,f,&quot;.&quot;,r,&quot;=&quot;,a,&quot;;&quot;),i(s),e(&quot;if(&quot;,a,&quot;!==&quot;,f,&quot;.&quot;,r,&quot;){&quot;,s,&quot;}&quot;)})),Object.keys(at).forEach((function(r){var n,s,l=at[r],h=tt[r],p=t.block();p(c,&quot;.&quot;,l,&quot;(&quot;),m(h)?(l=h.length,n=t.global.def(u,&quot;.&quot;,r),s=t.global.def(f,&quot;.&quot;,r),p(a(l,(function(t){return n+&quot;[&quot;+t+&quot;]&quot;})),&quot;);&quot;,a(l,(function(t){return s+&quot;[&quot;+t+&quot;]=&quot;+n+&quot;[&quot;+t+&quot;];&quot;})).join(&quot;&quot;)),e(&quot;if(&quot;,a(l,(function(t){return n+&quot;[&quot;+t+&quot;]!==&quot;+s+&quot;[&quot;+t+&quot;]&quot;})).join(&quot;||&quot;),&quot;){&quot;,p,&quot;}&quot;)):(n=o.def(u,&quot;.&quot;,r),s=o.def(f,&quot;.&quot;,r),p(n,&quot;);&quot;,f,&quot;.&quot;,r,&quot;=&quot;,n,&quot;;&quot;),e(&quot;if(&quot;,n,&quot;!==&quot;,s,&quot;){&quot;,p,&quot;}&quot;)),i(p)})),t.compile()}(),compile:function(t,e,r,n,i){var a=b();return a.stats=a.link(i),Object.keys(e.static).forEach((function(t){X(a,e,t)})),Tt.forEach((function(e){X(a,t,e)})),r=M(t,e,r,n),function(t,e){var r=t.proc(&quot;draw&quot;,1);L(t,r),A(t,r,e.context),S(t,r,e.framebuffer),E(t,r,e),C(t,r,e.state),I(t,r,e,!1,!0);var n=e.shader.progVar.append(t,r);if(r(t.shared.gl,&quot;.useProgram(&quot;,n,&quot;.program);&quot;),e.shader.program)H(t,r,e,e.shader.program);else{r(t.shared.vao,&quot;.setVAO(null);&quot;);var i=t.global.def(&quot;{}&quot;),a=r.def(n,&quot;.id&quot;),o=r.def(i,&quot;[&quot;,a,&quot;]&quot;);r(t.cond(o).then(o,&quot;.call(this,a0);&quot;).else(o,&quot;=&quot;,i,&quot;[&quot;,a,&quot;]=&quot;,t.link((function(r){return V(H,t,e,r,1)})),&quot;(&quot;,n,&quot;);&quot;,o,&quot;.call(this,a0);&quot;))}0&lt;Object.keys(e.state).length&amp;&amp;r(t.shared.current,&quot;.dirty=true;&quot;)}(a,r),W(a,r),function(t,e){function r(t){return t.contextDep&amp;&amp;i||t.propDep}var n=t.proc(&quot;batch&quot;,2);t.batchId=&quot;0&quot;,L(t,n);var i=!1,a=!0;Object.keys(e.context).forEach((function(t){i=i||e.context[t].propDep})),i||(A(t,n,e.context),a=!1);var o=!1;if((s=e.framebuffer)?(s.propDep?i=o=!0:s.contextDep&amp;&amp;i&amp;&amp;(o=!0),o||S(t,n,s)):S(t,n,null),e.state.viewport&amp;&amp;e.state.viewport.propDep&amp;&amp;(i=!0),E(t,n,e),C(t,n,e.state,(function(t){return!r(t)})),e.profile&amp;&amp;r(e.profile)||I(t,n,e,!1,&quot;a1&quot;),e.contextDep=i,e.needsContext=a,e.needsFramebuffer=o,(a=e.shader.progVar).contextDep&amp;&amp;i||a.propDep)Y(t,n,e,null);else if(a=a.append(t,n),n(t.shared.gl,&quot;.useProgram(&quot;,a,&quot;.program);&quot;),e.shader.program)Y(t,n,e,e.shader.program);else{n(t.shared.vao,&quot;.setVAO(null);&quot;);var s=t.global.def(&quot;{}&quot;),l=(o=n.def(a,&quot;.id&quot;),n.def(s,&quot;[&quot;,o,&quot;]&quot;));n(t.cond(l).then(l,&quot;.call(this,a0,a1);&quot;).else(l,&quot;=&quot;,s,&quot;[&quot;,o,&quot;]=&quot;,t.link((function(r){return V(Y,t,e,r,2)})),&quot;(&quot;,a,&quot;);&quot;,l,&quot;.call(this,a0,a1);&quot;))}0&lt;Object.keys(e.state).length&amp;&amp;n(t.shared.current,&quot;.dirty=true;&quot;)}(a,r),a.compile()}}}function j(t,e){for(var r=0;r&lt;t.length;++r)if(t[r]===e)return r;return-1}var U=function(t,e){for(var r=Object.keys(e),n=0;n&lt;r.length;++n)t[r[n]]=e[r[n]];return t},V=0,q={DynamicVariable:t,define:function(r,n){return new t(r,e(n+&quot;&quot;))},isDynamic:function(e){return&quot;function&quot;==typeof e&amp;&amp;!e._reglType||e instanceof t},unbox:function(e,r){return&quot;function&quot;==typeof e?new t(0,e):e},accessor:e},H={next:&quot;function&quot;==typeof requestAnimationFrame?function(t){return requestAnimationFrame(t)}:function(t){return setTimeout(t,16)},cancel:&quot;function&quot;==typeof cancelAnimationFrame?function(t){return cancelAnimationFrame(t)}:clearTimeout},G=&quot;undefined&quot;!=typeof performance&amp;&amp;performance.now?function(){return performance.now()}:function(){return+new Date},Y=s();Y.zero=s();var W=function(t,e){var r=1;e.ext_texture_filter_anisotropic&amp;&amp;(r=t.getParameter(34047));var n=1,i=1;e.webgl_draw_buffers&amp;&amp;(n=t.getParameter(34852),i=t.getParameter(36063));var a=!!e.oes_texture_float;if(a){a=t.createTexture(),t.bindTexture(3553,a),t.texImage2D(3553,0,6408,1,1,0,6408,5126,null);var o=t.createFramebuffer();if(t.bindFramebuffer(36160,o),t.framebufferTexture2D(36160,36064,3553,a,0),t.bindTexture(3553,null),36053!==t.checkFramebufferStatus(36160))a=!1;else{t.viewport(0,0,1,1),t.clearColor(1,0,0,1),t.clear(16384);var s=Y.allocType(5126,4);t.readPixels(0,0,1,1,6408,5126,s),t.getError()?a=!1:(t.deleteFramebuffer(o),t.deleteTexture(a),a=1===s[0]),Y.freeType(s)}}return s=!0,&quot;undefined&quot;!=typeof navigator&amp;&amp;(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent))||(s=t.createTexture(),o=Y.allocType(5121,36),t.activeTexture(33984),t.bindTexture(34067,s),t.texImage2D(34069,0,6408,3,3,0,6408,5121,o),Y.freeType(o),t.bindTexture(34067,null),t.deleteTexture(s),s=!t.getError()),{colorBits:[t.getParameter(3410),t.getParameter(3411),t.getParameter(3412),t.getParameter(3413)],depthBits:t.getParameter(3414),stencilBits:t.getParameter(3415),subpixelBits:t.getParameter(3408),extensions:Object.keys(e).filter((function(t){return!!e[t]})),maxAnisotropic:r,maxDrawbuffers:n,maxColorAttachments:i,pointSizeDims:t.getParameter(33901),lineWidthDims:t.getParameter(33902),maxViewportDims:t.getParameter(3386),maxCombinedTextureUnits:t.getParameter(35661),maxCubeMapSize:t.getParameter(34076),maxRenderbufferSize:t.getParameter(34024),maxTextureUnits:t.getParameter(34930),maxTextureSize:t.getParameter(3379),maxAttributes:t.getParameter(34921),maxVertexUniforms:t.getParameter(36347),maxVertexTextureUnits:t.getParameter(35660),maxVaryingVectors:t.getParameter(36348),maxFragmentUniforms:t.getParameter(36349),glsl:t.getParameter(35724),renderer:t.getParameter(7937),vendor:t.getParameter(7936),version:t.getParameter(7938),readFloat:a,npotTextureCube:s}},X=function(t){return t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Float32Array||t instanceof Float64Array||t instanceof Uint8ClampedArray},Z=function(t){return Object.keys(t).map((function(e){return t[e]}))},J={shape:function(t){for(var e=[];t.length;t=t[0])e.push(t.length);return e},flatten:function(t,e,r,n){var i=1;if(e.length)for(var a=0;a&lt;e.length;++a)i*=e[a];else i=0;switch(r=n||Y.allocType(r,i),e.length){case 0:break;case 1:for(n=e[0],e=0;e&lt;n;++e)r[e]=t[e];break;case 2:for(n=e[0],e=e[1],a=i=0;a&lt;n;++a)for(var o=t[a],s=0;s&lt;e;++s)r[i++]=o[s];break;case 3:c(t,e[0],e[1],e[2],r,0);break;default:!function t(e,r,n,i,a){for(var o=1,s=n+1;s&lt;r.length;++s)o*=r[s];var l=r[n];if(4==r.length-n){var u=r[n+1],f=r[n+2];for(r=r[n+3],s=0;s&lt;l;++s)c(e[s],u,f,r,i,a),a+=o}else for(s=0;s&lt;l;++s)t(e[s],r,n+1,i,a),a+=o}(t,e,0,r,0)}return r}},K={&quot;[object Int8Array]&quot;:5120,&quot;[object Int16Array]&quot;:5122,&quot;[object Int32Array]&quot;:5124,&quot;[object Uint8Array]&quot;:5121,&quot;[object Uint8ClampedArray]&quot;:5121,&quot;[object Uint16Array]&quot;:5123,&quot;[object Uint32Array]&quot;:5125,&quot;[object Float32Array]&quot;:5126,&quot;[object Float64Array]&quot;:5121,&quot;[object ArrayBuffer]&quot;:5121},Q={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},$={dynamic:35048,stream:35040,static:35044},tt=J.flatten,et=J.shape,rt=[];rt[5120]=1,rt[5122]=2,rt[5124]=4,rt[5121]=1,rt[5123]=2,rt[5125]=4,rt[5126]=4;var nt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,&quot;line loop&quot;:2,&quot;line strip&quot;:3,&quot;triangle strip&quot;:5,&quot;triangle fan&quot;:6},it=new Float32Array(1),at=new Uint32Array(it.buffer),ot=[9984,9986,9985,9987],st=[0,6409,6410,6407,6408],lt={};lt[6409]=lt[6406]=lt[6402]=1,lt[34041]=lt[6410]=2,lt[6407]=lt[35904]=3,lt[6408]=lt[35906]=4;var ct=v(&quot;HTMLCanvasElement&quot;),ut=v(&quot;OffscreenCanvas&quot;),ft=v(&quot;CanvasRenderingContext2D&quot;),ht=v(&quot;ImageBitmap&quot;),pt=v(&quot;HTMLImageElement&quot;),dt=v(&quot;HTMLVideoElement&quot;),gt=Object.keys(K).concat([ct,ut,ft,ht,pt,dt]),mt=[];mt[5121]=1,mt[5126]=4,mt[36193]=2,mt[5123]=2,mt[5125]=4;var vt=[];vt[32854]=2,vt[32855]=2,vt[36194]=2,vt[34041]=4,vt[33776]=.5,vt[33777]=.5,vt[33778]=1,vt[33779]=1,vt[35986]=.5,vt[35987]=1,vt[34798]=1,vt[35840]=.5,vt[35841]=.25,vt[35842]=.5,vt[35843]=.25,vt[36196]=.5;var yt=[];yt[32854]=2,yt[32855]=2,yt[36194]=2,yt[33189]=2,yt[36168]=1,yt[34041]=4,yt[35907]=4,yt[34836]=16,yt[34842]=8,yt[34843]=6;var xt=function(t,e,r,n,i){function a(t){this.id=c++,this.refCount=1,this.renderbuffer=t,this.format=32854,this.height=this.width=0,i.profile&amp;&amp;(this.stats={size:0})}function o(e){var r=e.renderbuffer;t.bindRenderbuffer(36161,null),t.deleteRenderbuffer(r),e.renderbuffer=null,e.refCount=0,delete u[e.id],n.renderbufferCount--}var s={rgba4:32854,rgb565:36194,&quot;rgb5 a1&quot;:32855,depth:33189,stencil:36168,&quot;depth stencil&quot;:34041};e.ext_srgb&amp;&amp;(s.srgba=35907),e.ext_color_buffer_half_float&amp;&amp;(s.rgba16f=34842,s.rgb16f=34843),e.webgl_color_buffer_float&amp;&amp;(s.rgba32f=34836);var l=[];Object.keys(s).forEach((function(t){l[s[t]]=t}));var c=0,u={};return a.prototype.decRef=function(){0&gt;=--this.refCount&amp;&amp;o(this)},i.profile&amp;&amp;(n.getTotalRenderbufferSize=function(){var t=0;return Object.keys(u).forEach((function(e){t+=u[e].stats.size})),t}),{create:function(e,r){function o(e,r){var n=0,a=0,u=32854;if(&quot;object&quot;==typeof e&amp;&amp;e?(&quot;shape&quot;in e?(n=0|(a=e.shape)[0],a=0|a[1]):(&quot;radius&quot;in e&amp;&amp;(n=a=0|e.radius),&quot;width&quot;in e&amp;&amp;(n=0|e.width),&quot;height&quot;in e&amp;&amp;(a=0|e.height)),&quot;format&quot;in e&amp;&amp;(u=s[e.format])):&quot;number&quot;==typeof e?(n=0|e,a=&quot;number&quot;==typeof r?0|r:n):e||(n=a=1),n!==c.width||a!==c.height||u!==c.format)return o.width=c.width=n,o.height=c.height=a,c.format=u,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,u,n,a),i.profile&amp;&amp;(c.stats.size=yt[c.format]*c.width*c.height),o.format=l[c.format],o}var c=new a(t.createRenderbuffer());return u[c.id]=c,n.renderbufferCount++,o(e,r),o.resize=function(e,r){var n=0|e,a=0|r||n;return n===c.width&amp;&amp;a===c.height||(o.width=c.width=n,o.height=c.height=a,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,c.format,n,a),i.profile&amp;&amp;(c.stats.size=yt[c.format]*c.width*c.height)),o},o._reglType=&quot;renderbuffer&quot;,o._renderbuffer=c,i.profile&amp;&amp;(o.stats=c.stats),o.destroy=function(){c.decRef()},o},clear:function(){Z(u).forEach(o)},restore:function(){Z(u).forEach((function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,e.renderbuffer),t.renderbufferStorage(36161,e.format,e.width,e.height)})),t.bindRenderbuffer(36161,null)}}},bt=[];bt[6408]=4,bt[6407]=3;var _t=[];_t[5121]=1,_t[5126]=4,_t[36193]=2;var wt=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;w&quot;],Tt=&quot;blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset&quot;.split(&quot; &quot;),kt={0:0,1:1,zero:0,one:1,&quot;src color&quot;:768,&quot;one minus src color&quot;:769,&quot;src alpha&quot;:770,&quot;one minus src alpha&quot;:771,&quot;dst color&quot;:774,&quot;one minus dst color&quot;:775,&quot;dst alpha&quot;:772,&quot;one minus dst alpha&quot;:773,&quot;constant color&quot;:32769,&quot;one minus constant color&quot;:32770,&quot;constant alpha&quot;:32771,&quot;one minus constant alpha&quot;:32772,&quot;src alpha saturate&quot;:776},Mt={never:512,less:513,&quot;&lt;&quot;:513,equal:514,&quot;=&quot;:514,&quot;==&quot;:514,&quot;===&quot;:514,lequal:515,&quot;&lt;=&quot;:515,greater:516,&quot;&gt;&quot;:516,notequal:517,&quot;!=&quot;:517,&quot;!==&quot;:517,gequal:518,&quot;&gt;=&quot;:518,always:519},At={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,&quot;increment wrap&quot;:34055,&quot;decrement wrap&quot;:34056,invert:5386},St={cw:2304,ccw:2305},Et=new D(!1,!1,!1,(function(){}));return function(t){function e(){if(0===J.length)w&amp;&amp;w.update(),tt=null;else{tt=H.next(e),f();for(var t=J.length-1;0&lt;=t;--t){var r=J[t];r&amp;&amp;r(I,null,0)}m.flush(),w&amp;&amp;w.update()}}function r(){!tt&amp;&amp;0&lt;J.length&amp;&amp;(tt=H.next(e))}function n(){tt&amp;&amp;(H.cancel(e),tt=null)}function a(t){t.preventDefault(),n(),K.forEach((function(t){t()}))}function o(t){m.getError(),y.restore(),R.restore(),z.restore(),F.restore(),B.restore(),V.restore(),O.restore(),w&amp;&amp;w.restore(),Y.procs.refresh(),r(),Q.forEach((function(t){t()}))}function s(t){function e(t){var e={},r={};return Object.keys(t).forEach((function(n){var i=t[n];q.isDynamic(i)?r[n]=q.unbox(i,n):e[n]=i})),{dynamic:r,static:e}}var r=e(t.context||{}),n=e(t.uniforms||{}),i=e(t.attributes||{}),a=e(function(t){function e(t){if(t in r){var e=r[t];delete r[t],Object.keys(e).forEach((function(n){r[t+&quot;.&quot;+n]=e[n]}))}}var r=U({},t);return delete r.uniforms,delete r.attributes,delete r.context,delete r.vao,&quot;stencil&quot;in r&amp;&amp;r.stencil.op&amp;&amp;(r.stencil.opBack=r.stencil.opFront=r.stencil.op,delete r.stencil.op),e(&quot;blend&quot;),e(&quot;depth&quot;),e(&quot;cull&quot;),e(&quot;stencil&quot;),e(&quot;polygonOffset&quot;),e(&quot;scissor&quot;),e(&quot;sample&quot;),&quot;vao&quot;in t&amp;&amp;(r.vao=t.vao),r}(t));t={gpuTime:0,cpuTime:0,count:0};var o=(r=Y.compile(a,i,n,r,t)).draw,s=r.batch,l=r.scope,c=[];return U((function(t,e){var r;if(&quot;function&quot;==typeof t)return l.call(this,null,t,0);if(&quot;function&quot;==typeof e)if(&quot;number&quot;==typeof t)for(r=0;r&lt;t;++r)l.call(this,null,e,r);else{if(!Array.isArray(t))return l.call(this,t,e,0);for(r=0;r&lt;t.length;++r)l.call(this,t[r],e,r)}else if(&quot;number&quot;==typeof t){if(0&lt;t)return s.call(this,function(t){for(;c.length&lt;t;)c.push(null);return c}(0|t),0|t)}else{if(!Array.isArray(t))return o.call(this,t);if(t.length)return s.call(this,t,t.length)}}),{stats:t})}function l(t,e){var r=0;Y.procs.poll();var n=e.color;n&amp;&amp;(m.clearColor(+n[0]||0,+n[1]||0,+n[2]||0,+n[3]||0),r|=16384),&quot;depth&quot;in e&amp;&amp;(m.clearDepth(+e.depth),r|=256),&quot;stencil&quot;in e&amp;&amp;(m.clearStencil(0|e.stencil),r|=1024),m.clear(r)}function c(t){return J.push(t),r(),{cancel:function(){var e=j(J,t);J[e]=function t(){var e=j(J,t);J[e]=J[J.length-1],--J.length,0&gt;=J.length&amp;&amp;n()}}}}function u(){var t=X.viewport,e=X.scissor_box;t[0]=t[1]=e[0]=e[1]=0,I.viewportWidth=I.framebufferWidth=I.drawingBufferWidth=t[2]=e[2]=m.drawingBufferWidth,I.viewportHeight=I.framebufferHeight=I.drawingBufferHeight=t[3]=e[3]=m.drawingBufferHeight}function f(){I.tick+=1,I.time=g(),u(),Y.procs.poll()}function h(){u(),Y.procs.refresh(),w&amp;&amp;w.update()}function g(){return(G()-T)/1e3}if(!(t=i(t)))return null;var m=t.gl,v=m.getContextAttributes();m.isContextLost();var y=function(t,e){function r(e){var r;e=e.toLowerCase();try{r=n[e]=t.getExtension(e)}catch(t){}return!!r}for(var n={},i=0;i&lt;e.extensions.length;++i){var a=e.extensions[i];if(!r(a))return e.onDestroy(),e.onDone('&quot;'+a+'&quot; extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return e.optionalExtensions.forEach(r),{extensions:n,restore:function(){Object.keys(n).forEach((function(t){if(n[t]&amp;&amp;!r(t))throw Error(&quot;(regl): error restoring extension &quot;+t)}))}}}(m,t);if(!y)return null;var x=function(){var t={&quot;&quot;:0},e=[&quot;&quot;];return{id:function(r){var n=t[r];return n||(n=t[r]=e.length,e.push(r),n)},str:function(t){return e[t]}}}(),b={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},_=y.extensions,w=function(t,e){function r(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function n(t,e,n){var i=o.pop()||new r;i.startQueryIndex=t,i.endQueryIndex=e,i.sum=0,i.stats=n,s.push(i)}if(!e.ext_disjoint_timer_query)return null;var i=[],a=[],o=[],s=[],l=[],c=[];return{beginQuery:function(t){var r=i.pop()||e.ext_disjoint_timer_query.createQueryEXT();e.ext_disjoint_timer_query.beginQueryEXT(35007,r),a.push(r),n(a.length-1,a.length,t)},endQuery:function(){e.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:n,update:function(){var t,r;if(0!==(t=a.length)){c.length=Math.max(c.length,t+1),l.length=Math.max(l.length,t+1),l[0]=0;var n=c[0]=0;for(r=t=0;r&lt;a.length;++r){var u=a[r];e.ext_disjoint_timer_query.getQueryObjectEXT(u,34919)?(n+=e.ext_disjoint_timer_query.getQueryObjectEXT(u,34918),i.push(u)):a[t++]=u,l[r+1]=n,c[r+1]=t}for(a.length=t,r=t=0;r&lt;s.length;++r){var f=(n=s[r]).startQueryIndex;u=n.endQueryIndex;n.sum+=l[u]-l[f],f=c[f],(u=c[u])===f?(n.stats.gpuTime+=n.sum/1e6,o.push(n)):(n.startQueryIndex=f,n.endQueryIndex=u,s[t++]=n)}s.length=t}},getNumPendingQueries:function(){return a.length},clear:function(){i.push.apply(i,a);for(var t=0;t&lt;i.length;t++)e.ext_disjoint_timer_query.deleteQueryEXT(i[t]);a.length=0,i.length=0},restore:function(){a.length=0,i.length=0}}}(0,_),T=G(),A=m.drawingBufferWidth,L=m.drawingBufferHeight,I={tick:0,time:0,viewportWidth:A,viewportHeight:L,framebufferWidth:A,framebufferHeight:L,drawingBufferWidth:A,drawingBufferHeight:L,pixelRatio:t.pixelRatio},P=W(m,_),z=p(m,b,t,(function(t){return O.destroyBuffer(t)})),O=S(m,_,P,b,z),D=d(m,_,z,b),R=E(m,x,b,t),F=k(m,_,P,(function(){Y.procs.poll()}),I,b,t),B=xt(m,_,0,b,t),V=M(m,_,P,F,B,b),Y=N(m,x,_,P,z,D,0,V,{},O,R,{elements:null,primitive:4,count:-1,offset:0,instances:-1},I,w,t),X=(x=C(m,V,Y.procs.poll,I),Y.next),Z=m.canvas,J=[],K=[],Q=[],$=[t.onDestroy],tt=null;Z&amp;&amp;(Z.addEventListener(&quot;webglcontextlost&quot;,a,!1),Z.addEventListener(&quot;webglcontextrestored&quot;,o,!1));var et=V.setFBO=s({framebuffer:q.define.call(null,1,&quot;framebuffer&quot;)});return h(),v=U(s,{clear:function(t){if(&quot;framebuffer&quot;in t)if(t.framebuffer&amp;&amp;&quot;framebufferCube&quot;===t.framebuffer_reglType)for(var e=0;6&gt;e;++e)et(U({framebuffer:t.framebuffer.faces[e]},t),l);else et(t,l);else l(0,t)},prop:q.define.bind(null,1),context:q.define.bind(null,2),this:q.define.bind(null,3),draw:s({}),buffer:function(t){return z.create(t,34962,!1,!1)},elements:function(t){return D.create(t,!1)},texture:F.create2D,cube:F.createCube,renderbuffer:B.create,framebuffer:V.create,framebufferCube:V.createCube,vao:O.createVAO,attributes:v,frame:c,on:function(t,e){var r;switch(t){case&quot;frame&quot;:return c(e);case&quot;lost&quot;:r=K;break;case&quot;restore&quot;:r=Q;break;case&quot;destroy&quot;:r=$}return r.push(e),{cancel:function(){for(var t=0;t&lt;r.length;++t)if(r[t]===e){r[t]=r[r.length-1],r.pop();break}}}},limits:P,hasExtension:function(t){return 0&lt;=P.extensions.indexOf(t.toLowerCase())},read:x,destroy:function(){J.length=0,n(),Z&amp;&amp;(Z.removeEventListener(&quot;webglcontextlost&quot;,a),Z.removeEventListener(&quot;webglcontextrestored&quot;,o)),R.clear(),V.clear(),B.clear(),F.clear(),D.clear(),z.clear(),O.clear(),w&amp;&amp;w.clear(),$.forEach((function(t){t()}))},_gl:m,_refresh:h,poll:function(){f(),w&amp;&amp;w.update()},now:g,stats:b}),t.onDone(null,v),v}}))},{}],541:[function(t,e,r){
/*!
 * repeat-string &lt;https://github.com/jonschlinkert/repeat-string&gt;
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */
&quot;use strict&quot;;var n,i=&quot;&quot;;e.exports=function(t,e){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;expected a string&quot;);if(1===e)return t;if(2===e)return t+t;var r=t.length*e;if(n!==t||&quot;undefined&quot;==typeof n)n=t,i=&quot;&quot;;else if(i.length&gt;=r)return i.substr(0,r);for(;r&gt;i.length&amp;&amp;e&gt;1;)1&amp;e&amp;&amp;(i+=t),e&gt;&gt;=1,t+=t;return i=(i+=t).substr(0,r)}},{}],542:[function(t,e,r){(function(t){(function(){e.exports=t.performance&amp;&amp;t.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{}],543:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=t[t.length-1],n=e,i=e-2;i&gt;=0;--i){var a=r,o=t[i];(l=o-((r=a+o)-a))&amp;&amp;(t[--n]=r,r=l)}var s=0;for(i=n;i&lt;e;++i){var l;a=t[i];(l=(o=r)-((r=a+o)-a))&amp;&amp;(t[s++]=l)}return t[s++]=r,t.length=s,t}},{}],544:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-scale&quot;),o=t(&quot;robust-compress&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m[&quot;,r,&quot;][&quot;,n,&quot;]&quot;].join(&quot;&quot;)}return e}function c(t){if(2===t.length)return[&quot;sum(prod(&quot;,t[0][0],&quot;,&quot;,t[1][1],&quot;),prod(-&quot;,t[0][1],&quot;,&quot;,t[1][0],&quot;))&quot;].join(&quot;&quot;);for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,c(s(t,r)),&quot;,&quot;,(n=r,1&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return function t(e){if(1===e.length)return e[0];if(2===e.length)return[&quot;sum(&quot;,e[0],&quot;,&quot;,e[1],&quot;)&quot;].join(&quot;&quot;);var r=e.length&gt;&gt;1;return[&quot;sum(&quot;,t(e.slice(0,r)),&quot;,&quot;,t(e.slice(r)),&quot;)&quot;].join(&quot;&quot;)}(e);var n}function u(t){return new Function(&quot;sum&quot;,&quot;scale&quot;,&quot;prod&quot;,&quot;compress&quot;,[&quot;function robustDeterminant&quot;,t,&quot;(m){return compress(&quot;,c(l(t)),&quot;)};return robustDeterminant&quot;,t].join(&quot;&quot;))(i,a,n,o)}var f=[function(){return[0]},function(t){return[t[0][0]]}];!function(){for(;f.length&lt;6;)f.push(u(f.length));for(var t=[],r=[&quot;function robustDeterminant(m){switch(m.length){&quot;],n=0;n&lt;6;++n)t.push(&quot;det&quot;+n),r.push(&quot;case &quot;,n,&quot;:return det&quot;,n,&quot;(m);&quot;);r.push(&quot;}var det=CACHE[m.length];if(!det)det=CACHE[m.length]=gen(m.length);return det(m);}return robustDeterminant&quot;),t.push(&quot;CACHE&quot;,&quot;gen&quot;,r.join(&quot;&quot;));var i=Function.apply(void 0,t);for(e.exports=i.apply(void 0,f.concat([f,u])),n=0;n&lt;f.length;++n)e.exports[n]=f[n]}()},{&quot;robust-compress&quot;:543,&quot;robust-scale&quot;:550,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],545:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;);e.exports=function(t,e){for(var r=n(t[0],e[0]),a=1;a&lt;t.length;++a)r=i(r,n(t[a],e[a]));return r}},{&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],546:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-subtract&quot;),o=t(&quot;robust-scale&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){if(1===t.length)return t[0];if(2===t.length)return[&quot;sum(&quot;,t[0],&quot;,&quot;,t[1],&quot;)&quot;].join(&quot;&quot;);var e=t.length&gt;&gt;1;return[&quot;sum(&quot;,l(t.slice(0,e)),&quot;,&quot;,l(t.slice(e)),&quot;)&quot;].join(&quot;&quot;)}function c(t,e){if(&quot;m&quot;===t.charAt(0)){if(&quot;w&quot;===e.charAt(0)){var r=t.split(&quot;[&quot;);return[&quot;w&quot;,e.substr(1),&quot;m&quot;,r[0].substr(1)].join(&quot;&quot;)}return[&quot;prod(&quot;,t,&quot;,&quot;,e,&quot;)&quot;].join(&quot;&quot;)}return c(e,t)}function u(t){if(2===t.length)return[[&quot;diff(&quot;,c(t[0][0],t[1][1]),&quot;,&quot;,c(t[1][0],t[0][1]),&quot;)&quot;].join(&quot;&quot;)];for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,l(u(s(t,r))),&quot;,&quot;,(n=r,!0&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return e;var n}function f(t,e){for(var r=[],n=0;n&lt;e-2;++n)r.push([&quot;prod(m&quot;,t,&quot;[&quot;,n,&quot;],m&quot;,t,&quot;[&quot;,n,&quot;])&quot;].join(&quot;&quot;));return l(r)}function h(t){for(var e=[],r=[],c=function(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m&quot;,n,&quot;[&quot;,t-r-2,&quot;]&quot;].join(&quot;&quot;)}return e}(t),h=0;h&lt;t;++h)c[0][h]=&quot;1&quot;,c[t-1][h]=&quot;w&quot;+h;for(h=0;h&lt;t;++h)0==(1&amp;h)?e.push.apply(e,u(s(c,h))):r.push.apply(r,u(s(c,h)));var p=l(e),d=l(r),g=&quot;exactInSphere&quot;+t,m=[];for(h=0;h&lt;t;++h)m.push(&quot;m&quot;+h);var v=[&quot;function &quot;,g,&quot;(&quot;,m.join(),&quot;){&quot;];for(h=0;h&lt;t;++h){v.push(&quot;var w&quot;,h,&quot;=&quot;,f(h,t),&quot;;&quot;);for(var y=0;y&lt;t;++y)y!==h&amp;&amp;v.push(&quot;var w&quot;,h,&quot;m&quot;,y,&quot;=scale(w&quot;,h,&quot;,m&quot;,y,&quot;[0]);&quot;)}return v.push(&quot;var p=&quot;,p,&quot;,n=&quot;,d,&quot;,d=diff(p,n);return d[d.length-1];}return &quot;,g),new Function(&quot;sum&quot;,&quot;diff&quot;,&quot;prod&quot;,&quot;scale&quot;,v.join(&quot;&quot;))(i,a,n,o)}var p=[function(){return 0},function(){return 0},function(){return 0}];function d(t){var e=p[t.length];return e||(e=p[t.length]=h(t.length)),e.apply(void 0,t)}!function(){for(;p.length&lt;=6;)p.push(h(p.length));for(var t=[],r=[&quot;slow&quot;],n=0;n&lt;=6;++n)t.push(&quot;a&quot;+n),r.push(&quot;o&quot;+n);var i=[&quot;function testInSphere(&quot;,t.join(),&quot;){switch(arguments.length){case 0:case 1:return 0;&quot;];for(n=2;n&lt;=6;++n)i.push(&quot;case &quot;,n,&quot;:return o&quot;,n,&quot;(&quot;,t.slice(0,n).join(),&quot;);&quot;);i.push(&quot;}var s=new Array(arguments.length);for(var i=0;i&lt;arguments.length;++i){s[i]=arguments[i]};return slow(s);}return testInSphere&quot;),r.push(i.join(&quot;&quot;));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[d].concat(p)),n=0;n&lt;=6;++n)e.exports[n]=p[n]}()},{&quot;robust-scale&quot;:550,&quot;robust-subtract&quot;:552,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],547:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-determinant&quot;);function i(t){for(var e=&quot;robustLinearSolve&quot;+t+&quot;d&quot;,r=[&quot;function &quot;,e,&quot;(A,b){return [&quot;],i=0;i&lt;t;++i){r.push(&quot;det([&quot;);for(var a=0;a&lt;t;++a){a&gt;0&amp;&amp;r.push(&quot;,&quot;),r.push(&quot;[&quot;);for(var o=0;o&lt;t;++o)o&gt;0&amp;&amp;r.push(&quot;,&quot;),o===i?r.push(&quot;+b[&quot;,a,&quot;]&quot;):r.push(&quot;+A[&quot;,a,&quot;][&quot;,o,&quot;]&quot;);r.push(&quot;]&quot;)}r.push(&quot;]),&quot;)}r.push(&quot;det(A)]}return &quot;,e);var s=new Function(&quot;det&quot;,r.join(&quot;&quot;));return s(t&lt;6?n[t]:n)}var a=[function(){return[0]},function(t,e){return[[e[0]],[t[0][0]]]}];!function(){for(;a.length&lt;6;)a.push(i(a.length));for(var t=[],r=[&quot;function dispatchLinearSolve(A,b){switch(A.length){&quot;],n=0;n&lt;6;++n)t.push(&quot;s&quot;+n),r.push(&quot;case &quot;,n,&quot;:return s&quot;,n,&quot;(A,b);&quot;);r.push(&quot;}var s=CACHE[A.length];if(!s)s=CACHE[A.length]=g(A.length);return s(A,b)}return dispatchLinearSolve&quot;),t.push(&quot;CACHE&quot;,&quot;g&quot;,r.join(&quot;&quot;));var o=Function.apply(void 0,t);for(e.exports=o.apply(void 0,a.concat([a,i])),n=0;n&lt;6;++n)e.exports[n]=a[n]}()},{&quot;robust-determinant&quot;:544}],548:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-scale&quot;),o=t(&quot;robust-subtract&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){if(1===t.length)return t[0];if(2===t.length)return[&quot;sum(&quot;,t[0],&quot;,&quot;,t[1],&quot;)&quot;].join(&quot;&quot;);var e=t.length&gt;&gt;1;return[&quot;sum(&quot;,l(t.slice(0,e)),&quot;,&quot;,l(t.slice(e)),&quot;)&quot;].join(&quot;&quot;)}function c(t){if(2===t.length)return[[&quot;sum(prod(&quot;,t[0][0],&quot;,&quot;,t[1][1],&quot;),prod(-&quot;,t[0][1],&quot;,&quot;,t[1][0],&quot;))&quot;].join(&quot;&quot;)];for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,l(c(s(t,r))),&quot;,&quot;,(n=r,1&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return e;var n}function u(t){for(var e=[],r=[],u=function(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m&quot;,n,&quot;[&quot;,t-r-1,&quot;]&quot;].join(&quot;&quot;)}return e}(t),f=[],h=0;h&lt;t;++h)0==(1&amp;h)?e.push.apply(e,c(s(u,h))):r.push.apply(r,c(s(u,h))),f.push(&quot;m&quot;+h);var p=l(e),d=l(r),g=&quot;orientation&quot;+t+&quot;Exact&quot;,m=[&quot;function &quot;,g,&quot;(&quot;,f.join(),&quot;){var p=&quot;,p,&quot;,n=&quot;,d,&quot;,d=sub(p,n);return d[d.length-1];};return &quot;,g].join(&quot;&quot;);return new Function(&quot;sum&quot;,&quot;prod&quot;,&quot;scale&quot;,&quot;sub&quot;,m)(i,n,a,o)}var f=u(3),h=u(4),p=[function(){return 0},function(){return 0},function(t,e){return e[0]-t[0]},function(t,e,r){var n,i=(t[1]-r[1])*(e[0]-r[0]),a=(t[0]-r[0])*(e[1]-r[1]),o=i-a;if(i&gt;0){if(a&lt;=0)return o;n=i+a}else{if(!(i&lt;0))return o;if(a&gt;=0)return o;n=-(i+a)}var s=33306690738754716e-32*n;return o&gt;=s||o&lt;=-s?o:f(t,e,r)},function(t,e,r,n){var i=t[0]-n[0],a=e[0]-n[0],o=r[0]-n[0],s=t[1]-n[1],l=e[1]-n[1],c=r[1]-n[1],u=t[2]-n[2],f=e[2]-n[2],p=r[2]-n[2],d=a*c,g=o*l,m=o*s,v=i*c,y=i*l,x=a*s,b=u*(d-g)+f*(m-v)+p*(y-x),_=7771561172376103e-31*((Math.abs(d)+Math.abs(g))*Math.abs(u)+(Math.abs(m)+Math.abs(v))*Math.abs(f)+(Math.abs(y)+Math.abs(x))*Math.abs(p));return b&gt;_||-b&gt;_?b:h(t,e,r,n)}];function d(t){var e=p[t.length];return e||(e=p[t.length]=u(t.length)),e.apply(void 0,t)}!function(){for(;p.length&lt;=5;)p.push(u(p.length));for(var t=[],r=[&quot;slow&quot;],n=0;n&lt;=5;++n)t.push(&quot;a&quot;+n),r.push(&quot;o&quot;+n);var i=[&quot;function getOrientation(&quot;,t.join(),&quot;){switch(arguments.length){case 0:case 1:return 0;&quot;];for(n=2;n&lt;=5;++n)i.push(&quot;case &quot;,n,&quot;:return o&quot;,n,&quot;(&quot;,t.slice(0,n).join(),&quot;);&quot;);i.push(&quot;}var s=new Array(arguments.length);for(var i=0;i&lt;arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation&quot;),r.push(i.join(&quot;&quot;));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[d].concat(p)),n=0;n&lt;=5;++n)e.exports[n]=p[n]}()},{&quot;robust-scale&quot;:550,&quot;robust-subtract&quot;:552,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],549:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-sum&quot;),i=t(&quot;robust-scale&quot;);e.exports=function(t,e){if(1===t.length)return i(e,t[0]);if(1===e.length)return i(t,e[0]);if(0===t.length||0===e.length)return[0];var r=[0];if(t.length&lt;e.length)for(var a=0;a&lt;t.length;++a)r=n(r,i(e,t[a]));else for(a=0;a&lt;e.length;++a)r=n(r,i(t,e[a]));return r}},{&quot;robust-scale&quot;:550,&quot;robust-sum&quot;:553}],550:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;two-sum&quot;);e.exports=function(t,e){var r=t.length;if(1===r){var a=n(t[0],e);return a[0]?a:[a[1]]}var o=new Array(2*r),s=[.1,.1],l=[.1,.1],c=0;n(t[0],e,s),s[0]&amp;&amp;(o[c++]=s[0]);for(var u=1;u&lt;r;++u){n(t[u],e,l);var f=s[1];i(f,l[0],s),s[0]&amp;&amp;(o[c++]=s[0]);var h=l[1],p=s[1],d=h+p,g=p-(d-h);s[1]=d,g&amp;&amp;(o[c++]=g)}s[1]&amp;&amp;(o[c++]=s[1]);0===c&amp;&amp;(o[c++]=0);return o.length=c,o}},{&quot;two-product&quot;:582,&quot;two-sum&quot;:583}],551:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,i){var a=n(t,r,i),o=n(e,r,i);if(a&gt;0&amp;&amp;o&gt;0||a&lt;0&amp;&amp;o&lt;0)return!1;var s=n(r,t,e),l=n(i,t,e);if(s&gt;0&amp;&amp;l&gt;0||s&lt;0&amp;&amp;l&lt;0)return!1;if(0===a&amp;&amp;0===o&amp;&amp;0===s&amp;&amp;0===l)return function(t,e,r,n){for(var i=0;i&lt;2;++i){var a=t[i],o=e[i],s=Math.min(a,o),l=Math.max(a,o),c=r[i],u=n[i],f=Math.min(c,u);if(Math.max(c,u)&lt;s||l&lt;f)return!1}return!0}(t,e,r,i);return!0};var n=t(&quot;robust-orientation&quot;)[3]},{&quot;robust-orientation&quot;:548}],552:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&amp;&amp;1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],-e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=-e[c],d=u(p);h&lt;d?(a=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(a=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p)));l&lt;r&amp;&amp;h&lt;d||c&gt;=n?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p)));var g,m,v=i+a,y=v-i,x=a-y,b=x,_=v;for(;l&lt;r&amp;&amp;c&lt;n;)h&lt;d?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p))),(x=(a=b)-(y=(v=i+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g;for(;l&lt;r;)(x=(a=b)-(y=(v=(i=f)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(l+=1)&lt;r&amp;&amp;(f=t[l]);for(;c&lt;n;)(x=(a=b)-(y=(v=(i=p)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(c+=1)&lt;n&amp;&amp;(p=-e[c]);b&amp;&amp;(o[s++]=b);_&amp;&amp;(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],553:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&amp;&amp;1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=e[c],d=u(p);h&lt;d?(a=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(a=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p)));l&lt;r&amp;&amp;h&lt;d||c&gt;=n?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p)));var g,m,v=i+a,y=v-i,x=a-y,b=x,_=v;for(;l&lt;r&amp;&amp;c&lt;n;)h&lt;d?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p))),(x=(a=b)-(y=(v=i+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g;for(;l&lt;r;)(x=(a=b)-(y=(v=(i=f)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(l+=1)&lt;r&amp;&amp;(f=t[l]);for(;c&lt;n;)(x=(a=b)-(y=(v=(i=p)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(c+=1)&lt;n&amp;&amp;(p=e[c]);b&amp;&amp;(o[s++]=b);_&amp;&amp;(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],554:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t&lt;0?-1:t&gt;0?1:0}},{}],555:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return i(n(t))};var n=t(&quot;boundary-cells&quot;),i=t(&quot;reduce-simplicial-complex&quot;)},{&quot;boundary-cells&quot;:100,&quot;reduce-simplicial-complex&quot;:533}],556:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,s){r=r||0,&quot;undefined&quot;==typeof s&amp;&amp;(s=function(t){for(var e=t.length,r=0,n=0;n&lt;e;++n)r=0|Math.max(r,t[n].length);return r-1}(t));if(0===t.length||s&lt;1)return{cells:[],vertexIds:[],vertexWeights:[]};var l=function(t,e){for(var r=t.length,n=i.mallocUint8(r),a=0;a&lt;r;++a)n[a]=t[a]&lt;e|0;return n}(e,+r),c=function(t,e){for(var r=t.length,o=e*(e+1)/2*r|0,s=i.mallocUint32(2*o),l=0,c=0;c&lt;r;++c)for(var u=t[c],f=(e=u.length,0);f&lt;e;++f)for(var h=0;h&lt;f;++h){var p=u[h],d=u[f];s[l++]=0|Math.min(p,d),s[l++]=0|Math.max(p,d)}a(n(s,[l/2|0,2]));var g=2;for(c=2;c&lt;l;c+=2)s[c-2]===s[c]&amp;&amp;s[c-1]===s[c+1]||(s[g++]=s[c],s[g++]=s[c+1]);return n(s,[g/2|0,2])}(t,s),u=function(t,e,r,a){for(var o=t.data,s=t.shape[0],l=i.mallocDouble(s),c=0,u=0;u&lt;s;++u){var f=o[2*u],h=o[2*u+1];if(r[f]!==r[h]){var p=e[f],d=e[h];o[2*c]=f,o[2*c+1]=h,l[c++]=(d-a)/(d-p)}}return t.shape[0]=c,n(l,[c])}(c,e,l,+r),f=function(t,e){var r=i.mallocInt32(2*e),n=t.shape[0],a=t.data;r[0]=0;for(var o=0,s=0;s&lt;n;++s){var l=a[2*s];if(l!==o){for(r[2*o+1]=s;++o&lt;l;)r[2*o]=s,r[2*o+1]=s;r[2*o]=s}}r[2*o+1]=n;for(;++o&lt;e;)r[2*o]=r[2*o+1]=n;return r}(c,0|e.length),h=o(s)(t,c.data,f,l),p=function(t){for(var e=0|t.shape[0],r=t.data,n=new Array(e),i=0;i&lt;e;++i)n[i]=[r[2*i],r[2*i+1]];return n}(c),d=[].slice.call(u.data,0,u.shape[0]);return i.free(l),i.free(c.data),i.free(u.data),i.free(f),{cells:h,vertexIds:p,vertexWeights:d}};var n=t(&quot;ndarray&quot;),i=t(&quot;typedarray-pool&quot;),a=t(&quot;ndarray-sort&quot;),o=t(&quot;./lib/codegen&quot;)},{&quot;./lib/codegen&quot;:557,ndarray:495,&quot;ndarray-sort&quot;:494,&quot;typedarray-pool&quot;:595}],557:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=a[t];e||(e=a[t]=function(t){var e=0,r=new Array(t+1);r[0]=[[]];for(var a=1;a&lt;=t;++a)for(var o=r[a]=i(a),s=0;s&lt;o.length;++s)e=Math.max(e,o[a].length);var l=[&quot;function B(C,E,i,j){&quot;,&quot;var a=Math.min(i,j)|0,b=Math.max(i,j)|0,l=C[2*a],h=C[2*a+1];&quot;,&quot;while(l&lt;h){&quot;,&quot;var m=(l+h)&gt;&gt;1,v=E[2*m+1];&quot;,&quot;if(v===b){return m}&quot;,&quot;if(b&lt;v){h=m}else{l=m+1}&quot;,&quot;}&quot;,&quot;return l;&quot;,&quot;};&quot;,&quot;function getContour&quot;,t,&quot;d(F,E,C,S){&quot;,&quot;var n=F.length,R=[];&quot;,&quot;for(var i=0;i&lt;n;++i){var c=F[i],l=c.length;&quot;];function c(t){if(!(t.length&lt;=0)){l.push(&quot;R.push(&quot;);for(var e=0;e&lt;t.length;++e){var r=t[e];e&gt;0&amp;&amp;l.push(&quot;,&quot;),l.push(&quot;[&quot;);for(var n=0;n&lt;r.length;++n){var i=r[n];n&gt;0&amp;&amp;l.push(&quot;,&quot;),l.push(&quot;B(C,E,c[&quot;,i[0],&quot;],c[&quot;,i[1],&quot;])&quot;)}l.push(&quot;]&quot;)}l.push(&quot;);&quot;)}}for(a=t+1;a&gt;1;--a){a&lt;t+1&amp;&amp;l.push(&quot;else &quot;),l.push(&quot;if(l===&quot;,a,&quot;){&quot;);var u=[];for(s=0;s&lt;a;++s)u.push(&quot;(S[c[&quot;+s+&quot;]]&lt;&lt;&quot;+s+&quot;)&quot;);l.push(&quot;var M=&quot;,u.join(&quot;+&quot;),&quot;;if(M===0||M===&quot;,(1&lt;&lt;a)-1,&quot;){continue}switch(M){&quot;);for(o=r[a-1],s=0;s&lt;o.length;++s)l.push(&quot;case &quot;,s,&quot;:&quot;),c(o[s]),l.push(&quot;break;&quot;);l.push(&quot;}}&quot;)}return l.push(&quot;}return R;};return getContour&quot;,t,&quot;d&quot;),new Function(&quot;pool&quot;,l.join(&quot;&quot;))(n)}(t));return e};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;marching-simplex-table&quot;),a={}},{&quot;marching-simplex-table&quot;:474,&quot;typedarray-pool&quot;:595}],558:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bit-twiddle&quot;),i=t(&quot;union-find&quot;);function a(t,e){var r=t.length,n=t.length-e.length,i=Math.min;if(n)return n;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return(s=t[0]+t[1]-e[0]-e[1])||i(t[0],t[1])-i(e[0],e[1]);case 3:var a=t[0]+t[1],o=e[0]+e[1];if(s=a+t[2]-(o+e[2]))return s;var s,l=i(t[0],t[1]),c=i(e[0],e[1]);return(s=i(l,t[2])-i(c,e[2]))||i(l+t[2],a)-i(c+e[2],o);default:var u=t.slice(0);u.sort();var f=e.slice(0);f.sort();for(var h=0;h&lt;r;++h)if(n=u[h]-f[h])return n;return 0}}function o(t,e){return a(t[0],e[0])}function s(t,e){if(e){for(var r=t.length,n=new Array(r),i=0;i&lt;r;++i)n[i]=[t[i],e[i]];n.sort(o);for(i=0;i&lt;r;++i)t[i]=n[i][0],e[i]=n[i][1];return t}return t.sort(a),t}function l(t){if(0===t.length)return[];for(var e=1,r=t.length,n=1;n&lt;r;++n){var i=t[n];if(a(i,t[n-1])){if(n===e){e++;continue}t[e++]=i}}return t.length=e,t}function c(t,e){for(var r=0,n=t.length-1,i=-1;r&lt;=n;){var o=r+n&gt;&gt;1,s=a(t[o],e);s&lt;=0?(0===s&amp;&amp;(i=o),r=o+1):s&gt;0&amp;&amp;(n=o-1)}return i}function u(t,e){for(var r=new Array(t.length),i=0,o=r.length;i&lt;o;++i)r[i]=[];for(var s=[],l=(i=0,e.length);i&lt;l;++i)for(var u=e[i],f=u.length,h=1,p=1&lt;&lt;f;h&lt;p;++h){s.length=n.popCount(h);for(var d=0,g=0;g&lt;f;++g)h&amp;1&lt;&lt;g&amp;&amp;(s[d++]=u[g]);var m=c(t,s);if(!(m&lt;0))for(;r[m++].push(i),!(m&gt;=t.length||0!==a(t[m],s)););}return r}function f(t,e){if(e&lt;0)return[];for(var r=[],i=(1&lt;&lt;e+1)-1,a=0;a&lt;t.length;++a)for(var o=t[a],l=i;l&lt;1&lt;&lt;o.length;l=n.nextCombination(l)){for(var c=new Array(e+1),u=0,f=0;f&lt;o.length;++f)l&amp;1&lt;&lt;f&amp;&amp;(c[u++]=o[f]);r.push(c)}return s(r)}r.dimension=function(t){for(var e=0,r=Math.max,n=0,i=t.length;n&lt;i;++n)e=r(e,t[n].length);return e-1},r.countVertices=function(t){for(var e=-1,r=Math.max,n=0,i=t.length;n&lt;i;++n)for(var a=t[n],o=0,s=a.length;o&lt;s;++o)e=r(e,a[o]);return e+1},r.cloneCells=function(t){for(var e=new Array(t.length),r=0,n=t.length;r&lt;n;++r)e[r]=t[r].slice(0);return e},r.compareCells=a,r.normalize=s,r.unique=l,r.findCell=c,r.incidence=u,r.dual=function(t,e){if(!e)return u(l(f(t,0)),t);for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=[];n=0;for(var i=t.length;n&lt;i;++n)for(var a=t[n],o=0,s=a.length;o&lt;s;++o)r[a[o]].push(n);return r},r.explode=function(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0|i.length,o=1,l=1&lt;&lt;a;o&lt;l;++o){for(var c=[],u=0;u&lt;a;++u)o&gt;&gt;&gt;u&amp;1&amp;&amp;c.push(i[u]);e.push(c)}return s(e)},r.skeleton=f,r.boundary=function(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;++a){for(var l=new Array(i.length-1),c=0,u=0;c&lt;o;++c)c!==a&amp;&amp;(l[u++]=i[c]);e.push(l)}return s(e)},r.connectedComponents=function(t,e){return e?function(t,e){for(var r=new i(e),n=0;n&lt;t.length;++n)for(var a=t[n],o=0;o&lt;a.length;++o)for(var s=o+1;s&lt;a.length;++s)r.link(a[o],a[s]);var l=[],c=r.ranks;for(n=0;n&lt;c.length;++n)c[n]=-1;for(n=0;n&lt;t.length;++n){var u=r.find(t[n][0]);c[u]&lt;0?(c[u]=l.length,l.push([t[n].slice(0)])):l[c[u]].push(t[n].slice(0))}return l}(t,e):function(t){for(var e=l(s(f(t,0))),r=new i(e.length),n=0;n&lt;t.length;++n)for(var a=t[n],o=0;o&lt;a.length;++o)for(var u=c(e,[a[o]]),h=o+1;h&lt;a.length;++h)r.link(u,c(e,[a[h]]));var p=[],d=r.ranks;for(n=0;n&lt;d.length;++n)d[n]=-1;for(n=0;n&lt;t.length;++n){var g=r.find(c(e,[t[n][0]]));d[g]&lt;0?(d[g]=p.length,p.push([t[n].slice(0)])):p[d[g]].push(t[n].slice(0))}return p}(t)}},{&quot;bit-twiddle&quot;:97,&quot;union-find&quot;:596}],559:[function(t,e,r){arguments[4][97][0].apply(r,arguments)},{dup:97}],560:[function(t,e,r){arguments[4][558][0].apply(r,arguments)},{&quot;bit-twiddle&quot;:559,dup:558,&quot;union-find&quot;:561}],561:[function(t,e,r){&quot;use strict&quot;;function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e&lt;t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n,n.prototype.length=function(){return this.roots.length},n.prototype.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},n.prototype.find=function(t){for(var e=this.roots;e[t]!==t;){var r=e[t];e[t]=e[r],t=r}return t},n.prototype.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o&lt;s?a[r]=n:s&lt;o?a[n]=r:(a[n]=r,++i[r])}}},{}],562:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){for(var a=e.length,o=t.length,s=new Array(a),l=new Array(a),c=new Array(a),u=new Array(a),f=0;f&lt;a;++f)s[f]=l[f]=-1,c[f]=1/0,u[f]=!1;for(f=0;f&lt;o;++f){var h=t[f];if(2!==h.length)throw new Error(&quot;Input must be a graph&quot;);var p=h[1],d=h[0];-1!==l[d]?l[d]=-2:l[d]=p,-1!==s[p]?s[p]=-2:s[p]=d}function g(t){if(u[t])return 1/0;var r,i,a,o,c,f=s[t],h=l[t];return f&lt;0||h&lt;0?1/0:(r=e[t],i=e[f],a=e[h],o=Math.abs(n(r,i,a)),c=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)),o/c)}function m(t,e){var r=k[t],n=k[e];k[t]=n,k[e]=r,M[r]=e,M[n]=t}function v(t){return c[k[t]]}function y(t){return 1&amp;t?t-1&gt;&gt;1:(t&gt;&gt;1)-1}function x(t){for(var e=v(t);;){var r=e,n=2*t+1,i=2*(t+1),a=t;if(n&lt;A){var o=v(n);o&lt;r&amp;&amp;(a=n,r=o)}if(i&lt;A)v(i)&lt;r&amp;&amp;(a=i);if(a===t)return t;m(t,a),t=a}}function b(t){for(var e=v(t);t&gt;0;){var r=y(t);if(r&gt;=0)if(e&lt;v(r)){m(t,r),t=r;continue}return t}}function _(){if(A&gt;0){var t=k[0];return m(0,A-1),A-=1,x(0),t}return-1}function w(t,e){var r=k[t];return c[r]===e?t:(c[r]=-1/0,b(t),_(),c[r]=e,b((A+=1)-1))}function T(t){if(!u[t]){u[t]=!0;var e=s[t],r=l[t];s[r]&gt;=0&amp;&amp;(s[r]=e),l[e]&gt;=0&amp;&amp;(l[e]=r),M[e]&gt;=0&amp;&amp;w(M[e],g(e)),M[r]&gt;=0&amp;&amp;w(M[r],g(r))}}var k=[],M=new Array(a);for(f=0;f&lt;a;++f){(c[f]=g(f))&lt;1/0?(M[f]=k.length,k.push(f)):M[f]=-1}var A=k.length;for(f=A&gt;&gt;1;f&gt;=0;--f)x(f);for(;;){var S=_();if(S&lt;0||c[S]&gt;r)break;T(S)}var E=[];for(f=0;f&lt;a;++f)u[f]||(M[f]=E.length,E.push(e[f].slice()));E.length;function C(t,e){if(t[e]&lt;0)return e;var r=e,n=e;do{var i=t[n];if(!u[n]||i&lt;0||i===n)break;if(i=t[n=i],!u[n]||i&lt;0||i===n)break;n=i,r=t[r]}while(r!==n);for(var a=e;a!==n;a=t[a])t[a]=n;return n}var L=[];return t.forEach((function(t){var e=C(s,t[0]),r=C(l,t[1]);if(e&gt;=0&amp;&amp;r&gt;=0&amp;&amp;e!==r){var n=M[e],i=M[r];n!==i&amp;&amp;L.push([n,i])}})),i.unique(i.normalize(L)),{positions:E,edges:L}};var n=t(&quot;robust-orientation&quot;),i=t(&quot;simplicial-complex&quot;)},{&quot;robust-orientation&quot;:548,&quot;simplicial-complex&quot;:560}],563:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,a,o,s;if(e[0][0]&lt;e[1][0])r=e[0],a=e[1];else{if(!(e[0][0]&gt;e[1][0]))return i(e,t);r=e[1],a=e[0]}if(t[0][0]&lt;t[1][0])o=t[0],s=t[1];else{if(!(t[0][0]&gt;t[1][0]))return-i(t,e);o=t[1],s=t[0]}var l=n(r,a,s),c=n(r,a,o);if(l&lt;0){if(c&lt;=0)return l}else if(l&gt;0){if(c&gt;=0)return l}else if(c)return c;if(l=n(s,o,a),c=n(s,o,r),l&lt;0){if(c&lt;=0)return l}else if(l&gt;0){if(c&gt;=0)return l}else if(c)return c;return a[0]-s[0]};var n=t(&quot;robust-orientation&quot;);function i(t,e){var r,i,a,o;if(e[0][0]&lt;e[1][0])r=e[0],i=e[1];else{if(!(e[0][0]&gt;e[1][0])){var s=Math.min(t[0][1],t[1][1]),l=Math.max(t[0][1],t[1][1]),c=Math.min(e[0][1],e[1][1]),u=Math.max(e[0][1],e[1][1]);return l&lt;c?l-c:s&gt;u?s-u:l-u}r=e[1],i=e[0]}t[0][1]&lt;t[1][1]?(a=t[0],o=t[1]):(a=t[1],o=t[0]);var f=n(i,r,a);return f||((f=n(i,r,o))||o-i)}},{&quot;robust-orientation&quot;:548}],564:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],565:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=2*e,n=new Array(r),a=0;a&lt;e;++a){var l=t[a],c=l[0][0]&lt;l[1][0];n[2*a]=new f(l[0][0],l,c,a),n[2*a+1]=new f(l[1][0],l,!c,a)}n.sort((function(t,e){var r=t.x-e.x;return r||((r=t.create-e.create)||Math.min(t.segment[0][1],t.segment[1][1])-Math.min(e.segment[0][1],e.segment[1][1]))}));var h=i(o),p=[],d=[],g=[];for(a=0;a&lt;r;){for(var m=n[a].x,v=[];a&lt;r;){var y=n[a];if(y.x!==m)break;a+=1,y.segment[0][0]===y.x&amp;&amp;y.segment[1][0]===y.x?y.create&amp;&amp;(y.segment[0][1]&lt;y.segment[1][1]?(v.push(new u(y.segment[0][1],y.index,!0,!0)),v.push(new u(y.segment[1][1],y.index,!1,!1))):(v.push(new u(y.segment[1][1],y.index,!0,!1)),v.push(new u(y.segment[0][1],y.index,!1,!0)))):h=y.create?h.insert(y.segment,y.index):h.remove(y.segment)}p.push(h.root),d.push(m),g.push(v)}return new s(p,d,g)};var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;functional-red-black-tree&quot;),a=t(&quot;robust-orientation&quot;),o=t(&quot;./lib/order-segments&quot;);function s(t,e,r){this.slabs=t,this.coordinates=e,this.horizontal=r}function l(t,e){return t.y-e}function c(t,e){for(var r=null;t;){var n,i,o=t.key;o[0][0]&lt;o[1][0]?(n=o[0],i=o[1]):(n=o[1],i=o[0]);var s=a(n,i,e);if(s&lt;0)t=t.left;else if(s&gt;0)if(e[0]!==o[1][0])r=t,t=t.right;else{if(l=c(t.right,e))return l;t=t.left}else{if(e[0]!==o[1][0])return t;var l;if(l=c(t.right,e))return l;t=t.left}}return r}function u(t,e,r,n){this.y=t,this.index=e,this.start=r,this.closed=n}function f(t,e,r,n){this.x=t,this.segment=e,this.create=r,this.index=n}s.prototype.castUp=function(t){var e=n.le(this.coordinates,t[0]);if(e&lt;0)return-1;this.slabs[e];var r=c(this.slabs[e],t),i=-1;if(r&amp;&amp;(i=r.value),this.coordinates[e]===t[0]){var s=null;if(r&amp;&amp;(s=r.key),e&gt;0){var u=c(this.slabs[e-1],t);u&amp;&amp;(s?o(u.key,s)&gt;0&amp;&amp;(s=u.key,i=u.value):(i=u.value,s=u.key))}var f=this.horizontal[e];if(f.length&gt;0){var h=n.ge(f,t[1],l);if(h&lt;f.length){var p=f[h];if(t[1]===p.y){if(p.closed)return p.index;for(;h&lt;f.length-1&amp;&amp;f[h+1].y===t[1];)if((p=f[h+=1]).closed)return p.index;if(p.y===t[1]&amp;&amp;!p.start){if((h+=1)&gt;=f.length)return i;p=f[h]}}if(p.start)if(s){var d=a(s[0],s[1],[t[0],p.y]);s[0][0]&gt;s[1][0]&amp;&amp;(d=-d),d&gt;0&amp;&amp;(i=p.index)}else i=p.index;else p.y!==t[1]&amp;&amp;(i=p.index)}}}return i}},{&quot;./lib/order-segments&quot;:563,&quot;binary-search-bounds&quot;:564,&quot;functional-red-black-tree&quot;:247,&quot;robust-orientation&quot;:548}],566:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-dot-product&quot;),i=t(&quot;robust-sum&quot;);function a(t,e){var r=i(n(t,e),[e[e.length-1]]);return r[r.length-1]}function o(t,e,r,n){var i=-e/(n-e);i&lt;0?i=0:i&gt;1&amp;&amp;(i=1);for(var a=1-i,o=t.length,s=new Array(o),l=0;l&lt;o;++l)s[l]=i*t[l]+a*r[l];return s}e.exports=function(t,e){for(var r=[],n=[],i=a(t[t.length-1],e),s=t[t.length-1],l=t[0],c=0;c&lt;t.length;++c,s=l){var u=a(l=t[c],e);if(i&lt;0&amp;&amp;u&gt;0||i&gt;0&amp;&amp;u&lt;0){var f=o(s,u,l,i);r.push(f),n.push(f.slice())}u&lt;0?n.push(l.slice()):u&gt;0?r.push(l.slice()):(r.push(l.slice()),n.push(l.slice())),i=u}return{positive:r,negative:n}},e.exports.positive=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l&lt;t.length;++l,i=s){var c=a(s=t[l],e);(n&lt;0&amp;&amp;c&gt;0||n&gt;0&amp;&amp;c&lt;0)&amp;&amp;r.push(o(i,c,s,n)),c&gt;=0&amp;&amp;r.push(s.slice()),n=c}return r},e.exports.negative=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l&lt;t.length;++l,i=s){var c=a(s=t[l],e);(n&lt;0&amp;&amp;c&gt;0||n&gt;0&amp;&amp;c&lt;0)&amp;&amp;r.push(o(i,c,s,n)),c&lt;=0&amp;&amp;r.push(s.slice()),n=c}return r}},{&quot;robust-dot-product&quot;:545,&quot;robust-sum&quot;:553}],567:[function(t,e,r){!function(){&quot;use strict&quot;;var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(t){return i(o(t),arguments)}function n(t,r){return e.apply(null,[t].concat(r||[]))}function i(r,n){var i,a,o,s,l,c,u,f,h,p=1,d=r.length,g=&quot;&quot;;for(a=0;a&lt;d;a++)if(&quot;string&quot;==typeof r[a])g+=r[a];else if(&quot;object&quot;==typeof r[a]){if((s=r[a]).keys)for(i=n[p],o=0;o&lt;s.keys.length;o++){if(null==i)throw new Error(e('[sprintf] Cannot access property &quot;%s&quot; of undefined value &quot;%s&quot;',s.keys[o],s.keys[o-1]));i=i[s.keys[o]]}else i=s.param_no?n[s.param_no]:n[p++];if(t.not_type.test(s.type)&amp;&amp;t.not_primitive.test(s.type)&amp;&amp;i instanceof Function&amp;&amp;(i=i()),t.numeric_arg.test(s.type)&amp;&amp;&quot;number&quot;!=typeof i&amp;&amp;isNaN(i))throw new TypeError(e(&quot;[sprintf] expecting number but found %T&quot;,i));switch(t.number.test(s.type)&amp;&amp;(f=i&gt;=0),s.type){case&quot;b&quot;:i=parseInt(i,10).toString(2);break;case&quot;c&quot;:i=String.fromCharCode(parseInt(i,10));break;case&quot;d&quot;:case&quot;i&quot;:i=parseInt(i,10);break;case&quot;j&quot;:i=JSON.stringify(i,null,s.width?parseInt(s.width):0);break;case&quot;e&quot;:i=s.precision?parseFloat(i).toExponential(s.precision):parseFloat(i).toExponential();break;case&quot;f&quot;:i=s.precision?parseFloat(i).toFixed(s.precision):parseFloat(i);break;case&quot;g&quot;:i=s.precision?String(Number(i.toPrecision(s.precision))):parseFloat(i);break;case&quot;o&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(8);break;case&quot;s&quot;:i=String(i),i=s.precision?i.substring(0,s.precision):i;break;case&quot;t&quot;:i=String(!!i),i=s.precision?i.substring(0,s.precision):i;break;case&quot;T&quot;:i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=s.precision?i.substring(0,s.precision):i;break;case&quot;u&quot;:i=parseInt(i,10)&gt;&gt;&gt;0;break;case&quot;v&quot;:i=i.valueOf(),i=s.precision?i.substring(0,s.precision):i;break;case&quot;x&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(16);break;case&quot;X&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(16).toUpperCase()}t.json.test(s.type)?g+=i:(!t.number.test(s.type)||f&amp;&amp;!s.sign?h=&quot;&quot;:(h=f?&quot;+&quot;:&quot;-&quot;,i=i.toString().replace(t.sign,&quot;&quot;)),c=s.pad_char?&quot;0&quot;===s.pad_char?&quot;0&quot;:s.pad_char.charAt(1):&quot; &quot;,u=s.width-(h+i).length,l=s.width&amp;&amp;u&gt;0?c.repeat(u):&quot;&quot;,g+=s.align?h+i+l:&quot;0&quot;===c?h+l+i:l+h+i)}return g}var a=Object.create(null);function o(e){if(a[e])return a[e];for(var r,n=e,i=[],o=0;n;){if(null!==(r=t.text.exec(n)))i.push(r[0]);else if(null!==(r=t.modulo.exec(n)))i.push(&quot;%&quot;);else{if(null===(r=t.placeholder.exec(n)))throw new SyntaxError(&quot;[sprintf] unexpected placeholder&quot;);if(r[2]){o|=1;var s=[],l=r[2],c=[];if(null===(c=t.key.exec(l)))throw new SyntaxError(&quot;[sprintf] failed to parse named argument key&quot;);for(s.push(c[1]);&quot;&quot;!==(l=l.substring(c[0].length));)if(null!==(c=t.key_access.exec(l)))s.push(c[1]);else{if(null===(c=t.index_access.exec(l)))throw new SyntaxError(&quot;[sprintf] failed to parse named argument key&quot;);s.push(c[1])}r[2]=s}else o|=2;if(3===o)throw new Error(&quot;[sprintf] mixing positional and named placeholders is not (yet) supported&quot;);i.push({placeholder:r[0],param_no:r[1],keys:r[2],sign:r[3],pad_char:r[4],align:r[5],width:r[6],precision:r[7],type:r[8]})}n=n.substring(r[0].length)}return a[e]=i}&quot;undefined&quot;!=typeof r&amp;&amp;(r.sprintf=e,r.vsprintf=n),&quot;undefined&quot;!=typeof window&amp;&amp;(window.sprintf=e,window.vsprintf=n)}()},{}],568:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parenthesis&quot;);e.exports=function(t,e,r){if(null==t)throw Error(&quot;First argument should be a string&quot;);if(null==e)throw Error(&quot;Separator should be a string or a RegExp&quot;);r?(&quot;string&quot;==typeof r||Array.isArray(r))&amp;&amp;(r={ignore:r}):r={},null==r.escape&amp;&amp;(r.escape=!0),null==r.ignore?r.ignore=[&quot;[]&quot;,&quot;()&quot;,&quot;{}&quot;,&quot;&lt;&gt;&quot;,'&quot;&quot;',&quot;''&quot;,&quot;``&quot;,&quot;\u201c\u201d&quot;,&quot;\xab\xbb&quot;]:(&quot;string&quot;==typeof r.ignore&amp;&amp;(r.ignore=[r.ignore]),r.ignore=r.ignore.map((function(t){return 1===t.length&amp;&amp;(t+=t),t})));var i=n.parse(t,{flat:!0,brackets:r.ignore}),a=i[0].split(e);if(r.escape){for(var o=[],s=0;s&lt;a.length;s++){var l=a[s],c=a[s+1];&quot;\\&quot;===l[l.length-1]&amp;&amp;&quot;\\&quot;!==l[l.length-2]?(o.push(l+e+c),s++):o.push(l)}a=o}for(s=0;s&lt;a.length;s++)i[0]=a[s],a[s]=n.stringify(i,{flat:!0});return a}},{parenthesis:503}],569:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=new Array(e),n=new Array(e),i=new Array(e),a=new Array(e),o=new Array(e),s=new Array(e),l=0;l&lt;e;++l)r[l]=-1,n[l]=0,i[l]=!1,a[l]=0,o[l]=-1,s[l]=[];var c,u=0,f=[],h=[];function p(e){var l=[e],c=[e];for(r[e]=n[e]=u,i[e]=!0,u+=1;c.length&gt;0;){e=c[c.length-1];var p=t[e];if(a[e]&lt;p.length){for(var d=a[e];d&lt;p.length;++d){var g=p[d];if(r[g]&lt;0){r[g]=n[g]=u,i[g]=!0,u+=1,l.push(g),c.push(g);break}i[g]&amp;&amp;(n[e]=0|Math.min(n[e],n[g])),o[g]&gt;=0&amp;&amp;s[e].push(o[g])}a[e]=d}else{if(n[e]===r[e]){var m=[],v=[],y=0;for(d=l.length-1;d&gt;=0;--d){var x=l[d];if(i[x]=!1,m.push(x),v.push(s[x]),y+=s[x].length,o[x]=f.length,x===e){l.length=d;break}}f.push(m);var b=new Array(y);for(d=0;d&lt;v.length;d++)for(var _=0;_&lt;v[d].length;_++)b[--y]=v[d][_];h.push(b)}c.pop()}}}for(l=0;l&lt;e;++l)r[l]&lt;0&amp;&amp;p(l);for(l=0;l&lt;h.length;l++){var d=h[l];if(0!==d.length){d.sort((function(t,e){return t-e})),c=[d[0]];for(var g=1;g&lt;d.length;g++)d[g]!==d[g-1]&amp;&amp;c.push(d[g]);h[l]=c}}return{components:f,adjacencyList:h}}},{}],570:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(t.dimension&lt;=0)return{positions:[],cells:[]};if(1===t.dimension)return function(t,e){for(var r=a(t,e),n=r.length,i=new Array(n),o=new Array(n),s=0;s&lt;n;++s)i[s]=[r[s]],o[s]=[s];return{positions:i,cells:o}}(t,e);var r=t.order.join()+&quot;-&quot;+t.dtype,s=o[r];e=+e||0;s||(s=o[r]=function(t,e){var r=t.length,a=[&quot;'use strict';&quot;],o=&quot;surfaceNets&quot;+t.join(&quot;_&quot;)+&quot;d&quot;+e;a.push(&quot;var contour=genContour({&quot;,&quot;order:[&quot;,t.join(),&quot;],&quot;,&quot;scalarArguments: 3,&quot;,&quot;phase:function phaseFunc(p,a,b,c) { return (p &gt; c)|0 },&quot;),&quot;generic&quot;===e&amp;&amp;a.push(&quot;getters:[0],&quot;);for(var s=[],l=[],c=0;c&lt;r;++c)s.push(&quot;d&quot;+c),l.push(&quot;d&quot;+c);for(c=0;c&lt;1&lt;&lt;r;++c)s.push(&quot;v&quot;+c),l.push(&quot;v&quot;+c);for(c=0;c&lt;1&lt;&lt;r;++c)s.push(&quot;p&quot;+c),l.push(&quot;p&quot;+c);s.push(&quot;a&quot;,&quot;b&quot;,&quot;c&quot;),l.push(&quot;a&quot;,&quot;c&quot;),a.push(&quot;vertex:function vertexFunc(&quot;,s.join(),&quot;){&quot;);var u=[];for(c=0;c&lt;1&lt;&lt;r;++c)u.push(&quot;(p&quot;+c+&quot;&lt;&lt;&quot;+c+&quot;)&quot;);a.push(&quot;var m=(&quot;,u.join(&quot;+&quot;),&quot;)|0;if(m===0||m===&quot;,(1&lt;&lt;(1&lt;&lt;r))-1,&quot;){return}&quot;);var f=[],h=[];1&lt;&lt;(1&lt;&lt;r)&lt;=128?(a.push(&quot;switch(m){&quot;),h=a):a.push(&quot;switch(m&gt;&gt;&gt;7){&quot;);for(c=0;c&lt;1&lt;&lt;(1&lt;&lt;r);++c){if(1&lt;&lt;(1&lt;&lt;r)&gt;128&amp;&amp;c%128==0){f.length&gt;0&amp;&amp;h.push(&quot;}}&quot;);var p=&quot;vExtra&quot;+f.length;a.push(&quot;case &quot;,c&gt;&gt;&gt;7,&quot;:&quot;,p,&quot;(m&amp;0x7f,&quot;,l.join(),&quot;);break;&quot;),h=[&quot;function &quot;,p,&quot;(m,&quot;,l.join(),&quot;){switch(m){&quot;],f.push(h)}h.push(&quot;case &quot;,127&amp;c,&quot;:&quot;);for(var d=new Array(r),g=new Array(r),m=new Array(r),v=new Array(r),y=0,x=0;x&lt;r;++x)d[x]=[],g[x]=[],m[x]=0,v[x]=0;for(x=0;x&lt;1&lt;&lt;r;++x)for(var b=0;b&lt;r;++b){var _=x^1&lt;&lt;b;if(!(_&gt;x)&amp;&amp;!(c&amp;1&lt;&lt;_)!=!(c&amp;1&lt;&lt;x)){var w=1;c&amp;1&lt;&lt;_?g[b].push(&quot;v&quot;+_+&quot;-v&quot;+x):(g[b].push(&quot;v&quot;+x+&quot;-v&quot;+_),w=-w),w&lt;0?(d[b].push(&quot;-v&quot;+x+&quot;-v&quot;+_),m[b]+=2):(d[b].push(&quot;v&quot;+x+&quot;+v&quot;+_),m[b]-=2),y+=1;for(var T=0;T&lt;r;++T)T!==b&amp;&amp;(_&amp;1&lt;&lt;T?v[T]+=1:v[T]-=1)}}var k=[];for(b=0;b&lt;r;++b)if(0===d[b].length)k.push(&quot;d&quot;+b+&quot;-0.5&quot;);else{var M=&quot;&quot;;m[b]&lt;0?M=m[b]+&quot;*c&quot;:m[b]&gt;0&amp;&amp;(M=&quot;+&quot;+m[b]+&quot;*c&quot;);var A=d[b].length/y*.5,S=.5+v[b]/y*.5;k.push(&quot;d&quot;+b+&quot;-&quot;+S+&quot;-&quot;+A+&quot;*(&quot;+d[b].join(&quot;+&quot;)+M+&quot;)/(&quot;+g[b].join(&quot;+&quot;)+&quot;)&quot;)}h.push(&quot;a.push([&quot;,k.join(),&quot;]);&quot;,&quot;break;&quot;)}a.push(&quot;}},&quot;),f.length&gt;0&amp;&amp;h.push(&quot;}}&quot;);var E=[];for(c=0;c&lt;1&lt;&lt;r-1;++c)E.push(&quot;v&quot;+c);E.push(&quot;c0&quot;,&quot;c1&quot;,&quot;p0&quot;,&quot;p1&quot;,&quot;a&quot;,&quot;b&quot;,&quot;c&quot;),a.push(&quot;cell:function cellFunc(&quot;,E.join(),&quot;){&quot;);var C=i(r-1);a.push(&quot;if(p0){b.push(&quot;,C.map((function(t){return&quot;[&quot;+t.map((function(t){return&quot;v&quot;+t}))+&quot;]&quot;})).join(),&quot;)}else{b.push(&quot;,C.map((function(t){var e=t.slice();return e.reverse(),&quot;[&quot;+e.map((function(t){return&quot;v&quot;+t}))+&quot;]&quot;})).join(),&quot;)}}});function &quot;,o,&quot;(array,level){var verts=[],cells=[];contour(array,verts,cells,level);return {positions:verts,cells:cells};} return &quot;,o,&quot;;&quot;);for(c=0;c&lt;f.length;++c)a.push(f[c].join(&quot;&quot;));return new Function(&quot;genContour&quot;,a.join(&quot;&quot;))(n)}(t.order,t.dtype));return s(t,e)};var n=t(&quot;ndarray-extract-contour&quot;),i=t(&quot;triangulate-hypercube&quot;),a=t(&quot;zero-crossings&quot;);var o={}},{&quot;ndarray-extract-contour&quot;:487,&quot;triangulate-hypercube&quot;:580,&quot;zero-crossings&quot;:624}],571:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&amp;&amp;(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{!n&amp;&amp;s.return&amp;&amp;s.return()}finally{if(i)throw a}}return r}(t,e);throw new TypeError(&quot;Invalid attempt to destructure non-iterable instance&quot;)},i=2*Math.PI,a=function(t,e,r,n,i,a,o){var s=t.x,l=t.y;return{x:n*(s*=e)-i*(l*=r)+a,y:i*s+n*l+o}},o=function(t,e){var r=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),n=Math.cos(t),i=Math.sin(t),a=Math.cos(t+e),o=Math.sin(t+e);return[{x:n-i*r,y:i+n*r},{x:a+o*r,y:o-a*r},{x:a,y:o}]},s=function(t,e,r,n){var i=t*r+e*n;return i&gt;1&amp;&amp;(i=1),i&lt;-1&amp;&amp;(i=-1),(t*n-e*r&lt;0?-1:1)*Math.acos(i)};r.default=function(t){var e=t.px,r=t.py,l=t.cx,c=t.cy,u=t.rx,f=t.ry,h=t.xAxisRotation,p=void 0===h?0:h,d=t.largeArcFlag,g=void 0===d?0:d,m=t.sweepFlag,v=void 0===m?0:m,y=[];if(0===u||0===f)return[];var x=Math.sin(p*i/360),b=Math.cos(p*i/360),_=b*(e-l)/2+x*(r-c)/2,w=-x*(e-l)/2+b*(r-c)/2;if(0===_&amp;&amp;0===w)return[];u=Math.abs(u),f=Math.abs(f);var T=Math.pow(_,2)/Math.pow(u,2)+Math.pow(w,2)/Math.pow(f,2);T&gt;1&amp;&amp;(u*=Math.sqrt(T),f*=Math.sqrt(T));var k=function(t,e,r,n,a,o,l,c,u,f,h,p){var d=Math.pow(a,2),g=Math.pow(o,2),m=Math.pow(h,2),v=Math.pow(p,2),y=d*g-d*v-g*m;y&lt;0&amp;&amp;(y=0),y/=d*v+g*m;var x=(y=Math.sqrt(y)*(l===c?-1:1))*a/o*p,b=y*-o/a*h,_=f*x-u*b+(t+r)/2,w=u*x+f*b+(e+n)/2,T=(h-x)/a,k=(p-b)/o,M=(-h-x)/a,A=(-p-b)/o,S=s(1,0,T,k),E=s(T,k,M,A);return 0===c&amp;&amp;E&gt;0&amp;&amp;(E-=i),1===c&amp;&amp;E&lt;0&amp;&amp;(E+=i),[_,w,S,E]}(e,r,l,c,u,f,g,v,x,b,_,w),M=n(k,4),A=M[0],S=M[1],E=M[2],C=M[3],L=Math.abs(C)/(i/4);Math.abs(1-L)&lt;1e-7&amp;&amp;(L=1);var I=Math.max(Math.ceil(L),1);C/=I;for(var P=0;P&lt;I;P++)y.push(o(E,C)),E+=C;return y.map((function(t){var e=a(t[0],u,f,b,x,A,S),r=e.x,n=e.y,i=a(t[1],u,f,b,x,A,S),o=i.x,s=i.y,l=a(t[2],u,f,b,x,A,S);return{x1:r,y1:n,x2:o,y2:s,x:l.x,y:l.y}}))},e.exports=r.default},{}],572:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-svg-path&quot;),i=t(&quot;abs-svg-path&quot;),a=t(&quot;normalize-svg-path&quot;),o=t(&quot;is-svg-path&quot;),s=t(&quot;assert&quot;);e.exports=function(t){Array.isArray(t)&amp;&amp;1===t.length&amp;&amp;&quot;string&quot;==typeof t[0]&amp;&amp;(t=t[0]);&quot;string&quot;==typeof t&amp;&amp;(s(o(t),&quot;String is not an SVG path.&quot;),t=n(t));if(s(Array.isArray(t),&quot;Argument should be a string or an array of path segments.&quot;),t=i(t),!(t=a(t)).length)return[0,0,0,0];for(var e=[1/0,1/0,-1/0,-1/0],r=0,l=t.length;r&lt;l;r++)for(var c=t[r].slice(1),u=0;u&lt;c.length;u+=2)c[u+0]&lt;e[0]&amp;&amp;(e[0]=c[u+0]),c[u+1]&lt;e[1]&amp;&amp;(e[1]=c[u+1]),c[u+0]&gt;e[2]&amp;&amp;(e[2]=c[u+0]),c[u+1]&gt;e[3]&amp;&amp;(e[3]=c[u+1]);return e}},{&quot;abs-svg-path&quot;:65,assert:73,&quot;is-svg-path&quot;:471,&quot;normalize-svg-path&quot;:573,&quot;parse-svg-path&quot;:505}],573:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e,r=[],o=0,s=0,l=0,c=0,u=null,f=null,h=0,p=0,d=0,g=t.length;d&lt;g;d++){var m=t[d],v=m[0];switch(v){case&quot;M&quot;:l=m[1],c=m[2];break;case&quot;A&quot;:var y=n({px:h,py:p,cx:m[6],cy:m[7],rx:m[1],ry:m[2],xAxisRotation:m[3],largeArcFlag:m[4],sweepFlag:m[5]});if(!y.length)continue;for(var x,b=0;b&lt;y.length;b++)x=y[b],m=[&quot;C&quot;,x.x1,x.y1,x.x2,x.y2,x.x,x.y],b&lt;y.length-1&amp;&amp;r.push(m);break;case&quot;S&quot;:var _=h,w=p;&quot;C&quot;!=e&amp;&amp;&quot;S&quot;!=e||(_+=_-o,w+=w-s),m=[&quot;C&quot;,_,w,m[1],m[2],m[3],m[4]];break;case&quot;T&quot;:&quot;Q&quot;==e||&quot;T&quot;==e?(u=2*h-u,f=2*p-f):(u=h,f=p),m=a(h,p,u,f,m[1],m[2]);break;case&quot;Q&quot;:u=m[1],f=m[2],m=a(h,p,m[1],m[2],m[3],m[4]);break;case&quot;L&quot;:m=i(h,p,m[1],m[2]);break;case&quot;H&quot;:m=i(h,p,m[1],p);break;case&quot;V&quot;:m=i(h,p,h,m[1]);break;case&quot;Z&quot;:m=i(h,p,l,c)}e=v,h=m[m.length-2],p=m[m.length-1],m.length&gt;4?(o=m[m.length-4],s=m[m.length-3]):(o=h,s=p),r.push(m)}return r};var n=t(&quot;svg-arc-to-cubic-bezier&quot;);function i(t,e,r,n){return[&quot;C&quot;,t,e,r,n,r,n]}function a(t,e,r,n,i,a){return[&quot;C&quot;,t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}},{&quot;svg-arc-to-cubic-bezier&quot;:571}],574:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;svg-path-bounds&quot;),a=t(&quot;parse-svg-path&quot;),o=t(&quot;draw-svg-path&quot;),s=t(&quot;is-svg-path&quot;),l=t(&quot;bitmap-sdf&quot;),c=document.createElement(&quot;canvas&quot;),u=c.getContext(&quot;2d&quot;);e.exports=function(t,e){if(!s(t))throw Error(&quot;Argument should be valid svg path string&quot;);e||(e={});var r,f;e.shape?(r=e.shape[0],f=e.shape[1]):(r=c.width=e.w||e.width||200,f=c.height=e.h||e.height||200);var h=Math.min(r,f),p=e.stroke||0,d=e.viewbox||e.viewBox||i(t),g=[r/(d[2]-d[0]),f/(d[3]-d[1])],m=Math.min(g[0]||0,g[1]||0)/2;u.fillStyle=&quot;black&quot;,u.fillRect(0,0,r,f),u.fillStyle=&quot;white&quot;,p&amp;&amp;(&quot;number&quot;!=typeof p&amp;&amp;(p=1),u.strokeStyle=p&gt;0?&quot;white&quot;:&quot;black&quot;,u.lineWidth=Math.abs(p));if(u.translate(.5*r,.5*f),u.scale(m,m),function(){if(null!=n)return n;var t=document.createElement(&quot;canvas&quot;).getContext(&quot;2d&quot;);if(t.canvas.width=t.canvas.height=1,!window.Path2D)return n=!1;var e=new Path2D(&quot;M0,0h1v1h-1v-1Z&quot;);t.fillStyle=&quot;black&quot;,t.fill(e);var r=t.getImageData(0,0,1,1);return n=r&amp;&amp;r.data&amp;&amp;255===r.data[3]}()){var v=new Path2D(t);u.fill(v),p&amp;&amp;u.stroke(v)}else{var y=a(t);o(u,y),u.fill(),p&amp;&amp;u.stroke()}return u.setTransform(1,0,0,1,0,0),l(u,{cutoff:null!=e.cutoff?e.cutoff:.5,radius:null!=e.radius?e.radius:.5*h})}},{&quot;bitmap-sdf&quot;:98,&quot;draw-svg-path&quot;:174,&quot;is-svg-path&quot;:471,&quot;parse-svg-path&quot;:505,&quot;svg-path-bounds&quot;:572}],575:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;e.exports=function t(e,r,i){i=i||{};var o=a[e];o||(o=a[e]={&quot; &quot;:{data:new Float32Array(0),shape:.2}});var s=o[r];if(!s)if(r.length&lt;=1||!/\d/.test(r))s=o[r]=function(t){for(var e=t.cells,r=t.positions,n=new Float32Array(6*e.length),i=0,a=0,o=0;o&lt;e.length;++o)for(var s=e[o],l=0;l&lt;3;++l){var c=r[s[l]];n[i++]=c[0],n[i++]=c[1]+1.4,a=Math.max(c[0],a)}return{data:n,shape:a}}(n(r,{triangles:!0,font:e,textAlign:i.textAlign||&quot;left&quot;,textBaseline:&quot;alphabetic&quot;,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}}));else{for(var l=r.split(/(\d|\s)/),c=new Array(l.length),u=0,f=0,h=0;h&lt;l.length;++h)c[h]=t(e,l[h]),u+=c[h].data.length,f+=c[h].shape,h&gt;0&amp;&amp;(f+=.02);var p=new Float32Array(u),d=0,g=-.5*f;for(h=0;h&lt;c.length;++h){for(var m=c[h].data,v=0;v&lt;m.length;v+=2)p[d++]=m[v]+g,p[d++]=m[v+1];g+=c[h].shape+.02}s=o[r]={data:p,shape:f}}return s};var n=t(&quot;vectorize-text&quot;),i=window||r.global||{},a=i.__TEXT_CACHE||{};i.__TEXT_CACHE={}}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:526,&quot;vectorize-text&quot;:600}],576:[function(t,e,r){!function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,s=t.max,l=t.random;function c(e,l){if(l=l||{},(e=e||&quot;&quot;)instanceof c)return e;if(!(this instanceof c))return new c(e,l);var u=function(e){var i={r:0,g:0,b:0},a=1,l=null,c=null,u=null,f=!1,h=!1;&quot;string&quot;==typeof e&amp;&amp;(e=function(t){t=t.replace(r,&quot;&quot;).replace(n,&quot;&quot;).toLowerCase();var e,i=!1;if(S[t])t=S[t],i=!0;else if(&quot;transparent&quot;==t)return{r:0,g:0,b:0,a:0,format:&quot;name&quot;};if(e=j.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=j.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=j.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=j.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=j.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=j.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=j.hex8.exec(t))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),a:R(e[4]),format:i?&quot;name&quot;:&quot;hex8&quot;};if(e=j.hex6.exec(t))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),format:i?&quot;name&quot;:&quot;hex&quot;};if(e=j.hex4.exec(t))return{r:P(e[1]+&quot;&quot;+e[1]),g:P(e[2]+&quot;&quot;+e[2]),b:P(e[3]+&quot;&quot;+e[3]),a:R(e[4]+&quot;&quot;+e[4]),format:i?&quot;name&quot;:&quot;hex8&quot;};if(e=j.hex3.exec(t))return{r:P(e[1]+&quot;&quot;+e[1]),g:P(e[2]+&quot;&quot;+e[2]),b:P(e[3]+&quot;&quot;+e[3]),format:i?&quot;name&quot;:&quot;hex&quot;};return!1}(e));&quot;object&quot;==typeof e&amp;&amp;(U(e.r)&amp;&amp;U(e.g)&amp;&amp;U(e.b)?(p=e.r,d=e.g,g=e.b,i={r:255*L(p,255),g:255*L(d,255),b:255*L(g,255)},f=!0,h=&quot;%&quot;===String(e.r).substr(-1)?&quot;prgb&quot;:&quot;rgb&quot;):U(e.h)&amp;&amp;U(e.s)&amp;&amp;U(e.v)?(l=O(e.s),c=O(e.v),i=function(e,r,n){e=6*L(e,360),r=L(r,100),n=L(n,100);var i=t.floor(e),a=e-i,o=n*(1-r),s=n*(1-a*r),l=n*(1-(1-a)*r),c=i%6;return{r:255*[n,s,o,o,l,n][c],g:255*[l,n,n,s,o,o][c],b:255*[o,o,l,n,n,s][c]}}(e.h,l,c),f=!0,h=&quot;hsv&quot;):U(e.h)&amp;&amp;U(e.s)&amp;&amp;U(e.l)&amp;&amp;(l=O(e.s),u=O(e.l),i=function(t,e,r){var n,i,a;function o(t,e,r){return r&lt;0&amp;&amp;(r+=1),r&gt;1&amp;&amp;(r-=1),r&lt;1/6?t+6*(e-t)*r:r&lt;.5?e:r&lt;2/3?t+(e-t)*(2/3-r)*6:t}if(t=L(t,360),e=L(e,100),r=L(r,100),0===e)n=i=a=r;else{var s=r&lt;.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),i=o(l,s,t),a=o(l,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(e.h,l,u),f=!0,h=&quot;hsl&quot;),e.hasOwnProperty(&quot;a&quot;)&amp;&amp;(a=e.a));var p,d,g;return a=C(a),{ok:f,format:e.format||h,r:o(255,s(i.r,0)),g:o(255,s(i.g,0)),b:o(255,s(i.b,0)),a:a}}(e);this._originalInput=e,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=a(100*this._a)/100,this._format=l.format||u.format,this._gradientType=l.gradientType,this._r&lt;1&amp;&amp;(this._r=a(this._r)),this._g&lt;1&amp;&amp;(this._g=a(this._g)),this._b&lt;1&amp;&amp;(this._b=a(this._b)),this._ok=u.ok,this._tc_id=i++}function u(t,e,r){t=L(t,255),e=L(e,255),r=L(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=(a+l)/2;if(a==l)n=i=0;else{var u=a-l;switch(i=c&gt;.5?u/(2-a-l):u/(a+l),a){case t:n=(e-r)/u+(e&lt;r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:c}}function f(t,e,r){t=L(t,255),e=L(e,255),r=L(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=a,u=a-l;if(i=0===a?0:u/a,a==l)n=0;else{switch(a){case t:n=(e-r)/u+(e&lt;r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:c}}function h(t,e,r,n){var i=[z(a(t).toString(16)),z(a(e).toString(16)),z(a(r).toString(16))];return n&amp;&amp;i[0].charAt(0)==i[0].charAt(1)&amp;&amp;i[1].charAt(0)==i[1].charAt(1)&amp;&amp;i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(&quot;&quot;)}function p(t,e,r,n){return[z(D(n)),z(a(t).toString(16)),z(a(e).toString(16)),z(a(r).toString(16))].join(&quot;&quot;)}function d(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s-=e/100,r.s=I(r.s),c(r)}function g(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s+=e/100,r.s=I(r.s),c(r)}function m(t){return c(t).desaturate(100)}function v(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l+=e/100,r.l=I(r.l),c(r)}function y(t,e){e=0===e?0:e||10;var r=c(t).toRgb();return r.r=s(0,o(255,r.r-a(-e/100*255))),r.g=s(0,o(255,r.g-a(-e/100*255))),r.b=s(0,o(255,r.b-a(-e/100*255))),c(r)}function x(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l-=e/100,r.l=I(r.l),c(r)}function b(t,e){var r=c(t).toHsl(),n=(r.h+e)%360;return r.h=n&lt;0?360+n:n,c(r)}function _(t){var e=c(t).toHsl();return e.h=(e.h+180)%360,c(e)}function w(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+120)%360,s:e.s,l:e.l}),c({h:(r+240)%360,s:e.s,l:e.l})]}function T(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+90)%360,s:e.s,l:e.l}),c({h:(r+180)%360,s:e.s,l:e.l}),c({h:(r+270)%360,s:e.s,l:e.l})]}function k(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+72)%360,s:e.s,l:e.l}),c({h:(r+216)%360,s:e.s,l:e.l})]}function M(t,e,r){e=e||6,r=r||30;var n=c(t).toHsl(),i=360/r,a=[c(t)];for(n.h=(n.h-(i*e&gt;&gt;1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(c(n));return a}function A(t,e){e=e||6;for(var r=c(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(c({h:n,s:i,v:a})),a=(a+s)%1;return o}c.prototype={isDark:function(){return this.getBrightness()&lt;128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var e,r,n,i=this.toRgb();return e=i.r/255,r=i.g/255,n=i.b/255,.2126*(e&lt;=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(r&lt;=.03928?r/12.92:t.pow((r+.055)/1.055,2.4))+.0722*(n&lt;=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=C(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=f(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.v);return 1==this._a?&quot;hsv(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%)&quot;:&quot;hsva(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%, &quot;+this._roundA+&quot;)&quot;},toHsl:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=u(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.l);return 1==this._a?&quot;hsl(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%)&quot;:&quot;hsla(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%, &quot;+this._roundA+&quot;)&quot;},toHex:function(t){return h(this._r,this._g,this._b,t)},toHexString:function(t){return&quot;#&quot;+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[z(a(t).toString(16)),z(a(e).toString(16)),z(a(r).toString(16)),z(D(n))];if(i&amp;&amp;o[0].charAt(0)==o[0].charAt(1)&amp;&amp;o[1].charAt(0)==o[1].charAt(1)&amp;&amp;o[2].charAt(0)==o[2].charAt(1)&amp;&amp;o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join(&quot;&quot;)}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return&quot;#&quot;+this.toHex8(t)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?&quot;rgb(&quot;+a(this._r)+&quot;, &quot;+a(this._g)+&quot;, &quot;+a(this._b)+&quot;)&quot;:&quot;rgba(&quot;+a(this._r)+&quot;, &quot;+a(this._g)+&quot;, &quot;+a(this._b)+&quot;, &quot;+this._roundA+&quot;)&quot;},toPercentageRgb:function(){return{r:a(100*L(this._r,255))+&quot;%&quot;,g:a(100*L(this._g,255))+&quot;%&quot;,b:a(100*L(this._b,255))+&quot;%&quot;,a:this._a}},toPercentageRgbString:function(){return 1==this._a?&quot;rgb(&quot;+a(100*L(this._r,255))+&quot;%, &quot;+a(100*L(this._g,255))+&quot;%, &quot;+a(100*L(this._b,255))+&quot;%)&quot;:&quot;rgba(&quot;+a(100*L(this._r,255))+&quot;%, &quot;+a(100*L(this._g,255))+&quot;%, &quot;+a(100*L(this._b,255))+&quot;%, &quot;+this._roundA+&quot;)&quot;},toName:function(){return 0===this._a?&quot;transparent&quot;:!(this._a&lt;1)&amp;&amp;(E[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e=&quot;#&quot;+p(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?&quot;GradientType = 1, &quot;:&quot;&quot;;if(t){var i=c(t);r=&quot;#&quot;+p(i._r,i._g,i._b,i._a)}return&quot;progid:DXImageTransform.Microsoft.gradient(&quot;+n+&quot;startColorstr=&quot;+e+&quot;,endColorstr=&quot;+r+&quot;)&quot;},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a&lt;1&amp;&amp;this._a&gt;=0;return e||!n||&quot;hex&quot;!==t&amp;&amp;&quot;hex6&quot;!==t&amp;&amp;&quot;hex3&quot;!==t&amp;&amp;&quot;hex4&quot;!==t&amp;&amp;&quot;hex8&quot;!==t&amp;&amp;&quot;name&quot;!==t?(&quot;rgb&quot;===t&amp;&amp;(r=this.toRgbString()),&quot;prgb&quot;===t&amp;&amp;(r=this.toPercentageRgbString()),&quot;hex&quot;!==t&amp;&amp;&quot;hex6&quot;!==t||(r=this.toHexString()),&quot;hex3&quot;===t&amp;&amp;(r=this.toHexString(!0)),&quot;hex4&quot;===t&amp;&amp;(r=this.toHex8String(!0)),&quot;hex8&quot;===t&amp;&amp;(r=this.toHex8String()),&quot;name&quot;===t&amp;&amp;(r=this.toName()),&quot;hsl&quot;===t&amp;&amp;(r=this.toHslString()),&quot;hsv&quot;===t&amp;&amp;(r=this.toHsvString()),r||this.toHexString()):&quot;name&quot;===t&amp;&amp;0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},c.fromRatio=function(t,e){if(&quot;object&quot;==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&amp;&amp;(r[n]=&quot;a&quot;===n?t[n]:O(t[n]));t=r}return c(t,e)},c.equals=function(t,e){return!(!t||!e)&amp;&amp;c(t).toRgbString()==c(e).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})},c.mix=function(t,e,r){r=0===r?0:r||50;var n=c(t).toRgb(),i=c(e).toRgb(),a=r/100;return c({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},c.readability=function(e,r){var n=c(e),i=c(r);return(t.max(n.getLuminance(),i.getLuminance())+.05)/(t.min(n.getLuminance(),i.getLuminance())+.05)},c.isReadable=function(t,e,r){var n,i,a=c.readability(t,e);switch(i=!1,(n=function(t){var e,r;e=((t=t||{level:&quot;AA&quot;,size:&quot;small&quot;}).level||&quot;AA&quot;).toUpperCase(),r=(t.size||&quot;small&quot;).toLowerCase(),&quot;AA&quot;!==e&amp;&amp;&quot;AAA&quot;!==e&amp;&amp;(e=&quot;AA&quot;);&quot;small&quot;!==r&amp;&amp;&quot;large&quot;!==r&amp;&amp;(r=&quot;small&quot;);return{level:e,size:r}}(r)).level+n.size){case&quot;AAsmall&quot;:case&quot;AAAlarge&quot;:i=a&gt;=4.5;break;case&quot;AAlarge&quot;:i=a&gt;=3;break;case&quot;AAAsmall&quot;:i=a&gt;=7}return i},c.mostReadable=function(t,e,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var u=0;u&lt;e.length;u++)(n=c.readability(t,e[u]))&gt;l&amp;&amp;(l=n,s=c(e[u]));return c.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,c.mostReadable(t,[&quot;#fff&quot;,&quot;#000&quot;],r))};var S=c.names={aliceblue:&quot;f0f8ff&quot;,antiquewhite:&quot;faebd7&quot;,aqua:&quot;0ff&quot;,aquamarine:&quot;7fffd4&quot;,azure:&quot;f0ffff&quot;,beige:&quot;f5f5dc&quot;,bisque:&quot;ffe4c4&quot;,black:&quot;000&quot;,blanchedalmond:&quot;ffebcd&quot;,blue:&quot;00f&quot;,blueviolet:&quot;8a2be2&quot;,brown:&quot;a52a2a&quot;,burlywood:&quot;deb887&quot;,burntsienna:&quot;ea7e5d&quot;,cadetblue:&quot;5f9ea0&quot;,chartreuse:&quot;7fff00&quot;,chocolate:&quot;d2691e&quot;,coral:&quot;ff7f50&quot;,cornflowerblue:&quot;6495ed&quot;,cornsilk:&quot;fff8dc&quot;,crimson:&quot;dc143c&quot;,cyan:&quot;0ff&quot;,darkblue:&quot;00008b&quot;,darkcyan:&quot;008b8b&quot;,darkgoldenrod:&quot;b8860b&quot;,darkgray:&quot;a9a9a9&quot;,darkgreen:&quot;006400&quot;,darkgrey:&quot;a9a9a9&quot;,darkkhaki:&quot;bdb76b&quot;,darkmagenta:&quot;8b008b&quot;,darkolivegreen:&quot;556b2f&quot;,darkorange:&quot;ff8c00&quot;,darkorchid:&quot;9932cc&quot;,darkred:&quot;8b0000&quot;,darksalmon:&quot;e9967a&quot;,darkseagreen:&quot;8fbc8f&quot;,darkslateblue:&quot;483d8b&quot;,darkslategray:&quot;2f4f4f&quot;,darkslategrey:&quot;2f4f4f&quot;,darkturquoise:&quot;00ced1&quot;,darkviolet:&quot;9400d3&quot;,deeppink:&quot;ff1493&quot;,deepskyblue:&quot;00bfff&quot;,dimgray:&quot;696969&quot;,dimgrey:&quot;696969&quot;,dodgerblue:&quot;1e90ff&quot;,firebrick:&quot;b22222&quot;,floralwhite:&quot;fffaf0&quot;,forestgreen:&quot;228b22&quot;,fuchsia:&quot;f0f&quot;,gainsboro:&quot;dcdcdc&quot;,ghostwhite:&quot;f8f8ff&quot;,gold:&quot;ffd700&quot;,goldenrod:&quot;daa520&quot;,gray:&quot;808080&quot;,green:&quot;008000&quot;,greenyellow:&quot;adff2f&quot;,grey:&quot;808080&quot;,honeydew:&quot;f0fff0&quot;,hotpink:&quot;ff69b4&quot;,indianred:&quot;cd5c5c&quot;,indigo:&quot;4b0082&quot;,ivory:&quot;fffff0&quot;,khaki:&quot;f0e68c&quot;,lavender:&quot;e6e6fa&quot;,lavenderblush:&quot;fff0f5&quot;,lawngreen:&quot;7cfc00&quot;,lemonchiffon:&quot;fffacd&quot;,lightblue:&quot;add8e6&quot;,lightcoral:&quot;f08080&quot;,lightcyan:&quot;e0ffff&quot;,lightgoldenrodyellow:&quot;fafad2&quot;,lightgray:&quot;d3d3d3&quot;,lightgreen:&quot;90ee90&quot;,lightgrey:&quot;d3d3d3&quot;,lightpink:&quot;ffb6c1&quot;,lightsalmon:&quot;ffa07a&quot;,lightseagreen:&quot;20b2aa&quot;,lightskyblue:&quot;87cefa&quot;,lightslategray:&quot;789&quot;,lightslategrey:&quot;789&quot;,lightsteelblue:&quot;b0c4de&quot;,lightyellow:&quot;ffffe0&quot;,lime:&quot;0f0&quot;,limegreen:&quot;32cd32&quot;,linen:&quot;faf0e6&quot;,magenta:&quot;f0f&quot;,maroon:&quot;800000&quot;,mediumaquamarine:&quot;66cdaa&quot;,mediumblue:&quot;0000cd&quot;,mediumorchid:&quot;ba55d3&quot;,mediumpurple:&quot;9370db&quot;,mediumseagreen:&quot;3cb371&quot;,mediumslateblue:&quot;7b68ee&quot;,mediumspringgreen:&quot;00fa9a&quot;,mediumturquoise:&quot;48d1cc&quot;,mediumvioletred:&quot;c71585&quot;,midnightblue:&quot;191970&quot;,mintcream:&quot;f5fffa&quot;,mistyrose:&quot;ffe4e1&quot;,moccasin:&quot;ffe4b5&quot;,navajowhite:&quot;ffdead&quot;,navy:&quot;000080&quot;,oldlace:&quot;fdf5e6&quot;,olive:&quot;808000&quot;,olivedrab:&quot;6b8e23&quot;,orange:&quot;ffa500&quot;,orangered:&quot;ff4500&quot;,orchid:&quot;da70d6&quot;,palegoldenrod:&quot;eee8aa&quot;,palegreen:&quot;98fb98&quot;,paleturquoise:&quot;afeeee&quot;,palevioletred:&quot;db7093&quot;,papayawhip:&quot;ffefd5&quot;,peachpuff:&quot;ffdab9&quot;,peru:&quot;cd853f&quot;,pink:&quot;ffc0cb&quot;,plum:&quot;dda0dd&quot;,powderblue:&quot;b0e0e6&quot;,purple:&quot;800080&quot;,rebeccapurple:&quot;663399&quot;,red:&quot;f00&quot;,rosybrown:&quot;bc8f8f&quot;,royalblue:&quot;4169e1&quot;,saddlebrown:&quot;8b4513&quot;,salmon:&quot;fa8072&quot;,sandybrown:&quot;f4a460&quot;,seagreen:&quot;2e8b57&quot;,seashell:&quot;fff5ee&quot;,sienna:&quot;a0522d&quot;,silver:&quot;c0c0c0&quot;,skyblue:&quot;87ceeb&quot;,slateblue:&quot;6a5acd&quot;,slategray:&quot;708090&quot;,slategrey:&quot;708090&quot;,snow:&quot;fffafa&quot;,springgreen:&quot;00ff7f&quot;,steelblue:&quot;4682b4&quot;,tan:&quot;d2b48c&quot;,teal:&quot;008080&quot;,thistle:&quot;d8bfd8&quot;,tomato:&quot;ff6347&quot;,turquoise:&quot;40e0d0&quot;,violet:&quot;ee82ee&quot;,wheat:&quot;f5deb3&quot;,white:&quot;fff&quot;,whitesmoke:&quot;f5f5f5&quot;,yellow:&quot;ff0&quot;,yellowgreen:&quot;9acd32&quot;},E=c.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&amp;&amp;(e[t[r]]=r);return e}(S);function C(t){return t=parseFloat(t),(isNaN(t)||t&lt;0||t&gt;1)&amp;&amp;(t=1),t}function L(e,r){(function(t){return&quot;string&quot;==typeof t&amp;&amp;-1!=t.indexOf(&quot;.&quot;)&amp;&amp;1===parseFloat(t)})(e)&amp;&amp;(e=&quot;100%&quot;);var n=function(t){return&quot;string&quot;==typeof t&amp;&amp;-1!=t.indexOf(&quot;%&quot;)}(e);return e=o(r,s(0,parseFloat(e))),n&amp;&amp;(e=parseInt(e*r,10)/100),t.abs(e-r)&lt;1e-6?1:e%r/parseFloat(r)}function I(t){return o(1,s(0,t))}function P(t){return parseInt(t,16)}function z(t){return 1==t.length?&quot;0&quot;+t:&quot;&quot;+t}function O(t){return t&lt;=1&amp;&amp;(t=100*t+&quot;%&quot;),t}function D(e){return t.round(255*parseFloat(e)).toString(16)}function R(t){return P(t)/255}var F,B,N,j=(B=&quot;[\\s|\\(]+(&quot;+(F=&quot;(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)&quot;)+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)\\s*\\)?&quot;,N=&quot;[\\s|\\(]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)\\s*\\)?&quot;,{CSS_UNIT:new RegExp(F),rgb:new RegExp(&quot;rgb&quot;+B),rgba:new RegExp(&quot;rgba&quot;+N),hsl:new RegExp(&quot;hsl&quot;+B),hsla:new RegExp(&quot;hsla&quot;+N),hsv:new RegExp(&quot;hsv&quot;+B),hsva:new RegExp(&quot;hsva&quot;+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(t){return!!j.CSS_UNIT.exec(t)}&quot;undefined&quot;!=typeof e&amp;&amp;e.exports?e.exports=c:window.tinycolor=c}(Math)},{}],577:[function(t,e,r){&quot;use strict&quot;;e.exports=i,e.exports.float32=e.exports.float=i,e.exports.fract32=e.exports.fract=function(t){if(t.length){for(var e=i(t),r=0,n=e.length;r&lt;n;r++)e[r]=t[r]-e[r];return e}return i(t-i(t))};var n=new Float32Array(1);function i(t){if(t.length){if(t instanceof Float32Array)return t;var e=new Float32Array(t);return e.set(t),e}return n[0]=t,n[0]}},{}],578:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-unit&quot;);e.exports=a;function i(t,e){var r=n(getComputedStyle(t).getPropertyValue(e));return r[0]*a(r[1],t)}function a(t,e){switch(e=e||document.body,t=(t||&quot;px&quot;).trim().toLowerCase(),e!==window&amp;&amp;e!==document||(e=document.body),t){case&quot;%&quot;:return e.clientHeight/100;case&quot;ch&quot;:case&quot;ex&quot;:return function(t,e){var r=document.createElement(&quot;div&quot;);r.style[&quot;font-size&quot;]=&quot;128&quot;+t,e.appendChild(r);var n=i(r,&quot;font-size&quot;)/128;return e.removeChild(r),n}(t,e);case&quot;em&quot;:return i(e,&quot;font-size&quot;);case&quot;rem&quot;:return i(document.body,&quot;font-size&quot;);case&quot;vw&quot;:return window.innerWidth/100;case&quot;vh&quot;:return window.innerHeight/100;case&quot;vmin&quot;:return Math.min(window.innerWidth,window.innerHeight)/100;case&quot;vmax&quot;:return Math.max(window.innerWidth,window.innerHeight)/100;case&quot;in&quot;:return 96;case&quot;cm&quot;:return 96/2.54;case&quot;mm&quot;:return 96/25.4;case&quot;pt&quot;:return 96/72;case&quot;pc&quot;:return 16}return 1}},{&quot;parse-unit&quot;:506}],579:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).topojson=t.topojson||{})}(this,(function(t){&quot;use strict&quot;;function e(t){return t}function r(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c);for(u[0]=(r+=t[0])*i+o,u[1]=(n+=t[1])*a+s;l&lt;c;)u[l]=t[l],++l;return u}}function n(t){var e,n=r(t.transform),i=1/0,a=i,o=-i,s=-i;function l(t){(t=n(t))[0]&lt;i&amp;&amp;(i=t[0]),t[0]&gt;o&amp;&amp;(o=t[0]),t[1]&lt;a&amp;&amp;(a=t[1]),t[1]&gt;s&amp;&amp;(s=t[1])}function c(t){switch(t.type){case&quot;GeometryCollection&quot;:t.geometries.forEach(c);break;case&quot;Point&quot;:l(t.coordinates);break;case&quot;MultiPoint&quot;:t.coordinates.forEach(l)}}for(e in t.arcs.forEach((function(t){for(var e,r=-1,l=t.length;++r&lt;l;)(e=n(t[r],r))[0]&lt;i&amp;&amp;(i=e[0]),e[0]&gt;o&amp;&amp;(o=e[0]),e[1]&lt;a&amp;&amp;(a=e[1]),e[1]&gt;s&amp;&amp;(s=e[1])})),t.objects)c(t.objects[e]);return[i,a,o,s]}function i(t,e){var r=e.id,n=e.bbox,i=null==e.properties?{}:e.properties,o=a(t,e);return null==r&amp;&amp;null==n?{type:&quot;Feature&quot;,properties:i,geometry:o}:null==n?{type:&quot;Feature&quot;,id:r,properties:i,geometry:o}:{type:&quot;Feature&quot;,id:r,bbox:n,properties:i,geometry:o}}function a(t,e){var n=r(t.transform),i=t.arcs;function a(t,e){e.length&amp;&amp;e.pop();for(var r=i[t&lt;0?~t:t],a=0,o=r.length;a&lt;o;++a)e.push(n(r[a],a));t&lt;0&amp;&amp;function(t,e){for(var r,n=t.length,i=n-e;i&lt;--n;)r=t[i],t[i++]=t[n],t[n]=r}(e,o)}function o(t){return n(t)}function s(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)a(t[r],e);return e.length&lt;2&amp;&amp;e.push(e[0]),e}function l(t){for(var e=s(t);e.length&lt;4;)e.push(e[0]);return e}function c(t){return t.map(l)}return function t(e){var r,n=e.type;switch(n){case&quot;GeometryCollection&quot;:return{type:n,geometries:e.geometries.map(t)};case&quot;Point&quot;:r=o(e.coordinates);break;case&quot;MultiPoint&quot;:r=e.coordinates.map(o);break;case&quot;LineString&quot;:r=s(e.arcs);break;case&quot;MultiLineString&quot;:r=e.arcs.map(s);break;case&quot;Polygon&quot;:r=c(e.arcs);break;case&quot;MultiPolygon&quot;:r=e.arcs.map(c);break;default:return null}return{type:n,coordinates:r}}(e)}function o(t,e){var r={},n={},i={},a=[],o=-1;function s(t,e){for(var n in t){var i=t[n];delete e[i.start],delete i.start,delete i.end,i.forEach((function(t){r[t&lt;0?~t:t]=1})),a.push(i)}}return e.forEach((function(r,n){var i,a=t.arcs[r&lt;0?~r:r];a.length&lt;3&amp;&amp;!a[1][0]&amp;&amp;!a[1][1]&amp;&amp;(i=e[++o],e[o]=r,e[n]=i)})),e.forEach((function(e){var r,a,o=function(e){var r,n=t.arcs[e&lt;0?~e:e],i=n[0];t.transform?(r=[0,0],n.forEach((function(t){r[0]+=t[0],r[1]+=t[1]}))):r=n[n.length-1];return e&lt;0?[r,i]:[i,r]}(e),s=o[0],l=o[1];if(r=i[s])if(delete i[r.end],r.push(e),r.end=l,a=n[l]){delete n[a.start];var c=a===r?r:r.concat(a);n[c.start=r.start]=i[c.end=a.end]=c}else n[r.start]=i[r.end]=r;else if(r=n[l])if(delete n[r.start],r.unshift(e),r.start=s,a=i[s]){delete i[a.end];var u=a===r?r:a.concat(r);n[u.start=a.start]=i[u.end=r.end]=u}else n[r.start]=i[r.end]=r;else n[(r=[e]).start=s]=i[r.end=l]=r})),s(i,n),s(n,i),e.forEach((function(t){r[t&lt;0?~t:t]||a.push([t])})),a}function s(t,e,r){var n,i,a;if(arguments.length&gt;1)n=l(t,e,r);else for(i=0,n=new Array(a=t.arcs.length);i&lt;a;++i)n[i]=i;return{type:&quot;MultiLineString&quot;,arcs:o(t,n)}}function l(t,e,r){var n,i=[],a=[];function o(t){var e=t&lt;0?~t:t;(a[e]||(a[e]=[])).push({i:t,g:n})}function s(t){t.forEach(o)}function l(t){t.forEach(s)}return function t(e){switch(n=e,e.type){case&quot;GeometryCollection&quot;:e.geometries.forEach(t);break;case&quot;LineString&quot;:s(e.arcs);break;case&quot;MultiLineString&quot;:case&quot;Polygon&quot;:l(e.arcs);break;case&quot;MultiPolygon&quot;:!function(t){t.forEach(l)}(e.arcs)}}(e),a.forEach(null==r?function(t){i.push(t[0].i)}:function(t){r(t[0].g,t[t.length-1].g)&amp;&amp;i.push(t[0].i)}),i}function c(t,e){var r={},n=[],i=[];function s(t){t.forEach((function(e){e.forEach((function(e){(r[e=e&lt;0?~e:e]||(r[e]=[])).push(t)}))})),n.push(t)}function l(e){return function(t){for(var e,r=-1,n=t.length,i=t[n-1],a=0;++r&lt;n;)e=i,i=t[r],a+=e[0]*i[1]-e[1]*i[0];return Math.abs(a)}(a(t,{type:&quot;Polygon&quot;,arcs:[e]}).coordinates[0])}return e.forEach((function t(e){switch(e.type){case&quot;GeometryCollection&quot;:e.geometries.forEach(t);break;case&quot;Polygon&quot;:s(e.arcs);break;case&quot;MultiPolygon&quot;:e.arcs.forEach(s)}})),n.forEach((function(t){if(!t._){var e=[],n=[t];for(t._=1,i.push(e);t=n.pop();)e.push(t),t.forEach((function(t){t.forEach((function(t){r[t&lt;0?~t:t].forEach((function(t){t._||(t._=1,n.push(t))}))}))}))}})),n.forEach((function(t){delete t._})),{type:&quot;MultiPolygon&quot;,arcs:i.map((function(e){var n,i=[];if(e.forEach((function(t){t.forEach((function(t){t.forEach((function(t){r[t&lt;0?~t:t].length&lt;2&amp;&amp;i.push(t)}))}))})),(n=(i=o(t,i)).length)&gt;1)for(var a,s,c=1,u=l(i[0]);c&lt;n;++c)(a=l(i[c]))&gt;u&amp;&amp;(s=i[0],i[0]=i[c],i[c]=s,u=a);return i})).filter((function(t){return t.length&gt;0}))}}function u(t,e){for(var r=0,n=t.length;r&lt;n;){var i=r+n&gt;&gt;&gt;1;t[i]&lt;e?r=i+1:n=i}return r}function f(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c),f=Math.round((t[0]-o)/i),h=Math.round((t[1]-s)/a);for(u[0]=f-r,r=f,u[1]=h-n,n=h;l&lt;c;)u[l]=t[l],++l;return u}}t.bbox=n,t.feature=function(t,e){return&quot;string&quot;==typeof e&amp;&amp;(e=t.objects[e]),&quot;GeometryCollection&quot;===e.type?{type:&quot;FeatureCollection&quot;,features:e.geometries.map((function(e){return i(t,e)}))}:i(t,e)},t.merge=function(t){return a(t,c.apply(this,arguments))},t.mergeArcs=c,t.mesh=function(t){return a(t,s.apply(this,arguments))},t.meshArcs=s,t.neighbors=function(t){var e={},r=t.map((function(){return[]}));function n(t,r){t.forEach((function(t){t&lt;0&amp;&amp;(t=~t);var n=e[t];n?n.push(r):e[t]=[r]}))}function i(t,e){t.forEach((function(t){n(t,e)}))}var a={LineString:n,MultiLineString:i,Polygon:i,MultiPolygon:function(t,e){t.forEach((function(t){i(t,e)}))}};for(var o in t.forEach((function t(e,r){&quot;GeometryCollection&quot;===e.type?e.geometries.forEach((function(e){t(e,r)})):e.type in a&amp;&amp;a[e.type](e.arcs,r)})),e)for(var s=e[o],l=s.length,c=0;c&lt;l;++c)for(var f=c+1;f&lt;l;++f){var h,p=s[c],d=s[f];(h=r[p])[o=u(h,d)]!==d&amp;&amp;h.splice(o,0,d),(h=r[d])[o=u(h,p)]!==p&amp;&amp;h.splice(o,0,p)}return r},t.quantize=function(t,e){if(t.transform)throw new Error(&quot;already quantized&quot;);if(e&amp;&amp;e.scale)l=t.bbox;else{if(!((r=Math.floor(e))&gt;=2))throw new Error(&quot;n must be \u22652&quot;);var r,i=(l=t.bbox||n(t))[0],a=l[1],o=l[2],s=l[3];e={scale:[o-i?(o-i)/(r-1):1,s-a?(s-a)/(r-1):1],translate:[i,a]}}var l,c,u=f(e),h=t.objects,p={};function d(t){return u(t)}function g(t){var e;switch(t.type){case&quot;GeometryCollection&quot;:e={type:&quot;GeometryCollection&quot;,geometries:t.geometries.map(g)};break;case&quot;Point&quot;:e={type:&quot;Point&quot;,coordinates:d(t.coordinates)};break;case&quot;MultiPoint&quot;:e={type:&quot;MultiPoint&quot;,coordinates:t.coordinates.map(d)};break;default:return t}return null!=t.id&amp;&amp;(e.id=t.id),null!=t.bbox&amp;&amp;(e.bbox=t.bbox),null!=t.properties&amp;&amp;(e.properties=t.properties),e}for(c in h)p[c]=g(h[c]);return{type:&quot;Topology&quot;,bbox:l,transform:e,objects:p,arcs:t.arcs.map((function(t){var e,r=0,n=1,i=t.length,a=new Array(i);for(a[0]=u(t[0],0);++r&lt;i;)((e=u(t[r],r))[0]||e[1])&amp;&amp;(a[n++]=e);return 1===n&amp;&amp;(a[n++]=[0,0]),a.length=n,a}))}},t.transform=r,t.untransform=f,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],580:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){if(t&lt;0)return[];if(0===t)return[[0]];for(var e=0|Math.round(a(t+1)),r=[],o=0;o&lt;e;++o){for(var s=n.unrank(t,o),l=[0],c=0,u=0;u&lt;s.length;++u)c+=1&lt;&lt;s[u],l.push(c);i(s)&lt;1&amp;&amp;(l[0]=c,l[t]=0),r.push(l)}return r};var n=t(&quot;permutation-rank&quot;),i=t(&quot;permutation-parity&quot;),a=t(&quot;gamma&quot;)},{gamma:248,&quot;permutation-parity&quot;:509,&quot;permutation-rank&quot;:510}],581:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.up||[0,1,0],n=t.right||f(r),i=t.radius||1,a=t.theta||0,u=t.phi||0;if(e=[].slice.call(e,0,3),r=[].slice.call(r,0,3),s(r,r),n=[].slice.call(n,0,3),s(n,n),&quot;eye&quot;in t){var p=t.eye,d=[p[0]-e[0],p[1]-e[1],p[2]-e[2]];o(n,d,r),c(n[0],n[1],n[2])&lt;1e-6?n=f(r):s(n,n),i=c(d[0],d[1],d[2]);var g=l(r,d)/i,m=l(n,d)/i;u=Math.acos(g),a=Math.acos(m)}return i=Math.log(i),new h(t.zoomMin,t.zoomMax,e,r,n,i,a,u)};var n=t(&quot;filtered-vector&quot;),i=t(&quot;gl-mat4/invert&quot;),a=t(&quot;gl-mat4/rotate&quot;),o=t(&quot;gl-vec3/cross&quot;),s=t(&quot;gl-vec3/normalize&quot;),l=t(&quot;gl-vec3/dot&quot;);function c(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function u(t){return Math.min(1,Math.max(-1,t))}function f(t){var e=Math.abs(t[0]),r=Math.abs(t[1]),n=Math.abs(t[2]),i=[0,0,0];e&gt;Math.max(r,n)?i[2]=1:r&gt;Math.max(e,n)?i[0]=1:i[1]=1;for(var a=0,o=0,l=0;l&lt;3;++l)a+=t[l]*t[l],o+=i[l]*t[l];for(l=0;l&lt;3;++l)i[l]-=o/a*t[l];return s(i,i),i}function h(t,e,r,i,a,o,s,l){this.center=n(r),this.up=n(i),this.right=n(a),this.radius=n([o]),this.angle=n([s,l]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(t,e),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var c=0;c&lt;16;++c)this.computedMatrix[c]=.5;this.recalcMatrix(0)}var p=h.prototype;p.setDistanceLimits=function(t,e){t=t&gt;0?Math.log(t):-1/0,e=e&gt;0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},p.getDistanceLimits=function(t){var e=this.radius.bounds[0];return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},p.recalcMatrix=function(t){this.center.curve(t),this.up.curve(t),this.right.curve(t),this.radius.curve(t),this.angle.curve(t);for(var e=this.computedUp,r=this.computedRight,n=0,i=0,a=0;a&lt;3;++a)i+=e[a]*r[a],n+=e[a]*e[a];var l=Math.sqrt(n),u=0;for(a=0;a&lt;3;++a)r[a]-=e[a]*i/n,u+=r[a]*r[a],e[a]/=l;var f=Math.sqrt(u);for(a=0;a&lt;3;++a)r[a]/=f;var h=this.computedToward;o(h,e,r),s(h,h);var p=Math.exp(this.computedRadius[0]),d=this.computedAngle[0],g=this.computedAngle[1],m=Math.cos(d),v=Math.sin(d),y=Math.cos(g),x=Math.sin(g),b=this.computedCenter,_=m*y,w=v*y,T=x,k=-m*x,M=-v*x,A=y,S=this.computedEye,E=this.computedMatrix;for(a=0;a&lt;3;++a){var C=_*r[a]+w*h[a]+T*e[a];E[4*a+1]=k*r[a]+M*h[a]+A*e[a],E[4*a+2]=C,E[4*a+3]=0}var L=E[1],I=E[5],P=E[9],z=E[2],O=E[6],D=E[10],R=I*D-P*O,F=P*z-L*D,B=L*O-I*z,N=c(R,F,B);R/=N,F/=N,B/=N,E[0]=R,E[4]=F,E[8]=B;for(a=0;a&lt;3;++a)S[a]=b[a]+E[2+4*a]*p;for(a=0;a&lt;3;++a){u=0;for(var j=0;j&lt;3;++j)u+=E[a+4*j]*S[j];E[12+a]=-u}E[15]=1},p.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n&lt;16;++n)e[n]=r[n];return e}return r};var d=[0,0,0];p.rotate=function(t,e,r,n){if(this.angle.move(t,e,r),n){this.recalcMatrix(t);var i=this.computedMatrix;d[0]=i[2],d[1]=i[6],d[2]=i[10];for(var o=this.computedUp,s=this.computedRight,l=this.computedToward,c=0;c&lt;3;++c)i[4*c]=o[c],i[4*c+1]=s[c],i[4*c+2]=l[c];a(i,i,n,d);for(c=0;c&lt;3;++c)o[c]=i[4*c],s[c]=i[4*c+1];this.up.set(t,o[0],o[1],o[2]),this.right.set(t,s[0],s[1],s[2])}},p.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=(Math.exp(this.computedRadius[0]),i[1]),o=i[5],s=i[9],l=c(a,o,s);a/=l,o/=l,s/=l;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=c(u-=a*p,f-=o*p,h-=s*p),g=(u/=d)*e+a*r,m=(f/=d)*e+o*r,v=(h/=d)*e+s*r;this.center.move(t,g,m,v);var y=Math.exp(this.computedRadius[0]);y=Math.max(1e-4,y+n),this.radius.set(t,Math.log(y))},p.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},p.setMatrix=function(t,e,r,n){var a=1;&quot;number&quot;==typeof r&amp;&amp;(a=0|r),(a&lt;0||a&gt;3)&amp;&amp;(a=1);var o=(a+2)%3;e||(this.recalcMatrix(t),e=this.computedMatrix);var s=e[a],l=e[a+4],f=e[a+8];if(n){var h=Math.abs(s),p=Math.abs(l),d=Math.abs(f),g=Math.max(h,p,d);h===g?(s=s&lt;0?-1:1,l=f=0):d===g?(f=f&lt;0?-1:1,s=l=0):(l=l&lt;0?-1:1,s=f=0)}else{var m=c(s,l,f);s/=m,l/=m,f/=m}var v,y,x=e[o],b=e[o+4],_=e[o+8],w=x*s+b*l+_*f,T=c(x-=s*w,b-=l*w,_-=f*w),k=l*(_/=T)-f*(b/=T),M=f*(x/=T)-s*_,A=s*b-l*x,S=c(k,M,A);if(k/=S,M/=S,A/=S,this.center.jump(t,H,G,Y),this.radius.idle(t),this.up.jump(t,s,l,f),this.right.jump(t,x,b,_),2===a){var E=e[1],C=e[5],L=e[9],I=E*x+C*b+L*_,P=E*k+C*M+L*A;v=R&lt;0?-Math.PI/2:Math.PI/2,y=Math.atan2(P,I)}else{var z=e[2],O=e[6],D=e[10],R=z*s+O*l+D*f,F=z*x+O*b+D*_,B=z*k+O*M+D*A;v=Math.asin(u(R)),y=Math.atan2(B,F)}this.angle.jump(t,y,v),this.recalcMatrix(t);var N=e[2],j=e[6],U=e[10],V=this.computedMatrix;i(V,e);var q=V[15],H=V[12]/q,G=V[13]/q,Y=V[14]/q,W=Math.exp(this.computedRadius[0]);this.center.jump(t,H-N*W,G-j*W,Y-U*W)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(t){this.center.idle(t),this.up.idle(t),this.right.idle(t),this.radius.idle(t),this.angle.idle(t)},p.flush=function(t){this.center.flush(t),this.up.flush(t),this.right.flush(t),this.radius.flush(t),this.angle.flush(t)},p.setDistance=function(t,e){e&gt;0&amp;&amp;this.radius.set(t,Math.log(e))},p.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||this.computedCenter;var i=(n=n||this.computedUp)[0],a=n[1],o=n[2],s=c(i,a,o);if(!(s&lt;1e-6)){i/=s,a/=s,o/=s;var l=e[0]-r[0],f=e[1]-r[1],h=e[2]-r[2],p=c(l,f,h);if(!(p&lt;1e-6)){l/=p,f/=p,h/=p;var d=this.computedRight,g=d[0],m=d[1],v=d[2],y=i*g+a*m+o*v,x=c(g-=y*i,m-=y*a,v-=y*o);if(!(x&lt;.01&amp;&amp;(x=c(g=a*h-o*f,m=o*l-i*h,v=i*f-a*l))&lt;1e-6)){g/=x,m/=x,v/=x,this.up.set(t,i,a,o),this.right.set(t,g,m,v),this.center.set(t,r[0],r[1],r[2]),this.radius.set(t,Math.log(p));var b=a*v-o*m,_=o*g-i*v,w=i*m-a*g,T=c(b,_,w),k=i*l+a*f+o*h,M=g*l+m*f+v*h,A=(b/=T)*l+(_/=T)*f+(w/=T)*h,S=Math.asin(u(k)),E=Math.atan2(A,M),C=this.angle._state,L=C[C.length-1],I=C[C.length-2];L%=2*Math.PI;var P=Math.abs(L+2*Math.PI-E),z=Math.abs(L-E),O=Math.abs(L-2*Math.PI-E);P&lt;z&amp;&amp;(L+=2*Math.PI),O&lt;z&amp;&amp;(L-=2*Math.PI),this.angle.jump(this.angle.lastT(),L,I),this.angle.set(t,E,S)}}}}},{&quot;filtered-vector&quot;:242,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/rotate&quot;:299,&quot;gl-vec3/cross&quot;:365,&quot;gl-vec3/dot&quot;:370,&quot;gl-vec3/normalize&quot;:387}],582:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var i=t*e,a=n*t,o=a-(a-t),s=t-o,l=n*e,c=l-(l-e),u=e-c,f=s*u-(i-o*c-s*c-o*u);if(r)return r[0]=f,r[1]=i,r;return[f,i]};var n=+(Math.pow(2,27)+1)},{}],583:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n=t+e,i=n-t,a=e-i,o=t-(n-i);if(r)return r[0]=o+a,r[1]=n,r;return[o+a,n]}},{}],584:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../prototype/is&quot;);e.exports=function(t){if(&quot;function&quot;!=typeof t)return!1;if(!hasOwnProperty.call(t,&quot;length&quot;))return!1;try{if(&quot;number&quot;!=typeof t.length)return!1;if(&quot;function&quot;!=typeof t.call)return!1;if(&quot;function&quot;!=typeof t.apply)return!1}catch(t){return!1}return!n(t)}},{&quot;../prototype/is&quot;:591}],585:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i=t(&quot;../object/is&quot;),a=t(&quot;../string/coerce&quot;),o=t(&quot;./to-short-string&quot;),s=function(t,e){return t.replace(&quot;%v&quot;,o(e))};e.exports=function(t,e,r){if(!i(r))throw new TypeError(s(e,t));if(!n(t)){if(&quot;default&quot;in r)return r.default;if(r.isOptional)return null}var o=a(r.errorMessage);throw n(o)||(o=e),new TypeError(s(o,t))}},{&quot;../object/is&quot;:588,&quot;../string/coerce&quot;:592,&quot;../value/is&quot;:594,&quot;./to-short-string&quot;:587}],586:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){try{return t.toString()}catch(e){try{return String(t)}catch(t){return null}}}},{}],587:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./safe-to-string&quot;),i=/[\n\r\u2028\u2029]/g;e.exports=function(t){var e=n(t);return null===e?&quot;&lt;Non-coercible to string value&gt;&quot;:(e.length&gt;100&amp;&amp;(e=e.slice(0,99)+&quot;\u2026&quot;),e=e.replace(i,(function(t){switch(t){case&quot;\n&quot;:return&quot;\\n&quot;;case&quot;\r&quot;:return&quot;\\r&quot;;case&quot;\u2028&quot;:return&quot;\\u2028&quot;;case&quot;\u2029&quot;:return&quot;\\u2029&quot;;default:throw new Error(&quot;Unexpected character&quot;)}})))}},{&quot;./safe-to-string&quot;:586}],588:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i={object:!0,function:!0,undefined:!0};e.exports=function(t){return!!n(t)&amp;&amp;hasOwnProperty.call(i,typeof t)}},{&quot;../value/is&quot;:594}],589:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/resolve-exception&quot;),i=t(&quot;./is&quot;);e.exports=function(t){return i(t)?t:n(t,&quot;%v is not a plain function&quot;,arguments[1])}},{&quot;../lib/resolve-exception&quot;:585,&quot;./is&quot;:590}],590:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../function/is&quot;),i=/^\s*class[\s{/}]/,a=Function.prototype.toString;e.exports=function(t){return!!n(t)&amp;&amp;!i.test(a.call(t))}},{&quot;../function/is&quot;:584}],591:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../object/is&quot;);e.exports=function(t){if(!n(t))return!1;try{return!!t.constructor&amp;&amp;t.constructor.prototype===t}catch(t){return!1}}},{&quot;../object/is&quot;:588}],592:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i=t(&quot;../object/is&quot;),a=Object.prototype.toString;e.exports=function(t){if(!n(t))return null;if(i(t)){var e=t.toString;if(&quot;function&quot;!=typeof e)return null;if(e===a)return null}try{return&quot;&quot;+t}catch(t){return null}}},{&quot;../object/is&quot;:588,&quot;../value/is&quot;:594}],593:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/resolve-exception&quot;),i=t(&quot;./is&quot;);e.exports=function(t){return i(t)?t:n(t,&quot;Cannot use %v&quot;,arguments[1])}},{&quot;../lib/resolve-exception&quot;:585,&quot;./is&quot;:594}],594:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return null!=t}},{}],595:[function(t,e,r){(function(e){(function(){&quot;use strict&quot;;var n=t(&quot;bit-twiddle&quot;),i=t(&quot;dup&quot;),a=t(&quot;buffer&quot;).Buffer;e.__TYPEDARRAY_POOL||(e.__TYPEDARRAY_POOL={UINT8:i([32,0]),UINT16:i([32,0]),UINT32:i([32,0]),BIGUINT64:i([32,0]),INT8:i([32,0]),INT16:i([32,0]),INT32:i([32,0]),BIGINT64:i([32,0]),FLOAT:i([32,0]),DOUBLE:i([32,0]),DATA:i([32,0]),UINT8C:i([32,0]),BUFFER:i([32,0])});var o=&quot;undefined&quot;!=typeof Uint8ClampedArray,s=&quot;undefined&quot;!=typeof BigUint64Array,l=&quot;undefined&quot;!=typeof BigInt64Array,c=e.__TYPEDARRAY_POOL;c.UINT8C||(c.UINT8C=i([32,0])),c.BIGUINT64||(c.BIGUINT64=i([32,0])),c.BIGINT64||(c.BIGINT64=i([32,0])),c.BUFFER||(c.BUFFER=i([32,0]));var u=c.DATA,f=c.BUFFER;function h(t){if(t){var e=t.length||t.byteLength,r=n.log2(e);u[r].push(t)}}function p(t){t=n.nextPow2(t);var e=n.log2(t),r=u[e];return r.length&gt;0?r.pop():new ArrayBuffer(t)}function d(t){return new Uint8Array(p(t),0,t)}function g(t){return new Uint16Array(p(2*t),0,t)}function m(t){return new Uint32Array(p(4*t),0,t)}function v(t){return new Int8Array(p(t),0,t)}function y(t){return new Int16Array(p(2*t),0,t)}function x(t){return new Int32Array(p(4*t),0,t)}function b(t){return new Float32Array(p(4*t),0,t)}function _(t){return new Float64Array(p(8*t),0,t)}function w(t){return o?new Uint8ClampedArray(p(t),0,t):d(t)}function T(t){return s?new BigUint64Array(p(8*t),0,t):null}function k(t){return l?new BigInt64Array(p(8*t),0,t):null}function M(t){return new DataView(p(t),0,t)}function A(t){t=n.nextPow2(t);var e=n.log2(t),r=f[e];return r.length&gt;0?r.pop():new a(t)}r.free=function(t){if(a.isBuffer(t))f[n.log2(t.length)].push(t);else{if(&quot;[object ArrayBuffer]&quot;!==Object.prototype.toString.call(t)&amp;&amp;(t=t.buffer),!t)return;var e=t.length||t.byteLength,r=0|n.log2(e);u[r].push(t)}},r.freeUint8=r.freeUint16=r.freeUint32=r.freeBigUint64=r.freeInt8=r.freeInt16=r.freeInt32=r.freeBigInt64=r.freeFloat32=r.freeFloat=r.freeFloat64=r.freeDouble=r.freeUint8Clamped=r.freeDataView=function(t){h(t.buffer)},r.freeArrayBuffer=h,r.freeBuffer=function(t){f[n.log2(t.length)].push(t)},r.malloc=function(t,e){if(void 0===e||&quot;arraybuffer&quot;===e)return p(t);switch(e){case&quot;uint8&quot;:return d(t);case&quot;uint16&quot;:return g(t);case&quot;uint32&quot;:return m(t);case&quot;int8&quot;:return v(t);case&quot;int16&quot;:return y(t);case&quot;int32&quot;:return x(t);case&quot;float&quot;:case&quot;float32&quot;:return b(t);case&quot;double&quot;:case&quot;float64&quot;:return _(t);case&quot;uint8_clamped&quot;:return w(t);case&quot;bigint64&quot;:return k(t);case&quot;biguint64&quot;:return T(t);case&quot;buffer&quot;:return A(t);case&quot;data&quot;:case&quot;dataview&quot;:return M(t);default:return null}return null},r.mallocArrayBuffer=p,r.mallocUint8=d,r.mallocUint16=g,r.mallocUint32=m,r.mallocInt8=v,r.mallocInt16=y,r.mallocInt32=x,r.mallocFloat32=r.mallocFloat=b,r.mallocFloat64=r.mallocDouble=_,r.mallocUint8Clamped=w,r.mallocBigUint64=T,r.mallocBigInt64=k,r.mallocDataView=M,r.mallocBuffer=A,r.clearCache=function(){for(var t=0;t&lt;32;++t)c.UINT8[t].length=0,c.UINT16[t].length=0,c.UINT32[t].length=0,c.INT8[t].length=0,c.INT16[t].length=0,c.INT32[t].length=0,c.FLOAT[t].length=0,c.DOUBLE[t].length=0,c.BIGUINT64[t].length=0,c.BIGINT64[t].length=0,c.UINT8C[t].length=0,u[t].length=0,f[t].length=0}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;bit-twiddle&quot;:97,buffer:111,dup:176}],596:[function(t,e,r){&quot;use strict&quot;;function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e&lt;t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n;var i=n.prototype;Object.defineProperty(i,&quot;length&quot;,{get:function(){return this.roots.length}}),i.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},i.find=function(t){for(var e=t,r=this.roots;r[t]!==t;)t=r[t];for(;r[e]!==t;){var n=r[e];r[e]=t,e=n}return t},i.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o&lt;s?a[r]=n:s&lt;o?a[n]=r:(a[n]=r,++i[r])}}},{}],597:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return 0===t.length?t:e?(r||t.sort(e),function(t,e){for(var r=1,n=t.length,i=t[0],a=t[0],o=1;o&lt;n;++o)if(a=i,e(i=t[o],a)){if(o===r){r++;continue}t[r++]=i}return t.length=r,t}(t,e)):(r||t.sort(),function(t){for(var e=1,r=t.length,n=t[0],i=t[0],a=1;a&lt;r;++a,i=n)if(i=n,(n=t[a])!==i){if(a===e){e++;continue}t[e++]=n}return t.length=e,t}(t))}},{}],598:[function(t,e,r){var n=/[\'\&quot;]/;e.exports=function(t){return t?(n.test(t.charAt(0))&amp;&amp;(t=t.substr(1)),n.test(t.charAt(t.length-1))&amp;&amp;(t=t.substr(0,t.length-1)),t):&quot;&quot;}},{}],599:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){Array.isArray(r)||(r=[].slice.call(arguments,2));for(var n=0,i=r.length;n&lt;i;n++){var a=r[n];for(var o in a)if((void 0===e[o]||Array.isArray(e[o])||t[o]!==e[o])&amp;&amp;o in e){var s;if(!0===a[o])s=e[o];else{if(!1===a[o])continue;if(&quot;function&quot;==typeof a[o]&amp;&amp;void 0===(s=a[o](e[o],t,e)))continue}t[o]=s}}return t}},{}],600:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){&quot;object&quot;==typeof e&amp;&amp;null!==e||(e={});return n(t,e.canvas||i,e.context||a,e)};var n=t(&quot;./lib/vtext&quot;),i=null,a=null;&quot;undefined&quot;!=typeof document&amp;&amp;((i=document.createElement(&quot;canvas&quot;)).width=8192,i.height=1024,a=i.getContext(&quot;2d&quot;))},{&quot;./lib/vtext&quot;:601}],601:[function(t,e,r){e.exports=function(t,e,r,n){var a=64,o=1.25,s={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};n&amp;&amp;(n.size&amp;&amp;n.size&gt;0&amp;&amp;(a=n.size),n.lineSpacing&amp;&amp;n.lineSpacing&gt;0&amp;&amp;(o=n.lineSpacing),n.styletags&amp;&amp;n.styletags.breaklines&amp;&amp;(s.breaklines=!!n.styletags.breaklines),n.styletags&amp;&amp;n.styletags.bolds&amp;&amp;(s.bolds=!!n.styletags.bolds),n.styletags&amp;&amp;n.styletags.italics&amp;&amp;(s.italics=!!n.styletags.italics),n.styletags&amp;&amp;n.styletags.subscripts&amp;&amp;(s.subscripts=!!n.styletags.subscripts),n.styletags&amp;&amp;n.styletags.superscripts&amp;&amp;(s.superscripts=!!n.styletags.superscripts));return r.font=[n.fontStyle,n.fontVariant,n.fontWeight,a+&quot;px&quot;,n.font].filter((function(t){return t})).join(&quot; &quot;),r.textAlign=&quot;start&quot;,r.textBaseline=&quot;alphabetic&quot;,r.direction=&quot;ltr&quot;,h(function(t,e,r,n,a,o){r=r.replace(/\n/g,&quot;&quot;),r=!0===o.breaklines?r.replace(/\&lt;br\&gt;/g,&quot;\n&quot;):r.replace(/\&lt;br\&gt;/g,&quot; &quot;);var s=&quot;&quot;,l=[];for(p=0;p&lt;r.length;++p)l[p]=s;!0===o.bolds&amp;&amp;(l=c(&quot;b&quot;,&quot;b|&quot;,r,l));!0===o.italics&amp;&amp;(l=c(&quot;i&quot;,&quot;i|&quot;,r,l));!0===o.superscripts&amp;&amp;(l=c(&quot;sup&quot;,&quot;+1&quot;,r,l));!0===o.subscripts&amp;&amp;(l=c(&quot;sub&quot;,&quot;-1&quot;,r,l));var u=[],f=&quot;&quot;;for(p=0;p&lt;r.length;++p)null!==l[p]&amp;&amp;(f+=r[p],u.push(l[p]));var h,p,d,g,m,v=f.split(&quot;\n&quot;),y=v.length,x=Math.round(a*n),b=n,_=2*n,w=0,T=y*x+_;t.height&lt;T&amp;&amp;(t.height=T);e.fillStyle=&quot;#000&quot;,e.fillRect(0,0,t.width,t.height),e.fillStyle=&quot;#fff&quot;;var k=0,M=&quot;&quot;;function A(){if(&quot;&quot;!==M){var t=e.measureText(M).width;e.fillText(M,b+d,_+g),d+=t}}function S(){return Math.round(m)+&quot;px &quot;}function E(t,r){var n=&quot;&quot;+e.font;if(!0===o.subscripts){var i=t.indexOf(&quot;-&quot;),a=r.indexOf(&quot;-&quot;),s=i&gt;-1?parseInt(t[1+i]):0,l=a&gt;-1?parseInt(r[1+a]):0;s!==l&amp;&amp;(n=n.replace(S(),&quot;?px &quot;),m*=Math.pow(.75,l-s),n=n.replace(&quot;?px &quot;,S())),g+=.25*x*(l-s)}if(!0===o.superscripts){var c=t.indexOf(&quot;+&quot;),u=r.indexOf(&quot;+&quot;),f=c&gt;-1?parseInt(t[1+c]):0,h=u&gt;-1?parseInt(r[1+u]):0;f!==h&amp;&amp;(n=n.replace(S(),&quot;?px &quot;),m*=Math.pow(.75,h-f),n=n.replace(&quot;?px &quot;,S())),g-=.25*x*(h-f)}if(!0===o.bolds){var p=t.indexOf(&quot;b|&quot;)&gt;-1,d=r.indexOf(&quot;b|&quot;)&gt;-1;!p&amp;&amp;d&amp;&amp;(n=v?n.replace(&quot;italic &quot;,&quot;italic bold &quot;):&quot;bold &quot;+n),p&amp;&amp;!d&amp;&amp;(n=n.replace(&quot;bold &quot;,&quot;&quot;))}if(!0===o.italics){var v=t.indexOf(&quot;i|&quot;)&gt;-1,y=r.indexOf(&quot;i|&quot;)&gt;-1;!v&amp;&amp;y&amp;&amp;(n=&quot;italic &quot;+n),v&amp;&amp;!y&amp;&amp;(n=n.replace(&quot;italic &quot;,&quot;&quot;))}e.font=n}for(h=0;h&lt;y;++h){var C=v[h]+&quot;\n&quot;;for(d=0,g=h*x,m=n,M=&quot;&quot;,p=0;p&lt;C.length;++p){var L=p+k&lt;u.length?u[p+k]:u[u.length-1];s===L?M+=C[p]:(A(),M=C[p],void 0!==L&amp;&amp;(E(s,L),s=L))}A(),k+=C.length;var I=0|Math.round(d+2*b);w&lt;I&amp;&amp;(w=I)}var P=w,z=_+x*y;return i(e.getImageData(0,0,P,z).data,[z,P,4]).pick(-1,-1,0).transpose(1,0)}(e,r,t,a,o,s),n,a)},e.exports.processPixels=h;var n=t(&quot;surface-nets&quot;),i=t(&quot;ndarray&quot;),a=t(&quot;simplify-planar-graph&quot;),o=t(&quot;clean-pslg&quot;),s=t(&quot;cdt2d&quot;),l=t(&quot;planar-graph-to-polyline&quot;);function c(t,e,r,n){for(var i=&quot;&lt;&quot;+t+&quot;&gt;&quot;,a=&quot;&lt;/&quot;+t+&quot;&gt;&quot;,o=i.length,s=a.length,l=&quot;+&quot;===e[0]||&quot;-&quot;===e[0],c=0,u=-s;c&gt;-1&amp;&amp;-1!==(c=r.indexOf(i,c))&amp;&amp;-1!==(u=r.indexOf(a,c+o))&amp;&amp;!(u&lt;=c);){for(var f=c;f&lt;u+s;++f)if(f&lt;c+o||f&gt;=u)n[f]=null,r=r.substr(0,f)+&quot; &quot;+r.substr(f+1);else if(null!==n[f]){var h=n[f].indexOf(e[0]);-1===h?n[f]+=e:l&amp;&amp;(n[f]=n[f].substr(0,h+1)+(1+parseInt(n[f][h+1]))+n[f].substr(h+2))}var p=c+o,d=r.substr(p,u-p).indexOf(i);c=-1!==d?d:u+s}return n}function u(t,e){var r=n(t,128);return e?a(r.cells,r.positions,.25):{edges:r.cells,positions:r.positions}}function f(t,e,r,n){var i=u(t,n),a=function(t,e,r){for(var n=e.textAlign||&quot;start&quot;,i=e.textBaseline||&quot;alphabetic&quot;,a=[1&lt;&lt;30,1&lt;&lt;30],o=[0,0],s=t.length,l=0;l&lt;s;++l)for(var c=t[l],u=0;u&lt;2;++u)a[u]=0|Math.min(a[u],c[u]),o[u]=0|Math.max(o[u],c[u]);var f=0;switch(n){case&quot;center&quot;:f=-.5*(a[0]+o[0]);break;case&quot;right&quot;:case&quot;end&quot;:f=-o[0];break;case&quot;left&quot;:case&quot;start&quot;:f=-a[0];break;default:throw new Error(&quot;vectorize-text: Unrecognized textAlign: '&quot;+n+&quot;'&quot;)}var h=0;switch(i){case&quot;hanging&quot;:case&quot;top&quot;:h=-a[1];break;case&quot;middle&quot;:h=-.5*(a[1]+o[1]);break;case&quot;alphabetic&quot;:case&quot;ideographic&quot;:h=-3*r;break;case&quot;bottom&quot;:h=-o[1];break;default:throw new Error(&quot;vectorize-text: Unrecoginized textBaseline: '&quot;+i+&quot;'&quot;)}var p=1/r;return&quot;lineHeight&quot;in e?p*=+e.lineHeight:&quot;width&quot;in e?p=e.width/(o[0]-a[0]):&quot;height&quot;in e&amp;&amp;(p=e.height/(o[1]-a[1])),t.map((function(t){return[p*(t[0]+f),p*(t[1]+h)]}))}(i.positions,e,r),c=i.edges,f=&quot;ccw&quot;===e.orientation;if(o(a,c),e.polygons||e.polygon||e.polyline){for(var h=l(c,a),p=new Array(h.length),d=0;d&lt;h.length;++d){for(var g=h[d],m=new Array(g.length),v=0;v&lt;g.length;++v){for(var y=g[v],x=new Array(y.length),b=0;b&lt;y.length;++b)x[b]=a[y[b]].slice();f&amp;&amp;x.reverse(),m[v]=x}p[d]=m}return p}return e.triangles||e.triangulate||e.triangle?{cells:s(a,c,{delaunay:!1,exterior:!1,interior:!0}),positions:a}:{edges:c,positions:a}}function h(t,e,r){try{return f(t,e,r,!0)}catch(t){}try{return f(t,e,r,!1)}catch(t){}return e.polygons||e.polyline||e.polygon?[]:e.triangles||e.triangulate||e.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}},{cdt2d:112,&quot;clean-pslg&quot;:121,ndarray:495,&quot;planar-graph-to-polyline&quot;:514,&quot;simplify-planar-graph&quot;:562,&quot;surface-nets&quot;:570}],602:[function(t,e,r){!function(){&quot;use strict&quot;;if(&quot;undefined&quot;==typeof ses||!ses.ok||ses.ok()){&quot;undefined&quot;!=typeof ses&amp;&amp;(ses.weakMapPermitHostObjects=g);var t=!1;if(&quot;function&quot;==typeof WeakMap){var r=WeakMap;if(&quot;undefined&quot;!=typeof navigator&amp;&amp;/Firefox/.test(navigator.userAgent));else{var n=new r,i=Object.freeze({});if(n.set(i,1),1===n.get(i))return void(e.exports=WeakMap);t=!0}}Object.prototype.hasOwnProperty;var a=Object.getOwnPropertyNames,o=Object.defineProperty,s=Object.isExtensible,l=&quot;weakmap:ident:&quot;+Math.random()+&quot;___&quot;;if(&quot;undefined&quot;!=typeof crypto&amp;&amp;&quot;function&quot;==typeof crypto.getRandomValues&amp;&amp;&quot;function&quot;==typeof ArrayBuffer&amp;&amp;&quot;function&quot;==typeof Uint8Array){var c=new ArrayBuffer(25),u=new Uint8Array(c);crypto.getRandomValues(u),l=&quot;weakmap:rand:&quot;+Array.prototype.map.call(u,(function(t){return(t%36).toString(36)})).join(&quot;&quot;)+&quot;___&quot;}if(o(Object,&quot;getOwnPropertyNames&quot;,{value:function(t){return a(t).filter(m)}}),&quot;getPropertyNames&quot;in Object){var f=Object.getPropertyNames;o(Object,&quot;getPropertyNames&quot;,{value:function(t){return f(t).filter(m)}})}!function(){var t=Object.freeze;o(Object,&quot;freeze&quot;,{value:function(e){return v(e),t(e)}});var e=Object.seal;o(Object,&quot;seal&quot;,{value:function(t){return v(t),e(t)}});var r=Object.preventExtensions;o(Object,&quot;preventExtensions&quot;,{value:function(t){return v(t),r(t)}})}();var h=!1,p=0,d=function(){this instanceof d||x();var t=[],e=[],r=p++;return Object.create(d.prototype,{get___:{value:y((function(n,i){var a,o=v(n);return o?r in o?o[r]:i:(a=t.indexOf(n))&gt;=0?e[a]:i}))},has___:{value:y((function(e){var n=v(e);return n?r in n:t.indexOf(e)&gt;=0}))},set___:{value:y((function(n,i){var a,o=v(n);return o?o[r]=i:(a=t.indexOf(n))&gt;=0?e[a]=i:(a=t.length,e[a]=i,t[a]=n),this}))},delete___:{value:y((function(n){var i,a,o=v(n);return o?r in o&amp;&amp;delete o[r]:!((i=t.indexOf(n))&lt;0)&amp;&amp;(a=t.length-1,t[i]=void 0,e[i]=e[a],t[i]=t[a],t.length=a,e.length=a,!0)}))}})};d.prototype=Object.create(Object.prototype,{get:{value:function(t,e){return this.get___(t,e)},writable:!0,configurable:!0},has:{value:function(t){return this.has___(t)},writable:!0,configurable:!0},set:{value:function(t,e){return this.set___(t,e)},writable:!0,configurable:!0},delete:{value:function(t){return this.delete___(t)},writable:!0,configurable:!0}}),&quot;function&quot;==typeof r?function(){function n(){this instanceof d||x();var e,n=new r,i=void 0,a=!1;return e=t?function(t,e){return n.set(t,e),n.has(t)||(i||(i=new d),i.set(t,e)),this}:function(t,e){if(a)try{n.set(t,e)}catch(r){i||(i=new d),i.set___(t,e)}else n.set(t,e);return this},Object.create(d.prototype,{get___:{value:y((function(t,e){return i?n.has(t)?n.get(t):i.get___(t,e):n.get(t,e)}))},has___:{value:y((function(t){return n.has(t)||!!i&amp;&amp;i.has___(t)}))},set___:{value:y(e)},delete___:{value:y((function(t){var e=!!n.delete(t);return i&amp;&amp;i.delete___(t)||e}))},permitHostObjects___:{value:y((function(t){if(t!==g)throw new Error(&quot;bogus call to permitHostObjects___&quot;);a=!0}))}})}t&amp;&amp;&quot;undefined&quot;!=typeof Proxy&amp;&amp;(Proxy=void 0),n.prototype=d.prototype,e.exports=n,Object.defineProperty(WeakMap.prototype,&quot;constructor&quot;,{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(&quot;undefined&quot;!=typeof Proxy&amp;&amp;(Proxy=void 0),e.exports=d)}function g(t){t.permitHostObjects___&amp;&amp;t.permitHostObjects___(g)}function m(t){return!(&quot;weakmap:&quot;==t.substr(0,&quot;weakmap:&quot;.length)&amp;&amp;&quot;___&quot;===t.substr(t.length-3))}function v(t){if(t!==Object(t))throw new TypeError(&quot;Not an object: &quot;+t);var e=t[l];if(e&amp;&amp;e.key===t)return e;if(s(t)){e={key:t};try{return o(t,l,{value:e,writable:!1,enumerable:!1,configurable:!1}),e}catch(t){return}}}function y(t){return t.prototype=null,Object.freeze(t)}function x(){h||&quot;undefined&quot;==typeof console||(h=!0,console.warn(&quot;WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future.&quot;))}}()},{}],603:[function(t,e,r){var n=t(&quot;./hidden-store.js&quot;);e.exports=function(){var t={};return function(e){if((&quot;object&quot;!=typeof e||null===e)&amp;&amp;&quot;function&quot;!=typeof e)throw new Error(&quot;Weakmap-shim: Key must be object&quot;);var r=e.valueOf(t);return r&amp;&amp;r.identity===t?r:n(e,t)}}},{&quot;./hidden-store.js&quot;:604}],604:[function(t,e,r){e.exports=function(t,e){var r={identity:e},n=t.valueOf;return Object.defineProperty(t,&quot;valueOf&quot;,{value:function(t){return t!==e?n.apply(this,arguments):r},writable:!0}),r}},{}],605:[function(t,e,r){var n=t(&quot;./create-store.js&quot;);e.exports=function(){var t=n();return{get:function(e,r){var n=t(e);return n.hasOwnProperty(&quot;value&quot;)?n.value:r},set:function(e,r){return t(e).value=r,this},has:function(e){return&quot;value&quot;in t(e)},delete:function(e){return delete t(e).value}}}},{&quot;./create-store.js&quot;:603}],606:[function(t,e,r){var n=t(&quot;get-canvas-context&quot;);e.exports=function(t){return n(&quot;webgl&quot;,t)}},{&quot;get-canvas-context&quot;:249}],607:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Chinese&quot;,jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Chinese&quot;,epochs:[&quot;BEC&quot;,&quot;EC&quot;],monthNumbers:function(t,e){if(&quot;string&quot;==typeof t){var r=t.match(l);return r?r[0]:&quot;&quot;}var n=this._validateYear(t),i=t.month(),a=&quot;&quot;+this.toChineseMonth(n,i);return e&amp;&amp;a.length&lt;2&amp;&amp;(a=&quot;0&quot;+a),this.isIntercalaryMonth(n,i)&amp;&amp;(a+=&quot;i&quot;),a},monthNames:function(t){if(&quot;string&quot;==typeof t){var e=t.match(c);return e?e[0]:&quot;&quot;}var r=this._validateYear(t),n=t.month(),i=[&quot;\u4e00\u6708&quot;,&quot;\u4e8c\u6708&quot;,&quot;\u4e09\u6708&quot;,&quot;\u56db\u6708&quot;,&quot;\u4e94\u6708&quot;,&quot;\u516d\u6708&quot;,&quot;\u4e03\u6708&quot;,&quot;\u516b\u6708&quot;,&quot;\u4e5d\u6708&quot;,&quot;\u5341\u6708&quot;,&quot;\u5341\u4e00\u6708&quot;,&quot;\u5341\u4e8c\u6708&quot;][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&amp;&amp;(i=&quot;\u95f0&quot;+i),i},monthNamesShort:function(t){if(&quot;string&quot;==typeof t){var e=t.match(u);return e?e[0]:&quot;&quot;}var r=this._validateYear(t),n=t.month(),i=[&quot;\u4e00&quot;,&quot;\u4e8c&quot;,&quot;\u4e09&quot;,&quot;\u56db&quot;,&quot;\u4e94&quot;,&quot;\u516d&quot;,&quot;\u4e03&quot;,&quot;\u516b&quot;,&quot;\u4e5d&quot;,&quot;\u5341&quot;,&quot;\u5341\u4e00&quot;,&quot;\u5341\u4e8c&quot;][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&amp;&amp;(i=&quot;\u95f0&quot;+i),i},parseMonth:function(t,e){t=this._validateYear(t);var r,n=parseInt(e);if(isNaN(n))&quot;\u95f0&quot;===e[0]&amp;&amp;(r=!0,e=e.substring(1)),&quot;\u6708&quot;===e[e.length-1]&amp;&amp;(e=e.substring(0,e.length-1)),n=1+[&quot;\u4e00&quot;,&quot;\u4e8c&quot;,&quot;\u4e09&quot;,&quot;\u56db&quot;,&quot;\u4e94&quot;,&quot;\u516d&quot;,&quot;\u4e03&quot;,&quot;\u516b&quot;,&quot;\u4e5d&quot;,&quot;\u5341&quot;,&quot;\u5341\u4e00&quot;,&quot;\u5341\u4e8c&quot;].indexOf(e);else{var i=e[e.length-1];r=&quot;i&quot;===i||&quot;I&quot;===i}return this.toMonthIndex(t,n,r)},dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:1,isRTL:!1}},_validateYear:function(t,e){if(t.year&amp;&amp;(t=t.year()),&quot;number&quot;!=typeof t||t&lt;1888||t&gt;2111)throw e.replace(/\{0\}/,this.local.name);return t},toMonthIndex:function(t,e,r){var i=this.intercalaryMonth(t);if(r&amp;&amp;e!==i||e&lt;1||e&gt;12)throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return i?!r&amp;&amp;e&lt;=i?e-1:e:e-1},toChineseMonth:function(t,e){t.year&amp;&amp;(e=(t=t.year()).month());var r=this.intercalaryMonth(t);if(e&lt;0||e&gt;(r?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r?e&lt;r?e+1:e:e+1},intercalaryMonth:function(t){return t=this._validateYear(t),f[t-f[0]]&gt;&gt;13},isIntercalaryMonth:function(t,e){t.year&amp;&amp;(e=(t=t.year()).month());var r=this.intercalaryMonth(t);return!!r&amp;&amp;r===e},leapYear:function(t){return 0!==this.intercalaryMonth(t)},weekOfYear:function(t,e,r){var i,o=this._validateYear(t,n.local.invalidyear),s=h[o-h[0]],l=s&gt;&gt;9&amp;4095,c=s&gt;&gt;5&amp;15,u=31&amp;s;(i=a.newDate(l,c,u)).add(4-(i.dayOfWeek()||7),&quot;d&quot;);var f=this.toJD(t,e,r)-i.toJD();return 1+Math.floor(f/7)},monthsInYear:function(t){return this.leapYear(t)?13:12},daysInMonth:function(t,e){t.year&amp;&amp;(e=t.month(),t=t.year()),t=this._validateYear(t);var r=f[t-f[0]];if(e&gt;(r&gt;&gt;13?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r&amp;1&lt;&lt;12-e?30:29},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,s,r,n.local.invalidDate);t=this._validateYear(i.year()),e=i.month(),r=i.day();var o=this.isIntercalaryMonth(t,e),s=this.toChineseMonth(t,e),l=function(t,e,r,n,i){var a,o,s;if(&quot;object&quot;==typeof t)o=t,a=e||{};else{var l;if(!(&quot;number&quot;==typeof t&amp;&amp;t&gt;=1888&amp;&amp;t&lt;=2111))throw new Error(&quot;Lunar year outside range 1888-2111&quot;);if(!(&quot;number&quot;==typeof e&amp;&amp;e&gt;=1&amp;&amp;e&lt;=12))throw new Error(&quot;Lunar month outside range 1 - 12&quot;);if(!(&quot;number&quot;==typeof r&amp;&amp;r&gt;=1&amp;&amp;r&lt;=30))throw new Error(&quot;Lunar day outside range 1 - 30&quot;);&quot;object&quot;==typeof n?(l=!1,a=n):(l=!!n,a=i||{}),o={year:t,month:e,day:r,isIntercalary:l}}s=o.day-1;var c,u=f[o.year-f[0]],p=u&gt;&gt;13;c=p&amp;&amp;(o.month&gt;p||o.isIntercalary)?o.month:o.month-1;for(var d=0;d&lt;c;d++){s+=u&amp;1&lt;&lt;12-d?30:29}var g=h[o.year-h[0]],m=new Date(g&gt;&gt;9&amp;4095,(g&gt;&gt;5&amp;15)-1,(31&amp;g)+s);return a.year=m.getFullYear(),a.month=1+m.getMonth(),a.day=m.getDate(),a}(t,s,r,o);return a.toJD(l.year,l.month,l.day)},fromJD:function(t){var e=a.fromJD(t),r=function(t,e,r,n){var i,a;if(&quot;object&quot;==typeof t)i=t,a=e||{};else{if(!(&quot;number&quot;==typeof t&amp;&amp;t&gt;=1888&amp;&amp;t&lt;=2111))throw new Error(&quot;Solar year outside range 1888-2111&quot;);if(!(&quot;number&quot;==typeof e&amp;&amp;e&gt;=1&amp;&amp;e&lt;=12))throw new Error(&quot;Solar month outside range 1 - 12&quot;);if(!(&quot;number&quot;==typeof r&amp;&amp;r&gt;=1&amp;&amp;r&lt;=31))throw new Error(&quot;Solar day outside range 1 - 31&quot;);i={year:t,month:e,day:r},a=n||{}}var o=h[i.year-h[0]],s=i.year&lt;&lt;9|i.month&lt;&lt;5|i.day;a.year=s&gt;=o?i.year:i.year-1,o=h[a.year-h[0]];var l,c=new Date(o&gt;&gt;9&amp;4095,(o&gt;&gt;5&amp;15)-1,31&amp;o),u=new Date(i.year,i.month-1,i.day);l=Math.round((u-c)/864e5);var p,d=f[a.year-f[0]];for(p=0;p&lt;13;p++){var g=d&amp;1&lt;&lt;12-p?30:29;if(l&lt;g)break;l-=g}var m=d&gt;&gt;13;!m||p&lt;m?(a.isIntercalary=!1,a.month=1+p):p===m?(a.isIntercalary=!0,a.month=p):(a.isIntercalary=!1,a.month=p);return a.day=1+l,a}(e.year(),e.month(),e.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(t){var e=t.match(s),r=this._validateYear(+e[1]),n=+e[2],i=!!e[3],a=this.toMonthIndex(r,n,i),o=+e[4];return this.newDate(r,a,o)},add:function(t,e,r){var n=t.year(),i=t.month(),a=this.isIntercalaryMonth(n,i),s=this.toChineseMonth(n,i),l=Object.getPrototypeOf(o.prototype).add.call(this,t,e,r);if(&quot;y&quot;===r){var c=l.year(),u=l.month(),f=this.isIntercalaryMonth(c,s),h=a&amp;&amp;f?this.toMonthIndex(c,s,!0):this.toMonthIndex(c,s,!1);h!==u&amp;&amp;l.month(h)}return l}});var s=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,l=/^\d?\d[iI]?/m,c=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?\u6708/m,u=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?/m;n.calendars.chinese=o;var f=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],h=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],608:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Coptic&quot;,jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Coptic&quot;,epochs:[&quot;BAM&quot;,&quot;AM&quot;],monthNames:[&quot;Thout&quot;,&quot;Paopi&quot;,&quot;Hathor&quot;,&quot;Koiak&quot;,&quot;Tobi&quot;,&quot;Meshir&quot;,&quot;Paremhat&quot;,&quot;Paremoude&quot;,&quot;Pashons&quot;,&quot;Paoni&quot;,&quot;Epip&quot;,&quot;Mesori&quot;,&quot;Pi Kogi Enavot&quot;],monthNamesShort:[&quot;Tho&quot;,&quot;Pao&quot;,&quot;Hath&quot;,&quot;Koi&quot;,&quot;Tob&quot;,&quot;Mesh&quot;,&quot;Pat&quot;,&quot;Pad&quot;,&quot;Pash&quot;,&quot;Pao&quot;,&quot;Epi&quot;,&quot;Meso&quot;,&quot;PiK&quot;],dayNames:[&quot;Tkyriaka&quot;,&quot;Pesnau&quot;,&quot;Pshoment&quot;,&quot;Peftoou&quot;,&quot;Ptiou&quot;,&quot;Psoou&quot;,&quot;Psabbaton&quot;],dayNamesShort:[&quot;Tky&quot;,&quot;Pes&quot;,&quot;Psh&quot;,&quot;Pef&quot;,&quot;Pti&quot;,&quot;Pso&quot;,&quot;Psa&quot;],dayNamesMin:[&quot;Tk&quot;,&quot;Pes&quot;,&quot;Psh&quot;,&quot;Pef&quot;,&quot;Pt&quot;,&quot;Pso&quot;,&quot;Psa&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())&lt;0&amp;&amp;t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r&lt;=0&amp;&amp;r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.coptic=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],609:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Discworld&quot;,jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Discworld&quot;,epochs:[&quot;BUC&quot;,&quot;UC&quot;],monthNames:[&quot;Ick&quot;,&quot;Offle&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;Grune&quot;,&quot;August&quot;,&quot;Spune&quot;,&quot;Sektober&quot;,&quot;Ember&quot;,&quot;December&quot;],monthNamesShort:[&quot;Ick&quot;,&quot;Off&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Gru&quot;,&quot;Aug&quot;,&quot;Spu&quot;,&quot;Sek&quot;,&quot;Emb&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Octeday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Oct&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Oc&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:2,isRTL:!1}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),13},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),400},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(t,e,r){return(this._validate(t,e,r,n.local.invalidDate).day()+1)%8},weekDay:function(t,e,r){var n=this.dayOfWeek(t,e,r);return n&gt;=2&amp;&amp;n&lt;=6},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{century:o[Math.floor((i.year()-1)/100)+1]||&quot;&quot;}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year()+(i.year()&lt;0?1:0),e=i.month(),(r=i.day())+(e&gt;1?16:0)+(e&gt;2?32*(e-2):0)+400*(t-1)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t+.5)-Math.floor(this.jdEpoch)-1;var e=Math.floor(t/400)+1;t-=400*(e-1),t+=t&gt;15?16:0;var r=Math.floor(t/32)+1,n=t-32*(r-1)+1;return this.newDate(e&lt;=0?e-1:e,r,n)}});var o={20:&quot;Fruitbat&quot;,21:&quot;Anchovy&quot;};n.calendars.discworld=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],610:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Ethiopian&quot;,jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Ethiopian&quot;,epochs:[&quot;BEE&quot;,&quot;EE&quot;],monthNames:[&quot;Meskerem&quot;,&quot;Tikemet&quot;,&quot;Hidar&quot;,&quot;Tahesas&quot;,&quot;Tir&quot;,&quot;Yekatit&quot;,&quot;Megabit&quot;,&quot;Miazia&quot;,&quot;Genbot&quot;,&quot;Sene&quot;,&quot;Hamle&quot;,&quot;Nehase&quot;,&quot;Pagume&quot;],monthNamesShort:[&quot;Mes&quot;,&quot;Tik&quot;,&quot;Hid&quot;,&quot;Tah&quot;,&quot;Tir&quot;,&quot;Yek&quot;,&quot;Meg&quot;,&quot;Mia&quot;,&quot;Gen&quot;,&quot;Sen&quot;,&quot;Ham&quot;,&quot;Neh&quot;,&quot;Pag&quot;],dayNames:[&quot;Ehud&quot;,&quot;Segno&quot;,&quot;Maksegno&quot;,&quot;Irob&quot;,&quot;Hamus&quot;,&quot;Arb&quot;,&quot;Kidame&quot;],dayNamesShort:[&quot;Ehu&quot;,&quot;Seg&quot;,&quot;Mak&quot;,&quot;Iro&quot;,&quot;Ham&quot;,&quot;Arb&quot;,&quot;Kid&quot;],dayNamesMin:[&quot;Eh&quot;,&quot;Se&quot;,&quot;Ma&quot;,&quot;Ir&quot;,&quot;Ha&quot;,&quot;Ar&quot;,&quot;Ki&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())&lt;0&amp;&amp;t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r&lt;=0&amp;&amp;r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.ethiopian=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],611:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Hebrew&quot;,jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Hebrew&quot;,epochs:[&quot;BAM&quot;,&quot;AM&quot;],monthNames:[&quot;Nisan&quot;,&quot;Iyar&quot;,&quot;Sivan&quot;,&quot;Tammuz&quot;,&quot;Av&quot;,&quot;Elul&quot;,&quot;Tishrei&quot;,&quot;Cheshvan&quot;,&quot;Kislev&quot;,&quot;Tevet&quot;,&quot;Shevat&quot;,&quot;Adar&quot;,&quot;Adar II&quot;],monthNamesShort:[&quot;Nis&quot;,&quot;Iya&quot;,&quot;Siv&quot;,&quot;Tam&quot;,&quot;Av&quot;,&quot;Elu&quot;,&quot;Tis&quot;,&quot;Che&quot;,&quot;Kis&quot;,&quot;Tev&quot;,&quot;She&quot;,&quot;Ada&quot;,&quot;Ad2&quot;],dayNames:[&quot;Yom Rishon&quot;,&quot;Yom Sheni&quot;,&quot;Yom Shlishi&quot;,&quot;Yom Revi'i&quot;,&quot;Yom Chamishi&quot;,&quot;Yom Shishi&quot;,&quot;Yom Shabbat&quot;],dayNamesShort:[&quot;Ris&quot;,&quot;She&quot;,&quot;Shl&quot;,&quot;Rev&quot;,&quot;Cha&quot;,&quot;Shi&quot;,&quot;Sha&quot;],dayNamesMin:[&quot;Ri&quot;,&quot;She&quot;,&quot;Shl&quot;,&quot;Re&quot;,&quot;Ch&quot;,&quot;Shi&quot;,&quot;Sha&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return this._leapYear(e.year())},_leapYear:function(t){return o(7*(t=t&lt;0?t+1:t)+1,19)&lt;7},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),this._leapYear(t.year?t.year():t)?13:12},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),this.toJD(-1===t?1:t+1,7,1)-this.toJD(t,7,1)},daysInMonth:function(t,e){return t.year&amp;&amp;(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),12===e&amp;&amp;this.leapYear(t)||8===e&amp;&amp;5===o(this.daysInYear(t),10)?30:9===e&amp;&amp;3===o(this.daysInYear(t),10)?29:this.daysPerMonth[e-1]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{yearType:(this.leapYear(i)?&quot;embolismic&quot;:&quot;common&quot;)+&quot; &quot;+[&quot;deficient&quot;,&quot;regular&quot;,&quot;complete&quot;][this.daysInYear(i)%10-3]}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t&lt;=0?t+1:t,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(e&lt;7){for(var s=7;s&lt;=this.monthsInYear(t);s++)o+=this.daysInMonth(t,s);for(s=1;s&lt;e;s++)o+=this.daysInMonth(t,s)}else for(s=7;s&lt;e;s++)o+=this.daysInMonth(t,s);return o},_delay1:function(t){var e=Math.floor((235*t-234)/19),r=12084+13753*e,n=29*e+Math.floor(r/25920);return o(3*(n+1),7)&lt;3&amp;&amp;n++,n},_delay2:function(t){var e=this._delay1(t-1),r=this._delay1(t);return this._delay1(t+1)-r==356?2:r-e==382?1:0},fromJD:function(t){t=Math.floor(t)+.5;for(var e=Math.floor(98496*(t-this.jdEpoch)/35975351)-1;t&gt;=this.toJD(-1===e?1:e+1,7,1);)e++;for(var r=t&lt;this.toJD(e,1,1)?7:1;t&gt;this.toJD(e,r,this.daysInMonth(e,r));)r++;var n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.hebrew=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],612:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Islamic&quot;,jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Islamic&quot;,epochs:[&quot;BH&quot;,&quot;AH&quot;],monthNames:[&quot;Muharram&quot;,&quot;Safar&quot;,&quot;Rabi' al-awwal&quot;,&quot;Rabi' al-thani&quot;,&quot;Jumada al-awwal&quot;,&quot;Jumada al-thani&quot;,&quot;Rajab&quot;,&quot;Sha'aban&quot;,&quot;Ramadan&quot;,&quot;Shawwal&quot;,&quot;Dhu al-Qi'dah&quot;,&quot;Dhu al-Hijjah&quot;],monthNamesShort:[&quot;Muh&quot;,&quot;Saf&quot;,&quot;Rab1&quot;,&quot;Rab2&quot;,&quot;Jum1&quot;,&quot;Jum2&quot;,&quot;Raj&quot;,&quot;Sha'&quot;,&quot;Ram&quot;,&quot;Shaw&quot;,&quot;DhuQ&quot;,&quot;DhuH&quot;],dayNames:[&quot;Yawm al-ahad&quot;,&quot;Yawm al-ithnayn&quot;,&quot;Yawm ath-thulaathaa'&quot;,&quot;Yawm al-arbi'aa'&quot;,&quot;Yawm al-kham\u012bs&quot;,&quot;Yawm al-jum'a&quot;,&quot;Yawm as-sabt&quot;],dayNamesShort:[&quot;Aha&quot;,&quot;Ith&quot;,&quot;Thu&quot;,&quot;Arb&quot;,&quot;Kha&quot;,&quot;Jum&quot;,&quot;Sab&quot;],dayNamesMin:[&quot;Ah&quot;,&quot;It&quot;,&quot;Th&quot;,&quot;Ar&quot;,&quot;Kh&quot;,&quot;Ju&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!1}},leapYear:function(t){return(11*this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year()+14)%30&lt;11},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return this.leapYear(t)?355:354},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),t=t&lt;=0?t+1:t,(r=i.day())+Math.ceil(29.5*(e-1))+354*(t-1)+Math.floor((3+11*t)/30)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t)+.5;var e=Math.floor((30*(t-this.jdEpoch)+10646)/10631);e=e&lt;=0?e-1:e;var r=Math.min(12,Math.ceil((t-29-this.toJD(e,1,1))/29.5)+1),n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.islamic=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],613:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Julian&quot;,jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Julian&quot;,epochs:[&quot;BC&quot;,&quot;AD&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;mm/dd/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()&lt;0?e.year()+1:e.year())%4==0},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),r=i.day(),t&lt;0&amp;&amp;t++,e&lt;=2&amp;&amp;(t--,e+=12),Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r-1524.5},fromJD:function(t){var e=Math.floor(t+.5)+1524,r=Math.floor((e-122.1)/365.25),n=Math.floor(365.25*r),i=Math.floor((e-n)/30.6001),a=i-Math.floor(i&lt;14?1:13),o=r-Math.floor(a&gt;2?4716:4715),s=e-n-Math.floor(30.6001*i);return o&lt;=0&amp;&amp;o--,this.newDate(o,a,s)}}),n.calendars.julian=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],614:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}function s(t,e){return o(t-1,e)+1}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Mayan&quot;,jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{&quot;&quot;:{name:&quot;Mayan&quot;,epochs:[&quot;&quot;,&quot;&quot;],monthNames:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;],monthNamesShort:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;],dayNames:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],dayNamesShort:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],dayNamesMin:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],digits:null,dateFormat:&quot;YYYY.m.d&quot;,firstDay:0,isRTL:!1,haabMonths:[&quot;Pop&quot;,&quot;Uo&quot;,&quot;Zip&quot;,&quot;Zotz&quot;,&quot;Tzec&quot;,&quot;Xul&quot;,&quot;Yaxkin&quot;,&quot;Mol&quot;,&quot;Chen&quot;,&quot;Yax&quot;,&quot;Zac&quot;,&quot;Ceh&quot;,&quot;Mac&quot;,&quot;Kankin&quot;,&quot;Muan&quot;,&quot;Pax&quot;,&quot;Kayab&quot;,&quot;Cumku&quot;,&quot;Uayeb&quot;],tzolkinMonths:[&quot;Imix&quot;,&quot;Ik&quot;,&quot;Akbal&quot;,&quot;Kan&quot;,&quot;Chicchan&quot;,&quot;Cimi&quot;,&quot;Manik&quot;,&quot;Lamat&quot;,&quot;Muluc&quot;,&quot;Oc&quot;,&quot;Chuen&quot;,&quot;Eb&quot;,&quot;Ben&quot;,&quot;Ix&quot;,&quot;Men&quot;,&quot;Cib&quot;,&quot;Caban&quot;,&quot;Etznab&quot;,&quot;Cauac&quot;,&quot;Ahau&quot;]}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},formatYear:function(t){t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year();var e=Math.floor(t/400);return t%=400,t+=t&lt;0?400:0,e+&quot;.&quot;+Math.floor(t/20)+&quot;.&quot;+t%20},forYear:function(t){if((t=t.split(&quot;.&quot;)).length&lt;3)throw&quot;Invalid Mayan year&quot;;for(var e=0,r=0;r&lt;t.length;r++){var n=parseInt(t[r],10);if(Math.abs(n)&gt;19||r&gt;0&amp;&amp;n&lt;0)throw&quot;Invalid Mayan year&quot;;e=20*e+n}return e},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),18},weekOfYear:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),0},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),360},daysInMonth:function(t,e){return this._validate(t,e,this.minDay,n.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate).day()},weekDay:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),!0},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate).toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(t){var e=o((t-=this.jdEpoch)+8+340,365);return[Math.floor(e/20)+1,o(e,20)]},_toTzolkin:function(t){return[s((t-=this.jdEpoch)+20,20),s(t+4,13)]},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return i.day()+20*i.month()+360*i.year()+this.jdEpoch},fromJD:function(t){t=Math.floor(t)+.5-this.jdEpoch;var e=Math.floor(t/360);t%=360,t+=t&lt;0?360:0;var r=Math.floor(t/20),n=t%20;return this.newDate(e,r,n)}}),n.calendars.mayan=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],615:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar;var o=n.instance(&quot;gregorian&quot;);i(a.prototype,{name:&quot;Nanakshahi&quot;,jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Nanakshahi&quot;,epochs:[&quot;BN&quot;,&quot;AN&quot;],monthNames:[&quot;Chet&quot;,&quot;Vaisakh&quot;,&quot;Jeth&quot;,&quot;Harh&quot;,&quot;Sawan&quot;,&quot;Bhadon&quot;,&quot;Assu&quot;,&quot;Katak&quot;,&quot;Maghar&quot;,&quot;Poh&quot;,&quot;Magh&quot;,&quot;Phagun&quot;],monthNamesShort:[&quot;Che&quot;,&quot;Vai&quot;,&quot;Jet&quot;,&quot;Har&quot;,&quot;Saw&quot;,&quot;Bha&quot;,&quot;Ass&quot;,&quot;Kat&quot;,&quot;Mgr&quot;,&quot;Poh&quot;,&quot;Mgh&quot;,&quot;Pha&quot;],dayNames:[&quot;Somvaar&quot;,&quot;Mangalvar&quot;,&quot;Budhvaar&quot;,&quot;Veervaar&quot;,&quot;Shukarvaar&quot;,&quot;Sanicharvaar&quot;,&quot;Etvaar&quot;],dayNamesShort:[&quot;Som&quot;,&quot;Mangal&quot;,&quot;Budh&quot;,&quot;Veer&quot;,&quot;Shukar&quot;,&quot;Sanichar&quot;,&quot;Et&quot;],dayNamesMin:[&quot;So&quot;,&quot;Ma&quot;,&quot;Bu&quot;,&quot;Ve&quot;,&quot;Sh&quot;,&quot;Sa&quot;,&quot;Et&quot;],digits:null,dateFormat:&quot;dd-mm-yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear);return o.leapYear(e.year()+(e.year()&lt;1?1:0)+1469)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(1-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidMonth);(t=i.year())&lt;0&amp;&amp;t++;for(var a=i.day(),s=1;s&lt;i.month();s++)a+=this.daysPerMonth[s-1];return a+o.toJD(t+1468,3,13)},fromJD:function(t){t=Math.floor(t+.5);for(var e=Math.floor((t-(this.jdEpoch-1))/366);t&gt;=this.toJD(e+1,1,1);)e++;for(var r=t-Math.floor(this.toJD(e,1,1)+.5)+1,n=1;r&gt;this.daysInMonth(e,n);)r-=this.daysInMonth(e,n),n++;return this.newDate(e,n,r)}}),n.calendars.nanakshahi=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],616:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Nepali&quot;,jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{&quot;&quot;:{name:&quot;Nepali&quot;,epochs:[&quot;BBS&quot;,&quot;ABS&quot;],monthNames:[&quot;Baisakh&quot;,&quot;Jestha&quot;,&quot;Ashadh&quot;,&quot;Shrawan&quot;,&quot;Bhadra&quot;,&quot;Ashwin&quot;,&quot;Kartik&quot;,&quot;Mangsir&quot;,&quot;Paush&quot;,&quot;Mangh&quot;,&quot;Falgun&quot;,&quot;Chaitra&quot;],monthNamesShort:[&quot;Bai&quot;,&quot;Je&quot;,&quot;As&quot;,&quot;Shra&quot;,&quot;Bha&quot;,&quot;Ash&quot;,&quot;Kar&quot;,&quot;Mang&quot;,&quot;Pau&quot;,&quot;Ma&quot;,&quot;Fal&quot;,&quot;Chai&quot;],dayNames:[&quot;Aaitabaar&quot;,&quot;Sombaar&quot;,&quot;Manglbaar&quot;,&quot;Budhabaar&quot;,&quot;Bihibaar&quot;,&quot;Shukrabaar&quot;,&quot;Shanibaar&quot;],dayNamesShort:[&quot;Aaita&quot;,&quot;Som&quot;,&quot;Mangl&quot;,&quot;Budha&quot;,&quot;Bihi&quot;,&quot;Shukra&quot;,&quot;Shani&quot;],dayNamesMin:[&quot;Aai&quot;,&quot;So&quot;,&quot;Man&quot;,&quot;Bu&quot;,&quot;Bi&quot;,&quot;Shu&quot;,&quot;Sha&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:1,isRTL:!1}},leapYear:function(t){return this.daysInYear(t)!==this.daysPerYear},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){if(t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),&quot;undefined&quot;==typeof this.NEPALI_CALENDAR_DATA[t])return this.daysPerYear;for(var e=0,r=this.minMonth;r&lt;=12;r++)e+=this.NEPALI_CALENDAR_DATA[t][r];return e},daysInMonth:function(t,e){return t.year&amp;&amp;(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),&quot;undefined&quot;==typeof this.NEPALI_CALENDAR_DATA[t]?this.daysPerMonth[e-1]:this.NEPALI_CALENDAR_DATA[t][e]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=n.instance(),o=0,s=e,l=t;this._createMissingCalendarData(t);var c=t-(s&gt;9||9===s&amp;&amp;r&gt;=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(9!==e&amp;&amp;(o=r,s--);9!==s;)s&lt;=0&amp;&amp;(s=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][s],s--;return 9===e?(o+=r-this.NEPALI_CALENDAR_DATA[l][0])&lt;0&amp;&amp;(o+=a.daysInYear(c)):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(c,1,1).add(o,&quot;d&quot;).toJD()},fromJD:function(t){var e=n.instance().fromJD(t),r=e.year(),i=e.dayOfYear(),a=r+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i&gt;l;)++o&gt;12&amp;&amp;(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var c=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,c)},_createMissingCalendarData:function(t){var e=this.daysPerMonth.slice(0);e.unshift(17);for(var r=t-1;r&lt;t+2;r++)&quot;undefined&quot;==typeof this.NEPALI_CALENDAR_DATA[r]&amp;&amp;(this.NEPALI_CALENDAR_DATA[r]=e)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),n.calendars.nepali=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],617:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Persian&quot;,jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Persian&quot;,epochs:[&quot;BP&quot;,&quot;AP&quot;],monthNames:[&quot;Farvardin&quot;,&quot;Ordibehesht&quot;,&quot;Khordad&quot;,&quot;Tir&quot;,&quot;Mordad&quot;,&quot;Shahrivar&quot;,&quot;Mehr&quot;,&quot;Aban&quot;,&quot;Azar&quot;,&quot;Day&quot;,&quot;Bahman&quot;,&quot;Esfand&quot;],monthNamesShort:[&quot;Far&quot;,&quot;Ord&quot;,&quot;Kho&quot;,&quot;Tir&quot;,&quot;Mor&quot;,&quot;Sha&quot;,&quot;Meh&quot;,&quot;Aba&quot;,&quot;Aza&quot;,&quot;Day&quot;,&quot;Bah&quot;,&quot;Esf&quot;],dayNames:[&quot;Yekshambe&quot;,&quot;Doshambe&quot;,&quot;Seshambe&quot;,&quot;Ch\xe6harshambe&quot;,&quot;Panjshambe&quot;,&quot;Jom'e&quot;,&quot;Shambe&quot;],dayNamesShort:[&quot;Yek&quot;,&quot;Do&quot;,&quot;Se&quot;,&quot;Ch\xe6&quot;,&quot;Panj&quot;,&quot;Jom&quot;,&quot;Sha&quot;],dayNamesMin:[&quot;Ye&quot;,&quot;Do&quot;,&quot;Se&quot;,&quot;Ch&quot;,&quot;Pa&quot;,&quot;Jo&quot;,&quot;Sh&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 682*((e.year()-(e.year()&gt;0?474:473))%2820+474+38)%2816&lt;682},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-(n.dayOfWeek()+1)%7,&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t-(t&gt;=0?474:473),s=474+o(a,2820);return r+(e&lt;=7?31*(e-1):30*(e-1)+6)+Math.floor((682*s-110)/2816)+365*(s-1)+1029983*Math.floor(a/2820)+this.jdEpoch-1},fromJD:function(t){var e=(t=Math.floor(t)+.5)-this.toJD(475,1,1),r=Math.floor(e/1029983),n=o(e,1029983),i=2820;if(1029982!==n){var a=Math.floor(n/366),s=o(n,366);i=Math.floor((2134*a+2816*s+2815)/1028522)+a+1}var l=i+2820*r+474;l=l&lt;=0?l-1:l;var c=t-this.toJD(l,1,1)+1,u=c&lt;=186?Math.ceil(c/31):Math.ceil((c-6)/30),f=t-this.toJD(l,u,1)+1;return this.newDate(l,u,f)}}),n.calendars.persian=a,n.calendars.jalali=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],618:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Taiwan&quot;,jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Taiwan&quot;,epochs:[&quot;BROC&quot;,&quot;ROC&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:1,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t+this.yearsOffset+(t&gt;=-this.yearsOffset&amp;&amp;t&lt;=-1?1:0)},_g2tYear:function(t){return t-this.yearsOffset-(t&gt;=1&amp;&amp;t&lt;=this.yearsOffset?1:0)}}),n.calendars.taiwan=o},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],619:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Thai&quot;,jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Thai&quot;,epochs:[&quot;BBE&quot;,&quot;BE&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t-this.yearsOffset-(t&gt;=1&amp;&amp;t&lt;=this.yearsOffset?1:0)},_g2tYear:function(t){return t+this.yearsOffset+(t&gt;=-this.yearsOffset&amp;&amp;t&lt;=-1?1:0)}}),n.calendars.thai=o},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],620:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;UmmAlQura&quot;,hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Umm al-Qura&quot;,epochs:[&quot;BH&quot;,&quot;AH&quot;],monthNames:[&quot;Al-Muharram&quot;,&quot;Safar&quot;,&quot;Rabi' al-awwal&quot;,&quot;Rabi' Al-Thani&quot;,&quot;Jumada Al-Awwal&quot;,&quot;Jumada Al-Thani&quot;,&quot;Rajab&quot;,&quot;Sha'aban&quot;,&quot;Ramadan&quot;,&quot;Shawwal&quot;,&quot;Dhu al-Qi'dah&quot;,&quot;Dhu al-Hijjah&quot;],monthNamesShort:[&quot;Muh&quot;,&quot;Saf&quot;,&quot;Rab1&quot;,&quot;Rab2&quot;,&quot;Jum1&quot;,&quot;Jum2&quot;,&quot;Raj&quot;,&quot;Sha'&quot;,&quot;Ram&quot;,&quot;Shaw&quot;,&quot;DhuQ&quot;,&quot;DhuH&quot;],dayNames:[&quot;Yawm al-Ahad&quot;,&quot;Yawm al-Ithnain&quot;,&quot;Yawm al-Thal\u0101th\u0101\u2019&quot;,&quot;Yawm al-Arba\u2018\u0101\u2019&quot;,&quot;Yawm al-Kham\u012bs&quot;,&quot;Yawm al-Jum\u2018a&quot;,&quot;Yawm al-Sabt&quot;],dayNamesMin:[&quot;Ah&quot;,&quot;Ith&quot;,&quot;Th&quot;,&quot;Ar&quot;,&quot;Kh&quot;,&quot;Ju&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!0}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 355===this.daysInYear(e.year())},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){for(var e=0,r=1;r&lt;=12;r++)e+=this.daysInMonth(t,r);return e},daysInMonth:function(t,e){for(var r=this._validate(t,e,this.minDay,n.local.invalidMonth).toJD()-24e5+.5,i=0,a=0;a&lt;o.length;a++){if(o[a]&gt;r)return o[i]-o[i-1];i++}return 30},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate),a=12*(i.year()-1)+i.month()-15292;return i.day()+o[a-1]-1+24e5-.5},fromJD:function(t){for(var e=t-24e5+.5,r=0,n=0;n&lt;o.length&amp;&amp;!(o[n]&gt;e);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),s=a+1,l=i-12*a,c=e-o[r-1]+1;return this.newDate(s,l,c)},isValid:function(t,e,r){var i=n.baseCalendar.prototype.isValid.apply(this,arguments);return i&amp;&amp;(i=(t=null!=t.year?t.year:t)&gt;=1276&amp;&amp;t&lt;=1500),i},_validate:function(t,e,r,i){var a=n.baseCalendar.prototype._validate.apply(this,arguments);if(a.year&lt;1276||a.year&gt;1500)throw i.replace(/\{0\}/,this.local.name);return a}}),n.calendars.ummalqura=a;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],621:[function(t,e,r){var n=t(&quot;object-assign&quot;);function i(){this.regionalOptions=[],this.regionalOptions[&quot;&quot;]={invalidCalendar:&quot;Calendar {0} not found&quot;,invalidDate:&quot;Invalid {0} date&quot;,invalidMonth:&quot;Invalid {0} month&quot;,invalidYear:&quot;Invalid {0} year&quot;,differentCalendars:&quot;Cannot mix {0} and {1} dates&quot;},this.local=this.regionalOptions[&quot;&quot;],this.calendars={},this._localCals={}}function a(t,e,r,n){if(this._calendar=t,this._year=e,this._month=r,this._day=n,0===this._calendar._validateLevel&amp;&amp;!this._calendar.isValid(this._year,this._month,this._day))throw(c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function o(t,e){return&quot;000000&quot;.substring(0,e-(t=&quot;&quot;+t).length)+t}function s(){this.shortYearCutoff=&quot;+10&quot;}function l(t){this.local=this.regionalOptions[t]||this.regionalOptions[&quot;&quot;]}n(i.prototype,{instance:function(t,e){t=(t||&quot;gregorian&quot;).toLowerCase(),e=e||&quot;&quot;;var r=this._localCals[t+&quot;-&quot;+e];if(!r&amp;&amp;this.calendars[t]&amp;&amp;(r=new this.calendars[t](e),this._localCals[t+&quot;-&quot;+e]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[&quot;&quot;].invalidCalendar).replace(/\{0\}/,t);return r},newDate:function(t,e,r,n,i){return(n=(null!=t&amp;&amp;t.year?t.calendar():&quot;string&quot;==typeof n?this.instance(n,i):n)||this.instance()).newDate(t,e,r)},substituteDigits:function(t){return function(e){return(e+&quot;&quot;).replace(/[0-9]/g,(function(e){return t[e]}))}},substituteChineseDigits:function(t,e){return function(r){for(var n=&quot;&quot;,i=0;r&gt;0;){var a=r%10;n=(0===a?&quot;&quot;:t[a]+e[i])+n,i++,r=Math.floor(r/10)}return 0===n.indexOf(t[1]+e[1])&amp;&amp;(n=n.substr(1)),n||t[0]}}}),n(a.prototype,{newDate:function(t,e,r){return this._calendar.newDate(null==t?this:t,e,r)},year:function(t){return 0===arguments.length?this._year:this.set(t,&quot;y&quot;)},month:function(t){return 0===arguments.length?this._month:this.set(t,&quot;m&quot;)},day:function(t){return 0===arguments.length?this._day:this.set(t,&quot;d&quot;)},date:function(t,e,r){if(!this._calendar.isValid(t,e,r))throw(c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=t,this._month=e,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(t,e){return this._calendar.add(this,t,e)},set:function(t,e){return this._calendar.set(this,t,e)},compareTo:function(t){if(this._calendar.name!==t._calendar.name)throw(c.local.differentCalendars||c.regionalOptions[&quot;&quot;].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,t._calendar.local.name);var e=this._year!==t._year?this._year-t._year:this._month!==t._month?this.monthOfYear()-t.monthOfYear():this._day-t._day;return 0===e?0:e&lt;0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(t){return this._calendar.fromJD(t)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(t){return this._calendar.fromJSDate(t)},toString:function(){return(this.year()&lt;0?&quot;-&quot;:&quot;&quot;)+o(Math.abs(this.year()),4)+&quot;-&quot;+o(this.month(),2)+&quot;-&quot;+o(this.day(),2)}}),n(s.prototype,{_validateLevel:0,newDate:function(t,e,r){return null==t?this.today():(t.year&amp;&amp;(this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),r=t.day(),e=t.month(),t=t.year()),new a(this,t,e,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear).year()&lt;0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return(e.year()&lt;0?&quot;-&quot;:&quot;&quot;)+o(Math.abs(e.year()),4)},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear),12},monthOfYear:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(t,e){var r=(e+this.firstMonth-2*this.minMonth)%this.monthsInYear(t)+this.minMonth;return this._validate(t,r,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth),r},daysInYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return this.leapYear(e)?366:365},dayOfYear:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(t,e,r){return this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),{}},add:function(t,e,r){return this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),this._correctAdd(t,this._add(t,e,r),e,r)},_add:function(t,e,r){if(this._validateLevel++,&quot;d&quot;===r||&quot;w&quot;===r){var n=t.toJD()+e*(&quot;w&quot;===r?this.daysInWeek():1),i=t.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=t.year()+(&quot;y&quot;===r?e:0),o=t.monthOfYear()+(&quot;m&quot;===r?e:0);i=t.day();&quot;y&quot;===r?(t.month()!==this.fromMonthOfYear(a,o)&amp;&amp;(o=this.newDate(a,t.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):&quot;m&quot;===r&amp;&amp;(!function(t){for(;o&lt;t.minMonth;)a--,o+=t.monthsInYear(a);for(var e=t.monthsInYear(a);o&gt;e-1+t.minMonth;)a++,o-=e,e=t.monthsInYear(a)}(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var s=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,s}catch(t){throw this._validateLevel--,t}},_correctAdd:function(t,e,r,n){if(!(this.hasYearZero||&quot;y&quot;!==n&amp;&amp;&quot;m&quot;!==n||0!==e[0]&amp;&amp;t.year()&gt;0==e[0]&gt;0)){var i={y:[1,1,&quot;y&quot;],m:[1,this.monthsInYear(-1),&quot;m&quot;],w:[this.daysInWeek(),this.daysInYear(-1),&quot;d&quot;],d:[1,this.daysInYear(-1),&quot;d&quot;]}[n],a=r&lt;0?-1:1;e=this._add(t,r*i[0]+a*i[1],i[2])}return t.date(e[0],e[1],e[2])},set:function(t,e,r){this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);var n=&quot;y&quot;===r?e:t.year(),i=&quot;m&quot;===r?e:t.month(),a=&quot;d&quot;===r?e:t.day();return&quot;y&quot;!==r&amp;&amp;&quot;m&quot;!==r||(a=Math.min(a,this.daysInMonth(n,i))),t.date(n,i,a)},isValid:function(t,e,r){this._validateLevel++;var n=this.hasYearZero||0!==t;if(n){var i=this.newDate(t,e,this.minDay);n=e&gt;=this.minMonth&amp;&amp;e-this.minMonth&lt;this.monthsInYear(i)&amp;&amp;r&gt;=this.minDay&amp;&amp;r-this.minDay&lt;this.daysInMonth(i)}return this._validateLevel--,n},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return c.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(t){return this.fromJD(c.instance().fromJSDate(t).toJD())},_validate:function(t,e,r,n){if(t.year){if(0===this._validateLevel&amp;&amp;this.name!==t.calendar().name)throw(c.local.differentCalendars||c.regionalOptions[&quot;&quot;].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,t.calendar().local.name);return t}try{if(this._validateLevel++,1===this._validateLevel&amp;&amp;!this.isValid(t,e,r))throw n.replace(/\{0\}/,this.local.name);var i=this.newDate(t,e,r);return this._validateLevel--,i}catch(t){throw this._validateLevel--,t}}}),l.prototype=new s,n(l.prototype,{name:&quot;Gregorian&quot;,jdEpoch:1721425.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Gregorian&quot;,epochs:[&quot;BCE&quot;,&quot;CE&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;mm/dd/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==0&amp;&amp;(t%100!=0||t%400==0)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);t=n.year(),e=n.month(),r=n.day(),t&lt;0&amp;&amp;t++,e&lt;3&amp;&amp;(e+=12,t--);var i=Math.floor(t/100),a=2-i+Math.floor(i/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r+a-1524.5},fromJD:function(t){var e=Math.floor(t+.5),r=Math.floor((e-1867216.25)/36524.25),n=(r=e+1+r-Math.floor(r/4))+1524,i=Math.floor((n-122.1)/365.25),a=Math.floor(365.25*i),o=Math.floor((n-a)/30.6001),s=n-a-Math.floor(30.6001*o),l=o-(o&gt;13.5?13:1),c=i-(l&gt;2.5?4716:4715);return c&lt;=0&amp;&amp;c--,this.newDate(c,l,s)},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()&gt;12?i.getHours()+2:0),i},fromJSDate:function(t){return this.newDate(t.getFullYear(),t.getMonth()+1,t.getDate())}});var c=e.exports=new i;c.cdate=a,c.baseCalendar=s,c.calendars.gregorian=l},{&quot;object-assign&quot;:499}],622:[function(t,e,r){var n=t(&quot;object-assign&quot;),i=t(&quot;./main&quot;);n(i.regionalOptions[&quot;&quot;],{invalidArguments:&quot;Invalid arguments&quot;,invalidFormat:&quot;Cannot format a date from another calendar&quot;,missingNumberAt:&quot;Missing number at position {0}&quot;,unknownNameAt:&quot;Unknown name at position {0}&quot;,unexpectedLiteralAt:&quot;Unexpected literal at position {0}&quot;,unexpectedText:&quot;Additional text found at end&quot;}),i.local=i.regionalOptions[&quot;&quot;],n(i.cdate.prototype,{formatDate:function(t,e){return&quot;string&quot;!=typeof t&amp;&amp;(e=t,t=&quot;&quot;),this._calendar.formatDate(t||&quot;&quot;,this,e)}}),n(i.baseCalendar.prototype,{UNIX_EPOCH:i.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:i.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:&quot;yyyy-mm-dd&quot;,COOKIE:&quot;D, dd M yyyy&quot;,FULL:&quot;DD, MM d, yyyy&quot;,ISO_8601:&quot;yyyy-mm-dd&quot;,JULIAN:&quot;J&quot;,RFC_822:&quot;D, d M yy&quot;,RFC_850:&quot;DD, dd-M-yy&quot;,RFC_1036:&quot;D, d M yy&quot;,RFC_1123:&quot;D, d M yyyy&quot;,RFC_2822:&quot;D, d M yyyy&quot;,RSS:&quot;D, d M yy&quot;,TICKS:&quot;!&quot;,TIMESTAMP:&quot;@&quot;,W3C:&quot;yyyy-mm-dd&quot;,formatDate:function(t,e,r){if(&quot;string&quot;!=typeof t&amp;&amp;(r=e,e=t,t=&quot;&quot;),!e)return&quot;&quot;;if(e.calendar()!==this)throw i.local.invalidFormat||i.regionalOptions[&quot;&quot;].invalidFormat;t=t||this.local.dateFormat;for(var n,a,o,s,l=(r=r||{}).dayNamesShort||this.local.dayNamesShort,c=r.dayNames||this.local.dayNames,u=r.monthNumbers||this.local.monthNumbers,f=r.monthNamesShort||this.local.monthNamesShort,h=r.monthNames||this.local.monthNames,p=(r.calculateWeek||this.local.calculateWeek,function(e,r){for(var n=1;w+n&lt;t.length&amp;&amp;t.charAt(w+n)===e;)n++;return w+=n-1,Math.floor(n/(r||1))&gt;1}),d=function(t,e,r,n){var i=&quot;&quot;+e;if(p(t,n))for(;i.length&lt;r;)i=&quot;0&quot;+i;return i},g=this,m=function(t){return&quot;function&quot;==typeof u?u.call(g,t,p(&quot;m&quot;)):x(d(&quot;m&quot;,t.month(),2))},v=function(t,e){return e?&quot;function&quot;==typeof h?h.call(g,t):h[t.month()-g.minMonth]:&quot;function&quot;==typeof f?f.call(g,t):f[t.month()-g.minMonth]},y=this.local.digits,x=function(t){return r.localNumbers&amp;&amp;y?y(t):t},b=&quot;&quot;,_=!1,w=0;w&lt;t.length;w++)if(_)&quot;'&quot;!==t.charAt(w)||p(&quot;'&quot;)?b+=t.charAt(w):_=!1;else switch(t.charAt(w)){case&quot;d&quot;:b+=x(d(&quot;d&quot;,e.day(),2));break;case&quot;D&quot;:b+=(n=&quot;D&quot;,a=e.dayOfWeek(),o=l,s=c,p(n)?s[a]:o[a]);break;case&quot;o&quot;:b+=d(&quot;o&quot;,e.dayOfYear(),3);break;case&quot;w&quot;:b+=d(&quot;w&quot;,e.weekOfYear(),2);break;case&quot;m&quot;:b+=m(e);break;case&quot;M&quot;:b+=v(e,p(&quot;M&quot;));break;case&quot;y&quot;:b+=p(&quot;y&quot;,2)?e.year():(e.year()%100&lt;10?&quot;0&quot;:&quot;&quot;)+e.year()%100;break;case&quot;Y&quot;:p(&quot;Y&quot;,2),b+=e.formatYear();break;case&quot;J&quot;:b+=e.toJD();break;case&quot;@&quot;:b+=(e.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case&quot;!&quot;:b+=(e.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case&quot;'&quot;:p(&quot;'&quot;)?b+=&quot;'&quot;:_=!0;break;default:b+=t.charAt(w)}return b},parseDate:function(t,e,r){if(null==e)throw i.local.invalidArguments||i.regionalOptions[&quot;&quot;].invalidArguments;if(&quot;&quot;===(e=&quot;object&quot;==typeof e?e.toString():e+&quot;&quot;))return null;t=t||this.local.dateFormat;var n=(r=r||{}).shortYearCutoff||this.shortYearCutoff;n=&quot;string&quot;!=typeof n?n:this.today().year()%100+parseInt(n,10);for(var a=r.dayNamesShort||this.local.dayNamesShort,o=r.dayNames||this.local.dayNames,s=r.parseMonth||this.local.parseMonth,l=r.monthNumbers||this.local.monthNumbers,c=r.monthNamesShort||this.local.monthNamesShort,u=r.monthNames||this.local.monthNames,f=-1,h=-1,p=-1,d=-1,g=-1,m=!1,v=!1,y=function(e,r){for(var n=1;A+n&lt;t.length&amp;&amp;t.charAt(A+n)===e;)n++;return A+=n-1,Math.floor(n/(r||1))&gt;1},x=function(t,r){var n=y(t,r),a=[2,3,n?4:2,n?4:2,10,11,20][&quot;oyYJ@!&quot;.indexOf(t)+1],o=new RegExp(&quot;^-?\\d{1,&quot;+a+&quot;}&quot;),s=e.substring(M).match(o);if(!s)throw(i.local.missingNumberAt||i.regionalOptions[&quot;&quot;].missingNumberAt).replace(/\{0\}/,M);return M+=s[0].length,parseInt(s[0],10)},b=this,_=function(){if(&quot;function&quot;==typeof l){y(&quot;m&quot;);var t=l.call(b,e.substring(M));return M+=t.length,t}return x(&quot;m&quot;)},w=function(t,r,n,a){for(var o=y(t,a)?n:r,s=0;s&lt;o.length;s++)if(e.substr(M,o[s].length).toLowerCase()===o[s].toLowerCase())return M+=o[s].length,s+b.minMonth;throw(i.local.unknownNameAt||i.regionalOptions[&quot;&quot;].unknownNameAt).replace(/\{0\}/,M)},T=function(){if(&quot;function&quot;==typeof u){var t=y(&quot;M&quot;)?u.call(b,e.substring(M)):c.call(b,e.substring(M));return M+=t.length,t}return w(&quot;M&quot;,c,u)},k=function(){if(e.charAt(M)!==t.charAt(A))throw(i.local.unexpectedLiteralAt||i.regionalOptions[&quot;&quot;].unexpectedLiteralAt).replace(/\{0\}/,M);M++},M=0,A=0;A&lt;t.length;A++)if(v)&quot;'&quot;!==t.charAt(A)||y(&quot;'&quot;)?k():v=!1;else switch(t.charAt(A)){case&quot;d&quot;:d=x(&quot;d&quot;);break;case&quot;D&quot;:w(&quot;D&quot;,a,o);break;case&quot;o&quot;:g=x(&quot;o&quot;);break;case&quot;w&quot;:x(&quot;w&quot;);break;case&quot;m&quot;:p=_();break;case&quot;M&quot;:p=T();break;case&quot;y&quot;:var S=A;m=!y(&quot;y&quot;,2),A=S,h=x(&quot;y&quot;,2);break;case&quot;Y&quot;:h=x(&quot;Y&quot;,2);break;case&quot;J&quot;:f=x(&quot;J&quot;)+.5,&quot;.&quot;===e.charAt(M)&amp;&amp;(M++,x(&quot;J&quot;));break;case&quot;@&quot;:f=x(&quot;@&quot;)/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case&quot;!&quot;:f=x(&quot;!&quot;)/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case&quot;*&quot;:M=e.length;break;case&quot;'&quot;:y(&quot;'&quot;)?k():v=!0;break;default:k()}if(M&lt;e.length)throw i.local.unexpectedText||i.regionalOptions[&quot;&quot;].unexpectedText;if(-1===h?h=this.today().year():h&lt;100&amp;&amp;m&amp;&amp;(h+=-1===n?1900:this.today().year()-this.today().year()%100-(h&lt;=n?0:100)),&quot;string&quot;==typeof p&amp;&amp;(p=s.call(this,h,p)),g&gt;-1){p=1,d=g;for(var E=this.daysInMonth(h,p);d&gt;E;E=this.daysInMonth(h,p))p++,d-=E}return f&gt;-1?this.fromJD(f):this.newDate(h,p,d)},determineDate:function(t,e,r,n,i){r&amp;&amp;&quot;object&quot;!=typeof r&amp;&amp;(i=n,n=r,r=null),&quot;string&quot;!=typeof n&amp;&amp;(i=n,n=&quot;&quot;);var a=this;return e=e?e.newDate():null,t=null==t?e:&quot;string&quot;==typeof t?function(t){try{return a.parseDate(n,t,i)}catch(t){}for(var e=((t=t.toLowerCase()).match(/^c/)&amp;&amp;r?r.newDate():null)||a.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,s=o.exec(t);s;)e.add(parseInt(s[1],10),s[2]||&quot;d&quot;),s=o.exec(t);return e}(t):&quot;number&quot;==typeof t?isNaN(t)||t===1/0||t===-1/0?e:a.today().add(t,&quot;d&quot;):a.newDate(t)}})},{&quot;./main&quot;:621,&quot;object-assign&quot;:499}],623:[function(t,e,r){e.exports=t(&quot;cwise-compiler&quot;)({args:[&quot;array&quot;,{offset:[1],array:0},&quot;scalar&quot;,&quot;scalar&quot;,&quot;index&quot;],pre:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},post:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},body:{body:&quot;{\n        var _inline_1_da = _inline_1_arg0_ - _inline_1_arg3_\n        var _inline_1_db = _inline_1_arg1_ - _inline_1_arg3_\n        if((_inline_1_da &gt;= 0) !== (_inline_1_db &gt;= 0)) {\n          _inline_1_arg2_.push(_inline_1_arg4_[0] + 0.5 + 0.5 * (_inline_1_da + _inline_1_db) / (_inline_1_da - _inline_1_db))\n        }\n      }&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg2_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg3_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg4_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[],localVars:[&quot;_inline_1_da&quot;,&quot;_inline_1_db&quot;]},funcName:&quot;zeroCrossings&quot;})},{&quot;cwise-compiler&quot;:151}],624:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=[];return e=+e||0,n(t.hi(t.shape[0]-1),r,e),r};var n=t(&quot;./lib/zc-core&quot;)},{&quot;./lib/zc-core&quot;:623}],625:[function(t,e,r){&quot;use strict&quot;;e.exports=[{path:&quot;&quot;,backoff:0},{path:&quot;M-2.4,-3V3L0.6,0Z&quot;,backoff:.6},{path:&quot;M-3.7,-2.5V2.5L1.3,0Z&quot;,backoff:1.3},{path:&quot;M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z&quot;,backoff:1.55},{path:&quot;M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z&quot;,backoff:1.6},{path:&quot;M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z&quot;,backoff:2},{path:&quot;M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z&quot;,backoff:0,noRotate:!0},{path:&quot;M2,2V-2H-2V2Z&quot;,backoff:0,noRotate:!0}]},{}],626:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./arrow_paths&quot;),i=t(&quot;../../plots/font_attributes&quot;),a=t(&quot;../../plots/cartesian/constants&quot;),o=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=o(&quot;annotation&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},text:{valType:&quot;string&quot;,editType:&quot;calc+arraydraw&quot;},textangle:{valType:&quot;angle&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},font:i({editType:&quot;calc+arraydraw&quot;,colorEditType:&quot;arraydraw&quot;}),width:{valType:&quot;number&quot;,min:1,dflt:null,editType:&quot;calc+arraydraw&quot;},height:{valType:&quot;number&quot;,min:1,dflt:null,editType:&quot;calc+arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;center&quot;,editType:&quot;arraydraw&quot;},valign:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;,editType:&quot;arraydraw&quot;},bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},bordercolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},borderpad:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc+arraydraw&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc+arraydraw&quot;},showarrow:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},arrowcolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},arrowhead:{valType:&quot;integer&quot;,min:0,max:n.length,dflt:1,editType:&quot;arraydraw&quot;},startarrowhead:{valType:&quot;integer&quot;,min:0,max:n.length,dflt:1,editType:&quot;arraydraw&quot;},arrowside:{valType:&quot;flaglist&quot;,flags:[&quot;end&quot;,&quot;start&quot;],extras:[&quot;none&quot;],dflt:&quot;end&quot;,editType:&quot;arraydraw&quot;},arrowsize:{valType:&quot;number&quot;,min:.3,dflt:1,editType:&quot;calc+arraydraw&quot;},startarrowsize:{valType:&quot;number&quot;,min:.3,dflt:1,editType:&quot;calc+arraydraw&quot;},arrowwidth:{valType:&quot;number&quot;,min:.1,editType:&quot;calc+arraydraw&quot;},standoff:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc+arraydraw&quot;},startstandoff:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc+arraydraw&quot;},ax:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},ay:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},axref:{valType:&quot;enumerated&quot;,dflt:&quot;pixel&quot;,values:[&quot;pixel&quot;,a.idRegex.x.toString()],editType:&quot;calc&quot;},ayref:{valType:&quot;enumerated&quot;,dflt:&quot;pixel&quot;,values:[&quot;pixel&quot;,a.idRegex.y.toString()],editType:&quot;calc&quot;},xref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,a.idRegex.x.toString()],editType:&quot;calc&quot;},x:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;auto&quot;,editType:&quot;calc+arraydraw&quot;},xshift:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},yref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,a.idRegex.y.toString()],editType:&quot;calc&quot;},y:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;auto&quot;,editType:&quot;calc+arraydraw&quot;},yshift:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},clicktoshow:{valType:&quot;enumerated&quot;,values:[!1,&quot;onoff&quot;,&quot;onout&quot;],dflt:!1,editType:&quot;arraydraw&quot;},xclick:{valType:&quot;any&quot;,editType:&quot;arraydraw&quot;},yclick:{valType:&quot;any&quot;,editType:&quot;arraydraw&quot;},hovertext:{valType:&quot;string&quot;,editType:&quot;arraydraw&quot;},hoverlabel:{bgcolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},bordercolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},font:i({editType:&quot;arraydraw&quot;}),editType:&quot;arraydraw&quot;},captureevents:{valType:&quot;boolean&quot;,editType:&quot;arraydraw&quot;},editType:&quot;calc&quot;,_deprecated:{ref:{valType:&quot;string&quot;,editType:&quot;calc&quot;}}})},{&quot;../../constants/axis_placeable_objects&quot;:746,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834,&quot;../../plots/font_attributes&quot;:856,&quot;./arrow_paths&quot;:625}],627:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;./draw&quot;).draw;function o(t){var e=t._fullLayout;n.filterVisible(e.annotations).forEach((function(e){var r=i.getFromId(t,e.xref),n=i.getFromId(t,e.yref),a=i.getRefType(e.xref),o=i.getRefType(e.yref);e._extremes={},&quot;range&quot;===a&amp;&amp;s(e,r),&quot;range&quot;===o&amp;&amp;s(e,n)}))}function s(t,e){var r,n=e._id,a=n.charAt(0),o=t[a],s=t[&quot;a&quot;+a],l=t[a+&quot;ref&quot;],c=t[&quot;a&quot;+a+&quot;ref&quot;],u=t[&quot;_&quot;+a+&quot;padplus&quot;],f=t[&quot;_&quot;+a+&quot;padminus&quot;],h={x:1,y:-1}[a]*t[a+&quot;shift&quot;],p=3*t.arrowsize*t.arrowwidth||0,d=p+h,g=p-h,m=3*t.startarrowsize*t.arrowwidth||0,v=m+h,y=m-h;if(c===l){var x=i.findExtremes(e,[e.r2c(o)],{ppadplus:d,ppadminus:g}),b=i.findExtremes(e,[e.r2c(s)],{ppadplus:Math.max(u,v),ppadminus:Math.max(f,y)});r={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else v=s?v+s:v,y=s?y-s:y,r=i.findExtremes(e,[e.r2c(o)],{ppadplus:Math.max(u,d,v),ppadminus:Math.max(f,g,y)});t._extremes[n]=r}e.exports=function(t){var e=t._fullLayout;if(n.filterVisible(e.annotations).length&amp;&amp;t._fullData.length)return n.syncOrAsync([a,o],t)}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./draw&quot;:632}],628:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plot_api/plot_template&quot;).arrayEditor;function o(t,e){var r,n,i,a,o,l,c,u=t._fullLayout.annotations,f=[],h=[],p=[],d=(e||[]).length;for(r=0;r&lt;u.length;r++)if(a=(i=u[r]).clicktoshow){for(n=0;n&lt;d;n++)if(l=(o=e[n]).xaxis,c=o.yaxis,l._id===i.xref&amp;&amp;c._id===i.yref&amp;&amp;l.d2r(o.x)===s(i._xclick,l)&amp;&amp;c.d2r(o.y)===s(i._yclick,c)){(i.visible?&quot;onout&quot;===a?h:p:f).push(r);break}n===d&amp;&amp;i.visible&amp;&amp;&quot;onout&quot;===a&amp;&amp;h.push(r)}return{on:f,off:h,explicitOff:p}}function s(t,e){return&quot;log&quot;===e.type?e.l2r(t):e.d2r(t)}e.exports={hasClickToShow:function(t,e){var r=o(t,e);return r.on.length&gt;0||r.explicitOff.length&gt;0},onClick:function(t,e){var r,s,l=o(t,e),c=l.on,u=l.off.concat(l.explicitOff),f={},h=t._fullLayout.annotations;if(!c.length&amp;&amp;!u.length)return;for(r=0;r&lt;c.length;r++)(s=a(t.layout,&quot;annotations&quot;,h[c[r]])).modifyItem(&quot;visible&quot;,!0),n.extendFlat(f,s.getUpdateObj());for(r=0;r&lt;u.length;r++)(s=a(t.layout,&quot;annotations&quot;,h[u[r]])).modifyItem(&quot;visible&quot;,!1),n.extendFlat(f,s.getUpdateObj());return i.call(&quot;update&quot;,t,{},f)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../registry&quot;:911}],629:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;);e.exports=function(t,e,r,a){a(&quot;opacity&quot;);var o=a(&quot;bgcolor&quot;),s=a(&quot;bordercolor&quot;),l=i.opacity(s);a(&quot;borderpad&quot;);var c=a(&quot;borderwidth&quot;),u=a(&quot;showarrow&quot;);if(a(&quot;text&quot;,u?&quot; &quot;:r._dfltTitle.annotation),a(&quot;textangle&quot;),n.coerceFont(a,&quot;font&quot;,r.font),a(&quot;width&quot;),a(&quot;align&quot;),a(&quot;height&quot;)&amp;&amp;a(&quot;valign&quot;),u){var f,h,p=a(&quot;arrowside&quot;);-1!==p.indexOf(&quot;end&quot;)&amp;&amp;(f=a(&quot;arrowhead&quot;),h=a(&quot;arrowsize&quot;)),-1!==p.indexOf(&quot;start&quot;)&amp;&amp;(a(&quot;startarrowhead&quot;,f),a(&quot;startarrowsize&quot;,h)),a(&quot;arrowcolor&quot;,l?e.bordercolor:i.defaultLine),a(&quot;arrowwidth&quot;,2*(l&amp;&amp;c||1)),a(&quot;standoff&quot;),a(&quot;startstandoff&quot;)}var d=a(&quot;hovertext&quot;),g=r.hoverlabel||{};if(d){var m=a(&quot;hoverlabel.bgcolor&quot;,g.bgcolor||(i.opacity(o)?i.rgb(o):i.defaultLine)),v=a(&quot;hoverlabel.bordercolor&quot;,g.bordercolor||i.contrast(m));n.coerceFont(a,&quot;hoverlabel.font&quot;,{family:g.font.family,size:g.font.size,color:g.font.color||v})}a(&quot;captureevents&quot;,!!d)}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643}],630:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib/to_log_range&quot;);e.exports=function(t,e,r,a){e=e||{};var o=&quot;log&quot;===r&amp;&amp;&quot;linear&quot;===e.type,s=&quot;linear&quot;===r&amp;&amp;&quot;log&quot;===e.type;if(o||s)for(var l,c,u=t._fullLayout.annotations,f=e._id.charAt(0),h=0;h&lt;u.length;h++)l=u[h],c=&quot;annotations[&quot;+h+&quot;].&quot;,l[f+&quot;ref&quot;]===e._id&amp;&amp;p(f),l[&quot;a&quot;+f+&quot;ref&quot;]===e._id&amp;&amp;p(&quot;a&quot;+f);function p(t){var r=l[t],s=null;s=o?i(r,e.range):Math.pow(10,r),n(s)||(s=null),a(c+t,s)}}},{&quot;../../lib/to_log_range&quot;:805,&quot;fast-isnumeric&quot;:241}],631:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./common_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r){function a(r,i){return n.coerce(t,e,s,r,i)}var l=a(&quot;visible&quot;),c=a(&quot;clicktoshow&quot;);if(l||c){o(t,e,r,a);for(var u=e.showarrow,f=[&quot;x&quot;,&quot;y&quot;],h=[-10,-30],p={_fullLayout:r},d=0;d&lt;2;d++){var g=f[d],m=i.coerceRef(t,e,p,g,&quot;&quot;,&quot;paper&quot;);if(&quot;paper&quot;!==m)i.getFromId(p,m)._annIndices.push(e._index);if(i.coercePosition(e,p,a,m,g,.5),u){var v=&quot;a&quot;+g,y=i.coerceRef(t,e,p,v,&quot;pixel&quot;,[&quot;pixel&quot;,&quot;paper&quot;]);&quot;pixel&quot;!==y&amp;&amp;y!==m&amp;&amp;(y=e[v]=&quot;pixel&quot;);var x=&quot;pixel&quot;===y?h[d]:.4;i.coercePosition(e,p,a,y,v,x)}a(g+&quot;anchor&quot;),a(g+&quot;shift&quot;)}if(n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),u&amp;&amp;n.noneOrAll(t,e,[&quot;ax&quot;,&quot;ay&quot;]),c){var b=a(&quot;xclick&quot;),_=a(&quot;yclick&quot;);e._xclick=void 0===b?e.x:i.cleanPosition(b,p,e.xref),e._yclick=void 0===_?e.y:i.cleanPosition(_,p,e.yref)}}}e.exports=function(t,e){a(t,e,{name:&quot;annotations&quot;,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:626,&quot;./common_defaults&quot;:629}],632:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;../color&quot;),u=t(&quot;../drawing&quot;),f=t(&quot;../fx&quot;),h=t(&quot;../../lib/svg_text_utils&quot;),p=t(&quot;../../lib/setcursor&quot;),d=t(&quot;../dragelement&quot;),g=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,m=t(&quot;./draw_arrow_head&quot;);function v(t,e){var r=t._fullLayout.annotations[e]||{},n=l.getFromId(t,r.xref),i=l.getFromId(t,r.yref);n&amp;&amp;n.setScale(),i&amp;&amp;i.setScale(),x(t,r,e,!1,n,i)}function y(t,e,r,n,i){var a=i[r],o=i[r+&quot;ref&quot;],s=-1!==r.indexOf(&quot;y&quot;),c=&quot;domain&quot;===l.getRefType(o),u=s?n.h:n.w;return t?c?a+(s?-e:e)/t._length:t.p2r(t.r2p(a)+e):a+(s?-e:e)/u}function x(t,e,r,a,v,x){var b,_,w=t._fullLayout,T=t._fullLayout._size,k=t._context.edits;a?(b=&quot;annotation-&quot;+a,_=a+&quot;.annotations&quot;):(b=&quot;annotation&quot;,_=&quot;annotations&quot;);var M=g(t.layout,_,e),A=M.modifyBase,S=M.modifyItem,E=M.getUpdateObj;w._infolayer.selectAll(&quot;.&quot;+b+'[data-index=&quot;'+r+'&quot;]').remove();var C=&quot;clip&quot;+w._uid+&quot;_ann&quot;+r;if(e._input&amp;&amp;!1!==e.visible){var L={x:{},y:{}},I=+e.textangle||0,P=w._infolayer.append(&quot;g&quot;).classed(b,!0).attr(&quot;data-index&quot;,String(r)).style(&quot;opacity&quot;,e.opacity),z=P.append(&quot;g&quot;).classed(&quot;annotation-text-g&quot;,!0),O=k[e.showarrow?&quot;annotationTail&quot;:&quot;annotationPosition&quot;],D=e.captureevents||k.annotationText||O,R=z.append(&quot;g&quot;).style(&quot;pointer-events&quot;,D?&quot;all&quot;:null).call(p,&quot;pointer&quot;).on(&quot;click&quot;,(function(){t._dragging=!1,t.emit(&quot;plotly_clickannotation&quot;,Y(n.event))}));e.hovertext&amp;&amp;R.on(&quot;mouseover&quot;,(function(){var r=e.hoverlabel,n=r.font,i=this.getBoundingClientRect(),a=t.getBoundingClientRect();f.loneHover({x0:i.left-a.left,x1:i.right-a.left,y:(i.top+i.bottom)/2-a.top,text:e.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:w._hoverlayer.node(),outerContainer:w._paper.node(),gd:t})})).on(&quot;mouseout&quot;,(function(){f.loneUnhover(w._hoverlayer.node())}));var F=e.borderwidth,B=e.borderpad,N=F+B,j=R.append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bg&quot;).style(&quot;stroke-width&quot;,F+&quot;px&quot;).call(c.stroke,e.bordercolor).call(c.fill,e.bgcolor),U=e.width||e.height,V=w._topclips.selectAll(&quot;#&quot;+C).data(U?[0]:[]);V.enter().append(&quot;clipPath&quot;).classed(&quot;annclip&quot;,!0).attr(&quot;id&quot;,C).append(&quot;rect&quot;),V.exit().remove();var q=e.font,H=w._meta?o.templateString(e.text,w._meta):e.text,G=R.append(&quot;text&quot;).classed(&quot;annotation-text&quot;,!0).text(H);k.annotationText?G.call(h.makeEditable,{delegate:R,gd:t}).call(W).on(&quot;edit&quot;,(function(r){e.text=r,this.call(W),S(&quot;text&quot;,r),v&amp;&amp;v.autorange&amp;&amp;A(v._name+&quot;.autorange&quot;,!0),x&amp;&amp;x.autorange&amp;&amp;A(x._name+&quot;.autorange&quot;,!0),i.call(&quot;_guiRelayout&quot;,t,E())})):G.call(W)}else n.selectAll(&quot;#&quot;+C).remove();function Y(t){var n={index:r,annotation:e._input,fullAnnotation:e,event:t};return a&amp;&amp;(n.subplotId=a),n}function W(r){return r.call(u.font,q).attr({&quot;text-anchor&quot;:{left:&quot;start&quot;,right:&quot;end&quot;}[e.align]||&quot;middle&quot;}),h.convertToTspans(r,t,X),r}function X(){var r=G.selectAll(&quot;a&quot;);1===r.size()&amp;&amp;r.text()===G.text()&amp;&amp;R.insert(&quot;a&quot;,&quot;:first-child&quot;).attr({&quot;xlink:xlink:href&quot;:r.attr(&quot;xlink:href&quot;),&quot;xlink:xlink:show&quot;:r.attr(&quot;xlink:show&quot;)}).style({cursor:&quot;pointer&quot;}).node().appendChild(j.node());var n=R.select(&quot;.annotation-text-math-group&quot;),f=!n.empty(),g=u.bBox((f?n:G).node()),b=g.width,_=g.height,M=e.width||b,D=e.height||_,B=Math.round(M+2*N),q=Math.round(D+2*N);function H(t,e){return&quot;auto&quot;===e&amp;&amp;(e=t&lt;1/3?&quot;left&quot;:t&gt;2/3?&quot;right&quot;:&quot;center&quot;),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[e]}for(var W=!1,X=[&quot;x&quot;,&quot;y&quot;],Z=0;Z&lt;X.length;Z++){var J,K,Q,$,tt,et=X[Z],rt=e[et+&quot;ref&quot;]||et,nt=e[&quot;a&quot;+et+&quot;ref&quot;],it={x:v,y:x}[et],at=(I+(&quot;x&quot;===et?0:-90))*Math.PI/180,ot=B*Math.cos(at),st=q*Math.sin(at),lt=Math.abs(ot)+Math.abs(st),ct=e[et+&quot;anchor&quot;],ut=e[et+&quot;shift&quot;]*(&quot;x&quot;===et?1:-1),ft=L[et],ht=l.getRefType(rt);if(it&amp;&amp;&quot;domain&quot;!==ht){var pt=it.r2fraction(e[et]);(pt&lt;0||pt&gt;1)&amp;&amp;(nt===rt?((pt=it.r2fraction(e[&quot;a&quot;+et]))&lt;0||pt&gt;1)&amp;&amp;(W=!0):W=!0),J=it._offset+it.r2p(e[et]),$=.5}else{var dt=&quot;domain&quot;===ht;&quot;x&quot;===et?(Q=e[et],J=dt?it._offset+it._length*Q:J=T.l+T.w*Q):(Q=1-e[et],J=dt?it._offset+it._length*Q:J=T.t+T.h*Q),$=e.showarrow?.5:Q}if(e.showarrow){ft.head=J;var gt=e[&quot;a&quot;+et];if(tt=ot*H(.5,e.xanchor)-st*H(.5,e.yanchor),nt===rt){var mt=l.getRefType(nt);&quot;domain&quot;===mt?(&quot;y&quot;===et&amp;&amp;(gt=1-gt),ft.tail=it._offset+it._length*gt):&quot;paper&quot;===mt?&quot;y&quot;===et?(gt=1-gt,ft.tail=T.t+T.h*gt):ft.tail=T.l+T.w*gt:ft.tail=it._offset+it.r2p(gt),K=tt}else ft.tail=J+gt,K=tt+gt;ft.text=ft.tail+tt;var vt=w[&quot;x&quot;===et?&quot;width&quot;:&quot;height&quot;];if(&quot;paper&quot;===rt&amp;&amp;(ft.head=o.constrain(ft.head,1,vt-1)),&quot;pixel&quot;===nt){var yt=-Math.max(ft.tail-3,ft.text),xt=Math.min(ft.tail+3,ft.text)-vt;yt&gt;0?(ft.tail+=yt,ft.text+=yt):xt&gt;0&amp;&amp;(ft.tail-=xt,ft.text-=xt)}ft.tail+=ut,ft.head+=ut}else K=tt=lt*H($,ct),ft.text=J+tt;ft.text+=ut,tt+=ut,K+=ut,e[&quot;_&quot;+et+&quot;padplus&quot;]=lt/2+K,e[&quot;_&quot;+et+&quot;padminus&quot;]=lt/2-K,e[&quot;_&quot;+et+&quot;size&quot;]=lt,e[&quot;_&quot;+et+&quot;shift&quot;]=tt}if(W)R.remove();else{var bt=0,_t=0;if(&quot;left&quot;!==e.align&amp;&amp;(bt=(M-b)*(&quot;center&quot;===e.align?.5:1)),&quot;top&quot;!==e.valign&amp;&amp;(_t=(D-_)*(&quot;middle&quot;===e.valign?.5:1)),f)n.select(&quot;svg&quot;).attr({x:N+bt-1,y:N+_t}).call(u.setClipUrl,U?C:null,t);else{var wt=N+_t-g.top,Tt=N+bt-g.left;G.call(h.positionText,Tt,wt).call(u.setClipUrl,U?C:null,t)}V.select(&quot;rect&quot;).call(u.setRect,N,N,M,D),j.call(u.setRect,F/2,F/2,B-F,q-F),R.call(u.setTranslate,Math.round(L.x.text-B/2),Math.round(L.y.text-q/2)),z.attr({transform:&quot;rotate(&quot;+I+&quot;,&quot;+L.x.text+&quot;,&quot;+L.y.text+&quot;)&quot;});var kt,Mt=function(r,n){P.selectAll(&quot;.annotation-arrow-g&quot;).remove();var l=L.x.head,f=L.y.head,h=L.x.tail+r,p=L.y.tail+n,g=L.x.text+r,b=L.y.text+n,_=o.rotationXYMatrix(I,g,b),w=o.apply2DTransform(_),M=o.apply2DTransform2(_),C=+j.attr(&quot;width&quot;),O=+j.attr(&quot;height&quot;),D=g-.5*C,F=D+C,B=b-.5*O,N=B+O,U=[[D,B,D,N],[D,N,F,N],[F,N,F,B],[F,B,D,B]].map(M);if(!U.reduce((function(t,e){return t^!!o.segmentsIntersect(l,f,l+1e6,f+1e6,e[0],e[1],e[2],e[3])}),!1)){U.forEach((function(t){var e=o.segmentsIntersect(h,p,l,f,t[0],t[1],t[2],t[3]);e&amp;&amp;(h=e.x,p=e.y)}));var V=e.arrowwidth,q=e.arrowcolor,H=e.arrowside,G=P.append(&quot;g&quot;).style({opacity:c.opacity(q)}).classed(&quot;annotation-arrow-g&quot;,!0),Y=G.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M&quot;+h+&quot;,&quot;+p+&quot;L&quot;+l+&quot;,&quot;+f).style(&quot;stroke-width&quot;,V+&quot;px&quot;).call(c.stroke,c.rgb(q));if(m(Y,H,e),k.annotationPosition&amp;&amp;Y.node().parentNode&amp;&amp;!a){var W=l,X=f;if(e.standoff){var Z=Math.sqrt(Math.pow(l-h,2)+Math.pow(f-p,2));W+=e.standoff*(h-l)/Z,X+=e.standoff*(p-f)/Z}var J,K,Q=G.append(&quot;path&quot;).classed(&quot;annotation-arrow&quot;,!0).classed(&quot;anndrag&quot;,!0).classed(&quot;cursor-move&quot;,!0).attr({d:&quot;M3,3H-3V-3H3ZM0,0L&quot;+(h-W)+&quot;,&quot;+(p-X),transform:s(W,X)}).style(&quot;stroke-width&quot;,V+6+&quot;px&quot;).call(c.stroke,&quot;rgba(0,0,0,0)&quot;).call(c.fill,&quot;rgba(0,0,0,0)&quot;);d.init({element:Q.node(),gd:t,prepFn:function(){var t=u.getTranslate(R);J=t.x,K=t.y,v&amp;&amp;v.autorange&amp;&amp;A(v._name+&quot;.autorange&quot;,!0),x&amp;&amp;x.autorange&amp;&amp;A(x._name+&quot;.autorange&quot;,!0)},moveFn:function(t,r){var n=w(J,K),i=n[0]+t,a=n[1]+r;R.call(u.setTranslate,i,a),S(&quot;x&quot;,y(v,t,&quot;x&quot;,T,e)),S(&quot;y&quot;,y(x,r,&quot;y&quot;,T,e)),e.axref===e.xref&amp;&amp;S(&quot;ax&quot;,y(v,t,&quot;ax&quot;,T,e)),e.ayref===e.yref&amp;&amp;S(&quot;ay&quot;,y(x,r,&quot;ay&quot;,T,e)),G.attr(&quot;transform&quot;,s(t,r)),z.attr({transform:&quot;rotate(&quot;+I+&quot;,&quot;+i+&quot;,&quot;+a+&quot;)&quot;})},doneFn:function(){i.call(&quot;_guiRelayout&quot;,t,E());var e=document.querySelector(&quot;.js-notes-box-panel&quot;);e&amp;&amp;e.redraw(e.selectedObj)}})}}};if(e.showarrow&amp;&amp;Mt(0,0),O)d.init({element:R.node(),gd:t,prepFn:function(){kt=z.attr(&quot;transform&quot;)},moveFn:function(t,r){var n=&quot;pointer&quot;;if(e.showarrow)e.axref===e.xref?S(&quot;ax&quot;,y(v,t,&quot;ax&quot;,T,e)):S(&quot;ax&quot;,e.ax+t),e.ayref===e.yref?S(&quot;ay&quot;,y(x,r,&quot;ay&quot;,T.w,e)):S(&quot;ay&quot;,e.ay+r),Mt(t,r);else{if(a)return;var i,o;if(v)i=y(v,t,&quot;x&quot;,T,e);else{var l=e._xsize/T.w,c=e.x+(e._xshift-e.xshift)/T.w-l/2;i=d.align(c+t/T.w,l,0,1,e.xanchor)}if(x)o=y(x,r,&quot;y&quot;,T,e);else{var u=e._ysize/T.h,f=e.y-(e._yshift+e.yshift)/T.h-u/2;o=d.align(f-r/T.h,u,0,1,e.yanchor)}S(&quot;x&quot;,i),S(&quot;y&quot;,o),v&amp;&amp;x||(n=d.getCursor(v?.5:i,x?.5:o,e.xanchor,e.yanchor))}z.attr({transform:s(t,r)+kt}),p(R,n)},clickFn:function(r,n){e.captureevents&amp;&amp;t.emit(&quot;plotly_clickannotation&quot;,Y(n))},doneFn:function(){p(R),i.call(&quot;_guiRelayout&quot;,t,E());var e=document.querySelector(&quot;.js-notes-box-panel&quot;);e&amp;&amp;e.redraw(e.selectedObj)}})}}}e.exports={draw:function(t){var e=t._fullLayout;e._infolayer.selectAll(&quot;.annotation&quot;).remove();for(var r=0;r&lt;e.annotations.length;r++)e.annotations[r].visible&amp;&amp;v(t,r);return a.previousPromises(t)},drawOne:v,drawRaw:x}},{&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../fx&quot;:683,&quot;./draw_arrow_head&quot;:633,d3:169}],633:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../color&quot;),a=t(&quot;./arrow_paths&quot;),o=t(&quot;../../lib&quot;),s=o.strScale,l=o.strRotate,c=o.strTranslate;e.exports=function(t,e,r){var o,u,f,h,p=t.node(),d=a[r.arrowhead||0],g=a[r.startarrowhead||0],m=(r.arrowwidth||1)*(r.arrowsize||1),v=(r.arrowwidth||1)*(r.startarrowsize||1),y=e.indexOf(&quot;start&quot;)&gt;=0,x=e.indexOf(&quot;end&quot;)&gt;=0,b=d.backoff*m+r.standoff,_=g.backoff*v+r.startstandoff;if(&quot;line&quot;===p.nodeName){o={x:+t.attr(&quot;x1&quot;),y:+t.attr(&quot;y1&quot;)},u={x:+t.attr(&quot;x2&quot;),y:+t.attr(&quot;y2&quot;)};var w=o.x-u.x,T=o.y-u.y;if(h=(f=Math.atan2(T,w))+Math.PI,b&amp;&amp;_&amp;&amp;b+_&gt;Math.sqrt(w*w+T*T))return void O();if(b){if(b*b&gt;w*w+T*T)return void O();var k=b*Math.cos(f),M=b*Math.sin(f);u.x+=k,u.y+=M,t.attr({x2:u.x,y2:u.y})}if(_){if(_*_&gt;w*w+T*T)return void O();var A=_*Math.cos(f),S=_*Math.sin(f);o.x-=A,o.y-=S,t.attr({x1:o.x,y1:o.y})}}else if(&quot;path&quot;===p.nodeName){var E=p.getTotalLength(),C=&quot;&quot;;if(E&lt;b+_)return void O();var L=p.getPointAtLength(0),I=p.getPointAtLength(.1);f=Math.atan2(L.y-I.y,L.x-I.x),o=p.getPointAtLength(Math.min(_,E)),C=&quot;0px,&quot;+_+&quot;px,&quot;;var P=p.getPointAtLength(E),z=p.getPointAtLength(E-.1);h=Math.atan2(P.y-z.y,P.x-z.x),u=p.getPointAtLength(Math.max(0,E-b)),C+=E-(C?_+b:b)+&quot;px,&quot;+E+&quot;px&quot;,t.style(&quot;stroke-dasharray&quot;,C)}function O(){t.style(&quot;stroke-dasharray&quot;,&quot;0px,100px&quot;)}function D(e,a,o,u){e.path&amp;&amp;(e.noRotate&amp;&amp;(o=0),n.select(p.parentNode).append(&quot;path&quot;).attr({class:t.attr(&quot;class&quot;),d:e.path,transform:c(a.x,a.y)+l(180*o/Math.PI)+s(u)}).style({fill:i.rgb(r.arrowcolor),&quot;stroke-width&quot;:0}))}y&amp;&amp;D(g,o,f,v),x&amp;&amp;D(d,u,h,m)}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;./arrow_paths&quot;:625,d3:169}],634:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;),i=t(&quot;./click&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;annotations&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;annotations&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:i.hasClickToShow,onClick:i.onClick,convertCoords:t(&quot;./convert_coords&quot;)}},{&quot;../../plots/cartesian/include_components&quot;:840,&quot;./attributes&quot;:626,&quot;./calc_autorange&quot;:627,&quot;./click&quot;:628,&quot;./convert_coords&quot;:630,&quot;./defaults&quot;:631,&quot;./draw&quot;:632}],635:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/attributes&quot;),i=t(&quot;../../plot_api/edit_types&quot;).overrideAll,a=t(&quot;../../plot_api/plot_template&quot;).templatedArray;e.exports=i(a(&quot;annotation&quot;,{visible:n.visible,x:{valType:&quot;any&quot;},y:{valType:&quot;any&quot;},z:{valType:&quot;any&quot;},ax:{valType:&quot;number&quot;},ay:{valType:&quot;number&quot;},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,startarrowhead:n.startarrowhead,arrowside:n.arrowside,arrowsize:n.arrowsize,startarrowsize:n.startarrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,startstandoff:n.startstandoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents}),&quot;calc&quot;,&quot;from-root&quot;)},{&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../annotations/attributes&quot;:626}],636:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;);function a(t,e){var r=e.fullSceneLayout.domain,a=e.fullLayout._size,o={pdata:null,type:&quot;linear&quot;,autorange:!1,range:[-1/0,1/0]};t._xa={},n.extendFlat(t._xa,o),i.setConvert(t._xa),t._xa._offset=a.l+r.x[0]*a.w,t._xa.l2p=function(){return.5*(1+t._pdata[0]/t._pdata[3])*a.w*(r.x[1]-r.x[0])},t._ya={},n.extendFlat(t._ya,o),i.setConvert(t._ya),t._ya._offset=a.t+(1-r.y[1])*a.h,t._ya.l2p=function(){return.5*(1-t._pdata[1]/t._pdata[3])*a.h*(r.y[1]-r.y[0])}}e.exports=function(t){for(var e=t.fullSceneLayout.annotations,r=0;r&lt;e.length;r++)a(e[r],t);t.fullLayout._infolayer.selectAll(&quot;.annotation-&quot;+t.id).remove()}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],637:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;../annotations/common_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r,a){function l(r,i){return n.coerce(t,e,s,r,i)}function c(t){var n=t+&quot;axis&quot;,a={_fullLayout:{}};return a._fullLayout[n]=r[n],i.coercePosition(e,a,l,t,t,.5)}l(&quot;visible&quot;)&amp;&amp;(o(t,e,a.fullLayout,l),c(&quot;x&quot;),c(&quot;y&quot;),c(&quot;z&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;]),e.xref=&quot;x&quot;,e.yref=&quot;y&quot;,e.zref=&quot;z&quot;,l(&quot;xanchor&quot;),l(&quot;yanchor&quot;),l(&quot;xshift&quot;),l(&quot;yshift&quot;),e.showarrow&amp;&amp;(e.axref=&quot;pixel&quot;,e.ayref=&quot;pixel&quot;,l(&quot;ax&quot;,-10),l(&quot;ay&quot;,-30),n.noneOrAll(t,e,[&quot;ax&quot;,&quot;ay&quot;])))}e.exports=function(t,e,r){a(t,e,{name:&quot;annotations&quot;,handleItemDefaults:l,fullLayout:r.fullLayout})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;../annotations/common_defaults&quot;:629,&quot;./attributes&quot;:635}],638:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/draw&quot;).drawRaw,i=t(&quot;../../plots/gl3d/project&quot;),a=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];e.exports=function(t){for(var e=t.fullSceneLayout,r=t.dataScale,o=e.annotations,s=0;s&lt;o.length;s++){for(var l=o[s],c=!1,u=0;u&lt;3;u++){var f=a[u],h=l[f],p=e[f+&quot;axis&quot;].r2fraction(h);if(p&lt;0||p&gt;1){c=!0;break}}c?t.fullLayout._infolayer.select(&quot;.annotation-&quot;+t.id+'[data-index=&quot;'+s+'&quot;]').remove():(l._pdata=i(t.glplot.cameraParams,[e.xaxis.r2l(l.x)*r[0],e.yaxis.r2l(l.y)*r[1],e.zaxis.r2l(l.z)*r[2]]),n(t.graphDiv,l,s,t.id,l._xa,l._ya))}}},{&quot;../../plots/gl3d/project&quot;:879,&quot;../annotations/draw&quot;:632}],639:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;annotations3d&quot;,schema:{subplots:{scene:{annotations:t(&quot;./attributes&quot;)}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),includeBasePlot:function(t,e){var r=n.subplotsRegistry.gl3d;if(!r)return;for(var a=r.attrRegex,o=Object.keys(t),s=0;s&lt;o.length;s++){var l=o[s];a.test(l)&amp;&amp;(t[l].annotations||[]).length&amp;&amp;(i.pushUnique(e._basePlotModules,r),i.pushUnique(e._subplots.gl3d,l))}},convert:t(&quot;./convert&quot;),draw:t(&quot;./draw&quot;)}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:635,&quot;./convert&quot;:636,&quot;./defaults&quot;:637,&quot;./draw&quot;:638}],640:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;world-calendars/dist/main&quot;),t(&quot;world-calendars/dist/plus&quot;),t(&quot;world-calendars/dist/calendars/chinese&quot;),t(&quot;world-calendars/dist/calendars/coptic&quot;),t(&quot;world-calendars/dist/calendars/discworld&quot;),t(&quot;world-calendars/dist/calendars/ethiopian&quot;),t(&quot;world-calendars/dist/calendars/hebrew&quot;),t(&quot;world-calendars/dist/calendars/islamic&quot;),t(&quot;world-calendars/dist/calendars/julian&quot;),t(&quot;world-calendars/dist/calendars/mayan&quot;),t(&quot;world-calendars/dist/calendars/nanakshahi&quot;),t(&quot;world-calendars/dist/calendars/nepali&quot;),t(&quot;world-calendars/dist/calendars/persian&quot;),t(&quot;world-calendars/dist/calendars/taiwan&quot;),t(&quot;world-calendars/dist/calendars/thai&quot;),t(&quot;world-calendars/dist/calendars/ummalqura&quot;)},{&quot;world-calendars/dist/calendars/chinese&quot;:607,&quot;world-calendars/dist/calendars/coptic&quot;:608,&quot;world-calendars/dist/calendars/discworld&quot;:609,&quot;world-calendars/dist/calendars/ethiopian&quot;:610,&quot;world-calendars/dist/calendars/hebrew&quot;:611,&quot;world-calendars/dist/calendars/islamic&quot;:612,&quot;world-calendars/dist/calendars/julian&quot;:613,&quot;world-calendars/dist/calendars/mayan&quot;:614,&quot;world-calendars/dist/calendars/nanakshahi&quot;:615,&quot;world-calendars/dist/calendars/nepali&quot;:616,&quot;world-calendars/dist/calendars/persian&quot;:617,&quot;world-calendars/dist/calendars/taiwan&quot;:618,&quot;world-calendars/dist/calendars/thai&quot;:619,&quot;world-calendars/dist/calendars/ummalqura&quot;:620,&quot;world-calendars/dist/main&quot;:621,&quot;world-calendars/dist/plus&quot;:622}],641:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./calendars&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;),o=a.EPOCHJD,s=a.ONEDAY,l={valType:&quot;enumerated&quot;,values:Object.keys(n.calendars),editType:&quot;calc&quot;,dflt:&quot;gregorian&quot;},c=function(t,e,r,n){var a={};return a[r]=l,i.coerce(t,e,a,r,n)},u={d:{0:&quot;dd&quot;,&quot;-&quot;:&quot;d&quot;},e:{0:&quot;d&quot;,&quot;-&quot;:&quot;d&quot;},a:{0:&quot;D&quot;,&quot;-&quot;:&quot;D&quot;},A:{0:&quot;DD&quot;,&quot;-&quot;:&quot;DD&quot;},j:{0:&quot;oo&quot;,&quot;-&quot;:&quot;o&quot;},W:{0:&quot;ww&quot;,&quot;-&quot;:&quot;w&quot;},m:{0:&quot;mm&quot;,&quot;-&quot;:&quot;m&quot;},b:{0:&quot;M&quot;,&quot;-&quot;:&quot;M&quot;},B:{0:&quot;MM&quot;,&quot;-&quot;:&quot;MM&quot;},y:{0:&quot;yy&quot;,&quot;-&quot;:&quot;yy&quot;},Y:{0:&quot;yyyy&quot;,&quot;-&quot;:&quot;yyyy&quot;},U:&quot;##&quot;,w:&quot;##&quot;,c:{0:&quot;D M d %X yyyy&quot;,&quot;-&quot;:&quot;D M d %X yyyy&quot;},x:{0:&quot;mm/dd/yyyy&quot;,&quot;-&quot;:&quot;mm/dd/yyyy&quot;}};var f={};function h(t){var e=f[t];return e||(e=f[t]=n.instance(t))}function p(t){return i.extendFlat({},l,{description:t})}function d(t){return&quot;Sets the calendar system to use with `&quot;+t+&quot;` date data.&quot;}var g={xcalendar:p(d(&quot;x&quot;))},m=i.extendFlat({},g,{ycalendar:p(d(&quot;y&quot;))}),v=i.extendFlat({},m,{zcalendar:p(d(&quot;z&quot;))}),y=p([&quot;Sets the calendar system to use for `range` and `tick0`&quot;,&quot;if this is a date axis. This does not set the calendar for&quot;,&quot;interpreting data on this axis, that's specified in the trace&quot;,&quot;or via the global `layout.calendar`&quot;].join(&quot; &quot;));e.exports={moduleType:&quot;component&quot;,name:&quot;calendars&quot;,schema:{traces:{scatter:m,bar:m,box:m,heatmap:m,contour:m,histogram:m,histogram2d:m,histogram2dcontour:m,scatter3d:v,surface:v,mesh3d:v,scattergl:m,ohlc:g,candlestick:g},layout:{calendar:p([&quot;Sets the default calendar system to use for interpreting and&quot;,&quot;displaying dates throughout the plot.&quot;].join(&quot; &quot;))},subplots:{xaxis:{calendar:y},yaxis:{calendar:y},scene:{xaxis:{calendar:y},yaxis:{calendar:y},zaxis:{calendar:y}},polar:{radialaxis:{calendar:y}}},transforms:{filter:{valuecalendar:p([&quot;Sets the calendar system to use for `value`, if it is a date.&quot;].join(&quot; &quot;)),targetcalendar:p([&quot;Sets the calendar system to use for `target`, if it is an&quot;,&quot;array of dates. If `target` is a string (eg *x*) we use the&quot;,&quot;corresponding trace attribute (eg `xcalendar`) if it exists,&quot;,&quot;even if `targetcalendar` is provided.&quot;].join(&quot; &quot;))}}},layoutAttributes:l,handleDefaults:c,handleTraceDefaults:function(t,e,r,n){for(var i=0;i&lt;r.length;i++)c(t,e,r[i]+&quot;calendar&quot;,n.calendar)},CANONICAL_SUNDAY:{chinese:&quot;2000-01-02&quot;,coptic:&quot;2000-01-03&quot;,discworld:&quot;2000-01-03&quot;,ethiopian:&quot;2000-01-05&quot;,hebrew:&quot;5000-01-01&quot;,islamic:&quot;1000-01-02&quot;,julian:&quot;2000-01-03&quot;,mayan:&quot;5000-01-01&quot;,nanakshahi:&quot;1000-01-05&quot;,nepali:&quot;2000-01-05&quot;,persian:&quot;1000-01-01&quot;,jalali:&quot;1000-01-01&quot;,taiwan:&quot;1000-01-04&quot;,thai:&quot;2000-01-04&quot;,ummalqura:&quot;1400-01-06&quot;},CANONICAL_TICK:{chinese:&quot;2000-01-01&quot;,coptic:&quot;2000-01-01&quot;,discworld:&quot;2000-01-01&quot;,ethiopian:&quot;2000-01-01&quot;,hebrew:&quot;5000-01-01&quot;,islamic:&quot;1000-01-01&quot;,julian:&quot;2000-01-01&quot;,mayan:&quot;5000-01-01&quot;,nanakshahi:&quot;1000-01-01&quot;,nepali:&quot;2000-01-01&quot;,persian:&quot;1000-01-01&quot;,jalali:&quot;1000-01-01&quot;,taiwan:&quot;1000-01-01&quot;,thai:&quot;2000-01-01&quot;,ummalqura:&quot;1400-01-01&quot;},DFLTRANGE:{chinese:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],coptic:[&quot;1700-01-01&quot;,&quot;1701-01-01&quot;],discworld:[&quot;1800-01-01&quot;,&quot;1801-01-01&quot;],ethiopian:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],hebrew:[&quot;5700-01-01&quot;,&quot;5701-01-01&quot;],islamic:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],julian:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],mayan:[&quot;5200-01-01&quot;,&quot;5201-01-01&quot;],nanakshahi:[&quot;0500-01-01&quot;,&quot;0501-01-01&quot;],nepali:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],persian:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],jalali:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],taiwan:[&quot;0100-01-01&quot;,&quot;0101-01-01&quot;],thai:[&quot;2500-01-01&quot;,&quot;2501-01-01&quot;],ummalqura:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;]},getCal:h,worldCalFmt:function(t,e,r){for(var n,i,a,l,c,f=Math.floor((e+.05)/s)+o,p=h(r).fromJD(f),d=0;-1!==(d=t.indexOf(&quot;%&quot;,d));)&quot;0&quot;===(n=t.charAt(d+1))||&quot;-&quot;===n||&quot;_&quot;===n?(a=3,i=t.charAt(d+2),&quot;_&quot;===n&amp;&amp;(n=&quot;-&quot;)):(i=n,n=&quot;0&quot;,a=2),(l=u[i])?(c=&quot;##&quot;===l?&quot;##&quot;:p.formatDate(l[n]),t=t.substr(0,d)+c+t.substr(d+a),d+=c.length):d+=a;return t}}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./calendars&quot;:640}],642:[function(t,e,r){&quot;use strict&quot;;r.defaults=[&quot;#1f77b4&quot;,&quot;#ff7f0e&quot;,&quot;#2ca02c&quot;,&quot;#d62728&quot;,&quot;#9467bd&quot;,&quot;#8c564b&quot;,&quot;#e377c2&quot;,&quot;#7f7f7f&quot;,&quot;#bcbd22&quot;,&quot;#17becf&quot;],r.defaultLine=&quot;#444&quot;,r.lightLine=&quot;#eee&quot;,r.background=&quot;#fff&quot;,r.borderLine=&quot;#BEC8D9&quot;,r.lightFraction=1e3/11},{}],643:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;),i=t(&quot;fast-isnumeric&quot;),a=e.exports={},o=t(&quot;./attributes&quot;);a.defaults=o.defaults;var s=a.defaultLine=o.defaultLine;a.lightLine=o.lightLine;var l=a.background=o.background;function c(t){if(i(t)||&quot;string&quot;!=typeof t)return t;var e=t.trim();if(&quot;rgb&quot;!==e.substr(0,3))return t;var r=e.match(/^rgba?\s*\(([^()]*)\)$/);if(!r)return t;var n=r[1].trim().split(/\s*[\s,]\s*/),a=&quot;a&quot;===e.charAt(3)&amp;&amp;4===n.length;if(!a&amp;&amp;3!==n.length)return t;for(var o=0;o&lt;n.length;o++){if(!n[o].length)return t;if(n[o]=Number(n[o]),!(n[o]&gt;=0))return t;if(3===o)n[o]&gt;1&amp;&amp;(n[o]=1);else if(n[o]&gt;=1)return t}var s=Math.round(255*n[0])+&quot;, &quot;+Math.round(255*n[1])+&quot;, &quot;+Math.round(255*n[2]);return a?&quot;rgba(&quot;+s+&quot;, &quot;+n[3]+&quot;)&quot;:&quot;rgb(&quot;+s+&quot;)&quot;}a.tinyRGB=function(t){var e=t.toRgb();return&quot;rgb(&quot;+Math.round(e.r)+&quot;, &quot;+Math.round(e.g)+&quot;, &quot;+Math.round(e.b)+&quot;)&quot;},a.rgb=function(t){return a.tinyRGB(n(t))},a.opacity=function(t){return t?n(t).getAlpha():0},a.addOpacity=function(t,e){var r=n(t).toRgb();return&quot;rgba(&quot;+Math.round(r.r)+&quot;, &quot;+Math.round(r.g)+&quot;, &quot;+Math.round(r.b)+&quot;, &quot;+e+&quot;)&quot;},a.combine=function(t,e){var r=n(t).toRgb();if(1===r.a)return n(t).toRgbString();var i=n(e||l).toRgb(),a=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},o={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},a.contrast=function(t,e,r){var i=n(t);return 1!==i.getAlpha()&amp;&amp;(i=n(a.combine(t,l))),(i.isDark()?e?i.lighten(e):l:r?i.darken(r):s).toString()},a.stroke=function(t,e){var r=n(e);t.style({stroke:a.tinyRGB(r),&quot;stroke-opacity&quot;:r.getAlpha()})},a.fill=function(t,e){var r=n(e);t.style({fill:a.tinyRGB(r),&quot;fill-opacity&quot;:r.getAlpha()})},a.clean=function(t){if(t&amp;&amp;&quot;object&quot;==typeof t){var e,r,n,i,o=Object.keys(t);for(e=0;e&lt;o.length;e++)if(i=t[n=o[e]],&quot;color&quot;===n.substr(n.length-5))if(Array.isArray(i))for(r=0;r&lt;i.length;r++)i[r]=c(i[r]);else t[n]=c(i);else if(&quot;colorscale&quot;===n.substr(n.length-10)&amp;&amp;Array.isArray(i))for(r=0;r&lt;i.length;r++)Array.isArray(i[r])&amp;&amp;(i[r][1]=c(i[r][1]));else if(Array.isArray(i)){var s=i[0];if(!Array.isArray(s)&amp;&amp;s&amp;&amp;&quot;object&quot;==typeof s)for(r=0;r&lt;i.length;r++)a.clean(i[r])}else i&amp;&amp;&quot;object&quot;==typeof i&amp;&amp;a.clean(i)}}},{&quot;./attributes&quot;:642,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],644:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/layout_attributes&quot;),i=t(&quot;../../plots/font_attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll;e.exports=o({thicknessmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;pixels&quot;},thickness:{valType:&quot;number&quot;,min:0,dflt:30},lenmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;fraction&quot;},len:{valType:&quot;number&quot;,min:0,dflt:1},x:{valType:&quot;number&quot;,dflt:1.02,min:-2,max:3},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},xpad:{valType:&quot;number&quot;,min:0,dflt:10},y:{valType:&quot;number&quot;,dflt:.5,min:-2,max:3},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;},ypad:{valType:&quot;number&quot;,min:0,dflt:10},outlinecolor:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:&quot;number&quot;,min:0,dflt:0},bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;},tickmode:n.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:a({},n.ticks,{dflt:&quot;&quot;}),ticklabelposition:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;],dflt:&quot;outside&quot;},ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,showticklabels:n.showticklabels,tickfont:i({}),tickangle:n.tickangle,tickformat:n.tickformat,tickformatstops:n.tickformatstops,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,minexponent:n.minexponent,showexponent:n.showexponent,title:{text:{valType:&quot;string&quot;},font:i({}),side:{valType:&quot;enumerated&quot;,values:[&quot;right&quot;,&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;}},_deprecated:{title:{valType:&quot;string&quot;},titlefont:i({}),titleside:{valType:&quot;enumerated&quot;,values:[&quot;right&quot;,&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;}}},&quot;colorbars&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/font_attributes&quot;:856}],645:[function(t,e,r){&quot;use strict&quot;;e.exports={cn:{colorbar:&quot;colorbar&quot;,cbbg:&quot;cbbg&quot;,cbfill:&quot;cbfill&quot;,cbfills:&quot;cbfills&quot;,cbline:&quot;cbline&quot;,cblines:&quot;cblines&quot;,cbaxis:&quot;cbaxis&quot;,cbtitleunshift:&quot;cbtitleunshift&quot;,cbtitle:&quot;cbtitle&quot;,cboutline:&quot;cboutline&quot;,crisp:&quot;crisp&quot;,jsPlaceholder:&quot;js-placeholder&quot;}}},{}],646:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),o=t(&quot;../../plots/cartesian/tick_mark_defaults&quot;),s=t(&quot;../../plots/cartesian/tick_label_defaults&quot;),l=t(&quot;./attributes&quot;);e.exports=function(t,e,r){var c=i.newContainer(e,&quot;colorbar&quot;),u=t.colorbar||{};function f(t,e){return n.coerce(u,c,l,t,e)}var h=f(&quot;thicknessmode&quot;);f(&quot;thickness&quot;,&quot;fraction&quot;===h?30/(r.width-r.margin.l-r.margin.r):30);var p=f(&quot;lenmode&quot;);f(&quot;len&quot;,&quot;fraction&quot;===p?1:r.height-r.margin.t-r.margin.b),f(&quot;x&quot;),f(&quot;xanchor&quot;),f(&quot;xpad&quot;),f(&quot;y&quot;),f(&quot;yanchor&quot;),f(&quot;ypad&quot;),n.noneOrAll(u,c,[&quot;x&quot;,&quot;y&quot;]),f(&quot;outlinecolor&quot;),f(&quot;outlinewidth&quot;),f(&quot;bordercolor&quot;),f(&quot;borderwidth&quot;),f(&quot;bgcolor&quot;);var d=f(&quot;ticklabelposition&quot;);a(u,c,f,&quot;linear&quot;);var g={outerTicks:!1,font:r.font};-1!==d.indexOf(&quot;inside&quot;)&amp;&amp;(g.bgColor=&quot;black&quot;),s(u,c,f,&quot;linear&quot;,g),o(u,c,f,&quot;linear&quot;,g),f(&quot;title.text&quot;,r._dfltTitle.colorbar),n.coerceFont(f,&quot;title.font&quot;,r.font),f(&quot;title.side&quot;)}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/tick_label_defaults&quot;:849,&quot;../../plots/cartesian/tick_mark_defaults&quot;:850,&quot;../../plots/cartesian/tick_value_defaults&quot;:851,&quot;./attributes&quot;:644}],647:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=t(&quot;../dragelement&quot;),c=t(&quot;../../lib&quot;),u=c.strTranslate,f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../lib/setcursor&quot;),p=t(&quot;../drawing&quot;),d=t(&quot;../color&quot;),g=t(&quot;../titles&quot;),m=t(&quot;../../lib/svg_text_utils&quot;),v=t(&quot;../colorscale/helpers&quot;).flipScale,y=t(&quot;../../plots/cartesian/axis_defaults&quot;),x=t(&quot;../../plots/cartesian/position_defaults&quot;),b=t(&quot;../../plots/cartesian/layout_attributes&quot;),_=t(&quot;../../constants/alignment&quot;),w=_.LINE_SPACING,T=_.FROM_TL,k=_.FROM_BR,M=t(&quot;./constants&quot;).cn;e.exports={draw:function(t){var e=t._fullLayout._infolayer.selectAll(&quot;g.&quot;+M.colorbar).data(function(t){var e,r,n,i,a=t._fullLayout,o=t.calcdata,s=[];function l(t){return f(t,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){&quot;function&quot;==typeof i.calc?i.calc(t,n,e):(e._fillgradient=r.reversescale?v(r.colorscale):r.colorscale,e._zrange=[r[i.min],r[i.max]])}for(var u=0;u&lt;o.length;u++){var h=o[u],p=(n=h[0].trace)._module.colorbar;if(!0===n.visible&amp;&amp;p)for(var d=Array.isArray(p),g=d?p:[p],m=0;m&lt;g.length;m++){var y=(i=g[m]).container;(r=y?n[y]:n)&amp;&amp;r.showscale&amp;&amp;((e=l(r.colorbar))._id=&quot;cb&quot;+n.uid+(d&amp;&amp;y?&quot;-&quot;+y:&quot;&quot;),e._traceIndex=n.index,e._propPrefix=(y?y+&quot;.&quot;:&quot;&quot;)+&quot;colorbar.&quot;,e._meta=n._meta,c(),s.push(e))}}for(var x in a._colorAxes)if((r=a[x]).showscale){var b=a._colorAxes[x];(e=l(r.colorbar))._id=&quot;cb&quot;+x,e._propPrefix=x+&quot;.colorbar.&quot;,e._meta=a._meta,i={min:&quot;cmin&quot;,max:&quot;cmax&quot;},&quot;heatmap&quot;!==b[0]&amp;&amp;(n=b[1],i.calc=n._module.colorbar.calc),c(),s.push(e)}return s}(t),(function(t){return t._id}));e.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return t._id})).classed(M.colorbar,!0),e.each((function(e){var r=n.select(this);c.ensureSingle(r,&quot;rect&quot;,M.cbbg),c.ensureSingle(r,&quot;g&quot;,M.cbfills),c.ensureSingle(r,&quot;g&quot;,M.cblines),c.ensureSingle(r,&quot;g&quot;,M.cbaxis,(function(t){t.classed(M.crisp,!0)})),c.ensureSingle(r,&quot;g&quot;,M.cbtitleunshift,(function(t){t.append(&quot;g&quot;).classed(M.cbtitle,!0)})),c.ensureSingle(r,&quot;rect&quot;,M.cboutline);var v=function(t,e,r){var o=r._fullLayout,l=o._size,h=e._fillcolor,v=e._line,_=e.title,A=_.side,S=e._zrange||n.extent((&quot;function&quot;==typeof h?h:v.color).domain()),E=&quot;function&quot;==typeof v.color?v.color:function(){return v.color},C=&quot;function&quot;==typeof h?h:function(){return h},L=e._levels,I=function(t,e,r){var n,i,a=e._levels,o=[],s=[],l=a.end+a.size/100,c=a.size,u=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(i=0;i&lt;1e5&amp;&amp;(n=a.start+i*c,!(c&gt;0?n&gt;=l:n&lt;=l));i++)n&gt;u&amp;&amp;n&lt;f&amp;&amp;o.push(n);if(e._fillgradient)s=[0];else if(&quot;function&quot;==typeof e._fillcolor){var h=e._filllevels;if(h)for(l=h.end+h.size/100,c=h.size,i=0;i&lt;1e5&amp;&amp;(n=h.start+i*c,!(c&gt;0?n&gt;=l:n&lt;=l));i++)n&gt;r[0]&amp;&amp;n&lt;r[1]&amp;&amp;s.push(n);else(s=o.map((function(t){return t-a.size/2}))).push(s[s.length-1]+a.size)}else e._fillcolor&amp;&amp;&quot;string&quot;==typeof e._fillcolor&amp;&amp;(s=[0]);a.size&lt;0&amp;&amp;(o.reverse(),s.reverse());return{line:o,fill:s}}(0,e,S),P=I.fill,z=I.line,O=Math.round(e.thickness*(&quot;fraction&quot;===e.thicknessmode?l.w:1)),D=O/l.w,R=Math.round(e.len*(&quot;fraction&quot;===e.lenmode?l.h:1)),F=R/l.h,B=e.xpad/l.w,N=(e.borderwidth+e.outlinewidth)/2,j=e.ypad/l.h,U=Math.round(e.x*l.w+e.xpad),V=e.x-D*({middle:.5,right:1}[e.xanchor]||0),q=e.y+F*(({top:-.5,bottom:.5}[e.yanchor]||0)-.5),H=Math.round(l.h*(1-q)),G=H-R;e._lenFrac=F,e._thickFrac=D,e._xLeftFrac=V,e._yBottomFrac=q;var Y=e._axis=function(t,e,r){var n=t._fullLayout,i={type:&quot;linear&quot;,range:r,tickmode:e.tickmode,nticks:e.nticks,tick0:e.tick0,dtick:e.dtick,tickvals:e.tickvals,ticktext:e.ticktext,ticks:e.ticks,ticklen:e.ticklen,tickwidth:e.tickwidth,tickcolor:e.tickcolor,showticklabels:e.showticklabels,ticklabelposition:e.ticklabelposition,tickfont:e.tickfont,tickangle:e.tickangle,tickformat:e.tickformat,exponentformat:e.exponentformat,minexponent:e.minexponent,separatethousands:e.separatethousands,showexponent:e.showexponent,showtickprefix:e.showtickprefix,tickprefix:e.tickprefix,showticksuffix:e.showticksuffix,ticksuffix:e.ticksuffix,title:e.title,showline:!0,anchor:&quot;free&quot;,side:&quot;right&quot;,position:1},a={type:&quot;linear&quot;,_id:&quot;y&quot;+e._id},o={letter:&quot;y&quot;,font:n.font,noHover:!0,noTickson:!0,noTicklabelmode:!0,calendar:n.calendar};function s(t,e){return c.coerce(i,a,b,t,e)}return y(i,a,s,o,n),x(i,a,s,o),a}(r,e,S);Y.position=e.x+B+D,-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)&amp;&amp;(Y.title.side=A,Y.titlex=e.x+B,Y.titley=q+(&quot;top&quot;===_.side?F-j:j));if(v.color&amp;&amp;&quot;auto&quot;===e.tickmode){Y.tickmode=&quot;linear&quot;,Y.tick0=L.start;var W=L.size,X=c.constrain((H-G)/50,4,15)+1,Z=(S[1]-S[0])/((e.nticks||X)*W);if(Z&gt;1){var J=Math.pow(10,Math.floor(Math.log(Z)/Math.LN10));W*=J*c.roundUp(Z/J,[2,5,10]),(Math.abs(L.start)/L.size+1e-6)%1&lt;2e-6&amp;&amp;(Y.tick0=0)}Y.dtick=W}Y.domain=[q+j,q+F-j],Y.setScale(),t.attr(&quot;transform&quot;,u(Math.round(l.l),Math.round(l.t)));var K,Q=t.select(&quot;.&quot;+M.cbtitleunshift).attr(&quot;transform&quot;,u(-Math.round(l.l),-Math.round(l.t))),$=t.select(&quot;.&quot;+M.cbaxis),tt=0;function et(n,i){var a={propContainer:Y,propName:e._propPrefix+&quot;title&quot;,traceIndex:e._traceIndex,_meta:e._meta,placeholder:o._dfltTitle.colorbar,containerGroup:t.select(&quot;.&quot;+M.cbtitle)},s=&quot;h&quot;===n.charAt(0)?n.substr(1):&quot;h&quot;+n;t.selectAll(&quot;.&quot;+s+&quot;,.&quot;+s+&quot;-math-group&quot;).remove(),g.draw(r,n,f(a,i||{}))}return c.syncOrAsync([a.previousPromises,function(){if(-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)){var t,r=l.l+(e.x+B)*l.w,n=Y.title.font.size;t=&quot;top&quot;===A?(1-(q+F-j))*l.h+l.t+3+.75*n:(1-(q+j))*l.h+l.t-3-.25*n,et(Y._id+&quot;title&quot;,{attributes:{x:r,y:t,&quot;text-anchor&quot;:&quot;start&quot;}})}},function(){if(-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)){var a=t.select(&quot;.&quot;+M.cbtitle),o=a.select(&quot;text&quot;),f=[-e.outlinewidth/2,e.outlinewidth/2],h=a.select(&quot;.h&quot;+Y._id+&quot;title-math-group&quot;).node(),d=15.6;if(o.node()&amp;&amp;(d=parseInt(o.node().style.fontSize,10)*w),h?(tt=p.bBox(h).height)&gt;d&amp;&amp;(f[1]-=(tt-d)/2):o.node()&amp;&amp;!o.classed(M.jsPlaceholder)&amp;&amp;(tt=p.bBox(o.node()).height),tt){if(tt+=5,&quot;top&quot;===A)Y.domain[1]-=tt/l.h,f[1]*=-1;else{Y.domain[0]+=tt/l.h;var g=m.lineCount(o);f[1]+=(1-g)*d}a.attr(&quot;transform&quot;,u(f[0],f[1])),Y.setScale()}}t.selectAll(&quot;.&quot;+M.cbfills+&quot;,.&quot;+M.cblines).attr(&quot;transform&quot;,u(0,Math.round(l.h*(1-Y.domain[1])))),$.attr(&quot;transform&quot;,u(0,Math.round(-l.t)));var y=t.select(&quot;.&quot;+M.cbfills).selectAll(&quot;rect.&quot;+M.cbfill).attr(&quot;style&quot;,&quot;&quot;).data(P);y.enter().append(&quot;rect&quot;).classed(M.cbfill,!0).style(&quot;stroke&quot;,&quot;none&quot;),y.exit().remove();var x=S.map(Y.c2p).map(Math.round).sort((function(t,e){return t-e}));y.each((function(t,a){var o=[0===a?S[0]:(P[a]+P[a-1])/2,a===P.length-1?S[1]:(P[a]+P[a+1])/2].map(Y.c2p).map(Math.round);o[1]=c.constrain(o[1]+(o[1]&gt;o[0])?1:-1,x[0],x[1]);var s=n.select(this).attr({x:U,width:Math.max(O,2),y:n.min(o),height:Math.max(n.max(o)-n.min(o),2)});if(e._fillgradient)p.gradient(s,r,e._id,&quot;vertical&quot;,e._fillgradient,&quot;fill&quot;);else{var l=C(t).replace(&quot;e-&quot;,&quot;&quot;);s.attr(&quot;fill&quot;,i(l).toHexString())}}));var b=t.select(&quot;.&quot;+M.cblines).selectAll(&quot;path.&quot;+M.cbline).data(v.color&amp;&amp;v.width?z:[]);b.enter().append(&quot;path&quot;).classed(M.cbline,!0),b.exit().remove(),b.each((function(t){n.select(this).attr(&quot;d&quot;,&quot;M&quot;+U+&quot;,&quot;+(Math.round(Y.c2p(t))+v.width/2%1)+&quot;h&quot;+O).call(p.lineGroupStyle,v.width,E(t),v.dash)})),$.selectAll(&quot;g.&quot;+Y._id+&quot;tick,path&quot;).remove();var _=U+O+(e.outlinewidth||0)/2-(&quot;outside&quot;===e.ticks?1:0),T=s.calcTicks(Y),k=s.getTickSigns(Y)[2];return s.drawTicks(r,Y,{vals:&quot;inside&quot;===Y.ticks?s.clipEnds(Y,T):T,layer:$,path:s.makeTickPath(Y,_,k),transFn:s.makeTransTickFn(Y)}),s.drawLabels(r,Y,{vals:T,layer:$,transFn:s.makeTransTickLabelFn(Y),labelFns:s.makeLabelFns(Y,_)})},function(){if(-1===[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)){var t=Y.title.font.size,e=Y._offset+Y._length/2,i=l.l+(Y.position||0)*l.w+(&quot;right&quot;===Y.side?10+t*(Y.showticklabels?1:.5):-10-t*(Y.showticklabels?.5:0));et(&quot;h&quot;+Y._id+&quot;title&quot;,{avoid:{selection:n.select(r).selectAll(&quot;g.&quot;+Y._id+&quot;tick&quot;),side:A,offsetLeft:l.l,offsetTop:0,maxShift:o.width},attributes:{x:i,y:e,&quot;text-anchor&quot;:&quot;middle&quot;},transform:{rotate:&quot;-90&quot;,offset:0}})}},a.previousPromises,function(){var n=O+e.outlinewidth/2;if(-1===Y.ticklabelposition.indexOf(&quot;inside&quot;)&amp;&amp;(n+=p.bBox($.node()).width),(K=Q.select(&quot;text&quot;)).node()&amp;&amp;!K.classed(M.jsPlaceholder)){var i,o=Q.select(&quot;.h&quot;+Y._id+&quot;title-math-group&quot;).node();i=o&amp;&amp;-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)?p.bBox(o).width:p.bBox(Q.node()).right-U-l.l,n=Math.max(n,i)}var s=2*e.xpad+n+e.borderwidth+e.outlinewidth/2,c=H-G;t.select(&quot;.&quot;+M.cbbg).attr({x:U-e.xpad-(e.borderwidth+e.outlinewidth)/2,y:G-N,width:Math.max(s,2),height:Math.max(c+2*N,2)}).call(d.fill,e.bgcolor).call(d.stroke,e.bordercolor).style(&quot;stroke-width&quot;,e.borderwidth),t.selectAll(&quot;.&quot;+M.cboutline).attr({x:U,y:G+e.ypad+(&quot;top&quot;===A?tt:0),width:Math.max(O,2),height:Math.max(c-2*e.ypad-tt,2)}).call(d.stroke,e.outlinecolor).style({fill:&quot;none&quot;,&quot;stroke-width&quot;:e.outlinewidth});var f=({center:.5,right:1}[e.xanchor]||0)*s;t.attr(&quot;transform&quot;,u(l.l-f,l.t));var h={},g=T[e.yanchor],m=k[e.yanchor];&quot;pixels&quot;===e.lenmode?(h.y=e.y,h.t=c*g,h.b=c*m):(h.t=h.b=0,h.yt=e.y+e.len*g,h.yb=e.y-e.len*m);var v=T[e.xanchor],y=k[e.xanchor];if(&quot;pixels&quot;===e.thicknessmode)h.x=e.x,h.l=s*v,h.r=s*y;else{var x=s-O;h.l=x*v,h.r=x*y,h.xl=e.x-e.thickness*v,h.xr=e.x+e.thickness*y}a.autoMargin(r,e._id,h)}],r)}(r,e,t);v&amp;&amp;v.then&amp;&amp;(t._promises||[]).push(v),t._context.edits.colorbarPosition&amp;&amp;function(t,e,r){var n,i,a,s=r._fullLayout._size;l.init({element:t.node(),gd:r,prepFn:function(){n=t.attr(&quot;transform&quot;),h(t)},moveFn:function(r,o){t.attr(&quot;transform&quot;,n+u(r,o)),i=l.align(e._xLeftFrac+r/s.w,e._thickFrac,0,1,e.xanchor),a=l.align(e._yBottomFrac-o/s.h,e._lenFrac,0,1,e.yanchor);var c=l.getCursor(i,a,e.xanchor,e.yanchor);h(t,c)},doneFn:function(){if(h(t),void 0!==i&amp;&amp;void 0!==a){var n={};n[e._propPrefix+&quot;x&quot;]=i,n[e._propPrefix+&quot;y&quot;]=a,void 0!==e._traceIndex?o.call(&quot;_guiRestyle&quot;,r,n,e._traceIndex):o.call(&quot;_guiRelayout&quot;,r,n)}}})}(r,e,t)})),e.exit().each((function(e){a.autoMargin(t,e._id)})).remove(),e.order()}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/extend&quot;:768,&quot;../../lib/setcursor&quot;:799,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_defaults&quot;:830,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/cartesian/position_defaults&quot;:845,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../colorscale/helpers&quot;:654,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../titles&quot;:738,&quot;./constants&quot;:645,d3:169,tinycolor2:576}],648:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t){return n.isPlainObject(t.colorbar)}},{&quot;../../lib&quot;:778}],649:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;colorbar&quot;,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;).draw,hasColorbar:t(&quot;./has_colorbar&quot;)}},{&quot;./attributes&quot;:644,&quot;./defaults&quot;:646,&quot;./draw&quot;:647,&quot;./has_colorbar&quot;:648}],650:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../colorbar/attributes&quot;),i=t(&quot;../../lib/regex&quot;).counter,a=t(&quot;./scales.js&quot;).scales;Object.keys(a);function o(t){return&quot;`&quot;+t+&quot;`&quot;}e.exports=function(t,e){t=t||&quot;&quot;;var r,s=(e=e||{}).cLetter||&quot;c&quot;,l=(&quot;onlyIfNumerical&quot;in e?e.onlyIfNumerical:Boolean(t),&quot;noScale&quot;in e?e.noScale:&quot;marker.line&quot;===t),c=&quot;showScaleDflt&quot;in e?e.showScaleDflt:&quot;z&quot;===s,u=&quot;string&quot;==typeof e.colorscaleDflt?a[e.colorscaleDflt]:null,f=e.editTypeOverride||&quot;&quot;,h=t?t+&quot;.&quot;:&quot;&quot;;&quot;colorAttr&quot;in e?(r=e.colorAttr,e.colorAttr):o(h+(r={z:&quot;z&quot;,c:&quot;color&quot;}[s]));var p=s+&quot;auto&quot;,d=s+&quot;min&quot;,g=s+&quot;max&quot;,m=s+&quot;mid&quot;,v=(o(h+p),o(h+d),o(h+g),{});v[d]=v[g]=void 0;var y={};y[p]=!1;var x={};return&quot;color&quot;===r&amp;&amp;(x.color={valType:&quot;color&quot;,arrayOk:!0,editType:f||&quot;style&quot;},e.anim&amp;&amp;(x.color.anim=!0)),x[p]={valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:v},x[d]={valType:&quot;number&quot;,dflt:null,editType:f||&quot;plot&quot;,impliedEdits:y},x[g]={valType:&quot;number&quot;,dflt:null,editType:f||&quot;plot&quot;,impliedEdits:y},x[m]={valType:&quot;number&quot;,dflt:null,editType:&quot;calc&quot;,impliedEdits:v},x.colorscale={valType:&quot;colorscale&quot;,editType:&quot;calc&quot;,dflt:u,impliedEdits:{autocolorscale:!1}},x.autocolorscale={valType:&quot;boolean&quot;,dflt:!1!==e.autoColorDflt,editType:&quot;calc&quot;,impliedEdits:{colorscale:void 0}},x.reversescale={valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},l||(x.showscale={valType:&quot;boolean&quot;,dflt:c,editType:&quot;calc&quot;},x.colorbar=n),e.noColorAxis||(x.coloraxis={valType:&quot;subplotid&quot;,regex:i(&quot;coloraxis&quot;),dflt:null,editType:&quot;calc&quot;}),x}},{&quot;../../lib/regex&quot;:795,&quot;../colorbar/attributes&quot;:644,&quot;./scales.js&quot;:658}],651:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./helpers&quot;).extractOpts;e.exports=function(t,e,r){var o,s=t._fullLayout,l=r.vals,c=r.containerStr,u=c?i.nestedProperty(e,c).get():e,f=a(u),h=!1!==f.auto,p=f.min,d=f.max,g=f.mid,m=function(){return i.aggNums(Math.min,null,l)},v=function(){return i.aggNums(Math.max,null,l)};(void 0===p?p=m():h&amp;&amp;(p=u._colorAx&amp;&amp;n(p)?Math.min(p,m()):m()),void 0===d?d=v():h&amp;&amp;(d=u._colorAx&amp;&amp;n(d)?Math.max(d,v()):v()),h&amp;&amp;void 0!==g&amp;&amp;(d-g&gt;g-p?p=g-(d-g):d-g&lt;g-p&amp;&amp;(d=g+(g-p))),p===d&amp;&amp;(p-=.5,d+=.5),f._sync(&quot;min&quot;,p),f._sync(&quot;max&quot;,d),f.autocolorscale)&amp;&amp;(o=p*d&lt;0?s.colorscale.diverging:p&gt;=0?s.colorscale.sequential:s.colorscale.sequentialminus,f._sync(&quot;colorscale&quot;,o))}},{&quot;../../lib&quot;:778,&quot;./helpers&quot;:654,&quot;fast-isnumeric&quot;:241}],652:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./helpers&quot;).hasColorscale,a=t(&quot;./helpers&quot;).extractOpts;e.exports=function(t,e){function r(t,e){var r=t[&quot;_&quot;+e];void 0!==r&amp;&amp;(t[e]=r)}function o(t,i){var o=i.container?n.nestedProperty(t,i.container).get():t;if(o)if(o.coloraxis)o._colorAx=e[o.coloraxis];else{var s=a(o),l=s.auto;(l||void 0===s.min)&amp;&amp;r(o,i.min),(l||void 0===s.max)&amp;&amp;r(o,i.max),s.autocolorscale&amp;&amp;r(o,&quot;colorscale&quot;)}}for(var s=0;s&lt;t.length;s++){var l=t[s],c=l._module.colorbar;if(c)if(Array.isArray(c))for(var u=0;u&lt;c.length;u++)o(l,c[u]);else o(l,c);i(l,&quot;marker.line&quot;)&amp;&amp;o(l,{container:&quot;marker.line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;})}for(var f in e._colorAxes)o(e[f],{min:&quot;cmin&quot;,max:&quot;cmax&quot;})}},{&quot;../../lib&quot;:778,&quot;./helpers&quot;:654}],653:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../colorbar/has_colorbar&quot;),o=t(&quot;../colorbar/defaults&quot;),s=t(&quot;./scales&quot;).isValid,l=t(&quot;../../registry&quot;).traceIs;function c(t,e){var r=e.slice(0,e.length-1);return e?i.nestedProperty(t,r).get()||{}:t}e.exports=function t(e,r,u,f,h){var p=h.prefix,d=h.cLetter,g=&quot;_module&quot;in r,m=c(e,p),v=c(r,p),y=c(r._template||{},p)||{},x=function(){return delete e.coloraxis,delete r.coloraxis,t(e,r,u,f,h)};if(g){var b=u._colorAxes||{},_=f(p+&quot;coloraxis&quot;);if(_){var w=l(r,&quot;contour&quot;)&amp;&amp;i.nestedProperty(r,&quot;contours.coloring&quot;).get()||&quot;heatmap&quot;,T=b[_];return void(T?(T[2].push(x),T[0]!==w&amp;&amp;(T[0]=!1,i.warn([&quot;Ignoring coloraxis:&quot;,_,&quot;setting&quot;,&quot;as it is linked to incompatible colorscales.&quot;].join(&quot; &quot;)))):b[_]=[w,r,[x]])}}var k=m[d+&quot;min&quot;],M=m[d+&quot;max&quot;],A=n(k)&amp;&amp;n(M)&amp;&amp;k&lt;M;f(p+d+&quot;auto&quot;,!A)?f(p+d+&quot;mid&quot;):(f(p+d+&quot;min&quot;),f(p+d+&quot;max&quot;));var S,E,C=m.colorscale,L=y.colorscale;(void 0!==C&amp;&amp;(S=!s(C)),void 0!==L&amp;&amp;(S=!s(L)),f(p+&quot;autocolorscale&quot;,S),f(p+&quot;colorscale&quot;),f(p+&quot;reversescale&quot;),&quot;marker.line.&quot;!==p)&amp;&amp;(p&amp;&amp;g&amp;&amp;(E=a(m)),f(p+&quot;showscale&quot;,E)&amp;&amp;(p&amp;&amp;y&amp;&amp;(v._template=y),o(m,v,u)))}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../colorbar/defaults&quot;:646,&quot;../colorbar/has_colorbar&quot;:648,&quot;./scales&quot;:658,&quot;fast-isnumeric&quot;:241}],654:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../color&quot;),l=t(&quot;./scales&quot;).isValid;var c=[&quot;showscale&quot;,&quot;autocolorscale&quot;,&quot;colorscale&quot;,&quot;reversescale&quot;,&quot;colorbar&quot;],u=[&quot;min&quot;,&quot;max&quot;,&quot;mid&quot;,&quot;auto&quot;];function f(t){var e,r,n,i=t._colorAx,a=i||t,o={};for(r=0;r&lt;c.length;r++)o[n=c[r]]=a[n];if(i)for(e=&quot;c&quot;,r=0;r&lt;u.length;r++)o[n=u[r]]=a[&quot;c&quot;+n];else{var s;for(r=0;r&lt;u.length;r++)((s=&quot;c&quot;+(n=u[r]))in a||(s=&quot;z&quot;+n)in a)&amp;&amp;(o[n]=a[s]);e=s.charAt(0)}return o._sync=function(t,r){var n=-1!==u.indexOf(t)?e+t:t;a[n]=a[&quot;_&quot;+n]=r},o}function h(t){for(var e=f(t),r=e.min,n=e.max,i=e.reversescale?p(e.colorscale):e.colorscale,a=i.length,o=new Array(a),s=new Array(a),l=0;l&lt;a;l++){var c=i[l];o[l]=r+c[0]*(n-r),s[l]=c[1]}return{domain:o,range:s}}function p(t){for(var e=t.length,r=new Array(e),n=e-1,i=0;n&gt;=0;n--,i++){var a=t[n];r[i]=[1-a[0],a[1]]}return r}function d(t,e){e=e||{};for(var r=t.domain,o=t.range,l=o.length,c=new Array(l),u=0;u&lt;l;u++){var f=i(o[u]).toRgb();c[u]=[f.r,f.g,f.b,f.a]}var h,p=n.scale.linear().domain(r).range(c).clamp(!0),d=e.noNumericCheck,m=e.returnArray;return(h=d&amp;&amp;m?p:d?function(t){return g(p(t))}:m?function(t){return a(t)?p(t):i(t).isValid()?t:s.defaultLine}:function(t){return a(t)?g(p(t)):i(t).isValid()?t:s.defaultLine}).domain=p.domain,h.range=function(){return o},h}function g(t){var e={r:t[0],g:t[1],b:t[2],a:t[3]};return i(e).toRgbString()}e.exports={hasColorscale:function(t,e,r){var n=e?o.nestedProperty(t,e).get()||{}:t,i=n[r||&quot;color&quot;],s=!1;if(o.isArrayOrTypedArray(i))for(var c=0;c&lt;i.length;c++)if(a(i[c])){s=!0;break}return o.isPlainObject(n)&amp;&amp;(s||!0===n.showscale||a(n.cmin)&amp;&amp;a(n.cmax)||l(n.colorscale)||o.isPlainObject(n.colorbar))},extractOpts:f,extractScale:h,flipScale:p,makeColorScaleFunc:d,makeColorScaleFuncFromTrace:function(t,e){return d(h(t),e)}}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;./scales&quot;:658,d3:169,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],655:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./scales&quot;),i=t(&quot;./helpers&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;colorscale&quot;,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),handleDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),calc:t(&quot;./calc&quot;),scales:n.scales,defaultScale:n.defaultScale,getScale:n.get,isValidScale:n.isValid,hasColorscale:i.hasColorscale,extractOpts:i.extractOpts,extractScale:i.extractScale,flipScale:i.flipScale,makeColorScaleFunc:i.makeColorScaleFunc,makeColorScaleFuncFromTrace:i.makeColorScaleFuncFromTrace}},{&quot;./attributes&quot;:650,&quot;./calc&quot;:651,&quot;./cross_trace_defaults&quot;:652,&quot;./defaults&quot;:653,&quot;./helpers&quot;:654,&quot;./layout_attributes&quot;:656,&quot;./layout_defaults&quot;:657,&quot;./scales&quot;:658}],656:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;./attributes&quot;),a=t(&quot;./scales&quot;).scales;e.exports={editType:&quot;calc&quot;,colorscale:{editType:&quot;calc&quot;,sequential:{valType:&quot;colorscale&quot;,dflt:a.Reds,editType:&quot;calc&quot;},sequentialminus:{valType:&quot;colorscale&quot;,dflt:a.Blues,editType:&quot;calc&quot;},diverging:{valType:&quot;colorscale&quot;,dflt:a.RdBu,editType:&quot;calc&quot;}},coloraxis:n({_isSubplotObj:!0,editType:&quot;calc&quot;},i(&quot;&quot;,{colorAttr:&quot;corresponding trace color array(s)&quot;,noColorAxis:!0,showScaleDflt:!0}))}},{&quot;../../lib/extend&quot;:768,&quot;./attributes&quot;:650,&quot;./scales&quot;:658}],657:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;./layout_attributes&quot;),o=t(&quot;./defaults&quot;);e.exports=function(t,e){function r(r,i){return n.coerce(t,e,a,r,i)}r(&quot;colorscale.sequential&quot;),r(&quot;colorscale.sequentialminus&quot;),r(&quot;colorscale.diverging&quot;);var s,l,c=e._colorAxes;function u(t,e){return n.coerce(s,l,a.coloraxis,t,e)}for(var f in c){var h=c[f];if(h[0])s=t[f]||{},(l=i.newContainer(e,f,&quot;coloraxis&quot;))._name=f,o(s,l,e,u,{prefix:&quot;&quot;,cLetter:&quot;c&quot;});else{for(var p=0;p&lt;h[2].length;p++)h[2][p]();delete e._colorAxes[f]}}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;./defaults&quot;:653,&quot;./layout_attributes&quot;:656}],658:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;),i={Greys:[[0,&quot;rgb(0,0,0)&quot;],[1,&quot;rgb(255,255,255)&quot;]],YlGnBu:[[0,&quot;rgb(8,29,88)&quot;],[.125,&quot;rgb(37,52,148)&quot;],[.25,&quot;rgb(34,94,168)&quot;],[.375,&quot;rgb(29,145,192)&quot;],[.5,&quot;rgb(65,182,196)&quot;],[.625,&quot;rgb(127,205,187)&quot;],[.75,&quot;rgb(199,233,180)&quot;],[.875,&quot;rgb(237,248,217)&quot;],[1,&quot;rgb(255,255,217)&quot;]],Greens:[[0,&quot;rgb(0,68,27)&quot;],[.125,&quot;rgb(0,109,44)&quot;],[.25,&quot;rgb(35,139,69)&quot;],[.375,&quot;rgb(65,171,93)&quot;],[.5,&quot;rgb(116,196,118)&quot;],[.625,&quot;rgb(161,217,155)&quot;],[.75,&quot;rgb(199,233,192)&quot;],[.875,&quot;rgb(229,245,224)&quot;],[1,&quot;rgb(247,252,245)&quot;]],YlOrRd:[[0,&quot;rgb(128,0,38)&quot;],[.125,&quot;rgb(189,0,38)&quot;],[.25,&quot;rgb(227,26,28)&quot;],[.375,&quot;rgb(252,78,42)&quot;],[.5,&quot;rgb(253,141,60)&quot;],[.625,&quot;rgb(254,178,76)&quot;],[.75,&quot;rgb(254,217,118)&quot;],[.875,&quot;rgb(255,237,160)&quot;],[1,&quot;rgb(255,255,204)&quot;]],Bluered:[[0,&quot;rgb(0,0,255)&quot;],[1,&quot;rgb(255,0,0)&quot;]],RdBu:[[0,&quot;rgb(5,10,172)&quot;],[.35,&quot;rgb(106,137,247)&quot;],[.5,&quot;rgb(190,190,190)&quot;],[.6,&quot;rgb(220,170,132)&quot;],[.7,&quot;rgb(230,145,90)&quot;],[1,&quot;rgb(178,10,28)&quot;]],Reds:[[0,&quot;rgb(220,220,220)&quot;],[.2,&quot;rgb(245,195,157)&quot;],[.4,&quot;rgb(245,160,105)&quot;],[1,&quot;rgb(178,10,28)&quot;]],Blues:[[0,&quot;rgb(5,10,172)&quot;],[.35,&quot;rgb(40,60,190)&quot;],[.5,&quot;rgb(70,100,245)&quot;],[.6,&quot;rgb(90,120,245)&quot;],[.7,&quot;rgb(106,137,247)&quot;],[1,&quot;rgb(220,220,220)&quot;]],Picnic:[[0,&quot;rgb(0,0,255)&quot;],[.1,&quot;rgb(51,153,255)&quot;],[.2,&quot;rgb(102,204,255)&quot;],[.3,&quot;rgb(153,204,255)&quot;],[.4,&quot;rgb(204,204,255)&quot;],[.5,&quot;rgb(255,255,255)&quot;],[.6,&quot;rgb(255,204,255)&quot;],[.7,&quot;rgb(255,153,255)&quot;],[.8,&quot;rgb(255,102,204)&quot;],[.9,&quot;rgb(255,102,102)&quot;],[1,&quot;rgb(255,0,0)&quot;]],Rainbow:[[0,&quot;rgb(150,0,90)&quot;],[.125,&quot;rgb(0,0,200)&quot;],[.25,&quot;rgb(0,25,255)&quot;],[.375,&quot;rgb(0,152,255)&quot;],[.5,&quot;rgb(44,255,150)&quot;],[.625,&quot;rgb(151,255,0)&quot;],[.75,&quot;rgb(255,234,0)&quot;],[.875,&quot;rgb(255,111,0)&quot;],[1,&quot;rgb(255,0,0)&quot;]],Portland:[[0,&quot;rgb(12,51,131)&quot;],[.25,&quot;rgb(10,136,186)&quot;],[.5,&quot;rgb(242,211,56)&quot;],[.75,&quot;rgb(242,143,56)&quot;],[1,&quot;rgb(217,30,30)&quot;]],Jet:[[0,&quot;rgb(0,0,131)&quot;],[.125,&quot;rgb(0,60,170)&quot;],[.375,&quot;rgb(5,255,255)&quot;],[.625,&quot;rgb(255,255,0)&quot;],[.875,&quot;rgb(250,0,0)&quot;],[1,&quot;rgb(128,0,0)&quot;]],Hot:[[0,&quot;rgb(0,0,0)&quot;],[.3,&quot;rgb(230,0,0)&quot;],[.6,&quot;rgb(255,210,0)&quot;],[1,&quot;rgb(255,255,255)&quot;]],Blackbody:[[0,&quot;rgb(0,0,0)&quot;],[.2,&quot;rgb(230,0,0)&quot;],[.4,&quot;rgb(230,210,0)&quot;],[.7,&quot;rgb(255,255,255)&quot;],[1,&quot;rgb(160,200,255)&quot;]],Earth:[[0,&quot;rgb(0,0,130)&quot;],[.1,&quot;rgb(0,180,180)&quot;],[.2,&quot;rgb(40,210,40)&quot;],[.4,&quot;rgb(230,230,50)&quot;],[.6,&quot;rgb(120,70,20)&quot;],[1,&quot;rgb(255,255,255)&quot;]],Electric:[[0,&quot;rgb(0,0,0)&quot;],[.15,&quot;rgb(30,0,100)&quot;],[.4,&quot;rgb(120,0,100)&quot;],[.6,&quot;rgb(160,90,0)&quot;],[.8,&quot;rgb(230,200,0)&quot;],[1,&quot;rgb(255,250,220)&quot;]],Viridis:[[0,&quot;#440154&quot;],[.06274509803921569,&quot;#48186a&quot;],[.12549019607843137,&quot;#472d7b&quot;],[.18823529411764706,&quot;#424086&quot;],[.25098039215686274,&quot;#3b528b&quot;],[.3137254901960784,&quot;#33638d&quot;],[.3764705882352941,&quot;#2c728e&quot;],[.4392156862745098,&quot;#26828e&quot;],[.5019607843137255,&quot;#21918c&quot;],[.5647058823529412,&quot;#1fa088&quot;],[.6274509803921569,&quot;#28ae80&quot;],[.6901960784313725,&quot;#3fbc73&quot;],[.7529411764705882,&quot;#5ec962&quot;],[.8156862745098039,&quot;#84d44b&quot;],[.8784313725490196,&quot;#addc30&quot;],[.9411764705882353,&quot;#d8e219&quot;],[1,&quot;#fde725&quot;]],Cividis:[[0,&quot;rgb(0,32,76)&quot;],[.058824,&quot;rgb(0,42,102)&quot;],[.117647,&quot;rgb(0,52,110)&quot;],[.176471,&quot;rgb(39,63,108)&quot;],[.235294,&quot;rgb(60,74,107)&quot;],[.294118,&quot;rgb(76,85,107)&quot;],[.352941,&quot;rgb(91,95,109)&quot;],[.411765,&quot;rgb(104,106,112)&quot;],[.470588,&quot;rgb(117,117,117)&quot;],[.529412,&quot;rgb(131,129,120)&quot;],[.588235,&quot;rgb(146,140,120)&quot;],[.647059,&quot;rgb(161,152,118)&quot;],[.705882,&quot;rgb(176,165,114)&quot;],[.764706,&quot;rgb(192,177,109)&quot;],[.823529,&quot;rgb(209,191,102)&quot;],[.882353,&quot;rgb(225,204,92)&quot;],[.941176,&quot;rgb(243,219,79)&quot;],[1,&quot;rgb(255,233,69)&quot;]]},a=i.RdBu;function o(t){var e=0;if(!Array.isArray(t)||t.length&lt;2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r&lt;t.length;r++){var i=t[r];if(2!==i.length||+i[0]&lt;e||!n(i[1]).isValid())return!1;e=+i[0]}return!0}e.exports={scales:i,defaultScale:a,get:function(t,e){if(e||(e=a),!t)return e;function r(){try{t=i[t]||JSON.parse(t)}catch(r){t=e}}return&quot;string&quot;==typeof t&amp;&amp;(r(),&quot;string&quot;==typeof t&amp;&amp;r()),o(t)?t:e},isValid:function(t){return void 0!==i[t]||o(t)}}},{tinycolor2:576}],659:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=(t-r)/(n-r),o=a+e/(n-r),s=(a+o)/2;return&quot;left&quot;===i||&quot;bottom&quot;===i?a:&quot;center&quot;===i||&quot;middle&quot;===i?s:&quot;right&quot;===i||&quot;top&quot;===i?o:a&lt;2/3-s?a:o&gt;4/3-s?o:s}},{}],660:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=[[&quot;sw-resize&quot;,&quot;s-resize&quot;,&quot;se-resize&quot;],[&quot;w-resize&quot;,&quot;move&quot;,&quot;e-resize&quot;],[&quot;nw-resize&quot;,&quot;n-resize&quot;,&quot;ne-resize&quot;]];e.exports=function(t,e,r,a){return t=&quot;left&quot;===r?0:&quot;center&quot;===r?1:&quot;right&quot;===r?2:n.constrain(Math.floor(3*t),0,2),e=&quot;bottom&quot;===a?0:&quot;middle&quot;===a?1:&quot;top&quot;===a?2:n.constrain(Math.floor(3*e),0,2),i[e][t]}},{&quot;../../lib&quot;:778}],661:[function(t,e,r){&quot;use strict&quot;;r.selectMode=function(t){return&quot;lasso&quot;===t||&quot;select&quot;===t},r.drawMode=function(t){return&quot;drawclosedpath&quot;===t||&quot;drawopenpath&quot;===t||&quot;drawline&quot;===t||&quot;drawrect&quot;===t||&quot;drawcircle&quot;===t},r.openMode=function(t){return&quot;drawline&quot;===t||&quot;drawopenpath&quot;===t},r.rectMode=function(t){return&quot;select&quot;===t||&quot;drawline&quot;===t||&quot;drawrect&quot;===t||&quot;drawcircle&quot;===t},r.freeMode=function(t){return&quot;lasso&quot;===t||&quot;drawclosedpath&quot;===t||&quot;drawopenpath&quot;===t},r.selectingOrDrawing=function(t){return r.freeMode(t)||r.rectMode(t)}},{}],662:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mouse-event-offset&quot;),i=t(&quot;has-hover&quot;),a=t(&quot;has-passive-events&quot;),o=t(&quot;../../lib&quot;).removeElement,s=t(&quot;../../plots/cartesian/constants&quot;),l=e.exports={};l.align=t(&quot;./align&quot;),l.getCursor=t(&quot;./cursor&quot;);var c=t(&quot;./unhover&quot;);function u(){var t=document.createElement(&quot;div&quot;);t.className=&quot;dragcover&quot;;var e=t.style;return e.position=&quot;fixed&quot;,e.left=0,e.right=0,e.top=0,e.bottom=0,e.zIndex=999999999,e.background=&quot;none&quot;,document.body.appendChild(t),t}function f(t){return n(t.changedTouches?t.changedTouches[0]:t,document.body)}l.unhover=c.wrapped,l.unhoverRaw=c.raw,l.init=function(t){var e,r,n,c,h,p,d,g,m=t.gd,v=1,y=m._context.doubleClickDelay,x=t.element;m._mouseDownTime||(m._mouseDownTime=0),x.style.pointerEvents=&quot;all&quot;,x.onmousedown=_,a?(x._ontouchstart&amp;&amp;x.removeEventListener(&quot;touchstart&quot;,x._ontouchstart),x._ontouchstart=_,x.addEventListener(&quot;touchstart&quot;,_,{passive:!1})):x.ontouchstart=_;var b=t.clampFn||function(t,e,r){return Math.abs(t)&lt;r&amp;&amp;(t=0),Math.abs(e)&lt;r&amp;&amp;(e=0),[t,e]};function _(a){m._dragged=!1,m._dragging=!0;var o=f(a);e=o[0],r=o[1],d=a.target,p=a,g=2===a.buttons||a.ctrlKey,&quot;undefined&quot;==typeof a.clientX&amp;&amp;&quot;undefined&quot;==typeof a.clientY&amp;&amp;(a.clientX=e,a.clientY=r),(n=(new Date).getTime())-m._mouseDownTime&lt;y?v+=1:(v=1,m._mouseDownTime=n),t.prepFn&amp;&amp;t.prepFn(a,e,r),i&amp;&amp;!g?(h=u()).style.cursor=window.getComputedStyle(x).cursor:i||(h=document,c=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(x).cursor),document.addEventListener(&quot;mouseup&quot;,T),document.addEventListener(&quot;touchend&quot;,T),!1!==t.dragmode&amp;&amp;(a.preventDefault(),document.addEventListener(&quot;mousemove&quot;,w),document.addEventListener(&quot;touchmove&quot;,w,{passive:!1}))}function w(n){n.preventDefault();var i=f(n),a=t.minDrag||s.MINDRAG,o=b(i[0]-e,i[1]-r,a),c=o[0],u=o[1];(c||u)&amp;&amp;(m._dragged=!0,l.unhover(m)),m._dragged&amp;&amp;t.moveFn&amp;&amp;!g&amp;&amp;(m._dragdata={element:x,dx:c,dy:u},t.moveFn(c,u))}function T(e){if(delete m._dragdata,!1!==t.dragmode&amp;&amp;(e.preventDefault(),document.removeEventListener(&quot;mousemove&quot;,w),document.removeEventListener(&quot;touchmove&quot;,w)),document.removeEventListener(&quot;mouseup&quot;,T),document.removeEventListener(&quot;touchend&quot;,T),i?o(h):c&amp;&amp;(h.documentElement.style.cursor=c,c=null),m._dragging){if(m._dragging=!1,(new Date).getTime()-m._mouseDownTime&gt;y&amp;&amp;(v=Math.max(v-1,1)),m._dragged)t.doneFn&amp;&amp;t.doneFn();else if(t.clickFn&amp;&amp;t.clickFn(v,p),!g){var r;try{r=new MouseEvent(&quot;click&quot;,e)}catch(t){var n=f(e);(r=document.createEvent(&quot;MouseEvents&quot;)).initMouseEvent(&quot;click&quot;,e.bubbles,e.cancelable,e.view,e.detail,e.screenX,e.screenY,n[0],n[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget)}d.dispatchEvent(r)}m._dragging=!1,m._dragged=!1}else m._dragged=!1}},l.coverSlip=u},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/constants&quot;:834,&quot;./align&quot;:659,&quot;./cursor&quot;:660,&quot;./unhover&quot;:663,&quot;has-hover&quot;:440,&quot;has-passive-events&quot;:441,&quot;mouse-event-offset&quot;:484}],663:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/events&quot;),i=t(&quot;../../lib/throttle&quot;),a=t(&quot;../../lib/dom&quot;).getGraphDiv,o=t(&quot;../fx/constants&quot;),s=e.exports={};s.wrapped=function(t,e,r){(t=a(t))._fullLayout&amp;&amp;i.clear(t._fullLayout._uid+o.HOVERID),s.raw(t,e,r)},s.raw=function(t,e){var r=t._fullLayout,i=t._hoverdata;e||(e={}),e.target&amp;&amp;!1===n.triggerHandler(t,&quot;plotly_beforehover&quot;,e)||(r._hoverlayer.selectAll(&quot;g&quot;).remove(),r._hoverlayer.selectAll(&quot;line&quot;).remove(),r._hoverlayer.selectAll(&quot;circle&quot;).remove(),t._hoverdata=void 0,e.target&amp;&amp;i&amp;&amp;t.emit(&quot;plotly_unhover&quot;,{event:e,points:i}))}},{&quot;../../lib/dom&quot;:766,&quot;../../lib/events&quot;:767,&quot;../../lib/throttle&quot;:804,&quot;../fx/constants&quot;:677}],664:[function(t,e,r){&quot;use strict&quot;;r.dash={valType:&quot;string&quot;,values:[&quot;solid&quot;,&quot;dot&quot;,&quot;dash&quot;,&quot;longdash&quot;,&quot;dashdot&quot;,&quot;longdashdot&quot;],dflt:&quot;solid&quot;,editType:&quot;style&quot;}},{}],665:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../color&quot;),l=t(&quot;../colorscale&quot;),c=t(&quot;../../lib&quot;),u=c.strTranslate,f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../constants/xmlns_namespaces&quot;),p=t(&quot;../../constants/alignment&quot;).LINE_SPACING,d=t(&quot;../../constants/interactions&quot;).DESELECTDIM,g=t(&quot;../../traces/scatter/subtypes&quot;),m=t(&quot;../../traces/scatter/make_bubble_size_func&quot;),v=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,y=e.exports={};y.font=function(t,e,r,n){c.isPlainObject(e)&amp;&amp;(n=e.color,r=e.size,e=e.family),e&amp;&amp;t.style(&quot;font-family&quot;,e),r+1&amp;&amp;t.style(&quot;font-size&quot;,r+&quot;px&quot;),n&amp;&amp;t.call(s.fill,n)},y.setPosition=function(t,e,r){t.attr(&quot;x&quot;,e).attr(&quot;y&quot;,r)},y.setSize=function(t,e,r){t.attr(&quot;width&quot;,e).attr(&quot;height&quot;,r)},y.setRect=function(t,e,r,n,i){t.call(y.setPosition,e,r).call(y.setSize,n,i)},y.translatePoint=function(t,e,r,n){var a=r.c2p(t.x),o=n.c2p(t.y);return!!(i(a)&amp;&amp;i(o)&amp;&amp;e.node())&amp;&amp;(&quot;text&quot;===e.node().nodeName?e.attr(&quot;x&quot;,a).attr(&quot;y&quot;,o):e.attr(&quot;transform&quot;,u(a,o)),!0)},y.translatePoints=function(t,e,r){t.each((function(t){var i=n.select(this);y.translatePoint(t,i,e,r)}))},y.hideOutsideRangePoint=function(t,e,r,n,i,a){e.attr(&quot;display&quot;,r.isPtWithinRange(t,i)&amp;&amp;n.isPtWithinRange(t,a)?null:&quot;none&quot;)},y.hideOutsideRangePoints=function(t,e){if(e._hasClipOnAxisFalse){var r=e.xaxis,i=e.yaxis;t.each((function(e){var a=e[0].trace,s=a.xcalendar,l=a.ycalendar,c=o.traceIs(a,&quot;bar-like&quot;)?&quot;.bartext&quot;:&quot;.point,.textpoint&quot;;t.selectAll(c).each((function(t){y.hideOutsideRangePoint(t,n.select(this),r,i,s,l)}))}))}},y.crispRound=function(t,e,r){return e&amp;&amp;i(e)?t._context.staticPlot?e:e&lt;1?1:Math.round(e):r||0},y.singleLineStyle=function(t,e,r,n,i){e.style(&quot;fill&quot;,&quot;none&quot;);var a=(((t||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,l=i||a.dash||&quot;&quot;;s.stroke(e,n||a.color),y.dashLine(e,l,o)},y.lineGroupStyle=function(t,e,r,i){t.style(&quot;fill&quot;,&quot;none&quot;).each((function(t){var a=(((t||[])[0]||{}).trace||{}).line||{},o=e||a.width||0,l=i||a.dash||&quot;&quot;;n.select(this).call(s.stroke,r||a.color).call(y.dashLine,l,o)}))},y.dashLine=function(t,e,r){r=+r||0,e=y.dashStyle(e,r),t.style({&quot;stroke-dasharray&quot;:e,&quot;stroke-width&quot;:r+&quot;px&quot;})},y.dashStyle=function(t,e){e=+e||1;var r=Math.max(e,3);return&quot;solid&quot;===t?t=&quot;&quot;:&quot;dot&quot;===t?t=r+&quot;px,&quot;+r+&quot;px&quot;:&quot;dash&quot;===t?t=3*r+&quot;px,&quot;+3*r+&quot;px&quot;:&quot;longdash&quot;===t?t=5*r+&quot;px,&quot;+5*r+&quot;px&quot;:&quot;dashdot&quot;===t?t=3*r+&quot;px,&quot;+r+&quot;px,&quot;+r+&quot;px,&quot;+r+&quot;px&quot;:&quot;longdashdot&quot;===t&amp;&amp;(t=5*r+&quot;px,&quot;+2*r+&quot;px,&quot;+r+&quot;px,&quot;+2*r+&quot;px&quot;),t},y.singleFillStyle=function(t){var e=(((n.select(t.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;e&amp;&amp;t.call(s.fill,e)},y.fillGroupStyle=function(t){t.style(&quot;stroke-width&quot;,0).each((function(t){var e=n.select(this);t[0].trace&amp;&amp;e.call(s.fill,t[0].trace.fillcolor)}))};var x=t(&quot;./symbol_defs&quot;);y.symbolNames=[],y.symbolFuncs=[],y.symbolNeedLines={},y.symbolNoDot={},y.symbolNoFill={},y.symbolList=[],Object.keys(x).forEach((function(t){var e=x[t],r=e.n;y.symbolList.push(r,String(r),t,r+100,String(r+100),t+&quot;-open&quot;),y.symbolNames[r]=t,y.symbolFuncs[r]=e.f,e.needLine&amp;&amp;(y.symbolNeedLines[r]=!0),e.noDot?y.symbolNoDot[r]=!0:y.symbolList.push(r+200,String(r+200),t+&quot;-dot&quot;,r+300,String(r+300),t+&quot;-open-dot&quot;),e.noFill&amp;&amp;(y.symbolNoFill[r]=!0)}));var b=y.symbolNames.length;function _(t,e){var r=t%100;return y.symbolFuncs[r](e)+(t&gt;=200?&quot;M0,0.5L0.5,0L0,-0.5L-0.5,0Z&quot;:&quot;&quot;)}y.symbolNumber=function(t){if(i(t))t=+t;else if(&quot;string&quot;==typeof t){var e=0;t.indexOf(&quot;-open&quot;)&gt;0&amp;&amp;(e=100,t=t.replace(&quot;-open&quot;,&quot;&quot;)),t.indexOf(&quot;-dot&quot;)&gt;0&amp;&amp;(e+=200,t=t.replace(&quot;-dot&quot;,&quot;&quot;)),(t=y.symbolNames.indexOf(t))&gt;=0&amp;&amp;(t+=e)}return t%100&gt;=b||t&gt;=400?0:Math.floor(Math.max(t,0))};var w={x1:1,x2:0,y1:0,y2:0},T={x1:0,x2:0,y1:1,y2:0},k=n.format(&quot;~.1f&quot;),M={radial:{node:&quot;radialGradient&quot;},radialreversed:{node:&quot;radialGradient&quot;,reversed:!0},horizontal:{node:&quot;linearGradient&quot;,attrs:w},horizontalreversed:{node:&quot;linearGradient&quot;,attrs:w,reversed:!0},vertical:{node:&quot;linearGradient&quot;,attrs:T},verticalreversed:{node:&quot;linearGradient&quot;,attrs:T,reversed:!0}};y.gradient=function(t,e,r,i,o,l){for(var u=o.length,f=M[i],h=new Array(u),p=0;p&lt;u;p++)f.reversed?h[u-1-p]=[k(100*(1-o[p][0])),o[p][1]]:h[p]=[k(100*o[p][0]),o[p][1]];var d=e._fullLayout,g=&quot;g&quot;+d._uid+&quot;-&quot;+r,m=d._defs.select(&quot;.gradients&quot;).selectAll(&quot;#&quot;+g).data([i+h.join(&quot;;&quot;)],c.identity);m.exit().remove(),m.enter().append(f.node).each((function(){var t=n.select(this);f.attrs&amp;&amp;t.attr(f.attrs),t.attr(&quot;id&quot;,g);var e=t.selectAll(&quot;stop&quot;).data(h);e.exit().remove(),e.enter().append(&quot;stop&quot;),e.each((function(t){var e=a(t[1]);n.select(this).attr({offset:t[0]+&quot;%&quot;,&quot;stop-color&quot;:s.tinyRGB(e),&quot;stop-opacity&quot;:e.getAlpha()})}))})),t.style(l,O(g,e)).style(l+&quot;-opacity&quot;,null);var v=function(t){return&quot;.&quot;+t.attr(&quot;class&quot;).replace(/\s/g,&quot;.&quot;)},y=v(n.select(t.node().parentNode))+&quot;&gt;&quot;+v(t);d._gradientUrlQueryParts[y]=1},y.initGradients=function(t){var e=t._fullLayout;c.ensureSingle(e._defs,&quot;g&quot;,&quot;gradients&quot;).selectAll(&quot;linearGradient,radialGradient&quot;).remove(),e._gradientUrlQueryParts={}},y.pointStyle=function(t,e,r){if(t.size()){var i=y.makePointStyleFns(e);t.each((function(t){y.singlePointStyle(t,n.select(this),e,i,r)}))}},y.singlePointStyle=function(t,e,r,n,i){var a=r.marker,o=a.line;if(e.style(&quot;opacity&quot;,n.selectedOpacityFn?n.selectedOpacityFn(t):void 0===t.mo?a.opacity:t.mo),n.ms2mrc){var l;l=&quot;various&quot;===t.ms||&quot;various&quot;===a.size?3:n.ms2mrc(t.ms),t.mrc=l,n.selectedSizeFn&amp;&amp;(l=t.mrc=n.selectedSizeFn(t));var u=y.symbolNumber(t.mx||a.symbol)||0;t.om=u%200&gt;=100,e.attr(&quot;d&quot;,_(u,l))}var f,h,p,d=!1;if(t.so)p=o.outlierwidth,h=o.outliercolor,f=a.outliercolor;else{var g=(o||{}).width;p=(t.mlw+1||g+1||(t.trace?(t.trace.marker.line||{}).width:0)+1)-1||0,h=&quot;mlc&quot;in t?t.mlcc=n.lineScale(t.mlc):c.isArrayOrTypedArray(o.color)?s.defaultLine:o.color,c.isArrayOrTypedArray(a.color)&amp;&amp;(f=s.defaultLine,d=!0),f=&quot;mc&quot;in t?t.mcc=n.markerScale(t.mc):a.color||&quot;rgba(0,0,0,0)&quot;,n.selectedColorFn&amp;&amp;(f=n.selectedColorFn(t))}if(t.om)e.call(s.stroke,f).style({&quot;stroke-width&quot;:(p||1)+&quot;px&quot;,fill:&quot;none&quot;});else{e.style(&quot;stroke-width&quot;,(t.isBlank?0:p)+&quot;px&quot;);var m=a.gradient,v=t.mgt;if(v?d=!0:v=m&amp;&amp;m.type,Array.isArray(v)&amp;&amp;(v=v[0],M[v]||(v=0)),v&amp;&amp;&quot;none&quot;!==v){var x=t.mgc;x?d=!0:x=m.color;var b=r.uid;d&amp;&amp;(b+=&quot;-&quot;+t.i),y.gradient(e,i,b,v,[[0,x],[1,f]],&quot;fill&quot;)}else s.fill(e,f);p&amp;&amp;s.stroke(e,h)}},y.makePointStyleFns=function(t){var e={},r=t.marker;return e.markerScale=y.tryColorscale(r,&quot;&quot;),e.lineScale=y.tryColorscale(r,&quot;line&quot;),o.traceIs(t,&quot;symbols&quot;)&amp;&amp;(e.ms2mrc=g.isBubble(t)?m(t):function(){return(r.size||6)/2}),t.selectedpoints&amp;&amp;c.extendFlat(e,y.makeSelectedPointStyleFns(t)),e},y.makeSelectedPointStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.marker||{},a=r.marker||{},s=n.marker||{},l=i.opacity,u=a.opacity,f=s.opacity,h=void 0!==u,p=void 0!==f;(c.isArrayOrTypedArray(l)||h||p)&amp;&amp;(e.selectedOpacityFn=function(t){var e=void 0===t.mo?i.opacity:t.mo;return t.selected?h?u:e:p?f:d*e});var g=i.color,m=a.color,v=s.color;(m||v)&amp;&amp;(e.selectedColorFn=function(t){var e=t.mcc||g;return t.selected?m||e:v||e});var y=i.size,x=a.size,b=s.size,_=void 0!==x,w=void 0!==b;return o.traceIs(t,&quot;symbols&quot;)&amp;&amp;(_||w)&amp;&amp;(e.selectedSizeFn=function(t){var e=t.mrc||y/2;return t.selected?_?x/2:e:w?b/2:e}),e},y.makeSelectedTextStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.textfont||{},a=r.textfont||{},o=n.textfont||{},l=i.color,c=a.color,u=o.color;return e.selectedTextColorFn=function(t){var e=t.tc||l;return t.selected?c||e:u||(c?e:s.addOpacity(e,d))},e},y.selectedPointStyle=function(t,e){if(t.size()&amp;&amp;e.selectedpoints){var r=y.makeSelectedPointStyleFns(e),i=e.marker||{},a=[];r.selectedOpacityFn&amp;&amp;a.push((function(t,e){t.style(&quot;opacity&quot;,r.selectedOpacityFn(e))})),r.selectedColorFn&amp;&amp;a.push((function(t,e){s.fill(t,r.selectedColorFn(e))})),r.selectedSizeFn&amp;&amp;a.push((function(t,e){var n=e.mx||i.symbol||0,a=r.selectedSizeFn(e);t.attr(&quot;d&quot;,_(y.symbolNumber(n),a)),e.mrc2=a})),a.length&amp;&amp;t.each((function(t){for(var e=n.select(this),r=0;r&lt;a.length;r++)a[r](e,t)}))}},y.tryColorscale=function(t,e){var r=e?c.nestedProperty(t,e).get():t;if(r){var n=r.color;if((r.colorscale||r._colorAx)&amp;&amp;c.isArrayOrTypedArray(n))return l.makeColorScaleFuncFromTrace(r)}return c.identity};var A={start:1,end:-1,middle:0,bottom:1,top:-1};function S(t,e,r,i){var a=n.select(t.node().parentNode),o=-1!==e.indexOf(&quot;top&quot;)?&quot;top&quot;:-1!==e.indexOf(&quot;bottom&quot;)?&quot;bottom&quot;:&quot;middle&quot;,s=-1!==e.indexOf(&quot;left&quot;)?&quot;end&quot;:-1!==e.indexOf(&quot;right&quot;)?&quot;start&quot;:&quot;middle&quot;,l=i?i/.8+1:0,c=(f.lineCount(t)-1)*p+1,h=A[s]*l,d=.75*r+A[o]*l+(A[o]-1)*c*r/2;t.attr(&quot;text-anchor&quot;,s),a.attr(&quot;transform&quot;,u(h,d))}function E(t,e){var r=t.ts||e.textfont.size;return i(r)&amp;&amp;r&gt;0?r:0}y.textPointStyle=function(t,e,r){if(t.size()){var i;if(e.selectedpoints){var a=y.makeSelectedTextStyleFns(e);i=a.selectedTextColorFn}var o=e.texttemplate,s=r._fullLayout;t.each((function(t){var a=n.select(this),l=o?c.extractOption(t,e,&quot;txt&quot;,&quot;texttemplate&quot;):c.extractOption(t,e,&quot;tx&quot;,&quot;text&quot;);if(l||0===l){if(o){var u=e._module.formatLabels?e._module.formatLabels(t,e,s):{},h={};v(h,e,t.i);var p=e._meta||{};l=c.texttemplateString(l,u,s._d3locale,h,t,p)}var d=t.tp||e.textposition,g=E(t,e),m=i?i(t):t.tc||e.textfont.color;a.call(y.font,t.tf||e.textfont.family,g,m).text(l).call(f.convertToTspans,r).call(S,d,g,t.mrc)}else a.remove()}))}},y.selectedTextStyle=function(t,e){if(t.size()&amp;&amp;e.selectedpoints){var r=y.makeSelectedTextStyleFns(e);t.each((function(t){var i=n.select(this),a=r.selectedTextColorFn(t),o=t.tp||e.textposition,l=E(t,e);s.fill(i,a),S(i,o,l,t.mrc2||t.mrc)}))}};function C(t,e,r,i){var a=t[0]-e[0],o=t[1]-e[1],s=r[0]-e[0],l=r[1]-e[1],c=Math.pow(a*a+o*o,.25),u=Math.pow(s*s+l*l,.25),f=(u*u*a-c*c*s)*i,h=(u*u*o-c*c*l)*i,p=3*u*(c+u),d=3*c*(c+u);return[[n.round(e[0]+(p&amp;&amp;f/p),2),n.round(e[1]+(p&amp;&amp;h/p),2)],[n.round(e[0]-(d&amp;&amp;f/d),2),n.round(e[1]-(d&amp;&amp;h/d),2)]]}y.smoothopen=function(t,e){if(t.length&lt;3)return&quot;M&quot;+t.join(&quot;L&quot;);var r,n=&quot;M&quot;+t[0],i=[];for(r=1;r&lt;t.length-1;r++)i.push(C(t[r-1],t[r],t[r+1],e));for(n+=&quot;Q&quot;+i[0][0]+&quot; &quot;+t[1],r=2;r&lt;t.length-1;r++)n+=&quot;C&quot;+i[r-2][1]+&quot; &quot;+i[r-1][0]+&quot; &quot;+t[r];return n+=&quot;Q&quot;+i[t.length-3][1]+&quot; &quot;+t[t.length-1]},y.smoothclosed=function(t,e){if(t.length&lt;3)return&quot;M&quot;+t.join(&quot;L&quot;)+&quot;Z&quot;;var r,n=&quot;M&quot;+t[0],i=t.length-1,a=[C(t[i],t[0],t[1],e)];for(r=1;r&lt;i;r++)a.push(C(t[r-1],t[r],t[r+1],e));for(a.push(C(t[i-1],t[i],t[0],e)),r=1;r&lt;=i;r++)n+=&quot;C&quot;+a[r-1][1]+&quot; &quot;+a[r][0]+&quot; &quot;+t[r];return n+=&quot;C&quot;+a[i][1]+&quot; &quot;+a[0][0]+&quot; &quot;+t[0]+&quot;Z&quot;};var L={hv:function(t,e){return&quot;H&quot;+n.round(e[0],2)+&quot;V&quot;+n.round(e[1],2)},vh:function(t,e){return&quot;V&quot;+n.round(e[1],2)+&quot;H&quot;+n.round(e[0],2)},hvh:function(t,e){return&quot;H&quot;+n.round((t[0]+e[0])/2,2)+&quot;V&quot;+n.round(e[1],2)+&quot;H&quot;+n.round(e[0],2)},vhv:function(t,e){return&quot;V&quot;+n.round((t[1]+e[1])/2,2)+&quot;H&quot;+n.round(e[0],2)+&quot;V&quot;+n.round(e[1],2)}},I=function(t,e){return&quot;L&quot;+n.round(e[0],2)+&quot;,&quot;+n.round(e[1],2)};y.steps=function(t){var e=L[t]||I;return function(t){for(var r=&quot;M&quot;+n.round(t[0][0],2)+&quot;,&quot;+n.round(t[0][1],2),i=1;i&lt;t.length;i++)r+=e(t[i-1],t[i]);return r}},y.makeTester=function(){var t=c.ensureSingleById(n.select(&quot;body&quot;),&quot;svg&quot;,&quot;js-plotly-tester&quot;,(function(t){t.attr(h.svgAttrs).style({position:&quot;absolute&quot;,left:&quot;-10000px&quot;,top:&quot;-10000px&quot;,width:&quot;9000px&quot;,height:&quot;9000px&quot;,&quot;z-index&quot;:&quot;1&quot;})})),e=c.ensureSingle(t,&quot;path&quot;,&quot;js-reference-point&quot;,(function(t){t.attr(&quot;d&quot;,&quot;M0,0H1V1H0Z&quot;).style({&quot;stroke-width&quot;:0,fill:&quot;black&quot;})}));y.tester=t,y.testref=e},y.savedBBoxes={};var P=0;function z(t){var e=t.getAttribute(&quot;data-unformatted&quot;);if(null!==e)return e+t.getAttribute(&quot;data-math&quot;)+t.getAttribute(&quot;text-anchor&quot;)+t.getAttribute(&quot;style&quot;)}function O(t,e){if(!t)return null;var r=e._context;return&quot;url('&quot;+(r._exportedPlot?&quot;&quot;:r._baseUrl||&quot;&quot;)+&quot;#&quot;+t+&quot;')&quot;}y.bBox=function(t,e,r){var i,a,o;if(r||(r=z(t)),r){if(i=y.savedBBoxes[r])return c.extendFlat({},i)}else if(1===t.childNodes.length){var s=t.childNodes[0];if(r=z(s)){var l=+s.getAttribute(&quot;x&quot;)||0,u=+s.getAttribute(&quot;y&quot;)||0,h=s.getAttribute(&quot;transform&quot;);if(!h){var p=y.bBox(s,!1,r);return l&amp;&amp;(p.left+=l,p.right+=l),u&amp;&amp;(p.top+=u,p.bottom+=u),p}if(r+=&quot;~&quot;+l+&quot;~&quot;+u+&quot;~&quot;+h,i=y.savedBBoxes[r])return c.extendFlat({},i)}}e?a=t:(o=y.tester.node(),a=t.cloneNode(!0),o.appendChild(a)),n.select(a).attr(&quot;transform&quot;,null).call(f.positionText,0,0);var d=a.getBoundingClientRect(),g=y.testref.node().getBoundingClientRect();e||o.removeChild(a);var m={height:d.height,width:d.width,left:d.left-g.left,top:d.top-g.top,right:d.right-g.left,bottom:d.bottom-g.top};return P&gt;=1e4&amp;&amp;(y.savedBBoxes={},P=0),r&amp;&amp;(y.savedBBoxes[r]=m),P++,c.extendFlat({},m)},y.setClipUrl=function(t,e,r){t.attr(&quot;clip-path&quot;,O(e,r))},y.getTranslate=function(t){var e=(t[t.attr?&quot;attr&quot;:&quot;getAttribute&quot;](&quot;transform&quot;)||&quot;&quot;).replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(&quot; &quot;)})).split(&quot; &quot;);return{x:+e[0]||0,y:+e[1]||0}},y.setTranslate=function(t,e,r){var n=t.attr?&quot;attr&quot;:&quot;getAttribute&quot;,i=t.attr?&quot;attr&quot;:&quot;setAttribute&quot;,a=t[n](&quot;transform&quot;)||&quot;&quot;;return e=e||0,r=r||0,a=a.replace(/(\btranslate\(.*?\);?)/,&quot;&quot;).trim(),a=(a+=u(e,r)).trim(),t[i](&quot;transform&quot;,a),a},y.getScale=function(t){var e=(t[t.attr?&quot;attr&quot;:&quot;getAttribute&quot;](&quot;transform&quot;)||&quot;&quot;).replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(&quot; &quot;)})).split(&quot; &quot;);return{x:+e[0]||1,y:+e[1]||1}},y.setScale=function(t,e,r){var n=t.attr?&quot;attr&quot;:&quot;getAttribute&quot;,i=t.attr?&quot;attr&quot;:&quot;setAttribute&quot;,a=t[n](&quot;transform&quot;)||&quot;&quot;;return e=e||1,r=r||1,a=a.replace(/(\bscale\(.*?\);?)/,&quot;&quot;).trim(),a=(a+=&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;).trim(),t[i](&quot;transform&quot;,a),a};var D=/\s*sc.*/;y.setPointGroupScale=function(t,e,r){if(e=e||1,r=r||1,t){var n=1===e&amp;&amp;1===r?&quot;&quot;:&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;;t.each((function(){var t=(this.getAttribute(&quot;transform&quot;)||&quot;&quot;).replace(D,&quot;&quot;);t=(t+=n).trim(),this.setAttribute(&quot;transform&quot;,t)}))}};var R=/translate\([^)]*\)\s*$/;y.setTextPointsScale=function(t,e,r){t&amp;&amp;t.each((function(){var t,i=n.select(this),a=i.select(&quot;text&quot;);if(a.node()){var o=parseFloat(a.attr(&quot;x&quot;)||0),s=parseFloat(a.attr(&quot;y&quot;)||0),l=(i.attr(&quot;transform&quot;)||&quot;&quot;).match(R);t=1===e&amp;&amp;1===r?[]:[u(o,s),&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;,u(-o,-s)],l&amp;&amp;t.push(l),i.attr(&quot;transform&quot;,t.join(&quot;&quot;))}}))}},{&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/alignment&quot;:745,&quot;../../constants/interactions&quot;:752,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../registry&quot;:911,&quot;../../traces/scatter/make_bubble_size_func&quot;:1204,&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../color&quot;:643,&quot;../colorscale&quot;:655,&quot;./symbol_defs&quot;:666,d3:169,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],666:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports={circle:{n:0,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;}},square:{n:1,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;}},diamond:{n:2,f:function(t){var e=n.round(1.3*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;Z&quot;}},cross:{n:3,f:function(t){var e=n.round(.4*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+r+&quot;,&quot;+e+&quot;H&quot;+e+&quot;V&quot;+r+&quot;H-&quot;+e+&quot;V&quot;+e+&quot;H-&quot;+r+&quot;V-&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+r+&quot;H&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+r+&quot;Z&quot;}},x:{n:4,f:function(t){var e=n.round(.8*t/Math.sqrt(2),2),r=&quot;l&quot;+e+&quot;,&quot;+e,i=&quot;l&quot;+e+&quot;,-&quot;+e,a=&quot;l-&quot;+e+&quot;,-&quot;+e,o=&quot;l-&quot;+e+&quot;,&quot;+e;return&quot;M0,&quot;+e+r+i+a+i+a+o+a+o+r+o+r+&quot;Z&quot;}},&quot;triangle-up&quot;:{n:5,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+e+&quot;,&quot;+n.round(t/2,2)+&quot;H&quot;+e+&quot;L0,-&quot;+n.round(t,2)+&quot;Z&quot;}},&quot;triangle-down&quot;:{n:6,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+e+&quot;,-&quot;+n.round(t/2,2)+&quot;H&quot;+e+&quot;L0,&quot;+n.round(t,2)+&quot;Z&quot;}},&quot;triangle-left&quot;:{n:7,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M&quot;+n.round(t/2,2)+&quot;,-&quot;+e+&quot;V&quot;+e+&quot;L-&quot;+n.round(t,2)+&quot;,0Z&quot;}},&quot;triangle-right&quot;:{n:8,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+n.round(t/2,2)+&quot;,-&quot;+e+&quot;V&quot;+e+&quot;L&quot;+n.round(t,2)+&quot;,0Z&quot;}},&quot;triangle-ne&quot;:{n:9,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M-&quot;+r+&quot;,-&quot;+e+&quot;H&quot;+e+&quot;V&quot;+r+&quot;Z&quot;}},&quot;triangle-se&quot;:{n:10,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+e+&quot;H-&quot;+r+&quot;Z&quot;}},&quot;triangle-sw&quot;:{n:11,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+r+&quot;Z&quot;}},&quot;triangle-nw&quot;:{n:12,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M-&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+e+&quot;H&quot;+r+&quot;Z&quot;}},pentagon:{n:13,f:function(t){var e=n.round(.951*t,2),r=n.round(.588*t,2),i=n.round(-t,2),a=n.round(-.309*t,2);return&quot;M&quot;+e+&quot;,&quot;+a+&quot;L&quot;+r+&quot;,&quot;+n.round(.809*t,2)+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,&quot;+a+&quot;L0,&quot;+i+&quot;Z&quot;}},hexagon:{n:14,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return&quot;M&quot;+i+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;L0,&quot;+e+&quot;L-&quot;+i+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;L0,-&quot;+e+&quot;Z&quot;}},hexagon2:{n:15,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return&quot;M-&quot;+r+&quot;,&quot;+i+&quot;H&quot;+r+&quot;L&quot;+e+&quot;,0L&quot;+r+&quot;,-&quot;+i+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},octagon:{n:16,f:function(t){var e=n.round(.924*t,2),r=n.round(.383*t,2);return&quot;M-&quot;+r+&quot;,-&quot;+e+&quot;H&quot;+r+&quot;L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;L&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;Z&quot;}},star:{n:17,f:function(t){var e=1.4*t,r=n.round(.225*e,2),i=n.round(.951*e,2),a=n.round(.363*e,2),o=n.round(.588*e,2),s=n.round(-e,2),l=n.round(-.309*e,2),c=n.round(.118*e,2),u=n.round(.809*e,2);return&quot;M&quot;+r+&quot;,&quot;+l+&quot;H&quot;+i+&quot;L&quot;+a+&quot;,&quot;+c+&quot;L&quot;+o+&quot;,&quot;+u+&quot;L0,&quot;+n.round(.382*e,2)+&quot;L-&quot;+o+&quot;,&quot;+u+&quot;L-&quot;+a+&quot;,&quot;+c+&quot;L-&quot;+i+&quot;,&quot;+l+&quot;H-&quot;+r+&quot;L0,&quot;+s+&quot;Z&quot;}},hexagram:{n:18,f:function(t){var e=n.round(.66*t,2),r=n.round(.38*t,2),i=n.round(.76*t,2);return&quot;M-&quot;+i+&quot;,0l-&quot;+r+&quot;,-&quot;+e+&quot;h&quot;+i+&quot;l&quot;+r+&quot;,-&quot;+e+&quot;l&quot;+r+&quot;,&quot;+e+&quot;h&quot;+i+&quot;l-&quot;+r+&quot;,&quot;+e+&quot;l&quot;+r+&quot;,&quot;+e+&quot;h-&quot;+i+&quot;l-&quot;+r+&quot;,&quot;+e+&quot;l-&quot;+r+&quot;,-&quot;+e+&quot;h-&quot;+i+&quot;Z&quot;}},&quot;star-triangle-up&quot;:{n:19,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=&quot;A &quot;+a+&quot;,&quot;+a+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,&quot;+r+o+e+&quot;,&quot;+r+o+&quot;0,-&quot;+i+o+&quot;-&quot;+e+&quot;,&quot;+r+&quot;Z&quot;}},&quot;star-triangle-down&quot;:{n:20,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=&quot;A &quot;+a+&quot;,&quot;+a+&quot; 0 0 1 &quot;;return&quot;M&quot;+e+&quot;,-&quot;+r+o+&quot;-&quot;+e+&quot;,-&quot;+r+o+&quot;0,&quot;+i+o+e+&quot;,-&quot;+r+&quot;Z&quot;}},&quot;star-square&quot;:{n:21,f:function(t){var e=n.round(1.1*t,2),r=n.round(2*t,2),i=&quot;A &quot;+r+&quot;,&quot;+r+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,-&quot;+e+i+&quot;-&quot;+e+&quot;,&quot;+e+i+e+&quot;,&quot;+e+i+e+&quot;,-&quot;+e+i+&quot;-&quot;+e+&quot;,-&quot;+e+&quot;Z&quot;}},&quot;star-diamond&quot;:{n:22,f:function(t){var e=n.round(1.4*t,2),r=n.round(1.9*t,2),i=&quot;A &quot;+r+&quot;,&quot;+r+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,0&quot;+i+&quot;0,&quot;+e+i+e+&quot;,0&quot;+i+&quot;0,-&quot;+e+i+&quot;-&quot;+e+&quot;,0Z&quot;}},&quot;diamond-tall&quot;:{n:23,f:function(t){var e=n.round(.7*t,2),r=n.round(1.4*t,2);return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,0L0,-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},&quot;diamond-wide&quot;:{n:24,f:function(t){var e=n.round(1.4*t,2),r=n.round(.7*t,2);return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,0L0,-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},hourglass:{n:25,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;L&quot;+e+&quot;,-&quot;+e+&quot;H-&quot;+e+&quot;Z&quot;},noDot:!0},bowtie:{n:26,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;V-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e+&quot;V-&quot;+e+&quot;Z&quot;},noDot:!0},&quot;circle-cross&quot;:{n:27,f:function(t){var e=n.round(t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;},needLine:!0,noDot:!0},&quot;circle-x&quot;:{n:28,f:function(t){var e=n.round(t,2),r=n.round(t/Math.sqrt(2),2);return&quot;M&quot;+r+&quot;,&quot;+r+&quot;L-&quot;+r+&quot;,-&quot;+r+&quot;M&quot;+r+&quot;,-&quot;+r+&quot;L-&quot;+r+&quot;,&quot;+r+&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;},needLine:!0,noDot:!0},&quot;square-cross&quot;:{n:29,f:function(t){var e=n.round(t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;square-x&quot;:{n:30,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e+&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e+&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;diamond-cross&quot;:{n:31,f:function(t){var e=n.round(1.3*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;ZM0,-&quot;+e+&quot;V&quot;+e+&quot;M-&quot;+e+&quot;,0H&quot;+e},needLine:!0,noDot:!0},&quot;diamond-x&quot;:{n:32,f:function(t){var e=n.round(1.3*t,2),r=n.round(.65*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;ZM-&quot;+r+&quot;,-&quot;+r+&quot;L&quot;+r+&quot;,&quot;+r+&quot;M-&quot;+r+&quot;,&quot;+r+&quot;L&quot;+r+&quot;,-&quot;+r},needLine:!0,noDot:!0},&quot;cross-thin&quot;:{n:33,f:function(t){var e=n.round(1.4*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;x-thin&quot;:{n:34,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e+&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(t){var e=n.round(1.2*t,2),r=n.round(.85*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+r+&quot;,&quot;+r+&quot;L-&quot;+r+&quot;,-&quot;+r+&quot;M&quot;+r+&quot;,-&quot;+r+&quot;L-&quot;+r+&quot;,&quot;+r},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(t){var e=n.round(t/2,2),r=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;m-&quot;+r+&quot;,0V&quot;+r+&quot;M&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+r+&quot;m0,-&quot;+r+&quot;H&quot;+r},needLine:!0,noFill:!0},&quot;y-up&quot;:{n:37,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+e+&quot;,&quot;+i+&quot;L0,0M&quot;+e+&quot;,&quot;+i+&quot;L0,0M0,-&quot;+r+&quot;L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-down&quot;:{n:38,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+e+&quot;,-&quot;+i+&quot;L0,0M&quot;+e+&quot;,-&quot;+i+&quot;L0,0M0,&quot;+r+&quot;L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-left&quot;:{n:39,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M&quot;+i+&quot;,&quot;+e+&quot;L0,0M&quot;+i+&quot;,-&quot;+e+&quot;L0,0M-&quot;+r+&quot;,0L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-right&quot;:{n:40,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+i+&quot;,&quot;+e+&quot;L0,0M-&quot;+i+&quot;,-&quot;+e+&quot;L0,0M&quot;+r+&quot;,0L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;line-ew&quot;:{n:41,f:function(t){var e=n.round(1.4*t,2);return&quot;M&quot;+e+&quot;,0H-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-ns&quot;:{n:42,f:function(t){var e=n.round(1.4*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-ne&quot;:{n:43,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-nw&quot;:{n:44,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;arrow-up&quot;:{n:45,f:function(t){var e=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},noDot:!0},&quot;arrow-down&quot;:{n:46,f:function(t){var e=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,-&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},noDot:!0},&quot;arrow-left&quot;:{n:47,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,0L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},noDot:!0},&quot;arrow-right&quot;:{n:48,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},noDot:!0},&quot;arrow-bar-up&quot;:{n:49,f:function(t){var e=n.round(t,2);return&quot;M-&quot;+e+&quot;,0H&quot;+e+&quot;M0,0L-&quot;+e+&quot;,&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-down&quot;:{n:50,f:function(t){var e=n.round(t,2);return&quot;M-&quot;+e+&quot;,0H&quot;+e+&quot;M0,0L-&quot;+e+&quot;,-&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-left&quot;:{n:51,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,-&quot;+r+&quot;V&quot;+r+&quot;M0,0L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-right&quot;:{n:52,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,-&quot;+r+&quot;V&quot;+r+&quot;M0,0L-&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},needLine:!0,noDot:!0}}},{d3:169}],667:[function(t,e,r){&quot;use strict&quot;;e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;percent&quot;,&quot;constant&quot;,&quot;sqrt&quot;,&quot;data&quot;],editType:&quot;calc&quot;},symmetric:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},array:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},arrayminus:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},value:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;calc&quot;},valueminus:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;calc&quot;},traceref:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;style&quot;},tracerefminus:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;style&quot;},copy_ystyle:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},copy_zstyle:{valType:&quot;boolean&quot;,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},thickness:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;,_deprecated:{opacity:{valType:&quot;number&quot;,editType:&quot;style&quot;}}}},{}],668:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;./compute_error&quot;);function l(t,e,r,i){var l=e[&quot;error_&quot;+i]||{},c=[];if(l.visible&amp;&amp;-1!==[&quot;linear&quot;,&quot;log&quot;].indexOf(r.type)){for(var u=s(l),f=0;f&lt;t.length;f++){var h=t[f],p=h.i;if(void 0===p)p=f;else if(null===p)continue;var d=h[i];if(n(r.c2l(d))){var g=u(d,p);if(n(g[0])&amp;&amp;n(g[1])){var m=h[i+&quot;s&quot;]=d-g[0],v=h[i+&quot;h&quot;]=d+g[1];c.push(m,v)}}}var y=r._id,x=e._extremes[y],b=a.findExtremes(r,c,o.extendFlat({tozero:x.opts.tozero},{padded:!0}));x.min=x.min.concat(b.min),x.max=x.max.concat(b.max)}}e.exports=function(t){for(var e=t.calcdata,r=0;r&lt;e.length;r++){var n=e[r],o=n[0].trace;if(!0===o.visible&amp;&amp;i.traceIs(o,&quot;errorBarsOK&quot;)){var s=a.getFromId(t,o.xaxis),c=a.getFromId(t,o.yaxis);l(n,o,s,&quot;x&quot;),l(n,o,c,&quot;y&quot;)}}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./compute_error&quot;:669,&quot;fast-isnumeric&quot;:241}],669:[function(t,e,r){&quot;use strict&quot;;function n(t,e){return&quot;percent&quot;===t?function(t){return Math.abs(t*e/100)}:&quot;constant&quot;===t?function(){return Math.abs(e)}:&quot;sqrt&quot;===t?function(t){return Math.sqrt(Math.abs(t))}:void 0}e.exports=function(t){var e=t.type,r=t.symmetric;if(&quot;data&quot;===e){var i=t.array||[];if(r)return function(t,e){var r=+i[e];return[r,r]};var a=t.arrayminus||[];return function(t,e){var r=+i[e],n=+a[e];return isNaN(r)&amp;&amp;isNaN(n)?[NaN,NaN]:[n||0,r||0]}}var o=n(e,t.value),s=n(e,t.valueminus);return r||void 0===t.valueminus?function(t){var e=o(t);return[e,e]}:function(t){return[s(t),o(t)]}}},{}],670:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../plot_api/plot_template&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){var c=&quot;error_&quot;+l.axis,u=o.newContainer(e,c),f=t[c]||{};function h(t,e){return a.coerce(f,u,s,t,e)}if(!1!==h(&quot;visible&quot;,void 0!==f.array||void 0!==f.value||&quot;sqrt&quot;===f.type)){var p=h(&quot;type&quot;,&quot;array&quot;in f?&quot;data&quot;:&quot;percent&quot;),d=!0;&quot;sqrt&quot;!==p&amp;&amp;(d=h(&quot;symmetric&quot;,!((&quot;data&quot;===p?&quot;arrayminus&quot;:&quot;valueminus&quot;)in f))),&quot;data&quot;===p?(h(&quot;array&quot;),h(&quot;traceref&quot;),d||(h(&quot;arrayminus&quot;),h(&quot;tracerefminus&quot;))):&quot;percent&quot;!==p&amp;&amp;&quot;constant&quot;!==p||(h(&quot;value&quot;),d||h(&quot;valueminus&quot;));var g=&quot;copy_&quot;+l.inherit+&quot;style&quot;;if(l.inherit)(e[&quot;error_&quot;+l.inherit]||{}).visible&amp;&amp;h(g,!(f.color||n(f.thickness)||n(f.width)));l.inherit&amp;&amp;u[g]||(h(&quot;color&quot;,r),h(&quot;thickness&quot;),h(&quot;width&quot;,i.traceIs(e,&quot;gl3d&quot;)?0:4))}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../registry&quot;:911,&quot;./attributes&quot;:667,&quot;fast-isnumeric&quot;:241}],671:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/edit_types&quot;).overrideAll,a=t(&quot;./attributes&quot;),o={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var s={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a),error_z:n.extendFlat({},a)};delete s.error_x.copy_ystyle,delete s.error_y.copy_ystyle,delete s.error_z.copy_ystyle,delete s.error_z.copy_zstyle,e.exports={moduleType:&quot;component&quot;,name:&quot;errorbars&quot;,schema:{traces:{scatter:o,bar:o,histogram:o,scatter3d:i(s,&quot;calc&quot;,&quot;nested&quot;),scattergl:i(o,&quot;calc&quot;,&quot;nested&quot;)}},supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),makeComputeError:t(&quot;./compute_error&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverInfo:function(t,e,r){(e.error_y||{}).visible&amp;&amp;(r.yerr=t.yh-t.y,e.error_y.symmetric||(r.yerrneg=t.y-t.ys));(e.error_x||{}).visible&amp;&amp;(r.xerr=t.xh-t.x,e.error_x.symmetric||(r.xerrneg=t.x-t.xs))}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;./attributes&quot;:667,&quot;./calc&quot;:668,&quot;./compute_error&quot;:669,&quot;./defaults&quot;:670,&quot;./plot&quot;:672,&quot;./style&quot;:673}],672:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../drawing&quot;),o=t(&quot;../../traces/scatter/subtypes&quot;);e.exports=function(t,e,r,s){var l=r.xaxis,c=r.yaxis,u=s&amp;&amp;s.duration&gt;0;e.each((function(e){var f,h=e[0].trace,p=h.error_x||{},d=h.error_y||{};h.ids&amp;&amp;(f=function(t){return t.id});var g=o.hasMarkers(h)&amp;&amp;h.marker.maxdisplayed&gt;0;d.visible||p.visible||(e=[]);var m=n.select(this).selectAll(&quot;g.errorbar&quot;).data(e,f);if(m.exit().remove(),e.length){p.visible||m.selectAll(&quot;path.xerror&quot;).remove(),d.visible||m.selectAll(&quot;path.yerror&quot;).remove(),m.style(&quot;opacity&quot;,1);var v=m.enter().append(&quot;g&quot;).classed(&quot;errorbar&quot;,!0);u&amp;&amp;v.style(&quot;opacity&quot;,0).transition().duration(s.duration).style(&quot;opacity&quot;,1),a.setClipUrl(m,r.layerClipId,t),m.each((function(t){var e=n.select(this),r=function(t,e,r){var n={x:e.c2p(t.x),y:r.c2p(t.y)};void 0!==t.yh&amp;&amp;(n.yh=r.c2p(t.yh),n.ys=r.c2p(t.ys),i(n.ys)||(n.noYS=!0,n.ys=r.c2p(t.ys,!0)));void 0!==t.xh&amp;&amp;(n.xh=e.c2p(t.xh),n.xs=e.c2p(t.xs),i(n.xs)||(n.noXS=!0,n.xs=e.c2p(t.xs,!0)));return n}(t,l,c);if(!g||t.vis){var a,o=e.select(&quot;path.yerror&quot;);if(d.visible&amp;&amp;i(r.x)&amp;&amp;i(r.yh)&amp;&amp;i(r.ys)){var f=d.width;a=&quot;M&quot;+(r.x-f)+&quot;,&quot;+r.yh+&quot;h&quot;+2*f+&quot;m-&quot;+f+&quot;,0V&quot;+r.ys,r.noYS||(a+=&quot;m-&quot;+f+&quot;,0h&quot;+2*f),!o.size()?o=e.append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).classed(&quot;yerror&quot;,!0):u&amp;&amp;(o=o.transition().duration(s.duration).ease(s.easing)),o.attr(&quot;d&quot;,a)}else o.remove();var h=e.select(&quot;path.xerror&quot;);if(p.visible&amp;&amp;i(r.y)&amp;&amp;i(r.xh)&amp;&amp;i(r.xs)){var m=(p.copy_ystyle?d:p).width;a=&quot;M&quot;+r.xh+&quot;,&quot;+(r.y-m)+&quot;v&quot;+2*m+&quot;m0,-&quot;+m+&quot;H&quot;+r.xs,r.noXS||(a+=&quot;m0,-&quot;+m+&quot;v&quot;+2*m),!h.size()?h=e.append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).classed(&quot;xerror&quot;,!0):u&amp;&amp;(h=h.transition().duration(s.duration).ease(s.easing)),h.attr(&quot;d&quot;,a)}else h.remove()}}))}}))}},{&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../drawing&quot;:665,d3:169,&quot;fast-isnumeric&quot;:241}],673:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../color&quot;);e.exports=function(t){t.each((function(t){var e=t[0].trace,r=e.error_y||{},a=e.error_x||{},o=n.select(this);o.selectAll(&quot;path.yerror&quot;).style(&quot;stroke-width&quot;,r.thickness+&quot;px&quot;).call(i.stroke,r.color),a.copy_ystyle&amp;&amp;(a=r),o.selectAll(&quot;path.xerror&quot;).style(&quot;stroke-width&quot;,a.thickness+&quot;px&quot;).call(i.stroke,a.color)}))}},{&quot;../color&quot;:643,d3:169}],674:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;./layout_attributes&quot;).hoverlabel,a=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={hoverlabel:{bgcolor:a({},i.bgcolor,{arrayOk:!0}),bordercolor:a({},i.bordercolor,{arrayOk:!0}),font:n({arrayOk:!0,editType:&quot;none&quot;}),align:a({},i.align,{arrayOk:!0}),namelength:a({},i.namelength,{arrayOk:!0}),editType:&quot;none&quot;}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;./layout_attributes&quot;:684}],675:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;);function a(t,e,r,i){i=i||n.identity,Array.isArray(t)&amp;&amp;(e[0][r]=i(t))}e.exports=function(t){var e=t.calcdata,r=t._fullLayout;function o(t){return function(e){return n.coerceHoverinfo({hoverinfo:e},{_module:t._module},r)}}for(var s=0;s&lt;e.length;s++){var l=e[s],c=l[0].trace;if(!i.traceIs(c,&quot;pie-like&quot;)){var u=i.traceIs(c,&quot;2dMap&quot;)?a:n.fillArray;u(c.hoverinfo,l,&quot;hi&quot;,o(c)),c.hovertemplate&amp;&amp;u(c.hovertemplate,l,&quot;ht&quot;),c.hoverlabel&amp;&amp;(u(c.hoverlabel.bgcolor,l,&quot;hbg&quot;),u(c.hoverlabel.bordercolor,l,&quot;hbc&quot;),u(c.hoverlabel.font.size,l,&quot;hts&quot;),u(c.hoverlabel.font.color,l,&quot;htc&quot;),u(c.hoverlabel.font.family,l,&quot;htf&quot;),u(c.hoverlabel.namelength,l,&quot;hnl&quot;),u(c.hoverlabel.align,l,&quot;hta&quot;))}}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],676:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./hover&quot;).hover;e.exports=function(t,e,r){var a=n.getComponentMethod(&quot;annotations&quot;,&quot;onClick&quot;)(t,t._hoverdata);function o(){t.emit(&quot;plotly_click&quot;,{points:t._hoverdata,event:e})}void 0!==r&amp;&amp;i(t,e,r,!0),t._hoverdata&amp;&amp;e&amp;&amp;e.target&amp;&amp;(a&amp;&amp;a.then?a.then(o):o(),e.stopImmediatePropagation&amp;&amp;e.stopImmediatePropagation())}},{&quot;../../registry&quot;:911,&quot;./hover&quot;:680}],677:[function(t,e,r){&quot;use strict&quot;;e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:&quot;Arial, sans-serif&quot;,HOVERMINTIME:50,HOVERID:&quot;-hover&quot;}},{}],678:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./hoverlabel_defaults&quot;);e.exports=function(t,e,r,o){var s=n.extendFlat({},o.hoverlabel);e.hovertemplate&amp;&amp;(s.namelength=-1),a(t,e,(function(r,a){return n.coerce(t,e,i,r,a)}),s)}},{&quot;../../lib&quot;:778,&quot;./attributes&quot;:674,&quot;./hoverlabel_defaults&quot;:681}],679:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);r.getSubplot=function(t){return t.subplot||t.xaxis+t.yaxis||t.geo},r.isTraceInSubplots=function(t,e){if(&quot;splom&quot;===t.type){for(var n=t.xaxes||[],i=t.yaxes||[],a=0;a&lt;n.length;a++)for(var o=0;o&lt;i.length;o++)if(-1!==e.indexOf(n[a]+i[o]))return!0;return!1}return-1!==e.indexOf(r.getSubplot(t))},r.flat=function(t,e){for(var r=new Array(t.length),n=0;n&lt;t.length;n++)r[n]=e;return r},r.p2c=function(t,e){for(var r=new Array(t.length),n=0;n&lt;t.length;n++)r[n]=t[n].p2c(e);return r},r.getDistanceFunction=function(t,e,n,i){return&quot;closest&quot;===t?i||r.quadrature(e,n):&quot;x&quot;===t.charAt(0)?e:n},r.getClosest=function(t,e,r){if(!1!==r.index)r.index&gt;=0&amp;&amp;r.index&lt;t.length?r.distance=0:r.index=!1;else for(var n=0;n&lt;t.length;n++){var i=e(t[n]);i&lt;=r.distance&amp;&amp;(r.index=n,r.distance=i)}return r},r.inbox=function(t,e,r){return t*e&lt;0||0===t?r:1/0},r.quadrature=function(t,e){return function(r){var n=t(r),i=e(r);return Math.sqrt(n*n+i*i)}},r.makeEventData=function(t,e,n){var i=&quot;index&quot;in t?t.index:t.pointNumber,a={data:e._input,fullData:e,curveNumber:e.index,pointNumber:i};if(e._indexToPoints){var o=e._indexToPoints[i];1===o.length?a.pointIndex=o[0]:a.pointIndices=o}else a.pointIndex=i;return e._module.eventData?a=e._module.eventData(a,t,e,n,i):(&quot;xVal&quot;in t?a.x=t.xVal:&quot;x&quot;in t&amp;&amp;(a.x=t.x),&quot;yVal&quot;in t?a.y=t.yVal:&quot;y&quot;in t&amp;&amp;(a.y=t.y),t.xa&amp;&amp;(a.xaxis=t.xa),t.ya&amp;&amp;(a.yaxis=t.ya),void 0!==t.zLabelVal&amp;&amp;(a.z=t.zLabelVal)),r.appendArrayPointValue(a,e,i),a},r.appendArrayPointValue=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s&lt;i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){var u=o(n.nestedProperty(e,l).get(),r);void 0!==u&amp;&amp;(t[c]=u)}}},r.appendArrayMultiPointValues=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s&lt;i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){for(var u=n.nestedProperty(e,l).get(),f=new Array(r.length),h=0;h&lt;r.length;h++)f[h]=o(u,r[h]);t[c]=f}}};var i={ids:&quot;id&quot;,locations:&quot;location&quot;,labels:&quot;label&quot;,values:&quot;value&quot;,&quot;marker.colors&quot;:&quot;color&quot;,parents:&quot;parent&quot;};function a(t){return i[t]||t}function o(t,e){return Array.isArray(e)?Array.isArray(t)&amp;&amp;Array.isArray(t[e[0]])?t[e[0]][e[1]]:void 0:t[e]}var s={x:!0,y:!0},l={&quot;x unified&quot;:!0,&quot;y unified&quot;:!0};r.isUnifiedHover=function(t){return&quot;string&quot;==typeof t&amp;&amp;!!l[t]},r.isXYhover=function(t){return&quot;string&quot;==typeof t&amp;&amp;!!s[t]}},{&quot;../../lib&quot;:778}],680:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=o.strRotate,c=t(&quot;../../lib/events&quot;),u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../lib/override_cursor&quot;),h=t(&quot;../drawing&quot;),p=t(&quot;../color&quot;),d=t(&quot;../dragelement&quot;),g=t(&quot;../../plots/cartesian/axes&quot;),m=t(&quot;../../registry&quot;),v=t(&quot;./helpers&quot;),y=t(&quot;./constants&quot;),x=t(&quot;../legend/defaults&quot;),b=t(&quot;../legend/draw&quot;),_=y.YANGLE,w=Math.PI*_/180,T=1/Math.sin(w),k=Math.cos(w),M=Math.sin(w),A=y.HOVERARROWSIZE,S=y.HOVERTEXTPAD;function E(t){return[t.trace.index,t.index,t.x0,t.y0,t.name,t.attr,t.xa,t.ya||&quot;&quot;].join(&quot;,&quot;)}r.hover=function(t,e,r,a){t=o.getGraphDiv(t),o.throttle(t._fullLayout._uid+y.HOVERID,y.HOVERMINTIME,(function(){!function(t,e,r,a){r||(r=&quot;xy&quot;);var s=Array.isArray(r)?r:[r],l=t._fullLayout,u=l._plots||[],h=u[r],g=l._has(&quot;cartesian&quot;);if(h){var y=h.overlays.map((function(t){return t.id}));s=s.concat(y)}for(var x=s.length,b=new Array(x),_=new Array(x),w=!1,k=0;k&lt;x;k++){var M=s[k];if(u[M])w=!0,b[k]=u[M].xaxis,_[k]=u[M].yaxis;else{if(!l[M]||!l[M]._subplot)return void o.warn(&quot;Unrecognized subplot: &quot;+M);var A=l[M]._subplot;b[k]=A.xaxis,_[k]=A.yaxis}}var S=e.hovermode||l.hovermode;S&amp;&amp;!w&amp;&amp;(S=&quot;closest&quot;);if(-1===[&quot;x&quot;,&quot;y&quot;,&quot;closest&quot;,&quot;x unified&quot;,&quot;y unified&quot;].indexOf(S)||!t.calcdata||t.querySelector(&quot;.zoombox&quot;)||t._dragging)return d.unhoverRaw(t,e);var C,I,R,F,B,N,j,U,V,q,H,G,Y,W=-1===l.hoverdistance?1/0:l.hoverdistance,X=-1===l.spikedistance?1/0:l.spikedistance,Z=[],J=[],K={hLinePoint:null,vLinePoint:null},Q=!1;if(Array.isArray(e))for(S=&quot;array&quot;,R=0;R&lt;e.length;R++)(B=t.calcdata[e[R].curveNumber||0])&amp;&amp;(N=B[0].trace,&quot;skip&quot;!==B[0].trace.hoverinfo&amp;&amp;(J.push(B),&quot;h&quot;===N.orientation&amp;&amp;(Q=!0)));else{for(F=0;F&lt;t.calcdata.length;F++)B=t.calcdata[F],&quot;skip&quot;!==(N=B[0].trace).hoverinfo&amp;&amp;v.isTraceInSubplots(N,s)&amp;&amp;(J.push(B),&quot;h&quot;===N.orientation&amp;&amp;(Q=!0));var $,tt;if(!e.target)$=&quot;xpx&quot;in e?e.xpx:b[0]._length/2,tt=&quot;ypx&quot;in e?e.ypx:_[0]._length/2;else{if(!1===c.triggerHandler(t,&quot;plotly_beforehover&quot;,e))return;var et=e.target.getBoundingClientRect();$=e.clientX-et.left,tt=e.clientY-et.top,l._calcInverseTransform(t);var rt=o.apply3DTransform(l._invTransform)($,tt);if($=rt[0],tt=rt[1],$&lt;0||$&gt;b[0]._length||tt&lt;0||tt&gt;_[0]._length)return d.unhoverRaw(t,e)}if(e.pointerX=$+b[0]._offset,e.pointerY=tt+_[0]._offset,C=&quot;xval&quot;in e?v.flat(s,e.xval):v.p2c(b,$),I=&quot;yval&quot;in e?v.flat(s,e.yval):v.p2c(_,tt),!i(C[0])||!i(I[0]))return o.warn(&quot;Fx.hover failed&quot;,e,t),d.unhoverRaw(t,e)}var nt=1/0;function it(t,r){for(F=0;F&lt;J.length;F++)if((B=J[F])&amp;&amp;B[0]&amp;&amp;B[0].trace&amp;&amp;!0===(N=B[0].trace).visible&amp;&amp;0!==N._length&amp;&amp;-1===[&quot;carpet&quot;,&quot;contourcarpet&quot;].indexOf(N._module.name)){if(&quot;splom&quot;===N.type?j=s[U=0]:(j=v.getSubplot(N),U=s.indexOf(j)),V=S,v.isUnifiedHover(V)&amp;&amp;(V=V.charAt(0)),G={cd:B,trace:N,xa:b[U],ya:_[U],maxHoverDistance:W,maxSpikeDistance:X,index:!1,distance:Math.min(nt,W),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:p.defaultLine,name:N.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},l[j]&amp;&amp;(G.subplot=l[j]._subplot),l._splomScenes&amp;&amp;l._splomScenes[N.uid]&amp;&amp;(G.scene=l._splomScenes[N.uid]),Y=Z.length,&quot;array&quot;===V){var n=e[F];&quot;pointNumber&quot;in n?(G.index=n.pointNumber,V=&quot;closest&quot;):(V=&quot;&quot;,&quot;xval&quot;in n&amp;&amp;(q=n.xval,V=&quot;x&quot;),&quot;yval&quot;in n&amp;&amp;(H=n.yval,V=V?&quot;closest&quot;:&quot;y&quot;))}else void 0!==t&amp;&amp;void 0!==r?(q=t,H=r):(q=C[U],H=I[U]);if(0!==W)if(N._module&amp;&amp;N._module.hoverPoints){var a=N._module.hoverPoints(G,q,H,V,l._hoverlayer);if(a)for(var c,u=0;u&lt;a.length;u++)c=a[u],i(c.x0)&amp;&amp;i(c.y0)&amp;&amp;Z.push(z(c,S))}else o.log(&quot;Unrecognized trace type in hover:&quot;,N);if(&quot;closest&quot;===S&amp;&amp;Z.length&gt;Y&amp;&amp;(Z.splice(0,Y),nt=Z[0].distance),g&amp;&amp;0!==X&amp;&amp;0===Z.length){G.distance=X,G.index=!1;var f=N._module.hoverPoints(G,q,H,&quot;closest&quot;,l._hoverlayer);if(f&amp;&amp;(f=f.filter((function(t){return t.spikeDistance&lt;=X}))),f&amp;&amp;f.length){var h,d=f.filter((function(t){return t.xa.showspikes&amp;&amp;&quot;hovered data&quot;!==t.xa.spikesnap}));if(d.length){var m=d[0];i(m.x0)&amp;&amp;i(m.y0)&amp;&amp;(h=ot(m),(!K.vLinePoint||K.vLinePoint.spikeDistance&gt;h.spikeDistance)&amp;&amp;(K.vLinePoint=h))}var y=f.filter((function(t){return t.ya.showspikes&amp;&amp;&quot;hovered data&quot;!==t.ya.spikesnap}));if(y.length){var x=y[0];i(x.x0)&amp;&amp;i(x.y0)&amp;&amp;(h=ot(x),(!K.hLinePoint||K.hLinePoint.spikeDistance&gt;h.spikeDistance)&amp;&amp;(K.hLinePoint=h))}}}}}function at(t,e){for(var r,n=null,i=1/0,a=0;a&lt;t.length;a++)(r=t[a].spikeDistance)&lt;=i&amp;&amp;r&lt;=e&amp;&amp;(n=t[a],i=r);return n}function ot(t){return t?{xa:t.xa,ya:t.ya,x:void 0!==t.xSpike?t.xSpike:(t.x0+t.x1)/2,y:void 0!==t.ySpike?t.ySpike:(t.y0+t.y1)/2,distance:t.distance,spikeDistance:t.spikeDistance,curveNumber:t.trace.index,color:t.color,pointNumber:t.index}:null}it();var st={fullLayout:l,container:l._hoverlayer,outerContainer:l._paperdiv,event:e},lt=t._spikepoints,ct={vLinePoint:K.vLinePoint,hLinePoint:K.hLinePoint};if(t._spikepoints=ct,g&amp;&amp;0!==X&amp;&amp;0!==Z.length){var ut=at(Z.filter((function(t){return t.ya.showspikes})),X);K.hLinePoint=ot(ut);var ft=at(Z.filter((function(t){return t.xa.showspikes})),X);K.vLinePoint=ot(ft)}if(0===Z.length){var ht=d.unhoverRaw(t,e);return!g||null===K.hLinePoint&amp;&amp;null===K.vLinePoint||D(lt)&amp;&amp;O(t,K,st),ht}g&amp;&amp;D(lt)&amp;&amp;O(t,K,st);if(Z.sort((function(t,e){return t.distance-e.distance})),v.isXYhover(V)&amp;&amp;0!==Z[0].length&amp;&amp;&quot;splom&quot;!==Z[0].trace.type){var pt=Z[0],dt=pt.cd[pt.index],gt=&quot;group&quot;===l.boxmode||&quot;group&quot;===l.violinmode,mt=pt.xVal,vt=pt.xa;&quot;category&quot;===vt.type&amp;&amp;(mt=vt._categoriesMap[mt]),&quot;date&quot;===vt.type&amp;&amp;(mt=vt.d2c(mt)),dt&amp;&amp;dt.t&amp;&amp;dt.t.posLetter===vt._id&amp;&amp;gt&amp;&amp;(mt+=dt.t.dPos);var yt=pt.yVal;&quot;category&quot;===(vt=pt.ya).type&amp;&amp;(yt=vt._categoriesMap[yt]),&quot;date&quot;===vt.type&amp;&amp;(yt=vt.d2c(yt)),dt&amp;&amp;dt.t&amp;&amp;dt.t.posLetter===vt._id&amp;&amp;gt&amp;&amp;(yt+=dt.t.dPos),it(mt,yt);var xt={};Z=Z.filter((function(t){var e=E(t);if(!xt[e])return xt[e]=!0,xt[e]}))}var bt=t._hoverdata,_t=[];for(R=0;R&lt;Z.length;R++){var wt=Z[R],Tt=v.makeEventData(wt,wt.trace,wt.cd);if(!1!==wt.hovertemplate){var kt=!1;wt.cd[wt.index]&amp;&amp;wt.cd[wt.index].ht&amp;&amp;(kt=wt.cd[wt.index].ht),wt.hovertemplate=kt||wt.trace.hovertemplate||!1}wt.eventData=[Tt],_t.push(Tt)}t._hoverdata=_t;var Mt=&quot;y&quot;===S&amp;&amp;(J.length&gt;1||Z.length&gt;1)||&quot;closest&quot;===S&amp;&amp;Q&amp;&amp;Z.length&gt;1,At=p.combine(l.plot_bgcolor||p.background,l.paper_bgcolor),St={hovermode:S,rotateLabels:Mt,bgColor:At,container:l._hoverlayer,outerContainer:l._paperdiv,commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance},Et=L(Z,St,t);v.isUnifiedHover(S)||(!function(t,e,r){var n,i,a,o,s,l,c,u=0,f=1,h=t.size(),p=new Array(h),d=0;function g(t){var e=t[0],r=t[t.length-1];if(i=e.pmin-e.pos-e.dp+e.size,a=r.pos+r.dp+r.size-e.pmax,i&gt;.01){for(s=t.length-1;s&gt;=0;s--)t[s].dp+=i;n=!1}if(!(a&lt;.01)){if(i&lt;-.01){for(s=t.length-1;s&gt;=0;s--)t[s].dp-=a;n=!1}if(n){var c=0;for(o=0;o&lt;t.length;o++)(l=t[o]).pos+l.dp+l.size&gt;e.pmax&amp;&amp;c++;for(o=t.length-1;o&gt;=0&amp;&amp;!(c&lt;=0);o--)(l=t[o]).pos&gt;e.pmax-1&amp;&amp;(l.del=!0,c--);for(o=0;o&lt;t.length&amp;&amp;!(c&lt;=0);o++)if((l=t[o]).pos&lt;e.pmin+1)for(l.del=!0,c--,a=2*l.size,s=t.length-1;s&gt;=0;s--)t[s].dp-=a;for(o=t.length-1;o&gt;=0&amp;&amp;!(c&lt;=0);o--)(l=t[o]).pos+l.dp+l.size&gt;e.pmax&amp;&amp;(l.del=!0,c--)}}}t.each((function(t){var n=t[e],i=&quot;x&quot;===n._id.charAt(0),a=n.range;0===d&amp;&amp;a&amp;&amp;a[0]&gt;a[1]!==i&amp;&amp;(f=-1),p[d++]=[{datum:t,traceIndex:t.trace.index,dp:0,pos:t.pos,posref:t.posref,size:t.by*(i?T:1)/2,pmin:0,pmax:i?r.width:r.height}]})),p.sort((function(t,e){return t[0].posref-e[0].posref||f*(e[0].traceIndex-t[0].traceIndex)}));for(;!n&amp;&amp;u&lt;=h;){for(u++,n=!0,o=0;o&lt;p.length-1;){var m=p[o],v=p[o+1],y=m[m.length-1],x=v[0];if((i=y.pos+y.dp+y.size-x.pos-x.dp+x.size)&gt;.01&amp;&amp;y.pmin===x.pmin&amp;&amp;y.pmax===x.pmax){for(s=v.length-1;s&gt;=0;s--)v[s].dp+=i;for(m.push.apply(m,v),p.splice(o+1,1),c=0,s=m.length-1;s&gt;=0;s--)c+=m[s].dp;for(a=c/m.length,s=m.length-1;s&gt;=0;s--)m[s].dp-=a;n=!1}else o++}p.forEach(g)}for(o=p.length-1;o&gt;=0;o--){var b=p[o];for(s=b.length-1;s&gt;=0;s--){var _=b[s],w=_.datum;w.offset=_.dp,w.del=_.del}}}(Et,Mt?&quot;xa&quot;:&quot;ya&quot;,l),P(Et,Mt,l._invScaleX,l._invScaleY));if(e.target&amp;&amp;e.target.tagName){var Ct=m.getComponentMethod(&quot;annotations&quot;,&quot;hasClickToShow&quot;)(t,_t);f(n.select(e.target),Ct?&quot;pointer&quot;:&quot;&quot;)}if(!e.target||a||!function(t,e,r){if(!r||r.length!==t._hoverdata.length)return!0;for(var n=r.length-1;n&gt;=0;n--){var i=r[n],a=t._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers))return!0}return!1}(t,0,bt))return;bt&amp;&amp;t.emit(&quot;plotly_unhover&quot;,{event:e,points:bt});t.emit(&quot;plotly_hover&quot;,{event:e,points:t._hoverdata,xaxes:b,yaxes:_,xvals:C,yvals:I})}(t,e,r,a)}))},r.loneHover=function(t,e){var r=!0;Array.isArray(t)||(r=!1,t=[t]);var i=t.map((function(t){return{color:t.color||p.defaultLine,x0:t.x0||t.x||0,x1:t.x1||t.x||0,y0:t.y0||t.y||0,y1:t.y1||t.y||0,xLabel:t.xLabel,yLabel:t.yLabel,zLabel:t.zLabel,text:t.text,name:t.name,idealAlign:t.idealAlign,borderColor:t.borderColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontColor:t.fontColor,nameLength:t.nameLength,textAlign:t.textAlign,trace:t.trace||{index:0,hoverinfo:&quot;&quot;},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:t.hovertemplate||!1,eventData:t.eventData||!1,hovertemplateLabels:t.hovertemplateLabels||!1}})),a=n.select(e.container),o=e.outerContainer?n.select(e.outerContainer):a,s={hovermode:&quot;closest&quot;,rotateLabels:!1,bgColor:e.bgColor||p.background,container:a,outerContainer:o},l=L(i,s,e.gd),c=0,u=0;l.sort((function(t,e){return t.y0-e.y0})).each((function(t,r){var n=t.y0-t.by/2;t.offset=n-5&lt;c?c-n+5:0,c=n+t.by+t.offset,r===e.anchorIndex&amp;&amp;(u=t.offset)})).each((function(t){t.offset-=u}));var f=e.gd._fullLayout._invScaleX,h=e.gd._fullLayout._invScaleY;return P(l,s.rotateLabels,f,h),r?l:l.node()};var C=/&lt;extra&gt;([\s\S]*)&lt;\/extra&gt;/;function L(t,e,r){var i=r._fullLayout,a=e.hovermode,c=e.rotateLabels,f=e.bgColor,d=e.container,g=e.outerContainer,m=e.commonLabelOpts||{},w=e.fontFamily||y.HOVERFONT,T=e.fontSize||y.HOVERFONTSIZE,k=t[0],M=k.xa,C=k.ya,L=&quot;y&quot;===a.charAt(0)?&quot;yLabel&quot;:&quot;xLabel&quot;,P=k[L],z=(String(P)||&quot;&quot;).split(&quot; &quot;)[0],O=g.node().getBoundingClientRect(),D=O.top,R=O.width,F=O.height,B=void 0!==P&amp;&amp;k.distance&lt;=e.hoverdistance&amp;&amp;(&quot;x&quot;===a||&quot;y&quot;===a);if(B){var N,j,U=!0;for(N=0;N&lt;t.length;N++)if(U&amp;&amp;void 0===t[N].zLabel&amp;&amp;(U=!1),j=t[N].hoverinfo||t[N].trace.hoverinfo){var V=Array.isArray(j)?j:j.split(&quot;+&quot;);if(-1===V.indexOf(&quot;all&quot;)&amp;&amp;-1===V.indexOf(a)){B=!1;break}}U&amp;&amp;(B=!1)}var q=d.selectAll(&quot;g.axistext&quot;).data(B?[0]:[]);function H(t){return t.filter((function(t){return void 0!==t.zLabelVal||(t[L]||&quot;&quot;).split(&quot; &quot;)[0]===z}))}if(q.enter().append(&quot;g&quot;).classed(&quot;axistext&quot;,!0),q.exit().remove(),q.each((function(){var e=n.select(this),l=o.ensureSingle(e,&quot;path&quot;,&quot;&quot;,(function(t){t.style({&quot;stroke-width&quot;:&quot;1px&quot;})})),c=o.ensureSingle(e,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),f=m.bgcolor||p.defaultLine,d=m.bordercolor||p.contrast(f),g=p.contrast(f),v={family:m.font.family||w,size:m.font.size||T,color:m.font.color||g};l.style({fill:f,stroke:d}),c.text(P).call(h.font,v).call(u.positionText,0,0).call(u.convertToTspans,r),e.attr(&quot;transform&quot;,&quot;&quot;);var y,x,b=c.node().getBoundingClientRect();if(&quot;x&quot;===a){var _=&quot;top&quot;===M.side?&quot;-&quot;:&quot;&quot;;c.attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(u.positionText,0,&quot;top&quot;===M.side?D-b.bottom-A-S:D-b.top+A+S),y=M._offset+(k.x0+k.x1)/2,x=C._offset+(&quot;top&quot;===M.side?0:C._length);var E=b.width/2+S;y&lt;E?(y=E,l.attr(&quot;d&quot;,&quot;M-&quot;+(E-A)+&quot;,0L-&quot;+(E-2*A)+&quot;,&quot;+_+A+&quot;H&quot;+(S+b.width/2)+&quot;v&quot;+_+(2*S+b.height)+&quot;H-&quot;+E+&quot;V&quot;+_+A+&quot;Z&quot;)):y&gt;i.width-E?(y=i.width-E,l.attr(&quot;d&quot;,&quot;M&quot;+(E-A)+&quot;,0L&quot;+E+&quot;,&quot;+_+A+&quot;v&quot;+_+(2*S+b.height)+&quot;H-&quot;+E+&quot;V&quot;+_+A+&quot;H&quot;+(E-2*A)+&quot;Z&quot;)):l.attr(&quot;d&quot;,&quot;M0,0L&quot;+A+&quot;,&quot;+_+A+&quot;H&quot;+(S+b.width/2)+&quot;v&quot;+_+(2*S+b.height)+&quot;H-&quot;+(S+b.width/2)+&quot;V&quot;+_+A+&quot;H-&quot;+A+&quot;Z&quot;)}else{var L,I,z;&quot;right&quot;===C.side?(L=&quot;start&quot;,I=1,z=&quot;&quot;,y=M._offset+M._length):(L=&quot;end&quot;,I=-1,z=&quot;-&quot;,y=M._offset),x=C._offset+(k.y0+k.y1)/2,c.attr(&quot;text-anchor&quot;,L),l.attr(&quot;d&quot;,&quot;M0,0L&quot;+z+A+&quot;,&quot;+A+&quot;V&quot;+(S+b.height/2)+&quot;h&quot;+z+(2*S+b.width)+&quot;V-&quot;+(S+b.height/2)+&quot;H&quot;+z+A+&quot;V-&quot;+A+&quot;Z&quot;);var O,R=b.height/2,F=D-b.top-R,B=&quot;clip&quot;+i._uid+&quot;commonlabel&quot;+C._id;if(y&lt;b.width+2*S+A){O=&quot;M-&quot;+(A+S)+&quot;-&quot;+R+&quot;h-&quot;+(b.width-S)+&quot;V&quot;+R+&quot;h&quot;+(b.width-S)+&quot;Z&quot;;var N=b.width-y+S;u.positionText(c,N,F),&quot;end&quot;===L&amp;&amp;c.selectAll(&quot;tspan&quot;).each((function(){var t=n.select(this),e=h.tester.append(&quot;text&quot;).text(t.text()).call(h.font,v),r=e.node().getBoundingClientRect();Math.round(r.width)&lt;Math.round(b.width)&amp;&amp;t.attr(&quot;x&quot;,N-r.width),e.remove()}))}else u.positionText(c,I*(S+A),F),O=null;var j=i._topclips.selectAll(&quot;#&quot;+B).data(O?[0]:[]);j.enter().append(&quot;clipPath&quot;).attr(&quot;id&quot;,B).append(&quot;path&quot;),j.exit().remove(),j.select(&quot;path&quot;).attr(&quot;d&quot;,O),h.setClipUrl(c,O?B:null,r)}e.attr(&quot;transform&quot;,s(y,x)),t=H(t)})),v.isUnifiedHover(a)){if(d.selectAll(&quot;g.hovertext&quot;).remove(),void 0!==P&amp;&amp;k.distance&lt;=e.hoverdistance&amp;&amp;(t=H(t)),0===t.length)return;var G={showlegend:!0,legend:{title:{text:P,font:i.hoverlabel.font},font:i.hoverlabel.font,bgcolor:i.hoverlabel.bgcolor,bordercolor:i.hoverlabel.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:&quot;v&quot;}},Y={};x(G,Y,r._fullData);var W=Y.legend;W.entries=[];for(var X=0;X&lt;t.length;X++){var Z=I(t[X],!0,a,i,P),J=Z[0],K=Z[1],Q=t[X];Q.name=K,Q.text=&quot;&quot;!==K?K+&quot; : &quot;+J:J;var $=Q.cd[Q.index];$&amp;&amp;($.mc&amp;&amp;(Q.mc=$.mc),$.mcc&amp;&amp;(Q.mc=$.mcc),$.mlc&amp;&amp;(Q.mlc=$.mlc),$.mlcc&amp;&amp;(Q.mlc=$.mlcc),$.mlw&amp;&amp;(Q.mlw=$.mlw),$.mrc&amp;&amp;(Q.mrc=$.mrc),$.dir&amp;&amp;(Q.dir=$.dir)),Q._distinct=!0,W.entries.push([Q])}W.entries.sort((function(t,e){return t[0].trace.index-e[0].trace.index})),W.layer=d,b(r,W);var tt=o.mean(t.map((function(t){return(t.y0+t.y1)/2}))),et=o.mean(t.map((function(t){return(t.x0+t.x1)/2}))),rt=d.select(&quot;g.legend&quot;),nt=rt.node().getBoundingClientRect();et+=M._offset,tt+=C._offset-nt.height/2;var it=nt.width+2*S;!(et+it&lt;=R)&amp;&amp;et-it&gt;=0?et-=it:et+=2*S;var at=nt.height+2*S,ot=tt+at&gt;=F;return at&lt;=F&amp;&amp;(tt&lt;=D?tt=C._offset+2*S:ot&amp;&amp;(tt=F-at)),rt.attr(&quot;transform&quot;,s(et,tt)),rt}var st=d.selectAll(&quot;g.hovertext&quot;).data(t,(function(t){return E(t)}));return st.enter().append(&quot;g&quot;).classed(&quot;hovertext&quot;,!0).each((function(){var t=n.select(this);t.append(&quot;rect&quot;).call(p.fill,p.addOpacity(f,.8)),t.append(&quot;text&quot;).classed(&quot;name&quot;,!0),t.append(&quot;path&quot;).style(&quot;stroke-width&quot;,&quot;1px&quot;),t.append(&quot;text&quot;).classed(&quot;nums&quot;,!0).call(h.font,w,T)})),st.exit().remove(),st.each((function(t){var e=n.select(this).attr(&quot;transform&quot;,&quot;&quot;),o=t.color;Array.isArray(o)&amp;&amp;(o=o[t.eventData[0].pointNumber]);var d=t.bgcolor||o,g=p.combine(p.opacity(d)?d:p.defaultLine,f),m=p.combine(p.opacity(o)?o:p.defaultLine,f),v=t.borderColor||p.contrast(g),y=I(t,B,a,i,P,e),x=y[0],b=y[1],k=e.select(&quot;text.nums&quot;).call(h.font,t.fontFamily||w,t.fontSize||T,t.fontColor||v).text(x).attr(&quot;data-notex&quot;,1).call(u.positionText,0,0).call(u.convertToTspans,r),M=e.select(&quot;text.name&quot;),E=0,C=0;if(b&amp;&amp;b!==x){M.call(h.font,t.fontFamily||w,t.fontSize||T,m).text(b).attr(&quot;data-notex&quot;,1).call(u.positionText,0,0).call(u.convertToTspans,r);var L=M.node().getBoundingClientRect();E=L.width+2*S,C=L.height+2*S}else M.remove(),e.select(&quot;rect&quot;).remove();e.select(&quot;path&quot;).style({fill:g,stroke:v});var z,O,N=k.node().getBoundingClientRect(),j=t.xa._offset+(t.x0+t.x1)/2,U=t.ya._offset+(t.y0+t.y1)/2,V=Math.abs(t.x1-t.x0),q=Math.abs(t.y1-t.y0),H=N.width+A+S+E;if(t.ty0=D-N.top,t.bx=N.width+2*S,t.by=Math.max(N.height+2*S,C),t.anchor=&quot;start&quot;,t.txwidth=N.width,t.tx2width=E,t.offset=0,c)t.pos=j,z=U+q/2+H&lt;=F,O=U-q/2-H&gt;=0,&quot;top&quot;!==t.idealAlign&amp;&amp;z||!O?z?(U+=q/2,t.anchor=&quot;start&quot;):t.anchor=&quot;middle&quot;:(U-=q/2,t.anchor=&quot;end&quot;);else if(t.pos=U,z=j+V/2+H&lt;=R,O=j-V/2-H&gt;=0,&quot;left&quot;!==t.idealAlign&amp;&amp;z||!O)if(z)j+=V/2,t.anchor=&quot;start&quot;;else{t.anchor=&quot;middle&quot;;var G=H/2,Y=j+G-R,W=j-G;Y&gt;0&amp;&amp;(j-=Y),W&lt;0&amp;&amp;(j+=-W)}else j-=V/2,t.anchor=&quot;end&quot;;k.attr(&quot;text-anchor&quot;,t.anchor),E&amp;&amp;M.attr(&quot;text-anchor&quot;,t.anchor),e.attr(&quot;transform&quot;,s(j,U)+(c?l(_):&quot;&quot;))})),st}function I(t,e,r,n,i,a){var s=&quot;&quot;,l=&quot;&quot;;void 0!==t.nameOverride&amp;&amp;(t.name=t.nameOverride),t.name&amp;&amp;(t.trace._meta&amp;&amp;(t.name=o.templateString(t.name,t.trace._meta)),s=R(t.name,t.nameLength)),void 0!==t.zLabel?(void 0!==t.xLabel&amp;&amp;(l+=&quot;x: &quot;+t.xLabel+&quot;&lt;br&gt;&quot;),void 0!==t.yLabel&amp;&amp;(l+=&quot;y: &quot;+t.yLabel+&quot;&lt;br&gt;&quot;),&quot;choropleth&quot;!==t.trace.type&amp;&amp;&quot;choroplethmapbox&quot;!==t.trace.type&amp;&amp;(l+=(l?&quot;z: &quot;:&quot;&quot;)+t.zLabel)):e&amp;&amp;t[r.charAt(0)+&quot;Label&quot;]===i?l=t[(&quot;x&quot;===r.charAt(0)?&quot;y&quot;:&quot;x&quot;)+&quot;Label&quot;]||&quot;&quot;:void 0===t.xLabel?void 0!==t.yLabel&amp;&amp;&quot;scattercarpet&quot;!==t.trace.type&amp;&amp;(l=t.yLabel):l=void 0===t.yLabel?t.xLabel:&quot;(&quot;+t.xLabel+&quot;, &quot;+t.yLabel+&quot;)&quot;,!t.text&amp;&amp;0!==t.text||Array.isArray(t.text)||(l+=(l?&quot;&lt;br&gt;&quot;:&quot;&quot;)+t.text),void 0!==t.extraText&amp;&amp;(l+=(l?&quot;&lt;br&gt;&quot;:&quot;&quot;)+t.extraText),a&amp;&amp;&quot;&quot;===l&amp;&amp;!t.hovertemplate&amp;&amp;(&quot;&quot;===s&amp;&amp;a.remove(),l=s);var c=n._d3locale,u=t.hovertemplate||!1,f=t.hovertemplateLabels||t,h=t.eventData[0]||{};return u&amp;&amp;(l=(l=o.hovertemplateString(u,f,c,h,t.trace._meta)).replace(C,(function(e,r){return s=R(r,t.nameLength),&quot;&quot;}))),[l,s]}function P(t,e,r,i){var a=function(t){return t*r},o=function(t){return t*i};t.each((function(t){var r=n.select(this);if(t.del)return r.remove();var i=r.select(&quot;text.nums&quot;),s=t.anchor,l=&quot;end&quot;===s?-1:1,c={start:1,end:-1,middle:0}[s],f=c*(A+S),p=f+c*(t.txwidth+S),d=0,g=t.offset,m=&quot;middle&quot;===s;m&amp;&amp;(f-=t.tx2width/2,p+=t.txwidth/2+S),e&amp;&amp;(g*=-M,d=t.offset*k),r.select(&quot;path&quot;).attr(&quot;d&quot;,m?&quot;M-&quot;+a(t.bx/2+t.tx2width/2)+&quot;,&quot;+o(g-t.by/2)+&quot;h&quot;+a(t.bx)+&quot;v&quot;+o(t.by)+&quot;h-&quot;+a(t.bx)+&quot;Z&quot;:&quot;M0,0L&quot;+a(l*A+d)+&quot;,&quot;+o(A+g)+&quot;v&quot;+o(t.by/2-A)+&quot;h&quot;+a(l*t.bx)+&quot;v-&quot;+o(t.by)+&quot;H&quot;+a(l*A+d)+&quot;V&quot;+o(g-A)+&quot;Z&quot;);var v=d+f,y=g+t.ty0-t.by/2+S,x=t.textAlign||&quot;auto&quot;;&quot;auto&quot;!==x&amp;&amp;(&quot;left&quot;===x&amp;&amp;&quot;start&quot;!==s?(i.attr(&quot;text-anchor&quot;,&quot;start&quot;),v=m?-t.bx/2-t.tx2width/2+S:-t.bx-S):&quot;right&quot;===x&amp;&amp;&quot;end&quot;!==s&amp;&amp;(i.attr(&quot;text-anchor&quot;,&quot;end&quot;),v=m?t.bx/2-t.tx2width/2-S:t.bx+S)),i.call(u.positionText,a(v),o(y)),t.tx2width&amp;&amp;(r.select(&quot;text.name&quot;).call(u.positionText,a(p+c*S+d),o(g+t.ty0-t.by/2+S)),r.select(&quot;rect&quot;).call(h.setRect,a(p+(c-1)*t.tx2width/2+d),o(g-t.by/2-1),a(t.tx2width),o(t.by+2)))}))}function z(t,e){var r=t.index,n=t.trace||{},a=t.cd[0],s=t.cd[r]||{};function l(t){return t||i(t)&amp;&amp;0===t}var c=Array.isArray(r)?function(t,e){var i=o.castOption(a,r,t);return l(i)?i:o.extractOption({},n,&quot;&quot;,e)}:function(t,e){return o.extractOption(s,n,t,e)};function u(e,r,n){var i=c(r,n);l(i)&amp;&amp;(t[e]=i)}if(u(&quot;hoverinfo&quot;,&quot;hi&quot;,&quot;hoverinfo&quot;),u(&quot;bgcolor&quot;,&quot;hbg&quot;,&quot;hoverlabel.bgcolor&quot;),u(&quot;borderColor&quot;,&quot;hbc&quot;,&quot;hoverlabel.bordercolor&quot;),u(&quot;fontFamily&quot;,&quot;htf&quot;,&quot;hoverlabel.font.family&quot;),u(&quot;fontSize&quot;,&quot;hts&quot;,&quot;hoverlabel.font.size&quot;),u(&quot;fontColor&quot;,&quot;htc&quot;,&quot;hoverlabel.font.color&quot;),u(&quot;nameLength&quot;,&quot;hnl&quot;,&quot;hoverlabel.namelength&quot;),u(&quot;textAlign&quot;,&quot;hta&quot;,&quot;hoverlabel.align&quot;),t.posref=&quot;y&quot;===e||&quot;closest&quot;===e&amp;&amp;&quot;h&quot;===n.orientation?t.xa._offset+(t.x0+t.x1)/2:t.ya._offset+(t.y0+t.y1)/2,t.x0=o.constrain(t.x0,0,t.xa._length),t.x1=o.constrain(t.x1,0,t.xa._length),t.y0=o.constrain(t.y0,0,t.ya._length),t.y1=o.constrain(t.y1,0,t.ya._length),void 0!==t.xLabelVal&amp;&amp;(t.xLabel=&quot;xLabel&quot;in t?t.xLabel:g.hoverLabelText(t.xa,t.xLabelVal),t.xVal=t.xa.c2d(t.xLabelVal)),void 0!==t.yLabelVal&amp;&amp;(t.yLabel=&quot;yLabel&quot;in t?t.yLabel:g.hoverLabelText(t.ya,t.yLabelVal),t.yVal=t.ya.c2d(t.yLabelVal)),void 0!==t.zLabelVal&amp;&amp;void 0===t.zLabel&amp;&amp;(t.zLabel=String(t.zLabelVal)),!(isNaN(t.xerr)||&quot;log&quot;===t.xa.type&amp;&amp;t.xerr&lt;=0)){var f=g.tickText(t.xa,t.xa.c2l(t.xerr),&quot;hover&quot;).text;void 0!==t.xerrneg?t.xLabel+=&quot; +&quot;+f+&quot; / -&quot;+g.tickText(t.xa,t.xa.c2l(t.xerrneg),&quot;hover&quot;).text:t.xLabel+=&quot; \xb1 &quot;+f,&quot;x&quot;===e&amp;&amp;(t.distance+=1)}if(!(isNaN(t.yerr)||&quot;log&quot;===t.ya.type&amp;&amp;t.yerr&lt;=0)){var h=g.tickText(t.ya,t.ya.c2l(t.yerr),&quot;hover&quot;).text;void 0!==t.yerrneg?t.yLabel+=&quot; +&quot;+h+&quot; / -&quot;+g.tickText(t.ya,t.ya.c2l(t.yerrneg),&quot;hover&quot;).text:t.yLabel+=&quot; \xb1 &quot;+h,&quot;y&quot;===e&amp;&amp;(t.distance+=1)}var p=t.hoverinfo||t.trace.hoverinfo;return p&amp;&amp;&quot;all&quot;!==p&amp;&amp;(-1===(p=Array.isArray(p)?p:p.split(&quot;+&quot;)).indexOf(&quot;x&quot;)&amp;&amp;(t.xLabel=void 0),-1===p.indexOf(&quot;y&quot;)&amp;&amp;(t.yLabel=void 0),-1===p.indexOf(&quot;z&quot;)&amp;&amp;(t.zLabel=void 0),-1===p.indexOf(&quot;text&quot;)&amp;&amp;(t.text=void 0),-1===p.indexOf(&quot;name&quot;)&amp;&amp;(t.name=void 0)),t}function O(t,e,r){var n,i,o=r.container,s=r.fullLayout,l=s._size,c=r.event,u=!!e.hLinePoint,f=!!e.vLinePoint;if(o.selectAll(&quot;.spikeline&quot;).remove(),f||u){var d=p.combine(s.plot_bgcolor,s.paper_bgcolor);if(u){var m,v,y=e.hLinePoint;n=y&amp;&amp;y.xa,&quot;cursor&quot;===(i=y&amp;&amp;y.ya).spikesnap?(m=c.pointerX,v=c.pointerY):(m=n._offset+y.x,v=i._offset+y.y);var x,b,_=a.readability(y.color,d)&lt;1.5?p.contrast(d):y.color,w=i.spikemode,T=i.spikethickness,k=i.spikecolor||_,M=g.getPxPosition(t,i);if(-1!==w.indexOf(&quot;toaxis&quot;)||-1!==w.indexOf(&quot;across&quot;)){if(-1!==w.indexOf(&quot;toaxis&quot;)&amp;&amp;(x=M,b=m),-1!==w.indexOf(&quot;across&quot;)){var A=i._counterDomainMin,S=i._counterDomainMax;&quot;free&quot;===i.anchor&amp;&amp;(A=Math.min(A,i.position),S=Math.max(S,i.position)),x=l.l+A*l.w,b=l.l+S*l.w}o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:x,x2:b,y1:v,y2:v,&quot;stroke-width&quot;:T,stroke:k,&quot;stroke-dasharray&quot;:h.dashStyle(i.spikedash,T)}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0),o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:x,x2:b,y1:v,y2:v,&quot;stroke-width&quot;:T+2,stroke:d}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0)}-1!==w.indexOf(&quot;marker&quot;)&amp;&amp;o.insert(&quot;circle&quot;,&quot;:first-child&quot;).attr({cx:M+(&quot;right&quot;!==i.side?T:-T),cy:v,r:T,fill:k}).classed(&quot;spikeline&quot;,!0)}if(f){var E,C,L=e.vLinePoint;n=L&amp;&amp;L.xa,i=L&amp;&amp;L.ya,&quot;cursor&quot;===n.spikesnap?(E=c.pointerX,C=c.pointerY):(E=n._offset+L.x,C=i._offset+L.y);var I,P,z=a.readability(L.color,d)&lt;1.5?p.contrast(d):L.color,O=n.spikemode,D=n.spikethickness,R=n.spikecolor||z,F=g.getPxPosition(t,n);if(-1!==O.indexOf(&quot;toaxis&quot;)||-1!==O.indexOf(&quot;across&quot;)){if(-1!==O.indexOf(&quot;toaxis&quot;)&amp;&amp;(I=F,P=C),-1!==O.indexOf(&quot;across&quot;)){var B=n._counterDomainMin,N=n._counterDomainMax;&quot;free&quot;===n.anchor&amp;&amp;(B=Math.min(B,n.position),N=Math.max(N,n.position)),I=l.t+(1-N)*l.h,P=l.t+(1-B)*l.h}o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:E,x2:E,y1:I,y2:P,&quot;stroke-width&quot;:D,stroke:R,&quot;stroke-dasharray&quot;:h.dashStyle(n.spikedash,D)}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0),o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:E,x2:E,y1:I,y2:P,&quot;stroke-width&quot;:D+2,stroke:d}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0)}-1!==O.indexOf(&quot;marker&quot;)&amp;&amp;o.insert(&quot;circle&quot;,&quot;:first-child&quot;).attr({cx:E,cy:F-(&quot;top&quot;!==n.side?D:-D),r:D,fill:R}).classed(&quot;spikeline&quot;,!0)}}}function D(t,e){return!e||(e.vLinePoint!==t._spikepoints.vLinePoint||e.hLinePoint!==t._spikepoints.hLinePoint)}function R(t,e){return u.plainText(t||&quot;&quot;,{len:e,allowedTags:[&quot;br&quot;,&quot;sub&quot;,&quot;sup&quot;,&quot;b&quot;,&quot;i&quot;,&quot;em&quot;]})}},{&quot;../../lib&quot;:778,&quot;../../lib/events&quot;:767,&quot;../../lib/override_cursor&quot;:789,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../legend/defaults&quot;:695,&quot;../legend/draw&quot;:696,&quot;./constants&quot;:677,&quot;./helpers&quot;:679,d3:169,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],681:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;./helpers&quot;).isUnifiedHover;e.exports=function(t,e,r,o){function s(t){o.font[t]||(o.font[t]=e.legend?e.legend.font[t]:e.font[t])}o=o||{},e&amp;&amp;a(e.hovermode)&amp;&amp;(o.font||(o.font={}),s(&quot;size&quot;),s(&quot;family&quot;),s(&quot;color&quot;),e.legend?(o.bgcolor||(o.bgcolor=i.combine(e.legend.bgcolor,e.paper_bgcolor)),o.bordercolor||(o.bordercolor=e.legend.bordercolor)):o.bgcolor||(o.bgcolor=e.paper_bgcolor)),r(&quot;hoverlabel.bgcolor&quot;,o.bgcolor),r(&quot;hoverlabel.bordercolor&quot;,o.bordercolor),r(&quot;hoverlabel.namelength&quot;,o.namelength),n.coerceFont(r,&quot;hoverlabel.font&quot;,o.font),r(&quot;hoverlabel.align&quot;,o.align)}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;./helpers&quot;:679}],682:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){function a(r,a){return void 0!==e[r]?e[r]:n.coerce(t,e,i,r,a)}var o,s=a(&quot;clickmode&quot;);return e._has(&quot;cartesian&quot;)?s.indexOf(&quot;select&quot;)&gt;-1?o=&quot;closest&quot;:(e._isHoriz=function(t,e){for(var r=e._scatterStackOpts||{},n=0;n&lt;t.length;n++){var i=t[n],a=i.xaxis+i.yaxis,o=(r[a]||{})[i.stackgroup]||{};if(&quot;h&quot;!==i.orientation&amp;&amp;&quot;h&quot;!==o.orientation)return!1}return!0}(r,e),o=e._isHoriz?&quot;y&quot;:&quot;x&quot;):o=&quot;closest&quot;,a(&quot;hovermode&quot;,o)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:684}],683:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../dragelement&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;./layout_attributes&quot;),l=t(&quot;./hover&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;fx&quot;,constants:t(&quot;./constants&quot;),schema:{layout:s},attributes:t(&quot;./attributes&quot;),layoutAttributes:s,supplyLayoutGlobalDefaults:t(&quot;./layout_global_defaults&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(t,e,r){return i.castOption(t,e,&quot;hoverlabel.&quot;+r)},castHoverinfo:function(t,e,r){return i.castOption(t,r,&quot;hoverinfo&quot;,(function(r){return i.coerceHoverinfo({hoverinfo:r},{_module:t._module},e)}))},hover:l.hover,unhover:a.unhover,loneHover:l.loneHover,loneUnhover:function(t){var e=i.isD3Selection(t)?t:n.select(t);e.selectAll(&quot;g.hovertext&quot;).remove(),e.selectAll(&quot;.spikeline&quot;).remove()},click:t(&quot;./click&quot;)}},{&quot;../../lib&quot;:778,&quot;../dragelement&quot;:662,&quot;./attributes&quot;:674,&quot;./calc&quot;:675,&quot;./click&quot;:676,&quot;./constants&quot;:677,&quot;./defaults&quot;:678,&quot;./helpers&quot;:679,&quot;./hover&quot;:680,&quot;./layout_attributes&quot;:684,&quot;./layout_defaults&quot;:685,&quot;./layout_global_defaults&quot;:686,d3:169}],684:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../plots/font_attributes&quot;)({editType:&quot;none&quot;});i.family.dflt=n.HOVERFONT,i.size.dflt=n.HOVERFONTSIZE,e.exports={clickmode:{valType:&quot;flaglist&quot;,flags:[&quot;event&quot;,&quot;select&quot;],dflt:&quot;event&quot;,editType:&quot;plot&quot;,extras:[&quot;none&quot;]},dragmode:{valType:&quot;enumerated&quot;,values:[&quot;zoom&quot;,&quot;pan&quot;,&quot;select&quot;,&quot;lasso&quot;,&quot;drawclosedpath&quot;,&quot;drawopenpath&quot;,&quot;drawline&quot;,&quot;drawrect&quot;,&quot;drawcircle&quot;,&quot;orbit&quot;,&quot;turntable&quot;,!1],dflt:&quot;zoom&quot;,editType:&quot;modebar&quot;},hovermode:{valType:&quot;enumerated&quot;,values:[&quot;x&quot;,&quot;y&quot;,&quot;closest&quot;,!1,&quot;x unified&quot;,&quot;y unified&quot;],editType:&quot;modebar&quot;},hoverdistance:{valType:&quot;integer&quot;,min:-1,dflt:20,editType:&quot;none&quot;},spikedistance:{valType:&quot;integer&quot;,min:-1,dflt:20,editType:&quot;none&quot;},hoverlabel:{bgcolor:{valType:&quot;color&quot;,editType:&quot;none&quot;},bordercolor:{valType:&quot;color&quot;,editType:&quot;none&quot;},font:i,align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;right&quot;,&quot;auto&quot;],dflt:&quot;auto&quot;,editType:&quot;none&quot;},namelength:{valType:&quot;integer&quot;,min:-1,dflt:15,editType:&quot;none&quot;},editType:&quot;none&quot;},selectdirection:{valType:&quot;enumerated&quot;,values:[&quot;h&quot;,&quot;v&quot;,&quot;d&quot;,&quot;any&quot;],dflt:&quot;any&quot;,editType:&quot;none&quot;}}},{&quot;../../plots/font_attributes&quot;:856,&quot;./constants&quot;:677}],685:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./helpers&quot;).isUnifiedHover,a=t(&quot;./layout_attributes&quot;),o=t(&quot;./hovermode_defaults&quot;),s=t(&quot;./hoverlabel_defaults&quot;);e.exports=function(t,e,r){function l(r,i){return n.coerce(t,e,a,r,i)}var c=o(t,e,r);c&amp;&amp;(l(&quot;hoverdistance&quot;),l(&quot;spikedistance&quot;,i(c)?-1:void 0)),&quot;select&quot;===l(&quot;dragmode&quot;)&amp;&amp;l(&quot;selectdirection&quot;);var u=e._has(&quot;mapbox&quot;),f=e._has(&quot;geo&quot;),h=e._basePlotModules.length;&quot;zoom&quot;===e.dragmode&amp;&amp;((u||f)&amp;&amp;1===h||u&amp;&amp;f&amp;&amp;2===h)&amp;&amp;(e.dragmode=&quot;pan&quot;),s(t,e,l)}},{&quot;../../lib&quot;:778,&quot;./helpers&quot;:679,&quot;./hoverlabel_defaults&quot;:681,&quot;./hovermode_defaults&quot;:682,&quot;./layout_attributes&quot;:684}],686:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./hoverlabel_defaults&quot;),a=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){i(t,e,(function(r,i){return n.coerce(t,e,a,r,i)}))}},{&quot;../../lib&quot;:778,&quot;./hoverlabel_defaults&quot;:681,&quot;./layout_attributes&quot;:684}],687:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/regex&quot;).counter,a=t(&quot;../../plots/domain&quot;).attributes,o=t(&quot;../../plots/cartesian/constants&quot;).idRegex,s=t(&quot;../../plot_api/plot_template&quot;),l={rows:{valType:&quot;integer&quot;,min:1,editType:&quot;plot&quot;},roworder:{valType:&quot;enumerated&quot;,values:[&quot;top to bottom&quot;,&quot;bottom to top&quot;],dflt:&quot;top to bottom&quot;,editType:&quot;plot&quot;},columns:{valType:&quot;integer&quot;,min:1,editType:&quot;plot&quot;},subplots:{valType:&quot;info_array&quot;,freeLength:!0,dimensions:2,items:{valType:&quot;enumerated&quot;,values:[i(&quot;xy&quot;).toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},xaxes:{valType:&quot;info_array&quot;,freeLength:!0,items:{valType:&quot;enumerated&quot;,values:[o.x.toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},yaxes:{valType:&quot;info_array&quot;,freeLength:!0,items:{valType:&quot;enumerated&quot;,values:[o.y.toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},pattern:{valType:&quot;enumerated&quot;,values:[&quot;independent&quot;,&quot;coupled&quot;],dflt:&quot;coupled&quot;,editType:&quot;plot&quot;},xgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},ygap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},domain:a({name:&quot;grid&quot;,editType:&quot;plot&quot;,noGridCell:!0},{}),xside:{valType:&quot;enumerated&quot;,values:[&quot;bottom&quot;,&quot;bottom plot&quot;,&quot;top plot&quot;,&quot;top&quot;],dflt:&quot;bottom plot&quot;,editType:&quot;plot&quot;},yside:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;left plot&quot;,&quot;right plot&quot;,&quot;right&quot;],dflt:&quot;left plot&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;};function c(t,e,r){var n=e[r+&quot;axes&quot;],i=Object.keys((t._splomAxes||{})[r]||{});return Array.isArray(n)?n:i.length?i:void 0}function u(t,e,r,n,i,a){var o=e(t+&quot;gap&quot;,r),s=e(&quot;domain.&quot;+t);e(t+&quot;side&quot;,n);for(var l=new Array(i),c=s[0],u=(s[1]-c)/(i-o),f=u*(1-o),h=0;h&lt;i;h++){var p=c+u*h;l[a?i-1-h:h]=[p,p+f]}return l}function f(t,e,r,n,i){var a,o=new Array(r);function s(t,r){-1!==e.indexOf(r)&amp;&amp;void 0===n[r]?(o[t]=r,n[r]=t):o[t]=&quot;&quot;}if(Array.isArray(t))for(a=0;a&lt;r;a++)s(a,t[a]);else for(s(0,i),a=1;a&lt;r;a++)s(a,i+(a+1));return o}e.exports={moduleType:&quot;component&quot;,name:&quot;grid&quot;,schema:{layout:{grid:l}},layoutAttributes:l,sizeDefaults:function(t,e){var r=t.grid||{},i=c(e,r,&quot;x&quot;),a=c(e,r,&quot;y&quot;);if(t.grid||i||a){var o,f,h=Array.isArray(r.subplots)&amp;&amp;Array.isArray(r.subplots[0]),p=Array.isArray(i),d=Array.isArray(a),g=p&amp;&amp;i!==r.xaxes&amp;&amp;d&amp;&amp;a!==r.yaxes;h?(o=r.subplots.length,f=r.subplots[0].length):(d&amp;&amp;(o=a.length),p&amp;&amp;(f=i.length));var m=s.newContainer(e,&quot;grid&quot;),v=k(&quot;rows&quot;,o),y=k(&quot;columns&quot;,f);if(v*y&gt;1){if(!h&amp;&amp;!p&amp;&amp;!d)&quot;independent&quot;===k(&quot;pattern&quot;)&amp;&amp;(h=!0);m._hasSubplotGrid=h;var x,b,_=&quot;top to bottom&quot;===k(&quot;roworder&quot;),w=h?.2:.1,T=h?.3:.1;g&amp;&amp;e._splomGridDflt&amp;&amp;(x=e._splomGridDflt.xside,b=e._splomGridDflt.yside),m._domains={x:u(&quot;x&quot;,k,w,x,y),y:u(&quot;y&quot;,k,T,b,v,_)}}else delete e.grid}function k(t,e){return n.coerce(r,m,l,t,e)}},contentDefaults:function(t,e){var r=e.grid;if(r&amp;&amp;r._domains){var n,i,a,o,s,l,u,h=t.grid||{},p=e._subplots,d=r._hasSubplotGrid,g=r.rows,m=r.columns,v=&quot;independent&quot;===r.pattern,y=r._axisMap={};if(d){var x=h.subplots||[];l=r.subplots=new Array(g);var b=1;for(n=0;n&lt;g;n++){var _=l[n]=new Array(m),w=x[n]||[];for(i=0;i&lt;m;i++)if(v?(s=1===b?&quot;xy&quot;:&quot;x&quot;+b+&quot;y&quot;+b,b++):s=w[i],_[i]=&quot;&quot;,-1!==p.cartesian.indexOf(s)){if(u=s.indexOf(&quot;y&quot;),a=s.slice(0,u),o=s.slice(u),void 0!==y[a]&amp;&amp;y[a]!==i||void 0!==y[o]&amp;&amp;y[o]!==n)continue;_[i]=s,y[a]=i,y[o]=n}}}else{var T=c(e,h,&quot;x&quot;),k=c(e,h,&quot;y&quot;);r.xaxes=f(T,p.xaxis,m,y,&quot;x&quot;),r.yaxes=f(k,p.yaxis,g,y,&quot;y&quot;)}var M=r._anchors={},A=&quot;top to bottom&quot;===r.roworder;for(var S in y){var E,C,L,I=S.charAt(0),P=r[I+&quot;side&quot;];if(P.length&lt;8)M[S]=&quot;free&quot;;else if(&quot;x&quot;===I){if(&quot;t&quot;===P.charAt(0)===A?(E=0,C=1,L=g):(E=g-1,C=-1,L=-1),d){var z=y[S];for(n=E;n!==L;n+=C)if((s=l[n][z])&amp;&amp;(u=s.indexOf(&quot;y&quot;),s.slice(0,u)===S)){M[S]=s.slice(u);break}}else for(n=E;n!==L;n+=C)if(o=r.yaxes[n],-1!==p.cartesian.indexOf(S+o)){M[S]=o;break}}else if(&quot;l&quot;===P.charAt(0)?(E=0,C=1,L=m):(E=m-1,C=-1,L=-1),d){var O=y[S];for(n=E;n!==L;n+=C)if((s=l[O][n])&amp;&amp;(u=s.indexOf(&quot;y&quot;),s.slice(u)===S)){M[S]=s.slice(0,u);break}}else for(n=E;n!==L;n+=C)if(a=r.xaxes[n],-1!==p.cartesian.indexOf(a+S)){M[S]=a;break}}}}}},{&quot;../../lib&quot;:778,&quot;../../lib/regex&quot;:795,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834,&quot;../../plots/domain&quot;:855}],688:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/constants&quot;),i=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=i(&quot;image&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;arraydraw&quot;},source:{valType:&quot;string&quot;,editType:&quot;arraydraw&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;arraydraw&quot;},sizex:{valType:&quot;number&quot;,dflt:0,editType:&quot;arraydraw&quot;},sizey:{valType:&quot;number&quot;,dflt:0,editType:&quot;arraydraw&quot;},sizing:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;contain&quot;,&quot;stretch&quot;],dflt:&quot;contain&quot;,editType:&quot;arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},x:{valType:&quot;any&quot;,dflt:0,editType:&quot;arraydraw&quot;},y:{valType:&quot;any&quot;,dflt:0,editType:&quot;arraydraw&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;arraydraw&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;arraydraw&quot;},xref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,n.idRegex.x.toString()],dflt:&quot;paper&quot;,editType:&quot;arraydraw&quot;},yref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,n.idRegex.y.toString()],dflt:&quot;paper&quot;,editType:&quot;arraydraw&quot;},editType:&quot;arraydraw&quot;})},{&quot;../../constants/axis_placeable_objects&quot;:746,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834}],689:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib/to_log_range&quot;);e.exports=function(t,e,r,a){e=e||{};var o=&quot;log&quot;===r&amp;&amp;&quot;linear&quot;===e.type,s=&quot;linear&quot;===r&amp;&amp;&quot;log&quot;===e.type;if(o||s)for(var l,c,u=t._fullLayout.images,f=e._id.charAt(0),h=0;h&lt;u.length;h++)if(c=&quot;images[&quot;+h+&quot;].&quot;,(l=u[h])[f+&quot;ref&quot;]===e._id){var p=l[f],d=l[&quot;size&quot;+f],g=null,m=null;if(o){g=i(p,e.range);var v=d/Math.pow(10,g)/2;m=2*Math.log(v+Math.sqrt(1+v*v))/Math.LN10}else m=(g=Math.pow(10,p))*(Math.pow(10,d/2)-Math.pow(10,-d/2));n(g)?n(m)||(m=null):(g=null,m=null),a(c+f,g),a(c+&quot;size&quot;+f,m)}}},{&quot;../../lib/to_log_range&quot;:805,&quot;fast-isnumeric&quot;:241}],690:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}var s=a(&quot;source&quot;);if(!a(&quot;visible&quot;,!!s))return e;a(&quot;layer&quot;),a(&quot;xanchor&quot;),a(&quot;yanchor&quot;),a(&quot;sizex&quot;),a(&quot;sizey&quot;),a(&quot;sizing&quot;),a(&quot;opacity&quot;);for(var l={_fullLayout:r},c=[&quot;x&quot;,&quot;y&quot;],u=0;u&lt;2;u++){var f=c[u],h=i.coerceRef(t,e,l,f,&quot;paper&quot;,void 0);if(&quot;paper&quot;!==h)i.getFromId(l,h)._imgIndices.push(e._index);i.coercePosition(e,l,a,h,f,0)}return e}e.exports=function(t,e){a(t,e,{name:&quot;images&quot;,handleItemDefaults:s})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:688}],691:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../drawing&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/axis_ids&quot;),s=t(&quot;../../constants/xmlns_namespaces&quot;);e.exports=function(t){var e,r,l=t._fullLayout,c=[],u={},f=[];for(r=0;r&lt;l.images.length;r++){var h=l.images[r];if(h.visible)if(&quot;below&quot;===h.layer&amp;&amp;&quot;paper&quot;!==h.xref&amp;&amp;&quot;paper&quot;!==h.yref){e=o.ref2id(h.xref)+o.ref2id(h.yref);var p=l._plots[e];if(!p){f.push(h);continue}p.mainplot&amp;&amp;(e=p.mainplot.id),u[e]||(u[e]=[]),u[e].push(h)}else&quot;above&quot;===h.layer?c.push(h):f.push(h)}var d={left:{sizing:&quot;xMin&quot;,offset:0},center:{sizing:&quot;xMid&quot;,offset:-.5},right:{sizing:&quot;xMax&quot;,offset:-1}},g={top:{sizing:&quot;YMin&quot;,offset:0},middle:{sizing:&quot;YMid&quot;,offset:-.5},bottom:{sizing:&quot;YMax&quot;,offset:-1}};function m(e){var r=n.select(this);if(this._imgSrc!==e.source)if(r.attr(&quot;xmlns&quot;,s.svg),e.source&amp;&amp;&quot;data:&quot;===e.source.slice(0,5))r.attr(&quot;xlink:href&quot;,e.source),this._imgSrc=e.source;else{var i=new Promise(function(t){var n=new Image;function i(){r.remove(),t()}this.img=n,n.setAttribute(&quot;crossOrigin&quot;,&quot;anonymous&quot;),n.onerror=i,n.onload=function(){var e=document.createElement(&quot;canvas&quot;);e.width=this.width,e.height=this.height,e.getContext(&quot;2d&quot;).drawImage(this,0,0);var n=e.toDataURL(&quot;image/png&quot;);r.attr(&quot;xlink:href&quot;,n),t()},r.on(&quot;error&quot;,i),n.src=e.source,this._imgSrc=e.source}.bind(this));t._promises.push(i)}}function v(e){var r,o,s=n.select(this),c=a.getFromId(t,e.xref),u=a.getFromId(t,e.yref),f=&quot;domain&quot;===a.getRefType(e.xref),h=&quot;domain&quot;===a.getRefType(e.yref),p=l._size;r=void 0!==c?&quot;string&quot;==typeof e.xref&amp;&amp;f?c._length*e.sizex:Math.abs(c.l2p(e.sizex)-c.l2p(0)):e.sizex*p.w,o=void 0!==u?&quot;string&quot;==typeof e.yref&amp;&amp;h?u._length*e.sizey:Math.abs(u.l2p(e.sizey)-u.l2p(0)):e.sizey*p.h;var m,v,y=r*d[e.xanchor].offset,x=o*g[e.yanchor].offset,b=d[e.xanchor].sizing+g[e.yanchor].sizing;switch(m=void 0!==c?&quot;string&quot;==typeof e.xref&amp;&amp;f?c._length*e.x+c._offset:c.r2p(e.x)+c._offset:e.x*p.w+p.l,m+=y,v=void 0!==u?&quot;string&quot;==typeof e.yref&amp;&amp;h?u._length*(1-e.y)+u._offset:u.r2p(e.y)+u._offset:p.h-e.y*p.h+p.t,v+=x,e.sizing){case&quot;fill&quot;:b+=&quot; slice&quot;;break;case&quot;stretch&quot;:b=&quot;none&quot;}s.attr({x:m,y:v,width:r,height:o,preserveAspectRatio:b,opacity:e.opacity});var _=(c&amp;&amp;&quot;domain&quot;!==a.getRefType(e.xref)?c._id:&quot;&quot;)+(u&amp;&amp;&quot;domain&quot;!==a.getRefType(e.yref)?u._id:&quot;&quot;);i.setClipUrl(s,_?&quot;clip&quot;+l._uid+_:null,t)}var y=l._imageLowerLayer.selectAll(&quot;image&quot;).data(f),x=l._imageUpperLayer.selectAll(&quot;image&quot;).data(c);y.enter().append(&quot;image&quot;),x.enter().append(&quot;image&quot;),y.exit().remove(),x.exit().remove(),y.each((function(t){m.bind(this)(t),v.bind(this)(t)})),x.each((function(t){m.bind(this)(t),v.bind(this)(t)}));var b=Object.keys(l._plots);for(r=0;r&lt;b.length;r++){e=b[r];var _=l._plots[e];if(_.imagelayer){var w=_.imagelayer.selectAll(&quot;image&quot;).data(u[e]||[]);w.enter().append(&quot;image&quot;),w.exit().remove(),w.each((function(t){m.bind(this)(t),v.bind(this)(t)}))}}}},{&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../drawing&quot;:665,d3:169}],692:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;images&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;images&quot;),draw:t(&quot;./draw&quot;),convertCoords:t(&quot;./convert_coords&quot;)}},{&quot;../../plots/cartesian/include_components&quot;:840,&quot;./attributes&quot;:688,&quot;./convert_coords&quot;:689,&quot;./defaults&quot;:690,&quot;./draw&quot;:691}],693:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;);e.exports={bgcolor:{valType:&quot;color&quot;,editType:&quot;legend&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;legend&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;legend&quot;},font:n({editType:&quot;legend&quot;}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;v&quot;,editType:&quot;legend&quot;},traceorder:{valType:&quot;flaglist&quot;,flags:[&quot;reversed&quot;,&quot;grouped&quot;],extras:[&quot;normal&quot;],editType:&quot;legend&quot;},tracegroupgap:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;legend&quot;},itemsizing:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;constant&quot;],dflt:&quot;trace&quot;,editType:&quot;legend&quot;},itemwidth:{valType:&quot;number&quot;,min:30,dflt:30,editType:&quot;legend&quot;},itemclick:{valType:&quot;enumerated&quot;,values:[&quot;toggle&quot;,&quot;toggleothers&quot;,!1],dflt:&quot;toggle&quot;,editType:&quot;legend&quot;},itemdoubleclick:{valType:&quot;enumerated&quot;,values:[&quot;toggle&quot;,&quot;toggleothers&quot;,!1],dflt:&quot;toggleothers&quot;,editType:&quot;legend&quot;},x:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;legend&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;legend&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;legend&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;legend&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},valign:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;,editType:&quot;legend&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;legend&quot;},font:n({editType:&quot;legend&quot;}),side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;left&quot;,&quot;top left&quot;],editType:&quot;legend&quot;},editType:&quot;legend&quot;},editType:&quot;legend&quot;}},{&quot;../../plots/font_attributes&quot;:856,&quot;../color/attributes&quot;:642}],694:[function(t,e,r){&quot;use strict&quot;;e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:&quot;#808BA4&quot;,scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},{}],695:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../../plots/layout_attributes&quot;),l=t(&quot;./helpers&quot;);e.exports=function(t,e,r){for(var c=t.legend||{},u=0,f=!1,h=&quot;normal&quot;,p=0;p&lt;r.length;p++){var d=r[p];d.visible&amp;&amp;((d.showlegend||d._dfltShowLegend&amp;&amp;!(d._module&amp;&amp;d._module.attributes&amp;&amp;d._module.attributes.showlegend&amp;&amp;!1===d._module.attributes.showlegend.dflt))&amp;&amp;(u++,d.showlegend&amp;&amp;(f=!0,(n.traceIs(d,&quot;pie-like&quot;)||!0===d._input.showlegend)&amp;&amp;u++)),(n.traceIs(d,&quot;bar&quot;)&amp;&amp;&quot;stack&quot;===e.barmode||-1!==[&quot;tonextx&quot;,&quot;tonexty&quot;].indexOf(d.fill))&amp;&amp;(h=l.isGrouped({traceorder:h})?&quot;grouped+reversed&quot;:&quot;reversed&quot;),void 0!==d.legendgroup&amp;&amp;&quot;&quot;!==d.legendgroup&amp;&amp;(h=l.isReversed({traceorder:h})?&quot;reversed+grouped&quot;:&quot;grouped&quot;))}var g=i.coerce(t,e,s,&quot;showlegend&quot;,f&amp;&amp;u&gt;1);if(!1!==g||c.uirevision){var m=a.newContainer(e,&quot;legend&quot;);if(_(&quot;uirevision&quot;,e.uirevision),!1!==g){_(&quot;bgcolor&quot;,e.paper_bgcolor),_(&quot;bordercolor&quot;),_(&quot;borderwidth&quot;),i.coerceFont(_,&quot;font&quot;,e.font);var v,y,x,b=_(&quot;orientation&quot;);&quot;h&quot;===b?(v=0,n.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(t.xaxis)?(y=1.1,x=&quot;bottom&quot;):(y=-.1,x=&quot;top&quot;)):(v=1.02,y=1,x=&quot;auto&quot;),_(&quot;traceorder&quot;,h),l.isGrouped(e.legend)&amp;&amp;_(&quot;tracegroupgap&quot;),_(&quot;itemsizing&quot;),_(&quot;itemwidth&quot;),_(&quot;itemclick&quot;),_(&quot;itemdoubleclick&quot;),_(&quot;x&quot;,v),_(&quot;xanchor&quot;),_(&quot;y&quot;,y),_(&quot;yanchor&quot;,x),_(&quot;valign&quot;),i.noneOrAll(c,m,[&quot;x&quot;,&quot;y&quot;]),_(&quot;title.text&quot;)&amp;&amp;(_(&quot;title.side&quot;,&quot;h&quot;===b?&quot;left&quot;:&quot;top&quot;),i.coerceFont(_,&quot;title.font&quot;,e.font))}}function _(t,e){return i.coerce(c,m,o,t,e)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/layout_attributes&quot;:882,&quot;../../registry&quot;:911,&quot;./attributes&quot;:693,&quot;./helpers&quot;:699}],696:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib/events&quot;),l=t(&quot;../dragelement&quot;),c=t(&quot;../drawing&quot;),u=t(&quot;../color&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;./handle_click&quot;),p=t(&quot;./constants&quot;),d=t(&quot;../../constants/alignment&quot;),g=d.LINE_SPACING,m=d.FROM_TL,v=d.FROM_BR,y=t(&quot;./get_legend_data&quot;),x=t(&quot;./style&quot;),b=t(&quot;./helpers&quot;);function _(t,e,r,n,i){var a=r.data()[0][0].trace,l={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a._expandedIndex,data:t.data,layout:t.layout,frames:t._transitionData._frames,config:t._context,fullData:t._fullData,fullLayout:t._fullLayout};if(a._group&amp;&amp;(l.group=a._group),o.traceIs(a,&quot;pie-like&quot;)&amp;&amp;(l.label=r.datum()[0].label),!1!==s.triggerHandler(t,&quot;plotly_legendclick&quot;,l))if(1===n)e._clickTimeout=setTimeout((function(){h(r,t,n)}),t._context.doubleClickDelay);else if(2===n){e._clickTimeout&amp;&amp;clearTimeout(e._clickTimeout),t._legendMouseDownTime=0,!1!==s.triggerHandler(t,&quot;plotly_legenddoubleclick&quot;,l)&amp;&amp;h(r,t,n)}}function w(t,e,r){var n,a=t.data()[0][0],s=a.trace,l=o.traceIs(s,&quot;pie-like&quot;),u=s.index,h=r._main&amp;&amp;e._context.edits.legendText&amp;&amp;!l,d=r._maxNameLength;r.entries?n=a.text:(n=l?a.label:s.name,s._meta&amp;&amp;(n=i.templateString(n,s._meta)));var g=i.ensureSingle(t,&quot;text&quot;,&quot;legendtext&quot;);g.attr(&quot;text-anchor&quot;,&quot;start&quot;).call(c.font,r.font).text(h?T(n,d):n);var m=r.itemwidth+2*p.itemGap;f.positionText(g,m,0),h?g.call(f.makeEditable,{gd:e,text:n}).call(M,t,e,r).on(&quot;edit&quot;,(function(n){this.text(T(n,d)).call(M,t,e,r);var s=a.trace._fullInput||{},l={};if(o.hasTransform(s,&quot;groupby&quot;)){var c=o.getTransformIndices(s,&quot;groupby&quot;),f=c[c.length-1],h=i.keyedContainer(s,&quot;transforms[&quot;+f+&quot;].styles&quot;,&quot;target&quot;,&quot;value.name&quot;);h.set(a.trace._group,n),l=h.constructUpdate()}else l.name=n;return o.call(&quot;_guiRestyle&quot;,e,l,u)})):M(g,t,e,r)}function T(t,e){var r=Math.max(4,e);if(t&amp;&amp;t.trim().length&gt;=r/2)return t;for(var n=r-(t=t||&quot;&quot;).length;n&gt;0;n--)t+=&quot; &quot;;return t}function k(t,e){var r,a=e._context.doubleClickDelay,o=1,s=i.ensureSingle(t,&quot;rect&quot;,&quot;legendtoggle&quot;,(function(t){e._context.staticPlot||t.style(&quot;cursor&quot;,&quot;pointer&quot;).attr(&quot;pointer-events&quot;,&quot;all&quot;),t.call(u.fill,&quot;rgba(0,0,0,0)&quot;)}));e._context.staticPlot||(s.on(&quot;mousedown&quot;,(function(){(r=(new Date).getTime())-e._legendMouseDownTime&lt;a?o+=1:(o=1,e._legendMouseDownTime=r)})),s.on(&quot;mouseup&quot;,(function(){if(!e._dragged&amp;&amp;!e._editing){var r=e._fullLayout.legend;(new Date).getTime()-e._legendMouseDownTime&gt;a&amp;&amp;(o=Math.max(o-1,1)),_(e,r,t,o,n.event)}})))}function M(t,e,r,n){n._main||t.attr(&quot;data-notex&quot;,!0),f.convertToTspans(t,r,(function(){!function(t,e,r){var n=t.data()[0][0];if(r._main&amp;&amp;n&amp;&amp;!n.trace.showlegend)return void t.remove();var i=t.select(&quot;g[class*=math-group]&quot;),a=i.node();r||(r=e._fullLayout.legend);var o,s,l=r.borderwidth,u=(n?r:r.title).font.size*g;if(a){var h=c.bBox(a);o=h.height,s=h.width,n?c.setTranslate(i,0,.25*o):c.setTranslate(i,l,.75*o+l)}else{var d=t.select(n?&quot;.legendtext&quot;:&quot;.legendtitletext&quot;),m=f.lineCount(d),v=d.node();o=u*m,s=v?c.bBox(v).width:0;var y=u*((m-1)/2-.3);if(n){var x=r.itemwidth+2*p.itemGap;f.positionText(d,x,-y)}else f.positionText(d,p.titlePad+l,u+l)}n?(n.lineHeight=u,n.height=Math.max(o,16)+3,n.width=s):(r._titleWidth=s,r._titleHeight=o)}(e,r,n)}))}function A(t){return i.isRightAnchor(t)?&quot;right&quot;:i.isCenterAnchor(t)?&quot;center&quot;:&quot;left&quot;}function S(t){return i.isBottomAnchor(t)?&quot;bottom&quot;:i.isMiddleAnchor(t)?&quot;middle&quot;:&quot;top&quot;}e.exports=function(t,e){var r,s=t._fullLayout,f=&quot;legend&quot;+s._uid;if(e?(r=e.layer,f+=&quot;-hover&quot;):((e=s.legend||{})._main=!0,r=s._infolayer),r){var h;if(t._legendMouseDownTime||(t._legendMouseDownTime=0),e._main){if(!t.calcdata)return;h=s.showlegend&amp;&amp;y(t.calcdata,e)}else{if(!e.entries)return;h=y(e.entries,e)}var d=s.hiddenlabels||[];if(e._main&amp;&amp;(!s.showlegend||!h.length))return r.selectAll(&quot;.legend&quot;).remove(),s._topdefs.select(&quot;#&quot;+f).remove(),a.autoMargin(t,&quot;legend&quot;);var g=i.ensureSingle(r,&quot;g&quot;,&quot;legend&quot;,(function(t){e._main&amp;&amp;t.attr(&quot;pointer-events&quot;,&quot;all&quot;)})),T=i.ensureSingleById(s._topdefs,&quot;clipPath&quot;,f,(function(t){t.append(&quot;rect&quot;)})),E=i.ensureSingle(g,&quot;rect&quot;,&quot;bg&quot;,(function(t){t.attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)}));E.call(u.stroke,e.bordercolor).call(u.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;);var C=i.ensureSingle(g,&quot;g&quot;,&quot;scrollbox&quot;),L=e.title;if(e._titleWidth=0,e._titleHeight=0,L.text){var I=i.ensureSingle(C,&quot;text&quot;,&quot;legendtitletext&quot;);I.attr(&quot;text-anchor&quot;,&quot;start&quot;).call(c.font,L.font).text(L.text),M(I,C,t,e)}else C.selectAll(&quot;.legendtitletext&quot;).remove();var P=i.ensureSingle(g,&quot;rect&quot;,&quot;scrollbar&quot;,(function(t){t.attr(p.scrollBarEnterAttrs).call(u.fill,p.scrollBarColor)})),z=C.selectAll(&quot;g.groups&quot;).data(h);z.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;groups&quot;),z.exit().remove();var O=z.selectAll(&quot;g.traces&quot;).data(i.identity);O.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;traces&quot;),O.exit().remove(),O.style(&quot;opacity&quot;,(function(t){var e=t[0].trace;return o.traceIs(e,&quot;pie-like&quot;)?-1!==d.indexOf(t[0].label)?.5:1:&quot;legendonly&quot;===e.visible?.5:1})).each((function(){n.select(this).call(w,t,e)})).call(x,t,e).each((function(){e._main&amp;&amp;n.select(this).call(k,t)})),i.syncOrAsync([a.previousPromises,function(){return function(t,e,r,i){var a=t._fullLayout;i||(i=a.legend);var o=a._size,s=b.isVertical(i),l=b.isGrouped(i),u=i.borderwidth,f=2*u,h=p.itemGap,d=i.itemwidth+2*h,g=2*(u+h),m=S(i),v=i.y&lt;0||0===i.y&amp;&amp;&quot;top&quot;===m,y=i.y&gt;1||1===i.y&amp;&amp;&quot;bottom&quot;===m;i._maxHeight=Math.max(v||y?a.height/2:o.h,30);var x=0;i._width=0,i._height=0;var _=function(t){var e=0,r=0,n=t.title.side;n&amp;&amp;(-1!==n.indexOf(&quot;left&quot;)&amp;&amp;(e=t._titleWidth),-1!==n.indexOf(&quot;top&quot;)&amp;&amp;(r=t._titleHeight));return[e,r]}(i);if(s)r.each((function(t){var e=t[0].height;c.setTranslate(this,u+_[0],u+_[1]+i._height+e/2+h),i._height+=e,i._width=Math.max(i._width,t[0].width)})),x=d+i._width,i._width+=h+d+f,i._height+=g,l&amp;&amp;(e.each((function(t,e){c.setTranslate(this,0,e*i.tracegroupgap)})),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var w=A(i),T=i.x&lt;0||0===i.x&amp;&amp;&quot;right&quot;===w,k=i.x&gt;1||1===i.x&amp;&amp;&quot;left&quot;===w,M=y||v,E=a.width/2;i._maxWidth=Math.max(T?M&amp;&amp;&quot;left&quot;===w?o.l+o.w:E:k?M&amp;&amp;&quot;right&quot;===w?o.r+o.w:E:o.w,2*d);var C=0,L=0;r.each((function(t){var e=t[0].width+d;C=Math.max(C,e),L+=e})),x=null;var I=0;if(l){var P=0,z=0,O=0;e.each((function(){var t=0,e=0;n.select(this).selectAll(&quot;g.traces&quot;).each((function(r){var n=r[0].height;c.setTranslate(this,_[0],_[1]+u+h+n/2+e),e+=n,t=Math.max(t,d+r[0].width)})),P=Math.max(P,e);var r=t+h;r+u+z&gt;i._maxWidth&amp;&amp;(I=Math.max(I,z),z=0,O+=P+i.tracegroupgap,P=e),c.setTranslate(this,z,O),z+=r})),i._width=Math.max(I,z)+u,i._height=O+P+g}else{var D=r.size(),R=L+f+(D-1)*h&lt;i._maxWidth,F=0,B=0,N=0,j=0;r.each((function(t){var e=t[0].height,r=d+t[0].width,n=(R?r:C)+h;n+u+B-h&gt;=i._maxWidth&amp;&amp;(I=Math.max(I,j),B=0,N+=F,i._height+=F,F=0),c.setTranslate(this,_[0]+u+B,_[1]+u+N+e/2+h),j=B+r+h,B+=n,F=Math.max(F,e)})),R?(i._width=B+f,i._height=F+g):(i._width=Math.max(I,j)+f,i._height+=F+g)}}i._width=Math.ceil(Math.max(i._width+_[0],i._titleWidth+2*(u+p.titlePad))),i._height=Math.ceil(Math.max(i._height+_[1],i._titleHeight+2*(u+p.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var U=t._context.edits,V=U.legendText||U.legendPosition;r.each((function(t){var e=n.select(this).select(&quot;.legendtoggle&quot;),r=t[0].height,i=V?d:x||d+t[0].width;s||(i+=h/2),c.setRect(e,0,-r/2,i,r)}))}(t,z,O,e)},function(){if(!e._main||!function(t){var e=t._fullLayout.legend,r=A(e),n=S(e);return a.autoMargin(t,&quot;legend&quot;,{x:e.x,y:e.y,l:e._width*m[r],r:e._width*v[r],b:e._effHeight*v[n],t:e._effHeight*m[n]})}(t)){var u,h,d,y,x=s._size,b=e.borderwidth,w=x.l+x.w*e.x-m[A(e)]*e._width,k=x.t+x.h*(1-e.y)-m[S(e)]*e._effHeight;if(e._main&amp;&amp;s.margin.autoexpand){var M=w,L=k;w=i.constrain(w,0,s.width-e._width),k=i.constrain(k,0,s.height-e._effHeight),w!==M&amp;&amp;i.log(&quot;Constrain legend.x to make legend fit inside graph&quot;),k!==L&amp;&amp;i.log(&quot;Constrain legend.y to make legend fit inside graph&quot;)}if(e._main&amp;&amp;c.setTranslate(g,w,k),P.on(&quot;.drag&quot;,null),g.on(&quot;wheel&quot;,null),!e._main||e._height&lt;=e._maxHeight||t._context.staticPlot){var I=e._effHeight;e._main||(I=e._height),E.attr({width:e._width-b,height:I-b,x:b/2,y:b/2}),c.setTranslate(C,0,0),T.select(&quot;rect&quot;).attr({width:e._width-2*b,height:I-2*b,x:b,y:b}),c.setClipUrl(C,f,t),c.setRect(P,0,0,0,0),delete e._scrollY}else{var z,O,D,R=Math.max(p.scrollBarMinHeight,e._effHeight*e._effHeight/e._height),F=e._effHeight-R-2*p.scrollBarMargin,B=e._height-e._effHeight,N=F/B,j=Math.min(e._scrollY||0,B);E.attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-b,x:b/2,y:b/2}),T.select(&quot;rect&quot;).attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-2*b,x:b,y:b+j}),c.setClipUrl(C,f,t),q(j,R,N),g.on(&quot;wheel&quot;,(function(){q(j=i.constrain(e._scrollY+n.event.deltaY/F*B,0,B),R,N),0!==j&amp;&amp;j!==B&amp;&amp;n.event.preventDefault()}));var U=n.behavior.drag().on(&quot;dragstart&quot;,(function(){var t=n.event.sourceEvent;z=&quot;touchstart&quot;===t.type?t.changedTouches[0].clientY:t.clientY,D=j})).on(&quot;drag&quot;,(function(){var t=n.event.sourceEvent;2===t.buttons||t.ctrlKey||(O=&quot;touchmove&quot;===t.type?t.changedTouches[0].clientY:t.clientY,q(j=function(t,e,r){var n=(r-e)/N+t;return i.constrain(n,0,B)}(D,z,O),R,N))}));P.call(U);var V=n.behavior.drag().on(&quot;dragstart&quot;,(function(){var t=n.event.sourceEvent;&quot;touchstart&quot;===t.type&amp;&amp;(z=t.changedTouches[0].clientY,D=j)})).on(&quot;drag&quot;,(function(){var t=n.event.sourceEvent;&quot;touchmove&quot;===t.type&amp;&amp;(O=t.changedTouches[0].clientY,q(j=function(t,e,r){var n=(e-r)/N+t;return i.constrain(n,0,B)}(D,z,O),R,N))}));C.call(V)}if(t._context.edits.legendPosition)g.classed(&quot;cursor-move&quot;,!0),l.init({element:g.node(),gd:t,prepFn:function(){var t=c.getTranslate(g);d=t.x,y=t.y},moveFn:function(t,r){var n=d+t,i=y+r;c.setTranslate(g,n,i),u=l.align(n,0,x.l,x.l+x.w,e.xanchor),h=l.align(i,0,x.t+x.h,x.t,e.yanchor)},doneFn:function(){void 0!==u&amp;&amp;void 0!==h&amp;&amp;o.call(&quot;_guiRelayout&quot;,t,{&quot;legend.x&quot;:u,&quot;legend.y&quot;:h})},clickFn:function(e,n){var i=r.selectAll(&quot;g.traces&quot;).filter((function(){var t=this.getBoundingClientRect();return n.clientX&gt;=t.left&amp;&amp;n.clientX&lt;=t.right&amp;&amp;n.clientY&gt;=t.top&amp;&amp;n.clientY&lt;=t.bottom}));i.size()&gt;0&amp;&amp;_(t,g,i,e,n)}})}function q(r,n,i){e._scrollY=t._fullLayout.legend._scrollY=r,c.setTranslate(C,0,-r),c.setRect(P,e._width,p.scrollBarMargin+r*i,p.scrollBarWidth,n),T.select(&quot;rect&quot;).attr(&quot;y&quot;,b+r)}}],t)}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/events&quot;:767,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;./constants&quot;:694,&quot;./get_legend_data&quot;:697,&quot;./handle_click&quot;:698,&quot;./helpers&quot;:699,&quot;./style&quot;:701,d3:169}],697:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./helpers&quot;);e.exports=function(t,e){var r,a,o={},s=[],l=!1,c={},u=0,f=0,h=e._main;function p(t,r){if(&quot;&quot;!==t&amp;&amp;i.isGrouped(e))-1===s.indexOf(t)?(s.push(t),l=!0,o[t]=[[r]]):o[t].push([r]);else{var n=&quot;~~i&quot;+u;s.push(n),o[n]=[[r]],u++}}for(r=0;r&lt;t.length;r++){var d=t[r],g=d[0],m=g.trace,v=m.legendgroup;if(!h||m.visible&amp;&amp;m.showlegend)if(n.traceIs(m,&quot;pie-like&quot;))for(c[v]||(c[v]={}),a=0;a&lt;d.length;a++){var y=d[a].label;c[v][y]||(p(v,{label:y,color:d[a].color,i:d[a].i,trace:m,pts:d[a].pts}),c[v][y]=!0,f=Math.max(f,(y||&quot;&quot;).length))}else p(v,g),f=Math.max(f,(m.name||&quot;&quot;).length)}if(!s.length)return[];var x,b,_=s.length;if(l&amp;&amp;i.isGrouped(e))for(b=new Array(_),r=0;r&lt;_;r++)x=o[s[r]],b[r]=i.isReversed(e)?x.reverse():x;else{for(b=[new Array(_)],r=0;r&lt;_;r++)x=o[s[r]][0],b[0][i.isReversed(e)?_-r-1:r]=x;_=1}return e._lgroupsLength=_,e._maxNameLength=f,b}},{&quot;../../registry&quot;:911,&quot;./helpers&quot;:699}],698:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=!0;e.exports=function(t,e,r){var o=e._fullLayout;if(!e._dragged&amp;&amp;!e._editing){var s,l=o.legend.itemclick,c=o.legend.itemdoubleclick;if(1===r&amp;&amp;&quot;toggle&quot;===l&amp;&amp;&quot;toggleothers&quot;===c&amp;&amp;a&amp;&amp;e.data&amp;&amp;e._context.showTips?(n.notifier(n._(e,&quot;Double-click on legend to isolate one trace&quot;),&quot;long&quot;),a=!1):a=!1,1===r?s=l:2===r&amp;&amp;(s=c),s){var u,f,h,p,d,g=o.hiddenlabels?o.hiddenlabels.slice():[],m=t.data()[0][0],v=e._fullData,y=m.trace,x=y.legendgroup,b={},_=[],w=[],T=[];if(i.traceIs(y,&quot;pie-like&quot;)){var k=m.label,M=g.indexOf(k);&quot;toggle&quot;===s?-1===M?g.push(k):g.splice(M,1):&quot;toggleothers&quot;===s&amp;&amp;(g=[],e.calcdata[0].forEach((function(t){k!==t.label&amp;&amp;g.push(t.label)})),e._fullLayout.hiddenlabels&amp;&amp;e._fullLayout.hiddenlabels.length===g.length&amp;&amp;-1===M&amp;&amp;(g=[])),i.call(&quot;_guiRelayout&quot;,e,&quot;hiddenlabels&quot;,g)}else{var A,S=x&amp;&amp;x.length,E=[];if(S)for(u=0;u&lt;v.length;u++)(A=v[u]).visible&amp;&amp;A.legendgroup===x&amp;&amp;E.push(u);if(&quot;toggle&quot;===s){var C;switch(y.visible){case!0:C=&quot;legendonly&quot;;break;case!1:C=!1;break;case&quot;legendonly&quot;:C=!0}if(S)for(u=0;u&lt;v.length;u++)!1!==v[u].visible&amp;&amp;v[u].legendgroup===x&amp;&amp;B(v[u],C);else B(y,C)}else if(&quot;toggleothers&quot;===s){var L,I,P,z,O=!0;for(u=0;u&lt;v.length;u++)if(L=v[u]===y,P=!0!==v[u].showlegend,!(L||P||(I=S&amp;&amp;v[u].legendgroup===x)||!0!==v[u].visible||i.traceIs(v[u],&quot;notLegendIsolatable&quot;))){O=!1;break}for(u=0;u&lt;v.length;u++)if(!1!==v[u].visible&amp;&amp;!i.traceIs(v[u],&quot;notLegendIsolatable&quot;))switch(y.visible){case&quot;legendonly&quot;:B(v[u],!0);break;case!0:z=!!O||&quot;legendonly&quot;,L=v[u]===y,P=!0!==v[u].showlegend&amp;&amp;!v[u].legendgroup,I=L||S&amp;&amp;v[u].legendgroup===x,B(v[u],!(!I&amp;&amp;!P)||z)}}for(u=0;u&lt;w.length;u++)if(h=w[u]){var D=h.constructUpdate(),R=Object.keys(D);for(f=0;f&lt;R.length;f++)p=R[f],(b[p]=b[p]||[])[T[u]]=D[p]}for(d=Object.keys(b),u=0;u&lt;d.length;u++)for(p=d[u],f=0;f&lt;_.length;f++)b[p].hasOwnProperty(f)||(b[p][f]=void 0);i.call(&quot;_guiRestyle&quot;,e,b,_)}}}function F(t,e,r){var n=_.indexOf(t),i=b[e];return i||(i=b[e]=[]),-1===_.indexOf(t)&amp;&amp;(_.push(t),n=_.length-1),i[n]=r,n}function B(t,e){var r=t._fullInput;if(i.hasTransform(r,&quot;groupby&quot;)){var a=w[r.index];if(!a){var o=i.getTransformIndices(r,&quot;groupby&quot;),s=o[o.length-1];a=n.keyedContainer(r,&quot;transforms[&quot;+s+&quot;].styles&quot;,&quot;target&quot;,&quot;value.visible&quot;),w[r.index]=a}var l=a.get(t._group);void 0===l&amp;&amp;(l=!0),!1!==l&amp;&amp;a.set(t._group,e),T[r.index]=F(r.index,&quot;visible&quot;,!1!==r.visible)}else{var c=!1!==r.visible&amp;&amp;e;F(r.index,&quot;visible&quot;,c)}}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],699:[function(t,e,r){&quot;use strict&quot;;r.isGrouped=function(t){return-1!==(t.traceorder||&quot;&quot;).indexOf(&quot;grouped&quot;)},r.isVertical=function(t){return&quot;h&quot;!==t.orientation},r.isReversed=function(t){return-1!==(t.traceorder||&quot;&quot;).indexOf(&quot;reversed&quot;)}},{}],700:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;legend&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;),style:t(&quot;./style&quot;)}},{&quot;./attributes&quot;:693,&quot;./defaults&quot;:695,&quot;./draw&quot;:696,&quot;./style&quot;:701}],701:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.strTranslate,s=t(&quot;../drawing&quot;),l=t(&quot;../color&quot;),c=t(&quot;../colorscale/helpers&quot;).extractOpts,u=t(&quot;../../traces/scatter/subtypes&quot;),f=t(&quot;../../traces/pie/style_one&quot;),h=t(&quot;../../traces/pie/helpers&quot;).castOption,p=t(&quot;./constants&quot;);function d(t,e){return(e?&quot;radial&quot;:&quot;horizontal&quot;)+(t?&quot;&quot;:&quot;reversed&quot;)}e.exports=function(t,e,r){var g=e._fullLayout;r||(r=g.legend);var m=&quot;constant&quot;===r.itemsizing,v=r.itemwidth,y=(v+2*p.itemGap)/2,x=o(y,0),b=function(t,e,r,n){var i;if(t+1)i=t;else{if(!(e&amp;&amp;e.width&gt;0))return 0;i=e.width}return m?n:Math.min(i,r)};function _(t,e,r){var a=t[0].trace,o=a.marker||{},s=o.line||{},c=r?a.visible&amp;&amp;a.type===r:i.traceIs(a,&quot;bar&quot;),u=n.select(e).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend&quot;+r).data(c?[t]:[]);u.enter().append(&quot;path&quot;).classed(&quot;legend&quot;+r,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,x),u.exit().remove(),u.each((function(t){var e=n.select(this),r=t[0],i=b(r.mlw,o.line,5,2);e.style(&quot;stroke-width&quot;,i+&quot;px&quot;).call(l.fill,r.mc||o.color),i&amp;&amp;l.stroke(e,r.mlc||s.color)}))}function w(t,e,r){var o=t[0],s=o.trace,l=r?s.visible&amp;&amp;s.type===r:i.traceIs(s,r),c=n.select(e).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend&quot;+r).data(l?[t]:[]);if(c.enter().append(&quot;path&quot;).classed(&quot;legend&quot;+r,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,x),c.exit().remove(),c.size()){var u=(s.marker||{}).line,p=b(h(u.width,o.pts),u,5,2),d=a.minExtend(s,{marker:{line:{width:p}}});d.marker.line.color=u.color;var g=a.minExtend(o,{trace:d});f(c,g,d)}}t.each((function(t){var e=n.select(this),i=a.ensureSingle(e,&quot;g&quot;,&quot;layers&quot;);i.style(&quot;opacity&quot;,t[0].trace.opacity);var s=r.valign,l=t[0].lineHeight,c=t[0].height;if(&quot;middle&quot;!==s&amp;&amp;l&amp;&amp;c){var u={top:1,bottom:-1}[s]*(.5*(l-c+3));i.attr(&quot;transform&quot;,o(0,u))}else i.attr(&quot;transform&quot;,null);i.selectAll(&quot;g.legendfill&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendfill&quot;,!0),i.selectAll(&quot;g.legendlines&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendlines&quot;,!0);var f=i.selectAll(&quot;g.legendsymbols&quot;).data([t]);f.enter().append(&quot;g&quot;).classed(&quot;legendsymbols&quot;,!0),f.selectAll(&quot;g.legendpoints&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendpoints&quot;,!0)})).each((function(t){var r,i=t[0].trace,o=[];if(i.visible)switch(i.type){case&quot;histogram2d&quot;:case&quot;heatmap&quot;:o=[[&quot;M-15,-2V4H15V-2Z&quot;]],r=!0;break;case&quot;choropleth&quot;:case&quot;choroplethmapbox&quot;:o=[[&quot;M-6,-6V6H6V-6Z&quot;]],r=!0;break;case&quot;densitymapbox&quot;:o=[[&quot;M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0&quot;]],r=&quot;radial&quot;;break;case&quot;cone&quot;:o=[[&quot;M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z&quot;],[&quot;M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z&quot;],[&quot;M-6,-2 A2,2 0 0,0 -6,2 L6,0Z&quot;]],r=!1;break;case&quot;streamtube&quot;:o=[[&quot;M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z&quot;],[&quot;M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z&quot;],[&quot;M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z&quot;]],r=!1;break;case&quot;surface&quot;:o=[[&quot;M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z&quot;],[&quot;M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z&quot;]],r=!0;break;case&quot;mesh3d&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6H6L0,6Z&quot;]],r=!1;break;case&quot;volume&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6H6L0,6Z&quot;]],r=!0;break;case&quot;isosurface&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6 A12,24 0 0,0 6,-6 L0,6Z&quot;]],r=!1}var u=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend3dandfriends&quot;).data(o);u.enter().append(&quot;path&quot;).classed(&quot;legend3dandfriends&quot;,!0).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),u.exit().remove(),u.each((function(t,o){var u,f=n.select(this),h=c(i),p=h.colorscale,g=h.reversescale;if(p){if(!r){var m=p.length;u=0===o?p[g?m-1:0][1]:1===o?p[g?0:m-1][1]:p[Math.floor((m-1)/2)][1]}}else{var v=i.vertexcolor||i.facecolor||i.color;u=a.isArrayOrTypedArray(v)?v[o]||v[0]:v}f.attr(&quot;d&quot;,t[0]),u?f.call(l.fill,u):f.call((function(t){if(t.size()){var n=&quot;legendfill-&quot;+i.uid;s.gradient(t,e,n,d(g,&quot;radial&quot;===r),p,&quot;fill&quot;)}}))}))})).each((function(t){var e=t[0].trace,r=&quot;waterfall&quot;===e.type;if(t[0]._distinct&amp;&amp;r){var i=t[0].trace[t[0].dir].marker;return t[0].mc=i.color,t[0].mlw=i.line.width,t[0].mlc=i.line.color,_(t,this,&quot;waterfall&quot;)}var a=[];e.visible&amp;&amp;r&amp;&amp;(a=t[0].hasTotals?[[&quot;increasing&quot;,&quot;M-6,-6V6H0Z&quot;],[&quot;totals&quot;,&quot;M6,6H0L-6,-6H-0Z&quot;],[&quot;decreasing&quot;,&quot;M6,6V-6H0Z&quot;]]:[[&quot;increasing&quot;,&quot;M-6,-6V6H6Z&quot;],[&quot;decreasing&quot;,&quot;M6,6V-6H-6Z&quot;]]);var o=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendwaterfall&quot;).data(a);o.enter().append(&quot;path&quot;).classed(&quot;legendwaterfall&quot;,!0).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),o.exit().remove(),o.each((function(t){var r=n.select(this),i=e[t[0]].marker,a=b(void 0,i.line,5,2);r.attr(&quot;d&quot;,t[1]).style(&quot;stroke-width&quot;,a+&quot;px&quot;).call(l.fill,i.color),a&amp;&amp;r.call(l.stroke,i.line.color)}))})).each((function(t){_(t,this,&quot;funnel&quot;)})).each((function(t){_(t,this)})).each((function(t){var r=t[0].trace,o=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendbox&quot;).data(r.visible&amp;&amp;i.traceIs(r,&quot;box-violin&quot;)?[t]:[]);o.enter().append(&quot;path&quot;).classed(&quot;legendbox&quot;,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,x),o.exit().remove(),o.each((function(){var t=n.select(this);if(&quot;all&quot;!==r.boxpoints&amp;&amp;&quot;all&quot;!==r.points||0!==l.opacity(r.fillcolor)||0!==l.opacity((r.line||{}).color)){var i=b(void 0,r.line,5,2);t.style(&quot;stroke-width&quot;,i+&quot;px&quot;).call(l.fill,r.fillcolor),i&amp;&amp;l.stroke(t,r.line.color)}else{var c=a.minExtend(r,{marker:{size:m?12:a.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:&quot;diameter&quot;}});o.call(s.pointStyle,c,e)}}))})).each((function(t){w(t,this,&quot;funnelarea&quot;)})).each((function(t){w(t,this,&quot;pie&quot;)})).each((function(t){var r,i,o=t[0],l=o.trace,f=l.visible&amp;&amp;l.fill&amp;&amp;&quot;none&quot;!==l.fill,h=u.hasLines(l),p=l.contours,g=!1,m=!1,y=c(l),x=y.colorscale,_=y.reversescale;if(p){var w=p.coloring;&quot;lines&quot;===w?g=!0:h=&quot;none&quot;===w||&quot;heatmap&quot;===w||p.showlines,&quot;constraint&quot;===p.type?f=&quot;=&quot;!==p._operation:&quot;fill&quot;!==w&amp;&amp;&quot;heatmap&quot;!==w||(m=!0)}var T=u.hasMarkers(l)||u.hasText(l),k=f||m,M=h||g,A=T||!k?&quot;M5,0&quot;:M?&quot;M5,-2&quot;:&quot;M5,-3&quot;,S=n.select(this),E=S.select(&quot;.legendfill&quot;).selectAll(&quot;path&quot;).data(f||m?[t]:[]);if(E.enter().append(&quot;path&quot;).classed(&quot;js-fill&quot;,!0),E.exit().remove(),E.attr(&quot;d&quot;,A+&quot;h&quot;+v+&quot;v6h-&quot;+v+&quot;z&quot;).call(f?s.fillGroupStyle:function(t){if(t.size()){var r=&quot;legendfill-&quot;+l.uid;s.gradient(t,e,r,d(_),x,&quot;fill&quot;)}}),h||g){var C=b(void 0,l.line,10,5);i=a.minExtend(l,{line:{width:C}}),r=[a.minExtend(o,{trace:i})]}var L=S.select(&quot;.legendlines&quot;).selectAll(&quot;path&quot;).data(h||g?[r]:[]);L.enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0),L.exit().remove(),L.attr(&quot;d&quot;,A+(g?&quot;l&quot;+v+&quot;,0.0001&quot;:&quot;h&quot;+v)).call(h?s.lineGroupStyle:function(t){if(t.size()){var r=&quot;legendline-&quot;+l.uid;s.lineGroupStyle(t),s.gradient(t,e,r,d(_),x,&quot;stroke&quot;)}})})).each((function(t){var r,i,o=t[0],l=o.trace,c=u.hasMarkers(l),f=u.hasText(l),h=u.hasLines(l);function p(t,e,r,n){var i=a.nestedProperty(l,t).get(),o=a.isArrayOrTypedArray(i)&amp;&amp;e?e(i):i;if(m&amp;&amp;o&amp;&amp;void 0!==n&amp;&amp;(o=n),r){if(o&lt;r[0])return r[0];if(o&gt;r[1])return r[1]}return o}function d(t){return o._distinct&amp;&amp;o.index&amp;&amp;t[o.index]?t[o.index]:t[0]}if(c||f||h){var g={},v={};if(c){g.mc=p(&quot;marker.color&quot;,d),g.mx=p(&quot;marker.symbol&quot;,d),g.mo=p(&quot;marker.opacity&quot;,a.mean,[.2,1]),g.mlc=p(&quot;marker.line.color&quot;,d),g.mlw=p(&quot;marker.line.width&quot;,a.mean,[0,5],2),v.marker={sizeref:1,sizemin:1,sizemode:&quot;diameter&quot;};var y=p(&quot;marker.size&quot;,a.mean,[2,16],12);g.ms=y,v.marker.size=y}h&amp;&amp;(v.line={width:p(&quot;line.width&quot;,d,[0,10],5)}),f&amp;&amp;(g.tx=&quot;Aa&quot;,g.tp=p(&quot;textposition&quot;,d),g.ts=10,g.tc=p(&quot;textfont.color&quot;,d),g.tf=p(&quot;textfont.family&quot;,d)),r=[a.minExtend(o,g)],(i=a.minExtend(l,v)).selectedpoints=null,i.texttemplate=null}var b=n.select(this).select(&quot;g.legendpoints&quot;),_=b.selectAll(&quot;path.scatterpts&quot;).data(c?r:[]);_.enter().insert(&quot;path&quot;,&quot;:first-child&quot;).classed(&quot;scatterpts&quot;,!0).attr(&quot;transform&quot;,x),_.exit().remove(),_.call(s.pointStyle,i,e),c&amp;&amp;(r[0].mrc=3);var w=b.selectAll(&quot;g.pointtext&quot;).data(f?r:[]);w.enter().append(&quot;g&quot;).classed(&quot;pointtext&quot;,!0).append(&quot;text&quot;).attr(&quot;transform&quot;,x),w.exit().remove(),w.selectAll(&quot;text&quot;).call(s.textPointStyle,i,e)})).each((function(t){var e=t[0].trace,r=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendcandle&quot;).data(e.visible&amp;&amp;&quot;candlestick&quot;===e.type?[t,t]:[]);r.enter().append(&quot;path&quot;).classed(&quot;legendcandle&quot;,!0).attr(&quot;d&quot;,(function(t,e){return e?&quot;M-15,0H-8M-8,6V-6H8Z&quot;:&quot;M15,0H8M8,-6V6H-8Z&quot;})).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?&quot;increasing&quot;:&quot;decreasing&quot;],o=b(void 0,a.line,5,2);i.style(&quot;stroke-width&quot;,o+&quot;px&quot;).call(l.fill,a.fillcolor),o&amp;&amp;l.stroke(i,a.line.color)}))})).each((function(t){var e=t[0].trace,r=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendohlc&quot;).data(e.visible&amp;&amp;&quot;ohlc&quot;===e.type?[t,t]:[]);r.enter().append(&quot;path&quot;).classed(&quot;legendohlc&quot;,!0).attr(&quot;d&quot;,(function(t,e){return e?&quot;M-15,0H0M-8,-6V0&quot;:&quot;M15,0H0M8,6V0&quot;})).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?&quot;increasing&quot;:&quot;decreasing&quot;],o=b(void 0,a.line,5,2);i.style(&quot;fill&quot;,&quot;none&quot;).call(s.dashLine,a.line.dash,o),o&amp;&amp;l.stroke(i,a.line.color)}))}))}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../../traces/pie/helpers&quot;:1166,&quot;../../traces/pie/style_one&quot;:1172,&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../color&quot;:643,&quot;../colorscale/helpers&quot;:654,&quot;../drawing&quot;:665,&quot;./constants&quot;:694,d3:169}],702:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../fonts/ploticon&quot;),s=t(&quot;../shapes/draw&quot;).eraseActiveShape,l=t(&quot;../../lib&quot;),c=l._,u=e.exports={};function f(t,e){var r,i,o=e.currentTarget,s=o.getAttribute(&quot;data-attr&quot;),l=o.getAttribute(&quot;data-val&quot;)||!0,c=t._fullLayout,u={},f=a.list(t,null,!0),h=c._cartesianSpikesEnabled;if(&quot;zoom&quot;===s){var p,d=&quot;in&quot;===l?.5:2,g=(1+d)/2,m=(1-d)/2;for(i=0;i&lt;f.length;i++)if(!(r=f[i]).fixedrange)if(p=r._name,&quot;auto&quot;===l)u[p+&quot;.autorange&quot;]=!0;else if(&quot;reset&quot;===l){if(void 0===r._rangeInitial)u[p+&quot;.autorange&quot;]=!0;else{var v=r._rangeInitial.slice();u[p+&quot;.range[0]&quot;]=v[0],u[p+&quot;.range[1]&quot;]=v[1]}void 0!==r._showSpikeInitial&amp;&amp;(u[p+&quot;.showspikes&quot;]=r._showSpikeInitial,&quot;on&quot;!==h||r._showSpikeInitial||(h=&quot;off&quot;))}else{var y=[r.r2l(r.range[0]),r.r2l(r.range[1])],x=[g*y[0]+m*y[1],g*y[1]+m*y[0]];u[p+&quot;.range[0]&quot;]=r.l2r(x[0]),u[p+&quot;.range[1]&quot;]=r.l2r(x[1])}}else&quot;hovermode&quot;!==s||&quot;x&quot;!==l&amp;&amp;&quot;y&quot;!==l||(l=c._isHoriz?&quot;y&quot;:&quot;x&quot;,o.setAttribute(&quot;data-val&quot;,l)),u[s]=l;c._cartesianSpikesEnabled=h,n.call(&quot;_guiRelayout&quot;,t,u)}function h(t,e){for(var r=e.currentTarget,i=r.getAttribute(&quot;data-attr&quot;),a=r.getAttribute(&quot;data-val&quot;)||!0,o=t._fullLayout._subplots.gl3d||[],s={},l=i.split(&quot;.&quot;),c=0;c&lt;o.length;c++)s[o[c]+&quot;.&quot;+l[1]]=a;var u=&quot;pan&quot;===a?a:&quot;zoom&quot;;s.dragmode=u,n.call(&quot;_guiRelayout&quot;,t,s)}function p(t,e){for(var r=e.currentTarget.getAttribute(&quot;data-attr&quot;),i=&quot;resetLastSave&quot;===r,a=&quot;resetDefault&quot;===r,o=t._fullLayout,s=o._subplots.gl3d||[],l={},c=0;c&lt;s.length;c++){var u,f=s[c],h=f+&quot;.camera&quot;,p=f+&quot;.aspectratio&quot;,d=f+&quot;.aspectmode&quot;,g=o[f]._scene;i?(l[h+&quot;.up&quot;]=g.viewInitial.up,l[h+&quot;.eye&quot;]=g.viewInitial.eye,l[h+&quot;.center&quot;]=g.viewInitial.center,u=!0):a&amp;&amp;(l[h+&quot;.up&quot;]=null,l[h+&quot;.eye&quot;]=null,l[h+&quot;.center&quot;]=null,u=!0),u&amp;&amp;(l[p+&quot;.x&quot;]=g.viewInitial.aspectratio.x,l[p+&quot;.y&quot;]=g.viewInitial.aspectratio.y,l[p+&quot;.z&quot;]=g.viewInitial.aspectratio.z,l[d]=g.viewInitial.aspectmode)}n.call(&quot;_guiRelayout&quot;,t,l)}function d(t,e){var r=e.currentTarget,n=r._previousVal,i=t._fullLayout,a=i._subplots.gl3d||[],o=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;],s={},l={};if(n)l=n,r._previousVal=null;else{for(var c=0;c&lt;a.length;c++){var u=a[c],f=i[u],h=u+&quot;.hovermode&quot;;s[h]=f.hovermode,l[h]=!1;for(var p=0;p&lt;3;p++){var d=o[p],g=u+&quot;.&quot;+d+&quot;.showspikes&quot;;l[g]=!1,s[g]=f[d].showspikes}}r._previousVal=s}return l}function g(t,e){for(var r=e.currentTarget,i=r.getAttribute(&quot;data-attr&quot;),a=r.getAttribute(&quot;data-val&quot;)||!0,o=t._fullLayout,s=o._subplots.geo||[],l=0;l&lt;s.length;l++){var c=s[l],u=o[c];if(&quot;zoom&quot;===i){var f=u.projection.scale,h=&quot;in&quot;===a?2*f:.5*f;n.call(&quot;_guiRelayout&quot;,t,c+&quot;.projection.scale&quot;,h)}}&quot;reset&quot;===i&amp;&amp;x(t,&quot;geo&quot;)}function m(t){var e=t._fullLayout;return!e.hovermode&amp;&amp;(e._has(&quot;cartesian&quot;)?e._isHoriz?&quot;y&quot;:&quot;x&quot;:&quot;closest&quot;)}function v(t){var e=m(t);n.call(&quot;_guiRelayout&quot;,t,&quot;hovermode&quot;,e)}function y(t,e){for(var r=e.currentTarget.getAttribute(&quot;data-val&quot;),i=t._fullLayout,a=i._subplots.mapbox||[],o={},s=0;s&lt;a.length;s++){var l=a[s],c=i[l].zoom,u=&quot;in&quot;===r?1.05*c:c/1.05;o[l+&quot;.zoom&quot;]=u}n.call(&quot;_guiRelayout&quot;,t,o)}function x(t,e){for(var r=t._fullLayout,i=r._subplots[e]||[],a={},o=0;o&lt;i.length;o++)for(var s=i[o],l=r[s]._subplot.viewInitial,c=Object.keys(l),u=0;u&lt;c.length;u++){var f=c[u];a[s+&quot;.&quot;+f]=l[f]}n.call(&quot;_guiRelayout&quot;,t,a)}u.toImage={name:&quot;toImage&quot;,title:function(t){var e=(t._context.toImageButtonOptions||{}).format||&quot;png&quot;;return c(t,&quot;png&quot;===e?&quot;Download plot as a png&quot;:&quot;Download plot&quot;)},icon:o.camera,click:function(t){var e=t._context.toImageButtonOptions,r={format:e.format||&quot;png&quot;};l.notifier(c(t,&quot;Taking snapshot - this may take a few seconds&quot;),&quot;long&quot;),&quot;svg&quot;!==r.format&amp;&amp;l.isIE()&amp;&amp;(l.notifier(c(t,&quot;IE only supports svg.  Changing format to svg.&quot;),&quot;long&quot;),r.format=&quot;svg&quot;),[&quot;filename&quot;,&quot;width&quot;,&quot;height&quot;,&quot;scale&quot;].forEach((function(t){t in e&amp;&amp;(r[t]=e[t])})),n.call(&quot;downloadImage&quot;,t,r).then((function(e){l.notifier(c(t,&quot;Snapshot succeeded&quot;)+&quot; - &quot;+e,&quot;long&quot;)})).catch((function(){l.notifier(c(t,&quot;Sorry, there was a problem downloading your snapshot!&quot;),&quot;long&quot;)}))}},u.sendDataToCloud={name:&quot;sendDataToCloud&quot;,title:function(t){return c(t,&quot;Edit in Chart Studio&quot;)},icon:o.disk,click:function(t){i.sendDataToCloud(t)}},u.editInChartStudio={name:&quot;editInChartStudio&quot;,title:function(t){return c(t,&quot;Edit in Chart Studio&quot;)},icon:o.pencil,click:function(t){i.sendDataToCloud(t)}},u.zoom2d={name:&quot;zoom2d&quot;,title:function(t){return c(t,&quot;Zoom&quot;)},attr:&quot;dragmode&quot;,val:&quot;zoom&quot;,icon:o.zoombox,click:f},u.pan2d={name:&quot;pan2d&quot;,title:function(t){return c(t,&quot;Pan&quot;)},attr:&quot;dragmode&quot;,val:&quot;pan&quot;,icon:o.pan,click:f},u.select2d={name:&quot;select2d&quot;,title:function(t){return c(t,&quot;Box Select&quot;)},attr:&quot;dragmode&quot;,val:&quot;select&quot;,icon:o.selectbox,click:f},u.lasso2d={name:&quot;lasso2d&quot;,title:function(t){return c(t,&quot;Lasso Select&quot;)},attr:&quot;dragmode&quot;,val:&quot;lasso&quot;,icon:o.lasso,click:f},u.drawclosedpath={name:&quot;drawclosedpath&quot;,title:function(t){return c(t,&quot;Draw closed freeform&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawclosedpath&quot;,icon:o.drawclosedpath,click:f},u.drawopenpath={name:&quot;drawopenpath&quot;,title:function(t){return c(t,&quot;Draw open freeform&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawopenpath&quot;,icon:o.drawopenpath,click:f},u.drawline={name:&quot;drawline&quot;,title:function(t){return c(t,&quot;Draw line&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawline&quot;,icon:o.drawline,click:f},u.drawrect={name:&quot;drawrect&quot;,title:function(t){return c(t,&quot;Draw rectangle&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawrect&quot;,icon:o.drawrect,click:f},u.drawcircle={name:&quot;drawcircle&quot;,title:function(t){return c(t,&quot;Draw circle&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawcircle&quot;,icon:o.drawcircle,click:f},u.eraseshape={name:&quot;eraseshape&quot;,title:function(t){return c(t,&quot;Erase active shape&quot;)},icon:o.eraseshape,click:s},u.zoomIn2d={name:&quot;zoomIn2d&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:f},u.zoomOut2d={name:&quot;zoomOut2d&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:f},u.autoScale2d={name:&quot;autoScale2d&quot;,title:function(t){return c(t,&quot;Autoscale&quot;)},attr:&quot;zoom&quot;,val:&quot;auto&quot;,icon:o.autoscale,click:f},u.resetScale2d={name:&quot;resetScale2d&quot;,title:function(t){return c(t,&quot;Reset axes&quot;)},attr:&quot;zoom&quot;,val:&quot;reset&quot;,icon:o.home,click:f},u.hoverClosestCartesian={name:&quot;hoverClosestCartesian&quot;,title:function(t){return c(t,&quot;Show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:&quot;closest&quot;,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:f},u.hoverCompareCartesian={name:&quot;hoverCompareCartesian&quot;,title:function(t){return c(t,&quot;Compare data on hover&quot;)},attr:&quot;hovermode&quot;,val:function(t){return t._fullLayout._isHoriz?&quot;y&quot;:&quot;x&quot;},icon:o.tooltip_compare,gravity:&quot;ne&quot;,click:f},u.zoom3d={name:&quot;zoom3d&quot;,title:function(t){return c(t,&quot;Zoom&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;zoom&quot;,icon:o.zoombox,click:h},u.pan3d={name:&quot;pan3d&quot;,title:function(t){return c(t,&quot;Pan&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;pan&quot;,icon:o.pan,click:h},u.orbitRotation={name:&quot;orbitRotation&quot;,title:function(t){return c(t,&quot;Orbital rotation&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;orbit&quot;,icon:o[&quot;3d_rotate&quot;],click:h},u.tableRotation={name:&quot;tableRotation&quot;,title:function(t){return c(t,&quot;Turntable rotation&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;turntable&quot;,icon:o[&quot;z-axis&quot;],click:h},u.resetCameraDefault3d={name:&quot;resetCameraDefault3d&quot;,title:function(t){return c(t,&quot;Reset camera to default&quot;)},attr:&quot;resetDefault&quot;,icon:o.home,click:p},u.resetCameraLastSave3d={name:&quot;resetCameraLastSave3d&quot;,title:function(t){return c(t,&quot;Reset camera to last save&quot;)},attr:&quot;resetLastSave&quot;,icon:o.movie,click:p},u.hoverClosest3d={name:&quot;hoverClosest3d&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:function(t,e){var r=d(t,e);n.call(&quot;_guiRelayout&quot;,t,r)}},u.zoomInGeo={name:&quot;zoomInGeo&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:g},u.zoomOutGeo={name:&quot;zoomOutGeo&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:g},u.resetGeo={name:&quot;resetGeo&quot;,title:function(t){return c(t,&quot;Reset&quot;)},attr:&quot;reset&quot;,val:null,icon:o.autoscale,click:g},u.hoverClosestGeo={name:&quot;hoverClosestGeo&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.hoverClosestGl2d={name:&quot;hoverClosestGl2d&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.hoverClosestPie={name:&quot;hoverClosestPie&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:&quot;closest&quot;,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.resetViewSankey={name:&quot;resetSankeyGroup&quot;,title:function(t){return c(t,&quot;Reset view&quot;)},icon:o.home,click:function(t){for(var e={&quot;node.groups&quot;:[],&quot;node.x&quot;:[],&quot;node.y&quot;:[]},r=0;r&lt;t._fullData.length;r++){var i=t._fullData[r]._viewInitial;e[&quot;node.groups&quot;].push(i.node.groups.slice()),e[&quot;node.x&quot;].push(i.node.x.slice()),e[&quot;node.y&quot;].push(i.node.y.slice())}n.call(&quot;restyle&quot;,t,e)}},u.toggleHover={name:&quot;toggleHover&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:function(t,e){var r=d(t,e);r.hovermode=m(t),n.call(&quot;_guiRelayout&quot;,t,r)}},u.resetViews={name:&quot;resetViews&quot;,title:function(t){return c(t,&quot;Reset views&quot;)},icon:o.home,click:function(t,e){var r=e.currentTarget;r.setAttribute(&quot;data-attr&quot;,&quot;zoom&quot;),r.setAttribute(&quot;data-val&quot;,&quot;reset&quot;),f(t,e),r.setAttribute(&quot;data-attr&quot;,&quot;resetLastSave&quot;),p(t,e),x(t,&quot;geo&quot;),x(t,&quot;mapbox&quot;)}},u.toggleSpikelines={name:&quot;toggleSpikelines&quot;,title:function(t){return c(t,&quot;Toggle Spike Lines&quot;)},icon:o.spikeline,attr:&quot;_cartesianSpikesEnabled&quot;,val:&quot;on&quot;,click:function(t){var e=t._fullLayout,r=e._cartesianSpikesEnabled;e._cartesianSpikesEnabled=&quot;on&quot;===r?&quot;off&quot;:&quot;on&quot;,n.call(&quot;_guiRelayout&quot;,t,function(t){for(var e=&quot;on&quot;===t._fullLayout._cartesianSpikesEnabled,r=a.list(t,null,!0),n={},i=0;i&lt;r.length;i++){var o=r[i];n[o._name+&quot;.showspikes&quot;]=!!e||o._showSpikeInitial}return n}(t))}},u.resetViewMapbox={name:&quot;resetViewMapbox&quot;,title:function(t){return c(t,&quot;Reset view&quot;)},attr:&quot;reset&quot;,icon:o.home,click:function(t){x(t,&quot;mapbox&quot;)}},u.zoomInMapbox={name:&quot;zoomInMapbox&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:y},u.zoomOutMapbox={name:&quot;zoomOutMapbox&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:y}},{&quot;../../fonts/ploticon&quot;:757,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../shapes/draw&quot;:724}],703:[function(t,e,r){&quot;use strict&quot;;r.manage=t(&quot;./manage&quot;)},{&quot;./manage&quot;:704}],704:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;),i=t(&quot;../../traces/scatter/subtypes&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../fx/helpers&quot;).isUnifiedHover,s=t(&quot;./modebar&quot;),l=t(&quot;./buttons&quot;);e.exports=function(t){var e=t._fullLayout,r=t._context,u=e._modeBar;if(r.displayModeBar||r.watermark){if(!Array.isArray(r.modeBarButtonsToRemove))throw new Error([&quot;*modeBarButtonsToRemove* configuration options&quot;,&quot;must be an array.&quot;].join(&quot; &quot;));if(!Array.isArray(r.modeBarButtonsToAdd))throw new Error([&quot;*modeBarButtonsToAdd* configuration options&quot;,&quot;must be an array.&quot;].join(&quot; &quot;));var f,h=r.modeBarButtons;f=Array.isArray(h)&amp;&amp;h.length?function(t){for(var e=0;e&lt;t.length;e++)for(var r=t[e],n=0;n&lt;r.length;n++){var i=r[n];if(&quot;string&quot;==typeof i){if(void 0===l[i])throw new Error([&quot;*modeBarButtons* configuration options&quot;,&quot;invalid button name&quot;].join(&quot; &quot;));t[e][n]=l[i]}}return t}(h):!r.displayModeBar&amp;&amp;r.watermark?[]:function(t){var e=t._fullLayout,r=t._fullData,s=t._context,u=s.modeBarButtonsToRemove,f=s.modeBarButtonsToAdd,h=e._has(&quot;cartesian&quot;),p=e._has(&quot;gl3d&quot;),d=e._has(&quot;geo&quot;),g=e._has(&quot;pie&quot;),m=e._has(&quot;funnelarea&quot;),v=e._has(&quot;gl2d&quot;),y=e._has(&quot;ternary&quot;),x=e._has(&quot;mapbox&quot;),b=e._has(&quot;polar&quot;),_=e._has(&quot;sankey&quot;),w=function(t){for(var e=n.list({_fullLayout:t},null,!0),r=0;r&lt;e.length;r++)if(!e[r].fixedrange)return!1;return!0}(e),T=o(e.hovermode),k=[];function M(t){if(t.length){for(var e=[],r=0;r&lt;t.length;r++){var n=t[r];-1===u.indexOf(n)&amp;&amp;e.push(l[n])}k.push(e)}}var A=[&quot;toImage&quot;];s.showEditInChartStudio?A.push(&quot;editInChartStudio&quot;):s.showSendToCloud&amp;&amp;A.push(&quot;sendDataToCloud&quot;);M(A);var S=[],E=[],C=[],L=[];(h||v||g||m||y)+d+p+x+b&gt;1?(E=[&quot;toggleHover&quot;],C=[&quot;resetViews&quot;]):d?(S=[&quot;zoomInGeo&quot;,&quot;zoomOutGeo&quot;],E=[&quot;hoverClosestGeo&quot;],C=[&quot;resetGeo&quot;]):p?(E=[&quot;hoverClosest3d&quot;],C=[&quot;resetCameraDefault3d&quot;,&quot;resetCameraLastSave3d&quot;]):x?(S=[&quot;zoomInMapbox&quot;,&quot;zoomOutMapbox&quot;],E=[&quot;toggleHover&quot;],C=[&quot;resetViewMapbox&quot;]):v?E=[&quot;hoverClosestGl2d&quot;]:g?E=[&quot;hoverClosestPie&quot;]:_?(E=[&quot;hoverClosestCartesian&quot;,&quot;hoverCompareCartesian&quot;],C=[&quot;resetViewSankey&quot;]):E=[&quot;toggleHover&quot;];h&amp;&amp;(E=[&quot;toggleSpikelines&quot;,&quot;hoverClosestCartesian&quot;,&quot;hoverCompareCartesian&quot;]);(function(t){for(var e=0;e&lt;t.length;e++)if(!a.traceIs(t[e],&quot;noHover&quot;))return!1;return!0}(r)||T)&amp;&amp;(E=[]);!h&amp;&amp;!v||w||(S=[&quot;zoomIn2d&quot;,&quot;zoomOut2d&quot;,&quot;autoScale2d&quot;],&quot;resetViews&quot;!==C[0]&amp;&amp;(C=[&quot;resetScale2d&quot;]));p?L=[&quot;zoom3d&quot;,&quot;pan3d&quot;,&quot;orbitRotation&quot;,&quot;tableRotation&quot;]:(h||v)&amp;&amp;!w||y?L=[&quot;zoom2d&quot;,&quot;pan2d&quot;]:x||d?L=[&quot;pan2d&quot;]:b&amp;&amp;(L=[&quot;zoom2d&quot;]);(function(t){for(var e=!1,r=0;r&lt;t.length&amp;&amp;!e;r++){var n=t[r];n._module&amp;&amp;n._module.selectPoints&amp;&amp;(a.traceIs(n,&quot;scatter-like&quot;)?(i.hasMarkers(n)||i.hasText(n))&amp;&amp;(e=!0):a.traceIs(n,&quot;box-violin&quot;)&amp;&amp;&quot;all&quot;!==n.boxpoints&amp;&amp;&quot;all&quot;!==n.points||(e=!0))}return e})(r)&amp;&amp;L.push(&quot;select2d&quot;,&quot;lasso2d&quot;);if(Array.isArray(f)){for(var I=[],P=0;P&lt;f.length;P++){var z=f[P];&quot;string&quot;==typeof z?-1!==c.indexOf(z)&amp;&amp;(e._has(&quot;mapbox&quot;)||e._has(&quot;cartesian&quot;))&amp;&amp;L.push(z):I.push(z)}f=I}return M(L),M(S.concat(C)),M(E),function(t,e){if(e.length)if(Array.isArray(e[0]))for(var r=0;r&lt;e.length;r++)t.push(e[r]);else t.push(e);return t}(k,f)}(t),u?u.update(t,f):e._modeBar=s(t,f)}else u&amp;&amp;(u.destroy(),delete e._modeBar)};var c=[&quot;drawline&quot;,&quot;drawopenpath&quot;,&quot;drawclosedpath&quot;,&quot;drawcircle&quot;,&quot;drawrect&quot;,&quot;eraseshape&quot;]},{&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../registry&quot;:911,&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../fx/helpers&quot;:679,&quot;./buttons&quot;:702,&quot;./modebar&quot;:705}],705:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../fonts/ploticon&quot;),s=new DOMParser;function l(t){this.container=t.container,this.element=document.createElement(&quot;div&quot;),this.update(t.graphInfo,t.buttons),this.container.appendChild(this.element)}var c=l.prototype;c.update=function(t,e){this.graphInfo=t;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i=&quot;modebar-&quot;+n._uid;this.element.setAttribute(&quot;id&quot;,i),this._uid=i,this.element.className=&quot;modebar&quot;,&quot;hover&quot;===r.displayModeBar&amp;&amp;(this.element.className+=&quot; modebar--hover ease-bg&quot;),&quot;v&quot;===n.modebar.orientation&amp;&amp;(this.element.className+=&quot; vertical&quot;,e=e.reverse());var o=n.modebar,s=&quot;hover&quot;===r.displayModeBar?&quot;.js-plotly-plot .plotly:hover &quot;:&quot;&quot;;a.deleteRelatedStyleRule(i),a.addRelatedStyleRule(i,s+&quot;#&quot;+i+&quot; .modebar-group&quot;,&quot;background-color: &quot;+o.bgcolor),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn .icon path&quot;,&quot;fill: &quot;+o.color),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn:hover .icon path&quot;,&quot;fill: &quot;+o.activecolor),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn.active .icon path&quot;,&quot;fill: &quot;+o.activecolor);var l=!this.hasButtons(e),c=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(l||c||u)&amp;&amp;(this.removeAllButtons(),this.updateButtons(e),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&amp;&amp;(f.className=f.className+&quot; watermark&quot;),&quot;v&quot;===n.modebar.orientation?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton()},c.updateButtons=function(t){var e=this;this.buttons=t,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(t){var r=e.createGroup();t.forEach((function(t){var n=t.name;if(!n)throw new Error(&quot;must provide button 'name' in button config&quot;);if(-1!==e.buttonsNames.indexOf(n))throw new Error(&quot;button name '&quot;+n+&quot;' is taken&quot;);e.buttonsNames.push(n);var i=e.createButton(t);e.buttonElements.push(i),r.appendChild(i)})),e.element.appendChild(r)}))},c.createGroup=function(){var t=document.createElement(&quot;div&quot;);return t.className=&quot;modebar-group&quot;,t},c.createButton=function(t){var e=this,r=document.createElement(&quot;a&quot;);r.setAttribute(&quot;rel&quot;,&quot;tooltip&quot;),r.className=&quot;modebar-btn&quot;;var i=t.title;void 0===i?i=t.name:&quot;function&quot;==typeof i&amp;&amp;(i=i(this.graphInfo)),(i||0===i)&amp;&amp;r.setAttribute(&quot;data-title&quot;,i),void 0!==t.attr&amp;&amp;r.setAttribute(&quot;data-attr&quot;,t.attr);var a=t.val;if(void 0!==a&amp;&amp;(&quot;function&quot;==typeof a&amp;&amp;(a=a(this.graphInfo)),r.setAttribute(&quot;data-val&quot;,a)),&quot;function&quot;!=typeof t.click)throw new Error(&quot;must provide button 'click' function in button config&quot;);r.addEventListener(&quot;click&quot;,(function(r){t.click(e.graphInfo,r),e.updateActiveButton(r.currentTarget)})),r.setAttribute(&quot;data-toggle&quot;,t.toggle||!1),t.toggle&amp;&amp;n.select(r).classed(&quot;active&quot;,!0);var s=t.icon;return&quot;function&quot;==typeof s?r.appendChild(s()):r.appendChild(this.createIcon(s||o.question)),r.setAttribute(&quot;data-gravity&quot;,t.gravity||&quot;n&quot;),r},c.createIcon=function(t){var e,r=i(t.height)?Number(t.height):t.ascent-t.descent,n=&quot;http://www.w3.org/2000/svg&quot;;if(t.path){(e=document.createElementNS(n,&quot;svg&quot;)).setAttribute(&quot;viewBox&quot;,[0,0,t.width,r].join(&quot; &quot;)),e.setAttribute(&quot;class&quot;,&quot;icon&quot;);var a=document.createElementNS(n,&quot;path&quot;);a.setAttribute(&quot;d&quot;,t.path),t.transform?a.setAttribute(&quot;transform&quot;,t.transform):void 0!==t.ascent&amp;&amp;a.setAttribute(&quot;transform&quot;,&quot;matrix(1 0 0 -1 0 &quot;+t.ascent+&quot;)&quot;),e.appendChild(a)}t.svg&amp;&amp;(e=s.parseFromString(t.svg,&quot;application/xml&quot;).childNodes[0]);return e.setAttribute(&quot;height&quot;,&quot;1em&quot;),e.setAttribute(&quot;width&quot;,&quot;1em&quot;),e},c.updateActiveButton=function(t){var e=this.graphInfo._fullLayout,r=void 0!==t?t.getAttribute(&quot;data-attr&quot;):null;this.buttonElements.forEach((function(t){var i=t.getAttribute(&quot;data-val&quot;)||!0,o=t.getAttribute(&quot;data-attr&quot;),s=&quot;true&quot;===t.getAttribute(&quot;data-toggle&quot;),l=n.select(t);if(s)o===r&amp;&amp;l.classed(&quot;active&quot;,!l.classed(&quot;active&quot;));else{var c=null===o?o:a.nestedProperty(e,o).get();l.classed(&quot;active&quot;,c===i)}}))},c.hasButtons=function(t){var e=this.buttons;if(!e)return!1;if(t.length!==e.length)return!1;for(var r=0;r&lt;t.length;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n&lt;t[r].length;n++)if(t[r][n].name!==e[r][n].name)return!1}return!0},c.getLogo=function(){var t=this.createGroup(),e=document.createElement(&quot;a&quot;);return e.href=&quot;https://plotly.com/&quot;,e.target=&quot;_blank&quot;,e.setAttribute(&quot;data-title&quot;,a._(this.graphInfo,&quot;Produced with Plotly&quot;)),e.className=&quot;modebar-btn plotlyjsicon modebar-btn--logo&quot;,e.appendChild(this.createIcon(o.newplotlylogo)),t.appendChild(e),t},c.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},c.destroy=function(){a.removeElement(this.container.querySelector(&quot;.modebar&quot;)),a.deleteRelatedStyleRule(this._uid)},e.exports=function(t,e){var r=t._fullLayout,i=new l({graphInfo:t,container:r._modebardiv.node(),buttons:e});return r._privateplot&amp;&amp;n.select(i.element).append(&quot;span&quot;).classed(&quot;badge-private float--left&quot;,!0).text(&quot;PRIVATE&quot;),i}},{&quot;../../fonts/ploticon&quot;:757,&quot;../../lib&quot;:778,d3:169,&quot;fast-isnumeric&quot;:241}],706:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;),a=(0,t(&quot;../../plot_api/plot_template&quot;).templatedArray)(&quot;button&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},step:{valType:&quot;enumerated&quot;,values:[&quot;month&quot;,&quot;year&quot;,&quot;day&quot;,&quot;hour&quot;,&quot;minute&quot;,&quot;second&quot;,&quot;all&quot;],dflt:&quot;month&quot;,editType:&quot;plot&quot;},stepmode:{valType:&quot;enumerated&quot;,values:[&quot;backward&quot;,&quot;todate&quot;],dflt:&quot;backward&quot;,editType:&quot;plot&quot;},count:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},label:{valType:&quot;string&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;});e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},buttons:a,x:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;plot&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;plot&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;plot&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;bottom&quot;,editType:&quot;plot&quot;},font:n({editType:&quot;plot&quot;}),bgcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;plot&quot;},activecolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;plot&quot;}},{&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/font_attributes&quot;:856,&quot;../color/attributes&quot;:642}],707:[function(t,e,r){&quot;use strict&quot;;e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},{}],708:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;../../plots/array_container_defaults&quot;),s=t(&quot;./attributes&quot;),l=t(&quot;./constants&quot;);function c(t,e,r,i){var a=i.calendar;function o(r,i){return n.coerce(t,e,s.buttons,r,i)}if(o(&quot;visible&quot;)){var l=o(&quot;step&quot;);&quot;all&quot;!==l&amp;&amp;(!a||&quot;gregorian&quot;===a||&quot;month&quot;!==l&amp;&amp;&quot;year&quot;!==l?o(&quot;stepmode&quot;):e.stepmode=&quot;backward&quot;,o(&quot;count&quot;)),o(&quot;label&quot;)}}e.exports=function(t,e,r,u,f){var h=t.rangeselector||{},p=a.newContainer(e,&quot;rangeselector&quot;);function d(t,e){return n.coerce(h,p,s,t,e)}if(d(&quot;visible&quot;,o(h,p,{name:&quot;buttons&quot;,handleItemDefaults:c,calendar:f}).length&gt;0)){var g=function(t,e,r){for(var n=r.filter((function(r){return e[r].anchor===t._id})),i=0,a=0;a&lt;n.length;a++){var o=e[n[a]].domain;o&amp;&amp;(i=Math.max(o[1],i))}return[t.domain[0],i+l.yPad]}(e,r,u);d(&quot;x&quot;,g[0]),d(&quot;y&quot;,g[1]),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),d(&quot;xanchor&quot;),d(&quot;yanchor&quot;),n.coerceFont(d,&quot;font&quot;,r.font);var m=d(&quot;bgcolor&quot;);d(&quot;activecolor&quot;,i.contrast(m,l.lightAmount,l.darkAmount)),d(&quot;bordercolor&quot;),d(&quot;borderwidth&quot;)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/array_container_defaults&quot;:823,&quot;../color&quot;:643,&quot;./attributes&quot;:706,&quot;./constants&quot;:707}],709:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../color&quot;),s=t(&quot;../drawing&quot;),l=t(&quot;../../lib&quot;),c=l.strTranslate,u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../plots/cartesian/axis_ids&quot;),h=t(&quot;../../constants/alignment&quot;),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR,m=t(&quot;./constants&quot;),v=t(&quot;./get_update_object&quot;);function y(t){return t._id}function x(t,e,r){var n=l.ensureSingle(t,&quot;rect&quot;,&quot;selector-rect&quot;,(function(t){t.attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)}));n.attr({rx:m.rx,ry:m.ry}),n.call(o.stroke,e.bordercolor).call(o.fill,function(t,e){return e._isActive||e._isHovered?t.activecolor:t.bgcolor}(e,r)).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;)}function b(t,e,r,n){l.ensureSingle(t,&quot;text&quot;,&quot;selector-text&quot;,(function(t){t.attr(&quot;text-anchor&quot;,&quot;middle&quot;)})).call(s.font,e.font).text(function(t,e){if(t.label)return e?l.templateString(t.label,e):t.label;return&quot;all&quot;===t.step?&quot;all&quot;:t.count+t.step.charAt(0)}(r,n._fullLayout._meta)).call((function(t){u.convertToTspans(t,n)}))}e.exports=function(t){var e=t._fullLayout._infolayer.selectAll(&quot;.rangeselector&quot;).data(function(t){for(var e=f.list(t,&quot;x&quot;,!0),r=[],n=0;n&lt;e.length;n++){var i=e[n];i.rangeselector&amp;&amp;i.rangeselector.visible&amp;&amp;r.push(i)}return r}(t),y);e.enter().append(&quot;g&quot;).classed(&quot;rangeselector&quot;,!0),e.exit().remove(),e.style({cursor:&quot;pointer&quot;,&quot;pointer-events&quot;:&quot;all&quot;}),e.each((function(e){var r=n.select(this),o=e,f=o.rangeselector,h=r.selectAll(&quot;g.button&quot;).data(l.filterVisible(f.buttons));h.enter().append(&quot;g&quot;).classed(&quot;button&quot;,!0),h.exit().remove(),h.each((function(e){var r=n.select(this),a=v(o,e);e._isActive=function(t,e,r){if(&quot;all&quot;===e.step)return!0===t.autorange;var n=Object.keys(r);return t.range[0]===r[n[0]]&amp;&amp;t.range[1]===r[n[1]]}(o,e,a),r.call(x,f,e),r.call(b,f,e,t),r.on(&quot;click&quot;,(function(){t._dragged||i.call(&quot;_guiRelayout&quot;,t,a)})),r.on(&quot;mouseover&quot;,(function(){e._isHovered=!0,r.call(x,f,e)})),r.on(&quot;mouseout&quot;,(function(){e._isHovered=!1,r.call(x,f,e)}))})),function(t,e,r,i,o){var f=0,h=0,v=r.borderwidth;e.each((function(){var t=n.select(this).select(&quot;.selector-text&quot;),e=r.font.size*p,i=Math.max(e*u.lineCount(t),16)+3;h=Math.max(h,i)})),e.each((function(){var t=n.select(this),e=t.select(&quot;.selector-rect&quot;),i=t.select(&quot;.selector-text&quot;),a=i.node()&amp;&amp;s.bBox(i.node()).width,o=r.font.size*p,l=u.lineCount(i),d=Math.max(a+10,m.minButtonWidth);t.attr(&quot;transform&quot;,c(v+f,v)),e.attr({x:0,y:0,width:d,height:h}),u.positionText(i,d/2,h/2-(l-1)*o/2+3),f+=d+5}));var y=t._fullLayout._size,x=y.l+y.w*r.x,b=y.t+y.h*(1-r.y),_=&quot;left&quot;;l.isRightAnchor(r)&amp;&amp;(x-=f,_=&quot;right&quot;);l.isCenterAnchor(r)&amp;&amp;(x-=f/2,_=&quot;center&quot;);var w=&quot;top&quot;;l.isBottomAnchor(r)&amp;&amp;(b-=h,w=&quot;bottom&quot;);l.isMiddleAnchor(r)&amp;&amp;(b-=h/2,w=&quot;middle&quot;);f=Math.ceil(f),h=Math.ceil(h),x=Math.round(x),b=Math.round(b),a.autoMargin(t,i+&quot;-range-selector&quot;,{x:r.x,y:r.y,l:f*d[_],r:f*g[_],b:h*g[w],t:h*d[w]}),o.attr(&quot;transform&quot;,c(x,b))}(t,h,f,o._name,r)}))}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../drawing&quot;:665,&quot;./constants&quot;:707,&quot;./get_update_object&quot;:710,d3:169}],710:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t,e){var r=t._name,i={};if(&quot;all&quot;===e.step)i[r+&quot;.autorange&quot;]=!0;else{var a=function(t,e){var r,i=t.range,a=new Date(t.r2l(i[1])),o=e.step,s=e.count;switch(e.stepmode){case&quot;backward&quot;:r=t.l2r(+n.time[o].utc.offset(a,-s));break;case&quot;todate&quot;:var l=n.time[o].utc.offset(a,-s);r=t.l2r(+n.time[o].utc.ceil(l))}var c=i[1];return[r,c]}(t,e);i[r+&quot;.range[0]&quot;]=a[0],i[r+&quot;.range[1]&quot;]=a[1]}return i}},{d3:169}],711:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;rangeselector&quot;,schema:{subplots:{xaxis:{rangeselector:t(&quot;./attributes&quot;)}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;)}},{&quot;./attributes&quot;:706,&quot;./defaults&quot;:708,&quot;./draw&quot;:709}],712:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../color/attributes&quot;);e.exports={bgcolor:{valType:&quot;color&quot;,dflt:n.background,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:n.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;integer&quot;,dflt:0,min:0,editType:&quot;plot&quot;},autorange:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:{&quot;range[0]&quot;:void 0,&quot;range[1]&quot;:void 0}},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;calc&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],editType:&quot;calc&quot;,impliedEdits:{autorange:!1}},thickness:{valType:&quot;number&quot;,dflt:.15,min:0,max:1,editType:&quot;plot&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;}},{&quot;../color/attributes&quot;:642}],713:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;).list,i=t(&quot;../../plots/cartesian/autorange&quot;).getAutoRange,a=t(&quot;./constants&quot;);e.exports=function(t){for(var e=n(t,&quot;x&quot;,!0),r=0;r&lt;e.length;r++){var o=e[r],s=o[a.name];s&amp;&amp;s.visible&amp;&amp;s.autorange&amp;&amp;(s._input.autorange=!0,s._input.range=s.range=i(t,o))}}},{&quot;../../plots/cartesian/autorange&quot;:827,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;./constants&quot;:714}],714:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;rangeslider&quot;,containerClassName:&quot;rangeslider-container&quot;,bgClassName:&quot;rangeslider-bg&quot;,rangePlotClassName:&quot;rangeslider-rangeplot&quot;,maskMinClassName:&quot;rangeslider-mask-min&quot;,maskMaxClassName:&quot;rangeslider-mask-max&quot;,slideBoxClassName:&quot;rangeslider-slidebox&quot;,grabberMinClassName:&quot;rangeslider-grabber-min&quot;,grabAreaMinClassName:&quot;rangeslider-grabarea-min&quot;,handleMinClassName:&quot;rangeslider-handle-min&quot;,grabberMaxClassName:&quot;rangeslider-grabber-max&quot;,grabAreaMaxClassName:&quot;rangeslider-grabarea-max&quot;,handleMaxClassName:&quot;rangeslider-handle-max&quot;,maskMinOppAxisClassName:&quot;rangeslider-mask-min-opp-axis&quot;,maskMaxOppAxisClassName:&quot;rangeslider-mask-max-opp-axis&quot;,maskColor:&quot;rgba(0,0,0,0.4)&quot;,maskOppAxisColor:&quot;rgba(0,0,0,0.2)&quot;,slideBoxFill:&quot;transparent&quot;,slideBoxCursor:&quot;ew-resize&quot;,grabAreaFill:&quot;transparent&quot;,grabAreaCursor:&quot;col-resize&quot;,grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},{}],715:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;./oppaxis_attributes&quot;);e.exports=function(t,e,r){var l=t[r],c=e[r];if(l.rangeslider||e._requestRangeslider[c._id]){n.isPlainObject(l.rangeslider)||(l.rangeslider={});var u,f,h=l.rangeslider,p=i.newContainer(c,&quot;rangeslider&quot;);if(_(&quot;visible&quot;)){_(&quot;bgcolor&quot;,e.plot_bgcolor),_(&quot;bordercolor&quot;),_(&quot;borderwidth&quot;),_(&quot;thickness&quot;),_(&quot;autorange&quot;,!c.isValidRange(h.range)),_(&quot;range&quot;);var d=e._subplots;if(d)for(var g=d.cartesian.filter((function(t){return t.substr(0,t.indexOf(&quot;y&quot;))===a.name2id(r)})).map((function(t){return t.substr(t.indexOf(&quot;y&quot;),t.length)})),m=n.simpleMap(g,a.id2name),v=0;v&lt;m.length;v++){var y=m[v];u=h[y]||{},f=i.newContainer(p,y,&quot;yaxis&quot;);var x,b=e[y];u.range&amp;&amp;b.isValidRange(u.range)&amp;&amp;(x=&quot;fixed&quot;),&quot;match&quot;!==w(&quot;rangemode&quot;,x)&amp;&amp;w(&quot;range&quot;,b.range.slice())}p._input=h}}function _(t,e){return n.coerce(h,p,o,t,e)}function w(t,e){return n.coerce(u,f,s,t,e)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;./attributes&quot;:712,&quot;./oppaxis_attributes&quot;:719}],716:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../drawing&quot;),c=t(&quot;../color&quot;),u=t(&quot;../titles&quot;),f=t(&quot;../../plots/cartesian&quot;),h=t(&quot;../../plots/cartesian/axis_ids&quot;),p=t(&quot;../dragelement&quot;),d=t(&quot;../../lib/setcursor&quot;),g=t(&quot;./constants&quot;);function m(t,e,r,n){var i=o.ensureSingle(t,&quot;rect&quot;,g.bgClassName,(function(t){t.attr({x:0,y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})),a=n.borderwidth%2==0?n.borderwidth:n.borderwidth-1,c=-n._offsetShift,u=l.crispRound(e,n.borderwidth);i.attr({width:n._width+a,height:n._height+a,transform:s(c,c),fill:n.bgcolor,stroke:n.bordercolor,&quot;stroke-width&quot;:u})}function v(t,e,r,n){var i=e._fullLayout;o.ensureSingleById(i._topdefs,&quot;clipPath&quot;,n._clipId,(function(t){t.append(&quot;rect&quot;).attr({x:0,y:0})})).select(&quot;rect&quot;).attr({width:n._width,height:n._height})}function y(t,e,r,i){var s,c=e.calcdata,u=t.selectAll(&quot;g.&quot;+g.rangePlotClassName).data(r._subplotsWith,o.identity);u.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return g.rangePlotClassName+&quot; &quot;+t})).call(l.setClipUrl,i._clipId,e),u.order(),u.exit().remove(),u.each((function(t,o){var l=n.select(this),u=0===o,p=h.getFromId(e,t,&quot;y&quot;),d=p._name,g=i[d],m={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:i.range.slice(),calendar:r.calendar},width:i._width,height:i._height,margin:{t:0,b:0,l:0,r:0}},_context:e._context};r.rangebreaks&amp;&amp;(m.layout.xaxis.rangebreaks=r.rangebreaks),m.layout[d]={type:p.type,domain:[0,1],range:&quot;match&quot;!==g.rangemode?g.range.slice():p.range.slice(),calendar:p.calendar},p.rangebreaks&amp;&amp;(m.layout[d].rangebreaks=p.rangebreaks),a.supplyDefaults(m);var v=m._fullLayout.xaxis,y=m._fullLayout[d];v.clearCalc(),v.setScale(),y.clearCalc(),y.setScale();var x={id:t,plotgroup:l,xaxis:v,yaxis:y,isRangePlot:!0};u?s=x:(x.mainplot=&quot;xy&quot;,x.mainplotinfo=s),f.rangePlot(e,x,function(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i=t[n],a=i[0].trace;a.xaxis+a.yaxis===e&amp;&amp;r.push(i)}return r}(c,t))}))}function x(t,e,r,n,i){(o.ensureSingle(t,&quot;rect&quot;,g.maskMinClassName,(function(t){t.attr({x:0,y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;height&quot;,n._height).call(c.fill,g.maskColor),o.ensureSingle(t,&quot;rect&quot;,g.maskMaxClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;height&quot;,n._height).call(c.fill,g.maskColor),&quot;match&quot;!==i.rangemode)&amp;&amp;(o.ensureSingle(t,&quot;rect&quot;,g.maskMinOppAxisClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;width&quot;,n._width).call(c.fill,g.maskOppAxisColor),o.ensureSingle(t,&quot;rect&quot;,g.maskMaxOppAxisClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;width&quot;,n._width).style(&quot;border-top&quot;,g.maskOppBorder).call(c.fill,g.maskOppAxisColor))}function b(t,e,r,n){e._context.staticPlot||o.ensureSingle(t,&quot;rect&quot;,g.slideBoxClassName,(function(t){t.attr({y:0,cursor:g.slideBoxCursor,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr({height:n._height,fill:g.slideBoxFill})}function _(t,e,r,n){var i=o.ensureSingle(t,&quot;g&quot;,g.grabberMinClassName),a=o.ensureSingle(t,&quot;g&quot;,g.grabberMaxClassName),s={x:0,width:g.handleWidth,rx:g.handleRadius,fill:c.background,stroke:c.defaultLine,&quot;stroke-width&quot;:g.handleStrokeWidth,&quot;shape-rendering&quot;:&quot;crispEdges&quot;},l={y:Math.round(n._height/4),height:Math.round(n._height/2)};o.ensureSingle(i,&quot;rect&quot;,g.handleMinClassName,(function(t){t.attr(s)})).attr(l),o.ensureSingle(a,&quot;rect&quot;,g.handleMaxClassName,(function(t){t.attr(s)})).attr(l);var u={width:g.grabAreaWidth,x:0,y:0,fill:g.grabAreaFill,cursor:e._context.staticPlot?void 0:g.grabAreaCursor};o.ensureSingle(i,&quot;rect&quot;,g.grabAreaMinClassName,(function(t){t.attr(u)})).attr(&quot;height&quot;,n._height),o.ensureSingle(a,&quot;rect&quot;,g.grabAreaMaxClassName,(function(t){t.attr(u)})).attr(&quot;height&quot;,n._height)}e.exports=function(t){for(var e=t._fullLayout,r=e._rangeSliderData,a=0;a&lt;r.length;a++){var l=r[a][g.name];l._clipId=l._id+&quot;-&quot;+e._uid}var c=e._infolayer.selectAll(&quot;g.&quot;+g.containerClassName).data(r,(function(t){return t._name}));c.exit().each((function(t){var r=t[g.name];e._topdefs.select(&quot;#&quot;+r._clipId).remove()})).remove(),0!==r.length&amp;&amp;(c.enter().append(&quot;g&quot;).classed(g.containerClassName,!0).attr(&quot;pointer-events&quot;,&quot;all&quot;),c.each((function(r){var a=n.select(this),l=r[g.name],c=e[h.id2name(r.anchor)],f=l[h.id2name(r.anchor)];if(l.range){var w,T=o.simpleMap(l.range,r.r2l),k=o.simpleMap(r.range,r.r2l);w=k[0]&lt;k[1]?[Math.min(T[0],k[0]),Math.max(T[1],k[1])]:[Math.max(T[0],k[0]),Math.min(T[1],k[1])],l.range=l._input.range=o.simpleMap(w,r.l2r)}r.cleanRange(&quot;rangeslider.range&quot;);var M=e._size,A=r.domain;l._width=M.w*(A[1]-A[0]);var S=Math.round(M.l+M.w*A[0]),E=Math.round(M.t+M.h*(1-r._counterDomainMin)+(&quot;bottom&quot;===r.side?r._depth:0)+l._offsetShift+g.extraPad);a.attr(&quot;transform&quot;,s(S,E)),l._rl=o.simpleMap(l.range,r.r2l);var C=l._rl[0],L=l._rl[1],I=L-C;if(l.p2d=function(t){return t/l._width*I+C},l.d2p=function(t){return(t-C)/I*l._width},r.rangebreaks){var P=r.locateBreaks(C,L);if(P.length){var z,O,D=0;for(z=0;z&lt;P.length;z++)D+=(O=P[z]).max-O.min;var R=l._width/(L-C-D),F=[-R*C];for(z=0;z&lt;P.length;z++)O=P[z],F.push(F[F.length-1]-R*(O.max-O.min));for(l.d2p=function(t){for(var e=F[0],r=0;r&lt;P.length;r++){var n=P[r];if(t&gt;=n.max)e=F[r+1];else if(t&lt;n.min)break}return e+R*t},z=0;z&lt;P.length;z++)(O=P[z]).pmin=l.d2p(O.min),O.pmax=l.d2p(O.max);l.p2d=function(t){for(var e=F[0],r=0;r&lt;P.length;r++){var n=P[r];if(t&gt;=n.pmax)e=F[r+1];else if(t&lt;n.pmin)break}return(t-e)/R}}}if(&quot;match&quot;!==f.rangemode){var B=c.r2l(f.range[0]),N=c.r2l(f.range[1])-B;l.d2pOppAxis=function(t){return(t-B)/N*l._height}}a.call(m,t,r,l).call(v,t,r,l).call(y,t,r,l).call(x,t,r,l,f).call(b,t,r,l).call(_,t,r,l),function(t,e,r,a){if(e._context.staticPlot)return;var s=t.select(&quot;rect.&quot;+g.slideBoxClassName).node(),l=t.select(&quot;rect.&quot;+g.grabAreaMinClassName).node(),c=t.select(&quot;rect.&quot;+g.grabAreaMaxClassName).node();function u(){var u=n.event,f=u.target,h=u.clientX||u.touches[0].clientX,g=h-t.node().getBoundingClientRect().left,m=a.d2p(r._rl[0]),v=a.d2p(r._rl[1]),y=p.coverSlip();function x(t){var u,p,x,b=+(t.clientX||t.touches[0].clientX)-h;switch(f){case s:x=&quot;ew-resize&quot;,u=m+b,p=v+b;break;case l:x=&quot;col-resize&quot;,u=m+b,p=v;break;case c:x=&quot;col-resize&quot;,u=m,p=v+b;break;default:x=&quot;ew-resize&quot;,u=g,p=g+b}if(p&lt;u){var _=p;p=u,u=_}a._pixelMin=u,a._pixelMax=p,d(n.select(y),x),function(t,e,r,n){function a(t){return r.l2r(o.constrain(t,n._rl[0],n._rl[1]))}var s=a(n.p2d(n._pixelMin)),l=a(n.p2d(n._pixelMax));window.requestAnimationFrame((function(){i.call(&quot;_guiRelayout&quot;,e,r._name+&quot;.range&quot;,[s,l])}))}(0,e,r,a)}function b(){y.removeEventListener(&quot;mousemove&quot;,x),y.removeEventListener(&quot;mouseup&quot;,b),this.removeEventListener(&quot;touchmove&quot;,x),this.removeEventListener(&quot;touchend&quot;,b),o.removeElement(y)}this.addEventListener(&quot;touchmove&quot;,x),this.addEventListener(&quot;touchend&quot;,b),y.addEventListener(&quot;mousemove&quot;,x),y.addEventListener(&quot;mouseup&quot;,b)}t.on(&quot;mousedown&quot;,u),t.on(&quot;touchstart&quot;,u)}(a,t,r,l),function(t,e,r,n,i,a){var l=g.handleWidth/2;function c(t){return o.constrain(t,0,n._width)}function u(t){return o.constrain(t,0,n._height)}function f(t){return o.constrain(t,-l,n._width+l)}var h=c(n.d2p(r._rl[0])),p=c(n.d2p(r._rl[1]));if(t.select(&quot;rect.&quot;+g.slideBoxClassName).attr(&quot;x&quot;,h).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.maskMinClassName).attr(&quot;width&quot;,h),t.select(&quot;rect.&quot;+g.maskMaxClassName).attr(&quot;x&quot;,p).attr(&quot;width&quot;,n._width-p),&quot;match&quot;!==a.rangemode){var d=n._height-u(n.d2pOppAxis(i._rl[1])),m=n._height-u(n.d2pOppAxis(i._rl[0]));t.select(&quot;rect.&quot;+g.maskMinOppAxisClassName).attr(&quot;x&quot;,h).attr(&quot;height&quot;,d).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.maskMaxOppAxisClassName).attr(&quot;x&quot;,h).attr(&quot;y&quot;,m).attr(&quot;height&quot;,n._height-m).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.slideBoxClassName).attr(&quot;y&quot;,d).attr(&quot;height&quot;,m-d)}var v=Math.round(f(h-l))-.5,y=Math.round(f(p-l))+.5;t.select(&quot;g.&quot;+g.grabberMinClassName).attr(&quot;transform&quot;,s(v,.5)),t.select(&quot;g.&quot;+g.grabberMaxClassName).attr(&quot;transform&quot;,s(y,.5))}(a,0,r,l,c,f),&quot;bottom&quot;===r.side&amp;&amp;u.draw(t,r._id+&quot;title&quot;,{propContainer:r,propName:r._name+&quot;.title&quot;,placeholder:e._dfltTitle.x,attributes:{x:r._offset+r._length/2,y:E+l._height+l._offsetShift+10+1.5*r.title.font.size,&quot;text-anchor&quot;:&quot;middle&quot;}})})))}},{&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../plots/cartesian&quot;:841,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../titles&quot;:738,&quot;./constants&quot;:714,d3:169}],717:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;),i=t(&quot;../../lib/svg_text_utils&quot;),a=t(&quot;./constants&quot;),o=t(&quot;../../constants/alignment&quot;).LINE_SPACING,s=a.name;function l(t){var e=t&amp;&amp;t[s];return e&amp;&amp;e.visible}r.isVisible=l,r.makeData=function(t){var e=n.list({_fullLayout:t},&quot;x&quot;,!0),r=t.margin,i=[];if(!t._has(&quot;gl2d&quot;))for(var a=0;a&lt;e.length;a++){var o=e[a];if(l(o)){i.push(o);var c=o[s];c._id=s+o._id,c._height=(t.height-r.b-r.t)*c.thickness,c._offsetShift=Math.floor(c.borderwidth/2)}}t._rangeSliderData=i},r.autoMarginOpts=function(t,e){var r=t._fullLayout,n=e[s],l=e._id.charAt(0),c=0,u=0;&quot;bottom&quot;===e.side&amp;&amp;(c=e._depth,e.title.text!==r._dfltTitle[l]&amp;&amp;(u=1.5*e.title.font.size+10+n._offsetShift,u+=(e.title.text.match(i.BR_TAG_ALL)||[]).length*e.title.font.size*o));return{x:0,y:e._counterDomainMin,l:0,r:0,t:0,b:n._height+c+Math.max(r.margin.b,u),pad:a.extraPad+2*n._offsetShift}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;./constants&quot;:714}],718:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./oppaxis_attributes&quot;),o=t(&quot;./helpers&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;rangeslider&quot;,schema:{subplots:{xaxis:{rangeslider:n.extendFlat({},i,{yaxis:a})}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:t(&quot;./draw&quot;),isVisible:o.isVisible,makeData:o.makeData,autoMarginOpts:o.autoMarginOpts}},{&quot;../../lib&quot;:778,&quot;./attributes&quot;:712,&quot;./calc_autorange&quot;:713,&quot;./defaults&quot;:715,&quot;./draw&quot;:716,&quot;./helpers&quot;:717,&quot;./oppaxis_attributes&quot;:719}],719:[function(t,e,r){&quot;use strict&quot;;e.exports={_isSubplotObj:!0,rangemode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;fixed&quot;,&quot;match&quot;],dflt:&quot;match&quot;,editType:&quot;calc&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;},{valType:&quot;any&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},editType:&quot;calc&quot;}},{}],720:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/attributes&quot;),i=t(&quot;../../traces/scatter/attributes&quot;).line,a=t(&quot;../drawing/attributes&quot;).dash,o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=s(&quot;shape&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;circle&quot;,&quot;rect&quot;,&quot;path&quot;,&quot;line&quot;],editType:&quot;calc+arraydraw&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;arraydraw&quot;},xref:o({},n.xref,{}),xsizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;pixel&quot;],dflt:&quot;scaled&quot;,editType:&quot;calc+arraydraw&quot;},xanchor:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},x0:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},x1:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},yref:o({},n.yref,{}),ysizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;pixel&quot;],dflt:&quot;scaled&quot;,editType:&quot;calc+arraydraw&quot;},yanchor:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},y0:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},y1:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},path:{valType:&quot;string&quot;,editType:&quot;calc+arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},line:{color:o({},i.color,{editType:&quot;arraydraw&quot;}),width:o({},i.width,{editType:&quot;calc+arraydraw&quot;}),dash:o({},a,{editType:&quot;arraydraw&quot;}),editType:&quot;calc+arraydraw&quot;},fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},fillrule:{valType:&quot;enumerated&quot;,values:[&quot;evenodd&quot;,&quot;nonzero&quot;],dflt:&quot;evenodd&quot;,editType:&quot;arraydraw&quot;},editable:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc+arraydraw&quot;},editType:&quot;arraydraw&quot;})},{&quot;../../constants/axis_placeable_objects&quot;:746,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../../traces/scatter/attributes&quot;:1187,&quot;../annotations/attributes&quot;:626,&quot;../drawing/attributes&quot;:664}],721:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;./constants&quot;),o=t(&quot;./helpers&quot;);function s(t){return c(t.line.width,t.xsizemode,t.x0,t.x1,t.path,!1)}function l(t){return c(t.line.width,t.ysizemode,t.y0,t.y1,t.path,!0)}function c(t,e,r,i,s,l){var c=t/2,u=l;if(&quot;pixel&quot;===e){var f=s?o.extractPathCoords(s,l?a.paramIsY:a.paramIsX):[r,i],h=n.aggNums(Math.max,null,f),p=n.aggNums(Math.min,null,f),d=p&lt;0?Math.abs(p)+c:c,g=h&gt;0?h+c:c;return{ppad:c,ppadplus:u?d:g,ppadminus:u?g:d}}return{ppad:c}}function u(t,e,r,n,i){var s=&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?t.r2c:t.d2c;if(void 0!==e)return[s(e),s(r)];if(n){var l,c,u,f,h=1/0,p=-1/0,d=n.match(a.segmentRE);for(&quot;date&quot;===t.type&amp;&amp;(s=o.decodeDate(s)),l=0;l&lt;d.length;l++)void 0!==(c=i[d[l].charAt(0)].drawn)&amp;&amp;(!(u=d[l].substr(1).match(a.paramRE))||u.length&lt;c||((f=s(u[c]))&lt;h&amp;&amp;(h=f),f&gt;p&amp;&amp;(p=f)));return p&gt;=h?[h,p]:void 0}}e.exports=function(t){var e=t._fullLayout,r=n.filterVisible(e.shapes);if(r.length&amp;&amp;t._fullData.length)for(var o=0;o&lt;r.length;o++){var c,f,h=r[o];h._extremes={};var p=i.getRefType(h.xref),d=i.getRefType(h.yref);if(&quot;paper&quot;!==h.xref&amp;&amp;&quot;domain&quot;!==p){var g=&quot;pixel&quot;===h.xsizemode?h.xanchor:h.x0,m=&quot;pixel&quot;===h.xsizemode?h.xanchor:h.x1;(f=u(c=i.getFromId(t,h.xref),g,m,h.path,a.paramIsX))&amp;&amp;(h._extremes[c._id]=i.findExtremes(c,f,s(h)))}if(&quot;paper&quot;!==h.yref&amp;&amp;&quot;domain&quot;!==d){var v=&quot;pixel&quot;===h.ysizemode?h.yanchor:h.y0,y=&quot;pixel&quot;===h.ysizemode?h.yanchor:h.y1;(f=u(c=i.getFromId(t,h.yref),v,y,h.path,a.paramIsY))&amp;&amp;(h._extremes[c._id]=i.findExtremes(c,f,l(h)))}}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./constants&quot;:722,&quot;./helpers&quot;:731}],722:[function(t,e,r){&quot;use strict&quot;;e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},{}],723:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;./helpers&quot;);function l(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}if(a(&quot;visible&quot;)){var l=a(&quot;path&quot;),c=a(&quot;type&quot;,l?&quot;path&quot;:&quot;rect&quot;);&quot;path&quot;!==e.type&amp;&amp;delete e.path,a(&quot;editable&quot;),a(&quot;layer&quot;),a(&quot;opacity&quot;),a(&quot;fillcolor&quot;),a(&quot;fillrule&quot;),a(&quot;line.width&quot;)&amp;&amp;(a(&quot;line.color&quot;),a(&quot;line.dash&quot;));for(var u=a(&quot;xsizemode&quot;),f=a(&quot;ysizemode&quot;),h=[&quot;x&quot;,&quot;y&quot;],p=0;p&lt;2;p++){var d,g,m,v=h[p],y=v+&quot;anchor&quot;,x=&quot;x&quot;===v?u:f,b={_fullLayout:r},_=i.coerceRef(t,e,b,v,void 0,&quot;paper&quot;);if(&quot;range&quot;===i.getRefType(_)?((d=i.getFromId(b,_))._shapeIndices.push(e._index),m=s.rangeToShapePosition(d),g=s.shapePositionToRange(d)):g=m=n.identity,&quot;path&quot;!==c){var w=v+&quot;0&quot;,T=v+&quot;1&quot;,k=t[w],M=t[T];t[w]=g(t[w],!0),t[T]=g(t[T],!0),&quot;pixel&quot;===x?(a(w,0),a(T,10)):(i.coercePosition(e,b,a,_,w,.25),i.coercePosition(e,b,a,_,T,.75)),e[w]=m(e[w]),e[T]=m(e[T]),t[w]=k,t[T]=M}if(&quot;pixel&quot;===x){var A=t[y];t[y]=g(t[y],!0),i.coercePosition(e,b,a,_,y,.25),e[y]=m(e[y]),t[y]=A}}&quot;path&quot;===c?a(&quot;path&quot;):n.noneOrAll(t,e,[&quot;x0&quot;,&quot;x1&quot;,&quot;y0&quot;,&quot;y1&quot;])}}e.exports=function(t,e){a(t,e,{name:&quot;shapes&quot;,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:720,&quot;./helpers&quot;:731}],724:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;./draw_newshape/helpers&quot;).readPaths,s=t(&quot;./draw_newshape/display_outlines&quot;),l=t(&quot;../../plots/cartesian/handle_outline&quot;).clearOutlineControllers,c=t(&quot;../color&quot;),u=t(&quot;../drawing&quot;),f=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,h=t(&quot;../dragelement&quot;),p=t(&quot;../../lib/setcursor&quot;),d=t(&quot;./constants&quot;),g=t(&quot;./helpers&quot;);function m(t){var e=t._fullLayout;for(var r in e._shapeUpperLayer.selectAll(&quot;path&quot;).remove(),e._shapeLowerLayer.selectAll(&quot;path&quot;).remove(),e._plots){var n=e._plots[r].shapelayer;n&amp;&amp;n.selectAll(&quot;path&quot;).remove()}for(var i=0;i&lt;e.shapes.length;i++)e.shapes[i].visible&amp;&amp;x(t,i)}function v(t){return!!t._fullLayout._drawing}function y(t){return!t._context.edits.shapePosition}function x(t,e){t._fullLayout._paperdiv.selectAll('.shapelayer [data-index=&quot;'+e+'&quot;]').remove();var r=g.makeOptionsAndPlotinfo(t,e),l=r.options,x=r.plotinfo;if(l._input&amp;&amp;!1!==l.visible)if(&quot;below&quot;!==l.layer)k(t._fullLayout._shapeUpperLayer);else if(&quot;paper&quot;===l.xref||&quot;paper&quot;===l.yref)k(t._fullLayout._shapeLowerLayer);else{if(x._hadPlotinfo)k((x.mainplotinfo||x).shapelayer);else k(t._fullLayout._shapeLowerLayer)}function k(r){var k=_(t,l),M={&quot;data-index&quot;:e,&quot;fill-rule&quot;:l.fillrule,d:k},A=l.opacity,S=l.fillcolor,E=l.line.width?l.line.color:&quot;rgba(0,0,0,0)&quot;,C=l.line.width,L=l.line.dash;C||!0!==l.editable||(C=5,L=&quot;solid&quot;);var I=&quot;Z&quot;!==k[k.length-1],P=y(t)&amp;&amp;l.editable&amp;&amp;t._fullLayout._activeShapeIndex===e;P&amp;&amp;(S=I?&quot;rgba(0,0,0,0)&quot;:t._fullLayout.activeshape.fillcolor,A=t._fullLayout.activeshape.opacity);var z,O=r.append(&quot;path&quot;).attr(M).style(&quot;opacity&quot;,A).call(c.stroke,E).call(c.fill,S).call(u.dashLine,L,C);if(b(O,t,l),(P||t._context.edits.shapePosition)&amp;&amp;(z=f(t.layout,&quot;shapes&quot;,l)),P){O.style({cursor:&quot;move&quot;});var D={element:O.node(),plotinfo:x,gd:t,editHelpers:z,isActiveShape:!0},R=o(k,t);s(R,O,D)}else t._context.edits.shapePosition?function(t,e,r,o,s,l){var c,f,m,y,x,T,k,M,A,S,E,C,L,I,P,z,O=&quot;pixel&quot;===r.xsizemode,D=&quot;pixel&quot;===r.ysizemode,R=&quot;line&quot;===r.type,F=&quot;path&quot;===r.type,B=l.modifyItem,N=a.getFromId(t,r.xref),j=a.getRefType(r.xref),U=a.getFromId(t,r.yref),V=a.getRefType(r.yref),q=g.getDataToPixel(t,N,!1,j),H=g.getDataToPixel(t,U,!0,V),G=g.getPixelToData(t,N,!1,j),Y=g.getPixelToData(t,U,!0,V),W=R?function(){var t=Math.max(r.line.width,10),n=s.append(&quot;g&quot;).attr(&quot;data-index&quot;,o);n.append(&quot;path&quot;).attr(&quot;d&quot;,e.attr(&quot;d&quot;)).style({cursor:&quot;move&quot;,&quot;stroke-width&quot;:t,&quot;stroke-opacity&quot;:&quot;0&quot;});var i={&quot;fill-opacity&quot;:&quot;0&quot;},a=Math.max(t/2,10);return n.append(&quot;circle&quot;).attr({&quot;data-line-point&quot;:&quot;start-point&quot;,cx:O?q(r.xanchor)+r.x0:q(r.x0),cy:D?H(r.yanchor)-r.y0:H(r.y0),r:a}).style(i).classed(&quot;cursor-grab&quot;,!0),n.append(&quot;circle&quot;).attr({&quot;data-line-point&quot;:&quot;end-point&quot;,cx:O?q(r.xanchor)+r.x1:q(r.x1),cy:D?H(r.yanchor)-r.y1:H(r.y1),r:a}).style(i).classed(&quot;cursor-grab&quot;,!0),n}():e,X={element:W.node(),gd:t,prepFn:function(n){if(v(t))return;O&amp;&amp;(x=q(r.xanchor));D&amp;&amp;(T=H(r.yanchor));&quot;path&quot;===r.type?P=r.path:(c=O?r.x0:q(r.x0),f=D?r.y0:H(r.y0),m=O?r.x1:q(r.x1),y=D?r.y1:H(r.y1));c&lt;m?(A=c,L=&quot;x0&quot;,S=m,I=&quot;x1&quot;):(A=m,L=&quot;x1&quot;,S=c,I=&quot;x0&quot;);!D&amp;&amp;f&lt;y||D&amp;&amp;f&gt;y?(k=f,E=&quot;y0&quot;,M=y,C=&quot;y1&quot;):(k=y,E=&quot;y1&quot;,M=f,C=&quot;y0&quot;);Z(n),Q(s,r),function(t,e,r){var n=e.xref,i=e.yref,o=a.getFromId(r,n),s=a.getFromId(r,i),l=&quot;&quot;;&quot;paper&quot;===n||o.autorange||(l+=n);&quot;paper&quot;===i||s.autorange||(l+=i);u.setClipUrl(t,l?&quot;clip&quot;+r._fullLayout._uid+l:null,r)}(e,r,t),X.moveFn=&quot;move&quot;===z?J:K,X.altKey=n.altKey},doneFn:function(){if(v(t))return;p(e),$(s),b(e,t,r),n.call(&quot;_guiRelayout&quot;,t,l.getUpdateObj())},clickFn:function(){if(v(t))return;$(s)}};function Z(r){if(v(t))z=null;else if(R)z=&quot;path&quot;===r.target.tagName?&quot;move&quot;:&quot;start-point&quot;===r.target.attributes[&quot;data-line-point&quot;].value?&quot;resize-over-start-point&quot;:&quot;resize-over-end-point&quot;;else{var n=X.element.getBoundingClientRect(),i=n.right-n.left,a=n.bottom-n.top,o=r.clientX-n.left,s=r.clientY-n.top,l=!F&amp;&amp;i&gt;10&amp;&amp;a&gt;10&amp;&amp;!r.shiftKey?h.getCursor(o/i,1-s/a):&quot;move&quot;;p(e,l),z=l.split(&quot;-&quot;)[0]}}function J(n,i){if(&quot;path&quot;===r.type){var a=function(t){return t},o=a,l=a;O?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(o=function(t){return G(q(t)+n)},N&amp;&amp;&quot;date&quot;===N.type&amp;&amp;(o=g.encodeDate(o))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(l=function(t){return Y(H(t)+i)},U&amp;&amp;&quot;date&quot;===U.type&amp;&amp;(l=g.encodeDate(l))),B(&quot;path&quot;,r.path=w(P,o,l))}else O?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(B(&quot;x0&quot;,r.x0=G(c+n)),B(&quot;x1&quot;,r.x1=G(m+n))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(B(&quot;y0&quot;,r.y0=Y(f+i)),B(&quot;y1&quot;,r.y1=Y(y+i)));e.attr(&quot;d&quot;,_(t,r)),Q(s,r)}function K(n,i){if(F){var a=function(t){return t},o=a,l=a;O?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(o=function(t){return G(q(t)+n)},N&amp;&amp;&quot;date&quot;===N.type&amp;&amp;(o=g.encodeDate(o))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(l=function(t){return Y(H(t)+i)},U&amp;&amp;&quot;date&quot;===U.type&amp;&amp;(l=g.encodeDate(l))),B(&quot;path&quot;,r.path=w(P,o,l))}else if(R){if(&quot;resize-over-start-point&quot;===z){var u=c+n,h=D?f-i:f+i;B(&quot;x0&quot;,r.x0=O?u:G(u)),B(&quot;y0&quot;,r.y0=D?h:Y(h))}else if(&quot;resize-over-end-point&quot;===z){var p=m+n,d=D?y-i:y+i;B(&quot;x1&quot;,r.x1=O?p:G(p)),B(&quot;y1&quot;,r.y1=D?d:Y(d))}}else{var v=function(t){return-1!==z.indexOf(t)},b=v(&quot;n&quot;),j=v(&quot;s&quot;),V=v(&quot;w&quot;),W=v(&quot;e&quot;),X=b?k+i:k,Z=j?M+i:M,J=V?A+n:A,K=W?S+n:S;D&amp;&amp;(b&amp;&amp;(X=k-i),j&amp;&amp;(Z=M-i)),(!D&amp;&amp;Z-X&gt;10||D&amp;&amp;X-Z&gt;10)&amp;&amp;(B(E,r[E]=D?X:Y(X)),B(C,r[C]=D?Z:Y(Z))),K-J&gt;10&amp;&amp;(B(L,r[L]=O?J:G(J)),B(I,r[I]=O?K:G(K)))}e.attr(&quot;d&quot;,_(t,r)),Q(s,r)}function Q(t,e){(O||D)&amp;&amp;function(){var r=&quot;path&quot;!==e.type,n=t.selectAll(&quot;.visual-cue&quot;).data([0]);n.enter().append(&quot;path&quot;).attr({fill:&quot;#fff&quot;,&quot;fill-rule&quot;:&quot;evenodd&quot;,stroke:&quot;#000&quot;,&quot;stroke-width&quot;:1}).classed(&quot;visual-cue&quot;,!0);var a=q(O?e.xanchor:i.midRange(r?[e.x0,e.x1]:g.extractPathCoords(e.path,d.paramIsX))),o=H(D?e.yanchor:i.midRange(r?[e.y0,e.y1]:g.extractPathCoords(e.path,d.paramIsY)));if(a=g.roundPositionForSharpStrokeRendering(a,1),o=g.roundPositionForSharpStrokeRendering(o,1),O&amp;&amp;D){var s=&quot;M&quot;+(a-1-1)+&quot;,&quot;+(o-1-1)+&quot;h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z&quot;;n.attr(&quot;d&quot;,s)}else if(O){var l=&quot;M&quot;+(a-1-1)+&quot;,&quot;+(o-9-1)+&quot;v18 h2 v-18 Z&quot;;n.attr(&quot;d&quot;,l)}else{var c=&quot;M&quot;+(a-9-1)+&quot;,&quot;+(o-1-1)+&quot;h18 v2 h-18 Z&quot;;n.attr(&quot;d&quot;,c)}}()}function $(t){t.selectAll(&quot;.visual-cue&quot;).remove()}h.init(X),W.node().onmousemove=Z}(t,O,l,e,r,z):!0===l.editable&amp;&amp;O.style(&quot;pointer-events&quot;,I||c.opacity(S)*A&lt;=.5?&quot;stroke&quot;:&quot;all&quot;);O.node().addEventListener(&quot;click&quot;,(function(){return function(t,e){if(!y(t))return;var r=+e.node().getAttribute(&quot;data-index&quot;);if(r&gt;=0){if(r===t._fullLayout._activeShapeIndex)return void T(t);t._fullLayout._activeShapeIndex=r,t._fullLayout._deactivateShape=T,m(t)}}(t,O)}))}}function b(t,e,r){var n=(r.xref+r.yref).replace(/paper/g,&quot;&quot;).replace(/[xyz][1-9]* *domain/g,&quot;&quot;);u.setClipUrl(t,n?&quot;clip&quot;+e._fullLayout._uid+n:null,e)}function _(t,e){var r,n,o,s,l,c,u,f,h=e.type,p=a.getRefType(e.xref),m=a.getRefType(e.yref),v=a.getFromId(t,e.xref),y=a.getFromId(t,e.yref),x=t._fullLayout._size;if(v?&quot;domain&quot;===p?n=function(t){return v._offset+v._length*t}:(r=g.shapePositionToRange(v),n=function(t){return v._offset+v.r2p(r(t,!0))}):n=function(t){return x.l+x.w*t},y?&quot;domain&quot;===m?s=function(t){return y._offset+y._length*(1-t)}:(o=g.shapePositionToRange(y),s=function(t){return y._offset+y.r2p(o(t,!0))}):s=function(t){return x.t+x.h*(1-t)},&quot;path&quot;===h)return v&amp;&amp;&quot;date&quot;===v.type&amp;&amp;(n=g.decodeDate(n)),y&amp;&amp;&quot;date&quot;===y.type&amp;&amp;(s=g.decodeDate(s)),function(t,e,r){var n=t.path,a=t.xsizemode,o=t.ysizemode,s=t.xanchor,l=t.yanchor;return n.replace(d.segmentRE,(function(t){var n=0,c=t.charAt(0),u=d.paramIsX[c],f=d.paramIsY[c],h=d.numParams[c],p=t.substr(1).replace(d.paramRE,(function(t){return u[n]?t=&quot;pixel&quot;===a?e(s)+Number(t):e(t):f[n]&amp;&amp;(t=&quot;pixel&quot;===o?r(l)-Number(t):r(t)),++n&gt;h&amp;&amp;(t=&quot;X&quot;),t}));return n&gt;h&amp;&amp;(p=p.replace(/[\s,]*X.*/,&quot;&quot;),i.log(&quot;Ignoring extra params in segment &quot;+t)),c+p}))}(e,n,s);if(&quot;pixel&quot;===e.xsizemode){var b=n(e.xanchor);l=b+e.x0,c=b+e.x1}else l=n(e.x0),c=n(e.x1);if(&quot;pixel&quot;===e.ysizemode){var _=s(e.yanchor);u=_-e.y0,f=_-e.y1}else u=s(e.y0),f=s(e.y1);if(&quot;line&quot;===h)return&quot;M&quot;+l+&quot;,&quot;+u+&quot;L&quot;+c+&quot;,&quot;+f;if(&quot;rect&quot;===h)return&quot;M&quot;+l+&quot;,&quot;+u+&quot;H&quot;+c+&quot;V&quot;+f+&quot;H&quot;+l+&quot;Z&quot;;var w=(l+c)/2,T=(u+f)/2,k=Math.abs(w-l),M=Math.abs(T-u),A=&quot;A&quot;+k+&quot;,&quot;+M,S=w+k+&quot;,&quot;+T;return&quot;M&quot;+S+A+&quot; 0 1,1 &quot;+(w+&quot;,&quot;+(T-M))+A+&quot; 0 0,1 &quot;+S+&quot;Z&quot;}function w(t,e,r){return t.replace(d.segmentRE,(function(t){var n=0,i=t.charAt(0),a=d.paramIsX[i],o=d.paramIsY[i],s=d.numParams[i];return i+t.substr(1).replace(d.paramRE,(function(t){return n&gt;=s||(a[n]?t=e(t):o[n]&amp;&amp;(t=r(t)),n++),t}))}))}function T(t){y(t)&amp;&amp;(t._fullLayout._activeShapeIndex&gt;=0&amp;&amp;(l(t),delete t._fullLayout._activeShapeIndex,m(t)))}e.exports={draw:m,drawOne:x,eraseActiveShape:function(t){if(!y(t))return;l(t);var e=t._fullLayout._activeShapeIndex,r=(t.layout||{}).shapes||[];if(e&lt;r.length){for(var i=[],a=0;a&lt;r.length;a++)a!==e&amp;&amp;i.push(r[a]);delete t._fullLayout._activeShapeIndex,n.call(&quot;_guiRelayout&quot;,t,{shapes:i})}}}},{&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/handle_outline&quot;:838,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;./constants&quot;:722,&quot;./draw_newshape/display_outlines&quot;:728,&quot;./draw_newshape/helpers&quot;:729,&quot;./helpers&quot;:731}],725:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../drawing/attributes&quot;).dash,i=t(&quot;../../../lib/extend&quot;).extendFlat;e.exports={newshape:{line:{color:{valType:&quot;color&quot;,editType:&quot;none&quot;},width:{valType:&quot;number&quot;,min:0,dflt:4,editType:&quot;none&quot;},dash:i({},n,{dflt:&quot;solid&quot;,editType:&quot;none&quot;}),editType:&quot;none&quot;},fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;none&quot;},fillrule:{valType:&quot;enumerated&quot;,values:[&quot;evenodd&quot;,&quot;nonzero&quot;],dflt:&quot;evenodd&quot;,editType:&quot;none&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;none&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;none&quot;},drawdirection:{valType:&quot;enumerated&quot;,values:[&quot;ortho&quot;,&quot;horizontal&quot;,&quot;vertical&quot;,&quot;diagonal&quot;],dflt:&quot;diagonal&quot;,editType:&quot;none&quot;},editType:&quot;none&quot;},activeshape:{fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgb(255,0,255)&quot;,editType:&quot;none&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;none&quot;},editType:&quot;none&quot;}}},{&quot;../../../lib/extend&quot;:768,&quot;../../drawing/attributes&quot;:664}],726:[function(t,e,r){&quot;use strict&quot;;e.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},{}],727:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../color&quot;);e.exports=function(t,e,r){if(r(&quot;newshape.drawdirection&quot;),r(&quot;newshape.layer&quot;),r(&quot;newshape.fillcolor&quot;),r(&quot;newshape.fillrule&quot;),r(&quot;newshape.opacity&quot;),r(&quot;newshape.line.width&quot;)){var i=(t||{}).plot_bgcolor||&quot;#FFF&quot;;r(&quot;newshape.line.color&quot;,n.contrast(i)),r(&quot;newshape.line.dash&quot;)}r(&quot;activeshape.fillcolor&quot;),r(&quot;activeshape.opacity&quot;)}},{&quot;../../color&quot;:643}],728:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../dragelement&quot;),i=t(&quot;../../dragelement/helpers&quot;).drawMode,a=t(&quot;../../../registry&quot;),o=t(&quot;./constants&quot;),s=o.i000,l=o.i090,c=o.i180,u=o.i270,f=t(&quot;../../../plots/cartesian/handle_outline&quot;).clearOutlineControllers,h=t(&quot;./helpers&quot;),p=h.pointsShapeRectangle,d=h.pointsShapeEllipse,g=h.writePaths,m=t(&quot;./newshapes&quot;);e.exports=function t(e,r,o,h){h||(h=0);var v=o.gd;function y(){t(e,r,o,h++),d(e[0])&amp;&amp;x({redrawing:!0})}function x(t){o.isActiveShape=!1;var e=m(r,o);Object.keys(e).length&amp;&amp;a.call((t||{}).redrawing?&quot;relayout&quot;:&quot;_guiRelayout&quot;,v,e)}var b,_,w,T,k,M=o.isActiveShape,A=v._fullLayout._zoomlayer,S=o.dragmode;(i(S)?v._fullLayout._drawing=!0:v._fullLayout._activeShapeIndex&gt;=0&amp;&amp;f(v),r.attr(&quot;d&quot;,g(e)),M&amp;&amp;!h)&amp;&amp;(k=function(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r];t[r]=[];for(var i=0;i&lt;n.length;i++){t[r][i]=[];for(var a=0;a&lt;n[i].length;a++)t[r][i][a]=n[i][a]}}return t}([],e),function(t){b=[];for(var r=0;r&lt;e.length;r++){var i=e[r],a=!p(i)&amp;&amp;d(i);b[r]=[];for(var o=0;o&lt;i.length;o++)if(&quot;Z&quot;!==i[o][0]&amp;&amp;(!a||o===s||o===l||o===c||o===u)){var f=i[o][1],h=i[o][2],g=t.append(&quot;circle&quot;).classed(&quot;cursor-grab&quot;,!0).attr(&quot;data-i&quot;,r).attr(&quot;data-j&quot;,o).attr(&quot;cx&quot;,f).attr(&quot;cy&quot;,h).attr(&quot;r&quot;,4).style({&quot;mix-blend-mode&quot;:&quot;luminosity&quot;,fill:&quot;black&quot;,stroke:&quot;white&quot;,&quot;stroke-width&quot;:1});b[r][o]={element:g.node(),gd:v,prepFn:E,doneFn:L,clickFn:I},n.init(b[r][o])}}}(A.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;outline-controllers&quot;)),function(){if(_=[],!e.length)return;_[0]={element:r[0][0],gd:v,prepFn:z,doneFn:O},n.init(_[0])}());function E(t){w=+t.srcElement.getAttribute(&quot;data-i&quot;),T=+t.srcElement.getAttribute(&quot;data-j&quot;),b[w][T].moveFn=C}function C(t,r){if(e.length){var n=k[w][T][1],i=k[w][T][2],a=e[w],o=a.length;if(p(a)){for(var s=0;s&lt;o;s++)if(s!==T){var l=a[s];l[1]===a[T][1]&amp;&amp;(l[1]=n+t),l[2]===a[T][2]&amp;&amp;(l[2]=i+r)}if(a[T][1]=n+t,a[T][2]=i+r,!p(a))for(var c=0;c&lt;o;c++)for(var u=0;u&lt;a[c].length;u++)a[c][u]=k[w][c][u]}else a[T][1]=n+t,a[T][2]=i+r;y()}}function L(){x()}function I(t,r){if(2===t){w=+r.srcElement.getAttribute(&quot;data-i&quot;),T=+r.srcElement.getAttribute(&quot;data-j&quot;);var n=e[w];p(n)||d(n)||function(){if(e.length&amp;&amp;e[w]&amp;&amp;e[w].length){for(var t=[],r=0;r&lt;e[w].length;r++)r!==T&amp;&amp;t.push(e[w][r]);t.length&gt;1&amp;&amp;(2!==t.length||&quot;Z&quot;!==t[1][0])&amp;&amp;(0===T&amp;&amp;(t[0][0]=&quot;M&quot;),e[w]=t,y(),x())}}()}}function P(t,r){!function(t,r){if(e.length)for(var n=0;n&lt;e.length;n++)for(var i=0;i&lt;e[n].length;i++)for(var a=0;a+2&lt;e[n][i].length;a+=2)e[n][i][a+1]=k[n][i][a+1]+t,e[n][i][a+2]=k[n][i][a+2]+r}(t,r),y()}function z(t){(w=+t.srcElement.getAttribute(&quot;data-i&quot;))||(w=0),_[w].moveFn=P}function O(){x()}}},{&quot;../../../plots/cartesian/handle_outline&quot;:838,&quot;../../../registry&quot;:911,&quot;../../dragelement&quot;:662,&quot;../../dragelement/helpers&quot;:661,&quot;./constants&quot;:726,&quot;./helpers&quot;:729,&quot;./newshapes&quot;:730}],729:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-svg-path&quot;),i=t(&quot;./constants&quot;),a=i.CIRCLE_SIDES,o=i.SQRT2,s=t(&quot;../../../plots/cartesian/helpers&quot;),l=s.p2r,c=s.r2p,u=[0,3,4,5,6,1,2],f=[0,3,4,1,2];function h(t,e){return Math.abs(t-e)&lt;=1e-6}function p(t,e){var r=e[1]-t[1],n=e[2]-t[2];return Math.sqrt(r*r+n*n)}r.writePaths=function(t){var e=t.length;if(!e)return&quot;M0,0Z&quot;;for(var r=&quot;&quot;,n=0;n&lt;e;n++)for(var i=t[n].length,a=0;a&lt;i;a++){var o=t[n][a][0];if(&quot;Z&quot;===o)r+=&quot;Z&quot;;else for(var s=t[n][a].length,l=0;l&lt;s;l++){var c=l;&quot;Q&quot;===o||&quot;S&quot;===o?c=f[l]:&quot;C&quot;===o&amp;&amp;(c=u[l]),r+=t[n][a][c],l&gt;0&amp;&amp;l&lt;s-1&amp;&amp;(r+=&quot;,&quot;)}}return r},r.readPaths=function(t,e,r,i){var o,s,u,f=n(t),h=[],p=-1,d=0,g=0,m=function(){s=d,u=g};m();for(var v=0;v&lt;f.length;v++){var y,x,b,_,w=[],T=f[v][0],k=T;switch(T){case&quot;M&quot;:p++,h[p]=[],d=+f[v][1],g=+f[v][2],w.push([k,d,g]),m();break;case&quot;Q&quot;:case&quot;S&quot;:y=+f[v][1],b=+f[v][2],d=+f[v][3],g=+f[v][4],w.push([k,d,g,y,b]);break;case&quot;C&quot;:y=+f[v][1],b=+f[v][2],x=+f[v][3],_=+f[v][4],d=+f[v][5],g=+f[v][6],w.push([k,d,g,y,b,x,_]);break;case&quot;T&quot;:case&quot;L&quot;:d=+f[v][1],g=+f[v][2],w.push([k,d,g]);break;case&quot;H&quot;:k=&quot;L&quot;,d=+f[v][1],w.push([k,d,g]);break;case&quot;V&quot;:k=&quot;L&quot;,g=+f[v][1],w.push([k,d,g]);break;case&quot;A&quot;:k=&quot;L&quot;;var M=+f[v][1],A=+f[v][2];+f[v][4]||(M=-M,A=-A);var S=d-M,E=g;for(o=1;o&lt;=a/2;o++){var C=2*Math.PI*o/a;w.push([k,S+M*Math.cos(C),E+A*Math.sin(C)])}break;case&quot;Z&quot;:d===s&amp;&amp;g===u||(d=s,g=u,w.push([k,d,g]))}for(var L=(r||{}).domain,I=e._fullLayout._size,P=r&amp;&amp;&quot;pixel&quot;===r.xsizemode,z=r&amp;&amp;&quot;pixel&quot;===r.ysizemode,O=!1===i,D=0;D&lt;w.length;D++){for(o=0;o+2&lt;7;o+=2){var R=w[D][o+1],F=w[D][o+2];void 0!==R&amp;&amp;void 0!==F&amp;&amp;(d=R,g=F,r&amp;&amp;(r.xaxis&amp;&amp;r.xaxis.p2r?(O&amp;&amp;(R-=r.xaxis._offset),R=P?c(r.xaxis,r.xanchor)+R:l(r.xaxis,R)):(O&amp;&amp;(R-=I.l),L?R=L.x[0]+R/I.w:R/=I.w),r.yaxis&amp;&amp;r.yaxis.p2r?(O&amp;&amp;(F-=r.yaxis._offset),F=z?c(r.yaxis,r.yanchor)-F:l(r.yaxis,F)):(O&amp;&amp;(F-=I.t),F=L?L.y[1]-F/I.h:1-F/I.h)),w[D][o+1]=R,w[D][o+2]=F)}h[p].push(w[D].slice())}}return h},r.pointsShapeRectangle=function(t){if(5!==t.length)return!1;for(var e=1;e&lt;3;e++){if(!h(t[0][e]-t[1][e],t[3][e]-t[2][e]))return!1;if(!h(t[0][e]-t[3][e],t[1][e]-t[2][e]))return!1}return!(!h(t[0][1],t[1][1])&amp;&amp;!h(t[0][1],t[3][1]))&amp;&amp;!!(p(t[0],t[1])*p(t[0],t[3]))},r.pointsShapeEllipse=function(t){var e=t.length;if(e!==a+1)return!1;e=a;for(var r=0;r&lt;e;r++){var n=(2*e-r)%e,i=(e/2+n)%e,o=(e/2+r)%e;if(!h(p(t[r],t[o]),p(t[n],t[i])))return!1}return!0},r.handleEllipse=function(t,e,n){if(!t)return[e,n];var i=r.ellipseOver({x0:e[0],y0:e[1],x1:n[0],y1:n[1]}),s=(i.x1+i.x0)/2,l=(i.y1+i.y0)/2,c=(i.x1-i.x0)/2,u=(i.y1-i.y0)/2;c||(c=u/=o),u||(u=c/=o);for(var f=[],h=0;h&lt;a;h++){var p=2*h*Math.PI/a;f.push([s+c*Math.cos(p),l+u*Math.sin(p)])}return f},r.ellipseOver=function(t){var e=t.x0,r=t.y0,n=t.x1,i=t.y1,a=n-e,s=i-r,l=((e-=a)+n)/2,c=((r-=s)+i)/2;return{x0:l-(a*=o),y0:c-(s*=o),x1:l+a,y1:c+s}}},{&quot;../../../plots/cartesian/helpers&quot;:839,&quot;./constants&quot;:726,&quot;parse-svg-path&quot;:505}],730:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../dragelement/helpers&quot;),i=n.drawMode,a=n.openMode,o=t(&quot;./constants&quot;),s=o.i000,l=o.i090,c=o.i180,u=o.i270,f=o.cos45,h=o.sin45,p=t(&quot;../../../plots/cartesian/helpers&quot;),d=p.p2r,g=p.r2p,m=t(&quot;../../../plots/cartesian/handle_outline&quot;).clearSelect,v=t(&quot;./helpers&quot;),y=v.readPaths,x=v.writePaths,b=v.ellipseOver;e.exports=function(t,e){if(t.length){var r=t[0][0];if(r){var n=r.getAttribute(&quot;d&quot;),o=e.gd,p=o._fullLayout.newshape,v=e.plotinfo,_=v.xaxis,w=v.yaxis,T=!!v.domain||!v.xaxis,k=!!v.domain||!v.yaxis,M=e.isActiveShape,A=e.dragmode,S=(o.layout||{}).shapes||[];if(!i(A)&amp;&amp;void 0!==M){var E=o._fullLayout._activeShapeIndex;if(E&lt;S.length)switch(o._fullLayout.shapes[E].type){case&quot;rect&quot;:A=&quot;drawrect&quot;;break;case&quot;circle&quot;:A=&quot;drawcircle&quot;;break;case&quot;line&quot;:A=&quot;drawline&quot;;break;case&quot;path&quot;:var C=S[E].path||&quot;&quot;;A=&quot;Z&quot;===C[C.length-1]?&quot;drawclosedpath&quot;:&quot;drawopenpath&quot;}}var L,I=a(A),P=y(n,o,v,M),z={editable:!0,xref:T?&quot;paper&quot;:_._id,yref:k?&quot;paper&quot;:w._id,layer:p.layer,opacity:p.opacity,line:{color:p.line.color,width:p.line.width,dash:p.line.dash}};if(I||(z.fillcolor=p.fillcolor,z.fillrule=p.fillrule),1===P.length&amp;&amp;(L=P[0]),L&amp;&amp;&quot;drawrect&quot;===A)z.type=&quot;rect&quot;,z.x0=L[0][1],z.y0=L[0][2],z.x1=L[2][1],z.y1=L[2][2];else if(L&amp;&amp;&quot;drawline&quot;===A)z.type=&quot;line&quot;,z.x0=L[0][1],z.y0=L[0][2],z.x1=L[1][1],z.y1=L[1][2];else if(L&amp;&amp;&quot;drawcircle&quot;===A){z.type=&quot;circle&quot;;var O=L[s][1],D=L[l][1],R=L[c][1],F=L[u][1],B=L[s][2],N=L[l][2],j=L[c][2],U=L[u][2],V=v.xaxis&amp;&amp;(&quot;date&quot;===v.xaxis.type||&quot;log&quot;===v.xaxis.type),q=v.yaxis&amp;&amp;(&quot;date&quot;===v.yaxis.type||&quot;log&quot;===v.yaxis.type);V&amp;&amp;(O=g(v.xaxis,O),D=g(v.xaxis,D),R=g(v.xaxis,R),F=g(v.xaxis,F)),q&amp;&amp;(B=g(v.yaxis,B),N=g(v.yaxis,N),j=g(v.yaxis,j),U=g(v.yaxis,U));var H=(D+F)/2,G=(B+j)/2,Y=b({x0:H,y0:G,x1:H+(F-D+R-O)/2*f,y1:G+(U-N+j-B)/2*h});V&amp;&amp;(Y.x0=d(v.xaxis,Y.x0),Y.x1=d(v.xaxis,Y.x1)),q&amp;&amp;(Y.y0=d(v.yaxis,Y.y0),Y.y1=d(v.yaxis,Y.y1)),z.x0=Y.x0,z.y0=Y.y0,z.x1=Y.x1,z.y1=Y.y1}else z.type=&quot;path&quot;,_&amp;&amp;w&amp;&amp;function(t,e,r){var n=&quot;date&quot;===e.type,i=&quot;date&quot;===r.type;if(!n&amp;&amp;!i)return t;for(var a=0;a&lt;t.length;a++)for(var o=0;o&lt;t[a].length;o++)for(var s=0;s+2&lt;t[a][o].length;s+=2)n&amp;&amp;(t[a][o][s+1]=t[a][o][s+1].replace(&quot; &quot;,&quot;_&quot;)),i&amp;&amp;(t[a][o][s+2]=t[a][o][s+2].replace(&quot; &quot;,&quot;_&quot;))}(P,_,w),z.path=x(P),L=null;m(o);for(var W=e.editHelpers,X=(W||{}).modifyItem,Z=[],J=0;J&lt;S.length;J++){var K=o._fullLayout.shapes[J];if(Z[J]=K._input,void 0!==M&amp;&amp;J===o._fullLayout._activeShapeIndex){var Q=z;switch(K.type){case&quot;line&quot;:case&quot;rect&quot;:case&quot;circle&quot;:X(&quot;x0&quot;,Q.x0),X(&quot;x1&quot;,Q.x1),X(&quot;y0&quot;,Q.y0),X(&quot;y1&quot;,Q.y1);break;case&quot;path&quot;:X(&quot;path&quot;,Q.path)}}}return void 0===M?(Z.push(z),Z):W?W.getUpdateObj():{}}}}},{&quot;../../../plots/cartesian/handle_outline&quot;:838,&quot;../../../plots/cartesian/helpers&quot;:839,&quot;../../dragelement/helpers&quot;:661,&quot;./constants&quot;:726,&quot;./helpers&quot;:729}],731:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib&quot;);r.rangeToShapePosition=function(t){return&quot;log&quot;===t.type?t.r2d:function(t){return t}},r.shapePositionToRange=function(t){return&quot;log&quot;===t.type?t.d2r:function(t){return t}},r.decodeDate=function(t){return function(e){return e.replace&amp;&amp;(e=e.replace(&quot;_&quot;,&quot; &quot;)),t(e)}},r.encodeDate=function(t){return function(e){return t(e).replace(&quot; &quot;,&quot;_&quot;)}},r.extractPathCoords=function(t,e){var r=[];return t.match(n.segmentRE).forEach((function(t){var a=e[t.charAt(0)].drawn;if(void 0!==a){var o=t.substr(1).match(n.paramRE);!o||o.length&lt;a||r.push(i.cleanNumber(o[a]))}})),r},r.getDataToPixel=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if(&quot;domain&quot;===i)a=function(t){return e._length*(n?1-t:t)+e._offset};else{var s=r.shapePositionToRange(e);a=function(t){return e._offset+e.r2p(s(t,!0))},&quot;date&quot;===e.type&amp;&amp;(a=r.decodeDate(a))}else a=n?function(t){return o.t+o.h*(1-t)}:function(t){return o.l+o.w*t};return a},r.getPixelToData=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if(&quot;domain&quot;===i)a=function(t){var r=(t-e._offset)/e._length;return n?1-r:r};else{var s=r.rangeToShapePosition(e);a=function(t){return s(e.p2r(t-e._offset))}}else a=n?function(t){return 1-(t-o.t)/o.h}:function(t){return(t-o.l)/o.w};return a},r.roundPositionForSharpStrokeRendering=function(t,e){var r=1===Math.round(e%2),n=Math.round(t);return r?n+.5:n},r.makeOptionsAndPlotinfo=function(t,e){var r=t._fullLayout.shapes[e]||{},n=t._fullLayout._plots[r.xref+r.yref];return!!n?n._hadPlotinfo=!0:(n={},r.xref&amp;&amp;&quot;paper&quot;!==r.xref&amp;&amp;(n.xaxis=t._fullLayout[r.xref+&quot;axis&quot;]),r.yref&amp;&amp;&quot;paper&quot;!==r.yref&amp;&amp;(n.yaxis=t._fullLayout[r.yref+&quot;axis&quot;])),n.xsizemode=r.xsizemode,n.ysizemode=r.ysizemode,n.xanchor=r.xanchor,n.yanchor=r.yanchor,{options:r,plotinfo:n}}},{&quot;../../lib&quot;:778,&quot;./constants&quot;:722}],732:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;shapes&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),supplyDrawNewShapeDefaults:t(&quot;./draw_newshape/defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;shapes&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:n.draw,drawOne:n.drawOne}},{&quot;../../plots/cartesian/include_components&quot;:840,&quot;./attributes&quot;:720,&quot;./calc_autorange&quot;:721,&quot;./defaults&quot;:723,&quot;./draw&quot;:724,&quot;./draw_newshape/defaults&quot;:727}],733:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../plots/pad_attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendDeepAll,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../plots/animation_attributes&quot;),l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=t(&quot;./constants&quot;),u=l(&quot;step&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},method:{valType:&quot;enumerated&quot;,values:[&quot;restyle&quot;,&quot;relayout&quot;,&quot;animate&quot;,&quot;update&quot;,&quot;skip&quot;],dflt:&quot;restyle&quot;},args:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},label:{valType:&quot;string&quot;},value:{valType:&quot;string&quot;},execute:{valType:&quot;boolean&quot;,dflt:!0}});e.exports=o(l(&quot;slider&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},active:{valType:&quot;number&quot;,min:0,dflt:0},steps:u,lenmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;fraction&quot;},len:{valType:&quot;number&quot;,min:0,dflt:1},x:{valType:&quot;number&quot;,min:-2,max:3,dflt:0},pad:a(i({editType:&quot;arraydraw&quot;}),{},{t:{dflt:20}}),xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,dflt:0},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;},transition:{duration:{valType:&quot;number&quot;,min:0,dflt:150},easing:{valType:&quot;enumerated&quot;,values:s.transition.easing.values,dflt:&quot;cubic-in-out&quot;}},currentvalue:{visible:{valType:&quot;boolean&quot;,dflt:!0},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},offset:{valType:&quot;number&quot;,dflt:10},prefix:{valType:&quot;string&quot;},suffix:{valType:&quot;string&quot;},font:n({})},font:n({}),activebgcolor:{valType:&quot;color&quot;,dflt:c.gripBgActiveColor},bgcolor:{valType:&quot;color&quot;,dflt:c.railBgColor},bordercolor:{valType:&quot;color&quot;,dflt:c.railBorderColor},borderwidth:{valType:&quot;number&quot;,min:0,dflt:c.railBorderWidth},ticklen:{valType:&quot;number&quot;,min:0,dflt:c.tickLength},tickcolor:{valType:&quot;color&quot;,dflt:c.tickColor},tickwidth:{valType:&quot;number&quot;,min:0,dflt:1},minorticklen:{valType:&quot;number&quot;,min:0,dflt:c.minorTickLength}}),&quot;arraydraw&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/animation_attributes&quot;:822,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/pad_attributes&quot;:890,&quot;./constants&quot;:734}],734:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;sliders&quot;,containerClassName:&quot;slider-container&quot;,groupClassName:&quot;slider-group&quot;,inputAreaClass:&quot;slider-input-area&quot;,railRectClass:&quot;slider-rail-rect&quot;,railTouchRectClass:&quot;slider-rail-touch-rect&quot;,gripRectClass:&quot;slider-grip-rect&quot;,tickRectClass:&quot;slider-tick-rect&quot;,inputProxyClass:&quot;slider-input-proxy&quot;,labelsClass:&quot;slider-labels&quot;,labelGroupClass:&quot;slider-label-group&quot;,labelClass:&quot;slider-label&quot;,currentValueClass:&quot;slider-current-value&quot;,railHeight:5,menuIndexAttrName:&quot;slider-active-index&quot;,autoMarginIdRoot:&quot;slider-&quot;,minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:&quot;#bec8d9&quot;,railBgColor:&quot;#f8fafc&quot;,railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:&quot;#bec8d9&quot;,gripBgColor:&quot;#f6f8fa&quot;,gripBgActiveColor:&quot;#dbdde0&quot;,labelPadding:8,labelOffset:0,tickWidth:1,tickColor:&quot;#333&quot;,tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:&quot;#333&quot;,minorTickLength:4,currentValuePadding:8,currentValueInset:0}},{}],735:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;).name,s=a.steps;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}for(var s=i(t,e,{name:&quot;steps&quot;,handleItemDefaults:c}),l=0,u=0;u&lt;s.length;u++)s[u].visible&amp;&amp;l++;if(l&lt;2?e.visible=!1:o(&quot;visible&quot;)){e._stepCount=l;var f=e._visibleSteps=n.filterVisible(s);(s[o(&quot;active&quot;)]||{}).visible||(e.active=f[0]._index),o(&quot;x&quot;),o(&quot;y&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),o(&quot;xanchor&quot;),o(&quot;yanchor&quot;),o(&quot;len&quot;),o(&quot;lenmode&quot;),o(&quot;pad.t&quot;),o(&quot;pad.r&quot;),o(&quot;pad.b&quot;),o(&quot;pad.l&quot;),n.coerceFont(o,&quot;font&quot;,r.font),o(&quot;currentvalue.visible&quot;)&amp;&amp;(o(&quot;currentvalue.xanchor&quot;),o(&quot;currentvalue.prefix&quot;),o(&quot;currentvalue.suffix&quot;),o(&quot;currentvalue.offset&quot;),n.coerceFont(o,&quot;currentvalue.font&quot;,e.font)),o(&quot;transition.duration&quot;),o(&quot;transition.easing&quot;),o(&quot;bgcolor&quot;),o(&quot;activebgcolor&quot;),o(&quot;bordercolor&quot;),o(&quot;borderwidth&quot;),o(&quot;ticklen&quot;),o(&quot;tickwidth&quot;),o(&quot;tickcolor&quot;),o(&quot;minorticklen&quot;)}}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}if(&quot;skip&quot;===t.method||Array.isArray(t.args)?r(&quot;visible&quot;):e.visible=!1){r(&quot;method&quot;),r(&quot;args&quot;);var i=r(&quot;label&quot;,&quot;step-&quot;+e._index);r(&quot;value&quot;,i),r(&quot;execute&quot;)}}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;./attributes&quot;:733,&quot;./constants&quot;:734}],736:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../color&quot;),o=t(&quot;../drawing&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,f=t(&quot;./constants&quot;),h=t(&quot;../../constants/alignment&quot;),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR;function m(t){return f.autoMarginIdRoot+t._index}function v(t){return t._index}function y(t,e){var r=o.tester.selectAll(&quot;g.&quot;+f.labelGroupClass).data(e._visibleSteps);r.enter().append(&quot;g&quot;).classed(f.labelGroupClass,!0);var a=0,l=0;r.each((function(t){var r=_(n.select(this),{step:t},e).node();if(r){var i=o.bBox(r);l=Math.max(l,i.height),a=Math.max(a,i.width)}})),r.remove();var u=e._dims={};u.inputAreaWidth=Math.max(f.railWidth,f.gripHeight);var h=t._fullLayout._size;u.lx=h.l+h.w*e.x,u.ly=h.t+h.h*(1-e.y),&quot;fraction&quot;===e.lenmode?u.outerLength=Math.round(h.w*e.len):u.outerLength=e.len,u.inputAreaStart=0,u.inputAreaLength=Math.round(u.outerLength-e.pad.l-e.pad.r);var p=(u.inputAreaLength-2*f.stepInset)/(e._stepCount-1),v=a+f.labelPadding;if(u.labelStride=Math.max(1,Math.ceil(v/p)),u.labelHeight=l,u.currentValueMaxWidth=0,u.currentValueHeight=0,u.currentValueTotalHeight=0,u.currentValueMaxLines=1,e.currentvalue.visible){var y=o.tester.append(&quot;g&quot;);r.each((function(t){var r=x(y,e,t.label),n=r.node()&amp;&amp;o.bBox(r.node())||{width:0,height:0},i=c.lineCount(r);u.currentValueMaxWidth=Math.max(u.currentValueMaxWidth,Math.ceil(n.width)),u.currentValueHeight=Math.max(u.currentValueHeight,Math.ceil(n.height)),u.currentValueMaxLines=Math.max(u.currentValueMaxLines,i)})),u.currentValueTotalHeight=u.currentValueHeight+e.currentvalue.offset,y.remove()}u.height=u.currentValueTotalHeight+f.tickOffset+e.ticklen+f.labelOffset+u.labelHeight+e.pad.t+e.pad.b;var b=&quot;left&quot;;s.isRightAnchor(e)&amp;&amp;(u.lx-=u.outerLength,b=&quot;right&quot;),s.isCenterAnchor(e)&amp;&amp;(u.lx-=u.outerLength/2,b=&quot;center&quot;);var w=&quot;top&quot;;s.isBottomAnchor(e)&amp;&amp;(u.ly-=u.height,w=&quot;bottom&quot;),s.isMiddleAnchor(e)&amp;&amp;(u.ly-=u.height/2,w=&quot;middle&quot;),u.outerLength=Math.ceil(u.outerLength),u.height=Math.ceil(u.height),u.lx=Math.round(u.lx),u.ly=Math.round(u.ly);var T={y:e.y,b:u.height*g[w],t:u.height*d[w]};&quot;fraction&quot;===e.lenmode?(T.l=0,T.xl=e.x-e.len*d[b],T.r=0,T.xr=e.x+e.len*g[b]):(T.x=e.x,T.l=u.outerLength*d[b],T.r=u.outerLength*g[b]),i.autoMargin(t,m(e),T)}function x(t,e,r){if(e.currentvalue.visible){var n,i,a=e._dims;switch(e.currentvalue.xanchor){case&quot;right&quot;:n=a.inputAreaLength-f.currentValueInset-a.currentValueMaxWidth,i=&quot;left&quot;;break;case&quot;center&quot;:n=.5*a.inputAreaLength,i=&quot;middle&quot;;break;default:n=f.currentValueInset,i=&quot;left&quot;}var l=s.ensureSingle(t,&quot;text&quot;,f.labelClass,(function(t){t.attr({&quot;text-anchor&quot;:i,&quot;data-notex&quot;:1})})),u=e.currentvalue.prefix?e.currentvalue.prefix:&quot;&quot;;if(&quot;string&quot;==typeof r)u+=r;else{var h=e.steps[e.active].label,d=e._gd._fullLayout._meta;d&amp;&amp;(h=s.templateString(h,d)),u+=h}e.currentvalue.suffix&amp;&amp;(u+=e.currentvalue.suffix),l.call(o.font,e.currentvalue.font).text(u).call(c.convertToTspans,e._gd);var g=c.lineCount(l),m=(a.currentValueMaxLines+1-g)*e.currentvalue.font.size*p;return c.positionText(l,n,m),l}}function b(t,e,r){s.ensureSingle(t,&quot;rect&quot;,f.gripRectClass,(function(n){n.call(M,e,t,r).style(&quot;pointer-events&quot;,&quot;all&quot;)})).attr({width:f.gripWidth,height:f.gripHeight,rx:f.gripRadius,ry:f.gripRadius}).call(a.stroke,r.bordercolor).call(a.fill,r.bgcolor).style(&quot;stroke-width&quot;,r.borderwidth+&quot;px&quot;)}function _(t,e,r){var n=s.ensureSingle(t,&quot;text&quot;,f.labelClass,(function(t){t.attr({&quot;text-anchor&quot;:&quot;middle&quot;,&quot;data-notex&quot;:1})})),i=e.step.label,a=r._gd._fullLayout._meta;return a&amp;&amp;(i=s.templateString(i,a)),n.call(o.font,r.font).text(i).call(c.convertToTspans,r._gd),n}function w(t,e){var r=s.ensureSingle(t,&quot;g&quot;,f.labelsClass),i=e._dims,a=r.selectAll(&quot;g.&quot;+f.labelGroupClass).data(i.labelSteps);a.enter().append(&quot;g&quot;).classed(f.labelGroupClass,!0),a.exit().remove(),a.each((function(t){var r=n.select(this);r.call(_,t,e),o.setTranslate(r,E(e,t.fraction),f.tickOffset+e.ticklen+e.font.size*p+f.labelOffset+i.currentValueTotalHeight)}))}function T(t,e,r,n,i){var a=Math.round(n*(r._stepCount-1)),o=r._visibleSteps[a]._index;o!==r.active&amp;&amp;k(t,e,r,o,!0,i)}function k(t,e,r,n,a,o){var s=r.active;r.active=n,u(t.layout,f.name,r).applyUpdate(&quot;active&quot;,n);var l=r.steps[r.active];e.call(S,r,o),e.call(x,r),t.emit(&quot;plotly_sliderchange&quot;,{slider:r,step:r.steps[r.active],interaction:a,previousActive:s}),l&amp;&amp;l.method&amp;&amp;a&amp;&amp;(e._nextMethod?(e._nextMethod.step=l,e._nextMethod.doCallback=a,e._nextMethod.doTransition=o):(e._nextMethod={step:l,doCallback:a,doTransition:o},e._nextMethodRaf=window.requestAnimationFrame((function(){var r=e._nextMethod.step;r.method&amp;&amp;(r.execute&amp;&amp;i.executeAPICommand(t,r.method,r.args),e._nextMethod=null,e._nextMethodRaf=null)}))))}function M(t,e,r){var i=r.node(),o=n.select(e);function s(){return r.data()[0]}t.on(&quot;mousedown&quot;,(function(){var t=s();e.emit(&quot;plotly_sliderstart&quot;,{slider:t});var l=r.select(&quot;.&quot;+f.gripRectClass);n.event.stopPropagation(),n.event.preventDefault(),l.call(a.fill,t.activebgcolor);var c=C(t,n.mouse(i)[0]);T(e,r,t,c,!0),t._dragging=!0,o.on(&quot;mousemove&quot;,(function(){var t=s(),a=C(t,n.mouse(i)[0]);T(e,r,t,a,!1)})),o.on(&quot;mouseup&quot;,(function(){var t=s();t._dragging=!1,l.call(a.fill,t.bgcolor),o.on(&quot;mouseup&quot;,null),o.on(&quot;mousemove&quot;,null),e.emit(&quot;plotly_sliderend&quot;,{slider:t,step:t.steps[t.active]})}))}))}function A(t,e){var r=t.selectAll(&quot;rect.&quot;+f.tickRectClass).data(e._visibleSteps),i=e._dims;r.enter().append(&quot;rect&quot;).classed(f.tickRectClass,!0),r.exit().remove(),r.attr({width:e.tickwidth+&quot;px&quot;,&quot;shape-rendering&quot;:&quot;crispEdges&quot;}),r.each((function(t,r){var s=r%i.labelStride==0,l=n.select(this);l.attr({height:s?e.ticklen:e.minorticklen}).call(a.fill,e.tickcolor),o.setTranslate(l,E(e,r/(e._stepCount-1))-.5*e.tickwidth,(s?f.tickOffset:f.minorTickOffset)+i.currentValueTotalHeight)}))}function S(t,e,r){for(var n=t.select(&quot;rect.&quot;+f.gripRectClass),i=0,a=0;a&lt;e._stepCount;a++)if(e._visibleSteps[a]._index===e.active){i=a;break}var o=E(e,i/(e._stepCount-1));if(!e._invokingCommand){var s=n;r&amp;&amp;e.transition.duration&gt;0&amp;&amp;(s=s.transition().duration(e.transition.duration).ease(e.transition.easing)),s.attr(&quot;transform&quot;,l(o-.5*f.gripWidth,e._dims.currentValueTotalHeight))}}function E(t,e){var r=t._dims;return r.inputAreaStart+f.stepInset+(r.inputAreaLength-2*f.stepInset)*Math.min(1,Math.max(0,e))}function C(t,e){var r=t._dims;return Math.min(1,Math.max(0,(e-f.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*f.stepInset-2*r.inputAreaStart)))}function L(t,e,r){var n=r._dims,i=s.ensureSingle(t,&quot;rect&quot;,f.railTouchRectClass,(function(n){n.call(M,e,t,r).style(&quot;pointer-events&quot;,&quot;all&quot;)}));i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,f.tickOffset+r.ticklen+n.labelHeight)}).call(a.fill,r.bgcolor).attr(&quot;opacity&quot;,0),o.setTranslate(i,0,n.currentValueTotalHeight)}function I(t,e){var r=e._dims,n=r.inputAreaLength-2*f.railInset,i=s.ensureSingle(t,&quot;rect&quot;,f.railRectClass);i.attr({width:n,height:f.railWidth,rx:f.railRadius,ry:f.railRadius,&quot;shape-rendering&quot;:&quot;crispEdges&quot;}).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;),o.setTranslate(i,f.railInset,.5*(r.inputAreaWidth-f.railWidth)+r.currentValueTotalHeight)}e.exports=function(t){var e=t._fullLayout,r=function(t,e){for(var r=t[f.name],n=[],i=0;i&lt;r.length;i++){var a=r[i];a.visible&amp;&amp;(a._gd=e,n.push(a))}return n}(e,t),a=e._infolayer.selectAll(&quot;g.&quot;+f.containerClassName).data(r.length&gt;0?[0]:[]);function s(e){e._commandObserver&amp;&amp;(e._commandObserver.remove(),delete e._commandObserver),i.autoMargin(t,m(e))}if(a.enter().append(&quot;g&quot;).classed(f.containerClassName,!0).style(&quot;cursor&quot;,&quot;ew-resize&quot;),a.exit().each((function(){n.select(this).selectAll(&quot;g.&quot;+f.groupClassName).each(s)})).remove(),0!==r.length){var l=a.selectAll(&quot;g.&quot;+f.groupClassName).data(r,v);l.enter().append(&quot;g&quot;).classed(f.groupClassName,!0),l.exit().each(s).remove();for(var c=0;c&lt;r.length;c++){var u=r[c];y(t,u)}l.each((function(e){var r=n.select(this);!function(t){var e=t._dims;e.labelSteps=[];for(var r=t._stepCount,n=0;n&lt;r;n+=e.labelStride)e.labelSteps.push({fraction:n/(r-1),step:t._visibleSteps[n]})}(e),i.manageCommandObserver(t,e,e._visibleSteps,(function(e){var n=r.data()[0];n.active!==e.index&amp;&amp;(n._dragging||k(t,r,n,e.index,!1,!0))})),function(t,e,r){(r.steps[r.active]||{}).visible||(r.active=r._visibleSteps[0]._index);e.call(x,r).call(I,r).call(w,r).call(A,r).call(L,t,r).call(b,t,r);var n=r._dims;o.setTranslate(e,n.lx+r.pad.l,n.ly+r.pad.t),e.call(S,r,!1),e.call(x,r)}(t,n.select(this),e)}))}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/plots&quot;:891,&quot;../color&quot;:643,&quot;../drawing&quot;:665,&quot;./constants&quot;:734,d3:169}],737:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);e.exports={moduleType:&quot;component&quot;,name:n.name,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;)}},{&quot;./attributes&quot;:733,&quot;./constants&quot;:734,&quot;./defaults&quot;:735,&quot;./draw&quot;:736}],738:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../drawing&quot;),u=t(&quot;../color&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../constants/interactions&quot;),p=t(&quot;../../constants/alignment&quot;).OPPOSITE_SIDE,d=/ [XY][0-9]* /;e.exports={draw:function(t,e,r){var g,m=r.propContainer,v=r.propName,y=r.placeholder,x=r.traceIndex,b=r.avoid||{},_=r.attributes,w=r.transform,T=r.containerGroup,k=t._fullLayout,M=1,A=!1,S=m.title,E=(S&amp;&amp;S.text?S.text:&quot;&quot;).trim(),C=S&amp;&amp;S.font?S.font:{},L=C.family,I=C.size,P=C.color;&quot;title.text&quot;===v?g=&quot;titleText&quot;:-1!==v.indexOf(&quot;axis&quot;)?g=&quot;axisTitleText&quot;:v.indexOf(!0)&amp;&amp;(g=&quot;colorbarTitleText&quot;);var z=t._context.edits[g];&quot;&quot;===E?M=0:E.replace(d,&quot; % &quot;)===y.replace(d,&quot; % &quot;)&amp;&amp;(M=.2,A=!0,z||(E=&quot;&quot;)),r._meta?E=s.templateString(E,r._meta):k._meta&amp;&amp;(E=s.templateString(E,k._meta));var O=E||z;T||(T=s.ensureSingle(k._infolayer,&quot;g&quot;,&quot;g-&quot;+e));var D=T.selectAll(&quot;text&quot;).data(O?[0]:[]);if(D.enter().append(&quot;text&quot;),D.text(E).attr(&quot;class&quot;,e),D.exit().remove(),!O)return T;function R(t){s.syncOrAsync([F,B],t)}function F(e){var r;return w?(r=&quot;&quot;,w.rotate&amp;&amp;(r+=&quot;rotate(&quot;+[w.rotate,_.x,_.y]+&quot;)&quot;),w.offset&amp;&amp;(r+=l(0,w.offset))):r=null,e.attr(&quot;transform&quot;,r),e.style({&quot;font-family&quot;:L,&quot;font-size&quot;:n.round(I,2)+&quot;px&quot;,fill:u.rgb(P),opacity:M*u.opacity(P),&quot;font-weight&quot;:a.fontWeight}).attr(_).call(f.convertToTspans,t),a.previousPromises(t)}function B(t){var e=n.select(t.node().parentNode);if(b&amp;&amp;b.selection&amp;&amp;b.side&amp;&amp;E){e.attr(&quot;transform&quot;,null);var r=p[b.side],a=&quot;left&quot;===b.side||&quot;top&quot;===b.side?-1:1,o=i(b.pad)?b.pad:2,u=c.bBox(e.node()),f={left:0,top:0,right:k.width,bottom:k.height},h=b.maxShift||a*(f[b.side]-u[b.side]),d=0;if(h&lt;0)d=h;else{var g=b.offsetLeft||0,m=b.offsetTop||0;u.left-=g,u.right-=g,u.top-=m,u.bottom-=m,b.selection.each((function(){var t=c.bBox(this);s.bBoxIntersect(u,t,o)&amp;&amp;(d=Math.max(d,a*(t[b.side]-u[r])+o))})),d=Math.min(h,d)}if(d&gt;0||h&lt;0){var v={left:[-d,0],right:[d,0],top:[0,-d],bottom:[0,d]}[b.side];e.attr(&quot;transform&quot;,l(v[0],v[1]))}}}return D.call(R),z&amp;&amp;(E?D.on(&quot;.opacity&quot;,null):(M=0,A=!0,D.text(y).on(&quot;mouseover.opacity&quot;,(function(){n.select(this).transition().duration(h.SHOW_PLACEHOLDER).style(&quot;opacity&quot;,1)})).on(&quot;mouseout.opacity&quot;,(function(){n.select(this).transition().duration(h.HIDE_PLACEHOLDER).style(&quot;opacity&quot;,0)}))),D.call(f.makeEditable,{gd:t}).on(&quot;edit&quot;,(function(e){void 0!==x?o.call(&quot;_guiRestyle&quot;,t,v,e,x):o.call(&quot;_guiRelayout&quot;,t,v,e)})).on(&quot;cancel&quot;,(function(){this.text(this.attr(&quot;data-unformatted&quot;)).call(R)})).on(&quot;input&quot;,(function(t){this.text(t||&quot; &quot;).call(f.positionText,_.x,_.y)}))),D.classed(&quot;js-placeholder&quot;,A),T}}},{&quot;../../constants/alignment&quot;:745,&quot;../../constants/interactions&quot;:752,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../drawing&quot;:665,d3:169,&quot;fast-isnumeric&quot;:241}],739:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../plots/pad_attributes&quot;),l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=l(&quot;button&quot;,{visible:{valType:&quot;boolean&quot;},method:{valType:&quot;enumerated&quot;,values:[&quot;restyle&quot;,&quot;relayout&quot;,&quot;animate&quot;,&quot;update&quot;,&quot;skip&quot;],dflt:&quot;restyle&quot;},args:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},args2:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},label:{valType:&quot;string&quot;,dflt:&quot;&quot;},execute:{valType:&quot;boolean&quot;,dflt:!0}});e.exports=o(l(&quot;updatemenu&quot;,{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:&quot;boolean&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;dropdown&quot;,&quot;buttons&quot;],dflt:&quot;dropdown&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;right&quot;,&quot;up&quot;,&quot;down&quot;],dflt:&quot;down&quot;},active:{valType:&quot;integer&quot;,min:-1,dflt:0},showactive:{valType:&quot;boolean&quot;,dflt:!0},buttons:c,x:{valType:&quot;number&quot;,min:-2,max:3,dflt:-.05},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;right&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,dflt:1},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;},pad:a(s({editType:&quot;arraydraw&quot;}),{}),font:n({}),bgcolor:{valType:&quot;color&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.borderLine},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;arraydraw&quot;}}),&quot;arraydraw&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/pad_attributes&quot;:890,&quot;../color/attributes&quot;:642}],740:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;updatemenus&quot;,containerClassName:&quot;updatemenu-container&quot;,headerGroupClassName:&quot;updatemenu-header-group&quot;,headerClassName:&quot;updatemenu-header&quot;,headerArrowClassName:&quot;updatemenu-header-arrow&quot;,dropdownButtonGroupClassName:&quot;updatemenu-dropdown-button-group&quot;,dropdownButtonClassName:&quot;updatemenu-dropdown-button&quot;,buttonClassName:&quot;updatemenu-button&quot;,itemRectClassName:&quot;updatemenu-item-rect&quot;,itemTextClassName:&quot;updatemenu-item-text&quot;,menuIndexAttrName:&quot;updatemenu-active-index&quot;,autoMarginIdRoot:&quot;updatemenu-&quot;,blankHeaderOpts:{label:&quot;  &quot;},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:&quot;#F4FAFF&quot;,hoverColor:&quot;#F4FAFF&quot;,arrowSymbol:{left:&quot;\u25c4&quot;,right:&quot;\u25ba&quot;,up:&quot;\u25b2&quot;,down:&quot;\u25bc&quot;}}},{}],741:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;).name,s=a.buttons;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}o(&quot;visible&quot;,i(t,e,{name:&quot;buttons&quot;,handleItemDefaults:c}).length&gt;0)&amp;&amp;(o(&quot;active&quot;),o(&quot;direction&quot;),o(&quot;type&quot;),o(&quot;showactive&quot;),o(&quot;x&quot;),o(&quot;y&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),o(&quot;xanchor&quot;),o(&quot;yanchor&quot;),o(&quot;pad.t&quot;),o(&quot;pad.r&quot;),o(&quot;pad.b&quot;),o(&quot;pad.l&quot;),n.coerceFont(o,&quot;font&quot;,r.font),o(&quot;bgcolor&quot;,r.paper_bgcolor),o(&quot;bordercolor&quot;),o(&quot;borderwidth&quot;))}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}r(&quot;visible&quot;,&quot;skip&quot;===t.method||Array.isArray(t.args))&amp;&amp;(r(&quot;method&quot;),r(&quot;args&quot;),r(&quot;args2&quot;),r(&quot;label&quot;),r(&quot;execute&quot;))}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;./attributes&quot;:739,&quot;./constants&quot;:740}],742:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../color&quot;),o=t(&quot;../drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,u=t(&quot;../../constants/alignment&quot;).LINE_SPACING,f=t(&quot;./constants&quot;),h=t(&quot;./scrollbox&quot;);function p(t){return t._index}function d(t,e){return+t.attr(f.menuIndexAttrName)===e._index}function g(t,e,r,n,i,a,o,s){e.active=o,c(t.layout,f.name,e).applyUpdate(&quot;active&quot;,o),&quot;buttons&quot;===e.type?v(t,n,null,null,e):&quot;dropdown&quot;===e.type&amp;&amp;(i.attr(f.menuIndexAttrName,&quot;-1&quot;),m(t,n,i,a,e),s||v(t,n,i,a,e))}function m(t,e,r,n,i){var a=s.ensureSingle(e,&quot;g&quot;,f.headerClassName,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)})),l=i._dims,c=i.active,u=i.buttons[c]||f.blankHeaderOpts,h={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},p={width:l.headerWidth,height:l.headerHeight};a.call(y,i,u,t).call(A,i,h,p),s.ensureSingle(e,&quot;text&quot;,f.headerArrowClassName,(function(t){t.attr(&quot;text-anchor&quot;,&quot;end&quot;).call(o.font,i.font).text(f.arrowSymbol[i.direction])})).attr({x:l.headerWidth-f.arrowOffsetX+i.pad.l,y:l.headerHeight/2+f.textOffsetY+i.pad.t}),a.on(&quot;click&quot;,(function(){r.call(S,String(d(r,i)?-1:i._index)),v(t,e,r,n,i)})),a.on(&quot;mouseover&quot;,(function(){a.call(w)})),a.on(&quot;mouseout&quot;,(function(){a.call(T,i)})),o.setTranslate(e,l.lx,l.ly)}function v(t,e,r,a,o){r||(r=e).attr(&quot;pointer-events&quot;,&quot;all&quot;);var l=function(t){return-1==+t.attr(f.menuIndexAttrName)}(r)&amp;&amp;&quot;buttons&quot;!==o.type?[]:o.buttons,c=&quot;dropdown&quot;===o.type?f.dropdownButtonClassName:f.buttonClassName,u=r.selectAll(&quot;g.&quot;+c).data(s.filterVisible(l)),h=u.enter().append(&quot;g&quot;).classed(c,!0),p=u.exit();&quot;dropdown&quot;===o.type?(h.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;),p.transition().attr(&quot;opacity&quot;,&quot;0&quot;).remove()):p.remove();var d=0,m=0,v=o._dims,x=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(o.direction);&quot;dropdown&quot;===o.type&amp;&amp;(x?m=v.headerHeight+f.gapButtonHeader:d=v.headerWidth+f.gapButtonHeader),&quot;dropdown&quot;===o.type&amp;&amp;&quot;up&quot;===o.direction&amp;&amp;(m=-f.gapButtonHeader+f.gapButton-v.openHeight),&quot;dropdown&quot;===o.type&amp;&amp;&quot;left&quot;===o.direction&amp;&amp;(d=-f.gapButtonHeader+f.gapButton-v.openWidth);var b={x:v.lx+d+o.pad.l,y:v.ly+m+o.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},k={l:b.x+o.borderwidth,t:b.y+o.borderwidth};u.each((function(s,l){var c=n.select(this);c.call(y,o,s,t).call(A,o,b),c.on(&quot;click&quot;,(function(){n.event.defaultPrevented||(s.execute&amp;&amp;(s.args2&amp;&amp;o.active===l?(g(t,o,0,e,r,a,-1),i.executeAPICommand(t,s.method,s.args2)):(g(t,o,0,e,r,a,l),i.executeAPICommand(t,s.method,s.args))),t.emit(&quot;plotly_buttonclicked&quot;,{menu:o,button:s,active:o.active}))})),c.on(&quot;mouseover&quot;,(function(){c.call(w)})),c.on(&quot;mouseout&quot;,(function(){c.call(T,o),u.call(_,o)}))})),u.call(_,o),x?(k.w=Math.max(v.openWidth,v.headerWidth),k.h=b.y-k.t):(k.w=b.x-k.l,k.h=Math.max(v.openHeight,v.headerHeight)),k.direction=o.direction,a&amp;&amp;(u.size()?function(t,e,r,n,i,a){var o,s,l,c=i.direction,u=&quot;up&quot;===c||&quot;down&quot;===c,h=i._dims,p=i.active;if(u)for(s=0,l=0;l&lt;p;l++)s+=h.heights[l]+f.gapButton;else for(o=0,l=0;l&lt;p;l++)o+=h.widths[l]+f.gapButton;n.enable(a,o,s),n.hbar&amp;&amp;n.hbar.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;);n.vbar&amp;&amp;n.vbar.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;)}(0,0,0,a,o,k):function(t){var e=!!t.hbar,r=!!t.vbar;e&amp;&amp;t.hbar.transition().attr(&quot;opacity&quot;,&quot;0&quot;).each(&quot;end&quot;,(function(){e=!1,r||t.disable()}));r&amp;&amp;t.vbar.transition().attr(&quot;opacity&quot;,&quot;0&quot;).each(&quot;end&quot;,(function(){r=!1,e||t.disable()}))}(a))}function y(t,e,r,n){t.call(x,e).call(b,e,r,n)}function x(t,e){s.ensureSingle(t,&quot;rect&quot;,f.itemRectClassName,(function(t){t.attr({rx:f.rx,ry:f.ry,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;)}function b(t,e,r,n){var i=s.ensureSingle(t,&quot;text&quot;,f.itemTextClassName,(function(t){t.attr({&quot;text-anchor&quot;:&quot;start&quot;,&quot;data-notex&quot;:1})})),a=r.label,c=n._fullLayout._meta;c&amp;&amp;(a=s.templateString(a,c)),i.call(o.font,e.font).text(a).call(l.convertToTspans,n)}function _(t,e){var r=e.active;t.each((function(t,i){var o=n.select(this);i===r&amp;&amp;e.showactive&amp;&amp;o.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,f.activeColor)}))}function w(t){t.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,f.hoverColor)}function T(t,e){t.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,e.bgcolor)}function k(t,e){var r=e._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},a=o.tester.selectAll(&quot;g.&quot;+f.dropdownButtonClassName).data(s.filterVisible(e.buttons));a.enter().append(&quot;g&quot;).classed(f.dropdownButtonClassName,!0);var c=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(e.direction);a.each((function(i,a){var s=n.select(this);s.call(y,e,i,t);var h=s.select(&quot;.&quot;+f.itemTextClassName),p=h.node()&amp;&amp;o.bBox(h.node()).width,d=Math.max(p+f.textPadX,f.minWidth),g=e.font.size*u,m=l.lineCount(h),v=Math.max(g*m,f.minHeight)+f.textOffsetY;v=Math.ceil(v),d=Math.ceil(d),r.widths[a]=d,r.heights[a]=v,r.height1=Math.max(r.height1,v),r.width1=Math.max(r.width1,d),c?(r.totalWidth=Math.max(r.totalWidth,d),r.openWidth=r.totalWidth,r.totalHeight+=v+f.gapButton,r.openHeight+=v+f.gapButton):(r.totalWidth+=d+f.gapButton,r.openWidth+=d+f.gapButton,r.totalHeight=Math.max(r.totalHeight,v),r.openHeight=r.totalHeight)})),c?r.totalHeight-=f.gapButton:r.totalWidth-=f.gapButton,r.headerWidth=r.width1+f.arrowPadX,r.headerHeight=r.height1,&quot;dropdown&quot;===e.type&amp;&amp;(c?(r.width1+=f.arrowPadX,r.totalHeight=r.height1):r.totalWidth=r.width1,r.totalWidth+=f.arrowPadX),a.remove();var h=r.totalWidth+e.pad.l+e.pad.r,p=r.totalHeight+e.pad.t+e.pad.b,d=t._fullLayout._size;r.lx=d.l+d.w*e.x,r.ly=d.t+d.h*(1-e.y);var g=&quot;left&quot;;s.isRightAnchor(e)&amp;&amp;(r.lx-=h,g=&quot;right&quot;),s.isCenterAnchor(e)&amp;&amp;(r.lx-=h/2,g=&quot;center&quot;);var m=&quot;top&quot;;s.isBottomAnchor(e)&amp;&amp;(r.ly-=p,m=&quot;bottom&quot;),s.isMiddleAnchor(e)&amp;&amp;(r.ly-=p/2,m=&quot;middle&quot;),r.totalWidth=Math.ceil(r.totalWidth),r.totalHeight=Math.ceil(r.totalHeight),r.lx=Math.round(r.lx),r.ly=Math.round(r.ly),i.autoMargin(t,M(e),{x:e.x,y:e.y,l:h*({right:1,center:.5}[g]||0),r:h*({left:1,center:.5}[g]||0),b:p*({top:1,middle:.5}[m]||0),t:p*({bottom:1,middle:.5}[m]||0)})}function M(t){return f.autoMarginIdRoot+t._index}function A(t,e,r,n){n=n||{};var i=t.select(&quot;.&quot;+f.itemRectClassName),a=t.select(&quot;.&quot;+f.itemTextClassName),s=e.borderwidth,c=r.index,h=e._dims;o.setTranslate(t,s+r.x,s+r.y);var p=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(e.direction),d=n.height||(p?h.heights[c]:h.height1);i.attr({x:0,y:0,width:n.width||(p?h.width1:h.widths[c]),height:d});var g=e.font.size*u,m=(l.lineCount(a)-1)*g/2;l.positionText(a,f.textOffsetX,d/2-m+f.textOffsetY),p?r.y+=h.heights[c]+r.yPad:r.x+=h.widths[c]+r.xPad,r.index++}function S(t,e){t.attr(f.menuIndexAttrName,e||&quot;-1&quot;).selectAll(&quot;g.&quot;+f.dropdownButtonClassName).remove()}e.exports=function(t){var e=t._fullLayout,r=s.filterVisible(e[f.name]);function a(e){i.autoMargin(t,M(e))}var o=e._menulayer.selectAll(&quot;g.&quot;+f.containerClassName).data(r.length&gt;0?[0]:[]);if(o.enter().append(&quot;g&quot;).classed(f.containerClassName,!0).style(&quot;cursor&quot;,&quot;pointer&quot;),o.exit().each((function(){n.select(this).selectAll(&quot;g.&quot;+f.headerGroupClassName).each(a)})).remove(),0!==r.length){var l=o.selectAll(&quot;g.&quot;+f.headerGroupClassName).data(r,p);l.enter().append(&quot;g&quot;).classed(f.headerGroupClassName,!0);for(var c=s.ensureSingle(o,&quot;g&quot;,f.dropdownButtonGroupClassName,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)})),u=0;u&lt;r.length;u++){var y=r[u];k(t,y)}var x=&quot;updatemenus&quot;+e._uid,b=new h(t,c,x);l.enter().size()&amp;&amp;(c.node().parentNode.appendChild(c.node()),c.call(S)),l.exit().each((function(t){c.call(S),a(t)})).remove(),l.each((function(e){var r=n.select(this),a=&quot;dropdown&quot;===e.type?c:null;i.manageCommandObserver(t,e,e.buttons,(function(n){g(t,e,e.buttons[n.index],r,a,b,n.index,!0)})),&quot;dropdown&quot;===e.type?(m(t,r,c,b,e),d(c,e)&amp;&amp;v(t,r,c,b,e)):v(t,r,null,null,e)}))}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/plots&quot;:891,&quot;../color&quot;:643,&quot;../drawing&quot;:665,&quot;./constants&quot;:740,&quot;./scrollbox&quot;:744,d3:169}],743:[function(t,e,r){arguments[4][737][0].apply(r,arguments)},{&quot;./attributes&quot;:739,&quot;./constants&quot;:740,&quot;./defaults&quot;:741,&quot;./draw&quot;:742,dup:737}],744:[function(t,e,r){&quot;use strict&quot;;e.exports=s;var n=t(&quot;d3&quot;),i=t(&quot;../color&quot;),a=t(&quot;../drawing&quot;),o=t(&quot;../../lib&quot;);function s(t,e,r){this.gd=t,this.container=e,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll(&quot;rect.scrollbox-bg&quot;).data([0]),this.bg.exit().on(&quot;.drag&quot;,null).on(&quot;wheel&quot;,null).remove(),this.bg.enter().append(&quot;rect&quot;).classed(&quot;scrollbox-bg&quot;,!0).style(&quot;pointer-events&quot;,&quot;all&quot;).attr({opacity:0,x:0,y:0,width:0,height:0})}s.barWidth=2,s.barLength=20,s.barRadius=2,s.barPad=1,s.barColor=&quot;#808BA4&quot;,s.prototype.enable=function(t,e,r){var o=this.gd._fullLayout,l=o.width,c=o.height;this.position=t;var u,f,h,p,d=this.position.l,g=this.position.w,m=this.position.t,v=this.position.h,y=this.position.direction,x=&quot;down&quot;===y,b=&quot;left&quot;===y,_=&quot;up&quot;===y,w=g,T=v;x||b||&quot;right&quot;===y||_||(this.position.direction=&quot;down&quot;,x=!0),x||_?(f=(u=d)+w,x?(h=m,T=(p=Math.min(h+T,c))-h):T=(p=m+T)-(h=Math.max(p-T,0))):(p=(h=m)+T,b?w=(f=d+w)-(u=Math.max(f-w,0)):(u=d,w=(f=Math.min(u+w,l))-u)),this._box={l:u,t:h,w:w,h:T};var k=g&gt;w,M=s.barLength+2*s.barPad,A=s.barWidth+2*s.barPad,S=d,E=m+v;E+A&gt;c&amp;&amp;(E=c-A);var C=this.container.selectAll(&quot;rect.scrollbar-horizontal&quot;).data(k?[0]:[]);C.exit().on(&quot;.drag&quot;,null).remove(),C.enter().append(&quot;rect&quot;).classed(&quot;scrollbar-horizontal&quot;,!0).call(i.fill,s.barColor),k?(this.hbar=C.attr({rx:s.barRadius,ry:s.barRadius,x:S,y:E,width:M,height:A}),this._hbarXMin=S+M/2,this._hbarTranslateMax=w-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var L=v&gt;T,I=s.barWidth+2*s.barPad,P=s.barLength+2*s.barPad,z=d+g,O=m;z+I&gt;l&amp;&amp;(z=l-I);var D=this.container.selectAll(&quot;rect.scrollbar-vertical&quot;).data(L?[0]:[]);D.exit().on(&quot;.drag&quot;,null).remove(),D.enter().append(&quot;rect&quot;).classed(&quot;scrollbar-vertical&quot;,!0).call(i.fill,s.barColor),L?(this.vbar=D.attr({rx:s.barRadius,ry:s.barRadius,x:z,y:O,width:I,height:P}),this._vbarYMin=O+P/2,this._vbarTranslateMax=T-P):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var R=this.id,F=u-.5,B=L?f+I+.5:f+.5,N=h-.5,j=k?p+A+.5:p+.5,U=o._topdefs.selectAll(&quot;#&quot;+R).data(k||L?[0]:[]);if(U.exit().remove(),U.enter().append(&quot;clipPath&quot;).attr(&quot;id&quot;,R).append(&quot;rect&quot;),k||L?(this._clipRect=U.select(&quot;rect&quot;).attr({x:Math.floor(F),y:Math.floor(N),width:Math.ceil(B)-Math.floor(F),height:Math.ceil(j)-Math.floor(N)}),this.container.call(a.setClipUrl,R,this.gd),this.bg.attr({x:d,y:m,width:g,height:v})):(this.bg.attr({width:0,height:0}),this.container.on(&quot;wheel&quot;,null).on(&quot;.drag&quot;,null).call(a.setClipUrl,null),delete this._clipRect),k||L){var V=n.behavior.drag().on(&quot;dragstart&quot;,(function(){n.event.sourceEvent.preventDefault()})).on(&quot;drag&quot;,this._onBoxDrag.bind(this));this.container.on(&quot;wheel&quot;,null).on(&quot;wheel&quot;,this._onBoxWheel.bind(this)).on(&quot;.drag&quot;,null).call(V);var q=n.behavior.drag().on(&quot;dragstart&quot;,(function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()})).on(&quot;drag&quot;,this._onBarDrag.bind(this));k&amp;&amp;this.hbar.on(&quot;.drag&quot;,null).call(q),L&amp;&amp;this.vbar.on(&quot;.drag&quot;,null).call(q)}this.setTranslate(e,r)},s.prototype.disable=function(){(this.hbar||this.vbar)&amp;&amp;(this.bg.attr({width:0,height:0}),this.container.on(&quot;wheel&quot;,null).on(&quot;.drag&quot;,null).call(a.setClipUrl,null),delete this._clipRect),this.hbar&amp;&amp;(this.hbar.on(&quot;.drag&quot;,null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&amp;&amp;(this.vbar.on(&quot;.drag&quot;,null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},s.prototype._onBoxDrag=function(){var t=this.translateX,e=this.translateY;this.hbar&amp;&amp;(t-=n.event.dx),this.vbar&amp;&amp;(e-=n.event.dy),this.setTranslate(t,e)},s.prototype._onBoxWheel=function(){var t=this.translateX,e=this.translateY;this.hbar&amp;&amp;(t+=n.event.deltaY),this.vbar&amp;&amp;(e+=n.event.deltaY),this.setTranslate(t,e)},s.prototype._onBarDrag=function(){var t=this.translateX,e=this.translateY;if(this.hbar){var r=t+this._hbarXMin,i=r+this._hbarTranslateMax;t=(o.constrain(n.event.x,r,i)-r)/(i-r)*(this.position.w-this._box.w)}if(this.vbar){var a=e+this._vbarYMin,s=a+this._vbarTranslateMax;e=(o.constrain(n.event.y,a,s)-a)/(s-a)*(this.position.h-this._box.h)}this.setTranslate(t,e)},s.prototype.setTranslate=function(t,e){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=o.constrain(t||0,0,r),e=o.constrain(e||0,0,n),this.translateX=t,this.translateY=e,this.container.call(a.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-e),this._clipRect&amp;&amp;this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+e-.5)}),this.hbar){var i=t/r;this.hbar.call(a.setTranslate,t+i*this._hbarTranslateMax,e)}if(this.vbar){var s=e/n;this.vbar.call(a.setTranslate,t,e+s*this._vbarTranslateMax)}}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;../drawing&quot;:665,d3:169}],745:[function(t,e,r){&quot;use strict&quot;;e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:&quot;right&quot;,right:&quot;left&quot;,top:&quot;bottom&quot;,bottom:&quot;top&quot;}}},{}],746:[function(t,e,r){&quot;use strict&quot;;e.exports={axisRefDescription:function(t,e,r){return[&quot;If set to a&quot;,t,&quot;axis id (e.g. *&quot;+t+&quot;* or&quot;,&quot;*&quot;+t+&quot;2*), the `&quot;+t+&quot;` position refers to a&quot;,t,&quot;coordinate. If set to *paper*, the `&quot;+t+&quot;`&quot;,&quot;position refers to the distance from the&quot;,e,&quot;of the plotting&quot;,&quot;area in normalized coordinates where *0* (*1*) corresponds to the&quot;,e,&quot;(&quot;+r+&quot;). If set to a&quot;,t,&quot;axis ID followed by&quot;,&quot;*domain* (separated by a space), the position behaves like for&quot;,&quot;*paper*, but refers to the distance in fractions of the domain&quot;,&quot;length from the&quot;,e,&quot;of the domain of that axis: e.g.,&quot;,&quot;*&quot;+t+&quot;2 domain* refers to the domain of the second&quot;,t,&quot; axis and a&quot;,t,&quot;position of 0.5 refers to the&quot;,&quot;point between the&quot;,e,&quot;and the&quot;,r,&quot;of the domain of the&quot;,&quot;second&quot;,t,&quot;axis.&quot;].join(&quot; &quot;)}}},{}],747:[function(t,e,r){&quot;use strict&quot;;e.exports={INCREASING:{COLOR:&quot;#3D9970&quot;,SYMBOL:&quot;\u25b2&quot;},DECREASING:{COLOR:&quot;#FF4136&quot;,SYMBOL:&quot;\u25bc&quot;}}},{}],748:[function(t,e,r){&quot;use strict&quot;;e.exports={FORMAT_LINK:&quot;https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format&quot;,DATE_FORMAT_LINK:&quot;https://github.com/d3/d3-time-format#locale_format&quot;}},{}],749:[function(t,e,r){&quot;use strict&quot;;e.exports={COMPARISON_OPS:[&quot;=&quot;,&quot;!=&quot;,&quot;&lt;&quot;,&quot;&gt;=&quot;,&quot;&gt;&quot;,&quot;&lt;=&quot;],COMPARISON_OPS2:[&quot;=&quot;,&quot;&lt;&quot;,&quot;&gt;=&quot;,&quot;&gt;&quot;,&quot;&lt;=&quot;],INTERVAL_OPS:[&quot;[]&quot;,&quot;()&quot;,&quot;[)&quot;,&quot;(]&quot;,&quot;][&quot;,&quot;)(&quot;,&quot;](&quot;,&quot;)[&quot;],SET_OPS:[&quot;{}&quot;,&quot;}{&quot;],CONSTRAINT_REDUCTION:{&quot;=&quot;:&quot;=&quot;,&quot;&lt;&quot;:&quot;&lt;&quot;,&quot;&lt;=&quot;:&quot;&lt;&quot;,&quot;&gt;&quot;:&quot;&gt;&quot;,&quot;&gt;=&quot;:&quot;&gt;&quot;,&quot;[]&quot;:&quot;[]&quot;,&quot;()&quot;:&quot;[]&quot;,&quot;[)&quot;:&quot;[]&quot;,&quot;(]&quot;:&quot;[]&quot;,&quot;][&quot;:&quot;][&quot;,&quot;)(&quot;:&quot;][&quot;,&quot;](&quot;:&quot;][&quot;,&quot;)[&quot;:&quot;][&quot;}}},{}],750:[function(t,e,r){&quot;use strict&quot;;e.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},{}],751:[function(t,e,r){&quot;use strict&quot;;e.exports={circle:&quot;\u25cf&quot;,&quot;circle-open&quot;:&quot;\u25cb&quot;,square:&quot;\u25a0&quot;,&quot;square-open&quot;:&quot;\u25a1&quot;,diamond:&quot;\u25c6&quot;,&quot;diamond-open&quot;:&quot;\u25c7&quot;,cross:&quot;+&quot;,x:&quot;\u274c&quot;}},{}],752:[function(t,e,r){&quot;use strict&quot;;e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},{}],753:[function(t,e,r){&quot;use strict&quot;;e.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:&quot;\u2212&quot;}},{}],754:[function(t,e,r){&quot;use strict&quot;;r.xmlns=&quot;http://www.w3.org/2000/xmlns/&quot;,r.svg=&quot;http://www.w3.org/2000/svg&quot;,r.xlink=&quot;http://www.w3.org/1999/xlink&quot;,r.svgAttrs={xmlns:r.svg,&quot;xmlns:xlink&quot;:r.xlink}},{}],755:[function(t,e,r){&quot;use strict&quot;;r.version=t(&quot;./version&quot;).version,t(&quot;es6-promise&quot;).polyfill(),t(&quot;../build/plotcss&quot;),t(&quot;./fonts/mathjax_config&quot;)();for(var n=t(&quot;./registry&quot;),i=r.register=n.register,a=t(&quot;./plot_api&quot;),o=Object.keys(a),s=0;s&lt;o.length;s++){var l=o[s];&quot;_&quot;!==l.charAt(0)&amp;&amp;(r[l]=a[l]),i({moduleType:&quot;apiMethod&quot;,name:l,fn:a[l]})}i(t(&quot;./traces/scatter&quot;)),i([t(&quot;./components/legend&quot;),t(&quot;./components/fx&quot;),t(&quot;./components/annotations&quot;),t(&quot;./components/annotations3d&quot;),t(&quot;./components/shapes&quot;),t(&quot;./components/images&quot;),t(&quot;./components/updatemenus&quot;),t(&quot;./components/sliders&quot;),t(&quot;./components/rangeslider&quot;),t(&quot;./components/rangeselector&quot;),t(&quot;./components/grid&quot;),t(&quot;./components/errorbars&quot;),t(&quot;./components/colorscale&quot;),t(&quot;./components/colorbar&quot;)]),i([t(&quot;./locale-en&quot;),t(&quot;./locale-en-us&quot;)]),window.PlotlyLocales&amp;&amp;Array.isArray(window.PlotlyLocales)&amp;&amp;(i(window.PlotlyLocales),delete window.PlotlyLocales),r.Icons=t(&quot;./fonts/ploticon&quot;),r.Plots=t(&quot;./plots/plots&quot;),r.Fx=t(&quot;./components/fx&quot;),r.Snapshot=t(&quot;./snapshot&quot;),r.PlotSchema=t(&quot;./plot_api/plot_schema&quot;),r.Queue=t(&quot;./lib/queue&quot;),r.d3=t(&quot;d3&quot;)},{&quot;../build/plotcss&quot;:1,&quot;./components/annotations&quot;:634,&quot;./components/annotations3d&quot;:639,&quot;./components/colorbar&quot;:649,&quot;./components/colorscale&quot;:655,&quot;./components/errorbars&quot;:671,&quot;./components/fx&quot;:683,&quot;./components/grid&quot;:687,&quot;./components/images&quot;:692,&quot;./components/legend&quot;:700,&quot;./components/rangeselector&quot;:711,&quot;./components/rangeslider&quot;:718,&quot;./components/shapes&quot;:732,&quot;./components/sliders&quot;:737,&quot;./components/updatemenus&quot;:743,&quot;./fonts/mathjax_config&quot;:756,&quot;./fonts/ploticon&quot;:757,&quot;./lib/queue&quot;:794,&quot;./locale-en&quot;:808,&quot;./locale-en-us&quot;:807,&quot;./plot_api&quot;:812,&quot;./plot_api/plot_schema&quot;:816,&quot;./plots/plots&quot;:891,&quot;./registry&quot;:911,&quot;./snapshot&quot;:916,&quot;./traces/scatter&quot;:1199,&quot;./version&quot;:1370,d3:169,&quot;es6-promise&quot;:224}],756:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){&quot;undefined&quot;!=typeof MathJax&amp;&amp;(&quot;local&quot;!==(window.PlotlyConfig||{}).MathJaxConfig&amp;&amp;(MathJax.Hub.Config({messageStyle:&quot;none&quot;,skipStartupTypeset:!0,displayAlign:&quot;left&quot;,tex2jax:{inlineMath:[[&quot;$&quot;,&quot;$&quot;],[&quot;\\(&quot;,&quot;\\)&quot;]]}}),MathJax.Hub.Configured()))}},{}],757:[function(t,e,r){&quot;use strict&quot;;e.exports={undo:{width:857.1,height:1e3,path:&quot;m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},home:{width:928.6,height:1e3,path:&quot;m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;camera-retro&quot;:{width:1e3,height:1e3,path:&quot;m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoombox:{width:1e3,height:1e3,path:&quot;m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},pan:{width:1e3,height:1e3,path:&quot;m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoom_plus:{width:875,height:1e3,path:&quot;m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoom_minus:{width:875,height:1e3,path:&quot;m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},autoscale:{width:1e3,height:1e3,path:&quot;m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},tooltip_basic:{width:1500,height:1e3,path:&quot;m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},tooltip_compare:{width:1125,height:1e3,path:&quot;m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},plotlylogo:{width:1542,height:1e3,path:&quot;m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;z-axis&quot;:{width:1e3,height:1e3,path:&quot;m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;3d_rotate&quot;:{width:1e3,height:1e3,path:&quot;m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},camera:{width:1e3,height:1e3,path:&quot;m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},movie:{width:1e3,height:1e3,path:&quot;m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},question:{width:857.1,height:1e3,path:&quot;m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},disk:{width:857.1,height:1e3,path:&quot;m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},drawopenpath:{width:70,height:70,path:&quot;M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z&quot;,transform:&quot;matrix(1 0 0 1 -15 -15)&quot;},drawclosedpath:{width:90,height:90,path:&quot;M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z&quot;,transform:&quot;matrix(1 0 0 1 -5 -5)&quot;},lasso:{width:1031,height:1e3,path:&quot;m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},selectbox:{width:1e3,height:1e3,path:&quot;m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},drawline:{width:70,height:70,path:&quot;M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z&quot;,transform:&quot;matrix(1 0 0 1 -15 -15)&quot;},drawrect:{width:80,height:80,path:&quot;M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},drawcircle:{width:80,height:80,path:&quot;M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},eraseshape:{width:80,height:80,path:&quot;M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},spikeline:{width:1e3,height:1e3,path:&quot;M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z&quot;,transform:&quot;matrix(1.5 0 0 -1.5 0 850)&quot;},pencil:{width:1792,height:1792,path:&quot;M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z&quot;,transform:&quot;matrix(1 0 0 1 0 1)&quot;},newplotlylogo:{name:&quot;newplotlylogo&quot;,svg:&quot;&lt;svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'&gt;&lt;defs&gt;&lt;style&gt;.cls-1 {fill: #3f4f75;} .cls-2 {fill: #80cfbe;} .cls-3 {fill: #fff;}&lt;/style&gt;&lt;/defs&gt;&lt;title&gt;plotly-logomark&lt;/title&gt;&lt;g id='symbol'&gt;&lt;rect class='cls-1' width='132' height='132' rx='6' ry='6'/&gt;&lt;circle class='cls-2' cx='78' cy='54' r='6'/&gt;&lt;circle class='cls-2' cx='102' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='78' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='54' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='30' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='30' cy='54' r='6'/&gt;&lt;path class='cls-3' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/&gt;&lt;path class='cls-3' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/&gt;&lt;path class='cls-3' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/&gt;&lt;path class='cls-3' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;}}},{}],758:[function(t,e,r){&quot;use strict&quot;;r.isLeftAnchor=function(t){return&quot;left&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&lt;=1/3},r.isCenterAnchor=function(t){return&quot;center&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&gt;1/3&amp;&amp;t.x&lt;2/3},r.isRightAnchor=function(t){return&quot;right&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&gt;=2/3},r.isTopAnchor=function(t){return&quot;top&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&gt;=2/3},r.isMiddleAnchor=function(t){return&quot;middle&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&gt;1/3&amp;&amp;t.y&lt;2/3},r.isBottomAnchor=function(t){return&quot;bottom&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&lt;=1/3}},{}],759:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./mod&quot;),i=n.mod,a=n.modHalf,o=Math.PI,s=2*o;function l(t){return Math.abs(t[1]-t[0])&gt;s-1e-14}function c(t,e){return a(e-t,s)}function u(t,e){if(l(e))return!0;var r,n;e[0]&lt;e[1]?(r=e[0],n=e[1]):(r=e[1],n=e[0]),(r=i(r,s))&gt;(n=i(n,s))&amp;&amp;(n+=s);var a=i(t,s),o=a+s;return a&gt;=r&amp;&amp;a&lt;=n||o&gt;=r&amp;&amp;o&lt;=n}function f(t,e,r,n,i,a,c){i=i||0,a=a||0;var u,f,h,p,d,g=l([r,n]);function m(t,e){return[t*Math.cos(e)+i,a-t*Math.sin(e)]}g?(u=0,f=o,h=s):r&lt;n?(u=r,h=n):(u=n,h=r),t&lt;e?(p=t,d=e):(p=e,d=t);var v,y=Math.abs(h-u)&lt;=o?0:1;function x(t,e,r){return&quot;A&quot;+[t,t]+&quot; &quot;+[0,y,r]+&quot; &quot;+m(t,e)}return g?v=null===p?&quot;M&quot;+m(d,u)+x(d,f,0)+x(d,h,0)+&quot;Z&quot;:&quot;M&quot;+m(p,u)+x(p,f,0)+x(p,h,0)+&quot;ZM&quot;+m(d,u)+x(d,f,1)+x(d,h,1)+&quot;Z&quot;:null===p?(v=&quot;M&quot;+m(d,u)+x(d,h,0),c&amp;&amp;(v+=&quot;L0,0Z&quot;)):v=&quot;M&quot;+m(p,u)+&quot;L&quot;+m(d,u)+x(d,h,0)+&quot;L&quot;+m(p,h)+x(p,u,1)+&quot;Z&quot;,v}e.exports={deg2rad:function(t){return t/180*o},rad2deg:function(t){return t/o*180},angleDelta:c,angleDist:function(t,e){return Math.abs(c(t,e))},isFullCircle:l,isAngleInsideSector:u,isPtInsideSector:function(t,e,r,n){return!!u(e,n)&amp;&amp;(r[0]&lt;r[1]?(i=r[0],a=r[1]):(i=r[1],a=r[0]),t&gt;=i&amp;&amp;t&lt;=a);var i,a},pathArc:function(t,e,r,n,i){return f(null,t,e,r,n,i,0)},pathSector:function(t,e,r,n,i){return f(null,t,e,r,n,i,1)},pathAnnulus:function(t,e,r,n,i,a){return f(t,e,r,n,i,a,1)}}},{&quot;./mod&quot;:785}],760:[function(t,e,r){&quot;use strict&quot;;var n=Array.isArray,i=&quot;undefined&quot;!=typeof ArrayBuffer&amp;&amp;ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}},a=&quot;undefined&quot;==typeof DataView?function(){}:DataView;function o(t){return i.isView(t)&amp;&amp;!(t instanceof a)}function s(t){return n(t)||o(t)}function l(t,e,r){if(s(t)){if(s(t[0])){for(var n=r,i=0;i&lt;t.length;i++)n=e(n,t[i].length);return n}return t.length}return 0}r.isTypedArray=o,r.isArrayOrTypedArray=s,r.isArray1D=function(t){return!s(t[0])},r.ensureArray=function(t,e){return n(t)||(t=[]),t.length=e,t},r.concat=function(){var t,e,r,i,a,o,s,l,c=[],u=!0,f=0;for(r=0;r&lt;arguments.length;r++)(o=(i=arguments[r]).length)&amp;&amp;(e?c.push(i):(e=i,a=o),n(i)?t=!1:(u=!1,f?t!==i.constructor&amp;&amp;(t=!1):t=i.constructor),f+=o);if(!f)return[];if(!c.length)return e;if(u)return e.concat.apply(e,c);if(t){for((s=new t(f)).set(e),r=0;r&lt;c.length;r++)i=c[r],s.set(i,a),a+=i.length;return s}for(s=new Array(f),l=0;l&lt;e.length;l++)s[l]=e[l];for(r=0;r&lt;c.length;r++){for(i=c[r],l=0;l&lt;i.length;l++)s[a+l]=i[l];a+=l}return s},r.maxRowLength=function(t){return l(t,Math.max,0)},r.minRowLength=function(t){return l(t,Math.min,1/0)}},{}],761:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../constants/numerical&quot;).BADNUM,a=/^['&quot;%,$#\s']+|[, ]|['&quot;%,$#\s']+$/g;e.exports=function(t){return&quot;string&quot;==typeof t&amp;&amp;(t=t.replace(a,&quot;&quot;)),n(t)?Number(t):i}},{&quot;../constants/numerical&quot;:753,&quot;fast-isnumeric&quot;:241}],762:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t._fullLayout;e._glcanvas&amp;&amp;e._glcanvas.size()&amp;&amp;e._glcanvas.each((function(t){t.regl&amp;&amp;t.regl.clear({color:!0,depth:!0})}))}},{}],763:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){t._responsiveChartHandler&amp;&amp;(window.removeEventListener(&quot;resize&quot;,t._responsiveChartHandler),delete t._responsiveChartHandler)}},{}],764:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../plots/attributes&quot;),o=t(&quot;../components/colorscale/scales&quot;),s=t(&quot;../constants/interactions&quot;).DESELECTDIM,l=t(&quot;./nested_property&quot;),c=t(&quot;./regex&quot;).counter,u=t(&quot;./mod&quot;).modHalf,f=t(&quot;./array&quot;).isArrayOrTypedArray;function h(t,e){var n=r.valObjectMeta[e.valType];if(e.arrayOk&amp;&amp;f(t))return!0;if(n.validateFunction)return n.validateFunction(t,e);var i={},a=i,o={set:function(t){a=t}};return n.coerceFunction(t,o,i,e),a!==i}r.valObjectMeta={data_array:{coerceFunction:function(t,e,r){f(t)?e.set(t):void 0!==r&amp;&amp;e.set(r)}},enumerated:{coerceFunction:function(t,e,r,n){n.coerceNumber&amp;&amp;(t=+t),-1===n.values.indexOf(t)?e.set(r):e.set(t)},validateFunction:function(t,e){e.coerceNumber&amp;&amp;(t=+t);for(var r=e.values,n=0;n&lt;r.length;n++){var i=String(r[n]);if(&quot;/&quot;===i.charAt(0)&amp;&amp;&quot;/&quot;===i.charAt(i.length-1)){if(new RegExp(i.substr(1,i.length-2)).test(t))return!0}else if(t===r[n])return!0}return!1}},boolean:{coerceFunction:function(t,e,r){!0===t||!1===t?e.set(t):e.set(r)}},number:{coerceFunction:function(t,e,r,i){!n(t)||void 0!==i.min&amp;&amp;t&lt;i.min||void 0!==i.max&amp;&amp;t&gt;i.max?e.set(r):e.set(+t)}},integer:{coerceFunction:function(t,e,r,i){t%1||!n(t)||void 0!==i.min&amp;&amp;t&lt;i.min||void 0!==i.max&amp;&amp;t&gt;i.max?e.set(r):e.set(+t)}},string:{coerceFunction:function(t,e,r,n){if(&quot;string&quot;!=typeof t){var i=&quot;number&quot;==typeof t;!0!==n.strict&amp;&amp;i?e.set(String(t)):e.set(r)}else n.noBlank&amp;&amp;!t?e.set(r):e.set(t)}},color:{coerceFunction:function(t,e,r){i(t).isValid()?e.set(t):e.set(r)}},colorlist:{coerceFunction:function(t,e,r){Array.isArray(t)&amp;&amp;t.length&amp;&amp;t.every((function(t){return i(t).isValid()}))?e.set(t):e.set(r)}},colorscale:{coerceFunction:function(t,e,r){e.set(o.get(t,r))}},angle:{coerceFunction:function(t,e,r){&quot;auto&quot;===t?e.set(&quot;auto&quot;):n(t)?e.set(u(+t,360)):e.set(r)}},subplotid:{coerceFunction:function(t,e,r,n){var i=n.regex||c(r);&quot;string&quot;==typeof t&amp;&amp;i.test(t)?e.set(t):e.set(r)},validateFunction:function(t,e){var r=e.dflt;return t===r||&quot;string&quot;==typeof t&amp;&amp;!!c(r).test(t)}},flaglist:{coerceFunction:function(t,e,r,n){if(&quot;string&quot;==typeof t)if(-1===(n.extras||[]).indexOf(t)){for(var i=t.split(&quot;+&quot;),a=0;a&lt;i.length;){var o=i[a];-1===n.flags.indexOf(o)||i.indexOf(o)&lt;a?i.splice(a,1):a++}i.length?e.set(i.join(&quot;+&quot;)):e.set(r)}else e.set(t);else e.set(r)}},any:{coerceFunction:function(t,e,r){void 0===t?e.set(r):e.set(t)}},info_array:{coerceFunction:function(t,e,n,i){function a(t,e,n){var i,a={set:function(t){i=t}};return void 0===n&amp;&amp;(n=e.dflt),r.valObjectMeta[e.valType].coerceFunction(t,a,n,e),i}var o=2===i.dimensions||&quot;1-2&quot;===i.dimensions&amp;&amp;Array.isArray(t)&amp;&amp;Array.isArray(t[0]);if(Array.isArray(t)){var s,l,c,u,f,h,p=i.items,d=[],g=Array.isArray(p),m=g&amp;&amp;o&amp;&amp;Array.isArray(p[0]),v=o&amp;&amp;g&amp;&amp;!m,y=g&amp;&amp;!v?p.length:t.length;if(n=Array.isArray(n)?n:[],o)for(s=0;s&lt;y;s++)for(d[s]=[],c=Array.isArray(t[s])?t[s]:[],f=v?p.length:g?p[s].length:c.length,l=0;l&lt;f;l++)u=v?p[l]:g?p[s][l]:p,void 0!==(h=a(c[l],u,(n[s]||[])[l]))&amp;&amp;(d[s][l]=h);else for(s=0;s&lt;y;s++)void 0!==(h=a(t[s],g?p[s]:p,n[s]))&amp;&amp;(d[s]=h);e.set(d)}else e.set(n)},validateFunction:function(t,e){if(!Array.isArray(t))return!1;var r=e.items,n=Array.isArray(r),i=2===e.dimensions;if(!e.freeLength&amp;&amp;t.length!==r.length)return!1;for(var a=0;a&lt;t.length;a++)if(i){if(!Array.isArray(t[a])||!e.freeLength&amp;&amp;t[a].length!==r[a].length)return!1;for(var o=0;o&lt;t[a].length;o++)if(!h(t[a][o],n?r[a][o]:r))return!1}else if(!h(t[a],n?r[a]:r))return!1;return!0}}},r.coerce=function(t,e,n,i,a){var o=l(n,i).get(),s=l(t,i),c=l(e,i),u=s.get(),p=e._template;if(void 0===u&amp;&amp;p&amp;&amp;(u=l(p,i).get(),p=0),void 0===a&amp;&amp;(a=o.dflt),o.arrayOk&amp;&amp;f(u))return c.set(u),u;var d=r.valObjectMeta[o.valType].coerceFunction;d(u,c,a,o);var g=c.get();return p&amp;&amp;g===a&amp;&amp;!h(u,o)&amp;&amp;(d(u=l(p,i).get(),c,a,o),g=c.get()),g},r.coerce2=function(t,e,n,i,a){var o=l(t,i),s=r.coerce(t,e,n,i,a),c=o.get();return null!=c&amp;&amp;s},r.coerceFont=function(t,e,r){var n={};return r=r||{},n.family=t(e+&quot;.family&quot;,r.family),n.size=t(e+&quot;.size&quot;,r.size),n.color=t(e+&quot;.color&quot;,r.color),n},r.coerceHoverinfo=function(t,e,n){var i,o=e._module.attributes,s=o.hoverinfo?o:a,l=s.hoverinfo;if(1===n._dataLength){var c=&quot;all&quot;===l.dflt?l.flags.slice():l.dflt.split(&quot;+&quot;);c.splice(c.indexOf(&quot;name&quot;),1),i=c.join(&quot;+&quot;)}return r.coerce(t,e,s,&quot;hoverinfo&quot;,i)},r.coerceSelectionMarkerOpacity=function(t,e){if(t.marker){var r,n,i=t.marker.opacity;if(void 0!==i)f(i)||t.selected||t.unselected||(r=i,n=s*i),e(&quot;selected.marker.opacity&quot;,r),e(&quot;unselected.marker.opacity&quot;,n)}},r.validate=h},{&quot;../components/colorscale/scales&quot;:658,&quot;../constants/interactions&quot;:752,&quot;../plots/attributes&quot;:824,&quot;./array&quot;:760,&quot;./mod&quot;:785,&quot;./nested_property&quot;:786,&quot;./regex&quot;:795,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],765:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;d3-time-format&quot;).timeFormat,o=t(&quot;fast-isnumeric&quot;),s=t(&quot;./loggers&quot;),l=t(&quot;./mod&quot;).mod,c=t(&quot;../constants/numerical&quot;),u=c.BADNUM,f=c.ONEDAY,h=c.ONEHOUR,p=c.ONEMIN,d=c.ONESEC,g=c.EPOCHJD,m=t(&quot;../registry&quot;),v=t(&quot;d3-time-format&quot;).utcFormat,y=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,x=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,b=(new Date).getFullYear()-70;function _(t){return t&amp;&amp;m.componentsRegistry.calendars&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;&quot;gregorian&quot;!==t}function w(t,e){return String(t+Math.pow(10,e)).substr(1)}r.dateTick0=function(t,e){var n=function(t,e){return _(t)?e?m.getComponentMethod(&quot;calendars&quot;,&quot;CANONICAL_SUNDAY&quot;)[t]:m.getComponentMethod(&quot;calendars&quot;,&quot;CANONICAL_TICK&quot;)[t]:e?&quot;2000-01-02&quot;:&quot;2000-01-01&quot;}(t,!!e);if(e&lt;2)return n;var i=r.dateTime2ms(n,t);return i+=f*(e-1),r.ms2DateTime(i,0,t)},r.dfltRange=function(t){return _(t)?m.getComponentMethod(&quot;calendars&quot;,&quot;DFLTRANGE&quot;)[t]:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;]},r.isJSDate=function(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t&amp;&amp;&quot;function&quot;==typeof t.getTime},r.dateTime2ms=function(t,e){if(r.isJSDate(t)){var a=t.getTimezoneOffset()*p,o=(t.getUTCMinutes()-t.getMinutes())*p+(t.getUTCSeconds()-t.getSeconds())*d+(t.getUTCMilliseconds()-t.getMilliseconds());if(o){var s=3*p;a=a-s/2+l(o-a+s/2,s)}return(t=Number(t)-a)&gt;=n&amp;&amp;t&lt;=i?t:u}if(&quot;string&quot;!=typeof t&amp;&amp;&quot;number&quot;!=typeof t)return u;t=String(t);var c=_(e),v=t.charAt(0);!c||&quot;G&quot;!==v&amp;&amp;&quot;g&quot;!==v||(t=t.substr(1),e=&quot;&quot;);var w=c&amp;&amp;&quot;chinese&quot;===e.substr(0,7),T=t.match(w?x:y);if(!T)return u;var k=T[1],M=T[3]||&quot;1&quot;,A=Number(T[5]||1),S=Number(T[7]||0),E=Number(T[9]||0),C=Number(T[11]||0);if(c){if(2===k.length)return u;var L;k=Number(k);try{var I=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(e);if(w){var P=&quot;i&quot;===M.charAt(M.length-1);M=parseInt(M,10),L=I.newDate(k,I.toMonthIndex(k,M,P),A)}else L=I.newDate(k,Number(M),A)}catch(t){return u}return L?(L.toJD()-g)*f+S*h+E*p+C*d:u}k=2===k.length?(Number(k)+2e3-b)%100+b:Number(k),M-=1;var z=new Date(Date.UTC(2e3,M,A,S,E));return z.setUTCFullYear(k),z.getUTCMonth()!==M||z.getUTCDate()!==A?u:z.getTime()+C*d},n=r.MIN_MS=r.dateTime2ms(&quot;-9999&quot;),i=r.MAX_MS=r.dateTime2ms(&quot;9999-12-31 23:59:59.9999&quot;),r.isDateTime=function(t,e){return r.dateTime2ms(t,e)!==u};var T=90*f,k=3*h,M=5*p;function A(t,e,r,n,i){if((e||r||n||i)&amp;&amp;(t+=&quot; &quot;+w(e,2)+&quot;:&quot;+w(r,2),(n||i)&amp;&amp;(t+=&quot;:&quot;+w(n,2),i))){for(var a=4;i%10==0;)a-=1,i/=10;t+=&quot;.&quot;+w(i,a)}return t}r.ms2DateTime=function(t,e,r){if(&quot;number&quot;!=typeof t||!(t&gt;=n&amp;&amp;t&lt;=i))return u;e||(e=0);var a,o,s,c,y,x,b=Math.floor(10*l(t+.05,1)),w=Math.round(t-b/10);if(_(r)){var S=Math.floor(w/f)+g,E=Math.floor(l(t,f));try{a=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(r).fromJD(S).formatDate(&quot;yyyy-mm-dd&quot;)}catch(t){a=v(&quot;G%Y-%m-%d&quot;)(new Date(w))}if(&quot;-&quot;===a.charAt(0))for(;a.length&lt;11;)a=&quot;-0&quot;+a.substr(1);else for(;a.length&lt;10;)a=&quot;0&quot;+a;o=e&lt;T?Math.floor(E/h):0,s=e&lt;T?Math.floor(E%h/p):0,c=e&lt;k?Math.floor(E%p/d):0,y=e&lt;M?E%d*10+b:0}else x=new Date(w),a=v(&quot;%Y-%m-%d&quot;)(x),o=e&lt;T?x.getUTCHours():0,s=e&lt;T?x.getUTCMinutes():0,c=e&lt;k?x.getUTCSeconds():0,y=e&lt;M?10*x.getUTCMilliseconds()+b:0;return A(a,o,s,c,y)},r.ms2DateTimeLocal=function(t){if(!(t&gt;=n+f&amp;&amp;t&lt;=i-f))return u;var e=Math.floor(10*l(t+.05,1)),r=new Date(Math.round(t-e/10));return A(a(&quot;%Y-%m-%d&quot;)(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+e)},r.cleanDate=function(t,e,n){if(t===u)return e;if(r.isJSDate(t)||&quot;number&quot;==typeof t&amp;&amp;isFinite(t)){if(_(n))return s.error(&quot;JS Dates and milliseconds are incompatible with world calendars&quot;,t),e;if(!(t=r.ms2DateTimeLocal(+t))&amp;&amp;void 0!==e)return e}else if(!r.isDateTime(t,n))return s.error(&quot;unrecognized date&quot;,t),e;return t};var S=/%\d?f/g;function E(t,e,r,n){t=t.replace(S,(function(t){var r=Math.min(+t.charAt(1)||6,6);return(e/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,&quot;&quot;)||&quot;0&quot;}));var i=new Date(Math.floor(e+.05));if(_(n))try{t=m.getComponentMethod(&quot;calendars&quot;,&quot;worldCalFmt&quot;)(t,e,n)}catch(t){return&quot;Invalid&quot;}return r(t)(i)}var C=[59,59.9,59.99,59.999,59.9999];r.formatDate=function(t,e,r,n,i,a){if(i=_(i)&amp;&amp;i,!e)if(&quot;y&quot;===r)e=a.year;else if(&quot;m&quot;===r)e=a.month;else{if(&quot;d&quot;!==r)return function(t,e){var r=l(t+.05,f),n=w(Math.floor(r/h),2)+&quot;:&quot;+w(l(Math.floor(r/p),60),2);if(&quot;M&quot;!==e){o(e)||(e=0);var i=(100+Math.min(l(t/d,60),C[e])).toFixed(e).substr(1);e&gt;0&amp;&amp;(i=i.replace(/0+$/,&quot;&quot;).replace(/[\.]$/,&quot;&quot;)),n+=&quot;:&quot;+i}return n}(t,r)+&quot;\n&quot;+E(a.dayMonthYear,t,n,i);e=a.dayMonth+&quot;\n&quot;+a.year}return E(e,t,n,i)};var L=3*f;r.incrementMonth=function(t,e,r){r=_(r)&amp;&amp;r;var n=l(t,f);if(t=Math.round(t-n),r)try{var i=Math.round(t/f)+g,a=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(r),o=a.fromJD(i);return e%12?a.add(o,e,&quot;m&quot;):a.add(o,e/12,&quot;y&quot;),(o.toJD()-g)*f+n}catch(e){s.error(&quot;invalid ms &quot;+t+&quot; in calendar &quot;+r)}var c=new Date(t+L);return c.setUTCMonth(c.getUTCMonth()+e)+n-L},r.findExactDates=function(t,e){for(var r,n,i=0,a=0,s=0,l=0,c=_(e)&amp;&amp;m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(e),u=0;u&lt;t.length;u++)if(n=t[u],o(n)){if(!(n%f))if(c)try{1===(r=c.fromJD(n/f+g)).day()?1===r.month()?i++:a++:s++}catch(t){}else 1===(r=new Date(n)).getUTCDate()?0===r.getUTCMonth()?i++:a++:s++}else l++;s+=a+=i;var h=t.length-l;return{exactYears:i/h,exactMonths:a/h,exactDays:s/h}}},{&quot;../constants/numerical&quot;:753,&quot;../registry&quot;:911,&quot;./loggers&quot;:782,&quot;./mod&quot;:785,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],766:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;./loggers&quot;),a=t(&quot;./matrix&quot;),o=t(&quot;gl-mat4&quot;);function s(t){var e=t&amp;&amp;t.parentNode;e&amp;&amp;e.removeChild(t)}function l(t,e,r){var n=&quot;plotly.js-style-&quot;+t,a=document.getElementById(n);a||((a=document.createElement(&quot;style&quot;)).setAttribute(&quot;id&quot;,n),a.appendChild(document.createTextNode(&quot;&quot;)),document.head.appendChild(a));var o=a.sheet;o.insertRule?o.insertRule(e+&quot;{&quot;+r+&quot;}&quot;,0):o.addRule?o.addRule(e,r,0):i.warn(&quot;addStyleRule failed&quot;)}function c(t){var e=window.getComputedStyle(t,null),r=e.getPropertyValue(&quot;-webkit-transform&quot;)||e.getPropertyValue(&quot;-moz-transform&quot;)||e.getPropertyValue(&quot;-ms-transform&quot;)||e.getPropertyValue(&quot;-o-transform&quot;)||e.getPropertyValue(&quot;transform&quot;);return&quot;none&quot;===r?null:r.replace(&quot;matrix&quot;,&quot;&quot;).replace(&quot;3d&quot;,&quot;&quot;).slice(1,-1).split(&quot;,&quot;).map((function(t){return+t}))}function u(t){for(var e=[];f(t);)e.push(t),t=t.parentNode;return e}function f(t){return t&amp;&amp;(t instanceof Element||t instanceof HTMLElement)}e.exports={getGraphDiv:function(t){var e;if(&quot;string&quot;==typeof t){if(null===(e=document.getElementById(t)))throw new Error(&quot;No DOM element with id '&quot;+t+&quot;' exists on the page.&quot;);return e}if(null==t)throw new Error(&quot;DOM element provided is null or undefined&quot;);return t},isPlotDiv:function(t){var e=n.select(t);return e.node()instanceof HTMLElement&amp;&amp;e.size()&amp;&amp;e.classed(&quot;js-plotly-plot&quot;)},removeElement:s,addStyleRule:function(t,e){l(&quot;global&quot;,t,e)},addRelatedStyleRule:l,deleteRelatedStyleRule:function(t){var e=&quot;plotly.js-style-&quot;+t,r=document.getElementById(e);r&amp;&amp;s(r)},getFullTransformMatrix:function(t){var e=u(t),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach((function(t){var e=c(t);if(e){var n=a.convertCssMatrix(e);r=o.multiply(r,r,n)}})),r},getElementTransformMatrix:c,getElementAndAncestors:u,equalDomRects:function(t,e){return t&amp;&amp;e&amp;&amp;t.x===e.x&amp;&amp;t.y===e.y&amp;&amp;t.top===e.top&amp;&amp;t.left===e.left&amp;&amp;t.right===e.right&amp;&amp;t.bottom===e.bottom}}},{&quot;./loggers&quot;:782,&quot;./matrix&quot;:784,d3:169,&quot;gl-mat4&quot;:292}],767:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;events&quot;).EventEmitter,i={init:function(t){if(t._ev instanceof n)return t;var e=new n,r=new n;return t._ev=e,t._internalEv=r,t.on=e.on.bind(e),t.once=e.once.bind(e),t.removeListener=e.removeListener.bind(e),t.removeAllListeners=e.removeAllListeners.bind(e),t._internalOn=r.on.bind(r),t._internalOnce=r.once.bind(r),t._removeInternalListener=r.removeListener.bind(r),t._removeAllInternalListeners=r.removeAllListeners.bind(r),t.emit=function(n,i){&quot;undefined&quot;!=typeof jQuery&amp;&amp;jQuery(t).trigger(n,i),e.emit(n,i),r.emit(n,i)},t},triggerHandler:function(t,e,r){var n,i;&quot;undefined&quot;!=typeof jQuery&amp;&amp;(n=jQuery(t).triggerHandler(e,r));var a=t._ev;if(!a)return n;var o,s=a._events[e];if(!s)return n;function l(t){return t.listener?(a.removeListener(e,t.listener),t.fired?void 0:(t.fired=!0,t.listener.apply(a,[r]))):t.apply(a,[r])}for(s=Array.isArray(s)?s:[s],o=0;o&lt;s.length-1;o++)l(s[o]);return i=l(s[o]),void 0!==n?n:i},purge:function(t){return delete t._ev,delete t.on,delete t.once,delete t.removeListener,delete t.removeAllListeners,delete t.emit,delete t._ev,delete t._internalEv,delete t._internalOn,delete t._internalOnce,delete t._removeInternalListener,delete t._removeAllInternalListeners,t}};e.exports=i},{events:110}],768:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is_plain_object.js&quot;),i=Array.isArray;function a(t,e,r,o){var s,l,c,u,f,h,p=t[0],d=t.length;if(2===d&amp;&amp;i(p)&amp;&amp;i(t[1])&amp;&amp;0===p.length){if(function(t,e){var r,n;for(r=0;r&lt;t.length;r++){if(null!==(n=t[r])&amp;&amp;&quot;object&quot;==typeof n)return!1;void 0!==n&amp;&amp;(e[r]=n)}return!0}(t[1],p))return p;p.splice(0,p.length)}for(var g=1;g&lt;d;g++)for(l in s=t[g])c=p[l],u=s[l],o&amp;&amp;i(u)?p[l]=u:e&amp;&amp;u&amp;&amp;(n(u)||(f=i(u)))?(f?(f=!1,h=c&amp;&amp;i(c)?c:[]):h=c&amp;&amp;n(c)?c:{},p[l]=a([h,u],e,r,o)):(&quot;undefined&quot;!=typeof u||r)&amp;&amp;(p[l]=u);return p}r.extendFlat=function(){return a(arguments,!1,!1,!1)},r.extendDeep=function(){return a(arguments,!0,!1,!1)},r.extendDeepAll=function(){return a(arguments,!0,!0,!1)},r.extendDeepNoArrays=function(){return a(arguments,!0,!1,!0)}},{&quot;./is_plain_object.js&quot;:779}],769:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e={},r=[],n=0,i=0;i&lt;t.length;i++){var a=t[i];1!==e[a]&amp;&amp;(e[a]=1,r[n++]=a)}return r}},{}],770:[function(t,e,r){&quot;use strict&quot;;function n(t){return!0===t.visible}function i(t){var e=t[0].trace;return!0===e.visible&amp;&amp;0!==e._length}e.exports=function(t){for(var e,r=(e=t,Array.isArray(e)&amp;&amp;Array.isArray(e[0])&amp;&amp;e[0][0]&amp;&amp;e[0][0].trace?i:n),a=[],o=0;o&lt;t.length;o++){var s=t[o];r(s)&amp;&amp;a.push(s)}return a}},{}],771:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;country-regex&quot;),a=t(&quot;@turf/area&quot;),o=t(&quot;@turf/centroid&quot;),s=t(&quot;@turf/bbox&quot;),l=t(&quot;./identity&quot;),c=t(&quot;./loggers&quot;),u=t(&quot;./is_plain_object&quot;),f=t(&quot;./nested_property&quot;),h=t(&quot;./polygon&quot;),p=Object.keys(i),d={&quot;ISO-3&quot;:l,&quot;USA-states&quot;:l,&quot;country names&quot;:function(t){for(var e=0;e&lt;p.length;e++){var r=p[e];if(new RegExp(i[r]).test(t.trim().toLowerCase()))return r}return c.log(&quot;Unrecognized country name: &quot;+t+&quot;.&quot;),!1}};function g(t){var e=t.geojson,r=window.PlotlyGeoAssets||{},n=&quot;string&quot;==typeof e?r[e]:e;return u(n)?n:(c.error(&quot;Oops ... something went wrong when fetching &quot;+e),!1)}e.exports={locationToFeature:function(t,e,r){if(!e||&quot;string&quot;!=typeof e)return!1;var n,i,a,o=d[t](e);if(o){if(&quot;USA-states&quot;===t)for(n=[],a=0;a&lt;r.length;a++)(i=r[a]).properties&amp;&amp;i.properties.gu&amp;&amp;&quot;USA&quot;===i.properties.gu&amp;&amp;n.push(i);else n=r;for(a=0;a&lt;n.length;a++)if((i=n[a]).id===o)return i;c.log([&quot;Location with id&quot;,o,&quot;does not have a matching topojson feature at this resolution.&quot;].join(&quot; &quot;))}return!1},feature2polygons:function(t){var e,r,n,i,a=t.geometry,o=a.coordinates,s=t.id,l=[];function c(t){for(var e=0;e&lt;t.length-1;e++)if(t[e][0]&gt;0&amp;&amp;t[e+1][0]&lt;0)return e;return null}switch(e=&quot;RUS&quot;===s||&quot;FJI&quot;===s?function(t){var e;if(null===c(t))e=t;else for(e=new Array(t.length),i=0;i&lt;t.length;i++)e[i]=[t[i][0]&lt;0?t[i][0]+360:t[i][0],t[i][1]];l.push(h.tester(e))}:&quot;ATA&quot;===s?function(t){var e=c(t);if(null===e)return l.push(h.tester(t));var r=new Array(t.length+1),n=0;for(i=0;i&lt;t.length;i++)i&gt;e?r[n++]=[t[i][0]+360,t[i][1]]:i===e?(r[n++]=t[i],r[n++]=[t[i][0],-90]):r[n++]=t[i];var a=h.tester(r);a.pts.pop(),l.push(a)}:function(t){l.push(h.tester(t))},a.type){case&quot;MultiPolygon&quot;:for(r=0;r&lt;o.length;r++)for(n=0;n&lt;o[r].length;n++)e(o[r][n]);break;case&quot;Polygon&quot;:for(r=0;r&lt;o.length;r++)e(o[r])}return l},getTraceGeojson:g,extractTraceFeature:function(t){var e=t[0].trace,r=g(e);if(!r)return!1;var n,i={},s=[];for(n=0;n&lt;e._length;n++){var l=t[n];(l.loc||0===l.loc)&amp;&amp;(i[l.loc]=l)}function u(t){var r=f(t,e.featureidkey||&quot;id&quot;).get(),n=i[r];if(n){var l=t.geometry;if(&quot;Polygon&quot;===l.type||&quot;MultiPolygon&quot;===l.type){var u={type:&quot;Feature&quot;,id:r,geometry:l,properties:{}};u.properties.ct=function(t){var e,r=t.geometry;if(&quot;MultiPolygon&quot;===r.type)for(var n=r.coordinates,i=0,s=0;s&lt;n.length;s++){var l={type:&quot;Polygon&quot;,coordinates:n[s]},c=a.default(l);c&gt;i&amp;&amp;(i=c,e=l)}else e=r;return o.default(e).geometry.coordinates}(u),n.fIn=t,n.fOut=u,s.push(u)}else c.log([&quot;Location&quot;,n.loc,&quot;does not have a valid GeoJSON geometry.&quot;,&quot;Traces with locationmode *geojson-id* only support&quot;,&quot;*Polygon* and *MultiPolygon* geometries.&quot;].join(&quot; &quot;))}delete i[r]}switch(r.type){case&quot;FeatureCollection&quot;:var h=r.features;for(n=0;n&lt;h.length;n++)u(h[n]);break;case&quot;Feature&quot;:u(r);break;default:return c.warn([&quot;Invalid GeoJSON type&quot;,(r.type||&quot;none&quot;)+&quot;.&quot;,&quot;Traces with locationmode *geojson-id* only support&quot;,&quot;*FeatureCollection* and *Feature* types.&quot;].join(&quot; &quot;)),!1}for(var p in i)c.log([&quot;Location *&quot;+p+&quot;*&quot;,&quot;does not have a matching feature with id-key&quot;,&quot;*&quot;+e.featureidkey+&quot;*.&quot;].join(&quot; &quot;));return s},fetchTraceGeoData:function(t){var e=window.PlotlyGeoAssets||{},r=[];function i(t){return new Promise((function(r,i){n.json(t,(function(n,a){if(n){delete e[t];var o=404===n.status?'GeoJSON at URL &quot;'+t+'&quot; does not exist.':&quot;Unexpected error while fetching from &quot;+t;return i(new Error(o))}return e[t]=a,r(a)}))}))}function a(t){return new Promise((function(r,n){var i=0,a=setInterval((function(){return e[t]&amp;&amp;&quot;pending&quot;!==e[t]?(clearInterval(a),r(e[t])):i&gt;100?(clearInterval(a),n(&quot;Unexpected error while fetching from &quot;+t)):void i++}),50)}))}for(var o=0;o&lt;t.length;o++){var s=t[o][0].trace.geojson;&quot;string&quot;==typeof s&amp;&amp;(e[s]?&quot;pending&quot;===e[s]&amp;&amp;r.push(a(s)):(e[s]=&quot;pending&quot;,r.push(i(s))))}return r},computeBbox:function(t){return s.default(t)}}},{&quot;./identity&quot;:776,&quot;./is_plain_object&quot;:779,&quot;./loggers&quot;:782,&quot;./nested_property&quot;:786,&quot;./polygon&quot;:790,&quot;@turf/area&quot;:59,&quot;@turf/bbox&quot;:60,&quot;@turf/centroid&quot;:61,&quot;country-regex&quot;:139,d3:169}],772:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../constants/numerical&quot;).BADNUM;r.calcTraceToLineCoords=function(t){for(var e=t[0].trace.connectgaps,r=[],i=[],a=0;a&lt;t.length;a++){var o=t[a].lonlat;o[0]!==n?i.push(o):!e&amp;&amp;i.length&gt;0&amp;&amp;(r.push(i),i=[])}return i.length&gt;0&amp;&amp;r.push(i),r},r.makeLine=function(t){return 1===t.length?{type:&quot;LineString&quot;,coordinates:t[0]}:{type:&quot;MultiLineString&quot;,coordinates:t}},r.makePolygon=function(t){if(1===t.length)return{type:&quot;Polygon&quot;,coordinates:t};for(var e=new Array(t.length),r=0;r&lt;t.length;r++)e[r]=[t[r]];return{type:&quot;MultiPolygon&quot;,coordinates:e}},r.makeBlank=function(){return{type:&quot;Point&quot;,coordinates:[]}}},{&quot;../constants/numerical&quot;:753}],773:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o=t(&quot;./mod&quot;).mod;function s(t,e,r,n,i,a,o,s){var l=r-t,c=i-t,u=o-i,f=n-e,h=a-e,p=s-a,d=l*p-u*f;if(0===d)return null;var g=(c*p-u*h)/d,m=(c*f-l*h)/d;return m&lt;0||m&gt;1||g&lt;0||g&gt;1?null:{x:t+l*g,y:e+f*g}}function l(t,e,r,n,i){var a=n*t+i*e;if(a&lt;0)return n*n+i*i;if(a&gt;r){var o=n-t,s=i-e;return o*o+s*s}var l=n*e-i*t;return l*l/r}r.segmentsIntersect=s,r.segmentDistance=function(t,e,r,n,i,a,o,c){if(s(t,e,r,n,i,a,o,c))return 0;var u=r-t,f=n-e,h=o-i,p=c-a,d=u*u+f*f,g=h*h+p*p,m=Math.min(l(u,f,d,i-t,a-e),l(u,f,d,o-t,c-e),l(h,p,g,t-i,e-a),l(h,p,g,r-i,n-a));return Math.sqrt(m)},r.getTextLocation=function(t,e,r,s){if(t===i&amp;&amp;s===a||(n={},i=t,a=s),n[r])return n[r];var l=t.getPointAtLength(o(r-s/2,e)),c=t.getPointAtLength(o(r+s/2,e)),u=Math.atan((c.y-l.y)/(c.x-l.x)),f=t.getPointAtLength(o(r,e)),h={x:(4*f.x+l.x+c.x)/6,y:(4*f.y+l.y+c.y)/6,theta:u};return n[r]=h,h},r.clearLocationCache=function(){i=null},r.getVisibleSegment=function(t,e,r){var n,i,a=e.left,o=e.right,s=e.top,l=e.bottom,c=0,u=t.getTotalLength(),f=u;function h(e){var r=t.getPointAtLength(e);0===e?n=r:e===u&amp;&amp;(i=r);var c=r.x&lt;a?a-r.x:r.x&gt;o?r.x-o:0,f=r.y&lt;s?s-r.y:r.y&gt;l?r.y-l:0;return Math.sqrt(c*c+f*f)}for(var p=h(c);p;){if((c+=p+r)&gt;f)return;p=h(c)}for(p=h(f);p;){if(c&gt;(f-=p+r))return;p=h(f)}return{min:c,max:f,len:f-c,total:u,isClosed:0===c&amp;&amp;f===u&amp;&amp;Math.abs(n.x-i.x)&lt;.1&amp;&amp;Math.abs(n.y-i.y)&lt;.1}},r.findPointOnPath=function(t,e,r,n){for(var i,a,o,s=(n=n||{}).pathLength||t.getTotalLength(),l=n.tolerance||.001,c=n.iterationLimit||30,u=t.getPointAtLength(0)[r]&gt;t.getPointAtLength(s)[r]?-1:1,f=0,h=0,p=s;f&lt;c;){if(i=(h+p)/2,o=(a=t.getPointAtLength(i))[r]-e,Math.abs(o)&lt;l)return a;u*o&gt;0?p=i:h=i,f++}return a}},{&quot;./mod&quot;:785}],774:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;color-normalize&quot;),o=t(&quot;../components/colorscale&quot;),s=t(&quot;../components/color/attributes&quot;).defaultLine,l=t(&quot;./array&quot;).isArrayOrTypedArray,c=a(s);function u(t,e){var r=t;return r[3]*=e,r}function f(t){if(n(t))return c;var e=a(t);return e.length?e:c}function h(t){return n(t)?t:1}e.exports={formatColor:function(t,e,r){var n,i,s,p,d,g=t.color,m=l(g),v=l(e),y=o.extractOpts(t),x=[];if(n=void 0!==y.colorscale?o.makeColorScaleFuncFromTrace(t):f,i=m?function(t,e){return void 0===t[e]?c:a(n(t[e]))}:f,s=v?function(t,e){return void 0===t[e]?1:h(t[e])}:h,m||v)for(var b=0;b&lt;r;b++)p=i(g,b),d=s(e,b),x[b]=u(p,d);else x=u(a(g),e);return x},parseColorScale:function(t){var e=o.extractOpts(t),r=e.colorscale;return e.reversescale&amp;&amp;(r=o.flipScale(e.colorscale)),r.map((function(t){var e=t[0],r=i(t[1]).toRgb();return{index:e,rgb:[r.r,r.g,r.b,r.a]}}))}}},{&quot;../components/color/attributes&quot;:642,&quot;../components/colorscale&quot;:655,&quot;./array&quot;:760,&quot;color-normalize&quot;:125,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],775:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./identity&quot;);function i(t){return[t]}e.exports={keyFun:function(t){return t.key},repeat:i,descend:n,wrap:i,unwrap:function(t){return t[0]}}},{&quot;./identity&quot;:776}],776:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t}},{}],777:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(!e)return t;var r=1/Math.abs(e),n=r&gt;1?(r*t+r*e)/r:t+e,i=String(n).length;if(i&gt;16){var a=String(e).length;if(i&gt;=String(t).length+a){var o=parseFloat(n).toPrecision(12);-1===o.indexOf(&quot;e+&quot;)&amp;&amp;(n=+o)}}return n}},{}],778:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-time-format&quot;).utcFormat,a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../constants/numerical&quot;),s=o.FP_SAFE,l=o.BADNUM,c=e.exports={};c.nestedProperty=t(&quot;./nested_property&quot;),c.keyedContainer=t(&quot;./keyed_container&quot;),c.relativeAttr=t(&quot;./relative_attr&quot;),c.isPlainObject=t(&quot;./is_plain_object&quot;),c.toLogRange=t(&quot;./to_log_range&quot;),c.relinkPrivateKeys=t(&quot;./relink_private&quot;);var u=t(&quot;./array&quot;);c.isTypedArray=u.isTypedArray,c.isArrayOrTypedArray=u.isArrayOrTypedArray,c.isArray1D=u.isArray1D,c.ensureArray=u.ensureArray,c.concat=u.concat,c.maxRowLength=u.maxRowLength,c.minRowLength=u.minRowLength;var f=t(&quot;./mod&quot;);c.mod=f.mod,c.modHalf=f.modHalf;var h=t(&quot;./coerce&quot;);c.valObjectMeta=h.valObjectMeta,c.coerce=h.coerce,c.coerce2=h.coerce2,c.coerceFont=h.coerceFont,c.coerceHoverinfo=h.coerceHoverinfo,c.coerceSelectionMarkerOpacity=h.coerceSelectionMarkerOpacity,c.validate=h.validate;var p=t(&quot;./dates&quot;);c.dateTime2ms=p.dateTime2ms,c.isDateTime=p.isDateTime,c.ms2DateTime=p.ms2DateTime,c.ms2DateTimeLocal=p.ms2DateTimeLocal,c.cleanDate=p.cleanDate,c.isJSDate=p.isJSDate,c.formatDate=p.formatDate,c.incrementMonth=p.incrementMonth,c.dateTick0=p.dateTick0,c.dfltRange=p.dfltRange,c.findExactDates=p.findExactDates,c.MIN_MS=p.MIN_MS,c.MAX_MS=p.MAX_MS;var d=t(&quot;./search&quot;);c.findBin=d.findBin,c.sorterAsc=d.sorterAsc,c.sorterDes=d.sorterDes,c.distinctVals=d.distinctVals,c.roundUp=d.roundUp,c.sort=d.sort,c.findIndexOfMin=d.findIndexOfMin;var g=t(&quot;./stats&quot;);c.aggNums=g.aggNums,c.len=g.len,c.mean=g.mean,c.median=g.median,c.midRange=g.midRange,c.variance=g.variance,c.stdev=g.stdev,c.interp=g.interp;var m=t(&quot;./matrix&quot;);c.init2dArray=m.init2dArray,c.transposeRagged=m.transposeRagged,c.dot=m.dot,c.translationMatrix=m.translationMatrix,c.rotationMatrix=m.rotationMatrix,c.rotationXYMatrix=m.rotationXYMatrix,c.apply3DTransform=m.apply3DTransform,c.apply2DTransform=m.apply2DTransform,c.apply2DTransform2=m.apply2DTransform2,c.convertCssMatrix=m.convertCssMatrix,c.inverseTransformMatrix=m.inverseTransformMatrix;var v=t(&quot;./angles&quot;);c.deg2rad=v.deg2rad,c.rad2deg=v.rad2deg,c.angleDelta=v.angleDelta,c.angleDist=v.angleDist,c.isFullCircle=v.isFullCircle,c.isAngleInsideSector=v.isAngleInsideSector,c.isPtInsideSector=v.isPtInsideSector,c.pathArc=v.pathArc,c.pathSector=v.pathSector,c.pathAnnulus=v.pathAnnulus;var y=t(&quot;./anchor_utils&quot;);c.isLeftAnchor=y.isLeftAnchor,c.isCenterAnchor=y.isCenterAnchor,c.isRightAnchor=y.isRightAnchor,c.isTopAnchor=y.isTopAnchor,c.isMiddleAnchor=y.isMiddleAnchor,c.isBottomAnchor=y.isBottomAnchor;var x=t(&quot;./geometry2d&quot;);c.segmentsIntersect=x.segmentsIntersect,c.segmentDistance=x.segmentDistance,c.getTextLocation=x.getTextLocation,c.clearLocationCache=x.clearLocationCache,c.getVisibleSegment=x.getVisibleSegment,c.findPointOnPath=x.findPointOnPath;var b=t(&quot;./extend&quot;);c.extendFlat=b.extendFlat,c.extendDeep=b.extendDeep,c.extendDeepAll=b.extendDeepAll,c.extendDeepNoArrays=b.extendDeepNoArrays;var _=t(&quot;./loggers&quot;);c.log=_.log,c.warn=_.warn,c.error=_.error;var w=t(&quot;./regex&quot;);c.counterRegex=w.counter;var T=t(&quot;./throttle&quot;);c.throttle=T.throttle,c.throttleDone=T.done,c.clearThrottle=T.clear;var k=t(&quot;./dom&quot;);function M(t){var e={};for(var r in t)for(var n=t[r],i=0;i&lt;n.length;i++)e[n[i]]=+r;return e}c.getGraphDiv=k.getGraphDiv,c.isPlotDiv=k.isPlotDiv,c.removeElement=k.removeElement,c.addStyleRule=k.addStyleRule,c.addRelatedStyleRule=k.addRelatedStyleRule,c.deleteRelatedStyleRule=k.deleteRelatedStyleRule,c.getFullTransformMatrix=k.getFullTransformMatrix,c.getElementTransformMatrix=k.getElementTransformMatrix,c.getElementAndAncestors=k.getElementAndAncestors,c.equalDomRects=k.equalDomRects,c.clearResponsive=t(&quot;./clear_responsive&quot;),c.preserveDrawingBuffer=t(&quot;./preserve_drawing_buffer&quot;),c.makeTraceGroups=t(&quot;./make_trace_groups&quot;),c._=t(&quot;./localize&quot;),c.notifier=t(&quot;./notifier&quot;),c.filterUnique=t(&quot;./filter_unique&quot;),c.filterVisible=t(&quot;./filter_visible&quot;),c.pushUnique=t(&quot;./push_unique&quot;),c.increment=t(&quot;./increment&quot;),c.cleanNumber=t(&quot;./clean_number&quot;),c.ensureNumber=function(t){return a(t)?(t=Number(t))&lt;-s||t&gt;s?l:a(t)?Number(t):l:l},c.isIndex=function(t,e){return!(void 0!==e&amp;&amp;t&gt;=e)&amp;&amp;(a(t)&amp;&amp;t&gt;=0&amp;&amp;t%1==0)},c.noop=t(&quot;./noop&quot;),c.identity=t(&quot;./identity&quot;),c.repeat=function(t,e){for(var r=new Array(e),n=0;n&lt;e;n++)r[n]=t;return r},c.swapAttrs=function(t,e,r,n){r||(r=&quot;x&quot;),n||(n=&quot;y&quot;);for(var i=0;i&lt;e.length;i++){var a=e[i],o=c.nestedProperty(t,a.replace(&quot;?&quot;,r)),s=c.nestedProperty(t,a.replace(&quot;?&quot;,n)),l=o.get();o.set(s.get()),s.set(l)}},c.raiseToTop=function(t){t.parentNode.appendChild(t)},c.cancelTransition=function(t){return t.transition().duration(0)},c.constrain=function(t,e,r){return e&gt;r?Math.max(r,Math.min(e,t)):Math.max(e,Math.min(r,t))},c.bBoxIntersect=function(t,e,r){return r=r||0,t.left&lt;=e.right+r&amp;&amp;e.left&lt;=t.right+r&amp;&amp;t.top&lt;=e.bottom+r&amp;&amp;e.top&lt;=t.bottom+r},c.simpleMap=function(t,e,r,n,i){for(var a=t.length,o=new Array(a),s=0;s&lt;a;s++)o[s]=e(t[s],r,n,i);return o},c.randstr=function t(e,r,n,i){if(n||(n=16),void 0===r&amp;&amp;(r=24),r&lt;=0)return&quot;0&quot;;var a,o,s=Math.log(Math.pow(2,r))/Math.log(n),l=&quot;&quot;;for(a=2;s===1/0;a*=2)s=Math.log(Math.pow(2,r/a))/Math.log(n)*a;var u=s-Math.floor(s);for(a=0;a&lt;Math.floor(s);a++)l=Math.floor(Math.random()*n).toString(n)+l;u&amp;&amp;(o=Math.pow(n,u),l=Math.floor(Math.random()*o).toString(n)+l);var f=parseInt(l,n);return e&amp;&amp;e[l]||f!==1/0&amp;&amp;f&gt;=Math.pow(2,r)?i&gt;10?(c.warn(&quot;randstr failed uniqueness&quot;),l):t(e,r,n,(i||0)+1):l},c.OptionControl=function(t,e){t||(t={}),e||(e=&quot;opt&quot;);var r={optionList:[],_newoption:function(n){n[e]=t,r[n.name]=n,r.optionList.push(n)}};return r[&quot;_&quot;+e]=t,r},c.smooth=function(t,e){if((e=Math.round(e)||0)&lt;2)return t;var r,n,i,a,o=t.length,s=2*o,l=2*e-1,c=new Array(l),u=new Array(o);for(r=0;r&lt;l;r++)c[r]=(1-Math.cos(Math.PI*(r+1)/e))/(2*e);for(r=0;r&lt;o;r++){for(a=0,n=0;n&lt;l;n++)(i=r+n+1-e)&lt;-o?i-=s*Math.round(i/s):i&gt;=s&amp;&amp;(i-=s*Math.floor(i/s)),i&lt;0?i=-1-i:i&gt;=o&amp;&amp;(i=s-1-i),a+=t[i]*c[n];u[r]=a}return u},c.syncOrAsync=function(t,e,r){var n;function i(){return c.syncOrAsync(t,e,r)}for(;t.length;)if((n=(0,t.splice(0,1)[0])(e))&amp;&amp;n.then)return n.then(i).then(void 0,c.promiseError);return r&amp;&amp;r(e)},c.stripTrailingSlash=function(t){return&quot;/&quot;===t.substr(-1)?t.substr(0,t.length-1):t},c.noneOrAll=function(t,e,r){if(t){var n,i=!1,a=!0;for(n=0;n&lt;r.length;n++)null!=t[r[n]]?i=!0:a=!1;if(i&amp;&amp;!a)for(n=0;n&lt;r.length;n++)t[r[n]]=e[r[n]]}},c.mergeArray=function(t,e,r,n){var i=&quot;function&quot;==typeof n;if(c.isArrayOrTypedArray(t))for(var a=Math.min(t.length,e.length),o=0;o&lt;a;o++){var s=t[o];e[o][r]=i?n(s):s}},c.mergeArrayCastPositive=function(t,e,r){return c.mergeArray(t,e,r,(function(t){var e=+t;return isFinite(e)&amp;&amp;e&gt;0?e:0}))},c.fillArray=function(t,e,r,n){if(n=n||c.identity,c.isArrayOrTypedArray(t))for(var i=0;i&lt;e.length;i++)e[i][r]=n(t[i])},c.castOption=function(t,e,r,n){n=n||c.identity;var i=c.nestedProperty(t,r).get();return c.isArrayOrTypedArray(i)?Array.isArray(e)&amp;&amp;c.isArrayOrTypedArray(i[e[0]])?n(i[e[0]][e[1]]):n(i[e]):i},c.extractOption=function(t,e,r,n){if(r in t)return t[r];var i=c.nestedProperty(e,n).get();return Array.isArray(i)?void 0:i},c.tagSelected=function(t,e,r){var n,i,a=e.selectedpoints,o=e._indexToPoints;o&amp;&amp;(n=M(o));for(var s=0;s&lt;a.length;s++){var l=a[s];if(c.isIndex(l)||c.isArrayOrTypedArray(l)&amp;&amp;c.isIndex(l[0])&amp;&amp;c.isIndex(l[1])){var u=n?n[l]:l,f=r?r[u]:u;void 0!==(i=f)&amp;&amp;i&lt;t.length&amp;&amp;(t[f].selected=1)}}},c.selIndices2selPoints=function(t){var e=t.selectedpoints,r=t._indexToPoints;if(r){for(var n=M(r),i=[],a=0;a&lt;e.length;a++){var o=e[a];if(c.isIndex(o)){var s=n[o];c.isIndex(s)&amp;&amp;i.push(s)}}return i}return e},c.getTargetArray=function(t,e){var r=e.target;if(&quot;string&quot;==typeof r&amp;&amp;r){var n=c.nestedProperty(t,r).get();return!!Array.isArray(n)&amp;&amp;n}return!!Array.isArray(r)&amp;&amp;r},c.minExtend=function(t,e){var r={};&quot;object&quot;!=typeof e&amp;&amp;(e={});var n,i,a,o=Object.keys(t);for(n=0;n&lt;o.length;n++)a=t[i=o[n]],&quot;_&quot;!==i.charAt(0)&amp;&amp;&quot;function&quot;!=typeof a&amp;&amp;(&quot;module&quot;===i?r[i]=a:Array.isArray(a)?r[i]=&quot;colorscale&quot;===i?a.slice():a.slice(0,3):c.isTypedArray(a)?r[i]=a.subarray(0,3):r[i]=a&amp;&amp;&quot;object&quot;==typeof a?c.minExtend(t[i],e[i]):a);for(o=Object.keys(e),n=0;n&lt;o.length;n++)&quot;object&quot;==typeof(a=e[i=o[n]])&amp;&amp;i in r&amp;&amp;&quot;object&quot;==typeof r[i]||(r[i]=a);return r},c.titleCase=function(t){return t.charAt(0).toUpperCase()+t.substr(1)},c.containsAny=function(t,e){for(var r=0;r&lt;e.length;r++)if(-1!==t.indexOf(e[r]))return!0;return!1},c.isIE=function(){return&quot;undefined&quot;!=typeof window.navigator.msSaveBlob};var A=/MSIE [1-9]\./;c.isIE9orBelow=function(){return c.isIE()&amp;&amp;A.test(window.navigator.userAgent)};var S=/Version\/[\d\.]+.*Safari/;c.isSafari=function(){return S.test(window.navigator.userAgent)};var E=/iPad|iPhone|iPod/;c.isIOS=function(){return E.test(window.navigator.userAgent)},c.isD3Selection=function(t){return t&amp;&amp;&quot;function&quot;==typeof t.classed},c.ensureSingle=function(t,e,r,n){var i=t.select(e+(r?&quot;.&quot;+r:&quot;&quot;));if(i.size())return i;var a=t.append(e);return r&amp;&amp;a.classed(r,!0),n&amp;&amp;a.call(n),a},c.ensureSingleById=function(t,e,r,n){var i=t.select(e+&quot;#&quot;+r);if(i.size())return i;var a=t.append(e).attr(&quot;id&quot;,r);return n&amp;&amp;a.call(n),a},c.objectFromPath=function(t,e){for(var r,n=t.split(&quot;.&quot;),i=r={},a=0;a&lt;n.length;a++){var o=n[a],s=null,l=n[a].match(/(.*)\[([0-9]+)\]/);l?(o=l[1],s=l[2],r=r[o]=[],a===n.length-1?r[s]=e:r[s]={},r=r[s]):(a===n.length-1?r[o]=e:r[o]={},r=r[o])}return i};var C=/^([^\[\.]+)\.(.+)?/,L=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;c.expandObjectPaths=function(t){var e,r,n,i,a,o,s;if(&quot;object&quot;==typeof t&amp;&amp;!Array.isArray(t))for(r in t)t.hasOwnProperty(r)&amp;&amp;((e=r.match(C))?(i=t[r],n=e[1],delete t[r],t[n]=c.extendDeepNoArrays(t[n]||{},c.objectFromPath(r,c.expandObjectPaths(i))[n])):(e=r.match(L))?(i=t[r],n=e[1],a=parseInt(e[2]),delete t[r],t[n]=t[n]||[],&quot;.&quot;===e[3]?(s=e[4],o=t[n][a]=t[n][a]||{},c.extendDeepNoArrays(o,c.objectFromPath(s,c.expandObjectPaths(i)))):t[n][a]=c.expandObjectPaths(i)):t[r]=c.expandObjectPaths(t[r]));return t},c.numSeparate=function(t,e,r){if(r||(r=!1),&quot;string&quot;!=typeof e||0===e.length)throw new Error(&quot;Separator string required for formatting!&quot;);&quot;number&quot;==typeof t&amp;&amp;(t=String(t));var n=/(\d+)(\d{3})/,i=e.charAt(0),a=e.charAt(1),o=t.split(&quot;.&quot;),s=o[0],l=o.length&gt;1?i+o[1]:&quot;&quot;;if(a&amp;&amp;(o.length&gt;1||s.length&gt;4||r))for(;n.test(s);)s=s.replace(n,&quot;$1&quot;+a+&quot;$2&quot;);return s+l},c.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var I=/^\w*$/;c.templateString=function(t,e){var r={};return t.replace(c.TEMPLATE_STRING_REGEX,(function(t,n){var i;return I.test(n)?i=e[n]:(r[n]=r[n]||c.nestedProperty(e,n).get,i=r[n]()),c.isValidTextValue(i)?i:&quot;&quot;}))};var P={max:10,count:0,name:&quot;hovertemplate&quot;};c.hovertemplateString=function(){return D.apply(P,arguments)};var z={max:10,count:0,name:&quot;texttemplate&quot;};c.texttemplateString=function(){return D.apply(z,arguments)};var O=/^[:|\|]/;function D(t,e,r){var a=this,o=arguments;e||(e={});var s={};return t.replace(c.TEMPLATE_STRING_REGEX,(function(t,l,u){var f,h,p,d;for(p=3;p&lt;o.length;p++)if(f=o[p]){if(f.hasOwnProperty(l)){h=f[l];break}if(I.test(l)||(h=s[l]||c.nestedProperty(f,l).get())&amp;&amp;(s[l]=h),void 0!==h)break}if(void 0===h&amp;&amp;a)return a.count&lt;a.max&amp;&amp;(c.warn(&quot;Variable '&quot;+l+&quot;' in &quot;+a.name+&quot; could not be found!&quot;),h=t),a.count===a.max&amp;&amp;c.warn(&quot;Too many &quot;+a.name+&quot; warnings - additional warnings will be suppressed&quot;),a.count++,t;if(u){if(&quot;:&quot;===u[0]&amp;&amp;(h=(d=r?r.numberFormat:n.format)(u.replace(O,&quot;&quot;))(h)),&quot;|&quot;===u[0]){d=r?r.timeFormat:i;var g=c.dateTime2ms(h);h=c.formatDate(g,u.replace(O,&quot;&quot;),!1,d)}}else e.hasOwnProperty(l+&quot;Label&quot;)&amp;&amp;(h=e[l+&quot;Label&quot;]);return h}))}c.subplotSort=function(t,e){for(var r=Math.min(t.length,e.length)+1,n=0,i=0,a=0;a&lt;r;a++){var o=t.charCodeAt(a)||0,s=e.charCodeAt(a)||0,l=o&gt;=48&amp;&amp;o&lt;=57,c=s&gt;=48&amp;&amp;s&lt;=57;if(l&amp;&amp;(n=10*n+o-48),c&amp;&amp;(i=10*i+s-48),!l||!c){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var R=2e9;c.seedPseudoRandom=function(){R=2e9},c.pseudoRandom=function(){var t=R;return R=(69069*R+1)%4294967296,Math.abs(R-t)&lt;429496729?c.pseudoRandom():R/4294967296},c.fillText=function(t,e,r){var n=Array.isArray(r)?function(t){r.push(t)}:function(t){r.text=t},i=c.extractOption(t,e,&quot;htx&quot;,&quot;hovertext&quot;);if(c.isValidTextValue(i))return n(i);var a=c.extractOption(t,e,&quot;tx&quot;,&quot;text&quot;);return c.isValidTextValue(a)?n(a):void 0},c.isValidTextValue=function(t){return t||0===t},c.formatPercent=function(t,e){e=e||0;for(var r=(Math.round(100*t*Math.pow(10,e))*Math.pow(.1,e)).toFixed(e)+&quot;%&quot;,n=0;n&lt;e;n++)-1!==r.indexOf(&quot;.&quot;)&amp;&amp;(r=(r=r.replace(&quot;0%&quot;,&quot;%&quot;)).replace(&quot;.%&quot;,&quot;%&quot;));return r},c.isHidden=function(t){var e=window.getComputedStyle(t).display;return!e||&quot;none&quot;===e},c.strTranslate=function(t,e){return t||e?&quot;translate(&quot;+t+&quot;,&quot;+e+&quot;)&quot;:&quot;&quot;},c.strRotate=function(t){return t?&quot;rotate(&quot;+t+&quot;)&quot;:&quot;&quot;},c.strScale=function(t){return 1!==t?&quot;scale(&quot;+t+&quot;)&quot;:&quot;&quot;},c.getTextTransform=function(t){var e=t.noCenter,r=t.textX,n=t.textY,i=t.targetX,a=t.targetY,o=t.anchorX||0,s=t.anchorY||0,l=t.rotate,u=t.scale;return u?u&gt;1&amp;&amp;(u=1):u=0,c.strTranslate(i-u*(r+o),a-u*(n+s))+c.strScale(u)+(l?&quot;rotate(&quot;+l+(e?&quot;&quot;:&quot; &quot;+r+&quot; &quot;+n)+&quot;)&quot;:&quot;&quot;)},c.ensureUniformFontSize=function(t,e){var r=c.extendFlat({},e);return r.size=Math.max(e.size,t._fullLayout.uniformtext.minsize||0),r},c.join2=function(t,e,r){var n=t.length;return n&gt;1?t.slice(0,-1).join(e)+r+t[n-1]:t.join(e)}},{&quot;../constants/numerical&quot;:753,&quot;./anchor_utils&quot;:758,&quot;./angles&quot;:759,&quot;./array&quot;:760,&quot;./clean_number&quot;:761,&quot;./clear_responsive&quot;:763,&quot;./coerce&quot;:764,&quot;./dates&quot;:765,&quot;./dom&quot;:766,&quot;./extend&quot;:768,&quot;./filter_unique&quot;:769,&quot;./filter_visible&quot;:770,&quot;./geometry2d&quot;:773,&quot;./identity&quot;:776,&quot;./increment&quot;:777,&quot;./is_plain_object&quot;:779,&quot;./keyed_container&quot;:780,&quot;./localize&quot;:781,&quot;./loggers&quot;:782,&quot;./make_trace_groups&quot;:783,&quot;./matrix&quot;:784,&quot;./mod&quot;:785,&quot;./nested_property&quot;:786,&quot;./noop&quot;:787,&quot;./notifier&quot;:788,&quot;./preserve_drawing_buffer&quot;:792,&quot;./push_unique&quot;:793,&quot;./regex&quot;:795,&quot;./relative_attr&quot;:796,&quot;./relink_private&quot;:797,&quot;./search&quot;:798,&quot;./stats&quot;:801,&quot;./throttle&quot;:804,&quot;./to_log_range&quot;:805,d3:169,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],779:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return window&amp;&amp;window.process&amp;&amp;window.process.versions?&quot;[object Object]&quot;===Object.prototype.toString.call(t):&quot;[object Object]&quot;===Object.prototype.toString.call(t)&amp;&amp;Object.getPrototypeOf(t)===Object.prototype}},{}],780:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./nested_property&quot;),i=/^\w*$/;e.exports=function(t,e,r,a){var o,s,l;r=r||&quot;name&quot;,a=a||&quot;value&quot;;var c={};e&amp;&amp;e.length?(l=n(t,e),s=l.get()):s=t,e=e||&quot;&quot;;var u={};if(s)for(o=0;o&lt;s.length;o++)u[s[o][r]]=o;var f=i.test(a),h={set:function(t,e){var i=null===e?4:0;if(!s){if(!l||4===i)return;s=[],l.set(s)}var o=u[t];if(void 0===o){if(4===i)return;i|=3,o=s.length,u[t]=o}else e!==(f?s[o][a]:n(s[o],a).get())&amp;&amp;(i|=2);var p=s[o]=s[o]||{};return p[r]=t,f?p[a]=e:n(p,a).set(e),null!==e&amp;&amp;(i&amp;=-5),c[o]=c[o]|i,h},get:function(t){if(s){var e=u[t];return void 0===e?void 0:f?s[e][a]:n(s[e],a).get()}},rename:function(t,e){var n=u[t];return void 0===n||(c[n]=1|c[n],u[e]=n,delete u[t],s[n][r]=e),h},remove:function(t){var e=u[t];if(void 0===e)return h;var i=s[e];if(Object.keys(i).length&gt;2)return c[e]=2|c[e],h.set(t,null);if(f){for(o=e;o&lt;s.length;o++)c[o]=3|c[o];for(o=e;o&lt;s.length;o++)u[s[o][r]]--;s.splice(e,1),delete u[t]}else n(i,a).set(null),c[e]=6|c[e];return h},constructUpdate:function(){for(var t,i,o={},l=Object.keys(c),u=0;u&lt;l.length;u++)i=l[u],t=e+&quot;[&quot;+i+&quot;]&quot;,s[i]?(1&amp;c[i]&amp;&amp;(o[t+&quot;.&quot;+r]=s[i][r]),2&amp;c[i]&amp;&amp;(o[t+&quot;.&quot;+a]=f?4&amp;c[i]?null:s[i][a]:4&amp;c[i]?null:n(s[i],a).get())):o[t]=null;return o}};return h}},{&quot;./nested_property&quot;:786}],781:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);e.exports=function(t,e){for(var r=t._context.locale,i=0;i&lt;2;i++){for(var a=t._context.locales,o=0;o&lt;2;o++){var s=(a[r]||{}).dictionary;if(s){var l=s[e];if(l)return l}a=n.localeRegistry}var c=r.split(&quot;-&quot;)[0];if(c===r)break;r=c}return e}},{&quot;../registry&quot;:911}],782:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../plot_api/plot_config&quot;).dfltConfig,i=t(&quot;./notifier&quot;),a=e.exports={};function o(t,e){if(t&amp;&amp;t.apply)try{return void t.apply(console,e)}catch(t){}for(var r=0;r&lt;e.length;r++)try{t(e[r])}catch(t){console.log(e[r])}}a.log=function(){var t;if(n.logging&gt;1){var e=[&quot;LOG:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);o(console.trace||console.log,e)}if(n.notifyOnLogging&gt;1){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;long&quot;)}},a.warn=function(){var t;if(n.logging&gt;0){var e=[&quot;WARN:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);o(console.trace||console.log,e)}if(n.notifyOnLogging&gt;0){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;stick&quot;)}},a.error=function(){var t;if(n.logging&gt;0){var e=[&quot;ERROR:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);o(console.error,e)}if(n.notifyOnLogging&gt;0){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;stick&quot;)}}},{&quot;../plot_api/plot_config&quot;:815,&quot;./notifier&quot;:788}],783:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t,e,r){var i=t.selectAll(&quot;g.&quot;+r.replace(/\s/g,&quot;.&quot;)).data(e,(function(t){return t[0].trace.uid}));i.exit().remove(),i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,r),i.order();var a=t.classed(&quot;rangeplot&quot;)?&quot;nodeRangePlot3&quot;:&quot;node3&quot;;return i.each((function(t){t[0][a]=n.select(this)})),i}},{d3:169}],784:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mat4&quot;);r.init2dArray=function(t,e){for(var r=new Array(t),n=0;n&lt;t;n++)r[n]=new Array(e);return r},r.transposeRagged=function(t){var e,r,n=0,i=t.length;for(e=0;e&lt;i;e++)n=Math.max(n,t[e].length);var a=new Array(n);for(e=0;e&lt;n;e++)for(a[e]=new Array(i),r=0;r&lt;i;r++)a[e][r]=t[r][e];return a},r.dot=function(t,e){if(!t.length||!e.length||t.length!==e.length)return null;var n,i,a=t.length;if(t[0].length)for(n=new Array(a),i=0;i&lt;a;i++)n[i]=r.dot(t[i],e);else if(e[0].length){var o=r.transposeRagged(e);for(n=new Array(o.length),i=0;i&lt;o.length;i++)n[i]=r.dot(t,o[i])}else for(n=0,i=0;i&lt;a;i++)n+=t[i]*e[i];return n},r.translationMatrix=function(t,e){return[[1,0,t],[0,1,e],[0,0,1]]},r.rotationMatrix=function(t){var e=t*Math.PI/180;return[[Math.cos(e),-Math.sin(e),0],[Math.sin(e),Math.cos(e),0],[0,0,1]]},r.rotationXYMatrix=function(t,e,n){return r.dot(r.dot(r.translationMatrix(e,n),r.rotationMatrix(t)),r.translationMatrix(-e,-n))},r.apply3DTransform=function(t){return function(){var e=arguments,n=1===arguments.length?e[0]:[e[0],e[1],e[2]||0];return r.dot(t,[n[0],n[1],n[2],1]).slice(0,3)}},r.apply2DTransform=function(t){return function(){var e=arguments;3===e.length&amp;&amp;(e=e[0]);var n=1===arguments.length?e[0]:[e[0],e[1]];return r.dot(t,[n[0],n[1],1]).slice(0,2)}},r.apply2DTransform2=function(t){var e=r.apply2DTransform(t);return function(t){return e(t.slice(0,2)).concat(e(t.slice(2,4)))}},r.convertCssMatrix=function(t){if(t){var e=t.length;if(16===e)return t;if(6===e)return[t[0],t[1],0,0,t[2],t[3],0,0,0,0,1,0,t[4],t[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},r.inverseTransformMatrix=function(t){var e=[];return n.invert(e,t),[[e[0],e[1],e[2],e[3]],[e[4],e[5],e[6],e[7]],[e[8],e[9],e[10],e[11]],[e[12],e[13],e[14],e[15]]]}},{&quot;gl-mat4&quot;:292}],785:[function(t,e,r){&quot;use strict&quot;;e.exports={mod:function(t,e){var r=t%e;return r&lt;0?r+e:r},modHalf:function(t,e){return Math.abs(t)&gt;e/2?t-Math.round(t/e)*e:t}}},{}],786:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./array&quot;).isArrayOrTypedArray;function a(t,e){return function(){var r,n,o,s,l,c=t;for(s=0;s&lt;e.length-1;s++){if(-1===(r=e[s])){for(n=!0,o=[],l=0;l&lt;c.length;l++)o[l]=a(c[l],e.slice(s+1))(),o[l]!==o[0]&amp;&amp;(n=!1);return n?o[0]:o}if(&quot;number&quot;==typeof r&amp;&amp;!i(c))return;if(&quot;object&quot;!=typeof(c=c[r])||null===c)return}if(&quot;object&quot;==typeof c&amp;&amp;null!==c&amp;&amp;null!==(o=c[e[s]]))return o}}e.exports=function(t,e){if(n(e))e=String(e);else if(&quot;string&quot;!=typeof e||&quot;[-1]&quot;===e.substr(e.length-4))throw&quot;bad property string&quot;;for(var r,i,o,s=0,c=e.split(&quot;.&quot;);s&lt;c.length;){if(r=String(c[s]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(r[1])c[s]=r[1];else{if(0!==s)throw&quot;bad property string&quot;;c.splice(0,1)}for(i=r[2].substr(1,r[2].length-2).split(&quot;][&quot;),o=0;o&lt;i.length;o++)s++,c.splice(s,0,Number(i[o]))}s++}return&quot;object&quot;!=typeof t?function(t,e,r){return{set:function(){throw&quot;bad container&quot;},get:function(){},astr:e,parts:r,obj:t}}(t,e,c):{set:l(t,c,e),get:a(t,c),astr:e,parts:c,obj:t}};var o=/(^|\.)args\[/;function s(t,e){return void 0===t||null===t&amp;&amp;!e.match(o)}function l(t,e,r){return function(n){var a,o,l=t,h=&quot;&quot;,p=[[t,h]],d=s(n,r);for(o=0;o&lt;e.length-1;o++){if(&quot;number&quot;==typeof(a=e[o])&amp;&amp;!i(l))throw&quot;array index but container is not an array&quot;;if(-1===a){if(d=!u(l,e.slice(o+1),n,r))break;return}if(!f(l,a,e[o+1],d))break;if(&quot;object&quot;!=typeof(l=l[a])||null===l)throw&quot;container is not an object&quot;;h=c(h,a),p.push([l,h])}if(d){if(o===e.length-1&amp;&amp;(delete l[e[o]],Array.isArray(l)&amp;&amp;+e[o]==l.length-1))for(;l.length&amp;&amp;void 0===l[l.length-1];)l.pop()}else l[e[o]]=n}}function c(t,e){var r=e;return n(e)?r=&quot;[&quot;+e+&quot;]&quot;:t&amp;&amp;(r=&quot;.&quot;+e),t+r}function u(t,e,r,n){var a,o=i(r),c=!0,u=r,h=n.replace(&quot;-1&quot;,0),p=!o&amp;&amp;s(r,h),d=e[0];for(a=0;a&lt;t.length;a++)h=n.replace(&quot;-1&quot;,a),o&amp;&amp;(p=s(u=r[a%r.length],h)),p&amp;&amp;(c=!1),f(t,a,d,p)&amp;&amp;l(t[a],e,n.replace(&quot;-1&quot;,a))(u);return c}function f(t,e,r,n){if(void 0===t[e]){if(n)return!1;t[e]=&quot;number&quot;==typeof r?[]:{}}return!0}},{&quot;./array&quot;:760,&quot;fast-isnumeric&quot;:241}],787:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){}},{}],788:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=[];e.exports=function(t,e){if(-1===a.indexOf(t)){a.push(t);var r=1e3;i(e)?r=e:&quot;long&quot;===e&amp;&amp;(r=3e3);var o=n.select(&quot;body&quot;).selectAll(&quot;.plotly-notifier&quot;).data([0]);o.enter().append(&quot;div&quot;).classed(&quot;plotly-notifier&quot;,!0),o.selectAll(&quot;.notifier-note&quot;).data(a).enter().append(&quot;div&quot;).classed(&quot;notifier-note&quot;,!0).style(&quot;opacity&quot;,0).each((function(t){var i=n.select(this);i.append(&quot;button&quot;).classed(&quot;notifier-close&quot;,!0).html(&quot;&amp;times;&quot;).on(&quot;click&quot;,(function(){i.transition().call(s)}));for(var a=i.append(&quot;p&quot;),o=t.split(/&lt;br\s*\/?&gt;/g),l=0;l&lt;o.length;l++)l&amp;&amp;a.append(&quot;br&quot;),a.append(&quot;span&quot;).text(o[l]);&quot;stick&quot;===e?i.transition().duration(350).style(&quot;opacity&quot;,1):i.transition().duration(700).style(&quot;opacity&quot;,1).transition().delay(r).call(s)}))}function s(t){t.duration(700).style(&quot;opacity&quot;,0).each(&quot;end&quot;,(function(t){var e=a.indexOf(t);-1!==e&amp;&amp;a.splice(e,1),n.select(this).remove()}))}}},{d3:169,&quot;fast-isnumeric&quot;:241}],789:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./setcursor&quot;),i=&quot;data-savedcursor&quot;;e.exports=function(t,e){var r=t.attr(i);if(e){if(!r){for(var a=(t.attr(&quot;class&quot;)||&quot;&quot;).split(&quot; &quot;),o=0;o&lt;a.length;o++){var s=a[o];0===s.indexOf(&quot;cursor-&quot;)&amp;&amp;t.attr(i,s.substr(7)).classed(s,!1)}t.attr(i)||t.attr(i,&quot;!!&quot;)}n(t,e)}else r&amp;&amp;(t.attr(i,null),&quot;!!&quot;===r?n(t):n(t,r))}},{&quot;./setcursor&quot;:799}],790:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./matrix&quot;).dot,i=t(&quot;../constants/numerical&quot;).BADNUM,a=e.exports={};a.tester=function(t){var e,r=t.slice(),n=r[0][0],a=n,o=r[0][1],s=o;for(r.push(r[0]),e=1;e&lt;r.length;e++)n=Math.min(n,r[e][0]),a=Math.max(a,r[e][0]),o=Math.min(o,r[e][1]),s=Math.max(s,r[e][1]);var l,c=!1;5===r.length&amp;&amp;(r[0][0]===r[1][0]?r[2][0]===r[3][0]&amp;&amp;r[0][1]===r[3][1]&amp;&amp;r[1][1]===r[2][1]&amp;&amp;(c=!0,l=function(t){return t[0]===r[0][0]}):r[0][1]===r[1][1]&amp;&amp;r[2][1]===r[3][1]&amp;&amp;r[0][0]===r[3][0]&amp;&amp;r[1][0]===r[2][0]&amp;&amp;(c=!0,l=function(t){return t[1]===r[0][1]}));var u=!0,f=r[0];for(e=1;e&lt;r.length;e++)if(f[0]!==r[e][0]||f[1]!==r[e][1]){u=!1;break}return{xmin:n,xmax:a,ymin:o,ymax:s,pts:r,contains:c?function(t,e){var r=t[0],c=t[1];return!(r===i||r&lt;n||r&gt;a||c===i||c&lt;o||c&gt;s)&amp;&amp;(!e||!l(t))}:function(t,e){var l=t[0],c=t[1];if(l===i||l&lt;n||l&gt;a||c===i||c&lt;o||c&gt;s)return!1;var u,f,h,p,d,g=r.length,m=r[0][0],v=r[0][1],y=0;for(u=1;u&lt;g;u++)if(f=m,h=v,m=r[u][0],v=r[u][1],!(l&lt;(p=Math.min(f,m))||l&gt;Math.max(f,m)||c&gt;Math.max(h,v)))if(c&lt;Math.min(h,v))l!==p&amp;&amp;y++;else{if(c===(d=m===f?c:h+(l-f)*(v-h)/(m-f)))return 1!==u||!e;c&lt;=d&amp;&amp;l!==p&amp;&amp;y++}return y%2==1},isRect:c,degenerate:u}},a.isSegmentBent=function(t,e,r,i){var a,o,s,l=t[e],c=[t[r][0]-l[0],t[r][1]-l[1]],u=n(c,c),f=Math.sqrt(u),h=[-c[1]/f,c[0]/f];for(a=e+1;a&lt;r;a++)if(o=[t[a][0]-l[0],t[a][1]-l[1]],(s=n(o,c))&lt;0||s&gt;u||Math.abs(n(o,h))&gt;i)return!0;return!1},a.filter=function(t,e){var r=[t[0]],n=0,i=0;function o(o){t.push(o);var s=r.length,l=n;r.splice(i+1);for(var c=l+1;c&lt;t.length;c++)(c===t.length-1||a.isSegmentBent(t,l,c+1,e))&amp;&amp;(r.push(t[c]),r.length&lt;s-2&amp;&amp;(n=c,i=r.length-1),l=c)}t.length&gt;1&amp;&amp;o(t.pop());return{addPt:o,raw:t,filtered:r}}},{&quot;../constants/numerical&quot;:753,&quot;./matrix&quot;:784}],791:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;./show_no_webgl_msg&quot;),i=t(&quot;regl&quot;);e.exports=function(t,e){var a=t._fullLayout,o=!0;return a._glcanvas.each((function(n){if(!n.regl&amp;&amp;(!n.pick||a._has(&quot;parcoords&quot;))){try{n.regl=i({canvas:this,attributes:{antialias:!n.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||r.devicePixelRatio,extensions:e||[]})}catch(t){o=!1}n.regl||(o=!1),o&amp;&amp;this.addEventListener(&quot;webglcontextlost&quot;,(function(e){t&amp;&amp;t.emit&amp;&amp;t.emit(&quot;plotly_webglcontextlost&quot;,{event:e,layer:n.key})}),!1)}})),o||n({container:a._glcontainer.node()}),o}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;./show_no_webgl_msg&quot;:800,regl:540}],792:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;is-mobile&quot;);e.exports=function(t){var e;if(&quot;string&quot;!=typeof(e=t&amp;&amp;t.hasOwnProperty(&quot;userAgent&quot;)?t.userAgent:function(){var t;&quot;undefined&quot;!=typeof navigator&amp;&amp;(t=navigator.userAgent);t&amp;&amp;t.headers&amp;&amp;&quot;string&quot;==typeof t.headers[&quot;user-agent&quot;]&amp;&amp;(t=t.headers[&quot;user-agent&quot;]);return t}()))return!0;var r=i({ua:{headers:{&quot;user-agent&quot;:e}},tablet:!0,featureDetect:!1});if(!r)for(var a=e.split(&quot; &quot;),o=1;o&lt;a.length;o++){if(-1!==a[o].indexOf(&quot;Safari&quot;))for(var s=o-1;s&gt;-1;s--){var l=a[s];if(&quot;Version/&quot;===l.substr(0,8)){var c=l.substr(8).split(&quot;.&quot;)[0];if(n(c)&amp;&amp;(c=+c),c&gt;=13)return!0}}}return r}},{&quot;fast-isnumeric&quot;:241,&quot;is-mobile&quot;:467}],793:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(e instanceof RegExp){for(var r=e.toString(),n=0;n&lt;t.length;n++)if(t[n]instanceof RegExp&amp;&amp;t[n].toString()===r)return t;t.push(e)}else!e&amp;&amp;0!==e||-1!==t.indexOf(e)||t.push(e);return t}},{}],794:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_config&quot;).dfltConfig;var a={add:function(t,e,r,n,a){var o,s;t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},s=t.undoQueue.index,t.autoplay?t.undoQueue.inSequence||(t.autoplay=!1):(!t.undoQueue.sequence||t.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},t.undoQueue.queue.splice(s,t.undoQueue.queue.length-s,o),t.undoQueue.index+=1):o=t.undoQueue.queue[s-1],t.undoQueue.beginSequence=!1,o&amp;&amp;(o.undo.calls.unshift(e),o.undo.args.unshift(r),o.redo.calls.push(n),o.redo.args.push(a)),t.undoQueue.queue.length&gt;i.queueLength&amp;&amp;(t.undoQueue.queue.shift(),t.undoQueue.index--))},startSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!0,t.undoQueue.beginSequence=!0},stopSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!1,t.undoQueue.beginSequence=!1},undo:function(t){var e,r;if(t.framework&amp;&amp;t.framework.isPolar)t.framework.undo();else if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index&lt;=0)){for(t.undoQueue.index--,e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r&lt;e.undo.calls.length;r++)a.plotDo(t,e.undo.calls[r],e.undo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1}},redo:function(t){var e,r;if(t.framework&amp;&amp;t.framework.isPolar)t.framework.redo();else if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index&gt;=t.undoQueue.queue.length)){for(e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r&lt;e.redo.calls.length;r++)a.plotDo(t,e.redo.calls[r],e.redo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1,t.undoQueue.index++}}};a.plotDo=function(t,e,r){t.autoplay=!0,r=function(t,e){for(var r,i=[],a=0;a&lt;e.length;a++)r=e[a],i[a]=r===t?r:&quot;object&quot;==typeof r?Array.isArray(r)?n.extendDeep([],r):n.extendDeepAll({},r):r;return i}(t,r),e.apply(null,r)},e.exports=a},{&quot;../lib&quot;:778,&quot;../plot_api/plot_config&quot;:815}],795:[function(t,e,r){&quot;use strict&quot;;r.counter=function(t,e,r,n){var i=(e||&quot;&quot;)+(r?&quot;&quot;:&quot;$&quot;),a=!1===n?&quot;&quot;:&quot;^&quot;;return&quot;xy&quot;===t?new RegExp(a+&quot;x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?&quot;+i):new RegExp(a+t+&quot;([2-9]|[1-9][0-9]+)?&quot;+i)}},{}],796:[function(t,e,r){&quot;use strict&quot;;var n=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,i=/^[^\.\[\]]+$/;e.exports=function(t,e){for(;e;){var r=t.match(n);if(r)t=r[1];else{if(!t.match(i))throw new Error(&quot;bad relativeAttr call:&quot;+[t,e]);t=&quot;&quot;}if(&quot;^&quot;!==e.charAt(0))break;e=e.slice(1)}return t&amp;&amp;&quot;[&quot;!==e.charAt(0)?t+&quot;.&quot;+e:t+e}},{}],797:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./array&quot;).isArrayOrTypedArray,i=t(&quot;./is_plain_object&quot;);e.exports=function t(e,r){for(var a in r){var o=r[a],s=e[a];if(s!==o)if(&quot;_&quot;===a.charAt(0)||&quot;function&quot;==typeof o){if(a in e)continue;e[a]=o}else if(n(o)&amp;&amp;n(s)&amp;&amp;i(o[0])){if(&quot;customdata&quot;===a||&quot;ids&quot;===a)continue;for(var l=Math.min(o.length,s.length),c=0;c&lt;l;c++)s[c]!==o[c]&amp;&amp;i(o[c])&amp;&amp;i(s[c])&amp;&amp;t(s[c],o[c])}else i(o)&amp;&amp;i(s)&amp;&amp;(t(s,o),Object.keys(s).length||delete e[a])}}},{&quot;./array&quot;:760,&quot;./is_plain_object&quot;:779}],798:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./loggers&quot;),a=t(&quot;./identity&quot;),o=t(&quot;../constants/numerical&quot;).BADNUM;function s(t,e){return t&lt;e}function l(t,e){return t&lt;=e}function c(t,e){return t&gt;e}function u(t,e){return t&gt;=e}r.findBin=function(t,e,r){if(n(e.start))return r?Math.ceil((t-e.start)/e.size-1e-9)-1:Math.floor((t-e.start)/e.size+1e-9);var a,o,f=0,h=e.length,p=0,d=h&gt;1?(e[h-1]-e[0])/(h-1):1;for(o=d&gt;=0?r?s:l:r?u:c,t+=1e-9*d*(r?-1:1)*(d&gt;=0?1:-1);f&lt;h&amp;&amp;p++&lt;100;)o(e[a=Math.floor((f+h)/2)],t)?f=a+1:h=a;return p&gt;90&amp;&amp;i.log(&quot;Long binary search...&quot;),f-1},r.sorterAsc=function(t,e){return t-e},r.sorterDes=function(t,e){return e-t},r.distinctVals=function(t,e){var n,i=(e||{}).unitMinDiff,a=t.slice();for(a.sort(r.sorterAsc),n=a.length-1;n&gt;-1&amp;&amp;a[n]===o;n--);var s=1;i||(s=a[n]-a[0]||1);for(var l,c=s/(n||1)/1e4,u=[],f=0;f&lt;=n;f++){var h=a[f],p=h-l;void 0===l?(u.push(h),l=h):p&gt;c&amp;&amp;(s=Math.min(s,p),u.push(h),l=h)}return{vals:u,minDiff:s}},r.roundUp=function(t,e,r){for(var n,i=0,a=e.length-1,o=0,s=r?0:1,l=r?1:0,c=r?Math.ceil:Math.floor;i&lt;a&amp;&amp;o++&lt;100;)e[n=c((i+a)/2)]&lt;=t?i=n+s:a=n-l;return e[i]},r.sort=function(t,e){for(var r=0,n=0,i=1;i&lt;t.length;i++){var a=e(t[i],t[i-1]);if(a&lt;0?r=1:a&gt;0&amp;&amp;(n=1),r&amp;&amp;n)return t.sort(e)}return n?t:t.reverse()},r.findIndexOfMin=function(t,e){e=e||a;for(var r,n=1/0,i=0;i&lt;t.length;i++){var o=e(t[i]);o&lt;n&amp;&amp;(n=o,r=i)}return r}},{&quot;../constants/numerical&quot;:753,&quot;./identity&quot;:776,&quot;./loggers&quot;:782,&quot;fast-isnumeric&quot;:241}],799:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){(t.attr(&quot;class&quot;)||&quot;&quot;).split(&quot; &quot;).forEach((function(e){0===e.indexOf(&quot;cursor-&quot;)&amp;&amp;t.classed(e,!1)})),e&amp;&amp;t.classed(&quot;cursor-&quot;+e,!0)}},{}],800:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../components/color&quot;),i=function(){};e.exports=function(t){for(var e in t)&quot;function&quot;==typeof t[e]&amp;&amp;(t[e]=i);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var r=document.createElement(&quot;div&quot;);r.className=&quot;no-webgl&quot;,r.style.cursor=&quot;pointer&quot;,r.style.fontSize=&quot;24px&quot;,r.style.color=n.defaults[0],r.style.position=&quot;absolute&quot;,r.style.left=r.style.top=&quot;0px&quot;,r.style.width=r.style.height=&quot;100%&quot;,r.style[&quot;background-color&quot;]=n.lightLine,r.style[&quot;z-index&quot;]=30;var a=document.createElement(&quot;p&quot;);return a.textContent=&quot;WebGL is not supported by your browser - visit https://get.webgl.org for more info&quot;,a.style.position=&quot;relative&quot;,a.style.top=&quot;50%&quot;,a.style.left=&quot;50%&quot;,a.style.height=&quot;30%&quot;,a.style.width=&quot;50%&quot;,a.style.margin=&quot;-15% 0 0 -25%&quot;,r.appendChild(a),t.container.appendChild(r),t.container.style.background=&quot;#FFFFFF&quot;,t.container.onclick=function(){window.open(&quot;https://get.webgl.org&quot;)},!1}},{&quot;../components/color&quot;:643}],801:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./array&quot;).isArrayOrTypedArray;r.aggNums=function(t,e,a,o){var s,l;if((!o||o&gt;a.length)&amp;&amp;(o=a.length),n(e)||(e=!1),i(a[0])){for(l=new Array(o),s=0;s&lt;o;s++)l[s]=r.aggNums(t,e,a[s]);a=l}for(s=0;s&lt;o;s++)n(e)?n(a[s])&amp;&amp;(e=t(+e,+a[s])):e=a[s];return e},r.len=function(t){return r.aggNums((function(t){return t+1}),0,t)},r.mean=function(t,e){return e||(e=r.len(t)),r.aggNums((function(t,e){return t+e}),0,t)/e},r.midRange=function(t){if(void 0!==t&amp;&amp;0!==t.length)return(r.aggNums(Math.max,null,t)+r.aggNums(Math.min,null,t))/2},r.variance=function(t,e,i){return e||(e=r.len(t)),n(i)||(i=r.mean(t,e)),r.aggNums((function(t,e){return t+Math.pow(e-i,2)}),0,t)/e},r.stdev=function(t,e,n){return Math.sqrt(r.variance(t,e,n))},r.median=function(t){var e=t.slice().sort();return r.interp(e,.5)},r.interp=function(t,e){if(!n(e))throw&quot;n should be a finite number&quot;;if((e=e*t.length-.5)&lt;0)return t[0];if(e&gt;t.length-1)return t[t.length-1];var r=e%1;return r*t[Math.ceil(e)]+(1-r)*t[Math.floor(e)]}},{&quot;./array&quot;:760,&quot;fast-isnumeric&quot;:241}],802:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-normalize&quot;);e.exports=function(t){return t?n(t):[0,0,0,1]}},{&quot;color-normalize&quot;:125}],803:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../lib&quot;),a=i.strTranslate,o=t(&quot;../constants/xmlns_namespaces&quot;),s=t(&quot;../constants/alignment&quot;).LINE_SPACING;function l(t,e){return t.node().getBoundingClientRect()[e]}var c=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;r.convertToTspans=function(t,e,A){var S=t.text(),C=!t.attr(&quot;data-notex&quot;)&amp;&amp;&quot;undefined&quot;!=typeof MathJax&amp;&amp;S.match(c),L=n.select(t.node().parentNode);if(!L.empty()){var I=t.attr(&quot;class&quot;)?t.attr(&quot;class&quot;).split(&quot; &quot;)[0]:&quot;text&quot;;return I+=&quot;-math&quot;,L.selectAll(&quot;svg.&quot;+I).remove(),L.selectAll(&quot;g.&quot;+I+&quot;-group&quot;).remove(),t.style(&quot;display&quot;,null).attr({&quot;data-unformatted&quot;:S,&quot;data-math&quot;:&quot;N&quot;}),C?(e&amp;&amp;e._promises||[]).push(new Promise((function(e){t.style(&quot;display&quot;,&quot;none&quot;);var r=parseInt(t.node().style.fontSize,10),o={fontSize:r};!function(t,e,r){var a,o,s,l;MathJax.Hub.Queue((function(){return o=i.extendDeepAll({},MathJax.Hub.config),s=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&amp;&amp;(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:&quot;none&quot;,tex2jax:{inlineMath:[[&quot;$&quot;,&quot;$&quot;],[&quot;\\(&quot;,&quot;\\)&quot;]]},displayAlign:&quot;left&quot;})}),(function(){if(&quot;SVG&quot;!==(a=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer(&quot;SVG&quot;)}),(function(){var r=&quot;math-output-&quot;+i.randstr({},64);return l=n.select(&quot;body&quot;).append(&quot;div&quot;).attr({id:r}).style({visibility:&quot;hidden&quot;,position:&quot;absolute&quot;}).style({&quot;font-size&quot;:e.fontSize+&quot;px&quot;}).text(t.replace(u,&quot;\\lt &quot;).replace(f,&quot;\\gt &quot;)),MathJax.Hub.Typeset(l.node())}),(function(){var e=n.select(&quot;body&quot;).select(&quot;#MathJax_SVG_glyphs&quot;);if(l.select(&quot;.MathJax_SVG&quot;).empty()||!l.select(&quot;svg&quot;).node())i.log(&quot;There was an error in the tex syntax.&quot;,t),r();else{var o=l.select(&quot;svg&quot;).node().getBoundingClientRect();r(l.select(&quot;.MathJax_SVG&quot;),e,o)}if(l.remove(),&quot;SVG&quot;!==a)return MathJax.Hub.setRenderer(a)}),(function(){return void 0!==s&amp;&amp;(MathJax.Hub.processSectionDelay=s),MathJax.Hub.Config(o)}))}(C[2],o,(function(n,i,o){L.selectAll(&quot;svg.&quot;+I).remove(),L.selectAll(&quot;g.&quot;+I+&quot;-group&quot;).remove();var s=n&amp;&amp;n.select(&quot;svg&quot;);if(!s||!s.node())return P(),void e();var c=L.append(&quot;g&quot;).classed(I+&quot;-group&quot;,!0).attr({&quot;pointer-events&quot;:&quot;none&quot;,&quot;data-unformatted&quot;:S,&quot;data-math&quot;:&quot;Y&quot;});c.node().appendChild(s.node()),i&amp;&amp;i.node()&amp;&amp;s.node().insertBefore(i.node().cloneNode(!0),s.node().firstChild),s.attr({class:I,height:o.height,preserveAspectRatio:&quot;xMinYMin meet&quot;}).style({overflow:&quot;visible&quot;,&quot;pointer-events&quot;:&quot;none&quot;});var u=t.node().style.fill||&quot;black&quot;,f=s.select(&quot;g&quot;);f.attr({fill:u,stroke:u});var h=l(f,&quot;width&quot;),p=l(f,&quot;height&quot;),d=+t.attr(&quot;x&quot;)-h*{start:0,middle:.5,end:1}[t.attr(&quot;text-anchor&quot;)||&quot;start&quot;],g=-(r||l(t,&quot;height&quot;))/4;&quot;y&quot;===I[0]?(c.attr({transform:&quot;rotate(&quot;+[-90,+t.attr(&quot;x&quot;),+t.attr(&quot;y&quot;)]+&quot;)&quot;+a(-h/2,g-p/2)}),s.attr({x:+t.attr(&quot;x&quot;),y:+t.attr(&quot;y&quot;)})):&quot;l&quot;===I[0]?s.attr({x:t.attr(&quot;x&quot;),y:g-p/2}):&quot;a&quot;===I[0]&amp;&amp;0!==I.indexOf(&quot;atitle&quot;)?s.attr({x:0,y:g}):s.attr({x:d,y:+t.attr(&quot;y&quot;)+g-p/2}),A&amp;&amp;A.call(t,c),e(c)}))}))):P(),t}function P(){L.empty()||(I=t.attr(&quot;class&quot;)+&quot;-math&quot;,L.select(&quot;svg.&quot;+I).remove()),t.text(&quot;&quot;).style(&quot;white-space&quot;,&quot;pre&quot;),function(t,e){e=e.replace(m,&quot; &quot;);var r,a=!1,l=[],c=-1;function u(){c++;var e=document.createElementNS(o.svg,&quot;tspan&quot;);n.select(e).attr({class:&quot;line&quot;,dy:c*s+&quot;em&quot;}),t.appendChild(e),r=e;var i=l;if(l=[{node:e}],i.length&gt;1)for(var a=1;a&lt;i.length;a++)f(i[a])}function f(t){var e,i=t.type,a={};if(&quot;a&quot;===i){e=&quot;a&quot;;var s=t.target,c=t.href,u=t.popup;c&amp;&amp;(a={&quot;xlink:xlink:show&quot;:&quot;_blank&quot;===s||&quot;_&quot;!==s.charAt(0)?&quot;new&quot;:&quot;replace&quot;,target:s,&quot;xlink:xlink:href&quot;:c},u&amp;&amp;(a.onclick='window.open(this.href.baseVal,this.target.baseVal,&quot;'+u+'&quot;);return false;'))}else e=&quot;tspan&quot;;t.style&amp;&amp;(a.style=t.style);var f=document.createElementNS(o.svg,e);if(&quot;sup&quot;===i||&quot;sub&quot;===i){A(r,&quot;\u200b&quot;),r.appendChild(f);var h=document.createElementNS(o.svg,&quot;tspan&quot;);A(h,&quot;\u200b&quot;),n.select(h).attr(&quot;dy&quot;,d[i]),a.dy=p[i],r.appendChild(f),r.appendChild(h)}else r.appendChild(f);n.select(f).attr(a),r=t.node=f,l.push(t)}function A(t,e){t.appendChild(document.createTextNode(e))}function S(t){if(1!==l.length){var n=l.pop();t!==n.type&amp;&amp;i.log(&quot;Start tag &lt;&quot;+n.type+&quot;&gt; doesnt match end tag &lt;&quot;+t+&quot;&gt;. Pretending it did match.&quot;,e),r=l[l.length-1].node}else i.log(&quot;Ignoring unexpected end tag &lt;/&quot;+t+&quot;&gt;.&quot;,e)}x.test(e)?u():(r=t,l=[{node:t}]);for(var C=e.split(v),L=0;L&lt;C.length;L++){var I=C[L],P=I.match(y),z=P&amp;&amp;P[2].toLowerCase(),O=h[z];if(&quot;br&quot;===z)u();else if(void 0===O)A(r,E(I));else if(P[1])S(z);else{var D=P[4],R={type:z},F=k(D,b);if(F?(F=F.replace(M,&quot;$1 fill:&quot;),O&amp;&amp;(F+=&quot;;&quot;+O)):O&amp;&amp;(F=O),F&amp;&amp;(R.style=F),&quot;a&quot;===z){a=!0;var B=k(D,_);if(B){var N=document.createElement(&quot;a&quot;);N.href=B,-1!==g.indexOf(N.protocol)&amp;&amp;(R.href=encodeURI(decodeURI(B)),R.target=k(D,w)||&quot;_blank&quot;,R.popup=k(D,T))}}f(R)}}return a}(t.node(),S)&amp;&amp;t.style(&quot;pointer-events&quot;,&quot;all&quot;),r.positionText(t),A&amp;&amp;A.call(t)}};var u=/(&lt;|&amp;lt;|&amp;#60;)/g,f=/(&gt;|&amp;gt;|&amp;#62;)/g;var h={sup:&quot;font-size:70%&quot;,sub:&quot;font-size:70%&quot;,b:&quot;font-weight:bold&quot;,i:&quot;font-style:italic&quot;,a:&quot;cursor:pointer&quot;,span:&quot;&quot;,em:&quot;font-style:italic;font-weight:bold&quot;},p={sub:&quot;0.3em&quot;,sup:&quot;-0.6em&quot;},d={sub:&quot;-0.21em&quot;,sup:&quot;0.42em&quot;},g=[&quot;http:&quot;,&quot;https:&quot;,&quot;mailto:&quot;,&quot;&quot;,void 0,&quot;:&quot;],m=r.NEWLINES=/(\r\n?|\n)/g,v=/(&lt;[^&lt;&gt;]*&gt;)/,y=/&lt;(\/?)([^ &gt;]*)(\s+(.*))?&gt;/i,x=/&lt;br(\s+.*)?&gt;/i;r.BR_TAG_ALL=/&lt;br(\s+.*)?&gt;/gi;var b=/(^|[\s&quot;'])style\s*=\s*(&quot;([^&quot;]*);?&quot;|'([^']*);?')/i,_=/(^|[\s&quot;'])href\s*=\s*(&quot;([^&quot;]*)&quot;|'([^']*)')/i,w=/(^|[\s&quot;'])target\s*=\s*(&quot;([^&quot;\s]*)&quot;|'([^'\s]*)')/i,T=/(^|[\s&quot;'])popup\s*=\s*(&quot;([\w=,]*)&quot;|'([\w=,]*)')/i;function k(t,e){if(!t)return null;var r=t.match(e),n=r&amp;&amp;(r[3]||r[4]);return n&amp;&amp;E(n)}var M=/(^|;)\s*color:/;r.plainText=function(t,e){for(var r=void 0!==(e=e||{}).len&amp;&amp;-1!==e.len?e.len:1/0,n=void 0!==e.allowedTags?e.allowedTags:[&quot;br&quot;],i=&quot;...&quot;.length,a=t.split(v),o=[],s=&quot;&quot;,l=0,c=0;c&lt;a.length;c++){var u=a[c],f=u.match(y),h=f&amp;&amp;f[2].toLowerCase();if(h)-1!==n.indexOf(h)&amp;&amp;(o.push(u),s=h);else{var p=u.length;if(l+p&lt;r)o.push(u),l+=p;else if(l&lt;r){var d=r-l;s&amp;&amp;(&quot;br&quot;!==s||d&lt;=i||p&lt;=i)&amp;&amp;o.pop(),r&gt;i?o.push(u.substr(0,d-i)+&quot;...&quot;):o.push(u.substr(0,d));break}s=&quot;&quot;}}return o.join(&quot;&quot;)};var A={mu:&quot;\u03bc&quot;,amp:&quot;&amp;&quot;,lt:&quot;&lt;&quot;,gt:&quot;&gt;&quot;,nbsp:&quot;\xa0&quot;,times:&quot;\xd7&quot;,plusmn:&quot;\xb1&quot;,deg:&quot;\xb0&quot;},S=/&amp;(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function E(t){return t.replace(S,(function(t,e){return(&quot;#&quot;===e.charAt(0)?function(t){if(t&gt;1114111)return;var e=String.fromCodePoint;if(e)return e(t);var r=String.fromCharCode;return t&lt;=65535?r(t):r(55232+(t&gt;&gt;10),t%1024+56320)}(&quot;x&quot;===e.charAt(1)?parseInt(e.substr(2),16):parseInt(e.substr(1),10)):A[e])||t}))}function C(t,e,r){var n,a,o,s=r.horizontalAlign,l=r.verticalAlign||&quot;top&quot;,c=t.node().getBoundingClientRect(),u=e.node().getBoundingClientRect();return a=&quot;bottom&quot;===l?function(){return c.bottom-n.height}:&quot;middle&quot;===l?function(){return c.top+(c.height-n.height)/2}:function(){return c.top},o=&quot;right&quot;===s?function(){return c.right-n.width}:&quot;center&quot;===s?function(){return c.left+(c.width-n.width)/2}:function(){return c.left},function(){n=this.node().getBoundingClientRect();var t=o()-u.left,e=a()-u.top,s=r.gd||{};if(r.gd){s._fullLayout._calcInverseTransform(s);var l=i.apply3DTransform(s._fullLayout._invTransform)(t,e);t=l[0],e=l[1]}return this.style({top:e+&quot;px&quot;,left:t+&quot;px&quot;,&quot;z-index&quot;:1e3}),this}}r.convertEntities=E,r.sanitizeHTML=function(t){t=t.replace(m,&quot; &quot;);for(var e=document.createElement(&quot;p&quot;),r=e,i=[],a=t.split(v),o=0;o&lt;a.length;o++){var s=a[o],l=s.match(y),c=l&amp;&amp;l[2].toLowerCase();if(c in h)if(l[1])i.length&amp;&amp;(r=i.pop());else{var u=l[4],f=k(u,b),p=f?{style:f}:{};if(&quot;a&quot;===c){var d=k(u,_);if(d){var x=document.createElement(&quot;a&quot;);if(x.href=d,-1!==g.indexOf(x.protocol)){p.href=encodeURI(decodeURI(d));var T=k(u,w);T&amp;&amp;(p.target=T)}}}var M=document.createElement(c);r.appendChild(M),n.select(M).attr(p),r=M,i.push(M)}else r.appendChild(document.createTextNode(E(s)))}return e.innerHTML},r.lineCount=function(t){return t.selectAll(&quot;tspan.line&quot;).size()||1},r.positionText=function(t,e,r){return t.each((function(){var t=n.select(this);function i(e,r){return void 0===r?null===(r=t.attr(e))&amp;&amp;(t.attr(e,0),r=0):t.attr(e,r),r}var a=i(&quot;x&quot;,e),o=i(&quot;y&quot;,r);&quot;text&quot;===this.nodeName&amp;&amp;t.selectAll(&quot;tspan.line&quot;).attr({x:a,y:o})}))},r.makeEditable=function(t,e){var r=e.gd,i=e.delegate,a=n.dispatch(&quot;edit&quot;,&quot;input&quot;,&quot;cancel&quot;),o=i||t;if(t.style({&quot;pointer-events&quot;:i?&quot;none&quot;:&quot;all&quot;}),1!==t.size())throw new Error(&quot;boo&quot;);function s(){!function(){var i=n.select(r).select(&quot;.svg-container&quot;),o=i.append(&quot;div&quot;),s=t.node().style,c=parseFloat(s.fontSize||12),u=e.text;void 0===u&amp;&amp;(u=t.attr(&quot;data-unformatted&quot;));o.classed(&quot;plugin-editable editable&quot;,!0).style({position:&quot;absolute&quot;,&quot;font-family&quot;:s.fontFamily||&quot;Arial&quot;,&quot;font-size&quot;:c,color:e.fill||s.fill||&quot;black&quot;,opacity:1,&quot;background-color&quot;:e.background||&quot;transparent&quot;,outline:&quot;#ffffff33 1px solid&quot;,margin:[-c/8+1,0,0,-1].join(&quot;px &quot;)+&quot;px&quot;,padding:&quot;0&quot;,&quot;box-sizing&quot;:&quot;border-box&quot;}).attr({contenteditable:!0}).text(u).call(C(t,i,e)).on(&quot;blur&quot;,(function(){r._editing=!1,t.text(this.textContent).style({opacity:1});var e,i=n.select(this).attr(&quot;class&quot;);(e=i?&quot;.&quot;+i.split(&quot; &quot;)[0]+&quot;-math-group&quot;:&quot;[class*=-math-group]&quot;)&amp;&amp;n.select(t.node().parentNode).select(e).style({opacity:0});var o=this.textContent;n.select(this).transition().duration(0).remove(),n.select(document).on(&quot;mouseup&quot;,null),a.edit.call(t,o)})).on(&quot;focus&quot;,(function(){var t=this;r._editing=!0,n.select(document).on(&quot;mouseup&quot;,(function(){if(n.event.target===t)return!1;document.activeElement===o.node()&amp;&amp;o.node().blur()}))})).on(&quot;keyup&quot;,(function(){27===n.event.which?(r._editing=!1,t.style({opacity:1}),n.select(this).style({opacity:0}).on(&quot;blur&quot;,(function(){return!1})).transition().remove(),a.cancel.call(t,this.textContent)):(a.input.call(t,this.textContent),n.select(this).call(C(t,i,e)))})).on(&quot;keydown&quot;,(function(){13===n.event.which&amp;&amp;this.blur()})).call(l)}(),t.style({opacity:0});var i,s=o.attr(&quot;class&quot;);(i=s?&quot;.&quot;+s.split(&quot; &quot;)[0]+&quot;-math-group&quot;:&quot;[class*=-math-group]&quot;)&amp;&amp;n.select(t.node().parentNode).select(i).style({opacity:0})}function l(t){var e=t.node(),r=document.createRange();r.selectNodeContents(e);var n=window.getSelection();n.removeAllRanges(),n.addRange(r),e.focus()}return e.immediate?s():o.on(&quot;click&quot;,s),n.rebind(t,a,&quot;on&quot;)}},{&quot;../constants/alignment&quot;:745,&quot;../constants/xmlns_namespaces&quot;:754,&quot;../lib&quot;:778,d3:169}],804:[function(t,e,r){&quot;use strict&quot;;var n={};function i(t){t&amp;&amp;null!==t.timer&amp;&amp;(clearTimeout(t.timer),t.timer=null)}r.throttle=function(t,e,r){var a=n[t],o=Date.now();if(!a){for(var s in n)n[s].ts&lt;o-6e4&amp;&amp;delete n[s];a=n[t]={ts:0,timer:null}}function l(){r(),a.ts=Date.now(),a.onDone&amp;&amp;(a.onDone(),a.onDone=null)}i(a),o&gt;a.ts+e?l():a.timer=setTimeout((function(){l(),a.timer=null}),e)},r.done=function(t){var e=n[t];return e&amp;&amp;e.timer?new Promise((function(t){var r=e.onDone;e.onDone=function(){r&amp;&amp;r(),t(),e.onDone=null}})):Promise.resolve()},r.clear=function(t){if(t)i(n[t]),delete n[t];else for(var e in n)r.clear(e)}},{}],805:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports=function(t,e){if(t&gt;0)return Math.log(t)/Math.LN10;var r=Math.log(Math.min(e[0],e[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(e[0],e[1]))/Math.LN10-6),r}},{&quot;fast-isnumeric&quot;:241}],806:[function(t,e,r){&quot;use strict&quot;;var n=e.exports={},i=t(&quot;../plots/geo/constants&quot;).locationmodeToLayer,a=t(&quot;topojson-client&quot;).feature;n.getTopojsonName=function(t){return[t.scope.replace(/ /g,&quot;-&quot;),&quot;_&quot;,t.resolution.toString(),&quot;m&quot;].join(&quot;&quot;)},n.getTopojsonPath=function(t,e){return t+e+&quot;.json&quot;},n.getTopojsonFeatures=function(t,e){var r=i[t.locationmode],n=e.objects[r];return a(e,n).features}},{&quot;../plots/geo/constants&quot;:858,&quot;topojson-client&quot;:579}],807:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;locale&quot;,name:&quot;en-US&quot;,dictionary:{&quot;Click to enter Colorscale title&quot;:&quot;Click to enter Colorscale title&quot;},format:{date:&quot;%m/%d/%Y&quot;}}},{}],808:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;locale&quot;,name:&quot;en&quot;,dictionary:{&quot;Click to enter Colorscale title&quot;:&quot;Click to enter Colourscale title&quot;},format:{days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],periods:[&quot;AM&quot;,&quot;PM&quot;],dateTime:&quot;%a %b %e %X %Y&quot;,date:&quot;%d/%m/%Y&quot;,time:&quot;%H:%M:%S&quot;,decimal:&quot;.&quot;,thousands:&quot;,&quot;,grouping:[3],currency:[&quot;$&quot;,&quot;&quot;],year:&quot;%Y&quot;,month:&quot;%b %Y&quot;,dayMonth:&quot;%b %-d&quot;,dayMonthYear:&quot;%b %-d, %Y&quot;}}},{}],809:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);e.exports=function(t){for(var e,r,i=n.layoutArrayContainers,a=n.layoutArrayRegexes,o=t.split(&quot;[&quot;)[0],s=0;s&lt;a.length;s++)if((r=t.match(a[s]))&amp;&amp;0===r.index){e=r[0];break}if(e||(e=i[i.indexOf(o)]),!e)return!1;var l=t.substr(e.length);return l?!!(r=l.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&amp;&amp;{array:e,index:Number(r[1]),property:r[3]||&quot;&quot;}:{array:e,index:&quot;&quot;,property:&quot;&quot;}}},{&quot;../registry&quot;:911}],810:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=n.extendFlat,a=n.isPlainObject,o={valType:&quot;flaglist&quot;,extras:[&quot;none&quot;],flags:[&quot;calc&quot;,&quot;clearAxisTypes&quot;,&quot;plot&quot;,&quot;style&quot;,&quot;markerSize&quot;,&quot;colorbars&quot;]},s={valType:&quot;flaglist&quot;,extras:[&quot;none&quot;],flags:[&quot;calc&quot;,&quot;plot&quot;,&quot;legend&quot;,&quot;ticks&quot;,&quot;axrange&quot;,&quot;layoutstyle&quot;,&quot;modebar&quot;,&quot;camera&quot;,&quot;arraydraw&quot;,&quot;colorbars&quot;]},l=o.flags.slice().concat([&quot;fullReplot&quot;]),c=s.flags.slice().concat(&quot;layoutReplot&quot;);function u(t){for(var e={},r=0;r&lt;t.length;r++)e[t[r]]=!1;return e}function f(t,e,r){var n=i({},t);for(var o in n){var s=n[o];a(s)&amp;&amp;(n[o]=h(s,e,r,o))}return&quot;from-root&quot;===r&amp;&amp;(n.editType=e),n}function h(t,e,r,n){if(t.valType){var a=i({},t);if(a.editType=e,Array.isArray(t.items)){a.items=new Array(t.items.length);for(var o=0;o&lt;t.items.length;o++)a.items[o]=h(t.items[o],e,&quot;from-root&quot;)}return a}return f(t,e,&quot;_&quot;===n.charAt(0)?&quot;nested&quot;:&quot;from-root&quot;)}e.exports={traces:o,layout:s,traceFlags:function(){return u(l)},layoutFlags:function(){return u(c)},update:function(t,e){var r=e.editType;if(r&amp;&amp;&quot;none&quot;!==r)for(var n=r.split(&quot;+&quot;),i=0;i&lt;n.length;i++)t[n[i]]=!0},overrideAll:f}},{&quot;../lib&quot;:778}],811:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;gl-mat4/fromQuat&quot;),a=t(&quot;../registry&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../plots/plots&quot;),l=t(&quot;../plots/cartesian/axis_ids&quot;),c=t(&quot;../components/color&quot;),u=l.cleanId,f=l.getFromTrace,h=a.traceIs;function p(t,e){var r=t[e],n=e.charAt(0);r&amp;&amp;&quot;paper&quot;!==r&amp;&amp;(t[e]=u(r,n,!0))}function d(t){function e(e,r){var n=t[e],i=t.title&amp;&amp;t.title[r];n&amp;&amp;!i&amp;&amp;(t.title||(t.title={}),t.title[r]=t[e],delete t[e])}t&amp;&amp;(&quot;string&quot;!=typeof t.title&amp;&amp;&quot;number&quot;!=typeof t.title||(t.title={text:t.title}),e(&quot;titlefont&quot;,&quot;font&quot;),e(&quot;titleposition&quot;,&quot;position&quot;),e(&quot;titleside&quot;,&quot;side&quot;),e(&quot;titleoffset&quot;,&quot;offset&quot;))}function g(t){if(!o.isPlainObject(t))return!1;var e=t.name;return delete t.name,delete t.showlegend,(&quot;string&quot;==typeof e||&quot;number&quot;==typeof e)&amp;&amp;String(e)}function m(t,e,r,n){if(r&amp;&amp;!n)return t;if(n&amp;&amp;!r)return e;if(!t.trim())return e;if(!e.trim())return t;var i,a=Math.min(t.length,e.length);for(i=0;i&lt;a&amp;&amp;t.charAt(i)===e.charAt(i);i++);return t.substr(0,i).trim()}function v(t){var e=&quot;middle&quot;,r=&quot;center&quot;;return&quot;string&quot;==typeof t&amp;&amp;(-1!==t.indexOf(&quot;top&quot;)?e=&quot;top&quot;:-1!==t.indexOf(&quot;bottom&quot;)&amp;&amp;(e=&quot;bottom&quot;),-1!==t.indexOf(&quot;left&quot;)?r=&quot;left&quot;:-1!==t.indexOf(&quot;right&quot;)&amp;&amp;(r=&quot;right&quot;)),e+&quot; &quot;+r}function y(t,e){return e in t&amp;&amp;&quot;object&quot;==typeof t[e]&amp;&amp;0===Object.keys(t[e]).length}r.clearPromiseQueue=function(t){Array.isArray(t._promises)&amp;&amp;t._promises.length&gt;0&amp;&amp;o.log(&quot;Clearing previous rejected promises from queue.&quot;),t._promises=[]},r.cleanLayout=function(t){var e,n;t||(t={}),t.xaxis1&amp;&amp;(t.xaxis||(t.xaxis=t.xaxis1),delete t.xaxis1),t.yaxis1&amp;&amp;(t.yaxis||(t.yaxis=t.yaxis1),delete t.yaxis1),t.scene1&amp;&amp;(t.scene||(t.scene=t.scene1),delete t.scene1);var a=(s.subplotsRegistry.cartesian||{}).attrRegex,l=(s.subplotsRegistry.polar||{}).attrRegex,f=(s.subplotsRegistry.ternary||{}).attrRegex,h=(s.subplotsRegistry.gl3d||{}).attrRegex,g=Object.keys(t);for(e=0;e&lt;g.length;e++){var m=g[e];if(a&amp;&amp;a.test(m)){var v=t[m];v.anchor&amp;&amp;&quot;free&quot;!==v.anchor&amp;&amp;(v.anchor=u(v.anchor)),v.overlaying&amp;&amp;(v.overlaying=u(v.overlaying)),v.type||(v.isdate?v.type=&quot;date&quot;:v.islog?v.type=&quot;log&quot;:!1===v.isdate&amp;&amp;!1===v.islog&amp;&amp;(v.type=&quot;linear&quot;)),&quot;withzero&quot;!==v.autorange&amp;&amp;&quot;tozero&quot;!==v.autorange||(v.autorange=!0,v.rangemode=&quot;tozero&quot;),delete v.islog,delete v.isdate,delete v.categories,y(v,&quot;domain&quot;)&amp;&amp;delete v.domain,void 0!==v.autotick&amp;&amp;(void 0===v.tickmode&amp;&amp;(v.tickmode=v.autotick?&quot;auto&quot;:&quot;linear&quot;),delete v.autotick),d(v)}else if(l&amp;&amp;l.test(m)){d(t[m].radialaxis)}else if(f&amp;&amp;f.test(m)){var x=t[m];d(x.aaxis),d(x.baxis),d(x.caxis)}else if(h&amp;&amp;h.test(m)){var b=t[m],_=b.cameraposition;if(Array.isArray(_)&amp;&amp;4===_[0].length){var w=_[0],T=_[1],k=_[2],M=i([],w),A=[];for(n=0;n&lt;3;++n)A[n]=T[n]+k*M[2+4*n];b.camera={eye:{x:A[0],y:A[1],z:A[2]},center:{x:T[0],y:T[1],z:T[2]},up:{x:0,y:0,z:1}},delete b.cameraposition}d(b.xaxis),d(b.yaxis),d(b.zaxis)}}var S=Array.isArray(t.annotations)?t.annotations.length:0;for(e=0;e&lt;S;e++){var E=t.annotations[e];o.isPlainObject(E)&amp;&amp;(E.ref&amp;&amp;(&quot;paper&quot;===E.ref?(E.xref=&quot;paper&quot;,E.yref=&quot;paper&quot;):&quot;data&quot;===E.ref&amp;&amp;(E.xref=&quot;x&quot;,E.yref=&quot;y&quot;),delete E.ref),p(E,&quot;xref&quot;),p(E,&quot;yref&quot;))}var C=Array.isArray(t.shapes)?t.shapes.length:0;for(e=0;e&lt;C;e++){var L=t.shapes[e];o.isPlainObject(L)&amp;&amp;(p(L,&quot;xref&quot;),p(L,&quot;yref&quot;))}var I=Array.isArray(t.images)?t.images.length:0;for(e=0;e&lt;I;e++){var P=t.images[e];o.isPlainObject(P)&amp;&amp;(p(P,&quot;xref&quot;),p(P,&quot;yref&quot;))}var z=t.legend;return z&amp;&amp;(z.x&gt;3?(z.x=1.02,z.xanchor=&quot;left&quot;):z.x&lt;-2&amp;&amp;(z.x=-.02,z.xanchor=&quot;right&quot;),z.y&gt;3?(z.y=1.02,z.yanchor=&quot;bottom&quot;):z.y&lt;-2&amp;&amp;(z.y=-.02,z.yanchor=&quot;top&quot;)),d(t),&quot;rotate&quot;===t.dragmode&amp;&amp;(t.dragmode=&quot;orbit&quot;),c.clean(t),t.template&amp;&amp;t.template.layout&amp;&amp;r.cleanLayout(t.template.layout),t},r.cleanData=function(t){for(var e=0;e&lt;t.length;e++){var n,i=t[e];if(&quot;histogramy&quot;===i.type&amp;&amp;&quot;xbins&quot;in i&amp;&amp;!(&quot;ybins&quot;in i)&amp;&amp;(i.ybins=i.xbins,delete i.xbins),i.error_y&amp;&amp;&quot;opacity&quot;in i.error_y){var l=c.defaults,f=i.error_y.color||(h(i,&quot;bar&quot;)?c.defaultLine:l[e%l.length]);i.error_y.color=c.addOpacity(c.rgb(f),c.opacity(f)*i.error_y.opacity),delete i.error_y.opacity}if(&quot;bardir&quot;in i&amp;&amp;(&quot;h&quot;!==i.bardir||!h(i,&quot;bar&quot;)&amp;&amp;&quot;histogram&quot;!==i.type.substr(0,9)||(i.orientation=&quot;h&quot;,r.swapXYData(i)),delete i.bardir),&quot;histogramy&quot;===i.type&amp;&amp;r.swapXYData(i),&quot;histogramx&quot;!==i.type&amp;&amp;&quot;histogramy&quot;!==i.type||(i.type=&quot;histogram&quot;),&quot;scl&quot;in i&amp;&amp;!(&quot;colorscale&quot;in i)&amp;&amp;(i.colorscale=i.scl,delete i.scl),&quot;reversescl&quot;in i&amp;&amp;!(&quot;reversescale&quot;in i)&amp;&amp;(i.reversescale=i.reversescl,delete i.reversescl),i.xaxis&amp;&amp;(i.xaxis=u(i.xaxis,&quot;x&quot;)),i.yaxis&amp;&amp;(i.yaxis=u(i.yaxis,&quot;y&quot;)),h(i,&quot;gl3d&quot;)&amp;&amp;i.scene&amp;&amp;(i.scene=s.subplotsRegistry.gl3d.cleanId(i.scene)),!h(i,&quot;pie-like&quot;)&amp;&amp;!h(i,&quot;bar-like&quot;))if(Array.isArray(i.textposition))for(n=0;n&lt;i.textposition.length;n++)i.textposition[n]=v(i.textposition[n]);else i.textposition&amp;&amp;(i.textposition=v(i.textposition));var p=a.getModule(i);if(p&amp;&amp;p.colorbar){var x=p.colorbar.container,b=x?i[x]:i;b&amp;&amp;b.colorscale&amp;&amp;(&quot;YIGnBu&quot;===b.colorscale&amp;&amp;(b.colorscale=&quot;YlGnBu&quot;),&quot;YIOrRd&quot;===b.colorscale&amp;&amp;(b.colorscale=&quot;YlOrRd&quot;))}if(&quot;surface&quot;===i.type&amp;&amp;o.isPlainObject(i.contours)){var _=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(n=0;n&lt;_.length;n++){var w=i.contours[_[n]];o.isPlainObject(w)&amp;&amp;(w.highlightColor&amp;&amp;(w.highlightcolor=w.highlightColor,delete w.highlightColor),w.highlightWidth&amp;&amp;(w.highlightwidth=w.highlightWidth,delete w.highlightWidth))}}if(&quot;candlestick&quot;===i.type||&quot;ohlc&quot;===i.type){var T=!1!==(i.increasing||{}).showlegend,k=!1!==(i.decreasing||{}).showlegend,M=g(i.increasing),A=g(i.decreasing);if(!1!==M&amp;&amp;!1!==A){var S=m(M,A,T,k);S&amp;&amp;(i.name=S)}else!M&amp;&amp;!A||i.name||(i.name=M||A)}if(Array.isArray(i.transforms)){var E=i.transforms;for(n=0;n&lt;E.length;n++){var C=E[n];if(o.isPlainObject(C))switch(C.type){case&quot;filter&quot;:C.filtersrc&amp;&amp;(C.target=C.filtersrc,delete C.filtersrc),C.calendar&amp;&amp;(C.valuecalendar||(C.valuecalendar=C.calendar),delete C.calendar);break;case&quot;groupby&quot;:if(C.styles=C.styles||C.style,C.styles&amp;&amp;!Array.isArray(C.styles)){var L=C.styles,I=Object.keys(L);C.styles=[];for(var P=0;P&lt;I.length;P++)C.styles.push({target:I[P],value:L[I[P]]})}}}}y(i,&quot;line&quot;)&amp;&amp;delete i.line,&quot;marker&quot;in i&amp;&amp;(y(i.marker,&quot;line&quot;)&amp;&amp;delete i.marker.line,y(i,&quot;marker&quot;)&amp;&amp;delete i.marker),c.clean(i),i.autobinx&amp;&amp;(delete i.autobinx,delete i.xbins),i.autobiny&amp;&amp;(delete i.autobiny,delete i.ybins),d(i),i.colorbar&amp;&amp;d(i.colorbar),i.marker&amp;&amp;i.marker.colorbar&amp;&amp;d(i.marker.colorbar),i.line&amp;&amp;i.line.colorbar&amp;&amp;d(i.line.colorbar),i.aaxis&amp;&amp;d(i.aaxis),i.baxis&amp;&amp;d(i.baxis)}},r.swapXYData=function(t){var e;if(o.swapAttrs(t,[&quot;?&quot;,&quot;?0&quot;,&quot;d?&quot;,&quot;?bins&quot;,&quot;nbins?&quot;,&quot;autobin?&quot;,&quot;?src&quot;,&quot;error_?&quot;]),Array.isArray(t.z)&amp;&amp;Array.isArray(t.z[0])&amp;&amp;(t.transpose?delete t.transpose:t.transpose=!0),t.error_x&amp;&amp;t.error_y){var r=t.error_y,n=&quot;copy_ystyle&quot;in r?r.copy_ystyle:!(r.color||r.thickness||r.width);o.swapAttrs(t,[&quot;error_?.copy_ystyle&quot;]),n&amp;&amp;o.swapAttrs(t,[&quot;error_?.color&quot;,&quot;error_?.thickness&quot;,&quot;error_?.width&quot;])}if(&quot;string&quot;==typeof t.hoverinfo){var i=t.hoverinfo.split(&quot;+&quot;);for(e=0;e&lt;i.length;e++)&quot;x&quot;===i[e]?i[e]=&quot;y&quot;:&quot;y&quot;===i[e]&amp;&amp;(i[e]=&quot;x&quot;);t.hoverinfo=i.join(&quot;+&quot;)}},r.coerceTraceIndices=function(t,e){if(n(e))return[e];if(!Array.isArray(e)||!e.length)return t.data.map((function(t,e){return e}));if(Array.isArray(e)){for(var r=[],i=0;i&lt;e.length;i++)o.isIndex(e[i],t.data.length)?r.push(e[i]):o.warn(&quot;trace index (&quot;,e[i],&quot;) is not a number or is out of bounds&quot;);return r}return e},r.manageArrayContainers=function(t,e,r){var i=t.obj,a=t.parts,s=a.length,l=a[s-1],c=n(l);if(c&amp;&amp;null===e){var u=a.slice(0,s-1).join(&quot;.&quot;);o.nestedProperty(i,u).get().splice(l,1)}else c&amp;&amp;void 0===t.get()?(void 0===t.get()&amp;&amp;(r[t.astr]=null),t.set(e)):t.set(e)};var x=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function b(t){var e=t.search(x);if(e&gt;0)return t.substr(0,e)}r.hasParent=function(t,e){for(var r=b(e);r;){if(r in t)return!0;r=b(r)}return!1};var _=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];r.clearAxisTypes=function(t,e,r){for(var n=0;n&lt;e.length;n++)for(var i=t._fullData[n],a=0;a&lt;3;a++){var s=f(t,i,_[a]);if(s&amp;&amp;&quot;log&quot;!==s.type){var l=s._name,c=s._id.substr(1);if(&quot;scene&quot;===c.substr(0,5)){if(void 0!==r[c])continue;l=c+&quot;.&quot;+l}var u=l+&quot;.type&quot;;void 0===r[l]&amp;&amp;void 0===r[u]&amp;&amp;o.nestedProperty(t.layout,u).set(null)}}}},{&quot;../components/color&quot;:643,&quot;../lib&quot;:778,&quot;../plots/cartesian/axis_ids&quot;:831,&quot;../plots/plots&quot;:891,&quot;../registry&quot;:911,&quot;fast-isnumeric&quot;:241,&quot;gl-mat4/fromQuat&quot;:282}],812:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./plot_api&quot;);r.plot=n.plot,r.newPlot=n.newPlot,r.restyle=n.restyle,r.relayout=n.relayout,r.redraw=n.redraw,r.update=n.update,r._guiRestyle=n._guiRestyle,r._guiRelayout=n._guiRelayout,r._guiUpdate=n._guiUpdate,r._storeDirectGUIEdit=n._storeDirectGUIEdit,r.react=n.react,r.extendTraces=n.extendTraces,r.prependTraces=n.prependTraces,r.addTraces=n.addTraces,r.deleteTraces=n.deleteTraces,r.moveTraces=n.moveTraces,r.purge=n.purge,r.addFrames=n.addFrames,r.deleteFrames=n.deleteFrames,r.animate=n.animate,r.setPlotConfig=n.setPlotConfig,r.toImage=t(&quot;./to_image&quot;),r.validate=t(&quot;./validate&quot;),r.downloadImage=t(&quot;../snapshot/download&quot;);var i=t(&quot;./template_api&quot;);r.makeTemplate=i.makeTemplate,r.validateTemplate=i.validateTemplate},{&quot;../snapshot/download&quot;:913,&quot;./plot_api&quot;:814,&quot;./template_api&quot;:819,&quot;./to_image&quot;:820,&quot;./validate&quot;:821}],813:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/is_plain_object&quot;),i=t(&quot;../lib/noop&quot;),a=t(&quot;../lib/loggers&quot;),o=t(&quot;../lib/search&quot;).sorterAsc,s=t(&quot;../registry&quot;);r.containerArrayMatch=t(&quot;./container_array_match&quot;);var l=r.isAddVal=function(t){return&quot;add&quot;===t||n(t)},c=r.isRemoveVal=function(t){return null===t||&quot;remove&quot;===t};r.applyContainerArrayChanges=function(t,e,r,n,u){var f=e.astr,h=s.getComponentMethod(f,&quot;supplyLayoutDefaults&quot;),p=s.getComponentMethod(f,&quot;draw&quot;),d=s.getComponentMethod(f,&quot;drawOne&quot;),g=n.replot||n.recalc||h===i||p===i,m=t.layout,v=t._fullLayout;if(r[&quot;&quot;]){Object.keys(r).length&gt;1&amp;&amp;a.warn(&quot;Full array edits are incompatible with other edits&quot;,f);var y=r[&quot;&quot;][&quot;&quot;];if(c(y))e.set(null);else{if(!Array.isArray(y))return a.warn(&quot;Unrecognized full array edit value&quot;,f,y),!0;e.set(y)}return!g&amp;&amp;(h(m,v),p(t),!0)}var x,b,_,w,T,k,M,A,S=Object.keys(r).map(Number).sort(o),E=e.get(),C=E||[],L=u(v,f).get(),I=[],P=-1,z=C.length;for(x=0;x&lt;S.length;x++)if(w=r[_=S[x]],T=Object.keys(w),k=w[&quot;&quot;],M=l(k),_&lt;0||_&gt;C.length-(M?0:1))a.warn(&quot;index out of range&quot;,f,_);else if(void 0!==k)T.length&gt;1&amp;&amp;a.warn(&quot;Insertion &amp; removal are incompatible with edits to the same index.&quot;,f,_),c(k)?I.push(_):M?(&quot;add&quot;===k&amp;&amp;(k={}),C.splice(_,0,k),L&amp;&amp;L.splice(_,0,{})):a.warn(&quot;Unrecognized full object edit value&quot;,f,_,k),-1===P&amp;&amp;(P=_);else for(b=0;b&lt;T.length;b++)A=f+&quot;[&quot;+_+&quot;].&quot;,u(C[_],T[b],A).set(w[T[b]]);for(x=I.length-1;x&gt;=0;x--)C.splice(I[x],1),L&amp;&amp;L.splice(I[x],1);if(C.length?E||e.set(C):e.set(null),g)return!1;if(h(m,v),d!==i){var O;if(-1===P)O=S;else{for(z=Math.max(C.length,z),O=[],x=0;x&lt;S.length&amp;&amp;!((_=S[x])&gt;=P);x++)O.push(_);for(x=P;x&lt;z;x++)O.push(x)}for(x=0;x&lt;O.length;x++)d(t,O[x])}else p(t);return!0}},{&quot;../lib/is_plain_object&quot;:779,&quot;../lib/loggers&quot;:782,&quot;../lib/noop&quot;:787,&quot;../lib/search&quot;:798,&quot;../registry&quot;:911,&quot;./container_array_match&quot;:809}],814:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;has-hover&quot;),o=t(&quot;../lib&quot;),s=o.nestedProperty,l=t(&quot;../lib/events&quot;),c=t(&quot;../lib/queue&quot;),u=t(&quot;../registry&quot;),f=t(&quot;./plot_schema&quot;),h=t(&quot;../plots/plots&quot;),p=t(&quot;../plots/polar/legacy&quot;),d=t(&quot;../plots/cartesian/axes&quot;),g=t(&quot;../components/drawing&quot;),m=t(&quot;../components/color&quot;),v=t(&quot;../plots/cartesian/graph_interact&quot;).initInteractions,y=t(&quot;../constants/xmlns_namespaces&quot;),x=t(&quot;../lib/svg_text_utils&quot;),b=t(&quot;../plots/cartesian/select&quot;).clearSelect,_=t(&quot;./plot_config&quot;).dfltConfig,w=t(&quot;./manage_arrays&quot;),T=t(&quot;./helpers&quot;),k=t(&quot;./subroutines&quot;),M=t(&quot;./edit_types&quot;),A=t(&quot;../plots/cartesian/constants&quot;).AX_NAME_PATTERN,S=0;function E(t){var e=t._fullLayout;e._redrawFromAutoMarginCount?e._redrawFromAutoMarginCount--:t.emit(&quot;plotly_afterplot&quot;)}function C(t,e){try{t._fullLayout._paper.style(&quot;background&quot;,e)}catch(t){o.error(t)}}function L(t,e){C(t,m.combine(e,&quot;white&quot;))}function I(t,e){if(!t._context){t._context=o.extendDeep({},_);var r=n.select(&quot;base&quot;);t._context._baseUrl=r.size()&amp;&amp;r.attr(&quot;href&quot;)?window.location.href.split(&quot;#&quot;)[0]:&quot;&quot;}var i,s,l,c=t._context;if(e){for(s=Object.keys(e),i=0;i&lt;s.length;i++)&quot;editable&quot;!==(l=s[i])&amp;&amp;&quot;edits&quot;!==l&amp;&amp;l in c&amp;&amp;(&quot;setBackground&quot;===l&amp;&amp;&quot;opaque&quot;===e[l]?c[l]=L:c[l]=e[l]);e.plot3dPixelRatio&amp;&amp;!c.plotGlPixelRatio&amp;&amp;(c.plotGlPixelRatio=c.plot3dPixelRatio);var u=e.editable;if(void 0!==u)for(c.editable=u,s=Object.keys(c.edits),i=0;i&lt;s.length;i++)c.edits[s[i]]=u;if(e.edits)for(s=Object.keys(e.edits),i=0;i&lt;s.length;i++)(l=s[i])in c.edits&amp;&amp;(c.edits[l]=e.edits[l]);c._exportedPlot=e._exportedPlot}c.staticPlot&amp;&amp;(c.editable=!1,c.edits={},c.autosizable=!1,c.scrollZoom=!1,c.doubleClick=!1,c.showTips=!1,c.showLink=!1,c.displayModeBar=!1),&quot;hover&quot;!==c.displayModeBar||a||(c.displayModeBar=!0),&quot;transparent&quot;!==c.setBackground&amp;&amp;&quot;function&quot;==typeof c.setBackground||(c.setBackground=C),c._hasZeroHeight=c._hasZeroHeight||0===t.clientHeight,c._hasZeroWidth=c._hasZeroWidth||0===t.clientWidth;var f=c.scrollZoom,h=c._scrollZoom={};if(!0===f)h.cartesian=1,h.gl3d=1,h.geo=1,h.mapbox=1;else if(&quot;string&quot;==typeof f){var p=f.split(&quot;+&quot;);for(i=0;i&lt;p.length;i++)h[p[i]]=1}else!1!==f&amp;&amp;(h.gl3d=1,h.geo=1,h.mapbox=1)}function P(t,e){var r,n,i=e+1,a=[];for(r=0;r&lt;t.length;r++)(n=t[r])&lt;0?a.push(i+n):a.push(n);return a}function z(t,e,r){var n,i;for(n=0;n&lt;e.length;n++){if((i=e[n])!==parseInt(i,10))throw new Error(&quot;all values in &quot;+r+&quot; must be integers&quot;);if(i&gt;=t.data.length||i&lt;-t.data.length)throw new Error(r+&quot; must be valid indices for gd.data.&quot;);if(e.indexOf(i,n+1)&gt;-1||i&gt;=0&amp;&amp;e.indexOf(-t.data.length+i)&gt;-1||i&lt;0&amp;&amp;e.indexOf(t.data.length+i)&gt;-1)throw new Error(&quot;each index in &quot;+r+&quot; must be unique.&quot;)}}function O(t,e,r){if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array.&quot;);if(&quot;undefined&quot;==typeof e)throw new Error(&quot;currentIndices is a required argument.&quot;);if(Array.isArray(e)||(e=[e]),z(t,e,&quot;currentIndices&quot;),&quot;undefined&quot;==typeof r||Array.isArray(r)||(r=[r]),&quot;undefined&quot;!=typeof r&amp;&amp;z(t,r,&quot;newIndices&quot;),&quot;undefined&quot;!=typeof r&amp;&amp;e.length!==r.length)throw new Error(&quot;current and new indices must be of equal length.&quot;)}function D(t,e,r,n,a){!function(t,e,r,n){var i=o.isPlainObject(n);if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array&quot;);if(!o.isPlainObject(e))throw new Error(&quot;update must be a key:value object&quot;);if(&quot;undefined&quot;==typeof r)throw new Error(&quot;indices must be an integer or array of integers&quot;);for(var a in z(t,r,&quot;indices&quot;),e){if(!Array.isArray(e[a])||e[a].length!==r.length)throw new Error(&quot;attribute &quot;+a+&quot; must be an array of length equal to indices array length&quot;);if(i&amp;&amp;(!(a in n)||!Array.isArray(n[a])||n[a].length!==e[a].length))throw new Error(&quot;when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object&quot;)}}(t,e,r,n);for(var l=function(t,e,r,n){var a,l,c,u,f,h=o.isPlainObject(n),p=[];for(var d in Array.isArray(r)||(r=[r]),r=P(r,t.data.length-1),e)for(var g=0;g&lt;r.length;g++){if(a=t.data[r[g]],l=(c=s(a,d)).get(),u=e[d][g],!o.isArrayOrTypedArray(u))throw new Error(&quot;attribute: &quot;+d+&quot; index: &quot;+g+&quot; must be an array&quot;);if(!o.isArrayOrTypedArray(l))throw new Error(&quot;cannot extend missing or non-array attribute: &quot;+d);if(l.constructor!==u.constructor)throw new Error(&quot;cannot extend array with an array of a different type: &quot;+d);f=h?n[d][g]:n,i(f)||(f=-1),p.push({prop:c,target:l,insert:u,maxp:Math.floor(f)})}return p}(t,e,r,n),c={},u={},f=0;f&lt;l.length;f++){var h=l[f].prop,p=l[f].maxp,d=a(l[f].target,l[f].insert,p);h.set(d[0]),Array.isArray(c[h.astr])||(c[h.astr]=[]),c[h.astr].push(d[1]),Array.isArray(u[h.astr])||(u[h.astr]=[]),u[h.astr].push(l[f].target.length)}return{update:c,maxPoints:u}}function R(t,e){var r=new t.constructor(t.length+e.length);return r.set(t),r.set(e,t.length),r}function F(t,e,n,i){t=o.getGraphDiv(t),T.clearPromiseQueue(t);var a={};if(&quot;string&quot;==typeof e)a[e]=n;else{if(!o.isPlainObject(e))return o.warn(&quot;Restyle fail.&quot;,e,n,i),Promise.reject();a=o.extendFlat({},e),void 0===i&amp;&amp;(i=n)}Object.keys(a).length&amp;&amp;(t.changed=!0);var s=T.coerceTraceIndices(t,i),l=U(t,a,s),u=l.flags;u.calc&amp;&amp;(t.calcdata=void 0),u.clearAxisTypes&amp;&amp;T.clearAxisTypes(t,s,{});var f=[];u.fullReplot?f.push(r.plot):(f.push(h.previousPromises),h.supplyDefaults(t),u.markerSize&amp;&amp;(h.doCalcdata(t),G(f)),u.style&amp;&amp;f.push(k.doTraceStyle),u.colorbars&amp;&amp;f.push(k.doColorBars),f.push(E)),f.push(h.rehover,h.redrag),c.add(t,F,[t,l.undoit,l.traces],F,[t,l.redoit,l.traces]);var p=o.syncOrAsync(f,t);return p&amp;&amp;p.then||(p=Promise.resolve()),p.then((function(){return t.emit(&quot;plotly_restyle&quot;,l.eventData),t}))}function B(t){return void 0===t?null:t}function N(t,e){return e?function(e,r,n){var i=s(e,r),a=i.set;return i.set=function(e){j((n||&quot;&quot;)+r,i.get(),e,t),a(e)},i}:s}function j(t,e,r,n){if(Array.isArray(e)||Array.isArray(r))for(var i=Array.isArray(e)?e:[],a=Array.isArray(r)?r:[],s=Math.max(i.length,a.length),l=0;l&lt;s;l++)j(t+&quot;[&quot;+l+&quot;]&quot;,i[l],a[l],n);else if(o.isPlainObject(e)||o.isPlainObject(r)){var c=o.isPlainObject(e)?e:{},u=o.isPlainObject(r)?r:{},f=o.extendFlat({},c,u);for(var h in f)j(t+&quot;.&quot;+h,c[h],u[h],n)}else void 0===n[t]&amp;&amp;(n[t]=B(e))}function U(t,e,r){var n,i=t._fullLayout,a=t._fullData,l=t.data,c=i._guiEditing,p=N(i._preGUI,c),g=o.extendDeepAll({},e);V(e);var m,v=M.traceFlags(),y={},x={};function b(){return r.map((function(){}))}function _(t){var e=d.id2name(t);-1===m.indexOf(e)&amp;&amp;m.push(e)}function w(t){return&quot;LAYOUT&quot;+t+&quot;.autorange&quot;}function k(t){return&quot;LAYOUT&quot;+t+&quot;.range&quot;}function A(t){for(var e=t;e&lt;a.length;e++)if(a[e]._input===l[t])return a[e]}function S(n,a,o){if(Array.isArray(n))n.forEach((function(t){S(t,a,o)}));else if(!(n in e)&amp;&amp;!T.hasParent(e,n)){var s;if(&quot;LAYOUT&quot;===n.substr(0,6))s=p(t.layout,n.replace(&quot;LAYOUT&quot;,&quot;&quot;));else{var u=r[o];s=N(i._tracePreGUI[A(u)._fullInput.uid],c)(l[u],n)}n in x||(x[n]=b()),void 0===x[n][o]&amp;&amp;(x[n][o]=B(s.get())),void 0!==a&amp;&amp;s.set(a)}}function E(t){return function(e){return a[e][t]}}function C(t){return function(e,n){return!1===e?a[r[n]][t]:null}}for(var L in e){if(T.hasParent(e,L))throw new Error(&quot;cannot set &quot;+L+&quot; and a parent attribute simultaneously&quot;);var I,P,z,O,D,R,F=e[L];if(&quot;autobinx&quot;!==L&amp;&amp;&quot;autobiny&quot;!==L||(L=L.charAt(L.length-1)+&quot;bins&quot;,F=Array.isArray(F)?F.map(C(L)):!1===F?r.map(E(L)):null),y[L]=F,&quot;LAYOUT&quot;!==L.substr(0,6)){for(x[L]=b(),n=0;n&lt;r.length;n++){if(I=l[r[n]],P=A(r[n]),O=(z=N(i._tracePreGUI[P._fullInput.uid],c)(I,L)).get(),void 0!==(D=Array.isArray(F)?F[n%F.length]:F)){var j=z.parts[z.parts.length-1],U=L.substr(0,L.length-j.length-1),q=U?U+&quot;.&quot;:&quot;&quot;,H=U?s(P,U).get():P;if((R=f.getTraceValObject(P,z.parts))&amp;&amp;R.impliedEdits&amp;&amp;null!==D)for(var G in R.impliedEdits)S(o.relativeAttr(L,G),R.impliedEdits[G],n);else if(&quot;thicknessmode&quot;!==j&amp;&amp;&quot;lenmode&quot;!==j||O===D||&quot;fraction&quot;!==D&amp;&amp;&quot;pixels&quot;!==D||!H){if(&quot;type&quot;===L&amp;&amp;(&quot;pie&quot;===D!=(&quot;pie&quot;===O)||&quot;funnelarea&quot;===D!=(&quot;funnelarea&quot;===O))){var Y=&quot;x&quot;,W=&quot;y&quot;;&quot;bar&quot;!==D&amp;&amp;&quot;bar&quot;!==O||&quot;h&quot;!==I.orientation||(Y=&quot;y&quot;,W=&quot;x&quot;),o.swapAttrs(I,[&quot;?&quot;,&quot;?src&quot;],&quot;labels&quot;,Y),o.swapAttrs(I,[&quot;d?&quot;,&quot;?0&quot;],&quot;label&quot;,Y),o.swapAttrs(I,[&quot;?&quot;,&quot;?src&quot;],&quot;values&quot;,W),&quot;pie&quot;===O||&quot;funnelarea&quot;===O?(s(I,&quot;marker.color&quot;).set(s(I,&quot;marker.colors&quot;).get()),i._pielayer.selectAll(&quot;g.trace&quot;).remove()):u.traceIs(I,&quot;cartesian&quot;)&amp;&amp;s(I,&quot;marker.colors&quot;).set(s(I,&quot;marker.color&quot;).get())}}else{var X=i._size,Z=H.orient,J=&quot;top&quot;===Z||&quot;bottom&quot;===Z;if(&quot;thicknessmode&quot;===j){var K=J?X.h:X.w;S(q+&quot;thickness&quot;,H.thickness*(&quot;fraction&quot;===D?1/K:K),n)}else{var Q=J?X.w:X.h;S(q+&quot;len&quot;,H.len*(&quot;fraction&quot;===D?1/Q:Q),n)}}x[L][n]=B(O);if(-1!==[&quot;swapxy&quot;,&quot;swapxyaxes&quot;,&quot;orientation&quot;,&quot;orientationaxes&quot;].indexOf(L)){if(&quot;orientation&quot;===L){z.set(D);var $=I.x&amp;&amp;!I.y?&quot;h&quot;:&quot;v&quot;;if((z.get()||$)===P.orientation)continue}else&quot;orientationaxes&quot;===L&amp;&amp;(I.orientation={v:&quot;h&quot;,h:&quot;v&quot;}[P.orientation]);T.swapXYData(I),v.calc=v.clearAxisTypes=!0}else-1!==h.dataArrayContainers.indexOf(z.parts[0])?(T.manageArrayContainers(z,D,x),v.calc=!0):(R?R.arrayOk&amp;&amp;!u.traceIs(P,&quot;regl&quot;)&amp;&amp;(o.isArrayOrTypedArray(D)||o.isArrayOrTypedArray(O))?v.calc=!0:M.update(v,R):v.calc=!0,z.set(D))}}if(-1!==[&quot;swapxyaxes&quot;,&quot;orientationaxes&quot;].indexOf(L)&amp;&amp;d.swap(t,r),&quot;orientationaxes&quot;===L){var tt=s(t.layout,&quot;hovermode&quot;),et=tt.get();&quot;x&quot;===et?tt.set(&quot;y&quot;):&quot;y&quot;===et?tt.set(&quot;x&quot;):&quot;x unified&quot;===et?tt.set(&quot;y unified&quot;):&quot;y unified&quot;===et&amp;&amp;tt.set(&quot;x unified&quot;)}if(-1!==[&quot;orientation&quot;,&quot;type&quot;].indexOf(L)){for(m=[],n=0;n&lt;r.length;n++){var rt=l[r[n]];u.traceIs(rt,&quot;cartesian&quot;)&amp;&amp;(_(rt.xaxis||&quot;x&quot;),_(rt.yaxis||&quot;y&quot;))}S(m.map(w),!0,0),S(m.map(k),[0,1],0)}}else z=p(t.layout,L.replace(&quot;LAYOUT&quot;,&quot;&quot;)),x[L]=[B(z.get())],z.set(Array.isArray(F)?F[0]:F),v.calc=!0}return(v.calc||v.plot)&amp;&amp;(v.fullReplot=!0),{flags:v,undoit:x,redoit:y,traces:r,eventData:o.extendDeepNoArrays([],[g,r])}}function V(t){var e,r,n,i=o.counterRegex(&quot;axis&quot;,&quot;.title&quot;,!1,!1),a=/colorbar\.title$/,s=Object.keys(t);for(e=0;e&lt;s.length;e++)r=s[e],n=t[r],&quot;title&quot;!==r&amp;&amp;!i.test(r)&amp;&amp;!a.test(r)||&quot;string&quot;!=typeof n&amp;&amp;&quot;number&quot;!=typeof n?r.indexOf(&quot;titlefont&quot;)&gt;-1?l(r,r.replace(&quot;titlefont&quot;,&quot;title.font&quot;)):r.indexOf(&quot;titleposition&quot;)&gt;-1?l(r,r.replace(&quot;titleposition&quot;,&quot;title.position&quot;)):r.indexOf(&quot;titleside&quot;)&gt;-1?l(r,r.replace(&quot;titleside&quot;,&quot;title.side&quot;)):r.indexOf(&quot;titleoffset&quot;)&gt;-1&amp;&amp;l(r,r.replace(&quot;titleoffset&quot;,&quot;title.offset&quot;)):l(r,r.replace(&quot;title&quot;,&quot;title.text&quot;));function l(e,r){t[r]=t[e],delete t[e]}}function q(t,e,r){if(t=o.getGraphDiv(t),T.clearPromiseQueue(t),t.framework&amp;&amp;t.framework.isPolar)return Promise.resolve(t);var n={};if(&quot;string&quot;==typeof e)n[e]=r;else{if(!o.isPlainObject(e))return o.warn(&quot;Relayout fail.&quot;,e,r),Promise.reject();n=o.extendFlat({},e)}Object.keys(n).length&amp;&amp;(t.changed=!0);var i=Z(t,n),a=i.flags;a.calc&amp;&amp;(t.calcdata=void 0);var s=[h.previousPromises];a.layoutReplot?s.push(k.layoutReplot):Object.keys(n).length&amp;&amp;(H(t,a,i)||h.supplyDefaults(t),a.legend&amp;&amp;s.push(k.doLegend),a.layoutstyle&amp;&amp;s.push(k.layoutStyles),a.axrange&amp;&amp;G(s,i.rangesAltered),a.ticks&amp;&amp;s.push(k.doTicksRelayout),a.modebar&amp;&amp;s.push(k.doModeBar),a.camera&amp;&amp;s.push(k.doCamera),a.colorbars&amp;&amp;s.push(k.doColorBars),s.push(E)),s.push(h.rehover,h.redrag),c.add(t,q,[t,i.undoit],q,[t,i.redoit]);var l=o.syncOrAsync(s,t);return l&amp;&amp;l.then||(l=Promise.resolve(t)),l.then((function(){return t.emit(&quot;plotly_relayout&quot;,i.eventData),t}))}function H(t,e,r){var n=t._fullLayout;if(!e.axrange)return!1;for(var i in e)if(&quot;axrange&quot;!==i&amp;&amp;e[i])return!1;for(var a in r.rangesAltered){var o=d.id2name(a),s=t.layout[o],l=n[o];if(l.autorange=s.autorange,s.range&amp;&amp;(l.range=s.range.slice()),l.cleanRange(),l._matchGroup)for(var c in l._matchGroup)if(c!==a){var u=n[d.id2name(c)];u.autorange=l.autorange,u.range=l.range.slice(),u._input.range=l.range.slice()}}return!0}function G(t,e){var r=e?function(t){var r=[],n=!0;for(var i in e){var a=d.getFromId(t,i);if(r.push(i),-1!==(a.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;a._anchorAxis&amp;&amp;r.push(a._anchorAxis._id),a._matchGroup)for(var o in a._matchGroup)e[o]||r.push(o);a.automargin&amp;&amp;(n=!1)}return d.draw(t,r,{skipTitle:n})}:function(t){return d.draw(t,&quot;redraw&quot;)};t.push(b,k.doAutoRangeAndConstraints,r,k.drawData,k.finalDraw)}var Y=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,W=/^[xyz]axis[0-9]*\.autorange$/,X=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Z(t,e){var r,n,i,a=t.layout,l=t._fullLayout,c=l._guiEditing,h=N(l._preGUI,c),p=Object.keys(e),g=d.list(t),m=o.extendDeepAll({},e),v={};for(V(e),p=Object.keys(e),n=0;n&lt;p.length;n++)if(0===p[n].indexOf(&quot;allaxes&quot;)){for(i=0;i&lt;g.length;i++){var y=g[i]._id.substr(1),x=-1!==y.indexOf(&quot;scene&quot;)?y+&quot;.&quot;:&quot;&quot;,b=p[n].replace(&quot;allaxes&quot;,x+g[i]._name);e[b]||(e[b]=e[p[n]])}delete e[p[n]]}var _=M.layoutFlags(),k={},S={};function E(t,r){if(Array.isArray(t))t.forEach((function(t){E(t,r)}));else if(!(t in e)&amp;&amp;!T.hasParent(e,t)){var n=h(a,t);t in S||(S[t]=B(n.get())),void 0!==r&amp;&amp;n.set(r)}}var C,L={};function I(t){var e=d.name2id(t.split(&quot;.&quot;)[0]);return L[e]=1,e}for(var P in e){if(T.hasParent(e,P))throw new Error(&quot;cannot set &quot;+P+&quot; and a parent attribute simultaneously&quot;);for(var z=h(a,P),O=e[P],D=z.parts.length-1;D&gt;0&amp;&amp;&quot;string&quot;!=typeof z.parts[D];)D--;var R=z.parts[D],F=z.parts[D-1]+&quot;.&quot;+R,j=z.parts.slice(0,D).join(&quot;.&quot;),U=s(t.layout,j).get(),q=s(l,j).get(),H=z.get();if(void 0!==O){k[P]=O,S[P]=&quot;reverse&quot;===R?O:B(H);var G=f.getLayoutValObject(l,z.parts);if(G&amp;&amp;G.impliedEdits&amp;&amp;null!==O)for(var Z in G.impliedEdits)E(o.relativeAttr(P,Z),G.impliedEdits[Z]);if(-1!==[&quot;width&quot;,&quot;height&quot;].indexOf(P))if(O){E(&quot;autosize&quot;,null);var K=&quot;height&quot;===P?&quot;width&quot;:&quot;height&quot;;E(K,l[K])}else l[P]=t._initialAutoSize[P];else if(&quot;autosize&quot;===P)E(&quot;width&quot;,O?null:l.width),E(&quot;height&quot;,O?null:l.height);else if(F.match(Y))I(F),s(l,j+&quot;._inputRange&quot;).set(null);else if(F.match(W)){I(F),s(l,j+&quot;._inputRange&quot;).set(null);var Q=s(l,j).get();Q._inputDomain&amp;&amp;(Q._input.domain=Q._inputDomain.slice())}else F.match(X)&amp;&amp;s(l,j+&quot;._inputDomain&quot;).set(null);if(&quot;type&quot;===R){C=U;var $=&quot;linear&quot;===q.type&amp;&amp;&quot;log&quot;===O,tt=&quot;log&quot;===q.type&amp;&amp;&quot;linear&quot;===O;if($||tt){if(C&amp;&amp;C.range)if(q.autorange)$&amp;&amp;(C.range=C.range[1]&gt;C.range[0]?[1,2]:[2,1]);else{var et=C.range[0],rt=C.range[1];$?(et&lt;=0&amp;&amp;rt&lt;=0&amp;&amp;E(j+&quot;.autorange&quot;,!0),et&lt;=0?et=rt/1e6:rt&lt;=0&amp;&amp;(rt=et/1e6),E(j+&quot;.range[0]&quot;,Math.log(et)/Math.LN10),E(j+&quot;.range[1]&quot;,Math.log(rt)/Math.LN10)):(E(j+&quot;.range[0]&quot;,Math.pow(10,et)),E(j+&quot;.range[1]&quot;,Math.pow(10,rt)))}else E(j+&quot;.autorange&quot;,!0);Array.isArray(l._subplots.polar)&amp;&amp;l._subplots.polar.length&amp;&amp;l[z.parts[0]]&amp;&amp;&quot;radialaxis&quot;===z.parts[1]&amp;&amp;delete l[z.parts[0]]._subplot.viewInitial[&quot;radialaxis.range&quot;],u.getComponentMethod(&quot;annotations&quot;,&quot;convertCoords&quot;)(t,q,O,E),u.getComponentMethod(&quot;images&quot;,&quot;convertCoords&quot;)(t,q,O,E)}else E(j+&quot;.autorange&quot;,!0),E(j+&quot;.range&quot;,null);s(l,j+&quot;._inputRange&quot;).set(null)}else if(R.match(A)){var nt=s(l,P).get(),it=(O||{}).type;it&amp;&amp;&quot;-&quot;!==it||(it=&quot;linear&quot;),u.getComponentMethod(&quot;annotations&quot;,&quot;convertCoords&quot;)(t,nt,it,E),u.getComponentMethod(&quot;images&quot;,&quot;convertCoords&quot;)(t,nt,it,E)}var at=w.containerArrayMatch(P);if(at){r=at.array,n=at.index;var ot=at.property,st=G||{editType:&quot;calc&quot;};&quot;&quot;!==n&amp;&amp;&quot;&quot;===ot&amp;&amp;(w.isAddVal(O)?S[P]=null:w.isRemoveVal(O)?S[P]=(s(a,r).get()||[])[n]:o.warn(&quot;unrecognized full object value&quot;,e)),M.update(_,st),v[r]||(v[r]={});var lt=v[r][n];lt||(lt=v[r][n]={}),lt[ot]=O,delete e[P]}else&quot;reverse&quot;===R?(U.range?U.range.reverse():(E(j+&quot;.autorange&quot;,!0),U.range=[1,0]),q.autorange?_.calc=!0:_.plot=!0):(l._has(&quot;scatter-like&quot;)&amp;&amp;l._has(&quot;regl&quot;)&amp;&amp;&quot;dragmode&quot;===P&amp;&amp;(&quot;lasso&quot;===O||&quot;select&quot;===O)&amp;&amp;&quot;lasso&quot;!==H&amp;&amp;&quot;select&quot;!==H||l._has(&quot;gl2d&quot;)?_.plot=!0:G?M.update(_,G):_.calc=!0,z.set(O))}}for(r in v){w.applyContainerArrayChanges(t,h(a,r),v[r],_,h)||(_.plot=!0)}for(var ct in L){var ut=(C=d.getFromId(t,ct))&amp;&amp;C._constraintGroup;if(ut)for(var ft in _.calc=!0,ut)L[ft]||(d.getFromId(t,ft)._constraintShrinkable=!0)}return(J(t)||e.height||e.width)&amp;&amp;(_.plot=!0),(_.plot||_.calc)&amp;&amp;(_.layoutReplot=!0),{flags:_,rangesAltered:L,undoit:S,redoit:k,eventData:m}}function J(t){var e=t._fullLayout,r=e.width,n=e.height;return t.layout.autosize&amp;&amp;h.plotAutoSize(t,t.layout,e),e.width!==r||e.height!==n}function K(t,e,n,i){if(t=o.getGraphDiv(t),T.clearPromiseQueue(t),t.framework&amp;&amp;t.framework.isPolar)return Promise.resolve(t);o.isPlainObject(e)||(e={}),o.isPlainObject(n)||(n={}),Object.keys(e).length&amp;&amp;(t.changed=!0),Object.keys(n).length&amp;&amp;(t.changed=!0);var a=T.coerceTraceIndices(t,i),s=U(t,o.extendFlat({},e),a),l=s.flags,u=Z(t,o.extendFlat({},n)),f=u.flags;(l.calc||f.calc)&amp;&amp;(t.calcdata=void 0),l.clearAxisTypes&amp;&amp;T.clearAxisTypes(t,a,n);var p=[];f.layoutReplot?p.push(k.layoutReplot):l.fullReplot?p.push(r.plot):(p.push(h.previousPromises),H(t,f,u)||h.supplyDefaults(t),l.style&amp;&amp;p.push(k.doTraceStyle),(l.colorbars||f.colorbars)&amp;&amp;p.push(k.doColorBars),f.legend&amp;&amp;p.push(k.doLegend),f.layoutstyle&amp;&amp;p.push(k.layoutStyles),f.axrange&amp;&amp;G(p,u.rangesAltered),f.ticks&amp;&amp;p.push(k.doTicksRelayout),f.modebar&amp;&amp;p.push(k.doModeBar),f.camera&amp;&amp;p.push(k.doCamera),p.push(E)),p.push(h.rehover,h.redrag),c.add(t,K,[t,s.undoit,u.undoit,s.traces],K,[t,s.redoit,u.redoit,s.traces]);var d=o.syncOrAsync(p,t);return d&amp;&amp;d.then||(d=Promise.resolve(t)),d.then((function(){return t.emit(&quot;plotly_update&quot;,{data:s.eventData,layout:u.eventData}),t}))}function Q(t){return function(e){e._fullLayout._guiEditing=!0;var r=t.apply(null,arguments);return e._fullLayout._guiEditing=!1,r}}var $=[{pattern:/^hiddenlabels/,attr:&quot;legend.uirevision&quot;},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:&quot;modebar.uirevision&quot;},{pattern:/(hover|drag)mode$/,attr:&quot;modebar.uirevision&quot;},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:&quot;editrevision&quot;},{pattern:/^(shapes|annotations)/,attr:&quot;editrevision&quot;},{pattern:/^title\.text$/,attr:&quot;editrevision&quot;}],tt=[{pattern:/^selectedpoints$/,attr:&quot;selectionrevision&quot;},{pattern:/(^|value\.)visible$/,attr:&quot;legend.uirevision&quot;},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:&quot;editrevision&quot;}];function et(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r],i=t.match(n.pattern);if(i)return{head:i[1],attr:n.attr}}}function rt(t,e){var r=s(e,t).get();if(void 0!==r)return r;var n=t.split(&quot;.&quot;);for(n.pop();n.length&gt;1;)if(n.pop(),void 0!==(r=s(e,n.join(&quot;.&quot;)+&quot;.uirevision&quot;).get()))return r;return e.uirevision}function nt(t,e){for(var r=0;r&lt;e.length;r++)if(e[r]._fullInput.uid===t)return r;return-1}function it(t,e,r){for(var n=0;n&lt;e.length;n++)if(e[n].uid===t)return n;return!e[r]||e[r].uid?-1:r}function at(t,e){var r=o.isPlainObject(t),n=Array.isArray(t);return r||n?(r&amp;&amp;o.isPlainObject(e)||n&amp;&amp;Array.isArray(e))&amp;&amp;JSON.stringify(t)===JSON.stringify(e):t===e}function ot(t,e,r,n){var i,a,l,c=n.getValObject,u=n.flags,f=n.immutable,h=n.inArray,p=n.arrayIndex;function d(){var t=i.editType;h&amp;&amp;-1!==t.indexOf(&quot;arraydraw&quot;)?o.pushUnique(u.arrays[h],p):(M.update(u,i),&quot;none&quot;!==t&amp;&amp;u.nChanges++,n.transition&amp;&amp;i.anim&amp;&amp;u.nChangesAnim++,(Y.test(l)||W.test(l))&amp;&amp;(u.rangesAltered[r[0]]=1),X.test(l)&amp;&amp;s(e,&quot;_inputDomain&quot;).set(null),&quot;datarevision&quot;===a&amp;&amp;(u.newDataRevision=1))}function g(t){return&quot;data_array&quot;===t.valType||t.arrayOk}for(a in t){if(u.calc&amp;&amp;!n.transition)return;var m=t[a],v=e[a],y=r.concat(a);if(l=y.join(&quot;.&quot;),&quot;_&quot;!==a.charAt(0)&amp;&amp;&quot;function&quot;!=typeof m&amp;&amp;m!==v){if((&quot;tick0&quot;===a||&quot;dtick&quot;===a)&amp;&amp;&quot;geo&quot;!==r[0]){var x=e.tickmode;if(&quot;auto&quot;===x||&quot;array&quot;===x||!x)continue}if((&quot;range&quot;!==a||!e.autorange)&amp;&amp;(&quot;zmin&quot;!==a&amp;&amp;&quot;zmax&quot;!==a||&quot;contourcarpet&quot;!==e.type)&amp;&amp;(i=c(y))&amp;&amp;(!i._compareAsJSON||JSON.stringify(m)!==JSON.stringify(v))){var b,_=i.valType,w=g(i),T=Array.isArray(m),k=Array.isArray(v);if(T&amp;&amp;k){var A=&quot;_input_&quot;+a,S=t[A],E=e[A];if(Array.isArray(S)&amp;&amp;S===E)continue}if(void 0===v)w&amp;&amp;T?u.calc=!0:d();else if(i._isLinkedToArray){var C=[],L=!1;h||(u.arrays[a]=C);var I=Math.min(m.length,v.length),P=Math.max(m.length,v.length);if(I!==P){if(&quot;arraydraw&quot;!==i.editType){d();continue}L=!0}for(b=0;b&lt;I;b++)ot(m[b],v[b],y.concat(b),o.extendFlat({inArray:a,arrayIndex:b},n));if(L)for(b=I;b&lt;P;b++)C.push(b)}else!_&amp;&amp;o.isPlainObject(m)?ot(m,v,y,n):w?T&amp;&amp;k?(f&amp;&amp;(u.calc=!0),(f||n.newDataRevision)&amp;&amp;d()):T!==k?u.calc=!0:d():T&amp;&amp;k&amp;&amp;m.length===v.length&amp;&amp;String(m)===String(v)||d()}}}for(a in e)if(!(a in t)&amp;&amp;&quot;_&quot;!==a.charAt(0)&amp;&amp;&quot;function&quot;!=typeof e[a]){if(g(i=c(r.concat(a)))&amp;&amp;Array.isArray(e[a]))return void(u.calc=!0);d()}}function st(t){var e=t._fullLayout,r=t.getBoundingClientRect();if(!o.equalDomRects(r,e._lastBBox)){var n=e._invTransform=o.inverseTransformMatrix(o.getFullTransformMatrix(t));e._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),e._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),e._lastBBox=r}}function lt(t){var e=n.select(t),r=t._fullLayout;if(r._calcInverseTransform=st,r._calcInverseTransform(t),r._container=e.selectAll(&quot;.plot-container&quot;).data([0]),r._container.enter().insert(&quot;div&quot;,&quot;:first-child&quot;).classed(&quot;plot-container&quot;,!0).classed(&quot;plotly&quot;,!0),r._paperdiv=r._container.selectAll(&quot;.svg-container&quot;).data([0]),r._paperdiv.enter().append(&quot;div&quot;).classed(&quot;user-select-none&quot;,!0).classed(&quot;svg-container&quot;,!0).style(&quot;position&quot;,&quot;relative&quot;),r._glcontainer=r._paperdiv.selectAll(&quot;.gl-container&quot;).data([{}]),r._glcontainer.enter().append(&quot;div&quot;).classed(&quot;gl-container&quot;,!0),r._paperdiv.selectAll(&quot;.main-svg&quot;).remove(),r._paperdiv.select(&quot;.modebar-container&quot;).remove(),r._paper=r._paperdiv.insert(&quot;svg&quot;,&quot;:first-child&quot;).classed(&quot;main-svg&quot;,!0),r._toppaper=r._paperdiv.append(&quot;svg&quot;).classed(&quot;main-svg&quot;,!0),r._modebardiv=r._paperdiv.append(&quot;div&quot;),delete r._modeBar,r._hoverpaper=r._paperdiv.append(&quot;svg&quot;).classed(&quot;main-svg&quot;,!0),!r._uid){var i={};n.selectAll(&quot;defs&quot;).each((function(){this.id&amp;&amp;(i[this.id.split(&quot;-&quot;)[1]]=1)})),r._uid=o.randstr(i)}r._paperdiv.selectAll(&quot;.main-svg&quot;).attr(y.svgAttrs),r._defs=r._paper.append(&quot;defs&quot;).attr(&quot;id&quot;,&quot;defs-&quot;+r._uid),r._clips=r._defs.append(&quot;g&quot;).classed(&quot;clips&quot;,!0),r._topdefs=r._toppaper.append(&quot;defs&quot;).attr(&quot;id&quot;,&quot;topdefs-&quot;+r._uid),r._topclips=r._topdefs.append(&quot;g&quot;).classed(&quot;clips&quot;,!0),r._bgLayer=r._paper.append(&quot;g&quot;).classed(&quot;bglayer&quot;,!0),r._draggers=r._paper.append(&quot;g&quot;).classed(&quot;draglayer&quot;,!0);var a=r._paper.append(&quot;g&quot;).classed(&quot;layer-below&quot;,!0);r._imageLowerLayer=a.append(&quot;g&quot;).classed(&quot;imagelayer&quot;,!0),r._shapeLowerLayer=a.append(&quot;g&quot;).classed(&quot;shapelayer&quot;,!0),r._cartesianlayer=r._paper.append(&quot;g&quot;).classed(&quot;cartesianlayer&quot;,!0),r._polarlayer=r._paper.append(&quot;g&quot;).classed(&quot;polarlayer&quot;,!0),r._ternarylayer=r._paper.append(&quot;g&quot;).classed(&quot;ternarylayer&quot;,!0),r._geolayer=r._paper.append(&quot;g&quot;).classed(&quot;geolayer&quot;,!0),r._funnelarealayer=r._paper.append(&quot;g&quot;).classed(&quot;funnelarealayer&quot;,!0),r._pielayer=r._paper.append(&quot;g&quot;).classed(&quot;pielayer&quot;,!0),r._treemaplayer=r._paper.append(&quot;g&quot;).classed(&quot;treemaplayer&quot;,!0),r._sunburstlayer=r._paper.append(&quot;g&quot;).classed(&quot;sunburstlayer&quot;,!0),r._indicatorlayer=r._toppaper.append(&quot;g&quot;).classed(&quot;indicatorlayer&quot;,!0),r._glimages=r._paper.append(&quot;g&quot;).classed(&quot;glimages&quot;,!0);var s=r._toppaper.append(&quot;g&quot;).classed(&quot;layer-above&quot;,!0);r._imageUpperLayer=s.append(&quot;g&quot;).classed(&quot;imagelayer&quot;,!0),r._shapeUpperLayer=s.append(&quot;g&quot;).classed(&quot;shapelayer&quot;,!0),r._infolayer=r._toppaper.append(&quot;g&quot;).classed(&quot;infolayer&quot;,!0),r._menulayer=r._toppaper.append(&quot;g&quot;).classed(&quot;menulayer&quot;,!0),r._zoomlayer=r._toppaper.append(&quot;g&quot;).classed(&quot;zoomlayer&quot;,!0),r._hoverlayer=r._hoverpaper.append(&quot;g&quot;).classed(&quot;hoverlayer&quot;,!0),r._modebardiv.classed(&quot;modebar-container&quot;,!0).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;top&quot;,&quot;0px&quot;).style(&quot;right&quot;,&quot;0px&quot;),t.emit(&quot;plotly_framework&quot;)}r.animate=function(t,e,r){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t+&quot;. It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/&quot;);var n=t._transitionData;n._frameQueue||(n._frameQueue=[]);var i=(r=h.supplyAnimationDefaults(r)).transition,a=r.frame;function s(t){return Array.isArray(i)?t&gt;=i.length?i[0]:i[t]:i}function l(t){return Array.isArray(a)?t&gt;=a.length?a[0]:a[t]:a}function c(t,e){var r=0;return function(){if(t&amp;&amp;++r===e)return t()}}return void 0===n._frameWaitingCnt&amp;&amp;(n._frameWaitingCnt=0),new Promise((function(a,u){function f(){n._currentFrame&amp;&amp;n._currentFrame.onComplete&amp;&amp;n._currentFrame.onComplete();var e=n._currentFrame=n._frameQueue.shift();if(e){var r=e.name?e.name.toString():null;t._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=e.frameOpts.duration,h.transition(t,e.frame.data,e.frame.layout,T.coerceTraceIndices(t,e.frame.traces),e.frameOpts,e.transitionOpts).then((function(){e.onComplete&amp;&amp;e.onComplete()})),t.emit(&quot;plotly_animatingframe&quot;,{name:r,frame:e.frame,animation:{frame:e.frameOpts,transition:e.transitionOpts}})}else t.emit(&quot;plotly_animated&quot;),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function p(){t.emit(&quot;plotly_animating&quot;),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var e=function(){n._animationRaf=window.requestAnimationFrame(e),Date.now()-n._lastFrameAt&gt;n._timeToNext&amp;&amp;f()};e()}var d,g,m=0;function v(t){return Array.isArray(i)?m&gt;=i.length?t.transitionOpts=i[m]:t.transitionOpts=i[0]:t.transitionOpts=i,m++,t}var y=[],x=null==e,b=Array.isArray(e);if(!x&amp;&amp;!b&amp;&amp;o.isPlainObject(e))y.push({type:&quot;object&quot;,data:v(o.extendFlat({},e))});else if(x||-1!==[&quot;string&quot;,&quot;number&quot;].indexOf(typeof e))for(d=0;d&lt;n._frames.length;d++)(g=n._frames[d])&amp;&amp;(x||String(g.group)===String(e))&amp;&amp;y.push({type:&quot;byname&quot;,name:String(g.name),data:v({name:g.name})});else if(b)for(d=0;d&lt;e.length;d++){var _=e[d];-1!==[&quot;number&quot;,&quot;string&quot;].indexOf(typeof _)?(_=String(_),y.push({type:&quot;byname&quot;,name:_,data:v({name:_})})):o.isPlainObject(_)&amp;&amp;y.push({type:&quot;object&quot;,data:v(o.extendFlat({},_))})}for(d=0;d&lt;y.length;d++)if(&quot;byname&quot;===(g=y[d]).type&amp;&amp;!n._frameHash[g.data.name])return o.warn('animate failure: frame not found: &quot;'+g.data.name+'&quot;'),void u();-1!==[&quot;next&quot;,&quot;immediate&quot;].indexOf(r.mode)&amp;&amp;function(){if(0!==n._frameQueue.length){for(;n._frameQueue.length;){var e=n._frameQueue.pop();e.onInterrupt&amp;&amp;e.onInterrupt()}t.emit(&quot;plotly_animationinterrupted&quot;,[])}}(),&quot;reverse&quot;===r.direction&amp;&amp;y.reverse();var w=t._fullLayout._currentFrame;if(w&amp;&amp;r.fromcurrent){var k=-1;for(d=0;d&lt;y.length;d++)if(&quot;byname&quot;===(g=y[d]).type&amp;&amp;g.name===w){k=d;break}if(k&gt;0&amp;&amp;k&lt;y.length-1){var M=[];for(d=0;d&lt;y.length;d++)g=y[d],(&quot;byname&quot;!==y[d].type||d&gt;k)&amp;&amp;M.push(g);y=M}}y.length&gt;0?function(e){if(0!==e.length){for(var i=0;i&lt;e.length;i++){var o;o=&quot;byname&quot;===e[i].type?h.computeFrame(t,e[i].name):e[i].data;var f=l(i),d=s(i);d.duration=Math.min(d.duration,f.duration);var g={frame:o,name:e[i].name,frameOpts:f,transitionOpts:d};i===e.length-1&amp;&amp;(g.onComplete=c(a,2),g.onInterrupt=u),n._frameQueue.push(g)}&quot;immediate&quot;===r.mode&amp;&amp;(n._lastFrameAt=-1/0),n._animationRaf||p()}}(y):(t.emit(&quot;plotly_animated&quot;),a())}))},r.addFrames=function(t,e,r){if(t=o.getGraphDiv(t),null==e)return Promise.resolve();if(!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t+&quot;. It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/&quot;);var n,i,a,s,l=t._transitionData._frames,u=t._transitionData._frameHash;if(!Array.isArray(e))throw new Error(&quot;addFrames failure: frameList must be an Array of frame definitions&quot;+e);var f=l.length+2*e.length,p=[],d={};for(n=e.length-1;n&gt;=0;n--)if(o.isPlainObject(e[n])){var g=e[n].name,m=(u[g]||d[g]||{}).name,v=e[n].name,y=u[m]||d[m];m&amp;&amp;v&amp;&amp;&quot;number&quot;==typeof v&amp;&amp;y&amp;&amp;S&lt;5&amp;&amp;(S++,o.warn('addFrames: overwriting frame &quot;'+(u[m]||d[m]).name+'&quot; with a frame whose name of type &quot;number&quot; also equates to &quot;'+m+'&quot;. This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===S&amp;&amp;o.warn(&quot;addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.&quot;)),d[g]={name:g},p.push({frame:h.supplyFrameDefaults(e[n]),index:r&amp;&amp;void 0!==r[n]&amp;&amp;null!==r[n]?r[n]:f+n})}p.sort((function(t,e){return t.index&gt;e.index?-1:t.index&lt;e.index?1:0}));var x=[],b=[],_=l.length;for(n=p.length-1;n&gt;=0;n--){if(&quot;number&quot;==typeof(i=p[n].frame).name&amp;&amp;o.warn(&quot;Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings&quot;),!i.name)for(;u[i.name=&quot;frame &quot;+t._transitionData._counter++];);if(u[i.name]){for(a=0;a&lt;l.length&amp;&amp;(l[a]||{}).name!==i.name;a++);x.push({type:&quot;replace&quot;,index:a,value:i}),b.unshift({type:&quot;replace&quot;,index:a,value:l[a]})}else s=Math.max(0,Math.min(p[n].index,_)),x.push({type:&quot;insert&quot;,index:s,value:i}),b.unshift({type:&quot;delete&quot;,index:s}),_++}var w=h.modifyFrames,T=h.modifyFrames,k=[t,b],M=[t,x];return c&amp;&amp;c.add(t,w,k,T,M),h.modifyFrames(t,x)},r.deleteFrames=function(t,e){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t);var r,n,i=t._transitionData._frames,a=[],s=[];if(!e)for(e=[],r=0;r&lt;i.length;r++)e.push(r);for((e=e.slice()).sort(),r=e.length-1;r&gt;=0;r--)n=e[r],a.push({type:&quot;delete&quot;,index:n}),s.unshift({type:&quot;insert&quot;,index:n,value:i[n]});var l=h.modifyFrames,u=h.modifyFrames,f=[t,s],p=[t,a];return c&amp;&amp;c.add(t,l,f,u,p),h.modifyFrames(t,a)},r.addTraces=function t(e,n,i){e=o.getGraphDiv(e);var a,s,l=[],u=r.deleteTraces,f=t,h=[e,l],p=[e,n];for(function(t,e,r){var n,i;if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array.&quot;);if(&quot;undefined&quot;==typeof e)throw new Error(&quot;traces must be defined.&quot;);for(Array.isArray(e)||(e=[e]),n=0;n&lt;e.length;n++)if(&quot;object&quot;!=typeof(i=e[n])||Array.isArray(i)||null===i)throw new Error(&quot;all values in traces array must be non-array objects&quot;);if(&quot;undefined&quot;==typeof r||Array.isArray(r)||(r=[r]),&quot;undefined&quot;!=typeof r&amp;&amp;r.length!==e.length)throw new Error(&quot;if indices is specified, traces.length must equal indices.length&quot;)}(e,n,i),Array.isArray(n)||(n=[n]),n=n.map((function(t){return o.extendFlat({},t)})),T.cleanData(n),a=0;a&lt;n.length;a++)e.data.push(n[a]);for(a=0;a&lt;n.length;a++)l.push(-n.length+a);if(&quot;undefined&quot;==typeof i)return s=r.redraw(e),c.add(e,u,h,f,p),s;Array.isArray(i)||(i=[i]);try{O(e,l,i)}catch(t){throw e.data.splice(e.data.length-n.length,n.length),t}return c.startSequence(e),c.add(e,u,h,f,p),s=r.moveTraces(e,l,i),c.stopSequence(e),s},r.deleteTraces=function t(e,n){e=o.getGraphDiv(e);var i,a,s=[],l=r.addTraces,u=t,f=[e,s,n],h=[e,n];if(&quot;undefined&quot;==typeof n)throw new Error(&quot;indices must be an integer or array of integers.&quot;);for(Array.isArray(n)||(n=[n]),z(e,n,&quot;indices&quot;),(n=P(n,e.data.length-1)).sort(o.sorterDes),i=0;i&lt;n.length;i+=1)a=e.data.splice(n[i],1)[0],s.push(a);var p=r.redraw(e);return c.add(e,l,f,u,h),p},r.extendTraces=function t(e,n,i,a){function s(t,e,r){var n,i;if(o.isTypedArray(t))if(r&lt;0){var a=new t.constructor(0),s=R(t,e);r&lt;0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r&lt;e.length){var l=e.length-r;n.set(e.subarray(l)),i.set(t),i.set(e.subarray(0,l),t.length)}else{var c=r-e.length,u=t.length-c;n.set(t.subarray(u)),n.set(e,c),i.set(t.subarray(0,u))}else n=t.concat(e),i=r&gt;=0&amp;&amp;r&lt;n.length?n.splice(0,n.length-r):[];return[n,i]}var l=D(e=o.getGraphDiv(e),n,i,a,s),u=r.redraw(e),f=[e,l.update,i,l.maxPoints];return c.add(e,r.prependTraces,f,t,arguments),u},r.moveTraces=function t(e,n,i){var a,s=[],l=[],u=t,f=t,h=[e=o.getGraphDiv(e),i,n],p=[e,n,i];if(O(e,n,i),n=Array.isArray(n)?n:[n],&quot;undefined&quot;==typeof i)for(i=[],a=0;a&lt;n.length;a++)i.push(-n.length+a);for(i=Array.isArray(i)?i:[i],n=P(n,e.data.length-1),i=P(i,e.data.length-1),a=0;a&lt;e.data.length;a++)-1===n.indexOf(a)&amp;&amp;s.push(e.data[a]);for(a=0;a&lt;n.length;a++)l.push({newIndex:i[a],trace:e.data[n[a]]});for(l.sort((function(t,e){return t.newIndex-e.newIndex})),a=0;a&lt;l.length;a+=1)s.splice(l[a].newIndex,0,l[a].trace);e.data=s;var d=r.redraw(e);return c.add(e,u,h,f,p),d},r.prependTraces=function t(e,n,i,a){function s(t,e,r){var n,i;if(o.isTypedArray(t))if(r&lt;=0){var a=new t.constructor(0),s=R(e,t);r&lt;0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r&lt;e.length){var l=e.length-r;n.set(e.subarray(0,l)),i.set(e.subarray(l)),i.set(t,l)}else{var c=r-e.length;n.set(e),n.set(t.subarray(0,c),e.length),i.set(t.subarray(c))}else n=e.concat(t),i=r&gt;=0&amp;&amp;r&lt;n.length?n.splice(r,n.length):[];return[n,i]}var l=D(e=o.getGraphDiv(e),n,i,a,s),u=r.redraw(e),f=[e,l.update,i,l.maxPoints];return c.add(e,r.extendTraces,f,t,arguments),u},r.newPlot=function(t,e,n,i){return t=o.getGraphDiv(t),h.cleanPlot([],{},t._fullData||[],t._fullLayout||{}),h.purge(t),r.plot(t,e,n,i)},r.plot=function(t,e,i,a){var s;if(t=o.getGraphDiv(t),l.init(t),o.isPlainObject(e)){var c=e;e=c.data,i=c.layout,a=c.config,s=c.frames}if(!1===l.triggerHandler(t,&quot;plotly_beforeplot&quot;,[e,i,a]))return Promise.reject();e||i||o.isPlotDiv(t)||o.warn(&quot;Calling Plotly.plot as if redrawing but this container doesn't yet have a plot.&quot;,t),I(t,a),i||(i={}),n.select(t).classed(&quot;js-plotly-plot&quot;,!0),g.makeTester(),Array.isArray(t._promises)||(t._promises=[]);var f=0===(t.data||[]).length&amp;&amp;Array.isArray(e);Array.isArray(e)&amp;&amp;(T.cleanData(e),f?t.data=e:t.data.push.apply(t.data,e),t.empty=!1),t.layout&amp;&amp;!f||(t.layout=T.cleanLayout(i)),h.supplyDefaults(t);var m=t._fullLayout,y=m._has(&quot;cartesian&quot;);if(!m._has(&quot;polar&quot;)&amp;&amp;e&amp;&amp;e[0]&amp;&amp;e[0].r)return o.log(&quot;Legacy polar charts are deprecated!&quot;),function(t,e,r){var i=n.select(t).selectAll(&quot;.plot-container&quot;).data([0]);i.enter().insert(&quot;div&quot;,&quot;:first-child&quot;).classed(&quot;plot-container plotly&quot;,!0);var a=i.selectAll(&quot;.svg-container&quot;).data([0]);a.enter().append(&quot;div&quot;).classed(&quot;svg-container&quot;,!0).style(&quot;position&quot;,&quot;relative&quot;),a.html(&quot;&quot;),e&amp;&amp;(t.data=e);r&amp;&amp;(t.layout=r);p.manager.fillLayout(t),a.style({width:t._fullLayout.width+&quot;px&quot;,height:t._fullLayout.height+&quot;px&quot;}),t.framework=p.manager.framework(t),t.framework({data:t.data,layout:t.layout},a.node()),t.framework.setUndoPoint();var s=t.framework.svg(),l=1,c=t._fullLayout.title?t._fullLayout.title.text:&quot;&quot;;&quot;&quot;!==c&amp;&amp;c||(l=0);var u=function(){this.call(x.convertToTspans,t)},f=s.select(&quot;.title-group text&quot;).call(u);if(t._context.edits.titleText){var d=o._(t,&quot;Click to enter Plot title&quot;);c&amp;&amp;c!==d||(l=.2,f.attr({&quot;data-unformatted&quot;:d}).text(d).style({opacity:l}).on(&quot;mouseover.opacity&quot;,(function(){n.select(this).transition().duration(100).style(&quot;opacity&quot;,1)})).on(&quot;mouseout.opacity&quot;,(function(){n.select(this).transition().duration(1e3).style(&quot;opacity&quot;,0)})));var g=function(){this.call(x.makeEditable,{gd:t}).on(&quot;edit&quot;,(function(e){t.framework({layout:{title:{text:e}}}),this.text(e).call(u),this.call(g)})).on(&quot;cancel&quot;,(function(){var t=this.attr(&quot;data-unformatted&quot;);this.text(t).call(u)}))};f.call(g)}return t._context.setBackground(t,t._fullLayout.paper_bgcolor),h.addLinks(t),Promise.resolve()}(t,e,i);m._replotting=!0,(f||m._shouldCreateBgLayer)&amp;&amp;(lt(t),m._shouldCreateBgLayer&amp;&amp;delete m._shouldCreateBgLayer),t.framework!==lt&amp;&amp;(t.framework=lt,lt(t)),g.initGradients(t),f&amp;&amp;d.saveShowSpikeInitial(t);var b=!t.calcdata||t.calcdata.length!==(t._fullData||[]).length;b&amp;&amp;h.doCalcdata(t);for(var _=0;_&lt;t.calcdata.length;_++)t.calcdata[_][0].trace=t._fullData[_];t._context.responsive?t._responsiveChartHandler||(t._responsiveChartHandler=function(){o.isHidden(t)||h.resize(t)},window.addEventListener(&quot;resize&quot;,t._responsiveChartHandler)):o.clearResponsive(t);var w=o.extendFlat({},m._size),M=0;function A(){if(h.clearAutoMarginIds(t),k.drawMarginPushers(t),d.allowAutoMargin(t),m._has(&quot;pie&quot;))for(var e=t._fullData,r=0;r&lt;e.length;r++){var n=e[r];&quot;pie&quot;===n.type&amp;&amp;n.automargin&amp;&amp;h.allowAutoMargin(t,&quot;pie.&quot;+n.uid+&quot;.automargin&quot;)}return h.doAutoMargin(t),h.previousPromises(t)}function S(){t._transitioning||(k.doAutoRangeAndConstraints(t),f&amp;&amp;d.saveRangeInitial(t),u.getComponentMethod(&quot;rangeslider&quot;,&quot;calcAutorange&quot;)(t))}var C=[h.previousPromises,function(){if(s)return r.addFrames(t,s)},function e(){for(var r=m._basePlotModules,n=0;n&lt;r.length;n++)r[n].drawFramework&amp;&amp;r[n].drawFramework(t);if(!m._glcanvas&amp;&amp;m._has(&quot;gl&quot;)&amp;&amp;(m._glcanvas=m._glcontainer.selectAll(&quot;.gl-canvas&quot;).data([{key:&quot;contextLayer&quot;,context:!0,pick:!1},{key:&quot;focusLayer&quot;,context:!1,pick:!1},{key:&quot;pickLayer&quot;,context:!1,pick:!0}],(function(t){return t.key})),m._glcanvas.enter().append(&quot;canvas&quot;).attr(&quot;class&quot;,(function(t){return&quot;gl-canvas gl-canvas-&quot;+t.key.replace(&quot;Layer&quot;,&quot;&quot;)})).style({position:&quot;absolute&quot;,top:0,left:0,overflow:&quot;visible&quot;,&quot;pointer-events&quot;:&quot;none&quot;})),m._glcanvas){m._glcanvas.attr(&quot;width&quot;,m.width).attr(&quot;height&quot;,m.height);var i=m._glcanvas.data()[0].regl;if(i&amp;&amp;(Math.floor(m.width)!==i._gl.drawingBufferWidth||Math.floor(m.height)!==i._gl.drawingBufferHeight)){var a=&quot;WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.&quot;;if(!M)return o.log(a+&quot; Clearing graph and plotting again.&quot;),h.cleanPlot([],{},t._fullData,m),h.supplyDefaults(t),m=t._fullLayout,h.doCalcdata(t),M++,e();o.error(a)}}return&quot;h&quot;===m.modebar.orientation?m._modebardiv.style(&quot;height&quot;,null).style(&quot;width&quot;,&quot;100%&quot;):m._modebardiv.style(&quot;width&quot;,null).style(&quot;height&quot;,m.height+&quot;px&quot;),h.previousPromises(t)},A,function(){if(h.didMarginChange(w,m._size))return o.syncOrAsync([A,k.layoutStyles],t)}];y&amp;&amp;C.push((function(){if(b)return o.syncOrAsync([u.getComponentMethod(&quot;shapes&quot;,&quot;calcAutorange&quot;),u.getComponentMethod(&quot;annotations&quot;,&quot;calcAutorange&quot;),S],t);S()})),C.push(k.layoutStyles),y&amp;&amp;C.push((function(){return d.draw(t,f?&quot;&quot;:&quot;redraw&quot;)}),(function(t){t._fullLayout._insideTickLabelsAutorange&amp;&amp;q(t,t._fullLayout._insideTickLabelsAutorange).then((function(){t._fullLayout._insideTickLabelsAutorange=void 0}))})),C.push(k.drawData,k.finalDraw,v,h.addLinks,h.rehover,h.redrag,h.doAutoMargin,(function(t){t._fullLayout._insideTickLabelsAutorange&amp;&amp;f&amp;&amp;d.saveRangeInitial(t,!0)}),h.previousPromises);var L=o.syncOrAsync(C,t);return L&amp;&amp;L.then||(L=Promise.resolve()),L.then((function(){return E(t),t}))},r.purge=function(t){var e=(t=o.getGraphDiv(t))._fullLayout||{},r=t._fullData||[];return h.cleanPlot([],{},r,e),h.purge(t),l.purge(t),e._container&amp;&amp;e._container.remove(),delete t._context,t},r.react=function(t,e,n,i){var a,l;t=o.getGraphDiv(t),T.clearPromiseQueue(t);var c=t._fullData,p=t._fullLayout;if(o.isPlotDiv(t)&amp;&amp;c&amp;&amp;p){if(o.isPlainObject(e)){var d=e;e=d.data,n=d.layout,i=d.config,a=d.frames}var g=!1;if(i){var m=o.extendDeep({},t._context);t._context=void 0,I(t,i),g=function t(e,r){var n;for(n in e)if(&quot;_&quot;!==n.charAt(0)){var i=e[n],a=r[n];if(i!==a)if(o.isPlainObject(i)&amp;&amp;o.isPlainObject(a)){if(t(i,a))return!0}else{if(!Array.isArray(i)||!Array.isArray(a))return!0;if(i.length!==a.length)return!0;for(var s=0;s&lt;i.length;s++)if(i[s]!==a[s]){if(!o.isPlainObject(i[s])||!o.isPlainObject(a[s]))return!0;if(t(i[s],a[s]))return!0}}}}(m,t._context)}t.data=e||[],T.cleanData(t.data),t.layout=n||{},T.cleanLayout(t.layout),function(t,e,r,n){var i,a,l,c,u,f,h,p,d=n._preGUI,g=[],m={};for(i in d){if(u=et(i,$)){if(a=u.attr||u.head+&quot;.uirevision&quot;,(c=(l=s(n,a).get())&amp;&amp;rt(a,e))&amp;&amp;c===l&amp;&amp;(null===(f=d[i])&amp;&amp;(f=void 0),at(p=(h=s(e,i)).get(),f))){void 0===p&amp;&amp;&quot;autorange&quot;===i.substr(i.length-9)&amp;&amp;g.push(i.substr(0,i.length-10)),h.set(B(s(n,i).get()));continue}}else o.warn(&quot;unrecognized GUI edit: &quot;+i);delete d[i],&quot;range[&quot;===i.substr(i.length-8,6)&amp;&amp;(m[i.substr(0,i.length-9)]=1)}for(var v=0;v&lt;g.length;v++){var y=g[v];if(m[y]){var x=s(e,y).get();x&amp;&amp;delete x.autorange}}var b=n._tracePreGUI;for(var _ in b){var w,T=b[_],k=null;for(i in T){if(!k){var M=nt(_,r);if(M&lt;0){delete b[_];break}var A=it(_,t,(w=r[M]._fullInput).index);if(A&lt;0){delete b[_];break}k=t[A]}if(u=et(i,tt)){if(u.attr?c=(l=s(n,u.attr).get())&amp;&amp;rt(u.attr,e):(l=w.uirevision,void 0===(c=k.uirevision)&amp;&amp;(c=e.uirevision)),c&amp;&amp;c===l&amp;&amp;(null===(f=T[i])&amp;&amp;(f=void 0),at(p=(h=s(k,i)).get(),f))){h.set(B(s(w,i).get()));continue}}else o.warn(&quot;unrecognized GUI edit: &quot;+i+&quot; in trace uid &quot;+_);delete T[i]}}}(t.data,t.layout,c,p),h.supplyDefaults(t,{skipUpdateCalc:!0});var v=t._fullData,y=t._fullLayout,x=void 0===y.datarevision,b=y.transition,_=function(t,e,r,n,i){var a=M.layoutFlags();function o(t){return f.getLayoutValObject(r,t)}a.arrays={},a.rangesAltered={},a.nChanges=0,a.nChangesAnim=0,ot(e,r,[],{getValObject:o,flags:a,immutable:n,transition:i,gd:t}),(a.plot||a.calc)&amp;&amp;(a.layoutReplot=!0);i&amp;&amp;a.nChanges&amp;&amp;a.nChangesAnim&amp;&amp;(a.anim=a.nChanges===a.nChangesAnim?&quot;all&quot;:&quot;some&quot;);return a}(t,p,y,x,b),w=_.newDataRevision,A=function(t,e,r,n,i,a){var o=e.length===r.length;if(!i&amp;&amp;!o)return{fullReplot:!0,calc:!0};var s,l,c=M.traceFlags();c.arrays={},c.nChanges=0,c.nChangesAnim=0;var u={getValObject:function(t){var e=f.getTraceValObject(l,t);return!l._module.animatable&amp;&amp;e.anim&amp;&amp;(e.anim=!1),e},flags:c,immutable:n,transition:i,newDataRevision:a,gd:t},p={};for(s=0;s&lt;e.length;s++)if(r[s]){if(l=r[s]._fullInput,h.hasMakesDataTransform(l)&amp;&amp;(l=r[s]),p[l.uid])continue;p[l.uid]=1,ot(e[s]._fullInput,l,[],u)}(c.calc||c.plot)&amp;&amp;(c.fullReplot=!0);i&amp;&amp;c.nChanges&amp;&amp;c.nChangesAnim&amp;&amp;(c.anim=c.nChanges===c.nChangesAnim&amp;&amp;o?&quot;all&quot;:&quot;some&quot;);return c}(t,c,v,x,b,w);if(J(t)&amp;&amp;(_.layoutReplot=!0),A.calc||_.calc){t.calcdata=void 0;for(var S=Object.getOwnPropertyNames(y),C=0;C&lt;S.length;C++){var L=S[C],P=L.substring(0,5);if(&quot;xaxis&quot;===P||&quot;yaxis&quot;===P){var z=y[L]._emptyCategories;z&amp;&amp;z()}}}else h.supplyDefaultsUpdateCalc(t.calcdata,v);var O=[];if(a&amp;&amp;(t._transitionData={},h.createTransitionData(t),O.push((function(){return r.addFrames(t,a)}))),y.transition&amp;&amp;!g&amp;&amp;(A.anim||_.anim))_.ticks&amp;&amp;O.push(k.doTicksRelayout),h.doCalcdata(t),k.doAutoRangeAndConstraints(t),O.push((function(){return h.transitionFromReact(t,A,_,p)}));else if(A.fullReplot||_.layoutReplot||g)t._fullLayout._skipDefaults=!0,O.push(r.plot);else{for(var D in _.arrays){var R=_.arrays[D];if(R.length){var F=u.getComponentMethod(D,&quot;drawOne&quot;);if(F!==o.noop)for(var N=0;N&lt;R.length;N++)F(t,R[N]);else{var j=u.getComponentMethod(D,&quot;draw&quot;);if(j===o.noop)throw new Error(&quot;cannot draw components: &quot;+D);j(t)}}}O.push(h.previousPromises),A.style&amp;&amp;O.push(k.doTraceStyle),(A.colorbars||_.colorbars)&amp;&amp;O.push(k.doColorBars),_.legend&amp;&amp;O.push(k.doLegend),_.layoutstyle&amp;&amp;O.push(k.layoutStyles),_.axrange&amp;&amp;G(O),_.ticks&amp;&amp;O.push(k.doTicksRelayout),_.modebar&amp;&amp;O.push(k.doModeBar),_.camera&amp;&amp;O.push(k.doCamera),O.push(E)}O.push(h.rehover,h.redrag),(l=o.syncOrAsync(O,t))&amp;&amp;l.then||(l=Promise.resolve(t))}else l=r.newPlot(t,e,n,i);return l.then((function(){return t.emit(&quot;plotly_react&quot;,{data:e,layout:n}),t}))},r.redraw=function(t){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t);return T.cleanData(t.data),T.cleanLayout(t.layout),t.calcdata=void 0,r.plot(t).then((function(){return t.emit(&quot;plotly_redraw&quot;),t}))},r.relayout=q,r.restyle=F,r.setPlotConfig=function(t){return o.extendFlat(_,t)},r.update=K,r._guiRelayout=Q(q),r._guiRestyle=Q(F),r._guiUpdate=Q(K),r._storeDirectGUIEdit=function(t,e,r){for(var n in r){j(n,s(t,n).get(),r[n],e)}}},{&quot;../components/color&quot;:643,&quot;../components/drawing&quot;:665,&quot;../constants/xmlns_namespaces&quot;:754,&quot;../lib&quot;:778,&quot;../lib/events&quot;:767,&quot;../lib/queue&quot;:794,&quot;../lib/svg_text_utils&quot;:803,&quot;../plots/cartesian/axes&quot;:828,&quot;../plots/cartesian/constants&quot;:834,&quot;../plots/cartesian/graph_interact&quot;:837,&quot;../plots/cartesian/select&quot;:847,&quot;../plots/plots&quot;:891,&quot;../plots/polar/legacy&quot;:899,&quot;../registry&quot;:911,&quot;./edit_types&quot;:810,&quot;./helpers&quot;:811,&quot;./manage_arrays&quot;:813,&quot;./plot_config&quot;:815,&quot;./plot_schema&quot;:816,&quot;./subroutines&quot;:818,d3:169,&quot;fast-isnumeric&quot;:241,&quot;has-hover&quot;:440}],815:[function(t,e,r){&quot;use strict&quot;;var n={staticPlot:{valType:&quot;boolean&quot;,dflt:!1},plotlyServerURL:{valType:&quot;string&quot;,dflt:&quot;&quot;},editable:{valType:&quot;boolean&quot;,dflt:!1},edits:{annotationPosition:{valType:&quot;boolean&quot;,dflt:!1},annotationTail:{valType:&quot;boolean&quot;,dflt:!1},annotationText:{valType:&quot;boolean&quot;,dflt:!1},axisTitleText:{valType:&quot;boolean&quot;,dflt:!1},colorbarPosition:{valType:&quot;boolean&quot;,dflt:!1},colorbarTitleText:{valType:&quot;boolean&quot;,dflt:!1},legendPosition:{valType:&quot;boolean&quot;,dflt:!1},legendText:{valType:&quot;boolean&quot;,dflt:!1},shapePosition:{valType:&quot;boolean&quot;,dflt:!1},titleText:{valType:&quot;boolean&quot;,dflt:!1}},autosizable:{valType:&quot;boolean&quot;,dflt:!1},responsive:{valType:&quot;boolean&quot;,dflt:!1},fillFrame:{valType:&quot;boolean&quot;,dflt:!1},frameMargins:{valType:&quot;number&quot;,dflt:0,min:0,max:.5},scrollZoom:{valType:&quot;flaglist&quot;,flags:[&quot;cartesian&quot;,&quot;gl3d&quot;,&quot;geo&quot;,&quot;mapbox&quot;],extras:[!0,!1],dflt:&quot;gl3d+geo+mapbox&quot;},doubleClick:{valType:&quot;enumerated&quot;,values:[!1,&quot;reset&quot;,&quot;autosize&quot;,&quot;reset+autosize&quot;],dflt:&quot;reset+autosize&quot;},doubleClickDelay:{valType:&quot;number&quot;,dflt:300,min:0},showAxisDragHandles:{valType:&quot;boolean&quot;,dflt:!0},showAxisRangeEntryBoxes:{valType:&quot;boolean&quot;,dflt:!0},showTips:{valType:&quot;boolean&quot;,dflt:!0},showLink:{valType:&quot;boolean&quot;,dflt:!1},linkText:{valType:&quot;string&quot;,dflt:&quot;Edit chart&quot;,noBlank:!0},sendData:{valType:&quot;boolean&quot;,dflt:!0},showSources:{valType:&quot;any&quot;,dflt:!1},displayModeBar:{valType:&quot;enumerated&quot;,values:[&quot;hover&quot;,!0,!1],dflt:&quot;hover&quot;},showSendToCloud:{valType:&quot;boolean&quot;,dflt:!1},showEditInChartStudio:{valType:&quot;boolean&quot;,dflt:!1},modeBarButtonsToRemove:{valType:&quot;any&quot;,dflt:[]},modeBarButtonsToAdd:{valType:&quot;any&quot;,dflt:[]},modeBarButtons:{valType:&quot;any&quot;,dflt:!1},toImageButtonOptions:{valType:&quot;any&quot;,dflt:{}},displaylogo:{valType:&quot;boolean&quot;,dflt:!0},watermark:{valType:&quot;boolean&quot;,dflt:!1},plotGlPixelRatio:{valType:&quot;number&quot;,dflt:2,min:1,max:4},setBackground:{valType:&quot;any&quot;,dflt:&quot;transparent&quot;},topojsonURL:{valType:&quot;string&quot;,noBlank:!0,dflt:&quot;https://cdn.plot.ly/&quot;},mapboxAccessToken:{valType:&quot;string&quot;,dflt:null},logging:{valType:&quot;integer&quot;,min:0,max:2,dflt:1},notifyOnLogging:{valType:&quot;integer&quot;,min:0,max:2,dflt:0},queueLength:{valType:&quot;integer&quot;,min:0,dflt:0},globalTransforms:{valType:&quot;any&quot;,dflt:[]},locale:{valType:&quot;string&quot;,dflt:&quot;en-US&quot;},locales:{valType:&quot;any&quot;,dflt:{}}},i={};!function t(e,r){for(var n in e){var i=e[n];i.valType?r[n]=i.dflt:(r[n]||(r[n]={}),t(i,r[n]))}}(n,i),e.exports={configAttributes:n,dfltConfig:i}},{}],816:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../plots/attributes&quot;),o=t(&quot;../plots/layout_attributes&quot;),s=t(&quot;../plots/frame_attributes&quot;),l=t(&quot;../plots/animation_attributes&quot;),c=t(&quot;./plot_config&quot;).configAttributes,u=t(&quot;../plots/polar/legacy/area_attributes&quot;),f=t(&quot;../plots/polar/legacy/axis_attributes&quot;),h=t(&quot;./edit_types&quot;),p=i.extendFlat,d=i.extendDeepAll,g=i.isPlainObject,m=i.isArrayOrTypedArray,v=i.nestedProperty,y=i.valObjectMeta,x=[&quot;_isSubplotObj&quot;,&quot;_isLinkedToArray&quot;,&quot;_arrayAttrRegexps&quot;,&quot;_deprecated&quot;];function b(t,e,r){if(!t)return!1;if(t._isLinkedToArray)if(_(e[r]))r++;else if(r&lt;e.length)return!1;for(;r&lt;e.length;r++){var n=t[e[r]];if(!g(n))break;if(t=n,r===e.length-1)break;if(t._isLinkedToArray){if(!_(e[++r]))return!1}else if(&quot;info_array&quot;===t.valType){var i=e[++r];if(!_(i))return!1;var a=t.items;if(Array.isArray(a)){if(i&gt;=a.length)return!1;if(2===t.dimensions){if(r++,e.length===r)return t;var o=e[r];if(!_(o))return!1;t=a[i][o]}else t=a[i]}else t=a}}return t}function _(t){return t===Math.round(t)&amp;&amp;t&gt;=0}function w(){var t,e,r={};for(t in d(r,o),n.subplotsRegistry){if((e=n.subplotsRegistry[t]).layoutAttributes)if(Array.isArray(e.attr))for(var i=0;i&lt;e.attr.length;i++)M(r,e,e.attr[i]);else M(r,e,&quot;subplot&quot;===e.attr?e.name:e.attr)}for(t in r=function(t){return p(t,{radialaxis:f.radialaxis,angularaxis:f.angularaxis}),p(t,f.layout),t}(r),n.componentsRegistry){var a=(e=n.componentsRegistry[t]).schema;if(a&amp;&amp;(a.subplots||a.layout)){var s=a.subplots;if(s&amp;&amp;s.xaxis&amp;&amp;!s.yaxis)for(var l in s.xaxis)delete r.yaxis[l]}else&quot;colorscale&quot;===e.name?d(r,e.layoutAttributes):e.layoutAttributes&amp;&amp;A(r,e.layoutAttributes,e.name)}return{layoutAttributes:k(r)}}function T(){var t={frames:d({},s)};return k(t),t.frames}function k(t){return function(t){r.crawl(t,(function(t,e,n){r.isValObject(t)?&quot;data_array&quot;===t.valType?(t.role=&quot;data&quot;,n[e+&quot;src&quot;]={valType:&quot;string&quot;,editType:&quot;none&quot;}):!0===t.arrayOk&amp;&amp;(n[e+&quot;src&quot;]={valType:&quot;string&quot;,editType:&quot;none&quot;}):g(t)&amp;&amp;(t.role=&quot;object&quot;)}))}(t),function(t){r.crawl(t,(function(t,e,r){if(t){var n=t._isLinkedToArray;n&amp;&amp;(delete t._isLinkedToArray,r[e]={items:{}},r[e].items[n]=t,r[e].role=&quot;object&quot;)}}))}(t),function(t){!function t(e){for(var r in e)if(g(e[r]))t(e[r]);else if(Array.isArray(e[r]))for(var n=0;n&lt;e[r].length;n++)t(e[r][n]);else e[r]instanceof RegExp&amp;&amp;(e[r]=e[r].toString())}(t)}(t),t}function M(t,e,r){var n=v(t,r),i=d({},e.layoutAttributes);i._isSubplotObj=!0,n.set(i)}function A(t,e,r){var n=v(t,r);n.set(d(n.get()||{},e))}r.IS_SUBPLOT_OBJ=&quot;_isSubplotObj&quot;,r.IS_LINKED_TO_ARRAY=&quot;_isLinkedToArray&quot;,r.DEPRECATED=&quot;_deprecated&quot;,r.UNDERSCORE_ATTRS=x,r.get=function(){var t={};n.allTypes.concat(&quot;area&quot;).forEach((function(e){t[e]=function(t){var e,i;&quot;area&quot;===t?(e={attributes:u},i={}):(e=n.modules[t]._module,i=e.basePlotModule);var o={type:null},s=d({},a),l=d({},e.attributes);r.crawl(l,(function(t,e,r,n,i){v(s,i).set(void 0),void 0===t&amp;&amp;v(l,i).set(void 0)})),d(o,s),n.traceIs(t,&quot;noOpacity&quot;)&amp;&amp;delete o.opacity;n.traceIs(t,&quot;showLegend&quot;)||(delete o.showlegend,delete o.legendgroup);n.traceIs(t,&quot;noHover&quot;)&amp;&amp;(delete o.hoverinfo,delete o.hoverlabel);e.selectPoints||delete o.selectedpoints;d(o,l),i.attributes&amp;&amp;d(o,i.attributes);o.type=t;var c={meta:e.meta||{},categories:e.categories||{},animatable:Boolean(e.animatable),type:t,attributes:k(o)};if(e.layoutAttributes){var f={};d(f,e.layoutAttributes),c.layoutAttributes=k(f)}e.animatable||r.crawl(c,(function(t){r.isValObject(t)&amp;&amp;&quot;anim&quot;in t&amp;&amp;delete t.anim}));return c}(e)}));var e={};return Object.keys(n.transformsRegistry).forEach((function(t){e[t]=function(t){var e=n.transformsRegistry[t],r=d({},e.attributes);return Object.keys(n.componentsRegistry).forEach((function(e){var i=n.componentsRegistry[e];i.schema&amp;&amp;i.schema.transforms&amp;&amp;i.schema.transforms[t]&amp;&amp;Object.keys(i.schema.transforms[t]).forEach((function(e){A(r,i.schema.transforms[t][e],e)}))})),{attributes:k(r)}}(t)})),{defs:{valObjects:y,metaKeys:x.concat([&quot;description&quot;,&quot;role&quot;,&quot;editType&quot;,&quot;impliedEdits&quot;]),editType:{traces:h.traces,layout:h.layout},impliedEdits:{}},traces:t,layout:w(),transforms:e,frames:T(),animation:k(l),config:k(c)}},r.crawl=function(t,e,n,i){var a=n||0;i=i||&quot;&quot;,Object.keys(t).forEach((function(n){var o=t[n];if(-1===x.indexOf(n)){var s=(i?i+&quot;.&quot;:&quot;&quot;)+n;e(o,n,t,a,s),r.isValObject(o)||g(o)&amp;&amp;&quot;impliedEdits&quot;!==n&amp;&amp;r.crawl(o,e,a+1,s)}}))},r.isValObject=function(t){return t&amp;&amp;void 0!==t.valType},r.findArrayAttributes=function(t){var e,n,i=[],o=[],s=[];function l(t,r,a,l){o=o.slice(0,l).concat([r]),s=s.slice(0,l).concat([t&amp;&amp;t._isLinkedToArray]),t&amp;&amp;(&quot;data_array&quot;===t.valType||!0===t.arrayOk)&amp;&amp;!(&quot;colorbar&quot;===o[l-1]&amp;&amp;(&quot;ticktext&quot;===r||&quot;tickvals&quot;===r))&amp;&amp;function t(e,r,a){var l=e[o[r]],c=a+o[r];if(r===o.length-1)m(l)&amp;&amp;i.push(n+c);else if(s[r]){if(Array.isArray(l))for(var u=0;u&lt;l.length;u++)g(l[u])&amp;&amp;t(l[u],r+1,c+&quot;[&quot;+u+&quot;].&quot;)}else g(l)&amp;&amp;t(l,r+1,c+&quot;.&quot;)}(e,0,&quot;&quot;)}e=t,n=&quot;&quot;,r.crawl(a,l),t._module&amp;&amp;t._module.attributes&amp;&amp;r.crawl(t._module.attributes,l);var c=t.transforms;if(c)for(var u=0;u&lt;c.length;u++){var f=c[u],h=f._module;h&amp;&amp;(n=&quot;transforms[&quot;+u+&quot;].&quot;,e=f,r.crawl(h.attributes,l))}return i},r.getTraceValObject=function(t,e){var r,i,o=e[0],s=1;if(&quot;transforms&quot;===o){if(1===e.length)return a.transforms;var l=t.transforms;if(!Array.isArray(l)||!l.length)return!1;var c=e[1];if(!_(c)||c&gt;=l.length)return!1;i=(r=(n.transformsRegistry[l[c].type]||{}).attributes)&amp;&amp;r[e[2]],s=3}else if(&quot;area&quot;===t.type)i=u[o];else{var f=t._module;if(f||(f=(n.modules[t.type||a.type.dflt]||{})._module),!f)return!1;if(!(i=(r=f.attributes)&amp;&amp;r[o])){var h=f.basePlotModule;h&amp;&amp;h.attributes&amp;&amp;(i=h.attributes[o])}i||(i=a[o])}return b(i,e,s)},r.getLayoutValObject=function(t,e){return b(function(t,e){var r,i,a,s,l=t._basePlotModules;if(l){var c;for(r=0;r&lt;l.length;r++){if((a=l[r]).attrRegex&amp;&amp;a.attrRegex.test(e)){if(a.layoutAttrOverrides)return a.layoutAttrOverrides;!c&amp;&amp;a.layoutAttributes&amp;&amp;(c=a.layoutAttributes)}var u=a.baseLayoutAttrOverrides;if(u&amp;&amp;e in u)return u[e]}if(c)return c}var h=t._modules;if(h)for(r=0;r&lt;h.length;r++)if((s=h[r].layoutAttributes)&amp;&amp;e in s)return s[e];for(i in n.componentsRegistry){if(&quot;colorscale&quot;===(a=n.componentsRegistry[i]).name&amp;&amp;0===e.indexOf(&quot;coloraxis&quot;))return a.layoutAttributes[e];if(!a.schema&amp;&amp;e===a.name)return a.layoutAttributes}if(e in o)return o[e];if(&quot;radialaxis&quot;===e||&quot;angularaxis&quot;===e)return f[e];return f.layout[e]||!1}(t,e[0]),e,1)}},{&quot;../lib&quot;:778,&quot;../plots/animation_attributes&quot;:822,&quot;../plots/attributes&quot;:824,&quot;../plots/frame_attributes&quot;:857,&quot;../plots/layout_attributes&quot;:882,&quot;../plots/polar/legacy/area_attributes&quot;:897,&quot;../plots/polar/legacy/axis_attributes&quot;:898,&quot;../registry&quot;:911,&quot;./edit_types&quot;:810,&quot;./plot_config&quot;:815}],817:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/attributes&quot;),a={name:{valType:&quot;string&quot;,editType:&quot;none&quot;}};function o(t){return t&amp;&amp;&quot;string&quot;==typeof t}function s(t){var e=t.length-1;return&quot;s&quot;!==t.charAt(e)&amp;&amp;n.warn(&quot;bad argument to arrayDefaultKey: &quot;+t),t.substr(0,t.length-1)+&quot;defaults&quot;}a.templateitemname={valType:&quot;string&quot;,editType:&quot;calc&quot;},r.templatedArray=function(t,e){return e._isLinkedToArray=t,e.name=a.name,e.templateitemname=a.templateitemname,e},r.traceTemplater=function(t){var e,r,a={};for(e in t)r=t[e],Array.isArray(r)&amp;&amp;r.length&amp;&amp;(a[e]=0);return{newTrace:function(o){var s={type:e=n.coerce(o,{},i,&quot;type&quot;),_template:null};if(e in a){r=t[e];var l=a[e]%r.length;a[e]++,s._template=r[l]}return s}}},r.newContainer=function(t,e,r){var i=t._template,a=i&amp;&amp;(i[e]||r&amp;&amp;i[r]);return n.isPlainObject(a)||(a=null),t[e]={_template:a}},r.arrayTemplater=function(t,e,r){var n=t._template,i=n&amp;&amp;n[s(e)],a=n&amp;&amp;n[e];Array.isArray(a)&amp;&amp;a.length||(a=[]);var l={};return{newItem:function(t){var e={name:t.name,_input:t},n=e.templateitemname=t.templateitemname;if(!o(n))return e._template=i,e;for(var s=0;s&lt;a.length;s++){var c=a[s];if(c.name===n)return l[n]=1,e._template=c,e}return e[r]=t[r]||!1,e._template=!1,e},defaultItems:function(){for(var t=[],e=0;e&lt;a.length;e++){var r=a[e],n=r.name;if(o(n)&amp;&amp;!l[n]){var i={_template:r,name:n,_input:{_templateitemname:n}};i.templateitemname=r.templateitemname,t.push(i),l[n]=1}}return t}}},r.arrayDefaultKey=s,r.arrayEditor=function(t,e,r){var i=(n.nestedProperty(t,e).get()||[]).length,a=r._index,o=a&gt;=i&amp;&amp;(r._input||{})._templateitemname;o&amp;&amp;(a=i);var s,l=e+&quot;[&quot;+a+&quot;]&quot;;function c(){s={},o&amp;&amp;(s[l]={},s[l].templateitemname=o)}function u(t,e){o?n.nestedProperty(s[l],t).set(e):s[l+&quot;.&quot;+t]=e}function f(){var t=s;return c(),t}return c(),{modifyBase:function(t,e){s[t]=e},modifyItem:u,getUpdateObj:f,applyUpdate:function(e,r){e&amp;&amp;u(e,r);var i=f();for(var a in i)n.nestedProperty(t,a).set(i[a])}}}},{&quot;../lib&quot;:778,&quot;../plots/attributes&quot;:824}],818:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../registry&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../lib/clear_gl_canvases&quot;),l=t(&quot;../components/color&quot;),c=t(&quot;../components/drawing&quot;),u=t(&quot;../components/titles&quot;),f=t(&quot;../components/modebar&quot;),h=t(&quot;../plots/cartesian/axes&quot;),p=t(&quot;../constants/alignment&quot;),d=t(&quot;../plots/cartesian/constraints&quot;),g=d.enforce,m=d.clean,v=t(&quot;../plots/cartesian/autorange&quot;).doAutoRange;function y(t,e,r){for(var n=0;n&lt;r.length;n++){var i=r[n][0],a=r[n][1];if(!(i[0]&gt;=t[1]||i[1]&lt;=t[0])&amp;&amp;(a[0]&lt;e[1]&amp;&amp;a[1]&gt;e[0]))return!0}return!1}function x(t){var e,i,s,u,d,g,m=t._fullLayout,v=m._size,x=v.p,_=h.list(t,&quot;&quot;,!0);if(m._paperdiv.style({width:t._context.responsive&amp;&amp;m.autosize&amp;&amp;!t._context._hasZeroWidth&amp;&amp;!t.layout.width?&quot;100%&quot;:m.width+&quot;px&quot;,height:t._context.responsive&amp;&amp;m.autosize&amp;&amp;!t._context._hasZeroHeight&amp;&amp;!t.layout.height?&quot;100%&quot;:m.height+&quot;px&quot;}).selectAll(&quot;.main-svg&quot;).call(c.setSize,m.width,m.height),t._context.setBackground(t,m.paper_bgcolor),r.drawMainTitle(t),f.manage(t),!m._has(&quot;cartesian&quot;))return a.previousPromises(t);function T(t,e,r){var n=t._lw/2;return&quot;x&quot;===t._id.charAt(0)?e?&quot;top&quot;===r?e._offset-x-n:e._offset+e._length+x+n:v.t+v.h*(1-(t.position||0))+n%1:e?&quot;right&quot;===r?e._offset+e._length+x+n:e._offset-x-n:v.l+v.w*(t.position||0)+n%1}for(e=0;e&lt;_.length;e++){var k=(u=_[e])._anchorAxis;u._linepositions={},u._lw=c.crispRound(t,u.linewidth,1),u._mainLinePosition=T(u,k,u.side),u._mainMirrorPosition=u.mirror&amp;&amp;k?T(u,k,p.OPPOSITE_SIDE[u.side]):null}var M=[],A=[],S=[],E=1===l.opacity(m.paper_bgcolor)&amp;&amp;1===l.opacity(m.plot_bgcolor)&amp;&amp;m.paper_bgcolor===m.plot_bgcolor;for(i in m._plots)if((s=m._plots[i]).mainplot)s.bg&amp;&amp;s.bg.remove(),s.bg=void 0;else{var C=s.xaxis.domain,L=s.yaxis.domain,I=s.plotgroup;if(y(C,L,S)){var P=I.node(),z=s.bg=o.ensureSingle(I,&quot;rect&quot;,&quot;bg&quot;);P.insertBefore(z.node(),P.childNodes[0]),A.push(i)}else I.select(&quot;rect.bg&quot;).remove(),S.push([C,L]),E||(M.push(i),A.push(i))}var O,D,R,F,B,N,j,U,V,q,H,G,Y,W=m._bgLayer.selectAll(&quot;.bg&quot;).data(M);for(W.enter().append(&quot;rect&quot;).classed(&quot;bg&quot;,!0),W.exit().remove(),W.each((function(t){m._plots[t].bg=n.select(this)})),e=0;e&lt;A.length;e++)s=m._plots[A[e]],d=s.xaxis,g=s.yaxis,s.bg&amp;&amp;void 0!==d._offset&amp;&amp;void 0!==g._offset&amp;&amp;s.bg.call(c.setRect,d._offset-x,g._offset-x,d._length+2*x,g._length+2*x).call(l.fill,m.plot_bgcolor).style(&quot;stroke-width&quot;,0);if(!m._hasOnlyLargeSploms)for(i in m._plots){s=m._plots[i],d=s.xaxis,g=s.yaxis;var X,Z,J=s.clipId=&quot;clip&quot;+m._uid+i+&quot;plot&quot;,K=o.ensureSingleById(m._clips,&quot;clipPath&quot;,J,(function(t){t.classed(&quot;plotclip&quot;,!0).append(&quot;rect&quot;)}));s.clipRect=K.select(&quot;rect&quot;).attr({width:d._length,height:g._length}),c.setTranslate(s.plot,d._offset,g._offset),s._hasClipOnAxisFalse?(X=null,Z=J):(X=J,Z=null),c.setClipUrl(s.plot,X,t),s.layerClipId=Z}function Q(t){return&quot;M&quot;+O+&quot;,&quot;+t+&quot;H&quot;+D}function $(t){return&quot;M&quot;+d._offset+&quot;,&quot;+t+&quot;h&quot;+d._length}function tt(t){return&quot;M&quot;+t+&quot;,&quot;+U+&quot;V&quot;+j}function et(t){return&quot;M&quot;+t+&quot;,&quot;+g._offset+&quot;v&quot;+g._length}function rt(t,e,r){if(!t.showline||i!==t._mainSubplot)return&quot;&quot;;if(!t._anchorAxis)return r(t._mainLinePosition);var n=e(t._mainLinePosition);return t.mirror&amp;&amp;(n+=e(t._mainMirrorPosition)),n}for(i in m._plots){s=m._plots[i],d=s.xaxis,g=s.yaxis;var nt=&quot;M0,0&quot;;b(d,i)&amp;&amp;(B=w(d,&quot;left&quot;,g,_),O=d._offset-(B?x+B:0),N=w(d,&quot;right&quot;,g,_),D=d._offset+d._length+(N?x+N:0),R=T(d,g,&quot;bottom&quot;),F=T(d,g,&quot;top&quot;),!(Y=!d._anchorAxis||i!==d._mainSubplot)||&quot;allticks&quot;!==d.mirror&amp;&amp;&quot;all&quot;!==d.mirror||(d._linepositions[i]=[R,F]),nt=rt(d,Q,$),Y&amp;&amp;d.showline&amp;&amp;(&quot;all&quot;===d.mirror||&quot;allticks&quot;===d.mirror)&amp;&amp;(nt+=Q(R)+Q(F)),s.xlines.style(&quot;stroke-width&quot;,d._lw+&quot;px&quot;).call(l.stroke,d.showline?d.linecolor:&quot;rgba(0,0,0,0)&quot;)),s.xlines.attr(&quot;d&quot;,nt);var it=&quot;M0,0&quot;;b(g,i)&amp;&amp;(H=w(g,&quot;bottom&quot;,d,_),j=g._offset+g._length+(H?x:0),G=w(g,&quot;top&quot;,d,_),U=g._offset-(G?x:0),V=T(g,d,&quot;left&quot;),q=T(g,d,&quot;right&quot;),!(Y=!g._anchorAxis||i!==g._mainSubplot)||&quot;allticks&quot;!==g.mirror&amp;&amp;&quot;all&quot;!==g.mirror||(g._linepositions[i]=[V,q]),it=rt(g,tt,et),Y&amp;&amp;g.showline&amp;&amp;(&quot;all&quot;===g.mirror||&quot;allticks&quot;===g.mirror)&amp;&amp;(it+=tt(V)+tt(q)),s.ylines.style(&quot;stroke-width&quot;,g._lw+&quot;px&quot;).call(l.stroke,g.showline?g.linecolor:&quot;rgba(0,0,0,0)&quot;)),s.ylines.attr(&quot;d&quot;,it)}return h.makeClipPaths(t),a.previousPromises(t)}function b(t,e){return(t.ticks||t.showline)&amp;&amp;(e===t._mainSubplot||&quot;all&quot;===t.mirror||&quot;allticks&quot;===t.mirror)}function _(t,e,r){if(!r.showline||!r._lw)return!1;if(&quot;all&quot;===r.mirror||&quot;allticks&quot;===r.mirror)return!0;var n=r._anchorAxis;if(!n)return!1;var i=p.FROM_BL[e];return r.side===e?n.domain[i]===t.domain[i]:r.mirror&amp;&amp;n.domain[1-i]===t.domain[1-i]}function w(t,e,r,n){if(_(t,e,r))return r._lw;for(var i=0;i&lt;n.length;i++){var a=n[i];if(a._mainAxis===r._mainAxis&amp;&amp;_(t,e,a))return a._lw}return 0}function T(t,e){var r=t.title,n=t._size,i=0;switch(&quot;start&quot;===e?i=r.pad.l:&quot;end&quot;===e&amp;&amp;(i=-r.pad.r),r.xref){case&quot;paper&quot;:return n.l+n.w*r.x+i;case&quot;container&quot;:default:return t.width*r.x+i}}function k(t,e){var r=t.title,n=t._size,i=0;if(&quot;0em&quot;!==e&amp;&amp;e?e===p.CAP_SHIFT+&quot;em&quot;&amp;&amp;(i=r.pad.t):i=-r.pad.b,&quot;auto&quot;===r.y)return n.t/2;switch(r.yref){case&quot;paper&quot;:return n.t+n.h-n.h*r.y+i;case&quot;container&quot;:default:return t.height-t.height*r.y+i}}r.layoutStyles=function(t){return o.syncOrAsync([a.doAutoMargin,x],t)},r.drawMainTitle=function(t){var e=t._fullLayout,r=function(t){var e=t.title,r=&quot;middle&quot;;o.isRightAnchor(e)?r=&quot;end&quot;:o.isLeftAnchor(e)&amp;&amp;(r=&quot;start&quot;);return r}(e),n=function(t){var e=t.title,r=&quot;0em&quot;;o.isTopAnchor(e)?r=p.CAP_SHIFT+&quot;em&quot;:o.isMiddleAnchor(e)&amp;&amp;(r=p.MID_SHIFT+&quot;em&quot;);return r}(e);u.draw(t,&quot;gtitle&quot;,{propContainer:e,propName:&quot;title.text&quot;,placeholder:e._dfltTitle.plot,attributes:{x:T(e,r),y:k(e,n),&quot;text-anchor&quot;:r,dy:n}})},r.doTraceStyle=function(t){var e,n=t.calcdata,o=[];for(e=0;e&lt;n.length;e++){var l=n[e],c=l[0]||{},u=c.trace||{},f=u._module||{},h=f.arraysToCalcdata;h&amp;&amp;h(l,u);var p=f.editStyle;p&amp;&amp;o.push({fn:p,cd0:c})}if(o.length){for(e=0;e&lt;o.length;e++){var d=o[e];d.fn(t,d.cd0)}s(t),r.redrawReglTraces(t)}return a.style(t),i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.doColorBars=function(t){return i.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.layoutReplot=function(t){var e=t.layout;return t.layout=void 0,i.call(&quot;plot&quot;,t,&quot;&quot;,e)},r.doLegend=function(t){return i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.doTicksRelayout=function(t){return h.draw(t,&quot;redraw&quot;),t._fullLayout._hasOnlyLargeSploms&amp;&amp;(i.subplotsRegistry.splom.updateGrid(t),s(t),r.redrawReglTraces(t)),r.drawMainTitle(t),a.previousPromises(t)},r.doModeBar=function(t){var e=t._fullLayout;f.manage(t);for(var r=0;r&lt;e._basePlotModules.length;r++){var n=e._basePlotModules[r].updateFx;n&amp;&amp;n(t)}return a.previousPromises(t)},r.doCamera=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n&lt;r.length;n++){var i=e[r[n]];i._scene.setViewport(i)}},r.drawData=function(t){var e=t._fullLayout;s(t);for(var n=e._basePlotModules,o=0;o&lt;n.length;o++)n[o].plot(t);return r.redrawReglTraces(t),a.style(t),i.getComponentMethod(&quot;shapes&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;annotations&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;images&quot;,&quot;draw&quot;)(t),e._replotting=!1,a.previousPromises(t)},r.redrawReglTraces=function(t){var e=t._fullLayout;if(e._has(&quot;regl&quot;)){var r,n,i=t._fullData,a=[],s=[];for(e._hasOnlyLargeSploms&amp;&amp;e._splomGrid.draw(),r=0;r&lt;i.length;r++){var l=i[r];!0===l.visible&amp;&amp;0!==l._length&amp;&amp;(&quot;splom&quot;===l.type?e._splomScenes[l.uid].draw():&quot;scattergl&quot;===l.type?o.pushUnique(a,l.xaxis+l.yaxis):&quot;scatterpolargl&quot;===l.type&amp;&amp;o.pushUnique(s,l.subplot))}for(r=0;r&lt;a.length;r++)(n=e._plots[a[r]])._scene&amp;&amp;n._scene.draw();for(r=0;r&lt;s.length;r++)(n=e[s[r]]._subplot)._scene&amp;&amp;n._scene.draw()}},r.doAutoRangeAndConstraints=function(t){for(var e,r=h.list(t,&quot;&quot;,!0),n={},i=0;i&lt;r.length;i++)if(!n[(e=r[i])._id]){n[e._id]=1,m(t,e),v(t,e);var a=e._matchGroup;if(a)for(var o in a){var s=h.getFromId(t,o);v(t,s,e.range),n[o]=1}}g(t)},r.finalDraw=function(t){i.getComponentMethod(&quot;rangeslider&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;rangeselector&quot;,&quot;draw&quot;)(t)},r.drawMarginPushers=function(t){i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;rangeselector&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;sliders&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;updatemenus&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t)}},{&quot;../components/color&quot;:643,&quot;../components/drawing&quot;:665,&quot;../components/modebar&quot;:703,&quot;../components/titles&quot;:738,&quot;../constants/alignment&quot;:745,&quot;../lib&quot;:778,&quot;../lib/clear_gl_canvases&quot;:762,&quot;../plots/cartesian/autorange&quot;:827,&quot;../plots/cartesian/axes&quot;:828,&quot;../plots/cartesian/constraints&quot;:835,&quot;../plots/plots&quot;:891,&quot;../registry&quot;:911,d3:169}],819:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=n.isPlainObject,a=t(&quot;./plot_schema&quot;),o=t(&quot;../plots/plots&quot;),s=t(&quot;../plots/attributes&quot;),l=t(&quot;./plot_template&quot;),c=t(&quot;./plot_config&quot;).dfltConfig;function u(t,e){t=n.extendDeep({},t);var r,a,o=Object.keys(t).sort();function s(e,r,n){if(i(r)&amp;&amp;i(e))u(e,r);else if(Array.isArray(r)&amp;&amp;Array.isArray(e)){var o=l.arrayTemplater({_template:t},n);for(a=0;a&lt;r.length;a++){var s=r[a],c=o.newItem(s)._template;c&amp;&amp;u(c,s)}var f=o.defaultItems();for(a=0;a&lt;f.length;a++)r.push(f[a]._template);for(a=0;a&lt;r.length;a++)delete r[a].templateitemname}}for(r=0;r&lt;o.length;r++){var c=o[r],h=t[c];if(c in e?s(h,e[c],c):e[c]=h,f(c)===c)for(var p in e){var d=f(p);p===d||d!==c||p in t||s(h,e[p],c)}}}function f(t){return t.replace(/[0-9]+$/,&quot;&quot;)}function h(t,e,r,a,o){var s=o&amp;&amp;r(o);for(var c in t){var u=t[c],p=g(t,c,a),d=g(t,c,o),m=r(d);if(!m){var v=f(c);v!==c&amp;&amp;(m=r(d=g(t,v,o)))}if((!s||s!==m)&amp;&amp;!(!m||m._noTemplating||&quot;data_array&quot;===m.valType||m.arrayOk&amp;&amp;Array.isArray(u)))if(!m.valType&amp;&amp;i(u))h(u,e,r,p,d);else if(m._isLinkedToArray&amp;&amp;Array.isArray(u))for(var y=!1,x=0,b={},_=0;_&lt;u.length;_++){var w=u[_];if(i(w)){var T=w.name;if(T)b[T]||(h(w,e,r,g(u,x,p),g(u,x,d)),x++,b[T]=1);else if(!y){var k=g(t,l.arrayDefaultKey(c),a),M=g(u,x,p);h(w,e,r,M,g(u,x,d));var A=n.nestedProperty(e,M);n.nestedProperty(e,k).set(A.get()),A.set(null),y=!0}}}else{n.nestedProperty(e,p).set(u)}}}function p(t,e){return a.getLayoutValObject(t,n.nestedProperty({},e).parts)}function d(t,e){return a.getTraceValObject(t,n.nestedProperty({},e).parts)}function g(t,e,r){return r?Array.isArray(t)?r+&quot;[&quot;+e+&quot;]&quot;:r+&quot;.&quot;+e:e}function m(t){for(var e=0;e&lt;t.length;e++)if(i(t[e]))return!0}function v(t){var e;switch(t.code){case&quot;data&quot;:e=&quot;The template has no key data.&quot;;break;case&quot;layout&quot;:e=&quot;The template has no key layout.&quot;;break;case&quot;missing&quot;:e=t.path?&quot;There are no templates for item &quot;+t.path+&quot; with name &quot;+t.templateitemname:&quot;There are no templates for trace &quot;+t.index+&quot;, of type &quot;+t.traceType+&quot;.&quot;;break;case&quot;unused&quot;:e=t.path?&quot;The template item at &quot;+t.path+&quot; was not used in constructing the plot.&quot;:t.dataCount?&quot;Some of the templates of type &quot;+t.traceType+&quot; were not used. The template has &quot;+t.templateCount+&quot; traces, the data only has &quot;+t.dataCount+&quot; of this type.&quot;:&quot;The template has &quot;+t.templateCount+&quot; traces of type &quot;+t.traceType+&quot; but there are none in the data.&quot;;break;case&quot;reused&quot;:e=&quot;Some of the templates of type &quot;+t.traceType+&quot; were used more than once. The template has &quot;+t.templateCount+&quot; traces, the data has &quot;+t.dataCount+&quot; of this type.&quot;}return t.msg=e,t}r.makeTemplate=function(t){t=n.isPlainObject(t)?t:n.getGraphDiv(t),t=n.extendDeep({_context:c},{data:t.data,layout:t.layout}),o.supplyDefaults(t);var e=t.data||[],r=t.layout||{};r._basePlotModules=t._fullLayout._basePlotModules,r._modules=t._fullLayout._modules;var a={data:{},layout:{}};e.forEach((function(t){var e={};h(t,e,d.bind(null,t));var r=n.coerce(t,{},s,&quot;type&quot;),i=a.data[r];i||(i=a.data[r]=[]),i.push(e)})),h(r,a.layout,p.bind(null,r)),delete a.layout.template;var l=r.template;if(i(l)){var f,g,m,v,y,x,b=l.layout;i(b)&amp;&amp;u(b,a.layout);var _=l.data;if(i(_)){for(g in a.data)if(m=_[g],Array.isArray(m)){for(x=(y=a.data[g]).length,v=m.length,f=0;f&lt;x;f++)u(m[f%v],y[f]);for(f=x;f&lt;v;f++)y.push(n.extendDeep({},m[f]))}for(g in _)g in a.data||(a.data[g]=n.extendDeep([],_[g]))}}return a},r.validateTemplate=function(t,e){var r=n.extendDeep({},{_context:c,data:t.data,layout:t.layout}),a=r.layout||{};i(e)||(e=a.template||{});var s=e.layout,l=e.data,u=[];r.layout=a,r.layout.template=e,o.supplyDefaults(r);var h=r._fullLayout,p=r._fullData,d={};if(i(s)?(!function t(e,r){for(var n in e)if(&quot;_&quot;!==n.charAt(0)&amp;&amp;i(e[n])){var a,o=f(n),s=[];for(a=0;a&lt;r.length;a++)s.push(g(e,n,r[a])),o!==n&amp;&amp;s.push(g(e,o,r[a]));for(a=0;a&lt;s.length;a++)d[s[a]]=1;t(e[n],s)}}(h,[&quot;layout&quot;]),function t(e,r){for(var n in e)if(-1===n.indexOf(&quot;defaults&quot;)&amp;&amp;i(e[n])){var a=g(e,n,r);d[a]?t(e[n],a):u.push({code:&quot;unused&quot;,path:a})}}(s,&quot;layout&quot;)):u.push({code:&quot;layout&quot;}),i(l)){for(var y,x={},b=0;b&lt;p.length;b++){var _=p[b];x[y=_.type]=(x[y]||0)+1,_._fullInput._template||u.push({code:&quot;missing&quot;,index:_._fullInput.index,traceType:y})}for(y in l){var w=l[y].length,T=x[y]||0;w&gt;T?u.push({code:&quot;unused&quot;,traceType:y,templateCount:w,dataCount:T}):T&gt;w&amp;&amp;u.push({code:&quot;reused&quot;,traceType:y,templateCount:w,dataCount:T})}}else u.push({code:&quot;data&quot;});if(function t(e,r){for(var n in e)if(&quot;_&quot;!==n.charAt(0)){var a=e[n],o=g(e,n,r);i(a)?(Array.isArray(e)&amp;&amp;!1===a._template&amp;&amp;a.templateitemname&amp;&amp;u.push({code:&quot;missing&quot;,path:o,templateitemname:a.templateitemname}),t(a,o)):Array.isArray(a)&amp;&amp;m(a)&amp;&amp;t(a,o)}}({data:p,layout:h},&quot;&quot;),u.length)return u.map(v)}},{&quot;../lib&quot;:778,&quot;../plots/attributes&quot;:824,&quot;../plots/plots&quot;:891,&quot;./plot_config&quot;:815,&quot;./plot_schema&quot;:816,&quot;./plot_template&quot;:817}],820:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./plot_api&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../snapshot/helpers&quot;),l=t(&quot;../snapshot/tosvg&quot;),c=t(&quot;../snapshot/svgtoimg&quot;),u=t(&quot;../version&quot;).version,f={format:{valType:&quot;enumerated&quot;,values:[&quot;png&quot;,&quot;jpeg&quot;,&quot;webp&quot;,&quot;svg&quot;,&quot;full-json&quot;],dflt:&quot;png&quot;},width:{valType:&quot;number&quot;,min:1},height:{valType:&quot;number&quot;,min:1},scale:{valType:&quot;number&quot;,min:0,dflt:1},setBackground:{valType:&quot;any&quot;,dflt:!1},imageDataOnly:{valType:&quot;boolean&quot;,dflt:!1}};e.exports=function(t,e){var r,h,p,d;function g(t){return!(t in e)||o.validate(e[t],f[t])}if(e=e||{},o.isPlainObject(t)?(r=t.data||[],h=t.layout||{},p=t.config||{},d={}):(t=o.getGraphDiv(t),r=o.extendDeep([],t.data),h=o.extendDeep({},t.layout),p=t._context,d=t._fullLayout||{}),!g(&quot;width&quot;)&amp;&amp;null!==e.width||!g(&quot;height&quot;)&amp;&amp;null!==e.height)throw new Error(&quot;Height and width should be pixel values.&quot;);if(!g(&quot;format&quot;))throw new Error(&quot;Export format is not &quot;+o.join2(f.format.values,&quot;, &quot;,&quot; or &quot;)+&quot;.&quot;);var m={};function v(t,r){return o.coerce(e,m,f,t,r)}var y=v(&quot;format&quot;),x=v(&quot;width&quot;),b=v(&quot;height&quot;),_=v(&quot;scale&quot;),w=v(&quot;setBackground&quot;),T=v(&quot;imageDataOnly&quot;),k=document.createElement(&quot;div&quot;);k.style.position=&quot;absolute&quot;,k.style.left=&quot;-5000px&quot;,document.body.appendChild(k);var M=o.extendFlat({},h);x?M.width=x:null===e.width&amp;&amp;n(d.width)&amp;&amp;(M.width=d.width),b?M.height=b:null===e.height&amp;&amp;n(d.height)&amp;&amp;(M.height=d.height);var A=o.extendFlat({},p,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),S=s.getRedrawFunc(k);function E(){return new Promise((function(t){setTimeout(t,s.getDelay(k._fullLayout))}))}function C(){return new Promise((function(t,e){var r=l(k,y,_),n=k._fullLayout.width,f=k._fullLayout.height;function h(){i.purge(k),document.body.removeChild(k)}if(&quot;full-json&quot;===y){var p=a.graphJson(k,!1,&quot;keepdata&quot;,&quot;object&quot;,!0,!0);return p.version=u,p=JSON.stringify(p),h(),t(T?p:s.encodeJSON(p))}if(h(),&quot;svg&quot;===y)return t(T?r:s.encodeSVG(r));var d=document.createElement(&quot;canvas&quot;);d.id=o.randstr(),c({format:y,width:n,height:f,scale:_,canvas:d,svg:r,promise:!0}).then(t).catch(e)}))}return new Promise((function(t,e){i.plot(k,r,M,A).then(S).then(E).then(C).then((function(e){t(function(t){return T?t.replace(s.IMAGE_URL_PREFIX,&quot;&quot;):t}(e))})).catch((function(t){e(t)}))}))}},{&quot;../lib&quot;:778,&quot;../plots/plots&quot;:891,&quot;../snapshot/helpers&quot;:915,&quot;../snapshot/svgtoimg&quot;:917,&quot;../snapshot/tosvg&quot;:919,&quot;../version&quot;:1370,&quot;./plot_api&quot;:814,&quot;fast-isnumeric&quot;:241}],821:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/plots&quot;),a=t(&quot;./plot_schema&quot;),o=t(&quot;./plot_config&quot;).dfltConfig,s=n.isPlainObject,l=Array.isArray,c=n.isArrayOrTypedArray;function u(t,e,r,i,a,o){o=o||[];for(var f=Object.keys(t),h=0;h&lt;f.length;h++){var p=f[h];if(&quot;transforms&quot;!==p){var v=o.slice();v.push(p);var y=t[p],x=e[p],b=m(r,p),_=(b||{}).valType,w=&quot;info_array&quot;===_,T=&quot;colorscale&quot;===_,k=(b||{}).items;if(g(r,p))if(s(y)&amp;&amp;s(x)&amp;&amp;&quot;any&quot;!==_)u(y,x,b,i,a,v);else if(w&amp;&amp;l(y)){y.length&gt;x.length&amp;&amp;i.push(d(&quot;unused&quot;,a,v.concat(x.length)));var M,A,S,E,C,L=x.length,I=Array.isArray(k);if(I&amp;&amp;(L=Math.min(L,k.length)),2===b.dimensions)for(A=0;A&lt;L;A++)if(l(y[A])){y[A].length&gt;x[A].length&amp;&amp;i.push(d(&quot;unused&quot;,a,v.concat(A,x[A].length)));var P=x[A].length;for(M=0;M&lt;(I?Math.min(P,k[A].length):P);M++)S=I?k[A][M]:k,E=y[A][M],C=x[A][M],n.validate(E,S)?C!==E&amp;&amp;C!==+E&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v.concat(A,M),E,C)):i.push(d(&quot;value&quot;,a,v.concat(A,M),E))}else i.push(d(&quot;array&quot;,a,v.concat(A),y[A]));else for(A=0;A&lt;L;A++)S=I?k[A]:k,E=y[A],C=x[A],n.validate(E,S)?C!==E&amp;&amp;C!==+E&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v.concat(A),E,C)):i.push(d(&quot;value&quot;,a,v.concat(A),E))}else if(b.items&amp;&amp;!w&amp;&amp;l(y)){var z,O,D=k[Object.keys(k)[0]],R=[];for(z=0;z&lt;x.length;z++){var F=x[z]._index||z;if((O=v.slice()).push(F),s(y[F])&amp;&amp;s(x[z])){R.push(F);var B=y[F],N=x[z];s(B)&amp;&amp;!1!==B.visible&amp;&amp;!1===N.visible?i.push(d(&quot;invisible&quot;,a,O)):u(B,N,D,i,a,O)}}for(z=0;z&lt;y.length;z++)(O=v.slice()).push(z),s(y[z])?-1===R.indexOf(z)&amp;&amp;i.push(d(&quot;unused&quot;,a,O)):i.push(d(&quot;object&quot;,a,O,y[z]))}else!s(y)&amp;&amp;s(x)?i.push(d(&quot;object&quot;,a,v,y)):c(y)||!c(x)||w||T?p in e?n.validate(y,b)?&quot;enumerated&quot;===b.valType&amp;&amp;(b.coerceNumber&amp;&amp;y!==+x||y!==x)&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v,y,x)):i.push(d(&quot;value&quot;,a,v,y)):i.push(d(&quot;unused&quot;,a,v,y)):i.push(d(&quot;array&quot;,a,v,y));else i.push(d(&quot;schema&quot;,a,v))}}return i}function f(t,e){for(var r=t.layout.layoutAttributes,i=0;i&lt;e.length;i++){var a=e[i],o=t.traces[a.type],s=o.layoutAttributes;s&amp;&amp;(a.subplot?n.extendFlat(r[o.attributes.subplot.dflt],s):n.extendFlat(r,s))}return r}e.exports=function(t,e){void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e={});var r,c,h=a.get(),p=[],g={_context:n.extendFlat({},o)};l(t)?(g.data=n.extendDeep([],t),r=t):(g.data=[],r=[],p.push(d(&quot;array&quot;,&quot;data&quot;))),s(e)?(g.layout=n.extendDeep({},e),c=e):(g.layout={},c={},arguments.length&gt;1&amp;&amp;p.push(d(&quot;object&quot;,&quot;layout&quot;))),i.supplyDefaults(g);for(var m=g._fullData,v=r.length,y=0;y&lt;v;y++){var x=r[y],b=[&quot;data&quot;,y];if(s(x)){var _=m[y],w=_.type,T=h.traces[w].attributes;T.type={valType:&quot;enumerated&quot;,values:[w]},!1===_.visible&amp;&amp;!1!==x.visible&amp;&amp;p.push(d(&quot;invisible&quot;,b)),u(x,_,T,p,b);var k=x.transforms,M=_.transforms;if(k){l(k)||p.push(d(&quot;array&quot;,b,[&quot;transforms&quot;])),b.push(&quot;transforms&quot;);for(var A=0;A&lt;k.length;A++){var S=[&quot;transforms&quot;,A],E=k[A].type;if(s(k[A])){var C=h.transforms[E]?h.transforms[E].attributes:{};C.type={valType:&quot;enumerated&quot;,values:Object.keys(h.transforms)},u(k[A],M[A],C,p,b,S)}else p.push(d(&quot;object&quot;,b,S))}}}else p.push(d(&quot;object&quot;,b))}var L=g._fullLayout,I=f(h,m);return u(c,L,I,p,&quot;layout&quot;),0===p.length?void 0:p};var h={object:function(t,e){return(&quot;layout&quot;===t&amp;&amp;&quot;&quot;===e?&quot;The layout argument&quot;:&quot;data&quot;===t[0]&amp;&amp;&quot;&quot;===e?&quot;Trace &quot;+t[1]+&quot; in the data argument&quot;:p(t)+&quot;key &quot;+e)+&quot; must be linked to an object container&quot;},array:function(t,e){return(&quot;data&quot;===t?&quot;The data argument&quot;:p(t)+&quot;key &quot;+e)+&quot; must be linked to an array container&quot;},schema:function(t,e){return p(t)+&quot;key &quot;+e+&quot; is not part of the schema&quot;},unused:function(t,e,r){var n=s(r)?&quot;container&quot;:&quot;key&quot;;return p(t)+n+&quot; &quot;+e+&quot; did not get coerced&quot;},dynamic:function(t,e,r,n){return[p(t)+&quot;key&quot;,e,&quot;(set to '&quot;+r+&quot;')&quot;,&quot;got reset to&quot;,&quot;'&quot;+n+&quot;'&quot;,&quot;during defaults.&quot;].join(&quot; &quot;)},invisible:function(t,e){return(e?p(t)+&quot;item &quot;+e:&quot;Trace &quot;+t[1])+&quot; got defaulted to be not visible&quot;},value:function(t,e,r){return[p(t)+&quot;key &quot;+e,&quot;is set to an invalid value (&quot;+r+&quot;)&quot;].join(&quot; &quot;)}};function p(t){return l(t)?&quot;In data trace &quot;+t[1]+&quot;, &quot;:&quot;In &quot;+t+&quot;, &quot;}function d(t,e,r,i,a){var o,s;r=r||&quot;&quot;,l(e)?(o=e[0],s=e[1]):(o=e,s=null);var c=function(t){if(!l(t))return String(t);for(var e=&quot;&quot;,r=0;r&lt;t.length;r++){var n=t[r];&quot;number&quot;==typeof n?e=e.substr(0,e.length-1)+&quot;[&quot;+n+&quot;]&quot;:e+=n,r&lt;t.length-1&amp;&amp;(e+=&quot;.&quot;)}return e}(r),u=h[t](e,c,i,a);return n.log(u),{code:t,container:o,trace:s,path:r,astr:c,msg:u}}function g(t,e){var r=y(e),n=r.keyMinusId,i=r.id;return!!(n in t&amp;&amp;t[n]._isSubplotObj&amp;&amp;i)||e in t}function m(t,e){return e in t?t[e]:t[y(e).keyMinusId]}var v=n.counterRegex(&quot;([a-z]+)&quot;);function y(t){var e=t.match(v);return{keyMinusId:e&amp;&amp;e[1],id:e&amp;&amp;e[2]}}},{&quot;../lib&quot;:778,&quot;../plots/plots&quot;:891,&quot;./plot_config&quot;:815,&quot;./plot_schema&quot;:816}],822:[function(t,e,r){&quot;use strict&quot;;e.exports={mode:{valType:&quot;enumerated&quot;,dflt:&quot;afterall&quot;,values:[&quot;immediate&quot;,&quot;next&quot;,&quot;afterall&quot;]},direction:{valType:&quot;enumerated&quot;,values:[&quot;forward&quot;,&quot;reverse&quot;],dflt:&quot;forward&quot;},fromcurrent:{valType:&quot;boolean&quot;,dflt:!1},frame:{duration:{valType:&quot;number&quot;,min:0,dflt:500},redraw:{valType:&quot;boolean&quot;,dflt:!0}},transition:{duration:{valType:&quot;number&quot;,min:0,dflt:500,editType:&quot;none&quot;},easing:{valType:&quot;enumerated&quot;,dflt:&quot;cubic-in-out&quot;,values:[&quot;linear&quot;,&quot;quad&quot;,&quot;cubic&quot;,&quot;sin&quot;,&quot;exp&quot;,&quot;circle&quot;,&quot;elastic&quot;,&quot;back&quot;,&quot;bounce&quot;,&quot;linear-in&quot;,&quot;quad-in&quot;,&quot;cubic-in&quot;,&quot;sin-in&quot;,&quot;exp-in&quot;,&quot;circle-in&quot;,&quot;elastic-in&quot;,&quot;back-in&quot;,&quot;bounce-in&quot;,&quot;linear-out&quot;,&quot;quad-out&quot;,&quot;cubic-out&quot;,&quot;sin-out&quot;,&quot;exp-out&quot;,&quot;circle-out&quot;,&quot;elastic-out&quot;,&quot;back-out&quot;,&quot;bounce-out&quot;,&quot;linear-in-out&quot;,&quot;quad-in-out&quot;,&quot;cubic-in-out&quot;,&quot;sin-in-out&quot;,&quot;exp-in-out&quot;,&quot;circle-in-out&quot;,&quot;elastic-in-out&quot;,&quot;back-in-out&quot;,&quot;bounce-in-out&quot;],editType:&quot;none&quot;},ordering:{valType:&quot;enumerated&quot;,values:[&quot;layout first&quot;,&quot;traces first&quot;],dflt:&quot;layout first&quot;,editType:&quot;none&quot;}}}},{}],823:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_template&quot;);e.exports=function(t,e,r){var a,o,s=r.name,l=r.inclusionAttr||&quot;visible&quot;,c=e[s],u=n.isArrayOrTypedArray(t[s])?t[s]:[],f=e[s]=[],h=i.arrayTemplater(e,s,l);for(a=0;a&lt;u.length;a++){var p=u[a];n.isPlainObject(p)?o=h.newItem(p):(o=h.newItem({}))[l]=!1,o._index=a,!1!==o[l]&amp;&amp;r.handleItemDefaults(p,o,e,r),f.push(o)}var d=h.defaultItems();for(a=0;a&lt;d.length;a++)(o=d[a])._index=f.length,r.handleItemDefaults({},o,e,r,{}),f.push(o);if(n.isArrayOrTypedArray(c)){var g=Math.min(c.length,f.length);for(a=0;a&lt;g;a++)n.relinkPrivateKeys(f[a],c[a])}return f}},{&quot;../lib&quot;:778,&quot;../plot_api/plot_template&quot;:817}],824:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../components/fx/attributes&quot;);e.exports={type:{valType:&quot;enumerated&quot;,values:[],dflt:&quot;scatter&quot;,editType:&quot;calc+clearAxisTypes&quot;,_noTemplating:!0},visible:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;legendonly&quot;],dflt:!0,editType:&quot;calc&quot;},showlegend:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;style&quot;},legendgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;style&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;style&quot;},name:{valType:&quot;string&quot;,editType:&quot;style&quot;},uid:{valType:&quot;string&quot;,editType:&quot;plot&quot;,anim:!0},ids:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;,anim:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},meta:{valType:&quot;any&quot;,arrayOk:!0,editType:&quot;plot&quot;},selectedpoints:{valType:&quot;any&quot;,editType:&quot;calc&quot;},hoverinfo:{valType:&quot;flaglist&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;],extras:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],arrayOk:!0,dflt:&quot;all&quot;,editType:&quot;none&quot;},hoverlabel:n.hoverlabel,stream:{token:{valType:&quot;string&quot;,noBlank:!0,strict:!0,editType:&quot;calc&quot;},maxpoints:{valType:&quot;number&quot;,min:0,max:1e4,dflt:500,editType:&quot;calc&quot;},editType:&quot;calc&quot;},transforms:{_isLinkedToArray:&quot;transform&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;}}},{&quot;../components/fx/attributes&quot;:674}],825:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=i.dateTime2ms,o=i.incrementMonth,s=t(&quot;../../constants/numerical&quot;).ONEAVGMONTH;e.exports=function(t,e,r,i){if(&quot;date&quot;!==e.type)return i;var l=t[r+&quot;periodalignment&quot;];if(!l)return i;var c,u=t[r+&quot;period&quot;];if(n(u)){if((u=+u)&lt;=0)return i}else if(&quot;string&quot;==typeof u&amp;&amp;&quot;M&quot;===u.charAt(0)){var f=+u.substring(1);if(!(f&gt;0&amp;&amp;Math.round(f)===f))return i;c=f}for(var h=e.calendar,p=&quot;start&quot;===l,d=&quot;end&quot;===l,g=t[r+&quot;period0&quot;],m=a(g,h)||0,v=[],y=i.length,x=0;x&lt;y;x++){var b,_,w,T=i[x];if(c){for(b=Math.round((T-m)/(c*s)),w=o(m,c*b,h);w&gt;T;)w=o(w,-c,h);for(;w&lt;=T;)w=o(w,c,h);_=o(w,-c,h)}else{for(w=m+(b=Math.round((T-m)/u))*u;w&gt;T;)w-=u;for(;w&lt;=T;)w+=u;_=w-u}v[x]=p?_:d?w:(_+w)/2}return v}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],826:[function(t,e,r){&quot;use strict&quot;;e.exports={xaxis:{valType:&quot;subplotid&quot;,dflt:&quot;x&quot;,editType:&quot;calc+clearAxisTypes&quot;},yaxis:{valType:&quot;subplotid&quot;,dflt:&quot;y&quot;,editType:&quot;calc+clearAxisTypes&quot;}}},{}],827:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).FP_SAFE,o=t(&quot;../../registry&quot;),s=t(&quot;./axis_ids&quot;),l=s.getFromId,c=s.isLinked;function u(t,e){var r,n,a=[],o=t._fullLayout,s=h(o,e,0),l=h(o,e,1),c=p(t,e),u=c.min,d=c.max;if(0===u.length||0===d.length)return i.simpleMap(e.range,e.r2l);var g=u[0].val,m=d[0].val;for(r=1;r&lt;u.length&amp;&amp;g===m;r++)g=Math.min(g,u[r].val);for(r=1;r&lt;d.length&amp;&amp;g===m;r++)m=Math.max(m,d[r].val);var v=!1;if(e.range){var y=i.simpleMap(e.range,e.r2l);v=y[1]&lt;y[0]}&quot;reversed&quot;===e.autorange&amp;&amp;(v=!0,e.autorange=!0);var x,b,_,w,T,k,M=e.rangemode,A=&quot;tozero&quot;===M,S=&quot;nonnegative&quot;===M,E=e._length,C=E/10,L=0;for(r=0;r&lt;u.length;r++)for(x=u[r],n=0;n&lt;d.length;n++)(k=(b=d[n]).val-x.val-f(e,x.val,b.val))&gt;0&amp;&amp;((T=E-s(x)-l(b))&gt;C?k/T&gt;L&amp;&amp;(_=x,w=b,L=k/T):k/E&gt;L&amp;&amp;(_={val:x.val,nopad:1},w={val:b.val,nopad:1},L=k/E));if(g===m){var I=g-1,P=g+1;if(A)if(0===g)a=[0,1];else{var z=(g&gt;0?d:u).reduce((function(t,e){return Math.max(t,l(e))}),0),O=g/(1-Math.min(.5,z/E));a=g&gt;0?[0,O]:[O,0]}else a=S?[Math.max(0,I),Math.max(1,P)]:[I,P]}else A?(_.val&gt;=0&amp;&amp;(_={val:0,nopad:1}),w.val&lt;=0&amp;&amp;(w={val:0,nopad:1})):S&amp;&amp;(_.val-L*s(_)&lt;0&amp;&amp;(_={val:0,nopad:1}),w.val&lt;=0&amp;&amp;(w={val:1,nopad:1})),L=(w.val-_.val-f(e,x.val,b.val))/(E-s(_)-l(w)),a=[_.val-L*s(_),w.val+L*l(w)];return v&amp;&amp;a.reverse(),i.simpleMap(a,e.l2r||Number)}function f(t,e,r){var n=0;if(t.rangebreaks)for(var i=t.locateBreaks(e,r),a=0;a&lt;i.length;a++){var o=i[a];n+=o.max-o.min}return n}function h(t,e,r){var n=.05*e._length,a=e._anchorAxis||{};if(-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)||-1!==(a.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)){var o=&quot;reversed&quot;===e.autorange;if(!o){var s=i.simpleMap(e.range,e.r2l);o=s[1]&lt;s[0]}o&amp;&amp;(r=!r)}var l=0;return c(t,e._id)||(l=function(t,e){var r=0,n=t._anchorAxis||{};if(-1!==(n.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;(!e&amp;&amp;(&quot;left&quot;===n.side||&quot;bottom&quot;===n.side)||e&amp;&amp;(&quot;top&quot;===n.side||&quot;right&quot;===n.side))){var a=&quot;x&quot;===t._id.charAt(0);if(n._vals){var o=i.deg2rad(n._tickAngles[n._id+&quot;tick&quot;]||0),s=Math.abs(Math.cos(o)),l=Math.abs(Math.sin(o));n._vals.forEach((function(t){if(t.bb){var e=6+t.bb.width,n=6+t.bb.height;r=Math.max(r,a?Math.max(e*s,n*l):Math.max(n*s,e*l))}}))}&quot;inside&quot;===n.ticks&amp;&amp;&quot;inside&quot;===n.ticklabelposition&amp;&amp;(r+=n.ticklen||0)}return r}(e,r)),n=Math.max(l,n),&quot;domain&quot;===e.constrain&amp;&amp;e._inputDomain&amp;&amp;(n*=(e._inputDomain[1]-e._inputDomain[0])/(e.domain[1]-e.domain[0])),function(t){return t.nopad?0:t.pad+(t.extrapad?n:l)}}e.exports={getAutoRange:u,makePadFn:h,doAutoRange:function(t,e,r){if(e.setScale(),e.autorange){e.range=r?r.slice():u(t,e),e._r=e.range.slice(),e._rl=i.simpleMap(e._r,e.r2l);var n=e._input,a={};a[e._attr+&quot;.range&quot;]=e.range,a[e._attr+&quot;.autorange&quot;]=e.autorange,o.call(&quot;_storeDirectGUIEdit&quot;,t.layout,t._fullLayout._preGUI,a),n.range=e.range.slice(),n.autorange=e.autorange}var s=e._anchorAxis;if(s&amp;&amp;s.rangeslider){var l=s.rangeslider[e._name];l&amp;&amp;&quot;auto&quot;===l.rangemode&amp;&amp;(l.range=u(t,e)),s._input.rangeslider[e._name]=i.extendFlat({},l)}},findExtremes:function(t,e,r){r||(r={});t._m||t.setScale();var i,o,s,l,c,u,f,h,p,m=[],y=[],x=e.length,b=r.padded||!1,_=r.tozero&amp;&amp;(&quot;linear&quot;===t.type||&quot;-&quot;===t.type),w=&quot;log&quot;===t.type,T=!1,k=r.vpadLinearized||!1;function M(t){if(Array.isArray(t))return T=!0,function(e){return Math.max(Number(t[e]||0),0)};var e=Math.max(Number(t||0),0);return function(){return e}}var A=M((t._m&gt;0?r.ppadplus:r.ppadminus)||r.ppad||0),S=M((t._m&gt;0?r.ppadminus:r.ppadplus)||r.ppad||0),E=M(r.vpadplus||r.vpad),C=M(r.vpadminus||r.vpad);if(!T){if(h=1/0,p=-1/0,w)for(i=0;i&lt;x;i++)(o=e[i])&lt;h&amp;&amp;o&gt;0&amp;&amp;(h=o),o&gt;p&amp;&amp;o&lt;a&amp;&amp;(p=o);else for(i=0;i&lt;x;i++)(o=e[i])&lt;h&amp;&amp;o&gt;-a&amp;&amp;(h=o),o&gt;p&amp;&amp;o&lt;a&amp;&amp;(p=o);e=[h,p],x=2}var L={tozero:_,extrapad:b};function I(r){s=e[r],n(s)&amp;&amp;(u=A(r),f=S(r),k?(l=t.c2l(s)-C(r),c=t.c2l(s)+E(r)):(h=s-C(r),p=s+E(r),w&amp;&amp;h&lt;p/10&amp;&amp;(h=p/10),l=t.c2l(h),c=t.c2l(p)),_&amp;&amp;(l=Math.min(0,l),c=Math.max(0,c)),v(l)&amp;&amp;d(m,l,f,L),v(c)&amp;&amp;g(y,c,u,L))}var P=Math.min(6,x);for(i=0;i&lt;P;i++)I(i);for(i=x-1;i&gt;=P;i--)I(i);return{min:m,max:y,opts:r}},concatExtremes:p};function p(t,e,r){var n,i,a,o=e._id,s=t._fullData,c=t._fullLayout,u=[],f=[];function h(t,e){for(n=0;n&lt;e.length;n++){var r=t[e[n]],s=(r._extremes||{})[o];if(!0===r.visible&amp;&amp;s){for(i=0;i&lt;s.min.length;i++)a=s.min[i],d(u,a.val,a.pad,{extrapad:a.extrapad});for(i=0;i&lt;s.max.length;i++)a=s.max[i],g(f,a.val,a.pad,{extrapad:a.extrapad})}}}if(h(s,e._traceIndices),h(c.annotations||[],e._annIndices||[]),h(c.shapes||[],e._shapeIndices||[]),e._matchGroup&amp;&amp;!r)for(var m in e._matchGroup)if(m!==e._id){var v=l(t,m),y=p(t,v,!0),x=e._length/v._length;for(i=0;i&lt;y.min.length;i++)a=y.min[i],d(u,a.val,a.pad*x,{extrapad:a.extrapad});for(i=0;i&lt;y.max.length;i++)a=y.max[i],g(f,a.val,a.pad*x,{extrapad:a.extrapad})}return{min:u,max:f}}function d(t,e,r,n){m(t,e,r,n,y)}function g(t,e,r,n){m(t,e,r,n,x)}function m(t,e,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l&lt;t.length&amp;&amp;s;l++){var c=t[l];if(i(c.val,e)&amp;&amp;c.pad&gt;=r&amp;&amp;(c.extrapad||!o)){s=!1;break}i(e,c.val)&amp;&amp;c.pad&lt;=r&amp;&amp;(o||!c.extrapad)&amp;&amp;(t.splice(l,1),l--)}if(s){var u=a&amp;&amp;0===e;t.push({val:e,pad:u?0:r,extrapad:!u&amp;&amp;o})}}function v(t){return n(t)&amp;&amp;Math.abs(t)&lt;a}function y(t,e){return t&lt;=e}function x(t,e){return t&gt;=e}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./axis_ids&quot;:831,&quot;fast-isnumeric&quot;:241}],828:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/titles&quot;),f=t(&quot;../../components/color&quot;),h=t(&quot;../../components/drawing&quot;),p=t(&quot;./layout_attributes&quot;),d=t(&quot;./clean_ticks&quot;),g=t(&quot;../../constants/numerical&quot;),m=g.ONEMAXYEAR,v=g.ONEAVGYEAR,y=g.ONEMINYEAR,x=g.ONEMAXQUARTER,b=g.ONEAVGQUARTER,_=g.ONEMINQUARTER,w=g.ONEMAXMONTH,T=g.ONEAVGMONTH,k=g.ONEMINMONTH,M=g.ONEWEEK,A=g.ONEDAY,S=A/2,E=g.ONEHOUR,C=g.ONEMIN,L=g.ONESEC,I=g.MINUS_SIGN,P=g.BADNUM,z=t(&quot;../../constants/alignment&quot;),O=z.MID_SHIFT,D=z.CAP_SHIFT,R=z.LINE_SPACING,F=z.OPPOSITE_SIDE,B=e.exports={};B.setConvert=t(&quot;./set_convert&quot;);var N=t(&quot;./axis_autotype&quot;),j=t(&quot;./axis_ids&quot;),U=j.idSort,V=j.isLinked;B.id2name=j.id2name,B.name2id=j.name2id,B.cleanId=j.cleanId,B.list=j.list,B.listIds=j.listIds,B.getFromId=j.getFromId,B.getFromTrace=j.getFromTrace;var q=t(&quot;./autorange&quot;);B.getAutoRange=q.getAutoRange,B.findExtremes=q.findExtremes;function H(t){var e=1e-4*(t[1]-t[0]);return[t[0]-e,t[1]+e]}B.coerceRef=function(t,e,r,n,i,a){var o=n.charAt(n.length-1),l=r._fullLayout._subplots[o+&quot;axis&quot;],c=n+&quot;ref&quot;,u={};return i||(i=l[0]||(&quot;string&quot;==typeof a?a:a[0])),a||(a=i),l=l.concat(l.map((function(t){return t+&quot; domain&quot;}))),u[c]={valType:&quot;enumerated&quot;,values:l.concat(a?&quot;string&quot;==typeof a?[a]:a:[]),dflt:i},s.coerce(t,e,u,c)},B.getRefType=function(t){return void 0===t?t:&quot;paper&quot;===t?&quot;paper&quot;:&quot;pixel&quot;===t?&quot;pixel&quot;:/( domain)$/.test(t)?&quot;domain&quot;:&quot;range&quot;},B.coercePosition=function(t,e,r,n,i,a){var o,l;if(&quot;range&quot;!==B.getRefType(n))o=s.ensureNumber,l=r(i,a);else{var c=B.getFromId(e,n);l=r(i,a=c.fraction2r(a)),o=c.cleanPos}t[i]=o(l)},B.cleanPosition=function(t,e,r){return(&quot;paper&quot;===r||&quot;pixel&quot;===r?s.ensureNumber:B.getFromId(e,r).cleanPos)(t)},B.redrawComponents=function(t,e){e=e||B.listIds(t);var r=t._fullLayout;function n(n,i,a,s){for(var l=o.getComponentMethod(n,i),c={},u=0;u&lt;e.length;u++)for(var f=r[B.id2name(e[u])][a],h=0;h&lt;f.length;h++){var p=f[h];if(!c[p]&amp;&amp;(l(t,p),c[p]=1,s))return}}n(&quot;annotations&quot;,&quot;drawOne&quot;,&quot;_annIndices&quot;),n(&quot;shapes&quot;,&quot;drawOne&quot;,&quot;_shapeIndices&quot;),n(&quot;images&quot;,&quot;draw&quot;,&quot;_imgIndices&quot;,!0)};var G=B.getDataConversions=function(t,e,r,n){var i,a=&quot;x&quot;===r||&quot;y&quot;===r||&quot;z&quot;===r?r:n;if(Array.isArray(a)){if(i={type:N(n,void 0,{autotypenumbers:t._fullLayout.autotypenumbers}),_categories:[]},B.setConvert(i),&quot;category&quot;===i.type)for(var o=0;o&lt;n.length;o++)i.d2c(n[o])}else i=B.getFromTrace(t,e,a);return i?{d2c:i.d2c,c2d:i.c2d}:&quot;ids&quot;===a?{d2c:W,c2d:W}:{d2c:Y,c2d:Y}};function Y(t){return+t}function W(t){return String(t)}function X(t){return+t.substring(1)}B.getDataToCoordFunc=function(t,e,r,n){return G(t,e,r,n).d2c},B.counterLetter=function(t){var e=t.charAt(0);return&quot;x&quot;===e?&quot;y&quot;:&quot;y&quot;===e?&quot;x&quot;:void 0},B.minDtick=function(t,e,r,n){-1===[&quot;log&quot;,&quot;category&quot;,&quot;multicategory&quot;].indexOf(t.type)&amp;&amp;n?void 0===t._minDtick?(t._minDtick=e,t._forceTick0=r):t._minDtick&amp;&amp;((t._minDtick/e+1e-6)%1&lt;2e-6&amp;&amp;((r-t._forceTick0)/e%1+1.000001)%1&lt;2e-6?(t._minDtick=e,t._forceTick0=r):((e/t._minDtick+1e-6)%1&gt;2e-6||((r-t._forceTick0)/t._minDtick%1+1.000001)%1&gt;2e-6)&amp;&amp;(t._minDtick=0)):t._minDtick=0},B.saveRangeInitial=function(t,e){for(var r=B.list(t,&quot;&quot;,!0),n=!1,i=0;i&lt;r.length;i++){var a=r[i],o=void 0===a._rangeInitial,s=o||!(a.range[0]===a._rangeInitial[0]&amp;&amp;a.range[1]===a._rangeInitial[1]);(o&amp;&amp;!1===a.autorange||e&amp;&amp;s)&amp;&amp;(a._rangeInitial=a.range.slice(),n=!0)}return n},B.saveShowSpikeInitial=function(t,e){for(var r=B.list(t,&quot;&quot;,!0),n=!1,i=&quot;on&quot;,a=0;a&lt;r.length;a++){var o=r[a],s=void 0===o._showSpikeInitial,l=s||!(o.showspikes===o._showspikes);(s||e&amp;&amp;l)&amp;&amp;(o._showSpikeInitial=o.showspikes,n=!0),&quot;on&quot;!==i||o.showspikes||(i=&quot;off&quot;)}return t._fullLayout._cartesianSpikesEnabled=i,n},B.autoBin=function(t,e,r,n,a,o){var l,c=s.aggNums(Math.min,null,t),u=s.aggNums(Math.max,null,t);if(&quot;category&quot;===e.type||&quot;multicategory&quot;===e.type)return{start:c-.5,end:u+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:u-c};if(a||(a=e.calendar),l=&quot;log&quot;===e.type?{type:&quot;linear&quot;,range:[c,u]}:{type:e.type,range:s.simpleMap([c,u],e.c2r,0,a),calendar:a},B.setConvert(l),o=o&amp;&amp;d.dtick(o,l.type))l.dtick=o,l.tick0=d.tick0(void 0,l.type,a);else{var f;if(r)f=(u-c)/r;else{var h=s.distinctVals(t),p=Math.pow(10,Math.floor(Math.log(h.minDiff)/Math.LN10)),g=p*s.roundUp(h.minDiff/p,[.9,1.9,4.9,9.9],!0);f=Math.max(g,2*s.stdev(t)/Math.pow(t.length,n?.25:.4)),i(f)||(f=1)}B.autoTicks(l,f)}var m,v=l.dtick,y=B.tickIncrement(B.tickFirst(l),v,&quot;reverse&quot;,a);if(&quot;number&quot;==typeof v)m=(y=function(t,e,r,n,a){var o=0,s=0,l=0,c=0;function u(e){return(1+100*(e-t)/r.dtick)%100&lt;2}for(var f=0;f&lt;e.length;f++)e[f]%1==0?l++:i(e[f])||c++,u(e[f])&amp;&amp;o++,u(e[f]+r.dtick/2)&amp;&amp;s++;var h=e.length-c;if(l===h&amp;&amp;&quot;date&quot;!==r.type)r.dtick&lt;1?t=n-.5*r.dtick:(t-=.5)+r.dtick&lt;n&amp;&amp;(t+=r.dtick);else if(s&lt;.1*h&amp;&amp;(o&gt;.3*h||u(n)||u(a))){var p=r.dtick/2;t+=t+p&lt;n?p:-p}return t}(y,t,l,c,u))+(1+Math.floor((u-y)/v))*v;else for(&quot;M&quot;===l.dtick.charAt(0)&amp;&amp;(y=function(t,e,r,n,i){var a=s.findExactDates(e,i);if(a.exactDays&gt;.8){var o=Number(r.substr(1));a.exactYears&gt;.8&amp;&amp;o%12==0?t=B.tickIncrement(t,&quot;M6&quot;,&quot;reverse&quot;)+1.5*A:a.exactMonths&gt;.8?t=B.tickIncrement(t,&quot;M1&quot;,&quot;reverse&quot;)+15.5*A:t-=S;var l=B.tickIncrement(t,r);if(l&lt;=n)return l}return t}(y,t,v,c,a)),m=y,0;m&lt;=u;)m=B.tickIncrement(m,v,!1,a);return{start:e.c2r(y,0,a),end:e.c2r(m,0,a),size:v,_dataSpan:u-c}},B.prepTicks=function(t,e){var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if(t._dtickInit=t.dtick,t._tick0Init=t.tick0,&quot;auto&quot;===t.tickmode||!t.dtick){var n,a=t.nticks;a||(&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?(n=t.tickfont?1.2*(t.tickfont.size||12):15,a=t._length/n):(n=&quot;y&quot;===t._id.charAt(0)?40:80,a=s.constrain(t._length/n,4,9)+1),&quot;radialaxis&quot;===t._name&amp;&amp;(a*=2)),&quot;array&quot;===t.tickmode&amp;&amp;(a*=100),t._roughDTick=Math.abs(r[1]-r[0])/a,B.autoTicks(t,t._roughDTick),t._minDtick&gt;0&amp;&amp;t.dtick&lt;2*t._minDtick&amp;&amp;(t.dtick=t._minDtick,t.tick0=t.l2r(t._forceTick0))}&quot;period&quot;===t.ticklabelmode&amp;&amp;function(t){var e;function r(){return!(i(t.dtick)||&quot;M&quot;!==t.dtick.charAt(0))}var n=r(),a=B.getTickFormat(t);if(a){var o=t._dtickInit!==t.dtick;/%[fLQsSMX]/.test(a)||(/%[HI]/.test(a)?(e=E,o&amp;&amp;!n&amp;&amp;t.dtick&lt;E&amp;&amp;(t.dtick=E)):/%p/.test(a)?(e=S,o&amp;&amp;!n&amp;&amp;t.dtick&lt;S&amp;&amp;(t.dtick=S)):/%[Aadejuwx]/.test(a)?(e=A,o&amp;&amp;!n&amp;&amp;t.dtick&lt;A&amp;&amp;(t.dtick=A)):/%[UVW]/.test(a)?(e=M,o&amp;&amp;!n&amp;&amp;t.dtick&lt;M&amp;&amp;(t.dtick=M)):/%[Bbm]/.test(a)?(e=T,o&amp;&amp;(n?X(t.dtick)&lt;1:t.dtick&lt;k)&amp;&amp;(t.dtick=&quot;M1&quot;)):/%[q]/.test(a)?(e=b,o&amp;&amp;(n?X(t.dtick)&lt;3:t.dtick&lt;_)&amp;&amp;(t.dtick=&quot;M3&quot;)):/%[Yy]/.test(a)&amp;&amp;(e=v,o&amp;&amp;(n?X(t.dtick)&lt;12:t.dtick&lt;y)&amp;&amp;(t.dtick=&quot;M12&quot;)))}(n=r())&amp;&amp;t.tick0===t._dowTick0&amp;&amp;(t.tick0=t._rawTick0);t._definedDelta=e}(t),t.tick0||(t.tick0=&quot;date&quot;===t.type?&quot;2000-01-01&quot;:0),&quot;date&quot;===t.type&amp;&amp;t.dtick&lt;.1&amp;&amp;(t.dtick=.1),nt(t)},B.calcTicks=function(t,e){B.prepTicks(t,e);var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if(&quot;array&quot;===t.tickmode)return function(t){var e=t.tickvals,r=t.ticktext,n=new Array(e.length),i=H(s.simpleMap(t.range,t.r2l)),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]),l=0;Array.isArray(r)||(r=[]);var c=&quot;category&quot;===t.type?t.d2l_noadd:t.d2l;&quot;log&quot;===t.type&amp;&amp;&quot;L&quot;!==String(t.dtick).charAt(0)&amp;&amp;(t.dtick=&quot;L&quot;+Math.pow(10,Math.floor(Math.min(t.range[0],t.range[1]))-1));for(var u=0;u&lt;e.length;u++){var f=c(e[u]);f&gt;a&amp;&amp;f&lt;o&amp;&amp;(void 0===r[u]?n[l]=B.tickText(t,f):n[l]=it(t,f,String(r[u])),l++)}l&lt;e.length&amp;&amp;n.splice(l,e.length-l);t.rangebreaks&amp;&amp;(n=n.filter((function(e){return t.maskBreaks(e.x)!==P})));return n}(t);var n=H(r),a=n[0],o=n[1],l=r[1]&lt;r[0],c=Math.min(r[0],r[1]),u=Math.max(r[0],r[1]),f=&quot;log&quot;===t.type&amp;&amp;!(i(t.dtick)||&quot;L&quot;===t.dtick.charAt(0)),h=&quot;period&quot;===t.ticklabelmode;if(t._tmin=B.tickFirst(t,e),t._tmin&lt;a!==l)return[];&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(o=l?Math.max(-.5,o):Math.min(t._categories.length-.5,o));var p=t._tmin;t.rangebreaks&amp;&amp;t._tick0Init!==t.tick0&amp;&amp;(p=wt(p,t),l||(p=B.tickIncrement(p,t.dtick,!l,t.calendar))),h&amp;&amp;(p=B.tickIncrement(p,t.dtick,!l,t.calendar));for(var d,g=Math.max(1e3,t._length||0),C=[],L=null;l?p&gt;=o:p&lt;=o;p=B.tickIncrement(p,t.dtick,l,t.calendar)){if(t.rangebreaks&amp;&amp;!l){if(p&lt;a)continue;if(t.maskBreaks(p)===P&amp;&amp;wt(p,t)&gt;=u)break}if(C.length&gt;g||p===L)break;L=p;var I=!1;f&amp;&amp;p!==(0|p)&amp;&amp;(I=!0),C.push({minor:I,value:p})}if(h&amp;&amp;function(t,e,r){for(var n=0;n&lt;t.length;n++){var i=t[n].value,a=n,o=n+1;n&lt;t.length-1?(a=n,o=n+1):n&gt;0?(a=n-1,o=n):(a=n,o=n);var s,l=t[a].value,c=t[o].value,u=Math.abs(c-l),f=r||u,h=0;f&gt;=y?h=u&gt;=y&amp;&amp;u&lt;=m?u:v:r===b&amp;&amp;f&gt;=_?h=u&gt;=_&amp;&amp;u&lt;=x?u:b:f&gt;=k?h=u&gt;=k&amp;&amp;u&lt;=w?u:T:r===M&amp;&amp;f&gt;=M?h=M:f&gt;=A?h=A:r===S&amp;&amp;f&gt;=S?h=S:r===E&amp;&amp;f&gt;=E&amp;&amp;(h=E),h&gt;=u&amp;&amp;(h=u,s=!0);var p=i+h;if(e.rangebreaks&amp;&amp;h&gt;0){for(var d=0,g=0;g&lt;84;g++){var C=(g+.5)/84;e.maskBreaks(i*(1-C)+C*p)!==P&amp;&amp;d++}(h*=d/84)||(t[n].drop=!0),s&amp;&amp;u&gt;M&amp;&amp;(h=u)}(h&gt;0||0===n)&amp;&amp;(t[n].periodX=i+h/2)}}(C,t,t._definedDelta),t.rangebreaks){var z=&quot;y&quot;===t._id.charAt(0),O=1;&quot;auto&quot;===t.tickmode&amp;&amp;(O=t.tickfont?t.tickfont.size:12);var D=NaN;for(d=C.length-1;d&gt;-1;d--)if(C[d].drop)C.splice(d,1);else{C[d].value=wt(C[d].value,t);var R=t.c2p(C[d].value);(z?D&gt;R-O:D&lt;R+O)?C.splice(l?d+1:d,1):D=R}}_t(t)&amp;&amp;360===Math.abs(r[1]-r[0])&amp;&amp;C.pop(),t._tmax=(C[C.length-1]||{}).value,t._prevDateHead=&quot;&quot;,t._inCalcTicks=!0;var F,N,j=[];for(d=0;d&lt;C.length;d++){var U=C[d].minor,V=C[d].value;F=B.tickText(t,V,!1,U),void 0!==(N=C[d].periodX)&amp;&amp;(F.periodX=N,(N&gt;u||N&lt;c)&amp;&amp;(N&gt;u&amp;&amp;(F.periodX=u),N&lt;c&amp;&amp;(F.periodX=c),F.text=&quot; &quot;,t._prevDateHead=&quot;&quot;)),j.push(F)}return t._inCalcTicks=!1,j};var Z=[2,5,10],J=[1,2,3,6,12],K=[1,2,5,10,15,30],Q=[1,2,3,7,14],$=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],tt=[-.301,0,.301,.699,1],et=[15,30,45,90,180];function rt(t,e,r){return e*s.roundUp(t/e,r)}function nt(t){var e=t.dtick;if(t._tickexponent=0,i(e)||&quot;string&quot;==typeof e||(e=1),&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(t._tickround=null),&quot;date&quot;===t.type){var r=t.r2l(t.tick0),n=t.l2r(r).replace(/(^-|i)/g,&quot;&quot;),a=n.length;if(&quot;M&quot;===String(e).charAt(0))a&gt;10||&quot;01-01&quot;!==n.substr(5)?t._tickround=&quot;d&quot;:t._tickround=+e.substr(1)%12==0?&quot;y&quot;:&quot;m&quot;;else if(e&gt;=A&amp;&amp;a&lt;=10||e&gt;=15*A)t._tickround=&quot;d&quot;;else if(e&gt;=C&amp;&amp;a&lt;=16||e&gt;=E)t._tickround=&quot;M&quot;;else if(e&gt;=L&amp;&amp;a&lt;=19||e&gt;=C)t._tickround=&quot;S&quot;;else{var o=t.l2r(r+e).replace(/^-/,&quot;&quot;).length;t._tickround=Math.max(a,o)-20,t._tickround&lt;0&amp;&amp;(t._tickround=4)}}else if(i(e)||&quot;L&quot;===e.charAt(0)){var s=t.range.map(t.r2d||Number);i(e)||(e=Number(e.substr(1))),t._tickround=2-Math.floor(Math.log(e)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),c=Math.floor(Math.log(l)/Math.LN10+.01),u=void 0===t.minexponent?3:t.minexponent;Math.abs(c)&gt;u&amp;&amp;(ot(t.exponentformat)&amp;&amp;!st(c)?t._tickexponent=3*Math.round((c-1)/3):t._tickexponent=c)}else t._tickround=null}function it(t,e,r){var n=t.tickfont||{};return{x:e,dx:0,dy:0,text:r||&quot;&quot;,fontSize:n.size,font:n.family,fontColor:n.color}}B.autoTicks=function(t,e){var r;function n(t){return Math.pow(t,Math.floor(Math.log(e)/Math.LN10))}if(&quot;date&quot;===t.type){t.tick0=s.dateTick0(t.calendar,0);var a=2*e;if(a&gt;v)e/=v,r=n(10),t.dtick=&quot;M&quot;+12*rt(e,r,Z);else if(a&gt;T)e/=T,t.dtick=&quot;M&quot;+rt(e,1,J);else if(a&gt;A){t.dtick=rt(e,A,t._hasDayOfWeekBreaks?[1,2,7,14]:Q);var o=B.getTickFormat(t),l=&quot;period&quot;===t.ticklabelmode;l&amp;&amp;(t._rawTick0=t.tick0),/%[uVW]/.test(o)?t.tick0=s.dateTick0(t.calendar,2):t.tick0=s.dateTick0(t.calendar,1),l&amp;&amp;(t._dowTick0=t.tick0)}else a&gt;E?t.dtick=rt(e,E,J):a&gt;C?t.dtick=rt(e,C,K):a&gt;L?t.dtick=rt(e,L,K):(r=n(10),t.dtick=rt(e,r,Z))}else if(&quot;log&quot;===t.type){t.tick0=0;var c=s.simpleMap(t.range,t.r2l);if(e&gt;.7)t.dtick=Math.ceil(e);else if(Math.abs(c[1]-c[0])&lt;1){var u=1.5*Math.abs((c[1]-c[0])/e);e=Math.abs(Math.pow(10,c[1])-Math.pow(10,c[0]))/u,r=n(10),t.dtick=&quot;L&quot;+rt(e,r,Z)}else t.dtick=e&gt;.3?&quot;D2&quot;:&quot;D1&quot;}else&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?(t.tick0=0,t.dtick=Math.ceil(Math.max(e,1))):_t(t)?(t.tick0=0,r=1,t.dtick=rt(e,r,et)):(t.tick0=0,r=n(10),t.dtick=rt(e,r,Z));if(0===t.dtick&amp;&amp;(t.dtick=1),!i(t.dtick)&amp;&amp;&quot;string&quot;!=typeof t.dtick){var f=t.dtick;throw t.dtick=1,&quot;ax.dtick error: &quot;+String(f)}},B.tickIncrement=function(t,e,r,a){var o=r?-1:1;if(i(e))return s.increment(t,o*e);var l=e.charAt(0),c=o*Number(e.substr(1));if(&quot;M&quot;===l)return s.incrementMonth(t,c,a);if(&quot;L&quot;===l)return Math.log(Math.pow(10,t)+c)/Math.LN10;if(&quot;D&quot;===l){var u=&quot;D2&quot;===e?tt:$,f=t+.01*o,h=s.roundUp(s.mod(f,1),u,r);return Math.floor(f)+Math.log(n.round(Math.pow(10,h),1))/Math.LN10}throw&quot;unrecognized dtick &quot;+String(e)},B.tickFirst=function(t,e){var r=t.r2l||Number,a=s.simpleMap(t.range,r,void 0,void 0,e),o=a[1]&lt;a[0],l=o?Math.floor:Math.ceil,c=H(a)[0],u=t.dtick,f=r(t.tick0);if(i(u)){var h=l((c-f)/u)*u+f;return&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(h=s.constrain(h,0,t._categories.length-1)),h}var p=u.charAt(0),d=Number(u.substr(1));if(&quot;M&quot;===p){for(var g,m,v,y=0,x=f;y&lt;10;){if(((g=B.tickIncrement(x,u,o,t.calendar))-c)*(x-c)&lt;=0)return o?Math.min(x,g):Math.max(x,g);m=(c-(x+g)/2)/(g-x),v=p+(Math.abs(Math.round(m))||1)*d,x=B.tickIncrement(x,v,m&lt;0?!o:o,t.calendar),y++}return s.error(&quot;tickFirst did not converge&quot;,t),x}if(&quot;L&quot;===p)return Math.log(l((Math.pow(10,c)-f)/d)*d+f)/Math.LN10;if(&quot;D&quot;===p){var b=&quot;D2&quot;===u?tt:$,_=s.roundUp(s.mod(c,1),b,o);return Math.floor(c)+Math.log(n.round(Math.pow(10,_),1))/Math.LN10}throw&quot;unrecognized dtick &quot;+String(u)},B.tickText=function(t,e,r,n){var a,o=it(t,e),l=&quot;array&quot;===t.tickmode,c=r||l,u=t.type,f=&quot;category&quot;===u?t.d2l_noadd:t.d2l;if(l&amp;&amp;Array.isArray(t.ticktext)){var h=s.simpleMap(t.range,t.r2l),p=(Math.abs(h[1]-h[0])-(t._lBreaks||0))/1e4;for(a=0;a&lt;t.ticktext.length&amp;&amp;!(Math.abs(e-f(t.tickvals[a]))&lt;p);a++);if(a&lt;t.ticktext.length)return o.text=String(t.ticktext[a]),o}function d(n){if(void 0===n)return!0;if(r)return&quot;none&quot;===n;var i={first:t._tmin,last:t._tmax}[n];return&quot;all&quot;!==n&amp;&amp;e!==i}var g=r?&quot;never&quot;:&quot;none&quot;!==t.exponentformat&amp;&amp;d(t.showexponent)?&quot;hide&quot;:&quot;&quot;;if(&quot;date&quot;===u?function(t,e,r,n){var a=t._tickround,o=r&amp;&amp;t.hoverformat||B.getTickFormat(t);n&amp;&amp;(a=i(a)?4:{y:&quot;m&quot;,m:&quot;d&quot;,d:&quot;M&quot;,M:&quot;S&quot;,S:4}[a]);var l,c=s.formatDate(e.x,o,a,t._dateFormat,t.calendar,t._extraFormat),u=c.indexOf(&quot;\n&quot;);-1!==u&amp;&amp;(l=c.substr(u+1),c=c.substr(0,u));n&amp;&amp;(&quot;00:00:00&quot;===c||&quot;00:00&quot;===c?(c=l,l=&quot;&quot;):8===c.length&amp;&amp;(c=c.replace(/:00$/,&quot;&quot;)));if(l)if(r)&quot;d&quot;===a?c+=&quot;, &quot;+l:c=l+(c?&quot;, &quot;+c:&quot;&quot;);else if(t._inCalcTicks&amp;&amp;t._prevDateHead===l){var f=-1!==(t.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;),h=t._realSide||t.side;(!f&amp;&amp;&quot;top&quot;===h||f&amp;&amp;&quot;bottom&quot;===h)&amp;&amp;(c+=&quot;&lt;br&gt; &quot;)}else t._prevDateHead=l,c+=&quot;&lt;br&gt;&quot;+l;e.text=c}(t,o,r,c):&quot;log&quot;===u?function(t,e,r,n,a){var o=t.dtick,l=e.x,c=t.tickformat,u=&quot;string&quot;==typeof o&amp;&amp;o.charAt(0);&quot;never&quot;===a&amp;&amp;(a=&quot;&quot;);n&amp;&amp;&quot;L&quot;!==u&amp;&amp;(o=&quot;L3&quot;,u=&quot;L&quot;);if(c||&quot;L&quot;===u)e.text=lt(Math.pow(10,l),t,a,n);else if(i(o)||&quot;D&quot;===u&amp;&amp;s.mod(l+.01,1)&lt;.1){var f=Math.round(l),h=Math.abs(f),p=t.exponentformat;&quot;power&quot;===p||ot(p)&amp;&amp;st(f)?(e.text=0===f?1:1===f?&quot;10&quot;:&quot;10&lt;sup&gt;&quot;+(f&gt;1?&quot;&quot;:I)+h+&quot;&lt;/sup&gt;&quot;,e.fontSize*=1.25):(&quot;e&quot;===p||&quot;E&quot;===p)&amp;&amp;h&gt;2?e.text=&quot;1&quot;+p+(f&gt;0?&quot;+&quot;:I)+h:(e.text=lt(Math.pow(10,l),t,&quot;&quot;,&quot;fakehover&quot;),&quot;D1&quot;===o&amp;&amp;&quot;y&quot;===t._id.charAt(0)&amp;&amp;(e.dy-=e.fontSize/6))}else{if(&quot;D&quot;!==u)throw&quot;unrecognized dtick &quot;+String(o);e.text=String(Math.round(Math.pow(10,s.mod(l,1)))),e.fontSize*=.75}if(&quot;D1&quot;===t.dtick){var d=String(e.text).charAt(0);&quot;0&quot;!==d&amp;&amp;&quot;1&quot;!==d||(&quot;y&quot;===t._id.charAt(0)?e.dx-=e.fontSize/4:(e.dy+=e.fontSize/2,e.dx+=(t.range[1]&gt;t.range[0]?1:-1)*e.fontSize*(l&lt;0?.5:.25)))}}(t,o,0,c,g):&quot;category&quot;===u?function(t,e){var r=t._categories[Math.round(e.x)];void 0===r&amp;&amp;(r=&quot;&quot;);e.text=String(r)}(t,o):&quot;multicategory&quot;===u?function(t,e,r){var n=Math.round(e.x),i=t._categories[n]||[],a=void 0===i[1]?&quot;&quot;:String(i[1]),o=void 0===i[0]?&quot;&quot;:String(i[0]);r?e.text=o+&quot; - &quot;+a:(e.text=a,e.text2=o)}(t,o,r):_t(t)?function(t,e,r,n,i){if(&quot;radians&quot;!==t.thetaunit||r)e.text=lt(e.x,t,i,n);else{var a=e.x/180;if(0===a)e.text=&quot;0&quot;;else{var o=function(t){function e(t,e){return Math.abs(t-e)&lt;=1e-6}var r=function(t){for(var r=1;!e(Math.round(t*r)/r,t);)r*=10;return r}(t),n=t*r,i=Math.abs(function t(r,n){return e(n,0)?r:t(n,r%n)}(n,r));return[Math.round(n/i),Math.round(r/i)]}(a);if(o[1]&gt;=100)e.text=lt(s.deg2rad(e.x),t,i,n);else{var l=e.x&lt;0;1===o[1]?1===o[0]?e.text=&quot;\u03c0&quot;:e.text=o[0]+&quot;\u03c0&quot;:e.text=[&quot;&lt;sup&gt;&quot;,o[0],&quot;&lt;/sup&gt;&quot;,&quot;\u2044&quot;,&quot;&lt;sub&gt;&quot;,o[1],&quot;&lt;/sub&gt;&quot;,&quot;\u03c0&quot;].join(&quot;&quot;),l&amp;&amp;(e.text=I+e.text)}}}}(t,o,r,c,g):function(t,e,r,n,i){&quot;never&quot;===i?i=&quot;&quot;:&quot;all&quot;===t.showexponent&amp;&amp;Math.abs(e.x/t.dtick)&lt;1e-6&amp;&amp;(i=&quot;hide&quot;);e.text=lt(e.x,t,i,n)}(t,o,0,c,g),n||(t.tickprefix&amp;&amp;!d(t.showtickprefix)&amp;&amp;(o.text=t.tickprefix+o.text),t.ticksuffix&amp;&amp;!d(t.showticksuffix)&amp;&amp;(o.text+=t.ticksuffix)),&quot;boundaries&quot;===t.tickson||t.showdividers){var m=function(e){var r=t.l2p(e);return r&gt;=0&amp;&amp;r&lt;=t._length?e:null};o.xbnd=[m(o.x-.5),m(o.x+t.dtick-.5)]}return o},B.hoverLabelText=function(t,e,r){if(r!==P&amp;&amp;r!==e)return B.hoverLabelText(t,e)+&quot; - &quot;+B.hoverLabelText(t,r);var n=&quot;log&quot;===t.type&amp;&amp;e&lt;=0,i=B.tickText(t,t.c2l(n?-e:e),&quot;hover&quot;).text;return n?0===e?&quot;0&quot;:I+i:i};var at=[&quot;f&quot;,&quot;p&quot;,&quot;n&quot;,&quot;\u03bc&quot;,&quot;m&quot;,&quot;&quot;,&quot;k&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;];function ot(t){return&quot;SI&quot;===t||&quot;B&quot;===t}function st(t){return t&gt;14||t&lt;-15}function lt(t,e,r,n){var a=t&lt;0,o=e._tickround,l=r||e.exponentformat||&quot;B&quot;,c=e._tickexponent,u=B.getTickFormat(e),f=e.separatethousands;if(n){var h={exponentformat:l,minexponent:e.minexponent,dtick:&quot;none&quot;===e.showexponent?e.dtick:i(t)&amp;&amp;Math.abs(t)||1,range:&quot;none&quot;===e.showexponent?e.range.map(e.r2d):[0,t||1]};nt(h),o=(Number(h._tickround)||0)+4,c=h._tickexponent,e.hoverformat&amp;&amp;(u=e.hoverformat)}if(u)return e._numFormat(u)(t).replace(/-/g,I);var p,d=Math.pow(10,-o)/2;if(&quot;none&quot;===l&amp;&amp;(c=0),(t=Math.abs(t))&lt;d)t=&quot;0&quot;,a=!1;else{if(t+=d,c&amp;&amp;(t*=Math.pow(10,-c),o+=c),0===o)t=String(Math.floor(t));else if(o&lt;0){t=(t=String(Math.round(t))).substr(0,t.length+o);for(var g=o;g&lt;0;g++)t+=&quot;0&quot;}else{var m=(t=String(t)).indexOf(&quot;.&quot;)+1;m&amp;&amp;(t=t.substr(0,m+o).replace(/\.?0+$/,&quot;&quot;))}t=s.numSeparate(t,e._separators,f)}c&amp;&amp;&quot;hide&quot;!==l&amp;&amp;(ot(l)&amp;&amp;st(c)&amp;&amp;(l=&quot;power&quot;),p=c&lt;0?I+-c:&quot;power&quot;!==l?&quot;+&quot;+c:String(c),&quot;e&quot;===l||&quot;E&quot;===l?t+=l+p:&quot;power&quot;===l?t+=&quot;\xd710&lt;sup&gt;&quot;+p+&quot;&lt;/sup&gt;&quot;:&quot;B&quot;===l&amp;&amp;9===c?t+=&quot;B&quot;:ot(l)&amp;&amp;(t+=at[c/3+5]));return a?I+t:t}function ct(t,e){for(var r=[],n={},i=0;i&lt;e.length;i++){var a=e[i];n[a.text2]?n[a.text2].push(a.x):n[a.text2]=[a.x]}for(var o in n)r.push(it(t,s.interp(n[o],.5),o));return r}function ut(t){return void 0!==t.periodX?t.periodX:t.x}function ft(t){return[t.text,t.x,t.axInfo,t.font,t.fontSize,t.fontColor].join(&quot;_&quot;)}function ht(t){var e=t.title.font.size,r=(t.title.text.match(c.BR_TAG_ALL)||[]).length;return t.title.hasOwnProperty(&quot;standoff&quot;)?r?e*(D+r*R):e*D:r?e*(r+1)*R:e}function pt(t,e){var r=t.l2p(e);return r&gt;1&amp;&amp;r&lt;t._length-1}function dt(t){var e=n.select(t),r=e.select(&quot;.text-math-group&quot;);return r.empty()?e.select(&quot;text&quot;):r}function gt(t){return t._id+&quot;.automargin&quot;}function mt(t){return gt(t)+&quot;.mirror&quot;}function vt(t){return t._id+&quot;.rangeslider&quot;}function yt(t,e){for(var r=0;r&lt;e.length;r++)-1===t.indexOf(e[r])&amp;&amp;t.push(e[r])}function xt(t,e,r){var n,i,a=[],o=[],l=t.layout;for(n=0;n&lt;e.length;n++)a.push(B.getFromId(t,e[n]));for(n=0;n&lt;r.length;n++)o.push(B.getFromId(t,r[n]));var c=Object.keys(p),u=[&quot;anchor&quot;,&quot;domain&quot;,&quot;overlaying&quot;,&quot;position&quot;,&quot;side&quot;,&quot;tickangle&quot;,&quot;editType&quot;],f=[&quot;linear&quot;,&quot;log&quot;];for(n=0;n&lt;c.length;n++){var h=c[n],d=a[0][h],g=o[0][h],m=!0,v=!1,y=!1;if(&quot;_&quot;!==h.charAt(0)&amp;&amp;&quot;function&quot;!=typeof d&amp;&amp;-1===u.indexOf(h)){for(i=1;i&lt;a.length&amp;&amp;m;i++){var x=a[i][h];&quot;type&quot;===h&amp;&amp;-1!==f.indexOf(d)&amp;&amp;-1!==f.indexOf(x)&amp;&amp;d!==x?v=!0:x!==d&amp;&amp;(m=!1)}for(i=1;i&lt;o.length&amp;&amp;m;i++){var b=o[i][h];&quot;type&quot;===h&amp;&amp;-1!==f.indexOf(g)&amp;&amp;-1!==f.indexOf(b)&amp;&amp;g!==b?y=!0:o[i][h]!==g&amp;&amp;(m=!1)}m&amp;&amp;(v&amp;&amp;(l[a[0]._name].type=&quot;linear&quot;),y&amp;&amp;(l[o[0]._name].type=&quot;linear&quot;),bt(l,h,a,o,t._fullLayout._dfltTitle))}}for(n=0;n&lt;t._fullLayout.annotations.length;n++){var _=t._fullLayout.annotations[n];-1!==e.indexOf(_.xref)&amp;&amp;-1!==r.indexOf(_.yref)&amp;&amp;s.swapAttrs(l.annotations[n],[&quot;?&quot;])}}function bt(t,e,r,n,i){var a,o=s.nestedProperty,l=o(t[r[0]._name],e).get(),c=o(t[n[0]._name],e).get();for(&quot;title&quot;===e&amp;&amp;(l&amp;&amp;l.text===i.x&amp;&amp;(l.text=i.y),c&amp;&amp;c.text===i.y&amp;&amp;(c.text=i.x)),a=0;a&lt;r.length;a++)o(t,r[a]._name+&quot;.&quot;+e).set(c);for(a=0;a&lt;n.length;a++)o(t,n[a]._name+&quot;.&quot;+e).set(l)}function _t(t){return&quot;angularaxis&quot;===t._id}function wt(t,e){for(var r=e._rangebreaks.length,n=0;n&lt;r;n++){var i=e._rangebreaks[n];if(t&gt;=i.min&amp;&amp;t&lt;i.max)return i.max}return t}B.getTickFormat=function(t){var e,r,n,i,a,o,s,l;function c(t){return&quot;string&quot;!=typeof t?t:Number(t.replace(&quot;M&quot;,&quot;&quot;))*T}function u(t,e){var r=[&quot;L&quot;,&quot;D&quot;];if(typeof t==typeof e){if(&quot;number&quot;==typeof t)return t-e;var n=r.indexOf(t.charAt(0)),i=r.indexOf(e.charAt(0));return n===i?Number(t.replace(/(L|D)/g,&quot;&quot;))-Number(e.replace(/(L|D)/g,&quot;&quot;)):n-i}return&quot;number&quot;==typeof t?1:-1}function f(t,e){var r=null===e[0],n=null===e[1],i=u(t,e[0])&gt;=0,a=u(t,e[1])&lt;=0;return(r||i)&amp;&amp;(n||a)}if(t.tickformatstops&amp;&amp;t.tickformatstops.length&gt;0)switch(t.type){case&quot;date&quot;:case&quot;linear&quot;:for(e=0;e&lt;t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&amp;&amp;(i=t.dtick,a=n.dtickrange,o=void 0,s=void 0,l=void 0,o=c||function(t){return t},s=a[0],l=a[1],(!s&amp;&amp;&quot;number&quot;!=typeof s||o(s)&lt;=o(i))&amp;&amp;(!l&amp;&amp;&quot;number&quot;!=typeof l||o(l)&gt;=o(i)))){r=n;break}break;case&quot;log&quot;:for(e=0;e&lt;t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&amp;&amp;f(t.dtick,n.dtickrange)){r=n;break}}return r?r.value:t.tickformat},B.getSubplots=function(t,e){var r=t._fullLayout._subplots,n=r.cartesian.concat(r.gl2d||[]),i=e?B.findSubplotsWithAxis(n,e):n;return i.sort((function(t,e){var r=t.substr(1).split(&quot;y&quot;),n=e.substr(1).split(&quot;y&quot;);return r[0]===n[0]?+r[1]-+n[1]:+r[0]-+n[0]})),i},B.findSubplotsWithAxis=function(t,e){for(var r=new RegExp(&quot;x&quot;===e._id.charAt(0)?&quot;^&quot;+e._id+&quot;y&quot;:e._id+&quot;$&quot;),n=[],i=0;i&lt;t.length;i++){var a=t[i];r.test(a)&amp;&amp;n.push(a)}return n},B.makeClipPaths=function(t){var e=t._fullLayout;if(!e._hasOnlyLargeSploms){var r,i,a={_offset:0,_length:e.width,_id:&quot;&quot;},o={_offset:0,_length:e.height,_id:&quot;&quot;},s=B.list(t,&quot;x&quot;,!0),l=B.list(t,&quot;y&quot;,!0),c=[];for(r=0;r&lt;s.length;r++)for(c.push({x:s[r],y:o}),i=0;i&lt;l.length;i++)0===r&amp;&amp;c.push({x:a,y:l[i]}),c.push({x:s[r],y:l[i]});var u=e._clips.selectAll(&quot;.axesclip&quot;).data(c,(function(t){return t.x._id+t.y._id}));u.enter().append(&quot;clipPath&quot;).classed(&quot;axesclip&quot;,!0).attr(&quot;id&quot;,(function(t){return&quot;clip&quot;+e._uid+t.x._id+t.y._id})).append(&quot;rect&quot;),u.exit().remove(),u.each((function(t){n.select(this).select(&quot;rect&quot;).attr({x:t.x._offset||0,y:t.y._offset||0,width:t.x._length||1,height:t.y._length||1})}))}},B.draw=function(t,e,r){var n=t._fullLayout;&quot;redraw&quot;===e&amp;&amp;n._paper.selectAll(&quot;g.subplot&quot;).each((function(t){var e=t[0],r=n._plots[e];if(r){var i=r.xaxis,a=r.yaxis;r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;tick&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;tick&quot;).remove(),r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;tick2&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;tick2&quot;).remove(),r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;divider&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;divider&quot;).remove(),r.gridlayer&amp;&amp;r.gridlayer.selectAll(&quot;path&quot;).remove(),r.zerolinelayer&amp;&amp;r.zerolinelayer.selectAll(&quot;path&quot;).remove(),n._infolayer.select(&quot;.g-&quot;+i._id+&quot;title&quot;).remove(),n._infolayer.select(&quot;.g-&quot;+a._id+&quot;title&quot;).remove()}}));var i=e&amp;&amp;&quot;redraw&quot;!==e?e:B.listIds(t);return s.syncOrAsync(i.map((function(e){return function(){if(e){var n=B.getFromId(t,e),i=B.drawOne(t,n,r);return n._r=n.range.slice(),n._rl=s.simpleMap(n._r,n.r2l),i}}})))},B.drawOne=function(t,e,r){var n,i,l;r=r||{},e.setScale();var c=t._fullLayout,p=e._id,d=p.charAt(0),g=B.counterLetter(p),m=c._plots[e._mainSubplot];if(m){var v=m[d+&quot;axislayer&quot;],y=e._mainLinePosition,x=e._mainMirrorPosition,b=e._vals=B.calcTicks(e),_=[e.mirror,y,x].join(&quot;_&quot;);for(n=0;n&lt;b.length;n++)b[n].axInfo=_;e._selections={},e._tickAngles&amp;&amp;(e._prevTickAngles=e._tickAngles),e._tickAngles={},e._depth=null;var w={};if(e.visible){var T,k,M=B.makeTransTickFn(e),A=B.makeTransTickLabelFn(e),S=&quot;inside&quot;===e.ticks,E=&quot;outside&quot;===e.ticks;if(&quot;boundaries&quot;===e.tickson){var C=function(t,e){var r,n=[],i=function(t,e){var r=t.xbnd[e];null!==r&amp;&amp;n.push(s.extendFlat({},t,{x:r}))};if(e.length){for(r=0;r&lt;e.length;r++)i(e[r],0);i(e[r-1],1)}return n}(0,b);k=B.clipEnds(e,C),T=S?k:C}else k=B.clipEnds(e,b),T=S&amp;&amp;&quot;period&quot;!==e.ticklabelmode?k:b;var L=e._gridVals=k,I=function(t,e){var r,n,i=[],a=e.length&amp;&amp;e[e.length-1].x&lt;e[0].x,o=function(t,e){var r=t.xbnd[e];null!==r&amp;&amp;i.push(s.extendFlat({},t,{x:r}))};if(t.showdividers&amp;&amp;e.length){for(r=0;r&lt;e.length;r++){var l=e[r];l.text2!==n&amp;&amp;o(l,a?1:0),n=l.text2}o(e[r-1],a?0:1)}return i}(e,b);if(!c._hasOnlyLargeSploms){var P=e._subplotsWith,z={};for(n=0;n&lt;P.length;n++){i=P[n];var O=(l=c._plots[i])[g+&quot;axis&quot;],D=O._mainAxis._id;if(!z[D]){z[D]=1;var N=&quot;x&quot;===d?&quot;M0,&quot;+O._offset+&quot;v&quot;+O._length:&quot;M&quot;+O._offset+&quot;,0h&quot;+O._length;B.drawGrid(t,e,{vals:L,counterAxis:O,layer:l.gridlayer.select(&quot;.&quot;+p),path:N,transFn:M}),B.drawZeroLine(t,e,{counterAxis:O,layer:l.zerolinelayer,path:N,transFn:M})}}}var j=B.getTickSigns(e),U=[];if(e.ticks){var V,q,H,G=B.makeTickPath(e,y,j[2]);if(e._anchorAxis&amp;&amp;e.mirror&amp;&amp;!0!==e.mirror?(V=B.makeTickPath(e,x,j[3]),q=G+V):(V=&quot;&quot;,q=G),e.showdividers&amp;&amp;E&amp;&amp;&quot;boundaries&quot;===e.tickson){var Y={};for(n=0;n&lt;I.length;n++)Y[I[n].x]=1;H=function(t){return Y[t.x]?V:q}}else H=q;B.drawTicks(t,e,{vals:T,layer:v,path:H,transFn:M}),&quot;allticks&quot;===e.mirror&amp;&amp;(U=Object.keys(e._linepositions||{}))}for(n=0;n&lt;U.length;n++){i=U[n],l=c._plots[i];var W=e._linepositions[i]||[],X=B.makeTickPath(e,W[0],j[0])+B.makeTickPath(e,W[1],j[1]);B.drawTicks(t,e,{vals:T,layer:l[d+&quot;axislayer&quot;],path:X,transFn:M})}var Z=[];if(Z.push((function(){return B.drawLabels(t,e,{vals:b,layer:v,transFn:A,labelFns:B.makeLabelFns(e,y)})})),&quot;multicategory&quot;===e.type){var J={x:2,y:10}[d];Z.push((function(){var r={x:&quot;height&quot;,y:&quot;width&quot;}[d],n=Q()[r]+J+(e._tickAngles[p+&quot;tick&quot;]?e.tickfont.size*R:0);return B.drawLabels(t,e,{vals:ct(e,b),layer:v,cls:p+&quot;tick2&quot;,repositionOnUpdate:!0,secondary:!0,transFn:M,labelFns:B.makeLabelFns(e,y+n*j[4])})})),Z.push((function(){return e._depth=j[4]*(Q(&quot;tick2&quot;)[e.side]-y),function(t,e,r){var n=e._id+&quot;divider&quot;,i=r.vals,a=r.layer.selectAll(&quot;path.&quot;+n).data(i,ft);a.exit().remove(),a.enter().insert(&quot;path&quot;,&quot;:first-child&quot;).classed(n,1).classed(&quot;crisp&quot;,1).call(f.stroke,e.dividercolor).style(&quot;stroke-width&quot;,h.crispRound(t,e.dividerwidth,1)+&quot;px&quot;),a.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path)}(t,e,{vals:I,layer:v,path:B.makeTickPath(e,y,j[4],e._depth),transFn:M})}))}else e.title.hasOwnProperty(&quot;standoff&quot;)&amp;&amp;Z.push((function(){e._depth=j[4]*(Q()[e.side]-y)}));var K=o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(e);return Z.push((function(){var r,n,i,s,l=e.side.charAt(0),u=F[e.side].charAt(0),f=B.getPxPosition(t,e),h=E?e.ticklen:0;if((e.automargin||K)&amp;&amp;(&quot;multicategory&quot;===e.type?r=Q(&quot;tick2&quot;):(r=Q(),&quot;x&quot;===d&amp;&amp;&quot;b&quot;===l&amp;&amp;(e._depth=Math.max(r.width&gt;0?r.bottom-f:0,h)))),e.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var p=[0,1];if(&quot;x&quot;===d){if(&quot;b&quot;===l?n[l]=e._depth:(n[l]=e._depth=Math.max(r.width&gt;0?f-r.top:0,h),p.reverse()),r.width&gt;0){var m=r.right-(e._offset+e._length);m&gt;0&amp;&amp;(n.xr=1,n.r=m);var v=e._offset-r.left;v&gt;0&amp;&amp;(n.xl=0,n.l=v)}}else if(&quot;l&quot;===l?n[l]=e._depth=Math.max(r.height&gt;0?f-r.left:0,h):(n[l]=e._depth=Math.max(r.height&gt;0?r.right-f:0,h),p.reverse()),r.height&gt;0){var y=r.bottom-(e._offset+e._length);y&gt;0&amp;&amp;(n.yb=0,n.b=y);var x=e._offset-r.top;x&gt;0&amp;&amp;(n.yt=1,n.t=x)}n[g]=&quot;free&quot;===e.anchor?e.position:e._anchorAxis.domain[p[0]],e.title.text!==c._dfltTitle[d]&amp;&amp;(n[l]+=ht(e)+(e.title.standoff||0)),e.mirror&amp;&amp;&quot;free&quot;!==e.anchor&amp;&amp;((i={x:0,y:0,r:0,l:0,t:0,b:0})[u]=e.linewidth,e.mirror&amp;&amp;!0!==e.mirror&amp;&amp;(i[u]+=h),!0===e.mirror||&quot;ticks&quot;===e.mirror?i[g]=e._anchorAxis.domain[p[1]]:&quot;all&quot;!==e.mirror&amp;&amp;&quot;allticks&quot;!==e.mirror||(i[g]=[e._counterDomainMin,e._counterDomainMax][p[1]]))}K&amp;&amp;(s=o.getComponentMethod(&quot;rangeslider&quot;,&quot;autoMarginOpts&quot;)(t,e)),a.autoMargin(t,gt(e),n),a.autoMargin(t,mt(e),i),a.autoMargin(t,vt(e),s)})),r.skipTitle||K&amp;&amp;&quot;bottom&quot;===e.side||Z.push((function(){return function(t,e){var r,n=t._fullLayout,i=e._id,a=i.charAt(0),o=e.title.font.size;if(e.title.hasOwnProperty(&quot;standoff&quot;))r=e._depth+e.title.standoff+ht(e);else{var s=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;);if(&quot;multicategory&quot;===e.type)r=e._depth;else{var l=1.5*o;s&amp;&amp;(l=.5*o,&quot;outside&quot;===e.ticks&amp;&amp;(l+=e.ticklen)),r=10+l+(e.linewidth?e.linewidth-1:0)}s||(r+=&quot;x&quot;===a?&quot;top&quot;===e.side?o*(e.showticklabels?1:0):o*(e.showticklabels?1.5:.5):&quot;right&quot;===e.side?o*(e.showticklabels?1:.5):o*(e.showticklabels?.5:0))}var c,f,p,d,g=B.getPxPosition(t,e);&quot;x&quot;===a?(f=e._offset+e._length/2,p=&quot;top&quot;===e.side?g-r:g+r):(p=e._offset+e._length/2,f=&quot;right&quot;===e.side?g+r:g-r,c={rotate:&quot;-90&quot;,offset:0});if(&quot;multicategory&quot;!==e.type){var m=e._selections[e._id+&quot;tick&quot;];if(d={selection:m,side:e.side},m&amp;&amp;m.node()&amp;&amp;m.node().parentNode){var v=h.getTranslate(m.node().parentNode);d.offsetLeft=v.x,d.offsetTop=v.y}e.title.hasOwnProperty(&quot;standoff&quot;)&amp;&amp;(d.pad=0)}return u.draw(t,i+&quot;title&quot;,{propContainer:e,propName:e._name+&quot;.title.text&quot;,placeholder:n._dfltTitle[a],avoid:d,transform:c,attributes:{x:f,y:p,&quot;text-anchor&quot;:&quot;middle&quot;}})}(t,e)})),s.syncOrAsync(Z)}}function Q(t){var r=p+(t||&quot;tick&quot;);return w[r]||(w[r]=function(t,e){var r,n,i,a;t._selections[e].size()?(r=1/0,n=-1/0,i=1/0,a=-1/0,t._selections[e].each((function(){var t=dt(this),e=h.bBox(t.node().parentNode);r=Math.min(r,e.top),n=Math.max(n,e.bottom),i=Math.min(i,e.left),a=Math.max(a,e.right)}))):(r=0,n=0,i=0,a=0);return{top:r,bottom:n,left:i,right:a,height:n-r,width:a-i}}(e,r)),w[r]}},B.getTickSigns=function(t){var e=t._id.charAt(0),r={x:&quot;top&quot;,y:&quot;right&quot;}[e],n=t.side===r?1:-1,i=[-1,1,n,-n];return&quot;inside&quot;!==t.ticks==(&quot;x&quot;===e)&amp;&amp;(i=i.map((function(t){return-t}))),t.side&amp;&amp;i.push({l:-1,t:-1,r:1,b:1}[t.side.charAt(0)]),i},B.makeTransTickFn=function(t){return&quot;x&quot;===t._id.charAt(0)?function(e){return l(t._offset+t.l2p(e.x),0)}:function(e){return l(0,t._offset+t.l2p(e.x))}},B.makeTransTickLabelFn=function(t){var e=function(t){var e=t.ticklabelposition||&quot;&quot;,r=function(t){return-1!==e.indexOf(t)},n=r(&quot;top&quot;),i=r(&quot;left&quot;),a=r(&quot;right&quot;),o=r(&quot;bottom&quot;),s=r(&quot;inside&quot;),l=o||i||n||a;if(!l&amp;&amp;!s)return[0,0];var c=t.side,u=l?(t.tickwidth||0)/2:0,f=3,h=t.tickfont?t.tickfont.size:12;(o||n)&amp;&amp;(u+=h*D,f+=(t.linewidth||0)/2);(i||a)&amp;&amp;(u+=(t.linewidth||0)/2,f+=3);s&amp;&amp;&quot;top&quot;===c&amp;&amp;(f-=h*(1-D));(i||n)&amp;&amp;(u=-u);&quot;bottom&quot;!==c&amp;&amp;&quot;right&quot;!==c||(f=-f);return[l?u:0,s?f:0]}(t),r=e[0],n=e[1];return&quot;x&quot;===t._id.charAt(0)?function(e){return l(r+t._offset+t.l2p(ut(e)),n)}:function(e){return l(n,r+t._offset+t.l2p(ut(e)))}},B.makeTickPath=function(t,e,r,n){n=void 0!==n?n:t.ticklen;var i=t._id.charAt(0),a=(t.linewidth||1)/2;return&quot;x&quot;===i?&quot;M0,&quot;+(e+a*r)+&quot;v&quot;+n*r:&quot;M&quot;+(e+a*r)+&quot;,0h&quot;+n*r},B.makeLabelFns=function(t,e,r){var n=t.ticklabelposition||&quot;&quot;,a=function(t){return-1!==n.indexOf(t)},o=a(&quot;top&quot;),l=a(&quot;left&quot;),c=a(&quot;right&quot;),u=a(&quot;bottom&quot;)||l||o||c,f=a(&quot;inside&quot;),h=&quot;inside&quot;===n&amp;&amp;&quot;inside&quot;===t.ticks||!f&amp;&amp;&quot;outside&quot;===t.ticks&amp;&amp;&quot;boundaries&quot;!==t.tickson,p=0,d=0,g=h?t.ticklen:0;if(f?g*=-1:u&amp;&amp;(g=0),h&amp;&amp;(p+=g,r)){var m=s.deg2rad(r);p=g*Math.cos(m)+1,d=g*Math.sin(m)}t.showticklabels&amp;&amp;(h||t.showline)&amp;&amp;(p+=.2*t.tickfont.size);var v,y,x,b,_,w={labelStandoff:p+=(t.linewidth||1)/2*(f?-1:1),labelShift:d},T=0,k=t.side,M=t._id.charAt(0),A=t.tickangle;if(&quot;x&quot;===M)b=(_=!f&amp;&amp;&quot;bottom&quot;===k||f&amp;&amp;&quot;top&quot;===k)?1:-1,f&amp;&amp;(b*=-1),v=d*b,y=e+p*b,x=_?1:-.2,90===Math.abs(A)&amp;&amp;(f?x+=O:x=-90===A&amp;&amp;&quot;bottom&quot;===k?D:90===A&amp;&amp;&quot;top&quot;===k?O:.5,T=O/2*(A/90)),w.xFn=function(t){return t.dx+v+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*x},w.anchorFn=function(t,e){if(u){if(l)return&quot;end&quot;;if(c)return&quot;start&quot;}return i(e)&amp;&amp;0!==e&amp;&amp;180!==e?e*b&lt;0!==f?&quot;end&quot;:&quot;start&quot;:&quot;middle&quot;},w.heightFn=function(e,r,n){return r&lt;-60||r&gt;60?-.5*n:&quot;top&quot;===t.side!==f?-n:0};else if(&quot;y&quot;===M){if(b=(_=!f&amp;&amp;&quot;left&quot;===k||f&amp;&amp;&quot;right&quot;===k)?1:-1,f&amp;&amp;(b*=-1),v=p,y=d*b,x=0,f||90!==Math.abs(A)||(x=-90===A&amp;&amp;&quot;left&quot;===k||90===A&amp;&amp;&quot;right&quot;===k?D:.5),f){var S=i(A)?+A:0;if(0!==S){var E=s.deg2rad(S);T=Math.abs(Math.sin(E))*D*b,x=0}}w.xFn=function(t){return t.dx+e-(v+t.fontSize*x)*b+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*O},w.anchorFn=function(t,e){return i(e)&amp;&amp;90===Math.abs(e)?&quot;middle&quot;:_?&quot;end&quot;:&quot;start&quot;},w.heightFn=function(e,r,n){return&quot;right&quot;===t.side&amp;&amp;(r*=-1),r&lt;-30?-n:r&lt;30?-.5*n:0}}return w},B.drawTicks=function(t,e,r){r=r||{};var n=e._id+&quot;tick&quot;,i=r.vals;&quot;period&quot;===e.ticklabelmode&amp;&amp;(i=i.slice()).shift();var a=r.layer.selectAll(&quot;path.&quot;+n).data(e.ticks?i:[],ft);a.exit().remove(),a.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;ticks&quot;,1).classed(&quot;crisp&quot;,!1!==r.crisp).call(f.stroke,e.tickcolor).style(&quot;stroke-width&quot;,h.crispRound(t,e.tickwidth,1)+&quot;px&quot;).attr(&quot;d&quot;,r.path),a.attr(&quot;transform&quot;,r.transFn)},B.drawGrid=function(t,e,r){r=r||{};var n=e._id+&quot;grid&quot;,i=r.vals,a=r.counterAxis;if(!1===e.showgrid)i=[];else if(a&amp;&amp;B.shouldShowZeroLine(t,e,a))for(var o=&quot;array&quot;===e.tickmode,s=0;s&lt;i.length;s++){var l=i[s].x;if(o?!l:Math.abs(l)&lt;e.dtick/100){if(i=i.slice(0,s).concat(i.slice(s+1)),!o)break;s--}}var c=r.layer.selectAll(&quot;path.&quot;+n).data(i,ft);c.exit().remove(),c.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;crisp&quot;,!1!==r.crisp),e._gw=h.crispRound(t,e.gridwidth,1),c.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path).call(f.stroke,e.gridcolor||&quot;#ddd&quot;).style(&quot;stroke-width&quot;,e._gw+&quot;px&quot;),&quot;function&quot;==typeof r.path&amp;&amp;c.attr(&quot;d&quot;,r.path)},B.drawZeroLine=function(t,e,r){r=r||r;var n=e._id+&quot;zl&quot;,i=B.shouldShowZeroLine(t,e,r.counterAxis),a=r.layer.selectAll(&quot;path.&quot;+n).data(i?[{x:0,id:e._id}]:[]);a.exit().remove(),a.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;zl&quot;,1).classed(&quot;crisp&quot;,!1!==r.crisp).each((function(){r.layer.selectAll(&quot;path&quot;).sort((function(t,e){return U(t.id,e.id)}))})),a.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path).call(f.stroke,e.zerolinecolor||f.defaultLine).style(&quot;stroke-width&quot;,h.crispRound(t,e.zerolinewidth,e._gw||1)+&quot;px&quot;)},B.drawLabels=function(t,e,r){r=r||{};var a=t._fullLayout,o=e._id,u=o.charAt(0),f=r.cls||o+&quot;tick&quot;,p=r.vals,d=r.labelFns,g=r.secondary?0:e.tickangle,m=(e._prevTickAngles||{})[f],v=r.layer.selectAll(&quot;g.&quot;+f).data(e.showticklabels?p:[],ft),y=[];function x(t,a){var o=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;);t.each((function(t){var s=n.select(this),u=s.select(&quot;.text-math-group&quot;),f=d.anchorFn(t,a),p=r.transFn.call(s.node(),t)+(i(a)&amp;&amp;0!=+a?&quot; rotate(&quot;+a+&quot;,&quot;+d.xFn(t)+&quot;,&quot;+(d.yFn(t)-t.fontSize/2)+&quot;)&quot;:&quot;&quot;),g=c.lineCount(s),m=R*t.fontSize,v=d.heightFn(t,i(a)?+a:0,(g-1)*m);if(v&amp;&amp;(p+=l(0,v)),u.empty()){var y=s.select(&quot;text&quot;);y.attr({transform:p,&quot;text-anchor&quot;:f}),o&amp;&amp;(y.style({opacity:100}),e._hideOutOfRangeInsideTickLabels&amp;&amp;e._hideOutOfRangeInsideTickLabels())}else{var x=h.bBox(u.node()).width*{end:-.5,start:.5}[f];u.attr(&quot;transform&quot;,p+l(x,0))}}))}v.enter().append(&quot;g&quot;).classed(f,1).append(&quot;text&quot;).attr(&quot;text-anchor&quot;,&quot;middle&quot;).each((function(e){var r=n.select(this),i=t._promises.length;r.call(c.positionText,d.xFn(e),d.yFn(e)).call(h.font,e.font,e.fontSize,e.fontColor).text(e.text).call(c.convertToTspans,t),t._promises[i]?y.push(t._promises.pop().then((function(){x(r,g)}))):x(r,g)})),v.exit().remove(),r.repositionOnUpdate&amp;&amp;v.each((function(t){n.select(this).select(&quot;text&quot;).call(c.positionText,d.xFn(t),d.yFn(t))})),e._hideOutOfRangeInsideTickLabels=void 0,-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;(e._hideOutOfRangeInsideTickLabels=function(){var t=s.simpleMap(e.range,e.r2l),r=e.l2p(t[0]),i=e.l2p(t[1]),a=Math.min(r,i)+e._offset,o=Math.max(r,i)+e._offset,l=&quot;x&quot;===e._id.charAt(0);v.each((function(t){var r=n.select(this);if(r.select(&quot;.text-math-group&quot;).empty()){var i=h.bBox(r.node()),s=!1;l?(i.right&gt;o||i.left&lt;a)&amp;&amp;(s=!0):(i.bottom&gt;o||i.top+(e.tickangle?0:t.fontSize/4)&lt;a)&amp;&amp;(s=!0),s&amp;&amp;r.select(&quot;text&quot;).style({opacity:0})}}))}),x(v,m+1?m:g);var b=null;e._selections&amp;&amp;(e._selections[f]=v);var _=[function(){return y.length&amp;&amp;Promise.all(y)}];e.automargin&amp;&amp;a._redrawFromAutoMarginCount&amp;&amp;90===m?(b=90,_.push((function(){x(v,m)}))):_.push((function(){if(x(v,g),p.length&amp;&amp;&quot;x&quot;===u&amp;&amp;!i(g)&amp;&amp;(&quot;log&quot;!==e.type||&quot;D&quot;!==String(e.dtick).charAt(0))){b=0;var t,n=0,a=[];if(v.each((function(t){n=Math.max(n,t.fontSize);var r=e.l2p(t.x),i=dt(this),o=h.bBox(i.node());a.push({top:0,bottom:10,height:10,left:r-o.width/2,right:r+o.width/2+2,width:o.width+2})})),&quot;boundaries&quot;!==e.tickson&amp;&amp;!e.showdividers||r.secondary){var o=p.length,l=Math.abs((p[o-1].x-p[0].x)*e._m)/(o-1),c=e.ticklabelposition||&quot;&quot;,f=function(t){return-1!==c.indexOf(t)},d=f(&quot;top&quot;),m=f(&quot;left&quot;),y=f(&quot;right&quot;),_=f(&quot;bottom&quot;)||m||d||y?(e.tickwidth||0)+6:0,w=l&lt;2.5*n||&quot;multicategory&quot;===e.type;for(t=0;t&lt;a.length-1;t++)if(s.bBoxIntersect(a[t],a[t+1],_)){b=w?90:30;break}}else{var T=2;for(e.ticks&amp;&amp;(T+=e.tickwidth/2),t=0;t&lt;a.length;t++){var k=p[t].xbnd,M=a[t];if(null!==k[0]&amp;&amp;M.left-e.l2p(k[0])&lt;T||null!==k[1]&amp;&amp;e.l2p(k[1])-M.right&lt;T){b=90;break}}}b&amp;&amp;x(v,b)}})),e._tickAngles&amp;&amp;_.push((function(){e._tickAngles[f]=null===b?i(g)?g:0:b}));var w=e._anchorAxis;w&amp;&amp;w.autorange&amp;&amp;-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;!V(a,e._id)&amp;&amp;(a._insideTickLabelsAutorange||(a._insideTickLabelsAutorange={}),a._insideTickLabelsAutorange[w._name+&quot;.autorange&quot;]=w.autorange,_.push((function(){v.each((function(t,r){var n=dt(this);e._vals[r].bb=h.bBox(n.node())}))})));var T=s.syncOrAsync(_);return T&amp;&amp;T.then&amp;&amp;t._promises.push(T),T},B.getPxPosition=function(t,e){var r,n=t._fullLayout._size,i=e._id.charAt(0),a=e.side;return&quot;free&quot;!==e.anchor?r=e._anchorAxis:&quot;x&quot;===i?r={_offset:n.t+(1-(e.position||0))*n.h,_length:0}:&quot;y&quot;===i&amp;&amp;(r={_offset:n.l+(e.position||0)*n.w,_length:0}),&quot;top&quot;===a||&quot;left&quot;===a?r._offset:&quot;bottom&quot;===a||&quot;right&quot;===a?r._offset+r._length:void 0},B.shouldShowZeroLine=function(t,e,r){var n=s.simpleMap(e.range,e.r2l);return n[0]*n[1]&lt;=0&amp;&amp;e.zeroline&amp;&amp;(&quot;linear&quot;===e.type||&quot;-&quot;===e.type)&amp;&amp;!(e.rangebreaks&amp;&amp;e.maskBreaks(0)===P)&amp;&amp;(pt(e,0)||!function(t,e,r,n){var i=r._mainAxis;if(!i)return;var a=t._fullLayout,o=e._id.charAt(0),s=B.counterLetter(e._id),l=e._offset+(Math.abs(n[0])&lt;Math.abs(n[1])==(&quot;x&quot;===o)?0:e._length);function c(t){if(!t.showline||!t.linewidth)return!1;var r=Math.max((t.linewidth+e.zerolinewidth)/2,1);function n(t){return&quot;number&quot;==typeof t&amp;&amp;Math.abs(t-l)&lt;r}if(n(t._mainLinePosition)||n(t._mainMirrorPosition))return!0;var i=t._linepositions||{};for(var a in i)if(n(i[a][0])||n(i[a][1]))return!0}var u=a._plots[r._mainSubplot];if(!(u.mainplotinfo||u).overlays.length)return c(r);for(var f=B.list(t,s),h=0;h&lt;f.length;h++){var p=f[h];if(p._mainAxis===i&amp;&amp;c(p))return!0}}(t,e,r,n)||function(t,e){for(var r=t._fullData,n=e._mainSubplot,i=e._id.charAt(0),a=0;a&lt;r.length;a++){var s=r[a];if(!0===s.visible&amp;&amp;s.xaxis+s.yaxis===n){if(o.traceIs(s,&quot;bar-like&quot;)&amp;&amp;s.orientation==={x:&quot;h&quot;,y:&quot;v&quot;}[i])return!0;if(s.fill&amp;&amp;s.fill.charAt(s.fill.length-1)===i)return!0}}return!1}(t,e))},B.clipEnds=function(t,e){return e.filter((function(e){return pt(t,e.x)}))},B.allowAutoMargin=function(t){for(var e=B.list(t,&quot;&quot;,!0),r=0;r&lt;e.length;r++){var n=e[r];n.automargin&amp;&amp;(a.allowAutoMargin(t,gt(n)),n.mirror&amp;&amp;a.allowAutoMargin(t,mt(n))),o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(n)&amp;&amp;a.allowAutoMargin(t,vt(n))}},B.swap=function(t,e){for(var r=function(t,e){var r,n,i=[];for(r=0;r&lt;e.length;r++){var a=[],o=t._fullData[e[r]].xaxis,s=t._fullData[e[r]].yaxis;if(o&amp;&amp;s){for(n=0;n&lt;i.length;n++)-1===i[n].x.indexOf(o)&amp;&amp;-1===i[n].y.indexOf(s)||a.push(n);if(a.length){var l,c=i[a[0]];if(a.length&gt;1)for(n=1;n&lt;a.length;n++)l=i[a[n]],yt(c.x,l.x),yt(c.y,l.y);yt(c.x,[o]),yt(c.y,[s])}else i.push({x:[o],y:[s]})}}return i}(t,e),n=0;n&lt;r.length;n++)xt(t,r[n].x,r[n].y)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../components/titles&quot;:738,&quot;../../constants/alignment&quot;:745,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;./autorange&quot;:827,&quot;./axis_autotype&quot;:829,&quot;./axis_ids&quot;:831,&quot;./clean_ticks&quot;:833,&quot;./layout_attributes&quot;:842,&quot;./set_convert&quot;:848,d3:169,&quot;fast-isnumeric&quot;:241}],829:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM,o=i.isArrayOrTypedArray,s=i.isDateTime,l=i.cleanNumber,c=Math.round;function u(t,e){return e?n(t):&quot;number&quot;==typeof t}function f(t){return Math.max(1,(t-1)/1e3)}e.exports=function(t,e,r){var i=t,h=r.noMultiCategory;if(o(i)&amp;&amp;!i.length)return&quot;-&quot;;if(!h&amp;&amp;function(t){return o(t[0])&amp;&amp;o(t[1])}(i))return&quot;multicategory&quot;;if(h&amp;&amp;Array.isArray(i[0])){for(var p=[],d=0;d&lt;i.length;d++)if(o(i[d]))for(var g=0;g&lt;i[d].length;g++)p.push(i[d][g]);i=p}if(function(t,e){for(var r=t.length,i=f(r),a=0,o=0,l={},u=0;u&lt;r;u+=i){var h=c(u),p=t[h],d=String(p);l[d]||(l[d]=1,s(p,e)&amp;&amp;a++,n(p)&amp;&amp;o++)}return a&gt;2*o}(i,e))return&quot;date&quot;;var m=&quot;strict&quot;!==r.autotypenumbers;return function(t,e){for(var r=t.length,n=f(r),i=0,o=0,s={},u=0;u&lt;r;u+=n){var h=c(u),p=t[h],d=String(p);if(!s[d]){s[d]=1;var g=typeof p;&quot;boolean&quot;===g?o++:(e?l(p)!==a:&quot;number&quot;===g)?i++:&quot;string&quot;===g&amp;&amp;o++}}return o&gt;2*i}(i,m)?&quot;category&quot;:function(t,e){for(var r=t.length,n=0;n&lt;r;n++)if(u(t[n],e))return!0;return!1}(i,m)?&quot;linear&quot;:&quot;-&quot;}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],830:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../array_container_defaults&quot;),s=t(&quot;./layout_attributes&quot;),l=t(&quot;./tick_value_defaults&quot;),c=t(&quot;./tick_mark_defaults&quot;),u=t(&quot;./tick_label_defaults&quot;),f=t(&quot;./category_order_defaults&quot;),h=t(&quot;./line_grid_defaults&quot;),p=t(&quot;./set_convert&quot;),d=t(&quot;./constants&quot;).WEEKDAY_PATTERN,g=t(&quot;./constants&quot;).HOUR_PATTERN;function m(t,e,r){function i(r,n){return a.coerce(t,e,s.rangebreaks,r,n)}if(i(&quot;enabled&quot;)){var o=i(&quot;bounds&quot;);if(o&amp;&amp;o.length&gt;=2){var l,c,u=&quot;&quot;;if(2===o.length)for(l=0;l&lt;2;l++)if(c=y(o[l])){u=d;break}var f=i(&quot;pattern&quot;,u);if(f===d)for(l=0;l&lt;2;l++)(c=y(o[l]))&amp;&amp;(e.bounds[l]=o[l]=c-1);if(f)for(l=0;l&lt;2;l++)switch(c=o[l],f){case d:if(!n(c))return void(e.enabled=!1);if((c=+c)!==Math.floor(c)||c&lt;0||c&gt;=7)return void(e.enabled=!1);e.bounds[l]=o[l]=c;break;case g:if(!n(c))return void(e.enabled=!1);if((c=+c)&lt;0||c&gt;24)return void(e.enabled=!1);e.bounds[l]=o[l]=c}if(!1===r.autorange){var h=r.range;if(h[0]&lt;h[1]){if(o[0]&lt;h[0]&amp;&amp;o[1]&gt;h[1])return void(e.enabled=!1)}else if(o[0]&gt;h[0]&amp;&amp;o[1]&lt;h[1])return void(e.enabled=!1)}}else{var p=i(&quot;values&quot;);if(!p||!p.length)return void(e.enabled=!1);i(&quot;dvalue&quot;)}}}e.exports=function(t,e,r,n,g){var v,y=n.letter,x=n.font||{},b=n.splomStash||{},_=r(&quot;visible&quot;,!n.visibleDflt),w=e._template||{},T=e.type||w.type||&quot;-&quot;;&quot;date&quot;===T&amp;&amp;(i.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;,n.calendar),n.noTicklabelmode||(v=r(&quot;ticklabelmode&quot;)));n.noTicklabelposition&amp;&amp;&quot;multicategory&quot;!==T||a.coerce(t,e,{ticklabelposition:{valType:&quot;enumerated&quot;,dflt:&quot;outside&quot;,values:&quot;period&quot;===v?[&quot;outside&quot;,&quot;inside&quot;]:&quot;x&quot;===y?[&quot;outside&quot;,&quot;inside&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;]:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;]}},&quot;ticklabelposition&quot;),p(e,g);var k=!e.isValidRange(t.range);k&amp;&amp;n.reverseDflt&amp;&amp;(k=&quot;reversed&quot;),!r(&quot;autorange&quot;,k)||&quot;linear&quot;!==T&amp;&amp;&quot;-&quot;!==T||r(&quot;rangemode&quot;),r(&quot;range&quot;),e.cleanRange(),f(t,e,r,n),&quot;category&quot;===T||n.noHover||r(&quot;hoverformat&quot;);var M=r(&quot;color&quot;),A=M!==s.color.dflt?M:x.color,S=b.label||g._dfltTitle[y];if(u(t,e,r,T,n,{pass:1}),!_)return e;r(&quot;title.text&quot;,S),a.coerceFont(r,&quot;title.font&quot;,{family:x.family,size:Math.round(1.2*x.size),color:A}),l(t,e,r,T),u(t,e,r,T,n,{pass:2}),c(t,e,r,n),h(t,e,r,{dfltColor:M,bgColor:n.bgColor,showGrid:n.showGrid,attributes:s}),(e.showline||e.ticks)&amp;&amp;r(&quot;mirror&quot;),n.automargin&amp;&amp;r(&quot;automargin&quot;);var E,C=&quot;multicategory&quot;===T;n.noTickson||&quot;category&quot;!==T&amp;&amp;!C||!e.ticks&amp;&amp;!e.showgrid||(C&amp;&amp;(E=&quot;boundaries&quot;),&quot;boundaries&quot;===r(&quot;tickson&quot;,E)&amp;&amp;delete e.ticklabelposition);C&amp;&amp;(r(&quot;showdividers&quot;)&amp;&amp;(r(&quot;dividercolor&quot;),r(&quot;dividerwidth&quot;)));if(&quot;date&quot;===T)if(o(t,e,{name:&quot;rangebreaks&quot;,inclusionAttr:&quot;enabled&quot;,handleItemDefaults:m}),e.rangebreaks.length){for(var L=0;L&lt;e.rangebreaks.length;L++)if(e.rangebreaks[L].pattern===d){e._hasDayOfWeekBreaks=!0;break}if(p(e,g),g._has(&quot;scattergl&quot;)||g._has(&quot;splom&quot;))for(var I=0;I&lt;n.data.length;I++){var P=n.data[I];&quot;scattergl&quot;!==P.type&amp;&amp;&quot;splom&quot;!==P.type||(P.visible=!1,a.warn(P.type+&quot; traces do not work on axes with rangebreaks. Setting trace &quot;+P.index+&quot; to `visible: false`.&quot;))}}else delete e.rangebreaks;return e};var v={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function y(t){if(&quot;string&quot;==typeof t)return v[t.substr(0,3).toLowerCase()]}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../array_container_defaults&quot;:823,&quot;./category_order_defaults&quot;:832,&quot;./constants&quot;:834,&quot;./layout_attributes&quot;:842,&quot;./line_grid_defaults&quot;:844,&quot;./set_convert&quot;:848,&quot;./tick_label_defaults&quot;:849,&quot;./tick_mark_defaults&quot;:850,&quot;./tick_value_defaults&quot;:851,&quot;fast-isnumeric&quot;:241}],831:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./constants&quot;);function a(t,e){if(e&amp;&amp;e.length)for(var r=0;r&lt;e.length;r++)if(e[r][t])return!0;return!1}r.id2name=function(t){if(&quot;string&quot;==typeof t&amp;&amp;t.match(i.AX_ID_PATTERN)){var e=t.split(&quot; &quot;)[0].substr(1);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),t.charAt(0)+&quot;axis&quot;+e}},r.name2id=function(t){if(t.match(i.AX_NAME_PATTERN)){var e=t.substr(5);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),t.charAt(0)+e}},r.cleanId=function(t,e,r){var n=/( domain)$/.test(t);if(&quot;string&quot;==typeof t&amp;&amp;t.match(i.AX_ID_PATTERN)&amp;&amp;(!e||t.charAt(0)===e)&amp;&amp;(!n||r)){var a=t.split(&quot; &quot;)[0].substr(1).replace(/^0+/,&quot;&quot;);return&quot;1&quot;===a&amp;&amp;(a=&quot;&quot;),t.charAt(0)+a+(n&amp;&amp;r?&quot; domain&quot;:&quot;&quot;)}},r.list=function(t,e,n){var i=t._fullLayout;if(!i)return[];var a,o=r.listIds(t,e),s=new Array(o.length);for(a=0;a&lt;o.length;a++){var l=o[a];s[a]=i[l.charAt(0)+&quot;axis&quot;+l.substr(1)]}if(!n){var c=i._subplots.gl3d||[];for(a=0;a&lt;c.length;a++){var u=i[c[a]];e?s.push(u[e+&quot;axis&quot;]):s.push(u.xaxis,u.yaxis,u.zaxis)}}return s},r.listIds=function(t,e){var r=t._fullLayout;if(!r)return[];var n=r._subplots;return e?n[e+&quot;axis&quot;]:n.xaxis.concat(n.yaxis)},r.getFromId=function(t,e,n){var i=t._fullLayout;return e=void 0===e||&quot;string&quot;!=typeof e?e:e.replace(&quot; domain&quot;,&quot;&quot;),&quot;x&quot;===n?e=e.replace(/y[0-9]*/,&quot;&quot;):&quot;y&quot;===n&amp;&amp;(e=e.replace(/x[0-9]*/,&quot;&quot;)),i[r.id2name(e)]},r.getFromTrace=function(t,e,i){var a=t._fullLayout,o=null;if(n.traceIs(e,&quot;gl3d&quot;)){var s=e.scene;&quot;scene&quot;===s.substr(0,5)&amp;&amp;(o=a[s][i+&quot;axis&quot;])}else o=r.getFromId(t,e[i+&quot;axis&quot;]||i);return o},r.idSort=function(t,e){var r=t.charAt(0),n=e.charAt(0);return r!==n?r&gt;n?1:-1:+(t.substr(1)||1)-+(e.substr(1)||1)},r.ref2id=function(t){return!!/^[xyz]/.test(t)&amp;&amp;t.split(&quot; &quot;)[0]},r.isLinked=function(t,e){return a(e,t._axisMatchGroups)||a(e,t._axisConstraintGroups)}},{&quot;../../registry&quot;:911,&quot;./constants&quot;:834}],832:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){if(&quot;category&quot;===e.type){var i,a=t.categoryarray,o=Array.isArray(a)&amp;&amp;a.length&gt;0;o&amp;&amp;(i=&quot;array&quot;);var s,l=r(&quot;categoryorder&quot;,i);&quot;array&quot;===l&amp;&amp;(s=r(&quot;categoryarray&quot;)),o||&quot;array&quot;!==l||(l=e.categoryorder=&quot;trace&quot;),&quot;trace&quot;===l?e._initialCategories=[]:&quot;array&quot;===l?e._initialCategories=s.slice():(s=function(t,e){var r,n,i,a=e.dataAttr||t._id.charAt(0),o={};if(e.axData)r=e.axData;else for(r=[],n=0;n&lt;e.data.length;n++){var s=e.data[n];s[a+&quot;axis&quot;]===t._id&amp;&amp;r.push(s)}for(n=0;n&lt;r.length;n++){var l=r[n][a];for(i=0;i&lt;l.length;i++){var c=l[i];null!=c&amp;&amp;(o[c]=1)}}return Object.keys(o)}(e,n).sort(),&quot;category ascending&quot;===l?e._initialCategories=s:&quot;category descending&quot;===l&amp;&amp;(e._initialCategories=s.reverse()))}}},{}],833:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;),o=a.ONEDAY,s=a.ONEWEEK;r.dtick=function(t,e){var r=&quot;log&quot;===e,i=&quot;date&quot;===e,a=&quot;category&quot;===e,s=i?o:1;if(!t)return s;if(n(t))return(t=Number(t))&lt;=0?s:a?Math.max(1,Math.round(t)):i?Math.max(.1,t):t;if(&quot;string&quot;!=typeof t||!i&amp;&amp;!r)return s;var l=t.charAt(0),c=t.substr(1);return(c=n(c)?Number(c):0)&lt;=0||!(i&amp;&amp;&quot;M&quot;===l&amp;&amp;c===Math.round(c)||r&amp;&amp;&quot;L&quot;===l||r&amp;&amp;&quot;D&quot;===l&amp;&amp;(1===c||2===c))?s:t},r.tick0=function(t,e,r,a){return&quot;date&quot;===e?i.cleanDate(t,i.dateTick0(r,a%s==0?1:0)):&quot;D1&quot;!==a&amp;&amp;&quot;D2&quot;!==a?n(t)?Number(t):0:void 0}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],834:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/regex&quot;).counter;e.exports={idRegex:{x:n(&quot;x&quot;,&quot;( domain)?&quot;),y:n(&quot;y&quot;,&quot;( domain)?&quot;)},attrRegex:n(&quot;[xy]axis&quot;),xAxisMatch:n(&quot;xaxis&quot;),yAxisMatch:n(&quot;yaxis&quot;),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:&quot;hour&quot;,WEEKDAY_PATTERN:&quot;day of week&quot;,MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:&quot;-select&quot;,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:[&quot;imagelayer&quot;,&quot;heatmaplayer&quot;,&quot;contourcarpetlayer&quot;,&quot;contourlayer&quot;,&quot;funnellayer&quot;,&quot;waterfalllayer&quot;,&quot;barlayer&quot;,&quot;carpetlayer&quot;,&quot;violinlayer&quot;,&quot;boxlayer&quot;,&quot;ohlclayer&quot;,&quot;scattercarpetlayer&quot;,&quot;scatterlayer&quot;],clipOnAxisFalseQuery:[&quot;.scatterlayer&quot;,&quot;.barlayer&quot;,&quot;.funnellayer&quot;,&quot;.waterfalllayer&quot;],layerValue2layerClass:{&quot;above traces&quot;:&quot;above&quot;,&quot;below traces&quot;:&quot;below&quot;}}},{&quot;../../lib/regex&quot;:795}],835:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./autorange&quot;),a=t(&quot;./axis_ids&quot;).id2name,o=t(&quot;./layout_attributes&quot;),s=t(&quot;./scale_zoom&quot;),l=t(&quot;./set_convert&quot;),c=t(&quot;../../constants/numerical&quot;).ALMOST_EQUAL,u=t(&quot;../../constants/alignment&quot;).FROM_BL;function f(t,e,r){var i=r.axIds,s=r.layoutOut,l=r.hasImage,c=s._axisConstraintGroups,u=s._axisMatchGroups,f=e._id,g=f.charAt(0),m=((s._splomAxes||{})[g]||{})[f]||{},v=e._id,y=&quot;x&quot;===v.charAt(0);function x(r,i){return n.coerce(t,e,o,r,i)}e._matchGroup=null,e._constraintGroup=null,x(&quot;constrain&quot;,l?&quot;domain&quot;:&quot;range&quot;),n.coerce(t,e,{constraintoward:{valType:&quot;enumerated&quot;,values:y?[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;]:[&quot;bottom&quot;,&quot;middle&quot;,&quot;top&quot;],dflt:y?&quot;center&quot;:&quot;middle&quot;}},&quot;constraintoward&quot;);var b,_,w=e.type,T=[];for(b=0;b&lt;i.length;b++){if((_=i[b])!==v)s[a(_)].type===w&amp;&amp;T.push(_)}var k=p(c,v);if(k){var M=[];for(b=0;b&lt;T.length;b++)k[_=T[b]]||M.push(_);T=M}var A,S,E=T.length;E&amp;&amp;(t.matches||m.matches)&amp;&amp;(A=n.coerce(t,e,{matches:{valType:&quot;enumerated&quot;,values:T,dflt:-1!==T.indexOf(m.matches)?m.matches:void 0}},&quot;matches&quot;));var C=l&amp;&amp;!y?e.anchor:void 0;if(E&amp;&amp;!A&amp;&amp;(t.scaleanchor||C)&amp;&amp;(S=n.coerce(t,e,{scaleanchor:{valType:&quot;enumerated&quot;,values:T}},&quot;scaleanchor&quot;,C)),A){e._matchGroup=d(u,v,A,1);var L=s[a(A)],I=h(s,e)/h(s,L);y!==(&quot;x&quot;===A.charAt(0))&amp;&amp;(I=(y?&quot;x&quot;:&quot;y&quot;)+I),d(c,v,A,I)}else t.matches&amp;&amp;-1!==i.indexOf(t.matches)&amp;&amp;n.warn(&quot;ignored &quot;+e._name+'.matches: &quot;'+t.matches+'&quot; to avoid an infinite loop');if(S){var P=x(&quot;scaleratio&quot;);P||(P=e.scaleratio=1),d(c,v,S,P)}else t.scaleanchor&amp;&amp;-1!==i.indexOf(t.scaleanchor)&amp;&amp;n.warn(&quot;ignored &quot;+e._name+'.scaleanchor: &quot;'+t.scaleanchor+'&quot; to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function h(t,e){var r=e.domain;return r||(r=t[a(e.overlaying)].domain),r[1]-r[0]}function p(t,e){for(var r=0;r&lt;t.length;r++)if(t[r][e])return t[r];return null}function d(t,e,r,n){var i,a,o,s,l,c=p(t,e);null===c?((c={})[e]=1,l=t.length,t.push(c)):l=t.indexOf(c);var u=Object.keys(c);for(i=0;i&lt;t.length;i++)if(o=t[i],i!==l&amp;&amp;o[r]){var f=o[r];for(a=0;a&lt;u.length;a++)o[s=u[a]]=g(f,g(n,c[s]));return void t.splice(l,1)}if(1!==n)for(a=0;a&lt;u.length;a++){var h=u[a];c[h]=g(n,c[h])}c[r]=1}function g(t,e){var r,n,i=&quot;&quot;,a=&quot;&quot;;&quot;string&quot;==typeof t&amp;&amp;(r=(i=t.match(/^[xy]*/)[0]).length,t=+t.substr(r)),&quot;string&quot;==typeof e&amp;&amp;(n=(a=e.match(/^[xy]*/)[0]).length,e=+e.substr(n));var o=t*e;return r||n?r&amp;&amp;n&amp;&amp;i.charAt(0)!==a.charAt(0)?r===n?o:(r&gt;n?i.substr(n):a.substr(r))+o:i+a+t*e:o}function m(t,e){for(var r=e._size,n=r.h/r.w,i={},a=Object.keys(t),o=0;o&lt;a.length;o++){var s=a[o],l=t[s];if(&quot;string&quot;==typeof l){var c=l.match(/^[xy]*/)[0],u=c.length;l=+l.substr(u);for(var f=&quot;y&quot;===c.charAt(0)?n:1/n,h=0;h&lt;u;h++)l*=f}i[s]=l}return i}function v(t,e){var r=t._inputDomain,n=u[t.constraintoward],i=r[0]+(r[1]-r[0])*n;t.domain=t._input.domain=[i+(r[0]-i)/e,i+(r[1]-i)/e],t.setScale()}r.handleDefaults=function(t,e,r){var i,o,s,c,u,h,p,d,g=r.axIds,m=r.axHasImage,v=e._axisConstraintGroups=[],y=e._axisMatchGroups=[];for(i=0;i&lt;g.length;i++)f(u=t[c=a(g[i])],h=e[c],{axIds:g,layoutOut:e,hasImage:m[c]});function x(t,r){for(i=0;i&lt;t.length;i++)for(s in o=t[i])e[a(s)][r]=o}for(x(y,&quot;_matchGroup&quot;),i=0;i&lt;v.length;i++)for(s in o=v[i])if((h=e[a(s)]).fixedrange){for(var b in o){var _=a(b);!1===(t[_]||{}).fixedrange&amp;&amp;n.warn(&quot;fixedrange was specified as false for axis &quot;+_+&quot; but was overridden because another axis in its constraint group has fixedrange true&quot;),e[_].fixedrange=!0}break}for(i=0;i&lt;v.length;){for(s in o=v[i]){(h=e[a(s)])._matchGroup&amp;&amp;Object.keys(h._matchGroup).length===Object.keys(o).length&amp;&amp;(v.splice(i,1),i--);break}i++}x(v,&quot;_constraintGroup&quot;);var w=[&quot;constrain&quot;,&quot;range&quot;,&quot;autorange&quot;,&quot;rangemode&quot;,&quot;rangebreaks&quot;,&quot;categoryorder&quot;,&quot;categoryarray&quot;],T=!1,k=!1;function M(){d=h[p],&quot;rangebreaks&quot;===p&amp;&amp;(k=h._hasDayOfWeekBreaks)}for(i=0;i&lt;y.length;i++){o=y[i];for(var A=0;A&lt;w.length;A++){var S;for(s in p=w[A],d=null,o)if(u=t[c=a(s)],h=e[c],p in h){if(!h.matches&amp;&amp;(S=h,p in u)){M();break}null===d&amp;&amp;p in u&amp;&amp;M()}if(&quot;range&quot;===p&amp;&amp;d&amp;&amp;(T=!0),&quot;autorange&quot;===p&amp;&amp;null===d&amp;&amp;T&amp;&amp;(d=!1),null===d&amp;&amp;p in S&amp;&amp;(d=S[p]),null!==d)for(s in o)(h=e[a(s)])[p]=&quot;range&quot;===p?d.slice():d,&quot;rangebreaks&quot;===p&amp;&amp;(h._hasDayOfWeekBreaks=k,l(h,e))}}},r.enforce=function(t){var e,r,n,o,l,u,f,h,p=t._fullLayout,d=p._axisConstraintGroups||[];for(e=0;e&lt;d.length;e++){n=m(d[e],p);var g=Object.keys(n),y=1/0,x=0,b=1/0,_={},w={},T=!1;for(r=0;r&lt;g.length;r++)w[o=g[r]]=l=p[a(o)],l._inputDomain?l.domain=l._inputDomain.slice():l._inputDomain=l.domain.slice(),l._inputRange||(l._inputRange=l.range.slice()),l.setScale(),_[o]=u=Math.abs(l._m)/n[o],y=Math.min(y,u),&quot;domain&quot;!==l.constrain&amp;&amp;l._constraintShrinkable||(b=Math.min(b,u)),delete l._constraintShrinkable,x=Math.max(x,u),&quot;domain&quot;===l.constrain&amp;&amp;(T=!0);if(!(y&gt;c*x)||T)for(r=0;r&lt;g.length;r++)if(u=_[o=g[r]],f=(l=w[o]).constrain,u!==b||&quot;domain&quot;===f)if(h=u/b,&quot;range&quot;===f)s(l,h);else{var k=l._inputDomain,M=(l.domain[1]-l.domain[0])/(k[1]-k[0]),A=(l.r2l(l.range[1])-l.r2l(l.range[0]))/(l.r2l(l._inputRange[1])-l.r2l(l._inputRange[0]));if((h/=M)*A&lt;1){l.domain=l._input.domain=k.slice(),s(l,h);continue}if(A&lt;1&amp;&amp;(l.range=l._input.range=l._inputRange.slice(),h*=A),l.autorange){var S=l.r2l(l.range[0]),E=l.r2l(l.range[1]),C=(S+E)/2,L=C,I=C,P=Math.abs(E-C),z=C-P*h*1.0001,O=C+P*h*1.0001,D=i.makePadFn(p,l,0),R=i.makePadFn(p,l,1);v(l,h);var F,B,N=Math.abs(l._m),j=i.concatExtremes(t,l),U=j.min,V=j.max;for(B=0;B&lt;U.length;B++)(F=U[B].val-D(U[B])/N)&gt;z&amp;&amp;F&lt;L&amp;&amp;(L=F);for(B=0;B&lt;V.length;B++)(F=V[B].val+R(V[B])/N)&lt;O&amp;&amp;F&gt;I&amp;&amp;(I=F);h/=(I-L)/(2*P),L=l.l2r(L),I=l.l2r(I),l.range=l._input.range=S&lt;E?[L,I]:[I,L]}v(l,h)}}},r.getAxisGroup=function(t,e){for(var r=t._axisMatchGroups,n=0;n&lt;r.length;n++){if(r[n][e])return&quot;g&quot;+n}return e},r.clean=function(t,e){if(e._inputDomain){for(var r=!1,n=e._id,i=t._fullLayout._axisConstraintGroups,a=0;a&lt;i.length;a++)if(i[a][n]){r=!0;break}r&amp;&amp;&quot;domain&quot;===e.constrain||(e._input.domain=e.domain=e._inputDomain,delete e._inputDomain)}}},{&quot;../../constants/alignment&quot;:745,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./autorange&quot;:827,&quot;./axis_ids&quot;:831,&quot;./layout_attributes&quot;:842,&quot;./scale_zoom&quot;:846,&quot;./set_convert&quot;:848}],836:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;has-passive-events&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/color&quot;),f=t(&quot;../../components/drawing&quot;),h=t(&quot;../../components/fx&quot;),p=t(&quot;./axes&quot;),d=t(&quot;../../lib/setcursor&quot;),g=t(&quot;../../components/dragelement&quot;),m=t(&quot;../../components/dragelement/helpers&quot;),v=m.selectingOrDrawing,y=m.freeMode,x=t(&quot;../../constants/alignment&quot;).FROM_TL,b=t(&quot;../../lib/clear_gl_canvases&quot;),_=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,w=t(&quot;../plots&quot;),T=t(&quot;./axis_ids&quot;).getFromId,k=t(&quot;./select&quot;).prepSelect,M=t(&quot;./select&quot;).clearSelect,A=t(&quot;./select&quot;).selectOnClick,S=t(&quot;./scale_zoom&quot;),E=t(&quot;./constants&quot;),C=E.MINDRAG,L=E.MINZOOM,I=!0;function P(t,e,r,n){var i=s.ensureSingle(t.draglayer,e,r,(function(e){e.classed(&quot;drag&quot;,!0).style({fill:&quot;transparent&quot;,&quot;stroke-width&quot;:0}).attr(&quot;data-subplot&quot;,t.id)}));return i.call(d,n),i.node()}function z(t,e,r,i,a,o,s){var l=P(t,&quot;rect&quot;,e,r);return n.select(l).call(f.setRect,i,a,o,s),l}function O(t,e){for(var r=0;r&lt;t.length;r++)if(!t[r].fixedrange)return e;return&quot;&quot;}function D(t,e,r,n,i){for(var a=0;a&lt;t.length;a++){var o=t[a];if(!o.fixedrange)if(o.rangebreaks){var s=&quot;y&quot;===o._id.charAt(0),l=s?1-e:e,c=s?1-r:r;n[o._name+&quot;.range[0]&quot;]=o.l2r(o.p2l(l*o._length)),n[o._name+&quot;.range[1]&quot;]=o.l2r(o.p2l(c*o._length))}else{var u=o._rl[0],f=o._rl[1]-u;n[o._name+&quot;.range[0]&quot;]=o.l2r(u+f*e),n[o._name+&quot;.range[1]&quot;]=o.l2r(u+f*r)}}if(i&amp;&amp;i.length){var h=(e+(1-r))/2;D(i,h,1-h,n,[])}}function R(t,e){for(var r=0;r&lt;t.length;r++){var n=t[r];if(!n.fixedrange)if(n.rangebreaks){var i=n._length,a=(n.p2l(0+e)-n.p2l(0)+(n.p2l(i+e)-n.p2l(i)))/2;n.range=[n.l2r(n._rl[0]-a),n.l2r(n._rl[1]-a)]}else n.range=[n.l2r(n._rl[0]-e/n._m),n.l2r(n._rl[1]-e/n._m)]}}function F(t){return 1-(t&gt;=0?Math.min(t,.9):1/(1/Math.max(t,-.3)+3.222))}function B(t,e,r,n,i){return t.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox&quot;).style({fill:e&gt;.2?&quot;rgba(0,0,0,0)&quot;:&quot;rgba(255,255,255,0)&quot;,&quot;stroke-width&quot;:0}).attr(&quot;transform&quot;,l(r,n)).attr(&quot;d&quot;,i+&quot;Z&quot;)}function N(t,e,r){return t.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).style({fill:u.background,stroke:u.defaultLine,&quot;stroke-width&quot;:1,opacity:0}).attr(&quot;transform&quot;,l(e,r)).attr(&quot;d&quot;,&quot;M0,0Z&quot;)}function j(t,e,r,n,i,a){t.attr(&quot;d&quot;,n+&quot;M&quot;+r.l+&quot;,&quot;+r.t+&quot;v&quot;+r.h+&quot;h&quot;+r.w+&quot;v-&quot;+r.h+&quot;h-&quot;+r.w+&quot;Z&quot;),U(t,e,i,a)}function U(t,e,r,n){r||(t.transition().style(&quot;fill&quot;,n&gt;.2?&quot;rgba(0,0,0,0.4)&quot;:&quot;rgba(255,255,255,0.3)&quot;).duration(200),e.transition().style(&quot;opacity&quot;,1).duration(200))}function V(t){n.select(t).selectAll(&quot;.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners&quot;).remove()}function q(t){I&amp;&amp;t.data&amp;&amp;t._context.showTips&amp;&amp;(s.notifier(s._(t,&quot;Double-click to zoom back out&quot;),&quot;long&quot;),I=!1)}function H(t){var e=Math.floor(Math.min(t.b-t.t,t.r-t.l,L)/2);return&quot;M&quot;+(t.l-3.5)+&quot;,&quot;+(t.t-.5+e)+&quot;h3v&quot;+-e+&quot;h&quot;+e+&quot;v-3h-&quot;+(e+3)+&quot;ZM&quot;+(t.r+3.5)+&quot;,&quot;+(t.t-.5+e)+&quot;h-3v&quot;+-e+&quot;h&quot;+-e+&quot;v-3h&quot;+(e+3)+&quot;ZM&quot;+(t.r+3.5)+&quot;,&quot;+(t.b+.5-e)+&quot;h-3v&quot;+e+&quot;h&quot;+-e+&quot;v3h&quot;+(e+3)+&quot;ZM&quot;+(t.l-3.5)+&quot;,&quot;+(t.b+.5-e)+&quot;h3v&quot;+e+&quot;h&quot;+e+&quot;v3h-&quot;+(e+3)+&quot;Z&quot;}function G(t,e,r,n,i){for(var a,o,l,c,u=!1,f={},h={},p=(i||{}).xaHash,d=(i||{}).yaHash,g=0;g&lt;e.length;g++){var m=e[g];for(a in r)if(m[a]){for(l in m)i&amp;&amp;(p[l]||d[l])||(&quot;x&quot;===l.charAt(0)?r:n)[l]||(f[l]=a);for(o in n)i&amp;&amp;(p[o]||d[o])||!m[o]||(u=!0)}for(o in n)if(m[o])for(c in m)i&amp;&amp;(p[c]||d[c])||(&quot;x&quot;===c.charAt(0)?r:n)[c]||(h[c]=o)}u&amp;&amp;(s.extendFlat(f,h),h={});var v={},y=[];for(l in f){var x=T(t,l);y.push(x),v[x._id]=x}var b={},_=[];for(c in h){var w=T(t,c);_.push(w),b[w._id]=w}return{xaHash:v,yaHash:b,xaxes:y,yaxes:_,xLinks:f,yLinks:h,isSubplotConstrained:u}}function Y(t,e){if(a){var r=void 0!==t.onwheel?&quot;wheel&quot;:&quot;mousewheel&quot;;t._onwheel&amp;&amp;t.removeEventListener(r,t._onwheel),t._onwheel=e,t.addEventListener(r,e,{passive:!1})}else void 0!==t.onwheel?t.onwheel=e:void 0!==t.onmousewheel?t.onmousewheel=e:t.isAddedWheelEvent||(t.isAddedWheelEvent=!0,t.addEventListener(&quot;wheel&quot;,e,{passive:!1}))}function W(t){var e=[];for(var r in t)e.push(t[r]);return e}e.exports={makeDragBox:function(t,e,r,a,l,u,d,m){var I,P,U,X,Z,J,K,Q,$,tt,et,rt,nt,it,at,ot,st,lt,ct,ut,ft,ht,pt,dt=t._fullLayout._zoomlayer,gt=d+m===&quot;nsew&quot;,mt=1===(d+m).length;function vt(){if(I=e.xaxis,P=e.yaxis,$=I._length,tt=P._length,K=I._offset,Q=P._offset,(U={})[I._id]=I,(X={})[P._id]=P,d&amp;&amp;m)for(var r=e.overlays,n=0;n&lt;r.length;n++){var i=r[n].xaxis;U[i._id]=i;var a=r[n].yaxis;X[a._id]=a}Z=W(U),J=W(X),nt=O(Z,m),it=O(J,d),at=!it&amp;&amp;!nt,rt=G(t,t._fullLayout._axisMatchGroups,U,X);var o=(et=G(t,t._fullLayout._axisConstraintGroups,U,X,rt)).isSubplotConstrained||rt.isSubplotConstrained;ot=m||o,st=d||o;var s=t._fullLayout;lt=s._has(&quot;scattergl&quot;),ct=s._has(&quot;splom&quot;),ut=s._has(&quot;svg&quot;)}vt();var yt=function(t,e,r){if(!t)return&quot;pointer&quot;;if(&quot;nsew&quot;===t)return r?&quot;&quot;:&quot;pan&quot;===e?&quot;move&quot;:&quot;crosshair&quot;;return t.toLowerCase()+&quot;-resize&quot;}(it+nt,t._fullLayout.dragmode,gt),xt=z(e,d+m+&quot;drag&quot;,yt,r,a,l,u);if(at&amp;&amp;!gt)return xt.onmousedown=null,xt.style.pointerEvents=&quot;none&quot;,xt;var bt,_t,wt,Tt,kt,Mt,At,St,Et,Ct,Lt={element:xt,gd:t,plotinfo:e};function It(){Lt.plotinfo.selection=!1,M(t)}function Pt(t,r){var i=Lt.gd;if(i._fullLayout._activeShapeIndex&gt;=0)i._fullLayout._deactivateShape(i);else{var a=i._fullLayout.clickmode;if(V(i),2!==t||mt||qt(),gt)a.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;A(r,i,Z,J,e.id,Lt),a.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;h.click(i,r,e.id);else if(1===t&amp;&amp;mt){var s=d?P:I,l=&quot;s&quot;===d||&quot;w&quot;===m?0:1,u=s._name+&quot;.range[&quot;+l+&quot;]&quot;,f=function(t,e){var r,i=t.range[e],a=Math.abs(i-t.range[1-e]);return&quot;date&quot;===t.type?i:&quot;log&quot;===t.type?(r=Math.ceil(Math.max(0,-Math.log(a)/Math.LN10))+3,n.format(&quot;.&quot;+r+&quot;g&quot;)(Math.pow(10,i))):(r=Math.floor(Math.log(Math.abs(i))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,n.format(&quot;.&quot;+String(r)+&quot;g&quot;)(i))}(s,l),p=&quot;left&quot;,g=&quot;middle&quot;;if(s.fixedrange)return;d?(g=&quot;n&quot;===d?&quot;top&quot;:&quot;bottom&quot;,&quot;right&quot;===s.side&amp;&amp;(p=&quot;right&quot;)):&quot;e&quot;===m&amp;&amp;(p=&quot;right&quot;),i._context.showAxisRangeEntryBoxes&amp;&amp;n.select(xt).call(c.makeEditable,{gd:i,immediate:!0,background:i._fullLayout.paper_bgcolor,text:String(f),fill:s.tickfont?s.tickfont.color:&quot;#444&quot;,horizontalAlign:p,verticalAlign:g}).on(&quot;edit&quot;,(function(t){var e=s.d2r(t);void 0!==e&amp;&amp;o.call(&quot;_guiRelayout&quot;,i,u,e)}))}}}function zt(e,r){if(t._transitioningWithDuration)return!1;var n=Math.max(0,Math.min($,ht*e+bt)),i=Math.max(0,Math.min(tt,pt*r+_t)),a=Math.abs(n-bt),o=Math.abs(i-_t);function s(){At=&quot;&quot;,wt.r=wt.l,wt.t=wt.b,Et.attr(&quot;d&quot;,&quot;M0,0Z&quot;)}if(wt.l=Math.min(bt,n),wt.r=Math.max(bt,n),wt.t=Math.min(_t,i),wt.b=Math.max(_t,i),et.isSubplotConstrained)a&gt;L||o&gt;L?(At=&quot;xy&quot;,a/$&gt;o/tt?(o=a*tt/$,_t&gt;i?wt.t=_t-o:wt.b=_t+o):(a=o*$/tt,bt&gt;n?wt.l=bt-a:wt.r=bt+a),Et.attr(&quot;d&quot;,H(wt))):s();else if(rt.isSubplotConstrained)if(a&gt;L||o&gt;L){At=&quot;xy&quot;;var l=Math.min(wt.l/$,(tt-wt.b)/tt),c=Math.max(wt.r/$,(tt-wt.t)/tt);wt.l=l*$,wt.r=c*$,wt.b=(1-l)*tt,wt.t=(1-c)*tt,Et.attr(&quot;d&quot;,H(wt))}else s();else!it||o&lt;Math.min(Math.max(.6*a,C),L)?a&lt;C||!nt?s():(wt.t=0,wt.b=tt,At=&quot;x&quot;,Et.attr(&quot;d&quot;,function(t,e){return&quot;M&quot;+(t.l-.5)+&quot;,&quot;+(e-L-.5)+&quot;h-3v&quot;+(2*L+1)+&quot;h3ZM&quot;+(t.r+.5)+&quot;,&quot;+(e-L-.5)+&quot;h3v&quot;+(2*L+1)+&quot;h-3Z&quot;}(wt,_t))):!nt||a&lt;Math.min(.6*o,L)?(wt.l=0,wt.r=$,At=&quot;y&quot;,Et.attr(&quot;d&quot;,function(t,e){return&quot;M&quot;+(e-L-.5)+&quot;,&quot;+(t.t-.5)+&quot;v-3h&quot;+(2*L+1)+&quot;v3ZM&quot;+(e-L-.5)+&quot;,&quot;+(t.b+.5)+&quot;v3h&quot;+(2*L+1)+&quot;v-3Z&quot;}(wt,bt))):(At=&quot;xy&quot;,Et.attr(&quot;d&quot;,H(wt)));wt.w=wt.r-wt.l,wt.h=wt.b-wt.t,At&amp;&amp;(Ct=!0),t._dragged=Ct,j(St,Et,wt,kt,Mt,Tt),Ot(),t.emit(&quot;plotly_relayouting&quot;,ft),Mt=!0}function Ot(){ft={},&quot;xy&quot;!==At&amp;&amp;&quot;x&quot;!==At||(D(Z,wt.l/$,wt.r/$,ft,et.xaxes),Ut(&quot;x&quot;,ft)),&quot;xy&quot;!==At&amp;&amp;&quot;y&quot;!==At||(D(J,(tt-wt.b)/tt,(tt-wt.t)/tt,ft,et.yaxes),Ut(&quot;y&quot;,ft))}function Dt(){Ot(),V(t),Ht(),q(t)}Lt.prepFn=function(e,r,n){var a=Lt.dragmode,o=t._fullLayout.dragmode;o!==a&amp;&amp;(Lt.dragmode=o),vt(),ht=t._fullLayout._invScaleX,pt=t._fullLayout._invScaleY,at||(gt?e.shiftKey?&quot;pan&quot;===o?o=&quot;zoom&quot;:v(o)||(o=&quot;pan&quot;):e.ctrlKey&amp;&amp;(o=&quot;pan&quot;):o=&quot;pan&quot;),y(o)?Lt.minDrag=1:Lt.minDrag=void 0,v(o)?(Lt.xaxes=Z,Lt.yaxes=J,k(e,r,n,Lt,o)):(Lt.clickFn=Pt,v(a)&amp;&amp;It(),at||(&quot;zoom&quot;===o?(Lt.moveFn=zt,Lt.doneFn=Dt,Lt.minDrag=1,function(e,r,n){var a=xt.getBoundingClientRect();bt=r-a.left,_t=n-a.top,t._fullLayout._calcInverseTransform(t);var o=s.apply3DTransform(t._fullLayout._invTransform)(bt,_t);bt=o[0],_t=o[1],wt={l:bt,r:bt,w:0,t:_t,b:_t,h:0},Tt=t._hmpixcount?t._hmlumcount/t._hmpixcount:i(t._fullLayout.plot_bgcolor).getLuminance(),Mt=!1,At=&quot;xy&quot;,Ct=!1,St=B(dt,Tt,K,Q,kt=&quot;M0,0H&quot;+$+&quot;V&quot;+tt+&quot;H0V0&quot;),Et=N(dt,K,Q)}(0,r,n)):&quot;pan&quot;===o&amp;&amp;(Lt.moveFn=jt,Lt.doneFn=Ht))),t._fullLayout._redrag=function(){var e=t._dragdata;if(e&amp;&amp;e.element===xt){var r=t._fullLayout.dragmode;v(r)||(vt(),Gt([0,0,$,tt]),Lt.moveFn(e.dx,e.dy))}}},g.init(Lt);var Rt=[0,0,$,tt],Ft=null,Bt=E.REDRAWDELAY,Nt=e.mainplot?t._fullLayout._plots[e.mainplot]:e;function jt(e,r){if(e*=ht,r*=pt,!t._transitioningWithDuration){if(t._fullLayout._replotting=!0,&quot;ew&quot;===nt||&quot;ns&quot;===it){var n=nt?-e:0,i=it?-r:0;if(rt.isSubplotConstrained){if(nt&amp;&amp;it){var a=(e/$-r/tt)/2;n=-(e=a*$),i=-(r=-a*tt)}it?n=-i*$/tt:i=-n*tt/$}return nt&amp;&amp;(R(Z,e),Ut(&quot;x&quot;)),it&amp;&amp;(R(J,r),Ut(&quot;y&quot;)),Gt([n,i,$,tt]),Vt(),void t.emit(&quot;plotly_relayouting&quot;,ft)}var o,s,l=&quot;w&quot;===nt==(&quot;n&quot;===it)?1:-1;if(nt&amp;&amp;it&amp;&amp;(et.isSubplotConstrained||rt.isSubplotConstrained)){var c=(e/$+l*r/tt)/2;e=c*$,r=l*c*tt}if(&quot;w&quot;===nt?e=p(Z,0,e):&quot;e&quot;===nt?e=p(Z,1,-e):nt||(e=0),&quot;n&quot;===it?r=p(J,1,r):&quot;s&quot;===it?r=p(J,0,-r):it||(r=0),o=&quot;w&quot;===nt?e:0,s=&quot;n&quot;===it?r:0,et.isSubplotConstrained&amp;&amp;!rt.isSubplotConstrained||rt.isSubplotConstrained&amp;&amp;nt&amp;&amp;it&amp;&amp;l&gt;0){var u;if(rt.isSubplotConstrained||!nt&amp;&amp;1===it.length){for(u=0;u&lt;Z.length;u++)Z[u].range=Z[u]._r.slice(),S(Z[u],1-r/tt);o=(e=r*$/tt)/2}if(rt.isSubplotConstrained||!it&amp;&amp;1===nt.length){for(u=0;u&lt;J.length;u++)J[u].range=J[u]._r.slice(),S(J[u],1-e/$);s=(r=e*tt/$)/2}}rt.isSubplotConstrained&amp;&amp;it||Ut(&quot;x&quot;),rt.isSubplotConstrained&amp;&amp;nt||Ut(&quot;y&quot;);var f=$-e,h=tt-r;!rt.isSubplotConstrained||nt&amp;&amp;it||(nt?(s=o?0:e*tt/$,h=f*tt/$):(o=s?0:r*$/tt,f=h*$/tt)),Gt([o,s,f,h]),Vt(),t.emit(&quot;plotly_relayouting&quot;,ft)}function p(t,e,r){for(var n,i,a=1-e,o=0;o&lt;t.length;o++){var s=t[o];if(!s.fixedrange){n=s,i=s._rl[a]+(s._rl[e]-s._rl[a])/F(r/s._length);var l=s.l2r(i);!1!==l&amp;&amp;void 0!==l&amp;&amp;(s.range[e]=l)}}return n._length*(n._rl[e]-i)/(n._rl[e]-n._rl[a])}}function Ut(t,e){for(var r=rt.isSubplotConstrained?{x:J,y:Z}[t]:rt[t+&quot;axes&quot;],n=rt.isSubplotConstrained?{x:Z,y:J}[t]:[],i=0;i&lt;r.length;i++){var a=r[i],o=a._id,s=rt.xLinks[o]||rt.yLinks[o],l=n[0]||U[s]||X[s];l&amp;&amp;(e?(e[a._name+&quot;.range[0]&quot;]=e[l._name+&quot;.range[0]&quot;],e[a._name+&quot;.range[1]&quot;]=e[l._name+&quot;.range[1]&quot;]):a.range=l.range.slice())}}function Vt(){var e,r=[];function n(t){for(e=0;e&lt;t.length;e++)t[e].fixedrange||r.push(t[e]._id)}for(ot&amp;&amp;(n(Z),n(et.xaxes),n(rt.xaxes)),st&amp;&amp;(n(J),n(et.yaxes),n(rt.yaxes)),ft={},e=0;e&lt;r.length;e++){var i=r[e],a=T(t,i);p.drawOne(t,a,{skipTitle:!0}),ft[a._name+&quot;.range[0]&quot;]=a.range[0],ft[a._name+&quot;.range[1]&quot;]=a.range[1]}p.redrawComponents(t,r)}function qt(){if(!t._transitioningWithDuration){var e=t._context.doubleClick,r=[];nt&amp;&amp;(r=r.concat(Z)),it&amp;&amp;(r=r.concat(J)),rt.xaxes&amp;&amp;(r=r.concat(rt.xaxes)),rt.yaxes&amp;&amp;(r=r.concat(rt.yaxes));var n,i,a,s={};if(&quot;reset+autosize&quot;===e)for(e=&quot;autosize&quot;,i=0;i&lt;r.length;i++)if((n=r[i])._rangeInitial&amp;&amp;(n.range[0]!==n._rangeInitial[0]||n.range[1]!==n._rangeInitial[1])||!n._rangeInitial&amp;&amp;!n.autorange){e=&quot;reset&quot;;break}if(&quot;autosize&quot;===e)for(i=0;i&lt;r.length;i++)(n=r[i]).fixedrange||(s[n._name+&quot;.autorange&quot;]=!0);else if(&quot;reset&quot;===e)for((nt||et.isSubplotConstrained)&amp;&amp;(r=r.concat(et.xaxes)),it&amp;&amp;!et.isSubplotConstrained&amp;&amp;(r=r.concat(et.yaxes)),et.isSubplotConstrained&amp;&amp;(nt?it||(r=r.concat(J)):r=r.concat(Z)),i=0;i&lt;r.length;i++)(n=r[i]).fixedrange||(n._rangeInitial?(a=n._rangeInitial,s[n._name+&quot;.range[0]&quot;]=a[0],s[n._name+&quot;.range[1]&quot;]=a[1]):s[n._name+&quot;.autorange&quot;]=!0);t.emit(&quot;plotly_doubleclick&quot;,null),o.call(&quot;_guiRelayout&quot;,t,s)}}function Ht(){Gt([0,0,$,tt]),s.syncOrAsync([w.previousPromises,function(){t._fullLayout._replotting=!1,o.call(&quot;_guiRelayout&quot;,t,ft)}],t)}function Gt(e){var r,n,i,a,l=t._fullLayout,c=l._plots,u=l._subplots.cartesian;if(ct&amp;&amp;o.subplotsRegistry.splom.drag(t),lt)for(r=0;r&lt;u.length;r++)if(i=(n=c[u[r]]).xaxis,a=n.yaxis,n._scene){var h=s.simpleMap(i.range,i.r2l),p=s.simpleMap(a.range,a.r2l);n._scene.update({range:[h[0],p[0],h[1],p[1]]})}if((ct||lt)&amp;&amp;(b(t),_(t)),ut){var g=e[2]/I._length,v=e[3]/P._length;for(r=0;r&lt;u.length;r++){i=(n=c[u[r]]).xaxis,a=n.yaxis;var y,x,w,T,k=(ot||rt.isSubplotConstrained)&amp;&amp;!i.fixedrange&amp;&amp;U[i._id],M=(st||rt.isSubplotConstrained)&amp;&amp;!a.fixedrange&amp;&amp;X[a._id];if(k?(y=g,w=m||rt.isSubplotConstrained?e[0]:Xt(i,y)):rt.xaHash[i._id]?(y=g,w=e[0]*i._length/I._length):rt.yaHash[i._id]?(y=v,w=&quot;ns&quot;===it?-e[1]*i._length/P._length:Xt(i,y,{n:&quot;top&quot;,s:&quot;bottom&quot;}[it])):w=Wt(i,y=Yt(i,g,v)),M?(x=v,T=d||rt.isSubplotConstrained?e[1]:Xt(a,x)):rt.yaHash[a._id]?(x=v,T=e[1]*a._length/P._length):rt.xaHash[a._id]?(x=g,T=&quot;ew&quot;===nt?-e[0]*a._length/I._length:Xt(a,x,{e:&quot;right&quot;,w:&quot;left&quot;}[nt])):T=Wt(a,x=Yt(a,g,v)),y||x){y||(y=1),x||(x=1);var A=i._offset-w/y,S=a._offset-T/x;n.clipRect.call(f.setTranslate,w,T).call(f.setScale,y,x),n.plot.call(f.setTranslate,A,S).call(f.setScale,1/y,1/x),y===n.xScaleFactor&amp;&amp;x===n.yScaleFactor||(f.setPointGroupScale(n.zoomScalePts,y,x),f.setTextPointsScale(n.zoomScaleTxt,y,x)),f.hideOutsideRangePoints(n.clipOnAxisFalseTraces,n),n.xScaleFactor=y,n.yScaleFactor=x}}}}function Yt(t,e,r){return t.fixedrange?0:ot&amp;&amp;et.xaHash[t._id]?e:st&amp;&amp;(et.isSubplotConstrained?et.xaHash:et.yaHash)[t._id]?r:0}function Wt(t,e){return e?(t.range=t._r.slice(),S(t,e),Xt(t,e)):0}function Xt(t,e,r){return t._length*(1-e)*x[r||t.constraintoward||&quot;middle&quot;]}return d.length*m.length!=1&amp;&amp;Y(xt,(function(e){if(t._context._scrollZoom.cartesian||t._fullLayout._enablescrollzoom){if(It(),t._transitioningWithDuration)return e.preventDefault(),void e.stopPropagation();vt(),clearTimeout(Ft);var r=-e.deltaY;if(isFinite(r)||(r=e.wheelDelta/10),isFinite(r)){var n,i=Math.exp(-Math.min(Math.max(r,-20),20)/200),a=Nt.draglayer.select(&quot;.nsewdrag&quot;).node().getBoundingClientRect(),o=(e.clientX-a.left)/a.width,l=(a.bottom-e.clientY)/a.height;if(ot){for(m||(o=.5),n=0;n&lt;Z.length;n++)c(Z[n],o,i);Ut(&quot;x&quot;),Rt[2]*=i,Rt[0]+=Rt[2]*o*(1/i-1)}if(st){for(d||(l=.5),n=0;n&lt;J.length;n++)c(J[n],l,i);Ut(&quot;y&quot;),Rt[3]*=i,Rt[1]+=Rt[3]*(1-l)*(1/i-1)}Gt(Rt),Vt(),t.emit(&quot;plotly_relayouting&quot;,ft),Ft=setTimeout((function(){Rt=[0,0,$,tt],Ht()}),Bt),e.preventDefault()}else s.log(&quot;Did not find wheel motion attributes: &quot;,e)}function c(t,e,r){if(!t.fixedrange){var n=s.simpleMap(t.range,t.r2l),i=n[0]+(n[1]-n[0])*e;t.range=n.map((function(e){return t.l2r(i+(e-i)*r)}))}}})),xt},makeDragger:P,makeRectDragger:z,makeZoombox:B,makeCorners:N,updateZoombox:j,xyCorners:H,transitionZoombox:U,removeZoombox:V,showDoubleClickNotifier:q,attachWheelEventHandler:Y}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/clear_gl_canvases&quot;:762,&quot;../../lib/setcursor&quot;:799,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/subroutines&quot;:818,&quot;../../registry&quot;:911,&quot;../plots&quot;:891,&quot;./axes&quot;:828,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./scale_zoom&quot;:846,&quot;./select&quot;:847,d3:169,&quot;has-passive-events&quot;:441,tinycolor2:576}],837:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/fx&quot;),a=t(&quot;../../components/dragelement&quot;),o=t(&quot;../../lib/setcursor&quot;),s=t(&quot;./dragbox&quot;).makeDragBox,l=t(&quot;./constants&quot;).DRAGGERSIZE;r.initInteractions=function(t){var e=t._fullLayout;if(t._context.staticPlot)n.select(t).selectAll(&quot;.drag&quot;).remove();else if(e._has(&quot;cartesian&quot;)||e._has(&quot;splom&quot;)){Object.keys(e._plots||{}).sort((function(t,r){if((e._plots[t].mainplot&amp;&amp;!0)===(e._plots[r].mainplot&amp;&amp;!0)){var n=t.split(&quot;y&quot;),i=r.split(&quot;y&quot;);return n[0]===i[0]?Number(n[1]||1)-Number(i[1]||1):Number(n[0]||1)-Number(i[0]||1)}return e._plots[t].mainplot?1:-1})).forEach((function(r){var n=e._plots[r],o=n.xaxis,c=n.yaxis;if(!n.mainplot){var u=s(t,n,o._offset,c._offset,o._length,c._length,&quot;ns&quot;,&quot;ew&quot;);u.onmousemove=function(e){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===r&amp;&amp;t._fullLayout._plots[r]&amp;&amp;i.hover(t,e,r)},i.hover(t,e,r),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=r},u.onmouseout=function(e){t._dragging||(t._fullLayout._hoversubplot=null,a.unhover(t,e))},t._context.showAxisDragHandles&amp;&amp;(s(t,n,o._offset-l,c._offset-l,l,l,&quot;n&quot;,&quot;w&quot;),s(t,n,o._offset+o._length,c._offset-l,l,l,&quot;n&quot;,&quot;e&quot;),s(t,n,o._offset-l,c._offset+c._length,l,l,&quot;s&quot;,&quot;w&quot;),s(t,n,o._offset+o._length,c._offset+c._length,l,l,&quot;s&quot;,&quot;e&quot;))}if(t._context.showAxisDragHandles){if(r===o._mainSubplot){var f=o._mainLinePosition;&quot;top&quot;===o.side&amp;&amp;(f-=l),s(t,n,o._offset+.1*o._length,f,.8*o._length,l,&quot;&quot;,&quot;ew&quot;),s(t,n,o._offset,f,.1*o._length,l,&quot;&quot;,&quot;w&quot;),s(t,n,o._offset+.9*o._length,f,.1*o._length,l,&quot;&quot;,&quot;e&quot;)}if(r===c._mainSubplot){var h=c._mainLinePosition;&quot;right&quot;!==c.side&amp;&amp;(h-=l),s(t,n,h,c._offset+.1*c._length,l,.8*c._length,&quot;ns&quot;,&quot;&quot;),s(t,n,h,c._offset+.9*c._length,l,.1*c._length,&quot;s&quot;,&quot;&quot;),s(t,n,h,c._offset,l,.1*c._length,&quot;n&quot;,&quot;&quot;)}}}));var o=e._hoverlayer.node();o.onmousemove=function(r){r.target=t._fullLayout._lasthover,i.hover(t,r,e._hoversubplot)},o.onclick=function(e){e.target=t._fullLayout._lasthover,i.click(t,e)},o.onmousedown=function(e){t._fullLayout._lasthover.onmousedown(e)},r.updateFx(t)}},r.updateFx=function(t){var e=t._fullLayout,r=&quot;pan&quot;===e.dragmode?&quot;move&quot;:&quot;crosshair&quot;;o(e._draggers,r)}},{&quot;../../components/dragelement&quot;:662,&quot;../../components/fx&quot;:683,&quot;../../lib/setcursor&quot;:799,&quot;./constants&quot;:834,&quot;./dragbox&quot;:836,d3:169}],838:[function(t,e,r){&quot;use strict&quot;;e.exports={clearOutlineControllers:function(t){var e=t._fullLayout._zoomlayer;e&amp;&amp;e.selectAll(&quot;.outline-controllers&quot;).remove()},clearSelect:function(t){var e=t._fullLayout._zoomlayer;e&amp;&amp;e.selectAll(&quot;.select-outline&quot;).remove(),t._fullLayout._drawing=!1}}},{}],839:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).strTranslate;function i(t,e){switch(t.type){case&quot;log&quot;:return t.p2d(e);case&quot;date&quot;:return t.p2r(e,0,t.calendar);default:return t.p2r(e)}}e.exports={p2r:i,r2p:function(t,e){switch(t.type){case&quot;log&quot;:return t.d2p(e);case&quot;date&quot;:return t.r2p(e,0,t.calendar);default:return t.r2p(e)}},axValue:function(t){var e=&quot;y&quot;===t._id.charAt(0)?1:0;return function(r){return i(t,r[e])}},getTransform:function(t){return n(t.xaxis._offset,t.yaxis._offset)}}},{&quot;../../lib&quot;:778}],840:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./axis_ids&quot;);e.exports=function(t){return function(e,r){var o=e[t];if(Array.isArray(o))for(var s=n.subplotsRegistry.cartesian,l=s.idRegex,c=r._subplots,u=c.xaxis,f=c.yaxis,h=c.cartesian,p=r._has(&quot;cartesian&quot;)||r._has(&quot;gl2d&quot;),d=0;d&lt;o.length;d++){var g=o[d];if(i.isPlainObject(g)){var m=a.cleanId(g.xref,&quot;x&quot;,!1),v=a.cleanId(g.yref,&quot;y&quot;,!1),y=l.x.test(m),x=l.y.test(v);if(y||x){p||i.pushUnique(r._basePlotModules,s);var b=!1;y&amp;&amp;-1===u.indexOf(m)&amp;&amp;(u.push(m),b=!0),x&amp;&amp;-1===f.indexOf(v)&amp;&amp;(f.push(v),b=!0),b&amp;&amp;y&amp;&amp;x&amp;&amp;h.push(m+v)}}}}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./axis_ids&quot;:831}],841:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../plots&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../get_data&quot;).getModuleCalcData,c=t(&quot;./axis_ids&quot;),u=t(&quot;./constants&quot;),f=t(&quot;../../constants/xmlns_namespaces&quot;),h=a.ensureSingle;function p(t,e,r){return a.ensureSingle(t,e,r,(function(t){t.datum(r)}))}function d(t,e,r,a,o){for(var c,f,h,p=u.traceLayerClasses,d=t._fullLayout,g=d._modules,m=[],v=[],y=0;y&lt;g.length;y++){var x=(c=g[y]).name,b=i.modules[x].categories;if(b.svg){var _=c.layerName||x+&quot;layer&quot;,w=c.plot;h=(f=l(r,w))[0],r=f[1],h.length&amp;&amp;m.push({i:p.indexOf(_),className:_,plotMethod:w,cdModule:h}),b.zoomScale&amp;&amp;v.push(&quot;.&quot;+_)}}m.sort((function(t,e){return t.i-e.i}));var T=e.plot.selectAll(&quot;g.mlayer&quot;).data(m,(function(t){return t.className}));if(T.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return t.className})).classed(&quot;mlayer&quot;,!0).classed(&quot;rangeplot&quot;,e.isRangePlot),T.exit().remove(),T.order(),T.each((function(r){var i=n.select(this),l=r.className;r.plotMethod(t,e,r.cdModule,i,a,o),-1===u.clipOnAxisFalseQuery.indexOf(&quot;.&quot;+l)&amp;&amp;s.setClipUrl(i,e.layerClipId,t)})),d._has(&quot;scattergl&quot;)&amp;&amp;(c=i.getModule(&quot;scattergl&quot;),h=l(r,c)[0],c.plot(t,e,h)),!t._context.staticPlot&amp;&amp;(e._hasClipOnAxisFalse&amp;&amp;(e.clipOnAxisFalseTraces=e.plot.selectAll(u.clipOnAxisFalseQuery.join(&quot;,&quot;)).selectAll(&quot;.trace&quot;)),v.length)){var k=e.plot.selectAll(v.join(&quot;,&quot;)).selectAll(&quot;.trace&quot;);e.zoomScalePts=k.selectAll(&quot;path.point&quot;),e.zoomScaleTxt=k.selectAll(&quot;.textpoint&quot;)}}function g(t,e){var r=e.plotgroup,n=e.id,i=u.layerValue2layerClass[e.xaxis.layer],a=u.layerValue2layerClass[e.yaxis.layer],o=t._fullLayout._hasOnlyLargeSploms;if(e.mainplot){var s=e.mainplotinfo,l=s.plotgroup,f=n+&quot;-x&quot;,d=n+&quot;-y&quot;;e.gridlayer=s.gridlayer,e.zerolinelayer=s.zerolinelayer,h(s.overlinesBelow,&quot;path&quot;,f),h(s.overlinesBelow,&quot;path&quot;,d),h(s.overaxesBelow,&quot;g&quot;,f),h(s.overaxesBelow,&quot;g&quot;,d),e.plot=h(s.overplot,&quot;g&quot;,n),h(s.overlinesAbove,&quot;path&quot;,f),h(s.overlinesAbove,&quot;path&quot;,d),h(s.overaxesAbove,&quot;g&quot;,f),h(s.overaxesAbove,&quot;g&quot;,d),e.xlines=l.select(&quot;.overlines-&quot;+i).select(&quot;.&quot;+f),e.ylines=l.select(&quot;.overlines-&quot;+a).select(&quot;.&quot;+d),e.xaxislayer=l.select(&quot;.overaxes-&quot;+i).select(&quot;.&quot;+f),e.yaxislayer=l.select(&quot;.overaxes-&quot;+a).select(&quot;.&quot;+d)}else if(o)e.xlines=h(r,&quot;path&quot;,&quot;xlines-above&quot;),e.ylines=h(r,&quot;path&quot;,&quot;ylines-above&quot;),e.xaxislayer=h(r,&quot;g&quot;,&quot;xaxislayer-above&quot;),e.yaxislayer=h(r,&quot;g&quot;,&quot;yaxislayer-above&quot;);else{var g=h(r,&quot;g&quot;,&quot;layer-subplot&quot;);e.shapelayer=h(g,&quot;g&quot;,&quot;shapelayer&quot;),e.imagelayer=h(g,&quot;g&quot;,&quot;imagelayer&quot;),e.gridlayer=h(r,&quot;g&quot;,&quot;gridlayer&quot;),e.zerolinelayer=h(r,&quot;g&quot;,&quot;zerolinelayer&quot;),h(r,&quot;path&quot;,&quot;xlines-below&quot;),h(r,&quot;path&quot;,&quot;ylines-below&quot;),e.overlinesBelow=h(r,&quot;g&quot;,&quot;overlines-below&quot;),h(r,&quot;g&quot;,&quot;xaxislayer-below&quot;),h(r,&quot;g&quot;,&quot;yaxislayer-below&quot;),e.overaxesBelow=h(r,&quot;g&quot;,&quot;overaxes-below&quot;),e.plot=h(r,&quot;g&quot;,&quot;plot&quot;),e.overplot=h(r,&quot;g&quot;,&quot;overplot&quot;),e.xlines=h(r,&quot;path&quot;,&quot;xlines-above&quot;),e.ylines=h(r,&quot;path&quot;,&quot;ylines-above&quot;),e.overlinesAbove=h(r,&quot;g&quot;,&quot;overlines-above&quot;),h(r,&quot;g&quot;,&quot;xaxislayer-above&quot;),h(r,&quot;g&quot;,&quot;yaxislayer-above&quot;),e.overaxesAbove=h(r,&quot;g&quot;,&quot;overaxes-above&quot;),e.xlines=r.select(&quot;.xlines-&quot;+i),e.ylines=r.select(&quot;.ylines-&quot;+a),e.xaxislayer=r.select(&quot;.xaxislayer-&quot;+i),e.yaxislayer=r.select(&quot;.yaxislayer-&quot;+a)}o||(p(e.gridlayer,&quot;g&quot;,e.xaxis._id),p(e.gridlayer,&quot;g&quot;,e.yaxis._id),e.gridlayer.selectAll(&quot;g&quot;).map((function(t){return t[0]})).sort(c.idSort)),e.xlines.style(&quot;fill&quot;,&quot;none&quot;).classed(&quot;crisp&quot;,!0),e.ylines.style(&quot;fill&quot;,&quot;none&quot;).classed(&quot;crisp&quot;,!0)}function m(t,e){if(t){var r={};for(var i in t.each((function(t){var i=t[0];n.select(this).remove(),v(i,e),r[i]=!0})),e._plots)for(var a=e._plots[i].overlays||[],o=0;o&lt;a.length;o++){var s=a[o];r[s.id]&amp;&amp;s.plot.selectAll(&quot;.trace&quot;).remove()}}}function v(t,e){e._draggers.selectAll(&quot;g.&quot;+t).remove(),e._defs.select(&quot;#clip&quot;+e._uid+t+&quot;plot&quot;).remove()}r.name=&quot;cartesian&quot;,r.attr=[&quot;xaxis&quot;,&quot;yaxis&quot;],r.idRoot=[&quot;x&quot;,&quot;y&quot;],r.idRegex=u.idRegex,r.attrRegex=u.attrRegex,r.attributes=t(&quot;./attributes&quot;),r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.transitionAxes=t(&quot;./transition_axes&quot;),r.finalizeSubplots=function(t,e){var r,n,i,o=e._subplots,s=o.xaxis,l=o.yaxis,f=o.cartesian,h=f.concat(o.gl2d||[]),p={},d={};for(r=0;r&lt;h.length;r++){var g=h[r].split(&quot;y&quot;);p[g[0]]=1,d[&quot;y&quot;+g[1]]=1}for(r=0;r&lt;s.length;r++)p[n=s[r]]||(i=(t[c.id2name(n)]||{}).anchor,u.idRegex.y.test(i)||(i=&quot;y&quot;),f.push(n+i),h.push(n+i),d[i]||(d[i]=1,a.pushUnique(l,i)));for(r=0;r&lt;l.length;r++)d[i=l[r]]||(n=(t[c.id2name(i)]||{}).anchor,u.idRegex.x.test(n)||(n=&quot;x&quot;),f.push(n+i),h.push(n+i),p[n]||(p[n]=1,a.pushUnique(s,n)));if(!h.length){for(var m in n=&quot;&quot;,i=&quot;&quot;,t){if(u.attrRegex.test(m))&quot;x&quot;===m.charAt(0)?(!n||+m.substr(5)&lt;+n.substr(5))&amp;&amp;(n=m):(!i||+m.substr(5)&lt;+i.substr(5))&amp;&amp;(i=m)}n=n?c.name2id(n):&quot;x&quot;,i=i?c.name2id(i):&quot;y&quot;,s.push(n),l.push(i),f.push(n+i)}},r.plot=function(t,e,r,n){var i,a=t._fullLayout,o=a._subplots.cartesian,s=t.calcdata;if(!Array.isArray(e))for(e=[],i=0;i&lt;s.length;i++)e.push(i);for(i=0;i&lt;o.length;i++){for(var l,c=o[i],u=a._plots[c],f=[],h=0;h&lt;s.length;h++){var p=s[h],g=p[0].trace;g.xaxis+g.yaxis===c&amp;&amp;((-1!==e.indexOf(g.index)||g.carpet)&amp;&amp;(l&amp;&amp;l[0].trace.xaxis+l[0].trace.yaxis===c&amp;&amp;-1!==[&quot;tonextx&quot;,&quot;tonexty&quot;,&quot;tonext&quot;].indexOf(g.fill)&amp;&amp;-1===f.indexOf(l)&amp;&amp;f.push(l),f.push(p)),l=p)}d(t,u,f,r,n)}},r.clean=function(t,e,r,n){var i,a,o,s=n._plots||{},l=e._plots||{},u=n._subplots||{};if(n._hasOnlyLargeSploms&amp;&amp;!e._hasOnlyLargeSploms)for(o in s)(i=s[o]).plotgroup&amp;&amp;i.plotgroup.remove();var f=n._has&amp;&amp;n._has(&quot;gl&quot;),h=e._has&amp;&amp;e._has(&quot;gl&quot;);if(f&amp;&amp;!h)for(o in s)(i=s[o])._scene&amp;&amp;i._scene.destroy();if(u.xaxis&amp;&amp;u.yaxis){var p=c.listIds({_fullLayout:n});for(a=0;a&lt;p.length;a++){var d=p[a];e[c.id2name(d)]||n._infolayer.selectAll(&quot;.g-&quot;+d+&quot;title&quot;).remove()}}var g=n._has&amp;&amp;n._has(&quot;cartesian&quot;),y=e._has&amp;&amp;e._has(&quot;cartesian&quot;);if(g&amp;&amp;!y)m(n._cartesianlayer.selectAll(&quot;.subplot&quot;),n),n._defs.selectAll(&quot;.axesclip&quot;).remove(),delete n._axisConstraintGroups,delete n._axisMatchGroups;else if(u.cartesian)for(a=0;a&lt;u.cartesian.length;a++){var x=u.cartesian[a];if(!l[x]){var b=&quot;.&quot;+x+&quot;,.&quot;+x+&quot;-x,.&quot;+x+&quot;-y&quot;;n._cartesianlayer.selectAll(b).remove(),v(x,n)}}},r.drawFramework=function(t){var e=t._fullLayout,r=function(t){var e,r,n,i,a,o,s=t._fullLayout,l=s._subplots.cartesian,c=l.length,u=[],f=[];for(e=0;e&lt;c;e++){n=l[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var h=a._mainAxis,p=o._mainAxis,d=h._id+p._id,g=s._plots[d];i.overlays=[],d!==n&amp;&amp;g?(i.mainplot=d,i.mainplotinfo=g,f.push(n)):(i.mainplot=void 0,i.mainplotinfo=void 0,u.push(n))}for(e=0;e&lt;f.length;e++)n=f[e],(i=s._plots[n]).mainplotinfo.overlays.push(i);var m=u.concat(f),v=new Array(c);for(e=0;e&lt;c;e++){n=m[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var y=[n,a.layer,o.layer,a.overlaying||&quot;&quot;,o.overlaying||&quot;&quot;];for(r=0;r&lt;i.overlays.length;r++)y.push(i.overlays[r].id);v[e]=y}return v}(t),i=e._cartesianlayer.selectAll(&quot;.subplot&quot;).data(r,String);i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;subplot &quot;+t[0]})),i.order(),i.exit().call(m,e),i.each((function(r){var i=r[0],a=e._plots[i];a.plotgroup=n.select(this),g(t,a),a.draglayer=h(e._draggers,&quot;g&quot;,i)}))},r.rangePlot=function(t,e,r){g(t,e),d(t,e,r),o.style(t)},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(&quot;.svg-container&quot;);r.filter((function(t,e){return e===r.size()-1})).selectAll(&quot;.gl-canvas-context, .gl-canvas-focus&quot;).each((function(){var t=this.toDataURL(&quot;image/png&quot;);e.append(&quot;svg:image&quot;).attr({xmlns:f.svg,&quot;xlink:href&quot;:t,preserveAspectRatio:&quot;none&quot;,x:0,y:0,width:this.width,height:this.height})}))},r.updateFx=t(&quot;./graph_interact&quot;).updateFx},{&quot;../../components/drawing&quot;:665,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../get_data&quot;:865,&quot;../plots&quot;:891,&quot;./attributes&quot;:826,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./graph_interact&quot;:837,&quot;./layout_attributes&quot;:842,&quot;./layout_defaults&quot;:843,&quot;./transition_axes&quot;:852,d3:169}],842:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../font_attributes&quot;),i=t(&quot;../../components/color/attributes&quot;),a=t(&quot;../../components/drawing/attributes&quot;).dash,o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/plot_template&quot;).templatedArray,l=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,t(&quot;../../constants/docs&quot;).DATE_FORMAT_LINK,t(&quot;../../constants/numerical&quot;).ONEDAY),c=t(&quot;./constants&quot;),u=c.HOUR_PATTERN,f=c.WEEKDAY_PATTERN;e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},title:{text:{valType:&quot;string&quot;,editType:&quot;ticks&quot;},font:n({editType:&quot;ticks&quot;}),standoff:{valType:&quot;number&quot;,min:0,editType:&quot;ticks&quot;},editType:&quot;ticks&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;,&quot;multicategory&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;,_noTemplating:!0},autotypenumbers:{valType:&quot;enumerated&quot;,values:[&quot;convert types&quot;,&quot;strict&quot;],dflt:&quot;convert types&quot;,editType:&quot;calc&quot;},autorange:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],dflt:!0,editType:&quot;axrange&quot;,impliedEdits:{&quot;range[0]&quot;:void 0,&quot;range[1]&quot;:void 0}},rangemode:{valType:&quot;enumerated&quot;,values:[&quot;normal&quot;,&quot;tozero&quot;,&quot;nonnegative&quot;],dflt:&quot;normal&quot;,editType:&quot;plot&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;axrange&quot;,impliedEdits:{&quot;^autorange&quot;:!1},anim:!0},{valType:&quot;any&quot;,editType:&quot;axrange&quot;,impliedEdits:{&quot;^autorange&quot;:!1},anim:!0}],editType:&quot;axrange&quot;,impliedEdits:{autorange:!1},anim:!0},fixedrange:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},scaleanchor:{valType:&quot;enumerated&quot;,values:[c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;plot&quot;},scaleratio:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},constrain:{valType:&quot;enumerated&quot;,values:[&quot;range&quot;,&quot;domain&quot;],editType:&quot;plot&quot;},constraintoward:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;plot&quot;},matches:{valType:&quot;enumerated&quot;,values:[c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;calc&quot;},rangebreaks:s(&quot;rangebreak&quot;,{enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},bounds:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},pattern:{valType:&quot;enumerated&quot;,values:[f,u,&quot;&quot;],editType:&quot;calc&quot;},values:{valType:&quot;info_array&quot;,freeLength:!0,editType:&quot;calc&quot;,items:{valType:&quot;any&quot;,editType:&quot;calc&quot;}},dvalue:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0,dflt:l},editType:&quot;calc&quot;}),tickmode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;linear&quot;,&quot;array&quot;],editType:&quot;ticks&quot;,impliedEdits:{tick0:void 0,dtick:void 0}},nticks:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;ticks&quot;},tick0:{valType:&quot;any&quot;,editType:&quot;ticks&quot;,impliedEdits:{tickmode:&quot;linear&quot;}},dtick:{valType:&quot;any&quot;,editType:&quot;ticks&quot;,impliedEdits:{tickmode:&quot;linear&quot;}},tickvals:{valType:&quot;data_array&quot;,editType:&quot;ticks&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;ticks&quot;},ticks:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;&quot;],editType:&quot;ticks&quot;},tickson:{valType:&quot;enumerated&quot;,values:[&quot;labels&quot;,&quot;boundaries&quot;],dflt:&quot;labels&quot;,editType:&quot;ticks&quot;},ticklabelmode:{valType:&quot;enumerated&quot;,values:[&quot;instant&quot;,&quot;period&quot;],dflt:&quot;instant&quot;,editType:&quot;ticks&quot;},ticklabelposition:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;],dflt:&quot;outside&quot;,editType:&quot;calc&quot;},mirror:{valType:&quot;enumerated&quot;,values:[!0,&quot;ticks&quot;,!1,&quot;all&quot;,&quot;allticks&quot;],dflt:!1,editType:&quot;ticks+layoutstyle&quot;},ticklen:{valType:&quot;number&quot;,min:0,dflt:5,editType:&quot;ticks&quot;},tickwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks&quot;},tickcolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},showticklabels:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},automargin:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks&quot;},showspikes:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;modebar&quot;},spikecolor:{valType:&quot;color&quot;,dflt:null,editType:&quot;none&quot;},spikethickness:{valType:&quot;number&quot;,dflt:3,editType:&quot;none&quot;},spikedash:o({},a,{dflt:&quot;dash&quot;,editType:&quot;none&quot;}),spikemode:{valType:&quot;flaglist&quot;,flags:[&quot;toaxis&quot;,&quot;across&quot;,&quot;marker&quot;],dflt:&quot;toaxis&quot;,editType:&quot;none&quot;},spikesnap:{valType:&quot;enumerated&quot;,values:[&quot;data&quot;,&quot;cursor&quot;,&quot;hovered data&quot;],dflt:&quot;data&quot;,editType:&quot;none&quot;},tickfont:n({editType:&quot;ticks&quot;}),tickangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;ticks&quot;},tickprefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},showtickprefix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},ticksuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},showticksuffix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},showexponent:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},exponentformat:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;e&quot;,&quot;E&quot;,&quot;power&quot;,&quot;SI&quot;,&quot;B&quot;],dflt:&quot;B&quot;,editType:&quot;ticks&quot;},minexponent:{valType:&quot;number&quot;,dflt:3,min:0,editType:&quot;ticks&quot;},separatethousands:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks&quot;},tickformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},tickformatstops:s(&quot;tickformatstop&quot;,{enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},dtickrange:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;ticks&quot;},{valType:&quot;any&quot;,editType:&quot;ticks&quot;}],editType:&quot;ticks&quot;},value:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},editType:&quot;ticks&quot;}),hoverformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;none&quot;},showline:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks+layoutstyle&quot;},linecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;layoutstyle&quot;},linewidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks+layoutstyle&quot;},showgrid:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},gridcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;ticks&quot;},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks&quot;},zeroline:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},zerolinecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},zerolinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;ticks&quot;},showdividers:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},dividercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},dividerwidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;ticks&quot;},anchor:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;,c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;right&quot;],editType:&quot;plot&quot;},overlaying:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;,c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;plot&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;above traces&quot;,&quot;below traces&quot;],dflt:&quot;above traces&quot;,editType:&quot;plot&quot;},domain:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;}],dflt:[0,1],editType:&quot;plot&quot;},position:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;plot&quot;},categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;,&quot;total ascending&quot;,&quot;total descending&quot;,&quot;min ascending&quot;,&quot;min descending&quot;,&quot;max ascending&quot;,&quot;max descending&quot;,&quot;sum ascending&quot;,&quot;sum descending&quot;,&quot;mean ascending&quot;,&quot;mean descending&quot;,&quot;median ascending&quot;,&quot;median descending&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;,_deprecated:{autotick:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},title:{valType:&quot;string&quot;,editType:&quot;ticks&quot;},titlefont:n({editType:&quot;ticks&quot;})}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../components/drawing/attributes&quot;:664,&quot;../../constants/docs&quot;:748,&quot;../../constants/numerical&quot;:753,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../font_attributes&quot;:856,&quot;./constants&quot;:834}],843:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/fx/helpers&quot;).isUnifiedHover,o=t(&quot;../../components/fx/hovermode_defaults&quot;),s=t(&quot;../../plot_api/plot_template&quot;),l=t(&quot;../layout_attributes&quot;),c=t(&quot;./layout_attributes&quot;),u=t(&quot;./type_defaults&quot;),f=t(&quot;./axis_defaults&quot;),h=t(&quot;./constraints&quot;),p=t(&quot;./position_defaults&quot;),d=t(&quot;./axis_ids&quot;),g=d.id2name,m=d.name2id,v=t(&quot;./constants&quot;).AX_ID_PATTERN,y=t(&quot;../../registry&quot;),x=y.traceIs,b=y.getComponentMethod;function _(t,e,r){Array.isArray(t[e])?t[e].push(r):t[e]=[r]}e.exports=function(t,e,r){var y,w,T=e.autotypenumbers,k={},M={},A={},S={},E={},C={},L={},I={},P={},z={};for(y=0;y&lt;r.length;y++){var O=r[y];if(x(O,&quot;cartesian&quot;)||x(O,&quot;gl2d&quot;)){var D,R;if(O.xaxis)D=g(O.xaxis),_(k,D,O);else if(O.xaxes)for(w=0;w&lt;O.xaxes.length;w++)_(k,g(O.xaxes[w]),O);if(O.yaxis)R=g(O.yaxis),_(k,R,O);else if(O.yaxes)for(w=0;w&lt;O.yaxes.length;w++)_(k,g(O.yaxes[w]),O);if(&quot;funnel&quot;===O.type?&quot;h&quot;===O.orientation?(D&amp;&amp;(M[D]=!0),R&amp;&amp;(L[R]=!0)):R&amp;&amp;(A[R]=!0):&quot;image&quot;===O.type?(R&amp;&amp;(I[R]=!0),D&amp;&amp;(I[D]=!0)):(R&amp;&amp;(E[R]=!0,C[R]=!0),x(O,&quot;carpet&quot;)&amp;&amp;(&quot;carpet&quot;!==O.type||O._cheater)||D&amp;&amp;(S[D]=!0)),&quot;carpet&quot;===O.type&amp;&amp;O._cheater&amp;&amp;D&amp;&amp;(M[D]=!0),x(O,&quot;2dMap&quot;)&amp;&amp;(P[D]=!0,P[R]=!0),x(O,&quot;oriented&quot;))z[&quot;h&quot;===O.orientation?R:D]=!0}}var F=e._subplots,B=F.xaxis,N=F.yaxis,j=n.simpleMap(B,g),U=n.simpleMap(N,g),V=j.concat(U),q=i.background;B.length&amp;&amp;N.length&amp;&amp;(q=n.coerce(t,e,l,&quot;plot_bgcolor&quot;));var H,G,Y,W,X,Z=i.combine(q,e.paper_bgcolor);function J(){var t=k[H]||[];X._traceIndices=t.map((function(t){return t._expandedIndex})),X._annIndices=[],X._shapeIndices=[],X._imgIndices=[],X._subplotsWith=[],X._counterAxes=[],X._name=X._attr=H,X._id=G}function K(t,e){return n.coerce(W,X,c,t,e)}function Q(t,e){return n.coerce2(W,X,c,t,e)}function $(t){return&quot;x&quot;===t?N:B}function tt(e,r){for(var n=&quot;x&quot;===e?j:U,i=[],a=0;a&lt;n.length;a++){var o=n[a];o===r||(t[o]||{}).overlaying||i.push(m(o))}return i}var et={x:$(&quot;x&quot;),y:$(&quot;y&quot;)},rt=et.x.concat(et.y),nt={},it=[];function at(){var t=W.matches;v.test(t)&amp;&amp;-1===rt.indexOf(t)&amp;&amp;(nt[t]=W.type,it=Object.keys(nt))}var ot=o(t,e,r),st=a(ot);for(y=0;y&lt;V.length;y++){H=V[y],G=m(H),Y=H.charAt(0),n.isPlainObject(t[H])||(t[H]={}),W=t[H],X=s.newContainer(e,H,Y+&quot;axis&quot;),J();var lt=&quot;x&quot;===Y&amp;&amp;!S[H]&amp;&amp;M[H]||&quot;y&quot;===Y&amp;&amp;!E[H]&amp;&amp;A[H],ct=&quot;y&quot;===Y&amp;&amp;(!C[H]&amp;&amp;L[H]||I[H]),ut={letter:Y,font:e.font,outerTicks:P[H],showGrid:!z[H],data:k[H]||[],bgColor:Z,calendar:e.calendar,automargin:!0,visibleDflt:lt,reverseDflt:ct,autotypenumbersDflt:T,splomStash:((e._splomAxes||{})[Y]||{})[G]};K(&quot;uirevision&quot;,e.uirevision),u(W,X,K,ut),f(W,X,K,ut,e);var ft=st&amp;&amp;Y===ot.charAt(0),ht=Q(&quot;spikecolor&quot;,st?X.color:void 0),pt=Q(&quot;spikethickness&quot;,st?1.5:void 0),dt=Q(&quot;spikedash&quot;,st?&quot;dot&quot;:void 0),gt=Q(&quot;spikemode&quot;,st?&quot;across&quot;:void 0),mt=Q(&quot;spikesnap&quot;,st?&quot;hovered data&quot;:void 0);K(&quot;showspikes&quot;,!!(ft||ht||pt||dt||gt||mt))||(delete X.spikecolor,delete X.spikethickness,delete X.spikedash,delete X.spikemode,delete X.spikesnap),p(W,X,K,{letter:Y,counterAxes:et[Y],overlayableAxes:tt(Y,H),grid:e.grid}),K(&quot;title.standoff&quot;),at(),X._input=W}for(y=0;y&lt;it.length;){G=it[y++],Y=(H=g(G)).charAt(0),n.isPlainObject(t[H])||(t[H]={}),W=t[H],X=s.newContainer(e,H,Y+&quot;axis&quot;),J();var vt={letter:Y,font:e.font,outerTicks:P[H],showGrid:!z[H],data:[],bgColor:Z,calendar:e.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:T,splomStash:((e._splomAxes||{})[Y]||{})[G]};K(&quot;uirevision&quot;,e.uirevision),X.type=nt[G]||&quot;linear&quot;,f(W,X,K,vt,e),p(W,X,K,{letter:Y,counterAxes:et[Y],overlayableAxes:tt(Y,H),grid:e.grid}),K(&quot;fixedrange&quot;),at(),X._input=W}var yt=b(&quot;rangeslider&quot;,&quot;handleDefaults&quot;),xt=b(&quot;rangeselector&quot;,&quot;handleDefaults&quot;);for(y=0;y&lt;j.length;y++)H=j[y],W=t[H],X=e[H],yt(t,e,H),&quot;date&quot;===X.type&amp;&amp;xt(W,X,e,U,X.calendar),K(&quot;fixedrange&quot;);for(y=0;y&lt;U.length;y++){H=U[y],W=t[H],X=e[H];var bt=e[g(X.anchor)];K(&quot;fixedrange&quot;,b(&quot;rangeslider&quot;,&quot;isVisible&quot;)(bt))}h.handleDefaults(t,e,{axIds:rt.concat(it).sort(d.idSort),axHasImage:I})}},{&quot;../../components/color&quot;:643,&quot;../../components/fx/helpers&quot;:679,&quot;../../components/fx/hovermode_defaults&quot;:682,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../registry&quot;:911,&quot;../layout_attributes&quot;:882,&quot;./axis_defaults&quot;:830,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./constraints&quot;:835,&quot;./layout_attributes&quot;:842,&quot;./position_defaults&quot;:845,&quot;./type_defaults&quot;:853}],844:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;).mix,i=t(&quot;../../components/color/attributes&quot;).lightFraction,a=t(&quot;../../lib&quot;);e.exports=function(t,e,r,o){var s=(o=o||{}).dfltColor;function l(r,n){return a.coerce2(t,e,o.attributes,r,n)}var c=l(&quot;linecolor&quot;,s),u=l(&quot;linewidth&quot;);r(&quot;showline&quot;,o.showLine||!!c||!!u)||(delete e.linecolor,delete e.linewidth);var f=l(&quot;gridcolor&quot;,n(s,o.bgColor,o.blend||i).toRgbString()),h=l(&quot;gridwidth&quot;);if(r(&quot;showgrid&quot;,o.showGrid||!!f||!!h)||(delete e.gridcolor,delete e.gridwidth),!o.noZeroLine){var p=l(&quot;zerolinecolor&quot;,s),d=l(&quot;zerolinewidth&quot;);r(&quot;zeroline&quot;,o.showGrid||!!p||!!d)||(delete e.zerolinecolor,delete e.zerolinewidth)}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib&quot;:778,tinycolor2:576}],845:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o,s,l,c,u=a.counterAxes||[],f=a.overlayableAxes||[],h=a.letter,p=a.grid;p&amp;&amp;(s=p._domains[h][p._axisMap[e._id]],o=p._anchors[e._id],s&amp;&amp;(l=p[h+&quot;side&quot;].split(&quot; &quot;)[0],c=p.domain[h][&quot;right&quot;===l||&quot;top&quot;===l?1:0])),s=s||[0,1],o=o||(n(t.position)?&quot;free&quot;:u[0]||&quot;free&quot;),l=l||(&quot;x&quot;===h?&quot;bottom&quot;:&quot;left&quot;),c=c||0,&quot;free&quot;===i.coerce(t,e,{anchor:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;].concat(u),dflt:o}},&quot;anchor&quot;)&amp;&amp;r(&quot;position&quot;,c),i.coerce(t,e,{side:{valType:&quot;enumerated&quot;,values:&quot;x&quot;===h?[&quot;bottom&quot;,&quot;top&quot;]:[&quot;left&quot;,&quot;right&quot;],dflt:l}},&quot;side&quot;);var d=!1;if(f.length&amp;&amp;(d=i.coerce(t,e,{overlaying:{valType:&quot;enumerated&quot;,values:[!1].concat(f),dflt:!1}},&quot;overlaying&quot;)),!d){var g=r(&quot;domain&quot;,s);g[0]&gt;g[1]-1/4096&amp;&amp;(e.domain=s),i.noneOrAll(t.domain,e.domain,s)}return r(&quot;layer&quot;),e}},{&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],846:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/alignment&quot;).FROM_BL;e.exports=function(t,e,r){void 0===r&amp;&amp;(r=n[t.constraintoward||&quot;center&quot;]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*r;t.range=t._input.range=[t.l2r(a+(i[0]-a)*e),t.l2r(a+(i[1]-a)*e)],t.setScale()}},{&quot;../../constants/alignment&quot;:745}],847:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;polybooljs&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/drawing&quot;).dashStyle,o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;../../components/fx/helpers&quot;).makeEventData,c=t(&quot;../../components/dragelement/helpers&quot;),u=c.freeMode,f=c.rectMode,h=c.drawMode,p=c.openMode,d=c.selectMode,g=t(&quot;../../components/shapes/draw_newshape/display_outlines&quot;),m=t(&quot;../../components/shapes/draw_newshape/helpers&quot;).handleEllipse,v=t(&quot;../../components/shapes/draw_newshape/newshapes&quot;),y=t(&quot;../../lib&quot;),x=t(&quot;../../lib/polygon&quot;),b=t(&quot;../../lib/throttle&quot;),_=t(&quot;./axis_ids&quot;).getFromId,w=t(&quot;../../lib/clear_gl_canvases&quot;),T=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,k=t(&quot;./constants&quot;),M=k.MINSELECT,A=x.filter,S=x.tester,E=t(&quot;./handle_outline&quot;).clearSelect,C=t(&quot;./helpers&quot;),L=C.p2r,I=C.axValue,P=C.getTransform;function z(t,e,r,n,i,a,o){var s,l,c,u,f,h,d,m,v,y=e._hoverdata,x=e._fullLayout.clickmode.indexOf(&quot;event&quot;)&gt;-1,b=[];if(function(t){return t&amp;&amp;Array.isArray(t)&amp;&amp;!0!==t[0].hoverOnBox}(y)){F(t,e,a);var _=function(t,e){var r,n,i=t[0],a=-1,o=[];for(n=0;n&lt;e.length;n++)if(r=e[n],i.fullData._expandedIndex===r.cd[0].trace._expandedIndex){if(!0===i.hoverOnBox)break;void 0!==i.pointNumber?a=i.pointNumber:void 0!==i.binNumber&amp;&amp;(a=i.binNumber,o=i.pointNumbers);break}return{pointNumber:a,pointNumbers:o,searchInfo:r}}(y,s=N(e,r,n,i));if(_.pointNumbers.length&gt;0?function(t,e){var r,n,i,a=[];for(i=0;i&lt;t.length;i++)(r=t[i]).cd[0].trace.selectedpoints&amp;&amp;r.cd[0].trace.selectedpoints.length&gt;0&amp;&amp;a.push(r);if(1===a.length&amp;&amp;a[0]===e.searchInfo&amp;&amp;(n=e.searchInfo.cd[0].trace).selectedpoints.length===e.pointNumbers.length){for(i=0;i&lt;e.pointNumbers.length;i++)if(n.selectedpoints.indexOf(e.pointNumbers[i])&lt;0)return!1;return!0}return!1}(s,_):function(t){var e,r,n,i=0;for(n=0;n&lt;t.length;n++)if(e=t[n],(r=e.cd[0].trace).selectedpoints){if(r.selectedpoints.length&gt;1)return!1;if((i+=r.selectedpoints.length)&gt;1)return!1}return 1===i}(s)&amp;&amp;(h=j(_))){for(o&amp;&amp;o.remove(),v=0;v&lt;s.length;v++)(l=s[v])._module.selectPoints(l,!1);U(e,s),B(a),x&amp;&amp;e.emit(&quot;plotly_deselect&quot;,null)}else{for(d=t.shiftKey&amp;&amp;(void 0!==h?h:j(_)),c=function(t,e,r){return{pointNumber:t,searchInfo:e,subtract:r}}(_.pointNumber,_.searchInfo,d),u=R(a.selectionDefs.concat([c])),v=0;v&lt;s.length;v++)if(f=V(s[v]._module.selectPoints(s[v],u),s[v]),b.length)for(var w=0;w&lt;f.length;w++)b.push(f[w]);else b=f;if(U(e,s,m={points:b}),c&amp;&amp;a&amp;&amp;a.selectionDefs.push(c),o){var T=a.mergedPolygons,k=p(a.dragmode);g(q(T,k),o,a)}x&amp;&amp;e.emit(&quot;plotly_selected&quot;,m)}}}function O(t){return&quot;pointNumber&quot;in t&amp;&amp;&quot;searchInfo&quot;in t}function D(t){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(e,r,n,i){var a=t.searchInfo.cd[0].trace._expandedIndex;return i.cd[0].trace._expandedIndex===a&amp;&amp;n===t.pointNumber},isRect:!1,degenerate:!1,subtract:t.subtract}}function R(t){for(var e=[],r=O(t[0])?0:t[0][0][0],n=r,i=O(t[0])?0:t[0][0][1],a=i,o=0;o&lt;t.length;o++)if(O(t[o]))e.push(D(t[o]));else{var s=x.tester(t[o]);s.subtract=t[o].subtract,e.push(s),r=Math.min(r,s.xmin),n=Math.max(n,s.xmax),i=Math.min(i,s.ymin),a=Math.max(a,s.ymax)}return{xmin:r,xmax:n,ymin:i,ymax:a,pts:[],contains:function(t,r,n,i){for(var a=!1,o=0;o&lt;e.length;o++)e[o].contains(t,r,n,i)&amp;&amp;(a=!1===e[o].subtract);return a},isRect:!1,degenerate:!1}}function F(t,e,r){e._fullLayout._drawing=!1;var n=e._fullLayout,i=r.plotinfo,a=r.dragmode,o=n._lastSelectedSubplot&amp;&amp;n._lastSelectedSubplot===i.id,s=(t.shiftKey||t.altKey)&amp;&amp;!(h(a)&amp;&amp;p(a));o&amp;&amp;s&amp;&amp;i.selection&amp;&amp;i.selection.selectionDefs&amp;&amp;!r.selectionDefs?(r.selectionDefs=i.selection.selectionDefs,r.mergedPolygons=i.selection.mergedPolygons):s&amp;&amp;i.selection||B(r),o||(E(e),n._lastSelectedSubplot=i.id)}function B(t){var e=t.dragmode,r=t.plotinfo,n=t.gd;if(n._fullLayout._activeShapeIndex&gt;=0&amp;&amp;n._fullLayout._deactivateShape(n),h(e)){var a=n._fullLayout._zoomlayer.selectAll(&quot;.select-outline-&quot;+r.id);if(a&amp;&amp;n._fullLayout._drawing){var o=v(a,t);o&amp;&amp;i.call(&quot;_guiRelayout&quot;,n,{shapes:o}),n._fullLayout._drawing=!1}}r.selection={},r.selection.selectionDefs=t.selectionDefs=[],r.selection.mergedPolygons=t.mergedPolygons=[]}function N(t,e,r,n){var i,a,o,s=[],l=e.map((function(t){return t._id})),c=r.map((function(t){return t._id}));for(o=0;o&lt;t.calcdata.length;o++)if(!0===(a=(i=t.calcdata[o])[0].trace).visible&amp;&amp;a._module&amp;&amp;a._module.selectPoints)if(!n||a.subplot!==n&amp;&amp;a.geo!==n)if(&quot;splom&quot;===a.type&amp;&amp;a._xaxes[l[0]]&amp;&amp;a._yaxes[c[0]]){var u=h(a._module,i,e[0],r[0]);u.scene=t._fullLayout._splomScenes[a.uid],s.push(u)}else if(&quot;sankey&quot;===a.type){var f=h(a._module,i,e[0],r[0]);s.push(f)}else{if(-1===l.indexOf(a.xaxis))continue;if(-1===c.indexOf(a.yaxis))continue;s.push(h(a._module,i,_(t,a.xaxis),_(t,a.yaxis)))}else s.push(h(a._module,i,e[0],r[0]));return s;function h(t,e,r,n){return{_module:t,cd:e,xaxis:r,yaxis:n}}}function j(t){var e=t.searchInfo.cd[0].trace,r=t.pointNumber,n=t.pointNumbers,i=n.length&gt;0?n[0]:r;return!!e.selectedpoints&amp;&amp;e.selectedpoints.indexOf(i)&gt;-1}function U(t,e,r){var n,a,o,s;for(n=0;n&lt;e.length;n++){var l=e[n].cd[0].trace._fullInput,c=t._fullLayout._tracePreGUI[l.uid]||{};void 0===c.selectedpoints&amp;&amp;(c.selectedpoints=l._input.selectedpoints||null)}if(r){var u=r.points||[];for(n=0;n&lt;e.length;n++)(s=e[n].cd[0].trace)._input.selectedpoints=s._fullInput.selectedpoints=[],s._fullInput!==s&amp;&amp;(s.selectedpoints=[]);for(n=0;n&lt;u.length;n++){var f=u[n],h=f.data,p=f.fullData;f.pointIndices?([].push.apply(h.selectedpoints,f.pointIndices),s._fullInput!==s&amp;&amp;[].push.apply(p.selectedpoints,f.pointIndices)):(h.selectedpoints.push(f.pointIndex),s._fullInput!==s&amp;&amp;p.selectedpoints.push(f.pointIndex))}}else for(n=0;n&lt;e.length;n++)delete(s=e[n].cd[0].trace).selectedpoints,delete s._input.selectedpoints,s._fullInput!==s&amp;&amp;delete s._fullInput.selectedpoints;var d=!1;for(n=0;n&lt;e.length;n++){s=(o=(a=e[n]).cd)[0].trace,i.traceIs(s,&quot;regl&quot;)&amp;&amp;(d=!0);var g=a._module,m=g.styleOnSelect||g.style;m&amp;&amp;(m(t,o,o[0].node3),o[0].nodeRangePlot3&amp;&amp;m(t,o,o[0].nodeRangePlot3))}d&amp;&amp;(w(t),T(t))}function V(t,e){if(Array.isArray(t))for(var r=e.cd,n=e.cd[0].trace,i=0;i&lt;t.length;i++)t[i]=l(t[i],n,r);return t}function q(t,e){for(var r=[],n=0;n&lt;t.length;n++){r[n]=[];for(var i=0;i&lt;t[n].length;i++){r[n][i]=[],r[n][i][0]=i?&quot;L&quot;:&quot;M&quot;;for(var a=0;a&lt;t[n][i].length;a++)r[n][i].push(t[n][i][a])}e||r[n].push([&quot;Z&quot;,r[n][0][1],r[n][0][2]])}return r}e.exports={prepSelect:function(t,e,r,i,l){var c=u(l),v=f(l),x=p(l),_=h(l),w=d(l),T=&quot;drawcircle&quot;===l,E=&quot;drawline&quot;===l||T,C=i.gd,O=C._fullLayout,D=O._zoomlayer,j=i.element.getBoundingClientRect(),H=i.plotinfo,G=P(H),Y=e-j.left,W=r-j.top;O._calcInverseTransform(C);var X=y.apply3DTransform(O._invTransform)(Y,W);Y=X[0],W=X[1];var Z,J,K,Q,$,tt,et,rt=O._invScaleX,nt=O._invScaleY,it=Y,at=W,ot=&quot;M&quot;+Y+&quot;,&quot;+W,st=i.xaxes[0]._length,lt=i.yaxes[0]._length,ct=i.xaxes.concat(i.yaxes),ut=t.altKey&amp;&amp;!(h(l)&amp;&amp;x);F(t,C,i),c&amp;&amp;(Z=A([[Y,W]],k.BENDPX));var ft=D.selectAll(&quot;path.select-outline-&quot;+H.id).data(_?[0]:[1,2]),ht=O.newshape;ft.enter().append(&quot;path&quot;).attr(&quot;class&quot;,(function(t){return&quot;select-outline select-outline-&quot;+t+&quot; select-outline-&quot;+H.id})).style(_?{opacity:ht.opacity/2,fill:x?void 0:ht.fillcolor,stroke:ht.line.color,&quot;stroke-dasharray&quot;:a(ht.line.dash,ht.line.width),&quot;stroke-width&quot;:ht.line.width+&quot;px&quot;}:{}).attr(&quot;fill-rule&quot;,ht.fillrule).classed(&quot;cursor-move&quot;,!!_).attr(&quot;transform&quot;,G).attr(&quot;d&quot;,ot+&quot;Z&quot;);var pt,dt=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).style({fill:o.background,stroke:o.defaultLine,&quot;stroke-width&quot;:1}).attr(&quot;transform&quot;,G).attr(&quot;d&quot;,&quot;M0,0Z&quot;),gt=O._uid+k.SELECTID,mt=[],vt=N(C,i.xaxes,i.yaxes,i.subplot);function yt(t,e){return t-e}pt=H.fillRangeItems?H.fillRangeItems:v?function(t,e){var r=t.range={};for($=0;$&lt;ct.length;$++){var n=ct[$],i=n._id.charAt(0);r[n._id]=[L(n,e[i+&quot;min&quot;]),L(n,e[i+&quot;max&quot;])].sort(yt)}}:function(t,e,r){var n=t.lassoPoints={};for($=0;$&lt;ct.length;$++){var i=ct[$];n[i._id]=r.filtered.map(I(i))}},i.moveFn=function(t,e){it=Math.max(0,Math.min(st,rt*t+Y)),at=Math.max(0,Math.min(lt,nt*e+W));var r=Math.abs(it-Y),a=Math.abs(at-W);if(v){var o,s,l;if(w){var u=O.selectdirection;switch(o=&quot;any&quot;===u?a&lt;Math.min(.6*r,M)?&quot;h&quot;:r&lt;Math.min(.6*a,M)?&quot;v&quot;:&quot;d&quot;:u){case&quot;h&quot;:s=T?lt/2:0,l=lt;break;case&quot;v&quot;:s=T?st/2:0,l=st}}if(_)switch(O.newshape.drawdirection){case&quot;vertical&quot;:o=&quot;h&quot;,s=T?lt/2:0,l=lt;break;case&quot;horizontal&quot;:o=&quot;v&quot;,s=T?st/2:0,l=st;break;case&quot;ortho&quot;:r&lt;a?(o=&quot;h&quot;,s=W,l=at):(o=&quot;v&quot;,s=Y,l=it);break;default:o=&quot;d&quot;}&quot;h&quot;===o?((Q=E?m(T,[it,s],[it,l]):[[Y,s],[Y,l],[it,l],[it,s]]).xmin=E?it:Math.min(Y,it),Q.xmax=E?it:Math.max(Y,it),Q.ymin=Math.min(s,l),Q.ymax=Math.max(s,l),dt.attr(&quot;d&quot;,&quot;M&quot;+Q.xmin+&quot;,&quot;+(W-M)+&quot;h-4v&quot;+2*M+&quot;h4ZM&quot;+(Q.xmax-1)+&quot;,&quot;+(W-M)+&quot;h4v&quot;+2*M+&quot;h-4Z&quot;)):&quot;v&quot;===o?((Q=E?m(T,[s,at],[l,at]):[[s,W],[s,at],[l,at],[l,W]]).xmin=Math.min(s,l),Q.xmax=Math.max(s,l),Q.ymin=E?at:Math.min(W,at),Q.ymax=E?at:Math.max(W,at),dt.attr(&quot;d&quot;,&quot;M&quot;+(Y-M)+&quot;,&quot;+Q.ymin+&quot;v-4h&quot;+2*M+&quot;v4ZM&quot;+(Y-M)+&quot;,&quot;+(Q.ymax-1)+&quot;v4h&quot;+2*M+&quot;v-4Z&quot;)):&quot;d&quot;===o&amp;&amp;((Q=E?m(T,[Y,W],[it,at]):[[Y,W],[Y,at],[it,at],[it,W]]).xmin=Math.min(Y,it),Q.xmax=Math.max(Y,it),Q.ymin=Math.min(W,at),Q.ymax=Math.max(W,at),dt.attr(&quot;d&quot;,&quot;M0,0Z&quot;))}else c&amp;&amp;(Z.addPt([it,at]),Q=Z.filtered);i.selectionDefs&amp;&amp;i.selectionDefs.length?(K=function(t,e,r){if(r)return n.difference({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions;return n.union({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions}(i.mergedPolygons,Q,ut),Q.subtract=ut,J=R(i.selectionDefs.concat([Q]))):(K=[Q],J=S(Q)),g(q(K,x),ft,i),w&amp;&amp;b.throttle(gt,k.SELECTDELAY,(function(){var t;mt=[];var e,r=[];for($=0;$&lt;vt.length;$++)if(e=(tt=vt[$])._module.selectPoints(tt,J),r.push(e),t=V(e,tt),mt.length)for(var n=0;n&lt;t.length;n++)mt.push(t[n]);else mt=t;U(C,vt,et={points:mt}),pt(et,Q,Z),i.gd.emit(&quot;plotly_selecting&quot;,et)}))},i.clickFn=function(t,e){if(dt.remove(),C._fullLayout._activeShapeIndex&gt;=0)C._fullLayout._deactivateShape(C);else if(!_){var r=O.clickmode;b.done(gt).then((function(){if(b.clear(gt),2===t){for(ft.remove(),$=0;$&lt;vt.length;$++)(tt=vt[$])._module.selectPoints(tt,!1);U(C,vt),B(i),C.emit(&quot;plotly_deselect&quot;,null)}else r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;z(e,C,i.xaxes,i.yaxes,i.subplot,i,ft),&quot;event&quot;===r&amp;&amp;C.emit(&quot;plotly_selected&quot;,void 0);s.click(C,e)})).catch(y.error)}},i.doneFn=function(){dt.remove(),b.done(gt).then((function(){b.clear(gt),i.gd.emit(&quot;plotly_selected&quot;,et),Q&amp;&amp;i.selectionDefs&amp;&amp;(Q.subtract=ut,i.selectionDefs.push(Q),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,K)),i.doneFnCompleted&amp;&amp;i.doneFnCompleted(mt)})).catch(y.error),_&amp;&amp;B(i)}},clearSelect:E,clearSelectionsCache:B,selectOnClick:z}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../components/fx/helpers&quot;:679,&quot;../../components/shapes/draw_newshape/display_outlines&quot;:728,&quot;../../components/shapes/draw_newshape/helpers&quot;:729,&quot;../../components/shapes/draw_newshape/newshapes&quot;:730,&quot;../../lib&quot;:778,&quot;../../lib/clear_gl_canvases&quot;:762,&quot;../../lib/polygon&quot;:790,&quot;../../lib/throttle&quot;:804,&quot;../../plot_api/subroutines&quot;:818,&quot;../../registry&quot;:911,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./handle_outline&quot;:838,&quot;./helpers&quot;:839,polybooljs:517}],848:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-time-format&quot;).utcFormat,a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../lib&quot;),s=o.cleanNumber,l=o.ms2DateTime,c=o.dateTime2ms,u=o.ensureNumber,f=o.isArrayOrTypedArray,h=t(&quot;../../constants/numerical&quot;),p=h.FP_SAFE,d=h.BADNUM,g=h.LOG_CLIP,m=h.ONEWEEK,v=h.ONEDAY,y=h.ONEHOUR,x=h.ONEMIN,b=h.ONESEC,_=t(&quot;./axis_ids&quot;),w=t(&quot;./constants&quot;),T=w.HOUR_PATTERN,k=w.WEEKDAY_PATTERN;function M(t){return Math.pow(10,t)}function A(t){return null!=t}e.exports=function(t,e){e=e||{};var r=t._id||&quot;x&quot;,h=r.charAt(0);function S(e,r){if(e&gt;0)return Math.log(e)/Math.LN10;if(e&lt;=0&amp;&amp;r&amp;&amp;t.range&amp;&amp;2===t.range.length){var n=t.range[0],i=t.range[1];return.5*(n+i-2*g*Math.abs(n-i))}return d}function E(e,r,n,i){if((i||{}).msUTC&amp;&amp;a(e))return+e;var s=c(e,n||t.calendar);if(s===d){if(!a(e))return d;e=+e;var l=Math.floor(10*o.mod(e+.05,1)),u=Math.round(e-l/10);s=c(new Date(u))+l/10}return s}function C(e,r,n){return l(e,r,n||t.calendar)}function L(e){return t._categories[Math.round(e)]}function I(e){if(A(e)){if(void 0===t._categoriesMap&amp;&amp;(t._categoriesMap={}),void 0!==t._categoriesMap[e])return t._categoriesMap[e];t._categories.push(&quot;number&quot;==typeof e?String(e):e);var r=t._categories.length-1;return t._categoriesMap[e]=r,r}return d}function P(e){if(t._categoriesMap)return t._categoriesMap[e]}function z(t){var e=P(t);return void 0!==e?e:a(t)?+t:void 0}function O(t){return a(t)?+t:P(t)}function D(t,e,r){return n.round(r+e*t,2)}function R(t,e,r){return(t-r)/e}var F=function(e){return a(e)?D(e,t._m,t._b):d},B=function(e){return R(e,t._m,t._b)};if(t.rangebreaks){var N=&quot;y&quot;===h;F=function(e){if(!a(e))return d;var r=t._rangebreaks.length;if(!r)return D(e,t._m,t._b);var n=N;t.range[0]&gt;t.range[1]&amp;&amp;(n=!n);for(var i=n?-1:1,o=i*e,s=0,l=0;l&lt;r;l++){var c=i*t._rangebreaks[l].min,u=i*t._rangebreaks[l].max;if(o&lt;c)break;if(!(o&gt;u)){s=o&lt;(c+u)/2?l:l+1;break}s=l+1}var f=t._B[s]||0;return isFinite(f)?D(e,t._m2,f):0},B=function(e){var r=t._rangebreaks.length;if(!r)return R(e,t._m,t._b);for(var n=0,i=0;i&lt;r&amp;&amp;!(e&lt;t._rangebreaks[i].pmin);i++)e&gt;t._rangebreaks[i].pmax&amp;&amp;(n=i+1);return R(e,t._m2,t._B[n])}}t.c2l=&quot;log&quot;===t.type?S:u,t.l2c=&quot;log&quot;===t.type?M:u,t.l2p=F,t.p2l=B,t.c2p=&quot;log&quot;===t.type?function(t,e){return F(S(t,e))}:F,t.p2c=&quot;log&quot;===t.type?function(t){return M(B(t))}:B,-1!==[&quot;linear&quot;,&quot;-&quot;].indexOf(t.type)?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=s,t.c2d=t.c2r=t.l2d=t.l2r=u,t.d2p=t.r2p=function(e){return t.l2p(s(e))},t.p2d=t.p2r=B,t.cleanPos=u):&quot;log&quot;===t.type?(t.d2r=t.d2l=function(t,e){return S(s(t),e)},t.r2d=t.r2c=function(t){return M(s(t))},t.d2c=t.r2l=s,t.c2d=t.l2r=u,t.c2r=S,t.l2d=M,t.d2p=function(e,r){return t.l2p(t.d2r(e,r))},t.p2d=function(t){return M(B(t))},t.r2p=function(e){return t.l2p(s(e))},t.p2r=B,t.cleanPos=u):&quot;date&quot;===t.type?(t.d2r=t.r2d=o.identity,t.d2c=t.r2c=t.d2l=t.r2l=E,t.c2d=t.c2r=t.l2d=t.l2r=C,t.d2p=t.r2p=function(e,r,n){return t.l2p(E(e,0,n))},t.p2d=t.p2r=function(t,e,r){return C(B(t),e,r)},t.cleanPos=function(e){return o.cleanDate(e,d,t.calendar)}):&quot;category&quot;===t.type?(t.d2c=t.d2l=I,t.r2d=t.c2d=t.l2d=L,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=O(e);return void 0!==r?r:t.fraction2r(.5)},t.l2r=t.c2r=u,t.r2l=O,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return L(B(t))},t.r2p=t.d2p,t.p2r=B,t.cleanPos=function(t){return&quot;string&quot;==typeof t&amp;&amp;&quot;&quot;!==t?t:u(t)}):&quot;multicategory&quot;===t.type&amp;&amp;(t.r2d=t.c2d=t.l2d=L,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=z(e);return void 0!==r?r:t.fraction2r(.5)},t.r2c_just_indices=P,t.l2r=t.c2r=u,t.r2l=z,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return L(B(t))},t.r2p=t.d2p,t.p2r=B,t.cleanPos=function(t){return Array.isArray(t)||&quot;string&quot;==typeof t&amp;&amp;&quot;&quot;!==t?t:u(t)},t.setupMultiCategory=function(n){var i,a,s=t._traceIndices,l=t._matchGroup;if(l&amp;&amp;0===t._categories.length)for(var c in l)if(c!==r){var u=e[_.id2name(c)];s=s.concat(u._traceIndices)}var p=[[0,{}],[0,{}]],d=[];for(i=0;i&lt;s.length;i++){var g=n[s[i]];if(h in g){var m=g[h],v=g._length||o.minRowLength(m);if(f(m[0])&amp;&amp;f(m[1]))for(a=0;a&lt;v;a++){var y=m[0][a],x=m[1][a];A(y)&amp;&amp;A(x)&amp;&amp;(d.push([y,x]),y in p[0][1]||(p[0][1][y]=p[0][0]++),x in p[1][1]||(p[1][1][x]=p[1][0]++))}}}for(d.sort((function(t,e){var r=p[0][1],n=r[t[0]]-r[e[0]];if(n)return n;var i=p[1][1];return i[t[1]]-i[e[1]]})),i=0;i&lt;d.length;i++)I(d[i])}),t.fraction2r=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return t.l2r(r+e*(n-r))},t.r2fraction=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return(t.r2l(e)-r)/(n-r)},t.cleanRange=function(e,r){r||(r={}),e||(e=&quot;range&quot;);var n,i,s=o.nestedProperty(t,e).get();if(i=(i=&quot;date&quot;===t.type?o.dfltRange(t.calendar):&quot;y&quot;===h?w.DFLTRANGEY:r.dfltRange||w.DFLTRANGEX).slice(),&quot;tozero&quot;!==t.rangemode&amp;&amp;&quot;nonnegative&quot;!==t.rangemode||(i[0]=0),s&amp;&amp;2===s.length)for(&quot;date&quot;!==t.type||t.autorange||(s[0]=o.cleanDate(s[0],d,t.calendar),s[1]=o.cleanDate(s[1],d,t.calendar)),n=0;n&lt;2;n++)if(&quot;date&quot;===t.type){if(!o.isDateTime(s[n],t.calendar)){t[e]=i;break}if(t.r2l(s[0])===t.r2l(s[1])){var l=o.constrain(t.r2l(s[0]),o.MIN_MS+1e3,o.MAX_MS-1e3);s[0]=t.l2r(l-1e3),s[1]=t.l2r(l+1e3);break}}else{if(!a(s[n])){if(!a(s[1-n])){t[e]=i;break}s[n]=s[1-n]*(n?10:.1)}if(s[n]&lt;-p?s[n]=-p:s[n]&gt;p&amp;&amp;(s[n]=p),s[0]===s[1]){var c=Math.max(1,Math.abs(1e-6*s[0]));s[0]-=c,s[1]+=c}}else o.nestedProperty(t,e).set(i)},t.setScale=function(r){var n=e._size;if(t.overlaying){var i=_.getFromId({_fullLayout:e},t.overlaying);t.domain=i.domain}var a=r&amp;&amp;t._r?&quot;_r&quot;:&quot;range&quot;,o=t.calendar;t.cleanRange(a);var s,l,c=t.r2l(t[a][0],o),u=t.r2l(t[a][1],o),f=&quot;y&quot;===h;if((f?(t._offset=n.t+(1-t.domain[1])*n.h,t._length=n.h*(t.domain[1]-t.domain[0]),t._m=t._length/(c-u),t._b=-t._m*u):(t._offset=n.l+t.domain[0]*n.w,t._length=n.w*(t.domain[1]-t.domain[0]),t._m=t._length/(u-c),t._b=-t._m*c),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks)&amp;&amp;(t._rangebreaks=t.locateBreaks(Math.min(c,u),Math.max(c,u)),t._rangebreaks.length)){for(s=0;s&lt;t._rangebreaks.length;s++)l=t._rangebreaks[s],t._lBreaks+=Math.abs(l.max-l.min);var p=f;c&gt;u&amp;&amp;(p=!p),p&amp;&amp;t._rangebreaks.reverse();var d=p?-1:1;for(t._m2=d*t._length/(Math.abs(u-c)-t._lBreaks),t._B.push(-t._m2*(f?u:c)),s=0;s&lt;t._rangebreaks.length;s++)l=t._rangebreaks[s],t._B.push(t._B[t._B.length-1]-d*t._m2*(l.max-l.min));for(s=0;s&lt;t._rangebreaks.length;s++)(l=t._rangebreaks[s]).pmin=F(l.min),l.pmax=F(l.max)}if(!isFinite(t._m)||!isFinite(t._b)||t._length&lt;0)throw e._replotting=!1,new Error(&quot;Something went wrong with axis scaling&quot;)},t.maskBreaks=function(e){for(var r,n,i,a,l,c=t.rangebreaks||[],u=0;u&lt;c.length;u++){var f=c[u];if(f.enabled)if(f.bounds){var h=f.pattern;switch(n=(r=o.simpleMap(f.bounds,h?s:t.d2c))[0],i=r[1],h){case k:a=(l=new Date(e)).getUTCDay(),n&gt;i&amp;&amp;(i+=7,a&lt;n&amp;&amp;(a+=7));break;case T:a=(l=new Date(e)).getUTCHours()+(l.getUTCMinutes()/60+l.getUTCSeconds()/3600+l.getUTCMilliseconds()/36e5),n&gt;i&amp;&amp;(i+=24,a&lt;n&amp;&amp;(a+=24));break;case&quot;&quot;:a=e}if(a&gt;=n&amp;&amp;a&lt;i)return d}else for(var p=o.simpleMap(f.values,t.d2c).sort(o.sorterAsc),g=0;g&lt;p.length;g++)if(i=(n=p[g])+f.dvalue,e&gt;=n&amp;&amp;e&lt;i)return d}return e},t.locateBreaks=function(e,r){var n,i,a,l,c=[];if(!t.rangebreaks)return c;var u=t.rangebreaks.slice().sort((function(t,e){return t.pattern===k&amp;&amp;e.pattern===T?-1:e.pattern===k&amp;&amp;t.pattern===T?1:0})),f=function(t,n){if((t=o.constrain(t,e,r))!==(n=o.constrain(n,e,r))){for(var i=!0,a=0;a&lt;c.length;a++){var s=c[a];t&lt;s.max&amp;&amp;n&gt;=s.min&amp;&amp;(t&lt;s.min&amp;&amp;(s.min=t),n&gt;s.max&amp;&amp;(s.max=n),i=!1)}i&amp;&amp;c.push({min:t,max:n})}};for(n=0;n&lt;u.length;n++){var h=u[n];if(h.enabled)if(h.bounds){var p=e,d=r;h.pattern&amp;&amp;(p=Math.floor(p)),a=(i=o.simpleMap(h.bounds,h.pattern?s:t.r2l))[0],l=i[1];var g,_,w=new Date(p);switch(h.pattern){case k:_=m,g=(l-a+(l&lt;a?7:0))*v,p+=a*v-(w.getUTCDay()*v+w.getUTCHours()*y+w.getUTCMinutes()*x+w.getUTCSeconds()*b+w.getUTCMilliseconds());break;case T:_=v,g=(l-a+(l&lt;a?24:0))*y,p+=a*y-(w.getUTCHours()*y+w.getUTCMinutes()*x+w.getUTCSeconds()*b+w.getUTCMilliseconds());break;default:p=Math.min(i[0],i[1]),g=_=(d=Math.max(i[0],i[1]))-p}for(var M=p;M&lt;d;M+=_)f(M,M+g)}else for(var A=o.simpleMap(h.values,t.d2c),S=0;S&lt;A.length;S++)f(a=A[S],l=a+h.dvalue)}return c.sort((function(t,e){return t.min-e.min})),c},t.makeCalcdata=function(e,r,n){var i,a,s,l,c=t.type,u=&quot;date&quot;===c&amp;&amp;e[r+&quot;calendar&quot;];if(r in e){if(i=e[r],l=e._length||o.minRowLength(i),o.isTypedArray(i)&amp;&amp;(&quot;linear&quot;===c||&quot;log&quot;===c)){if(l===i.length)return i;if(i.subarray)return i.subarray(0,l)}if(&quot;multicategory&quot;===c)return function(t,e){for(var r=new Array(e),n=0;n&lt;e;n++){var i=(t[0]||[])[n],a=(t[1]||[])[n];r[n]=P([i,a])}return r}(i,l);for(a=new Array(l),s=0;s&lt;l;s++)a[s]=t.d2c(i[s],0,u,n)}else{var f=r+&quot;0&quot;in e?t.d2c(e[r+&quot;0&quot;],0,u):0,h=e[&quot;d&quot;+r]?Number(e[&quot;d&quot;+r]):1;for(i=e[{x:&quot;y&quot;,y:&quot;x&quot;}[r]],l=e._length||i.length,a=new Array(l),s=0;s&lt;l;s++)a[s]=f+s*h}if(t.rangebreaks)for(s=0;s&lt;l;s++)a[s]=t.maskBreaks(a[s]);return a},t.isValidRange=function(e){return Array.isArray(e)&amp;&amp;2===e.length&amp;&amp;a(t.r2l(e[0]))&amp;&amp;a(t.r2l(e[1]))},t.isPtWithinRange=function(e,r){var n=t.c2l(e[h],null,r),i=t.r2l(t.range[0]),a=t.r2l(t.range[1]);return i&lt;a?i&lt;=n&amp;&amp;n&lt;=a:a&lt;=n&amp;&amp;n&lt;=i},t._emptyCategories=function(){t._categories=[],t._categoriesMap={}},t.clearCalc=function(){var r=t._matchGroup;if(r){var n=null,i=null;for(var a in r){var o=e[_.id2name(a)];if(o._categories){n=o._categories,i=o._categoriesMap;break}}n&amp;&amp;i?(t._categories=n,t._categoriesMap=i):t._emptyCategories()}else t._emptyCategories();if(t._initialCategories)for(var s=0;s&lt;t._initialCategories.length;s++)I(t._initialCategories[s])},t.sortByInitialCategories=function(){var n=[];if(t._emptyCategories(),t._initialCategories)for(var i=0;i&lt;t._initialCategories.length;i++)I(t._initialCategories[i]);n=n.concat(t._traceIndices);var a=t._matchGroup;for(var o in a)if(r!==o){var s=e[_.id2name(o)];s._categories=t._categories,s._categoriesMap=t._categoriesMap,n=n.concat(s._traceIndices)}return n};var j=e._d3locale;&quot;date&quot;===t.type&amp;&amp;(t._dateFormat=j?j.timeFormat:i,t._extraFormat=e._extraFormat),t._separators=e.separators,t._numFormat=j?j.numberFormat:n.format,delete t._minDtick,delete t._forceTick0}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,d3:169,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],849:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;).contrast,a=t(&quot;./layout_attributes&quot;),o=t(&quot;../array_container_defaults&quot;);function s(t){var e=[&quot;showexponent&quot;,&quot;showtickprefix&quot;,&quot;showticksuffix&quot;].filter((function(e){return void 0!==t[e]}));if(e.every((function(r){return t[r]===t[e[0]]}))||1===e.length)return t[e[0]]}function l(t,e){function r(r,i){return n.coerce(t,e,a.tickformatstops,r,i)}r(&quot;enabled&quot;)&amp;&amp;(r(&quot;dtickrange&quot;),r(&quot;value&quot;))}e.exports=function(t,e,r,c,u,f){f&amp;&amp;1!==f.pass||function(t,e,r,n,i){var a=s(t);r(&quot;tickprefix&quot;)&amp;&amp;r(&quot;showtickprefix&quot;,a);r(&quot;ticksuffix&quot;,i.tickSuffixDflt)&amp;&amp;r(&quot;showticksuffix&quot;,a)}(t,0,r,0,u),f&amp;&amp;2!==f.pass||function(t,e,r,c,u){var f=s(t);r(&quot;tickprefix&quot;)&amp;&amp;r(&quot;showtickprefix&quot;,f);r(&quot;ticksuffix&quot;,u.tickSuffixDflt)&amp;&amp;r(&quot;showticksuffix&quot;,f);if(r(&quot;showticklabels&quot;)){var h=u.font||{},p=e.color,d=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)?i(u.bgColor):p&amp;&amp;p!==a.color.dflt?p:h.color;if(n.coerceFont(r,&quot;tickfont&quot;,{family:h.family,size:h.size,color:d}),r(&quot;tickangle&quot;),&quot;category&quot;!==c){var g=r(&quot;tickformat&quot;);o(t,e,{name:&quot;tickformatstops&quot;,inclusionAttr:&quot;enabled&quot;,handleItemDefaults:l}),e.tickformatstops.length||delete e.tickformatstops,g||&quot;date&quot;===c||(r(&quot;showexponent&quot;,f),r(&quot;exponentformat&quot;),r(&quot;minexponent&quot;),r(&quot;separatethousands&quot;))}}}(t,e,r,c,u)}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../array_container_defaults&quot;:823,&quot;./layout_attributes&quot;:842}],850:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r,a){var o=n.coerce2(t,e,i,&quot;ticklen&quot;),s=n.coerce2(t,e,i,&quot;tickwidth&quot;),l=n.coerce2(t,e,i,&quot;tickcolor&quot;,e.color);r(&quot;ticks&quot;,a.outerTicks||o||s||l?&quot;outside&quot;:&quot;&quot;)||(delete e.ticklen,delete e.tickwidth,delete e.tickcolor)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:842}],851:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./clean_ticks&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a){function o(r){var n=t[r];return void 0!==n?n:(e._template||{})[r]}var s=o(&quot;tick0&quot;),l=o(&quot;dtick&quot;),c=o(&quot;tickvals&quot;),u=r(&quot;tickmode&quot;,i(c)?&quot;array&quot;:l?&quot;linear&quot;:&quot;auto&quot;);if(&quot;auto&quot;===u)r(&quot;nticks&quot;);else if(&quot;linear&quot;===u){var f=e.dtick=n.dtick(l,a);e.tick0=n.tick0(s,a,e.calendar,f)}else if(&quot;multicategory&quot;!==a){void 0===r(&quot;tickvals&quot;)?e.tickmode=&quot;auto&quot;:r(&quot;ticktext&quot;)}}},{&quot;../../lib&quot;:778,&quot;./clean_ticks&quot;:833}],852:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;./axes&quot;);e.exports=function(t,e,r,l){var c=t._fullLayout;if(0!==e.length){var u,f,h,p;l&amp;&amp;(u=l());var d=n.ease(r.easing);return t._transitionData._interruptCallbacks.push((function(){return window.cancelAnimationFrame(p),p=null,function(){for(var r={},n=0;n&lt;e.length;n++){var a=e[n],o=a.plotinfo.xaxis,s=a.plotinfo.yaxis;a.xr0&amp;&amp;(r[o._name+&quot;.range&quot;]=a.xr0.slice()),a.yr0&amp;&amp;(r[s._name+&quot;.range&quot;]=a.yr0.slice())}return i.call(&quot;relayout&quot;,t,r).then((function(){for(var t=0;t&lt;e.length;t++)g(e[t].plotinfo)}))}()})),f=Date.now(),p=window.requestAnimationFrame((function n(){h=Date.now();for(var a=Math.min(1,(h-f)/r.duration),o=d(a),s=0;s&lt;e.length;s++)m(e[s],o);h-f&gt;r.duration?(!function(){for(var r={},n=0;n&lt;e.length;n++){var a=e[n],o=a.plotinfo.xaxis,s=a.plotinfo.yaxis;a.xr1&amp;&amp;(r[o._name+&quot;.range&quot;]=a.xr1.slice()),a.yr1&amp;&amp;(r[s._name+&quot;.range&quot;]=a.yr1.slice())}u&amp;&amp;u(),i.call(&quot;relayout&quot;,t,r).then((function(){for(var t=0;t&lt;e.length;t++)g(e[t].plotinfo)}))}(),p=window.cancelAnimationFrame(n)):p=window.requestAnimationFrame(n)})),Promise.resolve()}function g(t){var e=t.xaxis,r=t.yaxis;c._defs.select(&quot;#&quot;+t.clipId+&quot;&gt; rect&quot;).call(o.setTranslate,0,0).call(o.setScale,1,1),t.plot.call(o.setTranslate,e._offset,r._offset).call(o.setScale,1,1);var n=t.plot.selectAll(&quot;.scatterlayer .trace&quot;);n.selectAll(&quot;.point&quot;).call(o.setPointGroupScale,1,1),n.selectAll(&quot;.textpoint&quot;).call(o.setTextPointsScale,1,1),n.call(o.hideOutsideRangePoints,t)}function m(e,r){var n=e.plotinfo,i=n.xaxis,l=n.yaxis,c=i._length,u=l._length,f=!!e.xr1,h=!!e.yr1,p=[];if(f){var d=a.simpleMap(e.xr0,i.r2l),g=a.simpleMap(e.xr1,i.r2l),m=d[1]-d[0],v=g[1]-g[0];p[0]=(d[0]*(1-r)+r*g[0]-d[0])/(d[1]-d[0])*c,p[2]=c*(1-r+r*v/m),i.range[0]=i.l2r(d[0]*(1-r)+r*g[0]),i.range[1]=i.l2r(d[1]*(1-r)+r*g[1])}else p[0]=0,p[2]=c;if(h){var y=a.simpleMap(e.yr0,l.r2l),x=a.simpleMap(e.yr1,l.r2l),b=y[1]-y[0],_=x[1]-x[0];p[1]=(y[1]*(1-r)+r*x[1]-y[1])/(y[0]-y[1])*u,p[3]=u*(1-r+r*_/b),l.range[0]=i.l2r(y[0]*(1-r)+r*x[0]),l.range[1]=l.l2r(y[1]*(1-r)+r*x[1])}else p[1]=0,p[3]=u;s.drawOne(t,i,{skipTitle:!0}),s.drawOne(t,l,{skipTitle:!0}),s.redrawComponents(t,[i._id,l._id]);var w=f?c/p[2]:1,T=h?u/p[3]:1,k=f?p[0]:0,M=h?p[1]:0,A=f?p[0]/p[2]*c:0,S=h?p[1]/p[3]*u:0,E=i._offset-A,C=l._offset-S;n.clipRect.call(o.setTranslate,k,M).call(o.setScale,1/w,1/T),n.plot.call(o.setTranslate,E,C).call(o.setScale,w,T),o.setPointGroupScale(n.zoomScalePts,1/w,1/T),o.setTextPointsScale(n.zoomScaleTxt,1/w,1/T)}s.redrawComponents(t)}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./axes&quot;:828,d3:169}],853:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;).traceIs,i=t(&quot;./axis_autotype&quot;);function a(t){return{v:&quot;x&quot;,h:&quot;y&quot;}[t.orientation||&quot;v&quot;]}function o(t,e){var r=a(t),i=n(t,&quot;box-violin&quot;),o=n(t._fullInput||{},&quot;candlestick&quot;);return i&amp;&amp;!o&amp;&amp;e===r&amp;&amp;void 0===t[r]&amp;&amp;void 0===t[r+&quot;0&quot;]}e.exports=function(t,e,r,s){r(&quot;autotypenumbers&quot;,s.autotypenumbersDflt),&quot;-&quot;===r(&quot;type&quot;,(s.splomStash||{}).type)&amp;&amp;(!function(t,e){if(&quot;-&quot;!==t.type)return;var r,s=t._id,l=s.charAt(0);-1!==s.indexOf(&quot;scene&quot;)&amp;&amp;(s=l);var c=function(t,e,r){for(var n=0;n&lt;t.length;n++){var i=t[n];if(&quot;splom&quot;===i.type&amp;&amp;i._length&gt;0&amp;&amp;(i[&quot;_&quot;+r+&quot;axes&quot;]||{})[e])return i;if((i[r+&quot;axis&quot;]||r)===e){if(o(i,r))return i;if((i[r]||[]).length||i[r+&quot;0&quot;])return i}}}(e,s,l);if(!c)return;if(&quot;histogram&quot;===c.type&amp;&amp;l==={v:&quot;y&quot;,h:&quot;x&quot;}[c.orientation||&quot;v&quot;])return void(t.type=&quot;linear&quot;);var u=l+&quot;calendar&quot;,f=c[u],h={noMultiCategory:!n(c,&quot;cartesian&quot;)||n(c,&quot;noMultiCategory&quot;)};&quot;box&quot;===c.type&amp;&amp;c._hasPreCompStats&amp;&amp;l==={h:&quot;x&quot;,v:&quot;y&quot;}[c.orientation||&quot;v&quot;]&amp;&amp;(h.noMultiCategory=!0);if(h.autotypenumbers=t.autotypenumbers,o(c,l)){var p=a(c),d=[];for(r=0;r&lt;e.length;r++){var g=e[r];n(g,&quot;box-violin&quot;)&amp;&amp;(g[l+&quot;axis&quot;]||l)===s&amp;&amp;(void 0!==g[p]?d.push(g[p][0]):void 0!==g.name?d.push(g.name):d.push(&quot;text&quot;),g[u]!==f&amp;&amp;(f=void 0))}t.type=i(d,f,h)}else if(&quot;splom&quot;===c.type){var m=c.dimensions[c._axesDim[s]];m.visible&amp;&amp;(t.type=i(m.values,f,h))}else t.type=i(c[l]||[c[l+&quot;0&quot;]],f,h)}(e,s.data),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:t.type=e.type)}},{&quot;../../registry&quot;:911,&quot;./axis_autotype&quot;:829}],854:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;);function a(t,e,r){var n,a,o,s=!1;if(&quot;data&quot;===e.type)n=t._fullData[null!==e.traces?e.traces[0]:0];else{if(&quot;layout&quot;!==e.type)return!1;n=t._fullLayout}return a=i.nestedProperty(n,e.prop).get(),(o=r[e.type]=r[e.type]||{}).hasOwnProperty(e.prop)&amp;&amp;o[e.prop]!==a&amp;&amp;(s=!0),o[e.prop]=a,{changed:s,value:a}}function o(t,e){var r=[],n=e[0],a={};if(&quot;string&quot;==typeof n)a[n]=e[1];else{if(!i.isPlainObject(n))return r;a=n}return l(a,(function(t,e,n){r.push({type:&quot;layout&quot;,prop:t,value:n})}),&quot;&quot;,0),r}function s(t,e){var r,n,a,o,s=[];if(n=e[0],a=e[1],r=e[2],o={},&quot;string&quot;==typeof n)o[n]=a;else{if(!i.isPlainObject(n))return s;o=n,void 0===r&amp;&amp;(r=a)}return void 0===r&amp;&amp;(r=null),l(o,(function(e,n,i){var a,o;if(Array.isArray(i)){o=i.slice();var l=Math.min(o.length,t.data.length);r&amp;&amp;(l=Math.min(l,r.length)),a=[];for(var c=0;c&lt;l;c++)a[c]=r?r[c]:c}else o=i,a=r?r.slice():null;if(null===a)Array.isArray(o)&amp;&amp;(o=o[0]);else if(Array.isArray(a)){if(!Array.isArray(o)){var u=o;o=[];for(var f=0;f&lt;a.length;f++)o[f]=u}o.length=Math.min(a.length,o.length)}s.push({type:&quot;data&quot;,prop:e,traces:a,value:o})}),&quot;&quot;,0),s}function l(t,e,r,n){Object.keys(t).forEach((function(a){var o=t[a];if(&quot;_&quot;!==a[0]){var s=r+(n&gt;0?&quot;.&quot;:&quot;&quot;)+a;i.isPlainObject(o)?l(o,e,s,n+1):e(s,a,o)}}))}r.manageCommandObserver=function(t,e,n,o){var s={},l=!0;e&amp;&amp;e._commandObserver&amp;&amp;(s=e._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var c=r.hasSimpleAPICommandBindings(t,n,s.lookupTable);if(e&amp;&amp;e._commandObserver){if(c)return s;if(e._commandObserver.remove)return e._commandObserver.remove(),e._commandObserver=null,s}if(c){a(t,c,s.cache),s.check=function(){if(l){var e=a(t,c,s.cache);return e.changed&amp;&amp;o&amp;&amp;void 0!==s.lookupTable[e.value]&amp;&amp;(s.disable(),Promise.resolve(o({value:e.value,type:c.type,prop:c.prop,traces:c.traces,index:s.lookupTable[e.value]})).then(s.enable,s.enable)),e.changed}};for(var u=[&quot;plotly_relayout&quot;,&quot;plotly_redraw&quot;,&quot;plotly_restyle&quot;,&quot;plotly_update&quot;,&quot;plotly_animatingframe&quot;,&quot;plotly_afterplot&quot;],f=0;f&lt;u.length;f++)t._internalOn(u[f],s.check);s.remove=function(){for(var e=0;e&lt;u.length;e++)t._removeInternalListener(u[e],s.check)}}else i.log(&quot;Unable to automatically bind plot updates to API command&quot;),s.lookupTable={},s.remove=function(){};return s.disable=function(){l=!1},s.enable=function(){l=!0},e&amp;&amp;(e._commandObserver=s),s},r.hasSimpleAPICommandBindings=function(t,e,n){var i,a,o=e.length;for(i=0;i&lt;o;i++){var s,l=e[i],c=l.method,u=l.args;if(Array.isArray(u)||(u=[]),!c)return!1;var f=r.computeAPICommandBindings(t,c,u);if(1!==f.length)return!1;if(a){if((s=f[0]).type!==a.type)return!1;if(s.prop!==a.prop)return!1;if(Array.isArray(a.traces)){if(!Array.isArray(s.traces))return!1;s.traces.sort();for(var h=0;h&lt;a.traces.length;h++)if(a.traces[h]!==s.traces[h])return!1}else if(s.prop!==a.prop)return!1}else a=f[0],Array.isArray(a.traces)&amp;&amp;a.traces.sort();var p=(s=f[0]).value;if(Array.isArray(p)){if(1!==p.length)return!1;p=p[0]}n&amp;&amp;(n[p]=i)}return a},r.executeAPICommand=function(t,e,r){if(&quot;skip&quot;===e)return Promise.resolve();var a=n.apiMethodRegistry[e],o=[t];Array.isArray(r)||(r=[]);for(var s=0;s&lt;r.length;s++)o.push(r[s]);return a.apply(null,o).catch((function(t){return i.warn(&quot;API call to Plotly.&quot;+e+&quot; rejected.&quot;,t),Promise.reject(t)}))},r.computeAPICommandBindings=function(t,e,r){var n;switch(Array.isArray(r)||(r=[]),e){case&quot;restyle&quot;:n=s(t,r);break;case&quot;relayout&quot;:n=o(t,r);break;case&quot;update&quot;:n=s(t,[r[0],r[2]]).concat(o(t,[r[1]]));break;case&quot;animate&quot;:n=function(t,e){return Array.isArray(e[0])&amp;&amp;1===e[0].length&amp;&amp;-1!==[&quot;string&quot;,&quot;number&quot;].indexOf(typeof e[0][0])?[{type:&quot;layout&quot;,prop:&quot;_currentFrame&quot;,value:e[0][0].toString()}]:[]}(0,r);break;default:n=[]}return n}},{&quot;../lib&quot;:778,&quot;../registry&quot;:911}],855:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/extend&quot;).extendFlat;r.attributes=function(t,e){e=e||{};var r={valType:&quot;info_array&quot;,editType:(t=t||{}).editType,items:[{valType:&quot;number&quot;,min:0,max:1,editType:t.editType},{valType:&quot;number&quot;,min:0,max:1,editType:t.editType}],dflt:[0,1]},i=(t.name&amp;&amp;t.name,t.trace,e.description&amp;&amp;e.description,{x:n({},r,{}),y:n({},r,{}),editType:t.editType});return t.noGridCell||(i.row={valType:&quot;integer&quot;,min:0,dflt:0,editType:t.editType},i.column={valType:&quot;integer&quot;,min:0,dflt:0,editType:t.editType}),i},r.defaults=function(t,e,r,n){var i=n&amp;&amp;n.x||[0,1],a=n&amp;&amp;n.y||[0,1],o=e.grid;if(o){var s=r(&quot;domain.column&quot;);void 0!==s&amp;&amp;(s&lt;o.columns?i=o._domains.x[s]:delete t.domain.column);var l=r(&quot;domain.row&quot;);void 0!==l&amp;&amp;(l&lt;o.rows?a=o._domains.y[l]:delete t.domain.row)}var c=r(&quot;domain.x&quot;,i),u=r(&quot;domain.y&quot;,a);c[0]&lt;c[1]||(t.domain.x=i.slice()),u[0]&lt;u[1]||(t.domain.y=a.slice())}},{&quot;../lib/extend&quot;:768}],856:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.editType,r=t.colorEditType;void 0===r&amp;&amp;(r=e);var n={family:{valType:&quot;string&quot;,noBlank:!0,strict:!0,editType:e},size:{valType:&quot;number&quot;,min:1,editType:e},color:{valType:&quot;color&quot;,editType:r},editType:e};return t.arrayOk&amp;&amp;(n.family.arrayOk=!0,n.size.arrayOk=!0,n.color.arrayOk=!0),n}},{}],857:[function(t,e,r){&quot;use strict&quot;;e.exports={_isLinkedToArray:&quot;frames_entry&quot;,group:{valType:&quot;string&quot;},name:{valType:&quot;string&quot;},traces:{valType:&quot;any&quot;},baseframe:{valType:&quot;string&quot;},data:{valType:&quot;any&quot;},layout:{valType:&quot;any&quot;}}},{}],858:[function(t,e,r){&quot;use strict&quot;;r.projNames={equirectangular:&quot;equirectangular&quot;,mercator:&quot;mercator&quot;,orthographic:&quot;orthographic&quot;,&quot;natural earth&quot;:&quot;naturalEarth&quot;,kavrayskiy7:&quot;kavrayskiy7&quot;,miller:&quot;miller&quot;,robinson:&quot;robinson&quot;,eckert4:&quot;eckert4&quot;,&quot;azimuthal equal area&quot;:&quot;azimuthalEqualArea&quot;,&quot;azimuthal equidistant&quot;:&quot;azimuthalEquidistant&quot;,&quot;conic equal area&quot;:&quot;conicEqualArea&quot;,&quot;conic conformal&quot;:&quot;conicConformal&quot;,&quot;conic equidistant&quot;:&quot;conicEquidistant&quot;,gnomonic:&quot;gnomonic&quot;,stereographic:&quot;stereographic&quot;,mollweide:&quot;mollweide&quot;,hammer:&quot;hammer&quot;,&quot;transverse mercator&quot;:&quot;transverseMercator&quot;,&quot;albers usa&quot;:&quot;albersUsa&quot;,&quot;winkel tripel&quot;:&quot;winkel3&quot;,aitoff:&quot;aitoff&quot;,sinusoidal:&quot;sinusoidal&quot;},r.axesNames=[&quot;lonaxis&quot;,&quot;lataxis&quot;],r.lonaxisSpan={orthographic:180,&quot;azimuthal equal area&quot;:360,&quot;azimuthal equidistant&quot;:360,&quot;conic conformal&quot;:180,gnomonic:160,stereographic:180,&quot;transverse mercator&quot;:180,&quot;*&quot;:360},r.lataxisSpan={&quot;conic conformal&quot;:150,stereographic:179.5,&quot;*&quot;:180},r.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:&quot;equirectangular&quot;,projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:&quot;albers usa&quot;},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:&quot;conic conformal&quot;,projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:&quot;mercator&quot;,projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:&quot;mercator&quot;,projRotate:[0,0,0]},&quot;north america&quot;:{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:&quot;conic conformal&quot;,projRotate:[-100,0,0],projParallels:[29.5,45.5]},&quot;south america&quot;:{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:&quot;mercator&quot;,projRotate:[0,0,0]}},r.clipPad=.001,r.precision=.1,r.landColor=&quot;#F0DC82&quot;,r.waterColor=&quot;#3399FF&quot;,r.locationmodeToLayer={&quot;ISO-3&quot;:&quot;countries&quot;,&quot;USA-states&quot;:&quot;subunits&quot;,&quot;country names&quot;:&quot;countries&quot;},r.sphereSVG={type:&quot;Sphere&quot;},r.fillLayers={ocean:1,land:1,lakes:1},r.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},r.layers=[&quot;bg&quot;,&quot;ocean&quot;,&quot;land&quot;,&quot;lakes&quot;,&quot;subunits&quot;,&quot;countries&quot;,&quot;coastlines&quot;,&quot;rivers&quot;,&quot;lataxis&quot;,&quot;lonaxis&quot;,&quot;frame&quot;,&quot;backplot&quot;,&quot;frontplot&quot;],r.layersForChoropleth=[&quot;bg&quot;,&quot;ocean&quot;,&quot;land&quot;,&quot;subunits&quot;,&quot;countries&quot;,&quot;coastlines&quot;,&quot;lataxis&quot;,&quot;lonaxis&quot;,&quot;frame&quot;,&quot;backplot&quot;,&quot;rivers&quot;,&quot;lakes&quot;,&quot;frontplot&quot;],r.layerNameToAdjective={ocean:&quot;ocean&quot;,land:&quot;land&quot;,lakes:&quot;lake&quot;,subunits:&quot;subunit&quot;,countries:&quot;country&quot;,coastlines:&quot;coastline&quot;,rivers:&quot;river&quot;,frame:&quot;frame&quot;}},{}],859:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.strTranslate,s=t(&quot;../../components/color&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../components/fx&quot;),u=t(&quot;../plots&quot;),f=t(&quot;../cartesian/axes&quot;),h=t(&quot;../cartesian/autorange&quot;).getAutoRange,p=t(&quot;../../components/dragelement&quot;),d=t(&quot;../cartesian/select&quot;).prepSelect,g=t(&quot;../cartesian/select&quot;).clearSelect,m=t(&quot;../cartesian/select&quot;).selectOnClick,v=t(&quot;./zoom&quot;),y=t(&quot;./constants&quot;),x=t(&quot;../../lib/geo_location_utils&quot;),b=t(&quot;../../lib/topojson_utils&quot;),_=t(&quot;topojson-client&quot;).feature;function w(t){this.id=t.id,this.graphDiv=t.graphDiv,this.container=t.container,this.topojsonURL=t.topojsonURL,this.isStatic=t.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}t(&quot;./projections&quot;)(n);var T=w.prototype;function k(t,e){var r=y.clipPad,n=t[0]+r,i=t[1]-r,a=e[0]+r,o=e[1]-r;n&gt;0&amp;&amp;i&lt;0&amp;&amp;(i+=360);var s=(i-n)/4;return{type:&quot;Polygon&quot;,coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}e.exports=function(t){return new w(t)},T.plot=function(t,e,r){var n=this,i=e[this.id],a=[],o=!1;for(var s in y.layerNameToAdjective)if(&quot;frame&quot;!==s&amp;&amp;i[&quot;show&quot;+s]){o=!0;break}for(var l=0;l&lt;t.length;l++)if(t[0][0].trace.locationmode){o=!0;break}if(o){var c=b.getTopojsonName(i);null!==n.topojson&amp;&amp;c===n.topojsonName||(n.topojsonName=c,void 0===PlotlyGeoAssets.topojson[n.topojsonName]&amp;&amp;a.push(n.fetchTopojson()))}a=a.concat(x.fetchTraceGeoData(t)),r.push(new Promise((function(r,i){Promise.all(a).then((function(){n.topojson=PlotlyGeoAssets.topojson[n.topojsonName],n.update(t,e),r()})).catch(i)})))},T.fetchTopojson=function(){var t=this,e=b.getTopojsonPath(t.topojsonURL,t.topojsonName);return new Promise((function(r,i){n.json(e,(function(n,a){if(n)return 404===n.status?i(new Error([&quot;plotly.js could not find topojson file at&quot;,e,&quot;.&quot;,&quot;Make sure the *topojsonURL* plot config option&quot;,&quot;is set properly.&quot;].join(&quot; &quot;))):i(new Error([&quot;unexpected error while fetching topojson file at&quot;,e].join(&quot; &quot;)));PlotlyGeoAssets.topojson[t.topojsonName]=a,r()}))}))},T.update=function(t,e){var r=e[this.id];this.hasChoropleth=!1;for(var n=0;n&lt;t.length;n++){var i=t[n],a=i[0].trace;&quot;choropleth&quot;===a.type&amp;&amp;(this.hasChoropleth=!0),!0===a.visible&amp;&amp;a._length&gt;0&amp;&amp;a._module.calcGeoJSON(i,e)}if(!this.updateProjection(t,e)){this.viewInitial&amp;&amp;this.scope===r.scope||this.saveViewInitial(r),this.scope=r.scope,this.updateBaseLayers(e,r),this.updateDims(e,r),this.updateFx(e,r),u.generalUpdatePerTraceModule(this.graphDiv,this,t,r);var o=this.layers.frontplot.select(&quot;.scatterlayer&quot;);this.dataPoints.point=o.selectAll(&quot;.point&quot;),this.dataPoints.text=o.selectAll(&quot;text&quot;),this.dataPaths.line=o.selectAll(&quot;.js-line&quot;);var s=this.layers.backplot.select(&quot;.choroplethlayer&quot;);this.dataPaths.choropleth=s.selectAll(&quot;path&quot;),this.render()}},T.updateProjection=function(t,e){var r=this.graphDiv,o=e[this.id],s=e._size,l=o.domain,c=o.projection,u=o.lonaxis,f=o.lataxis,p=u._ax,d=f._ax,g=this.projection=function(t){for(var e=t.projection.type,r=n.geo[y.projNames[e]](),i=t._isClipped?y.lonaxisSpan[e]/2:null,a=[&quot;center&quot;,&quot;rotate&quot;,&quot;parallels&quot;,&quot;clipExtent&quot;],o=function(t){return t?r:[]},s=0;s&lt;a.length;s++){var l=a[s];&quot;function&quot;!=typeof r[l]&amp;&amp;(r[l]=o)}r.isLonLatOverEdges=function(t){if(null===r(t))return!0;if(i){var e=r.rotate();return n.geo.distance(t,[-e[0],-e[1]])&gt;i*Math.PI/180}return!1},r.getPath=function(){return n.geo.path().projection(r)},r.getBounds=function(t){return r.getPath().bounds(t)},r.fitExtent=function(t,e){var n=t[1][0]-t[0][0],i=t[1][1]-t[0][1],a=r.clipExtent&amp;&amp;r.clipExtent();r.scale(150).translate([0,0]),a&amp;&amp;r.clipExtent(null);var o=r.getBounds(e),s=Math.min(n/(o[1][0]-o[0][0]),i/(o[1][1]-o[0][1])),l=+t[0][0]+(n-s*(o[1][0]+o[0][0]))/2,c=+t[0][1]+(i-s*(o[1][1]+o[0][1]))/2;return a&amp;&amp;r.clipExtent(a),r.scale(150*s).translate([l,c])},r.precision(y.precision),i&amp;&amp;r.clipAngle(i-y.clipPad);return r}(o),m=[[s.l+s.w*l.x[0],s.t+s.h*(1-l.y[1])],[s.l+s.w*l.x[1],s.t+s.h*(1-l.y[0])]],v=o.center||{},x=c.rotation||{},b=u.range||[],_=f.range||[];if(o.fitbounds){p._length=m[1][0]-m[0][0],d._length=m[1][1]-m[0][1],p.range=h(r,p),d.range=h(r,d);var w=(p.range[0]+p.range[1])/2,T=(d.range[0]+d.range[1])/2;if(o._isScoped)v={lon:w,lat:T};else if(o._isClipped){v={lon:w,lat:T},x={lon:w,lat:T,roll:x.roll};var M=c.type,A=y.lonaxisSpan[M]/2||180,S=y.lataxisSpan[M]/2||90;b=[w-A,w+A],_=[T-S,T+S]}else v={lon:w,lat:T},x={lon:w,lat:x.lat,roll:x.roll}}g.center([v.lon-x.lon,v.lat-x.lat]).rotate([-x.lon,-x.lat,x.roll]).parallels(c.parallels);var E=k(b,_);g.fitExtent(m,E);var C=this.bounds=g.getBounds(E),L=this.fitScale=g.scale(),I=g.translate();if(!isFinite(C[0][0])||!isFinite(C[0][1])||!isFinite(C[1][0])||!isFinite(C[1][1])||isNaN(I[0])||isNaN(I[0])){for(var P=[&quot;fitbounds&quot;,&quot;projection.rotation&quot;,&quot;center&quot;,&quot;lonaxis.range&quot;,&quot;lataxis.range&quot;],z=&quot;Invalid geo settings, relayout'ing to default view.&quot;,O={},D=0;D&lt;P.length;D++)O[this.id+&quot;.&quot;+P[D]]=null;return this.viewInitial=null,a.warn(z),r._promises.push(i.call(&quot;relayout&quot;,r,O)),z}if(o.fitbounds){var R=g.getBounds(k(p.range,d.range)),F=Math.min((C[1][0]-C[0][0])/(R[1][0]-R[0][0]),(C[1][1]-C[0][1])/(R[1][1]-R[0][1]));isFinite(F)?g.scale(F*L):a.warn(&quot;Something went wrong during&quot;+this.id+&quot;fitbounds computations.&quot;)}else g.scale(c.scale*L);var B=this.midPt=[(C[0][0]+C[1][0])/2,(C[0][1]+C[1][1])/2];if(g.translate([I[0]+(B[0]-I[0]),I[1]+(B[1]-I[1])]).clipExtent(C),o._isAlbersUsa){var N=g([v.lon,v.lat]),j=g.translate();g.translate([j[0]-(N[0]-j[0]),j[1]-(N[1]-j[1])])}},T.updateBaseLayers=function(t,e){var r=this,i=r.topojson,a=r.layers,o=r.basePaths;function c(t){return&quot;lonaxis&quot;===t||&quot;lataxis&quot;===t}function u(t){return Boolean(y.lineLayers[t])}function h(t){return Boolean(y.fillLayers[t])}var p=(this.hasChoropleth?y.layersForChoropleth:y.layers).filter((function(t){return u(t)||h(t)?e[&quot;show&quot;+t]:!c(t)||e[t].showgrid})),d=r.framework.selectAll(&quot;.layer&quot;).data(p,String);d.exit().each((function(t){delete a[t],delete o[t],n.select(this).remove()})),d.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;layer &quot;+t})).each((function(t){var e=a[t]=n.select(this);&quot;bg&quot;===t?r.bgRect=e.append(&quot;rect&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;):c(t)?o[t]=e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;):&quot;backplot&quot;===t?e.append(&quot;g&quot;).classed(&quot;choroplethlayer&quot;,!0):&quot;frontplot&quot;===t?e.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0):u(t)?o[t]=e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;).style(&quot;stroke-miterlimit&quot;,2):h(t)&amp;&amp;(o[t]=e.append(&quot;path&quot;).style(&quot;stroke&quot;,&quot;none&quot;))})),d.order(),d.each((function(r){var n=o[r],a=y.layerNameToAdjective[r];&quot;frame&quot;===r?n.datum(y.sphereSVG):u(r)||h(r)?n.datum(_(i,i.objects[r])):c(r)&amp;&amp;n.datum(function(t,e,r){var n,i,a,o=e[t],s=y.scopeDefaults[e.scope];&quot;lonaxis&quot;===t?(n=s.lonaxisRange,i=s.lataxisRange,a=function(t,e){return[t,e]}):&quot;lataxis&quot;===t&amp;&amp;(n=s.lataxisRange,i=s.lonaxisRange,a=function(t,e){return[e,t]});var l={type:&quot;linear&quot;,range:[n[0],n[1]-1e-6],tick0:o.tick0,dtick:o.dtick};f.setConvert(l,r);var c=f.calcTicks(l);e.isScoped||&quot;lonaxis&quot;!==t||c.pop();for(var u=c.length,h=new Array(u),p=0;p&lt;u;p++)for(var d=c[p].x,g=h[p]=[],m=i[0];m&lt;i[1]+2.5;m+=2.5)g.push(a(d,m));return{type:&quot;MultiLineString&quot;,coordinates:h}}(r,e,t)).call(s.stroke,e[r].gridcolor).call(l.dashLine,&quot;&quot;,e[r].gridwidth),u(r)?n.call(s.stroke,e[a+&quot;color&quot;]).call(l.dashLine,&quot;&quot;,e[a+&quot;width&quot;]):h(r)&amp;&amp;n.call(s.fill,e[a+&quot;color&quot;])}))},T.updateDims=function(t,e){var r=this.bounds,n=(e.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,c=r[1][1]-a+n;l.setRect(this.clipRect,i,a,o,c),this.bgRect.call(l.setRect,i,a,o,c).call(s.fill,e.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=c},T.updateFx=function(t,e){var r=this,a=r.graphDiv,o=r.bgRect,s=t.dragmode,l=t.clickmode;if(!r.isStatic){var u;&quot;select&quot;===s?u=function(t,e){(t.range={})[r.id]=[h([e.xmin,e.ymin]),h([e.xmax,e.ymax])]}:&quot;lasso&quot;===s&amp;&amp;(u=function(t,e,n){(t.lassoPoints={})[r.id]=n.filtered.map(h)});var f={element:r.bgRect.node(),gd:a,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(t){2===t&amp;&amp;g(a)}};&quot;pan&quot;===s?(o.node().onmousedown=null,o.call(v(r,e)),o.on(&quot;dblclick.zoom&quot;,(function(){var t=r.viewInitial,e={};for(var n in t)e[r.id+&quot;.&quot;+n]=t[n];i.call(&quot;_guiRelayout&quot;,a,e),a.emit(&quot;plotly_doubleclick&quot;,null)})),a._context._scrollZoom.geo||o.on(&quot;wheel.zoom&quot;,null)):&quot;select&quot;!==s&amp;&amp;&quot;lasso&quot;!==s||(o.on(&quot;.zoom&quot;,null),f.prepFn=function(t,e,r){d(t,e,r,f,s)},p.init(f)),o.on(&quot;mousemove&quot;,(function(){var t=r.projection.invert(n.mouse(this));if(!t||isNaN(t[0])||isNaN(t[1]))return p.unhover(a,n.event);r.xaxis.p2c=function(){return t[0]},r.yaxis.p2c=function(){return t[1]},c.hover(a,n.event,r.id)})),o.on(&quot;mouseout&quot;,(function(){a._dragging||p.unhover(a,n.event)})),o.on(&quot;click&quot;,(function(){&quot;select&quot;!==s&amp;&amp;&quot;lasso&quot;!==s&amp;&amp;(l.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;m(n.event,a,[r.xaxis],[r.yaxis],r.id,f),l.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;c.click(a,n.event))}))}function h(t){return r.projection.invert([t[0]+r.xaxis._offset,t[1]+r.yaxis._offset])}},T.makeFramework=function(){var t=this,e=t.graphDiv,r=e._fullLayout,i=&quot;clip&quot;+r._uid+t.id;t.clipDef=r._clips.append(&quot;clipPath&quot;).attr(&quot;id&quot;,i),t.clipRect=t.clipDef.append(&quot;rect&quot;),t.framework=n.select(t.container).append(&quot;g&quot;).attr(&quot;class&quot;,&quot;geo &quot;+t.id).call(l.setClipUrl,i,e),t.project=function(e){var r=t.projection(e);return r?[r[0]-t.xaxis._offset,r[1]-t.yaxis._offset]:[null,null]},t.xaxis={_id:&quot;x&quot;,c2p:function(e){return t.project(e)[0]}},t.yaxis={_id:&quot;y&quot;,c2p:function(e){return t.project(e)[1]}},t.mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},f.setConvert(t.mockAxis,r)},T.saveViewInitial=function(t){var e,r=t.center||{},n=t.projection,i=n.rotation||{};this.viewInitial={fitbounds:t.fitbounds,&quot;projection.scale&quot;:n.scale},e=t._isScoped?{&quot;center.lon&quot;:r.lon,&quot;center.lat&quot;:r.lat}:t._isClipped?{&quot;projection.rotation.lon&quot;:i.lon,&quot;projection.rotation.lat&quot;:i.lat}:{&quot;center.lon&quot;:r.lon,&quot;center.lat&quot;:r.lat,&quot;projection.rotation.lon&quot;:i.lon},a.extendFlat(this.viewInitial,e)},T.render=function(){var t,e=this.projection,r=e.getPath();function n(t){var r=e(t.lonlat);return r?o(r[0],r[1]):null}function i(t){return e.isLonLatOverEdges(t.lonlat)?&quot;none&quot;:null}for(t in this.basePaths)this.basePaths[t].attr(&quot;d&quot;,r);for(t in this.dataPaths)this.dataPaths[t].attr(&quot;d&quot;,(function(t){return r(t.geojson)}));for(t in this.dataPoints)this.dataPoints[t].attr(&quot;display&quot;,i).attr(&quot;transform&quot;,n)}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/topojson_utils&quot;:806,&quot;../../registry&quot;:911,&quot;../cartesian/autorange&quot;:827,&quot;../cartesian/axes&quot;:828,&quot;../cartesian/select&quot;:847,&quot;../plots&quot;:891,&quot;./constants&quot;:858,&quot;./projections&quot;:863,&quot;./zoom&quot;:864,d3:169,&quot;topojson-client&quot;:579}],860:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,i=t(&quot;../../lib&quot;).counterRegex,a=t(&quot;./geo&quot;),o=&quot;geo&quot;,s=i(o),l={};l.geo={valType:&quot;subplotid&quot;,dflt:o,editType:&quot;calc&quot;},e.exports={attr:o,name:o,idRoot:o,idRegex:s,attrRegex:s,attributes:l,layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots.geo,s=0;s&lt;i.length;s++){var l=i[s],c=n(r,o,l),u=e[l]._subplot;u||(u=a({id:l,graphDiv:t,container:e._geolayer.node(),topojsonURL:t._context.topojsonURL,staticPlot:t._context.staticPlot}),e[l]._subplot=u),u.plot(c,e,t._promises)}},updateFx:function(t){for(var e=t._fullLayout,r=e._subplots.geo,n=0;n&lt;r.length;n++){var i=e[r[n]];i._subplot.updateFx(e,i)}},clean:function(t,e,r,n){for(var i=n._subplots.geo||[],a=0;a&lt;i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&amp;&amp;s&amp;&amp;(s.framework.remove(),s.clipDef.remove())}}}},{&quot;../../lib&quot;:778,&quot;../../plots/get_data&quot;:865,&quot;./geo&quot;:859,&quot;./layout_attributes&quot;:861,&quot;./layout_defaults&quot;:862}],861:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../domain&quot;).attributes,a=t(&quot;./constants&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s={range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},showgrid:{valType:&quot;boolean&quot;,dflt:!1},tick0:{valType:&quot;number&quot;,dflt:0},dtick:{valType:&quot;number&quot;},gridcolor:{valType:&quot;color&quot;,dflt:n.lightLine},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1}};(e.exports=o({domain:i({name:&quot;geo&quot;},{}),fitbounds:{valType:&quot;enumerated&quot;,values:[!1,&quot;locations&quot;,&quot;geojson&quot;],dflt:!1,editType:&quot;plot&quot;},resolution:{valType:&quot;enumerated&quot;,values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:&quot;enumerated&quot;,values:Object.keys(a.scopeDefaults),dflt:&quot;world&quot;},projection:{type:{valType:&quot;enumerated&quot;,values:Object.keys(a.projNames)},rotation:{lon:{valType:&quot;number&quot;},lat:{valType:&quot;number&quot;},roll:{valType:&quot;number&quot;}},parallels:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},scale:{valType:&quot;number&quot;,min:0,dflt:1}},center:{lon:{valType:&quot;number&quot;},lat:{valType:&quot;number&quot;}},visible:{valType:&quot;boolean&quot;,dflt:!0},showcoastlines:{valType:&quot;boolean&quot;},coastlinecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},coastlinewidth:{valType:&quot;number&quot;,min:0,dflt:1},showland:{valType:&quot;boolean&quot;,dflt:!1},landcolor:{valType:&quot;color&quot;,dflt:a.landColor},showocean:{valType:&quot;boolean&quot;,dflt:!1},oceancolor:{valType:&quot;color&quot;,dflt:a.waterColor},showlakes:{valType:&quot;boolean&quot;,dflt:!1},lakecolor:{valType:&quot;color&quot;,dflt:a.waterColor},showrivers:{valType:&quot;boolean&quot;,dflt:!1},rivercolor:{valType:&quot;color&quot;,dflt:a.waterColor},riverwidth:{valType:&quot;number&quot;,min:0,dflt:1},showcountries:{valType:&quot;boolean&quot;},countrycolor:{valType:&quot;color&quot;,dflt:n.defaultLine},countrywidth:{valType:&quot;number&quot;,min:0,dflt:1},showsubunits:{valType:&quot;boolean&quot;},subunitcolor:{valType:&quot;color&quot;,dflt:n.defaultLine},subunitwidth:{valType:&quot;number&quot;,min:0,dflt:1},showframe:{valType:&quot;boolean&quot;},framecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},framewidth:{valType:&quot;number&quot;,min:0,dflt:1},bgcolor:{valType:&quot;color&quot;,dflt:n.background},lonaxis:s,lataxis:s},&quot;plot&quot;,&quot;from-root&quot;)).uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../plot_api/edit_types&quot;:810,&quot;../domain&quot;:855,&quot;./constants&quot;:858}],862:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../subplot_defaults&quot;),a=t(&quot;../get_data&quot;).getSubplotData,o=t(&quot;./constants&quot;),s=t(&quot;./layout_attributes&quot;),l=o.axesNames;function c(t,e,r,i){var s=a(i.fullData,&quot;geo&quot;,i.id).map((function(t){return t._expandedIndex})),c=r(&quot;resolution&quot;),u=r(&quot;scope&quot;),f=o.scopeDefaults[u],h=r(&quot;projection.type&quot;,f.projType),p=e._isAlbersUsa=&quot;albers usa&quot;===h;p&amp;&amp;(u=e.scope=&quot;usa&quot;);var d=e._isScoped=&quot;world&quot;!==u,g=e._isConic=-1!==h.indexOf(&quot;conic&quot;),m=e._isClipped=!!o.lonaxisSpan[h];if(!1===t.visible){var v=n.extendDeep({},e._template);v.showcoastlines=!1,v.showcountries=!1,v.showframe=!1,v.showlakes=!1,v.showland=!1,v.showocean=!1,v.showrivers=!1,v.showsubunits=!1,v.lonaxis&amp;&amp;(v.lonaxis.showgrid=!1),v.lataxis&amp;&amp;(v.lataxis.showgrid=!1),e._template=v}for(var y=r(&quot;visible&quot;),x=0;x&lt;l.length;x++){var b,_=l[x],w=[30,10][x];if(d)b=f[_+&quot;Range&quot;];else{var T=o[_+&quot;Span&quot;],k=(T[h]||T[&quot;*&quot;])/2,M=r(&quot;projection.rotation.&quot;+_.substr(0,3),f.projRotate[x]);b=[M-k,M+k]}var A=r(_+&quot;.range&quot;,b);r(_+&quot;.tick0&quot;),r(_+&quot;.dtick&quot;,w),r(_+&quot;.showgrid&quot;,!!y&amp;&amp;void 0)&amp;&amp;(r(_+&quot;.gridcolor&quot;),r(_+&quot;.gridwidth&quot;)),e[_]._ax={type:&quot;linear&quot;,_id:_.slice(0,3),_traceIndices:s,setScale:n.identity,c2l:n.identity,r2l:n.identity,autorange:!0,range:A.slice(),_m:1,_input:{}}}var S=e.lonaxis.range,E=e.lataxis.range,C=S[0],L=S[1];C&gt;0&amp;&amp;L&lt;0&amp;&amp;(L+=360);var I,P,z,O=(C+L)/2;if(!p){var D=d?f.projRotate:[O,0,0];I=r(&quot;projection.rotation.lon&quot;,D[0]),r(&quot;projection.rotation.lat&quot;,D[1]),r(&quot;projection.rotation.roll&quot;,D[2]),r(&quot;showcoastlines&quot;,!d&amp;&amp;y)&amp;&amp;(r(&quot;coastlinecolor&quot;),r(&quot;coastlinewidth&quot;)),r(&quot;showocean&quot;,!!y&amp;&amp;void 0)&amp;&amp;r(&quot;oceancolor&quot;)}(p?(P=-96.6,z=38.7):(P=d?O:I,z=(E[0]+E[1])/2),r(&quot;center.lon&quot;,P),r(&quot;center.lat&quot;,z),g)&amp;&amp;r(&quot;projection.parallels&quot;,f.projParallels||[0,60]);r(&quot;projection.scale&quot;),r(&quot;showland&quot;,!!y&amp;&amp;void 0)&amp;&amp;r(&quot;landcolor&quot;),r(&quot;showlakes&quot;,!!y&amp;&amp;void 0)&amp;&amp;r(&quot;lakecolor&quot;),r(&quot;showrivers&quot;,!!y&amp;&amp;void 0)&amp;&amp;(r(&quot;rivercolor&quot;),r(&quot;riverwidth&quot;)),r(&quot;showcountries&quot;,d&amp;&amp;&quot;usa&quot;!==u&amp;&amp;y)&amp;&amp;(r(&quot;countrycolor&quot;),r(&quot;countrywidth&quot;)),(&quot;usa&quot;===u||&quot;north america&quot;===u&amp;&amp;50===c)&amp;&amp;(r(&quot;showsubunits&quot;,y),r(&quot;subunitcolor&quot;),r(&quot;subunitwidth&quot;)),d||r(&quot;showframe&quot;,y)&amp;&amp;(r(&quot;framecolor&quot;),r(&quot;framewidth&quot;)),r(&quot;bgcolor&quot;),r(&quot;fitbounds&quot;)&amp;&amp;(delete e.projection.scale,d?(delete e.center.lon,delete e.center.lat):m?(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon,delete e.projection.rotation.lat,delete e.lonaxis.range,delete e.lataxis.range):(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon))}e.exports=function(t,e,r){i(t,e,r,{type:&quot;geo&quot;,attributes:s,handleDefaults:c,fullData:r,partition:&quot;y&quot;})}},{&quot;../../lib&quot;:778,&quot;../get_data&quot;:865,&quot;../subplot_defaults&quot;:905,&quot;./constants&quot;:858,&quot;./layout_attributes&quot;:861}],863:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){function e(t,e){return{type:&quot;Feature&quot;,id:t.id,properties:t.properties,geometry:r(t.geometry,e)}}function r(e,n){if(!e)return null;if(&quot;GeometryCollection&quot;===e.type)return{type:&quot;GeometryCollection&quot;,geometries:object.geometries.map((function(t){return r(t,n)}))};if(!c.hasOwnProperty(e.type))return null;var i=c[e.type];return t.geo.stream(e,n(i)),i.result()}t.geo.project=function(t,e){var i=e.stream;if(!i)throw new Error(&quot;not yet supported&quot;);return(t&amp;&amp;n.hasOwnProperty(t.type)?n[t.type]:r)(t,i)};var n={Feature:e,FeatureCollection:function(t,r){return{type:&quot;FeatureCollection&quot;,features:t.features.map((function(t){return e(t,r)}))}}},i=[],a=[],o={point:function(t,e){i.push([t,e])},result:function(){var t=i.length?i.length&lt;2?{type:&quot;Point&quot;,coordinates:i[0]}:{type:&quot;MultiPoint&quot;,coordinates:i}:null;return i=[],t}},s={lineStart:u,point:function(t,e){i.push([t,e])},lineEnd:function(){i.length&amp;&amp;(a.push(i),i=[])},result:function(){var t=a.length?a.length&lt;2?{type:&quot;LineString&quot;,coordinates:a[0]}:{type:&quot;MultiLineString&quot;,coordinates:a}:null;return a=[],t}},l={polygonStart:u,lineStart:u,point:function(t,e){i.push([t,e])},lineEnd:function(){var t=i.length;if(t){do{i.push(i[0].slice())}while(++t&lt;4);a.push(i),i=[]}},polygonEnd:u,result:function(){if(!a.length)return null;var t=[],e=[];return a.forEach((function(r){!function(t){if((e=t.length)&lt;4)return!1;var e,r=0,n=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];for(;++r&lt;e;)n+=t[r-1][1]*t[r][0]-t[r-1][0]*t[r][1];return n&lt;=0}(r)?e.push(r):t.push([r])})),e.forEach((function(e){var r=e[0];t.some((function(t){if(function(t,e){for(var r=e[0],n=e[1],i=!1,a=0,o=t.length,s=o-1;a&lt;o;s=a++){var l=t[a],c=l[0],u=l[1],f=t[s],h=f[0],p=f[1];u&gt;n^p&gt;n&amp;&amp;r&lt;(h-c)*(n-u)/(p-u)+c&amp;&amp;(i=!i)}return i}(t[0],r))return t.push(e),!0}))||t.push([e])})),a=[],t.length?t.length&gt;1?{type:&quot;MultiPolygon&quot;,coordinates:t}:{type:&quot;Polygon&quot;,coordinates:t[0]}:null}},c={Point:o,MultiPoint:o,LineString:s,MultiLineString:s,Polygon:l,MultiPolygon:l,Sphere:l};function u(){}var f=1e-6,h=Math.PI,p=h/2,d=(Math.sqrt(h),h/180),g=180/h;function m(t){return t&gt;1?p:t&lt;-1?-p:Math.asin(t)}function v(t){return t&gt;1?0:t&lt;-1?h:Math.acos(t)}var y=t.geo.projection,x=t.geo.projectionMutator;function b(t,e){var r=(2+p)*Math.sin(e);e/=2;for(var n=0,i=1/0;n&lt;10&amp;&amp;Math.abs(i)&gt;f;n++){var a=Math.cos(e);e-=i=(e+Math.sin(e)*(a+2)-r)/(2*a*(1+a))}return[2/Math.sqrt(h*(4+h))*t*(1+Math.cos(e)),2*Math.sqrt(h/(4+h))*Math.sin(e)]}t.geo.interrupt=function(e){var r,n=[[[[-h,0],[0,p],[h,0]]],[[[-h,0],[0,-p],[h,0]]]];function i(t,r){for(var i=r&lt;0?-1:1,a=n[+(r&lt;0)],o=0,s=a.length-1;o&lt;s&amp;&amp;t&gt;a[o][2][0];++o);var l=e(t-a[o][1][0],r);return l[0]+=e(a[o][1][0],i*r&gt;i*a[o][0][1]?a[o][0][1]:r)[0],l}function a(){r=n.map((function(t){return t.map((function(t){var r,n=e(t[0][0],t[0][1])[0],i=e(t[2][0],t[2][1])[0],a=e(t[1][0],t[0][1])[1],o=e(t[1][0],t[1][1])[1];return a&gt;o&amp;&amp;(r=a,a=o,o=r),[[n,a],[i,o]]}))}))}e.invert&amp;&amp;(i.invert=function(t,a){for(var o=r[+(a&lt;0)],s=n[+(a&lt;0)],l=0,u=o.length;l&lt;u;++l){var f=o[l];if(f[0][0]&lt;=t&amp;&amp;t&lt;f[1][0]&amp;&amp;f[0][1]&lt;=a&amp;&amp;a&lt;f[1][1]){var h=e.invert(t-e(s[l][1][0],0)[0],a);return h[0]+=s[l][1][0],c(i(h[0],h[1]),[t,a])?h:null}}});var o=t.geo.projection(i),s=o.stream;function l(t,e){for(var r,n,i,a=-1,o=t.length,s=t[0],l=[];++a&lt;o;){n=((r=t[a])[0]-s[0])/e,i=(r[1]-s[1])/e;for(var c=0;c&lt;e;++c)l.push([s[0]+c*n,s[1]+c*i]);s=r}return l.push(r),l}function c(t,e){return Math.abs(t[0]-e[0])&lt;f&amp;&amp;Math.abs(t[1]-e[1])&lt;f}return o.stream=function(e){var r=o.rotate(),i=s(e),a=(o.rotate([0,0]),s(e));return o.rotate(r),i.sphere=function(){t.geo.stream(function(){for(var e=1e-6,r=[],i=0,a=n[0].length;i&lt;a;++i){var o=180*(p=n[0][i])[0][0]/h,s=180*p[0][1]/h,c=180*p[1][1]/h,u=180*p[2][0]/h,f=180*p[2][1]/h;r.push(l([[o+e,s+e],[o+e,c-e],[u-e,c-e],[u-e,f+e]],30))}for(i=n[1].length-1;i&gt;=0;--i){var p;o=180*(p=n[1][i])[0][0]/h,s=180*p[0][1]/h,c=180*p[1][1]/h,u=180*p[2][0]/h,f=180*p[2][1]/h;r.push(l([[u-e,f-e],[u-e,c+e],[o+e,c+e],[o+e,s-e]],30))}return{type:&quot;Polygon&quot;,coordinates:[t.merge(r)]}}(),a)},i},o.lobes=function(t){return arguments.length?(n=t.map((function(t){return t.map((function(t){return[[t[0][0]*h/180,t[0][1]*h/180],[t[1][0]*h/180,t[1][1]*h/180],[t[2][0]*h/180,t[2][1]*h/180]]}))})),a(),o):n.map((function(t){return t.map((function(t){return[[180*t[0][0]/h,180*t[0][1]/h],[180*t[1][0]/h,180*t[1][1]/h],[180*t[2][0]/h,180*t[2][1]/h]]}))}))},o},b.invert=function(t,e){var r=.5*e*Math.sqrt((4+h)/h),n=m(r),i=Math.cos(n);return[t/(2/Math.sqrt(h*(4+h))*(1+i)),m((n+r*(i+2))/(2+p))]},(t.geo.eckert4=function(){return y(b)}).raw=b;var _=t.geo.azimuthalEqualArea.raw;function w(t,e){if(arguments.length&lt;2&amp;&amp;(e=t),1===e)return _;if(e===1/0)return T;function r(r,n){var i=_(r/e,n);return i[0]*=t,i}return r.invert=function(r,n){var i=_.invert(r/t,n);return i[0]*=e,i},r}function T(t,e){return[t*Math.cos(e)/Math.cos(e/=2),2*Math.sin(e)]}function k(t,e){return[3*t/(2*h)*Math.sqrt(h*h/3-e*e),e]}function M(t,e){return[t,1.25*Math.log(Math.tan(h/4+.4*e))]}function A(t){return function(e){var r,n=t*Math.sin(e),i=30;do{e-=r=(e+Math.sin(e)-n)/(1+Math.cos(e))}while(Math.abs(r)&gt;f&amp;&amp;--i&gt;0);return e/2}}T.invert=function(t,e){var r=2*m(e/2);return[t*Math.cos(r/2)/Math.cos(r),r]},(t.geo.hammer=function(){var t=2,e=x(w),r=e(t);return r.coefficient=function(r){return arguments.length?e(t=+r):t},r}).raw=w,k.invert=function(t,e){return[2/3*h*t/Math.sqrt(h*h/3-e*e),e]},(t.geo.kavrayskiy7=function(){return y(k)}).raw=k,M.invert=function(t,e){return[t,2.5*Math.atan(Math.exp(.8*e))-.625*h]},(t.geo.miller=function(){return y(M)}).raw=M,A(h);var S=function(t,e,r){var n=A(r);function i(r,i){return[t*r*Math.cos(i=n(i)),e*Math.sin(i)]}return i.invert=function(n,i){var a=m(i/e);return[n/(t*Math.cos(a)),m((2*a+Math.sin(2*a))/r)]},i}(Math.SQRT2/p,Math.SQRT2,h);function E(t,e){var r=e*e,n=r*r;return[t*(.8707-.131979*r+n*(n*(.003971*r-.001529*n)-.013791)),e*(1.007226+r*(.015085+n*(.028874*r-.044475-.005916*n)))]}(t.geo.mollweide=function(){return y(S)}).raw=S,E.invert=function(t,e){var r,n=e,i=25;do{var a=n*n,o=a*a;n-=r=(n*(1.007226+a*(.015085+o*(.028874*a-.044475-.005916*o)))-e)/(1.007226+a*(.045255+o*(.259866*a-.311325-.005916*11*o)))}while(Math.abs(r)&gt;f&amp;&amp;--i&gt;0);return[t/(.8707+(a=n*n)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),n]},(t.geo.naturalEarth=function(){return y(E)}).raw=E;var C=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function L(t,e){var r,n=Math.min(18,36*Math.abs(e)/h),i=Math.floor(n),a=n-i,o=(r=C[i])[0],s=r[1],l=(r=C[++i])[0],c=r[1],u=(r=C[Math.min(19,++i)])[0],f=r[1];return[t*(l+a*(u-o)/2+a*a*(u-2*l+o)/2),(e&gt;0?p:-p)*(c+a*(f-s)/2+a*a*(f-2*c+s)/2)]}function I(t,e){return[t*Math.cos(e),e]}function P(t,e){var r,n=Math.cos(e),i=(r=v(n*Math.cos(t/=2)))?r/Math.sin(r):1;return[2*n*Math.sin(t)*i,Math.sin(e)*i]}function z(t,e){var r=P(t,e);return[(r[0]+t/p)/2,(r[1]+e)/2]}C.forEach((function(t){t[1]*=1.0144})),L.invert=function(t,e){var r=e/p,n=90*r,i=Math.min(18,Math.abs(n/5)),a=Math.max(0,Math.floor(i));do{var o=C[a][1],s=C[a+1][1],l=C[Math.min(19,a+2)][1],c=l-o,u=l-2*s+o,f=2*(Math.abs(r)-s)/c,h=u/c,m=f*(1-h*f*(1-2*h*f));if(m&gt;=0||1===a){n=(e&gt;=0?5:-5)*(m+i);var v,y=50;do{m=(i=Math.min(18,Math.abs(n)/5))-(a=Math.floor(i)),o=C[a][1],s=C[a+1][1],l=C[Math.min(19,a+2)][1],n-=(v=(e&gt;=0?p:-p)*(s+m*(l-o)/2+m*m*(l-2*s+o)/2)-e)*g}while(Math.abs(v)&gt;1e-12&amp;&amp;--y&gt;0);break}}while(--a&gt;=0);var x=C[a][0],b=C[a+1][0],_=C[Math.min(19,a+2)][0];return[t/(b+m*(_-x)/2+m*m*(_-2*b+x)/2),n*d]},(t.geo.robinson=function(){return y(L)}).raw=L,I.invert=function(t,e){return[t/Math.cos(e),e]},(t.geo.sinusoidal=function(){return y(I)}).raw=I,P.invert=function(t,e){if(!(t*t+4*e*e&gt;h*h+f)){var r=t,n=e,i=25;do{var a,o=Math.sin(r),s=Math.sin(r/2),l=Math.cos(r/2),c=Math.sin(n),u=Math.cos(n),p=Math.sin(2*n),d=c*c,g=u*u,m=s*s,y=1-g*l*l,x=y?v(u*l)*Math.sqrt(a=1/y):a=0,b=2*x*u*s-t,_=x*c-e,w=a*(g*m+x*u*l*d),T=a*(.5*o*p-2*x*c*s),k=.25*a*(p*s-x*c*g*o),M=a*(d*l+x*m*u),A=T*k-M*w;if(!A)break;var S=(_*T-b*M)/A,E=(b*k-_*w)/A;r-=S,n-=E}while((Math.abs(S)&gt;f||Math.abs(E)&gt;f)&amp;&amp;--i&gt;0);return[r,n]}},(t.geo.aitoff=function(){return y(P)}).raw=P,z.invert=function(t,e){var r=t,n=e,i=25;do{var a,o=Math.cos(n),s=Math.sin(n),l=Math.sin(2*n),c=s*s,u=o*o,h=Math.sin(r),d=Math.cos(r/2),g=Math.sin(r/2),m=g*g,y=1-u*d*d,x=y?v(o*d)*Math.sqrt(a=1/y):a=0,b=.5*(2*x*o*g+r/p)-t,_=.5*(x*s+n)-e,w=.5*a*(u*m+x*o*d*c)+.5/p,T=a*(h*l/4-x*s*g),k=.125*a*(l*g-x*s*u*h),M=.5*a*(c*d+x*m*o)+.5,A=T*k-M*w,S=(_*T-b*M)/A,E=(b*k-_*w)/A;r-=S,n-=E}while((Math.abs(S)&gt;f||Math.abs(E)&gt;f)&amp;&amp;--i&gt;0);return[r,n]},(t.geo.winkel3=function(){return y(z)}).raw=z}},{}],864:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;),o=Math.PI/180,s=180/Math.PI,l={cursor:&quot;pointer&quot;},c={cursor:&quot;auto&quot;};function u(t,e){return n.behavior.zoom().translate(e.translate()).scale(e.scale())}function f(t,e,r){var n=t.id,o=t.graphDiv,s=o.layout,l=s[n],c=o._fullLayout,u=c[n],f={},h={};function p(t,e){f[n+&quot;.&quot;+t]=i.nestedProperty(l,t).get(),a.call(&quot;_storeDirectGUIEdit&quot;,s,c._preGUI,f);var r=i.nestedProperty(u,t);r.get()!==e&amp;&amp;(r.set(e),i.nestedProperty(l,t).set(e),h[n+&quot;.&quot;+t]=e)}r(p),p(&quot;projection.scale&quot;,e.scale()/t.fitScale),p(&quot;fitbounds&quot;,!1),o.emit(&quot;plotly_relayout&quot;,h)}function h(t,e){var r=u(0,e);function i(r){var n=e.invert(t.midPt);r(&quot;center.lon&quot;,n[0]),r(&quot;center.lat&quot;,n[1])}return r.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l)})).on(&quot;zoom&quot;,(function(){e.scale(n.event.scale).translate(n.event.translate),t.render();var r=e.invert(t.midPt);t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.center.lon&quot;:r[0],&quot;geo.center.lat&quot;:r[1]})})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),f(t,e,i)})),r}function p(t,e){var r,i,a,o,s,h,p,d,g,m=u(0,e);function v(t){return e.invert(t)}function y(r){var n=e.rotate(),i=e.invert(t.midPt);r(&quot;projection.rotation.lon&quot;,-n[0]),r(&quot;center.lon&quot;,i[0]),r(&quot;center.lat&quot;,i[1])}return m.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l),r=n.mouse(this),i=e.rotate(),a=e.translate(),o=i,s=v(r)})).on(&quot;zoom&quot;,(function(){if(h=n.mouse(this),function(t){var r=v(t);if(!r)return!0;var n=e(r);return Math.abs(n[0]-t[0])&gt;2||Math.abs(n[1]-t[1])&gt;2}(r))return m.scale(e.scale()),void m.translate(e.translate());e.scale(n.event.scale),e.translate([a[0],n.event.translate[1]]),s?v(h)&amp;&amp;(d=v(h),p=[o[0]+(d[0]-s[0]),i[1],i[2]],e.rotate(p),o=p):s=v(r=h),g=!0,t.render();var l=e.rotate(),c=e.invert(t.midPt);t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.center.lon&quot;:c[0],&quot;geo.center.lat&quot;:c[1],&quot;geo.projection.rotation.lon&quot;:-l[0]})})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),g&amp;&amp;f(t,e,y)})),m}function d(t,e){var r,i={r:e.rotate(),k:e.scale()},a=u(0,e),o=function(t){var e=0,r=arguments.length,i=[];for(;++e&lt;r;)i.push(arguments[e]);var a=n.dispatch.apply(null,i);return a.of=function(e,r){return function(i){var o;try{o=i.sourceEvent=n.event,i.target=t,n.event=i,a[i.type].apply(e,r)}finally{n.event=o}}},a}(a,&quot;zoomstart&quot;,&quot;zoom&quot;,&quot;zoomend&quot;),s=0,h=a.on;function p(t){s++||t({type:&quot;zoomstart&quot;})}function d(t){t({type:&quot;zoom&quot;})}function b(t){--s||t({type:&quot;zoomend&quot;})}function _(t){var r=e.rotate();t(&quot;projection.rotation.lon&quot;,-r[0]),t(&quot;projection.rotation.lat&quot;,-r[1])}return a.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l);var t=n.mouse(this),s=e.rotate(),c=s,u=e.translate(),f=m(s);r=g(e,t),h.call(a,&quot;zoom&quot;,(function(){var a=n.mouse(this);if(e.scale(i.k=n.event.scale),r){if(g(e,a)){e.rotate(s).translate(u);var l=g(e,a),h=y(r,l),p=T(v(f,h)),m=i.r=x(p,r,c);isFinite(m[0])&amp;&amp;isFinite(m[1])&amp;&amp;isFinite(m[2])||(m=c),e.rotate(m),c=m}}else r=g(e,t=a);d(o.of(this,arguments))})),p(o.of(this,arguments))})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),h.call(a,&quot;zoom&quot;,null),b(o.of(this,arguments)),f(t,e,_)})).on(&quot;zoom.redraw&quot;,(function(){t.render();var r=e.rotate();t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.projection.rotation.lon&quot;:-r[0],&quot;geo.projection.rotation.lat&quot;:-r[1]})})),n.rebind(a,o,&quot;on&quot;)}function g(t,e){var r=t.invert(e);return r&amp;&amp;isFinite(r[0])&amp;&amp;isFinite(r[1])&amp;&amp;function(t){var e=t[0]*o,r=t[1]*o,n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}(r)}function m(t){var e=.5*t[0]*o,r=.5*t[1]*o,n=.5*t[2]*o,i=Math.sin(e),a=Math.cos(e),s=Math.sin(r),l=Math.cos(r),c=Math.sin(n),u=Math.cos(n);return[a*l*u+i*s*c,i*l*u-a*s*c,a*s*u+i*l*c,a*l*c-i*s*u]}function v(t,e){var r=t[0],n=t[1],i=t[2],a=t[3],o=e[0],s=e[1],l=e[2],c=e[3];return[r*o-n*s-i*l-a*c,r*s+n*o+i*c-a*l,r*l-n*c+i*o+a*s,r*c+n*l-i*s+a*o]}function y(t,e){if(t&amp;&amp;e){var r=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(t,e),n=Math.sqrt(k(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,k(t,e)))),a=Math.sin(i)/n;return n&amp;&amp;[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function x(t,e,r){var n=w(e,2,t[0]);n=w(n,1,t[1]),n=w(n,0,t[2]-r[2]);var i,a,o=e[0],l=e[1],c=e[2],u=n[0],f=n[1],h=n[2],p=Math.atan2(l,o)*s,d=Math.sqrt(o*o+l*l);Math.abs(f)&gt;d?(a=(f&gt;0?90:-90)-p,i=0):(a=Math.asin(f/d)*s-p,i=Math.sqrt(d*d-f*f));var g=180-a-2*p,m=(Math.atan2(h,u)-Math.atan2(c,i))*s,v=(Math.atan2(h,u)-Math.atan2(c,-i))*s;return b(r[0],r[1],a,m)&lt;=b(r[0],r[1],g,v)?[a,m,r[2]]:[g,v,r[2]]}function b(t,e,r,n){var i=_(r-t),a=_(n-e);return Math.sqrt(i*i+a*a)}function _(t){return(t%360+540)%360-180}function w(t,e,r){var n=r*o,i=t.slice(),a=0===e?1:0,s=2===e?1:2,l=Math.cos(n),c=Math.sin(n);return i[a]=t[a]*l-t[s]*c,i[s]=t[s]*l+t[a]*c,i}function T(t){return[Math.atan2(2*(t[0]*t[1]+t[2]*t[3]),1-2*(t[1]*t[1]+t[2]*t[2]))*s,Math.asin(Math.max(-1,Math.min(1,2*(t[0]*t[2]-t[3]*t[1]))))*s,Math.atan2(2*(t[0]*t[3]+t[1]*t[2]),1-2*(t[2]*t[2]+t[3]*t[3]))*s]}function k(t,e){for(var r=0,n=0,i=t.length;n&lt;i;++n)r+=t[n]*e[n];return r}e.exports=function(t,e){var r=t.projection;return(e._isScoped?h:e._isClipped?d:p)(t,r)}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,d3:169}],865:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;./cartesian/constants&quot;).SUBPLOT_PATTERN;r.getSubplotCalcData=function(t,e,r){var i=n.subplotsRegistry[e];if(!i)return[];for(var a=i.attr,o=[],s=0;s&lt;t.length;s++){var l=t[s];l[0].trace[a]===r&amp;&amp;o.push(l)}return o},r.getModuleCalcData=function(t,e){var r,i=[],a=[];if(!(r=&quot;string&quot;==typeof e?n.getModule(e).plot:&quot;function&quot;==typeof e?e:e.plot))return[i,t];for(var o=0;o&lt;t.length;o++){var s=t[o],l=s[0].trace;!0===l.visible&amp;&amp;0!==l._length&amp;&amp;(l._module.plot===r?i.push(s):a.push(s))}return[i,a]},r.getSubplotData=function(t,e,r){if(!n.subplotsRegistry[e])return[];var a,o,s,l=n.subplotsRegistry[e].attr,c=[];if(&quot;gl2d&quot;===e){var u=r.match(i);o=&quot;x&quot;+u[1],s=&quot;y&quot;+u[2]}for(var f=0;f&lt;t.length;f++)a=t[f],&quot;gl2d&quot;===e&amp;&amp;n.traceIs(a,&quot;gl2d&quot;)?a[l[0]]===o&amp;&amp;a[l[1]]===s&amp;&amp;c.push(a):a[l]===r&amp;&amp;c.push(a);return c}},{&quot;../registry&quot;:911,&quot;./cartesian/constants&quot;:834}],866:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mouse-change&quot;),i=t(&quot;mouse-wheel&quot;),a=t(&quot;mouse-event-offset&quot;),o=t(&quot;../cartesian/constants&quot;),s=t(&quot;has-passive-events&quot;);function l(t,e){this.element=t,this.plot=e,this.mouseListener=null,this.wheelListener=null,this.lastInputTime=Date.now(),this.lastPos=[0,0],this.boxEnabled=!1,this.boxInited=!1,this.boxStart=[0,0],this.boxEnd=[0,0],this.dragStart=[0,0]}e.exports=function(t){var e=t.mouseContainer,r=t.glplot,c=new l(e,r);function u(){t.xaxis.autorange=!1,t.yaxis.autorange=!1}function f(e,n,i){var a,s,l=t.calcDataBox(),f=r.viewBox,h=c.lastPos[0],p=c.lastPos[1],d=o.MINDRAG*r.pixelRatio,g=o.MINZOOM*r.pixelRatio;function m(e,r,n){var i=Math.min(r,n),a=Math.max(r,n);i!==a?(l[e]=i,l[e+2]=a,c.dataBox=l,t.setRanges(l)):(t.selectBox.selectBox=[0,0,1,1],t.glplot.setDirty())}switch(n*=r.pixelRatio,i*=r.pixelRatio,i=f[3]-f[1]-i,t.fullLayout.dragmode){case&quot;zoom&quot;:if(e){var v=n/(f[2]-f[0])*(l[2]-l[0])+l[0],y=i/(f[3]-f[1])*(l[3]-l[1])+l[1];c.boxInited||(c.boxStart[0]=v,c.boxStart[1]=y,c.dragStart[0]=n,c.dragStart[1]=i),c.boxEnd[0]=v,c.boxEnd[1]=y,c.boxInited=!0,c.boxEnabled||c.boxStart[0]===c.boxEnd[0]&amp;&amp;c.boxStart[1]===c.boxEnd[1]||(c.boxEnabled=!0);var x=Math.abs(c.dragStart[0]-n)&lt;g,b=Math.abs(c.dragStart[1]-i)&lt;g;if(!function(){for(var e=t.graphDiv._fullLayout._axisConstraintGroups,r=t.xaxis._id,n=t.yaxis._id,i=0;i&lt;e.length;i++)if(-1!==e[i][r]){if(-1!==e[i][n])return!0;break}return!1}()||x&amp;&amp;b)x&amp;&amp;(c.boxEnd[0]=c.boxStart[0]),b&amp;&amp;(c.boxEnd[1]=c.boxStart[1]);else{a=c.boxEnd[0]-c.boxStart[0],s=c.boxEnd[1]-c.boxStart[1];var _=(l[3]-l[1])/(l[2]-l[0]);Math.abs(a*_)&gt;Math.abs(s)?(c.boxEnd[1]=c.boxStart[1]+Math.abs(a)*_*(s&gt;=0?1:-1),c.boxEnd[1]&lt;l[1]?(c.boxEnd[1]=l[1],c.boxEnd[0]=c.boxStart[0]+(l[1]-c.boxStart[1])/Math.abs(_)):c.boxEnd[1]&gt;l[3]&amp;&amp;(c.boxEnd[1]=l[3],c.boxEnd[0]=c.boxStart[0]+(l[3]-c.boxStart[1])/Math.abs(_))):(c.boxEnd[0]=c.boxStart[0]+Math.abs(s)/_*(a&gt;=0?1:-1),c.boxEnd[0]&lt;l[0]?(c.boxEnd[0]=l[0],c.boxEnd[1]=c.boxStart[1]+(l[0]-c.boxStart[0])*Math.abs(_)):c.boxEnd[0]&gt;l[2]&amp;&amp;(c.boxEnd[0]=l[2],c.boxEnd[1]=c.boxStart[1]+(l[2]-c.boxStart[0])*Math.abs(_)))}}else c.boxEnabled?(a=c.boxStart[0]!==c.boxEnd[0],s=c.boxStart[1]!==c.boxEnd[1],a||s?(a&amp;&amp;(m(0,c.boxStart[0],c.boxEnd[0]),t.xaxis.autorange=!1),s&amp;&amp;(m(1,c.boxStart[1],c.boxEnd[1]),t.yaxis.autorange=!1),t.relayoutCallback()):t.glplot.setDirty(),c.boxEnabled=!1,c.boxInited=!1):c.boxInited&amp;&amp;(c.boxInited=!1);break;case&quot;pan&quot;:c.boxEnabled=!1,c.boxInited=!1,e?(c.panning||(c.dragStart[0]=n,c.dragStart[1]=i),Math.abs(c.dragStart[0]-n)&lt;d&amp;&amp;(n=c.dragStart[0]),Math.abs(c.dragStart[1]-i)&lt;d&amp;&amp;(i=c.dragStart[1]),a=(h-n)*(l[2]-l[0])/(r.viewBox[2]-r.viewBox[0]),s=(p-i)*(l[3]-l[1])/(r.viewBox[3]-r.viewBox[1]),l[0]+=a,l[2]+=a,l[1]+=s,l[3]+=s,t.setRanges(l),c.panning=!0,c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations()):c.panning&amp;&amp;(c.panning=!1,t.relayoutCallback())}c.lastPos[0]=n,c.lastPos[1]=i}return c.mouseListener=n(e,f),e.addEventListener(&quot;touchstart&quot;,(function(t){var r=a(t.changedTouches[0],e);f(0,r[0],r[1]),f(1,r[0],r[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),e.addEventListener(&quot;touchmove&quot;,(function(t){t.preventDefault();var r=a(t.changedTouches[0],e);f(1,r[0],r[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),e.addEventListener(&quot;touchend&quot;,(function(t){f(0,c.lastPos[0],c.lastPos[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),c.wheelListener=i(e,(function(e,n){if(!t.scrollZoom)return!1;var i=t.calcDataBox(),a=r.viewBox,o=c.lastPos[0],s=c.lastPos[1],l=Math.exp(5*n/(a[3]-a[1])),f=o/(a[2]-a[0])*(i[2]-i[0])+i[0],h=s/(a[3]-a[1])*(i[3]-i[1])+i[1];return i[0]=(i[0]-f)*l+f,i[2]=(i[2]-f)*l+f,i[1]=(i[1]-h)*l+h,i[3]=(i[3]-h)*l+h,t.setRanges(i),c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations(),t.relayoutCallback(),!0}),!0),c}},{&quot;../cartesian/constants&quot;:834,&quot;has-passive-events&quot;:441,&quot;mouse-change&quot;:483,&quot;mouse-event-offset&quot;:484,&quot;mouse-wheel&quot;:486}],867:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../cartesian/axes&quot;),i=t(&quot;../../lib/str2rgbarray&quot;);function a(t){this.scene=t,this.gl=t.gl,this.pixelRatio=t.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=[&quot;x&quot;,&quot;y&quot;],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title=&quot;&quot;,this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont=&quot;sans-serif&quot;,this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}var o=a.prototype,s=[&quot;xaxis&quot;,&quot;yaxis&quot;];o.merge=function(t){var e,r,n,a,o,l,c,u,f,h,p;for(this.titleEnable=!1,this.backgroundColor=i(t.plot_bgcolor),h=0;h&lt;2;++h){var d=(e=s[h]).charAt(0);for(n=(r=t[this.scene[e]._name]).title.text===this.scene.fullLayout._dfltTitle[d]?&quot;&quot;:r.title.text,p=0;p&lt;=2;p+=2)this.labelEnable[h+p]=!1,this.labels[h+p]=n,this.labelColor[h+p]=i(r.title.font.color),this.labelFont[h+p]=r.title.font.family,this.labelSize[h+p]=r.title.font.size,this.labelPad[h+p]=this.getLabelPad(e,r),this.tickEnable[h+p]=!1,this.tickColor[h+p]=i((r.tickfont||{}).color),this.tickAngle[h+p]=&quot;auto&quot;===r.tickangle?0:Math.PI*-r.tickangle/180,this.tickPad[h+p]=this.getTickPad(r),this.tickMarkLength[h+p]=0,this.tickMarkWidth[h+p]=r.tickwidth||0,this.tickMarkColor[h+p]=i(r.tickcolor),this.borderLineEnable[h+p]=!1,this.borderLineColor[h+p]=i(r.linecolor),this.borderLineWidth[h+p]=r.linewidth||0;c=this.hasSharedAxis(r),o=this.hasAxisInDfltPos(e,r)&amp;&amp;!c,l=this.hasAxisInAltrPos(e,r)&amp;&amp;!c,a=r.mirror||!1,u=c?-1!==String(a).indexOf(&quot;all&quot;):!!a,f=c?&quot;allticks&quot;===a:-1!==String(a).indexOf(&quot;ticks&quot;),o?this.labelEnable[h]=!0:l&amp;&amp;(this.labelEnable[h+2]=!0),o?this.tickEnable[h]=r.showticklabels:l&amp;&amp;(this.tickEnable[h+2]=r.showticklabels),(o||u)&amp;&amp;(this.borderLineEnable[h]=r.showline),(l||u)&amp;&amp;(this.borderLineEnable[h+2]=r.showline),(o||f)&amp;&amp;(this.tickMarkLength[h]=this.getTickMarkLength(r)),(l||f)&amp;&amp;(this.tickMarkLength[h+2]=this.getTickMarkLength(r)),this.gridLineEnable[h]=r.showgrid,this.gridLineColor[h]=i(r.gridcolor),this.gridLineWidth[h]=r.gridwidth,this.zeroLineEnable[h]=r.zeroline,this.zeroLineColor[h]=i(r.zerolinecolor),this.zeroLineWidth[h]=r.zerolinewidth}},o.hasSharedAxis=function(t){var e=this.scene,r=e.fullLayout._subplots.gl2d;return 0!==n.findSubplotsWithAxis(r,t).indexOf(e.id)},o.hasAxisInDfltPos=function(t,e){var r=e.side;return&quot;xaxis&quot;===t?&quot;bottom&quot;===r:&quot;yaxis&quot;===t?&quot;left&quot;===r:void 0},o.hasAxisInAltrPos=function(t,e){var r=e.side;return&quot;xaxis&quot;===t?&quot;top&quot;===r:&quot;yaxis&quot;===t?&quot;right&quot;===r:void 0},o.getLabelPad=function(t,e){var r=e.title.font.size,n=e.showticklabels;return&quot;xaxis&quot;===t?&quot;top&quot;===e.side?r*(1.5+(n?1:0))-10:r*(1.5+(n?.5:0))-10:&quot;yaxis&quot;===t?&quot;right&quot;===e.side?10+r*(1.5+(n?1:.5)):10+r*(1.5+(n?.5:0)):void 0},o.getTickPad=function(t){return&quot;outside&quot;===t.ticks?10+t.ticklen:15},o.getTickMarkLength=function(t){if(!t.ticks)return 0;var e=t.ticklen;return&quot;inside&quot;===t.ticks?-e:e},e.exports=function(t){return new a(t)}},{&quot;../../lib/str2rgbarray&quot;:802,&quot;../cartesian/axes&quot;:828}],868:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;./scene2d&quot;),a=t(&quot;../layout_attributes&quot;),o=t(&quot;../../constants/xmlns_namespaces&quot;),s=t(&quot;../cartesian/constants&quot;),l=t(&quot;../cartesian&quot;),c=t(&quot;../../components/fx/layout_attributes&quot;),u=t(&quot;../get_data&quot;).getSubplotData;r.name=&quot;gl2d&quot;,r.attr=[&quot;xaxis&quot;,&quot;yaxis&quot;],r.idRoot=[&quot;x&quot;,&quot;y&quot;],r.idRegex=s.idRegex,r.attrRegex=s.attrRegex,r.attributes=t(&quot;../cartesian/attributes&quot;),r.supplyLayoutDefaults=function(t,e,r){e._has(&quot;cartesian&quot;)||l.supplyLayoutDefaults(t,e,r)},r.layoutAttrOverrides=n(l.layoutAttributes,&quot;plot&quot;,&quot;from-root&quot;),r.baseLayoutAttrOverrides=n({plot_bgcolor:a.plot_bgcolor,hoverlabel:c.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl2d,a=0;a&lt;n.length;a++){var o=n[a],s=e._plots[o],l=u(r,&quot;gl2d&quot;,o),c=s._scene2d;void 0===c&amp;&amp;(c=new i({id:o,graphDiv:t,container:t.querySelector(&quot;.gl-container&quot;),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio},e),s._scene2d=c),c.plot(l,t.calcdata,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl2d||[],a=0;a&lt;i.length;a++){var o=i[a],s=n._plots[o];if(s._scene2d){var c=u(t,&quot;gl2d&quot;,o);0===c.length&amp;&amp;(s._scene2d.destroy(),delete n._plots[o])}}l.clean.apply(this,arguments)},r.drawFramework=function(t){t._context.staticPlot||l.drawFramework(t)},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n&lt;r.length;n++){var i=e._plots[r[n]]._scene2d,a=i.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:o.svg,&quot;xlink:href&quot;:a,x:0,y:0,width:&quot;100%&quot;,height:&quot;100%&quot;,preserveAspectRatio:&quot;none&quot;}),i.destroy()}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n&lt;r.length;n++){e._plots[r[n]]._scene2d.updateFx(e.dragmode)}}},{&quot;../../components/fx/layout_attributes&quot;:684,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../plot_api/edit_types&quot;:810,&quot;../cartesian&quot;:841,&quot;../cartesian/attributes&quot;:826,&quot;../cartesian/constants&quot;:834,&quot;../get_data&quot;:865,&quot;../layout_attributes&quot;:882,&quot;./scene2d&quot;:869}],869:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;../../registry&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;gl-plot2d&quot;),c=t(&quot;gl-spikes2d&quot;),u=t(&quot;gl-select-box&quot;),f=t(&quot;webgl-context&quot;),h=t(&quot;./convert&quot;),p=t(&quot;./camera&quot;),d=t(&quot;../../lib/show_no_webgl_msg&quot;),g=t(&quot;../cartesian/constraints&quot;),m=g.enforce,v=g.clean,y=t(&quot;../cartesian/autorange&quot;).doAutoRange,x=t(&quot;../../components/dragelement/helpers&quot;),b=x.drawMode,_=x.selectMode,w=[&quot;xaxis&quot;,&quot;yaxis&quot;],T=t(&quot;../cartesian/constants&quot;).SUBPLOT_PATTERN;function k(t,e){this.container=t.container,this.graphDiv=t.graphDiv,this.pixelRatio=t.plotGlPixelRatio||window.devicePixelRatio,this.id=t.id,this.staticPlot=!!t.staticPlot,this.scrollZoom=this.graphDiv._context._scrollZoom.cartesian,this.fullData=null,this.updateRefs(e),this.makeFramework(),this.stopped||(this.glplotOptions=h(this),this.glplotOptions.merge(e),this.glplot=l(this.glplotOptions),this.camera=p(this),this.traces={},this.spikes=c(this.glplot),this.selectBox=u(this.glplot,{innerFill:!1,outerFill:!0}),this.lastButtonState=0,this.pickResult=null,this.isMouseOver=!0,this.stopped=!1,this.redraw=this.draw.bind(this),this.redraw())}e.exports=k;var M=k.prototype;M.makeFramework=function(){if(this.staticPlot){if(!(i||(n=document.createElement(&quot;canvas&quot;),i=f({canvas:n,preserveDrawingBuffer:!1,premultipliedAlpha:!0,antialias:!0}))))throw new Error(&quot;Error creating static canvas/context for image server&quot;);this.canvas=n,this.gl=i}else{var t=this.container.querySelector(&quot;.gl-canvas-focus&quot;),e=f({canvas:t,preserveDrawingBuffer:!0,premultipliedAlpha:!0});if(!e)return d(this),void(this.stopped=!0);this.canvas=t,this.gl=e}var r=this.canvas;r.style.width=&quot;100%&quot;,r.style.height=&quot;100%&quot;,r.style.position=&quot;absolute&quot;,r.style.top=&quot;0px&quot;,r.style.left=&quot;0px&quot;,r.style[&quot;pointer-events&quot;]=&quot;none&quot;,this.updateSize(r);var a=this.svgContainer=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);a.style.position=&quot;absolute&quot;,a.style.top=a.style.left=&quot;0px&quot;,a.style.width=a.style.height=&quot;100%&quot;,a.style[&quot;z-index&quot;]=20,a.style[&quot;pointer-events&quot;]=&quot;none&quot;;var o=this.mouseContainer=document.createElement(&quot;div&quot;);o.style.position=&quot;absolute&quot;,o.style[&quot;pointer-events&quot;]=&quot;auto&quot;,this.pickCanvas=this.container.querySelector(&quot;.gl-canvas-pick&quot;);var s=this.container;s.appendChild(a),s.appendChild(o);var l=this;o.addEventListener(&quot;mouseout&quot;,(function(){l.isMouseOver=!1,l.unhover()})),o.addEventListener(&quot;mouseover&quot;,(function(){l.isMouseOver=!0}))},M.toImage=function(t){t||(t=&quot;png&quot;),this.stopped=!0,this.staticPlot&amp;&amp;this.container.appendChild(n),this.updateSize(this.canvas);var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.clearColor(1,1,1,0),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),this.glplot.setDirty(),this.glplot.draw(),e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a);for(var o=0,s=i-1;o&lt;s;++o,--s)for(var l=0;l&lt;r;++l)for(var c=0;c&lt;4;++c){var u=a[4*(r*o+l)+c];a[4*(r*o+l)+c]=a[4*(r*s+l)+c],a[4*(r*s+l)+c]=u}var f=document.createElement(&quot;canvas&quot;);f.width=r,f.height=i;var h,p=f.getContext(&quot;2d&quot;),d=p.createImageData(r,i);switch(d.data.set(a),p.putImageData(d,0,0),t){case&quot;jpeg&quot;:h=f.toDataURL(&quot;image/jpeg&quot;);break;case&quot;webp&quot;:h=f.toDataURL(&quot;image/webp&quot;);break;default:h=f.toDataURL(&quot;image/png&quot;)}return this.staticPlot&amp;&amp;this.container.removeChild(n),h},M.updateSize=function(t){t||(t=this.canvas);var e=this.pixelRatio,r=this.fullLayout,n=r.width,i=r.height,a=0|Math.ceil(e*n),o=0|Math.ceil(e*i);return t.width===a&amp;&amp;t.height===o||(t.width=a,t.height=o),t},M.computeTickMarks=function(){this.xaxis.setScale(),this.yaxis.setScale();for(var t=[o.calcTicks(this.xaxis),o.calcTicks(this.yaxis)],e=0;e&lt;2;++e)for(var r=0;r&lt;t[e].length;++r)t[e][r].text=t[e][r].text+&quot;&quot;;return t},M.updateRefs=function(t){this.fullLayout=t;var e=this.id.match(T),r=&quot;xaxis&quot;+e[1],n=&quot;yaxis&quot;+e[2];this.xaxis=this.fullLayout[r],this.yaxis=this.fullLayout[n]},M.relayoutCallback=function(){var t=this.graphDiv,e=this.xaxis,r=this.yaxis,n=t.layout,i={},o=i[e._name+&quot;.range&quot;]=e.range.slice(),s=i[r._name+&quot;.range&quot;]=r.range.slice();i[e._name+&quot;.autorange&quot;]=e.autorange,i[r._name+&quot;.autorange&quot;]=r.autorange,a.call(&quot;_storeDirectGUIEdit&quot;,t.layout,t._fullLayout._preGUI,i);var l=n[e._name];l.range=o,l.autorange=e.autorange;var c=n[r._name];c.range=s,c.autorange=r.autorange,i.lastInputTime=this.camera.lastInputTime,t.emit(&quot;plotly_relayout&quot;,i)},M.cameraChanged=function(){var t=this.camera;this.glplot.setDataBox(this.calcDataBox());var e=this.computeTickMarks();(function(t,e){for(var r=0;r&lt;2;++r){var n=t[r],i=e[r];if(n.length!==i.length)return!0;for(var a=0;a&lt;n.length;++a)if(n[a].x!==i[a].x)return!0}return!1})(e,this.glplotOptions.ticks)&amp;&amp;(this.glplotOptions.ticks=e,this.glplotOptions.dataBox=t.dataBox,this.glplot.update(this.glplotOptions),this.handleAnnotations())},M.handleAnnotations=function(){for(var t=this.graphDiv,e=this.fullLayout.annotations,r=0;r&lt;e.length;r++){var n=e[r];n.xref===this.xaxis._id&amp;&amp;n.yref===this.yaxis._id&amp;&amp;a.getComponentMethod(&quot;annotations&quot;,&quot;drawOne&quot;)(t,r)}},M.destroy=function(){if(this.glplot){var t=this.traces;t&amp;&amp;Object.keys(t).map((function(e){t[e].dispose(),delete t[e]})),this.glplot.dispose(),this.container.removeChild(this.svgContainer),this.container.removeChild(this.mouseContainer),this.fullData=null,this.glplot=null,this.stopped=!0,this.camera.mouseListener.enabled=!1,this.mouseContainer.removeEventListener(&quot;wheel&quot;,this.camera.wheelListener),this.camera=null}},M.plot=function(t,e,r){var n=this.glplot;this.updateRefs(r),this.xaxis.clearCalc(),this.yaxis.clearCalc(),this.updateTraces(t,e),this.updateFx(r.dragmode);var i=r.width,a=r.height;this.updateSize(this.canvas);var o=this.glplotOptions;o.merge(r),o.screenBox=[0,0,i,a];var s={_fullLayout:{_axisConstraintGroups:this.graphDiv._fullLayout._axisConstraintGroups,xaxis:this.xaxis,yaxis:this.yaxis}};v(s,this.xaxis),v(s,this.yaxis);var l,c,u=r._size,f=this.xaxis.domain,h=this.yaxis.domain;for(o.viewBox=[u.l+f[0]*u.w,u.b+h[0]*u.h,i-u.r-(1-f[1])*u.w,a-u.t-(1-h[1])*u.h],this.mouseContainer.style.width=u.w*(f[1]-f[0])+&quot;px&quot;,this.mouseContainer.style.height=u.h*(h[1]-h[0])+&quot;px&quot;,this.mouseContainer.height=u.h*(h[1]-h[0]),this.mouseContainer.style.left=u.l+f[0]*u.w+&quot;px&quot;,this.mouseContainer.style.top=u.t+(1-h[1])*u.h+&quot;px&quot;,c=0;c&lt;2;++c)(l=this[w[c]])._length=o.viewBox[c+2]-o.viewBox[c],y(this.graphDiv,l),l.setScale();m(s),o.ticks=this.computeTickMarks(),o.dataBox=this.calcDataBox(),o.merge(r),n.update(o),this.glplot.draw()},M.calcDataBox=function(){var t=this.xaxis,e=this.yaxis,r=t.range,n=e.range,i=t.r2l,a=e.r2l;return[i(r[0]),a(n[0]),i(r[1]),a(n[1])]},M.setRanges=function(t){var e=this.xaxis,r=this.yaxis,n=e.l2r,i=r.l2r;e.range=[n(t[0]),n(t[2])],r.range=[i(t[1]),i(t[3])]},M.updateTraces=function(t,e){var r,n,i,a=Object.keys(this.traces);this.fullData=t;t:for(r=0;r&lt;a.length;r++){var o=a[r],s=this.traces[o];for(n=0;n&lt;t.length;n++)if((i=t[n]).uid===o&amp;&amp;i.type===s.type)continue t;s.dispose(),delete this.traces[o]}for(r=0;r&lt;t.length;r++){i=t[r];var l=e[r],c=this.traces[i.uid];c?c.update(i,l):(c=i._module.plot(this,i,l),this.traces[i.uid]=c)}this.glplot.objects.sort((function(t,e){return t._trace.index-e._trace.index}))},M.updateFx=function(t){_(t)||b(t)?(this.pickCanvas.style[&quot;pointer-events&quot;]=&quot;none&quot;,this.mouseContainer.style[&quot;pointer-events&quot;]=&quot;none&quot;):(this.pickCanvas.style[&quot;pointer-events&quot;]=&quot;auto&quot;,this.mouseContainer.style[&quot;pointer-events&quot;]=&quot;auto&quot;),this.mouseContainer.style.cursor=&quot;pan&quot;===t?&quot;move&quot;:&quot;zoom&quot;===t?&quot;crosshair&quot;:null},M.emitPointAction=function(t,e){for(var r,n=t.trace.uid,i=t.pointIndex,a=0;a&lt;this.fullData.length;a++)this.fullData[a].uid===n&amp;&amp;(r=this.fullData[a]);var o={x:t.traceCoord[0],y:t.traceCoord[1],curveNumber:r.index,pointNumber:i,data:r._input,fullData:this.fullData,xaxis:this.xaxis,yaxis:this.yaxis};s.appendArrayPointValue(o,r,i),this.graphDiv.emit(e,{points:[o]})},M.draw=function(){if(!this.stopped){requestAnimationFrame(this.redraw);var t=this.glplot,e=this.camera,r=e.mouseListener,n=1===this.lastButtonState&amp;&amp;0===r.buttons,i=this.fullLayout;this.lastButtonState=r.buttons,this.cameraChanged();var a,o=r.x*t.pixelRatio,l=this.canvas.height-t.pixelRatio*r.y;if(e.boxEnabled&amp;&amp;&quot;zoom&quot;===i.dragmode){this.selectBox.enabled=!0;for(var c=this.selectBox.selectBox=[Math.min(e.boxStart[0],e.boxEnd[0]),Math.min(e.boxStart[1],e.boxEnd[1]),Math.max(e.boxStart[0],e.boxEnd[0]),Math.max(e.boxStart[1],e.boxEnd[1])],u=0;u&lt;2;u++)e.boxStart[u]===e.boxEnd[u]&amp;&amp;(c[u]=t.dataBox[u],c[u+2]=t.dataBox[u+2]);t.setDirty()}else if(!e.panning&amp;&amp;this.isMouseOver){this.selectBox.enabled=!1;var f=i._size,h=this.xaxis.domain,p=this.yaxis.domain,d=(a=t.pick(o/t.pixelRatio+f.l+h[0]*f.w,l/t.pixelRatio-(f.t+(1-p[1])*f.h)))&amp;&amp;a.object._trace.handlePick(a);if(d&amp;&amp;n&amp;&amp;this.emitPointAction(d,&quot;plotly_click&quot;),a&amp;&amp;&quot;skip&quot;!==a.object._trace.hoverinfo&amp;&amp;i.hovermode&amp;&amp;d&amp;&amp;(!this.lastPickResult||this.lastPickResult.traceUid!==d.trace.uid||this.lastPickResult.dataCoord[0]!==d.dataCoord[0]||this.lastPickResult.dataCoord[1]!==d.dataCoord[1])){var g=d;this.lastPickResult={traceUid:d.trace?d.trace.uid:null,dataCoord:d.dataCoord.slice()},this.spikes.update({center:a.dataCoord}),g.screenCoord=[((t.viewBox[2]-t.viewBox[0])*(a.dataCoord[0]-t.dataBox[0])/(t.dataBox[2]-t.dataBox[0])+t.viewBox[0])/t.pixelRatio,(this.canvas.height-(t.viewBox[3]-t.viewBox[1])*(a.dataCoord[1]-t.dataBox[1])/(t.dataBox[3]-t.dataBox[1])-t.viewBox[1])/t.pixelRatio],this.emitPointAction(d,&quot;plotly_hover&quot;);var m=this.fullData[g.trace.index]||{},v=g.pointIndex,y=s.castHoverinfo(m,i,v);if(y&amp;&amp;&quot;all&quot;!==y){var x=y.split(&quot;+&quot;);-1===x.indexOf(&quot;x&quot;)&amp;&amp;(g.traceCoord[0]=void 0),-1===x.indexOf(&quot;y&quot;)&amp;&amp;(g.traceCoord[1]=void 0),-1===x.indexOf(&quot;z&quot;)&amp;&amp;(g.traceCoord[2]=void 0),-1===x.indexOf(&quot;text&quot;)&amp;&amp;(g.textLabel=void 0),-1===x.indexOf(&quot;name&quot;)&amp;&amp;(g.name=void 0)}s.loneHover({x:g.screenCoord[0],y:g.screenCoord[1],xLabel:this.hoverFormatter(&quot;xaxis&quot;,g.traceCoord[0]),yLabel:this.hoverFormatter(&quot;yaxis&quot;,g.traceCoord[1]),zLabel:g.traceCoord[2],text:g.textLabel,name:g.name,color:s.castHoverOption(m,v,&quot;bgcolor&quot;)||g.color,borderColor:s.castHoverOption(m,v,&quot;bordercolor&quot;),fontFamily:s.castHoverOption(m,v,&quot;font.family&quot;),fontSize:s.castHoverOption(m,v,&quot;font.size&quot;),fontColor:s.castHoverOption(m,v,&quot;font.color&quot;),nameLength:s.castHoverOption(m,v,&quot;namelength&quot;),textAlign:s.castHoverOption(m,v,&quot;align&quot;)},{container:this.svgContainer,gd:this.graphDiv})}}a||this.unhover(),t.draw()}},M.unhover=function(){this.lastPickResult&amp;&amp;(this.spikes.update({}),this.lastPickResult=null,this.graphDiv.emit(&quot;plotly_unhover&quot;),s.loneUnhover(this.svgContainer))},M.hoverFormatter=function(t,e){if(void 0!==e){var r=this[t];return o.tickText(r,r.c2l(e),&quot;hover&quot;).text}}},{&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/fx&quot;:683,&quot;../../lib/show_no_webgl_msg&quot;:800,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../cartesian/autorange&quot;:827,&quot;../cartesian/constants&quot;:834,&quot;../cartesian/constraints&quot;:835,&quot;./camera&quot;:866,&quot;./convert&quot;:867,&quot;gl-plot2d&quot;:317,&quot;gl-select-box&quot;:333,&quot;gl-spikes2d&quot;:342,&quot;webgl-context&quot;:606}],870:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;../../components/fx/layout_attributes&quot;),a=t(&quot;./scene&quot;),o=t(&quot;../get_data&quot;).getSubplotData,s=t(&quot;../../lib&quot;),l=t(&quot;../../constants/xmlns_namespaces&quot;);r.name=&quot;gl3d&quot;,r.attr=&quot;scene&quot;,r.idRoot=&quot;scene&quot;,r.idRegex=r.attrRegex=s.counterRegex(&quot;scene&quot;),r.attributes=t(&quot;./layout/attributes&quot;),r.layoutAttributes=t(&quot;./layout/layout_attributes&quot;),r.baseLayoutAttrOverrides=n({hoverlabel:i.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.supplyLayoutDefaults=t(&quot;./layout/defaults&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl3d,i=0;i&lt;n.length;i++){var s=n[i],l=o(r,&quot;gl3d&quot;,s),c=e[s],u=c.camera,f=c._scene;f||(f=new a({id:s,graphDiv:t,container:t.querySelector(&quot;.gl-container&quot;),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio,camera:u},e),c._scene=f),f.viewInitial||(f.viewInitial={up:{x:u.up.x,y:u.up.y,z:u.up.z},eye:{x:u.eye.x,y:u.eye.y,z:u.eye.z},center:{x:u.center.x,y:u.center.y,z:u.center.z}}),f.plot(l,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl3d||[],a=0;a&lt;i.length;a++){var o=i[a];!e[o]&amp;&amp;n[o]._scene&amp;&amp;(n[o]._scene.destroy(),n._infolayer&amp;&amp;n._infolayer.selectAll(&quot;.annotation-&quot;+o).remove())}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=e._size,i=0;i&lt;r.length;i++){var a=e[r[i]],o=a.domain,s=a._scene,c=s.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:l.svg,&quot;xlink:href&quot;:c,x:n.l+n.w*o.x[0],y:n.t+n.h*(1-o.y[1]),width:n.w*(o.x[1]-o.x[0]),height:n.h*(o.y[1]-o.y[0]),preserveAspectRatio:&quot;none&quot;}),s.destroy()}},r.cleanId=function(t){if(t.match(/^scene[0-9]*$/)){var e=t.substr(5);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),&quot;scene&quot;+e}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n&lt;r.length;n++){e[r[n]]._scene.updateFx(e.dragmode,e.hovermode)}}},{&quot;../../components/fx/layout_attributes&quot;:684,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;../get_data&quot;:865,&quot;./layout/attributes&quot;:871,&quot;./layout/defaults&quot;:875,&quot;./layout/layout_attributes&quot;:876,&quot;./scene&quot;:880}],871:[function(t,e,r){&quot;use strict&quot;;e.exports={scene:{valType:&quot;subplotid&quot;,dflt:&quot;scene&quot;,editType:&quot;calc+clearAxisTypes&quot;}}},{}],872:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../components/color&quot;),i=t(&quot;../../cartesian/layout_attributes&quot;),a=t(&quot;../../../lib/extend&quot;).extendFlat,o=t(&quot;../../../plot_api/edit_types&quot;).overrideAll;e.exports=o({visible:i.visible,showspikes:{valType:&quot;boolean&quot;,dflt:!0},spikesides:{valType:&quot;boolean&quot;,dflt:!0},spikethickness:{valType:&quot;number&quot;,min:0,dflt:2},spikecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},showbackground:{valType:&quot;boolean&quot;,dflt:!1},backgroundcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(204, 204, 204, 0.5)&quot;},showaxeslabels:{valType:&quot;boolean&quot;,dflt:!0},color:i.color,categoryorder:i.categoryorder,categoryarray:i.categoryarray,title:{text:i.title.text,font:i.title.font},type:a({},i.type,{values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;]}),autotypenumbers:i.autotypenumbers,autorange:i.autorange,rangemode:i.rangemode,range:a({},i.range,{items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],anim:!1}),tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,mirror:i.mirror,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,tickfont:i.tickfont,tickangle:i.tickangle,tickprefix:i.tickprefix,showtickprefix:i.showtickprefix,ticksuffix:i.ticksuffix,showticksuffix:i.showticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickformat:i.tickformat,tickformatstops:i.tickformatstops,hoverformat:i.hoverformat,showline:i.showline,linecolor:i.linecolor,linewidth:i.linewidth,showgrid:i.showgrid,gridcolor:a({},i.gridcolor,{dflt:&quot;rgb(204, 204, 204)&quot;}),gridwidth:i.gridwidth,zeroline:i.zeroline,zerolinecolor:i.zerolinecolor,zerolinewidth:i.zerolinewidth,_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}},&quot;plot&quot;,&quot;from-root&quot;)},{&quot;../../../components/color&quot;:643,&quot;../../../lib/extend&quot;:768,&quot;../../../plot_api/edit_types&quot;:810,&quot;../../cartesian/layout_attributes&quot;:842}],873:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;).mix,i=t(&quot;../../../lib&quot;),a=t(&quot;../../../plot_api/plot_template&quot;),o=t(&quot;./axis_attributes&quot;),s=t(&quot;../../cartesian/type_defaults&quot;),l=t(&quot;../../cartesian/axis_defaults&quot;),c=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];e.exports=function(t,e,r){var u,f;function h(t,e){return i.coerce(u,f,o,t,e)}for(var p=0;p&lt;c.length;p++){var d=c[p];u=t[d]||{},(f=a.newContainer(e,d))._id=d[0]+r.scene,f._name=d,s(u,f,h,r),l(u,f,h,{font:r.font,letter:d[0],data:r.data,showGrid:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelposition:!0,bgColor:r.bgColor,calendar:r.calendar},r.fullLayout),h(&quot;gridcolor&quot;,n(f.color,r.bgColor,13600/187).toRgbString()),h(&quot;title.text&quot;,d[0]),f.setScale=i.noop,h(&quot;showspikes&quot;)&amp;&amp;(h(&quot;spikesides&quot;),h(&quot;spikethickness&quot;),h(&quot;spikecolor&quot;,f.color)),h(&quot;showaxeslabels&quot;),h(&quot;showbackground&quot;)&amp;&amp;h(&quot;backgroundcolor&quot;)}}},{&quot;../../../lib&quot;:778,&quot;../../../plot_api/plot_template&quot;:817,&quot;../../cartesian/axis_defaults&quot;:830,&quot;../../cartesian/type_defaults&quot;:853,&quot;./axis_attributes&quot;:872,tinycolor2:576}],874:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib/str2rgbarray&quot;),i=t(&quot;../../../lib&quot;),a=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function o(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],this.labelEnable=[!0,!0,!0],this.labelFont=[&quot;Open Sans&quot;,&quot;Open Sans&quot;,&quot;Open Sans&quot;],this.labelSize=[20,20,20],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}o.prototype.merge=function(t,e){for(var r=0;r&lt;3;++r){var o=e[a[r]];o.visible?(this.labels[r]=t._meta?i.templateString(o.title.text,t._meta):o.title.text,&quot;font&quot;in o.title&amp;&amp;(o.title.font.color&amp;&amp;(this.labelColor[r]=n(o.title.font.color)),o.title.font.family&amp;&amp;(this.labelFont[r]=o.title.font.family),o.title.font.size&amp;&amp;(this.labelSize[r]=o.title.font.size)),&quot;showline&quot;in o&amp;&amp;(this.lineEnable[r]=o.showline),&quot;linecolor&quot;in o&amp;&amp;(this.lineColor[r]=n(o.linecolor)),&quot;linewidth&quot;in o&amp;&amp;(this.lineWidth[r]=o.linewidth),&quot;showgrid&quot;in o&amp;&amp;(this.gridEnable[r]=o.showgrid),&quot;gridcolor&quot;in o&amp;&amp;(this.gridColor[r]=n(o.gridcolor)),&quot;gridwidth&quot;in o&amp;&amp;(this.gridWidth[r]=o.gridwidth),&quot;log&quot;===o.type?this.zeroEnable[r]=!1:&quot;zeroline&quot;in o&amp;&amp;(this.zeroEnable[r]=o.zeroline),&quot;zerolinecolor&quot;in o&amp;&amp;(this.zeroLineColor[r]=n(o.zerolinecolor)),&quot;zerolinewidth&quot;in o&amp;&amp;(this.zeroLineWidth[r]=o.zerolinewidth),&quot;ticks&quot;in o&amp;&amp;o.ticks?this.lineTickEnable[r]=!0:this.lineTickEnable[r]=!1,&quot;ticklen&quot;in o&amp;&amp;(this.lineTickLength[r]=this._defaultLineTickLength[r]=o.ticklen),&quot;tickcolor&quot;in o&amp;&amp;(this.lineTickColor[r]=n(o.tickcolor)),&quot;tickwidth&quot;in o&amp;&amp;(this.lineTickWidth[r]=o.tickwidth),&quot;tickangle&quot;in o&amp;&amp;(this.tickAngle[r]=&quot;auto&quot;===o.tickangle?-3600:Math.PI*-o.tickangle/180),&quot;showticklabels&quot;in o&amp;&amp;(this.tickEnable[r]=o.showticklabels),&quot;tickfont&quot;in o&amp;&amp;(o.tickfont.color&amp;&amp;(this.tickColor[r]=n(o.tickfont.color)),o.tickfont.family&amp;&amp;(this.tickFont[r]=o.tickfont.family),o.tickfont.size&amp;&amp;(this.tickSize[r]=o.tickfont.size)),&quot;mirror&quot;in o?-1!==[&quot;ticks&quot;,&quot;all&quot;,&quot;allticks&quot;].indexOf(o.mirror)?(this.lineTickMirror[r]=!0,this.lineMirror[r]=!0):!0===o.mirror?(this.lineTickMirror[r]=!1,this.lineMirror[r]=!0):(this.lineTickMirror[r]=!1,this.lineMirror[r]=!1):this.lineMirror[r]=!1,&quot;showbackground&quot;in o&amp;&amp;!1!==o.showbackground?(this.backgroundEnable[r]=!0,this.backgroundColor[r]=n(o.backgroundcolor)):this.backgroundEnable[r]=!1):(this.tickEnable[r]=!1,this.labelEnable[r]=!1,this.lineEnable[r]=!1,this.lineTickEnable[r]=!1,this.gridEnable[r]=!1,this.zeroEnable[r]=!1,this.backgroundEnable[r]=!1)}},e.exports=function(t,e){var r=new o;return r.merge(t,e),r}},{&quot;../../../lib&quot;:778,&quot;../../../lib/str2rgbarray&quot;:802}],875:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib&quot;),i=t(&quot;../../../components/color&quot;),a=t(&quot;../../../registry&quot;),o=t(&quot;../../subplot_defaults&quot;),s=t(&quot;./axis_defaults&quot;),l=t(&quot;./layout_attributes&quot;),c=t(&quot;../../get_data&quot;).getSubplotData;function u(t,e,r,n){for(var o=r(&quot;bgcolor&quot;),l=i.combine(o,n.paper_bgcolor),u=[&quot;up&quot;,&quot;center&quot;,&quot;eye&quot;],f=0;f&lt;u.length;f++)r(&quot;camera.&quot;+u[f]+&quot;.x&quot;),r(&quot;camera.&quot;+u[f]+&quot;.y&quot;),r(&quot;camera.&quot;+u[f]+&quot;.z&quot;);r(&quot;camera.projection.type&quot;);var h=!!r(&quot;aspectratio.x&quot;)&amp;&amp;!!r(&quot;aspectratio.y&quot;)&amp;&amp;!!r(&quot;aspectratio.z&quot;),p=r(&quot;aspectmode&quot;,h?&quot;manual&quot;:&quot;auto&quot;);h||(t.aspectratio=e.aspectratio={x:1,y:1,z:1},&quot;manual&quot;===p&amp;&amp;(e.aspectmode=&quot;auto&quot;),t.aspectmode=e.aspectmode);var d=c(n.fullData,&quot;gl3d&quot;,n.id);s(t,e,{font:n.font,scene:n.id,data:d,bgColor:l,calendar:n.calendar,autotypenumbersDflt:n.autotypenumbersDflt,fullLayout:n.fullLayout}),a.getComponentMethod(&quot;annotations3d&quot;,&quot;handleDefaults&quot;)(t,e,n);var g=n.getDfltFromLayout(&quot;dragmode&quot;);if(!1!==g&amp;&amp;!g)if(g=&quot;orbit&quot;,t.camera&amp;&amp;t.camera.up){var m=t.camera.up.x,v=t.camera.up.y,y=t.camera.up.z;0!==y&amp;&amp;(m&amp;&amp;v&amp;&amp;y?y/Math.sqrt(m*m+v*v+y*y)&gt;.999&amp;&amp;(g=&quot;turntable&quot;):g=&quot;turntable&quot;)}else g=&quot;turntable&quot;;r(&quot;dragmode&quot;,g),r(&quot;hovermode&quot;,n.getDfltFromLayout(&quot;hovermode&quot;))}e.exports=function(t,e,r){var i=e._basePlotModules.length&gt;1;o(t,e,r,{type:&quot;gl3d&quot;,attributes:l,handleDefaults:u,fullLayout:e,font:e.font,fullData:r,getDfltFromLayout:function(e){if(!i)return n.validate(t[e],l[e])?t[e]:void 0},autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,calendar:e.calendar})}},{&quot;../../../components/color&quot;:643,&quot;../../../lib&quot;:778,&quot;../../../registry&quot;:911,&quot;../../get_data&quot;:865,&quot;../../subplot_defaults&quot;:905,&quot;./axis_defaults&quot;:873,&quot;./layout_attributes&quot;:876}],876:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./axis_attributes&quot;),i=t(&quot;../../domain&quot;).attributes,a=t(&quot;../../../lib/extend&quot;).extendFlat,o=t(&quot;../../../lib&quot;).counterRegex;function s(t,e,r){return{x:{valType:&quot;number&quot;,dflt:t,editType:&quot;camera&quot;},y:{valType:&quot;number&quot;,dflt:e,editType:&quot;camera&quot;},z:{valType:&quot;number&quot;,dflt:r,editType:&quot;camera&quot;},editType:&quot;camera&quot;}}e.exports={_arrayAttrRegexps:[o(&quot;scene&quot;,&quot;.annotations&quot;,!0)],bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;plot&quot;},camera:{up:a(s(0,0,1),{}),center:a(s(0,0,0),{}),eye:a(s(1.25,1.25,1.25),{}),projection:{type:{valType:&quot;enumerated&quot;,values:[&quot;perspective&quot;,&quot;orthographic&quot;],dflt:&quot;perspective&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;camera&quot;},domain:i({name:&quot;scene&quot;,editType:&quot;plot&quot;}),aspectmode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;cube&quot;,&quot;data&quot;,&quot;manual&quot;],dflt:&quot;auto&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;aspectratio.x&quot;:void 0,&quot;aspectratio.y&quot;:void 0,&quot;aspectratio.z&quot;:void 0}},aspectratio:{x:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},y:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},z:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},editType:&quot;plot&quot;,impliedEdits:{aspectmode:&quot;manual&quot;}},xaxis:n,yaxis:n,zaxis:n,dragmode:{valType:&quot;enumerated&quot;,values:[&quot;orbit&quot;,&quot;turntable&quot;,&quot;zoom&quot;,&quot;pan&quot;,!1],editType:&quot;plot&quot;},hovermode:{valType:&quot;enumerated&quot;,values:[&quot;closest&quot;,!1],dflt:&quot;closest&quot;,editType:&quot;modebar&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;plot&quot;,_deprecated:{cameraposition:{valType:&quot;info_array&quot;,editType:&quot;camera&quot;}}}},{&quot;../../../lib&quot;:778,&quot;../../../lib/extend&quot;:768,&quot;../../domain&quot;:855,&quot;./axis_attributes&quot;:872}],877:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib/str2rgbarray&quot;),i=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function a(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}a.prototype.merge=function(t){for(var e=0;e&lt;3;++e){var r=t[i[e]];r.visible?(this.enabled[e]=r.showspikes,this.colors[e]=n(r.spikecolor),this.drawSides[e]=r.spikesides,this.lineWidth[e]=r.spikethickness):(this.enabled[e]=!1,this.drawSides[e]=!1)}},e.exports=function(t){var e=new a;return e.merge(t),e}},{&quot;../../../lib/str2rgbarray&quot;:802}],878:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.axesOptions,r=t.glplot.axesPixels,s=t.fullSceneLayout,l=[[],[],[]],c=0;c&lt;3;++c){var u=s[a[c]];if(u._length=(r[c].hi-r[c].lo)*r[c].pixelsPerDataUnit/t.dataScale[c],Math.abs(u._length)===1/0||isNaN(u._length))l[c]=[];else{u._input_range=u.range.slice(),u.range[0]=r[c].lo/t.dataScale[c],u.range[1]=r[c].hi/t.dataScale[c],u._m=1/(t.dataScale[c]*r[c].pixelsPerDataUnit),u.range[0]===u.range[1]&amp;&amp;(u.range[0]-=1,u.range[1]+=1);var f=u.tickmode;if(&quot;auto&quot;===u.tickmode){u.tickmode=&quot;linear&quot;;var h=u.nticks||i.constrain(u._length/40,4,9);n.autoTicks(u,Math.abs(u.range[1]-u.range[0])/h)}for(var p=n.calcTicks(u,{msUTC:!0}),d=0;d&lt;p.length;++d)p[d].x=p[d].x*t.dataScale[c],&quot;date&quot;===u.type&amp;&amp;(p[d].text=p[d].text.replace(/\&lt;br\&gt;/g,&quot; &quot;));l[c]=p,u.tickmode=f}}e.ticks=l;for(c=0;c&lt;3;++c){o[c]=.5*(t.glplot.bounds[0][c]+t.glplot.bounds[1][c]);for(d=0;d&lt;2;++d)e.bounds[d][c]=t.glplot.bounds[d][c]}t.contourLevels=function(t){for(var e=new Array(3),r=0;r&lt;3;++r){for(var n=t[r],i=new Array(n.length),a=0;a&lt;n.length;++a)i[a]=n[a].x;e[r]=i}return e}(l)};var n=t(&quot;../../cartesian/axes&quot;),i=t(&quot;../../../lib&quot;),a=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;],o=[0,0,0]},{&quot;../../../lib&quot;:778,&quot;../../cartesian/axes&quot;:828}],879:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r,n,i=[0,0,0,0];for(r=0;r&lt;4;++r)for(n=0;n&lt;4;++n)i[n]+=t[4*r+n]*e[r];return i}e.exports=function(t,e){return n(t.projection,n(t.view,n(t.model,[e[0],e[1],e[2],1])))}},{}],880:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;gl-plot3d&quot;),o=a.createCamera,s=a.createScene,l=t(&quot;webgl-context&quot;),c=t(&quot;has-passive-events&quot;),u=t(&quot;../../registry&quot;),f=t(&quot;../../lib&quot;),h=f.preserveDrawingBuffer(),p=t(&quot;../../plots/cartesian/axes&quot;),d=t(&quot;../../components/fx&quot;),g=t(&quot;../../lib/str2rgbarray&quot;),m=t(&quot;../../lib/show_no_webgl_msg&quot;),v=t(&quot;./project&quot;),y=t(&quot;./layout/convert&quot;),x=t(&quot;./layout/spikes&quot;),b=t(&quot;./layout/tick_marks&quot;);function _(t,e){var r=document.createElement(&quot;div&quot;),n=t.container;this.graphDiv=t.graphDiv;var i=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);i.style.position=&quot;absolute&quot;,i.style.top=i.style.left=&quot;0px&quot;,i.style.width=i.style.height=&quot;100%&quot;,i.style[&quot;z-index&quot;]=20,i.style[&quot;pointer-events&quot;]=&quot;none&quot;,r.appendChild(i),this.svgContainer=i,r.id=t.id,r.style.position=&quot;absolute&quot;,r.style.top=r.style.left=&quot;0px&quot;,r.style.width=r.style.height=&quot;100%&quot;,n.appendChild(r),this.fullLayout=e,this.id=t.id||&quot;scene&quot;,this.fullSceneLayout=e[this.id],this.plotArgs=[[],{},{}],this.axesOptions=y(e,e[this.id]),this.spikeOptions=x(e[this.id]),this.container=r,this.staticMode=!!t.staticPlot,this.pixelRatio=this.pixelRatio||t.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=u.getComponentMethod(&quot;annotations3d&quot;,&quot;convert&quot;),this.drawAnnotations=u.getComponentMethod(&quot;annotations3d&quot;,&quot;draw&quot;),this.initializeGLPlot()}var w=_.prototype;w.prepareOptions=function(){var t={canvas:this.canvas,gl:this.gl,glOptions:{preserveDrawingBuffer:h,premultipliedAlpha:!0,antialias:!0},container:this.container,axes:this.axesOptions,spikes:this.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:this.camera,pixelRatio:this.pixelRatio};if(this.staticMode){if(!(i||(n=document.createElement(&quot;canvas&quot;),i=l({canvas:n,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error(&quot;error creating static canvas/context for image server&quot;);t.gl=i,t.canvas=n}return t};var T=!0;w.tryCreatePlot=function(){var t=this.prepareOptions(),e=!0;try{this.glplot=s(t)}catch(r){if(this.staticMode||!T||h)e=!1;else{f.warn([&quot;webgl setup failed possibly due to&quot;,&quot;false preserveDrawingBuffer config.&quot;,&quot;The mobile/tablet device may not be detected by is-mobile module.&quot;,&quot;Enabling preserveDrawingBuffer in second attempt to create webgl scene...&quot;].join(&quot; &quot;));try{h=t.glOptions.preserveDrawingBuffer=!0,this.glplot=s(t)}catch(r){h=t.glOptions.preserveDrawingBuffer=!1,e=!1}}}return T=!1,e},w.initializeGLCamera=function(){var t=this.fullSceneLayout.camera,e=&quot;orthographic&quot;===t.projection.type;this.camera=o(this.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:e,zoomMin:.01,zoomMax:100,mode:&quot;orbit&quot;})},w.initializeGLPlot=function(){var t=this;if(t.initializeGLCamera(),!t.tryCreatePlot())return m(t);t.traces={},t.make4thDimension();var e=t.graphDiv,r=e.layout,n=function(){var e={};return t.isCameraChanged(r)&amp;&amp;(e[t.id+&quot;.camera&quot;]=t.getCamera()),t.isAspectChanged(r)&amp;&amp;(e[t.id+&quot;.aspectratio&quot;]=t.glplot.getAspectratio(),&quot;manual&quot;!==r[t.id].aspectmode&amp;&amp;(t.fullSceneLayout.aspectmode=r[t.id].aspectmode=e[t.id+&quot;.aspectmode&quot;]=&quot;manual&quot;)),e},i=function(t){if(!1!==t.fullSceneLayout.dragmode){var e=n();t.saveLayout(r),t.graphDiv.emit(&quot;plotly_relayout&quot;,e)}};return t.glplot.canvas&amp;&amp;(t.glplot.canvas.addEventListener(&quot;mouseup&quot;,(function(){i(t)})),t.glplot.canvas.addEventListener(&quot;wheel&quot;,(function(r){if(e._context._scrollZoom.gl3d){if(t.camera._ortho){var n=r.deltaX&gt;r.deltaY?1.1:1/1.1,a=t.glplot.getAspectratio();t.glplot.setAspectratio({x:n*a.x,y:n*a.y,z:n*a.z})}i(t)}}),!!c&amp;&amp;{passive:!1}),t.glplot.canvas.addEventListener(&quot;mousemove&quot;,(function(){if(!1!==t.fullSceneLayout.dragmode&amp;&amp;0!==t.camera.mouseListener.buttons){var e=n();t.graphDiv.emit(&quot;plotly_relayouting&quot;,e)}})),t.staticMode||t.glplot.canvas.addEventListener(&quot;webglcontextlost&quot;,(function(r){e&amp;&amp;e.emit&amp;&amp;e.emit(&quot;plotly_webglcontextlost&quot;,{event:r,layer:t.id})}),!1)),t.glplot.oncontextloss=function(){t.recoverContext()},t.glplot.onrender=function(){t.render()},!0},w.render=function(){var t,e=this,r=e.graphDiv,n=e.svgContainer,i=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var a=r._fullLayout._invScaleX,o=r._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,&quot;viewBox&quot;,&quot;0 0 &quot;+s+&quot; &quot;+l),n.setAttributeNS(null,&quot;width&quot;,s),n.setAttributeNS(null,&quot;height&quot;,l),b(e),e.glplot.axes.update(e.axesOptions);for(var c,u=Object.keys(e.traces),h=null,g=e.glplot.selection,m=0;m&lt;u.length;++m)&quot;skip&quot;!==(t=e.traces[u[m]]).data.hoverinfo&amp;&amp;t.handlePick(g)&amp;&amp;(h=t),t.setContourLevels&amp;&amp;t.setContourLevels();function y(t,r){var n=e.fullSceneLayout[t];return p.tickText(n,n.d2l(r),&quot;hover&quot;).text}if(null!==h){var x=v(e.glplot.cameraParams,g.dataCoordinate);t=h.data;var _,w=r._fullData[t.index],T=g.index,k={xLabel:y(&quot;xaxis&quot;,g.traceCoordinate[0]),yLabel:y(&quot;yaxis&quot;,g.traceCoordinate[1]),zLabel:y(&quot;zaxis&quot;,g.traceCoordinate[2])},M=d.castHoverinfo(w,e.fullLayout,T),A=(M||&quot;&quot;).split(&quot;+&quot;),S=M&amp;&amp;&quot;all&quot;===M;w.hovertemplate||S||(-1===A.indexOf(&quot;x&quot;)&amp;&amp;(k.xLabel=void 0),-1===A.indexOf(&quot;y&quot;)&amp;&amp;(k.yLabel=void 0),-1===A.indexOf(&quot;z&quot;)&amp;&amp;(k.zLabel=void 0),-1===A.indexOf(&quot;text&quot;)&amp;&amp;(g.textLabel=void 0),-1===A.indexOf(&quot;name&quot;)&amp;&amp;(h.name=void 0));var E=[];&quot;cone&quot;===t.type||&quot;streamtube&quot;===t.type?(k.uLabel=y(&quot;xaxis&quot;,g.traceCoordinate[3]),(S||-1!==A.indexOf(&quot;u&quot;))&amp;&amp;E.push(&quot;u: &quot;+k.uLabel),k.vLabel=y(&quot;yaxis&quot;,g.traceCoordinate[4]),(S||-1!==A.indexOf(&quot;v&quot;))&amp;&amp;E.push(&quot;v: &quot;+k.vLabel),k.wLabel=y(&quot;zaxis&quot;,g.traceCoordinate[5]),(S||-1!==A.indexOf(&quot;w&quot;))&amp;&amp;E.push(&quot;w: &quot;+k.wLabel),k.normLabel=g.traceCoordinate[6].toPrecision(3),(S||-1!==A.indexOf(&quot;norm&quot;))&amp;&amp;E.push(&quot;norm: &quot;+k.normLabel),&quot;streamtube&quot;===t.type&amp;&amp;(k.divergenceLabel=g.traceCoordinate[7].toPrecision(3),(S||-1!==A.indexOf(&quot;divergence&quot;))&amp;&amp;E.push(&quot;divergence: &quot;+k.divergenceLabel)),g.textLabel&amp;&amp;E.push(g.textLabel),_=E.join(&quot;&lt;br&gt;&quot;)):&quot;isosurface&quot;===t.type||&quot;volume&quot;===t.type?(k.valueLabel=p.tickText(e._mockAxis,e._mockAxis.d2l(g.traceCoordinate[3]),&quot;hover&quot;).text,E.push(&quot;value: &quot;+k.valueLabel),g.textLabel&amp;&amp;E.push(g.textLabel),_=E.join(&quot;&lt;br&gt;&quot;)):_=g.textLabel;var C={x:g.traceCoordinate[0],y:g.traceCoordinate[1],z:g.traceCoordinate[2],data:w._input,fullData:w,curveNumber:w.index,pointNumber:T};d.appendArrayPointValue(C,w,T),t._module.eventData&amp;&amp;(C=w._module.eventData(C,g,w,{},T));var L={points:[C]};e.fullSceneLayout.hovermode&amp;&amp;d.loneHover({trace:w,x:(.5+.5*x[0]/x[3])*s,y:(.5-.5*x[1]/x[3])*l,xLabel:k.xLabel,yLabel:k.yLabel,zLabel:k.zLabel,text:_,name:h.name,color:d.castHoverOption(w,T,&quot;bgcolor&quot;)||h.color,borderColor:d.castHoverOption(w,T,&quot;bordercolor&quot;),fontFamily:d.castHoverOption(w,T,&quot;font.family&quot;),fontSize:d.castHoverOption(w,T,&quot;font.size&quot;),fontColor:d.castHoverOption(w,T,&quot;font.color&quot;),nameLength:d.castHoverOption(w,T,&quot;namelength&quot;),textAlign:d.castHoverOption(w,T,&quot;align&quot;),hovertemplate:f.castOption(w,T,&quot;hovertemplate&quot;),hovertemplateLabels:f.extendFlat({},C,k),eventData:[C]},{container:n,gd:r}),g.buttons&amp;&amp;g.distance&lt;5?r.emit(&quot;plotly_click&quot;,L):r.emit(&quot;plotly_hover&quot;,L),c=L}else d.loneUnhover(n),r.emit(&quot;plotly_unhover&quot;,c);e.drawAnnotations(e)},w.recoverContext=function(){var t=this;t.glplot.dispose();var e=function(){t.glplot.gl.isContextLost()?requestAnimationFrame(e):t.initializeGLPlot()?t.plot.apply(t,t.plotArgs):f.error(&quot;Catastrophic and unrecoverable WebGL error. Context lost.&quot;)};requestAnimationFrame(e)};var k=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function M(t,e,r){for(var n=t.fullSceneLayout,i=0;i&lt;3;i++){var a=k[i],o=a.charAt(0),s=n[a],l=e[o],c=e[o+&quot;calendar&quot;],u=e[&quot;_&quot;+o+&quot;length&quot;];if(f.isArrayOrTypedArray(l))for(var h,p=0;p&lt;(u||l.length);p++)if(f.isArrayOrTypedArray(l[p]))for(var d=0;d&lt;l[p].length;++d)h=s.d2l(l[p][d],0,c),!isNaN(h)&amp;&amp;isFinite(h)&amp;&amp;(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else h=s.d2l(l[p],0,c),!isNaN(h)&amp;&amp;isFinite(h)&amp;&amp;(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],u-1)}}w.plot=function(t,e,r){if(this.plotArgs=[t,e,r],!this.glplot.contextLost){var n,i,a,o,s,l,c=e[this.id],u=r[this.id];this.fullLayout=e,this.fullSceneLayout=c,this.axesOptions.merge(e,c),this.spikeOptions.merge(c),this.setViewport(c),this.updateFx(c.dragmode,c.hovermode),this.camera.enableWheel=this.graphDiv._context._scrollZoom.gl3d,this.glplot.setClearColor(g(c.bgcolor)),this.setConvert(s),t?Array.isArray(t)||(t=[t]):t=[];var f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(a=0;a&lt;t.length;++a)!0===(n=t[a]).visible&amp;&amp;0!==n._length&amp;&amp;M(this,n,f);!function(t,e){for(var r=t.fullSceneLayout,n=r.annotations||[],i=0;i&lt;3;i++)for(var a=k[i],o=a.charAt(0),s=r[a],l=0;l&lt;n.length;l++){var c=n[l];if(c.visible){var u=s.r2l(c[o]);!isNaN(u)&amp;&amp;isFinite(u)&amp;&amp;(e[0][i]=Math.min(e[0][i],u),e[1][i]=Math.max(e[1][i],u))}}}(this,f);var h=[1,1,1];for(o=0;o&lt;3;++o)f[1][o]===f[0][o]?h[o]=1:h[o]=1/(f[1][o]-f[0][o]);for(this.dataScale=h,this.convertAnnotations(this),a=0;a&lt;t.length;++a)!0===(n=t[a]).visible&amp;&amp;0!==n._length&amp;&amp;((i=this.traces[n.uid])?i.data.type===n.type?i.update(n):(i.dispose(),i=n._module.plot(this,n),this.traces[n.uid]=i):(i=n._module.plot(this,n),this.traces[n.uid]=i),i.name=n.name);var p=Object.keys(this.traces);t:for(a=0;a&lt;p.length;++a){for(o=0;o&lt;t.length;++o)if(t[o].uid===p[a]&amp;&amp;!0===t[o].visible&amp;&amp;0!==t[o]._length)continue t;(i=this.traces[p[a]]).dispose(),delete this.traces[p[a]]}this.glplot.objects.sort((function(t,e){return t._trace.data.index-e._trace.data.index}));var d,m=[[0,0,0],[0,0,0]],v=[],y={};for(a=0;a&lt;3;++a){if((l=(s=c[k[a]]).type)in y?(y[l].acc*=h[a],y[l].count+=1):y[l]={acc:h[a],count:1},s.autorange){m[0][a]=1/0,m[1][a]=-1/0;var x=this.glplot.objects,b=this.fullSceneLayout.annotations||[],_=s._name.charAt(0);for(o=0;o&lt;x.length;o++){var w=x[o],T=w.bounds,A=w._trace.data._pad||0;&quot;ErrorBars&quot;===w.constructor.name&amp;&amp;s._lowerLogErrorBound?m[0][a]=Math.min(m[0][a],s._lowerLogErrorBound):m[0][a]=Math.min(m[0][a],T[0][a]/h[a]-A),m[1][a]=Math.max(m[1][a],T[1][a]/h[a]+A)}for(o=0;o&lt;b.length;o++){var S=b[o];if(S.visible){var E=s.r2l(S[_]);m[0][a]=Math.min(m[0][a],E),m[1][a]=Math.max(m[1][a],E)}}if(&quot;rangemode&quot;in s&amp;&amp;&quot;tozero&quot;===s.rangemode&amp;&amp;(m[0][a]=Math.min(m[0][a],0),m[1][a]=Math.max(m[1][a],0)),m[0][a]&gt;m[1][a])m[0][a]=-1,m[1][a]=1;else{var C=m[1][a]-m[0][a];m[0][a]-=C/32,m[1][a]+=C/32}if(&quot;reversed&quot;===s.autorange){var L=m[0][a];m[0][a]=m[1][a],m[1][a]=L}}else{var I=s.range;m[0][a]=s.r2l(I[0]),m[1][a]=s.r2l(I[1])}m[0][a]===m[1][a]&amp;&amp;(m[0][a]-=1,m[1][a]+=1),v[a]=m[1][a]-m[0][a],this.glplot.setBounds(a,{min:m[0][a]*h[a],max:m[1][a]*h[a]})}var P=c.aspectmode;if(&quot;cube&quot;===P)d=[1,1,1];else if(&quot;manual&quot;===P){var z=c.aspectratio;d=[z.x,z.y,z.z]}else{if(&quot;auto&quot;!==P&amp;&amp;&quot;data&quot;!==P)throw new Error(&quot;scene.js aspectRatio was not one of the enumerated types&quot;);var O=[1,1,1];for(a=0;a&lt;3;++a){var D=y[l=(s=c[k[a]]).type];O[a]=Math.pow(D.acc,1/D.count)/h[a]}d=&quot;data&quot;===P||Math.max.apply(null,O)/Math.min.apply(null,O)&lt;=4?O:[1,1,1]}c.aspectratio.x=u.aspectratio.x=d[0],c.aspectratio.y=u.aspectratio.y=d[1],c.aspectratio.z=u.aspectratio.z=d[2],this.glplot.setAspectratio(c.aspectratio),this.viewInitial.aspectratio||(this.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),this.viewInitial.aspectmode||(this.viewInitial.aspectmode=c.aspectmode);var R=c.domain||null,F=e._size||null;if(R&amp;&amp;F){var B=this.container.style;B.position=&quot;absolute&quot;,B.left=F.l+R.x[0]*F.w+&quot;px&quot;,B.top=F.t+(1-R.y[1])*F.h+&quot;px&quot;,B.width=F.w*(R.x[1]-R.x[0])+&quot;px&quot;,B.height=F.h*(R.y[1]-R.y[0])+&quot;px&quot;}this.glplot.redraw()}},w.destroy=function(){this.glplot&amp;&amp;(this.camera.mouseListener.enabled=!1,this.container.removeEventListener(&quot;wheel&quot;,this.camera.wheelListener),this.camera=null,this.glplot.dispose(),this.container.parentNode.removeChild(this.container),this.glplot=null)},w.getCamera=function(){var t;return this.camera.view.recalcMatrix(this.camera.view.lastT()),{up:{x:(t=this.camera).up[0],y:t.up[1],z:t.up[2]},center:{x:t.center[0],y:t.center[1],z:t.center[2]},eye:{x:t.eye[0],y:t.eye[1],z:t.eye[2]},projection:{type:!0===t._ortho?&quot;orthographic&quot;:&quot;perspective&quot;}}},w.setViewport=function(t){var e,r=t.camera;this.camera.lookAt.apply(this,[[(e=r).eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]),this.glplot.setAspectratio(t.aspectratio),&quot;orthographic&quot;===r.projection.type!==this.camera._ortho&amp;&amp;(this.glplot.redraw(),this.glplot.clearRGBA(),this.glplot.dispose(),this.initializeGLPlot())},w.isCameraChanged=function(t){var e=this.getCamera(),r=f.nestedProperty(t,this.id+&quot;.camera&quot;).get();function n(t,e,r,n){var i=[&quot;up&quot;,&quot;center&quot;,&quot;eye&quot;],a=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];return e[i[r]]&amp;&amp;t[i[r]][a[n]]===e[i[r]][a[n]]}var i=!1;if(void 0===r)i=!0;else{for(var a=0;a&lt;3;a++)for(var o=0;o&lt;3;o++)if(!n(e,r,a,o)){i=!0;break}(!r.projection||e.projection&amp;&amp;e.projection.type!==r.projection.type)&amp;&amp;(i=!0)}return i},w.isAspectChanged=function(t){var e=this.glplot.getAspectratio(),r=f.nestedProperty(t,this.id+&quot;.aspectratio&quot;).get();return void 0===r||r.x!==e.x||r.y!==e.y||r.z!==e.z},w.saveLayout=function(t){var e,r,n,i,a,o,s=this.fullLayout,l=this.isCameraChanged(t),c=this.isAspectChanged(t),h=l||c;if(h){var p={};if(l&amp;&amp;(e=this.getCamera(),n=(r=f.nestedProperty(t,this.id+&quot;.camera&quot;)).get(),p[this.id+&quot;.camera&quot;]=n),c&amp;&amp;(i=this.glplot.getAspectratio(),o=(a=f.nestedProperty(t,this.id+&quot;.aspectratio&quot;)).get(),p[this.id+&quot;.aspectratio&quot;]=o),u.call(&quot;_storeDirectGUIEdit&quot;,t,s._preGUI,p),l)r.set(e),f.nestedProperty(s,this.id+&quot;.camera&quot;).set(e);if(c)a.set(i),f.nestedProperty(s,this.id+&quot;.aspectratio&quot;).set(i),this.glplot.redraw()}return h},w.updateFx=function(t,e){var r=this.camera;if(r)if(&quot;orbit&quot;===t)r.mode=&quot;orbit&quot;,r.keyBindingMode=&quot;rotate&quot;;else if(&quot;turntable&quot;===t){r.up=[0,0,1],r.mode=&quot;turntable&quot;,r.keyBindingMode=&quot;rotate&quot;;var n=this.graphDiv,i=n._fullLayout,a=this.fullSceneLayout.camera,o=a.up.x,s=a.up.y,l=a.up.z;if(l/Math.sqrt(o*o+s*s+l*l)&lt;.999){var c=this.id+&quot;.camera.up&quot;,h={x:0,y:0,z:1},p={};p[c]=h;var d=n.layout;u.call(&quot;_storeDirectGUIEdit&quot;,d,i._preGUI,p),a.up=h,f.nestedProperty(d,c).set(h)}}else r.keyBindingMode=t;this.fullSceneLayout.hovermode=e},w.toImage=function(t){t||(t=&quot;png&quot;),this.staticMode&amp;&amp;this.container.appendChild(n),this.glplot.redraw();var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a),function(t,e,r){for(var n=0,i=r-1;n&lt;i;++n,--i)for(var a=0;a&lt;e;++a)for(var o=0;o&lt;4;++o){var s=4*(e*n+a)+o,l=4*(e*i+a)+o,c=t[s];t[s]=t[l],t[l]=c}}(a,r,i),function(t,e,r){for(var n=0;n&lt;r;++n)for(var i=0;i&lt;e;++i){var a=4*(e*n+i),o=t[a+3];if(o&gt;0)for(var s=255/o,l=0;l&lt;3;++l)t[a+l]=Math.min(s*t[a+l],255)}}(a,r,i);var o=document.createElement(&quot;canvas&quot;);o.width=r,o.height=i;var s,l=o.getContext(&quot;2d&quot;),c=l.createImageData(r,i);switch(c.data.set(a),l.putImageData(c,0,0),t){case&quot;jpeg&quot;:s=o.toDataURL(&quot;image/jpeg&quot;);break;case&quot;webp&quot;:s=o.toDataURL(&quot;image/webp&quot;);break;default:s=o.toDataURL(&quot;image/png&quot;)}return this.staticMode&amp;&amp;this.container.removeChild(n),s},w.setConvert=function(){for(var t=0;t&lt;3;t++){var e=this.fullSceneLayout[k[t]];p.setConvert(e,this.fullLayout),e.setScale=f.noop}},w.make4thDimension=function(){var t=this.graphDiv._fullLayout;this._mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},p.setConvert(this._mockAxis,t)},e.exports=_},{&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/show_no_webgl_msg&quot;:800,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./layout/convert&quot;:874,&quot;./layout/spikes&quot;:877,&quot;./layout/tick_marks&quot;:878,&quot;./project&quot;:879,&quot;gl-plot3d&quot;:321,&quot;has-passive-events&quot;:441,&quot;webgl-context&quot;:606}],881:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){n=n||t.length;for(var i=new Array(n),a=0;a&lt;n;a++)i[a]=[t[a],e[a],r[a]];return i}},{}],882:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./font_attributes&quot;),i=t(&quot;./animation_attributes&quot;),a=t(&quot;../components/color/attributes&quot;),o=t(&quot;../components/shapes/draw_newshape/attributes&quot;),s=t(&quot;./pad_attributes&quot;),l=t(&quot;../lib/extend&quot;).extendFlat,c=n({editType:&quot;calc&quot;});c.family.dflt='&quot;Open Sans&quot;, verdana, arial, sans-serif',c.size.dflt=12,c.color.dflt=a.defaultLine,e.exports={font:c,title:{text:{valType:&quot;string&quot;,editType:&quot;layoutstyle&quot;},font:n({editType:&quot;layoutstyle&quot;}),xref:{valType:&quot;enumerated&quot;,dflt:&quot;container&quot;,values:[&quot;container&quot;,&quot;paper&quot;],editType:&quot;layoutstyle&quot;},yref:{valType:&quot;enumerated&quot;,dflt:&quot;container&quot;,values:[&quot;container&quot;,&quot;paper&quot;],editType:&quot;layoutstyle&quot;},x:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;layoutstyle&quot;},y:{valType:&quot;number&quot;,min:0,max:1,dflt:&quot;auto&quot;,editType:&quot;layoutstyle&quot;},xanchor:{valType:&quot;enumerated&quot;,dflt:&quot;auto&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;layoutstyle&quot;},yanchor:{valType:&quot;enumerated&quot;,dflt:&quot;auto&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;layoutstyle&quot;},pad:l(s({editType:&quot;layoutstyle&quot;}),{}),editType:&quot;layoutstyle&quot;},uniformtext:{mode:{valType:&quot;enumerated&quot;,values:[!1,&quot;hide&quot;,&quot;show&quot;],dflt:!1,editType:&quot;plot&quot;},minsize:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},autosize:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;none&quot;},width:{valType:&quot;number&quot;,min:10,dflt:700,editType:&quot;plot&quot;},height:{valType:&quot;number&quot;,min:10,dflt:450,editType:&quot;plot&quot;},margin:{l:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},r:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},t:{valType:&quot;number&quot;,min:0,dflt:100,editType:&quot;plot&quot;},b:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},pad:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},autoexpand:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},computed:{valType:&quot;any&quot;,editType:&quot;none&quot;},paper_bgcolor:{valType:&quot;color&quot;,dflt:a.background,editType:&quot;plot&quot;},plot_bgcolor:{valType:&quot;color&quot;,dflt:a.background,editType:&quot;layoutstyle&quot;},autotypenumbers:{valType:&quot;enumerated&quot;,values:[&quot;convert types&quot;,&quot;strict&quot;],dflt:&quot;convert types&quot;,editType:&quot;calc&quot;},separators:{valType:&quot;string&quot;,editType:&quot;plot&quot;},hidesources:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},showlegend:{valType:&quot;boolean&quot;,editType:&quot;legend&quot;},colorway:{valType:&quot;colorlist&quot;,dflt:a.defaults,editType:&quot;calc&quot;},datarevision:{valType:&quot;any&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editrevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},selectionrevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},template:{valType:&quot;any&quot;,editType:&quot;calc&quot;},modebar:{orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;,editType:&quot;modebar&quot;},bgcolor:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},color:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},activecolor:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;modebar&quot;},newshape:o.newshape,activeshape:o.activeshape,meta:{valType:&quot;any&quot;,arrayOk:!0,editType:&quot;plot&quot;},transition:l({},i.transition,{editType:&quot;none&quot;}),_deprecated:{title:{valType:&quot;string&quot;,editType:&quot;layoutstyle&quot;},titlefont:n({editType:&quot;layoutstyle&quot;})}}},{&quot;../components/color/attributes&quot;:642,&quot;../components/shapes/draw_newshape/attributes&quot;:725,&quot;../lib/extend&quot;:768,&quot;./animation_attributes&quot;:822,&quot;./font_attributes&quot;:856,&quot;./pad_attributes&quot;:890}],883:[function(t,e,r){&quot;use strict&quot;;var n={&quot;open-street-map&quot;:{id:&quot;osm&quot;,version:8,sources:{&quot;plotly-osm-tiles&quot;:{type:&quot;raster&quot;,attribution:'&lt;a href=&quot;http://www.openstreetmap.org/about/&quot; target=&quot;_blank&quot;&gt;\xa9 OpenStreetMap&lt;/a&gt;',tiles:[&quot;https://a.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;,&quot;https://b.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-osm-tiles&quot;,type:&quot;raster&quot;,source:&quot;plotly-osm-tiles&quot;,minzoom:0,maxzoom:22}]},&quot;white-bg&quot;:{id:&quot;white-bg&quot;,version:8,sources:{},layers:[{id:&quot;white-bg&quot;,type:&quot;background&quot;,paint:{&quot;background-color&quot;:&quot;#FFFFFF&quot;},minzoom:0,maxzoom:22}]},&quot;carto-positron&quot;:{id:&quot;carto-positron&quot;,version:8,sources:{&quot;plotly-carto-positron&quot;:{type:&quot;raster&quot;,attribution:'&lt;a href=&quot;https://carto.com/&quot; target=&quot;_blank&quot;&gt;\xa9 CARTO&lt;/a&gt;',tiles:[&quot;https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-carto-positron&quot;,type:&quot;raster&quot;,source:&quot;plotly-carto-positron&quot;,minzoom:0,maxzoom:22}]},&quot;carto-darkmatter&quot;:{id:&quot;carto-darkmatter&quot;,version:8,sources:{&quot;plotly-carto-darkmatter&quot;:{type:&quot;raster&quot;,attribution:'&lt;a href=&quot;https://carto.com/&quot; target=&quot;_blank&quot;&gt;\xa9 CARTO&lt;/a&gt;',tiles:[&quot;https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-carto-darkmatter&quot;,type:&quot;raster&quot;,source:&quot;plotly-carto-darkmatter&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-terrain&quot;:{id:&quot;stamen-terrain&quot;,version:8,sources:{&quot;plotly-stamen-terrain&quot;:{type:&quot;raster&quot;,attribution:'Map tiles by &lt;a href=&quot;http://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt; | Data by &lt;a href=&quot;http://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt;, under &lt;a href=&quot;http://www.openstreetmap.org/copyright&quot;&gt;ODbL&lt;/a&gt;.',tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-terrain&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-terrain&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-toner&quot;:{id:&quot;stamen-toner&quot;,version:8,sources:{&quot;plotly-stamen-toner&quot;:{type:&quot;raster&quot;,attribution:'Map tiles by &lt;a href=&quot;http://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt; | Data by &lt;a href=&quot;http://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt;, under &lt;a href=&quot;http://www.openstreetmap.org/copyright&quot;&gt;ODbL&lt;/a&gt;.',tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-toner&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-toner&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-watercolor&quot;:{id:&quot;stamen-watercolor&quot;,version:8,sources:{&quot;plotly-stamen-watercolor&quot;:{type:&quot;raster&quot;,attribution:'Map tiles by &lt;a href=&quot;http://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt; | Data by &lt;a href=&quot;http://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by-sa/3.0&quot;&gt;CC BY SA&lt;/a&gt;.',tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-watercolor&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-watercolor&quot;,minzoom:0,maxzoom:22}]}},i=Object.keys(n);e.exports={requiredVersion:&quot;1.10.1&quot;,styleUrlPrefix:&quot;mapbox://styles/mapbox/&quot;,styleUrlSuffix:&quot;v9&quot;,styleValuesMapbox:[&quot;basic&quot;,&quot;streets&quot;,&quot;outdoors&quot;,&quot;light&quot;,&quot;dark&quot;,&quot;satellite&quot;,&quot;satellite-streets&quot;],styleValueDflt:&quot;basic&quot;,stylesNonMapbox:n,styleValuesNonMapbox:i,traceLayerPrefix:&quot;plotly-trace-layer-&quot;,layoutLayerPrefix:&quot;plotly-layout-layer-&quot;,wrongVersionErrorMsg:[&quot;Your custom plotly.js bundle is not using the correct mapbox-gl version&quot;,&quot;Please install mapbox-gl@1.10.1.&quot;].join(&quot;\n&quot;),noAccessTokenErrorMsg:[&quot;Missing Mapbox access token.&quot;,&quot;Mapbox trace type require a Mapbox access token to be registered.&quot;,&quot;For example:&quot;,&quot;  Plotly.plot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });&quot;,&quot;More info here: https://www.mapbox.com/help/define-access-token/&quot;].join(&quot;\n&quot;),missingStyleErrorMsg:[&quot;No valid mapbox style found, please set `mapbox.style` to one of:&quot;,i.join(&quot;, &quot;),&quot;or register a Mapbox access token to use a Mapbox-served style.&quot;].join(&quot;\n&quot;),multipleTokensErrorMsg:[&quot;Set multiple mapbox access token across different mapbox subplot,&quot;,&quot;using first token found as mapbox-gl does not allow multipleaccess tokens on the same page.&quot;].join(&quot;\n&quot;),mapOnErrorMsg:&quot;Mapbox error.&quot;,mapboxLogo:{path0:&quot;m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z&quot;,path1:&quot;M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z&quot;,path2:&quot;M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z&quot;,polygon:&quot;11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34&quot;},styleRules:{map:&quot;overflow:hidden;position:relative;&quot;,&quot;missing-css&quot;:&quot;display:none;&quot;,canary:&quot;background-color:salmon;&quot;,&quot;ctrl-bottom-left&quot;:&quot;position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;&quot;,&quot;ctrl-bottom-right&quot;:&quot;position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;&quot;,ctrl:&quot;clear: both; pointer-events: auto; transform: translate(0, 0);&quot;,&quot;ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner&quot;:&quot;display: none;&quot;,&quot;ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner&quot;:&quot;display: block; margin-top:2px&quot;,&quot;ctrl-attrib.mapboxgl-compact:hover&quot;:&quot;padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;&quot;,&quot;ctrl-attrib.mapboxgl-compact::after&quot;:'content: &quot;&quot;; cursor: pointer; position: absolute; background-image: url(\'data:image/svg+xml;charset=utf-8,%3Csvg viewBox=&quot;0 0 20 20&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;%3E %3Cpath fill=&quot;%23333333&quot; fill-rule=&quot;evenodd&quot; d=&quot;M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0&quot;/%3E %3C/svg%3E\'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;',&quot;ctrl-attrib.mapboxgl-compact&quot;:&quot;min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;&quot;,&quot;ctrl-bottom-right &gt; .mapboxgl-ctrl-attrib.mapboxgl-compact::after&quot;:&quot;bottom: 0; right: 0&quot;,&quot;ctrl-bottom-left &gt; .mapboxgl-ctrl-attrib.mapboxgl-compact::after&quot;:&quot;bottom: 0; left: 0&quot;,&quot;ctrl-bottom-left .mapboxgl-ctrl&quot;:&quot;margin: 0 0 10px 10px; float: left;&quot;,&quot;ctrl-bottom-right .mapboxgl-ctrl&quot;:&quot;margin: 0 10px 10px 0; float: right;&quot;,&quot;ctrl-attrib&quot;:&quot;color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px&quot;,&quot;ctrl-attrib a&quot;:&quot;color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px&quot;,&quot;ctrl-attrib a:hover&quot;:&quot;color: inherit; text-decoration: underline;&quot;,&quot;ctrl-attrib .mapbox-improve-map&quot;:&quot;font-weight: bold; margin-left: 2px;&quot;,&quot;attrib-empty&quot;:&quot;display: none;&quot;,&quot;ctrl-logo&quot;:'display:block; width: 21px; height: 21px; background-image: url(\'data:image/svg+xml;charset=utf-8,%3C?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?%3E %3Csvg version=&quot;1.1&quot; id=&quot;Layer_1&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; x=&quot;0px&quot; y=&quot;0px&quot; viewBox=&quot;0 0 21 21&quot; style=&quot;enable-background:new 0 0 21 21;&quot; xml:space=&quot;preserve&quot;%3E%3Cg transform=&quot;translate(0,0.01)&quot;%3E%3Cpath d=&quot;m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z&quot; style=&quot;opacity:0.9;fill:%23ffffff;enable-background:new&quot; class=&quot;st0&quot;/%3E%3Cpath d=&quot;M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z&quot; style=&quot;opacity:0.35;enable-background:new&quot; class=&quot;st1&quot;/%3E%3Cpath d=&quot;M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z&quot; style=&quot;opacity:0.35;enable-background:new&quot; class=&quot;st1&quot;/%3E%3Cpolygon points=&quot;11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 &quot; style=&quot;opacity:0.9;fill:%23ffffff;enable-background:new&quot; class=&quot;st0&quot;/%3E%3C/g%3E%3C/svg%3E\')'}}},{}],884:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=t.split(&quot; &quot;),i=r[0],a=r[1],o=n.isArrayOrTypedArray(e)?n.mean(e):e,s=.5+o/100,l=1.5+o/100,c=[&quot;&quot;,&quot;&quot;],u=[0,0];switch(i){case&quot;top&quot;:c[0]=&quot;top&quot;,u[1]=-l;break;case&quot;bottom&quot;:c[0]=&quot;bottom&quot;,u[1]=l}switch(a){case&quot;left&quot;:c[1]=&quot;right&quot;,u[0]=-s;break;case&quot;right&quot;:c[1]=&quot;left&quot;,u[0]=s}return{anchor:c[0]&amp;&amp;c[1]?c.join(&quot;-&quot;):c[0]?c[0]:c[1]?c[1]:&quot;center&quot;,offset:u}}},{&quot;../../lib&quot;:778}],885:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mapbox-gl&quot;),i=t(&quot;../../lib&quot;),a=i.strTranslate,o=i.strScale,s=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,l=t(&quot;../../constants/xmlns_namespaces&quot;),c=t(&quot;d3&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;./mapbox&quot;),p=r.constants=t(&quot;./constants&quot;);function d(t){return&quot;string&quot;==typeof t&amp;&amp;(-1!==p.styleValuesMapbox.indexOf(t)||0===t.indexOf(&quot;mapbox://&quot;))}r.name=&quot;mapbox&quot;,r.attr=&quot;subplot&quot;,r.idRoot=&quot;mapbox&quot;,r.idRegex=r.attrRegex=i.counterRegex(&quot;mapbox&quot;),r.attributes={subplot:{valType:&quot;subplotid&quot;,dflt:&quot;mapbox&quot;,editType:&quot;calc&quot;}},r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.plot=function(t){var e=t._fullLayout,r=t.calcdata,a=e._subplots.mapbox;if(n.version!==p.requiredVersion)throw new Error(p.wrongVersionErrorMsg);var o=function(t,e){var r=t._fullLayout;if(&quot;&quot;===t._context.mapboxAccessToken)return&quot;&quot;;for(var n=[],a=[],o=!1,s=!1,l=0;l&lt;e.length;l++){var c=r[e[l]],u=c.accesstoken;d(c.style)&amp;&amp;(u?i.pushUnique(n,u):(d(c._input.style)&amp;&amp;(i.error(&quot;Uses Mapbox map style, but did not set an access token.&quot;),o=!0),s=!0)),u&amp;&amp;i.pushUnique(a,u)}if(s){var f=o?p.noAccessTokenErrorMsg:p.missingStyleErrorMsg;throw i.error(f),new Error(f)}return n.length?(n.length&gt;1&amp;&amp;i.warn(p.multipleTokensErrorMsg),n[0]):(a.length&amp;&amp;i.log([&quot;Listed mapbox access token(s)&quot;,a.join(&quot;,&quot;),&quot;but did not use a Mapbox map style, ignoring token(s).&quot;].join(&quot; &quot;)),&quot;&quot;)}(t,a);n.accessToken=o;for(var l=0;l&lt;a.length;l++){var c=a[l],u=s(r,&quot;mapbox&quot;,c),f=e[c],g=f._subplot;g||(g=new h(t,c),e[c]._subplot=g),g.viewInitial||(g.viewInitial={center:i.extendFlat({},f.center),zoom:f.zoom,bearing:f.bearing,pitch:f.pitch}),g.plot(u,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.mapbox||[],a=0;a&lt;i.length;a++){var o=i[a];!e[o]&amp;&amp;n[o]._subplot&amp;&amp;n[o]._subplot.destroy()}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=e._size,i=0;i&lt;r.length;i++){var s=e[r[i]],h=s.domain,d=s._subplot.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:l.svg,&quot;xlink:href&quot;:d,x:n.l+n.w*h.x[0],y:n.t+n.h*(1-h.y[1]),width:n.w*(h.x[1]-h.x[0]),height:n.h*(h.y[1]-h.y[0]),preserveAspectRatio:&quot;none&quot;});var g=c.select(s._subplot.div);if(!(null===g.select(&quot;.mapboxgl-ctrl-logo&quot;).node().offsetParent)){var m=e._glimages.append(&quot;g&quot;);m.attr(&quot;transform&quot;,a(n.l+n.w*h.x[0]+10,n.t+n.h*(1-h.y[0])-31)),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path0).style({opacity:.9,fill:&quot;#ffffff&quot;,&quot;enable-background&quot;:&quot;new&quot;}),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path1).style(&quot;opacity&quot;,.35).style(&quot;enable-background&quot;,&quot;new&quot;),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path2).style(&quot;opacity&quot;,.35).style(&quot;enable-background&quot;,&quot;new&quot;),m.append(&quot;polygon&quot;).attr(&quot;points&quot;,p.mapboxLogo.polygon).style({opacity:.9,fill:&quot;#ffffff&quot;,&quot;enable-background&quot;:&quot;new&quot;})}var v=g.select(&quot;.mapboxgl-ctrl-attrib&quot;).text().replace(&quot;Improve this map&quot;,&quot;&quot;),y=e._glimages.append(&quot;g&quot;),x=y.append(&quot;text&quot;);x.text(v).classed(&quot;static-attribution&quot;,!0).attr({&quot;font-size&quot;:12,&quot;font-family&quot;:&quot;Arial&quot;,color:&quot;rgba(0, 0, 0, 0.75)&quot;,&quot;text-anchor&quot;:&quot;end&quot;,&quot;data-unformatted&quot;:v});var b=u.bBox(x.node()),_=n.w*(h.x[1]-h.x[0]);if(b.width&gt;_/2){var w=v.split(&quot;|&quot;).join(&quot;&lt;br&gt;&quot;);x.text(w).attr(&quot;data-unformatted&quot;,w).call(f.convertToTspans,t),b=u.bBox(x.node())}x.attr(&quot;transform&quot;,a(-3,8-b.height)),y.insert(&quot;rect&quot;,&quot;.static-attribution&quot;).attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:&quot;rgba(255, 255, 255, 0.75)&quot;});var T=1;b.width+6&gt;_&amp;&amp;(T=_/(b.width+6));var k=[n.l+n.w*h.x[1],n.t+n.h*(1-h.y[0])];y.attr(&quot;transform&quot;,a(k[0],k[1])+o(T))}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=0;n&lt;r.length;n++){e[r[n]]._subplot.updateFx(e)}}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/get_data&quot;:865,&quot;./constants&quot;:883,&quot;./layout_attributes&quot;:887,&quot;./layout_defaults&quot;:888,&quot;./mapbox&quot;:889,d3:169,&quot;mapbox-gl&quot;:473}],886:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/svg_text_utils&quot;).sanitizeHTML,a=t(&quot;./convert_text_opts&quot;),o=t(&quot;./constants&quot;);function s(t,e){this.subplot=t,this.uid=t.uid+&quot;-&quot;+e,this.index=e,this.idSource=&quot;source-&quot;+this.uid,this.idLayer=o.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var l=s.prototype;function c(t){if(!t.visible)return!1;var e=t.source;if(Array.isArray(e)&amp;&amp;e.length&gt;0){for(var r=0;r&lt;e.length;r++)if(&quot;string&quot;!=typeof e[r]||0===e[r].length)return!1;return!0}return n.isPlainObject(e)||&quot;string&quot;==typeof e&amp;&amp;e.length&gt;0}function u(t){var e={},r={};switch(t.type){case&quot;circle&quot;:n.extendFlat(r,{&quot;circle-radius&quot;:t.circle.radius,&quot;circle-color&quot;:t.color,&quot;circle-opacity&quot;:t.opacity});break;case&quot;line&quot;:n.extendFlat(r,{&quot;line-width&quot;:t.line.width,&quot;line-color&quot;:t.color,&quot;line-opacity&quot;:t.opacity,&quot;line-dasharray&quot;:t.line.dash});break;case&quot;fill&quot;:n.extendFlat(r,{&quot;fill-color&quot;:t.color,&quot;fill-outline-color&quot;:t.fill.outlinecolor,&quot;fill-opacity&quot;:t.opacity});break;case&quot;symbol&quot;:var i=t.symbol,o=a(i.textposition,i.iconsize);n.extendFlat(e,{&quot;icon-image&quot;:i.icon+&quot;-15&quot;,&quot;icon-size&quot;:i.iconsize/10,&quot;text-field&quot;:i.text,&quot;text-size&quot;:i.textfont.size,&quot;text-anchor&quot;:o.anchor,&quot;text-offset&quot;:o.offset,&quot;symbol-placement&quot;:i.placement}),n.extendFlat(r,{&quot;icon-color&quot;:t.color,&quot;text-color&quot;:i.textfont.color,&quot;text-opacity&quot;:t.opacity});break;case&quot;raster&quot;:n.extendFlat(r,{&quot;raster-fade-duration&quot;:0,&quot;raster-opacity&quot;:t.opacity})}return{layout:e,paint:r}}l.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=c(t)},l.needsNewImage=function(t){return this.subplot.map.getSource(this.idSource)&amp;&amp;&quot;image&quot;===this.sourceType&amp;&amp;&quot;image&quot;===t.sourcetype&amp;&amp;(this.source!==t.source||JSON.stringify(this.coordinates)!==JSON.stringify(t.coordinates))},l.needsNewSource=function(t){return this.sourceType!==t.sourcetype||JSON.stringify(this.source)!==JSON.stringify(t.source)||this.layerType!==t.type},l.needsNewLayer=function(t){return this.layerType!==t.type||this.below!==this.subplot.belowLookup[&quot;layout-&quot;+this.index]},l.lookupBelow=function(){return this.subplot.belowLookup[&quot;layout-&quot;+this.index]},l.updateImage=function(t){this.subplot.map.getSource(this.idSource).updateImage({url:t.source,coordinates:t.coordinates});var e=this.findFollowingMapboxLayerId(this.lookupBelow());null!==e&amp;&amp;this.subplot.map.moveLayer(this.idLayer,e)},l.updateSource=function(t){var e=this.subplot.map;if(e.getSource(this.idSource)&amp;&amp;e.removeSource(this.idSource),this.sourceType=t.sourcetype,this.source=t.source,c(t)){var r=function(t){var e,r=t.sourcetype,n=t.source,a={type:r};&quot;geojson&quot;===r?e=&quot;data&quot;:&quot;vector&quot;===r?e=&quot;string&quot;==typeof n?&quot;url&quot;:&quot;tiles&quot;:&quot;raster&quot;===r?(e=&quot;tiles&quot;,a.tileSize=256):&quot;image&quot;===r&amp;&amp;(e=&quot;url&quot;,a.coordinates=t.coordinates);a[e]=n,t.sourceattribution&amp;&amp;(a.attribution=i(t.sourceattribution));return a}(t);e.addSource(this.idSource,r)}},l.findFollowingMapboxLayerId=function(t){if(&quot;traces&quot;===t)for(var e=this.subplot.getMapLayers(),r=0;r&lt;e.length;r++){var n=e[r].id;if(&quot;string&quot;==typeof n&amp;&amp;0===n.indexOf(o.traceLayerPrefix)){t=n;break}}return t},l.updateLayer=function(t){var e=this.subplot,r=u(t),n=this.lookupBelow(),i=this.findFollowingMapboxLayerId(n);this.removeLayer(),c(t)&amp;&amp;e.addLayer({id:this.idLayer,source:this.idSource,&quot;source-layer&quot;:t.sourcelayer||&quot;&quot;,type:t.type,minzoom:t.minzoom,maxzoom:t.maxzoom,layout:r.layout,paint:r.paint},i),this.layerType=t.type,this.below=n},l.updateStyle=function(t){if(c(t)){var e=u(t);this.subplot.setOptions(this.idLayer,&quot;setLayoutProperty&quot;,e.layout),this.subplot.setOptions(this.idLayer,&quot;setPaintProperty&quot;,e.paint)}},l.removeLayer=function(){var t=this.subplot.map;t.getLayer(this.idLayer)&amp;&amp;t.removeLayer(this.idLayer)},l.dispose=function(){var t=this.subplot.map;t.getLayer(this.idLayer)&amp;&amp;t.removeLayer(this.idLayer),t.getSource(this.idSource)&amp;&amp;t.removeSource(this.idSource)},e.exports=function(t,e,r){var n=new s(t,e);return n.update(r),n}},{&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;./constants&quot;:883,&quot;./convert_text_opts&quot;:884}],887:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;).defaultLine,a=t(&quot;../domain&quot;).attributes,o=t(&quot;../font_attributes&quot;),s=t(&quot;../../traces/scatter/attributes&quot;).textposition,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll,c=t(&quot;../../plot_api/plot_template&quot;).templatedArray,u=t(&quot;./constants&quot;),f=o({});f.family.dflt=&quot;Open Sans Regular, Arial Unicode MS Regular&quot;,(e.exports=l({_arrayAttrRegexps:[n.counterRegex(&quot;mapbox&quot;,&quot;.layers&quot;,!0)],domain:a({name:&quot;mapbox&quot;}),accesstoken:{valType:&quot;string&quot;,noBlank:!0,strict:!0},style:{valType:&quot;any&quot;,values:u.styleValuesMapbox.concat(u.styleValuesNonMapbox),dflt:u.styleValueDflt},center:{lon:{valType:&quot;number&quot;,dflt:0},lat:{valType:&quot;number&quot;,dflt:0}},zoom:{valType:&quot;number&quot;,dflt:1},bearing:{valType:&quot;number&quot;,dflt:0},pitch:{valType:&quot;number&quot;,dflt:0},layers:c(&quot;layer&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},sourcetype:{valType:&quot;enumerated&quot;,values:[&quot;geojson&quot;,&quot;vector&quot;,&quot;raster&quot;,&quot;image&quot;],dflt:&quot;geojson&quot;},source:{valType:&quot;any&quot;},sourcelayer:{valType:&quot;string&quot;,dflt:&quot;&quot;},sourceattribution:{valType:&quot;string&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;circle&quot;,&quot;line&quot;,&quot;fill&quot;,&quot;symbol&quot;,&quot;raster&quot;],dflt:&quot;circle&quot;},coordinates:{valType:&quot;any&quot;},below:{valType:&quot;string&quot;},color:{valType:&quot;color&quot;,dflt:i},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},minzoom:{valType:&quot;number&quot;,min:0,max:24,dflt:0},maxzoom:{valType:&quot;number&quot;,min:0,max:24,dflt:24},circle:{radius:{valType:&quot;number&quot;,dflt:15}},line:{width:{valType:&quot;number&quot;,dflt:2},dash:{valType:&quot;data_array&quot;}},fill:{outlinecolor:{valType:&quot;color&quot;,dflt:i}},symbol:{icon:{valType:&quot;string&quot;,dflt:&quot;marker&quot;},iconsize:{valType:&quot;number&quot;,dflt:10},text:{valType:&quot;string&quot;,dflt:&quot;&quot;},placement:{valType:&quot;enumerated&quot;,values:[&quot;point&quot;,&quot;line&quot;,&quot;line-center&quot;],dflt:&quot;point&quot;},textfont:f,textposition:n.extendFlat({},s,{arrayOk:!1})}})},&quot;plot&quot;,&quot;from-root&quot;)).uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../traces/scatter/attributes&quot;:1187,&quot;../domain&quot;:855,&quot;../font_attributes&quot;:856,&quot;./constants&quot;:883}],888:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../subplot_defaults&quot;),a=t(&quot;../array_container_defaults&quot;),o=t(&quot;./layout_attributes&quot;);function s(t,e,r,n){r(&quot;accesstoken&quot;,n.accessToken),r(&quot;style&quot;),r(&quot;center.lon&quot;),r(&quot;center.lat&quot;),r(&quot;zoom&quot;),r(&quot;bearing&quot;),r(&quot;pitch&quot;),a(t,e,{name:&quot;layers&quot;,handleItemDefaults:l}),e._input=t}function l(t,e){function r(r,i){return n.coerce(t,e,o.layers,r,i)}if(r(&quot;visible&quot;)){var i,a=r(&quot;sourcetype&quot;),s=&quot;raster&quot;===a||&quot;image&quot;===a;r(&quot;source&quot;),r(&quot;sourceattribution&quot;),&quot;vector&quot;===a&amp;&amp;r(&quot;sourcelayer&quot;),&quot;image&quot;===a&amp;&amp;r(&quot;coordinates&quot;),s&amp;&amp;(i=&quot;raster&quot;);var l=r(&quot;type&quot;,i);s&amp;&amp;&quot;raster&quot;!==l&amp;&amp;(l=e.type=&quot;raster&quot;,n.log(&quot;Source types *raster* and *image* must drawn *raster* layer type.&quot;)),r(&quot;below&quot;),r(&quot;color&quot;),r(&quot;opacity&quot;),r(&quot;minzoom&quot;),r(&quot;maxzoom&quot;),&quot;circle&quot;===l&amp;&amp;r(&quot;circle.radius&quot;),&quot;line&quot;===l&amp;&amp;(r(&quot;line.width&quot;),r(&quot;line.dash&quot;)),&quot;fill&quot;===l&amp;&amp;r(&quot;fill.outlinecolor&quot;),&quot;symbol&quot;===l&amp;&amp;(r(&quot;symbol.icon&quot;),r(&quot;symbol.iconsize&quot;),r(&quot;symbol.text&quot;),n.coerceFont(r,&quot;symbol.textfont&quot;),r(&quot;symbol.textposition&quot;),r(&quot;symbol.placement&quot;))}}e.exports=function(t,e,r){i(t,e,r,{type:&quot;mapbox&quot;,attributes:o,handleDefaults:s,partition:&quot;y&quot;,accessToken:e._mapboxAccessToken})}},{&quot;../../lib&quot;:778,&quot;../array_container_defaults&quot;:823,&quot;../subplot_defaults&quot;:905,&quot;./layout_attributes&quot;:887}],889:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mapbox-gl&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/geo_location_utils&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../cartesian/axes&quot;),l=t(&quot;../../components/dragelement&quot;),c=t(&quot;../../components/fx&quot;),u=t(&quot;../../components/dragelement/helpers&quot;),f=u.rectMode,h=u.drawMode,p=u.selectMode,d=t(&quot;../cartesian/select&quot;).prepSelect,g=t(&quot;../cartesian/select&quot;).clearSelect,m=t(&quot;../cartesian/select&quot;).clearSelectionsCache,v=t(&quot;../cartesian/select&quot;).selectOnClick,y=t(&quot;./constants&quot;),x=t(&quot;./layers&quot;);function b(t,e){this.id=e,this.gd=t;var r=t._fullLayout,n=t._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+&quot;-&quot;+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var _=b.prototype;_.plot=function(t,e,r){var n,i=this,a=e[i.id];i.map&amp;&amp;a.accesstoken!==i.accessToken&amp;&amp;(i.map.remove(),i.map=null,i.styleObj=null,i.traceHash={},i.layerList=[]),n=i.map?new Promise((function(r,n){i.updateMap(t,e,r,n)})):new Promise((function(r,n){i.createMap(t,e,r,n)})),r.push(n)},_.createMap=function(t,e,r,i){var o=this,s=e[o.id],l=o.styleObj=T(s.style);o.accessToken=s.accesstoken;var c=o.map=new n.Map({container:o.div,style:l.style,center:M(s.center),zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,interactive:!o.isStatic,preserveDrawingBuffer:o.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new n.AttributionControl({compact:!0}));c._canvas.style.left=&quot;0px&quot;,c._canvas.style.top=&quot;0px&quot;,o.rejectOnError(i),o.isStatic||o.initFx(t,e);var u=[];u.push(new Promise((function(t){c.once(&quot;load&quot;,t)}))),u=u.concat(a.fetchTraceGeoData(t)),Promise.all(u).then((function(){o.fillBelowLookup(t,e),o.updateData(t),o.updateLayout(e),o.resolveOnRender(r)})).catch(i)},_.updateMap=function(t,e,r,n){var i=this,o=i.map,s=e[this.id];i.rejectOnError(n);var l=[],c=T(s.style);JSON.stringify(i.styleObj)!==JSON.stringify(c)&amp;&amp;(i.styleObj=c,o.setStyle(c.style),i.traceHash={},l.push(new Promise((function(t){o.once(&quot;styledata&quot;,t)})))),l=l.concat(a.fetchTraceGeoData(t)),Promise.all(l).then((function(){i.fillBelowLookup(t,e),i.updateData(t),i.updateLayout(e),i.resolveOnRender(r)})).catch(n)},_.fillBelowLookup=function(t,e){var r,n,i=e[this.id].layers,a=this.belowLookup={},o=!1;for(r=0;r&lt;t.length;r++){var s=t[r][0].trace,l=s._module;&quot;string&quot;==typeof s.below?n=s.below:l.getBelow&amp;&amp;(n=l.getBelow(s,this)),&quot;&quot;===n&amp;&amp;(o=!0),a[&quot;trace-&quot;+s.uid]=n||&quot;&quot;}for(r=0;r&lt;i.length;r++){var c=i[r];n=&quot;string&quot;==typeof c.below?c.below:o?&quot;traces&quot;:&quot;&quot;,a[&quot;layout-&quot;+r]=n}var u,f,h={};for(u in a)h[n=a[u]]?h[n].push(u):h[n]=[u];for(n in h){var p=h[n];if(p.length&gt;1)for(r=0;r&lt;p.length;r++)0===(u=p[r]).indexOf(&quot;trace-&quot;)?(f=u.split(&quot;trace-&quot;)[1],this.traceHash[f]&amp;&amp;(this.traceHash[f].below=null)):0===u.indexOf(&quot;layout-&quot;)&amp;&amp;(f=u.split(&quot;layout-&quot;)[1],this.layerList[f]&amp;&amp;(this.layerList[f].below=null))}};var w={choroplethmapbox:0,densitymapbox:1,scattermapbox:2};function T(t){var e={};return i.isPlainObject(t)?(e.id=t.id,e.style=t):&quot;string&quot;==typeof t?(e.id=t,-1!==y.styleValuesMapbox.indexOf(t)?e.style=k(t):y.stylesNonMapbox[t]?e.style=y.stylesNonMapbox[t]:e.style=t):(e.id=y.styleValueDflt,e.style=k(y.styleValueDflt)),e.transition={duration:0,delay:0},e}function k(t){return y.styleUrlPrefix+t+&quot;-&quot;+y.styleUrlSuffix}function M(t){return[t.lon,t.lat]}_.updateData=function(t){var e,r,n,i,a=this.traceHash,o=t.slice().sort((function(t,e){return w[t[0].trace.type]-w[e[0].trace.type]}));for(n=0;n&lt;o.length;n++){var s=o[n],l=!1;(e=a[(r=s[0].trace).uid])&amp;&amp;(e.type===r.type?(e.update(s),l=!0):e.dispose()),!l&amp;&amp;r._module&amp;&amp;(a[r.uid]=r._module.plot(this,s))}var c=Object.keys(a);t:for(n=0;n&lt;c.length;n++){var u=c[n];for(i=0;i&lt;t.length;i++)if(u===(r=t[i][0].trace).uid)continue t;(e=a[u]).dispose(),delete a[u]}},_.updateLayout=function(t){var e=this.map,r=t[this.id];this.dragging||this.wheeling||(e.setCenter(M(r.center)),e.setZoom(r.zoom),e.setBearing(r.bearing),e.setPitch(r.pitch)),this.updateLayers(t),this.updateFramework(t),this.updateFx(t),this.map.resize(),this.gd._context._scrollZoom.mapbox?e.scrollZoom.enable():e.scrollZoom.disable()},_.resolveOnRender=function(t){var e=this.map;e.on(&quot;render&quot;,(function r(){e.loaded()&amp;&amp;(e.off(&quot;render&quot;,r),setTimeout(t,10))}))},_.rejectOnError=function(t){var e=this.map;function r(){t(new Error(y.mapOnErrorMsg))}e.once(&quot;error&quot;,r),e.once(&quot;style.error&quot;,r),e.once(&quot;source.error&quot;,r),e.once(&quot;tile.error&quot;,r),e.once(&quot;layer.error&quot;,r)},_.createFramework=function(t){var e=this,r=e.div=document.createElement(&quot;div&quot;);r.id=e.uid,r.style.position=&quot;absolute&quot;,e.container.appendChild(r),e.xaxis={_id:&quot;x&quot;,c2p:function(t){return e.project(t).x}},e.yaxis={_id:&quot;y&quot;,c2p:function(t){return e.project(t).y}},e.updateFramework(t),e.mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},s.setConvert(e.mockAxis,t)},_.initFx=function(t,e){var r=this,n=r.gd,i=r.map;function a(){c.loneUnhover(e._hoverlayer)}function s(){var t=r.getView();n.emit(&quot;plotly_relayouting&quot;,r.getViewEditsWithDerived(t))}i.on(&quot;moveend&quot;,(function(t){if(r.map){var e=n._fullLayout;if(t.originalEvent||r.wheeling){var i=e[r.id];o.call(&quot;_storeDirectGUIEdit&quot;,n.layout,e._preGUI,r.getViewEdits(i));var a=r.getView();i._input.center=i.center=a.center,i._input.zoom=i.zoom=a.zoom,i._input.bearing=i.bearing=a.bearing,i._input.pitch=i.pitch=a.pitch,n.emit(&quot;plotly_relayout&quot;,r.getViewEditsWithDerived(a))}t.originalEvent&amp;&amp;&quot;mouseup&quot;===t.originalEvent.type?r.dragging=!1:r.wheeling&amp;&amp;(r.wheeling=!1),e._rehover&amp;&amp;e._rehover()}})),i.on(&quot;wheel&quot;,(function(){r.wheeling=!0})),i.on(&quot;mousemove&quot;,(function(t){var e=r.div.getBoundingClientRect(),a=[t.originalEvent.offsetX,t.originalEvent.offsetY];t.target.getBoundingClientRect=function(){return e},r.xaxis.p2c=function(){return i.unproject(a).lng},r.yaxis.p2c=function(){return i.unproject(a).lat},n._fullLayout._rehover=function(){n._fullLayout._hoversubplot===r.id&amp;&amp;n._fullLayout[r.id]&amp;&amp;c.hover(n,t,r.id)},c.hover(n,t,r.id),n._fullLayout._hoversubplot=r.id})),i.on(&quot;dragstart&quot;,(function(){r.dragging=!0,a()})),i.on(&quot;zoomstart&quot;,a),i.on(&quot;mouseout&quot;,(function(){n._fullLayout._hoversubplot=null})),i.on(&quot;drag&quot;,s),i.on(&quot;zoom&quot;,s),i.on(&quot;dblclick&quot;,(function(){var t=n._fullLayout[r.id];o.call(&quot;_storeDirectGUIEdit&quot;,n.layout,n._fullLayout._preGUI,r.getViewEdits(t));var e=r.viewInitial;i.setCenter(M(e.center)),i.setZoom(e.zoom),i.setBearing(e.bearing),i.setPitch(e.pitch);var a=r.getView();t._input.center=t.center=a.center,t._input.zoom=t.zoom=a.zoom,t._input.bearing=t.bearing=a.bearing,t._input.pitch=t.pitch=a.pitch,n.emit(&quot;plotly_doubleclick&quot;,null),n.emit(&quot;plotly_relayout&quot;,r.getViewEditsWithDerived(a))})),r.clearSelect=function(){m(r.dragOptions),g(r.dragOptions.gd)},r.onClickInPanFn=function(t){return function(e){var i=n._fullLayout.clickmode;i.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;v(e.originalEvent,n,[r.xaxis],[r.yaxis],r.id,t),i.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;c.click(n,e.originalEvent)}}},_.updateFx=function(t){var e=this,r=e.map,n=e.gd;if(!e.isStatic){var a,o=t.dragmode;a=f(o)?function(t,r){(t.range={})[e.id]=[c([r.xmin,r.ymin]),c([r.xmax,r.ymax])]}:function(t,r,n){(t.lassoPoints={})[e.id]=n.filtered.map(c)};var s=e.dragOptions;e.dragOptions=i.extendDeep(s||{},{dragmode:t.dragmode,element:e.div,gd:n,plotinfo:{id:e.id,domain:t[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis,fillRangeItems:a},xaxes:[e.xaxis],yaxes:[e.yaxis],subplot:e.id}),r.off(&quot;click&quot;,e.onClickInPanHandler),p(o)||h(o)?(r.dragPan.disable(),r.on(&quot;zoomstart&quot;,e.clearSelect),e.dragOptions.prepFn=function(t,r,n){d(t,r,n,e.dragOptions,o)},l.init(e.dragOptions)):(r.dragPan.enable(),r.off(&quot;zoomstart&quot;,e.clearSelect),e.div.onmousedown=null,e.onClickInPanHandler=e.onClickInPanFn(e.dragOptions),r.on(&quot;click&quot;,e.onClickInPanHandler))}function c(t){var r=e.map.unproject(t);return[r.lng,r.lat]}},_.updateFramework=function(t){var e=t[this.id].domain,r=t._size,n=this.div.style;n.width=r.w*(e.x[1]-e.x[0])+&quot;px&quot;,n.height=r.h*(e.y[1]-e.y[0])+&quot;px&quot;,n.left=r.l+e.x[0]*r.w+&quot;px&quot;,n.top=r.t+(1-e.y[1])*r.h+&quot;px&quot;,this.xaxis._offset=r.l+e.x[0]*r.w,this.xaxis._length=r.w*(e.x[1]-e.x[0]),this.yaxis._offset=r.t+(1-e.y[1])*r.h,this.yaxis._length=r.h*(e.y[1]-e.y[0])},_.updateLayers=function(t){var e,r=t[this.id].layers,n=this.layerList;if(r.length!==n.length){for(e=0;e&lt;n.length;e++)n[e].dispose();for(n=this.layerList=[],e=0;e&lt;r.length;e++)n.push(x(this,e,r[e]))}else for(e=0;e&lt;r.length;e++)n[e].update(r[e])},_.destroy=function(){this.map&amp;&amp;(this.map.remove(),this.map=null,this.container.removeChild(this.div))},_.toImage=function(){return this.map.stop(),this.map.getCanvas().toDataURL()},_.setOptions=function(t,e,r){for(var n in r)this.map[e](t,n,r[n])},_.getMapLayers=function(){return this.map.getStyle().layers},_.addLayer=function(t,e){var r=this.map;if(&quot;string&quot;==typeof e){if(&quot;&quot;===e)return void r.addLayer(t,e);for(var n=this.getMapLayers(),a=0;a&lt;n.length;a++)if(e===n[a].id)return void r.addLayer(t,e);i.warn([&quot;Trying to add layer with *below* value&quot;,e,&quot;referencing a layer that does not exist&quot;,&quot;or that does not yet exist.&quot;].join(&quot; &quot;))}r.addLayer(t)},_.project=function(t){return this.map.project(new n.LngLat(t[0],t[1]))},_.getView=function(){var t=this.map,e=t.getCenter(),r={lon:e.lng,lat:e.lat},n=t.getCanvas(),i=n.width,a=n.height;return{center:r,zoom:t.getZoom(),bearing:t.getBearing(),pitch:t.getPitch(),_derived:{coordinates:[t.unproject([0,0]).toArray(),t.unproject([i,0]).toArray(),t.unproject([i,a]).toArray(),t.unproject([0,a]).toArray()]}}},_.getViewEdits=function(t){for(var e=this.id,r=[&quot;center&quot;,&quot;zoom&quot;,&quot;bearing&quot;,&quot;pitch&quot;],n={},i=0;i&lt;r.length;i++){var a=r[i];n[e+&quot;.&quot;+a]=t[a]}return n},_.getViewEditsWithDerived=function(t){var e=this.id,r=this.getViewEdits(t);return r[e+&quot;._derived&quot;]=t._derived,r},e.exports=b},{&quot;../../components/dragelement&quot;:662,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../registry&quot;:911,&quot;../cartesian/axes&quot;:828,&quot;../cartesian/select&quot;:847,&quot;./constants&quot;:883,&quot;./layers&quot;:886,&quot;mapbox-gl&quot;:473}],890:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.editType;return{t:{valType:&quot;number&quot;,dflt:0,editType:e},r:{valType:&quot;number&quot;,dflt:0,editType:e},b:{valType:&quot;number&quot;,dflt:0,editType:e},l:{valType:&quot;number&quot;,dflt:0,editType:e},editType:e}}},{}],891:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-time-format&quot;).timeFormatLocale,a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../registry&quot;),s=t(&quot;../plot_api/plot_schema&quot;),l=t(&quot;../plot_api/plot_template&quot;),c=t(&quot;../lib&quot;),u=t(&quot;../components/color&quot;),f=t(&quot;../constants/numerical&quot;).BADNUM,h=t(&quot;./cartesian/axis_ids&quot;),p=t(&quot;./cartesian/handle_outline&quot;).clearSelect,d=t(&quot;./animation_attributes&quot;),g=t(&quot;./frame_attributes&quot;),m=t(&quot;../plots/get_data&quot;).getModuleCalcData,v=c.relinkPrivateKeys,y=c._,x=e.exports={};c.extendFlat(x,o),x.attributes=t(&quot;./attributes&quot;),x.attributes.type.values=x.allTypes,x.fontAttrs=t(&quot;./font_attributes&quot;),x.layoutAttributes=t(&quot;./layout_attributes&quot;),x.fontWeight=&quot;normal&quot;;var b=x.transformsRegistry,_=t(&quot;./command&quot;);x.executeAPICommand=_.executeAPICommand,x.computeAPICommandBindings=_.computeAPICommandBindings,x.manageCommandObserver=_.manageCommandObserver,x.hasSimpleAPICommandBindings=_.hasSimpleAPICommandBindings,x.redrawText=function(t){var e=(t=c.getGraphDiv(t))._fullLayout||{};if(!(!(e._has&amp;&amp;e._has(&quot;polar&quot;))&amp;&amp;t.data&amp;&amp;t.data[0]&amp;&amp;t.data[0].r))return new Promise((function(e){setTimeout((function(){o.getComponentMethod(&quot;annotations&quot;,&quot;draw&quot;)(t),o.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),o.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t),e(x.previousPromises(t))}),300)}))},x.resize=function(t){var e;t=c.getGraphDiv(t);var r=new Promise((function(r,n){t&amp;&amp;!c.isHidden(t)||n(new Error(&quot;Resize must be passed a displayed plot div element.&quot;)),t._redrawTimer&amp;&amp;clearTimeout(t._redrawTimer),t._resolveResize&amp;&amp;(e=t._resolveResize),t._resolveResize=r,t._redrawTimer=setTimeout((function(){if(!t.layout||t.layout.width&amp;&amp;t.layout.height||c.isHidden(t))r(t);else{delete t.layout.width,delete t.layout.height;var e=t.changed;t.autoplay=!0,o.call(&quot;relayout&quot;,t,{autosize:!0}).then((function(){t.changed=e,t._resolveResize===r&amp;&amp;(delete t._resolveResize,r(t))}))}}),100)}));return e&amp;&amp;e(r),r},x.previousPromises=function(t){if((t._promises||[]).length)return Promise.all(t._promises).then((function(){t._promises=[]}))},x.addLinks=function(t){if(t._context.showLink||t._context.showSources){var e=t._fullLayout,r=c.ensureSingle(e._paper,&quot;text&quot;,&quot;js-plot-link-container&quot;,(function(t){t.style({&quot;font-family&quot;:'&quot;Open Sans&quot;, Arial, sans-serif',&quot;font-size&quot;:&quot;12px&quot;,fill:u.defaultLine,&quot;pointer-events&quot;:&quot;all&quot;}).each((function(){var t=n.select(this);t.append(&quot;tspan&quot;).classed(&quot;js-link-to-tool&quot;,!0),t.append(&quot;tspan&quot;).classed(&quot;js-link-spacer&quot;,!0),t.append(&quot;tspan&quot;).classed(&quot;js-sourcelinks&quot;,!0)}))})),i=r.node(),a={y:e._paper.attr(&quot;height&quot;)-9};document.body.contains(i)&amp;&amp;i.getComputedTextLength()&gt;=e.width-20?(a[&quot;text-anchor&quot;]=&quot;start&quot;,a.x=5):(a[&quot;text-anchor&quot;]=&quot;end&quot;,a.x=e._paper.attr(&quot;width&quot;)-7),r.attr(a);var o=r.select(&quot;.js-link-to-tool&quot;),s=r.select(&quot;.js-link-spacer&quot;),l=r.select(&quot;.js-sourcelinks&quot;);t._context.showSources&amp;&amp;t._context.showSources(t),t._context.showLink&amp;&amp;function(t,e){e.text(&quot;&quot;);var r=e.append(&quot;a&quot;).attr({&quot;xlink:xlink:href&quot;:&quot;#&quot;,class:&quot;link--impt link--embedview&quot;,&quot;font-weight&quot;:&quot;bold&quot;}).text(t._context.linkText+&quot; &quot;+String.fromCharCode(187));if(t._context.sendData)r.on(&quot;click&quot;,(function(){x.sendDataToCloud(t)}));else{var n=window.location.pathname.split(&quot;/&quot;),i=window.location.search;r.attr({&quot;xlink:xlink:show&quot;:&quot;new&quot;,&quot;xlink:xlink:href&quot;:&quot;/&quot;+n[2].split(&quot;.&quot;)[0]+&quot;/&quot;+n[1]+i})}}(t,o),s.text(o.text()&amp;&amp;l.text()?&quot; - &quot;:&quot;&quot;)}},x.sendDataToCloud=function(t){var e=(window.PLOTLYENV||{}).BASE_URL||t._context.plotlyServerURL;if(e){t.emit(&quot;plotly_beforeexport&quot;);var r=n.select(t).append(&quot;div&quot;).attr(&quot;id&quot;,&quot;hiddenform&quot;).style(&quot;display&quot;,&quot;none&quot;),i=r.append(&quot;form&quot;).attr({action:e+&quot;/external&quot;,method:&quot;post&quot;,target:&quot;_blank&quot;});return i.append(&quot;input&quot;).attr({type:&quot;text&quot;,name:&quot;data&quot;}).node().value=x.graphJson(t,!1,&quot;keepdata&quot;),i.node().submit(),r.remove(),t.emit(&quot;plotly_afterexport&quot;),!1}};var w=[&quot;days&quot;,&quot;shortDays&quot;,&quot;months&quot;,&quot;shortMonths&quot;,&quot;periods&quot;,&quot;dateTime&quot;,&quot;date&quot;,&quot;time&quot;,&quot;decimal&quot;,&quot;thousands&quot;,&quot;grouping&quot;,&quot;currency&quot;],T=[&quot;year&quot;,&quot;month&quot;,&quot;dayMonth&quot;,&quot;dayMonthYear&quot;];function k(t,e){var r=t._context.locale;r||(r=&quot;en-US&quot;);var n=!1,i={};function a(t){for(var r=!0,a=0;a&lt;e.length;a++){var o=e[a];i[o]||(t[o]?i[o]=t[o]:r=!1)}r&amp;&amp;(n=!0)}for(var s=0;s&lt;2;s++){for(var l=t._context.locales,c=0;c&lt;2;c++){var u=(l[r]||{}).format;if(u&amp;&amp;(a(u),n))break;l=o.localeRegistry}var f=r.split(&quot;-&quot;)[0];if(n||f===r)break;r=f}return n||a(o.localeRegistry.en.format),i}function M(t,e){var r={_fullLayout:e},n=&quot;x&quot;===t._id.charAt(0),i=t._mainAxis._anchorAxis,a=&quot;&quot;,o=&quot;&quot;,s=&quot;&quot;;if(i&amp;&amp;(s=i._mainAxis._id,a=n?t._id+s:s+t._id),!a||!e._plots[a]){a=&quot;&quot;;for(var l=t._counterAxes,c=0;c&lt;l.length;c++){var u=l[c],f=n?t._id+u:u+t._id;o||(o=f);var p=h.getFromId(r,u);if(s&amp;&amp;p.overlaying===s){a=f;break}}}return a||o}function A(t){var e=t.transforms;if(Array.isArray(e)&amp;&amp;e.length)for(var r=0;r&lt;e.length;r++){var n=e[r],i=n._module||b[n.type];if(i&amp;&amp;i.makesData)return!0}return!1}function S(t,e,r,n){for(var i=t.transforms,a=[t],o=0;o&lt;i.length;o++){var s=i[o],l=b[s.type];l&amp;&amp;l.transform&amp;&amp;(a=l.transform(a,{transform:s,fullTrace:t,fullData:e,layout:r,fullLayout:n,transformIndex:o}))}return a}function E(t){return&quot;string&quot;==typeof t&amp;&amp;&quot;px&quot;===t.substr(t.length-2)&amp;&amp;parseFloat(t)}function C(t){var e=t.margin;if(!t._size){var r=t._size={l:Math.round(e.l),r:Math.round(e.r),t:Math.round(e.t),b:Math.round(e.b),p:Math.round(e.pad)};r.w=Math.round(t.width)-r.l-r.r,r.h=Math.round(t.height)-r.t-r.b}t._pushmargin||(t._pushmargin={}),t._pushmarginIds||(t._pushmarginIds={})}x.supplyDefaults=function(t,e){var r=e&amp;&amp;e.skipUpdateCalc,a=t._fullLayout||{};if(a._skipDefaults)delete a._skipDefaults;else{var s,l=t._fullLayout={},u=t.layout||{},f=t._fullData||[],h=t._fullData=[],d=t.data||[],g=t.calcdata||[],m=t._context||{};t._transitionData||x.createTransitionData(t),l._dfltTitle={plot:y(t,&quot;Click to enter Plot title&quot;),x:y(t,&quot;Click to enter X axis title&quot;),y:y(t,&quot;Click to enter Y axis title&quot;),colorbar:y(t,&quot;Click to enter Colorscale title&quot;),annotation:y(t,&quot;new text&quot;)},l._traceWord=y(t,&quot;trace&quot;);var b=k(t,w);if(l._mapboxAccessToken=m.mapboxAccessToken,a._initialAutoSizeIsDone){var _=a.width,M=a.height;x.supplyLayoutGlobalDefaults(u,l,b),u.width||(l.width=_),u.height||(l.height=M),x.sanitizeMargins(l)}else{x.supplyLayoutGlobalDefaults(u,l,b);var A=!u.width||!u.height,S=l.autosize,E=m.autosizable;A&amp;&amp;(S||E)?x.plotAutoSize(t,u,l):A&amp;&amp;x.sanitizeMargins(l),!S&amp;&amp;A&amp;&amp;(u.width=l.width,u.height=l.height)}l._d3locale=function(t,e){return t.decimal=e.charAt(0),t.thousands=e.charAt(1),{numberFormat:n.locale(t).numberFormat,timeFormat:i(t).utcFormat}}(b,l.separators),l._extraFormat=k(t,T),l._initialAutoSizeIsDone=!0,l._dataLength=d.length,l._modules=[],l._visibleModules=[],l._basePlotModules=[];var L=l._subplots=function(){var t,e,r=o.collectableSubplotTypes,n={};if(!r){r=[];var i=o.subplotsRegistry;for(var a in i){var s=i[a].attr;if(s&amp;&amp;(r.push(a),Array.isArray(s)))for(e=0;e&lt;s.length;e++)c.pushUnique(r,s[e])}}for(t=0;t&lt;r.length;t++)n[r[t]]=[];return n}(),I=l._splomAxes={x:{},y:{}},P=l._splomSubplots={};l._splomGridDflt={},l._scatterStackOpts={},l._firstScatter={},l._alignmentOpts={},l._colorAxes={},l._requestRangeslider={},l._traceUids=function(t,e){var r,n,i=e.length,a=[];for(r=0;r&lt;t.length;r++){var o=t[r]._fullInput;o!==n&amp;&amp;a.push(o),n=o}var s=a.length,l=new Array(i),u={};function f(t,e){l[e]=t,u[t]=1}function h(t,e){if(t&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;!u[t])return f(t,e),!0}for(r=0;r&lt;i;r++){var p=e[r].uid;&quot;number&quot;==typeof p&amp;&amp;(p=String(p)),h(p,r)||(r&lt;s&amp;&amp;h(a[r].uid,r)||f(c.randstr(u),r))}return l}(f,d),l._globalTransforms=(t._context||{}).globalTransforms,x.supplyDataDefaults(d,h,u,l);var z=Object.keys(I.x),O=Object.keys(I.y);if(z.length&gt;1&amp;&amp;O.length&gt;1){for(o.getComponentMethod(&quot;grid&quot;,&quot;sizeDefaults&quot;)(u,l),s=0;s&lt;z.length;s++)c.pushUnique(L.xaxis,z[s]);for(s=0;s&lt;O.length;s++)c.pushUnique(L.yaxis,O[s]);for(var D in P)c.pushUnique(L.cartesian,D)}if(l._has=x._hasPlotType.bind(l),f.length===h.length)for(s=0;s&lt;h.length;s++)v(h[s],f[s]);x.supplyLayoutModuleDefaults(u,l,h,t._transitionData);var R=l._visibleModules,F=[];for(s=0;s&lt;R.length;s++){var B=R[s].crossTraceDefaults;B&amp;&amp;c.pushUnique(F,B)}for(s=0;s&lt;F.length;s++)F[s](h,l);l._hasOnlyLargeSploms=1===l._basePlotModules.length&amp;&amp;&quot;splom&quot;===l._basePlotModules[0].name&amp;&amp;z.length&gt;15&amp;&amp;O.length&gt;15&amp;&amp;0===l.shapes.length&amp;&amp;0===l.images.length,l._hasCartesian=l._has(&quot;cartesian&quot;),l._hasGeo=l._has(&quot;geo&quot;),l._hasGL3D=l._has(&quot;gl3d&quot;),l._hasGL2D=l._has(&quot;gl2d&quot;),l._hasTernary=l._has(&quot;ternary&quot;),l._hasPie=l._has(&quot;pie&quot;),x.linkSubplots(h,l,f,a),x.cleanPlot(h,l,f,a);var N=!(!a._has||!a._has(&quot;gl2d&quot;)),j=!(!l._has||!l._has(&quot;gl2d&quot;)),U=!(!a._has||!a._has(&quot;cartesian&quot;))||N,V=!(!l._has||!l._has(&quot;cartesian&quot;))||j;U&amp;&amp;!V?a._bgLayer.remove():V&amp;&amp;!U&amp;&amp;(l._shouldCreateBgLayer=!0),a._zoomlayer&amp;&amp;!t._dragging&amp;&amp;p({_fullLayout:a}),function(t,e){var r,n=[];e.meta&amp;&amp;(r=e._meta={meta:e.meta,layout:{meta:e.meta}});for(var i=0;i&lt;t.length;i++){var a=t[i];a.meta?n[a.index]=a._meta={meta:a.meta}:e.meta&amp;&amp;(a._meta={meta:e.meta}),e.meta&amp;&amp;(a._meta.layout={meta:e.meta})}n.length&amp;&amp;(r||(r=e._meta={}),r.data=n)}(h,l),v(l,a),o.getComponentMethod(&quot;colorscale&quot;,&quot;crossTraceDefaults&quot;)(h,l),l._preGUI||(l._preGUI={}),l._tracePreGUI||(l._tracePreGUI={});var q,H=l._tracePreGUI,G={};for(q in H)G[q]=&quot;old&quot;;for(s=0;s&lt;h.length;s++)G[q=h[s]._fullInput.uid]||(H[q]={}),G[q]=&quot;new&quot;;for(q in G)&quot;old&quot;===G[q]&amp;&amp;delete H[q];C(l),o.getComponentMethod(&quot;rangeslider&quot;,&quot;makeData&quot;)(l),r||g.length!==h.length||x.supplyDefaultsUpdateCalc(g,h)}},x.supplyDefaultsUpdateCalc=function(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r],i=(t[r]||[])[0];if(i&amp;&amp;i.trace){var a=i.trace;if(a._hasCalcTransform){var o,s,l,u=a._arrayAttrs;for(o=0;o&lt;u.length;o++)s=u[o],l=c.nestedProperty(a,s).get().slice(),c.nestedProperty(n,s).set(l)}i.trace=n}}},x.createTransitionData=function(t){t._transitionData||(t._transitionData={}),t._transitionData._frames||(t._transitionData._frames=[]),t._transitionData._frameHash||(t._transitionData._frameHash={}),t._transitionData._counter||(t._transitionData._counter=0),t._transitionData._interruptCallbacks||(t._transitionData._interruptCallbacks=[])},x._hasPlotType=function(t){var e,r=this._basePlotModules||[];for(e=0;e&lt;r.length;e++)if(r[e].name===t)return!0;var n=this._modules||[];for(e=0;e&lt;n.length;e++){var i=n[e].name;if(i===t)return!0;var a=o.modules[i];if(a&amp;&amp;a.categories[t])return!0}return!1},x.cleanPlot=function(t,e,r,n){var i,a,o=n._basePlotModules||[];for(i=0;i&lt;o.length;i++){var s=o[i];s.clean&amp;&amp;s.clean(t,e,r,n)}var l=n._has&amp;&amp;n._has(&quot;gl&quot;),c=e._has&amp;&amp;e._has(&quot;gl&quot;);l&amp;&amp;!c&amp;&amp;void 0!==n._glcontainer&amp;&amp;(n._glcontainer.selectAll(&quot;.gl-canvas&quot;).remove(),n._glcontainer.selectAll(&quot;.no-webgl&quot;).remove(),n._glcanvas=null);var u=!!n._infolayer;t:for(i=0;i&lt;r.length;i++){var f=r[i].uid;for(a=0;a&lt;t.length;a++){if(f===t[a].uid)continue t}u&amp;&amp;n._infolayer.select(&quot;.cb&quot;+f).remove()}},x.linkSubplots=function(t,e,r,n){var i,a,s=n._plots||{},l=e._plots={},u=e._subplots,f={_fullData:t,_fullLayout:e},p=u.cartesian.concat(u.gl2d||[]);for(i=0;i&lt;p.length;i++){var d,g=p[i],m=s[g],v=h.getFromId(f,g,&quot;x&quot;),y=h.getFromId(f,g,&quot;y&quot;);for(m?d=l[g]=m:(d=l[g]={}).id=g,v._counterAxes.push(y._id),y._counterAxes.push(v._id),v._subplotsWith.push(g),y._subplotsWith.push(g),d.xaxis=v,d.yaxis=y,d._hasClipOnAxisFalse=!1,a=0;a&lt;t.length;a++){var x=t[a];if(x.xaxis===d.xaxis._id&amp;&amp;x.yaxis===d.yaxis._id&amp;&amp;!1===x.cliponaxis){d._hasClipOnAxisFalse=!0;break}}}var b,_=h.list(f,null,!0);for(i=0;i&lt;_.length;i++){var w=null;(b=_[i]).overlaying&amp;&amp;(w=h.getFromId(f,b.overlaying))&amp;&amp;w.overlaying&amp;&amp;(b.overlaying=!1,w=null),b._mainAxis=w||b,w&amp;&amp;(b.domain=w.domain.slice()),b._anchorAxis=&quot;free&quot;===b.anchor?null:h.getFromId(f,b.anchor)}for(i=0;i&lt;_.length;i++)if((b=_[i])._counterAxes.sort(h.idSort),b._subplotsWith.sort(c.subplotSort),b._mainSubplot=M(b,e),b._counterAxes.length&amp;&amp;(b.spikemode&amp;&amp;-1!==b.spikemode.indexOf(&quot;across&quot;)||b.automargin&amp;&amp;b.mirror&amp;&amp;&quot;free&quot;!==b.anchor||o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(b))){var T=1,k=0;for(a=0;a&lt;b._counterAxes.length;a++){var A=h.getFromId(f,b._counterAxes[a]);T=Math.min(T,A.domain[0]),k=Math.max(k,A.domain[1])}T&lt;k&amp;&amp;(b._counterDomainMin=T,b._counterDomainMax=k)}},x.clearExpandedTraceDefaultColors=function(t){var e,r,n;for(r=[],(e=t._module._colorAttrs)||(t._module._colorAttrs=e=[],s.crawl(t._module.attributes,(function(t,n,i,a){r[a]=n,r.length=a+1,&quot;color&quot;===t.valType&amp;&amp;void 0===t.dflt&amp;&amp;e.push(r.join(&quot;.&quot;))}))),n=0;n&lt;e.length;n++){c.nestedProperty(t,&quot;_input.&quot;+e[n]).get()||c.nestedProperty(t,e[n]).set(null)}},x.supplyDataDefaults=function(t,e,r,n){var i,a,s,u=n._modules,f=n._visibleModules,h=n._basePlotModules,p=0,d=0;function g(t){e.push(t);var r=t._module;r&amp;&amp;(c.pushUnique(u,r),!0===t.visible&amp;&amp;c.pushUnique(f,r),c.pushUnique(h,t._module.basePlotModule),p++,!1!==t._input.visible&amp;&amp;d++)}n._transformModules=[];var m={},y=[],b=(r.template||{}).data||{},_=l.traceTemplater(b);for(i=0;i&lt;t.length;i++){if(s=t[i],(a=_.newTrace(s)).uid=n._traceUids[i],x.supplyTraceDefaults(s,a,d,n,i),a.index=i,a._input=s,a._expandedIndex=p,a.transforms&amp;&amp;a.transforms.length)for(var w=!1!==s.visible&amp;&amp;!1===a.visible,T=S(a,e,r,n),k=0;k&lt;T.length;k++){var M=T[k],A={_template:a._template,type:a.type,uid:a.uid+k};w&amp;&amp;!1===M.visible&amp;&amp;delete M.visible,x.supplyTraceDefaults(M,A,p,n,i),v(A,M),A.index=i,A._input=s,A._fullInput=a,A._expandedIndex=p,A._expandedInput=M,g(A)}else a._fullInput=a,a._expandedInput=a,g(a);o.traceIs(a,&quot;carpetAxis&quot;)&amp;&amp;(m[a.carpet]=a),o.traceIs(a,&quot;carpetDependent&quot;)&amp;&amp;y.push(i)}for(i=0;i&lt;y.length;i++)if((a=e[y[i]]).visible){var E=m[a.carpet];a._carpet=E,E&amp;&amp;E.visible?(a.xaxis=E.xaxis,a.yaxis=E.yaxis):a.visible=!1}},x.supplyAnimationDefaults=function(t){var e;t=t||{};var r={};function n(e,n){return c.coerce(t||{},r,d,e,n)}if(n(&quot;mode&quot;),n(&quot;direction&quot;),n(&quot;fromcurrent&quot;),Array.isArray(t.frame))for(r.frame=[],e=0;e&lt;t.frame.length;e++)r.frame[e]=x.supplyAnimationFrameDefaults(t.frame[e]||{});else r.frame=x.supplyAnimationFrameDefaults(t.frame||{});if(Array.isArray(t.transition))for(r.transition=[],e=0;e&lt;t.transition.length;e++)r.transition[e]=x.supplyAnimationTransitionDefaults(t.transition[e]||{});else r.transition=x.supplyAnimationTransitionDefaults(t.transition||{});return r},x.supplyAnimationFrameDefaults=function(t){var e={};function r(r,n){return c.coerce(t||{},e,d.frame,r,n)}return r(&quot;duration&quot;),r(&quot;redraw&quot;),e},x.supplyAnimationTransitionDefaults=function(t){var e={};function r(r,n){return c.coerce(t||{},e,d.transition,r,n)}return r(&quot;duration&quot;),r(&quot;easing&quot;),e},x.supplyFrameDefaults=function(t){var e={};function r(r,n){return c.coerce(t,e,g,r,n)}return r(&quot;group&quot;),r(&quot;name&quot;),r(&quot;traces&quot;),r(&quot;baseframe&quot;),r(&quot;data&quot;),r(&quot;layout&quot;),e},x.supplyTraceDefaults=function(t,e,r,n,i){var a,s=n.colorway||u.defaults,l=s[r%s.length];function f(r,n){return c.coerce(t,e,x.attributes,r,n)}var h=f(&quot;visible&quot;);f(&quot;type&quot;),f(&quot;name&quot;,n._traceWord+&quot; &quot;+i),f(&quot;uirevision&quot;,n.uirevision);var p=x.getModule(e);if(e._module=p,p){var d=p.basePlotModule,g=d.attr,m=d.attributes;if(g&amp;&amp;m){var v=n._subplots,y=&quot;&quot;;if(h||&quot;gl2d&quot;!==d.name){if(Array.isArray(g))for(a=0;a&lt;g.length;a++){var b=g[a],_=c.coerce(t,e,m,b);v[b]&amp;&amp;c.pushUnique(v[b],_),y+=_}else y=c.coerce(t,e,m,g);v[d.name]&amp;&amp;c.pushUnique(v[d.name],y)}}}return h&amp;&amp;(f(&quot;customdata&quot;),f(&quot;ids&quot;),f(&quot;meta&quot;),o.traceIs(e,&quot;showLegend&quot;)?(c.coerce(t,e,p.attributes.showlegend?p.attributes:x.attributes,&quot;showlegend&quot;),f(&quot;legendgroup&quot;),e._dfltShowLegend=!0):e._dfltShowLegend=!1,p&amp;&amp;p.supplyDefaults(t,e,l,n),o.traceIs(e,&quot;noOpacity&quot;)||f(&quot;opacity&quot;),o.traceIs(e,&quot;notLegendIsolatable&quot;)&amp;&amp;(e.visible=!!e.visible),o.traceIs(e,&quot;noHover&quot;)||(e.hovertemplate||c.coerceHoverinfo(t,e,n),&quot;parcats&quot;!==e.type&amp;&amp;o.getComponentMethod(&quot;fx&quot;,&quot;supplyDefaults&quot;)(t,e,l,n)),p&amp;&amp;p.selectPoints&amp;&amp;f(&quot;selectedpoints&quot;),x.supplyTransformDefaults(t,e,n)),e},x.hasMakesDataTransform=A,x.supplyTransformDefaults=function(t,e,r){if(e._length||A(t)){var n=r._globalTransforms||[],i=r._transformModules||[];if(Array.isArray(t.transforms)||0!==n.length)for(var a=t.transforms||[],o=n.concat(a),s=e.transforms=[],l=0;l&lt;o.length;l++){var u,f=o[l],h=f.type,p=b[h],d=!(f._module&amp;&amp;f._module===p),g=p&amp;&amp;&quot;function&quot;==typeof p.transform;p||c.warn(&quot;Unrecognized transform type &quot;+h+&quot;.&quot;),p&amp;&amp;p.supplyDefaults&amp;&amp;(d||g)?((u=p.supplyDefaults(f,e,r,t)).type=h,u._module=p,c.pushUnique(i,p)):u=c.extendFlat({},f),s.push(u)}}},x.supplyLayoutGlobalDefaults=function(t,e,r){function n(r,n){return c.coerce(t,e,x.layoutAttributes,r,n)}var i=t.template;c.isPlainObject(i)&amp;&amp;(e.template=i,e._template=i.layout,e._dataTemplate=i.data),n(&quot;autotypenumbers&quot;);var a=c.coerceFont(n,&quot;font&quot;);n(&quot;title.text&quot;,e._dfltTitle.plot),c.coerceFont(n,&quot;title.font&quot;,{family:a.family,size:Math.round(1.4*a.size),color:a.color}),n(&quot;title.xref&quot;),n(&quot;title.yref&quot;),n(&quot;title.x&quot;),n(&quot;title.y&quot;),n(&quot;title.xanchor&quot;),n(&quot;title.yanchor&quot;),n(&quot;title.pad.t&quot;),n(&quot;title.pad.r&quot;),n(&quot;title.pad.b&quot;),n(&quot;title.pad.l&quot;),n(&quot;uniformtext.mode&quot;)&amp;&amp;n(&quot;uniformtext.minsize&quot;),n(&quot;autosize&quot;,!(t.width&amp;&amp;t.height)),n(&quot;width&quot;),n(&quot;height&quot;),n(&quot;margin.l&quot;),n(&quot;margin.r&quot;),n(&quot;margin.t&quot;),n(&quot;margin.b&quot;),n(&quot;margin.pad&quot;),n(&quot;margin.autoexpand&quot;),t.width&amp;&amp;t.height&amp;&amp;x.sanitizeMargins(e),o.getComponentMethod(&quot;grid&quot;,&quot;sizeDefaults&quot;)(t,e),n(&quot;paper_bgcolor&quot;),n(&quot;separators&quot;,r.decimal+r.thousands),n(&quot;hidesources&quot;),n(&quot;colorway&quot;),n(&quot;datarevision&quot;);var s=n(&quot;uirevision&quot;);n(&quot;editrevision&quot;,s),n(&quot;selectionrevision&quot;,s),n(&quot;modebar.orientation&quot;),n(&quot;modebar.bgcolor&quot;,u.addOpacity(e.paper_bgcolor,.5));var l=u.contrast(u.rgb(e.modebar.bgcolor));n(&quot;modebar.color&quot;,u.addOpacity(l,.3)),n(&quot;modebar.activecolor&quot;,u.addOpacity(l,.7)),n(&quot;modebar.uirevision&quot;,s),o.getComponentMethod(&quot;shapes&quot;,&quot;supplyDrawNewShapeDefaults&quot;)(t,e,n),n(&quot;meta&quot;),c.isPlainObject(t.transition)&amp;&amp;(n(&quot;transition.duration&quot;),n(&quot;transition.easing&quot;),n(&quot;transition.ordering&quot;)),o.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;),o.getComponentMethod(&quot;fx&quot;,&quot;supplyLayoutGlobalDefaults&quot;)(t,e,n)},x.plotAutoSize=function(t,e,r){var n,i,o=t._context||{},s=o.frameMargins,l=c.isPlotDiv(t);if(l&amp;&amp;t.emit(&quot;plotly_autosize&quot;),o.fillFrame)n=window.innerWidth,i=window.innerHeight,document.body.style.overflow=&quot;hidden&quot;;else{var u=l?window.getComputedStyle(t):{};if(n=E(u.width)||E(u.maxWidth)||r.width,i=E(u.height)||E(u.maxHeight)||r.height,a(s)&amp;&amp;s&gt;0){var f=1-2*s;n=Math.round(f*n),i=Math.round(f*i)}}var h=x.layoutAttributes.width.min,p=x.layoutAttributes.height.min;n&lt;h&amp;&amp;(n=h),i&lt;p&amp;&amp;(i=p);var d=!e.width&amp;&amp;Math.abs(r.width-n)&gt;1,g=!e.height&amp;&amp;Math.abs(r.height-i)&gt;1;(g||d)&amp;&amp;(d&amp;&amp;(r.width=n),g&amp;&amp;(r.height=i)),t._initialAutoSize||(t._initialAutoSize={width:n,height:i}),x.sanitizeMargins(r)},x.supplyLayoutModuleDefaults=function(t,e,r,n){var i,a,s,l=o.componentsRegistry,u=e._basePlotModules,f=o.subplotsRegistry.cartesian;for(i in l)(s=l[i]).includeBasePlot&amp;&amp;s.includeBasePlot(t,e);for(var h in u.length||u.push(f),e._has(&quot;cartesian&quot;)&amp;&amp;(o.getComponentMethod(&quot;grid&quot;,&quot;contentDefaults&quot;)(t,e),f.finalizeSubplots(t,e)),e._subplots)e._subplots[h].sort(c.subplotSort);for(a=0;a&lt;u.length;a++)(s=u[a]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r);var p=e._modules;for(a=0;a&lt;p.length;a++)(s=p[a]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r);var d=e._transformModules;for(a=0;a&lt;d.length;a++)(s=d[a]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r,n);for(i in l)(s=l[i]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r)},x.purge=function(t){var e=t._fullLayout||{};void 0!==e._glcontainer&amp;&amp;(e._glcontainer.selectAll(&quot;.gl-canvas&quot;).remove(),e._glcontainer.remove(),e._glcanvas=null),e._modeBar&amp;&amp;e._modeBar.destroy(),t._transitionData&amp;&amp;(t._transitionData._interruptCallbacks&amp;&amp;(t._transitionData._interruptCallbacks.length=0),t._transitionData._animationRaf&amp;&amp;window.cancelAnimationFrame(t._transitionData._animationRaf)),c.clearThrottle(),c.clearResponsive(t),delete t.data,delete t.layout,delete t._fullData,delete t._fullLayout,delete t.calcdata,delete t.framework,delete t.empty,delete t.fid,delete t.undoqueue,delete t.undonum,delete t.autoplay,delete t.changed,delete t._promises,delete t._redrawTimer,delete t._hmlumcount,delete t._hmpixcount,delete t._transitionData,delete t._transitioning,delete t._initialAutoSize,delete t._transitioningWithDuration,delete t._dragging,delete t._dragged,delete t._dragdata,delete t._hoverdata,delete t._snapshotInProgress,delete t._editing,delete t._mouseDownTime,delete t._legendMouseDownTime,t.removeAllListeners&amp;&amp;t.removeAllListeners()},x.style=function(t){var e,r=t._fullLayout._visibleModules,n=[];for(e=0;e&lt;r.length;e++){var i=r[e];i.style&amp;&amp;c.pushUnique(n,i.style)}for(e=0;e&lt;n.length;e++)n[e](t)},x.sanitizeMargins=function(t){if(t&amp;&amp;t.margin){var e,r=t.width,n=t.height,i=t.margin,a=r-(i.l+i.r),o=n-(i.t+i.b);a&lt;0&amp;&amp;(e=(r-1)/(i.l+i.r),i.l=Math.floor(e*i.l),i.r=Math.floor(e*i.r)),o&lt;0&amp;&amp;(e=(n-1)/(i.t+i.b),i.t=Math.floor(e*i.t),i.b=Math.floor(e*i.b))}},x.clearAutoMarginIds=function(t){t._fullLayout._pushmarginIds={}},x.allowAutoMargin=function(t,e){t._fullLayout._pushmarginIds[e]=1};x.autoMargin=function(t,e,r){var n=t._fullLayout,i=n.width,a=n.height,o=n.margin,s=c.constrain(i-o.l-o.r,2,64),l=c.constrain(a-o.t-o.b,2,64),u=Math.max(0,i-s),f=Math.max(0,a-l),h=n._pushmargin,p=n._pushmarginIds;if(!1!==o.autoexpand){if(r){var d=r.pad;if(void 0===d&amp;&amp;(d=Math.min(12,o.l,o.r,o.t,o.b)),u){var g=(r.l+r.r)/u;g&gt;1&amp;&amp;(r.l/=g,r.r/=g)}if(f){var m=(r.t+r.b)/f;m&gt;1&amp;&amp;(r.t/=m,r.b/=m)}var v=void 0!==r.xl?r.xl:r.x,y=void 0!==r.xr?r.xr:r.x,b=void 0!==r.yt?r.yt:r.y,_=void 0!==r.yb?r.yb:r.y;h[e]={l:{val:v,size:r.l+d},r:{val:y,size:r.r+d},b:{val:_,size:r.b+d},t:{val:b,size:r.t+d}},p[e]=1}else delete h[e],delete p[e];if(!n._replotting)return x.doAutoMargin(t)}},x.doAutoMargin=function(t){var e=t._fullLayout,r=e.width,n=e.height;e._size||(e._size={}),C(e);var i=e._size,s=e.margin,l=c.extendFlat({},i),u=s.l,f=s.r,p=s.t,d=s.b,g=e._pushmargin,m=e._pushmarginIds;if(!1!==e.margin.autoexpand){for(var v in g)m[v]||delete g[v];for(var y in g.base={l:{val:0,size:u},r:{val:1,size:f},t:{val:1,size:p},b:{val:0,size:d}},g){var b=g[y].l||{},_=g[y].b||{},w=b.val,T=b.size,k=_.val,M=_.size;for(var A in g){if(a(T)&amp;&amp;g[A].r){var S=g[A].r.val,E=g[A].r.size;if(S&gt;w){var L=(T*S+(E-r)*w)/(S-w),I=(E*(1-w)+(T-r)*(1-S))/(S-w);L+I&gt;u+f&amp;&amp;(u=L,f=I)}}if(a(M)&amp;&amp;g[A].t){var P=g[A].t.val,z=g[A].t.size;if(P&gt;k){var O=(M*P+(z-n)*k)/(P-k),D=(z*(1-k)+(M-n)*(1-P))/(P-k);O+D&gt;d+p&amp;&amp;(d=O,p=D)}}}}}var R=c.constrain(r-s.l-s.r,2,64),F=c.constrain(n-s.t-s.b,2,64),B=Math.max(0,r-R),N=Math.max(0,n-F);if(B){var j=(u+f)/B;j&gt;1&amp;&amp;(u/=j,f/=j)}if(N){var U=(d+p)/N;U&gt;1&amp;&amp;(d/=U,p/=U)}if(i.l=Math.round(u),i.r=Math.round(f),i.t=Math.round(p),i.b=Math.round(d),i.p=Math.round(s.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!e._replotting&amp;&amp;x.didMarginChange(l,i)){&quot;_redrawFromAutoMarginCount&quot;in e?e._redrawFromAutoMarginCount++:e._redrawFromAutoMarginCount=1;var V=3*(1+Object.keys(m).length);if(e._redrawFromAutoMarginCount&lt;V)return o.call(&quot;plot&quot;,t);e._size=l,c.warn(&quot;Too many auto-margin redraws.&quot;)}!function(t){for(var e=h.list(t,&quot;&quot;,!0),r=0;r&lt;e.length;r++){var n=e[r]._hideOutOfRangeInsideTickLabels;n&amp;&amp;n()}}(t)};var L=[&quot;l&quot;,&quot;r&quot;,&quot;t&quot;,&quot;b&quot;,&quot;p&quot;,&quot;w&quot;,&quot;h&quot;];function I(t,e,r){var n=!1;var i=[x.previousPromises,function(){if(t._transitionData)return t._transitioning=!1,function(t){var e=Promise.resolve();if(!t)return e;for(;t.length;)e=e.then(t.shift());return e}(t._transitionData._interruptCallbacks)},r.prepareFn,x.rehover,function(){return t.emit(&quot;plotly_transitioning&quot;,[]),new Promise((function(i){t._transitioning=!0,e.duration&gt;0&amp;&amp;(t._transitioningWithDuration=!0),t._transitionData._interruptCallbacks.push((function(){n=!0})),r.redraw&amp;&amp;t._transitionData._interruptCallbacks.push((function(){return o.call(&quot;redraw&quot;,t)})),t._transitionData._interruptCallbacks.push((function(){t.emit(&quot;plotly_transitioninterrupted&quot;,[])}));var a=0,s=0;function l(){return a++,function(){s++,n||s!==a||function(e){if(!t._transitionData)return;(function(t){if(t)for(;t.length;)t.shift()})(t._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return o.call(&quot;redraw&quot;,t)})).then((function(){t._transitioning=!1,t._transitioningWithDuration=!1,t.emit(&quot;plotly_transitioned&quot;,[])})).then(e)}(i)}}r.runFn(l),setTimeout(l())}))}],a=c.syncOrAsync(i,t);return a&amp;&amp;a.then||(a=Promise.resolve()),a.then((function(){return t}))}x.didMarginChange=function(t,e){for(var r=0;r&lt;L.length;r++){var n=L[r],i=t[n],o=e[n];if(!a(i)||Math.abs(o-i)&gt;1)return!0}return!1},x.graphJson=function(t,e,r,n,i,a){(i&amp;&amp;e&amp;&amp;!t._fullData||i&amp;&amp;!e&amp;&amp;!t._fullLayout)&amp;&amp;x.supplyDefaults(t);var o=i?t._fullData:t.data,s=i?t._fullLayout:t.layout,l=(t._transitionData||{})._frames;function u(t,e){if(&quot;function&quot;==typeof t)return e?&quot;_function_&quot;:null;if(c.isPlainObject(t)){var n,i={};return Object.keys(t).sort().forEach((function(a){if(-1===[&quot;_&quot;,&quot;[&quot;].indexOf(a.charAt(0)))if(&quot;function&quot;!=typeof t[a]){if(&quot;keepdata&quot;===r){if(&quot;src&quot;===a.substr(a.length-3))return}else if(&quot;keepstream&quot;===r){if(&quot;string&quot;==typeof(n=t[a+&quot;src&quot;])&amp;&amp;n.indexOf(&quot;:&quot;)&gt;0&amp;&amp;!c.isPlainObject(t.stream))return}else if(&quot;keepall&quot;!==r&amp;&amp;&quot;string&quot;==typeof(n=t[a+&quot;src&quot;])&amp;&amp;n.indexOf(&quot;:&quot;)&gt;0)return;i[a]=u(t[a],e)}else e&amp;&amp;(i[a]=&quot;_function&quot;)})),i}return Array.isArray(t)?t.map((function(t){return u(t,e)})):c.isTypedArray(t)?c.simpleMap(t,c.identity):c.isJSDate(t)?c.ms2DateTimeLocal(+t):t}var f={data:(o||[]).map((function(t){var r=u(t);return e&amp;&amp;delete r.fit,r}))};if(!e&amp;&amp;(f.layout=u(s),i)){var h=s._size;f.layout.computed={margin:{b:h.b,l:h.l,r:h.r,t:h.t}}}return t.framework&amp;&amp;t.framework.isPolar&amp;&amp;(f=t.framework.getConfig()),l&amp;&amp;(f.frames=u(l)),a&amp;&amp;(f.config=u(t._context,!0)),&quot;object&quot;===n?f:JSON.stringify(f)},x.modifyFrames=function(t,e){var r,n,i,a=t._transitionData._frames,o=t._transitionData._frameHash;for(r=0;r&lt;e.length;r++)switch((n=e[r]).type){case&quot;replace&quot;:i=n.value;var s=(a[n.index]||{}).name,l=i.name;a[n.index]=o[l]=i,l!==s&amp;&amp;(delete o[s],o[l]=i);break;case&quot;insert&quot;:o[(i=n.value).name]=i,a.splice(n.index,0,i);break;case&quot;delete&quot;:delete o[(i=a[n.index]).name],a.splice(n.index,1)}return Promise.resolve()},x.computeFrame=function(t,e){var r,n,i,a,o=t._transitionData._frameHash;if(!e)throw new Error(&quot;computeFrame must be given a string frame name&quot;);var s=o[e.toString()];if(!s)return!1;for(var l=[s],c=[s.name];s.baseframe&amp;&amp;(s=o[s.baseframe.toString()])&amp;&amp;-1===c.indexOf(s.name);)l.push(s),c.push(s.name);for(var u={};s=l.pop();)if(s.layout&amp;&amp;(u.layout=x.extendLayout(u.layout,s.layout)),s.data){if(u.data||(u.data=[]),!(n=s.traces))for(n=[],r=0;r&lt;s.data.length;r++)n[r]=r;for(u.traces||(u.traces=[]),r=0;r&lt;s.data.length;r++)null!=(i=n[r])&amp;&amp;(-1===(a=u.traces.indexOf(i))&amp;&amp;(a=u.data.length,u.traces[a]=i),u.data[a]=x.extendTrace(u.data[a],s.data[r]))}return u},x.recomputeFrameHash=function(t){for(var e=t._transitionData._frameHash={},r=t._transitionData._frames,n=0;n&lt;r.length;n++){var i=r[n];i&amp;&amp;i.name&amp;&amp;(e[i.name]=i)}},x.extendObjectWithContainers=function(t,e,r){var n,i,a,o,s,l,u,f=c.extendDeepNoArrays({},e||{}),h=c.expandObjectPaths(f),p={};if(r&amp;&amp;r.length)for(a=0;a&lt;r.length;a++)void 0===(i=(n=c.nestedProperty(h,r[a])).get())?c.nestedProperty(p,r[a]).set(null):(n.set(null),c.nestedProperty(p,r[a]).set(i));if(t=c.extendDeepNoArrays(t||{},h),r&amp;&amp;r.length)for(a=0;a&lt;r.length;a++)if(l=c.nestedProperty(p,r[a]).get()){for(u=(s=c.nestedProperty(t,r[a])).get(),Array.isArray(u)||(u=[],s.set(u)),o=0;o&lt;l.length;o++){var d=l[o];u[o]=null===d?null:x.extendObjectWithContainers(u[o],d)}s.set(u)}return t},x.dataArrayContainers=[&quot;transforms&quot;,&quot;dimensions&quot;],x.layoutArrayContainers=o.layoutArrayContainers,x.extendTrace=function(t,e){return x.extendObjectWithContainers(t,e,x.dataArrayContainers)},x.extendLayout=function(t,e){return x.extendObjectWithContainers(t,e,x.layoutArrayContainers)},x.transition=function(t,e,r,n,i,a){var o={redraw:i.redraw},s={},l=[];return o.prepareFn=function(){for(var i=Array.isArray(e)?e.length:0,a=n.slice(0,i),o=0;o&lt;a.length;o++){var u=a[o],f=t._fullData[u]._module;if(f){if(f.animatable){var h=f.basePlotModule.name;s[h]||(s[h]=[]),s[h].push(u)}t.data[a[o]]=x.extendTrace(t.data[a[o]],e[o])}}var p=c.expandObjectPaths(c.extendDeepNoArrays({},r)),d=/^[xy]axis[0-9]*$/;for(var g in p)d.test(g)&amp;&amp;delete p[g].range;x.extendLayout(t.layout,p),delete t.calcdata,x.supplyDefaults(t),x.doCalcdata(t);var m=c.expandObjectPaths(r);if(m){var v=t._fullLayout._plots;for(var y in v){var b=v[y],_=b.xaxis,w=b.yaxis,T=_.range.slice(),k=w.range.slice(),M=null,A=null,S=null,E=null;Array.isArray(m[_._name+&quot;.range&quot;])?M=m[_._name+&quot;.range&quot;].slice():Array.isArray((m[_._name]||{}).range)&amp;&amp;(M=m[_._name].range.slice()),Array.isArray(m[w._name+&quot;.range&quot;])?A=m[w._name+&quot;.range&quot;].slice():Array.isArray((m[w._name]||{}).range)&amp;&amp;(A=m[w._name].range.slice()),T&amp;&amp;M&amp;&amp;(_.r2l(T[0])!==_.r2l(M[0])||_.r2l(T[1])!==_.r2l(M[1]))&amp;&amp;(S={xr0:T,xr1:M}),k&amp;&amp;A&amp;&amp;(w.r2l(k[0])!==w.r2l(A[0])||w.r2l(k[1])!==w.r2l(A[1]))&amp;&amp;(E={yr0:k,yr1:A}),(S||E)&amp;&amp;l.push(c.extendFlat({plotinfo:b},S,E))}}return Promise.resolve()},o.runFn=function(e){var n,i,o=t._fullLayout._basePlotModules,u=l.length;if(r)for(i=0;i&lt;o.length;i++)o[i].transitionAxes&amp;&amp;o[i].transitionAxes(t,l,a,e);for(var f in u?((n=c.extendFlat({},a)).duration=0,delete s.cartesian):n=a,s){var h=s[f];t._fullData[h[0]]._module.basePlotModule.plot(t,h,n,e)}},I(t,a,o)},x.transitionFromReact=function(t,e,r,n){var i=t._fullLayout,a=i.transition,o={},s=[];return o.prepareFn=function(){var t=i._plots;for(var a in o.redraw=!1,&quot;some&quot;===e.anim&amp;&amp;(o.redraw=!0),&quot;some&quot;===r.anim&amp;&amp;(o.redraw=!0),t){var l=t[a],u=l.xaxis,f=l.yaxis,h=n[u._name].range.slice(),p=n[f._name].range.slice(),d=u.range.slice(),g=f.range.slice();u.setScale(),f.setScale();var m=null,v=null;u.r2l(h[0])===u.r2l(d[0])&amp;&amp;u.r2l(h[1])===u.r2l(d[1])||(m={xr0:h,xr1:d}),f.r2l(p[0])===f.r2l(g[0])&amp;&amp;f.r2l(p[1])===f.r2l(g[1])||(v={yr0:p,yr1:g}),(m||v)&amp;&amp;s.push(c.extendFlat({plotinfo:l},m,v))}return Promise.resolve()},o.runFn=function(r){for(var n,i,o,l=t._fullData,u=t._fullLayout._basePlotModules,f=[],h=0;h&lt;l.length;h++)f.push(h);function p(){for(var e=0;e&lt;u.length;e++)u[e].transitionAxes&amp;&amp;u[e].transitionAxes(t,s,n,r)}function d(){for(var e=0;e&lt;u.length;e++)u[e].plot(t,o,i,r)}s.length&amp;&amp;e.anim?&quot;traces first&quot;===a.ordering?(n=c.extendFlat({},a,{duration:0}),o=f,i=a,setTimeout(p,a.duration),d()):(n=a,o=null,i=c.extendFlat({},a,{duration:0}),setTimeout(d,n.duration),p()):s.length?(n=a,p()):e.anim&amp;&amp;(o=f,i=a,d())},I(t,a,o)},x.doCalcdata=function(t,e){var r,n,i,a,l=h.list(t),u=t._fullData,p=t._fullLayout,d=new Array(u.length),g=(t.calcdata||[]).slice();for(t.calcdata=d,p._numBoxes=0,p._numViolins=0,p._violinScaleGroupStats={},t._hmpixcount=0,t._hmlumcount=0,p._piecolormap={},p._sunburstcolormap={},p._treemapcolormap={},p._funnelareacolormap={},i=0;i&lt;u.length;i++)Array.isArray(e)&amp;&amp;-1===e.indexOf(i)&amp;&amp;(d[i]=g[i]);for(i=0;i&lt;u.length;i++)(r=u[i])._arrayAttrs=s.findArrayAttributes(r),r._extremes={};var m=p._subplots.polar||[];for(i=0;i&lt;m.length;i++)l.push(p[m[i]].radialaxis,p[m[i]].angularaxis);for(var v in p._colorAxes){var y=p[v];!1!==y.cauto&amp;&amp;(delete y.cmin,delete y.cmax)}var x=!1;function _(e){if(r=u[e],n=r._module,!0===r.visible&amp;&amp;r.transforms){if(n&amp;&amp;n.calc){var i=n.calc(t,r);i[0]&amp;&amp;i[0].t&amp;&amp;i[0].t._scene&amp;&amp;delete i[0].t._scene.dirty}for(a=0;a&lt;r.transforms.length;a++){var o=r.transforms[a];(n=b[o.type])&amp;&amp;n.calcTransform&amp;&amp;(r._hasCalcTransform=!0,x=!0,n.calcTransform(t,r,o))}}}function w(e,i){if(r=u[e],!!(n=r._module).isContainer===i){var o=[];if(!0===r.visible&amp;&amp;0!==r._length){delete r._indexToPoints;var s=r.transforms||[];for(a=s.length-1;a&gt;=0;a--)if(s[a].enabled){r._indexToPoints=s[a]._indexToPoints;break}n&amp;&amp;n.calc&amp;&amp;(o=n.calc(t,r))}Array.isArray(o)&amp;&amp;o[0]||(o=[{x:f,y:f}]),o[0].t||(o[0].t={}),o[0].trace=r,d[e]=o}}for(z(l,u,p),i=0;i&lt;u.length;i++)w(i,!0);for(i=0;i&lt;u.length;i++)_(i);for(x&amp;&amp;z(l,u,p),i=0;i&lt;u.length;i++)w(i,!0);for(i=0;i&lt;u.length;i++)w(i,!1);O(t);var T=function(t,e){var r,n,i,a,s,l=[];function u(t,r,n){var i=r._id.charAt(0);if(&quot;histogram2dcontour&quot;===t){var a=r._counterAxes[0],o=h.getFromId(e,a),s=&quot;x&quot;===i||&quot;x&quot;===a&amp;&amp;&quot;category&quot;===o.type,l=&quot;y&quot;===i||&quot;y&quot;===a&amp;&amp;&quot;category&quot;===o.type;return function(t,e){return 0===t||0===e||s&amp;&amp;t===n[e].length-1||l&amp;&amp;e===n.length-1?-1:(&quot;y&quot;===i?e:t)-1}}return function(t,e){return&quot;y&quot;===i?e:t}}var f={min:function(t){return c.aggNums(Math.min,null,t)},max:function(t){return c.aggNums(Math.max,null,t)},sum:function(t){return c.aggNums((function(t,e){return t+e}),null,t)},total:function(t){return c.aggNums((function(t,e){return t+e}),null,t)},mean:function(t){return c.mean(t)},median:function(t){return c.median(t)}};for(r=0;r&lt;t.length;r++){var p=t[r];if(&quot;category&quot;===p.type){var d=p.categoryorder.match(P);if(d){var g=d[1],m=d[2],v=p._id.charAt(0),y=&quot;x&quot;===v,x=[];for(n=0;n&lt;p._categories.length;n++)x.push([p._categories[n],[]]);for(n=0;n&lt;p._traceIndices.length;n++){var b=p._traceIndices[n],_=e._fullData[b];if(!0===_.visible){var w=_.type;o.traceIs(_,&quot;histogram&quot;)&amp;&amp;(delete _._xautoBinFinished,delete _._yautoBinFinished);var T=&quot;splom&quot;===w,k=&quot;scattergl&quot;===w,M=e.calcdata[b];for(i=0;i&lt;M.length;i++){var A,S,E=M[i];if(T){var C=_._axesDim[p._id];if(!y){var L=_._diag[C][0];L&amp;&amp;(p=e._fullLayout[h.id2name(L)])}var I=E.trace.dimensions[C].values;for(a=0;a&lt;I.length;a++)for(A=p._categoriesMap[I[a]],s=0;s&lt;E.trace.dimensions.length;s++)if(s!==C){var z=E.trace.dimensions[s];x[A][1].push(z.values[a])}}else if(k){for(a=0;a&lt;E.t.x.length;a++)y?(A=E.t.x[a],S=E.t.y[a]):(A=E.t.y[a],S=E.t.x[a]),x[A][1].push(S);E.t&amp;&amp;E.t._scene&amp;&amp;delete E.t._scene.dirty}else if(E.hasOwnProperty(&quot;z&quot;)){S=E.z;var O=u(_.type,p,S);for(a=0;a&lt;S.length;a++)for(s=0;s&lt;S[a].length;s++)(A=O(s,a))+1&amp;&amp;x[A][1].push(S[a][s])}else for(void 0===(A=E.p)&amp;&amp;(A=E[v]),void 0===(S=E.s)&amp;&amp;(S=E.v),void 0===S&amp;&amp;(S=y?E.y:E.x),Array.isArray(S)||(S=void 0===S?[]:[S]),a=0;a&lt;S.length;a++)x[A][1].push(S[a])}}}p._categoriesValue=x;var D=[];for(n=0;n&lt;x.length;n++)D.push([x[n][0],f[g](x[n][1])]);D.sort((function(t,e){return t[1]-e[1]})),p._categoriesAggregatedValue=D,p._initialCategories=D.map((function(t){return t[0]})),&quot;descending&quot;===m&amp;&amp;p._initialCategories.reverse(),l=l.concat(p.sortByInitialCategories())}}}return l}(l,t);if(T.length){for(p._numBoxes=0,p._numViolins=0,i=0;i&lt;T.length;i++)w(T[i],!0);for(i=0;i&lt;T.length;i++)w(T[i],!1);O(t)}o.getComponentMethod(&quot;fx&quot;,&quot;calc&quot;)(t),o.getComponentMethod(&quot;errorbars&quot;,&quot;calc&quot;)(t)};var P=/(total|sum|min|max|mean|median) (ascending|descending)/;function z(t,e,r){var n={};function i(t){t.clearCalc(),&quot;multicategory&quot;===t.type&amp;&amp;t.setupMultiCategory(e),n[t._id]=1}c.simpleMap(t,i);for(var a=r._axisMatchGroups||[],o=0;o&lt;a.length;o++)for(var s in a[o])n[s]||i(r[h.id2name(s)])}function O(t){var e,r,n,i=t._fullLayout,a=i._visibleModules,o={};for(r=0;r&lt;a.length;r++){var s=a[r],l=s.crossTraceCalc;if(l){var u=s.basePlotModule.name;o[u]?c.pushUnique(o[u],l):o[u]=[l]}}for(n in o){var f=o[n],h=i._subplots[n];if(Array.isArray(h))for(e=0;e&lt;h.length;e++){var p=h[e],d=&quot;cartesian&quot;===n?i._plots[p]:i[p];for(r=0;r&lt;f.length;r++)f[r](t,d,p)}else for(r=0;r&lt;f.length;r++)f[r](t)}}x.rehover=function(t){t._fullLayout._rehover&amp;&amp;t._fullLayout._rehover()},x.redrag=function(t){t._fullLayout._redrag&amp;&amp;t._fullLayout._redrag()},x.generalUpdatePerTraceModule=function(t,e,r,n){var i,a=e.traceHash,o={};for(i=0;i&lt;r.length;i++){var s=r[i],l=s[0].trace;l.visible&amp;&amp;(o[l.type]=o[l.type]||[],o[l.type].push(s))}for(var u in a)if(!o[u]){var f=a[u][0];f[0].trace.visible=!1,o[u]=[f]}for(var h in o){var p=o[h];p[0][0].trace._module.plot(t,e,c.filterVisible(p),n)}e.traceHash=o},x.plotBasePlot=function(t,e,r,n,i){var a=o.getModule(t),s=m(e.calcdata,a)[0];a.plot(e,s,n,i)},x.cleanBasePlot=function(t,e,r,n,i){var a=i._has&amp;&amp;i._has(t),o=r._has&amp;&amp;r._has(t);a&amp;&amp;!o&amp;&amp;i[&quot;_&quot;+t+&quot;layer&quot;].selectAll(&quot;g.trace&quot;).remove()}},{&quot;../components/color&quot;:643,&quot;../constants/numerical&quot;:753,&quot;../lib&quot;:778,&quot;../plot_api/plot_schema&quot;:816,&quot;../plot_api/plot_template&quot;:817,&quot;../plots/get_data&quot;:865,&quot;../registry&quot;:911,&quot;./animation_attributes&quot;:822,&quot;./attributes&quot;:824,&quot;./cartesian/axis_ids&quot;:831,&quot;./cartesian/handle_outline&quot;:838,&quot;./command&quot;:854,&quot;./font_attributes&quot;:856,&quot;./frame_attributes&quot;:857,&quot;./layout_attributes&quot;:882,d3:169,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],892:[function(t,e,r){&quot;use strict&quot;;e.exports={attr:&quot;subplot&quot;,name:&quot;polar&quot;,axisNames:[&quot;angularaxis&quot;,&quot;radialaxis&quot;],axisName2dataArray:{angularaxis:&quot;theta&quot;,radialaxis:&quot;r&quot;},layerNames:[&quot;draglayer&quot;,&quot;plotbg&quot;,&quot;backplot&quot;,&quot;angular-grid&quot;,&quot;radial-grid&quot;,&quot;frontplot&quot;,&quot;angular-line&quot;,&quot;radial-line&quot;,&quot;angular-axis&quot;,&quot;radial-axis&quot;],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}},{}],893:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/polygon&quot;).tester,a=n.findIndexOfMin,o=n.isAngleInsideSector,s=n.angleDelta,l=n.angleDist;function c(t,e,r,n){var i,a,o=n[0],s=n[1],l=f(Math.sin(e)-Math.sin(t)),c=f(Math.cos(e)-Math.cos(t)),u=Math.tan(r),h=f(1/u),p=l/c,d=s-p*o;return h?l&amp;&amp;c?a=u*(i=d/(u-p)):c?(i=s*h,a=s):(i=o,a=o*u):l&amp;&amp;c?(i=0,a=d):c?(i=0,a=s):i=a=NaN,[i,a]}function u(t,e,r,i){return n.isFullCircle([e,r])?function(t,e){var r,n=e.length,i=new Array(n+1);for(r=0;r&lt;n;r++){var a=e[r];i[r]=[t*Math.cos(a),t*Math.sin(a)]}return i[r]=i[0].slice(),i}(t,i):function(t,e,r,i){var s,u,f=i.length,h=[];function p(e){return[t*Math.cos(e),t*Math.sin(e)]}function d(t,e,r){return c(t,e,r,p(t))}function g(t){return n.mod(t,f)}function m(t){return o(t,[e,r])}var v=a(i,(function(t){return m(t)?l(t,e):1/0})),y=d(i[v],i[g(v-1)],e);for(h.push(y),s=v,u=0;u&lt;f;s++,u++){var x=i[g(s)];if(!m(x))break;h.push(p(x))}var b=a(i,(function(t){return m(t)?l(t,r):1/0})),_=d(i[b],i[g(b+1)],r);return h.push(_),h.push([0,0]),h.push(h[0].slice()),h}(t,e,r,i)}function f(t){return Math.abs(t)&gt;1e-10?t:0}function h(t,e,r){e=e||0,r=r||0;for(var n=t.length,i=new Array(n),a=0;a&lt;n;a++){var o=t[a];i[a]=[e+o[0],r-o[1]]}return i}e.exports={isPtInsidePolygon:function(t,e,r,n,a){if(!o(e,n))return!1;var s,l;r[0]&lt;r[1]?(s=r[0],l=r[1]):(s=r[1],l=r[0]);var c=i(u(s,n[0],n[1],a)),f=i(u(l,n[0],n[1],a)),h=[t*Math.cos(e),t*Math.sin(e)];return f.contains(h)&amp;&amp;!c.contains(h)},findPolygonOffset:function(t,e,r,n){for(var i=1/0,a=1/0,o=u(t,e,r,n),s=0;s&lt;o.length;s++){var l=o[s];i=Math.min(i,l[0]),a=Math.min(a,-l[1])}return[i,a]},findEnclosingVertexAngles:function(t,e){var r=a(e,(function(e){var r=s(e,t);return r&gt;0?r:1/0})),i=n.mod(r+1,e.length);return[e[r],e[i]]},findIntersectionXY:c,findXYatLength:function(t,e,r,n){var i=-e*r,a=e*e+1,o=2*(e*i-r),s=i*i+r*r-t*t,l=Math.sqrt(o*o-4*a*s),c=(-o+l)/(2*a),u=(-o-l)/(2*a);return[[c,e*c+i+n],[u,e*u+i+n]]},clampTiny:f,pathPolygon:function(t,e,r,n,i,a){return&quot;M&quot;+h(u(t,e,r,n),i,a).join(&quot;L&quot;)},pathPolygonAnnulus:function(t,e,r,n,i,a,o){var s,l;t&lt;e?(s=t,l=e):(s=e,l=t);var c=h(u(s,r,n,i),a,o);return&quot;M&quot;+h(u(l,r,n,i),a,o).reverse().join(&quot;L&quot;)+&quot;M&quot;+c.join(&quot;L&quot;)}}},{&quot;../../lib&quot;:778,&quot;../../lib/polygon&quot;:790}],894:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../get_data&quot;).getSubplotCalcData,i=t(&quot;../../lib&quot;).counterRegex,a=t(&quot;./polar&quot;),o=t(&quot;./constants&quot;),s=o.attr,l=o.name,c=i(l),u={};u[s]={valType:&quot;subplotid&quot;,dflt:l,editType:&quot;calc&quot;},e.exports={attr:s,name:l,idRoot:l,idRegex:c,attrRegex:c,attributes:u,layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots[l],o=0;o&lt;i.length;o++){var s=i[o],c=n(r,l,s),u=e[s]._subplot;u||(u=a(t,s),e[s]._subplot=u),u.plot(c,e,t._promises)}},clean:function(t,e,r,n){for(var i=n._subplots[l]||[],a=n._has&amp;&amp;n._has(&quot;gl&quot;),o=e._has&amp;&amp;e._has(&quot;gl&quot;),s=a&amp;&amp;!o,c=0;c&lt;i.length;c++){var u=i[c],f=n[u]._subplot;if(!e[u]&amp;&amp;f)for(var h in f.framework.remove(),f.layers[&quot;radial-axis-title&quot;].remove(),f.clipPaths)f.clipPaths[h].remove();s&amp;&amp;f._scene&amp;&amp;(f._scene.destroy(),f._scene=null)}},toSVG:t(&quot;../cartesian&quot;).toSVG}},{&quot;../../lib&quot;:778,&quot;../cartesian&quot;:841,&quot;../get_data&quot;:865,&quot;./constants&quot;:892,&quot;./layout_attributes&quot;:895,&quot;./layout_defaults&quot;:896,&quot;./polar&quot;:903}],895:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../cartesian/layout_attributes&quot;),a=t(&quot;../domain&quot;).attributes,o=t(&quot;../../lib&quot;).extendFlat,s=t(&quot;../../plot_api/edit_types&quot;).overrideAll,l=s({color:i.color,showline:o({},i.showline,{dflt:!0}),linecolor:i.linecolor,linewidth:i.linewidth,showgrid:o({},i.showgrid,{dflt:!0}),gridcolor:i.gridcolor,gridwidth:i.gridwidth},&quot;plot&quot;,&quot;from-root&quot;),c=s({tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,showtickprefix:i.showtickprefix,tickprefix:i.tickprefix,showticksuffix:i.showticksuffix,ticksuffix:i.ticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickfont:i.tickfont,tickangle:i.tickangle,tickformat:i.tickformat,tickformatstops:i.tickformatstops,layer:i.layer},&quot;plot&quot;,&quot;from-root&quot;),u={visible:o({},i.visible,{dflt:!0}),type:o({},i.type,{values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;]}),autotypenumbers:i.autotypenumbers,autorange:o({},i.autorange,{editType:&quot;plot&quot;}),rangemode:{valType:&quot;enumerated&quot;,values:[&quot;tozero&quot;,&quot;nonnegative&quot;,&quot;normal&quot;],dflt:&quot;tozero&quot;,editType:&quot;calc&quot;},range:o({},i.range,{items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],editType:&quot;plot&quot;}),categoryorder:i.categoryorder,categoryarray:i.categoryarray,angle:{valType:&quot;angle&quot;,editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;],dflt:&quot;clockwise&quot;,editType:&quot;plot&quot;},title:{text:o({},i.title.text,{editType:&quot;plot&quot;,dflt:&quot;&quot;}),font:o({},i.title.font,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},hoverformat:i.hoverformat,uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;,_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}};o(u,l,c);var f={visible:o({},i.visible,{dflt:!0}),type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;category&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;,_noTemplating:!0},autotypenumbers:i.autotypenumbers,categoryorder:i.categoryorder,categoryarray:i.categoryarray,thetaunit:{valType:&quot;enumerated&quot;,values:[&quot;radians&quot;,&quot;degrees&quot;],dflt:&quot;degrees&quot;,editType:&quot;calc&quot;},period:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0},direction:{valType:&quot;enumerated&quot;,values:[&quot;counterclockwise&quot;,&quot;clockwise&quot;],dflt:&quot;counterclockwise&quot;,editType:&quot;calc&quot;},rotation:{valType:&quot;angle&quot;,editType:&quot;calc&quot;},hoverformat:i.hoverformat,uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;};o(f,l,c),e.exports={domain:a({name:&quot;polar&quot;,editType:&quot;plot&quot;}),sector:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],dflt:[0,360],editType:&quot;plot&quot;},hole:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;plot&quot;},bgcolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;,dflt:n.background},radialaxis:u,angularaxis:f,gridshape:{valType:&quot;enumerated&quot;,values:[&quot;circular&quot;,&quot;linear&quot;],dflt:&quot;circular&quot;,editType:&quot;plot&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;../cartesian/layout_attributes&quot;:842,&quot;../domain&quot;:855}],896:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;../subplot_defaults&quot;),s=t(&quot;../get_data&quot;).getSubplotData,l=t(&quot;../cartesian/tick_value_defaults&quot;),c=t(&quot;../cartesian/tick_mark_defaults&quot;),u=t(&quot;../cartesian/tick_label_defaults&quot;),f=t(&quot;../cartesian/category_order_defaults&quot;),h=t(&quot;../cartesian/line_grid_defaults&quot;),p=t(&quot;../cartesian/axis_autotype&quot;),d=t(&quot;./layout_attributes&quot;),g=t(&quot;./set_convert&quot;),m=t(&quot;./constants&quot;),v=m.axisNames;function y(t,e,r,o){var p=r(&quot;bgcolor&quot;);o.bgColor=i.combine(p,o.paper_bgcolor);var y=r(&quot;sector&quot;);r(&quot;hole&quot;);var b,_=s(o.fullData,m.name,o.id),w=o.layoutOut;function T(t,e){return r(b+&quot;.&quot;+t,e)}for(var k=0;k&lt;v.length;k++){b=v[k],n.isPlainObject(t[b])||(t[b]={});var M=t[b],A=a.newContainer(e,b);A._id=A._name=b,A._attr=o.id+&quot;.&quot;+b,A._traceIndices=_.map((function(t){return t._expandedIndex}));var S=m.axisName2dataArray[b],E=x(M,A,T,_,S,o);f(M,A,T,{axData:_,dataAttr:S});var C,L,I=T(&quot;visible&quot;);switch(g(A,e,w),T(&quot;uirevision&quot;,e.uirevision),I&amp;&amp;(L=(C=T(&quot;color&quot;))===M.color?C:o.font.color),A._m=1,b){case&quot;radialaxis&quot;:var P=T(&quot;autorange&quot;,!A.isValidRange(M.range));M.autorange=P,!P||&quot;linear&quot;!==E&amp;&amp;&quot;-&quot;!==E||T(&quot;rangemode&quot;),&quot;reversed&quot;===P&amp;&amp;(A._m=-1),T(&quot;range&quot;),A.cleanRange(&quot;range&quot;,{dfltRange:[0,1]}),I&amp;&amp;(T(&quot;side&quot;),T(&quot;angle&quot;,y[0]),T(&quot;title.text&quot;),n.coerceFont(T,&quot;title.font&quot;,{family:o.font.family,size:Math.round(1.2*o.font.size),color:L}));break;case&quot;angularaxis&quot;:if(&quot;date&quot;===E){n.log(&quot;Polar plots do not support date angular axes yet.&quot;);for(var z=0;z&lt;_.length;z++)_[z].visible=!1;E=M.type=A.type=&quot;linear&quot;}T(&quot;linear&quot;===E?&quot;thetaunit&quot;:&quot;period&quot;);var O=T(&quot;direction&quot;);T(&quot;rotation&quot;,{counterclockwise:0,clockwise:90}[O])}if(I)l(M,A,T,A.type),u(M,A,T,A.type,{tickSuffixDflt:&quot;degrees&quot;===A.thetaunit?&quot;\xb0&quot;:void 0}),c(M,A,T,{outerTicks:!0}),T(&quot;showticklabels&quot;)&amp;&amp;(n.coerceFont(T,&quot;tickfont&quot;,{family:o.font.family,size:o.font.size,color:L}),T(&quot;tickangle&quot;),T(&quot;tickformat&quot;)),h(M,A,T,{dfltColor:C,bgColor:o.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:d[b]}),T(&quot;layer&quot;);&quot;category&quot;!==E&amp;&amp;T(&quot;hoverformat&quot;),A._input=M}&quot;category&quot;===e.angularaxis.type&amp;&amp;r(&quot;gridshape&quot;)}function x(t,e,r,n,i,a){var o=r(&quot;autotypenumbers&quot;,a.autotypenumbersDflt);if(&quot;-&quot;===r(&quot;type&quot;)){for(var s,l=0;l&lt;n.length;l++)if(n[l].visible){s=n[l];break}s&amp;&amp;s[i]&amp;&amp;(e.type=p(s[i],&quot;gregorian&quot;,{noMultiCategory:!0,autotypenumbers:o})),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:t.type=e.type}return e.type}e.exports=function(t,e,r){o(t,e,r,{type:m.name,attributes:d,handleDefaults:y,font:e.font,autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,fullData:r,layoutOut:e})}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../cartesian/axis_autotype&quot;:829,&quot;../cartesian/category_order_defaults&quot;:832,&quot;../cartesian/line_grid_defaults&quot;:844,&quot;../cartesian/tick_label_defaults&quot;:849,&quot;../cartesian/tick_mark_defaults&quot;:850,&quot;../cartesian/tick_value_defaults&quot;:851,&quot;../get_data&quot;:865,&quot;../subplot_defaults&quot;:905,&quot;./constants&quot;:892,&quot;./layout_attributes&quot;:895,&quot;./set_convert&quot;:904}],897:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../traces/scatter/attributes&quot;),i=n.marker,a=t(&quot;../../../lib/extend&quot;).extendFlat;[&quot;Area traces are deprecated!&quot;,&quot;Please switch to the *barpolar* trace type.&quot;].join(&quot; &quot;);e.exports={r:a({},n.r,{}),t:a({},n.t,{}),marker:{color:a({},i.color,{}),size:a({},i.size,{}),symbol:a({},i.symbol,{}),opacity:a({},i.opacity,{}),editType:&quot;calc&quot;}}},{&quot;../../../lib/extend&quot;:768,&quot;../../../traces/scatter/attributes&quot;:1187}],898:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../cartesian/layout_attributes&quot;),i=t(&quot;../../../lib/extend&quot;).extendFlat,a=t(&quot;../../../plot_api/edit_types&quot;).overrideAll,o=[&quot;Legacy polar charts are deprecated!&quot;,&quot;Please switch to *polar* subplots.&quot;].join(&quot; &quot;),s=i({},n.domain,{});function l(t,e){return i({},e,{showline:{valType:&quot;boolean&quot;},showticklabels:{valType:&quot;boolean&quot;},tickorientation:{valType:&quot;enumerated&quot;,values:[&quot;horizontal&quot;,&quot;vertical&quot;]},ticklen:{valType:&quot;number&quot;,min:0},tickcolor:{valType:&quot;color&quot;},ticksuffix:{valType:&quot;string&quot;},endpadding:{valType:&quot;number&quot;,description:o},visible:{valType:&quot;boolean&quot;}})}e.exports=a({radialaxis:l(0,{range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},domain:s,orientation:{valType:&quot;number&quot;}}),angularaxis:l(0,{range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,dflt:0},{valType:&quot;number&quot;,dflt:360}]},domain:s}),layout:{direction:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;]},orientation:{valType:&quot;angle&quot;}}},&quot;plot&quot;,&quot;nested&quot;)},{&quot;../../../lib/extend&quot;:768,&quot;../../../plot_api/edit_types&quot;:810,&quot;../../cartesian/layout_attributes&quot;:842}],899:[function(t,e,r){&quot;use strict&quot;;(e.exports=t(&quot;./micropolar&quot;)).manager=t(&quot;./micropolar_manager&quot;)},{&quot;./micropolar&quot;:900,&quot;./micropolar_manager&quot;:901}],900:[function(t,e,r){var n=t(&quot;d3&quot;),i=t(&quot;../../../lib&quot;).extendDeepAll,a=t(&quot;../../../constants/alignment&quot;).MID_SHIFT,o=e.exports={version:&quot;0.2.2&quot;};o.Axis=function(){var t,e,r,s,l={data:[],layout:{}},c={},u={},f=n.dispatch(&quot;hover&quot;),h={};return h.render=function(c){return function(c){e=c||e;var f=l.data,h=l.layout;(&quot;string&quot;==typeof e||e.nodeName)&amp;&amp;(e=n.select(e)),e.datum(f).each((function(e,l){var c=e.slice();u={data:o.util.cloneJson(c),layout:o.util.cloneJson(h)};var f=0;c.forEach((function(t,e){t.color||(t.color=h.defaultColorRange[f],f=(f+1)%h.defaultColorRange.length),t.strokeColor||(t.strokeColor=&quot;LinePlot&quot;===t.geometry?t.color:n.rgb(t.color).darker().toString()),u.data[e].color=t.color,u.data[e].strokeColor=t.strokeColor,u.data[e].strokeDash=t.strokeDash,u.data[e].strokeSize=t.strokeSize}));var p=c.filter((function(t,e){var r=t.visible;return&quot;undefined&quot;==typeof r||!0===r})),d=!1,g=p.map((function(t,e){return d=d||&quot;undefined&quot;!=typeof t.groupId,t}));if(d){var m=n.nest().key((function(t,e){return&quot;undefined&quot;!=typeof t.groupId?t.groupId:&quot;unstacked&quot;})).entries(g),v=[],y=m.map((function(t,e){if(&quot;unstacked&quot;===t.key)return t.values;var r=t.values[0].r.map((function(t,e){return 0}));return t.values.forEach((function(t,e,n){t.yStack=[r],v.push(r),r=o.util.sumArrays(t.r,r)})),t.values}));p=n.merge(y)}p.forEach((function(t,e){t.t=Array.isArray(t.t[0])?t.t:[t.t],t.r=Array.isArray(t.r[0])?t.r:[t.r]}));var x=Math.min(h.width-h.margin.left-h.margin.right,h.height-h.margin.top-h.margin.bottom)/2;x=Math.max(10,x);var b,_=[h.margin.left+x,h.margin.top+x];d?b=[0,n.max(o.util.sumArrays(o.util.arrayLast(p).r[0],o.util.arrayLast(v)))]:b=n.extent(o.util.flattenArray(p.map((function(t,e){return t.r}))));h.radialAxis.domain!=o.DATAEXTENT&amp;&amp;(b[0]=0),r=n.scale.linear().domain(h.radialAxis.domain!=o.DATAEXTENT&amp;&amp;h.radialAxis.domain?h.radialAxis.domain:b).range([0,x]),u.layout.radialAxis.domain=r.domain();var w,T=o.util.flattenArray(p.map((function(t,e){return t.t}))),k=&quot;string&quot;==typeof T[0];k&amp;&amp;(T=o.util.deduplicate(T),w=T.slice(),T=n.range(T.length),p=p.map((function(t,e){var r=t;return t.t=[T],d&amp;&amp;(r.yStack=t.yStack),r})));var M=p.filter((function(t,e){return&quot;LinePlot&quot;===t.geometry||&quot;DotPlot&quot;===t.geometry})).length===p.length,A=null===h.needsEndSpacing?k||!M:h.needsEndSpacing,S=h.angularAxis.domain&amp;&amp;h.angularAxis.domain!=o.DATAEXTENT&amp;&amp;!k&amp;&amp;h.angularAxis.domain[0]&gt;=0?h.angularAxis.domain:n.extent(T),E=Math.abs(T[1]-T[0]);M&amp;&amp;!k&amp;&amp;(E=0);var C=S.slice();A&amp;&amp;k&amp;&amp;(C[1]+=E);var L=h.angularAxis.ticksCount||4;L&gt;8&amp;&amp;(L=L/(L/8)+L%8),h.angularAxis.ticksStep&amp;&amp;(L=(C[1]-C[0])/L);var I=h.angularAxis.ticksStep||(C[1]-C[0])/(L*(h.minorTicks+1));w&amp;&amp;(I=Math.max(Math.round(I),1)),C[2]||(C[2]=I);var P=n.range.apply(this,C);if(P=P.map((function(t,e){return parseFloat(t.toPrecision(12))})),s=n.scale.linear().domain(C.slice(0,2)).range(&quot;clockwise&quot;===h.direction?[0,360]:[360,0]),u.layout.angularAxis.domain=s.domain(),u.layout.angularAxis.endPadding=A?E:0,&quot;undefined&quot;==typeof(t=n.select(this).select(&quot;svg.chart-root&quot;))||t.empty()){var z=(new DOMParser).parseFromString(&quot;&lt;svg xmlns='http://www.w3.org/2000/svg' class='chart-root'&gt;' + '&lt;g class='outer-group'&gt;' + '&lt;g class='chart-group'&gt;' + '&lt;circle class='background-circle'&gt;&lt;/circle&gt;' + '&lt;g class='geometry-group'&gt;&lt;/g&gt;' + '&lt;g class='radial axis-group'&gt;' + '&lt;circle class='outside-circle'&gt;&lt;/circle&gt;' + '&lt;/g&gt;' + '&lt;g class='angular axis-group'&gt;&lt;/g&gt;' + '&lt;g class='guides-group'&gt;&lt;line&gt;&lt;/line&gt;&lt;circle r='0'&gt;&lt;/circle&gt;&lt;/g&gt;' + '&lt;/g&gt;' + '&lt;g class='legend-group'&gt;&lt;/g&gt;' + '&lt;g class='tooltips-group'&gt;&lt;/g&gt;' + '&lt;g class='title-group'&gt;&lt;text&gt;&lt;/text&gt;&lt;/g&gt;' + '&lt;/g&gt;' + '&lt;/svg&gt;&quot;,&quot;application/xml&quot;),O=this.appendChild(this.ownerDocument.importNode(z.documentElement,!0));t=n.select(O)}t.select(&quot;.guides-group&quot;).style({&quot;pointer-events&quot;:&quot;none&quot;}),t.select(&quot;.angular.axis-group&quot;).style({&quot;pointer-events&quot;:&quot;none&quot;}),t.select(&quot;.radial.axis-group&quot;).style({&quot;pointer-events&quot;:&quot;none&quot;});var D,R=t.select(&quot;.chart-group&quot;),F={fill:&quot;none&quot;,stroke:h.tickColor},B={&quot;font-size&quot;:h.font.size,&quot;font-family&quot;:h.font.family,fill:h.font.color,&quot;text-shadow&quot;:[&quot;-1px 0px&quot;,&quot;1px -1px&quot;,&quot;-1px 1px&quot;,&quot;1px 1px&quot;].map((function(t,e){return&quot; &quot;+t+&quot; 0 &quot;+h.font.outlineColor})).join(&quot;,&quot;)};if(h.showLegend){D=t.select(&quot;.legend-group&quot;).attr({transform:&quot;translate(&quot;+[x,h.margin.top]+&quot;)&quot;}).style({display:&quot;block&quot;});var N=p.map((function(t,e){var r=o.util.cloneJson(t);return r.symbol=&quot;DotPlot&quot;===t.geometry?t.dotType||&quot;circle&quot;:&quot;LinePlot&quot;!=t.geometry?&quot;square&quot;:&quot;line&quot;,r.visibleInLegend=&quot;undefined&quot;==typeof t.visibleInLegend||t.visibleInLegend,r.color=&quot;LinePlot&quot;===t.geometry?t.strokeColor:t.color,r}));o.Legend().config({data:p.map((function(t,e){return t.name||&quot;Element&quot;+e})),legendConfig:i({},o.Legend.defaultConfig().legendConfig,{container:D,elements:N,reverseOrder:h.legend.reverseOrder})})();var j=D.node().getBBox();x=Math.min(h.width-j.width-h.margin.left-h.margin.right,h.height-h.margin.top-h.margin.bottom)/2,x=Math.max(10,x),_=[h.margin.left+x,h.margin.top+x],r.range([0,x]),u.layout.radialAxis.domain=r.domain(),D.attr(&quot;transform&quot;,&quot;translate(&quot;+[_[0]+x,_[1]-x]+&quot;)&quot;)}else D=t.select(&quot;.legend-group&quot;).style({display:&quot;none&quot;});t.attr({width:h.width,height:h.height}).style({opacity:h.opacity}),R.attr(&quot;transform&quot;,&quot;translate(&quot;+_+&quot;)&quot;).style({cursor:&quot;crosshair&quot;});var U=[(h.width-(h.margin.left+h.margin.right+2*x+(j?j.width:0)))/2,(h.height-(h.margin.top+h.margin.bottom+2*x))/2];if(U[0]=Math.max(0,U[0]),U[1]=Math.max(0,U[1]),t.select(&quot;.outer-group&quot;).attr(&quot;transform&quot;,&quot;translate(&quot;+U+&quot;)&quot;),h.title&amp;&amp;h.title.text){var V=t.select(&quot;g.title-group text&quot;).style(B).text(h.title.text),q=V.node().getBBox();V.attr({x:_[0]-q.width/2,y:_[1]-x-20})}var H=t.select(&quot;.radial.axis-group&quot;);if(h.radialAxis.gridLinesVisible){var G=H.selectAll(&quot;circle.grid-circle&quot;).data(r.ticks(5));G.enter().append(&quot;circle&quot;).attr({class:&quot;grid-circle&quot;}).style(F),G.attr(&quot;r&quot;,r),G.exit().remove()}H.select(&quot;circle.outside-circle&quot;).attr({r:x}).style(F);var Y=t.select(&quot;circle.background-circle&quot;).attr({r:x}).style({fill:h.backgroundColor,stroke:h.stroke});function W(t,e){return s(t)%360+h.orientation}if(h.radialAxis.visible){var X=n.svg.axis().scale(r).ticks(5).tickSize(5);H.call(X).attr({transform:&quot;rotate(&quot;+h.radialAxis.orientation+&quot;)&quot;}),H.selectAll(&quot;.domain&quot;).style(F),H.selectAll(&quot;g&gt;text&quot;).text((function(t,e){return this.textContent+h.radialAxis.ticksSuffix})).style(B).style({&quot;text-anchor&quot;:&quot;start&quot;}).attr({x:0,y:0,dx:0,dy:0,transform:function(t,e){return&quot;horizontal&quot;===h.radialAxis.tickOrientation?&quot;rotate(&quot;+-h.radialAxis.orientation+&quot;) translate(&quot;+[0,B[&quot;font-size&quot;]]+&quot;)&quot;:&quot;translate(&quot;+[0,B[&quot;font-size&quot;]]+&quot;)&quot;}}),H.selectAll(&quot;g&gt;line&quot;).style({stroke:&quot;black&quot;})}var Z=t.select(&quot;.angular.axis-group&quot;).selectAll(&quot;g.angular-tick&quot;).data(P),J=Z.enter().append(&quot;g&quot;).classed(&quot;angular-tick&quot;,!0);Z.attr({transform:function(t,e){return&quot;rotate(&quot;+W(t)+&quot;)&quot;}}).style({display:h.angularAxis.visible?&quot;block&quot;:&quot;none&quot;}),Z.exit().remove(),J.append(&quot;line&quot;).classed(&quot;grid-line&quot;,!0).classed(&quot;major&quot;,(function(t,e){return e%(h.minorTicks+1)==0})).classed(&quot;minor&quot;,(function(t,e){return!(e%(h.minorTicks+1)==0)})).style(F),J.selectAll(&quot;.minor&quot;).style({stroke:h.minorTickColor}),Z.select(&quot;line.grid-line&quot;).attr({x1:h.tickLength?x-h.tickLength:0,x2:x}).style({display:h.angularAxis.gridLinesVisible?&quot;block&quot;:&quot;none&quot;}),J.append(&quot;text&quot;).classed(&quot;axis-text&quot;,!0).style(B);var K=Z.select(&quot;text.axis-text&quot;).attr({x:x+h.labelOffset,dy:a+&quot;em&quot;,transform:function(t,e){var r=W(t),n=x+h.labelOffset,i=h.angularAxis.tickOrientation;return&quot;horizontal&quot;==i?&quot;rotate(&quot;+-r+&quot; &quot;+n+&quot; 0)&quot;:&quot;radial&quot;==i?r&lt;270&amp;&amp;r&gt;90?&quot;rotate(180 &quot;+n+&quot; 0)&quot;:null:&quot;rotate(&quot;+(r&lt;=180&amp;&amp;r&gt;0?-90:90)+&quot; &quot;+n+&quot; 0)&quot;}}).style({&quot;text-anchor&quot;:&quot;middle&quot;,display:h.angularAxis.labelsVisible?&quot;block&quot;:&quot;none&quot;}).text((function(t,e){return e%(h.minorTicks+1)!=0?&quot;&quot;:w?w[t]+h.angularAxis.ticksSuffix:t+h.angularAxis.ticksSuffix})).style(B);h.angularAxis.rewriteTicks&amp;&amp;K.text((function(t,e){return e%(h.minorTicks+1)!=0?&quot;&quot;:h.angularAxis.rewriteTicks(this.textContent,e)}));var Q=n.max(R.selectAll(&quot;.angular-tick text&quot;)[0].map((function(t,e){return t.getCTM().e+t.getBBox().width})));D.attr({transform:&quot;translate(&quot;+[x+Q,h.margin.top]+&quot;)&quot;});var $=t.select(&quot;g.geometry-group&quot;).selectAll(&quot;g&quot;).size()&gt;0,tt=t.select(&quot;g.geometry-group&quot;).selectAll(&quot;g.geometry&quot;).data(p);if(tt.enter().append(&quot;g&quot;).attr({class:function(t,e){return&quot;geometry geometry&quot;+e}}),tt.exit().remove(),p[0]||$){var et=[];p.forEach((function(t,e){var n={};n.radialScale=r,n.angularScale=s,n.container=tt.filter((function(t,r){return r==e})),n.geometry=t.geometry,n.orientation=h.orientation,n.direction=h.direction,n.index=e,et.push({data:t,geometryConfig:n})}));var rt=n.nest().key((function(t,e){return&quot;undefined&quot;!=typeof t.data.groupId||&quot;unstacked&quot;})).entries(et),nt=[];rt.forEach((function(t,e){&quot;unstacked&quot;===t.key?nt=nt.concat(t.values.map((function(t,e){return[t]}))):nt.push(t.values)})),nt.forEach((function(t,e){var r;r=Array.isArray(t)?t[0].geometryConfig.geometry:t.geometryConfig.geometry;var n=t.map((function(t,e){return i(o[r].defaultConfig(),t)}));o[r]().config(n)()}))}var it,at,ot=t.select(&quot;.guides-group&quot;),st=t.select(&quot;.tooltips-group&quot;),lt=o.tooltipPanel().config({container:st,fontSize:8})(),ct=o.tooltipPanel().config({container:st,fontSize:8})(),ut=o.tooltipPanel().config({container:st,hasTick:!0})();if(!k){var ft=ot.select(&quot;line&quot;).attr({x1:0,y1:0,y2:0}).style({stroke:&quot;grey&quot;,&quot;pointer-events&quot;:&quot;none&quot;});R.on(&quot;mousemove.angular-guide&quot;,(function(t,e){var r=o.util.getMousePos(Y).angle;ft.attr({x2:-x,transform:&quot;rotate(&quot;+r+&quot;)&quot;}).style({opacity:.5});var n=(r+180+360-h.orientation)%360;it=s.invert(n);var i=o.util.convertToCartesian(x+12,r+180);lt.text(o.util.round(it)).move([i[0]+_[0],i[1]+_[1]])})).on(&quot;mouseout.angular-guide&quot;,(function(t,e){ot.select(&quot;line&quot;).style({opacity:0})}))}var ht=ot.select(&quot;circle&quot;).style({stroke:&quot;grey&quot;,fill:&quot;none&quot;});R.on(&quot;mousemove.radial-guide&quot;,(function(t,e){var n=o.util.getMousePos(Y).radius;ht.attr({r:n}).style({opacity:.5}),at=r.invert(o.util.getMousePos(Y).radius);var i=o.util.convertToCartesian(n,h.radialAxis.orientation);ct.text(o.util.round(at)).move([i[0]+_[0],i[1]+_[1]])})).on(&quot;mouseout.radial-guide&quot;,(function(t,e){ht.style({opacity:0}),ut.hide(),lt.hide(),ct.hide()})),t.selectAll(&quot;.geometry-group .mark&quot;).on(&quot;mouseover.tooltip&quot;,(function(e,r){var i=n.select(this),a=this.style.fill,s=&quot;black&quot;,l=this.style.opacity||1;if(i.attr({&quot;data-opacity&quot;:l}),a&amp;&amp;&quot;none&quot;!==a){i.attr({&quot;data-fill&quot;:a}),s=n.hsl(a).darker().toString(),i.style({fill:s,opacity:1});var c={t:o.util.round(e[0]),r:o.util.round(e[1])};k&amp;&amp;(c.t=w[e[0]]);var u=&quot;t: &quot;+c.t+&quot;, r: &quot;+c.r,f=this.getBoundingClientRect(),h=t.node().getBoundingClientRect(),p=[f.left+f.width/2-U[0]-h.left,f.top+f.height/2-U[1]-h.top];ut.config({color:s}).text(u),ut.move(p)}else a=this.style.stroke||&quot;black&quot;,i.attr({&quot;data-stroke&quot;:a}),s=n.hsl(a).darker().toString(),i.style({stroke:s,opacity:1})})).on(&quot;mousemove.tooltip&quot;,(function(t,e){if(0!=n.event.which)return!1;n.select(this).attr(&quot;data-fill&quot;)&amp;&amp;ut.show()})).on(&quot;mouseout.tooltip&quot;,(function(t,e){ut.hide();var r=n.select(this),i=r.attr(&quot;data-fill&quot;);i?r.style({fill:i,opacity:r.attr(&quot;data-opacity&quot;)}):r.style({stroke:r.attr(&quot;data-stroke&quot;),opacity:r.attr(&quot;data-opacity&quot;)})}))}))}(c),this},h.config=function(t){if(!arguments.length)return l;var e=o.util.cloneJson(t);return e.data.forEach((function(t,e){l.data[e]||(l.data[e]={}),i(l.data[e],o.Axis.defaultConfig().data[0]),i(l.data[e],t)})),i(l.layout,o.Axis.defaultConfig().layout),i(l.layout,e.layout),this},h.getLiveConfig=function(){return u},h.getinputConfig=function(){return c},h.radialScale=function(t){return r},h.angularScale=function(t){return s},h.svg=function(){return t},n.rebind(h,f,&quot;on&quot;),h},o.Axis.defaultConfig=function(t,e){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:&quot;Line1&quot;,geometry:&quot;LinePlot&quot;,color:null,strokeDash:&quot;solid&quot;,strokeColor:null,strokeSize:&quot;1&quot;,visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:n.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:&quot;gray&quot;,outlineColor:&quot;white&quot;,family:&quot;Tahoma, sans-serif&quot;},direction:&quot;clockwise&quot;,orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:&quot;&quot;,visible:!0,gridLinesVisible:!0,tickOrientation:&quot;horizontal&quot;,rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:&quot;&quot;,visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:&quot;horizontal&quot;,rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:&quot;silver&quot;,minorTickColor:&quot;#eee&quot;,backgroundColor:&quot;none&quot;,needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},o.util={},o.DATAEXTENT=&quot;dataExtent&quot;,o.AREA=&quot;AreaChart&quot;,o.LINE=&quot;LinePlot&quot;,o.DOT=&quot;DotPlot&quot;,o.BAR=&quot;BarChart&quot;,o.util._override=function(t,e){for(var r in t)r in e&amp;&amp;(e[r]=t[r])},o.util._extend=function(t,e){for(var r in t)e[r]=t[r]},o.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},o.util.dataFromEquation2=function(t,e){var r=e||6;return n.range(0,360+r,r).map((function(e,r){var n=e*Math.PI/180;return[e,t(n)]}))},o.util.dataFromEquation=function(t,e,r){var i=e||6,a=[],o=[];n.range(0,360+i,i).forEach((function(e,r){var n=e*Math.PI/180,i=t(n);a.push(e),o.push(i)}));var s={t:a,r:o};return r&amp;&amp;(s.name=r),s},o.util.ensureArray=function(t,e){if(&quot;undefined&quot;==typeof t)return null;var r=[].concat(t);return n.range(e).map((function(t,e){return r[e]||r[0]}))},o.util.fillArrays=function(t,e,r){return e.forEach((function(e,n){t[e]=o.util.ensureArray(t[e],r)})),t},o.util.cloneJson=function(t){return JSON.parse(JSON.stringify(t))},o.util.validateKeys=function(t,e){&quot;string&quot;==typeof e&amp;&amp;(e=e.split(&quot;.&quot;));var r=e.shift();return t[r]&amp;&amp;(!e.length||objHasKeys(t[r],e))},o.util.sumArrays=function(t,e){return n.zip(t,e).map((function(t,e){return n.sum(t)}))},o.util.arrayLast=function(t){return t[t.length-1]},o.util.arrayEqual=function(t,e){for(var r=Math.max(t.length,e.length,1);r-- &gt;=0&amp;&amp;t[r]===e[r];);return-2===r},o.util.flattenArray=function(t){for(var e=[];!o.util.arrayEqual(e,t);)e=t,t=[].concat.apply([],t);return t},o.util.deduplicate=function(t){return t.filter((function(t,e,r){return r.indexOf(t)==e}))},o.util.convertToCartesian=function(t,e){var r=e*Math.PI/180;return[t*Math.cos(r),t*Math.sin(r)]},o.util.round=function(t,e){var r=e||2,n=Math.pow(10,r);return Math.round(t*n)/n},o.util.getMousePos=function(t){var e=n.mouse(t.node()),r=e[0],i=e[1],a={};return a.x=r,a.y=i,a.pos=e,a.angle=180*(Math.atan2(i,r)+Math.PI)/Math.PI,a.radius=Math.sqrt(r*r+i*i),a},o.util.duplicatesCount=function(t){for(var e,r={},n={},i=0,a=t.length;i&lt;a;i++)(e=t[i])in r?(r[e]++,n[e]=r[e]):r[e]=1;return n},o.util.duplicates=function(t){return Object.keys(o.util.duplicatesCount(t))},o.util.translator=function(t,e,r,n){if(n){var i=r.slice();r=e,e=i}var a=e.reduce((function(t,e){if(&quot;undefined&quot;!=typeof t)return t[e]}),t);&quot;undefined&quot;!=typeof a&amp;&amp;(e.reduce((function(t,r,n){if(&quot;undefined&quot;!=typeof t)return n===e.length-1&amp;&amp;delete t[r],t[r]}),t),r.reduce((function(t,e,n){return&quot;undefined&quot;==typeof t[e]&amp;&amp;(t[e]={}),n===r.length-1&amp;&amp;(t[e]=a),t[e]}),t))},o.PolyChart=function(){var t=[o.PolyChart.defaultConfig()],e=n.dispatch(&quot;hover&quot;),r={solid:&quot;none&quot;,dash:[5,2],dot:[2,5]};function a(){var e=t[0].geometryConfig,i=e.container;&quot;string&quot;==typeof i&amp;&amp;(i=n.select(i)),i.datum(t).each((function(t,i){var a=!!t[0].data.yStack,o=t.map((function(t,e){return a?n.zip(t.data.t[0],t.data.r[0],t.data.yStack[0]):n.zip(t.data.t[0],t.data.r[0])})),s=e.angularScale,l=e.radialScale.domain()[0],c={bar:function(r,i,a){var o=t[a].data,l=e.radialScale(r[1])-e.radialScale(0),c=e.radialScale(r[2]||0),u=o.barWidth;n.select(this).attr({class:&quot;mark bar&quot;,d:&quot;M&quot;+[[l+c,-u/2],[l+c,u/2],[c,u/2],[c,-u/2]].join(&quot;L&quot;)+&quot;Z&quot;,transform:function(t,r){return&quot;rotate(&quot;+(e.orientation+s(t[0]))+&quot;)&quot;}})}};c.dot=function(r,i,a){var o=r[2]?[r[0],r[1]+r[2]]:r,s=n.svg.symbol().size(t[a].data.dotSize).type(t[a].data.dotType)(r,i);n.select(this).attr({class:&quot;mark dot&quot;,d:s,transform:function(t,r){var n,i,a,s=(n=function(t,r){var n=e.radialScale(t[1]),i=(e.angularScale(t[0])+e.orientation)*Math.PI/180;return{r:n,t:i}}(o),i=n.r*Math.cos(n.t),a=n.r*Math.sin(n.t),{x:i,y:a});return&quot;translate(&quot;+[s.x,s.y]+&quot;)&quot;}})};var u=n.svg.line.radial().interpolate(t[0].data.lineInterpolation).radius((function(t){return e.radialScale(t[1])})).angle((function(t){return e.angularScale(t[0])*Math.PI/180}));c.line=function(r,i,a){var s=r[2]?o[a].map((function(t,e){return[t[0],t[1]+t[2]]})):o[a];if(n.select(this).each(c.dot).style({opacity:function(e,r){return+t[a].data.dotVisible},fill:d.stroke(r,i,a)}).attr({class:&quot;mark dot&quot;}),!(i&gt;0)){var l=n.select(this.parentNode).selectAll(&quot;path.line&quot;).data([0]);l.enter().insert(&quot;path&quot;),l.attr({class:&quot;line&quot;,d:u(s),transform:function(t,r){return&quot;rotate(&quot;+(e.orientation+90)+&quot;)&quot;},&quot;pointer-events&quot;:&quot;none&quot;}).style({fill:function(t,e){return d.fill(r,i,a)},&quot;fill-opacity&quot;:0,stroke:function(t,e){return d.stroke(r,i,a)},&quot;stroke-width&quot;:function(t,e){return d[&quot;stroke-width&quot;](r,i,a)},&quot;stroke-dasharray&quot;:function(t,e){return d[&quot;stroke-dasharray&quot;](r,i,a)},opacity:function(t,e){return d.opacity(r,i,a)},display:function(t,e){return d.display(r,i,a)}})}};var f=e.angularScale.range(),h=Math.abs(f[1]-f[0])/o[0].length*Math.PI/180,p=n.svg.arc().startAngle((function(t){return-h/2})).endAngle((function(t){return h/2})).innerRadius((function(t){return e.radialScale(l+(t[2]||0))})).outerRadius((function(t){return e.radialScale(l+(t[2]||0))+e.radialScale(t[1])}));c.arc=function(t,r,i){n.select(this).attr({class:&quot;mark arc&quot;,d:p,transform:function(t,r){return&quot;rotate(&quot;+(e.orientation+s(t[0])+90)+&quot;)&quot;}})};var d={fill:function(e,r,n){return t[n].data.color},stroke:function(e,r,n){return t[n].data.strokeColor},&quot;stroke-width&quot;:function(e,r,n){return t[n].data.strokeSize+&quot;px&quot;},&quot;stroke-dasharray&quot;:function(e,n,i){return r[t[i].data.strokeDash]},opacity:function(e,r,n){return t[n].data.opacity},display:function(e,r,n){return&quot;undefined&quot;==typeof t[n].data.visible||t[n].data.visible?&quot;block&quot;:&quot;none&quot;}},g=n.select(this).selectAll(&quot;g.layer&quot;).data(o);g.enter().append(&quot;g&quot;).attr({class:&quot;layer&quot;});var m=g.selectAll(&quot;path.mark&quot;).data((function(t,e){return t}));m.enter().append(&quot;path&quot;).attr({class:&quot;mark&quot;}),m.style(d).each(c[e.geometryType]),m.exit().remove(),g.exit().remove()}))}return a.config=function(e){return arguments.length?(e.forEach((function(e,r){t[r]||(t[r]={}),i(t[r],o.PolyChart.defaultConfig()),i(t[r],e)})),this):t},a.getColorScale=function(){},n.rebind(a,e,&quot;on&quot;),a},o.PolyChart.defaultConfig=function(){return{data:{name:&quot;geom1&quot;,t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:&quot;circle&quot;,dotSize:64,dotVisible:!1,barWidth:20,color:&quot;#ffa500&quot;,strokeSize:1,strokeColor:&quot;silver&quot;,strokeDash:&quot;solid&quot;,opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:&quot;LinePlot&quot;,geometryType:&quot;arc&quot;,direction:&quot;clockwise&quot;,orientation:0,container:&quot;body&quot;,radialScale:null,angularScale:null,colorScale:n.scale.category20()}}},o.BarChart=function(){return o.PolyChart()},o.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;bar&quot;}}},o.AreaChart=function(){return o.PolyChart()},o.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;arc&quot;}}},o.DotPlot=function(){return o.PolyChart()},o.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;dot&quot;,dotType:&quot;circle&quot;}}},o.LinePlot=function(){return o.PolyChart()},o.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;line&quot;}}},o.Legend=function(){var t=o.Legend.defaultConfig(),e=n.dispatch(&quot;hover&quot;);function r(){var e=t.legendConfig,a=t.data.map((function(t,r){return[].concat(t).map((function(t,n){var a=i({},e.elements[r]);return a.name=t,a.color=[].concat(e.elements[r].color)[n],a}))})),o=n.merge(a);o=o.filter((function(t,r){return e.elements[r]&amp;&amp;(e.elements[r].visibleInLegend||&quot;undefined&quot;==typeof e.elements[r].visibleInLegend)})),e.reverseOrder&amp;&amp;(o=o.reverse());var s=e.container;(&quot;string&quot;==typeof s||s.nodeName)&amp;&amp;(s=n.select(s));var l=o.map((function(t,e){return t.color})),c=e.fontSize,u=null==e.isContinuous?&quot;number&quot;==typeof o[0]:e.isContinuous,f=u?e.height:c*o.length,h=s.classed(&quot;legend-group&quot;,!0).selectAll(&quot;svg&quot;).data([0]),p=h.enter().append(&quot;svg&quot;).attr({width:300,height:f+c,xmlns:&quot;http://www.w3.org/2000/svg&quot;,&quot;xmlns:xlink&quot;:&quot;http://www.w3.org/1999/xlink&quot;,version:&quot;1.1&quot;});p.append(&quot;g&quot;).classed(&quot;legend-axis&quot;,!0),p.append(&quot;g&quot;).classed(&quot;legend-marks&quot;,!0);var d=n.range(o.length),g=n.scale[u?&quot;linear&quot;:&quot;ordinal&quot;]().domain(d).range(l),m=n.scale[u?&quot;linear&quot;:&quot;ordinal&quot;]().domain(d)[u?&quot;range&quot;:&quot;rangePoints&quot;]([0,f]);if(u){var v=h.select(&quot;.legend-marks&quot;).append(&quot;defs&quot;).append(&quot;linearGradient&quot;).attr({id:&quot;grad1&quot;,x1:&quot;0%&quot;,y1:&quot;0%&quot;,x2:&quot;0%&quot;,y2:&quot;100%&quot;}).selectAll(&quot;stop&quot;).data(l);v.enter().append(&quot;stop&quot;),v.attr({offset:function(t,e){return e/(l.length-1)*100+&quot;%&quot;}}).style({&quot;stop-color&quot;:function(t,e){return t}}),h.append(&quot;rect&quot;).classed(&quot;legend-mark&quot;,!0).attr({height:e.height,width:e.colorBandWidth,fill:&quot;url(#grad1)&quot;})}else{var y=h.select(&quot;.legend-marks&quot;).selectAll(&quot;path.legend-mark&quot;).data(o);y.enter().append(&quot;path&quot;).classed(&quot;legend-mark&quot;,!0),y.attr({transform:function(t,e){return&quot;translate(&quot;+[c/2,m(e)+c/2]+&quot;)&quot;},d:function(t,e){var r,i,a,o=t.symbol;return a=3*(i=c),&quot;line&quot;===(r=o)?&quot;M&quot;+[[-i/2,-i/12],[i/2,-i/12],[i/2,i/12],[-i/2,i/12]]+&quot;Z&quot;:-1!=n.svg.symbolTypes.indexOf(r)?n.svg.symbol().type(r).size(a)():n.svg.symbol().type(&quot;square&quot;).size(a)()},fill:function(t,e){return g(e)}}),y.exit().remove()}var x=n.svg.axis().scale(m).orient(&quot;right&quot;),b=h.select(&quot;g.legend-axis&quot;).attr({transform:&quot;translate(&quot;+[u?e.colorBandWidth:c,c/2]+&quot;)&quot;}).call(x);return b.selectAll(&quot;.domain&quot;).style({fill:&quot;none&quot;,stroke:&quot;none&quot;}),b.selectAll(&quot;line&quot;).style({fill:&quot;none&quot;,stroke:u?e.textColor:&quot;none&quot;}),b.selectAll(&quot;text&quot;).style({fill:e.textColor,&quot;font-size&quot;:e.fontSize}).text((function(t,e){return o[e].name})),r}return r.config=function(e){return arguments.length?(i(t,e),this):t},n.rebind(r,e,&quot;on&quot;),r},o.Legend.defaultConfig=function(t,e){return{data:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],legendConfig:{elements:[{symbol:&quot;line&quot;,color:&quot;red&quot;},{symbol:&quot;square&quot;,color:&quot;yellow&quot;},{symbol:&quot;diamond&quot;,color:&quot;limegreen&quot;}],height:150,colorBandWidth:30,fontSize:12,container:&quot;body&quot;,isContinuous:null,textColor:&quot;grey&quot;,reverseOrder:!1}}},o.tooltipPanel=function(){var t,e,r,a={container:null,hasTick:!1,fontSize:12,color:&quot;white&quot;,padding:5},s=&quot;tooltip-&quot;+o.tooltipPanel.uid++,l=10,c=function(){var n=(t=a.container.selectAll(&quot;g.&quot;+s).data([0])).enter().append(&quot;g&quot;).classed(s,!0).style({&quot;pointer-events&quot;:&quot;none&quot;,display:&quot;none&quot;});return r=n.append(&quot;path&quot;).style({fill:&quot;white&quot;,&quot;fill-opacity&quot;:.9}).attr({d:&quot;M0 0&quot;}),e=n.append(&quot;text&quot;).attr({dx:a.padding+l,dy:.3*+a.fontSize}),c};return c.text=function(i){var o=n.hsl(a.color).l,s=o&gt;=.5?&quot;#aaa&quot;:&quot;white&quot;,u=o&gt;=.5?&quot;black&quot;:&quot;white&quot;,f=i||&quot;&quot;;e.style({fill:u,&quot;font-size&quot;:a.fontSize+&quot;px&quot;}).text(f);var h=a.padding,p=e.node().getBBox(),d={fill:a.color,stroke:s,&quot;stroke-width&quot;:&quot;2px&quot;},g=p.width+2*h+l,m=p.height+2*h;return r.attr({d:&quot;M&quot;+[[l,-m/2],[l,-m/4],[a.hasTick?0:l,0],[l,m/4],[l,m/2],[g,m/2],[g,-m/2]].join(&quot;L&quot;)+&quot;Z&quot;}).style(d),t.attr({transform:&quot;translate(&quot;+[l,-m/2+2*h]+&quot;)&quot;}),t.style({display:&quot;block&quot;}),c},c.move=function(e){if(t)return t.attr({transform:&quot;translate(&quot;+[e[0],e[1]]+&quot;)&quot;}).style({display:&quot;block&quot;}),c},c.hide=function(){if(t)return t.style({display:&quot;none&quot;}),c},c.show=function(){if(t)return t.style({display:&quot;block&quot;}),c},c.config=function(t){return i(a,t),c},c},o.tooltipPanel.uid=1,o.adapter={},o.adapter.plotly=function(){var t={convert:function(t,e){var r={};if(t.data&amp;&amp;(r.data=t.data.map((function(t,r){var n=i({},t);return[[n,[&quot;marker&quot;,&quot;color&quot;],[&quot;color&quot;]],[n,[&quot;marker&quot;,&quot;opacity&quot;],[&quot;opacity&quot;]],[n,[&quot;marker&quot;,&quot;line&quot;,&quot;color&quot;],[&quot;strokeColor&quot;]],[n,[&quot;marker&quot;,&quot;line&quot;,&quot;dash&quot;],[&quot;strokeDash&quot;]],[n,[&quot;marker&quot;,&quot;line&quot;,&quot;width&quot;],[&quot;strokeSize&quot;]],[n,[&quot;marker&quot;,&quot;symbol&quot;],[&quot;dotType&quot;]],[n,[&quot;marker&quot;,&quot;size&quot;],[&quot;dotSize&quot;]],[n,[&quot;marker&quot;,&quot;barWidth&quot;],[&quot;barWidth&quot;]],[n,[&quot;line&quot;,&quot;interpolation&quot;],[&quot;lineInterpolation&quot;]],[n,[&quot;showlegend&quot;],[&quot;visibleInLegend&quot;]]].forEach((function(t,r){o.util.translator.apply(null,t.concat(e))})),e||delete n.marker,e&amp;&amp;delete n.groupId,e?(&quot;LinePlot&quot;===n.geometry?(n.type=&quot;scatter&quot;,!0===n.dotVisible?(delete n.dotVisible,n.mode=&quot;lines+markers&quot;):n.mode=&quot;lines&quot;):&quot;DotPlot&quot;===n.geometry?(n.type=&quot;scatter&quot;,n.mode=&quot;markers&quot;):&quot;AreaChart&quot;===n.geometry?n.type=&quot;area&quot;:&quot;BarChart&quot;===n.geometry&amp;&amp;(n.type=&quot;bar&quot;),delete n.geometry):(&quot;scatter&quot;===n.type?&quot;lines&quot;===n.mode?n.geometry=&quot;LinePlot&quot;:&quot;markers&quot;===n.mode?n.geometry=&quot;DotPlot&quot;:&quot;lines+markers&quot;===n.mode&amp;&amp;(n.geometry=&quot;LinePlot&quot;,n.dotVisible=!0):&quot;area&quot;===n.type?n.geometry=&quot;AreaChart&quot;:&quot;bar&quot;===n.type&amp;&amp;(n.geometry=&quot;BarChart&quot;),delete n.mode,delete n.type),n})),!e&amp;&amp;t.layout&amp;&amp;&quot;stack&quot;===t.layout.barmode)){var a=o.util.duplicates(r.data.map((function(t,e){return t.geometry})));r.data.forEach((function(t,e){var n=a.indexOf(t.geometry);-1!=n&amp;&amp;(r.data[e].groupId=n)}))}if(t.layout){var s=i({},t.layout);if([[s,[&quot;plot_bgcolor&quot;],[&quot;backgroundColor&quot;]],[s,[&quot;showlegend&quot;],[&quot;showLegend&quot;]],[s,[&quot;radialaxis&quot;],[&quot;radialAxis&quot;]],[s,[&quot;angularaxis&quot;],[&quot;angularAxis&quot;]],[s.angularaxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.angularaxis,[&quot;showticklabels&quot;],[&quot;labelsVisible&quot;]],[s.angularaxis,[&quot;nticks&quot;],[&quot;ticksCount&quot;]],[s.angularaxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.angularaxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.angularaxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.angularaxis,[&quot;endpadding&quot;],[&quot;endPadding&quot;]],[s.radialaxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.radialaxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.radialaxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.radialaxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.angularAxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.angularAxis,[&quot;showticklabels&quot;],[&quot;labelsVisible&quot;]],[s.angularAxis,[&quot;nticks&quot;],[&quot;ticksCount&quot;]],[s.angularAxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.angularAxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.angularAxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.angularAxis,[&quot;endpadding&quot;],[&quot;endPadding&quot;]],[s.radialAxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.radialAxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.radialAxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.radialAxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.font,[&quot;outlinecolor&quot;],[&quot;outlineColor&quot;]],[s.legend,[&quot;traceorder&quot;],[&quot;reverseOrder&quot;]],[s,[&quot;labeloffset&quot;],[&quot;labelOffset&quot;]],[s,[&quot;defaultcolorrange&quot;],[&quot;defaultColorRange&quot;]]].forEach((function(t,r){o.util.translator.apply(null,t.concat(e))})),e?(&quot;undefined&quot;!=typeof s.tickLength&amp;&amp;(s.angularaxis.ticklen=s.tickLength,delete s.tickLength),s.tickColor&amp;&amp;(s.angularaxis.tickcolor=s.tickColor,delete s.tickColor)):(s.angularAxis&amp;&amp;&quot;undefined&quot;!=typeof s.angularAxis.ticklen&amp;&amp;(s.tickLength=s.angularAxis.ticklen),s.angularAxis&amp;&amp;&quot;undefined&quot;!=typeof s.angularAxis.tickcolor&amp;&amp;(s.tickColor=s.angularAxis.tickcolor)),s.legend&amp;&amp;&quot;boolean&quot;!=typeof s.legend.reverseOrder&amp;&amp;(s.legend.reverseOrder=&quot;normal&quot;!=s.legend.reverseOrder),s.legend&amp;&amp;&quot;boolean&quot;==typeof s.legend.traceorder&amp;&amp;(s.legend.traceorder=s.legend.traceorder?&quot;reversed&quot;:&quot;normal&quot;,delete s.legend.reverseOrder),s.margin&amp;&amp;&quot;undefined&quot;!=typeof s.margin.t){var l=[&quot;t&quot;,&quot;r&quot;,&quot;b&quot;,&quot;l&quot;,&quot;pad&quot;],c=[&quot;top&quot;,&quot;right&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;pad&quot;],u={};n.entries(s.margin).forEach((function(t,e){u[c[l.indexOf(t.key)]]=t.value})),s.margin=u}e&amp;&amp;(delete s.needsEndSpacing,delete s.minorTickColor,delete s.minorTicks,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksStep,delete s.angularaxis.rewriteTicks,delete s.angularaxis.nticks,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksStep,delete s.radialaxis.rewriteTicks,delete s.radialaxis.nticks),r.layout=s}return r}};return t}},{&quot;../../../constants/alignment&quot;:745,&quot;../../../lib&quot;:778,d3:169}],901:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../../lib&quot;),a=t(&quot;../../../components/color&quot;),o=t(&quot;./micropolar&quot;),s=t(&quot;./undo_manager&quot;),l=i.extendDeepAll,c=e.exports={};c.framework=function(t){var e,r,i,a,u,f=new s;function h(r,s){return s&amp;&amp;(u=s),n.select(n.select(u).node().parentNode).selectAll(&quot;.svg-container&gt;*:not(.chart-root)&quot;).remove(),e=e?l(e,r):r,i||(i=o.Axis()),a=o.adapter.plotly().convert(e),i.config(a).render(u),t.data=e.data,t.layout=e.layout,c.fillLayout(t),e}return h.isPolar=!0,h.svg=function(){return i.svg()},h.getConfig=function(){return e},h.getLiveConfig=function(){return o.adapter.plotly().convert(i.getLiveConfig(),!0)},h.getLiveScales=function(){return{t:i.angularScale(),r:i.radialScale()}},h.setUndoPoint=function(){var t,n,i=this,a=o.util.cloneJson(e);t=a,n=r,f.add({undo:function(){n&amp;&amp;i(n)},redo:function(){i(t)}}),r=o.util.cloneJson(a)},h.undo=function(){f.undo()},h.redo=function(){f.redo()},h},c.fillLayout=function(t){var e=n.select(t).selectAll(&quot;.plot-container&quot;),r=e.selectAll(&quot;.svg-container&quot;),i=t.framework&amp;&amp;t.framework.svg&amp;&amp;t.framework.svg(),o={width:800,height:600,paper_bgcolor:a.background,_container:e,_paperdiv:r,_paper:i};t._fullLayout=l(o,t.layout)}},{&quot;../../../components/color&quot;:643,&quot;../../../lib&quot;:778,&quot;./micropolar&quot;:900,&quot;./undo_manager&quot;:902,d3:169}],902:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e=[],r=-1,n=!1;function i(t,e){return t?(n=!0,t[e](),n=!1,this):this}return{add:function(t){return n||(e.splice(r+1,e.length-r),e.push(t),r=e.length-1),this},setCallback:function(e){t=e},undo:function(){var n=e[r];return n?(i(n,&quot;undo&quot;),r-=1,t&amp;&amp;t(n.undo),this):this},redo:function(){var n=e[r+1];return n?(i(n,&quot;redo&quot;),r+=1,t&amp;&amp;t(n.redo),this):this},clear:function(){e=[],r=-1},hasUndo:function(){return-1!==r},hasRedo:function(){return r&lt;e.length-1},getCommands:function(){return e},getPreviousCommand:function(){return e[r-1]},getIndex:function(){return r}}}},{}],903:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=o.strRotate,l=o.strTranslate,c=t(&quot;../../components/color&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../plots&quot;),h=t(&quot;../../plots/cartesian/axes&quot;),p=t(&quot;../cartesian/set_convert&quot;),d=t(&quot;./set_convert&quot;),g=t(&quot;../cartesian/autorange&quot;).doAutoRange,m=t(&quot;../cartesian/dragbox&quot;),v=t(&quot;../../components/dragelement&quot;),y=t(&quot;../../components/fx&quot;),x=t(&quot;../../components/titles&quot;),b=t(&quot;../cartesian/select&quot;).prepSelect,_=t(&quot;../cartesian/select&quot;).selectOnClick,w=t(&quot;../cartesian/select&quot;).clearSelect,T=t(&quot;../../lib/setcursor&quot;),k=t(&quot;../../lib/clear_gl_canvases&quot;),M=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,A=t(&quot;../../constants/alignment&quot;).MID_SHIFT,S=t(&quot;./constants&quot;),E=t(&quot;./helpers&quot;),C=o._,L=o.mod,I=o.deg2rad,P=o.rad2deg;function z(t,e){this.id=e,this.gd=t,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var r=t._fullLayout,n=&quot;clip&quot;+r._uid+e;this.clipIds.forTraces=n+&quot;-for-traces&quot;,this.clipPaths.forTraces=r._clips.append(&quot;clipPath&quot;).attr(&quot;id&quot;,this.clipIds.forTraces),this.clipPaths.forTraces.append(&quot;path&quot;),this.framework=r._polarlayer.append(&quot;g&quot;).attr(&quot;class&quot;,e),this.radialTickLayout=null,this.angularTickLayout=null}var O=z.prototype;function D(t){var e=t.ticks+String(t.ticklen)+String(t.showticklabels);return&quot;side&quot;in t&amp;&amp;(e+=t.side),e}function R(t,e){return e[o.findIndexOfMin(e,(function(e){return o.angleDist(t,e)}))]}function F(t,e,r){return e?(t.attr(&quot;display&quot;,null),t.attr(r)):t&amp;&amp;t.attr(&quot;display&quot;,&quot;none&quot;),t}e.exports=function(t,e){return new z(t,e)},O.plot=function(t,e){var r=e[this.id];this._hasClipOnAxisFalse=!1;for(var n=0;n&lt;t.length;n++){if(!1===t[n][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(e,r),this.updateLayout(e,r),f.generalUpdatePerTraceModule(this.gd,this,t,r),this.updateFx(e,r)},O.updateLayers=function(t,e){var r=this.layers,i=e.radialaxis,a=e.angularaxis,o=S.layerNames,s=o.indexOf(&quot;frontplot&quot;),l=o.slice(0,s),c=&quot;below traces&quot;===a.layer,u=&quot;below traces&quot;===i.layer;c&amp;&amp;l.push(&quot;angular-line&quot;),u&amp;&amp;l.push(&quot;radial-line&quot;),c&amp;&amp;l.push(&quot;angular-axis&quot;),u&amp;&amp;l.push(&quot;radial-axis&quot;),l.push(&quot;frontplot&quot;),c||l.push(&quot;angular-line&quot;),u||l.push(&quot;radial-line&quot;),c||l.push(&quot;angular-axis&quot;),u||l.push(&quot;radial-axis&quot;);var f=this.framework.selectAll(&quot;.polarsublayer&quot;).data(l,String);f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;polarsublayer &quot;+t})).each((function(t){var e=r[t]=n.select(this);switch(t){case&quot;frontplot&quot;:e.append(&quot;g&quot;).classed(&quot;barlayer&quot;,!0),e.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0);break;case&quot;backplot&quot;:e.append(&quot;g&quot;).classed(&quot;maplayer&quot;,!0);break;case&quot;plotbg&quot;:r.bg=e.append(&quot;path&quot;);break;case&quot;radial-grid&quot;:case&quot;angular-grid&quot;:e.style(&quot;fill&quot;,&quot;none&quot;);break;case&quot;radial-line&quot;:e.append(&quot;line&quot;).style(&quot;fill&quot;,&quot;none&quot;);break;case&quot;angular-line&quot;:e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;)}})),f.order()},O.updateLayout=function(t,e){var r=this.layers,n=t._size,i=e.radialaxis,a=e.angularaxis,o=e.domain.x,s=e.domain.y;this.xOffset=n.l+n.w*o[0],this.yOffset=n.t+n.h*(1-s[1]);var f=this.xLength=n.w*(o[1]-o[0]),h=this.yLength=n.h*(s[1]-s[0]),p=e.sector;this.sectorInRad=p.map(I);var d,g,m,v,y,x=this.sectorBBox=function(t){var e,r,n,i,a=t[0],o=t[1]-a,s=L(a,360),l=s+o,c=Math.cos(I(s)),u=Math.sin(I(s)),f=Math.cos(I(l)),h=Math.sin(I(l));i=s&lt;=90&amp;&amp;l&gt;=90||s&gt;90&amp;&amp;l&gt;=450?1:u&lt;=0&amp;&amp;h&lt;=0?0:Math.max(u,h);e=s&lt;=180&amp;&amp;l&gt;=180||s&gt;180&amp;&amp;l&gt;=540?-1:c&gt;=0&amp;&amp;f&gt;=0?0:Math.min(c,f);r=s&lt;=270&amp;&amp;l&gt;=270||s&gt;270&amp;&amp;l&gt;=630?-1:u&gt;=0&amp;&amp;h&gt;=0?0:Math.min(u,h);n=l&gt;=360?1:c&lt;=0&amp;&amp;f&lt;=0?0:Math.max(c,f);return[e,r,n,i]}(p),b=x[2]-x[0],_=x[3]-x[1],w=h/f,T=Math.abs(_/b);w&gt;T?(d=f,y=(h-(g=f*T))/n.h/2,m=[o[0],o[1]],v=[s[0]+y,s[1]-y]):(g=h,y=(f-(d=h/T))/n.w/2,m=[o[0]+y,o[1]-y],v=[s[0],s[1]]),this.xLength2=d,this.yLength2=g,this.xDomain2=m,this.yDomain2=v;var k=this.xOffset2=n.l+n.w*m[0],M=this.yOffset2=n.t+n.h*(1-v[1]),A=this.radius=d/b,S=this.innerRadius=e.hole*A,E=this.cx=k-A*x[0],C=this.cy=M+A*x[3],P=this.cxx=E-k,z=this.cyy=C-M;this.radialAxis=this.mockAxis(t,e,i,{_id:&quot;x&quot;,side:{counterclockwise:&quot;top&quot;,clockwise:&quot;bottom&quot;}[i.side],_realSide:i.side,domain:[S/n.w,A/n.w]}),this.angularAxis=this.mockAxis(t,e,a,{side:&quot;right&quot;,domain:[0,Math.PI],autorange:!1}),this.doAutoRange(t,e),this.updateAngularAxis(t,e),this.updateRadialAxis(t,e),this.updateRadialAxisTitle(t,e),this.xaxis=this.mockCartesianAxis(t,e,{_id:&quot;x&quot;,domain:m}),this.yaxis=this.mockCartesianAxis(t,e,{_id:&quot;y&quot;,domain:v});var O=this.pathSubplot();this.clipPaths.forTraces.select(&quot;path&quot;).attr(&quot;d&quot;,O).attr(&quot;transform&quot;,l(P,z)),r.frontplot.attr(&quot;transform&quot;,l(k,M)).call(u.setClipUrl,this._hasClipOnAxisFalse?null:this.clipIds.forTraces,this.gd),r.bg.attr(&quot;d&quot;,O).attr(&quot;transform&quot;,l(E,C)).call(c.fill,e.bgcolor)},O.mockAxis=function(t,e,r,n){var i=o.extendFlat({},r,n);return d(i,e,t),i},O.mockCartesianAxis=function(t,e,r){var n=this,i=r._id,a=o.extendFlat({type:&quot;linear&quot;},r);p(a,t);var s={x:[0,2],y:[1,3]};return a.setRange=function(){var t=n.sectorBBox,r=s[i],o=n.radialAxis._rl,l=(o[1]-o[0])/(1-e.hole);a.range=[t[r[0]]*l,t[r[1]]*l]},a.isPtWithinRange=&quot;x&quot;===i?function(t){return n.isPtInside(t)}:function(){return!0},a.setRange(),a.setScale(),a},O.doAutoRange=function(t,e){var r=this.gd,n=this.radialAxis,i=e.radialaxis;n.setScale(),g(r,n);var a=n.range;i.range=a.slice(),i._input.range=a.slice(),n._rl=[n.r2l(a[0],null,&quot;gregorian&quot;),n.r2l(a[1],null,&quot;gregorian&quot;)]},O.updateRadialAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=e.radialaxis,g=L(e.sector[0],360),m=r.radialAxis,v=u&lt;a;r.fillViewInitialKey(&quot;radialaxis.angle&quot;,d.angle),r.fillViewInitialKey(&quot;radialaxis.range&quot;,m.range.slice()),m.setGeometry(),&quot;auto&quot;===m.tickangle&amp;&amp;g&gt;90&amp;&amp;g&lt;=270&amp;&amp;(m.tickangle=180);var y=function(t){return l(m.l2p(t.x)+u,0)},x=D(d);if(r.radialTickLayout!==x&amp;&amp;(i[&quot;radial-axis&quot;].selectAll(&quot;.xtick&quot;).remove(),r.radialTickLayout=x),v){m.setScale();var b=h.calcTicks(m),_=h.clipEnds(m,b),w=h.getTickSigns(m)[2];h.drawTicks(n,m,{vals:b,layer:i[&quot;radial-axis&quot;],path:h.makeTickPath(m,0,w),transFn:y,crisp:!1}),h.drawGrid(n,m,{vals:_,layer:i[&quot;radial-grid&quot;],path:function(t){return r.pathArc(m.r2p(t.x)+u)},transFn:o.noop,crisp:!1}),h.drawLabels(n,m,{vals:b,layer:i[&quot;radial-axis&quot;],transFn:y,labelFns:h.makeLabelFns(m,0)})}var T=r.radialAxisAngle=r.vangles?P(R(I(d.angle),r.vangles)):d.angle,k=l(f,p),M=k+s(-T);F(i[&quot;radial-axis&quot;],v&amp;&amp;(d.showticklabels||d.ticks),{transform:M}),F(i[&quot;radial-grid&quot;],v&amp;&amp;d.showgrid,{transform:k}),F(i[&quot;radial-line&quot;].select(&quot;line&quot;),v&amp;&amp;d.showline,{x1:u,y1:0,x2:a,y2:0,transform:M}).attr(&quot;stroke-width&quot;,d.linewidth).call(c.stroke,d.linecolor)},O.updateRadialAxisTitle=function(t,e,r){var n=this.gd,i=this.radius,a=this.cx,o=this.cy,s=e.radialaxis,l=this.id+&quot;title&quot;,c=void 0!==r?r:this.radialAxisAngle,f=I(c),h=Math.cos(f),p=Math.sin(f),d=0;if(s.title){var g=u.bBox(this.layers[&quot;radial-axis&quot;].node()).height,m=s.title.font.size;d=&quot;counterclockwise&quot;===s.side?-g-.4*m:g+.8*m}this.layers[&quot;radial-axis-title&quot;]=x.draw(n,l,{propContainer:s,propName:this.id+&quot;.radialaxis.title&quot;,placeholder:C(n,&quot;Click to enter radial axis title&quot;),attributes:{x:a+i/2*h+d*p,y:o-i/2*p+d*h,&quot;text-anchor&quot;:&quot;middle&quot;},transform:{rotate:-c}})},O.updateAngularAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=e.angularaxis,g=r.angularAxis;r.fillViewInitialKey(&quot;angularaxis.rotation&quot;,d.rotation),g.setGeometry(),g.setScale();var m=function(t){return g.t2g(t.x)};&quot;linear&quot;===g.type&amp;&amp;&quot;radians&quot;===g.thetaunit&amp;&amp;(g.tick0=P(g.tick0),g.dtick=P(g.dtick));var v=function(t){return l(f+a*Math.cos(t),p-a*Math.sin(t))},y=h.makeLabelFns(g,0).labelStandoff,x={xFn:function(t){var e=m(t);return Math.cos(e)*y},yFn:function(t){var e=m(t),r=Math.sin(e)&gt;0?.2:1;return-Math.sin(e)*(y+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*A)},anchorFn:function(t){var e=m(t),r=Math.cos(e);return Math.abs(r)&lt;.1?&quot;middle&quot;:r&gt;0?&quot;start&quot;:&quot;end&quot;},heightFn:function(t,e,r){var n=m(t);return-.5*(1+Math.sin(n))*r}},b=D(d);r.angularTickLayout!==b&amp;&amp;(i[&quot;angular-axis&quot;].selectAll(&quot;.&quot;+g._id+&quot;tick&quot;).remove(),r.angularTickLayout=b);var _,w=h.calcTicks(g);if(&quot;linear&quot;===e.gridshape?(_=w.map(m),o.angleDelta(_[0],_[1])&lt;0&amp;&amp;(_=_.slice().reverse())):_=null,r.vangles=_,&quot;category&quot;===g.type&amp;&amp;(w=w.filter((function(t){return o.isAngleInsideSector(m(t),r.sectorInRad)}))),g.visible){var T=&quot;inside&quot;===g.ticks?-1:1,k=(g.linewidth||1)/2;h.drawTicks(n,g,{vals:w,layer:i[&quot;angular-axis&quot;],path:&quot;M&quot;+T*k+&quot;,0h&quot;+T*g.ticklen,transFn:function(t){var e=m(t);return v(e)+s(-P(e))},crisp:!1}),h.drawGrid(n,g,{vals:w,layer:i[&quot;angular-grid&quot;],path:function(t){var e=m(t),r=Math.cos(e),n=Math.sin(e);return&quot;M&quot;+[f+u*r,p-u*n]+&quot;L&quot;+[f+a*r,p-a*n]},transFn:o.noop,crisp:!1}),h.drawLabels(n,g,{vals:w,layer:i[&quot;angular-axis&quot;],repositionOnUpdate:!0,transFn:function(t){return v(m(t))},labelFns:x})}F(i[&quot;angular-line&quot;].select(&quot;path&quot;),d.showline,{d:r.pathSubplot(),transform:l(f,p)}).attr(&quot;stroke-width&quot;,d.linewidth).call(c.stroke,d.linecolor)},O.updateFx=function(t,e){this.gd._context.staticPlot||(this.updateAngularDrag(t),this.updateRadialDrag(t,e,0),this.updateRadialDrag(t,e,1),this.updateMainDrag(t))},O.updateMainDrag=function(t){var e,r,s=this,c=s.gd,u=s.layers,f=t._zoomlayer,h=S.MINZOOM,p=S.OFFEDGE,d=s.radius,g=s.innerRadius,x=s.cx,T=s.cy,k=s.cxx,M=s.cyy,A=s.sectorInRad,C=s.vangles,L=s.radialAxis,I=E.clampTiny,P=E.findXYatLength,z=E.findEnclosingVertexAngles,O=S.cornerHalfWidth,D=S.cornerLen/2,R=m.makeDragger(u,&quot;path&quot;,&quot;maindrag&quot;,&quot;crosshair&quot;);n.select(R).attr(&quot;d&quot;,s.pathSubplot()).attr(&quot;transform&quot;,l(x,T));var F,B,N,j,U,V,q,H,G,Y={element:R,gd:c,subplot:s.id,plotinfo:{id:s.id,xaxis:s.xaxis,yaxis:s.yaxis},xaxes:[s.xaxis],yaxes:[s.yaxis]};function W(t,e){return Math.sqrt(t*t+e*e)}function X(t,e){return W(t-k,e-M)}function Z(t,e){return Math.atan2(M-e,t-k)}function J(t,e){return[t*Math.cos(e),t*Math.sin(-e)]}function K(t,e){if(0===t)return s.pathSector(2*O);var r=D/t,n=e-r,i=e+r,a=Math.max(0,Math.min(t,d)),o=a-O,l=a+O;return&quot;M&quot;+J(o,n)+&quot;A&quot;+[o,o]+&quot; 0,0,0 &quot;+J(o,i)+&quot;L&quot;+J(l,i)+&quot;A&quot;+[l,l]+&quot; 0,0,1 &quot;+J(l,n)+&quot;Z&quot;}function Q(t,e,r){if(0===t)return s.pathSector(2*O);var n,i,a=J(t,e),o=J(t,r),l=I((a[0]+o[0])/2),c=I((a[1]+o[1])/2);if(l&amp;&amp;c){var u=c/l,f=-1/u,h=P(O,u,l,c);n=P(D,f,h[0][0],h[0][1]),i=P(D,f,h[1][0],h[1][1])}else{var p,d;c?(p=D,d=O):(p=O,d=D),n=[[l-p,c-d],[l+p,c-d]],i=[[l-p,c+d],[l+p,c+d]]}return&quot;M&quot;+n.join(&quot;L&quot;)+&quot;L&quot;+i.reverse().join(&quot;L&quot;)+&quot;Z&quot;}function $(t,e){return e=Math.max(Math.min(e,d),g),t&lt;p?t=0:d-t&lt;p?t=d:e&lt;p?e=0:d-e&lt;p&amp;&amp;(e=d),Math.abs(e-t)&gt;h?(t&lt;e?(N=t,j=e):(N=e,j=t),!0):(N=null,j=null,!1)}function tt(t,e){t=t||U,e=e||&quot;M0,0Z&quot;,H.attr(&quot;d&quot;,t),G.attr(&quot;d&quot;,e),m.transitionZoombox(H,G,V,q),V=!0;var r={};at(r),c.emit(&quot;plotly_relayouting&quot;,r)}function et(t,n){var i,a,o=F+(t*=e),l=B+(n*=r),c=X(F,B),u=Math.min(X(o,l),d),f=Z(F,B);$(c,u)&amp;&amp;(i=U+s.pathSector(j),N&amp;&amp;(i+=s.pathSector(N)),a=K(N,f)+K(j,f)),tt(i,a)}function rt(t,e,r,n){var i=E.findIntersectionXY(r,n,r,[t-k,M-e]);return W(i[0],i[1])}function nt(t,e){var r,n,i=F+t,a=B+e,o=Z(F,B),l=Z(i,a),c=z(o,C),u=z(l,C);$(rt(F,B,c[0],c[1]),Math.min(rt(i,a,u[0],u[1]),d))&amp;&amp;(r=U+s.pathSector(j),N&amp;&amp;(r+=s.pathSector(N)),n=[Q(N,c[0],c[1]),Q(j,c[0],c[1])].join(&quot; &quot;)),tt(r,n)}function it(){if(m.removeZoombox(c),null!==N&amp;&amp;null!==j){var t={};at(t),m.showDoubleClickNotifier(c),a.call(&quot;_guiRelayout&quot;,c,t)}}function at(t){var e=L._rl,r=(e[1]-e[0])/(1-g/d)/d,n=[e[0]+(N-g)*r,e[0]+(j-g)*r];t[s.id+&quot;.radialaxis.range&quot;]=n}function ot(t,e){var r=c._fullLayout.clickmode;if(m.removeZoombox(c),2===t){var n={};for(var i in s.viewInitial)n[s.id+&quot;.&quot;+i]=s.viewInitial[i];c.emit(&quot;plotly_doubleclick&quot;,null),a.call(&quot;_guiRelayout&quot;,c,n)}r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;1===t&amp;&amp;_(e,c,[s.xaxis],[s.yaxis],s.id,Y),r.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;y.click(c,e,s.id)}Y.prepFn=function(t,n,a){var l=c._fullLayout.dragmode,u=R.getBoundingClientRect();c._fullLayout._calcInverseTransform(c);var h=c._fullLayout._invTransform;e=c._fullLayout._invScaleX,r=c._fullLayout._invScaleY;var p=o.apply3DTransform(h)(n-u.left,a-u.top);if(F=p[0],B=p[1],C){var g=E.findPolygonOffset(d,A[0],A[1],C);F+=k+g[0],B+=M+g[1]}switch(l){case&quot;zoom&quot;:Y.moveFn=C?nt:et,Y.clickFn=ot,Y.doneFn=it,function(){N=null,j=null,U=s.pathSubplot(),V=!1;var t=c._fullLayout[s.id];q=i(t.bgcolor).getLuminance(),(H=m.makeZoombox(f,q,x,T,U)).attr(&quot;fill-rule&quot;,&quot;evenodd&quot;),G=m.makeCorners(f,x,T),w(c)}();break;case&quot;select&quot;:case&quot;lasso&quot;:b(t,n,a,Y,l)}},R.onmousemove=function(t){y.hover(c,t,s.id),c._fullLayout._lasthover=R,c._fullLayout._hoversubplot=s.id},R.onmouseout=function(t){c._dragging||v.unhover(c,t)},v.init(Y)},O.updateRadialDrag=function(t,e,r){var i=this,c=i.gd,u=i.layers,f=i.radius,h=i.innerRadius,p=i.cx,d=i.cy,g=i.radialAxis,y=S.radialDragBoxSize,x=y/2;if(g.visible){var b,_,T,A=I(i.radialAxisAngle),E=g._rl,C=E[0],L=E[1],z=E[r],O=.75*(E[1]-E[0])/(1-e.hole)/f;r?(b=p+(f+x)*Math.cos(A),_=d-(f+x)*Math.sin(A),T=&quot;radialdrag&quot;):(b=p+(h-x)*Math.cos(A),_=d-(h-x)*Math.sin(A),T=&quot;radialdrag-inner&quot;);var D,B,N,j=m.makeRectDragger(u,T,&quot;crosshair&quot;,-x,-x,y,y),U={element:j,gd:c};F(n.select(j),g.visible&amp;&amp;h&lt;f,{transform:l(b,_)}),U.prepFn=function(){D=null,B=null,N=null,U.moveFn=V,U.doneFn=q,w(c)},U.clampFn=function(t,e){return Math.sqrt(t*t+e*e)&lt;S.MINDRAG&amp;&amp;(t=0,e=0),[t,e]},v.init(U)}function V(t,e){if(D)D(t,e);else{var n=[t,-e],a=[Math.cos(A),Math.sin(A)],s=Math.abs(o.dot(n,a)/Math.sqrt(o.dot(n,n)));isNaN(s)||(D=s&lt;.5?H:G)}var l={};!function(t){null!==B?t[i.id+&quot;.radialaxis.angle&quot;]=B:null!==N&amp;&amp;(t[i.id+&quot;.radialaxis.range[&quot;+r+&quot;]&quot;]=N)}(l),c.emit(&quot;plotly_relayouting&quot;,l)}function q(){null!==B?a.call(&quot;_guiRelayout&quot;,c,i.id+&quot;.radialaxis.angle&quot;,B):null!==N&amp;&amp;a.call(&quot;_guiRelayout&quot;,c,i.id+&quot;.radialaxis.range[&quot;+r+&quot;]&quot;,N)}function H(t,e){if(0!==r){var n=b+t,a=_+e;B=Math.atan2(d-a,n-p),i.vangles&amp;&amp;(B=R(B,i.vangles)),B=P(B);var o=l(p,d)+s(-B);u[&quot;radial-axis&quot;].attr(&quot;transform&quot;,o),u[&quot;radial-line&quot;].select(&quot;line&quot;).attr(&quot;transform&quot;,o);var c=i.gd._fullLayout,f=c[i.id];i.updateRadialAxisTitle(c,f,B)}}function G(t,e){var n=o.dot([t,-e],[Math.cos(A),Math.sin(A)]);if(N=z-O*n,O&gt;0==(r?N&gt;C:N&lt;L)){var s=c._fullLayout,l=s[i.id];g.range[r]=N,g._rl[r]=N,i.updateRadialAxis(s,l),i.xaxis.setRange(),i.xaxis.setScale(),i.yaxis.setRange(),i.yaxis.setScale();var u=!1;for(var f in i.traceHash){var h=i.traceHash[f],p=o.filterVisible(h);h[0][0].trace._module.plot(c,i,p,l),a.traceIs(f,&quot;gl&quot;)&amp;&amp;p.length&amp;&amp;(u=!0)}u&amp;&amp;(k(c),M(c))}else N=null}},O.updateAngularDrag=function(t){var e=this,r=e.gd,i=e.layers,c=e.radius,f=e.angularAxis,h=e.cx,p=e.cy,d=e.cxx,g=e.cyy,y=S.angularDragBoxSize,x=m.makeDragger(i,&quot;path&quot;,&quot;angulardrag&quot;,&quot;move&quot;),b={element:x,gd:r};function _(t,e){return Math.atan2(g+y-e,t-d-y)}n.select(x).attr(&quot;d&quot;,e.pathAnnulus(c,c+y)).attr(&quot;transform&quot;,l(h,p)).call(T,&quot;move&quot;);var A,E,C,L,I,z,O=i.frontplot.select(&quot;.scatterlayer&quot;).selectAll(&quot;.trace&quot;),D=O.selectAll(&quot;.point&quot;),R=O.selectAll(&quot;.textpoint&quot;);function F(c,m){var v=e.gd._fullLayout,y=v[e.id],x=_(A+c*t._invScaleX,E+m*t._invScaleY),b=P(x-z);if(L=C+b,i.frontplot.attr(&quot;transform&quot;,l(e.xOffset2,e.yOffset2)+s([-b,d,g])),e.vangles){I=e.radialAxisAngle+b;var w=l(h,p)+s(-b),T=l(h,p)+s(-I);i.bg.attr(&quot;transform&quot;,w),i[&quot;radial-grid&quot;].attr(&quot;transform&quot;,w),i[&quot;radial-axis&quot;].attr(&quot;transform&quot;,T),i[&quot;radial-line&quot;].select(&quot;line&quot;).attr(&quot;transform&quot;,T),e.updateRadialAxisTitle(v,y,I)}else e.clipPaths.forTraces.select(&quot;path&quot;).attr(&quot;transform&quot;,l(d,g)+s(b));D.each((function(){var t=n.select(this),e=u.getTranslate(t);t.attr(&quot;transform&quot;,l(e.x,e.y)+s([b]))})),R.each((function(){var t=n.select(this),e=t.select(&quot;text&quot;),r=u.getTranslate(t);t.attr(&quot;transform&quot;,s([b,e.attr(&quot;x&quot;),e.attr(&quot;y&quot;)])+l(r.x,r.y))})),f.rotation=o.modHalf(L,360),e.updateAngularAxis(v,y),e._hasClipOnAxisFalse&amp;&amp;!o.isFullCircle(e.sectorInRad)&amp;&amp;O.call(u.hideOutsideRangePoints,e);var S=!1;for(var F in e.traceHash)if(a.traceIs(F,&quot;gl&quot;)){var N=e.traceHash[F],j=o.filterVisible(N);N[0][0].trace._module.plot(r,e,j,y),j.length&amp;&amp;(S=!0)}S&amp;&amp;(k(r),M(r));var U={};B(U),r.emit(&quot;plotly_relayouting&quot;,U)}function B(t){t[e.id+&quot;.angularaxis.rotation&quot;]=L,e.vangles&amp;&amp;(t[e.id+&quot;.radialaxis.angle&quot;]=I)}function N(){R.select(&quot;text&quot;).attr(&quot;transform&quot;,null);var t={};B(t),a.call(&quot;_guiRelayout&quot;,r,t)}b.prepFn=function(n,i,a){var s=t[e.id];C=s.angularaxis.rotation;var l=x.getBoundingClientRect();A=i-l.left,E=a-l.top,r._fullLayout._calcInverseTransform(r);var c=o.apply3DTransform(t._invTransform)(A,E);A=c[0],E=c[1],z=_(A,E),b.moveFn=F,b.doneFn=N,w(r)},e.vangles&amp;&amp;!o.isFullCircle(e.sectorInRad)&amp;&amp;(b.prepFn=o.noop,T(n.select(x),null)),v.init(b)},O.isPtInside=function(t){var e=this.sectorInRad,r=this.vangles,n=this.angularAxis.c2g(t.theta),i=this.radialAxis,a=i.c2l(t.r),s=i._rl;return(r?E.isPtInsidePolygon:o.isPtInsideSector)(a,n,s,e,r)},O.pathArc=function(t){var e=this.sectorInRad,r=this.vangles;return(r?E.pathPolygon:o.pathArc)(t,e[0],e[1],r)},O.pathSector=function(t){var e=this.sectorInRad,r=this.vangles;return(r?E.pathPolygon:o.pathSector)(t,e[0],e[1],r)},O.pathAnnulus=function(t,e){var r=this.sectorInRad,n=this.vangles;return(n?E.pathPolygonAnnulus:o.pathAnnulus)(t,e,r[0],r[1],n)},O.pathSubplot=function(){var t=this.innerRadius,e=this.radius;return t?this.pathAnnulus(t,e):this.pathSector(e)},O.fillViewInitialKey=function(t,e){t in this.viewInitial||(this.viewInitial[t]=e)}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../components/titles&quot;:738,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/clear_gl_canvases&quot;:762,&quot;../../lib/setcursor&quot;:799,&quot;../../plot_api/subroutines&quot;:818,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../cartesian/autorange&quot;:827,&quot;../cartesian/dragbox&quot;:836,&quot;../cartesian/select&quot;:847,&quot;../cartesian/set_convert&quot;:848,&quot;../plots&quot;:891,&quot;./constants&quot;:892,&quot;./helpers&quot;:893,&quot;./set_convert&quot;:904,d3:169,tinycolor2:576}],904:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../cartesian/set_convert&quot;),a=n.deg2rad,o=n.rad2deg;e.exports=function(t,e,r){switch(i(t,r),t._id){case&quot;x&quot;:case&quot;radialaxis&quot;:!function(t,e){var r=e._subplot;t.setGeometry=function(){var e=t._rl[0],n=t._rl[1],i=r.innerRadius,a=(r.radius-i)/(n-e),o=i/a,s=e&gt;n?function(t){return t&lt;=0}:function(t){return t&gt;=0};t.c2g=function(r){var n=t.c2l(r)-e;return(s(n)?n:0)+o},t.g2c=function(r){return t.l2c(r+e-o)},t.g2p=function(t){return t*a},t.c2p=function(e){return t.g2p(t.c2g(e))}}}(t,e);break;case&quot;angularaxis&quot;:!function(t,e){var r=t.type;if(&quot;linear&quot;===r){var i=t.d2c,s=t.c2d;t.d2c=function(t,e){return function(t,e){return&quot;degrees&quot;===e?a(t):t}(i(t),e)},t.c2d=function(t,e){return s(function(t,e){return&quot;degrees&quot;===e?o(t):t}(t,e))}}t.makeCalcdata=function(e,i){var a,o,s=e[i],l=e._length,c=function(r){return t.d2c(r,e.thetaunit)};if(s){if(n.isTypedArray(s)&amp;&amp;&quot;linear&quot;===r){if(l===s.length)return s;if(s.subarray)return s.subarray(0,l)}for(a=new Array(l),o=0;o&lt;l;o++)a[o]=c(s[o])}else{var u=i+&quot;0&quot;,f=&quot;d&quot;+i,h=u in e?c(e[u]):0,p=e[f]?c(e[f]):(t.period||2*Math.PI)/l;for(a=new Array(l),o=0;o&lt;l;o++)a[o]=h+o*p}return a},t.setGeometry=function(){var i,s,l,c,u=e.sector,f=u.map(a),h={clockwise:-1,counterclockwise:1}[t.direction],p=a(t.rotation),d=function(t){return h*t+p},g=function(t){return(t-p)/h};switch(r){case&quot;linear&quot;:s=i=n.identity,c=a,l=o,t.range=n.isFullCircle(f)?[u[0],u[0]+360]:f.map(g).map(o);break;case&quot;category&quot;:var m=t._categories.length,v=t.period?Math.max(t.period,m):m;0===v&amp;&amp;(v=1),s=c=function(t){return 2*t*Math.PI/v},i=l=function(t){return t*v/Math.PI/2},t.range=[0,v]}t.c2g=function(t){return d(s(t))},t.g2c=function(t){return i(g(t))},t.t2g=function(t){return d(c(t))},t.g2t=function(t){return l(g(t))}}}(t,e)}}},{&quot;../../lib&quot;:778,&quot;../cartesian/set_convert&quot;:848}],905:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_template&quot;),a=t(&quot;./domain&quot;).defaults;e.exports=function(t,e,r,o){var s,l,c=o.type,u=o.attributes,f=o.handleDefaults,h=o.partition||&quot;x&quot;,p=e._subplots[c],d=p.length,g=d&amp;&amp;p[0].replace(/\d+$/,&quot;&quot;);function m(t,e){return n.coerce(s,l,u,t,e)}for(var v=0;v&lt;d;v++){var y=p[v];s=t[y]?t[y]:t[y]={},l=i.newContainer(e,y,g),m(&quot;uirevision&quot;,e.uirevision);var x={};x[h]=[v/d,(v+1)/d],a(l,e,m,x),o.id=y,f(s,l,m,o)}}},{&quot;../lib&quot;:778,&quot;../plot_api/plot_template&quot;:817,&quot;./domain&quot;:855}],906:[function(t,e,r){&quot;use strict&quot;;['Variables are inserted using %{variable}, for example &quot;y: %{y}&quot;.','Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example &quot;Price: %{y:$.2f}&quot;.',t(&quot;../constants/docs&quot;).FORMAT_LINK,&quot;for details on the formatting syntax.&quot;,'Dates are formatted using d3-time-format\'s syntax %{variable|d3-time-format}, for example &quot;Day: %{2019-01-01|%A}&quot;.',t(&quot;../constants/docs&quot;).DATE_FORMAT_LINK,&quot;for details on the date formatting syntax.&quot;].join(&quot; &quot;);function n(t){var e=t.description?&quot; &quot;+t.description:&quot;&quot;,r=t.keys||[];if(r.length&gt;0){for(var n=[],i=0;i&lt;r.length;i++)n[i]=&quot;`&quot;+r[i]+&quot;`&quot;;e+=&quot;Finally, the template string has access to &quot;,e=1===r.length?&quot;variable &quot;+n[0]:&quot;variables &quot;+n.slice(0,-1).join(&quot;, &quot;)+&quot; and &quot;+n.slice(-1)+&quot;.&quot;}return e}r.hovertemplateAttrs=function(t,e){t=t||{};n(e=e||{});var r={valType:&quot;string&quot;,dflt:&quot;&quot;,editType:t.editType||&quot;none&quot;};return!1!==t.arrayOk&amp;&amp;(r.arrayOk=!0),r},r.texttemplateAttrs=function(t,e){t=t||{};n(e=e||{});var r={valType:&quot;string&quot;,dflt:&quot;&quot;,editType:t.editType||&quot;calc&quot;};return!1!==t.arrayOk&amp;&amp;(r.arrayOk=!0),r}},{&quot;../constants/docs&quot;:748}],907:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./ternary&quot;),i=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,a=t(&quot;../../lib&quot;).counterRegex;r.name=&quot;ternary&quot;;var o=r.attr=&quot;subplot&quot;;r.idRoot=&quot;ternary&quot;,r.idRegex=r.attrRegex=a(&quot;ternary&quot;),(r.attributes={})[o]={valType:&quot;subplotid&quot;,dflt:&quot;ternary&quot;,editType:&quot;calc&quot;},r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t.calcdata,a=e._subplots.ternary,o=0;o&lt;a.length;o++){var s=a[o],l=i(r,&quot;ternary&quot;,s),c=e[s]._subplot;c||(c=new n({id:s,graphDiv:t,container:e._ternarylayer.node()},e),e[s]._subplot=c),c.plot(l,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.ternary||[],a=0;a&lt;i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&amp;&amp;s&amp;&amp;(s.plotContainer.remove(),s.clipDef.remove(),s.clipDefRelative.remove(),s.layers[&quot;a-title&quot;].remove(),s.layers[&quot;b-title&quot;].remove(),s.layers[&quot;c-title&quot;].remove())}}},{&quot;../../lib&quot;:778,&quot;../../plots/get_data&quot;:865,&quot;./layout_attributes&quot;:908,&quot;./layout_defaults&quot;:909,&quot;./ternary&quot;:910}],908:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../domain&quot;).attributes,a=t(&quot;../cartesian/layout_attributes&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../lib/extend&quot;).extendFlat,l={title:{text:a.title.text,font:a.title.font},color:a.color,tickmode:a.tickmode,nticks:s({},a.nticks,{dflt:6,min:1}),tick0:a.tick0,dtick:a.dtick,tickvals:a.tickvals,ticktext:a.ticktext,ticks:a.ticks,ticklen:a.ticklen,tickwidth:a.tickwidth,tickcolor:a.tickcolor,showticklabels:a.showticklabels,showtickprefix:a.showtickprefix,tickprefix:a.tickprefix,showticksuffix:a.showticksuffix,ticksuffix:a.ticksuffix,showexponent:a.showexponent,exponentformat:a.exponentformat,minexponent:a.minexponent,separatethousands:a.separatethousands,tickfont:a.tickfont,tickangle:a.tickangle,tickformat:a.tickformat,tickformatstops:a.tickformatstops,hoverformat:a.hoverformat,showline:s({},a.showline,{dflt:!0}),linecolor:a.linecolor,linewidth:a.linewidth,showgrid:s({},a.showgrid,{dflt:!0}),gridcolor:a.gridcolor,gridwidth:a.gridwidth,layer:a.layer,min:{valType:&quot;number&quot;,dflt:0,min:0},_deprecated:{title:a._deprecated.title,titlefont:a._deprecated.titlefont}},c=e.exports=o({domain:i({name:&quot;ternary&quot;}),bgcolor:{valType:&quot;color&quot;,dflt:n.background},sum:{valType:&quot;number&quot;,dflt:1,min:0},aaxis:l,baxis:l,caxis:l},&quot;plot&quot;,&quot;from-root&quot;);c.uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;},c.aaxis.uirevision=c.baxis.uirevision=c.caxis.uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../cartesian/layout_attributes&quot;:842,&quot;../domain&quot;:855}],909:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../subplot_defaults&quot;),s=t(&quot;../cartesian/tick_label_defaults&quot;),l=t(&quot;../cartesian/tick_mark_defaults&quot;),c=t(&quot;../cartesian/tick_value_defaults&quot;),u=t(&quot;../cartesian/line_grid_defaults&quot;),f=t(&quot;./layout_attributes&quot;),h=[&quot;aaxis&quot;,&quot;baxis&quot;,&quot;caxis&quot;];function p(t,e,r,a){var o,s,l,c=r(&quot;bgcolor&quot;),u=r(&quot;sum&quot;);a.bgColor=n.combine(c,a.paper_bgcolor);for(var f=0;f&lt;h.length;f++)s=t[o=h[f]]||{},(l=i.newContainer(e,o))._name=o,d(s,l,a,e);var p=e.aaxis,g=e.baxis,m=e.caxis;p.min+g.min+m.min&gt;=u&amp;&amp;(p.min=0,g.min=0,m.min=0,t.aaxis&amp;&amp;delete t.aaxis.min,t.baxis&amp;&amp;delete t.baxis.min,t.caxis&amp;&amp;delete t.caxis.min)}function d(t,e,r,n){var i=f[e._name];function o(r,n){return a.coerce(t,e,i,r,n)}o(&quot;uirevision&quot;,n.uirevision),e.type=&quot;linear&quot;;var h=o(&quot;color&quot;),p=h!==i.color.dflt?h:r.font.color,d=e._name.charAt(0).toUpperCase(),g=&quot;Component &quot;+d,m=o(&quot;title.text&quot;,g);e._hovertitle=m===g?m:d,a.coerceFont(o,&quot;title.font&quot;,{family:r.font.family,size:Math.round(1.2*r.font.size),color:p}),o(&quot;min&quot;),c(t,e,o,&quot;linear&quot;),s(t,e,o,&quot;linear&quot;,{}),l(t,e,o,{outerTicks:!0}),o(&quot;showticklabels&quot;)&amp;&amp;(a.coerceFont(o,&quot;tickfont&quot;,{family:r.font.family,size:r.font.size,color:p}),o(&quot;tickangle&quot;),o(&quot;tickformat&quot;)),u(t,e,o,{dfltColor:h,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),o(&quot;hoverformat&quot;),o(&quot;layer&quot;)}e.exports=function(t,e,r){o(t,e,r,{type:&quot;ternary&quot;,attributes:f,handleDefaults:p,font:e.font,paper_bgcolor:e.paper_bgcolor})}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../cartesian/line_grid_defaults&quot;:844,&quot;../cartesian/tick_label_defaults&quot;:849,&quot;../cartesian/tick_mark_defaults&quot;:850,&quot;../cartesian/tick_value_defaults&quot;:851,&quot;../subplot_defaults&quot;:905,&quot;./layout_attributes&quot;:908}],910:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=o._,c=t(&quot;../../components/color&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../cartesian/set_convert&quot;),h=t(&quot;../../lib/extend&quot;).extendFlat,p=t(&quot;../plots&quot;),d=t(&quot;../cartesian/axes&quot;),g=t(&quot;../../components/dragelement&quot;),m=t(&quot;../../components/fx&quot;),v=t(&quot;../../components/dragelement/helpers&quot;),y=v.freeMode,x=v.rectMode,b=t(&quot;../../components/titles&quot;),_=t(&quot;../cartesian/select&quot;).prepSelect,w=t(&quot;../cartesian/select&quot;).selectOnClick,T=t(&quot;../cartesian/select&quot;).clearSelect,k=t(&quot;../cartesian/select&quot;).clearSelectionsCache,M=t(&quot;../cartesian/constants&quot;);function A(t,e){this.id=t.id,this.graphDiv=t.graphDiv,this.init(e),this.makeFramework(e),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}e.exports=A;var S=A.prototype;S.init=function(t){this.container=t._ternarylayer,this.defs=t._defs,this.layoutId=t._uid,this.traceHash={},this.layers={}},S.plot=function(t,e){var r=e[this.id],n=e._size;this._hasClipOnAxisFalse=!1;for(var i=0;i&lt;t.length;i++){if(!1===t[i][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(r),this.adjustLayout(r,n),p.generalUpdatePerTraceModule(this.graphDiv,this,t,r),this.layers.plotbg.select(&quot;path&quot;).call(c.fill,r.bgcolor)},S.makeFramework=function(t){var e=this.graphDiv,r=t[this.id],n=this.clipId=&quot;clip&quot;+this.layoutId+this.id,i=this.clipIdRelative=&quot;clip-relative&quot;+this.layoutId+this.id;this.clipDef=o.ensureSingleById(t._clips,&quot;clipPath&quot;,n,(function(t){t.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;)})),this.clipDefRelative=o.ensureSingleById(t._clips,&quot;clipPath&quot;,i,(function(t){t.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;)})),this.plotContainer=o.ensureSingle(this.container,&quot;g&quot;,this.id),this.updateLayers(r),u.setClipUrl(this.layers.backplot,n,e),u.setClipUrl(this.layers.grids,n,e)},S.updateLayers=function(t){var e=this.layers,r=[&quot;draglayer&quot;,&quot;plotbg&quot;,&quot;backplot&quot;,&quot;grids&quot;];&quot;below traces&quot;===t.aaxis.layer&amp;&amp;r.push(&quot;aaxis&quot;,&quot;aline&quot;),&quot;below traces&quot;===t.baxis.layer&amp;&amp;r.push(&quot;baxis&quot;,&quot;bline&quot;),&quot;below traces&quot;===t.caxis.layer&amp;&amp;r.push(&quot;caxis&quot;,&quot;cline&quot;),r.push(&quot;frontplot&quot;),&quot;above traces&quot;===t.aaxis.layer&amp;&amp;r.push(&quot;aaxis&quot;,&quot;aline&quot;),&quot;above traces&quot;===t.baxis.layer&amp;&amp;r.push(&quot;baxis&quot;,&quot;bline&quot;),&quot;above traces&quot;===t.caxis.layer&amp;&amp;r.push(&quot;caxis&quot;,&quot;cline&quot;);var i=this.plotContainer.selectAll(&quot;g.toplevel&quot;).data(r,String),a=[&quot;agrid&quot;,&quot;bgrid&quot;,&quot;cgrid&quot;];i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;toplevel &quot;+t})).each((function(t){var r=n.select(this);e[t]=r,&quot;frontplot&quot;===t?r.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0):&quot;backplot&quot;===t?r.append(&quot;g&quot;).classed(&quot;maplayer&quot;,!0):&quot;plotbg&quot;===t?r.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;):&quot;aline&quot;===t||&quot;bline&quot;===t||&quot;cline&quot;===t?r.append(&quot;path&quot;):&quot;grids&quot;===t&amp;&amp;a.forEach((function(t){e[t]=r.append(&quot;g&quot;).classed(&quot;grid &quot;+t,!0)}))})),i.order()};var E=Math.sqrt(4/3);S.adjustLayout=function(t,e){var r,n,i,a,o,l,p=this,d=t.domain,g=(d.x[0]+d.x[1])/2,m=(d.y[0]+d.y[1])/2,v=d.x[1]-d.x[0],y=d.y[1]-d.y[0],x=v*e.w,b=y*e.h,_=t.sum,w=t.aaxis.min,T=t.baxis.min,k=t.caxis.min;x&gt;E*b?i=(a=b)*E:a=(i=x)/E,o=v*i/x,l=y*a/b,r=e.l+e.w*g-i/2,n=e.t+e.h*(1-m)-a/2,p.x0=r,p.y0=n,p.w=i,p.h=a,p.sum=_,p.xaxis={type:&quot;linear&quot;,range:[w+2*k-_,_-w-2*T],domain:[g-o/2,g+o/2],_id:&quot;x&quot;},f(p.xaxis,p.graphDiv._fullLayout),p.xaxis.setScale(),p.xaxis.isPtWithinRange=function(t){return t.a&gt;=p.aaxis.range[0]&amp;&amp;t.a&lt;=p.aaxis.range[1]&amp;&amp;t.b&gt;=p.baxis.range[1]&amp;&amp;t.b&lt;=p.baxis.range[0]&amp;&amp;t.c&gt;=p.caxis.range[1]&amp;&amp;t.c&lt;=p.caxis.range[0]},p.yaxis={type:&quot;linear&quot;,range:[w,_-T-k],domain:[m-l/2,m+l/2],_id:&quot;y&quot;},f(p.yaxis,p.graphDiv._fullLayout),p.yaxis.setScale(),p.yaxis.isPtWithinRange=function(){return!0};var M=p.yaxis.domain[0],A=p.aaxis=h({},t.aaxis,{range:[w,_-T-k],side:&quot;left&quot;,tickangle:(+t.aaxis.tickangle||0)-30,domain:[M,M+l*E],anchor:&quot;free&quot;,position:0,_id:&quot;y&quot;,_length:i});f(A,p.graphDiv._fullLayout),A.setScale();var S=p.baxis=h({},t.baxis,{range:[_-w-k,T],side:&quot;bottom&quot;,domain:p.xaxis.domain,anchor:&quot;free&quot;,position:0,_id:&quot;x&quot;,_length:i});f(S,p.graphDiv._fullLayout),S.setScale();var C=p.caxis=h({},t.caxis,{range:[_-w-T,k],side:&quot;right&quot;,tickangle:(+t.caxis.tickangle||0)+30,domain:[M,M+l*E],anchor:&quot;free&quot;,position:0,_id:&quot;y&quot;,_length:i});f(C,p.graphDiv._fullLayout),C.setScale();var L=&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;h&quot;+i+&quot;l-&quot;+i/2+&quot;,-&quot;+a+&quot;Z&quot;;p.clipDef.select(&quot;path&quot;).attr(&quot;d&quot;,L),p.layers.plotbg.select(&quot;path&quot;).attr(&quot;d&quot;,L);var I=&quot;M0,&quot;+a+&quot;h&quot;+i+&quot;l-&quot;+i/2+&quot;,-&quot;+a+&quot;Z&quot;;p.clipDefRelative.select(&quot;path&quot;).attr(&quot;d&quot;,I);var P=s(r,n);p.plotContainer.selectAll(&quot;.scatterlayer,.maplayer&quot;).attr(&quot;transform&quot;,P),p.clipDefRelative.select(&quot;path&quot;).attr(&quot;transform&quot;,null);var z=s(r-S._offset,n+a);p.layers.baxis.attr(&quot;transform&quot;,z),p.layers.bgrid.attr(&quot;transform&quot;,z);var O=s(r+i/2,n)+&quot;rotate(30)&quot;+s(0,-A._offset);p.layers.aaxis.attr(&quot;transform&quot;,O),p.layers.agrid.attr(&quot;transform&quot;,O);var D=s(r+i/2,n)+&quot;rotate(-30)&quot;+s(0,-C._offset);p.layers.caxis.attr(&quot;transform&quot;,D),p.layers.cgrid.attr(&quot;transform&quot;,D),p.drawAxes(!0),p.layers.aline.select(&quot;path&quot;).attr(&quot;d&quot;,A.showline?&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;l&quot;+i/2+&quot;,-&quot;+a:&quot;M0,0&quot;).call(c.stroke,A.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(A.linewidth||0)+&quot;px&quot;),p.layers.bline.select(&quot;path&quot;).attr(&quot;d&quot;,S.showline?&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;h&quot;+i:&quot;M0,0&quot;).call(c.stroke,S.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(S.linewidth||0)+&quot;px&quot;),p.layers.cline.select(&quot;path&quot;).attr(&quot;d&quot;,C.showline?&quot;M&quot;+(r+i/2)+&quot;,&quot;+n+&quot;l&quot;+i/2+&quot;,&quot;+a:&quot;M0,0&quot;).call(c.stroke,C.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(C.linewidth||0)+&quot;px&quot;),p.graphDiv._context.staticPlot||p.initInteractions(),u.setClipUrl(p.layers.frontplot,p._hasClipOnAxisFalse?null:p.clipId,p.graphDiv)},S.drawAxes=function(t){var e=this.graphDiv,r=this.id.substr(7)+&quot;title&quot;,n=this.layers,i=this.aaxis,a=this.baxis,o=this.caxis;if(this.drawAx(i),this.drawAx(a),this.drawAx(o),t){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(o.showticklabels?.75*o.tickfont.size:0)+(&quot;outside&quot;===o.ticks?.87*o.ticklen:0)),c=(a.showticklabels?a.tickfont.size:0)+(&quot;outside&quot;===a.ticks?a.ticklen:0)+3;n[&quot;a-title&quot;]=b.draw(e,&quot;a&quot;+r,{propContainer:i,propName:this.id+&quot;.aaxis.title&quot;,placeholder:l(e,&quot;Click to enter Component A title&quot;),attributes:{x:this.x0+this.w/2,y:this.y0-i.title.font.size/3-s,&quot;text-anchor&quot;:&quot;middle&quot;}}),n[&quot;b-title&quot;]=b.draw(e,&quot;b&quot;+r,{propContainer:a,propName:this.id+&quot;.baxis.title&quot;,placeholder:l(e,&quot;Click to enter Component B title&quot;),attributes:{x:this.x0-c,y:this.y0+this.h+.83*a.title.font.size+c,&quot;text-anchor&quot;:&quot;middle&quot;}}),n[&quot;c-title&quot;]=b.draw(e,&quot;c&quot;+r,{propContainer:o,propName:this.id+&quot;.caxis.title&quot;,placeholder:l(e,&quot;Click to enter Component C title&quot;),attributes:{x:this.x0+this.w+c,y:this.y0+this.h+.83*o.title.font.size+c,&quot;text-anchor&quot;:&quot;middle&quot;}})}},S.drawAx=function(t){var e,r=this.graphDiv,n=t._name,i=n.charAt(0),a=t._id,s=this.layers[n],l=i+&quot;tickLayout&quot;,c=(e=t).ticks+String(e.ticklen)+String(e.showticklabels);this[l]!==c&amp;&amp;(s.selectAll(&quot;.&quot;+a+&quot;tick&quot;).remove(),this[l]=c),t.setScale();var u=d.calcTicks(t),f=d.clipEnds(t,u),h=d.makeTransTickFn(t),p=d.getTickSigns(t)[2],g=o.deg2rad(30),m=p*(t.linewidth||1)/2,v=p*t.ticklen,y=this.w,x=this.h,b=&quot;b&quot;===i?&quot;M0,&quot;+m+&quot;l&quot;+Math.sin(g)*v+&quot;,&quot;+Math.cos(g)*v:&quot;M&quot;+m+&quot;,0l&quot;+Math.cos(g)*v+&quot;,&quot;+-Math.sin(g)*v,_={a:&quot;M0,0l&quot;+x+&quot;,-&quot;+y/2,b:&quot;M0,0l-&quot;+y/2+&quot;,-&quot;+x,c:&quot;M0,0l-&quot;+x+&quot;,&quot;+y/2}[i];d.drawTicks(r,t,{vals:&quot;inside&quot;===t.ticks?f:u,layer:s,path:b,transFn:h,crisp:!1}),d.drawGrid(r,t,{vals:f,layer:this.layers[i+&quot;grid&quot;],path:_,transFn:h,crisp:!1}),d.drawLabels(r,t,{vals:u,layer:s,transFn:h,labelFns:d.makeLabelFns(t,0,30)})};var C=M.MINZOOM/2+.87,L=&quot;m-0.87,.5h&quot;+C+&quot;v3h-&quot;+(C+5.2)+&quot;l&quot;+(C/2+2.6)+&quot;,-&quot;+(.87*C+4.5)+&quot;l2.6,1.5l-&quot;+C/2+&quot;,&quot;+.87*C+&quot;Z&quot;,I=&quot;m0.87,.5h-&quot;+C+&quot;v3h&quot;+(C+5.2)+&quot;l-&quot;+(C/2+2.6)+&quot;,-&quot;+(.87*C+4.5)+&quot;l-2.6,1.5l&quot;+C/2+&quot;,&quot;+.87*C+&quot;Z&quot;,P=&quot;m0,1l&quot;+C/2+&quot;,&quot;+.87*C+&quot;l2.6,-1.5l-&quot;+(C/2+2.6)+&quot;,-&quot;+(.87*C+4.5)+&quot;l-&quot;+(C/2+2.6)+&quot;,&quot;+(.87*C+4.5)+&quot;l2.6,1.5l&quot;+C/2+&quot;,-&quot;+.87*C+&quot;Z&quot;,z=!0;function O(t){n.select(t).selectAll(&quot;.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners&quot;).remove()}S.clearSelect=function(){k(this.dragOptions),T(this.dragOptions.gd)},S.initInteractions=function(){var t,e,r,n,f,h,p,d,v,b,T,k,A=this,S=A.layers.plotbg.select(&quot;path&quot;).node(),C=A.graphDiv,D=C._fullLayout._zoomlayer;function R(t){var e={};return e[A.id+&quot;.aaxis.min&quot;]=t.a,e[A.id+&quot;.baxis.min&quot;]=t.b,e[A.id+&quot;.caxis.min&quot;]=t.c,e}function F(t,e){var r=C._fullLayout.clickmode;O(C),2===t&amp;&amp;(C.emit(&quot;plotly_doubleclick&quot;,null),a.call(&quot;_guiRelayout&quot;,C,R({a:0,b:0,c:0}))),r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;1===t&amp;&amp;w(e,C,[A.xaxis],[A.yaxis],A.id,A.dragOptions),r.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;m.click(C,e,A.id)}function B(t,e){return 1-e/A.h}function N(t,e){return 1-(t+(A.h-e)/Math.sqrt(3))/A.w}function j(t,e){return(t-(A.h-e)/Math.sqrt(3))/A.w}function U(i,a){var o=r+i*t,s=n+a*e,l=Math.max(0,Math.min(1,B(0,n),B(0,s))),c=Math.max(0,Math.min(1,N(r,n),N(o,s))),u=Math.max(0,Math.min(1,j(r,n),j(o,s))),g=(l/2+u)*A.w,m=(1-l/2-c)*A.w,y=(g+m)/2,x=m-g,_=(1-l)*A.h,w=_-x/E;x&lt;M.MINZOOM?(p=f,T.attr(&quot;d&quot;,v),k.attr(&quot;d&quot;,&quot;M0,0Z&quot;)):(p={a:f.a+l*h,b:f.b+c*h,c:f.c+u*h},T.attr(&quot;d&quot;,v+&quot;M&quot;+g+&quot;,&quot;+_+&quot;H&quot;+m+&quot;L&quot;+y+&quot;,&quot;+w+&quot;L&quot;+g+&quot;,&quot;+_+&quot;Z&quot;),k.attr(&quot;d&quot;,&quot;M&quot;+r+&quot;,&quot;+n+&quot;m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2ZM&quot;+g+&quot;,&quot;+_+L+&quot;M&quot;+m+&quot;,&quot;+_+I+&quot;M&quot;+y+&quot;,&quot;+w+P)),b||(T.transition().style(&quot;fill&quot;,d&gt;.2?&quot;rgba(0,0,0,0.4)&quot;:&quot;rgba(255,255,255,0.3)&quot;).duration(200),k.transition().style(&quot;opacity&quot;,1).duration(200),b=!0),C.emit(&quot;plotly_relayouting&quot;,R(p))}function V(){O(C),p!==f&amp;&amp;(a.call(&quot;_guiRelayout&quot;,C,R(p)),z&amp;&amp;C.data&amp;&amp;C._context.showTips&amp;&amp;(o.notifier(l(C,&quot;Double-click to zoom back out&quot;),&quot;long&quot;),z=!1))}function q(t,e){var r=t/A.xaxis._m,n=e/A.yaxis._m,i=[(p={a:f.a-n,b:f.b+(r+n)/2,c:f.c-(r-n)/2}).a,p.b,p.c].sort(o.sorterAsc),a=i.indexOf(p.a),l=i.indexOf(p.b),c=i.indexOf(p.c);i[0]&lt;0&amp;&amp;(i[1]+i[0]/2&lt;0?(i[2]+=i[0]+i[1],i[0]=i[1]=0):(i[2]+=i[0]/2,i[1]+=i[0]/2,i[0]=0),p={a:i[a],b:i[l],c:i[c]},e=(f.a-p.a)*A.yaxis._m,t=(f.c-p.c-f.b+p.b)*A.xaxis._m);var h=s(A.x0+t,A.y0+e);A.plotContainer.selectAll(&quot;.scatterlayer,.maplayer&quot;).attr(&quot;transform&quot;,h);var d=s(-t,-e);A.clipDefRelative.select(&quot;path&quot;).attr(&quot;transform&quot;,d),A.aaxis.range=[p.a,A.sum-p.b-p.c],A.baxis.range=[A.sum-p.a-p.c,p.b],A.caxis.range=[A.sum-p.a-p.b,p.c],A.drawAxes(!1),A._hasClipOnAxisFalse&amp;&amp;A.plotContainer.select(&quot;.scatterlayer&quot;).selectAll(&quot;.trace&quot;).call(u.hideOutsideRangePoints,A),C.emit(&quot;plotly_relayouting&quot;,R(p))}function H(){a.call(&quot;_guiRelayout&quot;,C,R(p))}this.dragOptions={element:S,gd:C,plotinfo:{id:A.id,domain:C._fullLayout[A.id].domain,xaxis:A.xaxis,yaxis:A.yaxis},subplot:A.id,prepFn:function(a,l,u){A.dragOptions.xaxes=[A.xaxis],A.dragOptions.yaxes=[A.yaxis],t=C._fullLayout._invScaleX,e=C._fullLayout._invScaleY;var g=A.dragOptions.dragmode=C._fullLayout.dragmode;y(g)?A.dragOptions.minDrag=1:A.dragOptions.minDrag=void 0,&quot;zoom&quot;===g?(A.dragOptions.moveFn=U,A.dragOptions.clickFn=F,A.dragOptions.doneFn=V,function(t,e,a){var l=S.getBoundingClientRect();r=e-l.left,n=a-l.top,C._fullLayout._calcInverseTransform(C);var u=C._fullLayout._invTransform,g=o.apply3DTransform(u)(r,n);r=g[0],n=g[1],f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},p=f,h=A.aaxis.range[1]-f.a,d=i(A.graphDiv._fullLayout[A.id].bgcolor).getLuminance(),v=&quot;M0,&quot;+A.h+&quot;L&quot;+A.w/2+&quot;, 0L&quot;+A.w+&quot;,&quot;+A.h+&quot;Z&quot;,b=!1,T=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox&quot;).attr(&quot;transform&quot;,s(A.x0,A.y0)).style({fill:d&gt;.2?&quot;rgba(0,0,0,0)&quot;:&quot;rgba(255,255,255,0)&quot;,&quot;stroke-width&quot;:0}).attr(&quot;d&quot;,v),k=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).attr(&quot;transform&quot;,s(A.x0,A.y0)).style({fill:c.background,stroke:c.defaultLine,&quot;stroke-width&quot;:1,opacity:0}).attr(&quot;d&quot;,&quot;M0,0Z&quot;),A.clearSelect(C)}(0,l,u)):&quot;pan&quot;===g?(A.dragOptions.moveFn=q,A.dragOptions.clickFn=F,A.dragOptions.doneFn=H,f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},p=f,A.clearSelect(C)):(x(g)||y(g))&amp;&amp;_(a,l,u,A.dragOptions,g)}},S.onmousemove=function(t){m.hover(C,t,A.id),C._fullLayout._lasthover=S,C._fullLayout._hoversubplot=A.id},S.onmouseout=function(t){C._dragging||g.unhover(C,t)},g.init(this.dragOptions)}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../components/titles&quot;:738,&quot;../../lib&quot;:778,&quot;../../lib/extend&quot;:768,&quot;../../registry&quot;:911,&quot;../cartesian/axes&quot;:828,&quot;../cartesian/constants&quot;:834,&quot;../cartesian/select&quot;:847,&quot;../cartesian/set_convert&quot;:848,&quot;../plots&quot;:891,d3:169,tinycolor2:576}],911:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/loggers&quot;),i=t(&quot;./lib/noop&quot;),a=t(&quot;./lib/push_unique&quot;),o=t(&quot;./lib/is_plain_object&quot;),s=t(&quot;./lib/dom&quot;).addStyleRule,l=t(&quot;./lib/extend&quot;),c=t(&quot;./plots/attributes&quot;),u=t(&quot;./plots/layout_attributes&quot;),f=l.extendFlat,h=l.extendDeepAll;function p(t){var e=t.name,i=t.categories,a=t.meta;if(r.modules[e])n.log(&quot;Type &quot;+e+&quot; already registered&quot;);else{r.subplotsRegistry[t.basePlotModule.name]||function(t){var e=t.name;if(r.subplotsRegistry[e])return void n.log(&quot;Plot type &quot;+e+&quot; already registered.&quot;);for(var i in v(t),r.subplotsRegistry[e]=t,r.componentsRegistry)b(i,t.name)}(t.basePlotModule);for(var o={},l=0;l&lt;i.length;l++)o[i[l]]=!0,r.allCategories[i[l]]=!0;for(var c in r.modules[e]={_module:t,categories:o},a&amp;&amp;Object.keys(a).length&amp;&amp;(r.modules[e].meta=a),r.allTypes.push(e),r.componentsRegistry)y(c,e);t.layoutAttributes&amp;&amp;f(r.traceLayoutAttributes,t.layoutAttributes);var u=t.basePlotModule,h=u.name;if(&quot;mapbox&quot;===h){var p=u.constants.styleRules;for(var d in p)s(&quot;.js-plotly-plot .plotly .mapboxgl-&quot;+d,p[d])}&quot;geo&quot;!==h&amp;&amp;&quot;mapbox&quot;!==h||void 0===typeof window||void 0!==window.PlotlyGeoAssets||(window.PlotlyGeoAssets={topojson:{}})}}function d(t){if(&quot;string&quot;!=typeof t.name)throw new Error(&quot;Component module *name* must be a string.&quot;);var e=t.name;for(var n in r.componentsRegistry[e]=t,t.layoutAttributes&amp;&amp;(t.layoutAttributes._isLinkedToArray&amp;&amp;a(r.layoutArrayContainers,e),v(t)),r.modules)y(e,n);for(var i in r.subplotsRegistry)b(e,i);for(var o in r.transformsRegistry)x(e,o);t.schema&amp;&amp;t.schema.layout&amp;&amp;h(u,t.schema.layout)}function g(t){if(&quot;string&quot;!=typeof t.name)throw new Error(&quot;Transform module *name* must be a string.&quot;);var e=&quot;Transform module &quot;+t.name,i=&quot;function&quot;==typeof t.transform,a=&quot;function&quot;==typeof t.calcTransform;if(!i&amp;&amp;!a)throw new Error(e+&quot; is missing a *transform* or *calcTransform* method.&quot;);for(var s in i&amp;&amp;a&amp;&amp;n.log([e+&quot; has both a *transform* and *calcTransform* methods.&quot;,&quot;Please note that all *transform* methods are executed&quot;,&quot;before all *calcTransform* methods.&quot;].join(&quot; &quot;)),o(t.attributes)||n.log(e+&quot; registered without an *attributes* object.&quot;),&quot;function&quot;!=typeof t.supplyDefaults&amp;&amp;n.log(e+&quot; registered without a *supplyDefaults* method.&quot;),r.transformsRegistry[t.name]=t,r.componentsRegistry)x(s,t.name)}function m(t){var e=t.name,n=e.split(&quot;-&quot;)[0],i=t.dictionary,a=t.format,o=i&amp;&amp;Object.keys(i).length,s=a&amp;&amp;Object.keys(a).length,l=r.localeRegistry,c=l[e];if(c||(l[e]=c={}),n!==e){var u=l[n];u||(l[n]=u={}),o&amp;&amp;u.dictionary===c.dictionary&amp;&amp;(u.dictionary=i),s&amp;&amp;u.format===c.format&amp;&amp;(u.format=a)}o&amp;&amp;(c.dictionary=i),s&amp;&amp;(c.format=a)}function v(t){if(t.layoutAttributes){var e=t.layoutAttributes._arrayAttrRegexps;if(e)for(var n=0;n&lt;e.length;n++)a(r.layoutArrayRegexes,e[n])}}function y(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.traces){var i=n.traces[e];i&amp;&amp;h(r.modules[e]._module.attributes,i)}}function x(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.transforms){var i=n.transforms[e];i&amp;&amp;h(r.transformsRegistry[e].attributes,i)}}function b(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.subplots){var i=r.subplotsRegistry[e],a=i.layoutAttributes,o=&quot;subplot&quot;===i.attr?i.name:i.attr;Array.isArray(o)&amp;&amp;(o=o[0]);var s=n.subplots[o];a&amp;&amp;s&amp;&amp;h(a,s)}}function _(t){return&quot;object&quot;==typeof t&amp;&amp;(t=t.type),t}r.modules={},r.allCategories={},r.allTypes=[],r.subplotsRegistry={},r.transformsRegistry={},r.componentsRegistry={},r.layoutArrayContainers=[],r.layoutArrayRegexes=[],r.traceLayoutAttributes={},r.localeRegistry={},r.apiMethodRegistry={},r.collectableSubplotTypes=null,r.register=function(t){if(r.collectableSubplotTypes=null,!t)throw new Error(&quot;No argument passed to Plotly.register.&quot;);t&amp;&amp;!Array.isArray(t)&amp;&amp;(t=[t]);for(var e=0;e&lt;t.length;e++){var n=t[e];if(!n)throw new Error(&quot;Invalid module was attempted to be registered!&quot;);switch(n.moduleType){case&quot;trace&quot;:p(n);break;case&quot;transform&quot;:g(n);break;case&quot;component&quot;:d(n);break;case&quot;locale&quot;:m(n);break;case&quot;apiMethod&quot;:var i=n.name;r.apiMethodRegistry[i]=n.fn;break;default:throw new Error(&quot;Invalid module was attempted to be registered!&quot;)}}},r.getModule=function(t){var e=r.modules[_(t)];return!!e&amp;&amp;e._module},r.traceIs=function(t,e){if(&quot;various&quot;===(t=_(t)))return!1;var i=r.modules[t];return i||(t&amp;&amp;&quot;area&quot;!==t&amp;&amp;n.log(&quot;Unrecognized trace type &quot;+t+&quot;.&quot;),i=r.modules[c.type.dflt]),!!i.categories[e]},r.getTransformIndices=function(t,e){for(var r=[],n=t.transforms||[],i=0;i&lt;n.length;i++)n[i].type===e&amp;&amp;r.push(i);return r},r.hasTransform=function(t,e){for(var r=t.transforms||[],n=0;n&lt;r.length;n++)if(r[n].type===e)return!0;return!1},r.getComponentMethod=function(t,e){var n=r.componentsRegistry[t];return n&amp;&amp;n[e]||i},r.call=function(){var t=arguments[0],e=[].slice.call(arguments,1);return r.apiMethodRegistry[t].apply(null,e)}},{&quot;./lib/dom&quot;:766,&quot;./lib/extend&quot;:768,&quot;./lib/is_plain_object&quot;:779,&quot;./lib/loggers&quot;:782,&quot;./lib/noop&quot;:787,&quot;./lib/push_unique&quot;:793,&quot;./plots/attributes&quot;:824,&quot;./plots/layout_attributes&quot;:882}],912:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;),a=i.extendFlat,o=i.extendDeep;function s(t){var e;switch(t){case&quot;themes__thumb&quot;:e={autosize:!0,width:150,height:150,title:{text:&quot;&quot;},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case&quot;thumbnail&quot;:e={title:{text:&quot;&quot;},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:&quot;&quot;,margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:e={}}return e}e.exports=function(t,e){var r;t.framework&amp;&amp;t.framework.isPolar&amp;&amp;(t=t.framework.getConfig());var i,l=t.data,c=t.layout,u=o([],l),f=o({},c,s(e.tileClass)),h=t._context||{};if(e.width&amp;&amp;(f.width=e.width),e.height&amp;&amp;(f.height=e.height),&quot;thumbnail&quot;===e.tileClass||&quot;themes__thumb&quot;===e.tileClass){f.annotations=[];var p=Object.keys(f);for(r=0;r&lt;p.length;r++)i=p[r],[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;].indexOf(i.slice(0,5))&gt;-1&amp;&amp;(f[p[r]].title={text:&quot;&quot;});for(r=0;r&lt;u.length;r++){var d=u[r];d.showscale=!1,d.marker&amp;&amp;(d.marker.showscale=!1),n.traceIs(d,&quot;pie-like&quot;)&amp;&amp;(d.textposition=&quot;none&quot;)}}if(Array.isArray(e.annotations))for(r=0;r&lt;e.annotations.length;r++)f.annotations.push(e.annotations[r]);var g=Object.keys(f).filter((function(t){return t.match(/^scene\d*$/)}));if(g.length){var m={};for(&quot;thumbnail&quot;===e.tileClass&amp;&amp;(m={title:{text:&quot;&quot;},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),r=0;r&lt;g.length;r++){var v=f[g[r]];v.xaxis||(v.xaxis={}),v.yaxis||(v.yaxis={}),v.zaxis||(v.zaxis={}),a(v.xaxis,m),a(v.yaxis,m),a(v.zaxis,m),v._scene=null}}var y=document.createElement(&quot;div&quot;);e.tileClass&amp;&amp;(y.className=e.tileClass);var x={gd:y,td:y,layout:f,data:u,config:{staticPlot:void 0===e.staticPlot||e.staticPlot,plotGlPixelRatio:void 0===e.plotGlPixelRatio?2:e.plotGlPixelRatio,displaylogo:e.displaylogo||!1,showLink:e.showLink||!1,showTips:e.showTips||!1,mapboxAccessToken:h.mapboxAccessToken}};return&quot;transparent&quot;!==e.setBackground&amp;&amp;(x.config.setBackground=e.setBackground||&quot;opaque&quot;),x.gd.defaultLayout=s(e.tileClass),x}},{&quot;../lib&quot;:778,&quot;../registry&quot;:911}],913:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/to_image&quot;),a=t(&quot;./filesaver&quot;),o=t(&quot;./helpers&quot;);e.exports=function(t,e){var r;return n.isPlainObject(t)||(r=n.getGraphDiv(t)),(e=e||{}).format=e.format||&quot;png&quot;,e.width=e.width||null,e.height=e.height||null,e.imageDataOnly=!0,new Promise((function(s,l){r&amp;&amp;r._snapshotInProgress&amp;&amp;l(new Error(&quot;Snapshotting already in progress.&quot;)),n.isIE()&amp;&amp;&quot;svg&quot;!==e.format&amp;&amp;l(new Error(o.MSG_IE_BAD_FORMAT)),r&amp;&amp;(r._snapshotInProgress=!0);var c=i(t,e),u=e.filename||t.fn||&quot;newplot&quot;;u+=&quot;.&quot;+e.format.replace(&quot;-&quot;,&quot;.&quot;),c.then((function(t){return r&amp;&amp;(r._snapshotInProgress=!1),a(t,u,e.format)})).then((function(t){s(t)})).catch((function(t){r&amp;&amp;(r._snapshotInProgress=!1),l(t)}))}))}},{&quot;../lib&quot;:778,&quot;../plot_api/to_image&quot;:820,&quot;./filesaver&quot;:914,&quot;./helpers&quot;:915}],914:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;./helpers&quot;);e.exports=function(t,e,r){var a=document.createElement(&quot;a&quot;),o=&quot;download&quot;in a;return new Promise((function(s,l){var c,u;if(n.isIE9orBelow()&amp;&amp;l(new Error(&quot;IE &lt; 10 unsupported&quot;)),n.isSafari()){var f=&quot;svg&quot;===r?&quot;,&quot;:&quot;;base64,&quot;;return i.octetStream(f+encodeURIComponent(t)),s(e)}return n.isIE()?(c=i.createBlob(t,&quot;svg&quot;),window.navigator.msSaveBlob(c,e),c=null,s(e)):o?(c=i.createBlob(t,r),u=i.createObjectURL(c),a.href=u,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),i.revokeObjectURL(u),c=null,s(e)):void l(new Error(&quot;download error&quot;))}))}},{&quot;../lib&quot;:778,&quot;./helpers&quot;:915}],915:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);r.getDelay=function(t){return t._has&amp;&amp;(t._has(&quot;gl3d&quot;)||t._has(&quot;gl2d&quot;)||t._has(&quot;mapbox&quot;))?500:0},r.getRedrawFunc=function(t){return function(){var e=t._fullLayout||{};!(e._has&amp;&amp;e._has(&quot;polar&quot;))&amp;&amp;t.data&amp;&amp;t.data[0]&amp;&amp;t.data[0].r||n.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t)}},r.encodeSVG=function(t){return&quot;data:image/svg+xml,&quot;+encodeURIComponent(t)},r.encodeJSON=function(t){return&quot;data:application/json,&quot;+encodeURIComponent(t)};var i=window.URL||window.webkitURL;r.createObjectURL=function(t){return i.createObjectURL(t)},r.revokeObjectURL=function(t){return i.revokeObjectURL(t)},r.createBlob=function(t,e){if(&quot;svg&quot;===e)return new window.Blob([t],{type:&quot;image/svg+xml;charset=utf-8&quot;});if(&quot;full-json&quot;===e)return new window.Blob([t],{type:&quot;application/json;charset=utf-8&quot;});var r=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r),i=0;i&lt;e;i++)n[i]=t.charCodeAt(i);return r}(window.atob(t));return new window.Blob([r],{type:&quot;image/&quot;+e})},r.octetStream=function(t){document.location.href=&quot;data:application/octet-stream&quot;+t},r.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/,r.MSG_IE_BAD_FORMAT=&quot;Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.&quot;},{&quot;../registry&quot;:911}],916:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./helpers&quot;),i={getDelay:n.getDelay,getRedrawFunc:n.getRedrawFunc,clone:t(&quot;./cloneplot&quot;),toSVG:t(&quot;./tosvg&quot;),svgToImg:t(&quot;./svgtoimg&quot;),toImage:t(&quot;./toimage&quot;),downloadImage:t(&quot;./download&quot;)};e.exports=i},{&quot;./cloneplot&quot;:912,&quot;./download&quot;:913,&quot;./helpers&quot;:915,&quot;./svgtoimg&quot;:917,&quot;./toimage&quot;:918,&quot;./tosvg&quot;:919}],917:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;events&quot;).EventEmitter,a=t(&quot;./helpers&quot;);e.exports=function(t){var e=t.emitter||new i,r=new Promise((function(i,o){var s=window.Image,l=t.svg,c=t.format||&quot;png&quot;;if(n.isIE()&amp;&amp;&quot;svg&quot;!==c){var u=new Error(a.MSG_IE_BAD_FORMAT);return o(u),t.promise?r:e.emit(&quot;error&quot;,u)}var f,h,p=t.canvas,d=t.scale||1,g=t.width||300,m=t.height||150,v=d*g,y=d*m,x=p.getContext(&quot;2d&quot;),b=new s;&quot;svg&quot;===c||n.isIE9orBelow()||n.isSafari()?h=a.encodeSVG(l):(f=a.createBlob(l,&quot;svg&quot;),h=a.createObjectURL(f)),p.width=v,p.height=y,b.onload=function(){var r;switch(f=null,a.revokeObjectURL(h),&quot;svg&quot;!==c&amp;&amp;x.drawImage(b,0,0,v,y),c){case&quot;jpeg&quot;:r=p.toDataURL(&quot;image/jpeg&quot;);break;case&quot;png&quot;:r=p.toDataURL(&quot;image/png&quot;);break;case&quot;webp&quot;:r=p.toDataURL(&quot;image/webp&quot;);break;case&quot;svg&quot;:r=h;break;default:var n=&quot;Image format is not jpeg, png, svg or webp.&quot;;if(o(new Error(n)),!t.promise)return e.emit(&quot;error&quot;,n)}i(r),t.promise||e.emit(&quot;success&quot;,r)},b.onerror=function(r){if(f=null,a.revokeObjectURL(h),o(r),!t.promise)return e.emit(&quot;error&quot;,r)},b.src=h}));return t.promise?r:e}},{&quot;../lib&quot;:778,&quot;./helpers&quot;:915,events:110}],918:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;events&quot;).EventEmitter,i=t(&quot;../registry&quot;),a=t(&quot;../lib&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;./cloneplot&quot;),l=t(&quot;./tosvg&quot;),c=t(&quot;./svgtoimg&quot;);e.exports=function(t,e){var r=new n,u=s(t,{format:&quot;png&quot;}),f=u.gd;f.style.position=&quot;absolute&quot;,f.style.left=&quot;-5000px&quot;,document.body.appendChild(f);var h=o.getRedrawFunc(f);return i.call(&quot;plot&quot;,f,u.data,u.layout,u.config).then(h).then((function(){var t=o.getDelay(f._fullLayout);setTimeout((function(){var t=l(f),n=document.createElement(&quot;canvas&quot;);n.id=a.randstr(),(r=c({format:e.format,width:f._fullLayout.width,height:f._fullLayout.height,canvas:n,emitter:r,svg:t})).clean=function(){f&amp;&amp;document.body.removeChild(f)}}),t)})).catch((function(t){r.emit(&quot;error&quot;,t)})),r}},{&quot;../lib&quot;:778,&quot;../registry&quot;:911,&quot;./cloneplot&quot;:912,&quot;./helpers&quot;:915,&quot;./svgtoimg&quot;:917,&quot;./tosvg&quot;:919,events:110}],919:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../components/drawing&quot;),o=t(&quot;../components/color&quot;),s=t(&quot;../constants/xmlns_namespaces&quot;),l=/&quot;/g,c=new RegExp('(&quot;TOBESTRIPPED)|(TOBESTRIPPED&quot;)',&quot;g&quot;);e.exports=function(t,e,r){var u,f=t._fullLayout,h=f._paper,p=f._toppaper,d=f.width,g=f.height;h.insert(&quot;rect&quot;,&quot;:first-child&quot;).call(a.setRect,0,0,d,g).call(o.fill,f.paper_bgcolor);var m=f._basePlotModules||[];for(u=0;u&lt;m.length;u++){var v=m[u];v.toSVG&amp;&amp;v.toSVG(t)}if(p){var y=p.node().childNodes,x=Array.prototype.slice.call(y);for(u=0;u&lt;x.length;u++){var b=x[u];b.childNodes.length&amp;&amp;h.node().appendChild(b)}}if(f._draggers&amp;&amp;f._draggers.remove(),h.node().style.background=&quot;&quot;,h.selectAll(&quot;text&quot;).attr({&quot;data-unformatted&quot;:null,&quot;data-math&quot;:null}).each((function(){var t=n.select(this);if(&quot;hidden&quot;!==this.style.visibility&amp;&amp;&quot;none&quot;!==this.style.display){t.style({visibility:null,display:null});var e=this.style.fontFamily;e&amp;&amp;-1!==e.indexOf('&quot;')&amp;&amp;t.style(&quot;font-family&quot;,e.replace(l,&quot;TOBESTRIPPED&quot;))}else t.remove()})),f._gradientUrlQueryParts){var _=[];for(var w in f._gradientUrlQueryParts)_.push(w);_.length&amp;&amp;h.selectAll(_.join(&quot;,&quot;)).each((function(){var t=n.select(this),e=this.style.fill;e&amp;&amp;-1!==e.indexOf(&quot;url(&quot;)&amp;&amp;t.style(&quot;fill&quot;,e.replace(l,&quot;TOBESTRIPPED&quot;));var r=this.style.stroke;r&amp;&amp;-1!==r.indexOf(&quot;url(&quot;)&amp;&amp;t.style(&quot;stroke&quot;,r.replace(l,&quot;TOBESTRIPPED&quot;))}))}&quot;pdf&quot;!==e&amp;&amp;&quot;eps&quot;!==e||h.selectAll(&quot;#MathJax_SVG_glyphs path&quot;).attr(&quot;stroke-width&quot;,0),h.node().setAttributeNS(s.xmlns,&quot;xmlns&quot;,s.svg),h.node().setAttributeNS(s.xmlns,&quot;xmlns:xlink&quot;,s.xlink),&quot;svg&quot;===e&amp;&amp;r&amp;&amp;(h.attr(&quot;width&quot;,r*d),h.attr(&quot;height&quot;,r*g),h.attr(&quot;viewBox&quot;,&quot;0 0 &quot;+d+&quot; &quot;+g));var T=(new window.XMLSerializer).serializeToString(h.node());return T=function(t){var e=n.select(&quot;body&quot;).append(&quot;div&quot;).style({display:&quot;none&quot;}).html(&quot;&quot;),r=t.replace(/(&amp;[^;]*;)/gi,(function(t){return&quot;&amp;lt;&quot;===t?&quot;&amp;#60;&quot;:&quot;&amp;rt;&quot;===t?&quot;&amp;#62;&quot;:-1!==t.indexOf(&quot;&lt;&quot;)||-1!==t.indexOf(&quot;&gt;&quot;)?&quot;&quot;:e.html(t).text()}));return e.remove(),r}(T),T=(T=T.replace(/&amp;(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,&quot;&amp;amp;&quot;)).replace(c,&quot;'&quot;),i.isIE()&amp;&amp;(T=(T=(T=T.replace(/&quot;/gi,&quot;'&quot;)).replace(/(\('#)([^']*)('\))/gi,'(&quot;#$2&quot;)')).replace(/(\\')/gi,'&quot;')),T}},{&quot;../components/color&quot;:643,&quot;../components/drawing&quot;:665,&quot;../constants/xmlns_namespaces&quot;:754,&quot;../lib&quot;:778,d3:169}],920:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;);var i=e.marker;if(i){n.mergeArray(i.opacity,t,&quot;mo&quot;,!0),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;a&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;))}}},{&quot;../../lib&quot;:778}],921:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/font_attributes&quot;),l=t(&quot;./constants&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat,u=s({editType:&quot;calc&quot;,arrayOk:!0,colorEditType:&quot;style&quot;}),f=c({},n.marker.line.width,{dflt:0}),h=c({width:f,editType:&quot;calc&quot;},o(&quot;marker.line&quot;)),p=c({line:h,editType:&quot;calc&quot;},o(&quot;marker&quot;),{opacity:{valType:&quot;number&quot;,arrayOk:!0,dflt:1,min:0,max:1,editType:&quot;style&quot;}});e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,text:n.text,texttemplate:a({editType:&quot;plot&quot;},{keys:l.eventDataKeys}),hovertext:n.hovertext,hovertemplate:i({},{keys:l.eventDataKeys}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;auto&quot;,&quot;none&quot;],dflt:&quot;none&quot;,arrayOk:!0,editType:&quot;calc&quot;},insidetextanchor:{valType:&quot;enumerated&quot;,values:[&quot;end&quot;,&quot;middle&quot;,&quot;start&quot;],dflt:&quot;end&quot;,editType:&quot;plot&quot;},textangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;plot&quot;},textfont:c({},u,{}),insidetextfont:c({},u,{}),outsidetextfont:c({},u,{}),constraintext:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;both&quot;,&quot;none&quot;],dflt:&quot;both&quot;,editType:&quot;calc&quot;},cliponaxis:c({},n.cliponaxis,{}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc+clearAxisTypes&quot;},base:{valType:&quot;any&quot;,dflt:null,arrayOk:!0,editType:&quot;calc&quot;},offset:{valType:&quot;number&quot;,dflt:null,arrayOk:!0,editType:&quot;calc&quot;},width:{valType:&quot;number&quot;,dflt:null,min:0,arrayOk:!0,editType:&quot;calc&quot;},marker:p,offsetgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},alignmentgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},selected:{marker:{opacity:n.selected.marker.opacity,color:n.selected.marker.color,editType:&quot;style&quot;},textfont:n.selected.textfont,editType:&quot;style&quot;},unselected:{marker:{opacity:n.unselected.marker.opacity,color:n.unselected.marker.color,editType:&quot;style&quot;},textfont:n.unselected.textfont,editType:&quot;style&quot;},r:n.r,t:n.t,_deprecated:{bardir:{valType:&quot;enumerated&quot;,editType:&quot;calc&quot;,values:[&quot;v&quot;,&quot;h&quot;]}}}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:923}],922:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,o=t(&quot;../../components/colorscale/calc&quot;),s=t(&quot;./arrays_to_calcdata&quot;),l=t(&quot;../scatter/calc_selection&quot;);e.exports=function(t,e){var r,c,u,f,h=n.getFromId(t,e.xaxis||&quot;x&quot;),p=n.getFromId(t,e.yaxis||&quot;y&quot;),d={msUTC:!(!e.base&amp;&amp;0!==e.base)};&quot;h&quot;===e.orientation?(r=h.makeCalcdata(e,&quot;x&quot;,d),u=p.makeCalcdata(e,&quot;y&quot;),c=i(e,p,&quot;y&quot;,u),f=!!e.yperiodalignment):(r=p.makeCalcdata(e,&quot;y&quot;,d),u=h.makeCalcdata(e,&quot;x&quot;),c=i(e,h,&quot;x&quot;,u),f=!!e.xperiodalignment);for(var g=Math.min(c.length,r.length),m=new Array(g),v=0;v&lt;g;v++)m[v]={p:c[v],s:r[v]},f&amp;&amp;(m[v].orig_p=u[v]),e.ids&amp;&amp;(m[v].id=String(e.ids[v]));return a(e,&quot;marker&quot;)&amp;&amp;o(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),a(e,&quot;marker.line&quot;)&amp;&amp;o(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}),s(m,e),l(m,e),m}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc_selection&quot;:1189,&quot;./arrays_to_calcdata&quot;:920}],923:[function(t,e,r){&quot;use strict&quot;;e.exports={TEXTPAD:3,eventDataKeys:[&quot;value&quot;,&quot;label&quot;]}},{}],924:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray,a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../registry&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,c=t(&quot;./sieve.js&quot;);function u(t,e,r,o,u){if(o.length){var b,_,w,T;switch(function(t,e){var r,a;for(r=0;r&lt;e.length;r++){var o,s=e[r],l=s[0].trace,c=&quot;funnel&quot;===l.type?l._base:l.base,u=&quot;h&quot;===l.orientation?l.xcalendar:l.ycalendar,f=&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?function(){return null}:t.d2c;if(i(c)){for(a=0;a&lt;Math.min(c.length,s.length);a++)o=f(c[a],0,u),n(o)?(s[a].b=+o,s[a].hasB=1):s[a].b=0;for(;a&lt;s.length;a++)s[a].b=0}else{o=f(c,0,u);var h=n(o);for(o=h?o:0,a=0;a&lt;s.length;a++)s[a].b=o,h&amp;&amp;(s[a].hasB=1)}}}(r,o),u.mode){case&quot;overlay&quot;:f(e,r,o,u);break;case&quot;group&quot;:for(b=[],_=[],w=0;w&lt;o.length;w++)void 0===(T=o[w])[0].trace.offset?_.push(T):b.push(T);_.length&amp;&amp;function(t,e,r,n,i){var o=new c(n,{sepNegVal:!1,overlapNoMerge:!i.norm});(function(t,e,r,n){for(var i=t._fullLayout,a=r.positions,o=r.distinctPositions,s=r.minDiff,c=r.traces,u=c.length,f=a.length!==o.length,h=s*(1-n.gap),m=l(i,e._id)+c[0][0].trace.orientation,v=i._alignmentOpts[m]||{},y=0;y&lt;u;y++){var x,b,_=c[y],w=_[0].trace,T=v[w.alignmentgroup]||{},k=Object.keys(T.offsetGroups||{}).length,M=(x=k?h/k:f?h/u:h)*(1-(n.groupgap||0));b=k?((2*w._offsetIndex+1-k)*x-M)/2:f?((2*y+1-u)*x-M)/2:-M/2;var A=_[0].t;A.barwidth=M,A.poffset=b,A.bargroupwidth=h,A.bardelta=s}r.binWidth=c[0][0].t.barwidth/100,p(r),d(e,r),g(e,r,f)})(t,e,o,i),function(t){for(var e=t.traces,r=0;r&lt;e.length;r++){var n=e[r];if(void 0===n[0].trace.base)for(var i=new c([n],{sepNegVal:!0,overlapNoMerge:!0}),o=0;o&lt;n.length;o++){var s=n[o];if(s.p!==a){var l=i.put(s.p,s.b+s.s);l&amp;&amp;(s.b=l)}}}}(o),i.norm?(v(o),y(r,o,i)):m(r,o)}(t,e,r,_,u),b.length&amp;&amp;f(e,r,b,u);break;case&quot;stack&quot;:case&quot;relative&quot;:for(b=[],_=[],w=0;w&lt;o.length;w++)void 0===(T=o[w])[0].trace.base?_.push(T):b.push(T);_.length&amp;&amp;function(t,e,r,n,i){var o=new c(n,{sepNegVal:&quot;relative&quot;===i.mode,overlapNoMerge:!(i.norm||&quot;stack&quot;===i.mode||&quot;relative&quot;===i.mode)});h(e,o,i),function(t,e,r){var n,i,o,l,c,u,f=x(t),h=e.traces;for(l=0;l&lt;h.length;l++)if(n=h[l],&quot;funnel&quot;===(i=n[0].trace).type)for(c=0;c&lt;n.length;c++)(u=n[c]).s!==a&amp;&amp;e.put(u.p,-.5*u.s);for(l=0;l&lt;h.length;l++){n=h[l],i=n[0].trace,o=&quot;funnel&quot;===i.type;var p=[];for(c=0;c&lt;n.length;c++)if((u=n[c]).s!==a){var d;d=o?u.s:u.s+u.b;var g=e.put(u.p,d),m=g+d;u.b=g,u[f]=m,r.norm||(p.push(m),u.hasB&amp;&amp;p.push(g))}r.norm||(i._extremes[t._id]=s.findExtremes(t,p,{tozero:!0,padded:!0}))}}(r,o,i);for(var l=0;l&lt;n.length;l++)for(var u=n[l],f=0;f&lt;u.length;f++){var p=u[f];if(p.s!==a)p.b+p.s===o.get(p.p,p.s)&amp;&amp;(p._outmost=!0)}i.norm&amp;&amp;y(r,o,i)}(0,e,r,_,u),b.length&amp;&amp;f(e,r,b,u)}!function(t,e){var r,i,a,o=x(e),s={},l=1/0,c=-1/0;for(r=0;r&lt;t.length;r++)for(a=t[r],i=0;i&lt;a.length;i++){var u=a[i].p;n(u)&amp;&amp;(l=Math.min(l,u),c=Math.max(c,u))}var f=1e4/(c-l),h=s.round=function(t){return String(Math.round(f*(t-l)))};for(r=0;r&lt;t.length;r++){(a=t[r])[0].t.extents=s;var p=a[0].t.poffset,d=Array.isArray(p);for(i=0;i&lt;a.length;i++){var g=a[i],m=g[o]-g.w/2;if(n(m)){var v=g[o]+g.w/2,y=h(g.p);s[y]?s[y]=[Math.min(m,s[y][0]),Math.max(v,s[y][1])]:s[y]=[m,v]}g.p0=g.p+(d?p[i]:p),g.p1=g.p0+g.w,g.s0=g.b,g.s1=g.s0+g.s}}}(o,e)}}function f(t,e,r,n){for(var i=0;i&lt;r.length;i++){var a=r[i],o=new c([a],{unitMinDiff:n.xCat||n.yCat,sepNegVal:!1,overlapNoMerge:!n.norm});h(t,o,n),n.norm?(v(o),y(e,o,n)):m(e,o)}}function h(t,e,r){for(var n=e.minDiff,i=e.traces,a=n*(1-r.gap),o=a*(1-(r.groupgap||0)),s=-o/2,l=0;l&lt;i.length;l++){var c=i[l][0].t;c.barwidth=o,c.poffset=s,c.bargroupwidth=a,c.bardelta=n}e.binWidth=i[0][0].t.barwidth/100,p(e),d(t,e),g(t,e)}function p(t){var e,r,a=t.traces;for(e=0;e&lt;a.length;e++){var o,s=a[e],l=s[0],c=l.trace,u=l.t,f=c._offset||c.offset,h=u.poffset;if(i(f)){for(o=Array.prototype.slice.call(f,0,s.length),r=0;r&lt;o.length;r++)n(o[r])||(o[r]=h);for(r=o.length;r&lt;s.length;r++)o.push(h);u.poffset=o}else void 0!==f&amp;&amp;(u.poffset=f);var p=c._width||c.width,d=u.barwidth;if(i(p)){var g=Array.prototype.slice.call(p,0,s.length);for(r=0;r&lt;g.length;r++)n(g[r])||(g[r]=d);for(r=g.length;r&lt;s.length;r++)g.push(d);if(u.barwidth=g,void 0===f){for(o=[],r=0;r&lt;s.length;r++)o.push(h+(d-g[r])/2);u.poffset=o}}else void 0!==p&amp;&amp;(u.barwidth=p,void 0===f&amp;&amp;(u.poffset=h+(d-p)/2))}}function d(t,e){for(var r=e.traces,n=x(t),i=0;i&lt;r.length;i++)for(var a=r[i],o=a[0].t,s=o.poffset,l=Array.isArray(s),c=o.barwidth,u=Array.isArray(c),f=0;f&lt;a.length;f++){var h=a[f],p=h.w=u?c[f]:c;h[n]=h.p+(l?s[f]:s)+p/2}}function g(t,e,r){var n=e.traces,i=e.minDiff/2;s.minDtick(t,e.minDiff,e.distinctPositions[0],r);for(var a=0;a&lt;n.length;a++){var o,l,c,u,f=n[a],h=f[0],p=h.trace,d=[];for(u=0;u&lt;f.length;u++)l=(o=f[u]).p-i,c=o.p+i,d.push(l,c);if(p.width||p.offset){var g=h.t,m=g.poffset,v=g.barwidth,y=Array.isArray(m),x=Array.isArray(v);for(u=0;u&lt;f.length;u++){o=f[u];var b=y?m[u]:m,_=x?v[u]:v;c=(l=o.p+b)+_,d.push(l,c)}}p._extremes[t._id]=s.findExtremes(t,d,{padded:!1})}}function m(t,e){for(var r=e.traces,n=x(t),i=0;i&lt;r.length;i++){for(var a=r[i],o=a[0].trace,l=[],c=!1,u=0;u&lt;a.length;u++){var f=a[u],h=f.b,p=h+f.s;f[n]=p,l.push(p),f.hasB&amp;&amp;l.push(h),f.hasB&amp;&amp;f.b||(c=!0)}o._extremes[t._id]=s.findExtremes(t,l,{tozero:c,padded:!0})}}function v(t){for(var e=t.traces,r=0;r&lt;e.length;r++)for(var n=e[r],i=0;i&lt;n.length;i++){var o=n[i];o.s!==a&amp;&amp;t.put(o.p,o.b+o.s)}}function y(t,e,r){var i=e.traces,o=x(t),l=&quot;fraction&quot;===r.norm?1:100,c=l/1e9,u=t.l2c(t.c2l(0)),f=&quot;stack&quot;===r.mode?l:u;function h(e){return n(t.c2l(e))&amp;&amp;(e&lt;u-c||e&gt;f+c||!n(u))}for(var p=0;p&lt;i.length;p++){for(var d=i[p],g=d[0].trace,m=[],v=!1,y=!1,b=0;b&lt;d.length;b++){var _=d[b];if(_.s!==a){var w=Math.abs(l/e.get(_.p,_.s));_.b*=w,_.s*=w;var T=_.b,k=T+_.s;_[o]=k,m.push(k),y=y||h(k),_.hasB&amp;&amp;(m.push(T),y=y||h(T)),_.hasB&amp;&amp;_.b||(v=!0)}}g._extremes[t._id]=s.findExtremes(t,m,{tozero:v,padded:y})}}function x(t){return t._id.charAt(0)}e.exports={crossTraceCalc:function(t,e){for(var r=e.xaxis,n=e.yaxis,i=t._fullLayout,a=t._fullData,s=t.calcdata,l=[],c=[],f=0;f&lt;a.length;f++){var h=a[f];if(!0===h.visible&amp;&amp;o.traceIs(h,&quot;bar&quot;)&amp;&amp;h.xaxis===r._id&amp;&amp;h.yaxis===n._id&amp;&amp;(&quot;h&quot;===h.orientation?l.push(s[f]):c.push(s[f]),h._computePh))for(var p=t.calcdata[f],d=0;d&lt;p.length;d++)&quot;function&quot;==typeof p[d].ph0&amp;&amp;(p[d].ph0=p[d].ph0()),&quot;function&quot;==typeof p[d].ph1&amp;&amp;(p[d].ph1=p[d].ph1())}var g={xCat:&quot;category&quot;===r.type||&quot;multicategory&quot;===r.type,yCat:&quot;category&quot;===n.type||&quot;multicategory&quot;===n.type,mode:i.barmode,norm:i.barnorm,gap:i.bargap,groupgap:i.bargroupgap};u(t,r,n,c,g),u(t,n,r,l,g)},setGroupPositions:u}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/constraints&quot;:835,&quot;../../registry&quot;:911,&quot;./sieve.js&quot;:934,&quot;fast-isnumeric&quot;:241}],925:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./style_defaults&quot;),c=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,u=t(&quot;./attributes&quot;),f=n.coerceFont;function h(t,e,r,n){var i=e.orientation,a=e[{v:&quot;x&quot;,h:&quot;y&quot;}[i]+&quot;axis&quot;],o=c(r,a)+i,s=r._alignmentOpts||{},l=n(&quot;alignmentgroup&quot;),u=s[o];u||(u=s[o]={});var f=u[l];f?f.traces.push(e):f=u[l]={traces:[e],alignmentIndex:Object.keys(u).length,offsetGroups:{}};var h=n(&quot;offsetgroup&quot;),p=f.offsetGroups,d=p[h];h&amp;&amp;(d||(d=p[h]={offsetIndex:Object.keys(p).length}),e._offsetIndex=d.offsetIndex)}function p(t,e,r,i,a,o){var s=!(!1===(o=o||{}).moduleHasSelected),l=!(!1===o.moduleHasUnselected),c=!(!1===o.moduleHasConstrain),u=!(!1===o.moduleHasCliponaxis),h=!(!1===o.moduleHasTextangle),p=!(!1===o.moduleHasInsideanchor),d=!!o.hasPathbar,g=Array.isArray(a)||&quot;auto&quot;===a,m=g||&quot;inside&quot;===a,v=g||&quot;outside&quot;===a;if(m||v){var y=f(i,&quot;textfont&quot;,r.font),x=n.extendFlat({},y),b=!(t.textfont&amp;&amp;t.textfont.color);if(b&amp;&amp;delete x.color,f(i,&quot;insidetextfont&quot;,x),d){var _=n.extendFlat({},y);b&amp;&amp;delete _.color,f(i,&quot;pathbar.textfont&quot;,_)}v&amp;&amp;f(i,&quot;outsidetextfont&quot;,y),s&amp;&amp;i(&quot;selected.textfont.color&quot;),l&amp;&amp;i(&quot;unselected.textfont.color&quot;),c&amp;&amp;i(&quot;constraintext&quot;),u&amp;&amp;i(&quot;cliponaxis&quot;),h&amp;&amp;i(&quot;textangle&quot;),i(&quot;texttemplate&quot;)}m&amp;&amp;p&amp;&amp;i(&quot;insidetextanchor&quot;)}e.exports={supplyDefaults:function(t,e,r,c){function f(r,i){return n.coerce(t,e,u,r,i)}if(o(t,e,c,f)){s(t,e,c,f),f(&quot;orientation&quot;,e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;),f(&quot;base&quot;),f(&quot;offset&quot;),f(&quot;width&quot;),f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;);var h=f(&quot;textposition&quot;);p(t,e,c,f,h,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),l(t,e,f,r,c);var d=(e.marker.line||{}).color,g=a.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);g(t,e,d||i.defaultLine,{axis:&quot;y&quot;}),g(t,e,d||i.defaultLine,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1},crossTraceDefaults:function(t,e){var r;function i(t){return n.coerce(r._input,r,u,t)}if(&quot;group&quot;===e.barmode)for(var a=0;a&lt;t.length;a++)&quot;bar&quot;===(r=t[a]).type&amp;&amp;(r._input,h(0,r,e,i))},handleGroupingDefaults:h,handleText:p}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/constraints&quot;:835,&quot;../../registry&quot;:911,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:921,&quot;./style_defaults&quot;:936}],926:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),&quot;h&quot;===r.orientation?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}},{}],927:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../lib&quot;).isArrayOrTypedArray;r.coerceString=function(t,e,r){if(&quot;string&quot;==typeof e){if(e||!t.noBlank)return e}else if((&quot;number&quot;==typeof e||!0===e)&amp;&amp;!t.strict)return String(e);return void 0!==r?r:t.dflt},r.coerceNumber=function(t,e,r){if(n(e)){e=+e;var i=t.min,a=t.max;if(!(void 0!==i&amp;&amp;e&lt;i||void 0!==a&amp;&amp;e&gt;a))return e}return void 0!==r?r:t.dflt},r.coerceColor=function(t,e,r){return i(e).isValid()?e:void 0!==r?r:t.dflt},r.coerceEnumerated=function(t,e,r){return t.coerceNumber&amp;&amp;(e=+e),-1!==t.values.indexOf(e)?e:void 0!==r?r:t.dflt},r.getValue=function(t,e){var r;return Array.isArray(t)?e&lt;t.length&amp;&amp;(r=t[e]):r=t,r},r.getLineWidth=function(t,e){return 0&lt;e.mlw?e.mlw:a(t.marker.line.width)?0:t.marker.line.width}},{&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],928:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../lib&quot;).fillText,s=t(&quot;./helpers&quot;).getLineWidth,l=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText,c=t(&quot;../../constants/numerical&quot;).BADNUM;function u(t,e,r,i){var a,s,u,f,h,p,d,g=t.cd,m=g[0].trace,v=g[0].t,y=&quot;closest&quot;===i,x=&quot;waterfall&quot;===m.type,b=t.maxHoverDistance;function _(t){return t[u]-t.w/2}function w(t){return t[u]+t.w/2}var T=y?_:function(t){return Math.min(_(t),t.p-v.bardelta/2)},k=y?w:function(t){return Math.max(w(t),t.p+v.bardelta/2)};function M(t,e){return n.inbox(t-a,e-a,b+Math.min(1,Math.abs(e-t)/d)-1)}function A(t){return M(T(t),k(t))}function S(t){var e=s,r=t.b,i=t[f];if(x){var a=Math.abs(t.rawS)||0;e&gt;0?i+=a:e&lt;0&amp;&amp;(i-=a)}return n.inbox(r-e,i-e,b+(i-e)/(i-r)-1)}&quot;h&quot;===m.orientation?(a=r,s=e,u=&quot;y&quot;,f=&quot;x&quot;,h=S,p=A):(a=e,s=r,u=&quot;x&quot;,f=&quot;y&quot;,p=S,h=A);var E=t[u+&quot;a&quot;],C=t[f+&quot;a&quot;];d=Math.abs(E.r2c(E.range[1])-E.r2c(E.range[0]));var L=n.getDistanceFunction(i,h,p,(function(t){return(h(t)+p(t))/2}));if(n.getClosest(g,L,t),!1!==t.index&amp;&amp;g[t.index].p!==c){y||(T=function(t){return Math.min(_(t),t.p-v.bargroupwidth/2)},k=function(t){return Math.max(w(t),t.p+v.bargroupwidth/2)});var I=g[t.index],P=m.base?I.b+I.s:I.s;t[f+&quot;0&quot;]=t[f+&quot;1&quot;]=C.c2p(I[f],!0),t[f+&quot;LabelVal&quot;]=P;var z=v.extents[v.extents.round(I.p)];t[u+&quot;0&quot;]=E.c2p(y?T(I):z[0],!0),t[u+&quot;1&quot;]=E.c2p(y?k(I):z[1],!0);var O=void 0!==I.orig_p;return t[u+&quot;LabelVal&quot;]=O?I.orig_p:I.p,t.labelLabel=l(E,t[u+&quot;LabelVal&quot;]),t.valueLabel=l(C,t[f+&quot;LabelVal&quot;]),t.baseLabel=l(C,I.b),t.spikeDistance=(S(I)+function(t){return M(_(t),w(t))}(I))/2-b,t[u+&quot;Spike&quot;]=E.c2p(I.p,!0),o(I,m,t),t.hovertemplate=m.hovertemplate,t}}function f(t,e){var r=e.mcc||t.marker.color,n=e.mlcc||t.marker.line.color,i=s(t,e);return a.opacity(r)?r:a.opacity(n)&amp;&amp;i?n:void 0}e.exports={hoverPoints:function(t,e,r,n){var a=u(t,e,r,n);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=f(s,l),i.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(l,s,a),[a]}},hoverOnBars:u,getTraceColor:f}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./helpers&quot;:927}],929:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;).crossTraceCalc,colorbar:t(&quot;../scatter/marker_colorbar&quot;),arraysToCalcdata:t(&quot;./arrays_to_calcdata&quot;),plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;bar&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;bar&quot;,&quot;oriented&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],animatable:!0,meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./arrays_to_calcdata&quot;:920,&quot;./attributes&quot;:921,&quot;./calc&quot;:922,&quot;./cross_trace_calc&quot;:924,&quot;./defaults&quot;:925,&quot;./event_data&quot;:926,&quot;./hover&quot;:928,&quot;./layout_attributes&quot;:930,&quot;./layout_defaults&quot;:931,&quot;./plot&quot;:932,&quot;./select&quot;:933,&quot;./style&quot;:935}],930:[function(t,e,r){&quot;use strict&quot;;e.exports={barmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;group&quot;,&quot;overlay&quot;,&quot;relative&quot;],dflt:&quot;group&quot;,editType:&quot;calc&quot;},barnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;fraction&quot;,&quot;percent&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},bargap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},bargroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],931:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){function s(r,n){return a.coerce(t,e,o,r,n)}for(var l=!1,c=!1,u=!1,f={},h=s(&quot;barmode&quot;),p=0;p&lt;r.length;p++){var d=r[p];if(n.traceIs(d,&quot;bar&quot;)&amp;&amp;d.visible){if(l=!0,&quot;group&quot;===h){var g=d.xaxis+d.yaxis;f[g]&amp;&amp;(u=!0),f[g]=!0}if(d.visible&amp;&amp;&quot;histogram&quot;===d.type)&quot;category&quot;!==i.getFromId({_fullLayout:e},d[&quot;v&quot;===d.orientation?&quot;xaxis&quot;:&quot;yaxis&quot;]).type&amp;&amp;(c=!0)}}l?(&quot;overlay&quot;!==h&amp;&amp;s(&quot;barnorm&quot;),s(&quot;bargap&quot;,c&amp;&amp;!u?0:.2),s(&quot;bargroupgap&quot;)):delete e.barmode}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./layout_attributes&quot;:930}],932:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;../../components/color&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../registry&quot;),u=t(&quot;../../plots/cartesian/axes&quot;).tickText,f=t(&quot;./uniform_text&quot;),h=f.recordMinTextSize,p=f.clearMinTextSize,d=t(&quot;./style&quot;),g=t(&quot;./helpers&quot;),m=t(&quot;./constants&quot;),v=t(&quot;./attributes&quot;),y=v.text,x=v.textposition,b=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,_=m.TEXTPAD;function w(t){return t.id}function T(t){if(t.ids)return w}function k(t,e){return t&lt;e?1:-1}function M(t,e,r,n){var i;return!e.uniformtext.mode&amp;&amp;A(r)?(n&amp;&amp;(i=n()),t.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){i&amp;&amp;i()})).each(&quot;interrupt&quot;,(function(){i&amp;&amp;i()}))):t}function A(t){return t&amp;&amp;t.duration&gt;0}function S(t){return&quot;auto&quot;===t?0:t}function E(t,e){var r=Math.PI/180*e,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:t.width*i+t.height*n,y:t.width*n+t.height*i}}function C(t,e,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,c=a.anchor||&quot;end&quot;,u=&quot;end&quot;===c,f=&quot;start&quot;===c,h=((a.leftToRight||0)+1)/2,p=1-h,d=i.width,g=i.height,m=Math.abs(e-t),v=Math.abs(n-r),y=m&gt;2*_&amp;&amp;v&gt;2*_?_:0;m-=2*y,v-=2*y;var x=S(l);&quot;auto&quot;!==l||d&lt;=m&amp;&amp;g&lt;=v||!(d&gt;m||g&gt;v)||(d&gt;v||g&gt;m)&amp;&amp;d&lt;g==m&lt;v||(x+=90);var b=E(i,x),w=1;s&amp;&amp;(w=Math.min(1,m/b.x,v/b.y));var T=i.left*p+i.right*h,M=(i.top+i.bottom)/2,A=(t+_)*p+(e-_)*h,C=(r+n)/2,L=0,I=0;if(f||u){var P=(o?b.x:b.y)/2,z=o?k(t,e):k(r,n);o?f?(A=t+z*y,L=-z*P):(A=e-z*y,L=z*P):f?(C=r+z*y,I=-z*P):(C=n-z*y,I=z*P)}return{textX:T,textY:M,targetX:A,targetY:C,anchorX:L,anchorY:I,scale:w,rotate:x}}e.exports={plot:function(t,e,r,f,m,v){var w=e.xaxis,L=e.yaxis,I=t._fullLayout;m||(m={mode:I.barmode,norm:I.barmode,gap:I.bargap,groupgap:I.bargroupgap},p(&quot;bar&quot;,I));var P=a.makeTraceGroups(f,r,&quot;trace bars&quot;).each((function(r){var c=n.select(this),f=r[0].trace,p=&quot;waterfall&quot;===f.type,P=&quot;funnel&quot;===f.type,z=&quot;bar&quot;===f.type||P,O=0;p&amp;&amp;f.connector.visible&amp;&amp;&quot;between&quot;===f.connector.mode&amp;&amp;(O=f.connector.line.width/2);var D=&quot;h&quot;===f.orientation,R=A(m),F=a.ensureSingle(c,&quot;g&quot;,&quot;points&quot;),B=T(f),N=F.selectAll(&quot;g.point&quot;).data(a.identity,B);N.enter().append(&quot;g&quot;).classed(&quot;point&quot;,!0),N.exit().remove(),N.each((function(c,p){var T,A,P=n.select(this),F=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),n?[i,a]:[a,i]}(c,w,L,D),B=F[0][0],N=F[0][1],j=F[1][0],U=F[1][1],V=0==(D?N-B:U-j);if(V&amp;&amp;z&amp;&amp;g.getLineWidth(f,c)&amp;&amp;(V=!1),V||(V=!(i(B)&amp;&amp;i(N)&amp;&amp;i(j)&amp;&amp;i(U))),c.isBlank=V,V&amp;&amp;(D?N=B:U=j),O&amp;&amp;!V&amp;&amp;(D?(B-=k(B,N)*O,N+=k(B,N)*O):(j-=k(j,U)*O,U+=k(j,U)*O)),&quot;waterfall&quot;===f.type){if(!V){var q=f[c.dir].marker;T=q.line.width,A=q.color}}else T=g.getLineWidth(f,c),A=c.mc||f.marker.color;function H(t){var e=n.round(T/2%1,2);return 0===m.gap&amp;&amp;0===m.groupgap?n.round(Math.round(t)-e,2):t}if(!t._context.staticPlot){var G=s.opacity(A)&lt;1||T&gt;.01?H:function(t,e,r){return r&amp;&amp;t===e?t:Math.abs(t-e)&gt;=2?H(t):t&gt;e?Math.ceil(t):Math.floor(t)};B=G(B,N,D),N=G(N,B,D),j=G(j,U,!D),U=G(U,j,!D)}var Y=M(a.ensureSingle(P,&quot;path&quot;),I,m,v);if(Y.style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;d&quot;,isNaN((N-B)*(U-j))||V&amp;&amp;t._context.staticPlot?&quot;M0,0Z&quot;:&quot;M&quot;+B+&quot;,&quot;+j+&quot;V&quot;+U+&quot;H&quot;+N+&quot;V&quot;+j+&quot;Z&quot;).call(l.setClipUrl,e.layerClipId,t),!I.uniformtext.mode&amp;&amp;R){var W=l.makePointStyleFns(f);l.singlePointStyle(c,Y,f,W,t)}!function(t,e,r,n,i,s,c,f,p,m,v){var w,T=e.xaxis,A=e.yaxis,L=t._fullLayout;function I(e,r,n){return a.ensureSingle(e,&quot;text&quot;).text(r).attr({class:&quot;bartext bartext-&quot;+w,&quot;text-anchor&quot;:&quot;middle&quot;,&quot;data-notex&quot;:1}).call(l.font,n).call(o.convertToTspans,t)}var P=n[0].trace,z=&quot;h&quot;===P.orientation,O=function(t,e,r,n,i){var o,s=e[0].trace;o=s.texttemplate?function(t,e,r,n,i){var o=e[0].trace,s=a.castOption(o,r,&quot;texttemplate&quot;);if(!s)return&quot;&quot;;var l,c,f,h,p=&quot;waterfall&quot;===o.type,d=&quot;funnel&quot;===o.type;&quot;h&quot;===o.orientation?(l=&quot;y&quot;,c=i,f=&quot;x&quot;,h=n):(l=&quot;x&quot;,c=n,f=&quot;y&quot;,h=i);function g(t){return u(h,+t,!0).text}var m=e[r],v={};v.label=m.p,v.labelLabel=v[l+&quot;Label&quot;]=(y=m.p,u(c,y,!0).text);var y;var x=a.castOption(o,m.i,&quot;text&quot;);(0===x||x)&amp;&amp;(v.text=x);v.value=m.s,v.valueLabel=v[f+&quot;Label&quot;]=g(m.s);var _={};b(_,o,m.i),p&amp;&amp;(v.delta=+m.rawS||m.s,v.deltaLabel=g(v.delta),v.final=m.v,v.finalLabel=g(v.final),v.initial=v.final-v.delta,v.initialLabel=g(v.initial));d&amp;&amp;(v.value=m.s,v.valueLabel=g(v.value),v.percentInitial=m.begR,v.percentInitialLabel=a.formatPercent(m.begR),v.percentPrevious=m.difR,v.percentPreviousLabel=a.formatPercent(m.difR),v.percentTotal=m.sumR,v.percenTotalLabel=a.formatPercent(m.sumR));var w=a.castOption(o,m.i,&quot;customdata&quot;);w&amp;&amp;(v.customdata=w);return a.texttemplateString(s,v,t._d3locale,_,v,o._meta||{})}(t,e,r,n,i):s.textinfo?function(t,e,r,n){var i=t[0].trace,o=&quot;h&quot;===i.orientation,s=&quot;waterfall&quot;===i.type,l=&quot;funnel&quot;===i.type;function c(t){return u(o?r:n,+t,!0).text}var f,h=i.textinfo,p=t[e],d=h.split(&quot;+&quot;),g=[],m=function(t){return-1!==d.indexOf(t)};m(&quot;label&quot;)&amp;&amp;g.push((v=t[e].p,u(o?n:r,v,!0).text));var v;m(&quot;text&quot;)&amp;&amp;(0===(f=a.castOption(i,p.i,&quot;text&quot;))||f)&amp;&amp;g.push(f);if(s){var y=+p.rawS||p.s,x=p.v,b=x-y;m(&quot;initial&quot;)&amp;&amp;g.push(c(b)),m(&quot;delta&quot;)&amp;&amp;g.push(c(y)),m(&quot;final&quot;)&amp;&amp;g.push(c(x))}if(l){m(&quot;value&quot;)&amp;&amp;g.push(c(p.s));var _=0;m(&quot;percent initial&quot;)&amp;&amp;_++,m(&quot;percent previous&quot;)&amp;&amp;_++,m(&quot;percent total&quot;)&amp;&amp;_++;var w=_&gt;1;m(&quot;percent initial&quot;)&amp;&amp;(f=a.formatPercent(p.begR),w&amp;&amp;(f+=&quot; of initial&quot;),g.push(f)),m(&quot;percent previous&quot;)&amp;&amp;(f=a.formatPercent(p.difR),w&amp;&amp;(f+=&quot; of previous&quot;),g.push(f)),m(&quot;percent total&quot;)&amp;&amp;(f=a.formatPercent(p.sumR),w&amp;&amp;(f+=&quot; of total&quot;),g.push(f))}return g.join(&quot;&lt;br&gt;&quot;)}(e,r,n,i):g.getValue(s.text,r);return g.coerceString(y,o)}(L,n,i,T,A);w=function(t,e){var r=g.getValue(t.textposition,e);return g.coerceEnumerated(x,r)}(P,i);var D=&quot;stack&quot;===m.mode||&quot;relative&quot;===m.mode,R=n[i],F=!D||R._outmost;if(!O||&quot;none&quot;===w||(R.isBlank||s===c||f===p)&amp;&amp;(&quot;auto&quot;===w||&quot;inside&quot;===w))return void r.select(&quot;text&quot;).remove();var B=L.font,N=d.getBarColor(n[i],P),j=d.getInsideTextFont(P,i,B,N),U=d.getOutsideTextFont(P,i,B),V=r.datum();z?&quot;log&quot;===T.type&amp;&amp;V.s0&lt;=0&amp;&amp;(s=T.range[0]&lt;T.range[1]?0:T._length):&quot;log&quot;===A.type&amp;&amp;V.s0&lt;=0&amp;&amp;(f=A.range[0]&lt;A.range[1]?A._length:0);var q,H,G,Y,W,X=Math.abs(c-s)-2*_,Z=Math.abs(p-f)-2*_;&quot;outside&quot;===w&amp;&amp;(F||R.hasB||(w=&quot;inside&quot;));if(&quot;auto&quot;===w)if(F){w=&quot;inside&quot;,W=a.ensureUniformFontSize(t,j),q=I(r,O,W),H=l.bBox(q.node()),G=H.width,Y=H.height;var J=G&lt;=X&amp;&amp;Y&lt;=Z,K=G&lt;=Z&amp;&amp;Y&lt;=X,Q=z?X&gt;=G*(Z/Y):Z&gt;=Y*(X/G);G&gt;0&amp;&amp;Y&gt;0&amp;&amp;(J||K||Q)?w=&quot;inside&quot;:(w=&quot;outside&quot;,q.remove(),q=null)}else w=&quot;inside&quot;;if(!q){W=a.ensureUniformFontSize(t,&quot;outside&quot;===w?U:j);var $=(q=I(r,O,W)).attr(&quot;transform&quot;);if(q.attr(&quot;transform&quot;,&quot;&quot;),H=l.bBox(q.node()),G=H.width,Y=H.height,q.attr(&quot;transform&quot;,$),G&lt;=0||Y&lt;=0)return void q.remove()}var tt,et,rt=P.textangle;&quot;outside&quot;===w?(et=&quot;both&quot;===P.constraintext||&quot;outside&quot;===P.constraintext,tt=function(t,e,r,n,i,a){var o,s=!!a.isHorizontal,l=!!a.constrained,c=a.angle||0,u=i.width,f=i.height,h=Math.abs(e-t),p=Math.abs(n-r);o=s?p&gt;2*_?_:0:h&gt;2*_?_:0;var d=1;l&amp;&amp;(d=s?Math.min(1,p/f):Math.min(1,h/u));var g=S(c),m=E(i,g),v=(s?m.x:m.y)/2,y=(i.left+i.right)/2,x=(i.top+i.bottom)/2,b=(t+e)/2,w=(r+n)/2,T=0,M=0,A=s?k(e,t):k(r,n);s?(b=e-A*o,T=A*v):(w=n+A*o,M=-A*v);return{textX:y,textY:x,targetX:b,targetY:w,anchorX:T,anchorY:M,scale:d,rotate:g}}(s,c,f,p,H,{isHorizontal:z,constrained:et,angle:rt})):(et=&quot;both&quot;===P.constraintext||&quot;inside&quot;===P.constraintext,tt=C(s,c,f,p,H,{isHorizontal:z,constrained:et,angle:rt,anchor:P.insidetextanchor}));tt.fontSize=W.size,h(P.type,tt,L),R.transform=tt,M(q,L,m,v).attr(&quot;transform&quot;,a.getTextTransform(tt))}(t,e,P,r,p,B,N,j,U,m,v),e.layerClipId&amp;&amp;l.hideOutsideRangePoint(c,P.select(&quot;text&quot;),w,L,f.xcalendar,f.ycalendar)}));var j=!1===f.cliponaxis;l.setClipUrl(c,j?null:e.layerClipId,t)}));c.getComponentMethod(&quot;errorbars&quot;,&quot;plot&quot;)(t,P,e,m)},toMoveInsideBar:C}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../components/fx/helpers&quot;:679,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./attributes&quot;:921,&quot;./constants&quot;:923,&quot;./helpers&quot;:927,&quot;./style&quot;:935,&quot;./uniform_text&quot;:937,d3:169,&quot;fast-isnumeric&quot;:241}],933:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i){var a=e.c2p(n?t.s0:t.p0,!0),o=e.c2p(n?t.s1:t.p1,!0),s=r.c2p(n?t.p0:t.s0,!0),l=r.c2p(n?t.p1:t.s1,!0);return i?[(a+o)/2,(s+l)/2]:n?[o,(s+l)/2]:[(a+o)/2,l]}e.exports=function(t,e){var r,i=t.cd,a=t.xaxis,o=t.yaxis,s=i[0].trace,l=&quot;funnel&quot;===s.type,c=&quot;h&quot;===s.orientation,u=[];if(!1===e)for(r=0;r&lt;i.length;r++)i[r].selected=0;else for(r=0;r&lt;i.length;r++){var f=i[r],h=&quot;ct&quot;in f?f.ct:n(f,a,o,c,l);e.contains(h,!1,r,t)?(u.push({pointNumber:r,x:a.c2d(f.x),y:o.c2d(f.y)}),f.selected=1):f.selected=0}return u}},{}],934:[function(t,e,r){&quot;use strict&quot;;e.exports=a;var n=t(&quot;../../lib&quot;).distinctVals,i=t(&quot;../../constants/numerical&quot;).BADNUM;function a(t,e){this.traces=t,this.sepNegVal=e.sepNegVal,this.overlapNoMerge=e.overlapNoMerge;for(var r=1/0,a=[],o=0;o&lt;t.length;o++){for(var s=t[o],l=0;l&lt;s.length;l++){var c=s[l];c.p!==i&amp;&amp;a.push(c.p)}s[0]&amp;&amp;s[0].width1&amp;&amp;(r=Math.min(s[0].width1,r))}this.positions=a;var u=n(a,{unitMinDiff:e.unitMinDiff});this.distinctPositions=u.vals,1===u.vals.length&amp;&amp;r!==1/0?this.minDiff=r:this.minDiff=Math.min(u.minDiff,r),this.binWidth=this.minDiff,this.bins={}}a.prototype.put=function(t,e){var r=this.getLabel(t,e),n=this.bins[r]||0;return this.bins[r]=n+e,n},a.prototype.get=function(t,e){var r=this.getLabel(t,e);return this.bins[r]||0},a.prototype.getLabel=function(t,e){return(e&lt;0&amp;&amp;this.sepNegVal?&quot;v&quot;:&quot;^&quot;)+(this.overlapNoMerge?t:Math.round(t/this.binWidth))}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778}],935:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../registry&quot;),l=t(&quot;./uniform_text&quot;).resizeText,c=t(&quot;./attributes&quot;),u=c.textfont,f=c.insidetextfont,h=c.outsidetextfont,p=t(&quot;./helpers&quot;);function d(t,e,r){a.pointStyle(t.selectAll(&quot;path&quot;),e,r),g(t,e,r)}function g(t,e,r){t.selectAll(&quot;text&quot;).each((function(t){var i=n.select(this),s=o.ensureUniformFontSize(r,m(i,t,e,r));a.font(i,s)}))}function m(t,e,r,n){var i=n._fullLayout.font,a=r.textfont;if(t.classed(&quot;bartext-inside&quot;)){var o=_(e,r);a=y(r,e.i,i,o)}else t.classed(&quot;bartext-outside&quot;)&amp;&amp;(a=x(r,e.i,i));return a}function v(t,e,r){return b(u,t.textfont,e,r)}function y(t,e,r,n){var a=v(t,e,r);return(void 0===t._input.textfont||void 0===t._input.textfont.color||Array.isArray(t.textfont.color)&amp;&amp;void 0===t.textfont.color[e])&amp;&amp;(a={color:i.contrast(n),family:a.family,size:a.size}),b(f,t.insidetextfont,e,a)}function x(t,e,r){var n=v(t,e,r);return b(h,t.outsidetextfont,e,n)}function b(t,e,r,n){e=e||{};var i=p.getValue(e.family,r),a=p.getValue(e.size,r),o=p.getValue(e.color,r);return{family:p.coerceString(t.family,i,n.family),size:p.coerceNumber(t.size,a,n.size),color:p.coerceColor(t.color,o,n.color)}}function _(t,e){return&quot;waterfall&quot;===e.type?e[t.dir].marker.color:t.mc||e.marker.color}e.exports={style:function(t){var e=n.select(t).selectAll(&quot;g.barlayer&quot;).selectAll(&quot;g.trace&quot;);l(t,e,&quot;bar&quot;);var r=e.size(),i=t._fullLayout;e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})).each((function(t){(&quot;stack&quot;===i.barmode&amp;&amp;r&gt;1||0===i.bargap&amp;&amp;0===i.bargroupgap&amp;&amp;!t[0].trace.marker.line.width)&amp;&amp;n.select(this).attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)})),e.selectAll(&quot;g.points&quot;).each((function(e){d(n.select(this),e[0].trace,t)})),s.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(e)},styleTextPoints:g,styleOnSelect:function(t,e,r){var i=e[0].trace;i.selectedpoints?function(t,e,r){a.selectedPointStyle(t.selectAll(&quot;path&quot;),e),function(t,e,r){t.each((function(t){var i,s=n.select(this);if(t.selected){i=o.ensureUniformFontSize(r,m(s,t,e,r));var l=e.selected.textfont&amp;&amp;e.selected.textfont.color;l&amp;&amp;(i.color=l),a.font(s,i)}else a.selectedTextStyle(s,e)}))}(t.selectAll(&quot;text&quot;),e,r)}(r,i,t):(d(r,i,t),s.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(r))},getInsideTextFont:y,getOutsideTextFont:x,getBarColor:_,resizeText:l}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:921,&quot;./helpers&quot;:927,&quot;./uniform_text&quot;:937,d3:169}],936:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;);e.exports=function(t,e,r,o,s){r(&quot;marker.color&quot;,o),i(t,&quot;marker&quot;)&amp;&amp;a(t,e,s,r,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),r(&quot;marker.line.color&quot;,n.defaultLine),i(t,&quot;marker.line&quot;)&amp;&amp;a(t,e,s,r,{prefix:&quot;marker.line.&quot;,cLetter:&quot;c&quot;}),r(&quot;marker.line.width&quot;),r(&quot;marker.opacity&quot;),r(&quot;selected.marker.color&quot;),r(&quot;unselected.marker.color&quot;)}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654}],937:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;);function a(t){return&quot;_&quot;+t+&quot;Text_minsize&quot;}e.exports={recordMinTextSize:function(t,e,r){if(r.uniformtext.mode){var n=a(t),i=r.uniformtext.minsize,o=e.scale*e.fontSize;e.hide=o&lt;i,r[n]=r[n]||1/0,e.hide||(r[n]=Math.min(r[n],Math.max(o,i)))}},clearMinTextSize:function(t,e){e[a(t)]=void 0},resizeText:function(t,e,r){var a=t._fullLayout,o=a[&quot;_&quot;+r+&quot;Text_minsize&quot;];if(o){var s,l=&quot;hide&quot;===a.uniformtext.mode;switch(r){case&quot;funnelarea&quot;:case&quot;pie&quot;:case&quot;sunburst&quot;:s=&quot;g.slice&quot;;break;case&quot;treemap&quot;:s=&quot;g.slice, g.pathbar&quot;;break;default:s=&quot;g.points &gt; g.point&quot;}e.selectAll(s).each((function(t){var e=t.transform;e&amp;&amp;(e.scale=l&amp;&amp;e.hide?0:o/e.fontSize,n.select(this).select(&quot;text&quot;).attr(&quot;transform&quot;,i.getTextTransform(e)))}))}}}},{&quot;../../lib&quot;:778,d3:169}],938:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../scatterpolar/attributes&quot;),o=t(&quot;../bar/attributes&quot;);e.exports={r:a.r,theta:a.theta,r0:a.r0,dr:a.dr,theta0:a.theta0,dtheta:a.dtheta,thetaunit:a.thetaunit,base:i({},o.base,{}),offset:i({},o.offset,{}),width:i({},o.width,{}),text:i({},o.text,{}),hovertext:i({},o.hovertext,{}),marker:o.marker,hoverinfo:a.hoverinfo,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatterpolar/attributes&quot;:1261}],939:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,i=t(&quot;../../components/colorscale/calc&quot;),a=t(&quot;../bar/arrays_to_calcdata&quot;),o=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions,s=t(&quot;../scatter/calc_selection&quot;),l=t(&quot;../../registry&quot;).traceIs,c=t(&quot;../../lib&quot;).extendFlat;e.exports={calc:function(t,e){for(var r=t._fullLayout,o=e.subplot,l=r[o].radialaxis,c=r[o].angularaxis,u=l.makeCalcdata(e,&quot;r&quot;),f=c.makeCalcdata(e,&quot;theta&quot;),h=e._length,p=new Array(h),d=u,g=f,m=0;m&lt;h;m++)p[m]={p:g[m],s:d[m]};function v(t){var r=e[t];void 0!==r&amp;&amp;(e[&quot;_&quot;+t]=Array.isArray(r)?c.makeCalcdata(e,t):c.d2c(r,e.thetaunit))}return&quot;linear&quot;===c.type&amp;&amp;(v(&quot;width&quot;),v(&quot;offset&quot;)),n(e,&quot;marker&quot;)&amp;&amp;i(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),n(e,&quot;marker.line&quot;)&amp;&amp;i(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}),a(p,e),s(p,e),p},crossTraceCalc:function(t,e,r){for(var n=t.calcdata,i=[],a=0;a&lt;n.length;a++){var s=n[a],u=s[0].trace;!0===u.visible&amp;&amp;l(u,&quot;bar&quot;)&amp;&amp;u.subplot===r&amp;&amp;i.push(s)}var f=c({},e.radialaxis,{_id:&quot;x&quot;}),h=e.angularaxis;o(t,h,f,i,{mode:e.barmode,norm:e.barnorm,gap:e.bargap,groupgap:e.bargroupgap})}}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../bar/arrays_to_calcdata&quot;:920,&quot;../bar/cross_trace_calc&quot;:924,&quot;../scatter/calc_selection&quot;:1189}],940:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatterpolar/defaults&quot;).handleRThetaDefaults,a=t(&quot;../bar/style_defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,s,l)?(l(&quot;thetaunit&quot;),l(&quot;base&quot;),l(&quot;offset&quot;),l(&quot;width&quot;),l(&quot;text&quot;),l(&quot;hovertext&quot;),l(&quot;hovertemplate&quot;),a(t,e,l,r,s),n.coerceSelectionMarkerOpacity(e,l)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../bar/style_defaults&quot;:936,&quot;../scatterpolar/defaults&quot;:1263,&quot;./attributes&quot;:938}],941:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../bar/hover&quot;).getTraceColor,o=i.fillText,s=t(&quot;../scatterpolar/hover&quot;).makeHoverPointText,l=t(&quot;../../plots/polar/helpers&quot;).isPtInsidePolygon;e.exports=function(t,e,r){var c=t.cd,u=c[0].trace,f=t.subplot,h=f.radialAxis,p=f.angularAxis,d=f.vangles,g=d?l:i.isPtInsideSector,m=t.maxHoverDistance,v=p._period||2*Math.PI,y=Math.abs(h.g2p(Math.sqrt(e*e+r*r))),x=Math.atan2(r,e);h.range[0]&gt;h.range[1]&amp;&amp;(x+=Math.PI);if(n.getClosest(c,(function(t){return g(y,x,[t.rp0,t.rp1],[t.thetag0,t.thetag1],d)?m+Math.min(1,Math.abs(t.thetag1-t.thetag0)/v)-1+(t.rp1-y)/(t.rp1-t.rp0)-1:1/0}),t),!1!==t.index){var b=c[t.index];t.x0=t.x1=b.ct[0],t.y0=t.y1=b.ct[1];var _=i.extendFlat({},b,{r:b.s,theta:b.p});return o(b,u,t),s(_,u,f,t),t.hovertemplate=u.hovertemplate,t.color=a(u,b),t.xLabelVal=t.yLabelVal=void 0,b.s&lt;0&amp;&amp;(t.idealAlign=&quot;left&quot;),[t]}}},{&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../plots/polar/helpers&quot;:893,&quot;../bar/hover&quot;:928,&quot;../scatterpolar/hover&quot;:1265}],942:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;barpolar&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;polar&quot;,&quot;bar&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;../scatterpolar/format_labels&quot;),style:t(&quot;../bar/style&quot;).style,styleOnSelect:t(&quot;../bar/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../bar/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:894,&quot;../bar/select&quot;:933,&quot;../bar/style&quot;:935,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatterpolar/format_labels&quot;:1264,&quot;./attributes&quot;:938,&quot;./calc&quot;:939,&quot;./defaults&quot;:940,&quot;./hover&quot;:941,&quot;./layout_attributes&quot;:943,&quot;./layout_defaults&quot;:944,&quot;./plot&quot;:945}],943:[function(t,e,r){&quot;use strict&quot;;e.exports={barmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;overlay&quot;],dflt:&quot;stack&quot;,editType:&quot;calc&quot;},bargap:{valType:&quot;number&quot;,dflt:.1,min:0,max:1,editType:&quot;calc&quot;}}},{}],944:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a,o={};function s(r,o){return n.coerce(t[a]||{},e[a],i,r,o)}for(var l=0;l&lt;r.length;l++){var c=r[l];&quot;barpolar&quot;===c.type&amp;&amp;!0===c.visible&amp;&amp;(o[a=c.subplot]||(s(&quot;barmode&quot;),s(&quot;bargap&quot;),o[a]=1))}}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:943}],945:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../plots/polar/helpers&quot;);e.exports=function(t,e,r){var l=e.xaxis,c=e.yaxis,u=e.radialAxis,f=e.angularAxis,h=function(t){var e=t.cxx,r=t.cyy;if(t.vangles)return function(n,i,o,l){var c,u;a.angleDelta(o,l)&gt;0?(c=o,u=l):(c=l,u=o);var f=[s.findEnclosingVertexAngles(c,t.vangles)[0],(c+u)/2,s.findEnclosingVertexAngles(u,t.vangles)[1]];return s.pathPolygonAnnulus(n,i,c,u,f,e,r)};return function(t,n,i,o){return a.pathAnnulus(t,n,i,o,e,r)}}(e),p=e.layers.frontplot.select(&quot;g.barlayer&quot;);a.makeTraceGroups(p,r,&quot;trace bars&quot;).each((function(){var r=n.select(this),s=a.ensureSingle(r,&quot;g&quot;,&quot;points&quot;).selectAll(&quot;g.point&quot;).data(a.identity);s.enter().append(&quot;g&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).style(&quot;stroke-miterlimit&quot;,2).classed(&quot;point&quot;,!0),s.exit().remove(),s.each((function(t){var e,r=n.select(this),o=t.rp0=u.c2p(t.s0),s=t.rp1=u.c2p(t.s1),p=t.thetag0=f.c2g(t.p0),d=t.thetag1=f.c2g(t.p1);if(i(o)&amp;&amp;i(s)&amp;&amp;i(p)&amp;&amp;i(d)&amp;&amp;o!==s&amp;&amp;p!==d){var g=u.c2g(t.s1),m=(p+d)/2;t.ct=[l.c2p(g*Math.cos(m)),c.c2p(g*Math.sin(m))],e=h(o,s,p,d)}else e=&quot;M0,0Z&quot;;a.ensureSingle(r,&quot;path&quot;).attr(&quot;d&quot;,e)})),o.setClipUrl(r,e._hasClipOnAxisFalse?e.clipIds.forTraces:null,t)}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../plots/polar/helpers&quot;:893,d3:169,&quot;fast-isnumeric&quot;:241}],946:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../bar/attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../lib/extend&quot;).extendFlat,l=n.marker,c=l.line;e.exports={y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},x0:{valType:&quot;any&quot;,editType:&quot;calc+clearAxisTypes&quot;},y0:{valType:&quot;any&quot;,editType:&quot;calc+clearAxisTypes&quot;},dx:{valType:&quot;number&quot;,editType:&quot;calc&quot;},dy:{valType:&quot;number&quot;,editType:&quot;calc&quot;},xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,name:{valType:&quot;string&quot;,editType:&quot;calc+clearAxisTypes&quot;},q1:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},median:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},q3:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},lowerfence:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},upperfence:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},notched:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},notchwidth:{valType:&quot;number&quot;,min:0,max:.5,dflt:.25,editType:&quot;calc&quot;},notchspan:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},boxpoints:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;outliers&quot;,&quot;suspectedoutliers&quot;,!1],editType:&quot;calc&quot;},jitter:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},pointpos:{valType:&quot;number&quot;,min:-2,max:2,editType:&quot;calc&quot;},boxmean:{valType:&quot;enumerated&quot;,values:[!0,&quot;sd&quot;,!1],editType:&quot;calc&quot;},mean:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sd:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc+clearAxisTypes&quot;},quartilemethod:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;exclusive&quot;,&quot;inclusive&quot;],dflt:&quot;linear&quot;,editType:&quot;calc&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},marker:{outliercolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0, 0, 0, 0)&quot;,editType:&quot;style&quot;},symbol:s({},l.symbol,{arrayOk:!1,editType:&quot;plot&quot;}),opacity:s({},l.opacity,{arrayOk:!1,dflt:1,editType:&quot;style&quot;}),size:s({},l.size,{arrayOk:!1,editType:&quot;calc&quot;}),color:s({},l.color,{arrayOk:!1,editType:&quot;style&quot;}),line:{color:s({},c.color,{arrayOk:!1,dflt:a.defaultLine,editType:&quot;style&quot;}),width:s({},c.width,{arrayOk:!1,dflt:0,editType:&quot;style&quot;}),outliercolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},outlierwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;plot&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},editType:&quot;plot&quot;},fillcolor:n.fillcolor,whiskerwidth:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;calc&quot;},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup,selected:{marker:n.selected.marker,editType:&quot;style&quot;},unselected:{marker:n.unselected.marker,editType:&quot;style&quot;},text:s({},n.text,{}),hovertext:s({},n.hovertext,{}),hovertemplate:o({}),hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;boxes&quot;,&quot;points&quot;],dflt:&quot;boxes+points&quot;,editType:&quot;style&quot;}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib/extend&quot;:768,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatter/attributes&quot;:1187}],947:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/cartesian/align_period&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=o._;e.exports=function(t,e){var r,c,y,x,b,_,w,T=t._fullLayout,k=i.getFromId(t,e.xaxis||&quot;x&quot;),M=i.getFromId(t,e.yaxis||&quot;y&quot;),A=[],S=&quot;violin&quot;===e.type?&quot;_numViolins&quot;:&quot;_numBoxes&quot;;&quot;h&quot;===e.orientation?(y=k,x=&quot;x&quot;,b=M,_=&quot;y&quot;,w=!!e.yperiodalignment):(y=M,x=&quot;y&quot;,b=k,_=&quot;x&quot;,w=!!e.xperiodalignment);var E,C,L,I,P,z,O=function(t,e,r,i){var s,l=e+&quot;0&quot;in t,c=&quot;d&quot;+e in t;if(e in t||l&amp;&amp;c){var u=r.makeCalcdata(t,e);return[a(t,r,e,u),u]}s=l?t[e+&quot;0&quot;]:&quot;name&quot;in t&amp;&amp;(&quot;category&quot;===r.type||n(t.name)&amp;&amp;-1!==[&quot;linear&quot;,&quot;log&quot;].indexOf(r.type)||o.isDateTime(t.name)&amp;&amp;&quot;date&quot;===r.type)?t.name:i;for(var f=&quot;multicategory&quot;===r.type?r.r2c_just_indices(s):r.d2c(s,0,t[e+&quot;calendar&quot;]),h=t._length,p=new Array(h),d=0;d&lt;h;d++)p[d]=f;return[p]}(e,_,b,T[S]),D=O[0],R=O[1],F=o.distinctVals(D),B=F.vals,N=F.minDiff/2,j=&quot;all&quot;===(e.boxpoints||e.points)?o.identity:function(t){return t.v&lt;E.lf||t.v&gt;E.uf};if(e._hasPreCompStats){var U=e[x],V=function(t){return y.d2c((e[t]||[])[r])},q=1/0,H=-1/0;for(r=0;r&lt;e._length;r++){var G=D[r];if(n(G)){if((E={}).pos=E[_]=G,w&amp;&amp;R&amp;&amp;(E.orig_p=R[r]),E.q1=V(&quot;q1&quot;),E.med=V(&quot;median&quot;),E.q3=V(&quot;q3&quot;),C=[],U&amp;&amp;o.isArrayOrTypedArray(U[r]))for(c=0;c&lt;U[r].length;c++)(z=y.d2c(U[r][c]))!==s&amp;&amp;(u(P={v:z,i:[r,c]},e,[r,c]),C.push(P));if(E.pts=C.sort(f),I=(L=E[x]=C.map(h)).length,E.med!==s&amp;&amp;E.q1!==s&amp;&amp;E.q3!==s&amp;&amp;E.med&gt;=E.q1&amp;&amp;E.q3&gt;=E.med){var Y=V(&quot;lowerfence&quot;);E.lf=Y!==s&amp;&amp;Y&lt;=E.q1?Y:p(E,L,I);var W=V(&quot;upperfence&quot;);E.uf=W!==s&amp;&amp;W&gt;=E.q3?W:d(E,L,I);var X=V(&quot;mean&quot;);E.mean=X!==s?X:I?o.mean(L,I):(E.q1+E.q3)/2;var Z=V(&quot;sd&quot;);E.sd=X!==s&amp;&amp;Z&gt;=0?Z:I?o.stdev(L,I,E.mean):E.q3-E.q1,E.lo=g(E),E.uo=m(E);var J=V(&quot;notchspan&quot;);J=J!==s&amp;&amp;J&gt;0?J:v(E,I),E.ln=E.med-J,E.un=E.med+J;var K=E.lf,Q=E.uf;e.boxpoints&amp;&amp;L.length&amp;&amp;(K=Math.min(K,L[0]),Q=Math.max(Q,L[I-1])),e.notched&amp;&amp;(K=Math.min(K,E.ln),Q=Math.max(Q,E.un)),E.min=K,E.max=Q}else{var $;o.warn([&quot;Invalid input - make sure that q1 &lt;= median &lt;= q3&quot;,&quot;q1 = &quot;+E.q1,&quot;median = &quot;+E.med,&quot;q3 = &quot;+E.q3].join(&quot;\n&quot;)),$=E.med!==s?E.med:E.q1!==s?E.q3!==s?(E.q1+E.q3)/2:E.q1:E.q3!==s?E.q3:0,E.med=$,E.q1=E.q3=$,E.lf=E.uf=$,E.mean=E.sd=$,E.ln=E.un=$,E.min=E.max=$}q=Math.min(q,E.min),H=Math.max(H,E.max),E.pts2=C.filter(j),A.push(E)}}e._extremes[y._id]=i.findExtremes(y,[q,H],{padded:!0})}else{var tt=y.makeCalcdata(e,x),et=function(t,e){for(var r=t.length,n=new Array(r+1),i=0;i&lt;r;i++)n[i]=t[i]-e;return n[r]=t[r-1]+e,n}(B,N),rt=B.length,nt=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=[];return e}(rt);for(r=0;r&lt;e._length;r++)if(z=tt[r],n(z)){var it=o.findBin(D[r],et);it&gt;=0&amp;&amp;it&lt;rt&amp;&amp;(u(P={v:z,i:r},e,r),nt[it].push(P))}var at=1/0,ot=-1/0,st=e.quartilemethod,lt=&quot;exclusive&quot;===st,ct=&quot;inclusive&quot;===st;for(r=0;r&lt;rt;r++)if(nt[r].length&gt;0){var ut,ft;if((E={}).pos=E[_]=B[r],C=E.pts=nt[r].sort(f),I=(L=E[x]=C.map(h)).length,E.min=L[0],E.max=L[I-1],E.mean=o.mean(L,I),E.sd=o.stdev(L,I,E.mean),E.med=o.interp(L,.5),I%2&amp;&amp;(lt||ct))lt?(ut=L.slice(0,I/2),ft=L.slice(I/2+1)):ct&amp;&amp;(ut=L.slice(0,I/2+1),ft=L.slice(I/2)),E.q1=o.interp(ut,.5),E.q3=o.interp(ft,.5);else E.q1=o.interp(L,.25),E.q3=o.interp(L,.75);E.lf=p(E,L,I),E.uf=d(E,L,I),E.lo=g(E),E.uo=m(E);var ht=v(E,I);E.ln=E.med-ht,E.un=E.med+ht,at=Math.min(at,E.ln),ot=Math.max(ot,E.un),E.pts2=C.filter(j),A.push(E)}e._extremes[y._id]=i.findExtremes(y,e.notched?tt.concat([at,ot]):tt,{padded:!0})}return function(t,e){if(o.isArrayOrTypedArray(e.selectedpoints))for(var r=0;r&lt;t.length;r++){for(var n=t[r].pts||[],i={},a=0;a&lt;n.length;a++)i[n[a].i]=a;o.tagSelected(n,e,i)}}(A,e),A.length&gt;0?(A[0].t={num:T[S],dPos:N,posLetter:_,valLetter:x,labels:{med:l(t,&quot;median:&quot;),min:l(t,&quot;min:&quot;),q1:l(t,&quot;q1:&quot;),q3:l(t,&quot;q3:&quot;),max:l(t,&quot;max:&quot;),mean:&quot;sd&quot;===e.boxmean?l(t,&quot;mean \xb1 \u03c3:&quot;):l(t,&quot;mean:&quot;),lf:l(t,&quot;lower fence:&quot;),uf:l(t,&quot;upper fence:&quot;)}},T[S]++,A):[{t:{empty:!0}}]};var c={text:&quot;tx&quot;,hovertext:&quot;htx&quot;};function u(t,e,r){for(var n in c)o.isArrayOrTypedArray(e[n])&amp;&amp;(Array.isArray(r)?o.isArrayOrTypedArray(e[n][r[0]])&amp;&amp;(t[c[n]]=e[n][r[0]][r[1]]):t[c[n]]=e[n][r])}function f(t,e){return t.v-e.v}function h(t){return t.v}function p(t,e,r){return 0===r?t.q1:Math.min(t.q1,e[Math.min(o.findBin(2.5*t.q1-1.5*t.q3,e,!0)+1,r-1)])}function d(t,e,r){return 0===r?t.q3:Math.max(t.q3,e[Math.max(o.findBin(2.5*t.q3-1.5*t.q1,e),0)])}function g(t){return 4*t.q1-3*t.q3}function m(t){return 4*t.q3-3*t.q1}function v(t,e){return 0===e?0:1.57*(t.q3-t.q1)/Math.sqrt(e)}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;fast-isnumeric&quot;:241}],948:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,o=[&quot;v&quot;,&quot;h&quot;];function s(t,e,r,o){var s,l,c,u=e.calcdata,f=e._fullLayout,h=o._id,p=h.charAt(0),d=[],g=0;for(s=0;s&lt;r.length;s++)for(c=u[r[s]],l=0;l&lt;c.length;l++)d.push(o.c2l(c[l].pos,!0)),g+=(c[l].pts2||[]).length;if(d.length){var m=i.distinctVals(d,{unitMinDiff:&quot;category&quot;===o.type||&quot;multicategory&quot;===o.type}),v=m.minDiff/2;n.minDtick(o,m.minDiff,m.vals[0],!0);var y=f[&quot;violin&quot;===t?&quot;_numViolins&quot;:&quot;_numBoxes&quot;],x=&quot;group&quot;===f[t+&quot;mode&quot;]&amp;&amp;y&gt;1,b=1-f[t+&quot;gap&quot;],_=1-f[t+&quot;groupgap&quot;];for(s=0;s&lt;r.length;s++){var w,T,k,M,A,S,E=(c=u[r[s]])[0].trace,C=c[0].t,L=E.width,I=E.side;if(L)w=T=M=L/2,k=0;else if(w=v,x){var P=a(f,o._id)+E.orientation,z=(f._alignmentOpts[P]||{})[E.alignmentgroup]||{},O=Object.keys(z.offsetGroups||{}).length,D=O||y;T=w*b*_/D,k=2*w*(((O?E._offsetIndex:C.num)+.5)/D-.5)*b,M=w*b/D}else T=w*b*_,k=0,M=w;C.dPos=w,C.bPos=k,C.bdPos=T,C.wHover=M;var R,F,B,N,j,U,V=k+T,q=Boolean(L);if(&quot;positive&quot;===I?(A=w*(L?1:.5),R=V,S=R=k):&quot;negative&quot;===I?(A=R=k,S=w*(L?1:.5),F=V):(A=S=w,R=F=V),(E.boxpoints||E.points)&amp;&amp;g&gt;0){var H=E.pointpos,G=E.jitter,Y=E.marker.size/2,W=0;H+G&gt;=0&amp;&amp;((W=V*(H+G))&gt;A?(q=!0,j=Y,B=W):W&gt;R&amp;&amp;(j=Y,B=A)),W&lt;=A&amp;&amp;(B=A);var X=0;H-G&lt;=0&amp;&amp;((X=-V*(H-G))&gt;S?(q=!0,U=Y,N=X):X&gt;F&amp;&amp;(U=Y,N=S)),X&lt;=S&amp;&amp;(N=S)}else B=A,N=S;var Z=new Array(c.length);for(l=0;l&lt;c.length;l++)Z[l]=c[l].pos;E._extremes[h]=n.findExtremes(o,Z,{padded:q,vpadminus:N,vpadplus:B,vpadLinearized:!0,ppadminus:{x:U,y:j}[p],ppadplus:{x:j,y:U}[p]})}}}e.exports={crossTraceCalc:function(t,e){for(var r=t.calcdata,n=e.xaxis,i=e.yaxis,a=0;a&lt;o.length;a++){for(var l=o[a],c=&quot;h&quot;===l?i:n,u=[],f=0;f&lt;r.length;f++){var h=r[f],p=h[0].t,d=h[0].trace;!0!==d.visible||&quot;box&quot;!==d.type&amp;&amp;&quot;candlestick&quot;!==d.type||p.empty||(d.orientation||&quot;v&quot;)!==l||d.xaxis!==n._id||d.yaxis!==i._id||u.push(f)}s(&quot;box&quot;,t,u,c)}},setPositionOffset:s}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/constraints&quot;:835}],949:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../scatter/period_defaults&quot;),s=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,l=t(&quot;../../plots/cartesian/axis_autotype&quot;),c=t(&quot;./attributes&quot;);function u(t,e,r,a){function o(t){var e=0;return t&amp;&amp;t.length&amp;&amp;(e+=1,n.isArrayOrTypedArray(t[0])&amp;&amp;t[0].length&amp;&amp;(e+=1)),e}function s(e){return n.validate(t[e],c[e])}var u,f=r(&quot;y&quot;),h=r(&quot;x&quot;);if(&quot;box&quot;===e.type){var p=r(&quot;q1&quot;),d=r(&quot;median&quot;),g=r(&quot;q3&quot;);e._hasPreCompStats=p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length&amp;&amp;g&amp;&amp;g.length,u=Math.min(n.minRowLength(p),n.minRowLength(d),n.minRowLength(g))}var m,v,y=o(f),x=o(h),b=y&amp;&amp;n.minRowLength(f),_=x&amp;&amp;n.minRowLength(h),w=a.calendar,T={autotypenumbers:a.autotypenumbers};if(e._hasPreCompStats)switch(String(x)+String(y)){case&quot;00&quot;:var k=s(&quot;x0&quot;)||s(&quot;dx&quot;);m=(s(&quot;y0&quot;)||s(&quot;dy&quot;))&amp;&amp;!k?&quot;h&quot;:&quot;v&quot;,v=u;break;case&quot;10&quot;:m=&quot;v&quot;,v=Math.min(u,_);break;case&quot;20&quot;:m=&quot;h&quot;,v=Math.min(u,h.length);break;case&quot;01&quot;:m=&quot;h&quot;,v=Math.min(u,b);break;case&quot;02&quot;:m=&quot;v&quot;,v=Math.min(u,f.length);break;case&quot;12&quot;:m=&quot;v&quot;,v=Math.min(u,_,f.length);break;case&quot;21&quot;:m=&quot;h&quot;,v=Math.min(u,h.length,b);break;case&quot;11&quot;:v=0;break;case&quot;22&quot;:var M,A=!1;for(M=0;M&lt;h.length;M++)if(&quot;category&quot;===l(h[M],w,T)){A=!0;break}if(A)m=&quot;v&quot;,v=Math.min(u,_,f.length);else{for(M=0;M&lt;f.length;M++)if(&quot;category&quot;===l(f[M],w,T)){A=!0;break}A?(m=&quot;h&quot;,v=Math.min(u,h.length,b)):(m=&quot;v&quot;,v=Math.min(u,_,f.length))}}else y&gt;0?(m=&quot;v&quot;,v=x&gt;0?Math.min(_,b):Math.min(b)):x&gt;0?(m=&quot;h&quot;,v=Math.min(_)):v=0;if(v){e._length=v;var S=r(&quot;orientation&quot;,m);e._hasPreCompStats?&quot;v&quot;===S&amp;&amp;0===x?(r(&quot;x0&quot;,0),r(&quot;dx&quot;,1)):&quot;h&quot;===S&amp;&amp;0===y&amp;&amp;(r(&quot;y0&quot;,0),r(&quot;dy&quot;,1)):&quot;v&quot;===S&amp;&amp;0===x?r(&quot;x0&quot;):&quot;h&quot;===S&amp;&amp;0===y&amp;&amp;r(&quot;y0&quot;),i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],a)}else e.visible=!1}function f(t,e,r,i){var a=i.prefix,o=n.coerce2(t,e,c,&quot;marker.outliercolor&quot;),s=r(&quot;marker.line.outliercolor&quot;),l=&quot;outliers&quot;;e._hasPreCompStats?l=&quot;all&quot;:(o||s)&amp;&amp;(l=&quot;suspectedoutliers&quot;);var u=r(a+&quot;points&quot;,l);u?(r(&quot;jitter&quot;,&quot;all&quot;===u?.3:0),r(&quot;pointpos&quot;,&quot;all&quot;===u?-1.5:0),r(&quot;marker.symbol&quot;),r(&quot;marker.opacity&quot;),r(&quot;marker.size&quot;),r(&quot;marker.color&quot;,e.line.color),r(&quot;marker.line.color&quot;),r(&quot;marker.line.width&quot;),&quot;suspectedoutliers&quot;===u&amp;&amp;(r(&quot;marker.line.outliercolor&quot;,e.marker.color),r(&quot;marker.line.outlierwidth&quot;)),r(&quot;selected.marker.color&quot;),r(&quot;unselected.marker.color&quot;),r(&quot;selected.marker.size&quot;),r(&quot;unselected.marker.size&quot;),r(&quot;text&quot;),r(&quot;hovertext&quot;)):delete e.marker;var f=r(&quot;hoveron&quot;);&quot;all&quot;!==f&amp;&amp;-1===f.indexOf(&quot;points&quot;)||r(&quot;hovertemplate&quot;),n.coerceSelectionMarkerOpacity(e,r)}e.exports={supplyDefaults:function(t,e,r,i){function s(r,i){return n.coerce(t,e,c,r,i)}if(u(t,e,s,i),!1!==e.visible){o(t,e,i,s);var l=e._hasPreCompStats;l&amp;&amp;(s(&quot;lowerfence&quot;),s(&quot;upperfence&quot;)),s(&quot;line.color&quot;,(t.marker||{}).color||r),s(&quot;line.width&quot;),s(&quot;fillcolor&quot;,a.addOpacity(e.line.color,.5));var h=!1;if(l){var p=s(&quot;mean&quot;),d=s(&quot;sd&quot;);p&amp;&amp;p.length&amp;&amp;(h=!0,d&amp;&amp;d.length&amp;&amp;(h=&quot;sd&quot;))}s(&quot;boxmean&quot;,h),s(&quot;whiskerwidth&quot;),s(&quot;width&quot;),s(&quot;quartilemethod&quot;);var g=!1;if(l){var m=s(&quot;notchspan&quot;);m&amp;&amp;m.length&amp;&amp;(g=!0)}else n.validate(t.notchwidth,c.notchwidth)&amp;&amp;(g=!0);s(&quot;notched&quot;,g)&amp;&amp;s(&quot;notchwidth&quot;),f(t,e,s,{prefix:&quot;box&quot;})}},crossTraceDefaults:function(t,e){var r,i;function a(t){return n.coerce(i._input,i,c,t)}for(var o=0;o&lt;t.length;o++){var l=(i=t[o]).type;&quot;box&quot;!==l&amp;&amp;&quot;violin&quot;!==l||(r=i._input,&quot;group&quot;===e[l+&quot;mode&quot;]&amp;&amp;s(r,i,e,a))}},handleSampleDefaults:u,handlePointsDefaults:f}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_autotype&quot;:829,&quot;../../registry&quot;:911,&quot;../bar/defaults&quot;:925,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:946}],950:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return e.hoverOnBox&amp;&amp;(t.hoverOnBox=e.hoverOnBox),&quot;xVal&quot;in e&amp;&amp;(t.x=e.xVal),&quot;yVal&quot;in e&amp;&amp;(t.y=e.yVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],951:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=i.fillText;function l(t,e,r,s){var l,c,u,f,h,p,d,g,m,v,y,x,b,_,w=t.cd,T=t.xa,k=t.ya,M=w[0].trace,A=w[0].t,S=&quot;violin&quot;===M.type,E=[],C=A.bdPos,L=A.wHover,I=function(t){return u.c2l(t.pos)+A.bPos-u.c2l(p)};S&amp;&amp;&quot;both&quot;!==M.side?(&quot;positive&quot;===M.side&amp;&amp;(m=function(t){var e=I(t);return a.inbox(e,e+L,v)},x=C,b=0),&quot;negative&quot;===M.side&amp;&amp;(m=function(t){var e=I(t);return a.inbox(e-L,e,v)},x=0,b=C)):(m=function(t){var e=I(t);return a.inbox(e-L,e+L,v)},x=b=C),_=S?function(t){return a.inbox(t.span[0]-h,t.span[1]-h,v)}:function(t){return a.inbox(t.min-h,t.max-h,v)},&quot;h&quot;===M.orientation?(h=e,p=r,d=_,g=m,l=&quot;y&quot;,u=k,c=&quot;x&quot;,f=T):(h=r,p=e,d=m,g=_,l=&quot;x&quot;,u=T,c=&quot;y&quot;,f=k);var P=Math.min(1,C/Math.abs(u.r2c(u.range[1])-u.r2c(u.range[0])));function z(t){return(d(t)+g(t))/2}v=t.maxHoverDistance-P,y=t.maxSpikeDistance-P;var O=a.getDistanceFunction(s,d,g,z);if(a.getClosest(w,O,t),!1===t.index)return[];var D=w[t.index],R=M.line.color,F=(M.marker||{}).color;o.opacity(R)&amp;&amp;M.line.width?t.color=R:o.opacity(F)&amp;&amp;M.boxpoints?t.color=F:t.color=M.fillcolor,t[l+&quot;0&quot;]=u.c2p(D.pos+A.bPos-b,!0),t[l+&quot;1&quot;]=u.c2p(D.pos+A.bPos+x,!0),t[l+&quot;LabelVal&quot;]=void 0!==D.orig_p?D.orig_p:D.pos;var B=l+&quot;Spike&quot;;t.spikeDistance=z(D)*y/v,t[B]=u.c2p(D.pos,!0);var N={},j=[&quot;med&quot;,&quot;q1&quot;,&quot;q3&quot;,&quot;min&quot;,&quot;max&quot;];(M.boxmean||(M.meanline||{}).visible)&amp;&amp;j.push(&quot;mean&quot;),(M.boxpoints||M.points)&amp;&amp;j.push(&quot;lf&quot;,&quot;uf&quot;);for(var U=0;U&lt;j.length;U++){var V=j[U];if(V in D&amp;&amp;!(D[V]in N)){N[D[V]]=!0;var q=D[V],H=f.c2p(q,!0),G=i.extendFlat({},t);G.attr=V,G[c+&quot;0&quot;]=G[c+&quot;1&quot;]=H,G[c+&quot;LabelVal&quot;]=q,G[c+&quot;Label&quot;]=(A.labels?A.labels[V]+&quot; &quot;:&quot;&quot;)+n.hoverLabelText(f,q),G.hoverOnBox=!0,&quot;mean&quot;===V&amp;&amp;&quot;sd&quot;in D&amp;&amp;&quot;sd&quot;===M.boxmean&amp;&amp;(G[c+&quot;err&quot;]=D.sd),t.name=&quot;&quot;,t.spikeDistance=void 0,t[B]=void 0,G.hovertemplate=!1,E.push(G)}}return E}function c(t,e,r){for(var n,o,l,c=t.cd,u=t.xa,f=t.ya,h=c[0].trace,p=u.c2p(e),d=f.c2p(r),g=a.quadrature((function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(u.c2p(t.x)-p)-e,1-3/e)}),(function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(f.c2p(t.y)-d)-e,1-3/e)})),m=!1,v=0;v&lt;c.length;v++){o=c[v];for(var y=0;y&lt;(o.pts||[]).length;y++){var x=g(l=o.pts[y]);x&lt;=t.distance&amp;&amp;(t.distance=x,m=[v,y])}}if(!m)return!1;l=(o=c[m[0]]).pts[m[1]];var b=u.c2p(l.x,!0),_=f.c2p(l.y,!0),w=l.mrc||1;n=i.extendFlat({},t,{index:l.i,color:(h.marker||{}).color,name:h.name,x0:b-w,x1:b+w,y0:_-w,y1:_+w,spikeDistance:t.distance,hovertemplate:h.hovertemplate});var T,k=o.orig_p,M=void 0!==k?k:o.pos;return&quot;h&quot;===h.orientation?(T=f,n.xLabelVal=l.x,n.yLabelVal=M):(T=u,n.xLabelVal=M,n.yLabelVal=l.y),n[T._id.charAt(0)+&quot;Spike&quot;]=T.c2p(o.pos,!0),s(l,h,n),n}e.exports={hoverPoints:function(t,e,r,n){var i,a=t.cd[0].trace.hoveron,o=[];return-1!==a.indexOf(&quot;boxes&quot;)&amp;&amp;(o=o.concat(l(t,e,r,n))),-1!==a.indexOf(&quot;points&quot;)&amp;&amp;(i=c(t,e,r)),&quot;closest&quot;===n?i?[i]:o:i?(o.push(i),o):o},hoverOnBoxes:l,hoverOnPoints:c}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],952:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;).supplyLayoutDefaults,calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;box&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;oriented&quot;,&quot;box-violin&quot;,&quot;showLegend&quot;,&quot;boxLayout&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:946,&quot;./calc&quot;:947,&quot;./cross_trace_calc&quot;:948,&quot;./defaults&quot;:949,&quot;./event_data&quot;:950,&quot;./hover&quot;:951,&quot;./layout_attributes&quot;:953,&quot;./layout_defaults&quot;:954,&quot;./plot&quot;:955,&quot;./select&quot;:956,&quot;./style&quot;:957}],953:[function(t,e,r){&quot;use strict&quot;;e.exports={boxmode:{valType:&quot;enumerated&quot;,values:[&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;overlay&quot;,editType:&quot;calc&quot;},boxgap:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,editType:&quot;calc&quot;},boxgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,editType:&quot;calc&quot;}}},{}],954:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./layout_attributes&quot;);function o(t,e,r,i,a){for(var o=a+&quot;Layout&quot;,s=!1,l=0;l&lt;r.length;l++){var c=r[l];if(n.traceIs(c,o)){s=!0;break}}s&amp;&amp;(i(a+&quot;mode&quot;),i(a+&quot;gap&quot;),i(a+&quot;groupgap&quot;))}e.exports={supplyLayoutDefaults:function(t,e,r){o(0,0,r,(function(r,n){return i.coerce(t,e,a,r,n)}),&quot;box&quot;)},_supply:o}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./layout_attributes&quot;:953}],955:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;);function o(t,e,r,a){var o,s,l=&quot;h&quot;===r.orientation,c=e.val,u=e.pos,f=!!u.rangebreaks,h=a.bPos,p=a.wdPos||0,d=a.bPosPxOffset||0,g=r.whiskerwidth||0,m=r.notched||!1,v=m?1-2*r.notchwidth:1;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var y=t.selectAll(&quot;path.box&quot;).data(&quot;violin&quot;!==r.type||r.box.visible?i.identity:[]);y.enter().append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;class&quot;,&quot;box&quot;),y.exit().remove(),y.each((function(t){if(t.empty)return&quot;M0,0Z&quot;;var e=u.c2l(t.pos+h,!0),a=u.l2p(e-o)+d,y=u.l2p(e+s)+d,x=f?(a+y)/2:u.l2p(e)+d,b=r.whiskerwidth,_=f?a*b+(1-b)*x:u.l2p(e-p)+d,w=f?y*b+(1-b)*x:u.l2p(e+p)+d,T=u.l2p(e-o*v)+d,k=u.l2p(e+s*v)+d,M=c.c2p(t.q1,!0),A=c.c2p(t.q3,!0),S=i.constrain(c.c2p(t.med,!0),Math.min(M,A)+1,Math.max(M,A)-1),E=void 0===t.lf||!1===r.boxpoints,C=c.c2p(E?t.min:t.lf,!0),L=c.c2p(E?t.max:t.uf,!0),I=c.c2p(t.ln,!0),P=c.c2p(t.un,!0);l?n.select(this).attr(&quot;d&quot;,&quot;M&quot;+S+&quot;,&quot;+T+&quot;V&quot;+k+&quot;M&quot;+M+&quot;,&quot;+a+&quot;V&quot;+y+(m?&quot;H&quot;+I+&quot;L&quot;+S+&quot;,&quot;+k+&quot;L&quot;+P+&quot;,&quot;+y:&quot;&quot;)+&quot;H&quot;+A+&quot;V&quot;+a+(m?&quot;H&quot;+P+&quot;L&quot;+S+&quot;,&quot;+T+&quot;L&quot;+I+&quot;,&quot;+a:&quot;&quot;)+&quot;ZM&quot;+M+&quot;,&quot;+x+&quot;H&quot;+C+&quot;M&quot;+A+&quot;,&quot;+x+&quot;H&quot;+L+(0===g?&quot;&quot;:&quot;M&quot;+C+&quot;,&quot;+_+&quot;V&quot;+w+&quot;M&quot;+L+&quot;,&quot;+_+&quot;V&quot;+w)):n.select(this).attr(&quot;d&quot;,&quot;M&quot;+T+&quot;,&quot;+S+&quot;H&quot;+k+&quot;M&quot;+a+&quot;,&quot;+M+&quot;H&quot;+y+(m?&quot;V&quot;+I+&quot;L&quot;+k+&quot;,&quot;+S+&quot;L&quot;+y+&quot;,&quot;+P:&quot;&quot;)+&quot;V&quot;+A+&quot;H&quot;+a+(m?&quot;V&quot;+P+&quot;L&quot;+T+&quot;,&quot;+S+&quot;L&quot;+a+&quot;,&quot;+I:&quot;&quot;)+&quot;ZM&quot;+x+&quot;,&quot;+M+&quot;V&quot;+C+&quot;M&quot;+x+&quot;,&quot;+A+&quot;V&quot;+L+(0===g?&quot;&quot;:&quot;M&quot;+_+&quot;,&quot;+C+&quot;H&quot;+w+&quot;M&quot;+_+&quot;,&quot;+L+&quot;H&quot;+w))}))}function s(t,e,r,n){var o=e.x,s=e.y,l=n.bdPos,c=n.bPos,u=r.boxpoints||r.points;i.seedPseudoRandom();var f=t.selectAll(&quot;g.points&quot;).data(u?function(t){return t.forEach((function(t){t.t=n,t.trace=r})),t}:[]);f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;points&quot;),f.exit().remove();var h=f.selectAll(&quot;path&quot;).data((function(t){var e,n,a=t.pts2,o=Math.max((t.max-t.min)/10,t.q3-t.q1),s=1e-9*o,f=.01*o,h=[],p=0;if(r.jitter){if(0===o)for(p=1,h=new Array(a.length),e=0;e&lt;a.length;e++)h[e]=1;else for(e=0;e&lt;a.length;e++){var d=Math.max(0,e-5),g=a[d].v,m=Math.min(a.length-1,e+5),v=a[m].v;&quot;all&quot;!==u&amp;&amp;(a[e].v&lt;t.lf?v=Math.min(v,t.lf):g=Math.max(g,t.uf));var y=Math.sqrt(f*(m-d)/(v-g+s))||0;y=i.constrain(Math.abs(y),0,1),h.push(y),p=Math.max(y,p)}n=2*r.jitter/(p||1)}for(e=0;e&lt;a.length;e++){var x=a[e],b=x.v,_=r.jitter?n*h[e]*(i.pseudoRandom()-.5):0,w=t.pos+c+l*(r.pointpos+_);&quot;h&quot;===r.orientation?(x.y=w,x.x=b):(x.x=w,x.y=b),&quot;suspectedoutliers&quot;===u&amp;&amp;b&lt;t.uo&amp;&amp;b&gt;t.lo&amp;&amp;(x.so=!0)}return a}));h.enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0),h.exit().remove(),h.call(a.translatePoints,o,s)}function l(t,e,r,a){var o,s,l=e.val,c=e.pos,u=!!c.rangebreaks,f=a.bPos,h=a.bPosPxOffset||0,p=r.boxmean||(r.meanline||{}).visible;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var d=t.selectAll(&quot;path.mean&quot;).data(&quot;box&quot;===r.type&amp;&amp;r.boxmean||&quot;violin&quot;===r.type&amp;&amp;r.box.visible&amp;&amp;r.meanline.visible?i.identity:[]);d.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;mean&quot;).style({fill:&quot;none&quot;,&quot;vector-effect&quot;:&quot;non-scaling-stroke&quot;}),d.exit().remove(),d.each((function(t){var e=c.c2l(t.pos+f,!0),i=c.l2p(e-o)+h,a=c.l2p(e+s)+h,d=u?(i+a)/2:c.l2p(e)+h,g=l.c2p(t.mean,!0),m=l.c2p(t.mean-t.sd,!0),v=l.c2p(t.mean+t.sd,!0);&quot;h&quot;===r.orientation?n.select(this).attr(&quot;d&quot;,&quot;M&quot;+g+&quot;,&quot;+i+&quot;V&quot;+a+(&quot;sd&quot;===p?&quot;m0,0L&quot;+m+&quot;,&quot;+d+&quot;L&quot;+g+&quot;,&quot;+i+&quot;L&quot;+v+&quot;,&quot;+d+&quot;Z&quot;:&quot;&quot;)):n.select(this).attr(&quot;d&quot;,&quot;M&quot;+i+&quot;,&quot;+g+&quot;H&quot;+a+(&quot;sd&quot;===p?&quot;m0,0L&quot;+d+&quot;,&quot;+m+&quot;L&quot;+i+&quot;,&quot;+g+&quot;L&quot;+d+&quot;,&quot;+v+&quot;Z&quot;:&quot;&quot;))}))}e.exports={plot:function(t,e,r,a){var c=e.xaxis,u=e.yaxis;i.makeTraceGroups(a,r,&quot;trace boxes&quot;).each((function(t){var e,r,i=n.select(this),a=t[0],f=a.t,h=a.trace;(f.wdPos=f.bdPos*h.whiskerwidth,!0!==h.visible||f.empty)?i.remove():(&quot;h&quot;===h.orientation?(e=u,r=c):(e=c,r=u),o(i,{pos:e,val:r},h,f),s(i,{x:c,y:u},h,f),l(i,{pos:e,val:r},h,f))}))},plotBoxAndWhiskers:o,plotPoints:s,plotBoxMean:l}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,d3:169}],956:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n,i=t.cd,a=t.xaxis,o=t.yaxis,s=[];if(!1===e)for(r=0;r&lt;i.length;r++)for(n=0;n&lt;(i[r].pts||[]).length;n++)i[r].pts[n].selected=0;else for(r=0;r&lt;i.length;r++)for(n=0;n&lt;(i[r].pts||[]).length;n++){var l=i[r].pts[n],c=a.c2p(l.x),u=o.c2p(l.y);e.contains([c,u],null,l.i,t)?(s.push({pointNumber:l.i,x:a.c2d(l.x),y:o.c2d(l.y)}),l.selected=1):l.selected=0}return s}},{}],957:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;);e.exports={style:function(t,e,r){var o=r||n.select(t).selectAll(&quot;g.trace.boxes&quot;);o.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),o.each((function(e){var r=n.select(this),o=e[0].trace,s=o.line.width;function l(t,e,r,n){t.style(&quot;stroke-width&quot;,e+&quot;px&quot;).call(i.stroke,r).call(i.fill,n)}var c=r.selectAll(&quot;path.box&quot;);if(&quot;candlestick&quot;===o.type)c.each((function(t){if(!t.empty){var e=n.select(this),r=o[t.dir];l(e,r.line.width,r.line.color,r.fillcolor),e.style(&quot;opacity&quot;,o.selectedpoints&amp;&amp;!t.selected?.3:1)}}));else{l(c,s,o.line.color,o.fillcolor),r.selectAll(&quot;path.mean&quot;).style({&quot;stroke-width&quot;:s,&quot;stroke-dasharray&quot;:2*s+&quot;px,&quot;+s+&quot;px&quot;}).call(i.stroke,o.line.color);var u=r.selectAll(&quot;path.point&quot;);a.pointStyle(u,o,t)}}))},styleOnSelect:function(t,e,r){var n=e[0].trace,i=r.selectAll(&quot;path.point&quot;);n.selectedpoints?a.selectedPointStyle(i,n):a.pointStyle(i,n,t)}}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,d3:169}],958:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).extendFlat,i=t(&quot;../ohlc/attributes&quot;),a=t(&quot;../box/attributes&quot;);function o(t){return{line:{color:n({},a.line.color,{dflt:t}),width:a.line.width,editType:&quot;style&quot;},fillcolor:a.fillcolor,editType:&quot;style&quot;}}e.exports={xperiod:i.xperiod,xperiod0:i.xperiod0,xperiodalignment:i.xperiodalignment,x:i.x,open:i.open,high:i.high,low:i.low,close:i.close,line:{width:n({},a.line.width,{}),editType:&quot;style&quot;},increasing:o(i.increasing.line.color.dflt),decreasing:o(i.decreasing.line.color.dflt),text:i.text,hovertext:i.hovertext,whiskerwidth:n({},a.whiskerwidth,{dflt:0}),hoverlabel:i.hoverlabel}},{&quot;../../lib&quot;:778,&quot;../box/attributes&quot;:946,&quot;../ohlc/attributes&quot;:1133}],959:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/cartesian/align_period&quot;),o=t(&quot;../ohlc/calc&quot;).calcCommon;function s(t,e,r,n){return{min:r,q1:Math.min(t,n),med:n,q3:Math.max(t,n),max:e}}e.exports=function(t,e){var r=t._fullLayout,l=i.getFromId(t,e.xaxis),c=i.getFromId(t,e.yaxis),u=l.makeCalcdata(e,&quot;x&quot;),f=a(e,l,&quot;x&quot;,u),h=o(t,e,u,f,c,s);return h.length?(n.extendFlat(h[0].t,{num:r._numBoxes,dPos:n.distinctVals(f).minDiff/2,posLetter:&quot;x&quot;,valLetter:&quot;y&quot;}),r._numBoxes++,h):[{t:{empty:!0}}]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../ohlc/calc&quot;:1134}],960:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../ohlc/ohlc_defaults&quot;),o=t(&quot;../scatter/period_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r,n){var a=r(n+&quot;.line.color&quot;);r(n+&quot;.line.width&quot;,e.line.width),r(n+&quot;.fillcolor&quot;,i.addOpacity(a,.5))}e.exports=function(t,e,r,i){function c(r,i){return n.coerce(t,e,s,r,i)}a(t,e,c,i)?(o(t,e,i,c,{x:!0}),c(&quot;line.width&quot;),l(t,e,c,&quot;increasing&quot;),l(t,e,c,&quot;decreasing&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;whiskerwidth&quot;),i._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../ohlc/ohlc_defaults&quot;:1138,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:958}],961:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;candlestick&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;showLegend&quot;,&quot;candlestick&quot;,&quot;boxLayout&quot;],meta:{},attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;../box/layout_attributes&quot;),supplyLayoutDefaults:t(&quot;../box/layout_defaults&quot;).supplyLayoutDefaults,crossTraceCalc:t(&quot;../box/cross_trace_calc&quot;).crossTraceCalc,supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;../box/plot&quot;).plot,layerName:&quot;boxlayer&quot;,style:t(&quot;../box/style&quot;).style,hoverPoints:t(&quot;../ohlc/hover&quot;).hoverPoints,selectPoints:t(&quot;../ohlc/select&quot;)}},{&quot;../../plots/cartesian&quot;:841,&quot;../box/cross_trace_calc&quot;:948,&quot;../box/layout_attributes&quot;:953,&quot;../box/layout_defaults&quot;:954,&quot;../box/plot&quot;:955,&quot;../box/style&quot;:957,&quot;../ohlc/hover&quot;:1136,&quot;../ohlc/select&quot;:1140,&quot;./attributes&quot;:958,&quot;./calc&quot;:959,&quot;./defaults&quot;:960}],962:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./axis_defaults&quot;),i=t(&quot;../../plot_api/plot_template&quot;);e.exports=function(t,e,r,a,o){a(&quot;a&quot;)||(a(&quot;da&quot;),a(&quot;a0&quot;)),a(&quot;b&quot;)||(a(&quot;db&quot;),a(&quot;b0&quot;)),function(t,e,r,a){[&quot;aaxis&quot;,&quot;baxis&quot;].forEach((function(o){var s=o.charAt(0),l=t[o]||{},c=i.newContainer(e,o),u={tickfont:&quot;x&quot;,id:s+&quot;axis&quot;,letter:s,font:e.font,name:o,data:t[s],calendar:e.calendar,dfltColor:a,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};n(l,c,u),c._categories=c._categories||[],t[o]||&quot;-&quot;===l.type||(t[o]={type:l.type})}))}(t,e,r,o)}},{&quot;../../plot_api/plot_template&quot;:817,&quot;./axis_defaults&quot;:967}],963:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t){return function t(e,r){if(!n(e)||r&gt;=10)return null;for(var i=1/0,a=-1/0,o=e.length,s=0;s&lt;o;s++){var l=e[s];if(n(l)){var c=t(l,r+1);c&amp;&amp;(i=Math.min(c[0],i),a=Math.max(c[1],a))}else i=Math.min(l,i),a=Math.max(l,a)}return[i,a]}(t,0)}},{&quot;../../lib&quot;:778}],964:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;./axis_attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=n({editType:&quot;calc&quot;});o.family.dflt='&quot;Open Sans&quot;, verdana, arial, sans-serif',o.size.dflt=12,o.color.dflt=a.defaultLine,e.exports={carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},a0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},da:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},db:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},cheaterslope:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},aaxis:i,baxis:i,font:o,color:{valType:&quot;color&quot;,dflt:a.defaultLine,editType:&quot;plot&quot;},transforms:void 0}},{&quot;../../components/color/attributes&quot;:642,&quot;../../plots/font_attributes&quot;:856,&quot;./axis_attributes&quot;:966}],965:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g,m,v,y=n(r)?&quot;a&quot;:&quot;b&quot;,x=(&quot;a&quot;===y?t.aaxis:t.baxis).smoothing,b=&quot;a&quot;===y?t.a2i:t.b2j,_=&quot;a&quot;===y?r:i,w=&quot;a&quot;===y?i:r,T=&quot;a&quot;===y?e.a.length:e.b.length,k=&quot;a&quot;===y?e.b.length:e.a.length,M=Math.floor(&quot;a&quot;===y?t.b2j(w):t.a2i(w)),A=&quot;a&quot;===y?function(e){return t.evalxy([],e,M)}:function(e){return t.evalxy([],M,e)};x&amp;&amp;(s=Math.max(0,Math.min(k-2,M)),l=M-s,o=&quot;a&quot;===y?function(e,r){return t.dxydi([],e,s,r,l)}:function(e,r){return t.dxydj([],s,e,l,r)});var S=b(_[0]),E=b(_[1]),C=S&lt;E?1:-1,L=1e-8*(E-S),I=C&gt;0?Math.floor:Math.ceil,P=C&gt;0?Math.ceil:Math.floor,z=C&gt;0?Math.min:Math.max,O=C&gt;0?Math.max:Math.min,D=I(S+L),R=P(E-L),F=[[f=A(S)]];for(a=D;a*C&lt;R*C;a+=C)c=[],g=O(S,a),v=(m=z(E,a+C))-g,u=Math.max(0,Math.min(T-2,Math.floor(.5*(g+m)))),h=A(m),x&amp;&amp;(p=o(u,g-u),d=o(u,m-u),c.push([f[0]+p[0]/3*v,f[1]+p[1]/3*v]),c.push([h[0]-d[0]/3*v,h[1]-d[1]/3*v])),c.push(h),F.push(c),f=h;return F}},{&quot;../../lib&quot;:778}],966:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../components/color/attributes&quot;),a=t(&quot;../../plots/cartesian/layout_attributes&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll;t(&quot;../../constants/docs&quot;).FORMAT_LINK,t(&quot;../../constants/docs&quot;).TIME_FORMAT_LINK;e.exports={color:{valType:&quot;color&quot;,editType:&quot;calc&quot;},smoothing:{valType:&quot;number&quot;,dflt:1,min:0,max:1.3,editType:&quot;calc&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},font:n({editType:&quot;calc&quot;}),offset:{valType:&quot;number&quot;,dflt:10,editType:&quot;calc&quot;},editType:&quot;calc&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;date&quot;,&quot;category&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;},autotypenumbers:a.autotypenumbers,autorange:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],dflt:!0,editType:&quot;calc&quot;},rangemode:{valType:&quot;enumerated&quot;,values:[&quot;normal&quot;,&quot;tozero&quot;,&quot;nonnegative&quot;],dflt:&quot;normal&quot;,editType:&quot;calc&quot;},range:{valType:&quot;info_array&quot;,editType:&quot;calc&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}]},fixedrange:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},cheatertype:{valType:&quot;enumerated&quot;,values:[&quot;index&quot;,&quot;value&quot;],dflt:&quot;value&quot;,editType:&quot;calc&quot;},tickmode:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;array&quot;],dflt:&quot;array&quot;,editType:&quot;calc&quot;},nticks:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},tickvals:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},showticklabels:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;end&quot;,&quot;both&quot;,&quot;none&quot;],dflt:&quot;start&quot;,editType:&quot;calc&quot;},tickfont:n({editType:&quot;calc&quot;}),tickangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;calc&quot;},tickprefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showtickprefix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},ticksuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showticksuffix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},showexponent:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},exponentformat:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;e&quot;,&quot;E&quot;,&quot;power&quot;,&quot;SI&quot;,&quot;B&quot;],dflt:&quot;B&quot;,editType:&quot;calc&quot;},minexponent:{valType:&quot;number&quot;,dflt:3,min:0,editType:&quot;calc&quot;},separatethousands:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},tickformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},tickformatstops:o(a.tickformatstops,&quot;calc&quot;,&quot;from-root&quot;),categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},labelpadding:{valType:&quot;integer&quot;,dflt:10,editType:&quot;calc&quot;},labelprefix:{valType:&quot;string&quot;,editType:&quot;calc&quot;},labelsuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showline:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},linecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;calc&quot;},linewidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},gridcolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},showgrid:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},minorgridcount:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},minorgridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},minorgridcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;calc&quot;},startline:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},startlinecolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},startlinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},endline:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},endlinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},endlinecolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},tick0:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},dtick:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},arraytick0:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},arraydtick:{valType:&quot;integer&quot;,min:1,dflt:1,editType:&quot;calc&quot;},_deprecated:{title:{valType:&quot;string&quot;,editType:&quot;calc&quot;},titlefont:n({editType:&quot;calc&quot;}),titleoffset:{valType:&quot;number&quot;,dflt:10,editType:&quot;calc&quot;}},editType:&quot;calc&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../constants/docs&quot;:748,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/font_attributes&quot;:856}],967:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./attributes&quot;),i=t(&quot;../../components/color&quot;).addOpacity,a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),l=t(&quot;../../plots/cartesian/tick_label_defaults&quot;),c=t(&quot;../../plots/cartesian/category_order_defaults&quot;),u=t(&quot;../../plots/cartesian/set_convert&quot;),f=t(&quot;../../plots/cartesian/axis_autotype&quot;);e.exports=function(t,e,r){var h=r.letter,p=r.font||{},d=n[h+&quot;axis&quot;];function g(r,n){return o.coerce(t,e,d,r,n)}function m(r,n){return o.coerce2(t,e,d,r,n)}r.name&amp;&amp;(e._name=r.name,e._id=r.name),g(&quot;autotypenumbers&quot;,r.autotypenumbersDflt);var v=g(&quot;type&quot;);(&quot;-&quot;===v&amp;&amp;(r.data&amp;&amp;function(t,e){if(&quot;-&quot;!==t.type)return;var r=t._id.charAt(0),n=t[r+&quot;calendar&quot;];t.type=f(e,n,{autotypenumbers:t.autotypenumbers})}(e,r.data),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:v=t.type=e.type),g(&quot;smoothing&quot;),g(&quot;cheatertype&quot;),g(&quot;showticklabels&quot;),g(&quot;labelprefix&quot;,h+&quot; = &quot;),g(&quot;labelsuffix&quot;),g(&quot;showtickprefix&quot;),g(&quot;showticksuffix&quot;),g(&quot;separatethousands&quot;),g(&quot;tickformat&quot;),g(&quot;exponentformat&quot;),g(&quot;minexponent&quot;),g(&quot;showexponent&quot;),g(&quot;categoryorder&quot;),g(&quot;tickmode&quot;),g(&quot;tickvals&quot;),g(&quot;ticktext&quot;),g(&quot;tick0&quot;),g(&quot;dtick&quot;),&quot;array&quot;===e.tickmode&amp;&amp;(g(&quot;arraytick0&quot;),g(&quot;arraydtick&quot;)),g(&quot;labelpadding&quot;),e._hovertitle=h,&quot;date&quot;===v)&amp;&amp;a.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;,r.calendar);u(e,r.fullLayout),e.c2p=o.identity;var y=g(&quot;color&quot;,r.dfltColor),x=y===t.color?y:p.color;g(&quot;title.text&quot;)&amp;&amp;(o.coerceFont(g,&quot;title.font&quot;,{family:p.family,size:Math.round(1.2*p.size),color:x}),g(&quot;title.offset&quot;)),g(&quot;tickangle&quot;),g(&quot;autorange&quot;,!e.isValidRange(t.range))&amp;&amp;g(&quot;rangemode&quot;),g(&quot;range&quot;),e.cleanRange(),g(&quot;fixedrange&quot;),s(t,e,g,v),l(t,e,g,v,r),c(t,e,g,{data:r.data,dataAttr:h});var b=m(&quot;gridcolor&quot;,i(y,.3)),_=m(&quot;gridwidth&quot;),w=g(&quot;showgrid&quot;);w||(delete e.gridcolor,delete e.gridwidth);var T=m(&quot;startlinecolor&quot;,y),k=m(&quot;startlinewidth&quot;,_);g(&quot;startline&quot;,e.showgrid||!!T||!!k)||(delete e.startlinecolor,delete e.startlinewidth);var M=m(&quot;endlinecolor&quot;,y),A=m(&quot;endlinewidth&quot;,_);return g(&quot;endline&quot;,e.showgrid||!!M||!!A)||(delete e.endlinecolor,delete e.endlinewidth),w?(g(&quot;minorgridcount&quot;),g(&quot;minorgridwidth&quot;,_),g(&quot;minorgridcolor&quot;,i(b,.06)),e.minorgridcount||(delete e.minorgridwidth,delete e.minorgridcolor)):(delete e.gridcolor,delete e.gridWidth),&quot;none&quot;===e.showticklabels&amp;&amp;(delete e.tickfont,delete e.tickangle,delete e.showexponent,delete e.exponentformat,delete e.minexponent,delete e.tickformat,delete e.showticksuffix,delete e.showtickprefix),e.showticksuffix||delete e.ticksuffix,e.showtickprefix||delete e.tickprefix,g(&quot;tickmode&quot;),e}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_autotype&quot;:829,&quot;../../plots/cartesian/category_order_defaults&quot;:832,&quot;../../plots/cartesian/set_convert&quot;:848,&quot;../../plots/cartesian/tick_label_defaults&quot;:849,&quot;../../plots/cartesian/tick_value_defaults&quot;:851,&quot;../../registry&quot;:911,&quot;./attributes&quot;:964}],968:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;).isArray1D,a=t(&quot;./cheater_basis&quot;),o=t(&quot;./array_minmax&quot;),s=t(&quot;./calc_gridlines&quot;),l=t(&quot;./calc_labels&quot;),c=t(&quot;./calc_clippath&quot;),u=t(&quot;../heatmap/clean_2d_array&quot;),f=t(&quot;./smooth_fill_2d_array&quot;),h=t(&quot;../heatmap/convert_column_xyz&quot;),p=t(&quot;./set_convert&quot;);e.exports=function(t,e){var r=n.getFromId(t,e.xaxis),d=n.getFromId(t,e.yaxis),g=e.aaxis,m=e.baxis,v=e.x,y=e.y,x=[];v&amp;&amp;i(v)&amp;&amp;x.push(&quot;x&quot;),y&amp;&amp;i(y)&amp;&amp;x.push(&quot;y&quot;),x.length&amp;&amp;h(e,g,m,&quot;a&quot;,&quot;b&quot;,x);var b=e._a=e._a||e.a,_=e._b=e._b||e.b;v=e._x||e.x,y=e._y||e.y;var w={};if(e._cheater){var T=&quot;index&quot;===g.cheatertype?b.length:b,k=&quot;index&quot;===m.cheatertype?_.length:_;v=a(T,k,e.cheaterslope)}e._x=v=u(v),e._y=y=u(y),f(v,b,_),f(y,b,_),p(e),e.setScale();var M=o(v),A=o(y),S=.5*(M[1]-M[0]),E=.5*(M[1]+M[0]),C=.5*(A[1]-A[0]),L=.5*(A[1]+A[0]);return M=[E-1.3*S,E+1.3*S],A=[L-1.3*C,L+1.3*C],e._extremes[r._id]=n.findExtremes(r,M,{padded:!0}),e._extremes[d._id]=n.findExtremes(d,A,{padded:!0}),s(e,&quot;a&quot;,&quot;b&quot;),s(e,&quot;b&quot;,&quot;a&quot;),l(e,g),l(e,m),w.clipsegments=c(e._xctrl,e._yctrl,g,m),w.x=v,w.y=y,w.a=b,w.b=_,[w]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../heatmap/clean_2d_array&quot;:1067,&quot;../heatmap/convert_column_xyz&quot;:1069,&quot;./array_minmax&quot;:963,&quot;./calc_clippath&quot;:969,&quot;./calc_gridlines&quot;:970,&quot;./calc_labels&quot;:971,&quot;./cheater_basis&quot;:973,&quot;./set_convert&quot;:986,&quot;./smooth_fill_2d_array&quot;:987}],969:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i,a,o,s=[],l=!!r.smoothing,c=!!n.smoothing,u=t[0].length-1,f=t.length-1;for(i=0,a=[],o=[];i&lt;=u;i++)a[i]=t[0][i],o[i]=e[0][i];for(s.push({x:a,y:o,bicubic:l}),i=0,a=[],o=[];i&lt;=f;i++)a[i]=t[i][u],o[i]=e[i][u];for(s.push({x:a,y:o,bicubic:c}),i=u,a=[],o=[];i&gt;=0;i--)a[u-i]=t[f][i],o[u-i]=e[f][i];for(s.push({x:a,y:o,bicubic:l}),i=f,a=[],o=[];i&gt;=0;i--)a[f-i]=t[i][0],o[f-i]=e[i][0];return s.push({x:a,y:o,bicubic:c}),s}},{}],970:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=function(t,e,r){var a,o,s,l,c,u,f,h,p,d,g,m,v,y,x=t[&quot;_&quot;+e],b=t[e+&quot;axis&quot;],_=b._gridlines=[],w=b._minorgridlines=[],T=b._boundarylines=[],k=t[&quot;_&quot;+r],M=t[r+&quot;axis&quot;];&quot;array&quot;===b.tickmode&amp;&amp;(b.tickvals=x.slice());var A=t._xctrl,S=t._yctrl,E=A[0].length,C=A.length,L=t._a.length,I=t._b.length;n.prepTicks(b),&quot;array&quot;===b.tickmode&amp;&amp;delete b.tickvals;var P=b.smoothing?3:1;function z(n){var i,a,o,s,l,c,u,f,p,d,g,m,v=[],y=[],x={};if(&quot;b&quot;===e)for(a=t.b2j(n),o=Math.floor(Math.max(0,Math.min(I-2,a))),s=a-o,x.length=I,x.crossLength=L,x.xy=function(e){return t.evalxy([],e,a)},x.dxy=function(e,r){return t.dxydi([],e,o,r,s)},i=0;i&lt;L;i++)c=Math.min(L-2,i),u=i-c,f=t.evalxy([],i,a),M.smoothing&amp;&amp;i&gt;0&amp;&amp;(p=t.dxydi([],i-1,o,0,s),v.push(l[0]+p[0]/3),y.push(l[1]+p[1]/3),d=t.dxydi([],i-1,o,1,s),v.push(f[0]-d[0]/3),y.push(f[1]-d[1]/3)),v.push(f[0]),y.push(f[1]),l=f;else for(i=t.a2i(n),c=Math.floor(Math.max(0,Math.min(L-2,i))),u=i-c,x.length=L,x.crossLength=I,x.xy=function(e){return t.evalxy([],i,e)},x.dxy=function(e,r){return t.dxydj([],c,e,u,r)},a=0;a&lt;I;a++)o=Math.min(I-2,a),s=a-o,f=t.evalxy([],i,a),M.smoothing&amp;&amp;a&gt;0&amp;&amp;(g=t.dxydj([],c,a-1,u,0),v.push(l[0]+g[0]/3),y.push(l[1]+g[1]/3),m=t.dxydj([],c,a-1,u,1),v.push(f[0]-m[0]/3),y.push(f[1]-m[1]/3)),v.push(f[0]),y.push(f[1]),l=f;return x.axisLetter=e,x.axis=b,x.crossAxis=M,x.value=n,x.constvar=r,x.index=h,x.x=v,x.y=y,x.smoothing=M.smoothing,x}function O(n){var i,a,o,s,l,c=[],u=[],f={};if(f.length=x.length,f.crossLength=k.length,&quot;b&quot;===e)for(o=Math.max(0,Math.min(I-2,n)),l=Math.min(1,Math.max(0,n-o)),f.xy=function(e){return t.evalxy([],e,n)},f.dxy=function(e,r){return t.dxydi([],e,o,r,l)},i=0;i&lt;E;i++)c[i]=A[n*P][i],u[i]=S[n*P][i];else for(a=Math.max(0,Math.min(L-2,n)),s=Math.min(1,Math.max(0,n-a)),f.xy=function(e){return t.evalxy([],n,e)},f.dxy=function(e,r){return t.dxydj([],a,e,s,r)},i=0;i&lt;C;i++)c[i]=A[i][n*P],u[i]=S[i][n*P];return f.axisLetter=e,f.axis=b,f.crossAxis=M,f.value=x[n],f.constvar=r,f.index=n,f.x=c,f.y=u,f.smoothing=M.smoothing,f}if(&quot;array&quot;===b.tickmode){for(l=5e-15,u=(c=[Math.floor((x.length-1-b.arraytick0)/b.arraydtick*(1+l)),Math.ceil(-b.arraytick0/b.arraydtick/(1+l))].sort((function(t,e){return t-e})))[0]-1,f=c[1]+1,h=u;h&lt;f;h++)(o=b.arraytick0+b.arraydtick*h)&lt;0||o&gt;x.length-1||_.push(i(O(o),{color:b.gridcolor,width:b.gridwidth}));for(h=u;h&lt;f;h++)if(s=b.arraytick0+b.arraydtick*h,g=Math.min(s+b.arraydtick,x.length-1),!(s&lt;0||s&gt;x.length-1||g&lt;0||g&gt;x.length-1))for(m=x[s],v=x[g],a=0;a&lt;b.minorgridcount;a++)(y=g-s)&lt;=0||(d=m+(v-m)*(a+1)/(b.minorgridcount+1)*(b.arraydtick/y))&lt;x[0]||d&gt;x[x.length-1]||w.push(i(z(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&amp;&amp;T.push(i(O(0),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&amp;&amp;T.push(i(O(x.length-1),{color:b.endlinecolor,width:b.endlinewidth}))}else{for(l=5e-15,u=(c=[Math.floor((x[x.length-1]-b.tick0)/b.dtick*(1+l)),Math.ceil((x[0]-b.tick0)/b.dtick/(1+l))].sort((function(t,e){return t-e})))[0],f=c[1],h=u;h&lt;=f;h++)p=b.tick0+b.dtick*h,_.push(i(z(p),{color:b.gridcolor,width:b.gridwidth}));for(h=u-1;h&lt;f+1;h++)for(p=b.tick0+b.dtick*h,a=0;a&lt;b.minorgridcount;a++)(d=p+b.dtick*(a+1)/(b.minorgridcount+1))&lt;x[0]||d&gt;x[x.length-1]||w.push(i(z(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&amp;&amp;T.push(i(z(x[0]),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&amp;&amp;T.push(i(z(x[x.length-1]),{color:b.endlinecolor,width:b.endlinewidth}))}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/cartesian/axes&quot;:828}],971:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=function(t,e){var r,a,o,s=e._labels=[],l=e._gridlines;for(r=0;r&lt;l.length;r++)o=l[r],-1!==[&quot;start&quot;,&quot;both&quot;].indexOf(e.showticklabels)&amp;&amp;(a=n.tickText(e,o.value),i(a,{prefix:void 0,suffix:void 0,endAnchor:!0,xy:o.xy(0),dxy:o.dxy(0,0),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a)),-1!==[&quot;end&quot;,&quot;both&quot;].indexOf(e.showticklabels)&amp;&amp;(a=n.tickText(e,o.value),i(a,{endAnchor:!1,xy:o.xy(o.crossLength-1),dxy:o.dxy(o.crossLength-2,1),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a))}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/cartesian/axes&quot;:828}],972:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i=t[0]-e[0],a=t[1]-e[1],o=r[0]-e[0],s=r[1]-e[1],l=Math.pow(i*i+a*a,.25),c=Math.pow(o*o+s*s,.25),u=(c*c*i-l*l*o)*n,f=(c*c*a-l*l*s)*n,h=c*(l+c)*3,p=l*(l+c)*3;return[[e[0]+(h&amp;&amp;u/h),e[1]+(h&amp;&amp;f/h)],[e[0]-(p&amp;&amp;u/p),e[1]-(p&amp;&amp;f/p)]]}},{}],973:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r){var i,a,o,s,l,c,u=[],f=n(t)?t.length:t,h=n(e)?e.length:e,p=n(t)?t:null,d=n(e)?e:null;p&amp;&amp;(o=(p.length-1)/(p[p.length-1]-p[0])/(f-1)),d&amp;&amp;(s=(d.length-1)/(d[d.length-1]-d[0])/(h-1));var g=1/0,m=-1/0;for(a=0;a&lt;h;a++)for(u[a]=[],l=d?(d[a]-d[0])*s:a/(h-1),i=0;i&lt;f;i++)c=(p?(p[i]-p[0])*o:i/(f-1))-l*r,g=Math.min(c,g),m=Math.max(c,m),u[a][i]=c;var v=1/(m-g),y=-g*v;for(a=0;a&lt;h;a++)for(i=0;i&lt;f;i++)u[a][i]=v*u[a][i]+y;return u}},{&quot;../../lib&quot;:778}],974:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./catmull_rom&quot;),i=t(&quot;../../lib&quot;).ensureArray;function a(t,e,r){var n=-.5*r[0]+1.5*e[0],i=-.5*r[1]+1.5*e[1];return[(2*n+t[0])/3,(2*i+t[1])/3]}e.exports=function(t,e,r,o,s,l){var c,u,f,h,p,d,g,m,v,y,x=r[0].length,b=r.length,_=s?3*x-2:x,w=l?3*b-2:b;for(t=i(t,w),e=i(e,w),f=0;f&lt;w;f++)t[f]=i(t[f],_),e[f]=i(e[f],_);for(u=0,h=0;u&lt;b;u++,h+=l?3:1)for(p=t[h],d=e[h],g=r[u],m=o[u],c=0,f=0;c&lt;x;c++,f+=s?3:1)p[f]=g[c],d[f]=m[c];if(s)for(u=0,h=0;u&lt;b;u++,h+=l?3:1){for(c=1,f=3;c&lt;x-1;c++,f+=3)v=n([r[u][c-1],o[u][c-1]],[r[u][c],o[u][c]],[r[u][c+1],o[u][c+1]],s),t[h][f-1]=v[0][0],e[h][f-1]=v[0][1],t[h][f+1]=v[1][0],e[h][f+1]=v[1][1];y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=y[0],e[h][1]=y[1],y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=y[0],e[h][_-2]=y[1]}if(l)for(f=0;f&lt;_;f++){for(h=3;h&lt;w-3;h+=3)v=n([t[h-3][f],e[h-3][f]],[t[h][f],e[h][f]],[t[h+3][f],e[h+3][f]],l),t[h-1][f]=v[0][0],e[h-1][f]=v[0][1],t[h+1][f]=v[1][0],e[h+1][f]=v[1][1];y=a([t[0][f],e[0][f]],[t[2][f],e[2][f]],[t[3][f],e[3][f]]),t[1][f]=y[0],e[1][f]=y[1],y=a([t[w-1][f],e[w-1][f]],[t[w-3][f],e[w-3][f]],[t[w-4][f],e[w-4][f]]),t[w-2][f]=y[0],e[w-2][f]=y[1]}if(s&amp;&amp;l)for(h=1;h&lt;w;h+=(h+1)%3==0?2:1){for(f=3;f&lt;_-3;f+=3)v=n([t[h][f-3],e[h][f-3]],[t[h][f],e[h][f]],[t[h][f+3],e[h][f+3]],s),t[h][f-1]=.5*(t[h][f-1]+v[0][0]),e[h][f-1]=.5*(e[h][f-1]+v[0][1]),t[h][f+1]=.5*(t[h][f+1]+v[1][0]),e[h][f+1]=.5*(e[h][f+1]+v[1][1]);y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=.5*(t[h][1]+y[0]),e[h][1]=.5*(e[h][1]+y[1]),y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=.5*(t[h][_-2]+y[0]),e[h][_-2]=.5*(e[h][_-2]+y[1])}return[t,e]}},{&quot;../../lib&quot;:778,&quot;./catmull_rom&quot;:972}],975:[function(t,e,r){&quot;use strict&quot;;e.exports={RELATIVE_CULL_TOLERANCE:1e-6}},{}],976:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return e&amp;&amp;r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=1-i,d=p*p,g=p*i*2,m=-3*d,v=3*(d-g),y=3*(g-h),x=3*h,b=a*a,_=b*a,w=1-a,T=w*w,k=T*w;for(f=0;f&lt;t.length;f++)o=m*(u=t[f])[n][r]+v*u[n][r+1]+y*u[n][r+2]+x*u[n][r+3],s=m*u[n+1][r]+v*u[n+1][r+1]+y*u[n+1][r+2]+x*u[n+1][r+3],l=m*u[n+2][r]+v*u[n+2][r+1]+y*u[n+2][r+2]+x*u[n+2][r+3],c=m*u[n+3][r]+v*u[n+3][r+1]+y*u[n+3][r+2]+x*u[n+3][r+3],e[f]=k*o+3*(T*a*s+w*b*l)+_*c;return e}:e?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),r*=3;var u=i*i,f=1-i,h=f*f,p=f*i*2,d=-3*h,g=3*(h-p),m=3*(p-u),v=3*u,y=1-a;for(l=0;l&lt;t.length;l++)o=d*(c=t[l])[n][r]+g*c[n][r+1]+m*c[n][r+2]+v*c[n][r+3],s=d*c[n+1][r]+g*c[n+1][r+1]+m*c[n+1][r+2]+v*c[n+1][r+3],e[l]=y*o+a*s;return e}:r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),n*=3;var h=a*a,p=h*a,d=1-a,g=d*d,m=g*d;for(u=0;u&lt;t.length;u++)o=(f=t[u])[n][r+1]-f[n][r],s=f[n+1][r+1]-f[n+1][r],l=f[n+2][r+1]-f[n+2][r],c=f[n+3][r+1]-f[n+3][r],e[u]=m*o+3*(g*a*s+d*h*l)+p*c;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-a;for(l=0;l&lt;t.length;l++)o=(c=t[l])[n][r+1]-c[n][r],s=c[n+1][r+1]-c[n+1][r],e[l]=u*o+a*s;return e}}},{}],977:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return e&amp;&amp;r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=h*i,d=1-i,g=d*d,m=g*d,v=a*a,y=1-a,x=y*y,b=y*a*2,_=-3*x,w=3*(x-b),T=3*(b-v),k=3*v;for(f=0;f&lt;t.length;f++)o=_*(u=t[f])[n][r]+w*u[n+1][r]+T*u[n+2][r]+k*u[n+3][r],s=_*u[n][r+1]+w*u[n+1][r+1]+T*u[n+2][r+1]+k*u[n+3][r+1],l=_*u[n][r+2]+w*u[n+1][r+2]+T*u[n+2][r+2]+k*u[n+3][r+2],c=_*u[n][r+3]+w*u[n+1][r+3]+T*u[n+2][r+3]+k*u[n+3][r+3],e[f]=m*o+3*(g*i*s+d*h*l)+p*c;return e}:e?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3;var h=a*a,p=h*a,d=1-a,g=d*d,m=g*d;for(u=0;u&lt;t.length;u++)o=(f=t[u])[n+1][r]-f[n][r],s=f[n+1][r+1]-f[n][r+1],l=f[n+1][r+2]-f[n][r+2],c=f[n+1][r+3]-f[n][r+3],e[u]=m*o+3*(g*a*s+d*h*l)+p*c;return e}:r?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),n*=3;var u=1-i,f=a*a,h=1-a,p=h*h,d=h*a*2,g=-3*p,m=3*(p-d),v=3*(d-f),y=3*f;for(l=0;l&lt;t.length;l++)o=g*(c=t[l])[n][r]+m*c[n+1][r]+v*c[n+2][r]+y*c[n+3][r],s=g*c[n][r+1]+m*c[n+1][r+1]+v*c[n+2][r+1]+y*c[n+3][r+1],e[l]=u*o+i*s;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-i;for(l=0;l&lt;t.length;l++)o=(c=t[l])[n+1][r]-c[n][r],s=c[n+1][r+1]-c[n][r+1],e[l]=u*o+i*s;return e}}},{}],978:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=e-2,o=r-2;return n&amp;&amp;i?function(e,r,n){var i,s,l,c,u,f;e||(e=[]);var h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3,p*=3;var m=d*d,v=m*d,y=1-d,x=y*y,b=x*y,_=g*g,w=_*g,T=1-g,k=T*T,M=k*T;for(f=0;f&lt;t.length;f++)i=b*(u=t[f])[p][h]+3*(x*d*u[p][h+1]+y*m*u[p][h+2])+v*u[p][h+3],s=b*u[p+1][h]+3*(x*d*u[p+1][h+1]+y*m*u[p+1][h+2])+v*u[p+1][h+3],l=b*u[p+2][h]+3*(x*d*u[p+2][h+1]+y*m*u[p+2][h+2])+v*u[p+2][h+3],c=b*u[p+3][h]+3*(x*d*u[p+3][h+1]+y*m*u[p+3][h+2])+v*u[p+3][h+3],e[f]=M*i+3*(k*g*s+T*_*l)+w*c;return e}:n?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3;var m=d*d,v=m*d,y=1-d,x=y*y,b=x*y,_=1-g;for(u=0;u&lt;t.length;u++)i=_*(f=t[u])[p][h]+g*f[p+1][h],s=_*f[p][h+1]+g*f[p+1][h+1],l=_*f[p][h+2]+g*f[p+1][h+1],c=_*f[p][h+3]+g*f[p+1][h+1],e[u]=b*i+3*(x*d*s+y*m*l)+v*c;return e}:i?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));p*=3;var m=g*g,v=m*g,y=1-g,x=y*y,b=x*y,_=1-d;for(u=0;u&lt;t.length;u++)i=_*(f=t[u])[p][h]+d*f[p][h+1],s=_*f[p+1][h]+d*f[p+1][h+1],l=_*f[p+2][h]+d*f[p+2][h+1],c=_*f[p+3][h]+d*f[p+3][h+1],e[u]=b*i+3*(x*g*s+y*m*l)+v*c;return e}:function(e,r,n){e||(e=[]);var i,s,l,c,u=Math.max(0,Math.min(Math.floor(r),a)),f=Math.max(0,Math.min(Math.floor(n),o)),h=Math.max(0,Math.min(1,r-u)),p=Math.max(0,Math.min(1,n-f)),d=1-p,g=1-h;for(l=0;l&lt;t.length;l++)i=g*(c=t[l])[f][u]+h*c[f][u+1],s=g*c[f+1][u]+h*c[f+1][u+1],e[l]=d*i+p*s;return e}}},{}],979:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./xy_defaults&quot;),a=t(&quot;./ab_defaults&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../../components/color/attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}e._clipPathId=&quot;clip&quot;+e.uid+&quot;carpet&quot;;var u=c(&quot;color&quot;,s.defaultLine);(n.coerceFont(c,&quot;font&quot;),c(&quot;carpet&quot;),a(t,e,l,c,u),e.a&amp;&amp;e.b)?(e.a.length&lt;3&amp;&amp;(e.aaxis.smoothing=0),e.b.length&lt;3&amp;&amp;(e.baxis.smoothing=0),i(t,e,c)||(e.visible=!1),e._cheater&amp;&amp;c(&quot;cheaterslope&quot;)):e.visible=!1}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib&quot;:778,&quot;./ab_defaults&quot;:962,&quot;./attributes&quot;:964,&quot;./xy_defaults&quot;:988}],980:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),plot:t(&quot;./plot&quot;),calc:t(&quot;./calc&quot;),animatable:!0,isContainer:!0,moduleType:&quot;trace&quot;,name:&quot;carpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;carpet&quot;,&quot;carpetAxis&quot;,&quot;notLegendIsolatable&quot;,&quot;noMultiCategory&quot;,&quot;noHover&quot;,&quot;noSortingByValue&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:964,&quot;./calc&quot;:968,&quot;./defaults&quot;:979,&quot;./plot&quot;:985}],981:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r,n=t._fullData.length,i=0;i&lt;n;i++){var a=t._fullData[i];if(a.index!==e.index&amp;&amp;(&quot;carpet&quot;===a.type&amp;&amp;(r||(r=a),a.carpet===e.carpet)))return a}return r}},{}],982:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(0===t.length)return&quot;&quot;;var n,i=[],a=r?3:1;for(n=0;n&lt;t.length;n+=a)i.push(t[n]+&quot;,&quot;+e[n]),r&amp;&amp;n&lt;t.length-a&amp;&amp;(i.push(&quot;C&quot;),i.push([t[n+1]+&quot;,&quot;+e[n+1],t[n+2]+&quot;,&quot;+e[n+2]+&quot; &quot;].join(&quot; &quot;)));return i.join(r?&quot;&quot;:&quot;L&quot;)}},{}],983:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r){var i;for(n(t)?t.length&gt;e.length&amp;&amp;(t=t.slice(0,e.length)):t=[],i=0;i&lt;e.length;i++)t[i]=r(e[i]);return t}},{&quot;../../lib&quot;:778}],984:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a){var o=i[0]*t.dpdx(e),s=i[1]*t.dpdy(r),l=1,c=1;if(a){var u=Math.sqrt(i[0]*i[0]+i[1]*i[1]),f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=(i[0]*a[0]+i[1]*a[1])/u/f;c=Math.max(0,h)}var p=180*Math.atan2(s,o)/Math.PI;return p&lt;-90?(p+=180,l=-l):p&gt;90&amp;&amp;(p-=180,l=-l),{angle:p,flip:l,p:t.c2p(n,e,r),offsetMultplier:c}}},{}],985:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;./map_1d_array&quot;),o=t(&quot;./makepath&quot;),s=t(&quot;./orient_text&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../lib&quot;),u=c.strRotate,f=c.strTranslate,h=t(&quot;../../constants/alignment&quot;);function p(t,e,r,i,s,l){var c=&quot;const-&quot;+s+&quot;-lines&quot;,u=r.selectAll(&quot;.&quot;+c).data(l);u.enter().append(&quot;path&quot;).classed(c,!0).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;),u.each((function(r){var i=r,s=i.x,l=i.y,c=a([],s,t.c2p),u=a([],l,e.c2p),f=&quot;M&quot;+o(c,u,i.smoothing);n.select(this).attr(&quot;d&quot;,f).style(&quot;stroke-width&quot;,i.width).style(&quot;stroke&quot;,i.color).style(&quot;fill&quot;,&quot;none&quot;)})),u.exit().remove()}function d(t,e,r,a,o,c,h,p){var d=c.selectAll(&quot;text.&quot;+p).data(h);d.enter().append(&quot;text&quot;).classed(p,!0);var g=0,m={};return d.each((function(o,c){var h;if(&quot;auto&quot;===o.axis.tickangle)h=s(a,e,r,o.xy,o.dxy);else{var p=(o.axis.tickangle+180)*Math.PI/180;h=s(a,e,r,o.xy,[Math.cos(p),Math.sin(p)])}c||(m={angle:h.angle,flip:h.flip});var d=(o.endAnchor?-1:1)*h.flip,v=n.select(this).attr({&quot;text-anchor&quot;:d&gt;0?&quot;start&quot;:&quot;end&quot;,&quot;data-notex&quot;:1}).call(i.font,o.font).text(o.text).call(l.convertToTspans,t),y=i.bBox(this);v.attr(&quot;transform&quot;,f(h.p[0],h.p[1])+u(h.angle)+f(o.axis.labelpadding*d,.3*y.height)),g=Math.max(g,y.width+o.axis.labelpadding)})),d.exit().remove(),m.maxExtent=g,m}e.exports=function(t,e,r,i){var l=e.xaxis,u=e.yaxis,f=t._fullLayout._clips;c.makeTraceGroups(i,r,&quot;trace&quot;).each((function(e){var r=n.select(this),i=e[0],h=i.trace,g=h.aaxis,m=h.baxis,y=c.ensureSingle(r,&quot;g&quot;,&quot;minorlayer&quot;),x=c.ensureSingle(r,&quot;g&quot;,&quot;majorlayer&quot;),b=c.ensureSingle(r,&quot;g&quot;,&quot;boundarylayer&quot;),_=c.ensureSingle(r,&quot;g&quot;,&quot;labellayer&quot;);r.style(&quot;opacity&quot;,h.opacity),p(l,u,x,g,&quot;a&quot;,g._gridlines),p(l,u,x,m,&quot;b&quot;,m._gridlines),p(l,u,y,g,&quot;a&quot;,g._minorgridlines),p(l,u,y,m,&quot;b&quot;,m._minorgridlines),p(l,u,b,g,&quot;a-boundary&quot;,g._boundarylines),p(l,u,b,m,&quot;b-boundary&quot;,m._boundarylines);var w=d(t,l,u,h,i,_,g._labels,&quot;a-label&quot;),T=d(t,l,u,h,i,_,m._labels,&quot;b-label&quot;);!function(t,e,r,n,i,a,o,l){var u,f,h,p,d=c.aggNums(Math.min,null,r.a),g=c.aggNums(Math.max,null,r.a),m=c.aggNums(Math.min,null,r.b),y=c.aggNums(Math.max,null,r.b);u=.5*(d+g),f=m,h=r.ab2xy(u,f,!0),p=r.dxyda_rough(u,f),void 0===o.angle&amp;&amp;c.extendFlat(o,s(r,i,a,h,r.dxydb_rough(u,f)));v(t,e,r,n,h,p,r.aaxis,i,a,o,&quot;a-title&quot;),u=d,f=.5*(m+y),h=r.ab2xy(u,f,!0),p=r.dxydb_rough(u,f),void 0===l.angle&amp;&amp;c.extendFlat(l,s(r,i,a,h,r.dxyda_rough(u,f)));v(t,e,r,n,h,p,r.baxis,i,a,l,&quot;b-title&quot;)}(t,_,h,i,l,u,w,T),function(t,e,r,n,i){var s,l,u,f,h=r.select(&quot;#&quot;+t._clipPathId);h.size()||(h=r.append(&quot;clipPath&quot;).classed(&quot;carpetclip&quot;,!0));var p=c.ensureSingle(h,&quot;path&quot;,&quot;carpetboundary&quot;),d=e.clipsegments,g=[];for(f=0;f&lt;d.length;f++)s=d[f],l=a([],s.x,n.c2p),u=a([],s.y,i.c2p),g.push(o(l,u,s.bicubic));var m=&quot;M&quot;+g.join(&quot;L&quot;)+&quot;Z&quot;;h.attr(&quot;id&quot;,t._clipPathId),p.attr(&quot;d&quot;,m)}(h,i,f,l,u)}))};var g=h.LINE_SPACING,m=(1-h.MID_SHIFT)/g+1;function v(t,e,r,a,o,c,h,p,d,v,y){var x=[];h.title.text&amp;&amp;x.push(h.title.text);var b=e.selectAll(&quot;text.&quot;+y).data(x),_=v.maxExtent;b.enter().append(&quot;text&quot;).classed(y,!0),b.each((function(){var e=s(r,p,d,o,c);-1===[&quot;start&quot;,&quot;both&quot;].indexOf(h.showticklabels)&amp;&amp;(_=0);var a=h.title.font.size;_+=a+h.title.offset;var y=(v.angle+(v.flip&lt;0?180:0)-e.angle+450)%360,x=y&gt;90&amp;&amp;y&lt;270,b=n.select(this);b.text(h.title.text).call(l.convertToTspans,t),x&amp;&amp;(_=(-l.lineCount(b)+m)*g*a-_),b.attr(&quot;transform&quot;,f(e.p[0],e.p[1])+u(e.angle)+f(0,_)).attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(i.font,h.title.font)})),b.exit().remove()}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;./makepath&quot;:982,&quot;./map_1d_array&quot;:983,&quot;./orient_text&quot;:984,d3:169}],986:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib/search&quot;).findBin,a=t(&quot;./compute_control_points&quot;),o=t(&quot;./create_spline_evaluator&quot;),s=t(&quot;./create_i_derivative_evaluator&quot;),l=t(&quot;./create_j_derivative_evaluator&quot;);e.exports=function(t){var e=t._a,r=t._b,c=e.length,u=r.length,f=t.aaxis,h=t.baxis,p=e[0],d=e[c-1],g=r[0],m=r[u-1],v=e[e.length-1]-e[0],y=r[r.length-1]-r[0],x=v*n.RELATIVE_CULL_TOLERANCE,b=y*n.RELATIVE_CULL_TOLERANCE;p-=x,d+=x,g-=b,m+=b,t.isVisible=function(t,e){return t&gt;p&amp;&amp;t&lt;d&amp;&amp;e&gt;g&amp;&amp;e&lt;m},t.isOccluded=function(t,e){return t&lt;p||t&gt;d||e&lt;g||e&gt;m},t.setScale=function(){var e=t._x,r=t._y,n=a(t._xctrl,t._yctrl,e,r,f.smoothing,h.smoothing);t._xctrl=n[0],t._yctrl=n[1],t.evalxy=o([t._xctrl,t._yctrl],c,u,f.smoothing,h.smoothing),t.dxydi=s([t._xctrl,t._yctrl],f.smoothing,h.smoothing),t.dxydj=l([t._xctrl,t._yctrl],f.smoothing,h.smoothing)},t.i2a=function(t){var r=Math.max(0,Math.floor(t[0]),c-2),n=t[0]-r;return(1-n)*e[r]+n*e[r+1]},t.j2b=function(t){var e=Math.max(0,Math.floor(t[1]),c-2),n=t[1]-e;return(1-n)*r[e]+n*r[e+1]},t.ij2ab=function(e){return[t.i2a(e[0]),t.j2b(e[1])]},t.a2i=function(t){var r=Math.max(0,Math.min(i(t,e),c-2)),n=e[r],a=e[r+1];return Math.max(0,Math.min(c-1,r+(t-n)/(a-n)))},t.b2j=function(t){var e=Math.max(0,Math.min(i(t,r),u-2)),n=r[e],a=r[e+1];return Math.max(0,Math.min(u-1,e+(t-n)/(a-n)))},t.ab2ij=function(e){return[t.a2i(e[0]),t.b2j(e[1])]},t.i2c=function(e,r){return t.evalxy([],e,r)},t.ab2xy=function(n,i,a){if(!a&amp;&amp;(n&lt;e[0]||n&gt;e[c-1]|i&lt;r[0]||i&gt;r[u-1]))return[!1,!1];var o=t.a2i(n),s=t.b2j(i),l=t.evalxy([],o,s);if(a){var f,h,p,d,g=0,m=0,v=[];n&lt;e[0]?(f=0,h=0,g=(n-e[0])/(e[1]-e[0])):n&gt;e[c-1]?(f=c-2,h=1,g=(n-e[c-1])/(e[c-1]-e[c-2])):h=o-(f=Math.max(0,Math.min(c-2,Math.floor(o)))),i&lt;r[0]?(p=0,d=0,m=(i-r[0])/(r[1]-r[0])):i&gt;r[u-1]?(p=u-2,d=1,m=(i-r[u-1])/(r[u-1]-r[u-2])):d=s-(p=Math.max(0,Math.min(u-2,Math.floor(s)))),g&amp;&amp;(t.dxydi(v,f,p,h,d),l[0]+=v[0]*g,l[1]+=v[1]*g),m&amp;&amp;(t.dxydj(v,f,p,h,d),l[0]+=v[0]*m,l[1]+=v[1]*m)}return l},t.c2p=function(t,e,r){return[e.c2p(t[0]),r.c2p(t[1])]},t.p2x=function(t,e,r){return[e.p2c(t[0]),r.p2c(t[1])]},t.dadi=function(t){var r=Math.max(0,Math.min(e.length-2,t));return e[r+1]-e[r]},t.dbdj=function(t){var e=Math.max(0,Math.min(r.length-2,t));return r[e+1]-r[e]},t.dxyda=function(e,r,n,i){var a=t.dxydi(null,e,r,n,i),o=t.dadi(e,n);return[a[0]/o,a[1]/o]},t.dxydb=function(e,r,n,i){var a=t.dxydj(null,e,r,n,i),o=t.dbdj(r,i);return[a[0]/o,a[1]/o]},t.dxyda_rough=function(e,r,n){var i=v*(n||.1),a=t.ab2xy(e+i,r,!0),o=t.ab2xy(e-i,r,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dxydb_rough=function(e,r,n){var i=y*(n||.1),a=t.ab2xy(e,r+i,!0),o=t.ab2xy(e,r-i,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dpdx=function(t){return t._m},t.dpdy=function(t){return t._m}}},{&quot;../../lib/search&quot;:798,&quot;./compute_control_points&quot;:974,&quot;./constants&quot;:975,&quot;./create_i_derivative_evaluator&quot;:976,&quot;./create_j_derivative_evaluator&quot;:977,&quot;./create_spline_evaluator&quot;:978}],987:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r){var i,a,o,s=[],l=[],c=t[0].length,u=t.length;function f(e,r){var n,i=0,a=0;return e&gt;0&amp;&amp;void 0!==(n=t[r][e-1])&amp;&amp;(a++,i+=n),e&lt;c-1&amp;&amp;void 0!==(n=t[r][e+1])&amp;&amp;(a++,i+=n),r&gt;0&amp;&amp;void 0!==(n=t[r-1][e])&amp;&amp;(a++,i+=n),r&lt;u-1&amp;&amp;void 0!==(n=t[r+1][e])&amp;&amp;(a++,i+=n),i/Math.max(1,a)}var h,p,d,g,m,v,y,x,b,_,w,T=0;for(i=0;i&lt;c;i++)for(a=0;a&lt;u;a++)void 0===t[a][i]&amp;&amp;(s.push(i),l.push(a),t[a][i]=f(i,a)),T=Math.max(T,Math.abs(t[a][i]));if(!s.length)return t;var k=0,M=0,A=s.length;do{for(k=0,o=0;o&lt;A;o++){i=s[o],a=l[o];var S,E,C,L,I,P,z=0,O=0;0===i?(C=e[I=Math.min(c-1,2)],L=e[1],S=t[a][I],O+=(E=t[a][1])+(E-S)*(e[0]-L)/(L-C),z++):i===c-1&amp;&amp;(C=e[I=Math.max(0,c-3)],L=e[c-2],S=t[a][I],O+=(E=t[a][c-2])+(E-S)*(e[c-1]-L)/(L-C),z++),(0===i||i===c-1)&amp;&amp;a&gt;0&amp;&amp;a&lt;u-1&amp;&amp;(h=r[a+1]-r[a],O+=((p=r[a]-r[a-1])*t[a+1][i]+h*t[a-1][i])/(p+h),z++),0===a?(C=r[P=Math.min(u-1,2)],L=r[1],S=t[P][i],O+=(E=t[1][i])+(E-S)*(r[0]-L)/(L-C),z++):a===u-1&amp;&amp;(C=r[P=Math.max(0,u-3)],L=r[u-2],S=t[P][i],O+=(E=t[u-2][i])+(E-S)*(r[u-1]-L)/(L-C),z++),(0===a||a===u-1)&amp;&amp;i&gt;0&amp;&amp;i&lt;c-1&amp;&amp;(h=e[i+1]-e[i],O+=((p=e[i]-e[i-1])*t[a][i+1]+h*t[a][i-1])/(p+h),z++),z?O/=z:(d=e[i+1]-e[i],g=e[i]-e[i-1],x=(m=r[a+1]-r[a])*(v=r[a]-r[a-1])*(m+v),O=((y=d*g*(d+g))*(v*t[a+1][i]+m*t[a-1][i])+x*(g*t[a][i+1]+d*t[a][i-1]))/(x*(g+d)+y*(v+m))),k+=(_=(b=O-t[a][i])/T)*_,w=z?0:.85,t[a][i]+=b*(1+w)}k=Math.sqrt(k)}while(M++&lt;100&amp;&amp;k&gt;1e-5);return n.log(&quot;Smoother converged to&quot;,k,&quot;after&quot;,M,&quot;iterations&quot;),t}},{&quot;../../lib&quot;:778}],988:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArray1D;e.exports=function(t,e,r){var i=r(&quot;x&quot;),a=i&amp;&amp;i.length,o=r(&quot;y&quot;),s=o&amp;&amp;o.length;if(!a&amp;&amp;!s)return!1;if(e._cheater=!i,a&amp;&amp;!n(i)||s&amp;&amp;!n(o))e._length=null;else{var l=a?i.length:1/0;s&amp;&amp;(l=Math.min(l,o.length)),e.a&amp;&amp;e.a.length&amp;&amp;(l=Math.min(l,e.a.length)),e.b&amp;&amp;e.b.length&amp;&amp;(l=Math.min(l,e.b.length)),e._length=l}return!0}},{&quot;../../lib&quot;:778}],989:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../scattergeo/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/color/attributes&quot;).defaultLine,l=t(&quot;../../lib/extend&quot;).extendFlat,c=i.marker.line;e.exports=l({locations:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},locationmode:i.locationmode,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},geojson:l({},i.geojson,{}),featureidkey:i.featureidkey,text:l({},i.text,{}),hovertext:l({},i.hovertext,{}),marker:{line:{color:l({},c.color,{dflt:s}),width:l({},c.width,{dflt:1}),editType:&quot;calc&quot;},opacity:{valType:&quot;number&quot;,arrayOk:!0,min:0,max:1,dflt:1,editType:&quot;style&quot;},editType:&quot;calc&quot;},selected:{marker:{opacity:i.selected.marker.opacity,editType:&quot;plot&quot;},editType:&quot;plot&quot;},unselected:{marker:{opacity:i.unselected.marker.opacity,editType:&quot;plot&quot;},editType:&quot;plot&quot;},hoverinfo:l({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;location&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n(),showlegend:l({},o.showlegend,{dflt:!1})},a(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/color/attributes&quot;:642,&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scattergeo/attributes&quot;:1229}],990:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../components/colorscale/calc&quot;),o=t(&quot;../scatter/arrays_to_calcdata&quot;),s=t(&quot;../scatter/calc_selection&quot;);function l(t){return t&amp;&amp;&quot;string&quot;==typeof t}e.exports=function(t,e){var r,c=e._length,u=new Array(c);r=e.geojson?function(t){return l(t)||n(t)}:l;for(var f=0;f&lt;c;f++){var h=u[f]={},p=e.locations[f],d=e.z[f];r(p)&amp;&amp;n(d)?(h.loc=p,h.z=d):(h.loc=null,h.z=i),h.index=f}return o(u,e),a(t,e,{vals:e.z,containerStr:&quot;&quot;,cLetter:&quot;z&quot;}),s(u,e),u}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../constants/numerical&quot;:753,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc_selection&quot;:1189,&quot;fast-isnumeric&quot;:241}],991:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;locations&quot;),c=s(&quot;z&quot;);if(l&amp;&amp;l.length&amp;&amp;n.isArrayOrTypedArray(c)&amp;&amp;c.length){e._length=Math.min(l.length,c.length);var u,f=s(&quot;geojson&quot;);(&quot;string&quot;==typeof f&amp;&amp;&quot;&quot;!==f||n.isPlainObject(f))&amp;&amp;(u=&quot;geojson-id&quot;),&quot;geojson-id&quot;===s(&quot;locationmode&quot;,u)&amp;&amp;s(&quot;featureidkey&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;marker.line.width&quot;)&amp;&amp;s(&quot;marker.line.color&quot;),s(&quot;marker.opacity&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),n.coerceSelectionMarkerOpacity(e,s)}else e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:989}],992:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){t.location=e.location,t.z=e.z;var a=n[i];return a.fIn&amp;&amp;a.fIn.properties&amp;&amp;(t.properties=a.fIn.properties),t.ct=a.ct,t}},{}],993:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../lib&quot;).fillText;e.exports=function(t,e,r){var o,s,l,c,u=t.cd,f=u[0].trace,h=t.subplot,p=[e,r],d=[e+360,r];for(s=0;s&lt;u.length;s++)if(c=!1,(o=u[s])._polygons){for(l=0;l&lt;o._polygons.length;l++)o._polygons[l].contains(p)&amp;&amp;(c=!c),o._polygons[l].contains(d)&amp;&amp;(c=!c);if(c)break}if(c&amp;&amp;o)return t.x0=t.x1=t.xa.c2p(o.ct),t.y0=t.y1=t.ya.c2p(o.ct),t.index=o.index,t.location=o.loc,t.z=o.z,t.zLabel=n.tickText(h.mockAxis,h.mockAxis.c2l(o.z),&quot;hover&quot;).text,t.hovertemplate=o.hovertemplate,function(t,e,r){if(e.hovertemplate)return;var n=r.hi||e.hoverinfo,o=String(r.loc),s=&quot;all&quot;===n?i.hoverinfo.flags:n.split(&quot;+&quot;),l=-1!==s.indexOf(&quot;name&quot;),c=-1!==s.indexOf(&quot;location&quot;),u=-1!==s.indexOf(&quot;z&quot;),f=-1!==s.indexOf(&quot;text&quot;),h=[];!l&amp;&amp;c?t.nameOverride=o:(l&amp;&amp;(t.nameOverride=e.name),c&amp;&amp;h.push(o));u&amp;&amp;h.push(t.zLabel);f&amp;&amp;a(r,e,h);t.extraText=h.join(&quot;&lt;br&gt;&quot;)}(t,f,o),[t]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:989}],994:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;./calc&quot;),calcGeoJSON:t(&quot;./plot&quot;).calcGeoJSON,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;choropleth&quot;,basePlotModule:t(&quot;../../plots/geo&quot;),categories:[&quot;geo&quot;,&quot;noOpacity&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/geo&quot;:860,&quot;../heatmap/colorbar&quot;:1068,&quot;./attributes&quot;:989,&quot;./calc&quot;:990,&quot;./defaults&quot;:991,&quot;./event_data&quot;:992,&quot;./hover&quot;:993,&quot;./plot&quot;:995,&quot;./select&quot;:996,&quot;./style&quot;:997}],995:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/geo_location_utils&quot;),o=t(&quot;../../lib/topojson_utils&quot;).getTopojsonFeatures,s=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,l=t(&quot;./style&quot;).style;e.exports={calcGeoJSON:function(t,e){for(var r=t[0].trace,n=e[r.geo],i=n._subplot,l=r.locationmode,c=r._length,u=&quot;geojson-id&quot;===l?a.extractTraceFeature(t):o(r,i.topojson),f=[],h=[],p=0;p&lt;c;p++){var d=t[p],g=&quot;geojson-id&quot;===l?d.fOut:a.locationToFeature(l,d.loc,u);if(g){d.geojson=g,d.ct=g.properties.ct,d._polygons=a.feature2polygons(g);var m=a.computeBbox(g);f.push(m[0],m[2]),h.push(m[1],m[3])}else d.geojson=null}if(&quot;geojson&quot;===n.fitbounds&amp;&amp;&quot;geojson-id&quot;===l){var v=a.computeBbox(a.getTraceGeojson(r));f=[v[0],v[2]],h=[v[1],v[3]]}var y={padded:!0};r._extremes.lon=s(n.lonaxis._ax,f,y),r._extremes.lat=s(n.lataxis._ax,h,y)},plot:function(t,e,r){var a=e.layers.backplot.select(&quot;.choroplethlayer&quot;);i.makeTraceGroups(a,r,&quot;trace choropleth&quot;).each((function(e){var r=n.select(this).selectAll(&quot;path.choroplethlocation&quot;).data(i.identity);r.enter().append(&quot;path&quot;).classed(&quot;choroplethlocation&quot;,!0),r.exit().remove(),l(t,e)}))}}},{&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/topojson_utils&quot;:806,&quot;../../plots/cartesian/autorange&quot;:827,&quot;./style&quot;:997,d3:169}],996:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[];if(!1===e)for(r=0;r&lt;s.length;r++)s[r].selected=0;else for(r=0;r&lt;s.length;r++)(i=(n=s[r]).ct)&amp;&amp;(a=l.c2p(i),o=c.c2p(i),e.contains([a,o],null,r,t)?(u.push({pointNumber:r,lon:i[0],lat:i[1]}),n.selected=1):n.selected=0);return u}},{}],997:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../components/colorscale&quot;);function s(t,e){var r=e[0].trace,s=e[0].node3.selectAll(&quot;.choroplethlocation&quot;),l=r.marker||{},c=l.line||{},u=o.makeColorScaleFuncFromTrace(r);s.each((function(t){n.select(this).attr(&quot;fill&quot;,u(t.z)).call(i.stroke,t.mlc||c.color).call(a.dashLine,&quot;&quot;,t.mlw||c.width||0).style(&quot;opacity&quot;,l.opacity)})),a.selectedPointStyle(s,r,t)}e.exports={style:function(t,e){e&amp;&amp;s(t,e)},styleOnSelect:function(t,e){var r=e[0].node3,n=e[0].trace;n.selectedpoints?a.selectedPointStyle(r.selectAll(&quot;.choroplethlocation&quot;),n,t):s(t,e)}}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,d3:169}],998:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../choropleth/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({locations:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},geojson:{valType:&quot;any&quot;,editType:&quot;calc&quot;},featureidkey:s({},n.featureidkey,{}),below:{valType:&quot;string&quot;,editType:&quot;plot&quot;},text:n.text,hovertext:n.hovertext,marker:{line:{color:s({},n.marker.line.color,{editType:&quot;plot&quot;}),width:s({},n.marker.line.width,{editType:&quot;plot&quot;}),editType:&quot;calc&quot;},opacity:s({},n.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;calc&quot;},selected:{marker:{opacity:s({},n.selected.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},editType:&quot;plot&quot;},unselected:{marker:{opacity:s({},n.unselected.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},editType:&quot;plot&quot;},hoverinfo:n.hoverinfo,hovertemplate:a({},{keys:[&quot;properties&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})},i(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../choropleth/attributes&quot;:989}],999:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib/geojson_utils&quot;).makeBlank,l=t(&quot;../../lib/geo_location_utils&quot;);function c(t){var e,r=t[0].trace,n=r._opts;if(r.selectedpoints){for(var a=o.makeSelectedPointStyleFns(r),s=0;s&lt;t.length;s++){var l=t[s];l.fOut&amp;&amp;(l.fOut.properties.mo2=a.selectedOpacityFn(l))}e={type:&quot;identity&quot;,property:&quot;mo2&quot;}}else e=i.isArrayOrTypedArray(r.marker.opacity)?{type:&quot;identity&quot;,property:&quot;mo&quot;}:r.marker.opacity;return i.extendFlat(n.fill.paint,{&quot;fill-opacity&quot;:e}),i.extendFlat(n.line.paint,{&quot;line-opacity&quot;:e}),n}e.exports={convert:function(t){var e=t[0].trace,r=!0===e.visible&amp;&amp;0!==e._length,o={layout:{visibility:&quot;none&quot;},paint:{}},u={layout:{visibility:&quot;none&quot;},paint:{}},f=e._opts={fill:o,line:u,geojson:s()};if(!r)return f;var h=l.extractTraceFeature(t);if(!h)return f;var p,d,g,m=a.makeColorScaleFuncFromTrace(e),v=e.marker,y=v.line||{};i.isArrayOrTypedArray(v.opacity)&amp;&amp;(p=function(t){var e=t.mo;return n(e)?+i.constrain(e,0,1):0}),i.isArrayOrTypedArray(y.color)&amp;&amp;(d=function(t){return t.mlc}),i.isArrayOrTypedArray(y.width)&amp;&amp;(g=function(t){return t.mlw});for(var x=0;x&lt;t.length;x++){var b=t[x],_=b.fOut;if(_){var w=_.properties;w.fc=m(b.z),p&amp;&amp;(w.mo=p(b)),d&amp;&amp;(w.mlc=d(b)),g&amp;&amp;(w.mlw=g(b)),b.ct=w.ct,b._polygons=l.feature2polygons(_)}}var T=p?{type:&quot;identity&quot;,property:&quot;mo&quot;}:v.opacity;return i.extendFlat(o.paint,{&quot;fill-color&quot;:{type:&quot;identity&quot;,property:&quot;fc&quot;},&quot;fill-opacity&quot;:T}),i.extendFlat(u.paint,{&quot;line-color&quot;:d?{type:&quot;identity&quot;,property:&quot;mlc&quot;}:y.color,&quot;line-width&quot;:g?{type:&quot;identity&quot;,property:&quot;mlw&quot;}:y.width,&quot;line-opacity&quot;:T}),o.layout.visibility=&quot;visible&quot;,u.layout.visibility=&quot;visible&quot;,f.geojson={type:&quot;FeatureCollection&quot;,features:h},c(t),f},convertOnSelect:c}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/geojson_utils&quot;:772,&quot;fast-isnumeric&quot;:241}],1e3:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;locations&quot;),c=s(&quot;z&quot;),u=s(&quot;geojson&quot;);n.isArrayOrTypedArray(l)&amp;&amp;l.length&amp;&amp;n.isArrayOrTypedArray(c)&amp;&amp;c.length&amp;&amp;(&quot;string&quot;==typeof u&amp;&amp;&quot;&quot;!==u||n.isPlainObject(u))?(s(&quot;featureidkey&quot;),e._length=Math.min(l.length,c.length),s(&quot;below&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;marker.line.width&quot;)&amp;&amp;s(&quot;marker.line.color&quot;),s(&quot;marker.opacity&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),n.coerceSelectionMarkerOpacity(e,s)):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:998}],1001:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;../choropleth/calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;../choropleth/hover&quot;),eventData:t(&quot;../choropleth/event_data&quot;),selectPoints:t(&quot;../choropleth/select&quot;),styleOnSelect:function(t,e){e&amp;&amp;e[0].trace._glTrace.updateOnSelect(e)},getBelow:function(t,e){for(var r=e.getMapLayers(),n=r.length-2;n&gt;=0;n--){var i=r[n].id;if(&quot;string&quot;==typeof i&amp;&amp;0===i.indexOf(&quot;water&quot;))for(var a=n+1;a&lt;r.length;a++)if(&quot;string&quot;==typeof(i=r[a].id)&amp;&amp;-1===i.indexOf(&quot;plotly-&quot;))return i}},moduleType:&quot;trace&quot;,name:&quot;choroplethmapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;noOpacity&quot;,&quot;showLegend&quot;],meta:{hr_name:&quot;choropleth_mapbox&quot;}}},{&quot;../../plots/mapbox&quot;:885,&quot;../choropleth/calc&quot;:990,&quot;../choropleth/event_data&quot;:992,&quot;../choropleth/hover&quot;:993,&quot;../choropleth/select&quot;:996,&quot;../heatmap/colorbar&quot;:1068,&quot;./attributes&quot;:998,&quot;./defaults&quot;:1e3,&quot;./plot&quot;:1002}],1002:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;).convert,i=t(&quot;./convert&quot;).convertOnSelect,a=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix;function o(t,e){this.type=&quot;choroplethmapbox&quot;,this.subplot=t,this.uid=e,this.sourceId=&quot;source-&quot;+e,this.layerList=[[&quot;fill&quot;,a+e+&quot;-fill&quot;],[&quot;line&quot;,a+e+&quot;-line&quot;]],this.below=null}var s=o.prototype;s.update=function(t){this._update(n(t))},s.updateOnSelect=function(t){this._update(i(t))},s._update=function(t){var e=this.subplot,r=this.layerList,n=e.belowLookup[&quot;trace-&quot;+this.uid];e.map.getSource(this.sourceId).setData(t.geojson),n!==this.below&amp;&amp;(this._removeLayers(),this._addLayers(t,n),this.below=n);for(var i=0;i&lt;r.length;i++){var a=r[i],o=a[0],s=a[1],l=t[o];e.setOptions(s,&quot;setLayoutProperty&quot;,l.layout),&quot;visible&quot;===l.layout.visibility&amp;&amp;e.setOptions(s,&quot;setPaintProperty&quot;,l.paint)}},s._addLayers=function(t,e){for(var r=this.subplot,n=this.layerList,i=this.sourceId,a=0;a&lt;n.length;a++){var o=n[a],s=o[0],l=t[s];r.addLayer({type:s,id:o[1],source:i,layout:l.layout,paint:l.paint},e)}},s._removeLayers=function(){for(var t=this.subplot.map,e=this.layerList,r=e.length-1;r&gt;=0;r--)t.removeLayer(e[r][1])},s.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new o(t,r.uid),a=i.sourceId,s=n(e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid];return t.map.addSource(a,{type:&quot;geojson&quot;,data:s.geojson}),i._addLayers(s,l),e[0].trace._glTrace=i,i}},{&quot;../../plots/mapbox/constants&quot;:883,&quot;./convert&quot;:999}],1003:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../mesh3d/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},u:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},v:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},w:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;absolute&quot;],editType:&quot;calc&quot;,dflt:&quot;scaled&quot;},sizeref:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0},anchor:{valType:&quot;enumerated&quot;,editType:&quot;calc&quot;,values:[&quot;tip&quot;,&quot;tail&quot;,&quot;cm&quot;,&quot;center&quot;],dflt:&quot;cm&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertemplate:i({editType:&quot;calc&quot;},{keys:[&quot;norm&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})};s(l,n(&quot;&quot;,{colorAttr:&quot;u/v/w norm&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}));[&quot;opacity&quot;,&quot;lightposition&quot;,&quot;lighting&quot;].forEach((function(t){l[t]=a[t]})),l.hoverinfo=s({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;norm&quot;,&quot;text&quot;,&quot;name&quot;],dflt:&quot;x+y+z+norm+text+name&quot;}),l.transforms=void 0,e.exports=l},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../mesh3d/attributes&quot;:1128}],1004:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){for(var r=e.u,i=e.v,a=e.w,o=Math.min(e.x.length,e.y.length,e.z.length,r.length,i.length,a.length),s=-1/0,l=1/0,c=0;c&lt;o;c++){var u=r[c],f=i[c],h=a[c],p=Math.sqrt(u*u+f*f+h*h);s=Math.max(s,p),l=Math.min(l,p)}e._len=o,e._normMax=s,n(t,e,{vals:[l,s],containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651}],1005:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-cone3d&quot;),i=t(&quot;gl-cone3d&quot;).createConeMesh,a=t(&quot;../../lib&quot;).simpleMap,o=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,s=t(&quot;../../components/colorscale&quot;).extractOpts,l=t(&quot;../../plots/gl3d/zip3&quot;);function c(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var u=c.prototype;u.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index,r=this.data.x[e],n=this.data.y[e],i=this.data.z[e],a=this.data.u[e],o=this.data.v[e],s=this.data.w[e];t.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return Array.isArray(l)&amp;&amp;void 0!==l[e]?t.textLabel=l[e]:l&amp;&amp;(t.textLabel=l),!0}};var f={xaxis:0,yaxis:1,zaxis:2},h={tip:1,tail:0,cm:.25,center:.5},p={tip:1,tail:1,cm:.75,center:.5};function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,c={};function u(t,e){var n=r[e],o=i[f[e]];return a(t,(function(t){return n.d2l(t)*o}))}c.vectors=l(u(e.u,&quot;xaxis&quot;),u(e.v,&quot;yaxis&quot;),u(e.w,&quot;zaxis&quot;),e._len),c.positions=l(u(e.x,&quot;xaxis&quot;),u(e.y,&quot;yaxis&quot;),u(e.z,&quot;zaxis&quot;),e._len);var d=s(e);c.colormap=o(e),c.vertexIntensityBounds=[d.min/e._normMax,d.max/e._normMax],c.coneOffset=h[e.anchor],&quot;scaled&quot;===e.sizemode?c.coneSize=e.sizeref||.5:c.coneSize=e.sizeref&amp;&amp;e._normMax?e.sizeref/e._normMax:.5;var g=n(c),m=e.lightposition;return g.lightPosition=[m.x,m.y,m.z],g.ambient=e.lighting.ambient,g.diffuse=e.lighting.diffuse,g.specular=e.lighting.specular,g.roughness=e.lighting.roughness,g.fresnel=e.lighting.fresnel,g.opacity=e.opacity,e._pad=p[e.anchor]*g.vectorScale*g.coneScale*e._normMax,g}u.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new c(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../plots/gl3d/zip3&quot;:881,&quot;gl-cone3d&quot;:260}],1006:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;u&quot;),c=s(&quot;v&quot;),u=s(&quot;w&quot;),f=s(&quot;x&quot;),h=s(&quot;y&quot;),p=s(&quot;z&quot;);l&amp;&amp;l.length&amp;&amp;c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length&amp;&amp;p&amp;&amp;p.length?(s(&quot;sizeref&quot;),s(&quot;sizemode&quot;),s(&quot;anchor&quot;),s(&quot;lighting.ambient&quot;),s(&quot;lighting.diffuse&quot;),s(&quot;lighting.specular&quot;),s(&quot;lighting.roughness&quot;),s(&quot;lighting.fresnel&quot;),s(&quot;lightposition.x&quot;),s(&quot;lightposition.y&quot;),s(&quot;lightposition.z&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:1003}],1007:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;cone&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;),plot:t(&quot;./convert&quot;),eventData:function(t,e){return t.norm=e.traceCoordinate[6],t},meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1003,&quot;./calc&quot;:1004,&quot;./convert&quot;:1005,&quot;./defaults&quot;:1006}],1008:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../components/drawing/attributes&quot;).dash,s=t(&quot;../../plots/font_attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=t(&quot;../../constants/filter_ops&quot;),u=c.COMPARISON_OPS2,f=c.INTERVAL_OPS,h=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,i.line);e.exports=l({z:n.z,x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,text:n.text,hovertext:n.hovertext,transpose:n.transpose,xtype:n.xtype,ytype:n.ytype,zhoverformat:n.zhoverformat,hovertemplate:n.hovertemplate,hoverongaps:n.hoverongaps,connectgaps:l({},n.connectgaps,{}),fillcolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},autocontour:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:{&quot;contours.start&quot;:void 0,&quot;contours.end&quot;:void 0,&quot;contours.size&quot;:void 0}},ncontours:{valType:&quot;integer&quot;,dflt:15,min:1,editType:&quot;calc&quot;},contours:{type:{valType:&quot;enumerated&quot;,values:[&quot;levels&quot;,&quot;constraint&quot;],dflt:&quot;levels&quot;,editType:&quot;calc&quot;},start:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},end:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},size:{valType:&quot;number&quot;,dflt:null,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},coloring:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;heatmap&quot;,&quot;lines&quot;,&quot;none&quot;],dflt:&quot;fill&quot;,editType:&quot;calc&quot;},showlines:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},showlabels:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},labelfont:s({editType:&quot;plot&quot;,colorEditType:&quot;style&quot;}),labelformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},operation:{valType:&quot;enumerated&quot;,values:[].concat(u).concat(f),dflt:&quot;=&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},editType:&quot;calc&quot;,impliedEdits:{autocontour:!1}},line:{color:l({},h.color,{editType:&quot;style+colorbars&quot;}),width:{valType:&quot;number&quot;,min:0,editType:&quot;style+colorbars&quot;},dash:o,smoothing:l({},h.smoothing,{}),editType:&quot;plot&quot;}},a(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing/attributes&quot;:664,&quot;../../constants/docs&quot;:748,&quot;../../constants/filter_ops&quot;:749,&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;../heatmap/attributes&quot;:1065,&quot;../scatter/attributes&quot;:1187}],1009:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale&quot;),i=t(&quot;../heatmap/calc&quot;),a=t(&quot;./set_contours&quot;),o=t(&quot;./end_plus&quot;);e.exports=function(t,e){var r=i(t,e),s=r[0].z;a(e,s);var l,c=e.contours,u=n.extractOpts(e);if(&quot;heatmap&quot;===c.coloring&amp;&amp;u.auto&amp;&amp;!1===e.autocontour){var f=c.start,h=o(c),p=c.size||1,d=Math.floor((h-f)/p)+1;isFinite(p)||(p=1,d=1);var g=f-p/2;l=[g,g+d*p]}else l=s;return n.calc(t,e,{vals:l,cLetter:&quot;z&quot;}),r}},{&quot;../../components/colorscale&quot;:655,&quot;../heatmap/calc&quot;:1066,&quot;./end_plus&quot;:1019,&quot;./set_contours&quot;:1027}],1010:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n=t[0],i=n.z;switch(e.type){case&quot;levels&quot;:var a=Math.min(i[0][0],i[0][1]);for(r=0;r&lt;t.length;r++){var o=t[r];o.prefixBoundary=!o.edgepaths.length&amp;&amp;(a&gt;o.level||o.starts.length&amp;&amp;a===o.level)}break;case&quot;constraint&quot;:if(n.prefixBoundary=!1,n.edgepaths.length)return;var s=n.x.length,l=n.y.length,c=-1/0,u=1/0;for(r=0;r&lt;l;r++)u=Math.min(u,i[r][0]),u=Math.min(u,i[r][s-1]),c=Math.max(c,i[r][0]),c=Math.max(c,i[r][s-1]);for(r=1;r&lt;s-1;r++)u=Math.min(u,i[0][r]),u=Math.min(u,i[l-1][r]),c=Math.max(c,i[0][r]),c=Math.max(c,i[l-1][r]);var f,h,p=e.value;switch(e._operation){case&quot;&gt;&quot;:p&gt;c&amp;&amp;(n.prefixBoundary=!0);break;case&quot;&lt;&quot;:(p&lt;u||n.starts.length&amp;&amp;p===u)&amp;&amp;(n.prefixBoundary=!0);break;case&quot;[]&quot;:f=Math.min(p[0],p[1]),((h=Math.max(p[0],p[1]))&lt;u||f&gt;c||n.starts.length&amp;&amp;h===u)&amp;&amp;(n.prefixBoundary=!0);break;case&quot;][&quot;:f=Math.min(p[0],p[1]),h=Math.max(p[0],p[1]),f&lt;u&amp;&amp;h&gt;c&amp;&amp;(n.prefixBoundary=!0)}}}},{}],1011:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale&quot;),i=t(&quot;./make_color_map&quot;),a=t(&quot;./end_plus&quot;);e.exports={min:&quot;zmin&quot;,max:&quot;zmax&quot;,calc:function(t,e,r){var o=e.contours,s=e.line,l=o.size||1,c=o.coloring,u=i(e,{isColorbar:!0});if(&quot;heatmap&quot;===c){var f=n.extractOpts(e);r._fillgradient=f.reversescale?n.flipScale(f.colorscale):f.colorscale,r._zrange=[f.min,f.max]}else&quot;fill&quot;===c&amp;&amp;(r._fillcolor=u);r._line={color:&quot;lines&quot;===c?u:s.color,width:!1!==o.showlines?s.width:0,dash:s.dash},r._levels={start:o.start,end:a(o),size:l}}}},{&quot;../../components/colorscale&quot;:655,&quot;./end_plus&quot;:1019,&quot;./make_color_map&quot;:1024}],1012:[function(t,e,r){&quot;use strict&quot;;e.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],1013:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./label_defaults&quot;),a=t(&quot;../../components/color&quot;),o=a.addOpacity,s=a.opacity,l=t(&quot;../../constants/filter_ops&quot;),c=l.CONSTRAINT_REDUCTION,u=l.COMPARISON_OPS2;e.exports=function(t,e,r,a,l,f){var h,p,d,g=e.contours,m=r(&quot;contours.operation&quot;);(g._operation=c[m],function(t,e){var r;-1===u.indexOf(e.operation)?(t(&quot;contours.value&quot;,[0,1]),Array.isArray(e.value)?e.value.length&gt;2?e.value=e.value.slice(2):0===e.length?e.value=[0,1]:e.length&lt;2?(r=parseFloat(e.value[0]),e.value=[r,r+1]):e.value=[parseFloat(e.value[0]),parseFloat(e.value[1])]:n(e.value)&amp;&amp;(r=parseFloat(e.value),e.value=[r,r+1])):(t(&quot;contours.value&quot;,0),n(e.value)||(Array.isArray(e.value)?e.value=parseFloat(e.value[0]):e.value=0))}(r,g),&quot;=&quot;===m?h=g.showlines=!0:(h=r(&quot;contours.showlines&quot;),d=r(&quot;fillcolor&quot;,o((t.line||{}).color||l,.5))),h)&amp;&amp;(p=r(&quot;line.color&quot;,d&amp;&amp;s(d)?o(e.fillcolor,1):l),r(&quot;line.width&quot;,2),r(&quot;line.dash&quot;));r(&quot;line.smoothing&quot;),i(r,a,p,f)}},{&quot;../../components/color&quot;:643,&quot;../../constants/filter_ops&quot;:749,&quot;./label_defaults&quot;:1023,&quot;fast-isnumeric&quot;:241}],1014:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/filter_ops&quot;),i=t(&quot;fast-isnumeric&quot;);function a(t,e){var r,a=Array.isArray(e);function o(t){return i(t)?+t:null}return-1!==n.COMPARISON_OPS2.indexOf(t)?r=o(a?e[0]:e):-1!==n.INTERVAL_OPS.indexOf(t)?r=a?[o(e[0]),o(e[1])]:[o(e),o(e)]:-1!==n.SET_OPS.indexOf(t)&amp;&amp;(r=a?e.map(o):[o(e)]),r}function o(t){return function(e){e=a(t,e);var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return{start:r,end:n,size:n-r}}}function s(t){return function(e){return{start:e=a(t,e),end:1/0,size:1/0}}}e.exports={&quot;[]&quot;:o(&quot;[]&quot;),&quot;][&quot;:o(&quot;][&quot;),&quot;&gt;&quot;:s(&quot;&gt;&quot;),&quot;&lt;&quot;:s(&quot;&lt;&quot;),&quot;=&quot;:s(&quot;=&quot;)}},{&quot;../../constants/filter_ops&quot;:749,&quot;fast-isnumeric&quot;:241}],1015:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i=n(&quot;contours.start&quot;),a=n(&quot;contours.end&quot;),o=!1===i||!1===a,s=r(&quot;contours.size&quot;);!(o?e.autocontour=!0:r(&quot;autocontour&quot;,!1))&amp;&amp;s||r(&quot;ncontours&quot;)}},{}],1016:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);function i(t){return n.extendFlat({},t,{edgepaths:n.extendDeep([],t.edgepaths),paths:n.extendDeep([],t.paths),starts:n.extendDeep([],t.starts)})}e.exports=function(t,e){var r,a,o,s=function(t){return t.reverse()},l=function(t){return t};switch(e){case&quot;=&quot;:case&quot;&lt;&quot;:return t;case&quot;&gt;&quot;:for(1!==t.length&amp;&amp;n.warn(&quot;Contour data invalid for the specified inequality operation.&quot;),a=t[0],r=0;r&lt;a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r&lt;a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(r=0;r&lt;a.starts.length;r++)a.starts[r]=s(a.starts[r]);return t;case&quot;][&quot;:var c=s;s=l,l=c;case&quot;[]&quot;:for(2!==t.length&amp;&amp;n.warn(&quot;Contour data invalid for the specified inequality range operation.&quot;),a=i(t[0]),o=i(t[1]),r=0;r&lt;a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r&lt;a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(r=0;r&lt;a.starts.length;r++)a.starts[r]=s(a.starts[r]);for(;o.edgepaths.length;)a.edgepaths.push(l(o.edgepaths.shift()));for(;o.paths.length;)a.paths.push(l(o.paths.shift()));for(;o.starts.length;)a.starts.push(l(o.starts.shift()));return[a]}}},{&quot;../../lib&quot;:778}],1017:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./constraint_defaults&quot;),s=t(&quot;./contours_defaults&quot;),l=t(&quot;./style_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}if(i(t,e,f,u)){a(t,e,u,f),f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;hoverongaps&quot;);var h=&quot;constraint&quot;===f(&quot;contours.type&quot;);f(&quot;connectgaps&quot;,n.isArray1D(e.z)),h?o(t,e,f,u,r):(s(t,e,f,(function(r){return n.coerce2(t,e,c,r)})),l(t,e,f,u))}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../heatmap/xyz_defaults&quot;:1079,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:1008,&quot;./constraint_defaults&quot;:1013,&quot;./contours_defaults&quot;:1015,&quot;./style_defaults&quot;:1029}],1018:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constraint_mapping&quot;),a=t(&quot;./end_plus&quot;);e.exports=function(t,e,r){for(var o=&quot;constraint&quot;===t.type?i[t._operation](t.value):t,s=o.size,l=[],c=a(o),u=r.trace._carpetTrace,f=u?{xaxis:u.aaxis,yaxis:u.baxis,x:r.a,y:r.b}:{xaxis:e.xaxis,yaxis:e.yaxis,x:r.x,y:r.y},h=o.start;h&lt;c;h+=s)if(l.push(n.extendFlat({level:h,crossings:{},starts:[],edgepaths:[],paths:[],z:r.z,smoothing:r.trace.line.smoothing},f)),l.length&gt;1e3){n.warn(&quot;Too many contours, clipping at 1000&quot;,t);break}return l}},{&quot;../../lib&quot;:778,&quot;./constraint_mapping&quot;:1014,&quot;./end_plus&quot;:1019}],1019:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t.end+t.size/1e6}},{}],1020:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constants&quot;);function a(t,e,r,n){return Math.abs(t[0]-e[0])&lt;r&amp;&amp;Math.abs(t[1]-e[1])&lt;n}function o(t,e,r,o,l){var c,u=e.join(&quot;,&quot;),f=t.crossings[u],h=function(t,e,r){var n=0,a=0;t&gt;20&amp;&amp;e?208===t||1114===t?n=0===r[0]?1:-1:a=0===r[1]?1:-1:-1!==i.BOTTOMSTART.indexOf(t)?a=1:-1!==i.LEFTSTART.indexOf(t)?n=1:-1!==i.TOPSTART.indexOf(t)?a=-1:n=-1;return[n,a]}(f,r,e),p=[s(t,e,[-h[0],-h[1]])],d=t.z.length,g=t.z[0].length,m=e.slice(),v=h.slice();for(c=0;c&lt;1e4;c++){if(f&gt;20?(f=i.CHOOSESADDLE[f][(h[0]||h[1])&lt;0?0:1],t.crossings[u]=i.SADDLEREMAINDER[f]):delete t.crossings[u],!(h=i.NEWDELTA[f])){n.log(&quot;Found bad marching index:&quot;,f,e,t.level);break}p.push(s(t,e,h)),e[0]+=h[0],e[1]+=h[1],u=e.join(&quot;,&quot;),a(p[p.length-1],p[p.length-2],o,l)&amp;&amp;p.pop();var y=h[0]&amp;&amp;(e[0]&lt;0||e[0]&gt;g-2)||h[1]&amp;&amp;(e[1]&lt;0||e[1]&gt;d-2);if(e[0]===m[0]&amp;&amp;e[1]===m[1]&amp;&amp;h[0]===v[0]&amp;&amp;h[1]===v[1]||r&amp;&amp;y)break;f=t.crossings[u]}1e4===c&amp;&amp;n.log(&quot;Infinite loop in contour?&quot;);var x,b,_,w,T,k,M,A,S,E,C,L,I,P,z,O=a(p[0],p[p.length-1],o,l),D=0,R=.2*t.smoothing,F=[],B=0;for(c=1;c&lt;p.length;c++)L=p[c],I=p[c-1],P=void 0,z=void 0,P=L[2]-I[2],z=L[3]-I[3],D+=M=Math.sqrt(P*P+z*z),F.push(M);var N=D/F.length*R;function j(t){return p[t%p.length]}for(c=p.length-2;c&gt;=B;c--)if((x=F[c])&lt;N){for(_=0,b=c-1;b&gt;=B&amp;&amp;x+F[b]&lt;N;b--)x+=F[b];if(O&amp;&amp;c===p.length-2)for(_=0;_&lt;b&amp;&amp;x+F[_]&lt;N;_++)x+=F[_];T=c-b+_+1,k=Math.floor((c+b+_+2)/2),w=O||c!==p.length-2?O||-1!==b?T%2?j(k):[(j(k)[0]+j(k+1)[0])/2,(j(k)[1]+j(k+1)[1])/2]:p[0]:p[p.length-1],p.splice(b+1,c-b+1,w),c=b+1,_&amp;&amp;(B=_),O&amp;&amp;(c===p.length-2?p[_]=p[p.length-1]:0===c&amp;&amp;(p[p.length-1]=p[0]))}for(p.splice(0,B),c=0;c&lt;p.length;c++)p[c].length=2;if(!(p.length&lt;2))if(O)p.pop(),t.paths.push(p);else{r||n.log(&quot;Unclosed interior contour?&quot;,t.level,m.join(&quot;,&quot;),p.join(&quot;L&quot;));var U=!1;for(A=0;A&lt;t.edgepaths.length;A++)if(E=t.edgepaths[A],!U&amp;&amp;a(E[0],p[p.length-1],o,l)){p.pop(),U=!0;var V=!1;for(S=0;S&lt;t.edgepaths.length;S++)if(a((C=t.edgepaths[S])[C.length-1],p[0],o,l)){V=!0,p.shift(),t.edgepaths.splice(A,1),S===A?t.paths.push(p.concat(C)):(S&gt;A&amp;&amp;S--,t.edgepaths[S]=C.concat(p,E));break}V||(t.edgepaths[A]=p.concat(E))}for(A=0;A&lt;t.edgepaths.length&amp;&amp;!U;A++)a((E=t.edgepaths[A])[E.length-1],p[0],o,l)&amp;&amp;(p.shift(),t.edgepaths[A]=E.concat(p),U=!0);U||t.edgepaths.push(p)}}function s(t,e,r){var n=e[0]+Math.max(r[0],0),i=e[1]+Math.max(r[1],0),a=t.z[i][n],o=t.xaxis,s=t.yaxis;if(r[1]){var l=(t.level-a)/(t.z[i][n+1]-a);return[o.c2p((1-l)*t.x[n]+l*t.x[n+1],!0),s.c2p(t.y[i],!0),n+l,i]}var c=(t.level-a)/(t.z[i+1][n]-a);return[o.c2p(t.x[n],!0),s.c2p((1-c)*t.y[i]+c*t.y[i+1],!0),n,i+c]}e.exports=function(t,e,r){var i,a,s,l;for(e=e||.01,r=r||.01,a=0;a&lt;t.length;a++){for(s=t[a],l=0;l&lt;s.starts.length;l++)o(s,s.starts[l],&quot;edge&quot;,e,r);for(i=0;Object.keys(s.crossings).length&amp;&amp;i&lt;1e4;)i++,o(s,Object.keys(s.crossings)[0].split(&quot;,&quot;).map(Number),void 0,e,r);1e4===i&amp;&amp;n.log(&quot;Infinite loop in contour?&quot;)}}},{&quot;../../lib&quot;:778,&quot;./constants&quot;:1012}],1021:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../heatmap/hover&quot;);e.exports=function(t,e,r,a,o){var s=i(t,e,r,a,o,!0);return s&amp;&amp;s.forEach((function(t){var e=t.trace;&quot;constraint&quot;===e.contours.type&amp;&amp;(e.fillcolor&amp;&amp;n.opacity(e.fillcolor)?t.color=n.addOpacity(e.fillcolor,1):e.contours.showlines&amp;&amp;n.opacity(e.line.color)&amp;&amp;(t.color=n.addOpacity(e.line.color,1)))})),s}},{&quot;../../components/color&quot;:643,&quot;../heatmap/hover&quot;:1072}],1022:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),colorbar:t(&quot;./colorbar&quot;),hoverPoints:t(&quot;./hover&quot;),moduleType:&quot;trace&quot;,name:&quot;contour&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;contour&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1008,&quot;./calc&quot;:1009,&quot;./colorbar&quot;:1011,&quot;./defaults&quot;:1017,&quot;./hover&quot;:1021,&quot;./plot&quot;:1026,&quot;./style&quot;:1028}],1023:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r,i){if(i||(i={}),t(&quot;contours.showlabels&quot;)){var a=e.font;n.coerceFont(t,&quot;contours.labelfont&quot;,{family:a.family,size:a.size,color:r}),t(&quot;contours.labelformat&quot;)}!1!==i.hasHover&amp;&amp;t(&quot;zhoverformat&quot;)}},{&quot;../../lib&quot;:778}],1024:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/colorscale&quot;),a=t(&quot;./end_plus&quot;);e.exports=function(t){var e=t.contours,r=e.start,o=a(e),s=e.size||1,l=Math.floor((o-r)/s)+1,c=&quot;lines&quot;===e.coloring?0:1,u=i.extractOpts(t);isFinite(s)||(s=1,l=1);var f,h,p=u.reversescale?i.flipScale(u.colorscale):u.colorscale,d=p.length,g=new Array(d),m=new Array(d);if(&quot;heatmap&quot;===e.coloring){var v=u.min,y=u.max;for(h=0;h&lt;d;h++)f=p[h],g[h]=f[0]*(y-v)+v,m[h]=f[1];var x=n.extent([v,y,e.start,e.start+s*(l-1)]),b=x[v&lt;y?0:1],_=x[v&lt;y?1:0];b!==v&amp;&amp;(g.splice(0,0,b),m.splice(0,0,m[0])),_!==y&amp;&amp;(g.push(_),m.push(m[m.length-1]))}else for(h=0;h&lt;d;h++)f=p[h],g[h]=(f[0]*(l+c-1)-c/2)*s+r,m[h]=f[1];return i.makeColorScaleFunc({domain:g,range:m},{noNumericCheck:!0})}},{&quot;../../components/colorscale&quot;:655,&quot;./end_plus&quot;:1019,d3:169}],1025:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);function i(t,e){var r=(e[0][0]&gt;t?0:1)+(e[0][1]&gt;t?0:2)+(e[1][1]&gt;t?0:4)+(e[1][0]&gt;t?0:8);return 5===r||10===r?t&gt;(e[0][0]+e[0][1]+e[1][0]+e[1][1])/4?5===r?713:1114:5===r?104:208:15===r?0:r}e.exports=function(t){var e,r,a,o,s,l,c,u,f,h=t[0].z,p=h.length,d=h[0].length,g=2===p||2===d;for(r=0;r&lt;p-1;r++)for(o=[],0===r&amp;&amp;(o=o.concat(n.BOTTOMSTART)),r===p-2&amp;&amp;(o=o.concat(n.TOPSTART)),e=0;e&lt;d-1;e++)for(a=o.slice(),0===e&amp;&amp;(a=a.concat(n.LEFTSTART)),e===d-2&amp;&amp;(a=a.concat(n.RIGHTSTART)),s=e+&quot;,&quot;+r,l=[[h[r][e],h[r][e+1]],[h[r+1][e],h[r+1][e+1]]],f=0;f&lt;t.length;f++)(c=i((u=t[f]).level,l))&amp;&amp;(u.crossings[s]=c,-1!==a.indexOf(c)&amp;&amp;(u.starts.push([e,r]),g&amp;&amp;-1!==a.indexOf(c,a.indexOf(c)+1)&amp;&amp;u.starts.push([e,r])))}},{&quot;./constants&quot;:1012}],1026:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../components/colorscale&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;../../plots/cartesian/set_convert&quot;),u=t(&quot;../heatmap/plot&quot;),f=t(&quot;./make_crossings&quot;),h=t(&quot;./find_all_paths&quot;),p=t(&quot;./empty_pathinfo&quot;),d=t(&quot;./convert_to_constraints&quot;),g=t(&quot;./close_boundaries&quot;),m=t(&quot;./constants&quot;),v=m.LABELOPTIMIZER;function y(t,e){var r,n,o,s,l,c,u,f=&quot;&quot;,h=0,p=t.edgepaths.map((function(t,e){return e})),d=!0;function g(t){return Math.abs(t[1]-e[2][1])&lt;.01}function m(t){return Math.abs(t[0]-e[0][0])&lt;.01}function v(t){return Math.abs(t[0]-e[2][0])&lt;.01}for(;p.length;){for(c=a.smoothopen(t.edgepaths[h],t.smoothing),f+=d?c:c.replace(/^M/,&quot;L&quot;),p.splice(p.indexOf(h),1),r=t.edgepaths[h][t.edgepaths[h].length-1],s=-1,o=0;o&lt;4;o++){if(!r){i.log(&quot;Missing end?&quot;,h,t);break}for(u=r,Math.abs(u[1]-e[0][1])&lt;.01&amp;&amp;!v(r)?n=e[1]:m(r)?n=e[0]:g(r)?n=e[3]:v(r)&amp;&amp;(n=e[2]),l=0;l&lt;t.edgepaths.length;l++){var y=t.edgepaths[l][0];Math.abs(r[0]-n[0])&lt;.01?Math.abs(r[0]-y[0])&lt;.01&amp;&amp;(y[1]-r[1])*(n[1]-y[1])&gt;=0&amp;&amp;(n=y,s=l):Math.abs(r[1]-n[1])&lt;.01?Math.abs(r[1]-y[1])&lt;.01&amp;&amp;(y[0]-r[0])*(n[0]-y[0])&gt;=0&amp;&amp;(n=y,s=l):i.log(&quot;endpt to newendpt is not vert. or horz.&quot;,r,n,y)}if(r=n,s&gt;=0)break;f+=&quot;L&quot;+n}if(s===t.edgepaths.length){i.log(&quot;unclosed perimeter path&quot;);break}h=s,(d=-1===p.indexOf(h))&amp;&amp;(h=p[0],f+=&quot;Z&quot;)}for(h=0;h&lt;t.paths.length;h++)f+=a.smoothclosed(t.paths[h],t.smoothing);return f}function x(t,e,r,n){var a=e.width/2,o=e.height/2,s=t.x,l=t.y,c=t.theta,u=Math.cos(c)*a,f=Math.sin(c)*a,h=(s&gt;n.center?n.right-s:s-n.left)/(u+Math.abs(Math.sin(c)*o)),p=(l&gt;n.middle?n.bottom-l:l-n.top)/(Math.abs(f)+Math.cos(c)*o);if(h&lt;1||p&lt;1)return 1/0;var d=v.EDGECOST*(1/(h-1)+1/(p-1));d+=v.ANGLECOST*c*c;for(var g=s-u,m=l-f,y=s+u,x=l+f,b=0;b&lt;r.length;b++){var _=r[b],w=Math.cos(_.theta)*_.width/2,T=Math.sin(_.theta)*_.width/2,k=2*i.segmentDistance(g,m,y,x,_.x-w,_.y-T,_.x+w,_.y+T)/(e.height+_.height),M=_.level===e.level,A=M?v.SAMELEVELDISTANCE:1;if(k&lt;=A)return 1/0;d+=v.NEIGHBORCOST*(M?v.SAMELEVELFACTOR:1)/(k-A)}return d}function b(t){var e,r,n=t.trace._emptypoints,i=[],a=t.z.length,o=t.z[0].length,s=[];for(e=0;e&lt;o;e++)s.push(1);for(e=0;e&lt;a;e++)i.push(s.slice());for(e=0;e&lt;n.length;e++)i[(r=n[e])[0]][r[1]]=0;return t.zmask=i,i}r.plot=function(t,e,o,s){var l=e.xaxis,c=e.yaxis;i.makeTraceGroups(s,o,&quot;contour&quot;).each((function(o){var s=n.select(this),v=o[0],x=v.trace,_=v.x,w=v.y,T=x.contours,k=p(T,e,v),M=i.ensureSingle(s,&quot;g&quot;,&quot;heatmapcoloring&quot;),A=[];&quot;heatmap&quot;===T.coloring&amp;&amp;(A=[o]),u(t,e,A,M),f(k),h(k);var S=l.c2p(_[0],!0),E=l.c2p(_[_.length-1],!0),C=c.c2p(w[0],!0),L=c.c2p(w[w.length-1],!0),I=[[S,L],[E,L],[E,C],[S,C]],P=k;&quot;constraint&quot;===T.type&amp;&amp;(P=d(k,T._operation)),function(t,e,r){var n=i.ensureSingle(t,&quot;g&quot;,&quot;contourbg&quot;).selectAll(&quot;path&quot;).data(&quot;fill&quot;===r.coloring?[0]:[]);n.enter().append(&quot;path&quot;),n.exit().remove(),n.attr(&quot;d&quot;,&quot;M&quot;+e.join(&quot;L&quot;)+&quot;Z&quot;).style(&quot;stroke&quot;,&quot;none&quot;)}(s,I,T),function(t,e,r,a){var o=&quot;fill&quot;===a.coloring||&quot;constraint&quot;===a.type&amp;&amp;&quot;=&quot;!==a._operation,s=&quot;M&quot;+r.join(&quot;L&quot;)+&quot;Z&quot;;o&amp;&amp;g(e,a);var l=i.ensureSingle(t,&quot;g&quot;,&quot;contourfill&quot;).selectAll(&quot;path&quot;).data(o?e:[]);l.enter().append(&quot;path&quot;),l.exit().remove(),l.each((function(t){var e=(t.prefixBoundary?s:&quot;&quot;)+y(t,r);e?n.select(this).attr(&quot;d&quot;,e).style(&quot;stroke&quot;,&quot;none&quot;):n.select(this).remove()}))}(s,P,I,T),function(t,e,o,s,l){var c=i.ensureSingle(t,&quot;g&quot;,&quot;contourlines&quot;),u=!1!==l.showlines,f=l.showlabels,h=u&amp;&amp;f,p=r.createLines(c,u||f,e),d=r.createLineClip(c,h,o,s.trace.uid),g=t.selectAll(&quot;g.contourlabels&quot;).data(f?[0]:[]);if(g.exit().remove(),g.enter().append(&quot;g&quot;).classed(&quot;contourlabels&quot;,!0),f){var v=[],y=[];i.clearLocationCache();var x=r.labelFormatter(o,s),b=a.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).call(a.font,l.labelfont),_=e[0].xaxis,w=e[0].yaxis,T=_._length,k=w._length,M=_.range,A=w.range,S=i.aggNums(Math.min,null,s.x),E=i.aggNums(Math.max,null,s.x),C=i.aggNums(Math.min,null,s.y),L=i.aggNums(Math.max,null,s.y),I=Math.max(_.c2p(S,!0),0),P=Math.min(_.c2p(E,!0),T),z=Math.max(w.c2p(L,!0),0),O=Math.min(w.c2p(C,!0),k),D={};M[0]&lt;M[1]?(D.left=I,D.right=P):(D.left=P,D.right=I),A[0]&lt;A[1]?(D.top=z,D.bottom=O):(D.top=O,D.bottom=z),D.middle=(D.top+D.bottom)/2,D.center=(D.left+D.right)/2,v.push([[D.left,D.top],[D.right,D.top],[D.right,D.bottom],[D.left,D.bottom]]);var R=Math.sqrt(T*T+k*k),F=m.LABELDISTANCE*R/Math.max(1,e.length/m.LABELINCREASE);p.each((function(t){var e=r.calcTextOpts(t.level,x,b,o);n.select(this).selectAll(&quot;path&quot;).each((function(){var t=i.getVisibleSegment(this,D,e.height/2);if(t&amp;&amp;!(t.len&lt;(e.width+e.height)*m.LABELMIN))for(var n=Math.min(Math.ceil(t.len/F),m.LABELMAX),a=0;a&lt;n;a++){var o=r.findBestTextLocation(this,t,e,y,D);if(!o)break;r.addLabelData(o,e,y,v)}}))})),b.remove(),r.drawLabels(g,y,o,d,h?v:null)}f&amp;&amp;!u&amp;&amp;p.remove()}(s,k,t,v,T),function(t,e,r,n,o){var s=n.trace,l=r._fullLayout._clips,c=&quot;clip&quot;+s.uid,u=l.selectAll(&quot;#&quot;+c).data(s.connectgaps?[]:[0]);if(u.enter().append(&quot;clipPath&quot;).classed(&quot;contourclip&quot;,!0).attr(&quot;id&quot;,c),u.exit().remove(),!1===s.connectgaps){var p={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:e.xaxis,yaxis:e.yaxis,x:n.x,y:n.y,z:b(n),smoothing:0};f([p]),h([p]),g([p],{type:&quot;levels&quot;}),i.ensureSingle(u,&quot;path&quot;,&quot;&quot;).attr(&quot;d&quot;,(p.prefixBoundary?&quot;M&quot;+o.join(&quot;L&quot;)+&quot;Z&quot;:&quot;&quot;)+y(p,o))}else c=null;a.setClipUrl(t,c,r)}(s,e,t,v,I)}))},r.createLines=function(t,e,r){var n=r[0].smoothing,i=t.selectAll(&quot;g.contourlevel&quot;).data(e?r:[]);if(i.exit().remove(),i.enter().append(&quot;g&quot;).classed(&quot;contourlevel&quot;,!0),e){var o=i.selectAll(&quot;path.openline&quot;).data((function(t){return t.pedgepaths||t.edgepaths}));o.exit().remove(),o.enter().append(&quot;path&quot;).classed(&quot;openline&quot;,!0),o.attr(&quot;d&quot;,(function(t){return a.smoothopen(t,n)})).style(&quot;stroke-miterlimit&quot;,1).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;);var s=i.selectAll(&quot;path.closedline&quot;).data((function(t){return t.ppaths||t.paths}));s.exit().remove(),s.enter().append(&quot;path&quot;).classed(&quot;closedline&quot;,!0),s.attr(&quot;d&quot;,(function(t){return a.smoothclosed(t,n)})).style(&quot;stroke-miterlimit&quot;,1).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;)}return i},r.createLineClip=function(t,e,r,n){var i=e?&quot;clipline&quot;+n:null,o=r._fullLayout._clips.selectAll(&quot;#&quot;+i).data(e?[0]:[]);return o.exit().remove(),o.enter().append(&quot;clipPath&quot;).classed(&quot;contourlineclip&quot;,!0).attr(&quot;id&quot;,i),a.setClipUrl(t,i,r),o},r.labelFormatter=function(t,e){var r=t._fullLayout,n=e.trace,i=n.contours,a={type:&quot;linear&quot;,_id:&quot;ycontour&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;};if(i.labelformat)a.tickformat=i.labelformat,c(a,r);else{var s=o.extractOpts(n);if(s&amp;&amp;s.colorbar&amp;&amp;s.colorbar._axis)a=s.colorbar._axis;else{if(&quot;constraint&quot;===i.type){var u=i.value;Array.isArray(u)?a.range=[u[0],u[u.length-1]]:a.range=[u,u]}else a.range=[i.start,i.end],a.nticks=(i.end-i.start)/i.size;a.range[0]===a.range[1]&amp;&amp;(a.range[1]+=a.range[0]||1),a.nticks||(a.nticks=1e3),c(a,r),l.prepTicks(a),a._tmin=null,a._tmax=null}}return function(t){return l.tickText(a,t).text}},r.calcTextOpts=function(t,e,r,n){var i=e(t);r.text(i).call(s.convertToTspans,n);var o=r.node(),l=a.bBox(o,!0);return{text:i,width:l.width,height:l.height,fontSize:+o.style[&quot;font-size&quot;].replace(&quot;px&quot;,&quot;&quot;),level:t,dy:(l.top+l.bottom)/2}},r.findBestTextLocation=function(t,e,r,n,a){var o,s,l,c,u,f=r.width;e.isClosed?(s=e.len/v.INITIALSEARCHPOINTS,o=e.min+s/2,l=e.max):(s=(e.len-f)/(v.INITIALSEARCHPOINTS+1),o=e.min+s+f/2,l=e.max-(s+f)/2);for(var h=1/0,p=0;p&lt;v.ITERATIONS;p++){for(var d=o;d&lt;l;d+=s){var g=i.getTextLocation(t,e.total,d,f),m=x(g,r,n,a);m&lt;h&amp;&amp;(h=m,u=g,c=d)}if(h&gt;2*v.MAXCOST)break;p&amp;&amp;(s/=2),l=(o=c-s/2)+1.5*s}if(h&lt;=v.MAXCOST)return u},r.addLabelData=function(t,e,r,n){var i=e.fontSize,a=e.width+i/3,o=Math.max(0,e.height-i/3),s=t.x,l=t.y,c=t.theta,u=Math.sin(c),f=Math.cos(c),h=function(t,e){return[s+t*f-e*u,l+t*u+e*f]},p=[h(-a/2,-o/2),h(-a/2,o/2),h(a/2,o/2),h(a/2,-o/2)];r.push({text:e.text,x:s,y:l,dy:e.dy,theta:c,level:e.level,width:a,height:o}),n.push(p)},r.drawLabels=function(t,e,r,a,o){var l=t.selectAll(&quot;text&quot;).data(e,(function(t){return t.text+&quot;,&quot;+t.x+&quot;,&quot;+t.y+&quot;,&quot;+t.theta}));if(l.exit().remove(),l.enter().append(&quot;text&quot;).attr({&quot;data-notex&quot;:1,&quot;text-anchor&quot;:&quot;middle&quot;}).each((function(t){var e=t.x+Math.sin(t.theta)*t.dy,i=t.y-Math.cos(t.theta)*t.dy;n.select(this).text(t.text).attr({x:e,y:i,transform:&quot;rotate(&quot;+180*t.theta/Math.PI+&quot; &quot;+e+&quot; &quot;+i+&quot;)&quot;}).call(s.convertToTspans,r)})),o){for(var c=&quot;&quot;,u=0;u&lt;o.length;u++)c+=&quot;M&quot;+o[u].join(&quot;L&quot;)+&quot;Z&quot;;i.ensureSingle(a,&quot;path&quot;,&quot;&quot;).attr(&quot;d&quot;,c)}}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/set_convert&quot;:848,&quot;../heatmap/plot&quot;:1076,&quot;./close_boundaries&quot;:1010,&quot;./constants&quot;:1012,&quot;./convert_to_constraints&quot;:1016,&quot;./empty_pathinfo&quot;:1018,&quot;./find_all_paths&quot;:1020,&quot;./make_crossings&quot;:1025,d3:169}],1027:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;);function a(t,e,r){var i={type:&quot;linear&quot;,range:[t,e]};return n.autoTicks(i,(e-t)/(r||15)),i}e.exports=function(t,e){var r=t.contours;if(t.autocontour){var o=t.zmin,s=t.zmax;(t.zauto||void 0===o)&amp;&amp;(o=i.aggNums(Math.min,null,e)),(t.zauto||void 0===s)&amp;&amp;(s=i.aggNums(Math.max,null,e));var l=a(o,s,t.ncontours);r.size=l.dtick,r.start=n.tickFirst(l),l.range.reverse(),r.end=n.tickFirst(l),r.start===o&amp;&amp;(r.start+=r.size),r.end===s&amp;&amp;(r.end-=r.size),r.start&gt;r.end&amp;&amp;(r.start=r.end=(r.start+r.end)/2),t._input.contours||(t._input.contours={}),i.extendFlat(t._input.contours,{start:r.start,end:r.end,size:r.size}),t._input.autocontour=!0}else if(&quot;constraint&quot;!==r.type){var c,u=r.start,f=r.end,h=t._input.contours;if(u&gt;f&amp;&amp;(r.start=h.start=f,f=r.end=h.end=u,u=r.start),!(r.size&gt;0))c=u===f?1:a(u,f,t.ncontours).dtick,h.size=r.size=c}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1028:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../heatmap/style&quot;),o=t(&quot;./make_color_map&quot;);e.exports=function(t){var e=n.select(t).selectAll(&quot;g.contour&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.each((function(t){var e=n.select(this),r=t[0].trace,a=r.contours,s=r.line,l=a.size||1,c=a.start,u=&quot;constraint&quot;===a.type,f=!u&amp;&amp;&quot;lines&quot;===a.coloring,h=!u&amp;&amp;&quot;fill&quot;===a.coloring,p=f||h?o(r):null;e.selectAll(&quot;g.contourlevel&quot;).each((function(t){n.select(this).selectAll(&quot;path&quot;).call(i.lineGroupStyle,s.width,f?p(t.level):s.color,s.dash)}));var d=a.labelfont;if(e.selectAll(&quot;g.contourlabels text&quot;).each((function(t){i.font(n.select(this),{family:d.family,size:d.size,color:d.color||(f?p(t.level):s.color)})})),u)e.selectAll(&quot;g.contourfill path&quot;).style(&quot;fill&quot;,r.fillcolor);else if(h){var g;e.selectAll(&quot;g.contourfill path&quot;).style(&quot;fill&quot;,(function(t){return void 0===g&amp;&amp;(g=t.level),p(t.level+.5*l)})),void 0===g&amp;&amp;(g=c),e.selectAll(&quot;g.contourbg path&quot;).style(&quot;fill&quot;,p(g-.5*l))}})),a(t)}},{&quot;../../components/drawing&quot;:665,&quot;../heatmap/style&quot;:1077,&quot;./make_color_map&quot;:1024,d3:169}],1029:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/defaults&quot;),i=t(&quot;./label_defaults&quot;);e.exports=function(t,e,r,a,o){var s,l=r(&quot;contours.coloring&quot;),c=&quot;&quot;;&quot;fill&quot;===l&amp;&amp;(s=r(&quot;contours.showlines&quot;)),!1!==s&amp;&amp;(&quot;lines&quot;!==l&amp;&amp;(c=r(&quot;line.color&quot;,&quot;#000&quot;)),r(&quot;line.width&quot;,.5),r(&quot;line.dash&quot;)),&quot;none&quot;!==l&amp;&amp;(!0!==t.showlegend&amp;&amp;(e.showlegend=!1),e._dfltShowLegend=!1,n(t,e,a,r,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})),r(&quot;line.smoothing&quot;),i(r,a,c,o)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;./label_defaults&quot;:1023}],1030:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../contour/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat,s=i.contours;e.exports=o({carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},z:n.z,a:n.x,a0:n.x0,da:n.dx,b:n.y,b0:n.y0,db:n.dy,text:n.text,hovertext:n.hovertext,transpose:n.transpose,atype:n.xtype,btype:n.ytype,fillcolor:i.fillcolor,autocontour:i.autocontour,ncontours:i.ncontours,contours:{type:s.type,start:s.start,end:s.end,size:s.size,coloring:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;lines&quot;,&quot;none&quot;],dflt:&quot;fill&quot;,editType:&quot;calc&quot;},showlines:s.showlines,showlabels:s.showlabels,labelfont:s.labelfont,labelformat:s.labelformat,operation:s.operation,value:s.value,editType:&quot;calc&quot;,impliedEdits:{autocontour:!1}},line:{color:i.line.color,width:i.line.width,dash:i.line.dash,smoothing:i.line.smoothing,editType:&quot;plot&quot;},transforms:void 0},a(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../contour/attributes&quot;:1008,&quot;../heatmap/attributes&quot;:1065}],1031:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../heatmap/convert_column_xyz&quot;),o=t(&quot;../heatmap/clean_2d_array&quot;),s=t(&quot;../heatmap/interp2d&quot;),l=t(&quot;../heatmap/find_empties&quot;),c=t(&quot;../heatmap/make_bound_array&quot;),u=t(&quot;./defaults&quot;),f=t(&quot;../carpet/lookup_carpetid&quot;),h=t(&quot;../contour/set_contours&quot;);e.exports=function(t,e){var r=e._carpetTrace=f(t,e);if(r&amp;&amp;r.visible&amp;&amp;&quot;legendonly&quot;!==r.visible){if(!e.a||!e.b){var p=t.data[r.index],d=t.data[e.index];d.a||(d.a=p.a),d.b||(d.b=p.b),u(d,e,e._defaultColor,t._fullLayout)}var g=function(t,e){var r,u,f,h,p,d,g,m=e._carpetTrace,v=m.aaxis,y=m.baxis;v._minDtick=0,y._minDtick=0,i.isArray1D(e.z)&amp;&amp;a(e,v,y,&quot;a&quot;,&quot;b&quot;,[&quot;z&quot;]);r=e._a=e._a||e.a,h=e._b=e._b||e.b,r=r?v.makeCalcdata(e,&quot;_a&quot;):[],h=h?y.makeCalcdata(e,&quot;_b&quot;):[],u=e.a0||0,f=e.da||1,p=e.b0||0,d=e.db||1,g=e._z=o(e._z||e.z,e.transpose),e._emptypoints=l(g),s(g,e._emptypoints);var x=i.maxRowLength(g),b=&quot;scaled&quot;===e.xtype?&quot;&quot;:r,_=c(e,b,u,f,x,v),w=&quot;scaled&quot;===e.ytype?&quot;&quot;:h,T=c(e,w,p,d,g.length,y),k={a:_,b:T,z:g};&quot;levels&quot;===e.contours.type&amp;&amp;&quot;none&quot;!==e.contours.coloring&amp;&amp;n(t,e,{vals:g,containerStr:&quot;&quot;,cLetter:&quot;z&quot;});return[k]}(t,e);return h(e,e._z),g}}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../lib&quot;:778,&quot;../carpet/lookup_carpetid&quot;:981,&quot;../contour/set_contours&quot;:1027,&quot;../heatmap/clean_2d_array&quot;:1067,&quot;../heatmap/convert_column_xyz&quot;:1069,&quot;../heatmap/find_empties&quot;:1071,&quot;../heatmap/interp2d&quot;:1074,&quot;../heatmap/make_bound_array&quot;:1075,&quot;./defaults&quot;:1032}],1032:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../contour/constraint_defaults&quot;),s=t(&quot;../contour/contours_defaults&quot;),l=t(&quot;../contour/style_defaults&quot;);e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,a,r,i)}if(u(&quot;carpet&quot;),t.a&amp;&amp;t.b){if(!i(t,e,u,c,&quot;a&quot;,&quot;b&quot;))return void(e.visible=!1);u(&quot;text&quot;),&quot;constraint&quot;===u(&quot;contours.type&quot;)?o(t,e,u,c,r,{hasHover:!1}):(s(t,e,u,(function(r){return n.coerce2(t,e,a,r)})),l(t,e,u,c,{hasHover:!1}))}else e._defaultColor=r,e._length=null}},{&quot;../../lib&quot;:778,&quot;../contour/constraint_defaults&quot;:1013,&quot;../contour/contours_defaults&quot;:1015,&quot;../contour/style_defaults&quot;:1029,&quot;../heatmap/xyz_defaults&quot;:1079,&quot;./attributes&quot;:1030}],1033:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../contour/colorbar&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../contour/style&quot;),moduleType:&quot;trace&quot;,name:&quot;contourcarpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;carpet&quot;,&quot;contour&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;hasLines&quot;,&quot;carpetDependent&quot;,&quot;noHover&quot;,&quot;noSortingByValue&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../contour/colorbar&quot;:1011,&quot;../contour/style&quot;:1028,&quot;./attributes&quot;:1030,&quot;./calc&quot;:1031,&quot;./defaults&quot;:1032,&quot;./plot&quot;:1034}],1034:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../carpet/map_1d_array&quot;),a=t(&quot;../carpet/makepath&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../contour/make_crossings&quot;),c=t(&quot;../contour/find_all_paths&quot;),u=t(&quot;../contour/plot&quot;),f=t(&quot;../contour/constants&quot;),h=t(&quot;../contour/convert_to_constraints&quot;),p=t(&quot;../contour/empty_pathinfo&quot;),d=t(&quot;../contour/close_boundaries&quot;),g=t(&quot;../carpet/lookup_carpetid&quot;),m=t(&quot;../carpet/axis_aligned_line&quot;);function v(t,e,r){var n=t.getPointAtLength(e),i=t.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function y(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}function x(t,e){var r=Math.abs(t[0]*e[0]+t[1]*e[1]);return Math.sqrt(1-r*r)/r}e.exports=function(t,e,r,b){var _=e.xaxis,w=e.yaxis;s.makeTraceGroups(b,r,&quot;contour&quot;).each((function(r){var b=n.select(this),T=r[0],k=T.trace,M=k._carpetTrace=g(t,k),A=t.calcdata[M.index][0];if(M.visible&amp;&amp;&quot;legendonly&quot;!==M.visible){var S=T.a,E=T.b,C=k.contours,L=p(C,e,T),I=&quot;constraint&quot;===C.type,P=C._operation,z=I?&quot;=&quot;===P?&quot;lines&quot;:&quot;fill&quot;:C.coloring,O=[[S[0],E[E.length-1]],[S[S.length-1],E[E.length-1]],[S[S.length-1],E[0]],[S[0],E[0]]];l(L);var D=1e-8*(S[S.length-1]-S[0]),R=1e-8*(E[E.length-1]-E[0]);c(L,D,R);var F,B,N,j,U=L;&quot;constraint&quot;===C.type&amp;&amp;(U=h(L,P)),function(t,e){var r,n,i,a,o,s,l,c,u;for(r=0;r&lt;t.length;r++){for(a=t[r],o=a.pedgepaths=[],s=a.ppaths=[],n=0;n&lt;a.edgepaths.length;n++){for(u=a.edgepaths[n],l=[],i=0;i&lt;u.length;i++)l[i]=e(u[i]);o.push(l)}for(n=0;n&lt;a.paths.length;n++){for(u=a.paths[n],c=[],i=0;i&lt;u.length;i++)c[i]=e(u[i]);s.push(c)}}}(L,H);var V=[];for(j=A.clipsegments.length-1;j&gt;=0;j--)F=A.clipsegments[j],B=i([],F.x,_.c2p),N=i([],F.y,w.c2p),B.reverse(),N.reverse(),V.push(a(B,N,F.bicubic));var q=&quot;M&quot;+V.join(&quot;L&quot;)+&quot;Z&quot;;!function(t,e,r,n,o,l){var c,u,f,h,p=s.ensureSingle(t,&quot;g&quot;,&quot;contourbg&quot;).selectAll(&quot;path&quot;).data(&quot;fill&quot;!==l||o?[]:[0]);p.enter().append(&quot;path&quot;),p.exit().remove();var d=[];for(h=0;h&lt;e.length;h++)c=e[h],u=i([],c.x,r.c2p),f=i([],c.y,n.c2p),d.push(a(u,f,c.bicubic));p.attr(&quot;d&quot;,&quot;M&quot;+d.join(&quot;L&quot;)+&quot;Z&quot;).style(&quot;stroke&quot;,&quot;none&quot;)}(b,A.clipsegments,_,w,I,z),function(t,e,r,i,a,l,c,u,f,h,p){var g=&quot;fill&quot;===h;g&amp;&amp;d(a,t.contours);var v=s.ensureSingle(e,&quot;g&quot;,&quot;contourfill&quot;).selectAll(&quot;path&quot;).data(g?a:[]);v.enter().append(&quot;path&quot;),v.exit().remove(),v.each((function(t){var e=(t.prefixBoundary?p:&quot;&quot;)+function(t,e,r,n,i,a,l,c){var u,f,h,p,d,g,v,y=&quot;&quot;,x=e.edgepaths.map((function(t,e){return e})),b=!0,_=1e-4*Math.abs(r[0][0]-r[2][0]),w=1e-4*Math.abs(r[0][1]-r[2][1]);function T(t){return Math.abs(t[1]-r[0][1])&lt;w}function k(t){return Math.abs(t[1]-r[2][1])&lt;w}function M(t){return Math.abs(t[0]-r[0][0])&lt;_}function A(t){return Math.abs(t[0]-r[2][0])&lt;_}function S(t,e){var r,n,o,s,u=&quot;&quot;;for(T(t)&amp;&amp;!A(t)||k(t)&amp;&amp;!M(t)?(s=i.aaxis,o=m(i,a,[t[0],e[0]],.5*(t[1]+e[1]))):(s=i.baxis,o=m(i,a,.5*(t[0]+e[0]),[t[1],e[1]])),r=1;r&lt;o.length;r++)for(u+=s.smoothing?&quot;C&quot;:&quot;L&quot;,n=0;n&lt;o[r].length;n++){var f=o[r][n];u+=[l.c2p(f[0]),c.c2p(f[1])]+&quot; &quot;}return u}u=0,f=null;for(;x.length;){var E=e.edgepaths[u][0];for(f&amp;&amp;(y+=S(f,E)),v=o.smoothopen(e.edgepaths[u].map(n),e.smoothing),y+=b?v:v.replace(/^M/,&quot;L&quot;),x.splice(x.indexOf(u),1),f=e.edgepaths[u][e.edgepaths[u].length-1],d=-1,p=0;p&lt;4;p++){if(!f){s.log(&quot;Missing end?&quot;,u,e);break}for(T(f)&amp;&amp;!A(f)?h=r[1]:M(f)?h=r[0]:k(f)?h=r[3]:A(f)&amp;&amp;(h=r[2]),g=0;g&lt;e.edgepaths.length;g++){var C=e.edgepaths[g][0];Math.abs(f[0]-h[0])&lt;_?Math.abs(f[0]-C[0])&lt;_&amp;&amp;(C[1]-f[1])*(h[1]-C[1])&gt;=0&amp;&amp;(h=C,d=g):Math.abs(f[1]-h[1])&lt;w?Math.abs(f[1]-C[1])&lt;w&amp;&amp;(C[0]-f[0])*(h[0]-C[0])&gt;=0&amp;&amp;(h=C,d=g):s.log(&quot;endpt to newendpt is not vert. or horz.&quot;,f,h,C)}if(d&gt;=0)break;y+=S(f,h),f=h}if(d===e.edgepaths.length){s.log(&quot;unclosed perimeter path&quot;);break}u=d,(b=-1===x.indexOf(u))&amp;&amp;(u=x[0],y+=S(f,h)+&quot;Z&quot;,f=null)}for(u=0;u&lt;e.paths.length;u++)y+=o.smoothclosed(e.paths[u].map(n),e.smoothing);return y}(0,t,l,c,u,f,r,i);e?n.select(this).attr(&quot;d&quot;,e).style(&quot;stroke&quot;,&quot;none&quot;):n.select(this).remove()}))}(k,b,_,w,U,O,H,M,A,z,q),function(t,e,r,i,a,l,c){var h=s.ensureSingle(t,&quot;g&quot;,&quot;contourlines&quot;),p=!1!==a.showlines,d=a.showlabels,g=p&amp;&amp;d,m=u.createLines(h,p||d,e),b=u.createLineClip(h,g,r,i.trace.uid),_=t.selectAll(&quot;g.contourlabels&quot;).data(d?[0]:[]);if(_.exit().remove(),_.enter().append(&quot;g&quot;).classed(&quot;contourlabels&quot;,!0),d){var w=l.xaxis,T=l.yaxis,k=w._length,M=T._length,A=[[[0,0],[k,0],[k,M],[0,M]]],S=[];s.clearLocationCache();var E=u.labelFormatter(r,i),C=o.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).call(o.font,a.labelfont),L={left:0,right:k,center:k/2,top:0,bottom:M,middle:M/2},I=Math.sqrt(k*k+M*M),P=f.LABELDISTANCE*I/Math.max(1,e.length/f.LABELINCREASE);m.each((function(t){var e=u.calcTextOpts(t.level,E,C,r);n.select(this).selectAll(&quot;path&quot;).each((function(r){var n=s.getVisibleSegment(this,L,e.height/2);if(n&amp;&amp;(function(t,e,r,n,i,a){for(var o,s=0;s&lt;r.pedgepaths.length;s++)e===r.pedgepaths[s]&amp;&amp;(o=r.edgepaths[s]);if(!o)return;var l=i.a[0],c=i.a[i.a.length-1],u=i.b[0],f=i.b[i.b.length-1];function h(t,e){var r,n=0;return(Math.abs(t[0]-l)&lt;.1||Math.abs(t[0]-c)&lt;.1)&amp;&amp;(r=y(i.dxydb_rough(t[0],t[1],.1)),n=Math.max(n,a*x(e,r)/2)),(Math.abs(t[1]-u)&lt;.1||Math.abs(t[1]-f)&lt;.1)&amp;&amp;(r=y(i.dxyda_rough(t[0],t[1],.1)),n=Math.max(n,a*x(e,r)/2)),n}var p=v(t,0,1),d=v(t,n.total,n.total-1),g=h(o[0],p),m=n.total-h(o[o.length-1],d);n.min&lt;g&amp;&amp;(n.min=g);n.max&gt;m&amp;&amp;(n.max=m);n.len=n.max-n.min}(this,r,t,n,c,e.height),!(n.len&lt;(e.width+e.height)*f.LABELMIN)))for(var i=Math.min(Math.ceil(n.len/P),f.LABELMAX),a=0;a&lt;i;a++){var o=u.findBestTextLocation(this,n,e,S,L);if(!o)break;u.addLabelData(o,e,S,A)}}))})),C.remove(),u.drawLabels(_,S,r,b,g?A:null)}d&amp;&amp;!p&amp;&amp;m.remove()}(b,L,t,T,C,e,M),o.setClipUrl(b,M._clipPathId,t)}function H(t){var e=M.ab2xy(t[0],t[1],!0);return[_.c2p(e[0]),w.c2p(e[1])]}}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../carpet/axis_aligned_line&quot;:965,&quot;../carpet/lookup_carpetid&quot;:981,&quot;../carpet/makepath&quot;:982,&quot;../carpet/map_1d_array&quot;:983,&quot;../contour/close_boundaries&quot;:1010,&quot;../contour/constants&quot;:1012,&quot;../contour/convert_to_constraints&quot;:1016,&quot;../contour/empty_pathinfo&quot;:1018,&quot;../contour/find_all_paths&quot;:1020,&quot;../contour/make_crossings&quot;:1025,&quot;../contour/plot&quot;:1026,d3:169}],1035:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../scattermapbox/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({lon:o.lon,lat:o.lat,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},radius:{valType:&quot;number&quot;,editType:&quot;plot&quot;,arrayOk:!0,min:1,dflt:30},below:{valType:&quot;string&quot;,editType:&quot;plot&quot;},text:o.text,hovertext:o.hovertext,hoverinfo:s({},a.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:i(),showlegend:s({},a.showlegend,{dflt:!1})},n(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scattermapbox/attributes&quot;:1252}],1036:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray,a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../components/colorscale/calc&quot;),s=t(&quot;../../lib&quot;)._;e.exports=function(t,e){for(var r=e._length,l=new Array(r),c=e.z,u=i(c)&amp;&amp;c.length,f=0;f&lt;r;f++){var h=l[f]={},p=e.lon[f],d=e.lat[f];if(h.lonlat=n(p)&amp;&amp;n(d)?[+p,+d]:[a,a],u){var g=c[f];h.z=n(g)?g:a}}return o(t,e,{vals:u?c:[0,1],containerStr:&quot;&quot;,cLetter:&quot;z&quot;}),r&amp;&amp;(l[0].t={labels:{lat:s(t,&quot;lat:&quot;)+&quot; &quot;,lon:s(t,&quot;lon:&quot;)+&quot; &quot;}}),l}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],1037:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../components/colorscale&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=t(&quot;../../lib/geojson_utils&quot;).makeBlank;e.exports=function(t){var e=t[0].trace,r=!0===e.visible&amp;&amp;0!==e._length,c=e._opts={heatmap:{layout:{visibility:&quot;none&quot;},paint:{}},geojson:l()};if(!r)return c;var u,f=[],h=e.z,p=e.radius,d=i.isArrayOrTypedArray(h)&amp;&amp;h.length,g=i.isArrayOrTypedArray(p);for(u=0;u&lt;t.length;u++){var m=t[u],v=m.lonlat;if(v[0]!==s){var y={};if(d){var x=m.z;y.z=x!==s?x:0}g&amp;&amp;(y.r=n(p[u])&amp;&amp;p[u]&gt;0?+p[u]:0),f.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:v},properties:y})}}var b=o.extractOpts(e),_=b.reversescale?o.flipScale(b.colorscale):b.colorscale,w=_[0][1],T=[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;heatmap-density&quot;],0,a.opacity(w)&lt;1?w:a.addOpacity(w,0)];for(u=1;u&lt;_.length;u++)T.push(_[u][0],_[u][1]);var k=[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;get&quot;,&quot;z&quot;],b.min,0,b.max,1];return i.extendFlat(c.heatmap.paint,{&quot;heatmap-weight&quot;:d?k:1/(b.max-b.min),&quot;heatmap-color&quot;:T,&quot;heatmap-radius&quot;:g?{type:&quot;identity&quot;,property:&quot;r&quot;}:e.radius,&quot;heatmap-opacity&quot;:e.opacity}),c.geojson={type:&quot;FeatureCollection&quot;,features:f},c.heatmap.layout.visibility=&quot;visible&quot;,c}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale&quot;:655,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/geojson_utils&quot;:772,&quot;fast-isnumeric&quot;:241}],1038:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;lon&quot;)||[],c=s(&quot;lat&quot;)||[],u=Math.min(l.length,c.length);u?(e._length=u,s(&quot;z&quot;),s(&quot;radius&quot;),s(&quot;below&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:1035}],1039:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t.z=e.z,t}},{}],1040:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../scattermapbox/hover&quot;);e.exports=function(t,e,r){var o=a(t,e,r);if(o){var s=o[0],l=s.cd,c=l[0].trace,u=l[s.index];if(delete s.color,&quot;z&quot;in u){var f=s.subplot.mockAxis;s.z=u.z,s.zLabel=i.tickText(f,f.c2l(u.z),&quot;hover&quot;).text}return s.extraText=function(t,e,r){if(t.hovertemplate)return;var i=(e.hi||t.hoverinfo).split(&quot;+&quot;),a=-1!==i.indexOf(&quot;all&quot;),o=-1!==i.indexOf(&quot;lon&quot;),s=-1!==i.indexOf(&quot;lat&quot;),l=e.lonlat,c=[];function u(t){return t+&quot;\xb0&quot;}a||o&amp;&amp;s?c.push(&quot;(&quot;+u(l[0])+&quot;, &quot;+u(l[1])+&quot;)&quot;):o?c.push(r.lon+u(l[0])):s&amp;&amp;c.push(r.lat+u(l[1]));(a||-1!==i.indexOf(&quot;text&quot;))&amp;&amp;n.fillText(e,t,c);return c.join(&quot;&lt;br&gt;&quot;)}(c,u,l[0].t.labels),[s]}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scattermapbox/hover&quot;:1257}],1041:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),formatLabels:t(&quot;../scattermapbox/format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),getBelow:function(t,e){for(var r=e.getMapLayers(),n=0;n&lt;r.length;n++){var i=r[n],a=i.id;if(&quot;symbol&quot;===i.type&amp;&amp;&quot;string&quot;==typeof a&amp;&amp;-1===a.indexOf(&quot;plotly-&quot;))return a}},moduleType:&quot;trace&quot;,name:&quot;densitymapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;showLegend&quot;],meta:{hr_name:&quot;density_mapbox&quot;}}},{&quot;../../plots/mapbox&quot;:885,&quot;../heatmap/colorbar&quot;:1068,&quot;../scattermapbox/format_labels&quot;:1256,&quot;./attributes&quot;:1035,&quot;./calc&quot;:1036,&quot;./defaults&quot;:1038,&quot;./event_data&quot;:1039,&quot;./hover&quot;:1040,&quot;./plot&quot;:1042}],1042:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;),i=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix;function a(t,e){this.type=&quot;densitymapbox&quot;,this.subplot=t,this.uid=e,this.sourceId=&quot;source-&quot;+e,this.layerList=[[&quot;heatmap&quot;,i+e+&quot;-heatmap&quot;]],this.below=null}var o=a.prototype;o.update=function(t){var e=this.subplot,r=this.layerList,i=n(t),a=e.belowLookup[&quot;trace-&quot;+this.uid];e.map.getSource(this.sourceId).setData(i.geojson),a!==this.below&amp;&amp;(this._removeLayers(),this._addLayers(i,a),this.below=a);for(var o=0;o&lt;r.length;o++){var s=r[o],l=s[0],c=s[1],u=i[l];e.setOptions(c,&quot;setLayoutProperty&quot;,u.layout),&quot;visible&quot;===u.layout.visibility&amp;&amp;e.setOptions(c,&quot;setPaintProperty&quot;,u.paint)}},o._addLayers=function(t,e){for(var r=this.subplot,n=this.layerList,i=this.sourceId,a=0;a&lt;n.length;a++){var o=n[a],s=o[0],l=t[s];r.addLayer({type:s,id:o[1],source:i,layout:l.layout,paint:l.paint},e)}},o._removeLayers=function(){for(var t=this.subplot.map,e=this.layerList,r=e.length-1;r&gt;=0;r--)t.removeLayer(e[r][1])},o.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new a(t,r.uid),o=i.sourceId,s=n(e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid];return t.map.addSource(o,{type:&quot;geojson&quot;,data:s.geojson}),i._addLayers(s,l),i}},{&quot;../../plots/mapbox/constants&quot;:883,&quot;./convert&quot;:1037}],1043:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;);var i=e.marker;if(i){n.mergeArray(i.opacity,t,&quot;mo&quot;),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;a&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;))}}},{&quot;../../lib&quot;:778}],1044:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../scatter/attributes&quot;).line,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;./constants&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../components/color&quot;);e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,hovertext:n.hovertext,hovertemplate:o({},{keys:l.eventDataKeys}),hoverinfo:c({},a.hoverinfo,{flags:[&quot;name&quot;,&quot;x&quot;,&quot;y&quot;,&quot;text&quot;,&quot;percent initial&quot;,&quot;percent previous&quot;,&quot;percent total&quot;]}),textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;percent initial&quot;,&quot;percent previous&quot;,&quot;percent total&quot;,&quot;value&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;,arrayOk:!1},texttemplate:s({editType:&quot;plot&quot;},{keys:l.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),text:n.text,textposition:c({},n.textposition,{dflt:&quot;auto&quot;}),insidetextanchor:c({},n.insidetextanchor,{dflt:&quot;middle&quot;}),textangle:c({},n.textangle,{dflt:0}),textfont:n.textfont,insidetextfont:n.insidetextfont,outsidetextfont:n.outsidetextfont,constraintext:n.constraintext,cliponaxis:n.cliponaxis,orientation:c({},n.orientation,{}),offset:c({},n.offset,{arrayOk:!1}),width:c({},n.width,{arrayOk:!1}),marker:n.marker,connector:{fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},line:{color:c({},i.color,{dflt:u.defaultLine}),width:c({},i.width,{dflt:0,editType:&quot;plot&quot;}),dash:i.dash,editType:&quot;style&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup}},{&quot;../../components/color&quot;:643,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:1046}],1045:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;./arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t){return t===s?0:t}e.exports=function(t,e){var r,c,u,f,h,p,d=n.getFromId(t,e.xaxis||&quot;x&quot;),g=n.getFromId(t,e.yaxis||&quot;y&quot;);&quot;h&quot;===e.orientation?(r=d.makeCalcdata(e,&quot;x&quot;),u=g.makeCalcdata(e,&quot;y&quot;),c=i(e,g,&quot;y&quot;,u),p=!!e.yperiodalignment):(r=g.makeCalcdata(e,&quot;y&quot;),u=d.makeCalcdata(e,&quot;x&quot;),c=i(e,d,&quot;x&quot;,u),p=!!e.xperiodalignment);var m,v=Math.min(c.length,r.length),y=new Array(v);for(e._base=[],f=0;f&lt;v;f++){r[f]&lt;0&amp;&amp;(r[f]=s);var x=!1;r[f]!==s&amp;&amp;f+1&lt;v&amp;&amp;r[f+1]!==s&amp;&amp;(x=!0),h=y[f]={p:c[f],s:r[f],cNext:x},e._base[f]=-.5*h.s,p&amp;&amp;(y[f].orig_p=u[f]),e.ids&amp;&amp;(h.id=String(e.ids[f])),0===f&amp;&amp;(y[0].vTotal=0),y[0].vTotal+=l(h.s),h.begR=l(h.s)/l(y[0].s)}for(f=0;f&lt;v;f++)(h=y[f]).s!==s&amp;&amp;(h.sumR=h.s/y[0].vTotal,h.difR=void 0!==m?h.s/m:1,m=h.s);return a(y,e),o(y,e),y}},{&quot;../../constants/numerical&quot;:753,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc_selection&quot;:1189,&quot;./arrays_to_calcdata&quot;:1043}],1046:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;percentInitial&quot;,&quot;percentPrevious&quot;,&quot;percentTotal&quot;]}},{}],1047:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions;e.exports=function(t,e){var r,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,c=e.yaxis,u=[],f=[],h=[];for(i=0;i&lt;o.length;i++){var p=o[i],d=&quot;h&quot;===p.orientation;!0===p.visible&amp;&amp;p.xaxis===l._id&amp;&amp;p.yaxis===c._id&amp;&amp;&quot;funnel&quot;===p.type&amp;&amp;(r=s[i],d?h.push(r):f.push(r),u.push(r))}var g={mode:a.funnelmode,norm:a.funnelnorm,gap:a.funnelgap,groupgap:a.funnelgroupgap};for(n(t,l,c,f,g),n(t,c,l,h,g),i=0;i&lt;u.length;i++){r=u[i];for(var m=0;m&lt;r.length;m++)m+1&lt;r.length&amp;&amp;(r[m].nextP0=r[m+1].p0,r[m].nextS0=r[m+1].s0,r[m].nextP1=r[m+1].p1,r[m].nextS1=r[m+1].s1)}}},{&quot;../bar/cross_trace_calc&quot;:924}],1048:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,a=t(&quot;../bar/defaults&quot;).handleText,o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../../components/color&quot;);e.exports={supplyDefaults:function(t,e,r,i){function u(r,i){return n.coerce(t,e,l,r,i)}if(o(t,e,i,u)){s(t,e,i,u),u(&quot;orientation&quot;,e.y&amp;&amp;!e.x?&quot;v&quot;:&quot;h&quot;),u(&quot;offset&quot;),u(&quot;width&quot;);var f=u(&quot;text&quot;);u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;);var h=u(&quot;textposition&quot;);a(t,e,i,u,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),&quot;none&quot;===e.textposition||e.texttemplate||u(&quot;textinfo&quot;,Array.isArray(f)?&quot;text+value&quot;:&quot;value&quot;);var p=u(&quot;marker.color&quot;,r);if(u(&quot;marker.line.color&quot;,c.defaultLine),u(&quot;marker.line.width&quot;),u(&quot;connector.visible&quot;))u(&quot;connector.fillcolor&quot;,function(t){var e=n.isArrayOrTypedArray(t)?&quot;#000&quot;:t;return c.addOpacity(e,.5*c.opacity(e))}(p)),u(&quot;connector.line.width&quot;)&amp;&amp;(u(&quot;connector.line.color&quot;),u(&quot;connector.line.dash&quot;))}else e.visible=!1},crossTraceDefaults:function(t,e){var r,a;function o(t){return n.coerce(a._input,a,l,t)}if(&quot;group&quot;===e.funnelmode)for(var s=0;s&lt;t.length;s++)r=(a=t[s])._input,i(r,a,e,o)}}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/defaults&quot;:925,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:1044}],1049:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;percentInitial&quot;in e&amp;&amp;(t.percentInitial=e.percentInitial),&quot;percentPrevious&quot;in e&amp;&amp;(t.percentPrevious=e.percentPrevious),&quot;percentTotal&quot;in e&amp;&amp;(t.percentTotal=e.percentTotal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],1050:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;).opacity,i=t(&quot;../bar/hover&quot;).hoverOnBars,a=t(&quot;../../lib&quot;).formatPercent;e.exports=function(t,e,r,o){var s=i(t,e,r,o);if(s){var l=s.cd,c=l[0].trace,u=&quot;h&quot;===c.orientation,f=l[s.index];s[(u?&quot;x&quot;:&quot;y&quot;)+&quot;LabelVal&quot;]=f.s,s.percentInitial=f.begR,s.percentInitialLabel=a(f.begR,1),s.percentPrevious=f.difR,s.percentPreviousLabel=a(f.difR,1),s.percentTotal=f.sumR,s.percentTotalLabel=a(f.sumR,1);var h=f.hi||c.hoverinfo,p=[];if(h&amp;&amp;&quot;none&quot;!==h&amp;&amp;&quot;skip&quot;!==h){var d=&quot;all&quot;===h,g=h.split(&quot;+&quot;),m=function(t){return d||-1!==g.indexOf(t)};m(&quot;percent initial&quot;)&amp;&amp;p.push(s.percentInitialLabel+&quot; of initial&quot;),m(&quot;percent previous&quot;)&amp;&amp;p.push(s.percentPreviousLabel+&quot; of previous&quot;),m(&quot;percent total&quot;)&amp;&amp;p.push(s.percentTotalLabel+&quot; of total&quot;)}return s.extraText=p.join(&quot;&lt;br&gt;&quot;),s.color=function(t,e){var r=t.marker,i=e.mc||r.color,a=e.mlc||r.line.color,o=e.mlw||r.line.width;if(n(i))return i;if(n(a)&amp;&amp;o)return a}(c,f),[s]}}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/hover&quot;:928}],1051:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;../bar/select&quot;),moduleType:&quot;trace&quot;,name:&quot;funnel&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;oriented&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../bar/select&quot;:933,&quot;./attributes&quot;:1044,&quot;./calc&quot;:1045,&quot;./cross_trace_calc&quot;:1047,&quot;./defaults&quot;:1048,&quot;./event_data&quot;:1049,&quot;./hover&quot;:1050,&quot;./layout_attributes&quot;:1052,&quot;./layout_defaults&quot;:1053,&quot;./plot&quot;:1054,&quot;./style&quot;:1055}],1052:[function(t,e,r){&quot;use strict&quot;;e.exports={funnelmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;stack&quot;,editType:&quot;calc&quot;},funnelgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},funnelgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],1053:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s&lt;r.length;s++){var l=r[s];if(l.visible&amp;&amp;&quot;funnel&quot;===l.type){a=!0;break}}a&amp;&amp;(o(&quot;funnelmode&quot;),o(&quot;funnelgap&quot;,.2),o(&quot;funnelgroupgap&quot;))}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1052}],1054:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../constants/numerical&quot;).BADNUM,s=t(&quot;../bar/plot&quot;),l=t(&quot;../bar/uniform_text&quot;).clearMinTextSize;function c(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),i[3]=o.c2p(t.nextS1,!0),a[3]=s.c2p(t.nextP1,!0),n?[i,a]:[a,i]}e.exports=function(t,e,r,u){var f=t._fullLayout;l(&quot;funnel&quot;,f),function(t,e,r,s){var l=e.xaxis,u=e.yaxis;i.makeTraceGroups(s,r,&quot;trace bars&quot;).each((function(r){var s=n.select(this),f=r[0].trace,h=i.ensureSingle(s,&quot;g&quot;,&quot;regions&quot;);if(f.connector&amp;&amp;f.connector.visible){var p=&quot;h&quot;===f.orientation,d=h.selectAll(&quot;g.region&quot;).data(i.identity);d.enter().append(&quot;g&quot;).classed(&quot;region&quot;,!0),d.exit().remove();var g=d.size();d.each((function(r,s){if(s===g-1||r.cNext){var f=c(r,l,u,p),h=f[0],d=f[1],m=&quot;&quot;;h[0]!==o&amp;&amp;d[0]!==o&amp;&amp;h[1]!==o&amp;&amp;d[1]!==o&amp;&amp;h[2]!==o&amp;&amp;d[2]!==o&amp;&amp;h[3]!==o&amp;&amp;d[3]!==o&amp;&amp;(m+=p?&quot;M&quot;+h[0]+&quot;,&quot;+d[1]+&quot;L&quot;+h[2]+&quot;,&quot;+d[2]+&quot;H&quot;+h[3]+&quot;L&quot;+h[1]+&quot;,&quot;+d[1]+&quot;Z&quot;:&quot;M&quot;+h[1]+&quot;,&quot;+d[1]+&quot;L&quot;+h[2]+&quot;,&quot;+d[3]+&quot;V&quot;+d[2]+&quot;L&quot;+h[1]+&quot;,&quot;+d[0]+&quot;Z&quot;),&quot;&quot;===m&amp;&amp;(m=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,m).call(a.setClipUrl,e.layerClipId,t)}}))}else h.remove()}))}(t,e,r,u),function(t,e,r,o){var s=e.xaxis,l=e.yaxis;i.makeTraceGroups(o,r,&quot;trace bars&quot;).each((function(r){var o=n.select(this),u=r[0].trace,f=i.ensureSingle(o,&quot;g&quot;,&quot;lines&quot;);if(u.connector&amp;&amp;u.connector.visible&amp;&amp;u.connector.line.width){var h=&quot;h&quot;===u.orientation,p=f.selectAll(&quot;g.line&quot;).data(i.identity);p.enter().append(&quot;g&quot;).classed(&quot;line&quot;,!0),p.exit().remove();var d=p.size();p.each((function(r,o){if(o===d-1||r.cNext){var u=c(r,s,l,h),f=u[0],p=u[1],g=&quot;&quot;;void 0!==f[3]&amp;&amp;void 0!==p[3]&amp;&amp;(h?(g+=&quot;M&quot;+f[0]+&quot;,&quot;+p[1]+&quot;L&quot;+f[2]+&quot;,&quot;+p[2],g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[1]+&quot;L&quot;+f[3]+&quot;,&quot;+p[2]):(g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[1]+&quot;L&quot;+f[2]+&quot;,&quot;+p[3],g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[0]+&quot;L&quot;+f[2]+&quot;,&quot;+p[2])),&quot;&quot;===g&amp;&amp;(g=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,g).call(a.setClipUrl,e.layerClipId,t)}}))}else f.remove()}))}(t,e,r,u),s.plot(t,e,r,u,{mode:f.funnelmode,norm:f.funnelmode,gap:f.funnelgap,groupgap:f.funnelgroupgap})}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../bar/plot&quot;:932,&quot;../bar/uniform_text&quot;:937,d3:169}],1055:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../constants/interactions&quot;).DESELECTDIM,s=t(&quot;../bar/style&quot;),l=t(&quot;../bar/uniform_text&quot;).resizeText,c=s.styleTextPoints;e.exports={style:function(t,e,r){var s=r||n.select(t).selectAll(&quot;g.funnellayer&quot;).selectAll(&quot;g.trace&quot;);l(t,s,&quot;funnel&quot;),s.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),s.each((function(e){var r=n.select(this),s=e[0].trace;r.selectAll(&quot;.point &gt; path&quot;).each((function(t){if(!t.isBlank){var e=s.marker;n.select(this).call(a.fill,t.mc||e.color).call(a.stroke,t.mlc||e.line.color).call(i.dashLine,e.line.dash,t.mlw||e.line.width).style(&quot;opacity&quot;,s.selectedpoints&amp;&amp;!t.selected?o:1)}})),c(r,s,t),r.selectAll(&quot;.regions&quot;).each((function(){n.select(this).selectAll(&quot;path&quot;).style(&quot;stroke-width&quot;,0).call(a.fill,s.connector.fillcolor)})),r.selectAll(&quot;.lines&quot;).each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll(&quot;path&quot;),t.width,t.color,t.dash)}))}))}}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../constants/interactions&quot;:752,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,d3:169}],1056:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/domain&quot;).attributes,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:n.labels,label0:n.label0,dlabel:n.dlabel,values:n.values,marker:{colors:n.marker.colors,line:{color:l({},n.marker.line.color,{dflt:null}),width:l({},n.marker.line.width,{dflt:1}),editType:&quot;calc&quot;},editType:&quot;calc&quot;},text:n.text,hovertext:n.hovertext,scalegroup:l({},n.scalegroup,{}),textinfo:l({},n.textinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;]}),texttemplate:s({editType:&quot;plot&quot;},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;text&quot;,&quot;percent&quot;]}),hoverinfo:l({},i.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;name&quot;]}),hovertemplate:o({},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;text&quot;,&quot;percent&quot;]}),textposition:l({},n.textposition,{values:[&quot;inside&quot;,&quot;none&quot;],dflt:&quot;inside&quot;}),textfont:n.textfont,insidetextfont:n.insidetextfont,title:{text:n.title.text,font:n.title.font,position:l({},n.title.position,{values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;],dflt:&quot;top center&quot;}),editType:&quot;plot&quot;},domain:a({name:&quot;funnelarea&quot;,trace:!0,editType:&quot;calc&quot;}),aspectratio:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},baseratio:{valType:&quot;number&quot;,min:0,max:1,dflt:.333,editType:&quot;plot&quot;}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/template_attributes&quot;:906,&quot;../pie/attributes&quot;:1161}],1057:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;funnelarea&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1058:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/calc&quot;);e.exports={calc:function(t,e){return n.calc(t,e)},crossTraceCalc:function(t){n.crossTraceCalc(t,{type:&quot;funnelarea&quot;})}}},{&quot;../pie/calc&quot;:1163}],1059:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../bar/defaults&quot;).handleText,s=t(&quot;../pie/defaults&quot;).handleLabelsAndValues;e.exports=function(t,e,r,l){function c(r,a){return n.coerce(t,e,i,r,a)}var u=c(&quot;labels&quot;),f=c(&quot;values&quot;),h=s(u,f),p=h.len;if(e._hasLabels=h.hasLabels,e._hasValues=h.hasValues,!e._hasLabels&amp;&amp;e._hasValues&amp;&amp;(c(&quot;label0&quot;),c(&quot;dlabel&quot;)),p){e._length=p,c(&quot;marker.line.width&quot;)&amp;&amp;c(&quot;marker.line.color&quot;,l.paper_bgcolor),c(&quot;marker.colors&quot;),c(&quot;scalegroup&quot;);var d,g=c(&quot;text&quot;),m=c(&quot;texttemplate&quot;);if(m||(d=c(&quot;textinfo&quot;,Array.isArray(g)?&quot;text+percent&quot;:&quot;percent&quot;)),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),m||d&amp;&amp;&quot;none&quot;!==d){var v=c(&quot;textposition&quot;);o(t,e,l,c,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}a(e,l,c),c(&quot;title.text&quot;)&amp;&amp;(c(&quot;title.position&quot;),n.coerceFont(c,&quot;title.font&quot;,l.font)),c(&quot;aspectratio&quot;),c(&quot;baseratio&quot;)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/defaults&quot;:925,&quot;../pie/defaults&quot;:1164,&quot;./attributes&quot;:1056}],1060:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;funnelarea&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;pie-like&quot;,&quot;funnelarea&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),styleOne:t(&quot;../pie/style_one&quot;),meta:{}}},{&quot;../pie/style_one&quot;:1172,&quot;./attributes&quot;:1056,&quot;./base_plot&quot;:1057,&quot;./calc&quot;:1058,&quot;./defaults&quot;:1059,&quot;./layout_attributes&quot;:1061,&quot;./layout_defaults&quot;:1062,&quot;./plot&quot;:1063,&quot;./style&quot;:1064}],1061:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/layout_attributes&quot;).hiddenlabels;e.exports={hiddenlabels:n,funnelareacolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendfunnelareacolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{&quot;../pie/layout_attributes&quot;:1168}],1062:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;hiddenlabels&quot;),r(&quot;funnelareacolorway&quot;,e.colorway),r(&quot;extendfunnelareacolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1061}],1063:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../lib&quot;),o=a.strScale,s=a.strTranslate,l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../bar/plot&quot;).toMoveInsideBar,u=t(&quot;../bar/uniform_text&quot;),f=u.recordMinTextSize,h=u.clearMinTextSize,p=t(&quot;../pie/helpers&quot;),d=t(&quot;../pie/plot&quot;),g=d.attachFxHandlers,m=d.determineInsideTextFont,v=d.layoutAreas,y=d.prerenderTitles,x=d.positionTitleOutside,b=d.formatSliceLabel;function _(t,e){return&quot;l&quot;+(e[0]-t[0])+&quot;,&quot;+(e[1]-t[1])}e.exports=function(t,e){var r=t._fullLayout;h(&quot;funnelarea&quot;,r),y(e,t),v(e,r._size),a.makeTraceGroups(r._funnelarealayer,e,&quot;trace&quot;).each((function(e){var u=n.select(this),h=e[0],d=h.trace;!function(t){if(!t.length)return;var e=t[0],r=e.trace,n=r.aspectratio,i=r.baseratio;i&gt;.999&amp;&amp;(i=.999);var a,o=Math.pow(i,2),s=e.vTotal,l=s,c=s*o/(1-o)/s;function u(){var t,e={x:t=Math.sqrt(c),y:-t};return[e.x,e.y]}var f,h,p=[];for(p.push(u()),f=t.length-1;f&gt;-1;f--)if(!(h=t[f]).hidden){var d=h.v/l;c+=d,p.push(u())}var g=1/0,m=-1/0;for(f=0;f&lt;p.length;f++)a=p[f],g=Math.min(g,a[1]),m=Math.max(m,a[1]);for(f=0;f&lt;p.length;f++)p[f][1]-=(m+g)/2;var v=p[p.length-1][0],y=e.r,x=(m-g)/2,b=y/v,_=y/x*n;for(e.r=_*x,f=0;f&lt;p.length;f++)p[f][0]*=b,p[f][1]*=_;var w=[-(a=p[0])[0],a[1]],T=[a[0],a[1]],k=0;for(f=t.length-1;f&gt;-1;f--)if(!(h=t[f]).hidden){var M=p[k+=1][0],A=p[k][1];h.TL=[-M,A],h.TR=[M,A],h.BL=w,h.BR=T,h.pxmid=(S=h.TR,E=h.BR,[.5*(S[0]+E[0]),.5*(S[1]+E[1])]),w=h.TL,T=h.TR}var S,E}(e),u.each((function(){var u=n.select(this).selectAll(&quot;g.slice&quot;).data(e);u.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),u.exit().remove(),u.each((function(o,s){if(o.hidden)n.select(this).selectAll(&quot;path,g&quot;).remove();else{o.pointNumber=o.i,o.curveNumber=d.index;var u=h.cx,v=h.cy,y=n.select(this),x=y.selectAll(&quot;path.surface&quot;).data([o]);x.enter().append(&quot;path&quot;).classed(&quot;surface&quot;,!0).style({&quot;pointer-events&quot;:&quot;all&quot;}),y.call(g,t,e);var w=&quot;M&quot;+(u+o.TR[0])+&quot;,&quot;+(v+o.TR[1])+_(o.TR,o.BR)+_(o.BR,o.BL)+_(o.BL,o.TL)+&quot;Z&quot;;x.attr(&quot;d&quot;,w),b(t,o,h);var T=p.castOption(d.textposition,o.pts),k=y.selectAll(&quot;g.slicetext&quot;).data(o.text&amp;&amp;&quot;none&quot;!==T?[0]:[]);k.enter().append(&quot;g&quot;).classed(&quot;slicetext&quot;,!0),k.exit().remove(),k.each((function(){var h=a.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),p=a.ensureUniformFontSize(t,m(d,o,r.font));h.text(o.text).attr({class:&quot;slicetext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(i.font,p).call(l.convertToTspans,t);var g,y,x,b=i.bBox(h.node()),_=Math.min(o.BL[1],o.BR[1])+v,w=Math.max(o.TL[1],o.TR[1])+v;y=Math.max(o.TL[0],o.BL[0])+u,x=Math.min(o.TR[0],o.BR[0])+u,(g=c(y,x,_,w,b,{isHorizontal:!0,constrained:!0,angle:0,anchor:&quot;middle&quot;})).fontSize=p.size,f(d.type,g,r),e[s].transform=g,h.attr(&quot;transform&quot;,a.getTextTransform(g))}))}}));var v=n.select(this).selectAll(&quot;g.titletext&quot;).data(d.title.text?[0]:[]);v.enter().append(&quot;g&quot;).classed(&quot;titletext&quot;,!0),v.exit().remove(),v.each((function(){var e=a.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),c=d.title.text;d._meta&amp;&amp;(c=a.templateString(c,d._meta)),e.text(c).attr({class:&quot;titletext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(i.font,d.title.font).call(l.convertToTspans,t);var u=x(h,r._size);e.attr(&quot;transform&quot;,s(u.x,u.y)+o(Math.min(1,u.scale))+s(u.tx,u.ty))}))}))}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../bar/plot&quot;:932,&quot;../bar/uniform_text&quot;:937,&quot;../pie/helpers&quot;:1166,&quot;../pie/plot&quot;:1170,d3:169}],1064:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../pie/style_one&quot;),a=t(&quot;../bar/uniform_text&quot;).resizeText;e.exports=function(t){var e=t._fullLayout._funnelarealayer.selectAll(&quot;.trace&quot;);a(t,e,&quot;funnelarea&quot;),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(i,t,e)}))}))}},{&quot;../bar/uniform_text&quot;:937,&quot;../pie/style_one&quot;:1172,d3:169}],1065:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,t(&quot;../../lib/extend&quot;).extendFlat);e.exports=s({z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},x:s({},n.x,{impliedEdits:{xtype:&quot;array&quot;}}),x0:s({},n.x0,{impliedEdits:{xtype:&quot;scaled&quot;}}),dx:s({},n.dx,{impliedEdits:{xtype:&quot;scaled&quot;}}),y:s({},n.y,{impliedEdits:{ytype:&quot;array&quot;}}),y0:s({},n.y0,{impliedEdits:{ytype:&quot;scaled&quot;}}),dy:s({},n.dy,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiod:s({},n.xperiod,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiod:s({},n.yperiod,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiod0:s({},n.xperiod0,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiod0:s({},n.yperiod0,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiodalignment:s({},n.xperiodalignment,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiodalignment:s({},n.yperiodalignment,{impliedEdits:{ytype:&quot;scaled&quot;}}),text:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},hovertext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},transpose:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},xtype:{valType:&quot;enumerated&quot;,values:[&quot;array&quot;,&quot;scaled&quot;],editType:&quot;calc+clearAxisTypes&quot;},ytype:{valType:&quot;enumerated&quot;,values:[&quot;array&quot;,&quot;scaled&quot;],editType:&quot;calc+clearAxisTypes&quot;},zsmooth:{valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,&quot;best&quot;,!1],dflt:!1,editType:&quot;calc&quot;},hoverongaps:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;none&quot;},connectgaps:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},xgap:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;plot&quot;},ygap:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;plot&quot;},zhoverformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;none&quot;},hovertemplate:a(),showlegend:s({},i.showlegend,{dflt:!1})},{transforms:void 0},o(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1066:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../histogram2d/calc&quot;),l=t(&quot;../../components/colorscale/calc&quot;),c=t(&quot;./convert_column_xyz&quot;),u=t(&quot;./clean_2d_array&quot;),f=t(&quot;./interp2d&quot;),h=t(&quot;./find_empties&quot;),p=t(&quot;./make_bound_array&quot;),d=t(&quot;../../constants/numerical&quot;).BADNUM;function g(t){for(var e=[],r=t.length,n=0;n&lt;r;n++){var i=t[n];i!==d&amp;&amp;e.push(i)}return e}e.exports=function(t,e){var r,m,v,y,x,b,_,w,T,k,M,A=a.getFromId(t,e.xaxis||&quot;x&quot;),S=a.getFromId(t,e.yaxis||&quot;y&quot;),E=n.traceIs(e,&quot;contour&quot;),C=n.traceIs(e,&quot;histogram&quot;),L=n.traceIs(e,&quot;gl2d&quot;),I=E?&quot;best&quot;:e.zsmooth;if(A._minDtick=0,S._minDtick=0,C)y=(M=s(t,e)).orig_x,r=M.x,m=M.x0,v=M.dx,w=M.orig_y,x=M.y,b=M.y0,_=M.dy,T=M.z;else{var P=e.z;i.isArray1D(P)?(c(e,A,S,&quot;x&quot;,&quot;y&quot;,[&quot;z&quot;]),r=e._x,x=e._y,P=e._z):(y=e.x?A.makeCalcdata(e,&quot;x&quot;):[],w=e.y?S.makeCalcdata(e,&quot;y&quot;):[],r=o(e,A,&quot;x&quot;,y),x=o(e,S,&quot;y&quot;,w),e._x=r,e._y=x),m=e.x0,v=e.dx,b=e.y0,_=e.dy,T=u(P,e,A,S)}function z(t){I=e._input.zsmooth=e.zsmooth=!1,i.warn('cannot use zsmooth: &quot;fast&quot;: '+t)}if((A.rangebreaks||S.rangebreaks)&amp;&amp;(T=function(t,e,r){for(var n=[],i=-1,a=0;a&lt;r.length;a++)if(e[a]!==d){i++,n[i]=[];for(var o=0;o&lt;r[a].length;o++)t[o]!==d&amp;&amp;n[i].push(r[a][o])}return n}(r,x,T),C||(r=g(r),x=g(x),e._x=r,e._y=x)),C||!E&amp;&amp;!e.connectgaps||(e._emptypoints=h(T),f(T,e._emptypoints)),&quot;fast&quot;===I)if(&quot;log&quot;===A.type||&quot;log&quot;===S.type)z(&quot;log axis found&quot;);else if(!C){if(r.length){var O=(r[r.length-1]-r[0])/(r.length-1),D=Math.abs(O/100);for(k=0;k&lt;r.length-1;k++)if(Math.abs(r[k+1]-r[k]-O)&gt;D){z(&quot;x scale is not linear&quot;);break}}if(x.length&amp;&amp;&quot;fast&quot;===I){var R=(x[x.length-1]-x[0])/(x.length-1),F=Math.abs(R/100);for(k=0;k&lt;x.length-1;k++)if(Math.abs(x[k+1]-x[k]-R)&gt;F){z(&quot;y scale is not linear&quot;);break}}}var B=i.maxRowLength(T),N=&quot;scaled&quot;===e.xtype?&quot;&quot;:r,j=p(e,N,m,v,B,A),U=&quot;scaled&quot;===e.ytype?&quot;&quot;:x,V=p(e,U,b,_,T.length,S);L||(e._extremes[A._id]=a.findExtremes(A,j),e._extremes[S._id]=a.findExtremes(S,V));var q={x:j,y:V,z:T,text:e._text||e.text,hovertext:e._hovertext||e.hovertext};if(e.xperiodalignment&amp;&amp;y&amp;&amp;(q.orig_x=y),e.yperiodalignment&amp;&amp;w&amp;&amp;(q.orig_y=w),N&amp;&amp;N.length===j.length-1&amp;&amp;(q.xCenter=N),U&amp;&amp;U.length===V.length-1&amp;&amp;(q.yCenter=U),C&amp;&amp;(q.xRanges=M.xRanges,q.yRanges=M.yRanges,q.pts=M.pts),E||l(t,e,{vals:T,cLetter:&quot;z&quot;}),E&amp;&amp;e.contours&amp;&amp;&quot;heatmap&quot;===e.contours.coloring){var H={type:&quot;contour&quot;===e.type?&quot;heatmap&quot;:&quot;histogram2d&quot;,xcalendar:e.xcalendar,ycalendar:e.ycalendar};q.xfill=p(H,N,m,v,B,A),q.yfill=p(H,U,b,_,T.length,S)}return[q]}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../histogram2d/calc&quot;:1098,&quot;./clean_2d_array&quot;:1067,&quot;./convert_column_xyz&quot;:1069,&quot;./find_empties&quot;:1071,&quot;./interp2d&quot;:1074,&quot;./make_bound_array&quot;:1075}],1067:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r,o){var s,l,c,u,f,h;function p(t){if(n(t))return+t}if(e&amp;&amp;e.transpose){for(s=0,f=0;f&lt;t.length;f++)s=Math.max(s,t[f].length);if(0===s)return!1;c=function(t){return t.length},u=function(t,e,r){return(t[r]||[])[e]}}else s=t.length,c=function(t,e){return t[e].length},u=function(t,e,r){return(t[e]||[])[r]};var d=function(t,e,r){return e===a||r===a?a:u(t,e,r)};function g(t){if(e&amp;&amp;&quot;carpet&quot;!==e.type&amp;&amp;&quot;contourcarpet&quot;!==e.type&amp;&amp;t&amp;&amp;&quot;category&quot;===t.type&amp;&amp;e[&quot;_&quot;+t._id.charAt(0)].length){var r=t._id.charAt(0),n={},o=e[&quot;_&quot;+r+&quot;CategoryMap&quot;]||e[r];for(f=0;f&lt;o.length;f++)n[o[f]]=f;return function(e){var r=n[t._categories[e]];return r+1?r:a}}return i.identity}var m=g(r),v=g(o);o&amp;&amp;&quot;category&quot;===o.type&amp;&amp;(s=o._categories.length);var y=new Array(s);for(f=0;f&lt;s;f++)for(l=r&amp;&amp;&quot;category&quot;===r.type?r._categories.length:c(t,f),y[f]=new Array(l),h=0;h&lt;l;h++)y[f][h]=p(d(t,v(f),m(h)));return y}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],1068:[function(t,e,r){&quot;use strict&quot;;e.exports={min:&quot;zmin&quot;,max:&quot;zmax&quot;}},{}],1069:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../plots/cartesian/align_period&quot;);e.exports=function(t,e,r,o,s,l){var c=t._length,u=e.makeCalcdata(t,o),f=r.makeCalcdata(t,s);u=a(t,e,o,u),f=a(t,r,s,f);var h,p,d,g,m=t.text,v=void 0!==m&amp;&amp;n.isArray1D(m),y=t.hovertext,x=void 0!==y&amp;&amp;n.isArray1D(y),b=n.distinctVals(u),_=b.vals,w=n.distinctVals(f),T=w.vals,k=[],M=T.length,A=_.length;for(h=0;h&lt;l.length;h++)k[h]=n.init2dArray(M,A);v&amp;&amp;(d=n.init2dArray(M,A)),x&amp;&amp;(g=n.init2dArray(M,A));var S=n.init2dArray(M,A);for(h=0;h&lt;c;h++)if(u[h]!==i&amp;&amp;f[h]!==i){var E=n.findBin(u[h]+b.minDiff/2,_),C=n.findBin(f[h]+w.minDiff/2,T);for(p=0;p&lt;l.length;p++){var L=t[l[p]];k[p][C][E]=L[h],S[C][E]=h}v&amp;&amp;(d[C][E]=m[h]),x&amp;&amp;(g[C][E]=y[h])}for(t[&quot;_&quot;+o]=_,t[&quot;_&quot;+s]=T,p=0;p&lt;l.length;p++)t[&quot;_&quot;+l[p]]=k[p];v&amp;&amp;(t._text=d),x&amp;&amp;(t._hovertext=g),e&amp;&amp;&quot;category&quot;===e.type&amp;&amp;(t[&quot;_&quot;+o+&quot;CategoryMap&quot;]=_.map((function(t){return e._categories[t]}))),r&amp;&amp;&quot;category&quot;===r.type&amp;&amp;(t[&quot;_&quot;+s+&quot;CategoryMap&quot;]=T.map((function(t){return r._categories[t]}))),t._after2before=S}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825}],1070:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./xyz_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./style_defaults&quot;),s=t(&quot;../../components/colorscale/defaults&quot;),l=t(&quot;./attributes&quot;);e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,l,r,i)}i(t,e,u,c)?(a(t,e,c,u),u(&quot;text&quot;),u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;),o(t,e,u,c),u(&quot;hoverongaps&quot;),u(&quot;connectgaps&quot;,n.isArray1D(e.z)&amp;&amp;!1!==e.zsmooth),s(t,e,c,u,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:1065,&quot;./style_defaults&quot;:1078,&quot;./xyz_defaults&quot;:1079}],1071:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).maxRowLength;e.exports=function(t){var e,r,i,a,o,s,l,c,u=[],f={},h=[],p=t[0],d=[],g=[0,0,0],m=n(t);for(r=0;r&lt;t.length;r++)for(e=d,d=p,p=t[r+1]||[],i=0;i&lt;m;i++)void 0===d[i]&amp;&amp;((s=(void 0!==d[i-1]?1:0)+(void 0!==d[i+1]?1:0)+(void 0!==e[i]?1:0)+(void 0!==p[i]?1:0))?(0===r&amp;&amp;s++,0===i&amp;&amp;s++,r===t.length-1&amp;&amp;s++,i===d.length-1&amp;&amp;s++,s&lt;4&amp;&amp;(f[[r,i]]=[r,i,s]),u.push([r,i,s])):h.push([r,i]));for(;h.length;){for(l={},c=!1,o=h.length-1;o&gt;=0;o--)(s=((f[[(r=(a=h[o])[0])-1,i=a[1]]]||g)[2]+(f[[r+1,i]]||g)[2]+(f[[r,i-1]]||g)[2]+(f[[r,i+1]]||g)[2])/20)&amp;&amp;(l[a]=[r,i,s],h.splice(o,1),c=!0);if(!c)throw&quot;findEmpties iterated with no new neighbors&quot;;for(a in l)f[a]=l[a],u.push(l[a])}return u.sort((function(t,e){return e[2]-t[2]}))}},{&quot;../../lib&quot;:778}],1072:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts;e.exports=function(t,e,r,s,l,c){var u,f,h,p,d=t.cd[0],g=d.trace,m=t.xa,v=t.ya,y=d.x,x=d.y,b=d.z,_=d.xCenter,w=d.yCenter,T=d.zmask,k=g.zhoverformat,M=y,A=x;if(!1!==t.index){try{h=Math.round(t.index[1]),p=Math.round(t.index[0])}catch(e){return void i.error(&quot;Error hovering on heatmap, pointNumber must be [row,col], found:&quot;,t.index)}if(h&lt;0||h&gt;=b[0].length||p&lt;0||p&gt;b.length)return}else{if(n.inbox(e-y[0],e-y[y.length-1],0)&gt;0||n.inbox(r-x[0],r-x[x.length-1],0)&gt;0)return;if(c){var S;for(M=[2*y[0]-y[1]],S=1;S&lt;y.length;S++)M.push((y[S]+y[S-1])/2);for(M.push([2*y[y.length-1]-y[y.length-2]]),A=[2*x[0]-x[1]],S=1;S&lt;x.length;S++)A.push((x[S]+x[S-1])/2);A.push([2*x[x.length-1]-x[x.length-2]])}h=Math.max(0,Math.min(M.length-2,i.findBin(e,M))),p=Math.max(0,Math.min(A.length-2,i.findBin(r,A)))}var E,C,L=m.c2p(y[h]),I=m.c2p(y[h+1]),P=v.c2p(x[p]),z=v.c2p(x[p+1]);c?(E=d.orig_x||y,C=d.orig_y||x,I=L,u=E[h],z=P,f=C[p]):(E=d.orig_x||_||y,C=d.orig_y||w||x,u=_?E[h]:(E[h]+E[h+1])/2,f=w?C[p]:(C[p]+C[p+1])/2,m&amp;&amp;&quot;category&quot;===m.type&amp;&amp;(u=y[h]),v&amp;&amp;&quot;category&quot;===v.type&amp;&amp;(f=x[p]),g.zsmooth&amp;&amp;(L=I=m.c2p(u),P=z=v.c2p(f)));var O=b[p][h];if(T&amp;&amp;!T[p][h]&amp;&amp;(O=void 0),void 0!==O||g.hoverongaps){var D;Array.isArray(d.hovertext)&amp;&amp;Array.isArray(d.hovertext[p])?D=d.hovertext[p][h]:Array.isArray(d.text)&amp;&amp;Array.isArray(d.text[p])&amp;&amp;(D=d.text[p][h]);var R=o(g),F={type:&quot;linear&quot;,range:[R.min,R.max],hoverformat:k,_separators:m._separators,_numFormat:m._numFormat},B=a.tickText(F,O,&quot;hover&quot;).text;return[i.extendFlat(t,{index:g._after2before?g._after2before[p][h]:[p,h],distance:t.maxHoverDistance,spikeDistance:t.maxSpikeDistance,x0:L,x1:I,y0:P,y1:z,xLabelVal:u,yLabelVal:f,zLabelVal:O,zLabel:B,text:D})]}}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1073:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:t(&quot;./colorbar&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;),moduleType:&quot;trace&quot;,name:&quot;heatmap&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1065,&quot;./calc&quot;:1066,&quot;./colorbar&quot;:1068,&quot;./defaults&quot;:1070,&quot;./hover&quot;:1072,&quot;./plot&quot;:1076,&quot;./style&quot;:1077}],1074:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=[[-1,0],[1,0],[0,-1],[0,1]];function a(t){return.5-.25*Math.min(1,.5*t)}function o(t,e,r){var n,a,o,s,l,c,u,f,h,p,d,g,m,v=0;for(s=0;s&lt;e.length;s++){for(a=(n=e[s])[0],o=n[1],d=t[a][o],p=0,h=0,l=0;l&lt;4;l++)(u=t[a+(c=i[l])[0]])&amp;&amp;void 0!==(f=u[o+c[1]])&amp;&amp;(0===p?g=m=f:(g=Math.min(g,f),m=Math.max(m,f)),h++,p+=f);if(0===h)throw&quot;iterateInterp2d order is wrong: no defined neighbors&quot;;t[a][o]=p/h,void 0===d?h&lt;4&amp;&amp;(v=1):(t[a][o]=(1+r)*t[a][o]-r*d,m&gt;g&amp;&amp;(v=Math.max(v,Math.abs(t[a][o]-d)/(m-g))))}return v}e.exports=function(t,e){var r,i=1;for(o(t,e),r=0;r&lt;e.length&amp;&amp;!(e[r][2]&lt;4);r++);for(e=e.slice(r),r=0;r&lt;100&amp;&amp;i&gt;.01;r++)i=o(t,e,a(i));return i&gt;.01&amp;&amp;n.log(&quot;interp2d didn't converge quickly&quot;,i),t}},{&quot;../../lib&quot;:778}],1075:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a,o,s){var l,c,u,f=[],h=n.traceIs(t,&quot;contour&quot;),p=n.traceIs(t,&quot;histogram&quot;),d=n.traceIs(t,&quot;gl2d&quot;);if(i(e)&amp;&amp;e.length&gt;1&amp;&amp;!p&amp;&amp;&quot;category&quot;!==s.type){var g=e.length;if(!(g&lt;=o))return h?e.slice(0,o):e.slice(0,o+1);if(h||d)f=e.slice(0,o);else if(1===o)f=[e[0]-.5,e[0]+.5];else{for(f=[1.5*e[0]-.5*e[1]],u=1;u&lt;g;u++)f.push(.5*(e[u-1]+e[u]));f.push(1.5*e[g-1]-.5*e[g-2])}if(g&lt;o){var m=f[f.length-1],v=m-f[f.length-2];for(u=g;u&lt;o;u++)m+=v,f.push(m)}}else{var y=t[s._id.charAt(0)+&quot;calendar&quot;];if(p)l=s.r2c(r,0,y);else if(i(e)&amp;&amp;1===e.length)l=e[0];else if(void 0===r)l=0;else{l=(&quot;log&quot;===s.type?s.d2c:s.r2c)(r,0,y)}for(c=a||1,u=h||d?0:-.5;u&lt;o;u++)f.push(l+c*u)}return f}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1076:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../components/colorscale&quot;).makeColorScaleFuncFromTrace,l=t(&quot;../../constants/xmlns_namespaces&quot;);function c(t,e){var r=e.length-2,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=e[n+1],s=o.constrain(n+(t-i)/(a-i)-.5,0,r),l=Math.round(s),c=Math.abs(s-l);return s&amp;&amp;s!==r&amp;&amp;c?{bin0:l,frac:c,bin1:Math.round(l+c/(s-l))}:{bin0:l,bin1:l,frac:0}}function u(t,e){var r=e.length-1,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=(t-i)/(e[n+1]-i)||0;return a&lt;=0?{bin0:n,bin1:n,frac:0}:a&lt;.5?{bin0:n,bin1:n+1,frac:a}:{bin0:n+1,bin1:n,frac:1-a}}function f(t,e,r){t[e]=r[0],t[e+1]=r[1],t[e+2]=r[2],t[e+3]=Math.round(255*r[3])}e.exports=function(t,e,r,h){var p=e.xaxis,d=e.yaxis;o.makeTraceGroups(h,r,&quot;hm&quot;).each((function(e){var r,h,g,m,v,y,x=n.select(this),b=e[0],_=b.trace,w=b.z,T=b.x,k=b.y,M=b.xCenter,A=b.yCenter,S=a.traceIs(_,&quot;contour&quot;),E=S?&quot;best&quot;:_.zsmooth,C=w.length,L=o.maxRowLength(w),I=!1,P=!1;for(y=0;void 0===r&amp;&amp;y&lt;T.length-1;)r=p.c2p(T[y]),y++;for(y=T.length-1;void 0===h&amp;&amp;y&gt;0;)h=p.c2p(T[y]),y--;for(h&lt;r&amp;&amp;(g=h,h=r,r=g,I=!0),y=0;void 0===m&amp;&amp;y&lt;k.length-1;)m=d.c2p(k[y]),y++;for(y=k.length-1;void 0===v&amp;&amp;y&gt;0;)v=d.c2p(k[y]),y--;if(v&lt;m&amp;&amp;(g=m,m=v,v=g,P=!0),S&amp;&amp;(M=T,A=k,T=b.xfill,k=b.yfill),&quot;fast&quot;!==E){var z=&quot;best&quot;===E?0:.5;r=Math.max(-z*p._length,r),h=Math.min((1+z)*p._length,h),m=Math.max(-z*d._length,m),v=Math.min((1+z)*d._length,v)}var O=Math.round(h-r),D=Math.round(v-m);if(O&lt;=0||D&lt;=0){x.selectAll(&quot;image&quot;).data([]).exit().remove()}else{var R,F;&quot;fast&quot;===E?(R=L,F=C):(R=O,F=D);var B=document.createElement(&quot;canvas&quot;);B.width=R,B.height=F;var N,j,U=B.getContext(&quot;2d&quot;),V=s(_,{noNumericCheck:!0,returnArray:!0});&quot;fast&quot;===E?(N=I?function(t){return L-1-t}:o.identity,j=P?function(t){return C-1-t}:o.identity):(N=function(t){return o.constrain(Math.round(p.c2p(T[t])-r),0,O)},j=function(t){return o.constrain(Math.round(d.c2p(k[t])-m),0,D)});var q,H,G,Y,W,X=j(0),Z=[X,X],J=I?0:1,K=P?0:1,Q=0,$=0,tt=0,et=0;if(E){var rt,nt=0;try{rt=new Uint8Array(O*D*4)}catch(t){rt=new Array(O*D*4)}if(&quot;best&quot;===E){var it,at,ot,st=M||T,lt=A||k,ct=new Array(st.length),ut=new Array(lt.length),ft=new Array(O),ht=M?u:c,pt=A?u:c;for(y=0;y&lt;st.length;y++)ct[y]=Math.round(p.c2p(st[y])-r);for(y=0;y&lt;lt.length;y++)ut[y]=Math.round(d.c2p(lt[y])-m);for(y=0;y&lt;O;y++)ft[y]=ht(y,ct);for(H=0;H&lt;D;H++)for(at=w[(it=pt(H,ut)).bin0],ot=w[it.bin1],y=0;y&lt;O;y++,nt+=4)f(rt,nt,W=kt(at,ot,ft[y],it))}else for(H=0;H&lt;C;H++)for(Y=w[H],Z=j(H),y=0;y&lt;O;y++)W=Tt(Y[y],1),f(rt,nt=4*(Z*O+N(y)),W);var dt=U.createImageData(O,D);try{dt.data.set(rt)}catch(t){var gt=dt.data,mt=gt.length;for(H=0;H&lt;mt;H++)gt[H]=rt[H]}U.putImageData(dt,0,0)}else{var vt=_.xgap,yt=_.ygap,xt=Math.floor(vt/2),bt=Math.floor(yt/2);for(H=0;H&lt;C;H++)if(Y=w[H],Z.reverse(),Z[K]=j(H+1),Z[0]!==Z[1]&amp;&amp;void 0!==Z[0]&amp;&amp;void 0!==Z[1])for(q=[G=N(0),G],y=0;y&lt;L;y++)q.reverse(),q[J]=N(y+1),q[0]!==q[1]&amp;&amp;void 0!==q[0]&amp;&amp;void 0!==q[1]&amp;&amp;(W=Tt(Y[y],(q[1]-q[0])*(Z[1]-Z[0])),U.fillStyle=&quot;rgba(&quot;+W.join(&quot;,&quot;)+&quot;)&quot;,U.fillRect(q[0]+xt,Z[0]+bt,q[1]-q[0]-vt,Z[1]-Z[0]-yt))}$=Math.round($/Q),tt=Math.round(tt/Q),et=Math.round(et/Q);var _t=i(&quot;rgb(&quot;+$+&quot;,&quot;+tt+&quot;,&quot;+et+&quot;)&quot;);t._hmpixcount=(t._hmpixcount||0)+Q,t._hmlumcount=(t._hmlumcount||0)+Q*_t.getLuminance();var wt=x.selectAll(&quot;image&quot;).data(e);wt.enter().append(&quot;svg:image&quot;).attr({xmlns:l.svg,preserveAspectRatio:&quot;none&quot;}),wt.attr({height:D,width:O,x:r,y:m,&quot;xlink:href&quot;:B.toDataURL(&quot;image/png&quot;)})}function Tt(t,e){if(void 0!==t){var r=V(t);return r[0]=Math.round(r[0]),r[1]=Math.round(r[1]),r[2]=Math.round(r[2]),Q+=e,$+=r[0]*e,tt+=r[1]*e,et+=r[2]*e,r}return[0,0,0,0]}function kt(t,e,r,n){var i=t[r.bin0];if(void 0===i)return Tt(void 0,1);var a,o=t[r.bin1],s=e[r.bin0],l=e[r.bin1],c=o-i||0,u=s-i||0;return a=void 0===o?void 0===l?0:void 0===s?2*(l-i):2*(2*l-s-i)/3:void 0===l?void 0===s?0:2*(2*i-o-s)/3:void 0===s?2*(2*l-o-i)/3:l+i-o-s,Tt(i+r.frac*c+n.frac*(u+r.frac*a))}}))}},{&quot;../../components/colorscale&quot;:655,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,d3:169,tinycolor2:576}],1077:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t){n.select(t).selectAll(&quot;.hm image&quot;).style(&quot;opacity&quot;,(function(t){return t.trace.opacity}))}},{d3:169}],1078:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){!1===r(&quot;zsmooth&quot;)&amp;&amp;(r(&quot;xgap&quot;),r(&quot;ygap&quot;)),r(&quot;zhoverformat&quot;)}},{}],1079:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;);function o(t,e){var r=e(t);return&quot;scaled&quot;===(r?e(t+&quot;type&quot;,&quot;array&quot;):&quot;scaled&quot;)&amp;&amp;(e(t+&quot;0&quot;),e(&quot;d&quot;+t)),r}e.exports=function(t,e,r,s,l,c){var u,f,h=r(&quot;z&quot;);if(l=l||&quot;x&quot;,c=c||&quot;y&quot;,void 0===h||!h.length)return 0;if(i.isArray1D(t.z)){u=r(l),f=r(c);var p=i.minRowLength(u),d=i.minRowLength(f);if(0===p||0===d)return 0;e._length=Math.min(p,d,h.length)}else{if(u=o(l,r),f=o(c,r),!function(t){for(var e,r=!0,a=!1,o=!1,s=0;s&lt;t.length;s++){if(e=t[s],!i.isArrayOrTypedArray(e)){r=!1;break}e.length&gt;0&amp;&amp;(a=!0);for(var l=0;l&lt;e.length;l++)if(n(e[l])){o=!0;break}}return r&amp;&amp;a&amp;&amp;o}(h))return 0;r(&quot;transpose&quot;),e._length=null}return&quot;heatmapgl&quot;===t.type||&quot;contourgl&quot;===t.type||a.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[l,c],s),!0}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;fast-isnumeric&quot;:241}],1080:[function(t,e,r){&quot;use strict&quot;;for(var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=[&quot;z&quot;,&quot;x&quot;,&quot;x0&quot;,&quot;dx&quot;,&quot;y&quot;,&quot;y0&quot;,&quot;dy&quot;,&quot;text&quot;,&quot;transpose&quot;,&quot;xtype&quot;,&quot;ytype&quot;],l={},c=0;c&lt;s.length;c++){var u=s[c];l[u]=n[u]}l.zsmooth={valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,!1],dflt:&quot;fast&quot;,editType:&quot;calc&quot;},a(l,i(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1})),e.exports=o(l,&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../heatmap/attributes&quot;:1065}],1081:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-heatmap2d&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../lib/str2rgbarray&quot;);function o(t,e){this.scene=t,this.uid=e,this.type=&quot;heatmapgl&quot;,this.name=&quot;&quot;,this.hoverinfo=&quot;all&quot;,this.xData=[],this.yData=[],this.zData=[],this.textLabels=[],this.idToIndex=[],this.bounds=[0,0,0,0],this.options={zsmooth:&quot;fast&quot;,z:[],x:[],y:[],shape:[0,0],colorLevels:[0],colorValues:[0,0,0,1]},this.heatmap=n(t.glplot,this.options),this.heatmap._trace=this}var s=o.prototype;s.handlePick=function(t){var e=this.options,r=e.shape,n=t.pointId,i=n%r[0],a=Math.floor(n/r[0]),o=n;return{trace:this,dataCoord:t.dataCoord,traceCoord:[e.x[i],e.y[a],e.z[o]],textLabel:this.textLabels[n],name:this.name,pointIndex:[a,i],hoverinfo:this.hoverinfo}},s.update=function(t,e){var r=e[0];this.index=t.index,this.name=t.name,this.hoverinfo=t.hoverinfo;var n=r.z;this.options.z=[].concat.apply([],n);var o=n[0].length,s=n.length;this.options.shape=[o,s],this.options.x=r.x,this.options.y=r.y,this.options.zsmooth=t.zsmooth;var l=function(t){for(var e=t.colorscale,r=t.zmin,n=t.zmax,i=e.length,o=new Array(i),s=new Array(4*i),l=0;l&lt;i;l++){var c=e[l],u=a(c[1]);o[l]=r+c[0]*(n-r);for(var f=0;f&lt;4;f++)s[4*l+f]=u[f]}return{colorLevels:o,colorValues:s}}(t);this.options.colorLevels=l.colorLevels,this.options.colorValues=l.colorValues,this.textLabels=[].concat.apply([],t.text),this.heatmap.update(this.options);var c,u,f=this.scene.xaxis,h=this.scene.yaxis;!1===t.zsmooth&amp;&amp;(c={ppad:r.x[1]-r.x[0]},u={ppad:r.y[1]-r.y[0]}),t._extremes[f._id]=i.findExtremes(f,r.x,c),t._extremes[h._id]=i.findExtremes(h,r.y,u)},s.dispose=function(){this.heatmap.dispose()},e.exports=function(t,e,r){var n=new o(t,e.uid);return n.update(e,r),n}},{&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/axes&quot;:828,&quot;gl-heatmap2d&quot;:271}],1082:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,l,s)?(l(&quot;text&quot;),l(&quot;zsmooth&quot;),a(t,e,s,l,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../heatmap/xyz_defaults&quot;:1079,&quot;./attributes&quot;:1080}],1083:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;../heatmap/calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;heatmapgl&quot;,basePlotModule:t(&quot;../../plots/gl2d&quot;),categories:[&quot;gl&quot;,&quot;gl2d&quot;,&quot;2dMap&quot;],meta:{}}},{&quot;../../plots/gl2d&quot;:868,&quot;../heatmap/calc&quot;:1066,&quot;../heatmap/colorbar&quot;:1068,&quot;./attributes&quot;:1080,&quot;./convert&quot;:1081,&quot;./defaults&quot;:1082}],1084:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;./bin_attributes&quot;),o=t(&quot;./constants&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},text:s({},n.text,{}),hovertext:s({},n.hovertext,{}),orientation:n.orientation,histfunc:{valType:&quot;enumerated&quot;,values:[&quot;count&quot;,&quot;sum&quot;,&quot;avg&quot;,&quot;min&quot;,&quot;max&quot;],dflt:&quot;count&quot;,editType:&quot;calc&quot;},histnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;percent&quot;,&quot;probability&quot;,&quot;density&quot;,&quot;probability density&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},cumulative:{enabled:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;increasing&quot;,&quot;decreasing&quot;],dflt:&quot;increasing&quot;,editType:&quot;calc&quot;},currentbin:{valType:&quot;enumerated&quot;,values:[&quot;include&quot;,&quot;exclude&quot;,&quot;half&quot;],dflt:&quot;include&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},nbinsx:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},xbins:a(&quot;x&quot;,!0),nbinsy:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},ybins:a(&quot;y&quot;,!0),autobinx:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},autobiny:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},bingroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertemplate:i({},{keys:o.eventDataKeys}),marker:n.marker,offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,_deprecated:{bardir:n._deprecated.bardir}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;./bin_attributes&quot;:1086,&quot;./constants&quot;:1090}],1085:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=t.length,n=0,i=0;i&lt;r;i++)e[i]?(t[i]/=e[i],n+=t[i]):t[i]=null;return n}},{}],1086:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return{start:{valType:&quot;any&quot;,editType:&quot;calc&quot;},end:{valType:&quot;any&quot;,editType:&quot;calc&quot;},size:{valType:&quot;any&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;}}},{}],1087:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports={count:function(t,e,r){return r[t]++,1},sum:function(t,e,r,i){var a=i[e];return n(a)?(a=Number(a),r[t]+=a,a):0},avg:function(t,e,r,i,a){var o=i[e];return n(o)&amp;&amp;(o=Number(o),r[t]+=o,a[t]++),0},min:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]&gt;a){var o=a-r[t];return r[t]=a,o}}return 0},max:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]&lt;a){var o=a-r[t];return r[t]=a,o}}return 0}}},{&quot;fast-isnumeric&quot;:241}],1088:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/numerical&quot;),i=n.ONEAVGYEAR,a=n.ONEAVGMONTH,o=n.ONEDAY,s=n.ONEHOUR,l=n.ONEMIN,c=n.ONESEC,u=t(&quot;../../plots/cartesian/axes&quot;).tickIncrement;function f(t,e,r,n){if(t*e&lt;=0)return 1/0;for(var i=Math.abs(e-t),a=&quot;date&quot;===r.type,o=h(i,a),s=0;s&lt;10;s++){var l=h(80*o,a);if(o===l)break;if(!p(l,t,e,a,r,n))break;o=l}return o}function h(t,e){return e&amp;&amp;t&gt;c?t&gt;o?t&gt;1.1*i?i:t&gt;1.1*a?a:o:t&gt;s?s:t&gt;l?l:c:Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function p(t,e,r,n,a,s){if(n&amp;&amp;t&gt;o){var l=d(e,a,s),c=d(r,a,s),u=t===i?0:1;return l[u]!==c[u]}return Math.floor(r/t)-Math.floor(e/t)&gt;.1}function d(t,e,r){var n=e.c2d(t,i,r).split(&quot;-&quot;);return&quot;&quot;===n[0]&amp;&amp;(n.unshift(),n[0]=&quot;-&quot;+n[0]),n}e.exports=function(t,e,r,n,a){var s,l,c=-1.1*e,h=-.1*e,p=t-h,d=r[0],g=r[1],m=Math.min(f(d+h,d+p,n,a),f(g+h,g+p,n,a)),v=Math.min(f(d+c,d+h,n,a),f(g+c,g+h,n,a));if(m&gt;v&amp;&amp;v&lt;Math.abs(g-d)/4e3?(s=m,l=!1):(s=Math.min(m,v),l=!0),&quot;date&quot;===n.type&amp;&amp;s&gt;o){var y=s===i?1:6,x=s===i?&quot;M12&quot;:&quot;M1&quot;;return function(e,r){var o=n.c2d(e,i,a),s=o.indexOf(&quot;-&quot;,y);s&gt;0&amp;&amp;(o=o.substr(0,s));var c=n.d2c(o,0,a);if(c&lt;e){var f=u(c,x,!1,a);(c+f)/2&lt;e+t&amp;&amp;(c=f)}return r&amp;&amp;l?u(c,x,!0,a):c}}return function(e,r){var n=s*Math.round(e/s);return n+s/10&lt;e&amp;&amp;n+.9*s&lt;e+t&amp;&amp;(n+=s),r&amp;&amp;l&amp;&amp;(n-=s),n}}},{&quot;../../constants/numerical&quot;:753,&quot;../../plots/cartesian/axes&quot;:828}],1089:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../bar/arrays_to_calcdata&quot;),l=t(&quot;./bin_functions&quot;),c=t(&quot;./norm_functions&quot;),u=t(&quot;./average&quot;),f=t(&quot;./bin_label_vals&quot;);function h(t,e,r,s,l){var c,u,f,p,d,g,m,v=s+&quot;bins&quot;,y=t._fullLayout,x=e[&quot;_&quot;+s+&quot;bingroup&quot;],b=y._histogramBinOpts[x],_=&quot;overlay&quot;===y.barmode,w=function(t){return r.r2c(t,0,p)},T=function(t){return r.c2r(t,0,p)},k=&quot;date&quot;===r.type?function(t){return t||0===t?i.cleanDate(t,null,p):null}:function(t){return n(t)?Number(t):null};function M(t,e,r){e[t+&quot;Found&quot;]?(e[t]=k(e[t]),null===e[t]&amp;&amp;(e[t]=r[t])):(g[t]=e[t]=r[t],i.nestedProperty(u[0],v+&quot;.&quot;+t).set(r[t]))}if(e[&quot;_&quot;+s+&quot;autoBinFinished&quot;])delete e[&quot;_&quot;+s+&quot;autoBinFinished&quot;];else{u=b.traces;var A=[],S=!0,E=!1,C=!1;for(c=0;c&lt;u.length;c++)if((f=u[c]).visible){var L=b.dirs[c];d=f[&quot;_&quot;+L+&quot;pos0&quot;]=r.makeCalcdata(f,L),A=i.concat(A,d),delete f[&quot;_&quot;+s+&quot;autoBinFinished&quot;],!0===e.visible&amp;&amp;(S?S=!1:(delete f._autoBin,f[&quot;_&quot;+s+&quot;autoBinFinished&quot;]=1),a.traceIs(f,&quot;2dMap&quot;)&amp;&amp;(E=!0),&quot;histogram2dcontour&quot;===f.type&amp;&amp;(C=!0))}p=u[0][s+&quot;calendar&quot;];var I=o.autoBin(A,r,b.nbins,E,p,b.sizeFound&amp;&amp;b.size),P=u[0]._autoBin={};if(g=P[b.dirs[0]]={},C&amp;&amp;(b.size||(I.start=T(o.tickIncrement(w(I.start),I.size,!0,p))),void 0===b.end&amp;&amp;(I.end=T(o.tickIncrement(w(I.end),I.size,!1,p)))),_&amp;&amp;!a.traceIs(e,&quot;2dMap&quot;)&amp;&amp;0===I._dataSpan&amp;&amp;&quot;category&quot;!==r.type&amp;&amp;&quot;multicategory&quot;!==r.type){if(l)return[I,d,!0];I=function(t,e,r,n,a){var o,s,l,c=t._fullLayout,u=function(t,e){for(var r=e.xaxis,n=e.yaxis,i=e.orientation,a=[],o=t._fullData,s=0;s&lt;o.length;s++){var l=o[s];&quot;histogram&quot;===l.type&amp;&amp;!0===l.visible&amp;&amp;l.orientation===i&amp;&amp;l.xaxis===r&amp;&amp;l.yaxis===n&amp;&amp;a.push(l)}return a}(t,e),f=!1,p=1/0,d=[e];for(o=0;o&lt;u.length;o++)if((s=u[o])===e)f=!0;else if(f){var g=h(t,s,r,n,!0),m=g[0],v=g[2];s[&quot;_&quot;+n+&quot;autoBinFinished&quot;]=1,s[&quot;_&quot;+n+&quot;pos0&quot;]=g[1],v?d.push(s):p=Math.min(p,m.size)}else l=c._histogramBinOpts[s[&quot;_&quot;+n+&quot;bingroup&quot;]],p=Math.min(p,l.size||s[a].size);var y=new Array(d.length);for(o=0;o&lt;d.length;o++)for(var x=d[o][&quot;_&quot;+n+&quot;pos0&quot;],b=0;b&lt;x.length;b++)if(void 0!==x[b]){y[o]=x[b];break}isFinite(p)||(p=i.distinctVals(y).minDiff);for(o=0;o&lt;d.length;o++){var _=(s=d[o])[n+&quot;calendar&quot;],w={start:r.c2r(y[o]-p/2,0,_),end:r.c2r(y[o]+p/2,0,_),size:p};s._input[a]=s[a]=w,(l=c._histogramBinOpts[s[&quot;_&quot;+n+&quot;bingroup&quot;]])&amp;&amp;i.extendFlat(l,w)}return e[a]}(t,e,r,s,v)}(m=f.cumulative||{}).enabled&amp;&amp;&quot;include&quot;!==m.currentbin&amp;&amp;(&quot;decreasing&quot;===m.direction?I.start=T(o.tickIncrement(w(I.start),I.size,!0,p)):I.end=T(o.tickIncrement(w(I.end),I.size,!1,p))),b.size=I.size,b.sizeFound||(g.size=I.size,i.nestedProperty(u[0],v+&quot;.size&quot;).set(I.size)),M(&quot;start&quot;,b,I),M(&quot;end&quot;,b,I)}d=e[&quot;_&quot;+s+&quot;pos0&quot;],delete e[&quot;_&quot;+s+&quot;pos0&quot;];var z=e._input[v]||{},O=i.extendFlat({},b),D=b.start,R=r.r2l(z.start),F=void 0!==R;if((b.startFound||F)&amp;&amp;R!==r.r2l(D)){var B=F?R:i.aggNums(Math.min,null,d),N={type:&quot;category&quot;===r.type||&quot;multicategory&quot;===r.type?&quot;linear&quot;:r.type,r2l:r.r2l,dtick:b.size,tick0:D,calendar:p,range:[B,o.tickIncrement(B,b.size,!1,p)].map(r.l2r)},j=o.tickFirst(N);j&gt;r.r2l(B)&amp;&amp;(j=o.tickIncrement(j,b.size,!0,p)),O.start=r.l2r(j),F||i.nestedProperty(e,v+&quot;.start&quot;).set(O.start)}var U=b.end,V=r.r2l(z.end),q=void 0!==V;if((b.endFound||q)&amp;&amp;V!==r.r2l(U)){var H=q?V:i.aggNums(Math.max,null,d);O.end=r.l2r(H),q||i.nestedProperty(e,v+&quot;.start&quot;).set(O.end)}var G=&quot;autobin&quot;+s;return!1===e._input[G]&amp;&amp;(e._input[v]=i.extendFlat({},e[v]||{}),delete e._input[G],delete e[G]),[O,d]}e.exports={calc:function(t,e){var r,a,p,d,g=[],m=[],v=o.getFromId(t,&quot;h&quot;===e.orientation?e.yaxis:e.xaxis),y=&quot;h&quot;===e.orientation?&quot;y&quot;:&quot;x&quot;,x={x:&quot;y&quot;,y:&quot;x&quot;}[y],b=e[y+&quot;calendar&quot;],_=e.cumulative,w=h(t,e,v,y),T=w[0],k=w[1],M=&quot;string&quot;==typeof T.size,A=[],S=M?A:T,E=[],C=[],L=[],I=0,P=e.histnorm,z=e.histfunc,O=-1!==P.indexOf(&quot;density&quot;);_.enabled&amp;&amp;O&amp;&amp;(P=P.replace(/ ?density$/,&quot;&quot;),O=!1);var D,R=&quot;max&quot;===z||&quot;min&quot;===z?null:0,F=l.count,B=c[P],N=!1,j=function(t){return v.r2c(t,0,b)};for(i.isArrayOrTypedArray(e[x])&amp;&amp;&quot;count&quot;!==z&amp;&amp;(D=e[x],N=&quot;avg&quot;===z,F=l[z]),r=j(T.start),p=j(T.end)+(r-o.tickIncrement(r,T.size,!1,b))/1e6;r&lt;p&amp;&amp;g.length&lt;1e6&amp;&amp;(a=o.tickIncrement(r,T.size,!1,b),g.push((r+a)/2),m.push(R),L.push([]),A.push(r),O&amp;&amp;E.push(1/(a-r)),N&amp;&amp;C.push(0),!(a&lt;=r));)r=a;A.push(r),M||&quot;date&quot;!==v.type||(S={start:j(S.start),end:j(S.end),size:S.size}),t._fullLayout._roundFnOpts||(t._fullLayout._roundFnOpts={});var U=e[&quot;_&quot;+y+&quot;bingroup&quot;],V={leftGap:1/0,rightGap:1/0};U&amp;&amp;(t._fullLayout._roundFnOpts[U]||(t._fullLayout._roundFnOpts[U]=V),V=t._fullLayout._roundFnOpts[U]);var q,H=m.length,G=!0,Y=V.leftGap,W=V.rightGap,X={};for(r=0;r&lt;k.length;r++){var Z=k[r];(d=i.findBin(Z,S))&gt;=0&amp;&amp;d&lt;H&amp;&amp;(I+=F(d,r,m,D,C),G&amp;&amp;L[d].length&amp;&amp;Z!==k[L[d][0]]&amp;&amp;(G=!1),L[d].push(r),X[r]=d,Y=Math.min(Y,Z-A[d]),W=Math.min(W,A[d+1]-Z))}V.leftGap=Y,V.rightGap=W,G||(q=function(e,r){return function(){var n=t._fullLayout._roundFnOpts[U];return f(n.leftGap,n.rightGap,A,v,b)(e,r)}}),N&amp;&amp;(I=u(m,C)),B&amp;&amp;B(m,I,E),_.enabled&amp;&amp;function(t,e,r){var n,i,a;function o(e){a=t[e],t[e]/=2}function s(e){i=t[e],t[e]=a+i/2,a+=i}if(&quot;half&quot;===r)if(&quot;increasing&quot;===e)for(o(0),n=1;n&lt;t.length;n++)s(n);else for(o(t.length-1),n=t.length-2;n&gt;=0;n--)s(n);else if(&quot;increasing&quot;===e){for(n=1;n&lt;t.length;n++)t[n]+=t[n-1];&quot;exclude&quot;===r&amp;&amp;(t.unshift(0),t.pop())}else{for(n=t.length-2;n&gt;=0;n--)t[n]+=t[n+1];&quot;exclude&quot;===r&amp;&amp;(t.push(0),t.shift())}}(m,_.direction,_.currentbin);var J=Math.min(g.length,m.length),K=[],Q=0,$=J-1;for(r=0;r&lt;J;r++)if(m[r]){Q=r;break}for(r=J-1;r&gt;=Q;r--)if(m[r]){$=r;break}for(r=Q;r&lt;=$;r++)if(n(g[r])&amp;&amp;n(m[r])){var tt={p:g[r],s:m[r],b:0};_.enabled||(tt.pts=L[r],G?tt.ph0=tt.ph1=L[r].length?k[L[r][0]]:g[r]:(e._computePh=!0,tt.ph0=q(A[r]),tt.ph1=q(A[r+1],!0))),K.push(tt)}return 1===K.length&amp;&amp;(K[0].width1=o.tickIncrement(K[0].p,T.size,!1,b)-K[0].p),s(K,e),i.isArrayOrTypedArray(e.selectedpoints)&amp;&amp;i.tagSelected(K,e,X),K},calcAllAutoBins:h}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../bar/arrays_to_calcdata&quot;:920,&quot;./average&quot;:1085,&quot;./bin_functions&quot;:1087,&quot;./bin_label_vals&quot;:1088,&quot;./norm_functions&quot;:1096,&quot;fast-isnumeric&quot;:241}],1090:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;binNumber&quot;]}},{}],1091:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axis_ids&quot;),a=t(&quot;../../registry&quot;).traceIs,o=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,s=n.nestedProperty,l=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,c=[{aStr:{x:&quot;xbins.start&quot;,y:&quot;ybins.start&quot;},name:&quot;start&quot;},{aStr:{x:&quot;xbins.end&quot;,y:&quot;ybins.end&quot;},name:&quot;end&quot;},{aStr:{x:&quot;xbins.size&quot;,y:&quot;ybins.size&quot;},name:&quot;size&quot;},{aStr:{x:&quot;nbinsx&quot;,y:&quot;nbinsy&quot;},name:&quot;nbins&quot;}],u=[&quot;x&quot;,&quot;y&quot;];e.exports=function(t,e){var r,f,h,p,d,g,m,v=e._histogramBinOpts={},y=[],x={},b=[];function _(t,e){return n.coerce(r._input,r,r._module.attributes,t,e)}function w(t){return&quot;v&quot;===t.orientation?&quot;x&quot;:&quot;y&quot;}function T(t,r,a){var o=t.uid+&quot;__&quot;+a;r||(r=o);var s=function(t,r){return i.getFromTrace({_fullLayout:e},t,r).type}(t,a),l=t[a+&quot;calendar&quot;]||&quot;&quot;,c=v[r],u=!0;c&amp;&amp;(s===c.axType&amp;&amp;l===c.calendar?(u=!1,c.traces.push(t),c.dirs.push(a)):(r=o,s!==c.axType&amp;&amp;n.warn([&quot;Attempted to group the bins of trace&quot;,t.index,&quot;set on a&quot;,&quot;type:&quot;+s,&quot;axis&quot;,&quot;with bins on&quot;,&quot;type:&quot;+c.axType,&quot;axis.&quot;].join(&quot; &quot;)),l!==c.calendar&amp;&amp;n.warn([&quot;Attempted to group the bins of trace&quot;,t.index,&quot;set with a&quot;,l,&quot;calendar&quot;,&quot;with bins&quot;,c.calendar?&quot;on a &quot;+c.calendar+&quot; calendar&quot;:&quot;w/o a set calendar&quot;].join(&quot; &quot;)))),u&amp;&amp;(v[r]={traces:[t],dirs:[a],axType:s,calendar:t[a+&quot;calendar&quot;]||&quot;&quot;}),t[&quot;_&quot;+a+&quot;bingroup&quot;]=r}for(d=0;d&lt;t.length;d++)r=t[d],a(r,&quot;histogram&quot;)&amp;&amp;(y.push(r),delete r._xautoBinFinished,delete r._yautoBinFinished,a(r,&quot;2dMap&quot;)||o(r._input,r,e,_));var k=e._alignmentOpts||{};for(d=0;d&lt;y.length;d++){if(r=y[d],h=&quot;&quot;,!a(r,&quot;2dMap&quot;)){if(p=w(r),&quot;group&quot;===e.barmode&amp;&amp;r.alignmentgroup){var M=r[p+&quot;axis&quot;],A=l(e,M)+r.orientation;(k[A]||{})[r.alignmentgroup]&amp;&amp;(h=A)}h||&quot;overlay&quot;===e.barmode||(h=l(e,r.xaxis)+l(e,r.yaxis)+w(r))}h?(x[h]||(x[h]=[]),x[h].push(r)):b.push(r)}for(h in x)if(1!==(f=x[h]).length){var S=!1;for(f.length&amp;&amp;(r=f[0],S=_(&quot;bingroup&quot;)),h=S||h,d=0;d&lt;f.length;d++){var E=(r=f[d])._input.bingroup;E&amp;&amp;E!==h&amp;&amp;n.warn([&quot;Trace&quot;,r.index,&quot;must match&quot;,&quot;within bingroup&quot;,h+&quot;.&quot;,&quot;Ignoring its bingroup:&quot;,E,&quot;setting.&quot;].join(&quot; &quot;)),r.bingroup=h,T(r,h,w(r))}}else b.push(f[0]);for(d=0;d&lt;b.length;d++){r=b[d];var C=_(&quot;bingroup&quot;);if(a(r,&quot;2dMap&quot;))for(m=0;m&lt;2;m++){var L=_((p=u[m])+&quot;bingroup&quot;,C?C+&quot;__&quot;+p:null);T(r,L,p)}else T(r,C,w(r))}for(h in v){var I=v[h];for(f=I.traces,g=0;g&lt;c.length;g++){var P,z,O=c[g],D=O.name;if(&quot;nbins&quot;!==D||!I.sizeFound){for(d=0;d&lt;f.length;d++){if(r=f[d],p=I.dirs[d],P=O.aStr[p],void 0!==s(r._input,P).get()){I[D]=_(P),I[D+&quot;Found&quot;]=!0;break}(z=(r._autoBin||{})[p]||{})[D]&amp;&amp;s(r,P).set(z[D])}if(&quot;start&quot;===D||&quot;end&quot;===D)for(;d&lt;f.length;d++)(r=f[d])[&quot;_&quot;+p+&quot;bingroup&quot;]&amp;&amp;_(P,(z=(r._autoBin||{})[p]||{})[D]);&quot;nbins&quot;!==D||I.sizeFound||I.nbinsFound||(r=f[0],I[D]=_(P))}}}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/cartesian/constraints&quot;:835,&quot;../../registry&quot;:911,&quot;../bar/defaults&quot;:925}],1092:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../bar/style_defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,n){return i.coerce(t,e,s,r,n)}var u=c(&quot;x&quot;),f=c(&quot;y&quot;);c(&quot;cumulative.enabled&quot;)&amp;&amp;(c(&quot;cumulative.direction&quot;),c(&quot;cumulative.currentbin&quot;)),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;);var h=c(&quot;orientation&quot;,f&amp;&amp;!u?&quot;h&quot;:&quot;v&quot;),p=&quot;v&quot;===h?&quot;x&quot;:&quot;y&quot;,d=&quot;v&quot;===h?&quot;y&quot;:&quot;x&quot;,g=u&amp;&amp;f?Math.min(i.minRowLength(u)&amp;&amp;i.minRowLength(f)):i.minRowLength(e[p]||[]);if(g){e._length=g,n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],l),e[d]&amp;&amp;c(&quot;histfunc&quot;),c(&quot;histnorm&quot;),c(&quot;autobin&quot;+p),o(t,e,c,r,l),i.coerceSelectionMarkerOpacity(e,c);var m=(e.marker.line||{}).color,v=n.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);v(t,e,m||a.defaultLine,{axis:&quot;y&quot;}),v(t,e,m||a.defaultLine,{axis:&quot;x&quot;,inherit:&quot;y&quot;})}else e.visible=!1}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../bar/style_defaults&quot;:936,&quot;./attributes&quot;:1084}],1093:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){if(t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;zLabelVal&quot;in e&amp;&amp;(t.z=e.zLabelVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),!(r.cumulative||{}).enabled){var a,o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;if(t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex,r._indexToPoints){a=[];for(var s=0;s&lt;o.length;s++)a=a.concat(r._indexToPoints[o[s]])}else a=o;t.pointIndices=a}return t}},{}],1094:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/hover&quot;).hoverPoints,i=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText;e.exports=function(t,e,r,a){var o=n(t,e,r,a);if(o){var s=(t=o[0]).cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var c=&quot;h&quot;===l.orientation?&quot;y&quot;:&quot;x&quot;;t[c+&quot;Label&quot;]=i(t[c+&quot;a&quot;],s.ph0,s.ph1)}return o}}},{&quot;../../plots/cartesian/axes&quot;:828,&quot;../bar/hover&quot;:928}],1095:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;../bar/layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),supplyLayoutDefaults:t(&quot;../bar/layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;../bar/cross_trace_calc&quot;).crossTraceCalc,plot:t(&quot;../bar/plot&quot;).plot,layerName:&quot;barlayer&quot;,style:t(&quot;../bar/style&quot;).style,styleOnSelect:t(&quot;../bar/style&quot;).styleOnSelect,colorbar:t(&quot;../scatter/marker_colorbar&quot;),hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../bar/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;bar&quot;,&quot;histogram&quot;,&quot;oriented&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../bar/cross_trace_calc&quot;:924,&quot;../bar/layout_attributes&quot;:930,&quot;../bar/layout_defaults&quot;:931,&quot;../bar/plot&quot;:932,&quot;../bar/select&quot;:933,&quot;../bar/style&quot;:935,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1084,&quot;./calc&quot;:1089,&quot;./cross_trace_defaults&quot;:1091,&quot;./defaults&quot;:1092,&quot;./event_data&quot;:1093,&quot;./hover&quot;:1094}],1096:[function(t,e,r){&quot;use strict&quot;;e.exports={percent:function(t,e){for(var r=t.length,n=100/e,i=0;i&lt;r;i++)t[i]*=n},probability:function(t,e){for(var r=t.length,n=0;n&lt;r;n++)t[n]/=e},density:function(t,e,r,n){var i=t.length;n=n||1;for(var a=0;a&lt;i;a++)t[a]*=r[a]*n},&quot;probability density&quot;:function(t,e,r,n){var i=t.length;n&amp;&amp;(e/=n);for(var a=0;a&lt;i;a++)t[a]*=r[a]/e}}},{}],1097:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../histogram/attributes&quot;),i=t(&quot;../histogram/bin_attributes&quot;),a=t(&quot;../heatmap/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../components/colorscale/attributes&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=c({x:n.x,y:n.y,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},marker:{color:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:i(&quot;x&quot;),nbinsy:n.nbinsy,ybins:i(&quot;y&quot;),autobinx:n.autobinx,autobiny:n.autobiny,bingroup:c({},n.bingroup,{}),xbingroup:c({},n.bingroup,{}),ybingroup:c({},n.bingroup,{}),xgap:a.xgap,ygap:a.ygap,zsmooth:a.zsmooth,zhoverformat:a.zhoverformat,hovertemplate:s({},{keys:&quot;z&quot;}),showlegend:c({},o.showlegend,{dflt:!1})},l(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../heatmap/attributes&quot;:1065,&quot;../histogram/attributes&quot;:1084,&quot;../histogram/bin_attributes&quot;:1086}],1098:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../histogram/bin_functions&quot;),o=t(&quot;../histogram/norm_functions&quot;),s=t(&quot;../histogram/average&quot;),l=t(&quot;../histogram/bin_label_vals&quot;),c=t(&quot;../histogram/calc&quot;).calcAllAutoBins;function u(t,e,r,n){var i,a=new Array(t);if(n)for(i=0;i&lt;t;i++)a[i]=1/(e[i+1]-e[i]);else{var o=1/r;for(i=0;i&lt;t;i++)a[i]=o}return a}function f(t,e){return{start:t(e.start),end:t(e.end),size:e.size}}function h(t,e,r,n,i,a){var o,s=t.length-1,c=new Array(s),u=l(r,n,t,i,a);for(o=0;o&lt;s;o++){var f=(e||[])[o];c[o]=void 0===f?[u(t[o]),u(t[o+1],!0)]:[f,f]}return c}e.exports=function(t,e){var r,l,p,d,g=i.getFromId(t,e.xaxis),m=i.getFromId(t,e.yaxis),v=e.xcalendar,y=e.ycalendar,x=function(t){return g.r2c(t,0,v)},b=function(t){return m.r2c(t,0,y)},_=c(t,e,g,&quot;x&quot;),w=_[0],T=_[1],k=c(t,e,m,&quot;y&quot;),M=k[0],A=k[1],S=e._length;T.length&gt;S&amp;&amp;T.splice(S,T.length-S),A.length&gt;S&amp;&amp;A.splice(S,A.length-S);var E=[],C=[],L=[],I=&quot;string&quot;==typeof w.size,P=&quot;string&quot;==typeof M.size,z=[],O=[],D=I?z:w,R=P?O:M,F=0,B=[],N=[],j=e.histnorm,U=e.histfunc,V=-1!==j.indexOf(&quot;density&quot;),q=&quot;max&quot;===U||&quot;min&quot;===U?null:0,H=a.count,G=o[j],Y=!1,W=[],X=[],Z=&quot;z&quot;in e?e.z:&quot;marker&quot;in e&amp;&amp;Array.isArray(e.marker.color)?e.marker.color:&quot;&quot;;Z&amp;&amp;&quot;count&quot;!==U&amp;&amp;(Y=&quot;avg&quot;===U,H=a[U]);var J=w.size,K=x(w.start),Q=x(w.end)+(K-i.tickIncrement(K,J,!1,v))/1e6;for(r=K;r&lt;Q;r=i.tickIncrement(r,J,!1,v))C.push(q),z.push(r),Y&amp;&amp;L.push(0);z.push(r);var $,tt=C.length,et=(r-K)/tt,rt=($=K+et/2,g.c2r($,0,v)),nt=M.size,it=b(M.start),at=b(M.end)+(it-i.tickIncrement(it,nt,!1,y))/1e6;for(r=it;r&lt;at;r=i.tickIncrement(r,nt,!1,y)){E.push(C.slice()),O.push(r);var ot=new Array(tt);for(l=0;l&lt;tt;l++)ot[l]=[];N.push(ot),Y&amp;&amp;B.push(L.slice())}O.push(r);var st=E.length,lt=(r-it)/st,ct=function(t){return m.c2r(t,0,y)}(it+lt/2);V&amp;&amp;(W=u(C.length,D,et,I),X=u(E.length,R,lt,P)),I||&quot;date&quot;!==g.type||(D=f(x,D)),P||&quot;date&quot;!==m.type||(R=f(b,R));var ut=!0,ft=!0,ht=new Array(tt),pt=new Array(st),dt=1/0,gt=1/0,mt=1/0,vt=1/0;for(r=0;r&lt;S;r++){var yt=T[r],xt=A[r];p=n.findBin(yt,D),d=n.findBin(xt,R),p&gt;=0&amp;&amp;p&lt;tt&amp;&amp;d&gt;=0&amp;&amp;d&lt;st&amp;&amp;(F+=H(p,r,E[d],Z,B[d]),N[d][p].push(r),ut&amp;&amp;(void 0===ht[p]?ht[p]=yt:ht[p]!==yt&amp;&amp;(ut=!1)),ft&amp;&amp;(void 0===pt[d]?pt[d]=xt:pt[d]!==xt&amp;&amp;(ft=!1)),dt=Math.min(dt,yt-z[p]),gt=Math.min(gt,z[p+1]-yt),mt=Math.min(mt,xt-O[d]),vt=Math.min(vt,O[d+1]-xt))}if(Y)for(d=0;d&lt;st;d++)F+=s(E[d],B[d]);if(G)for(d=0;d&lt;st;d++)G(E[d],F,W,X[d]);return{x:T,xRanges:h(z,ut&amp;&amp;ht,dt,gt,g,v),x0:rt,dx:et,y:A,yRanges:h(O,ft&amp;&amp;pt,mt,vt,m,y),y0:ct,dy:lt,z:E,pts:N}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../histogram/average&quot;:1085,&quot;../histogram/bin_functions&quot;:1087,&quot;../histogram/bin_label_vals&quot;:1088,&quot;../histogram/calc&quot;:1089,&quot;../histogram/norm_functions&quot;:1096}],1099:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./sample_defaults&quot;),a=t(&quot;../heatmap/style_defaults&quot;),o=t(&quot;../../components/colorscale/defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&amp;&amp;(a(t,e,c,l),o(t,e,l,c,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),c(&quot;hovertemplate&quot;))}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../heatmap/style_defaults&quot;:1078,&quot;./attributes&quot;:1097,&quot;./sample_defaults&quot;:1102}],1100:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/hover&quot;),i=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText;e.exports=function(t,e,r,a,o,s){var l=n(t,e,r,a,o,s);if(l){var c=(t=l[0]).index,u=c[0],f=c[1],h=t.cd[0],p=h.xRanges[f],d=h.yRanges[u];return t.xLabel=i(t.xa,p[0],p[1]),t.yLabel=i(t.ya,d[0],d[1]),l}}},{&quot;../../plots/cartesian/axes&quot;:828,&quot;../heatmap/hover&quot;:1072}],1101:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../histogram/cross_trace_defaults&quot;),calc:t(&quot;../heatmap/calc&quot;),plot:t(&quot;../heatmap/plot&quot;),layerName:&quot;heatmaplayer&quot;,colorbar:t(&quot;../heatmap/colorbar&quot;),style:t(&quot;../heatmap/style&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;../histogram/event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram2d&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;histogram&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../heatmap/calc&quot;:1066,&quot;../heatmap/colorbar&quot;:1068,&quot;../heatmap/plot&quot;:1076,&quot;../heatmap/style&quot;:1077,&quot;../histogram/cross_trace_defaults&quot;:1091,&quot;../histogram/event_data&quot;:1093,&quot;./attributes&quot;:1097,&quot;./defaults&quot;:1099,&quot;./hover&quot;:1100}],1102:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=r(&quot;x&quot;),s=r(&quot;y&quot;),l=i.minRowLength(o),c=i.minRowLength(s);l&amp;&amp;c?(e._length=Math.min(l,c),n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],a),(r(&quot;z&quot;)||r(&quot;marker.color&quot;))&amp;&amp;r(&quot;histfunc&quot;),r(&quot;histnorm&quot;),r(&quot;autobinx&quot;),r(&quot;autobiny&quot;)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1103:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../histogram2d/attributes&quot;),i=t(&quot;../contour/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=o({x:n.x,y:n.y,z:n.z,marker:n.marker,histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:n.xbins,nbinsy:n.nbinsy,ybins:n.ybins,autobinx:n.autobinx,autobiny:n.autobiny,bingroup:n.bingroup,xbingroup:n.xbingroup,ybingroup:n.ybingroup,autocontour:i.autocontour,ncontours:i.ncontours,contours:i.contours,line:{color:i.line.color,width:o({},i.line.width,{dflt:.5}),dash:i.line.dash,smoothing:i.line.smoothing,editType:&quot;plot&quot;},zhoverformat:n.zhoverformat,hovertemplate:n.hovertemplate},a(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../contour/attributes&quot;:1008,&quot;../histogram2d/attributes&quot;:1097}],1104:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../histogram2d/sample_defaults&quot;),a=t(&quot;../contour/contours_defaults&quot;),o=t(&quot;../contour/style_defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&amp;&amp;(a(t,e,c,(function(r){return n.coerce2(t,e,s,r)})),o(t,e,c,l),c(&quot;hovertemplate&quot;))}},{&quot;../../lib&quot;:778,&quot;../contour/contours_defaults&quot;:1015,&quot;../contour/style_defaults&quot;:1029,&quot;../histogram2d/sample_defaults&quot;:1102,&quot;./attributes&quot;:1103}],1105:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../histogram/cross_trace_defaults&quot;),calc:t(&quot;../contour/calc&quot;),plot:t(&quot;../contour/plot&quot;).plot,layerName:&quot;contourlayer&quot;,style:t(&quot;../contour/style&quot;),colorbar:t(&quot;../contour/colorbar&quot;),hoverPoints:t(&quot;../contour/hover&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram2dcontour&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;contour&quot;,&quot;histogram&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../contour/calc&quot;:1009,&quot;../contour/colorbar&quot;:1011,&quot;../contour/hover&quot;:1021,&quot;../contour/plot&quot;:1026,&quot;../contour/style&quot;:1028,&quot;../histogram/cross_trace_defaults&quot;:1091,&quot;./attributes&quot;:1103,&quot;./defaults&quot;:1104}],1106:[function(t,e,r){&quot;use strict&quot;;for(var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;./constants&quot;).colormodel,s=[&quot;rgb&quot;,&quot;rgba&quot;,&quot;rgba256&quot;,&quot;hsl&quot;,&quot;hsla&quot;],l=[],c=[],u=0;u&lt;s.length;u++){var f=o[s[u]];l.push(&quot;For the `&quot;+s[u]+&quot;` colormodel, it is [&quot;+(f.zminDflt||f.min).join(&quot;, &quot;)+&quot;].&quot;),c.push(&quot;For the `&quot;+s[u]+&quot;` colormodel, it is [&quot;+(f.zmaxDflt||f.max).join(&quot;, &quot;)+&quot;].&quot;)}e.exports=a({source:{valType:&quot;string&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},colormodel:{valType:&quot;enumerated&quot;,values:s,editType:&quot;calc&quot;},zmin:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},zmax:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},x0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},y0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dx:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},dy:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},text:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hovertext:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hoverinfo:a({},n.hoverinfo,{flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;color&quot;,&quot;name&quot;,&quot;text&quot;],dflt:&quot;x+y+z+text+name&quot;}),hovertemplate:i({},{keys:[&quot;z&quot;,&quot;color&quot;,&quot;colormodel&quot;]}),transforms:void 0})},{&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;./constants&quot;:1108}],1107:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constants&quot;),a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../../lib&quot;).maxRowLength,l=t(&quot;./helpers&quot;).getImageSize;function c(t,e,r,i){return function(a){return n.constrain((a-t)*e,r,i)}}function u(t,e){return function(r){return n.constrain(r,t,e)}}e.exports=function(t,e){var r,n;if(e._hasZ)r=e.z.length,n=s(e.z);else if(e._hasSource){var f=l(e.source);r=f.height,n=f.width}var h,p=o.getFromId(t,e.xaxis||&quot;x&quot;),d=o.getFromId(t,e.yaxis||&quot;y&quot;),g=p.d2c(e.x0)-e.dx/2,m=d.d2c(e.y0)-e.dy/2,v=[g,g+n*e.dx],y=[m,m+r*e.dy];if(p&amp;&amp;&quot;log&quot;===p.type)for(h=0;h&lt;n;h++)v.push(g+h*e.dx);if(d&amp;&amp;&quot;log&quot;===d.type)for(h=0;h&lt;r;h++)y.push(m+h*e.dy);return e._extremes[p._id]=o.findExtremes(p,v),e._extremes[d._id]=o.findExtremes(d,y),e._scaler=function(t){var e=i.colormodel[t.colormodel],r=(e.colormodel||t.colormodel).length;t._sArray=[];for(var n=0;n&lt;r;n++)e.min[n]!==t.zmin[n]||e.max[n]!==t.zmax[n]?t._sArray.push(c(t.zmin[n],(e.max[n]-e.min[n])/(t.zmax[n]-t.zmin[n]),e.min[n],e.max[n])):t._sArray.push(u(e.min[n],e.max[n]));return function(e){for(var n=e.slice(0,r),i=0;i&lt;r;i++){var o=n[i];if(!a(o))return!1;n[i]=t._sArray[i](o)}return n}}(e),[{x0:g,y0:m,z:e.z,w:n,h:r}]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./constants&quot;:1108,&quot;./helpers&quot;:1111,&quot;fast-isnumeric&quot;:241}],1108:[function(t,e,r){&quot;use strict&quot;;e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(t){return t.slice(0,3)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]},rgba256:{colormodel:&quot;rgba&quot;,zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(t){var e=t.slice(0,3);return e[1]=e[1]+&quot;%&quot;,e[2]=e[2]+&quot;%&quot;,e},suffix:[&quot;\xb0&quot;,&quot;%&quot;,&quot;%&quot;]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(t){var e=t.slice(0,4);return e[1]=e[1]+&quot;%&quot;,e[2]=e[2]+&quot;%&quot;,e},suffix:[&quot;\xb0&quot;,&quot;%&quot;,&quot;%&quot;,&quot;&quot;]}}}},{}],1109:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./constants&quot;),o=t(&quot;../../snapshot/helpers&quot;).IMAGE_URL_PREFIX;e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;source&quot;),e.source&amp;&amp;!e.source.match(o)&amp;&amp;delete e.source,e._hasSource=!!e.source;var s,l=r(&quot;z&quot;);(e._hasZ=!(void 0===l||!l.length||!l[0]||!l[0].length),e._hasZ||e._hasSource)?(r(&quot;x0&quot;),r(&quot;y0&quot;),r(&quot;dx&quot;),r(&quot;dy&quot;),e._hasZ?(r(&quot;colormodel&quot;,&quot;rgb&quot;),r(&quot;zmin&quot;,(s=a.colormodel[e.colormodel]).zminDflt||s.min),r(&quot;zmax&quot;,s.zmaxDflt||s.max)):e._hasSource&amp;&amp;(e.colormodel=&quot;rgba256&quot;,s=a.colormodel[e.colormodel],e.zmin=s.zminDflt,e.zmax=s.zmaxDflt),r(&quot;text&quot;),r(&quot;hovertext&quot;),r(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../snapshot/helpers&quot;:915,&quot;./attributes&quot;:1106,&quot;./constants&quot;:1108}],1110:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return&quot;xVal&quot;in e&amp;&amp;(t.x=e.xVal),&quot;yVal&quot;in e&amp;&amp;(t.y=e.yVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t.color=e.color,t.colormodel=e.trace.colormodel,t.z||(t.z=e.color),t}},{}],1111:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;image-size&quot;),i=t(&quot;../../snapshot/helpers&quot;).IMAGE_URL_PREFIX,a=t(&quot;buffer/&quot;).Buffer;r.getImageSize=function(t){var e=t.replace(i,&quot;&quot;),r=new a(e,&quot;base64&quot;);return n(r)}},{&quot;../../snapshot/helpers&quot;:915,&quot;buffer/&quot;:111,&quot;image-size&quot;:444}],1112:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./constants&quot;);e.exports=function(t,e,r){var o=t.cd[0],s=o.trace,l=t.xa,c=t.ya;if(!(n.inbox(e-o.x0,e-(o.x0+o.w*s.dx),0)&gt;0||n.inbox(r-o.y0,r-(o.y0+o.h*s.dy),0)&gt;0)){var u,f=Math.floor((e-o.x0)/s.dx),h=Math.floor(Math.abs(r-o.y0)/s.dy);if(s._hasZ?u=o.z[h][f]:s._hasSource&amp;&amp;(u=s._canvas.el.getContext(&quot;2d&quot;).getImageData(f,h,1,1).data),u){var p,d=o.hi||s.hoverinfo;if(d){var g=d.split(&quot;+&quot;);-1!==g.indexOf(&quot;all&quot;)&amp;&amp;(g=[&quot;color&quot;]),-1!==g.indexOf(&quot;color&quot;)&amp;&amp;(p=!0)}var m,v=a.colormodel[s.colormodel],y=v.colormodel||s.colormodel,x=y.length,b=s._scaler(u),_=v.suffix,w=[];(s.hovertemplate||p)&amp;&amp;(w.push(&quot;[&quot;+[b[0]+_[0],b[1]+_[1],b[2]+_[2]].join(&quot;, &quot;)),4===x&amp;&amp;w.push(&quot;, &quot;+b[3]+_[3]),w.push(&quot;]&quot;),w=w.join(&quot;&quot;),t.extraText=y.toUpperCase()+&quot;: &quot;+w),Array.isArray(s.hovertext)&amp;&amp;Array.isArray(s.hovertext[h])?m=s.hovertext[h][f]:Array.isArray(s.text)&amp;&amp;Array.isArray(s.text[h])&amp;&amp;(m=s.text[h][f]);var T=c.c2p(o.y0+(h+.5)*s.dy),k=o.x0+(f+.5)*s.dx,M=o.y0+(h+.5)*s.dy,A=&quot;[&quot;+u.slice(0,s.colormodel.length).join(&quot;, &quot;)+&quot;]&quot;;return[i.extendFlat(t,{index:[h,f],x0:l.c2p(o.x0+f*s.dx),x1:l.c2p(o.x0+(f+1)*s.dx),y0:T,y1:T,color:b,xVal:k,xLabelVal:k,yVal:M,yLabelVal:M,zLabelVal:A,text:m,hovertemplateLabels:{zLabel:A,colorLabel:w,&quot;color[0]Label&quot;:b[0]+_[0],&quot;color[1]Label&quot;:b[1]+_[1],&quot;color[2]Label&quot;:b[2]+_[2],&quot;color[3]Label&quot;:b[3]+_[3]}})]}}}},{&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;./constants&quot;:1108}],1113:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;image&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;noSortingByValue&quot;],animatable:!1,meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1106,&quot;./calc&quot;:1107,&quot;./defaults&quot;:1109,&quot;./event_data&quot;:1110,&quot;./hover&quot;:1112,&quot;./plot&quot;:1114,&quot;./style&quot;:1115}],1114:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=i.strTranslate,o=t(&quot;../../constants/xmlns_namespaces&quot;),s=t(&quot;./constants&quot;),l=i.isIOS()||i.isSafari()||i.isIE();e.exports=function(t,e,r,c){var u=e.xaxis,f=e.yaxis,h=!(l||t._context._exportedPlot);i.makeTraceGroups(c,r,&quot;im&quot;).each((function(e){var r=n.select(this),l=e[0],c=l.trace,p=h&amp;&amp;!c._hasZ&amp;&amp;c._hasSource&amp;&amp;&quot;linear&quot;===u.type&amp;&amp;&quot;linear&quot;===f.type;c._fastImage=p;var d,g,m,v,y,x,b=l.z,_=l.x0,w=l.y0,T=l.w,k=l.h,M=c.dx,A=c.dy;for(x=0;void 0===d&amp;&amp;x&lt;T;)d=u.c2p(_+x*M),x++;for(x=T;void 0===g&amp;&amp;x&gt;0;)g=u.c2p(_+x*M),x--;for(x=0;void 0===v&amp;&amp;x&lt;k;)v=f.c2p(w+x*A),x++;for(x=k;void 0===y&amp;&amp;x&gt;0;)y=f.c2p(w+x*A),x--;if(g&lt;d&amp;&amp;(m=g,g=d,d=m),y&lt;v&amp;&amp;(m=v,v=y,y=m),!p){d=Math.max(-.5*u._length,d),g=Math.min(1.5*u._length,g),v=Math.max(-.5*f._length,v),y=Math.min(1.5*f._length,y)}var S=Math.round(g-d),E=Math.round(y-v);if(S&lt;=0||E&lt;=0){r.selectAll(&quot;image&quot;).data([]).exit().remove()}else{var C=r.selectAll(&quot;image&quot;).data([e]);C.enter().append(&quot;svg:image&quot;).attr({xmlns:o.svg,preserveAspectRatio:&quot;none&quot;}),C.exit().remove();var L=&quot;image-rendering: optimizeSpeed; image-rendering: -moz-crisp-edges; image-rendering: -o-crisp-edges; image-rendering: -webkit-optimize-contrast; image-rendering: optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;&quot;;if(p){var I=i.simpleMap(u.range,u.r2l),P=i.simpleMap(f.range,f.r2l),z=I[1]&lt;I[0],O=P[1]&gt;P[0];if(z||O){var D=d+S/2,R=v+E/2;L+=&quot;transform:&quot;+a(D+&quot;px&quot;,R+&quot;px&quot;)+&quot;scale(&quot;+(z?-1:1)+&quot;,&quot;+(O?-1:1)+&quot;)&quot;+a(-D+&quot;px&quot;,-R+&quot;px&quot;)+&quot;;&quot;}}C.attr(&quot;style&quot;,L);var F=new Promise((function(t){if(c._hasZ)t();else if(c._hasSource)if(c._canvas&amp;&amp;c._canvas.el.width===T&amp;&amp;c._canvas.el.height===k&amp;&amp;c._canvas.source===c.source)t();else{var e=document.createElement(&quot;canvas&quot;);e.width=T,e.height=k;var r=e.getContext(&quot;2d&quot;);c._image=c._image||new Image;var n=c._image;n.onload=function(){r.drawImage(n,0,0),c._canvas={el:e,source:c.source},t()},n.setAttribute(&quot;src&quot;,c.source)}})).then((function(){var t;if(c._hasZ)t=B((function(t,e){return b[e][t]})).toDataURL(&quot;image/png&quot;);else if(c._hasSource)if(p)t=c.source;else{var e=c._canvas.el.getContext(&quot;2d&quot;).getImageData(0,0,T,k).data;t=B((function(t,r){var n=4*(r*T+t);return[e[n],e[n+1],e[n+2],e[n+3]]})).toDataURL(&quot;image/png&quot;)}C.attr({&quot;xlink:href&quot;:t,height:E,width:S,x:d,y:v})}));t._promises.push(F)}function B(t){var e=document.createElement(&quot;canvas&quot;);e.width=S,e.height=E;var r,n=e.getContext(&quot;2d&quot;),a=function(t){return i.constrain(Math.round(u.c2p(_+t*M)-d),0,S)},o=function(t){return i.constrain(Math.round(f.c2p(w+t*A)-v),0,E)},h=s.colormodel[c.colormodel],p=h.colormodel||c.colormodel,g=h.fmt;for(x=0;x&lt;l.w;x++){var m=a(x),y=a(x+1);if(y!==m&amp;&amp;!isNaN(y)&amp;&amp;!isNaN(m))for(var b=0;b&lt;l.h;b++){var T=o(b),k=o(b+1);k===T||isNaN(k)||isNaN(T)||!t(x,b)||(r=c._scaler(t(x,b)),n.fillStyle=r?p+&quot;(&quot;+g(r).join(&quot;,&quot;)+&quot;)&quot;:&quot;rgba(0,0,0,0)&quot;,n.fillRect(m,T,y-m,k-T))}}return e}}))}},{&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;./constants&quot;:1108,d3:169}],1115:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t){n.select(t).selectAll(&quot;.im image&quot;).style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity}))}},{d3:169}],1116:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;../../lib/extend&quot;).extendDeep,a=t(&quot;../../plot_api/edit_types&quot;).overrideAll,o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../components/color/attributes&quot;),l=t(&quot;../../plots/domain&quot;).attributes,c=t(&quot;../../plots/cartesian/layout_attributes&quot;),u=t(&quot;../../plot_api/plot_template&quot;).templatedArray,f=t(&quot;../../constants/delta.js&quot;),h=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,o({editType:&quot;plot&quot;,colorEditType:&quot;plot&quot;})),p={color:{valType:&quot;color&quot;,editType:&quot;plot&quot;},line:{color:{valType:&quot;color&quot;,dflt:s.defaultLine,editType:&quot;plot&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},thickness:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;plot&quot;},editType:&quot;calc&quot;},d={valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},g=u(&quot;step&quot;,i({},p,{range:d}));e.exports={mode:{valType:&quot;flaglist&quot;,editType:&quot;calc&quot;,flags:[&quot;number&quot;,&quot;delta&quot;,&quot;gauge&quot;],dflt:&quot;number&quot;},value:{valType:&quot;number&quot;,editType:&quot;calc&quot;,anim:!0},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;plot&quot;},domain:l({name:&quot;indicator&quot;,trace:!0,editType:&quot;calc&quot;}),title:{text:{valType:&quot;string&quot;,editType:&quot;plot&quot;},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;plot&quot;},font:n({},h,{}),editType:&quot;plot&quot;},number:{valueformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},font:n({},h,{}),prefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},suffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;},delta:{reference:{valType:&quot;number&quot;,editType:&quot;calc&quot;},position:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;right&quot;],dflt:&quot;bottom&quot;,editType:&quot;plot&quot;},relative:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;,dflt:!1},valueformat:{valType:&quot;string&quot;,editType:&quot;plot&quot;},increasing:{symbol:{valType:&quot;string&quot;,dflt:f.INCREASING.SYMBOL,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:f.INCREASING.COLOR,editType:&quot;plot&quot;},editType:&quot;plot&quot;},decreasing:{symbol:{valType:&quot;string&quot;,dflt:f.DECREASING.SYMBOL,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:f.DECREASING.COLOR,editType:&quot;plot&quot;},editType:&quot;plot&quot;},font:n({},h,{}),editType:&quot;calc&quot;},gauge:{shape:{valType:&quot;enumerated&quot;,editType:&quot;plot&quot;,dflt:&quot;angular&quot;,values:[&quot;angular&quot;,&quot;bullet&quot;]},bar:i({},p,{color:{dflt:&quot;green&quot;}}),bgcolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:s.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},axis:a({range:d,visible:n({},c.visible,{dflt:!0}),tickmode:c.tickmode,nticks:c.nticks,tick0:c.tick0,dtick:c.dtick,tickvals:c.tickvals,ticktext:c.ticktext,ticks:n({},c.ticks,{dflt:&quot;outside&quot;}),ticklen:c.ticklen,tickwidth:c.tickwidth,tickcolor:c.tickcolor,showticklabels:c.showticklabels,tickfont:o({}),tickangle:c.tickangle,tickformat:c.tickformat,tickformatstops:c.tickformatstops,tickprefix:c.tickprefix,showtickprefix:c.showtickprefix,ticksuffix:c.ticksuffix,showticksuffix:c.showticksuffix,separatethousands:c.separatethousands,exponentformat:c.exponentformat,minexponent:c.minexponent,showexponent:c.showexponent,editType:&quot;plot&quot;},&quot;plot&quot;),steps:g,threshold:{line:{color:n({},p.line.color,{}),width:n({},p.line.width,{dflt:1}),editType:&quot;plot&quot;},thickness:n({},p.thickness,{dflt:.85}),value:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:!1},editType:&quot;plot&quot;},editType:&quot;plot&quot;}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../constants/delta.js&quot;:747,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856}],1117:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;indicator&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1118:[function(t,e,r){&quot;use strict&quot;;e.exports={calc:function(t,e){var r=[],n=e.value;&quot;number&quot;!=typeof e._lastValue&amp;&amp;(e._lastValue=e.value);var i=e._lastValue,a=i;return e._hasDelta&amp;&amp;&quot;number&quot;==typeof e.delta.reference&amp;&amp;(a=e.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}}},{}],1119:[function(t,e,r){&quot;use strict&quot;;e.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}},{}],1120:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../../plot_api/plot_template&quot;),s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;./constants.js&quot;),c=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),u=t(&quot;../../plots/cartesian/tick_mark_defaults&quot;),f=t(&quot;../../plots/cartesian/tick_label_defaults&quot;);function h(t,e){function r(r,a){return n.coerce(t,e,i.gauge.steps,r,a)}r(&quot;color&quot;),r(&quot;line.color&quot;),r(&quot;line.width&quot;),r(&quot;range&quot;),r(&quot;thickness&quot;)}e.exports={supplyDefaults:function(t,e,r,p){function d(r,a){return n.coerce(t,e,i,r,a)}a(e,p,d),d(&quot;mode&quot;),e._hasNumber=-1!==e.mode.indexOf(&quot;number&quot;),e._hasDelta=-1!==e.mode.indexOf(&quot;delta&quot;),e._hasGauge=-1!==e.mode.indexOf(&quot;gauge&quot;);var g=d(&quot;value&quot;);e._range=[0,&quot;number&quot;==typeof g?1.5*g:1];var m,v,y,x,b,_,w=new Array(2);function T(t,e){return n.coerce(y,x,i.gauge,t,e)}function k(t,e){return n.coerce(b,_,i.gauge.axis,t,e)}if(e._hasNumber&amp;&amp;(d(&quot;number.valueformat&quot;),d(&quot;number.font.color&quot;,p.font.color),d(&quot;number.font.family&quot;,p.font.family),d(&quot;number.font.size&quot;),void 0===e.number.font.size&amp;&amp;(e.number.font.size=l.defaultNumberFontSize,w[0]=!0),d(&quot;number.prefix&quot;),d(&quot;number.suffix&quot;),m=e.number.font.size),e._hasDelta&amp;&amp;(d(&quot;delta.font.color&quot;,p.font.color),d(&quot;delta.font.family&quot;,p.font.family),d(&quot;delta.font.size&quot;),void 0===e.delta.font.size&amp;&amp;(e.delta.font.size=(e._hasNumber?.5:1)*(m||l.defaultNumberFontSize),w[1]=!0),d(&quot;delta.reference&quot;,e.value),d(&quot;delta.relative&quot;),d(&quot;delta.valueformat&quot;,e.delta.relative?&quot;2%&quot;:&quot;&quot;),d(&quot;delta.increasing.symbol&quot;),d(&quot;delta.increasing.color&quot;),d(&quot;delta.decreasing.symbol&quot;),d(&quot;delta.decreasing.color&quot;),d(&quot;delta.position&quot;),v=e.delta.font.size),e._scaleNumbers=(!e._hasNumber||w[0])&amp;&amp;(!e._hasDelta||w[1])||!1,d(&quot;title.font.color&quot;,p.font.color),d(&quot;title.font.family&quot;,p.font.family),d(&quot;title.font.size&quot;,.25*(m||v||l.defaultNumberFontSize)),d(&quot;title.text&quot;),e._hasGauge){(y=t.gauge)||(y={}),x=o.newContainer(e,&quot;gauge&quot;),T(&quot;shape&quot;),(e._isBullet=&quot;bullet&quot;===e.gauge.shape)||d(&quot;title.align&quot;,&quot;center&quot;),(e._isAngular=&quot;angular&quot;===e.gauge.shape)||d(&quot;align&quot;,&quot;center&quot;),T(&quot;bgcolor&quot;,p.paper_bgcolor),T(&quot;borderwidth&quot;),T(&quot;bordercolor&quot;),T(&quot;bar.color&quot;),T(&quot;bar.line.color&quot;),T(&quot;bar.line.width&quot;),T(&quot;bar.thickness&quot;,l.valueThickness*(&quot;bullet&quot;===e.gauge.shape?.5:1)),s(y,x,{name:&quot;steps&quot;,handleItemDefaults:h}),T(&quot;threshold.value&quot;),T(&quot;threshold.thickness&quot;),T(&quot;threshold.line.width&quot;),T(&quot;threshold.line.color&quot;),b={},y&amp;&amp;(b=y.axis||{}),_=o.newContainer(x,&quot;axis&quot;),k(&quot;visible&quot;),e._range=k(&quot;range&quot;,e._range);var M={outerTicks:!0};c(b,_,k,&quot;linear&quot;),f(b,_,k,&quot;linear&quot;,M),u(b,_,k,M)}else d(&quot;title.align&quot;,&quot;center&quot;),d(&quot;align&quot;,&quot;center&quot;),e._isAngular=e._isBullet=!1;e._length=null}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/tick_label_defaults&quot;:849,&quot;../../plots/cartesian/tick_mark_defaults&quot;:850,&quot;../../plots/cartesian/tick_value_defaults&quot;:851,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1116,&quot;./constants.js&quot;:1119}],1121:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;indicator&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;svg&quot;,&quot;noOpacity&quot;,&quot;noHover&quot;],animatable:!0,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./plot&quot;),meta:{}}},{&quot;./attributes&quot;:1116,&quot;./base_plot&quot;:1117,&quot;./calc&quot;:1118,&quot;./defaults&quot;:1120,&quot;./plot&quot;:1122}],1122:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=i.strScale,o=i.strTranslate,s=i.rad2deg,l=t(&quot;../../constants/alignment&quot;).MID_SHIFT,c=t(&quot;../../components/drawing&quot;),u=t(&quot;./constants&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../plots/cartesian/axes&quot;),p=t(&quot;../../plots/cartesian/axis_defaults&quot;),d=t(&quot;../../plots/cartesian/position_defaults&quot;),g=t(&quot;../../plots/cartesian/layout_attributes&quot;),m=t(&quot;../../components/color&quot;),v={left:&quot;start&quot;,center:&quot;middle&quot;,right:&quot;end&quot;},y={left:0,center:.5,right:1},x=/[yzafpn\xb5mkMGTPEZY]/;function b(t){return t&amp;&amp;t.duration&gt;0}function _(t){t.each((function(t){m.stroke(n.select(this),t.line.color)})).each((function(t){m.fill(n.select(this),t.color)})).style(&quot;stroke-width&quot;,(function(t){return t.line.width}))}function w(t,e,r){var n=t._fullLayout,a=i.extendFlat({type:&quot;linear&quot;,ticks:&quot;outside&quot;,range:r,showline:!0},e),o={type:&quot;linear&quot;,_id:&quot;x&quot;+e._id},s={letter:&quot;x&quot;,font:n.font,noHover:!0,noTickson:!0};function l(t,e){return i.coerce(a,o,g,t,e)}return p(a,o,l,s,n),d(a,o,l,s),o}function T(t,e,r){return[Math.min(e/t.width,r/t.height),t,e+&quot;x&quot;+r]}function k(t,e,r,i){var a=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;text&quot;),o=n.select(a);return o.text(t).attr(&quot;x&quot;,0).attr(&quot;y&quot;,0).attr(&quot;text-anchor&quot;,r).attr(&quot;data-unformatted&quot;,t).call(f.convertToTspans,i).call(c.font,e),c.bBox(o.node())}function M(t,e,r,n,a,o){var s=&quot;_cache&quot;+e;t[s]&amp;&amp;t[s].key===a||(t[s]={key:a,value:r});var l=i.aggNums(o,null,[t[s].value,n],2);return t[s].value=l,l}e.exports=function(t,e,r,p){var d,g=t._fullLayout;b(r)&amp;&amp;p&amp;&amp;(d=p()),i.makeTraceGroups(g._indicatorlayer,e,&quot;trace&quot;).each((function(e){var p,A,S,E,C,L=e[0].trace,I=n.select(this),P=L._hasGauge,z=L._isAngular,O=L._isBullet,D=L.domain,R={w:g._size.w*(D.x[1]-D.x[0]),h:g._size.h*(D.y[1]-D.y[0]),l:g._size.l+g._size.w*D.x[0],r:g._size.r+g._size.w*(1-D.x[1]),t:g._size.t+g._size.h*(1-D.y[1]),b:g._size.b+g._size.h*D.y[0]},F=R.l+R.w/2,B=R.t+R.h/2,N=Math.min(R.w/2,R.h),j=u.innerRadius*N,U=L.align||&quot;center&quot;;if(A=B,P){if(z&amp;&amp;(p=F,A=B+N/2,S=function(t){return function(t,e){var r=Math.sqrt(t.width/2*(t.width/2)+t.height*t.height);return[e/r,t,e]}(t,.9*j)}),O){var V=u.bulletPadding,q=1-u.bulletNumberDomainSize+V;p=R.l+(q+(1-q)*y[U])*R.w,S=function(t){return T(t,(u.bulletNumberDomainSize-V)*R.w,R.h)}}}else p=R.l+y[U]*R.w,S=function(t){return T(t,R.w,R.h)};!function(t,e,r,s){var l,u,p,d=r[0].trace,g=s.numbersX,_=s.numbersY,T=d.align||&quot;center&quot;,A=v[T],S=s.transitionOpts,E=s.onComplete,C=i.ensureSingle(e,&quot;g&quot;,&quot;numbers&quot;),L=[];d._hasNumber&amp;&amp;L.push(&quot;number&quot;);d._hasDelta&amp;&amp;(L.push(&quot;delta&quot;),&quot;left&quot;===d.delta.position&amp;&amp;L.reverse());var I=C.selectAll(&quot;text&quot;).data(L);function P(e,r,n,i){if(!e.match(&quot;s&quot;)||n&gt;=0==i&gt;=0||r(n).slice(-1).match(x)||r(i).slice(-1).match(x))return r;var a=e.slice().replace(&quot;s&quot;,&quot;f&quot;).replace(/\d+/,(function(t){return parseInt(t)-1})),o=w(t,{tickformat:a});return function(t){return Math.abs(t)&lt;1?h.tickText(o,t).text:r(t)}}I.enter().append(&quot;text&quot;),I.attr(&quot;text-anchor&quot;,(function(){return A})).attr(&quot;class&quot;,(function(t){return t})).attr(&quot;x&quot;,null).attr(&quot;y&quot;,null).attr(&quot;dx&quot;,null).attr(&quot;dy&quot;,null),I.exit().remove();var z,O=d.mode+d.align;d._hasDelta&amp;&amp;(z=function(){var e=w(t,{tickformat:d.delta.valueformat},d._range);e.setScale(),h.prepTicks(e);var i=function(t){return h.tickText(e,t).text},a=function(t){return d.delta.relative?t.relativeDelta:t.delta},o=function(t,e){return 0===t||&quot;number&quot;!=typeof t||isNaN(t)?&quot;-&quot;:(t&gt;0?d.delta.increasing.symbol:d.delta.decreasing.symbol)+e(t)},s=function(t){return t.delta&gt;=0?d.delta.increasing.color:d.delta.decreasing.color};void 0===d._deltaLastValue&amp;&amp;(d._deltaLastValue=a(r[0]));var l=C.select(&quot;text.delta&quot;);function p(){l.text(o(a(r[0]),i)).call(m.fill,s(r[0])).call(f.convertToTspans,t)}return l.call(c.font,d.delta.font).call(m.fill,s({delta:d._deltaLastValue})),b(S)?l.transition().duration(S.duration).ease(S.easing).tween(&quot;text&quot;,(function(){var t=n.select(this),e=a(r[0]),l=d._deltaLastValue,c=P(d.delta.valueformat,i,l,e),u=n.interpolateNumber(l,e);return d._deltaLastValue=e,function(e){t.text(o(u(e),c)),t.call(m.fill,s({delta:u(e)}))}})).each(&quot;end&quot;,(function(){p(),E&amp;&amp;E()})).each(&quot;interrupt&quot;,(function(){p(),E&amp;&amp;E()})):p(),u=k(o(a(r[0]),i),d.delta.font,A,t),l}(),O+=d.delta.position+d.delta.font.size+d.delta.font.family+d.delta.valueformat,O+=d.delta.increasing.symbol+d.delta.decreasing.symbol,p=u);d._hasNumber&amp;&amp;(!function(){var e=w(t,{tickformat:d.number.valueformat},d._range);e.setScale(),h.prepTicks(e);var i=function(t){return h.tickText(e,t).text},a=d.number.suffix,o=d.number.prefix,s=C.select(&quot;text.number&quot;);function u(){var e=&quot;number&quot;==typeof r[0].y?o+i(r[0].y)+a:&quot;-&quot;;s.text(e).call(c.font,d.number.font).call(f.convertToTspans,t)}b(S)?s.transition().duration(S.duration).ease(S.easing).each(&quot;end&quot;,(function(){u(),E&amp;&amp;E()})).each(&quot;interrupt&quot;,(function(){u(),E&amp;&amp;E()})).attrTween(&quot;text&quot;,(function(){var t=n.select(this),e=n.interpolateNumber(r[0].lastY,r[0].y);d._lastValue=r[0].y;var s=P(d.number.valueformat,i,r[0].lastY,r[0].y);return function(r){t.text(o+s(e(r))+a)}})):u(),l=k(o+i(r[0].y)+a,d.number.font,A,t)}(),O+=d.number.font.size+d.number.font.family+d.number.valueformat+d.number.suffix+d.number.prefix,p=l);if(d._hasDelta&amp;&amp;d._hasNumber){var D,R,F=[(l.left+l.right)/2,(l.top+l.bottom)/2],B=[(u.left+u.right)/2,(u.top+u.bottom)/2],N=.75*d.delta.font.size;&quot;left&quot;===d.delta.position&amp;&amp;(D=M(d,&quot;deltaPos&quot;,0,-1*(l.width*y[d.align]+u.width*(1-y[d.align])+N),O,Math.min),R=F[1]-B[1],p={width:l.width+u.width+N,height:Math.max(l.height,u.height),left:u.left+D,right:l.right,top:Math.min(l.top,u.top+R),bottom:Math.max(l.bottom,u.bottom+R)}),&quot;right&quot;===d.delta.position&amp;&amp;(D=M(d,&quot;deltaPos&quot;,0,l.width*(1-y[d.align])+u.width*y[d.align]+N,O,Math.max),R=F[1]-B[1],p={width:l.width+u.width+N,height:Math.max(l.height,u.height),left:l.left,right:u.right+D,top:Math.min(l.top,u.top+R),bottom:Math.max(l.bottom,u.bottom+R)}),&quot;bottom&quot;===d.delta.position&amp;&amp;(D=null,R=u.height,p={width:Math.max(l.width,u.width),height:l.height+u.height,left:Math.min(l.left,u.left),right:Math.max(l.right,u.right),top:l.bottom-l.height,bottom:l.bottom+u.height}),&quot;top&quot;===d.delta.position&amp;&amp;(D=null,R=l.top,p={width:Math.max(l.width,u.width),height:l.height+u.height,left:Math.min(l.left,u.left),right:Math.max(l.right,u.right),top:l.bottom-l.height-u.height,bottom:l.bottom}),z.attr({dx:D,dy:R})}(d._hasNumber||d._hasDelta)&amp;&amp;C.attr(&quot;transform&quot;,(function(){var t=s.numbersScaler(p);O+=t[2];var e,r=M(d,&quot;numbersScale&quot;,1,t[0],O,Math.min);d._scaleNumbers||(r=1),e=d._isAngular?_-r*p.bottom:_-r*(p.top+p.bottom)/2,d._numbersTop=r*p.top+e;var n=p[T];&quot;center&quot;===T&amp;&amp;(n=(p.left+p.right)/2);var i=g-r*n;return i=M(d,&quot;numbersTranslate&quot;,0,i,O,Math.max),o(i,e)+a(r)}))}(t,I,e,{numbersX:p,numbersY:A,numbersScaler:S,transitionOpts:r,onComplete:d}),P&amp;&amp;(E={range:L.gauge.axis.range,color:L.gauge.bgcolor,line:{color:L.gauge.bordercolor,width:0},thickness:1},C={range:L.gauge.axis.range,color:&quot;rgba(0, 0, 0, 0)&quot;,line:{color:L.gauge.bordercolor,width:L.gauge.borderwidth},thickness:1});var H=I.selectAll(&quot;g.angular&quot;).data(z?e:[]);H.exit().remove();var G=I.selectAll(&quot;g.angularaxis&quot;).data(z?e:[]);G.exit().remove(),z&amp;&amp;function(t,e,r,i){var a,c,u,f,p=r[0].trace,d=i.size,g=i.radius,m=i.innerRadius,v=i.gaugeBg,y=i.gaugeOutline,x=[d.l+d.w/2,d.t+d.h/2+g/2],T=i.gauge,k=i.layer,M=i.transitionOpts,A=i.onComplete,S=Math.PI/2;function E(t){var e=p.gauge.axis.range[0],r=(t-e)/(p.gauge.axis.range[1]-e)*Math.PI-S;return r&lt;-S?-S:r&gt;S?S:r}function C(t){return n.svg.arc().innerRadius((m+g)/2-t/2*(g-m)).outerRadius((m+g)/2+t/2*(g-m)).startAngle(-S)}function L(t){t.attr(&quot;d&quot;,(function(t){return C(t.thickness).startAngle(E(t.range[0])).endAngle(E(t.range[1]))()}))}T.enter().append(&quot;g&quot;).classed(&quot;angular&quot;,!0),T.attr(&quot;transform&quot;,o(x[0],x[1])),k.enter().append(&quot;g&quot;).classed(&quot;angularaxis&quot;,!0).classed(&quot;crisp&quot;,!0),k.selectAll(&quot;g.xangularaxistick,path,text&quot;).remove(),(a=w(t,p.gauge.axis)).type=&quot;linear&quot;,a.range=p.gauge.axis.range,a._id=&quot;xangularaxis&quot;,a.setScale();var I=function(t){return(a.range[0]-t.x)/(a.range[1]-a.range[0])*Math.PI+Math.PI},P={},z=h.makeLabelFns(a,0).labelStandoff;P.xFn=function(t){var e=I(t);return Math.cos(e)*z},P.yFn=function(t){var e=I(t),r=Math.sin(e)&gt;0?.2:1;return-Math.sin(e)*(z+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*l)},P.anchorFn=function(t){var e=I(t),r=Math.cos(e);return Math.abs(r)&lt;.1?&quot;middle&quot;:r&gt;0?&quot;start&quot;:&quot;end&quot;},P.heightFn=function(t,e,r){var n=I(t);return-.5*(1+Math.sin(n))*r};var O=function(t){return o(x[0]+g*Math.cos(t),x[1]-g*Math.sin(t))};u=function(t){return O(I(t))};if(c=h.calcTicks(a),f=h.getTickSigns(a)[2],a.visible){f=&quot;inside&quot;===a.ticks?-1:1;var D=(a.linewidth||1)/2;h.drawTicks(t,a,{vals:c,layer:k,path:&quot;M&quot;+f*D+&quot;,0h&quot;+f*a.ticklen,transFn:function(t){var e=I(t);return O(e)+&quot;rotate(&quot;+-s(e)+&quot;)&quot;}}),h.drawLabels(t,a,{vals:c,layer:k,transFn:u,labelFns:P})}var R=[v].concat(p.gauge.steps),F=T.selectAll(&quot;g.bg-arc&quot;).data(R);F.enter().append(&quot;g&quot;).classed(&quot;bg-arc&quot;,!0).append(&quot;path&quot;),F.select(&quot;path&quot;).call(L).call(_),F.exit().remove();var B=C(p.gauge.bar.thickness),N=T.selectAll(&quot;g.value-arc&quot;).data([p.gauge.bar]);N.enter().append(&quot;g&quot;).classed(&quot;value-arc&quot;,!0).append(&quot;path&quot;);var j=N.select(&quot;path&quot;);b(M)?(j.transition().duration(M.duration).ease(M.easing).each(&quot;end&quot;,(function(){A&amp;&amp;A()})).each(&quot;interrupt&quot;,(function(){A&amp;&amp;A()})).attrTween(&quot;d&quot;,(U=B,V=E(r[0].lastY),q=E(r[0].y),function(){var t=n.interpolate(V,q);return function(e){return U.endAngle(t(e))()}})),p._lastValue=r[0].y):j.attr(&quot;d&quot;,&quot;number&quot;==typeof r[0].y?B.endAngle(E(r[0].y)):&quot;M0,0Z&quot;);var U,V,q;j.call(_),N.exit().remove(),R=[];var H=p.gauge.threshold.value;H&amp;&amp;R.push({range:[H,H],color:p.gauge.threshold.color,line:{color:p.gauge.threshold.line.color,width:p.gauge.threshold.line.width},thickness:p.gauge.threshold.thickness});var G=T.selectAll(&quot;g.threshold-arc&quot;).data(R);G.enter().append(&quot;g&quot;).classed(&quot;threshold-arc&quot;,!0).append(&quot;path&quot;),G.select(&quot;path&quot;).call(L).call(_),G.exit().remove();var Y=T.selectAll(&quot;g.gauge-outline&quot;).data([y]);Y.enter().append(&quot;g&quot;).classed(&quot;gauge-outline&quot;,!0).append(&quot;path&quot;),Y.select(&quot;path&quot;).call(L).call(_),Y.exit().remove()}(t,0,e,{radius:N,innerRadius:j,gauge:H,layer:G,size:R,gaugeBg:E,gaugeOutline:C,transitionOpts:r,onComplete:d});var Y=I.selectAll(&quot;g.bullet&quot;).data(O?e:[]);Y.exit().remove();var W=I.selectAll(&quot;g.bulletaxis&quot;).data(O?e:[]);W.exit().remove(),O&amp;&amp;function(t,e,r,n){var i,a,s,l,c,f=r[0].trace,p=n.gauge,d=n.layer,g=n.gaugeBg,v=n.gaugeOutline,y=n.size,x=f.domain,T=n.transitionOpts,k=n.onComplete;p.enter().append(&quot;g&quot;).classed(&quot;bullet&quot;,!0),p.attr(&quot;transform&quot;,o(y.l,y.t)),d.enter().append(&quot;g&quot;).classed(&quot;bulletaxis&quot;,!0).classed(&quot;crisp&quot;,!0),d.selectAll(&quot;g.xbulletaxistick,path,text&quot;).remove();var M=y.h,A=f.gauge.bar.thickness*M,S=x.x[0],E=x.x[0]+(x.x[1]-x.x[0])*(f._hasNumber||f._hasDelta?1-u.bulletNumberDomainSize:1);(i=w(t,f.gauge.axis))._id=&quot;xbulletaxis&quot;,i.domain=[S,E],i.setScale(),a=h.calcTicks(i),s=h.makeTransTickFn(i),l=h.getTickSigns(i)[2],c=y.t+y.h,i.visible&amp;&amp;(h.drawTicks(t,i,{vals:&quot;inside&quot;===i.ticks?h.clipEnds(i,a):a,layer:d,path:h.makeTickPath(i,c,l),transFn:s}),h.drawLabels(t,i,{vals:a,layer:d,transFn:s,labelFns:h.makeLabelFns(i,c)}));function C(t){t.attr(&quot;width&quot;,(function(t){return Math.max(0,i.c2p(t.range[1])-i.c2p(t.range[0]))})).attr(&quot;x&quot;,(function(t){return i.c2p(t.range[0])})).attr(&quot;y&quot;,(function(t){return.5*(1-t.thickness)*M})).attr(&quot;height&quot;,(function(t){return t.thickness*M}))}var L=[g].concat(f.gauge.steps),I=p.selectAll(&quot;g.bg-bullet&quot;).data(L);I.enter().append(&quot;g&quot;).classed(&quot;bg-bullet&quot;,!0).append(&quot;rect&quot;),I.select(&quot;rect&quot;).call(C).call(_),I.exit().remove();var P=p.selectAll(&quot;g.value-bullet&quot;).data([f.gauge.bar]);P.enter().append(&quot;g&quot;).classed(&quot;value-bullet&quot;,!0).append(&quot;rect&quot;),P.select(&quot;rect&quot;).attr(&quot;height&quot;,A).attr(&quot;y&quot;,(M-A)/2).call(_),b(T)?P.select(&quot;rect&quot;).transition().duration(T.duration).ease(T.easing).each(&quot;end&quot;,(function(){k&amp;&amp;k()})).each(&quot;interrupt&quot;,(function(){k&amp;&amp;k()})).attr(&quot;width&quot;,Math.max(0,i.c2p(Math.min(f.gauge.axis.range[1],r[0].y)))):P.select(&quot;rect&quot;).attr(&quot;width&quot;,&quot;number&quot;==typeof r[0].y?Math.max(0,i.c2p(Math.min(f.gauge.axis.range[1],r[0].y))):0);P.exit().remove();var z=r.filter((function(){return f.gauge.threshold.value})),O=p.selectAll(&quot;g.threshold-bullet&quot;).data(z);O.enter().append(&quot;g&quot;).classed(&quot;threshold-bullet&quot;,!0).append(&quot;line&quot;),O.select(&quot;line&quot;).attr(&quot;x1&quot;,i.c2p(f.gauge.threshold.value)).attr(&quot;x2&quot;,i.c2p(f.gauge.threshold.value)).attr(&quot;y1&quot;,(1-f.gauge.threshold.thickness)/2*M).attr(&quot;y2&quot;,(1-(1-f.gauge.threshold.thickness)/2)*M).call(m.stroke,f.gauge.threshold.line.color).style(&quot;stroke-width&quot;,f.gauge.threshold.line.width),O.exit().remove();var D=p.selectAll(&quot;g.gauge-outline&quot;).data([v]);D.enter().append(&quot;g&quot;).classed(&quot;gauge-outline&quot;,!0).append(&quot;rect&quot;),D.select(&quot;rect&quot;).call(C).call(_),D.exit().remove()}(t,0,e,{gauge:Y,layer:W,size:R,gaugeBg:E,gaugeOutline:C,transitionOpts:r,onComplete:d});var X=I.selectAll(&quot;text.title&quot;).data(e);X.exit().remove(),X.enter().append(&quot;text&quot;).classed(&quot;title&quot;,!0),X.attr(&quot;text-anchor&quot;,(function(){return O?v.right:v[L.title.align]})).text(L.title.text).call(c.font,L.title.font).call(f.convertToTspans,t),X.attr(&quot;transform&quot;,(function(){var t,e=R.l+R.w*y[L.title.align],r=u.titlePadding,n=c.bBox(X.node());if(P){if(z)if(L.gauge.axis.visible)t=c.bBox(G.node()).top-r-n.bottom;else t=R.t+R.h/2-N/2-n.bottom-r;O&amp;&amp;(t=A-(n.top+n.bottom)/2,e=R.l-u.bulletPadding*R.w)}else t=L._numbersTop-r-n.bottom;return o(e,t)}))}))}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_defaults&quot;:830,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/cartesian/position_defaults&quot;:845,&quot;./constants&quot;:1119,d3:169}],1123:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../mesh3d/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll;var c=e.exports=l(s({x:{valType:&quot;data_array&quot;},y:{valType:&quot;data_array&quot;},z:{valType:&quot;data_array&quot;},value:{valType:&quot;data_array&quot;},isomin:{valType:&quot;number&quot;},isomax:{valType:&quot;number&quot;},surface:{show:{valType:&quot;boolean&quot;,dflt:!0},count:{valType:&quot;integer&quot;,dflt:2,min:1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1},pattern:{valType:&quot;flaglist&quot;,flags:[&quot;A&quot;,&quot;B&quot;,&quot;C&quot;,&quot;D&quot;,&quot;E&quot;],extras:[&quot;all&quot;,&quot;odd&quot;,&quot;even&quot;],dflt:&quot;all&quot;}},spaceframe:{show:{valType:&quot;boolean&quot;,dflt:!1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:.15}},slices:{x:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},y:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},z:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}}},caps:{x:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},y:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},z:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}}},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertemplate:i(),showlegend:s({},o.showlegend,{dflt:!1})},n(&quot;&quot;,{colorAttr:&quot;`value`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{opacity:a.opacity,lightposition:a.lightposition,lighting:a.lighting,flatshading:a.flatshading,contour:a.contour,hoverinfo:s({},o.hoverinfo)}),&quot;calc&quot;,&quot;nested&quot;);c.flatshading.dflt=!0,c.lighting.facenormalsepsilon.dflt=0,c.x.editType=c.y.editType=c.z.editType=c.value.editType=&quot;calc+clearAxisTypes&quot;,c.transforms=void 0},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../mesh3d/attributes&quot;:1128}],1124:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;),i=t(&quot;../streamtube/calc&quot;).processGrid,a=t(&quot;../streamtube/calc&quot;).filter;e.exports=function(t,e){e._len=Math.min(e.x.length,e.y.length,e.z.length,e.value.length),e._x=a(e.x,e._len),e._y=a(e.y,e._len),e._z=a(e.z,e._len),e._value=a(e.value,e._len);var r=i(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;for(var o=1/0,s=-1/0,l=0;l&lt;e._len;l++){var c=e._value[l];o=Math.min(o,c),s=Math.max(s,c)}e._minValues=o,e._maxValues=s,e._vMin=void 0===e.isomin||null===e.isomin?o:e.isomin,e._vMax=void 0===e.isomax||null===e.isomin?s:e.isomax,n(t,e,{vals:[e._vMin,e._vMax],containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../streamtube/calc&quot;:1295}],1125:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,a=t(&quot;../../lib/str2rgbarray&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts,s=t(&quot;../../plots/gl3d/zip3&quot;),l=function(t,e){for(var r=e.length-1;r&gt;0;r--){var n=Math.min(e[r],e[r-1]),i=Math.max(e[r],e[r-1]);if(i&gt;n&amp;&amp;n&lt;t&amp;&amp;t&lt;=i)return{id:r,distRatio:(i-t)/(i-n)}}return{id:0,distRatio:0}};function c(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.data=null,this.showContour=!1}var u=c.prototype;u.handlePick=function(t){if(t.object===this.mesh){var e=t.data.index,r=this.data._meshX[e],n=this.data._meshY[e],i=this.data._meshZ[e],a=this.data._Ys.length,o=this.data._Zs.length,s=l(r,this.data._Xs).id,c=l(n,this.data._Ys).id,u=l(i,this.data._Zs).id,f=t.index=u+o*c+o*a*s;t.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Array.isArray(h)&amp;&amp;void 0!==h[f]?t.textLabel=h[f]:h&amp;&amp;(t.textLabel=h),!0}},u.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map((function(e){return t.d2l(e,0,n)*r}))}this.data=h(t);var l={positions:s(n(r.xaxis,t._meshX,e.dataScale[0],t.xcalendar),n(r.yaxis,t._meshY,e.dataScale[1],t.ycalendar),n(r.zaxis,t._meshZ,e.dataScale[2],t.zcalendar)),cells:s(t._meshI,t._meshJ,t._meshK),lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:a(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading},c=o(t);l.vertexIntensity=t._meshIntensity,l.vertexIntensityBounds=[c.min,c.max],l.colormap=i(t),this.mesh.update(l)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};var f=[&quot;xyz&quot;,&quot;xzy&quot;,&quot;yxz&quot;,&quot;yzx&quot;,&quot;zxy&quot;,&quot;zyx&quot;];function h(t){t._meshI=[],t._meshJ=[],t._meshK=[];var e,r,n,i,a,o,s,c=t.surface.show,u=t.spaceframe.show,h=t.surface.fill,p=t.spaceframe.fill,d=!1,g=!1,m=0,v=t._Xs,y=t._Ys,x=t._Zs,b=v.length,_=y.length,w=x.length,T=f.indexOf(t._gridFill.replace(/-/g,&quot;&quot;).replace(/\+/g,&quot;&quot;)),k=function(t,e,r){switch(T){case 5:return r+w*e+w*_*t;case 4:return r+w*t+w*b*e;case 3:return e+_*r+_*w*t;case 2:return e+_*t+_*b*r;case 1:return t+b*r+b*w*e;default:return t+b*e+b*_*r}},M=t._minValues,A=t._maxValues,S=t._vMin,E=t._vMax;function C(t,e,s){for(var l=o.length,c=r;c&lt;l;c++)if(t===n[c]&amp;&amp;e===i[c]&amp;&amp;s===a[c])return c;return-1}function L(){r=e}function I(){n=[],i=[],a=[],o=[],e=0,L()}function P(t,r,s,l){return n.push(t),i.push(r),a.push(s),o.push(l),++e-1}function z(t,e,r){for(var n=[],i=0;i&lt;t.length;i++)n[i]=t[i]*(1-r)+r*e[i];return n}function O(t){s=t}function D(t,e){return&quot;all&quot;===t||null===t||t.indexOf(e)&gt;-1}function R(t,e){return null===t?e:t}function F(e,r,n){L();var i,a,o,l=[r],c=[n];if(s&gt;=1)l=[r],c=[n];else if(s&gt;0){var u=function(t,e){var r=t[0],n=t[1],i=t[2],a=function(t,e,r){for(var n=[],i=0;i&lt;t.length;i++)n[i]=(t[i]+e[i]+r[i])/3;return n}(r,n,i),o=Math.sqrt(1-s),l=z(a,r,o),c=z(a,n,o),u=z(a,i,o),f=e[0],h=e[1],p=e[2];return{xyzv:[[r,n,c],[c,l,r],[n,i,u],[u,c,n],[i,r,l],[l,u,i]],abc:[[f,h,-1],[-1,-1,f],[h,p,-1],[-1,-1,h],[p,f,-1],[-1,-1,p]]}}(r,n);l=u.xyzv,c=u.abc}for(var f=0;f&lt;l.length;f++){r=l[f],n=c[f];for(var h=[],p=0;p&lt;3;p++){var d=r[p][0],g=r[p][1],v=r[p][2],y=r[p][3],x=n[p]&gt;-1?n[p]:C(d,g,v);h[p]=x&gt;-1?x:P(d,g,v,R(e,y))}i=h[0],a=h[1],o=h[2],t._meshI.push(i),t._meshJ.push(a),t._meshK.push(o),++m}}function B(t,e,r,n){var i=t[3];i&lt;r&amp;&amp;(i=r),i&gt;n&amp;&amp;(i=n);for(var a=(t[3]-i)/(t[3]-e[3]+1e-9),o=[],s=0;s&lt;4;s++)o[s]=(1-a)*t[s]+a*e[s];return o}function N(t,e,r){return t&gt;=e&amp;&amp;t&lt;=r}function j(t){var e=.001*(E-S);return t&gt;=S-e&amp;&amp;t&lt;=E+e}function U(e){for(var r=[],n=0;n&lt;4;n++){var i=e[n];r.push([t._x[i],t._y[i],t._z[i],t._value[i]])}return r}function V(t,e,r,n,i,a){a||(a=1),r=[-1,-1,-1];var o=!1,s=[N(e[0][3],n,i),N(e[1][3],n,i),N(e[2][3],n,i)];if(!s[0]&amp;&amp;!s[1]&amp;&amp;!s[2])return!1;var l=function(t,e,r){return j(e[0][3])&amp;&amp;j(e[1][3])&amp;&amp;j(e[2][3])?(F(t,e,r),!0):a&lt;3&amp;&amp;V(t,e,r,S,E,++a)};if(s[0]&amp;&amp;s[1]&amp;&amp;s[2])return l(t,e,r)||o;var c=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach((function(a){if(s[a[0]]&amp;&amp;s[a[1]]&amp;&amp;!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(h,u,n,i),d=B(h,f,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,o=l(t,[u,f,d],[r[a[0]],r[a[1]],-1])||o,c=!0}})),c||[[0,1,2],[1,2,0],[2,0,1]].forEach((function(a){if(s[a[0]]&amp;&amp;!s[a[1]]&amp;&amp;!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(f,u,n,i),d=B(h,u,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,c=!0}})),o}function q(t,e,r,n){var i=!1,a=U(e),o=[N(a[0][3],r,n),N(a[1][3],r,n),N(a[2][3],r,n),N(a[3][3],r,n)];if(!(o[0]||o[1]||o[2]||o[3]))return i;if(o[0]&amp;&amp;o[1]&amp;&amp;o[2]&amp;&amp;o[3])return g&amp;&amp;(i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(3,0,1),n(2,3,0),n(1,2,3)}(t,a,e)||i),i;var s=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach((function(l){if(o[l[0]]&amp;&amp;o[l[1]]&amp;&amp;o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]];if(g)i=F(t,[c,u,f],[e[l[0]],e[l[1]],e[l[2]]])||i;else{var p=B(h,c,r,n),d=B(h,u,r,n),m=B(h,f,r,n);i=F(null,[p,d,m],[-1,-1,-1])||i}s=!0}})),s?i:([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach((function(l){if(o[l[0]]&amp;&amp;o[l[1]]&amp;&amp;!o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(f,c,r,n),d=B(f,u,r,n),m=B(h,u,r,n),v=B(h,c,r,n);g?(i=F(t,[c,v,p],[e[l[0]],-1,-1])||i,i=F(t,[u,d,m],[e[l[1]],-1,-1])||i):i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(2,3,0)}(null,[p,d,m,v],[-1,-1,-1,-1])||i,s=!0}})),s||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach((function(l){if(o[l[0]]&amp;&amp;!o[l[1]]&amp;&amp;!o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(u,c,r,n),d=B(f,c,r,n),m=B(h,c,r,n);g?(i=F(t,[c,p,d],[e[l[0]],-1,-1])||i,i=F(t,[c,d,m],[e[l[0]],-1,-1])||i,i=F(t,[c,m,p],[e[l[0]],-1,-1])||i):i=F(null,[p,d,m],[-1,-1,-1])||i,s=!0}})),i)}function H(t,e,r,n,i,a,o,s,l,c,u){var f=!1;return d&amp;&amp;(D(t,&quot;A&quot;)&amp;&amp;(f=q(null,[e,r,n,a],c,u)||f),D(t,&quot;B&quot;)&amp;&amp;(f=q(null,[r,n,i,l],c,u)||f),D(t,&quot;C&quot;)&amp;&amp;(f=q(null,[r,a,o,l],c,u)||f),D(t,&quot;D&quot;)&amp;&amp;(f=q(null,[n,a,s,l],c,u)||f),D(t,&quot;E&quot;)&amp;&amp;(f=q(null,[r,n,a,l],c,u)||f)),g&amp;&amp;(f=q(t,[r,n,a,l],c,u)||f),f}function G(t,e,r,n,i,a,o,s){return[!0===s[0]||V(t,U([e,r,n]),[e,r,n],a,o),!0===s[1]||V(t,U([n,i,e]),[n,i,e],a,o)]}function Y(t,e,r,n,i,a,o,s,l){return s?G(t,e,r,i,n,a,o,l):G(t,r,i,n,e,a,o,l)}function W(t,e,r,n,i,a,o){var s,l,c,u,f=!1,h=function(){f=V(t,[s,l,c],[-1,-1,-1],i,a)||f,f=V(t,[c,u,s],[-1,-1,-1],i,a)||f},p=o[0],d=o[1],g=o[2];return p&amp;&amp;(s=z(U([k(e,r-0,n-0)])[0],U([k(e-1,r-0,n-0)])[0],p),l=z(U([k(e,r-0,n-1)])[0],U([k(e-1,r-0,n-1)])[0],p),c=z(U([k(e,r-1,n-1)])[0],U([k(e-1,r-1,n-1)])[0],p),u=z(U([k(e,r-1,n-0)])[0],U([k(e-1,r-1,n-0)])[0],p),h()),d&amp;&amp;(s=z(U([k(e-0,r,n-0)])[0],U([k(e-0,r-1,n-0)])[0],d),l=z(U([k(e-0,r,n-1)])[0],U([k(e-0,r-1,n-1)])[0],d),c=z(U([k(e-1,r,n-1)])[0],U([k(e-1,r-1,n-1)])[0],d),u=z(U([k(e-1,r,n-0)])[0],U([k(e-1,r-1,n-0)])[0],d),h()),g&amp;&amp;(s=z(U([k(e-0,r-0,n)])[0],U([k(e-0,r-0,n-1)])[0],g),l=z(U([k(e-0,r-1,n)])[0],U([k(e-0,r-1,n-1)])[0],g),c=z(U([k(e-1,r-1,n)])[0],U([k(e-1,r-1,n-1)])[0],g),u=z(U([k(e-1,r-0,n)])[0],U([k(e-1,r-0,n-1)])[0],g),h()),f}function X(t,e,r,n,i,a,o,s,l,c,u,f){var h=t;return f?(d&amp;&amp;&quot;even&quot;===t&amp;&amp;(h=null),H(h,e,r,n,i,a,o,s,l,c,u)):(d&amp;&amp;&quot;odd&quot;===t&amp;&amp;(h=null),H(h,l,s,o,a,i,n,r,e,c,u))}function Z(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;w;c++)for(var u=1;u&lt;_;u++)a.push(Y(t,k(l,u-1,c-1),k(l,u-1,c),k(l,u,c-1),k(l,u,c),r,n,(l+u+c)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function J(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;b;c++)for(var u=1;u&lt;w;u++)a.push(Y(t,k(c-1,l,u-1),k(c,l,u-1),k(c-1,l,u),k(c,l,u),r,n,(c+l+u)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function K(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;_;c++)for(var u=1;u&lt;b;u++)a.push(Y(t,k(u-1,c-1,l),k(u-1,c,l),k(u,c-1,l),k(u,c,l),r,n,(u+c+l)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function Q(t,e,r){for(var n=1;n&lt;w;n++)for(var i=1;i&lt;_;i++)for(var a=1;a&lt;b;a++)X(t,k(a-1,i-1,n-1),k(a-1,i-1,n),k(a-1,i,n-1),k(a-1,i,n),k(a,i-1,n-1),k(a,i-1,n),k(a,i,n-1),k(a,i,n),e,r,(a+i+n)%2)}function $(t,e,r){d=!0,Q(t,e,r),d=!1}function tt(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;w;u++)for(var f=1;f&lt;_;f++)o.push(W(t,c,f,u,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function et(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;b;u++)for(var f=1;f&lt;w;f++)o.push(W(t,u,c,f,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function rt(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;_;u++)for(var f=1;f&lt;b;f++)o.push(W(t,f,u,c,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function nt(t,e){for(var r=[],n=t;n&lt;e;n++)r.push(n);return r}return function(){if(I(),function(){for(var e=0;e&lt;b;e++)for(var r=0;r&lt;_;r++)for(var n=0;n&lt;w;n++){var i=k(e,r,n);P(t._x[i],t._y[i],t._z[i],t._value[i])}}(),u&amp;&amp;p&amp;&amp;(O(p),g=!0,Q(null,S,E),g=!1),c&amp;&amp;h){O(h);for(var e=t.surface.pattern,r=t.surface.count,s=0;s&lt;r;s++){var f=1===r?.5:s/(r-1),d=(1-f)*S+f*E,T=Math.abs(d-M)&gt;Math.abs(d-A)?[M,d]:[d,A];$(e,T[0],T[1])}}var C=[[Math.min(S,A),Math.max(S,A)],[Math.min(M,E),Math.max(M,E)]];[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].forEach((function(e){for(var r=[],n=0;n&lt;C.length;n++){var i=0,a=C[n][0],o=C[n][1],s=t.slices[e];if(s.show&amp;&amp;s.fill){O(s.fill);var c=[],u=[],f=[];if(s.locations.length)for(var h=0;h&lt;s.locations.length;h++){var p=l(s.locations[h],&quot;x&quot;===e?v:&quot;y&quot;===e?y:x);0===p.distRatio?c.push(p.id):p.id&gt;0&amp;&amp;(u.push(p.id),&quot;x&quot;===e?f.push([p.distRatio,0,0]):&quot;y&quot;===e?f.push([0,p.distRatio,0]):f.push([0,0,p.distRatio]))}else c=nt(1,&quot;x&quot;===e?b-1:&quot;y&quot;===e?_-1:w-1);u.length&gt;0&amp;&amp;(r[i]=&quot;x&quot;===e?tt(null,u,a,o,f,r[i]):&quot;y&quot;===e?et(null,u,a,o,f,r[i]):rt(null,u,a,o,f,r[i]),i++),c.length&gt;0&amp;&amp;(r[i]=&quot;x&quot;===e?Z(null,c,a,o,r[i]):&quot;y&quot;===e?J(null,c,a,o,r[i]):K(null,c,a,o,r[i]),i++)}var d=t.caps[e];d.show&amp;&amp;d.fill&amp;&amp;(O(d.fill),r[i]=&quot;x&quot;===e?Z(null,[0,b-1],a,o,r[i]):&quot;y&quot;===e?J(null,[0,_-1],a,o,r[i]):K(null,[0,w-1],a,o,r[i]),i++)}})),0===m&amp;&amp;I(),t._meshX=n,t._meshY=i,t._meshZ=a,t._meshIntensity=o,t._Xs=v,t._Ys=y,t._Zs=x}(),t}e.exports={findNearestOnAxis:l,generateIsoMeshes:h,createIsosurfaceTrace:function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new c(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/gl3d/zip3&quot;:881,&quot;gl-mesh3d&quot;:309}],1126:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../../components/colorscale/defaults&quot;);function s(t,e,r,n,a){var s=a(&quot;isomin&quot;),l=a(&quot;isomax&quot;);null!=l&amp;&amp;null!=s&amp;&amp;s&gt;l&amp;&amp;(e.isomin=null,e.isomax=null);var c=a(&quot;x&quot;),u=a(&quot;y&quot;),f=a(&quot;z&quot;),h=a(&quot;value&quot;);c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length?(i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],n),[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].forEach((function(t){var e=&quot;caps.&quot;+t;a(e+&quot;.show&quot;)&amp;&amp;a(e+&quot;.fill&quot;);var r=&quot;slices.&quot;+t;a(r+&quot;.show&quot;)&amp;&amp;(a(r+&quot;.fill&quot;),a(r+&quot;.locations&quot;))})),a(&quot;spaceframe.show&quot;)&amp;&amp;a(&quot;spaceframe.fill&quot;),a(&quot;surface.show&quot;)&amp;&amp;(a(&quot;surface.count&quot;),a(&quot;surface.fill&quot;),a(&quot;surface.pattern&quot;)),a(&quot;contour.show&quot;)&amp;&amp;(a(&quot;contour.color&quot;),a(&quot;contour.width&quot;)),[&quot;text&quot;,&quot;hovertext&quot;,&quot;hovertemplate&quot;,&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lighting.vertexnormalsepsilon&quot;,&quot;lighting.facenormalsepsilon&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;flatshading&quot;,&quot;opacity&quot;].forEach((function(t){a(t)})),o(t,e,n,a,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),e._length=null):e.visible=!1}e.exports={supplyDefaults:function(t,e,r,i){s(t,e,r,i,(function(r,i){return n.coerce(t,e,a,r,i)}))},supplyIsoDefaults:s}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1123}],1127:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,calc:t(&quot;./calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;).createIsosurfaceTrace,moduleType:&quot;trace&quot;,name:&quot;isosurface&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1123,&quot;./calc&quot;:1124,&quot;./convert&quot;:1125,&quot;./defaults&quot;:1126}],1128:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../surface/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},i:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},j:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},k:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertemplate:i({editType:&quot;calc&quot;}),delaunayaxis:{valType:&quot;enumerated&quot;,values:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],dflt:&quot;z&quot;,editType:&quot;calc&quot;},alphahull:{valType:&quot;number&quot;,dflt:-1,editType:&quot;calc&quot;},intensity:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},intensitymode:{valType:&quot;enumerated&quot;,values:[&quot;vertex&quot;,&quot;cell&quot;],dflt:&quot;vertex&quot;,editType:&quot;calc&quot;},color:{valType:&quot;color&quot;,editType:&quot;calc&quot;},vertexcolor:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},facecolor:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},transforms:void 0},n(&quot;&quot;,{colorAttr:&quot;`intensity`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{opacity:a.opacity,flatshading:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},contour:{show:s({},a.contours.x.show,{}),color:a.contours.x.color,width:a.contours.x.width,editType:&quot;calc&quot;},lightposition:{x:s({},a.lightposition.x,{dflt:1e5}),y:s({},a.lightposition.y,{dflt:1e5}),z:s({},a.lightposition.z,{dflt:0}),editType:&quot;calc&quot;},lighting:s({vertexnormalsepsilon:{valType:&quot;number&quot;,min:0,max:1,dflt:1e-12,editType:&quot;calc&quot;},facenormalsepsilon:{valType:&quot;number&quot;,min:0,max:1,dflt:1e-6,editType:&quot;calc&quot;},editType:&quot;calc&quot;},a.lighting),hoverinfo:s({},o.hoverinfo,{editType:&quot;calc&quot;}),showlegend:s({},o.showlegend,{dflt:!1})})},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../surface/attributes&quot;:1311}],1129:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){e.intensity&amp;&amp;n(t,e,{vals:e.intensity,containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651}],1130:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;delaunay-triangulate&quot;),a=t(&quot;alpha-shape&quot;),o=t(&quot;convex-hull&quot;),s=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,l=t(&quot;../../lib/str2rgbarray&quot;),c=t(&quot;../../components/colorscale&quot;).extractOpts,u=t(&quot;../../plots/gl3d/zip3&quot;);function f(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.color=&quot;#fff&quot;,this.data=null,this.showContour=!1}var h=f.prototype;function p(t){for(var e=[],r=t.length,n=0;n&lt;r;n++)e[n]=l(t[n]);return e}function d(t,e,r,n){for(var i=[],a=e.length,o=0;o&lt;a;o++)i[o]=t.d2l(e[o],0,n)*r;return i}function g(t){for(var e=[],r=t.length,n=0;n&lt;r;n++)e[n]=Math.round(t[n]);return e}function m(t,e){for(var r=t.length,n=0;n&lt;r;n++)if(t[n]&lt;=-.5||t[n]&gt;=e-.5)return!1;return!0}h.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index;t.data._cellCenter?t.traceCoordinate=t.data.dataCoordinate:t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]];var r=this.data.hovertext||this.data.text;return Array.isArray(r)&amp;&amp;void 0!==r[e]?t.textLabel=r[e]:r&amp;&amp;(t.textLabel=r),!0}},h.update=function(t){var e=this.scene,r=e.fullSceneLayout;this.data=t;var n,f=t.x.length,h=u(d(r.xaxis,t.x,e.dataScale[0],t.xcalendar),d(r.yaxis,t.y,e.dataScale[1],t.ycalendar),d(r.zaxis,t.z,e.dataScale[2],t.zcalendar));if(t.i&amp;&amp;t.j&amp;&amp;t.k){if(t.i.length!==t.j.length||t.j.length!==t.k.length||!m(t.i,f)||!m(t.j,f)||!m(t.k,f))return;n=u(g(t.i),g(t.j),g(t.k))}else n=0===t.alphahull?o(h):t.alphahull&gt;0?a(t.alphahull,h):function(t,e){for(var r=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].indexOf(t),n=[],a=e.length,o=0;o&lt;a;o++)n[o]=[e[o][(r+1)%3],e[o][(r+2)%3]];return i(n)}(t.delaunayaxis,h);var v={positions:h,cells:n,lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:l(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading};if(t.intensity){var y=c(t);this.color=&quot;#fff&quot;;var x=t.intensitymode;v[x+&quot;Intensity&quot;]=t.intensity,v[x+&quot;IntensityBounds&quot;]=[y.min,y.max],v.colormap=s(t)}else t.vertexcolor?(this.color=t.vertexcolor[0],v.vertexColors=p(t.vertexcolor)):t.facecolor?(this.color=t.facecolor[0],v.cellColors=p(t.facecolor)):(this.color=t.color,v.meshColor=l(t.color));this.mesh.update(v)},h.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new f(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/gl3d/zip3&quot;:881,&quot;alpha-shape&quot;:69,&quot;convex-hull&quot;:135,&quot;delaunay-triangulate&quot;:171,&quot;gl-mesh3d&quot;:309}],1131:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,n){return i.coerce(t,e,o,r,n)}function c(t){var e=t.map((function(t){var e=l(t);return e&amp;&amp;i.isArrayOrTypedArray(e)?e:null}));return e.every((function(t){return t&amp;&amp;t.length===e[0].length}))&amp;&amp;e}c([&quot;x&quot;,&quot;y&quot;,&quot;z&quot;])?(c([&quot;i&quot;,&quot;j&quot;,&quot;k&quot;]),(!e.i||e.j&amp;&amp;e.k)&amp;&amp;(!e.j||e.k&amp;&amp;e.i)&amp;&amp;(!e.k||e.i&amp;&amp;e.j)?(n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],s),[&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lighting.vertexnormalsepsilon&quot;,&quot;lighting.facenormalsepsilon&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;flatshading&quot;,&quot;alphahull&quot;,&quot;delaunayaxis&quot;,&quot;opacity&quot;].forEach((function(t){l(t)})),l(&quot;contour.show&quot;)&amp;&amp;(l(&quot;contour.color&quot;),l(&quot;contour.width&quot;)),&quot;intensity&quot;in t?(l(&quot;intensity&quot;),l(&quot;intensitymode&quot;),a(t,e,s,l,{prefix:&quot;&quot;,cLetter:&quot;c&quot;})):(e.showscale=!1,&quot;facecolor&quot;in t?l(&quot;facecolor&quot;):&quot;vertexcolor&quot;in t?l(&quot;vertexcolor&quot;):l(&quot;color&quot;,r)),l(&quot;text&quot;),l(&quot;hovertext&quot;),l(&quot;hovertemplate&quot;),e._length=null):e.visible=!1):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1128}],1132:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;mesh3d&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1128,&quot;./calc&quot;:1129,&quot;./convert&quot;:1130,&quot;./defaults&quot;:1131}],1133:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).extendFlat,i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../components/drawing/attributes&quot;).dash,o=t(&quot;../../components/fx/attributes&quot;),s=t(&quot;../../constants/delta.js&quot;),l=s.INCREASING.COLOR,c=s.DECREASING.COLOR,u=i.line;function f(t){return{line:{color:n({},u.color,{dflt:t}),width:u.width,dash:a,editType:&quot;style&quot;},editType:&quot;style&quot;}}e.exports={xperiod:i.xperiod,xperiod0:i.xperiod0,xperiodalignment:i.xperiodalignment,x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},open:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},high:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},low:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},close:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{width:n({},u.width,{}),dash:n({},a,{}),editType:&quot;style&quot;},increasing:f(l),decreasing:f(c),text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},tickwidth:{valType:&quot;number&quot;,min:0,max:.5,dflt:.3,editType:&quot;calc&quot;},hoverlabel:n({},o.hoverlabel,{split:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;style&quot;}})}},{&quot;../../components/drawing/attributes&quot;:664,&quot;../../components/fx/attributes&quot;:674,&quot;../../constants/delta.js&quot;:747,&quot;../../lib&quot;:778,&quot;../scatter/attributes&quot;:1187}],1134:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=n._,a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r,n){return{o:t,h:e,l:r,c:n}}function c(t,e,r,o,l,c){for(var u=l.makeCalcdata(e,&quot;open&quot;),f=l.makeCalcdata(e,&quot;high&quot;),h=l.makeCalcdata(e,&quot;low&quot;),p=l.makeCalcdata(e,&quot;close&quot;),d=Array.isArray(e.text),g=Array.isArray(e.hovertext),m=!0,v=null,y=!!e.xperiodalignment,x=[],b=0;b&lt;o.length;b++){var _=o[b],w=u[b],T=f[b],k=h[b],M=p[b];if(_!==s&amp;&amp;w!==s&amp;&amp;T!==s&amp;&amp;k!==s&amp;&amp;M!==s){M===w?null!==v&amp;&amp;M!==v&amp;&amp;(m=M&gt;v):m=M&gt;w,v=M;var A=c(w,T,k,M);A.pos=_,A.yc=(w+M)/2,A.i=b,A.dir=m?&quot;increasing&quot;:&quot;decreasing&quot;,A.x=A.pos,A.y=[k,T],y&amp;&amp;(A.orig_p=r[b]),d&amp;&amp;(A.tx=e.text[b]),g&amp;&amp;(A.htx=e.hovertext[b]),x.push(A)}else x.push({pos:_,empty:!0})}return e._extremes[l._id]=a.findExtremes(l,n.concat(h,f),{padded:!0}),x.length&amp;&amp;(x[0].t={labels:{open:i(t,&quot;open:&quot;)+&quot; &quot;,high:i(t,&quot;high:&quot;)+&quot; &quot;,low:i(t,&quot;low:&quot;)+&quot; &quot;,close:i(t,&quot;close:&quot;)+&quot; &quot;}}),x}e.exports={calc:function(t,e){var r=a.getFromId(t,e.xaxis),i=a.getFromId(t,e.yaxis),s=function(t,e,r){var i=r._minDiff;if(!i){var a,s=t._fullData,l=[];for(i=1/0,a=0;a&lt;s.length;a++){var c=s[a];if(&quot;ohlc&quot;===c.type&amp;&amp;!0===c.visible&amp;&amp;c.xaxis===e._id){l.push(c);var u=e.makeCalcdata(c,&quot;x&quot;);c._origX=u;var f=o(r,e,&quot;x&quot;,u);c._xcalc=f;var h=n.distinctVals(f).minDiff;h&amp;&amp;isFinite(h)&amp;&amp;(i=Math.min(i,h))}}for(i===1/0&amp;&amp;(i=1),a=0;a&lt;l.length;a++)l[a]._minDiff=i}return i*r.tickwidth}(t,r,e),u=e._minDiff;e._minDiff=null;var f=e._origX;e._origX=null;var h=e._xcalc;e._xcalc=null;var p=c(t,e,f,h,i,l);return e._extremes[r._id]=a.findExtremes(r,h,{vpad:u/2}),p.length?(n.extendFlat(p[0].t,{wHover:u/2,tickLen:s}),p):[{t:{empty:!0}}]},calcCommon:c}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828}],1135:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./ohlc_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r,n){r(n+&quot;.line.color&quot;),r(n+&quot;.line.width&quot;,e.line.width),r(n+&quot;.line.dash&quot;,e.line.dash)}e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}i(t,e,c,l)?(a(t,e,l,c,{x:!0}),c(&quot;line.width&quot;),c(&quot;line.dash&quot;),s(t,e,c,&quot;increasing&quot;),s(t,e,c,&quot;decreasing&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;tickwidth&quot;),l._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:1133,&quot;./ohlc_defaults&quot;:1138}],1136:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../lib&quot;).fillText,l=t(&quot;../../constants/delta.js&quot;),c={increasing:l.INCREASING.SYMBOL,decreasing:l.DECREASING.SYMBOL};function u(t,e,r,n){var i,s,l=t.cd,c=t.xa,u=l[0].trace,f=l[0].t,h=u.type,p=&quot;ohlc&quot;===h?&quot;l&quot;:&quot;min&quot;,d=&quot;ohlc&quot;===h?&quot;h&quot;:&quot;max&quot;,g=f.bPos||0,m=f.bdPos||f.tickLen,v=f.wHover,y=Math.min(1,m/Math.abs(c.r2c(c.range[1])-c.r2c(c.range[0])));function x(t){var r=function(t){return t.pos+g-e}(t);return a.inbox(r-v,r+v,i)}function b(t){var e=t[p],n=t[d];return e===n||a.inbox(e-r,n-r,i)}function _(t){return(x(t)+b(t))/2}i=t.maxHoverDistance-y,s=t.maxSpikeDistance-y;var w=a.getDistanceFunction(n,x,b,_);if(a.getClosest(l,w,t),!1===t.index)return null;var T=l[t.index];if(T.empty)return null;var k=u[T.dir],M=k.line.color;return o.opacity(M)&amp;&amp;k.line.width?t.color=M:t.color=k.fillcolor,t.x0=c.c2p(T.pos+g-m,!0),t.x1=c.c2p(T.pos+g+m,!0),t.xLabelVal=void 0!==T.orig_p?T.orig_p:T.pos,t.spikeDistance=_(T)*s/i,t.xSpike=c.c2p(T.pos,!0),t}function f(t,e,r,a){var o=t.cd,s=t.ya,l=o[0].trace,c=o[0].t,f=[],h=u(t,e,r,a);if(!h)return[];var p=o[h.index].hi||l.hoverinfo,d=p.split(&quot;+&quot;);if(!(&quot;all&quot;===p||-1!==d.indexOf(&quot;y&quot;)))return[];for(var g=[&quot;high&quot;,&quot;open&quot;,&quot;close&quot;,&quot;low&quot;],m={},v=0;v&lt;g.length;v++){var y,x=g[v],b=l[x][h.index],_=s.c2p(b,!0);b in m?(y=m[b]).yLabel+=&quot;&lt;br&gt;&quot;+c.labels[x]+n.hoverLabelText(s,b):((y=i.extendFlat({},h)).y0=y.y1=_,y.yLabelVal=b,y.yLabel=c.labels[x]+n.hoverLabelText(s,b),y.name=&quot;&quot;,f.push(y),m[b]=y)}return f}function h(t,e,r,i){var a=t.cd,o=t.ya,l=a[0].trace,f=a[0].t,h=u(t,e,r,i);if(!h)return[];var p=a[h.index],d=h.index=p.i,g=p.dir;function m(t){return f.labels[t]+n.hoverLabelText(o,l[t][d])}var v=p.hi||l.hoverinfo,y=v.split(&quot;+&quot;),x=&quot;all&quot;===v,b=x||-1!==y.indexOf(&quot;y&quot;),_=x||-1!==y.indexOf(&quot;text&quot;),w=b?[m(&quot;open&quot;),m(&quot;high&quot;),m(&quot;low&quot;),m(&quot;close&quot;)+&quot;  &quot;+c[g]]:[];return _&amp;&amp;s(p,l,w),h.extraText=w.join(&quot;&lt;br&gt;&quot;),h.y0=h.y1=o.c2p(p.yc,!0),[h]}e.exports={hoverPoints:function(t,e,r,n){return t.cd[0].trace.hoverlabel.split?f(t,e,r,n):h(t,e,r,n)},hoverSplit:f,hoverOnPoints:h}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../constants/delta.js&quot;:747,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1137:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;ohlc&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;showLegend&quot;],meta:{},attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;./select&quot;)}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1133,&quot;./calc&quot;:1134,&quot;./defaults&quot;:1135,&quot;./hover&quot;:1136,&quot;./plot&quot;:1139,&quot;./select&quot;:1140,&quot;./style&quot;:1141}],1138:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=r(&quot;x&quot;),s=r(&quot;open&quot;),l=r(&quot;high&quot;),c=r(&quot;low&quot;),u=r(&quot;close&quot;);if(r(&quot;hoverlabel.split&quot;),n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;],a),s&amp;&amp;l&amp;&amp;c&amp;&amp;u){var f=Math.min(s.length,l.length,c.length,u.length);return o&amp;&amp;(f=Math.min(f,i.minRowLength(o))),e._length=f,f}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1139:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=e.yaxis,s=e.xaxis,l=!!s.rangebreaks;i.makeTraceGroups(a,r,&quot;trace ohlc&quot;).each((function(t){var e=n.select(this),r=t[0],a=r.t;if(!0!==r.trace.visible||a.empty)e.remove();else{var c=a.tickLen,u=e.selectAll(&quot;path&quot;).data(i.identity);u.enter().append(&quot;path&quot;),u.exit().remove(),u.attr(&quot;d&quot;,(function(t){if(t.empty)return&quot;M0,0Z&quot;;var e=s.c2p(t.pos-c,!0),r=s.c2p(t.pos+c,!0),n=l?(e+r)/2:s.c2p(t.pos,!0);return&quot;M&quot;+e+&quot;,&quot;+o.c2p(t.o,!0)+&quot;H&quot;+n+&quot;M&quot;+n+&quot;,&quot;+o.c2p(t.h,!0)+&quot;V&quot;+o.c2p(t.l,!0)+&quot;M&quot;+r+&quot;,&quot;+o.c2p(t.c,!0)+&quot;H&quot;+n}))}}))}},{&quot;../../lib&quot;:778,d3:169}],1140:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].t.bPos||0;if(!1===e)for(r=0;r&lt;n.length;r++)n[r].selected=0;else for(r=0;r&lt;n.length;r++){var l=n[r];e.contains([i.c2p(l.pos+s),a.c2p(l.yc)],null,l.i,t)?(o.push({pointNumber:l.i,x:i.c2d(l.pos),y:a.c2d(l.yc)}),l.selected=1):l.selected=0}return o}},{}],1141:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;);e.exports=function(t,e,r){var o=r||n.select(t).selectAll(&quot;g.ohlclayer&quot;).selectAll(&quot;g.trace&quot;);o.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),o.each((function(t){var e=t[0].trace;n.select(this).selectAll(&quot;path&quot;).each((function(t){if(!t.empty){var r=e[t.dir].line;n.select(this).style(&quot;fill&quot;,&quot;none&quot;).call(a.stroke,r.color).call(i.dashLine,r.dash,r.width).style(&quot;opacity&quot;,e.selectedpoints&amp;&amp;!t.selected?.3:1)}}))}))}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,d3:169}],1142:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/domain&quot;).attributes,c=n({editType:&quot;calc&quot;},o(&quot;line&quot;,{editTypeOverride:&quot;calc&quot;}),{shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;hspline&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},hovertemplate:s({editType:&quot;plot&quot;,arrayOk:!1},{keys:[&quot;count&quot;,&quot;probability&quot;]})});e.exports={domain:l({name:&quot;parcats&quot;,trace:!0,editType:&quot;calc&quot;}),hoverinfo:n({},i.hoverinfo,{flags:[&quot;count&quot;,&quot;probability&quot;],editType:&quot;plot&quot;,arrayOk:!1}),hoveron:{valType:&quot;enumerated&quot;,values:[&quot;category&quot;,&quot;color&quot;,&quot;dimension&quot;],dflt:&quot;category&quot;,editType:&quot;plot&quot;},hovertemplate:s({editType:&quot;plot&quot;,arrayOk:!1},{keys:[&quot;count&quot;,&quot;probability&quot;,&quot;category&quot;,&quot;categorycount&quot;,&quot;colorcount&quot;,&quot;bandcolorcount&quot;]}),arrangement:{valType:&quot;enumerated&quot;,values:[&quot;perpendicular&quot;,&quot;freeform&quot;,&quot;fixed&quot;],dflt:&quot;perpendicular&quot;,editType:&quot;plot&quot;},bundlecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},sortpaths:{valType:&quot;enumerated&quot;,values:[&quot;forward&quot;,&quot;backward&quot;],dflt:&quot;forward&quot;,editType:&quot;plot&quot;},labelfont:a({editType:&quot;calc&quot;}),tickfont:a({editType:&quot;calc&quot;}),dimensions:{_isLinkedToArray:&quot;dimension&quot;,label:{valType:&quot;string&quot;,editType:&quot;calc&quot;},categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},displayindex:{valType:&quot;integer&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;,visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}},line:c,counts:{valType:&quot;number&quot;,min:0,dflt:1,arrayOk:!0,editType:&quot;calc&quot;},customdata:void 0,hoverlabel:void 0,ids:void 0,legendgroup:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906}],1143:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getModuleCalcData,i=t(&quot;./plot&quot;);r.name=&quot;parcats&quot;,r.plot=function(t,e,r,a){var o=n(t.calcdata,&quot;parcats&quot;);if(o.length){var s=o[0];i(t,s,r,a)}},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;parcats&quot;),a=e._has&amp;&amp;e._has(&quot;parcats&quot;);i&amp;&amp;!a&amp;&amp;n._paperdiv.selectAll(&quot;.parcats&quot;).remove()}},{&quot;../../plots/get_data&quot;:865,&quot;./plot&quot;:1148}],1144:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/gup&quot;).wrap,i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/calc&quot;),o=t(&quot;../../lib/filter_unique.js&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;fast-isnumeric&quot;);function u(t,e,r){t.valueInds.push(e),t.count+=r}function f(t,e,r){return{categoryInds:t,color:e,rawColor:r,valueInds:[],count:0}}function h(t,e,r){t.valueInds.push(e),t.count+=r}e.exports=function(t,e){var r=l.filterVisible(e.dimensions);if(0===r.length)return[];var p,d,g,m=r.map((function(t){var e;if(&quot;trace&quot;===t.categoryorder)e=null;else if(&quot;array&quot;===t.categoryorder)e=t.categoryarray;else{e=o(t.values);for(var r=!0,n=0;n&lt;e.length;n++)if(!c(e[n])){r=!1;break}e.sort(r?l.sorterAsc:void 0),&quot;category descending&quot;===t.categoryorder&amp;&amp;(e=e.reverse())}return function(t,e){e=null==e?[]:e.map((function(t){return t}));var r={},n={},i=[];e.forEach((function(t,e){r[t]=0,n[t]=e}));for(var a=0;a&lt;t.length;a++){var o,s=t[a];void 0===r[s]?(r[s]=1,o=e.push(s)-1,n[s]=o):(r[s]++,o=n[s]),i.push(o)}var l=e.map((function(t){return r[t]}));return{uniqueValues:e,uniqueCounts:l,inds:i}}(t.values,e)}));p=l.isArrayOrTypedArray(e.counts)?e.counts:[e.counts],function(t){var e;if(function(t){for(var e=new Array(t.length),r=0;r&lt;t.length;r++){if(t[r]&lt;0||t[r]&gt;=t.length)return!1;if(void 0!==e[t[r]])return!1;e[t[r]]=!0}return!0}(t.map((function(t){return t.displayindex}))))for(e=0;e&lt;t.length;e++)t[e]._displayindex=t[e].displayindex;else for(e=0;e&lt;t.length;e++)t[e]._displayindex=e}(r),r.forEach((function(t,e){!function(t,e){t._categoryarray=e.uniqueValues,null===t.ticktext||void 0===t.ticktext?t._ticktext=[]:t._ticktext=t.ticktext.slice();for(var r=t._ticktext.length;r&lt;e.uniqueValues.length;r++)t._ticktext.push(e.uniqueValues[r])}(t,m[e])}));var v,y=e.line;y?(i(e,&quot;line&quot;)&amp;&amp;a(t,e,{vals:e.line.color,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;}),v=s.tryColorscale(y)):v=l.identity;var x,b,_,w,T,k=r[0].values.length,M={},A=m.map((function(t){return t.inds}));for(g=0,x=0;x&lt;k;x++){var S=[];for(b=0;b&lt;A.length;b++)S.push(A[b][x]);d=p[x%p.length],g+=d;var E=(_=x,w=void 0,T=void 0,l.isArrayOrTypedArray(y.color)?T=w=y.color[_%y.color.length]:w=y.color,{color:v(w),rawColor:T}),C=S+&quot;-&quot;+E.rawColor;void 0===M[C]&amp;&amp;(M[C]=f(S,E.color,E.rawColor)),h(M[C],x,d)}var L,I=r.map((function(t,e){return function(t,e,r,n,i){return{dimensionInd:t,containerInd:e,displayInd:r,dimensionLabel:n,count:i,categories:[],dragX:null}}(e,t._index,t._displayindex,t.label,g)}));for(x=0;x&lt;k;x++)for(d=p[x%p.length],b=0;b&lt;I.length;b++){var P=I[b].containerInd,z=m[b].inds[x],O=I[b].categories;if(void 0===O[z]){var D=e.dimensions[P]._categoryarray[z],R=e.dimensions[P]._ticktext[z];O[z]={dimensionInd:b,categoryInd:L=z,categoryValue:D,displayInd:L,categoryLabel:R,valueInds:[],count:0,dragY:null}}u(O[z],x,d)}return n(function(t,e,r){var n=t.map((function(t){return t.categories.length})).reduce((function(t,e){return Math.max(t,e)}));return{dimensions:t,paths:e,trace:void 0,maxCats:n,count:r}}(I,M,g))}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/filter_unique.js&quot;:769,&quot;../../lib/gup&quot;:775,&quot;fast-isnumeric&quot;:241}],1145:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../parcoords/merge_length&quot;);function u(t,e){function r(r,i){return n.coerce(t,e,l.dimensions,r,i)}var i=r(&quot;values&quot;),a=r(&quot;visible&quot;);if(i&amp;&amp;i.length||(a=e.visible=!1),a){r(&quot;label&quot;),r(&quot;displayindex&quot;,e._index);var o,s=t.categoryarray,c=Array.isArray(s)&amp;&amp;s.length&gt;0;c&amp;&amp;(o=&quot;array&quot;);var u=r(&quot;categoryorder&quot;,o);&quot;array&quot;===u?(r(&quot;categoryarray&quot;),r(&quot;ticktext&quot;)):(delete t.categoryarray,delete t.ticktext),c||&quot;array&quot;!==u||(e.categoryorder=&quot;trace&quot;)}}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,l,r,i)}var p=s(t,e,{name:&quot;dimensions&quot;,handleItemDefaults:u}),d=function(t,e,r,o,s){s(&quot;line.shape&quot;),s(&quot;line.hovertemplate&quot;);var l=s(&quot;line.color&quot;,o.colorway[0]);if(i(t,&quot;line&quot;)&amp;&amp;n.isArrayOrTypedArray(l)){if(l.length)return s(&quot;line.colorscale&quot;),a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}),l.length;e.line.color=r}return 1/0}(t,e,r,f,h);o(e,f,h),Array.isArray(p)&amp;&amp;p.length||(e.visible=!1),c(e,p,&quot;values&quot;,d),h(&quot;hoveron&quot;),h(&quot;hovertemplate&quot;),h(&quot;arrangement&quot;),h(&quot;bundlecolors&quot;),h(&quot;sortpaths&quot;),h(&quot;counts&quot;);var g={family:f.font.family,size:Math.round(f.font.size),color:f.font.color};n.coerceFont(h,&quot;labelfont&quot;,g);var m={family:f.font.family,size:Math.round(f.font.size/1.2),color:f.font.color};n.coerceFont(h,&quot;tickfont&quot;,m)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/domain&quot;:855,&quot;../parcoords/merge_length&quot;:1158,&quot;./attributes&quot;:1142}],1146:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},moduleType:&quot;trace&quot;,name:&quot;parcats&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1142,&quot;./base_plot&quot;:1143,&quot;./calc&quot;:1144,&quot;./defaults&quot;:1145,&quot;./plot&quot;:1148}],1147:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plot_api/plot_api&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../../components/drawing&quot;),c=t(&quot;tinycolor2&quot;),u=t(&quot;../../lib/svg_text_utils&quot;);function f(t,e,r,i){var a=t.map(R.bind(0,e,r)),c=i.selectAll(&quot;g.parcatslayer&quot;).data([null]);c.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;parcatslayer&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;);var f=c.selectAll(&quot;g.trace.parcats&quot;).data(a,h),v=f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;trace parcats&quot;);f.attr(&quot;transform&quot;,(function(t){return s(t.x,t.y)})),v.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;paths&quot;);var y=f.select(&quot;g.paths&quot;).selectAll(&quot;path.path&quot;).data((function(t){return t.paths}),h);y.attr(&quot;fill&quot;,(function(t){return t.model.color}));var _=y.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;path&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.model.color})).attr(&quot;fill-opacity&quot;,0);b(_),y.attr(&quot;d&quot;,(function(t){return t.svgD})),_.empty()||y.sort(d),y.exit().remove(),y.on(&quot;mouseover&quot;,g).on(&quot;mouseout&quot;,m).on(&quot;click&quot;,x),v.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;dimensions&quot;);var k=f.select(&quot;g.dimensions&quot;).selectAll(&quot;g.dimension&quot;).data((function(t){return t.dimensions}),h);k.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;dimension&quot;),k.attr(&quot;transform&quot;,(function(t){return s(t.x,0)})),k.exit().remove();var M=k.selectAll(&quot;g.category&quot;).data((function(t){return t.categories}),h),A=M.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;category&quot;);M.attr(&quot;transform&quot;,(function(t){return s(0,t.y)})),A.append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;catrect&quot;).attr(&quot;pointer-events&quot;,&quot;none&quot;),M.select(&quot;rect.catrect&quot;).attr(&quot;fill&quot;,&quot;none&quot;).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})),w(A);var S=M.selectAll(&quot;rect.bandrect&quot;).data((function(t){return t.bands}),h);S.each((function(){o.raiseToTop(this)})),S.attr(&quot;fill&quot;,(function(t){return t.color}));var z=S.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bandrect&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;fill-opacity&quot;,0);S.attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})).attr(&quot;y&quot;,(function(t){return t.y})).attr(&quot;cursor&quot;,(function(t){return&quot;fixed&quot;===t.parcatsViewModel.arrangement?&quot;default&quot;:&quot;perpendicular&quot;===t.parcatsViewModel.arrangement?&quot;ns-resize&quot;:&quot;move&quot;})),T(z),S.exit().remove(),A.append(&quot;text&quot;).attr(&quot;class&quot;,&quot;catlabel&quot;).attr(&quot;pointer-events&quot;,&quot;none&quot;);var O=e._fullLayout.paper_bgcolor;M.select(&quot;text.catlabel&quot;).attr(&quot;text-anchor&quot;,(function(t){return p(t)?&quot;start&quot;:&quot;end&quot;})).attr(&quot;alignment-baseline&quot;,&quot;middle&quot;).style(&quot;text-shadow&quot;,O+&quot; -1px  1px 2px, &quot;+O+&quot; 1px  1px 2px, &quot;+O+&quot;  1px -1px 2px, &quot;+O+&quot; -1px -1px 2px&quot;).style(&quot;fill&quot;,&quot;rgb(0, 0, 0)&quot;).attr(&quot;x&quot;,(function(t){return p(t)?t.width+5:-5})).attr(&quot;y&quot;,(function(t){return t.height/2})).text((function(t){return t.model.categoryLabel})).each((function(t){l.font(n.select(this),t.parcatsViewModel.categorylabelfont),u.convertToTspans(n.select(this),e)})),A.append(&quot;text&quot;).attr(&quot;class&quot;,&quot;dimlabel&quot;),M.select(&quot;text.dimlabel&quot;).attr(&quot;text-anchor&quot;,&quot;middle&quot;).attr(&quot;alignment-baseline&quot;,&quot;baseline&quot;).attr(&quot;cursor&quot;,(function(t){return&quot;fixed&quot;===t.parcatsViewModel.arrangement?&quot;default&quot;:&quot;ew-resize&quot;})).attr(&quot;x&quot;,(function(t){return t.width/2})).attr(&quot;y&quot;,-5).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})).each((function(t){l.font(n.select(this),t.parcatsViewModel.labelfont)})),M.selectAll(&quot;rect.bandrect&quot;).on(&quot;mouseover&quot;,E).on(&quot;mouseout&quot;,C),M.exit().remove(),k.call(n.behavior.drag().origin((function(t){return{x:t.x,y:0}})).on(&quot;dragstart&quot;,L).on(&quot;drag&quot;,I).on(&quot;dragend&quot;,P)),f.each((function(t){t.traceSelection=n.select(this),t.pathSelection=n.select(this).selectAll(&quot;g.paths&quot;).selectAll(&quot;path.path&quot;),t.dimensionSelection=n.select(this).selectAll(&quot;g.dimensions&quot;).selectAll(&quot;g.dimension&quot;)})),f.exit().remove()}function h(t){return t.key}function p(t){var e=t.parcatsViewModel.dimensions.length,r=t.parcatsViewModel.dimensions[e-1].model.dimensionInd;return t.model.dimensionInd===r}function d(t,e){return t.model.rawColor&gt;e.model.rawColor?1:t.model.rawColor&lt;e.model.rawColor?-1:0}function g(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){o.raiseToTop(this),_(n.select(this));var e=v(t),r=y(t);if(t.parcatsViewModel.graphDiv.emit(&quot;plotly_hover&quot;,{points:e,event:n.event,constraints:r}),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;none&quot;)){var i,s,l,u=n.mouse(this)[0],f=t.parcatsViewModel.graphDiv,h=t.parcatsViewModel.trace,p=f._fullLayout,d=p._paperdiv.node().getBoundingClientRect(),g=t.parcatsViewModel.graphDiv.getBoundingClientRect();for(l=0;l&lt;t.leftXs.length-1;l++)if(t.leftXs[l]+t.dimWidths[l]-2&lt;=u&amp;&amp;u&lt;=t.leftXs[l+1]+2){var m=t.parcatsViewModel.dimensions[l],x=t.parcatsViewModel.dimensions[l+1];i=(m.x+m.width+x.x)/2,s=(t.topYs[l]+t.topYs[l+1]+t.height)/2;break}var b=t.parcatsViewModel.x+i,w=t.parcatsViewModel.y+s,T=c.mostReadable(t.model.color,[&quot;black&quot;,&quot;white&quot;]),k=t.model.count,M=k/t.parcatsViewModel.model.count,A={countLabel:k,probabilityLabel:M.toFixed(3)},S=[];-1!==t.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;S.push([&quot;Count:&quot;,A.countLabel].join(&quot; &quot;)),-1!==t.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;S.push([&quot;P:&quot;,A.probabilityLabel].join(&quot; &quot;));var E=S.join(&quot;&lt;br&gt;&quot;),C=n.mouse(f)[0];a.loneHover({trace:h,x:b-d.left+g.left,y:w-d.top+g.top,text:E,color:t.model.color,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontSize:10,fontColor:T,idealAlign:C&lt;b?&quot;right&quot;:&quot;left&quot;,hovertemplate:(h.line||{}).hovertemplate,hovertemplateLabels:A,eventData:[{data:h._input,fullData:h,count:k,probability:M}]},{container:p._hoverlayer.node(),outerContainer:p._paper.node(),gd:f})}}}function m(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;(b(n.select(this)),a.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()),t.parcatsViewModel.pathSelection.sort(d),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;))){var e=v(t),r=y(t);t.parcatsViewModel.graphDiv.emit(&quot;plotly_unhover&quot;,{points:e,event:n.event,constraints:r})}}function v(t){for(var e=[],r=z(t.parcatsViewModel),n=0;n&lt;t.model.valueInds.length;n++){var i=t.model.valueInds[n];e.push({curveNumber:r,pointNumber:i})}return e}function y(t){for(var e={},r=t.parcatsViewModel.model.dimensions,n=0;n&lt;r.length;n++){var i=r[n],a=i.categories[t.model.categoryInds[n]];e[i.containerInd]=a.categoryValue}return void 0!==t.model.rawColor&amp;&amp;(e.color=t.model.rawColor),e}function x(t){if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){var e=v(t),r=y(t);t.parcatsViewModel.graphDiv.emit(&quot;plotly_click&quot;,{points:e,event:n.event,constraints:r})}}function b(t){t.attr(&quot;fill&quot;,(function(t){return t.model.color})).attr(&quot;fill-opacity&quot;,.6).attr(&quot;stroke&quot;,&quot;lightgray&quot;).attr(&quot;stroke-width&quot;,.2).attr(&quot;stroke-opacity&quot;,1)}function _(t){t.attr(&quot;fill-opacity&quot;,.8).attr(&quot;stroke&quot;,(function(t){return c.mostReadable(t.model.color,[&quot;black&quot;,&quot;white&quot;])})).attr(&quot;stroke-width&quot;,.3)}function w(t){t.select(&quot;rect.catrect&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,1).attr(&quot;stroke-opacity&quot;,1)}function T(t){t.attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,.2).attr(&quot;stroke-opacity&quot;,1).attr(&quot;fill-opacity&quot;,1)}function k(t){var e=t.parcatsViewModel.pathSelection,r=t.categoryViewModel.model.dimensionInd,n=t.categoryViewModel.model.categoryInd;return e.filter((function(e){return e.model.categoryInds[r]===n&amp;&amp;e.model.color===t.color}))}function M(t,e,r){var i=n.select(t).datum(),a=i.categoryViewModel.model,o=i.parcatsViewModel.graphDiv,s=n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;),l=[];s.each((function(t){k(t).each((function(t){Array.prototype.push.apply(l,v(t))}))}));var c={};c[a.dimensionInd]=a.categoryValue,o.emit(e,{points:l,event:r,constraints:c})}function A(t,e,r){var i=n.select(t).datum(),a=i.categoryViewModel.model,o=i.parcatsViewModel.graphDiv,s=k(i),l=[];s.each((function(t){Array.prototype.push.apply(l,v(t))}));var c={};c[a.dimensionInd]=a.categoryValue,void 0!==i.rawColor&amp;&amp;(c.color=i.rawColor),o.emit(e,{points:l,event:r,constraints:c})}function S(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=n.select(r.parentNode).select(&quot;rect.catrect&quot;),c=l.node().getBoundingClientRect(),u=l.datum(),f=u.parcatsViewModel,h=f.model.dimensions[u.model.dimensionInd],p=f.trace,d=c.top+c.height/2;f.dimensions.length&gt;1&amp;&amp;h.displayInd===f.dimensions.length-1?(i=c.left,a=&quot;left&quot;):(i=c.left+c.width,a=&quot;right&quot;);var g=u.model.count,m=u.model.categoryLabel,v=g/u.parcatsViewModel.model.count,y={countLabel:g,categoryLabel:m,probabilityLabel:v.toFixed(3)},x=[];-1!==u.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;x.push([&quot;Count:&quot;,y.countLabel].join(&quot; &quot;)),-1!==u.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;x.push([&quot;P(&quot;+y.categoryLabel+&quot;):&quot;,y.probabilityLabel].join(&quot; &quot;));var b=x.join(&quot;&lt;br&gt;&quot;);return{trace:p,x:o*(i-e.left),y:s*(d-e.top),text:b,color:&quot;lightgray&quot;,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontSize:12,fontColor:&quot;black&quot;,idealAlign:a,hovertemplate:p.hovertemplate,hovertemplateLabels:y,eventData:[{data:p._input,fullData:p,count:g,category:m,probability:v}]}}function E(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){if(n.mouse(this)[1]&lt;-1)return;var e,r=t.parcatsViewModel.graphDiv,i=r._fullLayout,s=i._paperdiv.node().getBoundingClientRect(),l=t.parcatsViewModel.hoveron;if(&quot;color&quot;===l?(!function(t){var e=n.select(t).datum(),r=k(e);_(r),r.each((function(){o.raiseToTop(this)})),n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;).filter((function(t){return t.color===e.color})).each((function(){o.raiseToTop(this),n.select(this).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,1.5)}))}(this),A(this,&quot;plotly_hover&quot;,n.event)):(!function(t){n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;).each((function(t){var e=k(t);_(e),e.each((function(){o.raiseToTop(this)}))})),n.select(t.parentNode).select(&quot;rect.catrect&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,2.5)}(this),M(this,&quot;plotly_hover&quot;,n.event)),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;none&quot;))&quot;category&quot;===l?e=S(r,s,this):&quot;color&quot;===l?e=function(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=r.getBoundingClientRect(),u=n.select(r).datum(),f=u.categoryViewModel,h=f.parcatsViewModel,p=h.model.dimensions[f.model.dimensionInd],d=h.trace,g=l.y+l.height/2;h.dimensions.length&gt;1&amp;&amp;p.displayInd===h.dimensions.length-1?(i=l.left,a=&quot;left&quot;):(i=l.left+l.width,a=&quot;right&quot;);var m=f.model.categoryLabel,v=u.parcatsViewModel.model.count,y=0;u.categoryViewModel.bands.forEach((function(t){t.color===u.color&amp;&amp;(y+=t.count)}));var x=f.model.count,b=0;h.pathSelection.each((function(t){t.model.color===u.color&amp;&amp;(b+=t.model.count)}));var _=y/v,w=y/b,T=y/x,k={countLabel:v,categoryLabel:m,probabilityLabel:_.toFixed(3)},M=[];-1!==f.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;M.push([&quot;Count:&quot;,k.countLabel].join(&quot; &quot;)),-1!==f.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;(M.push(&quot;P(color \u2229 &quot;+m+&quot;): &quot;+k.probabilityLabel),M.push(&quot;P(&quot;+m+&quot; | color): &quot;+w.toFixed(3)),M.push(&quot;P(color | &quot;+m+&quot;): &quot;+T.toFixed(3)));var A=M.join(&quot;&lt;br&gt;&quot;),S=c.mostReadable(u.color,[&quot;black&quot;,&quot;white&quot;]);return{trace:d,x:o*(i-e.left),y:s*(g-e.top),text:A,color:u.color,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontColor:S,fontSize:10,idealAlign:a,hovertemplate:d.hovertemplate,hovertemplateLabels:k,eventData:[{data:d._input,fullData:d,category:m,count:v,probability:_,categorycount:x,colorcount:b,bandcolorcount:y}]}}(r,s,this):&quot;dimension&quot;===l&amp;&amp;(e=function(t,e,r){var i=[];return n.select(r.parentNode.parentNode).selectAll(&quot;g.category&quot;).select(&quot;rect.catrect&quot;).each((function(){i.push(S(t,e,this))})),i}(r,s,this)),e&amp;&amp;a.loneHover(e,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r})}}function C(t){var e=t.parcatsViewModel;if(!e.dragDimension&amp;&amp;(b(e.pathSelection),w(e.dimensionSelection.selectAll(&quot;g.category&quot;)),T(e.dimensionSelection.selectAll(&quot;g.category&quot;).selectAll(&quot;rect.bandrect&quot;)),a.loneUnhover(e.graphDiv._fullLayout._hoverlayer.node()),e.pathSelection.sort(d),-1===e.hoverinfoItems.indexOf(&quot;skip&quot;))){&quot;color&quot;===t.parcatsViewModel.hoveron?A(this,&quot;plotly_unhover&quot;,n.event):M(this,&quot;plotly_unhover&quot;,n.event)}}function L(t){&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;(t.dragDimensionDisplayInd=t.model.displayInd,t.initialDragDimensionDisplayInds=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),t.dragHasMoved=!1,t.dragCategoryDisplayInd=null,n.select(this).selectAll(&quot;g.category&quot;).select(&quot;rect.catrect&quot;).each((function(e){var r=n.mouse(this)[0],i=n.mouse(this)[1];-2&lt;=r&amp;&amp;r&lt;=e.width+2&amp;&amp;-2&lt;=i&amp;&amp;i&lt;=e.height+2&amp;&amp;(t.dragCategoryDisplayInd=e.model.displayInd,t.initialDragCategoryDisplayInds=t.model.categories.map((function(t){return t.displayInd})),e.model.dragY=e.y,o.raiseToTop(this.parentNode),n.select(this.parentNode).selectAll(&quot;rect.bandrect&quot;).each((function(e){e.y&lt;i&amp;&amp;i&lt;=e.y+e.height&amp;&amp;(t.potentialClickBand=this)})))})),t.parcatsViewModel.dragDimension=t,a.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()))}function I(t){if(&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;(t.dragHasMoved=!0,null!==t.dragDimensionDisplayInd)){var e=t.dragDimensionDisplayInd,r=e-1,i=e+1,a=t.parcatsViewModel.dimensions[e];if(null!==t.dragCategoryDisplayInd){var o=a.categories[t.dragCategoryDisplayInd];o.model.dragY+=n.event.dy;var s=o.model.dragY,l=o.model.displayInd,c=a.categories,u=c[l-1],f=c[l+1];void 0!==u&amp;&amp;s&lt;u.y+u.height/2&amp;&amp;(o.model.displayInd=u.model.displayInd,u.model.displayInd=l),void 0!==f&amp;&amp;s+o.height&gt;f.y+f.height/2&amp;&amp;(o.model.displayInd=f.model.displayInd,f.model.displayInd=l),t.dragCategoryDisplayInd=o.model.displayInd}if(null===t.dragCategoryDisplayInd||&quot;freeform&quot;===t.parcatsViewModel.arrangement){a.model.dragX=n.event.x;var h=t.parcatsViewModel.dimensions[r],p=t.parcatsViewModel.dimensions[i];void 0!==h&amp;&amp;a.model.dragX&lt;h.x+h.width&amp;&amp;(a.model.displayInd=h.model.displayInd,h.model.displayInd=e),void 0!==p&amp;&amp;a.model.dragX+a.width&gt;p.x&amp;&amp;(a.model.displayInd=p.model.displayInd,p.model.displayInd=t.dragDimensionDisplayInd),t.dragDimensionDisplayInd=a.model.displayInd}N(t.parcatsViewModel),B(t.parcatsViewModel),D(t.parcatsViewModel),O(t.parcatsViewModel)}}function P(t){if(&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;null!==t.dragDimensionDisplayInd){n.select(this).selectAll(&quot;text&quot;).attr(&quot;font-weight&quot;,&quot;normal&quot;);var e={},r=z(t.parcatsViewModel),a=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),o=t.initialDragDimensionDisplayInds.some((function(t,e){return t!==a[e]}));o&amp;&amp;a.forEach((function(r,n){var i=t.parcatsViewModel.model.dimensions[n].containerInd;e[&quot;dimensions[&quot;+i+&quot;].displayindex&quot;]=r}));var s=!1;if(null!==t.dragCategoryDisplayInd){var l=t.model.categories.map((function(t){return t.displayInd}));if(s=t.initialDragCategoryDisplayInds.some((function(t,e){return t!==l[e]}))){var c=t.model.categories.slice().sort((function(t,e){return t.displayInd-e.displayInd})),u=c.map((function(t){return t.categoryValue})),f=c.map((function(t){return t.categoryLabel}));e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].categoryarray&quot;]=[u],e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].ticktext&quot;]=[f],e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].categoryorder&quot;]=&quot;array&quot;}}if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)&amp;&amp;!t.dragHasMoved&amp;&amp;t.potentialClickBand&amp;&amp;(&quot;color&quot;===t.parcatsViewModel.hoveron?A(t.potentialClickBand,&quot;plotly_click&quot;,n.event.sourceEvent):M(t.potentialClickBand,&quot;plotly_click&quot;,n.event.sourceEvent)),t.model.dragX=null,null!==t.dragCategoryDisplayInd)t.parcatsViewModel.dimensions[t.dragDimensionDisplayInd].categories[t.dragCategoryDisplayInd].model.dragY=null,t.dragCategoryDisplayInd=null;t.dragDimensionDisplayInd=null,t.parcatsViewModel.dragDimension=null,t.dragHasMoved=null,t.potentialClickBand=null,N(t.parcatsViewModel),B(t.parcatsViewModel),n.transition().duration(300).ease(&quot;cubic-in-out&quot;).each((function(){D(t.parcatsViewModel,!0),O(t.parcatsViewModel,!0)})).each(&quot;end&quot;,(function(){(o||s)&amp;&amp;i.restyle(t.parcatsViewModel.graphDiv,e,[r])}))}}function z(t){for(var e,r=t.graphDiv._fullData,n=0;n&lt;r.length;n++)if(t.key===r[n].uid){e=n;break}return e}function O(t,e){var r;void 0===e&amp;&amp;(e=!1),t.pathSelection.data((function(t){return t.paths}),h),(r=t.pathSelection,e?r.transition():r).attr(&quot;d&quot;,(function(t){return t.svgD}))}function D(t,e){function r(t){return e?t.transition():t}void 0===e&amp;&amp;(e=!1),t.dimensionSelection.data((function(t){return t.dimensions}),h);var i=t.dimensionSelection.selectAll(&quot;g.category&quot;).data((function(t){return t.categories}),h);r(t.dimensionSelection).attr(&quot;transform&quot;,(function(t){return s(t.x,0)})),r(i).attr(&quot;transform&quot;,(function(t){return s(0,t.y)})),i.select(&quot;.dimlabel&quot;).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})),i.select(&quot;.catlabel&quot;).attr(&quot;text-anchor&quot;,(function(t){return p(t)?&quot;start&quot;:&quot;end&quot;})).attr(&quot;x&quot;,(function(t){return p(t)?t.width+5:-5})).each((function(t){var e,r;p(t)?(e=t.width+5,r=&quot;start&quot;):(e=-5,r=&quot;end&quot;),n.select(this).selectAll(&quot;tspan&quot;).attr(&quot;x&quot;,e).attr(&quot;text-anchor&quot;,r)}));var a=i.selectAll(&quot;rect.bandrect&quot;).data((function(t){return t.bands}),h),l=a.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bandrect&quot;).attr(&quot;cursor&quot;,&quot;move&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;fill-opacity&quot;,0);a.attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})).attr(&quot;y&quot;,(function(t){return t.y})),T(l),a.each((function(){o.raiseToTop(this)})),a.exit().remove()}function R(t,e,r){var n,i=r[0],a=e.margin||{l:80,r:80,t:100,b:80},o=i.trace,s=o.domain,l=e.width,c=e.height,u=Math.floor(l*(s.x[1]-s.x[0])),f=Math.floor(c*(s.y[1]-s.y[0])),h=s.x[0]*l+a.l,p=e.height-s.y[1]*e.height+a.t,d=o.line.shape;n=&quot;all&quot;===o.hoverinfo?[&quot;count&quot;,&quot;probability&quot;]:(o.hoverinfo||&quot;&quot;).split(&quot;+&quot;);var g={trace:o,key:o.uid,model:i,x:h,y:p,width:u,height:f,hoveron:o.hoveron,hoverinfoItems:n,arrangement:o.arrangement,bundlecolors:o.bundlecolors,sortpaths:o.sortpaths,labelfont:o.labelfont,categorylabelfont:o.tickfont,pathShape:d,dragDimension:null,margin:a,paths:[],dimensions:[],graphDiv:t,traceSelection:null,pathSelection:null,dimensionSelection:null};return i.dimensions&amp;&amp;(N(g),B(g)),g}function F(t,e,r,i,a){var o,s,l=[],c=[];for(s=0;s&lt;r.length-1;s++)o=n.interpolateNumber(r[s]+t[s],t[s+1]),l.push(o(a)),c.push(o(1-a));var u=&quot;M &quot;+t[0]+&quot;,&quot;+e[0];for(u+=&quot;l&quot;+r[0]+&quot;,0 &quot;,s=1;s&lt;r.length;s++)u+=&quot;C&quot;+l[s-1]+&quot;,&quot;+e[s-1]+&quot; &quot;+c[s-1]+&quot;,&quot;+e[s]+&quot; &quot;+t[s]+&quot;,&quot;+e[s],u+=&quot;l&quot;+r[s]+&quot;,0 &quot;;for(u+=&quot;l0,&quot;+i+&quot; &quot;,u+=&quot;l -&quot;+r[r.length-1]+&quot;,0 &quot;,s=r.length-2;s&gt;=0;s--)u+=&quot;C&quot;+c[s]+&quot;,&quot;+(e[s+1]+i)+&quot; &quot;+l[s]+&quot;,&quot;+(e[s]+i)+&quot; &quot;+(t[s]+r[s])+&quot;,&quot;+(e[s]+i),u+=&quot;l-&quot;+r[s]+&quot;,0 &quot;;return u+=&quot;Z&quot;}function B(t){var e=t.dimensions,r=t.model,n=e.map((function(t){return t.categories.map((function(t){return t.y}))})),i=t.model.dimensions.map((function(t){return t.categories.map((function(t){return t.displayInd}))})),a=t.model.dimensions.map((function(t){return t.displayInd})),o=t.dimensions.map((function(t){return t.model.dimensionInd})),s=e.map((function(t){return t.x})),l=e.map((function(t){return t.width})),c=[];for(var u in r.paths)r.paths.hasOwnProperty(u)&amp;&amp;c.push(r.paths[u]);function f(t){var e=t.categoryInds.map((function(t,e){return i[e][t]}));return o.map((function(t){return e[t]}))}c.sort((function(e,r){var n=f(e),i=f(r);return&quot;backward&quot;===t.sortpaths&amp;&amp;(n.reverse(),i.reverse()),n.push(e.valueInds[0]),i.push(r.valueInds[0]),t.bundlecolors&amp;&amp;(n.unshift(e.rawColor),i.unshift(r.rawColor)),n&lt;i?-1:n&gt;i?1:0}));for(var h=new Array(c.length),p=e[0].model.count,d=e[0].categories.map((function(t){return t.height})).reduce((function(t,e){return t+e})),g=0;g&lt;c.length;g++){var m,v=c[g];m=p&gt;0?d*(v.count/p):0;for(var y,x=new Array(n.length),b=0;b&lt;v.categoryInds.length;b++){var _=v.categoryInds[b],w=i[b][_],T=a[b];x[T]=n[T][w],n[T][w]+=m;var k=t.dimensions[T].categories[w],M=k.bands.length,A=k.bands[M-1];if(void 0===A||v.rawColor!==A.rawColor){var S=void 0===A?0:A.y+A.height;k.bands.push({key:S,color:v.color,rawColor:v.rawColor,height:m,width:k.width,count:v.count,y:S,categoryViewModel:k,parcatsViewModel:t})}else{var E=k.bands[M-1];E.height+=m,E.count+=v.count}}y=&quot;hspline&quot;===t.pathShape?F(s,x,l,m,.5):F(s,x,l,m,0),h[g]={key:v.valueInds[0],model:v,height:m,leftXs:s,topYs:x,dimWidths:l,svgD:y,parcatsViewModel:t}}t.paths=h}function N(t){var e=t.model.dimensions.map((function(t){return{displayInd:t.displayInd,dimensionInd:t.dimensionInd}}));e.sort((function(t,e){return t.displayInd-e.displayInd}));var r=[];for(var n in e){var i=e[n].dimensionInd,a=t.model.dimensions[i];r.push(j(t,a))}t.dimensions=r}function j(t,e){var r,n=t.model.dimensions.length,i=e.displayInd;r=40+(n&gt;1?(t.width-80-16)/(n-1):0)*i;var a,o,s,l,c,u=[],f=t.model.maxCats,h=e.categories.length,p=e.count,d=t.height-8*(f-1),g=8*(f-h)/2,m=e.categories.map((function(t){return{displayInd:t.displayInd,categoryInd:t.categoryInd}}));for(m.sort((function(t,e){return t.displayInd-e.displayInd})),c=0;c&lt;h;c++)l=m[c].categoryInd,o=e.categories[l],a=p&gt;0?o.count/p*d:0,s={key:o.valueInds[0],model:o,width:16,height:a,y:null!==o.dragY?o.dragY:g,bands:[],parcatsViewModel:t},g=g+a+8,u.push(s);return{key:e.dimensionInd,x:null!==e.dragX?e.dragX:r,y:0,width:16,model:e,categories:u,parcatsViewModel:t,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}e.exports=function(t,e,r,n){f(r,t,n,e)}},{&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_api&quot;:814,d3:169,tinycolor2:576}],1148:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./parcats&quot;);e.exports=function(t,e,r,i){var a=t._fullLayout,o=a._paper,s=a._size;n(t,o,e,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},r,i)}},{&quot;./parcats&quot;:1147}],1149:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/layout_attributes&quot;),a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/plot_template&quot;).templatedArray;e.exports={domain:o({name:&quot;parcoords&quot;,trace:!0,editType:&quot;plot&quot;}),labelangle:{valType:&quot;angle&quot;,dflt:0,editType:&quot;plot&quot;},labelside:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;plot&quot;},labelfont:a({editType:&quot;plot&quot;}),tickfont:a({editType:&quot;plot&quot;}),rangefont:a({editType:&quot;plot&quot;}),dimensions:l(&quot;dimension&quot;,{label:{valType:&quot;string&quot;,editType:&quot;plot&quot;},tickvals:s({},i.tickvals,{editType:&quot;plot&quot;}),ticktext:s({},i.ticktext,{editType:&quot;plot&quot;}),tickformat:s({},i.tickformat,{editType:&quot;plot&quot;}),visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},constraintrange:{valType:&quot;info_array&quot;,freeLength:!0,dimensions:&quot;1-2&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},multiselect:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;}),line:s({editType:&quot;calc&quot;},n(&quot;line&quot;,{colorscaleDflt:&quot;Viridis&quot;,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}))}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856}],1150:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;d3&quot;),a=t(&quot;../../lib/gup&quot;).keyFun,o=t(&quot;../../lib/gup&quot;).repeat,s=t(&quot;../../lib&quot;).sorterAsc,l=t(&quot;../../lib&quot;).strTranslate,c=n.bar.snapRatio;function u(t,e){return t*(1-c)+e*c}var f=n.bar.snapClose;function h(t,e){return t*(1-f)+e*f}function p(t,e,r,n){if(function(t,e){for(var r=0;r&lt;e.length;r++)if(t&gt;=e[r][0]&amp;&amp;t&lt;=e[r][1])return!0;return!1}(r,n))return r;var i=t?-1:1,a=0,o=e.length-1;if(i&lt;0){var s=a;a=o,o=s}for(var l=e[a],c=l,f=a;i*f&lt;i*o;f+=i){var p=f+i,d=e[p];if(i*r&lt;i*h(l,d))return u(l,c);if(i*r&lt;i*d||p===o)return u(d,l);c=l,l=d}}function d(t){t.attr(&quot;x&quot;,-n.bar.captureWidth/2).attr(&quot;width&quot;,n.bar.captureWidth)}function g(t){t.attr(&quot;visibility&quot;,&quot;visible&quot;).style(&quot;visibility&quot;,&quot;visible&quot;).attr(&quot;fill&quot;,&quot;yellow&quot;).attr(&quot;opacity&quot;,0)}function m(t){if(!t.brush.filterSpecified)return&quot;0,&quot;+t.height;for(var e,r,n,i=v(t.brush.filter.getConsolidated(),t.height),a=[0],o=i.length?i[0][0]:null,s=0;s&lt;i.length;s++)r=(e=i[s])[1]-e[0],a.push(o),a.push(r),(n=s+1)&lt;i.length&amp;&amp;(o=i[n][0]-e[1]);return a.push(t.height),a}function v(t,e){return t.map((function(t){return t.map((function(t){return Math.max(0,t*e)})).sort(s)}))}function y(){i.select(document.body).style(&quot;cursor&quot;,null)}function x(t){t.attr(&quot;stroke-dasharray&quot;,m)}function b(t,e){var r=i.select(t).selectAll(&quot;.highlight, .highlight-shadow&quot;);x(e?r.transition().duration(n.bar.snapDuration).each(&quot;end&quot;,e):r)}function _(t,e){var r,i=t.brush,a=NaN,o={};if(i.filterSpecified){var s=t.height,l=i.filter.getConsolidated(),c=v(l,s),u=NaN,f=NaN,h=NaN;for(r=0;r&lt;=c.length;r++){var p=c[r];if(p&amp;&amp;p[0]&lt;=e&amp;&amp;e&lt;=p[1]){u=r;break}if(f=r?r-1:NaN,p&amp;&amp;p[0]&gt;e){h=r;break}}if(a=u,isNaN(a)&amp;&amp;(a=isNaN(f)||isNaN(h)?isNaN(f)?h:f:e-c[f][1]&lt;c[h][0]-e?f:h),!isNaN(a)){var d=c[a],g=function(t,e){var r=n.bar.handleHeight;if(!(e&gt;t[1]+r||e&lt;t[0]-r))return e&gt;=.9*t[1]+.1*t[0]?&quot;n&quot;:e&lt;=.9*t[0]+.1*t[1]?&quot;s&quot;:&quot;ns&quot;}(d,e);g&amp;&amp;(o.interval=l[a],o.intervalPix=d,o.region=g)}}if(t.ordinal&amp;&amp;!o.region){var m=t.unitTickvals,y=t.unitToPaddedPx.invert(e);for(r=0;r&lt;m.length;r++){var x=[.25*m[Math.max(r-1,0)]+.75*m[r],.25*m[Math.min(r+1,m.length-1)]+.75*m[r]];if(y&gt;=x[0]&amp;&amp;y&lt;=x[1]){o.clickableOrdinalRange=x;break}}}return o}function w(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[r-a.grabPoint,r+a.barLength-a.grabPoint].map(e.unitToPaddedPx.invert):a.newExtent=[a.startExtent,e.unitToPaddedPx.invert(r)].sort(s),e.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(e),b(t.parentNode)}function T(t,e){var r=_(e,e.height-i.mouse(t)[1]-2*n.verticalPadding),a=&quot;crosshair&quot;;r.clickableOrdinalRange?a=&quot;pointer&quot;:r.region&amp;&amp;(a=r.region+&quot;-resize&quot;),i.select(document.body).style(&quot;cursor&quot;,a)}function k(t){t.on(&quot;mousemove&quot;,(function(t){i.event.preventDefault(),t.parent.inBrushDrag||T(this,t)})).on(&quot;mouseleave&quot;,(function(t){t.parent.inBrushDrag||y()})).call(i.behavior.drag().on(&quot;dragstart&quot;,(function(t){!function(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.unitToPaddedPx.invert(r),o=e.brush,s=_(e,r),l=s.interval,c=o.svgBrush;if(c.wasDragged=!1,c.grabbingBar=&quot;ns&quot;===s.region,c.grabbingBar){var u=l.map(e.unitToPaddedPx);c.grabPoint=r-u[0]-n.verticalPadding,c.barLength=u[1]-u[0]}c.clickableOrdinalRange=s.clickableOrdinalRange,c.stayingIntervals=e.multiselect&amp;&amp;o.filterSpecified?o.filter.getConsolidated():[],l&amp;&amp;(c.stayingIntervals=c.stayingIntervals.filter((function(t){return t[0]!==l[0]&amp;&amp;t[1]!==l[1]}))),c.startExtent=s.region?l[&quot;s&quot;===s.region?1:0]:a,e.parent.inBrushDrag=!0,c.brushStartCallback()}(this,t)})).on(&quot;drag&quot;,(function(t){w(this,t)})).on(&quot;dragend&quot;,(function(t){!function(t,e){var r=e.brush,n=r.filter,a=r.svgBrush;a._dragging||(T(t,e),w(t,e),e.brush.svgBrush.wasDragged=!1),a._dragging=!1,i.event.sourceEvent.stopPropagation();var o=a.grabbingBar;if(a.grabbingBar=!1,a.grabLocation=void 0,e.parent.inBrushDrag=!1,y(),!a.wasDragged)return a.wasDragged=void 0,a.clickableOrdinalRange?r.filterSpecified&amp;&amp;e.multiselect?a.extent.push(a.clickableOrdinalRange):(a.extent=[a.clickableOrdinalRange],r.filterSpecified=!0):o?(a.extent=a.stayingIntervals,0===a.extent.length&amp;&amp;A(r)):A(r),a.brushCallback(e),b(t.parentNode),void a.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);var s=function(){n.set(n.getConsolidated())};if(e.ordinal){var l=e.unitTickvals;l[l.length-1]&lt;l[0]&amp;&amp;l.reverse(),a.newExtent=[p(0,l,a.newExtent[0],a.stayingIntervals),p(1,l,a.newExtent[1],a.stayingIntervals)];var c=a.newExtent[1]&gt;a.newExtent[0];a.extent=a.stayingIntervals.concat(c?[a.newExtent]:[]),a.extent.length||A(r),a.brushCallback(e),c?b(t.parentNode,s):(s(),b(t.parentNode))}else s();a.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}(this,t)})))}function M(t,e){return t[0]-e[0]}function A(t){t.filterSpecified=!1,t.svgBrush.extent=[[-1/0,1/0]]}function S(t){for(var e,r=t.slice(),n=[],i=r.shift();i;){for(e=i.slice();(i=r.shift())&amp;&amp;i[0]&lt;=e[1];)e[1]=Math.max(e[1],i[1]);n.push(e)}return 1===n.length&amp;&amp;n[0][0]&gt;n[0][1]&amp;&amp;(n=[]),n}e.exports={makeBrush:function(t,e,r,n,i,a){var o,l=function(){var t,e,r=[];return{set:function(n){1===(r=n.map((function(t){return t.slice().sort(s)})).sort(M)).length&amp;&amp;r[0][0]===-1/0&amp;&amp;r[0][1]===1/0&amp;&amp;(r=[[0,-1]]),t=S(r),e=r.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0])},get:function(){return r.slice()},getConsolidated:function(){return t},getBounds:function(){return e}}}();return l.set(r),{filter:l,filterSpecified:e,svgBrush:{extent:[],brushStartCallback:n,brushCallback:(o=i,function(t){var e=t.brush,r=function(t){return t.svgBrush.extent.map((function(t){return t.slice()}))}(e).slice();e.filter.set(r),o()}),brushEndCallback:a}}},ensureAxisBrush:function(t){var e=t.selectAll(&quot;.&quot;+n.cn.axisBrush).data(o,a);e.enter().append(&quot;g&quot;).classed(n.cn.axisBrush,!0),function(t){var e=t.selectAll(&quot;.background&quot;).data(o);e.enter().append(&quot;rect&quot;).classed(&quot;background&quot;,!0).call(d).call(g).style(&quot;pointer-events&quot;,&quot;auto&quot;).attr(&quot;transform&quot;,l(0,n.verticalPadding)),e.call(k).attr(&quot;height&quot;,(function(t){return t.height-n.verticalPadding}));var r=t.selectAll(&quot;.highlight-shadow&quot;).data(o);r.enter().append(&quot;line&quot;).classed(&quot;highlight-shadow&quot;,!0).attr(&quot;x&quot;,-n.bar.width/2).attr(&quot;stroke-width&quot;,n.bar.width+n.bar.strokeWidth).attr(&quot;stroke&quot;,n.bar.strokeColor).attr(&quot;opacity&quot;,n.bar.strokeOpacity).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;),r.attr(&quot;y1&quot;,(function(t){return t.height})).call(x);var i=t.selectAll(&quot;.highlight&quot;).data(o);i.enter().append(&quot;line&quot;).classed(&quot;highlight&quot;,!0).attr(&quot;x&quot;,-n.bar.width/2).attr(&quot;stroke-width&quot;,n.bar.width-n.bar.strokeWidth).attr(&quot;stroke&quot;,n.bar.fillColor).attr(&quot;opacity&quot;,n.bar.fillOpacity).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;),i.attr(&quot;y1&quot;,(function(t){return t.height})).call(x)}(e)},cleanRanges:function(t,e){if(Array.isArray(t[0])?(t=t.map((function(t){return t.sort(s)})),t=e.multiselect?S(t.sort(M)):[t[0]]):t=[t.sort(s)],e.tickvals){var r=e.tickvals.slice().sort(s);if(!(t=t.map((function(t){var e=[p(0,r,t[0],[]),p(1,r,t[1],[])];if(e[1]&gt;e[0])return e})).filter((function(t){return t}))).length)return}return t.length&gt;1?t:t[0]}}},{&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;./constants&quot;:1153,d3:169}],1151:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/get_data&quot;).getModuleCalcData,a=t(&quot;./plot&quot;),o=t(&quot;../../constants/xmlns_namespaces&quot;);r.name=&quot;parcoords&quot;,r.plot=function(t){var e=i(t.calcdata,&quot;parcoords&quot;)[0];e.length&amp;&amp;a(t,e)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;parcoords&quot;),a=e._has&amp;&amp;e._has(&quot;parcoords&quot;);i&amp;&amp;!a&amp;&amp;(n._paperdiv.selectAll(&quot;.parcoords&quot;).remove(),n._glimages.selectAll(&quot;*&quot;).remove())},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(&quot;.svg-container&quot;);r.filter((function(t,e){return e===r.size()-1})).selectAll(&quot;.gl-canvas-context, .gl-canvas-focus&quot;).each((function(){var t=this.toDataURL(&quot;image/png&quot;);e.append(&quot;svg:image&quot;).attr({xmlns:o.svg,&quot;xlink:href&quot;:t,preserveAspectRatio:&quot;none&quot;,x:0,y:0,width:this.width,height:this.height})})),window.setTimeout((function(){n.selectAll(&quot;#filterBarPattern&quot;).attr(&quot;id&quot;,&quot;filterBarPattern&quot;)}),60)}},{&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../plots/get_data&quot;:865,&quot;./plot&quot;:1160,d3:169}],1152:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray,i=t(&quot;../../components/colorscale&quot;),a=t(&quot;../../lib/gup&quot;).wrap;e.exports=function(t,e){var r,o;return i.hasColorscale(e,&quot;line&quot;)&amp;&amp;n(e.line.color)?(r=e.line.color,o=i.extractOpts(e.line).colorscale,i.calc(t,e,{vals:r,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;})):(r=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=.5;return e}(e._length),o=[[0,e.line.color],[1,e.line.color]]),a({lineColor:r,cscale:o})}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775}],1153:[function(t,e,r){&quot;use strict&quot;;e.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:[&quot;contextLineLayer&quot;,&quot;focusLineLayer&quot;,&quot;pickLineLayer&quot;],axisTitleOffset:28,axisExtentOffset:10,deselectedLineColor:&quot;#777&quot;,bar:{width:4,captureWidth:10,fillColor:&quot;magenta&quot;,fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeColor:&quot;white&quot;,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:&quot;axis-extent-text&quot;,parcoordsLineLayers:&quot;parcoords-line-layers&quot;,parcoordsLineLayer:&quot;parcoords-lines&quot;,parcoords:&quot;parcoords&quot;,parcoordsControlView:&quot;parcoords-control-view&quot;,yAxis:&quot;y-axis&quot;,axisOverlays:&quot;axis-overlays&quot;,axis:&quot;axis&quot;,axisHeading:&quot;axis-heading&quot;,axisTitle:&quot;axis-title&quot;,axisExtent:&quot;axis-extent&quot;,axisExtentTop:&quot;axis-extent-top&quot;,axisExtentTopText:&quot;axis-extent-top-text&quot;,axisExtentBottom:&quot;axis-extent-bottom&quot;,axisExtentBottomText:&quot;axis-extent-bottom-text&quot;,axisBrush:&quot;axis-brush&quot;},id:{filterBarPattern:&quot;filter-bar-pattern&quot;}}},{}],1154:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;./attributes&quot;),u=t(&quot;./axisbrush&quot;),f=t(&quot;./constants&quot;).maxDimensionCount,h=t(&quot;./merge_length&quot;);function p(t,e,r,i){function a(r,i){return n.coerce(t,e,c.dimensions,r,i)}var o=a(&quot;values&quot;),s=a(&quot;visible&quot;);if(o&amp;&amp;o.length||(s=e.visible=!1),s){a(&quot;label&quot;),a(&quot;tickvals&quot;),a(&quot;ticktext&quot;),a(&quot;tickformat&quot;);var f=a(&quot;range&quot;);e._ax={_id:&quot;y&quot;,type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;,range:f},l.setConvert(e._ax,i.layout),a(&quot;multiselect&quot;);var h=a(&quot;constraintrange&quot;);h&amp;&amp;(e.constraintrange=u.cleanRanges(h,e))}}e.exports=function(t,e,r,l){function u(r,i){return n.coerce(t,e,c,r,i)}var d=t.dimensions;Array.isArray(d)&amp;&amp;d.length&gt;f&amp;&amp;(n.log(&quot;parcoords traces support up to &quot;+f+&quot; dimensions at the moment&quot;),d.splice(f));var g=s(t,e,{name:&quot;dimensions&quot;,layout:l,handleItemDefaults:p}),m=function(t,e,r,o,s){var l=s(&quot;line.color&quot;,r);if(i(t,&quot;line&quot;)&amp;&amp;n.isArrayOrTypedArray(l)){if(l.length)return s(&quot;line.colorscale&quot;),a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}),l.length;e.line.color=r}return 1/0}(t,e,r,l,u);o(e,l,u),Array.isArray(g)&amp;&amp;g.length||(e.visible=!1),h(e,g,&quot;values&quot;,m);var v={family:l.font.family,size:Math.round(l.font.size/1.2),color:l.font.color};n.coerceFont(u,&quot;labelfont&quot;,v),n.coerceFont(u,&quot;tickfont&quot;,v),n.coerceFont(u,&quot;rangefont&quot;,v),u(&quot;labelangle&quot;),u(&quot;labelside&quot;)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1149,&quot;./axisbrush&quot;:1150,&quot;./constants&quot;:1153,&quot;./merge_length&quot;:1158}],1155:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isTypedArray;r.convertTypedArray=function(t){return n(t)?Array.prototype.slice.call(t):t},r.isOrdinal=function(t){return!!t.tickvals},r.isVisible=function(t){return t.visible||!(&quot;visible&quot;in t)}},{&quot;../../lib&quot;:778}],1156:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},moduleType:&quot;trace&quot;,name:&quot;parcoords&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;noOpacity&quot;,&quot;noHover&quot;],meta:{}}},{&quot;./attributes&quot;:1149,&quot;./base_plot&quot;:1151,&quot;./calc&quot;:1152,&quot;./defaults&quot;:1154,&quot;./plot&quot;:1160}],1157:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nattribute vec4 p01_04, p05_08, p09_12, p13_16,\n               p17_20, p21_24, p25_28, p29_32,\n               p33_36, p37_40, p41_44, p45_48,\n               p49_52, p53_56, p57_60, colors;\n\nuniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,\n             loA, hiA, loB, hiB, loC, hiC, loD, hiD;\n\nuniform vec2 resolution, viewBoxPos, viewBoxSize;\nuniform sampler2D mask, palette;\nuniform float maskHeight;\nuniform float drwLayer; // 0: context, 1: focus, 2: pick\nuniform vec4 contextColor;\n\nbool isPick    = (drwLayer &gt; 1.5);\nbool isContext = (drwLayer &lt; 0.5);\n\nconst vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);\nconst vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);\n\nfloat val(mat4 p, mat4 v) {\n    return dot(matrixCompMult(p, v) * UNITS, UNITS);\n}\n\nfloat axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {\n    float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);\n    float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);\n    return y1 * (1.0 - ratio) + y2 * ratio;\n}\n\nint iMod(int a, int b) {\n    return a - b * (a / b);\n}\n\nbool fOutside(float p, float lo, float hi) {\n    return (lo &lt; hi) &amp;&amp; (lo &gt; p || p &gt; hi);\n}\n\nbool vOutside(vec4 p, vec4 lo, vec4 hi) {\n    return (\n        fOutside(p[0], lo[0], hi[0]) ||\n        fOutside(p[1], lo[1], hi[1]) ||\n        fOutside(p[2], lo[2], hi[2]) ||\n        fOutside(p[3], lo[3], hi[3])\n    );\n}\n\nbool mOutside(mat4 p, mat4 lo, mat4 hi) {\n    return (\n        vOutside(p[0], lo[0], hi[0]) ||\n        vOutside(p[1], lo[1], hi[1]) ||\n        vOutside(p[2], lo[2], hi[2]) ||\n        vOutside(p[3], lo[3], hi[3])\n    );\n}\n\nbool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {\n    return mOutside(A, loA, hiA) ||\n           mOutside(B, loB, hiB) ||\n           mOutside(C, loC, hiC) ||\n           mOutside(D, loD, hiD);\n}\n\nbool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {\n    mat4 pnts[4];\n    pnts[0] = A;\n    pnts[1] = B;\n    pnts[2] = C;\n    pnts[3] = D;\n\n    for(int i = 0; i &lt; 4; ++i) {\n        for(int j = 0; j &lt; 4; ++j) {\n            for(int k = 0; k &lt; 4; ++k) {\n                if(0 == iMod(\n                    int(255.0 * texture2D(mask,\n                        vec2(\n                            (float(i * 2 + j / 2) + 0.5) / 8.0,\n                            (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight\n                        ))[3]\n                    ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),\n                    2\n                )) return true;\n            }\n        }\n    }\n    return false;\n}\n\nvec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {\n    float x = 0.5 * sign(v) + 0.5;\n    float y = axisY(x, A, B, C, D);\n    float z = 1.0 - abs(v);\n\n    z += isContext ? 0.0 : 2.0 * float(\n        outsideBoundingBox(A, B, C, D) ||\n        outsideRasterMask(A, B, C, D)\n    );\n\n    return vec4(\n        2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,\n        z,\n        1.0\n    );\n}\n\nvoid main() {\n    mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);\n    mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);\n    mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);\n    mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);\n\n    float v = colors[3];\n\n    gl_Position = position(isContext, v, A, B, C, D);\n\n    fragColor =\n        isContext ? vec4(contextColor) :\n        isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));\n}\n&quot;]),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n    gl_FragColor = fragColor;\n}\n&quot;]),o=t(&quot;./constants&quot;).maxDimensionCount,s=t(&quot;../../lib&quot;),l=new Uint8Array(4),c=new Uint8Array(4),u={shape:[256,1],format:&quot;rgba&quot;,type:&quot;uint8&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;};function f(t,e,r,n,i){var a=t._gl;a.enable(a.SCISSOR_TEST),a.scissor(e,r,n,i),t.clear({color:[0,0,0,0],depth:1})}function h(t,e,r,n,i,a){var o=a.key;r.drawCompleted||(!function(t){t.read({x:0,y:0,width:1,height:1,data:l})}(t),r.drawCompleted=!0),function s(l){var c=Math.min(n,i-l*n);0===l&amp;&amp;(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],f(t,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),r.clearOnly||(a.count=2*c,a.offset=2*l*n,e(a),l*n+c&lt;i&amp;&amp;(r.currentRafs[o]=window.requestAnimationFrame((function(){s(l+1)}))),r.drawCompleted=!1)}(0)}function p(t,e){for(var r=new Array(256),n=0;n&lt;256;n++)r[n]=t(n/255).concat(e);return r}function d(t,e){return(t&gt;&gt;&gt;8*e)%256/255}function g(t,e,r){for(var n=new Array(8*e),i=0,a=0;a&lt;e;a++)for(var o=0;o&lt;2;o++)for(var s=0;s&lt;4;s++){var l=4*t+s,c=r[64*a+l];63===l&amp;&amp;0===o&amp;&amp;(c*=-1),n[i++]=c}return n}function m(t){var e=&quot;0&quot;+t;return e.substr(e.length-2)}function v(t){return t&lt;o?&quot;p&quot;+m(t+1)+&quot;_&quot;+m(t+4):&quot;colors&quot;}function y(t,e,r,n,i,a,o,l,c,u,f,h,p){for(var d=[[],[]],g=0;g&lt;64;g++)d[0][g]=g===i?1:0,d[1][g]=g===a?1:0;var m=t.lines.canvasOverdrag,v=t.domain,y=t.canvasWidth,x=t.canvasHeight,b=t.deselectedLines.color;return s.extendFlat({key:f,resolution:[y,x],viewBoxPos:[o+m,l],viewBoxSize:[c,u],i0:i,i1:a,dim0A:d[0].slice(0,16),dim0B:d[0].slice(16,32),dim0C:d[0].slice(32,48),dim0D:d[0].slice(48,64),dim1A:d[1].slice(0,16),dim1B:d[1].slice(16,32),dim1C:d[1].slice(32,48),dim1D:d[1].slice(48,64),drwLayer:h,contextColor:[b[0]/255,b[1]/255,b[2]/255,b[3]&lt;1?b[3]:Math.max(1/255,Math.pow(1/t.lines.color.length,1/3))],scissorX:(n===e?0:o+m)+(t.pad.l-m)+t.layoutWidth*v.x[0],scissorWidth:(n===r?y-o+m:c+.5)+(n===e?o+m:0),scissorY:l+t.pad.b+t.layoutHeight*v.y[0],scissorHeight:u,viewportX:t.pad.l-m+t.layoutWidth*v.x[0],viewportY:t.pad.b+t.layoutHeight*v.y[0],viewportWidth:y,viewportHeight:x},p)}function x(t){var e=Math.max(0,Math.floor(2047*t[0]),0),r=Math.min(2047,Math.ceil(2047*t[1]),2047);return[Math.min(e,r),Math.max(e,r)]}e.exports=function(t,e){var r,n,l,m,b,_=e.context,w=e.pick,T=e.regl,k={currentRafs:{},drawCompleted:!0,clearOnly:!1},M=function(t){for(var e={},r=0;r&lt;=o;r+=4)e[v(r)]=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)});return e}(T),A=T.texture(u),S=[];C(e);var E=T({profile:!1,blend:{enable:_,func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:1,dstAlpha:1},equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},color:[0,0,0,0]},depth:{enable:!_,mask:!0,func:&quot;less&quot;,range:[0,1]},cull:{enable:!0,face:&quot;back&quot;},scissor:{enable:!0,box:{x:T.prop(&quot;scissorX&quot;),y:T.prop(&quot;scissorY&quot;),width:T.prop(&quot;scissorWidth&quot;),height:T.prop(&quot;scissorHeight&quot;)}},viewport:{x:T.prop(&quot;viewportX&quot;),y:T.prop(&quot;viewportY&quot;),width:T.prop(&quot;viewportWidth&quot;),height:T.prop(&quot;viewportHeight&quot;)},dither:!1,vert:i,frag:a,primitive:&quot;lines&quot;,lineWidth:1,attributes:M,uniforms:{resolution:T.prop(&quot;resolution&quot;),viewBoxPos:T.prop(&quot;viewBoxPos&quot;),viewBoxSize:T.prop(&quot;viewBoxSize&quot;),dim0A:T.prop(&quot;dim0A&quot;),dim1A:T.prop(&quot;dim1A&quot;),dim0B:T.prop(&quot;dim0B&quot;),dim1B:T.prop(&quot;dim1B&quot;),dim0C:T.prop(&quot;dim0C&quot;),dim1C:T.prop(&quot;dim1C&quot;),dim0D:T.prop(&quot;dim0D&quot;),dim1D:T.prop(&quot;dim1D&quot;),loA:T.prop(&quot;loA&quot;),hiA:T.prop(&quot;hiA&quot;),loB:T.prop(&quot;loB&quot;),hiB:T.prop(&quot;hiB&quot;),loC:T.prop(&quot;loC&quot;),hiC:T.prop(&quot;hiC&quot;),loD:T.prop(&quot;loD&quot;),hiD:T.prop(&quot;hiD&quot;),palette:A,contextColor:T.prop(&quot;contextColor&quot;),mask:T.prop(&quot;maskTexture&quot;),drwLayer:T.prop(&quot;drwLayer&quot;),maskHeight:T.prop(&quot;maskHeight&quot;)},offset:T.prop(&quot;offset&quot;),count:T.prop(&quot;count&quot;)});function C(t){r=t.model,n=t.viewModel,l=n.dimensions.slice(),m=l[0]?l[0].values.length:0;var e=r.lines,i=w?e.color.map((function(t,r){return r/e.color.length})):e.color,a=function(t,e,r){for(var n,i=new Array(t*(o+4)),a=0,s=0;s&lt;t;s++){for(var l=0;l&lt;o;l++)i[a++]=l&lt;e.length?e[l].paddedUnitValues[s]:.5;i[a++]=d(s,2),i[a++]=d(s,1),i[a++]=d(s,0),i[a++]=(n=r[s],Math.max(1e-6,Math.min(.999999,n)))}return i}(m,l,i);!function(t,e,r){for(var n=0;n&lt;=o;n+=4)t[v(n)](g(n/4,e,r))}(M,m,a),_||w||(A=T.texture(s.extendFlat({data:p(r.unitToColor,255)},u)))}return{render:function(t,e,n){var i,a,o,s=t.length,c=1/0,u=-1/0;for(i=0;i&lt;s;i++)t[i].dim0.canvasX&lt;c&amp;&amp;(c=t[i].dim0.canvasX,a=i),t[i].dim1.canvasX&gt;u&amp;&amp;(u=t[i].dim1.canvasX,o=i);0===s&amp;&amp;f(T,0,0,r.canvasWidth,r.canvasHeight);var p=function(t){var e,r,n,i=[[],[]];for(n=0;n&lt;64;n++){var a=!t&amp;&amp;n&lt;l.length?l[n].brush.filter.getBounds():[-1/0,1/0];i[0][n]=a[0],i[1][n]=a[1]}var o=new Array(16384);for(e=0;e&lt;16384;e++)o[e]=255;if(!t)for(e=0;e&lt;l.length;e++){var s=e%8,c=(e-s)/8,u=Math.pow(2,s),f=l[e].brush.filter.get();if(!(f.length&lt;2)){var h=x(f[0])[1];for(r=1;r&lt;f.length;r++){var p=x(f[r]);for(n=h+1;n&lt;p[0];n++)o[8*n+c]&amp;=~u;h=Math.max(h,p[1])}}}var d={shape:[8,2048],format:&quot;alpha&quot;,type:&quot;uint8&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;,data:o};return b?b(d):b=T.texture(d),{maskTexture:b,maskHeight:2048,loA:i[0].slice(0,16),loB:i[0].slice(16,32),loC:i[0].slice(32,48),loD:i[0].slice(48,64),hiA:i[1].slice(0,16),hiB:i[1].slice(16,32),hiC:i[1].slice(32,48),hiD:i[1].slice(48,64)}}(_);for(i=0;i&lt;s;i++){var d=t[i],g=d.dim0.crossfilterDimensionIndex,v=d.dim1.crossfilterDimensionIndex,M=d.canvasX,A=d.canvasY,C=M+d.panelSizeX;if(e||!S[g]||S[g][0]!==M||S[g][1]!==C){S[g]=[M,C];var L=y(r,a,o,i,g,v,M,A,d.panelSizeX,d.panelSizeY,d.dim0.crossfilterDimensionIndex,_?0:w?2:1,p);k.clearOnly=n;var I=e?r.lines.blockLineCount:m;h(T,E,k,I,m,L)}}},readPixel:function(t,e){return T.read({x:t,y:e,width:1,height:1,data:c}),c},readPixels:function(t,e,r,n){var i=new Uint8Array(4*r*n);return T.read({x:t,y:e,width:r,height:n,data:i}),i},destroy:function(){for(var e in t.style[&quot;pointer-events&quot;]=&quot;none&quot;,A.destroy(),b&amp;&amp;b.destroy(),M)M[e].destroy()},update:C}}},{&quot;../../lib&quot;:778,&quot;./constants&quot;:1153,glslify:439}],1158:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i,a;for(n||(n=1/0),i=0;i&lt;e.length;i++)(a=e[i]).visible&amp;&amp;(n=Math.min(n,a[r].length));for(n===1/0&amp;&amp;(n=0),t._length=n,i=0;i&lt;e.length;i++)(a=e[i]).visible&amp;&amp;(a._length=n);return n}},{}],1159:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;color-rgba&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../lib&quot;),s=o.strRotate,l=o.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../../components/colorscale&quot;),h=t(&quot;../../lib/gup&quot;),p=h.keyFun,d=h.repeat,g=h.unwrap,m=t(&quot;./helpers&quot;),v=t(&quot;./constants&quot;),y=t(&quot;./axisbrush&quot;),x=t(&quot;./lines&quot;);function b(t,e,r){return o.aggNums(t,null,e,r)}function _(t,e){return T(b(Math.min,t,e),b(Math.max,t,e))}function w(t){var e=t.range;return e?T(e[0],e[1]):_(t.values,t._length)}function T(t,e){return!isNaN(t)&amp;&amp;isFinite(t)||(t=0),!isNaN(e)&amp;&amp;isFinite(e)||(e=0),t===e&amp;&amp;(0===t?(t-=1,e+=1):(t*=.9,e*=1.1)),[t,e]}function k(t,e,r,i,a){var o,s,l=w(r);return i?n.scale.ordinal().domain(i.map((o=n.format(r.tickformat),s=a,s?function(t,e){var r=s[e];return null==r?o(t):r}:o))).range(i.map((function(r){var n=(r-l[0])/(l[1]-l[0]);return t-e+n*(2*e-t)}))):n.scale.linear().domain(l).range([t-e,e])}function M(t){if(t.tickvals){var e=w(t);return n.scale.ordinal().domain(t.tickvals).range(t.tickvals.map((function(t){return(t-e[0])/(e[1]-e[0])})))}}function A(t){var e=t.map((function(t){return t[0]})),r=t.map((function(t){var e=i(t[1]);return n.rgb(&quot;rgb(&quot;+e[0]+&quot;,&quot;+e[1]+&quot;,&quot;+e[2]+&quot;)&quot;)})),a=&quot;rgb&quot;.split(&quot;&quot;).map((function(t){return n.scale.linear().clamp(!0).domain(e).range(r.map((i=t,function(t){return t[i]})));var i}));return function(t){return a.map((function(e){return e(t)}))}}function S(t){return t.dimensions.some((function(t){return t.brush.filterSpecified}))}function E(t,e,r){var a=g(e),s=a.trace,l=m.convertTypedArray(a.lineColor),c=s.line,u={color:i(v.deselectedLineColor)},h=f.extractOpts(c),p=h.reversescale?f.flipScale(a.cscale):a.cscale,d=s.domain,y=s.dimensions,x=t.width,b=s.labelangle,_=s.labelside,T=s.labelfont,k=s.tickfont,M=s.rangefont,S=o.extendDeepNoArrays({},c,{color:l.map(n.scale.linear().domain(w({values:l,range:[h.min,h.max],_length:s._length}))),blockLineCount:v.blockLineCount,canvasOverdrag:v.overdrag*v.canvasPixelRatio}),E=Math.floor(x*(d.x[1]-d.x[0])),C=Math.floor(t.height*(d.y[1]-d.y[0])),L=t.margin||{l:80,r:80,t:100,b:80},I=E,P=C;return{key:r,colCount:y.filter(m.isVisible).length,dimensions:y,tickDistance:v.tickDistance,unitToColor:A(p),lines:S,deselectedLines:u,labelAngle:b,labelSide:_,labelFont:T,tickFont:k,rangeFont:M,layoutWidth:x,layoutHeight:t.height,domain:d,translateX:d.x[0]*x,translateY:t.height-d.y[1]*t.height,pad:L,canvasWidth:I*v.canvasPixelRatio+2*S.canvasOverdrag,canvasHeight:P*v.canvasPixelRatio,width:I,height:P,canvasPixelRatio:v.canvasPixelRatio}}function C(t,e,r){var i=r.width,a=r.height,s=r.dimensions,l=r.canvasPixelRatio,c=function(t){return i*t/Math.max(1,r.colCount-1)},u=v.verticalPadding/a,f=function(t,e){return n.scale.linear().range([e,t-e])}(a,v.verticalPadding),h={key:r.key,xScale:c,model:r,inBrushDrag:!1},p={};return h.dimensions=s.filter(m.isVisible).map((function(i,s){var d=function(t,e){return n.scale.linear().domain(w(t)).range([e,1-e])}(i,u),g=p[i.label];p[i.label]=(g||0)+1;var x=i.label+(g?&quot;__&quot;+g:&quot;&quot;),b=i.constraintrange,_=b&amp;&amp;b.length;_&amp;&amp;!Array.isArray(b[0])&amp;&amp;(b=[b]);var T=_?b.map((function(t){return t.map(d)})):[[-1/0,1/0]],A=i.values;A.length&gt;i._length&amp;&amp;(A=A.slice(0,i._length));var E,C=i.tickvals;function L(t,e){return{val:t,text:E[e]}}function I(t,e){return t.val-e.val}if(Array.isArray(C)&amp;&amp;C.length){E=i.ticktext,Array.isArray(E)&amp;&amp;E.length?E.length&gt;C.length?E=E.slice(0,C.length):C.length&gt;E.length&amp;&amp;(C=C.slice(0,E.length)):E=C.map(n.format(i.tickformat));for(var P=1;P&lt;C.length;P++)if(C[P]&lt;C[P-1]){for(var z=C.map(L).sort(I),O=0;O&lt;C.length;O++)C[O]=z[O].val,E[O]=z[O].text;break}}else C=void 0;return A=m.convertTypedArray(A),{key:x,label:i.label,tickFormat:i.tickformat,tickvals:C,ticktext:E,ordinal:m.isOrdinal(i),multiselect:i.multiselect,xIndex:s,crossfilterDimensionIndex:s,visibleIndex:i._index,height:a,values:A,paddedUnitValues:A.map(d),unitTickvals:C&amp;&amp;C.map(d),xScale:c,x:c(s),canvasX:c(s)*l,unitToPaddedPx:f,domainScale:k(a,v.verticalPadding,i,C,E),ordinalScale:M(i),parent:h,model:r,brush:y.makeBrush(t,_,T,(function(){t.linePickActive(!1)}),(function(){var e=h;e.focusLayer&amp;&amp;e.focusLayer.render(e.panels,!0);var r=S(e);!t.contextShown()&amp;&amp;r?(e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!0),t.contextShown(!0)):t.contextShown()&amp;&amp;!r&amp;&amp;(e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!0,!0),t.contextShown(!1))}),(function(r){if(h.focusLayer.render(h.panels,!0),h.pickLayer&amp;&amp;h.pickLayer.render(h.panels,!0),t.linePickActive(!0),e&amp;&amp;e.filterChanged){var n=d.invert,a=r.map((function(t){return t.map(n).sort(o.sorterAsc)})).sort((function(t,e){return t[0]-e[0]}));e.filterChanged(h.key,i._index,a)}}))}})),h}function L(t){t.classed(v.cn.axisExtentText,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).style(&quot;cursor&quot;,&quot;default&quot;)}function I(t,e){var r=&quot;top&quot;===e?1:-1,n=t*Math.PI/180;return{dir:r,dx:Math.sin(n),dy:Math.cos(n),degrees:t}}function P(t,e){for(var r=e.panels||(e.panels=[]),n=t.data(),i=0;i&lt;n.length-1;i++){var a=r[i]||(r[i]={}),o=n[i],s=n[i+1];a.dim0=o,a.dim1=s,a.canvasX=o.canvasX,a.panelSizeX=s.canvasX-o.canvasX,a.panelSizeY=e.model.canvasHeight,a.y=0,a.canvasY=0}}function z(t,e){return a.tickText(t._ax,e,!1).text}function O(t,e){if(t.ordinal)return&quot;&quot;;var r=t.domainScale.domain(),n=r[e?r.length-1:0];return z(t.model.dimensions[t.visibleIndex],n)}e.exports=function(t,e,r,i){var f=t._fullLayout,h=f._toppaper,b=f._glcontainer;!function(t){for(var e=0;e&lt;t.length;e++)for(var r=0;r&lt;t[e].length;r++)for(var n=t[e][r].trace,i=n.dimensions,o=0;o&lt;i.length;o++){var s=i[o].values,l=i[o]._ax;l&amp;&amp;(l.range?l.range=T(l.range[0],l.range[1]):l.range=_(s,n._length),l.dtick||(l.dtick=.01*(Math.abs(l.range[1]-l.range[0])||1)),l.tickformat=i[o].tickformat,a.calcTicks(l),l.cleanRange())}}(e);var w,k,M=(w=!0,k=!1,{linePickActive:function(t){return arguments.length?w=!!t:w},contextShown:function(t){return arguments.length?k=!!t:k}}),A=e.filter((function(t){return g(t).trace.visible})).map(E.bind(0,r)).map(C.bind(0,M,i));b.each((function(t,e){return o.extendFlat(t,A[e])}));var D=b.selectAll(&quot;.gl-canvas&quot;).each((function(t){t.viewModel=A[0],t.model=t.viewModel?t.viewModel.model:null})),R=null;D.filter((function(t){return t.pick})).style(&quot;pointer-events&quot;,&quot;auto&quot;).on(&quot;mousemove&quot;,(function(t){if(M.linePickActive()&amp;&amp;t.lineLayer&amp;&amp;i&amp;&amp;i.hover){var e=n.event,r=this.width,a=this.height,o=n.mouse(this),s=o[0],l=o[1];if(s&lt;0||l&lt;0||s&gt;=r||l&gt;=a)return;var c=t.lineLayer.readPixel(s,a-1-l),u=0!==c[3],f=u?c[2]+256*(c[1]+256*c[0]):null,h={x:s,y:l,clientX:e.clientX,clientY:e.clientY,dataIndex:t.model.key,curveNumber:f};f!==R&amp;&amp;(u?i.hover(h):i.unhover&amp;&amp;i.unhover(h),R=f)}})),D.style(&quot;opacity&quot;,(function(t){return t.pick?0:1})),h.style(&quot;background&quot;,&quot;rgba(255, 255, 255, 0)&quot;);var F=h.selectAll(&quot;.&quot;+v.cn.parcoords).data(A,p);F.exit().remove(),F.enter().append(&quot;g&quot;).classed(v.cn.parcoords,!0).style(&quot;shape-rendering&quot;,&quot;crispEdges&quot;).style(&quot;pointer-events&quot;,&quot;none&quot;),F.attr(&quot;transform&quot;,(function(t){return l(t.model.translateX,t.model.translateY)}));var B=F.selectAll(&quot;.&quot;+v.cn.parcoordsControlView).data(d,p);B.enter().append(&quot;g&quot;).classed(v.cn.parcoordsControlView,!0),B.attr(&quot;transform&quot;,(function(t){return l(t.model.pad.l,t.model.pad.t)}));var N=B.selectAll(&quot;.&quot;+v.cn.yAxis).data((function(t){return t.dimensions}),p);N.enter().append(&quot;g&quot;).classed(v.cn.yAxis,!0),B.each((function(t){P(N,t)})),D.each((function(t){if(t.viewModel){!t.lineLayer||i?t.lineLayer=x(this,t):t.lineLayer.update(t),(t.key||0===t.key)&amp;&amp;(t.viewModel[t.key]=t.lineLayer);var e=!t.context||i;t.lineLayer.render(t.viewModel.panels,e)}})),N.attr(&quot;transform&quot;,(function(t){return l(t.xScale(t.xIndex),0)})),N.call(n.behavior.drag().origin((function(t){return t})).on(&quot;drag&quot;,(function(t){var e=t.parent;M.linePickActive(!1),t.x=Math.max(-v.overdrag,Math.min(t.model.width+v.overdrag,n.event.x)),t.canvasX=t.x*t.model.canvasPixelRatio,N.sort((function(t,e){return t.x-e.x})).each((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e.xIndex),e.canvasX=e.x*e.model.canvasPixelRatio})),P(N,e),N.filter((function(e){return 0!==Math.abs(t.xIndex-e.xIndex)})).attr(&quot;transform&quot;,(function(t){return l(t.xScale(t.xIndex),0)})),n.select(this).attr(&quot;transform&quot;,l(t.x,0)),N.each((function(r,n,i){i===t.parent.key&amp;&amp;(e.dimensions[n]=r)})),e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!1,!S(e)),e.focusLayer.render&amp;&amp;e.focusLayer.render(e.panels)})).on(&quot;dragend&quot;,(function(t){var e=t.parent;t.x=t.xScale(t.xIndex),t.canvasX=t.x*t.model.canvasPixelRatio,P(N,e),n.select(this).attr(&quot;transform&quot;,(function(t){return l(t.x,0)})),e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!1,!S(e)),e.focusLayer&amp;&amp;e.focusLayer.render(e.panels),e.pickLayer&amp;&amp;e.pickLayer.render(e.panels,!0),M.linePickActive(!0),i&amp;&amp;i.axesMoved&amp;&amp;i.axesMoved(e.key,e.dimensions.map((function(t){return t.crossfilterDimensionIndex})))}))),N.exit().remove();var j=N.selectAll(&quot;.&quot;+v.cn.axisOverlays).data(d,p);j.enter().append(&quot;g&quot;).classed(v.cn.axisOverlays,!0),j.selectAll(&quot;.&quot;+v.cn.axis).remove();var U=j.selectAll(&quot;.&quot;+v.cn.axis).data(d,p);U.enter().append(&quot;g&quot;).classed(v.cn.axis,!0),U.each((function(t){var e=t.model.height/t.model.tickDistance,r=t.domainScale,i=r.domain();n.select(this).call(n.svg.axis().orient(&quot;left&quot;).tickSize(4).outerTickSize(2).ticks(e,t.tickFormat).tickValues(t.ordinal?i:null).tickFormat((function(e){return m.isOrdinal(t)?e:z(t.model.dimensions[t.visibleIndex],e)})).scale(r)),u.font(U.selectAll(&quot;text&quot;),t.model.tickFont)})),U.selectAll(&quot;.domain, .tick&gt;line&quot;).attr(&quot;fill&quot;,&quot;none&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-opacity&quot;,.25).attr(&quot;stroke-width&quot;,&quot;1px&quot;),U.selectAll(&quot;text&quot;).style(&quot;text-shadow&quot;,&quot;1px 1px 1px #fff, -1px -1px 1px #fff, 1px -1px 1px #fff, -1px 1px 1px #fff&quot;).style(&quot;cursor&quot;,&quot;default&quot;);var V=j.selectAll(&quot;.&quot;+v.cn.axisHeading).data(d,p);V.enter().append(&quot;g&quot;).classed(v.cn.axisHeading,!0);var q=V.selectAll(&quot;.&quot;+v.cn.axisTitle).data(d,p);q.enter().append(&quot;text&quot;).classed(v.cn.axisTitle,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).style(&quot;cursor&quot;,&quot;ew-resize&quot;).style(&quot;pointer-events&quot;,&quot;auto&quot;),q.text((function(t){return t.label})).each((function(e){var r=n.select(this);u.font(r,e.model.labelFont),c.convertToTspans(r,t)})).attr(&quot;transform&quot;,(function(t){var e=I(t.model.labelAngle,t.model.labelSide),r=v.axisTitleOffset;return(e.dir&gt;0?&quot;&quot;:l(0,2*r+t.model.height))+s(e.degrees)+l(-r*e.dx,-r*e.dy)})).attr(&quot;text-anchor&quot;,(function(t){var e=I(t.model.labelAngle,t.model.labelSide);return 2*Math.abs(e.dx)&gt;Math.abs(e.dy)?e.dir*e.dx&lt;0?&quot;start&quot;:&quot;end&quot;:&quot;middle&quot;}));var H=j.selectAll(&quot;.&quot;+v.cn.axisExtent).data(d,p);H.enter().append(&quot;g&quot;).classed(v.cn.axisExtent,!0);var G=H.selectAll(&quot;.&quot;+v.cn.axisExtentTop).data(d,p);G.enter().append(&quot;g&quot;).classed(v.cn.axisExtentTop,!0),G.attr(&quot;transform&quot;,l(0,-v.axisExtentOffset));var Y=G.selectAll(&quot;.&quot;+v.cn.axisExtentTopText).data(d,p);Y.enter().append(&quot;text&quot;).classed(v.cn.axisExtentTopText,!0).call(L),Y.text((function(t){return O(t,!0)})).each((function(t){u.font(n.select(this),t.model.rangeFont)}));var W=H.selectAll(&quot;.&quot;+v.cn.axisExtentBottom).data(d,p);W.enter().append(&quot;g&quot;).classed(v.cn.axisExtentBottom,!0),W.attr(&quot;transform&quot;,(function(t){return l(0,t.model.height+v.axisExtentOffset)}));var X=W.selectAll(&quot;.&quot;+v.cn.axisExtentBottomText).data(d,p);X.enter().append(&quot;text&quot;).classed(v.cn.axisExtentBottomText,!0).attr(&quot;dy&quot;,&quot;0.75em&quot;).call(L),X.text((function(t){return O(t,!1)})).each((function(t){u.font(n.select(this),t.model.rangeFont)})),y.ensureAxisBrush(j)}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;./axisbrush&quot;:1150,&quot;./constants&quot;:1153,&quot;./helpers&quot;:1155,&quot;./lines&quot;:1157,&quot;color-rgba&quot;:127,d3:169}],1160:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./parcoords&quot;),i=t(&quot;../../lib/prepare_regl&quot;),a=t(&quot;./helpers&quot;).isVisible;function o(t,e,r){var n=e.indexOf(r),i=t.indexOf(n);return-1===i&amp;&amp;(i+=e.length),i}e.exports=function(t,e){var r=t._fullLayout;if(i(t)){var s={},l={},c={},u={},f=r._size;e.forEach((function(e,r){var n=e[0].trace;c[r]=n.index;var i=u[r]=n._fullInput.index;s[r]=t.data[i].dimensions,l[r]=t.data[i].dimensions.slice()}));n(t,e,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{filterChanged:function(e,n,i){var a=l[e][n],o=i.map((function(t){return t.slice()})),s=&quot;dimensions[&quot;+n+&quot;].constraintrange&quot;,f=r._tracePreGUI[t._fullData[c[e]]._fullInput.uid];if(void 0===f[s]){var h=a.constraintrange;f[s]=h||null}var p=t._fullData[c[e]].dimensions[n];o.length?(1===o.length&amp;&amp;(o=o[0]),a.constraintrange=o,p.constraintrange=o.slice(),o=[o]):(delete a.constraintrange,delete p.constraintrange,o=null);var d={};d[s]=o,t.emit(&quot;plotly_restyle&quot;,[d,[u[e]]])},hover:function(e){t.emit(&quot;plotly_hover&quot;,e)},unhover:function(e){t.emit(&quot;plotly_unhover&quot;,e)},axesMoved:function(e,r){var n=function(t,e){return function(r,n){return o(t,e,r)-o(t,e,n)}}(r,l[e].filter(a));s[e].sort(n),l[e].filter((function(t){return!a(t)})).sort((function(t){return l[e].indexOf(t)})).forEach((function(t){s[e].splice(s[e].indexOf(t),1),s[e].splice(l[e].indexOf(t),0,t)})),t.emit(&quot;plotly_restyle&quot;,[{dimensions:[s[e]]},[u[e]]])}})}}},{&quot;../../lib/prepare_regl&quot;:791,&quot;./helpers&quot;:1155,&quot;./parcoords&quot;:1159}],1161:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/domain&quot;).attributes,a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../components/color/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,c=t(&quot;../../lib/extend&quot;).extendFlat,u=a({editType:&quot;plot&quot;,arrayOk:!0,colorEditType:&quot;plot&quot;});e.exports={labels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},label0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},dlabel:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},marker:{colors:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:o.defaultLine,arrayOk:!0,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,arrayOk:!0,editType:&quot;style&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},text:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},scalegroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;],extras:[&quot;none&quot;],editType:&quot;calc&quot;},hoverinfo:c({},n.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;name&quot;]}),hovertemplate:s({},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;text&quot;]}),texttemplate:l({editType:&quot;plot&quot;},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;text&quot;]}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;auto&quot;,&quot;none&quot;],dflt:&quot;auto&quot;,arrayOk:!0,editType:&quot;plot&quot;},textfont:c({},u,{}),insidetextorientation:{valType:&quot;enumerated&quot;,values:[&quot;horizontal&quot;,&quot;radial&quot;,&quot;tangential&quot;,&quot;auto&quot;],dflt:&quot;auto&quot;,editType:&quot;plot&quot;},insidetextfont:c({},u,{}),outsidetextfont:c({},u,{}),automargin:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},font:c({},u,{}),position:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle center&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},domain:i({name:&quot;pie&quot;,trace:!0,editType:&quot;calc&quot;}),hole:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;},sort:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;],dflt:&quot;counterclockwise&quot;,editType:&quot;calc&quot;},rotation:{valType:&quot;number&quot;,min:-360,max:360,dflt:0,editType:&quot;calc&quot;},pull:{valType:&quot;number&quot;,min:0,max:1,dflt:0,arrayOk:!0,editType:&quot;calc&quot;},_deprecated:{title:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},titlefont:c({},u,{}),titleposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle center&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],editType:&quot;calc&quot;}}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906}],1162:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;pie&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1163:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../components/color&quot;),o={};function s(t){return function(e,r){return!!e&amp;&amp;(!!(e=i(e)).isValid()&amp;&amp;(e=a.addOpacity(e,e.getAlpha()),t[r]||(t[r]=e),e))}}function l(t,e){var r,n=JSON.stringify(t),a=e[n];if(!a){for(a=t.slice(),r=0;r&lt;t.length;r++)a.push(i(t[r]).lighten(20).toHexString());for(r=0;r&lt;t.length;r++)a.push(i(t[r]).darken(20).toHexString());e[n]=a}return a}e.exports={calc:function(t,e){var r,i,a=[],o=t._fullLayout,l=o.hiddenlabels||[],c=e.labels,u=e.marker.colors||[],f=e.values,h=e._length,p=e._hasValues&amp;&amp;h;if(e.dlabel)for(c=new Array(h),r=0;r&lt;h;r++)c[r]=String(e.label0+r*e.dlabel);var d={},g=s(o[&quot;_&quot;+e.type+&quot;colormap&quot;]),m=0,v=!1;for(r=0;r&lt;h;r++){var y,x,b;if(p){if(y=f[r],!n(y))continue;if((y=+y)&lt;0)continue}else y=1;void 0!==(x=c[r])&amp;&amp;&quot;&quot;!==x||(x=r);var _=d[x=String(x)];void 0===_?(d[x]=a.length,(b=-1!==l.indexOf(x))||(m+=y),a.push({v:y,label:x,color:g(u[r],x),i:r,pts:[r],hidden:b})):(v=!0,(i=a[_]).v+=y,i.pts.push(r),i.hidden||(m+=y),!1===i.color&amp;&amp;u[r]&amp;&amp;(i.color=g(u[r],x)))}return(&quot;funnelarea&quot;===e.type?v:e.sort)&amp;&amp;a.sort((function(t,e){return e.v-t.v})),a[0]&amp;&amp;(a[0].vTotal=m),a},crossTraceCalc:function(t,e){var r=(e||{}).type;r||(r=&quot;pie&quot;);var n=t._fullLayout,i=t.calcdata,a=n[r+&quot;colorway&quot;],s=n[&quot;_&quot;+r+&quot;colormap&quot;];n[&quot;extend&quot;+r+&quot;colors&quot;]&amp;&amp;(a=l(a,o));for(var c=0,u=0;u&lt;i.length;u++){var f=i[u];if(f[0].trace.type===r)for(var h=0;h&lt;f.length;h++){var p=f[h];!1===p.color&amp;&amp;(s[p.label]?p.color=s[p.label]:(s[p.label]=p.color=a[c%a.length],c++))}}},makePullColorFn:s,generateExtendedColors:l}},{&quot;../../components/color&quot;:643,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],1164:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText;function l(t,e){var r=Array.isArray(t),a=i.isArrayOrTypedArray(e),o=Math.min(r?t.length:1/0,a?e.length:1/0);if(isFinite(o)||(o=0),o&amp;&amp;a){for(var s,l=0;l&lt;o;l++){var c=e[l];if(n(c)&amp;&amp;c&gt;0){s=!0;break}}s||(o=0)}return{hasLabels:r,hasValues:a,len:o}}e.exports={handleLabelsAndValues:l,supplyDefaults:function(t,e,r,n){function c(r,n){return i.coerce(t,e,a,r,n)}var u=l(c(&quot;labels&quot;),c(&quot;values&quot;)),f=u.len;if(e._hasLabels=u.hasLabels,e._hasValues=u.hasValues,!e._hasLabels&amp;&amp;e._hasValues&amp;&amp;(c(&quot;label0&quot;),c(&quot;dlabel&quot;)),f){e._length=f,c(&quot;marker.line.width&quot;)&amp;&amp;c(&quot;marker.line.color&quot;),c(&quot;marker.colors&quot;),c(&quot;scalegroup&quot;);var h,p=c(&quot;text&quot;),d=c(&quot;texttemplate&quot;);if(d||(h=c(&quot;textinfo&quot;,Array.isArray(p)?&quot;text+percent&quot;:&quot;percent&quot;)),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),d||h&amp;&amp;&quot;none&quot;!==h){var g=c(&quot;textposition&quot;);s(t,e,n,c,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(g)||&quot;auto&quot;===g||&quot;outside&quot;===g)&amp;&amp;c(&quot;automargin&quot;),(&quot;inside&quot;===g||&quot;auto&quot;===g||Array.isArray(g))&amp;&amp;c(&quot;insidetextorientation&quot;)}o(e,n,c);var m=c(&quot;hole&quot;);if(c(&quot;title.text&quot;)){var v=c(&quot;title.position&quot;,m?&quot;middle center&quot;:&quot;top center&quot;);m||&quot;middle center&quot;!==v||(e.title.position=&quot;top center&quot;),i.coerceFont(c,&quot;title.font&quot;,n.font)}c(&quot;sort&quot;),c(&quot;direction&quot;),c(&quot;rotation&quot;),c(&quot;pull&quot;)}else e.visible=!1}}},{&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/defaults&quot;:925,&quot;./attributes&quot;:1161,&quot;fast-isnumeric&quot;:241}],1165:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx/helpers&quot;).appendArrayMultiPointValues;e.exports=function(t,e){var r={curveNumber:e.index,pointNumbers:t.pts,data:e._input,fullData:e,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,v:t.v};return 1===t.pts.length&amp;&amp;(r.pointNumber=r.i=t.pts[0]),n(r,e,t.pts),&quot;funnelarea&quot;===e.type&amp;&amp;(delete r.v,delete r.i),r}},{&quot;../../components/fx/helpers&quot;:679}],1166:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);function i(t){return-1!==t.indexOf(&quot;e&quot;)?t.replace(/[.]?0+e/,&quot;e&quot;):-1!==t.indexOf(&quot;.&quot;)?t.replace(/[.]?0+$/,&quot;&quot;):t}r.formatPiePercent=function(t,e){var r=i((100*t).toPrecision(3));return n.numSeparate(r,e)+&quot;%&quot;},r.formatPieValue=function(t,e){var r=i(t.toPrecision(10));return n.numSeparate(r,e)},r.getFirstFilled=function(t,e){if(Array.isArray(t))for(var r=0;r&lt;e.length;r++){var n=t[e[r]];if(n||0===n||&quot;&quot;===n)return n}},r.castOption=function(t,e){return Array.isArray(t)?r.getFirstFilled(t,e):t||void 0},r.getRotationAngle=function(t){return(&quot;auto&quot;===t?0:t)*Math.PI/180}},{&quot;../../lib&quot;:778}],1167:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),styleOne:t(&quot;./style_one&quot;),moduleType:&quot;trace&quot;,name:&quot;pie&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;pie-like&quot;,&quot;pie&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;./attributes&quot;:1161,&quot;./base_plot&quot;:1162,&quot;./calc&quot;:1163,&quot;./defaults&quot;:1164,&quot;./layout_attributes&quot;:1168,&quot;./layout_defaults&quot;:1169,&quot;./plot&quot;:1170,&quot;./style&quot;:1171,&quot;./style_one&quot;:1172}],1168:[function(t,e,r){&quot;use strict&quot;;e.exports={hiddenlabels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},piecolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendpiecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1169:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;hiddenlabels&quot;),r(&quot;piecolorway&quot;,e.colorway),r(&quot;extendpiecolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1168}],1170:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib&quot;),c=l.strScale,u=l.strTranslate,f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../bar/uniform_text&quot;),p=h.recordMinTextSize,d=h.clearMinTextSize,g=t(&quot;../bar/constants&quot;).TEXTPAD,m=t(&quot;./helpers&quot;),v=t(&quot;./event_data&quot;),y=t(&quot;../../lib&quot;).isValidTextValue;function x(t,e,r){var i=r[0],o=i.trace,s=i.cx,c=i.cy;&quot;_hasHoverLabel&quot;in o||(o._hasHoverLabel=!1),&quot;_hasHoverEvent&quot;in o||(o._hasHoverEvent=!1),t.on(&quot;mouseover&quot;,(function(t){var r=e._fullLayout,u=e._fullData[o.index];if(!e._dragging&amp;&amp;!1!==r.hovermode){var f=u.hoverinfo;if(Array.isArray(f)&amp;&amp;(f=a.castHoverinfo({hoverinfo:[m.castOption(f,t.pts)],_module:o._module},r,0)),&quot;all&quot;===f&amp;&amp;(f=&quot;label+text+value+percent+name&quot;),u.hovertemplate||&quot;none&quot;!==f&amp;&amp;&quot;skip&quot;!==f&amp;&amp;f){var h=t.rInscribed||0,p=s+t.pxmid[0]*(1-h),d=c+t.pxmid[1]*(1-h),g=r.separators,y=[];if(f&amp;&amp;-1!==f.indexOf(&quot;label&quot;)&amp;&amp;y.push(t.label),t.text=m.castOption(u.hovertext||u.text,t.pts),f&amp;&amp;-1!==f.indexOf(&quot;text&quot;)){var x=t.text;l.isValidTextValue(x)&amp;&amp;y.push(x)}t.value=t.v,t.valueLabel=m.formatPieValue(t.v,g),f&amp;&amp;-1!==f.indexOf(&quot;value&quot;)&amp;&amp;y.push(t.valueLabel),t.percent=t.v/i.vTotal,t.percentLabel=m.formatPiePercent(t.percent,g),f&amp;&amp;-1!==f.indexOf(&quot;percent&quot;)&amp;&amp;y.push(t.percentLabel);var b=u.hoverlabel,_=b.font;a.loneHover({trace:o,x0:p-h*i.r,x1:p+h*i.r,y:d,text:y.join(&quot;&lt;br&gt;&quot;),name:u.hovertemplate||-1!==f.indexOf(&quot;name&quot;)?u.name:void 0,idealAlign:t.pxmid[0]&lt;0?&quot;left&quot;:&quot;right&quot;,color:m.castOption(b.bgcolor,t.pts)||t.color,borderColor:m.castOption(b.bordercolor,t.pts),fontFamily:m.castOption(_.family,t.pts),fontSize:m.castOption(_.size,t.pts),fontColor:m.castOption(_.color,t.pts),nameLength:m.castOption(b.namelength,t.pts),textAlign:m.castOption(b.align,t.pts),hovertemplate:m.castOption(u.hovertemplate,t.pts),hovertemplateLabels:t,eventData:[v(t,u)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:e}),o._hasHoverLabel=!0}o._hasHoverEvent=!0,e.emit(&quot;plotly_hover&quot;,{points:[v(t,u)],event:n.event})}})),t.on(&quot;mouseout&quot;,(function(t){var r=e._fullLayout,i=e._fullData[o.index],s=n.select(this).datum();o._hasHoverEvent&amp;&amp;(t.originalEvent=n.event,e.emit(&quot;plotly_unhover&quot;,{points:[v(s,i)],event:n.event}),o._hasHoverEvent=!1),o._hasHoverLabel&amp;&amp;(a.loneUnhover(r._hoverlayer.node()),o._hasHoverLabel=!1)})),t.on(&quot;click&quot;,(function(t){var r=e._fullLayout,i=e._fullData[o.index];e._dragging||!1===r.hovermode||(e._hoverdata=[v(t,i)],a.click(e,n.event))}))}function b(t,e,r){var n=m.castOption(t.insidetextfont.color,e.pts);!n&amp;&amp;t._input.textfont&amp;&amp;(n=m.castOption(t._input.textfont.color,e.pts));var i=m.castOption(t.insidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,a=m.castOption(t.insidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size;return{color:n||o.contrast(e.color),family:i,size:a}}function _(t,e){for(var r,n,i=0;i&lt;t.length;i++)if((n=(r=t[i][0]).trace).title.text){var a=n.title.text;n._meta&amp;&amp;(a=l.templateString(a,n._meta));var o=s.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).text(a).call(s.font,n.title.font).call(f.convertToTspans,e),c=s.bBox(o.node(),!0);r.titleBox={width:c.width,height:c.height},o.remove()}}function w(t,e,r){var n=r.r||e.rpx1,i=e.rInscribed;if(e.startangle===e.stopangle)return{rCenter:1-i,scale:0,rotate:0,textPosAngle:0};var a,o=e.ring,s=1===o&amp;&amp;Math.abs(e.startangle-e.stopangle)===2*Math.PI,l=e.halfangle,c=e.midangle,u=r.trace.insidetextorientation,f=&quot;horizontal&quot;===u,h=&quot;tangential&quot;===u,p=&quot;radial&quot;===u,d=&quot;auto&quot;===u,g=[];if(!d){var m,v=function(r,i){if(function(t,e){var r=t.startangle,n=t.stopangle;return r&gt;e&amp;&amp;e&gt;n||r&lt;e&amp;&amp;e&lt;n}(e,r)){var s=Math.abs(r-e.startangle),l=Math.abs(r-e.stopangle),c=s&lt;l?s:l;(a=&quot;tan&quot;===i?k(t,n,o,c,0):T(t,n,o,c,Math.PI/2)).textPosAngle=r,g.push(a)}};if(f||h){for(m=4;m&gt;=-4;m-=2)v(Math.PI*m,&quot;tan&quot;);for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+1),&quot;tan&quot;)}if(f||p){for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+1.5),&quot;rad&quot;);for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+.5),&quot;rad&quot;)}}if(s||d||f){var y=Math.sqrt(t.width*t.width+t.height*t.height);if((a={scale:i*n*2/y,rCenter:1-i,rotate:0}).textPosAngle=(e.startangle+e.stopangle)/2,a.scale&gt;=1)return a;g.push(a)}(d||p)&amp;&amp;((a=T(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,g.push(a)),(d||h)&amp;&amp;((a=k(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,g.push(a));for(var x=0,b=0,_=0;_&lt;g.length;_++){var w=g[_].scale;if(b&lt;w&amp;&amp;(b=w,x=_),!d&amp;&amp;b&gt;=1)break}return g[x]}function T(t,e,r,n,i){e=Math.max(0,e-2*g);var a=t.width/t.height,o=S(a,n,e,r);return{scale:2*o/t.height,rCenter:M(a,o/e),rotate:A(i)}}function k(t,e,r,n,i){e=Math.max(0,e-2*g);var a=t.height/t.width,o=S(a,n,e,r);return{scale:2*o/t.width,rCenter:M(a,o/e),rotate:A(i+Math.PI/2)}}function M(t,e){return Math.cos(e)-t*e}function A(t){return(180/Math.PI*t+720)%180-90}function S(t,e,r,n){var i=t+1/(2*Math.tan(e));return r*Math.min(1/(Math.sqrt(i*i+.5)+i),n/(Math.sqrt(t*t+n/2)+t))}function E(t,e){return t.v!==e.vTotal||e.trace.hole?Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2):1}function C(t,e){var r=e.pxmid[0],n=e.pxmid[1],i=t.width/2,a=t.height/2;return r&lt;0&amp;&amp;(i*=-1),n&lt;0&amp;&amp;(a*=-1),{scale:1,rCenter:1,rotate:0,x:i+Math.abs(a)*(i&gt;0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function L(t,e){var r,n,i,a=t.trace,o={x:t.cx,y:t.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=P(a),-1!==a.title.position.indexOf(&quot;top&quot;)?(o.y-=(1+i)*t.r,s.ty-=t.titleBox.height):-1!==a.title.position.indexOf(&quot;bottom&quot;)&amp;&amp;(o.y+=(1+i)*t.r);var l,c,u=(l=t.r,c=t.trace.aspectratio,l/(void 0===c?1:c)),f=e.w*(a.domain.x[1]-a.domain.x[0])/2;return-1!==a.title.position.indexOf(&quot;left&quot;)?(f+=u,o.x-=(1+i)*u,s.tx+=t.titleBox.width/2):-1!==a.title.position.indexOf(&quot;center&quot;)?f*=2:-1!==a.title.position.indexOf(&quot;right&quot;)&amp;&amp;(f+=u,o.x+=(1+i)*u,s.tx-=t.titleBox.width/2),r=f/t.titleBox.width,n=I(t,e)/t.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function I(t,e){var r=t.trace,n=e.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(t.titleBox.height,n/2)}function P(t){var e,r=t.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,e=0;e&lt;t.pull.length;e++)t.pull[e]&gt;r&amp;&amp;(r=t.pull[e]);return r}function z(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i=t[n][0],a=i.trace,o=a.domain,s=e.w*(o.x[1]-o.x[0]),l=e.h*(o.y[1]-o.y[0]);a.title.text&amp;&amp;&quot;middle center&quot;!==a.title.position&amp;&amp;(l-=I(i,e));var c=s/2,u=l/2;&quot;funnelarea&quot;!==a.type||a.scalegroup||(u/=a.aspectratio),i.r=Math.min(c,u)/(1+P(a)),i.cx=e.l+e.w*(a.domain.x[1]+a.domain.x[0])/2,i.cy=e.t+e.h*(1-a.domain.y[0])-l/2,a.title.text&amp;&amp;-1!==a.title.position.indexOf(&quot;bottom&quot;)&amp;&amp;(i.cy-=I(i,e)),a.scalegroup&amp;&amp;-1===r.indexOf(a.scalegroup)&amp;&amp;r.push(a.scalegroup)}!function(t,e){for(var r,n,i,a=0;a&lt;e.length;a++){var o=1/0,s=e[a];for(n=0;n&lt;t.length;n++)if(r=t[n][0],(i=r.trace).scalegroup===s){var l;if(&quot;pie&quot;===i.type)l=r.r*r.r;else if(&quot;funnelarea&quot;===i.type){var c,u;i.aspectratio&gt;1?(c=r.r,u=c/i.aspectratio):(u=r.r,c=u*i.aspectratio),c*=(1+i.baseratio)/2,l=c*u}o=Math.min(o,l/r.vTotal)}for(n=0;n&lt;t.length;n++)if(r=t[n][0],(i=r.trace).scalegroup===s){var f=o*r.vTotal;&quot;funnelarea&quot;===i.type&amp;&amp;(f/=(1+i.baseratio)/2,f/=i.aspectratio),r.r=Math.sqrt(f)}}}(t,r)}function O(t,e){return[t*Math.sin(e),-t*Math.cos(e)]}function D(t,e,r){var n=t._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&amp;&amp;o&amp;&amp;&quot;none&quot;!==o){var s,c=o.split(&quot;+&quot;),u=function(t){return-1!==c.indexOf(t)},f=u(&quot;label&quot;),h=u(&quot;text&quot;),p=u(&quot;value&quot;),d=u(&quot;percent&quot;),g=n.separators;if(s=f?[e.label]:[],h){var v=m.getFirstFilled(i.text,e.pts);y(v)&amp;&amp;s.push(v)}p&amp;&amp;s.push(m.formatPieValue(e.v,g)),d&amp;&amp;s.push(m.formatPiePercent(e.v/r.vTotal,g)),e.text=s.join(&quot;&lt;br&gt;&quot;)}if(a){var x=l.castOption(i,e.i,&quot;texttemplate&quot;);if(x){var b=function(t){return{label:t.label,value:t.v,valueLabel:m.formatPieValue(t.v,n.separators),percent:t.v/r.vTotal,percentLabel:m.formatPiePercent(t.v/r.vTotal,n.separators),color:t.color,text:t.text,customdata:l.castOption(i,t.i,&quot;customdata&quot;)}}(e),_=m.getFirstFilled(i.text,e.pts);(y(_)||&quot;&quot;===_)&amp;&amp;(b.text=_),e.text=l.texttemplateString(x,b,t._fullLayout._d3locale,b,i._meta||{})}else e.text=&quot;&quot;}}function R(t,e){var r=t.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(e.left+e.right)/2,o=(e.top+e.bottom)/2;t.textX=a*n-o*i,t.textY=a*i+o*n,t.noCenter=!0}e.exports={plot:function(t,e){var r=t._fullLayout,a=r._size;d(&quot;pie&quot;,r),_(e,t),z(e,a);var h=l.makeTraceGroups(r._pielayer,e,&quot;trace&quot;).each((function(e){var h=n.select(this),d=e[0],g=d.trace;!function(t){var e,r,n,i=t[0],a=i.r,o=i.trace,s=m.getRotationAngle(o.rotation),l=2*Math.PI/i.vTotal,c=&quot;px0&quot;,u=&quot;px1&quot;;if(&quot;counterclockwise&quot;===o.direction){for(e=0;e&lt;t.length&amp;&amp;t[e].hidden;e++);if(e===t.length)return;s+=l*t[e].v,l*=-1,c=&quot;px1&quot;,u=&quot;px0&quot;}for(n=O(a,s),e=0;e&lt;t.length;e++)(r=t[e]).hidden||(r[c]=n,r.startangle=s,s+=l*r.v/2,r.pxmid=O(a,s),r.midangle=s,s+=l*r.v/2,n=O(a,s),r.stopangle=s,r[u]=n,r.largeArc=r.v&gt;i.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/i.vTotal,.5),r.ring=1-o.hole,r.rInscribed=E(r,i))}(e),h.attr(&quot;stroke-linejoin&quot;,&quot;round&quot;),h.each((function(){var v=n.select(this).selectAll(&quot;g.slice&quot;).data(e);v.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),v.exit().remove();var y=[[[],[]],[[],[]]],_=!1;v.each((function(i,a){if(i.hidden)n.select(this).selectAll(&quot;path,g&quot;).remove();else{i.pointNumber=i.i,i.curveNumber=g.index,y[i.pxmid[1]&lt;0?0:1][i.pxmid[0]&lt;0?0:1].push(i);var o=d.cx,c=d.cy,u=n.select(this),h=u.selectAll(&quot;path.surface&quot;).data([i]);if(h.enter().append(&quot;path&quot;).classed(&quot;surface&quot;,!0).style({&quot;pointer-events&quot;:&quot;all&quot;}),u.call(x,t,e),g.pull){var v=+m.castOption(g.pull,i.pts)||0;v&gt;0&amp;&amp;(o+=v*i.pxmid[0],c+=v*i.pxmid[1])}i.cxFinal=o,i.cyFinal=c;var T=g.hole;if(i.v===d.vTotal){var k=&quot;M&quot;+(o+i.px0[0])+&quot;,&quot;+(c+i.px0[1])+L(i.px0,i.pxmid,!0,1)+L(i.pxmid,i.px0,!0,1)+&quot;Z&quot;;T?h.attr(&quot;d&quot;,&quot;M&quot;+(o+T*i.px0[0])+&quot;,&quot;+(c+T*i.px0[1])+L(i.px0,i.pxmid,!1,T)+L(i.pxmid,i.px0,!1,T)+&quot;Z&quot;+k):h.attr(&quot;d&quot;,k)}else{var M=L(i.px0,i.px1,!0,1);if(T){var A=1-T;h.attr(&quot;d&quot;,&quot;M&quot;+(o+T*i.px1[0])+&quot;,&quot;+(c+T*i.px1[1])+L(i.px1,i.px0,!1,T)+&quot;l&quot;+A*i.px0[0]+&quot;,&quot;+A*i.px0[1]+M+&quot;Z&quot;)}else h.attr(&quot;d&quot;,&quot;M&quot;+o+&quot;,&quot;+c+&quot;l&quot;+i.px0[0]+&quot;,&quot;+i.px0[1]+M+&quot;Z&quot;)}D(t,i,d);var S=m.castOption(g.textposition,i.pts),E=u.selectAll(&quot;g.slicetext&quot;).data(i.text&amp;&amp;&quot;none&quot;!==S?[0]:[]);E.enter().append(&quot;g&quot;).classed(&quot;slicetext&quot;,!0),E.exit().remove(),E.each((function(){var u=l.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),h=l.ensureUniformFontSize(t,&quot;outside&quot;===S?function(t,e,r){var n=m.castOption(t.outsidetextfont.color,e.pts)||m.castOption(t.textfont.color,e.pts)||r.color,i=m.castOption(t.outsidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,a=m.castOption(t.outsidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size;return{color:n,family:i,size:a}}(g,i,r.font):b(g,i,r.font));u.text(i.text).attr({class:&quot;slicetext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(s.font,h).call(f.convertToTspans,t);var v,y=s.bBox(u.node());if(&quot;outside&quot;===S)v=C(y,i);else if(v=w(y,i,d),&quot;auto&quot;===S&amp;&amp;v.scale&lt;1){var x=l.ensureUniformFontSize(t,g.outsidetextfont);u.call(s.font,x),v=C(y=s.bBox(u.node()),i)}var T=v.textPosAngle,k=void 0===T?i.pxmid:O(d.r,T);if(v.targetX=o+k[0]*v.rCenter+(v.x||0),v.targetY=c+k[1]*v.rCenter+(v.y||0),R(v,y),v.outside){var M=v.targetY;i.yLabelMin=M-y.height/2,i.yLabelMid=M,i.yLabelMax=M+y.height/2,i.labelExtraX=0,i.labelExtraY=0,_=!0}v.fontSize=h.size,p(g.type,v,r),e[a].transform=v,u.attr(&quot;transform&quot;,l.getTextTransform(v))}))}function L(t,e,r,n){var a=n*(e[0]-t[0]),o=n*(e[1]-t[1]);return&quot;a&quot;+n*d.r+&quot;,&quot;+n*d.r+&quot; 0 &quot;+i.largeArc+(r?&quot; 1 &quot;:&quot; 0 &quot;)+a+&quot;,&quot;+o}}));var T=n.select(this).selectAll(&quot;g.titletext&quot;).data(g.title.text?[0]:[]);if(T.enter().append(&quot;g&quot;).classed(&quot;titletext&quot;,!0),T.exit().remove(),T.each((function(){var e,r=l.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),i=g.title.text;g._meta&amp;&amp;(i=l.templateString(i,g._meta)),r.text(i).attr({class:&quot;titletext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(s.font,g.title.font).call(f.convertToTspans,t),e=&quot;middle center&quot;===g.title.position?function(t){var e=Math.sqrt(t.titleBox.width*t.titleBox.width+t.titleBox.height*t.titleBox.height);return{x:t.cx,y:t.cy,scale:t.trace.hole*t.r*2/e,tx:0,ty:-t.titleBox.height/2+t.trace.title.font.size}}(d):L(d,a),r.attr(&quot;transform&quot;,u(e.x,e.y)+c(Math.min(1,e.scale))+u(e.tx,e.ty))})),_&amp;&amp;function(t,e){var r,n,i,a,o,s,l,c,u,f,h,p,d;function g(t,e){return t.pxmid[1]-e.pxmid[1]}function v(t,e){return e.pxmid[1]-t.pxmid[1]}function y(t,r){r||(r={});var i,c,u,h,p=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),d=n?t.yLabelMin:t.yLabelMax,g=n?t.yLabelMax:t.yLabelMin,v=t.cyFinal+o(t.px0[1],t.px1[1]),y=p-d;if(y*l&gt;0&amp;&amp;(t.labelExtraY=y),Array.isArray(e.pull))for(c=0;c&lt;f.length;c++)(u=f[c])===t||(m.castOption(e.pull,t.pts)||0)&gt;=(m.castOption(e.pull,u.pts)||0)||((t.pxmid[1]-u.pxmid[1])*l&gt;0?(y=u.cyFinal+o(u.px0[1],u.px1[1])-d-t.labelExtraY)*l&gt;0&amp;&amp;(t.labelExtraY+=y):(g+t.labelExtraY-v)*l&gt;0&amp;&amp;(i=3*s*Math.abs(c-f.indexOf(t)),(h=u.cxFinal+a(u.px0[0],u.px1[0])+i-(t.cxFinal+t.pxmid[0])-t.labelExtraX)*s&gt;0&amp;&amp;(t.labelExtraX+=h)))}for(n=0;n&lt;2;n++)for(i=n?g:v,o=n?Math.max:Math.min,l=n?1:-1,r=0;r&lt;2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,(c=t[n][r]).sort(i),u=t[1-n][r],f=u.concat(c),p=[],h=0;h&lt;c.length;h++)void 0!==c[h].yLabelMid&amp;&amp;p.push(c[h]);for(d=!1,h=0;n&amp;&amp;h&lt;u.length;h++)if(void 0!==u[h].yLabelMid){d=u[h];break}for(h=0;h&lt;p.length;h++){var x=h&amp;&amp;p[h-1];d&amp;&amp;!h&amp;&amp;(x=d),y(p[h],x)}}}(y,g),function(t,e){t.each((function(t){var r=n.select(this);if(t.labelExtraX||t.labelExtraY){var i=r.select(&quot;g.slicetext text&quot;);t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,i.attr(&quot;transform&quot;,l.getTextTransform(t.transform));var a=t.cxFinal+t.pxmid[0],s=&quot;M&quot;+a+&quot;,&quot;+(t.cyFinal+t.pxmid[1]),c=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]&lt;0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)&gt;Math.abs(f)?s+=&quot;l&quot;+f*t.pxmid[0]/t.pxmid[1]+&quot;,&quot;+f+&quot;H&quot;+(a+t.labelExtraX+c):s+=&quot;l&quot;+t.labelExtraX+&quot;,&quot;+u+&quot;v&quot;+(f-u)+&quot;h&quot;+c}else s+=&quot;V&quot;+(t.yLabelMid+t.labelExtraY)+&quot;h&quot;+c;l.ensureSingle(r,&quot;path&quot;,&quot;textline&quot;).call(o.stroke,e.outsidetextfont.color).attr({&quot;stroke-width&quot;:Math.min(2,e.outsidetextfont.size/8),d:s,fill:&quot;none&quot;})}else r.select(&quot;path.textline&quot;).remove()}))}(v,g),_&amp;&amp;g.automargin){var k=s.bBox(h.node()),M=g.domain,A=a.w*(M.x[1]-M.x[0]),S=a.h*(M.y[1]-M.y[0]),E=(.5*A-d.r)/a.w,I=(.5*S-d.r)/a.h;i.autoMargin(t,&quot;pie.&quot;+g.uid+&quot;.automargin&quot;,{xl:M.x[0]-E,xr:M.x[1]+E,yb:M.y[0]-I,yt:M.y[1]+I,l:Math.max(d.cx-d.r-k.left,0),r:Math.max(k.right-(d.cx+d.r),0),b:Math.max(k.bottom-(d.cy+d.r),0),t:Math.max(d.cy-d.r-k.top,0),pad:5})}}))}));setTimeout((function(){h.selectAll(&quot;tspan&quot;).each((function(){var t=n.select(this);t.attr(&quot;dy&quot;)&amp;&amp;t.attr(&quot;dy&quot;,t.attr(&quot;dy&quot;))}))}),0)},formatSliceLabel:D,transformInsideText:w,determineInsideTextFont:b,positionTitleOutside:L,prerenderTitles:_,layoutAreas:z,attachFxHandlers:x,computeTransform:R}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../bar/constants&quot;:923,&quot;../bar/uniform_text&quot;:937,&quot;./event_data&quot;:1165,&quot;./helpers&quot;:1166,d3:169}],1171:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;./style_one&quot;),a=t(&quot;../bar/uniform_text&quot;).resizeText;e.exports=function(t){var e=t._fullLayout._pielayer.selectAll(&quot;.trace&quot;);a(t,e,&quot;pie&quot;),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(i,t,e)}))}))}},{&quot;../bar/uniform_text&quot;:937,&quot;./style_one&quot;:1172,d3:169}],1172:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;./helpers&quot;).castOption;e.exports=function(t,e,r){var a=r.marker.line,o=i(a.color,e.pts)||n.defaultLine,s=i(a.width,e.pts)||0;t.style(&quot;stroke-width&quot;,s).call(n.fill,e.color).call(n.stroke,o)}},{&quot;../../components/color&quot;:643,&quot;./helpers&quot;:1166}],1173:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;);e.exports={x:n.x,y:n.y,xy:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},indices:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},xbounds:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ybounds:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},text:n.text,marker:{color:{valType:&quot;color&quot;,arrayOk:!1,editType:&quot;calc&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,arrayOk:!1,editType:&quot;calc&quot;},blend:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},sizemin:{valType:&quot;number&quot;,min:.1,max:2,dflt:.5,editType:&quot;calc&quot;},sizemax:{valType:&quot;number&quot;,min:.1,dflt:20,editType:&quot;calc&quot;},border:{color:{valType:&quot;color&quot;,arrayOk:!1,editType:&quot;calc&quot;},arearatio:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},transforms:void 0}},{&quot;../scatter/attributes&quot;:1187}],1174:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-pointcloud2d&quot;),i=t(&quot;../../lib/str2rgbarray&quot;),a=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,o=t(&quot;../scatter/get_trace_color&quot;);function s(t,e){this.scene=t,this.uid=e,this.type=&quot;pointcloud&quot;,this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color=&quot;rgb(0, 0, 0)&quot;,this.name=&quot;&quot;,this.hoverinfo=&quot;all&quot;,this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=n(t.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var l=s.prototype;l.handlePick=function(t){var e=this.idToIndex[t.pointId];return{trace:this,dataCoord:t.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[2*e],this.pickXYData[2*e+1]]:[this.pickXData[e],this.pickYData[e]],textLabel:Array.isArray(this.textLabels)?this.textLabels[e]:this.textLabels,color:this.color,name:this.name,pointIndex:e,hoverinfo:this.hoverinfo}},l.update=function(t){this.index=t.index,this.textLabels=t.text,this.name=t.name,this.hoverinfo=t.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(t),this.color=o(t,{})},l.updateFast=function(t){var e,r,n,o,s,l,c=this.xData=this.pickXData=t.x,u=this.yData=this.pickYData=t.y,f=this.pickXYData=t.xy,h=t.xbounds&amp;&amp;t.ybounds,p=t.indices,d=this.bounds;if(f){if(n=f,e=f.length&gt;&gt;&gt;1,h)d[0]=t.xbounds[0],d[2]=t.xbounds[1],d[1]=t.ybounds[0],d[3]=t.ybounds[1];else for(l=0;l&lt;e;l++)o=n[2*l],s=n[2*l+1],o&lt;d[0]&amp;&amp;(d[0]=o),o&gt;d[2]&amp;&amp;(d[2]=o),s&lt;d[1]&amp;&amp;(d[1]=s),s&gt;d[3]&amp;&amp;(d[3]=s);if(p)r=p;else for(r=new Int32Array(e),l=0;l&lt;e;l++)r[l]=l}else for(e=c.length,n=new Float32Array(2*e),r=new Int32Array(e),l=0;l&lt;e;l++)o=c[l],s=u[l],r[l]=l,n[2*l]=o,n[2*l+1]=s,o&lt;d[0]&amp;&amp;(d[0]=o),o&gt;d[2]&amp;&amp;(d[2]=o),s&lt;d[1]&amp;&amp;(d[1]=s),s&gt;d[3]&amp;&amp;(d[3]=s);this.idToIndex=r,this.pointcloudOptions.idToIndex=r,this.pointcloudOptions.positions=n;var g=i(t.marker.color),m=i(t.marker.border.color),v=t.opacity*t.marker.opacity;g[3]*=v,this.pointcloudOptions.color=g;var y=t.marker.blend;if(null===y){y=c.length&lt;100||u.length&lt;100}this.pointcloudOptions.blend=y,m[3]*=v,this.pointcloudOptions.borderColor=m;var x=t.marker.sizemin,b=Math.max(t.marker.sizemax,t.marker.sizemin);this.pointcloudOptions.sizeMin=x,this.pointcloudOptions.sizeMax=b,this.pointcloudOptions.areaRatio=t.marker.border.arearatio,this.pointcloud.update(this.pointcloudOptions);var _=this.scene.xaxis,w=this.scene.yaxis,T=b/2||.5;t._extremes[_._id]=a(_,[d[0],d[2]],{ppad:T}),t._extremes[w._id]=a(w,[d[1],d[3]],{ppad:T})},l.dispose=function(){this.pointcloud.dispose()},e.exports=function(t,e){var r=new s(t,e.uid);return r.update(e),r}},{&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/autorange&quot;:827,&quot;../scatter/get_trace_color&quot;:1197,&quot;gl-pointcloud2d&quot;:324}],1175:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;);e.exports=function(t,e,r){function a(r,a){return n.coerce(t,e,i,r,a)}a(&quot;x&quot;),a(&quot;y&quot;),a(&quot;xbounds&quot;),a(&quot;ybounds&quot;),t.xy&amp;&amp;t.xy instanceof Float32Array&amp;&amp;(e.xy=t.xy),t.indices&amp;&amp;t.indices instanceof Int32Array&amp;&amp;(e.indices=t.indices),a(&quot;text&quot;),a(&quot;marker.color&quot;,r),a(&quot;marker.opacity&quot;),a(&quot;marker.blend&quot;),a(&quot;marker.sizemin&quot;),a(&quot;marker.sizemax&quot;),a(&quot;marker.border.color&quot;,r),a(&quot;marker.border.arearatio&quot;),e._length=null}},{&quot;../../lib&quot;:778,&quot;./attributes&quot;:1173}],1176:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;../scatter3d/calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;pointcloud&quot;,basePlotModule:t(&quot;../../plots/gl2d&quot;),categories:[&quot;gl&quot;,&quot;gl2d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl2d&quot;:868,&quot;../scatter3d/calc&quot;:1216,&quot;./attributes&quot;:1173,&quot;./convert&quot;:1174,&quot;./defaults&quot;:1175}],1177:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=t(&quot;../../components/fx/attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../plot_api/plot_template&quot;).templatedArray,f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../plot_api/edit_types&quot;).overrideAll;t(&quot;../../constants/docs&quot;).FORMAT_LINK;(e.exports=h({hoverinfo:f({},i.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:o.hoverlabel,domain:s({name:&quot;sankey&quot;,trace:!0}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;},valueformat:{valType:&quot;string&quot;,dflt:&quot;.3s&quot;},valuesuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;},arrangement:{valType:&quot;enumerated&quot;,values:[&quot;snap&quot;,&quot;perpendicular&quot;,&quot;freeform&quot;,&quot;fixed&quot;],dflt:&quot;snap&quot;},textfont:n({}),customdata:void 0,node:{label:{valType:&quot;data_array&quot;,dflt:[]},groups:{valType:&quot;info_array&quot;,impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:&quot;number&quot;,editType:&quot;calc&quot;}},x:{valType:&quot;data_array&quot;,dflt:[]},y:{valType:&quot;data_array&quot;,dflt:[]},color:{valType:&quot;color&quot;,arrayOk:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:a.defaultLine,arrayOk:!0},width:{valType:&quot;number&quot;,min:0,dflt:.5,arrayOk:!0}},pad:{valType:&quot;number&quot;,arrayOk:!1,min:0,dflt:20},thickness:{valType:&quot;number&quot;,arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],dflt:&quot;all&quot;},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:[&quot;value&quot;,&quot;label&quot;]})},link:{label:{valType:&quot;data_array&quot;,dflt:[]},color:{valType:&quot;color&quot;,arrayOk:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:a.defaultLine,arrayOk:!0},width:{valType:&quot;number&quot;,min:0,dflt:0,arrayOk:!0}},source:{valType:&quot;data_array&quot;,dflt:[]},target:{valType:&quot;data_array&quot;,dflt:[]},value:{valType:&quot;data_array&quot;,dflt:[]},hoverinfo:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],dflt:&quot;all&quot;},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:[&quot;value&quot;,&quot;label&quot;]}),colorscales:u(&quot;concentrationscales&quot;,{editType:&quot;calc&quot;,label:{valType:&quot;string&quot;,editType:&quot;calc&quot;,dflt:&quot;&quot;},cmax:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:1},cmin:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:0},colorscale:f(c().colorscale,{dflt:[[0,&quot;white&quot;],[1,&quot;black&quot;]]})})}},&quot;calc&quot;,&quot;nested&quot;)).transforms=void 0},{&quot;../../components/color/attributes&quot;:642,&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/fx/attributes&quot;:674,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906}],1178:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;../../plots/get_data&quot;).getModuleCalcData,a=t(&quot;./plot&quot;),o=t(&quot;../../components/fx/layout_attributes&quot;),s=t(&quot;../../lib/setcursor&quot;),l=t(&quot;../../components/dragelement&quot;),c=t(&quot;../../plots/cartesian/select&quot;).prepSelect,u=t(&quot;../../lib&quot;),f=t(&quot;../../registry&quot;);function h(t,e){var r=t._fullData[e],n=t._fullLayout,i=n.dragmode,a=&quot;pan&quot;===n.dragmode?&quot;move&quot;:&quot;crosshair&quot;,o=r._bgRect;if(&quot;pan&quot;!==i&amp;&amp;&quot;zoom&quot;!==i){s(o,a);var h={_id:&quot;x&quot;,c2p:u.identity,_offset:r._sankey.translateX,_length:r._sankey.width},p={_id:&quot;y&quot;,c2p:u.identity,_offset:r._sankey.translateY,_length:r._sankey.height},d={gd:t,element:o.node(),plotinfo:{id:e,xaxis:h,yaxis:p,fillRangeItems:u.noop},subplot:e,xaxes:[h],yaxes:[p],doneFnCompleted:function(r){var n,i=t._fullData[e],a=i.node.groups.slice(),o=[];function s(t){for(var e=i._sankey.graph.nodes,r=0;r&lt;e.length;r++)if(e[r].pointNumber===t)return e[r]}for(var l=0;l&lt;r.length;l++){var c=s(r[l].pointNumber);if(c)if(c.group){for(var u=0;u&lt;c.childrenNodes.length;u++)o.push(c.childrenNodes[u].pointNumber);a[c.pointNumber-i.node._count]=!1}else o.push(c.pointNumber)}n=a.filter(Boolean).concat([o]),f.call(&quot;_guiRestyle&quot;,t,{&quot;node.groups&quot;:[n]},e)},prepFn:function(t,e,r){c(t,e,r,d,i)}};l.init(d)}}r.name=&quot;sankey&quot;,r.baseLayoutAttrOverrides=n({hoverlabel:o.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.plot=function(t){var e=i(t.calcdata,&quot;sankey&quot;)[0];a(t,e),r.updateFx(t)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;sankey&quot;),a=e._has&amp;&amp;e._has(&quot;sankey&quot;);i&amp;&amp;!a&amp;&amp;(n._paperdiv.selectAll(&quot;.sankey&quot;).remove(),n._paperdiv.selectAll(&quot;.bgsankey&quot;).remove())},r.updateFx=function(t){for(var e=0;e&lt;t._fullData.length;e++)h(t,e)}},{&quot;../../components/dragelement&quot;:662,&quot;../../components/fx/layout_attributes&quot;:684,&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/cartesian/select&quot;:847,&quot;../../plots/get_data&quot;:865,&quot;../../registry&quot;:911,&quot;./plot&quot;:1183}],1179:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;strongly-connected-components&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/gup&quot;).wrap,o=i.isArrayOrTypedArray,s=i.isIndex,l=t(&quot;../../components/colorscale&quot;);function c(t){var e,r=t.node,a=t.link,c=[],u=o(a.color),f=o(a.customdata),h={},p={},d=a.colorscales.length;for(e=0;e&lt;d;e++){var g=a.colorscales[e],m=l.extractScale(g,{cLetter:&quot;c&quot;}),v=l.makeColorScaleFunc(m);p[g.label]=v}var y=0;for(e=0;e&lt;a.value.length;e++)a.source[e]&gt;y&amp;&amp;(y=a.source[e]),a.target[e]&gt;y&amp;&amp;(y=a.target[e]);var x,b=y+1;t.node._count=b;var _=t.node.groups,w={};for(e=0;e&lt;_.length;e++){var T=_[e];for(x=0;x&lt;T.length;x++){var k=T[x],M=b+e;w.hasOwnProperty(k)?i.warn(&quot;Node &quot;+k+&quot; is already part of a group.&quot;):w[k]=M}}var A={source:[],target:[]};for(e=0;e&lt;a.value.length;e++){var S=a.value[e],E=a.source[e],C=a.target[e];if(S&gt;0&amp;&amp;s(E,b)&amp;&amp;s(C,b)&amp;&amp;(!w.hasOwnProperty(E)||!w.hasOwnProperty(C)||w[E]!==w[C])){w.hasOwnProperty(C)&amp;&amp;(C=w[C]),w.hasOwnProperty(E)&amp;&amp;(E=w[E]),C=+C,h[E=+E]=h[C]=!0;var L=&quot;&quot;;a.label&amp;&amp;a.label[e]&amp;&amp;(L=a.label[e]);var I=null;L&amp;&amp;p.hasOwnProperty(L)&amp;&amp;(I=p[L]),c.push({pointNumber:e,label:L,color:u?a.color[e]:a.color,customdata:f?a.customdata[e]:a.customdata,concentrationscale:I,source:E,target:C,value:+S}),A.source.push(E),A.target.push(C)}}var P=b+_.length,z=o(r.color),O=o(r.customdata),D=[];for(e=0;e&lt;P;e++)if(h[e]){var R=r.label[e];D.push({group:e&gt;b-1,childrenNodes:[],pointNumber:e,label:R,color:z?r.color[e]:r.color,customdata:O?r.customdata[e]:r.customdata})}var F=!1;return function(t,e,r){for(var a=i.init2dArray(t,0),o=0;o&lt;Math.min(e.length,r.length);o++)if(i.isIndex(e[o],t)&amp;&amp;i.isIndex(r[o],t)){if(e[o]===r[o])return!0;a[e[o]].push(r[o])}return n(a).components.some((function(t){return t.length&gt;1}))}(P,A.source,A.target)&amp;&amp;(F=!0),{circular:F,links:c,nodes:D,groups:_,groupLookup:w}}e.exports=function(t,e){var r=c(e);return a({circular:r.circular,_nodes:r.nodes,_links:r.links,_groups:r.groups,_groupLookup:r.groupLookup})}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;strongly-connected-components&quot;:569}],1180:[function(t,e,r){&quot;use strict&quot;;e.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:&quot;linear&quot;,cn:{sankey:&quot;sankey&quot;,sankeyLinks:&quot;sankey-links&quot;,sankeyLink:&quot;sankey-link&quot;,sankeyNodeSet:&quot;sankey-node-set&quot;,sankeyNode:&quot;sankey-node&quot;,nodeRect:&quot;node-rect&quot;,nodeCapture:&quot;node-capture&quot;,nodeCentered:&quot;node-entered&quot;,nodeLabelGuide:&quot;node-label-guide&quot;,nodeLabel:&quot;node-label&quot;,nodeLabelTextPath:&quot;node-label-text-path&quot;}}},{}],1181:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;tinycolor2&quot;),s=t(&quot;../../plots/domain&quot;).defaults,l=t(&quot;../../components/fx/hoverlabel_defaults&quot;),c=t(&quot;../../plot_api/plot_template&quot;),u=t(&quot;../../plots/array_container_defaults&quot;);function f(t,e){function r(r,a){return n.coerce(t,e,i.link.colorscales,r,a)}r(&quot;label&quot;),r(&quot;cmin&quot;),r(&quot;cmax&quot;),r(&quot;colorscale&quot;)}e.exports=function(t,e,r,h){function p(r,a){return n.coerce(t,e,i,r,a)}var d=n.extendDeep(h.hoverlabel,t.hoverlabel),g=t.node,m=c.newContainer(e,&quot;node&quot;);function v(t,e){return n.coerce(g,m,i.node,t,e)}v(&quot;label&quot;),v(&quot;groups&quot;),v(&quot;x&quot;),v(&quot;y&quot;),v(&quot;pad&quot;),v(&quot;thickness&quot;),v(&quot;line.color&quot;),v(&quot;line.width&quot;),v(&quot;hoverinfo&quot;,t.hoverinfo),l(g,m,v,d),v(&quot;hovertemplate&quot;);var y=h.colorway;v(&quot;color&quot;,m.label.map((function(t,e){return a.addOpacity(function(t){return y[t%y.length]}(e),.8)}))),v(&quot;customdata&quot;);var x=t.link||{},b=c.newContainer(e,&quot;link&quot;);function _(t,e){return n.coerce(x,b,i.link,t,e)}_(&quot;label&quot;),_(&quot;source&quot;),_(&quot;target&quot;),_(&quot;value&quot;),_(&quot;line.color&quot;),_(&quot;line.width&quot;),_(&quot;hoverinfo&quot;,t.hoverinfo),l(x,b,_,d),_(&quot;hovertemplate&quot;);var w,T=o(h.paper_bgcolor).getLuminance()&lt;.333?&quot;rgba(255, 255, 255, 0.6)&quot;:&quot;rgba(0, 0, 0, 0.2)&quot;;_(&quot;color&quot;,n.repeat(T,b.value.length)),_(&quot;customdata&quot;),u(x,b,{name:&quot;colorscales&quot;,handleItemDefaults:f}),s(e,h,p),p(&quot;orientation&quot;),p(&quot;valueformat&quot;),p(&quot;valuesuffix&quot;),m.x.length&amp;&amp;m.y.length&amp;&amp;(w=&quot;freeform&quot;),p(&quot;arrangement&quot;,w),n.coerceFont(p,&quot;textfont&quot;,n.extendFlat({},h.font)),e._length=null}},{&quot;../../components/color&quot;:643,&quot;../../components/fx/hoverlabel_defaults&quot;:681,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1177,tinycolor2:576}],1182:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),moduleType:&quot;trace&quot;,name:&quot;sankey&quot;,basePlotModule:t(&quot;./base_plot&quot;),selectPoints:t(&quot;./select.js&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1177,&quot;./base_plot&quot;:1178,&quot;./calc&quot;:1179,&quot;./defaults&quot;:1181,&quot;./plot&quot;:1183,&quot;./select.js&quot;:1185}],1183:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;./render&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;./constants&quot;).cn,c=s._;function u(t){return&quot;&quot;!==t}function f(t,e){return t.filter((function(t){return t.key===e.traceId}))}function h(t,e){n.select(t).select(&quot;path&quot;).style(&quot;fill-opacity&quot;,e),n.select(t).select(&quot;rect&quot;).style(&quot;fill-opacity&quot;,e)}function p(t){n.select(t).select(&quot;text.name&quot;).style(&quot;fill&quot;,&quot;black&quot;)}function d(t){return function(e){return-1!==t.node.sourceLinks.indexOf(e.link)||-1!==t.node.targetLinks.indexOf(e.link)}}function g(t){return function(e){return-1!==e.node.sourceLinks.indexOf(t.link)||-1!==e.node.targetLinks.indexOf(t.link)}}function m(t,e,r){e&amp;&amp;r&amp;&amp;f(r,e).selectAll(&quot;.&quot;+l.sankeyLink).filter(d(e)).call(y.bind(0,e,r,!1))}function v(t,e,r){e&amp;&amp;r&amp;&amp;f(r,e).selectAll(&quot;.&quot;+l.sankeyLink).filter(d(e)).call(x.bind(0,e,r,!1))}function y(t,e,r,n){var i=n.datum().link.label;n.style(&quot;fill-opacity&quot;,(function(t){if(!t.link.concentrationscale)return.4})),i&amp;&amp;f(e,t).selectAll(&quot;.&quot;+l.sankeyLink).filter((function(t){return t.link.label===i})).style(&quot;fill-opacity&quot;,(function(t){if(!t.link.concentrationscale)return.4})),r&amp;&amp;f(e,t).selectAll(&quot;.&quot;+l.sankeyNode).filter(g(t)).call(m)}function x(t,e,r,n){var i=n.datum().link.label;n.style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),i&amp;&amp;f(e,t).selectAll(&quot;.&quot;+l.sankeyLink).filter((function(t){return t.link.label===i})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),r&amp;&amp;f(e,t).selectAll(l.sankeyNode).filter(g(t)).call(v)}function b(t,e){var r=t.hoverlabel||{},n=s.nestedProperty(r,e).get();return!Array.isArray(n)&amp;&amp;n}e.exports=function(t,e){for(var r=t._fullLayout,s=r._paper,f=r._size,d=0;d&lt;t._fullData.length;d++)if(t._fullData[d].visible&amp;&amp;t._fullData[d].type===l.sankey&amp;&amp;!t._fullData[d]._viewInitial){var g=t._fullData[d].node;t._fullData[d]._viewInitial={node:{groups:g.groups.slice(),x:g.x.slice(),y:g.y.slice()}}}var _=c(t,&quot;source:&quot;)+&quot; &quot;,w=c(t,&quot;target:&quot;)+&quot; &quot;,T=c(t,&quot;concentration:&quot;)+&quot; &quot;,k=c(t,&quot;incoming flow count:&quot;)+&quot; &quot;,M=c(t,&quot;outgoing flow count:&quot;)+&quot; &quot;;i(t,s,e,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{linkEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(y.bind(0,r,i,!0)),&quot;skip&quot;!==r.link.trace.link.hoverinfo&amp;&amp;(r.link.fullData=r.link.trace,t.emit(&quot;plotly_hover&quot;,{event:n.event,points:[r.link]})))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var s=i.link.trace.link;if(&quot;none&quot;!==s.hoverinfo&amp;&amp;&quot;skip&quot;!==s.hoverinfo){for(var l=[],c=0,f=0;f&lt;i.flow.links.length;f++){var d=i.flow.links[f];if(&quot;closest&quot;!==t._fullLayout.hovermode||i.link.pointNumber===d.pointNumber){i.link.pointNumber===d.pointNumber&amp;&amp;(c=f),d.fullData=d.trace,s=i.link.trace.link;var g=v(d),m={valueLabel:n.format(i.valueFormat)(d.value)+i.valueSuffix};l.push({x:g[0],y:g[1],name:m.valueLabel,text:[d.label||&quot;&quot;,_+d.source.label,w+d.target.label,d.concentrationscale?T+n.format(&quot;%0.2f&quot;)(d.flow.labelConcentration):&quot;&quot;].filter(u).join(&quot;&lt;br&gt;&quot;),color:b(s,&quot;bgcolor&quot;)||o.addOpacity(d.color,1),borderColor:b(s,&quot;bordercolor&quot;),fontFamily:b(s,&quot;font.family&quot;),fontSize:b(s,&quot;font.size&quot;),fontColor:b(s,&quot;font.color&quot;),nameLength:b(s,&quot;namelength&quot;),textAlign:b(s,&quot;align&quot;),idealAlign:n.event.x&lt;g[0]?&quot;right&quot;:&quot;left&quot;,hovertemplate:s.hovertemplate,hovertemplateLabels:m,eventData:[d]})}}a.loneHover(l,{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t,anchorIndex:c}).each((function(){i.link.concentrationscale||h(this,.65),p(this)}))}}function v(t){var e,r;t.circular?(e=(t.circularPathData.leftInnerExtent+t.circularPathData.rightInnerExtent)/2,r=t.circularPathData.verticalFullExtent):(e=(t.source.x1+t.target.x0)/2,r=(t.y0+t.y1)/2);var n=[e,r];return&quot;v&quot;===t.trace.orientation&amp;&amp;n.reverse(),n[0]+=i.parent.translateX,n[1]+=i.parent.translateY,n}},unhover:function(e,i,o){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(x.bind(0,i,o,!0)),&quot;skip&quot;!==i.link.trace.link.hoverinfo&amp;&amp;(i.link.fullData=i.link.trace,t.emit(&quot;plotly_unhover&quot;,{event:n.event,points:[i.link]})),a.loneUnhover(r._hoverlayer.node()))},select:function(e,r){var i=r.link;i.originalEvent=n.event,t._hoverdata=[i],a.click(t,{target:!0})}},nodeEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(m,r,i),&quot;skip&quot;!==r.node.trace.node.hoverinfo&amp;&amp;(r.node.fullData=r.node.trace,t.emit(&quot;plotly_hover&quot;,{event:n.event,points:[r.node]})))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var o=i.node.trace.node;if(&quot;none&quot;!==o.hoverinfo&amp;&amp;&quot;skip&quot;!==o.hoverinfo){var s=n.select(e).select(&quot;.&quot;+l.nodeRect),c=t._fullLayout._paperdiv.node().getBoundingClientRect(),f=s.node().getBoundingClientRect(),d=f.left-2-c.left,g=f.right+2-c.left,m=f.top+f.height/4-c.top,v={valueLabel:n.format(i.valueFormat)(i.node.value)+i.valueSuffix};i.node.fullData=i.node.trace,t._fullLayout._calcInverseTransform(t);var y=t._fullLayout._invScaleX,x=t._fullLayout._invScaleY,_=a.loneHover({x0:y*d,x1:y*g,y:x*m,name:n.format(i.valueFormat)(i.node.value)+i.valueSuffix,text:[i.node.label,k+i.node.targetLinks.length,M+i.node.sourceLinks.length].filter(u).join(&quot;&lt;br&gt;&quot;),color:b(o,&quot;bgcolor&quot;)||i.tinyColorHue,borderColor:b(o,&quot;bordercolor&quot;),fontFamily:b(o,&quot;font.family&quot;),fontSize:b(o,&quot;font.size&quot;),fontColor:b(o,&quot;font.color&quot;),nameLength:b(o,&quot;namelength&quot;),textAlign:b(o,&quot;align&quot;),idealAlign:&quot;left&quot;,hovertemplate:o.hovertemplate,hovertemplateLabels:v,eventData:[i.node]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t});h(_,.85),p(_)}}},unhover:function(e,i,o){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(v,i,o),&quot;skip&quot;!==i.node.trace.node.hoverinfo&amp;&amp;(i.node.fullData=i.node.trace,t.emit(&quot;plotly_unhover&quot;,{event:n.event,points:[i.node]})),a.loneUnhover(r._hoverlayer.node()))},select:function(e,r,i){var o=r.node;o.originalEvent=n.event,t._hoverdata=[o],n.select(e).call(v,r,i),a.click(t,{target:!0})}}})}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;./constants&quot;:1180,&quot;./render&quot;:1184,d3:169}],1184:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;d3&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;@plotly/d3-sankey&quot;),c=t(&quot;@plotly/d3-sankey-circular&quot;),u=t(&quot;d3-force&quot;),f=t(&quot;../../lib&quot;),h=f.strTranslate,p=t(&quot;../../lib/gup&quot;),d=p.keyFun,g=p.repeat,m=p.unwrap,v=t(&quot;d3-interpolate&quot;).interpolateNumber,y=t(&quot;../../registry&quot;);function x(t,e,r){var i,o=m(e),s=o.trace,u=s.domain,h=&quot;h&quot;===s.orientation,p=s.node.pad,d=s.node.thickness,g=t.width*(u.x[1]-u.x[0]),v=t.height*(u.y[1]-u.y[0]),y=o._nodes,x=o._links,b=o.circular;(i=b?c.sankeyCircular().circularLinkGap(0):l.sankey()).iterations(n.sankeyIterations).size(h?[g,v]:[v,g]).nodeWidth(d).nodePadding(p).nodeId((function(t){return t.pointNumber})).nodes(y).links(x);var _,w,T,k=i();for(var M in i.nodePadding()&lt;p&amp;&amp;f.warn(&quot;node.pad was reduced to &quot;,i.nodePadding(),&quot; to fit within the figure.&quot;),o._groupLookup){var A,S=parseInt(o._groupLookup[M]);for(_=0;_&lt;k.nodes.length;_++)if(k.nodes[_].pointNumber===S){A=k.nodes[_];break}if(A){var E={pointNumber:parseInt(M),x0:A.x0,x1:A.x1,y0:A.y0,y1:A.y1,partOfGroup:!0,sourceLinks:[],targetLinks:[]};k.nodes.unshift(E),A.childrenNodes.unshift(E)}}if(function(){for(_=0;_&lt;k.nodes.length;_++){var t,e,r=k.nodes[_],n={};for(w=0;w&lt;r.targetLinks.length;w++)t=(e=r.targetLinks[w]).source.pointNumber+&quot;:&quot;+e.target.pointNumber,n.hasOwnProperty(t)||(n[t]=[]),n[t].push(e);var i=Object.keys(n);for(w=0;w&lt;i.length;w++){var o=n[t=i[w]],s=0,l={};for(T=0;T&lt;o.length;T++)l[(e=o[T]).label]||(l[e.label]=0),l[e.label]+=e.value,s+=e.value;for(T=0;T&lt;o.length;T++)(e=o[T]).flow={value:s,labelConcentration:l[e.label]/s,concentration:e.value/s,links:o},e.concentrationscale&amp;&amp;(e.color=a(e.concentrationscale(e.flow.labelConcentration)))}var c=0;for(w=0;w&lt;r.sourceLinks.length;w++)c+=r.sourceLinks[w].value;for(w=0;w&lt;r.sourceLinks.length;w++)(e=r.sourceLinks[w]).concentrationOut=e.value/c;var u=0;for(w=0;w&lt;r.targetLinks.length;w++)u+=r.targetLinks[w].value;for(w=0;w&lt;r.targetLinks.length;w++)(e=r.targetLinks[w]).concenrationIn=e.value/u}}(),s.node.x.length&amp;&amp;s.node.y.length){for(_=0;_&lt;Math.min(s.node.x.length,s.node.y.length,k.nodes.length);_++)if(s.node.x[_]&amp;&amp;s.node.y[_]){var C=[s.node.x[_]*g,s.node.y[_]*v];k.nodes[_].x0=C[0]-d/2,k.nodes[_].x1=C[0]+d/2;var L=k.nodes[_].y1-k.nodes[_].y0;k.nodes[_].y0=C[1]-L/2,k.nodes[_].y1=C[1]+L/2}if(&quot;snap&quot;===s.arrangement)!function(t){t.forEach((function(t){var e,r,n,i=0,a=t.length;for(t.sort((function(t,e){return t.y0-e.y0})),n=0;n&lt;a;++n)(e=t[n]).y0&gt;=i||(r=i-e.y0)&gt;1e-6&amp;&amp;(e.y0+=r,e.y1+=r),i=e.y1+p}))}(function(t){var e,r,n=t.map((function(t,e){return{x0:t.x0,index:e}})).sort((function(t,e){return t.x0-e.x0})),i=[],a=-1,o=-1/0;for(_=0;_&lt;n.length;_++){var s=t[n[_].index];s.x0&gt;o+d&amp;&amp;(a+=1,e=s.x0),o=s.x0,i[a]||(i[a]=[]),i[a].push(s),r=e-s.x0,s.x0+=r,s.x1+=r}return i}(y=k.nodes));i.update(k)}return{circular:b,key:r,trace:s,guid:f.randstr(),horizontal:h,width:g,height:v,nodePad:s.node.pad,nodeLineColor:s.node.line.color,nodeLineWidth:s.node.line.width,linkLineColor:s.link.line.color,linkLineWidth:s.link.line.width,valueFormat:s.valueformat,valueSuffix:s.valuesuffix,textFont:s.textfont,translateX:u.x[0]*t.width+t.margin.l,translateY:t.height-u.y[1]*t.height+t.margin.t,dragParallel:h?v:g,dragPerpendicular:h?g:v,arrangement:s.arrangement,sankey:i,graph:k,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}function b(t,e,r){var n=a(e.color),i=e.source.label+&quot;|&quot;+e.target.label+&quot;__&quot;+r;return e.trace=t.trace,e.curveNumber=t.trace.index,{circular:t.circular,key:i,traceId:t.key,pointNumber:e.pointNumber,link:e,tinyColorHue:o.tinyRGB(n),tinyColorAlpha:n.getAlpha(),linkPath:_,linkLineColor:t.linkLineColor,linkLineWidth:t.linkLineWidth,valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,parent:t,interactionState:t.interactionState,flow:e.flow}}function _(){return function(t){if(t.link.circular)return e=t.link,r=e.width/2,n=e.circularPathData,&quot;top&quot;===e.circularLinkType?&quot;M &quot;+n.targetX+&quot; &quot;+(n.targetY+r)+&quot; L&quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY+r)+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightSmallArcRadius+r)+&quot; 0 0 1 &quot;+(n.rightFullExtent-r)+&quot; &quot;+(n.targetY-n.rightSmallArcRadius)+&quot;L&quot;+(n.rightFullExtent-r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightLargeArcRadius+r)+&quot; 0 0 1 &quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftLargeArcRadius+r)+&quot; 0 0 1 &quot;+(n.leftFullExtent+r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;L&quot;+(n.leftFullExtent+r)+&quot; &quot;+(n.sourceY-n.leftSmallArcRadius)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftSmallArcRadius+r)+&quot; 0 0 1 &quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY-r)+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftSmallArcRadius-r)+&quot; 0 0 0 &quot;+(n.leftFullExtent-r)+&quot; &quot;+(n.sourceY-n.leftSmallArcRadius)+&quot;L&quot;+(n.leftFullExtent-r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftLargeArcRadius-r)+&quot; 0 0 0 &quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;L&quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightLargeArcRadius-r)+&quot; 0 0 0 &quot;+(n.rightFullExtent+r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;L&quot;+(n.rightFullExtent+r)+&quot; &quot;+(n.targetY-n.rightSmallArcRadius)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightSmallArcRadius-r)+&quot; 0 0 0 &quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY-r)+&quot;L&quot;+n.targetX+&quot; &quot;+(n.targetY-r)+&quot;Z&quot;:&quot;M &quot;+n.targetX+&quot; &quot;+(n.targetY-r)+&quot; L&quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY-r)+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightSmallArcRadius+r)+&quot; 0 0 0 &quot;+(n.rightFullExtent-r)+&quot; &quot;+(n.targetY+n.rightSmallArcRadius)+&quot;L&quot;+(n.rightFullExtent-r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightLargeArcRadius+r)+&quot; 0 0 0 &quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftLargeArcRadius+r)+&quot; 0 0 0 &quot;+(n.leftFullExtent+r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;L&quot;+(n.leftFullExtent+r)+&quot; &quot;+(n.sourceY+n.leftSmallArcRadius)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftSmallArcRadius+r)+&quot; 0 0 0 &quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY+r)+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftSmallArcRadius-r)+&quot; 0 0 1 &quot;+(n.leftFullExtent-r)+&quot; &quot;+(n.sourceY+n.leftSmallArcRadius)+&quot;L&quot;+(n.leftFullExtent-r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftLargeArcRadius-r)+&quot; 0 0 1 &quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;L&quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightLargeArcRadius-r)+&quot; 0 0 1 &quot;+(n.rightFullExtent+r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;L&quot;+(n.rightFullExtent+r)+&quot; &quot;+(n.targetY+n.rightSmallArcRadius)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightSmallArcRadius-r)+&quot; 0 0 1 &quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY+r)+&quot;L&quot;+n.targetX+&quot; &quot;+(n.targetY+r)+&quot;Z&quot;;var e,r,n,i=t.link.source.x1,a=t.link.target.x0,o=v(i,a),s=o(.5),l=o(.5),c=t.link.y0-t.link.width/2,u=t.link.y0+t.link.width/2,f=t.link.y1-t.link.width/2,h=t.link.y1+t.link.width/2;return&quot;M&quot;+i+&quot;,&quot;+c+&quot;C&quot;+s+&quot;,&quot;+c+&quot; &quot;+l+&quot;,&quot;+f+&quot; &quot;+a+&quot;,&quot;+f+&quot;L&quot;+a+&quot;,&quot;+h+&quot;C&quot;+l+&quot;,&quot;+h+&quot; &quot;+s+&quot;,&quot;+u+&quot; &quot;+i+&quot;,&quot;+u+&quot;Z&quot;}}function w(t,e){var r=a(e.color),i=n.nodePadAcross,s=t.nodePad/2;e.dx=e.x1-e.x0,e.dy=e.y1-e.y0;var l=e.dx,c=Math.max(.5,e.dy),u=&quot;node_&quot;+e.pointNumber;return e.group&amp;&amp;(u=f.randstr()),e.trace=t.trace,e.curveNumber=t.trace.index,{index:e.pointNumber,key:u,partOfGroup:e.partOfGroup||!1,group:e.group,traceId:t.key,trace:t.trace,node:e,nodePad:t.nodePad,nodeLineColor:t.nodeLineColor,nodeLineWidth:t.nodeLineWidth,textFont:t.textFont,size:t.horizontal?t.height:t.width,visibleWidth:Math.ceil(l),visibleHeight:c,zoneX:-i,zoneY:-s,zoneWidth:l+2*i,zoneHeight:c+2*s,labelY:t.horizontal?e.dy/2+1:e.dx/2+1,left:1===e.originalLayer,sizeAcross:t.width,forceLayouts:t.forceLayouts,horizontal:t.horizontal,darkBackground:r.getBrightness()&lt;=128,tinyColorHue:o.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,graph:t.graph,arrangement:t.arrangement,uniqueNodeLabelPathId:[t.guid,t.key,u].join(&quot;_&quot;),interactionState:t.interactionState,figure:t}}function T(t){t.attr(&quot;transform&quot;,(function(t){return h(t.node.x0.toFixed(3),t.node.y0.toFixed(3))}))}function k(t){t.call(T)}function M(t,e){t.call(k),e.attr(&quot;d&quot;,_())}function A(t){t.attr(&quot;width&quot;,(function(t){return t.node.x1-t.node.x0})).attr(&quot;height&quot;,(function(t){return t.visibleHeight}))}function S(t){return t.link.width&gt;1||t.linkLineWidth&gt;0}function E(t){return h(t.translateX,t.translateY)+(t.horizontal?&quot;matrix(1 0 0 1 0 0)&quot;:&quot;matrix(0 1 1 0 0 0)&quot;)}function C(t){return h(t.horizontal?0:t.labelY,t.horizontal?t.labelY:0)}function L(t){return i.svg.line()([[t.horizontal?t.left?-t.sizeAcross:t.visibleWidth+n.nodeTextOffsetHorizontal:n.nodeTextOffsetHorizontal,0],[t.horizontal?t.left?-n.nodeTextOffsetHorizontal:t.sizeAcross:t.visibleHeight-n.nodeTextOffsetHorizontal,0]])}function I(t){return t.horizontal?&quot;matrix(1 0 0 1 0 0)&quot;:&quot;matrix(0 1 1 0 0 0)&quot;}function P(t){return t.horizontal?&quot;scale(1 1)&quot;:&quot;scale(-1 1)&quot;}function z(t){return t.darkBackground&amp;&amp;!t.horizontal?&quot;rgb(255,255,255)&quot;:&quot;rgb(0,0,0)&quot;}function O(t){return t.horizontal&amp;&amp;t.left?&quot;100%&quot;:&quot;0%&quot;}function D(t,e,r){t.on(&quot;.basic&quot;,null).on(&quot;mouseover.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.hover(this,t,e),t.interactionState.hovered=[this,t])})).on(&quot;mousemove.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.follow(this,t),t.interactionState.hovered=[this,t])})).on(&quot;mouseout.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.unhover(this,t,e),t.interactionState.hovered=!1)})).on(&quot;click.basic&quot;,(function(t){t.interactionState.hovered&amp;&amp;(r.unhover(this,t,e),t.interactionState.hovered=!1),t.interactionState.dragInProgress||t.partOfGroup||r.select(this,t,e)}))}function R(t,e,r,a){var o=i.behavior.drag().origin((function(t){return{x:t.node.x0+t.visibleWidth/2,y:t.node.y0+t.visibleHeight/2}})).on(&quot;dragstart&quot;,(function(i){if(&quot;fixed&quot;!==i.arrangement&amp;&amp;(f.ensureSingle(a._fullLayout._infolayer,&quot;g&quot;,&quot;dragcover&quot;,(function(t){a._fullLayout._dragCover=t})),f.raiseToTop(this),i.interactionState.dragInProgress=i.node,B(i.node),i.interactionState.hovered&amp;&amp;(r.nodeEvents.unhover.apply(0,i.interactionState.hovered),i.interactionState.hovered=!1),&quot;snap&quot;===i.arrangement)){var o=i.traceId+&quot;|&quot;+i.key;i.forceLayouts[o]?i.forceLayouts[o].alpha(1):function(t,e,r,i){!function(t){for(var e=0;e&lt;t.length;e++)t[e].y=(t[e].y0+t[e].y1)/2,t[e].x=(t[e].x0+t[e].x1)/2}(r.graph.nodes);var a=r.graph.nodes.filter((function(t){return t.originalX===r.node.originalX})).filter((function(t){return!t.partOfGroup}));r.forceLayouts[e]=u.forceSimulation(a).alphaDecay(0).force(&quot;collide&quot;,u.forceCollide().radius((function(t){return t.dy/2+r.nodePad/2})).strength(1).iterations(n.forceIterations)).force(&quot;constrain&quot;,function(t,e,r,i){return function(){for(var t=0,a=0;a&lt;r.length;a++){var o=r[a];o===i.interactionState.dragInProgress?(o.x=o.lastDraggedX,o.y=o.lastDraggedY):(o.vx=(o.originalX-o.x)/n.forceTicksPerFrame,o.y=Math.min(i.size-o.dy/2,Math.max(o.dy/2,o.y))),t=Math.max(t,Math.abs(o.vx),Math.abs(o.vy))}!i.interactionState.dragInProgress&amp;&amp;t&lt;.1&amp;&amp;i.forceLayouts[e].alpha()&gt;0&amp;&amp;i.forceLayouts[e].alpha(0)}}(0,e,a,r)).stop()}(0,o,i),function(t,e,r,i,a){window.requestAnimationFrame((function o(){var s;for(s=0;s&lt;n.forceTicksPerFrame;s++)r.forceLayouts[i].tick();if(function(t){for(var e=0;e&lt;t.length;e++)t[e].y0=t[e].y-t[e].dy/2,t[e].y1=t[e].y0+t[e].dy,t[e].x0=t[e].x-t[e].dx/2,t[e].x1=t[e].x0+t[e].dx}(r.graph.nodes),r.sankey.update(r.graph),M(t.filter(N(r)),e),r.forceLayouts[i].alpha()&gt;0)window.requestAnimationFrame(o);else{var l=r.node.originalX;r.node.x0=l-r.visibleWidth/2,r.node.x1=l+r.visibleWidth/2,F(r,a)}}))}(t,e,i,o,a)}})).on(&quot;drag&quot;,(function(r){if(&quot;fixed&quot;!==r.arrangement){var n=i.event.x,a=i.event.y;&quot;snap&quot;===r.arrangement?(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2,r.node.y0=a-r.visibleHeight/2,r.node.y1=a+r.visibleHeight/2):(&quot;freeform&quot;===r.arrangement&amp;&amp;(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2),a=Math.max(0,Math.min(r.size-r.visibleHeight/2,a)),r.node.y0=a-r.visibleHeight/2,r.node.y1=a+r.visibleHeight/2),B(r.node),&quot;snap&quot;!==r.arrangement&amp;&amp;(r.sankey.update(r.graph),M(t.filter(N(r)),e))}})).on(&quot;dragend&quot;,(function(t){if(&quot;fixed&quot;!==t.arrangement){t.interactionState.dragInProgress=!1;for(var e=0;e&lt;t.node.childrenNodes.length;e++)t.node.childrenNodes[e].x=t.node.x,t.node.childrenNodes[e].y=t.node.y;&quot;snap&quot;!==t.arrangement&amp;&amp;F(t,a)}}));t.on(&quot;.drag&quot;,null).call(o)}function F(t,e){for(var r=[],n=[],i=0;i&lt;t.graph.nodes.length;i++){var a=(t.graph.nodes[i].x0+t.graph.nodes[i].x1)/2,o=(t.graph.nodes[i].y0+t.graph.nodes[i].y1)/2;r.push(a/t.figure.width),n.push(o/t.figure.height)}y.call(&quot;_guiRestyle&quot;,e,{&quot;node.x&quot;:[r],&quot;node.y&quot;:[n]},t.trace.index).then((function(){e._fullLayout._dragCover&amp;&amp;e._fullLayout._dragCover.remove()}))}function B(t){t.lastDraggedX=t.x0+t.dx/2,t.lastDraggedY=t.y0+t.dy/2}function N(t){return function(e){return e.node.originalX===t.node.originalX}}e.exports=function(t,e,r,l,c){var u=!1;f.ensureSingle(t._fullLayout._infolayer,&quot;g&quot;,&quot;first-render&quot;,(function(){u=!0}));var h=t._fullLayout._dragCover,p=r.filter((function(t){return m(t).trace.visible})).map(x.bind(null,l)),v=e.selectAll(&quot;.&quot;+n.cn.sankey).data(p,d);v.exit().remove(),v.enter().append(&quot;g&quot;).classed(n.cn.sankey,!0).style(&quot;box-sizing&quot;,&quot;content-box&quot;).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;left&quot;,0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;).style(&quot;pointer-events&quot;,&quot;auto&quot;).attr(&quot;transform&quot;,E),v.each((function(e,r){t._fullData[r]._sankey=e;var n=&quot;bgsankey-&quot;+e.trace.uid+&quot;-&quot;+r;f.ensureSingle(t._fullLayout._draggers,&quot;rect&quot;,n),t._fullData[r]._bgRect=i.select(&quot;.&quot;+n),t._fullData[r]._bgRect.style(&quot;pointer-events&quot;,&quot;all&quot;).attr(&quot;width&quot;,e.width).attr(&quot;height&quot;,e.height).attr(&quot;x&quot;,e.translateX).attr(&quot;y&quot;,e.translateY).classed(&quot;bgsankey&quot;,!0).style({fill:&quot;transparent&quot;,&quot;stroke-width&quot;:0})})),v.transition().ease(n.ease).duration(n.duration).attr(&quot;transform&quot;,E);var y=v.selectAll(&quot;.&quot;+n.cn.sankeyLinks).data(g,d);y.enter().append(&quot;g&quot;).classed(n.cn.sankeyLinks,!0).style(&quot;fill&quot;,&quot;none&quot;);var k=y.selectAll(&quot;.&quot;+n.cn.sankeyLink).data((function(t){return t.graph.links.filter((function(t){return t.value})).map(b.bind(null,t))}),d);k.enter().append(&quot;path&quot;).classed(n.cn.sankeyLink,!0).call(D,v,c.linkEvents),k.style(&quot;stroke&quot;,(function(t){return S(t)?o.tinyRGB(a(t.linkLineColor)):t.tinyColorHue})).style(&quot;stroke-opacity&quot;,(function(t){return S(t)?o.opacity(t.linkLineColor):t.tinyColorAlpha})).style(&quot;fill&quot;,(function(t){return t.tinyColorHue})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})).style(&quot;stroke-width&quot;,(function(t){return S(t)?t.linkLineWidth:1})).attr(&quot;d&quot;,_()),k.style(&quot;opacity&quot;,(function(){return t._context.staticPlot||u||h?1:0})).transition().ease(n.ease).duration(n.duration).style(&quot;opacity&quot;,1),k.exit().transition().ease(n.ease).duration(n.duration).style(&quot;opacity&quot;,0).remove();var M=v.selectAll(&quot;.&quot;+n.cn.sankeyNodeSet).data(g,d);M.enter().append(&quot;g&quot;).classed(n.cn.sankeyNodeSet,!0),M.style(&quot;cursor&quot;,(function(t){switch(t.arrangement){case&quot;fixed&quot;:return&quot;default&quot;;case&quot;perpendicular&quot;:return&quot;ns-resize&quot;;default:return&quot;move&quot;}}));var F=M.selectAll(&quot;.&quot;+n.cn.sankeyNode).data((function(t){var e=t.graph.nodes;return function(t){var e,r=[];for(e=0;e&lt;t.length;e++)t[e].originalX=(t[e].x0+t[e].x1)/2,t[e].originalY=(t[e].y0+t[e].y1)/2,-1===r.indexOf(t[e].originalX)&amp;&amp;r.push(t[e].originalX);for(r.sort((function(t,e){return t-e})),e=0;e&lt;t.length;e++)t[e].originalLayerIndex=r.indexOf(t[e].originalX),t[e].originalLayer=t[e].originalLayerIndex/(r.length-1)}(e),e.map(w.bind(null,t))}),d);F.enter().append(&quot;g&quot;).classed(n.cn.sankeyNode,!0).call(T).style(&quot;opacity&quot;,(function(e){return!t._context.staticPlot&amp;&amp;!u||e.partOfGroup?0:1})),F.call(D,v,c.nodeEvents).call(R,k,c,t),F.transition().ease(n.ease).duration(n.duration).call(T).style(&quot;opacity&quot;,(function(t){return t.partOfGroup?0:1})),F.exit().transition().ease(n.ease).duration(n.duration).style(&quot;opacity&quot;,0).remove();var B=F.selectAll(&quot;.&quot;+n.cn.nodeRect).data(g);B.enter().append(&quot;rect&quot;).classed(n.cn.nodeRect,!0).call(A),B.style(&quot;stroke-width&quot;,(function(t){return t.nodeLineWidth})).style(&quot;stroke&quot;,(function(t){return o.tinyRGB(a(t.nodeLineColor))})).style(&quot;stroke-opacity&quot;,(function(t){return o.opacity(t.nodeLineColor)})).style(&quot;fill&quot;,(function(t){return t.tinyColorHue})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),B.transition().ease(n.ease).duration(n.duration).call(A);var N=F.selectAll(&quot;.&quot;+n.cn.nodeCapture).data(g);N.enter().append(&quot;rect&quot;).classed(n.cn.nodeCapture,!0).style(&quot;fill-opacity&quot;,0),N.attr(&quot;x&quot;,(function(t){return t.zoneX})).attr(&quot;y&quot;,(function(t){return t.zoneY})).attr(&quot;width&quot;,(function(t){return t.zoneWidth})).attr(&quot;height&quot;,(function(t){return t.zoneHeight}));var j=F.selectAll(&quot;.&quot;+n.cn.nodeCentered).data(g);j.enter().append(&quot;g&quot;).classed(n.cn.nodeCentered,!0).attr(&quot;transform&quot;,C),j.transition().ease(n.ease).duration(n.duration).attr(&quot;transform&quot;,C);var U=j.selectAll(&quot;.&quot;+n.cn.nodeLabelGuide).data(g);U.enter().append(&quot;path&quot;).classed(n.cn.nodeLabelGuide,!0).attr(&quot;id&quot;,(function(t){return t.uniqueNodeLabelPathId})).attr(&quot;d&quot;,L).attr(&quot;transform&quot;,I),U.transition().ease(n.ease).duration(n.duration).attr(&quot;d&quot;,L).attr(&quot;transform&quot;,I);var V=j.selectAll(&quot;.&quot;+n.cn.nodeLabel).data(g);V.enter().append(&quot;text&quot;).classed(n.cn.nodeLabel,!0).attr(&quot;transform&quot;,P).style(&quot;cursor&quot;,&quot;default&quot;).style(&quot;fill&quot;,&quot;black&quot;),V.style(&quot;text-shadow&quot;,(function(t){return t.horizontal?&quot;-1px 1px 1px #fff, 1px 1px 1px #fff, 1px -1px 1px #fff, -1px -1px 1px #fff&quot;:&quot;none&quot;})).each((function(t){s.font(V,t.textFont)})),V.transition().ease(n.ease).duration(n.duration).attr(&quot;transform&quot;,P);var q=V.selectAll(&quot;.&quot;+n.cn.nodeLabelTextPath).data(g);q.enter().append(&quot;textPath&quot;).classed(n.cn.nodeLabelTextPath,!0).attr(&quot;alignment-baseline&quot;,&quot;middle&quot;).attr(&quot;xlink:href&quot;,(function(t){return&quot;#&quot;+t.uniqueNodeLabelPathId})).attr(&quot;startOffset&quot;,O).style(&quot;fill&quot;,z),q.text((function(t){return t.horizontal||t.node.dy&gt;5?t.node.label:&quot;&quot;})).attr(&quot;text-anchor&quot;,(function(t){return t.horizontal&amp;&amp;t.left?&quot;end&quot;:&quot;start&quot;})),q.transition().ease(n.ease).duration(n.duration).attr(&quot;startOffset&quot;,O).style(&quot;fill&quot;,z)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;../../registry&quot;:911,&quot;./constants&quot;:1180,&quot;@plotly/d3-sankey&quot;:56,&quot;@plotly/d3-sankey-circular&quot;:55,d3:169,&quot;d3-force&quot;:160,&quot;d3-interpolate&quot;:162,tinycolor2:576}],1185:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=[],n=t.cd[0].trace,i=n._sankey.graph.nodes,a=0;a&lt;i.length;a++){var o=i[a];if(!o.partOfGroup){var s=[(o.x0+o.x1)/2,(o.y0+o.y1)/2];&quot;v&quot;===n.orientation&amp;&amp;s.reverse(),e&amp;&amp;e.contains(s,!1,a,t)&amp;&amp;r.push({pointNumber:o.pointNumber})}}return r}},{}],1186:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.texttemplate,t,&quot;txt&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;),n.mergeArray(e.customdata,t,&quot;data&quot;),n.mergeArray(e.textposition,t,&quot;tp&quot;),e.textfont&amp;&amp;(n.mergeArrayCastPositive(e.textfont.size,t,&quot;ts&quot;),n.mergeArray(e.textfont.color,t,&quot;tc&quot;),n.mergeArray(e.textfont.family,t,&quot;tf&quot;));var i=e.marker;if(i){n.mergeArrayCastPositive(i.size,t,&quot;ms&quot;),n.mergeArrayCastPositive(i.opacity,t,&quot;mo&quot;),n.mergeArray(i.symbol,t,&quot;mx&quot;),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;i.line&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;));var o=i.gradient;o&amp;&amp;&quot;none&quot;!==o.type&amp;&amp;(n.mergeArray(o.type,t,&quot;mgt&quot;),n.mergeArray(o.color,t,&quot;mgc&quot;))}}},{&quot;../../lib&quot;:778}],1187:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../components/drawing/attributes&quot;).dash,l=t(&quot;../../components/drawing&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},x0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},dx:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;,anim:!0},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},y0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},dy:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;,anim:!0},xperiod:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},yperiod:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},xperiod0:{valType:&quot;any&quot;,editType:&quot;calc&quot;},yperiod0:{valType:&quot;any&quot;,editType:&quot;calc&quot;},xperiodalignment:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;middle&quot;,&quot;end&quot;],dflt:&quot;middle&quot;,editType:&quot;calc&quot;},yperiodalignment:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;middle&quot;,&quot;end&quot;],dflt:&quot;middle&quot;,editType:&quot;calc&quot;},stackgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc&quot;},groupnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;fraction&quot;,&quot;percent&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},stackgaps:{valType:&quot;enumerated&quot;,values:[&quot;infer zero&quot;,&quot;interpolate&quot;],dflt:&quot;infer zero&quot;,editType:&quot;calc&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},texttemplate:n({},{}),hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},mode:{valType:&quot;flaglist&quot;,flags:[&quot;lines&quot;,&quot;markers&quot;,&quot;text&quot;],extras:[&quot;none&quot;],editType:&quot;calc&quot;},hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;points&quot;,&quot;fills&quot;],editType:&quot;style&quot;},hovertemplate:i({},{keys:c.eventDataKeys}),line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;,anim:!0},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;,anim:!0},shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;spline&quot;,&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},smoothing:{valType:&quot;number&quot;,min:0,max:1.3,dflt:1,editType:&quot;plot&quot;},dash:u({},s,{editType:&quot;style&quot;}),simplify:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},connectgaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},cliponaxis:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},fill:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;tozeroy&quot;,&quot;tozerox&quot;,&quot;tonexty&quot;,&quot;tonextx&quot;,&quot;toself&quot;,&quot;tonext&quot;],editType:&quot;calc&quot;},fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;,anim:!0},marker:u({symbol:{valType:&quot;enumerated&quot;,values:l.symbolList,dflt:&quot;circle&quot;,arrayOk:!0,editType:&quot;style&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,arrayOk:!0,editType:&quot;style&quot;,anim:!0},size:{valType:&quot;number&quot;,min:0,dflt:6,arrayOk:!0,editType:&quot;calc&quot;,anim:!0},maxdisplayed:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},sizeref:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},sizemin:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},sizemode:{valType:&quot;enumerated&quot;,values:[&quot;diameter&quot;,&quot;area&quot;],dflt:&quot;diameter&quot;,editType:&quot;calc&quot;},line:u({width:{valType:&quot;number&quot;,min:0,arrayOk:!0,editType:&quot;style&quot;,anim:!0},editType:&quot;calc&quot;},a(&quot;marker.line&quot;,{anim:!0})),gradient:{type:{valType:&quot;enumerated&quot;,values:[&quot;radial&quot;,&quot;horizontal&quot;,&quot;vertical&quot;,&quot;none&quot;],arrayOk:!0,dflt:&quot;none&quot;,editType:&quot;calc&quot;},color:{valType:&quot;color&quot;,arrayOk:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},a(&quot;marker&quot;,{anim:!0})),selected:{marker:{opacity:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},size:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},textfont:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;},unselected:{marker:{opacity:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},size:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},textfont:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;},textposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle left&quot;,&quot;middle center&quot;,&quot;middle right&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],dflt:&quot;middle center&quot;,arrayOk:!0,editType:&quot;calc&quot;},textfont:o({editType:&quot;calc&quot;,colorEditType:&quot;style&quot;,arrayOk:!0}),r:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},t:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;}}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing&quot;:665,&quot;../../components/drawing/attributes&quot;:664,&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906,&quot;./constants&quot;:1191}],1188:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=t(&quot;./subtypes&quot;),c=t(&quot;./colorscale_calc&quot;),u=t(&quot;./arrays_to_calcdata&quot;),f=t(&quot;./calc_selection&quot;);function h(t,e,r,n,i,o,s){var c=e._length,u=t._fullLayout,f=r._id,h=n._id,p=u._firstScatter[g(e)]===e.uid,d=(m(e,u,r,n)||{}).orientation,v=e.fill;r._minDtick=0,n._minDtick=0;var y={padded:!0},x={padded:!0};s&amp;&amp;(y.ppad=x.ppad=s);var b=c&lt;2||i[0]!==i[c-1]||o[0]!==o[c-1];b&amp;&amp;(&quot;tozerox&quot;===v||&quot;tonextx&quot;===v&amp;&amp;(p||&quot;h&quot;===d))?y.tozero=!0:(e.error_y||{}).visible||&quot;tonexty&quot;!==v&amp;&amp;&quot;tozeroy&quot;!==v&amp;&amp;(l.hasMarkers(e)||l.hasText(e))||(y.padded=!1,y.ppad=0),b&amp;&amp;(&quot;tozeroy&quot;===v||&quot;tonexty&quot;===v&amp;&amp;(p||&quot;v&quot;===d))?x.tozero=!0:&quot;tonextx&quot;!==v&amp;&amp;&quot;tozerox&quot;!==v||(x.padded=!1),f&amp;&amp;(e._extremes[f]=a.findExtremes(r,i,y)),h&amp;&amp;(e._extremes[h]=a.findExtremes(n,o,x))}function p(t,e){if(l.hasMarkers(t)){var r,n=t.marker,o=1.6*(t.marker.sizeref||1);if(r=&quot;area&quot;===t.marker.sizemode?function(t){return Math.max(Math.sqrt((t||0)/o),3)}:function(t){return Math.max((t||0)/o,3)},i.isArrayOrTypedArray(n.size)){var s={type:&quot;linear&quot;};a.setConvert(s);for(var c=s.makeCalcdata(t.marker,&quot;size&quot;),u=new Array(e),f=0;f&lt;e;f++)u[f]=r(c[f]);return u}return r(n.size)}}function d(t,e){var r=g(e),n=t._firstScatter;n[r]||(n[r]=e.uid)}function g(t){var e=t.stackgroup;return t.xaxis+t.yaxis+t.type+(e?&quot;-&quot;+e:&quot;&quot;)}function m(t,e,r,n){var i=t.stackgroup;if(i){var a=e._scatterStackOpts[r._id+n._id][i],o=&quot;v&quot;===a.orientation?n:r;return&quot;linear&quot;===o.type||&quot;log&quot;===o.type?a:void 0}}e.exports={calc:function(t,e){var r,l,g,v,y,x,b=t._fullLayout,_=a.getFromId(t,e.xaxis||&quot;x&quot;),w=a.getFromId(t,e.yaxis||&quot;y&quot;),T=_.makeCalcdata(e,&quot;x&quot;),k=w.makeCalcdata(e,&quot;y&quot;),M=o(e,_,&quot;x&quot;,T),A=o(e,w,&quot;y&quot;,k),S=e._length,E=new Array(S),C=e.ids,L=m(e,b,_,w),I=!1;d(b,e);var P,z=&quot;x&quot;,O=&quot;y&quot;;L?(i.pushUnique(L.traceIndices,e._expandedIndex),(r=&quot;v&quot;===L.orientation)?(O=&quot;s&quot;,P=&quot;x&quot;):(z=&quot;s&quot;,P=&quot;y&quot;),y=&quot;interpolate&quot;===L.stackgaps):h(t,e,_,w,M,A,p(e,S));var D=!!e.xperiodalignment,R=!!e.yperiodalignment;for(l=0;l&lt;S;l++){var F=E[l]={},B=n(M[l]),N=n(A[l]);B&amp;&amp;N?(F[z]=M[l],F[O]=A[l],D&amp;&amp;(F.orig_x=T[l]),R&amp;&amp;(F.orig_y=k[l])):L&amp;&amp;(r?B:N)?(F[P]=r?M[l]:A[l],F.gap=!0,y?(F.s=s,I=!0):F.s=0):F[z]=F[O]=s,C&amp;&amp;(F.id=String(C[l]))}if(u(E,e),c(t,e),f(E,e),L){for(l=0;l&lt;E.length;)E[l][P]===s?E.splice(l,1):l++;if(i.sort(E,(function(t,e){return t[P]-e[P]||t.i-e.i})),I){for(l=0;l&lt;E.length-1&amp;&amp;E[l].gap;)l++;for((x=E[l].s)||(x=E[l].s=0),g=0;g&lt;l;g++)E[g].s=x;for(v=E.length-1;v&gt;l&amp;&amp;E[v].gap;)v--;for(x=E[v].s,g=E.length-1;g&gt;v;g--)E[g].s=x;for(;l&lt;v;)if(E[++l].gap){for(g=l+1;E[g].gap;)g++;for(var j=E[l-1][P],U=E[l-1].s,V=(E[g].s-U)/(E[g][P]-j);l&lt;g;)E[l].s=U+(E[l][P]-j)*V,l++}}}return E},calcMarkerSize:p,calcAxisExpansion:h,setFirstScatter:d,getStackOpts:m}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;./arrays_to_calcdata&quot;:1186,&quot;./calc_selection&quot;:1189,&quot;./colorscale_calc&quot;:1190,&quot;./subtypes&quot;:1212,&quot;fast-isnumeric&quot;:241}],1189:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){n.isArrayOrTypedArray(e.selectedpoints)&amp;&amp;n.tagSelected(t,e)}},{&quot;../../lib&quot;:778}],1190:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,i=t(&quot;../../components/colorscale/calc&quot;),a=t(&quot;./subtypes&quot;);e.exports=function(t,e){a.hasLines(e)&amp;&amp;n(e,&quot;line&quot;)&amp;&amp;i(t,e,{vals:e.line.color,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;}),a.hasMarkers(e)&amp;&amp;(n(e,&quot;marker&quot;)&amp;&amp;i(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),n(e,&quot;marker.line&quot;)&amp;&amp;i(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}))}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;./subtypes&quot;:1212}],1191:[function(t,e,r){&quot;use strict&quot;;e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},{}],1192:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./calc&quot;);function i(t,e,r,n,i,a,o){i[n]=!0;var s={i:null,gap:!0,s:0};if(s[o]=r,t.splice(e,0,s),e&amp;&amp;r===t[e-1][o]){var l=t[e-1];s.s=l.s,s.i=l.i,s.gap=l.gap}else a&amp;&amp;(s.s=function(t,e,r,n){var i=t[e-1],a=t[e+1];return a?i?i.s+(a.s-i.s)*(r-i[n])/(a[n]-i[n]):a.s:i.s}(t,e,r,o));e||(t[0].t=t[1].t,t[0].trace=t[1].trace,delete t[1].t,delete t[1].trace)}e.exports=function(t,e){var r=e.xaxis,a=e.yaxis,o=r._id+a._id,s=t._fullLayout._scatterStackOpts[o];if(s){var l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T=t.calcdata;for(var k in s){var M=(v=s[k]).traceIndices;if(M.length){for(y=&quot;interpolate&quot;===v.stackgaps,x=v.groupnorm,&quot;v&quot;===v.orientation?(b=&quot;x&quot;,_=&quot;y&quot;):(b=&quot;y&quot;,_=&quot;x&quot;),w=new Array(M.length),l=0;l&lt;w.length;l++)w[l]=!1;p=T[M[0]];var A=new Array(p.length);for(l=0;l&lt;p.length;l++)A[l]=p[l][b];for(l=1;l&lt;M.length;l++){for(h=T[M[l]],c=u=0;c&lt;h.length;c++){for(d=h[c][b];d&gt;A[u]&amp;&amp;u&lt;A.length;u++)i(h,c,A[u],l,w,y,b),c++;if(d!==A[u]){for(f=0;f&lt;l;f++)i(T[M[f]],u,d,f,w,y,b);A.splice(u,0,d)}u++}for(;u&lt;A.length;u++)i(h,c,A[u],l,w,y,b),c++}var S=A.length;for(c=0;c&lt;p.length;c++){for(g=p[c][_]=p[c].s,l=1;l&lt;M.length;l++)(h=T[M[l]])[0].trace._rawLength=h[0].trace._length,h[0].trace._length=S,g+=h[c].s,h[c][_]=g;if(x)for(m=(&quot;fraction&quot;===x?g:g/100)||1,l=0;l&lt;M.length;l++){var E=T[M[l]][c];E[_]/=m,E.sNorm=E.s/m}}for(l=0;l&lt;M.length;l++){var C=(h=T[M[l]])[0].trace,L=n.calcMarkerSize(C,C._rawLength),I=Array.isArray(L);if(L&amp;&amp;w[l]||I){var P=L;for(L=new Array(S),c=0;c&lt;S;c++)L[c]=h[c].gap?0:I?P[h[c].i]:P}var z=new Array(S),O=new Array(S);for(c=0;c&lt;S;c++)z[c]=h[c].x,O[c]=h[c].y;n.calcAxisExpansion(t,C,r,a,z,O,L),h[0].t.orientation=v.orientation}}}}}},{&quot;./calc&quot;:1188}],1193:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=0;e&lt;t.length;e++){var r=t[e];if(&quot;scatter&quot;===r.type){var n=r.fill;if(&quot;none&quot;!==n&amp;&amp;&quot;toself&quot;!==n&amp;&amp;(r.opacity=void 0,&quot;tonexty&quot;===n||&quot;tonextx&quot;===n))for(var i=e-1;i&gt;=0;i--){var a=t[i];if(&quot;scatter&quot;===a.type&amp;&amp;a.xaxis===r.xaxis&amp;&amp;a.yaxis===r.yaxis){a.opacity=void 0;break}}}}}},{}],1194:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;),s=t(&quot;./subtypes&quot;),l=t(&quot;./xy_defaults&quot;),c=t(&quot;./period_defaults&quot;),u=t(&quot;./stack_defaults&quot;),f=t(&quot;./marker_defaults&quot;),h=t(&quot;./line_defaults&quot;),p=t(&quot;./line_shape_defaults&quot;),d=t(&quot;./text_defaults&quot;),g=t(&quot;./fillcolor_defaults&quot;);e.exports=function(t,e,r,m){function v(r,i){return n.coerce(t,e,a,r,i)}var y=l(t,e,m,v);if(y||(e.visible=!1),e.visible){c(t,e,m,v);var x=u(t,e,m,v),b=!x&amp;&amp;y&lt;o.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;;v(&quot;text&quot;),v(&quot;hovertext&quot;),v(&quot;mode&quot;,b),s.hasLines(e)&amp;&amp;(h(t,e,r,m,v),p(t,e,v),v(&quot;connectgaps&quot;),v(&quot;line.simplify&quot;)),s.hasMarkers(e)&amp;&amp;f(t,e,r,m,v,{gradient:!0}),s.hasText(e)&amp;&amp;(v(&quot;texttemplate&quot;),d(t,e,m,v));var _=[];(s.hasMarkers(e)||s.hasText(e))&amp;&amp;(v(&quot;cliponaxis&quot;),v(&quot;marker.maxdisplayed&quot;),_.push(&quot;points&quot;)),v(&quot;fill&quot;,x?x.fillDflt:&quot;none&quot;),&quot;none&quot;!==e.fill&amp;&amp;(g(t,e,r,v),s.hasLines(e)||p(t,e,v));var w=(e.line||{}).color,T=(e.marker||{}).color;&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||_.push(&quot;fills&quot;),v(&quot;hoveron&quot;,_.join(&quot;+&quot;)||&quot;points&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;v(&quot;hovertemplate&quot;);var k=i.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);k(t,e,w||T||r,{axis:&quot;y&quot;}),k(t,e,w||T||r,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,v)}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1187,&quot;./constants&quot;:1191,&quot;./fillcolor_defaults&quot;:1195,&quot;./line_defaults&quot;:1200,&quot;./line_shape_defaults&quot;:1202,&quot;./marker_defaults&quot;:1206,&quot;./period_defaults&quot;:1207,&quot;./stack_defaults&quot;:1210,&quot;./subtypes&quot;:1212,&quot;./text_defaults&quot;:1213,&quot;./xy_defaults&quot;:1214}],1195:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a){var o=!1;if(e.marker){var s=e.marker.color,l=(e.marker.line||{}).color;s&amp;&amp;!i(s)?o=s:l&amp;&amp;!i(l)&amp;&amp;(o=l)}a(&quot;fillcolor&quot;,n.addOpacity((e.line||{}).color||o||r,.5))}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778}],1196:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a={_fullLayout:r},o=n.getFromTrace(a,e,&quot;x&quot;),s=n.getFromTrace(a,e,&quot;y&quot;);return i.xLabel=n.tickText(o,t.x,!0).text,i.yLabel=n.tickText(s,t.y,!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1197:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;./subtypes&quot;);e.exports=function(t,e){var r,a;if(&quot;lines&quot;===t.mode)return(r=t.line.color)&amp;&amp;n.opacity(r)?r:t.fillcolor;if(&quot;none&quot;===t.mode)return t.fill?t.fillcolor:&quot;&quot;;var o=e.mcc||(t.marker||{}).color,s=e.mlcc||((t.marker||{}).line||{}).color;return(a=o&amp;&amp;n.opacity(o)?o:s&amp;&amp;n.opacity(s)&amp;&amp;(e.mlw||((t.marker||{}).line||{}).width)?s:&quot;&quot;)?n.opacity(a)&lt;.3?n.addOpacity(a,.3):a:(r=(t.line||{}).color)&amp;&amp;n.opacity(r)&amp;&amp;i.hasLines(t)&amp;&amp;t.line.width?r:t.fillcolor}},{&quot;../../components/color&quot;:643,&quot;./subtypes&quot;:1212}],1198:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/fx&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;./get_trace_color&quot;),s=t(&quot;../../components/color&quot;),l=n.fillText;e.exports=function(t,e,r,c){var u=t.cd,f=u[0].trace,h=t.xa,p=t.ya,d=h.c2p(e),g=p.c2p(r),m=[d,g],v=f.hoveron||&quot;&quot;,y=-1!==f.mode.indexOf(&quot;markers&quot;)?3:.5;if(-1!==v.indexOf(&quot;points&quot;)){var x=function(t){var e=Math.max(y,t.mrc||0),r=h.c2p(t.x)-d,n=p.c2p(t.y)-g;return Math.max(Math.sqrt(r*r+n*n)-e,1-y/e)},b=i.getDistanceFunction(c,(function(t){var e=Math.max(3,t.mrc||0),r=1-1/e,n=Math.abs(h.c2p(t.x)-d);return n&lt;e?r*n/e:n-e+r}),(function(t){var e=Math.max(3,t.mrc||0),r=1-1/e,n=Math.abs(p.c2p(t.y)-g);return n&lt;e?r*n/e:n-e+r}),x);if(i.getClosest(u,b,t),!1!==t.index){var _=u[t.index],w=h.c2p(_.x,!0),T=p.c2p(_.y,!0),k=_.mrc||1;t.index=_.i;var M=u[0].t.orientation,A=M&amp;&amp;(_.sNorm||_.s),S=&quot;h&quot;===M?A:void 0!==_.orig_x?_.orig_x:_.x,E=&quot;v&quot;===M?A:void 0!==_.orig_y?_.orig_y:_.y;return n.extendFlat(t,{color:o(f,_),x0:w-k,x1:w+k,xLabelVal:S,y0:T-k,y1:T+k,yLabelVal:E,spikeDistance:x(_),hovertemplate:f.hovertemplate}),l(_,f,t),a.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(_,f,t),[t]}}if(-1!==v.indexOf(&quot;fills&quot;)&amp;&amp;f._polygons){var C,L,I,P,z,O,D,R,F,B=f._polygons,N=[],j=!1,U=1/0,V=-1/0,q=1/0,H=-1/0;for(C=0;C&lt;B.length;C++)(I=B[C]).contains(m)&amp;&amp;(j=!j,N.push(I),q=Math.min(q,I.ymin),H=Math.max(H,I.ymax));if(j){var G=((q=Math.max(q,0))+(H=Math.min(H,p._length)))/2;for(C=0;C&lt;N.length;C++)for(P=N[C].pts,L=1;L&lt;P.length;L++)(R=P[L-1][1])&gt;G!=(F=P[L][1])&gt;=G&amp;&amp;(O=P[L-1][0],D=P[L][0],F-R&amp;&amp;(z=O+(D-O)*(G-R)/(F-R),U=Math.min(U,z),V=Math.max(V,z)));U=Math.max(U,0),V=Math.min(V,h._length);var Y=s.defaultLine;return s.opacity(f.fillcolor)?Y=f.fillcolor:s.opacity((f.line||{}).color)&amp;&amp;(Y=f.line.color),n.extendFlat(t,{distance:t.maxHoverDistance,x0:U,x1:V,y0:G,y1:G,color:Y,hovertemplate:!1}),delete t.index,f.text&amp;&amp;!Array.isArray(f.text)?t.text=String(f.text):t.text=f.name,[t]}}}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./get_trace_color&quot;:1197}],1199:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./subtypes&quot;);e.exports={hasLines:n.hasLines,hasMarkers:n.hasMarkers,hasText:n.hasText,isBubble:n.isBubble,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./cross_trace_calc&quot;),arraysToCalcdata:t(&quot;./arrays_to_calcdata&quot;),plot:t(&quot;./plot&quot;),colorbar:t(&quot;./marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;./select&quot;),animatable:!0,moduleType:&quot;trace&quot;,name:&quot;scatter&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./arrays_to_calcdata&quot;:1186,&quot;./attributes&quot;:1187,&quot;./calc&quot;:1188,&quot;./cross_trace_calc&quot;:1192,&quot;./cross_trace_defaults&quot;:1193,&quot;./defaults&quot;:1194,&quot;./format_labels&quot;:1196,&quot;./hover&quot;:1198,&quot;./marker_colorbar&quot;:1205,&quot;./plot&quot;:1208,&quot;./select&quot;:1209,&quot;./style&quot;:1211,&quot;./subtypes&quot;:1212}],1200:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray,i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;);e.exports=function(t,e,r,o,s,l){var c=(t.marker||{}).color;(s(&quot;line.color&quot;,r),i(t,&quot;line&quot;))?a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}):s(&quot;line.color&quot;,!n(c)&amp;&amp;c||r);s(&quot;line.width&quot;),(l||{}).noDash||s(&quot;line.dash&quot;)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778}],1201:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/numerical&quot;),i=n.BADNUM,a=n.LOG_CLIP,o=a+.5,s=a-.5,l=t(&quot;../../lib&quot;),c=l.segmentsIntersect,u=l.constrain,f=t(&quot;./constants&quot;);e.exports=function(t,e){var r,n,a,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S=e.xaxis,E=e.yaxis,C=&quot;log&quot;===S.type,L=&quot;log&quot;===E.type,I=S._length,P=E._length,z=e.connectGaps,O=e.baseTolerance,D=e.shape,R=&quot;linear&quot;===D,F=e.fill&amp;&amp;&quot;none&quot;!==e.fill,B=[],N=f.minTolerance,j=t.length,U=new Array(j),V=0;function q(r){var n=t[r];if(!n)return!1;var a=e.linearized?S.l2p(n.x):S.c2p(n.x),l=e.linearized?E.l2p(n.y):E.c2p(n.y);if(a===i){if(C&amp;&amp;(a=S.c2p(n.x,!0)),a===i)return!1;L&amp;&amp;l===i&amp;&amp;(a*=Math.abs(S._m*P*(S._m&gt;0?o:s)/(E._m*I*(E._m&gt;0?o:s)))),a*=1e3}if(l===i){if(L&amp;&amp;(l=E.c2p(n.y,!0)),l===i)return!1;l*=1e3}return[a,l]}function H(t,e,r,n){var i=r-t,a=n-e,o=.5-t,s=.5-e,l=i*i+a*a,c=i*o+a*s;if(c&gt;0&amp;&amp;c&lt;l){var u=o*a-s*i;if(u*u&lt;l)return!0}}function G(t,e){var r=t[0]/I,n=t[1]/P,i=Math.max(0,-r,r-1,-n,n-1);return i&amp;&amp;void 0!==M&amp;&amp;H(r,n,M,A)&amp;&amp;(i=0),i&amp;&amp;e&amp;&amp;H(r,n,e[0]/I,e[1]/P)&amp;&amp;(i=0),(1+f.toleranceGrowth*i)*O}function Y(t,e){var r=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(r*r+n*n)}var W,X,Z,J,K,Q,$,tt=f.maxScreensAway,et=-I*tt,rt=I*(1+tt),nt=-P*tt,it=P*(1+tt),at=[[et,nt,rt,nt],[rt,nt,rt,it],[rt,it,et,it],[et,it,et,nt]];function ot(t){if(t[0]&lt;et||t[0]&gt;rt||t[1]&lt;nt||t[1]&gt;it)return[u(t[0],et,rt),u(t[1],nt,it)]}function st(t,e){return t[0]===e[0]&amp;&amp;(t[0]===et||t[0]===rt)||(t[1]===e[1]&amp;&amp;(t[1]===nt||t[1]===it)||void 0)}function lt(t,e,r){return function(n,i){var a=ot(n),o=ot(i),s=[];if(a&amp;&amp;o&amp;&amp;st(a,o))return s;a&amp;&amp;s.push(a),o&amp;&amp;s.push(o);var c=2*l.constrain((n[t]+i[t])/2,e,r)-((a||n)[t]+(o||i)[t]);c&amp;&amp;((a&amp;&amp;o?c&gt;0==a[t]&gt;o[t]?a:o:a||o)[t]+=c);return s}}function ct(t){var e=t[0],r=t[1],n=e===U[V-1][0],i=r===U[V-1][1];if(!n||!i)if(V&gt;1){var a=e===U[V-2][0],o=r===U[V-2][1];n&amp;&amp;(e===et||e===rt)&amp;&amp;a?o?V--:U[V-1]=t:i&amp;&amp;(r===nt||r===it)&amp;&amp;o?a?V--:U[V-1]=t:U[V++]=t}else U[V++]=t}function ut(t){U[V-1][0]!==t[0]&amp;&amp;U[V-1][1]!==t[1]&amp;&amp;ct([Z,J]),ct(t),K=null,Z=J=0}function ft(t){if(M=t[0]/I,A=t[1]/P,W=t[0]&lt;et?et:t[0]&gt;rt?rt:0,X=t[1]&lt;nt?nt:t[1]&gt;it?it:0,W||X){if(V)if(K){var e=$(K,t);e.length&gt;1&amp;&amp;(ut(e[0]),U[V++]=e[1])}else Q=$(U[V-1],t)[0],U[V++]=Q;else U[V++]=[W||t[0],X||t[1]];var r=U[V-1];W&amp;&amp;X&amp;&amp;(r[0]!==W||r[1]!==X)?(K&amp;&amp;(Z!==W&amp;&amp;J!==X?ct(Z&amp;&amp;J?(n=K,a=(i=t)[0]-n[0],o=(i[1]-n[1])/a,(n[1]*i[0]-i[1]*n[0])/a&gt;0?[o&gt;0?et:rt,it]:[o&gt;0?rt:et,nt]):[Z||W,J||X]):Z&amp;&amp;J&amp;&amp;ct([Z,J])),ct([W,X])):Z-W&amp;&amp;J-X&amp;&amp;ct([W||Z,X||J]),K=t,Z=W,J=X}else K&amp;&amp;ut($(K,t)[0]),U[V++]=t;var n,i,a,o}for(&quot;linear&quot;===D||&quot;spline&quot;===D?$=function(t,e){for(var r=[],n=0,i=0;i&lt;4;i++){var a=at[i],o=c(t[0],t[1],e[0],e[1],a[0],a[1],a[2],a[3]);o&amp;&amp;(!n||Math.abs(o.x-r[0][0])&gt;1||Math.abs(o.y-r[0][1])&gt;1)&amp;&amp;(o=[o.x,o.y],n&amp;&amp;Y(o,t)&lt;Y(r[0],t)?r.unshift(o):r.push(o),n++)}return r}:&quot;hv&quot;===D||&quot;vh&quot;===D?$=function(t,e){var r=[],n=ot(t),i=ot(e);return n&amp;&amp;i&amp;&amp;st(n,i)||(n&amp;&amp;r.push(n),i&amp;&amp;r.push(i)),r}:&quot;hvh&quot;===D?$=lt(0,et,rt):&quot;vhv&quot;===D&amp;&amp;($=lt(1,nt,it)),r=0;r&lt;j;r++)if(n=q(r)){for(V=0,K=null,ft(n),r++;r&lt;j;r++){if(!(h=q(r))){if(z)continue;break}if(R&amp;&amp;e.simplify){var ht=q(r+1);if(y=Y(h,n),F&amp;&amp;(0===V||V===j-1)||!(y&lt;G(h,ht)*N)){for(m=[(h[0]-n[0])/y,(h[1]-n[1])/y],p=n,x=y,b=w=T=0,g=!1,a=h,r++;r&lt;t.length;r++){if(d=ht,ht=q(r+1),!d){if(z)continue;break}if(k=(v=[d[0]-n[0],d[1]-n[1]])[0]*m[1]-v[1]*m[0],w=Math.min(w,k),(T=Math.max(T,k))-w&gt;G(d,ht))break;a=d,(_=v[0]*m[0]+v[1]*m[1])&gt;x?(x=_,h=d,g=!1):_&lt;b&amp;&amp;(b=_,p=d,g=!0)}if(g?(ft(h),a!==p&amp;&amp;ft(p)):(p!==n&amp;&amp;ft(p),a!==h&amp;&amp;ft(h)),ft(a),r&gt;=t.length||!d)break;ft(d),n=d}}else ft(h)}K&amp;&amp;ct([Z||K[0],J||K[1]]),B.push(U.slice(0,V))}return B}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./constants&quot;:1191}],1202:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){&quot;spline&quot;===r(&quot;line.shape&quot;)&amp;&amp;r(&quot;line.smoothing&quot;)}},{}],1203:[function(t,e,r){&quot;use strict&quot;;var n={tonextx:1,tonexty:1,tonext:1};e.exports=function(t,e,r){var i,a,o,s,l,c={},u=!1,f=-1,h=0,p=-1;for(a=0;a&lt;r.length;a++)(o=(i=r[a][0].trace).stackgroup||&quot;&quot;)?o in c?l=c[o]:(l=c[o]=h,h++):i.fill in n&amp;&amp;p&gt;=0?l=p:(l=p=h,h++),l&lt;f&amp;&amp;(u=!0),i._groupIndex=f=l;var d=r.slice();u&amp;&amp;d.sort((function(t,e){var r=t[0].trace,n=e[0].trace;return r._groupIndex-n._groupIndex||r.index-n.index}));var g={};for(a=0;a&lt;d.length;a++)o=(i=d[a][0].trace).stackgroup||&quot;&quot;,!0===i.visible?(i._nexttrace=null,i.fill in n&amp;&amp;(s=g[o],i._prevtrace=s||null,s&amp;&amp;(s._nexttrace=i)),i._ownfill=i.fill&amp;&amp;(&quot;tozero&quot;===i.fill.substr(0,6)||&quot;toself&quot;===i.fill||&quot;to&quot;===i.fill.substr(0,2)&amp;&amp;!i._prevtrace),g[o]=i):i._prevtrace=i._nexttrace=i._ownfill=null;return d}},{}],1204:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports=function(t){var e=t.marker,r=e.sizeref||1,i=e.sizemin||0,a=&quot;area&quot;===e.sizemode?function(t){return Math.sqrt(t/r)}:function(t){return t/r};return function(t){var e=a(t/2);return n(e)&amp;&amp;e&gt;0?Math.max(e,i):0}}},{&quot;fast-isnumeric&quot;:241}],1205:[function(t,e,r){&quot;use strict&quot;;e.exports={container:&quot;marker&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;}},{}],1206:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./subtypes&quot;);e.exports=function(t,e,r,s,l,c){var u=o.isBubble(t),f=(t.line||{}).color;(c=c||{},f&amp;&amp;(r=f),l(&quot;marker.symbol&quot;),l(&quot;marker.opacity&quot;,u?.7:1),l(&quot;marker.size&quot;),l(&quot;marker.color&quot;,r),i(t,&quot;marker&quot;)&amp;&amp;a(t,e,s,l,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),c.noSelect||(l(&quot;selected.marker.color&quot;),l(&quot;unselected.marker.color&quot;),l(&quot;selected.marker.size&quot;),l(&quot;unselected.marker.size&quot;)),c.noLine||(l(&quot;marker.line.color&quot;,f&amp;&amp;!Array.isArray(f)&amp;&amp;e.marker.color!==f?f:u?n.background:n.defaultLine),i(t,&quot;marker.line&quot;)&amp;&amp;a(t,e,s,l,{prefix:&quot;marker.line.&quot;,cLetter:&quot;c&quot;}),l(&quot;marker.line.width&quot;,u?1:0)),u&amp;&amp;(l(&quot;marker.sizeref&quot;),l(&quot;marker.sizemin&quot;),l(&quot;marker.sizemode&quot;)),c.gradient)&amp;&amp;(&quot;none&quot;!==l(&quot;marker.gradient.type&quot;)&amp;&amp;l(&quot;marker.gradient.color&quot;))}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;./subtypes&quot;:1212}],1207:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).dateTick0,i=t(&quot;../../constants/numerical&quot;).ONEWEEK;function a(t,e){return n(e,t%i==0?1:0)}e.exports=function(t,e,r,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n(&quot;xperiod&quot;);o&amp;&amp;(n(&quot;xperiod0&quot;,a(o,e.xcalendar)),n(&quot;xperiodalignment&quot;))}if(i.y){var s=n(&quot;yperiod&quot;);s&amp;&amp;(n(&quot;yperiod0&quot;,a(s,e.ycalendar)),n(&quot;yperiodalignment&quot;))}}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778}],1208:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.ensureSingle,s=a.identity,l=t(&quot;../../components/drawing&quot;),c=t(&quot;./subtypes&quot;),u=t(&quot;./line_points&quot;),f=t(&quot;./link_traces&quot;),h=t(&quot;../../lib/polygon&quot;).tester;function p(t,e,r,f,p,d,g){var m;!function(t,e,r,i,o){var s=r.xaxis,l=r.yaxis,u=n.extent(a.simpleMap(s.range,s.r2c)),f=n.extent(a.simpleMap(l.range,l.r2c)),h=i[0].trace;if(!c.hasMarkers(h))return;var p=h.marker.maxdisplayed;if(0===p)return;var d=i.filter((function(t){return t.x&gt;=u[0]&amp;&amp;t.x&lt;=u[1]&amp;&amp;t.y&gt;=f[0]&amp;&amp;t.y&lt;=f[1]})),g=Math.ceil(d.length/p),m=0;o.forEach((function(t,r){var n=t[0].trace;c.hasMarkers(n)&amp;&amp;n.marker.maxdisplayed&gt;0&amp;&amp;r&lt;e&amp;&amp;m++}));var v=Math.round(m*g/3+Math.floor(m/3)*g/7.1);i.forEach((function(t){delete t.vis})),d.forEach((function(t,e){0===Math.round((e+v)%g)&amp;&amp;(t.vis=!0)}))}(0,e,r,f,p);var v=!!g&amp;&amp;g.duration&gt;0;function y(t){return v?t.transition():t}var x=r.xaxis,b=r.yaxis,_=f[0].trace,w=_.line,T=n.select(d),k=o(T,&quot;g&quot;,&quot;errorbars&quot;),M=o(T,&quot;g&quot;,&quot;lines&quot;),A=o(T,&quot;g&quot;,&quot;points&quot;),S=o(T,&quot;g&quot;,&quot;text&quot;);if(i.getComponentMethod(&quot;errorbars&quot;,&quot;plot&quot;)(t,k,r,g),!0===_.visible){var E,C;y(T).style(&quot;opacity&quot;,_.opacity);var L=_.fill.charAt(_.fill.length-1);&quot;x&quot;!==L&amp;&amp;&quot;y&quot;!==L&amp;&amp;(L=&quot;&quot;),f[0][r.isRangePlot?&quot;nodeRangePlot3&quot;:&quot;node3&quot;]=T;var I,P,z=&quot;&quot;,O=[],D=_._prevtrace;D&amp;&amp;(z=D._prevRevpath||&quot;&quot;,C=D._nextFill,O=D._polygons);var R,F,B,N,j,U,V,q=&quot;&quot;,H=&quot;&quot;,G=[],Y=a.noop;if(E=_._ownFill,c.hasLines(_)||&quot;none&quot;!==_.fill){for(C&amp;&amp;C.datum(f),-1!==[&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;].indexOf(w.shape)?(R=l.steps(w.shape),F=l.steps(w.shape.split(&quot;&quot;).reverse().join(&quot;&quot;))):R=F=&quot;spline&quot;===w.shape?function(t){var e=t[t.length-1];return t.length&gt;1&amp;&amp;t[0][0]===e[0]&amp;&amp;t[0][1]===e[1]?l.smoothclosed(t.slice(1),w.smoothing):l.smoothopen(t,w.smoothing)}:function(t){return&quot;M&quot;+t.join(&quot;L&quot;)},B=function(t){return F(t.reverse())},G=u(f,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify,fill:_.fill}),V=_._polygons=new Array(G.length),m=0;m&lt;G.length;m++)_._polygons[m]=h(G[m]);G.length&amp;&amp;(N=G[0][0],U=(j=G[G.length-1])[j.length-1]),Y=function(t){return function(e){if(I=R(e),P=B(e),q?L?(q+=&quot;L&quot;+I.substr(1),H=P+&quot;L&quot;+H.substr(1)):(q+=&quot;Z&quot;+I,H=P+&quot;Z&quot;+H):(q=I,H=P),c.hasLines(_)&amp;&amp;e.length&gt;1){var r=n.select(this);if(r.datum(f),t)y(r.style(&quot;opacity&quot;,0).attr(&quot;d&quot;,I).call(l.lineGroupStyle)).style(&quot;opacity&quot;,1);else{var i=y(r);i.attr(&quot;d&quot;,I),l.singleLineStyle(f,i)}}}}}var W=M.selectAll(&quot;.js-line&quot;).data(G);y(W.exit()).style(&quot;opacity&quot;,0).remove(),W.each(Y(!1)),W.enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).call(l.lineGroupStyle).each(Y(!0)),l.setClipUrl(W,r.layerClipId,t),G.length?(E?(E.datum(f),N&amp;&amp;U&amp;&amp;(L?(&quot;y&quot;===L?N[1]=U[1]=b.c2p(0,!0):&quot;x&quot;===L&amp;&amp;(N[0]=U[0]=x.c2p(0,!0)),y(E).attr(&quot;d&quot;,&quot;M&quot;+U+&quot;L&quot;+N+&quot;L&quot;+q.substr(1)).call(l.singleFillStyle)):y(E).attr(&quot;d&quot;,q+&quot;Z&quot;).call(l.singleFillStyle))):C&amp;&amp;(&quot;tonext&quot;===_.fill.substr(0,6)&amp;&amp;q&amp;&amp;z?(&quot;tonext&quot;===_.fill?y(C).attr(&quot;d&quot;,q+&quot;Z&quot;+z+&quot;Z&quot;).call(l.singleFillStyle):y(C).attr(&quot;d&quot;,q+&quot;L&quot;+z.substr(1)+&quot;Z&quot;).call(l.singleFillStyle),_._polygons=_._polygons.concat(O)):(Z(C),_._polygons=null)),_._prevRevpath=H,_._prevPolygons=V):(E?Z(E):C&amp;&amp;Z(C),_._polygons=_._prevRevpath=_._prevPolygons=null),A.datum(f),S.datum(f),function(e,i,a){var o,u=a[0].trace,f=c.hasMarkers(u),h=c.hasText(u),p=tt(u),d=et,g=et;if(f||h){var m=s,_=u.stackgroup,w=_&amp;&amp;&quot;infer zero&quot;===t._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;u.marker.maxdisplayed||u._needsCull?m=w?K:J:_&amp;&amp;!w&amp;&amp;(m=Q),f&amp;&amp;(d=m),h&amp;&amp;(g=m)}var T,k=(o=e.selectAll(&quot;path.point&quot;).data(d,p)).enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0);v&amp;&amp;k.call(l.pointStyle,u,t).call(l.translatePoints,x,b).style(&quot;opacity&quot;,0).transition().style(&quot;opacity&quot;,1),o.order(),f&amp;&amp;(T=l.makePointStyleFns(u)),o.each((function(e){var i=n.select(this),a=y(i);l.translatePoint(e,a,x,b)?(l.singlePointStyle(e,a,u,T,t),r.layerClipId&amp;&amp;l.hideOutsideRangePoint(e,a,x,b,u.xcalendar,u.ycalendar),u.customdata&amp;&amp;i.classed(&quot;plotly-customdata&quot;,null!==e.data&amp;&amp;void 0!==e.data)):a.remove()})),v?o.exit().transition().style(&quot;opacity&quot;,0).remove():o.exit().remove(),(o=i.selectAll(&quot;g&quot;).data(g,p)).enter().append(&quot;g&quot;).classed(&quot;textpoint&quot;,!0).append(&quot;text&quot;),o.order(),o.each((function(t){var e=n.select(this),i=y(e.select(&quot;text&quot;));l.translatePoint(t,i,x,b)?r.layerClipId&amp;&amp;l.hideOutsideRangePoint(t,e,x,b,u.xcalendar,u.ycalendar):e.remove()})),o.selectAll(&quot;text&quot;).call(l.textPointStyle,u,t).each((function(t){var e=x.c2p(t.x),r=b.c2p(t.y);n.select(this).selectAll(&quot;tspan.line&quot;).each((function(){y(n.select(this)).attr({x:e,y:r})}))})),o.exit().remove()}(A,S,f);var X=!1===_.cliponaxis?null:r.layerClipId;l.setClipUrl(A,X,t),l.setClipUrl(S,X,t)}function Z(t){y(t).attr(&quot;d&quot;,&quot;M0,0Z&quot;)}function J(t){return t.filter((function(t){return!t.gap&amp;&amp;t.vis}))}function K(t){return t.filter((function(t){return t.vis}))}function Q(t){return t.filter((function(t){return!t.gap}))}function $(t){return t.id}function tt(t){if(t.ids)return $}function et(){return!1}}e.exports=function(t,e,r,i,a,c){var u,h,d=!a,g=!!a&amp;&amp;a.duration&gt;0,m=f(t,e,r);((u=i.selectAll(&quot;g.trace&quot;).data(m,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;trace scatter trace&quot;+t[0].trace.uid})).style(&quot;stroke-miterlimit&quot;,2),u.order(),function(t,e,r){e.each((function(e){var i=o(n.select(this),&quot;g&quot;,&quot;fills&quot;);l.setClipUrl(i,r.layerClipId,t);var a=e[0].trace,c=[];a._ownfill&amp;&amp;c.push(&quot;_ownFill&quot;),a._nexttrace&amp;&amp;c.push(&quot;_nextFill&quot;);var u=i.selectAll(&quot;g&quot;).data(c,s);u.enter().append(&quot;g&quot;),u.exit().each((function(t){a[t]=null})).remove(),u.order().each((function(t){a[t]=o(n.select(this),&quot;path&quot;,&quot;js-fill&quot;)}))}))}(t,u,e),g)?(c&amp;&amp;(h=c()),n.transition().duration(a.duration).ease(a.easing).each(&quot;end&quot;,(function(){h&amp;&amp;h()})).each(&quot;interrupt&quot;,(function(){h&amp;&amp;h()})).each((function(){i.selectAll(&quot;g.trace&quot;).each((function(r,n){p(t,n,e,r,m,this,a)}))}))):u.each((function(r,n){p(t,n,e,r,m,this,a)}));d&amp;&amp;u.exit().remove(),i.selectAll(&quot;path:not([d])&quot;).remove()}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/polygon&quot;:790,&quot;../../registry&quot;:911,&quot;./line_points&quot;:1201,&quot;./link_traces&quot;:1203,&quot;./subtypes&quot;:1212,d3:169}],1209:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./subtypes&quot;);e.exports=function(t,e){var r,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[],f=s[0].trace;if(!n.hasMarkers(f)&amp;&amp;!n.hasText(f))return[];if(!1===e)for(r=0;r&lt;s.length;r++)s[r].selected=0;else for(r=0;r&lt;s.length;r++)i=s[r],a=l.c2p(i.x),o=c.c2p(i.y),null!==i.i&amp;&amp;e.contains([a,o],!1,r,t)?(u.push({pointNumber:i.i,x:l.c2d(i.x),y:c.c2d(i.y)}),i.selected=1):i.selected=0;return u}},{&quot;./subtypes&quot;:1212}],1210:[function(t,e,r){&quot;use strict&quot;;var n=[&quot;orientation&quot;,&quot;groupnorm&quot;,&quot;stackgaps&quot;];e.exports=function(t,e,r,i){var a=r._scatterStackOpts,o=i(&quot;stackgroup&quot;);if(o){var s=e.xaxis+e.yaxis,l=a[s];l||(l=a[s]={});var c=l[o],u=!1;c?c.traces.push(e):(c=l[o]={traceIndices:[],traces:[e]},u=!0);for(var f={orientation:e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;},h=0;h&lt;n.length;h++){var p=n[h],d=p+&quot;Found&quot;;if(!c[d]){var g=void 0!==t[p],m=&quot;orientation&quot;===p;if((g||u)&amp;&amp;(c[p]=i(p,f[p]),m&amp;&amp;(c.fillDflt=&quot;h&quot;===c[p]?&quot;tonextx&quot;:&quot;tonexty&quot;),g&amp;&amp;(c[d]=!0,!u&amp;&amp;(delete c.traces[0][p],m))))for(var v=0;v&lt;c.traces.length-1;v++){var y=c.traces[v];y._input.fill!==y.fill&amp;&amp;(y.fill=c.fillDflt)}}}return c}}},{}],1211:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../registry&quot;);function o(t,e,r){i.pointStyle(t.selectAll(&quot;path.point&quot;),e,r)}function s(t,e,r){i.textPointStyle(t.selectAll(&quot;text&quot;),e,r)}e.exports={style:function(t){var e=n.select(t).selectAll(&quot;g.trace.scatter&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.selectAll(&quot;g.points&quot;).each((function(e){o(n.select(this),e.trace||e[0].trace,t)})),e.selectAll(&quot;g.text&quot;).each((function(e){s(n.select(this),e.trace||e[0].trace,t)})),e.selectAll(&quot;g.trace path.js-line&quot;).call(i.lineGroupStyle),e.selectAll(&quot;g.trace path.js-fill&quot;).call(i.fillGroupStyle),a.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(e)},stylePoints:o,styleText:s,styleOnSelect:function(t,e,r){var n=e[0].trace;n.selectedpoints?(i.selectedPointStyle(r.selectAll(&quot;path.point&quot;),n),i.selectedTextStyle(r.selectAll(&quot;text&quot;),n)):(o(r,n,t),s(r,n,t))}}},{&quot;../../components/drawing&quot;:665,&quot;../../registry&quot;:911,d3:169}],1212:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports={hasLines:function(t){return t.visible&amp;&amp;t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;lines&quot;)},hasMarkers:function(t){return t.visible&amp;&amp;(t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;markers&quot;)||&quot;splom&quot;===t.type)},hasText:function(t){return t.visible&amp;&amp;t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;text&quot;)},isBubble:function(t){return n.isPlainObject(t.marker)&amp;&amp;n.isArrayOrTypedArray(t.marker.size)}}},{&quot;../../lib&quot;:778}],1213:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r,i,a){a=a||{},i(&quot;textposition&quot;),n.coerceFont(i,&quot;textfont&quot;,r.font),a.noSelect||(i(&quot;selected.textfont.color&quot;),i(&quot;unselected.textfont.color&quot;))}},{&quot;../../lib&quot;:778}],1214:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;);e.exports=function(t,e,r,a){var o,s=a(&quot;x&quot;),l=a(&quot;y&quot;);if(i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],r),s){var c=n.minRowLength(s);l?o=Math.min(c,n.minRowLength(l)):(o=c,a(&quot;y0&quot;),a(&quot;dy&quot;))}else{if(!l)return 0;o=n.minRowLength(l),a(&quot;x0&quot;),a(&quot;dx&quot;)}return e._length=o,o}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1215:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../constants/gl3d_dashes&quot;),c=t(&quot;../../constants/gl3d_markers&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat,f=t(&quot;../../plot_api/edit_types&quot;).overrideAll,h=n.line,p=n.marker,d=p.line,g=u({width:h.width,dash:{valType:&quot;enumerated&quot;,values:Object.keys(l),dflt:&quot;solid&quot;}},i(&quot;line&quot;));var m=e.exports=f({x:n.x,y:n.y,z:{valType:&quot;data_array&quot;},text:u({},n.text,{}),texttemplate:o({},{}),hovertext:u({},n.hovertext,{}),hovertemplate:a(),mode:u({},n.mode,{dflt:&quot;lines+markers&quot;}),surfaceaxis:{valType:&quot;enumerated&quot;,values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:&quot;color&quot;},projection:{x:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}},y:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}},z:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}}},connectgaps:n.connectgaps,line:g,marker:u({symbol:{valType:&quot;enumerated&quot;,values:Object.keys(c),dflt:&quot;circle&quot;,arrayOk:!0},size:u({},p.size,{dflt:8}),sizeref:p.sizeref,sizemin:p.sizemin,sizemode:p.sizemode,opacity:u({},p.opacity,{arrayOk:!1}),colorbar:p.colorbar,line:u({width:u({},d.width,{arrayOk:!1})},i(&quot;marker.line&quot;))},i(&quot;marker&quot;)),textposition:u({},n.textposition,{dflt:&quot;top center&quot;}),textfont:{color:n.textfont.color,size:n.textfont.size,family:u({},n.textfont.family,{arrayOk:!1})},hoverinfo:u({},s.hoverinfo)},&quot;calc&quot;,&quot;nested&quot;);m.x.editType=m.y.editType=m.z.editType=&quot;calc+clearAxisTypes&quot;},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../constants/gl3d_dashes&quot;:750,&quot;../../constants/gl3d_markers&quot;:751,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1216:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/arrays_to_calcdata&quot;),i=t(&quot;../scatter/colorscale_calc&quot;);e.exports=function(t,e){var r=[{x:!1,y:!1,trace:e,t:{}}];return n(r,e),i(t,e),r}},{&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/colorscale_calc&quot;:1190}],1217:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;);function i(t,e,r,i){if(!e||!e.visible)return null;for(var a=n.getComponentMethod(&quot;errorbars&quot;,&quot;makeComputeError&quot;)(e),o=new Array(t.length),s=0;s&lt;t.length;s++){var l=a(+t[s],s);if(&quot;log&quot;===i.type){var c=i.c2l(t[s]),u=t[s]-l[0],f=t[s]+l[1];if(o[s]=[(i.c2l(u,!0)-c)*r,(i.c2l(f,!0)-c)*r],u&gt;0){var h=i.c2l(u);i._lowerLogErrorBound||(i._lowerLogErrorBound=h),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,h)}}else o[s]=[-l[0]*r,l[1]*r]}return o}e.exports=function(t,e,r){var n=[i(t.x,t.error_x,e[0],r.xaxis),i(t.y,t.error_y,e[1],r.yaxis),i(t.z,t.error_z,e[2],r.zaxis)],a=function(t){for(var e=0;e&lt;t.length;e++)if(t[e])return t[e].length;return 0}(n);if(0===a)return null;for(var o=new Array(a),s=0;s&lt;a;s++){for(var l=[[0,0,0],[0,0,0]],c=0;c&lt;3;c++)if(n[c])for(var u=0;u&lt;2;u++)l[u][c]=n[c][s][u];o[s]=l}return o}},{&quot;../../registry&quot;:911}],1218:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-line3d&quot;),i=t(&quot;gl-scatter3d&quot;),a=t(&quot;gl-error3d&quot;),o=t(&quot;gl-mesh3d&quot;),s=t(&quot;delaunay-triangulate&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;../../lib/str2rgbarray&quot;),u=t(&quot;../../lib/gl_format_color&quot;).formatColor,f=t(&quot;../scatter/make_bubble_size_func&quot;),h=t(&quot;../../constants/gl3d_dashes&quot;),p=t(&quot;../../constants/gl3d_markers&quot;),d=t(&quot;../../plots/cartesian/axes&quot;),g=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,m=t(&quot;./calc_errors&quot;);function v(t,e){this.scene=t,this.uid=e,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode=&quot;&quot;,this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var y=v.prototype;function x(t){return null==t?0:t.indexOf(&quot;left&quot;)&gt;-1?-1:t.indexOf(&quot;right&quot;)&gt;-1?1:0}function b(t){return null==t?0:t.indexOf(&quot;top&quot;)&gt;-1?-1:t.indexOf(&quot;bottom&quot;)&gt;-1?1:0}function _(t,e){return e(4*t)}function w(t){return p[t]}function T(t,e,r,n,i){var a=null;if(l.isArrayOrTypedArray(t)){a=[];for(var o=0;o&lt;e;o++)void 0===t[o]?a[o]=n:a[o]=r(t[o],i)}else a=r(t,l.identity);return a}function k(t,e){var r,n,i,a,o,s,h=[],p=t.fullSceneLayout,v=t.dataScale,y=p.xaxis,k=p.yaxis,M=p.zaxis,A=e.marker,S=e.line,E=e.x||[],C=e.y||[],L=e.z||[],I=E.length,P=e.xcalendar,z=e.ycalendar,O=e.zcalendar;for(o=0;o&lt;I;o++)r=y.d2l(E[o],0,P)*v[0],n=k.d2l(C[o],0,z)*v[1],i=M.d2l(L[o],0,O)*v[2],h[o]=[r,n,i];if(Array.isArray(e.text))s=e.text;else if(void 0!==e.text)for(s=new Array(I),o=0;o&lt;I;o++)s[o]=e.text;function D(t,e){var r=p[t];return d.tickText(r,r.d2l(e),!0).text}var R=e.texttemplate;if(R){var F=t.fullLayout._d3locale,B=Array.isArray(R),N=B?Math.min(R.length,I):I,j=B?function(t){return R[t]}:function(){return R};for(s=new Array(N),o=0;o&lt;N;o++){var U={x:E[o],y:C[o],z:L[o]},V={xLabel:D(&quot;xaxis&quot;,E[o]),yLabel:D(&quot;yaxis&quot;,C[o]),zLabel:D(&quot;zaxis&quot;,L[o])},q={};g(q,e,o);var H=e._meta||{};s[o]=l.texttemplateString(j(o),V,F,q,U,H)}}if(a={position:h,mode:e.mode,text:s},&quot;line&quot;in e&amp;&amp;(a.lineColor=u(S,1,I),a.lineWidth=S.width,a.lineDashes=S.dash),&quot;marker&quot;in e){var G=f(e);a.scatterColor=u(A,1,I),a.scatterSize=T(A.size,I,_,20,G),a.scatterMarker=T(A.symbol,I,w,&quot;\u25cf&quot;),a.scatterLineWidth=A.line.width,a.scatterLineColor=u(A.line,1,I),a.scatterAngle=0}&quot;textposition&quot;in e&amp;&amp;(a.textOffset=function(t){var e=[0,0];if(Array.isArray(t))for(var r=0;r&lt;t.length;r++)e[r]=[0,0],t[r]&amp;&amp;(e[r][0]=x(t[r]),e[r][1]=b(t[r]));else e[0]=x(t),e[1]=b(t);return e}(e.textposition),a.textColor=u(e.textfont,1,I),a.textSize=T(e.textfont.size,I,l.identity,12),a.textFont=e.textfont.family,a.textAngle=0);var Y=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(a.project=[!1,!1,!1],a.projectScale=[1,1,1],a.projectOpacity=[1,1,1],o=0;o&lt;3;++o){var W=e.projection[Y[o]];(a.project[o]=W.show)&amp;&amp;(a.projectOpacity[o]=W.opacity,a.projectScale[o]=W.scale)}a.errorBounds=m(e,v,p);var X=function(t){for(var e=[0,0,0],r=[[0,0,0],[0,0,0],[0,0,0]],n=[1,1,1],i=0;i&lt;3;i++){var a=t[i];a&amp;&amp;!1!==a.copy_zstyle&amp;&amp;!1!==t[2].visible&amp;&amp;(a=t[2]),a&amp;&amp;a.visible&amp;&amp;(e[i]=a.width/2,r[i]=c(a.color),n[i]=a.thickness)}return{capSize:e,color:r,lineWidth:n}}([e.error_x,e.error_y,e.error_z]);return a.errorColor=X.color,a.errorLineWidth=X.lineWidth,a.errorCapSize=X.capSize,a.delaunayAxis=e.surfaceaxis,a.delaunayColor=c(e.surfacecolor),a}function M(t){if(l.isArrayOrTypedArray(t)){var e=t[0];return l.isArrayOrTypedArray(e)&amp;&amp;(t=e),&quot;rgb(&quot;+t.slice(0,3).map((function(t){return Math.round(255*t)}))+&quot;)&quot;}return null}function A(t){return l.isArrayOrTypedArray(t)?4===t.length&amp;&amp;&quot;number&quot;==typeof t[0]?M(t):t.map(M):null}y.handlePick=function(t){if(t.object&amp;&amp;(t.object===this.linePlot||t.object===this.delaunayMesh||t.object===this.textMarkers||t.object===this.scatterPlot)){var e=t.index=t.data.index;return t.object.highlight&amp;&amp;t.object.highlight(null),this.scatterPlot&amp;&amp;(t.object=this.scatterPlot,this.scatterPlot.highlight(t.data)),t.textLabel=&quot;&quot;,this.textLabels&amp;&amp;(Array.isArray(this.textLabels)?(this.textLabels[e]||0===this.textLabels[e])&amp;&amp;(t.textLabel=this.textLabels[e]):t.textLabel=this.textLabels),t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]],!0}},y.update=function(t){var e,r,l,c,u=this.scene.glplot.gl,f=h.solid;this.data=t;var p=k(this.scene,t);&quot;mode&quot;in p&amp;&amp;(this.mode=p.mode),&quot;lineDashes&quot;in p&amp;&amp;p.lineDashes in h&amp;&amp;(f=h[p.lineDashes]),this.color=A(p.scatterColor)||A(p.lineColor),this.dataPoints=p.position,e={gl:this.scene.glplot.gl,position:p.position,color:p.lineColor,lineWidth:p.lineWidth||1,dashes:f[0],dashScale:f[1],opacity:t.opacity,connectGaps:t.connectgaps},-1!==this.mode.indexOf(&quot;lines&quot;)?this.linePlot?this.linePlot.update(e):(this.linePlot=n(e),this.linePlot._trace=this,this.scene.glplot.add(this.linePlot)):this.linePlot&amp;&amp;(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose(),this.linePlot=null);var d=t.opacity;if(t.marker&amp;&amp;t.marker.opacity&amp;&amp;(d*=t.marker.opacity),r={gl:this.scene.glplot.gl,position:p.position,color:p.scatterColor,size:p.scatterSize,glyph:p.scatterMarker,opacity:d,orthographic:!0,lineWidth:p.scatterLineWidth,lineColor:p.scatterLineColor,project:p.project,projectScale:p.projectScale,projectOpacity:p.projectOpacity},-1!==this.mode.indexOf(&quot;markers&quot;)?this.scatterPlot?this.scatterPlot.update(r):(this.scatterPlot=i(r),this.scatterPlot._trace=this,this.scatterPlot.highlightScale=1,this.scene.glplot.add(this.scatterPlot)):this.scatterPlot&amp;&amp;(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose(),this.scatterPlot=null),c={gl:this.scene.glplot.gl,position:p.position,glyph:p.text,color:p.textColor,size:p.textSize,angle:p.textAngle,alignment:p.textOffset,font:p.textFont,orthographic:!0,lineWidth:0,project:!1,opacity:t.opacity},this.textLabels=t.hovertext||t.text,-1!==this.mode.indexOf(&quot;text&quot;)?this.textMarkers?this.textMarkers.update(c):(this.textMarkers=i(c),this.textMarkers._trace=this,this.textMarkers.highlightScale=1,this.scene.glplot.add(this.textMarkers)):this.textMarkers&amp;&amp;(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose(),this.textMarkers=null),l={gl:this.scene.glplot.gl,position:p.position,color:p.errorColor,error:p.errorBounds,lineWidth:p.errorLineWidth,capSize:p.errorCapSize,opacity:t.opacity},this.errorBars?p.errorBounds?this.errorBars.update(l):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):p.errorBounds&amp;&amp;(this.errorBars=a(l),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),p.delaunayAxis&gt;=0){var g=function(t,e,r){var n,i=(r+1)%3,a=(r+2)%3,o=[],l=[];for(n=0;n&lt;t.length;++n){var c=t[n];!isNaN(c[i])&amp;&amp;isFinite(c[i])&amp;&amp;!isNaN(c[a])&amp;&amp;isFinite(c[a])&amp;&amp;(o.push([c[i],c[a]]),l.push(n))}var u=s(o);for(n=0;n&lt;u.length;++n)for(var f=u[n],h=0;h&lt;f.length;++h)f[h]=l[f[h]];return{positions:t,cells:u,meshColor:e}}(p.position,p.delaunayColor,p.delaunayAxis);g.opacity=t.opacity,this.delaunayMesh?this.delaunayMesh.update(g):(g.gl=u,this.delaunayMesh=o(g),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&amp;&amp;(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},y.dispose=function(){this.linePlot&amp;&amp;(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&amp;&amp;(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&amp;&amp;(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&amp;&amp;(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&amp;&amp;(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())},e.exports=function(t,e){var r=new v(t,e.uid);return r.update(e),r}},{&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/gl3d_dashes&quot;:750,&quot;../../constants/gl3d_markers&quot;:751,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/make_bubble_size_func&quot;:1204,&quot;./calc_errors&quot;:1217,&quot;delaunay-triangulate&quot;:171,&quot;gl-error3d&quot;:266,&quot;gl-line3d&quot;:275,&quot;gl-mesh3d&quot;:309,&quot;gl-scatter3d&quot;:330}],1219:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,n){return i.coerce(t,e,c,r,n)}if(function(t,e,r,i){var a=0,o=r(&quot;x&quot;),s=r(&quot;y&quot;),l=r(&quot;z&quot;);n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],i),o&amp;&amp;s&amp;&amp;l&amp;&amp;(a=Math.min(o.length,s.length,l.length),e._length=e._xlength=e._ylength=e._zlength=a);return a}(t,e,f,u)){f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),a.hasLines(e)&amp;&amp;(f(&quot;connectgaps&quot;),s(t,e,r,u,f)),a.hasMarkers(e)&amp;&amp;o(t,e,r,u,f,{noSelect:!0}),a.hasText(e)&amp;&amp;(f(&quot;texttemplate&quot;),l(t,e,u,f,{noSelect:!0}));var h=(e.line||{}).color,p=(e.marker||{}).color;f(&quot;surfaceaxis&quot;)&gt;=0&amp;&amp;f(&quot;surfacecolor&quot;,h||p);for(var d=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],g=0;g&lt;3;++g){var m=&quot;projection.&quot;+d[g];f(m+&quot;.show&quot;)&amp;&amp;(f(m+&quot;.opacity&quot;),f(m+&quot;.scale&quot;))}var v=n.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);v(t,e,h||p||r,{axis:&quot;z&quot;}),v(t,e,h||p||r,{axis:&quot;y&quot;,inherit:&quot;z&quot;}),v(t,e,h||p||r,{axis:&quot;x&quot;,inherit:&quot;z&quot;})}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1215}],1220:[function(t,e,r){&quot;use strict&quot;;e.exports={plot:t(&quot;./convert&quot;),attributes:t(&quot;./attributes&quot;),markerSymbols:t(&quot;../../constants/gl3d_markers&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:[{container:&quot;marker&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;}],calc:t(&quot;./calc&quot;),moduleType:&quot;trace&quot;,name:&quot;scatter3d&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../constants/gl3d_markers&quot;:751,&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1215,&quot;./calc&quot;:1216,&quot;./convert&quot;:1218,&quot;./defaults&quot;:1219}],1221:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=n.marker,u=n.line,f=c.line;e.exports={carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},mode:l({},n.mode,{dflt:&quot;markers&quot;}),text:l({},n.text,{}),texttemplate:o({editType:&quot;plot&quot;},{keys:[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;]}),hovertext:l({},n.hovertext,{}),line:{color:u.color,width:u.width,dash:u.dash,shape:l({},u.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:u.smoothing,editType:&quot;calc&quot;},connectgaps:n.connectgaps,fill:l({},n.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:n.fillcolor,marker:l({symbol:c.symbol,opacity:c.opacity,maxdisplayed:c.maxdisplayed,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,line:l({width:f.width,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),gradient:c.gradient,editType:&quot;calc&quot;},s(&quot;marker&quot;)),textfont:n.textfont,textposition:n.textposition,selected:n.selected,unselected:n.unselected,hoverinfo:l({},i.hoverinfo,{flags:[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:n.hoveron,hovertemplate:a()}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1222:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scatter/arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../scatter/calc&quot;).calcMarkerSize,l=t(&quot;../carpet/lookup_carpetid&quot;);e.exports=function(t,e){var r=e._carpetTrace=l(t,e);if(r&amp;&amp;r.visible&amp;&amp;&quot;legendonly&quot;!==r.visible){var c;e.xaxis=r.xaxis,e.yaxis=r.yaxis;var u,f,h=e._length,p=new Array(h),d=!1;for(c=0;c&lt;h;c++)if(u=e.a[c],f=e.b[c],n(u)&amp;&amp;n(f)){var g=r.ab2xy(+u,+f,!0),m=r.isVisible(+u,+f);m||(d=!0),p[c]={x:g[0],y:g[1],a:u,b:f,vis:m}}else p[c]={x:!1,y:!1};return e._needsCull=d,p[0].carpet=r,p[0].trace=e,s(e,h),i(t,e),a(p,e),o(p,e),p}}},{&quot;../carpet/lookup_carpetid&quot;:981,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc&quot;:1188,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1223:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/constants&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/line_shape_defaults&quot;),c=t(&quot;../scatter/text_defaults&quot;),u=t(&quot;../scatter/fillcolor_defaults&quot;),f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}p(&quot;carpet&quot;),e.xaxis=&quot;x&quot;,e.yaxis=&quot;y&quot;;var d=p(&quot;a&quot;),g=p(&quot;b&quot;),m=Math.min(d.length,g.length);if(m){e._length=m,p(&quot;text&quot;),p(&quot;texttemplate&quot;),p(&quot;hovertext&quot;),p(&quot;mode&quot;,m&lt;i.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;),a.hasLines(e)&amp;&amp;(s(t,e,r,h,p),l(t,e,p),p(&quot;connectgaps&quot;)),a.hasMarkers(e)&amp;&amp;o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&amp;&amp;c(t,e,h,p);var v=[];(a.hasMarkers(e)||a.hasText(e))&amp;&amp;(p(&quot;marker.maxdisplayed&quot;),v.push(&quot;points&quot;)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||v.push(&quot;fills&quot;),&quot;fills&quot;!==p(&quot;hoveron&quot;,v.join(&quot;+&quot;)||&quot;points&quot;)&amp;&amp;p(&quot;hovertemplate&quot;),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/line_shape_defaults&quot;:1202,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1221}],1224:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=n[i];return t.a=a.a,t.b=a.b,t.y=a.y,t}},{}],1225:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r={},n=e._carpet,i=n.ab2ij([t.a,t.b]),a=Math.floor(i[0]),o=i[0]-a,s=Math.floor(i[1]),l=i[1]-s,c=n.evalxy([],a,s,o,l);return r.yLabel=c[1].toFixed(3),r}},{}],1226:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;),i=t(&quot;../../lib&quot;).fillText;e.exports=function(t,e,r,a){var o=n(t,e,r,a);if(o&amp;&amp;!1!==o[0].index){var s=o[0];if(void 0===s.index){var l=1-s.y0/t.ya._length,c=t.xa._length,u=c*l/2,f=c-u;return s.x0=Math.max(Math.min(s.x0,f),u),s.x1=Math.max(Math.min(s.x1,f),u),o}var h=s.cd[s.index];s.a=h.a,s.b=h.b,s.xLabelVal=void 0,s.yLabelVal=void 0;var p=s.trace,d=p._carpet,g=p._module.formatLabels(h,p);s.yLabel=g.yLabel,delete s.text;var m=[];if(!p.hovertemplate){var v=(h.hi||p.hoverinfo).split(&quot;+&quot;);-1!==v.indexOf(&quot;all&quot;)&amp;&amp;(v=[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;]),-1!==v.indexOf(&quot;a&quot;)&amp;&amp;y(d.aaxis,h.a),-1!==v.indexOf(&quot;b&quot;)&amp;&amp;y(d.baxis,h.b),m.push(&quot;y: &quot;+s.yLabel),-1!==v.indexOf(&quot;text&quot;)&amp;&amp;i(h,p,m),s.extraText=m.join(&quot;&lt;br&gt;&quot;)}return o}function y(t,e){var r;r=t.labelprefix&amp;&amp;t.labelprefix.length&gt;0?t.labelprefix.replace(/ = $/,&quot;&quot;):t._hovertitle,m.push(r+&quot;: &quot;+e.toFixed(3)+t.labelsuffix)}}},{&quot;../../lib&quot;:778,&quot;../scatter/hover&quot;:1198}],1227:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../scatter/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;scattercarpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;svg&quot;,&quot;carpet&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;carpetDependent&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/select&quot;:1209,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1221,&quot;./calc&quot;:1222,&quot;./defaults&quot;:1223,&quot;./event_data&quot;:1224,&quot;./format_labels&quot;:1225,&quot;./hover&quot;:1226,&quot;./plot&quot;:1228}],1228:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../components/drawing&quot;);e.exports=function(t,e,r,o){var s,l,c,u=r[0][0].carpet,f={xaxis:i.getFromId(t,u.xaxis||&quot;x&quot;),yaxis:i.getFromId(t,u.yaxis||&quot;y&quot;),plot:e.plot};for(n(t,f,r,o),s=0;s&lt;r.length;s++)l=r[s][0].trace,c=o.selectAll(&quot;g.trace&quot;+l.uid+&quot; .js-line&quot;),a.setClipUrl(c,r[s][0].carpet._clipPathId,t)}},{&quot;../../components/drawing&quot;:665,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/plot&quot;:1208}],1229:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scatter/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../plot_api/edit_types&quot;).overrideAll,f=a.marker,h=a.line,p=f.line;e.exports=u({lon:{valType:&quot;data_array&quot;},lat:{valType:&quot;data_array&quot;},locations:{valType:&quot;data_array&quot;},locationmode:{valType:&quot;enumerated&quot;,values:[&quot;ISO-3&quot;,&quot;USA-states&quot;,&quot;country names&quot;,&quot;geojson-id&quot;],dflt:&quot;ISO-3&quot;},geojson:{valType:&quot;any&quot;,editType:&quot;calc&quot;},featureidkey:{valType:&quot;string&quot;,editType:&quot;calc&quot;,dflt:&quot;id&quot;},mode:c({},a.mode,{dflt:&quot;markers&quot;}),text:c({},a.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;lat&quot;,&quot;lon&quot;,&quot;location&quot;,&quot;text&quot;]}),hovertext:c({},a.hovertext,{}),textfont:a.textfont,textposition:a.textposition,line:{color:h.color,width:h.width,dash:l},connectgaps:a.connectgaps,marker:c({symbol:f.symbol,opacity:f.opacity,size:f.size,sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,colorbar:f.colorbar,line:c({width:p.width},s(&quot;marker.line&quot;)),gradient:f.gradient},s(&quot;marker&quot;)),fill:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;toself&quot;],dflt:&quot;none&quot;},fillcolor:a.fillcolor,selected:a.selected,unselected:a.unselected,hoverinfo:c({},o.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;location&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n()},&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing/attributes&quot;:664,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1230:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../scatter/colorscale_calc&quot;),o=t(&quot;../scatter/arrays_to_calcdata&quot;),s=t(&quot;../scatter/calc_selection&quot;),l=t(&quot;../../lib&quot;)._;function c(t){return t&amp;&amp;&quot;string&quot;==typeof t}e.exports=function(t,e){var r,u=Array.isArray(e.locations),f=u?e.locations.length:e._length,h=new Array(f);r=e.geojson?function(t){return c(t)||n(t)}:c;for(var p=0;p&lt;f;p++){var d=h[p]={};if(u){var g=e.locations[p];d.loc=r(g)?g:null}else{var m=e.lon[p],v=e.lat[p];n(m)&amp;&amp;n(v)?d.lonlat=[+m,+v]:d.lonlat=[i,i]}}return o(h,e),a(t,e),s(h,e),f&amp;&amp;(h[0].t={labels:{lat:l(t,&quot;lat:&quot;)+&quot; &quot;,lon:l(t,&quot;lon:&quot;)+&quot; &quot;}}),h}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1231:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/text_defaults&quot;),l=t(&quot;../scatter/fillcolor_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}var h,p=f(&quot;locations&quot;);if(p&amp;&amp;p.length){var d,g=f(&quot;geojson&quot;);(&quot;string&quot;==typeof g&amp;&amp;&quot;&quot;!==g||n.isPlainObject(g))&amp;&amp;(d=&quot;geojson-id&quot;),&quot;geojson-id&quot;===f(&quot;locationmode&quot;,d)&amp;&amp;f(&quot;featureidkey&quot;),h=p.length}else{var m=f(&quot;lon&quot;)||[],v=f(&quot;lat&quot;)||[];h=Math.min(m.length,v.length)}h?(e._length=h,f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,u,f),f(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;a(t,e,r,u,f,{gradient:!0}),i.hasText(e)&amp;&amp;(f(&quot;texttemplate&quot;),s(t,e,u,f)),f(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1229}],1232:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){t.lon=e.lon,t.lat=e.lat,t.location=e.loc?e.loc:null;var a=n[i];return a.fIn&amp;&amp;a.fIn.properties&amp;&amp;(t.properties=a.fIn.properties),t}},{}],1233:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.geo]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=n.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=n.tickText(a,a.c2l(o[1]),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1234:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../scatter/get_trace_color&quot;),o=t(&quot;../../lib&quot;).fillText,s=t(&quot;./attributes&quot;);e.exports=function(t,e,r){var l=t.cd,c=l[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=h.projection.isLonLatOverEdges,d=h.project;if(n.getClosest(l,(function(t){var n=t.lonlat;if(n[0]===i)return 1/0;if(p(n))return 1/0;var a=d(n),o=d([e,r]),s=Math.abs(a[0]-o[0]),l=Math.abs(a[1]-o[1]),c=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(s*s+l*l)-c,1-3/c)}),t),!1!==t.index){var g=l[t.index],m=g.lonlat,v=[u.c2p(m),f.c2p(m)],y=g.mrc||1;t.x0=v[0]-y,t.x1=v[0]+y,t.y0=v[1]-y,t.y1=v[1]+y,t.loc=g.loc,t.lon=m[0],t.lat=m[1];var x={};x[c.geo]={_subplot:h};var b=c._module.formatLabels(g,c,x);return t.lonLabel=b.lonLabel,t.latLabel=b.latLabel,t.color=a(c,g),t.extraText=function(t,e,r,n){if(t.hovertemplate)return;var i=e.hi||t.hoverinfo,a=&quot;all&quot;===i?s.hoverinfo.flags:i.split(&quot;+&quot;),l=-1!==a.indexOf(&quot;location&quot;)&amp;&amp;Array.isArray(t.locations),c=-1!==a.indexOf(&quot;lon&quot;),u=-1!==a.indexOf(&quot;lat&quot;),f=-1!==a.indexOf(&quot;text&quot;),h=[];function p(t){return t+&quot;\xb0&quot;}l?h.push(e.loc):c&amp;&amp;u?h.push(&quot;(&quot;+p(r.lonLabel)+&quot;, &quot;+p(r.latLabel)+&quot;)&quot;):c?h.push(n.lon+p(r.lonLabel)):u&amp;&amp;h.push(n.lat+p(r.latLabel));f&amp;&amp;o(e,t,h);return h.join(&quot;&lt;br&gt;&quot;)}(c,g,t,l[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}}},{&quot;../../components/fx&quot;:683,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/get_trace_color&quot;:1197,&quot;./attributes&quot;:1229}],1235:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),calcGeoJSON:t(&quot;./plot&quot;).calcGeoJSON,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;scattergeo&quot;,basePlotModule:t(&quot;../../plots/geo&quot;),categories:[&quot;geo&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/geo&quot;:860,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1229,&quot;./calc&quot;:1230,&quot;./defaults&quot;:1231,&quot;./event_data&quot;:1232,&quot;./format_labels&quot;:1233,&quot;./hover&quot;:1234,&quot;./plot&quot;:1236,&quot;./select&quot;:1237,&quot;./style&quot;:1238}],1236:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/topojson_utils&quot;).getTopojsonFeatures,o=t(&quot;../../lib/geojson_utils&quot;),s=t(&quot;../../lib/geo_location_utils&quot;),l=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,c=t(&quot;../../constants/numerical&quot;).BADNUM,u=t(&quot;../scatter/calc&quot;).calcMarkerSize,f=t(&quot;../scatter/subtypes&quot;),h=t(&quot;./style&quot;);e.exports={calcGeoJSON:function(t,e){var r,n,i=t[0].trace,o=e[i.geo],f=o._subplot,h=i._length;if(Array.isArray(i.locations)){var p=i.locationmode,d=&quot;geojson-id&quot;===p?s.extractTraceFeature(t):a(i,f.topojson);for(r=0;r&lt;h;r++){n=t[r];var g=&quot;geojson-id&quot;===p?n.fOut:s.locationToFeature(p,n.loc,d);n.lonlat=g?g.properties.ct:[c,c]}}var m,v,y={padded:!0};if(&quot;geojson&quot;===o.fitbounds&amp;&amp;&quot;geojson-id&quot;===i.locationmode){var x=s.computeBbox(s.getTraceGeojson(i));m=[x[0],x[2]],v=[x[1],x[3]]}else{for(m=new Array(h),v=new Array(h),r=0;r&lt;h;r++)n=t[r],m[r]=n.lonlat[0],v[r]=n.lonlat[1];y.ppad=u(i,h)}i._extremes.lon=l(o.lonaxis._ax,m,y),i._extremes.lat=l(o.lataxis._ax,v,y)},plot:function(t,e,r){var a=e.layers.frontplot.select(&quot;.scatterlayer&quot;),s=i.makeTraceGroups(a,r,&quot;trace scattergeo&quot;);function l(t,e){t.lonlat[0]===c&amp;&amp;n.select(e).remove()}s.selectAll(&quot;*&quot;).remove(),s.each((function(e){var r=n.select(this),a=e[0].trace;if(f.hasLines(a)||&quot;none&quot;!==a.fill){var s=o.calcTraceToLineCoords(e),c=&quot;none&quot;!==a.fill?o.makePolygon(s):o.makeLine(s);r.selectAll(&quot;path.js-line&quot;).data([{geojson:c,trace:a}]).enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0).style(&quot;stroke-miterlimit&quot;,2)}f.hasMarkers(a)&amp;&amp;r.selectAll(&quot;path.point&quot;).data(i.identity).enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0).each((function(t){l(t,this)})),f.hasText(a)&amp;&amp;r.selectAll(&quot;g&quot;).data(i.identity).enter().append(&quot;g&quot;).append(&quot;text&quot;).each((function(t){l(t,this)})),h(t,e)}))}}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/geojson_utils&quot;:772,&quot;../../lib/topojson_utils&quot;:806,&quot;../../plots/cartesian/autorange&quot;:827,&quot;../scatter/calc&quot;:1188,&quot;../scatter/subtypes&quot;:1212,&quot;./style&quot;:1238,d3:169}],1237:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/subtypes&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e){var r,a,o,s,l,c=t.cd,u=t.xaxis,f=t.yaxis,h=[],p=c[0].trace;if(!n.hasMarkers(p)&amp;&amp;!n.hasText(p))return[];if(!1===e)for(l=0;l&lt;c.length;l++)c[l].selected=0;else for(l=0;l&lt;c.length;l++)(a=(r=c[l]).lonlat)[0]!==i&amp;&amp;(o=u.c2p(a),s=f.c2p(a),e.contains([o,s],null,l,t)?(h.push({pointNumber:l,lon:a[0],lat:a[1]}),r.selected=1):r.selected=0);return h}},{&quot;../../constants/numerical&quot;:753,&quot;../scatter/subtypes&quot;:1212}],1238:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../scatter/style&quot;),s=o.stylePoints,l=o.styleText;e.exports=function(t,e){e&amp;&amp;function(t,e){var r=e[0].trace,o=e[0].node3;o.style(&quot;opacity&quot;,e[0].trace.opacity),s(o,r,t),l(o,r,t),o.selectAll(&quot;path.js-line&quot;).style(&quot;fill&quot;,&quot;none&quot;).each((function(t){var e=n.select(this),r=t.trace,o=r.line||{};e.call(a.stroke,o.color).call(i.dashLine,o.dash||&quot;&quot;,o.width||0),&quot;none&quot;!==r.fill&amp;&amp;e.call(a.fill,r.fillcolor)}))}(t,e)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../scatter/style&quot;:1211,d3:169}],1239:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/edit_types&quot;).overrideAll,l=t(&quot;./constants&quot;).DASHES,c=i.line,u=i.marker,f=u.line,h=e.exports=s({x:i.x,x0:i.x0,dx:i.dx,y:i.y,y0:i.y0,dy:i.dy,xperiod:i.xperiod,yperiod:i.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:i.xperiodalignment,yperiodalignment:i.yperiodalignment,text:i.text,hovertext:i.hovertext,textposition:i.textposition,textfont:i.textfont,mode:{valType:&quot;flaglist&quot;,flags:[&quot;lines&quot;,&quot;markers&quot;,&quot;text&quot;],extras:[&quot;none&quot;]},line:{color:c.color,width:c.width,shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},dash:{valType:&quot;enumerated&quot;,values:Object.keys(l),dflt:&quot;solid&quot;}},marker:o({},a(&quot;marker&quot;),{symbol:u.symbol,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,opacity:u.opacity,colorbar:u.colorbar,line:o({},a(&quot;marker.line&quot;),{width:f.width})}),connectgaps:i.connectgaps,fill:o({},i.fill,{dflt:&quot;none&quot;}),fillcolor:i.fillcolor,selected:{marker:i.selected.marker,textfont:i.selected.textfont},unselected:{marker:i.unselected.marker,textfont:i.unselected.textfont},opacity:n.opacity},&quot;calc&quot;,&quot;nested&quot;);h.x.editType=h.y.editType=h.x0.editType=h.y0.editType=&quot;calc+clearAxisTypes&quot;,h.hovertemplate=i.hovertemplate,h.texttemplate=i.texttemplate},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:1241}],1240:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/point-cluster&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,s=t(&quot;../../plots/cartesian/align_period&quot;),l=t(&quot;../scatter/calc&quot;),c=l.calcMarkerSize,u=l.calcAxisExpansion,f=l.setFirstScatter,h=t(&quot;../scatter/colorscale_calc&quot;),p=t(&quot;./convert&quot;),d=t(&quot;./scene_update&quot;),g=t(&quot;../../constants/numerical&quot;).BADNUM,m=t(&quot;./constants&quot;).TOO_MANY_POINTS;function v(t,e,r){var n=t._extremes[e._id],i=o(e,r._bnds,{padded:!0});n.min=n.min.concat(i.min),n.max=n.max.concat(i.max)}e.exports=function(t,e){var r,o,l,y=t._fullLayout,x=a.getFromId(t,e.xaxis),b=a.getFromId(t,e.yaxis),_=y._plots[e.xaxis+e.yaxis],w=e._length,T=w&gt;=m,k=2*w,M={},A=x.makeCalcdata(e,&quot;x&quot;),S=b.makeCalcdata(e,&quot;y&quot;),E=s(e,x,&quot;x&quot;,A),C=s(e,b,&quot;y&quot;,S);e._x=E,e._y=C,e.xperiodalignment&amp;&amp;(e._origX=A),e.yperiodalignment&amp;&amp;(e._origY=S);var L=new Array(k);for(r=0;r&lt;w;r++)o=E[r],l=C[r],L[2*r]=o===g?NaN:o,L[2*r+1]=l===g?NaN:l;if(&quot;log&quot;===x.type)for(r=0;r&lt;k;r+=2)L[r]=x.c2l(L[r]);if(&quot;log&quot;===b.type)for(r=1;r&lt;k;r+=2)L[r]=b.c2l(L[r]);if(T&amp;&amp;&quot;log&quot;!==x.type&amp;&amp;&quot;log&quot;!==b.type)M.tree=n(L);else{var I=M.ids=new Array(w);for(r=0;r&lt;w;r++)I[r]=r}h(t,e);var P,z=function(t,e,r,n,a,o){var s=p.style(t,r);s.marker&amp;&amp;(s.marker.positions=n);s.line&amp;&amp;n.length&gt;1&amp;&amp;i.extendFlat(s.line,p.linePositions(t,r,n));if(s.errorX||s.errorY){var l=p.errorBarPositions(t,r,n,a,o);s.errorX&amp;&amp;i.extendFlat(s.errorX,l.x),s.errorY&amp;&amp;i.extendFlat(s.errorY,l.y)}s.text&amp;&amp;(i.extendFlat(s.text,{positions:n},p.textPosition(t,r,s.text,s.marker)),i.extendFlat(s.textSel,{positions:n},p.textPosition(t,r,s.text,s.markerSel)),i.extendFlat(s.textUnsel,{positions:n},p.textPosition(t,r,s.text,s.markerUnsel)));return s}(t,0,e,L,E,C),O=d(t,_);return f(y,e),T?z.marker&amp;&amp;(P=2*(z.marker.sizeAvg||Math.max(z.marker.size,3))):P=c(e,w),u(t,e,x,b,E,C,P),z.errorX&amp;&amp;v(e,x,z.errorX),z.errorY&amp;&amp;v(e,b,z.errorY),z.fill&amp;&amp;!O.fill2d&amp;&amp;(O.fill2d=!0),z.marker&amp;&amp;!O.scatter2d&amp;&amp;(O.scatter2d=!0),z.line&amp;&amp;!O.line2d&amp;&amp;(O.line2d=!0),!z.errorX&amp;&amp;!z.errorY||O.error2d||(O.error2d=!0),z.text&amp;&amp;!O.glText&amp;&amp;(O.glText=!0),z.marker&amp;&amp;(z.marker.snap=w),O.lineOptions.push(z.line),O.errorXOptions.push(z.errorX),O.errorYOptions.push(z.errorY),O.fillOptions.push(z.fill),O.markerOptions.push(z.marker),O.markerSelectedOptions.push(z.markerSel),O.markerUnselectedOptions.push(z.markerUnsel),O.textOptions.push(z.text),O.textSelectedOptions.push(z.textSel),O.textUnselectedOptions.push(z.textUnsel),O.selectBatch.push([]),O.unselectBatch.push([]),M._scene=O,M.index=O.count,M.x=E,M.y=C,M.positions=L,O.count++,[{x:!1,y:!1,t:M,trace:e}]}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/autorange&quot;:827,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../scatter/calc&quot;:1188,&quot;../scatter/colorscale_calc&quot;:1190,&quot;./constants&quot;:1241,&quot;./convert&quot;:1242,&quot;./scene_update&quot;:1250,&quot;@plotly/point-cluster&quot;:57}],1241:[function(t,e,r){&quot;use strict&quot;;e.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:20,SYMBOL_STROKE:1,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},{}],1242:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;svg-path-sdf&quot;),a=t(&quot;color-normalize&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../plots/cartesian/axis_ids&quot;),u=t(&quot;../../lib/gl_format_color&quot;).formatColor,f=t(&quot;../scatter/subtypes&quot;),h=t(&quot;../scatter/make_bubble_size_func&quot;),p=t(&quot;./helpers&quot;),d=t(&quot;./constants&quot;),g=t(&quot;../../constants/interactions&quot;).DESELECTDIM,m={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},v=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue;function y(t,e){var r,i=t._fullLayout,a=e._length,o=e.textfont,l=e.textposition,c=Array.isArray(l)?l:[l],u=o.color,f=o.size,h=o.family,p={},d=e.texttemplate;if(d){p.text=[];var g=i._d3locale,m=Array.isArray(d),y=m?Math.min(d.length,a):a,x=m?function(t){return d[t]}:function(){return d};for(r=0;r&lt;y;r++){var b={i:r},_=e._module.formatLabels(b,e,i),w={};v(w,e,r);var T=e._meta||{};p.text.push(s.texttemplateString(x(r),_,g,w,b,T))}}else Array.isArray(e.text)&amp;&amp;e.text.length&lt;a?p.text=e.text.slice():p.text=e.text;if(Array.isArray(p.text))for(r=p.text.length;r&lt;a;r++)p.text[r]=&quot;&quot;;for(p.opacity=e.opacity,p.font={},p.align=[],p.baseline=[],r=0;r&lt;c.length;r++){var k=c[r].split(/\s+/);switch(k[1]){case&quot;left&quot;:p.align.push(&quot;right&quot;);break;case&quot;right&quot;:p.align.push(&quot;left&quot;);break;default:p.align.push(k[1])}switch(k[0]){case&quot;top&quot;:p.baseline.push(&quot;bottom&quot;);break;case&quot;bottom&quot;:p.baseline.push(&quot;top&quot;);break;default:p.baseline.push(k[0])}}if(Array.isArray(u))for(p.color=new Array(a),r=0;r&lt;a;r++)p.color[r]=u[r];else p.color=u;if(s.isArrayOrTypedArray(f)||Array.isArray(h))for(p.font=new Array(a),r=0;r&lt;a;r++){var M=p.font[r]={};M.size=s.isTypedArray(f)?f[r]:Array.isArray(f)?n(f[r])?f[r]:0:f,M.family=Array.isArray(h)?h[r]:h}else p.font={size:f,family:h};return p}function x(t){var e,r,n=t._length,i=t.marker,o={},l=s.isArrayOrTypedArray(i.symbol),c=s.isArrayOrTypedArray(i.color),f=s.isArrayOrTypedArray(i.line.color),d=s.isArrayOrTypedArray(i.opacity),g=s.isArrayOrTypedArray(i.size),m=s.isArrayOrTypedArray(i.line.width);if(l||(r=p.isOpenSymbol(i.symbol)),l||c||f||d){o.colors=new Array(n),o.borderColors=new Array(n);var v=u(i,i.opacity,n),y=u(i.line,i.opacity,n);if(!Array.isArray(y[0])){var x=y;for(y=Array(n),e=0;e&lt;n;e++)y[e]=x}if(!Array.isArray(v[0])){var b=v;for(v=Array(n),e=0;e&lt;n;e++)v[e]=b}for(o.colors=v,o.borderColors=y,e=0;e&lt;n;e++){if(l){var _=i.symbol[e];r=p.isOpenSymbol(_)}r&amp;&amp;(y[e]=v[e].slice(),v[e]=v[e].slice(),v[e][3]=0)}o.opacity=t.opacity}else r?(o.color=a(i.color,&quot;uint8&quot;),o.color[3]=0,o.borderColor=a(i.color,&quot;uint8&quot;)):(o.color=a(i.color,&quot;uint8&quot;),o.borderColor=a(i.line.color,&quot;uint8&quot;)),o.opacity=t.opacity*i.opacity;if(l)for(o.markers=new Array(n),e=0;e&lt;n;e++)o.markers[e]=E(i.symbol[e]);else o.marker=E(i.symbol);var w,T=h(t);if(g||m){var k,M=o.sizes=new Array(n),A=o.borderSizes=new Array(n),S=0;if(g){for(e=0;e&lt;n;e++)M[e]=T(i.size[e]),S+=M[e];k=S/n}else for(w=T(i.size),e=0;e&lt;n;e++)M[e]=w;if(m)for(e=0;e&lt;n;e++)A[e]=i.line.width[e]/2;else for(w=i.line.width/2,e=0;e&lt;n;e++)A[e]=w;o.sizeAvg=k}else o.size=T(i&amp;&amp;i.size||10),o.borderSizes=T(i.line.width);return o}function b(t,e){var r=t.marker,n={};return e?(e.marker&amp;&amp;e.marker.symbol?n=x(s.extendFlat({},r,e.marker)):e.marker&amp;&amp;(e.marker.size&amp;&amp;(n.size=e.marker.size/2),e.marker.color&amp;&amp;(n.colors=e.marker.color),void 0!==e.marker.opacity&amp;&amp;(n.opacity=e.marker.opacity)),n):n}function _(t,e,r){var n={};if(!r)return n;if(r.textfont){var i={opacity:1,text:e.text,texttemplate:e.texttemplate,textposition:e.textposition,textfont:s.extendFlat({},e.textfont)};r.textfont&amp;&amp;s.extendFlat(i.textfont,r.textfont),n=y(t,i)}return n}function w(t,e){var r={capSize:2*e.width,lineWidth:e.thickness,color:e.color};return e.copy_ystyle&amp;&amp;(r=t.error_y),r}var T=d.SYMBOL_SDF_SIZE,k=d.SYMBOL_SIZE,M=d.SYMBOL_STROKE,A={},S=l.symbolFuncs[0](.05*k);function E(t){if(&quot;circle&quot;===t)return null;var e,r,n=l.symbolNumber(t),a=l.symbolFuncs[n%100],o=!!l.symbolNoDot[n%100],s=!!l.symbolNoFill[n%100],c=p.isDotSymbol(t);return A[t]?A[t]:(e=c&amp;&amp;!o?a(1.1*k)+S:a(k),r=i(e,{w:T,h:T,viewBox:[-k,-k,k,k],stroke:s?M:-M}),A[t]=r,r||null)}e.exports={style:function(t,e){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0};if(!0!==e.visible)return n;if(f.hasText(e)&amp;&amp;(n.text=y(t,e),n.textSel=_(t,e,e.selected),n.textUnsel=_(t,e,e.unselected)),f.hasMarkers(e)&amp;&amp;(n.marker=x(e),n.markerSel=b(e,e.selected),n.markerUnsel=b(e,e.unselected),!e.unselected&amp;&amp;s.isArrayOrTypedArray(e.marker.opacity))){var i=e.marker.opacity;for(n.markerUnsel.opacity=new Array(i.length),r=0;r&lt;i.length;r++)n.markerUnsel.opacity[r]=g*i[r]}if(f.hasLines(e)){n.line={overlay:!0,thickness:e.line.width,color:e.line.color,opacity:e.opacity};var a=(d.DASHES[e.line.dash]||[1]).slice();for(r=0;r&lt;a.length;++r)a[r]*=e.line.width;n.line.dashes=a}return e.error_x&amp;&amp;e.error_x.visible&amp;&amp;(n.errorX=w(e,e.error_x)),e.error_y&amp;&amp;e.error_y.visible&amp;&amp;(n.errorY=w(e,e.error_y)),e.fill&amp;&amp;&quot;none&quot;!==e.fill&amp;&amp;(n.fill={closed:!0,fill:e.fillcolor,thickness:0}),n},markerStyle:x,markerSelection:b,linePositions:function(t,e,r){var n,i,a=r.length,o=a/2;if(f.hasLines(e)&amp;&amp;o)if(&quot;hv&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i+2],r[2*i+1]));n.push(r[a-2],r[a-1])}else if(&quot;hvh&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var s=(r[2*i]+r[2*i+2])/2;n.push(r[2*i],r[2*i+1],s,r[2*i+1],s,r[2*i+3])}n.push(r[a-2],r[a-1])}else if(&quot;vhv&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var l=(r[2*i+1]+r[2*i+3])/2;n.push(r[2*i],r[2*i+1],r[2*i],l,r[2*i+2],l)}n.push(r[a-2],r[a-1])}else if(&quot;vh&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+3]));n.push(r[a-2],r[a-1])}else n=r;var c=!1;for(i=0;i&lt;n.length;i++)if(isNaN(n[i])){c=!0;break}var u=c||n.length&gt;d.TOO_MANY_POINTS||f.hasMarkers(e)?&quot;rect&quot;:&quot;round&quot;;if(c&amp;&amp;e.connectgaps){var h=n[0],p=n[1];for(i=0;i&lt;n.length;i+=2)isNaN(n[i])||isNaN(n[i+1])?(n[i]=h,n[i+1]=p):(h=n[i],p=n[i+1])}return{join:u,positions:n}},errorBarPositions:function(t,e,r,i,a){var s=o.getComponentMethod(&quot;errorbars&quot;,&quot;makeComputeError&quot;),l=c.getFromId(t,e.xaxis),u=c.getFromId(t,e.yaxis),f=r.length/2,h={};function p(t,i){var a=i._id.charAt(0),o=e[&quot;error_&quot;+a];if(o&amp;&amp;o.visible&amp;&amp;(&quot;linear&quot;===i.type||&quot;log&quot;===i.type)){for(var l=s(o),c={x:0,y:1}[a],u={x:[0,1,2,3],y:[2,3,0,1]}[a],p=new Float64Array(4*f),d=1/0,g=-1/0,m=0,v=0;m&lt;f;m++,v+=4){var y=t[m];if(n(y)){var x=r[2*m+c],b=l(y,m),_=b[0],w=b[1];if(n(_)&amp;&amp;n(w)){var T=y-_,k=y+w;p[v+u[0]]=x-i.c2l(T),p[v+u[1]]=i.c2l(k)-x,p[v+u[2]]=0,p[v+u[3]]=0,d=Math.min(d,y-_),g=Math.max(g,y+w)}}}h[a]={positions:r,errors:p,_bnds:[d,g]}}}return p(i,l),p(a,u),h},textPosition:function(t,e,r,n){var i,a=e._length,o={};if(f.hasMarkers(e)){var s=r.font,l=r.align,c=r.baseline;for(o.offset=new Array(a),i=0;i&lt;a;i++){var u=n.sizes?n.sizes[i]:n.size,h=Array.isArray(s)?s[i].size:s.size,p=Array.isArray(l)?l.length&gt;1?l[i]:l[0]:l,d=Array.isArray(c)?c.length&gt;1?c[i]:c[0]:c,g=m[p],v=m[d],y=u?u/.8+1:0,x=-v*y-.5*v;o.offset[i]=[g*y/h,x/h]}}return o}}},{&quot;../../components/drawing&quot;:665,&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/interactions&quot;:752,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../registry&quot;:911,&quot;../scatter/make_bubble_size_func&quot;:1204,&quot;../scatter/subtypes&quot;:1212,&quot;./constants&quot;:1241,&quot;./helpers&quot;:1246,&quot;color-normalize&quot;:125,&quot;fast-isnumeric&quot;:241,&quot;svg-path-sdf&quot;:574}],1243:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./helpers&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../scatter/constants&quot;),l=t(&quot;../scatter/subtypes&quot;),c=t(&quot;../scatter/xy_defaults&quot;),u=t(&quot;../scatter/period_defaults&quot;),f=t(&quot;../scatter/marker_defaults&quot;),h=t(&quot;../scatter/line_defaults&quot;),p=t(&quot;../scatter/fillcolor_defaults&quot;),d=t(&quot;../scatter/text_defaults&quot;);e.exports=function(t,e,r,g){function m(r,i){return n.coerce(t,e,o,r,i)}var v=!!t.marker&amp;&amp;a.isOpenSymbol(t.marker.symbol),y=l.isBubble(t),x=c(t,e,g,m);if(x){u(t,e,g,m);var b=x&lt;s.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;;m(&quot;text&quot;),m(&quot;hovertext&quot;),m(&quot;hovertemplate&quot;),m(&quot;mode&quot;,b),l.hasLines(e)&amp;&amp;(m(&quot;connectgaps&quot;),h(t,e,r,g,m),m(&quot;line.shape&quot;)),l.hasMarkers(e)&amp;&amp;(f(t,e,r,g,m),m(&quot;marker.line.width&quot;,v||y?1:0)),l.hasText(e)&amp;&amp;(m(&quot;texttemplate&quot;),d(t,e,g,m));var _=(e.line||{}).color,w=(e.marker||{}).color;m(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;p(t,e,r,m);var T=i.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);T(t,e,_||w||r,{axis:&quot;y&quot;}),T(t,e,_||w||r,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,m)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:1239,&quot;./helpers&quot;:1246}],1244:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../constants/interactions&quot;).DESELECTDIM;e.exports={styleTextSelection:function(t){var e,r,o=t[0],s=o.trace,l=o.t,c=l._scene,u=l.index,f=c.selectBatch[u],h=c.unselectBatch[u],p=c.textOptions[u],d=c.textSelectedOptions[u]||{},g=c.textUnselectedOptions[u]||{},m=n.extendFlat({},p);if(f.length||h.length){var v=d.color,y=g.color,x=p.color,b=Array.isArray(x);for(m.color=new Array(s._length),e=0;e&lt;f.length;e++)r=f[e],m.color[r]=v||(b?x[r]:x);for(e=0;e&lt;h.length;e++){r=h[e];var _=b?x[r]:x;m.color[r]=y||(v?_:i.addOpacity(_,a))}}c.glText[u].update(m)}}},{&quot;../../components/color&quot;:643,&quot;../../constants/interactions&quot;:752,&quot;../../lib&quot;:778}],1245:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/format_labels&quot;);e.exports=function(t,e,r){var i=t.i;return&quot;x&quot;in t||(t.x=e._x[i]),&quot;y&quot;in t||(t.y=e._y[i]),n(t,e,r)}},{&quot;../scatter/format_labels&quot;:1196}],1246:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);r.isOpenSymbol=function(t){return&quot;string&quot;==typeof t?n.OPEN_RE.test(t):t%200&gt;100},r.isDotSymbol=function(t){return&quot;string&quot;==typeof t?n.DOT_RE.test(t):t&gt;200}},{&quot;./constants&quot;:1241}],1247:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/get_trace_color&quot;);function o(t,e,r,o){var s=t.xa,l=t.ya,c=t.distance,u=t.dxy,f=t.index,h={pointNumber:f,x:e[f],y:r[f]};h.tx=Array.isArray(o.text)?o.text[f]:o.text,h.htx=Array.isArray(o.hovertext)?o.hovertext[f]:o.hovertext,h.data=Array.isArray(o.customdata)?o.customdata[f]:o.customdata,h.tp=Array.isArray(o.textposition)?o.textposition[f]:o.textposition;var p=o.textfont;p&amp;&amp;(h.ts=i.isArrayOrTypedArray(p.size)?p.size[f]:p.size,h.tc=Array.isArray(p.color)?p.color[f]:p.color,h.tf=Array.isArray(p.family)?p.family[f]:p.family);var d=o.marker;d&amp;&amp;(h.ms=i.isArrayOrTypedArray(d.size)?d.size[f]:d.size,h.mo=i.isArrayOrTypedArray(d.opacity)?d.opacity[f]:d.opacity,h.mx=i.isArrayOrTypedArray(d.symbol)?d.symbol[f]:d.symbol,h.mc=i.isArrayOrTypedArray(d.color)?d.color[f]:d.color);var g=d&amp;&amp;d.line;g&amp;&amp;(h.mlc=Array.isArray(g.color)?g.color[f]:g.color,h.mlw=i.isArrayOrTypedArray(g.width)?g.width[f]:g.width);var m=d&amp;&amp;d.gradient;m&amp;&amp;&quot;none&quot;!==m.type&amp;&amp;(h.mgt=Array.isArray(m.type)?m.type[f]:m.type,h.mgc=Array.isArray(m.color)?m.color[f]:m.color);var v=s.c2p(h.x,!0),y=l.c2p(h.y,!0),x=h.mrc||1,b=o.hoverlabel;b&amp;&amp;(h.hbg=Array.isArray(b.bgcolor)?b.bgcolor[f]:b.bgcolor,h.hbc=Array.isArray(b.bordercolor)?b.bordercolor[f]:b.bordercolor,h.hts=i.isArrayOrTypedArray(b.font.size)?b.font.size[f]:b.font.size,h.htc=Array.isArray(b.font.color)?b.font.color[f]:b.font.color,h.htf=Array.isArray(b.font.family)?b.font.family[f]:b.font.family,h.hnl=i.isArrayOrTypedArray(b.namelength)?b.namelength[f]:b.namelength);var _=o.hoverinfo;_&amp;&amp;(h.hi=Array.isArray(_)?_[f]:_);var w=o.hovertemplate;w&amp;&amp;(h.ht=Array.isArray(w)?w[f]:w);var T={};T[t.index]=h;var k=o._origX,M=o._origY,A=i.extendFlat({},t,{color:a(o,h),x0:v-x,x1:v+x,xLabelVal:k?k[f]:h.x,y0:y-x,y1:y+x,yLabelVal:M?M[f]:h.y,cd:T,distance:c,spikeDistance:u,hovertemplate:h.ht});return h.htx?A.text=h.htx:h.tx?A.text=h.tx:o.text&amp;&amp;(A.text=o.text),i.fillText(h,o,A),n.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(h,o,A),A}e.exports={hoverPoints:function(t,e,r,n){var i,a,s,l,c,u,f,h,p,d=t.cd,g=d[0].t,m=d[0].trace,v=t.xa,y=t.ya,x=g.x,b=g.y,_=v.c2p(e),w=y.c2p(r),T=t.distance;if(g.tree){var k=v.p2c(_-T),M=v.p2c(_+T),A=y.p2c(w-T),S=y.p2c(w+T);i=&quot;x&quot;===n?g.tree.range(Math.min(k,M),Math.min(y._rl[0],y._rl[1]),Math.max(k,M),Math.max(y._rl[0],y._rl[1])):g.tree.range(Math.min(k,M),Math.min(A,S),Math.max(k,M),Math.max(A,S))}else i=g.ids;var E=T;if(&quot;x&quot;===n)for(c=0;c&lt;i.length;c++)s=x[i[c]],(u=Math.abs(v.c2p(s)-_))&lt;E&amp;&amp;(E=u,f=y.c2p(b[i[c]])-w,p=Math.sqrt(u*u+f*f),a=i[c]);else for(c=i.length-1;c&gt;-1;c--)s=x[i[c]],l=b[i[c]],u=v.c2p(s)-_,f=y.c2p(l)-w,(h=Math.sqrt(u*u+f*f))&lt;E&amp;&amp;(E=p=h,a=i[c]);return t.index=a,t.distance=E,t.dxy=p,void 0===a?[t]:[o(t,x,b,m)]},calcHover:o}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../scatter/get_trace_color&quot;:1197}],1248:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./hover&quot;);e.exports={moduleType:&quot;trace&quot;,name:&quot;scattergl&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;cartesian&quot;,&quot;symbols&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../scatter/cross_trace_defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:n.hoverPoints,selectPoints:t(&quot;./select&quot;),meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../scatter/cross_trace_defaults&quot;:1193,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1239,&quot;./calc&quot;:1240,&quot;./defaults&quot;:1243,&quot;./format_labels&quot;:1245,&quot;./hover&quot;:1247,&quot;./plot&quot;:1249,&quot;./select&quot;:1251}],1249:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-scatter2d&quot;),i=t(&quot;regl-line2d&quot;),a=t(&quot;regl-error2d&quot;),o=t(&quot;gl-text&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../components/dragelement/helpers&quot;).selectMode,c=t(&quot;../../lib/prepare_regl&quot;),u=t(&quot;../scatter/subtypes&quot;),f=t(&quot;../scatter/link_traces&quot;),h=t(&quot;./edit_style&quot;).styleTextSelection;function p(t,e,r){var n=t._size,i=t.width,a=t.height;return[n.l+e.domain[0]*n.w,n.b+r.domain[0]*n.h,i-n.r-(1-e.domain[1])*n.w,a-n.t-(1-r.domain[1])*n.h]}e.exports=function(t,e,r){if(r.length){var d,g,m=t._fullLayout,v=e._scene,y=e.xaxis,x=e.yaxis;if(v)if(c(t,[&quot;ANGLE_instanced_arrays&quot;,&quot;OES_element_index_uint&quot;])){var b=v.count,_=m._glcanvas.data()[0].regl;if(f(t,e,r),v.dirty){if(!0===v.error2d&amp;&amp;(v.error2d=a(_)),!0===v.line2d&amp;&amp;(v.line2d=i(_)),!0===v.scatter2d&amp;&amp;(v.scatter2d=n(_,{constPointSize:!0})),!0===v.fill2d&amp;&amp;(v.fill2d=i(_)),!0===v.glText)for(v.glText=new Array(b),d=0;d&lt;b;d++)v.glText[d]=new o(_);if(v.glText){if(b&gt;v.glText.length){var w=b-v.glText.length;for(d=0;d&lt;w;d++)v.glText.push(new o(_))}else if(b&lt;v.glText.length){var T=v.glText.length-b;v.glText.splice(b,T).forEach((function(t){t.destroy()}))}for(d=0;d&lt;b;d++)v.glText[d].update(v.textOptions[d])}if(v.line2d&amp;&amp;(v.line2d.update(v.lineOptions),v.lineOptions=v.lineOptions.map((function(t){if(t&amp;&amp;t.positions){for(var e=t.positions,r=0;r&lt;e.length&amp;&amp;(isNaN(e[r])||isNaN(e[r+1]));)r+=2;for(var n=e.length-2;n&gt;r&amp;&amp;(isNaN(e[n])||isNaN(e[n+1]));)n-=2;t.positions=e.slice(r,n+2)}return t})),v.line2d.update(v.lineOptions)),v.error2d){var k=(v.errorXOptions||[]).concat(v.errorYOptions||[]);v.error2d.update(k)}v.scatter2d&amp;&amp;v.scatter2d.update(v.markerOptions),v.fillOrder=s.repeat(null,b),v.fill2d&amp;&amp;(v.fillOptions=v.fillOptions.map((function(t,e){var n=r[e];if(t&amp;&amp;n&amp;&amp;n[0]&amp;&amp;n[0].trace){var i,a,o=n[0],s=o.trace,l=o.t,c=v.lineOptions[e],u=[];s._ownfill&amp;&amp;u.push(e),s._nexttrace&amp;&amp;u.push(e+1),u.length&amp;&amp;(v.fillOrder[e]=u);var f,h,p=[],d=c&amp;&amp;c.positions||l.positions;if(&quot;tozeroy&quot;===s.fill){for(f=0;f&lt;d.length&amp;&amp;isNaN(d[f+1]);)f+=2;for(h=d.length-2;h&gt;f&amp;&amp;isNaN(d[h+1]);)h-=2;0!==d[f+1]&amp;&amp;(p=[d[f],0]),p=p.concat(d.slice(f,h+2)),0!==d[h+1]&amp;&amp;(p=p.concat([d[h],0]))}else if(&quot;tozerox&quot;===s.fill){for(f=0;f&lt;d.length&amp;&amp;isNaN(d[f]);)f+=2;for(h=d.length-2;h&gt;f&amp;&amp;isNaN(d[h]);)h-=2;0!==d[f]&amp;&amp;(p=[0,d[f+1]]),p=p.concat(d.slice(f,h+2)),0!==d[h]&amp;&amp;(p=p.concat([0,d[h+1]]))}else if(&quot;toself&quot;===s.fill||&quot;tonext&quot;===s.fill){for(p=[],i=0,a=0;a&lt;d.length;a+=2)(isNaN(d[a])||isNaN(d[a+1]))&amp;&amp;((p=p.concat(d.slice(i,a))).push(d[i],d[i+1]),i=a+2);p=p.concat(d.slice(i)),i&amp;&amp;p.push(d[i],d[i+1])}else{var g=s._nexttrace;if(g){var m=v.lineOptions[e+1];if(m){var y=m.positions;if(&quot;tonexty&quot;===s.fill){for(p=d.slice(),e=Math.floor(y.length/2);e--;){var x=y[2*e],b=y[2*e+1];isNaN(x)||isNaN(b)||p.push(x,b)}t.fill=g.fillcolor}}}}if(s._prevtrace&amp;&amp;&quot;tonext&quot;===s._prevtrace.fill){var _=v.lineOptions[e-1].positions,w=p.length/2,T=[i=w];for(a=0;a&lt;_.length;a+=2)(isNaN(_[a])||isNaN(_[a+1]))&amp;&amp;(T.push(a/2+w+1),i=a+2);p=p.concat(_),t.hole=T}return t.fillmode=s.fill,t.opacity=s.opacity,t.positions=p,t}})),v.fill2d.update(v.fillOptions))}var M=m.dragmode,A=l(M),S=m.clickmode.indexOf(&quot;select&quot;)&gt;-1;for(d=0;d&lt;b;d++){var E=r[d][0],C=E.trace,L=E.t,I=L.index,P=C._length,z=L.x,O=L.y;if(C.selectedpoints||A||S){if(A||(A=!0),C.selectedpoints){var D=v.selectBatch[I]=s.selIndices2selPoints(C),R={};for(g=0;g&lt;D.length;g++)R[D[g]]=1;var F=[];for(g=0;g&lt;P;g++)R[g]||F.push(g);v.unselectBatch[I]=F}var B=L.xpx=new Array(P),N=L.ypx=new Array(P);for(g=0;g&lt;P;g++)B[g]=y.c2p(z[g]),N[g]=x.c2p(O[g])}else L.xpx=L.ypx=null}if(A){if(v.select2d||(v.select2d=n(m._glcanvas.data()[1].regl)),v.scatter2d){var j=new Array(b);for(d=0;d&lt;b;d++)j[d]=v.selectBatch[d].length||v.unselectBatch[d].length?v.markerUnselectedOptions[d]:{};v.scatter2d.update(j)}v.select2d&amp;&amp;(v.select2d.update(v.markerOptions),v.select2d.update(v.markerSelectedOptions)),v.glText&amp;&amp;r.forEach((function(t){var e=((t||[])[0]||{}).trace||{};u.hasText(e)&amp;&amp;h(t)}))}else v.scatter2d&amp;&amp;v.scatter2d.update(v.markerOptions);var U={viewport:p(m,y,x),range:[(y._rl||y.range)[0],(x._rl||x.range)[0],(y._rl||y.range)[1],(x._rl||x.range)[1]]},V=s.repeat(U,v.count);v.fill2d&amp;&amp;v.fill2d.update(V),v.line2d&amp;&amp;v.line2d.update(V),v.error2d&amp;&amp;v.error2d.update(V.concat(V)),v.scatter2d&amp;&amp;v.scatter2d.update(V),v.select2d&amp;&amp;v.select2d.update(V),v.glText&amp;&amp;v.glText.forEach((function(t){t.update(U)}))}else v.init()}}},{&quot;../../components/dragelement/helpers&quot;:661,&quot;../../lib&quot;:778,&quot;../../lib/prepare_regl&quot;:791,&quot;../scatter/link_traces&quot;:1203,&quot;../scatter/subtypes&quot;:1212,&quot;./edit_style&quot;:1244,&quot;gl-text&quot;:352,&quot;regl-error2d&quot;:534,&quot;regl-line2d&quot;:535,&quot;regl-scatter2d&quot;:537}],1250:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=e._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return e._scene||((r=e._scene={}).init=function(){n.extendFlat(r,a,i)},r.init(),r.update=function(t){var e=n.repeat(t,r.count);if(r.fill2d&amp;&amp;r.fill2d.update(e),r.scatter2d&amp;&amp;r.scatter2d.update(e),r.line2d&amp;&amp;r.line2d.update(e),r.error2d&amp;&amp;r.error2d.update(e.concat(e)),r.select2d&amp;&amp;r.select2d.update(e),r.glText)for(var i=0;i&lt;r.count;i++)r.glText[i].update(t)},r.draw=function(){for(var t=r.count,e=r.fill2d,i=r.error2d,a=r.line2d,o=r.scatter2d,s=r.glText,l=r.select2d,c=r.selectBatch,u=r.unselectBatch,f=0;f&lt;t;f++){if(e&amp;&amp;r.fillOrder[f]&amp;&amp;e.draw(r.fillOrder[f]),a&amp;&amp;r.lineOptions[f]&amp;&amp;a.draw(f),i&amp;&amp;(r.errorXOptions[f]&amp;&amp;i.draw(f),r.errorYOptions[f]&amp;&amp;i.draw(f+t)),o&amp;&amp;r.markerOptions[f])if(u[f].length){var h=n.repeat([],r.count);h[f]=u[f],o.draw(h)}else c[f].length||o.draw(f);s[f]&amp;&amp;r.textOptions[f]&amp;&amp;s[f].render()}l&amp;&amp;l.draw(c),r.dirty=!1},r.destroy=function(){r.fill2d&amp;&amp;r.fill2d.destroy&amp;&amp;r.fill2d.destroy(),r.scatter2d&amp;&amp;r.scatter2d.destroy&amp;&amp;r.scatter2d.destroy(),r.error2d&amp;&amp;r.error2d.destroy&amp;&amp;r.error2d.destroy(),r.line2d&amp;&amp;r.line2d.destroy&amp;&amp;r.line2d.destroy(),r.select2d&amp;&amp;r.select2d.destroy&amp;&amp;r.select2d.destroy(),r.glText&amp;&amp;r.glText.forEach((function(t){t.destroy&amp;&amp;t.destroy()})),r.lineOptions=null,r.fillOptions=null,r.markerOptions=null,r.markerSelectedOptions=null,r.markerUnselectedOptions=null,r.errorXOptions=null,r.errorYOptions=null,r.textOptions=null,r.textSelectedOptions=null,r.textUnselectedOptions=null,r.selectBatch=null,r.unselectBatch=null,e._scene=null}),r.dirty||n.extendFlat(r,i),r}},{&quot;../../lib&quot;:778}],1251:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/subtypes&quot;),i=t(&quot;./edit_style&quot;).styleTextSelection;e.exports=function(t,e){var r=t.cd,a=[],o=r[0].trace,s=r[0].t,l=o._length,c=s.x,u=s.y,f=s._scene,h=s.index;if(!f)return a;var p=n.hasText(o),d=n.hasMarkers(o),g=!d&amp;&amp;!p;if(!0!==o.visible||g)return a;var m=[],v=[];if(!1!==e&amp;&amp;!e.degenerate)for(var y=0;y&lt;l;y++)e.contains([s.xpx[y],s.ypx[y]],!1,y,t)?(m.push(y),a.push({pointNumber:y,x:c[y],y:u[y]})):v.push(y);if(d){var x=f.scatter2d;if(m.length||v.length){if(!f.selectBatch[h].length&amp;&amp;!f.unselectBatch[h].length){var b=new Array(f.count);b[h]=f.markerUnselectedOptions[h],x.update.apply(x,b)}}else{var _=new Array(f.count);_[h]=f.markerOptions[h],x.update.apply(x,_)}}return f.selectBatch[h]=m,f.unselectBatch[h]=v,p&amp;&amp;i(r),a}},{&quot;../scatter/subtypes&quot;:1212,&quot;./edit_style&quot;:1244}],1252:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scattergeo/attributes&quot;),o=t(&quot;../scatter/attributes&quot;),s=t(&quot;../../plots/mapbox/layout_attributes&quot;),l=t(&quot;../../plots/attributes&quot;),c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat,f=t(&quot;../../plot_api/edit_types&quot;).overrideAll,h=a.line,p=a.marker;e.exports=f({lon:a.lon,lat:a.lat,mode:u({},o.mode,{dflt:&quot;markers&quot;}),text:u({},o.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;lat&quot;,&quot;lon&quot;,&quot;text&quot;]}),hovertext:u({},o.hovertext,{}),line:{color:h.color,width:h.width},connectgaps:o.connectgaps,marker:u({symbol:{valType:&quot;string&quot;,dflt:&quot;circle&quot;,arrayOk:!0},angle:{valType:&quot;number&quot;,dflt:&quot;auto&quot;,arrayOk:!0},allowoverlap:{valType:&quot;boolean&quot;,dflt:!1},opacity:p.opacity,size:p.size,sizeref:p.sizeref,sizemin:p.sizemin,sizemode:p.sizemode},c(&quot;marker&quot;)),fill:a.fill,fillcolor:o.fillcolor,textfont:s.layers.symbol.textfont,textposition:s.layers.symbol.textposition,below:{valType:&quot;string&quot;},selected:{marker:o.selected.marker},unselected:{marker:o.unselected.marker},hoverinfo:u({},l.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n()},&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/mapbox/layout_attributes&quot;:887,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187,&quot;../scattergeo/attributes&quot;:1229}],1253:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../lib/geojson_utils&quot;),s=t(&quot;../../components/colorscale&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../scatter/make_bubble_size_func&quot;),u=t(&quot;../scatter/subtypes&quot;),f=t(&quot;../../plots/mapbox/convert_text_opts&quot;),h=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,p=t(&quot;../../lib/svg_text_utils&quot;).NEWLINES,d=t(&quot;../../lib/svg_text_utils&quot;).BR_TAG_ALL;function g(){return{geojson:o.makeBlank(),layout:{visibility:&quot;none&quot;},paint:{}}}function m(t,e){return i.isArrayOrTypedArray(t)?e?function(e){return n(t[e])?+t[e]:0}:function(e){return t[e]}:t?function(){return t}:v}function v(){return&quot;&quot;}function y(t){return t[0]===a}e.exports=function(t,e){var r,a=e[0].trace,x=!0===a.visible&amp;&amp;0!==a._length,b=&quot;none&quot;!==a.fill,_=u.hasLines(a),w=u.hasMarkers(a),T=u.hasText(a),k=w&amp;&amp;&quot;circle&quot;===a.marker.symbol,M=w&amp;&amp;&quot;circle&quot;!==a.marker.symbol,A=g(),S=g(),E=g(),C=g(),L={fill:A,line:S,circle:E,symbol:C};if(!x)return L;if((b||_)&amp;&amp;(r=o.calcTraceToLineCoords(e)),b&amp;&amp;(A.geojson=o.makePolygon(r),A.layout.visibility=&quot;visible&quot;,i.extendFlat(A.paint,{&quot;fill-color&quot;:a.fillcolor})),_&amp;&amp;(S.geojson=o.makeLine(r),S.layout.visibility=&quot;visible&quot;,i.extendFlat(S.paint,{&quot;line-width&quot;:a.line.width,&quot;line-color&quot;:a.line.color,&quot;line-opacity&quot;:a.opacity})),k){var I=function(t){var e,r,a,o,u=t[0].trace,f=u.marker,h=u.selectedpoints,p=i.isArrayOrTypedArray(f.color),d=i.isArrayOrTypedArray(f.size),g=i.isArrayOrTypedArray(f.opacity);function m(t){return u.opacity*t}p&amp;&amp;(r=s.hasColorscale(u,&quot;marker&quot;)?s.makeColorScaleFuncFromTrace(f):i.identity);d&amp;&amp;(a=c(u));g&amp;&amp;(o=function(t){return m(n(t)?+i.constrain(t,0,1):0)});var v,x=[];for(e=0;e&lt;t.length;e++){var b=t[e],_=b.lonlat;if(!y(_)){var w={};r&amp;&amp;(w.mcc=b.mcc=r(b.mc)),a&amp;&amp;(w.mrc=b.mrc=a(b.ms)),o&amp;&amp;(w.mo=o(b.mo)),h&amp;&amp;(w.selected=b.selected||0),x.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:_},properties:w})}}if(h)for(v=l.makeSelectedPointStyleFns(u),e=0;e&lt;x.length;e++){var T=x[e].properties;v.selectedOpacityFn&amp;&amp;(T.mo=m(v.selectedOpacityFn(T))),v.selectedColorFn&amp;&amp;(T.mcc=v.selectedColorFn(T)),v.selectedSizeFn&amp;&amp;(T.mrc=v.selectedSizeFn(T))}return{geojson:{type:&quot;FeatureCollection&quot;,features:x},mcc:p||v&amp;&amp;v.selectedColorFn?{type:&quot;identity&quot;,property:&quot;mcc&quot;}:f.color,mrc:d||v&amp;&amp;v.selectedSizeFn?{type:&quot;identity&quot;,property:&quot;mrc&quot;}:(k=f.size,k/2),mo:g||v&amp;&amp;v.selectedOpacityFn?{type:&quot;identity&quot;,property:&quot;mo&quot;}:m(f.opacity)};var k}(e);E.geojson=I.geojson,E.layout.visibility=&quot;visible&quot;,i.extendFlat(E.paint,{&quot;circle-color&quot;:I.mcc,&quot;circle-radius&quot;:I.mrc,&quot;circle-opacity&quot;:I.mo})}if((M||T)&amp;&amp;(C.geojson=function(t,e){for(var r=e._fullLayout,n=t[0].trace,a=n.marker||{},o=a.symbol,s=a.angle,l=&quot;circle&quot;!==o?m(o):v,c=&quot;auto&quot;!==s?m(s,!0):v,f=u.hasText(n)?m(n.text):v,g=[],x=0;x&lt;t.length;x++){var b=t[x];if(!y(b.lonlat)){var _,w=n.texttemplate;if(w){var T=Array.isArray(w)?w[x]||&quot;&quot;:w,k=n._module.formatLabels(b,n,r),M={};h(M,n,b.i);var A=n._meta||{};_=i.texttemplateString(T,k,r._d3locale,M,b,A)}else _=f(x);_&amp;&amp;(_=_.replace(p,&quot;&quot;).replace(d,&quot;\n&quot;)),g.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:b.lonlat},properties:{symbol:l(x),angle:c(x),text:_}})}}return{type:&quot;FeatureCollection&quot;,features:g}}(e,t),i.extendFlat(C.layout,{visibility:&quot;visible&quot;,&quot;icon-image&quot;:&quot;{symbol}-15&quot;,&quot;text-field&quot;:&quot;{text}&quot;}),M&amp;&amp;(i.extendFlat(C.layout,{&quot;icon-size&quot;:a.marker.size/10}),&quot;angle&quot;in a.marker&amp;&amp;&quot;auto&quot;!==a.marker.angle&amp;&amp;i.extendFlat(C.layout,{&quot;icon-rotate&quot;:{type:&quot;identity&quot;,property:&quot;angle&quot;},&quot;icon-rotation-alignment&quot;:&quot;map&quot;}),C.layout[&quot;icon-allow-overlap&quot;]=a.marker.allowoverlap,i.extendFlat(C.paint,{&quot;icon-opacity&quot;:a.opacity*a.marker.opacity,&quot;icon-color&quot;:a.marker.color})),T)){var P=(a.marker||{}).size,z=f(a.textposition,P);i.extendFlat(C.layout,{&quot;text-size&quot;:a.textfont.size,&quot;text-anchor&quot;:z.anchor,&quot;text-offset&quot;:z.offset}),i.extendFlat(C.paint,{&quot;text-color&quot;:a.textfont.color,&quot;text-opacity&quot;:a.opacity})}return L}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/geojson_utils&quot;:772,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/mapbox/convert_text_opts&quot;:884,&quot;../scatter/make_bubble_size_func&quot;:1204,&quot;../scatter/subtypes&quot;:1212,&quot;fast-isnumeric&quot;:241}],1254:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/text_defaults&quot;),l=t(&quot;../scatter/fillcolor_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}if(function(t,e,r){var n=r(&quot;lon&quot;)||[],i=r(&quot;lat&quot;)||[],a=Math.min(n.length,i.length);return e._length=a,a}(0,e,f)){if(f(&quot;text&quot;),f(&quot;texttemplate&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),f(&quot;below&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,u,f,{noDash:!0}),f(&quot;connectgaps&quot;)),i.hasMarkers(e)){a(t,e,r,u,f,{noLine:!0}),f(&quot;marker.allowoverlap&quot;),f(&quot;marker.angle&quot;);var h=e.marker;&quot;circle&quot;!==h.symbol&amp;&amp;(n.isArrayOrTypedArray(h.size)&amp;&amp;(h.size=h.size[0]),n.isArrayOrTypedArray(h.color)&amp;&amp;(h.color=h.color[0]))}i.hasText(e)&amp;&amp;s(t,e,u,f,{noSelect:!0}),f(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1252}],1255:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t}},{}],1256:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.subplot]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=n.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=n.tickText(a,a.c2l(o[1]),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1257:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/get_trace_color&quot;),o=i.fillText,s=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r){var l=t.cd,c=l[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=360*(e&gt;=0?Math.floor((e+180)/360):Math.ceil((e-180)/360)),d=e-p;if(n.getClosest(l,(function(t){var e=t.lonlat;if(e[0]===s)return 1/0;var n=i.modHalf(e[0],360),a=e[1],o=h.project([n,a]),l=o.x-u.c2p([d,a]),c=o.y-f.c2p([n,r]),p=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(l*l+c*c)-p,1-3/p)}),t),!1!==t.index){var g=l[t.index],m=g.lonlat,v=[i.modHalf(m[0],360)+p,m[1]],y=u.c2p(v),x=f.c2p(v),b=g.mrc||1;t.x0=y-b,t.x1=y+b,t.y0=x-b,t.y1=x+b;var _={};_[c.subplot]={_subplot:h};var w=c._module.formatLabels(g,c,_);return t.lonLabel=w.lonLabel,t.latLabel=w.latLabel,t.color=a(c,g),t.extraText=function(t,e,r){if(t.hovertemplate)return;var n=(e.hi||t.hoverinfo).split(&quot;+&quot;),i=-1!==n.indexOf(&quot;all&quot;),a=-1!==n.indexOf(&quot;lon&quot;),s=-1!==n.indexOf(&quot;lat&quot;),l=e.lonlat,c=[];function u(t){return t+&quot;\xb0&quot;}i||a&amp;&amp;s?c.push(&quot;(&quot;+u(l[0])+&quot;, &quot;+u(l[1])+&quot;)&quot;):a?c.push(r.lon+u(l[0])):s&amp;&amp;c.push(r.lat+u(l[1]));(i||-1!==n.indexOf(&quot;text&quot;))&amp;&amp;o(e,t,c);return c.join(&quot;&lt;br&gt;&quot;)}(c,g,l[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}}},{&quot;../../components/fx&quot;:683,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/get_trace_color&quot;:1197}],1258:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;../scattergeo/calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),styleOnSelect:function(t,e){e&amp;&amp;e[0].trace._glTrace.update(e)},moduleType:&quot;trace&quot;,name:&quot;scattermapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/mapbox&quot;:885,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scattergeo/calc&quot;:1230,&quot;./attributes&quot;:1252,&quot;./defaults&quot;:1254,&quot;./event_data&quot;:1255,&quot;./format_labels&quot;:1256,&quot;./hover&quot;:1257,&quot;./plot&quot;:1259,&quot;./select&quot;:1260}],1259:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;),i=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix,a=[&quot;fill&quot;,&quot;line&quot;,&quot;circle&quot;,&quot;symbol&quot;];function o(t,e){this.type=&quot;scattermapbox&quot;,this.subplot=t,this.uid=e,this.sourceIds={fill:&quot;source-&quot;+e+&quot;-fill&quot;,line:&quot;source-&quot;+e+&quot;-line&quot;,circle:&quot;source-&quot;+e+&quot;-circle&quot;,symbol:&quot;source-&quot;+e+&quot;-symbol&quot;},this.layerIds={fill:i+e+&quot;-fill&quot;,line:i+e+&quot;-line&quot;,circle:i+e+&quot;-circle&quot;,symbol:i+e+&quot;-symbol&quot;},this.below=null}var s=o.prototype;s.addSource=function(t,e){this.subplot.map.addSource(this.sourceIds[t],{type:&quot;geojson&quot;,data:e.geojson})},s.setSourceData=function(t,e){this.subplot.map.getSource(this.sourceIds[t]).setData(e.geojson)},s.addLayer=function(t,e,r){this.subplot.addLayer({type:t,id:this.layerIds[t],source:this.sourceIds[t],layout:e.layout,paint:e.paint},r)},s.update=function(t){var e,r,i,o=this.subplot,s=o.map,l=n(o.gd,t),c=o.belowLookup[&quot;trace-&quot;+this.uid];if(c!==this.below){for(e=a.length-1;e&gt;=0;e--)r=a[e],s.removeLayer(this.layerIds[r]);for(e=0;e&lt;a.length;e++)i=l[r=a[e]],this.addLayer(r,i,c);this.below=c}for(e=0;e&lt;a.length;e++)i=l[r=a[e]],o.setOptions(this.layerIds[r],&quot;setLayoutProperty&quot;,i.layout),&quot;visible&quot;===i.layout.visibility&amp;&amp;(this.setSourceData(r,i),o.setOptions(this.layerIds[r],&quot;setPaintProperty&quot;,i.paint));t[0].trace._glTrace=this},s.dispose=function(){for(var t=this.subplot.map,e=a.length-1;e&gt;=0;e--){var r=a[e];t.removeLayer(this.layerIds[r]),t.removeSource(this.sourceIds[r])}},e.exports=function(t,e){for(var r=e[0].trace,i=new o(t,r.uid),s=n(t.gd,e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid],c=0;c&lt;a.length;c++){var u=a[c],f=s[u];i.addSource(u,f),i.addLayer(u,f,l)}return e[0].trace._glTrace=i,i}},{&quot;../../plots/mapbox/constants&quot;:883,&quot;./convert&quot;:1253}],1260:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e){var r,o=t.cd,s=t.xaxis,l=t.yaxis,c=[],u=o[0].trace;if(!i.hasMarkers(u))return[];if(!1===e)for(r=0;r&lt;o.length;r++)o[r].selected=0;else for(r=0;r&lt;o.length;r++){var f=o[r],h=f.lonlat;if(h[0]!==a){var p=[n.modHalf(h[0],360),h[1]],d=[s.c2p(p),l.c2p(p)];e.contains(d,null,r,t)?(c.push({pointNumber:r,lon:h[0],lat:h[1]}),f.selected=1):f.selected=0}}return c}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/subtypes&quot;:1212}],1261:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../scatter/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=o.line;e.exports={mode:o.mode,r:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},theta:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},r0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dr:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},theta0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dtheta:{valType:&quot;number&quot;,editType:&quot;calc&quot;},thetaunit:{valType:&quot;enumerated&quot;,values:[&quot;radians&quot;,&quot;degrees&quot;,&quot;gradians&quot;],dflt:&quot;degrees&quot;,editType:&quot;calc+clearAxisTypes&quot;},text:o.text,texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]}),hovertext:o.hovertext,line:{color:l.color,width:l.width,dash:l.dash,shape:a({},l.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:l.smoothing,editType:&quot;calc&quot;},connectgaps:o.connectgaps,marker:o.marker,cliponaxis:a({},o.cliponaxis,{dflt:!1}),textposition:o.textposition,textfont:o.textfont,fill:a({},o.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:o.fillcolor,hoverinfo:a({},s.hoverinfo,{flags:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:o.hoveron,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1262:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../scatter/colorscale_calc&quot;),s=t(&quot;../scatter/arrays_to_calcdata&quot;),l=t(&quot;../scatter/calc_selection&quot;),c=t(&quot;../scatter/calc&quot;).calcMarkerSize;e.exports=function(t,e){for(var r=t._fullLayout,u=e.subplot,f=r[u].radialaxis,h=r[u].angularaxis,p=f.makeCalcdata(e,&quot;r&quot;),d=h.makeCalcdata(e,&quot;theta&quot;),g=e._length,m=new Array(g),v=0;v&lt;g;v++){var y=p[v],x=d[v],b=m[v]={};n(y)&amp;&amp;n(x)?(b.r=y,b.theta=x):b.r=i}var _=c(e,g);return e._extremes.x=a.findExtremes(f,p,{ppad:_}),o(t,e),s(m,e),l(m,e),m}},{&quot;../../constants/numerical&quot;:753,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc&quot;:1188,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1263:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/line_shape_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;../scatter/fillcolor_defaults&quot;),u=t(&quot;../scatter/constants&quot;).PTS_LINESONLY,f=t(&quot;./attributes&quot;);function h(t,e,r,n){var i,a=n(&quot;r&quot;),o=n(&quot;theta&quot;);if(a)o?i=Math.min(a.length,o.length):(i=a.length,n(&quot;theta0&quot;),n(&quot;dtheta&quot;));else{if(!o)return 0;i=e.theta.length,n(&quot;r0&quot;),n(&quot;dr&quot;)}return e._length=i,i}e.exports={handleRThetaDefaults:h,supplyDefaults:function(t,e,r,p){function d(r,i){return n.coerce(t,e,f,r,i)}var g=h(t,e,p,d);if(g){d(&quot;thetaunit&quot;),d(&quot;mode&quot;,g&lt;u?&quot;lines+markers&quot;:&quot;lines&quot;),d(&quot;text&quot;),d(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;d(&quot;hovertemplate&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,p,d),s(t,e,d),d(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;a(t,e,r,p,d,{gradient:!0}),i.hasText(e)&amp;&amp;(d(&quot;texttemplate&quot;),l(t,e,p,d));var m=[];(i.hasMarkers(e)||i.hasText(e))&amp;&amp;(d(&quot;cliponaxis&quot;),d(&quot;marker.maxdisplayed&quot;),m.push(&quot;points&quot;)),d(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(c(t,e,r,d),i.hasLines(e)||s(t,e,d)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||m.push(&quot;fills&quot;),d(&quot;hoveron&quot;,m.join(&quot;+&quot;)||&quot;points&quot;),n.coerceSelectionMarkerOpacity(e,d)}else e.visible=!1}}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/line_shape_defaults&quot;:1202,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1261}],1264:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var a,o,s={},l=r[e.subplot]._subplot;l?(a=l.radialAxis,o=l.angularAxis):(a=(l=r[e.subplot]).radialaxis,o=l.angularaxis);var c=a.c2l(t.r);s.rLabel=i.tickText(a,c,!0).text;var u=&quot;degrees&quot;===o.thetaunit?n.rad2deg(t.theta):t.theta;return s.thetaLabel=i.tickText(o,u,!0).text,s}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1265:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;);function i(t,e,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle=&quot;r&quot;,a._hovertitle=&quot;\u03b8&quot;;var o={};o[e.subplot]={_subplot:r};var s=e._module.formatLabels(t,e,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var l=t.hi||e.hoverinfo,c=[];function u(t,e){c.push(t._hovertitle+&quot;: &quot;+e)}if(!e.hovertemplate){var f=l.split(&quot;+&quot;);-1!==f.indexOf(&quot;all&quot;)&amp;&amp;(f=[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]),-1!==f.indexOf(&quot;r&quot;)&amp;&amp;u(i,n.rLabel),-1!==f.indexOf(&quot;theta&quot;)&amp;&amp;u(a,n.thetaLabel),-1!==f.indexOf(&quot;text&quot;)&amp;&amp;n.text&amp;&amp;(c.push(n.text),delete n.text),n.extraText=c.join(&quot;&lt;br&gt;&quot;)}}e.exports={hoverPoints:function(t,e,r,a){var o=n(t,e,r,a);if(o&amp;&amp;!1!==o[0].index){var s=o[0];if(void 0===s.index)return o;var l=t.subplot,c=s.cd[s.index],u=s.trace;if(l.isPtInside(c))return s.xLabelVal=void 0,s.yLabelVal=void 0,i(c,u,l,s),s.hovertemplate=u.hovertemplate,o}},makeHoverPointText:i}},{&quot;../scatter/hover&quot;:1198}],1266:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;scatterpolar&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;polar&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;../scatter/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:894,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/select&quot;:1209,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1261,&quot;./calc&quot;:1262,&quot;./defaults&quot;:1263,&quot;./format_labels&quot;:1264,&quot;./hover&quot;:1265,&quot;./plot&quot;:1267}],1267:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r){for(var a=e.layers.frontplot.select(&quot;g.scatterlayer&quot;),o={xaxis:e.xaxis,yaxis:e.yaxis,plot:e.framework,layerClipId:e._hasClipOnAxisFalse?e.clipIds.forTraces:null},s=e.radialAxis,l=e.angularAxis,c=0;c&lt;r.length;c++)for(var u=r[c],f=0;f&lt;u.length;f++){var h=u[f],p=h.r;if(p===i)h.x=h.y=i;else{var d=s.c2g(p),g=l.c2g(h.theta);h.x=d*Math.cos(g),h.y=d*Math.sin(g)}}n(t,o,r,a)}},{&quot;../../constants/numerical&quot;:753,&quot;../scatter/plot&quot;:1208}],1268:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatterpolar/attributes&quot;),i=t(&quot;../scattergl/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs;e.exports={mode:n.mode,r:n.r,theta:n.theta,r0:n.r0,dr:n.dr,theta0:n.theta0,dtheta:n.dtheta,thetaunit:n.thetaunit,text:n.text,texttemplate:a({editType:&quot;plot&quot;},{keys:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]}),hovertext:n.hovertext,hovertemplate:n.hovertemplate,line:i.line,connectgaps:i.connectgaps,marker:i.marker,fill:i.fill,fillcolor:i.fillcolor,textposition:i.textposition,textfont:i.textfont,hoverinfo:n.hoverinfo,selected:n.selected,unselected:n.unselected}},{&quot;../../plots/template_attributes&quot;:906,&quot;../scattergl/attributes&quot;:1239,&quot;../scatterpolar/attributes&quot;:1261}],1269:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/colorscale_calc&quot;),i=t(&quot;../scatter/calc&quot;).calcMarkerSize,a=t(&quot;../scattergl/convert&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e){var r=t._fullLayout,l=e.subplot,c=r[l].radialaxis,u=r[l].angularaxis,f=e._r=c.makeCalcdata(e,&quot;r&quot;),h=e._theta=u.makeCalcdata(e,&quot;theta&quot;),p=e._length,d={};p&lt;f.length&amp;&amp;(f=f.slice(0,p)),p&lt;h.length&amp;&amp;(h=h.slice(0,p)),d.r=f,d.theta=h,n(t,e);var g,m=d.opts=a.style(t,e);return p&lt;s?g=i(e,p):m.marker&amp;&amp;(g=2*(m.marker.sizeAvg||Math.max(m.marker.size,3))),e._extremes.x=o.findExtremes(c,f,{ppad:g}),[{x:!1,y:!1,t:d,trace:e}]}},{&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc&quot;:1188,&quot;../scatter/colorscale_calc&quot;:1190,&quot;../scattergl/constants&quot;:1241,&quot;../scattergl/convert&quot;:1242}],1270:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatterpolar/defaults&quot;).handleRThetaDefaults,o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;../scatter/fillcolor_defaults&quot;),u=t(&quot;../scatter/constants&quot;).PTS_LINESONLY,f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d=a(t,e,h,p);d?(p(&quot;thetaunit&quot;),p(&quot;mode&quot;,d&lt;u?&quot;lines+markers&quot;:&quot;lines&quot;),p(&quot;text&quot;),p(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;p(&quot;hovertemplate&quot;),i.hasLines(e)&amp;&amp;(s(t,e,r,h,p),p(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;o(t,e,r,h,p),i.hasText(e)&amp;&amp;(p(&quot;texttemplate&quot;),l(t,e,h,p)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;c(t,e,r,p),n.coerceSelectionMarkerOpacity(e,p)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;../scatterpolar/defaults&quot;:1263,&quot;./attributes&quot;:1268}],1271:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatterpolar/format_labels&quot;);e.exports=function(t,e,r){var i=t.i;return&quot;r&quot;in t||(t.r=e._r[i]),&quot;theta&quot;in t||(t.theta=e._theta[i]),n(t,e,r)}},{&quot;../scatterpolar/format_labels&quot;:1264}],1272:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scattergl/hover&quot;),i=t(&quot;../scatterpolar/hover&quot;).makeHoverPointText;e.exports={hoverPoints:function(t,e,r,a){var o=t.cd[0].t,s=o.r,l=o.theta,c=n.hoverPoints(t,e,r,a);if(c&amp;&amp;!1!==c[0].index){var u=c[0];if(void 0===u.index)return c;var f=t.subplot,h=u.cd[u.index],p=u.trace;if(h.r=s[u.index],h.theta=l[u.index],f.isPtInside(h))return u.xLabelVal=void 0,u.yLabelVal=void 0,i(h,p,f,u),c}}}},{&quot;../scattergl/hover&quot;:1247,&quot;../scatterpolar/hover&quot;:1265}],1273:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;scatterpolargl&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;polar&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;../scattergl/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:894,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scattergl/select&quot;:1251,&quot;./attributes&quot;:1268,&quot;./calc&quot;:1269,&quot;./defaults&quot;:1270,&quot;./format_labels&quot;:1271,&quot;./hover&quot;:1272,&quot;./plot&quot;:1274}],1274:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/point-cluster&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../scattergl/plot&quot;),o=t(&quot;../scattergl/scene_update&quot;),s=t(&quot;../scattergl/convert&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e,r){if(r.length){var u=e.radialAxis,f=e.angularAxis,h=o(t,e);return r.forEach((function(r){if(r&amp;&amp;r[0]&amp;&amp;r[0].trace){var a,o=r[0],p=o.trace,d=o.t,g=p._length,m=d.r,v=d.theta,y=d.opts,x=m.slice(),b=v.slice();for(a=0;a&lt;m.length;a++)e.isPtInside({r:m[a],theta:v[a]})||(x[a]=NaN,b[a]=NaN);var _=new Array(2*g),w=Array(g),T=Array(g);for(a=0;a&lt;g;a++){var k,M,A=x[a];if(i(A)){var S=u.c2g(A),E=f.c2g(b[a],p.thetaunit);k=S*Math.cos(E),M=S*Math.sin(E)}else k=M=NaN;w[a]=_[2*a]=k,T[a]=_[2*a+1]=M}d.tree=n(_),y.marker&amp;&amp;g&gt;=c&amp;&amp;(y.marker.cluster=d.tree),y.marker&amp;&amp;(y.markerSel.positions=y.markerUnsel.positions=y.marker.positions=_),y.line&amp;&amp;_.length&gt;1&amp;&amp;l.extendFlat(y.line,s.linePositions(t,p,_)),y.text&amp;&amp;(l.extendFlat(y.text,{positions:_},s.textPosition(t,p,y.text,y.marker)),l.extendFlat(y.textSel,{positions:_},s.textPosition(t,p,y.text,y.markerSel)),l.extendFlat(y.textUnsel,{positions:_},s.textPosition(t,p,y.text,y.markerUnsel))),y.fill&amp;&amp;!h.fill2d&amp;&amp;(h.fill2d=!0),y.marker&amp;&amp;!h.scatter2d&amp;&amp;(h.scatter2d=!0),y.line&amp;&amp;!h.line2d&amp;&amp;(h.line2d=!0),y.text&amp;&amp;!h.glText&amp;&amp;(h.glText=!0),h.lineOptions.push(y.line),h.fillOptions.push(y.fill),h.markerOptions.push(y.marker),h.markerSelectedOptions.push(y.markerSel),h.markerUnselectedOptions.push(y.markerUnsel),h.textOptions.push(y.text),h.textSelectedOptions.push(y.textSel),h.textUnselectedOptions.push(y.textUnsel),h.selectBatch.push([]),h.unselectBatch.push([]),d.x=w,d.y=T,d.rawx=w,d.rawy=T,d.r=m,d.theta=v,d.positions=_,d._scene=h,d.index=h.count,h.count++}})),a(t,e,r)}}},{&quot;../../lib&quot;:778,&quot;../scattergl/constants&quot;:1241,&quot;../scattergl/convert&quot;:1242,&quot;../scattergl/plot&quot;:1249,&quot;../scattergl/scene_update&quot;:1250,&quot;@plotly/point-cluster&quot;:57,&quot;fast-isnumeric&quot;:241}],1275:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scatter/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../lib/extend&quot;).extendFlat,u=a.marker,f=a.line,h=u.line;e.exports={a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},c:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sum:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;calc&quot;},mode:c({},a.mode,{dflt:&quot;markers&quot;}),text:c({},a.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;text&quot;]}),hovertext:c({},a.hovertext,{}),line:{color:f.color,width:f.width,dash:l,shape:c({},f.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:f.smoothing,editType:&quot;calc&quot;},connectgaps:a.connectgaps,cliponaxis:a.cliponaxis,fill:c({},a.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:a.fillcolor,marker:c({symbol:u.symbol,opacity:u.opacity,maxdisplayed:u.maxdisplayed,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,line:c({width:h.width,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),gradient:u.gradient,editType:&quot;calc&quot;},s(&quot;marker&quot;)),textfont:a.textfont,textposition:a.textposition,selected:a.selected,unselected:a.unselected,hoverinfo:c({},o.hoverinfo,{flags:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:a.hoveron,hovertemplate:n()}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing/attributes&quot;:664,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1276:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scatter/arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../scatter/calc&quot;).calcMarkerSize,l=[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],c={a:[&quot;b&quot;,&quot;c&quot;],b:[&quot;a&quot;,&quot;c&quot;],c:[&quot;a&quot;,&quot;b&quot;]};e.exports=function(t,e){var r,u,f,h,p,d,g=t._fullLayout[e.subplot].sum,m=e.sum||g,v={a:e.a,b:e.b,c:e.c};for(r=0;r&lt;l.length;r++)if(!v[f=l[r]]){for(p=v[c[f][0]],d=v[c[f][1]],h=new Array(p.length),u=0;u&lt;p.length;u++)h[u]=m-p[u]-d[u];v[f]=h}var y,x,b,_,w,T,k=e._length,M=new Array(k);for(r=0;r&lt;k;r++)y=v.a[r],x=v.b[r],b=v.c[r],n(y)&amp;&amp;n(x)&amp;&amp;n(b)?(1!==(_=g/((y=+y)+(x=+x)+(b=+b)))&amp;&amp;(y*=_,x*=_,b*=_),T=y,w=b-x,M[r]={x:w,y:T,a:y,b:x,c:b}):M[r]={x:!1,y:!1};return s(e,k),i(t,e),a(M,e),o(M,e),M}},{&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc&quot;:1188,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1277:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/constants&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/line_shape_defaults&quot;),c=t(&quot;../scatter/text_defaults&quot;),u=t(&quot;../scatter/fillcolor_defaults&quot;),f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d,g=p(&quot;a&quot;),m=p(&quot;b&quot;),v=p(&quot;c&quot;);if(g?(d=g.length,m?(d=Math.min(d,m.length),v&amp;&amp;(d=Math.min(d,v.length))):d=v?Math.min(d,v.length):0):m&amp;&amp;v&amp;&amp;(d=Math.min(m.length,v.length)),d){e._length=d,p(&quot;sum&quot;),p(&quot;text&quot;),p(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;p(&quot;hovertemplate&quot;),p(&quot;mode&quot;,d&lt;i.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;),a.hasLines(e)&amp;&amp;(s(t,e,r,h,p),l(t,e,p),p(&quot;connectgaps&quot;)),a.hasMarkers(e)&amp;&amp;o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&amp;&amp;(p(&quot;texttemplate&quot;),c(t,e,h,p));var y=[];(a.hasMarkers(e)||a.hasText(e))&amp;&amp;(p(&quot;cliponaxis&quot;),p(&quot;marker.maxdisplayed&quot;),y.push(&quot;points&quot;)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||y.push(&quot;fills&quot;),p(&quot;hoveron&quot;,y.join(&quot;+&quot;)||&quot;points&quot;),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/line_shape_defaults&quot;:1202,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1275}],1278:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){if(e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),n[i]){var a=n[i];t.a=a.a,t.b=a.b,t.c=a.c}else t.a=e.a,t.b=e.b,t.c=e.c;return t}},{}],1279:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.subplot]._subplot;return i.aLabel=n.tickText(a.aaxis,t.a,!0).text,i.bLabel=n.tickText(a.baxis,t.b,!0).text,i.cLabel=n.tickText(a.caxis,t.c,!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1280:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;);e.exports=function(t,e,r,i){var a=n(t,e,r,i);if(a&amp;&amp;!1!==a[0].index){var o=a[0];if(void 0===o.index){var s=1-o.y0/t.ya._length,l=t.xa._length,c=l*s/2,u=l-c;return o.x0=Math.max(Math.min(o.x0,u),c),o.x1=Math.max(Math.min(o.x1,u),c),a}var f=o.cd[o.index],h=o.trace,p=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var d={};d[h.subplot]={_subplot:p};var g=h._module.formatLabels(f,h,d);o.aLabel=g.aLabel,o.bLabel=g.bLabel,o.cLabel=g.cLabel;var m=f.hi||h.hoverinfo,v=[];if(!h.hovertemplate){var y=m.split(&quot;+&quot;);-1!==y.indexOf(&quot;all&quot;)&amp;&amp;(y=[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]),-1!==y.indexOf(&quot;a&quot;)&amp;&amp;x(p.aaxis,o.aLabel),-1!==y.indexOf(&quot;b&quot;)&amp;&amp;x(p.baxis,o.bLabel),-1!==y.indexOf(&quot;c&quot;)&amp;&amp;x(p.caxis,o.cLabel)}return o.extraText=v.join(&quot;&lt;br&gt;&quot;),o.hovertemplate=h.hovertemplate,a}function x(t,e){v.push(t._hovertitle+&quot;: &quot;+e)}}},{&quot;../scatter/hover&quot;:1198}],1281:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../scatter/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;scatterternary&quot;,basePlotModule:t(&quot;../../plots/ternary&quot;),categories:[&quot;ternary&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/ternary&quot;:907,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/select&quot;:1209,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1275,&quot;./calc&quot;:1276,&quot;./defaults&quot;:1277,&quot;./event_data&quot;:1278,&quot;./format_labels&quot;:1279,&quot;./hover&quot;:1280,&quot;./plot&quot;:1282}],1282:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;);e.exports=function(t,e,r){var i=e.plotContainer;i.select(&quot;.scatterlayer&quot;).selectAll(&quot;*&quot;).remove();var a={xaxis:e.xaxis,yaxis:e.yaxis,plot:i,layerClipId:e._hasClipOnAxisFalse?e.clipIdRelative:null},o=e.layers.frontplot.select(&quot;g.scatterlayer&quot;);n(t,a,r,o)}},{&quot;../scatter/plot&quot;:1208}],1283:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../scattergl/attributes&quot;),s=t(&quot;../../plots/cartesian/constants&quot;).idRegex,l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=t(&quot;../../lib/extend&quot;).extendFlat,u=n.marker,f=u.line,h=c(i(&quot;marker.line&quot;,{editTypeOverride:&quot;calc&quot;}),{width:c({},f.width,{editType:&quot;calc&quot;}),editType:&quot;calc&quot;}),p=c(i(&quot;marker&quot;),{symbol:u.symbol,size:c({},u.size,{editType:&quot;markerSize&quot;}),sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,opacity:u.opacity,colorbar:u.colorbar,line:h,editType:&quot;calc&quot;});function d(t){return{valType:&quot;info_array&quot;,freeLength:!0,editType:&quot;calc&quot;,items:{valType:&quot;subplotid&quot;,regex:s[t],editType:&quot;plot&quot;}}}p.color.editType=p.cmin.editType=p.cmax.editType=&quot;style&quot;,e.exports={dimensions:l(&quot;dimension&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},label:{valType:&quot;string&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},axis:{type:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;],editType:&quot;calc+clearAxisTypes&quot;},matches:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},editType:&quot;calc+clearAxisTypes&quot;},editType:&quot;calc+clearAxisTypes&quot;}),text:c({},o.text,{}),hovertext:c({},o.hovertext,{}),hovertemplate:a(),marker:p,xaxes:d(&quot;x&quot;),yaxes:d(&quot;y&quot;),diagonal:{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},showupperhalf:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},showlowerhalf:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},selected:{marker:o.selected.marker,editType:&quot;calc&quot;},unselected:{marker:o.unselected.marker,editType:&quot;calc&quot;},opacity:o.opacity}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187,&quot;../scattergl/attributes&quot;:1239}],1284:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-line2d&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib/prepare_regl&quot;),o=t(&quot;../../plots/get_data&quot;).getModuleCalcData,s=t(&quot;../../plots/cartesian&quot;),l=t(&quot;../../plots/cartesian/axis_ids&quot;).getFromId,c=t(&quot;../../plots/cartesian/axes&quot;).shouldShowZeroLine;function u(t,e,r){for(var n=r.matrixOptions.data.length,i=e._visibleDims,a=r.viewOpts.ranges=new Array(n),o=0;o&lt;i.length;o++){var s=i[o],c=a[o]=new Array(4),u=l(t,e._diag[s][0]);u&amp;&amp;(c[0]=u.r2l(u.range[0]),c[2]=u.r2l(u.range[1]));var f=l(t,e._diag[s][1]);f&amp;&amp;(c[1]=f.r2l(f.range[0]),c[3]=f.r2l(f.range[1]))}r.selectBatch.length||r.unselectBatch.length?r.matrix.update({ranges:a},{ranges:a}):r.matrix.update({ranges:a})}function f(t){var e=t._fullLayout,r=e._glcanvas.data()[0].regl,i=e._splomGrid;i||(i=e._splomGrid=n(r)),i.update(function(t){var e,r=t._fullLayout,n=r._size,i=[0,0,r.width,r.height],a={};function o(t,e,r,n,o,s){var l=e[t+&quot;color&quot;],c=e[t+&quot;width&quot;],u=String(l+c);u in a?a[u].data.push(NaN,NaN,r,n,o,s):a[u]={data:[r,n,o,s],join:&quot;rect&quot;,thickness:c,color:l,viewport:i,range:i,overlay:!1}}for(e in r._splomSubplots){var s,l,u=r._plots[e],f=u.xaxis,h=u.yaxis,p=f._gridVals,d=h._gridVals,g=n.b+h.domain[0]*n.h,m=-h._m,v=-m*h.r2l(h.range[0],h.calendar);if(f.showgrid)for(e=0;e&lt;p.length;e++)s=f._offset+f.l2p(p[e].x),o(&quot;grid&quot;,f,s,g,s,g+h._length);if(h.showgrid)for(e=0;e&lt;d.length;e++)l=g+v+m*d[e].x,o(&quot;grid&quot;,h,f._offset,l,f._offset+f._length,l);c(t,f,h)&amp;&amp;(s=f._offset+f.l2p(0),o(&quot;zeroline&quot;,f,s,g,s,g+h._length)),c(t,h,f)&amp;&amp;(l=g+v+0,o(&quot;zeroline&quot;,h,f._offset,l,f._offset+f._length,l))}var y=[];for(e in a)y.push(a[e]);return y}(t))}e.exports={name:&quot;splom&quot;,attr:s.attr,attrRegex:s.attrRegex,layoutAttributes:s.layoutAttributes,supplyLayoutDefaults:s.supplyLayoutDefaults,drawFramework:s.drawFramework,plot:function(t){var e=t._fullLayout,r=i.getModule(&quot;splom&quot;),n=o(t.calcdata,r)[0];a(t,[&quot;ANGLE_instanced_arrays&quot;,&quot;OES_element_index_uint&quot;])&amp;&amp;(e._hasOnlyLargeSploms&amp;&amp;f(t),r.plot(t,{},n))},drag:function(t){var e=t.calcdata,r=t._fullLayout;r._hasOnlyLargeSploms&amp;&amp;f(t);for(var n=0;n&lt;e.length;n++){var i=e[n][0].trace,a=r._splomScenes[i.uid];&quot;splom&quot;===i.type&amp;&amp;a&amp;&amp;a.matrix&amp;&amp;u(t,i,a)}},updateGrid:f,clean:function(t,e,r,n){var i,a={};if(n._splomScenes){for(i=0;i&lt;t.length;i++){var o=t[i];&quot;splom&quot;===o.type&amp;&amp;(a[o.uid]=1)}for(i=0;i&lt;r.length;i++){var l=r[i];if(!a[l.uid]){var c=n._splomScenes[l.uid];c&amp;&amp;c.destroy&amp;&amp;c.destroy(),n._splomScenes[l.uid]=null,delete n._splomScenes[l.uid]}}}0===Object.keys(n._splomScenes||{}).length&amp;&amp;delete n._splomScenes,n._splomGrid&amp;&amp;!e._hasOnlyLargeSploms&amp;&amp;n._hasOnlyLargeSploms&amp;&amp;(n._splomGrid.destroy(),n._splomGrid=null,delete n._splomGrid),s.clean(t,e,r,n)},updateFx:s.updateFx,toSVG:s.toSVG}},{&quot;../../lib/prepare_regl&quot;:791,&quot;../../plots/cartesian&quot;:841,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/get_data&quot;:865,&quot;../../registry&quot;:911,&quot;regl-line2d&quot;:535}],1285:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axis_ids&quot;),a=t(&quot;../scatter/calc&quot;).calcMarkerSize,o=t(&quot;../scatter/calc&quot;).calcAxisExpansion,s=t(&quot;../scatter/colorscale_calc&quot;),l=t(&quot;../scattergl/convert&quot;).markerSelection,c=t(&quot;../scattergl/convert&quot;).markerStyle,u=t(&quot;./scene_update&quot;),f=t(&quot;../../constants/numerical&quot;).BADNUM,h=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e){var r,p,d,g,m,v,y=e.dimensions,x=e._length,b={},_=b.cdata=[],w=b.data=[],T=e._visibleDims=[];function k(t,r){for(var i=t.makeCalcdata({v:r.values,vcalendar:e.calendar},&quot;v&quot;),a=0;a&lt;i.length;a++)i[a]=i[a]===f?NaN:i[a];_.push(i),w.push(&quot;log&quot;===t.type?n.simpleMap(i,t.c2l):i)}for(r=0;r&lt;y.length;r++)if((d=y[r]).visible){if(g=i.getFromId(t,e._diag[r][0]),m=i.getFromId(t,e._diag[r][1]),g&amp;&amp;m&amp;&amp;g.type!==m.type){n.log(&quot;Skipping splom dimension &quot;+r+&quot; with conflicting axis types&quot;);continue}g?(k(g,d),m&amp;&amp;&quot;category&quot;===m.type&amp;&amp;(m._categories=g._categories.slice())):k(m,d),T.push(r)}for(s(t,e),n.extendFlat(b,c(e)),v=_.length*x&gt;h?2*(b.sizeAvg||Math.max(b.size,3)):a(e,x),p=0;p&lt;T.length;p++)d=y[r=T[p]],g=i.getFromId(t,e._diag[r][0])||{},m=i.getFromId(t,e._diag[r][1])||{},o(t,e,g,m,_[p],_[p],v);var M=u(t,e);return M.matrix||(M.matrix=!0),M.matrixOptions=b,M.selectedOptions=l(e,e.selected),M.unselectedOptions=l(e,e.unselected),[{x:!1,y:!1,t:{},trace:e}]}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../scatter/calc&quot;:1188,&quot;../scatter/colorscale_calc&quot;:1190,&quot;../scattergl/constants&quot;:1241,&quot;../scattergl/convert&quot;:1242,&quot;./scene_update&quot;:1292}],1286:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../scatter/subtypes&quot;),s=t(&quot;../scatter/marker_defaults&quot;),l=t(&quot;../parcoords/merge_length&quot;),c=t(&quot;../scattergl/helpers&quot;).isOpenSymbol;function u(t,e){function r(r,i){return n.coerce(t,e,a.dimensions,r,i)}r(&quot;label&quot;);var i=r(&quot;values&quot;);i&amp;&amp;i.length?r(&quot;visible&quot;):e.visible=!1,r(&quot;axis.type&quot;),r(&quot;axis.matches&quot;)}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,a,r,i)}var p=i(t,e,{name:&quot;dimensions&quot;,handleItemDefaults:u}),d=h(&quot;diagonal.visible&quot;),g=h(&quot;showupperhalf&quot;),m=h(&quot;showlowerhalf&quot;);if(l(e,p,&quot;values&quot;)&amp;&amp;(d||g||m)){h(&quot;text&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;),s(t,e,r,f,h);var v=c(e.marker.symbol),y=o.isBubble(e);h(&quot;marker.line.width&quot;,v||y?1:0),function(t,e,r,n){var i,a,o=e.dimensions,s=o.length,l=e.showupperhalf,c=e.showlowerhalf,u=e.diagonal.visible,f=new Array(s),h=new Array(s);for(i=0;i&lt;s;i++){var p=i?i+1:&quot;&quot;;f[i]=&quot;x&quot;+p,h[i]=&quot;y&quot;+p}var d=n(&quot;xaxes&quot;,f),g=n(&quot;yaxes&quot;,h),m=e._diag=new Array(s);e._xaxes={},e._yaxes={};var v=[],y=[];function x(t,n,i,a){if(t){var o=t.charAt(0),s=r._splomAxes[o];if(e[&quot;_&quot;+o+&quot;axes&quot;][t]=1,a.push(t),!(t in s)){var l=s[t]={};i&amp;&amp;(l.label=i.label||&quot;&quot;,i.visible&amp;&amp;i.axis&amp;&amp;(i.axis.type&amp;&amp;(l.type=i.axis.type),i.axis.matches&amp;&amp;(l.matches=n)))}}}var b=!u&amp;&amp;!c,_=!u&amp;&amp;!l;for(e._axesDim={},i=0;i&lt;s;i++){var w=o[i],T=0===i,k=i===s-1,M=T&amp;&amp;b||k&amp;&amp;_?void 0:d[i],A=T&amp;&amp;_||k&amp;&amp;b?void 0:g[i];x(M,A,w,v),x(A,M,w,y),m[i]=[M,A],e._axesDim[M]=i,e._axesDim[A]=i}for(i=0;i&lt;v.length;i++)for(a=0;a&lt;y.length;a++){var S=v[i]+y[a];i&gt;a&amp;&amp;l||i&lt;a&amp;&amp;c?r._splomSubplots[S]=1:i!==a||!u&amp;&amp;c&amp;&amp;l||(r._splomSubplots[S]=1)}(!c||!u&amp;&amp;l&amp;&amp;c)&amp;&amp;(r._splomGridDflt.xside=&quot;bottom&quot;,r._splomGridDflt.yside=&quot;left&quot;)}(0,e,f,h),n.coerceSelectionMarkerOpacity(e,h)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../parcoords/merge_length&quot;:1158,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scattergl/helpers&quot;:1246,&quot;./attributes&quot;:1283}],1287:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scattergl/convert&quot;).markerStyle;e.exports=function(t,e){var r=e.trace,o=t._fullLayout._splomScenes[r.uid];if(o){i(t,r),n.extendFlat(o.matrixOptions,a(r));var s=n.extendFlat({},o.matrixOptions,o.viewOpts);o.matrix.update(s,null)}}},{&quot;../../lib&quot;:778,&quot;../scatter/colorscale_calc&quot;:1190,&quot;../scattergl/convert&quot;:1242}],1288:[function(t,e,r){&quot;use strict&quot;;r.getDimIndex=function(t,e){for(var r=e._id,n={x:0,y:1}[r.charAt(0)],i=t._visibleDims,a=0;a&lt;i.length;a++){var o=i[a];if(t._diag[o][n]===r)return a}return!1}},{}],1289:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./helpers&quot;),i=t(&quot;../scattergl/hover&quot;).calcHover;e.exports={hoverPoints:function(t,e,r){var a=t.cd[0].trace,o=t.scene.matrixOptions.cdata,s=t.xa,l=t.ya,c=s.c2p(e),u=l.c2p(r),f=t.distance,h=n.getDimIndex(a,s),p=n.getDimIndex(a,l);if(!1===h||!1===p)return[t];for(var d,g,m=o[h],v=o[p],y=f,x=0;x&lt;m.length;x++){var b=m[x],_=v[x],w=s.c2p(b)-c,T=l.c2p(_)-u,k=Math.sqrt(w*w+T*T);k&lt;y&amp;&amp;(y=g=k,d=x)}return t.index=d,t.distance=y,t.dxy=g,void 0===d?[t]:[i(t,m,v,a)]}}},{&quot;../scattergl/hover&quot;:1247,&quot;./helpers&quot;:1288}],1290:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../components/grid&quot;);e.exports={moduleType:&quot;trace&quot;,name:&quot;splom&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;cartesian&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;./select&quot;),editStyle:t(&quot;./edit_style&quot;),meta:{}},n.register(i)},{&quot;../../components/grid&quot;:687,&quot;../../registry&quot;:911,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1283,&quot;./base_plot&quot;:1284,&quot;./calc&quot;:1285,&quot;./defaults&quot;:1286,&quot;./edit_style&quot;:1287,&quot;./hover&quot;:1289,&quot;./plot&quot;:1291,&quot;./select&quot;:1293}],1291:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-splom&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../components/dragelement/helpers&quot;).selectMode;function s(t,e){var r,s,l,c,u,f=t._fullLayout,h=f._size,p=e.trace,d=e.t,g=f._splomScenes[p.uid],m=g.matrixOptions,v=m.cdata,y=f._glcanvas.data()[0].regl,x=f.dragmode;if(0!==v.length){m.lower=p.showupperhalf,m.upper=p.showlowerhalf,m.diagonal=p.diagonal.visible;var b=p._visibleDims,_=v.length,w=g.viewOpts={};for(w.ranges=new Array(_),w.domains=new Array(_),u=0;u&lt;b.length;u++){l=b[u];var T=w.ranges[u]=new Array(4),k=w.domains[u]=new Array(4);(r=a.getFromId(t,p._diag[l][0]))&amp;&amp;(T[0]=r._rl[0],T[2]=r._rl[1],k[0]=r.domain[0],k[2]=r.domain[1]),(s=a.getFromId(t,p._diag[l][1]))&amp;&amp;(T[1]=s._rl[0],T[3]=s._rl[1],k[1]=s.domain[0],k[3]=s.domain[1])}w.viewport=[h.l,h.b,h.w+h.l,h.h+h.b],!0===g.matrix&amp;&amp;(g.matrix=n(y));var M=f.clickmode.indexOf(&quot;select&quot;)&gt;-1,A=!0;if(o(x)||!!p.selectedpoints||M){var S=p._length;if(p.selectedpoints){g.selectBatch=p.selectedpoints;var E=p.selectedpoints,C={};for(l=0;l&lt;E.length;l++)C[E[l]]=!0;var L=[];for(l=0;l&lt;S;l++)C[l]||L.push(l);g.unselectBatch=L}var I=d.xpx=new Array(_),P=d.ypx=new Array(_);for(u=0;u&lt;b.length;u++){if(l=b[u],r=a.getFromId(t,p._diag[l][0]))for(I[u]=new Array(S),c=0;c&lt;S;c++)I[u][c]=r.c2p(v[u][c]);if(s=a.getFromId(t,p._diag[l][1]))for(P[u]=new Array(S),c=0;c&lt;S;c++)P[u][c]=s.c2p(v[u][c])}if(g.selectBatch.length||g.unselectBatch.length){var z=i.extendFlat({},m,g.unselectedOptions,w),O=i.extendFlat({},m,g.selectedOptions,w);g.matrix.update(z,O),A=!1}}else d.xpx=d.ypx=null;if(A){var D=i.extendFlat({},m,w);g.matrix.update(D,null)}}}e.exports=function(t,e,r){if(r.length)for(var n=0;n&lt;r.length;n++)s(t,r[n][0])}},{&quot;../../components/dragelement/helpers&quot;:661,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;regl-splom&quot;:539}],1292:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=t._fullLayout,i=e.uid,a=r._splomScenes;a||(a=r._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s=a[e.uid];return s||((s=a[i]=n.extendFlat({},o,{matrix:!1,selectBatch:[],unselectBatch:[]})).draw=function(){s.matrix&amp;&amp;s.matrix.draw&amp;&amp;(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&amp;&amp;s.matrix.destroy&amp;&amp;s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||n.extendFlat(s,o),s}},{&quot;../../lib&quot;:778}],1293:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;./helpers&quot;);e.exports=function(t,e){var r=t.cd,o=r[0].trace,s=r[0].t,l=t.scene,c=l.matrixOptions.cdata,u=t.xaxis,f=t.yaxis,h=[];if(!l)return h;var p=!i.hasMarkers(o)&amp;&amp;!i.hasText(o);if(!0!==o.visible||p)return h;var d=a.getDimIndex(o,u),g=a.getDimIndex(o,f);if(!1===d||!1===g)return h;var m=s.xpx[d],v=s.ypx[g],y=c[d],x=c[g],b=[],_=[];if(!1!==e&amp;&amp;!e.degenerate)for(var w=0;w&lt;y.length;w++)e.contains([m[w],v[w]],null,w,t)?(b.push(w),h.push({pointNumber:w,x:y[w],y:x[w]})):_.push(w);var T=l.matrixOptions;return b.length||_.length?l.selectBatch.length||l.unselectBatch.length||l.matrix.update(l.unselectedOptions,n.extendFlat({},T,l.selectedOptions,l.viewOpts)):l.matrix.update(T,null),l.selectBatch=b,l.unselectBatch=_,h}},{&quot;../../lib&quot;:778,&quot;../scatter/subtypes&quot;:1212,&quot;./helpers&quot;:1288}],1294:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../mesh3d/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},u:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},v:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},w:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},starts:{x:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},maxdisplayed:{valType:&quot;integer&quot;,min:0,dflt:1e3,editType:&quot;calc&quot;},sizeref:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0,dflt:1},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertemplate:i({editType:&quot;calc&quot;},{keys:[&quot;tubex&quot;,&quot;tubey&quot;,&quot;tubez&quot;,&quot;tubeu&quot;,&quot;tubev&quot;,&quot;tubew&quot;,&quot;norm&quot;,&quot;divergence&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})};s(l,n(&quot;&quot;,{colorAttr:&quot;u/v/w norm&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}));[&quot;opacity&quot;,&quot;lightposition&quot;,&quot;lighting&quot;].forEach((function(t){l[t]=a[t]})),l.hoverinfo=s({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;norm&quot;,&quot;divergence&quot;,&quot;text&quot;,&quot;name&quot;],dflt:&quot;x+y+z+norm+text+name&quot;}),l.transforms=void 0,e.exports=l},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../mesh3d/attributes&quot;:1128}],1295:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/calc&quot;);function a(t){var e,r,i,a,s,l,c,u,f,h,p,d,g=t._x,m=t._y,v=t._z,y=t._len,x=-1/0,b=1/0,_=-1/0,w=1/0,T=-1/0,k=1/0,M=&quot;&quot;;for(y&amp;&amp;(c=g[0],f=m[0],p=v[0]),y&gt;1&amp;&amp;(u=g[y-1],h=m[y-1],d=v[y-1]),e=0;e&lt;y;e++)x=Math.max(x,g[e]),b=Math.min(b,g[e]),_=Math.max(_,m[e]),w=Math.min(w,m[e]),T=Math.max(T,v[e]),k=Math.min(k,v[e]),a||g[e]===c||(a=!0,M+=&quot;x&quot;),s||m[e]===f||(s=!0,M+=&quot;y&quot;),l||v[e]===p||(l=!0,M+=&quot;z&quot;);a||(M+=&quot;x&quot;),s||(M+=&quot;y&quot;),l||(M+=&quot;z&quot;);var A=o(t._x),S=o(t._y),E=o(t._z);M=(M=(M=M.replace(&quot;x&quot;,(c&gt;u?&quot;-&quot;:&quot;+&quot;)+&quot;x&quot;)).replace(&quot;y&quot;,(f&gt;h?&quot;-&quot;:&quot;+&quot;)+&quot;y&quot;)).replace(&quot;z&quot;,(p&gt;d?&quot;-&quot;:&quot;+&quot;)+&quot;z&quot;);var C=function(){y=0,A=[],S=[],E=[]};(!y||y&lt;A.length*S.length*E.length)&amp;&amp;C();var L=function(t){return&quot;x&quot;===t?g:&quot;y&quot;===t?m:v},I=function(t){return&quot;x&quot;===t?A:&quot;y&quot;===t?S:E},P=function(t){return t[y-1]&lt;t[0]?-1:1},z=L(M[1]),O=L(M[3]),D=L(M[5]),R=I(M[1]).length,F=I(M[3]).length,B=I(M[5]).length,N=!1,j=function(t,e,r){return R*(F*t+e)+r},U=P(L(M[1])),V=P(L(M[3])),q=P(L(M[5]));for(e=0;e&lt;B-1;e++){for(r=0;r&lt;F-1;r++){for(i=0;i&lt;R-1;i++){var H=j(e,r,i),G=j(e,r,i+1),Y=j(e,r+1,i),W=j(e+1,r,i);if(z[H]*U&lt;z[G]*U&amp;&amp;O[H]*V&lt;O[Y]*V&amp;&amp;D[H]*q&lt;D[W]*q||(N=!0),N)break}if(N)break}if(N)break}return N&amp;&amp;(n.warn(&quot;Encountered arbitrary coordinates! Unable to input data grid.&quot;),C()),{xMin:b,yMin:w,zMin:k,xMax:x,yMax:_,zMax:T,Xs:A,Ys:S,Zs:E,len:y,fill:M}}function o(t){return n.distinctVals(t).vals}function s(t,e){if(void 0===e&amp;&amp;(e=t.length),n.isTypedArray(t))return t.subarray(0,e);for(var r=[],i=0;i&lt;e;i++)r[i]=+t[i];return r}e.exports={calc:function(t,e){e._len=Math.min(e.u.length,e.v.length,e.w.length,e.x.length,e.y.length,e.z.length),e._u=s(e.u,e._len),e._v=s(e.v,e._len),e._w=s(e.w,e._len),e._x=s(e.x,e._len),e._y=s(e.y,e._len),e._z=s(e.z,e._len);var r=a(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;var n,o,l,c=0;e.starts&amp;&amp;(n=s(e.starts.x||[]),o=s(e.starts.y||[]),l=s(e.starts.z||[]),c=Math.min(n.length,o.length,l.length)),e._startsX=n||[],e._startsY=o||[],e._startsZ=l||[];var u,f=0,h=1/0;for(u=0;u&lt;e._len;u++){var p=e._u[u],d=e._v[u],g=e._w[u],m=Math.sqrt(p*p+d*d+g*g);f=Math.max(f,m),h=Math.min(h,m)}for(i(t,e,{vals:[h,f],containerStr:&quot;&quot;,cLetter:&quot;c&quot;}),u=0;u&lt;c;u++){var v=n[u];r.xMax=Math.max(r.xMax,v),r.xMin=Math.min(r.xMin,v);var y=o[u];r.yMax=Math.max(r.yMax,y),r.yMin=Math.min(r.yMin,y);var x=l[u];r.zMax=Math.max(r.zMax,x),r.zMin=Math.min(r.zMin,x)}e._slen=c,e._normMax=f,e._xbnds=[r.xMin,r.xMax],e._ybnds=[r.yMin,r.yMax],e._zbnds=[r.zMin,r.zMax]},filter:s,processGrid:a}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../lib&quot;:778}],1296:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-streamtube3d&quot;),i=n.createTubeMesh,a=t(&quot;../../lib&quot;),o=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,s=t(&quot;../../components/colorscale&quot;).extractOpts,l=t(&quot;../../plots/gl3d/zip3&quot;),c={xaxis:0,yaxis:1,zaxis:2};function u(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var f=u.prototype;function h(t){var e=t.length;return e&gt;2?t.slice(1,e-1):2===e?[(t[0]+t[1])/2]:t}function p(t){var e=t.length;return 1===e?[.5,.5]:[t[1]-t[0],t[e-1]-t[e-2]]}function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,u=e._len,f={};function d(t,e){var n=r[e],o=i[c[e]];return a.simpleMap(t,(function(t){return n.d2l(t)*o}))}if(f.vectors=l(d(e._u,&quot;xaxis&quot;),d(e._v,&quot;yaxis&quot;),d(e._w,&quot;zaxis&quot;),u),!u)return{positions:[],cells:[]};var g=d(e._Xs,&quot;xaxis&quot;),m=d(e._Ys,&quot;yaxis&quot;),v=d(e._Zs,&quot;zaxis&quot;);if(f.meshgrid=[g,m,v],f.gridFill=e._gridFill,e._slen)f.startingPositions=l(d(e._startsX,&quot;xaxis&quot;),d(e._startsY,&quot;yaxis&quot;),d(e._startsZ,&quot;zaxis&quot;));else{for(var y=m[0],x=h(g),b=h(v),_=new Array(x.length*b.length),w=0,T=0;T&lt;x.length;T++)for(var k=0;k&lt;b.length;k++)_[w++]=[x[T],y,b[k]];f.startingPositions=_}f.colormap=o(e),f.tubeSize=e.sizeref,f.maxLength=e.maxdisplayed;var M=d(e._xbnds,&quot;xaxis&quot;),A=d(e._ybnds,&quot;yaxis&quot;),S=d(e._zbnds,&quot;zaxis&quot;),E=p(g),C=p(m),L=p(v),I=[[M[0]-E[0],A[0]-C[0],S[0]-L[0]],[M[1]+E[1],A[1]+C[1],S[1]+L[1]]],P=n(f,I),z=s(e);P.vertexIntensityBounds=[z.min/e._normMax,z.max/e._normMax];var O=e.lightposition;return P.lightPosition=[O.x,O.y,O.z],P.ambient=e.lighting.ambient,P.diffuse=e.lighting.diffuse,P.specular=e.lighting.specular,P.roughness=e.lighting.roughness,P.fresnel=e.lighting.fresnel,P.opacity=e.opacity,e._pad=P.tubeScale*e.sizeref*2,P}f.handlePick=function(t){var e=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(t,n){var i=e[n],a=r[c[n]];return i.l2c(t)/a}if(t.object===this.mesh){var i=t.data.position,a=t.data.velocity;return t.traceCoordinate=[n(i[0],&quot;xaxis&quot;),n(i[1],&quot;yaxis&quot;),n(i[2],&quot;zaxis&quot;),n(a[0],&quot;xaxis&quot;),n(a[1],&quot;yaxis&quot;),n(a[2],&quot;zaxis&quot;),t.data.intensity*this.data._normMax,t.data.divergence],t.textLabel=this.data.hovertext||this.data.text,!0}},f.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new u(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../plots/gl3d/zip3&quot;:881,&quot;gl-streamtube3d&quot;:348}],1297:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;u&quot;),c=s(&quot;v&quot;),u=s(&quot;w&quot;),f=s(&quot;x&quot;),h=s(&quot;y&quot;),p=s(&quot;z&quot;);l&amp;&amp;l.length&amp;&amp;c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length&amp;&amp;p&amp;&amp;p.length?(s(&quot;starts.x&quot;),s(&quot;starts.y&quot;),s(&quot;starts.z&quot;),s(&quot;maxdisplayed&quot;),s(&quot;sizeref&quot;),s(&quot;lighting.ambient&quot;),s(&quot;lighting.diffuse&quot;),s(&quot;lighting.specular&quot;),s(&quot;lighting.roughness&quot;),s(&quot;lighting.fresnel&quot;),s(&quot;lightposition.x&quot;),s(&quot;lightposition.y&quot;),s(&quot;lightposition.z&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:1294}],1298:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;streamtube&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./convert&quot;),eventData:function(t,e){return t.tubex=t.x,t.tubey=t.y,t.tubez=t.z,t.tubeu=e.traceCoordinate[3],t.tubev=e.traceCoordinate[4],t.tubew=e.traceCoordinate[5],t.norm=e.traceCoordinate[6],t.divergence=e.traceCoordinate[7],delete t.x,delete t.y,delete t.z,t},meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1294,&quot;./calc&quot;:1295,&quot;./convert&quot;:1296,&quot;./defaults&quot;:1297}],1299:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../pie/attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},parents:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},branchvalues:{valType:&quot;enumerated&quot;,values:[&quot;remainder&quot;,&quot;total&quot;],dflt:&quot;remainder&quot;,editType:&quot;calc&quot;},count:{valType:&quot;flaglist&quot;,flags:[&quot;branches&quot;,&quot;leaves&quot;],dflt:&quot;leaves&quot;,editType:&quot;calc&quot;},level:{valType:&quot;any&quot;,editType:&quot;plot&quot;,anim:!0},maxdepth:{valType:&quot;integer&quot;,editType:&quot;plot&quot;,dflt:-1},marker:u({colors:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:u({},l.marker.line.color,{dflt:null}),width:u({},l.marker.line.width,{dflt:1}),editType:&quot;calc&quot;},editType:&quot;calc&quot;},o(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),leaf:{opacity:{valType:&quot;number&quot;,editType:&quot;style&quot;,min:0,max:1},editType:&quot;plot&quot;},text:l.text,textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;current path&quot;,&quot;percent root&quot;,&quot;percent entry&quot;,&quot;percent parent&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;},texttemplate:a({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:l.hovertext,hoverinfo:u({},n.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;name&quot;,&quot;current path&quot;,&quot;percent root&quot;,&quot;percent entry&quot;,&quot;percent parent&quot;],dflt:&quot;label+text+value+name&quot;}),hovertemplate:i({},{keys:c.eventDataKeys}),textfont:l.textfont,insidetextorientation:l.insidetextorientation,insidetextfont:l.insidetextfont,outsidetextfont:u({},l.outsidetextfont,{}),rotation:{valType:&quot;angle&quot;,dflt:0,editType:&quot;plot&quot;},sort:l.sort,root:{color:{valType:&quot;color&quot;,editType:&quot;calc&quot;,dflt:&quot;rgba(0,0,0,0)&quot;},editType:&quot;calc&quot;},domain:s({name:&quot;sunburst&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/template_attributes&quot;:906,&quot;../pie/attributes&quot;:1161,&quot;./constants&quot;:1302}],1300:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;sunburst&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1301:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/colorscale&quot;).makeColorScaleFuncFromTrace,s=t(&quot;../pie/calc&quot;).makePullColorFn,l=t(&quot;../pie/calc&quot;).generateExtendedColors,c=t(&quot;../../components/colorscale&quot;).calc,u=t(&quot;../../constants/numerical&quot;).ALMOST_EQUAL,f={},h={};r.calc=function(t,e){var r,l,f,h,p,d,g=t._fullLayout,m=e.ids,v=a.isArrayOrTypedArray(m),y=e.labels,x=e.parents,b=e.values,_=a.isArrayOrTypedArray(b),w=[],T={},k={},M=function(t){return t||&quot;number&quot;==typeof t},A=function(t){return!_||i(b[t])&amp;&amp;b[t]&gt;=0};v?(r=Math.min(m.length,x.length),l=function(t){return M(m[t])&amp;&amp;A(t)},f=function(t){return String(m[t])}):(r=Math.min(y.length,x.length),l=function(t){return M(y[t])&amp;&amp;A(t)},f=function(t){return String(y[t])}),_&amp;&amp;(r=Math.min(r,b.length));for(var S=0;S&lt;r;S++)if(l(S)){var E=f(S),C=M(x[S])?String(x[S]):&quot;&quot;,L={i:S,id:E,pid:C,label:M(y[S])?String(y[S]):&quot;&quot;};_&amp;&amp;(L.v=+b[S]),w.push(L),p=E,T[h=C]?T[h].push(p):T[h]=[p],k[p]=1}if(T[&quot;&quot;]){if(T[&quot;&quot;].length&gt;1){for(var I=a.randstr(),P=0;P&lt;w.length;P++)&quot;&quot;===w[P].pid&amp;&amp;(w[P].pid=I);w.unshift({hasMultipleRoots:!0,id:I,pid:&quot;&quot;,label:&quot;&quot;})}}else{var z,O=[];for(z in T)k[z]||O.push(z);if(1!==O.length)return a.warn([&quot;Multiple implied roots, cannot build&quot;,e.type,&quot;hierarchy of&quot;,e.name+&quot;.&quot;,&quot;These roots include:&quot;,O.join(&quot;, &quot;)].join(&quot; &quot;));z=O[0],w.unshift({hasImpliedRoot:!0,id:z,pid:&quot;&quot;,label:z})}try{d=n.stratify().id((function(t){return t.id})).parentId((function(t){return t.pid}))(w)}catch(t){return a.warn([&quot;Failed to build&quot;,e.type,&quot;hierarchy of&quot;,e.name+&quot;.&quot;,&quot;Error:&quot;,t.message].join(&quot; &quot;))}var D=n.hierarchy(d),R=!1;if(_)switch(e.branchvalues){case&quot;remainder&quot;:D.sum((function(t){return t.data.v}));break;case&quot;total&quot;:D.each((function(t){var r=t.data.data,n=r.v;if(t.children){var i=t.children.reduce((function(t,e){return t+e.data.data.v}),0);if((r.hasImpliedRoot||r.hasMultipleRoots)&amp;&amp;(n=i),n&lt;i*u)return R=!0,a.warn([&quot;Total value for node&quot;,t.data.data.id,&quot;of&quot;,e.name,&quot;is smaller than the sum of its children.&quot;,&quot;\nparent value =&quot;,n,&quot;\nchildren sum =&quot;,i].join(&quot; &quot;))}t.value=n}))}else!function t(e,r,n){var i=0,a=e.children;if(a){for(var o=a.length,s=0;s&lt;o;s++)i+=t(a[s],r,n);n.branches&amp;&amp;i++}else n.leaves&amp;&amp;i++;e.value=e.data.data.value=i,r._values||(r._values=[]);return r._values[e.data.data.i]=i,i}(D,e,{branches:-1!==e.count.indexOf(&quot;branches&quot;),leaves:-1!==e.count.indexOf(&quot;leaves&quot;)});if(!R){var F,B;e.sort&amp;&amp;D.sort((function(t,e){return e.value-t.value}));var N=e.marker.colors||[],j=!!N.length;return e._hasColorscale?(j||(N=_?e.values:e._values),c(t,e,{vals:N,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),B=o(e.marker)):F=s(g[&quot;_&quot;+e.type+&quot;colormap&quot;]),D.each((function(t){var r=t.data.data;r.color=e._hasColorscale?B(N[r.i]):F(N[r.i],r.id)})),w[0].hierarchy=D,w}},r._runCrossTraceCalc=function(t,e){var r=e._fullLayout,n=e.calcdata,i=r[t+&quot;colorway&quot;],a=r[&quot;_&quot;+t+&quot;colormap&quot;];r[&quot;extend&quot;+t+&quot;colors&quot;]&amp;&amp;(i=l(i,&quot;treemap&quot;===t?h:f));var o,s=0;function c(t){var e=t.data.data,r=e.id;!1===e.color&amp;&amp;(a[r]?e.color=a[r]:t.parent?t.parent.parent?e.color=t.parent.data.data.color:(a[r]=e.color=i[s%i.length],s++):e.color=o)}for(var u=0;u&lt;n.length;u++){var p=n[u][0];p.trace.type===t&amp;&amp;p.hierarchy&amp;&amp;(o=p.trace.root.color,p.hierarchy.each(c))}},r.crossTraceCalc=function(t){return r._runCrossTraceCalc(&quot;sunburst&quot;,t)}},{&quot;../../components/colorscale&quot;:655,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../pie/calc&quot;:1163,&quot;d3-hierarchy&quot;:161,&quot;fast-isnumeric&quot;:241}],1302:[function(t,e,r){&quot;use strict&quot;;e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:&quot;linear&quot;,eventDataKeys:[&quot;currentPath&quot;,&quot;root&quot;,&quot;entry&quot;,&quot;percentRoot&quot;,&quot;percentEntry&quot;,&quot;percentParent&quot;]}},{}],1303:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../bar/defaults&quot;).handleText,s=t(&quot;../../components/colorscale&quot;),l=s.hasColorscale,c=s.handleDefaults;e.exports=function(t,e,r,s){function u(r,a){return n.coerce(t,e,i,r,a)}var f=u(&quot;labels&quot;),h=u(&quot;parents&quot;);if(f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length){var p=u(&quot;values&quot;);p&amp;&amp;p.length?u(&quot;branchvalues&quot;):u(&quot;count&quot;),u(&quot;level&quot;),u(&quot;maxdepth&quot;),u(&quot;marker.line.width&quot;)&amp;&amp;u(&quot;marker.line.color&quot;,s.paper_bgcolor),u(&quot;marker.colors&quot;);var d=e._hasColorscale=l(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis;d&amp;&amp;c(t,e,s,u,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),u(&quot;leaf.opacity&quot;,d?1:.7);var g=u(&quot;text&quot;);u(&quot;texttemplate&quot;),e.texttemplate||u(&quot;textinfo&quot;,Array.isArray(g)?&quot;text+label&quot;:&quot;label&quot;),u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;);o(t,e,s,u,&quot;auto&quot;,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),u(&quot;insidetextorientation&quot;),u(&quot;sort&quot;),u(&quot;rotation&quot;),u(&quot;root.color&quot;),a(e,s,u),e._length=null}else e.visible=!1}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/defaults&quot;:925,&quot;./attributes&quot;:1299}],1304:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,o=t(&quot;../../components/fx&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/events&quot;),c=t(&quot;./helpers&quot;),u=t(&quot;../pie/helpers&quot;).formatPieValue;function f(t,e,r){for(var n=t.data.data,i={curveNumber:e.index,pointNumber:n.i,data:e._input,fullData:e},o=0;o&lt;r.length;o++){var s=r[o];s in t&amp;&amp;(i[s]=t[s])}return&quot;parentString&quot;in t&amp;&amp;!c.isHierarchyRoot(t)&amp;&amp;(i.parent=t.parentString),a(i,e,n.i),i}e.exports=function(t,e,r,a,h){var p=a[0],d=p.trace,g=p.hierarchy,m=&quot;sunburst&quot;===d.type,v=&quot;treemap&quot;===d.type;&quot;_hasHoverLabel&quot;in d||(d._hasHoverLabel=!1),&quot;_hasHoverEvent&quot;in d||(d._hasHoverEvent=!1);t.on(&quot;mouseover&quot;,(function(i){var a=r._fullLayout;if(!r._dragging&amp;&amp;!1!==a.hovermode){var l=r._fullData[d.index],y=i.data.data,x=y.i,b=c.isHierarchyRoot(i),_=c.getParent(g,i),w=c.getValue(i),T=function(t){return s.castOption(l,x,t)},k=T(&quot;hovertemplate&quot;),M=o.castHoverinfo(l,a,x),A=a.separators;if(k||M&amp;&amp;&quot;none&quot;!==M&amp;&amp;&quot;skip&quot;!==M){var S,E;m&amp;&amp;(S=p.cx+i.pxmid[0]*(1-i.rInscribed),E=p.cy+i.pxmid[1]*(1-i.rInscribed)),v&amp;&amp;(S=i._hoverX,E=i._hoverY);var C,L={},I=[],P=[],z=function(t){return-1!==I.indexOf(t)};M&amp;&amp;(I=&quot;all&quot;===M?l._module.attributes.hoverinfo.flags:M.split(&quot;+&quot;)),L.label=y.label,z(&quot;label&quot;)&amp;&amp;L.label&amp;&amp;P.push(L.label),y.hasOwnProperty(&quot;v&quot;)&amp;&amp;(L.value=y.v,L.valueLabel=u(L.value,A),z(&quot;value&quot;)&amp;&amp;P.push(L.valueLabel)),L.currentPath=i.currentPath=c.getPath(i.data),z(&quot;current path&quot;)&amp;&amp;!b&amp;&amp;P.push(L.currentPath);var O=[],D=function(){-1===O.indexOf(C)&amp;&amp;(P.push(C),O.push(C))};L.percentParent=i.percentParent=w/c.getValue(_),L.parent=i.parentString=c.getPtLabel(_),z(&quot;percent parent&quot;)&amp;&amp;(C=c.formatPercent(L.percentParent,A)+&quot; of &quot;+L.parent,D()),L.percentEntry=i.percentEntry=w/c.getValue(e),L.entry=i.entry=c.getPtLabel(e),!z(&quot;percent entry&quot;)||b||i.onPathbar||(C=c.formatPercent(L.percentEntry,A)+&quot; of &quot;+L.entry,D()),L.percentRoot=i.percentRoot=w/c.getValue(g),L.root=i.root=c.getPtLabel(g),z(&quot;percent root&quot;)&amp;&amp;!b&amp;&amp;(C=c.formatPercent(L.percentRoot,A)+&quot; of &quot;+L.root,D()),L.text=T(&quot;hovertext&quot;)||T(&quot;text&quot;),z(&quot;text&quot;)&amp;&amp;(C=L.text,s.isValidTextValue(C)&amp;&amp;P.push(C));var R={trace:l,y:E,text:P.join(&quot;&lt;br&gt;&quot;),name:k||z(&quot;name&quot;)?l.name:void 0,color:T(&quot;hoverlabel.bgcolor&quot;)||y.color,borderColor:T(&quot;hoverlabel.bordercolor&quot;),fontFamily:T(&quot;hoverlabel.font.family&quot;),fontSize:T(&quot;hoverlabel.font.size&quot;),fontColor:T(&quot;hoverlabel.font.color&quot;),nameLength:T(&quot;hoverlabel.namelength&quot;),textAlign:T(&quot;hoverlabel.align&quot;),hovertemplate:k,hovertemplateLabels:L,eventData:[f(i,l,h.eventDataKeys)]};m&amp;&amp;(R.x0=S-i.rInscribed*i.rpx1,R.x1=S+i.rInscribed*i.rpx1,R.idealAlign=i.pxmid[0]&lt;0?&quot;left&quot;:&quot;right&quot;),v&amp;&amp;(R.x=S,R.idealAlign=S&lt;0?&quot;left&quot;:&quot;right&quot;),o.loneHover(R,{container:a._hoverlayer.node(),outerContainer:a._paper.node(),gd:r}),d._hasHoverLabel=!0}if(v){var F=t.select(&quot;path.surface&quot;);h.styleOne(F,i,l,{hovered:!0})}d._hasHoverEvent=!0,r.emit(&quot;plotly_hover&quot;,{points:[f(i,l,h.eventDataKeys)],event:n.event})}})),t.on(&quot;mouseout&quot;,(function(e){var i=r._fullLayout,a=r._fullData[d.index],s=n.select(this).datum();if(d._hasHoverEvent&amp;&amp;(e.originalEvent=n.event,r.emit(&quot;plotly_unhover&quot;,{points:[f(s,a,h.eventDataKeys)],event:n.event}),d._hasHoverEvent=!1),d._hasHoverLabel&amp;&amp;(o.loneUnhover(i._hoverlayer.node()),d._hasHoverLabel=!1),v){var l=t.select(&quot;path.surface&quot;);h.styleOne(l,s,a,{hovered:!1})}})),t.on(&quot;click&quot;,(function(t){var e=r._fullLayout,a=r._fullData[d.index],s=m&amp;&amp;(c.isHierarchyRoot(t)||c.isLeaf(t)),u=c.getPtId(t),p=c.isEntry(t)?c.findEntryWithChild(g,u):c.findEntryWithLevel(g,u),v=c.getPtId(p),y={points:[f(t,a,h.eventDataKeys)],event:n.event};s||(y.nextLevel=v);var x=l.triggerHandler(r,&quot;plotly_&quot;+d.type+&quot;click&quot;,y);if(!1!==x&amp;&amp;e.hovermode&amp;&amp;(r._hoverdata=[f(t,a,h.eventDataKeys)],o.click(r,n.event)),!s&amp;&amp;!1!==x&amp;&amp;!r._dragging&amp;&amp;!r._transitioning){i.call(&quot;_storeDirectGUIEdit&quot;,a,e._tracePreGUI[a.uid],{level:a.level});var b={data:[{level:v}],traces:[d.index]},_={frame:{redraw:!1,duration:h.transitionTime},transition:{duration:h.transitionTime,easing:h.transitionEasing},mode:&quot;immediate&quot;,fromcurrent:!0};o.loneUnhover(e._hoverlayer.node()),i.call(&quot;animate&quot;,r,b,_)}}))}},{&quot;../../components/fx&quot;:683,&quot;../../components/fx/helpers&quot;:679,&quot;../../lib&quot;:778,&quot;../../lib/events&quot;:767,&quot;../../registry&quot;:911,&quot;../pie/helpers&quot;:1166,&quot;./helpers&quot;:1305,d3:169}],1305:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib/setcursor&quot;),o=t(&quot;../pie/helpers&quot;);function s(t){return t.data.data.pid}r.findEntryWithLevel=function(t,e){var n;return e&amp;&amp;t.eachAfter((function(t){if(r.getPtId(t)===e)return n=t.copy()})),n||t},r.findEntryWithChild=function(t,e){var n;return t.eachAfter((function(t){for(var i=t.children||[],a=0;a&lt;i.length;a++){var o=i[a];if(r.getPtId(o)===e)return n=t.copy()}})),n||t},r.isEntry=function(t){return!t.parent},r.isLeaf=function(t){return!t.children},r.getPtId=function(t){return t.data.data.id},r.getPtLabel=function(t){return t.data.data.label},r.getValue=function(t){return t.value},r.isHierarchyRoot=function(t){return&quot;&quot;===s(t)},r.setSliceCursor=function(t,e,n){var i=n.isTransitioning;if(!i){var o=t.datum();i=n.hideOnRoot&amp;&amp;r.isHierarchyRoot(o)||n.hideOnLeaves&amp;&amp;r.isLeaf(o)}a(t,i?null:&quot;pointer&quot;)},r.getInsideTextFontKey=function(t,e,r,i,a){var o=(a||{}).onPathbar?&quot;pathbar.textfont&quot;:&quot;insidetextfont&quot;,s=r.data.data.i;return n.castOption(e,s,o+&quot;.&quot;+t)||n.castOption(e,s,&quot;textfont.&quot;+t)||i.size},r.getOutsideTextFontKey=function(t,e,r,i){var a=r.data.data.i;return n.castOption(e,a,&quot;outsidetextfont.&quot;+t)||n.castOption(e,a,&quot;textfont.&quot;+t)||i.size},r.isOutsideText=function(t,e){return!t._hasColorscale&amp;&amp;r.isHierarchyRoot(e)},r.determineTextFont=function(t,e,a,o){return r.isOutsideText(t,e)?function(t,e,n){return{color:r.getOutsideTextFontKey(&quot;color&quot;,t,e,n),family:r.getOutsideTextFontKey(&quot;family&quot;,t,e,n),size:r.getOutsideTextFontKey(&quot;size&quot;,t,e,n)}}(t,e,a):function(t,e,a,o){var s=(o||{}).onPathbar,l=e.data.data,c=l.i,u=n.castOption(t,c,(s?&quot;pathbar.textfont&quot;:&quot;insidetextfont&quot;)+&quot;.color&quot;);return!u&amp;&amp;t._input.textfont&amp;&amp;(u=n.castOption(t._input,c,&quot;textfont.color&quot;)),{color:u||i.contrast(l.color),family:r.getInsideTextFontKey(&quot;family&quot;,t,e,a,o),size:r.getInsideTextFontKey(&quot;size&quot;,t,e,a,o)}}(t,e,a,o)},r.hasTransition=function(t){return!!(t&amp;&amp;t.duration&gt;0)},r.getMaxDepth=function(t){return t.maxdepth&gt;=0?t.maxdepth:1/0},r.isHeader=function(t,e){return!(r.isLeaf(t)||t.depth===e._maxDepth-1)},r.getParent=function(t,e){return r.findEntryWithLevel(t,s(e))},r.listPath=function(t,e){var n=t.parent;if(!n)return[];var i=e?[n.data[e]]:[n];return r.listPath(n,e).concat(i)},r.getPath=function(t){return r.listPath(t,&quot;label&quot;).join(&quot;/&quot;)+&quot;/&quot;},r.formatValue=o.formatPieValue,r.formatPercent=function(t,e){var r=n.formatPercent(t,0);return&quot;0%&quot;===r&amp;&amp;(r=o.formatPiePercent(t,e)),r}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../pie/helpers&quot;:1166}],1306:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;sunburst&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1299,&quot;./base_plot&quot;:1300,&quot;./calc&quot;:1301,&quot;./defaults&quot;:1303,&quot;./layout_attributes&quot;:1307,&quot;./layout_defaults&quot;:1308,&quot;./plot&quot;:1309,&quot;./style&quot;:1310}],1307:[function(t,e,r){&quot;use strict&quot;;e.exports={sunburstcolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendsunburstcolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1308:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;sunburstcolorway&quot;,e.colorway),r(&quot;extendsunburstcolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1307}],1309:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-hierarchy&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../bar/uniform_text&quot;),c=l.recordMinTextSize,u=l.clearMinTextSize,f=t(&quot;../pie/plot&quot;),h=t(&quot;../pie/helpers&quot;).getRotationAngle,p=f.computeTransform,d=f.transformInsideText,g=t(&quot;./style&quot;).styleOne,m=t(&quot;../bar/style&quot;).resizeText,v=t(&quot;./fx&quot;),y=t(&quot;./constants&quot;),x=t(&quot;./helpers&quot;);function b(t,e,l,u){var f=t._fullLayout,m=!f.uniformtext.mode&amp;&amp;x.hasTransition(u),b=n.select(l).selectAll(&quot;g.slice&quot;),w=e[0],T=w.trace,k=w.hierarchy,M=x.findEntryWithLevel(k,T.level),A=x.getMaxDepth(T),S=f._size,E=T.domain,C=S.w*(E.x[1]-E.x[0]),L=S.h*(E.y[1]-E.y[0]),I=.5*Math.min(C,L),P=w.cx=S.l+S.w*(E.x[1]+E.x[0])/2,z=w.cy=S.t+S.h*(1-E.y[0])-L/2;if(!M)return b.remove();var O=null,D={};m&amp;&amp;b.each((function(t){D[x.getPtId(t)]={rpx0:t.rpx0,rpx1:t.rpx1,x0:t.x0,x1:t.x1,transform:t.transform},!O&amp;&amp;x.isEntry(t)&amp;&amp;(O=t)}));var R=function(t){return i.partition().size([2*Math.PI,t.height+1])(t)}(M).descendants(),F=M.height+1,B=0,N=A;w.hasMultipleRoots&amp;&amp;x.isHierarchyRoot(M)&amp;&amp;(R=R.slice(1),F-=1,B=1,N+=1),R=R.filter((function(t){return t.y1&lt;=N}));var j=h(T.rotation);j&amp;&amp;R.forEach((function(t){t.x0+=j,t.x1+=j}));var U=Math.min(F,A),V=function(t){return(t-B)/U*I},q=function(t,e){return[t*Math.cos(e),-t*Math.sin(e)]},H=function(t){return o.pathAnnulus(t.rpx0,t.rpx1,t.x0,t.x1,P,z)},G=function(t){return P+_(t)[0]*(t.transform.rCenter||0)+(t.transform.x||0)},Y=function(t){return z+_(t)[1]*(t.transform.rCenter||0)+(t.transform.y||0)};(b=b.data(R,x.getPtId)).enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),m?b.exit().transition().each((function(){var t=n.select(this);t.select(&quot;path.surface&quot;).transition().attrTween(&quot;d&quot;,(function(t){var e=function(t){var e,r=x.getPtId(t),i=D[r],a=D[x.getPtId(M)];if(a){var o=(t.x1&gt;a.x1?2*Math.PI:0)+j;e=t.rpx1&lt;a.rpx1?{rpx0:0,rpx1:0}:{x0:o,x1:o}}else{var s,l=x.getPtId(t.parent);b.each((function(t){if(x.getPtId(t)===l)return s=t}));var c,u=s.children;u.forEach((function(t,e){if(x.getPtId(t)===r)return c=e}));var f=u.length,h=n.interpolate(s.x0,s.x1);e={rpx0:I,rpx1:I,x0:h(c/f),x1:h((c+1)/f)}}return n.interpolate(i,e)}(t);return function(t){return H(e(t))}})),t.select(&quot;g.slicetext&quot;).attr(&quot;opacity&quot;,0)})).remove():b.exit().remove(),b.order();var W=null;if(m&amp;&amp;O){var X=x.getPtId(O);b.each((function(t){null===W&amp;&amp;x.getPtId(t)===X&amp;&amp;(W=t.x1)}))}var Z=b;function J(t){var e=t.parent,r=D[x.getPtId(e)],i={};if(r){var a=e.children,o=a.indexOf(t),s=a.length,l=n.interpolate(r.x0,r.x1);i.x0=l(o/s),i.x1=l(o/s)}else i.x0=i.x1=0;return i}m&amp;&amp;(Z=Z.transition().each(&quot;end&quot;,(function(){var e=n.select(this);x.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})}))),Z.each((function(i){var l=n.select(this),u=o.ensureSingle(l,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));i.rpx0=V(i.y0),i.rpx1=V(i.y1),i.xmid=(i.x0+i.x1)/2,i.pxmid=q(i.rpx1,i.xmid),i.midangle=-(i.xmid-Math.PI/2),i.startangle=-(i.x0-Math.PI/2),i.stopangle=-(i.x1-Math.PI/2),i.halfangle=.5*Math.min(o.angleDelta(i.x0,i.x1)||Math.PI,Math.PI),i.ring=1-i.rpx0/i.rpx1,i.rInscribed=function(t){return 0===t.rpx0&amp;&amp;o.isFullCircle([t.x0,t.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2))}(i),m?u.transition().attrTween(&quot;d&quot;,(function(t){var e=function(t){var e,r=D[x.getPtId(t)],i={x0:t.x0,x1:t.x1,rpx0:t.rpx0,rpx1:t.rpx1};if(r)e=r;else if(O)if(t.parent)if(W){var a=(t.x1&gt;W?2*Math.PI:0)+j;e={x0:a,x1:a}}else e={rpx0:I,rpx1:I},o.extendFlat(e,J(t));else e={rpx0:0,rpx1:0};else e={x0:j,x1:j};return n.interpolate(e,i)}(t);return function(t){return H(e(t))}})):u.attr(&quot;d&quot;,H),l.call(v,M,t,e,{eventDataKeys:y.eventDataKeys,transitionTime:y.CLICK_TRANSITION_TIME,transitionEasing:y.CLICK_TRANSITION_EASING}).call(x.setSliceCursor,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:t._transitioning}),u.call(g,i,T);var h=o.ensureSingle(l,&quot;g&quot;,&quot;slicetext&quot;),b=o.ensureSingle(h,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),_=o.ensureUniformFontSize(t,x.determineTextFont(T,i,f.font));b.text(r.formatSliceLabel(i,M,T,e,f)).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(a.font,_).call(s.convertToTspans,t);var k=a.bBox(b.node());i.transform=d(k,i,w),i.transform.targetX=G(i),i.transform.targetY=Y(i);var A=function(t,e){var r=t.transform;return p(r,e),r.fontSize=_.size,c(T.type,r,f),o.getTextTransform(r)};m?b.transition().attrTween(&quot;transform&quot;,(function(t){var e=function(t){var e,r=D[x.getPtId(t)],i=t.transform;if(r)e=r;else if(e={rpx1:t.rpx1,transform:{textPosAngle:i.textPosAngle,scale:0,rotate:i.rotate,rCenter:i.rCenter,x:i.x,y:i.y}},O)if(t.parent)if(W){var a=t.x1&gt;W?2*Math.PI:0;e.x0=e.x1=a}else o.extendFlat(e,J(t));else e.x0=e.x1=j;else e.x0=e.x1=j;var s=n.interpolate(e.transform.textPosAngle,t.transform.textPosAngle),l=n.interpolate(e.rpx1,t.rpx1),u=n.interpolate(e.x0,t.x0),h=n.interpolate(e.x1,t.x1),p=n.interpolate(e.transform.scale,i.scale),d=n.interpolate(e.transform.rotate,i.rotate),g=0===i.rCenter?3:0===e.transform.rCenter?1/3:1,m=n.interpolate(e.transform.rCenter,i.rCenter);return function(t){var e=l(t),r=u(t),n=h(t),a=function(t){return m(Math.pow(t,g))}(t),o={pxmid:q(e,(r+n)/2),rpx1:e,transform:{textPosAngle:s(t),rCenter:a,x:i.x,y:i.y}};return c(T.type,i,f),{transform:{targetX:G(o),targetY:Y(o),scale:p(t),rotate:d(t),rCenter:a}}}}(t);return function(t){return A(e(t),k)}})):b.attr(&quot;transform&quot;,A(i,k))}))}function _(t){return e=t.rpx1,r=t.transform.textPosAngle,[e*Math.sin(r),-e*Math.cos(r)];var e,r}r.plot=function(t,e,r,i){var a,o,s=t._fullLayout,l=s._sunburstlayer,c=!r,f=!s.uniformtext.mode&amp;&amp;x.hasTransition(r);(u(&quot;sunburst&quot;,s),(a=l.selectAll(&quot;g.trace.sunburst&quot;).data(e,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).classed(&quot;trace&quot;,!0).classed(&quot;sunburst&quot;,!0).attr(&quot;stroke-linejoin&quot;,&quot;round&quot;),a.order(),f)?(i&amp;&amp;(o=i()),n.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){o&amp;&amp;o()})).each(&quot;interrupt&quot;,(function(){o&amp;&amp;o()})).each((function(){l.selectAll(&quot;g.trace&quot;).each((function(e){b(t,e,this,r)}))}))):(a.each((function(e){b(t,e,this,r)})),s.uniformtext.mode&amp;&amp;m(t,s._sunburstlayer.selectAll(&quot;.trace&quot;),&quot;sunburst&quot;));c&amp;&amp;a.exit().remove()},r.formatSliceLabel=function(t,e,r,n,i){var a=r.texttemplate,s=r.textinfo;if(!(a||s&amp;&amp;&quot;none&quot;!==s))return&quot;&quot;;var l=i.separators,c=n[0],u=t.data.data,f=c.hierarchy,h=x.isHierarchyRoot(t),p=x.getParent(f,t),d=x.getValue(t);if(!a){var g,m=s.split(&quot;+&quot;),v=function(t){return-1!==m.indexOf(t)},y=[];if(v(&quot;label&quot;)&amp;&amp;u.label&amp;&amp;y.push(u.label),u.hasOwnProperty(&quot;v&quot;)&amp;&amp;v(&quot;value&quot;)&amp;&amp;y.push(x.formatValue(u.v,l)),!h){v(&quot;current path&quot;)&amp;&amp;y.push(x.getPath(t.data));var b=0;v(&quot;percent parent&quot;)&amp;&amp;b++,v(&quot;percent entry&quot;)&amp;&amp;b++,v(&quot;percent root&quot;)&amp;&amp;b++;var _=b&gt;1;if(b){var w,T=function(t){g=x.formatPercent(w,l),_&amp;&amp;(g+=&quot; of &quot;+t),y.push(g)};v(&quot;percent parent&quot;)&amp;&amp;!h&amp;&amp;(w=d/x.getValue(p),T(&quot;parent&quot;)),v(&quot;percent entry&quot;)&amp;&amp;(w=d/x.getValue(e),T(&quot;entry&quot;)),v(&quot;percent root&quot;)&amp;&amp;(w=d/x.getValue(f),T(&quot;root&quot;))}}return v(&quot;text&quot;)&amp;&amp;(g=o.castOption(r,u.i,&quot;text&quot;),o.isValidTextValue(g)&amp;&amp;y.push(g)),y.join(&quot;&lt;br&gt;&quot;)}var k=o.castOption(r,u.i,&quot;texttemplate&quot;);if(!k)return&quot;&quot;;var M={};u.label&amp;&amp;(M.label=u.label),u.hasOwnProperty(&quot;v&quot;)&amp;&amp;(M.value=u.v,M.valueLabel=x.formatValue(u.v,l)),M.currentPath=x.getPath(t.data),h||(M.percentParent=d/x.getValue(p),M.percentParentLabel=x.formatPercent(M.percentParent,l),M.parent=x.getPtLabel(p)),M.percentEntry=d/x.getValue(e),M.percentEntryLabel=x.formatPercent(M.percentEntry,l),M.entry=x.getPtLabel(e),M.percentRoot=d/x.getValue(f),M.percentRootLabel=x.formatPercent(M.percentRoot,l),M.root=x.getPtLabel(f),u.hasOwnProperty(&quot;color&quot;)&amp;&amp;(M.color=u.color);var A=o.castOption(r,u.i,&quot;text&quot;);return(o.isValidTextValue(A)||&quot;&quot;===A)&amp;&amp;(M.text=A),M.customdata=o.castOption(r,u.i,&quot;customdata&quot;),o.texttemplateString(k,M,i._d3locale,M,r._meta||{})}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,&quot;../pie/helpers&quot;:1166,&quot;../pie/plot&quot;:1170,&quot;./constants&quot;:1302,&quot;./fx&quot;:1304,&quot;./helpers&quot;:1305,&quot;./style&quot;:1310,d3:169,&quot;d3-hierarchy&quot;:161}],1310:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../bar/uniform_text&quot;).resizeText;function s(t,e,r){var n=e.data.data,o=!e.children,s=n.i,l=a.castOption(r,s,&quot;marker.line.color&quot;)||i.defaultLine,c=a.castOption(r,s,&quot;marker.line.width&quot;)||0;t.style(&quot;stroke-width&quot;,c).call(i.fill,n.color).call(i.stroke,l).style(&quot;opacity&quot;,o?r.leaf.opacity:null)}e.exports={style:function(t){var e=t._fullLayout._sunburstlayer.selectAll(&quot;.trace&quot;);o(t,e,&quot;sunburst&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(s,t,r)}))}))},styleOne:s}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/uniform_text&quot;:937,d3:169}],1311:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll;function c(t){return{show:{valType:&quot;boolean&quot;,dflt:!1},start:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;},end:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;},size:{valType:&quot;number&quot;,dflt:null,min:0,editType:&quot;plot&quot;},project:{x:{valType:&quot;boolean&quot;,dflt:!1},y:{valType:&quot;boolean&quot;,dflt:!1},z:{valType:&quot;boolean&quot;,dflt:!1}},color:{valType:&quot;color&quot;,dflt:n.defaultLine},usecolormap:{valType:&quot;boolean&quot;,dflt:!1},width:{valType:&quot;number&quot;,min:1,max:16,dflt:2},highlight:{valType:&quot;boolean&quot;,dflt:!0},highlightcolor:{valType:&quot;color&quot;,dflt:n.defaultLine},highlightwidth:{valType:&quot;number&quot;,min:1,max:16,dflt:2}}}var u=e.exports=l(s({z:{valType:&quot;data_array&quot;},x:{valType:&quot;data_array&quot;},y:{valType:&quot;data_array&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertemplate:a(),connectgaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},surfacecolor:{valType:&quot;data_array&quot;}},i(&quot;&quot;,{colorAttr:&quot;z or surfacecolor&quot;,showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}),{contours:{x:c(),y:c(),z:c()},hidesurface:{valType:&quot;boolean&quot;,dflt:!1},lightposition:{x:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:10},y:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:1e4},z:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:&quot;number&quot;,min:0,max:1,dflt:.8},diffuse:{valType:&quot;number&quot;,min:0,max:1,dflt:.8},specular:{valType:&quot;number&quot;,min:0,max:2,dflt:.05},roughness:{valType:&quot;number&quot;,min:0,max:1,dflt:.5},fresnel:{valType:&quot;number&quot;,min:0,max:5,dflt:.2}},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},opacityscale:{valType:&quot;any&quot;,editType:&quot;calc&quot;},_deprecated:{zauto:s({},i.zauto,{}),zmin:s({},i.zmin,{}),zmax:s({},i.zmax,{})},hoverinfo:s({},o.hoverinfo),showlegend:s({},o.showlegend,{dflt:!1})}),&quot;calc&quot;,&quot;nested&quot;);u.x.editType=u.y.editType=u.z.editType=&quot;calc+clearAxisTypes&quot;,u.transforms=void 0},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906}],1312:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){e.surfacecolor?n(t,e,{vals:e.surfacecolor,containerStr:&quot;&quot;,cLetter:&quot;c&quot;}):n(t,e,{vals:e.z,containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651}],1313:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-surface3d&quot;),i=t(&quot;ndarray&quot;),a=t(&quot;ndarray-linear-interpolate&quot;).d2,o=t(&quot;../heatmap/interp2d&quot;),s=t(&quot;../heatmap/find_empties&quot;),l=t(&quot;../../lib&quot;).isArrayOrTypedArray,c=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,u=t(&quot;../../lib/str2rgbarray&quot;),f=t(&quot;../../components/colorscale&quot;).extractOpts;function h(t,e,r){this.scene=t,this.uid=r,this.surface=e,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var p=h.prototype;p.getXat=function(t,e,r,n){var i=l(this.data.x)?l(this.data.x[0])?this.data.x[e][t]:this.data.x[t]:t;return void 0===r?i:n.d2l(i,0,r)},p.getYat=function(t,e,r,n){var i=l(this.data.y)?l(this.data.y[0])?this.data.y[e][t]:this.data.y[e]:e;return void 0===r?i:n.d2l(i,0,r)},p.getZat=function(t,e,r,n){var i=this.data.z[e][t];return null===i&amp;&amp;this.data.connectgaps&amp;&amp;this.data._interpolatedZ&amp;&amp;(i=this.data._interpolatedZ[e][t]),void 0===r?i:n.d2l(i,0,r)},p.handlePick=function(t){if(t.object===this.surface){var e=(t.data.index[0]-1)/this.dataScaleX-1,r=(t.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(e),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);t.index=[n,i],t.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],t.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a&lt;3;a++){var o=t.dataCoordinate[a];null!=o&amp;&amp;(t.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return Array.isArray(s)&amp;&amp;s[i]&amp;&amp;void 0!==s[i][n]?t.textLabel=s[i][n]:t.textLabel=s||&quot;&quot;,t.data.dataCoordinate=t.dataCoordinate.slice(),this.surface.highlight(t.data),this.scene.glplot.spikes.position=t.dataCoordinate,!0}};var d=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function g(t,e){if(t&lt;e)return 0;for(var r=0;0===Math.floor(t%e);)t/=e,r++;return r}function m(t){for(var e=[],r=0;r&lt;d.length;r++){var n=d[r];e.push(g(t,n))}return e}function v(t){for(var e=m(t),r=t,n=0;n&lt;d.length;n++)if(e[n]&gt;0){r=d[n];break}return r}function y(t,e){if(!(t&lt;1||e&lt;1)){for(var r=m(t),n=m(e),i=1,a=0;a&lt;d.length;a++)i*=Math.pow(d[a],Math.max(r[a],n[a]));return i}}p.calcXnums=function(t){var e,r=[];for(e=1;e&lt;t;e++){var n=this.getXat(e-1,0),i=this.getXat(e,0);r[e-1]=i!==n&amp;&amp;null!=n&amp;&amp;null!=i?Math.abs(i-n):0}var a=0;for(e=1;e&lt;t;e++)a+=r[e-1];for(e=1;e&lt;t;e++)0===r[e-1]?r[e-1]=1:r[e-1]=Math.round(a/r[e-1]);return r},p.calcYnums=function(t){var e,r=[];for(e=1;e&lt;t;e++){var n=this.getYat(0,e-1),i=this.getYat(0,e);r[e-1]=i!==n&amp;&amp;null!=n&amp;&amp;null!=i?Math.abs(i-n):0}var a=0;for(e=1;e&lt;t;e++)a+=r[e-1];for(e=1;e&lt;t;e++)0===r[e-1]?r[e-1]=1:r[e-1]=Math.round(a/r[e-1]);return r};var x=[1,2,4,6,12,24,36,48,60,120,180,240,360,720,840,1260],b=x[9],_=x[13];function w(t,e,r){var n=r[8]+r[2]*e[0]+r[5]*e[1];return t[0]=(r[6]+r[0]*e[0]+r[3]*e[1])/n,t[1]=(r[7]+r[1]*e[0]+r[4]*e[1])/n,t}function T(t,e,r){return function(t,e,r,n){for(var i=[0,0],o=t.shape[0],s=t.shape[1],l=0;l&lt;o;l++)for(var c=0;c&lt;s;c++)r(i,[l,c],n),t.set(l,c,a(e,i[0],i[1]))}(t,e,w,r),t}function k(t,e){for(var r=!1,n=0;n&lt;t.length;n++)if(e===t[n]){r=!0;break}!1===r&amp;&amp;t.push(e)}p.estimateScale=function(t,e){for(var r=1+function(t){if(0!==t.length){for(var e=1,r=0;r&lt;t.length;r++)e=y(e,t[r]);return e}}(0===e?this.calcXnums(t):this.calcYnums(t));r&lt;b;)r*=2;for(;r&gt;_;)r--,r/=v(r),++r&lt;b&amp;&amp;(r=_);var n=Math.round(r/t);return n&gt;1?n:1},p.refineCoords=function(t){for(var e=this.dataScaleX,r=this.dataScaleY,n=t[0].shape[0],a=t[0].shape[1],o=0|Math.floor(t[0].shape[0]*e+1),s=0|Math.floor(t[0].shape[1]*r+1),l=1+n+1,c=1+a+1,u=i(new Float32Array(l*c),[l,c]),f=[1/e,0,0,0,1/r,0,0,0,1],h=0;h&lt;t.length;++h){this.surface.padField(u,t[h]);var p=i(new Float32Array(o*s),[o,s]);T(p,u,f),t[h]=p}},p.setContourLevels=function(){var t,e,r,n=[[],[],[]],i=[!1,!1,!1],a=!1;for(t=0;t&lt;3;++t)if(this.showContour[t]&amp;&amp;(a=!0,this.contourSize[t]&gt;0&amp;&amp;null!==this.contourStart[t]&amp;&amp;null!==this.contourEnd[t]&amp;&amp;this.contourEnd[t]&gt;this.contourStart[t]))for(i[t]=!0,e=this.contourStart[t];e&lt;this.contourEnd[t];e+=this.contourSize[t])r=e*this.scene.dataScale[t],k(n[t],r);if(a){var o=[[],[],[]];for(t=0;t&lt;3;++t)this.showContour[t]&amp;&amp;(o[t]=i[t]?n[t]:this.scene.contourLevels[t]);this.surface.update({levels:o})}},p.update=function(t){var e,r,n,a,l=this.scene,h=l.fullSceneLayout,p=this.surface,d=c(t),g=l.dataScale,m=t.z[0].length,v=t._ylength,y=l.contourLevels;this.data=t;var x=[];for(e=0;e&lt;3;e++)for(x[e]=[],r=0;r&lt;m;r++)x[e][r]=[];for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)x[0][r][n]=this.getXat(r,n,t.xcalendar,h.xaxis),x[1][r][n]=this.getYat(r,n,t.ycalendar,h.yaxis),x[2][r][n]=this.getZat(r,n,t.zcalendar,h.zaxis);if(t.connectgaps)for(t._emptypoints=s(x[2]),o(x[2],t._emptypoints),t._interpolatedZ=[],r=0;r&lt;m;r++)for(t._interpolatedZ[r]=[],n=0;n&lt;v;n++)t._interpolatedZ[r][n]=x[2][r][n];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null==(a=x[e][r][n])?x[e][r][n]=NaN:a=x[e][r][n]*=g[e];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null!=(a=x[e][r][n])&amp;&amp;(this.minValues[e]&gt;a&amp;&amp;(this.minValues[e]=a),this.maxValues[e]&lt;a&amp;&amp;(this.maxValues[e]=a));for(e=0;e&lt;3;e++)this.objectOffset[e]=.5*(this.minValues[e]+this.maxValues[e]);for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null!=(a=x[e][r][n])&amp;&amp;(x[e][r][n]-=this.objectOffset[e]);var b=[i(new Float32Array(m*v),[m,v]),i(new Float32Array(m*v),[m,v]),i(new Float32Array(m*v),[m,v])];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)b[e].set(r,n,x[e][r][n]);x=[];var w={colormap:d,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!t.hidesurface,contourProject:[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],contourWidth:[1,1,1],contourColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],contourTint:[1,1,1],dynamicColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],dynamicWidth:[1,1,1],dynamicTint:[1,1,1],opacityscale:t.opacityscale,opacity:t.opacity},T=f(t);if(w.intensityBounds=[T.min,T.max],t.surfacecolor){var k=i(new Float32Array(m*v),[m,v]);for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)k.set(r,n,t.surfacecolor[n][r]);b.push(k)}else w.intensityBounds[0]*=g[2],w.intensityBounds[1]*=g[2];(_&lt;b[0].shape[0]||_&lt;b[0].shape[1])&amp;&amp;(this.refineData=!1),!0===this.refineData&amp;&amp;(this.dataScaleX=this.estimateScale(b[0].shape[0],0),this.dataScaleY=this.estimateScale(b[0].shape[1],1),1===this.dataScaleX&amp;&amp;1===this.dataScaleY||this.refineCoords(b)),t.surfacecolor&amp;&amp;(w.intensity=b.pop());var M=[!0,!0,!0],A=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(e=0;e&lt;3;++e){var S=t.contours[A[e]];M[e]=S.highlight,w.showContour[e]=S.show||S.highlight,w.showContour[e]&amp;&amp;(w.contourProject[e]=[S.project.x,S.project.y,S.project.z],S.show?(this.showContour[e]=!0,w.levels[e]=y[e],p.highlightColor[e]=w.contourColor[e]=u(S.color),S.usecolormap?p.highlightTint[e]=w.contourTint[e]=0:p.highlightTint[e]=w.contourTint[e]=1,w.contourWidth[e]=S.width,this.contourStart[e]=S.start,this.contourEnd[e]=S.end,this.contourSize[e]=S.size):(this.showContour[e]=!1,this.contourStart[e]=null,this.contourEnd[e]=null,this.contourSize[e]=0),S.highlight&amp;&amp;(w.dynamicColor[e]=u(S.highlightcolor),w.dynamicWidth[e]=S.highlightwidth))}(function(t){var e=t[0].rgb,r=t[t.length-1].rgb;return e[0]===r[0]&amp;&amp;e[1]===r[1]&amp;&amp;e[2]===r[2]&amp;&amp;e[3]===r[3]})(d)&amp;&amp;(w.vertexColor=!0),w.objectOffset=this.objectOffset,w.coords=b,p.update(w),p.visible=t.visible,p.enableDynamic=M,p.enableHighlight=M,p.snapToData=!0,&quot;lighting&quot;in t&amp;&amp;(p.ambientLight=t.lighting.ambient,p.diffuseLight=t.lighting.diffuse,p.specularLight=t.lighting.specular,p.roughness=t.lighting.roughness,p.fresnel=t.lighting.fresnel),&quot;lightposition&quot;in t&amp;&amp;(p.lightPosition=[t.lightposition.x,t.lightposition.y,t.lightposition.z])},p.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new h(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../heatmap/find_empties&quot;:1071,&quot;../heatmap/interp2d&quot;:1074,&quot;gl-surface3d&quot;:351,ndarray:495,&quot;ndarray-linear-interpolate&quot;:489}],1314:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r,n){var i=n(&quot;opacityscale&quot;);&quot;max&quot;===i?e.opacityscale=[[0,.1],[1,1]]:&quot;min&quot;===i?e.opacityscale=[[0,1],[1,.1]]:&quot;extremes&quot;===i?e.opacityscale=function(t,e){for(var r=[],n=0;n&lt;32;n++){var i=n/31,a=e+(1-e)*(1-Math.pow(Math.sin(t*i*Math.PI),2));r.push([i,Math.max(0,Math.min(1,a))])}return r}(1,.1):function(t){var e=0;if(!Array.isArray(t)||t.length&lt;2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r&lt;t.length;r++){var n=t[r];if(2!==n.length||+n[0]&lt;e)return!1;e=+n[0]}return!0}(i)||(e.opacityscale=void 0)}function l(t,e,r){e in t&amp;&amp;!(r in t)&amp;&amp;(t[r]=t[e])}e.exports={supplyDefaults:function(t,e,r,c){var u,f;function h(r,n){return i.coerce(t,e,o,r,n)}var p=h(&quot;x&quot;),d=h(&quot;y&quot;),g=h(&quot;z&quot;);if(!g||!g.length||p&amp;&amp;p.length&lt;1||d&amp;&amp;d.length&lt;1)e.visible=!1;else{e._xlength=Array.isArray(p)&amp;&amp;i.isArrayOrTypedArray(p[0])?g.length:g[0].length,e._ylength=g.length,n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],c),h(&quot;text&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;),[&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;hidesurface&quot;,&quot;connectgaps&quot;,&quot;opacity&quot;].forEach((function(t){h(t)}));var m=h(&quot;surfacecolor&quot;),v=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(u=0;u&lt;3;++u){var y=&quot;contours.&quot;+v[u],x=h(y+&quot;.show&quot;),b=h(y+&quot;.highlight&quot;);if(x||b)for(f=0;f&lt;3;++f)h(y+&quot;.project.&quot;+v[f]);x&amp;&amp;(h(y+&quot;.color&quot;),h(y+&quot;.width&quot;),h(y+&quot;.usecolormap&quot;)),b&amp;&amp;(h(y+&quot;.highlightcolor&quot;),h(y+&quot;.highlightwidth&quot;)),h(y+&quot;.start&quot;),h(y+&quot;.end&quot;),h(y+&quot;.size&quot;)}m||(l(t,&quot;zmin&quot;,&quot;cmin&quot;),l(t,&quot;zmax&quot;,&quot;cmax&quot;),l(t,&quot;zauto&quot;,&quot;cauto&quot;)),a(t,e,c,h,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(t,e,c,h),e._length=null}},opacityscaleDefaults:s}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1311}],1315:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;surface&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;2dMap&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1311,&quot;./calc&quot;:1312,&quot;./convert&quot;:1313,&quot;./defaults&quot;:1314}],1316:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/annotations/attributes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../../plot_api/edit_types&quot;).overrideAll,o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes;t(&quot;../../constants/docs&quot;).FORMAT_LINK;(e.exports=a({domain:s({name:&quot;table&quot;,trace:!0}),columnwidth:{valType:&quot;number&quot;,arrayOk:!0,dflt:null},columnorder:{valType:&quot;data_array&quot;},header:{values:{valType:&quot;data_array&quot;,dflt:[]},format:{valType:&quot;data_array&quot;,dflt:[]},prefix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},suffix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},height:{valType:&quot;number&quot;,dflt:28},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:&quot;number&quot;,arrayOk:!0,dflt:1},color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;grey&quot;}},fill:{color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;white&quot;}},font:i({},o({arrayOk:!0}))},cells:{values:{valType:&quot;data_array&quot;,dflt:[]},format:{valType:&quot;data_array&quot;,dflt:[]},prefix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},suffix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},height:{valType:&quot;number&quot;,dflt:20},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:&quot;number&quot;,arrayOk:!0,dflt:1},color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;grey&quot;}},fill:{color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;white&quot;}},font:i({},o({arrayOk:!0}))}},&quot;calc&quot;,&quot;from-root&quot;)).transforms=void 0},{&quot;../../components/annotations/attributes&quot;:626,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856}],1317:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getModuleCalcData,i=t(&quot;./plot&quot;);r.name=&quot;table&quot;,r.plot=function(t){var e=n(t.calcdata,&quot;table&quot;)[0];e.length&amp;&amp;i(t,e)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;table&quot;),a=e._has&amp;&amp;e._has(&quot;table&quot;);i&amp;&amp;!a&amp;&amp;n._paperdiv.selectAll(&quot;.table&quot;).remove()}},{&quot;../../plots/get_data&quot;:865,&quot;./plot&quot;:1324}],1318:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/gup&quot;).wrap;e.exports=function(){return n({})}},{&quot;../../lib/gup&quot;:775}],1319:[function(t,e,r){&quot;use strict&quot;;e.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:&quot;&lt;br&gt;&quot;,maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:&quot;cubic-out&quot;,scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:&quot;cubic-out&quot;,uplift:5,wrapSpacer:&quot; &quot;,wrapSplitCharacter:&quot; &quot;,cn:{table:&quot;table&quot;,tableControlView:&quot;table-control-view&quot;,scrollBackground:&quot;scroll-background&quot;,yColumn:&quot;y-column&quot;,columnBlock:&quot;column-block&quot;,scrollAreaClip:&quot;scroll-area-clip&quot;,scrollAreaClipRect:&quot;scroll-area-clip-rect&quot;,columnBoundary:&quot;column-boundary&quot;,columnBoundaryClippath:&quot;column-boundary-clippath&quot;,columnBoundaryRect:&quot;column-boundary-rect&quot;,columnCells:&quot;column-cells&quot;,columnCell:&quot;column-cell&quot;,cellRect:&quot;cell-rect&quot;,cellText:&quot;cell-text&quot;,cellTextHolder:&quot;cell-text-holder&quot;,scrollbarKit:&quot;scrollbar-kit&quot;,scrollbar:&quot;scrollbar&quot;,scrollbarSlider:&quot;scrollbar-slider&quot;,scrollbarGlyph:&quot;scrollbar-glyph&quot;,scrollbarCaptureZone:&quot;scrollbar-capture-zone&quot;}}},{}],1320:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;fast-isnumeric&quot;);function o(t){if(Array.isArray(t)){for(var e=0,r=0;r&lt;t.length;r++)e=Math.max(e,o(t[r]));return e}return t}function s(t,e){return t+e}function l(t){var e,r=t.slice(),n=1/0,i=0;for(e=0;e&lt;r.length;e++)Array.isArray(r[e])||(r[e]=[r[e]]),n=Math.min(n,r[e].length),i=Math.max(i,r[e].length);if(n!==i)for(e=0;e&lt;r.length;e++){var a=i-r[e].length;a&amp;&amp;(r[e]=r[e].concat(c(a)))}return r}function c(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=&quot;&quot;;return e}function u(t){return t.calcdata.columns.reduce((function(e,r){return r.xIndex&lt;t.xIndex?e+r.columnWidth:e}),0)}function f(t,e){return Object.keys(t).map((function(r){return i({},t[r],{auxiliaryBlocks:e})}))}function h(t,e){for(var r,n={},i=0,a=0,o={firstRowIndex:null,lastRowIndex:null,rows:[]},s=0,l=0,c=0;c&lt;t.length;c++)r=t[c],o.rows.push({rowIndex:c,rowHeight:r}),((a+=r)&gt;=e||c===t.length-1)&amp;&amp;(n[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=c,o={firstRowIndex:null,lastRowIndex:null,rows:[]},i+=a,s=c+1,a=0);return n}e.exports=function(t,e){var r=l(e.cells.values),p=function(t){return t.slice(e.header.values.length,t.length)},d=l(e.header.values);d.length&amp;&amp;!d[0].length&amp;&amp;(d[0]=[&quot;&quot;],d=l(d));var g=d.concat(p(r).map((function(){return c((d[0]||[&quot;&quot;]).length)}))),m=e.domain,v=Math.floor(t._fullLayout._size.w*(m.x[1]-m.x[0])),y=Math.floor(t._fullLayout._size.h*(m.y[1]-m.y[0])),x=e.header.values.length?g[0].map((function(){return e.header.height})):[n.emptyHeaderHeight],b=r.length?r[0].map((function(){return e.cells.height})):[],_=x.reduce(s,0),w=h(b,y-_+n.uplift),T=f(h(x,_),[]),k=f(w,T),M={},A=e._fullInput.columnorder.concat(p(r.map((function(t,e){return e})))),S=g.map((function(t,r){var n=Array.isArray(e.columnwidth)?e.columnwidth[Math.min(r,e.columnwidth.length-1)]:e.columnwidth;return a(n)?Number(n):1})),E=S.reduce(s,0);S=S.map((function(t){return t/E*v}));var C=Math.max(o(e.header.line.width),o(e.cells.line.width)),L={key:e.uid+t._context.staticPlot,translateX:m.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-m.y[1]),size:t._fullLayout._size,width:v,maxLineWidth:C,height:y,columnOrder:A,groupHeight:y,rowBlocks:k,headerRowBlocks:T,scrollY:0,cells:i({},e.cells,{values:r}),headerCells:i({},e.header,{values:g}),gdColumns:g.map((function(t){return t[0]})),gdColumnsOriginalOrder:g.map((function(t){return t[0]})),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:g.map((function(t,e){var r=M[t];return M[t]=(r||0)+1,{key:t+&quot;__&quot;+M[t],label:t,specIndex:e,xIndex:A[e],xScale:u,x:void 0,calcdata:void 0,columnWidth:S[e]}}))};return L.columns.forEach((function(t){t.calcdata=L,t.x=u(t)})),L}},{&quot;../../lib/extend&quot;:768,&quot;./constants&quot;:1319,&quot;fast-isnumeric&quot;:241}],1321:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat;r.splitToPanels=function(t){var e=[0,0],r=n({},t,{key:&quot;header&quot;,type:&quot;header&quot;,page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!0,values:t.calcdata.headerCells.values[t.specIndex],rowBlocks:t.calcdata.headerRowBlocks,calcdata:n({},t.calcdata,{cells:t.calcdata.headerCells})});return[n({},t,{key:&quot;cells1&quot;,type:&quot;cells&quot;,page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),n({},t,{key:&quot;cells2&quot;,type:&quot;cells&quot;,page:1,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),r]},r.splitToCells=function(t){var e=function(t){var e=t.rowBlocks[t.page],r=e?e.rows[0].rowIndex:0,n=e?r+e.rows.length:0;return[r,n]}(t);return(t.values||[]).slice(e[0],e[1]).map((function(r,n){return{keyWithinBlock:n+(&quot;string&quot;==typeof r&amp;&amp;r.match(/[&lt;$&amp;&gt; ]/)?&quot;_keybuster_&quot;+Math.random():&quot;&quot;),key:e[0]+n,column:t,calcdata:t.calcdata,page:t.page,rowBlocks:t.rowBlocks,value:r}}))}},{&quot;../../lib/extend&quot;:768}],1322:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults;e.exports=function(t,e,r,o){function s(r,a){return n.coerce(t,e,i,r,a)}a(e,o,s),s(&quot;columnwidth&quot;),s(&quot;header.values&quot;),s(&quot;header.format&quot;),s(&quot;header.align&quot;),s(&quot;header.prefix&quot;),s(&quot;header.suffix&quot;),s(&quot;header.height&quot;),s(&quot;header.line.width&quot;),s(&quot;header.line.color&quot;),s(&quot;header.fill.color&quot;),n.coerceFont(s,&quot;header.font&quot;,n.extendFlat({},o.font)),function(t,e){for(var r=t.columnorder||[],n=t.header.values.length,i=r.slice(0,n),a=i.slice().sort((function(t,e){return t-e})),o=i.map((function(t){return a.indexOf(t)})),s=o.length;s&lt;n;s++)o.push(s);e(&quot;columnorder&quot;,o)}(e,s),s(&quot;cells.values&quot;),s(&quot;cells.format&quot;),s(&quot;cells.align&quot;),s(&quot;cells.prefix&quot;),s(&quot;cells.suffix&quot;),s(&quot;cells.height&quot;),s(&quot;cells.line.width&quot;),s(&quot;cells.line.color&quot;),s(&quot;cells.fill.color&quot;),n.coerceFont(s,&quot;cells.font&quot;,n.extendFlat({},o.font)),e._length=null}},{&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1316}],1323:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),moduleType:&quot;trace&quot;,name:&quot;table&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1316,&quot;./base_plot&quot;:1317,&quot;./calc&quot;:1318,&quot;./defaults&quot;:1322,&quot;./plot&quot;:1324}],1324:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;d3&quot;),a=t(&quot;../../lib/gup&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../../lib&quot;).raiseToTop,c=t(&quot;../../lib&quot;).strTranslate,u=t(&quot;../../lib&quot;).cancelTransition,f=t(&quot;./data_preparation_helper&quot;),h=t(&quot;./data_split_helpers&quot;),p=t(&quot;../../components/color&quot;);function d(t){return Math.ceil(t.calcdata.maxLineWidth/2)}function g(t,e){return&quot;clip&quot;+t._fullLayout._uid+&quot;_scrollAreaBottomClip_&quot;+e.key}function m(t,e){return&quot;clip&quot;+t._fullLayout._uid+&quot;_columnBoundaryClippath_&quot;+e.calcdata.key+&quot;_&quot;+e.specIndex}function v(t){return[].concat.apply([],t.map((function(t){return t}))).map((function(t){return t.__data__}))}function y(t,e,r){var o=t.selectAll(&quot;.&quot;+n.cn.scrollbarKit).data(a.repeat,a.keyFun);o.enter().append(&quot;g&quot;).classed(n.cn.scrollbarKit,!0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;),o.each((function(t){var e=t.scrollbarState;e.totalHeight=function(t){var e=t.rowBlocks;return O(e,e.length-1)+(e.length?D(e[e.length-1],1/0):1)}(t),e.scrollableAreaHeight=t.groupHeight-A(t),e.currentlyVisibleHeight=Math.min(e.totalHeight,e.scrollableAreaHeight),e.ratio=e.currentlyVisibleHeight/e.totalHeight,e.barLength=Math.max(e.ratio*e.currentlyVisibleHeight,n.goldenRatio*n.scrollbarWidth),e.barWiggleRoom=e.currentlyVisibleHeight-e.barLength,e.wiggleRoom=Math.max(0,e.totalHeight-e.scrollableAreaHeight),e.topY=0===e.barWiggleRoom?0:t.scrollY/e.wiggleRoom*e.barWiggleRoom,e.bottomY=e.topY+e.barLength,e.dragMultiplier=e.wiggleRoom/e.barWiggleRoom})).attr(&quot;transform&quot;,(function(t){var e=t.width+n.scrollbarWidth/2+n.scrollbarOffset;return c(e,A(t))}));var s=o.selectAll(&quot;.&quot;+n.cn.scrollbar).data(a.repeat,a.keyFun);s.enter().append(&quot;g&quot;).classed(n.cn.scrollbar,!0);var l=s.selectAll(&quot;.&quot;+n.cn.scrollbarSlider).data(a.repeat,a.keyFun);l.enter().append(&quot;g&quot;).classed(n.cn.scrollbarSlider,!0),l.attr(&quot;transform&quot;,(function(t){return c(0,t.scrollbarState.topY||0)}));var u=l.selectAll(&quot;.&quot;+n.cn.scrollbarGlyph).data(a.repeat,a.keyFun);u.enter().append(&quot;line&quot;).classed(n.cn.scrollbarGlyph,!0).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,n.scrollbarWidth).attr(&quot;stroke-linecap&quot;,&quot;round&quot;).attr(&quot;y1&quot;,n.scrollbarWidth/2),u.attr(&quot;y2&quot;,(function(t){return t.scrollbarState.barLength-n.scrollbarWidth/2})).attr(&quot;stroke-opacity&quot;,(function(t){return t.columnDragInProgress||!t.scrollbarState.barWiggleRoom||r?0:.4})),u.transition().delay(0).duration(0),u.transition().delay(n.scrollbarHideDelay).duration(n.scrollbarHideDuration).attr(&quot;stroke-opacity&quot;,0);var f=s.selectAll(&quot;.&quot;+n.cn.scrollbarCaptureZone).data(a.repeat,a.keyFun);f.enter().append(&quot;line&quot;).classed(n.cn.scrollbarCaptureZone,!0).attr(&quot;stroke&quot;,&quot;white&quot;).attr(&quot;stroke-opacity&quot;,.01).attr(&quot;stroke-width&quot;,n.scrollbarCaptureWidth).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;).attr(&quot;y1&quot;,0).on(&quot;mousedown&quot;,(function(r){var n=i.event.y,a=this.getBoundingClientRect(),o=r.scrollbarState,s=n-a.top,l=i.scale.linear().domain([0,o.scrollableAreaHeight]).range([0,o.totalHeight]).clamp(!0);o.topY&lt;=s&amp;&amp;s&lt;=o.bottomY||E(e,t,null,l(s-o.barLength/2))(r)})).call(i.behavior.drag().origin((function(t){return i.event.stopPropagation(),t.scrollbarState.scrollbarScrollInProgress=!0,t})).on(&quot;drag&quot;,E(e,t)).on(&quot;dragend&quot;,(function(){}))),f.attr(&quot;y2&quot;,(function(t){return t.scrollbarState.scrollableAreaHeight})),e._context.staticPlot&amp;&amp;(u.remove(),f.remove())}function x(t,e,r,s){var l=function(t){var e=t.selectAll(&quot;.&quot;+n.cn.columnCell).data(h.splitToCells,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;g&quot;).classed(n.cn.columnCell,!0),e.exit().remove(),e}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.columnCells).data(a.repeat,a.keyFun);return e.enter().append(&quot;g&quot;).classed(n.cn.columnCells,!0),e.exit().remove(),e}(r));!function(t){t.each((function(t,e){var r=t.calcdata.cells.font,n=t.column.specIndex,i={size:w(r.size,n,e),color:w(r.color,n,e),family:w(r.family,n,e)};t.rowNumber=t.key,t.align=w(t.calcdata.cells.align,n,e),t.cellBorderWidth=w(t.calcdata.cells.line.width,n,e),t.font=i}))}(l),function(t){t.attr(&quot;width&quot;,(function(t){return t.column.columnWidth})).attr(&quot;stroke-width&quot;,(function(t){return t.cellBorderWidth})).each((function(t){var e=i.select(this);p.stroke(e,w(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),p.fill(e,w(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))}))}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellRect).data(a.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;rect&quot;).classed(n.cn.cellRect,!0),e}(l));var c=function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellText).data(a.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;text&quot;).classed(n.cn.cellText,!0).style(&quot;cursor&quot;,(function(){return&quot;auto&quot;})).on(&quot;mousedown&quot;,(function(){i.event.stopPropagation()})),e}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellTextHolder).data(a.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;g&quot;).classed(n.cn.cellTextHolder,!0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;),e}(l));!function(t){t.each((function(t){o.font(i.select(this),t.font)}))}(c),b(c,e,s,t),z(l)}function b(t,e,r,a){t.text((function(t){var e=t.column.specIndex,r=t.rowNumber,a=t.value,o=&quot;string&quot;==typeof a,s=o&amp;&amp;a.match(/&lt;br&gt;/i),l=!o||s;t.mayHaveMarkup=o&amp;&amp;a.match(/[&lt;&amp;&gt;]/);var c,u=&quot;string&quot;==typeof(c=a)&amp;&amp;c.match(n.latexCheck);t.latex=u;var f,h,p=u?&quot;&quot;:w(t.calcdata.cells.prefix,e,r)||&quot;&quot;,d=u?&quot;&quot;:w(t.calcdata.cells.suffix,e,r)||&quot;&quot;,g=u?null:w(t.calcdata.cells.format,e,r)||null,m=p+(g?i.format(g)(t.value):t.value)+d;if(t.wrappingNeeded=!t.wrapped&amp;&amp;!l&amp;&amp;!u&amp;&amp;(f=_(m)),t.cellHeightMayIncrease=s||u||t.mayHaveMarkup||(void 0===f?_(m):f),t.needsConvertToTspans=t.mayHaveMarkup||t.wrappingNeeded||t.latex,t.wrappingNeeded){var v=(&quot; &quot;===n.wrapSplitCharacter?m.replace(/&lt;a href=/gi,&quot;&lt;a_href=&quot;):m).split(n.wrapSplitCharacter),y=&quot; &quot;===n.wrapSplitCharacter?v.map((function(t){return t.replace(/&lt;a_href=/gi,&quot;&lt;a href=&quot;)})):v;t.fragments=y.map((function(t){return{text:t,width:null}})),t.fragments.push({fragment:n.wrapSpacer,width:null}),h=y.join(n.lineBreaker)+n.lineBreaker+n.wrapSpacer}else delete t.fragments,h=m;return h})).attr(&quot;dy&quot;,(function(t){return t.needsConvertToTspans?0:&quot;0.75em&quot;})).each((function(t){var o=i.select(this),l=t.wrappingNeeded?L:I;t.needsConvertToTspans?s.convertToTspans(o,a,l(r,this,e,a,t)):i.select(this.parentNode).attr(&quot;transform&quot;,(function(t){return c(P(t),n.cellPad)})).attr(&quot;text-anchor&quot;,(function(t){return{left:&quot;start&quot;,center:&quot;middle&quot;,right:&quot;end&quot;}[t.align]}))}))}function _(t){return-1!==t.indexOf(n.wrapSplitCharacter)}function w(t,e,r){if(Array.isArray(t)){var n=t[Math.min(e,t.length-1)];return Array.isArray(n)?n[Math.min(r,n.length-1)]:n}return t}function T(t,e,r){t.transition().ease(n.releaseTransitionEase).duration(n.releaseTransitionDuration).attr(&quot;transform&quot;,c(e.x,r))}function k(t){return&quot;cells&quot;===t.type}function M(t){return&quot;header&quot;===t.type}function A(t){return(t.rowBlocks.length?t.rowBlocks[0].auxiliaryBlocks:[]).reduce((function(t,e){return t+D(e,1/0)}),0)}function S(t,e,r){var n=v(e)[0];if(void 0!==n){var i=n.rowBlocks,a=n.calcdata,o=O(i,i.length),s=n.calcdata.groupHeight-A(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),u=function(t,e,r){for(var n=[],i=0,a=0;a&lt;t.length;a++){for(var o=t[a],s=o.rows,l=0,c=0;c&lt;s.length;c++)l+=s[c].rowHeight;o.allRowsHeight=l;e&lt;i+l&amp;&amp;e+r&gt;i&amp;&amp;n.push(a),i+=l}return n}(i,l,s);1===u.length&amp;&amp;(u[0]===i.length-1?u.unshift(u[0]-1):u.push(u[0]+1)),u[0]%2&amp;&amp;u.reverse(),e.each((function(t,e){t.page=u[e],t.scrollY=l})),e.attr(&quot;transform&quot;,(function(t){var e=O(t.rowBlocks,t.page)-t.scrollY;return c(0,e)})),t&amp;&amp;(C(t,r,e,u,n.prevPages,n,0),C(t,r,e,u,n.prevPages,n,1),y(r,t))}}function E(t,e,r,a){return function(o){var s=o.calcdata?o.calcdata:o,l=e.filter((function(t){return s.key===t.key})),c=r||s.scrollbarState.dragMultiplier,u=s.scrollY;s.scrollY=void 0===a?s.scrollY+c*i.event.dy:a;var f=l.selectAll(&quot;.&quot;+n.cn.yColumn).selectAll(&quot;.&quot;+n.cn.columnBlock).filter(k);return S(t,f,l),s.scrollY===u}}function C(t,e,r,n,i,a,o){n[o]!==i[o]&amp;&amp;(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout((function(){var a=r.filter((function(t,e){return e===o&amp;&amp;n[e]!==i[e]}));x(t,e,a,r),i[o]=n[o]})))}function L(t,e,r,a){return function(){var o=i.select(e.parentNode);o.each((function(t){var e=t.fragments;o.selectAll(&quot;tspan.line&quot;).each((function(t,r){e[r].width=this.getComputedTextLength()}));var r,i,a=e[e.length-1].width,s=e.slice(0,-1),l=[],c=0,u=t.column.columnWidth-2*n.cellPad;for(t.value=&quot;&quot;;s.length;)c+(i=(r=s.shift()).width+a)&gt;u&amp;&amp;(t.value+=l.join(n.wrapSpacer)+n.lineBreaker,l=[],c=0),l.push(r.text),c+=i;c&amp;&amp;(t.value+=l.join(n.wrapSpacer)),t.wrapped=!0})),o.selectAll(&quot;tspan.line&quot;).remove(),b(o.select(&quot;.&quot;+n.cn.cellText),r,t,a),i.select(e.parentNode.parentNode).call(z)}}function I(t,e,r,a,o){return function(){if(!o.settledY){var s=i.select(e.parentNode),l=F(o),u=o.key-l.firstRowIndex,f=l.rows[u].rowHeight,h=o.cellHeightMayIncrease?e.parentNode.getBoundingClientRect().height+2*n.cellPad:f,p=Math.max(h,f);p-l.rows[u].rowHeight&amp;&amp;(l.rows[u].rowHeight=p,t.selectAll(&quot;.&quot;+n.cn.columnCell).call(z),S(null,t.filter(k),0),y(r,a,!0)),s.attr(&quot;transform&quot;,(function(){var t=this.parentNode.getBoundingClientRect(),e=i.select(this.parentNode).select(&quot;.&quot;+n.cn.cellRect).node().getBoundingClientRect(),r=this.transform.baseVal.consolidate(),a=e.top-t.top+(r?r.matrix.f:n.cellPad);return c(P(o,i.select(this.parentNode).select(&quot;.&quot;+n.cn.cellTextHolder).node().getBoundingClientRect().width),a)})),o.settledY=!0}}}function P(t,e){switch(t.align){case&quot;left&quot;:return n.cellPad;case&quot;right&quot;:return t.column.columnWidth-(e||0)-n.cellPad;case&quot;center&quot;:return(t.column.columnWidth-(e||0))/2;default:return n.cellPad}}function z(t){t.attr(&quot;transform&quot;,(function(t){var e=t.rowBlocks[0].auxiliaryBlocks.reduce((function(t,e){return t+D(e,1/0)}),0),r=D(F(t),t.key);return c(0,r+e)})).selectAll(&quot;.&quot;+n.cn.cellRect).attr(&quot;height&quot;,(function(t){return(e=F(t),r=t.key,e.rows[r-e.firstRowIndex]).rowHeight;var e,r}))}function O(t,e){for(var r=0,n=e-1;n&gt;=0;n--)r+=R(t[n]);return r}function D(t,e){for(var r=0,n=0;n&lt;t.rows.length&amp;&amp;t.rows[n].rowIndex&lt;e;n++)r+=t.rows[n].rowHeight;return r}function R(t){var e=t.allRowsHeight;if(void 0!==e)return e;for(var r=0,n=0;n&lt;t.rows.length;n++)r+=t.rows[n].rowHeight;return t.allRowsHeight=r,r}function F(t){return t.rowBlocks[t.page]}e.exports=function(t,e){var r=!t._context.staticPlot,s=t._fullLayout._paper.selectAll(&quot;.&quot;+n.cn.table).data(e.map((function(e){var r=a.unwrap(e).trace;return f(t,r)})),a.keyFun);s.exit().remove(),s.enter().append(&quot;g&quot;).classed(n.cn.table,!0).attr(&quot;overflow&quot;,&quot;visible&quot;).style(&quot;box-sizing&quot;,&quot;content-box&quot;).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;left&quot;,0).style(&quot;overflow&quot;,&quot;visible&quot;).style(&quot;shape-rendering&quot;,&quot;crispEdges&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;),s.attr(&quot;width&quot;,(function(t){return t.width+t.size.l+t.size.r})).attr(&quot;height&quot;,(function(t){return t.height+t.size.t+t.size.b})).attr(&quot;transform&quot;,(function(t){return c(t.translateX,t.translateY)}));var p=s.selectAll(&quot;.&quot;+n.cn.tableControlView).data(a.repeat,a.keyFun),b=p.enter().append(&quot;g&quot;).classed(n.cn.tableControlView,!0).style(&quot;box-sizing&quot;,&quot;content-box&quot;);if(r){var _=&quot;onwheel&quot;in document?&quot;wheel&quot;:&quot;mousewheel&quot;;b.on(&quot;mousemove&quot;,(function(e){p.filter((function(t){return e===t})).call(y,t)})).on(_,(function(e){if(!e.scrollbarState.wheeling){e.scrollbarState.wheeling=!0;var r=e.scrollY+i.event.deltaY;E(t,p,null,r)(e)||(i.event.stopPropagation(),i.event.preventDefault()),e.scrollbarState.wheeling=!1}})).call(y,t,!0)}p.attr(&quot;transform&quot;,(function(t){return c(t.size.l,t.size.t)}));var w=p.selectAll(&quot;.&quot;+n.cn.scrollBackground).data(a.repeat,a.keyFun);w.enter().append(&quot;rect&quot;).classed(n.cn.scrollBackground,!0).attr(&quot;fill&quot;,&quot;none&quot;),w.attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})),p.each((function(e){o.setClipUrl(i.select(this),g(t,e),t)}));var A=p.selectAll(&quot;.&quot;+n.cn.yColumn).data((function(t){return t.columns}),a.keyFun);A.enter().append(&quot;g&quot;).classed(n.cn.yColumn,!0),A.exit().remove(),A.attr(&quot;transform&quot;,(function(t){return c(t.x,0)})),r&amp;&amp;A.call(i.behavior.drag().origin((function(e){return T(i.select(this),e,-n.uplift),l(this),e.calcdata.columnDragInProgress=!0,y(p.filter((function(t){return e.calcdata.key===t.key})),t),e})).on(&quot;drag&quot;,(function(t){var e=i.select(this),r=function(e){return(t===e?i.event.x:e.x)+e.columnWidth/2};t.x=Math.max(-n.overdrag,Math.min(t.calcdata.width+n.overdrag-t.columnWidth,i.event.x)),v(A).filter((function(e){return e.calcdata.key===t.calcdata.key})).sort((function(t,e){return r(t)-r(e)})).forEach((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e)})),A.filter((function(e){return t!==e})).transition().ease(n.transitionEase).duration(n.transitionDuration).attr(&quot;transform&quot;,(function(t){return c(t.x,0)})),e.call(u).attr(&quot;transform&quot;,c(t.x,-n.uplift))})).on(&quot;dragend&quot;,(function(e){var r=i.select(this),n=e.calcdata;e.x=e.xScale(e),e.calcdata.columnDragInProgress=!1,T(r,e,0),function(t,e,r){var n=e.gdColumnsOriginalOrder;e.gdColumns.sort((function(t,e){return r[n.indexOf(t)]-r[n.indexOf(e)]})),e.columnorder=r,t.emit(&quot;plotly_restyle&quot;)}(t,n,n.columns.map((function(t){return t.xIndex})))}))),A.each((function(e){o.setClipUrl(i.select(this),m(t,e),t)}));var C=A.selectAll(&quot;.&quot;+n.cn.columnBlock).data(h.splitToPanels,a.keyFun);C.enter().append(&quot;g&quot;).classed(n.cn.columnBlock,!0).attr(&quot;id&quot;,(function(t){return t.key})),C.style(&quot;cursor&quot;,(function(t){return t.dragHandle?&quot;ew-resize&quot;:t.calcdata.scrollbarState.barWiggleRoom?&quot;ns-resize&quot;:&quot;default&quot;}));var L=C.filter(M),I=C.filter(k);r&amp;&amp;I.call(i.behavior.drag().origin((function(t){return i.event.stopPropagation(),t})).on(&quot;drag&quot;,E(t,p,-1)).on(&quot;dragend&quot;,(function(){}))),x(t,p,L,C),x(t,p,I,C);var P=p.selectAll(&quot;.&quot;+n.cn.scrollAreaClip).data(a.repeat,a.keyFun);P.enter().append(&quot;clipPath&quot;).classed(n.cn.scrollAreaClip,!0).attr(&quot;id&quot;,(function(e){return g(t,e)}));var z=P.selectAll(&quot;.&quot;+n.cn.scrollAreaClipRect).data(a.repeat,a.keyFun);z.enter().append(&quot;rect&quot;).classed(n.cn.scrollAreaClipRect,!0).attr(&quot;x&quot;,-n.overdrag).attr(&quot;y&quot;,-n.uplift).attr(&quot;fill&quot;,&quot;none&quot;),z.attr(&quot;width&quot;,(function(t){return t.width+2*n.overdrag})).attr(&quot;height&quot;,(function(t){return t.height+n.uplift})),A.selectAll(&quot;.&quot;+n.cn.columnBoundary).data(a.repeat,a.keyFun).enter().append(&quot;g&quot;).classed(n.cn.columnBoundary,!0);var O=A.selectAll(&quot;.&quot;+n.cn.columnBoundaryClippath).data(a.repeat,a.keyFun);O.enter().append(&quot;clipPath&quot;).classed(n.cn.columnBoundaryClippath,!0),O.attr(&quot;id&quot;,(function(e){return m(t,e)}));var D=O.selectAll(&quot;.&quot;+n.cn.columnBoundaryRect).data(a.repeat,a.keyFun);D.enter().append(&quot;rect&quot;).classed(n.cn.columnBoundaryRect,!0).attr(&quot;fill&quot;,&quot;none&quot;),D.attr(&quot;width&quot;,(function(t){return t.columnWidth+2*d(t)})).attr(&quot;height&quot;,(function(t){return t.calcdata.height+2*d(t)+n.uplift})).attr(&quot;x&quot;,(function(t){return-d(t)})).attr(&quot;y&quot;,(function(t){return-d(t)})),S(null,I,p)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;../../lib/svg_text_utils&quot;:803,&quot;./constants&quot;:1319,&quot;./data_preparation_helper&quot;:1320,&quot;./data_split_helpers&quot;:1321,d3:169}],1325:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../pie/attributes&quot;),l=t(&quot;../sunburst/attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:l.labels,parents:l.parents,values:l.values,branchvalues:l.branchvalues,count:l.count,level:l.level,maxdepth:l.maxdepth,tiling:{packing:{valType:&quot;enumerated&quot;,values:[&quot;squarify&quot;,&quot;binary&quot;,&quot;dice&quot;,&quot;slice&quot;,&quot;slice-dice&quot;,&quot;dice-slice&quot;],dflt:&quot;squarify&quot;,editType:&quot;plot&quot;},squarifyratio:{valType:&quot;number&quot;,min:1,dflt:1,editType:&quot;plot&quot;},flip:{valType:&quot;flaglist&quot;,flags:[&quot;x&quot;,&quot;y&quot;],dflt:&quot;&quot;,editType:&quot;plot&quot;},pad:{valType:&quot;number&quot;,min:0,dflt:3,editType:&quot;plot&quot;},editType:&quot;calc&quot;},marker:u({pad:{t:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},l:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},r:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},b:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},colors:l.marker.colors,depthfade:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],editType:&quot;style&quot;},line:l.marker.line,editType:&quot;calc&quot;},a(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),pathbar:{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;plot&quot;},edgeshape:{valType:&quot;enumerated&quot;,values:[&quot;&gt;&quot;,&quot;&lt;&quot;,&quot;|&quot;,&quot;/&quot;,&quot;\\&quot;],dflt:&quot;&gt;&quot;,editType:&quot;plot&quot;},thickness:{valType:&quot;number&quot;,min:12,editType:&quot;plot&quot;},textfont:u({},s.textfont,{}),editType:&quot;calc&quot;},text:s.text,textinfo:l.textinfo,texttemplate:i({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:s.hovertext,hoverinfo:l.hoverinfo,hovertemplate:n({},{keys:c.eventDataKeys}),textfont:s.textfont,insidetextfont:s.insidetextfont,outsidetextfont:u({},s.outsidetextfont,{}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle left&quot;,&quot;middle center&quot;,&quot;middle right&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],dflt:&quot;top left&quot;,editType:&quot;plot&quot;},sort:s.sort,root:l.root,domain:o({name:&quot;treemap&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/domain&quot;:855,&quot;../../plots/template_attributes&quot;:906,&quot;../pie/attributes&quot;:1161,&quot;../sunburst/attributes&quot;:1299,&quot;./constants&quot;:1328}],1326:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;treemap&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1327:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../sunburst/calc&quot;);r.calc=function(t,e){return n.calc(t,e)},r.crossTraceCalc=function(t){return n._runCrossTraceCalc(&quot;treemap&quot;,t)}},{&quot;../sunburst/calc&quot;:1301}],1328:[function(t,e,r){&quot;use strict&quot;;e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:&quot;poly&quot;,eventDataKeys:[&quot;currentPath&quot;,&quot;root&quot;,&quot;entry&quot;,&quot;percentRoot&quot;,&quot;percentEntry&quot;,&quot;percentParent&quot;],gapWithPathbar:1}},{}],1329:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText,l=t(&quot;../bar/constants&quot;).TEXTPAD,c=t(&quot;../../components/colorscale&quot;),u=c.hasColorscale,f=c.handleDefaults;e.exports=function(t,e,r,c){function h(r,a){return n.coerce(t,e,i,r,a)}var p=h(&quot;labels&quot;),d=h(&quot;parents&quot;);if(p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length){var g=h(&quot;values&quot;);g&amp;&amp;g.length?h(&quot;branchvalues&quot;):h(&quot;count&quot;),h(&quot;level&quot;),h(&quot;maxdepth&quot;),&quot;squarify&quot;===h(&quot;tiling.packing&quot;)&amp;&amp;h(&quot;tiling.squarifyratio&quot;),h(&quot;tiling.flip&quot;),h(&quot;tiling.pad&quot;);var m=h(&quot;text&quot;);h(&quot;texttemplate&quot;),e.texttemplate||h(&quot;textinfo&quot;,Array.isArray(m)?&quot;text+label&quot;:&quot;label&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;);var v=h(&quot;pathbar.visible&quot;);s(t,e,c,h,&quot;auto&quot;,{hasPathbar:v,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),h(&quot;textposition&quot;);var y=-1!==e.textposition.indexOf(&quot;bottom&quot;);h(&quot;marker.line.width&quot;)&amp;&amp;h(&quot;marker.line.color&quot;,c.paper_bgcolor);var x=h(&quot;marker.colors&quot;),b=e._hasColorscale=u(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis;b?f(t,e,c,h,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}):h(&quot;marker.depthfade&quot;,!(x||[]).length);var _=2*e.textfont.size;h(&quot;marker.pad.t&quot;,y?_/4:_),h(&quot;marker.pad.l&quot;,_/4),h(&quot;marker.pad.r&quot;,_/4),h(&quot;marker.pad.b&quot;,y?_:_/4),b&amp;&amp;f(t,e,c,h,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),e._hovered={marker:{line:{width:2,color:a.contrast(c.paper_bgcolor)}}},v&amp;&amp;(h(&quot;pathbar.thickness&quot;,e.pathbar.textfont.size+2*l),h(&quot;pathbar.side&quot;),h(&quot;pathbar.edgeshape&quot;)),h(&quot;sort&quot;),h(&quot;root.color&quot;),o(e,c,h),e._length=null}else e.visible=!1}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/constants&quot;:923,&quot;../bar/defaults&quot;:925,&quot;./attributes&quot;:1325}],1330:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;./constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;);e.exports=function(t,e,r,h,p){var d=p.barDifY,g=p.width,m=p.height,v=p.viewX,y=p.viewY,x=p.pathSlice,b=p.toMoveInsideSlice,_=p.strTransform,w=p.hasTransition,T=p.handleSlicesExit,k=p.makeUpdateSliceInterpolator,M=p.makeUpdateTextInterpolator,A={},S=t._fullLayout,E=e[0],C=E.trace,L=E.hierarchy,I=g/C._entryDepth,P=u.listPath(r.data,&quot;id&quot;),z=s(L.copy(),[g,m],{packing:&quot;dice&quot;,pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();(z=z.filter((function(t){var e=P.indexOf(t.data.id);return-1!==e&amp;&amp;(t.x0=I*e,t.x1=I*(e+1),t.y0=d,t.y1=d+m,t.onPathbar=!0,!0)}))).reverse(),(h=h.data(z,u.getPtId)).enter().append(&quot;g&quot;).classed(&quot;pathbar&quot;,!0),T(h,!0,A,[g,m],x),h.order();var O=h;w&amp;&amp;(O=O.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})}))),O.each((function(s){s._hoverX=v(s.x1-Math.min(g,m)/2),s._hoverY=y(s.y1-m/2);var h=n.select(this),p=i.ensureSingle(h,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?p.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!0,A,[g,m]);return function(t){return x(e(t))}})):p.attr(&quot;d&quot;,x),h.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),p.call(l,s,C,{hovered:!1}),s._text=(u.getPtLabel(s)||&quot;&quot;).split(&quot;&lt;br&gt;&quot;).join(&quot; &quot;)||&quot;&quot;;var d=i.ensureSingle(h,&quot;g&quot;,&quot;slicetext&quot;),T=i.ensureSingle(d,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),E=i.ensureUniformFontSize(t,u.determineTextFont(C,s,S.font,{onPathbar:!0}));T.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,&quot;start&quot;).call(a.font,E).call(o.convertToTspans,t),s.textBB=a.bBox(T.node()),s.transform=b(s,{fontSize:E.size,onPathbar:!0}),s.transform.fontSize=E.size,w?T.transition().attrTween(&quot;transform&quot;,(function(t){var e=M(t,!0,A,[g,m]);return function(t){return _(e(t))}})):T.attr(&quot;transform&quot;,_(s))}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../sunburst/fx&quot;:1304,&quot;../sunburst/helpers&quot;:1305,&quot;./constants&quot;:1328,&quot;./partition&quot;:1335,&quot;./style&quot;:1337,d3:169}],1331:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;./constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;),h=t(&quot;../sunburst/plot&quot;).formatSliceLabel;e.exports=function(t,e,r,p,d){var g=d.width,m=d.height,v=d.viewX,y=d.viewY,x=d.pathSlice,b=d.toMoveInsideSlice,_=d.strTransform,w=d.hasTransition,T=d.handleSlicesExit,k=d.makeUpdateSliceInterpolator,M=d.makeUpdateTextInterpolator,A=d.prevEntry,S=t._fullLayout,E=e[0].trace,C=-1!==E.textposition.indexOf(&quot;left&quot;),L=-1!==E.textposition.indexOf(&quot;right&quot;),I=-1!==E.textposition.indexOf(&quot;bottom&quot;),P=!I&amp;&amp;!E.marker.pad.t||I&amp;&amp;!E.marker.pad.b,z=s(r,[g,m],{packing:E.tiling.packing,squarifyratio:E.tiling.squarifyratio,flipX:E.tiling.flip.indexOf(&quot;x&quot;)&gt;-1,flipY:E.tiling.flip.indexOf(&quot;y&quot;)&gt;-1,pad:{inner:E.tiling.pad,top:E.marker.pad.t,left:E.marker.pad.l,right:E.marker.pad.r,bottom:E.marker.pad.b}}).descendants(),O=1/0,D=-1/0;z.forEach((function(t){var e=t.depth;e&gt;=E._maxDepth?(t.x0=t.x1=(t.x0+t.x1)/2,t.y0=t.y1=(t.y0+t.y1)/2):(O=Math.min(O,e),D=Math.max(D,e))})),p=p.data(z,u.getPtId),E._maxVisibleLayers=isFinite(D)?D-O+1:0,p.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),T(p,!1,{},[g,m],x),p.order();var R=null;if(w&amp;&amp;A){var F=u.getPtId(A);p.each((function(t){null===R&amp;&amp;u.getPtId(t)===F&amp;&amp;(R={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})}))}var B=function(){return R||{x0:0,x1:g,y0:0,y1:m}},N=p;return w&amp;&amp;(N=N.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),N.each((function(s){var p=u.isHeader(s,E);s._hoverX=v(s.x1-E.marker.pad.r),s._hoverY=y(I?s.y1-E.marker.pad.b/2:s.y0+E.marker.pad.t/2);var d=n.select(this),T=i.ensureSingle(d,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?T.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!1,B(),[g,m]);return function(t){return x(e(t))}})):T.attr(&quot;d&quot;,x),d.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{isTransitioning:t._transitioning}),T.call(l,s,E,{hovered:!1}),s.x0===s.x1||s.y0===s.y1?s._text=&quot;&quot;:s._text=p?P?&quot;&quot;:u.getPtLabel(s)||&quot;&quot;:h(s,r,E,e,S)||&quot;&quot;;var A=i.ensureSingle(d,&quot;g&quot;,&quot;slicetext&quot;),z=i.ensureSingle(A,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),O=i.ensureUniformFontSize(t,u.determineTextFont(E,s,S.font));z.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,L?&quot;end&quot;:C||p?&quot;start&quot;:&quot;middle&quot;).call(a.font,O).call(o.convertToTspans,t),s.textBB=a.bBox(z.node()),s.transform=b(s,{fontSize:O.size,isHeader:p}),s.transform.fontSize=O.size,w?z.transition().attrTween(&quot;transform&quot;,(function(t){var e=M(t,!1,B(),[g,m]);return function(t){return _(e(t))}})):z.attr(&quot;transform&quot;,_(s))})),R}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../sunburst/fx&quot;:1304,&quot;../sunburst/helpers&quot;:1305,&quot;../sunburst/plot&quot;:1309,&quot;./constants&quot;:1328,&quot;./partition&quot;:1335,&quot;./style&quot;:1337,d3:169}],1332:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;treemap&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1325,&quot;./base_plot&quot;:1326,&quot;./calc&quot;:1327,&quot;./defaults&quot;:1329,&quot;./layout_attributes&quot;:1333,&quot;./layout_defaults&quot;:1334,&quot;./plot&quot;:1336,&quot;./style&quot;:1337}],1333:[function(t,e,r){&quot;use strict&quot;;e.exports={treemapcolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendtreemapcolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1334:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;treemapcolorway&quot;,e.colorway),r(&quot;extendtreemapcolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1333}],1335:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;);e.exports=function(t,e,r){var i,a=r.flipX,o=r.flipY,s=&quot;dice-slice&quot;===r.packing,l=r.pad[o?&quot;bottom&quot;:&quot;top&quot;],c=r.pad[a?&quot;right&quot;:&quot;left&quot;],u=r.pad[a?&quot;left&quot;:&quot;right&quot;],f=r.pad[o?&quot;top&quot;:&quot;bottom&quot;];s&amp;&amp;(i=c,c=l,l=i,i=u,u=f,f=i);var h=n.treemap().tile(function(t,e){switch(t){case&quot;squarify&quot;:return n.treemapSquarify.ratio(e);case&quot;binary&quot;:return n.treemapBinary;case&quot;dice&quot;:return n.treemapDice;case&quot;slice&quot;:return n.treemapSlice;default:return n.treemapSliceDice}}(r.packing,r.squarifyratio)).paddingInner(r.pad.inner).paddingLeft(c).paddingRight(u).paddingTop(l).paddingBottom(f).size(s?[e[1],e[0]]:e)(t);return(s||a||o)&amp;&amp;function t(e,r,n){var i;n.swapXY&amp;&amp;(i=e.x0,e.x0=e.y0,e.y0=i,i=e.x1,e.x1=e.y1,e.y1=i);n.flipX&amp;&amp;(i=e.x0,e.x0=r[0]-e.x1,e.x1=r[0]-i);n.flipY&amp;&amp;(i=e.y0,e.y0=r[1]-e.y1,e.y1=r[1]-i);var a=e.children;if(a)for(var o=0;o&lt;a.length;o++)t(a[o],r,n)}(h,e,{swapXY:s,flipX:a,flipY:o}),h}},{&quot;d3-hierarchy&quot;:161}],1336:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../sunburst/helpers&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../bar/constants&quot;).TEXTPAD,s=t(&quot;../bar/plot&quot;).toMoveInsideBar,l=t(&quot;../bar/uniform_text&quot;),c=l.recordMinTextSize,u=l.clearMinTextSize,f=t(&quot;../bar/style&quot;).resizeText,h=t(&quot;./constants&quot;),p=t(&quot;./draw_descendants&quot;),d=t(&quot;./draw_ancestors&quot;);function g(t){return i.isHierarchyRoot(t)?&quot;&quot;:i.getPtId(t)}function m(t,e,r,l){var u=t._fullLayout,f=e[0],m=f.trace,v=f.hierarchy,y=i.findEntryWithLevel(v,m.level),x=n.select(r),b=x.selectAll(&quot;g.pathbar&quot;),_=x.selectAll(&quot;g.slice&quot;);if(!y)return b.remove(),void _.remove();var w=i.isHierarchyRoot(y),T=!u.uniformtext.mode&amp;&amp;i.hasTransition(l),k=i.getMaxDepth(m),M=u._size,A=m.domain,S=M.w*(A.x[1]-A.x[0]),E=M.h*(A.y[1]-A.y[0]),C=S,L=m.pathbar.thickness,I=m.marker.line.width+h.gapWithPathbar,P=m.pathbar.visible?m.pathbar.side.indexOf(&quot;bottom&quot;)&gt;-1?E+I:-(L+I):0,z={x0:C,x1:C,y0:P,y1:P+L},O=function(t,e,r){var n=m.tiling.pad,i=function(t){return t-n&lt;=e.x0},a=function(t){return t+n&gt;=e.x1},o=function(t){return t-n&lt;=e.y0},s=function(t){return t+n&gt;=e.y1};return{x0:i(t.x0-n)?0:a(t.x0-n)?r[0]:t.x0,x1:i(t.x1+n)?0:a(t.x1+n)?r[0]:t.x1,y0:o(t.y0-n)?0:s(t.y0-n)?r[1]:t.y0,y1:o(t.y1+n)?0:s(t.y1+n)?r[1]:t.y1}},D=null,R={},F={},B=null,N=function(t,e){return e?R[g(t)]:F[g(t)]},j=function(t,e,r,n){if(e)return R[g(v)]||z;var i=F[m.level]||r;return function(t){return t.data.depth-y.data.depth&lt;k}(t)?O(t,i,n):{}};f.hasMultipleRoots&amp;&amp;w&amp;&amp;k++,m._maxDepth=k,m._backgroundColor=u.paper_bgcolor,m._entryDepth=y.data.depth,m._atRootLevel=w;var U=-S/2+M.l+M.w*(A.x[1]+A.x[0])/2,V=-E/2+M.t+M.h*(1-(A.y[1]+A.y[0])/2),q=function(t){return U+t},H=function(t){return V+t},G=H(0),Y=q(0),W=function(t){return Y+t},X=function(t){return G+t};function Z(t,e){return t+&quot;,&quot;+e}var J=W(0),K=function(t){t.x=Math.max(J,t.x)},Q=m.pathbar.edgeshape,$=function(t,e){var r=t.x0,n=t.x1,i=t.y0,a=t.y1,l=t.textBB,f=function(t){return-1!==m.textposition.indexOf(t)},h=f(&quot;bottom&quot;),p=f(&quot;top&quot;)||e.isHeader&amp;&amp;!h?&quot;start&quot;:h?&quot;end&quot;:&quot;middle&quot;,d=f(&quot;right&quot;),g=f(&quot;left&quot;)||e.onPathbar?-1:d?1:0,v=m.marker.pad;if(e.isHeader){if((r+=v.l-o)&gt;=(n-=v.r-o)){var y=(r+n)/2;r=y,n=y}var x;h?i&lt;(x=a-v.b)&amp;&amp;x&lt;a&amp;&amp;(i=x):i&lt;(x=i+v.t)&amp;&amp;x&lt;a&amp;&amp;(a=x)}var b=s(r,n,i,a,l,{isHorizontal:!1,constrained:!0,angle:0,anchor:p,leftToRight:g});return b.fontSize=e.fontSize,b.targetX=q(b.targetX),b.targetY=H(b.targetY),isNaN(b.targetX)||isNaN(b.targetY)?{}:(r!==n&amp;&amp;i!==a&amp;&amp;c(m.type,b,u),{scale:b.scale,rotate:b.rotate,textX:b.textX,textY:b.textY,anchorX:b.anchorX,anchorY:b.anchorY,targetX:b.targetX,targetY:b.targetY})},tt=function(t,e){for(var r,n=0,i=t;!r&amp;&amp;n&lt;k;)n++,(i=i.parent)?r=N(i,e):n=k;return r||{}},et=function(t,e,r,i){var o,s=N(t,e);if(s)o=s;else if(e)o=z;else if(D)if(t.parent){var l=B||r;l&amp;&amp;!e?o=O(t,l,i):(o={},a.extendFlat(o,tt(t,e)))}else o=t;else o={};return n.interpolate(o,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})},rt=function(t,e,r,o){var s=N(t,e),l={},f=j(t,e,r,o);a.extendFlat(l,{transform:$({x0:f.x0,x1:f.x1,y0:f.y0,y1:f.y1,textBB:t.textBB,_text:t._text},{isHeader:i.isHeader(t,m)})}),s?l=s:t.parent&amp;&amp;a.extendFlat(l,tt(t,e));var h=t.transform;return t.x0!==t.x1&amp;&amp;t.y0!==t.y1&amp;&amp;c(m.type,h,u),n.interpolate(l,{transform:{scale:h.scale,rotate:h.rotate,textX:h.textX,textY:h.textY,anchorX:h.anchorX,anchorY:h.anchorY,targetX:h.targetX,targetY:h.targetY}})},nt=function(t,e,r,i,a){var o=i[0],s=i[1];T?t.exit().transition().each((function(){var t=n.select(this);t.select(&quot;path.surface&quot;).transition().attrTween(&quot;d&quot;,(function(t){var r=function(t,e,r,i){var a,o=N(t,e);if(e)a=z;else{var s=N(y,e);a=s?O(t,s,i):{}}return n.interpolate(o,a)}(t,e,0,[o,s]);return function(t){return a(r(t))}})),t.select(&quot;g.slicetext&quot;).attr(&quot;opacity&quot;,0)})).remove():t.exit().remove()},it=function(t){var e=t.transform;return t.x0!==t.x1&amp;&amp;t.y0!==t.y1&amp;&amp;c(m.type,e,u),a.getTextTransform({textX:e.textX,textY:e.textY,anchorX:e.anchorX,anchorY:e.anchorY,targetX:e.targetX,targetY:e.targetY,scale:e.scale,rotate:e.rotate})};T&amp;&amp;(b.each((function(t){R[g(t)]={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1},t.transform&amp;&amp;(R[g(t)].transform={textX:t.transform.textX,textY:t.transform.textY,anchorX:t.transform.anchorX,anchorY:t.transform.anchorY,targetX:t.transform.targetX,targetY:t.transform.targetY,scale:t.transform.scale,rotate:t.transform.rotate})})),_.each((function(t){F[g(t)]={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1},t.transform&amp;&amp;(F[g(t)].transform={textX:t.transform.textX,textY:t.transform.textY,anchorX:t.transform.anchorX,anchorY:t.transform.anchorY,targetX:t.transform.targetX,targetY:t.transform.targetY,scale:t.transform.scale,rotate:t.transform.rotate}),!D&amp;&amp;i.isEntry(t)&amp;&amp;(D=t)}))),B=p(t,e,y,_,{width:S,height:E,viewX:q,viewY:H,pathSlice:function(t){var e=q(t.x0),r=q(t.x1),n=H(t.y0),i=H(t.y1),a=r-e,o=i-n;if(!a||!o)return&quot;&quot;;return&quot;M&quot;+Z(e,n+0)+&quot;L&quot;+Z(r-0,n)+&quot;L&quot;+Z(r,i-0)+&quot;L&quot;+Z(e+0,i)+&quot;Z&quot;},toMoveInsideSlice:$,prevEntry:D,makeUpdateSliceInterpolator:et,makeUpdateTextInterpolator:rt,handleSlicesExit:nt,hasTransition:T,strTransform:it}),m.pathbar.visible?d(t,e,y,b,{barDifY:P,width:C,height:L,viewX:W,viewY:X,pathSlice:function(t){var e=W(Math.max(Math.min(t.x0,t.x0),0)),r=W(Math.min(Math.max(t.x1,t.x1),C)),n=X(t.y0),i=X(t.y1),a=L/2,o={},s={};o.x=e,s.x=r,o.y=s.y=(n+i)/2;var l={x:e,y:n},c={x:r,y:n},u={x:r,y:i},f={x:e,y:i};return&quot;&gt;&quot;===Q?(l.x-=a,c.x-=a,u.x-=a,f.x-=a):&quot;/&quot;===Q?(u.x-=a,f.x-=a,o.x-=a/2,s.x-=a/2):&quot;\\&quot;===Q?(l.x-=a,c.x-=a,o.x-=a/2,s.x-=a/2):&quot;&lt;&quot;===Q&amp;&amp;(o.x-=a,s.x-=a),K(l),K(f),K(o),K(c),K(u),K(s),&quot;M&quot;+Z(l.x,l.y)+&quot;L&quot;+Z(c.x,c.y)+&quot;L&quot;+Z(s.x,s.y)+&quot;L&quot;+Z(u.x,u.y)+&quot;L&quot;+Z(f.x,f.y)+&quot;L&quot;+Z(o.x,o.y)+&quot;Z&quot;},toMoveInsideSlice:$,makeUpdateSliceInterpolator:et,makeUpdateTextInterpolator:rt,handleSlicesExit:nt,hasTransition:T,strTransform:it}):b.remove()}e.exports=function(t,e,r,a){var o,s,l=t._fullLayout,c=l._treemaplayer,h=!r;(u(&quot;treemap&quot;,l),(o=c.selectAll(&quot;g.trace.treemap&quot;).data(e,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).classed(&quot;trace&quot;,!0).classed(&quot;treemap&quot;,!0),o.order(),!l.uniformtext.mode&amp;&amp;i.hasTransition(r))?(a&amp;&amp;(s=a()),n.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){s&amp;&amp;s()})).each(&quot;interrupt&quot;,(function(){s&amp;&amp;s()})).each((function(){c.selectAll(&quot;g.trace&quot;).each((function(e){m(t,e,this,r)}))}))):(o.each((function(e){m(t,e,this,r)})),l.uniformtext.mode&amp;&amp;f(t,l._treemaplayer.selectAll(&quot;.trace&quot;),&quot;treemap&quot;));h&amp;&amp;o.exit().remove()}},{&quot;../../lib&quot;:778,&quot;../bar/constants&quot;:923,&quot;../bar/plot&quot;:932,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,&quot;../sunburst/helpers&quot;:1305,&quot;./constants&quot;:1328,&quot;./draw_ancestors&quot;:1330,&quot;./draw_descendants&quot;:1331,d3:169}],1337:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../sunburst/helpers&quot;),s=t(&quot;../bar/uniform_text&quot;).resizeText;function l(t,e,r,n){var s,l,c=(n||{}).hovered,u=e.data.data,f=u.i,h=u.color,p=o.isHierarchyRoot(e),d=1;if(c)s=r._hovered.marker.line.color,l=r._hovered.marker.line.width;else if(p&amp;&amp;h===r.root.color)d=100,s=&quot;rgba(0,0,0,0)&quot;,l=0;else if(s=a.castOption(r,f,&quot;marker.line.color&quot;)||i.defaultLine,l=a.castOption(r,f,&quot;marker.line.width&quot;)||0,!r._hasColorscale&amp;&amp;!e.onPathbar){var g=r.marker.depthfade;if(g){var m,v=i.combine(i.addOpacity(r._backgroundColor,.75),h);if(!0===g){var y=o.getMaxDepth(r);m=isFinite(y)?o.isLeaf(e)?0:r._maxVisibleLayers-(e.data.depth-r._entryDepth):e.data.height+1}else m=e.data.depth-r._entryDepth,r._atRootLevel||m++;if(m&gt;0)for(var x=0;x&lt;m;x++){var b=.5*x/m;h=i.combine(i.addOpacity(v,b),h)}}}t.style(&quot;stroke-width&quot;,l).call(i.fill,h).call(i.stroke,s).style(&quot;opacity&quot;,d)}e.exports={style:function(t){var e=t._fullLayout._treemaplayer.selectAll(&quot;.trace&quot;);s(t,e,&quot;treemap&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(l,t,r,{hovered:!1})}))}))},styleOne:l}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/uniform_text&quot;:937,&quot;../sunburst/helpers&quot;:1305,d3:169}],1338:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/attributes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={y:n.y,x:n.x,x0:n.x0,y0:n.y0,name:i({},n.name,{}),orientation:i({},n.orientation,{}),bandwidth:{valType:&quot;number&quot;,min:0,editType:&quot;calc&quot;},scalegroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},scalemode:{valType:&quot;enumerated&quot;,values:[&quot;width&quot;,&quot;count&quot;],dflt:&quot;width&quot;,editType:&quot;calc&quot;},spanmode:{valType:&quot;enumerated&quot;,values:[&quot;soft&quot;,&quot;hard&quot;,&quot;manual&quot;],dflt:&quot;soft&quot;,editType:&quot;calc&quot;},span:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},editType:&quot;plot&quot;},fillcolor:n.fillcolor,points:i({},n.boxpoints,{}),jitter:i({},n.jitter,{}),pointpos:i({},n.pointpos,{}),width:i({},n.width,{}),marker:n.marker,text:n.text,hovertext:n.hovertext,hovertemplate:n.hovertemplate,box:{visible:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},width:{valType:&quot;number&quot;,min:0,max:1,dflt:.25,editType:&quot;plot&quot;},fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;plot&quot;},meanline:{visible:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;both&quot;,&quot;positive&quot;,&quot;negative&quot;],dflt:&quot;both&quot;,editType:&quot;calc&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;violins&quot;,&quot;points&quot;,&quot;kde&quot;],dflt:&quot;violins+points+kde&quot;,extras:[&quot;all&quot;],editType:&quot;style&quot;}}},{&quot;../../lib/extend&quot;:768,&quot;../box/attributes&quot;:946}],1339:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../box/calc&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r){var i=e.max-e.min;if(!i)return t.bandwidth?t.bandwidth:0;if(t.bandwidth)return Math.max(t.bandwidth,i/1e4);var a=r.length,o=n.stdev(r,a-1,e.mean);return Math.max(function(t,e,r){return 1.059*Math.min(e,r/1.349)*Math.pow(t,-.2)}(a,o,e.q3-e.q1),i/100)}function c(t,e,r,n){var a,o=t.spanmode,l=t.span||[],c=[e.min,e.max],u=[e.min-2*n,e.max+2*n];function f(n){var i=l[n],a=&quot;multicategory&quot;===r.type?r.r2c(i):r.d2c(i,0,t[e.valLetter+&quot;calendar&quot;]);return a===s?u[n]:a}var h={type:&quot;linear&quot;,range:a=&quot;soft&quot;===o?u:&quot;hard&quot;===o?c:[f(0),f(1)]};return i.setConvert(h),h.cleanRange(),a}e.exports=function(t,e){var r=a(t,e);if(r[0].t.empty)return r;for(var s=t._fullLayout,u=i.getFromId(t,e[&quot;h&quot;===e.orientation?&quot;xaxis&quot;:&quot;yaxis&quot;]),f=1/0,h=-1/0,p=0,d=0,g=0;g&lt;r.length;g++){var m=r[g],v=m.pts.map(o.extractVal),y=m.bandwidth=l(e,m,v),x=m.span=c(e,m,u,y);if(m.min===m.max&amp;&amp;0===y)x=m.span=[m.min,m.max],m.density=[{v:1,t:x[0]}],m.bandwidth=y,p=Math.max(p,1);else{var b=x[1]-x[0],_=Math.ceil(b/(y/3)),w=b/_;if(!isFinite(w)||!isFinite(_))return n.error(&quot;Something went wrong with computing the violin span&quot;),r[0].t.empty=!0,r;var T=o.makeKDE(m,e,v);m.density=new Array(_);for(var k=0,M=x[0];M&lt;x[1]+w/2;k++,M+=w){var A=T(M);m.density[k]={v:A,t:M},p=Math.max(p,A)}}d=Math.max(d,v.length),f=Math.min(f,x[0]),h=Math.max(h,x[1])}var S=i.findExtremes(u,[f,h],{padded:!0});if(e._extremes[u._id]=S,e.width)r[0].t.maxKDE=p;else{var E=s._violinScaleGroupStats,C=e.scalegroup,L=E[C];L?(L.maxKDE=Math.max(L.maxKDE,p),L.maxCount=Math.max(L.maxCount,d)):E[C]={maxKDE:p,maxCount:d}}return r[0].t.labels.kde=n._(t,&quot;kde:&quot;),r}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../box/calc&quot;:947,&quot;./helpers&quot;:1342}],1340:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/cross_trace_calc&quot;).setPositionOffset,i=[&quot;v&quot;,&quot;h&quot;];e.exports=function(t,e){for(var r=t.calcdata,a=e.xaxis,o=e.yaxis,s=0;s&lt;i.length;s++){for(var l=i[s],c=&quot;h&quot;===l?o:a,u=[],f=0;f&lt;r.length;f++){var h=r[f],p=h[0].t,d=h[0].trace;!0!==d.visible||&quot;violin&quot;!==d.type||p.empty||d.orientation!==l||d.xaxis!==a._id||d.yaxis!==o._id||u.push(f)}n(&quot;violin&quot;,t,u,c)}}},{&quot;../box/cross_trace_calc&quot;:948}],1341:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../box/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}function c(r,i){return n.coerce2(t,e,o,r,i)}if(a.handleSampleDefaults(t,e,l,s),!1!==e.visible){l(&quot;bandwidth&quot;),l(&quot;side&quot;),l(&quot;width&quot;)||(l(&quot;scalegroup&quot;,e.name),l(&quot;scalemode&quot;));var u,f=l(&quot;span&quot;);Array.isArray(f)&amp;&amp;(u=&quot;manual&quot;),l(&quot;spanmode&quot;,u);var h=l(&quot;line.color&quot;,(t.marker||{}).color||r),p=l(&quot;line.width&quot;),d=l(&quot;fillcolor&quot;,i.addOpacity(e.line.color,.5));a.handlePointsDefaults(t,e,l,{prefix:&quot;&quot;});var g=c(&quot;box.width&quot;),m=c(&quot;box.fillcolor&quot;,d),v=c(&quot;box.line.color&quot;,h),y=c(&quot;box.line.width&quot;,p);l(&quot;box.visible&quot;,Boolean(g||m||v||y))||(e.box={visible:!1});var x=c(&quot;meanline.color&quot;,h),b=c(&quot;meanline.width&quot;,p);l(&quot;meanline.visible&quot;,Boolean(x||b))||(e.meanline={visible:!1})}}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../box/defaults&quot;:949,&quot;./attributes&quot;:1338}],1342:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=function(t){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*t*t)};r.makeKDE=function(t,e,r){var n=r.length,a=i,o=t.bandwidth,s=1/(n*o);return function(t){for(var e=0,i=0;i&lt;n;i++)e+=a((t-r[i])/o);return s*e}},r.getPositionOnKdePath=function(t,e,r){var i,a;&quot;h&quot;===e.orientation?(i=&quot;y&quot;,a=&quot;x&quot;):(i=&quot;x&quot;,a=&quot;y&quot;);var o=n.findPointOnPath(t.path,r,a,{pathLength:t.pathLength}),s=t.posCenterPx,l=o[i];return[l,&quot;both&quot;===e.side?2*s-l:s]},r.getKdeValue=function(t,e,n){var i=t.pts.map(r.extractVal);return r.makeKDE(t,e,i)(n)/t.posDensityScale},r.extractVal=function(t){return t.v}},{&quot;../../lib&quot;:778}],1343:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../box/hover&quot;),o=t(&quot;./helpers&quot;);e.exports=function(t,e,r,s,l){var c,u,f=t.cd,h=f[0].trace,p=h.hoveron,d=-1!==p.indexOf(&quot;violins&quot;),g=-1!==p.indexOf(&quot;kde&quot;),m=[];if(d||g){var v=a.hoverOnBoxes(t,e,r,s);if(g&amp;&amp;v.length&gt;0){var y,x,b,_,w,T=t.xa,k=t.ya;&quot;h&quot;===h.orientation?(w=e,y=&quot;y&quot;,b=k,x=&quot;x&quot;,_=T):(w=r,y=&quot;x&quot;,b=T,x=&quot;y&quot;,_=k);var M=f[t.index];if(w&gt;=M.span[0]&amp;&amp;w&lt;=M.span[1]){var A=n.extendFlat({},t),S=_.c2p(w,!0),E=o.getKdeValue(M,h,w),C=o.getPositionOnKdePath(M,h,S),L=b._offset,I=b._length;A[y+&quot;0&quot;]=C[0],A[y+&quot;1&quot;]=C[1],A[x+&quot;0&quot;]=A[x+&quot;1&quot;]=S,A[x+&quot;Label&quot;]=x+&quot;: &quot;+i.hoverLabelText(_,w)+&quot;, &quot;+f[0].t.labels.kde+&quot; &quot;+E.toFixed(3),A.spikeDistance=v[0].spikeDistance;var P=y+&quot;Spike&quot;;A[P]=v[0][P],v[0].spikeDistance=void 0,v[0][P]=void 0,A.hovertemplate=!1,m.push(A),(u={stroke:t.color})[y+&quot;1&quot;]=n.constrain(L+C[0],L,L+I),u[y+&quot;2&quot;]=n.constrain(L+C[1],L,L+I),u[x+&quot;1&quot;]=u[x+&quot;2&quot;]=_._offset+S}}d&amp;&amp;(m=m.concat(v))}-1!==p.indexOf(&quot;points&quot;)&amp;&amp;(c=a.hoverOnPoints(t,e,r));var z=l.selectAll(&quot;.violinline-&quot;+h.uid).data(u?[0]:[]);return z.enter().append(&quot;line&quot;).classed(&quot;violinline-&quot;+h.uid,!0).attr(&quot;stroke-width&quot;,1.5),z.exit().remove(),z.attr(u),&quot;closest&quot;===s?c?[c]:m:c?(m.push(c),m):m}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../box/hover&quot;:951,&quot;./helpers&quot;:1342}],1344:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../box/defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../box/select&quot;),moduleType:&quot;trace&quot;,name:&quot;violin&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;oriented&quot;,&quot;box-violin&quot;,&quot;showLegend&quot;,&quot;violinLayout&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../box/defaults&quot;:949,&quot;../box/select&quot;:956,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1338,&quot;./calc&quot;:1339,&quot;./cross_trace_calc&quot;:1340,&quot;./defaults&quot;:1341,&quot;./hover&quot;:1343,&quot;./layout_attributes&quot;:1345,&quot;./layout_defaults&quot;:1346,&quot;./plot&quot;:1347,&quot;./style&quot;:1348}],1345:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/layout_attributes&quot;),i=t(&quot;../../lib&quot;).extendFlat;e.exports={violinmode:i({},n.boxmode,{}),violingap:i({},n.boxgap,{}),violingroupgap:i({},n.boxgroupgap,{})}},{&quot;../../lib&quot;:778,&quot;../box/layout_attributes&quot;:953}],1346:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;),a=t(&quot;../box/layout_defaults&quot;);e.exports=function(t,e,r){a._supply(t,e,r,(function(r,a){return n.coerce(t,e,i,r,a)}),&quot;violin&quot;)}},{&quot;../../lib&quot;:778,&quot;../box/layout_defaults&quot;:954,&quot;./layout_attributes&quot;:1345}],1347:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../box/plot&quot;),s=t(&quot;../scatter/line_points&quot;),l=t(&quot;./helpers&quot;);e.exports=function(t,e,r,c){var u=t._fullLayout,f=e.xaxis,h=e.yaxis;function p(t){var e=s(t,{xaxis:f,yaxis:h,connectGaps:!0,baseTolerance:.75,shape:&quot;spline&quot;,simplify:!0,linearized:!0});return a.smoothopen(e[0],1)}i.makeTraceGroups(c,r,&quot;trace violins&quot;).each((function(t){var r=n.select(this),a=t[0],s=a.t,c=a.trace;if(!0!==c.visible||s.empty)r.remove();else{var d=s.bPos,g=s.bdPos,m=e[s.valLetter+&quot;axis&quot;],v=e[s.posLetter+&quot;axis&quot;],y=&quot;both&quot;===c.side,x=y||&quot;positive&quot;===c.side,b=y||&quot;negative&quot;===c.side,_=r.selectAll(&quot;path.violin&quot;).data(i.identity);_.enter().append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;class&quot;,&quot;violin&quot;),_.exit().remove(),_.each((function(t){var e,r,i,a,o,l,f,h,_=n.select(this),w=t.density,T=w.length,k=v.c2l(t.pos+d,!0),M=v.l2p(k);if(c.width)e=s.maxKDE/g;else{var A=u._violinScaleGroupStats[c.scalegroup];e=&quot;count&quot;===c.scalemode?A.maxKDE/g*(A.maxCount/t.pts.length):A.maxKDE/g}if(x){for(f=new Array(T),o=0;o&lt;T;o++)(h=f[o]={})[s.posLetter]=k+w[o].v/e,h[s.valLetter]=m.c2l(w[o].t,!0);r=p(f)}if(b){for(f=new Array(T),l=0,o=T-1;l&lt;T;l++,o--)(h=f[l]={})[s.posLetter]=k-w[o].v/e,h[s.valLetter]=m.c2l(w[o].t,!0);i=p(f)}if(y)a=r+&quot;L&quot;+i.substr(1)+&quot;Z&quot;;else{var S=[M,m.c2p(w[0].t)],E=[M,m.c2p(w[T-1].t)];&quot;h&quot;===c.orientation&amp;&amp;(S.reverse(),E.reverse()),a=x?&quot;M&quot;+S+&quot;L&quot;+r.substr(1)+&quot;L&quot;+E:&quot;M&quot;+E+&quot;L&quot;+i.substr(1)+&quot;L&quot;+S}_.attr(&quot;d&quot;,a),t.posCenterPx=M,t.posDensityScale=e*g,t.path=_.node(),t.pathLength=t.path.getTotalLength()/(y?2:1)}));var w,T,k,M=c.box,A=M.width,S=(M.line||{}).width;y?(w=g*A,T=0):x?(w=[0,g*A/2],T=S*{x:1,y:-1}[s.posLetter]):(w=[g*A/2,0],T=S*{x:-1,y:1}[s.posLetter]),o.plotBoxAndWhiskers(r,{pos:v,val:m},c,{bPos:d,bdPos:w,bPosPxOffset:T}),o.plotBoxMean(r,{pos:v,val:m},c,{bPos:d,bdPos:w,bPosPxOffset:T}),!c.box.visible&amp;&amp;c.meanline.visible&amp;&amp;(k=i.identity);var E=r.selectAll(&quot;path.meanline&quot;).data(k||[]);E.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;meanline&quot;).style(&quot;fill&quot;,&quot;none&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;),E.exit().remove(),E.each((function(t){var e=m.c2p(t.mean,!0),r=l.getPositionOnKdePath(t,c,e);n.select(this).attr(&quot;d&quot;,&quot;h&quot;===c.orientation?&quot;M&quot;+e+&quot;,&quot;+r[0]+&quot;V&quot;+r[1]:&quot;M&quot;+r[0]+&quot;,&quot;+e+&quot;H&quot;+r[1])})),o.plotPoints(r,{x:f,y:h},c,s)}}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../box/plot&quot;:955,&quot;../scatter/line_points&quot;:1201,&quot;./helpers&quot;:1342,d3:169}],1348:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../scatter/style&quot;).stylePoints;e.exports=function(t){var e=n.select(t).selectAll(&quot;g.trace.violins&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.each((function(e){var r=e[0].trace,o=n.select(this),s=r.box||{},l=s.line||{},c=r.meanline||{},u=c.width;o.selectAll(&quot;path.violin&quot;).style(&quot;stroke-width&quot;,r.line.width+&quot;px&quot;).call(i.stroke,r.line.color).call(i.fill,r.fillcolor),o.selectAll(&quot;path.box&quot;).style(&quot;stroke-width&quot;,l.width+&quot;px&quot;).call(i.stroke,l.color).call(i.fill,s.fillcolor);var f={&quot;stroke-width&quot;:u+&quot;px&quot;,&quot;stroke-dasharray&quot;:2*u+&quot;px,&quot;+u+&quot;px&quot;};o.selectAll(&quot;path.mean&quot;).style(f).call(i.stroke,c.color),o.selectAll(&quot;path.meanline&quot;).style(f).call(i.stroke,c.color),a(o,r,t)}))}},{&quot;../../components/color&quot;:643,&quot;../scatter/style&quot;:1211,d3:169}],1349:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../isosurface/attributes&quot;),a=t(&quot;../surface/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll,c=e.exports=l(s({x:i.x,y:i.y,z:i.z,value:i.value,isomin:i.isomin,isomax:i.isomax,surface:i.surface,spaceframe:{show:{valType:&quot;boolean&quot;,dflt:!1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},slices:i.slices,caps:i.caps,text:i.text,hovertext:i.hovertext,hovertemplate:i.hovertemplate},n(&quot;&quot;,{colorAttr:&quot;`value`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{colorbar:i.colorbar,opacity:i.opacity,opacityscale:a.opacityscale,lightposition:i.lightposition,lighting:i.lighting,flatshading:i.flatshading,contour:i.contour,hoverinfo:s({},o.hoverinfo),showlegend:s({},o.showlegend,{dflt:!1})}),&quot;calc&quot;,&quot;nested&quot;);c.x.editType=c.y.editType=c.z.editType=c.value.editType=&quot;calc+clearAxisTypes&quot;,c.transforms=void 0},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../isosurface/attributes&quot;:1123,&quot;../surface/attributes&quot;:1311}],1350:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,a=t(&quot;../../lib/str2rgbarray&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts,s=t(&quot;../../plots/gl3d/zip3&quot;),l=t(&quot;../isosurface/convert&quot;).findNearestOnAxis,c=t(&quot;../isosurface/convert&quot;).generateIsoMeshes;function u(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.data=null,this.showContour=!1}var f=u.prototype;f.handlePick=function(t){if(t.object===this.mesh){var e=t.data.index,r=this.data._meshX[e],n=this.data._meshY[e],i=this.data._meshZ[e],a=this.data._Ys.length,o=this.data._Zs.length,s=l(r,this.data._Xs).id,c=l(n,this.data._Ys).id,u=l(i,this.data._Zs).id,f=t.index=u+o*c+o*a*s;t.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Array.isArray(h)&amp;&amp;void 0!==h[f]?t.textLabel=h[f]:h&amp;&amp;(t.textLabel=h),!0}},f.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map((function(e){return t.d2l(e,0,n)*r}))}this.data=c(t);var l={positions:s(n(r.xaxis,t._meshX,e.dataScale[0],t.xcalendar),n(r.yaxis,t._meshY,e.dataScale[1],t.ycalendar),n(r.zaxis,t._meshZ,e.dataScale[2],t.zcalendar)),cells:s(t._meshI,t._meshJ,t._meshK),lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,opacityscale:t.opacityscale,contourEnable:t.contour.show,contourColor:a(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading},u=o(t);l.vertexIntensity=t._meshIntensity,l.vertexIntensityBounds=[u.min,u.max],l.colormap=i(t),this.mesh.update(l)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new u(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/gl3d/zip3&quot;:881,&quot;../isosurface/convert&quot;:1125,&quot;gl-mesh3d&quot;:309}],1351:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../isosurface/defaults&quot;).supplyIsoDefaults,o=t(&quot;../surface/defaults&quot;).opacityscaleDefaults;e.exports=function(t,e,r,s){function l(r,a){return n.coerce(t,e,i,r,a)}a(t,e,r,s,l),o(t,e,s,l)}},{&quot;../../lib&quot;:778,&quot;../isosurface/defaults&quot;:1126,&quot;../surface/defaults&quot;:1314,&quot;./attributes&quot;:1349}],1352:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;../isosurface/calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;volume&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;../isosurface/calc&quot;:1124,&quot;./attributes&quot;:1349,&quot;./convert&quot;:1350,&quot;./defaults&quot;:1351}],1353:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../scatter/attributes&quot;).line,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;./constants&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../components/color&quot;);function f(t){return{marker:{color:c({},n.marker.color,{arrayOk:!1,editType:&quot;style&quot;}),line:{color:c({},n.marker.line.color,{arrayOk:!1,editType:&quot;style&quot;}),width:c({},n.marker.line.width,{arrayOk:!1,editType:&quot;style&quot;}),editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;}}e.exports={measure:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},base:{valType:&quot;number&quot;,dflt:null,arrayOk:!1,editType:&quot;calc&quot;},x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,hovertext:n.hovertext,hovertemplate:o({},{keys:l.eventDataKeys}),hoverinfo:c({},a.hoverinfo,{flags:[&quot;name&quot;,&quot;x&quot;,&quot;y&quot;,&quot;text&quot;,&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;]}),textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;,arrayOk:!1},texttemplate:s({editType:&quot;plot&quot;},{keys:l.eventDataKeys.concat([&quot;label&quot;])}),text:n.text,textposition:n.textposition,insidetextanchor:n.insidetextanchor,textangle:n.textangle,textfont:n.textfont,insidetextfont:n.insidetextfont,outsidetextfont:n.outsidetextfont,constraintext:n.constraintext,cliponaxis:n.cliponaxis,orientation:n.orientation,offset:n.offset,width:n.width,increasing:f(),decreasing:f(),totals:f(),connector:{line:{color:c({},i.color,{dflt:u.defaultLine}),width:c({},i.width,{editType:&quot;plot&quot;}),dash:i.dash,editType:&quot;plot&quot;},mode:{valType:&quot;enumerated&quot;,values:[&quot;spanning&quot;,&quot;between&quot;],dflt:&quot;between&quot;,editType:&quot;plot&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup}},{&quot;../../components/color&quot;:643,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:1355}],1354:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;../../lib&quot;).mergeArray,o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t){return&quot;a&quot;===t||&quot;absolute&quot;===t}function c(t){return&quot;t&quot;===t||&quot;total&quot;===t}e.exports=function(t,e){var r,u,f,h,p=n.getFromId(t,e.xaxis||&quot;x&quot;),d=n.getFromId(t,e.yaxis||&quot;y&quot;);&quot;h&quot;===e.orientation?(r=p.makeCalcdata(e,&quot;x&quot;),f=d.makeCalcdata(e,&quot;y&quot;),u=i(e,d,&quot;y&quot;,f),h=!!e.yperiodalignment):(r=d.makeCalcdata(e,&quot;y&quot;),f=p.makeCalcdata(e,&quot;x&quot;),u=i(e,p,&quot;x&quot;,f),h=!!e.xperiodalignment);for(var g,m=Math.min(u.length,r.length),v=new Array(m),y=0,x=!1,b=0;b&lt;m;b++){var _=r[b]||0,w=!1;(r[b]!==s||c(e.measure[b])||l(e.measure[b]))&amp;&amp;b+1&lt;m&amp;&amp;(r[b+1]!==s||c(e.measure[b+1])||l(e.measure[b+1]))&amp;&amp;(w=!0);var T=v[b]={i:b,p:u[b],s:_,rawS:_,cNext:w};l(e.measure[b])?(y=T.s,T.isSum=!0,T.dir=&quot;totals&quot;,T.s=y):c(e.measure[b])?(T.isSum=!0,T.dir=&quot;totals&quot;,T.s=y):(T.isSum=!1,T.dir=T.rawS&lt;0?&quot;decreasing&quot;:&quot;increasing&quot;,g=T.s,T.s=y+g,y+=g),&quot;totals&quot;===T.dir&amp;&amp;(x=!0),h&amp;&amp;(v[b].orig_p=f[b]),e.ids&amp;&amp;(T.id=String(e.ids[b])),T.v=(e.base||0)+y}return v.length&amp;&amp;(v[0].hasTotals=x),a(e.text,v,&quot;tx&quot;),a(e.hovertext,v,&quot;htx&quot;),o(v,e),v}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc_selection&quot;:1189}],1355:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;]}},{}],1356:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions;e.exports=function(t,e){var r,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,c=e.yaxis,u=[],f=[],h=[];for(i=0;i&lt;o.length;i++){var p=o[i];!0===p.visible&amp;&amp;p.xaxis===l._id&amp;&amp;p.yaxis===c._id&amp;&amp;&quot;waterfall&quot;===p.type&amp;&amp;(r=s[i],&quot;h&quot;===p.orientation?h.push(r):f.push(r),u.push(r))}var d={mode:a.waterfallmode,norm:a.waterfallnorm,gap:a.waterfallgap,groupgap:a.waterfallgroupgap};for(n(t,l,c,f,d),n(t,c,l,h,d),i=0;i&lt;u.length;i++){r=u[i];for(var g=0;g&lt;r.length;g++){var m=r[g];!1===m.isSum&amp;&amp;(m.s0+=0===g?0:r[g-1].s),g+1&lt;r.length&amp;&amp;(r[g].nextP0=r[g+1].p0,r[g].nextS0=r[g+1].s0)}}}},{&quot;../bar/cross_trace_calc&quot;:924}],1357:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,a=t(&quot;../bar/defaults&quot;).handleText,o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../../components/color&quot;),u=t(&quot;../../constants/delta.js&quot;),f=u.INCREASING.COLOR,h=u.DECREASING.COLOR;function p(t,e,r){t(e+&quot;.marker.color&quot;,r),t(e+&quot;.marker.line.color&quot;,c.defaultLine),t(e+&quot;.marker.line.width&quot;)}e.exports={supplyDefaults:function(t,e,r,i){function c(r,i){return n.coerce(t,e,l,r,i)}if(o(t,e,i,c)){s(t,e,i,c),c(&quot;measure&quot;),c(&quot;orientation&quot;,e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;),c(&quot;base&quot;),c(&quot;offset&quot;),c(&quot;width&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;);var u=c(&quot;textposition&quot;);if(a(t,e,i,c,u,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),&quot;none&quot;!==e.textposition&amp;&amp;(c(&quot;texttemplate&quot;),e.texttemplate||c(&quot;textinfo&quot;)),p(c,&quot;increasing&quot;,f),p(c,&quot;decreasing&quot;,h),p(c,&quot;totals&quot;,&quot;#4499FF&quot;),c(&quot;connector.visible&quot;))c(&quot;connector.mode&quot;),c(&quot;connector.line.width&quot;)&amp;&amp;(c(&quot;connector.line.color&quot;),c(&quot;connector.line.dash&quot;))}else e.visible=!1},crossTraceDefaults:function(t,e){var r,a;function o(t){return n.coerce(a._input,a,l,t)}if(&quot;group&quot;===e.waterfallmode)for(var s=0;s&lt;t.length;s++)r=(a=t[s])._input,i(r,a,e,o)}}},{&quot;../../components/color&quot;:643,&quot;../../constants/delta.js&quot;:747,&quot;../../lib&quot;:778,&quot;../bar/defaults&quot;:925,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:1353}],1358:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;initial&quot;in e&amp;&amp;(t.initial=e.initial),&quot;delta&quot;in e&amp;&amp;(t.delta=e.delta),&quot;final&quot;in e&amp;&amp;(t.final=e.final),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],1359:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText,i=t(&quot;../../components/color&quot;).opacity,a=t(&quot;../bar/hover&quot;).hoverOnBars,o=t(&quot;../../constants/delta.js&quot;),s=o.INCREASING.SYMBOL,l=o.DECREASING.SYMBOL;e.exports=function(t,e,r,o){var c=a(t,e,r,o);if(c){var u=c.cd,f=u[0].trace,h=&quot;h&quot;===f.orientation,p=h?t.xa:t.ya,d=u[c.index],g=d.isSum?d.b+d.s:d.rawS;if(!d.isSum){c.initial=d.b+d.s-g,c.delta=g,c.final=c.initial+c.delta;var m=w(Math.abs(c.delta));c.deltaLabel=g&lt;0?&quot;(&quot;+m+&quot;)&quot;:m,c.finalLabel=w(c.final),c.initialLabel=w(c.initial)}var v=d.hi||f.hoverinfo,y=[];if(v&amp;&amp;&quot;none&quot;!==v&amp;&amp;&quot;skip&quot;!==v){var x=&quot;all&quot;===v,b=v.split(&quot;+&quot;),_=function(t){return x||-1!==b.indexOf(t)};d.isSum||(!_(&quot;final&quot;)||_(h?&quot;x&quot;:&quot;y&quot;)||y.push(c.finalLabel),_(&quot;delta&quot;)&amp;&amp;(g&lt;0?y.push(c.deltaLabel+&quot; &quot;+l):y.push(c.deltaLabel+&quot; &quot;+s)),_(&quot;initial&quot;)&amp;&amp;y.push(&quot;Initial: &quot;+c.initialLabel))}return y.length&amp;&amp;(c.extraText=y.join(&quot;&lt;br&gt;&quot;)),c.color=function(t,e){var r=t[e.dir].marker,n=r.color,a=r.line.color,o=r.line.width;if(i(n))return n;if(i(a)&amp;&amp;o)return a}(f,d),[c]}function w(t){return n(p,t)}}},{&quot;../../components/color&quot;:643,&quot;../../constants/delta.js&quot;:747,&quot;../../plots/cartesian/axes&quot;:828,&quot;../bar/hover&quot;:928}],1360:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;../bar/select&quot;),moduleType:&quot;trace&quot;,name:&quot;waterfall&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;oriented&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../bar/select&quot;:933,&quot;./attributes&quot;:1353,&quot;./calc&quot;:1354,&quot;./cross_trace_calc&quot;:1356,&quot;./defaults&quot;:1357,&quot;./event_data&quot;:1358,&quot;./hover&quot;:1359,&quot;./layout_attributes&quot;:1361,&quot;./layout_defaults&quot;:1362,&quot;./plot&quot;:1363,&quot;./style&quot;:1364}],1361:[function(t,e,r){&quot;use strict&quot;;e.exports={waterfallmode:{valType:&quot;enumerated&quot;,values:[&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;group&quot;,editType:&quot;calc&quot;},waterfallgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},waterfallgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],1362:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s&lt;r.length;s++){var l=r[s];if(l.visible&amp;&amp;&quot;waterfall&quot;===l.type){a=!0;break}}a&amp;&amp;(o(&quot;waterfallmode&quot;),o(&quot;waterfallgap&quot;,.2),o(&quot;waterfallgroupgap&quot;))}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1361}],1363:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../constants/numerical&quot;).BADNUM,s=t(&quot;../bar/plot&quot;),l=t(&quot;../bar/uniform_text&quot;).clearMinTextSize;e.exports=function(t,e,r,c){var u=t._fullLayout;l(&quot;waterfall&quot;,u),s.plot(t,e,r,c,{mode:u.waterfallmode,norm:u.waterfallmode,gap:u.waterfallgap,groupgap:u.waterfallgroupgap}),function(t,e,r,s){var l=e.xaxis,c=e.yaxis;i.makeTraceGroups(s,r,&quot;trace bars&quot;).each((function(r){var s=n.select(this),u=r[0].trace,f=i.ensureSingle(s,&quot;g&quot;,&quot;lines&quot;);if(u.connector&amp;&amp;u.connector.visible){var h=&quot;h&quot;===u.orientation,p=u.connector.mode,d=f.selectAll(&quot;g.line&quot;).data(i.identity);d.enter().append(&quot;g&quot;).classed(&quot;line&quot;,!0),d.exit().remove();var g=d.size();d.each((function(r,s){if(s===g-1||r.cNext){var u=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),n?[i,a]:[a,i]}(r,l,c,h),f=u[0],d=u[1],m=&quot;&quot;;f[0]!==o&amp;&amp;d[0]!==o&amp;&amp;f[1]!==o&amp;&amp;d[1]!==o&amp;&amp;(&quot;spanning&quot;===p&amp;&amp;!r.isSum&amp;&amp;s&gt;0&amp;&amp;(m+=h?&quot;M&quot;+f[0]+&quot;,&quot;+d[1]+&quot;V&quot;+d[0]:&quot;M&quot;+f[1]+&quot;,&quot;+d[0]+&quot;H&quot;+f[0]),&quot;between&quot;!==p&amp;&amp;(r.isSum||s&lt;g-1)&amp;&amp;(m+=h?&quot;M&quot;+f[1]+&quot;,&quot;+d[0]+&quot;V&quot;+d[1]:&quot;M&quot;+f[0]+&quot;,&quot;+d[1]+&quot;H&quot;+f[1]),f[2]!==o&amp;&amp;d[2]!==o&amp;&amp;(m+=h?&quot;M&quot;+f[1]+&quot;,&quot;+d[1]+&quot;V&quot;+d[2]:&quot;M&quot;+f[1]+&quot;,&quot;+d[1]+&quot;H&quot;+f[2])),&quot;&quot;===m&amp;&amp;(m=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,m).call(a.setClipUrl,e.layerClipId,t)}}))}else f.remove()}))}(t,e,r,c)}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../bar/plot&quot;:932,&quot;../bar/uniform_text&quot;:937,d3:169}],1364:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../constants/interactions&quot;).DESELECTDIM,s=t(&quot;../bar/style&quot;),l=t(&quot;../bar/uniform_text&quot;).resizeText,c=s.styleTextPoints;e.exports={style:function(t,e,r){var s=r||n.select(t).selectAll(&quot;g.waterfalllayer&quot;).selectAll(&quot;g.trace&quot;);l(t,s,&quot;waterfall&quot;),s.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),s.each((function(e){var r=n.select(this),s=e[0].trace;r.selectAll(&quot;.point &gt; path&quot;).each((function(t){if(!t.isBlank){var e=s[t.dir].marker;n.select(this).call(a.fill,e.color).call(a.stroke,e.line.color).call(i.dashLine,e.line.dash,e.line.width).style(&quot;opacity&quot;,s.selectedpoints&amp;&amp;!t.selected?o:1)}})),c(r,s,t),r.selectAll(&quot;.lines&quot;).each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll(&quot;path&quot;),t.width,t.color,t.dash)}))}))}}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../constants/interactions&quot;:752,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,d3:169}],1365:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../plots/cartesian/axes&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../plot_api/plot_schema&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction,s=t(&quot;../constants/numerical&quot;).BADNUM;r.moduleType=&quot;transform&quot;,r.name=&quot;aggregate&quot;;var l=r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},groups:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},aggregations:{_isLinkedToArray:&quot;aggregation&quot;,target:{valType:&quot;string&quot;,editType:&quot;calc&quot;},func:{valType:&quot;enumerated&quot;,values:[&quot;count&quot;,&quot;sum&quot;,&quot;avg&quot;,&quot;median&quot;,&quot;mode&quot;,&quot;rms&quot;,&quot;stddev&quot;,&quot;min&quot;,&quot;max&quot;,&quot;first&quot;,&quot;last&quot;,&quot;change&quot;,&quot;range&quot;],dflt:&quot;first&quot;,editType:&quot;calc&quot;},funcmode:{valType:&quot;enumerated&quot;,values:[&quot;sample&quot;,&quot;population&quot;],dflt:&quot;sample&quot;,editType:&quot;calc&quot;},enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},c=l.aggregations;function u(t,e,r,a){if(a.enabled){for(var o=a.target,l=i.nestedProperty(e,o),c=l.get(),u=function(t,e){var r=t.func,n=e.d2c,a=e.c2d;switch(r){case&quot;count&quot;:return f;case&quot;first&quot;:return h;case&quot;last&quot;:return p;case&quot;sum&quot;:return function(t,e){for(var r=0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r+=o)}return a(r)};case&quot;avg&quot;:return function(t,e){for(var r=0,i=0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r+=l,i++)}return i?a(r/i):s};case&quot;min&quot;:return function(t,e){for(var r=1/0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r=Math.min(r,o))}return r===1/0?s:a(r)};case&quot;max&quot;:return function(t,e){for(var r=-1/0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r=Math.max(r,o))}return r===-1/0?s:a(r)};case&quot;range&quot;:return function(t,e){for(var r=1/0,i=-1/0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r=Math.min(r,l),i=Math.max(i,l))}return i===-1/0||r===1/0?s:a(i-r)};case&quot;change&quot;:return function(t,e){var r=n(t[e[0]]),i=n(t[e[e.length-1]]);return r===s||i===s?s:a(i-r)};case&quot;median&quot;:return function(t,e){for(var r=[],o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;r.push(l)}if(!r.length)return s;r.sort(i.sorterAsc);var c=(r.length-1)/2;return a((r[Math.floor(c)]+r[Math.ceil(c)])/2)};case&quot;mode&quot;:return function(t,e){for(var r={},i=0,o=s,l=0;l&lt;e.length;l++){var c=n(t[e[l]]);if(c!==s){var u=r[c]=(r[c]||0)+1;u&gt;i&amp;&amp;(i=u,o=c)}}return i?a(o):s};case&quot;rms&quot;:return function(t,e){for(var r=0,i=0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r+=l*l,i++)}return i?a(Math.sqrt(r/i)):s};case&quot;stddev&quot;:return function(e,r){var i,a=0,o=0,l=1,c=s;for(i=0;i&lt;r.length&amp;&amp;c===s;i++)c=n(e[r[i]]);if(c===s)return s;for(;i&lt;r.length;i++){var u=n(e[r[i]]);if(u!==s){var f=u-c;a+=f,o+=f*f,l++}}var h=&quot;sample&quot;===t.funcmode?l-1:l;return h?Math.sqrt((o-a*a/l)/h):0}}}(a,n.getDataConversions(t,e,o,c)),d=new Array(r.length),g=0;g&lt;r.length;g++)d[g]=u(c,r[g]);l.set(d),&quot;count&quot;===a.func&amp;&amp;i.pushUnique(e._arrayAttrs,o)}}function f(t,e){return e.length}function h(t,e){return t[e[0]]}function p(t,e){return t[e[e.length-1]]}r.supplyDefaults=function(t,e){var r,n={};function o(e,r){return i.coerce(t,n,l,e,r)}if(!o(&quot;enabled&quot;))return n;var s=a.findArrayAttributes(e),u={};for(r=0;r&lt;s.length;r++)u[s[r]]=1;var f=o(&quot;groups&quot;);if(!Array.isArray(f)){if(!u[f])return n.enabled=!1,n;u[f]=0}var h,p=t.aggregations||[],d=n.aggregations=new Array(p.length);function g(t,e){return i.coerce(p[r],h,c,t,e)}for(r=0;r&lt;p.length;r++){h={_index:r};var m=g(&quot;target&quot;),v=g(&quot;func&quot;);g(&quot;enabled&quot;)&amp;&amp;m&amp;&amp;(u[m]||&quot;count&quot;===v&amp;&amp;void 0===u[m])?(&quot;stddev&quot;===v&amp;&amp;g(&quot;funcmode&quot;),u[m]=0,d[r]=h):d[r]={enabled:!1,_index:r}}for(r=0;r&lt;s.length;r++)u[s[r]]&amp;&amp;d.push({target:s[r],func:c.func.dflt,enabled:!0,_index:-1});return n},r.calcTransform=function(t,e,r){if(r.enabled){var n=r.groups,a=i.getTargetArray(e,{target:n});if(a){var s,l,c,f,h={},p={},d=[],g=o(e.transforms,r),m=a.length;for(e._length&amp;&amp;(m=Math.min(m,e._length)),s=0;s&lt;m;s++)void 0===(c=h[l=a[s]])?(h[l]=d.length,f=[s],d.push(f),p[h[l]]=g(s)):(d[c].push(s),p[h[l]]=(p[h[l]]||[]).concat(g(s)));r._indexToPoints=p;var v=r.aggregations;for(s=0;s&lt;v.length;s++)u(t,e,d,v[s]);&quot;string&quot;==typeof n&amp;&amp;u(t,e,d,{target:n,func:&quot;first&quot;,enabled:!0}),e._length=d.length}}}},{&quot;../constants/numerical&quot;:753,&quot;../lib&quot;:778,&quot;../plot_api/plot_schema&quot;:816,&quot;../plots/cartesian/axes&quot;:828,&quot;./helpers&quot;:1368}],1366:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../registry&quot;),a=t(&quot;../plots/cartesian/axes&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction,s=t(&quot;../constants/filter_ops&quot;),l=s.COMPARISON_OPS,c=s.INTERVAL_OPS,u=s.SET_OPS;r.moduleType=&quot;transform&quot;,r.name=&quot;filter&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},target:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},operation:{valType:&quot;enumerated&quot;,values:[].concat(l).concat(c).concat(u),dflt:&quot;=&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},preservegaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t){var e={};function a(i,a){return n.coerce(t,e,r.attributes,i,a)}if(a(&quot;enabled&quot;)){var o=a(&quot;target&quot;);if(n.isArrayOrTypedArray(o)&amp;&amp;0===o.length)return e.enabled=!1,e;a(&quot;preservegaps&quot;),a(&quot;operation&quot;),a(&quot;value&quot;);var s=i.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;);s(t,e,&quot;valuecalendar&quot;,null),s(t,e,&quot;targetcalendar&quot;,null)}return e},r.calcTransform=function(t,e,r){if(r.enabled){var i=n.getTargetArray(e,r);if(i){var s=r.target,f=i.length;e._length&amp;&amp;(f=Math.min(f,e._length));var h=r.targetcalendar,p=e._arrayAttrs,d=r.preservegaps;if(&quot;string&quot;==typeof s){var g=n.nestedProperty(e,s+&quot;calendar&quot;).get();g&amp;&amp;(h=g)}var m,v,y=function(t,e,r){var n=t.operation,i=t.value,a=Array.isArray(i);function o(t){return-1!==t.indexOf(n)}var s,f=function(r){return e(r,0,t.valuecalendar)},h=function(t){return e(t,0,r)};o(l)?s=f(a?i[0]:i):o(c)?s=a?[f(i[0]),f(i[1])]:[f(i),f(i)]:o(u)&amp;&amp;(s=a?i.map(f):[f(i)]);switch(n){case&quot;=&quot;:return function(t){return h(t)===s};case&quot;!=&quot;:return function(t){return h(t)!==s};case&quot;&lt;&quot;:return function(t){return h(t)&lt;s};case&quot;&lt;=&quot;:return function(t){return h(t)&lt;=s};case&quot;&gt;&quot;:return function(t){return h(t)&gt;s};case&quot;&gt;=&quot;:return function(t){return h(t)&gt;=s};case&quot;[]&quot;:return function(t){var e=h(t);return e&gt;=s[0]&amp;&amp;e&lt;=s[1]};case&quot;()&quot;:return function(t){var e=h(t);return e&gt;s[0]&amp;&amp;e&lt;s[1]};case&quot;[)&quot;:return function(t){var e=h(t);return e&gt;=s[0]&amp;&amp;e&lt;s[1]};case&quot;(]&quot;:return function(t){var e=h(t);return e&gt;s[0]&amp;&amp;e&lt;=s[1]};case&quot;][&quot;:return function(t){var e=h(t);return e&lt;=s[0]||e&gt;=s[1]};case&quot;)(&quot;:return function(t){var e=h(t);return e&lt;s[0]||e&gt;s[1]};case&quot;](&quot;:return function(t){var e=h(t);return e&lt;=s[0]||e&gt;s[1]};case&quot;)[&quot;:return function(t){var e=h(t);return e&lt;s[0]||e&gt;=s[1]};case&quot;{}&quot;:return function(t){return-1!==s.indexOf(h(t))};case&quot;}{&quot;:return function(t){return-1===s.indexOf(h(t))}}}(r,a.getDataToCoordFunc(t,e,s,i),h),x={},b={},_=0;d?(m=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set(new Array(f))},v=function(t,e){var r=x[t.astr][e];t.get()[e]=r}):(m=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set([])},v=function(t,e){var r=x[t.astr][e];t.get().push(r)}),k(m);for(var w=o(e.transforms,r),T=0;T&lt;f;T++){y(i[T])?(k(v,T),b[_++]=w(T)):d&amp;&amp;_++}r._indexToPoints=b,e._length=_}}function k(t,r){for(var i=0;i&lt;p.length;i++){t(n.nestedProperty(e,p[i]),r)}}}},{&quot;../constants/filter_ops&quot;:749,&quot;../lib&quot;:778,&quot;../plots/cartesian/axes&quot;:828,&quot;../registry&quot;:911,&quot;./helpers&quot;:1368}],1367:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_schema&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction;function s(t,e){var r,s,l,c,u,f,h,p,d,g,m=e.transform,v=e.transformIndex,y=t.transforms[v].groups,x=o(t.transforms,m);if(!n.isArrayOrTypedArray(y)||0===y.length)return[t];var b=n.filterUnique(y),_=new Array(b.length),w=y.length,T=i.findArrayAttributes(t),k=m.styles||[],M={};for(r=0;r&lt;k.length;r++)M[k[r].target]=k[r].value;m.styles&amp;&amp;(g=n.keyedContainer(m,&quot;styles&quot;,&quot;target&quot;,&quot;value.name&quot;));var A={},S={};for(r=0;r&lt;b.length;r++){A[f=b[r]]=r,S[f]=0,(h=_[r]=n.extendDeepNoArrays({},t))._group=f,h.transforms[v]._indexToPoints={};var E=null;for(g&amp;&amp;(E=g.get(f)),h.name=E||&quot;&quot;===E?E:n.templateString(m.nameformat,{trace:t.name,group:f}),p=h.transforms,h.transforms=[],s=0;s&lt;p.length;s++)h.transforms[s]=n.extendDeepNoArrays({},p[s]);for(s=0;s&lt;T.length;s++)n.nestedProperty(h,T[s]).set([])}for(l=0;l&lt;T.length;l++){for(c=T[l],s=0,d=[];s&lt;b.length;s++)d[s]=n.nestedProperty(_[s],c).get();for(u=n.nestedProperty(t,c).get(),s=0;s&lt;w;s++)d[A[y[s]]].push(u[s])}for(s=0;s&lt;w;s++){(h=_[A[y[s]]]).transforms[v]._indexToPoints[S[y[s]]]=x(s),S[y[s]]++}for(r=0;r&lt;b.length;r++)f=b[r],h=_[r],a.clearExpandedTraceDefaultColors(h),h=n.extendDeepNoArrays(h,M[f]||{});return _}r.moduleType=&quot;transform&quot;,r.name=&quot;groupby&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},groups:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},nameformat:{valType:&quot;string&quot;,editType:&quot;calc&quot;},styles:{_isLinkedToArray:&quot;style&quot;,target:{valType:&quot;string&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:{},editType:&quot;calc&quot;,_compareAsJSON:!0},editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t,e,i){var a,o={};function s(e,i){return n.coerce(t,o,r.attributes,e,i)}if(!s(&quot;enabled&quot;))return o;s(&quot;groups&quot;),s(&quot;nameformat&quot;,i._dataLength&gt;1?&quot;%{group} (%{trace})&quot;:&quot;%{group}&quot;);var l=t.styles,c=o.styles=[];if(l)for(a=0;a&lt;l.length;a++){var u=c[a]={};n.coerce(l[a],c[a],r.attributes.styles,&quot;target&quot;);var f=n.coerce(l[a],c[a],r.attributes.styles,&quot;value&quot;);n.isPlainObject(f)?u.value=n.extendDeep({},f):f&amp;&amp;delete u.value}return o},r.transform=function(t,e){var r,n,i,a=[];for(n=0;n&lt;t.length;n++)for(r=s(t[n],e),i=0;i&lt;r.length;i++)a.push(r[i]);return a}},{&quot;../lib&quot;:778,&quot;../plot_api/plot_schema&quot;:816,&quot;../plots/plots&quot;:891,&quot;./helpers&quot;:1368}],1368:[function(t,e,r){&quot;use strict&quot;;r.pointsAccessorFunction=function(t,e){for(var r,n,i=0;i&lt;t.length&amp;&amp;(r=t[i])!==e;i++)r._indexToPoints&amp;&amp;!1!==r.enabled&amp;&amp;(n=r._indexToPoints);return n?function(t){return n[t]}:function(t){return[t]}}},{}],1369:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/cartesian/axes&quot;),a=t(&quot;./helpers&quot;).pointsAccessorFunction,o=t(&quot;../constants/numerical&quot;).BADNUM;r.moduleType=&quot;transform&quot;,r.name=&quot;sort&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},target:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},order:{valType:&quot;enumerated&quot;,values:[&quot;ascending&quot;,&quot;descending&quot;],dflt:&quot;ascending&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t){var e={};function i(i,a){return n.coerce(t,e,r.attributes,i,a)}return i(&quot;enabled&quot;)&amp;&amp;(i(&quot;target&quot;),i(&quot;order&quot;)),e},r.calcTransform=function(t,e,r){if(r.enabled){var s=n.getTargetArray(e,r);if(s){var l=r.target,c=s.length;e._length&amp;&amp;(c=Math.min(c,e._length));var u,f,h=e._arrayAttrs,p=function(t,e,r,n){var i,a=new Array(n),s=new Array(n);for(i=0;i&lt;n;i++)a[i]={v:e[i],i:i};for(a.sort(function(t,e){switch(t.order){case&quot;ascending&quot;:return function(t,r){var n=e(t.v),i=e(r.v);return n===o?1:i===o?-1:n-i};case&quot;descending&quot;:return function(t,r){var n=e(t.v),i=e(r.v);return n===o?1:i===o?-1:i-n}}}(t,r)),i=0;i&lt;n;i++)s[i]=a[i].i;return s}(r,s,i.getDataToCoordFunc(t,e,l,s),c),d=a(e.transforms,r),g={};for(u=0;u&lt;h.length;u++){var m=n.nestedProperty(e,h[u]),v=m.get(),y=new Array(c);for(f=0;f&lt;c;f++)y[f]=v[p[f]];m.set(y)}for(f=0;f&lt;c;f++)g[f]=d(p[f]);r._indexToPoints=g,e._length=c}}}},{&quot;../constants/numerical&quot;:753,&quot;../lib&quot;:778,&quot;../plots/cartesian/axes&quot;:828,&quot;./helpers&quot;:1368}],1370:[function(t,e,r){&quot;use strict&quot;;r.version=&quot;1.58.4&quot;},{}]},{},[26])(26)}));&lt;/script&gt;                &lt;div id=&quot;d9cb2377-e030-4f9a-9a63-6d005f2e3169&quot; class=&quot;plotly-graph-div&quot; style=&quot;height:100%; width:100%;&quot;&gt;&lt;/div&gt;            &lt;script type=&quot;text/javascript&quot;&gt;                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById(&quot;d9cb2377-e030-4f9a-9a63-6d005f2e3169&quot;)) {                    Plotly.newPlot(                        &quot;d9cb2377-e030-4f9a-9a63-6d005f2e3169&quot;,                        [{&quot;hovertemplate&quot;: &quot;&lt;b&gt;%{hovertext}&lt;/b&gt;&lt;br&gt;&lt;br&gt;LATITUDE=%{lat}&lt;br&gt;LONGITUDE=%{lon}&lt;br&gt;ESTIMATED YEAR INCREASE (C)=%{marker.color}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;hovertext&quot;: [&quot;AMBER_LAKE&quot;, &quot;ANNIE_LAKE_ROBINSON&quot;, &quot;BARROW_4_ENE&quot;, &quot;COLVILLE_VILLAGE&quot;, &quot;KEMIONSAARI_KEMIO_KK&quot;, &quot;KOBUK&quot;, &quot;LOSSET&quot;, &quot;LUPIN_A&quot;, &quot;MANTSALA_PUROLA&quot;, &quot;MESTERVIK&quot;, &quot;QIKIQTARJUAQ_A&quot;, &quot;RABBIT_KETTLE&quot;, &quot;RICHARDSON&quot;, &quot;TRAIL_VALLEY&quot;, &quot;VERHOYANSKIJPEREVOZ&quot;, &quot;YELLOWKNIFE_HENDERSON&quot;], &quot;lat&quot;: [62.1925, 60.4667, 71.3214, 70.4322, 60.1714, 66.9, 61.3667, 65.7667, 60.5783, 69.3297, 67.55, 61.9667, 64.2833, 68.75, 63.317, 62.45], &quot;legendgroup&quot;: &quot;&quot;, &quot;lon&quot;: [-150.5033, -134.8333, -156.6111, -150.4094, 22.7606, -156.8667, 11.3833, -111.25, 25.4914, 18.889, -64.0333, -127.2167, -146.3333, -133.5, 132.017, -114.3833], &quot;marker&quot;: {&quot;color&quot;: [0.2502, 0.2287, 0.2147, 0.2069, 0.245, 0.226, 0.2157, 0.2063, 0.2594, 0.212, 0.2072, 0.2112, 0.2484, 0.22, 0.2669, 0.2728], &quot;coloraxis&quot;: &quot;coloraxis&quot;}, &quot;mode&quot;: &quot;markers&quot;, &quot;name&quot;: &quot;&quot;, &quot;showlegend&quot;: false, &quot;subplot&quot;: &quot;mapbox&quot;, &quot;type&quot;: &quot;scattermapbox&quot;}],                        {&quot;coloraxis&quot;: {&quot;colorbar&quot;: {&quot;title&quot;: {&quot;text&quot;: &quot;ESTIMATED YEAR INCREASE (C)&quot;}}, &quot;colorscale&quot;: [[0.0, &quot;rgb(26,26,26)&quot;], [0.1, &quot;rgb(77,77,77)&quot;], [0.2, &quot;rgb(135,135,135)&quot;], [0.3, &quot;rgb(186,186,186)&quot;], [0.4, &quot;rgb(224,224,224)&quot;], [0.5, &quot;rgb(255,255,255)&quot;], [0.6, &quot;rgb(253,219,199)&quot;], [0.7, &quot;rgb(244,165,130)&quot;], [0.8, &quot;rgb(214,96,77)&quot;], [0.9, &quot;rgb(178,24,43)&quot;], [1.0, &quot;rgb(103,0,31)&quot;]]}, &quot;legend&quot;: {&quot;tracegroupgap&quot;: 0}, &quot;mapbox&quot;: {&quot;center&quot;: {&quot;lat&quot;: 64.8026625, &quot;lon&quot;: -77.21244374999999}, &quot;domain&quot;: {&quot;x&quot;: [0.0, 1.0], &quot;y&quot;: [0.0, 1.0]}, &quot;style&quot;: &quot;carto-positron&quot;, &quot;zoom&quot;: 1}, &quot;margin&quot;: {&quot;t&quot;: 60}, &quot;template&quot;: {&quot;data&quot;: {&quot;bar&quot;: [{&quot;error_x&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}, &quot;error_y&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}, &quot;marker&quot;: {&quot;line&quot;: {&quot;color&quot;: &quot;#E5ECF6&quot;, &quot;width&quot;: 0.5}}, &quot;type&quot;: &quot;bar&quot;}], &quot;barpolar&quot;: [{&quot;marker&quot;: {&quot;line&quot;: {&quot;color&quot;: &quot;#E5ECF6&quot;, &quot;width&quot;: 0.5}}, &quot;type&quot;: &quot;barpolar&quot;}], &quot;carpet&quot;: [{&quot;aaxis&quot;: {&quot;endlinecolor&quot;: &quot;#2a3f5f&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;minorgridcolor&quot;: &quot;white&quot;, &quot;startlinecolor&quot;: &quot;#2a3f5f&quot;}, &quot;baxis&quot;: {&quot;endlinecolor&quot;: &quot;#2a3f5f&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;minorgridcolor&quot;: &quot;white&quot;, &quot;startlinecolor&quot;: &quot;#2a3f5f&quot;}, &quot;type&quot;: &quot;carpet&quot;}], &quot;choropleth&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;type&quot;: &quot;choropleth&quot;}], &quot;contour&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;contour&quot;}], &quot;contourcarpet&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;type&quot;: &quot;contourcarpet&quot;}], &quot;heatmap&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;heatmap&quot;}], &quot;heatmapgl&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;heatmapgl&quot;}], &quot;histogram&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;histogram&quot;}], &quot;histogram2d&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;histogram2d&quot;}], &quot;histogram2dcontour&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;histogram2dcontour&quot;}], &quot;mesh3d&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;type&quot;: &quot;mesh3d&quot;}], &quot;parcoords&quot;: [{&quot;line&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;parcoords&quot;}], &quot;pie&quot;: [{&quot;automargin&quot;: true, &quot;type&quot;: &quot;pie&quot;}], &quot;scatter&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatter&quot;}], &quot;scatter3d&quot;: [{&quot;line&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatter3d&quot;}], &quot;scattercarpet&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattercarpet&quot;}], &quot;scattergeo&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattergeo&quot;}], &quot;scattergl&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattergl&quot;}], &quot;scattermapbox&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattermapbox&quot;}], &quot;scatterpolar&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatterpolar&quot;}], &quot;scatterpolargl&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatterpolargl&quot;}], &quot;scatterternary&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatterternary&quot;}], &quot;surface&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;surface&quot;}], &quot;table&quot;: [{&quot;cells&quot;: {&quot;fill&quot;: {&quot;color&quot;: &quot;#EBF0F8&quot;}, &quot;line&quot;: {&quot;color&quot;: &quot;white&quot;}}, &quot;header&quot;: {&quot;fill&quot;: {&quot;color&quot;: &quot;#C8D4E3&quot;}, &quot;line&quot;: {&quot;color&quot;: &quot;white&quot;}}, &quot;type&quot;: &quot;table&quot;}]}, &quot;layout&quot;: {&quot;annotationdefaults&quot;: {&quot;arrowcolor&quot;: &quot;#2a3f5f&quot;, &quot;arrowhead&quot;: 0, &quot;arrowwidth&quot;: 1}, &quot;autotypenumbers&quot;: &quot;strict&quot;, &quot;coloraxis&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;colorscale&quot;: {&quot;diverging&quot;: [[0, &quot;#8e0152&quot;], [0.1, &quot;#c51b7d&quot;], [0.2, &quot;#de77ae&quot;], [0.3, &quot;#f1b6da&quot;], [0.4, &quot;#fde0ef&quot;], [0.5, &quot;#f7f7f7&quot;], [0.6, &quot;#e6f5d0&quot;], [0.7, &quot;#b8e186&quot;], [0.8, &quot;#7fbc41&quot;], [0.9, &quot;#4d9221&quot;], [1, &quot;#276419&quot;]], &quot;sequential&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;sequentialminus&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]]}, &quot;colorway&quot;: [&quot;#636efa&quot;, &quot;#EF553B&quot;, &quot;#00cc96&quot;, &quot;#ab63fa&quot;, &quot;#FFA15A&quot;, &quot;#19d3f3&quot;, &quot;#FF6692&quot;, &quot;#B6E880&quot;, &quot;#FF97FF&quot;, &quot;#FECB52&quot;], &quot;font&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}, &quot;geo&quot;: {&quot;bgcolor&quot;: &quot;white&quot;, &quot;lakecolor&quot;: &quot;white&quot;, &quot;landcolor&quot;: &quot;#E5ECF6&quot;, &quot;showlakes&quot;: true, &quot;showland&quot;: true, &quot;subunitcolor&quot;: &quot;white&quot;}, &quot;hoverlabel&quot;: {&quot;align&quot;: &quot;left&quot;}, &quot;hovermode&quot;: &quot;closest&quot;, &quot;mapbox&quot;: {&quot;style&quot;: &quot;light&quot;}, &quot;paper_bgcolor&quot;: &quot;white&quot;, &quot;plot_bgcolor&quot;: &quot;#E5ECF6&quot;, &quot;polar&quot;: {&quot;angularaxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}, &quot;bgcolor&quot;: &quot;#E5ECF6&quot;, &quot;radialaxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}}, &quot;scene&quot;: {&quot;xaxis&quot;: {&quot;backgroundcolor&quot;: &quot;#E5ECF6&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;gridwidth&quot;: 2, &quot;linecolor&quot;: &quot;white&quot;, &quot;showbackground&quot;: true, &quot;ticks&quot;: &quot;&quot;, &quot;zerolinecolor&quot;: &quot;white&quot;}, &quot;yaxis&quot;: {&quot;backgroundcolor&quot;: &quot;#E5ECF6&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;gridwidth&quot;: 2, &quot;linecolor&quot;: &quot;white&quot;, &quot;showbackground&quot;: true, &quot;ticks&quot;: &quot;&quot;, &quot;zerolinecolor&quot;: &quot;white&quot;}, &quot;zaxis&quot;: {&quot;backgroundcolor&quot;: &quot;#E5ECF6&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;gridwidth&quot;: 2, &quot;linecolor&quot;: &quot;white&quot;, &quot;showbackground&quot;: true, &quot;ticks&quot;: &quot;&quot;, &quot;zerolinecolor&quot;: &quot;white&quot;}}, &quot;shapedefaults&quot;: {&quot;line&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}}, &quot;ternary&quot;: {&quot;aaxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}, &quot;baxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}, &quot;bgcolor&quot;: &quot;#E5ECF6&quot;, &quot;caxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}}, &quot;title&quot;: {&quot;x&quot;: 0.05}, &quot;xaxis&quot;: {&quot;automargin&quot;: true, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;, &quot;title&quot;: {&quot;standoff&quot;: 15}, &quot;zerolinecolor&quot;: &quot;white&quot;, &quot;zerolinewidth&quot;: 2}, &quot;yaxis&quot;: {&quot;automargin&quot;: true, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;, &quot;title&quot;: {&quot;standoff&quot;: 15}, &quot;zerolinecolor&quot;: &quot;white&quot;, &quot;zerolinewidth&quot;: 2}}}, &quot;title&quot;: {&quot;text&quot;: &quot;Estimates of Yearly Increase in Temperature from 60 to 90 Degrees Latitude&quot;}},                        {&quot;responsive&quot;: true}                    )                };                            &lt;/script&gt;        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

&lt;h1 id=&quot;graphing-function-2---density-heatmap&quot;&gt;Graphing Function 2 - Density Heatmap&lt;/h1&gt;

&lt;p&gt;Now that we’ve seen the concept in action, let’s try out an entirely different sort of plot, a density heatmap (2dhistogram). Now this is the real meat and potatoes of our idea. We’re going to write a function to create a plot that visually aggregates the average of the estimated average temperature change for a given latitude range. Here the bins (nxbins and nybins kwargs fed to the plotting function) determine the spatial resolution of our plot. The ratios of number of xbins to latitude range and number of ybins to longitude determine the x and y size of each bin, i.e. over how large of an area the stations are grouped together to average their yearly temp delta averages. Sounds weird right? It’ll make sense when you see it. It’s basically a flexible, Atari vibes, pixel-art-looking way to visualize temperate change that unlike a cloropleth, isn’t tied to geometry of borders or some other premade polygonal set; it’s visual aggregation you can change the resolution of and clumping behavior of using only a couple whole number inputs.&lt;/p&gt;

&lt;p&gt;Here it goes:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;temperature_heat_map&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat_start&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;delta_threshold&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;**&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;kwargs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    &lt;span class=&quot;s&quot;&gt;&quot;&quot;&quot;
    Function to create an interactive, geographic plot of estimated average increase
    in temperature over a provided latitude range using a heat density map  wherein
    spatial resolution, and by proxy the grouping of temp delta averaging, via the 
    manipulation of bin counts and latitude ranges
    
    Parameters
    ----------
    lat_start - int: the start of the latitude range to query for
    lat_end - int: the end of the latitude range to query for
    delta_threshold - int: threshold for inclusion in the plot (avoids say, every weather
    station in America from being plotted if you're looking for outliers only over a narrow
    latitude band)
    kwargs: variable arguments fed to the plotly graphing function
    
    Returns
    -------
    fig - the plotly fig generated by the function
    &quot;&quot;&quot;&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#use prior defined query function to build our df
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_query&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat_start&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#group our df by station
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;groupby&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;NAME&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;LATITUDE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;LONGITUDE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]).&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;apply&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coef&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;reset_index&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#rename new column 
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rename&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;columns&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;ESTIMATED YEAR INCREASE (C)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;})&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#round temp values
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;round&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#output strings
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;str_start&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat_start&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;str_end&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat_end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;px&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;density_heatmap&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;LONGITUDE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;LATITUDE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                             &lt;span class=&quot;n&quot;&gt;z&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;ESTIMATED YEAR INCREASE (C)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;histfunc&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;avg&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                             &lt;span class=&quot;n&quot;&gt;color_continuous_midpoint&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                             &lt;span class=&quot;n&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Estimates of Yearly Change in Temperature from &quot;&lt;/span&gt; 
                             &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;str_start&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot; to &quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;str_end&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot; Degrees Latitude&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                             &lt;span class=&quot;o&quot;&gt;**&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;kwargs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    

    &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;#call function
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;temperature_heat_map&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;nbinsx&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;72&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;nbinsy&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;36&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                          &lt;span class=&quot;n&quot;&gt;color_continuous_scale&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;rdbu_r&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;c1&quot;&gt;#show figure
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;show&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;#comment out if you do not wish to save you fig
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pio&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;write_html&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;hw4_heatdensity_map&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;html&gt;
&lt;head&gt;&lt;meta charset=&quot;utf-8&quot; /&gt;&lt;/head&gt;
&lt;body&gt;
    &lt;div&gt;                        &lt;script type=&quot;text/javascript&quot;&gt;window.PlotlyConfig = {MathJaxConfig: 'local'};&lt;/script&gt;
        &lt;script type=&quot;text/javascript&quot;&gt;/**
* plotly.js v1.58.4
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
!function(t){if(&quot;object&quot;==typeof exports&amp;&amp;&quot;undefined&quot;!=typeof module)module.exports=t();else if(&quot;function&quot;==typeof define&amp;&amp;define.amd)define([],t);else{(&quot;undefined&quot;!=typeof window?window:&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:this).Plotly=t()}}((function(){return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var l=&quot;function&quot;==typeof require&amp;&amp;require;if(!s&amp;&amp;l)return l(o,!0);if(a)return a(o,!0);var c=new Error(&quot;Cannot find module '&quot;+o+&quot;'&quot;);throw c.code=&quot;MODULE_NOT_FOUND&quot;,c}var u=r[o]={exports:{}};e[o][0].call(u.exports,(function(t){return i(e[o][1][t]||t)}),u,u.exports,t,e,r,n)}return r[o].exports}for(var a=&quot;function&quot;==typeof require&amp;&amp;require,o=0;o&lt;n.length;o++)i(n[o]);return i}({1:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../src/lib&quot;),i={&quot;X,X div&quot;:&quot;direction:ltr;font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding:0;&quot;,&quot;X input,X button&quot;:&quot;font-family:'Open Sans', verdana, arial, sans-serif;&quot;,&quot;X input:focus,X button:focus&quot;:&quot;outline:none;&quot;,&quot;X a&quot;:&quot;text-decoration:none;&quot;,&quot;X a:hover&quot;:&quot;text-decoration:none;&quot;,&quot;X .crisp&quot;:&quot;shape-rendering:crispEdges;&quot;,&quot;X .user-select-none&quot;:&quot;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;&quot;,&quot;X svg&quot;:&quot;overflow:hidden;&quot;,&quot;X svg a&quot;:&quot;fill:#447adb;&quot;,&quot;X svg a:hover&quot;:&quot;fill:#3c6dc5;&quot;,&quot;X .main-svg&quot;:&quot;position:absolute;top:0;left:0;pointer-events:none;&quot;,&quot;X .main-svg .draglayer&quot;:&quot;pointer-events:all;&quot;,&quot;X .cursor-default&quot;:&quot;cursor:default;&quot;,&quot;X .cursor-pointer&quot;:&quot;cursor:pointer;&quot;,&quot;X .cursor-crosshair&quot;:&quot;cursor:crosshair;&quot;,&quot;X .cursor-move&quot;:&quot;cursor:move;&quot;,&quot;X .cursor-col-resize&quot;:&quot;cursor:col-resize;&quot;,&quot;X .cursor-row-resize&quot;:&quot;cursor:row-resize;&quot;,&quot;X .cursor-ns-resize&quot;:&quot;cursor:ns-resize;&quot;,&quot;X .cursor-ew-resize&quot;:&quot;cursor:ew-resize;&quot;,&quot;X .cursor-sw-resize&quot;:&quot;cursor:sw-resize;&quot;,&quot;X .cursor-s-resize&quot;:&quot;cursor:s-resize;&quot;,&quot;X .cursor-se-resize&quot;:&quot;cursor:se-resize;&quot;,&quot;X .cursor-w-resize&quot;:&quot;cursor:w-resize;&quot;,&quot;X .cursor-e-resize&quot;:&quot;cursor:e-resize;&quot;,&quot;X .cursor-nw-resize&quot;:&quot;cursor:nw-resize;&quot;,&quot;X .cursor-n-resize&quot;:&quot;cursor:n-resize;&quot;,&quot;X .cursor-ne-resize&quot;:&quot;cursor:ne-resize;&quot;,&quot;X .cursor-grab&quot;:&quot;cursor:-webkit-grab;cursor:grab;&quot;,&quot;X .modebar&quot;:&quot;position:absolute;top:2px;right:2px;&quot;,&quot;X .ease-bg&quot;:&quot;-webkit-transition:background-color 0.3s ease 0s;-moz-transition:background-color 0.3s ease 0s;-ms-transition:background-color 0.3s ease 0s;-o-transition:background-color 0.3s ease 0s;transition:background-color 0.3s ease 0s;&quot;,&quot;X .modebar--hover&gt;:not(.watermark)&quot;:&quot;opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;&quot;,&quot;X:hover .modebar--hover .modebar-group&quot;:&quot;opacity:1;&quot;,&quot;X .modebar-group&quot;:&quot;float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;&quot;,&quot;X .modebar-btn&quot;:&quot;position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;&quot;,&quot;X .modebar-btn svg&quot;:&quot;position:relative;top:2px;&quot;,&quot;X .modebar.vertical&quot;:&quot;display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;&quot;,&quot;X .modebar.vertical svg&quot;:&quot;top:-1px;&quot;,&quot;X .modebar.vertical .modebar-group&quot;:&quot;display:block;float:none;padding-left:0px;padding-bottom:8px;&quot;,&quot;X .modebar.vertical .modebar-group .modebar-btn&quot;:&quot;display:block;text-align:center;&quot;,&quot;X [data-title]:before,X [data-title]:after&quot;:&quot;position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;&quot;,&quot;X [data-title]:hover:before,X [data-title]:hover:after&quot;:&quot;display:block;opacity:1;&quot;,&quot;X [data-title]:before&quot;:&quot;content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;&quot;,&quot;X [data-title]:after&quot;:&quot;content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;&quot;,&quot;X .vertical [data-title]:before,X .vertical [data-title]:after&quot;:&quot;top:0%;right:200%;&quot;,&quot;X .vertical [data-title]:before&quot;:&quot;border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;&quot;,&quot;X .select-outline&quot;:&quot;fill:none;stroke-width:1;shape-rendering:crispEdges;&quot;,&quot;X .select-outline-1&quot;:&quot;stroke:white;&quot;,&quot;X .select-outline-2&quot;:&quot;stroke:black;stroke-dasharray:2px 2px;&quot;,Y:&quot;font-family:'Open Sans', verdana, arial, sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;&quot;,&quot;Y p&quot;:&quot;margin:0;&quot;,&quot;Y .notifier-note&quot;:&quot;min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;&quot;,&quot;Y .notifier-close&quot;:&quot;color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;&quot;,&quot;Y .notifier-close:hover&quot;:&quot;color:#444;text-decoration:none;cursor:pointer;&quot;};for(var a in i){var o=a.replace(/^,/,&quot; ,&quot;).replace(/X/g,&quot;.js-plotly-plot .plotly&quot;).replace(/Y/g,&quot;.plotly-notifier&quot;);n.addStyleRule(o,i[a])}},{&quot;../src/lib&quot;:778}],2:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/aggregate&quot;)},{&quot;../src/transforms/aggregate&quot;:1365}],3:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/bar&quot;)},{&quot;../src/traces/bar&quot;:929}],4:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/barpolar&quot;)},{&quot;../src/traces/barpolar&quot;:942}],5:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/box&quot;)},{&quot;../src/traces/box&quot;:952}],6:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/components/calendars&quot;)},{&quot;../src/components/calendars&quot;:641}],7:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/candlestick&quot;)},{&quot;../src/traces/candlestick&quot;:961}],8:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/carpet&quot;)},{&quot;../src/traces/carpet&quot;:980}],9:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/choropleth&quot;)},{&quot;../src/traces/choropleth&quot;:994}],10:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/choroplethmapbox&quot;)},{&quot;../src/traces/choroplethmapbox&quot;:1001}],11:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/cone&quot;)},{&quot;../src/traces/cone&quot;:1007}],12:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/contour&quot;)},{&quot;../src/traces/contour&quot;:1022}],13:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/contourcarpet&quot;)},{&quot;../src/traces/contourcarpet&quot;:1033}],14:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/core&quot;)},{&quot;../src/core&quot;:755}],15:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/densitymapbox&quot;)},{&quot;../src/traces/densitymapbox&quot;:1041}],16:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/filter&quot;)},{&quot;../src/transforms/filter&quot;:1366}],17:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/funnel&quot;)},{&quot;../src/traces/funnel&quot;:1051}],18:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/funnelarea&quot;)},{&quot;../src/traces/funnelarea&quot;:1060}],19:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/groupby&quot;)},{&quot;../src/transforms/groupby&quot;:1367}],20:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/heatmap&quot;)},{&quot;../src/traces/heatmap&quot;:1073}],21:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/heatmapgl&quot;)},{&quot;../src/traces/heatmapgl&quot;:1083}],22:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram&quot;)},{&quot;../src/traces/histogram&quot;:1095}],23:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram2d&quot;)},{&quot;../src/traces/histogram2d&quot;:1101}],24:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram2dcontour&quot;)},{&quot;../src/traces/histogram2dcontour&quot;:1105}],25:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/image&quot;)},{&quot;../src/traces/image&quot;:1113}],26:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./core&quot;);n.register([t(&quot;./bar&quot;),t(&quot;./box&quot;),t(&quot;./heatmap&quot;),t(&quot;./histogram&quot;),t(&quot;./histogram2d&quot;),t(&quot;./histogram2dcontour&quot;),t(&quot;./contour&quot;),t(&quot;./scatterternary&quot;),t(&quot;./violin&quot;),t(&quot;./funnel&quot;),t(&quot;./waterfall&quot;),t(&quot;./image&quot;),t(&quot;./pie&quot;),t(&quot;./sunburst&quot;),t(&quot;./treemap&quot;),t(&quot;./funnelarea&quot;),t(&quot;./scatter3d&quot;),t(&quot;./surface&quot;),t(&quot;./isosurface&quot;),t(&quot;./volume&quot;),t(&quot;./mesh3d&quot;),t(&quot;./cone&quot;),t(&quot;./streamtube&quot;),t(&quot;./scattergeo&quot;),t(&quot;./choropleth&quot;),t(&quot;./scattergl&quot;),t(&quot;./splom&quot;),t(&quot;./pointcloud&quot;),t(&quot;./heatmapgl&quot;),t(&quot;./parcoords&quot;),t(&quot;./parcats&quot;),t(&quot;./scattermapbox&quot;),t(&quot;./choroplethmapbox&quot;),t(&quot;./densitymapbox&quot;),t(&quot;./sankey&quot;),t(&quot;./indicator&quot;),t(&quot;./table&quot;),t(&quot;./carpet&quot;),t(&quot;./scattercarpet&quot;),t(&quot;./contourcarpet&quot;),t(&quot;./ohlc&quot;),t(&quot;./candlestick&quot;),t(&quot;./scatterpolar&quot;),t(&quot;./scatterpolargl&quot;),t(&quot;./barpolar&quot;)]),n.register([t(&quot;./aggregate&quot;),t(&quot;./filter&quot;),t(&quot;./groupby&quot;),t(&quot;./sort&quot;)]),n.register([t(&quot;./calendars&quot;)]),e.exports=n},{&quot;./aggregate&quot;:2,&quot;./bar&quot;:3,&quot;./barpolar&quot;:4,&quot;./box&quot;:5,&quot;./calendars&quot;:6,&quot;./candlestick&quot;:7,&quot;./carpet&quot;:8,&quot;./choropleth&quot;:9,&quot;./choroplethmapbox&quot;:10,&quot;./cone&quot;:11,&quot;./contour&quot;:12,&quot;./contourcarpet&quot;:13,&quot;./core&quot;:14,&quot;./densitymapbox&quot;:15,&quot;./filter&quot;:16,&quot;./funnel&quot;:17,&quot;./funnelarea&quot;:18,&quot;./groupby&quot;:19,&quot;./heatmap&quot;:20,&quot;./heatmapgl&quot;:21,&quot;./histogram&quot;:22,&quot;./histogram2d&quot;:23,&quot;./histogram2dcontour&quot;:24,&quot;./image&quot;:25,&quot;./indicator&quot;:27,&quot;./isosurface&quot;:28,&quot;./mesh3d&quot;:29,&quot;./ohlc&quot;:30,&quot;./parcats&quot;:31,&quot;./parcoords&quot;:32,&quot;./pie&quot;:33,&quot;./pointcloud&quot;:34,&quot;./sankey&quot;:35,&quot;./scatter3d&quot;:36,&quot;./scattercarpet&quot;:37,&quot;./scattergeo&quot;:38,&quot;./scattergl&quot;:39,&quot;./scattermapbox&quot;:40,&quot;./scatterpolar&quot;:41,&quot;./scatterpolargl&quot;:42,&quot;./scatterternary&quot;:43,&quot;./sort&quot;:44,&quot;./splom&quot;:45,&quot;./streamtube&quot;:46,&quot;./sunburst&quot;:47,&quot;./surface&quot;:48,&quot;./table&quot;:49,&quot;./treemap&quot;:50,&quot;./violin&quot;:51,&quot;./volume&quot;:52,&quot;./waterfall&quot;:53}],27:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/indicator&quot;)},{&quot;../src/traces/indicator&quot;:1121}],28:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/isosurface&quot;)},{&quot;../src/traces/isosurface&quot;:1127}],29:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/mesh3d&quot;)},{&quot;../src/traces/mesh3d&quot;:1132}],30:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/ohlc&quot;)},{&quot;../src/traces/ohlc&quot;:1137}],31:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/parcats&quot;)},{&quot;../src/traces/parcats&quot;:1146}],32:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/parcoords&quot;)},{&quot;../src/traces/parcoords&quot;:1156}],33:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/pie&quot;)},{&quot;../src/traces/pie&quot;:1167}],34:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/pointcloud&quot;)},{&quot;../src/traces/pointcloud&quot;:1176}],35:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/sankey&quot;)},{&quot;../src/traces/sankey&quot;:1182}],36:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatter3d&quot;)},{&quot;../src/traces/scatter3d&quot;:1220}],37:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattercarpet&quot;)},{&quot;../src/traces/scattercarpet&quot;:1227}],38:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattergeo&quot;)},{&quot;../src/traces/scattergeo&quot;:1235}],39:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattergl&quot;)},{&quot;../src/traces/scattergl&quot;:1248}],40:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattermapbox&quot;)},{&quot;../src/traces/scattermapbox&quot;:1258}],41:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterpolar&quot;)},{&quot;../src/traces/scatterpolar&quot;:1266}],42:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterpolargl&quot;)},{&quot;../src/traces/scatterpolargl&quot;:1273}],43:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterternary&quot;)},{&quot;../src/traces/scatterternary&quot;:1281}],44:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/sort&quot;)},{&quot;../src/transforms/sort&quot;:1369}],45:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/splom&quot;)},{&quot;../src/traces/splom&quot;:1290}],46:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/streamtube&quot;)},{&quot;../src/traces/streamtube&quot;:1298}],47:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/sunburst&quot;)},{&quot;../src/traces/sunburst&quot;:1306}],48:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/surface&quot;)},{&quot;../src/traces/surface&quot;:1315}],49:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/table&quot;)},{&quot;../src/traces/table&quot;:1323}],50:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/treemap&quot;)},{&quot;../src/traces/treemap&quot;:1332}],51:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/violin&quot;)},{&quot;../src/traces/violin&quot;:1344}],52:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/volume&quot;)},{&quot;../src/traces/volume&quot;:1352}],53:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/waterfall&quot;)},{&quot;../src/traces/waterfall&quot;:1360}],54:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).eye||[0,0,1],r=t.center||[0,0,0],s=t.up||[0,1,0],l=t.distanceLimits||[0,1/0],c=t.mode||&quot;turntable&quot;,u=n(),f=i(),h=a();return u.setDistanceLimits(l[0],l[1]),u.lookAt(0,e,r,s),f.setDistanceLimits(l[0],l[1]),f.lookAt(0,e,r,s),h.setDistanceLimits(l[0],l[1]),h.lookAt(0,e,r,s),new o({turntable:u,orbit:f,matrix:h},c)};var n=t(&quot;turntable-camera-controller&quot;),i=t(&quot;orbit-camera-controller&quot;),a=t(&quot;matrix-camera-controller&quot;);function o(t,e){this._controllerNames=Object.keys(t),this._controllerList=this._controllerNames.map((function(e){return t[e]})),this._mode=e,this._active=t[e],this._active||(this._mode=&quot;turntable&quot;,this._active=t.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var s=o.prototype;[[&quot;flush&quot;,1],[&quot;idle&quot;,1],[&quot;lookAt&quot;,4],[&quot;rotate&quot;,4],[&quot;pan&quot;,4],[&quot;translate&quot;,4],[&quot;setMatrix&quot;,2],[&quot;setDistanceLimits&quot;,2],[&quot;setDistance&quot;,2]].forEach((function(t){for(var e=t[0],r=[],n=0;n&lt;t[1];++n)r.push(&quot;a&quot;+n);var i=&quot;var cc=this._controllerList;for(var i=0;i&lt;cc.length;++i){cc[i].&quot;+t[0]+&quot;(&quot;+r.join()+&quot;)}&quot;;s[e]=Function.apply(null,r.concat(i))})),s.recalcMatrix=function(t){this._active.recalcMatrix(t)},s.getDistance=function(t){return this._active.getDistance(t)},s.getDistanceLimits=function(t){return this._active.getDistanceLimits(t)},s.lastT=function(){return this._active.lastT()},s.setMode=function(t){if(t!==this._mode){var e=this._controllerNames.indexOf(t);if(!(e&lt;0)){var r=this._active,n=this._controllerList[e],i=Math.max(r.lastT(),n.lastT());r.recalcMatrix(i),n.setMatrix(i,r.computedMatrix),this._active=n,this._mode=t,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}}},s.getMode=function(){return this._mode}},{&quot;matrix-camera-controller&quot;:480,&quot;orbit-camera-controller&quot;:501,&quot;turntable-camera-controller&quot;:581}],55:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-array&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-shape&quot;),t(&quot;elementary-circuits-directed-graph&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,null)}(this,(function(t,e,r,n,i){&quot;use strict&quot;;function a(t){return t.target.depth}function o(t,e){return t.sourceLinks.length?t.depth:e-1}function s(t){return function(){return t}}i=i&amp;&amp;i.hasOwnProperty(&quot;default&quot;)?i.default:i;var l=&quot;function&quot;==typeof Symbol&amp;&amp;&quot;symbol&quot;==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;&quot;function&quot;==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?&quot;symbol&quot;:typeof t};function c(t,e){return f(t.source,e.source)||t.index-e.index}function u(t,e){return f(t.target,e.target)||t.index-e.index}function f(t,e){return t.partOfCycle===e.partOfCycle?t.y0-e.y0:&quot;top&quot;===t.circularLinkType||&quot;bottom&quot;===e.circularLinkType?-1:1}function h(t){return t.value}function p(t){return(t.y0+t.y1)/2}function d(t){return p(t.source)}function g(t){return p(t.target)}function m(t){return t.index}function v(t){return t.nodes}function y(t){return t.links}function x(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function b(t,e){return e(t)}function _(t,e,r){var n=0;if(null===r){for(var a=[],o=0;o&lt;t.links.length;o++){var s=t.links[o],l=s.source.index,c=s.target.index;a[l]||(a[l]=[]),a[c]||(a[c]=[]),-1===a[l].indexOf(c)&amp;&amp;a[l].push(c)}var u=i(a);u.sort((function(t,e){return t.length-e.length}));var f={};for(o=0;o&lt;u.length;o++){var h=u[o].slice(-2);f[h[0]]||(f[h[0]]={}),f[h[0]][h[1]]=!0}t.links.forEach((function(t){var e=t.target.index,r=t.source.index;e===r||f[r]&amp;&amp;f[r][e]?(t.circular=!0,t.circularLinkID=n,n+=1):t.circular=!1}))}else t.links.forEach((function(t){t.source[r]&lt;t.target[r]?t.circular=!1:(t.circular=!0,t.circularLinkID=n,n+=1)}))}function w(t,e){var r=0,n=0;t.links.forEach((function(i){i.circular&amp;&amp;(i.source.circularLinkType||i.target.circularLinkType?i.circularLinkType=i.source.circularLinkType?i.source.circularLinkType:i.target.circularLinkType:i.circularLinkType=r&lt;n?&quot;top&quot;:&quot;bottom&quot;,&quot;top&quot;==i.circularLinkType?r+=1:n+=1,t.nodes.forEach((function(t){b(t,e)!=b(i.source,e)&amp;&amp;b(t,e)!=b(i.target,e)||(t.circularLinkType=i.circularLinkType)})))})),t.links.forEach((function(t){t.circular&amp;&amp;(t.source.circularLinkType==t.target.circularLinkType&amp;&amp;(t.circularLinkType=t.source.circularLinkType),H(t,e)&amp;&amp;(t.circularLinkType=t.source.circularLinkType))}))}function T(t){var e=Math.abs(t.y1-t.y0),r=Math.abs(t.target.x0-t.source.x1);return Math.atan(r/e)}function k(t,e){var r=0;t.sourceLinks.forEach((function(t){r=t.circular&amp;&amp;!H(t,e)?r+1:r}));var n=0;return t.targetLinks.forEach((function(t){n=t.circular&amp;&amp;!H(t,e)?n+1:n})),r+n}function M(t){var e=t.source.sourceLinks,r=0;e.forEach((function(t){r=t.circular?r+1:r}));var n=t.target.targetLinks,i=0;return n.forEach((function(t){i=t.circular?i+1:i})),!(r&gt;1||i&gt;1)}function A(t,e,r){return t.sort(E),t.forEach((function(n,i){var a,o,s=0;if(H(n,r)&amp;&amp;M(n))n.circularPathData.verticalBuffer=s+n.width/2;else{for(var l=0;l&lt;i;l++)if(a=t[i],o=t[l],!(a.source.column&lt;o.target.column||a.target.column&gt;o.source.column)){var c=t[l].circularPathData.verticalBuffer+t[l].width/2+e;s=c&gt;s?c:s}n.circularPathData.verticalBuffer=s+n.width/2}})),t}function S(t,r,i,a){var o=e.min(t.links,(function(t){return t.source.y0}));t.links.forEach((function(t){t.circular&amp;&amp;(t.circularPathData={})})),A(t.links.filter((function(t){return&quot;top&quot;==t.circularLinkType})),r,a),A(t.links.filter((function(t){return&quot;bottom&quot;==t.circularLinkType})),r,a),t.links.forEach((function(e){if(e.circular){if(e.circularPathData.arcRadius=e.width+10,e.circularPathData.leftNodeBuffer=5,e.circularPathData.rightNodeBuffer=5,e.circularPathData.sourceWidth=e.source.x1-e.source.x0,e.circularPathData.sourceX=e.source.x0+e.circularPathData.sourceWidth,e.circularPathData.targetX=e.target.x0,e.circularPathData.sourceY=e.y0,e.circularPathData.targetY=e.y1,H(e,a)&amp;&amp;M(e))e.circularPathData.leftSmallArcRadius=10+e.width/2,e.circularPathData.leftLargeArcRadius=10+e.width/2,e.circularPathData.rightSmallArcRadius=10+e.width/2,e.circularPathData.rightLargeArcRadius=10+e.width/2,&quot;bottom&quot;==e.circularLinkType?(e.circularPathData.verticalFullExtent=e.source.y1+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=e.source.y0-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius);else{var s=e.source.column,l=e.circularLinkType,c=t.links.filter((function(t){return t.source.column==s&amp;&amp;t.circularLinkType==l}));&quot;bottom&quot;==e.circularLinkType?c.sort(L):c.sort(C);var u=0;c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&amp;&amp;(e.circularPathData.leftSmallArcRadius=10+e.width/2+u,e.circularPathData.leftLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),s=e.target.column,c=t.links.filter((function(t){return t.target.column==s&amp;&amp;t.circularLinkType==l})),&quot;bottom&quot;==e.circularLinkType?c.sort(P):c.sort(I),u=0,c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&amp;&amp;(e.circularPathData.rightSmallArcRadius=10+e.width/2+u,e.circularPathData.rightLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),&quot;bottom&quot;==e.circularLinkType?(e.circularPathData.verticalFullExtent=Math.max(i,e.source.y1,e.target.y1)+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=o-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius)}e.circularPathData.leftInnerExtent=e.circularPathData.sourceX+e.circularPathData.leftNodeBuffer,e.circularPathData.rightInnerExtent=e.circularPathData.targetX-e.circularPathData.rightNodeBuffer,e.circularPathData.leftFullExtent=e.circularPathData.sourceX+e.circularPathData.leftLargeArcRadius+e.circularPathData.leftNodeBuffer,e.circularPathData.rightFullExtent=e.circularPathData.targetX-e.circularPathData.rightLargeArcRadius-e.circularPathData.rightNodeBuffer}if(e.circular)e.path=function(t){var e=&quot;&quot;;e=&quot;top&quot;==t.circularLinkType?&quot;M&quot;+t.circularPathData.sourceX+&quot; &quot;+t.circularPathData.sourceY+&quot; L&quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.sourceY+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftSmallArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.leftFullExtent+&quot; &quot;+(t.circularPathData.sourceY-t.circularPathData.leftSmallArcRadius)+&quot; L&quot;+t.circularPathData.leftFullExtent+&quot; &quot;+t.circularPathData.verticalLeftInnerExtent+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftLargeArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; L&quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightLargeArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.rightFullExtent+&quot; &quot;+t.circularPathData.verticalRightInnerExtent+&quot; L&quot;+t.circularPathData.rightFullExtent+&quot; &quot;+(t.circularPathData.targetY-t.circularPathData.rightSmallArcRadius)+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightSmallArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.targetY+&quot; L&quot;+t.circularPathData.targetX+&quot; &quot;+t.circularPathData.targetY:&quot;M&quot;+t.circularPathData.sourceX+&quot; &quot;+t.circularPathData.sourceY+&quot; L&quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.sourceY+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftSmallArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.leftFullExtent+&quot; &quot;+(t.circularPathData.sourceY+t.circularPathData.leftSmallArcRadius)+&quot; L&quot;+t.circularPathData.leftFullExtent+&quot; &quot;+t.circularPathData.verticalLeftInnerExtent+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftLargeArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; L&quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightLargeArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.rightFullExtent+&quot; &quot;+t.circularPathData.verticalRightInnerExtent+&quot; L&quot;+t.circularPathData.rightFullExtent+&quot; &quot;+(t.circularPathData.targetY+t.circularPathData.rightSmallArcRadius)+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightSmallArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.targetY+&quot; L&quot;+t.circularPathData.targetX+&quot; &quot;+t.circularPathData.targetY;return e}(e);else{var f=n.linkHorizontal().source((function(t){return[t.source.x0+(t.source.x1-t.source.x0),t.y0]})).target((function(t){return[t.target.x0,t.y1]}));e.path=f(e)}}))}function E(t,e){return z(t)==z(e)?&quot;bottom&quot;==t.circularLinkType?L(t,e):C(t,e):z(e)-z(t)}function C(t,e){return t.y0-e.y0}function L(t,e){return e.y0-t.y0}function I(t,e){return t.y1-e.y1}function P(t,e){return e.y1-t.y1}function z(t){return t.target.column-t.source.column}function O(t){return t.target.x0-t.source.x1}function D(t,e){var r=T(t),n=O(e)/Math.tan(r);return&quot;up&quot;==q(t)?t.y1+n:t.y1-n}function R(t,e){var r=T(t),n=O(e)/Math.tan(r);return&quot;up&quot;==q(t)?t.y1-n:t.y1+n}function F(t,e,r,n){t.links.forEach((function(i){if(!i.circular&amp;&amp;i.target.column-i.source.column&gt;1){var a=i.source.column+1,o=i.target.column-1,s=1,l=o-a+1;for(s=1;a&lt;=o;a++,s++)t.nodes.forEach((function(o){if(o.column==a){var c,u=s/(l+1),f=Math.pow(1-u,3),h=3*u*Math.pow(1-u,2),p=3*Math.pow(u,2)*(1-u),d=Math.pow(u,3),g=f*i.y0+h*i.y0+p*i.y1+d*i.y1,m=g-i.width/2,v=g+i.width/2;m&gt;o.y0&amp;&amp;m&lt;o.y1?(c=o.y1-m+10,c=&quot;bottom&quot;==o.circularLinkType?c:-c,o=N(o,c,e,r),t.nodes.forEach((function(t){b(t,n)!=b(o,n)&amp;&amp;t.column==o.column&amp;&amp;B(o,t)&amp;&amp;N(t,c,e,r)}))):(v&gt;o.y0&amp;&amp;v&lt;o.y1||m&lt;o.y0&amp;&amp;v&gt;o.y1)&amp;&amp;(c=v-o.y0+10,o=N(o,c,e,r),t.nodes.forEach((function(t){b(t,n)!=b(o,n)&amp;&amp;t.column==o.column&amp;&amp;t.y0&lt;o.y1&amp;&amp;t.y1&gt;o.y1&amp;&amp;N(t,c,e,r)})))}}))}}))}function B(t,e){return t.y0&gt;e.y0&amp;&amp;t.y0&lt;e.y1||(t.y1&gt;e.y0&amp;&amp;t.y1&lt;e.y1||t.y0&lt;e.y0&amp;&amp;t.y1&gt;e.y1)}function N(t,e,r,n){return t.y0+e&gt;=r&amp;&amp;t.y1+e&lt;=n&amp;&amp;(t.y0=t.y0+e,t.y1=t.y1+e,t.targetLinks.forEach((function(t){t.y1=t.y1+e})),t.sourceLinks.forEach((function(t){t.y0=t.y0+e}))),t}function j(t,e,r,n){t.nodes.forEach((function(i){n&amp;&amp;i.y+(i.y1-i.y0)&gt;e&amp;&amp;(i.y=i.y-(i.y+(i.y1-i.y0)-e));var a=t.links.filter((function(t){return b(t.source,r)==b(i,r)})),o=a.length;o&gt;1&amp;&amp;a.sort((function(t,e){if(!t.circular&amp;&amp;!e.circular){if(t.target.column==e.target.column)return t.y1-e.y1;if(!V(t,e))return t.y1-e.y1;if(t.target.column&gt;e.target.column){var r=R(e,t);return t.y1-r}if(e.target.column&gt;t.target.column)return R(t,e)-e.y1}return t.circular&amp;&amp;!e.circular?&quot;top&quot;==t.circularLinkType?-1:1:e.circular&amp;&amp;!t.circular?&quot;top&quot;==e.circularLinkType?1:-1:t.circular&amp;&amp;e.circular?t.circularLinkType===e.circularLinkType&amp;&amp;&quot;top&quot;==t.circularLinkType?t.target.column===e.target.column?t.target.y1-e.target.y1:e.target.column-t.target.column:t.circularLinkType===e.circularLinkType&amp;&amp;&quot;bottom&quot;==t.circularLinkType?t.target.column===e.target.column?e.target.y1-t.target.y1:t.target.column-e.target.column:&quot;top&quot;==t.circularLinkType?-1:1:void 0}));var s=i.y0;a.forEach((function(t){t.y0=s+t.width/2,s+=t.width})),a.forEach((function(t,e){if(&quot;bottom&quot;==t.circularLinkType){for(var r=e+1,n=0;r&lt;o;r++)n+=a[r].width;t.y0=i.y1-n-t.width/2}}))}))}function U(t,e,r){t.nodes.forEach((function(e){var n=t.links.filter((function(t){return b(t.target,r)==b(e,r)})),i=n.length;i&gt;1&amp;&amp;n.sort((function(t,e){if(!t.circular&amp;&amp;!e.circular){if(t.source.column==e.source.column)return t.y0-e.y0;if(!V(t,e))return t.y0-e.y0;if(e.source.column&lt;t.source.column){var r=D(e,t);return t.y0-r}if(t.source.column&lt;e.source.column)return D(t,e)-e.y0}return t.circular&amp;&amp;!e.circular?&quot;top&quot;==t.circularLinkType?-1:1:e.circular&amp;&amp;!t.circular?&quot;top&quot;==e.circularLinkType?1:-1:t.circular&amp;&amp;e.circular?t.circularLinkType===e.circularLinkType&amp;&amp;&quot;top&quot;==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:t.source.column-e.source.column:t.circularLinkType===e.circularLinkType&amp;&amp;&quot;bottom&quot;==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:e.source.column-t.source.column:&quot;top&quot;==t.circularLinkType?-1:1:void 0}));var a=e.y0;n.forEach((function(t){t.y1=a+t.width/2,a+=t.width})),n.forEach((function(t,r){if(&quot;bottom&quot;==t.circularLinkType){for(var a=r+1,o=0;a&lt;i;a++)o+=n[a].width;t.y1=e.y1-o-t.width/2}}))}))}function V(t,e){return q(t)==q(e)}function q(t){return t.y0-t.y1&gt;0?&quot;up&quot;:&quot;down&quot;}function H(t,e){return b(t.source,e)==b(t.target,e)}function G(t,r,n){var i=t.nodes,a=t.links,o=!1,s=!1;if(a.forEach((function(t){&quot;top&quot;==t.circularLinkType?o=!0:&quot;bottom&quot;==t.circularLinkType&amp;&amp;(s=!0)})),0==o||0==s){var l=e.min(i,(function(t){return t.y0})),c=(n-r)/(e.max(i,(function(t){return t.y1}))-l);i.forEach((function(t){var e=(t.y1-t.y0)*c;t.y0=(t.y0-l)*c,t.y1=t.y0+e})),a.forEach((function(t){t.y0=(t.y0-l)*c,t.y1=(t.y1-l)*c,t.width=t.width*c}))}}t.sankeyCircular=function(){var t,n,i=0,a=0,b=1,T=1,M=24,A=m,E=o,C=v,L=y,I=32,P=2,z=null;function O(){var t={nodes:C.apply(null,arguments),links:L.apply(null,arguments)};D(t),_(t,A,z),R(t),B(t),w(t,A),N(t,I,A),V(t);for(var e=4,r=0;r&lt;e;r++)j(t,T,A),U(t,T,A),F(t,a,T,A),j(t,T,A),U(t,T,A);return G(t,a,T),S(t,P,T,A),t}function D(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,A);return t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;&quot;object&quot;!==(&quot;undefined&quot;==typeof n?&quot;undefined&quot;:l(n))&amp;&amp;(n=t.source=x(e,n)),&quot;object&quot;!==(&quot;undefined&quot;==typeof i?&quot;undefined&quot;:l(i))&amp;&amp;(i=t.target=x(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)})),t}function R(t){t.nodes.forEach((function(t){t.partOfCycle=!1,t.value=Math.max(e.sum(t.sourceLinks,h),e.sum(t.targetLinks,h)),t.sourceLinks.forEach((function(e){e.circular&amp;&amp;(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)})),t.targetLinks.forEach((function(e){e.circular&amp;&amp;(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)}))}))}function B(t){var e,r,n;for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.depth=n,t.sourceLinks.forEach((function(t){r.indexOf(t.target)&lt;0&amp;&amp;!t.circular&amp;&amp;r.push(t.target)}))}));for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.height=n,t.targetLinks.forEach((function(t){r.indexOf(t.source)&lt;0&amp;&amp;!t.circular&amp;&amp;r.push(t.source)}))}));t.nodes.forEach((function(t){t.column=Math.floor(E.call(null,t,n))}))}function N(o,s,l){var c=r.nest().key((function(t){return t.column})).sortKeys(e.ascending).entries(o.nodes).map((function(t){return t.values}));!function(r){if(n){var s=1/0;c.forEach((function(t){var e=T*n/(t.length+1);s=e&lt;s?e:s})),t=s}var l=e.min(c,(function(r){return(T-a-(r.length-1)*t)/e.sum(r,h)}));l*=.3,o.links.forEach((function(t){t.width=t.value*l}));var u=function(t){var r=0,n=0,i=0,a=0,o=e.max(t.nodes,(function(t){return t.column}));return t.links.forEach((function(t){t.circular&amp;&amp;(&quot;top&quot;==t.circularLinkType?r+=t.width:n+=t.width,0==t.target.column&amp;&amp;(a+=t.width),t.source.column==o&amp;&amp;(i+=t.width))})),{top:r=r&gt;0?r+25+10:r,bottom:n=n&gt;0?n+25+10:n,left:a=a&gt;0?a+25+10:a,right:i=i&gt;0?i+25+10:i}}(o),f=function(t,r){var n=e.max(t.nodes,(function(t){return t.column})),o=b-i,s=T-a,l=o/(o+r.right+r.left),c=s/(s+r.top+r.bottom);return i=i*l+r.left,b=0==r.right?b:b*l,a=a*c+r.top,T*=c,t.nodes.forEach((function(t){t.x0=i+t.column*((b-i-M)/n),t.x1=t.x0+M})),c}(o,u);l*=f,o.links.forEach((function(t){t.width=t.value*l})),c.forEach((function(t){var e=t.length;t.forEach((function(t,n){t.depth==c.length-1&amp;&amp;1==e||0==t.depth&amp;&amp;1==e?(t.y0=T/2-t.value*l,t.y1=t.y0+t.value*l):t.partOfCycle?0==k(t,r)?(t.y0=T/2+n,t.y1=t.y0+t.value*l):&quot;top&quot;==t.circularLinkType?(t.y0=a+n,t.y1=t.y0+t.value*l):(t.y0=T-t.value*l-n,t.y1=t.y0+t.value*l):0==u.top||0==u.bottom?(t.y0=(T-a)/e*n,t.y1=t.y0+t.value*l):(t.y0=(T-a)/2-e/2+n,t.y1=t.y0+t.value*l)}))}))}(l),y();for(var u=1,m=s;m&gt;0;--m)v(u*=.99,l),y();function v(t,r){var n=c.length;c.forEach((function(i){var a=i.length,o=i[0].depth;i.forEach((function(i){var s;if(i.sourceLinks.length||i.targetLinks.length)if(i.partOfCycle&amp;&amp;k(i,r)&gt;0);else if(0==o&amp;&amp;1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else if(o==n-1&amp;&amp;1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else{var l=e.mean(i.sourceLinks,g),c=e.mean(i.targetLinks,d),u=((l&amp;&amp;c?(l+c)/2:l||c)-p(i))*t;i.y0+=u,i.y1+=u}}))}))}function y(){c.forEach((function(e){var r,n,i,o=a,s=e.length;for(e.sort(f),i=0;i&lt;s;++i)(n=o-(r=e[i]).y0)&gt;0&amp;&amp;(r.y0+=n,r.y1+=n),o=r.y1+t;if((n=o-t-T)&gt;0)for(o=r.y0-=n,r.y1-=n,i=s-2;i&gt;=0;--i)(n=(r=e[i]).y1+t-o)&gt;0&amp;&amp;(r.y0-=n,r.y1-=n),o=r.y0}))}}function V(t){t.nodes.forEach((function(t){t.sourceLinks.sort(u),t.targetLinks.sort(c)})),t.nodes.forEach((function(t){var e=t.y0,r=e,n=t.y1,i=n;t.sourceLinks.forEach((function(t){t.circular?(t.y0=n-t.width/2,n-=t.width):(t.y0=e+t.width/2,e+=t.width)})),t.targetLinks.forEach((function(t){t.circular?(t.y1=i-t.width/2,i-=t.width):(t.y1=r+t.width/2,r+=t.width)}))}))}return O.nodeId=function(t){return arguments.length?(A=&quot;function&quot;==typeof t?t:s(t),O):A},O.nodeAlign=function(t){return arguments.length?(E=&quot;function&quot;==typeof t?t:s(t),O):E},O.nodeWidth=function(t){return arguments.length?(M=+t,O):M},O.nodePadding=function(e){return arguments.length?(t=+e,O):t},O.nodes=function(t){return arguments.length?(C=&quot;function&quot;==typeof t?t:s(t),O):C},O.links=function(t){return arguments.length?(L=&quot;function&quot;==typeof t?t:s(t),O):L},O.size=function(t){return arguments.length?(i=a=0,b=+t[0],T=+t[1],O):[b-i,T-a]},O.extent=function(t){return arguments.length?(i=+t[0][0],b=+t[1][0],a=+t[0][1],T=+t[1][1],O):[[i,a],[b,T]]},O.iterations=function(t){return arguments.length?(I=+t,O):I},O.circularLinkGap=function(t){return arguments.length?(P=+t,O):P},O.nodePaddingRatio=function(t){return arguments.length?(n=+t,O):n},O.sortNodes=function(t){return arguments.length?(z=t,O):z},O.update=function(t){return w(t,A),V(t),t.links.forEach((function(t){t.circular&amp;&amp;(t.circularLinkType=t.y0+t.y1&lt;T?&quot;top&quot;:&quot;bottom&quot;,t.source.circularLinkType=t.circularLinkType,t.target.circularLinkType=t.circularLinkType)})),j(t,T,A,!1),U(t,T,A),S(t,P,T,A),t},O},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,a)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=o,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:156,&quot;d3-collection&quot;:157,&quot;d3-shape&quot;:165,&quot;elementary-circuits-directed-graph&quot;:179}],56:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-array&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-shape&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3)}(this,(function(t,e,r,n){&quot;use strict&quot;;function i(t){return t.target.depth}function a(t,e){return t.sourceLinks.length?t.depth:e-1}function o(t){return function(){return t}}function s(t,e){return c(t.source,e.source)||t.index-e.index}function l(t,e){return c(t.target,e.target)||t.index-e.index}function c(t,e){return t.y0-e.y0}function u(t){return t.value}function f(t){return(t.y0+t.y1)/2}function h(t){return f(t.source)*t.value}function p(t){return f(t.target)*t.value}function d(t){return t.index}function g(t){return t.nodes}function m(t){return t.links}function v(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function y(t){return[t.source.x1,t.y0]}function x(t){return[t.target.x0,t.y1]}t.sankey=function(){var t=0,n=0,i=1,y=1,x=24,b=8,_=d,w=a,T=g,k=m,M=32;function A(){var t={nodes:T.apply(null,arguments),links:k.apply(null,arguments)};return S(t),E(t),C(t),L(t),I(t),t}function S(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,_);t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;&quot;object&quot;!=typeof n&amp;&amp;(n=t.source=v(e,n)),&quot;object&quot;!=typeof i&amp;&amp;(i=t.target=v(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)}))}function E(t){t.nodes.forEach((function(t){t.value=Math.max(e.sum(t.sourceLinks,u),e.sum(t.targetLinks,u))}))}function C(e){var r,n,a;for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.depth=a,t.sourceLinks.forEach((function(t){n.indexOf(t.target)&lt;0&amp;&amp;n.push(t.target)}))}));for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.height=a,t.targetLinks.forEach((function(t){n.indexOf(t.source)&lt;0&amp;&amp;n.push(t.source)}))}));var o=(i-t-x)/(a-1);e.nodes.forEach((function(e){e.x1=(e.x0=t+Math.max(0,Math.min(a-1,Math.floor(w.call(null,e,a))))*o)+x}))}function L(t){var i=r.nest().key((function(t){return t.x0})).sortKeys(e.ascending).entries(t.nodes).map((function(t){return t.values}));!function(){var r=e.max(i,(function(t){return t.length})),a=2/3*(y-n)/(r-1);b&gt;a&amp;&amp;(b=a);var o=e.min(i,(function(t){return(y-n-(t.length-1)*b)/e.sum(t,u)}));i.forEach((function(t){t.forEach((function(t,e){t.y1=(t.y0=e)+t.value*o}))})),t.links.forEach((function(t){t.width=t.value*o}))}(),d();for(var a=1,o=M;o&gt;0;--o)l(a*=.99),d(),s(a),d();function s(t){i.forEach((function(r){r.forEach((function(r){if(r.targetLinks.length){var n=(e.sum(r.targetLinks,h)/e.sum(r.targetLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function l(t){i.slice().reverse().forEach((function(r){r.forEach((function(r){if(r.sourceLinks.length){var n=(e.sum(r.sourceLinks,p)/e.sum(r.sourceLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function d(){i.forEach((function(t){var e,r,i,a=n,o=t.length;for(t.sort(c),i=0;i&lt;o;++i)(r=a-(e=t[i]).y0)&gt;0&amp;&amp;(e.y0+=r,e.y1+=r),a=e.y1+b;if((r=a-b-y)&gt;0)for(a=e.y0-=r,e.y1-=r,i=o-2;i&gt;=0;--i)(r=(e=t[i]).y1+b-a)&gt;0&amp;&amp;(e.y0-=r,e.y1-=r),a=e.y0}))}}function I(t){t.nodes.forEach((function(t){t.sourceLinks.sort(l),t.targetLinks.sort(s)})),t.nodes.forEach((function(t){var e=t.y0,r=e;t.sourceLinks.forEach((function(t){t.y0=e+t.width/2,e+=t.width})),t.targetLinks.forEach((function(t){t.y1=r+t.width/2,r+=t.width}))}))}return A.update=function(t){return I(t),t},A.nodeId=function(t){return arguments.length?(_=&quot;function&quot;==typeof t?t:o(t),A):_},A.nodeAlign=function(t){return arguments.length?(w=&quot;function&quot;==typeof t?t:o(t),A):w},A.nodeWidth=function(t){return arguments.length?(x=+t,A):x},A.nodePadding=function(t){return arguments.length?(b=+t,A):b},A.nodes=function(t){return arguments.length?(T=&quot;function&quot;==typeof t?t:o(t),A):T},A.links=function(t){return arguments.length?(k=&quot;function&quot;==typeof t?t:o(t),A):k},A.size=function(e){return arguments.length?(t=n=0,i=+e[0],y=+e[1],A):[i-t,y-n]},A.extent=function(e){return arguments.length?(t=+e[0][0],i=+e[1][0],n=+e[0][1],y=+e[1][1],A):[[t,n],[i,y]]},A.iterations=function(t){return arguments.length?(M=+t,A):M},A},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,i)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=a,t.sankeyLinkHorizontal=function(){return n.linkHorizontal().source(y).target(x)},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:156,&quot;d3-collection&quot;:157,&quot;d3-shape&quot;:165}],57:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./quad&quot;)},{&quot;./quad&quot;:58}],58:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;clamp&quot;),a=t(&quot;parse-rect&quot;),o=t(&quot;array-bounds&quot;),s=t(&quot;pick-by-alias&quot;),l=t(&quot;defined&quot;),c=t(&quot;flatten-vertex-data&quot;),u=t(&quot;is-obj&quot;),f=t(&quot;dtype&quot;),h=t(&quot;math-log2&quot;);function p(t,e){for(var r=e[0],n=e[1],a=1/(e[2]-r),o=1/(e[3]-n),s=new Array(t.length),l=0,c=t.length/2;l&lt;c;l++)s[2*l]=i((t[2*l]-r)*a,0,1),s[2*l+1]=i((t[2*l+1]-n)*o,0,1);return s}e.exports=function(t,e){e||(e={}),t=c(t,&quot;float64&quot;),e=s(e,{bounds:&quot;range bounds dataBox databox&quot;,maxDepth:&quot;depth maxDepth maxdepth level maxLevel maxlevel levels&quot;,dtype:&quot;type dtype format out dst output destination&quot;});var r=l(e.maxDepth,255),i=l(e.bounds,o(t,2));i[0]===i[2]&amp;&amp;i[2]++,i[1]===i[3]&amp;&amp;i[3]++;var d,g=p(t,i),m=t.length&gt;&gt;&gt;1;e.dtype||(e.dtype=&quot;array&quot;),&quot;string&quot;==typeof e.dtype?d=new(f(e.dtype))(m):e.dtype&amp;&amp;(d=e.dtype,Array.isArray(d)&amp;&amp;(d.length=m));for(var v=0;v&lt;m;++v)d[v]=v;var y=[],x=[],b=[],_=[];!function t(e,n,i,a,o,s){if(!a.length)return null;var l=y[o]||(y[o]=[]),c=b[o]||(b[o]=[]),u=x[o]||(x[o]=[]),f=l.length;if(++o&gt;r||s&gt;1073741824){for(var h=0;h&lt;a.length;h++)l.push(a[h]),c.push(s),u.push(null,null,null,null);return f}if(l.push(a[0]),c.push(s),a.length&lt;=1)return u.push(null,null,null,null),f;for(var p=.5*i,d=e+p,m=n+p,v=[],_=[],w=[],T=[],k=1,M=a.length;k&lt;M;k++){var A=a[k],S=g[2*A],E=g[2*A+1];S&lt;d?E&lt;m?v.push(A):_.push(A):E&lt;m?w.push(A):T.push(A)}return s&lt;&lt;=2,u.push(t(e,n,p,v,o,s),t(e,m,p,_,o,s+1),t(d,n,p,w,o,s+2),t(d,m,p,T,o,s+3)),f}(0,0,1,d,0,1);for(var w=0,T=0;T&lt;y.length;T++){var k=y[T];if(d.set)d.set(k,w);else for(var M=0,A=k.length;M&lt;A;M++)d[M+w]=k[M];var S=w+y[T].length;_[T]=[w,S],w=S}return d.range=function(){var e,r=[],n=arguments.length;for(;n--;)r[n]=arguments[n];if(u(r[r.length-1])){var o=r.pop();r.length||null==o.x&amp;&amp;null==o.l&amp;&amp;null==o.left||(r=[o],e={}),e=s(o,{level:&quot;level maxLevel&quot;,d:&quot;d diam diameter r radius px pxSize pixel pixelSize maxD size minSize&quot;,lod:&quot;lod details ranges offsets&quot;})}else e={};r.length||(r=i);var c=a.apply(void 0,r),f=[Math.min(c.x,c.x+c.width),Math.min(c.y,c.y+c.height),Math.max(c.x,c.x+c.width),Math.max(c.y,c.y+c.height)],d=f[0],g=f[1],m=f[2],v=f[3],b=p([d,g,m,v],i),_=b[0],w=b[1],T=b[2],k=b[3],M=l(e.level,y.length);if(null!=e.d){var A;&quot;number&quot;==typeof e.d?A=[e.d,e.d]:e.d.length&amp;&amp;(A=e.d),M=Math.min(Math.max(Math.ceil(-h(Math.abs(A[0])/(i[2]-i[0]))),Math.ceil(-h(Math.abs(A[1])/(i[3]-i[1])))),M)}if(M=Math.min(M,y.length),e.lod)return E(_,w,T,k,M);var S=[];function C(e,r,n,i,a,o){if(null!==a&amp;&amp;null!==o&amp;&amp;!(_&gt;e+n||w&gt;r+n||T&lt;e||k&lt;r||i&gt;=M||a===o)){var s=y[i];void 0===o&amp;&amp;(o=s.length);for(var l=a;l&lt;o;l++){var c=s[l],u=t[2*c],f=t[2*c+1];u&gt;=d&amp;&amp;u&lt;=m&amp;&amp;f&gt;=g&amp;&amp;f&lt;=v&amp;&amp;S.push(c)}var h=x[i],p=h[4*a+0],b=h[4*a+1],A=h[4*a+2],E=h[4*a+3],I=L(h,a+1),P=.5*n,z=i+1;C(e,r,P,z,p,b||A||E||I),C(e,r+P,P,z,b,A||E||I),C(e+P,r,P,z,A,E||I),C(e+P,r+P,P,z,E,I)}}function L(t,e){for(var r=null,n=0;null===r;)if(r=t[4*e+n],++n&gt;t.length)return null;return r}return C(0,0,1,0,0,1),S},d;function E(t,e,r,i,a){for(var o=[],s=0;s&lt;a;s++){var l=b[s],c=_[s][0],u=C(t,e,s),f=C(r,i,s),h=n.ge(l,u),p=n.gt(l,f,h,l.length-1);o[s]=[h+c,p+c]}return o}function C(t,e,r){for(var n=1,i=.5,a=.5,o=.5,s=0;s&lt;r;s++)n&lt;&lt;=2,n+=t&lt;i?e&lt;a?0:1:e&lt;a?2:3,o*=.5,i+=t&lt;i?-o:o,a+=e&lt;a?-o:o;return n}}},{&quot;array-bounds&quot;:70,&quot;binary-search-bounds&quot;:96,clamp:120,defined:170,dtype:175,&quot;flatten-vertex-data&quot;:244,&quot;is-obj&quot;:468,&quot;math-log2&quot;:479,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511}],59:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;);function i(t){var e=0;if(t&amp;&amp;t.length&gt;0){e+=Math.abs(a(t[0]));for(var r=1;r&lt;t.length;r++)e-=Math.abs(a(t[r]))}return e}function a(t){var e,r,n,i,a,s,l=0,c=t.length;if(c&gt;2){for(s=0;s&lt;c;s++)s===c-2?(n=c-2,i=c-1,a=0):s===c-1?(n=c-1,i=0,a=1):(n=s,i=s+1,a=s+2),e=t[n],r=t[i],l+=(o(t[a][0])-o(e[0]))*Math.sin(o(r[1]));l=6378137*l*6378137/2}return l}function o(t){return t*Math.PI/180}r.default=function(t){return n.geomReduce(t,(function(t,e){return t+function(t){var e,r=0;switch(t.type){case&quot;Polygon&quot;:return i(t.coordinates);case&quot;MultiPolygon&quot;:for(e=0;e&lt;t.coordinates.length;e++)r+=i(t.coordinates[e]);return r;case&quot;Point&quot;:case&quot;MultiPoint&quot;:case&quot;LineString&quot;:case&quot;MultiLineString&quot;:return 0}return 0}(e)}),0)}},{&quot;@turf/meta&quot;:63}],60:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;);r.default=function(t){var e=[1/0,1/0,-1/0,-1/0];return n.coordEach(t,(function(t){e[0]&gt;t[0]&amp;&amp;(e[0]=t[0]),e[1]&gt;t[1]&amp;&amp;(e[1]=t[1]),e[2]&lt;t[0]&amp;&amp;(e[2]=t[0]),e[3]&lt;t[1]&amp;&amp;(e[3]=t[1])})),e}},{&quot;@turf/meta&quot;:63}],61:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;),i=t(&quot;@turf/helpers&quot;);r.default=function(t,e){void 0===e&amp;&amp;(e={});var r=0,a=0,o=0;return n.coordEach(t,(function(t){r+=t[0],a+=t[1],o++})),i.point([r/o,a/o],e.properties)}},{&quot;@turf/helpers&quot;:62,&quot;@turf/meta&quot;:63}],62:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){void 0===r&amp;&amp;(r={});var n={type:&quot;Feature&quot;};return(0===r.id||r.id)&amp;&amp;(n.id=r.id),r.bbox&amp;&amp;(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function i(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;Point&quot;,coordinates:t},e,r)}function a(t,e,r){void 0===r&amp;&amp;(r={});for(var i=0,a=t;i&lt;a.length;i++){var o=a[i];if(o.length&lt;4)throw new Error(&quot;Each LinearRing of a Polygon must have 4 or more Positions.&quot;);for(var s=0;s&lt;o[o.length-1].length;s++)if(o[o.length-1][s]!==o[0][s])throw new Error(&quot;First and last Position are not equivalent.&quot;)}return n({type:&quot;Polygon&quot;,coordinates:t},e,r)}function o(t,e,r){if(void 0===r&amp;&amp;(r={}),t.length&lt;2)throw new Error(&quot;coordinates must be an array of two or more positions&quot;);return n({type:&quot;LineString&quot;,coordinates:t},e,r)}function s(t,e){void 0===e&amp;&amp;(e={});var r={type:&quot;FeatureCollection&quot;};return e.id&amp;&amp;(r.id=e.id),e.bbox&amp;&amp;(r.bbox=e.bbox),r.features=t,r}function l(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiLineString&quot;,coordinates:t},e,r)}function c(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPoint&quot;,coordinates:t},e,r)}function u(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPolygon&quot;,coordinates:t},e,r)}function f(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t*n}function h(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t/n}function p(t){return 180*(t%(2*Math.PI))/Math.PI}function d(t){return!isNaN(t)&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)&amp;&amp;!/^\s*$/.test(t)}Object.defineProperty(r,&quot;__esModule&quot;,{value:!0}),r.earthRadius=6371008.8,r.factors={centimeters:100*r.earthRadius,centimetres:100*r.earthRadius,degrees:r.earthRadius/111325,feet:3.28084*r.earthRadius,inches:39.37*r.earthRadius,kilometers:r.earthRadius/1e3,kilometres:r.earthRadius/1e3,meters:r.earthRadius,metres:r.earthRadius,miles:r.earthRadius/1609.344,millimeters:1e3*r.earthRadius,millimetres:1e3*r.earthRadius,nauticalmiles:r.earthRadius/1852,radians:1,yards:r.earthRadius/1.0936},r.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/r.earthRadius,yards:1/1.0936},r.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},r.feature=n,r.geometry=function(t,e,r){switch(void 0===r&amp;&amp;(r={}),t){case&quot;Point&quot;:return i(e).geometry;case&quot;LineString&quot;:return o(e).geometry;case&quot;Polygon&quot;:return a(e).geometry;case&quot;MultiPoint&quot;:return c(e).geometry;case&quot;MultiLineString&quot;:return l(e).geometry;case&quot;MultiPolygon&quot;:return u(e).geometry;default:throw new Error(t+&quot; is invalid&quot;)}},r.point=i,r.points=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return i(t,e)})),r)},r.polygon=a,r.polygons=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return a(t,e)})),r)},r.lineString=o,r.lineStrings=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return o(t,e)})),r)},r.featureCollection=s,r.multiLineString=l,r.multiPoint=c,r.multiPolygon=u,r.geometryCollection=function(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;GeometryCollection&quot;,geometries:t},e,r)},r.round=function(t,e){if(void 0===e&amp;&amp;(e=0),e&amp;&amp;!(e&gt;=0))throw new Error(&quot;precision must be a positive number&quot;);var r=Math.pow(10,e||0);return Math.round(t*r)/r},r.radiansToLength=f,r.lengthToRadians=h,r.lengthToDegrees=function(t,e){return p(h(t,e))},r.bearingToAzimuth=function(t){var e=t%360;return e&lt;0&amp;&amp;(e+=360),e},r.radiansToDegrees=p,r.degreesToRadians=function(t){return t%360*Math.PI/180},r.convertLength=function(t,e,r){if(void 0===e&amp;&amp;(e=&quot;kilometers&quot;),void 0===r&amp;&amp;(r=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;length must be a positive number&quot;);return f(h(t,e),r)},r.convertArea=function(t,e,n){if(void 0===e&amp;&amp;(e=&quot;meters&quot;),void 0===n&amp;&amp;(n=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;area must be a positive number&quot;);var i=r.areaFactors[e];if(!i)throw new Error(&quot;invalid original units&quot;);var a=r.areaFactors[n];if(!a)throw new Error(&quot;invalid final units&quot;);return t/i*a},r.isNumber=d,r.isObject=function(t){return!!t&amp;&amp;t.constructor===Object},r.validateBBox=function(t){if(!t)throw new Error(&quot;bbox is required&quot;);if(!Array.isArray(t))throw new Error(&quot;bbox must be an Array&quot;);if(4!==t.length&amp;&amp;6!==t.length)throw new Error(&quot;bbox must be an Array of 4 or 6 numbers&quot;);t.forEach((function(t){if(!d(t))throw new Error(&quot;bbox must only contain numbers&quot;)}))},r.validateId=function(t){if(!t)throw new Error(&quot;id is required&quot;);if(-1===[&quot;string&quot;,&quot;number&quot;].indexOf(typeof t))throw new Error(&quot;id must be a number or a string&quot;)},r.radians2degrees=function(){throw new Error(&quot;method has been renamed to `radiansToDegrees`&quot;)},r.degrees2radians=function(){throw new Error(&quot;method has been renamed to `degreesToRadians`&quot;)},r.distanceToDegrees=function(){throw new Error(&quot;method has been renamed to `lengthToDegrees`&quot;)},r.distanceToRadians=function(){throw new Error(&quot;method has been renamed to `lengthToRadians`&quot;)},r.radiansToDistance=function(){throw new Error(&quot;method has been renamed to `radiansToLength`&quot;)},r.bearingToAngle=function(){throw new Error(&quot;method has been renamed to `bearingToAzimuth`&quot;)},r.convertDistance=function(){throw new Error(&quot;method has been renamed to `convertLength`&quot;)}},{}],63:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/helpers&quot;);function i(t,e,r){if(null!==t)for(var n,a,o,s,l,c,u,f,h=0,p=0,d=t.type,g=&quot;FeatureCollection&quot;===d,m=&quot;Feature&quot;===d,v=g?t.features.length:1,y=0;y&lt;v;y++){l=(f=!!(u=g?t.features[y].geometry:m?t.geometry:t)&amp;&amp;&quot;GeometryCollection&quot;===u.type)?u.geometries.length:1;for(var x=0;x&lt;l;x++){var b=0,_=0;if(null!==(s=f?u.geometries[x]:u)){c=s.coordinates;var w=s.type;switch(h=!r||&quot;Polygon&quot;!==w&amp;&amp;&quot;MultiPolygon&quot;!==w?0:1,w){case null:break;case&quot;Point&quot;:if(!1===e(c,p,y,b,_))return!1;p++,b++;break;case&quot;LineString&quot;:case&quot;MultiPoint&quot;:for(n=0;n&lt;c.length;n++){if(!1===e(c[n],p,y,b,_))return!1;p++,&quot;MultiPoint&quot;===w&amp;&amp;b++}&quot;LineString&quot;===w&amp;&amp;b++;break;case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:for(n=0;n&lt;c.length;n++){for(a=0;a&lt;c[n].length-h;a++){if(!1===e(c[n][a],p,y,b,_))return!1;p++}&quot;MultiLineString&quot;===w&amp;&amp;b++,&quot;Polygon&quot;===w&amp;&amp;_++}&quot;Polygon&quot;===w&amp;&amp;b++;break;case&quot;MultiPolygon&quot;:for(n=0;n&lt;c.length;n++){for(_=0,a=0;a&lt;c[n].length;a++){for(o=0;o&lt;c[n][a].length-h;o++){if(!1===e(c[n][a][o],p,y,b,_))return!1;p++}_++}b++}break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;s.geometries.length;n++)if(!1===i(s.geometries[n],e,r))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}}}}}function a(t,e){var r;switch(t.type){case&quot;FeatureCollection&quot;:for(r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r].properties,r);r++);break;case&quot;Feature&quot;:e(t.properties,0)}}function o(t,e){if(&quot;Feature&quot;===t.type)e(t,0);else if(&quot;FeatureCollection&quot;===t.type)for(var r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r],r);r++);}function s(t,e){var r,n,i,a,o,s,l,c,u,f,h=0,p=&quot;FeatureCollection&quot;===t.type,d=&quot;Feature&quot;===t.type,g=p?t.features.length:1;for(r=0;r&lt;g;r++){for(s=p?t.features[r].geometry:d?t.geometry:t,c=p?t.features[r].properties:d?t.properties:{},u=p?t.features[r].bbox:d?t.bbox:void 0,f=p?t.features[r].id:d?t.id:void 0,o=(l=!!s&amp;&amp;&quot;GeometryCollection&quot;===s.type)?s.geometries.length:1,i=0;i&lt;o;i++)if(null!==(a=l?s.geometries[i]:s))switch(a.type){case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;MultiPoint&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:if(!1===e(a,h,c,u,f))return!1;break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;a.geometries.length;n++)if(!1===e(a.geometries[n],h,c,u,f))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}else if(!1===e(null,h,c,u,f))return!1;h++}}function l(t,e){s(t,(function(t,r,i,a,o){var s,l=null===t?null:t.type;switch(l){case null:case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;Polygon&quot;:return!1!==e(n.feature(t,i,{bbox:a,id:o}),r,0)&amp;&amp;void 0}switch(l){case&quot;MultiPoint&quot;:s=&quot;Point&quot;;break;case&quot;MultiLineString&quot;:s=&quot;LineString&quot;;break;case&quot;MultiPolygon&quot;:s=&quot;Polygon&quot;}for(var c=0;c&lt;t.coordinates.length;c++){var u={type:s,coordinates:t.coordinates[c]};if(!1===e(n.feature(u,i),r,c))return!1}}))}function c(t,e){l(t,(function(t,r,a){var o=0;if(t.geometry){var s=t.geometry.type;if(&quot;Point&quot;!==s&amp;&amp;&quot;MultiPoint&quot;!==s){var l,c=0,u=0,f=0;return!1!==i(t,(function(i,s,h,p,d){if(void 0===l||r&gt;c||p&gt;u||d&gt;f)return l=i,c=r,u=p,f=d,void(o=0);var g=n.lineString([l,i],t.properties);if(!1===e(g,r,a,d,o))return!1;o++,l=i}))&amp;&amp;void 0}}}))}function u(t,e){if(!t)throw new Error(&quot;geojson is required&quot;);l(t,(function(t,r,i){if(null!==t.geometry){var a=t.geometry.type,o=t.geometry.coordinates;switch(a){case&quot;LineString&quot;:if(!1===e(t,r,i,0,0))return!1;break;case&quot;Polygon&quot;:for(var s=0;s&lt;o.length;s++)if(!1===e(n.lineString(o[s],t.properties),r,i,s))return!1}}}))}r.coordEach=i,r.coordReduce=function(t,e,r,n){var a=r;return i(t,(function(t,n,i,o,s){a=0===n&amp;&amp;void 0===r?t:e(a,t,n,i,o,s)}),n),a},r.propEach=a,r.propReduce=function(t,e,r){var n=r;return a(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.featureEach=o,r.featureReduce=function(t,e,r){var n=r;return o(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.coordAll=function(t){var e=[];return i(t,(function(t){e.push(t)})),e},r.geomEach=s,r.geomReduce=function(t,e,r){var n=r;return s(t,(function(t,i,a,o,s){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o,s)})),n},r.flattenEach=l,r.flattenReduce=function(t,e,r){var n=r;return l(t,(function(t,i,a){n=0===i&amp;&amp;0===a&amp;&amp;void 0===r?t:e(n,t,i,a)})),n},r.segmentEach=c,r.segmentReduce=function(t,e,r){var n=r,i=!1;return c(t,(function(t,a,o,s,l){n=!1===i&amp;&amp;void 0===r?t:e(n,t,a,o,s,l),i=!0})),n},r.lineEach=u,r.lineReduce=function(t,e,r){var n=r;return u(t,(function(t,i,a,o){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o)})),n},r.findSegment=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.segmentIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s-1),n.lineString([c[s],c[s+1]],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s-1),n.lineString([c[o][s],c[o][s+1]],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s-1),n.lineString([c[a][s],c[a][s+1]],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s-1),n.lineString([c[a][o][s],c[a][o][s+1]],l,e)}throw new Error(&quot;geojson is invalid&quot;)},r.findPoint=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.coordIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:return n.point(c,l,e);case&quot;MultiPoint&quot;:return a&lt;0&amp;&amp;(a=c.length+a),n.point(c[a],l,e);case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s),n.point(c[s],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s),n.point(c[o][s],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s),n.point(c[a][s],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s),n.point(c[a][o][s],l,e)}throw new Error(&quot;geojson is invalid&quot;)}},{&quot;@turf/helpers&quot;:62}],64:[function(t,e,r){&quot;use strict&quot;;var n=&quot;undefined&quot;==typeof WeakMap?t(&quot;weak-map&quot;):WeakMap,i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=new n;e.exports=function(t){var e=o.get(t),r=e&amp;&amp;(e._triangleBuffer.handle||e._triangleBuffer.buffer);if(!r||!t.isBuffer(r)){var n=i(t,new Float32Array([-1,-1,-1,4,4,-1]));(e=a(t,[{buffer:n,type:t.FLOAT,size:2}]))._triangleBuffer=n,o.set(t,e)}e.bind(),t.drawArrays(t.TRIANGLES,0,3),e.unbind()}},{&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358,&quot;weak-map&quot;:602}],65:[function(t,e,r){e.exports=function(t){var e=0,r=0,n=0,i=0;return t.map((function(t){var a=(t=t.slice())[0],o=a.toUpperCase();if(a!=o)switch(t[0]=o,a){case&quot;a&quot;:t[6]+=n,t[7]+=i;break;case&quot;v&quot;:t[1]+=i;break;case&quot;h&quot;:t[1]+=n;break;default:for(var s=1;s&lt;t.length;)t[s++]+=n,t[s++]+=i}switch(o){case&quot;Z&quot;:n=e,i=r;break;case&quot;H&quot;:n=t[1];break;case&quot;V&quot;:i=t[1];break;case&quot;M&quot;:n=e=t[1],i=r=t[2];break;default:n=t[t.length-2],i=t[t.length-1]}return t}))}},{}],66:[function(t,e,r){var n=t(&quot;pad-left&quot;);e.exports=function(t,e,r){e=&quot;number&quot;==typeof e?e:1,r=r||&quot;: &quot;;var i=t.split(/\r?\n/),a=String(i.length+e-1).length;return i.map((function(t,i){var o=i+e,s=String(o).length;return n(o,a-s)+r+t})).join(&quot;\n&quot;)}},{&quot;pad-left&quot;:502}],67:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[0];for(var r=t[0].length,n=[t[0]],a=[0],o=1;o&lt;e;++o)if(n.push(t[o]),i(n,r)){if(a.push(o),a.length===r+1)return a}else n.pop();return a};var n=t(&quot;robust-orientation&quot;);function i(t,e){for(var r=new Array(e+1),i=0;i&lt;t.length;++i)r[i]=t[i];for(i=0;i&lt;=t.length;++i){for(var a=t.length;a&lt;=e;++a){for(var o=new Array(e),s=0;s&lt;e;++s)o[s]=Math.pow(a+1-i,s);r[a]=o}if(n.apply(void 0,r))return!0}return!1}},{&quot;robust-orientation&quot;:548}],68:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return n(e).filter((function(r){for(var n=new Array(r.length),a=0;a&lt;r.length;++a)n[a]=e[r[a]];return i(n)*t&lt;1}))};var n=t(&quot;delaunay-triangulate&quot;),i=t(&quot;circumradius&quot;)},{circumradius:119,&quot;delaunay-triangulate&quot;:171}],69:[function(t,e,r){e.exports=function(t,e){return i(n(t,e))};var n=t(&quot;alpha-complex&quot;),i=t(&quot;simplicial-complex-boundary&quot;)},{&quot;alpha-complex&quot;:68,&quot;simplicial-complex-boundary&quot;:555}],70:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(!t||null==t.length)throw Error(&quot;Argument should be an array&quot;);e=null==e?1:Math.floor(e);for(var r=Array(2*e),n=0;n&lt;e;n++){for(var i=-1/0,a=1/0,o=n,s=t.length;o&lt;s;o+=e)t[o]&gt;i&amp;&amp;(i=t[o]),t[o]&lt;a&amp;&amp;(a=t[o]);r[n]=a,r[e+n]=i}return r}},{}],71:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;array-bounds&quot;);e.exports=function(t,e,r){if(!t||null==t.length)throw Error(&quot;Argument should be an array&quot;);null==e&amp;&amp;(e=1);null==r&amp;&amp;(r=n(t,e));for(var i=0;i&lt;e;i++){var a=r[e+i],o=r[i],s=i,l=t.length;if(a===1/0&amp;&amp;o===-1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===a?1:t[s]===o?0:.5;else if(a===1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===a?1:0;else if(o===-1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===o?0:1;else{var c=a-o;for(s=i;s&lt;l;s+=e)isNaN(t[s])||(t[s]=0===c?.5:(t[s]-o)/c)}}return t}},{&quot;array-bounds&quot;:70}],72:[function(t,e,r){e.exports=function(t,e){var r=&quot;number&quot;==typeof t,n=&quot;number&quot;==typeof e;r&amp;&amp;!n?(e=t,t=0):r||n||(t=0,e=0);var i=(e|=0)-(t|=0);if(i&lt;0)throw new Error(&quot;array length must be positive&quot;);for(var a=new Array(i),o=0,s=t;o&lt;i;o++,s++)a[o]=s;return a}},{}],73:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;object-assign&quot;);
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh &lt;feross@feross.org&gt; &lt;http://feross.org&gt;
 * @license  MIT
 */function i(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i&lt;a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r&lt;n?-1:n&lt;r?1:0}function a(t){return r.Buffer&amp;&amp;&quot;function&quot;==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var o=t(&quot;util/&quot;),s=Object.prototype.hasOwnProperty,l=Array.prototype.slice,c=&quot;foo&quot;===function(){}.name;function u(t){return Object.prototype.toString.call(t)}function f(t){return!a(t)&amp;&amp;(&quot;function&quot;==typeof r.ArrayBuffer&amp;&amp;(&quot;function&quot;==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&amp;&amp;(t instanceof DataView||!!(t.buffer&amp;&amp;t.buffer instanceof ArrayBuffer))))}var h=e.exports=y,p=/\s*function\s+([^\(\s]*)\s*/;function d(t){if(o.isFunction(t)){if(c)return t.name;var e=t.toString().match(p);return e&amp;&amp;e[1]}}function g(t,e){return&quot;string&quot;==typeof t?t.length&lt;e?t:t.slice(0,e):t}function m(t){if(c||!o.isFunction(t))return o.inspect(t);var e=d(t);return&quot;[Function&quot;+(e?&quot;: &quot;+e:&quot;&quot;)+&quot;]&quot;}function v(t,e,r,n,i){throw new h.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function y(t,e){t||v(t,!0,e,&quot;==&quot;,h.ok)}function x(t,e,r,n){if(t===e)return!0;if(a(t)&amp;&amp;a(e))return 0===i(t,e);if(o.isDate(t)&amp;&amp;o.isDate(e))return t.getTime()===e.getTime();if(o.isRegExp(t)&amp;&amp;o.isRegExp(e))return t.source===e.source&amp;&amp;t.global===e.global&amp;&amp;t.multiline===e.multiline&amp;&amp;t.lastIndex===e.lastIndex&amp;&amp;t.ignoreCase===e.ignoreCase;if(null!==t&amp;&amp;&quot;object&quot;==typeof t||null!==e&amp;&amp;&quot;object&quot;==typeof e){if(f(t)&amp;&amp;f(e)&amp;&amp;u(t)===u(e)&amp;&amp;!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(a(t)!==a(e))return!1;var s=(n=n||{actual:[],expected:[]}).actual.indexOf(t);return-1!==s&amp;&amp;s===n.expected.indexOf(e)||(n.actual.push(t),n.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(o.isPrimitive(t)||o.isPrimitive(e))return t===e;if(r&amp;&amp;Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=b(t),a=b(e);if(i&amp;&amp;!a||!i&amp;&amp;a)return!1;if(i)return t=l.call(t),e=l.call(e),x(t,e,r);var s,c,u=T(t),f=T(e);if(u.length!==f.length)return!1;for(u.sort(),f.sort(),c=u.length-1;c&gt;=0;c--)if(u[c]!==f[c])return!1;for(c=u.length-1;c&gt;=0;c--)if(s=u[c],!x(t[s],e[s],r,n))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function b(t){return&quot;[object Arguments]&quot;==Object.prototype.toString.call(t)}function _(t,e){if(!t||!e)return!1;if(&quot;[object RegExp]&quot;==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&amp;&amp;!0===e.call({},t)}function w(t,e,r,n){var i;if(&quot;function&quot;!=typeof e)throw new TypeError('&quot;block&quot; argument must be a function');&quot;string&quot;==typeof r&amp;&amp;(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&amp;&amp;r.name?&quot; (&quot;+r.name+&quot;).&quot;:&quot;.&quot;)+(n?&quot; &quot;+n:&quot;.&quot;),t&amp;&amp;!i&amp;&amp;v(i,r,&quot;Missing expected exception&quot;+n);var a=&quot;string&quot;==typeof n,s=!t&amp;&amp;i&amp;&amp;!r;if((!t&amp;&amp;o.isError(i)&amp;&amp;a&amp;&amp;_(i,r)||s)&amp;&amp;v(i,r,&quot;Got unwanted exception&quot;+n),t&amp;&amp;i&amp;&amp;r&amp;&amp;!_(i,r)||!t&amp;&amp;i)throw i}h.AssertionError=function(t){this.name=&quot;AssertionError&quot;,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return g(m(t.actual),128)+&quot; &quot;+t.operator+&quot; &quot;+g(m(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=d(e),a=n.indexOf(&quot;\n&quot;+i);if(a&gt;=0){var o=n.indexOf(&quot;\n&quot;,a+1);n=n.substring(o+1)}this.stack=n}}},o.inherits(h.AssertionError,Error),h.fail=v,h.ok=y,h.equal=function(t,e,r){t!=e&amp;&amp;v(t,e,r,&quot;==&quot;,h.equal)},h.notEqual=function(t,e,r){t==e&amp;&amp;v(t,e,r,&quot;!=&quot;,h.notEqual)},h.deepEqual=function(t,e,r){x(t,e,!1)||v(t,e,r,&quot;deepEqual&quot;,h.deepEqual)},h.deepStrictEqual=function(t,e,r){x(t,e,!0)||v(t,e,r,&quot;deepStrictEqual&quot;,h.deepStrictEqual)},h.notDeepEqual=function(t,e,r){x(t,e,!1)&amp;&amp;v(t,e,r,&quot;notDeepEqual&quot;,h.notDeepEqual)},h.notDeepStrictEqual=function t(e,r,n){x(e,r,!0)&amp;&amp;v(e,r,n,&quot;notDeepStrictEqual&quot;,t)},h.strictEqual=function(t,e,r){t!==e&amp;&amp;v(t,e,r,&quot;===&quot;,h.strictEqual)},h.notStrictEqual=function(t,e,r){t===e&amp;&amp;v(t,e,r,&quot;!==&quot;,h.notStrictEqual)},h.throws=function(t,e,r){w(!0,t,e,r)},h.doesNotThrow=function(t,e,r){w(!1,t,e,r)},h.ifError=function(t){if(t)throw t},h.strict=n((function t(e,r){e||v(e,!0,r,&quot;==&quot;,t)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var T=Object.keys||function(t){var e=[];for(var r in t)s.call(t,r)&amp;&amp;e.push(r);return e}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;object-assign&quot;:499,&quot;util/&quot;:76}],74:[function(t,e,r){&quot;function&quot;==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],75:[function(t,e,r){e.exports=function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;&quot;function&quot;==typeof t.copy&amp;&amp;&quot;function&quot;==typeof t.fill&amp;&amp;&quot;function&quot;==typeof t.readUInt8}},{}],76:[function(t,e,r){(function(e,n){(function(){var i=/%[sdj%]/g;r.format=function(t){if(!v(t)){for(var e=[],r=0;r&lt;arguments.length;r++)e.push(s(arguments[r]));return e.join(&quot; &quot;)}r=1;for(var n=arguments,a=n.length,o=String(t).replace(i,(function(t){if(&quot;%%&quot;===t)return&quot;%&quot;;if(r&gt;=a)return t;switch(t){case&quot;%s&quot;:return String(n[r++]);case&quot;%d&quot;:return Number(n[r++]);case&quot;%j&quot;:try{return JSON.stringify(n[r++])}catch(t){return&quot;[Circular]&quot;}default:return t}})),l=n[r];r&lt;a;l=n[++r])g(l)||!b(l)?o+=&quot; &quot;+l:o+=&quot; &quot;+s(l);return o},r.deprecate=function(t,i){if(y(n.process))return function(){return r.deprecate(t,i).apply(this,arguments)};if(!0===e.noDeprecation)return t;var a=!1;return function(){if(!a){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),a=!0}return t.apply(this,arguments)}};var a,o={};function s(t,e){var n={seen:[],stylize:c};return arguments.length&gt;=3&amp;&amp;(n.depth=arguments[2]),arguments.length&gt;=4&amp;&amp;(n.colors=arguments[3]),d(e)?n.showHidden=e:e&amp;&amp;r._extend(n,e),y(n.showHidden)&amp;&amp;(n.showHidden=!1),y(n.depth)&amp;&amp;(n.depth=2),y(n.colors)&amp;&amp;(n.colors=!1),y(n.customInspect)&amp;&amp;(n.customInspect=!0),n.colors&amp;&amp;(n.stylize=l),u(n,t,n.depth)}function l(t,e){var r=s.styles[e];return r?&quot;\x1b[&quot;+s.colors[r][0]+&quot;m&quot;+t+&quot;\x1b[&quot;+s.colors[r][1]+&quot;m&quot;:t}function c(t,e){return t}function u(t,e,n){if(t.customInspect&amp;&amp;e&amp;&amp;T(e.inspect)&amp;&amp;e.inspect!==r.inspect&amp;&amp;(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return v(i)||(i=u(t,i,n)),i}var a=function(t,e){if(y(e))return t.stylize(&quot;undefined&quot;,&quot;undefined&quot;);if(v(e)){var r=&quot;'&quot;+JSON.stringify(e).replace(/^&quot;|&quot;$/g,&quot;&quot;).replace(/'/g,&quot;\\'&quot;).replace(/\\&quot;/g,'&quot;')+&quot;'&quot;;return t.stylize(r,&quot;string&quot;)}if(m(e))return t.stylize(&quot;&quot;+e,&quot;number&quot;);if(d(e))return t.stylize(&quot;&quot;+e,&quot;boolean&quot;);if(g(e))return t.stylize(&quot;null&quot;,&quot;null&quot;)}(t,e);if(a)return a;var o=Object.keys(e),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&amp;&amp;(o=Object.getOwnPropertyNames(e)),w(e)&amp;&amp;(o.indexOf(&quot;message&quot;)&gt;=0||o.indexOf(&quot;description&quot;)&gt;=0))return f(e);if(0===o.length){if(T(e)){var l=e.name?&quot;: &quot;+e.name:&quot;&quot;;return t.stylize(&quot;[Function&quot;+l+&quot;]&quot;,&quot;special&quot;)}if(x(e))return t.stylize(RegExp.prototype.toString.call(e),&quot;regexp&quot;);if(_(e))return t.stylize(Date.prototype.toString.call(e),&quot;date&quot;);if(w(e))return f(e)}var c,b=&quot;&quot;,k=!1,M=[&quot;{&quot;,&quot;}&quot;];(p(e)&amp;&amp;(k=!0,M=[&quot;[&quot;,&quot;]&quot;]),T(e))&amp;&amp;(b=&quot; [Function&quot;+(e.name?&quot;: &quot;+e.name:&quot;&quot;)+&quot;]&quot;);return x(e)&amp;&amp;(b=&quot; &quot;+RegExp.prototype.toString.call(e)),_(e)&amp;&amp;(b=&quot; &quot;+Date.prototype.toUTCString.call(e)),w(e)&amp;&amp;(b=&quot; &quot;+f(e)),0!==o.length||k&amp;&amp;0!=e.length?n&lt;0?x(e)?t.stylize(RegExp.prototype.toString.call(e),&quot;regexp&quot;):t.stylize(&quot;[Object]&quot;,&quot;special&quot;):(t.seen.push(e),c=k?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o&lt;s;++o)E(e,String(o))?a.push(h(t,e,r,n,String(o),!0)):a.push(&quot;&quot;);return i.forEach((function(i){i.match(/^\d+$/)||a.push(h(t,e,r,n,i,!0))})),a}(t,e,n,s,o):o.map((function(r){return h(t,e,n,s,r,k)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf(&quot;\n&quot;)&gt;=0&amp;&amp;0,t+e.replace(/\u001b\[\d\d?m/g,&quot;&quot;).length+1}),0)&gt;60)return r[0]+(&quot;&quot;===e?&quot;&quot;:e+&quot;\n &quot;)+&quot; &quot;+t.join(&quot;,\n  &quot;)+&quot; &quot;+r[1];return r[0]+e+&quot; &quot;+t.join(&quot;, &quot;)+&quot; &quot;+r[1]}(c,b,M)):M[0]+b+M[1]}function f(t){return&quot;[&quot;+Error.prototype.toString.call(t)+&quot;]&quot;}function h(t,e,r,n,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=l.set?t.stylize(&quot;[Getter/Setter]&quot;,&quot;special&quot;):t.stylize(&quot;[Getter]&quot;,&quot;special&quot;):l.set&amp;&amp;(s=t.stylize(&quot;[Setter]&quot;,&quot;special&quot;)),E(n,i)||(o=&quot;[&quot;+i+&quot;]&quot;),s||(t.seen.indexOf(l.value)&lt;0?(s=g(r)?u(t,l.value,null):u(t,l.value,r-1)).indexOf(&quot;\n&quot;)&gt;-1&amp;&amp;(s=a?s.split(&quot;\n&quot;).map((function(t){return&quot;  &quot;+t})).join(&quot;\n&quot;).substr(2):&quot;\n&quot;+s.split(&quot;\n&quot;).map((function(t){return&quot;   &quot;+t})).join(&quot;\n&quot;)):s=t.stylize(&quot;[Circular]&quot;,&quot;special&quot;)),y(o)){if(a&amp;&amp;i.match(/^\d+$/))return s;(o=JSON.stringify(&quot;&quot;+i)).match(/^&quot;([a-zA-Z_][a-zA-Z_0-9]*)&quot;$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,&quot;name&quot;)):(o=o.replace(/'/g,&quot;\\'&quot;).replace(/\\&quot;/g,'&quot;').replace(/(^&quot;|&quot;$)/g,&quot;'&quot;),o=t.stylize(o,&quot;string&quot;))}return o+&quot;: &quot;+s}function p(t){return Array.isArray(t)}function d(t){return&quot;boolean&quot;==typeof t}function g(t){return null===t}function m(t){return&quot;number&quot;==typeof t}function v(t){return&quot;string&quot;==typeof t}function y(t){return void 0===t}function x(t){return b(t)&amp;&amp;&quot;[object RegExp]&quot;===k(t)}function b(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t}function _(t){return b(t)&amp;&amp;&quot;[object Date]&quot;===k(t)}function w(t){return b(t)&amp;&amp;(&quot;[object Error]&quot;===k(t)||t instanceof Error)}function T(t){return&quot;function&quot;==typeof t}function k(t){return Object.prototype.toString.call(t)}function M(t){return t&lt;10?&quot;0&quot;+t.toString(10):t.toString(10)}r.debuglog=function(t){if(y(a)&amp;&amp;(a=e.env.NODE_DEBUG||&quot;&quot;),t=t.toUpperCase(),!o[t])if(new RegExp(&quot;\\b&quot;+t+&quot;\\b&quot;,&quot;i&quot;).test(a)){var n=e.pid;o[t]=function(){var e=r.format.apply(r,arguments);console.error(&quot;%s %d: %s&quot;,t,n,e)}}else o[t]=function(){};return o[t]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:&quot;cyan&quot;,number:&quot;yellow&quot;,boolean:&quot;yellow&quot;,undefined:&quot;grey&quot;,null:&quot;bold&quot;,string:&quot;green&quot;,date:&quot;magenta&quot;,regexp:&quot;red&quot;},r.isArray=p,r.isBoolean=d,r.isNull=g,r.isNullOrUndefined=function(t){return null==t},r.isNumber=m,r.isString=v,r.isSymbol=function(t){return&quot;symbol&quot;==typeof t},r.isUndefined=y,r.isRegExp=x,r.isObject=b,r.isDate=_,r.isError=w,r.isFunction=T,r.isPrimitive=function(t){return null===t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||&quot;symbol&quot;==typeof t||&quot;undefined&quot;==typeof t},r.isBuffer=t(&quot;./support/isBuffer&quot;);var A=[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;];function S(){var t=new Date,e=[M(t.getHours()),M(t.getMinutes()),M(t.getSeconds())].join(&quot;:&quot;);return[t.getDate(),A[t.getMonth()],e].join(&quot; &quot;)}function E(t,e){return Object.prototype.hasOwnProperty.call(t,e)}r.log=function(){console.log(&quot;%s - %s&quot;,S(),r.format.apply(r,arguments))},r.inherits=t(&quot;inherits&quot;),r._extend=function(t,e){if(!e||!b(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;./support/isBuffer&quot;:75,_process:526,inherits:74}],77:[function(t,e,r){e.exports=function(t){return atob(t)}},{}],78:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=e.length,a=new Array(r+1),o=0;o&lt;r;++o){for(var s=new Array(r+1),l=0;l&lt;=r;++l)s[l]=t[l][o];a[o]=s}a[r]=new Array(r+1);for(o=0;o&lt;=r;++o)a[r][o]=1;var c=new Array(r+1);for(o=0;o&lt;r;++o)c[o]=e[o];c[r]=1;var u=n(a,c),f=i(u[r+1]);0===f&amp;&amp;(f=1);var h=new Array(r+1);for(o=0;o&lt;=r;++o)h[o]=i(u[o])/f;return h};var n=t(&quot;robust-linear-solve&quot;);function i(t){for(var e=0,r=0;r&lt;t.length;++r)e+=t[r];return e}},{&quot;robust-linear-solve&quot;:547}],79:[function(t,e,r){&quot;use strict&quot;;r.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){var e,r,n=c(t),o=n[0],s=n[1],l=new a(function(t,e,r){return 3*(e+r)/4-r}(0,o,s)),u=0,f=s&gt;0?o-4:o;for(r=0;r&lt;f;r+=4)e=i[t.charCodeAt(r)]&lt;&lt;18|i[t.charCodeAt(r+1)]&lt;&lt;12|i[t.charCodeAt(r+2)]&lt;&lt;6|i[t.charCodeAt(r+3)],l[u++]=e&gt;&gt;16&amp;255,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e;2===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;2|i[t.charCodeAt(r+1)]&gt;&gt;4,l[u++]=255&amp;e);1===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;10|i[t.charCodeAt(r+1)]&lt;&lt;4|i[t.charCodeAt(r+2)]&gt;&gt;2,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e);return l},r.fromByteArray=function(t){for(var e,r=t.length,i=r%3,a=[],o=0,s=r-i;o&lt;s;o+=16383)a.push(u(t,o,o+16383&gt;s?s:o+16383));1===i?(e=t[r-1],a.push(n[e&gt;&gt;2]+n[e&lt;&lt;4&amp;63]+&quot;==&quot;)):2===i&amp;&amp;(e=(t[r-2]&lt;&lt;8)+t[r-1],a.push(n[e&gt;&gt;10]+n[e&gt;&gt;4&amp;63]+n[e&lt;&lt;2&amp;63]+&quot;=&quot;));return a.join(&quot;&quot;)};for(var n=[],i=[],a=&quot;undefined&quot;!=typeof Uint8Array?Uint8Array:Array,o=&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/&quot;,s=0,l=o.length;s&lt;l;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4&gt;0)throw new Error(&quot;Invalid string. Length must be a multiple of 4&quot;);var r=t.indexOf(&quot;=&quot;);return-1===r&amp;&amp;(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var i,a,o=[],s=e;s&lt;r;s+=3)i=(t[s]&lt;&lt;16&amp;16711680)+(t[s+1]&lt;&lt;8&amp;65280)+(255&amp;t[s+2]),o.push(n[(a=i)&gt;&gt;18&amp;63]+n[a&gt;&gt;12&amp;63]+n[a&gt;&gt;6&amp;63]+n[63&amp;a]);return o.join(&quot;&quot;)}i[&quot;-&quot;.charCodeAt(0)]=62,i[&quot;_&quot;.charCodeAt(0)]=63},{}],80:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]).add(e[0].mul(t[1])),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:90}],81:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t[0].mul(e[1]).cmp(e[0].mul(t[1]))}},{}],82:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]),t[1].mul(e[0]))}},{&quot;./lib/rationalize&quot;:90}],83:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-rat&quot;),i=t(&quot;./lib/is-bn&quot;),a=t(&quot;./lib/num-to-bn&quot;),o=t(&quot;./lib/str-to-bn&quot;),s=t(&quot;./lib/rationalize&quot;),l=t(&quot;./div&quot;);e.exports=function t(e,r){if(n(e))return r?l(e,t(r)):[e[0].clone(),e[1].clone()];var c,u,f=0;if(i(e))c=e.clone();else if(&quot;string&quot;==typeof e)c=o(e);else{if(0===e)return[a(0),a(1)];if(e===Math.floor(e))c=a(e);else{for(;e!==Math.floor(e);)e*=Math.pow(2,256),f-=256;c=a(e)}}if(n(r))c.mul(r[1]),u=r[0].clone();else if(i(r))u=r.clone();else if(&quot;string&quot;==typeof r)u=o(r);else if(r)if(r===Math.floor(r))u=a(r);else{for(;r!==Math.floor(r);)r*=Math.pow(2,256),f+=256;u=a(r)}else u=a(1);f&gt;0?c=c.ushln(f):f&lt;0&amp;&amp;(u=u.ushln(-f));return s(c,u)}},{&quot;./div&quot;:82,&quot;./is-rat&quot;:84,&quot;./lib/is-bn&quot;:88,&quot;./lib/num-to-bn&quot;:89,&quot;./lib/rationalize&quot;:90,&quot;./lib/str-to-bn&quot;:91}],84:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/is-bn&quot;);e.exports=function(t){return Array.isArray(t)&amp;&amp;2===t.length&amp;&amp;n(t[0])&amp;&amp;n(t[1])}},{&quot;./lib/is-bn&quot;:88}],85:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;);e.exports=function(t){return t.cmp(new n(0))}},{&quot;bn.js&quot;:99}],86:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./bn-sign&quot;);e.exports=function(t){var e=t.length,r=t.words,i=0;if(1===e)i=r[0];else if(2===e)i=r[0]+67108864*r[1];else for(var a=0;a&lt;e;a++){var o=r[a];i+=o*Math.pow(67108864,a)}return n(t)*i}},{&quot;./bn-sign&quot;:85}],87:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;double-bits&quot;),i=t(&quot;bit-twiddle&quot;).countTrailingZeros;e.exports=function(t){var e=i(n.lo(t));if(e&lt;32)return e;var r=i(n.hi(t));if(r&gt;20)return 52;return r+32}},{&quot;bit-twiddle&quot;:97,&quot;double-bits&quot;:173}],88:[function(t,e,r){&quot;use strict&quot;;t(&quot;bn.js&quot;);e.exports=function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;Boolean(t.words)}},{&quot;bn.js&quot;:99}],89:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;),i=t(&quot;double-bits&quot;);e.exports=function(t){var e=i.exponent(t);return e&lt;52?new n(t):new n(t*Math.pow(2,52-e)).ushln(e-52)}},{&quot;bn.js&quot;:99,&quot;double-bits&quot;:173}],90:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./num-to-bn&quot;),i=t(&quot;./bn-sign&quot;);e.exports=function(t,e){var r=i(t),a=i(e);if(0===r)return[n(0),n(1)];if(0===a)return[n(0),n(0)];a&lt;0&amp;&amp;(t=t.neg(),e=e.neg());var o=t.gcd(e);if(o.cmpn(1))return[t.div(o),e.div(o)];return[t,e]}},{&quot;./bn-sign&quot;:85,&quot;./num-to-bn&quot;:89}],91:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;);e.exports=function(t){return new n(t)}},{&quot;bn.js&quot;:99}],92:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[0]),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:90}],93:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/bn-sign&quot;);e.exports=function(t){return n(t[0])*n(t[1])}},{&quot;./lib/bn-sign&quot;:85}],94:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]).sub(t[1].mul(e[0])),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:90}],95:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/bn-to-num&quot;),i=t(&quot;./lib/ctz&quot;);e.exports=function(t){var e=t[0],r=t[1];if(0===e.cmpn(0))return 0;var a=e.abs().divmod(r.abs()),o=a.div,s=n(o),l=a.mod,c=e.negative!==r.negative?-1:1;if(0===l.cmpn(0))return c*s;if(s){var u=i(s)+4,f=n(l.ushln(u).divRound(r));return c*(s+f*Math.pow(2,-u))}var h=r.bitLength()-l.bitLength()+53;f=n(l.ushln(h).divRound(r));return h&lt;1023?c*f*Math.pow(2,-h):(f*=Math.pow(2,-1023),c*f*Math.pow(2,1023-h))}},{&quot;./lib/bn-to-num&quot;:86,&quot;./lib/ctz&quot;:87}],96:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i){var a=[&quot;function &quot;,t,&quot;(a,l,h,&quot;,n.join(&quot;,&quot;),&quot;){&quot;,i?&quot;&quot;:&quot;var i=&quot;,r?&quot;l-1&quot;:&quot;h+1&quot;,&quot;;while(l&lt;=h){var m=(l+h)&gt;&gt;&gt;1,x=a[m]&quot;];return i?e.indexOf(&quot;c&quot;)&lt;0?a.push(&quot;;if(x===y){return m}else if(x&lt;=y){&quot;):a.push(&quot;;var p=c(x,y);if(p===0){return m}else if(p&lt;=0){&quot;):a.push(&quot;;if(&quot;,e,&quot;){i=m;&quot;),r?a.push(&quot;l=m+1}else{h=m-1}&quot;):a.push(&quot;h=m-1}else{l=m+1}&quot;),a.push(&quot;}&quot;),i?a.push(&quot;return -1};&quot;):a.push(&quot;return i};&quot;),a.join(&quot;&quot;)}function i(t,e,r,i){return new Function([n(&quot;A&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],i),n(&quot;P&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],i),&quot;function dispatchBsearch&quot;,r,&quot;(a,y,c,l,h){if(typeof(c)==='function'){return P(a,(l===void 0)?0:l|0,(h===void 0)?a.length-1:h|0,y,c)}else{return A(a,(c===void 0)?0:c|0,(l===void 0)?a.length-1:l|0,y)}}return dispatchBsearch&quot;,r].join(&quot;&quot;))()}e.exports={ge:i(&quot;&gt;=&quot;,!1,&quot;GE&quot;),gt:i(&quot;&gt;&quot;,!1,&quot;GT&quot;),lt:i(&quot;&lt;&quot;,!0,&quot;LT&quot;),le:i(&quot;&lt;=&quot;,!0,&quot;LE&quot;),eq:i(&quot;-&quot;,!0,&quot;EQ&quot;,!0)}},{}],97:[function(t,e,r){&quot;use strict&quot;;function n(t){var e=32;return(t&amp;=-t)&amp;&amp;e--,65535&amp;t&amp;&amp;(e-=16),16711935&amp;t&amp;&amp;(e-=8),252645135&amp;t&amp;&amp;(e-=4),858993459&amp;t&amp;&amp;(e-=2),1431655765&amp;t&amp;&amp;(e-=1),e}r.INT_BITS=32,r.INT_MAX=2147483647,r.INT_MIN=-1&lt;&lt;31,r.sign=function(t){return(t&gt;0)-(t&lt;0)},r.abs=function(t){var e=t&gt;&gt;31;return(t^e)-e},r.min=function(t,e){return e^(t^e)&amp;-(t&lt;e)},r.max=function(t,e){return t^(t^e)&amp;-(t&lt;e)},r.isPow2=function(t){return!(t&amp;t-1||!t)},r.log2=function(t){var e,r;return e=(t&gt;65535)&lt;&lt;4,e|=r=((t&gt;&gt;&gt;=e)&gt;255)&lt;&lt;3,e|=r=((t&gt;&gt;&gt;=r)&gt;15)&lt;&lt;2,(e|=r=((t&gt;&gt;&gt;=r)&gt;3)&lt;&lt;1)|(t&gt;&gt;&gt;=r)&gt;&gt;1},r.log10=function(t){return t&gt;=1e9?9:t&gt;=1e8?8:t&gt;=1e7?7:t&gt;=1e6?6:t&gt;=1e5?5:t&gt;=1e4?4:t&gt;=1e3?3:t&gt;=100?2:t&gt;=10?1:0},r.popCount=function(t){return 16843009*((t=(858993459&amp;(t-=t&gt;&gt;&gt;1&amp;1431655765))+(t&gt;&gt;&gt;2&amp;858993459))+(t&gt;&gt;&gt;4)&amp;252645135)&gt;&gt;&gt;24},r.countTrailingZeros=n,r.nextPow2=function(t){return t+=0===t,--t,t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)+1},r.prevPow2=function(t){return t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)-(t&gt;&gt;&gt;1)},r.parity=function(t){return t^=t&gt;&gt;&gt;16,t^=t&gt;&gt;&gt;8,t^=t&gt;&gt;&gt;4,27030&gt;&gt;&gt;(t&amp;=15)&amp;1};var i=new Array(256);!function(t){for(var e=0;e&lt;256;++e){var r=e,n=e,i=7;for(r&gt;&gt;&gt;=1;r;r&gt;&gt;&gt;=1)n&lt;&lt;=1,n|=1&amp;r,--i;t[e]=n&lt;&lt;i&amp;255}}(i),r.reverse=function(t){return i[255&amp;t]&lt;&lt;24|i[t&gt;&gt;&gt;8&amp;255]&lt;&lt;16|i[t&gt;&gt;&gt;16&amp;255]&lt;&lt;8|i[t&gt;&gt;&gt;24&amp;255]},r.interleave2=function(t,e){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t&amp;=65535)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e&amp;=65535)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1},r.deinterleave2=function(t,e){return(t=65535&amp;((t=16711935&amp;((t=252645135&amp;((t=858993459&amp;((t=t&gt;&gt;&gt;e&amp;1431655765)|t&gt;&gt;&gt;1))|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;16))&lt;&lt;16&gt;&gt;16},r.interleave3=function(t,e,r){return t=1227133513&amp;((t=3272356035&amp;((t=251719695&amp;((t=4278190335&amp;((t&amp;=1023)|t&lt;&lt;16))|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2),(t|=(e=1227133513&amp;((e=3272356035&amp;((e=251719695&amp;((e=4278190335&amp;((e&amp;=1023)|e&lt;&lt;16))|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))&lt;&lt;1)|(r=1227133513&amp;((r=3272356035&amp;((r=251719695&amp;((r=4278190335&amp;((r&amp;=1023)|r&lt;&lt;16))|r&lt;&lt;8))|r&lt;&lt;4))|r&lt;&lt;2))&lt;&lt;2},r.deinterleave3=function(t,e){return(t=1023&amp;((t=4278190335&amp;((t=251719695&amp;((t=3272356035&amp;((t=t&gt;&gt;&gt;e&amp;1227133513)|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;8))|t&gt;&gt;&gt;16))&lt;&lt;22&gt;&gt;22},r.nextCombination=function(t){var e=t|t-1;return e+1|(~e&amp;-~e)-1&gt;&gt;&gt;n(t)+1}},{}],98:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;clamp&quot;);e.exports=function(t,e){e||(e={});var r,o,s,l,c,u,f,h,p,d,g,m=null==e.cutoff?.25:e.cutoff,v=null==e.radius?8:e.radius,y=e.channel||0;if(ArrayBuffer.isView(t)||Array.isArray(t)){if(!e.width||!e.height)throw Error(&quot;For raw data width and height should be provided by options&quot;);r=e.width,o=e.height,l=t,u=e.stride?e.stride:Math.floor(t.length/r/o)}else window.HTMLCanvasElement&amp;&amp;t instanceof window.HTMLCanvasElement?(f=(h=t).getContext(&quot;2d&quot;),r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.CanvasRenderingContext2D&amp;&amp;t instanceof window.CanvasRenderingContext2D?(h=t.canvas,f=t,r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.ImageData&amp;&amp;t instanceof window.ImageData&amp;&amp;(p=t,r=t.width,o=t.height,l=p.data,u=4);if(s=Math.max(r,o),window.Uint8ClampedArray&amp;&amp;l instanceof window.Uint8ClampedArray||window.Uint8Array&amp;&amp;l instanceof window.Uint8Array)for(c=l,l=Array(r*o),d=0,g=c.length;d&lt;g;d++)l[d]=c[d*u+y]/255;else if(1!==u)throw Error(&quot;Raw data can have only 1 value per pixel&quot;);var x=Array(r*o),b=Array(r*o),_=Array(s),w=Array(s),T=Array(s+1),k=Array(s);for(d=0,g=r*o;d&lt;g;d++){var M=l[d];x[d]=1===M?0:0===M?i:Math.pow(Math.max(0,.5-M),2),b[d]=1===M?i:0===M?0:Math.pow(Math.max(0,M-.5),2)}a(x,r,o,_,w,k,T),a(b,r,o,_,w,k,T);var A=window.Float32Array?new Float32Array(r*o):new Array(r*o);for(d=0,g=r*o;d&lt;g;d++)A[d]=n(1-((x[d]-b[d])/v+m),0,1);return A};var i=1e20;function a(t,e,r,n,i,a,s){for(var l=0;l&lt;e;l++){for(var c=0;c&lt;r;c++)n[c]=t[c*e+l];for(o(n,i,a,s,r),c=0;c&lt;r;c++)t[c*e+l]=i[c]}for(c=0;c&lt;r;c++){for(l=0;l&lt;e;l++)n[l]=t[c*e+l];for(o(n,i,a,s,e),l=0;l&lt;e;l++)t[c*e+l]=Math.sqrt(i[l])}}function o(t,e,r,n,a){r[0]=0,n[0]=-i,n[1]=+i;for(var o=1,s=0;o&lt;a;o++){for(var l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);l&lt;=n[s];)s--,l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);r[++s]=o,n[s]=l,n[s+1]=+i}for(o=0,s=0;o&lt;a;o++){for(;n[s+1]&lt;o;)s++;e[o]=(o-r[s])*(o-r[s])+t[r[s]]}}},{clamp:120}],99:[function(t,e,r){!function(e,r){&quot;use strict&quot;;function n(t,e){if(!t)throw new Error(e||&quot;Assertion failed&quot;)}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,e,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&amp;&amp;(&quot;le&quot;!==e&amp;&amp;&quot;be&quot;!==e||(r=e,e=10),this._init(t||0,e||10,r||&quot;be&quot;))}var o;&quot;object&quot;==typeof e?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{o=t(&quot;buffer&quot;).Buffer}catch(t){}function s(t,e,r){for(var n=0,i=Math.min(t.length,r),a=e;a&lt;i;a++){var o=t.charCodeAt(a)-48;n&lt;&lt;=4,n|=o&gt;=49&amp;&amp;o&lt;=54?o-49+10:o&gt;=17&amp;&amp;o&lt;=22?o-17+10:15&amp;o}return n}function l(t,e,r,n){for(var i=0,a=Math.min(t.length,r),o=e;o&lt;a;o++){var s=t.charCodeAt(o)-48;i*=n,i+=s&gt;=49?s-49+10:s&gt;=17?s-17+10:s}return i}a.isBN=function(t){return t instanceof a||null!==t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;t.constructor.wordSize===a.wordSize&amp;&amp;Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)&gt;0?t:e},a.min=function(t,e){return t.cmp(e)&lt;0?t:e},a.prototype._init=function(t,e,r){if(&quot;number&quot;==typeof t)return this._initNumber(t,e,r);if(&quot;object&quot;==typeof t)return this._initArray(t,e,r);&quot;hex&quot;===e&amp;&amp;(e=16),n(e===(0|e)&amp;&amp;e&gt;=2&amp;&amp;e&lt;=36);var i=0;&quot;-&quot;===(t=t.toString().replace(/\s+/g,&quot;&quot;))[0]&amp;&amp;i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),&quot;-&quot;===t[0]&amp;&amp;(this.negative=1),this.strip(),&quot;le&quot;===r&amp;&amp;this._initArray(this.toArray(),e,r)},a.prototype._initNumber=function(t,e,r){t&lt;0&amp;&amp;(this.negative=1,t=-t),t&lt;67108864?(this.words=[67108863&amp;t],this.length=1):t&lt;4503599627370496?(this.words=[67108863&amp;t,t/67108864&amp;67108863],this.length=2):(n(t&lt;9007199254740992),this.words=[67108863&amp;t,t/67108864&amp;67108863,1],this.length=3),&quot;le&quot;===r&amp;&amp;this._initArray(this.toArray(),e,r)},a.prototype._initArray=function(t,e,r){if(n(&quot;number&quot;==typeof t.length),t.length&lt;=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i&lt;this.length;i++)this.words[i]=0;var a,o,s=0;if(&quot;be&quot;===r)for(i=t.length-1,a=0;i&gt;=0;i-=3)o=t[i]|t[i-1]&lt;&lt;8|t[i-2]&lt;&lt;16,this.words[a]|=o&lt;&lt;s&amp;67108863,this.words[a+1]=o&gt;&gt;&gt;26-s&amp;67108863,(s+=24)&gt;=26&amp;&amp;(s-=26,a++);else if(&quot;le&quot;===r)for(i=0,a=0;i&lt;t.length;i+=3)o=t[i]|t[i+1]&lt;&lt;8|t[i+2]&lt;&lt;16,this.words[a]|=o&lt;&lt;s&amp;67108863,this.words[a+1]=o&gt;&gt;&gt;26-s&amp;67108863,(s+=24)&gt;=26&amp;&amp;(s-=26,a++);return this.strip()},a.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r&lt;this.length;r++)this.words[r]=0;var n,i,a=0;for(r=t.length-6,n=0;r&gt;=e;r-=6)i=s(t,r,r+6),this.words[n]|=i&lt;&lt;a&amp;67108863,this.words[n+1]|=i&gt;&gt;&gt;26-a&amp;4194303,(a+=24)&gt;=26&amp;&amp;(a-=26,n++);r+6!==e&amp;&amp;(i=s(t,e,r+6),this.words[n]|=i&lt;&lt;a&amp;67108863,this.words[n+1]|=i&gt;&gt;&gt;26-a&amp;4194303),this.strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i&lt;=67108863;i*=e)n++;n--,i=i/e|0;for(var a=t.length-r,o=a%n,s=Math.min(a,a-o)+r,c=0,u=r;u&lt;s;u+=n)c=l(t,u,u+n,e),this.imuln(i),this.words[0]+c&lt;67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var f=1;for(c=l(t,u,t.length,e),u=0;u&lt;o;u++)f*=e;this.imuln(f),this.words[0]+c&lt;67108864?this.words[0]+=c:this._iaddn(c)}},a.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e&lt;this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length&lt;t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length&gt;1&amp;&amp;0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&amp;&amp;0===this.words[0]&amp;&amp;(this.negative=0),this},a.prototype.inspect=function(){return(this.red?&quot;&lt;BN-R: &quot;:&quot;&lt;BN: &quot;)+this.toString(16)+&quot;&gt;&quot;};var c=[&quot;&quot;,&quot;0&quot;,&quot;00&quot;,&quot;000&quot;,&quot;0000&quot;,&quot;00000&quot;,&quot;000000&quot;,&quot;0000000&quot;,&quot;00000000&quot;,&quot;000000000&quot;,&quot;0000000000&quot;,&quot;00000000000&quot;,&quot;000000000000&quot;,&quot;0000000000000&quot;,&quot;00000000000000&quot;,&quot;000000000000000&quot;,&quot;0000000000000000&quot;,&quot;00000000000000000&quot;,&quot;000000000000000000&quot;,&quot;0000000000000000000&quot;,&quot;00000000000000000000&quot;,&quot;000000000000000000000&quot;,&quot;0000000000000000000000&quot;,&quot;00000000000000000000000&quot;,&quot;000000000000000000000000&quot;,&quot;0000000000000000000000000&quot;],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],a=0|e.words[0],o=i*a,s=67108863&amp;o,l=o/67108864|0;r.words[0]=s;for(var c=1;c&lt;n;c++){for(var u=l&gt;&gt;&gt;26,f=67108863&amp;l,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p&lt;=h;p++){var d=c-p|0;u+=(o=(i=0|t.words[d])*(a=0|e.words[p])+f)/67108864|0,f=67108863&amp;o}r.words[c]=0|f,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||&quot;hex&quot;===t){r=&quot;&quot;;for(var i=0,a=0,o=0;o&lt;this.length;o++){var s=this.words[o],l=(16777215&amp;(s&lt;&lt;i|a)).toString(16);r=0!==(a=s&gt;&gt;&gt;24-i&amp;16777215)||o!==this.length-1?c[6-l.length]+l+r:l+r,(i+=2)&gt;=26&amp;&amp;(i-=26,o--)}for(0!==a&amp;&amp;(r=a.toString(16)+r);r.length%e!=0;)r=&quot;0&quot;+r;return 0!==this.negative&amp;&amp;(r=&quot;-&quot;+r),r}if(t===(0|t)&amp;&amp;t&gt;=2&amp;&amp;t&lt;=36){var h=u[t],p=f[t];r=&quot;&quot;;var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modn(p).toString(t);r=(d=d.idivn(p)).isZero()?g+r:c[h-g.length]+g+r}for(this.isZero()&amp;&amp;(r=&quot;0&quot;+r);r.length%e!=0;)r=&quot;0&quot;+r;return 0!==this.negative&amp;&amp;(r=&quot;-&quot;+r),r}n(!1,&quot;Base should be between 2 and 36&quot;)},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&amp;&amp;1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length&gt;2&amp;&amp;n(!1,&quot;Number can only safely store up to 53 bits&quot;),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return n(&quot;undefined&quot;!=typeof o),this.toArrayLike(o,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i&lt;=a,&quot;byte array longer than desired length&quot;),n(a&gt;0,&quot;Requested array length &lt;= 0&quot;),this.strip();var o,s,l=&quot;le&quot;===e,c=new t(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s&lt;a;s++)c[s]=0}else{for(s=0;s&lt;a-i;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[a-s-1]=o}return c},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var e=t,r=0;return e&gt;=4096&amp;&amp;(r+=13,e&gt;&gt;&gt;=13),e&gt;=64&amp;&amp;(r+=7,e&gt;&gt;&gt;=7),e&gt;=8&amp;&amp;(r+=4,e&gt;&gt;&gt;=4),e&gt;=2&amp;&amp;(r+=2,e&gt;&gt;&gt;=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&amp;e)&amp;&amp;(r+=13,e&gt;&gt;&gt;=13),0==(127&amp;e)&amp;&amp;(r+=7,e&gt;&gt;&gt;=7),0==(15&amp;e)&amp;&amp;(r+=4,e&gt;&gt;&gt;=4),0==(3&amp;e)&amp;&amp;(r+=2,e&gt;&gt;&gt;=2),0==(1&amp;e)&amp;&amp;r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e&lt;this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length&lt;t.length;)this.words[this.length++]=0;for(var e=0;e&lt;t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},a.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length&gt;t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length&gt;t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length&gt;t.length?t:this;for(var r=0;r&lt;e.length;r++)this.words[r]=this.words[r]&amp;t.words[r];return this.length=e.length,this.strip()},a.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length&gt;t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length&gt;t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length&gt;t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n&lt;r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n&lt;e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},a.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length&gt;t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length&gt;t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r&gt;0&amp;&amp;e--;for(var i=0;i&lt;e;i++)this.words[i]=67108863&amp;~this.words[i];return r&gt;0&amp;&amp;(this.words[i]=~this.words[i]&amp;67108863&gt;&gt;26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1&lt;&lt;i:this.words[r]&amp;~(1&lt;&lt;i),this.strip()},a.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&amp;&amp;0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&amp;&amp;0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length&gt;t.length?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a&lt;n.length;a++)e=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&amp;e,i=e&gt;&gt;&gt;26;for(;0!==i&amp;&amp;a&lt;r.length;a++)e=(0|r.words[a])+i,this.words[a]=67108863&amp;e,i=e&gt;&gt;&gt;26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a&lt;r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(t){var e;return 0!==t.negative&amp;&amp;0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&amp;&amp;0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length&gt;t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i&gt;0?(r=this,n=t):(r=t,n=this);for(var a=0,o=0;o&lt;n.length;o++)a=(e=(0|r.words[o])-(0|n.words[o])+a)&gt;&gt;26,this.words[o]=67108863&amp;e;for(;0!==a&amp;&amp;o&lt;r.length;o++)a=(e=(0|r.words[o])+a)&gt;&gt;26,this.words[o]=67108863&amp;e;if(0===a&amp;&amp;o&lt;r.length&amp;&amp;r!==this)for(;o&lt;r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&amp;&amp;(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,a,o=t.words,s=e.words,l=r.words,c=0,u=0|o[0],f=8191&amp;u,h=u&gt;&gt;&gt;13,p=0|o[1],d=8191&amp;p,g=p&gt;&gt;&gt;13,m=0|o[2],v=8191&amp;m,y=m&gt;&gt;&gt;13,x=0|o[3],b=8191&amp;x,_=x&gt;&gt;&gt;13,w=0|o[4],T=8191&amp;w,k=w&gt;&gt;&gt;13,M=0|o[5],A=8191&amp;M,S=M&gt;&gt;&gt;13,E=0|o[6],C=8191&amp;E,L=E&gt;&gt;&gt;13,I=0|o[7],P=8191&amp;I,z=I&gt;&gt;&gt;13,O=0|o[8],D=8191&amp;O,R=O&gt;&gt;&gt;13,F=0|o[9],B=8191&amp;F,N=F&gt;&gt;&gt;13,j=0|s[0],U=8191&amp;j,V=j&gt;&gt;&gt;13,q=0|s[1],H=8191&amp;q,G=q&gt;&gt;&gt;13,Y=0|s[2],W=8191&amp;Y,X=Y&gt;&gt;&gt;13,Z=0|s[3],J=8191&amp;Z,K=Z&gt;&gt;&gt;13,Q=0|s[4],$=8191&amp;Q,tt=Q&gt;&gt;&gt;13,et=0|s[5],rt=8191&amp;et,nt=et&gt;&gt;&gt;13,it=0|s[6],at=8191&amp;it,ot=it&gt;&gt;&gt;13,st=0|s[7],lt=8191&amp;st,ct=st&gt;&gt;&gt;13,ut=0|s[8],ft=8191&amp;ut,ht=ut&gt;&gt;&gt;13,pt=0|s[9],dt=8191&amp;pt,gt=pt&gt;&gt;&gt;13;r.negative=t.negative^e.negative,r.length=19;var mt=(c+(n=Math.imul(f,U))|0)+((8191&amp;(i=(i=Math.imul(f,V))+Math.imul(h,U)|0))&lt;&lt;13)|0;c=((a=Math.imul(h,V))+(i&gt;&gt;&gt;13)|0)+(mt&gt;&gt;&gt;26)|0,mt&amp;=67108863,n=Math.imul(d,U),i=(i=Math.imul(d,V))+Math.imul(g,U)|0,a=Math.imul(g,V);var vt=(c+(n=n+Math.imul(f,H)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,H)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,G)|0)+(i&gt;&gt;&gt;13)|0)+(vt&gt;&gt;&gt;26)|0,vt&amp;=67108863,n=Math.imul(v,U),i=(i=Math.imul(v,V))+Math.imul(y,U)|0,a=Math.imul(y,V),n=n+Math.imul(d,H)|0,i=(i=i+Math.imul(d,G)|0)+Math.imul(g,H)|0,a=a+Math.imul(g,G)|0;var yt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,W)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,X)|0)+(i&gt;&gt;&gt;13)|0)+(yt&gt;&gt;&gt;26)|0,yt&amp;=67108863,n=Math.imul(b,U),i=(i=Math.imul(b,V))+Math.imul(_,U)|0,a=Math.imul(_,V),n=n+Math.imul(v,H)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(d,W)|0,i=(i=i+Math.imul(d,X)|0)+Math.imul(g,W)|0,a=a+Math.imul(g,X)|0;var xt=(c+(n=n+Math.imul(f,J)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,J)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,K)|0)+(i&gt;&gt;&gt;13)|0)+(xt&gt;&gt;&gt;26)|0,xt&amp;=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,V))+Math.imul(k,U)|0,a=Math.imul(k,V),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,G)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(y,W)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(d,J)|0,i=(i=i+Math.imul(d,K)|0)+Math.imul(g,J)|0,a=a+Math.imul(g,K)|0;var bt=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,$)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,tt)|0)+(i&gt;&gt;&gt;13)|0)+(bt&gt;&gt;&gt;26)|0,bt&amp;=67108863,n=Math.imul(A,U),i=(i=Math.imul(A,V))+Math.imul(S,U)|0,a=Math.imul(S,V),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(k,H)|0,a=a+Math.imul(k,G)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(_,W)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(y,J)|0,a=a+Math.imul(y,K)|0,n=n+Math.imul(d,$)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(g,$)|0,a=a+Math.imul(g,tt)|0;var _t=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,nt)|0)+(i&gt;&gt;&gt;13)|0)+(_t&gt;&gt;&gt;26)|0,_t&amp;=67108863,n=Math.imul(C,U),i=(i=Math.imul(C,V))+Math.imul(L,U)|0,a=Math.imul(L,V),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(k,W)|0,a=a+Math.imul(k,X)|0,n=n+Math.imul(b,J)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(_,J)|0,a=a+Math.imul(_,K)|0,n=n+Math.imul(v,$)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,tt)|0,n=n+Math.imul(d,rt)|0,i=(i=i+Math.imul(d,nt)|0)+Math.imul(g,rt)|0,a=a+Math.imul(g,nt)|0;var wt=(c+(n=n+Math.imul(f,at)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ot)|0)+Math.imul(h,at)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ot)|0)+(i&gt;&gt;&gt;13)|0)+(wt&gt;&gt;&gt;26)|0,wt&amp;=67108863,n=Math.imul(P,U),i=(i=Math.imul(P,V))+Math.imul(z,U)|0,a=Math.imul(z,V),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(L,H)|0,a=a+Math.imul(L,G)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,X)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(k,J)|0,a=a+Math.imul(k,K)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(y,rt)|0,a=a+Math.imul(y,nt)|0,n=n+Math.imul(d,at)|0,i=(i=i+Math.imul(d,ot)|0)+Math.imul(g,at)|0,a=a+Math.imul(g,ot)|0;var Tt=(c+(n=n+Math.imul(f,lt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ct)|0)+Math.imul(h,lt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ct)|0)+(i&gt;&gt;&gt;13)|0)+(Tt&gt;&gt;&gt;26)|0,Tt&amp;=67108863,n=Math.imul(D,U),i=(i=Math.imul(D,V))+Math.imul(R,U)|0,a=Math.imul(R,V),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(z,H)|0,a=a+Math.imul(z,G)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(L,W)|0,a=a+Math.imul(L,X)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(S,J)|0,a=a+Math.imul(S,K)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(_,rt)|0,a=a+Math.imul(_,nt)|0,n=n+Math.imul(v,at)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(y,at)|0,a=a+Math.imul(y,ot)|0,n=n+Math.imul(d,lt)|0,i=(i=i+Math.imul(d,ct)|0)+Math.imul(g,lt)|0,a=a+Math.imul(g,ct)|0;var kt=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ht)|0)+(i&gt;&gt;&gt;13)|0)+(kt&gt;&gt;&gt;26)|0,kt&amp;=67108863,n=Math.imul(B,U),i=(i=Math.imul(B,V))+Math.imul(N,U)|0,a=Math.imul(N,V),n=n+Math.imul(D,H)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(R,H)|0,a=a+Math.imul(R,G)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(z,W)|0,a=a+Math.imul(z,X)|0,n=n+Math.imul(C,J)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(L,J)|0,a=a+Math.imul(L,K)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(k,rt)|0,a=a+Math.imul(k,nt)|0,n=n+Math.imul(b,at)|0,i=(i=i+Math.imul(b,ot)|0)+Math.imul(_,at)|0,a=a+Math.imul(_,ot)|0,n=n+Math.imul(v,lt)|0,i=(i=i+Math.imul(v,ct)|0)+Math.imul(y,lt)|0,a=a+Math.imul(y,ct)|0,n=n+Math.imul(d,ft)|0,i=(i=i+Math.imul(d,ht)|0)+Math.imul(g,ft)|0,a=a+Math.imul(g,ht)|0;var Mt=(c+(n=n+Math.imul(f,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,gt)|0)+Math.imul(h,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Mt&gt;&gt;&gt;26)|0,Mt&amp;=67108863,n=Math.imul(B,H),i=(i=Math.imul(B,G))+Math.imul(N,H)|0,a=Math.imul(N,G),n=n+Math.imul(D,W)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(R,W)|0,a=a+Math.imul(R,X)|0,n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(z,J)|0,a=a+Math.imul(z,K)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(L,$)|0,a=a+Math.imul(L,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(S,rt)|0,a=a+Math.imul(S,nt)|0,n=n+Math.imul(T,at)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(k,at)|0,a=a+Math.imul(k,ot)|0,n=n+Math.imul(b,lt)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(_,lt)|0,a=a+Math.imul(_,ct)|0,n=n+Math.imul(v,ft)|0,i=(i=i+Math.imul(v,ht)|0)+Math.imul(y,ft)|0,a=a+Math.imul(y,ht)|0;var At=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(d,gt)|0)+Math.imul(g,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(g,gt)|0)+(i&gt;&gt;&gt;13)|0)+(At&gt;&gt;&gt;26)|0,At&amp;=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,X))+Math.imul(N,W)|0,a=Math.imul(N,X),n=n+Math.imul(D,J)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(R,J)|0,a=a+Math.imul(R,K)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(z,$)|0,a=a+Math.imul(z,tt)|0,n=n+Math.imul(C,rt)|0,i=(i=i+Math.imul(C,nt)|0)+Math.imul(L,rt)|0,a=a+Math.imul(L,nt)|0,n=n+Math.imul(A,at)|0,i=(i=i+Math.imul(A,ot)|0)+Math.imul(S,at)|0,a=a+Math.imul(S,ot)|0,n=n+Math.imul(T,lt)|0,i=(i=i+Math.imul(T,ct)|0)+Math.imul(k,lt)|0,a=a+Math.imul(k,ct)|0,n=n+Math.imul(b,ft)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(_,ft)|0,a=a+Math.imul(_,ht)|0;var St=(c+(n=n+Math.imul(v,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(v,gt)|0)+Math.imul(y,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(y,gt)|0)+(i&gt;&gt;&gt;13)|0)+(St&gt;&gt;&gt;26)|0,St&amp;=67108863,n=Math.imul(B,J),i=(i=Math.imul(B,K))+Math.imul(N,J)|0,a=Math.imul(N,K),n=n+Math.imul(D,$)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(z,rt)|0,a=a+Math.imul(z,nt)|0,n=n+Math.imul(C,at)|0,i=(i=i+Math.imul(C,ot)|0)+Math.imul(L,at)|0,a=a+Math.imul(L,ot)|0,n=n+Math.imul(A,lt)|0,i=(i=i+Math.imul(A,ct)|0)+Math.imul(S,lt)|0,a=a+Math.imul(S,ct)|0,n=n+Math.imul(T,ft)|0,i=(i=i+Math.imul(T,ht)|0)+Math.imul(k,ft)|0,a=a+Math.imul(k,ht)|0;var Et=(c+(n=n+Math.imul(b,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(b,gt)|0)+Math.imul(_,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(_,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Et&gt;&gt;&gt;26)|0,Et&amp;=67108863,n=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(N,$)|0,a=Math.imul(N,tt),n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(R,rt)|0,a=a+Math.imul(R,nt)|0,n=n+Math.imul(P,at)|0,i=(i=i+Math.imul(P,ot)|0)+Math.imul(z,at)|0,a=a+Math.imul(z,ot)|0,n=n+Math.imul(C,lt)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(L,lt)|0,a=a+Math.imul(L,ct)|0,n=n+Math.imul(A,ft)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(S,ft)|0,a=a+Math.imul(S,ht)|0;var Ct=(c+(n=n+Math.imul(T,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(T,gt)|0)+Math.imul(k,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(k,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Ct&gt;&gt;&gt;26)|0,Ct&amp;=67108863,n=Math.imul(B,rt),i=(i=Math.imul(B,nt))+Math.imul(N,rt)|0,a=Math.imul(N,nt),n=n+Math.imul(D,at)|0,i=(i=i+Math.imul(D,ot)|0)+Math.imul(R,at)|0,a=a+Math.imul(R,ot)|0,n=n+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(z,lt)|0,a=a+Math.imul(z,ct)|0,n=n+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,ht)|0)+Math.imul(L,ft)|0,a=a+Math.imul(L,ht)|0;var Lt=(c+(n=n+Math.imul(A,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(A,gt)|0)+Math.imul(S,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(S,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Lt&gt;&gt;&gt;26)|0,Lt&amp;=67108863,n=Math.imul(B,at),i=(i=Math.imul(B,ot))+Math.imul(N,at)|0,a=Math.imul(N,ot),n=n+Math.imul(D,lt)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(R,lt)|0,a=a+Math.imul(R,ct)|0,n=n+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(z,ft)|0,a=a+Math.imul(z,ht)|0;var It=(c+(n=n+Math.imul(C,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(C,gt)|0)+Math.imul(L,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(L,gt)|0)+(i&gt;&gt;&gt;13)|0)+(It&gt;&gt;&gt;26)|0,It&amp;=67108863,n=Math.imul(B,lt),i=(i=Math.imul(B,ct))+Math.imul(N,lt)|0,a=Math.imul(N,ct),n=n+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(R,ft)|0,a=a+Math.imul(R,ht)|0;var Pt=(c+(n=n+Math.imul(P,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(P,gt)|0)+Math.imul(z,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(z,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Pt&gt;&gt;&gt;26)|0,Pt&amp;=67108863,n=Math.imul(B,ft),i=(i=Math.imul(B,ht))+Math.imul(N,ft)|0,a=Math.imul(N,ht);var zt=(c+(n=n+Math.imul(D,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(D,gt)|0)+Math.imul(R,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(R,gt)|0)+(i&gt;&gt;&gt;13)|0)+(zt&gt;&gt;&gt;26)|0,zt&amp;=67108863;var Ot=(c+(n=Math.imul(B,dt))|0)+((8191&amp;(i=(i=Math.imul(B,gt))+Math.imul(N,dt)|0))&lt;&lt;13)|0;return c=((a=Math.imul(N,gt))+(i&gt;&gt;&gt;13)|0)+(Ot&gt;&gt;&gt;26)|0,Ot&amp;=67108863,l[0]=mt,l[1]=vt,l[2]=yt,l[3]=xt,l[4]=bt,l[5]=_t,l[6]=wt,l[7]=Tt,l[8]=kt,l[9]=Mt,l[10]=At,l[11]=St,l[12]=Et,l[13]=Ct,l[14]=Lt,l[15]=It,l[16]=Pt,l[17]=zt,l[18]=Ot,0!==c&amp;&amp;(l[19]=c,r.length++),r};function d(t,e,r){return(new g).mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=h),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&amp;&amp;10===t.length?p(this,t,e):r&lt;63?h(this,t,e):r&lt;1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,a=0;a&lt;r.length-1;a++){var o=i;i=0;for(var s=67108863&amp;n,l=Math.min(a,e.length-1),c=Math.max(0,a-t.length+1);c&lt;=l;c++){var u=a-c,f=(0|t.words[u])*(0|e.words[c]),h=67108863&amp;f;s=67108863&amp;(h=h+s|0),i+=(o=(o=o+(f/67108864|0)|0)+(h&gt;&gt;&gt;26)|0)&gt;&gt;&gt;26,o&amp;=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,t,e):d(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n&lt;t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i&lt;e;i++)n|=(1&amp;t)&lt;&lt;e-i-1,t&gt;&gt;=1;return n},g.prototype.permute=function(t,e,r,n,i,a){for(var o=0;o&lt;a;o++)n[o]=e[t[o]],i[o]=r[t[o]]},g.prototype.transform=function(t,e,r,n,i,a){this.permute(a,t,e,r,n,i);for(var o=1;o&lt;i;o&lt;&lt;=1)for(var s=o&lt;&lt;1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u&lt;i;u+=s)for(var f=l,h=c,p=0;p&lt;o;p++){var d=r[u+p],g=n[u+p],m=r[u+p+o],v=n[u+p+o],y=f*m-h*v;v=f*v+h*m,m=y,r[u+p]=d+m,n[u+p]=g+v,r[u+p+o]=d-m,n[u+p+o]=g-v,p!==s&amp;&amp;(y=l*f-c*h,h=l*h+c*f,f=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&amp;r,i=0;for(r=r/2|0;r;r&gt;&gt;&gt;=1)i++;return 1&lt;&lt;i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r&lt;=1))for(var n=0;n&lt;r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n&lt;e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&amp;i,r=i&lt;67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var a=0,o=0;o&lt;e;o++)a+=0|t[o],r[2*o]=8191&amp;a,a&gt;&gt;&gt;=13,r[2*o+1]=8191&amp;a,a&gt;&gt;&gt;=13;for(o=2*e;o&lt;i;++o)r[o]=0;n(0===a),n(0==(-8192&amp;a))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,c,n),this.transform(o,a,s,l,n,i),this.transform(c,a,u,f,n,i);for(var p=0;p&lt;n;p++){var d=s[p]*u[p]-l[p]*f[p];l[p]=s[p]*f[p]+l[p]*u[p],s[p]=d}return this.conjugate(s,l,n),this.transform(s,l,h,a,n,i),this.conjugate(h,a,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},a.prototype.mul=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},a.prototype.mulf=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),d(this,t,e)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){n(&quot;number&quot;==typeof t),n(t&lt;67108864);for(var e=0,r=0;r&lt;this.length;r++){var i=(0|this.words[r])*t,a=(67108863&amp;i)+(67108863&amp;e);e&gt;&gt;=26,e+=i/67108864|0,e+=a&gt;&gt;&gt;26,this.words[r]=67108863&amp;a}return 0!==e&amp;&amp;(this.words[r]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r&lt;e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&amp;1&lt;&lt;i)&gt;&gt;&gt;i}return e}(t);if(0===e.length)return new a(1);for(var r=this,n=0;n&lt;e.length&amp;&amp;0===e[n];n++,r=r.sqr());if(++n&lt;e.length)for(var i=r.sqr();n&lt;e.length;n++,i=i.sqr())0!==e[n]&amp;&amp;(r=r.mul(i));return r},a.prototype.iushln=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e,r=t%26,i=(t-r)/26,a=67108863&gt;&gt;&gt;26-r&lt;&lt;26-r;if(0!==r){var o=0;for(e=0;e&lt;this.length;e++){var s=this.words[e]&amp;a,l=(0|this.words[e])-s&lt;&lt;r;this.words[e]=l|o,o=s&gt;&gt;&gt;26-r}o&amp;&amp;(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e&gt;=0;e--)this.words[e+i]=this.words[e];for(e=0;e&lt;i;e++)this.words[e]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,e,r){var i;n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0),i=e?(e-e%26)/26:0;var a=t%26,o=Math.min((t-a)/26,this.length),s=67108863^67108863&gt;&gt;&gt;a&lt;&lt;a,l=r;if(i-=o,i=Math.max(0,i),l){for(var c=0;c&lt;o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length&gt;o)for(this.length-=o,c=0;c&lt;this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c&gt;=0&amp;&amp;(0!==u||c&gt;=i);c--){var f=0|this.words[c];this.words[c]=u&lt;&lt;26-a|f&gt;&gt;&gt;a,u=f&amp;s}return l&amp;&amp;0!==u&amp;&amp;(l.words[l.length++]=u),0===this.length&amp;&amp;(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=t%26,r=(t-e)/26,i=1&lt;&lt;e;return!(this.length&lt;=r)&amp;&amp;!!(this.words[r]&amp;i)},a.prototype.imaskn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,&quot;imaskn works only with positive numbers&quot;),this.length&lt;=r)return this;if(0!==e&amp;&amp;r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863&gt;&gt;&gt;e&lt;&lt;e;this.words[this.length-1]&amp;=i}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return n(&quot;number&quot;==typeof t),n(t&lt;67108864),t&lt;0?this.isubn(-t):0!==this.negative?1===this.length&amp;&amp;(0|this.words[0])&lt;t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e&lt;this.length&amp;&amp;this.words[e]&gt;=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(n(&quot;number&quot;==typeof t),n(t&lt;67108864),t&lt;0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&amp;&amp;this.words[0]&lt;0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e&lt;this.length&amp;&amp;this.words[e]&lt;0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,e,r){var i,a,o=t.length+r;this._expand(o);var s=0;for(i=0;i&lt;t.length;i++){a=(0|this.words[i+r])+s;var l=(0|t.words[i])*e;s=((a-=67108863&amp;l)&gt;&gt;26)-(l/67108864|0),this.words[i+r]=67108863&amp;a}for(;i&lt;this.length-r;i++)s=(a=(0|this.words[i+r])+s)&gt;&gt;26,this.words[i+r]=67108863&amp;a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i&lt;this.length;i++)s=(a=-(0|this.words[i])+s)&gt;&gt;26,this.words[i]=67108863&amp;a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&amp;&amp;(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,l=n.length-i.length;if(&quot;mod&quot;!==e){(s=new a(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c&lt;s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(i,1,l);0===u.negative&amp;&amp;(n=u,s&amp;&amp;(s.words[l]=1));for(var f=l-1;f&gt;=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&amp;&amp;(s.words[f]=h)}return s&amp;&amp;s.strip(),n.strip(),&quot;div&quot;!==e&amp;&amp;0!==r&amp;&amp;n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&amp;&amp;0===t.negative?(s=this.neg().divmod(t,e),&quot;mod&quot;!==e&amp;&amp;(i=s.div.neg()),&quot;div&quot;!==e&amp;&amp;(o=s.mod.neg(),r&amp;&amp;0!==o.negative&amp;&amp;o.iadd(t)),{div:i,mod:o}):0===this.negative&amp;&amp;0!==t.negative?(s=this.divmod(t.neg(),e),&quot;mod&quot;!==e&amp;&amp;(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&amp;t.negative)?(s=this.neg().divmod(t.neg(),e),&quot;div&quot;!==e&amp;&amp;(o=s.mod.neg(),r&amp;&amp;0!==o.negative&amp;&amp;o.isub(t)),{div:s.div,mod:o}):t.length&gt;this.length||this.cmp(t)&lt;0?{div:new a(0),mod:this}:1===t.length?&quot;div&quot;===e?{div:this.divn(t.words[0]),mod:null}:&quot;mod&quot;===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,s},a.prototype.div=function(t){return this.divmod(t,&quot;div&quot;,!1).div},a.prototype.mod=function(t){return this.divmod(t,&quot;mod&quot;,!1).mod},a.prototype.umod=function(t){return this.divmod(t,&quot;mod&quot;,!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),a=r.cmp(n);return a&lt;0||1===i&amp;&amp;0===a?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){n(t&lt;=67108863);for(var e=(1&lt;&lt;26)%t,r=0,i=this.length-1;i&gt;=0;i--)r=(e*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){n(t&lt;=67108863);for(var e=0,r=this.length-1;r&gt;=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new a(1),o=new a(0),s=new a(0),l=new a(1),c=0;e.isEven()&amp;&amp;r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),f=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&amp;p)&amp;&amp;h&lt;26;++h,p&lt;&lt;=1);if(h&gt;0)for(e.iushrn(h);h-- &gt;0;)(i.isOdd()||o.isOdd())&amp;&amp;(i.iadd(u),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var d=0,g=1;0==(r.words[0]&amp;g)&amp;&amp;d&lt;26;++d,g&lt;&lt;=1);if(d&gt;0)for(r.iushrn(d);d-- &gt;0;)(s.isOdd()||l.isOdd())&amp;&amp;(s.iadd(u),l.isub(f)),s.iushrn(1),l.iushrn(1);e.cmp(r)&gt;=0?(e.isub(r),i.isub(s),o.isub(l)):(r.isub(e),s.isub(i),l.isub(o))}return{a:s,b:l,gcd:r.iushln(c)}},a.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new a(1),s=new a(0),l=r.clone();e.cmpn(1)&gt;0&amp;&amp;r.cmpn(1)&gt;0;){for(var c=0,u=1;0==(e.words[0]&amp;u)&amp;&amp;c&lt;26;++c,u&lt;&lt;=1);if(c&gt;0)for(e.iushrn(c);c-- &gt;0;)o.isOdd()&amp;&amp;o.iadd(l),o.iushrn(1);for(var f=0,h=1;0==(r.words[0]&amp;h)&amp;&amp;f&lt;26;++f,h&lt;&lt;=1);if(f&gt;0)for(r.iushrn(f);f-- &gt;0;)s.isOdd()&amp;&amp;s.iadd(l),s.iushrn(1);e.cmp(r)&gt;=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(i=0===e.cmpn(1)?o:s).cmpn(0)&lt;0&amp;&amp;i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&amp;&amp;r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i&lt;0){var a=e;e=r,r=a}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&amp;this.words[0])},a.prototype.isOdd=function(){return 1==(1&amp;this.words[0])},a.prototype.andln=function(t){return this.words[0]&amp;t},a.prototype.bincn=function(t){n(&quot;number&quot;==typeof t);var e=t%26,r=(t-e)/26,i=1&lt;&lt;e;if(this.length&lt;=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&amp;&amp;o&lt;this.length;o++){var s=0|this.words[o];a=(s+=a)&gt;&gt;&gt;26,s&amp;=67108863,this.words[o]=s}return 0!==a&amp;&amp;(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&amp;&amp;0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t&lt;0;if(0!==this.negative&amp;&amp;!r)return-1;if(0===this.negative&amp;&amp;r)return 1;if(this.strip(),this.length&gt;1)e=1;else{r&amp;&amp;(t=-t),n(t&lt;=67108863,&quot;Number is too big&quot;);var i=0|this.words[0];e=i===t?0:i&lt;t?-1:1}return 0!==this.negative?0|-e:e},a.prototype.cmp=function(t){if(0!==this.negative&amp;&amp;0===t.negative)return-1;if(0===this.negative&amp;&amp;0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},a.prototype.ucmp=function(t){if(this.length&gt;t.length)return 1;if(this.length&lt;t.length)return-1;for(var e=0,r=this.length-1;r&gt;=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n&lt;i?e=-1:n&gt;i&amp;&amp;(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)&gt;=0},a.prototype.gte=function(t){return this.cmp(t)&gt;=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)&lt;=0},a.prototype.lte=function(t){return this.cmp(t)&lt;=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new w(t)},a.prototype.toRed=function(t){return n(!this.red,&quot;Already a number in reduction context&quot;),n(0===this.negative,&quot;red works only with positives&quot;),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return n(this.red,&quot;fromRed works only with numbers in reduction context&quot;),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return n(!this.red,&quot;Already a number in reduction context&quot;),this._forceRed(t)},a.prototype.redAdd=function(t){return n(this.red,&quot;redAdd works only with red numbers&quot;),this.red.add(this,t)},a.prototype.redIAdd=function(t){return n(this.red,&quot;redIAdd works only with red numbers&quot;),this.red.iadd(this,t)},a.prototype.redSub=function(t){return n(this.red,&quot;redSub works only with red numbers&quot;),this.red.sub(this,t)},a.prototype.redISub=function(t){return n(this.red,&quot;redISub works only with red numbers&quot;),this.red.isub(this,t)},a.prototype.redShl=function(t){return n(this.red,&quot;redShl works only with red numbers&quot;),this.red.shl(this,t)},a.prototype.redMul=function(t){return n(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return n(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return n(this.red,&quot;redSqr works only with red numbers&quot;),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,&quot;redISqr works only with red numbers&quot;),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,&quot;redSqrt works only with red numbers&quot;),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,&quot;redInvm works only with red numbers&quot;),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,&quot;redNeg works only with red numbers&quot;),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return n(this.red&amp;&amp;!t.red,&quot;redPow(normalNum)&quot;),this.red._verify1(this),this.red.pow(this,t)};var m={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,&quot;k256&quot;,&quot;ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f&quot;)}function x(){v.call(this,&quot;p224&quot;,&quot;ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001&quot;)}function b(){v.call(this,&quot;p192&quot;,&quot;ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff&quot;)}function _(){v.call(this,&quot;25519&quot;,&quot;7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed&quot;)}function w(t){if(&quot;string&quot;==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),&quot;modulus must be greater than 1&quot;),this.m=t,this.prime=null}function T(t){w.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&amp;&amp;(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e&gt;this.n);var n=e&lt;this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n&gt;0?r.isub(this.p):r.strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(y,v),y.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n&lt;r;n++)e.words[n]=t.words[n];if(e.length=r,t.length&lt;=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&amp;i,n=10;n&lt;t.length;n++){var a=0|t.words[n];t.words[n-10]=(4194303&amp;a)&lt;&lt;4|i&gt;&gt;&gt;22,i=a}i&gt;&gt;&gt;=22,t.words[n-10]=i,0===i&amp;&amp;t.length&gt;10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r&lt;t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&amp;e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&amp;&amp;(t.length--,0===t.words[t.length-1]&amp;&amp;t.length--),t},i(x,v),i(b,v),i(_,v),_.prototype.imulK=function(t){for(var e=0,r=0;r&lt;t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&amp;n;n&gt;&gt;&gt;=26,t.words[r]=i,e=n}return 0!==e&amp;&amp;(t.words[t.length++]=e),t},a._prime=function(t){if(m[t])return m[t];var e;if(&quot;k256&quot;===t)e=new y;else if(&quot;p224&quot;===t)e=new x;else if(&quot;p192&quot;===t)e=new b;else{if(&quot;p25519&quot;!==t)throw new Error(&quot;Unknown prime &quot;+t);e=new _}return m[t]=e,e},w.prototype._verify1=function(t){n(0===t.negative,&quot;red works only with positives&quot;),n(t.red,&quot;red works only with red numbers&quot;)},w.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),&quot;red works only with positives&quot;),n(t.red&amp;&amp;t.red===e.red,&quot;red works only with red numbers&quot;)},w.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)&gt;=0&amp;&amp;r.isub(this.m),r._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)&gt;=0&amp;&amp;r.isub(this.m),r},w.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)&lt;0&amp;&amp;r.iadd(this.m),r._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)&lt;0&amp;&amp;r.iadd(this.m),r},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&amp;&amp;0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var f=this.pow(u,i),h=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),d=o;0!==p.cmp(s);){for(var g=p,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m&lt;d);var v=this.pow(f,new a(1).iushln(d-m-1));h=h.redMul(v),f=v.redSqr(),p=p.redMul(f),d=m}return h},w.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},w.prototype.pow=function(t,e){if(e.isZero())return new a(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=t;for(var n=2;n&lt;r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,s=0,l=e.bitLength()%26;for(0===l&amp;&amp;(l=26),n=e.length-1;n&gt;=0;n--){for(var c=e.words[n],u=l-1;u&gt;=0;u--){var f=c&gt;&gt;u&amp;1;i!==r[0]&amp;&amp;(i=this.sqr(i)),0!==f||0!==o?(o&lt;&lt;=1,o|=f,(4===++s||0===n&amp;&amp;0===u)&amp;&amp;(i=this.mul(i,r[o]),s=0,o=0)):s=0}l=26}return i},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new T(t)},i(T,w),T.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},T.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},T.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)&gt;=0?a=i.isub(this.m):i.cmpn(0)&lt;0&amp;&amp;(a=i.iadd(this.m)),a._forceRed(this)},T.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)&gt;=0?o=i.isub(this.m):i.cmpn(0)&lt;0&amp;&amp;(o=i.iadd(this.m)),o._forceRed(this)},T.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(&quot;undefined&quot;==typeof e||e,this)},{buffer:108}],100:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e,r,n,i=t.length,a=0;for(e=0;e&lt;i;++e)a+=t[e].length;var o=new Array(a),s=0;for(e=0;e&lt;i;++e){var l=t[e],c=l.length;for(r=0;r&lt;c;++r){var u=o[s++]=new Array(c-1),f=0;for(n=0;n&lt;c;++n)n!==r&amp;&amp;(u[f++]=l[n]);if(1&amp;r){var h=u[1];u[1]=u[0],u[0]=h}}}return o}},{}],101:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){switch(arguments.length){case 1:return f(t);case 2:return&quot;function&quot;==typeof e?c(t,t,e,!0):h(t,e);case 3:return c(t,e,r,!1);default:throw new Error(&quot;box-intersect: Invalid arguments&quot;)}};var n,i=t(&quot;typedarray-pool&quot;),a=t(&quot;./lib/sweep&quot;),o=t(&quot;./lib/intersect&quot;);function s(t,e){for(var r=0;r&lt;t;++r)if(!(e[r]&lt;=e[r+t]))return!0;return!1}function l(t,e,r,n){for(var i=0,a=0,o=0,l=t.length;o&lt;l;++o){var c=t[o];if(!s(e,c)){for(var u=0;u&lt;2*e;++u)r[i++]=c[u];n[a++]=o}}return a}function c(t,e,r,n){var s=t.length,c=e.length;if(!(s&lt;=0||c&lt;=0)){var u=t[0].length&gt;&gt;&gt;1;if(!(u&lt;=0)){var f,h=i.mallocDouble(2*u*s),p=i.mallocInt32(s);if((s=l(t,u,h,p))&gt;0){if(1===u&amp;&amp;n)a.init(s),f=a.sweepComplete(u,r,0,s,h,p,0,s,h,p);else{var d=i.mallocDouble(2*u*c),g=i.mallocInt32(c);(c=l(e,u,d,g))&gt;0&amp;&amp;(a.init(s+c),f=1===u?a.sweepBipartite(u,r,0,s,h,p,0,c,d,g):o(u,r,n,s,h,p,c,d,g),i.free(d),i.free(g))}i.free(h),i.free(p)}return f}}}function u(t,e){n.push([t,e])}function f(t){return n=[],c(t,t,u,!0),n}function h(t,e){return n=[],c(t,e,u,!1),n}},{&quot;./lib/intersect&quot;:103,&quot;./lib/sweep&quot;:107,&quot;typedarray-pool&quot;:595}],102:[function(t,e,r){&quot;use strict&quot;;var n=[&quot;d&quot;,&quot;ax&quot;,&quot;vv&quot;,&quot;rs&quot;,&quot;re&quot;,&quot;rb&quot;,&quot;ri&quot;,&quot;bs&quot;,&quot;be&quot;,&quot;bb&quot;,&quot;bi&quot;];function i(t){var e=&quot;bruteForce&quot;+(t?&quot;Full&quot;:&quot;Partial&quot;),r=[],i=n.slice();t||i.splice(3,0,&quot;fp&quot;);var a=[&quot;function &quot;+e+&quot;(&quot;+i.join()+&quot;){&quot;];function o(e,i){var o=function(t,e,r){var i=&quot;bruteForce&quot;+(t?&quot;Red&quot;:&quot;Blue&quot;)+(e?&quot;Flip&quot;:&quot;&quot;)+(r?&quot;Full&quot;:&quot;&quot;),a=[&quot;function &quot;,i,&quot;(&quot;,n.join(),&quot;){&quot;,&quot;var &quot;,&quot;es&quot;,&quot;=2*&quot;,&quot;d&quot;,&quot;;&quot;],o=&quot;for(var i=rs,rp=es*rs;i&lt;re;++i,rp+=es){var x0=rb[ax+rp],x1=rb[ax+rp+d],xi=ri[i];&quot;,s=&quot;for(var j=bs,bp=es*bs;j&lt;be;++j,bp+=es){var y0=bb[ax+bp],&quot;+(r?&quot;y1=bb[ax+bp+d],&quot;:&quot;&quot;)+&quot;yi=bi[j];&quot;;return t?a.push(o,&quot;Q&quot;,&quot;:&quot;,s):a.push(s,&quot;Q&quot;,&quot;:&quot;,o),r?a.push(&quot;if(y1&lt;x0||x1&lt;y0)continue;&quot;):e?a.push(&quot;if(y0&lt;=x0||x1&lt;y0)continue;&quot;):a.push(&quot;if(y0&lt;x0||x1&lt;y0)continue;&quot;),a.push(&quot;for(var k=ax+1;k&lt;d;++k){var r0=rb[k+rp],r1=rb[k+d+rp],b0=bb[k+bp],b1=bb[k+d+bp];if(r1&lt;b0||b1&lt;r0)continue Q;}var rv=vv(&quot;),e?a.push(&quot;yi,xi&quot;):a.push(&quot;xi,yi&quot;),a.push(&quot;);if(rv!==void 0)return rv;}}}&quot;),{name:i,code:a.join(&quot;&quot;)}}(e,i,t);r.push(o.code),a.push(&quot;return &quot;+o.name+&quot;(&quot;+n.join()+&quot;);&quot;)}a.push(&quot;if(re-rs&gt;be-bs){&quot;),t?(o(!0,!1),a.push(&quot;}else{&quot;),o(!1,!1)):(a.push(&quot;if(fp){&quot;),o(!0,!0),a.push(&quot;}else{&quot;),o(!0,!1),a.push(&quot;}}else{if(fp){&quot;),o(!1,!0),a.push(&quot;}else{&quot;),o(!1,!1),a.push(&quot;}&quot;)),a.push(&quot;}}return &quot;+e);var s=r.join(&quot;&quot;)+a.join(&quot;&quot;);return new Function(s)()}r.partial=i(!1),r.full=i(!0)},{}],103:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,u,w,T,k,M){!function(t,e){var r=8*i.log2(e+1)*(t+1)|0,a=i.nextPow2(6*r);v.length&lt;a&amp;&amp;(n.free(v),v=n.mallocInt32(a));var o=i.nextPow2(2*r);y.length&lt;o&amp;&amp;(n.free(y),y=n.mallocDouble(o))}(t,a+T);var A,S=0,E=2*t;x(S++,0,0,a,0,T,r?16:0,-1/0,1/0),r||x(S++,0,0,T,0,a,1,-1/0,1/0);for(;S&gt;0;){var C=6*(S-=1),L=v[C],I=v[C+1],P=v[C+2],z=v[C+3],O=v[C+4],D=v[C+5],R=2*S,F=y[R],B=y[R+1],N=1&amp;D,j=!!(16&amp;D),U=u,V=w,q=k,H=M;if(N&amp;&amp;(U=k,V=M,q=u,H=w),!(2&amp;D&amp;&amp;(P=p(t,L,I,P,U,V,B),I&gt;=P)||4&amp;D&amp;&amp;(I=d(t,L,I,P,U,V,F))&gt;=P)){var G=P-I,Y=O-z;if(j){if(t*G*(G+Y)&lt;1&lt;&lt;22){if(void 0!==(A=l.scanComplete(t,L,e,I,P,U,V,z,O,q,H)))return A;continue}}else{if(t*Math.min(G,Y)&lt;128){if(void 0!==(A=o(t,L,e,N,I,P,U,V,z,O,q,H)))return A;continue}if(t*G*Y&lt;1&lt;&lt;22){if(void 0!==(A=l.scanBipartite(t,L,e,N,I,P,U,V,z,O,q,H)))return A;continue}}var W=f(t,L,I,P,U,V,F,B);if(I&lt;W)if(t*(W-I)&lt;128){if(void 0!==(A=s(t,L+1,e,I,W,U,V,z,O,q,H)))return A}else if(L===t-2){if(void 0!==(A=N?l.sweepBipartite(t,e,z,O,q,H,I,W,U,V):l.sweepBipartite(t,e,I,W,U,V,z,O,q,H)))return A}else x(S++,L+1,I,W,z,O,N,-1/0,1/0),x(S++,L+1,z,O,I,W,1^N,-1/0,1/0);if(W&lt;P){var X=c(t,L,z,O,q,H),Z=q[E*X+L],J=h(t,L,X,O,q,H,Z);if(J&lt;O&amp;&amp;x(S++,L,W,P,J,O,(4|N)+(j?16:0),Z,B),z&lt;X&amp;&amp;x(S++,L,W,P,z,X,(2|N)+(j?16:0),F,Z),X+1===J){if(void 0!==(A=j?_(t,L,e,W,P,U,V,X,q,H[X]):b(t,L,e,N,W,P,U,V,X,q,H[X])))return A}else if(X&lt;J){var K;if(j){if(K=g(t,L,W,P,U,V,Z),W&lt;K){var Q=h(t,L,W,K,U,V,Z);if(L===t-2){if(W&lt;Q&amp;&amp;void 0!==(A=l.sweepComplete(t,e,W,Q,U,V,X,J,q,H)))return A;if(Q&lt;K&amp;&amp;void 0!==(A=l.sweepBipartite(t,e,Q,K,U,V,X,J,q,H)))return A}else W&lt;Q&amp;&amp;x(S++,L+1,W,Q,X,J,16,-1/0,1/0),Q&lt;K&amp;&amp;(x(S++,L+1,Q,K,X,J,0,-1/0,1/0),x(S++,L+1,X,J,Q,K,1,-1/0,1/0))}}else K=N?m(t,L,W,P,U,V,Z):g(t,L,W,P,U,V,Z),W&lt;K&amp;&amp;(L===t-2?A=N?l.sweepBipartite(t,e,X,J,q,H,W,K,U,V):l.sweepBipartite(t,e,W,K,U,V,X,J,q,H):(x(S++,L+1,W,K,X,J,N,-1/0,1/0),x(S++,L+1,X,J,W,K,1^N,-1/0,1/0)))}}}}};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;bit-twiddle&quot;),a=t(&quot;./brute&quot;),o=a.partial,s=a.full,l=t(&quot;./sweep&quot;),c=t(&quot;./median&quot;),u=t(&quot;./partition&quot;),f=u(&quot;!(lo&gt;=p0)&amp;&amp;!(p1&gt;=hi)&quot;,[&quot;p0&quot;,&quot;p1&quot;]),h=u(&quot;lo===p0&quot;,[&quot;p0&quot;]),p=u(&quot;lo&lt;p0&quot;,[&quot;p0&quot;]),d=u(&quot;hi&lt;=p0&quot;,[&quot;p0&quot;]),g=u(&quot;lo&lt;=p0&amp;&amp;p0&lt;=hi&quot;,[&quot;p0&quot;]),m=u(&quot;lo&lt;p0&amp;&amp;p0&lt;=hi&quot;,[&quot;p0&quot;]),v=n.mallocInt32(1024),y=n.mallocDouble(1024);function x(t,e,r,n,i,a,o,s,l){var c=6*t;v[c]=e,v[c+1]=r,v[c+2]=n,v[c+3]=i,v[c+4]=a,v[c+5]=o;var u=2*t;y[u]=s,y[u+1]=l}function b(t,e,r,n,i,a,o,s,l,c,u){var f=2*t,h=l*f,p=c[h+e];t:for(var d=i,g=i*f;d&lt;a;++d,g+=f){var m=o[g+e],v=o[g+e+t];if(!(p&lt;m||v&lt;p)&amp;&amp;(!n||p!==m)){for(var y,x=s[d],b=e+1;b&lt;t;++b){m=o[g+b],v=o[g+b+t];var _=c[h+b],w=c[h+b+t];if(v&lt;_||w&lt;m)continue t}if(void 0!==(y=n?r(u,x):r(x,u)))return y}}}function _(t,e,r,n,i,a,o,s,l,c){var u=2*t,f=s*u,h=l[f+e];t:for(var p=n,d=n*u;p&lt;i;++p,d+=u){var g=o[p];if(g!==c){var m=a[d+e],v=a[d+e+t];if(!(h&lt;m||v&lt;h)){for(var y=e+1;y&lt;t;++y){m=a[d+y],v=a[d+y+t];var x=l[f+y],b=l[f+y+t];if(v&lt;x||b&lt;m)continue t}var _=r(g,c);if(void 0!==_)return _}}}}},{&quot;./brute&quot;:102,&quot;./median&quot;:104,&quot;./partition&quot;:105,&quot;./sweep&quot;:107,&quot;bit-twiddle&quot;:97,&quot;typedarray-pool&quot;:595}],104:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,o,s){if(a&lt;=r+1)return r;var l=r,c=a,u=a+r&gt;&gt;&gt;1,f=2*t,h=u,p=o[f*u+e];for(;l&lt;c;){if(c-l&lt;8){i(t,e,l,c,o,s),p=o[f*u+e];break}var d=c-l,g=Math.random()*d+l|0,m=o[f*g+e],v=Math.random()*d+l|0,y=o[f*v+e],x=Math.random()*d+l|0,b=o[f*x+e];m&lt;=y?b&gt;=y?(h=v,p=y):m&gt;=b?(h=g,p=m):(h=x,p=b):y&gt;=b?(h=v,p=y):b&gt;=m?(h=g,p=m):(h=x,p=b);for(var _=f*(c-1),w=f*h,T=0;T&lt;f;++T,++_,++w){var k=o[_];o[_]=o[w],o[w]=k}var M=s[c-1];s[c-1]=s[h],s[h]=M,h=n(t,e,l,c-1,o,s,p);for(_=f*(c-1),w=f*h,T=0;T&lt;f;++T,++_,++w){k=o[_];o[_]=o[w],o[w]=k}M=s[c-1];if(s[c-1]=s[h],s[h]=M,u&lt;h){for(c=h-1;l&lt;c&amp;&amp;o[f*(c-1)+e]===p;)c-=1;c+=1}else{if(!(h&lt;u))break;for(l=h+1;l&lt;c&amp;&amp;o[f*l+e]===p;)l+=1}}return n(t,e,r,u,o,s,o[f*u+e])};var n=t(&quot;./partition&quot;)(&quot;lo&lt;p0&quot;,[&quot;p0&quot;]);function i(t,e,r,n,i,a){for(var o=2*t,s=o*(r+1)+e,l=r+1;l&lt;n;++l,s+=o)for(var c=i[s],u=l,f=o*(l-1);u&gt;r&amp;&amp;i[f+e]&gt;c;--u,f-=o){for(var h=f,p=f+o,d=0;d&lt;o;++d,++h,++p){var g=i[h];i[h]=i[p],i[p]=g}var m=a[u];a[u]=a[u-1],a[u-1]=m}}},{&quot;./partition&quot;:105}],105:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=&quot;abcdef&quot;.split(&quot;&quot;).concat(e),n=[];t.indexOf(&quot;lo&quot;)&gt;=0&amp;&amp;n.push(&quot;lo=e[k+n]&quot;);t.indexOf(&quot;hi&quot;)&gt;=0&amp;&amp;n.push(&quot;hi=e[k+o]&quot;);return r.push(&quot;for(var j=2*a,k=j*c,l=k,m=c,n=b,o=a+b,p=c;d&gt;p;++p,k+=j){var _;if($)if(m===p)m+=1,l+=j;else{for(var s=0;j&gt;s;++s){var t=e[k+s];e[k+s]=e[l],e[l++]=t}var u=f[p];f[p]=f[m],f[m++]=u}}return m&quot;.replace(&quot;_&quot;,n.join()).replace(&quot;$&quot;,t)),Function.apply(void 0,r)}},{}],106:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e&lt;=128?n(0,e-1,t):function t(e,r,u){var f=(r-e+1)/6|0,h=e+f,p=r-f,d=e+r&gt;&gt;1,g=d-f,m=d+f,v=h,y=g,x=d,b=m,_=p,w=e+1,T=r-1,k=0;l(v,y,u)&amp;&amp;(k=v,v=y,y=k);l(b,_,u)&amp;&amp;(k=b,b=_,_=k);l(v,x,u)&amp;&amp;(k=v,v=x,x=k);l(y,x,u)&amp;&amp;(k=y,y=x,x=k);l(v,b,u)&amp;&amp;(k=v,v=b,b=k);l(x,b,u)&amp;&amp;(k=x,x=b,b=k);l(y,_,u)&amp;&amp;(k=y,y=_,_=k);l(y,x,u)&amp;&amp;(k=y,y=x,x=k);l(b,_,u)&amp;&amp;(k=b,b=_,_=k);for(var M=u[2*y],A=u[2*y+1],S=u[2*b],E=u[2*b+1],C=2*v,L=2*x,I=2*_,P=2*h,z=2*d,O=2*p,D=0;D&lt;2;++D){var R=u[C+D],F=u[L+D],B=u[I+D];u[P+D]=R,u[z+D]=F,u[O+D]=B}a(g,e,u),a(m,r,u);for(var N=w;N&lt;=T;++N)if(c(N,M,A,u))N!==w&amp;&amp;i(N,w,u),++w;else if(!c(N,S,E,u))for(;;){if(c(T,S,E,u)){c(T,M,A,u)?(o(N,w,T,u),++w,--T):(i(N,T,u),--T);break}if(--T&lt;N)break}s(e,w-1,M,A,u),s(r,T+1,S,E,u),w-2-e&lt;=32?n(e,w-2,u):t(e,w-2,u);r-(T+2)&lt;=32?n(T+2,r,u):t(T+2,r,u);T-w&lt;=32?n(w,T,u):t(w,T,u)}(0,e-1,t)};function n(t,e,r){for(var n=2*(t+1),i=t+1;i&lt;=e;++i){for(var a=r[n++],o=r[n++],s=i,l=n-2;s-- &gt;t;){var c=r[l-2],u=r[l-1];if(c&lt;a)break;if(c===a&amp;&amp;u&lt;o)break;r[l]=c,r[l+1]=u,l-=2}r[l]=a,r[l+1]=o}}function i(t,e,r){e*=2;var n=r[t*=2],i=r[t+1];r[t]=r[e],r[t+1]=r[e+1],r[e]=n,r[e+1]=i}function a(t,e,r){e*=2,r[t*=2]=r[e],r[t+1]=r[e+1]}function o(t,e,r,n){e*=2,r*=2;var i=n[t*=2],a=n[t+1];n[t]=n[e],n[t+1]=n[e+1],n[e]=n[r],n[e+1]=n[r+1],n[r]=i,n[r+1]=a}function s(t,e,r,n,i){e*=2,i[t*=2]=i[e],i[e]=r,i[t+1]=i[e+1],i[e+1]=n}function l(t,e,r){e*=2;var n=r[t*=2],i=r[e];return!(n&lt;i)&amp;&amp;(n!==i||r[t+1]&gt;r[e+1])}function c(t,e,r,n){var i=n[t*=2];return i&lt;e||i===e&amp;&amp;n[t+1]&lt;r}},{}],107:[function(t,e,r){&quot;use strict&quot;;e.exports={init:function(t){var e=i.nextPow2(t);o.length&lt;e&amp;&amp;(n.free(o),o=n.mallocInt32(e));s.length&lt;e&amp;&amp;(n.free(s),s=n.mallocInt32(e));l.length&lt;e&amp;&amp;(n.free(l),l=n.mallocInt32(e));c.length&lt;e&amp;&amp;(n.free(c),c=n.mallocInt32(e));u.length&lt;e&amp;&amp;(n.free(u),u=n.mallocInt32(e));f.length&lt;e&amp;&amp;(n.free(f),f=n.mallocInt32(e));var r=8*e;h.length&lt;r&amp;&amp;(n.free(h),h=n.mallocDouble(r))},sweepBipartite:function(t,e,r,n,i,u,f,g,m,v){for(var y=0,x=2*t,b=t-1,_=x-1,w=r;w&lt;n;++w){var T=u[w],k=x*w;h[y++]=i[k+b],h[y++]=-(T+1),h[y++]=i[k+_],h[y++]=T}for(w=f;w&lt;g;++w){T=v[w]+(1&lt;&lt;28);var M=x*w;h[y++]=m[M+b],h[y++]=-T,h[y++]=m[M+_],h[y++]=T}var A=y&gt;&gt;&gt;1;a(h,A);var S=0,E=0;for(w=0;w&lt;A;++w){var C=0|h[2*w+1];if(C&gt;=1&lt;&lt;28)p(l,c,E--,C=C-(1&lt;&lt;28)|0);else if(C&gt;=0)p(o,s,S--,C);else if(C&lt;=-(1&lt;&lt;28)){C=-C-(1&lt;&lt;28)|0;for(var L=0;L&lt;S;++L){if(void 0!==(I=e(o[L],C)))return I}d(l,c,E++,C)}else{C=-C-1|0;for(L=0;L&lt;E;++L){var I;if(void 0!==(I=e(C,l[L])))return I}d(o,s,S++,C)}}},sweepComplete:function(t,e,r,n,i,g,m,v,y,x){for(var b=0,_=2*t,w=t-1,T=_-1,k=r;k&lt;n;++k){var M=g[k]+1&lt;&lt;1,A=_*k;h[b++]=i[A+w],h[b++]=-M,h[b++]=i[A+T],h[b++]=M}for(k=m;k&lt;v;++k){M=x[k]+1&lt;&lt;1;var S=_*k;h[b++]=y[S+w],h[b++]=1|-M,h[b++]=y[S+T],h[b++]=1|M}var E=b&gt;&gt;&gt;1;a(h,E);var C=0,L=0,I=0;for(k=0;k&lt;E;++k){var P=0|h[2*k+1],z=1&amp;P;if(k&lt;E-1&amp;&amp;P&gt;&gt;1==h[2*k+3]&gt;&gt;1&amp;&amp;(z=2,k+=1),P&lt;0){for(var O=-(P&gt;&gt;1)-1,D=0;D&lt;I;++D){if(void 0!==(R=e(u[D],O)))return R}if(0!==z)for(D=0;D&lt;C;++D){if(void 0!==(R=e(o[D],O)))return R}if(1!==z)for(D=0;D&lt;L;++D){var R;if(void 0!==(R=e(l[D],O)))return R}0===z?d(o,s,C++,O):1===z?d(l,c,L++,O):2===z&amp;&amp;d(u,f,I++,O)}else{O=(P&gt;&gt;1)-1;0===z?p(o,s,C--,O):1===z?p(l,c,L--,O):2===z&amp;&amp;p(u,f,I--,O)}}},scanBipartite:function(t,e,r,n,i,l,c,u,f,g,m,v){var y=0,x=2*t,b=e,_=e+t,w=1,T=1;n?T=1&lt;&lt;28:w=1&lt;&lt;28;for(var k=i;k&lt;l;++k){var M=k+w,A=x*k;h[y++]=c[A+b],h[y++]=-M,h[y++]=c[A+_],h[y++]=M}for(k=f;k&lt;g;++k){M=k+T;var S=x*k;h[y++]=m[S+b],h[y++]=-M}var E=y&gt;&gt;&gt;1;a(h,E);var C=0;for(k=0;k&lt;E;++k){var L=0|h[2*k+1];if(L&lt;0){var I=!1;if((M=-L)&gt;=1&lt;&lt;28?(I=!n,M-=1&lt;&lt;28):(I=!!n,M-=1),I)d(o,s,C++,M);else{var P=v[M],z=x*M,O=m[z+e+1],D=m[z+e+1+t];t:for(var R=0;R&lt;C;++R){var F=o[R],B=x*F;if(!(D&lt;c[B+e+1]||c[B+e+1+t]&lt;O)){for(var N=e+2;N&lt;t;++N)if(m[z+N+t]&lt;c[B+N]||c[B+N+t]&lt;m[z+N])continue t;var j,U=u[F];if(void 0!==(j=n?r(P,U):r(U,P)))return j}}}}else p(o,s,C--,L-w)}},scanComplete:function(t,e,r,n,i,s,l,c,u,f,p){for(var d=0,g=2*t,m=e,v=e+t,y=n;y&lt;i;++y){var x=y+(1&lt;&lt;28),b=g*y;h[d++]=s[b+m],h[d++]=-x,h[d++]=s[b+v],h[d++]=x}for(y=c;y&lt;u;++y){x=y+1;var _=g*y;h[d++]=f[_+m],h[d++]=-x}var w=d&gt;&gt;&gt;1;a(h,w);var T=0;for(y=0;y&lt;w;++y){var k=0|h[2*y+1];if(k&lt;0){if((x=-k)&gt;=1&lt;&lt;28)o[T++]=x-(1&lt;&lt;28);else{var M=p[x-=1],A=g*x,S=f[A+e+1],E=f[A+e+1+t];t:for(var C=0;C&lt;T;++C){var L=o[C],I=l[L];if(I===M)break;var P=g*L;if(!(E&lt;s[P+e+1]||s[P+e+1+t]&lt;S)){for(var z=e+2;z&lt;t;++z)if(f[A+z+t]&lt;s[P+z]||s[P+z+t]&lt;f[A+z])continue t;var O=r(I,M);if(void 0!==O)return O}}}}else{for(x=k-(1&lt;&lt;28),C=T-1;C&gt;=0;--C)if(o[C]===x){for(z=C+1;z&lt;T;++z)o[z-1]=o[z];break}--T}}}};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;bit-twiddle&quot;),a=t(&quot;./sort&quot;),o=n.mallocInt32(1024),s=n.mallocInt32(1024),l=n.mallocInt32(1024),c=n.mallocInt32(1024),u=n.mallocInt32(1024),f=n.mallocInt32(1024),h=n.mallocDouble(8192);function p(t,e,r,n){var i=e[n],a=t[r-1];t[i]=a,e[a]=i}function d(t,e,r,n){t[r]=n,e[n]=r}},{&quot;./sort&quot;:106,&quot;bit-twiddle&quot;:97,&quot;typedarray-pool&quot;:595}],108:[function(t,e,r){},{}],109:[function(t,e,r){arguments[4][108][0].apply(r,arguments)},{dup:108}],110:[function(t,e,r){&quot;use strict&quot;;var n,i=&quot;object&quot;==typeof Reflect?Reflect:null,a=i&amp;&amp;&quot;function&quot;==typeof i.apply?i.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=i&amp;&amp;&quot;function&quot;==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(t,e){return new Promise((function(r,n){function i(){void 0!==a&amp;&amp;t.removeListener(&quot;error&quot;,a),r([].slice.call(arguments))}var a;&quot;error&quot;!==e&amp;&amp;(a=function(r){t.removeListener(e,i),n(r)},t.once(&quot;error&quot;,a)),t.once(e,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(t){if(&quot;function&quot;!=typeof t)throw new TypeError('The &quot;listener&quot; argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function f(t,e,r,n){var i,a,o,s;if(c(r),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&amp;&amp;(t.emit(&quot;newListener&quot;,e,r.listener?r.listener:r),a=t._events),o=a[e]),void 0===o)o=a[e]=r,++t._eventsCount;else if(&quot;function&quot;==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=u(t))&gt;0&amp;&amp;o.length&gt;i&amp;&amp;!o.warned){o.warned=!0;var l=new Error(&quot;Possible EventEmitter memory leak detected. &quot;+o.length+&quot; &quot;+String(e)+&quot; listeners added. Use emitter.setMaxListeners() to increase limit&quot;);l.name=&quot;MaxListenersExceededWarning&quot;,l.emitter=t,l.type=e,l.count=o.length,s=l,console&amp;&amp;console.warn&amp;&amp;console.warn(s)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function d(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:&quot;function&quot;==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r&lt;e.length;++r)e[r]=t[r].listener||t[r];return e}(i):m(i,i.length)}function g(t){var e=this._events;if(void 0!==e){var r=e[t];if(&quot;function&quot;==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(t,e){for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n];return r}Object.defineProperty(s,&quot;defaultMaxListeners&quot;,{enumerable:!0,get:function(){return l},set:function(t){if(&quot;number&quot;!=typeof t||t&lt;0||o(t))throw new RangeError('The value of &quot;defaultMaxListeners&quot; is out of range. It must be a non-negative number. Received '+t+&quot;.&quot;);l=t}}),s.init=function(){void 0!==this._events&amp;&amp;this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(t){if(&quot;number&quot;!=typeof t||t&lt;0||o(t))throw new RangeError('The value of &quot;n&quot; is out of range. It must be a non-negative number. Received '+t+&quot;.&quot;);return this._maxListeners=t,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(t){for(var e=[],r=1;r&lt;arguments.length;r++)e.push(arguments[r]);var n=&quot;error&quot;===t,i=this._events;if(void 0!==i)n=n&amp;&amp;void 0===i.error;else if(!n)return!1;if(n){var o;if(e.length&gt;0&amp;&amp;(o=e[0]),o instanceof Error)throw o;var s=new Error(&quot;Unhandled error.&quot;+(o?&quot; (&quot;+o.message+&quot;)&quot;:&quot;&quot;));throw s.context=o,s}var l=i[t];if(void 0===l)return!1;if(&quot;function&quot;==typeof l)a(l,this,e);else{var c=l.length,u=m(l,c);for(r=0;r&lt;c;++r)a(u[r],this,e)}return!0},s.prototype.addListener=function(t,e){return f(this,t,e,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(t,e){return f(this,t,e,!0)},s.prototype.once=function(t,e){return c(e),this.on(t,p(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,p(this,t,e)),this},s.prototype.removeListener=function(t,e){var r,n,i,a,o;if(c(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,t,r.listener||e));else if(&quot;function&quot;!=typeof r){for(i=-1,a=r.length-1;a&gt;=0;a--)if(r[a]===e||r[a].listener===e){o=r[a].listener,i=a;break}if(i&lt;0)return this;0===i?r.shift():function(t,e){for(;e+1&lt;t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&amp;&amp;(n[t]=r[0]),void 0!==n.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,t,o||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&amp;&amp;(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,a=Object.keys(r);for(n=0;n&lt;a.length;++n)&quot;removeListener&quot;!==(i=a[n])&amp;&amp;this.removeAllListeners(i);return this.removeAllListeners(&quot;removeListener&quot;),this._events=Object.create(null),this._eventsCount=0,this}if(&quot;function&quot;==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n&gt;=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return&quot;function&quot;==typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount&gt;0?n(this._events):[]}},{}],111:[function(t,e,r){(function(e){(function(){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh &lt;https://feross.org&gt;
 * @license  MIT
 */
&quot;use strict&quot;;var e=t(&quot;base64-js&quot;),n=t(&quot;ieee754&quot;);r.Buffer=a,r.SlowBuffer=function(t){+t!=t&amp;&amp;(t=0);return a.alloc(+t)},r.INSPECT_MAX_BYTES=50;function i(t){if(t&gt;2147483647)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;');var e=new Uint8Array(t);return e.__proto__=a.prototype,e}function a(t,e,r){if(&quot;number&quot;==typeof t){if(&quot;string&quot;==typeof e)throw new TypeError('The &quot;string&quot; argument must be of type string. Received type number');return l(t)}return o(t,e,r)}function o(t,e,r){if(&quot;string&quot;==typeof t)return function(t,e){&quot;string&quot;==typeof e&amp;&amp;&quot;&quot;!==e||(e=&quot;utf8&quot;);if(!a.isEncoding(e))throw new TypeError(&quot;Unknown encoding: &quot;+e);var r=0|f(t,e),n=i(r),o=n.write(t,e);o!==r&amp;&amp;(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t);if(B(t,ArrayBuffer)||t&amp;&amp;B(t.buffer,ArrayBuffer))return function(t,e,r){if(e&lt;0||t.byteLength&lt;e)throw new RangeError('&quot;offset&quot; is outside of buffer bounds');if(t.byteLength&lt;e+(r||0))throw new RangeError('&quot;length&quot; is outside of buffer bounds');var n;n=void 0===e&amp;&amp;void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return n.__proto__=a.prototype,n}(t,e,r);if(&quot;number&quot;==typeof t)throw new TypeError('The &quot;value&quot; argument must not be of type number. Received type number');var n=t.valueOf&amp;&amp;t.valueOf();if(null!=n&amp;&amp;n!==t)return a.from(n,e,r);var o=function(t){if(a.isBuffer(t)){var e=0|u(t.length),r=i(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return&quot;number&quot;!=typeof t.length||N(t.length)?i(0):c(t);if(&quot;Buffer&quot;===t.type&amp;&amp;Array.isArray(t.data))return c(t.data)}(t);if(o)return o;if(&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.toPrimitive&amp;&amp;&quot;function&quot;==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive](&quot;string&quot;),e,r);throw new TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t)}function s(t){if(&quot;number&quot;!=typeof t)throw new TypeError('&quot;size&quot; argument must be of type number');if(t&lt;0)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;')}function l(t){return s(t),i(t&lt;0?0:0|u(t))}function c(t){for(var e=t.length&lt;0?0:0|u(t.length),r=i(e),n=0;n&lt;e;n+=1)r[n]=255&amp;t[n];return r}function u(t){if(t&gt;=2147483647)throw new RangeError(&quot;Attempt to allocate Buffer larger than maximum size: 0x&quot;+2147483647..toString(16)+&quot; bytes&quot;);return 0|t}function f(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||B(t,ArrayBuffer))return t.byteLength;if(&quot;string&quot;!=typeof t)throw new TypeError('The &quot;string&quot; argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length&gt;2&amp;&amp;!0===arguments[2];if(!n&amp;&amp;0===r)return 0;for(var i=!1;;)switch(e){case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:return r;case&quot;utf8&quot;:case&quot;utf-8&quot;:return D(t).length;case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return 2*r;case&quot;hex&quot;:return r&gt;&gt;&gt;1;case&quot;base64&quot;:return R(t).length;default:if(i)return n?-1:D(t).length;e=(&quot;&quot;+e).toLowerCase(),i=!0}}function h(t,e,r){var n=!1;if((void 0===e||e&lt;0)&amp;&amp;(e=0),e&gt;this.length)return&quot;&quot;;if((void 0===r||r&gt;this.length)&amp;&amp;(r=this.length),r&lt;=0)return&quot;&quot;;if((r&gt;&gt;&gt;=0)&lt;=(e&gt;&gt;&gt;=0))return&quot;&quot;;for(t||(t=&quot;utf8&quot;);;)switch(t){case&quot;hex&quot;:return A(this,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return T(this,e,r);case&quot;ascii&quot;:return k(this,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return M(this,e,r);case&quot;base64&quot;:return w(this,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return S(this,e,r);default:if(n)throw new TypeError(&quot;Unknown encoding: &quot;+t);t=(t+&quot;&quot;).toLowerCase(),n=!0}}function p(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,i){if(0===t.length)return-1;if(&quot;string&quot;==typeof r?(n=r,r=0):r&gt;2147483647?r=2147483647:r&lt;-2147483648&amp;&amp;(r=-2147483648),N(r=+r)&amp;&amp;(r=i?0:t.length-1),r&lt;0&amp;&amp;(r=t.length+r),r&gt;=t.length){if(i)return-1;r=t.length-1}else if(r&lt;0){if(!i)return-1;r=0}if(&quot;string&quot;==typeof e&amp;&amp;(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:g(t,e,r,n,i);if(&quot;number&quot;==typeof e)return e&amp;=255,&quot;function&quot;==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):g(t,[e],r,n,i);throw new TypeError(&quot;val must be string, number or Buffer&quot;)}function g(t,e,r,n,i){var a,o=1,s=t.length,l=e.length;if(void 0!==n&amp;&amp;(&quot;ucs2&quot;===(n=String(n).toLowerCase())||&quot;ucs-2&quot;===n||&quot;utf16le&quot;===n||&quot;utf-16le&quot;===n)){if(t.length&lt;2||e.length&lt;2)return-1;o=2,s/=2,l/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var u=-1;for(a=r;a&lt;s;a++)if(c(t,a)===c(e,-1===u?0:a-u)){if(-1===u&amp;&amp;(u=a),a-u+1===l)return u*o}else-1!==u&amp;&amp;(a-=a-u),u=-1}else for(r+l&gt;s&amp;&amp;(r=s-l),a=r;a&gt;=0;a--){for(var f=!0,h=0;h&lt;l;h++)if(c(t,a+h)!==c(e,h)){f=!1;break}if(f)return a}return-1}function m(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))&gt;i&amp;&amp;(n=i):n=i;var a=e.length;n&gt;a/2&amp;&amp;(n=a/2);for(var o=0;o&lt;n;++o){var s=parseInt(e.substr(2*o,2),16);if(N(s))return o;t[r+o]=s}return o}function v(t,e,r,n){return F(D(e,t.length-r),t,r,n)}function y(t,e,r,n){return F(function(t){for(var e=[],r=0;r&lt;t.length;++r)e.push(255&amp;t.charCodeAt(r));return e}(e),t,r,n)}function x(t,e,r,n){return y(t,e,r,n)}function b(t,e,r,n){return F(R(e),t,r,n)}function _(t,e,r,n){return F(function(t,e){for(var r,n,i,a=[],o=0;o&lt;t.length&amp;&amp;!((e-=2)&lt;0);++o)r=t.charCodeAt(o),n=r&gt;&gt;8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function w(t,r,n){return 0===r&amp;&amp;n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function T(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i&lt;r;){var a,o,s,l,c=t[i],u=null,f=c&gt;239?4:c&gt;223?3:c&gt;191?2:1;if(i+f&lt;=r)switch(f){case 1:c&lt;128&amp;&amp;(u=c);break;case 2:128==(192&amp;(a=t[i+1]))&amp;&amp;(l=(31&amp;c)&lt;&lt;6|63&amp;a)&gt;127&amp;&amp;(u=l);break;case 3:a=t[i+1],o=t[i+2],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;(l=(15&amp;c)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;o)&gt;2047&amp;&amp;(l&lt;55296||l&gt;57343)&amp;&amp;(u=l);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;128==(192&amp;s)&amp;&amp;(l=(15&amp;c)&lt;&lt;18|(63&amp;a)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;s)&gt;65535&amp;&amp;l&lt;1114112&amp;&amp;(u=l)}null===u?(u=65533,f=1):u&gt;65535&amp;&amp;(u-=65536,n.push(u&gt;&gt;&gt;10&amp;1023|55296),u=56320|1023&amp;u),n.push(u),i+=f}return function(t){var e=t.length;if(e&lt;=4096)return String.fromCharCode.apply(String,t);var r=&quot;&quot;,n=0;for(;n&lt;e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}r.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||&quot;undefined&quot;==typeof console||&quot;function&quot;!=typeof console.error||console.error(&quot;This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.&quot;),Object.defineProperty(a.prototype,&quot;parent&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,&quot;offset&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.species&amp;&amp;a[Symbol.species]===a&amp;&amp;Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(t,e,r){return o(t,e,r)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(t,e,r){return function(t,e,r){return s(t),t&lt;=0?i(t):void 0!==e?&quot;string&quot;==typeof r?i(t).fill(e,r):i(t).fill(e):i(t)}(t,e,r)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&amp;&amp;!0===t._isBuffer&amp;&amp;t!==a.prototype},a.compare=function(t,e){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),B(e,Uint8Array)&amp;&amp;(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError('The &quot;buf1&quot;, &quot;buf2&quot; arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i&lt;o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r&lt;n?-1:n&lt;r?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case&quot;hex&quot;:case&quot;utf8&quot;:case&quot;utf-8&quot;:case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:case&quot;base64&quot;:case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return!0;default:return!1}},a.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);var r;if(void 0===e)for(e=0,r=0;r&lt;t.length;++r)e+=t[r].length;var n=a.allocUnsafe(e),i=0;for(r=0;r&lt;t.length;++r){var o=t[r];if(B(o,Uint8Array)&amp;&amp;(o=a.from(o)),!a.isBuffer(o))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(&quot;Buffer size must be a multiple of 16-bits&quot;);for(var e=0;e&lt;t;e+=2)p(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(&quot;Buffer size must be a multiple of 32-bits&quot;);for(var e=0;e&lt;t;e+=4)p(this,e,e+3),p(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(&quot;Buffer size must be a multiple of 64-bits&quot;);for(var e=0;e&lt;t;e+=8)p(this,e,e+7),p(this,e+1,e+6),p(this,e+2,e+5),p(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?&quot;&quot;:0===arguments.length?T(this,0,t):h.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError(&quot;Argument must be a Buffer&quot;);return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t=&quot;&quot;,e=r.INSPECT_MAX_BYTES;return t=this.toString(&quot;hex&quot;,0,e).replace(/(.{2})/g,&quot;$1 &quot;).trim(),this.length&gt;e&amp;&amp;(t+=&quot; ... &quot;),&quot;&lt;Buffer &quot;+t+&quot;&gt;&quot;},a.prototype.compare=function(t,e,r,n,i){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The &quot;target&quot; argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&amp;&amp;(e=0),void 0===r&amp;&amp;(r=t?t.length:0),void 0===n&amp;&amp;(n=0),void 0===i&amp;&amp;(i=this.length),e&lt;0||r&gt;t.length||n&lt;0||i&gt;this.length)throw new RangeError(&quot;out of range index&quot;);if(n&gt;=i&amp;&amp;e&gt;=r)return 0;if(n&gt;=i)return-1;if(e&gt;=r)return 1;if(this===t)return 0;for(var o=(i&gt;&gt;&gt;=0)-(n&gt;&gt;&gt;=0),s=(r&gt;&gt;&gt;=0)-(e&gt;&gt;&gt;=0),l=Math.min(o,s),c=this.slice(n,i),u=t.slice(e,r),f=0;f&lt;l;++f)if(c[f]!==u[f]){o=c[f],s=u[f];break}return o&lt;s?-1:s&lt;o?1:0},a.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return d(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return d(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){if(void 0===e)n=&quot;utf8&quot;,r=this.length,e=0;else if(void 0===r&amp;&amp;&quot;string&quot;==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error(&quot;Buffer.write(string, encoding, offset[, length]) is no longer supported&quot;);e&gt;&gt;&gt;=0,isFinite(r)?(r&gt;&gt;&gt;=0,void 0===n&amp;&amp;(n=&quot;utf8&quot;)):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r&gt;i)&amp;&amp;(r=i),t.length&gt;0&amp;&amp;(r&lt;0||e&lt;0)||e&gt;this.length)throw new RangeError(&quot;Attempt to write outside buffer bounds&quot;);n||(n=&quot;utf8&quot;);for(var a=!1;;)switch(n){case&quot;hex&quot;:return m(this,t,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return v(this,t,e,r);case&quot;ascii&quot;:return y(this,t,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return x(this,t,e,r);case&quot;base64&quot;:return b(this,t,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return _(this,t,e,r);default:if(a)throw new TypeError(&quot;Unknown encoding: &quot;+n);n=(&quot;&quot;+n).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:&quot;Buffer&quot;,data:Array.prototype.slice.call(this._arr||this,0)}};function k(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(127&amp;t[i]);return n}function M(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(t[i]);return n}function A(t,e,r){var n=t.length;(!e||e&lt;0)&amp;&amp;(e=0),(!r||r&lt;0||r&gt;n)&amp;&amp;(r=n);for(var i=&quot;&quot;,a=e;a&lt;r;++a)i+=O(t[a]);return i}function S(t,e,r){for(var n=t.slice(e,r),i=&quot;&quot;,a=0;a&lt;n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function E(t,e,r){if(t%1!=0||t&lt;0)throw new RangeError(&quot;offset is not uint&quot;);if(t+e&gt;r)throw new RangeError(&quot;Trying to access beyond buffer length&quot;)}function C(t,e,r,n,i,o){if(!a.isBuffer(t))throw new TypeError('&quot;buffer&quot; argument must be a Buffer instance');if(e&gt;i||e&lt;o)throw new RangeError('&quot;value&quot; argument is out of bounds');if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;)}function L(t,e,r,n,i,a){if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;);if(r&lt;0)throw new RangeError(&quot;Index out of range&quot;)}function I(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||L(t,0,r,4),n.write(t,e,r,i,23,4),r+4}function P(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||L(t,0,r,8),n.write(t,e,r,i,52,8),r+8}a.prototype.slice=function(t,e){var r=this.length;(t=~~t)&lt;0?(t+=r)&lt;0&amp;&amp;(t=0):t&gt;r&amp;&amp;(t=r),(e=void 0===e?r:~~e)&lt;0?(e+=r)&lt;0&amp;&amp;(e=0):e&gt;r&amp;&amp;(e=r),e&lt;t&amp;&amp;(e=t);var n=this.subarray(t,e);return n.__proto__=a.prototype,n},a.prototype.readUIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n},a.prototype.readUIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t+--e],i=1;e&gt;0&amp;&amp;(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]|this[t+1]&lt;&lt;8},a.prototype.readUInt16BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]&lt;&lt;8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),(this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),16777216*this[t]+(this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n&gt;=(i*=128)&amp;&amp;(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n&gt;0&amp;&amp;(i*=256);)a+=this[t+--n]*i;return a&gt;=(i*=128)&amp;&amp;(a-=Math.pow(2,8*e)),a},a.prototype.readInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),128&amp;this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t]|this[t+1]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t+1]|this[t]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16|this[t+3]&lt;&lt;24},a.prototype.readInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]&lt;&lt;24|this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||C(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(i*=256);)this[e+a]=t/i&amp;255;return e+r},a.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||C(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&amp;t;--i&gt;=0&amp;&amp;(a*=256);)this[e+i]=t/a&amp;255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,1,255,0),this[e]=255&amp;t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,65535,0),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,65535,0),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,4294967295,0),this[e+3]=t&gt;&gt;&gt;24,this[e+2]=t&gt;&gt;&gt;16,this[e+1]=t&gt;&gt;&gt;8,this[e]=255&amp;t,e+4},a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,4294967295,0),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a-1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&amp;t;--a&gt;=0&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a+1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,1,127,-128),t&lt;0&amp;&amp;(t=255+t+1),this[e]=255&amp;t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,32767,-32768),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,32767,-32768),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,2147483647,-2147483648),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,this[e+2]=t&gt;&gt;&gt;16,this[e+3]=t&gt;&gt;&gt;24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,2147483647,-2147483648),t&lt;0&amp;&amp;(t=4294967295+t+1),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeFloatLE=function(t,e,r){return I(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return I(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return P(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return P(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw new TypeError(&quot;argument should be a Buffer&quot;);if(r||(r=0),n||0===n||(n=this.length),e&gt;=t.length&amp;&amp;(e=t.length),e||(e=0),n&gt;0&amp;&amp;n&lt;r&amp;&amp;(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e&lt;0)throw new RangeError(&quot;targetStart out of bounds&quot;);if(r&lt;0||r&gt;=this.length)throw new RangeError(&quot;Index out of range&quot;);if(n&lt;0)throw new RangeError(&quot;sourceEnd out of bounds&quot;);n&gt;this.length&amp;&amp;(n=this.length),t.length-e&lt;n-r&amp;&amp;(n=t.length-e+r);var i=n-r;if(this===t&amp;&amp;&quot;function&quot;==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&amp;&amp;r&lt;e&amp;&amp;e&lt;n)for(var o=i-1;o&gt;=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},a.prototype.fill=function(t,e,r,n){if(&quot;string&quot;==typeof t){if(&quot;string&quot;==typeof e?(n=e,e=0,r=this.length):&quot;string&quot;==typeof r&amp;&amp;(n=r,r=this.length),void 0!==n&amp;&amp;&quot;string&quot;!=typeof n)throw new TypeError(&quot;encoding must be a string&quot;);if(&quot;string&quot;==typeof n&amp;&amp;!a.isEncoding(n))throw new TypeError(&quot;Unknown encoding: &quot;+n);if(1===t.length){var i=t.charCodeAt(0);(&quot;utf8&quot;===n&amp;&amp;i&lt;128||&quot;latin1&quot;===n)&amp;&amp;(t=i)}}else&quot;number&quot;==typeof t&amp;&amp;(t&amp;=255);if(e&lt;0||this.length&lt;e||this.length&lt;r)throw new RangeError(&quot;Out of range index&quot;);if(r&lt;=e)return this;var o;if(e&gt;&gt;&gt;=0,r=void 0===r?this.length:r&gt;&gt;&gt;0,t||(t=0),&quot;number&quot;==typeof t)for(o=e;o&lt;r;++o)this[o]=t;else{var s=a.isBuffer(t)?t:a.from(t,n),l=s.length;if(0===l)throw new TypeError('The value &quot;'+t+'&quot; is invalid for argument &quot;value&quot;');for(o=0;o&lt;r-e;++o)this[o+e]=s[o%l]}return this};var z=/[^+/0-9A-Za-z-_]/g;function O(t){return t&lt;16?&quot;0&quot;+t.toString(16):t.toString(16)}function D(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o&lt;n;++o){if((r=t.charCodeAt(o))&gt;55295&amp;&amp;r&lt;57344){if(!i){if(r&gt;56319){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}if(o+1===n){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}i=r;continue}if(r&lt;56320){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189),i=r;continue}r=65536+(i-55296&lt;&lt;10|r-56320)}else i&amp;&amp;(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);if(i=null,r&lt;128){if((e-=1)&lt;0)break;a.push(r)}else if(r&lt;2048){if((e-=2)&lt;0)break;a.push(r&gt;&gt;6|192,63&amp;r|128)}else if(r&lt;65536){if((e-=3)&lt;0)break;a.push(r&gt;&gt;12|224,r&gt;&gt;6&amp;63|128,63&amp;r|128)}else{if(!(r&lt;1114112))throw new Error(&quot;Invalid code point&quot;);if((e-=4)&lt;0)break;a.push(r&gt;&gt;18|240,r&gt;&gt;12&amp;63|128,r&gt;&gt;6&amp;63|128,63&amp;r|128)}}return a}function R(t){return e.toByteArray(function(t){if((t=(t=t.split(&quot;=&quot;)[0]).trim().replace(z,&quot;&quot;)).length&lt;2)return&quot;&quot;;for(;t.length%4!=0;)t+=&quot;=&quot;;return t}(t))}function F(t,e,r,n){for(var i=0;i&lt;n&amp;&amp;!(i+r&gt;=e.length||i&gt;=t.length);++i)e[i+r]=t[i];return i}function B(t,e){return t instanceof e||null!=t&amp;&amp;null!=t.constructor&amp;&amp;null!=t.constructor.name&amp;&amp;t.constructor.name===e.name}function N(t){return t!=t}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;base64-js&quot;:79,buffer:111,ieee754:442}],112:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/monotone&quot;),i=t(&quot;./lib/triangulation&quot;),a=t(&quot;./lib/delaunay&quot;),o=t(&quot;./lib/filter&quot;);function s(t){return[Math.min(t[0],t[1]),Math.max(t[0],t[1])]}function l(t,e){return t[0]-e[0]||t[1]-e[1]}function c(t,e,r){return e in t?t[e]:r}e.exports=function(t,e,r){Array.isArray(e)?(r=r||{},e=e||[]):(r=e||{},e=[]);var u=!!c(r,&quot;delaunay&quot;,!0),f=!!c(r,&quot;interior&quot;,!0),h=!!c(r,&quot;exterior&quot;,!0),p=!!c(r,&quot;infinity&quot;,!1);if(!f&amp;&amp;!h||0===t.length)return[];var d=n(t,e);if(u||f!==h||p){for(var g=i(t.length,function(t){return t.map(s).sort(l)}(e)),m=0;m&lt;d.length;++m){var v=d[m];g.addTriangle(v[0],v[1],v[2])}return u&amp;&amp;a(t,g),h?f?p?o(g,0,p):g.cells():o(g,1,p):o(g,-1)}return d}},{&quot;./lib/delaunay&quot;:113,&quot;./lib/filter&quot;:114,&quot;./lib/monotone&quot;:115,&quot;./lib/triangulation&quot;:116}],113:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-in-sphere&quot;)[4];t(&quot;binary-search-bounds&quot;);function i(t,e,r,i,a,o){var s=e.opposite(i,a);if(!(s&lt;0)){if(a&lt;i){var l=i;i=a,a=l,l=o,o=s,s=l}e.isConstraint(i,a)||n(t[i],t[a],t[o],t[s])&lt;0&amp;&amp;r.push(i,a)}}e.exports=function(t,e){for(var r=[],a=t.length,o=e.stars,s=0;s&lt;a;++s)for(var l=o[s],c=1;c&lt;l.length;c+=2){if(!((p=l[c])&lt;s)&amp;&amp;!e.isConstraint(s,p)){for(var u=l[c-1],f=-1,h=1;h&lt;l.length;h+=2)if(l[h-1]===p){f=l[h];break}f&lt;0||n(t[s],t[p],t[u],t[f])&lt;0&amp;&amp;r.push(s,p)}}for(;r.length&gt;0;){for(var p=r.pop(),d=(s=r.pop(),u=-1,f=-1,l=o[s],1);d&lt;l.length;d+=2){var g=l[d-1],m=l[d];g===p?f=m:m===p&amp;&amp;(u=g)}u&lt;0||f&lt;0||(n(t[s],t[p],t[u],t[f])&gt;=0||(e.flip(s,p),i(t,e,r,u,s,f),i(t,e,r,s,f,u),i(t,e,r,f,p,u),i(t,e,r,p,u,f)))}}},{&quot;binary-search-bounds&quot;:96,&quot;robust-in-sphere&quot;:546}],114:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;binary-search-bounds&quot;);function a(t,e,r,n,i,a,o){this.cells=t,this.neighbor=e,this.flags=n,this.constraint=r,this.active=i,this.next=a,this.boundary=o}function o(t,e){return t[0]-e[0]||t[1]-e[1]||t[2]-e[2]}e.exports=function(t,e,r){var n=function(t,e){for(var r=t.cells(),n=r.length,i=0;i&lt;n;++i){var s=(v=r[i])[0],l=v[1],c=v[2];l&lt;c?l&lt;s&amp;&amp;(v[0]=l,v[1]=c,v[2]=s):c&lt;s&amp;&amp;(v[0]=c,v[1]=s,v[2]=l)}r.sort(o);var u=new Array(n);for(i=0;i&lt;u.length;++i)u[i]=0;var f=[],h=[],p=new Array(3*n),d=new Array(3*n),g=null;e&amp;&amp;(g=[]);var m=new a(r,p,d,u,f,h,g);for(i=0;i&lt;n;++i)for(var v=r[i],y=0;y&lt;3;++y){s=v[y],l=v[(y+1)%3];var x=p[3*i+y]=m.locate(l,s,t.opposite(l,s)),b=d[3*i+y]=t.isConstraint(s,l);x&lt;0&amp;&amp;(b?h.push(i):(f.push(i),u[i]=1),e&amp;&amp;g.push([l,s,-1]))}return m}(t,r);if(0===e)return r?n.cells.concat(n.boundary):n.cells;var i=1,s=n.active,l=n.next,c=n.flags,u=n.cells,f=n.constraint,h=n.neighbor;for(;s.length&gt;0||l.length&gt;0;){for(;s.length&gt;0;){var p=s.pop();if(c[p]!==-i){c[p]=i;u[p];for(var d=0;d&lt;3;++d){var g=h[3*p+d];g&gt;=0&amp;&amp;0===c[g]&amp;&amp;(f[3*p+d]?l.push(g):(s.push(g),c[g]=i))}}}var m=l;l=s,s=m,l.length=0,i=-i}var v=function(t,e,r){for(var n=0,i=0;i&lt;t.length;++i)e[i]===r&amp;&amp;(t[n++]=t[i]);return t.length=n,t}(u,c,e);if(r)return v.concat(n.boundary);return v},a.prototype.locate=(n=[0,0,0],function(t,e,r){var a=t,s=e,l=r;return e&lt;r?e&lt;t&amp;&amp;(a=e,s=r,l=t):r&lt;t&amp;&amp;(a=r,s=t,l=e),a&lt;0?-1:(n[0]=a,n[1]=s,n[2]=l,i.eq(this.cells,n,o))})},{&quot;binary-search-bounds&quot;:96}],115:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;robust-orientation&quot;)[3];function a(t,e,r,n,i){this.a=t,this.b=e,this.idx=r,this.lowerIds=n,this.upperIds=i}function o(t,e,r,n){this.a=t,this.b=e,this.type=r,this.idx=n}function s(t,e){var r=t.a[0]-e.a[0]||t.a[1]-e.a[1]||t.type-e.type;return r||(0!==t.type&amp;&amp;(r=i(t.a,t.b,e.b))?r:t.idx-e.idx)}function l(t,e){return i(t.a,t.b,e)}function c(t,e,r,a,o){for(var s=n.lt(e,a,l),c=n.gt(e,a,l),u=s;u&lt;c;++u){for(var f=e[u],h=f.lowerIds,p=h.length;p&gt;1&amp;&amp;i(r[h[p-2]],r[h[p-1]],a)&gt;0;)t.push([h[p-1],h[p-2],o]),p-=1;h.length=p,h.push(o);var d=f.upperIds;for(p=d.length;p&gt;1&amp;&amp;i(r[d[p-2]],r[d[p-1]],a)&lt;0;)t.push([d[p-2],d[p-1],o]),p-=1;d.length=p,d.push(o)}}function u(t,e){var r;return(r=t.a[0]&lt;e.a[0]?i(t.a,t.b,e.a):i(e.b,e.a,t.a))?r:(r=e.b[0]&lt;t.b[0]?i(t.a,t.b,e.b):i(e.b,e.a,t.b))||t.idx-e.idx}function f(t,e,r){var i=n.le(t,r,u),o=t[i],s=o.upperIds,l=s[s.length-1];o.upperIds=[l],t.splice(i+1,0,new a(r.a,r.b,r.idx,[l],s))}function h(t,e,r){var i=r.a;r.a=r.b,r.b=i;var a=n.eq(t,r,u),o=t[a];t[a-1].upperIds=o.upperIds,t.splice(a,1)}e.exports=function(t,e){for(var r=t.length,n=e.length,i=[],l=0;l&lt;r;++l)i.push(new o(t[l],null,0,l));for(l=0;l&lt;n;++l){var u=e[l],p=t[u[0]],d=t[u[1]];p[0]&lt;d[0]?i.push(new o(p,d,2,l),new o(d,p,1,l)):p[0]&gt;d[0]&amp;&amp;i.push(new o(d,p,2,l),new o(p,d,1,l))}i.sort(s);for(var g=i[0].a[0]-(1+Math.abs(i[0].a[0]))*Math.pow(2,-52),m=[new a([g,1],[g,0],-1,[],[],[],[])],v=[],y=(l=0,i.length);l&lt;y;++l){var x=i[l],b=x.type;0===b?c(v,m,t,x.a,x.idx):2===b?f(m,t,x):h(m,t,x)}return v}},{&quot;binary-search-bounds&quot;:96,&quot;robust-orientation&quot;:548}],116:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;);function i(t,e){this.stars=t,this.edges=e}e.exports=function(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=[];return new i(r,e)};var a=i.prototype;function o(t,e,r){for(var n=1,i=t.length;n&lt;i;n+=2)if(t[n-1]===e&amp;&amp;t[n]===r)return t[n-1]=t[i-2],t[n]=t[i-1],void(t.length=i-2)}a.isConstraint=function(){var t=[0,0];function e(t,e){return t[0]-e[0]||t[1]-e[1]}return function(r,i){return t[0]=Math.min(r,i),t[1]=Math.max(r,i),n.eq(this.edges,t,e)&gt;=0}}(),a.removeTriangle=function(t,e,r){var n=this.stars;o(n[t],e,r),o(n[e],r,t),o(n[r],t,e)},a.addTriangle=function(t,e,r){var n=this.stars;n[t].push(e,r),n[e].push(r,t),n[r].push(t,e)},a.opposite=function(t,e){for(var r=this.stars[e],n=1,i=r.length;n&lt;i;n+=2)if(r[n]===t)return r[n-1];return-1},a.flip=function(t,e){var r=this.opposite(t,e),n=this.opposite(e,t);this.removeTriangle(t,e,r),this.removeTriangle(e,t,n),this.addTriangle(t,n,r),this.addTriangle(e,r,n)},a.edges=function(){for(var t=this.stars,e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;a+=2)e.push([i[a],i[a+1]]);return e},a.cells=function(){for(var t=this.stars,e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;a+=2){var s=i[a],l=i[a+1];r&lt;Math.min(s,l)&amp;&amp;e.push([r,s,l])}return e}},{&quot;binary-search-bounds&quot;:96}],117:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=1,r=1;r&lt;t.length;++r)for(var n=0;n&lt;r;++n)if(t[r]&lt;t[n])e=-e;else if(t[n]===t[r])return 0;return e}},{}],118:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;dup&quot;),i=t(&quot;robust-linear-solve&quot;);function a(t,e){for(var r=0,n=t.length,i=0;i&lt;n;++i)r+=t[i]*e[i];return r}function o(t){var e=t.length;if(0===e)return[];t[0].length;var r=n([t.length+1,t.length+1],1),o=n([t.length+1],1);r[e][e]=0;for(var s=0;s&lt;e;++s){for(var l=0;l&lt;=s;++l)r[l][s]=r[s][l]=2*a(t[s],t[l]);o[s]=a(t[s],t[s])}var c=i(r,o),u=0,f=c[e+1];for(s=0;s&lt;f.length;++s)u+=f[s];var h=new Array(e);for(s=0;s&lt;e;++s){f=c[s];var p=0;for(l=0;l&lt;f.length;++l)p+=f[l];h[s]=p/u}return h}function s(t){if(0===t.length)return[];for(var e=t[0].length,r=n([e]),i=o(t),a=0;a&lt;t.length;++a)for(var s=0;s&lt;e;++s)r[s]+=t[a][s]*i[a];return r}s.barycenetric=o,e.exports=s},{dup:176,&quot;robust-linear-solve&quot;:547}],119:[function(t,e,r){e.exports=function(t){for(var e=n(t),r=0,i=0;i&lt;t.length;++i)for(var a=t[i],o=0;o&lt;e.length;++o)r+=Math.pow(a[o]-e[o],2);return Math.sqrt(r/t.length)};var n=t(&quot;circumcenter&quot;)},{circumcenter:118}],120:[function(t,e,r){e.exports=function(t,e,r){return e&lt;r?t&lt;e?e:t&gt;r?r:t:t&lt;r?r:t&gt;e?e:t}},{}],121:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n;if(r){n=e;for(var i=new Array(e.length),a=0;a&lt;e.length;++a){var o=e[a];i[a]=[o[0],o[1],r[a]]}e=i}var s=function(t,e,r){var n=d(t,[],p(t));return v(e,n,r),!!n}(t,e,!!r);for(;y(t,e,!!r);)s=!0;if(r&amp;&amp;s){n.length=0,r.length=0;for(a=0;a&lt;e.length;++a){o=e[a];n.push([o[0],o[1]]),r.push(o[2])}}return s};var n=t(&quot;union-find&quot;),i=t(&quot;box-intersect&quot;),a=t(&quot;robust-segment-intersect&quot;),o=t(&quot;big-rat&quot;),s=t(&quot;big-rat/cmp&quot;),l=t(&quot;big-rat/to-float&quot;),c=t(&quot;rat-vec&quot;),u=t(&quot;nextafter&quot;),f=t(&quot;./lib/rat-seg-intersect&quot;);function h(t){var e=l(t);return[u(e,-1/0),u(e,1/0)]}function p(t){for(var e=new Array(t.length),r=0;r&lt;t.length;++r){var n=t[r];e[r]=[u(n[0],-1/0),u(n[1],-1/0),u(n[0],1/0),u(n[1],1/0)]}return e}function d(t,e,r){for(var a=e.length,o=new n(a),s=[],l=0;l&lt;e.length;++l){var c=e[l],f=h(c[0]),p=h(c[1]);s.push([u(f[0],-1/0),u(p[0],-1/0),u(f[1],1/0),u(p[1],1/0)])}i(s,(function(t,e){o.link(t,e)}));var d=!0,g=new Array(a);for(l=0;l&lt;a;++l){(v=o.find(l))!==l&amp;&amp;(d=!1,t[v]=[Math.min(t[l][0],t[v][0]),Math.min(t[l][1],t[v][1])])}if(d)return null;var m=0;for(l=0;l&lt;a;++l){var v;(v=o.find(l))===l?(g[l]=m,t[m++]=t[l]):g[l]=-1}t.length=m;for(l=0;l&lt;a;++l)g[l]&lt;0&amp;&amp;(g[l]=g[o.find(l)]);return g}function g(t,e){return t[0]-e[0]||t[1]-e[1]}function m(t,e){var r=t[0]-e[0]||t[1]-e[1];return r||(t[2]&lt;e[2]?-1:t[2]&gt;e[2]?1:0)}function v(t,e,r){if(0!==t.length){if(e)for(var n=0;n&lt;t.length;++n){var i=e[(o=t[n])[0]],a=e[o[1]];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}else for(n=0;n&lt;t.length;++n){var o;i=(o=t[n])[0],a=o[1];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}r?t.sort(m):t.sort(g);var s=1;for(n=1;n&lt;t.length;++n){var l=t[n-1],c=t[n];(c[0]!==l[0]||c[1]!==l[1]||r&amp;&amp;c[2]!==l[2])&amp;&amp;(t[s++]=c)}t.length=s}}function y(t,e,r){var n=function(t,e){for(var r=new Array(e.length),n=0;n&lt;e.length;++n){var i=e[n],a=t[i[0]],o=t[i[1]];r[n]=[u(Math.min(a[0],o[0]),-1/0),u(Math.min(a[1],o[1]),-1/0),u(Math.max(a[0],o[0]),1/0),u(Math.max(a[1],o[1]),1/0)]}return r}(t,e),h=function(t,e,r){var n=[];return i(r,(function(r,i){var o=e[r],s=e[i];if(o[0]!==s[0]&amp;&amp;o[0]!==s[1]&amp;&amp;o[1]!==s[0]&amp;&amp;o[1]!==s[1]){var l=t[o[0]],c=t[o[1]],u=t[s[0]],f=t[s[1]];a(l,c,u,f)&amp;&amp;n.push([r,i])}})),n}(t,e,n),g=p(t),m=function(t,e,r,n){var o=[];return i(r,n,(function(r,n){var i=e[r];if(i[0]!==n&amp;&amp;i[1]!==n){var s=t[n],l=t[i[0]],c=t[i[1]];a(l,c,s,s)&amp;&amp;o.push([r,n])}})),o}(t,e,n,g),y=d(t,function(t,e,r,n,i){var a,u,h=t.map((function(t){return[o(t[0]),o(t[1])]}));for(a=0;a&lt;r.length;++a){var p=r[a];u=p[0];var d=p[1],g=e[u],m=e[d],v=f(c(t[g[0]]),c(t[g[1]]),c(t[m[0]]),c(t[m[1]]));if(v){var y=t.length;t.push([l(v[0]),l(v[1])]),h.push(v),n.push([u,y],[d,y])}}for(n.sort((function(t,e){if(t[0]!==e[0])return t[0]-e[0];var r=h[t[1]],n=h[e[1]];return s(r[0],n[0])||s(r[1],n[1])})),a=n.length-1;a&gt;=0;--a){var x=e[u=(S=n[a])[0]],b=x[0],_=x[1],w=t[b],T=t[_];if((w[0]-T[0]||w[1]-T[1])&lt;0){var k=b;b=_,_=k}x[0]=b;var M,A=x[1]=S[1];for(i&amp;&amp;(M=x[2]);a&gt;0&amp;&amp;n[a-1][0]===u;){var S,E=(S=n[--a])[1];i?e.push([A,E,M]):e.push([A,E]),A=E}i?e.push([A,_,M]):e.push([A,_])}return h}(t,e,h,m,r));return v(e,y,r),!!y||(h.length&gt;0||m.length&gt;0)}},{&quot;./lib/rat-seg-intersect&quot;:122,&quot;big-rat&quot;:83,&quot;big-rat/cmp&quot;:81,&quot;big-rat/to-float&quot;:95,&quot;box-intersect&quot;:101,nextafter:496,&quot;rat-vec&quot;:530,&quot;robust-segment-intersect&quot;:551,&quot;union-find&quot;:596}],122:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var a=s(e,t),f=s(n,r),h=u(a,f);if(0===o(h))return null;var p=s(t,r),d=u(f,p),g=i(d,h),m=c(a,g);return l(t,m)};var n=t(&quot;big-rat/mul&quot;),i=t(&quot;big-rat/div&quot;),a=t(&quot;big-rat/sub&quot;),o=t(&quot;big-rat/sign&quot;),s=t(&quot;rat-vec/sub&quot;),l=t(&quot;rat-vec/add&quot;),c=t(&quot;rat-vec/muls&quot;);function u(t,e){return a(n(t[0],e[1]),n(t[1],e[0]))}},{&quot;big-rat/div&quot;:82,&quot;big-rat/mul&quot;:92,&quot;big-rat/sign&quot;:93,&quot;big-rat/sub&quot;:94,&quot;rat-vec/add&quot;:529,&quot;rat-vec/muls&quot;:531,&quot;rat-vec/sub&quot;:532}],123:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;clamp&quot;);function i(t,e){null==e&amp;&amp;(e=!0);var r=t[0],i=t[1],a=t[2],o=t[3];return null==o&amp;&amp;(o=e?1:255),e&amp;&amp;(r*=255,i*=255,a*=255,o*=255),16777216*(r=255&amp;n(r,0,255))+((i=255&amp;n(i,0,255))&lt;&lt;16)+((a=255&amp;n(a,0,255))&lt;&lt;8)+(o=255&amp;n(o,0,255))}e.exports=i,e.exports.to=i,e.exports.from=function(t,e){var r=(t=+t)&gt;&gt;&gt;24,n=(16711680&amp;t)&gt;&gt;&gt;16,i=(65280&amp;t)&gt;&gt;&gt;8,a=255&amp;t;return!1===e?[r,n,i,a]:[r/255,n/255,i/255,a/255]}},{clamp:120}],124:[function(t,e,r){&quot;use strict&quot;;e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],125:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-rgba&quot;),i=t(&quot;clamp&quot;),a=t(&quot;dtype&quot;);e.exports=function(t,e){&quot;float&quot;!==e&amp;&amp;e||(e=&quot;array&quot;),&quot;uint&quot;===e&amp;&amp;(e=&quot;uint8&quot;),&quot;uint_clamped&quot;===e&amp;&amp;(e=&quot;uint8_clamped&quot;);var r=new(a(e))(4),o=&quot;uint8&quot;!==e&amp;&amp;&quot;uint8_clamped&quot;!==e;return t.length&amp;&amp;&quot;string&quot;!=typeof t||((t=n(t))[0]/=255,t[1]/=255,t[2]/=255),function(t){return t instanceof Uint8Array||t instanceof Uint8ClampedArray||!!(Array.isArray(t)&amp;&amp;(t[0]&gt;1||0===t[0])&amp;&amp;(t[1]&gt;1||0===t[1])&amp;&amp;(t[2]&gt;1||0===t[2])&amp;&amp;(!t[3]||t[3]&gt;1))}(t)?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:255,o&amp;&amp;(r[0]/=255,r[1]/=255,r[2]/=255,r[3]/=255),r):(o?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:1):(r[0]=i(Math.floor(255*t[0]),0,255),r[1]=i(Math.floor(255*t[1]),0,255),r[2]=i(Math.floor(255*t[2]),0,255),r[3]=null==t[3]?255:i(Math.floor(255*t[3]),0,255)),r)}},{clamp:120,&quot;color-rgba&quot;:127,dtype:175}],126:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;color-name&quot;),i=t(&quot;is-plain-obj&quot;),a=t(&quot;defined&quot;);e.exports=function(t){var e,s,l=[],c=1;if(&quot;string&quot;==typeof t)if(n[t])l=n[t].slice(),s=&quot;rgb&quot;;else if(&quot;transparent&quot;===t)c=0,s=&quot;rgb&quot;,l=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var u=(p=t.slice(1)).length;c=1,u&lt;=4?(l=[parseInt(p[0]+p[0],16),parseInt(p[1]+p[1],16),parseInt(p[2]+p[2],16)],4===u&amp;&amp;(c=parseInt(p[3]+p[3],16)/255)):(l=[parseInt(p[0]+p[1],16),parseInt(p[2]+p[3],16),parseInt(p[4]+p[5],16)],8===u&amp;&amp;(c=parseInt(p[6]+p[7],16)/255)),l[0]||(l[0]=0),l[1]||(l[1]=0),l[2]||(l[2]=0),s=&quot;rgb&quot;}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(t)){var f=e[1],h=&quot;rgb&quot;===f,p=f.replace(/a$/,&quot;&quot;);s=p;u=&quot;cmyk&quot;===p?4:&quot;gray&quot;===p?1:3;l=e[2].trim().split(/\s*,\s*/).map((function(t,e){if(/%$/.test(t))return e===u?parseFloat(t)/100:&quot;rgb&quot;===p?255*parseFloat(t)/100:parseFloat(t);if(&quot;h&quot;===p[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==o[t])return o[t]}return parseFloat(t)})),f===p&amp;&amp;l.push(1),c=h||void 0===l[u]?1:l[u],l=l.slice(0,u)}else t.length&gt;10&amp;&amp;/[0-9](?:\s|\/)/.test(t)&amp;&amp;(l=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),s=t.match(/([a-z])/gi).join(&quot;&quot;).toLowerCase());else if(isNaN(t))if(i(t)){var d=a(t.r,t.red,t.R,null);null!==d?(s=&quot;rgb&quot;,l=[d,a(t.g,t.green,t.G),a(t.b,t.blue,t.B)]):(s=&quot;hsl&quot;,l=[a(t.h,t.hue,t.H),a(t.s,t.saturation,t.S),a(t.l,t.lightness,t.L,t.b,t.brightness)]),c=a(t.a,t.alpha,t.opacity,1),null!=t.opacity&amp;&amp;(c/=100)}else(Array.isArray(t)||r.ArrayBuffer&amp;&amp;ArrayBuffer.isView&amp;&amp;ArrayBuffer.isView(t))&amp;&amp;(l=[t[0],t[1],t[2]],s=&quot;rgb&quot;,c=4===t.length?t[3]:1);else s=&quot;rgb&quot;,l=[t&gt;&gt;&gt;16,(65280&amp;t)&gt;&gt;&gt;8,255&amp;t];return{space:s,values:l,alpha:c}};var o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;color-name&quot;:124,defined:170,&quot;is-plain-obj&quot;:469}],127:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-parse&quot;),i=t(&quot;color-space/hsl&quot;),a=t(&quot;clamp&quot;);e.exports=function(t){var e,r=n(t);return r.space?((e=Array(3))[0]=a(r.values[0],0,255),e[1]=a(r.values[1],0,255),e[2]=a(r.values[2],0,255),&quot;h&quot;===r.space[0]&amp;&amp;(e=i.rgb(e)),e.push(a(r.alpha,0,1)),e):[]}},{clamp:120,&quot;color-parse&quot;:126,&quot;color-space/hsl&quot;:128}],128:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./rgb&quot;);e.exports={name:&quot;hsl&quot;,min:[0,0,0],max:[360,100,100],channel:[&quot;hue&quot;,&quot;saturation&quot;,&quot;lightness&quot;],alias:[&quot;HSL&quot;],rgb:function(t){var e,r,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[a=255*l,a,a];e=2*l-(r=l&lt;.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c&lt;3;c++)(n=o+1/3*-(c-1))&lt;0?n++:n&gt;1&amp;&amp;n--,a=6*n&lt;1?e+6*(r-e)*n:2*n&lt;1?r:3*n&lt;2?e+(r-e)*(2/3-n)*6:e,i[c]=255*a;return i}},n.hsl=function(t){var e,r,n=t[0]/255,i=t[1]/255,a=t[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o;return s===o?e=0:n===s?e=(i-a)/l:i===s?e=2+(a-n)/l:a===s&amp;&amp;(e=4+(n-i)/l),(e=Math.min(60*e,360))&lt;0&amp;&amp;(e+=360),r=(o+s)/2,[e,100*(s===o?0:r&lt;=.5?l/(s+o):l/(2-s-o)),100*r]}},{&quot;./rgb&quot;:129}],129:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;rgb&quot;,min:[0,0,0],max:[255,255,255],channel:[&quot;red&quot;,&quot;green&quot;,&quot;blue&quot;],alias:[&quot;RGB&quot;]}},{}],130:[function(t,e,r){e.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],cool:[{index:0,rgb:[0,255,255]},{index:1,rgb:[255,0,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],&quot;rainbow-soft&quot;:[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],&quot;freesurface-blue&quot;:[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],&quot;freesurface-red&quot;:[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],&quot;velocity-blue&quot;:[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],&quot;velocity-green&quot;:[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},{}],131:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./colorScale&quot;),i=t(&quot;lerp&quot;);function a(t){return[t[0]/255,t[1]/255,t[2]/255,t[3]]}function o(t){for(var e,r=&quot;#&quot;,n=0;n&lt;3;++n)r+=(&quot;00&quot;+(e=(e=t[n]).toString(16))).substr(e.length);return r}function s(t){return&quot;rgba(&quot;+t.join(&quot;,&quot;)+&quot;)&quot;}e.exports=function(t){var e,r,l,c,u,f,h,p,d,g;t||(t={});p=(t.nshades||72)-1,h=t.format||&quot;hex&quot;,(f=t.colormap)||(f=&quot;jet&quot;);if(&quot;string&quot;==typeof f){if(f=f.toLowerCase(),!n[f])throw Error(f+&quot; not a supported colorscale&quot;);u=n[f]}else{if(!Array.isArray(f))throw Error(&quot;unsupported colormap option&quot;,f);u=f.slice()}if(u.length&gt;p+1)throw new Error(f+&quot; map requires nshades to be at least size &quot;+u.length);d=Array.isArray(t.alpha)?2!==t.alpha.length?[1,1]:t.alpha.slice():&quot;number&quot;==typeof t.alpha?[t.alpha,t.alpha]:[1,1];e=u.map((function(t){return Math.round(t.index*p)})),d[0]=Math.min(Math.max(d[0],0),1),d[1]=Math.min(Math.max(d[1],0),1);var m=u.map((function(t,e){var r=u[e].index,n=u[e].rgb.slice();return 4===n.length&amp;&amp;n[3]&gt;=0&amp;&amp;n[3]&lt;=1||(n[3]=d[0]+(d[1]-d[0])*r),n})),v=[];for(g=0;g&lt;e.length-1;++g){c=e[g+1]-e[g],r=m[g],l=m[g+1];for(var y=0;y&lt;c;y++){var x=y/c;v.push([Math.round(i(r[0],l[0],x)),Math.round(i(r[1],l[1],x)),Math.round(i(r[2],l[2],x)),i(r[3],l[3],x)])}}v.push(u[u.length-1].rgb.concat(d[1])),&quot;hex&quot;===h?v=v.map(o):&quot;rgbaString&quot;===h?v=v.map(s):&quot;float&quot;===h&amp;&amp;(v=v.map(a));return v}},{&quot;./colorScale&quot;:130,lerp:472}],132:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a){var o=n(e,r,a);if(0===o){var s=i(n(t,e,r)),c=i(n(t,e,a));if(s===c){if(0===s){var u=l(t,e,r),f=l(t,e,a);return u===f?0:u?1:-1}return 0}return 0===c?s&gt;0||l(t,e,a)?-1:1:0===s?c&gt;0||l(t,e,r)?1:-1:i(c-s)}var h=n(t,e,r);return h&gt;0?o&gt;0&amp;&amp;n(t,e,a)&gt;0?1:-1:h&lt;0?o&gt;0||n(t,e,a)&gt;0?1:-1:n(t,e,a)&gt;0||l(t,e,r)?1:-1};var n=t(&quot;robust-orientation&quot;),i=t(&quot;signum&quot;),a=t(&quot;two-sum&quot;),o=t(&quot;robust-product&quot;),s=t(&quot;robust-sum&quot;);function l(t,e,r){var n=a(t[0],-e[0]),i=a(t[1],-e[1]),l=a(r[0],-e[0]),c=a(r[1],-e[1]),u=s(o(n,l),o(i,c));return u[u.length-1]&gt;=0}},{&quot;robust-orientation&quot;:548,&quot;robust-product&quot;:549,&quot;robust-sum&quot;:553,signum:554,&quot;two-sum&quot;:583}],133:[function(t,e,r){e.exports=function(t,e){var r=t.length,a=t.length-e.length;if(a)return a;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return t[0]+t[1]-e[0]-e[1]||n(t[0],t[1])-n(e[0],e[1]);case 3:var o=t[0]+t[1],s=e[0]+e[1];if(a=o+t[2]-(s+e[2]))return a;var l=n(t[0],t[1]),c=n(e[0],e[1]);return n(l,t[2])-n(c,e[2])||n(l+t[2],o)-n(c+e[2],s);case 4:var u=t[0],f=t[1],h=t[2],p=t[3],d=e[0],g=e[1],m=e[2],v=e[3];return u+f+h+p-(d+g+m+v)||n(u,f,h,p)-n(d,g,m,v,d)||n(u+f,u+h,u+p,f+h,f+p,h+p)-n(d+g,d+m,d+v,g+m,g+v,m+v)||n(u+f+h,u+f+p,u+h+p,f+h+p)-n(d+g+m,d+g+v,d+m+v,g+m+v);default:for(var y=t.slice().sort(i),x=e.slice().sort(i),b=0;b&lt;r;++b)if(a=y[b]-x[b])return a;return 0}};var n=Math.min;function i(t,e){return t-e}},{}],134:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;compare-cell&quot;),i=t(&quot;cell-orientation&quot;);e.exports=function(t,e){return n(t,e)||i(t)-i(e)}},{&quot;cell-orientation&quot;:117,&quot;compare-cell&quot;:133}],135:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/ch1d&quot;),i=t(&quot;./lib/ch2d&quot;),a=t(&quot;./lib/chnd&quot;);e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[[0]];var r=t[0].length;if(0===r)return[];if(1===r)return n(t);if(2===r)return i(t);return a(t,r)}},{&quot;./lib/ch1d&quot;:136,&quot;./lib/ch2d&quot;:137,&quot;./lib/chnd&quot;:138}],136:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=0,r=0,n=1;n&lt;t.length;++n)t[n][0]&lt;t[e][0]&amp;&amp;(e=n),t[n][0]&gt;t[r][0]&amp;&amp;(r=n);return e&lt;r?[[e],[r]]:e&gt;r?[[r],[e]]:[[e]]}},{}],137:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=n(t),r=e.length;if(r&lt;=2)return[];for(var i=new Array(r),a=e[r-1],o=0;o&lt;r;++o){var s=e[o];i[o]=[a,s],a=s}return i};var n=t(&quot;monotone-convex-hull-2d&quot;)},{&quot;monotone-convex-hull-2d&quot;:482}],138:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){try{return n(t,!0)}catch(o){var r=i(t);if(r.length&lt;=e)return[];var a=function(t,e){for(var r=t.length,n=new Array(r),i=0;i&lt;e.length;++i)n[i]=t[e[i]];var a=e.length;for(i=0;i&lt;r;++i)e.indexOf(i)&lt;0&amp;&amp;(n[a++]=t[i]);return n}(t,r);return function(t,e){for(var r=t.length,n=e.length,i=0;i&lt;r;++i)for(var a=t[i],o=0;o&lt;a.length;++o){var s=a[o];if(s&lt;n)a[o]=e[s];else{s-=n;for(var l=0;l&lt;n;++l)s&gt;=e[l]&amp;&amp;(s+=1);a[o]=s}}return t}(n(a,!0),r)}};var n=t(&quot;incremental-convex-hull&quot;),i=t(&quot;affine-hull&quot;)},{&quot;affine-hull&quot;:67,&quot;incremental-convex-hull&quot;:459}],139:[function(t,e,r){e.exports={AFG:&quot;afghan&quot;,ALA:&quot;\\b\\wland&quot;,ALB:&quot;albania&quot;,DZA:&quot;algeria&quot;,ASM:&quot;^(?=.*americ).*samoa&quot;,AND:&quot;andorra&quot;,AGO:&quot;angola&quot;,AIA:&quot;anguill?a&quot;,ATA:&quot;antarctica&quot;,ATG:&quot;antigua&quot;,ARG:&quot;argentin&quot;,ARM:&quot;armenia&quot;,ABW:&quot;^(?!.*bonaire).*\\baruba&quot;,AUS:&quot;australia&quot;,AUT:&quot;^(?!.*hungary).*austria|\\baustri.*\\bemp&quot;,AZE:&quot;azerbaijan&quot;,BHS:&quot;bahamas&quot;,BHR:&quot;bahrain&quot;,BGD:&quot;bangladesh|^(?=.*east).*paki?stan&quot;,BRB:&quot;barbados&quot;,BLR:&quot;belarus|byelo&quot;,BEL:&quot;^(?!.*luxem).*belgium&quot;,BLZ:&quot;belize|^(?=.*british).*honduras&quot;,BEN:&quot;benin|dahome&quot;,BMU:&quot;bermuda&quot;,BTN:&quot;bhutan&quot;,BOL:&quot;bolivia&quot;,BES:&quot;^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands&quot;,BIH:&quot;herzegovina|bosnia&quot;,BWA:&quot;botswana|bechuana&quot;,BVT:&quot;bouvet&quot;,BRA:&quot;brazil&quot;,IOT:&quot;british.?indian.?ocean&quot;,BRN:&quot;brunei&quot;,BGR:&quot;bulgaria&quot;,BFA:&quot;burkina|\\bfaso|upper.?volta&quot;,BDI:&quot;burundi&quot;,CPV:&quot;verde&quot;,KHM:&quot;cambodia|kampuchea|khmer&quot;,CMR:&quot;cameroon&quot;,CAN:&quot;canada&quot;,CYM:&quot;cayman&quot;,CAF:&quot;\\bcentral.african.republic&quot;,TCD:&quot;\\bchad&quot;,CHL:&quot;\\bchile&quot;,CHN:&quot;^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china&quot;,CXR:&quot;christmas&quot;,CCK:&quot;\\bcocos|keeling&quot;,COL:&quot;colombia&quot;,COM:&quot;comoro&quot;,COG:&quot;^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo&quot;,COK:&quot;\\bcook&quot;,CRI:&quot;costa.?rica&quot;,CIV:&quot;ivoire|ivory&quot;,HRV:&quot;croatia&quot;,CUB:&quot;\\bcuba&quot;,CUW:&quot;^(?!.*bonaire).*\\bcura(c|\xe7)ao&quot;,CYP:&quot;cyprus&quot;,CSK:&quot;czechoslovakia&quot;,CZE:&quot;^(?=.*rep).*czech|czechia|bohemia&quot;,COD:&quot;\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc&quot;,DNK:&quot;denmark&quot;,DJI:&quot;djibouti&quot;,DMA:&quot;dominica(?!n)&quot;,DOM:&quot;dominican.rep&quot;,ECU:&quot;ecuador&quot;,EGY:&quot;egypt&quot;,SLV:&quot;el.?salvador&quot;,GNQ:&quot;guine.*eq|eq.*guine|^(?=.*span).*guinea&quot;,ERI:&quot;eritrea&quot;,EST:&quot;estonia&quot;,ETH:&quot;ethiopia|abyssinia&quot;,FLK:&quot;falkland|malvinas&quot;,FRO:&quot;faroe|faeroe&quot;,FJI:&quot;fiji&quot;,FIN:&quot;finland&quot;,FRA:&quot;^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul&quot;,GUF:&quot;^(?=.*french).*guiana&quot;,PYF:&quot;french.?polynesia|tahiti&quot;,ATF:&quot;french.?southern&quot;,GAB:&quot;gabon&quot;,GMB:&quot;gambia&quot;,GEO:&quot;^(?!.*south).*georgia&quot;,DDR:&quot;german.?democratic.?republic|democratic.?republic.*germany|east.germany&quot;,DEU:&quot;^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german&quot;,GHA:&quot;ghana|gold.?coast&quot;,GIB:&quot;gibraltar&quot;,GRC:&quot;greece|hellenic|hellas&quot;,GRL:&quot;greenland&quot;,GRD:&quot;grenada&quot;,GLP:&quot;guadeloupe&quot;,GUM:&quot;\\bguam&quot;,GTM:&quot;guatemala&quot;,GGY:&quot;guernsey&quot;,GIN:&quot;^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea&quot;,GNB:&quot;bissau|^(?=.*portu).*guinea&quot;,GUY:&quot;guyana|british.?guiana&quot;,HTI:&quot;haiti&quot;,HMD:&quot;heard.*mcdonald&quot;,VAT:&quot;holy.?see|vatican|papal.?st&quot;,HND:&quot;^(?!.*brit).*honduras&quot;,HKG:&quot;hong.?kong&quot;,HUN:&quot;^(?!.*austr).*hungary&quot;,ISL:&quot;iceland&quot;,IND:&quot;india(?!.*ocea)&quot;,IDN:&quot;indonesia&quot;,IRN:&quot;\\biran|persia&quot;,IRQ:&quot;\\biraq|mesopotamia&quot;,IRL:&quot;(^ireland)|(^republic.*ireland)&quot;,IMN:&quot;^(?=.*isle).*\\bman&quot;,ISR:&quot;israel&quot;,ITA:&quot;italy&quot;,JAM:&quot;jamaica&quot;,JPN:&quot;japan&quot;,JEY:&quot;jersey&quot;,JOR:&quot;jordan&quot;,KAZ:&quot;kazak&quot;,KEN:&quot;kenya|british.?east.?africa|east.?africa.?prot&quot;,KIR:&quot;kiribati&quot;,PRK:&quot;^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)&quot;,KWT:&quot;kuwait&quot;,KGZ:&quot;kyrgyz|kirghiz&quot;,LAO:&quot;\\blaos?\\b&quot;,LVA:&quot;latvia&quot;,LBN:&quot;lebanon&quot;,LSO:&quot;lesotho|basuto&quot;,LBR:&quot;liberia&quot;,LBY:&quot;libya&quot;,LIE:&quot;liechtenstein&quot;,LTU:&quot;lithuania&quot;,LUX:&quot;^(?!.*belg).*luxem&quot;,MAC:&quot;maca(o|u)&quot;,MDG:&quot;madagascar|malagasy&quot;,MWI:&quot;malawi|nyasa&quot;,MYS:&quot;malaysia&quot;,MDV:&quot;maldive&quot;,MLI:&quot;\\bmali\\b&quot;,MLT:&quot;\\bmalta&quot;,MHL:&quot;marshall&quot;,MTQ:&quot;martinique&quot;,MRT:&quot;mauritania&quot;,MUS:&quot;mauritius&quot;,MYT:&quot;\\bmayotte&quot;,MEX:&quot;\\bmexic&quot;,FSM:&quot;fed.*micronesia|micronesia.*fed&quot;,MCO:&quot;monaco&quot;,MNG:&quot;mongolia&quot;,MNE:&quot;^(?!.*serbia).*montenegro&quot;,MSR:&quot;montserrat&quot;,MAR:&quot;morocco|\\bmaroc&quot;,MOZ:&quot;mozambique&quot;,MMR:&quot;myanmar|burma&quot;,NAM:&quot;namibia&quot;,NRU:&quot;nauru&quot;,NPL:&quot;nepal&quot;,NLD:&quot;^(?!.*\\bant)(?!.*\\bcarib).*netherlands&quot;,ANT:&quot;^(?=.*\\bant).*(nether|dutch)&quot;,NCL:&quot;new.?caledonia&quot;,NZL:&quot;new.?zealand&quot;,NIC:&quot;nicaragua&quot;,NER:&quot;\\bniger(?!ia)&quot;,NGA:&quot;nigeria&quot;,NIU:&quot;niue&quot;,NFK:&quot;norfolk&quot;,MNP:&quot;mariana&quot;,NOR:&quot;norway&quot;,OMN:&quot;\\boman|trucial&quot;,PAK:&quot;^(?!.*east).*paki?stan&quot;,PLW:&quot;palau&quot;,PSE:&quot;palestin|\\bgaza|west.?bank&quot;,PAN:&quot;panama&quot;,PNG:&quot;papua|new.?guinea&quot;,PRY:&quot;paraguay&quot;,PER:&quot;peru&quot;,PHL:&quot;philippines&quot;,PCN:&quot;pitcairn&quot;,POL:&quot;poland&quot;,PRT:&quot;portugal&quot;,PRI:&quot;puerto.?rico&quot;,QAT:&quot;qatar&quot;,KOR:&quot;^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)&quot;,MDA:&quot;moldov|b(a|e)ssarabia&quot;,REU:&quot;r(e|\xe9)union&quot;,ROU:&quot;r(o|u|ou)mania&quot;,RUS:&quot;\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics&quot;,RWA:&quot;rwanda&quot;,BLM:&quot;barth(e|\xe9)lemy&quot;,SHN:&quot;helena&quot;,KNA:&quot;kitts|\\bnevis&quot;,LCA:&quot;\\blucia&quot;,MAF:&quot;^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)&quot;,SPM:&quot;miquelon&quot;,VCT:&quot;vincent&quot;,WSM:&quot;^(?!.*amer).*samoa&quot;,SMR:&quot;san.?marino&quot;,STP:&quot;\\bs(a|\xe3)o.?tom(e|\xe9)&quot;,SAU:&quot;\\bsa\\w*.?arabia&quot;,SEN:&quot;senegal&quot;,SRB:&quot;^(?!.*monte).*serbia&quot;,SYC:&quot;seychell&quot;,SLE:&quot;sierra&quot;,SGP:&quot;singapore&quot;,SXM:&quot;^(?!.*martin)(?!.*saba).*maarten&quot;,SVK:&quot;^(?!.*cze).*slovak&quot;,SVN:&quot;slovenia&quot;,SLB:&quot;solomon&quot;,SOM:&quot;somali&quot;,ZAF:&quot;south.africa|s\\\\..?africa&quot;,SGS:&quot;south.?georgia|sandwich&quot;,SSD:&quot;\\bs\\w*.?sudan&quot;,ESP:&quot;spain&quot;,LKA:&quot;sri.?lanka|ceylon&quot;,SDN:&quot;^(?!.*\\bs(?!u)).*sudan&quot;,SUR:&quot;surinam|dutch.?guiana&quot;,SJM:&quot;svalbard&quot;,SWZ:&quot;swaziland&quot;,SWE:&quot;sweden&quot;,CHE:&quot;switz|swiss&quot;,SYR:&quot;syria&quot;,TWN:&quot;taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china&quot;,TJK:&quot;tajik&quot;,THA:&quot;thailand|\\bsiam&quot;,MKD:&quot;macedonia|fyrom&quot;,TLS:&quot;^(?=.*leste).*timor|^(?=.*east).*timor&quot;,TGO:&quot;togo&quot;,TKL:&quot;tokelau&quot;,TON:&quot;tonga&quot;,TTO:&quot;trinidad|tobago&quot;,TUN:&quot;tunisia&quot;,TUR:&quot;turkey&quot;,TKM:&quot;turkmen&quot;,TCA:&quot;turks&quot;,TUV:&quot;tuvalu&quot;,UGA:&quot;uganda&quot;,UKR:&quot;ukrain&quot;,ARE:&quot;emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em&quot;,GBR:&quot;united.?kingdom|britain|^u\\.?k\\.?$&quot;,TZA:&quot;tanzania&quot;,USA:&quot;united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)&quot;,UMI:&quot;minor.?outlying.?is&quot;,URY:&quot;uruguay&quot;,UZB:&quot;uzbek&quot;,VUT:&quot;vanuatu|new.?hebrides&quot;,VEN:&quot;venezuela&quot;,VNM:&quot;^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam&quot;,VGB:&quot;^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin&quot;,VIR:&quot;^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin&quot;,WLF:&quot;futuna|wallis&quot;,ESH:&quot;western.sahara&quot;,YEM:&quot;^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen&quot;,YMD:&quot;^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen&quot;,YUG:&quot;yugoslavia&quot;,ZMB:&quot;zambia|northern.?rhodesia&quot;,EAZ:&quot;zanzibar&quot;,ZWE:&quot;zimbabwe|^(?!.*northern).*rhodesia&quot;}},{}],140:[function(t,e,r){e.exports=[&quot;xx-small&quot;,&quot;x-small&quot;,&quot;small&quot;,&quot;medium&quot;,&quot;large&quot;,&quot;x-large&quot;,&quot;xx-large&quot;,&quot;larger&quot;,&quot;smaller&quot;]},{}],141:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;condensed&quot;,&quot;semi-condensed&quot;,&quot;extra-condensed&quot;,&quot;ultra-condensed&quot;,&quot;expanded&quot;,&quot;semi-expanded&quot;,&quot;extra-expanded&quot;,&quot;ultra-expanded&quot;]},{}],142:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;italic&quot;,&quot;oblique&quot;]},{}],143:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;bold&quot;,&quot;bolder&quot;,&quot;lighter&quot;,&quot;100&quot;,&quot;200&quot;,&quot;300&quot;,&quot;400&quot;,&quot;500&quot;,&quot;600&quot;,&quot;700&quot;,&quot;800&quot;,&quot;900&quot;]},{}],144:[function(t,e,r){&quot;use strict&quot;;e.exports={parse:t(&quot;./parse&quot;),stringify:t(&quot;./stringify&quot;)}},{&quot;./parse&quot;:146,&quot;./stringify&quot;:147}],145:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font-size-keywords&quot;);e.exports={isSize:function(t){return/^[\d\.]/.test(t)||-1!==t.indexOf(&quot;/&quot;)||-1!==n.indexOf(t)}}},{&quot;css-font-size-keywords&quot;:140}],146:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;unquote&quot;),i=t(&quot;css-global-keywords&quot;),a=t(&quot;css-system-font-keywords&quot;),o=t(&quot;css-font-weight-keywords&quot;),s=t(&quot;css-font-style-keywords&quot;),l=t(&quot;css-font-stretch-keywords&quot;),c=t(&quot;string-split-by&quot;),u=t(&quot;./lib/util&quot;).isSize;e.exports=h;var f=h.cache={};function h(t){if(&quot;string&quot;!=typeof t)throw new Error(&quot;Font argument must be a string.&quot;);if(f[t])return f[t];if(&quot;&quot;===t)throw new Error(&quot;Cannot parse an empty string.&quot;);if(-1!==a.indexOf(t))return f[t]={system:t};for(var e,r={style:&quot;normal&quot;,variant:&quot;normal&quot;,weight:&quot;normal&quot;,stretch:&quot;normal&quot;,lineHeight:&quot;normal&quot;,size:&quot;1rem&quot;,family:[&quot;serif&quot;]},h=c(t,/\s+/);e=h.shift();){if(-1!==i.indexOf(e))return[&quot;style&quot;,&quot;variant&quot;,&quot;weight&quot;,&quot;stretch&quot;].forEach((function(t){r[t]=e})),f[t]=r;if(-1===s.indexOf(e))if(&quot;normal&quot;!==e&amp;&amp;&quot;small-caps&quot;!==e)if(-1===l.indexOf(e)){if(-1===o.indexOf(e)){if(u(e)){var d=c(e,&quot;/&quot;);if(r.size=d[0],null!=d[1]?r.lineHeight=p(d[1]):&quot;/&quot;===h[0]&amp;&amp;(h.shift(),r.lineHeight=p(h.shift())),!h.length)throw new Error(&quot;Missing required font-family.&quot;);return r.family=c(h.join(&quot; &quot;),/\s*,\s*/).map(n),f[t]=r}throw new Error(&quot;Unknown or unsupported font token: &quot;+e)}r.weight=e}else r.stretch=e;else r.variant=e;else r.style=e}throw new Error(&quot;Missing required font-size.&quot;)}function p(t){var e=parseFloat(t);return e.toString()===t?e:t}},{&quot;./lib/util&quot;:145,&quot;css-font-stretch-keywords&quot;:141,&quot;css-font-style-keywords&quot;:142,&quot;css-font-weight-keywords&quot;:143,&quot;css-global-keywords&quot;:148,&quot;css-system-font-keywords&quot;:149,&quot;string-split-by&quot;:568,unquote:598}],147:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;),i=t(&quot;./lib/util&quot;).isSize,a=g(t(&quot;css-global-keywords&quot;)),o=g(t(&quot;css-system-font-keywords&quot;)),s=g(t(&quot;css-font-weight-keywords&quot;)),l=g(t(&quot;css-font-style-keywords&quot;)),c=g(t(&quot;css-font-stretch-keywords&quot;)),u={normal:1,&quot;small-caps&quot;:1},f={serif:1,&quot;sans-serif&quot;:1,monospace:1,cursive:1,fantasy:1,&quot;system-ui&quot;:1},h=&quot;1rem&quot;,p=&quot;serif&quot;;function d(t,e){if(t&amp;&amp;!e[t]&amp;&amp;!a[t])throw Error(&quot;Unknown keyword `&quot;+t+&quot;`&quot;);return t}function g(t){for(var e={},r=0;r&lt;t.length;r++)e[t[r]]=1;return e}e.exports=function(t){if((t=n(t,{style:&quot;style fontstyle fontStyle font-style slope distinction&quot;,variant:&quot;variant font-variant fontVariant fontvariant var capitalization&quot;,weight:&quot;weight w font-weight fontWeight fontweight&quot;,stretch:&quot;stretch font-stretch fontStretch fontstretch width&quot;,size:&quot;size s font-size fontSize fontsize height em emSize&quot;,lineHeight:&quot;lh line-height lineHeight lineheight leading&quot;,family:&quot;font family fontFamily font-family fontfamily type typeface face&quot;,system:&quot;system reserved default global&quot;})).system)return t.system&amp;&amp;d(t.system,o),t.system;if(d(t.style,l),d(t.variant,u),d(t.weight,s),d(t.stretch,c),null==t.size&amp;&amp;(t.size=h),&quot;number&quot;==typeof t.size&amp;&amp;(t.size+=&quot;px&quot;),!i)throw Error(&quot;Bad size value `&quot;+t.size+&quot;`&quot;);t.family||(t.family=p),Array.isArray(t.family)&amp;&amp;(t.family.length||(t.family=[p]),t.family=t.family.map((function(t){return f[t]?t:'&quot;'+t+'&quot;'})).join(&quot;, &quot;));var e=[];return e.push(t.style),t.variant!==t.style&amp;&amp;e.push(t.variant),t.weight!==t.variant&amp;&amp;t.weight!==t.style&amp;&amp;e.push(t.weight),t.stretch!==t.weight&amp;&amp;t.stretch!==t.variant&amp;&amp;t.stretch!==t.style&amp;&amp;e.push(t.stretch),e.push(t.size+(null==t.lineHeight||&quot;normal&quot;===t.lineHeight||t.lineHeight+&quot;&quot;==&quot;1&quot;?&quot;&quot;:&quot;/&quot;+t.lineHeight)),e.push(t.family),e.filter(Boolean).join(&quot; &quot;)}},{&quot;./lib/util&quot;:145,&quot;css-font-stretch-keywords&quot;:141,&quot;css-font-style-keywords&quot;:142,&quot;css-font-weight-keywords&quot;:143,&quot;css-global-keywords&quot;:148,&quot;css-system-font-keywords&quot;:149,&quot;pick-by-alias&quot;:511}],148:[function(t,e,r){e.exports=[&quot;inherit&quot;,&quot;initial&quot;,&quot;unset&quot;]},{}],149:[function(t,e,r){e.exports=[&quot;caption&quot;,&quot;icon&quot;,&quot;menu&quot;,&quot;message-box&quot;,&quot;small-caption&quot;,&quot;status-bar&quot;]},{}],150:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a){var o=i-1,s=i*i,l=o*o,c=(1+2*i)*l,u=i*l,f=s*(3-2*i),h=s*o;if(t.length){a||(a=new Array(t.length));for(var p=t.length-1;p&gt;=0;--p)a[p]=c*t[p]+u*e[p]+f*r[p]+h*n[p];return a}return c*t+u*e+f*r+h*n},e.exports.derivative=function(t,e,r,n,i,a){var o=6*i*i-6*i,s=3*i*i-4*i+1,l=-6*i*i+6*i,c=3*i*i-2*i;if(t.length){a||(a=new Array(t.length));for(var u=t.length-1;u&gt;=0;--u)a[u]=o*t[u]+s*e[u]+l*r[u]+c*n[u];return a}return o*t+s*e+l*r[u]+c*n}},{}],151:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/thunk.js&quot;);function i(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName=&quot;&quot;,this.pre=null,this.body=null,this.post=null,this.debug=!1}e.exports=function(t){var e=new i;e.pre=t.pre,e.body=t.body,e.post=t.post;var r=t.args.slice(0);e.argTypes=r;for(var a=0;a&lt;r.length;++a){var o=r[a];if(&quot;array&quot;===o||&quot;object&quot;==typeof o&amp;&amp;o.blockIndices){if(e.argTypes[a]=&quot;array&quot;,e.arrayArgs.push(a),e.arrayBlockIndices.push(o.blockIndices?o.blockIndices:0),e.shimArgs.push(&quot;array&quot;+a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].count&gt;0)throw new Error(&quot;cwise: pre() block may not reference array args&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].count&gt;0)throw new Error(&quot;cwise: post() block may not reference array args&quot;)}else if(&quot;scalar&quot;===o)e.scalarArgs.push(a),e.shimArgs.push(&quot;scalar&quot;+a);else if(&quot;index&quot;===o){if(e.indexArgs.push(a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].count&gt;0)throw new Error(&quot;cwise: pre() block may not reference array index&quot;);if(a&lt;e.body.args.length&amp;&amp;e.body.args[a].lvalue)throw new Error(&quot;cwise: body() block may not write to array index&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].count&gt;0)throw new Error(&quot;cwise: post() block may not reference array index&quot;)}else if(&quot;shape&quot;===o){if(e.shapeArgs.push(a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].lvalue)throw new Error(&quot;cwise: pre() block may not write to array shape&quot;);if(a&lt;e.body.args.length&amp;&amp;e.body.args[a].lvalue)throw new Error(&quot;cwise: body() block may not write to array shape&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].lvalue)throw new Error(&quot;cwise: post() block may not write to array shape&quot;)}else{if(&quot;object&quot;!=typeof o||!o.offset)throw new Error(&quot;cwise: Unknown argument type &quot;+r[a]);e.argTypes[a]=&quot;offset&quot;,e.offsetArgs.push({array:o.array,offset:o.offset}),e.offsetArgIndex.push(a)}}if(e.arrayArgs.length&lt;=0)throw new Error(&quot;cwise: No array arguments specified&quot;);if(e.pre.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in pre() block&quot;);if(e.body.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in body() block&quot;);if(e.post.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in post() block&quot;);return e.debug=!!t.printCode||!!t.debug,e.funcName=t.funcName||&quot;cwise&quot;,e.blockSize=t.blockSize||64,n(e)}},{&quot;./lib/thunk.js&quot;:153}],152:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;uniq&quot;);function i(t,e,r){var n,i,a=t.length,o=e.arrayArgs.length,s=e.indexArgs.length&gt;0,l=[],c=[],u=0,f=0;for(n=0;n&lt;a;++n)c.push([&quot;i&quot;,n,&quot;=0&quot;].join(&quot;&quot;));for(i=0;i&lt;o;++i)for(n=0;n&lt;a;++n)f=u,u=t[n],0===n?c.push([&quot;d&quot;,i,&quot;s&quot;,n,&quot;=t&quot;,i,&quot;p&quot;,u].join(&quot;&quot;)):c.push([&quot;d&quot;,i,&quot;s&quot;,n,&quot;=(t&quot;,i,&quot;p&quot;,u,&quot;-s&quot;,f,&quot;*t&quot;,i,&quot;p&quot;,f,&quot;)&quot;].join(&quot;&quot;));for(c.length&gt;0&amp;&amp;l.push(&quot;var &quot;+c.join(&quot;,&quot;)),n=a-1;n&gt;=0;--n)u=t[n],l.push([&quot;for(i&quot;,n,&quot;=0;i&quot;,n,&quot;&lt;s&quot;,u,&quot;;++i&quot;,n,&quot;){&quot;].join(&quot;&quot;));for(l.push(r),n=0;n&lt;a;++n){for(f=u,u=t[n],i=0;i&lt;o;++i)l.push([&quot;p&quot;,i,&quot;+=d&quot;,i,&quot;s&quot;,n].join(&quot;&quot;));s&amp;&amp;(n&gt;0&amp;&amp;l.push([&quot;index[&quot;,f,&quot;]-=s&quot;,f].join(&quot;&quot;)),l.push([&quot;++index[&quot;,u,&quot;]&quot;].join(&quot;&quot;))),l.push(&quot;}&quot;)}return l.join(&quot;\n&quot;)}function a(t,e,r){for(var n=t.body,i=[],a=[],o=0;o&lt;t.args.length;++o){var s=t.args[o];if(!(s.count&lt;=0)){var l=new RegExp(s.name,&quot;g&quot;),c=&quot;&quot;,u=e.arrayArgs.indexOf(o);switch(e.argTypes[o]){case&quot;offset&quot;:var f=e.offsetArgIndex.indexOf(o);u=e.offsetArgs[f].array,c=&quot;+q&quot;+f;case&quot;array&quot;:c=&quot;p&quot;+u+c;var h=&quot;l&quot;+o,p=&quot;a&quot;+u;if(0===e.arrayBlockIndices[u])1===s.count?&quot;generic&quot;===r[u]?s.lvalue?(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)),n=n.replace(l,h),a.push([p,&quot;.set(&quot;,c,&quot;,&quot;,h,&quot;)&quot;].join(&quot;&quot;))):n=n.replace(l,[p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)):n=n.replace(l,[p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;)):&quot;generic&quot;===r[u]?(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)),n=n.replace(l,h),s.lvalue&amp;&amp;a.push([p,&quot;.set(&quot;,c,&quot;,&quot;,h,&quot;)&quot;].join(&quot;&quot;))):(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;)),n=n.replace(l,h),s.lvalue&amp;&amp;a.push([p,&quot;[&quot;,c,&quot;]=&quot;,h].join(&quot;&quot;)));else{for(var d=[s.name],g=[c],m=0;m&lt;Math.abs(e.arrayBlockIndices[u]);m++)d.push(&quot;\\s*\\[([^\\]]+)\\]&quot;),g.push(&quot;$&quot;+(m+1)+&quot;*t&quot;+u+&quot;b&quot;+m);if(l=new RegExp(d.join(&quot;&quot;),&quot;g&quot;),c=g.join(&quot;+&quot;),&quot;generic&quot;===r[u])throw new Error(&quot;cwise: Generic arrays not supported in combination with blocks!&quot;);n=n.replace(l,[p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;))}break;case&quot;scalar&quot;:n=n.replace(l,&quot;Y&quot;+e.scalarArgs.indexOf(o));break;case&quot;index&quot;:n=n.replace(l,&quot;index&quot;);break;case&quot;shape&quot;:n=n.replace(l,&quot;shape&quot;)}}}return[i.join(&quot;\n&quot;),n,a.join(&quot;\n&quot;)].join(&quot;\n&quot;).trim()}function o(t){for(var e=new Array(t.length),r=!0,n=0;n&lt;t.length;++n){var i=t[n],a=i.match(/\d+/);a=a?a[0]:&quot;&quot;,0===i.charAt(0)?e[n]=&quot;u&quot;+i.charAt(1)+a:e[n]=i.charAt(0)+a,n&gt;0&amp;&amp;(r=r&amp;&amp;e[n]===e[n-1])}return r?e[0]:e.join(&quot;&quot;)}e.exports=function(t,e){for(var r=e[1].length-Math.abs(t.arrayBlockIndices[0])|0,s=new Array(t.arrayArgs.length),l=new Array(t.arrayArgs.length),c=0;c&lt;t.arrayArgs.length;++c)l[c]=e[2*c],s[c]=e[2*c+1];var u=[],f=[],h=[],p=[],d=[];for(c=0;c&lt;t.arrayArgs.length;++c){t.arrayBlockIndices[c]&lt;0?(h.push(0),p.push(r),u.push(r),f.push(r+t.arrayBlockIndices[c])):(h.push(t.arrayBlockIndices[c]),p.push(t.arrayBlockIndices[c]+r),u.push(0),f.push(t.arrayBlockIndices[c]));for(var g=[],m=0;m&lt;s[c].length;m++)h[c]&lt;=s[c][m]&amp;&amp;s[c][m]&lt;p[c]&amp;&amp;g.push(s[c][m]-h[c]);d.push(g)}var v=[&quot;SS&quot;],y=[&quot;'use strict'&quot;],x=[];for(m=0;m&lt;r;++m)x.push([&quot;s&quot;,m,&quot;=SS[&quot;,m,&quot;]&quot;].join(&quot;&quot;));for(c=0;c&lt;t.arrayArgs.length;++c){v.push(&quot;a&quot;+c),v.push(&quot;t&quot;+c),v.push(&quot;p&quot;+c);for(m=0;m&lt;r;++m)x.push([&quot;t&quot;,c,&quot;p&quot;,m,&quot;=t&quot;,c,&quot;[&quot;,h[c]+m,&quot;]&quot;].join(&quot;&quot;));for(m=0;m&lt;Math.abs(t.arrayBlockIndices[c]);++m)x.push([&quot;t&quot;,c,&quot;b&quot;,m,&quot;=t&quot;,c,&quot;[&quot;,u[c]+m,&quot;]&quot;].join(&quot;&quot;))}for(c=0;c&lt;t.scalarArgs.length;++c)v.push(&quot;Y&quot;+c);if(t.shapeArgs.length&gt;0&amp;&amp;x.push(&quot;shape=SS.slice(0)&quot;),t.indexArgs.length&gt;0){var b=new Array(r);for(c=0;c&lt;r;++c)b[c]=&quot;0&quot;;x.push([&quot;index=[&quot;,b.join(&quot;,&quot;),&quot;]&quot;].join(&quot;&quot;))}for(c=0;c&lt;t.offsetArgs.length;++c){var _=t.offsetArgs[c],w=[];for(m=0;m&lt;_.offset.length;++m)0!==_.offset[m]&amp;&amp;(1===_.offset[m]?w.push([&quot;t&quot;,_.array,&quot;p&quot;,m].join(&quot;&quot;)):w.push([_.offset[m],&quot;*t&quot;,_.array,&quot;p&quot;,m].join(&quot;&quot;)));0===w.length?x.push(&quot;q&quot;+c+&quot;=0&quot;):x.push([&quot;q&quot;,c,&quot;=&quot;,w.join(&quot;+&quot;)].join(&quot;&quot;))}var T=n([].concat(t.pre.thisVars).concat(t.body.thisVars).concat(t.post.thisVars));for((x=x.concat(T)).length&gt;0&amp;&amp;y.push(&quot;var &quot;+x.join(&quot;,&quot;)),c=0;c&lt;t.arrayArgs.length;++c)y.push(&quot;p&quot;+c+&quot;|=0&quot;);t.pre.body.length&gt;3&amp;&amp;y.push(a(t.pre,t,l));var k=a(t.body,t,l),M=function(t){for(var e=0,r=t[0].length;e&lt;r;){for(var n=1;n&lt;t.length;++n)if(t[n][e]!==t[0][e])return e;++e}return e}(d);M&lt;r?y.push(function(t,e,r,n){for(var a=e.length,o=r.arrayArgs.length,s=r.blockSize,l=r.indexArgs.length&gt;0,c=[],u=0;u&lt;o;++u)c.push([&quot;var offset&quot;,u,&quot;=p&quot;,u].join(&quot;&quot;));for(u=t;u&lt;a;++u)c.push([&quot;for(var j&quot;+u+&quot;=SS[&quot;,e[u],&quot;]|0;j&quot;,u,&quot;&gt;0;){&quot;].join(&quot;&quot;)),c.push([&quot;if(j&quot;,u,&quot;&lt;&quot;,s,&quot;){&quot;].join(&quot;&quot;)),c.push([&quot;s&quot;,e[u],&quot;=j&quot;,u].join(&quot;&quot;)),c.push([&quot;j&quot;,u,&quot;=0&quot;].join(&quot;&quot;)),c.push([&quot;}else{s&quot;,e[u],&quot;=&quot;,s].join(&quot;&quot;)),c.push([&quot;j&quot;,u,&quot;-=&quot;,s,&quot;}&quot;].join(&quot;&quot;)),l&amp;&amp;c.push([&quot;index[&quot;,e[u],&quot;]=j&quot;,u].join(&quot;&quot;));for(u=0;u&lt;o;++u){for(var f=[&quot;offset&quot;+u],h=t;h&lt;a;++h)f.push([&quot;j&quot;,h,&quot;*t&quot;,u,&quot;p&quot;,e[h]].join(&quot;&quot;));c.push([&quot;p&quot;,u,&quot;=(&quot;,f.join(&quot;+&quot;),&quot;)&quot;].join(&quot;&quot;))}for(c.push(i(e,r,n)),u=t;u&lt;a;++u)c.push(&quot;}&quot;);return c.join(&quot;\n&quot;)}(M,d[0],t,k)):y.push(i(d[0],t,k)),t.post.body.length&gt;3&amp;&amp;y.push(a(t.post,t,l)),t.debug&amp;&amp;console.log(&quot;-----Generated cwise routine for &quot;,e,&quot;:\n&quot;+y.join(&quot;\n&quot;)+&quot;\n----------&quot;);var A=[t.funcName||&quot;unnamed&quot;,&quot;_cwise_loop_&quot;,s[0].join(&quot;s&quot;),&quot;m&quot;,M,o(l)].join(&quot;&quot;);return new Function([&quot;function &quot;,A,&quot;(&quot;,v.join(&quot;,&quot;),&quot;){&quot;,y.join(&quot;\n&quot;),&quot;} return &quot;,A].join(&quot;&quot;))()}},{uniq:597}],153:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./compile.js&quot;);e.exports=function(t){var e=[&quot;'use strict'&quot;,&quot;var CACHED={}&quot;],r=[],i=t.funcName+&quot;_cwise_thunk&quot;;e.push([&quot;return function &quot;,i,&quot;(&quot;,t.shimArgs.join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));for(var a=[],o=[],s=[[&quot;array&quot;,t.arrayArgs[0],&quot;.shape.slice(&quot;,Math.max(0,t.arrayBlockIndices[0]),t.arrayBlockIndices[0]&lt;0?&quot;,&quot;+t.arrayBlockIndices[0]+&quot;)&quot;:&quot;)&quot;].join(&quot;&quot;)],l=[],c=[],u=0;u&lt;t.arrayArgs.length;++u){var f=t.arrayArgs[u];r.push([&quot;t&quot;,f,&quot;=array&quot;,f,&quot;.dtype,&quot;,&quot;r&quot;,f,&quot;=array&quot;,f,&quot;.order&quot;].join(&quot;&quot;)),a.push(&quot;t&quot;+f),a.push(&quot;r&quot;+f),o.push(&quot;t&quot;+f),o.push(&quot;r&quot;+f+&quot;.join()&quot;),s.push(&quot;array&quot;+f+&quot;.data&quot;),s.push(&quot;array&quot;+f+&quot;.stride&quot;),s.push(&quot;array&quot;+f+&quot;.offset|0&quot;),u&gt;0&amp;&amp;(l.push(&quot;array&quot;+t.arrayArgs[0]+&quot;.shape.length===array&quot;+f+&quot;.shape.length+&quot;+(Math.abs(t.arrayBlockIndices[0])-Math.abs(t.arrayBlockIndices[u]))),c.push(&quot;array&quot;+t.arrayArgs[0]+&quot;.shape[shapeIndex+&quot;+Math.max(0,t.arrayBlockIndices[0])+&quot;]===array&quot;+f+&quot;.shape[shapeIndex+&quot;+Math.max(0,t.arrayBlockIndices[u])+&quot;]&quot;))}for(t.arrayArgs.length&gt;1&amp;&amp;(e.push(&quot;if (!(&quot;+l.join(&quot; &amp;&amp; &quot;)+&quot;)) throw new Error('cwise: Arrays do not all have the same dimensionality!')&quot;),e.push(&quot;for(var shapeIndex=array&quot;+t.arrayArgs[0]+&quot;.shape.length-&quot;+Math.abs(t.arrayBlockIndices[0])+&quot;; shapeIndex--\x3e0;) {&quot;),e.push(&quot;if (!(&quot;+c.join(&quot; &amp;&amp; &quot;)+&quot;)) throw new Error('cwise: Arrays do not all have the same shape!')&quot;),e.push(&quot;}&quot;)),u=0;u&lt;t.scalarArgs.length;++u)s.push(&quot;scalar&quot;+t.scalarArgs[u]);return r.push([&quot;type=[&quot;,o.join(&quot;,&quot;),&quot;].join()&quot;].join(&quot;&quot;)),r.push(&quot;proc=CACHED[type]&quot;),e.push(&quot;var &quot;+r.join(&quot;,&quot;)),e.push([&quot;if(!proc){&quot;,&quot;CACHED[type]=proc=compile([&quot;,a.join(&quot;,&quot;),&quot;])}&quot;,&quot;return proc(&quot;,s.join(&quot;,&quot;),&quot;)}&quot;].join(&quot;&quot;)),t.debug&amp;&amp;console.log(&quot;-----Generated thunk:\n&quot;+e.join(&quot;\n&quot;)+&quot;\n----------&quot;),new Function(&quot;compile&quot;,e.join(&quot;\n&quot;))(n.bind(void 0,t))}},{&quot;./compile.js&quot;:152}],154:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;type/value/is&quot;),a=t(&quot;type/value/ensure&quot;),o=t(&quot;type/plain-function/ensure&quot;),s=t(&quot;es5-ext/object/copy&quot;),l=t(&quot;es5-ext/object/normalize-options&quot;),c=t(&quot;es5-ext/object/map&quot;),u=Function.prototype.bind,f=Object.defineProperty,h=Object.prototype.hasOwnProperty;n=function(t,e,r){var n,i=a(e)&amp;&amp;o(e.value);return delete(n=s(e)).writable,delete n.value,n.get=function(){return!r.overwriteDefinition&amp;&amp;h.call(this,t)?i:(e.value=u.call(i,r.resolveContext?r.resolveContext(this):this),f(this,t,e),this[t])},n},e.exports=function(t){var e=l(arguments[1]);return i(e.resolveContext)&amp;&amp;o(e.resolveContext),c(t,(function(t,r){return n(r,t,e)}))}},{&quot;es5-ext/object/copy&quot;:196,&quot;es5-ext/object/map&quot;:204,&quot;es5-ext/object/normalize-options&quot;:205,&quot;type/plain-function/ensure&quot;:589,&quot;type/value/ensure&quot;:593,&quot;type/value/is&quot;:594}],155:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;type/value/is&quot;),i=t(&quot;type/plain-function/is&quot;),a=t(&quot;es5-ext/object/assign&quot;),o=t(&quot;es5-ext/object/normalize-options&quot;),s=t(&quot;es5-ext/string/#/contains&quot;);(e.exports=function(t,e){var r,i,l,c,u;return arguments.length&lt;2||&quot;string&quot;!=typeof t?(c=e,e=t,t=null):c=arguments[2],n(t)?(r=s.call(t,&quot;c&quot;),i=s.call(t,&quot;e&quot;),l=s.call(t,&quot;w&quot;)):(r=l=!0,i=!1),u={value:e,configurable:r,enumerable:i,writable:l},c?a(o(c),u):u}).gs=function(t,e,r){var l,c,u,f;return&quot;string&quot;!=typeof t?(u=r,r=e,e=t,t=null):u=arguments[3],n(e)?i(e)?n(r)?i(r)||(u=r,r=void 0):r=void 0:(u=e,e=r=void 0):e=void 0,n(t)?(l=s.call(t,&quot;c&quot;),c=s.call(t,&quot;e&quot;)):(l=!0,c=!1),f={get:e,set:r,configurable:l,enumerable:c},u?a(o(u),f):f}},{&quot;es5-ext/object/assign&quot;:193,&quot;es5-ext/object/normalize-options&quot;:205,&quot;es5-ext/string/#/contains&quot;:212,&quot;type/plain-function/is&quot;:590,&quot;type/value/is&quot;:594}],156:[function(t,e,r){!function(t,n){n(&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?r:t.d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){return t&lt;e?-1:t&gt;e?1:t&gt;=e?0:NaN}function r(t){var r;return 1===t.length&amp;&amp;(r=t,t=function(t,n){return e(r(t),n)}),{left:function(e,r,n,i){for(null==n&amp;&amp;(n=0),null==i&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&lt;0?n=a+1:i=a}return n},right:function(e,r,n,i){for(null==n&amp;&amp;(n=0),null==i&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&gt;0?i=a:n=a+1}return n}}}var n=r(e),i=n.right,a=n.left;function o(t,e){return[t,e]}function s(t){return null===t?NaN:+t}function l(t,e){var r,n,i=t.length,a=0,o=-1,l=0,c=0;if(null==e)for(;++o&lt;i;)isNaN(r=s(t[o]))||(c+=(n=r-l)*(r-(l+=n/++a)));else for(;++o&lt;i;)isNaN(r=s(e(t[o],o,t)))||(c+=(n=r-l)*(r-(l+=n/++a)));if(a&gt;1)return c/(a-1)}function c(t,e){var r=l(t,e);return r?Math.sqrt(r):r}function u(t,e){var r,n,i,a=t.length,o=-1;if(null==e){for(;++o&lt;a;)if(null!=(r=t[o])&amp;&amp;r&gt;=r)for(n=i=r;++o&lt;a;)null!=(r=t[o])&amp;&amp;(n&gt;r&amp;&amp;(n=r),i&lt;r&amp;&amp;(i=r))}else for(;++o&lt;a;)if(null!=(r=e(t[o],o,t))&amp;&amp;r&gt;=r)for(n=i=r;++o&lt;a;)null!=(r=e(t[o],o,t))&amp;&amp;(n&gt;r&amp;&amp;(n=r),i&lt;r&amp;&amp;(i=r));return[n,i]}var f=Array.prototype,h=f.slice,p=f.map;function d(t){return function(){return t}}function g(t){return t}function m(t,e,r){t=+t,e=+e,r=(i=arguments.length)&lt;2?(e=t,t=0,1):i&lt;3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),a=new Array(i);++n&lt;i;)a[n]=t+n*r;return a}var v=Math.sqrt(50),y=Math.sqrt(10),x=Math.sqrt(2);function b(t,e,r){var n=(e-t)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),a=n/Math.pow(10,i);return i&gt;=0?(a&gt;=v?10:a&gt;=y?5:a&gt;=x?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a&gt;=v?10:a&gt;=y?5:a&gt;=x?2:1)}function _(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/i;return a&gt;=v?i*=10:a&gt;=y?i*=5:a&gt;=x&amp;&amp;(i*=2),e&lt;t?-i:i}function w(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function T(t,e,r){if(null==r&amp;&amp;(r=s),n=t.length){if((e=+e)&lt;=0||n&lt;2)return+r(t[0],0,t);if(e&gt;=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t);return o+(+r(t[a+1],a+1,t)-o)*(i-a)}}function k(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a&lt;i;)if(null!=(r=t[a])&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=t[a])&amp;&amp;n&gt;r&amp;&amp;(n=r)}else for(;++a&lt;i;)if(null!=(r=e(t[a],a,t))&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=e(t[a],a,t))&amp;&amp;n&gt;r&amp;&amp;(n=r);return n}function M(t){if(!(i=t.length))return[];for(var e=-1,r=k(t,A),n=new Array(r);++e&lt;r;)for(var i,a=-1,o=n[e]=new Array(i);++a&lt;i;)o[a]=t[a][e];return n}function A(t){return t.length}t.bisect=i,t.bisectRight=i,t.bisectLeft=a,t.ascending=e,t.bisector=r,t.cross=function(t,e,r){var n,i,a,s,l=t.length,c=e.length,u=new Array(l*c);for(null==r&amp;&amp;(r=o),n=a=0;n&lt;l;++n)for(s=t[n],i=0;i&lt;c;++i,++a)u[a]=r(s,e[i]);return u},t.descending=function(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN},t.deviation=c,t.extent=u,t.histogram=function(){var t=g,e=u,r=w;function n(n){var a,o,s=n.length,l=new Array(s);for(a=0;a&lt;s;++a)l[a]=t(n[a],a,n);var c=e(l),u=c[0],f=c[1],h=r(l,u,f);Array.isArray(h)||(h=_(u,f,h),h=m(Math.ceil(u/h)*h,f,h));for(var p=h.length;h[0]&lt;=u;)h.shift(),--p;for(;h[p-1]&gt;f;)h.pop(),--p;var d,g=new Array(p+1);for(a=0;a&lt;=p;++a)(d=g[a]=[]).x0=a&gt;0?h[a-1]:u,d.x1=a&lt;p?h[a]:f;for(a=0;a&lt;s;++a)u&lt;=(o=l[a])&amp;&amp;o&lt;=f&amp;&amp;g[i(h,o,0,p)].push(n[a]);return g}return n.value=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:d(e),n):t},n.domain=function(t){return arguments.length?(e=&quot;function&quot;==typeof t?t:d([t[0],t[1]]),n):e},n.thresholds=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:Array.isArray(t)?d(h.call(t)):d(t),n):r},n},t.thresholdFreedmanDiaconis=function(t,r,n){return t=p.call(t,s).sort(e),Math.ceil((n-r)/(2*(T(t,.75)-T(t,.25))*Math.pow(t.length,-1/3)))},t.thresholdScott=function(t,e,r){return Math.ceil((r-e)/(3.5*c(t)*Math.pow(t.length,-1/3)))},t.thresholdSturges=w,t.max=function(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a&lt;i;)if(null!=(r=t[a])&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=t[a])&amp;&amp;r&gt;n&amp;&amp;(n=r)}else for(;++a&lt;i;)if(null!=(r=e(t[a],a,t))&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=e(t[a],a,t))&amp;&amp;r&gt;n&amp;&amp;(n=r);return n},t.mean=function(t,e){var r,n=t.length,i=n,a=-1,o=0;if(null==e)for(;++a&lt;n;)isNaN(r=s(t[a]))?--i:o+=r;else for(;++a&lt;n;)isNaN(r=s(e(t[a],a,t)))?--i:o+=r;if(i)return o/i},t.median=function(t,r){var n,i=t.length,a=-1,o=[];if(null==r)for(;++a&lt;i;)isNaN(n=s(t[a]))||o.push(n);else for(;++a&lt;i;)isNaN(n=s(r(t[a],a,t)))||o.push(n);return T(o.sort(e),.5)},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a&lt;i;)o+=t[a].length;for(r=new Array(o);--i&gt;=0;)for(e=(n=t[i]).length;--e&gt;=0;)r[--o]=n[e];return r},t.min=k,t.pairs=function(t,e){null==e&amp;&amp;(e=o);for(var r=0,n=t.length-1,i=t[0],a=new Array(n&lt;0?0:n);r&lt;n;)a[r]=e(i,i=t[++r]);return a},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.quantile=T,t.range=m,t.scan=function(t,r){if(n=t.length){var n,i,a=0,o=0,s=t[o];for(null==r&amp;&amp;(r=e);++a&lt;n;)(r(i=t[a],s)&lt;0||0!==r(s,s))&amp;&amp;(s=i,o=a);return 0===r(s,s)?o:void 0}},t.shuffle=function(t,e,r){for(var n,i,a=(null==r?t.length:r)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.sum=function(t,e){var r,n=t.length,i=-1,a=0;if(null==e)for(;++i&lt;n;)(r=+t[i])&amp;&amp;(a+=r);else for(;++i&lt;n;)(r=+e(t[i],i,t))&amp;&amp;(a+=r);return a},t.ticks=function(t,e,r){var n,i,a,o,s=-1;if(r=+r,(t=+t)===(e=+e)&amp;&amp;r&gt;0)return[t];if((n=e&lt;t)&amp;&amp;(i=t,t=e,e=i),0===(o=b(t,e,r))||!isFinite(o))return[];if(o&gt;0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s&lt;i;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++s&lt;i;)a[s]=(t-s)/o;return n&amp;&amp;a.reverse(),a},t.tickIncrement=b,t.tickStep=_,t.transpose=M,t.variance=l,t.zip=function(){return M(arguments)},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],157:[function(t,e,r){!function(t,n){n(&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?r:t.d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(){}function r(t,r){var n=new e;if(t instanceof e)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var i,a=-1,o=t.length;if(null==r)for(;++a&lt;o;)n.set(a,t[a]);else for(;++a&lt;o;)n.set(r(i=t[a],a,t),i)}else if(t)for(var s in t)n.set(s,t[s]);return n}function n(){return{}}function i(t,e,r){t[e]=r}function a(){return r()}function o(t,e,r){t.set(e,r)}function s(){}e.prototype=r.prototype={constructor:e,has:function(t){return&quot;$&quot;+t in this},get:function(t){return this[&quot;$&quot;+t]},set:function(t,e){return this[&quot;$&quot;+t]=e,this},remove:function(t){var e=&quot;$&quot;+t;return e in this&amp;&amp;delete this[e]},clear:function(){for(var t in this)&quot;$&quot;===t[0]&amp;&amp;delete this[t]},keys:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)&quot;$&quot;===e[0]&amp;&amp;++t;return t},empty:function(){for(var t in this)if(&quot;$&quot;===t[0])return!1;return!0},each:function(t){for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t(this[e],e.slice(1),this)}};var l=r.prototype;function c(t,e){var r=new s;if(t instanceof s)t.each((function(t){r.add(t)}));else if(t){var n=-1,i=t.length;if(null==e)for(;++n&lt;i;)r.add(t[n]);else for(;++n&lt;i;)r.add(e(t[n],n,t))}return r}s.prototype=c.prototype={constructor:s,has:l.has,add:function(t){return this[&quot;$&quot;+(t+=&quot;&quot;)]=t,this},remove:l.remove,clear:l.clear,values:l.keys,size:l.size,empty:l.empty,each:l.each},t.nest=function(){var t,e,s,l=[],c=[];function u(n,i,a,o){if(i&gt;=l.length)return null!=t&amp;&amp;n.sort(t),null!=e?e(n):n;for(var s,c,f,h=-1,p=n.length,d=l[i++],g=r(),m=a();++h&lt;p;)(f=g.get(s=d(c=n[h])+&quot;&quot;))?f.push(c):g.set(s,[c]);return g.each((function(t,e){o(m,e,u(t,i,a,o))})),m}return s={object:function(t){return u(t,0,n,i)},map:function(t){return u(t,0,a,o)},entries:function(t){return function t(r,n){if(++n&gt;l.length)return r;var i,a=c[n-1];return null!=e&amp;&amp;n&gt;=l.length?i=r.entries():(i=[],r.each((function(e,r){i.push({key:r,values:t(e,n)})}))),null!=a?i.sort((function(t,e){return a(t.key,e.key)})):i}(u(t,0,a,o),0)},key:function(t){return l.push(t),s},sortKeys:function(t){return c[l.length-1]=t,s},sortValues:function(e){return t=e,s},rollup:function(t){return e=t,s}}},t.set=c,t.map=r,t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],158:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function r(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function n(){}var i=&quot;\\s*([+-]?\\d+)\\s*&quot;,a=&quot;\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*&quot;,o=&quot;\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*&quot;,s=/^#([0-9a-f]{3,8})$/,l=new RegExp(&quot;^rgb\\(&quot;+[i,i,i]+&quot;\\)$&quot;),c=new RegExp(&quot;^rgb\\(&quot;+[o,o,o]+&quot;\\)$&quot;),u=new RegExp(&quot;^rgba\\(&quot;+[i,i,i,a]+&quot;\\)$&quot;),f=new RegExp(&quot;^rgba\\(&quot;+[o,o,o,a]+&quot;\\)$&quot;),h=new RegExp(&quot;^hsl\\(&quot;+[a,o,o]+&quot;\\)$&quot;),p=new RegExp(&quot;^hsla\\(&quot;+[a,o,o,a]+&quot;\\)$&quot;),d={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 g(){return this.rgb().formatHex()}function m(){return this.rgb().formatRgb()}function v(t){var e,r;return t=(t+&quot;&quot;).trim().toLowerCase(),(e=s.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?y(e):3===r?new w(e&gt;&gt;8&amp;15|e&gt;&gt;4&amp;240,e&gt;&gt;4&amp;15|240&amp;e,(15&amp;e)&lt;&lt;4|15&amp;e,1):8===r?x(e&gt;&gt;24&amp;255,e&gt;&gt;16&amp;255,e&gt;&gt;8&amp;255,(255&amp;e)/255):4===r?x(e&gt;&gt;12&amp;15|e&gt;&gt;8&amp;240,e&gt;&gt;8&amp;15|e&gt;&gt;4&amp;240,e&gt;&gt;4&amp;15|240&amp;e,((15&amp;e)&lt;&lt;4|15&amp;e)/255):null):(e=l.exec(t))?new w(e[1],e[2],e[3],1):(e=c.exec(t))?new w(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=u.exec(t))?x(e[1],e[2],e[3],e[4]):(e=f.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=h.exec(t))?A(e[1],e[2]/100,e[3]/100,1):(e=p.exec(t))?A(e[1],e[2]/100,e[3]/100,e[4]):d.hasOwnProperty(t)?y(d[t]):&quot;transparent&quot;===t?new w(NaN,NaN,NaN,0):null}function y(t){return new w(t&gt;&gt;16&amp;255,t&gt;&gt;8&amp;255,255&amp;t,1)}function x(t,e,r,n){return n&lt;=0&amp;&amp;(t=e=r=NaN),new w(t,e,r,n)}function b(t){return t instanceof n||(t=v(t)),t?new w((t=t.rgb()).r,t.g,t.b,t.opacity):new w}function _(t,e,r,n){return 1===arguments.length?b(t):new w(t,e,r,null==n?1:n)}function w(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function T(){return&quot;#&quot;+M(this.r)+M(this.g)+M(this.b)}function k(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?&quot;rgb(&quot;:&quot;rgba(&quot;)+Math.max(0,Math.min(255,Math.round(this.r)||0))+&quot;, &quot;+Math.max(0,Math.min(255,Math.round(this.g)||0))+&quot;, &quot;+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?&quot;)&quot;:&quot;, &quot;+t+&quot;)&quot;)}function M(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))&lt;16?&quot;0&quot;:&quot;&quot;)+t.toString(16)}function A(t,e,r,n){return n&lt;=0?t=e=r=NaN:r&lt;=0||r&gt;=1?t=e=NaN:e&lt;=0&amp;&amp;(t=NaN),new C(t,e,r,n)}function S(t){if(t instanceof C)return new C(t.h,t.s,t.l,t.opacity);if(t instanceof n||(t=v(t)),!t)return new C;if(t instanceof C)return t;var e=(t=t.rgb()).r/255,r=t.g/255,i=t.b/255,a=Math.min(e,r,i),o=Math.max(e,r,i),s=NaN,l=o-a,c=(o+a)/2;return l?(s=e===o?(r-i)/l+6*(r&lt;i):r===o?(i-e)/l+2:(e-r)/l+4,l/=c&lt;.5?o+a:2-o-a,s*=60):l=c&gt;0&amp;&amp;c&lt;1?0:s,new C(s,l,c,t.opacity)}function E(t,e,r,n){return 1===arguments.length?S(t):new C(t,e,r,null==n?1:n)}function C(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function L(t,e,r){return 255*(t&lt;60?e+(r-e)*t/60:t&lt;180?r:t&lt;240?e+(r-e)*(240-t)/60:e)}e(n,v,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:g,formatHex:g,formatHsl:function(){return S(this).formatHsl()},formatRgb:m,toString:m}),e(w,_,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5&lt;=this.r&amp;&amp;this.r&lt;255.5&amp;&amp;-.5&lt;=this.g&amp;&amp;this.g&lt;255.5&amp;&amp;-.5&lt;=this.b&amp;&amp;this.b&lt;255.5&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},hex:T,formatHex:T,formatRgb:k,toString:k})),e(C,E,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new C(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new C(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h&lt;0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r&lt;.5?r:1-r)*e,i=2*r-n;return new w(L(t&gt;=240?t-240:t+120,i,n),L(t,i,n),L(t&lt;120?t+240:t-120,i,n),this.opacity)},displayable:function(){return(0&lt;=this.s&amp;&amp;this.s&lt;=1||isNaN(this.s))&amp;&amp;0&lt;=this.l&amp;&amp;this.l&lt;=1&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?&quot;hsl(&quot;:&quot;hsla(&quot;)+(this.h||0)+&quot;, &quot;+100*(this.s||0)+&quot;%, &quot;+100*(this.l||0)+&quot;%&quot;+(1===t?&quot;)&quot;:&quot;, &quot;+t+&quot;)&quot;)}}));var I=Math.PI/180,P=180/Math.PI,z=6/29,O=3*z*z;function D(t){if(t instanceof F)return new F(t.l,t.a,t.b,t.opacity);if(t instanceof H)return G(t);t instanceof w||(t=b(t));var e,r,n=U(t.r),i=U(t.g),a=U(t.b),o=B((.2225045*n+.7168786*i+.0606169*a)/1);return n===i&amp;&amp;i===a?e=r=o:(e=B((.4360747*n+.3850649*i+.1430804*a)/.96422),r=B((.0139322*n+.0971045*i+.7141733*a)/.82521)),new F(116*o-16,500*(e-o),200*(o-r),t.opacity)}function R(t,e,r,n){return 1===arguments.length?D(t):new F(t,e,r,null==n?1:n)}function F(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function B(t){return t&gt;.008856451679035631?Math.pow(t,1/3):t/O+4/29}function N(t){return t&gt;z?t*t*t:O*(t-4/29)}function j(t){return 255*(t&lt;=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function U(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function V(t){if(t instanceof H)return new H(t.h,t.c,t.l,t.opacity);if(t instanceof F||(t=D(t)),0===t.a&amp;&amp;0===t.b)return new H(NaN,0&lt;t.l&amp;&amp;t.l&lt;100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*P;return new H(e&lt;0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function q(t,e,r,n){return 1===arguments.length?V(t):new H(t,e,r,null==n?1:n)}function H(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function G(t){if(isNaN(t.h))return new F(t.l,0,0,t.opacity);var e=t.h*I;return new F(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}e(F,R,r(n,{brighter:function(t){return new F(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new F(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new w(j(3.1338561*(e=.96422*N(e))-1.6168667*(t=1*N(t))-.4906146*(r=.82521*N(r))),j(-.9787684*e+1.9161415*t+.033454*r),j(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),e(H,q,r(n,{brighter:function(t){return new H(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new H(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return G(this).rgb()}}));var Y=-.14861,W=1.78277,X=-.29227,Z=-.90649,J=1.97294,K=J*Z,Q=J*W,$=W*X-Z*Y;function tt(t){if(t instanceof rt)return new rt(t.h,t.s,t.l,t.opacity);t instanceof w||(t=b(t));var e=t.r/255,r=t.g/255,n=t.b/255,i=($*n+K*e-Q*r)/($+K-Q),a=n-i,o=(J*(r-i)-X*a)/Z,s=Math.sqrt(o*o+a*a)/(J*i*(1-i)),l=s?Math.atan2(o,a)*P-120:NaN;return new rt(l&lt;0?l+360:l,s,i,t.opacity)}function et(t,e,r,n){return 1===arguments.length?tt(t):new rt(t,e,r,null==n?1:n)}function rt(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}e(rt,et,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*I,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),i=Math.sin(t);return new w(255*(e+r*(Y*n+W*i)),255*(e+r*(X*n+Z*i)),255*(e+r*(J*n)),this.opacity)}})),t.color=v,t.cubehelix=et,t.gray=function(t,e){return new F(t,0,0,null==e?1:e)},t.hcl=q,t.hsl=E,t.lab=R,t.lch=function(t,e,r,n){return 1===arguments.length?V(t):new H(r,e,t,null==n?1:n)},t.rgb=_,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],159:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e={value:function(){}};function r(){for(var t,e=0,r=arguments.length,i={};e&lt;r;++e){if(!(t=arguments[e]+&quot;&quot;)||t in i||/[\s.]/.test(t))throw new Error(&quot;illegal type: &quot;+t);i[t]=[]}return new n(i)}function n(t){this._=t}function i(t,e){return t.trim().split(/^|\s+/).map((function(t){var r=&quot;&quot;,n=t.indexOf(&quot;.&quot;);if(n&gt;=0&amp;&amp;(r=t.slice(n+1),t=t.slice(0,n)),t&amp;&amp;!e.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);return{type:t,name:r}}))}function a(t,e){for(var r,n=0,i=t.length;n&lt;i;++n)if((r=t[n]).name===e)return r.value}function o(t,r,n){for(var i=0,a=t.length;i&lt;a;++i)if(t[i].name===r){t[i]=e,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&amp;&amp;t.push({name:r,value:n}),t}n.prototype=r.prototype={constructor:n,on:function(t,e){var r,n=this._,s=i(t+&quot;&quot;,n),l=-1,c=s.length;if(!(arguments.length&lt;2)){if(null!=e&amp;&amp;&quot;function&quot;!=typeof e)throw new Error(&quot;invalid callback: &quot;+e);for(;++l&lt;c;)if(r=(t=s[l]).type)n[r]=o(n[r],t.name,e);else if(null==e)for(r in n)n[r]=o(n[r],t.name,null);return this}for(;++l&lt;c;)if((r=(t=s[l]).type)&amp;&amp;(r=a(n[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new n(t)},call:function(t,e){if((r=arguments.length-2)&gt;0)for(var r,n,i=new Array(r),a=0;a&lt;r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);for(a=0,r=(n=this._[t]).length;a&lt;r;++a)n[a].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);for(var n=this._[t],i=0,a=n.length;i&lt;a;++i)n[i].value.apply(e,r)}},t.dispatch=r,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],160:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-quadtree&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-dispatch&quot;),t(&quot;d3-timer&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,n.d3)}(this,(function(t,e,r,n,i){&quot;use strict&quot;;function a(t){return function(){return t}}function o(){return 1e-6*(Math.random()-.5)}function s(t){return t.x+t.vx}function l(t){return t.y+t.vy}function c(t){return t.index}function u(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function f(t){return t.x}function h(t){return t.y}var p=Math.PI*(3-Math.sqrt(5));t.forceCenter=function(t,e){var r;function n(){var n,i,a=r.length,o=0,s=0;for(n=0;n&lt;a;++n)o+=(i=r[n]).x,s+=i.y;for(o=o/a-t,s=s/a-e,n=0;n&lt;a;++n)(i=r[n]).x-=o,i.y-=s}return null==t&amp;&amp;(t=0),null==e&amp;&amp;(e=0),n.initialize=function(t){r=t},n.x=function(e){return arguments.length?(t=+e,n):t},n.y=function(t){return arguments.length?(e=+t,n):e},n},t.forceCollide=function(t){var r,n,i=1,c=1;function u(){for(var t,a,u,h,p,d,g,m=r.length,v=0;v&lt;c;++v)for(a=e.quadtree(r,s,l).visitAfter(f),t=0;t&lt;m;++t)u=r[t],d=n[u.index],g=d*d,h=u.x+u.vx,p=u.y+u.vy,a.visit(y);function y(t,e,r,n,a){var s=t.data,l=t.r,c=d+l;if(!s)return e&gt;h+c||n&lt;h-c||r&gt;p+c||a&lt;p-c;if(s.index&gt;u.index){var f=h-s.x-s.vx,m=p-s.y-s.vy,v=f*f+m*m;v&lt;c*c&amp;&amp;(0===f&amp;&amp;(v+=(f=o())*f),0===m&amp;&amp;(v+=(m=o())*m),v=(c-(v=Math.sqrt(v)))/v*i,u.vx+=(f*=v)*(c=(l*=l)/(g+l)),u.vy+=(m*=v)*c,s.vx-=f*(c=1-c),s.vy-=m*c)}}}function f(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e&lt;4;++e)t[e]&amp;&amp;t[e].r&gt;t.r&amp;&amp;(t.r=t[e].r)}function h(){if(r){var e,i,a=r.length;for(n=new Array(a),e=0;e&lt;a;++e)i=r[e],n[i.index]=+t(i,e,r)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?1:+t)),u.initialize=function(t){r=t,h()},u.iterations=function(t){return arguments.length?(c=+t,u):c},u.strength=function(t){return arguments.length?(i=+t,u):i},u.radius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),h(),u):t},u},t.forceLink=function(t){var e,n,i,s,l,f=c,h=function(t){return 1/Math.min(s[t.source.index],s[t.target.index])},p=a(30),d=1;function g(r){for(var i=0,a=t.length;i&lt;d;++i)for(var s,c,u,f,h,p,g,m=0;m&lt;a;++m)c=(s=t[m]).source,f=(u=s.target).x+u.vx-c.x-c.vx||o(),h=u.y+u.vy-c.y-c.vy||o(),f*=p=((p=Math.sqrt(f*f+h*h))-n[m])/p*r*e[m],h*=p,u.vx-=f*(g=l[m]),u.vy-=h*g,c.vx+=f*(g=1-g),c.vy+=h*g}function m(){if(i){var a,o,c=i.length,h=t.length,p=r.map(i,f);for(a=0,s=new Array(c);a&lt;h;++a)(o=t[a]).index=a,&quot;object&quot;!=typeof o.source&amp;&amp;(o.source=u(p,o.source)),&quot;object&quot;!=typeof o.target&amp;&amp;(o.target=u(p,o.target)),s[o.source.index]=(s[o.source.index]||0)+1,s[o.target.index]=(s[o.target.index]||0)+1;for(a=0,l=new Array(h);a&lt;h;++a)o=t[a],l[a]=s[o.source.index]/(s[o.source.index]+s[o.target.index]);e=new Array(h),v(),n=new Array(h),y()}}function v(){if(i)for(var r=0,n=t.length;r&lt;n;++r)e[r]=+h(t[r],r,t)}function y(){if(i)for(var e=0,r=t.length;e&lt;r;++e)n[e]=+p(t[e],e,t)}return null==t&amp;&amp;(t=[]),g.initialize=function(t){i=t,m()},g.links=function(e){return arguments.length?(t=e,m(),g):t},g.id=function(t){return arguments.length?(f=t,g):f},g.iterations=function(t){return arguments.length?(d=+t,g):d},g.strength=function(t){return arguments.length?(h=&quot;function&quot;==typeof t?t:a(+t),v(),g):h},g.distance=function(t){return arguments.length?(p=&quot;function&quot;==typeof t?t:a(+t),y(),g):p},g},t.forceManyBody=function(){var t,r,n,i,s=a(-30),l=1,c=1/0,u=.81;function p(i){var a,o=t.length,s=e.quadtree(t,f,h).visitAfter(g);for(n=i,a=0;a&lt;o;++a)r=t[a],s.visit(m)}function d(){if(t){var e,r,n=t.length;for(i=new Array(n),e=0;e&lt;n;++e)r=t[e],i[r.index]=+s(r,e,t)}}function g(t){var e,r,n,a,o,s=0,l=0;if(t.length){for(n=a=o=0;o&lt;4;++o)(e=t[o])&amp;&amp;(r=Math.abs(e.value))&amp;&amp;(s+=e.value,l+=r,n+=r*e.x,a+=r*e.y);t.x=n/l,t.y=a/l}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=i[e.data.index]}while(e=e.next)}t.value=s}function m(t,e,a,s){if(!t.value)return!0;var f=t.x-r.x,h=t.y-r.y,p=s-e,d=f*f+h*h;if(p*p/u&lt;d)return d&lt;c&amp;&amp;(0===f&amp;&amp;(d+=(f=o())*f),0===h&amp;&amp;(d+=(h=o())*h),d&lt;l&amp;&amp;(d=Math.sqrt(l*d)),r.vx+=f*t.value*n/d,r.vy+=h*t.value*n/d),!0;if(!(t.length||d&gt;=c)){(t.data!==r||t.next)&amp;&amp;(0===f&amp;&amp;(d+=(f=o())*f),0===h&amp;&amp;(d+=(h=o())*h),d&lt;l&amp;&amp;(d=Math.sqrt(l*d)));do{t.data!==r&amp;&amp;(p=i[t.data.index]*n/d,r.vx+=f*p,r.vy+=h*p)}while(t=t.next)}}return p.initialize=function(e){t=e,d()},p.strength=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:a(+t),d(),p):s},p.distanceMin=function(t){return arguments.length?(l=t*t,p):Math.sqrt(l)},p.distanceMax=function(t){return arguments.length?(c=t*t,p):Math.sqrt(c)},p.theta=function(t){return arguments.length?(u=t*t,p):Math.sqrt(u)},p},t.forceRadial=function(t,e,r){var n,i,o,s=a(.1);function l(t){for(var a=0,s=n.length;a&lt;s;++a){var l=n[a],c=l.x-e||1e-6,u=l.y-r||1e-6,f=Math.sqrt(c*c+u*u),h=(o[a]-f)*i[a]*t/f;l.vx+=c*h,l.vy+=u*h}}function c(){if(n){var e,r=n.length;for(i=new Array(r),o=new Array(r),e=0;e&lt;r;++e)o[e]=+t(n[e],e,n),i[e]=isNaN(o[e])?0:+s(n[e],e,n)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(+t)),null==e&amp;&amp;(e=0),null==r&amp;&amp;(r=0),l.initialize=function(t){n=t,c()},l.strength=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:a(+t),c(),l):s},l.radius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),c(),l):t},l.x=function(t){return arguments.length?(e=+t,l):e},l.y=function(t){return arguments.length?(r=+t,l):r},l},t.forceSimulation=function(t){var e,a=1,o=.001,s=1-Math.pow(o,1/300),l=0,c=.6,u=r.map(),f=i.timer(d),h=n.dispatch(&quot;tick&quot;,&quot;end&quot;);function d(){g(),h.call(&quot;tick&quot;,e),a&lt;o&amp;&amp;(f.stop(),h.call(&quot;end&quot;,e))}function g(r){var n,i,o=t.length;void 0===r&amp;&amp;(r=1);for(var f=0;f&lt;r;++f)for(a+=(l-a)*s,u.each((function(t){t(a)})),n=0;n&lt;o;++n)null==(i=t[n]).fx?i.x+=i.vx*=c:(i.x=i.fx,i.vx=0),null==i.fy?i.y+=i.vy*=c:(i.y=i.fy,i.vy=0);return e}function m(){for(var e,r=0,n=t.length;r&lt;n;++r){if((e=t[r]).index=r,null!=e.fx&amp;&amp;(e.x=e.fx),null!=e.fy&amp;&amp;(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(r),a=r*p;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&amp;&amp;(e.vx=e.vy=0)}}function v(e){return e.initialize&amp;&amp;e.initialize(t),e}return null==t&amp;&amp;(t=[]),m(),e={tick:g,restart:function(){return f.restart(d),e},stop:function(){return f.stop(),e},nodes:function(r){return arguments.length?(t=r,m(),u.each(v),e):t},alpha:function(t){return arguments.length?(a=+t,e):a},alphaMin:function(t){return arguments.length?(o=+t,e):o},alphaDecay:function(t){return arguments.length?(s=+t,e):+s},alphaTarget:function(t){return arguments.length?(l=+t,e):l},velocityDecay:function(t){return arguments.length?(c=1-t,e):1-c},force:function(t,r){return arguments.length&gt;1?(null==r?u.remove(t):u.set(t,v(r)),e):u.get(t)},find:function(e,r,n){var i,a,o,s,l,c=0,u=t.length;for(null==n?n=1/0:n*=n,c=0;c&lt;u;++c)(o=(i=e-(s=t[c]).x)*i+(a=r-s.y)*a)&lt;n&amp;&amp;(l=s,n=o);return l},on:function(t,r){return arguments.length&gt;1?(h.on(t,r),e):h.on(t)}}},t.forceX=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a&lt;o;++a)(i=e[a]).vx+=(n[a]-i.x)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a&lt;o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:a(+t),s(),o):i},o.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),s(),o):t},o},t.forceY=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a&lt;o;++a)(i=e[a]).vy+=(n[a]-i.y)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a&lt;o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:a(+t),s(),o):i},o.y=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),s(),o):t},o},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-collection&quot;:157,&quot;d3-dispatch&quot;:159,&quot;d3-quadtree&quot;:164,&quot;d3-timer&quot;:168}],161:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){return t.parent===e.parent?1:2}function r(t,e){return t+e.x}function n(t,e){return Math.max(t,e.y)}function i(t){var e=0,r=t.children,n=r&amp;&amp;r.length;if(n)for(;--n&gt;=0;)e+=r[n].value;else e=1;t.value=e}function a(t,e){var r,n,i,a,s,u=new c(t),f=+t.value&amp;&amp;(u.value=t.value),h=[u];for(null==e&amp;&amp;(e=o);r=h.pop();)if(f&amp;&amp;(r.value=+r.data.value),(i=e(r.data))&amp;&amp;(s=i.length))for(r.children=new Array(s),a=s-1;a&gt;=0;--a)h.push(n=r.children[a]=new c(i[a])),n.parent=r,n.depth=r.depth+1;return u.eachBefore(l)}function o(t){return t.children}function s(t){t.data=t.data.data}function l(t){var e=0;do{t.height=e}while((t=t.parent)&amp;&amp;t.height&lt;++e)}function c(t){this.data=t,this.depth=this.height=0,this.parent=null}c.prototype=a.prototype={constructor:c,count:function(){return this.eachAfter(i)},each:function(t){var e,r,n,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),r=a.children)for(n=0,i=r.length;n&lt;i;++n)o.push(r[n])}while(o.length);return this},eachAfter:function(t){for(var e,r,n,i=this,a=[i],o=[];i=a.pop();)if(o.push(i),e=i.children)for(r=0,n=e.length;r&lt;n;++r)a.push(e[r]);for(;i=o.pop();)t(i);return this},eachBefore:function(t){for(var e,r,n=this,i=[n];n=i.pop();)if(t(n),e=n.children)for(r=e.length-1;r&gt;=0;--r)i.push(e[r]);return this},sum:function(t){return this.eachAfter((function(e){for(var r=+t(e.data)||0,n=e.children,i=n&amp;&amp;n.length;--i&gt;=0;)r+=n[i].value;e.value=r}))},sort:function(t){return this.eachBefore((function(e){e.children&amp;&amp;e.children.sort(t)}))},path:function(t){for(var e=this,r=function(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;t=r.pop(),e=n.pop();for(;t===e;)i=t,t=r.pop(),e=n.pop();return i}(e,t),n=[e];e!==r;)e=e.parent,n.push(e);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(r){r!==t&amp;&amp;e.push({source:r.parent,target:r})})),e},copy:function(){return a(this).eachBefore(s)}};var u=Array.prototype.slice;function f(t){for(var e,r,n=0,i=(t=function(t){for(var e,r,n=t.length;n;)r=Math.random()*n--|0,e=t[n],t[n]=t[r],t[r]=e;return t}(u.call(t))).length,a=[];n&lt;i;)e=t[n],r&amp;&amp;d(r,e)?++n:(r=m(a=h(a,e)),n=0);return r}function h(t,e){var r,n;if(g(e,t))return[e];for(r=0;r&lt;t.length;++r)if(p(e,t[r])&amp;&amp;g(v(t[r],e),t))return[t[r],e];for(r=0;r&lt;t.length-1;++r)for(n=r+1;n&lt;t.length;++n)if(p(v(t[r],t[n]),e)&amp;&amp;p(v(t[r],e),t[n])&amp;&amp;p(v(t[n],e),t[r])&amp;&amp;g(y(t[r],t[n],e),t))return[t[r],t[n],e];throw new Error}function p(t,e){var r=t.r-e.r,n=e.x-t.x,i=e.y-t.y;return r&lt;0||r*r&lt;n*n+i*i}function d(t,e){var r=t.r-e.r+1e-6,n=e.x-t.x,i=e.y-t.y;return r&gt;0&amp;&amp;r*r&gt;n*n+i*i}function g(t,e){for(var r=0;r&lt;e.length;++r)if(!d(t,e[r]))return!1;return!0}function m(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return v(t[0],t[1]);case 3:return y(t[0],t[1],t[2])}var e}function v(t,e){var r=t.x,n=t.y,i=t.r,a=e.x,o=e.y,s=e.r,l=a-r,c=o-n,u=s-i,f=Math.sqrt(l*l+c*c);return{x:(r+a+l/f*u)/2,y:(n+o+c/f*u)/2,r:(f+i+s)/2}}function y(t,e,r){var n=t.x,i=t.y,a=t.r,o=e.x,s=e.y,l=e.r,c=r.x,u=r.y,f=r.r,h=n-o,p=n-c,d=i-s,g=i-u,m=l-a,v=f-a,y=n*n+i*i-a*a,x=y-o*o-s*s+l*l,b=y-c*c-u*u+f*f,_=p*d-h*g,w=(d*b-g*x)/(2*_)-n,T=(g*m-d*v)/_,k=(p*x-h*b)/(2*_)-i,M=(h*v-p*m)/_,A=T*T+M*M-1,S=2*(a+w*T+k*M),E=w*w+k*k-a*a,C=-(A?(S+Math.sqrt(S*S-4*A*E))/(2*A):E/S);return{x:n+w+T*C,y:i+k+M*C,r:C}}function x(t,e,r){var n,i,a,o,s=t.x-e.x,l=t.y-e.y,c=s*s+l*l;c?(i=e.r+r.r,i*=i,o=t.r+r.r,i&gt;(o*=o)?(n=(c+o-i)/(2*c),a=Math.sqrt(Math.max(0,o/c-n*n)),r.x=t.x-n*s-a*l,r.y=t.y-n*l+a*s):(n=(c+i-o)/(2*c),a=Math.sqrt(Math.max(0,i/c-n*n)),r.x=e.x+n*s-a*l,r.y=e.y+n*l+a*s)):(r.x=e.x+r.r,r.y=e.y)}function b(t,e){var r=t.r+e.r-1e-6,n=e.x-t.x,i=e.y-t.y;return r&gt;0&amp;&amp;r*r&gt;n*n+i*i}function _(t){var e=t._,r=t.next._,n=e.r+r.r,i=(e.x*r.r+r.x*e.r)/n,a=(e.y*r.r+r.y*e.r)/n;return i*i+a*a}function w(t){this._=t,this.next=null,this.previous=null}function T(t){if(!(i=t.length))return 0;var e,r,n,i,a,o,s,l,c,u,h;if((e=t[0]).x=0,e.y=0,!(i&gt;1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(i&gt;2))return e.r+r.r;x(r,e,n=t[2]),e=new w(e),r=new w(r),n=new w(n),e.next=n.previous=r,r.next=e.previous=n,n.next=r.previous=e;t:for(s=3;s&lt;i;++s){x(e._,r._,n=t[s]),n=new w(n),l=r.next,c=e.previous,u=r._.r,h=e._.r;do{if(u&lt;=h){if(b(l._,n._)){r=l,e.next=r,r.previous=e,--s;continue t}u+=l._.r,l=l.next}else{if(b(c._,n._)){(e=c).next=r,r.previous=e,--s;continue t}h+=c._.r,c=c.previous}}while(l!==c.next);for(n.previous=e,n.next=r,e.next=r.previous=r=n,a=_(e);(n=n.next)!==r;)(o=_(n))&lt;a&amp;&amp;(e=n,a=o);r=e.next}for(e=[r._],n=r;(n=n.next)!==r;)e.push(n._);for(n=f(e),s=0;s&lt;i;++s)(e=t[s]).x-=n.x,e.y-=n.y;return n.r}function k(t){return null==t?null:M(t)}function M(t){if(&quot;function&quot;!=typeof t)throw new Error;return t}function A(){return 0}function S(t){return function(){return t}}function E(t){return Math.sqrt(t.value)}function C(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function L(t,e){return function(r){if(n=r.children){var n,i,a,o=n.length,s=t(r)*e||0;if(s)for(i=0;i&lt;o;++i)n[i].r+=s;if(a=T(n),s)for(i=0;i&lt;o;++i)n[i].r-=s;r.r=a+s}}}function I(t){return function(e){var r=e.parent;e.r*=t,r&amp;&amp;(e.x=r.x+t*e.x,e.y=r.y+t*e.y)}}function P(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function z(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&amp;&amp;(n-e)/t.value;++s&lt;l;)(a=o[s]).y0=r,a.y1=i,a.x0=e,a.x1=e+=a.value*c}var O={depth:-1},D={};function R(t){return t.id}function F(t){return t.parentId}function B(t,e){return t.parent===e.parent?1:2}function N(t){var e=t.children;return e?e[0]:t.t}function j(t){var e=t.children;return e?e[e.length-1]:t.t}function U(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function V(t,e,r){return t.a.parent===e.parent?t.a:r}function q(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function H(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&amp;&amp;(i-r)/t.value;++s&lt;l;)(a=o[s]).x0=e,a.x1=n,a.y0=r,a.y1=r+=a.value*c}q.prototype=Object.create(c.prototype);var G=(1+Math.sqrt(5))/2;function Y(t,e,r,n,i,a){for(var o,s,l,c,u,f,h,p,d,g,m,v=[],y=e.children,x=0,b=0,_=y.length,w=e.value;x&lt;_;){l=i-r,c=a-n;do{u=y[b++].value}while(!u&amp;&amp;b&lt;_);for(f=h=u,m=u*u*(g=Math.max(c/l,l/c)/(w*t)),d=Math.max(h/m,m/f);b&lt;_;++b){if(u+=s=y[b].value,s&lt;f&amp;&amp;(f=s),s&gt;h&amp;&amp;(h=s),m=u*u*g,(p=Math.max(h/m,m/f))&gt;d){u-=s;break}d=p}v.push(o={value:u,dice:l&lt;c,children:y.slice(x,b)}),o.dice?z(o,r,n,i,w?n+=c*u/w:a):H(o,r,n,w?r+=l*u/w:i,a),w-=u,x=b}return v}var W=function t(e){function r(t,r,n,i,a){Y(e,t,r,n,i,a)}return r.ratio=function(e){return t((e=+e)&gt;1?e:1)},r}(G);var X=function t(e){function r(t,r,n,i,a){if((o=t._squarify)&amp;&amp;o.ratio===e)for(var o,s,l,c,u,f=-1,h=o.length,p=t.value;++f&lt;h;){for(l=(s=o[f]).children,c=s.value=0,u=l.length;c&lt;u;++c)s.value+=l[c].value;s.dice?z(s,r,n,i,n+=(a-n)*s.value/p):H(s,r,n,r+=(i-r)*s.value/p,a),p-=s.value}else t._squarify=o=Y(e,t,r,n,i,a),o.ratio=e}return r.ratio=function(e){return t((e=+e)&gt;1?e:1)},r}(G);t.cluster=function(){var t=e,i=1,a=1,o=!1;function s(e){var s,l=0;e.eachAfter((function(e){var i=e.children;i?(e.x=function(t){return t.reduce(r,0)/t.length}(i),e.y=function(t){return 1+t.reduce(n,0)}(i)):(e.x=s?l+=t(e,s):0,e.y=0,s=e)}));var c=function(t){for(var e;e=t.children;)t=e[0];return t}(e),u=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(e),f=c.x-t(c,u)/2,h=u.x+t(u,c)/2;return e.eachAfter(o?function(t){t.x=(t.x-e.x)*i,t.y=(e.y-t.y)*a}:function(t){t.x=(t.x-f)/(h-f)*i,t.y=(1-(e.y?t.y/e.y:1))*a})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(o=!1,i=+t[0],a=+t[1],s):o?null:[i,a]},s.nodeSize=function(t){return arguments.length?(o=!0,i=+t[0],a=+t[1],s):o?[i,a]:null},s},t.hierarchy=a,t.pack=function(){var t=null,e=1,r=1,n=A;function i(i){return i.x=e/2,i.y=r/2,t?i.eachBefore(C(t)).eachAfter(L(n,.5)).eachBefore(I(1)):i.eachBefore(C(E)).eachAfter(L(A,1)).eachAfter(L(n,i.r/Math.min(e,r))).eachBefore(I(Math.min(e,r)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=k(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],r=+t[1],i):[e,r]},i.padding=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:S(+t),i):n},i},t.packEnclose=f,t.packSiblings=function(t){return T(t),t},t.partition=function(){var t=1,e=1,r=0,n=!1;function i(i){var a=i.height+1;return i.x0=i.y0=r,i.x1=t,i.y1=e/a,i.eachBefore(function(t,e){return function(n){n.children&amp;&amp;z(n,n.x0,t*(n.depth+1)/e,n.x1,t*(n.depth+2)/e);var i=n.x0,a=n.y0,o=n.x1-r,s=n.y1-r;o&lt;i&amp;&amp;(i=o=(i+o)/2),s&lt;a&amp;&amp;(a=s=(a+s)/2),n.x0=i,n.y0=a,n.x1=o,n.y1=s}}(e,a)),n&amp;&amp;i.eachBefore(P),i}return i.round=function(t){return arguments.length?(n=!!t,i):n},i.size=function(r){return arguments.length?(t=+r[0],e=+r[1],i):[t,e]},i.padding=function(t){return arguments.length?(r=+t,i):r},i},t.stratify=function(){var t=R,e=F;function r(r){var n,i,a,o,s,u,f,h=r.length,p=new Array(h),d={};for(i=0;i&lt;h;++i)n=r[i],s=p[i]=new c(n),null!=(u=t(n,i,r))&amp;&amp;(u+=&quot;&quot;)&amp;&amp;(d[f=&quot;$&quot;+(s.id=u)]=f in d?D:s);for(i=0;i&lt;h;++i)if(s=p[i],null!=(u=e(r[i],i,r))&amp;&amp;(u+=&quot;&quot;)){if(!(o=d[&quot;$&quot;+u]))throw new Error(&quot;missing: &quot;+u);if(o===D)throw new Error(&quot;ambiguous: &quot;+u);o.children?o.children.push(s):o.children=[s],s.parent=o}else{if(a)throw new Error(&quot;multiple roots&quot;);a=s}if(!a)throw new Error(&quot;no root&quot;);if(a.parent=O,a.eachBefore((function(t){t.depth=t.parent.depth+1,--h})).eachBefore(l),a.parent=null,h&gt;0)throw new Error(&quot;cycle&quot;);return a}return r.id=function(e){return arguments.length?(t=M(e),r):t},r.parentId=function(t){return arguments.length?(e=M(t),r):e},r},t.tree=function(){var t=B,e=1,r=1,n=null;function i(i){var l=function(t){for(var e,r,n,i,a,o=new q(t,0),s=[o];e=s.pop();)if(n=e._.children)for(e.children=new Array(a=n.length),i=a-1;i&gt;=0;--i)s.push(r=e.children[i]=new q(n[i],i)),r.parent=e;return(o.parent=new q(null,0)).children=[o],o}(i);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(o),n)i.eachBefore(s);else{var c=i,u=i,f=i;i.eachBefore((function(t){t.x&lt;c.x&amp;&amp;(c=t),t.x&gt;u.x&amp;&amp;(u=t),t.depth&gt;f.depth&amp;&amp;(f=t)}));var h=c===u?1:t(c,u)/2,p=h-c.x,d=e/(u.x+h+p),g=r/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*g}))}return i}function a(e){var r=e.children,n=e.parent.children,i=e.i?n[e.i-1]:null;if(r){!function(t){for(var e,r=0,n=0,i=t.children,a=i.length;--a&gt;=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(e);var a=(r[0].z+r[r.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&amp;&amp;(e.z=i.z+t(e._,i._));e.parent.A=function(e,r,n){if(r){for(var i,a=e,o=e,s=r,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=j(s),a=N(a),s&amp;&amp;a;)l=N(l),(o=j(o)).a=e,(i=s.z+f-a.z-c+t(s._,a._))&gt;0&amp;&amp;(U(V(s,e,n),e,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&amp;&amp;!j(o)&amp;&amp;(o.t=s,o.m+=f-u),a&amp;&amp;!N(l)&amp;&amp;(l.t=a,l.m+=c-h,n=e)}return n}(e,i,e.parent.A||n[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*r}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(n=!1,e=+t[0],r=+t[1],i):n?null:[e,r]},i.nodeSize=function(t){return arguments.length?(n=!0,e=+t[0],r=+t[1],i):n?[e,r]:null},i},t.treemap=function(){var t=W,e=!1,r=1,n=1,i=[0],a=A,o=A,s=A,l=A,c=A;function u(t){return t.x0=t.y0=0,t.x1=r,t.y1=n,t.eachBefore(f),i=[0],e&amp;&amp;t.eachBefore(P),t}function f(e){var r=i[e.depth],n=e.x0+r,u=e.y0+r,f=e.x1-r,h=e.y1-r;f&lt;n&amp;&amp;(n=f=(n+f)/2),h&lt;u&amp;&amp;(u=h=(u+h)/2),e.x0=n,e.y0=u,e.x1=f,e.y1=h,e.children&amp;&amp;(r=i[e.depth+1]=a(e)/2,n+=c(e)-r,u+=o(e)-r,(f-=s(e)-r)&lt;n&amp;&amp;(n=f=(n+f)/2),(h-=l(e)-r)&lt;u&amp;&amp;(u=h=(u+h)/2),t(e,n,u,f,h))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(r=+t[0],n=+t[1],u):[r,n]},u.tile=function(e){return arguments.length?(t=M(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:S(+t),u):a},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:S(+t),u):o},u.paddingRight=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:S(+t),u):s},u.paddingBottom=function(t){return arguments.length?(l=&quot;function&quot;==typeof t?t:S(+t),u):l},u.paddingLeft=function(t){return arguments.length?(c=&quot;function&quot;==typeof t?t:S(+t),u):c},u},t.treemapBinary=function(t,e,r,n,i){var a,o,s=t.children,l=s.length,c=new Array(l+1);for(c[0]=o=a=0;a&lt;l;++a)c[a+1]=o+=s[a].value;!function t(e,r,n,i,a,o,l){if(e&gt;=r-1){var u=s[e];return u.x0=i,u.y0=a,u.x1=o,void(u.y1=l)}var f=c[e],h=n/2+f,p=e+1,d=r-1;for(;p&lt;d;){var g=p+d&gt;&gt;&gt;1;c[g]&lt;h?p=g+1:d=g}h-c[p-1]&lt;c[p]-h&amp;&amp;e+1&lt;p&amp;&amp;--p;var m=c[p]-f,v=n-m;if(o-i&gt;l-a){var y=(i*v+o*m)/n;t(e,p,m,i,a,y,l),t(p,r,v,y,a,o,l)}else{var x=(a*v+l*m)/n;t(e,p,m,i,a,o,x),t(p,r,v,i,x,o,l)}}(0,l,t.value,e,r,n,i)},t.treemapDice=z,t.treemapResquarify=X,t.treemapSlice=H,t.treemapSliceDice=function(t,e,r,n,i){(1&amp;t.depth?H:z)(t,e,r,n,i)},t.treemapSquarify=W,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],162:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-color&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}function n(t){var e=t.length-1;return function(n){var i=n&lt;=0?n=0:n&gt;=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i&gt;0?t[i-1]:2*a-o,l=i&lt;e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,l)}}function i(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)&lt;0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],l=t[(i+2)%e];return r((n-i/e)*e,a,o,s,l)}}function a(t){return function(){return t}}function o(t,e){return function(r){return t+r*e}}function s(t,e){var r=e-t;return r?o(t,r&gt;180||r&lt;-180?r-360*Math.round(r/360):r):a(isNaN(t)?e:t)}function l(t){return 1==(t=+t)?c:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):a(isNaN(e)?r:e)}}function c(t,e){var r=e-t;return r?o(t,r):a(isNaN(t)?e:t)}var u=function t(r){var n=l(r);function i(t,r){var i=n((t=e.rgb(t)).r,(r=e.rgb(r)).r),a=n(t.g,r.g),o=n(t.b,r.b),s=c(t.opacity,r.opacity);return function(e){return t.r=i(e),t.g=a(e),t.b=o(e),t.opacity=s(e),t+&quot;&quot;}}return i.gamma=t,i}(1);function f(t){return function(r){var n,i,a=r.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;n&lt;a;++n)i=e.rgb(r[n]),o[n]=i.r||0,s[n]=i.g||0,l[n]=i.b||0;return o=t(o),s=t(s),l=t(l),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=l(t),i+&quot;&quot;}}}var h=f(n),p=f(i);function d(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(r=0;r&lt;n;++r)i[r]=t[r]*(1-a)+e[r]*a;return i}}function g(t){return ArrayBuffer.isView(t)&amp;&amp;!(t instanceof DataView)}function m(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,a=new Array(i),o=new Array(n);for(r=0;r&lt;i;++r)a[r]=T(t[r],e[r]);for(;r&lt;n;++r)o[r]=e[r];return function(t){for(r=0;r&lt;i;++r)o[r]=a[r](t);return o}}function v(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function y(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function x(t,e){var r,n={},i={};for(r in null!==t&amp;&amp;&quot;object&quot;==typeof t||(t={}),null!==e&amp;&amp;&quot;object&quot;==typeof e||(e={}),e)r in t?n[r]=T(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var b=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(b.source,&quot;g&quot;);function w(t,e){var r,n,i,a=b.lastIndex=_.lastIndex=0,o=-1,s=[],l=[];for(t+=&quot;&quot;,e+=&quot;&quot;;(r=b.exec(t))&amp;&amp;(n=_.exec(e));)(i=n.index)&gt;a&amp;&amp;(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:y(r,n)})),a=_.lastIndex;return a&lt;e.length&amp;&amp;(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length&lt;2?l[0]?function(t){return function(e){return t(e)+&quot;&quot;}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var r,n=0;n&lt;e;++n)s[(r=l[n]).i]=r.x(t);return s.join(&quot;&quot;)})}function T(t,r){var n,i=typeof r;return null==r||&quot;boolean&quot;===i?a(r):(&quot;number&quot;===i?y:&quot;string&quot;===i?(n=e.color(r))?(r=n,u):w:r instanceof e.color?u:r instanceof Date?v:g(r)?d:Array.isArray(r)?m:&quot;function&quot;!=typeof r.valueOf&amp;&amp;&quot;function&quot;!=typeof r.toString||isNaN(r)?x:y)(t,r)}var k,M,A,S,E=180/Math.PI,C={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function L(t,e,r,n,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&amp;&amp;(t/=o,e/=o),(l=t*r+e*n)&amp;&amp;(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&amp;&amp;(r/=s,n/=s,l/=s),t*n&lt;e*r&amp;&amp;(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*E,skewX:Math.atan(l)*E,scaleX:o,scaleY:s}}function I(t,e,r,n){function i(t){return t.length?t.pop()+&quot; &quot;:&quot;&quot;}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,n,i,a,o,s){if(t!==i||n!==a){var l=o.push(&quot;translate(&quot;,null,e,null,r);s.push({i:l-4,x:y(t,i)},{i:l-2,x:y(n,a)})}else(i||a)&amp;&amp;o.push(&quot;translate(&quot;+i+e+a+r)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,r,a){t!==e?(t-e&gt;180?e+=360:e-t&gt;180&amp;&amp;(t+=360),a.push({i:r.push(i(r)+&quot;rotate(&quot;,null,n)-2,x:y(t,e)})):e&amp;&amp;r.push(i(r)+&quot;rotate(&quot;+e+n)}(a.rotate,o.rotate,s,l),function(t,e,r,a){t!==e?a.push({i:r.push(i(r)+&quot;skewX(&quot;,null,n)-2,x:y(t,e)}):e&amp;&amp;r.push(i(r)+&quot;skewX(&quot;+e+n)}(a.skewX,o.skewX,s,l),function(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+&quot;scale(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);o.push({i:s-4,x:y(t,r)},{i:s-2,x:y(e,n)})}else 1===r&amp;&amp;1===n||a.push(i(a)+&quot;scale(&quot;+r+&quot;,&quot;+n+&quot;)&quot;)}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,r=-1,n=l.length;++r&lt;n;)s[(e=l[r]).i]=e.x(t);return s.join(&quot;&quot;)}}}var P=I((function(t){return&quot;none&quot;===t?C:(k||(k=document.createElement(&quot;DIV&quot;),M=document.documentElement,A=document.defaultView),k.style.transform=t,t=A.getComputedStyle(M.appendChild(k),null).getPropertyValue(&quot;transform&quot;),M.removeChild(k),L(+(t=t.slice(7,-1).split(&quot;,&quot;))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),&quot;px, &quot;,&quot;px)&quot;,&quot;deg)&quot;),z=I((function(t){return null==t?C:(S||(S=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;)),S.setAttribute(&quot;transform&quot;,t),(t=S.transform.baseVal.consolidate())?L((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):C)}),&quot;, &quot;,&quot;)&quot;,&quot;)&quot;),O=Math.SQRT2;function D(t){return((t=Math.exp(t))+1/t)/2}function R(t){return function(r,n){var i=t((r=e.hsl(r)).h,(n=e.hsl(n)).h),a=c(r.s,n.s),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.s=a(t),r.l=o(t),r.opacity=s(t),r+&quot;&quot;}}}var F=R(s),B=R(c);function N(t){return function(r,n){var i=t((r=e.hcl(r)).h,(n=e.hcl(n)).h),a=c(r.c,n.c),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.c=a(t),r.l=o(t),r.opacity=s(t),r+&quot;&quot;}}}var j=N(s),U=N(c);function V(t){return function r(n){function i(r,i){var a=t((r=e.cubehelix(r)).h,(i=e.cubehelix(i)).h),o=c(r.s,i.s),s=c(r.l,i.l),l=c(r.opacity,i.opacity);return function(t){return r.h=a(t),r.s=o(t),r.l=s(Math.pow(t,n)),r.opacity=l(t),r+&quot;&quot;}}return n=+n,i.gamma=r,i}(1)}var q=V(s),H=V(c);t.interpolate=T,t.interpolateArray=function(t,e){return(g(e)?d:m)(t,e)},t.interpolateBasis=n,t.interpolateBasisClosed=i,t.interpolateCubehelix=q,t.interpolateCubehelixLong=H,t.interpolateDate=v,t.interpolateDiscrete=function(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}},t.interpolateHcl=j,t.interpolateHclLong=U,t.interpolateHsl=F,t.interpolateHslLong=B,t.interpolateHue=function(t,e){var r=s(+t,+e);return function(t){var e=r(t);return e-360*Math.floor(e/360)}},t.interpolateLab=function(t,r){var n=c((t=e.lab(t)).l,(r=e.lab(r)).l),i=c(t.a,r.a),a=c(t.b,r.b),o=c(t.opacity,r.opacity);return function(e){return t.l=n(e),t.a=i(e),t.b=a(e),t.opacity=o(e),t+&quot;&quot;}},t.interpolateNumber=y,t.interpolateNumberArray=d,t.interpolateObject=x,t.interpolateRgb=u,t.interpolateRgbBasis=h,t.interpolateRgbBasisClosed=p,t.interpolateRound=function(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}},t.interpolateString=w,t.interpolateTransformCss=P,t.interpolateTransformSvg=z,t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h&lt;1e-12)n=Math.log(c/o)/O,r=function(t){return[i+t*u,a+t*f,o*Math.exp(O*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),g=(c*c-o*o-4*h)/(2*c*2*p),m=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(g*g+1)-g);n=(v-m)/O,r=function(t){var e,r=t*n,s=D(m),l=o/(2*p)*(s*(e=O*r+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[i+l*u,a+l*f,o*s/D(O*r+m)]}}return r.duration=1e3*n,r},t.piecewise=function(t,e){for(var r=0,n=e.length-1,i=e[0],a=new Array(n&lt;0?0:n);r&lt;n;)a[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return a[e](t-e)}},t.quantize=function(t,e){for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=t(n/(e-1));return r},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-color&quot;:158}],163:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e=Math.PI,r=2*e,n=r-1e-6;function i(){this._x0=this._y0=this._x1=this._y1=null,this._=&quot;&quot;}function a(){return new i}i.prototype=a.prototype={constructor:i,moveTo:function(t,e){this._+=&quot;M&quot;+(this._x0=this._x1=+t)+&quot;,&quot;+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&amp;&amp;(this._x1=this._x0,this._y1=this._y0,this._+=&quot;Z&quot;)},lineTo:function(t,e){this._+=&quot;L&quot;+(this._x1=+t)+&quot;,&quot;+(this._y1=+e)},quadraticCurveTo:function(t,e,r,n){this._+=&quot;Q&quot;+ +t+&quot;,&quot;+ +e+&quot;,&quot;+(this._x1=+r)+&quot;,&quot;+(this._y1=+n)},bezierCurveTo:function(t,e,r,n,i,a){this._+=&quot;C&quot;+ +t+&quot;,&quot;+ +e+&quot;,&quot;+ +r+&quot;,&quot;+ +n+&quot;,&quot;+(this._x1=+i)+&quot;,&quot;+(this._y1=+a)},arcTo:function(t,r,n,i,a){t=+t,r=+r,n=+n,i=+i,a=+a;var o=this._x1,s=this._y1,l=n-t,c=i-r,u=o-t,f=s-r,h=u*u+f*f;if(a&lt;0)throw new Error(&quot;negative radius: &quot;+a);if(null===this._x1)this._+=&quot;M&quot;+(this._x1=t)+&quot;,&quot;+(this._y1=r);else if(h&gt;1e-6)if(Math.abs(f*l-c*u)&gt;1e-6&amp;&amp;a){var p=n-o,d=i-s,g=l*l+c*c,m=p*p+d*d,v=Math.sqrt(g),y=Math.sqrt(h),x=a*Math.tan((e-Math.acos((g+h-m)/(2*v*y)))/2),b=x/y,_=x/v;Math.abs(b-1)&gt;1e-6&amp;&amp;(this._+=&quot;L&quot;+(t+b*u)+&quot;,&quot;+(r+b*f)),this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,0,&quot;+ +(f*p&gt;u*d)+&quot;,&quot;+(this._x1=t+_*l)+&quot;,&quot;+(this._y1=r+_*c)}else this._+=&quot;L&quot;+(this._x1=t)+&quot;,&quot;+(this._y1=r);else;},arc:function(t,i,a,o,s,l){t=+t,i=+i,l=!!l;var c=(a=+a)*Math.cos(o),u=a*Math.sin(o),f=t+c,h=i+u,p=1^l,d=l?o-s:s-o;if(a&lt;0)throw new Error(&quot;negative radius: &quot;+a);null===this._x1?this._+=&quot;M&quot;+f+&quot;,&quot;+h:(Math.abs(this._x1-f)&gt;1e-6||Math.abs(this._y1-h)&gt;1e-6)&amp;&amp;(this._+=&quot;L&quot;+f+&quot;,&quot;+h),a&amp;&amp;(d&lt;0&amp;&amp;(d=d%r+r),d&gt;n?this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,1,&quot;+p+&quot;,&quot;+(t-c)+&quot;,&quot;+(i-u)+&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,1,&quot;+p+&quot;,&quot;+(this._x1=f)+&quot;,&quot;+(this._y1=h):d&gt;1e-6&amp;&amp;(this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,&quot;+ +(d&gt;=e)+&quot;,&quot;+p+&quot;,&quot;+(this._x1=t+a*Math.cos(s))+&quot;,&quot;+(this._y1=i+a*Math.sin(s))))},rect:function(t,e,r,n){this._+=&quot;M&quot;+(this._x0=this._x1=+t)+&quot;,&quot;+(this._y0=this._y1=+e)+&quot;h&quot;+ +r+&quot;v&quot;+ +n+&quot;h&quot;+-r+&quot;Z&quot;},toString:function(){return this._}},t.path=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],164:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var i,a,o,s,l,c,u,f,h,p=t._root,d={data:n},g=t._x0,m=t._y0,v=t._x1,y=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((c=e&gt;=(a=(g+v)/2))?g=a:v=a,(u=r&gt;=(o=(m+y)/2))?m=o:y=o,i=p,!(p=p[f=u&lt;&lt;1|c]))return i[f]=d,t;if(s=+t._x.call(null,p.data),l=+t._y.call(null,p.data),e===s&amp;&amp;r===l)return d.next=p,i?i[f]=d:t._root=d,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(c=e&gt;=(a=(g+v)/2))?g=a:v=a,(u=r&gt;=(o=(m+y)/2))?m=o:y=o}while((f=u&lt;&lt;1|c)==(h=(l&gt;=o)&lt;&lt;1|s&gt;=a));return i[h]=p,i[f]=d,t}function r(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i}function n(t){return t[0]}function i(t){return t[1]}function a(t,e,r){var a=new o(null==e?n:e,null==r?i:r,NaN,NaN,NaN,NaN);return null==t?a:a.addAll(t)}function o(t,e,r,n,i,a){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function s(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var l=a.prototype=o.prototype;l.copy=function(){var t,e,r=new o(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=s(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var i=0;i&lt;4;++i)(e=n.source[i])&amp;&amp;(e.length?t.push({source:e,target:n.target[i]=new Array(4)}):n.target[i]=s(e));return r},l.add=function(t){var r=+this._x.call(null,t),n=+this._y.call(null,t);return e(this.cover(r,n),r,n,t)},l.addAll=function(t){var r,n,i,a,o=t.length,s=new Array(o),l=new Array(o),c=1/0,u=1/0,f=-1/0,h=-1/0;for(n=0;n&lt;o;++n)isNaN(i=+this._x.call(null,r=t[n]))||isNaN(a=+this._y.call(null,r))||(s[n]=i,l[n]=a,i&lt;c&amp;&amp;(c=i),i&gt;f&amp;&amp;(f=i),a&lt;u&amp;&amp;(u=a),a&gt;h&amp;&amp;(h=a));if(c&gt;f||u&gt;h)return this;for(this.cover(c,u).cover(f,h),n=0;n&lt;o;++n)e(this,s[n],l[n],t[n]);return this},l.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,n=this._y0,i=this._x1,a=this._y1;if(isNaN(r))i=(r=Math.floor(t))+1,a=(n=Math.floor(e))+1;else{for(var o,s,l=i-r,c=this._root;r&gt;t||t&gt;=i||n&gt;e||e&gt;=a;)switch(s=(e&lt;n)&lt;&lt;1|t&lt;r,(o=new Array(4))[s]=c,c=o,l*=2,s){case 0:i=r+l,a=n+l;break;case 1:r=i-l,a=n+l;break;case 2:i=r+l,n=a-l;break;case 3:r=i-l,n=a-l}this._root&amp;&amp;this._root.length&amp;&amp;(this._root=c)}return this._x0=r,this._y0=n,this._x1=i,this._y1=a,this},l.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},l.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},l.find=function(t,e,n){var i,a,o,s,l,c,u,f=this._x0,h=this._y0,p=this._x1,d=this._y1,g=[],m=this._root;for(m&amp;&amp;g.push(new r(m,f,h,p,d)),null==n?n=1/0:(f=t-n,h=e-n,p=t+n,d=e+n,n*=n);c=g.pop();)if(!(!(m=c.node)||(a=c.x0)&gt;p||(o=c.y0)&gt;d||(s=c.x1)&lt;f||(l=c.y1)&lt;h))if(m.length){var v=(a+s)/2,y=(o+l)/2;g.push(new r(m[3],v,y,s,l),new r(m[2],a,y,v,l),new r(m[1],v,o,s,y),new r(m[0],a,o,v,y)),(u=(e&gt;=y)&lt;&lt;1|t&gt;=v)&amp;&amp;(c=g[g.length-1],g[g.length-1]=g[g.length-1-u],g[g.length-1-u]=c)}else{var x=t-+this._x.call(null,m.data),b=e-+this._y.call(null,m.data),_=x*x+b*b;if(_&lt;n){var w=Math.sqrt(n=_);f=t-w,h=e-w,p=t+w,d=e+w,i=m.data}}return i},l.remove=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,r,n,i,a,o,s,l,c,u,f,h,p=this._root,d=this._x0,g=this._y0,m=this._x1,v=this._y1;if(!p)return this;if(p.length)for(;;){if((c=a&gt;=(s=(d+m)/2))?d=s:m=s,(u=o&gt;=(l=(g+v)/2))?g=l:v=l,e=p,!(p=p[f=u&lt;&lt;1|c]))return this;if(!p.length)break;(e[f+1&amp;3]||e[f+2&amp;3]||e[f+3&amp;3])&amp;&amp;(r=e,h=f)}for(;p.data!==t;)if(n=p,!(p=p.next))return this;return(i=p.next)&amp;&amp;delete p.next,n?(i?n.next=i:delete n.next,this):e?(i?e[f]=i:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&amp;&amp;p===(e[3]||e[2]||e[1]||e[0])&amp;&amp;!p.length&amp;&amp;(r?r[h]=p:this._root=p),this):(this._root=i,this)},l.removeAll=function(t){for(var e=0,r=t.length;e&lt;r;++e)this.remove(t[e]);return this},l.root=function(){return this._root},l.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},l.visit=function(t){var e,n,i,a,o,s,l=[],c=this._root;for(c&amp;&amp;l.push(new r(c,this._x0,this._y0,this._x1,this._y1));e=l.pop();)if(!t(c=e.node,i=e.x0,a=e.y0,o=e.x1,s=e.y1)&amp;&amp;c.length){var u=(i+o)/2,f=(a+s)/2;(n=c[3])&amp;&amp;l.push(new r(n,u,f,o,s)),(n=c[2])&amp;&amp;l.push(new r(n,i,f,u,s)),(n=c[1])&amp;&amp;l.push(new r(n,u,a,o,f)),(n=c[0])&amp;&amp;l.push(new r(n,i,a,u,f))}return this},l.visitAfter=function(t){var e,n=[],i=[];for(this._root&amp;&amp;n.push(new r(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var a=e.node;if(a.length){var o,s=e.x0,l=e.y0,c=e.x1,u=e.y1,f=(s+c)/2,h=(l+u)/2;(o=a[0])&amp;&amp;n.push(new r(o,s,l,f,h)),(o=a[1])&amp;&amp;n.push(new r(o,f,l,c,h)),(o=a[2])&amp;&amp;n.push(new r(o,s,h,f,u)),(o=a[3])&amp;&amp;n.push(new r(o,f,h,c,u))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},l.x=function(t){return arguments.length?(this._x=t,this):this._x},l.y=function(t){return arguments.length?(this._y=t,this):this._y},t.quadtree=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],165:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-path&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t){return function(){return t}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,c=Math.sqrt,u=Math.PI,f=u/2,h=2*u;function p(t){return t&gt;1?0:t&lt;-1?u:Math.acos(t)}function d(t){return t&gt;=1?f:t&lt;=-1?-f:Math.asin(t)}function g(t){return t.innerRadius}function m(t){return t.outerRadius}function v(t){return t.startAngle}function y(t){return t.endAngle}function x(t){return t&amp;&amp;t.padAngle}function b(t,e,r,n,i,a,o,s){var l=r-t,c=n-e,u=o-i,f=s-a,h=f*l-u*c;if(!(h*h&lt;1e-12))return[t+(h=(u*(e-a)-f*(t-i))/h)*l,e+h*c]}function _(t,e,r,n,i,a,s){var l=t-r,u=e-n,f=(s?a:-a)/c(l*l+u*u),h=f*u,p=-f*l,d=t+h,g=e+p,m=r+h,v=n+p,y=(d+m)/2,x=(g+v)/2,b=m-d,_=v-g,w=b*b+_*_,T=i-a,k=d*v-m*g,M=(_&lt;0?-1:1)*c(o(0,T*T*w-k*k)),A=(k*_-b*M)/w,S=(-k*b-_*M)/w,E=(k*_+b*M)/w,C=(-k*b+_*M)/w,L=A-y,I=S-x,P=E-y,z=C-x;return L*L+I*I&gt;P*P+z*z&amp;&amp;(A=E,S=C),{cx:A,cy:S,x01:-h,y01:-p,x11:A*(i/T-1),y11:S*(i/T-1)}}function w(t){this._context=t}function T(t){return new w(t)}function k(t){return t[0]}function M(t){return t[1]}function A(){var t=k,n=M,i=r(!0),a=null,o=T,s=null;function l(r){var l,c,u,f=r.length,h=!1;for(null==a&amp;&amp;(s=o(u=e.path())),l=0;l&lt;=f;++l)!(l&lt;f&amp;&amp;i(c=r[l],l,r))===h&amp;&amp;((h=!h)?s.lineStart():s.lineEnd()),h&amp;&amp;s.point(+t(c,l,r),+n(c,l,r));if(u)return s=null,u+&quot;&quot;||null}return l.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),l):t},l.y=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:r(+t),l):n},l.defined=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(!!t),l):i},l.curve=function(t){return arguments.length?(o=t,null!=a&amp;&amp;(s=o(a)),l):o},l.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),l):a},l}function S(){var t=k,n=null,i=r(0),a=M,o=r(!0),s=null,l=T,c=null;function u(r){var u,f,h,p,d,g=r.length,m=!1,v=new Array(g),y=new Array(g);for(null==s&amp;&amp;(c=l(d=e.path())),u=0;u&lt;=g;++u){if(!(u&lt;g&amp;&amp;o(p=r[u],u,r))===m)if(m=!m)f=u,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),h=u-1;h&gt;=f;--h)c.point(v[h],y[h]);c.lineEnd(),c.areaEnd()}m&amp;&amp;(v[u]=+t(p,u,r),y[u]=+i(p,u,r),c.point(n?+n(p,u,r):v[u],a?+a(p,u,r):y[u]))}if(d)return c=null,d+&quot;&quot;||null}function f(){return A().defined(o).curve(l).context(s)}return u.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),n=null,u):t},u.x0=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),u):t},u.x1=function(t){return arguments.length?(n=null==t?null:&quot;function&quot;==typeof t?t:r(+t),u):n},u.y=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),a=null,u):i},u.y0=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),u):i},u.y1=function(t){return arguments.length?(a=null==t?null:&quot;function&quot;==typeof t?t:r(+t),u):a},u.lineX0=u.lineY0=function(){return f().x(t).y(i)},u.lineY1=function(){return f().x(t).y(a)},u.lineX1=function(){return f().x(n).y(i)},u.defined=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(!!t),u):o},u.curve=function(t){return arguments.length?(l=t,null!=s&amp;&amp;(c=l(s)),u):l},u.context=function(t){return arguments.length?(null==t?s=c=null:c=l(s=t),u):s},u}function E(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN}function C(t){return t}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var L=P(T);function I(t){this._curve=t}function P(t){function e(e){return new I(t(e))}return e._curve=t,e}function z(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(P(t)):e()._curve},t}function O(){return z(A().curve(L))}function D(){var t=S().curve(L),e=t.curve,r=t.lineX0,n=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return z(r())},delete t.lineX0,t.lineEndAngle=function(){return z(n())},delete t.lineX1,t.lineInnerRadius=function(){return z(i())},delete t.lineY0,t.lineOuterRadius=function(){return z(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(P(t)):e()._curve},t}function R(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}I.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var F=Array.prototype.slice;function B(t){return t.source}function N(t){return t.target}function j(t){var n=B,i=N,a=k,o=M,s=null;function l(){var r,l=F.call(arguments),c=n.apply(this,l),u=i.apply(this,l);if(s||(s=r=e.path()),t(s,+a.apply(this,(l[0]=c,l)),+o.apply(this,l),+a.apply(this,(l[0]=u,l)),+o.apply(this,l)),r)return s=null,r+&quot;&quot;||null}return l.source=function(t){return arguments.length?(n=t,l):n},l.target=function(t){return arguments.length?(i=t,l):i},l.x=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:r(+t),l):a},l.y=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),l):o},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function U(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,i,n,i)}function V(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e,r=(r+i)/2,n,r,n,i)}function q(t,e,r,n,i){var a=R(e,r),o=R(e,r=(r+i)/2),s=R(n,r),l=R(n,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}var H={draw:function(t,e){var r=Math.sqrt(e/u);t.moveTo(r,0),t.arc(0,0,r,0,h)}},G={draw:function(t,e){var r=Math.sqrt(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Y=Math.sqrt(1/3),W=2*Y,X={draw:function(t,e){var r=Math.sqrt(e/W),n=r*Y;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Z=Math.sin(u/10)/Math.sin(7*u/10),J=Math.sin(h/10)*Z,K=-Math.cos(h/10)*Z,Q={draw:function(t,e){var r=Math.sqrt(.8908130915292852*e),n=J*r,i=K*r;t.moveTo(0,-r),t.lineTo(n,i);for(var a=1;a&lt;5;++a){var o=h*a/5,s=Math.cos(o),l=Math.sin(o);t.lineTo(l*r,-s*r),t.lineTo(s*n-l*i,l*n+s*i)}t.closePath()}},$={draw:function(t,e){var r=Math.sqrt(e),n=-r/2;t.rect(n,n,r,r)}},tt=Math.sqrt(3),et={draw:function(t,e){var r=-Math.sqrt(e/(3*tt));t.moveTo(0,2*r),t.lineTo(-tt*r,-r),t.lineTo(tt*r,-r),t.closePath()}},rt=-.5,nt=Math.sqrt(3)/2,it=1/Math.sqrt(12),at=3*(it/2+1),ot={draw:function(t,e){var r=Math.sqrt(e/at),n=r/2,i=r*it,a=n,o=r*it+r,s=-a,l=o;t.moveTo(n,i),t.lineTo(a,o),t.lineTo(s,l),t.lineTo(rt*n-nt*i,nt*n+rt*i),t.lineTo(rt*a-nt*o,nt*a+rt*o),t.lineTo(rt*s-nt*l,nt*s+rt*l),t.lineTo(rt*n+nt*i,rt*i-nt*n),t.lineTo(rt*a+nt*o,rt*o-nt*a),t.lineTo(rt*s+nt*l,rt*l-nt*s),t.closePath()}},st=[H,G,X,$,Q,et,ot];function lt(){}function ct(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function ut(t){this._context=t}function ft(t){this._context=t}function ht(t){this._context=t}function pt(t,e){this._basis=new ut(t),this._beta=e}ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ct(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ft.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},pt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r&gt;0)for(var n,i=t[0],a=e[0],o=t[r]-i,s=e[r]-a,l=-1;++l&lt;=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+n*o),this._beta*e[l]+(1-this._beta)*(a+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var dt=function t(e){function r(t){return 1===e?new ut(t):new pt(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function gt(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function mt(t,e){this._context=t,this._k=(1-e)/6}mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:gt(this,this._x1,this._y1)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var vt=function t(e){function r(t){return new mt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function yt(t,e){this._context=t,this._k=(1-e)/6}yt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var xt=function t(e){function r(t){return new yt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function bt(t,e){this._context=t,this._k=(1-e)/6}bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var _t=function t(e){function r(t){return new bt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function wt(t,e,r){var n=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a&gt;1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a&gt;1e-12){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(n,i,a,o,t._x2,t._y2)}function Tt(t,e){this._context=t,this._alpha=e}Tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var kt=function t(e){function r(t){return e?new Tt(t,e):new mt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Mt(t,e){this._context=t,this._alpha=e}Mt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var At=function t(e){function r(t){return e?new Mt(t,e):new yt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function St(t,e){this._context=t,this._alpha=e}St.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Et=function t(e){function r(t){return e?new St(t,e):new bt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Ct(t){this._context=t}function Lt(t){return t&lt;0?-1:1}function It(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i&lt;0&amp;&amp;-0),o=(r-t._y1)/(i||n&lt;0&amp;&amp;-0),s=(a*i+o*n)/(n+i);return(Lt(a)+Lt(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Pt(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function zt(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-n)/3;t._context.bezierCurveTo(n+s,i+s*e,a-s,o-s*r,a,o)}function Ot(t){this._context=t}function Dt(t){this._context=new Rt(t)}function Rt(t){this._context=t}function Ft(t){this._context=t}function Bt(t){var e,r,n=t.length-1,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e&lt;n-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e&lt;n;++e)r=i[e]/a[e-1],a[e]-=r,o[e]-=r*o[e-1];for(i[n-1]=o[n-1]/a[n-1],e=n-2;e&gt;=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[n-1]=(t[n]+i[n-1])/2,e=0;e&lt;n-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function Nt(t,e){this._context=t,this._t=e}function jt(t,e){if((i=t.length)&gt;1)for(var r,n,i,a=1,o=t[e[0]],s=o.length;a&lt;i;++a)for(n=o,o=t[e[a]],r=0;r&lt;s;++r)o[r][1]+=o[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Ut(t){for(var e=t.length,r=new Array(e);--e&gt;=0;)r[e]=e;return r}function Vt(t,e){return t[e]}function qt(t){var e=t.map(Ht);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function Ht(t){for(var e,r=-1,n=0,i=t.length,a=-1/0;++r&lt;i;)(e=+t[r][1])&gt;a&amp;&amp;(a=e,n=r);return n}function Gt(t){var e=t.map(Yt);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function Yt(t){for(var e,r=0,n=-1,i=t.length;++n&lt;i;)(e=+t[n][1])&amp;&amp;(r+=e);return r}Ct.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._point=0},lineEnd:function(){this._point&amp;&amp;this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Ot.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:zt(this,this._t0,Pt(this,this._t0))}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,zt(this,Pt(this,r=It(this,t,e)),r);break;default:zt(this,this._t0,r=It(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Dt.prototype=Object.create(Ot.prototype)).point=function(t,e){Ot.prototype.point.call(this,e,t)},Rt.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}},Ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=Bt(t),i=Bt(e),a=0,o=1;o&lt;r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&amp;&amp;1===r)&amp;&amp;this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Nt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0&lt;this._t&amp;&amp;this._t&lt;1&amp;&amp;2===this._point&amp;&amp;this._context.lineTo(this._x,this._y),(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line&gt;=0&amp;&amp;(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t&lt;=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},t.arc=function(){var t=g,o=m,w=r(0),T=null,k=v,M=y,A=x,S=null;function E(){var r,g,m=+t.apply(this,arguments),v=+o.apply(this,arguments),y=k.apply(this,arguments)-f,x=M.apply(this,arguments)-f,E=n(x-y),C=x&gt;y;if(S||(S=r=e.path()),v&lt;m&amp;&amp;(g=v,v=m,m=g),v&gt;1e-12)if(E&gt;h-1e-12)S.moveTo(v*a(y),v*l(y)),S.arc(0,0,v,y,x,!C),m&gt;1e-12&amp;&amp;(S.moveTo(m*a(x),m*l(x)),S.arc(0,0,m,x,y,C));else{var L,I,P=y,z=x,O=y,D=x,R=E,F=E,B=A.apply(this,arguments)/2,N=B&gt;1e-12&amp;&amp;(T?+T.apply(this,arguments):c(m*m+v*v)),j=s(n(v-m)/2,+w.apply(this,arguments)),U=j,V=j;if(N&gt;1e-12){var q=d(N/m*l(B)),H=d(N/v*l(B));(R-=2*q)&gt;1e-12?(O+=q*=C?1:-1,D-=q):(R=0,O=D=(y+x)/2),(F-=2*H)&gt;1e-12?(P+=H*=C?1:-1,z-=H):(F=0,P=z=(y+x)/2)}var G=v*a(P),Y=v*l(P),W=m*a(D),X=m*l(D);if(j&gt;1e-12){var Z,J=v*a(z),K=v*l(z),Q=m*a(O),$=m*l(O);if(E&lt;u&amp;&amp;(Z=b(G,Y,Q,$,J,K,W,X))){var tt=G-Z[0],et=Y-Z[1],rt=J-Z[0],nt=K-Z[1],it=1/l(p((tt*rt+et*nt)/(c(tt*tt+et*et)*c(rt*rt+nt*nt)))/2),at=c(Z[0]*Z[0]+Z[1]*Z[1]);U=s(j,(m-at)/(it-1)),V=s(j,(v-at)/(it+1))}}F&gt;1e-12?V&gt;1e-12?(L=_(Q,$,G,Y,v,V,C),I=_(J,K,W,X,v,V,C),S.moveTo(L.cx+L.x01,L.cy+L.y01),V&lt;j?S.arc(L.cx,L.cy,V,i(L.y01,L.x01),i(I.y01,I.x01),!C):(S.arc(L.cx,L.cy,V,i(L.y01,L.x01),i(L.y11,L.x11),!C),S.arc(0,0,v,i(L.cy+L.y11,L.cx+L.x11),i(I.cy+I.y11,I.cx+I.x11),!C),S.arc(I.cx,I.cy,V,i(I.y11,I.x11),i(I.y01,I.x01),!C))):(S.moveTo(G,Y),S.arc(0,0,v,P,z,!C)):S.moveTo(G,Y),m&gt;1e-12&amp;&amp;R&gt;1e-12?U&gt;1e-12?(L=_(W,X,J,K,m,-U,C),I=_(G,Y,Q,$,m,-U,C),S.lineTo(L.cx+L.x01,L.cy+L.y01),U&lt;j?S.arc(L.cx,L.cy,U,i(L.y01,L.x01),i(I.y01,I.x01),!C):(S.arc(L.cx,L.cy,U,i(L.y01,L.x01),i(L.y11,L.x11),!C),S.arc(0,0,m,i(L.cy+L.y11,L.cx+L.x11),i(I.cy+I.y11,I.cx+I.x11),C),S.arc(I.cx,I.cy,U,i(I.y11,I.x11),i(I.y01,I.x01),!C))):S.arc(0,0,m,D,O,C):S.lineTo(W,X)}else S.moveTo(0,0);if(S.closePath(),r)return S=null,r+&quot;&quot;||null}return E.centroid=function(){var e=(+t.apply(this,arguments)+ +o.apply(this,arguments))/2,r=(+k.apply(this,arguments)+ +M.apply(this,arguments))/2-u/2;return[a(r)*e,l(r)*e]},E.innerRadius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),E):t},E.outerRadius=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),E):o},E.cornerRadius=function(t){return arguments.length?(w=&quot;function&quot;==typeof t?t:r(+t),E):w},E.padRadius=function(t){return arguments.length?(T=null==t?null:&quot;function&quot;==typeof t?t:r(+t),E):T},E.startAngle=function(t){return arguments.length?(k=&quot;function&quot;==typeof t?t:r(+t),E):k},E.endAngle=function(t){return arguments.length?(M=&quot;function&quot;==typeof t?t:r(+t),E):M},E.padAngle=function(t){return arguments.length?(A=&quot;function&quot;==typeof t?t:r(+t),E):A},E.context=function(t){return arguments.length?(S=null==t?null:t,E):S},E},t.area=S,t.areaRadial=D,t.curveBasis=function(t){return new ut(t)},t.curveBasisClosed=function(t){return new ft(t)},t.curveBasisOpen=function(t){return new ht(t)},t.curveBundle=dt,t.curveCardinal=vt,t.curveCardinalClosed=xt,t.curveCardinalOpen=_t,t.curveCatmullRom=kt,t.curveCatmullRomClosed=At,t.curveCatmullRomOpen=Et,t.curveLinear=T,t.curveLinearClosed=function(t){return new Ct(t)},t.curveMonotoneX=function(t){return new Ot(t)},t.curveMonotoneY=function(t){return new Dt(t)},t.curveNatural=function(t){return new Ft(t)},t.curveStep=function(t){return new Nt(t,.5)},t.curveStepAfter=function(t){return new Nt(t,1)},t.curveStepBefore=function(t){return new Nt(t,0)},t.line=A,t.lineRadial=O,t.linkHorizontal=function(){return j(U)},t.linkRadial=function(){var t=j(q);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},t.linkVertical=function(){return j(V)},t.pie=function(){var t=C,e=E,n=null,i=r(0),a=r(h),o=r(0);function s(r){var s,l,c,u,f,p=r.length,d=0,g=new Array(p),m=new Array(p),v=+i.apply(this,arguments),y=Math.min(h,Math.max(-h,a.apply(this,arguments)-v)),x=Math.min(Math.abs(y)/p,o.apply(this,arguments)),b=x*(y&lt;0?-1:1);for(s=0;s&lt;p;++s)(f=m[g[s]=s]=+t(r[s],s,r))&gt;0&amp;&amp;(d+=f);for(null!=e?g.sort((function(t,r){return e(m[t],m[r])})):null!=n&amp;&amp;g.sort((function(t,e){return n(r[t],r[e])})),s=0,c=d?(y-p*b)/d:0;s&lt;p;++s,v=u)l=g[s],u=v+((f=m[l])&gt;0?f*c:0)+b,m[l]={data:r[l],index:s,value:f,startAngle:v,endAngle:u,padAngle:x};return m}return s.value=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),s):i},s.endAngle=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:r(+t),s):a},s.padAngle=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),s):o},s},t.pointRadial=R,t.radialArea=D,t.radialLine=O,t.stack=function(){var t=r([]),e=Ut,n=jt,i=Vt;function a(r){var a,o,s=t.apply(this,arguments),l=r.length,c=s.length,u=new Array(c);for(a=0;a&lt;c;++a){for(var f,h=s[a],p=u[a]=new Array(l),d=0;d&lt;l;++d)p[d]=f=[0,+i(r[d],h,d,r)],f.data=r[d];p.key=h}for(a=0,o=e(u);a&lt;c;++a)u[o[a]].index=a;return n(u,o),u}return a.keys=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(F.call(e)),a):t},a.value=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),a):i},a.order=function(t){return arguments.length?(e=null==t?Ut:&quot;function&quot;==typeof t?t:r(F.call(t)),a):e},a.offset=function(t){return arguments.length?(n=null==t?jt:t,a):n},a},t.stackOffsetDiverging=function(t,e){if((s=t.length)&gt;0)for(var r,n,i,a,o,s,l=0,c=t[e[0]].length;l&lt;c;++l)for(a=o=0,r=0;r&lt;s;++r)(i=(n=t[e[r]][l])[1]-n[0])&gt;0?(n[0]=a,n[1]=a+=i):i&lt;0?(n[1]=o,n[0]=o+=i):(n[0]=0,n[1]=i)},t.stackOffsetExpand=function(t,e){if((n=t.length)&gt;0){for(var r,n,i,a=0,o=t[0].length;a&lt;o;++a){for(i=r=0;r&lt;n;++r)i+=t[r][a][1]||0;if(i)for(r=0;r&lt;n;++r)t[r][a][1]/=i}jt(t,e)}},t.stackOffsetNone=jt,t.stackOffsetSilhouette=function(t,e){if((r=t.length)&gt;0){for(var r,n=0,i=t[e[0]],a=i.length;n&lt;a;++n){for(var o=0,s=0;o&lt;r;++o)s+=t[o][n][1]||0;i[n][1]+=i[n][0]=-s/2}jt(t,e)}},t.stackOffsetWiggle=function(t,e){if((i=t.length)&gt;0&amp;&amp;(n=(r=t[e[0]]).length)&gt;0){for(var r,n,i,a=0,o=1;o&lt;n;++o){for(var s=0,l=0,c=0;s&lt;i;++s){for(var u=t[e[s]],f=u[o][1]||0,h=(f-(u[o-1][1]||0))/2,p=0;p&lt;s;++p){var d=t[e[p]];h+=(d[o][1]||0)-(d[o-1][1]||0)}l+=f,c+=h*f}r[o-1][1]+=r[o-1][0]=a,l&amp;&amp;(a-=c/l)}r[o-1][1]+=r[o-1][0]=a,jt(t,e)}},t.stackOrderAppearance=qt,t.stackOrderAscending=Gt,t.stackOrderDescending=function(t){return Gt(t).reverse()},t.stackOrderInsideOut=function(t){var e,r,n=t.length,i=t.map(Yt),a=qt(t),o=0,s=0,l=[],c=[];for(e=0;e&lt;n;++e)r=a[e],o&lt;s?(o+=i[r],l.push(r)):(s+=i[r],c.push(r));return c.reverse().concat(l)},t.stackOrderNone=Ut,t.stackOrderReverse=function(t){return Ut(t).reverse()},t.symbol=function(){var t=r(H),n=r(64),i=null;function a(){var r;if(i||(i=r=e.path()),t.apply(this,arguments).draw(i,+n.apply(this,arguments)),r)return i=null,r+&quot;&quot;||null}return a.type=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(e),a):t},a.size=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:r(+t),a):n},a.context=function(t){return arguments.length?(i=null==t?null:t,a):i},a},t.symbolCircle=H,t.symbolCross=G,t.symbolDiamond=X,t.symbolSquare=$,t.symbolStar=Q,t.symbolTriangle=et,t.symbolWye=ot,t.symbols=st,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-path&quot;:163}],166:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-time&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t){if(0&lt;=t.y&amp;&amp;t.y&lt;100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function n(t){if(0&lt;=t.y&amp;&amp;t.y&lt;100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function i(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function a(t){var a=t.dateTime,o=t.date,l=t.time,c=t.periods,u=t.days,f=t.shortDays,h=t.months,yt=t.shortMonths,xt=p(c),bt=d(c),_t=p(u),wt=d(u),Tt=p(f),kt=d(f),Mt=p(h),At=d(h),St=p(yt),Et=d(yt),Ct={a:function(t){return f[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return yt[t.getMonth()]},B:function(t){return h[t.getMonth()]},c:null,d:D,e:D,f:j,H:R,I:F,j:B,L:N,m:U,M:V,p:function(t){return c[+(t.getHours()&gt;=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:mt,s:vt,S:q,u:H,U:G,V:Y,w:W,W:X,x:null,X:null,y:Z,Y:J,Z:K,&quot;%&quot;:gt},Lt={a:function(t){return f[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return yt[t.getUTCMonth()]},B:function(t){return h[t.getUTCMonth()]},c:null,d:Q,e:Q,f:nt,H:$,I:tt,j:et,L:rt,m:it,M:at,p:function(t){return c[+(t.getUTCHours()&gt;=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:mt,s:vt,S:ot,u:st,U:lt,V:ct,w:ut,W:ft,x:null,X:null,y:ht,Y:pt,Z:dt,&quot;%&quot;:gt},It={a:function(t,e,r){var n=Tt.exec(e.slice(r));return n?(t.w=kt[n[0].toLowerCase()],r+n[0].length):-1},A:function(t,e,r){var n=_t.exec(e.slice(r));return n?(t.w=wt[n[0].toLowerCase()],r+n[0].length):-1},b:function(t,e,r){var n=St.exec(e.slice(r));return n?(t.m=Et[n[0].toLowerCase()],r+n[0].length):-1},B:function(t,e,r){var n=Mt.exec(e.slice(r));return n?(t.m=At[n[0].toLowerCase()],r+n[0].length):-1},c:function(t,e,r){return Ot(t,a,e,r)},d:M,e:M,f:I,H:S,I:S,j:A,L:L,m:k,M:E,p:function(t,e,r){var n=xt.exec(e.slice(r));return n?(t.p=bt[n[0].toLowerCase()],r+n[0].length):-1},q:T,Q:z,s:O,S:C,u:m,U:v,V:y,w:g,W:x,x:function(t,e,r){return Ot(t,o,e,r)},X:function(t,e,r){return Ot(t,l,e,r)},y:_,Y:b,Z:w,&quot;%&quot;:P};function Pt(t,e){return function(r){var n,i,a,o=[],l=-1,c=0,u=t.length;for(r instanceof Date||(r=new Date(+r));++l&lt;u;)37===t.charCodeAt(l)&amp;&amp;(o.push(t.slice(c,l)),null!=(i=s[n=t.charAt(++l)])?n=t.charAt(++l):i=&quot;e&quot;===n?&quot; &quot;:&quot;0&quot;,(a=e[n])&amp;&amp;(n=a(r,i)),o.push(n),c=l+1);return o.push(t.slice(c,l)),o.join(&quot;&quot;)}}function zt(t,a){return function(o){var s,l,c=i(1900,void 0,1);if(Ot(c,t,o+=&quot;&quot;,0)!=o.length)return null;if(&quot;Q&quot;in c)return new Date(c.Q);if(&quot;s&quot;in c)return new Date(1e3*c.s+(&quot;L&quot;in c?c.L:0));if(a&amp;&amp;!(&quot;Z&quot;in c)&amp;&amp;(c.Z=0),&quot;p&quot;in c&amp;&amp;(c.H=c.H%12+12*c.p),void 0===c.m&amp;&amp;(c.m=&quot;q&quot;in c?c.q:0),&quot;V&quot;in c){if(c.V&lt;1||c.V&gt;53)return null;&quot;w&quot;in c||(c.w=1),&quot;Z&quot;in c?(l=(s=n(i(c.y,0,1))).getUTCDay(),s=l&gt;4||0===l?e.utcMonday.ceil(s):e.utcMonday(s),s=e.utcDay.offset(s,7*(c.V-1)),c.y=s.getUTCFullYear(),c.m=s.getUTCMonth(),c.d=s.getUTCDate()+(c.w+6)%7):(l=(s=r(i(c.y,0,1))).getDay(),s=l&gt;4||0===l?e.timeMonday.ceil(s):e.timeMonday(s),s=e.timeDay.offset(s,7*(c.V-1)),c.y=s.getFullYear(),c.m=s.getMonth(),c.d=s.getDate()+(c.w+6)%7)}else(&quot;W&quot;in c||&quot;U&quot;in c)&amp;&amp;(&quot;w&quot;in c||(c.w=&quot;u&quot;in c?c.u%7:&quot;W&quot;in c?1:0),l=&quot;Z&quot;in c?n(i(c.y,0,1)).getUTCDay():r(i(c.y,0,1)).getDay(),c.m=0,c.d=&quot;W&quot;in c?(c.w+6)%7+7*c.W-(l+5)%7:c.w+7*c.U-(l+6)%7);return&quot;Z&quot;in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,n(c)):r(c)}}function Ot(t,e,r,n){for(var i,a,o=0,l=e.length,c=r.length;o&lt;l;){if(n&gt;=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=It[i in s?e.charAt(o++):i])||(n=a(t,r,n))&lt;0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return Ct.x=Pt(o,Ct),Ct.X=Pt(l,Ct),Ct.c=Pt(a,Ct),Lt.x=Pt(o,Lt),Lt.X=Pt(l,Lt),Lt.c=Pt(a,Lt),{format:function(t){var e=Pt(t+=&quot;&quot;,Ct);return e.toString=function(){return t},e},parse:function(t){var e=zt(t+=&quot;&quot;,!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=Pt(t+=&quot;&quot;,Lt);return e.toString=function(){return t},e},utcParse:function(t){var e=zt(t+=&quot;&quot;,!0);return e.toString=function(){return t},e}}}var o,s={&quot;-&quot;:&quot;&quot;,_:&quot; &quot;,0:&quot;0&quot;},l=/^\s*\d+/,c=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(t,e,r){var n=t&lt;0?&quot;-&quot;:&quot;&quot;,i=(n?-t:t)+&quot;&quot;,a=i.length;return n+(a&lt;r?new Array(r-a+1).join(e)+i:i)}function h(t){return t.replace(u,&quot;\\$&amp;&quot;)}function p(t){return new RegExp(&quot;^(?:&quot;+t.map(h).join(&quot;|&quot;)+&quot;)&quot;,&quot;i&quot;)}function d(t){for(var e={},r=-1,n=t.length;++r&lt;n;)e[t[r].toLowerCase()]=r;return e}function g(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function m(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function v(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function y(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function x(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function b(t,e,r){var n=l.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function _(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]&gt;68?1900:2e3),r+n[0].length):-1}function w(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||&quot;00&quot;)),r+n[0].length):-1}function T(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function k(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function M(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function A(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function S(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function E(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function C(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function L(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function I(t,e,r){var n=l.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function P(t,e,r){var n=c.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function z(t,e,r){var n=l.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function O(t,e,r){var n=l.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function D(t,e){return f(t.getDate(),e,2)}function R(t,e){return f(t.getHours(),e,2)}function F(t,e){return f(t.getHours()%12||12,e,2)}function B(t,r){return f(1+e.timeDay.count(e.timeYear(t),t),r,3)}function N(t,e){return f(t.getMilliseconds(),e,3)}function j(t,e){return N(t,e)+&quot;000&quot;}function U(t,e){return f(t.getMonth()+1,e,2)}function V(t,e){return f(t.getMinutes(),e,2)}function q(t,e){return f(t.getSeconds(),e,2)}function H(t){var e=t.getDay();return 0===e?7:e}function G(t,r){return f(e.timeSunday.count(e.timeYear(t)-1,t),r,2)}function Y(t,r){var n=t.getDay();return t=n&gt;=4||0===n?e.timeThursday(t):e.timeThursday.ceil(t),f(e.timeThursday.count(e.timeYear(t),t)+(4===e.timeYear(t).getDay()),r,2)}function W(t){return t.getDay()}function X(t,r){return f(e.timeMonday.count(e.timeYear(t)-1,t),r,2)}function Z(t,e){return f(t.getFullYear()%100,e,2)}function J(t,e){return f(t.getFullYear()%1e4,e,4)}function K(t){var e=t.getTimezoneOffset();return(e&gt;0?&quot;-&quot;:(e*=-1,&quot;+&quot;))+f(e/60|0,&quot;0&quot;,2)+f(e%60,&quot;0&quot;,2)}function Q(t,e){return f(t.getUTCDate(),e,2)}function $(t,e){return f(t.getUTCHours(),e,2)}function tt(t,e){return f(t.getUTCHours()%12||12,e,2)}function et(t,r){return f(1+e.utcDay.count(e.utcYear(t),t),r,3)}function rt(t,e){return f(t.getUTCMilliseconds(),e,3)}function nt(t,e){return rt(t,e)+&quot;000&quot;}function it(t,e){return f(t.getUTCMonth()+1,e,2)}function at(t,e){return f(t.getUTCMinutes(),e,2)}function ot(t,e){return f(t.getUTCSeconds(),e,2)}function st(t){var e=t.getUTCDay();return 0===e?7:e}function lt(t,r){return f(e.utcSunday.count(e.utcYear(t)-1,t),r,2)}function ct(t,r){var n=t.getUTCDay();return t=n&gt;=4||0===n?e.utcThursday(t):e.utcThursday.ceil(t),f(e.utcThursday.count(e.utcYear(t),t)+(4===e.utcYear(t).getUTCDay()),r,2)}function ut(t){return t.getUTCDay()}function ft(t,r){return f(e.utcMonday.count(e.utcYear(t)-1,t),r,2)}function ht(t,e){return f(t.getUTCFullYear()%100,e,2)}function pt(t,e){return f(t.getUTCFullYear()%1e4,e,4)}function dt(){return&quot;+0000&quot;}function gt(){return&quot;%&quot;}function mt(t){return+t}function vt(t){return Math.floor(+t/1e3)}function yt(e){return o=a(e),t.timeFormat=o.format,t.timeParse=o.parse,t.utcFormat=o.utcFormat,t.utcParse=o.utcParse,o}yt({dateTime:&quot;%x, %X&quot;,date:&quot;%-m/%-d/%Y&quot;,time:&quot;%-I:%M:%S %p&quot;,periods:[&quot;AM&quot;,&quot;PM&quot;],days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;]});var xt=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);var bt=+new Date(&quot;2000-01-01T00:00:00.000Z&quot;)?function(t){var e=new Date(t);return isNaN(e)?null:e}:t.utcParse(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);t.isoFormat=xt,t.isoParse=bt,t.timeFormatDefaultLocale=yt,t.timeFormatLocale=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-time&quot;:167}],167:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e=new Date,r=new Date;function n(t,i,a,o){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),i(e,1),t(e),e},s.round=function(t){var e=s(t),r=s.ceil(t);return t-e&lt;r-t?e:r},s.offset=function(t,e){return i(t=new Date(+t),null==e?1:Math.floor(e)),t},s.range=function(e,r,n){var a,o=[];if(e=s.ceil(e),n=null==n?1:Math.floor(n),!(e&lt;r&amp;&amp;n&gt;0))return o;do{o.push(a=new Date(+e)),i(e,n),t(e)}while(a&lt;e&amp;&amp;e&lt;r);return o},s.filter=function(e){return n((function(r){if(r&gt;=r)for(;t(r),!e(r);)r.setTime(r-1)}),(function(t,r){if(t&gt;=t)if(r&lt;0)for(;++r&lt;=0;)for(;i(t,-1),!e(t););else for(;--r&gt;=0;)for(;i(t,1),!e(t););}))},a&amp;&amp;(s.count=function(n,i){return e.setTime(+n),r.setTime(+i),t(e),t(r),Math.floor(a(e,r))},s.every=function(t){return t=Math.floor(t),isFinite(t)&amp;&amp;t&gt;0?t&gt;1?s.filter(o?function(e){return o(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}var i=n((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));i.every=function(t){return t=Math.floor(t),isFinite(t)&amp;&amp;t&gt;0?t&gt;1?n((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,r){e.setTime(+e+r*t)}),(function(e,r){return(r-e)/t})):i:null};var a=i.range,o=n((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()})),s=o.range,l=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()})),c=l.range,u=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()})),f=u.range,h=n((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1})),p=h.range;function d(t){return n((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var g=d(0),m=d(1),v=d(2),y=d(3),x=d(4),b=d(5),_=d(6),w=g.range,T=m.range,k=v.range,M=y.range,A=x.range,S=b.range,E=_.range,C=n((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),L=C.range,I=n((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));I.every=function(t){return isFinite(t=Math.floor(t))&amp;&amp;t&gt;0?n((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,r){e.setFullYear(e.getFullYear()+r*t)})):null};var P=I.range,z=n((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getUTCMinutes()})),O=z.range,D=n((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()})),R=D.range,F=n((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1})),B=F.range;function N(t){return n((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}var j=N(0),U=N(1),V=N(2),q=N(3),H=N(4),G=N(5),Y=N(6),W=j.range,X=U.range,Z=V.range,J=q.range,K=H.range,Q=G.range,$=Y.range,tt=n((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),et=tt.range,rt=n((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));rt.every=function(t){return isFinite(t=Math.floor(t))&amp;&amp;t&gt;0?n((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null};var nt=rt.range;t.timeDay=h,t.timeDays=p,t.timeFriday=b,t.timeFridays=S,t.timeHour=u,t.timeHours=f,t.timeInterval=n,t.timeMillisecond=i,t.timeMilliseconds=a,t.timeMinute=l,t.timeMinutes=c,t.timeMonday=m,t.timeMondays=T,t.timeMonth=C,t.timeMonths=L,t.timeSaturday=_,t.timeSaturdays=E,t.timeSecond=o,t.timeSeconds=s,t.timeSunday=g,t.timeSundays=w,t.timeThursday=x,t.timeThursdays=A,t.timeTuesday=v,t.timeTuesdays=k,t.timeWednesday=y,t.timeWednesdays=M,t.timeWeek=g,t.timeWeeks=w,t.timeYear=I,t.timeYears=P,t.utcDay=F,t.utcDays=B,t.utcFriday=G,t.utcFridays=Q,t.utcHour=D,t.utcHours=R,t.utcMillisecond=i,t.utcMilliseconds=a,t.utcMinute=z,t.utcMinutes=O,t.utcMonday=U,t.utcMondays=X,t.utcMonth=tt,t.utcMonths=et,t.utcSaturday=Y,t.utcSaturdays=$,t.utcSecond=o,t.utcSeconds=s,t.utcSunday=j,t.utcSundays=W,t.utcThursday=H,t.utcThursdays=K,t.utcTuesday=V,t.utcTuesdays=Z,t.utcWednesday=q,t.utcWednesdays=J,t.utcWeek=j,t.utcWeeks=W,t.utcYear=rt,t.utcYears=nt,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],168:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e,r,n=0,i=0,a=0,o=0,s=0,l=0,c=&quot;object&quot;==typeof performance&amp;&amp;performance.now?performance:Date,u=&quot;object&quot;==typeof window&amp;&amp;window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function f(){return s||(u(h),s=c.now()+l)}function h(){s=0}function p(){this._call=this._time=this._next=null}function d(t,e,r){var n=new p;return n.restart(t,e,r),n}function g(){f(),++n;for(var t,r=e;r;)(t=s-r._time)&gt;=0&amp;&amp;r._call.call(null,t),r=r._next;--n}function m(){s=(o=c.now())+l,n=i=0;try{g()}finally{n=0,function(){var t,n,i=e,a=1/0;for(;i;)i._call?(a&gt;i._time&amp;&amp;(a=i._time),t=i,i=i._next):(n=i._next,i._next=null,i=t?t._next=n:e=n);r=t,y(a)}(),s=0}}function v(){var t=c.now(),e=t-o;e&gt;1e3&amp;&amp;(l-=e,o=t)}function y(t){n||(i&amp;&amp;(i=clearTimeout(i)),t-s&gt;24?(t&lt;1/0&amp;&amp;(i=setTimeout(m,t-c.now()-l)),a&amp;&amp;(a=clearInterval(a))):(a||(o=c.now(),a=setInterval(v,1e3)),n=1,u(m)))}p.prototype=d.prototype={constructor:p,restart:function(t,n,i){if(&quot;function&quot;!=typeof t)throw new TypeError(&quot;callback is not a function&quot;);i=(null==i?f():+i)+(null==n?0:+n),this._next||r===this||(r?r._next=this:e=this,r=this),this._call=t,this._time=i,y()},stop:function(){this._call&amp;&amp;(this._call=null,this._time=1/0,y())}},t.interval=function(t,e,r){var n=new p,i=e;return null==e?(n.restart(t,e,r),n):(e=+e,r=null==r?f():+r,n.restart((function a(o){o+=i,n.restart(a,i+=e,r),t(o)}),e,r),n)},t.now=f,t.timeout=function(t,e,r){var n=new p;return e=null==e?0:+e,n.restart((function(r){n.stop(),t(r+e)}),e,r),n},t.timer=d,t.timerFlush=g,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],169:[function(t,e,r){!function(){var t={version:&quot;3.5.17&quot;},r=[].slice,n=function(t){return r.call(t)},i=this.document;function a(t){return t&amp;&amp;(t.ownerDocument||t.document||t).documentElement}function o(t){return t&amp;&amp;(t.ownerDocument&amp;&amp;t.ownerDocument.defaultView||t.document&amp;&amp;t||t.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch(t){n=function(t){for(var e=t.length,r=new Array(e);e--;)r[e]=t[e];return r}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement(&quot;DIV&quot;).style.setProperty(&quot;opacity&quot;,0,&quot;&quot;)}catch(t){var s=this.Element.prototype,l=s.setAttribute,c=s.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;s.setAttribute=function(t,e){l.call(this,t,e+&quot;&quot;)},s.setAttributeNS=function(t,e,r){c.call(this,t,e,r+&quot;&quot;)},u.setProperty=function(t,e,r){f.call(this,t,e+&quot;&quot;,r)}}function h(t,e){return t&lt;e?-1:t&gt;e?1:t&gt;=e?0:NaN}function p(t){return null===t?NaN:+t}function d(t){return!isNaN(t)}function g(t){return{left:function(e,r,n,i){for(arguments.length&lt;3&amp;&amp;(n=0),arguments.length&lt;4&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&lt;0?n=a+1:i=a}return n},right:function(e,r,n,i){for(arguments.length&lt;3&amp;&amp;(n=0),arguments.length&lt;4&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&gt;0?i=a:n=a+1}return n}}}t.ascending=h,t.descending=function(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN},t.min=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i&lt;a;)if(null!=(n=t[i])&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=t[i])&amp;&amp;r&gt;n&amp;&amp;(r=n)}else{for(;++i&lt;a;)if(null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=e.call(t,t[i],i))&amp;&amp;r&gt;n&amp;&amp;(r=n)}return r},t.max=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i&lt;a;)if(null!=(n=t[i])&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=t[i])&amp;&amp;n&gt;r&amp;&amp;(r=n)}else{for(;++i&lt;a;)if(null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;r&amp;&amp;(r=n)}return r},t.extent=function(t,e){var r,n,i,a=-1,o=t.length;if(1===arguments.length){for(;++a&lt;o;)if(null!=(n=t[a])&amp;&amp;n&gt;=n){r=i=n;break}for(;++a&lt;o;)null!=(n=t[a])&amp;&amp;(r&gt;n&amp;&amp;(r=n),i&lt;n&amp;&amp;(i=n))}else{for(;++a&lt;o;)if(null!=(n=e.call(t,t[a],a))&amp;&amp;n&gt;=n){r=i=n;break}for(;++a&lt;o;)null!=(n=e.call(t,t[a],a))&amp;&amp;(r&gt;n&amp;&amp;(r=n),i&lt;n&amp;&amp;(i=n))}return[r,i]},t.sum=function(t,e){var r,n=0,i=t.length,a=-1;if(1===arguments.length)for(;++a&lt;i;)d(r=+t[a])&amp;&amp;(n+=r);else for(;++a&lt;i;)d(r=+e.call(t,t[a],a))&amp;&amp;(n+=r);return n},t.mean=function(t,e){var r,n=0,i=t.length,a=-1,o=i;if(1===arguments.length)for(;++a&lt;i;)d(r=p(t[a]))?n+=r:--o;else for(;++a&lt;i;)d(r=p(e.call(t,t[a],a)))?n+=r:--o;if(o)return n/o},t.quantile=function(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i},t.median=function(e,r){var n,i=[],a=e.length,o=-1;if(1===arguments.length)for(;++o&lt;a;)d(n=p(e[o]))&amp;&amp;i.push(n);else for(;++o&lt;a;)d(n=p(r.call(e,e[o],o)))&amp;&amp;i.push(n);if(i.length)return t.quantile(i.sort(h),.5)},t.variance=function(t,e){var r,n,i=t.length,a=0,o=0,s=-1,l=0;if(1===arguments.length)for(;++s&lt;i;)d(r=p(t[s]))&amp;&amp;(o+=(n=r-a)*(r-(a+=n/++l)));else for(;++s&lt;i;)d(r=p(e.call(t,t[s],s)))&amp;&amp;(o+=(n=r-a)*(r-(a+=n/++l)));if(l&gt;1)return o/(l-1)},t.deviation=function(){var e=t.variance.apply(this,arguments);return e?Math.sqrt(e):e};var m=g(h);function v(t){return t.length}t.bisectLeft=m.left,t.bisect=t.bisectRight=m.right,t.bisector=function(t){return g(1===t.length?function(e,r){return h(t(e),r)}:t)},t.shuffle=function(t,e,r){(a=arguments.length)&lt;3&amp;&amp;(r=t.length,a&lt;2&amp;&amp;(e=0));for(var n,i,a=r-e;a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.pairs=function(t){for(var e=0,r=t.length-1,n=t[0],i=new Array(r&lt;0?0:r);e&lt;r;)i[e]=[n,n=t[++e]];return i},t.transpose=function(e){if(!(a=e.length))return[];for(var r=-1,n=t.min(e,v),i=new Array(n);++r&lt;n;)for(var a,o=-1,s=i[r]=new Array(a);++o&lt;a;)s[o]=e[o][r];return i},t.zip=function(){return t.transpose(arguments)},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a&lt;i;)o+=t[a].length;for(r=new Array(o);--i&gt;=0;)for(e=(n=t[i]).length;--e&gt;=0;)r[--o]=n[e];return r};var y=Math.abs;function x(t){for(var e=1;t*e%1;)e*=10;return e}function b(t,e){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],enumerable:!1})}function _(){this._=Object.create(null)}t.range=function(t,e,r){if(arguments.length&lt;3&amp;&amp;(r=1,arguments.length&lt;2&amp;&amp;(e=t,t=0)),(e-t)/r==1/0)throw new Error(&quot;infinite range&quot;);var n,i=[],a=x(y(r)),o=-1;if(t*=a,e*=a,(r*=a)&lt;0)for(;(n=t+r*++o)&gt;e;)i.push(n/a);else for(;(n=t+r*++o)&lt;e;)i.push(n/a);return i},t.map=function(t,e){var r=new _;if(t instanceof _)t.forEach((function(t,e){r.set(t,e)}));else if(Array.isArray(t)){var n,i=-1,a=t.length;if(1===arguments.length)for(;++i&lt;a;)r.set(i,t[i]);else for(;++i&lt;a;)r.set(e.call(t,n=t[i],i),n)}else for(var o in t)r.set(o,t[o]);return r};function w(t){return&quot;__proto__&quot;==(t+=&quot;&quot;)||&quot;\0&quot;===t[0]?&quot;\0&quot;+t:t}function T(t){return&quot;\0&quot;===(t+=&quot;&quot;)[0]?t.slice(1):t}function k(t){return w(t)in this._}function M(t){return(t=w(t))in this._&amp;&amp;delete this._[t]}function A(){var t=[];for(var e in this._)t.push(T(e));return t}function S(){var t=0;for(var e in this._)++t;return t}function E(){for(var t in this._)return!1;return!0}function C(){this._=Object.create(null)}function L(t){return t}function I(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}function P(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var r=0,n=z.length;r&lt;n;++r){var i=z[r]+e;if(i in t)return i}}b(_,{has:k,get:function(t){return this._[w(t)]},set:function(t,e){return this._[w(t)]=e},remove:M,keys:A,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:T(e),value:this._[e]});return t},size:S,empty:E,forEach:function(t){for(var e in this._)t.call(this,T(e),this._[e])}}),t.nest=function(){var e,r,n={},i=[],a=[];function o(t,a,s){if(s&gt;=i.length)return r?r.call(n,a):e?a.sort(e):a;for(var l,c,u,f,h=-1,p=a.length,d=i[s++],g=new _;++h&lt;p;)(f=g.get(l=d(c=a[h])))?f.push(c):g.set(l,[c]);return t?(c=t(),u=function(e,r){c.set(e,o(t,r,s))}):(c={},u=function(e,r){c[e]=o(t,r,s)}),g.forEach(u),c}return n.map=function(t,e){return o(e,t,0)},n.entries=function(e){return function t(e,r){if(r&gt;=i.length)return e;var n=[],o=a[r++];return e.forEach((function(e,i){n.push({key:e,values:t(i,r)})})),o?n.sort((function(t,e){return o(t.key,e.key)})):n}(o(t.map,e,0),0)},n.key=function(t){return i.push(t),n},n.sortKeys=function(t){return a[i.length-1]=t,n},n.sortValues=function(t){return e=t,n},n.rollup=function(t){return r=t,n},n},t.set=function(t){var e=new C;if(t)for(var r=0,n=t.length;r&lt;n;++r)e.add(t[r]);return e},b(C,{has:k,add:function(t){return this._[w(t+=&quot;&quot;)]=!0,t},remove:M,values:A,size:S,empty:E,forEach:function(t){for(var e in this._)t.call(this,T(e))}}),t.behavior={},t.rebind=function(t,e){for(var r,n=1,i=arguments.length;++n&lt;i;)t[r=arguments[n]]=I(t,e,e[r]);return t};var z=[&quot;webkit&quot;,&quot;ms&quot;,&quot;moz&quot;,&quot;Moz&quot;,&quot;o&quot;,&quot;O&quot;];function O(){}function D(){}function R(t){var e=[],r=new _;function n(){for(var r,n=e,i=-1,a=n.length;++i&lt;a;)(r=n[i].on)&amp;&amp;r.apply(this,arguments);return t}return n.on=function(n,i){var a,o=r.get(n);return arguments.length&lt;2?o&amp;&amp;o.on:(o&amp;&amp;(o.on=null,e=e.slice(0,a=e.indexOf(o)).concat(e.slice(a+1)),r.remove(n)),i&amp;&amp;e.push(r.set(n,{on:i})),t)},n}function F(){t.event.preventDefault()}function B(){for(var e,r=t.event;e=r.sourceEvent;)r=e;return r}function N(e){for(var r=new D,n=0,i=arguments.length;++n&lt;i;)r[arguments[n]]=R(r);return r.of=function(n,i){return function(a){try{var o=a.sourceEvent=t.event;a.target=e,t.event=a,r[a.type].apply(n,i)}finally{t.event=o}}},r}t.dispatch=function(){for(var t=new D,e=-1,r=arguments.length;++e&lt;r;)t[arguments[e]]=R(t);return t},D.prototype.on=function(t,e){var r=t.indexOf(&quot;.&quot;),n=&quot;&quot;;if(r&gt;=0&amp;&amp;(n=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length&lt;2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&amp;&amp;this[t].on(n,null);return this}},t.event=null,t.requote=function(t){return t.replace(j,&quot;\\$&amp;&quot;)};var j=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,U={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)t[r]=e[r]};function V(t){return U(t,Y),t}var q=function(t,e){return e.querySelector(t)},H=function(t,e){return e.querySelectorAll(t)},G=function(t,e){var r=t.matches||t[P(t,&quot;matchesSelector&quot;)];return(G=function(t,e){return r.call(t,e)})(t,e)};&quot;function&quot;==typeof Sizzle&amp;&amp;(q=function(t,e){return Sizzle(t,e)[0]||null},H=Sizzle,G=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Y=t.selection.prototype=[];function W(t){return&quot;function&quot;==typeof t?t:function(){return q(t,this)}}function X(t){return&quot;function&quot;==typeof t?t:function(){return H(t,this)}}Y.select=function(t){var e,r,n,i,a=[];t=W(t);for(var o=-1,s=this.length;++o&lt;s;){a.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var l=-1,c=n.length;++l&lt;c;)(i=n[l])?(e.push(r=t.call(i,i.__data__,l,o)),r&amp;&amp;&quot;__data__&quot;in i&amp;&amp;(r.__data__=i.__data__)):e.push(null)}return V(a)},Y.selectAll=function(t){var e,r,i=[];t=X(t);for(var a=-1,o=this.length;++a&lt;o;)for(var s=this[a],l=-1,c=s.length;++l&lt;c;)(r=s[l])&amp;&amp;(i.push(e=n(t.call(r,r.__data__,l,a))),e.parentNode=r);return V(i)};var Z=&quot;http://www.w3.org/1999/xhtml&quot;,J={svg:&quot;http://www.w3.org/2000/svg&quot;,xhtml:Z,xlink:&quot;http://www.w3.org/1999/xlink&quot;,xml:&quot;http://www.w3.org/XML/1998/namespace&quot;,xmlns:&quot;http://www.w3.org/2000/xmlns/&quot;};function K(e,r){return e=t.ns.qualify(e),null==r?e.local?function(){this.removeAttributeNS(e.space,e.local)}:function(){this.removeAttribute(e)}:&quot;function&quot;==typeof r?e.local?function(){var t=r.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}:function(){var t=r.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}:e.local?function(){this.setAttributeNS(e.space,e.local,r)}:function(){this.setAttribute(e,r)}}function Q(t){return t.trim().replace(/\s+/g,&quot; &quot;)}function $(e){return new RegExp(&quot;(?:^|\\s+)&quot;+t.requote(e)+&quot;(?:\\s+|$)&quot;,&quot;g&quot;)}function tt(t){return(t+&quot;&quot;).trim().split(/^|\s+/)}function et(t,e){var r=(t=tt(t).map(rt)).length;return&quot;function&quot;==typeof e?function(){for(var n=-1,i=e.apply(this,arguments);++n&lt;r;)t[n](this,i)}:function(){for(var n=-1;++n&lt;r;)t[n](this,e)}}function rt(t){var e=$(t);return function(r,n){if(i=r.classList)return n?i.add(t):i.remove(t);var i=r.getAttribute(&quot;class&quot;)||&quot;&quot;;n?(e.lastIndex=0,e.test(i)||r.setAttribute(&quot;class&quot;,Q(i+&quot; &quot;+t))):r.setAttribute(&quot;class&quot;,Q(i.replace(e,&quot; &quot;)))}}function nt(t,e,r){return null==e?function(){this.style.removeProperty(t)}:&quot;function&quot;==typeof e?function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}:function(){this.style.setProperty(t,e,r)}}function it(t,e){return null==e?function(){delete this[t]}:&quot;function&quot;==typeof e?function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}:function(){this[t]=e}}function at(e){return&quot;function&quot;==typeof e?e:(e=t.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Z&amp;&amp;t.documentElement.namespaceURI===Z?t.createElement(e):t.createElementNS(r,e)}}function ot(){var t=this.parentNode;t&amp;&amp;t.removeChild(this)}function st(t){return{__data__:t}}function lt(t){return function(){return G(this,t)}}function ct(t){return arguments.length||(t=h),function(e,r){return e&amp;&amp;r?t(e.__data__,r.__data__):!e-!r}}function ut(t,e){for(var r=0,n=t.length;r&lt;n;r++)for(var i,a=t[r],o=0,s=a.length;o&lt;s;o++)(i=a[o])&amp;&amp;e(i,o,r);return t}function ft(t){return U(t,ht),t}t.ns={prefix:J,qualify:function(t){var e=t.indexOf(&quot;:&quot;),r=t;return e&gt;=0&amp;&amp;&quot;xmlns&quot;!==(r=t.slice(0,e))&amp;&amp;(t=t.slice(e+1)),J.hasOwnProperty(r)?{space:J[r],local:t}:t}},Y.attr=function(e,r){if(arguments.length&lt;2){if(&quot;string&quot;==typeof e){var n=this.node();return(e=t.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(r in e)this.each(K(r,e[r]));return this}return this.each(K(e,r))},Y.classed=function(t,e){if(arguments.length&lt;2){if(&quot;string&quot;==typeof t){var r=this.node(),n=(t=tt(t)).length,i=-1;if(e=r.classList){for(;++i&lt;n;)if(!e.contains(t[i]))return!1}else for(e=r.getAttribute(&quot;class&quot;);++i&lt;n;)if(!$(t[i]).test(e))return!1;return!0}for(e in t)this.each(et(e,t[e]));return this}return this.each(et(t,e))},Y.style=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=&quot;&quot;),t)this.each(nt(r,t[r],e));return this}if(n&lt;2){var i=this.node();return o(i).getComputedStyle(i,null).getPropertyValue(t)}r=&quot;&quot;}return this.each(nt(t,e,r))},Y.property=function(t,e){if(arguments.length&lt;2){if(&quot;string&quot;==typeof t)return this.node()[t];for(e in t)this.each(it(e,t[e]));return this}return this.each(it(t,e))},Y.text=function(t){return arguments.length?this.each(&quot;function&quot;==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?&quot;&quot;:e}:null==t?function(){this.textContent=&quot;&quot;}:function(){this.textContent=t}):this.node().textContent},Y.html=function(t){return arguments.length?this.each(&quot;function&quot;==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?&quot;&quot;:e}:null==t?function(){this.innerHTML=&quot;&quot;}:function(){this.innerHTML=t}):this.node().innerHTML},Y.append=function(t){return t=at(t),this.select((function(){return this.appendChild(t.apply(this,arguments))}))},Y.insert=function(t,e){return t=at(t),e=W(e),this.select((function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)}))},Y.remove=function(){return this.each(ot)},Y.data=function(t,e){var r,n,i=-1,a=this.length;if(!arguments.length){for(t=new Array(a=(r=this[0]).length);++i&lt;a;)(n=r[i])&amp;&amp;(t[i]=n.__data__);return t}function o(t,r){var n,i,a,o=t.length,u=r.length,f=Math.min(o,u),h=new Array(u),p=new Array(u),d=new Array(o);if(e){var g,m=new _,v=new Array(o);for(n=-1;++n&lt;o;)(i=t[n])&amp;&amp;(m.has(g=e.call(i,i.__data__,n))?d[n]=i:m.set(g,i),v[n]=g);for(n=-1;++n&lt;u;)(i=m.get(g=e.call(r,a=r[n],n)))?!0!==i&amp;&amp;(h[n]=i,i.__data__=a):p[n]=st(a),m.set(g,!0);for(n=-1;++n&lt;o;)n in v&amp;&amp;!0!==m.get(v[n])&amp;&amp;(d[n]=t[n])}else{for(n=-1;++n&lt;f;)i=t[n],a=r[n],i?(i.__data__=a,h[n]=i):p[n]=st(a);for(;n&lt;u;++n)p[n]=st(r[n]);for(;n&lt;o;++n)d[n]=t[n]}p.update=h,p.parentNode=h.parentNode=d.parentNode=t.parentNode,s.push(p),l.push(h),c.push(d)}var s=ft([]),l=V([]),c=V([]);if(&quot;function&quot;==typeof t)for(;++i&lt;a;)o(r=this[i],t.call(r,r.parentNode.__data__,i));else for(;++i&lt;a;)o(r=this[i],t);return l.enter=function(){return s},l.exit=function(){return c},l},Y.datum=function(t){return arguments.length?this.property(&quot;__data__&quot;,t):this.property(&quot;__data__&quot;)},Y.filter=function(t){var e,r,n,i=[];&quot;function&quot;!=typeof t&amp;&amp;(t=lt(t));for(var a=0,o=this.length;a&lt;o;a++){i.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var s=0,l=r.length;s&lt;l;s++)(n=r[s])&amp;&amp;t.call(n,n.__data__,s,a)&amp;&amp;e.push(n)}return V(i)},Y.order=function(){for(var t=-1,e=this.length;++t&lt;e;)for(var r,n=this[t],i=n.length-1,a=n[i];--i&gt;=0;)(r=n[i])&amp;&amp;(a&amp;&amp;a!==r.nextSibling&amp;&amp;a.parentNode.insertBefore(r,a),a=r);return this},Y.sort=function(t){t=ct.apply(this,arguments);for(var e=-1,r=this.length;++e&lt;r;)this[e].sort(t);return this.order()},Y.each=function(t){return ut(this,(function(e,r,n){t.call(e,e.__data__,r,n)}))},Y.call=function(t){var e=n(arguments);return t.apply(e[0]=this,e),this},Y.empty=function(){return!this.node()},Y.node=function(){for(var t=0,e=this.length;t&lt;e;t++)for(var r=this[t],n=0,i=r.length;n&lt;i;n++){var a=r[n];if(a)return a}return null},Y.size=function(){var t=0;return ut(this,(function(){++t})),t};var ht=[];function pt(t){var e,r;return function(n,i,a){var o,s=t[a].update,l=s.length;for(a!=r&amp;&amp;(r=a,e=0),i&gt;=e&amp;&amp;(e=i+1);!(o=s[e])&amp;&amp;++e&lt;l;);return o}}function dt(e,r,i){var a=&quot;__on&quot;+e,o=e.indexOf(&quot;.&quot;),s=mt;o&gt;0&amp;&amp;(e=e.slice(0,o));var l=gt.get(e);function c(){var t=this[a];t&amp;&amp;(this.removeEventListener(e,t,t.$),delete this[a])}return l&amp;&amp;(e=l,s=vt),o?r?function(){var t=s(r,n(arguments));c.call(this),this.addEventListener(e,this[a]=t,t.$=i),t._=r}:c:r?O:function(){var r,n=new RegExp(&quot;^__on([^.]+)&quot;+t.requote(e)+&quot;$&quot;);for(var i in this)if(r=i.match(n)){var a=this[i];this.removeEventListener(r[1],a,a.$),delete this[i]}}}t.selection.enter=ft,t.selection.enter.prototype=ht,ht.append=Y.append,ht.empty=Y.empty,ht.node=Y.node,ht.call=Y.call,ht.size=Y.size,ht.select=function(t){for(var e,r,n,i,a,o=[],s=-1,l=this.length;++s&lt;l;){n=(i=this[s]).update,o.push(e=[]),e.parentNode=i.parentNode;for(var c=-1,u=i.length;++c&lt;u;)(a=i[c])?(e.push(n[c]=r=t.call(i.parentNode,a.__data__,c,s)),r.__data__=a.__data__):e.push(null)}return V(o)},ht.insert=function(t,e){return arguments.length&lt;2&amp;&amp;(e=pt(this)),Y.insert.call(this,t,e)},t.select=function(t){var e;return&quot;string&quot;==typeof t?(e=[q(t,i)]).parentNode=i.documentElement:(e=[t]).parentNode=a(t),V([e])},t.selectAll=function(t){var e;return&quot;string&quot;==typeof t?(e=n(H(t,i))).parentNode=i.documentElement:(e=n(t)).parentNode=null,V([e])},Y.on=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=!1),t)this.each(dt(r,t[r],e));return this}if(n&lt;2)return(n=this.node()[&quot;__on&quot;+t])&amp;&amp;n._;r=!1}return this.each(dt(t,e,r))};var gt=t.map({mouseenter:&quot;mouseover&quot;,mouseleave:&quot;mouseout&quot;});function mt(e,r){return function(n){var i=t.event;t.event=n,r[0]=this.__data__;try{e.apply(this,r)}finally{t.event=i}}}function vt(t,e){var r=mt(t,e);return function(t){var e=t.relatedTarget;e&amp;&amp;(e===this||8&amp;e.compareDocumentPosition(this))||r.call(this,t)}}i&amp;&amp;gt.forEach((function(t){&quot;on&quot;+t in i&amp;&amp;gt.remove(t)}));var yt,xt=0;function bt(e){var r=&quot;.dragsuppress-&quot;+ ++xt,n=&quot;click&quot;+r,i=t.select(o(e)).on(&quot;touchmove&quot;+r,F).on(&quot;dragstart&quot;+r,F).on(&quot;selectstart&quot;+r,F);if(null==yt&amp;&amp;(yt=!(&quot;onselectstart&quot;in e)&amp;&amp;P(e.style,&quot;userSelect&quot;)),yt){var s=a(e).style,l=s[yt];s[yt]=&quot;none&quot;}return function(t){if(i.on(r,null),yt&amp;&amp;(s[yt]=l),t){var e=function(){i.on(n,null)};i.on(n,(function(){F(),e()}),!0),setTimeout(e,0)}}}t.mouse=function(t){return wt(t,B())};var _t=this.navigator&amp;&amp;/WebKit/.test(this.navigator.userAgent)?-1:0;function wt(e,r){r.changedTouches&amp;&amp;(r=r.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();if(_t&lt;0){var a=o(e);if(a.scrollX||a.scrollY){var s=(n=t.select(&quot;body&quot;).append(&quot;svg&quot;).style({position:&quot;absolute&quot;,top:0,left:0,margin:0,padding:0,border:&quot;none&quot;},&quot;important&quot;))[0][0].getScreenCTM();_t=!(s.f||s.e),n.remove()}}return _t?(i.x=r.pageX,i.y=r.pageY):(i.x=r.clientX,i.y=r.clientY),[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}var l=e.getBoundingClientRect();return[r.clientX-l.left-e.clientLeft,r.clientY-l.top-e.clientTop]}function Tt(){return t.event.changedTouches[0].identifier}t.touch=function(t,e,r){if(arguments.length&lt;3&amp;&amp;(r=e,e=B().changedTouches),e)for(var n,i=0,a=e.length;i&lt;a;++i)if((n=e[i]).identifier===r)return wt(t,n)},t.behavior.drag=function(){var e=N(a,&quot;drag&quot;,&quot;dragstart&quot;,&quot;dragend&quot;),r=null,n=s(O,t.mouse,o,&quot;mousemove&quot;,&quot;mouseup&quot;),i=s(Tt,t.touch,L,&quot;touchmove&quot;,&quot;touchend&quot;);function a(){this.on(&quot;mousedown.drag&quot;,n).on(&quot;touchstart.drag&quot;,i)}function s(n,i,a,o,s){return function(){var l,c=this,u=t.event.target.correspondingElement||t.event.target,f=c.parentNode,h=e.of(c,arguments),p=0,d=n(),g=&quot;.drag&quot;+(null==d?&quot;&quot;:&quot;-&quot;+d),m=t.select(a(u)).on(o+g,x).on(s+g,b),v=bt(u),y=i(f,d);function x(){var t,e,r=i(f,d);r&amp;&amp;(t=r[0]-y[0],e=r[1]-y[1],p|=t|e,y=r,h({type:&quot;drag&quot;,x:r[0]+l[0],y:r[1]+l[1],dx:t,dy:e}))}function b(){i(f,d)&amp;&amp;(m.on(o+g,null).on(s+g,null),v(p),h({type:&quot;dragend&quot;}))}l=r?[(l=r.apply(c,arguments)).x-y[0],l.y-y[1]]:[0,0],h({type:&quot;dragstart&quot;})}}return a.origin=function(t){return arguments.length?(r=t,a):r},t.rebind(a,e,&quot;on&quot;)},t.touches=function(t,e){return arguments.length&lt;2&amp;&amp;(e=B().touches),e?n(e).map((function(e){var r=wt(t,e);return r.identifier=e.identifier,r})):[]};var kt=1e-6,Mt=1e-12,At=Math.PI,St=2*At,Et=St-kt,Ct=At/2,Lt=At/180,It=180/At;function Pt(t){return t&gt;0?1:t&lt;0?-1:0}function zt(t,e,r){return(e[0]-t[0])*(r[1]-t[1])-(e[1]-t[1])*(r[0]-t[0])}function Ot(t){return t&gt;1?0:t&lt;-1?At:Math.acos(t)}function Dt(t){return t&gt;1?Ct:t&lt;-1?-Ct:Math.asin(t)}function Rt(t){return((t=Math.exp(t))+1/t)/2}function Ft(t){return(t=Math.sin(t/2))*t}var Bt=Math.SQRT2;t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h&lt;Mt)n=Math.log(c/o)/Bt,r=function(t){return[i+t*u,a+t*f,o*Math.exp(Bt*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),g=(c*c-o*o-4*h)/(2*c*2*p),m=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(g*g+1)-g);n=(v-m)/Bt,r=function(t){var e,r=t*n,s=Rt(m),l=o/(2*p)*(s*(e=Bt*r+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[i+l*u,a+l*f,o*s/Rt(Bt*r+m)]}}return r.duration=1e3*n,r},t.behavior.zoom=function(){var e,r,n,a,s,l,c,u,f,h={x:0,y:0,k:1},p=[960,500],d=Ut,g=250,m=0,v=&quot;mousedown.zoom&quot;,y=&quot;mousemove.zoom&quot;,x=&quot;mouseup.zoom&quot;,b=&quot;touchstart.zoom&quot;,_=N(w,&quot;zoomstart&quot;,&quot;zoom&quot;,&quot;zoomend&quot;);function w(t){t.on(v,I).on(jt+&quot;.zoom&quot;,z).on(&quot;dblclick.zoom&quot;,O).on(b,P)}function T(t){return[(t[0]-h.x)/h.k,(t[1]-h.y)/h.k]}function k(t){h.k=Math.max(d[0],Math.min(d[1],t))}function M(t,e){e=function(t){return[t[0]*h.k+h.x,t[1]*h.k+h.y]}(e),h.x+=t[0]-e[0],h.y+=t[1]-e[1]}function A(e,n,i,a){e.__chart__={x:h.x,y:h.y,k:h.k},k(Math.pow(2,a)),M(r=n,i),e=t.select(e),g&gt;0&amp;&amp;(e=e.transition().duration(g)),e.call(w.event)}function S(){c&amp;&amp;c.domain(l.range().map((function(t){return(t-h.x)/h.k})).map(l.invert)),f&amp;&amp;f.domain(u.range().map((function(t){return(t-h.y)/h.k})).map(u.invert))}function E(t){m++||t({type:&quot;zoomstart&quot;})}function C(t){S(),t({type:&quot;zoom&quot;,scale:h.k,translate:[h.x,h.y]})}function L(t){--m||(t({type:&quot;zoomend&quot;}),r=null)}function I(){var e=this,r=_.of(e,arguments),n=0,i=t.select(o(e)).on(y,l).on(x,c),a=T(t.mouse(e)),s=bt(e);function l(){n=1,M(t.mouse(e),a),C(r)}function c(){i.on(y,null).on(x,null),s(n),L(r)}vs.call(e),E(r)}function P(){var e,r=this,n=_.of(r,arguments),i={},a=0,o=&quot;.zoom-&quot;+t.event.changedTouches[0].identifier,l=&quot;touchmove&quot;+o,c=&quot;touchend&quot;+o,u=[],f=t.select(r),p=bt(r);function d(){var n=t.touches(r);return e=h.k,n.forEach((function(t){t.identifier in i&amp;&amp;(i[t.identifier]=T(t))})),n}function g(){var e=t.event.target;t.select(e).on(l,m).on(c,y),u.push(e);for(var n=t.event.changedTouches,o=0,f=n.length;o&lt;f;++o)i[n[o].identifier]=null;var p=d(),g=Date.now();if(1===p.length){if(g-s&lt;500){var v=p[0];A(r,v,i[v.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),F()}s=g}else if(p.length&gt;1){v=p[0];var x=p[1],b=v[0]-x[0],_=v[1]-x[1];a=b*b+_*_}}function m(){var o,l,c,u,f=t.touches(r);vs.call(r);for(var h=0,p=f.length;h&lt;p;++h,u=null)if(c=f[h],u=i[c.identifier]){if(l)break;o=c,l=u}if(u){var d=(d=c[0]-o[0])*d+(d=c[1]-o[1])*d,g=a&amp;&amp;Math.sqrt(d/a);o=[(o[0]+c[0])/2,(o[1]+c[1])/2],l=[(l[0]+u[0])/2,(l[1]+u[1])/2],k(g*e)}s=null,M(o,l),C(n)}function y(){if(t.event.touches.length){for(var e=t.event.changedTouches,r=0,a=e.length;r&lt;a;++r)delete i[e[r].identifier];for(var s in i)return void d()}t.selectAll(u).on(o,null),f.on(v,I).on(b,P),p(),L(n)}g(),E(n),f.on(v,null).on(b,g)}function z(){var i=_.of(this,arguments);a?clearTimeout(a):(vs.call(this),e=T(r=n||t.mouse(this)),E(i)),a=setTimeout((function(){a=null,L(i)}),50),F(),k(Math.pow(2,.002*Nt())*h.k),M(r,e),C(i)}function O(){var e=t.mouse(this),r=Math.log(h.k)/Math.LN2;A(this,e,T(e),t.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)}return jt||(jt=&quot;onwheel&quot;in i?(Nt=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},&quot;wheel&quot;):&quot;onmousewheel&quot;in i?(Nt=function(){return t.event.wheelDelta},&quot;mousewheel&quot;):(Nt=function(){return-t.event.detail},&quot;MozMousePixelScroll&quot;)),w.event=function(e){e.each((function(){var e=_.of(this,arguments),n=h;bs?t.select(this).transition().each(&quot;start.zoom&quot;,(function(){h=this.__chart__||{x:0,y:0,k:1},E(e)})).tween(&quot;zoom:zoom&quot;,(function(){var i=p[0],a=p[1],o=r?r[0]:i/2,s=r?r[1]:a/2,l=t.interpolateZoom([(o-h.x)/h.k,(s-h.y)/h.k,i/h.k],[(o-n.x)/n.k,(s-n.y)/n.k,i/n.k]);return function(t){var r=l(t),n=i/r[2];this.__chart__=h={x:o-r[0]*n,y:s-r[1]*n,k:n},C(e)}})).each(&quot;interrupt.zoom&quot;,(function(){L(e)})).each(&quot;end.zoom&quot;,(function(){L(e)})):(this.__chart__=h,E(e),C(e),L(e))}))},w.translate=function(t){return arguments.length?(h={x:+t[0],y:+t[1],k:h.k},S(),w):[h.x,h.y]},w.scale=function(t){return arguments.length?(h={x:h.x,y:h.y,k:null},k(+t),S(),w):h.k},w.scaleExtent=function(t){return arguments.length?(d=null==t?Ut:[+t[0],+t[1]],w):d},w.center=function(t){return arguments.length?(n=t&amp;&amp;[+t[0],+t[1]],w):n},w.size=function(t){return arguments.length?(p=t&amp;&amp;[+t[0],+t[1]],w):p},w.duration=function(t){return arguments.length?(g=+t,w):g},w.x=function(t){return arguments.length?(c=t,l=t.copy(),h={x:0,y:0,k:1},w):c},w.y=function(t){return arguments.length?(f=t,u=t.copy(),h={x:0,y:0,k:1},w):f},t.rebind(w,_,&quot;on&quot;)};var Nt,jt,Ut=[0,1/0];function Vt(){}function qt(t,e,r){return this instanceof qt?(this.h=+t,this.s=+e,void(this.l=+r)):arguments.length&lt;2?t instanceof qt?new qt(t.h,t.s,t.l):le(&quot;&quot;+t,ce,qt):new qt(t,e,r)}t.color=Vt,Vt.prototype.toString=function(){return this.rgb()+&quot;&quot;},t.hsl=qt;var Ht=qt.prototype=new Vt;function Gt(t,e,r){var n,i;function a(t){return Math.round(255*function(t){return t&gt;360?t-=360:t&lt;0&amp;&amp;(t+=360),t&lt;60?n+(i-n)*t/60:t&lt;180?i:t&lt;240?n+(i-n)*(240-t)/60:n}(t))}return t=isNaN(t)?0:(t%=360)&lt;0?t+360:t,e=isNaN(e)||e&lt;0?0:e&gt;1?1:e,n=2*(r=r&lt;0?0:r&gt;1?1:r)-(i=r&lt;=.5?r*(1+e):r+e-r*e),new ne(a(t+120),a(t),a(t-120))}function Yt(e,r,n){return this instanceof Yt?(this.h=+e,this.c=+r,void(this.l=+n)):arguments.length&lt;2?e instanceof Yt?new Yt(e.h,e.c,e.l):$t(e instanceof Zt?e.l:(e=ue((e=t.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Yt(e,r,n)}Ht.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new qt(this.h,this.s,this.l/t)},Ht.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new qt(this.h,this.s,t*this.l)},Ht.rgb=function(){return Gt(this.h,this.s,this.l)},t.hcl=Yt;var Wt=Yt.prototype=new Vt;function Xt(t,e,r){return isNaN(t)&amp;&amp;(t=0),isNaN(e)&amp;&amp;(e=0),new Zt(r,Math.cos(t*=Lt)*e,Math.sin(t)*e)}function Zt(t,e,r){return this instanceof Zt?(this.l=+t,this.a=+e,void(this.b=+r)):arguments.length&lt;2?t instanceof Zt?new Zt(t.l,t.a,t.b):t instanceof Yt?Xt(t.h,t.c,t.l):ue((t=ne(t)).r,t.g,t.b):new Zt(t,e,r)}Wt.brighter=function(t){return new Yt(this.h,this.c,Math.min(100,this.l+Jt*(arguments.length?t:1)))},Wt.darker=function(t){return new Yt(this.h,this.c,Math.max(0,this.l-Jt*(arguments.length?t:1)))},Wt.rgb=function(){return Xt(this.h,this.c,this.l).rgb()},t.lab=Zt;var Jt=18,Kt=Zt.prototype=new Vt;function Qt(t,e,r){var n=(t+16)/116,i=n+e/500,a=n-r/200;return new ne(re(3.2404542*(i=.95047*te(i))-1.5371385*(n=1*te(n))-.4985314*(a=1.08883*te(a))),re(-.969266*i+1.8760108*n+.041556*a),re(.0556434*i-.2040259*n+1.0572252*a))}function $t(t,e,r){return t&gt;0?new Yt(Math.atan2(r,e)*It,Math.sqrt(e*e+r*r),t):new Yt(NaN,NaN,t)}function te(t){return t&gt;.206893034?t*t*t:(t-4/29)/7.787037}function ee(t){return t&gt;.008856?Math.pow(t,1/3):7.787037*t+4/29}function re(t){return Math.round(255*(t&lt;=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function ne(t,e,r){return this instanceof ne?(this.r=~~t,this.g=~~e,void(this.b=~~r)):arguments.length&lt;2?t instanceof ne?new ne(t.r,t.g,t.b):le(&quot;&quot;+t,ne,Gt):new ne(t,e,r)}function ie(t){return new ne(t&gt;&gt;16,t&gt;&gt;8&amp;255,255&amp;t)}function ae(t){return ie(t)+&quot;&quot;}Kt.brighter=function(t){return new Zt(Math.min(100,this.l+Jt*(arguments.length?t:1)),this.a,this.b)},Kt.darker=function(t){return new Zt(Math.max(0,this.l-Jt*(arguments.length?t:1)),this.a,this.b)},Kt.rgb=function(){return Qt(this.l,this.a,this.b)},t.rgb=ne;var oe=ne.prototype=new Vt;function se(t){return t&lt;16?&quot;0&quot;+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function le(t,e,r){var n,i,a,o=0,s=0,l=0;if(n=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=n[2].split(&quot;,&quot;),n[1]){case&quot;hsl&quot;:return r(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case&quot;rgb&quot;:return e(he(i[0]),he(i[1]),he(i[2]))}return(a=pe.get(t))?e(a.r,a.g,a.b):(null==t||&quot;#&quot;!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&amp;a)&gt;&gt;4,o|=o&gt;&gt;4,s=240&amp;a,s|=s&gt;&gt;4,l=15&amp;a,l|=l&lt;&lt;4):7===t.length&amp;&amp;(o=(16711680&amp;a)&gt;&gt;16,s=(65280&amp;a)&gt;&gt;8,l=255&amp;a)),e(o,s,l))}function ce(t,e,r){var n,i,a=Math.min(t/=255,e/=255,r/=255),o=Math.max(t,e,r),s=o-a,l=(o+a)/2;return s?(i=l&lt;.5?s/(o+a):s/(2-o-a),n=t==o?(e-r)/s+(e&lt;r?6:0):e==o?(r-t)/s+2:(t-e)/s+4,n*=60):(n=NaN,i=l&gt;0&amp;&amp;l&lt;1?0:n),new qt(n,i,l)}function ue(t,e,r){var n=ee((.4124564*(t=fe(t))+.3575761*(e=fe(e))+.1804375*(r=fe(r)))/.95047),i=ee((.2126729*t+.7151522*e+.072175*r)/1);return Zt(116*i-16,500*(n-i),200*(i-ee((.0193339*t+.119192*e+.9503041*r)/1.08883)))}function fe(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function he(t){var e=parseFloat(t);return&quot;%&quot;===t.charAt(t.length-1)?Math.round(2.55*e):e}oe.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,r=this.g,n=this.b,i=30;return e||r||n?(e&amp;&amp;e&lt;i&amp;&amp;(e=i),r&amp;&amp;r&lt;i&amp;&amp;(r=i),n&amp;&amp;n&lt;i&amp;&amp;(n=i),new ne(Math.min(255,e/t),Math.min(255,r/t),Math.min(255,n/t))):new ne(i,i,i)},oe.darker=function(t){return new ne((t=Math.pow(.7,arguments.length?t:1))*this.r,t*this.g,t*this.b)},oe.hsl=function(){return ce(this.r,this.g,this.b)},oe.toString=function(){return&quot;#&quot;+se(this.r)+se(this.g)+se(this.b)};var pe=t.map({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 de(t){return&quot;function&quot;==typeof t?t:function(){return t}}function ge(t){return function(e,r,n){return 2===arguments.length&amp;&amp;&quot;function&quot;==typeof r&amp;&amp;(n=r,r=null),me(e,r,t,n)}}function me(e,r,i,a){var o={},s=t.dispatch(&quot;beforesend&quot;,&quot;progress&quot;,&quot;load&quot;,&quot;error&quot;),l={},c=new XMLHttpRequest,u=null;function f(){var t,e=c.status;if(!e&amp;&amp;function(t){var e=t.responseType;return e&amp;&amp;&quot;text&quot;!==e?t.response:t.responseText}(c)||e&gt;=200&amp;&amp;e&lt;300||304===e){try{t=i.call(o,c)}catch(t){return void s.error.call(o,t)}s.load.call(o,t)}else s.error.call(o,c)}return this.XDomainRequest&amp;&amp;!(&quot;withCredentials&quot;in c)&amp;&amp;/^(http(s)?:)?\/\//.test(e)&amp;&amp;(c=new XDomainRequest),&quot;onload&quot;in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState&gt;3&amp;&amp;f()},c.onprogress=function(e){var r=t.event;t.event=e;try{s.progress.call(o,c)}finally{t.event=r}},o.header=function(t,e){return t=(t+&quot;&quot;).toLowerCase(),arguments.length&lt;2?l[t]:(null==e?delete l[t]:l[t]=e+&quot;&quot;,o)},o.mimeType=function(t){return arguments.length?(r=null==t?null:t+&quot;&quot;,o):r},o.responseType=function(t){return arguments.length?(u=t,o):u},o.response=function(t){return i=t,o},[&quot;get&quot;,&quot;post&quot;].forEach((function(t){o[t]=function(){return o.send.apply(o,[t].concat(n(arguments)))}})),o.send=function(t,n,i){if(2===arguments.length&amp;&amp;&quot;function&quot;==typeof n&amp;&amp;(i=n,n=null),c.open(t,e,!0),null==r||&quot;accept&quot;in l||(l.accept=r+&quot;,*/*&quot;),c.setRequestHeader)for(var a in l)c.setRequestHeader(a,l[a]);return null!=r&amp;&amp;c.overrideMimeType&amp;&amp;c.overrideMimeType(r),null!=u&amp;&amp;(c.responseType=u),null!=i&amp;&amp;o.on(&quot;error&quot;,i).on(&quot;load&quot;,(function(t){i(null,t)})),s.beforesend.call(o,c),c.send(null==n?null:n),o},o.abort=function(){return c.abort(),o},t.rebind(o,s,&quot;on&quot;),null==a?o:o.get(function(t){return 1===t.length?function(e,r){t(null==e?r:null)}:t}(a))}pe.forEach((function(t,e){pe.set(t,ie(e))})),t.functor=de,t.xhr=ge(L),t.dsv=function(t,e){var r=new RegExp('[&quot;'+t+&quot;\n]&quot;),n=t.charCodeAt(0);function i(t,r,n){arguments.length&lt;3&amp;&amp;(n=r,r=null);var i=me(t,e,null==r?a:o(r),n);return i.row=function(t){return arguments.length?i.response(null==(r=t)?a:o(t)):r},i}function a(t){return i.parse(t.responseText)}function o(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(l).join(t)}function l(t){return r.test(t)?'&quot;'+t.replace(/\&quot;/g,'&quot;&quot;')+'&quot;':t}return i.parse=function(t,e){var r;return i.parseRows(t,(function(t,n){if(r)return r(t,n-1);var i=new Function(&quot;d&quot;,&quot;return {&quot;+t.map((function(t,e){return JSON.stringify(t)+&quot;: d[&quot;+e+&quot;]&quot;})).join(&quot;,&quot;)+&quot;}&quot;);r=e?function(t,r){return e(i(t),r)}:i}))},i.parseRows=function(t,e){var r,i,a={},o={},s=[],l=t.length,c=0,u=0;function f(){if(c&gt;=l)return o;if(i)return i=!1,a;var e=c;if(34===t.charCodeAt(e)){for(var r=e;r++&lt;l;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return c=r+2,13===(s=t.charCodeAt(r+1))?(i=!0,10===t.charCodeAt(r+2)&amp;&amp;++c):10===s&amp;&amp;(i=!0),t.slice(e+1,r).replace(/&quot;&quot;/g,'&quot;')}for(;c&lt;l;){var s,u=1;if(10===(s=t.charCodeAt(c++)))i=!0;else if(13===s)i=!0,10===t.charCodeAt(c)&amp;&amp;(++c,++u);else if(s!==n)continue;return t.slice(e,c-u)}return t.slice(e)}for(;(r=f())!==o;){for(var h=[];r!==a&amp;&amp;r!==o;)h.push(r),r=f();e&amp;&amp;null==(h=e(h,u++))||s.push(h)}return s},i.format=function(e){if(Array.isArray(e[0]))return i.formatRows(e);var r=new C,n=[];return e.forEach((function(t){for(var e in t)r.has(e)||n.push(r.add(e))})),[n.map(l).join(t)].concat(e.map((function(e){return n.map((function(t){return l(e[t])})).join(t)}))).join(&quot;\n&quot;)},i.formatRows=function(t){return t.map(s).join(&quot;\n&quot;)},i},t.csv=t.dsv(&quot;,&quot;,&quot;text/csv&quot;),t.tsv=t.dsv(&quot;\t&quot;,&quot;text/tab-separated-values&quot;);var ve,ye,xe,be,_e=this[P(this,&quot;requestAnimationFrame&quot;)]||function(t){setTimeout(t,17)};function we(t,e,r){var n=arguments.length;n&lt;2&amp;&amp;(e=0),n&lt;3&amp;&amp;(r=Date.now());var i=r+e,a={c:t,t:i,n:null};return ye?ye.n=a:ve=a,ye=a,xe||(be=clearTimeout(be),xe=1,_e(Te)),a}function Te(){var t=ke(),e=Me()-t;e&gt;24?(isFinite(e)&amp;&amp;(clearTimeout(be),be=setTimeout(Te,e)),xe=0):(xe=1,_e(Te))}function ke(){for(var t=Date.now(),e=ve;e;)t&gt;=e.t&amp;&amp;e.c(t-e.t)&amp;&amp;(e.c=null),e=e.n;return t}function Me(){for(var t,e=ve,r=1/0;e;)e.c?(e.t&lt;r&amp;&amp;(r=e.t),e=(t=e).n):e=t?t.n=e.n:ve=e.n;return ye=t,r}function Ae(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}t.timer=function(){we.apply(this,arguments)},t.timer.flush=function(){ke(),Me()},t.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var Se=[&quot;y&quot;,&quot;z&quot;,&quot;a&quot;,&quot;f&quot;,&quot;p&quot;,&quot;n&quot;,&quot;\xb5&quot;,&quot;m&quot;,&quot;&quot;,&quot;k&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;,&quot;P&quot;,&quot;E&quot;,&quot;Z&quot;,&quot;Y&quot;].map((function(t,e){var r=Math.pow(10,3*y(8-e));return{scale:e&gt;8?function(t){return t/r}:function(t){return t*r},symbol:t}}));function Ee(e){var r=e.decimal,n=e.thousands,i=e.grouping,a=e.currency,o=i&amp;&amp;n?function(t,e){for(var r=t.length,a=[],o=0,s=i[0],l=0;r&gt;0&amp;&amp;s&gt;0&amp;&amp;(l+s+1&gt;e&amp;&amp;(s=Math.max(1,e-l)),a.push(t.substring(r-=s,r+s)),!((l+=s+1)&gt;e));)s=i[o=(o+1)%i.length];return a.reverse().join(n)}:L;return function(e){var n=Ce.exec(e),i=n[1]||&quot; &quot;,s=n[2]||&quot;&gt;&quot;,l=n[3]||&quot;-&quot;,c=n[4]||&quot;&quot;,u=n[5],f=+n[6],h=n[7],p=n[8],d=n[9],g=1,m=&quot;&quot;,v=&quot;&quot;,y=!1,x=!0;switch(p&amp;&amp;(p=+p.substring(1)),(u||&quot;0&quot;===i&amp;&amp;&quot;=&quot;===s)&amp;&amp;(u=i=&quot;0&quot;,s=&quot;=&quot;),d){case&quot;n&quot;:h=!0,d=&quot;g&quot;;break;case&quot;%&quot;:g=100,v=&quot;%&quot;,d=&quot;f&quot;;break;case&quot;p&quot;:g=100,v=&quot;%&quot;,d=&quot;r&quot;;break;case&quot;b&quot;:case&quot;o&quot;:case&quot;x&quot;:case&quot;X&quot;:&quot;#&quot;===c&amp;&amp;(m=&quot;0&quot;+d.toLowerCase());case&quot;c&quot;:x=!1;case&quot;d&quot;:y=!0,p=0;break;case&quot;s&quot;:g=-1,d=&quot;r&quot;}&quot;$&quot;===c&amp;&amp;(m=a[0],v=a[1]),&quot;r&quot;!=d||p||(d=&quot;g&quot;),null!=p&amp;&amp;(&quot;g&quot;==d?p=Math.max(1,Math.min(21,p)):&quot;e&quot;!=d&amp;&amp;&quot;f&quot;!=d||(p=Math.max(0,Math.min(20,p)))),d=Le.get(d)||Ie;var b=u&amp;&amp;h;return function(e){var n=v;if(y&amp;&amp;e%1)return&quot;&quot;;var a=e&lt;0||0===e&amp;&amp;1/e&lt;0?(e=-e,&quot;-&quot;):&quot;-&quot;===l?&quot;&quot;:l;if(g&lt;0){var c=t.formatPrefix(e,p);e=c.scale(e),n=c.symbol+v}else e*=g;var _,w,T=(e=d(e,p)).lastIndexOf(&quot;.&quot;);if(T&lt;0){var k=x?e.lastIndexOf(&quot;e&quot;):-1;k&lt;0?(_=e,w=&quot;&quot;):(_=e.substring(0,k),w=e.substring(k))}else _=e.substring(0,T),w=r+e.substring(T+1);!u&amp;&amp;h&amp;&amp;(_=o(_,1/0));var M=m.length+_.length+w.length+(b?0:a.length),A=M&lt;f?new Array(M=f-M+1).join(i):&quot;&quot;;return b&amp;&amp;(_=o(A+_,A.length?f-w.length:1/0)),a+=m,e=_+w,(&quot;&lt;&quot;===s?a+e+A:&quot;&gt;&quot;===s?A+a+e:&quot;^&quot;===s?A.substring(0,M&gt;&gt;=1)+a+e+A.substring(M):a+(b?e:A+e))+n}}}t.formatPrefix=function(e,r){var n=0;return(e=+e)&amp;&amp;(e&lt;0&amp;&amp;(e*=-1),r&amp;&amp;(e=t.round(e,Ae(e,r))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Se[8+n/3]};var Ce=/(?:([^{])?([&lt;&gt;=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Le=t.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(e,r){return(e=t.round(e,Ae(e,r))).toFixed(Math.max(0,Math.min(20,Ae(e*(1+1e-15),r))))}});function Ie(t){return t+&quot;&quot;}var Pe=t.time={},ze=Date;function Oe(){this._=new Date(arguments.length&gt;1?Date.UTC.apply(this,arguments):arguments[0])}Oe.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){De.setUTCDate.apply(this._,arguments)},setDay:function(){De.setUTCDay.apply(this._,arguments)},setFullYear:function(){De.setUTCFullYear.apply(this._,arguments)},setHours:function(){De.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){De.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){De.setUTCMinutes.apply(this._,arguments)},setMonth:function(){De.setUTCMonth.apply(this._,arguments)},setSeconds:function(){De.setUTCSeconds.apply(this._,arguments)},setTime:function(){De.setTime.apply(this._,arguments)}};var De=Date.prototype;function Re(t,e,r){function n(e){var r=t(e),n=a(r,1);return e-r&lt;n-e?r:n}function i(r){return e(r=t(new ze(r-1)),1),r}function a(t,r){return e(t=new ze(+t),r),t}function o(t,n,a){var o=i(t),s=[];if(a&gt;1)for(;o&lt;n;)r(o)%a||s.push(new Date(+o)),e(o,1);else for(;o&lt;n;)s.push(new Date(+o)),e(o,1);return s}t.floor=t,t.round=n,t.ceil=i,t.offset=a,t.range=o;var s=t.utc=Fe(t);return s.floor=s,s.round=Fe(n),s.ceil=Fe(i),s.offset=Fe(a),s.range=function(t,e,r){try{ze=Oe;var n=new Oe;return n._=t,o(n,e,r)}finally{ze=Date}},t}function Fe(t){return function(e,r){try{ze=Oe;var n=new Oe;return n._=e,t(n,r)._}finally{ze=Date}}}function Be(e){var r=e.dateTime,n=e.date,i=e.time,a=e.periods,o=e.days,s=e.shortDays,l=e.months,c=e.shortMonths;function u(t){var e=t.length;function r(r){for(var n,i,a,o=[],s=-1,l=0;++s&lt;e;)37===t.charCodeAt(s)&amp;&amp;(o.push(t.slice(l,s)),null!=(i=Ne[n=t.charAt(++s)])&amp;&amp;(n=t.charAt(++s)),(a=_[n])&amp;&amp;(n=a(r,null==i?&quot;e&quot;===n?&quot; &quot;:&quot;0&quot;:i)),o.push(n),l=s+1);return o.push(t.slice(l,s)),o.join(&quot;&quot;)}return r.parse=function(e){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(f(r,t,e,0)!=e.length)return null;&quot;p&quot;in r&amp;&amp;(r.H=r.H%12+12*r.p);var n=null!=r.Z&amp;&amp;ze!==Oe,i=new(n?Oe:ze);return&quot;j&quot;in r?i.setFullYear(r.y,0,r.j):&quot;W&quot;in r||&quot;U&quot;in r?(&quot;w&quot;in r||(r.w=&quot;W&quot;in r?1:0),i.setFullYear(r.y,0,1),i.setFullYear(r.y,0,&quot;W&quot;in r?(r.w+6)%7+7*r.W-(i.getDay()+5)%7:r.w+7*r.U-(i.getDay()+6)%7)):i.setFullYear(r.y,r.m,r.d),i.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),n?i._:i},r.toString=function(){return t},r}function f(t,e,r,n){for(var i,a,o,s=0,l=e.length,c=r.length;s&lt;l;){if(n&gt;=c)return-1;if(37===(i=e.charCodeAt(s++))){if(o=e.charAt(s++),!(a=w[o in Ne?e.charAt(s++):o])||(n=a(t,r,n))&lt;0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}u.utc=function(t){var e=u(t);function r(t){try{var r=new(ze=Oe);return r._=t,e(r)}finally{ze=Date}}return r.parse=function(t){try{ze=Oe;var r=e.parse(t);return r&amp;&amp;r._}finally{ze=Date}},r.toString=e.toString,r},u.multi=u.utc.multi=or;var h=t.map(),p=qe(o),d=He(o),g=qe(s),m=He(s),v=qe(l),y=He(l),x=qe(c),b=He(c);a.forEach((function(t,e){h.set(t.toLowerCase(),e)}));var _={a:function(t){return s[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return l[t.getMonth()]},c:u(r),d:function(t,e){return Ve(t.getDate(),e,2)},e:function(t,e){return Ve(t.getDate(),e,2)},H:function(t,e){return Ve(t.getHours(),e,2)},I:function(t,e){return Ve(t.getHours()%12||12,e,2)},j:function(t,e){return Ve(1+Pe.dayOfYear(t),e,3)},L:function(t,e){return Ve(t.getMilliseconds(),e,3)},m:function(t,e){return Ve(t.getMonth()+1,e,2)},M:function(t,e){return Ve(t.getMinutes(),e,2)},p:function(t){return a[+(t.getHours()&gt;=12)]},S:function(t,e){return Ve(t.getSeconds(),e,2)},U:function(t,e){return Ve(Pe.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Ve(Pe.mondayOfYear(t),e,2)},x:u(n),X:u(i),y:function(t,e){return Ve(t.getFullYear()%100,e,2)},Y:function(t,e){return Ve(t.getFullYear()%1e4,e,4)},Z:ir,&quot;%&quot;:function(){return&quot;%&quot;}},w={a:function(t,e,r){g.lastIndex=0;var n=g.exec(e.slice(r));return n?(t.w=m.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){p.lastIndex=0;var n=p.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){x.lastIndex=0;var n=x.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){v.lastIndex=0;var n=v.exec(e.slice(r));return n?(t.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,e,r){return f(t,_.c.toString(),e,r)},d:Qe,e:Qe,H:tr,I:tr,j:$e,L:nr,m:Ke,M:er,p:function(t,e,r){var n=h.get(e.slice(r,r+=2).toLowerCase());return null==n?-1:(t.p=n,r)},S:rr,U:Ye,w:Ge,W:We,x:function(t,e,r){return f(t,_.x.toString(),e,r)},X:function(t,e,r){return f(t,_.X.toString(),e,r)},y:Ze,Y:Xe,Z:Je,&quot;%&quot;:ar};return u}Pe.year=Re((function(t){return(t=Pe.day(t)).setMonth(0,1),t}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t){return t.getFullYear()})),Pe.years=Pe.year.range,Pe.years.utc=Pe.year.utc.range,Pe.day=Re((function(t){var e=new ze(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t){return t.getDate()-1})),Pe.days=Pe.day.range,Pe.days.utc=Pe.day.utc.range,Pe.dayOfYear=function(t){var e=Pe.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},[&quot;sunday&quot;,&quot;monday&quot;,&quot;tuesday&quot;,&quot;wednesday&quot;,&quot;thursday&quot;,&quot;friday&quot;,&quot;saturday&quot;].forEach((function(t,e){e=7-e;var r=Pe[t]=Re((function(t){return(t=Pe.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t}),(function(t,e){t.setDate(t.getDate()+7*Math.floor(e))}),(function(t){var r=Pe.year(t).getDay();return Math.floor((Pe.dayOfYear(t)+(r+e)%7)/7)-(r!==e)}));Pe[t+&quot;s&quot;]=r.range,Pe[t+&quot;s&quot;].utc=r.utc.range,Pe[t+&quot;OfYear&quot;]=function(t){var r=Pe.year(t).getDay();return Math.floor((Pe.dayOfYear(t)+(r+e)%7)/7)}})),Pe.week=Pe.sunday,Pe.weeks=Pe.sunday.range,Pe.weeks.utc=Pe.sunday.utc.range,Pe.weekOfYear=Pe.sundayOfYear;var Ne={&quot;-&quot;:&quot;&quot;,_:&quot; &quot;,0:&quot;0&quot;},je=/^\s*\d+/,Ue=/^%/;function Ve(t,e,r){var n=t&lt;0?&quot;-&quot;:&quot;&quot;,i=(n?-t:t)+&quot;&quot;,a=i.length;return n+(a&lt;r?new Array(r-a+1).join(e)+i:i)}function qe(e){return new RegExp(&quot;^(?:&quot;+e.map(t.requote).join(&quot;|&quot;)+&quot;)&quot;,&quot;i&quot;)}function He(t){for(var e=new _,r=-1,n=t.length;++r&lt;n;)e.set(t[r].toLowerCase(),r);return e}function Ge(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Ye(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r));return n?(t.U=+n[0],r+n[0].length):-1}function We(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r));return n?(t.W=+n[0],r+n[0].length):-1}function Xe(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Ze(t,e,r){je.lastIndex=0;var n,i=je.exec(e.slice(r,r+2));return i?(t.y=(n=+i[0])+(n&gt;68?1900:2e3),r+i[0].length):-1}function Je(t,e,r){return/^[+-]\d{4}$/.test(e=e.slice(r,r+5))?(t.Z=-e,r+5):-1}function Ke(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Qe(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function $e(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+3));return n?(t.j=+n[0],r+n[0].length):-1}function tr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function er(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function rr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function nr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function ir(t){var e=t.getTimezoneOffset(),r=e&gt;0?&quot;-&quot;:&quot;+&quot;,n=y(e)/60|0,i=y(e)%60;return r+Ve(n,&quot;0&quot;,2)+Ve(i,&quot;0&quot;,2)}function ar(t,e,r){Ue.lastIndex=0;var n=Ue.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function or(t){for(var e=t.length,r=-1;++r&lt;e;)t[r][0]=this(t[r][0]);return function(e){for(var r=0,n=t[r];!n[1](e);)n=t[++r];return n[0](e)}}t.locale=function(t){return{numberFormat:Ee(t),timeFormat:Be(t)}};var sr=t.locale({decimal:&quot;.&quot;,thousands:&quot;,&quot;,grouping:[3],currency:[&quot;$&quot;,&quot;&quot;],dateTime:&quot;%a %b %e %X %Y&quot;,date:&quot;%m/%d/%Y&quot;,time:&quot;%H:%M:%S&quot;,periods:[&quot;AM&quot;,&quot;PM&quot;],days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;]});function lr(){}t.format=sr.numberFormat,t.geo={},lr.prototype={s:0,t:0,add:function(t){ur(t,this.t,cr),ur(cr.s,this.s,this),this.s?this.t+=cr.t:this.s=cr.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var cr=new lr;function ur(t,e,r){var n=r.s=t+e,i=n-t,a=n-i;r.t=t-a+(e-i)}function fr(t,e){t&amp;&amp;pr.hasOwnProperty(t.type)&amp;&amp;pr[t.type](t,e)}t.geo.stream=function(t,e){t&amp;&amp;hr.hasOwnProperty(t.type)?hr[t.type](t,e):fr(t,e)};var hr={Feature:function(t,e){fr(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n&lt;i;)fr(r[n].geometry,e)}},pr={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)t=r[n],e.point(t[0],t[1],t[2])},LineString:function(t,e){dr(t.coordinates,e,0)},MultiLineString:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)dr(r[n],e,0)},Polygon:function(t,e){gr(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)gr(r[n],e)},GeometryCollection:function(t,e){for(var r=t.geometries,n=-1,i=r.length;++n&lt;i;)fr(r[n],e)}};function dr(t,e,r){var n,i=-1,a=t.length-r;for(e.lineStart();++i&lt;a;)n=t[i],e.point(n[0],n[1],n[2]);e.lineEnd()}function gr(t,e){var r=-1,n=t.length;for(e.polygonStart();++r&lt;n;)dr(t[r],e,1);e.polygonEnd()}t.geo.area=function(e){return mr=0,t.geo.stream(e,Cr),mr};var mr,vr,yr,xr,br,_r,wr,Tr,kr,Mr,Ar,Sr,Er=new lr,Cr={sphere:function(){mr+=4*At},point:O,lineStart:O,lineEnd:O,polygonStart:function(){Er.reset(),Cr.lineStart=Lr},polygonEnd:function(){var t=2*Er;mr+=t&lt;0?4*At+t:t,Cr.lineStart=Cr.lineEnd=Cr.point=O}};function Lr(){var t,e,r,n,i;function a(t,e){e=e*Lt/2+At/4;var a=(t*=Lt)-r,o=a&gt;=0?1:-1,s=o*a,l=Math.cos(e),c=Math.sin(e),u=i*c,f=n*l+u*Math.cos(s),h=u*o*Math.sin(s);Er.add(Math.atan2(h,f)),r=t,n=l,i=c}Cr.point=function(o,s){Cr.point=a,r=(t=o)*Lt,n=Math.cos(s=(e=s)*Lt/2+At/4),i=Math.sin(s)},Cr.lineEnd=function(){a(t,e)}}function Ir(t){var e=t[0],r=t[1],n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}function Pr(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function zr(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Or(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Dr(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Rr(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Fr(t){return[Math.atan2(t[1],t[0]),Dt(t[2])]}function Br(t,e){return y(t[0]-e[0])&lt;kt&amp;&amp;y(t[1]-e[1])&lt;kt}t.geo.bounds=function(){var e,r,n,i,a,o,s,l,c,u,f,h={point:p,lineStart:g,lineEnd:m,polygonStart:function(){h.point=v,h.lineStart=x,h.lineEnd=b,c=0,Cr.polygonStart()},polygonEnd:function(){Cr.polygonEnd(),h.point=p,h.lineStart=g,h.lineEnd=m,Er&lt;0?(e=-(n=180),r=-(i=90)):c&gt;kt?i=90:c&lt;-kt&amp;&amp;(r=-90),f[0]=e,f[1]=n}};function p(t,a){u.push(f=[e=t,n=t]),a&lt;r&amp;&amp;(r=a),a&gt;i&amp;&amp;(i=a)}function d(t,o){var s=Ir([t*Lt,o*Lt]);if(l){var c=zr(l,s),u=zr([c[1],-c[0],0],c);Rr(u),u=Fr(u);var f=t-a,h=f&gt;0?1:-1,d=u[0]*It*h,g=y(f)&gt;180;if(g^(h*a&lt;d&amp;&amp;d&lt;h*t))(m=u[1]*It)&gt;i&amp;&amp;(i=m);else if(g^(h*a&lt;(d=(d+360)%360-180)&amp;&amp;d&lt;h*t)){var m;(m=-u[1]*It)&lt;r&amp;&amp;(r=m)}else o&lt;r&amp;&amp;(r=o),o&gt;i&amp;&amp;(i=o);g?t&lt;a?_(e,t)&gt;_(e,n)&amp;&amp;(n=t):_(t,n)&gt;_(e,n)&amp;&amp;(e=t):n&gt;=e?(t&lt;e&amp;&amp;(e=t),t&gt;n&amp;&amp;(n=t)):t&gt;a?_(e,t)&gt;_(e,n)&amp;&amp;(n=t):_(t,n)&gt;_(e,n)&amp;&amp;(e=t)}else p(t,o);l=s,a=t}function g(){h.point=d}function m(){f[0]=e,f[1]=n,h.point=p,l=null}function v(t,e){if(l){var r=t-a;c+=y(r)&gt;180?r+(r&gt;0?360:-360):r}else o=t,s=e;Cr.point(t,e),d(t,e)}function x(){Cr.lineStart()}function b(){v(o,s),Cr.lineEnd(),y(c)&gt;kt&amp;&amp;(e=-(n=180)),f[0]=e,f[1]=n,l=null}function _(t,e){return(e-=t)&lt;0?e+360:e}function w(t,e){return t[0]-e[0]}function T(t,e){return e[0]&lt;=e[1]?e[0]&lt;=t&amp;&amp;t&lt;=e[1]:t&lt;e[0]||e[1]&lt;t}return function(a){if(i=n=-(e=r=1/0),u=[],t.geo.stream(a,h),c=u.length){u.sort(w);for(var o=1,s=[g=u[0]];o&lt;c;++o)T((p=u[o])[0],g)||T(p[1],g)?(_(g[0],p[1])&gt;_(g[0],g[1])&amp;&amp;(g[1]=p[1]),_(p[0],g[1])&gt;_(g[0],g[1])&amp;&amp;(g[0]=p[0])):s.push(g=p);for(var l,c,p,d=-1/0,g=(o=0,s[c=s.length-1]);o&lt;=c;g=p,++o)p=s[o],(l=_(g[1],p[0]))&gt;d&amp;&amp;(d=l,e=p[0],n=g[1])}return u=f=null,e===1/0||r===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,r],[n,i]]}}(),t.geo.centroid=function(e){vr=yr=xr=br=_r=wr=Tr=kr=Mr=Ar=Sr=0,t.geo.stream(e,Nr);var r=Mr,n=Ar,i=Sr,a=r*r+n*n+i*i;return a&lt;Mt&amp;&amp;(r=wr,n=Tr,i=kr,yr&lt;kt&amp;&amp;(r=xr,n=br,i=_r),(a=r*r+n*n+i*i)&lt;Mt)?[NaN,NaN]:[Math.atan2(n,r)*It,Dt(i/Math.sqrt(a))*It]};var Nr={sphere:O,point:jr,lineStart:Vr,lineEnd:qr,polygonStart:function(){Nr.lineStart=Hr},polygonEnd:function(){Nr.lineStart=Vr}};function jr(t,e){t*=Lt;var r=Math.cos(e*=Lt);Ur(r*Math.cos(t),r*Math.sin(t),Math.sin(e))}function Ur(t,e,r){++vr,xr+=(t-xr)/vr,br+=(e-br)/vr,_r+=(r-_r)/vr}function Vr(){var t,e,r;function n(n,i){n*=Lt;var a=Math.cos(i*=Lt),o=a*Math.cos(n),s=a*Math.sin(n),l=Math.sin(i),c=Math.atan2(Math.sqrt((c=e*l-r*s)*c+(c=r*o-t*l)*c+(c=t*s-e*o)*c),t*o+e*s+r*l);yr+=c,wr+=c*(t+(t=o)),Tr+=c*(e+(e=s)),kr+=c*(r+(r=l)),Ur(t,e,r)}Nr.point=function(i,a){i*=Lt;var o=Math.cos(a*=Lt);t=o*Math.cos(i),e=o*Math.sin(i),r=Math.sin(a),Nr.point=n,Ur(t,e,r)}}function qr(){Nr.point=jr}function Hr(){var t,e,r,n,i;function a(t,e){t*=Lt;var a=Math.cos(e*=Lt),o=a*Math.cos(t),s=a*Math.sin(t),l=Math.sin(e),c=n*l-i*s,u=i*o-r*l,f=r*s-n*o,h=Math.sqrt(c*c+u*u+f*f),p=r*o+n*s+i*l,d=h&amp;&amp;-Ot(p)/h,g=Math.atan2(h,p);Mr+=d*c,Ar+=d*u,Sr+=d*f,yr+=g,wr+=g*(r+(r=o)),Tr+=g*(n+(n=s)),kr+=g*(i+(i=l)),Ur(r,n,i)}Nr.point=function(o,s){t=o,e=s,Nr.point=a,o*=Lt;var l=Math.cos(s*=Lt);r=l*Math.cos(o),n=l*Math.sin(o),i=Math.sin(s),Ur(r,n,i)},Nr.lineEnd=function(){a(t,e),Nr.lineEnd=qr,Nr.point=jr}}function Gr(t,e){function r(r,n){return r=t(r,n),e(r[0],r[1])}return t.invert&amp;&amp;e.invert&amp;&amp;(r.invert=function(r,n){return(r=e.invert(r,n))&amp;&amp;t.invert(r[0],r[1])}),r}function Yr(){return!0}function Wr(t,e,r,n,i){var a=[],o=[];if(t.forEach((function(t){if(!((e=t.length-1)&lt;=0)){var e,r=t[0],n=t[e];if(Br(r,n)){i.lineStart();for(var s=0;s&lt;e;++s)i.point((r=t[s])[0],r[1]);i.lineEnd()}else{var l=new Zr(r,t,null,!0),c=new Zr(r,null,l,!1);l.o=c,a.push(l),o.push(c),l=new Zr(n,t,null,!1),c=new Zr(n,null,l,!0),l.o=c,a.push(l),o.push(c)}}})),o.sort(e),Xr(a),Xr(o),a.length){for(var s=0,l=r,c=o.length;s&lt;c;++s)o[s].e=l=!l;for(var u,f,h=a[0];;){for(var p=h,d=!0;p.v;)if((p=p.n)===h)return;u=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(s=0,c=u.length;s&lt;c;++s)i.point((f=u[s])[0],f[1]);else n(p.x,p.n.x,1,i);p=p.n}else{if(d)for(s=(u=p.p.z).length-1;s&gt;=0;--s)i.point((f=u[s])[0],f[1]);else n(p.x,p.p.x,-1,i);p=p.p}u=(p=p.o).z,d=!d}while(!p.v);i.lineEnd()}}}function Xr(t){if(e=t.length){for(var e,r,n=0,i=t[0];++n&lt;e;)i.n=r=t[n],r.p=i,i=r;i.n=r=t[0],r.p=i}}function Zr(t,e,r,n){this.x=t,this.z=e,this.o=r,this.e=n,this.v=!1,this.n=this.p=null}function Jr(e,r,n,i){return function(a,o){var s,l=r(o),c=a.invert(i[0],i[1]),u={point:f,lineStart:p,lineEnd:d,polygonStart:function(){u.point=b,u.lineStart=_,u.lineEnd=w,s=[],g=[]},polygonEnd:function(){u.point=f,u.lineStart=p,u.lineEnd=d,s=t.merge(s);var e=function(t,e){var r=t[0],n=t[1],i=[Math.sin(r),-Math.cos(r),0],a=0,o=0;Er.reset();for(var s=0,l=e.length;s&lt;l;++s){var c=e[s],u=c.length;if(u)for(var f=c[0],h=f[0],p=f[1]/2+At/4,d=Math.sin(p),g=Math.cos(p),m=1;;){m===u&amp;&amp;(m=0);var v=(t=c[m])[0],y=t[1]/2+At/4,x=Math.sin(y),b=Math.cos(y),_=v-h,w=_&gt;=0?1:-1,T=w*_,k=T&gt;At,M=d*x;if(Er.add(Math.atan2(M*w*Math.sin(T),g*b+M*Math.cos(T))),a+=k?_+w*St:_,k^h&gt;=r^v&gt;=r){var A=zr(Ir(f),Ir(t));Rr(A);var S=zr(i,A);Rr(S);var E=(k^_&gt;=0?-1:1)*Dt(S[2]);(n&gt;E||n===E&amp;&amp;(A[0]||A[1]))&amp;&amp;(o+=k^_&gt;=0?1:-1)}if(!m++)break;h=v,d=x,g=b,f=t}}return(a&lt;-kt||a&lt;kt&amp;&amp;Er&lt;-kt)^1&amp;o}(c,g);s.length?(x||(o.polygonStart(),x=!0),Wr(s,$r,e,n,o)):e&amp;&amp;(x||(o.polygonStart(),x=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),x&amp;&amp;(o.polygonEnd(),x=!1),s=g=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function f(t,r){var n=a(t,r);e(t=n[0],r=n[1])&amp;&amp;o.point(t,r)}function h(t,e){var r=a(t,e);l.point(r[0],r[1])}function p(){u.point=h,l.lineStart()}function d(){u.point=f,l.lineEnd()}var g,m,v=Qr(),y=r(v),x=!1;function b(t,e){m.push([t,e]);var r=a(t,e);y.point(r[0],r[1])}function _(){y.lineStart(),m=[]}function w(){b(m[0][0],m[0][1]),y.lineEnd();var t,e=y.clean(),r=v.buffer(),n=r.length;if(m.pop(),g.push(m),m=null,n)if(1&amp;e){var i,a=-1;if((n=(t=r[0]).length-1)&gt;0){for(x||(o.polygonStart(),x=!0),o.lineStart();++a&lt;n;)o.point((i=t[a])[0],i[1]);o.lineEnd()}}else n&gt;1&amp;&amp;2&amp;e&amp;&amp;r.push(r.pop().concat(r.shift())),s.push(r.filter(Kr))}return u}}function Kr(t){return t.length&gt;1}function Qr(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,r){t.push([e,r])},lineEnd:O,buffer:function(){var r=e;return e=[],t=null,r},rejoin:function(){e.length&gt;1&amp;&amp;e.push(e.pop().concat(e.shift()))}}}function $r(t,e){return((t=t.x)[0]&lt;0?t[1]-Ct-kt:Ct-t[1])-((e=e.x)[0]&lt;0?e[1]-Ct-kt:Ct-e[1])}var tn=Jr(Yr,(function(t){var e,r=NaN,n=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a&gt;0?At:-At,l=y(a-r);y(l-At)&lt;kt?(t.point(r,n=(n+o)/2&gt;0?Ct:-Ct),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),t.point(a,n),e=0):i!==s&amp;&amp;l&gt;=At&amp;&amp;(y(r-i)&lt;kt&amp;&amp;(r-=i*kt),y(a-s)&lt;kt&amp;&amp;(a-=s*kt),n=function(t,e,r,n){var i,a,o=Math.sin(t-r);return y(o)&gt;kt?Math.atan((Math.sin(e)*(a=Math.cos(n))*Math.sin(r)-Math.sin(n)*(i=Math.cos(e))*Math.sin(t))/(i*a*o)):(e+n)/2}(r,n,a,o),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),e=0),t.point(r=a,n=o),i=s},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}}),(function(t,e,r,n){var i;if(null==t)i=r*Ct,n.point(-At,i),n.point(0,i),n.point(At,i),n.point(At,0),n.point(At,-i),n.point(0,-i),n.point(-At,-i),n.point(-At,0),n.point(-At,i);else if(y(t[0]-e[0])&gt;kt){var a=t[0]&lt;e[0]?At:-At;i=r*a/2,n.point(-a,i),n.point(0,i),n.point(a,i)}else n.point(e[0],e[1])}),[-At,-At/2]);function en(t){var e=Math.cos(t),r=e&gt;0,n=y(e)&gt;kt;return Jr(i,(function(t){var e,s,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(f,h){var p,d=[f,h],g=i(f,h),m=r?g?0:o(f,h):g?o(f+(f&lt;0?At:-At),h):0;if(!e&amp;&amp;(c=l=g)&amp;&amp;t.lineStart(),g!==l&amp;&amp;(p=a(e,d),(Br(e,p)||Br(d,p))&amp;&amp;(d[0]+=kt,d[1]+=kt,g=i(d[0],d[1]))),g!==l)u=0,g?(t.lineStart(),p=a(d,e),t.point(p[0],p[1])):(p=a(e,d),t.point(p[0],p[1]),t.lineEnd()),e=p;else if(n&amp;&amp;e&amp;&amp;r^g){var v;m&amp;s||!(v=a(d,e,!0))||(u=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!g||e&amp;&amp;Br(e,d)||t.point(d[0],d[1]),e=d,l=g,s=m},lineEnd:function(){l&amp;&amp;t.lineEnd(),e=null},clean:function(){return u|(c&amp;&amp;l)&lt;&lt;1}}}),Bn(t,6*Lt),r?[0,-t]:[-At,t-At]);function i(t,r){return Math.cos(t)*Math.cos(r)&gt;e}function a(t,r,n){var i=[1,0,0],a=zr(Ir(t),Ir(r)),o=Pr(a,a),s=a[0],l=o-s*s;if(!l)return!n&amp;&amp;t;var c=e*o/l,u=-e*s/l,f=zr(i,a),h=Dr(i,c);Or(h,Dr(a,u));var p=f,d=Pr(h,p),g=Pr(p,p),m=d*d-g*(Pr(h,h)-1);if(!(m&lt;0)){var v=Math.sqrt(m),x=Dr(p,(-d-v)/g);if(Or(x,h),x=Fr(x),!n)return x;var b,_=t[0],w=r[0],T=t[1],k=r[1];w&lt;_&amp;&amp;(b=_,_=w,w=b);var M=w-_,A=y(M-At)&lt;kt;if(!A&amp;&amp;k&lt;T&amp;&amp;(b=T,T=k,k=b),A||M&lt;kt?A?T+k&gt;0^x[1]&lt;(y(x[0]-_)&lt;kt?T:k):T&lt;=x[1]&amp;&amp;x[1]&lt;=k:M&gt;At^(_&lt;=x[0]&amp;&amp;x[0]&lt;=w)){var S=Dr(p,(-d+v)/g);return Or(S,h),[x,Fr(S)]}}}function o(e,n){var i=r?t:At-t,a=0;return e&lt;-i?a|=1:e&gt;i&amp;&amp;(a|=2),n&lt;-i?a|=4:n&gt;i&amp;&amp;(a|=8),a}}function rn(t,e,r,n){return function(i){var a,o=i.a,s=i.b,l=o.x,c=o.y,u=0,f=1,h=s.x-l,p=s.y-c;if(a=t-l,h||!(a&gt;0)){if(a/=h,h&lt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}else if(h&gt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}if(a=r-l,h||!(a&lt;0)){if(a/=h,h&lt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}else if(h&gt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}if(a=e-c,p||!(a&gt;0)){if(a/=p,p&lt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}else if(p&gt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}if(a=n-c,p||!(a&lt;0)){if(a/=p,p&lt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}else if(p&gt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}return u&gt;0&amp;&amp;(i.a={x:l+u*h,y:c+u*p}),f&lt;1&amp;&amp;(i.b={x:l+f*h,y:c+f*p}),i}}}}}}function nn(e,r,n,i){return function(l){var c,u,f,h,p,d,g,m,v,y,x,b=l,_=Qr(),w=rn(e,r,n,i),T={point:A,lineStart:function(){T.point=S,u&amp;&amp;u.push(f=[]);y=!0,v=!1,g=m=NaN},lineEnd:function(){c&amp;&amp;(S(h,p),d&amp;&amp;v&amp;&amp;_.rejoin(),c.push(_.buffer()));T.point=A,v&amp;&amp;l.lineEnd()},polygonStart:function(){l=_,c=[],u=[],x=!0},polygonEnd:function(){l=b,c=t.merge(c);var r=function(t){for(var e=0,r=u.length,n=t[1],i=0;i&lt;r;++i)for(var a,o=1,s=u[i],l=s.length,c=s[0];o&lt;l;++o)a=s[o],c[1]&lt;=n?a[1]&gt;n&amp;&amp;zt(c,a,t)&gt;0&amp;&amp;++e:a[1]&lt;=n&amp;&amp;zt(c,a,t)&lt;0&amp;&amp;--e,c=a;return 0!==e}([e,i]),n=x&amp;&amp;r,a=c.length;(n||a)&amp;&amp;(l.polygonStart(),n&amp;&amp;(l.lineStart(),k(null,null,1,l),l.lineEnd()),a&amp;&amp;Wr(c,o,r,k,l),l.polygonEnd()),c=u=f=null}};function k(t,o,l,c){var u=0,f=0;if(null==t||(u=a(t,l))!==(f=a(o,l))||s(t,o)&lt;0^l&gt;0)do{c.point(0===u||3===u?e:n,u&gt;1?i:r)}while((u=(u+l+4)%4)!==f);else c.point(o[0],o[1])}function M(t,a){return e&lt;=t&amp;&amp;t&lt;=n&amp;&amp;r&lt;=a&amp;&amp;a&lt;=i}function A(t,e){M(t,e)&amp;&amp;l.point(t,e)}function S(t,e){var r=M(t=Math.max(-1e9,Math.min(1e9,t)),e=Math.max(-1e9,Math.min(1e9,e)));if(u&amp;&amp;f.push([t,e]),y)h=t,p=e,d=r,y=!1,r&amp;&amp;(l.lineStart(),l.point(t,e));else if(r&amp;&amp;v)l.point(t,e);else{var n={a:{x:g,y:m},b:{x:t,y:e}};w(n)?(v||(l.lineStart(),l.point(n.a.x,n.a.y)),l.point(n.b.x,n.b.y),r||l.lineEnd(),x=!1):r&amp;&amp;(l.lineStart(),l.point(t,e),x=!1)}g=t,m=e,v=r}return T};function a(t,i){return y(t[0]-e)&lt;kt?i&gt;0?0:3:y(t[0]-n)&lt;kt?i&gt;0?2:1:y(t[1]-r)&lt;kt?i&gt;0?1:0:i&gt;0?3:2}function o(t,e){return s(t.x,e.x)}function s(t,e){var r=a(t,1),n=a(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}}function an(t){var e=0,r=At/3,n=Ln(t),i=n(e,r);return i.parallels=function(t){return arguments.length?n(e=t[0]*At/180,r=t[1]*At/180):[e/At*180,r/At*180]},i}function on(t,e){var r=Math.sin(t),n=(r+Math.sin(e))/2,i=1+r*(2*n-r),a=Math.sqrt(i)/n;function o(t,e){var r=Math.sqrt(i-2*n*Math.sin(e))/n;return[r*Math.sin(t*=n),a-r*Math.cos(t)]}return o.invert=function(t,e){var r=a-e;return[Math.atan2(t,r)/n,Dt((i-(t*t+r*r)*n*n)/(2*n))]},o}t.geo.clipExtent=function(){var t,e,r,n,i,a,o={stream:function(t){return i&amp;&amp;(i.valid=!1),(i=a(t)).valid=!0,i},extent:function(s){return arguments.length?(a=nn(t=+s[0][0],e=+s[0][1],r=+s[1][0],n=+s[1][1]),i&amp;&amp;(i.valid=!1,i=null),o):[[t,e],[r,n]]}};return o.extent([[0,0],[960,500]])},(t.geo.conicEqualArea=function(){return an(on)}).raw=on,t.geo.albers=function(){return t.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},t.geo.albersUsa=function(){var e,r,n,i,a=t.geo.albers(),o=t.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=t.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,r){e=[t,r]}};function c(t){var a=t[0],o=t[1];return e=null,r(a,o),e||(n(a,o),e)||i(a,o),e}return c.invert=function(t){var e=a.scale(),r=a.translate(),n=(t[0]-r[0])/e,i=(t[1]-r[1])/e;return(i&gt;=.12&amp;&amp;i&lt;.234&amp;&amp;n&gt;=-.425&amp;&amp;n&lt;-.214?o:i&gt;=.166&amp;&amp;i&lt;.234&amp;&amp;n&gt;=-.214&amp;&amp;n&lt;-.115?s:a).invert(t)},c.stream=function(t){var e=a.stream(t),r=o.stream(t),n=s.stream(t);return{point:function(t,i){e.point(t,i),r.point(t,i),n.point(t,i)},sphere:function(){e.sphere(),r.sphere(),n.sphere()},lineStart:function(){e.lineStart(),r.lineStart(),n.lineStart()},lineEnd:function(){e.lineEnd(),r.lineEnd(),n.lineEnd()},polygonStart:function(){e.polygonStart(),r.polygonStart(),n.polygonStart()},polygonEnd:function(){e.polygonEnd(),r.polygonEnd(),n.polygonEnd()}}},c.precision=function(t){return arguments.length?(a.precision(t),o.precision(t),s.precision(t),c):a.precision()},c.scale=function(t){return arguments.length?(a.scale(t),o.scale(.35*t),s.scale(t),c.translate(a.translate())):a.scale()},c.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),u=+t[0],f=+t[1];return r=a.translate(t).clipExtent([[u-.455*e,f-.238*e],[u+.455*e,f+.238*e]]).stream(l).point,n=o.translate([u-.307*e,f+.201*e]).clipExtent([[u-.425*e+kt,f+.12*e+kt],[u-.214*e-kt,f+.234*e-kt]]).stream(l).point,i=s.translate([u-.205*e,f+.212*e]).clipExtent([[u-.214*e+kt,f+.166*e+kt],[u-.115*e-kt,f+.234*e-kt]]).stream(l).point,c},c.scale(1070)};var sn,ln,cn,un,fn,hn,pn={point:O,lineStart:O,lineEnd:O,polygonStart:function(){ln=0,pn.lineStart=dn},polygonEnd:function(){pn.lineStart=pn.lineEnd=pn.point=O,sn+=y(ln/2)}};function dn(){var t,e,r,n;function i(t,e){ln+=n*t-r*e,r=t,n=e}pn.point=function(a,o){pn.point=i,t=r=a,e=n=o},pn.lineEnd=function(){i(t,e)}}var gn={point:function(t,e){t&lt;cn&amp;&amp;(cn=t);t&gt;fn&amp;&amp;(fn=t);e&lt;un&amp;&amp;(un=e);e&gt;hn&amp;&amp;(hn=e)},lineStart:O,lineEnd:O,polygonStart:O,polygonEnd:O};function mn(){var t=vn(4.5),e=[],r={point:n,lineStart:function(){r.point=i},lineEnd:o,polygonStart:function(){r.lineEnd=s},polygonEnd:function(){r.lineEnd=o,r.point=n},pointRadius:function(e){return t=vn(e),r},result:function(){if(e.length){var t=e.join(&quot;&quot;);return e=[],t}}};function n(r,n){e.push(&quot;M&quot;,r,&quot;,&quot;,n,t)}function i(t,n){e.push(&quot;M&quot;,t,&quot;,&quot;,n),r.point=a}function a(t,r){e.push(&quot;L&quot;,t,&quot;,&quot;,r)}function o(){r.point=n}function s(){e.push(&quot;Z&quot;)}return r}function vn(t){return&quot;m0,&quot;+t+&quot;a&quot;+t+&quot;,&quot;+t+&quot; 0 1,1 0,&quot;+-2*t+&quot;a&quot;+t+&quot;,&quot;+t+&quot; 0 1,1 0,&quot;+2*t+&quot;z&quot;}var yn,xn={point:bn,lineStart:_n,lineEnd:wn,polygonStart:function(){xn.lineStart=Tn},polygonEnd:function(){xn.point=bn,xn.lineStart=_n,xn.lineEnd=wn}};function bn(t,e){xr+=t,br+=e,++_r}function _n(){var t,e;function r(r,n){var i=r-t,a=n-e,o=Math.sqrt(i*i+a*a);wr+=o*(t+r)/2,Tr+=o*(e+n)/2,kr+=o,bn(t=r,e=n)}xn.point=function(n,i){xn.point=r,bn(t=n,e=i)}}function wn(){xn.point=bn}function Tn(){var t,e,r,n;function i(t,e){var i=t-r,a=e-n,o=Math.sqrt(i*i+a*a);wr+=o*(r+t)/2,Tr+=o*(n+e)/2,kr+=o,Mr+=(o=n*t-r*e)*(r+t),Ar+=o*(n+e),Sr+=3*o,bn(r=t,n=e)}xn.point=function(a,o){xn.point=i,bn(t=r=a,e=n=o)},xn.lineEnd=function(){i(t,e)}}function kn(t){var e=4.5,r={point:n,lineStart:function(){r.point=i},lineEnd:o,polygonStart:function(){r.lineEnd=s},polygonEnd:function(){r.lineEnd=o,r.point=n},pointRadius:function(t){return e=t,r},result:O};function n(r,n){t.moveTo(r+e,n),t.arc(r,n,e,0,St)}function i(e,n){t.moveTo(e,n),r.point=a}function a(e,r){t.lineTo(e,r)}function o(){r.point=n}function s(){t.closePath()}return r}function Mn(t){var e=.5,r=Math.cos(30*Lt),n=16;function i(t){return(n?o:a)(t)}function a(e){return En(e,(function(r,n){r=t(r,n),e.point(r[0],r[1])}))}function o(e){var r,i,a,o,l,c,u,f,h,p,d,g,m={point:v,lineStart:y,lineEnd:b,polygonStart:function(){e.polygonStart(),m.lineStart=_},polygonEnd:function(){e.polygonEnd(),m.lineStart=y}};function v(r,n){r=t(r,n),e.point(r[0],r[1])}function y(){f=NaN,m.point=x,e.lineStart()}function x(r,i){var a=Ir([r,i]),o=t(r,i);s(f,h,u,p,d,g,f=o[0],h=o[1],u=r,p=a[0],d=a[1],g=a[2],n,e),e.point(f,h)}function b(){m.point=v,e.lineEnd()}function _(){y(),m.point=w,m.lineEnd=T}function w(t,e){x(r=t,e),i=f,a=h,o=p,l=d,c=g,m.point=x}function T(){s(f,h,u,p,d,g,i,a,r,o,l,c,n,e),m.lineEnd=b,b()}return m}function s(n,i,a,o,l,c,u,f,h,p,d,g,m,v){var x=u-n,b=f-i,_=x*x+b*b;if(_&gt;4*e&amp;&amp;m--){var w=o+p,T=l+d,k=c+g,M=Math.sqrt(w*w+T*T+k*k),A=Math.asin(k/=M),S=y(y(k)-1)&lt;kt||y(a-h)&lt;kt?(a+h)/2:Math.atan2(T,w),E=t(S,A),C=E[0],L=E[1],I=C-n,P=L-i,z=b*I-x*P;(z*z/_&gt;e||y((x*I+b*P)/_-.5)&gt;.3||o*p+l*d+c*g&lt;r)&amp;&amp;(s(n,i,a,o,l,c,C,L,S,w/=M,T/=M,k,m,v),v.point(C,L),s(C,L,S,w,T,k,u,f,h,p,d,g,m,v))}}return i.precision=function(t){return arguments.length?(n=(e=t*t)&gt;0&amp;&amp;16,i):Math.sqrt(e)},i}function An(t){var e=Mn((function(e,r){return t([e*It,r*It])}));return function(t){return In(e(t))}}function Sn(t){this.stream=t}function En(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function Cn(t){return Ln((function(){return t}))()}function Ln(e){var r,n,i,a,o,s,l=Mn((function(t,e){return[(t=r(t,e))[0]*c+a,o-t[1]*c]})),c=150,u=480,f=250,h=0,p=0,d=0,g=0,m=0,v=tn,y=L,x=null,b=null;function _(t){return[(t=i(t[0]*Lt,t[1]*Lt))[0]*c+a,o-t[1]*c]}function w(t){return(t=i.invert((t[0]-a)/c,(o-t[1])/c))&amp;&amp;[t[0]*It,t[1]*It]}function T(){i=Gr(n=On(d,g,m),r);var t=r(h,p);return a=u-t[0]*c,o=f+t[1]*c,k()}function k(){return s&amp;&amp;(s.valid=!1,s=null),_}return _.stream=function(t){return s&amp;&amp;(s.valid=!1),(s=In(v(n,l(y(t))))).valid=!0,s},_.clipAngle=function(t){return arguments.length?(v=null==t?(x=t,tn):en((x=+t)*Lt),k()):x},_.clipExtent=function(t){return arguments.length?(b=t,y=t?nn(t[0][0],t[0][1],t[1][0],t[1][1]):L,k()):b},_.scale=function(t){return arguments.length?(c=+t,T()):c},_.translate=function(t){return arguments.length?(u=+t[0],f=+t[1],T()):[u,f]},_.center=function(t){return arguments.length?(h=t[0]%360*Lt,p=t[1]%360*Lt,T()):[h*It,p*It]},_.rotate=function(t){return arguments.length?(d=t[0]%360*Lt,g=t[1]%360*Lt,m=t.length&gt;2?t[2]%360*Lt:0,T()):[d*It,g*It,m*It]},t.rebind(_,l,&quot;precision&quot;),function(){return r=e.apply(this,arguments),_.invert=r.invert&amp;&amp;w,T()}}function In(t){return En(t,(function(e,r){t.point(e*Lt,r*Lt)}))}function Pn(t,e){return[t,e]}function zn(t,e){return[t&gt;At?t-St:t&lt;-At?t+St:t,e]}function On(t,e,r){return t?e||r?Gr(Rn(t),Fn(e,r)):Rn(t):e||r?Fn(e,r):zn}function Dn(t){return function(e,r){return[(e+=t)&gt;At?e-St:e&lt;-At?e+St:e,r]}}function Rn(t){var e=Dn(t);return e.invert=Dn(-t),e}function Fn(t,e){var r=Math.cos(t),n=Math.sin(t),i=Math.cos(e),a=Math.sin(e);function o(t,e){var o=Math.cos(e),s=Math.cos(t)*o,l=Math.sin(t)*o,c=Math.sin(e),u=c*r+s*n;return[Math.atan2(l*i-u*a,s*r-c*n),Dt(u*i+l*a)]}return o.invert=function(t,e){var o=Math.cos(e),s=Math.cos(t)*o,l=Math.sin(t)*o,c=Math.sin(e),u=c*i-l*a;return[Math.atan2(l*i+c*a,s*r+u*n),Dt(u*r-s*n)]},o}function Bn(t,e){var r=Math.cos(t),n=Math.sin(t);return function(i,a,o,s){var l=o*e;null!=i?(i=Nn(r,i),a=Nn(r,a),(o&gt;0?i&lt;a:i&gt;a)&amp;&amp;(i+=o*St)):(i=t+o*St,a=t-.5*l);for(var c,u=i;o&gt;0?u&gt;a:u&lt;a;u-=l)s.point((c=Fr([r,-n*Math.cos(u),-n*Math.sin(u)]))[0],c[1])}}function Nn(t,e){var r=Ir(e);r[0]-=t,Rr(r);var n=Ot(-r[1]);return((-r[2]&lt;0?-n:n)+2*Math.PI-kt)%(2*Math.PI)}function jn(e,r,n){var i=t.range(e,r-kt,n).concat(r);return function(t){return i.map((function(e){return[t,e]}))}}function Un(e,r,n){var i=t.range(e,r-kt,n).concat(r);return function(t){return i.map((function(e){return[e,t]}))}}function Vn(t){return t.source}function qn(t){return t.target}t.geo.path=function(){var e,r,n,i,a,o=4.5;function s(e){return e&amp;&amp;(&quot;function&quot;==typeof o&amp;&amp;i.pointRadius(+o.apply(this,arguments)),a&amp;&amp;a.valid||(a=n(i)),t.geo.stream(e,a)),i.result()}function l(){return a=null,s}return s.area=function(e){return sn=0,t.geo.stream(e,n(pn)),sn},s.centroid=function(e){return xr=br=_r=wr=Tr=kr=Mr=Ar=Sr=0,t.geo.stream(e,n(xn)),Sr?[Mr/Sr,Ar/Sr]:kr?[wr/kr,Tr/kr]:_r?[xr/_r,br/_r]:[NaN,NaN]},s.bounds=function(e){return fn=hn=-(cn=un=1/0),t.geo.stream(e,n(gn)),[[cn,un],[fn,hn]]},s.projection=function(t){return arguments.length?(n=(e=t)?t.stream||An(t):L,l()):e},s.context=function(t){return arguments.length?(i=null==(r=t)?new mn:new kn(t),&quot;function&quot;!=typeof o&amp;&amp;i.pointRadius(o),l()):r},s.pointRadius=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:(i.pointRadius(+t),+t),s):o},s.projection(t.geo.albersUsa()).context(null)},t.geo.transform=function(t){return{stream:function(e){var r=new Sn(e);for(var n in t)r[n]=t[n];return r}}},Sn.prototype={point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},t.geo.projection=Cn,t.geo.projectionMutator=Ln,(t.geo.equirectangular=function(){return Cn(Pn)}).raw=Pn.invert=Pn,t.geo.rotation=function(t){function e(e){return(e=t(e[0]*Lt,e[1]*Lt))[0]*=It,e[1]*=It,e}return t=On(t[0]%360*Lt,t[1]*Lt,t.length&gt;2?t[2]*Lt:0),e.invert=function(e){return(e=t.invert(e[0]*Lt,e[1]*Lt))[0]*=It,e[1]*=It,e},e},zn.invert=Pn,t.geo.circle=function(){var t,e,r=[0,0],n=6;function i(){var t=&quot;function&quot;==typeof r?r.apply(this,arguments):r,n=On(-t[0]*Lt,-t[1]*Lt,0).invert,i=[];return e(null,null,1,{point:function(t,e){i.push(t=n(t,e)),t[0]*=It,t[1]*=It}}),{type:&quot;Polygon&quot;,coordinates:[i]}}return i.origin=function(t){return arguments.length?(r=t,i):r},i.angle=function(r){return arguments.length?(e=Bn((t=+r)*Lt,n*Lt),i):t},i.precision=function(r){return arguments.length?(e=Bn(t*Lt,(n=+r)*Lt),i):n},i.angle(90)},t.geo.distance=function(t,e){var r,n=(e[0]-t[0])*Lt,i=t[1]*Lt,a=e[1]*Lt,o=Math.sin(n),s=Math.cos(n),l=Math.sin(i),c=Math.cos(i),u=Math.sin(a),f=Math.cos(a);return Math.atan2(Math.sqrt((r=f*o)*r+(r=c*u-l*f*s)*r),l*u+c*f*s)},t.geo.graticule=function(){var e,r,n,i,a,o,s,l,c,u,f,h,p=10,d=p,g=90,m=360,v=2.5;function x(){return{type:&quot;MultiLineString&quot;,coordinates:b()}}function b(){return t.range(Math.ceil(i/g)*g,n,g).map(f).concat(t.range(Math.ceil(l/m)*m,s,m).map(h)).concat(t.range(Math.ceil(r/p)*p,e,p).filter((function(t){return y(t%g)&gt;kt})).map(c)).concat(t.range(Math.ceil(o/d)*d,a,d).filter((function(t){return y(t%m)&gt;kt})).map(u))}return x.lines=function(){return b().map((function(t){return{type:&quot;LineString&quot;,coordinates:t}}))},x.outline=function(){return{type:&quot;Polygon&quot;,coordinates:[f(i).concat(h(s).slice(1),f(n).reverse().slice(1),h(l).reverse().slice(1))]}},x.extent=function(t){return arguments.length?x.majorExtent(t).minorExtent(t):x.minorExtent()},x.majorExtent=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],l=+t[0][1],s=+t[1][1],i&gt;n&amp;&amp;(t=i,i=n,n=t),l&gt;s&amp;&amp;(t=l,l=s,s=t),x.precision(v)):[[i,l],[n,s]]},x.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],o=+t[0][1],a=+t[1][1],r&gt;e&amp;&amp;(t=r,r=e,e=t),o&gt;a&amp;&amp;(t=o,o=a,a=t),x.precision(v)):[[r,o],[e,a]]},x.step=function(t){return arguments.length?x.majorStep(t).minorStep(t):x.minorStep()},x.majorStep=function(t){return arguments.length?(g=+t[0],m=+t[1],x):[g,m]},x.minorStep=function(t){return arguments.length?(p=+t[0],d=+t[1],x):[p,d]},x.precision=function(t){return arguments.length?(v=+t,c=jn(o,a,90),u=Un(r,e,v),f=jn(l,s,90),h=Un(i,n,v),x):v},x.majorExtent([[-180,-90+kt],[180,90-kt]]).minorExtent([[-180,-80-kt],[180,80+kt]])},t.geo.greatArc=function(){var e,r,n=Vn,i=qn;function a(){return{type:&quot;LineString&quot;,coordinates:[e||n.apply(this,arguments),r||i.apply(this,arguments)]}}return a.distance=function(){return t.geo.distance(e||n.apply(this,arguments),r||i.apply(this,arguments))},a.source=function(t){return arguments.length?(n=t,e=&quot;function&quot;==typeof t?null:t,a):n},a.target=function(t){return arguments.length?(i=t,r=&quot;function&quot;==typeof t?null:t,a):i},a.precision=function(){return arguments.length?a:0},a},t.geo.interpolate=function(t,e){return r=t[0]*Lt,n=t[1]*Lt,i=e[0]*Lt,a=e[1]*Lt,o=Math.cos(n),s=Math.sin(n),l=Math.cos(a),c=Math.sin(a),u=o*Math.cos(r),f=o*Math.sin(r),h=l*Math.cos(i),p=l*Math.sin(i),d=2*Math.asin(Math.sqrt(Ft(a-n)+o*l*Ft(i-r))),g=1/Math.sin(d),(m=d?function(t){var e=Math.sin(t*=d)*g,r=Math.sin(d-t)*g,n=r*u+e*h,i=r*f+e*p,a=r*s+e*c;return[Math.atan2(i,n)*It,Math.atan2(a,Math.sqrt(n*n+i*i))*It]}:function(){return[r*It,n*It]}).distance=d,m;var r,n,i,a,o,s,l,c,u,f,h,p,d,g,m},t.geo.length=function(e){return yn=0,t.geo.stream(e,Hn),yn};var Hn={sphere:O,point:O,lineStart:function(){var t,e,r;function n(n,i){var a=Math.sin(i*=Lt),o=Math.cos(i),s=y((n*=Lt)-t),l=Math.cos(s);yn+=Math.atan2(Math.sqrt((s=o*Math.sin(s))*s+(s=r*a-e*o*l)*s),e*a+r*o*l),t=n,e=a,r=o}Hn.point=function(i,a){t=i*Lt,e=Math.sin(a*=Lt),r=Math.cos(a),Hn.point=n},Hn.lineEnd=function(){Hn.point=Hn.lineEnd=O}},lineEnd:O,polygonStart:O,polygonEnd:O};function Gn(t,e){function r(e,r){var n=Math.cos(e),i=Math.cos(r),a=t(n*i);return[a*i*Math.sin(e),a*Math.sin(r)]}return r.invert=function(t,r){var n=Math.sqrt(t*t+r*r),i=e(n),a=Math.sin(i),o=Math.cos(i);return[Math.atan2(t*a,n*o),Math.asin(n&amp;&amp;r*a/n)]},r}var Yn=Gn((function(t){return Math.sqrt(2/(1+t))}),(function(t){return 2*Math.asin(t/2)}));(t.geo.azimuthalEqualArea=function(){return Cn(Yn)}).raw=Yn;var Wn=Gn((function(t){var e=Math.acos(t);return e&amp;&amp;e/Math.sin(e)}),L);function Xn(t,e){var r=Math.cos(t),n=function(t){return Math.tan(At/4+t/2)},i=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(n(e)/n(t)),a=r*Math.pow(n(t),i)/i;if(!i)return Kn;function o(t,e){a&gt;0?e&lt;-Ct+kt&amp;&amp;(e=-Ct+kt):e&gt;Ct-kt&amp;&amp;(e=Ct-kt);var r=a/Math.pow(n(e),i);return[r*Math.sin(i*t),a-r*Math.cos(i*t)]}return o.invert=function(t,e){var r=a-e,n=Pt(i)*Math.sqrt(t*t+r*r);return[Math.atan2(t,r)/i,2*Math.atan(Math.pow(a/n,1/i))-Ct]},o}function Zn(t,e){var r=Math.cos(t),n=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),i=r/n+t;if(y(n)&lt;kt)return Pn;function a(t,e){var r=i-e;return[r*Math.sin(n*t),i-r*Math.cos(n*t)]}return a.invert=function(t,e){var r=i-e;return[Math.atan2(t,r)/n,i-Pt(n)*Math.sqrt(t*t+r*r)]},a}(t.geo.azimuthalEquidistant=function(){return Cn(Wn)}).raw=Wn,(t.geo.conicConformal=function(){return an(Xn)}).raw=Xn,(t.geo.conicEquidistant=function(){return an(Zn)}).raw=Zn;var Jn=Gn((function(t){return 1/t}),Math.atan);function Kn(t,e){return[t,Math.log(Math.tan(At/4+e/2))]}function Qn(t){var e,r=Cn(t),n=r.scale,i=r.translate,a=r.clipExtent;return r.scale=function(){var t=n.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.translate=function(){var t=i.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.clipExtent=function(t){var o=a.apply(r,arguments);if(o===r){if(e=null==t){var s=At*n(),l=i();a([[l[0]-s,l[1]-s],[l[0]+s,l[1]+s]])}}else e&amp;&amp;(o=null);return o},r.clipExtent(null)}(t.geo.gnomonic=function(){return Cn(Jn)}).raw=Jn,Kn.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Ct]},(t.geo.mercator=function(){return Qn(Kn)}).raw=Kn;var $n=Gn((function(){return 1}),Math.asin);(t.geo.orthographic=function(){return Cn($n)}).raw=$n;var ti=Gn((function(t){return 1/(1+t)}),(function(t){return 2*Math.atan(t)}));function ei(t,e){return[Math.log(Math.tan(At/4+e/2)),-t]}function ri(t){return t[0]}function ni(t){return t[1]}function ii(t){for(var e=t.length,r=[0,1],n=2,i=2;i&lt;e;i++){for(;n&gt;1&amp;&amp;zt(t[r[n-2]],t[r[n-1]],t[i])&lt;=0;)--n;r[n++]=i}return r.slice(0,n)}function ai(t,e){return t[0]-e[0]||t[1]-e[1]}(t.geo.stereographic=function(){return Cn(ti)}).raw=ti,ei.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Ct]},(t.geo.transverseMercator=function(){var t=Qn(ei),e=t.center,r=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return t?r([t[0],t[1],t.length&gt;2?t[2]+90:90]):[(t=r())[0],t[1],t[2]-90]},r([0,0,90])}).raw=ei,t.geom={},t.geom.hull=function(t){var e=ri,r=ni;if(arguments.length)return n(t);function n(t){if(t.length&lt;3)return[];var n,i=de(e),a=de(r),o=t.length,s=[],l=[];for(n=0;n&lt;o;n++)s.push([+i.call(this,t[n],n),+a.call(this,t[n],n),n]);for(s.sort(ai),n=0;n&lt;o;n++)l.push([s[n][0],-s[n][1]]);var c=ii(s),u=ii(l),f=u[0]===c[0],h=u[u.length-1]===c[c.length-1],p=[];for(n=c.length-1;n&gt;=0;--n)p.push(t[s[c[n]][2]]);for(n=+f;n&lt;u.length-h;++n)p.push(t[s[u[n]][2]]);return p}return n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n},t.geom.polygon=function(t){return U(t,oi),t};var oi=t.geom.polygon.prototype=[];function si(t,e,r){return(r[0]-e[0])*(t[1]-e[1])&lt;(r[1]-e[1])*(t[0]-e[0])}function li(t,e,r,n){var i=t[0],a=r[0],o=e[0]-i,s=n[0]-a,l=t[1],c=r[1],u=e[1]-l,f=n[1]-c,h=(s*(l-c)-f*(i-a))/(f*o-s*u);return[i+h*o,l+h*u]}function ci(t){var e=t[0],r=t[t.length-1];return!(e[0]-r[0]||e[1]-r[1])}oi.area=function(){for(var t,e=-1,r=this.length,n=this[r-1],i=0;++e&lt;r;)t=n,n=this[e],i+=t[1]*n[0]-t[0]*n[1];return.5*i},oi.centroid=function(t){var e,r,n=-1,i=this.length,a=0,o=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++n&lt;i;)e=s,s=this[n],r=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*r,o+=(e[1]+s[1])*r;return[a*t,o*t]},oi.clip=function(t){for(var e,r,n,i,a,o,s=ci(t),l=-1,c=this.length-ci(this),u=this[c-1];++l&lt;c;){for(e=t.slice(),t.length=0,i=this[l],a=e[(n=e.length-s)-1],r=-1;++r&lt;n;)si(o=e[r],u,i)?(si(a,u,i)||t.push(li(a,o,u,i)),t.push(o)):si(a,u,i)&amp;&amp;t.push(li(a,o,u,i)),a=o;s&amp;&amp;t.push(t[0]),u=i}return t};var ui,fi,hi,pi,di,gi=[],mi=[];function vi(){Ri(this),this.edge=this.site=this.circle=null}function yi(t){var e=gi.pop()||new vi;return e.site=t,e}function xi(t){Ei(t),hi.remove(t),gi.push(t),Ri(t)}function bi(t){var e=t.circle,r=e.x,n=e.cy,i={x:r,y:n},a=t.P,o=t.N,s=[t];xi(t);for(var l=a;l.circle&amp;&amp;y(r-l.circle.x)&lt;kt&amp;&amp;y(n-l.circle.cy)&lt;kt;)a=l.P,s.unshift(l),xi(l),l=a;s.unshift(l),Ei(l);for(var c=o;c.circle&amp;&amp;y(r-c.circle.x)&lt;kt&amp;&amp;y(n-c.circle.cy)&lt;kt;)o=c.N,s.push(c),xi(c),c=o;s.push(c),Ei(c);var u,f=s.length;for(u=1;u&lt;f;++u)c=s[u],l=s[u-1],zi(c.edge,l.site,c.site,i);l=s[0],(c=s[f-1]).edge=Ii(l.site,c.site,null,i),Si(l),Si(c)}function _i(t){for(var e,r,n,i,a=t.x,o=t.y,s=hi._;s;)if((n=wi(s,o)-a)&gt;kt)s=s.L;else{if(!((i=a-Ti(s,o))&gt;kt)){n&gt;-kt?(e=s.P,r=s):i&gt;-kt?(e=s,r=s.N):e=r=s;break}if(!s.R){e=s;break}s=s.R}var l=yi(t);if(hi.insert(e,l),e||r){if(e===r)return Ei(e),r=yi(e.site),hi.insert(l,r),l.edge=r.edge=Ii(e.site,l.site),Si(e),void Si(r);if(r){Ei(e),Ei(r);var c=e.site,u=c.x,f=c.y,h=t.x-u,p=t.y-f,d=r.site,g=d.x-u,m=d.y-f,v=2*(h*m-p*g),y=h*h+p*p,x=g*g+m*m,b={x:(m*y-p*x)/v+u,y:(h*x-g*y)/v+f};zi(r.edge,c,d,b),l.edge=Ii(c,t,null,b),r.edge=Ii(t,d,null,b),Si(e),Si(r)}else l.edge=Ii(e.site,l.site)}}function wi(t,e){var r=t.site,n=r.x,i=r.y,a=i-e;if(!a)return n;var o=t.P;if(!o)return-1/0;var s=(r=o.site).x,l=r.y,c=l-e;if(!c)return s;var u=s-n,f=1/a-1/c,h=u/c;return f?(-h+Math.sqrt(h*h-2*f*(u*u/(-2*c)-l+c/2+i-a/2)))/f+n:(n+s)/2}function Ti(t,e){var r=t.N;if(r)return wi(r,e);var n=t.site;return n.y===e?n.x:1/0}function ki(t){this.site=t,this.edges=[]}function Mi(t,e){return e.angle-t.angle}function Ai(){Ri(this),this.x=this.y=this.arc=this.site=this.cy=null}function Si(t){var e=t.P,r=t.N;if(e&amp;&amp;r){var n=e.site,i=t.site,a=r.site;if(n!==a){var o=i.x,s=i.y,l=n.x-o,c=n.y-s,u=a.x-o,f=2*(l*(m=a.y-s)-c*u);if(!(f&gt;=-Mt)){var h=l*l+c*c,p=u*u+m*m,d=(m*h-c*p)/f,g=(l*p-u*h)/f,m=g+s,v=mi.pop()||new Ai;v.arc=t,v.site=i,v.x=d+o,v.y=m+Math.sqrt(d*d+g*g),v.cy=m,t.circle=v;for(var y=null,x=di._;x;)if(v.y&lt;x.y||v.y===x.y&amp;&amp;v.x&lt;=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}di.insert(y,v),y||(pi=v)}}}}function Ei(t){var e=t.circle;e&amp;&amp;(e.P||(pi=e.N),di.remove(e),mi.push(e),Ri(e),t.circle=null)}function Ci(t,e){var r=t.b;if(r)return!0;var n,i,a=t.a,o=e[0][0],s=e[1][0],l=e[0][1],c=e[1][1],u=t.l,f=t.r,h=u.x,p=u.y,d=f.x,g=f.y,m=(h+d)/2,v=(p+g)/2;if(g===p){if(m&lt;o||m&gt;=s)return;if(h&gt;d){if(a){if(a.y&gt;=c)return}else a={x:m,y:l};r={x:m,y:c}}else{if(a){if(a.y&lt;l)return}else a={x:m,y:c};r={x:m,y:l}}}else if(i=v-(n=(h-d)/(g-p))*m,n&lt;-1||n&gt;1)if(h&gt;d){if(a){if(a.y&gt;=c)return}else a={x:(l-i)/n,y:l};r={x:(c-i)/n,y:c}}else{if(a){if(a.y&lt;l)return}else a={x:(c-i)/n,y:c};r={x:(l-i)/n,y:l}}else if(p&lt;g){if(a){if(a.x&gt;=s)return}else a={x:o,y:n*o+i};r={x:s,y:n*s+i}}else{if(a){if(a.x&lt;o)return}else a={x:s,y:n*s+i};r={x:o,y:n*o+i}}return t.a=a,t.b=r,!0}function Li(t,e){this.l=t,this.r=e,this.a=this.b=null}function Ii(t,e,r,n){var i=new Li(t,e);return ui.push(i),r&amp;&amp;zi(i,t,e,r),n&amp;&amp;zi(i,e,t,n),fi[t.i].edges.push(new Oi(i,t,e)),fi[e.i].edges.push(new Oi(i,e,t)),i}function Pi(t,e,r){var n=new Li(t,null);return n.a=e,n.b=r,ui.push(n),n}function zi(t,e,r,n){t.a||t.b?t.l===r?t.b=n:t.a=n:(t.a=n,t.l=e,t.r=r)}function Oi(t,e,r){var n=t.a,i=t.b;this.edge=t,this.site=e,this.angle=r?Math.atan2(r.y-e.y,r.x-e.x):t.l===e?Math.atan2(i.x-n.x,n.y-i.y):Math.atan2(n.x-i.x,i.y-n.y)}function Di(){this._=null}function Ri(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Fi(t,e){var r=e,n=e.R,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.R=n.L,r.R&amp;&amp;(r.R.U=r),n.L=r}function Bi(t,e){var r=e,n=e.L,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.L=n.R,r.L&amp;&amp;(r.L.U=r),n.R=r}function Ni(t){for(;t.L;)t=t.L;return t}function ji(t,e){var r,n,i,a=t.sort(Ui).pop();for(ui=[],fi=new Array(t.length),hi=new Di,di=new Di;;)if(i=pi,a&amp;&amp;(!i||a.y&lt;i.y||a.y===i.y&amp;&amp;a.x&lt;i.x))a.x===r&amp;&amp;a.y===n||(fi[a.i]=new ki(a),_i(a),r=a.x,n=a.y),a=t.pop();else{if(!i)break;bi(i.arc)}e&amp;&amp;(function(t){for(var e,r=ui,n=rn(t[0][0],t[0][1],t[1][0],t[1][1]),i=r.length;i--;)(!Ci(e=r[i],t)||!n(e)||y(e.a.x-e.b.x)&lt;kt&amp;&amp;y(e.a.y-e.b.y)&lt;kt)&amp;&amp;(e.a=e.b=null,r.splice(i,1))}(e),function(t){for(var e,r,n,i,a,o,s,l,c,u,f=t[0][0],h=t[1][0],p=t[0][1],d=t[1][1],g=fi,m=g.length;m--;)if((a=g[m])&amp;&amp;a.prepare())for(l=(s=a.edges).length,o=0;o&lt;l;)n=(u=s[o].end()).x,i=u.y,e=(c=s[++o%l].start()).x,r=c.y,(y(n-e)&gt;kt||y(i-r)&gt;kt)&amp;&amp;(s.splice(o,0,new Oi(Pi(a.site,u,y(n-f)&lt;kt&amp;&amp;d-i&gt;kt?{x:f,y:y(e-f)&lt;kt?r:d}:y(i-d)&lt;kt&amp;&amp;h-n&gt;kt?{x:y(r-d)&lt;kt?e:h,y:d}:y(n-h)&lt;kt&amp;&amp;i-p&gt;kt?{x:h,y:y(e-h)&lt;kt?r:p}:y(i-p)&lt;kt&amp;&amp;n-f&gt;kt?{x:y(r-p)&lt;kt?e:f,y:p}:null),a.site,null)),++l)}(e));var o={cells:fi,edges:ui};return hi=di=ui=fi=null,o}function Ui(t,e){return e.y-t.y||e.x-t.x}ki.prototype.prepare=function(){for(var t,e=this.edges,r=e.length;r--;)(t=e[r].edge).b&amp;&amp;t.a||e.splice(r,1);return e.sort(Mi),e.length},Oi.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Di.prototype={insert:function(t,e){var r,n,i;if(t){if(e.P=t,e.N=t.N,t.N&amp;&amp;(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;r=t}else this._?(t=Ni(this._),e.P=null,e.N=t,t.P=t.L=e,r=t):(e.P=e.N=null,this._=e,r=null);for(e.L=e.R=null,e.U=r,e.C=!0,t=e;r&amp;&amp;r.C;)r===(n=r.U).L?(i=n.R)&amp;&amp;i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.R&amp;&amp;(Fi(this,r),r=(t=r).U),r.C=!1,n.C=!0,Bi(this,n)):(i=n.L)&amp;&amp;i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.L&amp;&amp;(Bi(this,r),r=(t=r).U),r.C=!1,n.C=!0,Fi(this,n)),r=t.U;this._.C=!1},remove:function(t){t.N&amp;&amp;(t.N.P=t.P),t.P&amp;&amp;(t.P.N=t.N),t.N=t.P=null;var e,r,n,i=t.U,a=t.L,o=t.R;if(r=a?o?Ni(o):a:o,i?i.L===t?i.L=r:i.R=r:this._=r,a&amp;&amp;o?(n=r.C,r.C=t.C,r.L=a,a.U=r,r!==o?(i=r.U,r.U=t.U,t=r.R,i.L=t,r.R=o,o.U=r):(r.U=i,i=r,t=r.R)):(n=t.C,t=r),t&amp;&amp;(t.U=i),!n)if(t&amp;&amp;t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&amp;&amp;(e.C=!1,i.C=!0,Fi(this,i),e=i.R),e.L&amp;&amp;e.L.C||e.R&amp;&amp;e.R.C){e.R&amp;&amp;e.R.C||(e.L.C=!1,e.C=!0,Bi(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,Fi(this,i),t=this._;break}}else if((e=i.L).C&amp;&amp;(e.C=!1,i.C=!0,Bi(this,i),e=i.L),e.L&amp;&amp;e.L.C||e.R&amp;&amp;e.R.C){e.L&amp;&amp;e.L.C||(e.R.C=!1,e.C=!0,Fi(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,Bi(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&amp;&amp;(t.C=!1)}}},t.geom.voronoi=function(t){var e=ri,r=ni,n=e,i=r,a=Vi;if(t)return o(t);function o(t){var e=new Array(t.length),r=a[0][0],n=a[0][1],i=a[1][0],o=a[1][1];return ji(s(t),a).cells.forEach((function(a,s){var l=a.edges,c=a.site;(e[s]=l.length?l.map((function(t){var e=t.start();return[e.x,e.y]})):c.x&gt;=r&amp;&amp;c.x&lt;=i&amp;&amp;c.y&gt;=n&amp;&amp;c.y&lt;=o?[[r,o],[i,o],[i,n],[r,n]]:[]).point=t[s]})),e}function s(t){return t.map((function(t,e){return{x:Math.round(n(t,e)/kt)*kt,y:Math.round(i(t,e)/kt)*kt,i:e}}))}return o.links=function(t){return ji(s(t)).edges.filter((function(t){return t.l&amp;&amp;t.r})).map((function(e){return{source:t[e.l.i],target:t[e.r.i]}}))},o.triangles=function(t){var e=[];return ji(s(t)).cells.forEach((function(r,n){for(var i,a,o,s,l=r.site,c=r.edges.sort(Mi),u=-1,f=c.length,h=c[f-1].edge,p=h.l===l?h.r:h.l;++u&lt;f;)h,i=p,p=(h=c[u].edge).l===l?h.r:h.l,n&lt;i.i&amp;&amp;n&lt;p.i&amp;&amp;(o=i,s=p,((a=l).x-s.x)*(o.y-a.y)-(a.x-o.x)*(s.y-a.y)&lt;0)&amp;&amp;e.push([t[n],t[i.i],t[p.i]])})),e},o.x=function(t){return arguments.length?(n=de(e=t),o):e},o.y=function(t){return arguments.length?(i=de(r=t),o):r},o.clipExtent=function(t){return arguments.length?(a=null==t?Vi:t,o):a===Vi?null:a},o.size=function(t){return arguments.length?o.clipExtent(t&amp;&amp;[[0,0],t]):a===Vi?null:a&amp;&amp;a[1]},o};var Vi=[[-1e6,-1e6],[1e6,1e6]];function qi(t){return t.x}function Hi(t){return t.y}function Gi(t,e,r,n,i,a){if(!t(e,r,n,i,a)){var o=.5*(r+i),s=.5*(n+a),l=e.nodes;l[0]&amp;&amp;Gi(t,l[0],r,n,o,s),l[1]&amp;&amp;Gi(t,l[1],o,n,i,s),l[2]&amp;&amp;Gi(t,l[2],r,s,o,a),l[3]&amp;&amp;Gi(t,l[3],o,s,i,a)}}function Yi(t,e,r,n,i,a,o){var s,l=1/0;return function t(c,u,f,h,p){if(!(u&gt;a||f&gt;o||h&lt;n||p&lt;i)){if(d=c.point){var d,g=e-c.x,m=r-c.y,v=g*g+m*m;if(v&lt;l){var y=Math.sqrt(l=v);n=e-y,i=r-y,a=e+y,o=r+y,s=d}}for(var x=c.nodes,b=.5*(u+h),_=.5*(f+p),w=(r&gt;=_)&lt;&lt;1|e&gt;=b,T=w+4;w&lt;T;++w)if(c=x[3&amp;w])switch(3&amp;w){case 0:t(c,u,f,b,_);break;case 1:t(c,b,f,h,_);break;case 2:t(c,u,_,b,p);break;case 3:t(c,b,_,h,p)}}}(t,n,i,a,o),s}function Wi(e,r){e=t.rgb(e),r=t.rgb(r);var n=e.r,i=e.g,a=e.b,o=r.r-n,s=r.g-i,l=r.b-a;return function(t){return&quot;#&quot;+se(Math.round(n+o*t))+se(Math.round(i+s*t))+se(Math.round(a+l*t))}}function Xi(t,e){var r,n={},i={};for(r in t)r in e?n[r]=$i(t[r],e[r]):i[r]=t[r];for(r in e)r in t||(i[r]=e[r]);return function(t){for(r in n)i[r]=n[r](t);return i}}function Zi(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Ji(t,e){var r,n,i,a=Ki.lastIndex=Qi.lastIndex=0,o=-1,s=[],l=[];for(t+=&quot;&quot;,e+=&quot;&quot;;(r=Ki.exec(t))&amp;&amp;(n=Qi.exec(e));)(i=n.index)&gt;a&amp;&amp;(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:Zi(r,n)})),a=Qi.lastIndex;return a&lt;e.length&amp;&amp;(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length&lt;2?l[0]?(e=l[0].x,function(t){return e(t)+&quot;&quot;}):function(){return e}:(e=l.length,function(t){for(var r,n=0;n&lt;e;++n)s[(r=l[n]).i]=r.x(t);return s.join(&quot;&quot;)})}t.geom.delaunay=function(e){return t.geom.voronoi().triangles(e)},t.geom.quadtree=function(t,e,r,n,i){var a,o=ri,s=ni;if(a=arguments.length)return o=qi,s=Hi,3===a&amp;&amp;(i=r,n=e,r=e=0),l(t);function l(t){var l,c,u,f,h,p,d,g,m,v=de(o),x=de(s);if(null!=e)p=e,d=r,g=n,m=i;else if(g=m=-(p=d=1/0),c=[],u=[],h=t.length,a)for(f=0;f&lt;h;++f)(l=t[f]).x&lt;p&amp;&amp;(p=l.x),l.y&lt;d&amp;&amp;(d=l.y),l.x&gt;g&amp;&amp;(g=l.x),l.y&gt;m&amp;&amp;(m=l.y),c.push(l.x),u.push(l.y);else for(f=0;f&lt;h;++f){var b=+v(l=t[f],f),_=+x(l,f);b&lt;p&amp;&amp;(p=b),_&lt;d&amp;&amp;(d=_),b&gt;g&amp;&amp;(g=b),_&gt;m&amp;&amp;(m=_),c.push(b),u.push(_)}var w=g-p,T=m-d;function k(t,e,r,n,i,a,o,s){if(!isNaN(r)&amp;&amp;!isNaN(n))if(t.leaf){var l=t.x,c=t.y;if(null!=l)if(y(l-r)+y(c-n)&lt;.01)M(t,e,r,n,i,a,o,s);else{var u=t.point;t.x=t.y=t.point=null,M(t,u,l,c,i,a,o,s),M(t,e,r,n,i,a,o,s)}else t.x=r,t.y=n,t.point=e}else M(t,e,r,n,i,a,o,s)}function M(t,e,r,n,i,a,o,s){var l=.5*(i+o),c=.5*(a+s),u=r&gt;=l,f=n&gt;=c,h=f&lt;&lt;1|u;t.leaf=!1,u?i=l:o=l,f?a=c:s=c,k(t=t.nodes[h]||(t.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null}),e,r,n,i,a,o,s)}w&gt;T?m=d+w:g=p+T;var A={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){k(A,t,+v(t,++f),+x(t,f),p,d,g,m)},visit:function(t){Gi(t,A,p,d,g,m)},find:function(t){return Yi(A,t[0],t[1],p,d,g,m)}};if(f=-1,null==e){for(;++f&lt;h;)k(A,t[f],c[f],u[f],p,d,g,m);--f}else t.forEach(A.add);return c=u=t=l=null,A}return l.x=function(t){return arguments.length?(o=t,l):o},l.y=function(t){return arguments.length?(s=t,l):s},l.extent=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=+t[0][0],r=+t[0][1],n=+t[1][0],i=+t[1][1]),l):null==e?null:[[e,r],[n,i]]},l.size=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=r=0,n=+t[0],i=+t[1]),l):null==e?null:[n-e,i-r]},l},t.interpolateRgb=Wi,t.interpolateObject=Xi,t.interpolateNumber=Zi,t.interpolateString=Ji;var Ki=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qi=new RegExp(Ki.source,&quot;g&quot;);function $i(e,r){for(var n,i=t.interpolators.length;--i&gt;=0&amp;&amp;!(n=t.interpolators[i](e,r)););return n}function ta(t,e){var r,n=[],i=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(r=0;r&lt;s;++r)n.push($i(t[r],e[r]));for(;r&lt;a;++r)i[r]=t[r];for(;r&lt;o;++r)i[r]=e[r];return function(t){for(r=0;r&lt;s;++r)i[r]=n[r](t);return i}}t.interpolate=$i,t.interpolators=[function(t,e){var r=typeof e;return(&quot;string&quot;===r?pe.has(e.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(e)?Wi:Ji:e instanceof Vt?Wi:Array.isArray(e)?ta:&quot;object&quot;===r&amp;&amp;isNaN(e)?Xi:Zi)(t,e)}],t.interpolateArray=ta;var ea=function(){return L},ra=t.map({linear:ea,poly:function(t){return function(e){return Math.pow(e,t)}},quad:function(){return sa},cubic:function(){return la},sin:function(){return ua},exp:function(){return fa},circle:function(){return ha},elastic:function(t,e){var r;arguments.length&lt;2&amp;&amp;(e=.45);arguments.length?r=e/St*Math.asin(1/t):(t=1,r=e/4);return function(n){return 1+t*Math.pow(2,-10*n)*Math.sin((n-r)*St/e)}},back:function(t){t||(t=1.70158);return function(e){return e*e*((t+1)*e-t)}},bounce:function(){return pa}}),na=t.map({in:L,out:aa,&quot;in-out&quot;:oa,&quot;out-in&quot;:function(t){return oa(aa(t))}});function ia(t){return function(e){return e&lt;=0?0:e&gt;=1?1:t(e)}}function aa(t){return function(e){return 1-t(1-e)}}function oa(t){return function(e){return.5*(e&lt;.5?t(2*e):2-t(2-2*e))}}function sa(t){return t*t}function la(t){return t*t*t}function ca(t){if(t&lt;=0)return 0;if(t&gt;=1)return 1;var e=t*t,r=e*t;return 4*(t&lt;.5?r:3*(t-e)+r-.75)}function ua(t){return 1-Math.cos(t*Ct)}function fa(t){return Math.pow(2,10*(t-1))}function ha(t){return 1-Math.sqrt(1-t*t)}function pa(t){return t&lt;1/2.75?7.5625*t*t:t&lt;2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t&lt;2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function da(t,e){return e-=t,function(r){return Math.round(t+e*r)}}function ga(t){var e,r,n,i=[t.a,t.b],a=[t.c,t.d],o=va(i),s=ma(i,a),l=va(((e=a)[0]+=(n=-s)*(r=i)[0],e[1]+=n*r[1],e))||0;i[0]*a[1]&lt;a[0]*i[1]&amp;&amp;(i[0]*=-1,i[1]*=-1,o*=-1,s*=-1),this.rotate=(o?Math.atan2(i[1],i[0]):Math.atan2(-a[0],a[1]))*It,this.translate=[t.e,t.f],this.scale=[o,l],this.skew=l?Math.atan2(s,l)*It:0}function ma(t,e){return t[0]*e[0]+t[1]*e[1]}function va(t){var e=Math.sqrt(ma(t,t));return e&amp;&amp;(t[0]/=e,t[1]/=e),e}t.ease=function(t){var e=t.indexOf(&quot;-&quot;),n=e&gt;=0?t.slice(0,e):t,i=e&gt;=0?t.slice(e+1):&quot;in&quot;;return n=ra.get(n)||ea,ia((i=na.get(i)||L)(n.apply(null,r.call(arguments,1))))},t.interpolateHcl=function(e,r){e=t.hcl(e),r=t.hcl(r);var n=e.h,i=e.c,a=e.l,o=r.h-n,s=r.c-i,l=r.l-a;isNaN(s)&amp;&amp;(s=0,i=isNaN(i)?r.c:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o&gt;180?o-=360:o&lt;-180&amp;&amp;(o+=360);return function(t){return Xt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateHsl=function(e,r){e=t.hsl(e),r=t.hsl(r);var n=e.h,i=e.s,a=e.l,o=r.h-n,s=r.s-i,l=r.l-a;isNaN(s)&amp;&amp;(s=0,i=isNaN(i)?r.s:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o&gt;180?o-=360:o&lt;-180&amp;&amp;(o+=360);return function(t){return Gt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateLab=function(e,r){e=t.lab(e),r=t.lab(r);var n=e.l,i=e.a,a=e.b,o=r.l-n,s=r.a-i,l=r.b-a;return function(t){return Qt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateRound=da,t.transform=function(e){var r=i.createElementNS(t.ns.prefix.svg,&quot;g&quot;);return(t.transform=function(t){if(null!=t){r.setAttribute(&quot;transform&quot;,t);var e=r.transform.baseVal.consolidate()}return new ga(e?e.matrix:ya)})(e)},ga.prototype.toString=function(){return&quot;translate(&quot;+this.translate+&quot;)rotate(&quot;+this.rotate+&quot;)skewX(&quot;+this.skew+&quot;)scale(&quot;+this.scale+&quot;)&quot;};var ya={a:1,b:0,c:0,d:1,e:0,f:0};function xa(t){return t.length?t.pop()+&quot;,&quot;:&quot;&quot;}function ba(e,r){var n=[],i=[];return e=t.transform(e),r=t.transform(r),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(&quot;translate(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);n.push({i:i-4,x:Zi(t[0],e[0])},{i:i-2,x:Zi(t[1],e[1])})}else(e[0]||e[1])&amp;&amp;r.push(&quot;translate(&quot;+e+&quot;)&quot;)}(e.translate,r.translate,n,i),function(t,e,r,n){t!==e?(t-e&gt;180?e+=360:e-t&gt;180&amp;&amp;(t+=360),n.push({i:r.push(xa(r)+&quot;rotate(&quot;,null,&quot;)&quot;)-2,x:Zi(t,e)})):e&amp;&amp;r.push(xa(r)+&quot;rotate(&quot;+e+&quot;)&quot;)}(e.rotate,r.rotate,n,i),function(t,e,r,n){t!==e?n.push({i:r.push(xa(r)+&quot;skewX(&quot;,null,&quot;)&quot;)-2,x:Zi(t,e)}):e&amp;&amp;r.push(xa(r)+&quot;skewX(&quot;+e+&quot;)&quot;)}(e.skew,r.skew,n,i),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(xa(r)+&quot;scale(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);n.push({i:i-4,x:Zi(t[0],e[0])},{i:i-2,x:Zi(t[1],e[1])})}else 1===e[0]&amp;&amp;1===e[1]||r.push(xa(r)+&quot;scale(&quot;+e+&quot;)&quot;)}(e.scale,r.scale,n,i),e=r=null,function(t){for(var e,r=-1,a=i.length;++r&lt;a;)n[(e=i[r]).i]=e.x(t);return n.join(&quot;&quot;)}}function _a(t,e){return e=(e-=t=+t)||1/e,function(r){return(r-t)/e}}function wa(t,e){return e=(e-=t=+t)||1/e,function(r){return Math.max(0,Math.min(1,(r-t)/e))}}function Ta(t){for(var e=t.source,r=t.target,n=function(t,e){if(t===e)return t;var r=ka(t),n=ka(e),i=r.pop(),a=n.pop(),o=null;for(;i===a;)o=i,i=r.pop(),a=n.pop();return o}(e,r),i=[e];e!==n;)e=e.parent,i.push(e);for(var a=i.length;r!==n;)i.splice(a,0,r),r=r.parent;return i}function ka(t){for(var e=[],r=t.parent;null!=r;)e.push(t),t=r,r=r.parent;return e.push(t),e}function Ma(t){t.fixed|=2}function Aa(t){t.fixed&amp;=-7}function Sa(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Ea(t){t.fixed&amp;=-5}t.interpolateTransform=ba,t.layout={},t.layout.bundle=function(){return function(t){for(var e=[],r=-1,n=t.length;++r&lt;n;)e.push(Ta(t[r]));return e}},t.layout.chord=function(){var e,r,n,i,a,o,s,l={},c=0;function u(){var l,u,h,p,d,g={},m=[],v=t.range(i),y=[];for(e=[],r=[],l=0,p=-1;++p&lt;i;){for(u=0,d=-1;++d&lt;i;)u+=n[p][d];m.push(u),y.push(t.range(i)),l+=u}for(a&amp;&amp;v.sort((function(t,e){return a(m[t],m[e])})),o&amp;&amp;y.forEach((function(t,e){t.sort((function(t,r){return o(n[e][t],n[e][r])}))})),l=(St-c*i)/l,u=0,p=-1;++p&lt;i;){for(h=u,d=-1;++d&lt;i;){var x=v[p],b=y[x][d],_=n[x][b],w=u,T=u+=_*l;g[x+&quot;-&quot;+b]={index:x,subindex:b,startAngle:w,endAngle:T,value:_}}r[x]={index:x,startAngle:h,endAngle:u,value:m[x]},u+=c}for(p=-1;++p&lt;i;)for(d=p-1;++d&lt;i;){var k=g[p+&quot;-&quot;+d],M=g[d+&quot;-&quot;+p];(k.value||M.value)&amp;&amp;e.push(k.value&lt;M.value?{source:M,target:k}:{source:k,target:M})}s&amp;&amp;f()}function f(){e.sort((function(t,e){return s((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)}))}return l.matrix=function(t){return arguments.length?(i=(n=t)&amp;&amp;n.length,e=r=null,l):n},l.padding=function(t){return arguments.length?(c=t,e=r=null,l):c},l.sortGroups=function(t){return arguments.length?(a=t,e=r=null,l):a},l.sortSubgroups=function(t){return arguments.length?(o=t,e=null,l):o},l.sortChords=function(t){return arguments.length?(s=t,e&amp;&amp;f(),l):s},l.chords=function(){return e||u(),e},l.groups=function(){return r||u(),r},l},t.layout.force=function(){var e,r,n,i,a,o,s={},l=t.dispatch(&quot;start&quot;,&quot;tick&quot;,&quot;end&quot;),c=[1,1],u=.9,f=Ca,h=La,p=-30,d=Ia,g=.1,m=.64,v=[],y=[];function x(t){return function(e,r,n,i){if(e.point!==t){var a=e.cx-t.x,o=e.cy-t.y,s=i-r,l=a*a+o*o;if(s*s/m&lt;l){if(l&lt;d){var c=e.charge/l;t.px-=a*c,t.py-=o*c}return!0}if(e.point&amp;&amp;l&amp;&amp;l&lt;d){c=e.pointCharge/l;t.px-=a*c,t.py-=o*c}}return!e.charge}}function b(e){e.px=t.event.x,e.py=t.event.y,s.resume()}return s.tick=function(){if((n*=.99)&lt;.005)return e=null,l.end({type:&quot;end&quot;,alpha:n=0}),!0;var r,s,f,h,d,m,b,_,w,T=v.length,k=y.length;for(s=0;s&lt;k;++s)h=(f=y[s]).source,(m=(_=(d=f.target).x-h.x)*_+(w=d.y-h.y)*w)&amp;&amp;(_*=m=n*a[s]*((m=Math.sqrt(m))-i[s])/m,w*=m,d.x-=_*(b=h.weight+d.weight?h.weight/(h.weight+d.weight):.5),d.y-=w*b,h.x+=_*(b=1-b),h.y+=w*b);if((b=n*g)&amp;&amp;(_=c[0]/2,w=c[1]/2,s=-1,b))for(;++s&lt;T;)(f=v[s]).x+=(_-f.x)*b,f.y+=(w-f.y)*b;if(p)for(!function t(e,r,n){var i=0,a=0;if(e.charge=0,!e.leaf)for(var o,s=e.nodes,l=s.length,c=-1;++c&lt;l;)null!=(o=s[c])&amp;&amp;(t(o,r,n),e.charge+=o.charge,i+=o.charge*o.cx,a+=o.charge*o.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var u=r*n[e.point.index];e.charge+=e.pointCharge=u,i+=u*e.point.x,a+=u*e.point.y}e.cx=i/e.charge,e.cy=a/e.charge}(r=t.geom.quadtree(v),n,o),s=-1;++s&lt;T;)(f=v[s]).fixed||r.visit(x(f));for(s=-1;++s&lt;T;)(f=v[s]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*u,f.y-=(f.py-(f.py=f.y))*u);l.tick({type:&quot;tick&quot;,alpha:n})},s.nodes=function(t){return arguments.length?(v=t,s):v},s.links=function(t){return arguments.length?(y=t,s):y},s.size=function(t){return arguments.length?(c=t,s):c},s.linkDistance=function(t){return arguments.length?(f=&quot;function&quot;==typeof t?t:+t,s):f},s.distance=s.linkDistance,s.linkStrength=function(t){return arguments.length?(h=&quot;function&quot;==typeof t?t:+t,s):h},s.friction=function(t){return arguments.length?(u=+t,s):u},s.charge=function(t){return arguments.length?(p=&quot;function&quot;==typeof t?t:+t,s):p},s.chargeDistance=function(t){return arguments.length?(d=t*t,s):Math.sqrt(d)},s.gravity=function(t){return arguments.length?(g=+t,s):g},s.theta=function(t){return arguments.length?(m=t*t,s):Math.sqrt(m)},s.alpha=function(t){return arguments.length?(t=+t,n?t&gt;0?n=t:(e.c=null,e.t=NaN,e=null,l.end({type:&quot;end&quot;,alpha:n=0})):t&gt;0&amp;&amp;(l.start({type:&quot;start&quot;,alpha:n=t}),e=we(s.tick)),s):n},s.start=function(){var t,e,r,n=v.length,l=y.length,u=c[0],d=c[1];for(t=0;t&lt;n;++t)(r=v[t]).index=t,r.weight=0;for(t=0;t&lt;l;++t)&quot;number&quot;==typeof(r=y[t]).source&amp;&amp;(r.source=v[r.source]),&quot;number&quot;==typeof r.target&amp;&amp;(r.target=v[r.target]),++r.source.weight,++r.target.weight;for(t=0;t&lt;n;++t)r=v[t],isNaN(r.x)&amp;&amp;(r.x=g(&quot;x&quot;,u)),isNaN(r.y)&amp;&amp;(r.y=g(&quot;y&quot;,d)),isNaN(r.px)&amp;&amp;(r.px=r.x),isNaN(r.py)&amp;&amp;(r.py=r.y);if(i=[],&quot;function&quot;==typeof f)for(t=0;t&lt;l;++t)i[t]=+f.call(this,y[t],t);else for(t=0;t&lt;l;++t)i[t]=f;if(a=[],&quot;function&quot;==typeof h)for(t=0;t&lt;l;++t)a[t]=+h.call(this,y[t],t);else for(t=0;t&lt;l;++t)a[t]=h;if(o=[],&quot;function&quot;==typeof p)for(t=0;t&lt;n;++t)o[t]=+p.call(this,v[t],t);else for(t=0;t&lt;n;++t)o[t]=p;function g(r,i){if(!e){for(e=new Array(n),c=0;c&lt;n;++c)e[c]=[];for(c=0;c&lt;l;++c){var a=y[c];e[a.source.index].push(a.target),e[a.target.index].push(a.source)}}for(var o,s=e[t],c=-1,u=s.length;++c&lt;u;)if(!isNaN(o=s[c][r]))return o;return Math.random()*i}return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){if(r||(r=t.behavior.drag().origin(L).on(&quot;dragstart.force&quot;,Ma).on(&quot;drag.force&quot;,b).on(&quot;dragend.force&quot;,Aa)),!arguments.length)return r;this.on(&quot;mouseover.force&quot;,Sa).on(&quot;mouseout.force&quot;,Ea).call(r)},t.rebind(s,l,&quot;on&quot;)};var Ca=20,La=1,Ia=1/0;function Pa(e,r){return t.rebind(e,r,&quot;sort&quot;,&quot;children&quot;,&quot;value&quot;),e.nodes=e,e.links=Ba,e}function za(t,e){for(var r=[t];null!=(t=r.pop());)if(e(t),(i=t.children)&amp;&amp;(n=i.length))for(var n,i;--n&gt;=0;)r.push(i[n])}function Oa(t,e){for(var r=[t],n=[];null!=(t=r.pop());)if(n.push(t),(a=t.children)&amp;&amp;(i=a.length))for(var i,a,o=-1;++o&lt;i;)r.push(a[o]);for(;null!=(t=n.pop());)e(t)}function Da(t){return t.children}function Ra(t){return t.value}function Fa(t,e){return e.value-t.value}function Ba(e){return t.merge(e.map((function(t){return(t.children||[]).map((function(e){return{source:t,target:e}}))})))}t.layout.hierarchy=function(){var t=Fa,e=Da,r=Ra;function n(i){var a,o=[i],s=[];for(i.depth=0;null!=(a=o.pop());)if(s.push(a),(c=e.call(n,a,a.depth))&amp;&amp;(l=c.length)){for(var l,c,u;--l&gt;=0;)o.push(u=c[l]),u.parent=a,u.depth=a.depth+1;r&amp;&amp;(a.value=0),a.children=c}else r&amp;&amp;(a.value=+r.call(n,a,a.depth)||0),delete a.children;return Oa(i,(function(e){var n,i;t&amp;&amp;(n=e.children)&amp;&amp;n.sort(t),r&amp;&amp;(i=e.parent)&amp;&amp;(i.value+=e.value)})),s}return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&amp;&amp;(za(t,(function(t){t.children&amp;&amp;(t.value=0)})),Oa(t,(function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&amp;&amp;(e.value+=t.value)}))),t},n},t.layout.partition=function(){var e=t.layout.hierarchy(),r=[1,1];function n(t,n){var i=e.call(this,t,n);return function t(e,r,n,i){var a=e.children;if(e.x=r,e.y=e.depth*i,e.dx=n,e.dy=i,a&amp;&amp;(o=a.length)){var o,s,l,c=-1;for(n=e.value?n/e.value:0;++c&lt;o;)t(s=a[c],r,l=s.value*n,i),r+=l}}(i[0],0,r[0],r[1]/function t(e){var r=e.children,n=0;if(r&amp;&amp;(i=r.length))for(var i,a=-1;++a&lt;i;)n=Math.max(n,t(r[a]));return 1+n}(i[0])),i}return n.size=function(t){return arguments.length?(r=t,n):r},Pa(n,e)},t.layout.pie=function(){var e=Number,r=Na,n=0,i=St,a=0;function o(s){var l,c=s.length,u=s.map((function(t,r){return+e.call(o,t,r)})),f=+(&quot;function&quot;==typeof n?n.apply(this,arguments):n),h=(&quot;function&quot;==typeof i?i.apply(this,arguments):i)-f,p=Math.min(Math.abs(h)/c,+(&quot;function&quot;==typeof a?a.apply(this,arguments):a)),d=p*(h&lt;0?-1:1),g=t.sum(u),m=g?(h-c*d)/g:0,v=t.range(c),y=[];return null!=r&amp;&amp;v.sort(r===Na?function(t,e){return u[e]-u[t]}:function(t,e){return r(s[t],s[e])}),v.forEach((function(t){y[t]={data:s[t],value:l=u[t],startAngle:f,endAngle:f+=l*m+d,padAngle:p}})),y}return o.value=function(t){return arguments.length?(e=t,o):e},o.sort=function(t){return arguments.length?(r=t,o):r},o.startAngle=function(t){return arguments.length?(n=t,o):n},o.endAngle=function(t){return arguments.length?(i=t,o):i},o.padAngle=function(t){return arguments.length?(a=t,o):a},o};var Na={};function ja(t){return t.x}function Ua(t){return t.y}function Va(t,e,r){t.y0=e,t.y=r}t.layout.stack=function(){var e=L,r=Ga,n=Ya,i=Va,a=ja,o=Ua;function s(l,c){if(!(p=l.length))return l;var u=l.map((function(t,r){return e.call(s,t,r)})),f=u.map((function(t){return t.map((function(t,e){return[a.call(s,t,e),o.call(s,t,e)]}))})),h=r.call(s,f,c);u=t.permute(u,h),f=t.permute(f,h);var p,d,g,m,v=n.call(s,f,c),y=u[0].length;for(g=0;g&lt;y;++g)for(i.call(s,u[0][g],m=v[g],f[0][g][1]),d=1;d&lt;p;++d)i.call(s,u[d][g],m+=f[d-1][g][1],f[d][g][1]);return l}return s.values=function(t){return arguments.length?(e=t,s):e},s.order=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:qa.get(t)||Ga,s):r},s.offset=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:Ha.get(t)||Ya,s):n},s.x=function(t){return arguments.length?(a=t,s):a},s.y=function(t){return arguments.length?(o=t,s):o},s.out=function(t){return arguments.length?(i=t,s):i},s};var qa=t.map({&quot;inside-out&quot;:function(e){var r,n,i=e.length,a=e.map(Wa),o=e.map(Xa),s=t.range(i).sort((function(t,e){return a[t]-a[e]})),l=0,c=0,u=[],f=[];for(r=0;r&lt;i;++r)n=s[r],l&lt;c?(l+=o[n],u.push(n)):(c+=o[n],f.push(n));return f.reverse().concat(u)},reverse:function(e){return t.range(e.length).reverse()},default:Ga}),Ha=t.map({silhouette:function(t){var e,r,n,i=t.length,a=t[0].length,o=[],s=0,l=[];for(r=0;r&lt;a;++r){for(e=0,n=0;e&lt;i;e++)n+=t[e][r][1];n&gt;s&amp;&amp;(s=n),o.push(n)}for(r=0;r&lt;a;++r)l[r]=(s-o[r])/2;return l},wiggle:function(t){var e,r,n,i,a,o,s,l,c,u=t.length,f=t[0],h=f.length,p=[];for(p[0]=l=c=0,r=1;r&lt;h;++r){for(e=0,i=0;e&lt;u;++e)i+=t[e][r][1];for(e=0,a=0,s=f[r][0]-f[r-1][0];e&lt;u;++e){for(n=0,o=(t[e][r][1]-t[e][r-1][1])/(2*s);n&lt;e;++n)o+=(t[n][r][1]-t[n][r-1][1])/s;a+=o*t[e][r][1]}p[r]=l-=i?a/i*s:0,l&lt;c&amp;&amp;(c=l)}for(r=0;r&lt;h;++r)p[r]-=c;return p},expand:function(t){var e,r,n,i=t.length,a=t[0].length,o=1/i,s=[];for(r=0;r&lt;a;++r){for(e=0,n=0;e&lt;i;e++)n+=t[e][r][1];if(n)for(e=0;e&lt;i;e++)t[e][r][1]/=n;else for(e=0;e&lt;i;e++)t[e][r][1]=o}for(r=0;r&lt;a;++r)s[r]=0;return s},zero:Ya});function Ga(e){return t.range(e.length)}function Ya(t){for(var e=-1,r=t[0].length,n=[];++e&lt;r;)n[e]=0;return n}function Wa(t){for(var e,r=1,n=0,i=t[0][1],a=t.length;r&lt;a;++r)(e=t[r][1])&gt;i&amp;&amp;(n=r,i=e);return n}function Xa(t){return t.reduce(Za,0)}function Za(t,e){return t+e[1]}function Ja(t,e){return Ka(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Ka(t,e){for(var r=-1,n=+t[0],i=(t[1]-n)/e,a=[];++r&lt;=e;)a[r]=i*r+n;return a}function Qa(e){return[t.min(e),t.max(e)]}function $a(t,e){return t.value-e.value}function to(t,e){var r=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=r,r._pack_prev=e}function eo(t,e){t._pack_next=e,e._pack_prev=t}function ro(t,e){var r=e.x-t.x,n=e.y-t.y,i=t.r+e.r;return.999*i*i&gt;r*r+n*n}function no(t){if((e=t.children)&amp;&amp;(l=e.length)){var e,r,n,i,a,o,s,l,c=1/0,u=-1/0,f=1/0,h=-1/0;if(e.forEach(io),(r=e[0]).x=-r.r,r.y=0,x(r),l&gt;1&amp;&amp;((n=e[1]).x=n.r,n.y=0,x(n),l&gt;2))for(oo(r,n,i=e[2]),x(i),to(r,i),r._pack_prev=i,to(i,n),n=r._pack_next,a=3;a&lt;l;a++){oo(r,n,i=e[a]);var p=0,d=1,g=1;for(o=n._pack_next;o!==n;o=o._pack_next,d++)if(ro(o,i)){p=1;break}if(1==p)for(s=r._pack_prev;s!==o._pack_prev&amp;&amp;!ro(s,i);s=s._pack_prev,g++);p?(d&lt;g||d==g&amp;&amp;n.r&lt;r.r?eo(r,n=o):eo(r=s,n),a--):(to(r,i),n=i,x(i))}var m=(c+u)/2,v=(f+h)/2,y=0;for(a=0;a&lt;l;a++)(i=e[a]).x-=m,i.y-=v,y=Math.max(y,i.r+Math.sqrt(i.x*i.x+i.y*i.y));t.r=y,e.forEach(ao)}function x(t){c=Math.min(t.x-t.r,c),u=Math.max(t.x+t.r,u),f=Math.min(t.y-t.r,f),h=Math.max(t.y+t.r,h)}}function io(t){t._pack_next=t._pack_prev=t}function ao(t){delete t._pack_next,delete t._pack_prev}function oo(t,e,r){var n=t.r+r.r,i=e.x-t.x,a=e.y-t.y;if(n&amp;&amp;(i||a)){var o=e.r+r.r,s=i*i+a*a,l=.5+((n*=n)-(o*=o))/(2*s),c=Math.sqrt(Math.max(0,2*o*(n+s)-(n-=s)*n-o*o))/(2*s);r.x=t.x+l*i+c*a,r.y=t.y+l*a-c*i}else r.x=t.x+n,r.y=t.y}function so(t,e){return t.parent==e.parent?1:2}function lo(t){var e=t.children;return e.length?e[0]:t.t}function co(t){var e,r=t.children;return(e=r.length)?r[e-1]:t.t}function uo(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function fo(t,e,r){return t.a.parent===e.parent?t.a:r}function ho(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function po(t,e){var r=t.x+e[3],n=t.y+e[0],i=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return i&lt;0&amp;&amp;(r+=i/2,i=0),a&lt;0&amp;&amp;(n+=a/2,a=0),{x:r,y:n,dx:i,dy:a}}function go(t){var e=t[0],r=t[t.length-1];return e&lt;r?[e,r]:[r,e]}function mo(t){return t.rangeExtent?t.rangeExtent():go(t.range())}function vo(t,e,r,n){var i=r(t[0],t[1]),a=n(e[0],e[1]);return function(t){return a(i(t))}}function yo(t,e){var r,n=0,i=t.length-1,a=t[n],o=t[i];return o&lt;a&amp;&amp;(r=n,n=i,i=r,r=a,a=o,o=r),t[n]=e.floor(a),t[i]=e.ceil(o),t}function xo(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:bo}t.layout.histogram=function(){var e=!0,r=Number,n=Qa,i=Ja;function a(a,o){for(var s,l,c=[],u=a.map(r,this),f=n.call(this,u,o),h=i.call(this,f,u,o),p=(o=-1,u.length),d=h.length-1,g=e?1:1/p;++o&lt;d;)(s=c[o]=[]).dx=h[o+1]-(s.x=h[o]),s.y=0;if(d&gt;0)for(o=-1;++o&lt;p;)(l=u[o])&gt;=f[0]&amp;&amp;l&lt;=f[1]&amp;&amp;((s=c[t.bisect(h,l,1,d)-1]).y+=g,s.push(a[o]));return c}return a.value=function(t){return arguments.length?(r=t,a):r},a.range=function(t){return arguments.length?(n=de(t),a):n},a.bins=function(t){return arguments.length?(i=&quot;number&quot;==typeof t?function(e){return Ka(e,t)}:de(t),a):i},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},t.layout.pack=function(){var e,r=t.layout.hierarchy().sort($a),n=0,i=[1,1];function a(t,a){var o=r.call(this,t,a),s=o[0],l=i[0],c=i[1],u=null==e?Math.sqrt:&quot;function&quot;==typeof e?e:function(){return e};if(s.x=s.y=0,Oa(s,(function(t){t.r=+u(t.value)})),Oa(s,no),n){var f=n*(e?1:Math.max(2*s.r/l,2*s.r/c))/2;Oa(s,(function(t){t.r+=f})),Oa(s,no),Oa(s,(function(t){t.r-=f}))}return function t(e,r,n,i){var a=e.children;if(e.x=r+=i*e.x,e.y=n+=i*e.y,e.r*=i,a)for(var o=-1,s=a.length;++o&lt;s;)t(a[o],r,n,i)}(s,l/2,c/2,e?1:1/Math.max(2*s.r/l,2*s.r/c)),o}return a.size=function(t){return arguments.length?(i=t,a):i},a.radius=function(t){return arguments.length?(e=null==t||&quot;function&quot;==typeof t?t:+t,a):e},a.padding=function(t){return arguments.length?(n=+t,a):n},Pa(a,r)},t.layout.tree=function(){var e=t.layout.hierarchy().sort(null).value(null),r=so,n=[1,1],i=null;function a(t,a){var c=e.call(this,t,a),u=c[0],f=function(t){var e,r={A:null,children:[t]},n=[r];for(;null!=(e=n.pop());)for(var i,a=e.children,o=0,s=a.length;o&lt;s;++o)n.push((a[o]=i={_:a[o],parent:e,children:(i=a[o].children)&amp;&amp;i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return r.children[0]}(u);if(Oa(f,o),f.parent.m=-f.z,za(f,s),i)za(u,l);else{var h=u,p=u,d=u;za(u,(function(t){t.x&lt;h.x&amp;&amp;(h=t),t.x&gt;p.x&amp;&amp;(p=t),t.depth&gt;d.depth&amp;&amp;(d=t)}));var g=r(h,p)/2-h.x,m=n[0]/(p.x+r(p,h)/2+g),v=n[1]/(d.depth||1);za(u,(function(t){t.x=(t.x+g)*m,t.y=t.depth*v}))}return c}function o(t){var e=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(e.length){!function(t){var e,r=0,n=0,i=t.children,a=i.length;for(;--a&gt;=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(t);var a=(e[0].z+e[e.length-1].z)/2;i?(t.z=i.z+r(t._,i._),t.m=t.z-a):t.z=a}else i&amp;&amp;(t.z=i.z+r(t._,i._));t.parent.A=function(t,e,n){if(e){for(var i,a=t,o=t,s=e,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=co(s),a=lo(a),s&amp;&amp;a;)l=lo(l),(o=co(o)).a=t,(i=s.z+f-a.z-c+r(s._,a._))&gt;0&amp;&amp;(uo(fo(s,t,n),t,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&amp;&amp;!co(o)&amp;&amp;(o.t=s,o.m+=f-u),a&amp;&amp;!lo(l)&amp;&amp;(l.t=a,l.m+=c-h,n=t)}return n}(t,i,t.parent.A||n[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function l(t){t.x*=n[0],t.y=t.depth*n[1]}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t)?l:null,a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null==(n=t)?null:l,a):i?n:null},Pa(a,e)},t.layout.cluster=function(){var e=t.layout.hierarchy().sort(null).value(null),r=so,n=[1,1],i=!1;function a(a,o){var s,l=e.call(this,a,o),c=l[0],u=0;Oa(c,(function(e){var n=e.children;n&amp;&amp;n.length?(e.x=function(t){return t.reduce((function(t,e){return t+e.x}),0)/t.length}(n),e.y=function(e){return 1+t.max(e,(function(t){return t.y}))}(n)):(e.x=s?u+=r(e,s):0,e.y=0,s=e)}));var f=function t(e){var r=e.children;return r&amp;&amp;r.length?t(r[0]):e}(c),h=function t(e){var r,n=e.children;return n&amp;&amp;(r=n.length)?t(n[r-1]):e}(c),p=f.x-r(f,h)/2,d=h.x+r(h,f)/2;return Oa(c,i?function(t){t.x=(t.x-c.x)*n[0],t.y=(c.y-t.y)*n[1]}:function(t){t.x=(t.x-p)/(d-p)*n[0],t.y=(1-(c.y?t.y/c.y:1))*n[1]}),l}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t),a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null!=(n=t),a):i?n:null},Pa(a,e)},t.layout.treemap=function(){var e,r=t.layout.hierarchy(),n=Math.round,i=[1,1],a=null,o=ho,s=!1,l=&quot;squarify&quot;,c=.5*(1+Math.sqrt(5));function u(t,e){for(var r,n,i=-1,a=t.length;++i&lt;a;)n=(r=t[i]).value*(e&lt;0?0:e),r.area=isNaN(n)||n&lt;=0?0:n}function f(t){var e=t.children;if(e&amp;&amp;e.length){var r,n,i,a=o(t),s=[],c=e.slice(),h=1/0,g=&quot;slice&quot;===l?a.dx:&quot;dice&quot;===l?a.dy:&quot;slice-dice&quot;===l?1&amp;t.depth?a.dy:a.dx:Math.min(a.dx,a.dy);for(u(c,a.dx*a.dy/t.value),s.area=0;(i=c.length)&gt;0;)s.push(r=c[i-1]),s.area+=r.area,&quot;squarify&quot;!==l||(n=p(s,g))&lt;=h?(c.pop(),h=n):(s.area-=s.pop().area,d(s,g,a,!1),g=Math.min(a.dx,a.dy),s.length=s.area=0,h=1/0);s.length&amp;&amp;(d(s,g,a,!0),s.length=s.area=0),e.forEach(f)}}function h(t){var e=t.children;if(e&amp;&amp;e.length){var r,n=o(t),i=e.slice(),a=[];for(u(i,n.dx*n.dy/t.value),a.area=0;r=i.pop();)a.push(r),a.area+=r.area,null!=r.z&amp;&amp;(d(a,r.z?n.dx:n.dy,n,!i.length),a.length=a.area=0);e.forEach(h)}}function p(t,e){for(var r,n=t.area,i=0,a=1/0,o=-1,s=t.length;++o&lt;s;)(r=t[o].area)&amp;&amp;(r&lt;a&amp;&amp;(a=r),r&gt;i&amp;&amp;(i=r));return e*=e,(n*=n)?Math.max(e*i*c/n,n/(e*a*c)):1/0}function d(t,e,r,i){var a,o=-1,s=t.length,l=r.x,c=r.y,u=e?n(t.area/e):0;if(e==r.dx){for((i||u&gt;r.dy)&amp;&amp;(u=r.dy);++o&lt;s;)(a=t[o]).x=l,a.y=c,a.dy=u,l+=a.dx=Math.min(r.x+r.dx-l,u?n(a.area/u):0);a.z=!0,a.dx+=r.x+r.dx-l,r.y+=u,r.dy-=u}else{for((i||u&gt;r.dx)&amp;&amp;(u=r.dx);++o&lt;s;)(a=t[o]).x=l,a.y=c,a.dx=u,c+=a.dy=Math.min(r.y+r.dy-c,u?n(a.area/u):0);a.z=!1,a.dy+=r.y+r.dy-c,r.x+=u,r.dx-=u}}function g(t){var n=e||r(t),a=n[0];return a.x=a.y=0,a.value?(a.dx=i[0],a.dy=i[1]):a.dx=a.dy=0,e&amp;&amp;r.revalue(a),u([a],a.dx*a.dy/a.value),(e?h:f)(a),s&amp;&amp;(e=n),n}return g.size=function(t){return arguments.length?(i=t,g):i},g.padding=function(t){if(!arguments.length)return a;function e(e){var r=t.call(g,e,e.depth);return null==r?ho(e):po(e,&quot;number&quot;==typeof r?[r,r,r,r]:r)}function r(e){return po(e,t)}var n;return o=null==(a=t)?ho:&quot;function&quot;==(n=typeof t)?e:&quot;number&quot;===n?(t=[t,t,t,t],r):r,g},g.round=function(t){return arguments.length?(n=t?Math.round:Number,g):n!=Number},g.sticky=function(t){return arguments.length?(s=t,e=null,g):s},g.ratio=function(t){return arguments.length?(c=t,g):c},g.mode=function(t){return arguments.length?(l=t+&quot;&quot;,g):l},Pa(g,r)},t.random={normal:function(t,e){var r=arguments.length;return r&lt;2&amp;&amp;(e=1),r&lt;1&amp;&amp;(t=0),function(){var r,n,i;do{i=(r=2*Math.random()-1)*r+(n=2*Math.random()-1)*n}while(!i||i&gt;1);return t+e*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=t.random.normal.apply(t,arguments);return function(){return Math.exp(e())}},bates:function(e){var r=t.random.irwinHall(e);return function(){return r()/e}},irwinHall:function(t){return function(){for(var e=0,r=0;r&lt;t;r++)e+=Math.random();return e}}},t.scale={};var bo={floor:L,ceil:L};function _o(e,r,n,i){var a=[],o=[],s=0,l=Math.min(e.length,r.length)-1;for(e[l]&lt;e[0]&amp;&amp;(e=e.slice().reverse(),r=r.slice().reverse());++s&lt;=l;)a.push(n(e[s-1],e[s])),o.push(i(r[s-1],r[s]));return function(r){var n=t.bisect(e,r,1,l)-1;return o[n](a[n](r))}}function wo(e,r){return t.rebind(e,r,&quot;range&quot;,&quot;rangeRound&quot;,&quot;interpolate&quot;,&quot;clamp&quot;)}function To(t,e){return yo(t,xo(ko(t,e)[2])),yo(t,xo(ko(t,e)[2])),t}function ko(t,e){null==e&amp;&amp;(e=10);var r=go(t),n=r[1]-r[0],i=Math.pow(10,Math.floor(Math.log(n/e)/Math.LN10)),a=e/n*i;return a&lt;=.15?i*=10:a&lt;=.35?i*=5:a&lt;=.75&amp;&amp;(i*=2),r[0]=Math.ceil(r[0]/i)*i,r[1]=Math.floor(r[1]/i)*i+.5*i,r[2]=i,r}function Mo(e,r){return t.range.apply(t,ko(e,r))}function Ao(e,r,n){var i=ko(e,r);if(n){var a=Ce.exec(n);if(a.shift(),&quot;s&quot;===a[8]){var o=t.formatPrefix(Math.max(y(i[0]),y(i[1])));return a[7]||(a[7]=&quot;.&quot;+Eo(o.scale(i[2]))),a[8]=&quot;f&quot;,n=t.format(a.join(&quot;&quot;)),function(t){return n(o.scale(t))+o.symbol}}a[7]||(a[7]=&quot;.&quot;+function(t,e){var r=Eo(e[2]);return t in So?Math.abs(r-Eo(Math.max(y(e[0]),y(e[1]))))+ +(&quot;e&quot;!==t):r-2*(&quot;%&quot;===t)}(a[8],i)),n=a.join(&quot;&quot;)}else n=&quot;,.&quot;+Eo(i[2])+&quot;f&quot;;return t.format(n)}t.scale.linear=function(){return function t(e,r,n,i){var a,o;function s(){var t=Math.min(e.length,r.length)&gt;2?_o:vo,s=i?wa:_a;return a=t(e,r,s,n),o=t(r,e,s,$i),l}function l(t){return a(t)}return l.invert=function(t){return o(t)},l.domain=function(t){return arguments.length?(e=t.map(Number),s()):e},l.range=function(t){return arguments.length?(r=t,s()):r},l.rangeRound=function(t){return l.range(t).interpolate(da)},l.clamp=function(t){return arguments.length?(i=t,s()):i},l.interpolate=function(t){return arguments.length?(n=t,s()):n},l.ticks=function(t){return Mo(e,t)},l.tickFormat=function(t,r){return Ao(e,t,r)},l.nice=function(t){return To(e,t),s()},l.copy=function(){return t(e,r,n,i)},s()}([0,1],[0,1],$i,!1)};var So={s:1,g:1,p:1,r:1,e:1};function Eo(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}t.scale.log=function(){return function e(r,n,i,a){function o(t){return(i?Math.log(t&lt;0?0:t):-Math.log(t&gt;0?0:-t))/Math.log(n)}function s(t){return i?Math.pow(n,t):-Math.pow(n,-t)}function l(t){return r(o(t))}return l.invert=function(t){return s(r.invert(t))},l.domain=function(t){return arguments.length?(i=t[0]&gt;=0,r.domain((a=t.map(Number)).map(o)),l):a},l.base=function(t){return arguments.length?(n=+t,r.domain(a.map(o)),l):n},l.nice=function(){var t=yo(a.map(o),i?Math:Lo);return r.domain(t),a=t.map(s),l},l.ticks=function(){var t=go(a),e=[],r=t[0],l=t[1],c=Math.floor(o(r)),u=Math.ceil(o(l)),f=n%1?2:n;if(isFinite(u-c)){if(i){for(;c&lt;u;c++)for(var h=1;h&lt;f;h++)e.push(s(c)*h);e.push(s(c))}else for(e.push(s(c));c++&lt;u;)for(h=f-1;h&gt;0;h--)e.push(s(c)*h);for(c=0;e[c]&lt;r;c++);for(u=e.length;e[u-1]&gt;l;u--);e=e.slice(c,u)}return e},l.tickFormat=function(e,r){if(!arguments.length)return Co;arguments.length&lt;2?r=Co:&quot;function&quot;!=typeof r&amp;&amp;(r=t.format(r));var i=Math.max(1,n*e/l.ticks().length);return function(t){var e=t/s(Math.round(o(t)));return e*n&lt;n-.5&amp;&amp;(e*=n),e&lt;=i?r(t):&quot;&quot;}},l.copy=function(){return e(r.copy(),n,i,a)},wo(l,r)}(t.scale.linear().domain([0,1]),10,!0,[1,10])};var Co=t.format(&quot;.0e&quot;),Lo={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function Io(t){return function(e){return e&lt;0?-Math.pow(-e,t):Math.pow(e,t)}}t.scale.pow=function(){return function t(e,r,n){var i=Io(r),a=Io(1/r);function o(t){return e(i(t))}return o.invert=function(t){return a(e.invert(t))},o.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(i)),o):n},o.ticks=function(t){return Mo(n,t)},o.tickFormat=function(t,e){return Ao(n,t,e)},o.nice=function(t){return o.domain(To(n,t))},o.exponent=function(t){return arguments.length?(i=Io(r=t),a=Io(1/r),e.domain(n.map(i)),o):r},o.copy=function(){return t(e.copy(),r,n)},wo(o,e)}(t.scale.linear(),1,[0,1])},t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return function e(r,n){var i,a,o;function s(t){return a[((i.get(t)||(&quot;range&quot;===n.t?i.set(t,r.push(t)):NaN))-1)%a.length]}function l(e,n){return t.range(r.length).map((function(t){return e+n*t}))}return s.domain=function(t){if(!arguments.length)return r;r=[],i=new _;for(var e,a=-1,o=t.length;++a&lt;o;)i.has(e=t[a])||i.set(e,r.push(e));return s[n.t].apply(s,n.a)},s.range=function(t){return arguments.length?(a=t,o=0,n={t:&quot;range&quot;,a:arguments},s):a},s.rangePoints=function(t,e){arguments.length&lt;2&amp;&amp;(e=0);var i=t[0],c=t[1],u=r.length&lt;2?(i=(i+c)/2,0):(c-i)/(r.length-1+e);return a=l(i+u*e/2,u),o=0,n={t:&quot;rangePoints&quot;,a:arguments},s},s.rangeRoundPoints=function(t,e){arguments.length&lt;2&amp;&amp;(e=0);var i=t[0],c=t[1],u=r.length&lt;2?(i=c=Math.round((i+c)/2),0):(c-i)/(r.length-1+e)|0;return a=l(i+Math.round(u*e/2+(c-i-(r.length-1+e)*u)/2),u),o=0,n={t:&quot;rangeRoundPoints&quot;,a:arguments},s},s.rangeBands=function(t,e,i){arguments.length&lt;2&amp;&amp;(e=0),arguments.length&lt;3&amp;&amp;(i=e);var c=t[1]&lt;t[0],u=t[c-0],f=t[1-c],h=(f-u)/(r.length-e+2*i);return a=l(u+h*i,h),c&amp;&amp;a.reverse(),o=h*(1-e),n={t:&quot;rangeBands&quot;,a:arguments},s},s.rangeRoundBands=function(t,e,i){arguments.length&lt;2&amp;&amp;(e=0),arguments.length&lt;3&amp;&amp;(i=e);var c=t[1]&lt;t[0],u=t[c-0],f=t[1-c],h=Math.floor((f-u)/(r.length-e+2*i));return a=l(u+Math.round((f-u-(r.length-e)*h)/2),h),c&amp;&amp;a.reverse(),o=Math.round(h*(1-e)),n={t:&quot;rangeRoundBands&quot;,a:arguments},s},s.rangeBand=function(){return o},s.rangeExtent=function(){return go(n.a[0])},s.copy=function(){return e(r,n)},s.domain(r)}([],{t:&quot;range&quot;,a:[[]]})},t.scale.category10=function(){return t.scale.ordinal().range(Po)},t.scale.category20=function(){return t.scale.ordinal().range(zo)},t.scale.category20b=function(){return t.scale.ordinal().range(Oo)},t.scale.category20c=function(){return t.scale.ordinal().range(Do)};var Po=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(ae),zo=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(ae),Oo=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(ae),Do=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(ae);function Ro(){return 0}t.scale.quantile=function(){return function e(r,n){var i;function a(){var e=0,a=n.length;for(i=[];++e&lt;a;)i[e-1]=t.quantile(r,e/a);return o}function o(e){if(!isNaN(e=+e))return n[t.bisect(i,e)]}return o.domain=function(t){return arguments.length?(r=t.map(p).filter(d).sort(h),a()):r},o.range=function(t){return arguments.length?(n=t,a()):n},o.quantiles=function(){return i},o.invertExtent=function(t){return(t=n.indexOf(t))&lt;0?[NaN,NaN]:[t&gt;0?i[t-1]:r[0],t&lt;i.length?i[t]:r[r.length-1]]},o.copy=function(){return e(r,n)},a()}([],[])},t.scale.quantize=function(){return function t(e,r,n){var i,a;function o(t){return n[Math.max(0,Math.min(a,Math.floor(i*(t-e))))]}function s(){return i=n.length/(r-e),a=n.length-1,o}return o.domain=function(t){return arguments.length?(e=+t[0],r=+t[t.length-1],s()):[e,r]},o.range=function(t){return arguments.length?(n=t,s()):n},o.invertExtent=function(t){return[t=(t=n.indexOf(t))&lt;0?NaN:t/i+e,t+1/i]},o.copy=function(){return t(e,r,n)},s()}(0,1,[0,1])},t.scale.threshold=function(){return function e(r,n){function i(e){if(e&lt;=e)return n[t.bisect(r,e)]}return i.domain=function(t){return arguments.length?(r=t,i):r},i.range=function(t){return arguments.length?(n=t,i):n},i.invertExtent=function(t){return t=n.indexOf(t),[r[t-1],r[t]]},i.copy=function(){return e(r,n)},i}([.5],[0,1])},t.scale.identity=function(){return function t(e){function r(t){return+t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=t.map(r),r):e},r.ticks=function(t){return Mo(e,t)},r.tickFormat=function(t,r){return Ao(e,t,r)},r.copy=function(){return t(e)},r}([0,1])},t.svg={},t.svg.arc=function(){var t=Bo,e=No,r=Ro,n=Fo,i=jo,a=Uo,o=Vo;function s(){var s=Math.max(0,+t.apply(this,arguments)),c=Math.max(0,+e.apply(this,arguments)),u=i.apply(this,arguments)-Ct,f=a.apply(this,arguments)-Ct,h=Math.abs(f-u),p=u&gt;f?0:1;if(c&lt;s&amp;&amp;(d=c,c=s,s=d),h&gt;=Et)return l(c,p)+(s?l(s,1-p):&quot;&quot;)+&quot;Z&quot;;var d,g,m,v,y,x,b,_,w,T,k,M,A=0,S=0,E=[];if((v=(+o.apply(this,arguments)||0)/2)&amp;&amp;(m=n===Fo?Math.sqrt(s*s+c*c):+n.apply(this,arguments),p||(S*=-1),c&amp;&amp;(S=Dt(m/c*Math.sin(v))),s&amp;&amp;(A=Dt(m/s*Math.sin(v)))),c){y=c*Math.cos(u+S),x=c*Math.sin(u+S),b=c*Math.cos(f-S),_=c*Math.sin(f-S);var C=Math.abs(f-u-2*S)&lt;=At?0:1;if(S&amp;&amp;qo(y,x,b,_)===p^C){var L=(u+f)/2;y=c*Math.cos(L),x=c*Math.sin(L),b=_=null}}else y=x=0;if(s){w=s*Math.cos(f-A),T=s*Math.sin(f-A),k=s*Math.cos(u+A),M=s*Math.sin(u+A);var I=Math.abs(u-f+2*A)&lt;=At?0:1;if(A&amp;&amp;qo(w,T,k,M)===1-p^I){var P=(u+f)/2;w=s*Math.cos(P),T=s*Math.sin(P),k=M=null}}else w=T=0;if(h&gt;kt&amp;&amp;(d=Math.min(Math.abs(c-s)/2,+r.apply(this,arguments)))&gt;.001){g=s&lt;c^p?0:1;var z=d,O=d;if(h&lt;At){var D=null==k?[w,T]:null==b?[y,x]:li([y,x],[k,M],[b,_],[w,T]),R=y-D[0],F=x-D[1],B=b-D[0],N=_-D[1],j=1/Math.sin(Math.acos((R*B+F*N)/(Math.sqrt(R*R+F*F)*Math.sqrt(B*B+N*N)))/2),U=Math.sqrt(D[0]*D[0]+D[1]*D[1]);O=Math.min(d,(s-U)/(j-1)),z=Math.min(d,(c-U)/(j+1))}if(null!=b){var V=Ho(null==k?[w,T]:[k,M],[y,x],c,z,p),q=Ho([b,_],[w,T],c,z,p);d===z?E.push(&quot;M&quot;,V[0],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,g,&quot; &quot;,V[1],&quot;A&quot;,c,&quot;,&quot;,c,&quot; 0 &quot;,1-p^qo(V[1][0],V[1][1],q[1][0],q[1][1]),&quot;,&quot;,p,&quot; &quot;,q[1],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,g,&quot; &quot;,q[0]):E.push(&quot;M&quot;,V[0],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 1,&quot;,g,&quot; &quot;,q[0])}else E.push(&quot;M&quot;,y,&quot;,&quot;,x);if(null!=k){var H=Ho([y,x],[k,M],s,-O,p),G=Ho([w,T],null==b?[y,x]:[b,_],s,-O,p);d===O?E.push(&quot;L&quot;,G[0],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,G[1],&quot;A&quot;,s,&quot;,&quot;,s,&quot; 0 &quot;,p^qo(G[1][0],G[1][1],H[1][0],H[1][1]),&quot;,&quot;,1-p,&quot; &quot;,H[1],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,H[0]):E.push(&quot;L&quot;,G[0],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,H[0])}else E.push(&quot;L&quot;,w,&quot;,&quot;,T)}else E.push(&quot;M&quot;,y,&quot;,&quot;,x),null!=b&amp;&amp;E.push(&quot;A&quot;,c,&quot;,&quot;,c,&quot; 0 &quot;,C,&quot;,&quot;,p,&quot; &quot;,b,&quot;,&quot;,_),E.push(&quot;L&quot;,w,&quot;,&quot;,T),null!=k&amp;&amp;E.push(&quot;A&quot;,s,&quot;,&quot;,s,&quot; 0 &quot;,I,&quot;,&quot;,1-p,&quot; &quot;,k,&quot;,&quot;,M);return E.push(&quot;Z&quot;),E.join(&quot;&quot;)}function l(t,e){return&quot;M0,&quot;+t+&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 1,&quot;+e+&quot; 0,&quot;+-t+&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 1,&quot;+e+&quot; 0,&quot;+t}return s.innerRadius=function(e){return arguments.length?(t=de(e),s):t},s.outerRadius=function(t){return arguments.length?(e=de(t),s):e},s.cornerRadius=function(t){return arguments.length?(r=de(t),s):r},s.padRadius=function(t){return arguments.length?(n=t==Fo?Fo:de(t),s):n},s.startAngle=function(t){return arguments.length?(i=de(t),s):i},s.endAngle=function(t){return arguments.length?(a=de(t),s):a},s.padAngle=function(t){return arguments.length?(o=de(t),s):o},s.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Ct;return[Math.cos(n)*r,Math.sin(n)*r]},s};var Fo=&quot;auto&quot;;function Bo(t){return t.innerRadius}function No(t){return t.outerRadius}function jo(t){return t.startAngle}function Uo(t){return t.endAngle}function Vo(t){return t&amp;&amp;t.padAngle}function qo(t,e,r,n){return(t-r)*e-(e-n)*t&gt;0?0:1}function Ho(t,e,r,n,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?n:-n)/Math.sqrt(a*a+o*o),l=s*o,c=-s*a,u=t[0]+l,f=t[1]+c,h=e[0]+l,p=e[1]+c,d=(u+h)/2,g=(f+p)/2,m=h-u,v=p-f,y=m*m+v*v,x=r-n,b=u*p-h*f,_=(v&lt;0?-1:1)*Math.sqrt(Math.max(0,x*x*y-b*b)),w=(b*v-m*_)/y,T=(-b*m-v*_)/y,k=(b*v+m*_)/y,M=(-b*m+v*_)/y,A=w-d,S=T-g,E=k-d,C=M-g;return A*A+S*S&gt;E*E+C*C&amp;&amp;(w=k,T=M),[[w-l,T-c],[w*r/x,T*r/x]]}function Go(t){var e=ri,r=ni,n=Yr,i=Wo,a=i.key,o=.7;function s(a){var s,l=[],c=[],u=-1,f=a.length,h=de(e),p=de(r);function d(){l.push(&quot;M&quot;,i(t(c),o))}for(;++u&lt;f;)n.call(this,s=a[u],u)?c.push([+h.call(this,s,u),+p.call(this,s,u)]):c.length&amp;&amp;(d(),c=[]);return c.length&amp;&amp;d(),l.length?l.join(&quot;&quot;):null}return s.x=function(t){return arguments.length?(e=t,s):e},s.y=function(t){return arguments.length?(r=t,s):r},s.defined=function(t){return arguments.length?(n=t,s):n},s.interpolate=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?i=t:(i=Yo.get(t)||Wo).key,s):a},s.tension=function(t){return arguments.length?(o=t,s):o},s}t.svg.line=function(){return Go(L)};var Yo=t.map({linear:Wo,&quot;linear-closed&quot;:Xo,step:function(t){var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];for(;++e&lt;r;)i.push(&quot;H&quot;,(n[0]+(n=t[e])[0])/2,&quot;V&quot;,n[1]);r&gt;1&amp;&amp;i.push(&quot;H&quot;,n[0]);return i.join(&quot;&quot;)},&quot;step-before&quot;:Zo,&quot;step-after&quot;:Jo,basis:$o,&quot;basis-open&quot;:function(t){if(t.length&lt;4)return Wo(t);var e,r=[],n=-1,i=t.length,a=[0],o=[0];for(;++n&lt;3;)e=t[n],a.push(e[0]),o.push(e[1]);r.push(ts(ns,a)+&quot;,&quot;+ts(ns,o)),--n;for(;++n&lt;i;)e=t[n],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),is(r,a,o);return r.join(&quot;&quot;)},&quot;basis-closed&quot;:function(t){var e,r,n=-1,i=t.length,a=i+4,o=[],s=[];for(;++n&lt;4;)r=t[n%i],o.push(r[0]),s.push(r[1]);e=[ts(ns,o),&quot;,&quot;,ts(ns,s)],--n;for(;++n&lt;a;)r=t[n%i],o.shift(),o.push(r[0]),s.shift(),s.push(r[1]),is(e,o,s);return e.join(&quot;&quot;)},bundle:function(t,e){var r=t.length-1;if(r)for(var n,i,a=t[0][0],o=t[0][1],s=t[r][0]-a,l=t[r][1]-o,c=-1;++c&lt;=r;)n=t[c],i=c/r,n[0]=e*n[0]+(1-e)*(a+i*s),n[1]=e*n[1]+(1-e)*(o+i*l);return $o(t)},cardinal:function(t,e){return t.length&lt;3?Wo(t):t[0]+Ko(t,Qo(t,e))},&quot;cardinal-open&quot;:function(t,e){return t.length&lt;4?Wo(t):t[1]+Ko(t.slice(1,-1),Qo(t,e))},&quot;cardinal-closed&quot;:function(t,e){return t.length&lt;3?Xo(t):t[0]+Ko((t.push(t[0]),t),Qo([t[t.length-2]].concat(t,[t[1]]),e))},monotone:function(t){return t.length&lt;3?Wo(t):t[0]+Ko(t,function(t){var e,r,n,i,a=[],o=function(t){var e=0,r=t.length-1,n=[],i=t[0],a=t[1],o=n[0]=as(i,a);for(;++e&lt;r;)n[e]=(o+(o=as(i=a,a=t[e+1])))/2;return n[e]=o,n}(t),s=-1,l=t.length-1;for(;++s&lt;l;)e=as(t[s],t[s+1]),y(e)&lt;kt?o[s]=o[s+1]=0:(r=o[s]/e,n=o[s+1]/e,(i=r*r+n*n)&gt;9&amp;&amp;(i=3*e/Math.sqrt(i),o[s]=i*r,o[s+1]=i*n));s=-1;for(;++s&lt;=l;)i=(t[Math.min(l,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}(t))}});function Wo(t){return t.length&gt;1?t.join(&quot;L&quot;):t+&quot;Z&quot;}function Xo(t){return t.join(&quot;L&quot;)+&quot;Z&quot;}function Zo(t){for(var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];++e&lt;r;)i.push(&quot;V&quot;,(n=t[e])[1],&quot;H&quot;,n[0]);return i.join(&quot;&quot;)}function Jo(t){for(var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];++e&lt;r;)i.push(&quot;H&quot;,(n=t[e])[0],&quot;V&quot;,n[1]);return i.join(&quot;&quot;)}function Ko(t,e){if(e.length&lt;1||t.length!=e.length&amp;&amp;t.length!=e.length+2)return Wo(t);var r=t.length!=e.length,n=&quot;&quot;,i=t[0],a=t[1],o=e[0],s=o,l=1;if(r&amp;&amp;(n+=&quot;Q&quot;+(a[0]-2*o[0]/3)+&quot;,&quot;+(a[1]-2*o[1]/3)+&quot;,&quot;+a[0]+&quot;,&quot;+a[1],i=t[1],l=2),e.length&gt;1){s=e[1],a=t[l],l++,n+=&quot;C&quot;+(i[0]+o[0])+&quot;,&quot;+(i[1]+o[1])+&quot;,&quot;+(a[0]-s[0])+&quot;,&quot;+(a[1]-s[1])+&quot;,&quot;+a[0]+&quot;,&quot;+a[1];for(var c=2;c&lt;e.length;c++,l++)a=t[l],s=e[c],n+=&quot;S&quot;+(a[0]-s[0])+&quot;,&quot;+(a[1]-s[1])+&quot;,&quot;+a[0]+&quot;,&quot;+a[1]}if(r){var u=t[l];n+=&quot;Q&quot;+(a[0]+2*s[0]/3)+&quot;,&quot;+(a[1]+2*s[1]/3)+&quot;,&quot;+u[0]+&quot;,&quot;+u[1]}return n}function Qo(t,e){for(var r,n=[],i=(1-e)/2,a=t[0],o=t[1],s=1,l=t.length;++s&lt;l;)r=a,a=o,o=t[s],n.push([i*(o[0]-r[0]),i*(o[1]-r[1])]);return n}function $o(t){if(t.length&lt;3)return Wo(t);var e=1,r=t.length,n=t[0],i=n[0],a=n[1],o=[i,i,i,(n=t[1])[0]],s=[a,a,a,n[1]],l=[i,&quot;,&quot;,a,&quot;L&quot;,ts(ns,o),&quot;,&quot;,ts(ns,s)];for(t.push(t[r-1]);++e&lt;=r;)n=t[e],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),is(l,o,s);return t.pop(),l.push(&quot;L&quot;,n),l.join(&quot;&quot;)}function ts(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}Yo.forEach((function(t,e){e.key=t,e.closed=/-closed$/.test(t)}));var es=[0,2/3,1/3,0],rs=[0,1/3,2/3,0],ns=[0,1/6,2/3,1/6];function is(t,e,r){t.push(&quot;C&quot;,ts(es,e),&quot;,&quot;,ts(es,r),&quot;,&quot;,ts(rs,e),&quot;,&quot;,ts(rs,r),&quot;,&quot;,ts(ns,e),&quot;,&quot;,ts(ns,r))}function as(t,e){return(e[1]-t[1])/(e[0]-t[0])}function os(t){for(var e,r,n,i=-1,a=t.length;++i&lt;a;)r=(e=t[i])[0],n=e[1]-Ct,e[0]=r*Math.cos(n),e[1]=r*Math.sin(n);return t}function ss(t){var e=ri,r=ri,n=0,i=ni,a=Yr,o=Wo,s=o.key,l=o,c=&quot;L&quot;,u=.7;function f(s){var f,h,p,d=[],g=[],m=[],v=-1,y=s.length,x=de(e),b=de(n),_=e===r?function(){return h}:de(r),w=n===i?function(){return p}:de(i);function T(){d.push(&quot;M&quot;,o(t(m),u),c,l(t(g.reverse()),u),&quot;Z&quot;)}for(;++v&lt;y;)a.call(this,f=s[v],v)?(g.push([h=+x.call(this,f,v),p=+b.call(this,f,v)]),m.push([+_.call(this,f,v),+w.call(this,f,v)])):g.length&amp;&amp;(T(),g=[],m=[]);return g.length&amp;&amp;T(),d.length?d.join(&quot;&quot;):null}return f.x=function(t){return arguments.length?(e=r=t,f):r},f.x0=function(t){return arguments.length?(e=t,f):e},f.x1=function(t){return arguments.length?(r=t,f):r},f.y=function(t){return arguments.length?(n=i=t,f):i},f.y0=function(t){return arguments.length?(n=t,f):n},f.y1=function(t){return arguments.length?(i=t,f):i},f.defined=function(t){return arguments.length?(a=t,f):a},f.interpolate=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?o=t:(o=Yo.get(t)||Wo).key,l=o.reverse||o,c=o.closed?&quot;M&quot;:&quot;L&quot;,f):s},f.tension=function(t){return arguments.length?(u=t,f):u},f}function ls(t){return t.radius}function cs(t){return[t.x,t.y]}function us(t){return function(){var e=t.apply(this,arguments),r=e[0],n=e[1]-Ct;return[r*Math.cos(n),r*Math.sin(n)]}}function fs(){return 64}function hs(){return&quot;circle&quot;}function ps(t){var e=Math.sqrt(t/At);return&quot;M0,&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,&quot;+-e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,&quot;+e+&quot;Z&quot;}t.svg.line.radial=function(){var t=Go(os);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},Zo.reverse=Jo,Jo.reverse=Zo,t.svg.area=function(){return ss(L)},t.svg.area.radial=function(){var t=ss(os);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},t.svg.chord=function(){var t=Vn,e=qn,r=ls,n=jo,i=Uo;function a(r,n){var i,a,c=o(this,t,r,n),u=o(this,e,r,n);return&quot;M&quot;+c.p0+s(c.r,c.p1,c.a1-c.a0)+(a=u,((i=c).a0==a.a0&amp;&amp;i.a1==a.a1?l(c.r,c.p1,c.r,c.p0):l(c.r,c.p1,u.r,u.p0)+s(u.r,u.p1,u.a1-u.a0)+l(u.r,u.p1,c.r,c.p0))+&quot;Z&quot;)}function o(t,e,a,o){var s=e.call(t,a,o),l=r.call(t,s,o),c=n.call(t,s,o)-Ct,u=i.call(t,s,o)-Ct;return{r:l,a0:c,a1:u,p0:[l*Math.cos(c),l*Math.sin(c)],p1:[l*Math.cos(u),l*Math.sin(u)]}}function s(t,e,r){return&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 &quot;+ +(r&gt;At)+&quot;,1 &quot;+e}function l(t,e,r,n){return&quot;Q 0,0 &quot;+n}return a.radius=function(t){return arguments.length?(r=de(t),a):r},a.source=function(e){return arguments.length?(t=de(e),a):t},a.target=function(t){return arguments.length?(e=de(t),a):e},a.startAngle=function(t){return arguments.length?(n=de(t),a):n},a.endAngle=function(t){return arguments.length?(i=de(t),a):i},a},t.svg.diagonal=function(){var t=Vn,e=qn,r=cs;function n(n,i){var a=t.call(this,n,i),o=e.call(this,n,i),s=(a.y+o.y)/2,l=[a,{x:a.x,y:s},{x:o.x,y:s},o];return&quot;M&quot;+(l=l.map(r))[0]+&quot;C&quot;+l[1]+&quot; &quot;+l[2]+&quot; &quot;+l[3]}return n.source=function(e){return arguments.length?(t=de(e),n):t},n.target=function(t){return arguments.length?(e=de(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},t.svg.diagonal.radial=function(){var e=t.svg.diagonal(),r=cs,n=e.projection;return e.projection=function(t){return arguments.length?n(us(r=t)):r},e},t.svg.symbol=function(){var t=hs,e=fs;function r(r,n){return(ds.get(t.call(this,r,n))||ps)(e.call(this,r,n))}return r.type=function(e){return arguments.length?(t=de(e),r):t},r.size=function(t){return arguments.length?(e=de(t),r):e},r};var ds=t.map({circle:ps,cross:function(t){var e=Math.sqrt(t/5)/2;return&quot;M&quot;+-3*e+&quot;,&quot;+-e+&quot;H&quot;+-e+&quot;V&quot;+-3*e+&quot;H&quot;+e+&quot;V&quot;+-e+&quot;H&quot;+3*e+&quot;V&quot;+e+&quot;H&quot;+e+&quot;V&quot;+3*e+&quot;H&quot;+-e+&quot;V&quot;+e+&quot;H&quot;+-3*e+&quot;Z&quot;},diamond:function(t){var e=Math.sqrt(t/(2*ms)),r=e*ms;return&quot;M0,&quot;+-e+&quot;L&quot;+r+&quot;,0 0,&quot;+e+&quot; &quot;+-r+&quot;,0Z&quot;},square:function(t){var e=Math.sqrt(t)/2;return&quot;M&quot;+-e+&quot;,&quot;+-e+&quot;L&quot;+e+&quot;,&quot;+-e+&quot; &quot;+e+&quot;,&quot;+e+&quot; &quot;+-e+&quot;,&quot;+e+&quot;Z&quot;},&quot;triangle-down&quot;:function(t){var e=Math.sqrt(t/gs),r=e*gs/2;return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,&quot;+-r+&quot; &quot;+-e+&quot;,&quot;+-r+&quot;Z&quot;},&quot;triangle-up&quot;:function(t){var e=Math.sqrt(t/gs),r=e*gs/2;return&quot;M0,&quot;+-r+&quot;L&quot;+e+&quot;,&quot;+r+&quot; &quot;+-e+&quot;,&quot;+r+&quot;Z&quot;}});t.svg.symbolTypes=ds.keys();var gs=Math.sqrt(3),ms=Math.tan(30*Lt);Y.transition=function(t){for(var e,r,n=bs||++Ts,i=As(t),a=[],o=_s||{time:Date.now(),ease:ca,delay:0,duration:250},s=-1,l=this.length;++s&lt;l;){a.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u&lt;f;)(r=c[u])&amp;&amp;Ss(r,u,i,n,o),e.push(r)}return xs(a,i,n)},Y.interrupt=function(t){return this.each(null==t?vs:ys(As(t)))};var vs=ys(As());function ys(t){return function(){var e,r,n;(e=this[t])&amp;&amp;(n=e[r=e.active])&amp;&amp;(n.timer.c=null,n.timer.t=NaN,--e.count?delete e[r]:delete this[t],e.active+=.5,n.event&amp;&amp;n.event.interrupt.call(this,this.__data__,n.index))}}function xs(t,e,r){return U(t,ws),t.namespace=e,t.id=r,t}var bs,_s,ws=[],Ts=0;function ks(t,e,r,n){var i=t.id,a=t.namespace;return ut(t,&quot;function&quot;==typeof r?function(t,o,s){t[a][i].tween.set(e,n(r.call(t,t.__data__,o,s)))}:(r=n(r),function(t){t[a][i].tween.set(e,r)}))}function Ms(t){return null==t&amp;&amp;(t=&quot;&quot;),function(){this.textContent=t}}function As(t){return null==t?&quot;__transition__&quot;:&quot;__transition_&quot;+t+&quot;__&quot;}function Ss(t,e,r,n,i){var a,o,s,l,c,u=t[r]||(t[r]={active:0,count:0}),f=u[n];function h(r){var i=u.active,h=u[i];for(var d in h&amp;&amp;(h.timer.c=null,h.timer.t=NaN,--u.count,delete u[i],h.event&amp;&amp;h.event.interrupt.call(t,t.__data__,h.index)),u)if(+d&lt;n){var g=u[d];g.timer.c=null,g.timer.t=NaN,--u.count,delete u[d]}o.c=p,we((function(){return o.c&amp;&amp;p(r||1)&amp;&amp;(o.c=null,o.t=NaN),1}),0,a),u.active=n,f.event&amp;&amp;f.event.start.call(t,t.__data__,e),c=[],f.tween.forEach((function(r,n){(n=n.call(t,t.__data__,e))&amp;&amp;c.push(n)})),l=f.ease,s=f.duration}function p(i){for(var a=i/s,o=l(a),h=c.length;h&gt;0;)c[--h].call(t,o);if(a&gt;=1)return f.event&amp;&amp;f.event.end.call(t,t.__data__,e),--u.count?delete u[n]:delete t[r],1}f||(a=i.time,o=we((function(t){var e=f.delay;if(o.t=e+a,e&lt;=t)return h(t-e);o.c=h}),0,a),f=u[n]={tween:new _,time:a,timer:o,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++u.count)}ws.call=Y.call,ws.empty=Y.empty,ws.node=Y.node,ws.size=Y.size,t.transition=function(e,r){return e&amp;&amp;e.transition?bs?e.transition(r):e:t.selection().transition(e)},t.transition.prototype=ws,ws.select=function(t){var e,r,n,i=this.id,a=this.namespace,o=[];t=W(t);for(var s=-1,l=this.length;++s&lt;l;){o.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u&lt;f;)(n=c[u])&amp;&amp;(r=t.call(n,n.__data__,u,s))?(&quot;__data__&quot;in n&amp;&amp;(r.__data__=n.__data__),Ss(r,u,a,i,n[a][i]),e.push(r)):e.push(null)}return xs(o,a,i)},ws.selectAll=function(t){var e,r,n,i,a,o=this.id,s=this.namespace,l=[];t=X(t);for(var c=-1,u=this.length;++c&lt;u;)for(var f=this[c],h=-1,p=f.length;++h&lt;p;)if(n=f[h]){a=n[s][o],r=t.call(n,n.__data__,h,c),l.push(e=[]);for(var d=-1,g=r.length;++d&lt;g;)(i=r[d])&amp;&amp;Ss(i,d,s,o,a),e.push(i)}return xs(l,s,o)},ws.filter=function(t){var e,r,n=[];&quot;function&quot;!=typeof t&amp;&amp;(t=lt(t));for(var i=0,a=this.length;i&lt;a;i++){n.push(e=[]);for(var o,s=0,l=(o=this[i]).length;s&lt;l;s++)(r=o[s])&amp;&amp;t.call(r,r.__data__,s,i)&amp;&amp;e.push(r)}return xs(n,this.namespace,this.id)},ws.tween=function(t,e){var r=this.id,n=this.namespace;return arguments.length&lt;2?this.node()[n][r].tween.get(t):ut(this,null==e?function(e){e[n][r].tween.remove(t)}:function(i){i[n][r].tween.set(t,e)})},ws.attr=function(e,r){if(arguments.length&lt;2){for(r in e)this.attr(r,e[r]);return this}var n=&quot;transform&quot;==e?ba:$i,i=t.ns.qualify(e);function a(){this.removeAttribute(i)}function o(){this.removeAttributeNS(i.space,i.local)}function s(t){return null==t?a:(t+=&quot;&quot;,function(){var e,r=this.getAttribute(i);return r!==t&amp;&amp;(e=n(r,t),function(t){this.setAttribute(i,e(t))})})}function l(t){return null==t?o:(t+=&quot;&quot;,function(){var e,r=this.getAttributeNS(i.space,i.local);return r!==t&amp;&amp;(e=n(r,t),function(t){this.setAttributeNS(i.space,i.local,e(t))})})}return ks(this,&quot;attr.&quot;+e,r,i.local?l:s)},ws.attrTween=function(e,r){var n=t.ns.qualify(e);return this.tween(&quot;attr.&quot;+e,n.local?function(t,e){var i=r.call(this,t,e,this.getAttributeNS(n.space,n.local));return i&amp;&amp;function(t){this.setAttributeNS(n.space,n.local,i(t))}}:function(t,e){var i=r.call(this,t,e,this.getAttribute(n));return i&amp;&amp;function(t){this.setAttribute(n,i(t))}})},ws.style=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=&quot;&quot;),t)this.style(r,t[r],e);return this}r=&quot;&quot;}function i(){this.style.removeProperty(t)}function a(e){return null==e?i:(e+=&quot;&quot;,function(){var n,i=o(this).getComputedStyle(this,null).getPropertyValue(t);return i!==e&amp;&amp;(n=$i(i,e),function(e){this.style.setProperty(t,n(e),r)})})}return ks(this,&quot;style.&quot;+t,e,a)},ws.styleTween=function(t,e,r){function n(n,i){var a=e.call(this,n,i,o(this).getComputedStyle(this,null).getPropertyValue(t));return a&amp;&amp;function(e){this.style.setProperty(t,a(e),r)}}return arguments.length&lt;3&amp;&amp;(r=&quot;&quot;),this.tween(&quot;style.&quot;+t,n)},ws.text=function(t){return ks(this,&quot;text&quot;,t,Ms)},ws.remove=function(){var t=this.namespace;return this.each(&quot;end.transition&quot;,(function(){var e;this[t].count&lt;2&amp;&amp;(e=this.parentNode)&amp;&amp;e.removeChild(this)}))},ws.ease=function(e){var r=this.id,n=this.namespace;return arguments.length&lt;1?this.node()[n][r].ease:(&quot;function&quot;!=typeof e&amp;&amp;(e=t.ease.apply(t,arguments)),ut(this,(function(t){t[n][r].ease=e})))},ws.delay=function(t){var e=this.id,r=this.namespace;return arguments.length&lt;1?this.node()[r][e].delay:ut(this,&quot;function&quot;==typeof t?function(n,i,a){n[r][e].delay=+t.call(n,n.__data__,i,a)}:(t=+t,function(n){n[r][e].delay=t}))},ws.duration=function(t){var e=this.id,r=this.namespace;return arguments.length&lt;1?this.node()[r][e].duration:ut(this,&quot;function&quot;==typeof t?function(n,i,a){n[r][e].duration=Math.max(1,t.call(n,n.__data__,i,a))}:(t=Math.max(1,t),function(n){n[r][e].duration=t}))},ws.each=function(e,r){var n=this.id,i=this.namespace;if(arguments.length&lt;2){var a=_s,o=bs;try{bs=n,ut(this,(function(t,r,a){_s=t[i][n],e.call(t,t.__data__,r,a)}))}finally{_s=a,bs=o}}else ut(this,(function(a){var o=a[i][n];(o.event||(o.event=t.dispatch(&quot;start&quot;,&quot;end&quot;,&quot;interrupt&quot;))).on(e,r)}));return this},ws.transition=function(){for(var t,e,r,n=this.id,i=++Ts,a=this.namespace,o=[],s=0,l=this.length;s&lt;l;s++){o.push(t=[]);for(var c,u=0,f=(c=this[s]).length;u&lt;f;u++)(e=c[u])&amp;&amp;Ss(e,u,a,i,{time:(r=e[a][n]).time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration}),t.push(e)}return xs(o,a,i)},t.svg.axis=function(){var e,r=t.scale.linear(),i=Es,a=6,o=6,s=3,l=[10],c=null;function u(n){n.each((function(){var n,u=t.select(this),f=this.__chart__||r,h=this.__chart__=r.copy(),p=null==c?h.ticks?h.ticks.apply(h,l):h.domain():c,d=null==e?h.tickFormat?h.tickFormat.apply(h,l):L:e,g=u.selectAll(&quot;.tick&quot;).data(p,h),m=g.enter().insert(&quot;g&quot;,&quot;.domain&quot;).attr(&quot;class&quot;,&quot;tick&quot;).style(&quot;opacity&quot;,kt),v=t.transition(g.exit()).style(&quot;opacity&quot;,kt).remove(),y=t.transition(g.order()).style(&quot;opacity&quot;,1),x=Math.max(a,0)+s,b=mo(h),_=u.selectAll(&quot;.domain&quot;).data([0]),w=(_.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;domain&quot;),t.transition(_));m.append(&quot;line&quot;),m.append(&quot;text&quot;);var T,k,M,A,S=m.select(&quot;line&quot;),E=y.select(&quot;line&quot;),C=g.select(&quot;text&quot;).text(d),I=m.select(&quot;text&quot;),P=y.select(&quot;text&quot;),z=&quot;top&quot;===i||&quot;left&quot;===i?-1:1;if(&quot;bottom&quot;===i||&quot;top&quot;===i?(n=Ls,T=&quot;x&quot;,M=&quot;y&quot;,k=&quot;x2&quot;,A=&quot;y2&quot;,C.attr(&quot;dy&quot;,z&lt;0?&quot;0em&quot;:&quot;.71em&quot;).style(&quot;text-anchor&quot;,&quot;middle&quot;),w.attr(&quot;d&quot;,&quot;M&quot;+b[0]+&quot;,&quot;+z*o+&quot;V0H&quot;+b[1]+&quot;V&quot;+z*o)):(n=Is,T=&quot;y&quot;,M=&quot;x&quot;,k=&quot;y2&quot;,A=&quot;x2&quot;,C.attr(&quot;dy&quot;,&quot;.32em&quot;).style(&quot;text-anchor&quot;,z&lt;0?&quot;end&quot;:&quot;start&quot;),w.attr(&quot;d&quot;,&quot;M&quot;+z*o+&quot;,&quot;+b[0]+&quot;H0V&quot;+b[1]+&quot;H&quot;+z*o)),S.attr(A,z*a),I.attr(M,z*x),E.attr(k,0).attr(A,z*a),P.attr(T,0).attr(M,z*x),h.rangeBand){var O=h,D=O.rangeBand()/2;f=h=function(t){return O(t)+D}}else f.rangeBand?f=h:v.call(n,h,f);m.call(n,f,h),y.call(n,h,h)}))}return u.scale=function(t){return arguments.length?(r=t,u):r},u.orient=function(t){return arguments.length?(i=t in Cs?t+&quot;&quot;:Es,u):i},u.ticks=function(){return arguments.length?(l=n(arguments),u):l},u.tickValues=function(t){return arguments.length?(c=t,u):c},u.tickFormat=function(t){return arguments.length?(e=t,u):e},u.tickSize=function(t){var e=arguments.length;return e?(a=+t,o=+arguments[e-1],u):a},u.innerTickSize=function(t){return arguments.length?(a=+t,u):a},u.outerTickSize=function(t){return arguments.length?(o=+t,u):o},u.tickPadding=function(t){return arguments.length?(s=+t,u):s},u.tickSubdivide=function(){return arguments.length&amp;&amp;u},u};var Es=&quot;bottom&quot;,Cs={top:1,right:1,bottom:1,left:1};function Ls(t,e,r){t.attr(&quot;transform&quot;,(function(t){var n=e(t);return&quot;translate(&quot;+(isFinite(n)?n:r(t))+&quot;,0)&quot;}))}function Is(t,e,r){t.attr(&quot;transform&quot;,(function(t){var n=e(t);return&quot;translate(0,&quot;+(isFinite(n)?n:r(t))+&quot;)&quot;}))}t.svg.brush=function(){var e,r,n=N(h,&quot;brushstart&quot;,&quot;brush&quot;,&quot;brushend&quot;),i=null,a=null,s=[0,0],l=[0,0],c=!0,u=!0,f=zs[0];function h(e){e.each((function(){var e=t.select(this).style(&quot;pointer-events&quot;,&quot;all&quot;).style(&quot;-webkit-tap-highlight-color&quot;,&quot;rgba(0,0,0,0)&quot;).on(&quot;mousedown.brush&quot;,m).on(&quot;touchstart.brush&quot;,m),r=e.selectAll(&quot;.background&quot;).data([0]);r.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;background&quot;).style(&quot;visibility&quot;,&quot;hidden&quot;).style(&quot;cursor&quot;,&quot;crosshair&quot;),e.selectAll(&quot;.extent&quot;).data([0]).enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;extent&quot;).style(&quot;cursor&quot;,&quot;move&quot;);var n=e.selectAll(&quot;.resize&quot;).data(f,L);n.exit().remove(),n.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;resize &quot;+t})).style(&quot;cursor&quot;,(function(t){return Ps[t]})).append(&quot;rect&quot;).attr(&quot;x&quot;,(function(t){return/[ew]$/.test(t)?-3:null})).attr(&quot;y&quot;,(function(t){return/^[ns]/.test(t)?-3:null})).attr(&quot;width&quot;,6).attr(&quot;height&quot;,6).style(&quot;visibility&quot;,&quot;hidden&quot;),n.style(&quot;display&quot;,h.empty()?&quot;none&quot;:null);var o,s=t.transition(e),l=t.transition(r);i&amp;&amp;(o=mo(i),l.attr(&quot;x&quot;,o[0]).attr(&quot;width&quot;,o[1]-o[0]),d(s)),a&amp;&amp;(o=mo(a),l.attr(&quot;y&quot;,o[0]).attr(&quot;height&quot;,o[1]-o[0]),g(s)),p(s)}))}function p(t){t.selectAll(&quot;.resize&quot;).attr(&quot;transform&quot;,(function(t){return&quot;translate(&quot;+s[+/e$/.test(t)]+&quot;,&quot;+l[+/^s/.test(t)]+&quot;)&quot;}))}function d(t){t.select(&quot;.extent&quot;).attr(&quot;x&quot;,s[0]),t.selectAll(&quot;.extent,.n&gt;rect,.s&gt;rect&quot;).attr(&quot;width&quot;,s[1]-s[0])}function g(t){t.select(&quot;.extent&quot;).attr(&quot;y&quot;,l[0]),t.selectAll(&quot;.extent,.e&gt;rect,.w&gt;rect&quot;).attr(&quot;height&quot;,l[1]-l[0])}function m(){var f,m,v=this,y=t.select(t.event.target),x=n.of(v,arguments),b=t.select(v),_=y.datum(),w=!/^(n|s)$/.test(_)&amp;&amp;i,T=!/^(e|w)$/.test(_)&amp;&amp;a,k=y.classed(&quot;extent&quot;),M=bt(v),A=t.mouse(v),S=t.select(o(v)).on(&quot;keydown.brush&quot;,L).on(&quot;keyup.brush&quot;,I);if(t.event.changedTouches?S.on(&quot;touchmove.brush&quot;,P).on(&quot;touchend.brush&quot;,O):S.on(&quot;mousemove.brush&quot;,P).on(&quot;mouseup.brush&quot;,O),b.interrupt().selectAll(&quot;*&quot;).interrupt(),k)A[0]=s[0]-A[0],A[1]=l[0]-A[1];else if(_){var E=+/w$/.test(_),C=+/^n/.test(_);m=[s[1-E]-A[0],l[1-C]-A[1]],A[0]=s[E],A[1]=l[C]}else t.event.altKey&amp;&amp;(f=A.slice());function L(){32==t.event.keyCode&amp;&amp;(k||(f=null,A[0]-=s[1],A[1]-=l[1],k=2),F())}function I(){32==t.event.keyCode&amp;&amp;2==k&amp;&amp;(A[0]+=s[1],A[1]+=l[1],k=0,F())}function P(){var e=t.mouse(v),r=!1;m&amp;&amp;(e[0]+=m[0],e[1]+=m[1]),k||(t.event.altKey?(f||(f=[(s[0]+s[1])/2,(l[0]+l[1])/2]),A[0]=s[+(e[0]&lt;f[0])],A[1]=l[+(e[1]&lt;f[1])]):f=null),w&amp;&amp;z(e,i,0)&amp;&amp;(d(b),r=!0),T&amp;&amp;z(e,a,1)&amp;&amp;(g(b),r=!0),r&amp;&amp;(p(b),x({type:&quot;brush&quot;,mode:k?&quot;move&quot;:&quot;resize&quot;}))}function z(t,n,i){var a,o,h=mo(n),p=h[0],d=h[1],g=A[i],m=i?l:s,v=m[1]-m[0];if(k&amp;&amp;(p-=g,d-=v+g),a=(i?u:c)?Math.max(p,Math.min(d,t[i])):t[i],k?o=(a+=g)+v:(f&amp;&amp;(g=Math.max(p,Math.min(d,2*f[i]-a))),g&lt;a?(o=a,a=g):o=g),m[0]!=a||m[1]!=o)return i?r=null:e=null,m[0]=a,m[1]=o,!0}function O(){P(),b.style(&quot;pointer-events&quot;,&quot;all&quot;).selectAll(&quot;.resize&quot;).style(&quot;display&quot;,h.empty()?&quot;none&quot;:null),t.select(&quot;body&quot;).style(&quot;cursor&quot;,null),S.on(&quot;mousemove.brush&quot;,null).on(&quot;mouseup.brush&quot;,null).on(&quot;touchmove.brush&quot;,null).on(&quot;touchend.brush&quot;,null).on(&quot;keydown.brush&quot;,null).on(&quot;keyup.brush&quot;,null),M(),x({type:&quot;brushend&quot;})}b.style(&quot;pointer-events&quot;,&quot;none&quot;).selectAll(&quot;.resize&quot;).style(&quot;display&quot;,null),t.select(&quot;body&quot;).style(&quot;cursor&quot;,y.style(&quot;cursor&quot;)),x({type:&quot;brushstart&quot;}),P()}return h.event=function(i){i.each((function(){var i=n.of(this,arguments),a={x:s,y:l,i:e,j:r},o=this.__chart__||a;this.__chart__=a,bs?t.select(this).transition().each(&quot;start.brush&quot;,(function(){e=o.i,r=o.j,s=o.x,l=o.y,i({type:&quot;brushstart&quot;})})).tween(&quot;brush:brush&quot;,(function(){var t=ta(s,a.x),n=ta(l,a.y);return e=r=null,function(e){s=a.x=t(e),l=a.y=n(e),i({type:&quot;brush&quot;,mode:&quot;resize&quot;})}})).each(&quot;end.brush&quot;,(function(){e=a.i,r=a.j,i({type:&quot;brush&quot;,mode:&quot;resize&quot;}),i({type:&quot;brushend&quot;})})):(i({type:&quot;brushstart&quot;}),i({type:&quot;brush&quot;,mode:&quot;resize&quot;}),i({type:&quot;brushend&quot;}))}))},h.x=function(t){return arguments.length?(f=zs[!(i=t)&lt;&lt;1|!a],h):i},h.y=function(t){return arguments.length?(f=zs[!i&lt;&lt;1|!(a=t)],h):a},h.clamp=function(t){return arguments.length?(i&amp;&amp;a?(c=!!t[0],u=!!t[1]):i?c=!!t:a&amp;&amp;(u=!!t),h):i&amp;&amp;a?[c,u]:i?c:a?u:null},h.extent=function(t){var n,o,c,u,f;return arguments.length?(i&amp;&amp;(n=t[0],o=t[1],a&amp;&amp;(n=n[0],o=o[0]),e=[n,o],i.invert&amp;&amp;(n=i(n),o=i(o)),o&lt;n&amp;&amp;(f=n,n=o,o=f),n==s[0]&amp;&amp;o==s[1]||(s=[n,o])),a&amp;&amp;(c=t[0],u=t[1],i&amp;&amp;(c=c[1],u=u[1]),r=[c,u],a.invert&amp;&amp;(c=a(c),u=a(u)),u&lt;c&amp;&amp;(f=c,c=u,u=f),c==l[0]&amp;&amp;u==l[1]||(l=[c,u])),h):(i&amp;&amp;(e?(n=e[0],o=e[1]):(n=s[0],o=s[1],i.invert&amp;&amp;(n=i.invert(n),o=i.invert(o)),o&lt;n&amp;&amp;(f=n,n=o,o=f))),a&amp;&amp;(r?(c=r[0],u=r[1]):(c=l[0],u=l[1],a.invert&amp;&amp;(c=a.invert(c),u=a.invert(u)),u&lt;c&amp;&amp;(f=c,c=u,u=f))),i&amp;&amp;a?[[n,c],[o,u]]:i?[n,o]:a&amp;&amp;[c,u])},h.clear=function(){return h.empty()||(s=[0,0],l=[0,0],e=r=null),h},h.empty=function(){return!!i&amp;&amp;s[0]==s[1]||!!a&amp;&amp;l[0]==l[1]},t.rebind(h,n,&quot;on&quot;)};var Ps={n:&quot;ns-resize&quot;,e:&quot;ew-resize&quot;,s:&quot;ns-resize&quot;,w:&quot;ew-resize&quot;,nw:&quot;nwse-resize&quot;,ne:&quot;nesw-resize&quot;,se:&quot;nwse-resize&quot;,sw:&quot;nesw-resize&quot;},zs=[[&quot;n&quot;,&quot;e&quot;,&quot;s&quot;,&quot;w&quot;,&quot;nw&quot;,&quot;ne&quot;,&quot;se&quot;,&quot;sw&quot;],[&quot;e&quot;,&quot;w&quot;],[&quot;n&quot;,&quot;s&quot;],[]],Os=Pe.format=sr.timeFormat,Ds=Os.utc,Rs=Ds(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);function Fs(t){return t.toISOString()}function Bs(e,r,n){function i(t){return e(t)}function a(e,n){var i=(e[1]-e[0])/n,a=t.bisect(js,i);return a==js.length?[r.year,ko(e.map((function(t){return t/31536e6})),n)[2]]:a?r[i/js[a-1]&lt;js[a]/i?a-1:a]:[qs,ko(e,n)[2]]}return i.invert=function(t){return Ns(e.invert(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain().map(Ns)},i.nice=function(t,e){var r=i.domain(),n=go(r),o=null==t?a(n,10):&quot;number&quot;==typeof t&amp;&amp;a(n,t);function s(r){return!isNaN(r)&amp;&amp;!t.range(r,Ns(+r+1),e).length}return o&amp;&amp;(t=o[0],e=o[1]),i.domain(yo(r,e&gt;1?{floor:function(e){for(;s(e=t.floor(e));)e=Ns(e-1);return e},ceil:function(e){for(;s(e=t.ceil(e));)e=Ns(+e+1);return e}}:t))},i.ticks=function(t,e){var r=go(i.domain()),n=null==t?a(r,10):&quot;number&quot;==typeof t?a(r,t):!t.range&amp;&amp;[{range:t},e];return n&amp;&amp;(t=n[0],e=n[1]),t.range(r[0],Ns(+r[1]+1),e&lt;1?1:e)},i.tickFormat=function(){return n},i.copy=function(){return Bs(e.copy(),r,n)},wo(i,e)}function Ns(t){return new Date(t)}Os.iso=Date.prototype.toISOString&amp;&amp;+new Date(&quot;2000-01-01T00:00:00.000Z&quot;)?Fs:Rs,Fs.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},Fs.toString=Rs.toString,Pe.second=Re((function(t){return new ze(1e3*Math.floor(t/1e3))}),(function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))}),(function(t){return t.getSeconds()})),Pe.seconds=Pe.second.range,Pe.seconds.utc=Pe.second.utc.range,Pe.minute=Re((function(t){return new ze(6e4*Math.floor(t/6e4))}),(function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))}),(function(t){return t.getMinutes()})),Pe.minutes=Pe.minute.range,Pe.minutes.utc=Pe.minute.utc.range,Pe.hour=Re((function(t){var e=t.getTimezoneOffset()/60;return new ze(36e5*(Math.floor(t/36e5-e)+e))}),(function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))}),(function(t){return t.getHours()})),Pe.hours=Pe.hour.range,Pe.hours.utc=Pe.hour.utc.range,Pe.month=Re((function(t){return(t=Pe.day(t)).setDate(1),t}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t){return t.getMonth()})),Pe.months=Pe.month.range,Pe.months.utc=Pe.month.utc.range;var js=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Us=[[Pe.second,1],[Pe.second,5],[Pe.second,15],[Pe.second,30],[Pe.minute,1],[Pe.minute,5],[Pe.minute,15],[Pe.minute,30],[Pe.hour,1],[Pe.hour,3],[Pe.hour,6],[Pe.hour,12],[Pe.day,1],[Pe.day,2],[Pe.week,1],[Pe.month,1],[Pe.month,3],[Pe.year,1]],Vs=Os.multi([[&quot;.%L&quot;,function(t){return t.getMilliseconds()}],[&quot;:%S&quot;,function(t){return t.getSeconds()}],[&quot;%I:%M&quot;,function(t){return t.getMinutes()}],[&quot;%I %p&quot;,function(t){return t.getHours()}],[&quot;%a %d&quot;,function(t){return t.getDay()&amp;&amp;1!=t.getDate()}],[&quot;%b %d&quot;,function(t){return 1!=t.getDate()}],[&quot;%B&quot;,function(t){return t.getMonth()}],[&quot;%Y&quot;,Yr]]),qs={range:function(e,r,n){return t.range(Math.ceil(e/n)*n,+r,n).map(Ns)},floor:L,ceil:L};Us.year=Pe.year,Pe.scale=function(){return Bs(t.scale.linear(),Us,Vs)};var Hs=Us.map((function(t){return[t[0].utc,t[1]]})),Gs=Ds.multi([[&quot;.%L&quot;,function(t){return t.getUTCMilliseconds()}],[&quot;:%S&quot;,function(t){return t.getUTCSeconds()}],[&quot;%I:%M&quot;,function(t){return t.getUTCMinutes()}],[&quot;%I %p&quot;,function(t){return t.getUTCHours()}],[&quot;%a %d&quot;,function(t){return t.getUTCDay()&amp;&amp;1!=t.getUTCDate()}],[&quot;%b %d&quot;,function(t){return 1!=t.getUTCDate()}],[&quot;%B&quot;,function(t){return t.getUTCMonth()}],[&quot;%Y&quot;,Yr]]);function Ys(t){return JSON.parse(t.responseText)}function Ws(t){var e=i.createRange();return e.selectNode(i.body),e.createContextualFragment(t.responseText)}Hs.year=Pe.year.utc,Pe.scale.utc=function(){return Bs(t.scale.linear(),Hs,Gs)},t.text=ge((function(t){return t.responseText})),t.json=function(t,e){return me(t,&quot;application/json&quot;,Ys,e)},t.html=function(t,e){return me(t,&quot;text/html&quot;,Ws,e)},t.xml=ge((function(t){return t.responseXML})),&quot;object&quot;==typeof e&amp;&amp;e.exports?e.exports=t:this.d3=t}()},{}],170:[function(t,e,r){e.exports=function(){for(var t=0;t&lt;arguments.length;t++)if(void 0!==arguments[t])return arguments[t]}},{}],171:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;incremental-convex-hull&quot;),i=t(&quot;uniq&quot;);function a(t,e){this.point=t,this.index=e}function o(t,e){for(var r=t.point,n=e.point,i=r.length,a=0;a&lt;i;++a){var o=n[a]-r[a];if(o)return o}return 0}e.exports=function(t,e){var r=t.length;if(0===r)return[];var s=t[0].length;if(s&lt;1)return[];if(1===s)return function(t,e,r){if(1===t)return r?[[-1,0]]:[];var n=e.map((function(t,e){return[t[0],e]}));n.sort((function(t,e){return t[0]-e[0]}));for(var i=new Array(t-1),a=1;a&lt;t;++a){var o=n[a-1],s=n[a];i[a-1]=[o[1],s[1]]}r&amp;&amp;i.push([-1,i[0][1]],[i[t-1][1],-1]);return i}(r,t,e);for(var l=new Array(r),c=1,u=0;u&lt;r;++u){for(var f=t[u],h=new Array(s+1),p=0,d=0;d&lt;s;++d){var g=f[d];h[d]=g,p+=g*g}h[s]=p,l[u]=new a(h,u),c=Math.max(p,c)}i(l,o),r=l.length;var m=new Array(r+s+1),v=new Array(r+s+1),y=(s+1)*(s+1)*c,x=new Array(s+1);for(u=0;u&lt;=s;++u)x[u]=0;x[s]=y,m[0]=x.slice(),v[0]=-1;for(u=0;u&lt;=s;++u){(h=x.slice())[u]=1,m[u+1]=h,v[u+1]=-1}for(u=0;u&lt;r;++u){var b=l[u];m[u+s+1]=b.point,v[u+s+1]=b.index}var _=n(m,!1);_=e?_.filter((function(t){for(var e=0,r=0;r&lt;=s;++r){var n=v[t[r]];if(n&lt;0&amp;&amp;++e&gt;=2)return!1;t[r]=n}return!0})):_.filter((function(t){for(var e=0;e&lt;=s;++e){var r=v[t[e]];if(r&lt;0)return!1;t[e]=r}return!0}));if(1&amp;s)for(u=0;u&lt;_.length;++u){h=(b=_[u])[0];b[0]=b[1],b[1]=h}return _}},{&quot;incremental-convex-hull&quot;:459,uniq:597}],172:[function(t,e,r){&quot;use strict&quot;;e.exports=a;var n=(a.canvas=document.createElement(&quot;canvas&quot;)).getContext(&quot;2d&quot;),i=o([32,126]);function a(t,e){Array.isArray(t)&amp;&amp;(t=t.join(&quot;, &quot;));var r,a={},s=16,l=.05;e&amp;&amp;(2===e.length&amp;&amp;&quot;number&quot;==typeof e[0]?r=o(e):Array.isArray(e)?r=e:(e.o?r=o(e.o):e.pairs&amp;&amp;(r=e.pairs),e.fontSize&amp;&amp;(s=e.fontSize),null!=e.threshold&amp;&amp;(l=e.threshold))),r||(r=i),n.font=s+&quot;px &quot;+t;for(var c=0;c&lt;r.length;c++){var u=r[c],f=n.measureText(u[0]).width+n.measureText(u[1]).width,h=n.measureText(u).width;if(Math.abs(f-h)&gt;s*l){var p=(h-f)/s;a[u]=1e3*p}}return a}function o(t){for(var e=[],r=t[0];r&lt;=t[1];r++)for(var n=String.fromCharCode(r),i=t[0];i&lt;t[1];i++){var a=n+String.fromCharCode(i);e.push(a)}return e}a.createPairs=o,a.ascii=i},{}],173:[function(t,e,r){(function(t){(function(){var r=!1;if(&quot;undefined&quot;!=typeof Float64Array){var n=new Float64Array(1),i=new Uint32Array(n.buffer);if(n[0]=1,r=!0,1072693248===i[1]){e.exports=function(t){return n[0]=t,[i[0],i[1]]},e.exports.pack=function(t,e){return i[0]=t,i[1]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[0]},e.exports.hi=function(t){return n[0]=t,i[1]}}else if(1072693248===i[0]){e.exports=function(t){return n[0]=t,[i[1],i[0]]},e.exports.pack=function(t,e){return i[1]=t,i[0]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[1]},e.exports.hi=function(t){return n[0]=t,i[0]}}else r=!1}if(!r){var a=new t(8);e.exports=function(t){return a.writeDoubleLE(t,0,!0),[a.readUInt32LE(0,!0),a.readUInt32LE(4,!0)]},e.exports.pack=function(t,e){return a.writeUInt32LE(t,0,!0),a.writeUInt32LE(e,4,!0),a.readDoubleLE(0,!0)},e.exports.lo=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(0,!0)},e.exports.hi=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(4,!0)}}e.exports.sign=function(t){return e.exports.hi(t)&gt;&gt;&gt;31},e.exports.exponent=function(t){return(e.exports.hi(t)&lt;&lt;1&gt;&gt;&gt;21)-1023},e.exports.fraction=function(t){var r=e.exports.lo(t),n=e.exports.hi(t),i=1048575&amp;n;return 2146435072&amp;n&amp;&amp;(i+=1&lt;&lt;20),[r,i]},e.exports.denormalized=function(t){return!(2146435072&amp;e.exports.hi(t))}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{buffer:111}],174:[function(t,e,r){var n=t(&quot;abs-svg-path&quot;),i=t(&quot;normalize-svg-path&quot;),a={M:&quot;moveTo&quot;,C:&quot;bezierCurveTo&quot;};e.exports=function(t,e){t.beginPath(),i(n(e)).forEach((function(e){var r=e[0],n=e.slice(1);t[a[r]].apply(t,n)})),t.closePath()}},{&quot;abs-svg-path&quot;:65,&quot;normalize-svg-path&quot;:497}],175:[function(t,e,r){e.exports=function(t){switch(t){case&quot;int8&quot;:return Int8Array;case&quot;int16&quot;:return Int16Array;case&quot;int32&quot;:return Int32Array;case&quot;uint8&quot;:return Uint8Array;case&quot;uint16&quot;:return Uint16Array;case&quot;uint32&quot;:return Uint32Array;case&quot;float32&quot;:return Float32Array;case&quot;float64&quot;:return Float64Array;case&quot;array&quot;:return Array;case&quot;uint8_clamped&quot;:return Uint8ClampedArray}}},{}],176:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){switch(&quot;undefined&quot;==typeof e&amp;&amp;(e=0),typeof t){case&quot;number&quot;:if(t&gt;0)return function(t,e){var r,n;for(r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}(0|t,e);break;case&quot;object&quot;:if(&quot;number&quot;==typeof t.length)return function t(e,r,n){var i=0|e[n];if(i&lt;=0)return[];var a,o=new Array(i);if(n===e.length-1)for(a=0;a&lt;i;++a)o[a]=r;else for(a=0;a&lt;i;++a)o[a]=t(e,r,n+1);return o}(t,e,0)}return[]}},{}],177:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){r=r||2;var n,s,l,c,u,p,d,m=e&amp;&amp;e.length,v=m?e[0]*r:t.length,y=i(t,0,v,r,!0),x=[];if(!y||y.next===y.prev)return x;if(m&amp;&amp;(y=function(t,e,r,n){var o,s,l,c,u,p=[];for(o=0,s=e.length;o&lt;s;o++)l=e[o]*n,c=o&lt;s-1?e[o+1]*n:t.length,(u=i(t,l,c,n,!1))===u.next&amp;&amp;(u.steiner=!0),p.push(g(u));for(p.sort(f),o=0;o&lt;p.length;o++)h(p[o],r),r=a(r,r.next);return r}(t,e,y,r)),t.length&gt;80*r){n=l=t[0],s=c=t[1];for(var b=r;b&lt;v;b+=r)(u=t[b])&lt;n&amp;&amp;(n=u),(p=t[b+1])&lt;s&amp;&amp;(s=p),u&gt;l&amp;&amp;(l=u),p&gt;c&amp;&amp;(c=p);d=0!==(d=Math.max(l-n,c-s))?1/d:0}return o(y,x,r,n,s,d),x}function i(t,e,r,n,i){var a,o;if(i===E(t,e,r,n)&gt;0)for(a=e;a&lt;r;a+=n)o=M(a,t[a],t[a+1],o);else for(a=r-n;a&gt;=e;a-=n)o=M(a,t[a],t[a+1],o);return o&amp;&amp;x(o,o.next)&amp;&amp;(A(o),o=o.next),o}function a(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!x(n,n.next)&amp;&amp;0!==y(n.prev,n,n.next))n=n.next;else{if(A(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function o(t,e,r,n,i,f,h){if(t){!h&amp;&amp;f&amp;&amp;function(t,e,r,n){var i=t;do{null===i.z&amp;&amp;(i.z=d(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e&lt;c&amp;&amp;(s++,n=n.nextZ);e++);for(l=c;s&gt;0||l&gt;0&amp;&amp;n;)0!==s&amp;&amp;(0===l||!n||r.z&lt;=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o&gt;1)}(i)}(t,n,i,f);for(var p,g,m=t;t.prev!==t.next;)if(p=t.prev,g=t.next,f?l(t,n,i,f):s(t))e.push(p.i/r),e.push(t.i/r),e.push(g.i/r),A(t),t=g.next,m=g.next;else if((t=g)===m){h?1===h?o(t=c(a(t),e,r),e,r,n,i,f,2):2===h&amp;&amp;u(t,e,r,n,i,f):o(a(t),e,r,n,i,f,1);break}}}function s(t){var e=t.prev,r=t,n=t.next;if(y(e,r,n)&gt;=0)return!1;for(var i=t.next.next;i!==t.prev;){if(m(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&amp;&amp;y(i.prev,i,i.next)&gt;=0)return!1;i=i.next}return!0}function l(t,e,r,n){var i=t.prev,a=t,o=t.next;if(y(i,a,o)&gt;=0)return!1;for(var s=i.x&lt;a.x?i.x&lt;o.x?i.x:o.x:a.x&lt;o.x?a.x:o.x,l=i.y&lt;a.y?i.y&lt;o.y?i.y:o.y:a.y&lt;o.y?a.y:o.y,c=i.x&gt;a.x?i.x&gt;o.x?i.x:o.x:a.x&gt;o.x?a.x:o.x,u=i.y&gt;a.y?i.y&gt;o.y?i.y:o.y:a.y&gt;o.y?a.y:o.y,f=d(s,l,e,r,n),h=d(c,u,e,r,n),p=t.prevZ,g=t.nextZ;p&amp;&amp;p.z&gt;=f&amp;&amp;g&amp;&amp;g.z&lt;=h;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;y(p.prev,p,p.next)&gt;=0)return!1;if(p=p.prevZ,g!==t.prev&amp;&amp;g!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&amp;&amp;y(g.prev,g,g.next)&gt;=0)return!1;g=g.nextZ}for(;p&amp;&amp;p.z&gt;=f;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;y(p.prev,p,p.next)&gt;=0)return!1;p=p.prevZ}for(;g&amp;&amp;g.z&lt;=h;){if(g!==t.prev&amp;&amp;g!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&amp;&amp;y(g.prev,g,g.next)&gt;=0)return!1;g=g.nextZ}return!0}function c(t,e,r){var n=t;do{var i=n.prev,o=n.next.next;!x(i,o)&amp;&amp;b(i,n,n.next,o)&amp;&amp;T(i,o)&amp;&amp;T(o,i)&amp;&amp;(e.push(i.i/r),e.push(n.i/r),e.push(o.i/r),A(n),A(n.next),n=t=o),n=n.next}while(n!==t);return a(n)}function u(t,e,r,n,i,s){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&amp;&amp;v(l,c)){var u=k(l,c);return l=a(l,l.next),u=a(u,u.next),o(l,e,r,n,i,s),void o(u,e,r,n,i,s)}c=c.next}l=l.next}while(l!==t)}function f(t,e){return t.x-e.x}function h(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a&lt;=n.y&amp;&amp;a&gt;=n.next.y&amp;&amp;n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s&lt;=i&amp;&amp;s&gt;o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x&lt;n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,h=1/0;n=r;do{i&gt;=n.x&amp;&amp;n.x&gt;=u&amp;&amp;i!==n.x&amp;&amp;m(a&lt;f?i:o,a,u,f,a&lt;f?o:i,a,n.x,n.y)&amp;&amp;(l=Math.abs(a-n.y)/(i-n.x),T(n,t)&amp;&amp;(l&lt;h||l===h&amp;&amp;(n.x&gt;r.x||n.x===r.x&amp;&amp;p(r,n)))&amp;&amp;(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e)){var r=k(e,t);a(e,e.next),a(r,r.next)}}function p(t,e){return y(t.prev,t,e.prev)&lt;0&amp;&amp;y(e.next,t,t.next)&lt;0}function d(t,e,r,n,i){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t=32767*(t-r)*i)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e=32767*(e-n)*i)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1}function g(t){var e=t,r=t;do{(e.x&lt;r.x||e.x===r.x&amp;&amp;e.y&lt;r.y)&amp;&amp;(r=e),e=e.next}while(e!==t);return r}function m(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)&gt;=0&amp;&amp;(t-o)*(n-s)-(r-o)*(e-s)&gt;=0&amp;&amp;(r-o)*(a-s)-(i-o)*(n-s)&gt;=0}function v(t,e){return t.next.i!==e.i&amp;&amp;t.prev.i!==e.i&amp;&amp;!function(t,e){var r=t;do{if(r.i!==t.i&amp;&amp;r.next.i!==t.i&amp;&amp;r.i!==e.i&amp;&amp;r.next.i!==e.i&amp;&amp;b(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&amp;&amp;(T(t,e)&amp;&amp;T(e,t)&amp;&amp;function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y&gt;a!=r.next.y&gt;a&amp;&amp;r.next.y!==r.y&amp;&amp;i&lt;(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&amp;&amp;(n=!n),r=r.next}while(r!==t);return n}(t,e)&amp;&amp;(y(t.prev,t,e.prev)||y(t,e.prev,e))||x(t,e)&amp;&amp;y(t.prev,t,t.next)&gt;0&amp;&amp;y(e.prev,e,e.next)&gt;0)}function y(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function x(t,e){return t.x===e.x&amp;&amp;t.y===e.y}function b(t,e,r,n){var i=w(y(t,e,r)),a=w(y(t,e,n)),o=w(y(r,n,t)),s=w(y(r,n,e));return i!==a&amp;&amp;o!==s||(!(0!==i||!_(t,r,e))||(!(0!==a||!_(t,n,e))||(!(0!==o||!_(r,t,n))||!(0!==s||!_(r,e,n)))))}function _(t,e,r){return e.x&lt;=Math.max(t.x,r.x)&amp;&amp;e.x&gt;=Math.min(t.x,r.x)&amp;&amp;e.y&lt;=Math.max(t.y,r.y)&amp;&amp;e.y&gt;=Math.min(t.y,r.y)}function w(t){return t&gt;0?1:t&lt;0?-1:0}function T(t,e){return y(t.prev,t,t.next)&lt;0?y(t,e,t.next)&gt;=0&amp;&amp;y(t,t.prev,e)&gt;=0:y(t,e,t.prev)&lt;0||y(t,t.next,e)&lt;0}function k(t,e){var r=new S(t.i,t.x,t.y),n=new S(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function M(t,e,r,n){var i=new S(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function A(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&amp;&amp;(t.prevZ.nextZ=t.nextZ),t.nextZ&amp;&amp;(t.nextZ.prevZ=t.prevZ)}function S(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function E(t,e,r,n){for(var i=0,a=e,o=r-n;a&lt;r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}e.exports=n,e.exports.default=n,n.deviation=function(t,e,r,n){var i=e&amp;&amp;e.length,a=i?e[0]*r:t.length,o=Math.abs(E(t,0,a,r));if(i)for(var s=0,l=e.length;s&lt;l;s++){var c=e[s]*r,u=s&lt;l-1?e[s+1]*r:t.length;o-=Math.abs(E(t,c,u,r))}var f=0;for(s=0;s&lt;n.length;s+=3){var h=n[s]*r,p=n[s+1]*r,d=n[s+2]*r;f+=Math.abs((t[h]-t[d])*(t[p+1]-t[h+1])-(t[h]-t[p])*(t[d+1]-t[h+1]))}return 0===o&amp;&amp;0===f?0:Math.abs((f-o)/o)},n.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i&lt;t.length;i++){for(var a=0;a&lt;t[i].length;a++)for(var o=0;o&lt;e;o++)r.vertices.push(t[i][a][o]);i&gt;0&amp;&amp;(n+=t[i-1].length,r.holes.push(n))}return r}},{}],178:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.length;if(&quot;number&quot;!=typeof e){e=0;for(var i=0;i&lt;r;++i){var a=t[i];e=Math.max(e,a[0],a[1])}e=1+(0|e)}e|=0;var o=new Array(e);for(i=0;i&lt;e;++i)o[i]=[];for(i=0;i&lt;r;++i){a=t[i];o[a[0]].push(a[1]),o[a[1]].push(a[0])}for(var s=0;s&lt;e;++s)n(o[s],(function(t,e){return t-e}));return o};var n=t(&quot;uniq&quot;)},{uniq:597}],179:[function(t,e,r){var n=t(&quot;strongly-connected-components&quot;);e.exports=function(t,e){var r,i=[],a=[],o=[],s={},l=[];function c(t){var e,n,i=!1;for(a.push(t),o[t]=!0,e=0;e&lt;l[t].length;e++)(n=l[t][e])===r?(u(r,a),i=!0):o[n]||(i=c(n));if(i)!function t(e){o[e]=!1,s.hasOwnProperty(e)&amp;&amp;Object.keys(s[e]).forEach((function(r){delete s[e][r],o[r]&amp;&amp;t(r)}))}(t);else for(e=0;e&lt;l[t].length;e++){n=l[t][e];var f=s[n];f||(f={},s[n]=f),f[n]=!0}return a.pop(),i}function u(t,r){var n=[].concat(r).concat(t);e?e(c):i.push(n)}function f(e){!function(e){for(var r=0;r&lt;t.length;r++)r&lt;e&amp;&amp;(t[r]=[]),t[r]=t[r].filter((function(t){return t&gt;=e}))}(e);for(var r,i=n(t).components.filter((function(t){return t.length&gt;1})),a=1/0,o=0;o&lt;i.length;o++)for(var s=0;s&lt;i[o].length;s++)i[o][s]&lt;a&amp;&amp;(a=i[o][s],r=o);var l=i[r];return!!l&amp;&amp;{leastVertex:a,adjList:t.map((function(t,e){return-1===l.indexOf(e)?[]:t.filter((function(t){return-1!==l.indexOf(t)}))}))}}r=0;for(var h=t.length;r&lt;h;){var p=f(r);if(r=p.leastVertex,l=p.adjList){for(var d=0;d&lt;l.length;d++)for(var g=0;g&lt;l[d].length;g++){var m=l[d][g];o[+m]=!1,s[m]={}}c(r),r+=1}else r=h}return e?void 0:i}},{&quot;strongly-connected-components&quot;:569}],180:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../object/valid-value&quot;);e.exports=function(){return n(this).length=0,this}},{&quot;../../object/valid-value&quot;:211}],181:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Array.from:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:182,&quot;./shim&quot;:183}],182:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e,r=Array.from;return&quot;function&quot;==typeof r&amp;&amp;(e=r(t=[&quot;raz&quot;,&quot;dwa&quot;]),Boolean(e&amp;&amp;e!==t&amp;&amp;&quot;dwa&quot;===e[1]))}},{}],183:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es6-symbol&quot;).iterator,i=t(&quot;../../function/is-arguments&quot;),a=t(&quot;../../function/is-function&quot;),o=t(&quot;../../number/to-pos-integer&quot;),s=t(&quot;../../object/valid-callable&quot;),l=t(&quot;../../object/valid-value&quot;),c=t(&quot;../../object/is-value&quot;),u=t(&quot;../../string/is-string&quot;),f=Array.isArray,h=Function.prototype.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},d=Object.defineProperty;e.exports=function(t){var e,r,g,m,v,y,x,b,_,w,T=arguments[1],k=arguments[2];if(t=Object(l(t)),c(T)&amp;&amp;s(T),this&amp;&amp;this!==Array&amp;&amp;a(this))e=this;else{if(!T){if(i(t))return 1!==(v=t.length)?Array.apply(null,t):((m=new Array(1))[0]=t[0],m);if(f(t)){for(m=new Array(v=t.length),r=0;r&lt;v;++r)m[r]=t[r];return m}}m=[]}if(!f(t))if(void 0!==(_=t[n])){for(x=s(_).call(t),e&amp;&amp;(m=new e),b=x.next(),r=0;!b.done;)w=T?h.call(T,k,b.value,r):b.value,e?(p.value=w,d(m,r,p)):m[r]=w,b=x.next(),++r;v=r}else if(u(t)){for(v=t.length,e&amp;&amp;(m=new e),r=0,g=0;r&lt;v;++r)w=t[r],r+1&lt;v&amp;&amp;(y=w.charCodeAt(0))&gt;=55296&amp;&amp;y&lt;=56319&amp;&amp;(w+=t[++r]),w=T?h.call(T,k,w,g):w,e?(p.value=w,d(m,g,p)):m[g]=w,++g;v=g}if(void 0===v)for(v=o(t.length),e&amp;&amp;(m=new e(v)),r=0;r&lt;v;++r)w=T?h.call(T,k,t[r],r):t[r],e?(p.value=w,d(m,r,p)):m[r]=w;return e&amp;&amp;(p.value=null,m.length=v),m}},{&quot;../../function/is-arguments&quot;:184,&quot;../../function/is-function&quot;:185,&quot;../../number/to-pos-integer&quot;:191,&quot;../../object/is-value&quot;:200,&quot;../../object/valid-callable&quot;:209,&quot;../../object/valid-value&quot;:211,&quot;../../string/is-string&quot;:215,&quot;es6-symbol&quot;:225}],184:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=n.call(function(){return arguments}());e.exports=function(t){return n.call(t)===i}},{}],185:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);e.exports=function(t){return&quot;function&quot;==typeof t&amp;&amp;i(n.call(t))}},{}],186:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){}},{}],187:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Math.sign:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:188,&quot;./shim&quot;:189}],188:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t=Math.sign;return&quot;function&quot;==typeof t&amp;&amp;(1===t(10)&amp;&amp;-1===t(-20))}},{}],189:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t=Number(t),isNaN(t)||0===t?t:t&gt;0?1:-1}},{}],190:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../math/sign&quot;),i=Math.abs,a=Math.floor;e.exports=function(t){return isNaN(t)?0:0!==(t=Number(t))&amp;&amp;isFinite(t)?n(t)*a(i(t)):t}},{&quot;../math/sign&quot;:187}],191:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./to-integer&quot;),i=Math.max;e.exports=function(t){return i(0,n(t))}},{&quot;./to-integer&quot;:190}],192:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./valid-callable&quot;),i=t(&quot;./valid-value&quot;),a=Function.prototype.bind,o=Function.prototype.call,s=Object.keys,l=Object.prototype.propertyIsEnumerable;e.exports=function(t,e){return function(r,c){var u,f=arguments[2],h=arguments[3];return r=Object(i(r)),n(c),u=s(r),h&amp;&amp;u.sort(&quot;function&quot;==typeof h?a.call(h,r):void 0),&quot;function&quot;!=typeof t&amp;&amp;(t=u[t]),o.call(t,u,(function(t,n){return l.call(r,t)?o.call(c,f,r[t],t,r,n):e}))}}},{&quot;./valid-callable&quot;:209,&quot;./valid-value&quot;:211}],193:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.assign:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:194,&quot;./shim&quot;:195}],194:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e=Object.assign;return&quot;function&quot;==typeof e&amp;&amp;(e(t={foo:&quot;raz&quot;},{bar:&quot;dwa&quot;},{trzy:&quot;trzy&quot;}),t.foo+t.bar+t.trzy===&quot;razdwatrzy&quot;)}},{}],195:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../keys&quot;),i=t(&quot;../valid-value&quot;),a=Math.max;e.exports=function(t,e){var r,o,s,l=a(arguments.length,2);for(t=Object(i(t)),s=function(n){try{t[n]=e[n]}catch(t){r||(r=t)}},o=1;o&lt;l;++o)n(e=arguments[o]).forEach(s);if(void 0!==r)throw r;return t}},{&quot;../keys&quot;:201,&quot;../valid-value&quot;:211}],196:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../array/from&quot;),i=t(&quot;./assign&quot;),a=t(&quot;./valid-value&quot;);e.exports=function(t){var e=Object(a(t)),r=arguments[1],o=Object(arguments[2]);if(e!==t&amp;&amp;!r)return e;var s={};return r?n(r,(function(e){(o.ensure||e in t)&amp;&amp;(s[e]=t[e])})):i(s,t),s}},{&quot;../array/from&quot;:181,&quot;./assign&quot;:193,&quot;./valid-value&quot;:211}],197:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o,s=Object.create;t(&quot;./set-prototype-of/is-implemented&quot;)()||(n=t(&quot;./set-prototype-of/shim&quot;)),e.exports=n?1!==n.level?s:(i={},a={},o={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach((function(t){a[t]=&quot;__proto__&quot;!==t?o:{configurable:!0,enumerable:!1,writable:!0,value:void 0}})),Object.defineProperties(i,a),Object.defineProperty(n,&quot;nullPolyfill&quot;,{configurable:!1,enumerable:!1,writable:!1,value:i}),function(t,e){return s(null===t?i:t,e)}):s},{&quot;./set-prototype-of/is-implemented&quot;:207,&quot;./set-prototype-of/shim&quot;:208}],198:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./_iterate&quot;)(&quot;forEach&quot;)},{&quot;./_iterate&quot;:192}],199:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;),i={function:!0,object:!0};e.exports=function(t){return n(t)&amp;&amp;i[typeof t]||!1}},{&quot;./is-value&quot;:200}],200:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../function/noop&quot;)();e.exports=function(t){return t!==n&amp;&amp;null!==t}},{&quot;../function/noop&quot;:186}],201:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.keys:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:202,&quot;./shim&quot;:203}],202:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){try{return Object.keys(&quot;primitive&quot;),!0}catch(t){return!1}}},{}],203:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../is-value&quot;),i=Object.keys;e.exports=function(t){return i(n(t)?Object(t):t)}},{&quot;../is-value&quot;:200}],204:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./valid-callable&quot;),i=t(&quot;./for-each&quot;),a=Function.prototype.call;e.exports=function(t,e){var r={},o=arguments[2];return n(e),i(t,(function(t,n,i,s){r[n]=a.call(e,o,t,n,i,s)})),r}},{&quot;./for-each&quot;:198,&quot;./valid-callable&quot;:209}],205:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;),i=Array.prototype.forEach,a=Object.create,o=function(t,e){var r;for(r in t)e[r]=t[r]};e.exports=function(t){var e=a(null);return i.call(arguments,(function(t){n(t)&amp;&amp;o(Object(t),e)})),e}},{&quot;./is-value&quot;:200}],206:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.setPrototypeOf:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:207,&quot;./shim&quot;:208}],207:[function(t,e,r){&quot;use strict&quot;;var n=Object.create,i=Object.getPrototypeOf,a={};e.exports=function(){var t=Object.setPrototypeOf,e=arguments[0]||n;return&quot;function&quot;==typeof t&amp;&amp;i(t(e(null),a))===a}},{}],208:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;../is-object&quot;),a=t(&quot;../valid-value&quot;),o=Object.prototype.isPrototypeOf,s=Object.defineProperty,l={configurable:!0,enumerable:!1,writable:!0,value:void 0};n=function(t,e){if(a(t),null===e||i(e))return t;throw new TypeError(&quot;Prototype must be null or an object&quot;)},e.exports=function(t){var e,r;return t?(2===t.level?t.set?(r=t.set,e=function(t,e){return r.call(n(t,e),e),t}):e=function(t,e){return n(t,e).__proto__=e,t}:e=function t(e,r){var i;return n(e,r),(i=o.call(t.nullPolyfill,e))&amp;&amp;delete t.nullPolyfill.__proto__,null===r&amp;&amp;(r=t.nullPolyfill),e.__proto__=r,i&amp;&amp;s(t.nullPolyfill,&quot;__proto__&quot;,l),e},Object.defineProperty(e,&quot;level&quot;,{configurable:!1,enumerable:!1,writable:!1,value:t.level})):null}(function(){var t,e=Object.create(null),r={},n=Object.getOwnPropertyDescriptor(Object.prototype,&quot;__proto__&quot;);if(n){try{(t=n.set).call(e,r)}catch(t){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:((e={}).__proto__=r,Object.getPrototypeOf(e)===r&amp;&amp;{level:1})}()),t(&quot;../create&quot;)},{&quot;../create&quot;:197,&quot;../is-object&quot;:199,&quot;../valid-value&quot;:211}],209:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){if(&quot;function&quot;!=typeof t)throw new TypeError(t+&quot; is not a function&quot;);return t}},{}],210:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-object&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not an Object&quot;);return t}},{&quot;./is-object&quot;:199}],211:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;);e.exports=function(t){if(!n(t))throw new TypeError(&quot;Cannot use null or undefined&quot;);return t}},{&quot;./is-value&quot;:200}],212:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?String.prototype.contains:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:213,&quot;./shim&quot;:214}],213:[function(t,e,r){&quot;use strict&quot;;var n=&quot;razdwatrzy&quot;;e.exports=function(){return&quot;function&quot;==typeof n.contains&amp;&amp;(!0===n.contains(&quot;dwa&quot;)&amp;&amp;!1===n.contains(&quot;foo&quot;))}},{}],214:[function(t,e,r){&quot;use strict&quot;;var n=String.prototype.indexOf;e.exports=function(t){return n.call(this,t,arguments[1])&gt;-1}},{}],215:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=n.call(&quot;&quot;);e.exports=function(t){return&quot;string&quot;==typeof t||t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;(t instanceof String||n.call(t)===i)||!1}},{}],216:[function(t,e,r){&quot;use strict&quot;;var n=Object.create(null),i=Math.random;e.exports=function(){var t;do{t=i().toString(36).slice(2)}while(n[t]);return t}},{}],217:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/set-prototype-of&quot;),a=t(&quot;es5-ext/string/#/contains&quot;),o=t(&quot;d&quot;),s=t(&quot;es6-symbol&quot;),l=t(&quot;./&quot;),c=Object.defineProperty;n=e.exports=function(t,e){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);l.call(this,t),e=e?a.call(e,&quot;key+value&quot;)?&quot;key+value&quot;:a.call(e,&quot;key&quot;)?&quot;key&quot;:&quot;value&quot;:&quot;value&quot;,c(this,&quot;__kind__&quot;,o(&quot;&quot;,e))},i&amp;&amp;i(n,l),delete n.prototype.constructor,n.prototype=Object.create(l.prototype,{_resolve:o((function(t){return&quot;value&quot;===this.__kind__?this.__list__[t]:&quot;key+value&quot;===this.__kind__?[t,this.__list__[t]]:t}))}),c(n.prototype,s.toStringTag,o(&quot;c&quot;,&quot;Array Iterator&quot;))},{&quot;./&quot;:220,d:155,&quot;es5-ext/object/set-prototype-of&quot;:206,&quot;es5-ext/string/#/contains&quot;:212,&quot;es6-symbol&quot;:225}],218:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/object/valid-callable&quot;),a=t(&quot;es5-ext/string/is-string&quot;),o=t(&quot;./get&quot;),s=Array.isArray,l=Function.prototype.call,c=Array.prototype.some;e.exports=function(t,e){var r,u,f,h,p,d,g,m,v=arguments[2];if(s(t)||n(t)?r=&quot;array&quot;:a(t)?r=&quot;string&quot;:t=o(t),i(e),f=function(){h=!0},&quot;array&quot;!==r)if(&quot;string&quot;!==r)for(u=t.next();!u.done;){if(l.call(e,v,u.value,f),h)return;u=t.next()}else for(d=t.length,p=0;p&lt;d&amp;&amp;(g=t[p],p+1&lt;d&amp;&amp;(m=g.charCodeAt(0))&gt;=55296&amp;&amp;m&lt;=56319&amp;&amp;(g+=t[++p]),l.call(e,v,g,f),!h);++p);else c.call(t,(function(t){return l.call(e,v,t,f),h}))}},{&quot;./get&quot;:219,&quot;es5-ext/function/is-arguments&quot;:184,&quot;es5-ext/object/valid-callable&quot;:209,&quot;es5-ext/string/is-string&quot;:215}],219:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/string/is-string&quot;),a=t(&quot;./array&quot;),o=t(&quot;./string&quot;),s=t(&quot;./valid-iterable&quot;),l=t(&quot;es6-symbol&quot;).iterator;e.exports=function(t){return&quot;function&quot;==typeof s(t)[l]?t[l]():n(t)?new a(t):i(t)?new o(t):new a(t)}},{&quot;./array&quot;:217,&quot;./string&quot;:222,&quot;./valid-iterable&quot;:223,&quot;es5-ext/function/is-arguments&quot;:184,&quot;es5-ext/string/is-string&quot;:215,&quot;es6-symbol&quot;:225}],220:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/array/#/clear&quot;),a=t(&quot;es5-ext/object/assign&quot;),o=t(&quot;es5-ext/object/valid-callable&quot;),s=t(&quot;es5-ext/object/valid-value&quot;),l=t(&quot;d&quot;),c=t(&quot;d/auto-bind&quot;),u=t(&quot;es6-symbol&quot;),f=Object.defineProperty,h=Object.defineProperties;e.exports=n=function(t,e){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);h(this,{__list__:l(&quot;w&quot;,s(t)),__context__:l(&quot;w&quot;,e),__nextIndex__:l(&quot;w&quot;,0)}),e&amp;&amp;(o(e.on),e.on(&quot;_add&quot;,this._onAdd),e.on(&quot;_delete&quot;,this._onDelete),e.on(&quot;_clear&quot;,this._onClear))},delete n.prototype.constructor,h(n.prototype,a({_next:l((function(){var t;if(this.__list__)return this.__redo__&amp;&amp;void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__&lt;this.__list__.length?this.__nextIndex__++:void this._unBind()})),next:l((function(){return this._createResult(this._next())})),_createResult:l((function(t){return void 0===t?{done:!0,value:void 0}:{done:!1,value:this._resolve(t)}})),_resolve:l((function(t){return this.__list__[t]})),_unBind:l((function(){this.__list__=null,delete this.__redo__,this.__context__&amp;&amp;(this.__context__.off(&quot;_add&quot;,this._onAdd),this.__context__.off(&quot;_delete&quot;,this._onDelete),this.__context__.off(&quot;_clear&quot;,this._onClear),this.__context__=null)})),toString:l((function(){return&quot;[object &quot;+(this[u.toStringTag]||&quot;Object&quot;)+&quot;]&quot;}))},c({_onAdd:l((function(t){t&gt;=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach((function(e,r){e&gt;=t&amp;&amp;(this.__redo__[r]=++e)}),this),this.__redo__.push(t)):f(this,&quot;__redo__&quot;,l(&quot;c&quot;,[t])))})),_onDelete:l((function(t){var e;t&gt;=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&amp;&amp;(-1!==(e=this.__redo__.indexOf(t))&amp;&amp;this.__redo__.splice(e,1),this.__redo__.forEach((function(e,r){e&gt;t&amp;&amp;(this.__redo__[r]=--e)}),this)))})),_onClear:l((function(){this.__redo__&amp;&amp;i.call(this.__redo__),this.__nextIndex__=0}))}))),f(n.prototype,u.iterator,l((function(){return this})))},{d:155,&quot;d/auto-bind&quot;:154,&quot;es5-ext/array/#/clear&quot;:180,&quot;es5-ext/object/assign&quot;:193,&quot;es5-ext/object/valid-callable&quot;:209,&quot;es5-ext/object/valid-value&quot;:211,&quot;es6-symbol&quot;:225}],221:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/object/is-value&quot;),a=t(&quot;es5-ext/string/is-string&quot;),o=t(&quot;es6-symbol&quot;).iterator,s=Array.isArray;e.exports=function(t){return!!i(t)&amp;&amp;(!!s(t)||(!!a(t)||(!!n(t)||&quot;function&quot;==typeof t[o])))}},{&quot;es5-ext/function/is-arguments&quot;:184,&quot;es5-ext/object/is-value&quot;:200,&quot;es5-ext/string/is-string&quot;:215,&quot;es6-symbol&quot;:225}],222:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/set-prototype-of&quot;),a=t(&quot;d&quot;),o=t(&quot;es6-symbol&quot;),s=t(&quot;./&quot;),l=Object.defineProperty;n=e.exports=function(t){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);t=String(t),s.call(this,t),l(this,&quot;__length__&quot;,a(&quot;&quot;,t.length))},i&amp;&amp;i(n,s),delete n.prototype.constructor,n.prototype=Object.create(s.prototype,{_next:a((function(){if(this.__list__)return this.__nextIndex__&lt;this.__length__?this.__nextIndex__++:void this._unBind()})),_resolve:a((function(t){var e,r=this.__list__[t];return this.__nextIndex__===this.__length__?r:(e=r.charCodeAt(0))&gt;=55296&amp;&amp;e&lt;=56319?r+this.__list__[this.__nextIndex__++]:r}))}),l(n.prototype,o.toStringTag,a(&quot;c&quot;,&quot;String Iterator&quot;))},{&quot;./&quot;:220,d:155,&quot;es5-ext/object/set-prototype-of&quot;:206,&quot;es6-symbol&quot;:225}],223:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-iterable&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not iterable&quot;);return t}},{&quot;./is-iterable&quot;:221}],224:[function(t,e,r){(function(n,i){(function(){
/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
 * @version   v4.2.8+1e68dce6
 */
!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?e.exports=n():t.ES6Promise=n()}(this,(function(){&quot;use strict&quot;;function e(t){return&quot;function&quot;==typeof t}var r=Array.isArray?Array.isArray:function(t){return&quot;[object Array]&quot;===Object.prototype.toString.call(t)},a=0,o=void 0,s=void 0,l=function(t,e){g[a]=t,g[a+1]=e,2===(a+=2)&amp;&amp;(s?s(m):_())};var c=&quot;undefined&quot;!=typeof window?window:void 0,u=c||{},f=u.MutationObserver||u.WebKitMutationObserver,h=&quot;undefined&quot;==typeof self&amp;&amp;&quot;undefined&quot;!=typeof n&amp;&amp;&quot;[object process]&quot;==={}.toString.call(n),p=&quot;undefined&quot;!=typeof Uint8ClampedArray&amp;&amp;&quot;undefined&quot;!=typeof importScripts&amp;&amp;&quot;undefined&quot;!=typeof MessageChannel;function d(){var t=setTimeout;return function(){return t(m,1)}}var g=new Array(1e3);function m(){for(var t=0;t&lt;a;t+=2){(0,g[t])(g[t+1]),g[t]=void 0,g[t+1]=void 0}a=0}var v,y,x,b,_=void 0;function w(t,e){var r=this,n=new this.constructor(M);void 0===n[k]&amp;&amp;D(n);var i=r._state;if(i){var a=arguments[i-1];l((function(){return z(i,n,a,r._result)}))}else I(r,n,t,e);return n}function T(t){if(t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;t.constructor===this)return t;var e=new this(M);return S(e,t),e}h?_=function(){return n.nextTick(m)}:f?(y=0,x=new f(m),b=document.createTextNode(&quot;&quot;),x.observe(b,{characterData:!0}),_=function(){b.data=y=++y%2}):p?((v=new MessageChannel).port1.onmessage=m,_=function(){return v.port2.postMessage(0)}):_=void 0===c&amp;&amp;&quot;function&quot;==typeof t?function(){try{var t=Function(&quot;return this&quot;)().require(&quot;vertx&quot;);return&quot;undefined&quot;!=typeof(o=t.runOnLoop||t.runOnContext)?function(){o(m)}:d()}catch(t){return d()}}():d();var k=Math.random().toString(36).substring(2);function M(){}function A(t,r,n){r.constructor===t.constructor&amp;&amp;n===w&amp;&amp;r.constructor.resolve===T?function(t,e){1===e._state?C(t,e._result):2===e._state?L(t,e._result):I(e,void 0,(function(e){return S(t,e)}),(function(e){return L(t,e)}))}(t,r):void 0===n?C(t,r):e(n)?function(t,e,r){l((function(t){var n=!1,i=function(t,e,r,n){try{t.call(e,r,n)}catch(t){return t}}(r,e,(function(r){n||(n=!0,e!==r?S(t,r):C(t,r))}),(function(e){n||(n=!0,L(t,e))}),t._label);!n&amp;&amp;i&amp;&amp;(n=!0,L(t,i))}),t)}(t,r,n):C(t,r)}function S(t,e){if(t===e)L(t,new TypeError(&quot;You cannot resolve a promise with itself&quot;));else if(i=typeof(n=e),null===n||&quot;object&quot;!==i&amp;&amp;&quot;function&quot;!==i)C(t,e);else{var r=void 0;try{r=e.then}catch(e){return void L(t,e)}A(t,e,r)}var n,i}function E(t){t._onerror&amp;&amp;t._onerror(t._result),P(t)}function C(t,e){void 0===t._state&amp;&amp;(t._result=e,t._state=1,0!==t._subscribers.length&amp;&amp;l(P,t))}function L(t,e){void 0===t._state&amp;&amp;(t._state=2,t._result=e,l(E,t))}function I(t,e,r,n){var i=t._subscribers,a=i.length;t._onerror=null,i[a]=e,i[a+1]=r,i[a+2]=n,0===a&amp;&amp;t._state&amp;&amp;l(P,t)}function P(t){var e=t._subscribers,r=t._state;if(0!==e.length){for(var n=void 0,i=void 0,a=t._result,o=0;o&lt;e.length;o+=3)n=e[o],i=e[o+r],n?z(r,n,i,a):i(a);t._subscribers.length=0}}function z(t,r,n,i){var a=e(n),o=void 0,s=void 0,l=!0;if(a){try{o=n(i)}catch(t){l=!1,s=t}if(r===o)return void L(r,new TypeError(&quot;A promises callback cannot return that same promise.&quot;))}else o=i;void 0!==r._state||(a&amp;&amp;l?S(r,o):!1===l?L(r,s):1===t?C(r,o):2===t&amp;&amp;L(r,o))}var O=0;function D(t){t[k]=O++,t._state=void 0,t._result=void 0,t._subscribers=[]}var R=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(M),this.promise[k]||D(this.promise),r(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?C(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&amp;&amp;C(this.promise,this._result))):L(this.promise,new Error(&quot;Array Methods must be provided an Array&quot;))}return t.prototype._enumerate=function(t){for(var e=0;void 0===this._state&amp;&amp;e&lt;t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,n=r.resolve;if(n===T){var i=void 0,a=void 0,o=!1;try{i=t.then}catch(t){o=!0,a=t}if(i===w&amp;&amp;void 0!==t._state)this._settledAt(t._state,e,t._result);else if(&quot;function&quot;!=typeof i)this._remaining--,this._result[e]=t;else if(r===F){var s=new r(M);o?L(s,a):A(s,t,i),this._willSettleAt(s,e)}else this._willSettleAt(new r((function(e){return e(t)})),e)}else this._willSettleAt(n(t),e)},t.prototype._settledAt=function(t,e,r){var n=this.promise;void 0===n._state&amp;&amp;(this._remaining--,2===t?L(n,r):this._result[e]=r),0===this._remaining&amp;&amp;C(n,this._result)},t.prototype._willSettleAt=function(t,e){var r=this;I(t,void 0,(function(t){return r._settledAt(1,e,t)}),(function(t){return r._settledAt(2,e,t)}))},t}();var F=function(){function t(e){this[k]=O++,this._result=this._state=void 0,this._subscribers=[],M!==e&amp;&amp;(&quot;function&quot;!=typeof e&amp;&amp;function(){throw new TypeError(&quot;You must pass a resolver function as the first argument to the promise constructor&quot;)}(),this instanceof t?function(t,e){try{e((function(e){S(t,e)}),(function(e){L(t,e)}))}catch(e){L(t,e)}}(this,e):function(){throw new TypeError(&quot;Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.&quot;)}())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var r=this.constructor;return e(t)?this.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){throw e}))})):this.then(t,t)},t}();return F.prototype.then=w,F.all=function(t){return new R(this,t).promise},F.race=function(t){var e=this;return r(t)?new e((function(r,n){for(var i=t.length,a=0;a&lt;i;a++)e.resolve(t[a]).then(r,n)})):new e((function(t,e){return e(new TypeError(&quot;You must pass an array to race.&quot;))}))},F.resolve=T,F.reject=function(t){var e=new this(M);return L(e,t),e},F._setScheduler=function(t){s=t},F._setAsap=function(t){l=t},F._asap=l,F.polyfill=function(){var t=void 0;if(&quot;undefined&quot;!=typeof i)t=i;else if(&quot;undefined&quot;!=typeof self)t=self;else try{t=Function(&quot;return this&quot;)()}catch(t){throw new Error(&quot;polyfill failed because global object is unavailable in this environment&quot;)}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if(&quot;[object Promise]&quot;===r&amp;&amp;!e.cast)return}t.Promise=F},F.Promise=F,F}))}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{_process:526}],225:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?t(&quot;ext/global-this&quot;).Symbol:t(&quot;./polyfill&quot;)},{&quot;./is-implemented&quot;:226,&quot;./polyfill&quot;:231,&quot;ext/global-this&quot;:238}],226:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ext/global-this&quot;),i={object:!0,symbol:!0};e.exports=function(){var t,e=n.Symbol;if(&quot;function&quot;!=typeof e)return!1;t=e(&quot;test symbol&quot;);try{String(t)}catch(t){return!1}return!!i[typeof e.iterator]&amp;&amp;(!!i[typeof e.toPrimitive]&amp;&amp;!!i[typeof e.toStringTag])}},{&quot;ext/global-this&quot;:238}],227:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return!!t&amp;&amp;(&quot;symbol&quot;==typeof t||!!t.constructor&amp;&amp;(&quot;Symbol&quot;===t.constructor.name&amp;&amp;&quot;Symbol&quot;===t[t.constructor.toStringTag]))}},{}],228:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=Object.create,a=Object.defineProperty,o=Object.prototype,s=i(null);e.exports=function(t){for(var e,r,i=0;s[t+(i||&quot;&quot;)];)++i;return s[t+=i||&quot;&quot;]=!0,a(o,e=&quot;@@&quot;+t,n.gs(null,(function(t){r||(r=!0,a(this,e,n(t)),r=!1)}))),e}},{d:155}],229:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=t(&quot;ext/global-this&quot;).Symbol;e.exports=function(t){return Object.defineProperties(t,{hasInstance:n(&quot;&quot;,i&amp;&amp;i.hasInstance||t(&quot;hasInstance&quot;)),isConcatSpreadable:n(&quot;&quot;,i&amp;&amp;i.isConcatSpreadable||t(&quot;isConcatSpreadable&quot;)),iterator:n(&quot;&quot;,i&amp;&amp;i.iterator||t(&quot;iterator&quot;)),match:n(&quot;&quot;,i&amp;&amp;i.match||t(&quot;match&quot;)),replace:n(&quot;&quot;,i&amp;&amp;i.replace||t(&quot;replace&quot;)),search:n(&quot;&quot;,i&amp;&amp;i.search||t(&quot;search&quot;)),species:n(&quot;&quot;,i&amp;&amp;i.species||t(&quot;species&quot;)),split:n(&quot;&quot;,i&amp;&amp;i.split||t(&quot;split&quot;)),toPrimitive:n(&quot;&quot;,i&amp;&amp;i.toPrimitive||t(&quot;toPrimitive&quot;)),toStringTag:n(&quot;&quot;,i&amp;&amp;i.toStringTag||t(&quot;toStringTag&quot;)),unscopables:n(&quot;&quot;,i&amp;&amp;i.unscopables||t(&quot;unscopables&quot;))})}},{d:155,&quot;ext/global-this&quot;:238}],230:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=t(&quot;../../../validate-symbol&quot;),a=Object.create(null);e.exports=function(t){return Object.defineProperties(t,{for:n((function(e){return a[e]?a[e]:a[e]=t(String(e))})),keyFor:n((function(t){var e;for(e in i(t),a)if(a[e]===t)return e}))})}},{&quot;../../../validate-symbol&quot;:232,d:155}],231:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o=t(&quot;d&quot;),s=t(&quot;./validate-symbol&quot;),l=t(&quot;ext/global-this&quot;).Symbol,c=t(&quot;./lib/private/generate-name&quot;),u=t(&quot;./lib/private/setup/standard-symbols&quot;),f=t(&quot;./lib/private/setup/symbol-registry&quot;),h=Object.create,p=Object.defineProperties,d=Object.defineProperty;if(&quot;function&quot;==typeof l)try{String(l()),a=!0}catch(t){}else l=null;i=function(t){if(this instanceof i)throw new TypeError(&quot;Symbol is not a constructor&quot;);return n(t)},e.exports=n=function t(e){var r;if(this instanceof t)throw new TypeError(&quot;Symbol is not a constructor&quot;);return a?l(e):(r=h(i.prototype),e=void 0===e?&quot;&quot;:String(e),p(r,{__description__:o(&quot;&quot;,e),__name__:o(&quot;&quot;,c(e))}))},u(n),f(n),p(i.prototype,{constructor:o(n),toString:o(&quot;&quot;,(function(){return this.__name__}))}),p(n.prototype,{toString:o((function(){return&quot;Symbol (&quot;+s(this).__description__+&quot;)&quot;})),valueOf:o((function(){return s(this)}))}),d(n.prototype,n.toPrimitive,o(&quot;&quot;,(function(){var t=s(this);return&quot;symbol&quot;==typeof t?t:t.toString()}))),d(n.prototype,n.toStringTag,o(&quot;c&quot;,&quot;Symbol&quot;)),d(i.prototype,n.toStringTag,o(&quot;c&quot;,n.prototype[n.toStringTag])),d(i.prototype,n.toPrimitive,o(&quot;c&quot;,n.prototype[n.toPrimitive]))},{&quot;./lib/private/generate-name&quot;:228,&quot;./lib/private/setup/standard-symbols&quot;:229,&quot;./lib/private/setup/symbol-registry&quot;:230,&quot;./validate-symbol&quot;:232,d:155,&quot;ext/global-this&quot;:238}],232:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-symbol&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not a symbol&quot;);return t}},{&quot;./is-symbol&quot;:227}],233:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?WeakMap:t(&quot;./polyfill&quot;)},{&quot;./is-implemented&quot;:234,&quot;./polyfill&quot;:236}],234:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e;if(&quot;function&quot;!=typeof WeakMap)return!1;try{t=new WeakMap([[e={},&quot;one&quot;],[{},&quot;two&quot;],[{},&quot;three&quot;]])}catch(t){return!1}return&quot;[object WeakMap]&quot;===String(t)&amp;&amp;(&quot;function&quot;==typeof t.set&amp;&amp;(t.set({},1)===t&amp;&amp;(&quot;function&quot;==typeof t.delete&amp;&amp;(&quot;function&quot;==typeof t.has&amp;&amp;&quot;one&quot;===t.get(e)))))}},{}],235:[function(t,e,r){&quot;use strict&quot;;e.exports=&quot;function&quot;==typeof WeakMap&amp;&amp;&quot;[object WeakMap]&quot;===Object.prototype.toString.call(new WeakMap)},{}],236:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/is-value&quot;),a=t(&quot;es5-ext/object/set-prototype-of&quot;),o=t(&quot;es5-ext/object/valid-object&quot;),s=t(&quot;es5-ext/object/valid-value&quot;),l=t(&quot;es5-ext/string/random-uniq&quot;),c=t(&quot;d&quot;),u=t(&quot;es6-iterator/get&quot;),f=t(&quot;es6-iterator/for-of&quot;),h=t(&quot;es6-symbol&quot;).toStringTag,p=t(&quot;./is-native-implemented&quot;),d=Array.isArray,g=Object.defineProperty,m=Object.prototype.hasOwnProperty,v=Object.getPrototypeOf;e.exports=n=function(){var t,e=arguments[0];if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);return t=p&amp;&amp;a&amp;&amp;WeakMap!==n?a(new WeakMap,v(this)):this,i(e)&amp;&amp;(d(e)||(e=u(e))),g(t,&quot;__weakMapData__&quot;,c(&quot;c&quot;,&quot;$weakMap$&quot;+l())),e?(f(e,(function(e){s(e),t.set(e[0],e[1])})),t):t},p&amp;&amp;(a&amp;&amp;a(n,WeakMap),n.prototype=Object.create(WeakMap.prototype,{constructor:c(n)})),Object.defineProperties(n.prototype,{delete:c((function(t){return!!m.call(o(t),this.__weakMapData__)&amp;&amp;(delete t[this.__weakMapData__],!0)})),get:c((function(t){if(m.call(o(t),this.__weakMapData__))return t[this.__weakMapData__]})),has:c((function(t){return m.call(o(t),this.__weakMapData__)})),set:c((function(t,e){return g(o(t),this.__weakMapData__,c(&quot;c&quot;,e)),this})),toString:c((function(){return&quot;[object WeakMap]&quot;}))}),g(n.prototype,h,c(&quot;c&quot;,&quot;WeakMap&quot;))},{&quot;./is-native-implemented&quot;:235,d:155,&quot;es5-ext/object/is-value&quot;:200,&quot;es5-ext/object/set-prototype-of&quot;:206,&quot;es5-ext/object/valid-object&quot;:210,&quot;es5-ext/object/valid-value&quot;:211,&quot;es5-ext/string/random-uniq&quot;:216,&quot;es6-iterator/for-of&quot;:218,&quot;es6-iterator/get&quot;:219,&quot;es6-symbol&quot;:225}],237:[function(t,e,r){var n=function(){if(&quot;object&quot;==typeof self&amp;&amp;self)return self;if(&quot;object&quot;==typeof window&amp;&amp;window)return window;throw new Error(&quot;Unable to resolve global `this`&quot;)};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,&quot;__global__&quot;,{get:function(){return this},configurable:!0})}catch(t){return n()}try{return __global__||n()}finally{delete Object.prototype.__global__}}()},{}],238:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?globalThis:t(&quot;./implementation&quot;)},{&quot;./implementation&quot;:237,&quot;./is-implemented&quot;:239}],239:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){return&quot;object&quot;==typeof globalThis&amp;&amp;(!!globalThis&amp;&amp;globalThis.Array===Array)}},{}],240:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n=e||0,i=r||1;return[[t[12]+t[0],t[13]+t[1],t[14]+t[2],t[15]+t[3]],[t[12]-t[0],t[13]-t[1],t[14]-t[2],t[15]-t[3]],[t[12]+t[4],t[13]+t[5],t[14]+t[6],t[15]+t[7]],[t[12]-t[4],t[13]-t[5],t[14]-t[6],t[15]-t[7]],[n*t[12]+t[8],n*t[13]+t[9],n*t[14]+t[10],n*t[15]+t[11]],[i*t[12]-t[8],i*t[13]-t[9],i*t[14]-t[10],i*t[15]-t[11]]]}},{}],241:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-string-blank&quot;);e.exports=function(t){var e=typeof t;if(&quot;string&quot;===e){var r=t;if(0===(t=+t)&amp;&amp;n(r))return!1}else if(&quot;number&quot;!==e)return!1;return t-t&lt;1}},{&quot;is-string-blank&quot;:470}],242:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){switch(arguments.length){case 0:return new o([0],[0],0);case 1:return&quot;number&quot;==typeof t?new o(n=l(t),n,0):new o(t,l(t.length),0);case 2:if(&quot;number&quot;==typeof e){var n=l(t.length);return new o(t,n,+e)}r=0;case 3:if(t.length!==e.length)throw new Error(&quot;state and velocity lengths must match&quot;);return new o(t,e,r)}};var n=t(&quot;cubic-hermite&quot;),i=t(&quot;binary-search-bounds&quot;);function a(t,e,r){return Math.min(e,Math.max(t,r))}function o(t,e,r){this.dimension=t.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var n=0;n&lt;this.dimension;++n)this.bounds[0][n]=-1/0,this.bounds[1][n]=1/0;this._state=t.slice().reverse(),this._velocity=e.slice().reverse(),this._time=[r],this._scratch=[t.slice(),t.slice(),t.slice(),t.slice(),t.slice()]}var s=o.prototype;function l(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=0;return e}s.flush=function(t){var e=i.gt(this._time,t)-1;e&lt;=0||(this._time.splice(0,e),this._state.splice(0,e*this.dimension),this._velocity.splice(0,e*this.dimension))},s.curve=function(t){var e=this._time,r=e.length,o=i.le(e,t),s=this._scratch[0],l=this._state,c=this._velocity,u=this.dimension,f=this.bounds;if(o&lt;0)for(var h=u-1,p=0;p&lt;u;++p,--h)s[p]=l[h];else if(o&gt;=r-1){h=l.length-1;var d=t-e[r-1];for(p=0;p&lt;u;++p,--h)s[p]=l[h]+d*c[h]}else{h=u*(o+1)-1;var g=e[o],m=e[o+1]-g||1,v=this._scratch[1],y=this._scratch[2],x=this._scratch[3],b=this._scratch[4],_=!0;for(p=0;p&lt;u;++p,--h)v[p]=l[h],x[p]=c[h]*m,y[p]=l[h+u],b[p]=c[h+u]*m,_=_&amp;&amp;v[p]===y[p]&amp;&amp;x[p]===b[p]&amp;&amp;0===x[p];if(_)for(p=0;p&lt;u;++p)s[p]=v[p];else n(v,x,y,b,(t-g)/m,s)}var w=f[0],T=f[1];for(p=0;p&lt;u;++p)s[p]=a(w[p],T[p],s[p]);return s},s.dcurve=function(t){var e=this._time,r=e.length,a=i.le(e,t),o=this._scratch[0],s=this._state,l=this._velocity,c=this.dimension;if(a&gt;=r-1)for(var u=s.length-1,f=(e[r-1],0);f&lt;c;++f,--u)o[f]=l[u];else{u=c*(a+1)-1;var h=e[a],p=e[a+1]-h||1,d=this._scratch[1],g=this._scratch[2],m=this._scratch[3],v=this._scratch[4],y=!0;for(f=0;f&lt;c;++f,--u)d[f]=s[u],m[f]=l[u]*p,g[f]=s[u+c],v[f]=l[u+c]*p,y=y&amp;&amp;d[f]===g[f]&amp;&amp;m[f]===v[f]&amp;&amp;0===m[f];if(y)for(f=0;f&lt;c;++f)o[f]=0;else{n.derivative(d,m,g,v,(t-h)/p,o);for(f=0;f&lt;c;++f)o[f]/=p}}return o},s.lastT=function(){var t=this._time;return t[t.length-1]},s.stable=function(){for(var t=this._velocity,e=t.length,r=this.dimension-1;r&gt;=0;--r)if(t[--e])return!1;return!0},s.jump=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1];this._time.push(e,t);for(var u=0;u&lt;2;++u)for(var f=0;f&lt;r;++f)n.push(n[o++]),i.push(0);this._time.push(t);for(f=r;f&gt;0;--f)n.push(a(l[f-1],c[f-1],arguments[f])),i.push(0)}},s.push=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=t-e,l=this.bounds,c=l[0],u=l[1],f=s&gt;1e-6?1/s:0;this._time.push(t);for(var h=r;h&gt;0;--h){var p=a(c[h-1],u[h-1],arguments[h]);n.push(p),i.push((p-n[o++])*f)}}},s.set=function(t){var e=this.dimension;if(!(t&lt;this.lastT()||arguments.length!==e+1)){var r=this._state,n=this._velocity,i=this.bounds,o=i[0],s=i[1];this._time.push(t);for(var l=e;l&gt;0;--l)r.push(a(o[l-1],s[l-1],arguments[l])),n.push(0)}},s.move=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;=e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1],u=t-e,f=u&gt;1e-6?1/u:0;this._time.push(t);for(var h=r;h&gt;0;--h){var p=arguments[h];n.push(a(l[h-1],c[h-1],n[o++]+p)),i.push(p*f)}}},s.idle=function(t){var e=this.lastT();if(!(t&lt;e)){var r=this.dimension,n=this._state,i=this._velocity,o=n.length-r,s=this.bounds,l=s[0],c=s[1],u=t-e;this._time.push(t);for(var f=r-1;f&gt;=0;--f)n.push(a(l[f],c[f],n[o]+u*i[o])),i.push(0),o+=1}}},{&quot;binary-search-bounds&quot;:243,&quot;cubic-hermite&quot;:150}],243:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i,a){var o=[&quot;function &quot;,t,&quot;(a,l,h,&quot;,n.join(&quot;,&quot;),&quot;){&quot;,a?&quot;&quot;:&quot;var i=&quot;,r?&quot;l-1&quot;:&quot;h+1&quot;,&quot;;while(l&lt;=h){var m=(l+h)&gt;&gt;&gt;1,x=a&quot;,i?&quot;.get(m)&quot;:&quot;[m]&quot;];return a?e.indexOf(&quot;c&quot;)&lt;0?o.push(&quot;;if(x===y){return m}else if(x&lt;=y){&quot;):o.push(&quot;;var p=c(x,y);if(p===0){return m}else if(p&lt;=0){&quot;):o.push(&quot;;if(&quot;,e,&quot;){i=m;&quot;),r?o.push(&quot;l=m+1}else{h=m-1}&quot;):o.push(&quot;h=m-1}else{l=m+1}&quot;),o.push(&quot;}&quot;),a?o.push(&quot;return -1};&quot;):o.push(&quot;return i};&quot;),o.join(&quot;&quot;)}function i(t,e,r,i){return new Function([n(&quot;A&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],!1,i),n(&quot;B&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],!0,i),n(&quot;P&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],!1,i),n(&quot;Q&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],!0,i),&quot;function dispatchBsearch&quot;,r,&quot;(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch&quot;,r].join(&quot;&quot;))()}e.exports={ge:i(&quot;&gt;=&quot;,!1,&quot;GE&quot;),gt:i(&quot;&gt;&quot;,!1,&quot;GT&quot;),lt:i(&quot;&lt;&quot;,!0,&quot;LT&quot;),le:i(&quot;&lt;=&quot;,!0,&quot;LE&quot;),eq:i(&quot;-&quot;,!0,&quot;EQ&quot;,!0)}},{}],244:[function(t,e,r){var n=t(&quot;dtype&quot;);e.exports=function(t,e,r){if(!t)throw new TypeError(&quot;must specify data as first parameter&quot;);if(r=0|+(r||0),Array.isArray(t)&amp;&amp;t[0]&amp;&amp;&quot;number&quot;==typeof t[0][0]){var i,a,o,s,l=t[0].length,c=t.length*l;e&amp;&amp;&quot;string&quot;!=typeof e||(e=new(n(e||&quot;float32&quot;))(c+r));var u=e.length-r;if(c!==u)throw new Error(&quot;source length &quot;+c+&quot; (&quot;+l+&quot;x&quot;+t.length+&quot;) does not match destination length &quot;+u);for(i=0,o=r;i&lt;t.length;i++)for(a=0;a&lt;l;a++)e[o++]=null===t[i][a]?NaN:t[i][a]}else if(e&amp;&amp;&quot;string&quot;!=typeof e)e.set(t,r);else{var f=n(e||&quot;float32&quot;);if(Array.isArray(t)||&quot;array&quot;===e)for(e=new f(t.length+r),i=0,o=r,s=e.length;o&lt;s;o++,i++)e[o]=null===t[i]?NaN:t[i];else 0===r?e=new f(t):(e=new f(t.length+r)).set(t,r)}return e}},{dtype:175}],245:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font/stringify&quot;),i=[32,126];e.exports=function(t){var e=(t=t||{}).shape?t.shape:t.canvas?[t.canvas.width,t.canvas.height]:[512,512],r=t.canvas||document.createElement(&quot;canvas&quot;),a=t.font,o=&quot;number&quot;==typeof t.step?[t.step,t.step]:t.step||[32,32],s=t.chars||i;a&amp;&amp;&quot;string&quot;!=typeof a&amp;&amp;(a=n(a));if(Array.isArray(s)){if(2===s.length&amp;&amp;&quot;number&quot;==typeof s[0]&amp;&amp;&quot;number&quot;==typeof s[1]){for(var l=[],c=s[0],u=0;c&lt;=s[1];c++)l[u++]=String.fromCharCode(c);s=l}}else s=String(s).split(&quot;&quot;);e=e.slice(),r.width=e[0],r.height=e[1];var f=r.getContext(&quot;2d&quot;);f.fillStyle=&quot;#000&quot;,f.fillRect(0,0,r.width,r.height),f.font=a,f.textAlign=&quot;center&quot;,f.textBaseline=&quot;middle&quot;,f.fillStyle=&quot;#fff&quot;;var h=o[0]/2,p=o[1]/2;for(c=0;c&lt;s.length;c++)f.fillText(s[c],h,p),(h+=o[0])&gt;e[0]-o[0]/2&amp;&amp;(h=o[0]/2,p+=o[1]);return r}},{&quot;css-font/stringify&quot;:147}],246:[function(t,e,r){&quot;use strict&quot;;function n(t,e){e||(e={}),(&quot;string&quot;==typeof t||Array.isArray(t))&amp;&amp;(e.family=t);var r=Array.isArray(e.family)?e.family.join(&quot;, &quot;):e.family;if(!r)throw Error(&quot;`family` must be defined&quot;);var s=e.size||e.fontSize||e.em||48,l=e.weight||e.fontWeight||&quot;&quot;,c=(t=[e.style||e.fontStyle||&quot;&quot;,l,s].join(&quot; &quot;)+&quot;px &quot;+r,e.origin||&quot;top&quot;);if(n.cache[r]&amp;&amp;s&lt;=n.cache[r].em)return i(n.cache[r],c);var u=e.canvas||n.canvas,f=u.getContext(&quot;2d&quot;),h={upper:void 0!==e.upper?e.upper:&quot;H&quot;,lower:void 0!==e.lower?e.lower:&quot;x&quot;,descent:void 0!==e.descent?e.descent:&quot;p&quot;,ascent:void 0!==e.ascent?e.ascent:&quot;h&quot;,tittle:void 0!==e.tittle?e.tittle:&quot;i&quot;,overshoot:void 0!==e.overshoot?e.overshoot:&quot;O&quot;},p=Math.ceil(1.5*s);u.height=p,u.width=.5*p,f.font=t;var d={top:0};f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillStyle=&quot;black&quot;,f.fillText(&quot;H&quot;,0,0);var g=a(f.getImageData(0,0,p,p));f.clearRect(0,0,p,p),f.textBaseline=&quot;bottom&quot;,f.fillText(&quot;H&quot;,0,p);var m=a(f.getImageData(0,0,p,p));d.lineHeight=d.bottom=p-m+g,f.clearRect(0,0,p,p),f.textBaseline=&quot;alphabetic&quot;,f.fillText(&quot;H&quot;,0,p);var v=p-a(f.getImageData(0,0,p,p))-1+g;d.baseline=d.alphabetic=v,f.clearRect(0,0,p,p),f.textBaseline=&quot;middle&quot;,f.fillText(&quot;H&quot;,0,.5*p);var y=a(f.getImageData(0,0,p,p));d.median=d.middle=p-y-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=&quot;hanging&quot;,f.fillText(&quot;H&quot;,0,.5*p);var x=a(f.getImageData(0,0,p,p));d.hanging=p-x-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=&quot;ideographic&quot;,f.fillText(&quot;H&quot;,0,p);var b=a(f.getImageData(0,0,p,p));if(d.ideographic=p-b-1+g,h.upper&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.upper,0,0),d.upper=a(f.getImageData(0,0,p,p)),d.capHeight=d.baseline-d.upper),h.lower&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.lower,0,0),d.lower=a(f.getImageData(0,0,p,p)),d.xHeight=d.baseline-d.lower),h.tittle&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.tittle,0,0),d.tittle=a(f.getImageData(0,0,p,p))),h.ascent&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.ascent,0,0),d.ascent=a(f.getImageData(0,0,p,p))),h.descent&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.descent,0,0),d.descent=o(f.getImageData(0,0,p,p))),h.overshoot){f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.overshoot,0,0);var _=o(f.getImageData(0,0,p,p));d.overshoot=_-v}for(var w in d)d[w]/=s;return d.em=s,n.cache[r]=d,i(d,c)}function i(t,e){var r={};for(var n in&quot;string&quot;==typeof e&amp;&amp;(e=t[e]),t)&quot;em&quot;!==n&amp;&amp;(r[n]=t[n]-e);return r}function a(t){for(var e=t.height,r=t.data,n=3;n&lt;r.length;n+=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}function o(t){for(var e=t.height,r=t.data,n=r.length-1;n&gt;0;n-=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}e.exports=n,n.canvas=document.createElement(&quot;canvas&quot;),n.cache={}},{}],247:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return new s(t||g,null)};function n(t,e,r,n,i,a){this._color=t,this.key=e,this.value=r,this.left=n,this.right=i,this._count=a}function i(t){return new n(t._color,t.key,t.value,t.left,t.right,t._count)}function a(t,e){return new n(t,e.key,e.value,e.left,e.right,e._count)}function o(t){t._count=1+(t.left?t.left._count:0)+(t.right?t.right._count:0)}function s(t,e){this._compare=t,this.root=e}var l=s.prototype;function c(t,e){var r;if(e.left&amp;&amp;(r=c(t,e.left)))return r;return(r=t(e.key,e.value))||(e.right?c(t,e.right):void 0)}function u(t,e,r,n){if(e(t,n.key)&lt;=0){var i;if(n.left)if(i=u(t,e,r,n.left))return i;if(i=r(n.key,n.value))return i}if(n.right)return u(t,e,r,n.right)}function f(t,e,r,n,i){var a,o=r(t,i.key),s=r(e,i.key);if(o&lt;=0){if(i.left&amp;&amp;(a=f(t,e,r,n,i.left)))return a;if(s&gt;0&amp;&amp;(a=n(i.key,i.value)))return a}if(s&gt;0&amp;&amp;i.right)return f(t,e,r,n,i.right)}function h(t,e){this.tree=t,this._stack=e}Object.defineProperty(l,&quot;keys&quot;,{get:function(){var t=[];return this.forEach((function(e,r){t.push(e)})),t}}),Object.defineProperty(l,&quot;values&quot;,{get:function(){var t=[];return this.forEach((function(e,r){t.push(r)})),t}}),Object.defineProperty(l,&quot;length&quot;,{get:function(){return this.root?this.root._count:0}}),l.insert=function(t,e){for(var r=this._compare,i=this.root,l=[],c=[];i;){var u=r(t,i.key);l.push(i),c.push(u),i=u&lt;=0?i.left:i.right}l.push(new n(0,t,e,null,null,1));for(var f=l.length-2;f&gt;=0;--f){i=l[f];c[f]&lt;=0?l[f]=new n(i._color,i.key,i.value,l[f+1],i.right,i._count+1):l[f]=new n(i._color,i.key,i.value,i.left,l[f+1],i._count+1)}for(f=l.length-1;f&gt;1;--f){var h=l[f-1];i=l[f];if(1===h._color||1===i._color)break;var p=l[f-2];if(p.left===h)if(h.left===i){if(!(d=p.right)||0!==d._color){if(p._color=0,p.left=h.right,h._color=1,h.right=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f&gt;=3)(g=l[f-3]).left===p?g.left=h:g.right=h;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else{if(!(d=p.right)||0!==d._color){if(h.right=i.left,p._color=0,p.left=i.right,i._color=1,i.left=h,i.right=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f&gt;=3)(g=l[f-3]).left===p?g.left=i:g.right=i;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else if(h.right===i){if(!(d=p.left)||0!==d._color){if(p._color=0,p.right=h.left,h._color=1,h.left=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f&gt;=3)(g=l[f-3]).right===p?g.right=h:g.left=h;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}else{var d;if(!(d=p.left)||0!==d._color){var g;if(h.left=i.right,p._color=0,p.right=i.left,i._color=1,i.right=h,i.left=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f&gt;=3)(g=l[f-3]).right===p?g.right=i:g.left=i;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}}return l[0]._color=1,new s(r,l[0])},l.forEach=function(t,e,r){if(this.root)switch(arguments.length){case 1:return c(t,this.root);case 2:return u(e,this._compare,t,this.root);case 3:if(this._compare(e,r)&gt;=0)return;return f(e,r,this._compare,t,this.root)}},Object.defineProperty(l,&quot;begin&quot;,{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.left;return new h(this,t)}}),Object.defineProperty(l,&quot;end&quot;,{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.right;return new h(this,t)}}),l.at=function(t){if(t&lt;0)return new h(this,[]);for(var e=this.root,r=[];;){if(r.push(e),e.left){if(t&lt;e.left._count){e=e.left;continue}t-=e.left._count}if(!t)return new h(this,r);if(t-=1,!e.right)break;if(t&gt;=e.right._count)break;e=e.right}return new h(this,[])},l.ge=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&lt;=0&amp;&amp;(i=n.length),r=a&lt;=0?r.left:r.right}return n.length=i,new h(this,n)},l.gt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&lt;0&amp;&amp;(i=n.length),r=a&lt;0?r.left:r.right}return n.length=i,new h(this,n)},l.lt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&gt;0&amp;&amp;(i=n.length),r=a&lt;=0?r.left:r.right}return n.length=i,new h(this,n)},l.le=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&gt;=0&amp;&amp;(i=n.length),r=a&lt;0?r.left:r.right}return n.length=i,new h(this,n)},l.find=function(t){for(var e=this._compare,r=this.root,n=[];r;){var i=e(t,r.key);if(n.push(r),0===i)return new h(this,n);r=i&lt;=0?r.left:r.right}return new h(this,[])},l.remove=function(t){var e=this.find(t);return e?e.remove():this},l.get=function(t){for(var e=this._compare,r=this.root;r;){var n=e(t,r.key);if(0===n)return r.value;r=n&lt;=0?r.left:r.right}};var p=h.prototype;function d(t,e){t.key=e.key,t.value=e.value,t.left=e.left,t.right=e.right,t._color=e._color,t._count=e._count}function g(t,e){return t&lt;e?-1:t&gt;e?1:0}Object.defineProperty(p,&quot;valid&quot;,{get:function(){return this._stack.length&gt;0}}),Object.defineProperty(p,&quot;node&quot;,{get:function(){return this._stack.length&gt;0?this._stack[this._stack.length-1]:null},enumerable:!0}),p.clone=function(){return new h(this.tree,this._stack.slice())},p.remove=function(){var t=this._stack;if(0===t.length)return this.tree;var e=new Array(t.length),r=t[t.length-1];e[e.length-1]=new n(r._color,r.key,r.value,r.left,r.right,r._count);for(var l=t.length-2;l&gt;=0;--l){(r=t[l]).left===t[l+1]?e[l]=new n(r._color,r.key,r.value,e[l+1],r.right,r._count):e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count)}if((r=e[e.length-1]).left&amp;&amp;r.right){var c=e.length;for(r=r.left;r.right;)e.push(r),r=r.right;var u=e[c-1];e.push(new n(r._color,u.key,u.value,r.left,r.right,r._count)),e[c-1].key=r.key,e[c-1].value=r.value;for(l=e.length-2;l&gt;=c;--l)r=e[l],e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count);e[c-1].left=e[c]}if(0===(r=e[e.length-1])._color){var f=e[e.length-2];f.left===r?f.left=null:f.right===r&amp;&amp;(f.right=null),e.pop();for(l=0;l&lt;e.length;++l)e[l]._count--;return new s(this.tree._compare,e[0])}if(r.left||r.right){r.left?d(r,r.left):r.right&amp;&amp;d(r,r.right),r._color=1;for(l=0;l&lt;e.length-1;++l)e[l]._count--;return new s(this.tree._compare,e[0])}if(1===e.length)return new s(this.tree._compare,null);for(l=0;l&lt;e.length;++l)e[l]._count--;var h=e[e.length-2];return function(t){for(var e,r,n,s,l=t.length-1;l&gt;=0;--l){if(e=t[l],0===l)return void(e._color=1);if((r=t[l-1]).left===e){if((n=r.right).right&amp;&amp;0===n.right._color){if(s=(n=r.right=i(n)).right=i(n.right),r.right=n.left,n.left=r,n.right=s,n._color=r._color,e._color=1,r._color=1,s._color=1,o(r),o(n),l&gt;1)(c=t[l-2]).left===r?c.left=n:c.right=n;return void(t[l-1]=n)}if(n.left&amp;&amp;0===n.left._color){if(s=(n=r.right=i(n)).left=i(n.left),r.right=s.left,n.left=s.right,s.left=r,s.right=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l&gt;1)(c=t[l-2]).left===r?c.left=s:c.right=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.right=a(0,n));r.right=a(0,n);continue}n=i(n),r.right=n.left,n.left=r,n._color=r._color,r._color=0,o(r),o(n),l&gt;1&amp;&amp;((c=t[l-2]).left===r?c.left=n:c.right=n),t[l-1]=n,t[l]=r,l+1&lt;t.length?t[l+1]=e:t.push(e),l+=2}else{if((n=r.left).left&amp;&amp;0===n.left._color){if(s=(n=r.left=i(n)).left=i(n.left),r.left=n.right,n.right=r,n.left=s,n._color=r._color,e._color=1,r._color=1,s._color=1,o(r),o(n),l&gt;1)(c=t[l-2]).right===r?c.right=n:c.left=n;return void(t[l-1]=n)}if(n.right&amp;&amp;0===n.right._color){if(s=(n=r.left=i(n)).right=i(n.right),r.left=s.right,n.right=s.left,s.right=r,s.left=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l&gt;1)(c=t[l-2]).right===r?c.right=s:c.left=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.left=a(0,n));r.left=a(0,n);continue}var c;n=i(n),r.left=n.right,n.right=r,n._color=r._color,r._color=0,o(r),o(n),l&gt;1&amp;&amp;((c=t[l-2]).right===r?c.right=n:c.left=n),t[l-1]=n,t[l]=r,l+1&lt;t.length?t[l+1]=e:t.push(e),l+=2}}}(e),h.left===r?h.left=null:h.right=null,new s(this.tree._compare,e[0])},Object.defineProperty(p,&quot;key&quot;,{get:function(){if(this._stack.length&gt;0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(p,&quot;value&quot;,{get:function(){if(this._stack.length&gt;0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(p,&quot;index&quot;,{get:function(){var t=0,e=this._stack;if(0===e.length){var r=this.tree.root;return r?r._count:0}e[e.length-1].left&amp;&amp;(t=e[e.length-1].left._count);for(var n=e.length-2;n&gt;=0;--n)e[n+1]===e[n].right&amp;&amp;(++t,e[n].left&amp;&amp;(t+=e[n].left._count));return t},enumerable:!0}),p.next=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.right)for(e=e.right;e;)t.push(e),e=e.left;else for(t.pop();t.length&gt;0&amp;&amp;t[t.length-1].right===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,&quot;hasNext&quot;,{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].right)return!0;for(var e=t.length-1;e&gt;0;--e)if(t[e-1].left===t[e])return!0;return!1}}),p.update=function(t){var e=this._stack;if(0===e.length)throw new Error(&quot;Can't update empty node!&quot;);var r=new Array(e.length),i=e[e.length-1];r[r.length-1]=new n(i._color,i.key,t,i.left,i.right,i._count);for(var a=e.length-2;a&gt;=0;--a)(i=e[a]).left===e[a+1]?r[a]=new n(i._color,i.key,i.value,r[a+1],i.right,i._count):r[a]=new n(i._color,i.key,i.value,i.left,r[a+1],i._count);return new s(this.tree._compare,r[0])},p.prev=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.left)for(e=e.left;e;)t.push(e),e=e.right;else for(t.pop();t.length&gt;0&amp;&amp;t[t.length-1].left===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,&quot;hasPrev&quot;,{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].left)return!0;for(var e=t.length-1;e&gt;0;--e)if(t[e-1].right===t[e])return!0;return!1}})},{}],248:[function(t,e,r){var n=[.9999999999998099,676.5203681218851,-1259.1392167224028,771.3234287776531,-176.6150291621406,12.507343278686905,-.13857109526572012,9984369578019572e-21,1.5056327351493116e-7],i=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function a(t){if(t&lt;0)return Number(&quot;0/0&quot;);for(var e=i[0],r=i.length-1;r&gt;0;--r)e+=i[r]/(t+r);var n=t+607/128+.5;return.5*Math.log(2*Math.PI)+(t+.5)*Math.log(n)-n+Math.log(e)-Math.log(t)}e.exports=function t(e){if(e&lt;.5)return Math.PI/(Math.sin(Math.PI*e)*t(1-e));if(e&gt;100)return Math.exp(a(e));e-=1;for(var r=n[0],i=1;i&lt;9;i++)r+=n[i]/(e+i);var o=e+7+.5;return Math.sqrt(2*Math.PI)*Math.pow(o,e+.5)*Math.exp(-o)*r},e.exports.log=a},{}],249:[function(t,e,r){e.exports=function(t,e){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;must specify type string&quot;);if(e=e||{},&quot;undefined&quot;==typeof document&amp;&amp;!e.canvas)return null;var r=e.canvas||document.createElement(&quot;canvas&quot;);&quot;number&quot;==typeof e.width&amp;&amp;(r.width=e.width);&quot;number&quot;==typeof e.height&amp;&amp;(r.height=e.height);var n,i=e;try{var a=[t];0===t.indexOf(&quot;webgl&quot;)&amp;&amp;a.push(&quot;experimental-&quot;+t);for(var o=0;o&lt;a.length;o++)if(n=r.getContext(a[o],i))return n}catch(t){n=null}return n||null}},{}],250:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=new u(t);return r.update(e),r};var n=t(&quot;./lib/text.js&quot;),i=t(&quot;./lib/lines.js&quot;),a=t(&quot;./lib/background.js&quot;),o=t(&quot;./lib/cube.js&quot;),s=t(&quot;./lib/ticks.js&quot;),l=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t){this.gl=t,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=[&quot;auto&quot;,&quot;auto&quot;,&quot;auto&quot;],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],this.labelEnable=[!0,!0,!0],this.labelFont=&quot;sans-serif&quot;,this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=[&quot;auto&quot;,&quot;auto&quot;,&quot;auto&quot;],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=a(t)}var f=u.prototype;function h(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}f.update=function(t){function e(e,r,n){if(n in t){var i,a=t[n],o=this[n];(e?Array.isArray(a)&amp;&amp;Array.isArray(a[0]):Array.isArray(a))?this[n]=i=[r(a[0]),r(a[1]),r(a[2])]:this[n]=i=[r(a),r(a),r(a)];for(var s=0;s&lt;3;++s)if(i[s]!==o[s])return!0}return!1}t=t||{};var r,a=e.bind(this,!1,Number),o=e.bind(this,!1,Boolean),l=e.bind(this,!1,String),c=e.bind(this,!0,(function(t){if(Array.isArray(t)){if(3===t.length)return[+t[0],+t[1],+t[2],1];if(4===t.length)return[+t[0],+t[1],+t[2],+t[3]]}return[0,0,0,1]})),u=!1,f=!1;if(&quot;bounds&quot;in t)for(var h=t.bounds,p=0;p&lt;2;++p)for(var d=0;d&lt;3;++d)h[p][d]!==this.bounds[p][d]&amp;&amp;(f=!0),this.bounds[p][d]=h[p][d];if(&quot;ticks&quot;in t){r=t.ticks,u=!0,this.autoTicks=!1;for(p=0;p&lt;3;++p)this.tickSpacing[p]=0}else a(&quot;tickSpacing&quot;)&amp;&amp;(this.autoTicks=!0,f=!0);if(this._firstInit&amp;&amp;(&quot;ticks&quot;in t||&quot;tickSpacing&quot;in t||(this.autoTicks=!0),f=!0,u=!0,this._firstInit=!1),f&amp;&amp;this.autoTicks&amp;&amp;(r=s.create(this.bounds,this.tickSpacing),u=!0),u){for(p=0;p&lt;3;++p)r[p].sort((function(t,e){return t.x-e.x}));s.equal(r,this.ticks)?u=!1:this.ticks=r}o(&quot;tickEnable&quot;),l(&quot;tickFont&quot;)&amp;&amp;(u=!0),a(&quot;tickSize&quot;),a(&quot;tickAngle&quot;),a(&quot;tickPad&quot;),c(&quot;tickColor&quot;);var g=l(&quot;labels&quot;);l(&quot;labelFont&quot;)&amp;&amp;(g=!0),o(&quot;labelEnable&quot;),a(&quot;labelSize&quot;),a(&quot;labelPad&quot;),c(&quot;labelColor&quot;),o(&quot;lineEnable&quot;),o(&quot;lineMirror&quot;),a(&quot;lineWidth&quot;),c(&quot;lineColor&quot;),o(&quot;lineTickEnable&quot;),o(&quot;lineTickMirror&quot;),a(&quot;lineTickLength&quot;),a(&quot;lineTickWidth&quot;),c(&quot;lineTickColor&quot;),o(&quot;gridEnable&quot;),a(&quot;gridWidth&quot;),c(&quot;gridColor&quot;),o(&quot;zeroEnable&quot;),c(&quot;zeroLineColor&quot;),a(&quot;zeroLineWidth&quot;),o(&quot;backgroundEnable&quot;),c(&quot;backgroundColor&quot;),this._text?this._text&amp;&amp;(g||u)&amp;&amp;this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=n(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&amp;&amp;u&amp;&amp;(this._lines.dispose(),this._lines=null),this._lines||(this._lines=i(this.gl,this.bounds,this.ticks))};var p=[new h,new h,new h];function d(t,e,r,n,i){for(var a=t.primalOffset,o=t.primalMinor,s=t.mirrorOffset,l=t.mirrorMinor,c=n[e],u=0;u&lt;3;++u)if(e!==u){var f=a,h=s,p=o,d=l;c&amp;1&lt;&lt;u&amp;&amp;(f=s,h=a,p=l,d=o),f[u]=r[0][u],h[u]=r[1][u],i[u]&gt;0?(p[u]=-1,d[u]=0):(p[u]=0,d[u]=1)}}var g=[0,0,0],m={model:l,view:l,projection:l,_ortho:!1};f.isOpaque=function(){return!0},f.isTransparent=function(){return!1},f.drawTransparent=function(t){};var v=[0,0,0],y=[0,0,0],x=[0,0,0];f.draw=function(t){t=t||m;for(var e=this.gl,r=t.model||l,n=t.view||l,i=t.projection||l,a=this.bounds,s=t._ortho||!1,u=o(r,n,i,a,s),f=u.cubeEdges,h=u.axis,b=n[12],_=n[13],w=n[14],T=n[15],k=(s?2:1)*this.pixelRatio*(i[3]*b+i[7]*_+i[11]*w+i[15]*T)/e.drawingBufferHeight,M=0;M&lt;3;++M)this.lastCubeProps.cubeEdges[M]=f[M],this.lastCubeProps.axis[M]=h[M];var A=p;for(M=0;M&lt;3;++M)d(p[M],M,this.bounds,f,h);e=this.gl;var S,E=g;for(M=0;M&lt;3;++M)this.backgroundEnable[M]?E[M]=h[M]:E[M]=0;this._background.draw(r,n,i,a,E,this.backgroundColor),this._lines.bind(r,n,i,this);for(M=0;M&lt;3;++M){var C=[0,0,0];h[M]&gt;0?C[M]=a[1][M]:C[M]=a[0][M];for(var L=0;L&lt;2;++L){var I=(M+1+L)%3,P=(M+1+(1^L))%3;this.gridEnable[I]&amp;&amp;this._lines.drawGrid(I,P,this.bounds,C,this.gridColor[I],this.gridWidth[I]*this.pixelRatio)}for(L=0;L&lt;2;++L){I=(M+1+L)%3,P=(M+1+(1^L))%3;this.zeroEnable[P]&amp;&amp;Math.min(a[0][P],a[1][P])&lt;=0&amp;&amp;Math.max(a[0][P],a[1][P])&gt;=0&amp;&amp;this._lines.drawZero(I,P,this.bounds,C,this.zeroLineColor[P],this.zeroLineWidth[P]*this.pixelRatio)}}for(M=0;M&lt;3;++M){this.lineEnable[M]&amp;&amp;this._lines.drawAxisLine(M,this.bounds,A[M].primalOffset,this.lineColor[M],this.lineWidth[M]*this.pixelRatio),this.lineMirror[M]&amp;&amp;this._lines.drawAxisLine(M,this.bounds,A[M].mirrorOffset,this.lineColor[M],this.lineWidth[M]*this.pixelRatio);var z=c(v,A[M].primalMinor),O=c(y,A[M].mirrorMinor),D=this.lineTickLength;for(L=0;L&lt;3;++L){var R=k/r[5*L];z[L]*=D[L]*R,O[L]*=D[L]*R}this.lineTickEnable[M]&amp;&amp;this._lines.drawAxisTicks(M,A[M].primalOffset,z,this.lineTickColor[M],this.lineTickWidth[M]*this.pixelRatio),this.lineTickMirror[M]&amp;&amp;this._lines.drawAxisTicks(M,A[M].mirrorOffset,O,this.lineTickColor[M],this.lineTickWidth[M]*this.pixelRatio)}this._lines.unbind(),this._text.bind(r,n,i,this.pixelRatio);var F,B;function N(t){(B=[0,0,0])[t]=1}function j(t,e,r){var n=(t+1)%3,i=(t+2)%3,a=e[n],o=e[i],s=r[n],l=r[i];a&gt;0&amp;&amp;l&gt;0||a&gt;0&amp;&amp;l&lt;0||a&lt;0&amp;&amp;l&gt;0||a&lt;0&amp;&amp;l&lt;0?N(n):(o&gt;0&amp;&amp;s&gt;0||o&gt;0&amp;&amp;s&lt;0||o&lt;0&amp;&amp;s&gt;0||o&lt;0&amp;&amp;s&lt;0)&amp;&amp;N(i)}for(M=0;M&lt;3;++M){var U=A[M].primalMinor,V=A[M].mirrorMinor,q=c(x,A[M].primalOffset);for(L=0;L&lt;3;++L)this.lineTickEnable[M]&amp;&amp;(q[L]+=k*U[L]*Math.max(this.lineTickLength[L],0)/r[5*L]);var H=[0,0,0];if(H[M]=1,this.tickEnable[M]){-3600===this.tickAngle[M]?(this.tickAngle[M]=0,this.tickAlign[M]=&quot;auto&quot;):this.tickAlign[M]=-1,F=1,&quot;auto&quot;===(S=[this.tickAlign[M],.5,F])[0]?S[0]=0:S[0]=parseInt(&quot;&quot;+S[0]),B=[0,0,0],j(M,U,V);for(L=0;L&lt;3;++L)q[L]+=k*U[L]*this.tickPad[L]/r[5*L];this._text.drawTicks(M,this.tickSize[M],this.tickAngle[M],q,this.tickColor[M],H,B,S)}if(this.labelEnable[M]){F=0,B=[0,0,0],this.labels[M].length&gt;4&amp;&amp;(N(M),F=1),&quot;auto&quot;===(S=[this.labelAlign[M],.5,F])[0]?S[0]=0:S[0]=parseInt(&quot;&quot;+S[0]);for(L=0;L&lt;3;++L)q[L]+=k*U[L]*this.labelPad[L]/r[5*L];q[M]+=.5*(a[0][M]+a[1][M]),this._text.drawLabel(M,this.labelSize[M],this.labelAngle[M],q,this.labelColor[M],[0,0,0],B,S)}}this._text.unbind()},f.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},{&quot;./lib/background.js&quot;:251,&quot;./lib/cube.js&quot;:252,&quot;./lib/lines.js&quot;:253,&quot;./lib/text.js&quot;:255,&quot;./lib/ticks.js&quot;:256}],251:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=[],r=[],s=0,l=0;l&lt;3;++l)for(var c=(l+1)%3,u=(l+2)%3,f=[0,0,0],h=[0,0,0],p=-1;p&lt;=1;p+=2){r.push(s,s+2,s+1,s+1,s+2,s+3),f[l]=p,h[l]=p;for(var d=-1;d&lt;=1;d+=2){f[c]=d;for(var g=-1;g&lt;=1;g+=2)f[u]=g,e.push(f[0],f[1],f[2],h[0],h[1],h[2]),s+=1}var m=c;c=u,u=m}var v=n(t,new Float32Array(e)),y=n(t,new Uint16Array(r),t.ELEMENT_ARRAY_BUFFER),x=i(t,[{buffer:v,type:t.FLOAT,size:3,offset:0,stride:24},{buffer:v,type:t.FLOAT,size:3,offset:12,stride:24}],y),b=a(t);return b.attributes.position.location=0,b.attributes.normal.location=1,new o(t,v,x,b)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders&quot;).bg;function o(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n}var s=o.prototype;s.draw=function(t,e,r,n,i,a){for(var o=!1,s=0;s&lt;3;++s)o=o||i[s];if(o){var l=this.gl;l.enable(l.POLYGON_OFFSET_FILL),l.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:t,view:e,projection:r,bounds:n,enable:i,colors:a},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),l.disable(l.POLYGON_OFFSET_FILL)}},s.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:254,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],252:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,p){i(s,e,t),i(s,r,s);for(var y=0,x=0;x&lt;2;++x){u[2]=a[x][2];for(var b=0;b&lt;2;++b){u[1]=a[b][1];for(var _=0;_&lt;2;++_)u[0]=a[_][0],h(l[y],u,s),y+=1}}var w=-1;for(x=0;x&lt;8;++x){for(var T=l[x][3],k=0;k&lt;3;++k)c[x][k]=l[x][k]/T;p&amp;&amp;(c[x][2]*=-1),T&lt;0&amp;&amp;(w&lt;0||c[x][2]&lt;c[w][2])&amp;&amp;(w=x)}if(w&lt;0){w=0;for(var M=0;M&lt;3;++M){for(var A=(M+2)%3,S=(M+1)%3,E=-1,C=-1,L=0;L&lt;2;++L){var I=(z=L&lt;&lt;M)+(L&lt;&lt;A)+(1-L&lt;&lt;S),P=z+(1-L&lt;&lt;A)+(L&lt;&lt;S);o(c[z],c[I],c[P],f)&lt;0||(L?E=1:C=1)}if(E&lt;0||C&lt;0)C&gt;E&amp;&amp;(w|=1&lt;&lt;M);else{for(L=0;L&lt;2;++L){I=(z=L&lt;&lt;M)+(L&lt;&lt;A)+(1-L&lt;&lt;S),P=z+(1-L&lt;&lt;A)+(L&lt;&lt;S);var z,O=d([l[z],l[I],l[P],l[z+(1&lt;&lt;A)+(1&lt;&lt;S)]]);L?E=O:C=O}C&gt;E&amp;&amp;(w|=1&lt;&lt;M)}}}var D=7^w,R=-1;for(x=0;x&lt;8;++x)x!==w&amp;&amp;x!==D&amp;&amp;(R&lt;0||c[R][1]&gt;c[x][1])&amp;&amp;(R=x);var F=-1;for(x=0;x&lt;3;++x){if((N=R^1&lt;&lt;x)!==w&amp;&amp;N!==D)F&lt;0&amp;&amp;(F=N),(S=c[N])[0]&lt;c[F][0]&amp;&amp;(F=N)}var B=-1;for(x=0;x&lt;3;++x){var N;if((N=R^1&lt;&lt;x)!==w&amp;&amp;N!==D&amp;&amp;N!==F)B&lt;0&amp;&amp;(B=N),(S=c[N])[0]&gt;c[B][0]&amp;&amp;(B=N)}var j=g;j[0]=j[1]=j[2]=0,j[n.log2(F^R)]=R&amp;F,j[n.log2(R^B)]=R&amp;B;var U=7^B;U===w||U===D?(U=7^F,j[n.log2(B^U)]=U&amp;B):j[n.log2(F^U)]=U&amp;F;var V=m,q=w;for(M=0;M&lt;3;++M)V[M]=q&amp;1&lt;&lt;M?-1:1;return v};var n=t(&quot;bit-twiddle&quot;),i=t(&quot;gl-mat4/multiply&quot;),a=t(&quot;split-polygon&quot;),o=t(&quot;robust-orientation&quot;),s=new Array(16),l=new Array(8),c=new Array(8),u=new Array(3),f=[0,0,0];function h(t,e,r){for(var n=0;n&lt;4;++n){t[n]=r[12+n];for(var i=0;i&lt;3;++i)t[n]+=e[i]*r[4*i+n]}}!function(){for(var t=0;t&lt;8;++t)l[t]=[1,1,1,1],c[t]=[1,1,1]}();var p=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function d(t){for(var e=0;e&lt;p.length;++e)if((t=a.positive(t,p[e])).length&lt;3)return 0;var r=t[0],n=r[0]/r[3],i=r[1]/r[3],o=0;for(e=1;e+1&lt;t.length;++e){var s=t[e],l=t[e+1],c=s[0]/s[3]-n,u=s[1]/s[3]-i,f=l[0]/l[3]-n,h=l[1]/l[3]-i;o+=Math.abs(c*h-u*f)}return o}var g=[1,1,1],m=[0,0,0],v={cubeEdges:g,axis:m}},{&quot;bit-twiddle&quot;:97,&quot;gl-mat4/multiply&quot;:295,&quot;robust-orientation&quot;:548,&quot;split-polygon&quot;:566}],253:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var o=[],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[0,0,0];o.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var f=0;f&lt;3;++f){for(var h=o.length/3|0,d=0;d&lt;r[f].length;++d){var g=+r[f][d].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}var m=o.length/3|0;s[f]=h,l[f]=m-h;h=o.length/3|0;for(var v=0;v&lt;r[f].length;++v){g=+r[f][v].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}m=o.length/3|0;c[f]=h,u[f]=m-h}var y=n(t,new Float32Array(o)),x=i(t,[{buffer:y,type:t.FLOAT,size:3,stride:0,offset:0}]),b=a(t);return b.attributes.position.location=0,new p(t,y,x,b,l,s,u,c)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders&quot;).line,o=[0,0,0],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[1,1];function f(t){return t[0]=t[1]=t[2]=0,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function p(t,e,r,n,i,a,o,s){this.gl=t,this.vertBuffer=e,this.vao=r,this.shader=n,this.tickCount=i,this.tickOffset=a,this.gridCount=o,this.gridOffset=s}var d=p.prototype;d.bind=function(t,e,r){this.shader.bind(),this.shader.uniforms.model=t,this.shader.uniforms.view=e,this.shader.uniforms.projection=r,u[0]=this.gl.drawingBufferWidth,u[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=u,this.vao.bind()},d.unbind=function(){this.vao.unbind()},d.drawAxisLine=function(t,e,r,n,i){var a=f(s);this.shader.uniforms.majorAxis=s,a[t]=e[1][t]-e[0][t],this.shader.uniforms.minorAxis=a;var o,u=h(c,r);u[t]+=e[0][t],this.shader.uniforms.offset=u,this.shader.uniforms.lineWidth=i,this.shader.uniforms.color=n,(o=f(l))[(t+2)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6),(o=f(l))[(t+1)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6)},d.drawAxisTicks=function(t,e,r,n,i){if(this.tickCount[t]){var a=f(o);a[t]=1,this.shader.uniforms.majorAxis=a,this.shader.uniforms.offset=e,this.shader.uniforms.minorAxis=r,this.shader.uniforms.color=n,this.shader.uniforms.lineWidth=i;var s=f(l);s[t]=1,this.shader.uniforms.screenAxis=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t])}},d.drawGrid=function(t,e,r,n,i,a){if(this.gridCount[t]){var u=f(s);u[e]=r[1][e]-r[0][e],this.shader.uniforms.minorAxis=u;var p=h(c,n);p[e]+=r[0][e],this.shader.uniforms.offset=p;var d=f(o);d[t]=1,this.shader.uniforms.majorAxis=d;var g=f(l);g[t]=1,this.shader.uniforms.screenAxis=g,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,this.gridCount[t],this.gridOffset[t])}},d.drawZero=function(t,e,r,n,i,a){var o=f(s);this.shader.uniforms.majorAxis=o,o[t]=r[1][t]-r[0][t],this.shader.uniforms.minorAxis=o;var u=h(c,n);u[t]+=r[0][t],this.shader.uniforms.offset=u;var p=f(l);p[e]=1,this.shader.uniforms.screenAxis=p,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,6)},d.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:254,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],254:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, majorAxis, minorAxis, screenAxis;\nuniform float lineWidth;\nuniform vec2 screenShape;\n\nvec3 project(vec3 p) {\n  vec4 pp = projection * view * model * vec4(p, 1.0);\n  return pp.xyz / max(pp.w, 0.0001);\n}\n\nvoid main() {\n  vec3 major = position.x * majorAxis;\n  vec3 minor = position.y * minorAxis;\n\n  vec3 vPosition = major + minor + offset;\n  vec3 pPosition = project(vPosition);\n  vec3 offset = project(vPosition + screenAxis * position.z);\n\n  vec2 screen = normalize((offset - pPosition).xy * screenShape) / screenShape;\n\n  gl_Position = vec4(pPosition + vec3(0.5 * screen * lineWidth, 0), 1.0);\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = color;\n}&quot;]);r.line=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;}])};var s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, axis, alignDir, alignOpt;\nuniform float scale, angle, pixelScale;\nuniform vec2 resolution;\n\nvec3 project(vec3 p) {\n  vec4 pp = projection * view * model * vec4(p, 1.0);\n  return pp.xyz / max(pp.w, 0.0001);\n}\n\nfloat computeViewAngle(vec3 a, vec3 b) {\n  vec3 A = project(a);\n  vec3 B = project(b);\n\n  return atan(\n    (B.y - A.y) * resolution.y,\n    (B.x - A.x) * resolution.x\n  );\n}\n\nconst float PI = 3.141592;\nconst float TWO_PI = 2.0 * PI;\nconst float HALF_PI = 0.5 * PI;\nconst float ONE_AND_HALF_PI = 1.5 * PI;\n\nint option = int(floor(alignOpt.x + 0.001));\nfloat hv_ratio =       alignOpt.y;\nbool enableAlign =    (alignOpt.z != 0.0);\n\nfloat mod_angle(float a) {\n  return mod(a, PI);\n}\n\nfloat positive_angle(float a) {\n  return mod_angle((a &lt; 0.0) ?\n    a + TWO_PI :\n    a\n  );\n}\n\nfloat look_upwards(float a) {\n  float b = positive_angle(a);\n  return ((b &gt; HALF_PI) &amp;&amp; (b &lt;= ONE_AND_HALF_PI)) ?\n    b - PI :\n    b;\n}\n\nfloat look_horizontal_or_vertical(float a, float ratio) {\n  // ratio controls the ratio between being horizontal to (vertical + horizontal)\n  // if ratio is set to 0.5 then it is 50%, 50%.\n  // when using a higher ratio e.g. 0.75 the result would\n  // likely be more horizontal than vertical.\n\n  float b = positive_angle(a);\n\n  return\n    (b &lt; (      ratio) * HALF_PI) ? 0.0 :\n    (b &lt; (2.0 - ratio) * HALF_PI) ? -HALF_PI :\n    (b &lt; (2.0 + ratio) * HALF_PI) ? 0.0 :\n    (b &lt; (4.0 - ratio) * HALF_PI) ? HALF_PI :\n                                    0.0;\n}\n\nfloat roundTo(float a, float b) {\n  return float(b * floor((a + 0.5 * b) / b));\n}\n\nfloat look_round_n_directions(float a, int n) {\n  float b = positive_angle(a);\n  float div = TWO_PI / float(n);\n  float c = roundTo(b, div);\n  return look_upwards(c);\n}\n\nfloat applyAlignOption(float rawAngle, float delta) {\n  return\n    (option &gt;  2) ? look_round_n_directions(rawAngle + delta, option) :       // option 3-n: round to n directions\n    (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\n    (option == 1) ? rawAngle + delta :       // use free angle, and flip to align with one direction of the axis\n    (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\n    (option ==-1) ? 0.0 :                    // useful for backward compatibility, all texts remains horizontal\n                    rawAngle;                // otherwise return back raw input angle\n}\n\nbool isAxisTitle = (axis.x == 0.0) &amp;&amp;\n                   (axis.y == 0.0) &amp;&amp;\n                   (axis.z == 0.0);\n\nvoid main() {\n  //Compute world offset\n  float axisDistance = position.z;\n  vec3 dataPosition = axisDistance * axis + offset;\n\n  float beta = angle; // i.e. user defined attributes for each tick\n\n  float axisAngle;\n  float clipAngle;\n  float flip;\n\n  if (enableAlign) {\n    axisAngle = (isAxisTitle) ? HALF_PI :\n                      computeViewAngle(dataPosition, dataPosition + axis);\n    clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\n\n    axisAngle += (sin(axisAngle) &lt; 0.0) ? PI : 0.0;\n    clipAngle += (sin(clipAngle) &lt; 0.0) ? PI : 0.0;\n\n    flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\n                vec2(sin(clipAngle),-cos(clipAngle))) &gt; 0.0) ? 1.0 : 0.0;\n\n    beta += applyAlignOption(clipAngle, flip * PI);\n  }\n\n  //Compute plane offset\n  vec2 planeCoord = position.xy * pixelScale;\n\n  mat2 planeXform = scale * mat2(\n     cos(beta), sin(beta),\n    -sin(beta), cos(beta)\n  );\n\n  vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\n\n  //Compute clip position\n  vec3 clipPosition = project(dataPosition);\n\n  //Apply text offset in clip coordinates\n  clipPosition += vec3(viewOffset, 0.0);\n\n  //Done\n  gl_Position = vec4(clipPosition, 1.0);\n}&quot;]),l=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = color;\n}&quot;]);r.text=function(t){return i(t,s,l,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;}])};var c=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec3 normal;\n\nuniform mat4 model, view, projection;\nuniform vec3 enable;\nuniform vec3 bounds[2];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n\n  vec3 signAxis = sign(bounds[1] - bounds[0]);\n\n  vec3 realNormal = signAxis * normal;\n\n  if(dot(realNormal, enable) &gt; 0.0) {\n    vec3 minRange = min(bounds[0], bounds[1]);\n    vec3 maxRange = max(bounds[0], bounds[1]);\n    vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\n    gl_Position = projection * view * model * vec4(nPosition, 1.0);\n  } else {\n    gl_Position = vec4(0,0,0,0);\n  }\n\n  colorChannel = abs(realNormal);\n}&quot;]),u=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 colors[3];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n  gl_FragColor = colorChannel.x * colors[0] +\n                 colorChannel.y * colors[1] +\n                 colorChannel.z * colors[2];\n}&quot;]);r.bg=function(t){return i(t,c,u,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}])}},{&quot;gl-shader&quot;:335,glslify:257}],255:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;e.exports=function(t,e,r,a,s,l){var u=n(t),f=i(t,[{buffer:u,size:3}]),h=o(t);h.attributes.position.location=0;var p=new c(t,h,u,f);return p.update(e,r,a,s,l),p};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;vectorize-text&quot;),o=t(&quot;./shaders&quot;).text,s=window||r.global||{},l=s.__TEXT_CACHE||{};s.__TEXT_CACHE={};function c(t,e,r,n){this.gl=t,this.shader=e,this.buffer=r,this.vao=n,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var u=c.prototype,f=[0,0];u.bind=function(t,e,r,n){this.vao.bind(),this.shader.bind();var i=this.shader.uniforms;i.model=t,i.view=e,i.projection=r,i.pixelScale=n,f[0]=this.gl.drawingBufferWidth,f[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=f},u.unbind=function(){this.vao.unbind()},u.update=function(t,e,r,n,i){var o=[];function s(t,e,r,n,i,s){var c=l[r];c||(c=l[r]={});var u=c[e];u||(u=c[e]=function(t,e){try{return a(t,e)}catch(e){return console.warn('error vectorizing text:&quot;'+t+'&quot; error:',e),{cells:[],positions:[]}}}(e,{triangles:!0,font:r,textAlign:&quot;center&quot;,textBaseline:&quot;middle&quot;,lineSpacing:i,styletags:s}));for(var f=(n||12)/12,h=u.positions,p=u.cells,d=0,g=p.length;d&lt;g;++d)for(var m=p[d],v=2;v&gt;=0;--v){var y=h[m[v]];o.push(f*y[0],-f*y[1],t)}}for(var c=[0,0,0],u=[0,0,0],f=[0,0,0],h=[0,0,0],p={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},d=0;d&lt;3;++d){f[d]=o.length/3|0,s(.5*(t[0][d]+t[1][d]),e[d],r[d],12,1.25,p),h[d]=(o.length/3|0)-f[d],c[d]=o.length/3|0;for(var g=0;g&lt;n[d].length;++g)n[d][g].text&amp;&amp;s(n[d][g].x,n[d][g].text,n[d][g].font||i,n[d][g].fontSize||12,1.25,p);u[d]=(o.length/3|0)-c[d]}this.buffer.update(o),this.tickOffset=c,this.tickCount=u,this.labelOffset=f,this.labelCount=h},u.drawTicks=function(t,e,r,n,i,a,o,s){this.tickCount[t]&amp;&amp;(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t]))},u.drawLabel=function(t,e,r,n,i,a,o,s){this.labelCount[t]&amp;&amp;(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.labelCount[t],this.labelOffset[t]))},u.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()}}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./shaders&quot;:254,_process:526,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358,&quot;vectorize-text&quot;:600}],256:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=t+&quot;&quot;,n=r.indexOf(&quot;.&quot;),i=0;n&gt;=0&amp;&amp;(i=r.length-n-1);var a=Math.pow(10,i),o=Math.round(t*e*a),s=o+&quot;&quot;;if(s.indexOf(&quot;e&quot;)&gt;=0)return s;var l=o/a,c=o%a;o&lt;0?(l=0|-Math.ceil(l),c=0|-c):(l=0|Math.floor(l),c|=0);var u=&quot;&quot;+l;if(o&lt;0&amp;&amp;(u=&quot;-&quot;+u),i){for(var f=&quot;&quot;+c;f.length&lt;i;)f=&quot;0&quot;+f;return u+&quot;.&quot;+f}return u}r.create=function(t,e){for(var r=[],i=0;i&lt;3;++i){for(var a=[],o=(t[0][i],t[1][i],0);o*e[i]&lt;=t[1][i];++o)a.push({x:o*e[i],text:n(e[i],o)});for(o=-1;o*e[i]&gt;=t[0][i];--o)a.push({x:o*e[i],text:n(e[i],o)});r.push(a)}return r},r.equal=function(t,e){for(var r=0;r&lt;3;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n&lt;t[r].length;++n){var i=t[r][n],a=e[r][n];if(i.x!==a.x||i.text!==a.text||i.font!==a.font||i.fontColor!==a.fontColor||i.fontSize!==a.fontSize||i.dx!==a.dx||i.dy!==a.dy)return!1}}return!0}},{}],257:[function(t,e,r){e.exports=function(t){&quot;string&quot;==typeof t&amp;&amp;(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n&lt;t.length-1;n++)r.push(t[n],e[n]||&quot;&quot;);return r.push(t[n]),r.join(&quot;&quot;)}},{}],258:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,l,f){var h=e.model||c,p=e.view||c,v=e.projection||c,y=e._ortho||!1,x=t.bounds,b=(f=f||a(h,p,v,x,y)).axis;o(u,p,h),o(u,v,u);for(var _=g,w=0;w&lt;3;++w)_[w].lo=1/0,_[w].hi=-1/0,_[w].pixelsPerDataUnit=1/0;var T=n(s(u,u));s(u,u);for(var k=0;k&lt;3;++k){var M=(k+1)%3,A=(k+2)%3,S=m;t:for(w=0;w&lt;2;++w){var E=[];if(b[k]&lt;0!=!!w){S[k]=x[w][k];for(var C=0;C&lt;2;++C){S[M]=x[C^w][M];for(var L=0;L&lt;2;++L)S[A]=x[L^C^w][A],E.push(S.slice())}var I=y?5:4;for(C=I;C===I;++C){if(0===E.length)continue t;E=i.positive(E,T[C])}for(C=0;C&lt;E.length;++C){A=E[C];var P=d(m,u,A,r,l);for(L=0;L&lt;3;++L)_[L].lo=Math.min(_[L].lo,A[L]),_[L].hi=Math.max(_[L].hi,A[L]),L!==k&amp;&amp;(_[L].pixelsPerDataUnit=Math.min(_[L].pixelsPerDataUnit,Math.abs(P[L])))}}}}return _};var n=t(&quot;extract-frustum-planes&quot;),i=t(&quot;split-polygon&quot;),a=t(&quot;./lib/cube.js&quot;),o=t(&quot;gl-mat4/multiply&quot;),s=t(&quot;gl-mat4/transpose&quot;),l=t(&quot;gl-vec4/transformMat4&quot;),c=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),u=new Float32Array(16);function f(t,e,r){this.lo=t,this.hi=e,this.pixelsPerDataUnit=r}var h=[0,0,0,1],p=[0,0,0,1];function d(t,e,r,n,i){for(var a=0;a&lt;3;++a){for(var o=h,s=p,c=0;c&lt;3;++c)s[c]=o[c]=r[c];s[3]=o[3]=1,s[a]+=1,l(s,s,e),s[3]&lt;0&amp;&amp;(t[a]=1/0),o[a]-=1,l(o,o,e),o[3]&lt;0&amp;&amp;(t[a]=1/0);var u=(o[0]/o[3]-s[0]/s[3])*n,f=(o[1]/o[3]-s[1]/s[3])*i;t[a]=.25*Math.sqrt(u*u+f*f)}return t}var g=[new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0)],m=[0,0,0]},{&quot;./lib/cube.js&quot;:252,&quot;extract-frustum-planes&quot;:240,&quot;gl-mat4/multiply&quot;:295,&quot;gl-mat4/transpose&quot;:306,&quot;gl-vec4/transformMat4&quot;:429,&quot;split-polygon&quot;:566}],259:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=t(&quot;ndarray-ops&quot;),a=t(&quot;ndarray&quot;),o=[&quot;uint8&quot;,&quot;uint8_clamped&quot;,&quot;uint16&quot;,&quot;uint32&quot;,&quot;int8&quot;,&quot;int16&quot;,&quot;int32&quot;,&quot;float32&quot;];function s(t,e,r,n,i){this.gl=t,this.type=e,this.handle=r,this.length=n,this.usage=i}var l=s.prototype;function c(t,e,r,n,i,a){var o=i.length*i.BYTES_PER_ELEMENT;if(a&lt;0)return t.bufferData(e,i,n),o;if(o+a&gt;r)throw new Error(&quot;gl-buffer: If resizing buffer, must not specify offset&quot;);return t.bufferSubData(e,a,i),r}function u(t,e){for(var r=n.malloc(t.length,e),i=t.length,a=0;a&lt;i;++a)r[a]=t[a];return r}l.bind=function(){this.gl.bindBuffer(this.type,this.handle)},l.unbind=function(){this.gl.bindBuffer(this.type,null)},l.dispose=function(){this.gl.deleteBuffer(this.handle)},l.update=function(t,e){if(&quot;number&quot;!=typeof e&amp;&amp;(e=-1),this.bind(),&quot;object&quot;==typeof t&amp;&amp;&quot;undefined&quot;!=typeof t.shape){var r=t.dtype;if(o.indexOf(r)&lt;0&amp;&amp;(r=&quot;float32&quot;),this.type===this.gl.ELEMENT_ARRAY_BUFFER)r=gl.getExtension(&quot;OES_element_index_uint&quot;)&amp;&amp;&quot;uint16&quot;!==r?&quot;uint32&quot;:&quot;uint16&quot;;if(r===t.dtype&amp;&amp;function(t,e){for(var r=1,n=e.length-1;n&gt;=0;--n){if(e[n]!==r)return!1;r*=t[n]}return!0}(t.shape,t.stride))0===t.offset&amp;&amp;t.data.length===t.shape[0]?this.length=c(this.gl,this.type,this.length,this.usage,t.data,e):this.length=c(this.gl,this.type,this.length,this.usage,t.data.subarray(t.offset,t.shape[0]),e);else{var s=n.malloc(t.size,r),l=a(s,t.shape);i.assign(l,t),this.length=c(this.gl,this.type,this.length,this.usage,e&lt;0?s:s.subarray(0,t.size),e),n.free(s)}}else if(Array.isArray(t)){var f;f=this.type===this.gl.ELEMENT_ARRAY_BUFFER?u(t,&quot;uint16&quot;):u(t,&quot;float32&quot;),this.length=c(this.gl,this.type,this.length,this.usage,e&lt;0?f:f.subarray(0,t.length),e),n.free(f)}else if(&quot;object&quot;==typeof t&amp;&amp;&quot;number&quot;==typeof t.length)this.length=c(this.gl,this.type,this.length,this.usage,t,e);else{if(&quot;number&quot;!=typeof t&amp;&amp;void 0!==t)throw new Error(&quot;gl-buffer: Invalid data type&quot;);if(e&gt;=0)throw new Error(&quot;gl-buffer: Cannot specify offset when resizing buffer&quot;);(t|=0)&lt;=0&amp;&amp;(t=1),this.gl.bufferData(this.type,0|t,this.usage),this.length=t}},e.exports=function(t,e,r,n){if(r=r||t.ARRAY_BUFFER,n=n||t.DYNAMIC_DRAW,r!==t.ARRAY_BUFFER&amp;&amp;r!==t.ELEMENT_ARRAY_BUFFER)throw new Error(&quot;gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER&quot;);if(n!==t.DYNAMIC_DRAW&amp;&amp;n!==t.STATIC_DRAW&amp;&amp;n!==t.STREAM_DRAW)throw new Error(&quot;gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW&quot;);var i=t.createBuffer(),a=new s(t,r,i,0,n);return a.update(e),a}},{ndarray:495,&quot;ndarray-ops&quot;:490,&quot;typedarray-pool&quot;:595}],260:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-vec3&quot;);e.exports=function(t,e){var r=t.positions,i=t.vectors,a={positions:[],vertexIntensity:[],vertexIntensityBounds:t.vertexIntensityBounds,vectors:[],cells:[],coneOffset:t.coneOffset,colormap:t.colormap};if(0===t.positions.length)return e&amp;&amp;(e[0]=[0,0,0],e[1]=[0,0,0]),a;for(var o=0,s=1/0,l=-1/0,c=1/0,u=-1/0,f=1/0,h=-1/0,p=null,d=null,g=[],m=1/0,v=!1,y=0;y&lt;r.length;y++){var x=r[y];s=Math.min(x[0],s),l=Math.max(x[0],l),c=Math.min(x[1],c),u=Math.max(x[1],u),f=Math.min(x[2],f),h=Math.max(x[2],h);var b=i[y];if(n.length(b)&gt;o&amp;&amp;(o=n.length(b)),y){var _=2*n.distance(p,x)/(n.length(d)+n.length(b));_?(m=Math.min(m,_),v=!1):v=!0}v||(p=x,d=b),g.push(b)}var w=[s,c,f],T=[l,u,h];e&amp;&amp;(e[0]=w,e[1]=T),0===o&amp;&amp;(o=1);var k=1/o;isFinite(m)||(m=1),a.vectorScale=m;var M=t.coneSize||.5;t.absoluteConeSize&amp;&amp;(M=t.absoluteConeSize*k),a.coneScale=M;y=0;for(var A=0;y&lt;r.length;y++)for(var S=(x=r[y])[0],E=x[1],C=x[2],L=g[y],I=n.length(L)*k,P=0;P&lt;8;P++){a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vertexIntensity.push(I,I,I),a.vertexIntensity.push(I,I,I);var z=a.positions.length;a.cells.push([z-6,z-5,z-4],[z-3,z-2,z-1])}return a};var i=t(&quot;./lib/shaders&quot;);e.exports.createMesh=t(&quot;./create_mesh&quot;),e.exports.createConeMesh=function(t,r){return e.exports.createMesh(t,r,{shaders:i,traceType:&quot;cone&quot;})}},{&quot;./create_mesh&quot;:261,&quot;./lib/shaders&quot;:262,&quot;gl-vec3&quot;:377}],261:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;gl-mat4/multiply&quot;),l=t(&quot;gl-mat4/invert&quot;),c=t(&quot;ndarray&quot;),u=t(&quot;colormap&quot;),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e,r,n,i,a,o,s,l,c,u){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.pickShader=n,this.trianglePositions=i,this.triangleVectors=a,this.triangleColors=s,this.triangleUVs=l,this.triangleIds=o,this.triangleVAO=c,this.triangleCount=0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.traceType=u,this.tubeScale=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=f,this._view=f,this._projection=f,this._resolution=[1,1]}var p=h.prototype;function d(t,e){var r=n(t,e.meshShader.vertex,e.meshShader.fragment,null,e.meshShader.attributes);return r.attributes.position.location=0,r.attributes.color.location=2,r.attributes.uv.location=3,r.attributes.vector.location=4,r}function g(t,e){var r=n(t,e.pickShader.vertex,e.pickShader.fragment,null,e.pickShader.attributes);return r.attributes.position.location=0,r.attributes.id.location=1,r.attributes.vector.location=4,r}p.isOpaque=function(){return this.opacity&gt;=1},p.isTransparent=function(){return this.opacity&lt;1},p.pickSlots=1,p.setPickBase=function(t){this.pickId=t},p.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,&quot;lightPosition&quot;in t&amp;&amp;(this.lightPosition=t.lightPosition),&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity),&quot;ambient&quot;in t&amp;&amp;(this.ambientLight=t.ambient),&quot;diffuse&quot;in t&amp;&amp;(this.diffuseLight=t.diffuse),&quot;specular&quot;in t&amp;&amp;(this.specularLight=t.specular),&quot;roughness&quot;in t&amp;&amp;(this.roughness=t.roughness),&quot;fresnel&quot;in t&amp;&amp;(this.fresnel=t.fresnel),void 0!==t.tubeScale&amp;&amp;(this.tubeScale=t.tubeScale),void 0!==t.vectorScale&amp;&amp;(this.vectorScale=t.vectorScale),void 0!==t.coneScale&amp;&amp;(this.coneScale=t.coneScale),void 0!==t.coneOffset&amp;&amp;(this.coneOffset=t.coneOffset),t.colormap&amp;&amp;(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t){for(var e=u({colormap:t,nshades:256,format:&quot;rgba&quot;}),r=new Uint8Array(1024),n=0;n&lt;256;++n){for(var i=e[n],a=0;a&lt;3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return c(r,[256,256,4],[4,0,1])}(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions,i=t.vectors;if(n&amp;&amp;r&amp;&amp;i){var a=[],o=[],s=[],l=[],f=[];this.cells=r,this.positions=n,this.vectors=i;var h=t.meshColor||[1,1,1,1],p=t.vertexIntensity,d=1/0,g=-1/0;if(p)if(t.vertexIntensityBounds)d=+t.vertexIntensityBounds[0],g=+t.vertexIntensityBounds[1];else for(var m=0;m&lt;p.length;++m){var v=p[m];d=Math.min(d,v),g=Math.max(g,v)}else for(m=0;m&lt;n.length;++m){v=n[m][2];d=Math.min(d,v),g=Math.max(g,v)}this.intensity=p||function(t){for(var e=t.length,r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n][2];return r}(n),this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(m=0;m&lt;n.length;++m)for(var y=n[m],x=0;x&lt;3;++x)!isNaN(y[x])&amp;&amp;isFinite(y[x])&amp;&amp;(this.bounds[0][x]=Math.min(this.bounds[0][x],y[x]),this.bounds[1][x]=Math.max(this.bounds[1][x],y[x]));var b=0;t:for(m=0;m&lt;r.length;++m){var _=r[m];switch(_.length){case 3:for(x=0;x&lt;3;++x){y=n[T=_[x]];for(var w=0;w&lt;3;++w)if(isNaN(y[w])||!isFinite(y[w]))continue t}for(x=0;x&lt;3;++x){var T;y=n[T=_[2-x]];a.push(y[0],y[1],y[2],y[3]);var k=i[T];o.push(k[0],k[1],k[2],k[3]||0);var M,A=h;3===A.length?s.push(A[0],A[1],A[2],1):s.push(A[0],A[1],A[2],A[3]),M=p?[(p[T]-d)/(g-d),0]:[(y[2]-d)/(g-d),0],l.push(M[0],M[1]),f.push(m)}b+=1}}this.triangleCount=b,this.trianglePositions.update(a),this.triangleVectors.update(o),this.triangleColors.update(s),this.triangleUVs.update(l),this.triangleIds.update(new Uint32Array(f))}},p.drawTransparent=p.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var c={model:r,view:n,projection:i,inverseModel:f.slice(),clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,texture:0};c.inverseModel=l(c.inverseModel,c.model),e.disable(e.CULL_FACE),this.texture.bind(0);var u=new Array(16);s(u,c.view,c.model),s(u,c.projection,u),l(u,u);for(o=0;o&lt;3;++o)c.eyePosition[o]=u[12+o]/u[15];var h=u[15];for(o=0;o&lt;3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o&lt;3;++o){for(var p=u[12+o],d=0;d&lt;3;++d)p+=u[4*d+o]*this.lightPosition[d];c.lightPosition[o]=p/h}if(this.triangleCount&gt;0){var g=this.triShader;g.bind(),g.uniforms=c,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}},p.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s={model:r,view:n,projection:i,clipBounds:a,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},l=this.pickShader;l.bind(),l.uniforms=s,this.triangleCount&gt;0&amp;&amp;(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind())},p.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions[r[1]].slice(0,3),i={position:n,dataCoordinate:n,index:Math.floor(r[1]/48)};return&quot;cone&quot;===this.traceType?i.index=Math.floor(r[1]/48):&quot;streamtube&quot;===this.traceType&amp;&amp;(i.intensity=this.intensity[r[1]],i.velocity=this.vectors[r[1]].slice(0,3),i.divergence=this.vectors[r[1]][3],i.index=e),i},p.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()},e.exports=function(t,e,r){var n=r.shaders;1===arguments.length&amp;&amp;(t=(e=t).gl);var s=d(t,n),l=g(t,n),u=o(t,c(new Uint8Array([255,255,255,255]),[1,1,4]));u.generateMipmap(),u.minFilter=t.LINEAR_MIPMAP_LINEAR,u.magFilter=t.LINEAR;var f=i(t),p=i(t),m=i(t),v=i(t),y=i(t),x=a(t,[{buffer:f,type:t.FLOAT,size:4},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:m,type:t.FLOAT,size:4},{buffer:v,type:t.FLOAT,size:2},{buffer:p,type:t.FLOAT,size:4}]),b=new h(t,u,s,l,f,p,y,m,v,x,r.traceType||&quot;cone&quot;);return b.update(e),b}},{colormap:131,&quot;gl-buffer&quot;:259,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/multiply&quot;:295,&quot;gl-shader&quot;:335,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495}],262:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n//   segment + 0 top vertex\n//   segment + 1 perimeter vertex a+1\n//   segment + 2 perimeter vertex a\n//   segment + 3 center base vertex\n//   segment + 4 perimeter vertex a\n//   segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n  const float segmentCount = 8.0;\n\n  float index = rawIndex - floor(rawIndex /\n    (segmentCount * 6.0)) *\n    (segmentCount * 6.0);\n\n  float segment = floor(0.001 + index/6.0);\n  float segmentIndex = index - (segment*6.0);\n\n  normal = -normalize(d);\n\n  if (segmentIndex &gt; 2.99 &amp;&amp; segmentIndex &lt; 3.01) {\n    return mix(vec3(0.0), -d, coneOffset);\n  }\n\n  float nextAngle = (\n    (segmentIndex &gt; 0.99 &amp;&amp;  segmentIndex &lt; 1.01) ||\n    (segmentIndex &gt; 4.99 &amp;&amp;  segmentIndex &lt; 5.01)\n  ) ? 1.0 : 0.0;\n  float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n  vec3 v1 = mix(d, vec3(0.0), coneOffset);\n  vec3 v2 = v1 - d;\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d)*0.25;\n  vec3 y = v * sin(angle) * length(d)*0.25;\n  vec3 v3 = v2 + x + y;\n  if (segmentIndex &lt; 3.0) {\n    vec3 tx = u * sin(angle);\n    vec3 ty = v * -cos(angle);\n    vec3 tangent = tx + ty;\n    normal = normalize(cross(v3 - v1, tangent));\n  }\n\n  if (segmentIndex == 0.0) {\n    return mix(d, vec3(0.0), coneOffset);\n  }\n  return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  // Scale the vector magnitude to stay constant with\n  // model &amp; view changes.\n  vec3 normal;\n  vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n  vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * conePosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  // vec4 m_position  = model * vec4(conePosition, 1.0);\n  vec4 t_position  = view * conePosition;\n  gl_Position      = projection * t_position;\n\n  f_color          = color;\n  f_data           = conePosition.xyz;\n  f_position       = position.xyz;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * opacity;\n}\n&quot;]),o=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n//   segment + 0 top vertex\n//   segment + 1 perimeter vertex a+1\n//   segment + 2 perimeter vertex a\n//   segment + 3 center base vertex\n//   segment + 4 perimeter vertex a\n//   segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n  const float segmentCount = 8.0;\n\n  float index = rawIndex - floor(rawIndex /\n    (segmentCount * 6.0)) *\n    (segmentCount * 6.0);\n\n  float segment = floor(0.001 + index/6.0);\n  float segmentIndex = index - (segment*6.0);\n\n  normal = -normalize(d);\n\n  if (segmentIndex &gt; 2.99 &amp;&amp; segmentIndex &lt; 3.01) {\n    return mix(vec3(0.0), -d, coneOffset);\n  }\n\n  float nextAngle = (\n    (segmentIndex &gt; 0.99 &amp;&amp;  segmentIndex &lt; 1.01) ||\n    (segmentIndex &gt; 4.99 &amp;&amp;  segmentIndex &lt; 5.01)\n  ) ? 1.0 : 0.0;\n  float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n  vec3 v1 = mix(d, vec3(0.0), coneOffset);\n  vec3 v2 = v1 - d;\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d)*0.25;\n  vec3 y = v * sin(angle) * length(d)*0.25;\n  vec3 v3 = v2 + x + y;\n  if (segmentIndex &lt; 3.0) {\n    vec3 tx = u * sin(angle);\n    vec3 ty = v * -cos(angle);\n    vec3 tangent = tx + ty;\n    normal = normalize(cross(v3 - v1, tangent));\n  }\n\n  if (segmentIndex == 0.0) {\n    return mix(d, vec3(0.0), coneOffset);\n  }\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float vectorScale, coneScale, coneOffset;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  vec3 normal;\n  vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);\n  vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n  gl_Position = projection * view * conePosition;\n  f_id        = id;\n  f_position  = position.xyz;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;vector&quot;,type:&quot;vec3&quot;}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;},{name:&quot;vector&quot;,type:&quot;vec3&quot;}]}},{glslify:263}],263:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],264:[function(t,e,r){e.exports={0:&quot;NONE&quot;,1:&quot;ONE&quot;,2:&quot;LINE_LOOP&quot;,3:&quot;LINE_STRIP&quot;,4:&quot;TRIANGLES&quot;,5:&quot;TRIANGLE_STRIP&quot;,6:&quot;TRIANGLE_FAN&quot;,256:&quot;DEPTH_BUFFER_BIT&quot;,512:&quot;NEVER&quot;,513:&quot;LESS&quot;,514:&quot;EQUAL&quot;,515:&quot;LEQUAL&quot;,516:&quot;GREATER&quot;,517:&quot;NOTEQUAL&quot;,518:&quot;GEQUAL&quot;,519:&quot;ALWAYS&quot;,768:&quot;SRC_COLOR&quot;,769:&quot;ONE_MINUS_SRC_COLOR&quot;,770:&quot;SRC_ALPHA&quot;,771:&quot;ONE_MINUS_SRC_ALPHA&quot;,772:&quot;DST_ALPHA&quot;,773:&quot;ONE_MINUS_DST_ALPHA&quot;,774:&quot;DST_COLOR&quot;,775:&quot;ONE_MINUS_DST_COLOR&quot;,776:&quot;SRC_ALPHA_SATURATE&quot;,1024:&quot;STENCIL_BUFFER_BIT&quot;,1028:&quot;FRONT&quot;,1029:&quot;BACK&quot;,1032:&quot;FRONT_AND_BACK&quot;,1280:&quot;INVALID_ENUM&quot;,1281:&quot;INVALID_VALUE&quot;,1282:&quot;INVALID_OPERATION&quot;,1285:&quot;OUT_OF_MEMORY&quot;,1286:&quot;INVALID_FRAMEBUFFER_OPERATION&quot;,2304:&quot;CW&quot;,2305:&quot;CCW&quot;,2849:&quot;LINE_WIDTH&quot;,2884:&quot;CULL_FACE&quot;,2885:&quot;CULL_FACE_MODE&quot;,2886:&quot;FRONT_FACE&quot;,2928:&quot;DEPTH_RANGE&quot;,2929:&quot;DEPTH_TEST&quot;,2930:&quot;DEPTH_WRITEMASK&quot;,2931:&quot;DEPTH_CLEAR_VALUE&quot;,2932:&quot;DEPTH_FUNC&quot;,2960:&quot;STENCIL_TEST&quot;,2961:&quot;STENCIL_CLEAR_VALUE&quot;,2962:&quot;STENCIL_FUNC&quot;,2963:&quot;STENCIL_VALUE_MASK&quot;,2964:&quot;STENCIL_FAIL&quot;,2965:&quot;STENCIL_PASS_DEPTH_FAIL&quot;,2966:&quot;STENCIL_PASS_DEPTH_PASS&quot;,2967:&quot;STENCIL_REF&quot;,2968:&quot;STENCIL_WRITEMASK&quot;,2978:&quot;VIEWPORT&quot;,3024:&quot;DITHER&quot;,3042:&quot;BLEND&quot;,3088:&quot;SCISSOR_BOX&quot;,3089:&quot;SCISSOR_TEST&quot;,3106:&quot;COLOR_CLEAR_VALUE&quot;,3107:&quot;COLOR_WRITEMASK&quot;,3317:&quot;UNPACK_ALIGNMENT&quot;,3333:&quot;PACK_ALIGNMENT&quot;,3379:&quot;MAX_TEXTURE_SIZE&quot;,3386:&quot;MAX_VIEWPORT_DIMS&quot;,3408:&quot;SUBPIXEL_BITS&quot;,3410:&quot;RED_BITS&quot;,3411:&quot;GREEN_BITS&quot;,3412:&quot;BLUE_BITS&quot;,3413:&quot;ALPHA_BITS&quot;,3414:&quot;DEPTH_BITS&quot;,3415:&quot;STENCIL_BITS&quot;,3553:&quot;TEXTURE_2D&quot;,4352:&quot;DONT_CARE&quot;,4353:&quot;FASTEST&quot;,4354:&quot;NICEST&quot;,5120:&quot;BYTE&quot;,5121:&quot;UNSIGNED_BYTE&quot;,5122:&quot;SHORT&quot;,5123:&quot;UNSIGNED_SHORT&quot;,5124:&quot;INT&quot;,5125:&quot;UNSIGNED_INT&quot;,5126:&quot;FLOAT&quot;,5386:&quot;INVERT&quot;,5890:&quot;TEXTURE&quot;,6401:&quot;STENCIL_INDEX&quot;,6402:&quot;DEPTH_COMPONENT&quot;,6406:&quot;ALPHA&quot;,6407:&quot;RGB&quot;,6408:&quot;RGBA&quot;,6409:&quot;LUMINANCE&quot;,6410:&quot;LUMINANCE_ALPHA&quot;,7680:&quot;KEEP&quot;,7681:&quot;REPLACE&quot;,7682:&quot;INCR&quot;,7683:&quot;DECR&quot;,7936:&quot;VENDOR&quot;,7937:&quot;RENDERER&quot;,7938:&quot;VERSION&quot;,9728:&quot;NEAREST&quot;,9729:&quot;LINEAR&quot;,9984:&quot;NEAREST_MIPMAP_NEAREST&quot;,9985:&quot;LINEAR_MIPMAP_NEAREST&quot;,9986:&quot;NEAREST_MIPMAP_LINEAR&quot;,9987:&quot;LINEAR_MIPMAP_LINEAR&quot;,10240:&quot;TEXTURE_MAG_FILTER&quot;,10241:&quot;TEXTURE_MIN_FILTER&quot;,10242:&quot;TEXTURE_WRAP_S&quot;,10243:&quot;TEXTURE_WRAP_T&quot;,10497:&quot;REPEAT&quot;,10752:&quot;POLYGON_OFFSET_UNITS&quot;,16384:&quot;COLOR_BUFFER_BIT&quot;,32769:&quot;CONSTANT_COLOR&quot;,32770:&quot;ONE_MINUS_CONSTANT_COLOR&quot;,32771:&quot;CONSTANT_ALPHA&quot;,32772:&quot;ONE_MINUS_CONSTANT_ALPHA&quot;,32773:&quot;BLEND_COLOR&quot;,32774:&quot;FUNC_ADD&quot;,32777:&quot;BLEND_EQUATION_RGB&quot;,32778:&quot;FUNC_SUBTRACT&quot;,32779:&quot;FUNC_REVERSE_SUBTRACT&quot;,32819:&quot;UNSIGNED_SHORT_4_4_4_4&quot;,32820:&quot;UNSIGNED_SHORT_5_5_5_1&quot;,32823:&quot;POLYGON_OFFSET_FILL&quot;,32824:&quot;POLYGON_OFFSET_FACTOR&quot;,32854:&quot;RGBA4&quot;,32855:&quot;RGB5_A1&quot;,32873:&quot;TEXTURE_BINDING_2D&quot;,32926:&quot;SAMPLE_ALPHA_TO_COVERAGE&quot;,32928:&quot;SAMPLE_COVERAGE&quot;,32936:&quot;SAMPLE_BUFFERS&quot;,32937:&quot;SAMPLES&quot;,32938:&quot;SAMPLE_COVERAGE_VALUE&quot;,32939:&quot;SAMPLE_COVERAGE_INVERT&quot;,32968:&quot;BLEND_DST_RGB&quot;,32969:&quot;BLEND_SRC_RGB&quot;,32970:&quot;BLEND_DST_ALPHA&quot;,32971:&quot;BLEND_SRC_ALPHA&quot;,33071:&quot;CLAMP_TO_EDGE&quot;,33170:&quot;GENERATE_MIPMAP_HINT&quot;,33189:&quot;DEPTH_COMPONENT16&quot;,33306:&quot;DEPTH_STENCIL_ATTACHMENT&quot;,33635:&quot;UNSIGNED_SHORT_5_6_5&quot;,33648:&quot;MIRRORED_REPEAT&quot;,33901:&quot;ALIASED_POINT_SIZE_RANGE&quot;,33902:&quot;ALIASED_LINE_WIDTH_RANGE&quot;,33984:&quot;TEXTURE0&quot;,33985:&quot;TEXTURE1&quot;,33986:&quot;TEXTURE2&quot;,33987:&quot;TEXTURE3&quot;,33988:&quot;TEXTURE4&quot;,33989:&quot;TEXTURE5&quot;,33990:&quot;TEXTURE6&quot;,33991:&quot;TEXTURE7&quot;,33992:&quot;TEXTURE8&quot;,33993:&quot;TEXTURE9&quot;,33994:&quot;TEXTURE10&quot;,33995:&quot;TEXTURE11&quot;,33996:&quot;TEXTURE12&quot;,33997:&quot;TEXTURE13&quot;,33998:&quot;TEXTURE14&quot;,33999:&quot;TEXTURE15&quot;,34e3:&quot;TEXTURE16&quot;,34001:&quot;TEXTURE17&quot;,34002:&quot;TEXTURE18&quot;,34003:&quot;TEXTURE19&quot;,34004:&quot;TEXTURE20&quot;,34005:&quot;TEXTURE21&quot;,34006:&quot;TEXTURE22&quot;,34007:&quot;TEXTURE23&quot;,34008:&quot;TEXTURE24&quot;,34009:&quot;TEXTURE25&quot;,34010:&quot;TEXTURE26&quot;,34011:&quot;TEXTURE27&quot;,34012:&quot;TEXTURE28&quot;,34013:&quot;TEXTURE29&quot;,34014:&quot;TEXTURE30&quot;,34015:&quot;TEXTURE31&quot;,34016:&quot;ACTIVE_TEXTURE&quot;,34024:&quot;MAX_RENDERBUFFER_SIZE&quot;,34041:&quot;DEPTH_STENCIL&quot;,34055:&quot;INCR_WRAP&quot;,34056:&quot;DECR_WRAP&quot;,34067:&quot;TEXTURE_CUBE_MAP&quot;,34068:&quot;TEXTURE_BINDING_CUBE_MAP&quot;,34069:&quot;TEXTURE_CUBE_MAP_POSITIVE_X&quot;,34070:&quot;TEXTURE_CUBE_MAP_NEGATIVE_X&quot;,34071:&quot;TEXTURE_CUBE_MAP_POSITIVE_Y&quot;,34072:&quot;TEXTURE_CUBE_MAP_NEGATIVE_Y&quot;,34073:&quot;TEXTURE_CUBE_MAP_POSITIVE_Z&quot;,34074:&quot;TEXTURE_CUBE_MAP_NEGATIVE_Z&quot;,34076:&quot;MAX_CUBE_MAP_TEXTURE_SIZE&quot;,34338:&quot;VERTEX_ATTRIB_ARRAY_ENABLED&quot;,34339:&quot;VERTEX_ATTRIB_ARRAY_SIZE&quot;,34340:&quot;VERTEX_ATTRIB_ARRAY_STRIDE&quot;,34341:&quot;VERTEX_ATTRIB_ARRAY_TYPE&quot;,34342:&quot;CURRENT_VERTEX_ATTRIB&quot;,34373:&quot;VERTEX_ATTRIB_ARRAY_POINTER&quot;,34466:&quot;NUM_COMPRESSED_TEXTURE_FORMATS&quot;,34467:&quot;COMPRESSED_TEXTURE_FORMATS&quot;,34660:&quot;BUFFER_SIZE&quot;,34661:&quot;BUFFER_USAGE&quot;,34816:&quot;STENCIL_BACK_FUNC&quot;,34817:&quot;STENCIL_BACK_FAIL&quot;,34818:&quot;STENCIL_BACK_PASS_DEPTH_FAIL&quot;,34819:&quot;STENCIL_BACK_PASS_DEPTH_PASS&quot;,34877:&quot;BLEND_EQUATION_ALPHA&quot;,34921:&quot;MAX_VERTEX_ATTRIBS&quot;,34922:&quot;VERTEX_ATTRIB_ARRAY_NORMALIZED&quot;,34930:&quot;MAX_TEXTURE_IMAGE_UNITS&quot;,34962:&quot;ARRAY_BUFFER&quot;,34963:&quot;ELEMENT_ARRAY_BUFFER&quot;,34964:&quot;ARRAY_BUFFER_BINDING&quot;,34965:&quot;ELEMENT_ARRAY_BUFFER_BINDING&quot;,34975:&quot;VERTEX_ATTRIB_ARRAY_BUFFER_BINDING&quot;,35040:&quot;STREAM_DRAW&quot;,35044:&quot;STATIC_DRAW&quot;,35048:&quot;DYNAMIC_DRAW&quot;,35632:&quot;FRAGMENT_SHADER&quot;,35633:&quot;VERTEX_SHADER&quot;,35660:&quot;MAX_VERTEX_TEXTURE_IMAGE_UNITS&quot;,35661:&quot;MAX_COMBINED_TEXTURE_IMAGE_UNITS&quot;,35663:&quot;SHADER_TYPE&quot;,35664:&quot;FLOAT_VEC2&quot;,35665:&quot;FLOAT_VEC3&quot;,35666:&quot;FLOAT_VEC4&quot;,35667:&quot;INT_VEC2&quot;,35668:&quot;INT_VEC3&quot;,35669:&quot;INT_VEC4&quot;,35670:&quot;BOOL&quot;,35671:&quot;BOOL_VEC2&quot;,35672:&quot;BOOL_VEC3&quot;,35673:&quot;BOOL_VEC4&quot;,35674:&quot;FLOAT_MAT2&quot;,35675:&quot;FLOAT_MAT3&quot;,35676:&quot;FLOAT_MAT4&quot;,35678:&quot;SAMPLER_2D&quot;,35680:&quot;SAMPLER_CUBE&quot;,35712:&quot;DELETE_STATUS&quot;,35713:&quot;COMPILE_STATUS&quot;,35714:&quot;LINK_STATUS&quot;,35715:&quot;VALIDATE_STATUS&quot;,35716:&quot;INFO_LOG_LENGTH&quot;,35717:&quot;ATTACHED_SHADERS&quot;,35718:&quot;ACTIVE_UNIFORMS&quot;,35719:&quot;ACTIVE_UNIFORM_MAX_LENGTH&quot;,35720:&quot;SHADER_SOURCE_LENGTH&quot;,35721:&quot;ACTIVE_ATTRIBUTES&quot;,35722:&quot;ACTIVE_ATTRIBUTE_MAX_LENGTH&quot;,35724:&quot;SHADING_LANGUAGE_VERSION&quot;,35725:&quot;CURRENT_PROGRAM&quot;,36003:&quot;STENCIL_BACK_REF&quot;,36004:&quot;STENCIL_BACK_VALUE_MASK&quot;,36005:&quot;STENCIL_BACK_WRITEMASK&quot;,36006:&quot;FRAMEBUFFER_BINDING&quot;,36007:&quot;RENDERBUFFER_BINDING&quot;,36048:&quot;FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE&quot;,36049:&quot;FRAMEBUFFER_ATTACHMENT_OBJECT_NAME&quot;,36050:&quot;FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL&quot;,36051:&quot;FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE&quot;,36053:&quot;FRAMEBUFFER_COMPLETE&quot;,36054:&quot;FRAMEBUFFER_INCOMPLETE_ATTACHMENT&quot;,36055:&quot;FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT&quot;,36057:&quot;FRAMEBUFFER_INCOMPLETE_DIMENSIONS&quot;,36061:&quot;FRAMEBUFFER_UNSUPPORTED&quot;,36064:&quot;COLOR_ATTACHMENT0&quot;,36096:&quot;DEPTH_ATTACHMENT&quot;,36128:&quot;STENCIL_ATTACHMENT&quot;,36160:&quot;FRAMEBUFFER&quot;,36161:&quot;RENDERBUFFER&quot;,36162:&quot;RENDERBUFFER_WIDTH&quot;,36163:&quot;RENDERBUFFER_HEIGHT&quot;,36164:&quot;RENDERBUFFER_INTERNAL_FORMAT&quot;,36168:&quot;STENCIL_INDEX8&quot;,36176:&quot;RENDERBUFFER_RED_SIZE&quot;,36177:&quot;RENDERBUFFER_GREEN_SIZE&quot;,36178:&quot;RENDERBUFFER_BLUE_SIZE&quot;,36179:&quot;RENDERBUFFER_ALPHA_SIZE&quot;,36180:&quot;RENDERBUFFER_DEPTH_SIZE&quot;,36181:&quot;RENDERBUFFER_STENCIL_SIZE&quot;,36194:&quot;RGB565&quot;,36336:&quot;LOW_FLOAT&quot;,36337:&quot;MEDIUM_FLOAT&quot;,36338:&quot;HIGH_FLOAT&quot;,36339:&quot;LOW_INT&quot;,36340:&quot;MEDIUM_INT&quot;,36341:&quot;HIGH_INT&quot;,36346:&quot;SHADER_COMPILER&quot;,36347:&quot;MAX_VERTEX_UNIFORM_VECTORS&quot;,36348:&quot;MAX_VARYING_VECTORS&quot;,36349:&quot;MAX_FRAGMENT_UNIFORM_VECTORS&quot;,37440:&quot;UNPACK_FLIP_Y_WEBGL&quot;,37441:&quot;UNPACK_PREMULTIPLY_ALPHA_WEBGL&quot;,37442:&quot;CONTEXT_LOST_WEBGL&quot;,37443:&quot;UNPACK_COLORSPACE_CONVERSION_WEBGL&quot;,37444:&quot;BROWSER_DEFAULT_WEBGL&quot;}},{}],265:[function(t,e,r){var n=t(&quot;./1.0/numbers&quot;);e.exports=function(t){return n[t]}},{&quot;./1.0/numbers&quot;:264}],266:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),o=i(e,[{buffer:r,type:e.FLOAT,size:3,offset:0,stride:40},{buffer:r,type:e.FLOAT,size:4,offset:12,stride:40},{buffer:r,type:e.FLOAT,size:3,offset:28,stride:40}]),l=a(e);l.attributes.position.location=0,l.attributes.color.location=1,l.attributes.offset.location=2;var c=new s(e,r,o,l);return c.update(t),c};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders/index&quot;),o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.shader=n,this.buffer=e,this.vao=r,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var l=s.prototype;function c(t,e){for(var r=0;r&lt;3;++r)t[0][r]=Math.min(t[0][r],e[r]),t[1][r]=Math.max(t[1][r],e[r])}l.isOpaque=function(){return!this.hasAlpha},l.isTransparent=function(){return this.hasAlpha},l.drawTransparent=l.draw=function(t){var e=this.gl,r=this.shader.uniforms;this.shader.bind();var n=r.view=t.view||o,i=r.projection=t.projection||o;r.model=t.model||o,r.clipBounds=this.clipBounds,r.opacity=this.opacity;var a=n[12],s=n[13],l=n[14],c=n[15],u=(t._ortho||!1?2:1)*this.pixelRatio*(i[3]*a+i[7]*s+i[11]*l+i[15]*c)/e.drawingBufferHeight;this.vao.bind();for(var f=0;f&lt;3;++f)e.lineWidth(this.lineWidth[f]*this.pixelRatio),r.capSize=this.capSize[f]*u,this.lineCount[f]&amp;&amp;e.drawArrays(e.LINES,this.lineOffset[f],this.lineCount[f]);this.vao.unbind()};var u=function(){for(var t=new Array(3),e=0;e&lt;3;++e){for(var r=[],n=1;n&lt;=2;++n)for(var i=-1;i&lt;=1;i+=2){var a=[0,0,0];a[(n+e)%3]=i,r.push(a)}t[e]=r}return t}();function f(t,e,r,n){for(var i=u[n],a=0;a&lt;i.length;++a){var o=i[a];t.push(e[0],e[1],e[2],r[0],r[1],r[2],r[3],o[0],o[1],o[2])}return i.length}l.update=function(t){&quot;lineWidth&quot;in(t=t||{})&amp;&amp;(this.lineWidth=t.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),&quot;capSize&quot;in t&amp;&amp;(this.capSize=t.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=+t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0));var e=t.color||[[0,0,0],[0,0,0],[0,0,0]],r=t.position,n=t.error;if(Array.isArray(e[0])||(e=[e,e,e]),r&amp;&amp;n){var i=[],a=r.length,o=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var s=0;s&lt;3;++s){this.lineOffset[s]=o;t:for(var l=0;l&lt;a;++l){for(var u=r[l],h=0;h&lt;3;++h)if(isNaN(u[h])||!isFinite(u[h]))continue t;var p=n[l],d=e[s];if(Array.isArray(d[0])&amp;&amp;(d=e[l]),3===d.length?d=[d[0],d[1],d[2],1]:4===d.length&amp;&amp;(d=[d[0],d[1],d[2],d[3]],!this.hasAlpha&amp;&amp;d[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),!isNaN(p[0][s])&amp;&amp;!isNaN(p[1][s])){var g;if(p[0][s]&lt;0)(g=u.slice())[s]+=p[0][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s);if(p[1][s]&gt;0)(g=u.slice())[s]+=p[1][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s)}}this.lineCount[s]=o-this.lineOffset[s]}this.buffer.update(i)}},l.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},{&quot;./shaders/index&quot;:268,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],267:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],268:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, offset;\nattribute vec4 color;\nuniform mat4 model, view, projection;\nuniform float capSize;\nvarying vec4 fragColor;\nvarying vec3 fragPosition;\n\nvoid main() {\n  vec4 worldPosition  = model * vec4(position, 1.0);\n  worldPosition       = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\n  gl_Position         = projection * view * worldPosition;\n  fragColor           = color;\n  fragPosition        = position;\n}&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float opacity;\nvarying vec3 fragPosition;\nvarying vec4 fragColor;\n\nvoid main() {\n  if (\n    outOfRange(clipBounds[0], clipBounds[1], fragPosition) ||\n    fragColor.a * opacity == 0.\n  ) discard;\n\n  gl_FragColor = opacity * fragColor;\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;offset&quot;,type:&quot;vec3&quot;}])}},{&quot;gl-shader&quot;:335,glslify:267}],269:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-texture2d&quot;);e.exports=function(t,e,r,n){i||(i=t.FRAMEBUFFER_UNSUPPORTED,a=t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,o=t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,s=t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var c=t.getExtension(&quot;WEBGL_draw_buffers&quot;);!l&amp;&amp;c&amp;&amp;function(t,e){var r=t.getParameter(e.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(r+1);for(var n=0;n&lt;=r;++n){for(var i=new Array(r),a=0;a&lt;n;++a)i[a]=t.COLOR_ATTACHMENT0+a;for(a=n;a&lt;r;++a)i[a]=t.NONE;l[n]=i}}(t,c);Array.isArray(e)&amp;&amp;(n=r,r=0|e[1],e=0|e[0]);if(&quot;number&quot;!=typeof e)throw new Error(&quot;gl-fbo: Missing shape parameter&quot;);var u=t.getParameter(t.MAX_RENDERBUFFER_SIZE);if(e&lt;0||e&gt;u||r&lt;0||r&gt;u)throw new Error(&quot;gl-fbo: Parameters are too large for FBO&quot;);var f=1;if(&quot;color&quot;in(n=n||{})){if((f=Math.max(0|n.color,0))&lt;0)throw new Error(&quot;gl-fbo: Must specify a nonnegative number of colors&quot;);if(f&gt;1){if(!c)throw new Error(&quot;gl-fbo: Multiple draw buffer extension not supported&quot;);if(f&gt;t.getParameter(c.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error(&quot;gl-fbo: Context does not support &quot;+f+&quot; draw buffers&quot;)}}var h=t.UNSIGNED_BYTE,p=t.getExtension(&quot;OES_texture_float&quot;);if(n.float&amp;&amp;f&gt;0){if(!p)throw new Error(&quot;gl-fbo: Context does not support floating point textures&quot;);h=t.FLOAT}else n.preferFloat&amp;&amp;f&gt;0&amp;&amp;p&amp;&amp;(h=t.FLOAT);var g=!0;&quot;depth&quot;in n&amp;&amp;(g=!!n.depth);var m=!1;&quot;stencil&quot;in n&amp;&amp;(m=!!n.stencil);return new d(t,e,r,h,f,g,m,c)};var i,a,o,s,l=null;function c(t){return[t.getParameter(t.FRAMEBUFFER_BINDING),t.getParameter(t.RENDERBUFFER_BINDING),t.getParameter(t.TEXTURE_BINDING_2D)]}function u(t,e){t.bindFramebuffer(t.FRAMEBUFFER,e[0]),t.bindRenderbuffer(t.RENDERBUFFER,e[1]),t.bindTexture(t.TEXTURE_2D,e[2])}function f(t){switch(t){case i:throw new Error(&quot;gl-fbo: Framebuffer unsupported&quot;);case a:throw new Error(&quot;gl-fbo: Framebuffer incomplete attachment&quot;);case o:throw new Error(&quot;gl-fbo: Framebuffer incomplete dimensions&quot;);case s:throw new Error(&quot;gl-fbo: Framebuffer incomplete missing attachment&quot;);default:throw new Error(&quot;gl-fbo: Framebuffer failed for unspecified reason&quot;)}}function h(t,e,r,i,a,o){if(!i)return null;var s=n(t,e,r,a,i);return s.magFilter=t.NEAREST,s.minFilter=t.NEAREST,s.mipSamples=1,s.bind(),t.framebufferTexture2D(t.FRAMEBUFFER,o,t.TEXTURE_2D,s.handle,0),s}function p(t,e,r,n,i){var a=t.createRenderbuffer();return t.bindRenderbuffer(t.RENDERBUFFER,a),t.renderbufferStorage(t.RENDERBUFFER,n,e,r),t.framebufferRenderbuffer(t.FRAMEBUFFER,i,t.RENDERBUFFER,a),a}function d(t,e,r,n,i,a,o,s){this.gl=t,this._shape=[0|e,0|r],this._destroyed=!1,this._ext=s,this.color=new Array(i);for(var d=0;d&lt;i;++d)this.color[d]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=n,this._useDepth=a,this._useStencil=o;var g=this,m=[0|e,0|r];Object.defineProperties(m,{0:{get:function(){return g._shape[0]},set:function(t){return g.width=t}},1:{get:function(){return g._shape[1]},set:function(t){return g.height=t}}}),this._shapeVector=m,function(t){var e=c(t.gl),r=t.gl,n=t.handle=r.createFramebuffer(),i=t._shape[0],a=t._shape[1],o=t.color.length,s=t._ext,d=t._useStencil,g=t._useDepth,m=t._colorType;r.bindFramebuffer(r.FRAMEBUFFER,n);for(var v=0;v&lt;o;++v)t.color[v]=h(r,i,a,m,r.RGBA,r.COLOR_ATTACHMENT0+v);0===o?(t._color_rb=p(r,i,a,r.RGBA4,r.COLOR_ATTACHMENT0),s&amp;&amp;s.drawBuffersWEBGL(l[0])):o&gt;1&amp;&amp;s.drawBuffersWEBGL(l[o]);var y=r.getExtension(&quot;WEBGL_depth_texture&quot;);y?d?t.depth=h(r,i,a,y.UNSIGNED_INT_24_8_WEBGL,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g&amp;&amp;(t.depth=h(r,i,a,r.UNSIGNED_SHORT,r.DEPTH_COMPONENT,r.DEPTH_ATTACHMENT)):g&amp;&amp;d?t._depth_rb=p(r,i,a,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g?t._depth_rb=p(r,i,a,r.DEPTH_COMPONENT16,r.DEPTH_ATTACHMENT):d&amp;&amp;(t._depth_rb=p(r,i,a,r.STENCIL_INDEX,r.STENCIL_ATTACHMENT));var x=r.checkFramebufferStatus(r.FRAMEBUFFER);if(x!==r.FRAMEBUFFER_COMPLETE){t._destroyed=!0,r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(t.handle),t.handle=null,t.depth&amp;&amp;(t.depth.dispose(),t.depth=null),t._depth_rb&amp;&amp;(r.deleteRenderbuffer(t._depth_rb),t._depth_rb=null);for(v=0;v&lt;t.color.length;++v)t.color[v].dispose(),t.color[v]=null;t._color_rb&amp;&amp;(r.deleteRenderbuffer(t._color_rb),t._color_rb=null),u(r,e),f(x)}u(r,e)}(this)}var g=d.prototype;function m(t,e,r){if(t._destroyed)throw new Error(&quot;gl-fbo: Can't resize destroyed FBO&quot;);if(t._shape[0]!==e||t._shape[1]!==r){var n=t.gl,i=n.getParameter(n.MAX_RENDERBUFFER_SIZE);if(e&lt;0||e&gt;i||r&lt;0||r&gt;i)throw new Error(&quot;gl-fbo: Can't resize FBO, invalid dimensions&quot;);t._shape[0]=e,t._shape[1]=r;for(var a=c(n),o=0;o&lt;t.color.length;++o)t.color[o].shape=t._shape;t._color_rb&amp;&amp;(n.bindRenderbuffer(n.RENDERBUFFER,t._color_rb),n.renderbufferStorage(n.RENDERBUFFER,n.RGBA4,t._shape[0],t._shape[1])),t.depth&amp;&amp;(t.depth.shape=t._shape),t._depth_rb&amp;&amp;(n.bindRenderbuffer(n.RENDERBUFFER,t._depth_rb),t._useDepth&amp;&amp;t._useStencil?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t._shape[0],t._shape[1]):t._useDepth?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_COMPONENT16,t._shape[0],t._shape[1]):t._useStencil&amp;&amp;n.renderbufferStorage(n.RENDERBUFFER,n.STENCIL_INDEX,t._shape[0],t._shape[1])),n.bindFramebuffer(n.FRAMEBUFFER,t.handle);var s=n.checkFramebufferStatus(n.FRAMEBUFFER);s!==n.FRAMEBUFFER_COMPLETE&amp;&amp;(t.dispose(),u(n,a),f(s)),u(n,a)}}Object.defineProperties(g,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(t){if(Array.isArray(t)||(t=[0|t,0|t]),2!==t.length)throw new Error(&quot;gl-fbo: Shape vector must be length 2&quot;);var e=0|t[0],r=0|t[1];return m(this,e,r),[e,r]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(t){return m(this,t|=0,this._shape[1]),t},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(t){return t|=0,m(this,this._shape[0],t),t},enumerable:!1}}),g.bind=function(){if(!this._destroyed){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,this.handle),t.viewport(0,0,this._shape[0],this._shape[1])}},g.dispose=function(){if(!this._destroyed){this._destroyed=!0;var t=this.gl;t.deleteFramebuffer(this.handle),this.handle=null,this.depth&amp;&amp;(this.depth.dispose(),this.depth=null),this._depth_rb&amp;&amp;(t.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var e=0;e&lt;this.color.length;++e)this.color[e].dispose(),this.color[e]=null;this._color_rb&amp;&amp;(t.deleteRenderbuffer(this._color_rb),this._color_rb=null)}}},{&quot;gl-texture2d&quot;:353}],270:[function(t,e,r){var n=t(&quot;sprintf-js&quot;).sprintf,i=t(&quot;gl-constants/lookup&quot;),a=t(&quot;glsl-shader-name&quot;),o=t(&quot;add-line-numbers&quot;);e.exports=function(t,e,r){&quot;use strict&quot;;var s=a(e)||&quot;of unknown name (see npm glsl-shader-name)&quot;,l=&quot;unknown type&quot;;void 0!==r&amp;&amp;(l=r===i.FRAGMENT_SHADER?&quot;fragment&quot;:&quot;vertex&quot;);for(var c=n(&quot;Error compiling %s shader %s:\n&quot;,l,s),u=n(&quot;%s%s&quot;,c,t),f=t.split(&quot;\n&quot;),h={},p=0;p&lt;f.length;p++){var d=f[p];if(&quot;&quot;!==d&amp;&amp;&quot;\0&quot;!==d){var g=parseInt(d.split(&quot;:&quot;)[2]);if(isNaN(g))throw new Error(n(&quot;Could not parse error: %s&quot;,d));h[g]=d}}var m=o(e).split(&quot;\n&quot;);for(p=0;p&lt;m.length;p++)if(h[p+3]||h[p+2]||h[p+1]){var v=m[p];if(c+=v+&quot;\n&quot;,h[p+1]){var y=h[p+1];y=y.substr(y.split(&quot;:&quot;,3).join(&quot;:&quot;).length+1).trim(),c+=n(&quot;^^^ %s\n\n&quot;,y)}}return{long:c.trim(),short:u.trim()}}},{&quot;add-line-numbers&quot;:66,&quot;gl-constants/lookup&quot;:265,&quot;glsl-shader-name&quot;:431,&quot;sprintf-js&quot;:567}],271:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.gl,n=o(r,l.vertex,l.fragment),i=o(r,l.pickVertex,l.pickFragment),a=s(r),u=s(r),f=s(r),h=s(r),p=new c(t,n,i,a,u,f,h);return p.update(e),t.addObject(p),p};var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;iota-array&quot;),a=t(&quot;typedarray-pool&quot;),o=t(&quot;gl-shader&quot;),s=t(&quot;gl-buffer&quot;),l=t(&quot;./lib/shaders&quot;);function c(t,e,r,n,i,a,o){this.plot=t,this.shader=e,this.pickShader=r,this.positionBuffer=n,this.weightBuffer=i,this.colorBuffer=a,this.idBuffer=o,this.xData=[],this.yData=[],this.shape=[0,0],this.bounds=[1/0,1/0,-1/0,-1/0],this.pickOffset=0}var u,f=c.prototype,h=[0,0,1,0,0,1,1,0,1,1,0,1];f.draw=(u=[1,0,0,0,1,0,0,0,1],function(){var t=this.plot,e=this.shader,r=this.bounds,n=this.numVertices;if(!(n&lt;=0)){var i=t.gl,a=t.dataBox,o=r[2]-r[0],s=r[3]-r[1],l=a[2]-a[0],c=a[3]-a[1];u[0]=2*o/l,u[4]=2*s/c,u[6]=2*(r[0]-a[0])/l-1,u[7]=2*(r[1]-a[1])/c-1,e.bind();var f=e.uniforms;f.viewTransform=u,f.shape=this.shape;var h=e.attributes;this.positionBuffer.bind(),h.position.pointer(),this.weightBuffer.bind(),h.weight.pointer(i.UNSIGNED_BYTE,!1),this.colorBuffer.bind(),h.color.pointer(i.UNSIGNED_BYTE,!0),i.drawArrays(i.TRIANGLES,0,n)}}),f.drawPick=function(){var t=[1,0,0,0,1,0,0,0,1],e=[0,0,0,0];return function(r){var n=this.plot,i=this.pickShader,a=this.bounds,o=this.numVertices;if(!(o&lt;=0)){var s=n.gl,l=n.dataBox,c=a[2]-a[0],u=a[3]-a[1],f=l[2]-l[0],h=l[3]-l[1];t[0]=2*c/f,t[4]=2*u/h,t[6]=2*(a[0]-l[0])/f-1,t[7]=2*(a[1]-l[1])/h-1;for(var p=0;p&lt;4;++p)e[p]=r&gt;&gt;8*p&amp;255;this.pickOffset=r,i.bind();var d=i.uniforms;d.viewTransform=t,d.pickOffset=e,d.shape=this.shape;var g=i.attributes;return this.positionBuffer.bind(),g.position.pointer(),this.weightBuffer.bind(),g.weight.pointer(s.UNSIGNED_BYTE,!1),this.idBuffer.bind(),g.pickId.pointer(s.UNSIGNED_BYTE,!1),s.drawArrays(s.TRIANGLES,0,o),r+this.shape[0]*this.shape[1]}}}(),f.pick=function(t,e,r){var n=this.pickOffset,i=this.shape[0]*this.shape[1];if(r&lt;n||r&gt;=n+i)return null;var a=r-n,o=this.xData,s=this.yData;return{object:this,pointId:a,dataCoord:[o[a%this.shape[0]],s[a/this.shape[0]|0]]}},f.update=function(t){var e=(t=t||{}).shape||[0,0],r=t.x||i(e[0]),o=t.y||i(e[1]),s=t.z||new Float32Array(e[0]*e[1]),l=!1!==t.zsmooth;this.xData=r,this.yData=o;var c,u,f,p,d=t.colorLevels||[0],g=t.colorValues||[0,0,0,1],m=d.length,v=this.bounds;l?(c=v[0]=r[0],u=v[1]=o[0],f=v[2]=r[r.length-1],p=v[3]=o[o.length-1]):(c=v[0]=r[0]+(r[1]-r[0])/2,u=v[1]=o[0]+(o[1]-o[0])/2,f=v[2]=r[r.length-1]+(r[r.length-1]-r[r.length-2])/2,p=v[3]=o[o.length-1]+(o[o.length-1]-o[o.length-2])/2);var y=1/(f-c),x=1/(p-u),b=e[0],_=e[1];this.shape=[b,_];var w=(l?(b-1)*(_-1):b*_)*(h.length&gt;&gt;&gt;1);this.numVertices=w;for(var T=a.mallocUint8(4*w),k=a.mallocFloat32(2*w),M=a.mallocUint8(2*w),A=a.mallocUint32(w),S=0,E=l?b-1:b,C=l?_-1:_,L=0;L&lt;C;++L){var I,P;l?(I=x*(o[L]-u),P=x*(o[L+1]-u)):(I=L&lt;_-1?x*(o[L]-(o[L+1]-o[L])/2-u):x*(o[L]-(o[L]-o[L-1])/2-u),P=L&lt;_-1?x*(o[L]+(o[L+1]-o[L])/2-u):x*(o[L]+(o[L]-o[L-1])/2-u));for(var z=0;z&lt;E;++z){var O,D;l?(O=y*(r[z]-c),D=y*(r[z+1]-c)):(O=z&lt;b-1?y*(r[z]-(r[z+1]-r[z])/2-c):y*(r[z]-(r[z]-r[z-1])/2-c),D=z&lt;b-1?y*(r[z]+(r[z+1]-r[z])/2-c):y*(r[z]+(r[z]-r[z-1])/2-c));for(var R=0;R&lt;h.length;R+=2){var F,B,N,j,U=h[R],V=h[R+1],q=s[l?(L+V)*b+(z+U):L*b+z],H=n.le(d,q);if(H&lt;0)F=g[0],B=g[1],N=g[2],j=g[3];else if(H===m-1)F=g[4*m-4],B=g[4*m-3],N=g[4*m-2],j=g[4*m-1];else{var G=(q-d[H])/(d[H+1]-d[H]),Y=1-G,W=4*H,X=4*(H+1);F=Y*g[W]+G*g[X],B=Y*g[W+1]+G*g[X+1],N=Y*g[W+2]+G*g[X+2],j=Y*g[W+3]+G*g[X+3]}T[4*S]=255*F,T[4*S+1]=255*B,T[4*S+2]=255*N,T[4*S+3]=255*j,k[2*S]=.5*O+.5*D,k[2*S+1]=.5*I+.5*P,M[2*S]=U,M[2*S+1]=V,A[S]=L*b+z,S+=1}}}this.positionBuffer.update(k),this.weightBuffer.update(M),this.colorBuffer.update(T),this.idBuffer.update(A),a.free(k),a.free(T),a.free(M),a.free(A)},f.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.positionBuffer.dispose(),this.weightBuffer.dispose(),this.colorBuffer.dispose(),this.idBuffer.dispose(),this.plot.removeObject(this)}},{&quot;./lib/shaders&quot;:272,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335,&quot;iota-array&quot;:463,&quot;typedarray-pool&quot;:595}],272:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;);e.exports={fragment:n([&quot;precision lowp float;\n#define GLSLIFY 1\nvarying vec4 fragColor;\nvoid main() {\n  gl_FragColor = vec4(fragColor.rgb * fragColor.a, fragColor.a);\n}\n&quot;]),vertex:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 color;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragColor;\n\nvoid main() {\n  vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n  fragColor = color;\n  gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n&quot;]),pickFragment:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nuniform vec2 shape;\nuniform vec4 pickOffset;\n\nvoid main() {\n  vec2 d = step(.5, vWeight);\n  vec4 id = fragId + pickOffset;\n  id.x += d.x + d.y*shape.x;\n\n  id.y += floor(id.x / 256.0);\n  id.x -= floor(id.x / 256.0) * 256.0;\n\n  id.z += floor(id.y / 256.0);\n  id.y -= floor(id.y / 256.0) * 256.0;\n\n  id.w += floor(id.z / 256.0);\n  id.z -= floor(id.z / 256.0) * 256.0;\n\n  gl_FragColor = id/255.;\n}\n&quot;]),pickVertex:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nvoid main() {\n  vWeight = weight;\n\n  fragId = pickId;\n\n  vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n  gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n&quot;])}},{glslify:273}],273:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],274:[function(t,e,r){var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, nextPosition;\nattribute float arcLength, lineWidth;\nattribute vec4 color;\n\nuniform vec2 screenShape;\nuniform float pixelRatio;\nuniform mat4 model, view, projection;\n\nvarying vec4 fragColor;\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\n\nvec4 project(vec3 p) {\n  return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n  vec4 startPoint = project(position);\n  vec4 endPoint   = project(nextPosition);\n\n  vec2 A = startPoint.xy / startPoint.w;\n  vec2 B =   endPoint.xy /   endPoint.w;\n\n  float clipAngle = atan(\n    (B.y - A.y) * screenShape.y,\n    (B.x - A.x) * screenShape.x\n  );\n\n  vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\n    sin(clipAngle),\n    -cos(clipAngle)\n  ) / screenShape;\n\n  gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\n\n  worldPosition = position;\n  pixelArcLength = arcLength;\n  fragColor = color;\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3      clipBounds[2];\nuniform sampler2D dashTexture;\nuniform float     dashScale;\nuniform float     opacity;\n\nvarying vec3    worldPosition;\nvarying float   pixelArcLength;\nvarying vec4    fragColor;\n\nvoid main() {\n  if (\n    outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||\n    fragColor.a * opacity == 0.\n  ) discard;\n\n  float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\n  if(dashWeight &lt; 0.5) {\n    discard;\n  }\n  gl_FragColor = fragColor * opacity;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\n#define FLOAT_MAX  1.70141184e38\n#define FLOAT_MIN  1.17549435e-38\n\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl\nvec4 packFloat(float v) {\n  float av = abs(v);\n\n  //Handle special cases\n  if(av &lt; FLOAT_MIN) {\n    return vec4(0.0, 0.0, 0.0, 0.0);\n  } else if(v &gt; FLOAT_MAX) {\n    return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\n  } else if(v &lt; -FLOAT_MAX) {\n    return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\n  }\n\n  vec4 c = vec4(0,0,0,0);\n\n  //Compute exponent and mantissa\n  float e = floor(log2(av));\n  float m = av * pow(2.0, -e) - 1.0;\n\n  //Unpack mantissa\n  c[1] = floor(128.0 * m);\n  m -= c[1] / 128.0;\n  c[2] = floor(32768.0 * m);\n  m -= c[2] / 32768.0;\n  c[3] = floor(8388608.0 * m);\n\n  //Unpack exponent\n  float ebias = e + 127.0;\n  c[0] = floor(ebias / 2.0);\n  ebias -= c[0] * 2.0;\n  c[1] += floor(ebias) * 128.0;\n\n  //Unpack sign bit\n  c[0] += 128.0 * step(0.0, -v);\n\n  //Scale back to range\n  return c / 255.0;\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform float pickId;\nuniform vec3 clipBounds[2];\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\n\n  gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);\n}&quot;]),l=[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;nextPosition&quot;,type:&quot;vec3&quot;},{name:&quot;arcLength&quot;,type:&quot;float&quot;},{name:&quot;lineWidth&quot;,type:&quot;float&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;}];r.createShader=function(t){return i(t,a,o,null,l)},r.createPickShader=function(t){return i(t,a,s,null,l)}},{&quot;gl-shader&quot;:335,glslify:276}],275:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl||t.scene&amp;&amp;t.scene.gl,r=f(e);r.attributes.position.location=0,r.attributes.nextPosition.location=1,r.attributes.arcLength.location=2,r.attributes.lineWidth.location=3,r.attributes.color.location=4;var o=h(e);o.attributes.position.location=0,o.attributes.nextPosition.location=1,o.attributes.arcLength.location=2,o.attributes.lineWidth.location=3,o.attributes.color.location=4;for(var s=n(e),l=i(e,[{buffer:s,size:3,offset:0,stride:48},{buffer:s,size:3,offset:12,stride:48},{buffer:s,size:1,offset:24,stride:48},{buffer:s,size:1,offset:28,stride:48},{buffer:s,size:4,offset:32,stride:48}]),u=c(new Array(1024),[256,1,4]),p=0;p&lt;1024;++p)u.data[p]=255;var d=a(e,u);d.wrap=e.REPEAT;var g=new v(e,r,o,s,l,d);return g.update(t),g};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;gl-texture2d&quot;),o=new Uint8Array(4),s=new Float32Array(o.buffer);var l=t(&quot;binary-search-bounds&quot;),c=t(&quot;ndarray&quot;),u=t(&quot;./lib/shaders&quot;),f=u.createShader,h=u.createPickShader,p=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function d(t,e){for(var r=0,n=0;n&lt;3;++n){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)}function g(t){for(var e=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],r=0;r&lt;3;++r)e[0][r]=Math.max(t[0][r],e[0][r]),e[1][r]=Math.min(t[1][r],e[1][r]);return e}function m(t,e,r,n){this.arcLength=t,this.position=e,this.index=r,this.dataCoordinate=n}function v(t,e,r,n,i,a){this.gl=t,this.shader=e,this.pickShader=r,this.buffer=n,this.vao=i,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=a,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var y=v.prototype;y.isTransparent=function(){return this.hasAlpha},y.isOpaque=function(){return!this.hasAlpha},y.pickSlots=1,y.setPickBase=function(t){this.pickId=t},y.drawTransparent=y.draw=function(t){if(this.vertexCount){var e=this.gl,r=this.shader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,clipBounds:g(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.drawPick=function(t){if(this.vertexCount){var e=this.gl,r=this.pickShader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,pickId:this.pickId,clipBounds:g(this.clipBounds),screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.update=function(t){var e,r;this.dirty=!0;var n=!!t.connectGaps;&quot;dashScale&quot;in t&amp;&amp;(this.dashScale=t.dashScale),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=+t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0));var i=[],a=[],o=[],s=0,u=0,f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],h=t.position||t.positions;if(h){var p=t.color||t.colors||[0,0,0,1],g=t.lineWidth||1,m=!1;t:for(e=1;e&lt;h.length;++e){var v,y,x,b=h[e-1],_=h[e];for(a.push(s),o.push(b.slice()),r=0;r&lt;3;++r){if(isNaN(b[r])||isNaN(_[r])||!isFinite(b[r])||!isFinite(_[r])){if(!n&amp;&amp;i.length&gt;0){for(var w=0;w&lt;24;++w)i.push(i[i.length-12]);u+=2,m=!0}continue t}f[0][r]=Math.min(f[0][r],b[r],_[r]),f[1][r]=Math.max(f[1][r],b[r],_[r])}Array.isArray(p[0])?(v=p.length&gt;e-1?p[e-1]:p.length&gt;0?p[p.length-1]:[0,0,0,1],y=p.length&gt;e?p[e]:p.length&gt;0?p[p.length-1]:[0,0,0,1]):v=y=p,3===v.length&amp;&amp;(v=[v[0],v[1],v[2],1]),3===y.length&amp;&amp;(y=[y[0],y[1],y[2],1]),!this.hasAlpha&amp;&amp;v[3]&lt;1&amp;&amp;(this.hasAlpha=!0),x=Array.isArray(g)?g.length&gt;e-1?g[e-1]:g.length&gt;0?g[g.length-1]:[0,0,0,1]:g;var T=s;if(s+=d(b,_),m){for(r=0;r&lt;2;++r)i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3]);u+=2,m=!1}i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3],b[0],b[1],b[2],_[0],_[1],_[2],T,-x,v[0],v[1],v[2],v[3],_[0],_[1],_[2],b[0],b[1],b[2],s,-x,y[0],y[1],y[2],y[3],_[0],_[1],_[2],b[0],b[1],b[2],s,x,y[0],y[1],y[2],y[3]),u+=4}}if(this.buffer.update(i),a.push(s),o.push(h[h.length-1].slice()),this.bounds=f,this.vertexCount=u,this.points=o,this.arcLength=a,&quot;dashes&quot;in t){var k=t.dashes.slice();for(k.unshift(0),e=1;e&lt;k.length;++e)k[e]=k[e-1]+k[e];var M=c(new Array(1024),[256,1,4]);for(e=0;e&lt;256;++e){for(r=0;r&lt;4;++r)M.set(e,0,r,0);1&amp;l.le(k,k[k.length-1]*e/255)?M.set(e,0,0,0):M.set(e,0,0,255)}this.texture.setPixels(M)}},y.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},y.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=function(t,e,r,n){return o[0]=n,o[1]=r,o[2]=e,o[3]=t,s[0]}(t.value[0],t.value[1],t.value[2],0),r=l.le(this.arcLength,e);if(r&lt;0)return null;if(r===this.arcLength.length-1)return new m(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),r);for(var n=this.points[r],i=this.points[Math.min(r+1,this.points.length-1)],a=(e-this.arcLength[r])/(this.arcLength[r+1]-this.arcLength[r]),c=1-a,u=[0,0,0],f=0;f&lt;3;++f)u[f]=c*n[f]+a*i[f];var h=Math.min(a&lt;.5?r:r+1,this.points.length-1);return new m(e,u,h,this.points[h])}},{&quot;./lib/shaders&quot;:274,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495}],276:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],277:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15];return t[0]=s*(h*v-p*m)-f*(l*v-c*m)+g*(l*p-c*h),t[1]=-(n*(h*v-p*m)-f*(i*v-a*m)+g*(i*p-a*h)),t[2]=n*(l*v-c*m)-s*(i*v-a*m)+g*(i*c-a*l),t[3]=-(n*(l*p-c*h)-s*(i*p-a*h)+f*(i*c-a*l)),t[4]=-(o*(h*v-p*m)-u*(l*v-c*m)+d*(l*p-c*h)),t[5]=r*(h*v-p*m)-u*(i*v-a*m)+d*(i*p-a*h),t[6]=-(r*(l*v-c*m)-o*(i*v-a*m)+d*(i*c-a*l)),t[7]=r*(l*p-c*h)-o*(i*p-a*h)+u*(i*c-a*l),t[8]=o*(f*v-p*g)-u*(s*v-c*g)+d*(s*p-c*f),t[9]=-(r*(f*v-p*g)-u*(n*v-a*g)+d*(n*p-a*f)),t[10]=r*(s*v-c*g)-o*(n*v-a*g)+d*(n*c-a*s),t[11]=-(r*(s*p-c*f)-o*(n*p-a*f)+u*(n*c-a*s)),t[12]=-(o*(f*m-h*g)-u*(s*m-l*g)+d*(s*h-l*f)),t[13]=r*(f*m-h*g)-u*(n*m-i*g)+d*(n*h-i*f),t[14]=-(r*(s*m-l*g)-o*(n*m-i*g)+d*(n*l-i*s)),t[15]=r*(s*h-l*f)-o*(n*h-i*f)+u*(n*l-i*s),t}},{}],278:[function(t,e,r){e.exports=function(t){var e=new Float32Array(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},{}],279:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],280:[function(t,e,r){e.exports=function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],281:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],f=t[10],h=t[11],p=t[12],d=t[13],g=t[14],m=t[15];return(e*o-r*a)*(f*m-h*g)-(e*s-n*a)*(u*m-h*d)+(e*l-i*a)*(u*g-f*d)+(r*s-n*o)*(c*m-h*p)-(r*l-i*o)*(c*g-f*p)+(n*l-i*s)*(c*d-u*p)}},{}],282:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,c=r*o,u=n*o,f=n*s,h=i*o,p=i*s,d=i*l,g=a*o,m=a*s,v=a*l;return t[0]=1-f-d,t[1]=u+v,t[2]=h-m,t[3]=0,t[4]=u-v,t[5]=1-c-d,t[6]=p+g,t[7]=0,t[8]=h+m,t[9]=p-g,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],283:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o=r[0],s=r[1],l=r[2],c=Math.sqrt(o*o+s*s+l*l);if(Math.abs(c)&lt;1e-6)return null;return o*=c=1/c,s*=c,l*=c,n=Math.sin(e),i=Math.cos(e),a=1-i,t[0]=o*o*a+i,t[1]=s*o*a+l*n,t[2]=l*o*a-s*n,t[3]=0,t[4]=o*s*a-l*n,t[5]=s*s*a+i,t[6]=l*s*a+o*n,t[7]=0,t[8]=o*l*a+s*n,t[9]=s*l*a-o*n,t[10]=l*l*a+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],284:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=n+n,l=i+i,c=a+a,u=n*s,f=n*l,h=n*c,p=i*l,d=i*c,g=a*c,m=o*s,v=o*l,y=o*c;return t[0]=1-(p+g),t[1]=f+y,t[2]=h-v,t[3]=0,t[4]=f-y,t[5]=1-(u+g),t[6]=d+m,t[7]=0,t[8]=h+v,t[9]=d-m,t[10]=1-(u+p),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}},{}],285:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],286:[function(t,e,r){e.exports=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}},{}],287:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],288:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],289:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],290:[function(t,e,r){e.exports=function(t,e,r,n,i,a,o){var s=1/(r-e),l=1/(i-n),c=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(i+n)*l,t[10]=(o+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*c,t[15]=0,t}},{}],291:[function(t,e,r){e.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],292:[function(t,e,r){e.exports={create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),copy:t(&quot;./copy&quot;),identity:t(&quot;./identity&quot;),transpose:t(&quot;./transpose&quot;),invert:t(&quot;./invert&quot;),adjoint:t(&quot;./adjoint&quot;),determinant:t(&quot;./determinant&quot;),multiply:t(&quot;./multiply&quot;),translate:t(&quot;./translate&quot;),scale:t(&quot;./scale&quot;),rotate:t(&quot;./rotate&quot;),rotateX:t(&quot;./rotateX&quot;),rotateY:t(&quot;./rotateY&quot;),rotateZ:t(&quot;./rotateZ&quot;),fromRotation:t(&quot;./fromRotation&quot;),fromRotationTranslation:t(&quot;./fromRotationTranslation&quot;),fromScaling:t(&quot;./fromScaling&quot;),fromTranslation:t(&quot;./fromTranslation&quot;),fromXRotation:t(&quot;./fromXRotation&quot;),fromYRotation:t(&quot;./fromYRotation&quot;),fromZRotation:t(&quot;./fromZRotation&quot;),fromQuat:t(&quot;./fromQuat&quot;),frustum:t(&quot;./frustum&quot;),perspective:t(&quot;./perspective&quot;),perspectiveFromFieldOfView:t(&quot;./perspectiveFromFieldOfView&quot;),ortho:t(&quot;./ortho&quot;),lookAt:t(&quot;./lookAt&quot;),str:t(&quot;./str&quot;)}},{&quot;./adjoint&quot;:277,&quot;./clone&quot;:278,&quot;./copy&quot;:279,&quot;./create&quot;:280,&quot;./determinant&quot;:281,&quot;./fromQuat&quot;:282,&quot;./fromRotation&quot;:283,&quot;./fromRotationTranslation&quot;:284,&quot;./fromScaling&quot;:285,&quot;./fromTranslation&quot;:286,&quot;./fromXRotation&quot;:287,&quot;./fromYRotation&quot;:288,&quot;./fromZRotation&quot;:289,&quot;./frustum&quot;:290,&quot;./identity&quot;:291,&quot;./invert&quot;:293,&quot;./lookAt&quot;:294,&quot;./multiply&quot;:295,&quot;./ortho&quot;:296,&quot;./perspective&quot;:297,&quot;./perspectiveFromFieldOfView&quot;:298,&quot;./rotate&quot;:299,&quot;./rotateX&quot;:300,&quot;./rotateY&quot;:301,&quot;./rotateZ&quot;:302,&quot;./scale&quot;:303,&quot;./str&quot;:304,&quot;./translate&quot;:305,&quot;./transpose&quot;:306}],293:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*g-f*d,M=u*m-h*d,A=u*v-p*d,S=f*m-h*g,E=f*v-p*g,C=h*v-p*m,L=y*C-x*E+b*S+_*A-w*M+T*k;if(!L)return null;return L=1/L,t[0]=(s*C-l*E+c*S)*L,t[1]=(i*E-n*C-a*S)*L,t[2]=(g*T-m*w+v*_)*L,t[3]=(h*w-f*T-p*_)*L,t[4]=(l*A-o*C-c*M)*L,t[5]=(r*C-i*A+a*M)*L,t[6]=(m*b-d*T-v*x)*L,t[7]=(u*T-h*b+p*x)*L,t[8]=(o*E-s*A+c*k)*L,t[9]=(n*A-r*E-a*k)*L,t[10]=(d*w-g*b+v*y)*L,t[11]=(f*b-u*w-p*y)*L,t[12]=(s*M-o*S-l*k)*L,t[13]=(r*S-n*M+i*k)*L,t[14]=(g*x-d*_-m*y)*L,t[15]=(u*_-f*x+h*y)*L,t}},{}],294:[function(t,e,r){var n=t(&quot;./identity&quot;);e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g=e[0],m=e[1],v=e[2],y=i[0],x=i[1],b=i[2],_=r[0],w=r[1],T=r[2];if(Math.abs(g-_)&lt;1e-6&amp;&amp;Math.abs(m-w)&lt;1e-6&amp;&amp;Math.abs(v-T)&lt;1e-6)return n(t);f=g-_,h=m-w,p=v-T,d=1/Math.sqrt(f*f+h*h+p*p),a=x*(p*=d)-b*(h*=d),o=b*(f*=d)-y*p,s=y*h-x*f,(d=Math.sqrt(a*a+o*o+s*s))?(a*=d=1/d,o*=d,s*=d):(a=0,o=0,s=0);l=h*s-p*o,c=p*a-f*s,u=f*o-h*a,(d=Math.sqrt(l*l+c*c+u*u))?(l*=d=1/d,c*=d,u*=d):(l=0,c=0,u=0);return t[0]=a,t[1]=l,t[2]=f,t[3]=0,t[4]=o,t[5]=c,t[6]=h,t[7]=0,t[8]=s,t[9]=u,t[10]=p,t[11]=0,t[12]=-(a*g+o*m+s*v),t[13]=-(l*g+c*m+u*v),t[14]=-(f*g+h*m+p*v),t[15]=1,t}},{&quot;./identity&quot;:291}],295:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],m=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*m,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,x=r[4],b=r[5],_=r[6],w=r[7],t[4]=x*n+b*s+_*f+w*g,t[5]=x*i+b*l+_*h+w*m,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,x=r[8],b=r[9],_=r[10],w=r[11],t[8]=x*n+b*s+_*f+w*g,t[9]=x*i+b*l+_*h+w*m,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,x=r[12],b=r[13],_=r[14],w=r[15],t[12]=x*n+b*s+_*f+w*g,t[13]=x*i+b*l+_*h+w*m,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}},{}],296:[function(t,e,r){e.exports=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t}},{}],297:[function(t,e,r){e.exports=function(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t}},{}],298:[function(t,e,r){e.exports=function(t,e,r,n){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),c=2/(i+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(i-a)*c*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t}},{}],299:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S,E=n[0],C=n[1],L=n[2],I=Math.sqrt(E*E+C*C+L*L);if(Math.abs(I)&lt;1e-6)return null;E*=I=1/I,C*=I,L*=I,i=Math.sin(r),a=Math.cos(r),o=1-a,s=e[0],l=e[1],c=e[2],u=e[3],f=e[4],h=e[5],p=e[6],d=e[7],g=e[8],m=e[9],v=e[10],y=e[11],x=E*E*o+a,b=C*E*o+L*i,_=L*E*o-C*i,w=E*C*o-L*i,T=C*C*o+a,k=L*C*o+E*i,M=E*L*o+C*i,A=C*L*o-E*i,S=L*L*o+a,t[0]=s*x+f*b+g*_,t[1]=l*x+h*b+m*_,t[2]=c*x+p*b+v*_,t[3]=u*x+d*b+y*_,t[4]=s*w+f*T+g*k,t[5]=l*w+h*T+m*k,t[6]=c*w+p*T+v*k,t[7]=u*w+d*T+y*k,t[8]=s*M+f*A+g*S,t[9]=l*M+h*A+m*S,t[10]=c*M+p*A+v*S,t[11]=u*M+d*A+y*S,e!==t&amp;&amp;(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t}},{}],300:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t}},{}],301:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i-c*n,t[1]=o*i-u*n,t[2]=s*i-f*n,t[3]=l*i-h*n,t[8]=a*n+c*i,t[9]=o*n+u*i,t[10]=s*n+f*i,t[11]=l*n+h*i,t}},{}],302:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t}},{}],303:[function(t,e,r){e.exports=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],304:[function(t,e,r){e.exports=function(t){return&quot;mat4(&quot;+t[0]+&quot;, &quot;+t[1]+&quot;, &quot;+t[2]+&quot;, &quot;+t[3]+&quot;, &quot;+t[4]+&quot;, &quot;+t[5]+&quot;, &quot;+t[6]+&quot;, &quot;+t[7]+&quot;, &quot;+t[8]+&quot;, &quot;+t[9]+&quot;, &quot;+t[10]+&quot;, &quot;+t[11]+&quot;, &quot;+t[12]+&quot;, &quot;+t[13]+&quot;, &quot;+t[14]+&quot;, &quot;+t[15]+&quot;)&quot;}},{}],305:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],m=r[1],v=r[2];e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*m+f*v+e[12],t[13]=i*g+l*m+h*v+e[13],t[14]=a*g+c*m+p*v+e[14],t[15]=o*g+u*m+d*v+e[15]);return t}},{}],306:[function(t,e,r){e.exports=function(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}},{}],307:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;barycentric&quot;),i=t(&quot;polytope-closest-point/lib/closest_point_2d.js&quot;);function a(t,e){for(var r=[0,0,0,0],n=0;n&lt;4;++n)for(var i=0;i&lt;4;++i)r[i]+=t[4*n+i]*e[n];return r}function o(t,e,r,n,i){for(var o=a(n,a(r,a(e,[t[0],t[1],t[2],1]))),s=0;s&lt;3;++s)o[s]/=o[3];return[.5*i[0]*(1+o[0]),.5*i[1]*(1-o[1])]}function s(t,e){for(var r=[0,0,0],n=0;n&lt;t.length;++n)for(var i=t[n],a=e[n],o=0;o&lt;3;++o)r[o]+=a*i[o];return r}e.exports=function(t,e,r,a,l,c){if(1===t.length)return[0,t[0].slice()];for(var u=new Array(t.length),f=0;f&lt;t.length;++f)u[f]=o(t[f],r,a,l,c);var h=0,p=1/0;for(f=0;f&lt;u.length;++f){for(var d=0,g=0;g&lt;2;++g)d+=Math.pow(u[f][g]-e[g],2);d&lt;p&amp;&amp;(p=d,h=f)}var m=function(t,e){if(2===t.length){for(var r=0,a=0,o=0;o&lt;2;++o)r+=Math.pow(e[o]-t[0][o],2),a+=Math.pow(e[o]-t[1][o],2);return r=Math.sqrt(r),a=Math.sqrt(a),r+a&lt;1e-6?[1,0]:[a/(r+a),r/(a+r)]}if(3===t.length){var s=[0,0];return i(t[0],t[1],t[2],e,s),n(t,s)}return[]}(u,e),v=0;for(f=0;f&lt;3;++f){if(m[f]&lt;-.001||m[f]&gt;1.0001)return null;v+=m[f]}if(Math.abs(v-1)&gt;.001)return null;return[h,s(t,m),m]}},{barycentric:78,&quot;polytope-closest-point/lib/closest_point_2d.js&quot;:525}],308:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n           , view\n           , projection\n           , inverseModel;\nuniform vec3 eyePosition\n           , lightPosition;\n\nvarying vec3 f_normal\n           , f_lightDirection\n           , f_eyeDirection\n           , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvec4 project(vec3 p) {\n  return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n  gl_Position      = project(position);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * vec4(position , 1.0);\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal  = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  f_color          = color;\n  f_data           = position;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n            , fresnel\n            , kambient\n            , kdiffuse\n            , kspecular;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n           , f_lightDirection\n           , f_eyeDirection\n           , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (f_color.a == 0.0 ||\n    outOfRange(clipBounds[0], clipBounds[1], f_data)\n  ) discard;\n\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\n\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * f_color.a;\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model, view, projection;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n  f_color = color;\n  f_data  = position;\n  f_uv    = uv;\n}&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\n\n  gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}&quot;]),l=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\nattribute float pointSize;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0);\n  } else {\n    gl_Position = projection * view * model * vec4(position, 1.0);\n  }\n  gl_PointSize = pointSize;\n  f_color = color;\n  f_uv = uv;\n}&quot;]),c=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5);\n  if(dot(pointR, pointR) &gt; 0.25) {\n    discard;\n  }\n  gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}&quot;]),u=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n  f_id        = id;\n  f_position  = position;\n}&quot;]),f=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]),h=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3  position;\nattribute float pointSize;\nattribute vec4  id;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0.0, 0.0, 0.0, 0.0);\n  } else {\n    gl_Position  = projection * view * model * vec4(position, 1.0);\n    gl_PointSize = pointSize;\n  }\n  f_id         = id;\n  f_position   = position;\n}&quot;]),p=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n}&quot;]),d=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec3 contourColor;\n\nvoid main() {\n  gl_FragColor = vec4(contourColor, 1.0);\n}\n&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;}]},r.wireShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;}]},r.pointShader={vertex:l,fragment:c,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;pointSize&quot;,type:&quot;float&quot;}]},r.pickShader={vertex:u,fragment:f,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}]},r.pointPickShader={vertex:h,fragment:f,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;pointSize&quot;,type:&quot;float&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}]},r.contourShader={vertex:p,fragment:d,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;}]}},{glslify:310}],309:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;normals&quot;),l=t(&quot;gl-mat4/multiply&quot;),c=t(&quot;gl-mat4/invert&quot;),u=t(&quot;ndarray&quot;),f=t(&quot;colormap&quot;),h=t(&quot;simplicial-complex-contour&quot;),p=t(&quot;typedarray-pool&quot;),d=t(&quot;./lib/shaders&quot;),g=t(&quot;./lib/closest-point&quot;),m=d.meshShader,v=d.wireShader,y=d.pointShader,x=d.pickShader,b=d.pointPickShader,_=d.contourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function T(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,T,k,M,A,S){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleColors=u,this.triangleNormals=h,this.triangleUVs=f,this.triangleIds=c,this.triangleVAO=p,this.triangleCount=0,this.lineWidth=1,this.edgePositions=d,this.edgeColors=m,this.edgeUVs=v,this.edgeIds=g,this.edgeVAO=y,this.edgeCount=0,this.pointPositions=x,this.pointColors=_,this.pointUVs=T,this.pointSizes=k,this.pointIds=b,this.pointVAO=M,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=A,this.contourVAO=S,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=w,this._view=w,this._projection=w,this._resolution=[1,1]}var k=T.prototype;function M(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;r&lt;e.length;++r){if(e.length&lt;2)return 1;if(e[r][0]===t)return e[r][1];if(e[r][0]&gt;t&amp;&amp;r&gt;0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}function A(t){var e=n(t,m.vertex,m.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.normal.location=4,e}function S(t){var e=n(t,v.vertex,v.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e}function E(t){var e=n(t,y.vertex,y.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.pointSize.location=4,e}function C(t){var e=n(t,x.vertex,x.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e}function L(t){var e=n(t,b.vertex,b.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e.attributes.pointSize.location=4,e}function I(t){var e=n(t,_.vertex,_.fragment);return e.attributes.position.location=0,e}k.isOpaque=function(){return!this.hasAlpha},k.isTransparent=function(){return this.hasAlpha},k.pickSlots=1,k.setPickBase=function(t){this.pickId=t},k.highlight=function(t){if(t&amp;&amp;this.contourEnable){for(var e=h(this.cells,this.intensity,t.intensity),r=e.cells,n=e.vertexIds,i=e.vertexWeights,a=r.length,o=p.mallocFloat32(6*a),s=0,l=0;l&lt;a;++l)for(var c=r[l],u=0;u&lt;2;++u){var f=c[0];2===c.length&amp;&amp;(f=c[u]);for(var d=n[f][0],g=n[f][1],m=i[f],v=1-m,y=this.positions[d],x=this.positions[g],b=0;b&lt;3;++b)o[s++]=m*y[b]+v*x[b]}this.contourCount=s/3|0,this.contourPositions.update(o.subarray(0,s)),p.free(o)}else this.contourCount=0},k.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,&quot;contourEnable&quot;in t&amp;&amp;(this.contourEnable=t.contourEnable),&quot;contourColor&quot;in t&amp;&amp;(this.contourColor=t.contourColor),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;lightPosition&quot;in t&amp;&amp;(this.lightPosition=t.lightPosition),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0)),&quot;opacityscale&quot;in t&amp;&amp;(this.opacityscale=t.opacityscale,this.hasAlpha=!0),&quot;ambient&quot;in t&amp;&amp;(this.ambientLight=t.ambient),&quot;diffuse&quot;in t&amp;&amp;(this.diffuseLight=t.diffuse),&quot;specular&quot;in t&amp;&amp;(this.specularLight=t.specular),&quot;roughness&quot;in t&amp;&amp;(this.roughness=t.roughness),&quot;fresnel&quot;in t&amp;&amp;(this.fresnel=t.fresnel),t.texture?(this.texture.dispose(),this.texture=o(e,t.texture)):t.colormap&amp;&amp;(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t,e){for(var r=f({colormap:t,nshades:256,format:&quot;rgba&quot;}),n=new Uint8Array(1024),i=0;i&lt;256;++i){for(var a=r[i],o=0;o&lt;3;++o)n[4*i+o]=a[o];n[4*i+3]=e?255*M(i/255,e):255*a[3]}return u(n,[256,256,4],[4,0,1])}(t.colormap,this.opacityscale)),this.texture.generateMipmap());var r=t.cells,n=t.positions;if(n&amp;&amp;r){var i=[],a=[],l=[],c=[],h=[],p=[],d=[],g=[],m=[],v=[],y=[],x=[],b=[],_=[];this.cells=r,this.positions=n;var w=t.vertexNormals,T=t.cellNormals,k=void 0===t.vertexNormalsEpsilon?1e-6:t.vertexNormalsEpsilon,A=void 0===t.faceNormalsEpsilon?1e-6:t.faceNormalsEpsilon;t.useFacetNormals&amp;&amp;!T&amp;&amp;(T=s.faceNormals(r,n,A)),T||w||(w=s.vertexNormals(r,n,k));var S=t.vertexColors,E=t.cellColors,C=t.meshColor||[1,1,1,1],L=t.vertexUVs,I=t.vertexIntensity,P=t.cellUVs,z=t.cellIntensity,O=1/0,D=-1/0;if(!L&amp;&amp;!P)if(I)if(t.vertexIntensityBounds)O=+t.vertexIntensityBounds[0],D=+t.vertexIntensityBounds[1];else for(var R=0;R&lt;I.length;++R){var F=I[R];O=Math.min(O,F),D=Math.max(D,F)}else if(z)if(t.cellIntensityBounds)O=+t.cellIntensityBounds[0],D=+t.cellIntensityBounds[1];else for(R=0;R&lt;z.length;++R){F=z[R];O=Math.min(O,F),D=Math.max(D,F)}else for(R=0;R&lt;n.length;++R){F=n[R][2];O=Math.min(O,F),D=Math.max(D,F)}this.intensity=I||(z||function(t){for(var e=t.length,r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n][2];return r}(n)),this.pickVertex=!(z||E);var B=t.pointSizes,N=t.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(R=0;R&lt;n.length;++R)for(var j=n[R],U=0;U&lt;3;++U)!isNaN(j[U])&amp;&amp;isFinite(j[U])&amp;&amp;(this.bounds[0][U]=Math.min(this.bounds[0][U],j[U]),this.bounds[1][U]=Math.max(this.bounds[1][U],j[U]));var V=0,q=0,H=0;t:for(R=0;R&lt;r.length;++R){var G=r[R];switch(G.length){case 1:for(j=n[W=G[0]],U=0;U&lt;3;++U)if(isNaN(j[U])||!isFinite(j[U]))continue t;v.push(j[0],j[1],j[2]),X=S?S[W]:E?E[R]:C,this.opacityscale&amp;&amp;I?a.push(X[0],X[1],X[2],this.opacity*M((I[W]-O)/(D-O),this.opacityscale)):3===X.length?y.push(X[0],X[1],X[2],this.opacity):(y.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),Z=L?L[W]:I?[(I[W]-O)/(D-O),0]:P?P[R]:z?[(z[R]-O)/(D-O),0]:[(j[2]-O)/(D-O),0],x.push(Z[0],Z[1]),B?b.push(B[W]):b.push(N),_.push(R),H+=1;break;case 2:for(U=0;U&lt;2;++U){j=n[W=G[U]];for(var Y=0;Y&lt;3;++Y)if(isNaN(j[Y])||!isFinite(j[Y]))continue t}for(U=0;U&lt;2;++U){j=n[W=G[U]];p.push(j[0],j[1],j[2]),X=S?S[W]:E?E[R]:C,this.opacityscale&amp;&amp;I?a.push(X[0],X[1],X[2],this.opacity*M((I[W]-O)/(D-O),this.opacityscale)):3===X.length?d.push(X[0],X[1],X[2],this.opacity):(d.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),Z=L?L[W]:I?[(I[W]-O)/(D-O),0]:P?P[R]:z?[(z[R]-O)/(D-O),0]:[(j[2]-O)/(D-O),0],g.push(Z[0],Z[1]),m.push(R)}q+=1;break;case 3:for(U=0;U&lt;3;++U)for(j=n[W=G[U]],Y=0;Y&lt;3;++Y)if(isNaN(j[Y])||!isFinite(j[Y]))continue t;for(U=0;U&lt;3;++U){var W,X,Z,J;j=n[W=G[2-U]];i.push(j[0],j[1],j[2]),(X=S?S[W]:E?E[R]:C)?this.opacityscale&amp;&amp;I?a.push(X[0],X[1],X[2],this.opacity*M((I[W]-O)/(D-O),this.opacityscale)):3===X.length?a.push(X[0],X[1],X[2],this.opacity):(a.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)):a.push(.5,.5,.5,1),Z=L?L[W]:I?[(I[W]-O)/(D-O),0]:P?P[R]:z?[(z[R]-O)/(D-O),0]:[(j[2]-O)/(D-O),0],c.push(Z[0],Z[1]),J=w?w[W]:T[R],l.push(J[0],J[1],J[2]),h.push(R)}V+=1}}this.pointCount=H,this.edgeCount=q,this.triangleCount=V,this.pointPositions.update(v),this.pointColors.update(y),this.pointUVs.update(x),this.pointSizes.update(b),this.pointIds.update(new Uint32Array(_)),this.edgePositions.update(p),this.edgeColors.update(d),this.edgeUVs.update(g),this.edgeIds.update(new Uint32Array(m)),this.trianglePositions.update(i),this.triangleColors.update(a),this.triangleUVs.update(c),this.triangleNormals.update(l),this.triangleIds.update(new Uint32Array(h))}},k.drawTransparent=k.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var s={model:r,view:n,projection:i,inverseModel:w.slice(),clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],contourColor:this.contourColor,texture:0};s.inverseModel=c(s.inverseModel,s.model),e.disable(e.CULL_FACE),this.texture.bind(0);var u=new Array(16);l(u,s.view,s.model),l(u,s.projection,u),c(u,u);for(o=0;o&lt;3;++o)s.eyePosition[o]=u[12+o]/u[15];var f,h=u[15];for(o=0;o&lt;3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o&lt;3;++o){for(var p=u[12+o],d=0;d&lt;3;++d)p+=u[4*d+o]*this.lightPosition[d];s.lightPosition[o]=p/h}this.triangleCount&gt;0&amp;&amp;((f=this.triShader).bind(),f.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind());this.edgeCount&gt;0&amp;&amp;this.lineWidth&gt;0&amp;&amp;((f=this.lineShader).bind(),f.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind());this.pointCount&gt;0&amp;&amp;((f=this.pointShader).bind(),f.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind());this.contourEnable&amp;&amp;this.contourCount&gt;0&amp;&amp;this.contourLineWidth&gt;0&amp;&amp;((f=this.contourShader).bind(),f.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind())},k.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s,l={model:r,view:n,projection:i,clipBounds:a,pickId:this.pickId/255};((s=this.pickShader).bind(),s.uniforms=l,this.triangleCount&gt;0&amp;&amp;(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount&gt;0&amp;&amp;(this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount&gt;0)&amp;&amp;((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind())},k.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;for(var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions,i=new Array(r.length),a=0;a&lt;r.length;++a)i[a]=n[r[a]];var o=t.coord[0],s=t.coord[1];if(!this.pickVertex){var l=this.positions[r[0]],c=this.positions[r[1]],u=this.positions[r[2]],f=[(l[0]+c[0]+u[0])/3,(l[1]+c[1]+u[1])/3,(l[2]+c[2]+u[2])/3];return{_cellCenter:!0,position:[o,s],index:e,cell:r,cellId:e,intensity:this.intensity[e],dataCoordinate:f}}var h=g(i,[o*this.pixelRatio,this._resolution[1]-s*this.pixelRatio],this._model,this._view,this._projection,this._resolution);if(!h)return null;var p=h[2],d=0;for(a=0;a&lt;r.length;++a)d+=p[a]*this.intensity[r[a]];return{position:h[1],index:r[h[0]],cell:r,cellId:e,intensity:d,dataCoordinate:this.positions[r[h[0]]]}},k.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.lineShader.dispose(),this.pointShader.dispose(),this.pickShader.dispose(),this.pointPickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose(),this.contourShader.dispose()},e.exports=function(t,e){1===arguments.length&amp;&amp;(t=(e=t).gl);var r=t.getExtension(&quot;OES_standard_derivatives&quot;)||t.getExtension(&quot;MOZ_OES_standard_derivatives&quot;)||t.getExtension(&quot;WEBKIT_OES_standard_derivatives&quot;);if(!r)throw new Error(&quot;derivatives not supported&quot;);var n=A(t),s=S(t),l=E(t),c=C(t),f=L(t),h=I(t),p=o(t,u(new Uint8Array([255,255,255,255]),[1,1,4]));p.generateMipmap(),p.minFilter=t.LINEAR_MIPMAP_LINEAR,p.magFilter=t.LINEAR;var d=i(t),g=i(t),m=i(t),v=i(t),y=i(t),x=a(t,[{buffer:d,type:t.FLOAT,size:3},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:g,type:t.FLOAT,size:4},{buffer:m,type:t.FLOAT,size:2},{buffer:v,type:t.FLOAT,size:3}]),b=i(t),_=i(t),w=i(t),k=i(t),M=a(t,[{buffer:b,type:t.FLOAT,size:3},{buffer:k,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:_,type:t.FLOAT,size:4},{buffer:w,type:t.FLOAT,size:2}]),P=i(t),z=i(t),O=i(t),D=i(t),R=i(t),F=a(t,[{buffer:P,type:t.FLOAT,size:3},{buffer:R,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:z,type:t.FLOAT,size:4},{buffer:O,type:t.FLOAT,size:2},{buffer:D,type:t.FLOAT,size:1}]),B=i(t),N=a(t,[{buffer:B,type:t.FLOAT,size:3}]),j=new T(t,p,n,s,l,c,f,h,d,y,g,m,v,x,b,k,_,w,M,P,R,z,O,D,F,B,N);return j.update(e),j}},{&quot;./lib/closest-point&quot;:307,&quot;./lib/shaders&quot;:308,colormap:131,&quot;gl-buffer&quot;:259,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/multiply&quot;:295,&quot;gl-shader&quot;:335,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495,normals:498,&quot;simplicial-complex-contour&quot;:556,&quot;typedarray-pool&quot;:595}],310:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],311:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[0,0,0,1,1,0,1,1]),s=i(e,a.boxVert,a.lineFrag);return new o(t,r,s)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;./shaders&quot;);function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawBox=(s=[0,0],l=[0,0],function(t,e,r,n,i){var a=this.plot,o=this.shader,c=a.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,o.uniforms.lo=s,o.uniforms.hi=l,o.uniforms.color=i,c.drawArrays(c.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:314,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],312:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),a=i(e,o.gridVert,o.gridFrag),l=i(e,o.tickVert,o.gridFrag);return new s(t,r,a,l)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;binary-search-bounds&quot;),o=t(&quot;./shaders&quot;);function s(t,e,r,n){this.plot=t,this.vbo=e,this.shader=r,this.tickShader=n,this.ticks=[[],[]]}function l(t,e){return t-e}var c,u,f,h,p,d=s.prototype;d.draw=(c=[0,0],u=[0,0],f=[0,0],function(){for(var t=this.plot,e=this.vbo,r=this.shader,n=this.ticks,i=t.gl,a=t._tickBounds,o=t.dataBox,s=t.viewBox,l=t.gridLineWidth,h=t.gridLineColor,p=t.gridLineEnable,d=t.pixelRatio,g=0;g&lt;2;++g){var m=a[g],v=a[g+2]-m,y=.5*(o[g+2]+o[g]),x=o[g+2]-o[g];u[g]=2*v/x,c[g]=2*(m-y)/x}r.bind(),e.bind(),r.attributes.dataCoord.pointer(),r.uniforms.dataShift=c,r.uniforms.dataScale=u;var b=0;for(g=0;g&lt;2;++g){f[0]=f[1]=0,f[g]=1,r.uniforms.dataAxis=f,r.uniforms.lineWidth=l[g]/(s[g+2]-s[g])*d,r.uniforms.color=h[g];var _=6*n[g].length;p[g]&amp;&amp;_&amp;&amp;i.drawArrays(i.TRIANGLES,b,_),b+=_}}),d.drawTickMarks=function(){var t=[0,0],e=[0,0],r=[1,0],n=[0,1],i=[0,0],o=[0,0];return function(){for(var s=this.plot,c=this.vbo,u=this.tickShader,f=this.ticks,h=s.gl,p=s._tickBounds,d=s.dataBox,g=s.viewBox,m=s.pixelRatio,v=s.screenBox,y=v[2]-v[0],x=v[3]-v[1],b=g[2]-g[0],_=g[3]-g[1],w=0;w&lt;2;++w){var T=p[w],k=p[w+2]-T,M=.5*(d[w+2]+d[w]),A=d[w+2]-d[w];e[w]=2*k/A,t[w]=2*(T-M)/A}e[0]*=b/y,t[0]*=b/y,e[1]*=_/x,t[1]*=_/x,u.bind(),c.bind(),u.attributes.dataCoord.pointer();var S=u.uniforms;S.dataShift=t,S.dataScale=e;var E=s.tickMarkLength,C=s.tickMarkWidth,L=s.tickMarkColor,I=6*f[0].length,P=Math.min(a.ge(f[0],(d[0]-p[0])/(p[2]-p[0]),l),f[0].length),z=Math.min(a.gt(f[0],(d[2]-p[0])/(p[2]-p[0]),l),f[0].length),O=0+6*P,D=6*Math.max(0,z-P),R=Math.min(a.ge(f[1],(d[1]-p[1])/(p[3]-p[1]),l),f[1].length),F=Math.min(a.gt(f[1],(d[3]-p[1])/(p[3]-p[1]),l),f[1].length),B=I+6*R,N=6*Math.max(0,F-R);i[0]=2*(g[0]-E[1])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[1]*m/y,o[1]=C[1]*m/x,N&amp;&amp;(S.color=L[1],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,B,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[1]-E[0])/x-1,o[0]=C[0]*m/y,o[1]=E[0]*m/x,D&amp;&amp;(S.color=L[0],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,O,D)),i[0]=2*(g[2]+E[3])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[3]*m/y,o[1]=C[3]*m/x,N&amp;&amp;(S.color=L[3],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,B,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[3]+E[2])/x-1,o[0]=C[2]*m/y,o[1]=E[2]*m/x,D&amp;&amp;(S.color=L[2],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,O,D))}}(),d.update=(h=[1,1,-1,-1,1,-1],p=[1,-1,1,1,-1,-1],function(t){for(var e=t.ticks,r=t.bounds,n=new Float32Array(18*(e[0].length+e[1].length)),i=(this.plot.zeroLineEnable,0),a=[[],[]],o=0;o&lt;2;++o)for(var s=a[o],l=e[o],c=r[o],u=r[o+2],f=0;f&lt;l.length;++f){var d=(l[f].x-c)/(u-c);s.push(d);for(var g=0;g&lt;6;++g)n[i++]=d,n[i++]=h[g],n[i++]=p[g]}this.ticks=a,this.vbo.update(n)}),d.dispose=function(){this.vbo.dispose(),this.shader.dispose(),this.tickShader.dispose()}},{&quot;./shaders&quot;:314,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],313:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[-1,-1,-1,1,1,-1,1,1]),s=i(e,a.lineVert,a.lineFrag);return new o(t,r,s)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;./shaders&quot;);function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawLine=(s=[0,0],l=[0,0],function(t,e,r,n,i,a){var o=this.plot,c=this.shader,u=o.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,c.uniforms.start=s,c.uniforms.end=l,c.uniforms.width=i*o.pixelRatio,c.uniforms.color=a,u.drawArrays(u.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:314,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],314:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=n([&quot;precision lowp float;\n#define GLSLIFY 1\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = vec4(color.xyz * color.w, color.w);\n}\n&quot;]);e.exports={lineVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 start, end;\nuniform float width;\n\nvec2 perp(vec2 v) {\n  return vec2(v.y, -v.x);\n}\n\nvec2 screen(vec2 v) {\n  return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n  vec2 delta = normalize(perp(start - end));\n  vec2 offset = mix(start, end, 0.5 * (coord.y+1.0));\n  gl_Position = vec4(screen(offset + 0.5 * width * delta * coord.x), 0, 1);\n}\n&quot;]),lineFrag:i,textVert:n([&quot;#define GLSLIFY 1\nattribute vec3 textCoordinate;\n\nuniform vec2 dataScale, dataShift, dataAxis, screenOffset, textScale;\nuniform float angle;\n\nvoid main() {\n  float dataOffset  = textCoordinate.z;\n  vec2 glyphOffset  = textCoordinate.xy;\n  mat2 glyphMatrix = mat2(cos(angle), sin(angle), -sin(angle), cos(angle));\n  vec2 screenCoordinate = dataAxis * (dataScale * dataOffset + dataShift) +\n    glyphMatrix * glyphOffset * textScale + screenOffset;\n  gl_Position = vec4(screenCoordinate, 0, 1);\n}\n&quot;]),textFrag:i,gridVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale;\nuniform float lineWidth;\n\nvoid main() {\n  vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n  pos += 10.0 * dataCoord.y * vec2(dataAxis.y, -dataAxis.x) + dataCoord.z * lineWidth;\n  gl_Position = vec4(pos, 0, 1);\n}\n&quot;]),gridFrag:i,boxVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 lo, hi;\n\nvec2 screen(vec2 v) {\n  return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n  gl_Position = vec4(screen(mix(lo, hi, coord)), 0, 1);\n}\n&quot;]),tickVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale, screenOffset, tickScale;\n\nvoid main() {\n  vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n  gl_Position = vec4(pos + tickScale*dataCoord.yz + screenOffset, 0, 1);\n}\n&quot;])}},{glslify:316}],315:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),a=i(e,s.textVert,s.textFrag);return new l(t,r,a)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;text-cache&quot;),o=t(&quot;binary-search-bounds&quot;),s=t(&quot;./shaders&quot;);function l(t,e,r){this.plot=t,this.vbo=e,this.shader=r,this.tickOffset=[[],[]],this.tickX=[[],[]],this.labelOffset=[0,0],this.labelCount=[0,0]}var c,u,f,h,p,d,g=l.prototype;g.drawTicks=(c=[0,0],u=[0,0],f=[0,0],function(t){var e=this.plot,r=this.shader,n=this.tickX[t],i=this.tickOffset[t],a=e.gl,s=e.viewBox,l=e.dataBox,h=e.screenBox,p=e.pixelRatio,d=e.tickEnable,g=e.tickPad,m=e.tickColor,v=e.tickAngle,y=e.labelEnable,x=e.labelPad,b=e.labelColor,_=e.labelAngle,w=this.labelOffset[t],T=this.labelCount[t],k=o.lt(n,l[t]),M=o.le(n,l[t+2]);c[0]=c[1]=0,c[t]=1,u[t]=(s[2+t]+s[t])/(h[2+t]-h[t])-1;var A=2/h[2+(1^t)]-h[1^t];u[1^t]=A*s[1^t]-1,d[t]&amp;&amp;(u[1^t]-=A*p*g[t],k&lt;M&amp;&amp;i[M]&gt;i[k]&amp;&amp;(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=m[t],r.uniforms.angle=v[t],a.drawArrays(a.TRIANGLES,i[k],i[M]-i[k]))),y[t]&amp;&amp;T&amp;&amp;(u[1^t]-=A*p*x[t],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t],r.uniforms.angle=_[t],a.drawArrays(a.TRIANGLES,w,T)),u[1^t]=A*s[2+(1^t)]-1,d[t+2]&amp;&amp;(u[1^t]+=A*p*g[t+2],k&lt;M&amp;&amp;i[M]&gt;i[k]&amp;&amp;(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=m[t+2],r.uniforms.angle=v[t+2],a.drawArrays(a.TRIANGLES,i[k],i[M]-i[k]))),y[t+2]&amp;&amp;T&amp;&amp;(u[1^t]+=A*p*x[t+2],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t+2],r.uniforms.angle=_[t+2],a.drawArrays(a.TRIANGLES,w,T))}),g.drawTitle=function(){var t=[0,0],e=[0,0];return function(){var r=this.plot,n=this.shader,i=r.gl,a=r.screenBox,o=r.titleCenter,s=r.titleAngle,l=r.titleColor,c=r.pixelRatio;if(this.titleCount){for(var u=0;u&lt;2;++u)e[u]=2*(o[u]*c-a[u])/(a[2+u]-a[u])-1;n.bind(),n.uniforms.dataAxis=t,n.uniforms.screenOffset=e,n.uniforms.angle=s,n.uniforms.color=l,i.drawArrays(i.TRIANGLES,this.titleOffset,this.titleCount)}}}(),g.bind=(h=[0,0],p=[0,0],d=[0,0],function(){var t=this.plot,e=this.shader,r=t._tickBounds,n=t.dataBox,i=t.screenBox,a=t.viewBox;e.bind();for(var o=0;o&lt;2;++o){var s=r[o],l=r[o+2]-s,c=.5*(n[o+2]+n[o]),u=n[o+2]-n[o],f=a[o],g=a[o+2]-f,m=i[o],v=i[o+2]-m;p[o]=2*l/u*g/v,h[o]=2*(s-c)/u*g/v}d[1]=2*t.pixelRatio/(i[3]-i[1]),d[0]=d[1]*(i[3]-i[1])/(i[2]-i[0]),e.uniforms.dataScale=p,e.uniforms.dataShift=h,e.uniforms.textScale=d,this.vbo.bind(),e.attributes.textCoordinate.pointer()}),g.update=function(t){var e,r,n,i,o,s=[],l=t.ticks,c=t.bounds;for(o=0;o&lt;2;++o){var u=[Math.floor(s.length/3)],f=[-1/0],h=l[o];for(e=0;e&lt;h.length;++e){var p=h[e],d=p.x,g=p.text,m=p.font||&quot;sans-serif&quot;;i=p.fontSize||12;for(var v=1/(c[o+2]-c[o]),y=c[o],x=g.split(&quot;\n&quot;),b=0;b&lt;x.length;b++)for(n=a(m,x[b]).data,r=0;r&lt;n.length;r+=2)s.push(n[r]*i,-n[r+1]*i-b*i*1.2,(d-y)*v);u.push(Math.floor(s.length/3)),f.push(d)}this.tickOffset[o]=u,this.tickX[o]=f}for(o=0;o&lt;2;++o){for(this.labelOffset[o]=Math.floor(s.length/3),n=a(t.labelFont[o],t.labels[o],{textAlign:&quot;center&quot;}).data,i=t.labelSize[o],e=0;e&lt;n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.labelCount[o]=Math.floor(s.length/3)-this.labelOffset[o]}for(this.titleOffset=Math.floor(s.length/3),n=a(t.titleFont,t.title).data,i=t.titleSize,e=0;e&lt;n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.titleCount=Math.floor(s.length/3)-this.titleOffset,this.vbo.update(s)},g.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:314,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335,&quot;text-cache&quot;:575}],316:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],317:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[e.drawingBufferWidth,e.drawingBufferHeight]),c=new l(e,r);return c.grid=i(c),c.text=a(c),c.line=o(c),c.box=s(c),c.update(t),c};var n=t(&quot;gl-select-static&quot;),i=t(&quot;./lib/grid&quot;),a=t(&quot;./lib/text&quot;),o=t(&quot;./lib/line&quot;),s=t(&quot;./lib/box&quot;);function l(t,e){this.gl=t,this.pickBuffer=e,this.screenBox=[0,0,t.drawingBufferWidth,t.drawingBufferHeight],this.viewBox=[0,0,0,0],this.dataBox=[-10,-10,10,10],this.gridLineEnable=[!0,!0],this.gridLineWidth=[1,1],this.gridLineColor=[[0,0,0,1],[0,0,0,1]],this.pixelRatio=1,this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickEnable=[!0,!0,!0,!0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[15,15,15,15],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelEnable=[!0,!0,!0,!0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.titleCenter=[0,0],this.titleEnable=!0,this.titleAngle=0,this.titleColor=[0,0,0,1],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[4,4],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderLineEnable=[!0,!0,!0,!0],this.borderLineWidth=[2,2,2,2],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.grid=null,this.text=null,this.line=null,this.box=null,this.objects=[],this.overlays=[],this._tickBounds=[1/0,1/0,-1/0,-1/0],this.static=!1,this.dirty=!1,this.pickDirty=!1,this.pickDelay=120,this.pickRadius=10,this._pickTimeout=null,this._drawPick=this.drawPick.bind(this),this._depthCounter=0}var c=l.prototype;function u(t){for(var e=t.slice(),r=0;r&lt;e.length;++r)e[r]=e[r].slice();return e}function f(t,e){return t.x-e.x}c.setDirty=function(){this.dirty=this.pickDirty=!0},c.setOverlayDirty=function(){this.dirty=!0},c.nextDepthValue=function(){return this._depthCounter++/65536},c.draw=function(){var t=this.gl,e=this.screenBox,r=this.viewBox,n=this.dataBox,i=this.pixelRatio,a=this.grid,o=this.line,s=this.text,l=this.objects;if(this._depthCounter=0,this.pickDirty&amp;&amp;(this._pickTimeout&amp;&amp;clearTimeout(this._pickTimeout),this.pickDirty=!1,this._pickTimeout=setTimeout(this._drawPick,this.pickDelay)),this.dirty){if(this.dirty=!1,t.bindFramebuffer(t.FRAMEBUFFER,null),t.enable(t.SCISSOR_TEST),t.disable(t.DEPTH_TEST),t.depthFunc(t.LESS),t.depthMask(!1),t.enable(t.BLEND),t.blendEquation(t.FUNC_ADD,t.FUNC_ADD),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),this.borderColor){t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]);var c=this.borderColor;t.clearColor(c[0]*c[3],c[1]*c[3],c[2]*c[3],c[3]),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}t.scissor(r[0],r[1],r[2]-r[0],r[3]-r[1]),t.viewport(r[0],r[1],r[2]-r[0],r[3]-r[1]);var u=this.backgroundColor;t.clearColor(u[0]*u[3],u[1]*u[3],u[2]*u[3],u[3]),t.clear(t.COLOR_BUFFER_BIT),a.draw();var f=this.zeroLineEnable,h=this.zeroLineColor,p=this.zeroLineWidth;if(f[0]||f[1]){o.bind();for(var d=0;d&lt;2;++d)if(f[d]&amp;&amp;n[d]&lt;=0&amp;&amp;n[d+2]&gt;=0){var g=e[d]-n[d]*(e[d+2]-e[d])/(n[d+2]-n[d]);0===d?o.drawLine(g,e[1],g,e[3],p[d],h[d]):o.drawLine(e[0],g,e[2],g,p[d],h[d])}}for(d=0;d&lt;l.length;++d)l[d].draw();t.viewport(e[0],e[1],e[2]-e[0],e[3]-e[1]),t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]),this.grid.drawTickMarks(),o.bind();var m=this.borderLineEnable,v=this.borderLineWidth,y=this.borderLineColor;for(m[1]&amp;&amp;o.drawLine(r[0],r[1]-.5*v[1]*i,r[0],r[3]+.5*v[3]*i,v[1],y[1]),m[0]&amp;&amp;o.drawLine(r[0]-.5*v[0]*i,r[1],r[2]+.5*v[2]*i,r[1],v[0],y[0]),m[3]&amp;&amp;o.drawLine(r[2],r[1]-.5*v[1]*i,r[2],r[3]+.5*v[3]*i,v[3],y[3]),m[2]&amp;&amp;o.drawLine(r[0]-.5*v[0]*i,r[3],r[2]+.5*v[2]*i,r[3],v[2],y[2]),s.bind(),d=0;d&lt;2;++d)s.drawTicks(d);this.titleEnable&amp;&amp;s.drawTitle();var x=this.overlays;for(d=0;d&lt;x.length;++d)x[d].draw();t.disable(t.SCISSOR_TEST),t.disable(t.BLEND),t.depthMask(!0)}},c.drawPick=function(){if(!this.static){var t=this.pickBuffer;this.gl,this._pickTimeout=null,t.begin();for(var e=1,r=this.objects,n=0;n&lt;r.length;++n)e=r[n].drawPick(e);t.end()}},c.pick=function(t,e){if(!this.static){var r=this.pixelRatio,n=this.pickPixelRatio,i=this.viewBox,a=0|Math.round((t-i[0]/r)*n),o=0|Math.round((e-i[1]/r)*n),s=this.pickBuffer.query(a,o,this.pickRadius);if(!s)return null;for(var l=s.id+(s.value[0]&lt;&lt;8)+(s.value[1]&lt;&lt;16)+(s.value[2]&lt;&lt;24),c=this.objects,u=0;u&lt;c.length;++u){var f=c[u].pick(a,o,l);if(f)return f}return null}},c.setScreenBox=function(t){var e=this.screenBox,r=this.pixelRatio;e[0]=0|Math.round(t[0]*r),e[1]=0|Math.round(t[1]*r),e[2]=0|Math.round(t[2]*r),e[3]=0|Math.round(t[3]*r),this.setDirty()},c.setDataBox=function(t){var e=this.dataBox;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3])&amp;&amp;(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],this.setDirty())},c.setViewBox=function(t){var e=this.pixelRatio,r=this.viewBox;r[0]=0|Math.round(t[0]*e),r[1]=0|Math.round(t[1]*e),r[2]=0|Math.round(t[2]*e),r[3]=0|Math.round(t[3]*e);var n=this.pickPixelRatio;this.pickBuffer.shape=[0|Math.round((t[2]-t[0])*n),0|Math.round((t[3]-t[1])*n)],this.setDirty()},c.update=function(t){t=t||{};var e=this.gl;this.pixelRatio=t.pixelRatio||1;var r=this.pixelRatio;this.pickPixelRatio=Math.max(r,1),this.setScreenBox(t.screenBox||[0,0,e.drawingBufferWidth/r,e.drawingBufferHeight/r]);this.screenBox;this.setViewBox(t.viewBox||[.125*(this.screenBox[2]-this.screenBox[0])/r,.125*(this.screenBox[3]-this.screenBox[1])/r,.875*(this.screenBox[2]-this.screenBox[0])/r,.875*(this.screenBox[3]-this.screenBox[1])/r]);var n=this.viewBox,i=(n[2]-n[0])/(n[3]-n[1]);this.setDataBox(t.dataBox||[-10,-10/i,10,10/i]),this.borderColor=!1!==t.borderColor&amp;&amp;(t.borderColor||[0,0,0,0]).slice(),this.backgroundColor=(t.backgroundColor||[0,0,0,0]).slice(),this.gridLineEnable=(t.gridLineEnable||[!0,!0]).slice(),this.gridLineWidth=(t.gridLineWidth||[1,1]).slice(),this.gridLineColor=u(t.gridLineColor||[[.5,.5,.5,1],[.5,.5,.5,1]]),this.zeroLineEnable=(t.zeroLineEnable||[!0,!0]).slice(),this.zeroLineWidth=(t.zeroLineWidth||[4,4]).slice(),this.zeroLineColor=u(t.zeroLineColor||[[0,0,0,1],[0,0,0,1]]),this.tickMarkLength=(t.tickMarkLength||[0,0,0,0]).slice(),this.tickMarkWidth=(t.tickMarkWidth||[0,0,0,0]).slice(),this.tickMarkColor=u(t.tickMarkColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.titleCenter=(t.titleCenter||[.5*(n[0]+n[2])/r,(n[3]+120)/r]).slice(),this.titleEnable=!(&quot;titleEnable&quot;in t)||!!t.titleEnable,this.titleAngle=t.titleAngle||0,this.titleColor=(t.titleColor||[0,0,0,1]).slice(),this.labelPad=(t.labelPad||[15,15,15,15]).slice(),this.labelAngle=(t.labelAngle||[0,Math.PI/2,0,3*Math.PI/2]).slice(),this.labelEnable=(t.labelEnable||[!0,!0,!0,!0]).slice(),this.labelColor=u(t.labelColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.tickPad=(t.tickPad||[15,15,15,15]).slice(),this.tickAngle=(t.tickAngle||[0,0,0,0]).slice(),this.tickEnable=(t.tickEnable||[!0,!0,!0,!0]).slice(),this.tickColor=u(t.tickColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.borderLineEnable=(t.borderLineEnable||[!0,!0,!0,!0]).slice(),this.borderLineWidth=(t.borderLineWidth||[2,2,2,2]).slice(),this.borderLineColor=u(t.borderLineColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]);var a=t.ticks||[[],[]],o=this._tickBounds;o[0]=o[1]=1/0,o[2]=o[3]=-1/0;for(var s=0;s&lt;2;++s){var l=a[s].slice(0);0!==l.length&amp;&amp;(l.sort(f),o[s]=Math.min(o[s],l[0].x),o[s+2]=Math.max(o[s+2],l[l.length-1].x))}this.grid.update({bounds:o,ticks:a}),this.text.update({bounds:o,ticks:a,labels:t.labels||[&quot;x&quot;,&quot;y&quot;],labelSize:t.labelSize||[12,12],labelFont:t.labelFont||[&quot;sans-serif&quot;,&quot;sans-serif&quot;],title:t.title||&quot;&quot;,titleSize:t.titleSize||18,titleFont:t.titleFont||&quot;sans-serif&quot;}),this.static=!!t.static,this.setDirty()},c.dispose=function(){this.box.dispose(),this.grid.dispose(),this.text.dispose(),this.line.dispose();for(var t=this.objects.length-1;t&gt;=0;--t)this.objects[t].dispose();this.objects.length=0;for(t=this.overlays.length-1;t&gt;=0;--t)this.overlays[t].dispose();this.overlays.length=0,this.gl=null},c.addObject=function(t){this.objects.indexOf(t)&lt;0&amp;&amp;(this.objects.push(t),this.setDirty())},c.removeObject=function(t){for(var e=this.objects,r=0;r&lt;e.length;++r)if(e[r]===t){e.splice(r,1),this.setDirty();break}},c.addOverlay=function(t){this.overlays.indexOf(t)&lt;0&amp;&amp;(this.overlays.push(t),this.setOverlayDirty())},c.removeOverlay=function(t){for(var e=this.overlays,r=0;r&lt;e.length;++r)if(e[r]===t){e.splice(r,1),this.setOverlayDirty();break}}},{&quot;./lib/box&quot;:311,&quot;./lib/grid&quot;:312,&quot;./lib/line&quot;:313,&quot;./lib/text&quot;:315,&quot;gl-select-static&quot;:334}],318:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){t=t||document.body,e=e||{};var r=[.01,1/0];&quot;distanceLimits&quot;in e&amp;&amp;(r[0]=e.distanceLimits[0],r[1]=e.distanceLimits[1]);&quot;zoomMin&quot;in e&amp;&amp;(r[0]=e.zoomMin);&quot;zoomMax&quot;in e&amp;&amp;(r[1]=e.zoomMax);var c=i({center:e.center||[0,0,0],up:e.up||[0,1,0],eye:e.eye||[0,0,10],mode:e.mode||&quot;orbit&quot;,distanceLimits:r}),u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],f=0,h=t.clientWidth,p=t.clientHeight,d={keyBindingMode:&quot;rotate&quot;,enableWheel:!0,view:c,element:t,delay:e.delay||16,rotateSpeed:e.rotateSpeed||1,zoomSpeed:e.zoomSpeed||1,translateSpeed:e.translateSpeed||1,flipX:!!e.flipX,flipY:!!e.flipY,modes:c.modes,_ortho:e._ortho||e.projection&amp;&amp;&quot;orthographic&quot;===e.projection.type||!1,tick:function(){var e=n(),r=this.delay,i=e-2*r;c.idle(e-r),c.recalcMatrix(i),c.flush(e-(100+2*r));for(var a=!0,o=c.computedMatrix,s=0;s&lt;16;++s)a=a&amp;&amp;u[s]===o[s],u[s]=o[s];var l=t.clientWidth===h&amp;&amp;t.clientHeight===p;return h=t.clientWidth,p=t.clientHeight,a?!l:(f=Math.exp(c.computedRadius[0]),!0)},lookAt:function(t,e,r){c.lookAt(c.lastT(),t,e,r)},rotate:function(t,e,r){c.rotate(c.lastT(),t,e,r)},pan:function(t,e,r){c.pan(c.lastT(),t,e,r)},translate:function(t,e,r){c.translate(c.lastT(),t,e,r)}};return Object.defineProperties(d,{matrix:{get:function(){return c.computedMatrix},set:function(t){return c.setMatrix(c.lastT(),t),c.computedMatrix},enumerable:!0},mode:{get:function(){return c.getMode()},set:function(t){var e=c.computedUp.slice(),r=c.computedEye.slice(),i=c.computedCenter.slice();if(c.setMode(t),&quot;turntable&quot;===t){var a=n();c._active.lookAt(a,r,i,e),c._active.lookAt(a+500,r,i,[0,0,1]),c._active.flush(a)}return c.getMode()},enumerable:!0},center:{get:function(){return c.computedCenter},set:function(t){return c.lookAt(c.lastT(),null,t),c.computedCenter},enumerable:!0},eye:{get:function(){return c.computedEye},set:function(t){return c.lookAt(c.lastT(),t),c.computedEye},enumerable:!0},up:{get:function(){return c.computedUp},set:function(t){return c.lookAt(c.lastT(),null,null,t),c.computedUp},enumerable:!0},distance:{get:function(){return f},set:function(t){return c.setDistance(c.lastT(),t),t},enumerable:!0},distanceLimits:{get:function(){return c.getDistanceLimits(r)},set:function(t){return c.setDistanceLimits(t),t},enumerable:!0}}),t.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault(),!1})),d._lastX=-1,d._lastY=-1,d._lastMods={shift:!1,control:!1,alt:!1,meta:!1},d.enableMouseListeners=function(){function e(e,r,i,a){var o=d.keyBindingMode;if(!1!==o){var s=&quot;rotate&quot;===o,l=&quot;pan&quot;===o,u=&quot;zoom&quot;===o,h=!!a.control,p=!!a.alt,g=!!a.shift,m=!!(1&amp;e),v=!!(2&amp;e),y=!!(4&amp;e),x=1/t.clientHeight,b=x*(r-d._lastX),_=x*(i-d._lastY),w=d.flipX?1:-1,T=d.flipY?1:-1,k=Math.PI*d.rotateSpeed,M=n();if(-1!==d._lastX&amp;&amp;-1!==d._lastY&amp;&amp;((s&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||m&amp;&amp;!h&amp;&amp;!p&amp;&amp;g)&amp;&amp;c.rotate(M,w*k*b,-T*k*_,0),(l&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||v||m&amp;&amp;h&amp;&amp;!p&amp;&amp;!g)&amp;&amp;c.pan(M,-d.translateSpeed*b*f,d.translateSpeed*_*f,0),u&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||y||m&amp;&amp;!h&amp;&amp;p&amp;&amp;!g)){var A=-d.zoomSpeed*_/window.innerHeight*(M-c.lastT())*100;c.pan(M,0,0,f*(Math.exp(A)-1))}return d._lastX=r,d._lastY=i,d._lastMods=a,!0}}d.mouseListener=a(t,e),t.addEventListener(&quot;touchstart&quot;,(function(r){var n=s(r.changedTouches[0],t);e(0,n[0],n[1],d._lastMods),e(1,n[0],n[1],d._lastMods)}),!!l&amp;&amp;{passive:!0}),t.addEventListener(&quot;touchmove&quot;,(function(r){var n=s(r.changedTouches[0],t);e(1,n[0],n[1],d._lastMods),r.preventDefault()}),!!l&amp;&amp;{passive:!1}),t.addEventListener(&quot;touchend&quot;,(function(t){e(0,d._lastX,d._lastY,d._lastMods)}),!!l&amp;&amp;{passive:!0}),d.wheelListener=o(t,(function(t,e){if(!1!==d.keyBindingMode&amp;&amp;d.enableWheel){var r=d.flipX?1:-1,i=d.flipY?1:-1,a=n();if(Math.abs(t)&gt;Math.abs(e))c.rotate(a,0,0,-t*r*Math.PI*d.rotateSpeed/window.innerWidth);else if(!d._ortho){var o=-d.zoomSpeed*i*e/window.innerHeight*(a-c.lastT())/20;c.pan(a,0,0,f*(Math.exp(o)-1))}}}),!0)},d.enableMouseListeners(),d};var n=t(&quot;right-now&quot;),i=t(&quot;3d-view&quot;),a=t(&quot;mouse-change&quot;),o=t(&quot;mouse-wheel&quot;),s=t(&quot;mouse-event-offset&quot;),l=t(&quot;has-passive-events&quot;)},{&quot;3d-view&quot;:54,&quot;has-passive-events&quot;:441,&quot;mouse-change&quot;:483,&quot;mouse-event-offset&quot;:484,&quot;mouse-wheel&quot;:486,&quot;right-now&quot;:542}],319:[function(t,e,r){var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision mediump float;\n#define GLSLIFY 1\nattribute vec2 position;\nvarying vec2 uv;\nvoid main() {\n  uv = position;\n  gl_Position = vec4(position, 0, 1);\n}&quot;]),o=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform sampler2D accumBuffer;\nvarying vec2 uv;\n\nvoid main() {\n  vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\n  gl_FragColor = min(vec4(1,1,1,1), accum);\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec2&quot;}])}},{&quot;gl-shader&quot;:335,glslify:320}],320:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],321:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./camera.js&quot;),i=t(&quot;gl-axes3d&quot;),a=t(&quot;gl-axes3d/properties&quot;),o=t(&quot;gl-spikes3d&quot;),s=t(&quot;gl-select-static&quot;),l=t(&quot;gl-fbo&quot;),c=t(&quot;a-big-triangle&quot;),u=t(&quot;mouse-change&quot;),f=t(&quot;gl-mat4/perspective&quot;),h=t(&quot;gl-mat4/ortho&quot;),p=t(&quot;./lib/shader&quot;),d=t(&quot;is-mobile&quot;)({tablet:!0,featureDetect:!0});function g(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function m(t){var e=Math.round(Math.log(Math.abs(t))/Math.log(10));if(e&lt;0){var r=Math.round(Math.pow(10,-e));return Math.ceil(t*r)/r}if(e&gt;0){r=Math.round(Math.pow(10,e));return Math.ceil(t/r)*r}return Math.ceil(t)}function v(t){return&quot;boolean&quot;!=typeof t||t}e.exports={createScene:function(t){(t=t||{}).camera=t.camera||{};var e=t.canvas;if(!e){if(e=document.createElement(&quot;canvas&quot;),t.container)t.container.appendChild(e);else document.body.appendChild(e)}var r=t.gl;r||(t.glOptions&amp;&amp;(d=!!t.glOptions.preserveDrawingBuffer),r=function(t,e){var r=null;try{(r=t.getContext(&quot;webgl&quot;,e))||(r=t.getContext(&quot;experimental-webgl&quot;,e))}catch(t){return null}return r}(e,t.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:d}));if(!r)throw new Error(&quot;webgl not supported&quot;);var y=t.bounds||[[-10,-10,-10],[10,10,10]],x=new g,b=l(r,r.drawingBufferWidth,r.drawingBufferHeight,{preferFloat:!d}),_=p(r),w=t.cameraObject&amp;&amp;!0===t.cameraObject._ortho||t.camera.projection&amp;&amp;&quot;orthographic&quot;===t.camera.projection.type||!1,T={eye:t.camera.eye||[2,0,0],center:t.camera.center||[0,0,0],up:t.camera.up||[0,1,0],zoomMin:t.camera.zoomMax||.1,zoomMax:t.camera.zoomMin||100,mode:t.camera.mode||&quot;turntable&quot;,_ortho:w},k=t.axes||{},M=i(r,k);M.enable=!k.disable;var A=t.spikes||{},S=o(r,A),E=[],C=[],L=[],I=[],P=!0,z=!0,O=new Array(16),D=new Array(16),R={view:null,projection:O,model:D,_ortho:!1},F=(z=!0,[r.drawingBufferWidth,r.drawingBufferHeight]),B=t.cameraObject||n(e,T),N={gl:r,contextLost:!1,pixelRatio:t.pixelRatio||1,canvas:e,selection:x,camera:B,axes:M,axesPixels:null,spikes:S,bounds:y,objects:E,shape:F,aspect:t.aspectRatio||[1,1,1],pickRadius:t.pickRadius||10,zNear:t.zNear||.01,zFar:t.zFar||1e3,fovy:t.fovy||Math.PI/4,clearColor:t.clearColor||[0,0,0,0],autoResize:v(t.autoResize),autoBounds:v(t.autoBounds),autoScale:!!t.autoScale,autoCenter:v(t.autoCenter),clipToBounds:v(t.clipToBounds),snapToData:!!t.snapToData,onselect:t.onselect||null,onrender:t.onrender||null,onclick:t.onclick||null,cameraParams:R,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(t){this.aspect[0]=t.x,this.aspect[1]=t.y,this.aspect[2]=t.z,z=!0},setBounds:function(t,e){this.bounds[0][t]=e.min,this.bounds[1][t]=e.max},setClearColor:function(t){this.clearColor=t},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},j=[r.drawingBufferWidth/N.pixelRatio|0,r.drawingBufferHeight/N.pixelRatio|0];function U(){if(!N._stopped&amp;&amp;N.autoResize){var t=e.parentNode,r=1,n=1;t&amp;&amp;t!==document.body?(r=t.clientWidth,n=t.clientHeight):(r=window.innerWidth,n=window.innerHeight);var i=0|Math.ceil(r*N.pixelRatio),a=0|Math.ceil(n*N.pixelRatio);if(i!==e.width||a!==e.height){e.width=i,e.height=a;var o=e.style;o.position=o.position||&quot;absolute&quot;,o.left=&quot;0px&quot;,o.top=&quot;0px&quot;,o.width=r+&quot;px&quot;,o.height=n+&quot;px&quot;,P=!0}}}N.autoResize&amp;&amp;U();function V(){for(var t=E.length,e=I.length,n=0;n&lt;e;++n)L[n]=0;t:for(n=0;n&lt;t;++n){var i=E[n],a=i.pickSlots;if(a){for(var o=0;o&lt;e;++o)if(L[o]+a&lt;255){C[n]=o,i.setPickBase(L[o]+1),L[o]+=a;continue t}var l=s(r,F);C[n]=e,I.push(l),L.push(a),i.setPickBase(1),e+=1}else C[n]=-1}for(;e&gt;0&amp;&amp;0===L[e-1];)L.pop(),I.pop().dispose()}function q(){if(N.contextLost)return!0;r.isContextLost()&amp;&amp;(N.contextLost=!0,N.mouseListener.enabled=!1,N.selection.object=null,N.oncontextloss&amp;&amp;N.oncontextloss())}window.addEventListener(&quot;resize&quot;,U),N.update=function(t){N._stopped||(t=t||{},P=!0,z=!0)},N.add=function(t){N._stopped||(t.axes=M,E.push(t),C.push(-1),P=!0,z=!0,V())},N.remove=function(t){if(!N._stopped){var e=E.indexOf(t);e&lt;0||(E.splice(e,1),C.pop(),P=!0,z=!0,V())}},N.dispose=function(){if(!N._stopped&amp;&amp;(N._stopped=!0,window.removeEventListener(&quot;resize&quot;,U),e.removeEventListener(&quot;webglcontextlost&quot;,q),N.mouseListener.enabled=!1,!N.contextLost)){M.dispose(),S.dispose();for(var t=0;t&lt;E.length;++t)E[t].dispose();b.dispose();for(t=0;t&lt;I.length;++t)I[t].dispose();_.dispose(),r=null,M=null,S=null,E=[]}},N._mouseRotating=!1,N._prevButtons=0,N.enableMouseListeners=function(){N.mouseListener=u(e,(function(t,e,r){if(!N._stopped){var n=I.length,i=E.length,a=x.object;x.distance=1/0,x.mouse[0]=e,x.mouse[1]=r,x.object=null,x.screen=null,x.dataCoordinate=x.dataPosition=null;var o=!1;if(t&amp;&amp;N._prevButtons)N._mouseRotating=!0;else{N._mouseRotating&amp;&amp;(z=!0),N._mouseRotating=!1;for(var s=0;s&lt;n;++s){var l=I[s].query(e,j[1]-r-1,N.pickRadius);if(l){if(l.distance&gt;x.distance)continue;for(var c=0;c&lt;i;++c){var u=E[c];if(C[c]===s){var f=u.pick(l);f&amp;&amp;(x.buttons=t,x.screen=l.coord,x.distance=l.distance,x.object=u,x.index=f.distance,x.dataPosition=f.position,x.dataCoordinate=f.dataCoordinate,x.data=f,o=!0)}}}}}a&amp;&amp;a!==x.object&amp;&amp;(a.highlight&amp;&amp;a.highlight(null),P=!0),x.object&amp;&amp;(x.object.highlight&amp;&amp;x.object.highlight(x.data),P=!0),(o=o||x.object!==a)&amp;&amp;N.onselect&amp;&amp;N.onselect(x),1&amp;t&amp;&amp;!(1&amp;N._prevButtons)&amp;&amp;N.onclick&amp;&amp;N.onclick(x),N._prevButtons=t}}))},e.addEventListener(&quot;webglcontextlost&quot;,q);var H=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],G=[H[0].slice(),H[1].slice()];function Y(){if(!q()){U();var t=N.camera.tick();R.view=N.camera.matrix,P=P||t,z=z||t,M.pixelRatio=N.pixelRatio,S.pixelRatio=N.pixelRatio;var e=E.length,n=H[0],i=H[1];n[0]=n[1]=n[2]=1/0,i[0]=i[1]=i[2]=-1/0;for(var o=0;o&lt;e;++o){(L=E[o]).pixelRatio=N.pixelRatio,L.axes=N.axes,P=P||!!L.dirty,z=z||!!L.dirty;var s=L.bounds;if(s)for(var l=s[0],u=s[1],p=0;p&lt;3;++p)n[p]=Math.min(n[p],l[p]),i[p]=Math.max(i[p],u[p])}var d=N.bounds;if(N.autoBounds)for(p=0;p&lt;3;++p){if(i[p]&lt;n[p])n[p]=-1,i[p]=1;else{n[p]===i[p]&amp;&amp;(n[p]-=1,i[p]+=1);var g=.05*(i[p]-n[p]);n[p]=n[p]-g,i[p]=i[p]+g}d[0][p]=n[p],d[1][p]=i[p]}var v=!1;for(p=0;p&lt;3;++p)v=v||G[0][p]!==d[0][p]||G[1][p]!==d[1][p],G[0][p]=d[0][p],G[1][p]=d[1][p];if(z=z||v,P=P||v){if(v){var y=[0,0,0];for(o=0;o&lt;3;++o)y[o]=m((d[1][o]-d[0][o])/10);M.autoTicks?M.update({bounds:d,tickSpacing:y}):M.update({bounds:d})}var T=r.drawingBufferWidth,k=r.drawingBufferHeight;F[0]=T,F[1]=k,j[0]=0|Math.max(T/N.pixelRatio,1),j[1]=0|Math.max(k/N.pixelRatio,1),function(t,e){var r=t.bounds,n=t.cameraParams,i=n.projection,a=n.model,o=t.gl.drawingBufferWidth,s=t.gl.drawingBufferHeight,l=t.zNear,c=t.zFar,u=t.fovy,p=o/s;e?(h(i,-p,p,-1,1,l,c),n._ortho=!0):(f(i,u,p,l,c),n._ortho=!1);for(var d=0;d&lt;16;++d)a[d]=0;a[15]=1;var g=0;for(d=0;d&lt;3;++d)g=Math.max(g,r[1][d]-r[0][d]);for(d=0;d&lt;3;++d)t.autoScale?a[5*d]=t.aspect[d]/(r[1][d]-r[0][d]):a[5*d]=1/g,t.autoCenter&amp;&amp;(a[12+d]=.5*-a[5*d]*(r[0][d]+r[1][d]))}(N,w);for(o=0;o&lt;e;++o){(L=E[o]).axesBounds=d,N.clipToBounds&amp;&amp;(L.clipBounds=d)}x.object&amp;&amp;(N.snapToData?S.position=x.dataCoordinate:S.position=x.dataPosition,S.bounds=d),z&amp;&amp;(z=!1,function(){if(!q()){r.colorMask(!0,!0,!0,!0),r.depthMask(!0),r.disable(r.BLEND),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL);for(var t=E.length,e=I.length,n=0;n&lt;e;++n){var i=I[n];i.shape=j,i.begin();for(var a=0;a&lt;t;++a)if(C[a]===n){var o=E[a];o.drawPick&amp;&amp;(o.pixelRatio=1,o.drawPick(R))}i.end()}}}()),N.axesPixels=a(N.axes,R,T,k),N.onrender&amp;&amp;N.onrender(),r.bindFramebuffer(r.FRAMEBUFFER,null),r.viewport(0,0,T,k),N.clearRGBA(),r.depthMask(!0),r.colorMask(!0,!0,!0,!0),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL),r.disable(r.BLEND),r.disable(r.CULL_FACE);var A=!1;M.enable&amp;&amp;(A=A||M.isTransparent(),M.draw(R)),S.axes=M,x.object&amp;&amp;S.draw(R),r.disable(r.CULL_FACE);for(o=0;o&lt;e;++o){(L=E[o]).axes=M,L.pixelRatio=N.pixelRatio,L.isOpaque&amp;&amp;L.isOpaque()&amp;&amp;L.draw(R),L.isTransparent&amp;&amp;L.isTransparent()&amp;&amp;(A=!0)}if(A){b.shape=F,b.bind(),r.clear(r.DEPTH_BUFFER_BIT),r.colorMask(!1,!1,!1,!1),r.depthMask(!0),r.depthFunc(r.LESS),M.enable&amp;&amp;M.isTransparent()&amp;&amp;M.drawTransparent(R);for(o=0;o&lt;e;++o){(L=E[o]).isOpaque&amp;&amp;L.isOpaque()&amp;&amp;L.draw(R)}r.enable(r.BLEND),r.blendEquation(r.FUNC_ADD),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.colorMask(!0,!0,!0,!0),r.depthMask(!1),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),M.isTransparent()&amp;&amp;M.drawTransparent(R);for(o=0;o&lt;e;++o){var L;(L=E[o]).isTransparent&amp;&amp;L.isTransparent()&amp;&amp;L.drawTransparent(R)}r.bindFramebuffer(r.FRAMEBUFFER,null),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.disable(r.DEPTH_TEST),_.bind(),b.color[0].bind(0),_.uniforms.accumBuffer=0,c(r),r.disable(r.BLEND)}P=!1;for(o=0;o&lt;e;++o)E[o].dirty=!1}}}return N.enableMouseListeners(),function t(){if(N._stopped||N.contextLost)return;Y(),requestAnimationFrame(t)}(),N.redraw=function(){N._stopped||(P=!0,Y())},N},createCamera:n}},{&quot;./camera.js&quot;:318,&quot;./lib/shader&quot;:319,&quot;a-big-triangle&quot;:64,&quot;gl-axes3d&quot;:250,&quot;gl-axes3d/properties&quot;:258,&quot;gl-fbo&quot;:269,&quot;gl-mat4/ortho&quot;:296,&quot;gl-mat4/perspective&quot;:297,&quot;gl-select-static&quot;:334,&quot;gl-spikes3d&quot;:345,&quot;is-mobile&quot;:467,&quot;mouse-change&quot;:483}],322:[function(t,e,r){var n=t(&quot;glslify&quot;);r.pointVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform float pointCloud;\n\nhighp float rand(vec2 co) {\n  highp float a = 12.9898;\n  highp float b = 78.233;\n  highp float c = 43758.5453;\n  highp float d = dot(co.xy, vec2(a, b));\n  highp float e = mod(d, 3.14);\n  return fract(sin(e) * c);\n}\n\nvoid main() {\n  vec3 hgPosition = matrix * vec3(position, 1);\n  gl_Position  = vec4(hgPosition.xy, 0, hgPosition.z);\n    // if we don't jitter the point size a bit, overall point cloud\n    // saturation 'jumps' on zooming, which is disturbing and confusing\n  gl_PointSize = pointSize * ((19.5 + rand(position)) / 20.0);\n  if(pointCloud != 0.0) { // pointCloud is truthy\n    // get the same square surface as circle would be\n    gl_PointSize *= 0.886;\n  }\n}&quot;]),r.pointFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color, borderColor;\nuniform float centerFraction;\nuniform float pointCloud;\n\nvoid main() {\n  float radius;\n  vec4 baseColor;\n  if(pointCloud != 0.0) { // pointCloud is truthy\n    if(centerFraction == 1.0) {\n      gl_FragColor = color;\n    } else {\n      gl_FragColor = mix(borderColor, color, centerFraction);\n    }\n  } else {\n    radius = length(2.0 * gl_PointCoord.xy - 1.0);\n    if(radius &gt; 1.0) {\n      discard;\n    }\n    baseColor = mix(borderColor, color, step(radius, centerFraction));\n    gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\n  }\n}\n&quot;]),r.pickVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform vec4 pickOffset;\n\nvarying vec4 fragId;\n\nvoid main() {\n  vec3 hgPosition = matrix * vec3(position, 1);\n  gl_Position  = vec4(hgPosition.xy, 0, hgPosition.z);\n  gl_PointSize = pointSize;\n\n  vec4 id = pickId + pickOffset;\n  id.y += floor(id.x / 256.0);\n  id.x -= floor(id.x / 256.0) * 256.0;\n\n  id.z += floor(id.y / 256.0);\n  id.y -= floor(id.y / 256.0) * 256.0;\n\n  id.w += floor(id.z / 256.0);\n  id.z -= floor(id.z / 256.0) * 256.0;\n\n  fragId = id;\n}\n&quot;]),r.pickFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\n\nvoid main() {\n  float radius = length(2.0 * gl_PointCoord.xy - 1.0);\n  if(radius &gt; 1.0) {\n    discard;\n  }\n  gl_FragColor = fragId / 255.0;\n}\n&quot;])},{glslify:323}],323:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],324:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;typedarray-pool&quot;),o=t(&quot;./lib/shader&quot;);function s(t,e,r,n,i){this.plot=t,this.offsetBuffer=e,this.pickBuffer=r,this.shader=n,this.pickShader=i,this.sizeMin=.5,this.sizeMinCap=2,this.sizeMax=20,this.areaRatio=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.blend=!1,this.pickOffset=0,this.points=null}e.exports=function(t,e){var r=t.gl,a=i(r),l=i(r),c=n(r,o.pointVertex,o.pointFragment),u=n(r,o.pickVertex,o.pickFragment),f=new s(t,a,l,c,u);return f.update(e),t.addObject(f),f};var l,c,u=s.prototype;u.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.plot.removeObject(this)},u.update=function(t){var e;function r(e,r){return e in t?t[e]:r}t=t||{},this.sizeMin=r(&quot;sizeMin&quot;,.5),this.sizeMax=r(&quot;sizeMax&quot;,20),this.color=r(&quot;color&quot;,[1,0,0,1]).slice(),this.areaRatio=r(&quot;areaRatio&quot;,1),this.borderColor=r(&quot;borderColor&quot;,[0,0,0,1]).slice(),this.blend=r(&quot;blend&quot;,!1);var n=t.positions.length&gt;&gt;&gt;1,i=t.positions instanceof Float32Array,o=t.idToIndex instanceof Int32Array&amp;&amp;t.idToIndex.length&gt;=n,s=t.positions,l=i?s:a.mallocFloat32(s.length),c=o?t.idToIndex:a.mallocInt32(n);if(i||l.set(s),!o)for(l.set(s),e=0;e&lt;n;e++)c[e]=e;this.points=s,this.offsetBuffer.update(l),this.pickBuffer.update(c),i||a.free(l),o||a.free(c),this.pointCount=n,this.pickOffset=0},u.unifiedDraw=(l=[1,0,0,0,1,0,0,0,1],c=[0,0,0,0],function(t){var e=void 0!==t,r=e?this.pickShader:this.shader,n=this.plot.gl,i=this.plot.dataBox;if(0===this.pointCount)return t;var a=i[2]-i[0],o=i[3]-i[1],s=function(t,e){var r,n=0,i=t.length&gt;&gt;&gt;1;for(r=0;r&lt;i;r++){var a=t[2*r],o=t[2*r+1];a&gt;=e[0]&amp;&amp;a&lt;=e[2]&amp;&amp;o&gt;=e[1]&amp;&amp;o&lt;=e[3]&amp;&amp;n++}return n}(this.points,i),u=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(s,.33333)));l[0]=2/a,l[4]=2/o,l[6]=-2*i[0]/a-1,l[7]=-2*i[1]/o-1,this.offsetBuffer.bind(),r.bind(),r.attributes.position.pointer(),r.uniforms.matrix=l,r.uniforms.color=this.color,r.uniforms.borderColor=this.borderColor,r.uniforms.pointCloud=u&lt;5,r.uniforms.pointSize=u,r.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),e&amp;&amp;(c[0]=255&amp;t,c[1]=t&gt;&gt;8&amp;255,c[2]=t&gt;&gt;16&amp;255,c[3]=t&gt;&gt;24&amp;255,this.pickBuffer.bind(),r.attributes.pickId.pointer(n.UNSIGNED_BYTE),r.uniforms.pickOffset=c,this.pickOffset=t);var f=n.getParameter(n.BLEND),h=n.getParameter(n.DITHER);return f&amp;&amp;!this.blend&amp;&amp;n.disable(n.BLEND),h&amp;&amp;n.disable(n.DITHER),n.drawArrays(n.POINTS,0,this.pointCount),f&amp;&amp;!this.blend&amp;&amp;n.enable(n.BLEND),h&amp;&amp;n.enable(n.DITHER),t+this.pointCount}),u.draw=u.unifiedDraw,u.drawPick=u.unifiedDraw,u.pick=function(t,e,r){var n=this.pickOffset,i=this.pointCount;if(r&lt;n||r&gt;=n+i)return null;var a=r-n,o=this.points;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}}},{&quot;./lib/shader&quot;:322,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335,&quot;typedarray-pool&quot;:595}],325:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c=e[0],u=e[1],f=e[2],h=e[3],p=r[0],d=r[1],g=r[2],m=r[3];(a=c*p+u*d+f*g+h*m)&lt;0&amp;&amp;(a=-a,p=-p,d=-d,g=-g,m=-m);1-a&gt;1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n);return t[0]=s*c+l*p,t[1]=s*u+l*d,t[2]=s*f+l*g,t[3]=s*h+l*m,t}},{}],326:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t||0===t?t.toString():&quot;&quot;}},{}],327:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;vectorize-text&quot;);e.exports=function(t,e,r){var a=i[e];a||(a=i[e]={});if(t in a)return a[t];var o={textAlign:&quot;center&quot;,textBaseline:&quot;middle&quot;,lineHeight:1,font:e,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},triangles:!0},s=n(t,o);o.triangles=!1;var l,c,u=n(t,o);if(r&amp;&amp;1!==r){for(l=0;l&lt;s.positions.length;++l)for(c=0;c&lt;s.positions[l].length;++c)s.positions[l][c]/=r;for(l=0;l&lt;u.positions.length;++l)for(c=0;c&lt;u.positions[l].length;++c)u.positions[l][c]/=r}var f=[[1/0,1/0],[-1/0,-1/0]],h=u.positions.length;for(l=0;l&lt;h;++l){var p=u.positions[l];for(c=0;c&lt;2;++c)f[0][c]=Math.min(f[0][c],p[c]),f[1][c]=Math.max(f[1][c],p[c])}return a[t]=[s,u,f]};var i={}},{&quot;vectorize-text&quot;:600}],328:[function(t,e,r){var n=t(&quot;gl-shader&quot;),i=t(&quot;glslify&quot;),a=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform vec4 highlightId;\nuniform float highlightScale;\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float scale = 1.0;\n    if(distance(highlightId, id) &lt; 0.0001) {\n      scale = highlightScale;\n    }\n\n    vec4 worldPosition = model * vec4(position, 1);\n    vec4 viewPosition = view * worldPosition;\n    viewPosition = viewPosition / viewPosition.w;\n    vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\n\n    gl_Position = clipPosition;\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = position;\n  }\n}&quot;]),o=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float highlightScale, pixelRatio;\nuniform vec4 highlightId;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float scale = pixelRatio;\n    if(distance(highlightId.bgr, id.bgr) &lt; 0.001) {\n      scale *= highlightScale;\n    }\n\n    vec4 worldPosition = model * vec4(position, 1.0);\n    vec4 viewPosition = view * worldPosition;\n    vec4 clipPosition = projection * viewPosition;\n    clipPosition /= clipPosition.w;\n\n    gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = position;\n  }\n}&quot;]),s=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform float highlightScale;\nuniform vec4 highlightId;\nuniform vec3 axes[2];\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float scale, pixelRatio;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float lscale = pixelRatio * scale;\n    if(distance(highlightId, id) &lt; 0.0001) {\n      lscale *= highlightScale;\n    }\n\n    vec4 clipCenter   = projection * view * model * vec4(position, 1);\n    vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\n    vec4 clipPosition = projection * view * model * vec4(dataPosition, 1);\n\n    gl_Position = clipPosition;\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = dataPosition;\n  }\n}\n&quot;]),l=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float opacity;\n\nvarying vec4 interpColor;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (\n    outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) ||\n    interpColor.a * opacity == 0.\n  ) discard;\n  gl_FragColor = interpColor * opacity;\n}\n&quot;]),c=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float pickGroup;\n\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\n\n  gl_FragColor = vec4(pickGroup, pickId.bgr);\n}&quot;]),u=[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;glyph&quot;,type:&quot;vec2&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}],f={vertex:a,fragment:l,attributes:u},h={vertex:o,fragment:l,attributes:u},p={vertex:s,fragment:l,attributes:u},d={vertex:a,fragment:c,attributes:u},g={vertex:o,fragment:c,attributes:u},m={vertex:s,fragment:c,attributes:u};function v(t,e){var r=n(t,e),i=r.attributes;return i.position.location=0,i.color.location=1,i.glyph.location=2,i.id.location=3,r}r.createPerspective=function(t){return v(t,f)},r.createOrtho=function(t){return v(t,h)},r.createProject=function(t){return v(t,p)},r.createPickPerspective=function(t){return v(t,d)},r.createPickOrtho=function(t){return v(t,g)},r.createPickProject=function(t){return v(t,m)}},{&quot;gl-shader&quot;:335,glslify:329}],329:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],330:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-string-blank&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;typedarray-pool&quot;),s=t(&quot;gl-mat4/multiply&quot;),l=t(&quot;./lib/shaders&quot;),c=t(&quot;./lib/glyphs&quot;),u=t(&quot;./lib/get-simple-string&quot;),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];return t[0]=e[0]*r+e[4]*n+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*n+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*n+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*n+e[11]*i+e[15]*a,t}function p(t,e,r,n){return h(n,n),h(n,n),h(n,n)}function d(t,e){this.index=t,this.dataCoordinate=this.position=e}function g(t){return!0===t||t&gt;1?1:t}function m(t,e,r,n,i,a,o,s,l,c,u,f){this.gl=t,this.pixelRatio=1,this.shader=e,this.orthoShader=r,this.projectShader=n,this.pointBuffer=i,this.colorBuffer=a,this.glyphBuffer=o,this.idBuffer=s,this.vao=l,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[2/3,2/3,2/3],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=c,this.pickOrthoShader=u,this.pickProjectShader=f,this.points=[],this._selectResult=new d(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}e.exports=function(t){var e=t.gl,r=l.createPerspective(e),n=l.createOrtho(e),o=l.createProject(e),s=l.createPickPerspective(e),c=l.createPickOrtho(e),u=l.createPickProject(e),f=i(e),h=i(e),p=i(e),d=i(e),g=a(e,[{buffer:f,size:3,type:e.FLOAT},{buffer:h,size:4,type:e.FLOAT},{buffer:p,size:2,type:e.FLOAT},{buffer:d,size:4,type:e.UNSIGNED_BYTE,normalized:!0}]),v=new m(e,r,n,o,f,h,p,d,g,s,c,u);return v.update(t),v};var v=m.prototype;v.pickSlots=1,v.setPickBase=function(t){this.pickId=t},v.isTransparent=function(){if(this.hasAlpha)return!0;for(var t=0;t&lt;3;++t)if(this.axesProject[t]&amp;&amp;this.projectHasAlpha)return!0;return!1},v.isOpaque=function(){if(!this.hasAlpha)return!0;for(var t=0;t&lt;3;++t)if(this.axesProject[t]&amp;&amp;!this.projectHasAlpha)return!0;return!1};var y=[0,0],x=[0,0,0],b=[0,0,0],_=[0,0,0,1],w=[0,0,0,1],T=f.slice(),k=[0,0,0],M=[[0,0,0],[0,0,0]];function A(t){return t[0]=t[1]=t[2]=0,t}function S(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=1,t}function E(t,e,r,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[r]=n,t}function C(t,e,r,n){var i,a=e.axesProject,o=e.gl,l=t.uniforms,c=r.model||f,u=r.view||f,h=r.projection||f,d=e.axesBounds,g=function(t){for(var e=M,r=0;r&lt;2;++r)for(var n=0;n&lt;3;++n)e[r][n]=Math.max(Math.min(t[r][n],1e8),-1e8);return e}(e.clipBounds);i=e.axes&amp;&amp;e.axes.lastCubeProps?e.axes.lastCubeProps.axis:[1,1,1],y[0]=2/o.drawingBufferWidth,y[1]=2/o.drawingBufferHeight,t.bind(),l.view=u,l.projection=h,l.screenSize=y,l.highlightId=e.highlightId,l.highlightScale=e.highlightScale,l.clipBounds=g,l.pickGroup=e.pickId/255,l.pixelRatio=n;for(var m=0;m&lt;3;++m)if(a[m]){l.scale=e.projectScale[m],l.opacity=e.projectOpacity[m];for(var v=T,C=0;C&lt;16;++C)v[C]=0;for(C=0;C&lt;4;++C)v[5*C]=1;v[5*m]=0,i[m]&lt;0?v[12+m]=d[0][m]:v[12+m]=d[1][m],s(v,c,v),l.model=v;var L=(m+1)%3,I=(m+2)%3,P=A(x),z=A(b);P[L]=1,z[I]=1;var O=p(0,0,0,S(_,P)),D=p(0,0,0,S(w,z));if(Math.abs(O[1])&gt;Math.abs(D[1])){var R=O;O=D,D=R,R=P,P=z,z=R;var F=L;L=I,I=F}O[0]&lt;0&amp;&amp;(P[L]=-1),D[1]&gt;0&amp;&amp;(z[I]=-1);var B=0,N=0;for(C=0;C&lt;4;++C)B+=Math.pow(c[4*L+C],2),N+=Math.pow(c[4*I+C],2);P[L]/=Math.sqrt(B),z[I]/=Math.sqrt(N),l.axes[0]=P,l.axes[1]=z,l.fragClipBounds[0]=E(k,g[0],m,-1e8),l.fragClipBounds[1]=E(k,g[1],m,1e8),e.vao.bind(),e.vao.draw(o.TRIANGLES,e.vertexCount),e.lineWidth&gt;0&amp;&amp;(o.lineWidth(e.lineWidth*n),e.vao.draw(o.LINES,e.lineVertexCount,e.vertexCount)),e.vao.unbind()}}var L=[[-1e8,-1e8,-1e8],[1e8,1e8,1e8]];function I(t,e,r,n,i,a,o){var s=r.gl;if((a===r.projectHasAlpha||o)&amp;&amp;C(e,r,n,i),a===r.hasAlpha||o){t.bind();var l=t.uniforms;l.model=n.model||f,l.view=n.view||f,l.projection=n.projection||f,y[0]=2/s.drawingBufferWidth,y[1]=2/s.drawingBufferHeight,l.screenSize=y,l.highlightId=r.highlightId,l.highlightScale=r.highlightScale,l.fragClipBounds=L,l.clipBounds=r.axes.bounds,l.opacity=r.opacity,l.pickGroup=r.pickId/255,l.pixelRatio=i,r.vao.bind(),r.vao.draw(s.TRIANGLES,r.vertexCount),r.lineWidth&gt;0&amp;&amp;(s.lineWidth(r.lineWidth*i),r.vao.draw(s.LINES,r.lineVertexCount,r.vertexCount)),r.vao.unbind()}}function P(t,e,r,i){var a;a=Array.isArray(t)?e&lt;t.length?t[e]:void 0:t,a=u(a);var o=!0;n(a)&amp;&amp;(a=&quot;\u25bc&quot;,o=!1);var s=c(a,r,i);return{mesh:s[0],lines:s[1],bounds:s[2],visible:o}}v.draw=function(t){I(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,this.pixelRatio,!1,!1)},v.drawTransparent=function(t){I(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,this.pixelRatio,!0,!1)},v.drawPick=function(t){I(this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader,this.pickProjectShader,this,t,1,!0,!0)},v.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[2]+(t.value[1]&lt;&lt;8)+(t.value[0]&lt;&lt;16);if(e&gt;=this.pointCount||e&lt;0)return null;var r=this.points[e],n=this._selectResult;n.index=e;for(var i=0;i&lt;3;++i)n.position[i]=n.dataCoordinate[i]=r[i];return n},v.highlight=function(t){if(t){var e=t.index,r=255&amp;e,n=e&gt;&gt;8&amp;255,i=e&gt;&gt;16&amp;255;this.highlightId=[r/255,n/255,i/255,0]}else this.highlightId=[1,1,1,1]},v.update=function(t){if(&quot;perspective&quot;in(t=t||{})&amp;&amp;(this.useOrtho=!t.perspective),&quot;orthographic&quot;in t&amp;&amp;(this.useOrtho=!!t.orthographic),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;project&quot;in t)if(Array.isArray(t.project))this.axesProject=t.project;else{var e=!!t.project;this.axesProject=[e,e,e]}if(&quot;projectScale&quot;in t)if(Array.isArray(t.projectScale))this.projectScale=t.projectScale.slice();else{var r=+t.projectScale;this.projectScale=[r,r,r]}if(this.projectHasAlpha=!1,&quot;projectOpacity&quot;in t){if(Array.isArray(t.projectOpacity))this.projectOpacity=t.projectOpacity.slice();else{r=+t.projectOpacity;this.projectOpacity=[r,r,r]}for(var n=0;n&lt;3;++n)this.projectOpacity[n]=g(this.projectOpacity[n]),this.projectOpacity[n]&lt;1&amp;&amp;(this.projectHasAlpha=!0)}this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=g(t.opacity),this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0)),this.dirty=!0;var i,a,s=t.position,l=t.font||&quot;normal&quot;,c=t.alignment||[0,0];if(2===c.length)i=c[0],a=c[1];else{i=[],a=[];for(n=0;n&lt;c.length;++n)i[n]=c[n][0],a[n]=c[n][1]}var u=[1/0,1/0,1/0],f=[-1/0,-1/0,-1/0],h=t.glyph,p=t.color,d=t.size,m=t.angle,v=t.lineColor,y=-1,x=0,b=0,_=0;if(s.length){_=s.length;t:for(n=0;n&lt;_;++n){for(var w=s[n],T=0;T&lt;3;++T)if(isNaN(w[T])||!isFinite(w[T]))continue t;var k=(N=P(h,n,l,this.pixelRatio)).mesh,M=N.lines,A=N.bounds;x+=3*k.cells.length,b+=2*M.edges.length}}var S=x+b,E=o.mallocFloat(3*S),C=o.mallocFloat(4*S),L=o.mallocFloat(2*S),I=o.mallocUint32(S);if(S&gt;0){var z=0,O=x,D=[0,0,0,1],R=[0,0,0,1],F=Array.isArray(p)&amp;&amp;Array.isArray(p[0]),B=Array.isArray(v)&amp;&amp;Array.isArray(v[0]);t:for(n=0;n&lt;_;++n){y+=1;for(w=s[n],T=0;T&lt;3;++T){if(isNaN(w[T])||!isFinite(w[T]))continue t;f[T]=Math.max(f[T],w[T]),u[T]=Math.min(u[T],w[T])}k=(N=P(h,n,l,this.pixelRatio)).mesh,M=N.lines,A=N.bounds;var N,j=N.visible;if(j)if(Array.isArray(p)){if(3===(U=F?n&lt;p.length?p[n]:[0,0,0,0]:p).length){for(T=0;T&lt;3;++T)D[T]=U[T];D[3]=1}else if(4===U.length){for(T=0;T&lt;4;++T)D[T]=U[T];!this.hasAlpha&amp;&amp;U[3]&lt;1&amp;&amp;(this.hasAlpha=!0)}}else D[0]=D[1]=D[2]=0,D[3]=1;else D=[1,1,1,0];if(j)if(Array.isArray(v)){var U;if(3===(U=B?n&lt;v.length?v[n]:[0,0,0,0]:v).length){for(T=0;T&lt;3;++T)R[T]=U[T];R[T]=1}else if(4===U.length){for(T=0;T&lt;4;++T)R[T]=U[T];!this.hasAlpha&amp;&amp;U[3]&lt;1&amp;&amp;(this.hasAlpha=!0)}}else R[0]=R[1]=R[2]=0,R[3]=1;else R=[1,1,1,0];var V=.5;j?Array.isArray(d)?V=n&lt;d.length?+d[n]:12:d?V=+d:this.useOrtho&amp;&amp;(V=12):V=0;var q=0;Array.isArray(m)?q=n&lt;m.length?+m[n]:0:m&amp;&amp;(q=+m);var H=Math.cos(q),G=Math.sin(q);for(w=s[n],T=0;T&lt;3;++T)f[T]=Math.max(f[T],w[T]),u[T]=Math.min(u[T],w[T]);var Y=i,W=a;Y=0;Array.isArray(i)?Y=n&lt;i.length?i[n]:0:i&amp;&amp;(Y=i);W=0;Array.isArray(a)?W=n&lt;a.length?a[n]:0:a&amp;&amp;(W=a);var X=[Y*=Y&gt;0?1-A[0][0]:Y&lt;0?1+A[1][0]:1,W*=W&gt;0?1-A[0][1]:W&lt;0?1+A[1][1]:1],Z=k.cells||[],J=k.positions||[];for(T=0;T&lt;Z.length;++T)for(var K=Z[T],Q=0;Q&lt;3;++Q){for(var $=0;$&lt;3;++$)E[3*z+$]=w[$];for($=0;$&lt;4;++$)C[4*z+$]=D[$];I[z]=y;var tt=J[K[Q]];L[2*z]=V*(H*tt[0]-G*tt[1]+X[0]),L[2*z+1]=V*(G*tt[0]+H*tt[1]+X[1]),z+=1}for(Z=M.edges,J=M.positions,T=0;T&lt;Z.length;++T)for(K=Z[T],Q=0;Q&lt;2;++Q){for($=0;$&lt;3;++$)E[3*O+$]=w[$];for($=0;$&lt;4;++$)C[4*O+$]=R[$];I[O]=y;tt=J[K[Q]];L[2*O]=V*(H*tt[0]-G*tt[1]+X[0]),L[2*O+1]=V*(G*tt[0]+H*tt[1]+X[1]),O+=1}}}this.bounds=[u,f],this.points=s,this.pointCount=s.length,this.vertexCount=x,this.lineVertexCount=b,this.pointBuffer.update(E),this.colorBuffer.update(C),this.glyphBuffer.update(L),this.idBuffer.update(I),o.free(E),o.free(C),o.free(L),o.free(I)},v.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()}},{&quot;./lib/get-simple-string&quot;:326,&quot;./lib/glyphs&quot;:327,&quot;./lib/shaders&quot;:328,&quot;gl-buffer&quot;:259,&quot;gl-mat4/multiply&quot;:295,&quot;gl-vao&quot;:358,&quot;is-string-blank&quot;:470,&quot;typedarray-pool&quot;:595}],331:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;);r.boxVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 vertex;\n\nuniform vec2 cornerA, cornerB;\n\nvoid main() {\n  gl_Position = vec4(mix(cornerA, cornerB, vertex), 0, 1);\n}\n&quot;]),r.boxFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color;\n\nvoid main() {\n  gl_FragColor = color;\n}\n&quot;])},{glslify:332}],332:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],333:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;./lib/shaders&quot;);function o(t,e,r){this.plot=t,this.boxBuffer=e,this.boxShader=r,this.enabled=!0,this.selectBox=[1/0,1/0,-1/0,-1/0],this.borderColor=[0,0,0,1],this.innerFill=!1,this.innerColor=[0,0,0,.25],this.outerFill=!0,this.outerColor=[0,0,0,.5],this.borderWidth=10}e.exports=function(t,e){var r=t.gl,s=i(r,[0,0,0,1,1,0,1,1]),l=n(r,a.boxVertex,a.boxFragment),c=new o(t,s,l);return c.update(e),t.addOverlay(c),c};var s=o.prototype;s.draw=function(){if(this.enabled){var t=this.plot,e=this.selectBox,r=this.borderWidth,n=(this.innerFill,this.innerColor),i=(this.outerFill,this.outerColor),a=this.borderColor,o=t.box,s=t.screenBox,l=t.dataBox,c=t.viewBox,u=t.pixelRatio,f=(e[0]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],h=(e[1]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1],p=(e[2]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],d=(e[3]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1];if(f=Math.max(f,c[0]),h=Math.max(h,c[1]),p=Math.min(p,c[2]),d=Math.min(d,c[3]),!(p&lt;f||d&lt;h)){o.bind();var g=s[2]-s[0],m=s[3]-s[1];if(this.outerFill&amp;&amp;(o.drawBox(0,0,g,h,i),o.drawBox(0,h,f,d,i),o.drawBox(0,d,g,m,i),o.drawBox(p,h,g,d,i)),this.innerFill&amp;&amp;o.drawBox(f,h,p,d,n),r&gt;0){var v=r*u;o.drawBox(f-v,h-v,p+v,h+v,a),o.drawBox(f-v,d-v,p+v,d+v,a),o.drawBox(f-v,h-v,f+v,d+v,a),o.drawBox(p-v,h-v,p+v,d+v,a)}}}},s.update=function(t){t=t||{},this.innerFill=!!t.innerFill,this.outerFill=!!t.outerFill,this.innerColor=(t.innerColor||[0,0,0,.5]).slice(),this.outerColor=(t.outerColor||[0,0,0,.5]).slice(),this.borderColor=(t.borderColor||[0,0,0,1]).slice(),this.borderWidth=t.borderWidth||0,this.selectBox=(t.selectBox||this.selectBox).slice()},s.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)}},{&quot;./lib/shaders&quot;:331,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],334:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=e[0],a=e[1],o=n(t,r,a,{}),s=i.mallocUint8(r*a*4);return new l(t,o,s)};var n=t(&quot;gl-fbo&quot;),i=t(&quot;typedarray-pool&quot;),a=t(&quot;ndarray&quot;),o=t(&quot;bit-twiddle&quot;).nextPow2;function s(t,e,r,n,i){this.coord=[t,e],this.id=r,this.value=n,this.distance=i}function l(t,e,r){this.gl=t,this.fbo=e,this.buffer=r,this._readTimeout=null;var n=this;this._readCallback=function(){n.gl&amp;&amp;(e.bind(),t.readPixels(0,0,e.shape[0],e.shape[1],t.RGBA,t.UNSIGNED_BYTE,n.buffer),n._readTimeout=null)}}var c=l.prototype;Object.defineProperty(c,&quot;shape&quot;,{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(t){if(this.gl){this.fbo.shape=t;var e=this.fbo.shape[0],r=this.fbo.shape[1];if(r*e*4&gt;this.buffer.length){i.free(this.buffer);for(var n=this.buffer=i.mallocUint8(o(r*e*4)),a=0;a&lt;r*e*4;++a)n[a]=255}return t}}}),c.begin=function(){var t=this.gl;this.shape;t&amp;&amp;(this.fbo.bind(),t.clearColor(1,1,1,1),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT))},c.end=function(){var t=this.gl;t&amp;&amp;(t.bindFramebuffer(t.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},c.query=function(t,e,r){if(!this.gl)return null;var n=this.fbo.shape.slice();t|=0,e|=0,&quot;number&quot;!=typeof r&amp;&amp;(r=1);var i=0|Math.min(Math.max(t-r,0),n[0]),o=0|Math.min(Math.max(t+r,0),n[0]),l=0|Math.min(Math.max(e-r,0),n[1]),c=0|Math.min(Math.max(e+r,0),n[1]);if(o&lt;=i||c&lt;=l)return null;var u=[o-i,c-l],f=a(this.buffer,[u[0],u[1],4],[4,4*n[0],1],4*(i+n[0]*l)),h=function(t,e,r){for(var n=1e8,i=-1,a=-1,o=t.shape[0],s=t.shape[1],l=0;l&lt;o;l++)for(var c=0;c&lt;s;c++){var u=t.get(l,c,0),f=t.get(l,c,1),h=t.get(l,c,2),p=t.get(l,c,3);if(u&lt;255||f&lt;255||h&lt;255||p&lt;255){var d=e-l,g=r-c,m=d*d+g*g;m&lt;n&amp;&amp;(n=m,i=l,a=c)}}return[i,a,n]}(f.hi(u[0],u[1],1),r,r),p=h[0],d=h[1];return p&lt;0||Math.pow(this.radius,2)&lt;h[2]?null:new s(p+i|0,d+l|0,f.get(p,d,0),[f.get(p,d,1),f.get(p,d,2),f.get(p,d,3)],Math.sqrt(h[2]))},c.dispose=function(){this.gl&amp;&amp;(this.fbo.dispose(),i.free(this.buffer),this.gl=null,this._readTimeout&amp;&amp;clearTimeout(this._readTimeout))}},{&quot;bit-twiddle&quot;:97,&quot;gl-fbo&quot;:269,ndarray:495,&quot;typedarray-pool&quot;:595}],335:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/create-uniforms&quot;),i=t(&quot;./lib/create-attributes&quot;),a=t(&quot;./lib/reflect&quot;),o=t(&quot;./lib/shader-cache&quot;),s=t(&quot;./lib/runtime-reflect&quot;),l=t(&quot;./lib/GLError&quot;);function c(t){this.gl=t,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}var u=c.prototype;function f(t,e){return t.name&lt;e.name?-1:1}u.bind=function(){var t;this.program||this._relink();var e=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),r=this.gl.lastAttribCount;if(e&gt;r)for(t=r;t&lt;e;t++)this.gl.enableVertexAttribArray(t);else if(r&gt;e)for(t=e;t&lt;r;t++)this.gl.disableVertexAttribArray(t);this.gl.lastAttribCount=e,this.gl.useProgram(this.program)},u.dispose=function(){for(var t=this.gl.lastAttribCount,e=0;e&lt;t;e++)this.gl.disableVertexAttribArray(e);this.gl.lastAttribCount=0,this._fref&amp;&amp;this._fref.dispose(),this._vref&amp;&amp;this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null},u.update=function(t,e,r,c){if(!e||1===arguments.length){var u=t;t=u.vertex,e=u.fragment,r=u.uniforms,c=u.attributes}var h=this,p=h.gl,d=h._vref;h._vref=o.shader(p,p.VERTEX_SHADER,t),d&amp;&amp;d.dispose(),h.vertShader=h._vref.shader;var g=this._fref;if(h._fref=o.shader(p,p.FRAGMENT_SHADER,e),g&amp;&amp;g.dispose(),h.fragShader=h._fref.shader,!r||!c){var m=p.createProgram();if(p.attachShader(m,h.fragShader),p.attachShader(m,h.vertShader),p.linkProgram(m),!p.getProgramParameter(m,p.LINK_STATUS)){var v=p.getProgramInfoLog(m);throw new l(v,&quot;Error linking program:&quot;+v)}r=r||s.uniforms(p,m),c=c||s.attributes(p,m),p.deleteProgram(m)}(c=c.slice()).sort(f);var y,x=[],b=[],_=[];for(y=0;y&lt;c.length;++y){var w=c[y];if(w.type.indexOf(&quot;mat&quot;)&gt;=0){for(var T=0|w.type.charAt(w.type.length-1),k=new Array(T),M=0;M&lt;T;++M)k[M]=_.length,b.push(w.name+&quot;[&quot;+M+&quot;]&quot;),&quot;number&quot;==typeof w.location?_.push(w.location+M):Array.isArray(w.location)&amp;&amp;w.location.length===T&amp;&amp;&quot;number&quot;==typeof w.location[M]?_.push(0|w.location[M]):_.push(-1);x.push({name:w.name,type:w.type,locations:k})}else x.push({name:w.name,type:w.type,locations:[_.length]}),b.push(w.name),&quot;number&quot;==typeof w.location?_.push(0|w.location):_.push(-1)}var A=0;for(y=0;y&lt;_.length;++y)if(_[y]&lt;0){for(;_.indexOf(A)&gt;=0;)A+=1;_[y]=A}var S=new Array(r.length);function E(){h.program=o.program(p,h._vref,h._fref,b,_);for(var t=0;t&lt;r.length;++t)S[t]=p.getUniformLocation(h.program,r[t].name)}E(),h._relink=E,h.types={uniforms:a(r),attributes:a(c)},h.attributes=i(p,h,x,_),Object.defineProperty(h,&quot;uniforms&quot;,n(p,h,r,S))},e.exports=function(t,e,r,n,i){var a=new c(t);return a.update(e,r,n,i),a}},{&quot;./lib/GLError&quot;:336,&quot;./lib/create-attributes&quot;:337,&quot;./lib/create-uniforms&quot;:338,&quot;./lib/reflect&quot;:339,&quot;./lib/runtime-reflect&quot;:340,&quot;./lib/shader-cache&quot;:341}],336:[function(t,e,r){function n(t,e,r){this.shortMessage=e||&quot;&quot;,this.longMessage=r||&quot;&quot;,this.rawError=t||&quot;&quot;,this.message=&quot;gl-shader: &quot;+(e||t||&quot;&quot;)+(r?&quot;\n&quot;+r:&quot;&quot;),this.stack=(new Error).stack}n.prototype=new Error,n.prototype.name=&quot;GLError&quot;,n.prototype.constructor=n,e.exports=n},{}],337:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,i){for(var a={},l=0,c=r.length;l&lt;c;++l){var u=r[l],f=u.name,h=u.type,p=u.locations;switch(h){case&quot;bool&quot;:case&quot;int&quot;:case&quot;float&quot;:o(t,e,p[0],i,1,a,f);break;default:if(h.indexOf(&quot;vec&quot;)&gt;=0){if((d=h.charCodeAt(h.length-1)-48)&lt;2||d&gt;4)throw new n(&quot;&quot;,&quot;Invalid data type for attribute &quot;+f+&quot;: &quot;+h);o(t,e,p[0],i,d,a,f)}else{if(!(h.indexOf(&quot;mat&quot;)&gt;=0))throw new n(&quot;&quot;,&quot;Unknown data type for attribute &quot;+f+&quot;: &quot;+h);var d;if((d=h.charCodeAt(h.length-1)-48)&lt;2||d&gt;4)throw new n(&quot;&quot;,&quot;Invalid data type for attribute &quot;+f+&quot;: &quot;+h);s(t,e,p,i,d,a,f)}}}return a};var n=t(&quot;./GLError&quot;);function i(t,e,r,n,i,a){this._gl=t,this._wrapper=e,this._index=r,this._locations=n,this._dimension=i,this._constFunc=a}var a=i.prototype;function o(t,e,r,n,a,o,s){for(var l=[&quot;gl&quot;,&quot;v&quot;],c=[],u=0;u&lt;a;++u)l.push(&quot;x&quot;+u),c.push(&quot;x&quot;+u);l.push(&quot;if(x0.length===void 0){return gl.vertexAttrib&quot;+a+&quot;f(v,&quot;+c.join()+&quot;)}else{return gl.vertexAttrib&quot;+a+&quot;fv(v,x0)}&quot;);var f=Function.apply(null,l),h=new i(t,e,r,n,a,f);Object.defineProperty(o,s,{set:function(e){return t.disableVertexAttribArray(n[r]),f(t,n[r],e),e},get:function(){return h},enumerable:!0})}function s(t,e,r,n,i,a,s){for(var l=new Array(i),c=new Array(i),u=0;u&lt;i;++u)o(t,e,r[u],n,i,l,u),c[u]=l[u];Object.defineProperty(l,&quot;location&quot;,{set:function(t){if(Array.isArray(t))for(var e=0;e&lt;i;++e)c[e].location=t[e];else for(e=0;e&lt;i;++e)c[e].location=t+e;return t},get:function(){for(var t=new Array(i),e=0;e&lt;i;++e)t[e]=n[r[e]];return t},enumerable:!0}),l.pointer=function(e,a,o,s){e=e||t.FLOAT,a=!!a,o=o||i*i,s=s||0;for(var l=0;l&lt;i;++l){var c=n[r[l]];t.vertexAttribPointer(c,i,e,a,o,s+l*i),t.enableVertexAttribArray(c)}};var f=new Array(i),h=t[&quot;vertexAttrib&quot;+i+&quot;fv&quot;];Object.defineProperty(a,s,{set:function(e){for(var a=0;a&lt;i;++a){var o=n[r[a]];if(t.disableVertexAttribArray(o),Array.isArray(e[0]))h.call(t,o,e[a]);else{for(var s=0;s&lt;i;++s)f[s]=e[i*a+s];h.call(t,o,f)}}return e},get:function(){return l},enumerable:!0})}a.pointer=function(t,e,r,n){var i=this._gl,a=this._locations[this._index];i.vertexAttribPointer(a,this._dimension,t||i.FLOAT,!!e,r||0,n||0),i.enableVertexAttribArray(a)},a.set=function(t,e,r,n){return this._constFunc(this._locations[this._index],t,e,r,n)},Object.defineProperty(a,&quot;location&quot;,{get:function(){return this._locations[this._index]},set:function(t){return t!==this._locations[this._index]&amp;&amp;(this._locations[this._index]=0|t,this._wrapper.program=null),0|t}})},{&quot;./GLError&quot;:336}],338:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./reflect&quot;),i=t(&quot;./GLError&quot;);function a(t){return new Function(&quot;y&quot;,&quot;return function(){return y}&quot;)(t)}function o(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}e.exports=function(t,e,r,s){function l(t,e,r){switch(r){case&quot;bool&quot;:case&quot;int&quot;:case&quot;sampler2D&quot;:case&quot;samplerCube&quot;:return&quot;gl.uniform1i(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;case&quot;float&quot;:return&quot;gl.uniform1f(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;default:var n=r.indexOf(&quot;vec&quot;);if(!(0&lt;=n&amp;&amp;n&lt;=1&amp;&amp;r.length===4+n)){if(0===r.indexOf(&quot;mat&quot;)&amp;&amp;4===r.length){var a;if((a=r.charCodeAt(r.length-1)-48)&lt;2||a&gt;4)throw new i(&quot;&quot;,&quot;Invalid uniform dimension type for matrix &quot;+name+&quot;: &quot;+r);return&quot;gl.uniformMatrix&quot;+a+&quot;fv(locations[&quot;+e+&quot;],false,obj&quot;+t+&quot;)&quot;}throw new i(&quot;&quot;,&quot;Unknown uniform data type for &quot;+name+&quot;: &quot;+r)}if((a=r.charCodeAt(r.length-1)-48)&lt;2||a&gt;4)throw new i(&quot;&quot;,&quot;Invalid data type&quot;);switch(r.charAt(0)){case&quot;b&quot;:case&quot;i&quot;:return&quot;gl.uniform&quot;+a+&quot;iv(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;case&quot;v&quot;:return&quot;gl.uniform&quot;+a+&quot;fv(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;default:throw new i(&quot;&quot;,&quot;Unrecognized data type for vector &quot;+name+&quot;: &quot;+r)}}}function c(e){for(var n=[&quot;return function updateProperty(obj){&quot;],i=function t(e,r){if(&quot;object&quot;!=typeof r)return[[e,r]];var n=[];for(var i in r){var a=r[i],o=e;parseInt(i)+&quot;&quot;===i?o+=&quot;[&quot;+i+&quot;]&quot;:o+=&quot;.&quot;+i,&quot;object&quot;==typeof a?n.push.apply(n,t(o,a)):n.push([o,a])}return n}(&quot;&quot;,e),a=0;a&lt;i.length;++a){var o=i[a],c=o[0],u=o[1];s[u]&amp;&amp;n.push(l(c,u,r[u].type))}return n.push(&quot;return obj}&quot;),new Function(&quot;gl&quot;,&quot;locations&quot;,n.join(&quot;\n&quot;))(t,s)}function u(n,l,u){if(&quot;object&quot;==typeof u){var h=f(u);Object.defineProperty(n,l,{get:a(h),set:c(u),enumerable:!0,configurable:!1})}else s[u]?Object.defineProperty(n,l,{get:(p=u,new Function(&quot;gl&quot;,&quot;wrapper&quot;,&quot;locations&quot;,&quot;return function(){return gl.getUniform(wrapper.program,locations[&quot;+p+&quot;])}&quot;)(t,e,s)),set:c(u),enumerable:!0,configurable:!1}):n[l]=function(t){switch(t){case&quot;bool&quot;:return!1;case&quot;int&quot;:case&quot;sampler2D&quot;:case&quot;samplerCube&quot;:case&quot;float&quot;:return 0;default:var e=t.indexOf(&quot;vec&quot;);if(0&lt;=e&amp;&amp;e&lt;=1&amp;&amp;t.length===4+e){if((r=t.charCodeAt(t.length-1)-48)&lt;2||r&gt;4)throw new i(&quot;&quot;,&quot;Invalid data type&quot;);return&quot;b&quot;===t.charAt(0)?o(r,!1):o(r,0)}if(0===t.indexOf(&quot;mat&quot;)&amp;&amp;4===t.length){var r;if((r=t.charCodeAt(t.length-1)-48)&lt;2||r&gt;4)throw new i(&quot;&quot;,&quot;Invalid uniform dimension type for matrix &quot;+name+&quot;: &quot;+t);return o(r*r,0)}throw new i(&quot;&quot;,&quot;Unknown uniform data type for &quot;+name+&quot;: &quot;+t)}}(r[u].type);var p}function f(t){var e;if(Array.isArray(t)){e=new Array(t.length);for(var r=0;r&lt;t.length;++r)u(e,r,t[r])}else for(var n in e={},t)u(e,n,t[n]);return e}var h=n(r,!0);return{get:a(f(h)),set:c(h),enumerable:!0,configurable:!0}}},{&quot;./GLError&quot;:336,&quot;./reflect&quot;:339}],339:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r={},n=0;n&lt;t.length;++n)for(var i=t[n].name.split(&quot;.&quot;),a=r,o=0;o&lt;i.length;++o){var s=i[o].split(&quot;[&quot;);if(s.length&gt;1){s[0]in a||(a[s[0]]=[]),a=a[s[0]];for(var l=1;l&lt;s.length;++l){var c=parseInt(s[l]);l&lt;s.length-1||o&lt;i.length-1?(c in a||(l&lt;s.length-1?a[c]=[]:a[c]={}),a=a[c]):a[c]=e?n:t[n].type}}else o&lt;i.length-1?(s[0]in a||(a[s[0]]={}),a=a[s[0]]):a[s[0]]=e?n:t[n].type}return r}},{}],340:[function(t,e,r){&quot;use strict&quot;;r.uniforms=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),n=[],i=0;i&lt;r;++i){var o=t.getActiveUniform(e,i);if(o){var s=a(t,o.type);if(o.size&gt;1)for(var l=0;l&lt;o.size;++l)n.push({name:o.name.replace(&quot;[0]&quot;,&quot;[&quot;+l+&quot;]&quot;),type:s});else n.push({name:o.name,type:s})}}return n},r.attributes=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),n=[],i=0;i&lt;r;++i){var o=t.getActiveAttrib(e,i);o&amp;&amp;n.push({name:o.name,type:a(t,o.type)})}return n};var n={FLOAT:&quot;float&quot;,FLOAT_VEC2:&quot;vec2&quot;,FLOAT_VEC3:&quot;vec3&quot;,FLOAT_VEC4:&quot;vec4&quot;,INT:&quot;int&quot;,INT_VEC2:&quot;ivec2&quot;,INT_VEC3:&quot;ivec3&quot;,INT_VEC4:&quot;ivec4&quot;,BOOL:&quot;bool&quot;,BOOL_VEC2:&quot;bvec2&quot;,BOOL_VEC3:&quot;bvec3&quot;,BOOL_VEC4:&quot;bvec4&quot;,FLOAT_MAT2:&quot;mat2&quot;,FLOAT_MAT3:&quot;mat3&quot;,FLOAT_MAT4:&quot;mat4&quot;,SAMPLER_2D:&quot;sampler2D&quot;,SAMPLER_CUBE:&quot;samplerCube&quot;},i=null;function a(t,e){if(!i){var r=Object.keys(n);i={};for(var a=0;a&lt;r.length;++a){var o=r[a];i[t[o]]=n[o]}}return i[e]}},{}],341:[function(t,e,r){&quot;use strict&quot;;r.shader=function(t,e,r){return u(t).getShaderReference(e,r)},r.program=function(t,e,r,n,i){return u(t).getProgram(e,r,n,i)};var n=t(&quot;./GLError&quot;),i=t(&quot;gl-format-compiler-error&quot;),a=new(&quot;undefined&quot;==typeof WeakMap?t(&quot;weakmap-shim&quot;):WeakMap),o=0;function s(t,e,r,n,i,a,o){this.id=t,this.src=e,this.type=r,this.shader=n,this.count=a,this.programs=[],this.cache=o}function l(t){this.gl=t,this.shaders=[{},{}],this.programs={}}s.prototype.dispose=function(){if(0==--this.count){for(var t=this.cache,e=t.gl,r=this.programs,n=0,i=r.length;n&lt;i;++n){var a=t.programs[r[n]];a&amp;&amp;(delete t.programs[n],e.deleteProgram(a))}e.deleteShader(this.shader),delete t.shaders[this.type===e.FRAGMENT_SHADER|0][this.src]}};var c=l.prototype;function u(t){var e=a.get(t);return e||(e=new l(t),a.set(t,e)),e}c.getShaderReference=function(t,e){var r=this.gl,a=this.shaders[t===r.FRAGMENT_SHADER|0],l=a[e];if(l&amp;&amp;r.isShader(l.shader))l.count+=1;else{var c=function(t,e,r){var a=t.createShader(e);if(t.shaderSource(a,r),t.compileShader(a),!t.getShaderParameter(a,t.COMPILE_STATUS)){var o=t.getShaderInfoLog(a);try{var s=i(o,r,e)}catch(t){throw console.warn(&quot;Failed to format compiler error: &quot;+t),new n(o,&quot;Error compiling shader:\n&quot;+o)}throw new n(o,s.short,s.long)}return a}(r,t,e);l=a[e]=new s(o++,e,t,c,[],1,this)}return l},c.getProgram=function(t,e,r,i){var a=[t.id,e.id,r.join(&quot;:&quot;),i.join(&quot;:&quot;)].join(&quot;@&quot;),o=this.programs[a];return o&amp;&amp;this.gl.isProgram(o)||(this.programs[a]=o=function(t,e,r,i,a){var o=t.createProgram();t.attachShader(o,e),t.attachShader(o,r);for(var s=0;s&lt;i.length;++s)t.bindAttribLocation(o,a[s],i[s]);if(t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS)){var l=t.getProgramInfoLog(o);throw new n(l,&quot;Error linking program: &quot;+l)}return o}(this.gl,t.shader,e.shader,r,i),t.programs.push(a),e.programs.push(a)),o}},{&quot;./GLError&quot;:336,&quot;gl-format-compiler-error&quot;:270,&quot;weakmap-shim&quot;:605}],342:[function(t,e,r){&quot;use strict&quot;;function n(t){this.plot=t,this.enable=[!0,!0,!1,!1],this.width=[1,1,1,1],this.color=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.center=[1/0,1/0]}e.exports=function(t,e){var r=new n(t);return r.update(e),t.addOverlay(r),r};var i=n.prototype;i.update=function(t){t=t||{},this.enable=(t.enable||[!0,!0,!1,!1]).slice(),this.width=(t.width||[1,1,1,1]).slice(),this.color=(t.color||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]).map((function(t){return t.slice()})),this.center=(t.center||[1/0,1/0]).slice(),this.plot.setOverlayDirty()},i.draw=function(){var t=this.enable,e=this.width,r=this.color,n=this.center,i=this.plot,a=i.line,o=i.dataBox,s=i.viewBox;if(a.bind(),o[0]&lt;=n[0]&amp;&amp;n[0]&lt;=o[2]&amp;&amp;o[1]&lt;=n[1]&amp;&amp;n[1]&lt;=o[3]){var l=s[0]+(n[0]-o[0])/(o[2]-o[0])*(s[2]-s[0]),c=s[1]+(n[1]-o[1])/(o[3]-o[1])*(s[3]-s[1]);t[0]&amp;&amp;a.drawLine(l,c,s[0],c,e[0],r[0]),t[1]&amp;&amp;a.drawLine(l,c,l,s[1],e[1],r[1]),t[2]&amp;&amp;a.drawLine(l,c,s[2],c,e[2],r[2]),t[3]&amp;&amp;a.drawLine(l,c,l,s[3],e[3],r[3])}},i.dispose=function(){this.plot.removeOverlay(this)}},{}],343:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],344:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position, color;\nattribute float weight;\n\nuniform mat4 model, view, projection;\nuniform vec3 coordinates[3];\nuniform vec4 colors[3];\nuniform vec2 screenShape;\nuniform float lineWidth;\n\nvarying vec4 fragColor;\n\nvoid main() {\n  vec3 vertexPosition = mix(coordinates[0],\n    mix(coordinates[2], coordinates[1], 0.5 * (position + 1.0)), abs(position));\n\n  vec4 clipPos = projection * view * model * vec4(vertexPosition, 1.0);\n  vec2 clipOffset = (projection * view * model * vec4(color, 0.0)).xy;\n  vec2 delta = weight * clipOffset * screenShape;\n  vec2 lineOffset = normalize(vec2(delta.y, -delta.x)) / screenShape;\n\n  gl_Position   = vec4(clipPos.xy + clipPos.w * 0.5 * lineWidth * lineOffset, clipPos.z, clipPos.w);\n  fragColor     = color.x * colors[0] + color.y * colors[1] + color.z * colors[2];\n}\n&quot;]),o=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n  gl_FragColor = fragColor;\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec3&quot;},{name:&quot;weight&quot;,type:&quot;float&quot;}])}},{&quot;gl-shader&quot;:335,glslify:343}],345:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders/index&quot;);e.exports=function(t,e){var r=[];function o(t,e,n,i,a,o){var s=[t,e,n,0,0,0,1];s[i+3]=1,s[i]=a,r.push.apply(r,s),s[6]=-1,r.push.apply(r,s),s[i]=o,r.push.apply(r,s),r.push.apply(r,s),s[6]=1,r.push.apply(r,s),s[i]=a,r.push.apply(r,s)}o(0,0,0,0,0,1),o(0,0,0,1,0,1),o(0,0,0,2,0,1),o(1,0,0,1,-1,1),o(1,0,0,2,-1,1),o(0,1,0,0,-1,1),o(0,1,0,2,-1,1),o(0,0,1,0,-1,1),o(0,0,1,1,-1,1);var l=n(t,r),c=i(t,[{type:t.FLOAT,buffer:l,size:3,offset:0,stride:28},{type:t.FLOAT,buffer:l,size:3,offset:12,stride:28},{type:t.FLOAT,buffer:l,size:1,offset:24,stride:28}]),u=a(t);u.attributes.position.location=0,u.attributes.color.location=1,u.attributes.weight.location=2;var f=new s(t,l,c,u);return f.update(e),f};var o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n,this.pixelRatio=1,this.bounds=[[-1e3,-1e3,-1e3],[1e3,1e3,1e3]],this.position=[0,0,0],this.lineWidth=[2,2,2],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.enabled=[!0,!0,!0],this.drawSides=[!0,!0,!0],this.axes=null}var l=s.prototype,c=[0,0,0],u=[0,0,0],f=[0,0];l.isTransparent=function(){return!1},l.drawTransparent=function(t){},l.draw=function(t){var e=this.gl,r=this.vao,n=this.shader;r.bind(),n.bind();var i,a=t.model||o,s=t.view||o,l=t.projection||o;this.axes&amp;&amp;(i=this.axes.lastCubeProps.axis);for(var h=c,p=u,d=0;d&lt;3;++d)i&amp;&amp;i[d]&lt;0?(h[d]=this.bounds[0][d],p[d]=this.bounds[1][d]):(h[d]=this.bounds[1][d],p[d]=this.bounds[0][d]);f[0]=e.drawingBufferWidth,f[1]=e.drawingBufferHeight,n.uniforms.model=a,n.uniforms.view=s,n.uniforms.projection=l,n.uniforms.coordinates=[this.position,h,p],n.uniforms.colors=this.colors,n.uniforms.screenShape=f;for(d=0;d&lt;3;++d)n.uniforms.lineWidth=this.lineWidth[d]*this.pixelRatio,this.enabled[d]&amp;&amp;(r.draw(e.TRIANGLES,6,6*d),this.drawSides[d]&amp;&amp;r.draw(e.TRIANGLES,12,18+12*d));r.unbind()},l.update=function(t){t&amp;&amp;(&quot;bounds&quot;in t&amp;&amp;(this.bounds=t.bounds),&quot;position&quot;in t&amp;&amp;(this.position=t.position),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;colors&quot;in t&amp;&amp;(this.colors=t.colors),&quot;enabled&quot;in t&amp;&amp;(this.enabled=t.enabled),&quot;drawSides&quot;in t&amp;&amp;(this.drawSides=t.drawSides))},l.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{&quot;./shaders/index&quot;:344,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],346:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n  float segmentCount = 8.0;\n\n  float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d);\n  vec3 y = v * sin(angle) * length(d);\n  vec3 v3 = x + y;\n\n  normal = normalize(v3);\n\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, tubeScale;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  // Scale the vector magnitude to stay constant with\n  // model &amp; view changes.\n  vec3 normal;\n  vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n  vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * tubePosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  // vec4 m_position  = model * vec4(tubePosition, 1.0);\n  vec4 t_position  = view * tubePosition;\n  gl_Position      = projection * t_position;\n\n  f_color          = color;\n  f_data           = tubePosition.xyz;\n  f_position       = position.xyz;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * opacity;\n}\n&quot;]),o=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n  float segmentCount = 8.0;\n\n  float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d);\n  vec3 y = v * sin(angle) * length(d);\n  vec3 v3 = x + y;\n\n  normal = normalize(v3);\n\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float tubeScale;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  vec3 normal;\n  vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n  vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  gl_Position = projection * view * tubePosition;\n  f_id        = id;\n  f_position  = position.xyz;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;vector&quot;,type:&quot;vec4&quot;}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;},{name:&quot;vector&quot;,type:&quot;vec4&quot;}]}},{glslify:347}],347:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],348:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-vec3&quot;),i=t(&quot;gl-vec4&quot;),a=[&quot;xyz&quot;,&quot;xzy&quot;,&quot;yxz&quot;,&quot;yzx&quot;,&quot;zxy&quot;,&quot;zyx&quot;],o=function(t,e,r,a){for(var o=0,s=0;s&lt;t.length;s++)for(var l=t[s].velocities,c=0;c&lt;l.length;c++)o=Math.max(o,n.length(l[c]));var u=t.map((function(t){return function(t,e,r,a){for(var o=t.points,s=t.velocities,l=t.divergences,c=[],u=[],f=[],h=[],p=[],d=[],g=0,m=0,v=i.create(),y=i.create(),x=0;x&lt;o.length;x++){var b=o[x],_=s[x],w=l[x];0===e&amp;&amp;(w=.05*r),m=n.length(_)/a,v=i.create(),n.copy(v,_),v[3]=w;for(var T=0;T&lt;8;T++)p[T]=[b[0],b[1],b[2],T];if(h.length&gt;0)for(T=0;T&lt;8;T++){var k=(T+1)%8;c.push(h[T],p[T],p[k],p[k],h[k],h[T]),f.push(y,v,v,v,y,y),d.push(g,m,m,m,g,g);var M=c.length;u.push([M-6,M-5,M-4],[M-3,M-2,M-1])}var A=h;h=p,p=A;var S=y;y=v,v=S;var E=g;g=m,m=E}return{positions:c,cells:u,vectors:f,vertexIntensity:d}}(t,r,a,o)})),f=[],h=[],p=[],d=[];for(s=0;s&lt;u.length;s++){var g=u[s],m=f.length;f=f.concat(g.positions),p=p.concat(g.vectors),d=d.concat(g.vertexIntensity);for(c=0;c&lt;g.cells.length;c++){var v=g.cells[c],y=[];h.push(y);for(var x=0;x&lt;v.length;x++)y.push(v[x]+m)}}return{positions:f,cells:h,vectors:p,vertexIntensity:d,colormap:e}},s=function(t,e){var r,n=t.length;for(r=0;r&lt;n;r++){var i=t[r];if(i===e)return r;if(i&gt;e)return r-1}return r},l=function(t,e,r){return t&lt;e?e:t&gt;r?r:t},c=function(t){var e=1/0;t.sort((function(t,e){return t-e}));for(var r=t.length,n=1;n&lt;r;n++){var i=Math.abs(t[n]-t[n-1]);i&lt;e&amp;&amp;(e=i)}return e};e.exports=function(t,e){var r=t.startingPositions,i=t.maxLength||1e3,u=t.tubeSize||1,f=t.absoluteTubeSize,h=t.gridFill||&quot;+x+y+z&quot;,p={};-1!==h.indexOf(&quot;-x&quot;)&amp;&amp;(p.reversedX=!0),-1!==h.indexOf(&quot;-y&quot;)&amp;&amp;(p.reversedY=!0),-1!==h.indexOf(&quot;-z&quot;)&amp;&amp;(p.reversedZ=!0),p.filled=a.indexOf(h.replace(/-/g,&quot;&quot;).replace(/\+/g,&quot;&quot;));var d=t.getVelocity||function(e){return function(t,e,r){var i=e.vectors,a=e.meshgrid,o=t[0],c=t[1],u=t[2],f=a[0].length,h=a[1].length,p=a[2].length,d=s(a[0],o),g=s(a[1],c),m=s(a[2],u),v=d+1,y=g+1,x=m+1;if(d=l(d,0,f-1),v=l(v,0,f-1),g=l(g,0,h-1),y=l(y,0,h-1),m=l(m,0,p-1),x=l(x,0,p-1),d&lt;0||g&lt;0||m&lt;0||v&gt;f-1||y&gt;h-1||x&gt;p-1)return n.create();var b,_,w,T,k,M,A=a[0][d],S=a[0][v],E=a[1][g],C=a[1][y],L=a[2][m],I=(o-A)/(S-A),P=(c-E)/(C-E),z=(u-L)/(a[2][x]-L);switch(isFinite(I)||(I=.5),isFinite(P)||(P=.5),isFinite(z)||(z=.5),r.reversedX&amp;&amp;(d=f-1-d,v=f-1-v),r.reversedY&amp;&amp;(g=h-1-g,y=h-1-y),r.reversedZ&amp;&amp;(m=p-1-m,x=p-1-x),r.filled){case 5:k=m,M=x,w=g*p,T=y*p,b=d*p*h,_=v*p*h;break;case 4:k=m,M=x,b=d*p,_=v*p,w=g*p*f,T=y*p*f;break;case 3:w=g,T=y,k=m*h,M=x*h,b=d*h*p,_=v*h*p;break;case 2:w=g,T=y,b=d*h,_=v*h,k=m*h*f,M=x*h*f;break;case 1:b=d,_=v,k=m*f,M=x*f,w=g*f*p,T=y*f*p;break;default:b=d,_=v,w=g*f,T=y*f,k=m*f*h,M=x*f*h}var O=i[b+w+k],D=i[b+w+M],R=i[b+T+k],F=i[b+T+M],B=i[_+w+k],N=i[_+w+M],j=i[_+T+k],U=i[_+T+M],V=n.create(),q=n.create(),H=n.create(),G=n.create();n.lerp(V,O,B,I),n.lerp(q,D,N,I),n.lerp(H,R,j,I),n.lerp(G,F,U,I);var Y=n.create(),W=n.create();n.lerp(Y,V,H,P),n.lerp(W,q,G,P);var X=n.create();return n.lerp(X,Y,W,z),X}(e,t,p)},g=t.getDivergence||function(t,e){var r=n.create(),i=1e-4;n.add(r,t,[i,0,0]);var a=d(r);n.subtract(a,a,e),n.scale(a,a,1/i),n.add(r,t,[0,i,0]);var o=d(r);n.subtract(o,o,e),n.scale(o,o,1/i),n.add(r,t,[0,0,i]);var s=d(r);return n.subtract(s,s,e),n.scale(s,s,1/i),n.add(r,a,o),n.add(r,r,s),r},m=[],v=e[0][0],y=e[0][1],x=e[0][2],b=e[1][0],_=e[1][1],w=e[1][2],T=function(t){var e=t[0],r=t[1],n=t[2];return!(e&lt;v||e&gt;b||r&lt;y||r&gt;_||n&lt;x||n&gt;w)},k=10*n.distance(e[0],e[1])/i,M=k*k,A=1,S=0,E=r.length;E&gt;1&amp;&amp;(A=function(t){for(var e=[],r=[],n=[],i={},a={},o={},s=t.length,l=0;l&lt;s;l++){var u=t[l],f=u[0],h=u[1],p=u[2];i[f]||(e.push(f),i[f]=!0),a[h]||(r.push(h),a[h]=!0),o[p]||(n.push(p),o[p]=!0)}var d=c(e),g=c(r),m=c(n),v=Math.min(d,g,m);return isFinite(v)?v:1}(r));for(var C=0;C&lt;E;C++){var L=n.create();n.copy(L,r[C]);var I=[L],P=[],z=d(L),O=L;P.push(z);var D=[],R=g(L,z),F=n.length(R);isFinite(F)&amp;&amp;F&gt;S&amp;&amp;(S=F),D.push(F),m.push({points:I,velocities:P,divergences:D});for(var B=0;B&lt;100*i&amp;&amp;I.length&lt;i&amp;&amp;T(L);){B++;var N=n.clone(z),j=n.squaredLength(N);if(0===j)break;if(j&gt;M&amp;&amp;n.scale(N,N,k/Math.sqrt(j)),n.add(N,N,L),z=d(N),n.squaredDistance(O,N)-M&gt;-1e-4*M){I.push(N),O=N,P.push(z);R=g(N,z),F=n.length(R);isFinite(F)&amp;&amp;F&gt;S&amp;&amp;(S=F),D.push(F)}L=N}}var U=o(m,t.colormap,S,A);return f?U.tubeScale=f:(0===S&amp;&amp;(S=1),U.tubeScale=.5*u*A/S),U};var u=t(&quot;./lib/shaders&quot;),f=t(&quot;gl-cone3d&quot;).createMesh;e.exports.createTubeMesh=function(t,e){return f(t,e,{shaders:u,traceType:&quot;streamtube&quot;})}},{&quot;./lib/shaders&quot;:346,&quot;gl-cone3d&quot;:260,&quot;gl-vec3&quot;:377,&quot;gl-vec4&quot;:413}],349:[function(t,e,r){var n=t(&quot;gl-shader&quot;),i=t(&quot;glslify&quot;),a=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute vec3 f;\nattribute vec3 normal;\n\nuniform vec3 objectOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 lightPosition, eyePosition;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  vec3 localCoordinate = vec3(uv.zw, f.x);\n  worldCoordinate = objectOffset + localCoordinate;\n  vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n  vec4 clipPosition = projection * view * worldPosition;\n  gl_Position = clipPosition;\n  kill = f.y;\n  value = f.z;\n  planeCoordinate = uv.xy;\n\n  vColor = texture2D(colormap, vec2(value, value));\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * worldPosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  lightDirection = lightPosition - cameraCoordinate.xyz;\n  eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  surfaceNormal  = normalize((vec4(normal,0) * inverseModel).xyz);\n}\n&quot;]),o=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat beckmannSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness) {\n  return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 lowerBound, upperBound;\nuniform float contourTint;\nuniform vec4 contourColor;\nuniform sampler2D colormap;\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform float vertexColor;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  if (\n    kill &gt; 0.0 ||\n    vColor.a == 0.0 ||\n    outOfRange(clipBounds[0], clipBounds[1], worldCoordinate)\n  ) discard;\n\n  vec3 N = normalize(surfaceNormal);\n  vec3 V = normalize(eyeDirection);\n  vec3 L = normalize(lightDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = max(beckmannSpecular(L, V, N, roughness), 0.);\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  //decide how to interpolate color \u2014 in vertex or in fragment\n  vec4 surfaceColor =\n    step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) +\n    step(.5, vertexColor) * vColor;\n\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\n}\n&quot;]),s=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute float f;\n\nuniform vec3 objectOffset;\nuniform mat3 permutation;\nuniform mat4 model, view, projection;\nuniform float height, zOffset;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  vec3 dataCoordinate = permutation * vec3(uv.xy, height);\n  worldCoordinate = objectOffset + dataCoordinate;\n  vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n\n  vec4 clipPosition = projection * view * worldPosition;\n  clipPosition.z += zOffset;\n\n  gl_Position = clipPosition;\n  value = f + objectOffset.z;\n  kill = -1.0;\n  planeCoordinate = uv.zw;\n\n  vColor = texture2D(colormap, vec2(value, value));\n\n  //Don't do lighting for contours\n  surfaceNormal   = vec3(1,0,0);\n  eyeDirection    = vec3(0,1,0);\n  lightDirection  = vec3(0,0,1);\n}\n&quot;]),l=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec2 shape;\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 surfaceNormal;\n\nvec2 splitFloat(float v) {\n  float vh = 255.0 * v;\n  float upper = floor(vh);\n  float lower = fract(vh);\n  return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\n}\n\nvoid main() {\n  if ((kill &gt; 0.0) ||\n      (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\n\n  vec2 ux = splitFloat(planeCoordinate.x / shape.x);\n  vec2 uy = splitFloat(planeCoordinate.y / shape.y);\n  gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\n}\n&quot;]);r.createShader=function(t){var e=n(t,a,o,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createPickShader=function(t){var e=n(t,a,l,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createContourShader=function(t){var e=n(t,s,o,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;float&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e},r.createPickContourShader=function(t){var e=n(t,s,l,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;float&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e}},{&quot;gl-shader&quot;:335,glslify:350}],350:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],351:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=y(e),n=b(e),s=x(e),l=_(e),c=i(e),u=a(e,[{buffer:c,size:4,stride:40,offset:0},{buffer:c,size:3,stride:40,offset:16},{buffer:c,size:3,stride:40,offset:28}]),f=i(e),h=a(e,[{buffer:f,size:4,stride:20,offset:0},{buffer:f,size:1,stride:20,offset:16}]),p=i(e),d=a(e,[{buffer:p,size:2,type:e.FLOAT}]),g=o(e,1,256,e.RGBA,e.UNSIGNED_BYTE);g.minFilter=e.LINEAR,g.magFilter=e.LINEAR;var m=new A(e,[0,0],[[0,0,0],[0,0,0]],r,n,c,u,g,s,l,f,h,p,d,[0,0,0]),v={levels:[[],[],[]]};for(var w in t)v[w]=t[w];return v.colormap=v.colormap||&quot;jet&quot;,m.update(v),m};var n=t(&quot;bit-twiddle&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;typedarray-pool&quot;),l=t(&quot;colormap&quot;),c=t(&quot;ndarray-ops&quot;),u=t(&quot;ndarray-pack&quot;),f=t(&quot;ndarray&quot;),h=t(&quot;surface-nets&quot;),p=t(&quot;gl-mat4/multiply&quot;),d=t(&quot;gl-mat4/invert&quot;),g=t(&quot;binary-search-bounds&quot;),m=t(&quot;ndarray-gradient&quot;),v=t(&quot;./lib/shaders&quot;),y=v.createShader,x=v.createContourShader,b=v.createPickShader,_=v.createPickContourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],k=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];function M(t,e,r,n,i){this.position=t,this.index=e,this.uv=r,this.level=n,this.dataCoordinate=i}!function(){for(var t=0;t&lt;3;++t){var e=k[t],r=(t+2)%3;e[(t+1)%3+0]=1,e[r+3]=1,e[t+6]=1}}();function A(t,e,r,n,i,a,o,l,c,u,h,p,d,g,m){this.gl=t,this.shape=e,this.bounds=r,this.objectOffset=m,this.intensityBounds=[],this._shader=n,this._pickShader=i,this._coordinateBuffer=a,this._vao=o,this._colorMap=l,this._contourShader=c,this._contourPickShader=u,this._contourBuffer=h,this._contourVAO=p,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new M([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=d,this._dynamicVAO=g,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var S=A.prototype;S.genColormap=function(t,e){var r=!1,n=u([l({colormap:t,nshades:256,format:&quot;rgba&quot;}).map((function(t,n){var i=e?function(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;r&lt;e.length;++r){if(e.length&lt;2)return 1;if(e[r][0]===t)return e[r][1];if(e[r][0]&gt;t&amp;&amp;r&gt;0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}(n/255,e):t[3];return i&lt;1&amp;&amp;(r=!0),[t[0],t[1],t[2],255*i]}))]);return c.divseq(n,255),this.hasAlphaScale=r,n},S.isTransparent=function(){return this.opacity&lt;1||this.hasAlphaScale},S.isOpaque=function(){return!this.isTransparent()},S.pickSlots=1,S.setPickBase=function(t){this.pickId=t};var E=[0,0,0],C={showSurface:!1,showContour:!1,projections:[w.slice(),w.slice(),w.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function L(t,e){var r,n,i,a=e.axes&amp;&amp;e.axes.lastCubeProps.axis||E,o=e.showSurface,s=e.showContour;for(r=0;r&lt;3;++r)for(o=o||e.surfaceProject[r],n=0;n&lt;3;++n)s=s||e.contourProject[r][n];for(r=0;r&lt;3;++r){var l=C.projections[r];for(n=0;n&lt;16;++n)l[n]=0;for(n=0;n&lt;4;++n)l[5*n]=1;l[5*r]=0,l[12+r]=e.axesBounds[+(a[r]&gt;0)][r],p(l,t.model,l);var c=C.clipBounds[r];for(i=0;i&lt;2;++i)for(n=0;n&lt;3;++n)c[i][n]=t.clipBounds[i][n];c[0][r]=-1e8,c[1][r]=1e8}return C.showSurface=o,C.showContour=s,C}var I={model:w,view:w,projection:w,inverseModel:w.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},P=w.slice(),z=[1,0,0,0,1,0,0,0,1];function O(t,e){t=t||{};var r=this.gl;r.disable(r.CULL_FACE),this._colorMap.bind(0);var n=I;n.model=t.model||w,n.view=t.view||w,n.projection=t.projection||w,n.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],n.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],n.objectOffset=this.objectOffset,n.contourColor=this.contourColor[0],n.inverseModel=d(n.inverseModel,n.model);for(var i=0;i&lt;2;++i)for(var a=n.clipBounds[i],o=0;o&lt;3;++o)a[o]=Math.min(Math.max(this.clipBounds[i][o],-1e8),1e8);n.kambient=this.ambientLight,n.kdiffuse=this.diffuseLight,n.kspecular=this.specularLight,n.roughness=this.roughness,n.fresnel=this.fresnel,n.opacity=this.opacity,n.height=0,n.permutation=z,n.vertexColor=this.vertexColor;var s=P;for(p(s,n.view,n.model),p(s,n.projection,s),d(s,s),i=0;i&lt;3;++i)n.eyePosition[i]=s[12+i]/s[15];var l=s[15];for(i=0;i&lt;3;++i)l+=this.lightPosition[i]*s[4*i+3];for(i=0;i&lt;3;++i){var c=s[12+i];for(o=0;o&lt;3;++o)c+=s[4*o+i]*this.lightPosition[o];n.lightPosition[i]=c/l}var u=L(n,this);if(u.showSurface){for(this._shader.bind(),this._shader.uniforms=n,this._vao.bind(),this.showSurface&amp;&amp;this._vertexCount&amp;&amp;this._vao.draw(r.TRIANGLES,this._vertexCount),i=0;i&lt;3;++i)this.surfaceProject[i]&amp;&amp;this.vertexCount&amp;&amp;(this._shader.uniforms.model=u.projections[i],this._shader.uniforms.clipBounds=u.clipBounds[i],this._vao.draw(r.TRIANGLES,this._vertexCount));this._vao.unbind()}if(u.showContour){var f=this._contourShader;n.kambient=1,n.kdiffuse=0,n.kspecular=0,n.opacity=1,f.bind(),f.uniforms=n;var h=this._contourVAO;for(h.bind(),i=0;i&lt;3;++i)for(f.uniforms.permutation=k[i],r.lineWidth(this.contourWidth[i]*this.pixelRatio),o=0;o&lt;this.contourLevels[i].length;++o)o===this.highlightLevel[i]?(f.uniforms.contourColor=this.highlightColor[i],f.uniforms.contourTint=this.highlightTint[i]):0!==o&amp;&amp;o-1!==this.highlightLevel[i]||(f.uniforms.contourColor=this.contourColor[i],f.uniforms.contourTint=this.contourTint[i]),this._contourCounts[i][o]&amp;&amp;(f.uniforms.height=this.contourLevels[i][o],h.draw(r.LINES,this._contourCounts[i][o],this._contourOffsets[i][o]));for(i=0;i&lt;3;++i)for(f.uniforms.model=u.projections[i],f.uniforms.clipBounds=u.clipBounds[i],o=0;o&lt;3;++o)if(this.contourProject[i][o]){f.uniforms.permutation=k[o],r.lineWidth(this.contourWidth[o]*this.pixelRatio);for(var g=0;g&lt;this.contourLevels[o].length;++g)g===this.highlightLevel[o]?(f.uniforms.contourColor=this.highlightColor[o],f.uniforms.contourTint=this.highlightTint[o]):0!==g&amp;&amp;g-1!==this.highlightLevel[o]||(f.uniforms.contourColor=this.contourColor[o],f.uniforms.contourTint=this.contourTint[o]),this._contourCounts[o][g]&amp;&amp;(f.uniforms.height=this.contourLevels[o][g],h.draw(r.LINES,this._contourCounts[o][g],this._contourOffsets[o][g]))}for(h.unbind(),(h=this._dynamicVAO).bind(),i=0;i&lt;3;++i)if(0!==this._dynamicCounts[i])for(f.uniforms.model=n.model,f.uniforms.clipBounds=n.clipBounds,f.uniforms.permutation=k[i],r.lineWidth(this.dynamicWidth[i]*this.pixelRatio),f.uniforms.contourColor=this.dynamicColor[i],f.uniforms.contourTint=this.dynamicTint[i],f.uniforms.height=this.dynamicLevel[i],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]),o=0;o&lt;3;++o)this.contourProject[o][i]&amp;&amp;(f.uniforms.model=u.projections[o],f.uniforms.clipBounds=u.clipBounds[o],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]));h.unbind()}}S.draw=function(t){return O.call(this,t,!1)},S.drawTransparent=function(t){return O.call(this,t,!0)};var D={model:w,view:w,projection:w,inverseModel:w,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,objectOffset:[0,0,0],permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};function R(t,e){return Array.isArray(t)?[e(t[0]),e(t[1]),e(t[2])]:[e(t),e(t),e(t)]}function F(t){return Array.isArray(t)?3===t.length?[t[0],t[1],t[2],1]:[t[0],t[1],t[2],t[3]]:[0,0,0,1]}function B(t){if(Array.isArray(t)){if(Array.isArray(t))return[F(t[0]),F(t[1]),F(t[2])];var e=F(t);return[e.slice(),e.slice(),e.slice()]}}S.drawPick=function(t){t=t||{};var e=this.gl;e.disable(e.CULL_FACE);var r=D;r.model=t.model||w,r.view=t.view||w,r.projection=t.projection||w,r.shape=this._field[2].shape,r.pickId=this.pickId/255,r.lowerBound=this.bounds[0],r.upperBound=this.bounds[1],r.objectOffset=this.objectOffset,r.permutation=z;for(var n=0;n&lt;2;++n)for(var i=r.clipBounds[n],a=0;a&lt;3;++a)i[a]=Math.min(Math.max(this.clipBounds[n][a],-1e8),1e8);var o=L(r,this);if(o.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=r,this._vao.bind(),this._vao.draw(e.TRIANGLES,this._vertexCount),n=0;n&lt;3;++n)this.surfaceProject[n]&amp;&amp;(this._pickShader.uniforms.model=o.projections[n],this._pickShader.uniforms.clipBounds=o.clipBounds[n],this._vao.draw(e.TRIANGLES,this._vertexCount));this._vao.unbind()}if(o.showContour){var s=this._contourPickShader;s.bind(),s.uniforms=r;var l=this._contourVAO;for(l.bind(),a=0;a&lt;3;++a)for(e.lineWidth(this.contourWidth[a]*this.pixelRatio),s.uniforms.permutation=k[a],n=0;n&lt;this.contourLevels[a].length;++n)this._contourCounts[a][n]&amp;&amp;(s.uniforms.height=this.contourLevels[a][n],l.draw(e.LINES,this._contourCounts[a][n],this._contourOffsets[a][n]));for(n=0;n&lt;3;++n)for(s.uniforms.model=o.projections[n],s.uniforms.clipBounds=o.clipBounds[n],a=0;a&lt;3;++a)if(this.contourProject[n][a]){s.uniforms.permutation=k[a],e.lineWidth(this.contourWidth[a]*this.pixelRatio);for(var c=0;c&lt;this.contourLevels[a].length;++c)this._contourCounts[a][c]&amp;&amp;(s.uniforms.height=this.contourLevels[a][c],l.draw(e.LINES,this._contourCounts[a][c],this._contourOffsets[a][c]))}l.unbind()}},S.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=this._field[2].shape,r=this._pickResult,n=e[0]*(t.value[0]+(t.value[2]&gt;&gt;4)/16)/255,i=Math.floor(n),a=n-i,o=e[1]*(t.value[1]+(15&amp;t.value[2])/16)/255,s=Math.floor(o),l=o-s;i+=1,s+=1;var c=r.position;c[0]=c[1]=c[2]=0;for(var u=0;u&lt;2;++u)for(var f=u?a:1-a,h=0;h&lt;2;++h)for(var p=i+u,d=s+h,m=f*(h?l:1-l),v=0;v&lt;3;++v)c[v]+=this._field[v].get(p,d)*m;for(var y=this._pickResult.level,x=0;x&lt;3;++x)if(y[x]=g.le(this.contourLevels[x],c[x]),y[x]&lt;0)this.contourLevels[x].length&gt;0&amp;&amp;(y[x]=0);else if(y[x]&lt;this.contourLevels[x].length-1){var b=this.contourLevels[x][y[x]],_=this.contourLevels[x][y[x]+1];Math.abs(b-c[x])&gt;Math.abs(_-c[x])&amp;&amp;(y[x]+=1)}for(r.index[0]=a&lt;.5?i:i+1,r.index[1]=l&lt;.5?s:s+1,r.uv[0]=n/e[0],r.uv[1]=o/e[1],v=0;v&lt;3;++v)r.dataCoordinate[v]=this._field[v].get(r.index[0],r.index[1]);return r},S.padField=function(t,e){var r=e.shape.slice(),n=t.shape.slice();c.assign(t.lo(1,1).hi(r[0],r[1]),e),c.assign(t.lo(1).hi(r[0],1),e.hi(r[0],1)),c.assign(t.lo(1,n[1]-1).hi(r[0],1),e.lo(0,r[1]-1).hi(r[0],1)),c.assign(t.lo(0,1).hi(1,r[1]),e.hi(1)),c.assign(t.lo(n[0]-1,1).hi(1,r[1]),e.lo(r[0]-1)),t.set(0,0,e.get(0,0)),t.set(0,n[1]-1,e.get(0,r[1]-1)),t.set(n[0]-1,0,e.get(r[0]-1,0)),t.set(n[0]-1,n[1]-1,e.get(r[0]-1,r[1]-1))},S.update=function(t){t=t||{},this.objectOffset=t.objectOffset||this.objectOffset,this.dirty=!0,&quot;contourWidth&quot;in t&amp;&amp;(this.contourWidth=R(t.contourWidth,Number)),&quot;showContour&quot;in t&amp;&amp;(this.showContour=R(t.showContour,Boolean)),&quot;showSurface&quot;in t&amp;&amp;(this.showSurface=!!t.showSurface),&quot;contourTint&quot;in t&amp;&amp;(this.contourTint=R(t.contourTint,Boolean)),&quot;contourColor&quot;in t&amp;&amp;(this.contourColor=B(t.contourColor)),&quot;contourProject&quot;in t&amp;&amp;(this.contourProject=R(t.contourProject,(function(t){return R(t,Boolean)}))),&quot;surfaceProject&quot;in t&amp;&amp;(this.surfaceProject=t.surfaceProject),&quot;dynamicColor&quot;in t&amp;&amp;(this.dynamicColor=B(t.dynamicColor)),&quot;dynamicTint&quot;in t&amp;&amp;(this.dynamicTint=R(t.dynamicTint,Number)),&quot;dynamicWidth&quot;in t&amp;&amp;(this.dynamicWidth=R(t.dynamicWidth,Number)),&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity),&quot;opacityscale&quot;in t&amp;&amp;(this.opacityscale=t.opacityscale),&quot;colorBounds&quot;in t&amp;&amp;(this.colorBounds=t.colorBounds),&quot;vertexColor&quot;in t&amp;&amp;(this.vertexColor=t.vertexColor?1:0),&quot;colormap&quot;in t&amp;&amp;this._colorMap.setPixels(this.genColormap(t.colormap,this.opacityscale));var e=t.field||t.coords&amp;&amp;t.coords[2]||null,r=!1;if(e||(e=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),&quot;field&quot;in t||&quot;coords&quot;in t){var i=(e.shape[0]+2)*(e.shape[1]+2);i&gt;this._field[2].data.length&amp;&amp;(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(n.nextPow2(i))),this._field[2]=f(this._field[2].data,[e.shape[0]+2,e.shape[1]+2]),this.padField(this._field[2],e),this.shape=e.shape.slice();for(var a=this.shape,o=0;o&lt;2;++o)this._field[2].size&gt;this._field[o].data.length&amp;&amp;(s.freeFloat(this._field[o].data),this._field[o].data=s.mallocFloat(this._field[2].size)),this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2]);if(t.coords){var l=t.coords;if(!Array.isArray(l)||3!==l.length)throw new Error(&quot;gl-surface: invalid coordinates for x/y&quot;);for(o=0;o&lt;2;++o){var c=l[o];for(v=0;v&lt;2;++v)if(c.shape[v]!==a[v])throw new Error(&quot;gl-surface: coords have incorrect shape&quot;);this.padField(this._field[o],c)}}else if(t.ticks){var u=t.ticks;if(!Array.isArray(u)||2!==u.length)throw new Error(&quot;gl-surface: invalid ticks&quot;);for(o=0;o&lt;2;++o){var p=u[o];if((Array.isArray(p)||p.length)&amp;&amp;(p=f(p)),p.shape[0]!==a[o])throw new Error(&quot;gl-surface: invalid tick length&quot;);var d=f(p.data,a);d.stride[o]=p.stride[0],d.stride[1^o]=0,this.padField(this._field[o],d)}}else{for(o=0;o&lt;2;++o){var g=[0,0];g[o]=1,this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2],g,0)}this._field[0].set(0,0,0);for(var v=0;v&lt;a[0];++v)this._field[0].set(v+1,0,v);for(this._field[0].set(a[0]+1,0,a[0]-1),this._field[1].set(0,0,0),v=0;v&lt;a[1];++v)this._field[1].set(0,v+1,v);this._field[1].set(0,a[1]+1,a[1]-1)}var y=this._field,x=f(s.mallocFloat(3*y[2].size*2),[3,a[0]+2,a[1]+2,2]);for(o=0;o&lt;3;++o)m(x.pick(o),y[o],&quot;mirror&quot;);var b=f(s.mallocFloat(3*y[2].size),[a[0]+2,a[1]+2,3]);for(o=0;o&lt;a[0]+2;++o)for(v=0;v&lt;a[1]+2;++v){var _=x.get(0,o,v,0),w=x.get(0,o,v,1),k=x.get(1,o,v,0),M=x.get(1,o,v,1),A=x.get(2,o,v,0),S=x.get(2,o,v,1),E=k*S-M*A,C=A*w-S*_,L=_*M-w*k,I=Math.sqrt(E*E+C*C+L*L);I&lt;1e-8?(I=Math.max(Math.abs(E),Math.abs(C),Math.abs(L)))&lt;1e-8?(L=1,C=E=0,I=1):I=1/I:I=1/Math.sqrt(I),b.set(o,v,0,E*I),b.set(o,v,1,C*I),b.set(o,v,2,L*I)}s.free(x.data);var P=[1/0,1/0,1/0],z=[-1/0,-1/0,-1/0],O=1/0,D=-1/0,F=(a[0]-1)*(a[1]-1)*6,N=s.mallocFloat(n.nextPow2(10*F)),j=0,U=0;for(o=0;o&lt;a[0]-1;++o)t:for(v=0;v&lt;a[1]-1;++v){for(var V=0;V&lt;2;++V)for(var q=0;q&lt;2;++q)for(var H=0;H&lt;3;++H){var G=this._field[H].get(1+o+V,1+v+q);if(isNaN(G)||!isFinite(G))continue t}for(H=0;H&lt;6;++H){var Y=o+T[H][0],W=v+T[H][1],X=this._field[0].get(Y+1,W+1),Z=this._field[1].get(Y+1,W+1);G=this._field[2].get(Y+1,W+1),E=b.get(Y+1,W+1,0),C=b.get(Y+1,W+1,1),L=b.get(Y+1,W+1,2),t.intensity&amp;&amp;(J=t.intensity.get(Y,W));var J=t.intensity?t.intensity.get(Y,W):G+this.objectOffset[2];N[j++]=Y,N[j++]=W,N[j++]=X,N[j++]=Z,N[j++]=G,N[j++]=0,N[j++]=J,N[j++]=E,N[j++]=C,N[j++]=L,P[0]=Math.min(P[0],X+this.objectOffset[0]),P[1]=Math.min(P[1],Z+this.objectOffset[1]),P[2]=Math.min(P[2],G+this.objectOffset[2]),O=Math.min(O,J),z[0]=Math.max(z[0],X+this.objectOffset[0]),z[1]=Math.max(z[1],Z+this.objectOffset[1]),z[2]=Math.max(z[2],G+this.objectOffset[2]),D=Math.max(D,J),U+=1}}for(t.intensityBounds&amp;&amp;(O=+t.intensityBounds[0],D=+t.intensityBounds[1]),o=6;o&lt;j;o+=10)N[o]=(N[o]-O)/(D-O);this._vertexCount=U,this._coordinateBuffer.update(N.subarray(0,j)),s.freeFloat(N),s.free(b.data),this.bounds=[P,z],this.intensity=t.intensity||this._field[2],this.intensityBounds[0]===O&amp;&amp;this.intensityBounds[1]===D||(r=!0),this.intensityBounds=[O,D]}if(&quot;levels&quot;in t){var K=t.levels;for(K=Array.isArray(K[0])?K.slice():[[],[],K],o=0;o&lt;3;++o)K[o]=K[o].slice(),K[o].sort((function(t,e){return t-e}));for(o=0;o&lt;3;++o)for(v=0;v&lt;K[o].length;++v)K[o][v]-=this.objectOffset[o];t:for(o=0;o&lt;3;++o){if(K[o].length!==this.contourLevels[o].length){r=!0;break}for(v=0;v&lt;K[o].length;++v)if(K[o][v]!==this.contourLevels[o][v]){r=!0;break t}}this.contourLevels=K}if(r){y=this._field,a=this.shape;for(var Q=[],$=0;$&lt;3;++$){var tt=this.contourLevels[$],et=[],rt=[],nt=[0,0,0];for(o=0;o&lt;tt.length;++o){var it=h(this._field[$],tt[o]);et.push(Q.length/5|0),U=0;t:for(v=0;v&lt;it.cells.length;++v){var at=it.cells[v];for(H=0;H&lt;2;++H){var ot=it.positions[at[H]],st=ot[0],lt=0|Math.floor(st),ct=st-lt,ut=ot[1],ft=0|Math.floor(ut),ht=ut-ft,pt=!1;e:for(var dt=0;dt&lt;3;++dt){nt[dt]=0;var gt=($+dt+1)%3;for(V=0;V&lt;2;++V){var mt=V?ct:1-ct;for(Y=0|Math.min(Math.max(lt+V,0),a[0]),q=0;q&lt;2;++q){var vt=q?ht:1-ht;if(W=0|Math.min(Math.max(ft+q,0),a[1]),G=dt&lt;2?this._field[gt].get(Y,W):(this.intensity.get(Y,W)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(G)||isNaN(G)){pt=!0;break e}var yt=mt*vt;nt[dt]+=yt*G}}}if(pt){if(H&gt;0){for(var xt=0;xt&lt;5;++xt)Q.pop();U-=1}continue t}Q.push(nt[0],nt[1],ot[0],ot[1],nt[2]),U+=1}}rt.push(U)}this._contourOffsets[$]=et,this._contourCounts[$]=rt}var bt=s.mallocFloat(Q.length);for(o=0;o&lt;Q.length;++o)bt[o]=Q[o];this._contourBuffer.update(bt),s.freeFloat(bt)}},S.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var t=0;t&lt;3;++t)s.freeFloat(this._field[t].data)},S.highlight=function(t){var e,r;if(!t)return this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],void(this.highlightLevel=[-1,-1,-1]);for(e=0;e&lt;3;++e)this.enableHighlight[e]?this.highlightLevel[e]=t.level[e]:this.highlightLevel[e]=-1;for(r=this.snapToData?t.dataCoordinate:t.position,e=0;e&lt;3;++e)r[e]-=this.objectOffset[e];if(this.enableDynamic[0]&amp;&amp;r[0]!==this.dynamicLevel[0]||this.enableDynamic[1]&amp;&amp;r[1]!==this.dynamicLevel[1]||this.enableDynamic[2]&amp;&amp;r[2]!==this.dynamicLevel[2]){for(var n=0,i=this.shape,a=s.mallocFloat(12*i[0]*i[1]),o=0;o&lt;3;++o)if(this.enableDynamic[o]){this.dynamicLevel[o]=r[o];var l=(o+1)%3,c=(o+2)%3,u=this._field[o],f=this._field[l],p=this._field[c],d=h(u,r[o]),g=d.cells,m=d.positions;for(this._dynamicOffsets[o]=n,e=0;e&lt;g.length;++e)for(var v=g[e],y=0;y&lt;2;++y){var x=m[v[y]],b=+x[0],_=0|b,w=0|Math.min(_+1,i[0]),T=b-_,k=1-T,M=+x[1],A=0|M,S=0|Math.min(A+1,i[1]),E=M-A,C=1-E,L=k*C,I=k*E,P=T*C,z=T*E,O=L*f.get(_,A)+I*f.get(_,S)+P*f.get(w,A)+z*f.get(w,S),D=L*p.get(_,A)+I*p.get(_,S)+P*p.get(w,A)+z*p.get(w,S);if(isNaN(O)||isNaN(D)){y&amp;&amp;(n-=1);break}a[2*n+0]=O,a[2*n+1]=D,n+=1}this._dynamicCounts[o]=n-this._dynamicOffsets[o]}else this.dynamicLevel[o]=NaN,this._dynamicCounts[o]=0;this._dynamicBuffer.update(a.subarray(0,2*n)),s.freeFloat(a)}}},{&quot;./lib/shaders&quot;:349,&quot;binary-search-bounds&quot;:96,&quot;bit-twiddle&quot;:97,colormap:131,&quot;gl-buffer&quot;:259,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/multiply&quot;:295,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495,&quot;ndarray-gradient&quot;:488,&quot;ndarray-ops&quot;:490,&quot;ndarray-pack&quot;:491,&quot;surface-nets&quot;:570,&quot;typedarray-pool&quot;:595}],352:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font&quot;),i=t(&quot;pick-by-alias&quot;),a=t(&quot;regl&quot;),o=t(&quot;gl-util/context&quot;),s=t(&quot;es6-weak-map&quot;),l=t(&quot;color-normalize&quot;),c=t(&quot;font-atlas&quot;),u=t(&quot;typedarray-pool&quot;),f=t(&quot;parse-rect&quot;),h=t(&quot;is-plain-obj&quot;),p=t(&quot;parse-unit&quot;),d=t(&quot;to-px&quot;),g=t(&quot;detect-kerning&quot;),m=t(&quot;object-assign&quot;),v=t(&quot;font-measure&quot;),y=t(&quot;flatten-vertex-data&quot;),x=t(&quot;bit-twiddle&quot;).nextPow2,b=new s,_=!1;if(document.body){var w=document.body.appendChild(document.createElement(&quot;div&quot;));w.style.font=&quot;italic small-caps bold condensed 16px/2 cursive&quot;,getComputedStyle(w).fontStretch&amp;&amp;(_=!0),document.body.removeChild(w)}var T=function(t){!function(t){return&quot;function&quot;==typeof t&amp;&amp;t._gl&amp;&amp;t.prop&amp;&amp;t.texture&amp;&amp;t.buffer}(t)?this.gl=o(t):(t={regl:t},this.gl=t.regl._gl),this.shader=b.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||a({gl:this.gl}),this.charBuffer=this.regl.buffer({type:&quot;uint8&quot;,usage:&quot;stream&quot;}),this.sizeBuffer=this.regl.buffer({type:&quot;float&quot;,usage:&quot;stream&quot;}),this.shader||(this.shader=this.createShader(),b.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(t)?t:{})};T.prototype.createShader=function(){var t=this.regl,e=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},stencil:{enable:!1},depth:{enable:!1},count:t.prop(&quot;count&quot;),offset:t.prop(&quot;offset&quot;),attributes:{charOffset:{offset:4,stride:8,buffer:t.this(&quot;sizeBuffer&quot;)},width:{offset:0,stride:8,buffer:t.this(&quot;sizeBuffer&quot;)},char:t.this(&quot;charBuffer&quot;),position:t.this(&quot;position&quot;)},uniforms:{atlasSize:function(t,e){return[e.atlas.width,e.atlas.height]},atlasDim:function(t,e){return[e.atlas.cols,e.atlas.rows]},atlas:function(t,e){return e.atlas.texture},charStep:function(t,e){return e.atlas.step},em:function(t,e){return e.atlas.em},color:t.prop(&quot;color&quot;),opacity:t.prop(&quot;opacity&quot;),viewport:t.this(&quot;viewportArray&quot;),scale:t.this(&quot;scale&quot;),align:t.prop(&quot;align&quot;),baseline:t.prop(&quot;baseline&quot;),translate:t.this(&quot;translate&quot;),positionOffset:t.prop(&quot;positionOffset&quot;)},primitive:&quot;points&quot;,viewport:t.this(&quot;viewport&quot;),vert:&quot;\n\t\t\tprecision highp float;\n\t\t\tattribute float width, charOffset, char;\n\t\t\tattribute vec2 position;\n\t\t\tuniform float fontSize, charStep, em, align, baseline;\n\t\t\tuniform vec4 viewport;\n\t\t\tuniform vec4 color;\n\t\t\tuniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvoid main () {\n\t\t\t\t&quot;+(T.normalViewport?&quot;&quot;:&quot;vec2 positionOffset = vec2(positionOffset.x,- positionOffset.y);&quot;)+&quot;\n\n\t\t\t\tvec2 offset = floor(em * (vec2(align + charOffset, baseline)\n\t\t\t\t\t+ positionOffset))\n\t\t\t\t\t/ (viewport.zw * scale.xy);\n\n\t\t\t\tvec2 position = (position + translate) * scale;\n\t\t\t\tposition += offset * scale;\n\n\t\t\t\t&quot;+(T.normalViewport?&quot;position.y = 1. - position.y;&quot;:&quot;&quot;)+&quot;\n\n\t\t\t\tcharCoord = position * viewport.zw + viewport.xy;\n\n\t\t\t\tgl_Position = vec4(position * 2. - 1., 0, 1);\n\n\t\t\t\tgl_PointSize = charStep;\n\n\t\t\t\tcharId.x = mod(char, atlasDim.x);\n\t\t\t\tcharId.y = floor(char / atlasDim.x);\n\n\t\t\t\tcharWidth = width * em;\n\n\t\t\t\tfontColor = color / 255.;\n\t\t\t}&quot;,frag:&quot;\n\t\t\tprecision highp float;\n\t\t\tuniform sampler2D atlas;\n\t\t\tuniform float fontSize, charStep, opacity;\n\t\t\tuniform vec2 atlasSize;\n\t\t\tuniform vec4 viewport;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\n\t\t\tfloat lightness(vec4 color) {\n\t\t\t\treturn color.r * 0.299 + color.g * 0.587 + color.b * 0.114;\n\t\t\t}\n\n\t\t\tvoid main () {\n\t\t\t\tvec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;\n\t\t\t\tfloat halfCharStep = floor(charStep * .5 + .5);\n\n\t\t\t\t// invert y and shift by 1px (FF expecially needs that)\n\t\t\t\tuv.y = charStep - uv.y;\n\n\t\t\t\t// ignore points outside of character bounding box\n\t\t\t\tfloat halfCharWidth = ceil(charWidth * .5);\n\t\t\t\tif (floor(uv.x) &gt; halfCharStep + halfCharWidth ||\n\t\t\t\t\tfloor(uv.x) &lt; halfCharStep - halfCharWidth) return;\n\n\t\t\t\tuv += charId * charStep;\n\t\t\t\tuv = uv / atlasSize;\n\n\t\t\t\tvec4 color = fontColor;\n\t\t\t\tvec4 mask = texture2D(atlas, uv);\n\n\t\t\t\tfloat maskY = lightness(mask);\n\t\t\t\t// float colorY = lightness(color);\n\t\t\t\tcolor.a *= maskY;\n\t\t\t\tcolor.a *= opacity;\n\n\t\t\t\t// color.a += .1;\n\n\t\t\t\t// antialiasing, see yiq color space y-channel formula\n\t\t\t\t// color.rgb += (1. - color.rgb) * (1. - mask.rgb);\n\n\t\t\t\tgl_FragColor = color;\n\t\t\t}&quot;});return{regl:t,draw:e,atlas:{}}},T.prototype.update=function(t){var e=this;if(&quot;string&quot;==typeof t)t={text:t};else if(!t)return;null!=(t=i(t,{position:&quot;position positions coord coords coordinates&quot;,font:&quot;font fontFace fontface typeface cssFont css-font family fontFamily&quot;,fontSize:&quot;fontSize fontsize size font-size&quot;,text:&quot;text texts chars characters value values symbols&quot;,align:&quot;align alignment textAlign textbaseline&quot;,baseline:&quot;baseline textBaseline textbaseline&quot;,direction:&quot;dir direction textDirection&quot;,color:&quot;color colour fill fill-color fillColor textColor textcolor&quot;,kerning:&quot;kerning kern&quot;,range:&quot;range dataBox&quot;,viewport:&quot;vp viewport viewBox viewbox viewPort&quot;,opacity:&quot;opacity alpha transparency visible visibility opaque&quot;,offset:&quot;offset positionOffset padding shift indent indentation&quot;},!0)).opacity&amp;&amp;(Array.isArray(t.opacity)?this.opacity=t.opacity.map((function(t){return parseFloat(t)})):this.opacity=parseFloat(t.opacity)),null!=t.viewport&amp;&amp;(this.viewport=f(t.viewport),T.normalViewport&amp;&amp;(this.viewport.y=this.canvas.height-this.viewport.y-this.viewport.height),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null==this.viewport&amp;&amp;(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null!=t.kerning&amp;&amp;(this.kerning=t.kerning),null!=t.offset&amp;&amp;(&quot;number&quot;==typeof t.offset&amp;&amp;(t.offset=[t.offset,0]),this.positionOffset=y(t.offset)),t.direction&amp;&amp;(this.direction=t.direction),t.range&amp;&amp;(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&amp;&amp;(this.scale=t.scale),t.translate&amp;&amp;(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),this.font.length||t.font||(t.font=T.baseFontSize+&quot;px sans-serif&quot;);var r,a=!1,o=!1;if(t.font&amp;&amp;(Array.isArray(t.font)?t.font:[t.font]).forEach((function(t,r){if(&quot;string&quot;==typeof t)try{t=n.parse(t)}catch(e){t=n.parse(T.baseFontSize+&quot;px &quot;+t)}else t=n.parse(n.stringify(t));var i=n.stringify({size:T.baseFontSize,family:t.family,stretch:_?t.stretch:void 0,variant:t.variant,weight:t.weight,style:t.style}),s=p(t.size),l=Math.round(s[0]*d(s[1]));if(l!==e.fontSize[r]&amp;&amp;(o=!0,e.fontSize[r]=l),!(e.font[r]&amp;&amp;i==e.font[r].baseString||(a=!0,e.font[r]=T.fonts[i],e.font[r]))){var c=t.family.join(&quot;, &quot;),u=[t.style];t.style!=t.variant&amp;&amp;u.push(t.variant),t.variant!=t.weight&amp;&amp;u.push(t.weight),_&amp;&amp;t.weight!=t.stretch&amp;&amp;u.push(t.stretch),e.font[r]={baseString:i,family:c,weight:t.weight,stretch:t.stretch,style:t.style,variant:t.variant,width:{},kerning:{},metrics:v(c,{origin:&quot;top&quot;,fontSize:T.baseFontSize,fontStyle:u.join(&quot; &quot;)})},T.fonts[i]=e.font[r]}})),(a||o)&amp;&amp;this.font.forEach((function(r,i){var a=n.stringify({size:e.fontSize[i],family:r.family,stretch:_?r.stretch:void 0,variant:r.variant,weight:r.weight,style:r.style});if(e.fontAtlas[i]=e.shader.atlas[a],!e.fontAtlas[i]){var o=r.metrics;e.shader.atlas[a]=e.fontAtlas[i]={fontString:a,step:2*Math.ceil(e.fontSize[i]*o.bottom*.5),em:e.fontSize[i],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:e.regl.texture()}}null==t.text&amp;&amp;(t.text=e.text)})),&quot;string&quot;==typeof t.text&amp;&amp;t.position&amp;&amp;t.position.length&gt;2){for(var s=Array(.5*t.position.length),h=0;h&lt;s.length;h++)s[h]=t.text;t.text=s}if(null!=t.text||a){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var b=1;b&lt;t.text.length;b++)this.textOffsets[b]=this.textOffsets[b-1]+t.text[b-1].length,this.count+=t.text[b].length,this.counts.push(t.text[b].length);this.text=t.text.join(&quot;&quot;)}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];r=[],this.font.forEach((function(t,n){T.atlasContext.font=t.baseString;for(var i=e.fontAtlas[n],a=0;a&lt;e.text.length;a++){var o=e.text.charAt(a);if(null==i.ids[o]&amp;&amp;(i.ids[o]=i.chars.length,i.chars.push(o),r.push(o)),null==t.width[o]&amp;&amp;(t.width[o]=T.atlasContext.measureText(o).width/T.baseFontSize,e.kerning)){var s=[];for(var l in t.width)s.push(l+o,o+l);m(t.kerning,g(t.family,{pairs:s}))}}}))}if(t.position)if(t.position.length&gt;2){for(var w=!t.position[0].length,k=u.mallocFloat(2*this.count),M=0,A=0;M&lt;this.counts.length;M++){var S=this.counts[M];if(w)for(var E=0;E&lt;S;E++)k[A++]=t.position[2*M],k[A++]=t.position[2*M+1];else for(var C=0;C&lt;S;C++)k[A++]=t.position[M][0],k[A++]=t.position[M][1]}this.position.call?this.position({type:&quot;float&quot;,data:k}):this.position=this.regl.buffer({type:&quot;float&quot;,data:k}),u.freeFloat(k)}else this.position.destroy&amp;&amp;this.position.destroy(),this.position={constant:t.position};if(t.text||a){var L=u.mallocUint8(this.count),I=u.mallocFloat(2*this.count);this.textWidth=[];for(var P=0,z=0;P&lt;this.counts.length;P++){for(var O=this.counts[P],D=this.font[P]||this.font[0],R=this.fontAtlas[P]||this.fontAtlas[0],F=0;F&lt;O;F++){var B=this.text.charAt(z),N=this.text.charAt(z-1);if(L[z]=R.ids[B],I[2*z]=D.width[B],F){var j=I[2*z-2],U=I[2*z],V=I[2*z-1]+.5*j+.5*U;if(this.kerning){var q=D.kerning[N+B];q&amp;&amp;(V+=.001*q)}I[2*z+1]=V}else I[2*z+1]=.5*I[2*z];z++}this.textWidth.push(I.length?.5*I[2*z-2]+I[2*z-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:L,type:&quot;uint8&quot;,usage:&quot;stream&quot;}),this.sizeBuffer({data:I,type:&quot;float&quot;,usage:&quot;stream&quot;}),u.freeUint8(L),u.freeFloat(I),r.length&amp;&amp;this.font.forEach((function(t,r){var n=e.fontAtlas[r],i=n.step,a=Math.floor(T.maxAtlasSize/i),o=Math.min(a,n.chars.length),s=Math.ceil(n.chars.length/o),l=x(o*i),u=x(s*i);n.width=l,n.height=u,n.rows=s,n.cols=o,n.em&amp;&amp;n.texture({data:c({canvas:T.atlasCanvas,font:n.fontString,chars:n.chars,shape:[l,u],step:[i,i]})})}))}if(t.align&amp;&amp;(this.align=t.align,this.alignOffset=this.textWidth.map((function(t,r){var n=Array.isArray(e.align)?e.align.length&gt;1?e.align[r]:e.align[0]:e.align;if(&quot;number&quot;==typeof n)return n;switch(n){case&quot;right&quot;:case&quot;end&quot;:return-t;case&quot;center&quot;:case&quot;centre&quot;:case&quot;middle&quot;:return.5*-t}return 0}))),null==this.baseline&amp;&amp;null==t.baseline&amp;&amp;(t.baseline=0),null!=t.baseline&amp;&amp;(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map((function(t,r){var n=(e.font[r]||e.font[0]).metrics,i=0;return i+=.5*n.bottom,i+=&quot;number&quot;==typeof t?t-n.baseline:-n[t],T.normalViewport||(i*=-1),i}))),null!=t.color)if(t.color||(t.color=&quot;transparent&quot;),&quot;string&quot;!=typeof t.color&amp;&amp;isNaN(t.color)){var H;if(&quot;number&quot;==typeof t.color[0]&amp;&amp;t.color.length&gt;this.counts.length){var G=t.color.length;H=u.mallocUint8(G);for(var Y=(t.color.subarray||t.color.slice).bind(t.color),W=0;W&lt;G;W+=4)H.set(l(Y(W,W+4),&quot;uint8&quot;),W)}else{var X=t.color.length;H=u.mallocUint8(4*X);for(var Z=0;Z&lt;X;Z++)H.set(l(t.color[Z]||0,&quot;uint8&quot;),4*Z)}this.color=H}else this.color=l(t.color,&quot;uint8&quot;);if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity)if(this.color.length&gt;4||this.baselineOffset.length&gt;1||this.align&amp;&amp;this.align.length&gt;1||this.fontAtlas.length&gt;1||this.positionOffset.length&gt;2){var J=Math.max(.5*this.position.length||0,.25*this.color.length||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,.5*this.positionOffset.length||0);this.batch=Array(J);for(var K=0;K&lt;this.batch.length;K++)this.batch[K]={count:this.counts.length&gt;1?this.counts[K]:this.counts[0],offset:this.textOffsets.length&gt;1?this.textOffsets[K]:this.textOffsets[0],color:this.color?this.color.length&lt;=4?this.color:this.color.subarray(4*K,4*K+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[K]:this.opacity,baseline:null!=this.baselineOffset[K]?this.baselineOffset[K]:this.baselineOffset[0],align:this.align?null!=this.alignOffset[K]?this.alignOffset[K]:this.alignOffset[0]:0,atlas:this.fontAtlas[K]||this.fontAtlas[0],positionOffset:this.positionOffset.length&gt;2?this.positionOffset.subarray(2*K,2*K+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]},T.prototype.destroy=function(){},T.prototype.kerning=!0,T.prototype.position={constant:new Float32Array(2)},T.prototype.translate=null,T.prototype.scale=null,T.prototype.font=null,T.prototype.text=&quot;&quot;,T.prototype.positionOffset=[0,0],T.prototype.opacity=1,T.prototype.color=new Uint8Array([0,0,0,255]),T.prototype.alignOffset=[0,0],T.normalViewport=!1,T.maxAtlasSize=1024,T.atlasCanvas=document.createElement(&quot;canvas&quot;),T.atlasContext=T.atlasCanvas.getContext(&quot;2d&quot;,{alpha:!1}),T.baseFontSize=64,T.fonts={},e.exports=T},{&quot;bit-twiddle&quot;:97,&quot;color-normalize&quot;:125,&quot;css-font&quot;:144,&quot;detect-kerning&quot;:172,&quot;es6-weak-map&quot;:233,&quot;flatten-vertex-data&quot;:244,&quot;font-atlas&quot;:245,&quot;font-measure&quot;:246,&quot;gl-util/context&quot;:354,&quot;is-plain-obj&quot;:469,&quot;object-assign&quot;:499,&quot;parse-rect&quot;:504,&quot;parse-unit&quot;:506,&quot;pick-by-alias&quot;:511,regl:540,&quot;to-px&quot;:578,&quot;typedarray-pool&quot;:595}],353:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ndarray&quot;),i=t(&quot;ndarray-ops&quot;),a=t(&quot;typedarray-pool&quot;);e.exports=function(t){if(arguments.length&lt;=1)throw new Error(&quot;gl-texture2d: Missing arguments for texture2d constructor&quot;);o||c(t);if(&quot;number&quot;==typeof arguments[1])return v(t,arguments[1],arguments[2],arguments[3]||t.RGBA,arguments[4]||t.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return v(t,0|arguments[1][0],0|arguments[1][1],arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(&quot;object&quot;==typeof arguments[1]){var e=arguments[1],r=u(e)?e:e.raw;if(r)return y(t,r,0|e.width,0|e.height,arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(e.shape&amp;&amp;e.data&amp;&amp;e.stride)return x(t,e)}throw new Error(&quot;gl-texture2d: Invalid arguments for texture2d constructor&quot;)};var o=null,s=null,l=null;function c(t){o=[t.LINEAR,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_NEAREST],s=[t.NEAREST,t.LINEAR,t.NEAREST_MIPMAP_NEAREST,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_LINEAR],l=[t.REPEAT,t.CLAMP_TO_EDGE,t.MIRRORED_REPEAT]}function u(t){return&quot;undefined&quot;!=typeof HTMLCanvasElement&amp;&amp;t instanceof HTMLCanvasElement||&quot;undefined&quot;!=typeof HTMLImageElement&amp;&amp;t instanceof HTMLImageElement||&quot;undefined&quot;!=typeof HTMLVideoElement&amp;&amp;t instanceof HTMLVideoElement||&quot;undefined&quot;!=typeof ImageData&amp;&amp;t instanceof ImageData}var f=function(t,e){i.muls(t,e,255)};function h(t,e,r){var n=t.gl,i=n.getParameter(n.MAX_TEXTURE_SIZE);if(e&lt;0||e&gt;i||r&lt;0||r&gt;i)throw new Error(&quot;gl-texture2d: Invalid texture size&quot;);return t._shape=[e,r],t.bind(),n.texImage2D(n.TEXTURE_2D,0,t.format,e,r,0,t.format,t.type,null),t._mipLevels=[0],t}function p(t,e,r,n,i,a){this.gl=t,this.handle=e,this.format=i,this.type=a,this._shape=[r,n],this._mipLevels=[0],this._magFilter=t.NEAREST,this._minFilter=t.NEAREST,this._wrapS=t.CLAMP_TO_EDGE,this._wrapT=t.CLAMP_TO_EDGE,this._anisoSamples=1;var o=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return o._wrapS},set:function(t){return o.wrapS=t}},{get:function(){return o._wrapT},set:function(t){return o.wrapT=t}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return o._shape[0]},set:function(t){return o.width=t}},{get:function(){return o._shape[1]},set:function(t){return o.height=t}}]),this._shapeVector=l}var d=p.prototype;function g(t,e){return 3===t.length?1===e[2]&amp;&amp;e[1]===t[0]*t[2]&amp;&amp;e[0]===t[2]:1===e[0]&amp;&amp;e[1]===t[0]}function m(t){var e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),e}function v(t,e,r,n,i){var a=t.getParameter(t.MAX_TEXTURE_SIZE);if(e&lt;0||e&gt;a||r&lt;0||r&gt;a)throw new Error(&quot;gl-texture2d: Invalid texture shape&quot;);if(i===t.FLOAT&amp;&amp;!t.getExtension(&quot;OES_texture_float&quot;))throw new Error(&quot;gl-texture2d: Floating point textures not supported on this platform&quot;);var o=m(t);return t.texImage2D(t.TEXTURE_2D,0,n,e,r,0,n,i,null),new p(t,o,e,r,n,i)}function y(t,e,r,n,i,a){var o=m(t);return t.texImage2D(t.TEXTURE_2D,0,i,i,a,e),new p(t,o,r,n,i,a)}function x(t,e){var r=e.dtype,o=e.shape.slice(),s=t.getParameter(t.MAX_TEXTURE_SIZE);if(o[0]&lt;0||o[0]&gt;s||o[1]&lt;0||o[1]&gt;s)throw new Error(&quot;gl-texture2d: Invalid texture size&quot;);var l=g(o,e.stride.slice()),c=0;&quot;float32&quot;===r?c=t.FLOAT:&quot;float64&quot;===r?(c=t.FLOAT,l=!1,r=&quot;float32&quot;):&quot;uint8&quot;===r?c=t.UNSIGNED_BYTE:(c=t.UNSIGNED_BYTE,l=!1,r=&quot;uint8&quot;);var u,h,d=0;if(2===o.length)d=t.LUMINANCE,o=[o[0],o[1],1],e=n(e.data,o,[e.stride[0],e.stride[1],1],e.offset);else{if(3!==o.length)throw new Error(&quot;gl-texture2d: Invalid shape for texture&quot;);if(1===o[2])d=t.ALPHA;else if(2===o[2])d=t.LUMINANCE_ALPHA;else if(3===o[2])d=t.RGB;else{if(4!==o[2])throw new Error(&quot;gl-texture2d: Invalid shape for pixel coords&quot;);d=t.RGBA}}c!==t.FLOAT||t.getExtension(&quot;OES_texture_float&quot;)||(c=t.UNSIGNED_BYTE,l=!1);var v=e.size;if(l)u=0===e.offset&amp;&amp;e.data.length===v?e.data:e.data.subarray(e.offset,e.offset+v);else{var y=[o[2],o[2]*o[0],1];h=a.malloc(v,r);var x=n(h,o,y,0);&quot;float32&quot;!==r&amp;&amp;&quot;float64&quot;!==r||c!==t.UNSIGNED_BYTE?i.assign(x,e):f(x,e),u=h.subarray(0,v)}var b=m(t);return t.texImage2D(t.TEXTURE_2D,0,d,o[0],o[1],0,d,c,u),l||a.free(h),new p(t,b,o[0],o[1],d,c)}Object.defineProperties(d,{minFilter:{get:function(){return this._minFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&amp;&amp;o.indexOf(t)&gt;=0&amp;&amp;(e.getExtension(&quot;OES_texture_float_linear&quot;)||(t=e.NEAREST)),s.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown filter mode &quot;+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t),this._minFilter=t}},magFilter:{get:function(){return this._magFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&amp;&amp;o.indexOf(t)&gt;=0&amp;&amp;(e.getExtension(&quot;OES_texture_float_linear&quot;)||(t=e.NEAREST)),s.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown filter mode &quot;+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t),this._magFilter=t}},mipSamples:{get:function(){return this._anisoSamples},set:function(t){var e=this._anisoSamples;if(this._anisoSamples=0|Math.max(t,1),e!==this._anisoSamples){var r=this.gl.getExtension(&quot;EXT_texture_filter_anisotropic&quot;);r&amp;&amp;this.gl.texParameterf(this.gl.TEXTURE_2D,r.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(t){if(this.bind(),l.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,t),this._wrapS=t}},wrapT:{get:function(){return this._wrapT},set:function(t){if(this.bind(),l.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,t),this._wrapT=t}},wrap:{get:function(){return this._wrapVector},set:function(t){if(Array.isArray(t)||(t=[t,t]),2!==t.length)throw new Error(&quot;gl-texture2d: Must specify wrap mode for rows and columns&quot;);for(var e=0;e&lt;2;++e)if(l.indexOf(t[e])&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);this._wrapS=t[0],this._wrapT=t[1];var r=this.gl;return this.bind(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,this._wrapS),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,this._wrapT),t}},shape:{get:function(){return this._shapeVector},set:function(t){if(Array.isArray(t)){if(2!==t.length)throw new Error(&quot;gl-texture2d: Invalid texture shape&quot;)}else t=[0|t,0|t];return h(this,0|t[0],0|t[1]),[0|t[0],0|t[1]]}},width:{get:function(){return this._shape[0]},set:function(t){return h(this,t|=0,this._shape[1]),t}},height:{get:function(){return this._shape[1]},set:function(t){return t|=0,h(this,this._shape[0],t),t}}}),d.bind=function(t){var e=this.gl;return void 0!==t&amp;&amp;e.activeTexture(e.TEXTURE0+(0|t)),e.bindTexture(e.TEXTURE_2D,this.handle),void 0!==t?0|t:e.getParameter(e.ACTIVE_TEXTURE)-e.TEXTURE0},d.dispose=function(){this.gl.deleteTexture(this.handle)},d.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var t=Math.min(this._shape[0],this._shape[1]),e=0;t&gt;0;++e,t&gt;&gt;&gt;=1)this._mipLevels.indexOf(e)&lt;0&amp;&amp;this._mipLevels.push(e)},d.setPixels=function(t,e,r,o){var s=this.gl;this.bind(),Array.isArray(e)?(o=r,r=0|e[1],e=0|e[0]):(e=e||0,r=r||0),o=o||0;var l=u(t)?t:t.raw;if(l){this._mipLevels.indexOf(o)&lt;0?(s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,this.type,l),this._mipLevels.push(o)):s.texSubImage2D(s.TEXTURE_2D,o,e,r,this.format,this.type,l)}else{if(!(t.shape&amp;&amp;t.stride&amp;&amp;t.data))throw new Error(&quot;gl-texture2d: Unsupported data type&quot;);if(t.shape.length&lt;2||e+t.shape[1]&gt;this._shape[1]&gt;&gt;&gt;o||r+t.shape[0]&gt;this._shape[0]&gt;&gt;&gt;o||e&lt;0||r&lt;0)throw new Error(&quot;gl-texture2d: Texture dimensions are out of bounds&quot;);!function(t,e,r,o,s,l,c,u){var h=u.dtype,p=u.shape.slice();if(p.length&lt;2||p.length&gt;3)throw new Error(&quot;gl-texture2d: Invalid ndarray, must be 2d or 3d&quot;);var d=0,m=0,v=g(p,u.stride.slice());&quot;float32&quot;===h?d=t.FLOAT:&quot;float64&quot;===h?(d=t.FLOAT,v=!1,h=&quot;float32&quot;):&quot;uint8&quot;===h?d=t.UNSIGNED_BYTE:(d=t.UNSIGNED_BYTE,v=!1,h=&quot;uint8&quot;);if(2===p.length)m=t.LUMINANCE,p=[p[0],p[1],1],u=n(u.data,p,[u.stride[0],u.stride[1],1],u.offset);else{if(3!==p.length)throw new Error(&quot;gl-texture2d: Invalid shape for texture&quot;);if(1===p[2])m=t.ALPHA;else if(2===p[2])m=t.LUMINANCE_ALPHA;else if(3===p[2])m=t.RGB;else{if(4!==p[2])throw new Error(&quot;gl-texture2d: Invalid shape for pixel coords&quot;);m=t.RGBA}p[2]}m!==t.LUMINANCE&amp;&amp;m!==t.ALPHA||s!==t.LUMINANCE&amp;&amp;s!==t.ALPHA||(m=s);if(m!==s)throw new Error(&quot;gl-texture2d: Incompatible texture format for setPixels&quot;);var y=u.size,x=c.indexOf(o)&lt;0;x&amp;&amp;c.push(o);if(d===l&amp;&amp;v)0===u.offset&amp;&amp;u.data.length===y?x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data):x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data.subarray(u.offset,u.offset+y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data.subarray(u.offset,u.offset+y));else{var b;b=l===t.FLOAT?a.mallocFloat32(y):a.mallocUint8(y);var _=n(b,p,[p[2],p[2]*p[0],1]);d===t.FLOAT&amp;&amp;l===t.UNSIGNED_BYTE?f(_,u):i.assign(_,u),x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,b.subarray(0,y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,b.subarray(0,y)),l===t.FLOAT?a.freeFloat32(b):a.freeUint8(b)}}(s,e,r,o,this.format,this.type,this._mipLevels,t)}}},{ndarray:495,&quot;ndarray-ops&quot;:490,&quot;typedarray-pool&quot;:595}],354:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;);function i(t){if(t.container)if(t.container==document.body)document.body.style.width||(t.canvas.width=t.width||t.pixelRatio*r.innerWidth),document.body.style.height||(t.canvas.height=t.height||t.pixelRatio*r.innerHeight);else{var e=t.container.getBoundingClientRect();t.canvas.width=t.width||e.right-e.left,t.canvas.height=t.height||e.bottom-e.top}}function a(t){return&quot;function&quot;==typeof t.getContext&amp;&amp;&quot;width&quot;in t&amp;&amp;&quot;height&quot;in t}function o(){var t=document.createElement(&quot;canvas&quot;);return t.style.position=&quot;absolute&quot;,t.style.top=0,t.style.left=0,t}e.exports=function(t){var e;if(t?&quot;string&quot;==typeof t&amp;&amp;(t={container:t}):t={},a(t)?t={container:t}:t=&quot;string&quot;==typeof(e=t).nodeName&amp;&amp;&quot;function&quot;==typeof e.appendChild&amp;&amp;&quot;function&quot;==typeof e.getBoundingClientRect?{container:t}:function(t){return&quot;function&quot;==typeof t.drawArrays||&quot;function&quot;==typeof t.drawElements}(t)?{gl:t}:n(t,{container:&quot;container target element el canvas holder parent parentNode wrapper use ref root node&quot;,gl:&quot;gl context webgl glContext&quot;,attrs:&quot;attributes attrs contextAttributes&quot;,pixelRatio:&quot;pixelRatio pxRatio px ratio pxratio pixelratio&quot;,width:&quot;w width&quot;,height:&quot;h height&quot;},!0),t.pixelRatio||(t.pixelRatio=r.pixelRatio||1),t.gl)return t.gl;if(t.canvas&amp;&amp;(t.container=t.canvas.parentNode),t.container){if(&quot;string&quot;==typeof t.container){var s=document.querySelector(t.container);if(!s)throw Error(&quot;Element &quot;+t.container+&quot; is not found&quot;);t.container=s}a(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=o(),t.container.appendChild(t.canvas),i(t))}else if(!t.canvas){if(&quot;undefined&quot;==typeof document)throw Error(&quot;Not DOM environment. Use headless-gl.&quot;);t.container=document.body||document.documentElement,t.canvas=o(),t.container.appendChild(t.canvas),i(t)}if(!t.gl)try{t.gl=t.canvas.getContext(&quot;webgl&quot;,t.attrs)}catch(e){try{t.gl=t.canvas.getContext(&quot;experimental-webgl&quot;,t.attrs)}catch(e){t.gl=t.canvas.getContext(&quot;webgl-experimental&quot;,t.attrs)}}return t.gl}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;pick-by-alias&quot;:511}],355:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){e?e.bind():t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null);var n=0|t.getParameter(t.MAX_VERTEX_ATTRIBS);if(r){if(r.length&gt;n)throw new Error(&quot;gl-vao: Too many vertex attributes&quot;);for(var i=0;i&lt;r.length;++i){var a=r[i];if(a.buffer){var o=a.buffer,s=a.size||4,l=a.type||t.FLOAT,c=!!a.normalized,u=a.stride||0,f=a.offset||0;o.bind(),t.enableVertexAttribArray(i),t.vertexAttribPointer(i,s,l,c,u,f)}else{if(&quot;number&quot;==typeof a)t.vertexAttrib1f(i,a);else if(1===a.length)t.vertexAttrib1f(i,a[0]);else if(2===a.length)t.vertexAttrib2f(i,a[0],a[1]);else if(3===a.length)t.vertexAttrib3f(i,a[0],a[1],a[2]);else{if(4!==a.length)throw new Error(&quot;gl-vao: Invalid vertex attribute&quot;);t.vertexAttrib4f(i,a[0],a[1],a[2],a[3])}t.disableVertexAttribArray(i)}}for(;i&lt;n;++i)t.disableVertexAttribArray(i)}else{t.bindBuffer(t.ARRAY_BUFFER,null);for(i=0;i&lt;n;++i)t.disableVertexAttribArray(i)}}},{}],356:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./do-bind.js&quot;);function i(t){this.gl=t,this._elements=null,this._attributes=null,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(){n(this.gl,this._elements,this._attributes)},i.prototype.update=function(t,e,r){this._elements=e,this._attributes=t,this._elementsType=r||this.gl.UNSIGNED_SHORT},i.prototype.dispose=function(){},i.prototype.unbind=function(){},i.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._elements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t){return new i(t)}},{&quot;./do-bind.js&quot;:355}],357:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./do-bind.js&quot;);function i(t,e,r,n,i,a){this.location=t,this.dimension=e,this.a=r,this.b=n,this.c=i,this.d=a}function a(t,e,r){this.gl=t,this._ext=e,this.handle=r,this._attribs=[],this._useElements=!1,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(t){switch(this.dimension){case 1:t.vertexAttrib1f(this.location,this.a);break;case 2:t.vertexAttrib2f(this.location,this.a,this.b);break;case 3:t.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:t.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d)}},a.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var t=0;t&lt;this._attribs.length;++t)this._attribs[t].bind(this.gl)},a.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},a.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},a.prototype.update=function(t,e,r){if(this.bind(),n(this.gl,e,t),this.unbind(),this._attribs.length=0,t)for(var a=0;a&lt;t.length;++a){var o=t[a];&quot;number&quot;==typeof o?this._attribs.push(new i(a,1,o)):Array.isArray(o)&amp;&amp;this._attribs.push(new i(a,o.length,o[0],o[1],o[2],o[3]))}this._useElements=!!e,this._elementsType=r||this.gl.UNSIGNED_SHORT},a.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._useElements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t,e){return new a(t,e,e.createVertexArrayOES())}},{&quot;./do-bind.js&quot;:355}],358:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/vao-native.js&quot;),i=t(&quot;./lib/vao-emulated.js&quot;);function a(t){this.bindVertexArrayOES=t.bindVertexArray.bind(t),this.createVertexArrayOES=t.createVertexArray.bind(t),this.deleteVertexArrayOES=t.deleteVertexArray.bind(t)}e.exports=function(t,e,r,o){var s,l=t.createVertexArray?new a(t):t.getExtension(&quot;OES_vertex_array_object&quot;);return(s=l?n(t,l):i(t)).update(e,r,o),s}},{&quot;./lib/vao-emulated.js&quot;:356,&quot;./lib/vao-native.js&quot;:357}],359:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}},{}],360:[function(t,e,r){e.exports=function(t,e){var r=n(t[0],t[1],t[2]),o=n(e[0],e[1],e[2]);i(r,r),i(o,o);var s=a(r,o);return s&gt;1?0:Math.acos(s)};var n=t(&quot;./fromValues&quot;),i=t(&quot;./normalize&quot;),a=t(&quot;./dot&quot;)},{&quot;./dot&quot;:370,&quot;./fromValues&quot;:376,&quot;./normalize&quot;:387}],361:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}},{}],362:[function(t,e,r){e.exports=function(t){var e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}},{}],363:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},{}],364:[function(t,e,r){e.exports=function(){var t=new Float32Array(3);return t[0]=0,t[1]=0,t[2]=0,t}},{}],365:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t}},{}],366:[function(t,e,r){e.exports=t(&quot;./distance&quot;)},{&quot;./distance&quot;:367}],367:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}},{}],368:[function(t,e,r){e.exports=t(&quot;./divide&quot;)},{&quot;./divide&quot;:369}],369:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}},{}],370:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}},{}],371:[function(t,e,r){e.exports=1e-6},{}],372:[function(t,e,r){e.exports=function(t,e){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(r-o)&lt;=n*Math.max(1,Math.abs(r),Math.abs(o))&amp;&amp;Math.abs(i-s)&lt;=n*Math.max(1,Math.abs(i),Math.abs(s))&amp;&amp;Math.abs(a-l)&lt;=n*Math.max(1,Math.abs(a),Math.abs(l))};var n=t(&quot;./epsilon&quot;)},{&quot;./epsilon&quot;:371}],373:[function(t,e,r){e.exports=function(t,e){return t[0]===e[0]&amp;&amp;t[1]===e[1]&amp;&amp;t[2]===e[2]}},{}],374:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}},{}],375:[function(t,e,r){e.exports=function(t,e,r,i,a,o){var s,l;e||(e=3);r||(r=0);l=i?Math.min(i*e+r,t.length):t.length;for(s=r;s&lt;l;s+=e)n[0]=t[s],n[1]=t[s+1],n[2]=t[s+2],a(n,n,o),t[s]=n[0],t[s+1]=n[1],t[s+2]=n[2];return t};var n=t(&quot;./create&quot;)()},{&quot;./create&quot;:364}],376:[function(t,e,r){e.exports=function(t,e,r){var n=new Float32Array(3);return n[0]=t,n[1]=e,n[2]=r,n}},{}],377:[function(t,e,r){e.exports={EPSILON:t(&quot;./epsilon&quot;),create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),angle:t(&quot;./angle&quot;),fromValues:t(&quot;./fromValues&quot;),copy:t(&quot;./copy&quot;),set:t(&quot;./set&quot;),equals:t(&quot;./equals&quot;),exactEquals:t(&quot;./exactEquals&quot;),add:t(&quot;./add&quot;),subtract:t(&quot;./subtract&quot;),sub:t(&quot;./sub&quot;),multiply:t(&quot;./multiply&quot;),mul:t(&quot;./mul&quot;),divide:t(&quot;./divide&quot;),div:t(&quot;./div&quot;),min:t(&quot;./min&quot;),max:t(&quot;./max&quot;),floor:t(&quot;./floor&quot;),ceil:t(&quot;./ceil&quot;),round:t(&quot;./round&quot;),scale:t(&quot;./scale&quot;),scaleAndAdd:t(&quot;./scaleAndAdd&quot;),distance:t(&quot;./distance&quot;),dist:t(&quot;./dist&quot;),squaredDistance:t(&quot;./squaredDistance&quot;),sqrDist:t(&quot;./sqrDist&quot;),length:t(&quot;./length&quot;),len:t(&quot;./len&quot;),squaredLength:t(&quot;./squaredLength&quot;),sqrLen:t(&quot;./sqrLen&quot;),negate:t(&quot;./negate&quot;),inverse:t(&quot;./inverse&quot;),normalize:t(&quot;./normalize&quot;),dot:t(&quot;./dot&quot;),cross:t(&quot;./cross&quot;),lerp:t(&quot;./lerp&quot;),random:t(&quot;./random&quot;),transformMat4:t(&quot;./transformMat4&quot;),transformMat3:t(&quot;./transformMat3&quot;),transformQuat:t(&quot;./transformQuat&quot;),rotateX:t(&quot;./rotateX&quot;),rotateY:t(&quot;./rotateY&quot;),rotateZ:t(&quot;./rotateZ&quot;),forEach:t(&quot;./forEach&quot;)}},{&quot;./add&quot;:359,&quot;./angle&quot;:360,&quot;./ceil&quot;:361,&quot;./clone&quot;:362,&quot;./copy&quot;:363,&quot;./create&quot;:364,&quot;./cross&quot;:365,&quot;./dist&quot;:366,&quot;./distance&quot;:367,&quot;./div&quot;:368,&quot;./divide&quot;:369,&quot;./dot&quot;:370,&quot;./epsilon&quot;:371,&quot;./equals&quot;:372,&quot;./exactEquals&quot;:373,&quot;./floor&quot;:374,&quot;./forEach&quot;:375,&quot;./fromValues&quot;:376,&quot;./inverse&quot;:378,&quot;./len&quot;:379,&quot;./length&quot;:380,&quot;./lerp&quot;:381,&quot;./max&quot;:382,&quot;./min&quot;:383,&quot;./mul&quot;:384,&quot;./multiply&quot;:385,&quot;./negate&quot;:386,&quot;./normalize&quot;:387,&quot;./random&quot;:388,&quot;./rotateX&quot;:389,&quot;./rotateY&quot;:390,&quot;./rotateZ&quot;:391,&quot;./round&quot;:392,&quot;./scale&quot;:393,&quot;./scaleAndAdd&quot;:394,&quot;./set&quot;:395,&quot;./sqrDist&quot;:396,&quot;./sqrLen&quot;:397,&quot;./squaredDistance&quot;:398,&quot;./squaredLength&quot;:399,&quot;./sub&quot;:400,&quot;./subtract&quot;:401,&quot;./transformMat3&quot;:402,&quot;./transformMat4&quot;:403,&quot;./transformQuat&quot;:404}],378:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}},{}],379:[function(t,e,r){e.exports=t(&quot;./length&quot;)},{&quot;./length&quot;:380}],380:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}},{}],381:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t}},{}],382:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}},{}],383:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}},{}],384:[function(t,e,r){e.exports=t(&quot;./multiply&quot;)},{&quot;./multiply&quot;:385}],385:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}},{}],386:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}},{}],387:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;a&gt;0&amp;&amp;(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a);return t}},{}],388:[function(t,e,r){e.exports=function(t,e){e=e||1;var r=2*Math.random()*Math.PI,n=2*Math.random()-1,i=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=n*e,t}},{}],389:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[1],a=r[2],o=e[1]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=e[0],t[1]=i+o*c-s*l,t[2]=a+o*l+s*c,t}},{}],390:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[2],o=e[0]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+s*l+o*c,t[1]=e[1],t[2]=a+s*c-o*l,t}},{}],391:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[1],o=e[0]-i,s=e[1]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+o*c-s*l,t[1]=a+o*l+s*c,t[2]=e[2],t}},{}],392:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}},{}],393:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}},{}],394:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}},{}],395:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}},{}],396:[function(t,e,r){e.exports=t(&quot;./squaredDistance&quot;)},{&quot;./squaredDistance&quot;:398}],397:[function(t,e,r){e.exports=t(&quot;./squaredLength&quot;)},{&quot;./squaredLength&quot;:399}],398:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}},{}],399:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}},{}],400:[function(t,e,r){e.exports=t(&quot;./subtract&quot;)},{&quot;./subtract&quot;:401}],401:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}},{}],402:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t}},{}],403:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,t[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,t[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,t}},{}],404:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t}},{}],405:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}},{}],406:[function(t,e,r){e.exports=function(t){var e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}},{}],407:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},{}],408:[function(t,e,r){e.exports=function(){var t=new Float32Array(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}},{}],409:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(r*r+n*n+i*i+a*a)}},{}],410:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}},{}],411:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}},{}],412:[function(t,e,r){e.exports=function(t,e,r,n){var i=new Float32Array(4);return i[0]=t,i[1]=e,i[2]=r,i[3]=n,i}},{}],413:[function(t,e,r){e.exports={create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),fromValues:t(&quot;./fromValues&quot;),copy:t(&quot;./copy&quot;),set:t(&quot;./set&quot;),add:t(&quot;./add&quot;),subtract:t(&quot;./subtract&quot;),multiply:t(&quot;./multiply&quot;),divide:t(&quot;./divide&quot;),min:t(&quot;./min&quot;),max:t(&quot;./max&quot;),scale:t(&quot;./scale&quot;),scaleAndAdd:t(&quot;./scaleAndAdd&quot;),distance:t(&quot;./distance&quot;),squaredDistance:t(&quot;./squaredDistance&quot;),length:t(&quot;./length&quot;),squaredLength:t(&quot;./squaredLength&quot;),negate:t(&quot;./negate&quot;),inverse:t(&quot;./inverse&quot;),normalize:t(&quot;./normalize&quot;),dot:t(&quot;./dot&quot;),lerp:t(&quot;./lerp&quot;),random:t(&quot;./random&quot;),transformMat4:t(&quot;./transformMat4&quot;),transformQuat:t(&quot;./transformQuat&quot;)}},{&quot;./add&quot;:405,&quot;./clone&quot;:406,&quot;./copy&quot;:407,&quot;./create&quot;:408,&quot;./distance&quot;:409,&quot;./divide&quot;:410,&quot;./dot&quot;:411,&quot;./fromValues&quot;:412,&quot;./inverse&quot;:414,&quot;./length&quot;:415,&quot;./lerp&quot;:416,&quot;./max&quot;:417,&quot;./min&quot;:418,&quot;./multiply&quot;:419,&quot;./negate&quot;:420,&quot;./normalize&quot;:421,&quot;./random&quot;:422,&quot;./scale&quot;:423,&quot;./scaleAndAdd&quot;:424,&quot;./set&quot;:425,&quot;./squaredDistance&quot;:426,&quot;./squaredLength&quot;:427,&quot;./subtract&quot;:428,&quot;./transformMat4&quot;:429,&quot;./transformQuat&quot;:430}],414:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}},{}],415:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return Math.sqrt(e*e+r*r+n*n+i*i)}},{}],416:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t}},{}],417:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}},{}],418:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}},{}],419:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}},{}],420:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}},{}],421:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a;o&gt;0&amp;&amp;(o=1/Math.sqrt(o),t[0]=r*o,t[1]=n*o,t[2]=i*o,t[3]=a*o);return t}},{}],422:[function(t,e,r){var n=t(&quot;./normalize&quot;),i=t(&quot;./scale&quot;);e.exports=function(t,e){return e=e||1,t[0]=Math.random(),t[1]=Math.random(),t[2]=Math.random(),t[3]=Math.random(),n(t,t),i(t,t,e),t}},{&quot;./normalize&quot;:421,&quot;./scale&quot;:423}],423:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}},{}],424:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t}},{}],425:[function(t,e,r){e.exports=function(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}},{}],426:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return r*r+n*n+i*i+a*a}},{}],427:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+i*i}},{}],428:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}},{}],429:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}},{}],430:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t[3]=e[3],t}},{}],431:[function(t,e,r){var n=t(&quot;glsl-tokenizer&quot;),i=t(&quot;atob-lite&quot;);e.exports=function(t){for(var e=Array.isArray(t)?t:n(t),r=0;r&lt;e.length;r++){var a=e[r];if(&quot;preprocessor&quot;===a.type){var o=a.data.match(/\#define\s+SHADER_NAME(_B64)?\s+(.+)$/);if(o&amp;&amp;o[2]){var s=o[1],l=o[2];return(s?i(l):l).trim()}}}}},{&quot;atob-lite&quot;:77,&quot;glsl-tokenizer&quot;:438}],432:[function(t,e,r){e.exports=function(t){var e,r,c,u=0,f=0,h=999,p=[],d=[],g=1,m=0,v=0,y=!1,x=!1,b=&quot;&quot;,_=a,w=n;&quot;300 es&quot;===(t=t||{}).version&amp;&amp;(_=s,w=o);var T={},k={};for(u=0;u&lt;_.length;u++)T[_[u]]=!0;for(u=0;u&lt;w.length;u++)k[w[u]]=!0;return function(t){return d=[],null!==t?function(t){u=0,t.toString&amp;&amp;(t=t.toString());var r;b+=t.replace(/\r\n/g,&quot;\n&quot;),c=b.length;for(;e=b[u],u&lt;c;){switch(r=u,h){case 0:u=C();break;case 1:case 2:u=E();break;case 3:u=L();break;case 4:u=z();break;case 11:u=P();break;case 5:u=O();break;case 9999:u=D();break;case 9:u=S();break;case 999:u=A()}if(r!==u)switch(b[r]){case&quot;\n&quot;:m=0,++g;break;default:++m}}return f+=u,b=b.slice(u),d}(t):function(t){p.length&amp;&amp;M(p.join(&quot;&quot;));return h=10,M(&quot;(eof)&quot;),d}()};function M(t){t.length&amp;&amp;d.push({type:l[h],data:t,position:v,line:g,column:m})}function A(){return p=p.length?[]:p,&quot;/&quot;===r&amp;&amp;&quot;*&quot;===e?(v=f+u-1,h=0,r=e,u+1):&quot;/&quot;===r&amp;&amp;&quot;/&quot;===e?(v=f+u-1,h=1,r=e,u+1):&quot;#&quot;===e?(h=2,v=f+u,u):/\s/.test(e)?(h=9,v=f+u,u):(y=/\d/.test(e),x=/[^\w_]/.test(e),v=f+u,h=y?4:x?3:9999,u)}function S(){return/[^\s]/g.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function E(){return&quot;\r&quot;!==e&amp;&amp;&quot;\n&quot;!==e||&quot;\\&quot;===r?(p.push(e),r=e,u+1):(M(p.join(&quot;&quot;)),h=999,u)}function C(){return&quot;/&quot;===e&amp;&amp;&quot;*&quot;===r?(p.push(e),M(p.join(&quot;&quot;)),h=999,u+1):(p.push(e),r=e,u+1)}function L(){if(&quot;.&quot;===r&amp;&amp;/\d/.test(e))return h=5,u;if(&quot;/&quot;===r&amp;&amp;&quot;*&quot;===e)return h=0,u;if(&quot;/&quot;===r&amp;&amp;&quot;/&quot;===e)return h=1,u;if(&quot;.&quot;===e&amp;&amp;p.length){for(;I(p););return h=5,u}if(&quot;;&quot;===e||&quot;)&quot;===e||&quot;(&quot;===e){if(p.length)for(;I(p););return M(e),h=999,u+1}var t=2===p.length&amp;&amp;&quot;=&quot;!==e;if(/[\w_\d\s]/.test(e)||t){for(;I(p););return h=999,u}return p.push(e),r=e,u+1}function I(t){for(var e,r,n=0;;){if(e=i.indexOf(t.slice(0,t.length+n).join(&quot;&quot;)),r=i[e],-1===e){if(n--+t.length&gt;0)continue;r=t.slice(0,1).join(&quot;&quot;)}return M(r),v+=r.length,(p=p.slice(r.length)).length}}function P(){return/[^a-fA-F0-9]/.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function z(){return&quot;.&quot;===e||/[eE]/.test(e)?(p.push(e),h=5,r=e,u+1):&quot;x&quot;===e&amp;&amp;1===p.length&amp;&amp;&quot;0&quot;===p[0]?(h=11,p.push(e),r=e,u+1):/[^\d]/.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function O(){return&quot;f&quot;===e&amp;&amp;(p.push(e),r=e,u+=1),/[eE]/.test(e)?(p.push(e),r=e,u+1):(&quot;-&quot;!==e&amp;&amp;&quot;+&quot;!==e||!/[eE]/.test(r))&amp;&amp;/[^\d]/.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function D(){if(/[^\d\w_]/.test(e)){var t=p.join(&quot;&quot;);return h=k[t]?8:T[t]?7:6,M(p.join(&quot;&quot;)),h=999,u}return p.push(e),r=e,u+1}};var n=t(&quot;./lib/literals&quot;),i=t(&quot;./lib/operators&quot;),a=t(&quot;./lib/builtins&quot;),o=t(&quot;./lib/literals-300es&quot;),s=t(&quot;./lib/builtins-300es&quot;),l=[&quot;block-comment&quot;,&quot;line-comment&quot;,&quot;preprocessor&quot;,&quot;operator&quot;,&quot;integer&quot;,&quot;float&quot;,&quot;ident&quot;,&quot;builtin&quot;,&quot;keyword&quot;,&quot;whitespace&quot;,&quot;eof&quot;,&quot;integer&quot;]},{&quot;./lib/builtins&quot;:434,&quot;./lib/builtins-300es&quot;:433,&quot;./lib/literals&quot;:436,&quot;./lib/literals-300es&quot;:435,&quot;./lib/operators&quot;:437}],433:[function(t,e,r){var n=t(&quot;./builtins&quot;);n=n.slice().filter((function(t){return!/^(gl\_|texture)/.test(t)})),e.exports=n.concat([&quot;gl_VertexID&quot;,&quot;gl_InstanceID&quot;,&quot;gl_Position&quot;,&quot;gl_PointSize&quot;,&quot;gl_FragCoord&quot;,&quot;gl_FrontFacing&quot;,&quot;gl_FragDepth&quot;,&quot;gl_PointCoord&quot;,&quot;gl_MaxVertexAttribs&quot;,&quot;gl_MaxVertexUniformVectors&quot;,&quot;gl_MaxVertexOutputVectors&quot;,&quot;gl_MaxFragmentInputVectors&quot;,&quot;gl_MaxVertexTextureImageUnits&quot;,&quot;gl_MaxCombinedTextureImageUnits&quot;,&quot;gl_MaxTextureImageUnits&quot;,&quot;gl_MaxFragmentUniformVectors&quot;,&quot;gl_MaxDrawBuffers&quot;,&quot;gl_MinProgramTexelOffset&quot;,&quot;gl_MaxProgramTexelOffset&quot;,&quot;gl_DepthRangeParameters&quot;,&quot;gl_DepthRange&quot;,&quot;trunc&quot;,&quot;round&quot;,&quot;roundEven&quot;,&quot;isnan&quot;,&quot;isinf&quot;,&quot;floatBitsToInt&quot;,&quot;floatBitsToUint&quot;,&quot;intBitsToFloat&quot;,&quot;uintBitsToFloat&quot;,&quot;packSnorm2x16&quot;,&quot;unpackSnorm2x16&quot;,&quot;packUnorm2x16&quot;,&quot;unpackUnorm2x16&quot;,&quot;packHalf2x16&quot;,&quot;unpackHalf2x16&quot;,&quot;outerProduct&quot;,&quot;transpose&quot;,&quot;determinant&quot;,&quot;inverse&quot;,&quot;texture&quot;,&quot;textureSize&quot;,&quot;textureProj&quot;,&quot;textureLod&quot;,&quot;textureOffset&quot;,&quot;texelFetch&quot;,&quot;texelFetchOffset&quot;,&quot;textureProjOffset&quot;,&quot;textureLodOffset&quot;,&quot;textureProjLod&quot;,&quot;textureProjLodOffset&quot;,&quot;textureGrad&quot;,&quot;textureGradOffset&quot;,&quot;textureProjGrad&quot;,&quot;textureProjGradOffset&quot;])},{&quot;./builtins&quot;:434}],434:[function(t,e,r){e.exports=[&quot;abs&quot;,&quot;acos&quot;,&quot;all&quot;,&quot;any&quot;,&quot;asin&quot;,&quot;atan&quot;,&quot;ceil&quot;,&quot;clamp&quot;,&quot;cos&quot;,&quot;cross&quot;,&quot;dFdx&quot;,&quot;dFdy&quot;,&quot;degrees&quot;,&quot;distance&quot;,&quot;dot&quot;,&quot;equal&quot;,&quot;exp&quot;,&quot;exp2&quot;,&quot;faceforward&quot;,&quot;floor&quot;,&quot;fract&quot;,&quot;gl_BackColor&quot;,&quot;gl_BackLightModelProduct&quot;,&quot;gl_BackLightProduct&quot;,&quot;gl_BackMaterial&quot;,&quot;gl_BackSecondaryColor&quot;,&quot;gl_ClipPlane&quot;,&quot;gl_ClipVertex&quot;,&quot;gl_Color&quot;,&quot;gl_DepthRange&quot;,&quot;gl_DepthRangeParameters&quot;,&quot;gl_EyePlaneQ&quot;,&quot;gl_EyePlaneR&quot;,&quot;gl_EyePlaneS&quot;,&quot;gl_EyePlaneT&quot;,&quot;gl_Fog&quot;,&quot;gl_FogCoord&quot;,&quot;gl_FogFragCoord&quot;,&quot;gl_FogParameters&quot;,&quot;gl_FragColor&quot;,&quot;gl_FragCoord&quot;,&quot;gl_FragData&quot;,&quot;gl_FragDepth&quot;,&quot;gl_FragDepthEXT&quot;,&quot;gl_FrontColor&quot;,&quot;gl_FrontFacing&quot;,&quot;gl_FrontLightModelProduct&quot;,&quot;gl_FrontLightProduct&quot;,&quot;gl_FrontMaterial&quot;,&quot;gl_FrontSecondaryColor&quot;,&quot;gl_LightModel&quot;,&quot;gl_LightModelParameters&quot;,&quot;gl_LightModelProducts&quot;,&quot;gl_LightProducts&quot;,&quot;gl_LightSource&quot;,&quot;gl_LightSourceParameters&quot;,&quot;gl_MaterialParameters&quot;,&quot;gl_MaxClipPlanes&quot;,&quot;gl_MaxCombinedTextureImageUnits&quot;,&quot;gl_MaxDrawBuffers&quot;,&quot;gl_MaxFragmentUniformComponents&quot;,&quot;gl_MaxLights&quot;,&quot;gl_MaxTextureCoords&quot;,&quot;gl_MaxTextureImageUnits&quot;,&quot;gl_MaxTextureUnits&quot;,&quot;gl_MaxVaryingFloats&quot;,&quot;gl_MaxVertexAttribs&quot;,&quot;gl_MaxVertexTextureImageUnits&quot;,&quot;gl_MaxVertexUniformComponents&quot;,&quot;gl_ModelViewMatrix&quot;,&quot;gl_ModelViewMatrixInverse&quot;,&quot;gl_ModelViewMatrixInverseTranspose&quot;,&quot;gl_ModelViewMatrixTranspose&quot;,&quot;gl_ModelViewProjectionMatrix&quot;,&quot;gl_ModelViewProjectionMatrixInverse&quot;,&quot;gl_ModelViewProjectionMatrixInverseTranspose&quot;,&quot;gl_ModelViewProjectionMatrixTranspose&quot;,&quot;gl_MultiTexCoord0&quot;,&quot;gl_MultiTexCoord1&quot;,&quot;gl_MultiTexCoord2&quot;,&quot;gl_MultiTexCoord3&quot;,&quot;gl_MultiTexCoord4&quot;,&quot;gl_MultiTexCoord5&quot;,&quot;gl_MultiTexCoord6&quot;,&quot;gl_MultiTexCoord7&quot;,&quot;gl_Normal&quot;,&quot;gl_NormalMatrix&quot;,&quot;gl_NormalScale&quot;,&quot;gl_ObjectPlaneQ&quot;,&quot;gl_ObjectPlaneR&quot;,&quot;gl_ObjectPlaneS&quot;,&quot;gl_ObjectPlaneT&quot;,&quot;gl_Point&quot;,&quot;gl_PointCoord&quot;,&quot;gl_PointParameters&quot;,&quot;gl_PointSize&quot;,&quot;gl_Position&quot;,&quot;gl_ProjectionMatrix&quot;,&quot;gl_ProjectionMatrixInverse&quot;,&quot;gl_ProjectionMatrixInverseTranspose&quot;,&quot;gl_ProjectionMatrixTranspose&quot;,&quot;gl_SecondaryColor&quot;,&quot;gl_TexCoord&quot;,&quot;gl_TextureEnvColor&quot;,&quot;gl_TextureMatrix&quot;,&quot;gl_TextureMatrixInverse&quot;,&quot;gl_TextureMatrixInverseTranspose&quot;,&quot;gl_TextureMatrixTranspose&quot;,&quot;gl_Vertex&quot;,&quot;greaterThan&quot;,&quot;greaterThanEqual&quot;,&quot;inversesqrt&quot;,&quot;length&quot;,&quot;lessThan&quot;,&quot;lessThanEqual&quot;,&quot;log&quot;,&quot;log2&quot;,&quot;matrixCompMult&quot;,&quot;max&quot;,&quot;min&quot;,&quot;mix&quot;,&quot;mod&quot;,&quot;normalize&quot;,&quot;not&quot;,&quot;notEqual&quot;,&quot;pow&quot;,&quot;radians&quot;,&quot;reflect&quot;,&quot;refract&quot;,&quot;sign&quot;,&quot;sin&quot;,&quot;smoothstep&quot;,&quot;sqrt&quot;,&quot;step&quot;,&quot;tan&quot;,&quot;texture2D&quot;,&quot;texture2DLod&quot;,&quot;texture2DProj&quot;,&quot;texture2DProjLod&quot;,&quot;textureCube&quot;,&quot;textureCubeLod&quot;,&quot;texture2DLodEXT&quot;,&quot;texture2DProjLodEXT&quot;,&quot;textureCubeLodEXT&quot;,&quot;texture2DGradEXT&quot;,&quot;texture2DProjGradEXT&quot;,&quot;textureCubeGradEXT&quot;]},{}],435:[function(t,e,r){var n=t(&quot;./literals&quot;);e.exports=n.slice().concat([&quot;layout&quot;,&quot;centroid&quot;,&quot;smooth&quot;,&quot;case&quot;,&quot;mat2x2&quot;,&quot;mat2x3&quot;,&quot;mat2x4&quot;,&quot;mat3x2&quot;,&quot;mat3x3&quot;,&quot;mat3x4&quot;,&quot;mat4x2&quot;,&quot;mat4x3&quot;,&quot;mat4x4&quot;,&quot;uvec2&quot;,&quot;uvec3&quot;,&quot;uvec4&quot;,&quot;samplerCubeShadow&quot;,&quot;sampler2DArray&quot;,&quot;sampler2DArrayShadow&quot;,&quot;isampler2D&quot;,&quot;isampler3D&quot;,&quot;isamplerCube&quot;,&quot;isampler2DArray&quot;,&quot;usampler2D&quot;,&quot;usampler3D&quot;,&quot;usamplerCube&quot;,&quot;usampler2DArray&quot;,&quot;coherent&quot;,&quot;restrict&quot;,&quot;readonly&quot;,&quot;writeonly&quot;,&quot;resource&quot;,&quot;atomic_uint&quot;,&quot;noperspective&quot;,&quot;patch&quot;,&quot;sample&quot;,&quot;subroutine&quot;,&quot;common&quot;,&quot;partition&quot;,&quot;active&quot;,&quot;filter&quot;,&quot;image1D&quot;,&quot;image2D&quot;,&quot;image3D&quot;,&quot;imageCube&quot;,&quot;iimage1D&quot;,&quot;iimage2D&quot;,&quot;iimage3D&quot;,&quot;iimageCube&quot;,&quot;uimage1D&quot;,&quot;uimage2D&quot;,&quot;uimage3D&quot;,&quot;uimageCube&quot;,&quot;image1DArray&quot;,&quot;image2DArray&quot;,&quot;iimage1DArray&quot;,&quot;iimage2DArray&quot;,&quot;uimage1DArray&quot;,&quot;uimage2DArray&quot;,&quot;image1DShadow&quot;,&quot;image2DShadow&quot;,&quot;image1DArrayShadow&quot;,&quot;image2DArrayShadow&quot;,&quot;imageBuffer&quot;,&quot;iimageBuffer&quot;,&quot;uimageBuffer&quot;,&quot;sampler1DArray&quot;,&quot;sampler1DArrayShadow&quot;,&quot;isampler1D&quot;,&quot;isampler1DArray&quot;,&quot;usampler1D&quot;,&quot;usampler1DArray&quot;,&quot;isampler2DRect&quot;,&quot;usampler2DRect&quot;,&quot;samplerBuffer&quot;,&quot;isamplerBuffer&quot;,&quot;usamplerBuffer&quot;,&quot;sampler2DMS&quot;,&quot;isampler2DMS&quot;,&quot;usampler2DMS&quot;,&quot;sampler2DMSArray&quot;,&quot;isampler2DMSArray&quot;,&quot;usampler2DMSArray&quot;])},{&quot;./literals&quot;:436}],436:[function(t,e,r){e.exports=[&quot;precision&quot;,&quot;highp&quot;,&quot;mediump&quot;,&quot;lowp&quot;,&quot;attribute&quot;,&quot;const&quot;,&quot;uniform&quot;,&quot;varying&quot;,&quot;break&quot;,&quot;continue&quot;,&quot;do&quot;,&quot;for&quot;,&quot;while&quot;,&quot;if&quot;,&quot;else&quot;,&quot;in&quot;,&quot;out&quot;,&quot;inout&quot;,&quot;float&quot;,&quot;int&quot;,&quot;uint&quot;,&quot;void&quot;,&quot;bool&quot;,&quot;true&quot;,&quot;false&quot;,&quot;discard&quot;,&quot;return&quot;,&quot;mat2&quot;,&quot;mat3&quot;,&quot;mat4&quot;,&quot;vec2&quot;,&quot;vec3&quot;,&quot;vec4&quot;,&quot;ivec2&quot;,&quot;ivec3&quot;,&quot;ivec4&quot;,&quot;bvec2&quot;,&quot;bvec3&quot;,&quot;bvec4&quot;,&quot;sampler1D&quot;,&quot;sampler2D&quot;,&quot;sampler3D&quot;,&quot;samplerCube&quot;,&quot;sampler1DShadow&quot;,&quot;sampler2DShadow&quot;,&quot;struct&quot;,&quot;asm&quot;,&quot;class&quot;,&quot;union&quot;,&quot;enum&quot;,&quot;typedef&quot;,&quot;template&quot;,&quot;this&quot;,&quot;packed&quot;,&quot;goto&quot;,&quot;switch&quot;,&quot;default&quot;,&quot;inline&quot;,&quot;noinline&quot;,&quot;volatile&quot;,&quot;public&quot;,&quot;static&quot;,&quot;extern&quot;,&quot;external&quot;,&quot;interface&quot;,&quot;long&quot;,&quot;short&quot;,&quot;double&quot;,&quot;half&quot;,&quot;fixed&quot;,&quot;unsigned&quot;,&quot;input&quot;,&quot;output&quot;,&quot;hvec2&quot;,&quot;hvec3&quot;,&quot;hvec4&quot;,&quot;dvec2&quot;,&quot;dvec3&quot;,&quot;dvec4&quot;,&quot;fvec2&quot;,&quot;fvec3&quot;,&quot;fvec4&quot;,&quot;sampler2DRect&quot;,&quot;sampler3DRect&quot;,&quot;sampler2DRectShadow&quot;,&quot;sizeof&quot;,&quot;cast&quot;,&quot;namespace&quot;,&quot;using&quot;]},{}],437:[function(t,e,r){e.exports=[&quot;&lt;&lt;=&quot;,&quot;&gt;&gt;=&quot;,&quot;++&quot;,&quot;--&quot;,&quot;&lt;&lt;&quot;,&quot;&gt;&gt;&quot;,&quot;&lt;=&quot;,&quot;&gt;=&quot;,&quot;==&quot;,&quot;!=&quot;,&quot;&amp;&amp;&quot;,&quot;||&quot;,&quot;+=&quot;,&quot;-=&quot;,&quot;*=&quot;,&quot;/=&quot;,&quot;%=&quot;,&quot;&amp;=&quot;,&quot;^^&quot;,&quot;^=&quot;,&quot;|=&quot;,&quot;(&quot;,&quot;)&quot;,&quot;[&quot;,&quot;]&quot;,&quot;.&quot;,&quot;!&quot;,&quot;~&quot;,&quot;*&quot;,&quot;/&quot;,&quot;%&quot;,&quot;+&quot;,&quot;-&quot;,&quot;&lt;&quot;,&quot;&gt;&quot;,&quot;&amp;&quot;,&quot;^&quot;,&quot;|&quot;,&quot;?&quot;,&quot;:&quot;,&quot;=&quot;,&quot;,&quot;,&quot;;&quot;,&quot;{&quot;,&quot;}&quot;]},{}],438:[function(t,e,r){var n=t(&quot;./index&quot;);e.exports=function(t,e){var r=n(e),i=[];return i=(i=i.concat(r(t))).concat(r(null))}},{&quot;./index&quot;:432}],439:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],440:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n,i=t(&quot;is-browser&quot;);n=&quot;function&quot;==typeof r.matchMedia?!r.matchMedia(&quot;(hover: none)&quot;).matches:i,e.exports=n}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;is-browser&quot;:464}],441:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-browser&quot;);e.exports=n&amp;&amp;function(){var t=!1;try{var e=Object.defineProperty({},&quot;passive&quot;,{get:function(){t=!0}});window.addEventListener(&quot;test&quot;,null,e),window.removeEventListener(&quot;test&quot;,null,e)}catch(e){t=!1}return t}()},{&quot;is-browser&quot;:464}],442:[function(t,e,r){r.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1&lt;&lt;s)-1,c=l&gt;&gt;1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&amp;(1&lt;&lt;-u)-1,p&gt;&gt;=-u,u+=s;u&gt;0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&amp;(1&lt;&lt;-u)-1,a&gt;&gt;=-u,u+=n;u&gt;0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1&lt;&lt;c)-1,f=u&gt;&gt;1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e&lt;0||0===e&amp;&amp;1/e&lt;0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))&lt;1&amp;&amp;(o--,l*=2),(e+=o+f&gt;=1?h/l:h*Math.pow(2,1-f))*l&gt;=2&amp;&amp;(o++,l/=2),o+f&gt;=u?(s=0,o=u):o+f&gt;=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i&gt;=8;t[r+p]=255&amp;s,p+=d,s/=256,i-=8);for(o=o&lt;&lt;i|s,c+=i;c&gt;0;t[r+p]=255&amp;o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g}},{}],443:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./types&quot;);e.exports=function(t,e){var r;for(r in n)if(n[r].detect(t,e))return r}},{&quot;./types&quot;:446}],444:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;fs&quot;),i=t(&quot;path&quot;),a=t(&quot;./types&quot;),o=t(&quot;./detector&quot;);function s(t,e){var r=o(t,e);if(r in a){var n=a[r].calculate(t,e);if(!1!==n)return n.type=r,n}throw new TypeError(&quot;unsupported file type: &quot;+r+&quot; (file: &quot;+e+&quot;)&quot;)}e.exports=function(t,e){if(r.isBuffer(t))return s(t);if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;invalid invocation&quot;);var a=i.resolve(t);if(&quot;function&quot;!=typeof e)return s(function(t){var e=n.openSync(t,&quot;r&quot;),i=n.fstatSync(e).size,a=Math.min(i,524288),o=r.alloc(a);return n.readSync(e,o,0,a,0),n.closeSync(e),o}(a),a);!function(t,e){n.open(t,&quot;r&quot;,(function(i,a){if(i)return e(i);n.fstat(a,(function(i,o){if(i)return e(i);var s=o.size;if(s&lt;=0)return e(new Error(&quot;File size is not greater than 0 \u2014\u2014 &quot;+t));var l=Math.min(s,524288),c=r.alloc(l);n.read(a,c,0,l,0,(function(t){if(t)return e(t);n.close(a,(function(t){e(t,c)}))}))}))}))}(a,(function(t,r){if(t)return e(t);var n;try{n=s(r,a)}catch(e){t=e}e(t,n)}))},e.exports.types=Object.keys(a)}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;./detector&quot;:443,&quot;./types&quot;:446,buffer:111,fs:109,path:507}],445:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){return r=r||0,t[&quot;readUInt&quot;+e+(n?&quot;BE&quot;:&quot;LE&quot;)].call(t,r)}},{}],446:[function(t,e,r){&quot;use strict&quot;;var n={bmp:t(&quot;./types/bmp&quot;),cur:t(&quot;./types/cur&quot;),dds:t(&quot;./types/dds&quot;),gif:t(&quot;./types/gif&quot;),icns:t(&quot;./types/icns&quot;),ico:t(&quot;./types/ico&quot;),jpg:t(&quot;./types/jpg&quot;),png:t(&quot;./types/png&quot;),psd:t(&quot;./types/psd&quot;),svg:t(&quot;./types/svg&quot;),tiff:t(&quot;./types/tiff&quot;),webp:t(&quot;./types/webp&quot;)};e.exports=n},{&quot;./types/bmp&quot;:447,&quot;./types/cur&quot;:448,&quot;./types/dds&quot;:449,&quot;./types/gif&quot;:450,&quot;./types/icns&quot;:451,&quot;./types/ico&quot;:452,&quot;./types/jpg&quot;:453,&quot;./types/png&quot;:454,&quot;./types/psd&quot;:455,&quot;./types/svg&quot;:456,&quot;./types/tiff&quot;:457,&quot;./types/webp&quot;:458}],447:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return&quot;BM&quot;===t.toString(&quot;ascii&quot;,0,2)},calculate:function(t){return{width:t.readUInt32LE(18),height:Math.abs(t.readInt32LE(22))}}}},{}],448:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return 0===t.readUInt16LE(0)&amp;&amp;2===t.readUInt16LE(2)},calculate:t(&quot;./ico&quot;).calculate}},{&quot;./ico&quot;:452}],449:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return 542327876===t.readUInt32LE(0)},calculate:function(t){return{height:t.readUInt32LE(12),width:t.readUInt32LE(16)}}}},{}],450:[function(t,e,r){&quot;use strict&quot;;var n=/^GIF8[79]a/;e.exports={detect:function(t){var e=t.toString(&quot;ascii&quot;,0,6);return n.test(e)},calculate:function(t){return{width:t.readUInt16LE(6),height:t.readUInt16LE(8)}}}},{}],451:[function(t,e,r){&quot;use strict&quot;;var n={ICON:32,&quot;ICN#&quot;:32,&quot;icm#&quot;:16,icm4:16,icm8:16,&quot;ics#&quot;:16,ics4:16,ics8:16,is32:16,s8mk:16,icp4:16,icl4:32,icl8:32,il32:32,l8mk:32,icp5:32,ic11:32,ich4:48,ich8:48,ih32:48,h8mk:48,icp6:64,ic12:32,it32:128,t8mk:128,ic07:128,ic08:256,ic13:256,ic09:512,ic14:512,ic10:1024};function i(t,e){var r=e+4;return[t.toString(&quot;ascii&quot;,e,r),t.readUInt32BE(r)]}function a(t){var e=n[t];return{width:e,height:e,type:t}}e.exports={detect:function(t){return&quot;icns&quot;===t.toString(&quot;ascii&quot;,0,4)},calculate:function(t){var e,r,n,o=t.length,s=8,l=t.readUInt32BE(4);if(r=a((e=i(t,s))[0]),(s+=e[1])===l)return r;for(n={width:r.width,height:r.height,images:[r]};s&lt;l&amp;&amp;s&lt;o;)r=a((e=i(t,s))[0]),s+=e[1],n.images.push(r);return n}}},{}],452:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=t.readUInt8(e);return 0===r?256:r}function i(t,e){var r=6+16*e;return{width:n(t,r),height:n(t,r+1)}}e.exports={detect:function(t){return 0===t.readUInt16LE(0)&amp;&amp;1===t.readUInt16LE(2)},calculate:function(t){var e,r=t.readUInt16LE(4),n=i(t,0);if(1===r)return n;for(n.images=[{width:n.width,height:n.height}],e=1;e&lt;r;e+=1)n.images.push(i(t,e));return n}}},{}],453:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../readUInt&quot;);function i(t){return&quot;45786966&quot;===t.toString(&quot;hex&quot;,2,6)}function a(t,e){return{height:t.readUInt16BE(e),width:t.readUInt16BE(e+2)}}function o(t,e){var r=t.slice(2,e),i=r.toString(&quot;hex&quot;,6,8),a=&quot;4d4d&quot;===i;if(a||&quot;4949&quot;===i)return function(t,e){for(var r,i,a=n(t,16,14,e),o=0;o&lt;a;o++){if(i=(r=16+12*o)+12,r&gt;t.length)return;var s=t.slice(r,i);if(274===n(s,16,0,e)){if(3!==n(s,16,2,e))return;if(1!==n(s,32,4,e))return;return n(s,16,8,e)}}}(r,a)}function s(t,e){if(e&gt;t.length)throw new TypeError(&quot;Corrupt JPG, exceeded buffer limits&quot;);if(255!==t[e])throw new TypeError(&quot;Invalid JPG, marker table corrupted&quot;)}e.exports={detect:function(t){return&quot;ffd8&quot;===t.toString(&quot;hex&quot;,0,2)},calculate:function(t){var e,r,n;for(t=t.slice(4);t.length;){if(r=t.readUInt16BE(0),i(t)&amp;&amp;(e=o(t,r)),s(t,r),192===(n=t[r+1])||193===n||194===n){var l=a(t,r+5);return e?{width:l.width,height:l.height,orientation:e}:l}t=t.slice(r+2)}throw new TypeError(&quot;Invalid JPG, no size found&quot;)}}},{&quot;../readUInt&quot;:445}],454:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){if(&quot;PNG\r\n\x1a\n&quot;===t.toString(&quot;ascii&quot;,1,8)){var e=t.toString(&quot;ascii&quot;,12,16);if(&quot;CgBI&quot;===e&amp;&amp;(e=t.toString(&quot;ascii&quot;,28,32)),&quot;IHDR&quot;!==e)throw new TypeError(&quot;invalid png&quot;);return!0}},calculate:function(t){return&quot;CgBI&quot;===t.toString(&quot;ascii&quot;,12,16)?{width:t.readUInt32BE(32),height:t.readUInt32BE(36)}:{width:t.readUInt32BE(16),height:t.readUInt32BE(20)}}}},{}],455:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return&quot;8BPS&quot;===t.toString(&quot;ascii&quot;,0,4)},calculate:function(t){return{width:t.readUInt32BE(18),height:t.readUInt32BE(14)}}}},{}],456:[function(t,e,r){&quot;use strict&quot;;var n=/&lt;svg\s([^&gt;&quot;']|&quot;[^&quot;]*&quot;|'[^']*')*&gt;/;var i={root:n,width:/\swidth=(['&quot;])([^%]+?)\1/,height:/\sheight=(['&quot;])([^%]+?)\1/,viewbox:/\sviewBox=(['&quot;])(.+?)\1/},a={cm:96/2.54,mm:96/2.54/10,m:96/2.54*100,pt:96/72,pc:96/72/12,em:16,ex:8};function o(t){var e=/([0-9.]+)([a-z]*)/.exec(t);if(e)return Math.round(parseFloat(e[1])*(a[e[2]]||1))}function s(t){var e=t.split(&quot; &quot;);return{width:o(e[2]),height:o(e[3])}}e.exports={detect:function(t){return n.test(t)},calculate:function(t){var e=t.toString(&quot;utf8&quot;).match(i.root);if(e){var r=function(t){var e=t.match(i.width),r=t.match(i.height),n=t.match(i.viewbox);return{width:e&amp;&amp;o(e[2]),height:r&amp;&amp;o(r[2]),viewbox:n&amp;&amp;s(n[2])}}(e[0]);if(r.width&amp;&amp;r.height)return function(t){return{width:t.width,height:t.height}}(r);if(r.viewbox)return function(t){var e=t.viewbox.width/t.viewbox.height;return t.width?{width:t.width,height:Math.floor(t.width/e)}:t.height?{width:Math.floor(t.height*e),height:t.height}:{width:t.viewbox.width,height:t.viewbox.height}}(r)}throw new TypeError(&quot;invalid svg&quot;)}}},{}],457:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;fs&quot;),i=t(&quot;../readUInt&quot;);function a(t,e){var r=i(t,16,8,e);return(i(t,16,10,e)&lt;&lt;16)+r}function o(t){if(t.length&gt;24)return t.slice(12)}e.exports={detect:function(t){var e=t.toString(&quot;hex&quot;,0,4);return&quot;49492a00&quot;===e||&quot;4d4d002a&quot;===e},calculate:function(t,e){if(!e)throw new TypeError(&quot;Tiff doesn't support buffer&quot;);var s=&quot;BE&quot;===function(t){var e=t.toString(&quot;ascii&quot;,0,2);return&quot;II&quot;===e?&quot;LE&quot;:&quot;MM&quot;===e?&quot;BE&quot;:void 0}(t),l=function(t,e){for(var r,n,s,l={};t&amp;&amp;t.length&amp;&amp;(r=i(t,16,0,e),n=i(t,16,2,e),s=i(t,32,4,e),0!==r);)1!==s||3!==n&amp;&amp;4!==n||(l[r]=a(t,e)),t=o(t);return l}(function(t,e,a){var o=i(t,32,4,a),s=1024,l=n.statSync(e).size;o+s&gt;l&amp;&amp;(s=l-o-10);var c=r.alloc(s),u=n.openSync(e,&quot;r&quot;);return n.readSync(u,c,0,s,o),c.slice(2)}(t,e,s),s),c=l[256],u=l[257];if(!c||!u)throw new TypeError(&quot;Invalid Tiff, missing tags&quot;);return{width:c,height:u}}}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;../readUInt&quot;:445,buffer:111,fs:109}],458:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){var e=&quot;RIFF&quot;===t.toString(&quot;ascii&quot;,0,4),r=&quot;WEBP&quot;===t.toString(&quot;ascii&quot;,8,12),n=&quot;VP8&quot;===t.toString(&quot;ascii&quot;,12,15);return e&amp;&amp;r&amp;&amp;n},calculate:function(t){var e=t.toString(&quot;ascii&quot;,12,16);if(t=t.slice(20,30),&quot;VP8X&quot;===e){var r=t[0];return!(!(0==(192&amp;r))||!(0==(1&amp;r)))&amp;&amp;function(t){return{width:1+t.readUIntLE(4,3),height:1+t.readUIntLE(7,3)}}(t)}if(&quot;VP8 &quot;===e&amp;&amp;47!==t[0])return function(t){return{width:16383&amp;t.readInt16LE(6),height:16383&amp;t.readInt16LE(8)}}(t);var n=t.toString(&quot;hex&quot;,3,6);return&quot;VP8L&quot;===e&amp;&amp;&quot;9d012a&quot;!==n&amp;&amp;function(t){return{width:1+((63&amp;t[2])&lt;&lt;8|t[1]),height:1+((15&amp;t[4])&lt;&lt;10|t[3]&lt;&lt;2|(192&amp;t[2])&gt;&gt;6)}}(t)}}},{}],459:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.length;if(0===r)throw new Error(&quot;Must have at least d+1 points&quot;);var i=t[0].length;if(r&lt;=i)throw new Error(&quot;Must input at least d+1 points&quot;);var o=t.slice(0,i+1),s=n.apply(void 0,o);if(0===s)throw new Error(&quot;Input not in general position&quot;);for(var l=new Array(i+1),u=0;u&lt;=i;++u)l[u]=u;s&lt;0&amp;&amp;(l[0]=1,l[1]=0);var f=new a(l,new Array(i+1),!1),h=f.adjacent,p=new Array(i+2);for(u=0;u&lt;=i;++u){for(var d=l.slice(),g=0;g&lt;=i;++g)g===u&amp;&amp;(d[g]=-1);var m=d[0];d[0]=d[1],d[1]=m;var v=new a(d,new Array(i+1),!0);h[u]=v,p[u]=v}p[i+1]=f;for(u=0;u&lt;=i;++u){d=h[u].vertices;var y=h[u].adjacent;for(g=0;g&lt;=i;++g){var x=d[g];if(x&lt;0)y[g]=f;else for(var b=0;b&lt;=i;++b)h[b].vertices.indexOf(x)&lt;0&amp;&amp;(y[g]=h[b])}}var _=new c(i,o,p),w=!!e;for(u=i+1;u&lt;r;++u)_.insert(t[u],w);return _.boundary()};var n=t(&quot;robust-orientation&quot;),i=t(&quot;simplicial-complex&quot;).compareCells;function a(t,e,r){this.vertices=t,this.adjacent=e,this.boundary=r,this.lastVisited=-1}function o(t,e,r){this.vertices=t,this.cell=e,this.index=r}function s(t,e){return i(t.vertices,e.vertices)}a.prototype.flip=function(){var t=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=t;var e=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=e};var l=[];function c(t,e,r){this.dimension=t,this.vertices=e,this.simplices=r,this.interior=r.filter((function(t){return!t.boundary})),this.tuple=new Array(t+1);for(var i=0;i&lt;=t;++i)this.tuple[i]=this.vertices[i];var a=l[t];a||(a=l[t]=function(t){for(var e=[&quot;function orient(){var tuple=this.tuple;return test(&quot;],r=0;r&lt;=t;++r)r&gt;0&amp;&amp;e.push(&quot;,&quot;),e.push(&quot;tuple[&quot;,r,&quot;]&quot;);e.push(&quot;)}return orient&quot;);var i=new Function(&quot;test&quot;,e.join(&quot;&quot;)),a=n[t+1];return a||(a=n),i(a)}(t)),this.orient=a}var u=c.prototype;u.handleBoundaryDegeneracy=function(t,e){var r=this.dimension,n=this.vertices.length-1,i=this.tuple,a=this.vertices,o=[t];for(t.lastVisited=-n;o.length&gt;0;){(t=o.pop()).vertices;for(var s=t.adjacent,l=0;l&lt;=r;++l){var c=s[l];if(c.boundary&amp;&amp;!(c.lastVisited&lt;=-n)){for(var u=c.vertices,f=0;f&lt;=r;++f){var h=u[f];i[f]=h&lt;0?e:a[h]}var p=this.orient();if(p&gt;0)return c;c.lastVisited=-n,0===p&amp;&amp;o.push(c)}}}return null},u.walk=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,a=this.tuple,o=e?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[o];t:for(;!s.boundary;){for(var l=s.vertices,c=s.adjacent,u=0;u&lt;=n;++u)a[u]=i[l[u]];s.lastVisited=r;for(u=0;u&lt;=n;++u){var f=c[u];if(!(f.lastVisited&gt;=r)){var h=a[u];a[u]=t;var p=this.orient();if(a[u]=h,p&lt;0){s=f;continue t}f.boundary?f.lastVisited=-r:f.lastVisited=r}}return}return s},u.addPeaks=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,l=this.tuple,c=this.interior,u=this.simplices,f=[e];e.lastVisited=r,e.vertices[e.vertices.indexOf(-1)]=r,e.boundary=!1,c.push(e);for(var h=[];f.length&gt;0;){var p=(e=f.pop()).vertices,d=e.adjacent,g=p.indexOf(r);if(!(g&lt;0))for(var m=0;m&lt;=n;++m)if(m!==g){var v=d[m];if(v.boundary&amp;&amp;!(v.lastVisited&gt;=r)){var y=v.vertices;if(v.lastVisited!==-r){for(var x=0,b=0;b&lt;=n;++b)y[b]&lt;0?(x=b,l[b]=t):l[b]=i[y[b]];if(this.orient()&gt;0){y[x]=r,v.boundary=!1,c.push(v),f.push(v),v.lastVisited=r;continue}v.lastVisited=-r}var _=v.adjacent,w=p.slice(),T=d.slice(),k=new a(w,T,!0);u.push(k);var M=_.indexOf(e);if(!(M&lt;0)){_[M]=k,T[g]=v,w[m]=-1,T[m]=e,d[m]=k,k.flip();for(b=0;b&lt;=n;++b){var A=w[b];if(!(A&lt;0||A===r)){for(var S=new Array(n-1),E=0,C=0;C&lt;=n;++C){var L=w[C];L&lt;0||C===b||(S[E++]=L)}h.push(new o(S,k,b))}}}}}}h.sort(s);for(m=0;m+1&lt;h.length;m+=2){var I=h[m],P=h[m+1],z=I.index,O=P.index;z&lt;0||O&lt;0||(I.cell.adjacent[I.index]=P.cell,P.cell.adjacent[P.index]=I.cell)}},u.insert=function(t,e){var r=this.vertices;r.push(t);var n=this.walk(t,e);if(n){for(var i=this.dimension,a=this.tuple,o=0;o&lt;=i;++o){var s=n.vertices[o];a[o]=s&lt;0?t:r[s]}var l=this.orient(a);l&lt;0||(0!==l||(n=this.handleBoundaryDegeneracy(n,t)))&amp;&amp;this.addPeaks(t,n)}},u.boundary=function(){for(var t=this.dimension,e=[],r=this.simplices,n=r.length,i=0;i&lt;n;++i){var a=r[i];if(a.boundary){for(var o=new Array(t),s=a.vertices,l=0,c=0,u=0;u&lt;=t;++u)s[u]&gt;=0?o[l++]=s[u]:c=1&amp;u;if(c===(1&amp;t)){var f=o[0];o[0]=o[1],o[1]=f}e.push(o)}}return e}},{&quot;robust-orientation&quot;:548,&quot;simplicial-complex&quot;:558}],460:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;);function i(t,e,r,n,i){this.mid=t,this.left=e,this.right=r,this.leftPoints=n,this.rightPoints=i,this.count=(e?e.count:0)+(r?r.count:0)+n.length}e.exports=function(t){if(!t||0===t.length)return new v(null);return new v(m(t))};var a=i.prototype;function o(t,e){t.mid=e.mid,t.left=e.left,t.right=e.right,t.leftPoints=e.leftPoints,t.rightPoints=e.rightPoints,t.count=e.count}function s(t,e){var r=m(e);t.mid=r.mid,t.left=r.left,t.right=r.right,t.leftPoints=r.leftPoints,t.rightPoints=r.rightPoints,t.count=r.count}function l(t,e){var r=t.intervals([]);r.push(e),s(t,r)}function c(t,e){var r=t.intervals([]),n=r.indexOf(e);return n&lt;0?0:(r.splice(n,1),s(t,r),1)}function u(t,e,r){for(var n=0;n&lt;t.length&amp;&amp;t[n][0]&lt;=e;++n){var i=r(t[n]);if(i)return i}}function f(t,e,r){for(var n=t.length-1;n&gt;=0&amp;&amp;t[n][1]&gt;=e;--n){var i=r(t[n]);if(i)return i}}function h(t,e){for(var r=0;r&lt;t.length;++r){var n=e(t[r]);if(n)return n}}function p(t,e){return t-e}function d(t,e){var r=t[0]-e[0];return r||t[1]-e[1]}function g(t,e){var r=t[1]-e[1];return r||t[0]-e[0]}function m(t){if(0===t.length)return null;for(var e=[],r=0;r&lt;t.length;++r)e.push(t[r][0],t[r][1]);e.sort(p);var n=e[e.length&gt;&gt;1],a=[],o=[],s=[];for(r=0;r&lt;t.length;++r){var l=t[r];l[1]&lt;n?a.push(l):n&lt;l[0]?o.push(l):s.push(l)}var c=s,u=s.slice();return c.sort(d),u.sort(g),new i(n,m(a),m(o),c,u)}function v(t){this.root=t}a.intervals=function(t){return t.push.apply(t,this.leftPoints),this.left&amp;&amp;this.left.intervals(t),this.right&amp;&amp;this.right.intervals(t),t},a.insert=function(t){var e=this.count-this.leftPoints.length;if(this.count+=1,t[1]&lt;this.mid)this.left?4*(this.left.count+1)&gt;3*(e+1)?l(this,t):this.left.insert(t):this.left=m([t]);else if(t[0]&gt;this.mid)this.right?4*(this.right.count+1)&gt;3*(e+1)?l(this,t):this.right.insert(t):this.right=m([t]);else{var r=n.ge(this.leftPoints,t,d),i=n.ge(this.rightPoints,t,g);this.leftPoints.splice(r,0,t),this.rightPoints.splice(i,0,t)}},a.remove=function(t){var e=this.count-this.leftPoints;if(t[1]&lt;this.mid)return this.left?4*(this.right?this.right.count:0)&gt;3*(e-1)?c(this,t):2===(s=this.left.remove(t))?(this.left=null,this.count-=1,1):(1===s&amp;&amp;(this.count-=1),s):0;if(t[0]&gt;this.mid)return this.right?4*(this.left?this.left.count:0)&gt;3*(e-1)?c(this,t):2===(s=this.right.remove(t))?(this.right=null,this.count-=1,1):(1===s&amp;&amp;(this.count-=1),s):0;if(1===this.count)return this.leftPoints[0]===t?2:0;if(1===this.leftPoints.length&amp;&amp;this.leftPoints[0]===t){if(this.left&amp;&amp;this.right){for(var r=this,i=this.left;i.right;)r=i,i=i.right;if(r===this)i.right=this.right;else{var a=this.left,s=this.right;r.count-=i.count,r.right=i.left,i.left=a,i.right=s}o(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?o(this,this.left):o(this,this.right);return 1}for(a=n.ge(this.leftPoints,t,d);a&lt;this.leftPoints.length&amp;&amp;this.leftPoints[a][0]===t[0];++a)if(this.leftPoints[a]===t){this.count-=1,this.leftPoints.splice(a,1);for(s=n.ge(this.rightPoints,t,g);s&lt;this.rightPoints.length&amp;&amp;this.rightPoints[s][1]===t[1];++s)if(this.rightPoints[s]===t)return this.rightPoints.splice(s,1),1}return 0},a.queryPoint=function(t,e){if(t&lt;this.mid){if(this.left)if(r=this.left.queryPoint(t,e))return r;return u(this.leftPoints,t,e)}if(t&gt;this.mid){var r;if(this.right)if(r=this.right.queryPoint(t,e))return r;return f(this.rightPoints,t,e)}return h(this.leftPoints,e)},a.queryInterval=function(t,e,r){var n;if(t&lt;this.mid&amp;&amp;this.left&amp;&amp;(n=this.left.queryInterval(t,e,r)))return n;if(e&gt;this.mid&amp;&amp;this.right&amp;&amp;(n=this.right.queryInterval(t,e,r)))return n;return e&lt;this.mid?u(this.leftPoints,e,r):t&gt;this.mid?f(this.rightPoints,t,r):h(this.leftPoints,r)};var y=v.prototype;y.insert=function(t){this.root?this.root.insert(t):this.root=new i(t[0],null,null,[t],[t])},y.remove=function(t){if(this.root){var e=this.root.remove(t);return 2===e&amp;&amp;(this.root=null),0!==e}return!1},y.queryPoint=function(t,e){if(this.root)return this.root.queryPoint(t,e)},y.queryInterval=function(t,e,r){if(t&lt;=e&amp;&amp;this.root)return this.root.queryInterval(t,e,r)},Object.defineProperty(y,&quot;count&quot;,{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(y,&quot;intervals&quot;,{get:function(){return this.root?this.root.intervals([]):[]}})},{&quot;binary-search-bounds&quot;:461}],461:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],462:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e=e||new Array(t.length);for(var r=0;r&lt;t.length;++r)e[t[r]]=r;return e}},{}],463:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=r;return e}},{}],464:[function(t,e,r){e.exports=!0},{}],465:[function(t,e,r){function n(t){return!!t.constructor&amp;&amp;&quot;function&quot;==typeof t.constructor.isBuffer&amp;&amp;t.constructor.isBuffer(t)}
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh &lt;https://feross.org&gt;
 * @license  MIT
 */
e.exports=function(t){return null!=t&amp;&amp;(n(t)||function(t){return&quot;function&quot;==typeof t.readFloatLE&amp;&amp;&quot;function&quot;==typeof t.slice&amp;&amp;n(t.slice(0,0))}(t)||!!t._isBuffer)}},{}],466:[function(t,e,r){&quot;use strict&quot;;e.exports=&quot;undefined&quot;!=typeof navigator&amp;&amp;(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))},{}],467:[function(t,e,r){&quot;use strict&quot;;e.exports=a,e.exports.isMobile=a,e.exports.default=a;var n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function a(t){t||(t={});var e=t.ua;if(e||&quot;undefined&quot;==typeof navigator||(e=navigator.userAgent),e&amp;&amp;e.headers&amp;&amp;&quot;string&quot;==typeof e.headers[&quot;user-agent&quot;]&amp;&amp;(e=e.headers[&quot;user-agent&quot;]),&quot;string&quot;!=typeof e)return!1;var r=t.tablet?i.test(e):n.test(e);return!r&amp;&amp;t.tablet&amp;&amp;t.featureDetect&amp;&amp;navigator&amp;&amp;navigator.maxTouchPoints&gt;1&amp;&amp;-1!==e.indexOf(&quot;Macintosh&quot;)&amp;&amp;-1!==e.indexOf(&quot;Safari&quot;)&amp;&amp;(r=!0),r}},{}],468:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=typeof t;return null!==t&amp;&amp;(&quot;object&quot;===e||&quot;function&quot;===e)}},{}],469:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString;e.exports=function(t){var e;return&quot;[object Object]&quot;===n.call(t)&amp;&amp;(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))}},{}],470:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e,r=t.length,n=0;n&lt;r;n++)if(((e=t.charCodeAt(n))&lt;9||e&gt;13)&amp;&amp;32!==e&amp;&amp;133!==e&amp;&amp;160!==e&amp;&amp;5760!==e&amp;&amp;6158!==e&amp;&amp;(e&lt;8192||e&gt;8205)&amp;&amp;8232!==e&amp;&amp;8233!==e&amp;&amp;8239!==e&amp;&amp;8287!==e&amp;&amp;8288!==e&amp;&amp;12288!==e&amp;&amp;65279!==e)return!1;return!0}},{}],471:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return&quot;string&quot;==typeof t&amp;&amp;(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&amp;&amp;/[\dz]$/i.test(t)&amp;&amp;t.length&gt;4))}},{}],472:[function(t,e,r){e.exports=function(t,e,r){return t*(1-r)+e*r}},{}],473:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?e.exports=n():(t=t||self).mapboxgl=n()}(this,(function(){&quot;use strict&quot;;var t,e,r;function n(n,i){if(t)if(e){var a=&quot;var sharedChunk = {}; (&quot;+t+&quot;)(sharedChunk); (&quot;+e+&quot;)(sharedChunk);&quot;,o={};t(o),(r=i(o)).workerUrl=window.URL.createObjectURL(new Blob([a],{type:&quot;text/javascript&quot;}))}else e=i;else t=i}return n(0,(function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r=n;function n(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}n.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},n.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},n.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},n.prototype.solveCurveX=function(t,e){var r,n,i,a,o;for(void 0===e&amp;&amp;(e=1e-6),i=t,o=0;o&lt;8;o++){if(a=this.sampleCurveX(i)-t,Math.abs(a)&lt;e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)&lt;1e-6)break;i-=a/s}if((i=t)&lt;(r=0))return r;if(i&gt;(n=1))return n;for(;r&lt;n;){if(a=this.sampleCurveX(i),Math.abs(a-t)&lt;e)return i;t&gt;a?r=i:n=i,i=.5*(n-r)+r}return i},n.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var i=a;function a(t,e){this.x=t,this.y=e}function o(t,e,n,i){var a=new r(t,e,n,i);return function(t){return a.solve(t)}}a.prototype={clone:function(){return new a(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&amp;&amp;this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=r*this.x+e*this.y;return this.x=e*this.x-r*this.y,this.y=n,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),i=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=e.x+r*(this.x-e.x)-n*(this.y-e.y),this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},a.convert=function(t){return t instanceof a?t:Array.isArray(t)?new a(t[0],t[1]):t};var s=o(.25,.1,.25,1);function l(t,e,r){return Math.min(r,Math.max(e,t))}function c(t,e,r){var n=r-e,i=((t-e)%n+n)%n+e;return i===e?r:i}function u(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}var f=1;function h(){return f++}function p(){return function t(e){return e?(e^16*Math.random()&gt;&gt;e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function d(t){return!!t&amp;&amp;/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function g(t,e){t.forEach((function(t){e[t]&amp;&amp;(e[t]=e[t].bind(e))}))}function m(t,e){return-1!==t.indexOf(e,t.length-e.length)}function v(t,e,r){var n={};for(var i in t)n[i]=e.call(r||this,t[i],i,t);return n}function y(t,e,r){var n={};for(var i in t)e.call(r||this,t[i],i,t)&amp;&amp;(n[i]=t[i]);return n}function x(t){return Array.isArray(t)?t.map(x):&quot;object&quot;==typeof t&amp;&amp;t?v(t,x):t}var b={};function _(t){b[t]||(&quot;undefined&quot;!=typeof console&amp;&amp;console.warn(t),b[t]=!0)}function w(t,e,r){return(r.y-t.y)*(e.x-t.x)&gt;(e.y-t.y)*(r.x-t.x)}function T(t){for(var e=0,r=0,n=t.length,i=n-1,a=void 0,o=void 0;r&lt;n;i=r++)e+=((o=t[i]).x-(a=t[r]).x)*(a.y+o.y);return e}function k(){return&quot;undefined&quot;!=typeof WorkerGlobalScope&amp;&amp;&quot;undefined&quot;!=typeof self&amp;&amp;self instanceof WorkerGlobalScope}function M(t){var e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)&lt;&gt;@\,;\:\\&quot;\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)&lt;&gt;@\,;\:\\&quot;\/\[\]\?\=\{\}\x7F]+)|(?:\&quot;((?:[^&quot;\\]|\\.)*)\&quot;)))?/g,(function(t,r,n,i){var a=n||i;return e[r]=!a||a.toLowerCase(),&quot;&quot;})),e[&quot;max-age&quot;]){var r=parseInt(e[&quot;max-age&quot;],10);isNaN(r)?delete e[&quot;max-age&quot;]:e[&quot;max-age&quot;]=r}return e}var A=null;function S(t){if(null==A){var e=t.navigator?t.navigator.userAgent:null;A=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match(&quot;Safari&quot;)&amp;&amp;!e.match(&quot;Chrome&quot;)))}return A}function E(t){try{var e=self[t];return e.setItem(&quot;_mapbox_test_&quot;,1),e.removeItem(&quot;_mapbox_test_&quot;),!0}catch(t){return!1}}var C,L,I,P,z=self.performance&amp;&amp;self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),O=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,D=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,R={now:z,frame:function(t){var e=O(t);return{cancel:function(){return D(e)}}},getImageData:function(t,e){void 0===e&amp;&amp;(e=0);var r=self.document.createElement(&quot;canvas&quot;),n=r.getContext(&quot;2d&quot;);if(!n)throw new Error(&quot;failed to create canvas 2d context&quot;);return r.width=t.width,r.height=t.height,n.drawImage(t,0,0,t.width,t.height),n.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return C||(C=self.document.createElement(&quot;a&quot;)),C.href=t,C.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&amp;&amp;(null==L&amp;&amp;(L=self.matchMedia(&quot;(prefers-reduced-motion: reduce)&quot;)),L.matches)}},F={API_URL:&quot;https://api.mapbox.com&quot;,get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf(&quot;https://api.mapbox.cn&quot;)?&quot;https://events.mapbox.cn/events/v2&quot;:0===this.API_URL.indexOf(&quot;https://api.mapbox.com&quot;)?&quot;https://events.mapbox.com/events/v2&quot;:null:null},FEEDBACK_URL:&quot;https://apps.mapbox.com/feedback&quot;,REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},B={supported:!1,testSupport:function(t){!N&amp;&amp;P&amp;&amp;(j?U(t):I=t)}},N=!1,j=!1;function U(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,P),t.isContextLost())return;B.supported=!0}catch(t){}t.deleteTexture(e),N=!0}self.document&amp;&amp;((P=self.document.createElement(&quot;img&quot;)).onload=function(){I&amp;&amp;U(I),I=null,j=!0},P.onerror=function(){N=!0,I=null},P.src=&quot;data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=&quot;);var V=&quot;01&quot;,q=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function H(t){return 0===t.indexOf(&quot;mapbox:&quot;)}q.prototype._createSkuToken=function(){var t=function(){for(var t=&quot;&quot;,e=0;e&lt;10;e++)t+=&quot;0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ&quot;[Math.floor(62*Math.random())];return{token:[&quot;1&quot;,V,t].join(&quot;&quot;),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},q.prototype._isSkuTokenExpired=function(){return Date.now()&gt;this._skuTokenExpiresAt},q.prototype.transformRequest=function(t,e){return this._transformRequestFn&amp;&amp;this._transformRequestFn(t,e)||{url:t}},q.prototype.normalizeStyleURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/styles/v1&quot;+r.path,this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeGlyphsURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/fonts/v1&quot;+r.path,this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeSourceURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/v4/&quot;+r.authority+&quot;.json&quot;,r.params.push(&quot;secure&quot;),this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeSpriteURL=function(t,e,r,n){var i=X(t);return H(t)?(i.path=&quot;/styles/v1&quot;+i.path+&quot;/sprite&quot;+e+r,this._makeAPIURL(i,this._customAccessToken||n)):(i.path+=&quot;&quot;+e+r,Z(i))},q.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&amp;&amp;this._createSkuToken(),t&amp;&amp;!H(t))return t;var r=X(t);r.path=r.path.replace(/(\.(png|jpg)\d*)(?=$)/,(R.devicePixelRatio&gt;=2||512===e?&quot;@2x&quot;:&quot;&quot;)+(B.supported?&quot;.webp&quot;:&quot;$1&quot;)),r.path=r.path.replace(/^.+\/v4\//,&quot;/&quot;),r.path=&quot;/v4&quot;+r.path;var n=this._customAccessToken||function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var n=r[e].match(/^access_token=(.*)$/);if(n)return n[1]}return null}(r.params)||F.ACCESS_TOKEN;return F.REQUIRE_ACCESS_TOKEN&amp;&amp;n&amp;&amp;this._skuToken&amp;&amp;r.params.push(&quot;sku=&quot;+this._skuToken),this._makeAPIURL(r,n)},q.prototype.canonicalizeTileURL=function(t,e){var r=X(t);if(!r.path.match(/(^\/v4\/)/)||!r.path.match(/\.[\w]+$/))return t;var n=&quot;mapbox://tiles/&quot;;n+=r.path.replace(&quot;/v4/&quot;,&quot;&quot;);var i=r.params;return e&amp;&amp;(i=i.filter((function(t){return!t.match(/^access_token=/)}))),i.length&amp;&amp;(n+=&quot;?&quot;+i.join(&quot;&amp;&quot;)),n},q.prototype.canonicalizeTileset=function(t,e){for(var r=!!e&amp;&amp;H(e),n=[],i=0,a=t.tiles||[];i&lt;a.length;i+=1){var o=a[i];Y(o)?n.push(this.canonicalizeTileURL(o,r)):n.push(o)}return n},q.prototype._makeAPIURL=function(t,e){var r=&quot;See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes&quot;,n=X(F.API_URL);if(t.protocol=n.protocol,t.authority=n.authority,&quot;/&quot;!==n.path&amp;&amp;(t.path=&quot;&quot;+n.path+t.path),!F.REQUIRE_ACCESS_TOKEN)return Z(t);if(!(e=e||F.ACCESS_TOKEN))throw new Error(&quot;An API access token is required to use Mapbox GL. &quot;+r);if(&quot;s&quot;===e[0])throw new Error(&quot;Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). &quot;+r);return t.params=t.params.filter((function(t){return-1===t.indexOf(&quot;access_token&quot;)})),t.params.push(&quot;access_token=&quot;+e),Z(t)};var G=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Y(t){return G.test(t)}var W=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function X(t){var e=t.match(W);if(!e)throw new Error(&quot;Unable to parse URL object&quot;);return{protocol:e[1],authority:e[2],path:e[3]||&quot;/&quot;,params:e[4]?e[4].split(&quot;&amp;&quot;):[]}}function Z(t){var e=t.params.length?&quot;?&quot;+t.params.join(&quot;&amp;&quot;):&quot;&quot;;return t.protocol+&quot;://&quot;+t.authority+t.path+e}function J(t){if(!t)return null;var e=t.split(&quot;.&quot;);if(!e||3!==e.length)return null;try{return JSON.parse(decodeURIComponent(self.atob(e[1]).split(&quot;&quot;).map((function(t){return&quot;%&quot;+(&quot;00&quot;+t.charCodeAt(0).toString(16)).slice(-2)})).join(&quot;&quot;)))}catch(t){return null}}var K=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};K.prototype.getStorageKey=function(t){var e,r=J(F.ACCESS_TOKEN);return e=r&amp;&amp;r.u?self.btoa(encodeURIComponent(r.u).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(Number(&quot;0x&quot;+e))}))):F.ACCESS_TOKEN||&quot;&quot;,t?&quot;mapbox.eventData.&quot;+t+&quot;:&quot;+e:&quot;mapbox.eventData:&quot;+e},K.prototype.fetchEventData=function(){var t=E(&quot;localStorage&quot;),e=this.getStorageKey(),r=this.getStorageKey(&quot;uuid&quot;);if(t)try{var n=self.localStorage.getItem(e);n&amp;&amp;(this.eventData=JSON.parse(n));var i=self.localStorage.getItem(r);i&amp;&amp;(this.anonId=i)}catch(t){_(&quot;Unable to read from LocalStorage&quot;)}},K.prototype.saveEventData=function(){var t=E(&quot;localStorage&quot;),e=this.getStorageKey(),r=this.getStorageKey(&quot;uuid&quot;);if(t)try{self.localStorage.setItem(r,this.anonId),Object.keys(this.eventData).length&gt;=1&amp;&amp;self.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){_(&quot;Unable to write to LocalStorage&quot;)}},K.prototype.processRequests=function(t){},K.prototype.postEvent=function(t,e,r,n){var i=this;if(F.EVENTS_URL){var a=X(F.EVENTS_URL);a.params.push(&quot;access_token=&quot;+(n||F.ACCESS_TOKEN||&quot;&quot;));var o={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:&quot;mapbox-gl-js&quot;,sdkVersion:&quot;1.10.1&quot;,skuId:V,userId:this.anonId},s=e?u(o,e):o,l={url:Z(a),headers:{&quot;Content-Type&quot;:&quot;text/plain&quot;},body:JSON.stringify([s])};this.pendingRequest=xt(l,(function(t){i.pendingRequest=null,r(t),i.saveEventData(),i.processRequests(n)}))}},K.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var Q,$,tt=function(t){function e(){t.call(this,&quot;map.load&quot;),this.success={},this.skuToken=&quot;&quot;}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.postMapLoadEvent=function(t,e,r,n){this.skuToken=r,(F.EVENTS_URL&amp;&amp;n||F.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return H(t)||Y(t)})))&amp;&amp;this.queueRequest({id:e,timestamp:Date.now()},n)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){var r=this.queue.shift(),n=r.id,i=r.timestamp;n&amp;&amp;this.success[n]||(this.anonId||this.fetchEventData(),d(this.anonId)||(this.anonId=p()),this.postEvent(i,{skuToken:this.skuToken},(function(t){t||n&amp;&amp;(e.success[n]=!0)}),t))}},e}(K),et=new(function(t){function e(e){t.call(this,&quot;appUserTurnstile&quot;),this._customAccessToken=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.postTurnstileEvent=function(t,e){F.EVENTS_URL&amp;&amp;F.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return H(t)||Y(t)}))&amp;&amp;this.queueRequest(Date.now(),e)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){this.anonId&amp;&amp;this.eventData.lastSuccess&amp;&amp;this.eventData.tokenU||this.fetchEventData();var r=J(F.ACCESS_TOKEN),n=r?r.u:F.ACCESS_TOKEN,i=n!==this.eventData.tokenU;d(this.anonId)||(this.anonId=p(),i=!0);var a=this.queue.shift();if(this.eventData.lastSuccess){var o=new Date(this.eventData.lastSuccess),s=new Date(a),l=(a-this.eventData.lastSuccess)/864e5;i=i||l&gt;=1||l&lt;-1||o.getDate()!==s.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(a,{&quot;enabled.telemetry&quot;:!1},(function(t){t||(e.eventData.lastSuccess=a,e.eventData.tokenU=n)}),t)}},e}(K)),rt=et.postTurnstileEvent.bind(et),nt=new tt,it=nt.postMapLoadEvent.bind(nt),at=500,ot=50;function st(){self.caches&amp;&amp;!Q&amp;&amp;(Q=self.caches.open(&quot;mapbox-tiles&quot;))}function lt(t){var e=t.indexOf(&quot;?&quot;);return e&lt;0?t:t.slice(0,e)}var ct,ut=1/0;function ft(){return null==ct&amp;&amp;(ct=self.OffscreenCanvas&amp;&amp;new self.OffscreenCanvas(1,1).getContext(&quot;2d&quot;)&amp;&amp;&quot;function&quot;==typeof self.createImageBitmap),ct}var ht={Unknown:&quot;Unknown&quot;,Style:&quot;Style&quot;,Source:&quot;Source&quot;,Tile:&quot;Tile&quot;,Glyphs:&quot;Glyphs&quot;,SpriteImage:&quot;SpriteImage&quot;,SpriteJSON:&quot;SpriteJSON&quot;,Image:&quot;Image&quot;};&quot;function&quot;==typeof Object.freeze&amp;&amp;Object.freeze(ht);var pt,dt,gt=function(t){function e(e,r,n){401===r&amp;&amp;Y(n)&amp;&amp;(e+=&quot;: you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes&quot;),t.call(this,e),this.status=r,this.url=n,this.name=this.constructor.name,this.message=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.toString=function(){return this.name+&quot;: &quot;+this.message+&quot; (&quot;+this.status+&quot;): &quot;+this.url},e}(Error),mt=k()?function(){return self.worker&amp;&amp;self.worker.referrer}:function(){return(&quot;blob:&quot;===self.location.protocol?self.parent:self).location.href},vt=function(t,e){if(!(/^file:/.test(r=t.url)||/^file:/.test(mt())&amp;&amp;!/^\w+:/.test(r))){if(self.fetch&amp;&amp;self.Request&amp;&amp;self.AbortController&amp;&amp;self.Request.prototype.hasOwnProperty(&quot;signal&quot;))return function(t,e){var r,n=new self.AbortController,i=new self.Request(t.url,{method:t.method||&quot;GET&quot;,body:t.body,credentials:t.credentials,headers:t.headers,referrer:mt(),signal:n.signal}),a=!1,o=!1,s=(r=i.url).indexOf(&quot;sku=&quot;)&gt;0&amp;&amp;Y(r);&quot;json&quot;===t.type&amp;&amp;i.headers.set(&quot;Accept&quot;,&quot;application/json&quot;);var l=function(r,n,a){if(!o){if(r&amp;&amp;&quot;SecurityError&quot;!==r.message&amp;&amp;_(r),n&amp;&amp;a)return c(n);var l=Date.now();self.fetch(i).then((function(r){if(r.ok){var n=s?r.clone():null;return c(r,n,l)}return e(new gt(r.statusText,r.status,t.url))})).catch((function(t){20!==t.code&amp;&amp;e(new Error(t.message))}))}},c=function(r,n,s){(&quot;arrayBuffer&quot;===t.type?r.arrayBuffer():&quot;json&quot;===t.type?r.json():r.text()).then((function(t){o||(n&amp;&amp;s&amp;&amp;function(t,e,r){if(st(),Q){var n={status:e.status,statusText:e.statusText,headers:new self.Headers};e.headers.forEach((function(t,e){return n.headers.set(e,t)}));var i=M(e.headers.get(&quot;Cache-Control&quot;)||&quot;&quot;);i[&quot;no-store&quot;]||(i[&quot;max-age&quot;]&amp;&amp;n.headers.set(&quot;Expires&quot;,new Date(r+1e3*i[&quot;max-age&quot;]).toUTCString()),new Date(n.headers.get(&quot;Expires&quot;)).getTime()-r&lt;42e4||function(t,e){if(void 0===$)try{new Response(new ReadableStream),$=!0}catch(t){$=!1}$?e(t.body):t.blob().then(e)}(e,(function(e){var r=new self.Response(e,n);st(),Q&amp;&amp;Q.then((function(e){return e.put(lt(t.url),r)})).catch((function(t){return _(t.message)}))})))}}(i,n,s),a=!0,e(null,t,r.headers.get(&quot;Cache-Control&quot;),r.headers.get(&quot;Expires&quot;)))})).catch((function(t){o||e(new Error(t.message))}))};return s?function(t,e){if(st(),!Q)return e(null);var r=lt(t.url);Q.then((function(t){t.match(r).then((function(n){var i=function(t){if(!t)return!1;var e=new Date(t.headers.get(&quot;Expires&quot;)||0),r=M(t.headers.get(&quot;Cache-Control&quot;)||&quot;&quot;);return e&gt;Date.now()&amp;&amp;!r[&quot;no-cache&quot;]}(n);t.delete(r),i&amp;&amp;t.put(r,n.clone()),e(null,n,i)})).catch(e)})).catch(e)}(i,l):l(null,null),{cancel:function(){o=!0,a||n.abort()}}}(t,e);if(k()&amp;&amp;self.worker&amp;&amp;self.worker.actor)return self.worker.actor.send(&quot;getResource&quot;,t,e,void 0,!0)}var r;return function(t,e){var r=new self.XMLHttpRequest;for(var n in r.open(t.method||&quot;GET&quot;,t.url,!0),&quot;arrayBuffer&quot;===t.type&amp;&amp;(r.responseType=&quot;arraybuffer&quot;),t.headers)r.setRequestHeader(n,t.headers[n]);return&quot;json&quot;===t.type&amp;&amp;(r.responseType=&quot;text&quot;,r.setRequestHeader(&quot;Accept&quot;,&quot;application/json&quot;)),r.withCredentials=&quot;include&quot;===t.credentials,r.onerror=function(){e(new Error(r.statusText))},r.onload=function(){if((r.status&gt;=200&amp;&amp;r.status&lt;300||0===r.status)&amp;&amp;null!==r.response){var n=r.response;if(&quot;json&quot;===t.type)try{n=JSON.parse(r.response)}catch(t){return e(t)}e(null,n,r.getResponseHeader(&quot;Cache-Control&quot;),r.getResponseHeader(&quot;Expires&quot;))}else e(new gt(r.statusText,r.status,t.url))},r.send(t.body),{cancel:function(){return r.abort()}}}(t,e)},yt=function(t,e){return vt(u(t,{type:&quot;arrayBuffer&quot;}),e)},xt=function(t,e){return vt(u(t,{method:&quot;POST&quot;}),e)};pt=[],dt=0;var bt=function(t,e){if(B.supported&amp;&amp;(t.headers||(t.headers={}),t.headers.accept=&quot;image/webp,*/*&quot;),dt&gt;=F.MAX_PARALLEL_IMAGE_REQUESTS){var r={requestParameters:t,callback:e,cancelled:!1,cancel:function(){this.cancelled=!0}};return pt.push(r),r}dt++;var n=!1,i=function(){if(!n)for(n=!0,dt--;pt.length&amp;&amp;dt&lt;F.MAX_PARALLEL_IMAGE_REQUESTS;){var t=pt.shift();t.cancelled||(t.cancel=bt(t.requestParameters,t.callback).cancel)}},a=yt(t,(function(t,r,n,a){i(),t?e(t):r&amp;&amp;(ft()?function(t,e){var r=new self.Blob([new Uint8Array(t)],{type:&quot;image/png&quot;});self.createImageBitmap(r).then((function(t){e(null,t)})).catch((function(t){e(new Error(&quot;Could not load image because of &quot;+t.message+&quot;. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.&quot;))}))}(r,e):function(t,e,r,n){var i=new self.Image,a=self.URL;i.onload=function(){e(null,i),a.revokeObjectURL(i.src)},i.onerror=function(){return e(new Error(&quot;Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.&quot;))};var o=new self.Blob([new Uint8Array(t)],{type:&quot;image/png&quot;});i.cacheControl=r,i.expires=n,i.src=t.byteLength?a.createObjectURL(o):&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=&quot;}(r,e,n,a))}));return{cancel:function(){a.cancel(),i()}}};function _t(t,e,r){r[t]&amp;&amp;-1!==r[t].indexOf(e)||(r[t]=r[t]||[],r[t].push(e))}function wt(t,e,r){if(r&amp;&amp;r[t]){var n=r[t].indexOf(e);-1!==n&amp;&amp;r[t].splice(n,1)}}var Tt=function(t,e){void 0===e&amp;&amp;(e={}),u(this,e),this.type=t},kt=function(t){function e(e,r){void 0===r&amp;&amp;(r={}),t.call(this,&quot;error&quot;,u({error:e},r))}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(Tt),Mt=function(){};Mt.prototype.on=function(t,e){return this._listeners=this._listeners||{},_t(t,e,this._listeners),this},Mt.prototype.off=function(t,e){return wt(t,e,this._listeners),wt(t,e,this._oneTimeListeners),this},Mt.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},_t(t,e,this._oneTimeListeners),this},Mt.prototype.fire=function(t,e){&quot;string&quot;==typeof t&amp;&amp;(t=new Tt(t,e||{}));var r=t.type;if(this.listens(r)){t.target=this;for(var n=0,i=this._listeners&amp;&amp;this._listeners[r]?this._listeners[r].slice():[];n&lt;i.length;n+=1)i[n].call(this,t);for(var a=0,o=this._oneTimeListeners&amp;&amp;this._oneTimeListeners[r]?this._oneTimeListeners[r].slice():[];a&lt;o.length;a+=1){var s=o[a];wt(r,s,this._oneTimeListeners),s.call(this,t)}var l=this._eventedParent;l&amp;&amp;(u(t,&quot;function&quot;==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),l.fire(t))}else t instanceof kt&amp;&amp;console.error(t.error);return this},Mt.prototype.listens=function(t){return this._listeners&amp;&amp;this._listeners[t]&amp;&amp;this._listeners[t].length&gt;0||this._oneTimeListeners&amp;&amp;this._oneTimeListeners[t]&amp;&amp;this._oneTimeListeners[t].length&gt;0||this._eventedParent&amp;&amp;this._eventedParent.listens(t)},Mt.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var At={$version:8,$root:{version:{required:!0,type:&quot;enum&quot;,values:[8]},name:{type:&quot;string&quot;},metadata:{type:&quot;*&quot;},center:{type:&quot;array&quot;,value:&quot;number&quot;},zoom:{type:&quot;number&quot;},bearing:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;},pitch:{type:&quot;number&quot;,default:0,units:&quot;degrees&quot;},light:{type:&quot;light&quot;},sources:{required:!0,type:&quot;sources&quot;},sprite:{type:&quot;string&quot;},glyphs:{type:&quot;string&quot;},transition:{type:&quot;transition&quot;},layers:{required:!0,type:&quot;array&quot;,value:&quot;layer&quot;}},sources:{&quot;*&quot;:{type:&quot;source&quot;}},source:[&quot;source_vector&quot;,&quot;source_raster&quot;,&quot;source_raster_dem&quot;,&quot;source_geojson&quot;,&quot;source_video&quot;,&quot;source_image&quot;],source_vector:{type:{required:!0,type:&quot;enum&quot;,values:{vector:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:&quot;enum&quot;,values:{xyz:{},tms:{}},default:&quot;xyz&quot;},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},attribution:{type:&quot;string&quot;},promoteId:{type:&quot;promoteId&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_raster:{type:{required:!0,type:&quot;enum&quot;,values:{raster:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},tileSize:{type:&quot;number&quot;,default:512,units:&quot;pixels&quot;},scheme:{type:&quot;enum&quot;,values:{xyz:{},tms:{}},default:&quot;xyz&quot;},attribution:{type:&quot;string&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_raster_dem:{type:{required:!0,type:&quot;enum&quot;,values:{&quot;raster-dem&quot;:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},tileSize:{type:&quot;number&quot;,default:512,units:&quot;pixels&quot;},attribution:{type:&quot;string&quot;},encoding:{type:&quot;enum&quot;,values:{terrarium:{},mapbox:{}},default:&quot;mapbox&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_geojson:{type:{required:!0,type:&quot;enum&quot;,values:{geojson:{}}},data:{type:&quot;*&quot;},maxzoom:{type:&quot;number&quot;,default:18},attribution:{type:&quot;string&quot;},buffer:{type:&quot;number&quot;,default:128,maximum:512,minimum:0},tolerance:{type:&quot;number&quot;,default:.375},cluster:{type:&quot;boolean&quot;,default:!1},clusterRadius:{type:&quot;number&quot;,default:50,minimum:0},clusterMaxZoom:{type:&quot;number&quot;},clusterProperties:{type:&quot;*&quot;},lineMetrics:{type:&quot;boolean&quot;,default:!1},generateId:{type:&quot;boolean&quot;,default:!1},promoteId:{type:&quot;promoteId&quot;}},source_video:{type:{required:!0,type:&quot;enum&quot;,values:{video:{}}},urls:{required:!0,type:&quot;array&quot;,value:&quot;string&quot;},coordinates:{required:!0,type:&quot;array&quot;,length:4,value:{type:&quot;array&quot;,length:2,value:&quot;number&quot;}}},source_image:{type:{required:!0,type:&quot;enum&quot;,values:{image:{}}},url:{required:!0,type:&quot;string&quot;},coordinates:{required:!0,type:&quot;array&quot;,length:4,value:{type:&quot;array&quot;,length:2,value:&quot;number&quot;}}},layer:{id:{type:&quot;string&quot;,required:!0},type:{type:&quot;enum&quot;,values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},&quot;fill-extrusion&quot;:{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:&quot;*&quot;},source:{type:&quot;string&quot;},&quot;source-layer&quot;:{type:&quot;string&quot;},minzoom:{type:&quot;number&quot;,minimum:0,maximum:24},maxzoom:{type:&quot;number&quot;,minimum:0,maximum:24},filter:{type:&quot;filter&quot;},layout:{type:&quot;layout&quot;},paint:{type:&quot;paint&quot;}},layout:[&quot;layout_fill&quot;,&quot;layout_line&quot;,&quot;layout_circle&quot;,&quot;layout_heatmap&quot;,&quot;layout_fill-extrusion&quot;,&quot;layout_symbol&quot;,&quot;layout_raster&quot;,&quot;layout_hillshade&quot;,&quot;layout_background&quot;],layout_background:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_fill:{&quot;fill-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_circle:{&quot;circle-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_heatmap:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},&quot;layout_fill-extrusion&quot;:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_line:{&quot;line-cap&quot;:{type:&quot;enum&quot;,values:{butt:{},round:{},square:{}},default:&quot;butt&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-join&quot;:{type:&quot;enum&quot;,values:{bevel:{},round:{},miter:{}},default:&quot;miter&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-miter-limit&quot;:{type:&quot;number&quot;,default:2,requires:[{&quot;line-join&quot;:&quot;miter&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-round-limit&quot;:{type:&quot;number&quot;,default:1.05,requires:[{&quot;line-join&quot;:&quot;round&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_symbol:{&quot;symbol-placement&quot;:{type:&quot;enum&quot;,values:{point:{},line:{},&quot;line-center&quot;:{}},default:&quot;point&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-spacing&quot;:{type:&quot;number&quot;,default:250,minimum:1,units:&quot;pixels&quot;,requires:[{&quot;symbol-placement&quot;:&quot;line&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-avoid-edges&quot;:{type:&quot;boolean&quot;,default:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;symbol-z-order&quot;:{type:&quot;enum&quot;,values:{auto:{},&quot;viewport-y&quot;:{},source:{}},default:&quot;auto&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-allow-overlap&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-ignore-placement&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-optional&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;,&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-rotation-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-size&quot;:{type:&quot;number&quot;,default:1,minimum:0,units:&quot;factor of the original icon size&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-text-fit&quot;:{type:&quot;enum&quot;,values:{none:{},width:{},height:{},both:{}},default:&quot;none&quot;,requires:[&quot;icon-image&quot;,&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-text-fit-padding&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[0,0,0,0],units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;,&quot;text-field&quot;,{&quot;icon-text-fit&quot;:[&quot;both&quot;,&quot;width&quot;,&quot;height&quot;]}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-image&quot;:{type:&quot;resolvedImage&quot;,tokens:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-padding&quot;:{type:&quot;number&quot;,default:2,minimum:0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-keep-upright&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;,{&quot;icon-rotation-alignment&quot;:&quot;map&quot;},{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-offset&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-anchor&quot;:{type:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},default:&quot;center&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-rotation-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-field&quot;:{type:&quot;formatted&quot;,default:&quot;&quot;,tokens:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-font&quot;:{type:&quot;array&quot;,value:&quot;string&quot;,default:[&quot;Open Sans Regular&quot;,&quot;Arial Unicode MS Regular&quot;],requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-size&quot;:{type:&quot;number&quot;,default:16,minimum:0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-max-width&quot;:{type:&quot;number&quot;,default:10,minimum:0,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-line-height&quot;:{type:&quot;number&quot;,default:1.2,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-letter-spacing&quot;:{type:&quot;number&quot;,default:0,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-justify&quot;:{type:&quot;enum&quot;,values:{auto:{},left:{},center:{},right:{}},default:&quot;center&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-radial-offset&quot;:{type:&quot;number&quot;,units:&quot;ems&quot;,default:0,requires:[&quot;text-field&quot;],&quot;property-type&quot;:&quot;data-driven&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]}},&quot;text-variable-anchor&quot;:{type:&quot;array&quot;,value:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;point&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-anchor&quot;:{type:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},default:&quot;center&quot;,requires:[&quot;text-field&quot;,{&quot;!&quot;:&quot;text-variable-anchor&quot;}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-max-angle&quot;:{type:&quot;number&quot;,default:45,units:&quot;degrees&quot;,requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-writing-mode&quot;:{type:&quot;array&quot;,value:&quot;enum&quot;,values:{horizontal:{},vertical:{}},requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;point&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-padding&quot;:{type:&quot;number&quot;,default:2,minimum:0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-keep-upright&quot;:{type:&quot;boolean&quot;,default:!0,requires:[&quot;text-field&quot;,{&quot;text-rotation-alignment&quot;:&quot;map&quot;},{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-transform&quot;:{type:&quot;enum&quot;,values:{none:{},uppercase:{},lowercase:{}},default:&quot;none&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-offset&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,units:&quot;ems&quot;,length:2,default:[0,0],requires:[&quot;text-field&quot;,{&quot;!&quot;:&quot;text-radial-offset&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-allow-overlap&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-ignore-placement&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-optional&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;,&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_raster:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_hillshade:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},filter:{type:&quot;array&quot;,value:&quot;*&quot;},filter_operator:{type:&quot;enum&quot;,values:{&quot;==&quot;:{},&quot;!=&quot;:{},&quot;&gt;&quot;:{},&quot;&gt;=&quot;:{},&quot;&lt;&quot;:{},&quot;&lt;=&quot;:{},in:{},&quot;!in&quot;:{},all:{},any:{},none:{},has:{},&quot;!has&quot;:{},within:{}}},geometry_type:{type:&quot;enum&quot;,values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:&quot;expression&quot;},stops:{type:&quot;array&quot;,value:&quot;function_stop&quot;},base:{type:&quot;number&quot;,default:1,minimum:0},property:{type:&quot;string&quot;,default:&quot;$zoom&quot;},type:{type:&quot;enum&quot;,values:{identity:{},exponential:{},interval:{},categorical:{}},default:&quot;exponential&quot;},colorSpace:{type:&quot;enum&quot;,values:{rgb:{},lab:{},hcl:{}},default:&quot;rgb&quot;},default:{type:&quot;*&quot;,required:!1}},function_stop:{type:&quot;array&quot;,minimum:0,maximum:24,value:[&quot;number&quot;,&quot;color&quot;],length:2},expression:{type:&quot;array&quot;,value:&quot;*&quot;,minimum:1},expression_name:{type:&quot;enum&quot;,values:{let:{group:&quot;Variable binding&quot;},var:{group:&quot;Variable binding&quot;},literal:{group:&quot;Types&quot;},array:{group:&quot;Types&quot;},at:{group:&quot;Lookup&quot;},in:{group:&quot;Lookup&quot;},&quot;index-of&quot;:{group:&quot;Lookup&quot;},slice:{group:&quot;Lookup&quot;},case:{group:&quot;Decision&quot;},match:{group:&quot;Decision&quot;},coalesce:{group:&quot;Decision&quot;},step:{group:&quot;Ramps, scales, curves&quot;},interpolate:{group:&quot;Ramps, scales, curves&quot;},&quot;interpolate-hcl&quot;:{group:&quot;Ramps, scales, curves&quot;},&quot;interpolate-lab&quot;:{group:&quot;Ramps, scales, curves&quot;},ln2:{group:&quot;Math&quot;},pi:{group:&quot;Math&quot;},e:{group:&quot;Math&quot;},typeof:{group:&quot;Types&quot;},string:{group:&quot;Types&quot;},number:{group:&quot;Types&quot;},boolean:{group:&quot;Types&quot;},object:{group:&quot;Types&quot;},collator:{group:&quot;Types&quot;},format:{group:&quot;Types&quot;},image:{group:&quot;Types&quot;},&quot;number-format&quot;:{group:&quot;Types&quot;},&quot;to-string&quot;:{group:&quot;Types&quot;},&quot;to-number&quot;:{group:&quot;Types&quot;},&quot;to-boolean&quot;:{group:&quot;Types&quot;},&quot;to-rgba&quot;:{group:&quot;Color&quot;},&quot;to-color&quot;:{group:&quot;Types&quot;},rgb:{group:&quot;Color&quot;},rgba:{group:&quot;Color&quot;},get:{group:&quot;Lookup&quot;},has:{group:&quot;Lookup&quot;},length:{group:&quot;Lookup&quot;},properties:{group:&quot;Feature data&quot;},&quot;feature-state&quot;:{group:&quot;Feature data&quot;},&quot;geometry-type&quot;:{group:&quot;Feature data&quot;},id:{group:&quot;Feature data&quot;},zoom:{group:&quot;Zoom&quot;},&quot;heatmap-density&quot;:{group:&quot;Heatmap&quot;},&quot;line-progress&quot;:{group:&quot;Feature data&quot;},accumulated:{group:&quot;Feature data&quot;},&quot;+&quot;:{group:&quot;Math&quot;},&quot;*&quot;:{group:&quot;Math&quot;},&quot;-&quot;:{group:&quot;Math&quot;},&quot;/&quot;:{group:&quot;Math&quot;},&quot;%&quot;:{group:&quot;Math&quot;},&quot;^&quot;:{group:&quot;Math&quot;},sqrt:{group:&quot;Math&quot;},log10:{group:&quot;Math&quot;},ln:{group:&quot;Math&quot;},log2:{group:&quot;Math&quot;},sin:{group:&quot;Math&quot;},cos:{group:&quot;Math&quot;},tan:{group:&quot;Math&quot;},asin:{group:&quot;Math&quot;},acos:{group:&quot;Math&quot;},atan:{group:&quot;Math&quot;},min:{group:&quot;Math&quot;},max:{group:&quot;Math&quot;},round:{group:&quot;Math&quot;},abs:{group:&quot;Math&quot;},ceil:{group:&quot;Math&quot;},floor:{group:&quot;Math&quot;},distance:{group:&quot;Math&quot;},&quot;==&quot;:{group:&quot;Decision&quot;},&quot;!=&quot;:{group:&quot;Decision&quot;},&quot;&gt;&quot;:{group:&quot;Decision&quot;},&quot;&lt;&quot;:{group:&quot;Decision&quot;},&quot;&gt;=&quot;:{group:&quot;Decision&quot;},&quot;&lt;=&quot;:{group:&quot;Decision&quot;},all:{group:&quot;Decision&quot;},any:{group:&quot;Decision&quot;},&quot;!&quot;:{group:&quot;Decision&quot;},within:{group:&quot;Decision&quot;},&quot;is-supported-script&quot;:{group:&quot;String&quot;},upcase:{group:&quot;String&quot;},downcase:{group:&quot;String&quot;},concat:{group:&quot;String&quot;},&quot;resolved-locale&quot;:{group:&quot;String&quot;}}},light:{anchor:{type:&quot;enum&quot;,default:&quot;viewport&quot;,values:{map:{},viewport:{}},&quot;property-type&quot;:&quot;data-constant&quot;,transition:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]}},position:{type:&quot;array&quot;,default:[1.15,210,30],length:3,value:&quot;number&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]}},color:{type:&quot;color&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,default:&quot;#ffffff&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},transition:!0},intensity:{type:&quot;number&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},transition:!0}},paint:[&quot;paint_fill&quot;,&quot;paint_line&quot;,&quot;paint_circle&quot;,&quot;paint_heatmap&quot;,&quot;paint_fill-extrusion&quot;,&quot;paint_symbol&quot;,&quot;paint_raster&quot;,&quot;paint_hillshade&quot;,&quot;paint_background&quot;],paint_fill:{&quot;fill-antialias&quot;:{type:&quot;boolean&quot;,default:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-outline-color&quot;:{type:&quot;color&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-pattern&quot;},{&quot;fill-antialias&quot;:!0}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;fill-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;}},&quot;paint_fill-extrusion&quot;:{&quot;fill-extrusion-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-extrusion-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;fill-extrusion-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;},&quot;fill-extrusion-height&quot;:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;meters&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-base&quot;:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;meters&quot;,transition:!0,requires:[&quot;fill-extrusion-height&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-vertical-gradient&quot;:{type:&quot;boolean&quot;,default:!0,transition:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_line:{&quot;line-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;line-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;line-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-width&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-gap-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-offset&quot;:{type:&quot;number&quot;,default:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-dasharray&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,minimum:0,transition:!0,units:&quot;line widths&quot;,requires:[{&quot;!&quot;:&quot;line-pattern&quot;}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;cross-faded&quot;},&quot;line-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;},&quot;line-gradient&quot;:{type:&quot;color&quot;,transition:!1,requires:[{&quot;!&quot;:&quot;line-dasharray&quot;},{&quot;!&quot;:&quot;line-pattern&quot;},{source:&quot;geojson&quot;,has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:[&quot;line-progress&quot;]},&quot;property-type&quot;:&quot;color-ramp&quot;}},paint_circle:{&quot;circle-radius&quot;:{type:&quot;number&quot;,default:5,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-blur&quot;:{type:&quot;number&quot;,default:0,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;circle-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-pitch-scale&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;viewport&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-stroke-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-stroke-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-stroke-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;}},paint_heatmap:{&quot;heatmap-radius&quot;:{type:&quot;number&quot;,default:30,minimum:1,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;heatmap-weight&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;heatmap-intensity&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;heatmap-color&quot;:{type:&quot;color&quot;,default:[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;heatmap-density&quot;],0,&quot;rgba(0, 0, 255, 0)&quot;,.1,&quot;royalblue&quot;,.3,&quot;cyan&quot;,.5,&quot;lime&quot;,.7,&quot;yellow&quot;,1,&quot;red&quot;],transition:!1,expression:{interpolated:!0,parameters:[&quot;heatmap-density&quot;]},&quot;property-type&quot;:&quot;color-ramp&quot;},&quot;heatmap-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_symbol:{&quot;icon-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-color&quot;:{type:&quot;color&quot;,default:&quot;rgba(0, 0, 0, 0)&quot;,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;icon-image&quot;,&quot;icon-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,overridable:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-color&quot;:{type:&quot;color&quot;,default:&quot;rgba(0, 0, 0, 0)&quot;,transition:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;text-field&quot;,&quot;text-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_raster:{&quot;raster-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-hue-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,transition:!0,units:&quot;degrees&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-brightness-min&quot;:{type:&quot;number&quot;,default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-brightness-max&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-saturation&quot;:{type:&quot;number&quot;,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-contrast&quot;:{type:&quot;number&quot;,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-resampling&quot;:{type:&quot;enum&quot;,values:{linear:{},nearest:{}},default:&quot;linear&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-fade-duration&quot;:{type:&quot;number&quot;,default:300,minimum:0,transition:!1,units:&quot;milliseconds&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_hillshade:{&quot;hillshade-illumination-direction&quot;:{type:&quot;number&quot;,default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-illumination-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;viewport&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-exaggeration&quot;:{type:&quot;number&quot;,default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-shadow-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-highlight-color&quot;:{type:&quot;color&quot;,default:&quot;#FFFFFF&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-accent-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_background:{&quot;background-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;background-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;background-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;cross-faded&quot;},&quot;background-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},transition:{duration:{type:&quot;number&quot;,default:300,minimum:0,units:&quot;milliseconds&quot;},delay:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;milliseconds&quot;}},&quot;property-type&quot;:{&quot;data-driven&quot;:{type:&quot;property-type&quot;},&quot;cross-faded&quot;:{type:&quot;property-type&quot;},&quot;cross-faded-data-driven&quot;:{type:&quot;property-type&quot;},&quot;color-ramp&quot;:{type:&quot;property-type&quot;},&quot;data-constant&quot;:{type:&quot;property-type&quot;},constant:{type:&quot;property-type&quot;}},promoteId:{&quot;*&quot;:{type:&quot;string&quot;}}},St=function(t,e,r,n){this.message=(t?t+&quot;: &quot;:&quot;&quot;)+r,n&amp;&amp;(this.identifier=n),null!=e&amp;&amp;e.__line__&amp;&amp;(this.line=e.__line__)};function Et(t){var e=t.value;return e?[new St(t.key,e,&quot;constants have been deprecated as of v8&quot;)]:[]}function Ct(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}function Lt(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function It(t){if(Array.isArray(t))return t.map(It);if(t instanceof Object&amp;&amp;!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var r in t)e[r]=It(t[r]);return e}return Lt(t)}var Pt=function(t){function e(e,r){t.call(this,r),this.message=r,this.key=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(Error),zt=function(t,e){void 0===e&amp;&amp;(e=[]),this.parent=t,this.bindings={};for(var r=0,n=e;r&lt;n.length;r+=1){var i=n[r];this.bindings[i[0]]=i[1]}};zt.prototype.concat=function(t){return new zt(this,t)},zt.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+&quot; not found in scope.&quot;)},zt.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&amp;&amp;this.parent.has(t)};var Ot={kind:&quot;null&quot;},Dt={kind:&quot;number&quot;},Rt={kind:&quot;string&quot;},Ft={kind:&quot;boolean&quot;},Bt={kind:&quot;color&quot;},Nt={kind:&quot;object&quot;},jt={kind:&quot;value&quot;},Ut={kind:&quot;collator&quot;},Vt={kind:&quot;formatted&quot;},qt={kind:&quot;resolvedImage&quot;};function Ht(t,e){return{kind:&quot;array&quot;,itemType:t,N:e}}function Gt(t){if(&quot;array&quot;===t.kind){var e=Gt(t.itemType);return&quot;number&quot;==typeof t.N?&quot;array&lt;&quot;+e+&quot;, &quot;+t.N+&quot;&gt;&quot;:&quot;value&quot;===t.itemType.kind?&quot;array&quot;:&quot;array&lt;&quot;+e+&quot;&gt;&quot;}return t.kind}var Yt=[Ot,Dt,Rt,Ft,Bt,Vt,Nt,Ht(jt),qt];function Wt(t,e){if(&quot;error&quot;===e.kind)return null;if(&quot;array&quot;===t.kind){if(&quot;array&quot;===e.kind&amp;&amp;(0===e.N&amp;&amp;&quot;value&quot;===e.itemType.kind||!Wt(t.itemType,e.itemType))&amp;&amp;(&quot;number&quot;!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(&quot;value&quot;===t.kind)for(var r=0,n=Yt;r&lt;n.length;r+=1)if(!Wt(n[r],e))return null}return&quot;Expected &quot;+Gt(t)+&quot; but found &quot;+Gt(e)+&quot; instead.&quot;}function Xt(t,e){return e.some((function(e){return e.kind===t.kind}))}function Zt(t,e){return e.some((function(e){return&quot;null&quot;===e?null===t:&quot;array&quot;===e?Array.isArray(t):&quot;object&quot;===e?t&amp;&amp;!Array.isArray(t)&amp;&amp;&quot;object&quot;==typeof t:e===typeof t}))}var Jt=e((function(t,e){var r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function n(t){return(t=Math.round(t))&lt;0?0:t&gt;255?255:t}function i(t){return n(&quot;%&quot;===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function a(t){return(e=&quot;%&quot;===t[t.length-1]?parseFloat(t)/100:parseFloat(t))&lt;0?0:e&gt;1?1:e;var e}function o(t,e,r){return r&lt;0?r+=1:r&gt;1&amp;&amp;(r-=1),6*r&lt;1?t+(e-t)*r*6:2*r&lt;1?e:3*r&lt;2?t+(e-t)*(2/3-r)*6:t}try{e.parseCSSColor=function(t){var e,s=t.replace(/ /g,&quot;&quot;).toLowerCase();if(s in r)return r[s].slice();if(&quot;#&quot;===s[0])return 4===s.length?(e=parseInt(s.substr(1),16))&gt;=0&amp;&amp;e&lt;=4095?[(3840&amp;e)&gt;&gt;4|(3840&amp;e)&gt;&gt;8,240&amp;e|(240&amp;e)&gt;&gt;4,15&amp;e|(15&amp;e)&lt;&lt;4,1]:null:7===s.length&amp;&amp;(e=parseInt(s.substr(1),16))&gt;=0&amp;&amp;e&lt;=16777215?[(16711680&amp;e)&gt;&gt;16,(65280&amp;e)&gt;&gt;8,255&amp;e,1]:null;var l=s.indexOf(&quot;(&quot;),c=s.indexOf(&quot;)&quot;);if(-1!==l&amp;&amp;c+1===s.length){var u=s.substr(0,l),f=s.substr(l+1,c-(l+1)).split(&quot;,&quot;),h=1;switch(u){case&quot;rgba&quot;:if(4!==f.length)return null;h=a(f.pop());case&quot;rgb&quot;:return 3!==f.length?null:[i(f[0]),i(f[1]),i(f[2]),h];case&quot;hsla&quot;:if(4!==f.length)return null;h=a(f.pop());case&quot;hsl&quot;:if(3!==f.length)return null;var p=(parseFloat(f[0])%360+360)%360/360,d=a(f[1]),g=a(f[2]),m=g&lt;=.5?g*(d+1):g+d-g*d,v=2*g-m;return[n(255*o(v,m,p+1/3)),n(255*o(v,m,p)),n(255*o(v,m,p-1/3)),h];default:return null}}return null}}catch(t){}})).parseCSSColor,Kt=function(t,e,r,n){void 0===n&amp;&amp;(n=1),this.r=t,this.g=e,this.b=r,this.a=n};Kt.parse=function(t){if(t){if(t instanceof Kt)return t;if(&quot;string&quot;==typeof t){var e=Jt(t);if(e)return new Kt(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},Kt.prototype.toString=function(){var t=this.toArray(),e=t[1],r=t[2],n=t[3];return&quot;rgba(&quot;+Math.round(t[0])+&quot;,&quot;+Math.round(e)+&quot;,&quot;+Math.round(r)+&quot;,&quot;+n+&quot;)&quot;},Kt.prototype.toArray=function(){var t=this.a;return 0===t?[0,0,0,0]:[255*this.r/t,255*this.g/t,255*this.b/t,t]},Kt.black=new Kt(0,0,0,1),Kt.white=new Kt(1,1,1,1),Kt.transparent=new Kt(0,0,0,0),Kt.red=new Kt(1,0,0,1);var Qt=function(t,e,r){this.sensitivity=t?e?&quot;variant&quot;:&quot;case&quot;:e?&quot;accent&quot;:&quot;base&quot;,this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:&quot;search&quot;})};Qt.prototype.compare=function(t,e){return this.collator.compare(t,e)},Qt.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var $t=function(t,e,r,n,i){this.text=t,this.image=e,this.scale=r,this.fontStack=n,this.textColor=i},te=function(t){this.sections=t};te.fromString=function(t){return new te([new $t(t,null,null,null,null)])},te.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&amp;&amp;0!==t.image.name.length}))},te.factory=function(t){return t instanceof te?t:te.fromString(t)},te.prototype.toString=function(){return 0===this.sections.length?&quot;&quot;:this.sections.map((function(t){return t.text})).join(&quot;&quot;)},te.prototype.serialize=function(){for(var t=[&quot;format&quot;],e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];if(n.image)t.push([&quot;image&quot;,n.image.name]);else{t.push(n.text);var i={};n.fontStack&amp;&amp;(i[&quot;text-font&quot;]=[&quot;literal&quot;,n.fontStack.split(&quot;,&quot;)]),n.scale&amp;&amp;(i[&quot;font-scale&quot;]=n.scale),n.textColor&amp;&amp;(i[&quot;text-color&quot;]=[&quot;rgba&quot;].concat(n.textColor.toArray())),t.push(i)}}return t};var ee=function(t){this.name=t.name,this.available=t.available};function re(t,e,r,n){return&quot;number&quot;==typeof t&amp;&amp;t&gt;=0&amp;&amp;t&lt;=255&amp;&amp;&quot;number&quot;==typeof e&amp;&amp;e&gt;=0&amp;&amp;e&lt;=255&amp;&amp;&quot;number&quot;==typeof r&amp;&amp;r&gt;=0&amp;&amp;r&lt;=255?void 0===n||&quot;number&quot;==typeof n&amp;&amp;n&gt;=0&amp;&amp;n&lt;=1?null:&quot;Invalid rgba value [&quot;+[t,e,r,n].join(&quot;, &quot;)+&quot;]: 'a' must be between 0 and 1.&quot;:&quot;Invalid rgba value [&quot;+(&quot;number&quot;==typeof n?[t,e,r,n]:[t,e,r]).join(&quot;, &quot;)+&quot;]: 'r', 'g', and 'b' must be between 0 and 255.&quot;}function ne(t){if(null===t)return!0;if(&quot;string&quot;==typeof t)return!0;if(&quot;boolean&quot;==typeof t)return!0;if(&quot;number&quot;==typeof t)return!0;if(t instanceof Kt)return!0;if(t instanceof Qt)return!0;if(t instanceof te)return!0;if(t instanceof ee)return!0;if(Array.isArray(t)){for(var e=0,r=t;e&lt;r.length;e+=1)if(!ne(r[e]))return!1;return!0}if(&quot;object&quot;==typeof t){for(var n in t)if(!ne(t[n]))return!1;return!0}return!1}function ie(t){if(null===t)return Ot;if(&quot;string&quot;==typeof t)return Rt;if(&quot;boolean&quot;==typeof t)return Ft;if(&quot;number&quot;==typeof t)return Dt;if(t instanceof Kt)return Bt;if(t instanceof Qt)return Ut;if(t instanceof te)return Vt;if(t instanceof ee)return qt;if(Array.isArray(t)){for(var e,r=t.length,n=0,i=t;n&lt;i.length;n+=1){var a=ie(i[n]);if(e){if(e===a)continue;e=jt;break}e=a}return Ht(e||jt,r)}return Nt}function ae(t){var e=typeof t;return null===t?&quot;&quot;:&quot;string&quot;===e||&quot;number&quot;===e||&quot;boolean&quot;===e?String(t):t instanceof Kt||t instanceof te||t instanceof ee?t.toString():JSON.stringify(t)}ee.prototype.toString=function(){return this.name},ee.fromString=function(t){return t?new ee({name:t,available:!1}):null},ee.prototype.serialize=function(){return[&quot;image&quot;,this.name]};var oe=function(t,e){this.type=t,this.value=e};oe.parse=function(t,e){if(2!==t.length)return e.error(&quot;'literal' expression requires exactly one argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);if(!ne(t[1]))return e.error(&quot;invalid value&quot;);var r=t[1],n=ie(r),i=e.expectedType;return&quot;array&quot;!==n.kind||0!==n.N||!i||&quot;array&quot;!==i.kind||&quot;number&quot;==typeof i.N&amp;&amp;0!==i.N||(n=i),new oe(n,r)},oe.prototype.evaluate=function(){return this.value},oe.prototype.eachChild=function(){},oe.prototype.outputDefined=function(){return!0},oe.prototype.serialize=function(){return&quot;array&quot;===this.type.kind||&quot;object&quot;===this.type.kind?[&quot;literal&quot;,this.value]:this.value instanceof Kt?[&quot;rgba&quot;].concat(this.value.toArray()):this.value instanceof te?this.value.serialize():this.value};var se=function(t){this.name=&quot;ExpressionEvaluationError&quot;,this.message=t};se.prototype.toJSON=function(){return this.message};var le={string:Rt,number:Dt,boolean:Ft,object:Nt},ce=function(t,e){this.type=t,this.args=e};ce.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r,n=1,i=t[0];if(&quot;array&quot;===i){var a,o;if(t.length&gt;2){var s=t[1];if(&quot;string&quot;!=typeof s||!(s in le)||&quot;object&quot;===s)return e.error('The item type argument of &quot;array&quot; must be one of string, number, boolean',1);a=le[s],n++}else a=jt;if(t.length&gt;3){if(null!==t[2]&amp;&amp;(&quot;number&quot;!=typeof t[2]||t[2]&lt;0||t[2]!==Math.floor(t[2])))return e.error('The length argument to &quot;array&quot; must be a positive integer literal',2);o=t[2],n++}r=Ht(a,o)}else r=le[i];for(var l=[];n&lt;t.length;n++){var c=e.parse(t[n],n,jt);if(!c)return null;l.push(c)}return new ce(r,l)},ce.prototype.evaluate=function(t){for(var e=0;e&lt;this.args.length;e++){var r=this.args[e].evaluate(t);if(!Wt(this.type,ie(r)))return r;if(e===this.args.length-1)throw new se(&quot;Expected value to be of type &quot;+Gt(this.type)+&quot;, but found &quot;+Gt(ie(r))+&quot; instead.&quot;)}return null},ce.prototype.eachChild=function(t){this.args.forEach(t)},ce.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ce.prototype.serialize=function(){var t=this.type,e=[t.kind];if(&quot;array&quot;===t.kind){var r=t.itemType;if(&quot;string&quot;===r.kind||&quot;number&quot;===r.kind||&quot;boolean&quot;===r.kind){e.push(r.kind);var n=t.N;(&quot;number&quot;==typeof n||this.args.length&gt;1)&amp;&amp;e.push(n)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var ue=function(t){this.type=Vt,this.sections=t};ue.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r=t[1];if(!Array.isArray(r)&amp;&amp;&quot;object&quot;==typeof r)return e.error(&quot;First argument must be an image or text section.&quot;);for(var n=[],i=!1,a=1;a&lt;=t.length-1;++a){var o=t[a];if(i&amp;&amp;&quot;object&quot;==typeof o&amp;&amp;!Array.isArray(o)){i=!1;var s=null;if(o[&quot;font-scale&quot;]&amp;&amp;!(s=e.parse(o[&quot;font-scale&quot;],1,Dt)))return null;var l=null;if(o[&quot;text-font&quot;]&amp;&amp;!(l=e.parse(o[&quot;text-font&quot;],1,Ht(Rt))))return null;var c=null;if(o[&quot;text-color&quot;]&amp;&amp;!(c=e.parse(o[&quot;text-color&quot;],1,Bt)))return null;var u=n[n.length-1];u.scale=s,u.font=l,u.textColor=c}else{var f=e.parse(t[a],1,jt);if(!f)return null;var h=f.type.kind;if(&quot;string&quot;!==h&amp;&amp;&quot;value&quot;!==h&amp;&amp;&quot;null&quot;!==h&amp;&amp;&quot;resolvedImage&quot;!==h)return e.error(&quot;Formatted text type must be 'string', 'value', 'image' or 'null'.&quot;);i=!0,n.push({content:f,scale:null,font:null,textColor:null})}}return new ue(n)},ue.prototype.evaluate=function(t){return new te(this.sections.map((function(e){var r=e.content.evaluate(t);return ie(r)===qt?new $t(&quot;&quot;,r,null,null,null):new $t(ae(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(&quot;,&quot;):null,e.textColor?e.textColor.evaluate(t):null)})))},ue.prototype.eachChild=function(t){for(var e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];t(n.content),n.scale&amp;&amp;t(n.scale),n.font&amp;&amp;t(n.font),n.textColor&amp;&amp;t(n.textColor)}},ue.prototype.outputDefined=function(){return!1},ue.prototype.serialize=function(){for(var t=[&quot;format&quot;],e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];t.push(n.content.serialize());var i={};n.scale&amp;&amp;(i[&quot;font-scale&quot;]=n.scale.serialize()),n.font&amp;&amp;(i[&quot;text-font&quot;]=n.font.serialize()),n.textColor&amp;&amp;(i[&quot;text-color&quot;]=n.textColor.serialize()),t.push(i)}return t};var fe=function(t){this.type=qt,this.input=t};fe.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected two arguments.&quot;);var r=e.parse(t[1],1,Rt);return r?new fe(r):e.error(&quot;No image name provided.&quot;)},fe.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=ee.fromString(e);return r&amp;&amp;t.availableImages&amp;&amp;(r.available=t.availableImages.indexOf(e)&gt;-1),r},fe.prototype.eachChild=function(t){t(this.input)},fe.prototype.outputDefined=function(){return!1},fe.prototype.serialize=function(){return[&quot;image&quot;,this.input.serialize()]};var he={&quot;to-boolean&quot;:Ft,&quot;to-color&quot;:Bt,&quot;to-number&quot;:Dt,&quot;to-string&quot;:Rt},pe=function(t,e){this.type=t,this.args=e};pe.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r=t[0];if((&quot;to-boolean&quot;===r||&quot;to-string&quot;===r)&amp;&amp;2!==t.length)return e.error(&quot;Expected one argument.&quot;);for(var n=he[r],i=[],a=1;a&lt;t.length;a++){var o=e.parse(t[a],a,jt);if(!o)return null;i.push(o)}return new pe(n,i)},pe.prototype.evaluate=function(t){if(&quot;boolean&quot;===this.type.kind)return Boolean(this.args[0].evaluate(t));if(&quot;color&quot;===this.type.kind){for(var e,r,n=0,i=this.args;n&lt;i.length;n+=1){if(r=null,(e=i[n].evaluate(t))instanceof Kt)return e;if(&quot;string&quot;==typeof e){var a=t.parseColor(e);if(a)return a}else if(Array.isArray(e)&amp;&amp;!(r=e.length&lt;3||e.length&gt;4?&quot;Invalid rbga value &quot;+JSON.stringify(e)+&quot;: expected an array containing either three or four numeric values.&quot;:re(e[0],e[1],e[2],e[3])))return new Kt(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new se(r||&quot;Could not parse color from value '&quot;+(&quot;string&quot;==typeof e?e:String(JSON.stringify(e)))+&quot;'&quot;)}if(&quot;number&quot;===this.type.kind){for(var o=null,s=0,l=this.args;s&lt;l.length;s+=1){if(null===(o=l[s].evaluate(t)))return 0;var c=Number(o);if(!isNaN(c))return c}throw new se(&quot;Could not convert &quot;+JSON.stringify(o)+&quot; to number.&quot;)}return&quot;formatted&quot;===this.type.kind?te.fromString(ae(this.args[0].evaluate(t))):&quot;resolvedImage&quot;===this.type.kind?ee.fromString(ae(this.args[0].evaluate(t))):ae(this.args[0].evaluate(t))},pe.prototype.eachChild=function(t){this.args.forEach(t)},pe.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},pe.prototype.serialize=function(){if(&quot;formatted&quot;===this.type.kind)return new ue([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(&quot;resolvedImage&quot;===this.type.kind)return new fe(this.args[0]).serialize();var t=[&quot;to-&quot;+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};var de=[&quot;Unknown&quot;,&quot;Point&quot;,&quot;LineString&quot;,&quot;Polygon&quot;],ge=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};ge.prototype.id=function(){return this.feature&amp;&amp;&quot;id&quot;in this.feature?this.feature.id:null},ge.prototype.geometryType=function(){return this.feature?&quot;number&quot;==typeof this.feature.type?de[this.feature.type]:this.feature.type:null},ge.prototype.geometry=function(){return this.feature&amp;&amp;&quot;geometry&quot;in this.feature?this.feature.geometry:null},ge.prototype.canonicalID=function(){return this.canonical},ge.prototype.properties=function(){return this.feature&amp;&amp;this.feature.properties||{}},ge.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=Kt.parse(t)),e};var me=function(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n};me.prototype.evaluate=function(t){return this._evaluate(t,this.args)},me.prototype.eachChild=function(t){this.args.forEach(t)},me.prototype.outputDefined=function(){return!1},me.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},me.parse=function(t,e){var r,n=t[0],i=me.definitions[n];if(!i)return e.error('Unknown expression &quot;'+n+'&quot;. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0);for(var a=Array.isArray(i)?i[0]:i.type,o=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=o.filter((function(e){var r=e[0];return!Array.isArray(r)||r.length===t.length-1})),l=null,c=0,u=s;c&lt;u.length;c+=1){var f=u[c],h=f[0],p=f[1];l=new Be(e.registry,e.path,null,e.scope);for(var d=[],g=!1,m=1;m&lt;t.length;m++){var v=t[m],y=Array.isArray(h)?h[m-1]:h.type,x=l.parse(v,1+d.length,y);if(!x){g=!0;break}d.push(x)}if(!g)if(Array.isArray(h)&amp;&amp;h.length!==d.length)l.error(&quot;Expected &quot;+h.length+&quot; arguments, but found &quot;+d.length+&quot; instead.&quot;);else{for(var b=0;b&lt;d.length;b++){var _=Array.isArray(h)?h[b]:h.type,w=d[b];l.concat(b+1).checkSubtype(_,w.type)}if(0===l.errors.length)return new me(n,a,p,d)}}if(1===s.length)(r=e.errors).push.apply(r,l.errors);else{for(var T=(s.length?s:o).map((function(t){var e;return e=t[0],Array.isArray(e)?&quot;(&quot;+e.map(Gt).join(&quot;, &quot;)+&quot;)&quot;:&quot;(&quot;+Gt(e.type)+&quot;...)&quot;})).join(&quot; | &quot;),k=[],M=1;M&lt;t.length;M++){var A=e.parse(t[M],1+k.length);if(!A)return null;k.push(Gt(A.type))}e.error(&quot;Expected arguments of type &quot;+T+&quot;, but found (&quot;+k.join(&quot;, &quot;)+&quot;) instead.&quot;)}return null},me.register=function(t,e){for(var r in me.definitions=e,e)t[r]=me};var ve=function(t,e,r){this.type=Ut,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};function ye(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function xe(t,e){return!(t[0]&lt;=e[0]||t[2]&gt;=e[2]||t[1]&lt;=e[1]||t[3]&gt;=e[3])}function be(t,e){var r=(180+t[0])/360,n=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,i=Math.pow(2,e.z);return[Math.round(r*i*8192),Math.round(n*i*8192)]}function _e(t,e,r){return e[1]&gt;t[1]!=r[1]&gt;t[1]&amp;&amp;t[0]&lt;(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function we(t,e){for(var r,n,i,a,o,s,l,c=!1,u=0,f=e.length;u&lt;f;u++)for(var h=e[u],p=0,d=h.length;p&lt;d-1;p++){if((a=(r=t)[0]-(n=h[p])[0])*(l=r[1]-(i=h[p+1])[1])-(s=r[0]-i[0])*(o=r[1]-n[1])==0&amp;&amp;a*s&lt;=0&amp;&amp;o*l&lt;=0)return!1;_e(t,h[p],h[p+1])&amp;&amp;(c=!c)}return c}function Te(t,e){for(var r=0;r&lt;e.length;r++)if(we(t,e[r]))return!0;return!1}function ke(t,e,r,n){var i=n[0]-r[0],a=n[1]-r[1],o=(t[0]-r[0])*a-i*(t[1]-r[1]),s=(e[0]-r[0])*a-i*(e[1]-r[1]);return o&gt;0&amp;&amp;s&lt;0||o&lt;0&amp;&amp;s&gt;0}function Me(t,e,r){for(var n=0,i=r;n&lt;i.length;n+=1)for(var a=i[n],o=0;o&lt;a.length-1;++o)if(0!=(f=[(u=a[o+1])[0]-(c=a[o])[0],u[1]-c[1]])[0]*(h=[(l=e)[0]-(s=t)[0],l[1]-s[1]])[1]-f[1]*h[0]&amp;&amp;ke(s,l,c,u)&amp;&amp;ke(c,u,s,l))return!0;var s,l,c,u,f,h;return!1}function Ae(t,e){for(var r=0;r&lt;t.length;++r)if(!we(t[r],e))return!1;for(var n=0;n&lt;t.length-1;++n)if(Me(t[n],t[n+1],e))return!1;return!0}function Se(t,e){for(var r=0;r&lt;e.length;r++)if(Ae(t,e[r]))return!0;return!1}function Ee(t,e,r){for(var n=[],i=0;i&lt;t.length;i++){for(var a=[],o=0;o&lt;t[i].length;o++){var s=be(t[i][o],r);ye(e,s),a.push(s)}n.push(a)}return n}function Ce(t,e,r){for(var n=[],i=0;i&lt;t.length;i++){var a=Ee(t[i],e,r);n.push(a)}return n}function Le(t,e,r,n){if(t[0]&lt;r[0]||t[0]&gt;r[2]){var i=.5*n,a=t[0]-r[0]&gt;i?-n:r[0]-t[0]&gt;i?n:0;0===a&amp;&amp;(a=t[0]-r[2]&gt;i?-n:r[2]-t[0]&gt;i?n:0),t[0]+=a}ye(e,t)}function Ie(t,e,r,n){for(var i=8192*Math.pow(2,n.z),a=[8192*n.x,8192*n.y],o=[],s=0,l=t;s&lt;l.length;s+=1)for(var c=0,u=l[s];c&lt;u.length;c+=1){var f=u[c],h=[f.x+a[0],f.y+a[1]];Le(h,e,r,i),o.push(h)}return o}function Pe(t,e,r,n){for(var i,a=8192*Math.pow(2,n.z),o=[8192*n.x,8192*n.y],s=[],l=0,c=t;l&lt;c.length;l+=1){for(var u=[],f=0,h=c[l];f&lt;h.length;f+=1){var p=h[f],d=[p.x+o[0],p.y+o[1]];ye(e,d),u.push(d)}s.push(u)}if(e[2]-e[0]&lt;=a/2){(i=e)[0]=i[1]=1/0,i[2]=i[3]=-1/0;for(var g=0,m=s;g&lt;m.length;g+=1)for(var v=0,y=m[g];v&lt;y.length;v+=1)Le(y[v],e,r,a)}return s}ve.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected one argument.&quot;);var r=t[1];if(&quot;object&quot;!=typeof r||Array.isArray(r))return e.error(&quot;Collator options argument must be an object.&quot;);var n=e.parse(void 0!==r[&quot;case-sensitive&quot;]&amp;&amp;r[&quot;case-sensitive&quot;],1,Ft);if(!n)return null;var i=e.parse(void 0!==r[&quot;diacritic-sensitive&quot;]&amp;&amp;r[&quot;diacritic-sensitive&quot;],1,Ft);if(!i)return null;var a=null;return r.locale&amp;&amp;!(a=e.parse(r.locale,1,Rt))?null:new ve(n,i,a)},ve.prototype.evaluate=function(t){return new Qt(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},ve.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&amp;&amp;t(this.locale)},ve.prototype.outputDefined=function(){return!1},ve.prototype.serialize=function(){var t={};return t[&quot;case-sensitive&quot;]=this.caseSensitive.serialize(),t[&quot;diacritic-sensitive&quot;]=this.diacriticSensitive.serialize(),this.locale&amp;&amp;(t.locale=this.locale.serialize()),[&quot;collator&quot;,t]};var ze=function(t,e){this.type=Ft,this.geojson=t,this.geometries=e};function Oe(t){if(t instanceof me){if(&quot;get&quot;===t.name&amp;&amp;1===t.args.length)return!1;if(&quot;feature-state&quot;===t.name)return!1;if(&quot;has&quot;===t.name&amp;&amp;1===t.args.length)return!1;if(&quot;properties&quot;===t.name||&quot;geometry-type&quot;===t.name||&quot;id&quot;===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof ze)return!1;var e=!0;return t.eachChild((function(t){e&amp;&amp;!Oe(t)&amp;&amp;(e=!1)})),e}function De(t){if(t instanceof me&amp;&amp;&quot;feature-state&quot;===t.name)return!1;var e=!0;return t.eachChild((function(t){e&amp;&amp;!De(t)&amp;&amp;(e=!1)})),e}function Re(t,e){if(t instanceof me&amp;&amp;e.indexOf(t.name)&gt;=0)return!1;var r=!0;return t.eachChild((function(t){r&amp;&amp;!Re(t,e)&amp;&amp;(r=!1)})),r}ze.parse=function(t,e){if(2!==t.length)return e.error(&quot;'within' expression requires exactly one argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);if(ne(t[1])){var r=t[1];if(&quot;FeatureCollection&quot;===r.type)for(var n=0;n&lt;r.features.length;++n){var i=r.features[n].geometry.type;if(&quot;Polygon&quot;===i||&quot;MultiPolygon&quot;===i)return new ze(r,r.features[n].geometry)}else if(&quot;Feature&quot;===r.type){var a=r.geometry.type;if(&quot;Polygon&quot;===a||&quot;MultiPolygon&quot;===a)return new ze(r,r.geometry)}else if(&quot;Polygon&quot;===r.type||&quot;MultiPolygon&quot;===r.type)return new ze(r,r)}return e.error(&quot;'within' expression requires valid geojson object that contains polygon geometry type.&quot;)},ze.prototype.evaluate=function(t){if(null!=t.geometry()&amp;&amp;null!=t.canonicalID()){if(&quot;Point&quot;===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(&quot;Polygon&quot;===e.type){var a=Ee(e.coordinates,n,i),o=Ie(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var s=0,l=o;s&lt;l.length;s+=1)if(!we(l[s],a))return!1}if(&quot;MultiPolygon&quot;===e.type){var c=Ce(e.coordinates,n,i),u=Ie(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var f=0,h=u;f&lt;h.length;f+=1)if(!Te(h[f],c))return!1}return!0}(t,this.geometries);if(&quot;LineString&quot;===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(&quot;Polygon&quot;===e.type){var a=Ee(e.coordinates,n,i),o=Pe(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var s=0,l=o;s&lt;l.length;s+=1)if(!Ae(l[s],a))return!1}if(&quot;MultiPolygon&quot;===e.type){var c=Ce(e.coordinates,n,i),u=Pe(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var f=0,h=u;f&lt;h.length;f+=1)if(!Se(h[f],c))return!1}return!0}(t,this.geometries)}return!1},ze.prototype.eachChild=function(){},ze.prototype.outputDefined=function(){return!0},ze.prototype.serialize=function(){return[&quot;within&quot;,this.geojson]};var Fe=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};Fe.parse=function(t,e){if(2!==t.length||&quot;string&quot;!=typeof t[1])return e.error(&quot;'var' expression requires exactly one string literal argument.&quot;);var r=t[1];return e.scope.has(r)?new Fe(r,e.scope.get(r)):e.error('Unknown variable &quot;'+r+'&quot;. Make sure &quot;'+r+'&quot; has been bound in an enclosing &quot;let&quot; expression before using it.',1)},Fe.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},Fe.prototype.eachChild=function(){},Fe.prototype.outputDefined=function(){return!1},Fe.prototype.serialize=function(){return[&quot;var&quot;,this.name]};var Be=function(t,e,r,n,i){void 0===e&amp;&amp;(e=[]),void 0===n&amp;&amp;(n=new zt),void 0===i&amp;&amp;(i=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return&quot;[&quot;+t+&quot;]&quot;})).join(&quot;&quot;),this.scope=n,this.errors=i,this.expectedType=r};function Ne(t,e){for(var r,n=t.length-1,i=0,a=n,o=0;i&lt;=a;)if((r=t[o=Math.floor((i+a)/2)])&lt;=e){if(o===n||e&lt;t[o+1])return o;i=o+1}else{if(!(r&gt;e))throw new se(&quot;Input is not a number.&quot;);a=o-1}return 0}Be.prototype.parse=function(t,e,r,n,i){return void 0===i&amp;&amp;(i={}),e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)},Be.prototype._parse=function(t,e){function r(t,e,r){return&quot;assert&quot;===r?new ce(e,[t]):&quot;coerce&quot;===r?new pe(e,[t]):t}if(null!==t&amp;&amp;&quot;string&quot;!=typeof t&amp;&amp;&quot;boolean&quot;!=typeof t&amp;&amp;&quot;number&quot;!=typeof t||(t=[&quot;literal&quot;,t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use [&quot;literal&quot;, []].');var n=t[0];if(&quot;string&quot;!=typeof n)return this.error(&quot;Expression name must be a string, but found &quot;+typeof n+' instead. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0),null;var i=this.registry[n];if(i){var a=i.parse(t,this);if(!a)return null;if(this.expectedType){var o=this.expectedType,s=a.type;if(&quot;string&quot;!==o.kind&amp;&amp;&quot;number&quot;!==o.kind&amp;&amp;&quot;boolean&quot;!==o.kind&amp;&amp;&quot;object&quot;!==o.kind&amp;&amp;&quot;array&quot;!==o.kind||&quot;value&quot;!==s.kind)if(&quot;color&quot;!==o.kind&amp;&amp;&quot;formatted&quot;!==o.kind&amp;&amp;&quot;resolvedImage&quot;!==o.kind||&quot;value&quot;!==s.kind&amp;&amp;&quot;string&quot;!==s.kind){if(this.checkSubtype(o,s))return null}else a=r(a,o,e.typeAnnotation||&quot;coerce&quot;);else a=r(a,o,e.typeAnnotation||&quot;assert&quot;)}if(!(a instanceof oe)&amp;&amp;&quot;resolvedImage&quot;!==a.type.kind&amp;&amp;function t(e){if(e instanceof Fe)return t(e.boundExpression);if(e instanceof me&amp;&amp;&quot;error&quot;===e.name)return!1;if(e instanceof ve)return!1;if(e instanceof ze)return!1;var r=e instanceof pe||e instanceof ce,n=!0;return e.eachChild((function(e){n=r?n&amp;&amp;t(e):n&amp;&amp;e instanceof oe})),!!n&amp;&amp;Oe(e)&amp;&amp;Re(e,[&quot;zoom&quot;,&quot;heatmap-density&quot;,&quot;line-progress&quot;,&quot;accumulated&quot;,&quot;is-supported-script&quot;])}(a)){var l=new ge;try{a=new oe(a.type,a.evaluate(l))}catch(t){return this.error(t.message),null}}return a}return this.error('Unknown expression &quot;'+n+'&quot;. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0)}return this.error(void 0===t?&quot;'undefined' value invalid. Use null instead.&quot;:&quot;object&quot;==typeof t?'Bare objects invalid. Use [&quot;literal&quot;, {...}] instead.':&quot;Expected an array, but found &quot;+typeof t+&quot; instead.&quot;)},Be.prototype.concat=function(t,e,r){var n=&quot;number&quot;==typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new Be(this.registry,n,e||null,i,this.errors)},Be.prototype.error=function(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];var n=&quot;&quot;+this.key+e.map((function(t){return&quot;[&quot;+t+&quot;]&quot;})).join(&quot;&quot;);this.errors.push(new Pt(n,t))},Be.prototype.checkSubtype=function(t,e){var r=Wt(t,e);return r&amp;&amp;this.error(r),r};var je=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,i=r;n&lt;i.length;n+=1){var a=i[n],o=a[1];this.labels.push(a[0]),this.outputs.push(o)}};function Ue(t,e,r){return t*(1-r)+e*r}je.parse=function(t,e){if(t.length-1&lt;4)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if((t.length-1)%2!=0)return e.error(&quot;Expected an even number of arguments.&quot;);var r=e.parse(t[1],1,Dt);if(!r)return null;var n=[],i=null;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(i=e.expectedType);for(var a=1;a&lt;t.length;a+=2){var o=1===a?-1/0:t[a],s=t[a+1],l=a,c=a+1;if(&quot;number&quot;!=typeof o)return e.error('Input/output pairs for &quot;step&quot; expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(n.length&amp;&amp;n[n.length-1][0]&gt;=o)return e.error('Input/output pairs for &quot;step&quot; expressions must be arranged with input values in strictly ascending order.',l);var u=e.parse(s,c,i);if(!u)return null;i=i||u.type,n.push([o,u])}return new je(i,r,n)},je.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n&lt;=e[0])return r[0].evaluate(t);var i=e.length;return n&gt;=e[i-1]?r[i-1].evaluate(t):r[Ne(e,n)].evaluate(t)},je.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1)t(r[e])},je.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},je.prototype.serialize=function(){for(var t=[&quot;step&quot;,this.input.serialize()],e=0;e&lt;this.labels.length;e++)e&gt;0&amp;&amp;t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var Ve=Object.freeze({__proto__:null,number:Ue,color:function(t,e,r){return new Kt(Ue(t.r,e.r,r),Ue(t.g,e.g,r),Ue(t.b,e.b,r),Ue(t.a,e.a,r))},array:function(t,e,r){return t.map((function(t,n){return Ue(t,e[n],r)}))}}),qe=6/29*3*(6/29),He=Math.PI/180,Ge=180/Math.PI;function Ye(t){return t&gt;.008856451679035631?Math.pow(t,1/3):t/qe+4/29}function We(t){return t&gt;6/29?t*t*t:qe*(t-4/29)}function Xe(t){return 255*(t&lt;=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ze(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Je(t){var e=Ze(t.r),r=Ze(t.g),n=Ze(t.b),i=Ye((.4124564*e+.3575761*r+.1804375*n)/.95047),a=Ye((.2126729*e+.7151522*r+.072175*n)/1);return{l:116*a-16,a:500*(i-a),b:200*(a-Ye((.0193339*e+.119192*r+.9503041*n)/1.08883)),alpha:t.a}}function Ke(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=1*We(e),r=.95047*We(r),n=1.08883*We(n),new Kt(Xe(3.2404542*r-1.5371385*e-.4985314*n),Xe(-.969266*r+1.8760108*e+.041556*n),Xe(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function Qe(t,e,r){var n=e-t;return t+r*(n&gt;180||n&lt;-180?n-360*Math.round(n/360):n)}var $e={forward:Je,reverse:Ke,interpolate:function(t,e,r){return{l:Ue(t.l,e.l,r),a:Ue(t.a,e.a,r),b:Ue(t.b,e.b,r),alpha:Ue(t.alpha,e.alpha,r)}}},tr={forward:function(t){var e=Je(t),r=e.l,n=e.a,i=e.b,a=Math.atan2(i,n)*Ge;return{h:a&lt;0?a+360:a,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}},reverse:function(t){var e=t.h*He,r=t.c;return Ke({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:Qe(t.h,e.h,r),c:Ue(t.c,e.c,r),l:Ue(t.l,e.l,r),alpha:Ue(t.alpha,e.alpha,r)}}},er=Object.freeze({__proto__:null,lab:$e,hcl:tr}),rr=function(t,e,r,n,i){this.type=t,this.operator=e,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var a=0,o=i;a&lt;o.length;a+=1){var s=o[a],l=s[1];this.labels.push(s[0]),this.outputs.push(l)}};function nr(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}rr.interpolationFactor=function(t,e,n,i){var a=0;if(&quot;exponential&quot;===t.name)a=nr(e,t.base,n,i);else if(&quot;linear&quot;===t.name)a=nr(e,1,n,i);else if(&quot;cubic-bezier&quot;===t.name){var o=t.controlPoints;a=new r(o[0],o[1],o[2],o[3]).solve(nr(e,1,n,i))}return a},rr.parse=function(t,e){var r=t[0],n=t[1],i=t[2],a=t.slice(3);if(!Array.isArray(n)||0===n.length)return e.error(&quot;Expected an interpolation type expression.&quot;,1);if(&quot;linear&quot;===n[0])n={name:&quot;linear&quot;};else if(&quot;exponential&quot;===n[0]){var o=n[1];if(&quot;number&quot;!=typeof o)return e.error(&quot;Exponential interpolation requires a numeric base.&quot;,1,1);n={name:&quot;exponential&quot;,base:o}}else{if(&quot;cubic-bezier&quot;!==n[0])return e.error(&quot;Unknown interpolation type &quot;+String(n[0]),1,0);var s=n.slice(1);if(4!==s.length||s.some((function(t){return&quot;number&quot;!=typeof t||t&lt;0||t&gt;1})))return e.error(&quot;Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.&quot;,1);n={name:&quot;cubic-bezier&quot;,controlPoints:s}}if(t.length-1&lt;4)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if((t.length-1)%2!=0)return e.error(&quot;Expected an even number of arguments.&quot;);if(!(i=e.parse(i,2,Dt)))return null;var l=[],c=null;&quot;interpolate-hcl&quot;===r||&quot;interpolate-lab&quot;===r?c=Bt:e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(c=e.expectedType);for(var u=0;u&lt;a.length;u+=2){var f=a[u],h=a[u+1],p=u+3,d=u+4;if(&quot;number&quot;!=typeof f)return e.error('Input/output pairs for &quot;interpolate&quot; expressions must be defined using literal numeric values (not computed expressions) for the input values.',p);if(l.length&amp;&amp;l[l.length-1][0]&gt;=f)return e.error('Input/output pairs for &quot;interpolate&quot; expressions must be arranged with input values in strictly ascending order.',p);var g=e.parse(h,d,c);if(!g)return null;c=c||g.type,l.push([f,g])}return&quot;number&quot;===c.kind||&quot;color&quot;===c.kind||&quot;array&quot;===c.kind&amp;&amp;&quot;number&quot;===c.itemType.kind&amp;&amp;&quot;number&quot;==typeof c.N?new rr(c,r,n,i,l):e.error(&quot;Type &quot;+Gt(c)+&quot; is not interpolatable.&quot;)},rr.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n&lt;=e[0])return r[0].evaluate(t);var i=e.length;if(n&gt;=e[i-1])return r[i-1].evaluate(t);var a=Ne(e,n),o=rr.interpolationFactor(this.interpolation,n,e[a],e[a+1]),s=r[a].evaluate(t),l=r[a+1].evaluate(t);return&quot;interpolate&quot;===this.operator?Ve[this.type.kind.toLowerCase()](s,l,o):&quot;interpolate-hcl&quot;===this.operator?tr.reverse(tr.interpolate(tr.forward(s),tr.forward(l),o)):$e.reverse($e.interpolate($e.forward(s),$e.forward(l),o))},rr.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1)t(r[e])},rr.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},rr.prototype.serialize=function(){var t;t=&quot;linear&quot;===this.interpolation.name?[&quot;linear&quot;]:&quot;exponential&quot;===this.interpolation.name?1===this.interpolation.base?[&quot;linear&quot;]:[&quot;exponential&quot;,this.interpolation.base]:[&quot;cubic-bezier&quot;].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],r=0;r&lt;this.labels.length;r++)e.push(this.labels[r],this.outputs[r].serialize());return e};var ir=function(t,e){this.type=t,this.args=e};ir.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expectected at least one argument.&quot;);var r=null,n=e.expectedType;n&amp;&amp;&quot;value&quot;!==n.kind&amp;&amp;(r=n);for(var i=[],a=0,o=t.slice(1);a&lt;o.length;a+=1){var s=e.parse(o[a],1+i.length,r,void 0,{typeAnnotation:&quot;omit&quot;});if(!s)return null;r=r||s.type,i.push(s)}var l=n&amp;&amp;i.some((function(t){return Wt(n,t.type)}));return new ir(l?jt:r,i)},ir.prototype.evaluate=function(t){for(var e,r=null,n=0,i=0,a=this.args;i&lt;a.length&amp;&amp;(n++,(r=a[i].evaluate(t))&amp;&amp;r instanceof ee&amp;&amp;!r.available&amp;&amp;(e||(e=r.name),r=null,n===this.args.length&amp;&amp;(r=e)),null===r);i+=1);return r},ir.prototype.eachChild=function(t){this.args.forEach(t)},ir.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ir.prototype.serialize=function(){var t=[&quot;coalesce&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var ar=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};ar.prototype.evaluate=function(t){return this.result.evaluate(t)},ar.prototype.eachChild=function(t){for(var e=0,r=this.bindings;e&lt;r.length;e+=1)t(r[e][1]);t(this.result)},ar.parse=function(t,e){if(t.length&lt;4)return e.error(&quot;Expected at least 3 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);for(var r=[],n=1;n&lt;t.length-1;n+=2){var i=t[n];if(&quot;string&quot;!=typeof i)return e.error(&quot;Expected string, but found &quot;+typeof i+&quot; instead.&quot;,n);if(/[^a-zA-Z0-9_]/.test(i))return e.error(&quot;Variable names must contain only alphanumeric characters or '_'.&quot;,n);var a=e.parse(t[n+1],n+1);if(!a)return null;r.push([i,a])}var o=e.parse(t[t.length-1],t.length-1,e.expectedType,r);return o?new ar(r,o):null},ar.prototype.outputDefined=function(){return this.result.outputDefined()},ar.prototype.serialize=function(){for(var t=[&quot;let&quot;],e=0,r=this.bindings;e&lt;r.length;e+=1){var n=r[e];t.push(n[0],n[1].serialize())}return t.push(this.result.serialize()),t};var or=function(t,e,r){this.type=t,this.index=e,this.input=r};or.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected 2 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,Dt),n=e.parse(t[2],2,Ht(e.expectedType||jt));return r&amp;&amp;n?new or(n.type.itemType,r,n):null},or.prototype.evaluate=function(t){var e=this.index.evaluate(t),r=this.input.evaluate(t);if(e&lt;0)throw new se(&quot;Array index out of bounds: &quot;+e+&quot; &lt; 0.&quot;);if(e&gt;=r.length)throw new se(&quot;Array index out of bounds: &quot;+e+&quot; &gt; &quot;+(r.length-1)+&quot;.&quot;);if(e!==Math.floor(e))throw new se(&quot;Array index must be an integer, but found &quot;+e+&quot; instead.&quot;);return r[e]},or.prototype.eachChild=function(t){t(this.index),t(this.input)},or.prototype.outputDefined=function(){return!1},or.prototype.serialize=function(){return[&quot;at&quot;,this.index.serialize(),this.input.serialize()]};var sr=function(t,e){this.type=Ft,this.needle=t,this.haystack=e};sr.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected 2 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,jt),n=e.parse(t[2],2,jt);return r&amp;&amp;n?Xt(r.type,[Ft,Rt,Dt,Ot,jt])?new sr(r,n):e.error(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(r.type)+&quot; instead&quot;):null},sr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!r)return!1;if(!Zt(e,[&quot;boolean&quot;,&quot;string&quot;,&quot;number&quot;,&quot;null&quot;]))throw new se(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(ie(e))+&quot; instead.&quot;);if(!Zt(r,[&quot;string&quot;,&quot;array&quot;]))throw new se(&quot;Expected second argument to be of type array or string, but found &quot;+Gt(ie(r))+&quot; instead.&quot;);return r.indexOf(e)&gt;=0},sr.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},sr.prototype.outputDefined=function(){return!0},sr.prototype.serialize=function(){return[&quot;in&quot;,this.needle.serialize(),this.haystack.serialize()]};var lr=function(t,e,r){this.type=Dt,this.needle=t,this.haystack=e,this.fromIndex=r};lr.parse=function(t,e){if(t.length&lt;=2||t.length&gt;=5)return e.error(&quot;Expected 3 or 4 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,jt),n=e.parse(t[2],2,jt);if(!r||!n)return null;if(!Xt(r.type,[Ft,Rt,Dt,Ot,jt]))return e.error(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(r.type)+&quot; instead&quot;);if(4===t.length){var i=e.parse(t[3],3,Dt);return i?new lr(r,n,i):null}return new lr(r,n)},lr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!Zt(e,[&quot;boolean&quot;,&quot;string&quot;,&quot;number&quot;,&quot;null&quot;]))throw new se(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(ie(e))+&quot; instead.&quot;);if(!Zt(r,[&quot;string&quot;,&quot;array&quot;]))throw new se(&quot;Expected second argument to be of type array or string, but found &quot;+Gt(ie(r))+&quot; instead.&quot;);if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},lr.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&amp;&amp;t(this.fromIndex)},lr.prototype.outputDefined=function(){return!1},lr.prototype.serialize=function(){if(null!=this.fromIndex&amp;&amp;void 0!==this.fromIndex){var t=this.fromIndex.serialize();return[&quot;index-of&quot;,this.needle.serialize(),this.haystack.serialize(),t]}return[&quot;index-of&quot;,this.needle.serialize(),this.haystack.serialize()]};var cr=function(t,e,r,n,i,a){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=a};cr.parse=function(t,e){if(t.length&lt;5)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if(t.length%2!=1)return e.error(&quot;Expected an even number of arguments.&quot;);var r,n;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(n=e.expectedType);for(var i={},a=[],o=2;o&lt;t.length-1;o+=2){var s=t[o],l=t[o+1];Array.isArray(s)||(s=[s]);var c=e.concat(o);if(0===s.length)return c.error(&quot;Expected at least one branch label.&quot;);for(var u=0,f=s;u&lt;f.length;u+=1){var h=f[u];if(&quot;number&quot;!=typeof h&amp;&amp;&quot;string&quot;!=typeof h)return c.error(&quot;Branch labels must be numbers or strings.&quot;);if(&quot;number&quot;==typeof h&amp;&amp;Math.abs(h)&gt;Number.MAX_SAFE_INTEGER)return c.error(&quot;Branch labels must be integers no larger than &quot;+Number.MAX_SAFE_INTEGER+&quot;.&quot;);if(&quot;number&quot;==typeof h&amp;&amp;Math.floor(h)!==h)return c.error(&quot;Numeric branch labels must be integer values.&quot;);if(r){if(c.checkSubtype(r,ie(h)))return null}else r=ie(h);if(void 0!==i[String(h)])return c.error(&quot;Branch labels must be unique.&quot;);i[String(h)]=a.length}var p=e.parse(l,o,n);if(!p)return null;n=n||p.type,a.push(p)}var d=e.parse(t[1],1,jt);if(!d)return null;var g=e.parse(t[t.length-1],t.length-1,n);return g?&quot;value&quot;!==d.type.kind&amp;&amp;e.concat(1).checkSubtype(r,d.type)?null:new cr(r,n,d,i,a,g):null},cr.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(ie(e)===this.inputType&amp;&amp;this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},cr.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},cr.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&amp;&amp;this.otherwise.outputDefined()},cr.prototype.serialize=function(){for(var t=this,e=[&quot;match&quot;,this.input.serialize()],r=[],n={},i=0,a=Object.keys(this.cases).sort();i&lt;a.length;i+=1){var o=a[i];void 0===(f=n[this.cases[o]])?(n[this.cases[o]]=r.length,r.push([this.cases[o],[o]])):r[f][1].push(o)}for(var s=function(e){return&quot;number&quot;===t.inputType.kind?Number(e):e},l=0,c=r;l&lt;c.length;l+=1){var u=c[l],f=u[0],h=u[1];e.push(1===h.length?s(h[0]):h.map(s)),e.push(this.outputs[outputIndex$1].serialize())}return e.push(this.otherwise.serialize()),e};var ur=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};ur.parse=function(t,e){if(t.length&lt;4)return e.error(&quot;Expected at least 3 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if(t.length%2!=0)return e.error(&quot;Expected an odd number of arguments.&quot;);var r;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(r=e.expectedType);for(var n=[],i=1;i&lt;t.length-1;i+=2){var a=e.parse(t[i],i,Ft);if(!a)return null;var o=e.parse(t[i+1],i+1,r);if(!o)return null;n.push([a,o]),r=r||o.type}var s=e.parse(t[t.length-1],t.length-1,r);return s?new ur(r,n,s):null},ur.prototype.evaluate=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var n=r[e],i=n[1];if(n[0].evaluate(t))return i.evaluate(t)}return this.otherwise.evaluate(t)},ur.prototype.eachChild=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var n=r[e],i=n[1];t(n[0]),t(i)}t(this.otherwise)},ur.prototype.outputDefined=function(){return this.branches.every((function(t){return t[1].outputDefined()}))&amp;&amp;this.otherwise.outputDefined()},ur.prototype.serialize=function(){var t=[&quot;case&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var fr=function(t,e,r,n){this.type=t,this.input=e,this.beginIndex=r,this.endIndex=n};function hr(t,e){return&quot;==&quot;===t||&quot;!=&quot;===t?&quot;boolean&quot;===e.kind||&quot;string&quot;===e.kind||&quot;number&quot;===e.kind||&quot;null&quot;===e.kind||&quot;value&quot;===e.kind:&quot;string&quot;===e.kind||&quot;number&quot;===e.kind||&quot;value&quot;===e.kind}function pr(t,e,r,n){return 0===n.compare(e,r)}function dr(t,e,r){var n=&quot;==&quot;!==t&amp;&amp;&quot;!=&quot;!==t;return function(){function i(t,e,r){this.type=Ft,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument=&quot;value&quot;===t.type.kind||&quot;value&quot;===e.type.kind}return i.parse=function(t,e){if(3!==t.length&amp;&amp;4!==t.length)return e.error(&quot;Expected two or three arguments.&quot;);var r=t[0],a=e.parse(t[1],1,jt);if(!a)return null;if(!hr(r,a.type))return e.concat(1).error('&quot;'+r+&quot;\&quot; comparisons are not supported for type '&quot;+Gt(a.type)+&quot;'.&quot;);var o=e.parse(t[2],2,jt);if(!o)return null;if(!hr(r,o.type))return e.concat(2).error('&quot;'+r+&quot;\&quot; comparisons are not supported for type '&quot;+Gt(o.type)+&quot;'.&quot;);if(a.type.kind!==o.type.kind&amp;&amp;&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind)return e.error(&quot;Cannot compare types '&quot;+Gt(a.type)+&quot;' and '&quot;+Gt(o.type)+&quot;'.&quot;);n&amp;&amp;(&quot;value&quot;===a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind?a=new ce(o.type,[a]):&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;===o.type.kind&amp;&amp;(o=new ce(a.type,[o])));var s=null;if(4===t.length){if(&quot;string&quot;!==a.type.kind&amp;&amp;&quot;string&quot;!==o.type.kind&amp;&amp;&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind)return e.error(&quot;Cannot use collator to compare non-string types.&quot;);if(!(s=e.parse(t[3],3,Ut)))return null}return new i(a,o,s)},i.prototype.evaluate=function(i){var a=this.lhs.evaluate(i),o=this.rhs.evaluate(i);if(n&amp;&amp;this.hasUntypedArgument){var s=ie(a),l=ie(o);if(s.kind!==l.kind||&quot;string&quot;!==s.kind&amp;&amp;&quot;number&quot;!==s.kind)throw new se('Expected arguments for &quot;'+t+'&quot; to be (string, string) or (number, number), but found ('+s.kind+&quot;, &quot;+l.kind+&quot;) instead.&quot;)}if(this.collator&amp;&amp;!n&amp;&amp;this.hasUntypedArgument){var c=ie(a),u=ie(o);if(&quot;string&quot;!==c.kind||&quot;string&quot;!==u.kind)return e(i,a,o)}return this.collator?r(i,a,o,this.collator.evaluate(i)):e(i,a,o)},i.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&amp;&amp;t(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},i}()}fr.parse=function(t,e){if(t.length&lt;=2||t.length&gt;=5)return e.error(&quot;Expected 3 or 4 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,jt),n=e.parse(t[2],2,Dt);if(!r||!n)return null;if(!Xt(r.type,[Ht(jt),Rt,jt]))return e.error(&quot;Expected first argument to be of type array or string, but found &quot;+Gt(r.type)+&quot; instead&quot;);if(4===t.length){var i=e.parse(t[3],3,Dt);return i?new fr(r.type,r,n,i):null}return new fr(r.type,r,n)},fr.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!Zt(e,[&quot;string&quot;,&quot;array&quot;]))throw new se(&quot;Expected first argument to be of type array or string, but found &quot;+Gt(ie(e))+&quot; instead.&quot;);if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},fr.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&amp;&amp;t(this.endIndex)},fr.prototype.outputDefined=function(){return!1},fr.prototype.serialize=function(){if(null!=this.endIndex&amp;&amp;void 0!==this.endIndex){var t=this.endIndex.serialize();return[&quot;slice&quot;,this.input.serialize(),this.beginIndex.serialize(),t]}return[&quot;slice&quot;,this.input.serialize(),this.beginIndex.serialize()]};var gr=dr(&quot;==&quot;,(function(t,e,r){return e===r}),pr),mr=dr(&quot;!=&quot;,(function(t,e,r){return e!==r}),(function(t,e,r,n){return!pr(0,e,r,n)})),vr=dr(&quot;&lt;&quot;,(function(t,e,r){return e&lt;r}),(function(t,e,r,n){return n.compare(e,r)&lt;0})),yr=dr(&quot;&gt;&quot;,(function(t,e,r){return e&gt;r}),(function(t,e,r,n){return n.compare(e,r)&gt;0})),xr=dr(&quot;&lt;=&quot;,(function(t,e,r){return e&lt;=r}),(function(t,e,r,n){return n.compare(e,r)&lt;=0})),br=dr(&quot;&gt;=&quot;,(function(t,e,r){return e&gt;=r}),(function(t,e,r,n){return n.compare(e,r)&gt;=0})),_r=function(t,e,r,n,i){this.type=Rt,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};_r.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected two arguments.&quot;);var r=e.parse(t[1],1,Dt);if(!r)return null;var n=t[2];if(&quot;object&quot;!=typeof n||Array.isArray(n))return e.error(&quot;NumberFormat options argument must be an object.&quot;);var i=null;if(n.locale&amp;&amp;!(i=e.parse(n.locale,1,Rt)))return null;var a=null;if(n.currency&amp;&amp;!(a=e.parse(n.currency,1,Rt)))return null;var o=null;if(n[&quot;min-fraction-digits&quot;]&amp;&amp;!(o=e.parse(n[&quot;min-fraction-digits&quot;],1,Dt)))return null;var s=null;return n[&quot;max-fraction-digits&quot;]&amp;&amp;!(s=e.parse(n[&quot;max-fraction-digits&quot;],1,Dt))?null:new _r(r,i,a,o,s)},_r.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?&quot;currency&quot;:&quot;decimal&quot;,currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},_r.prototype.eachChild=function(t){t(this.number),this.locale&amp;&amp;t(this.locale),this.currency&amp;&amp;t(this.currency),this.minFractionDigits&amp;&amp;t(this.minFractionDigits),this.maxFractionDigits&amp;&amp;t(this.maxFractionDigits)},_r.prototype.outputDefined=function(){return!1},_r.prototype.serialize=function(){var t={};return this.locale&amp;&amp;(t.locale=this.locale.serialize()),this.currency&amp;&amp;(t.currency=this.currency.serialize()),this.minFractionDigits&amp;&amp;(t[&quot;min-fraction-digits&quot;]=this.minFractionDigits.serialize()),this.maxFractionDigits&amp;&amp;(t[&quot;max-fraction-digits&quot;]=this.maxFractionDigits.serialize()),[&quot;number-format&quot;,this.number.serialize(),t]};var wr=function(t){this.type=Dt,this.input=t};wr.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected 1 argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1);return r?&quot;array&quot;!==r.type.kind&amp;&amp;&quot;string&quot;!==r.type.kind&amp;&amp;&quot;value&quot;!==r.type.kind?e.error(&quot;Expected argument of type string or array, but found &quot;+Gt(r.type)+&quot; instead.&quot;):new wr(r):null},wr.prototype.evaluate=function(t){var e=this.input.evaluate(t);if(&quot;string&quot;==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new se(&quot;Expected value to be of type string or array, but found &quot;+Gt(ie(e))+&quot; instead.&quot;)},wr.prototype.eachChild=function(t){t(this.input)},wr.prototype.outputDefined=function(){return!1},wr.prototype.serialize=function(){var t=[&quot;length&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var Tr={&quot;==&quot;:gr,&quot;!=&quot;:mr,&quot;&gt;&quot;:yr,&quot;&lt;&quot;:vr,&quot;&gt;=&quot;:br,&quot;&lt;=&quot;:xr,array:ce,at:or,boolean:ce,case:ur,coalesce:ir,collator:ve,format:ue,image:fe,in:sr,&quot;index-of&quot;:lr,interpolate:rr,&quot;interpolate-hcl&quot;:rr,&quot;interpolate-lab&quot;:rr,length:wr,let:ar,literal:oe,match:cr,number:ce,&quot;number-format&quot;:_r,object:ce,slice:fr,step:je,string:ce,&quot;to-boolean&quot;:pe,&quot;to-color&quot;:pe,&quot;to-number&quot;:pe,&quot;to-string&quot;:pe,var:Fe,within:ze};function kr(t,e){var r=e[0],n=e[1],i=e[2],a=e[3];r=r.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);var o=a?a.evaluate(t):1,s=re(r,n,i,o);if(s)throw new se(s);return new Kt(r/255*o,n/255*o,i/255*o,o)}function Mr(t,e){return t in e}function Ar(t,e){var r=e[t];return void 0===r?null:r}function Sr(t){return{type:t}}function Er(t){return{result:&quot;success&quot;,value:t}}function Cr(t){return{result:&quot;error&quot;,value:t}}function Lr(t){return&quot;data-driven&quot;===t[&quot;property-type&quot;]||&quot;cross-faded-data-driven&quot;===t[&quot;property-type&quot;]}function Ir(t){return!!t.expression&amp;&amp;t.expression.parameters.indexOf(&quot;zoom&quot;)&gt;-1}function Pr(t){return!!t.expression&amp;&amp;t.expression.interpolated}function zr(t){return t instanceof Number?&quot;number&quot;:t instanceof String?&quot;string&quot;:t instanceof Boolean?&quot;boolean&quot;:Array.isArray(t)?&quot;array&quot;:null===t?&quot;null&quot;:typeof t}function Or(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)}function Dr(t){return t}function Rr(t,e,r){return void 0!==t?t:void 0!==e?e:void 0!==r?r:void 0}function Fr(t,e,r,n,i){return Rr(typeof r===i?n[r]:void 0,t.default,e.default)}function Br(t,e,r){if(&quot;number&quot;!==zr(r))return Rr(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[n-1][0])return t.stops[n-1][1];var i=Ne(t.stops.map((function(t){return t[0]})),r);return t.stops[i][1]}function Nr(t,e,r){var n=void 0!==t.base?t.base:1;if(&quot;number&quot;!==zr(r))return Rr(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[i-1][0])return t.stops[i-1][1];var a=Ne(t.stops.map((function(t){return t[0]})),r),o=function(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}(r,n,t.stops[a][0],t.stops[a+1][0]),s=t.stops[a][1],l=t.stops[a+1][1],c=Ve[e.type]||Dr;if(t.colorSpace&amp;&amp;&quot;rgb&quot;!==t.colorSpace){var u=er[t.colorSpace];c=function(t,e){return u.reverse(u.interpolate(u.forward(t),u.forward(e),o))}}return&quot;function&quot;==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=s.evaluate.apply(void 0,t),n=l.evaluate.apply(void 0,t);if(void 0!==r&amp;&amp;void 0!==n)return c(r,n,o)}}:c(s,l,o)}function jr(t,e,r){return&quot;color&quot;===e.type?r=Kt.parse(r):&quot;formatted&quot;===e.type?r=te.fromString(r.toString()):&quot;resolvedImage&quot;===e.type?r=ee.fromString(r.toString()):zr(r)===e.type||&quot;enum&quot;===e.type&amp;&amp;e.values[r]||(r=void 0),Rr(r,t.default,e.default)}me.register(Tr,{error:[{kind:&quot;error&quot;},[Rt],function(t,e){throw new se(e[0].evaluate(t))}],typeof:[Rt,[jt],function(t,e){return Gt(ie(e[0].evaluate(t)))}],&quot;to-rgba&quot;:[Ht(Dt,4),[Bt],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Bt,[Dt,Dt,Dt],kr],rgba:[Bt,[Dt,Dt,Dt,Dt],kr],has:{type:Ft,overloads:[[[Rt],function(t,e){return Mr(e[0].evaluate(t),t.properties())}],[[Rt,Nt],function(t,e){var r=e[1];return Mr(e[0].evaluate(t),r.evaluate(t))}]]},get:{type:jt,overloads:[[[Rt],function(t,e){return Ar(e[0].evaluate(t),t.properties())}],[[Rt,Nt],function(t,e){var r=e[1];return Ar(e[0].evaluate(t),r.evaluate(t))}]]},&quot;feature-state&quot;:[jt,[Rt],function(t,e){return Ar(e[0].evaluate(t),t.featureState||{})}],properties:[Nt,[],function(t){return t.properties()}],&quot;geometry-type&quot;:[Rt,[],function(t){return t.geometryType()}],id:[jt,[],function(t){return t.id()}],zoom:[Dt,[],function(t){return t.globals.zoom}],&quot;heatmap-density&quot;:[Dt,[],function(t){return t.globals.heatmapDensity||0}],&quot;line-progress&quot;:[Dt,[],function(t){return t.globals.lineProgress||0}],accumulated:[jt,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],&quot;+&quot;:[Dt,Sr(Dt),function(t,e){for(var r=0,n=0,i=e;n&lt;i.length;n+=1)r+=i[n].evaluate(t);return r}],&quot;*&quot;:[Dt,Sr(Dt),function(t,e){for(var r=1,n=0,i=e;n&lt;i.length;n+=1)r*=i[n].evaluate(t);return r}],&quot;-&quot;:{type:Dt,overloads:[[[Dt,Dt],function(t,e){var r=e[1];return e[0].evaluate(t)-r.evaluate(t)}],[[Dt],function(t,e){return-e[0].evaluate(t)}]]},&quot;/&quot;:[Dt,[Dt,Dt],function(t,e){var r=e[1];return e[0].evaluate(t)/r.evaluate(t)}],&quot;%&quot;:[Dt,[Dt,Dt],function(t,e){var r=e[1];return e[0].evaluate(t)%r.evaluate(t)}],ln2:[Dt,[],function(){return Math.LN2}],pi:[Dt,[],function(){return Math.PI}],e:[Dt,[],function(){return Math.E}],&quot;^&quot;:[Dt,[Dt,Dt],function(t,e){var r=e[1];return Math.pow(e[0].evaluate(t),r.evaluate(t))}],sqrt:[Dt,[Dt],function(t,e){return Math.sqrt(e[0].evaluate(t))}],log10:[Dt,[Dt],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN10}],ln:[Dt,[Dt],function(t,e){return Math.log(e[0].evaluate(t))}],log2:[Dt,[Dt],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN2}],sin:[Dt,[Dt],function(t,e){return Math.sin(e[0].evaluate(t))}],cos:[Dt,[Dt],function(t,e){return Math.cos(e[0].evaluate(t))}],tan:[Dt,[Dt],function(t,e){return Math.tan(e[0].evaluate(t))}],asin:[Dt,[Dt],function(t,e){return Math.asin(e[0].evaluate(t))}],acos:[Dt,[Dt],function(t,e){return Math.acos(e[0].evaluate(t))}],atan:[Dt,[Dt],function(t,e){return Math.atan(e[0].evaluate(t))}],min:[Dt,Sr(Dt),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[Dt,Sr(Dt),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[Dt,[Dt],function(t,e){return Math.abs(e[0].evaluate(t))}],round:[Dt,[Dt],function(t,e){var r=e[0].evaluate(t);return r&lt;0?-Math.round(-r):Math.round(r)}],floor:[Dt,[Dt],function(t,e){return Math.floor(e[0].evaluate(t))}],ceil:[Dt,[Dt],function(t,e){return Math.ceil(e[0].evaluate(t))}],&quot;filter-==&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1];return t.properties()[r.value]===n.value}],&quot;filter-id-==&quot;:[Ft,[jt],function(t,e){var r=e[0];return t.id()===r.value}],&quot;filter-type-==&quot;:[Ft,[Rt],function(t,e){var r=e[0];return t.geometryType()===r.value}],&quot;filter-&lt;&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&lt;a}],&quot;filter-id-&lt;&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&lt;i}],&quot;filter-&gt;&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&gt;a}],&quot;filter-id-&gt;&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&gt;i}],&quot;filter-&lt;=&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&lt;=a}],&quot;filter-id-&lt;=&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&lt;=i}],&quot;filter-&gt;=&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&gt;=a}],&quot;filter-id-&gt;=&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&gt;=i}],&quot;filter-has&quot;:[Ft,[jt],function(t,e){return e[0].value in t.properties()}],&quot;filter-has-id&quot;:[Ft,[],function(t){return null!==t.id()&amp;&amp;void 0!==t.id()}],&quot;filter-type-in&quot;:[Ft,[Ht(Rt)],function(t,e){return e[0].value.indexOf(t.geometryType())&gt;=0}],&quot;filter-id-in&quot;:[Ft,[Ht(jt)],function(t,e){return e[0].value.indexOf(t.id())&gt;=0}],&quot;filter-in-small&quot;:[Ft,[Rt,Ht(jt)],function(t,e){var r=e[0];return e[1].value.indexOf(t.properties()[r.value])&gt;=0}],&quot;filter-in-large&quot;:[Ft,[Rt,Ht(jt)],function(t,e){var r=e[0],n=e[1];return function(t,e,r,n){for(;r&lt;=n;){var i=r+n&gt;&gt;1;if(e[i]===t)return!0;e[i]&gt;t?n=i-1:r=i+1}return!1}(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:Ft,overloads:[[[Ft,Ft],function(t,e){var r=e[1];return e[0].evaluate(t)&amp;&amp;r.evaluate(t)}],[Sr(Ft),function(t,e){for(var r=0,n=e;r&lt;n.length;r+=1)if(!n[r].evaluate(t))return!1;return!0}]]},any:{type:Ft,overloads:[[[Ft,Ft],function(t,e){var r=e[1];return e[0].evaluate(t)||r.evaluate(t)}],[Sr(Ft),function(t,e){for(var r=0,n=e;r&lt;n.length;r+=1)if(n[r].evaluate(t))return!0;return!1}]]},&quot;!&quot;:[Ft,[Ft],function(t,e){return!e[0].evaluate(t)}],&quot;is-supported-script&quot;:[Ft,[Rt],function(t,e){var r=t.globals&amp;&amp;t.globals.isSupportedScript;return!r||r(e[0].evaluate(t))}],upcase:[Rt,[Rt],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[Rt,[Rt],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[Rt,Sr(jt),function(t,e){return e.map((function(e){return ae(e.evaluate(t))})).join(&quot;&quot;)}],&quot;resolved-locale&quot;:[Rt,[Ut],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var Ur=function(t,e){this.expression=t,this._warningHistory={},this._evaluator=new ge,this._defaultValue=e?function(t){return&quot;color&quot;===t.type&amp;&amp;Or(t.default)?new Kt(0,0,0,0):&quot;color&quot;===t.type?Kt.parse(t.default)||null:void 0===t.default?null:t.default}(e):null,this._enumValues=e&amp;&amp;&quot;enum&quot;===e.type?e.values:null};function Vr(t){return Array.isArray(t)&amp;&amp;t.length&gt;0&amp;&amp;&quot;string&quot;==typeof t[0]&amp;&amp;t[0]in Tr}function qr(t,e){var r=new Be(Tr,[],e?function(t){var e={color:Bt,string:Rt,number:Dt,enum:Rt,boolean:Ft,formatted:Vt,resolvedImage:qt};return&quot;array&quot;===t.type?Ht(e[t.value]||jt,t.length):e[t.type]}(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&amp;&amp;&quot;string&quot;===e.type?{typeAnnotation:&quot;coerce&quot;}:void 0);return n?Er(new Ur(n,e)):Cr(r.errors)}Ur.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)},Ur.prototype.evaluate=function(t,e,r,n,i,a){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a||null;try{var o=this.expression.evaluate(this._evaluator);if(null==o||&quot;number&quot;==typeof o&amp;&amp;o!=o)return this._defaultValue;if(this._enumValues&amp;&amp;!(o in this._enumValues))throw new se(&quot;Expected value to be one of &quot;+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(&quot;, &quot;)+&quot;, but found &quot;+JSON.stringify(o)+&quot; instead.&quot;);return o}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,&quot;undefined&quot;!=typeof console&amp;&amp;console.warn(t.message)),this._defaultValue}};var Hr=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent=&quot;constant&quot;!==t&amp;&amp;!De(e.expression)};Hr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},Hr.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)};var Gr=function(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent=&quot;camera&quot;!==t&amp;&amp;!De(e.expression),this.interpolationType=n};function Yr(t,e){if(&quot;error&quot;===(t=qr(t,e)).result)return t;var r=t.value.expression,n=Oe(r);if(!n&amp;&amp;!Lr(e))return Cr([new Pt(&quot;&quot;,&quot;data expressions not supported&quot;)]);var i=Re(r,[&quot;zoom&quot;]);if(!i&amp;&amp;!Ir(e))return Cr([new Pt(&quot;&quot;,&quot;zoom expressions not supported&quot;)]);var a=function t(e){var r=null;if(e instanceof ar)r=t(e.result);else if(e instanceof ir)for(var n=0,i=e.args;n&lt;i.length&amp;&amp;!(r=t(i[n]));n+=1);else(e instanceof je||e instanceof rr)&amp;&amp;e.input instanceof me&amp;&amp;&quot;zoom&quot;===e.input.name&amp;&amp;(r=e);return r instanceof Pt||e.eachChild((function(e){var n=t(e);n instanceof Pt?r=n:!r&amp;&amp;n?r=new Pt(&quot;&quot;,'&quot;zoom&quot; expression may only be used as input to a top-level &quot;step&quot; or &quot;interpolate&quot; expression.'):r&amp;&amp;n&amp;&amp;r!==n&amp;&amp;(r=new Pt(&quot;&quot;,'Only one zoom-based &quot;step&quot; or &quot;interpolate&quot; subexpression may be used in an expression.'))})),r}(r);return a||i?a instanceof Pt?Cr([a]):a instanceof rr&amp;&amp;!Pr(e)?Cr([new Pt(&quot;&quot;,'&quot;interpolate&quot; expressions cannot be used with this property')]):Er(a?new Gr(n?&quot;camera&quot;:&quot;composite&quot;,t.value,a.labels,a instanceof rr?a.interpolation:void 0):new Hr(n?&quot;constant&quot;:&quot;source&quot;,t.value)):Cr([new Pt(&quot;&quot;,'&quot;zoom&quot; expression may only be used as input to a top-level &quot;step&quot; or &quot;interpolate&quot; expression.')])}Gr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},Gr.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)},Gr.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?rr.interpolationFactor(this.interpolationType,t,e,r):0};var Wr=function(t,e){this._parameters=t,this._specification=e,Ct(this,function t(e,r){var n,i,a,o=&quot;color&quot;===r.type,s=e.stops&amp;&amp;&quot;object&quot;==typeof e.stops[0][0],l=s||!(s||void 0!==e.property),c=e.type||(Pr(r)?&quot;exponential&quot;:&quot;interval&quot;);if(o&amp;&amp;((e=Ct({},e)).stops&amp;&amp;(e.stops=e.stops.map((function(t){return[t[0],Kt.parse(t[1])]}))),e.default=Kt.parse(e.default?e.default:r.default)),e.colorSpace&amp;&amp;&quot;rgb&quot;!==e.colorSpace&amp;&amp;!er[e.colorSpace])throw new Error(&quot;Unknown color space: &quot;+e.colorSpace);if(&quot;exponential&quot;===c)n=Nr;else if(&quot;interval&quot;===c)n=Br;else if(&quot;categorical&quot;===c){n=Fr,i=Object.create(null);for(var u=0,f=e.stops;u&lt;f.length;u+=1){var h=f[u];i[h[0]]=h[1]}a=typeof e.stops[0][0]}else{if(&quot;identity&quot;!==c)throw new Error('Unknown function type &quot;'+c+'&quot;');n=jr}if(s){for(var p={},d=[],g=0;g&lt;e.stops.length;g++){var m=e.stops[g],v=m[0].zoom;void 0===p[v]&amp;&amp;(p[v]={zoom:v,type:e.type,property:e.property,default:e.default,stops:[]},d.push(v)),p[v].stops.push([m[0].value,m[1]])}for(var y=[],x=0,b=d;x&lt;b.length;x+=1){var _=b[x];y.push([p[_].zoom,t(p[_],r)])}var w={name:&quot;linear&quot;};return{kind:&quot;composite&quot;,interpolationType:w,interpolationFactor:rr.interpolationFactor.bind(void 0,w),zoomStops:y.map((function(t){return t[0]})),evaluate:function(t,n){var i=t.zoom;return Nr({stops:y,base:e.base},r,i).evaluate(i,n)}}}if(l){var T=&quot;exponential&quot;===c?{name:&quot;exponential&quot;,base:void 0!==e.base?e.base:1}:null;return{kind:&quot;camera&quot;,interpolationType:T,interpolationFactor:rr.interpolationFactor.bind(void 0,T),zoomStops:e.stops.map((function(t){return t[0]})),evaluate:function(t){return n(e,r,t.zoom,i,a)}}}return{kind:&quot;source&quot;,evaluate:function(t,o){var s=o&amp;&amp;o.properties?o.properties[e.property]:void 0;return void 0===s?Rr(e.default,r.default):n(e,r,s,i,a)}}}(this._parameters,this._specification))};function Xr(t){var e=t.key,r=t.value,n=t.valueSpec||{},i=t.objectElementValidators||{},a=t.style,o=t.styleSpec,s=[],l=zr(r);if(&quot;object&quot;!==l)return[new St(e,r,&quot;object expected, &quot;+l+&quot; found&quot;)];for(var c in r){var u=c.split(&quot;.&quot;)[0],f=n[u]||n[&quot;*&quot;],h=void 0;if(i[u])h=i[u];else if(n[u])h=bn;else if(i[&quot;*&quot;])h=i[&quot;*&quot;];else{if(!n[&quot;*&quot;]){s.push(new St(e,r[c],'unknown property &quot;'+c+'&quot;'));continue}h=bn}s=s.concat(h({key:(e?e+&quot;.&quot;:e)+c,value:r[c],valueSpec:f,style:a,styleSpec:o,object:r,objectKey:c},r))}for(var p in n)i[p]||n[p].required&amp;&amp;void 0===n[p].default&amp;&amp;void 0===r[p]&amp;&amp;s.push(new St(e,r,'missing required property &quot;'+p+'&quot;'));return s}function Zr(t){var e=t.value,r=t.valueSpec,n=t.style,i=t.styleSpec,a=t.key,o=t.arrayElementValidator||bn;if(&quot;array&quot;!==zr(e))return[new St(a,e,&quot;array expected, &quot;+zr(e)+&quot; found&quot;)];if(r.length&amp;&amp;e.length!==r.length)return[new St(a,e,&quot;array length &quot;+r.length+&quot; expected, length &quot;+e.length+&quot; found&quot;)];if(r[&quot;min-length&quot;]&amp;&amp;e.length&lt;r[&quot;min-length&quot;])return[new St(a,e,&quot;array length at least &quot;+r[&quot;min-length&quot;]+&quot; expected, length &quot;+e.length+&quot; found&quot;)];var s={type:r.value,values:r.values};i.$version&lt;7&amp;&amp;(s.function=r.function),&quot;object&quot;===zr(r.value)&amp;&amp;(s=r.value);for(var l=[],c=0;c&lt;e.length;c++)l=l.concat(o({array:e,arrayIndex:c,value:e[c],valueSpec:s,style:n,styleSpec:i,key:a+&quot;[&quot;+c+&quot;]&quot;}));return l}function Jr(t){var e=t.key,r=t.value,n=t.valueSpec,i=zr(r);return&quot;number&quot;===i&amp;&amp;r!=r&amp;&amp;(i=&quot;NaN&quot;),&quot;number&quot;!==i?[new St(e,r,&quot;number expected, &quot;+i+&quot; found&quot;)]:&quot;minimum&quot;in n&amp;&amp;r&lt;n.minimum?[new St(e,r,r+&quot; is less than the minimum value &quot;+n.minimum)]:&quot;maximum&quot;in n&amp;&amp;r&gt;n.maximum?[new St(e,r,r+&quot; is greater than the maximum value &quot;+n.maximum)]:[]}function Kr(t){var e,r,n,i=t.valueSpec,a=Lt(t.value.type),o={},s=&quot;categorical&quot;!==a&amp;&amp;void 0===t.value.property,l=!s,c=&quot;array&quot;===zr(t.value.stops)&amp;&amp;&quot;array&quot;===zr(t.value.stops[0])&amp;&amp;&quot;object&quot;===zr(t.value.stops[0][0]),u=Xr({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if(&quot;identity&quot;===a)return[new St(t.key,t.value,'identity function may not have a &quot;stops&quot; property')];var e=[],r=t.value;return e=e.concat(Zr({key:t.key,value:r,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:f})),&quot;array&quot;===zr(r)&amp;&amp;0===r.length&amp;&amp;e.push(new St(t.key,r,&quot;array must have at least one stop&quot;)),e},default:function(t){return bn({key:t.key,value:t.value,valueSpec:i,style:t.style,styleSpec:t.styleSpec})}}});return&quot;identity&quot;===a&amp;&amp;s&amp;&amp;u.push(new St(t.key,t.value,'missing required property &quot;property&quot;')),&quot;identity&quot;===a||t.value.stops||u.push(new St(t.key,t.value,'missing required property &quot;stops&quot;')),&quot;exponential&quot;===a&amp;&amp;t.valueSpec.expression&amp;&amp;!Pr(t.valueSpec)&amp;&amp;u.push(new St(t.key,t.value,&quot;exponential functions not supported&quot;)),t.styleSpec.$version&gt;=8&amp;&amp;(l&amp;&amp;!Lr(t.valueSpec)?u.push(new St(t.key,t.value,&quot;property functions not supported&quot;)):s&amp;&amp;!Ir(t.valueSpec)&amp;&amp;u.push(new St(t.key,t.value,&quot;zoom functions not supported&quot;))),&quot;categorical&quot;!==a&amp;&amp;!c||void 0!==t.value.property||u.push(new St(t.key,t.value,'&quot;property&quot; property is required')),u;function f(t){var e=[],a=t.value,s=t.key;if(&quot;array&quot;!==zr(a))return[new St(s,a,&quot;array expected, &quot;+zr(a)+&quot; found&quot;)];if(2!==a.length)return[new St(s,a,&quot;array length 2 expected, length &quot;+a.length+&quot; found&quot;)];if(c){if(&quot;object&quot;!==zr(a[0]))return[new St(s,a,&quot;object expected, &quot;+zr(a[0])+&quot; found&quot;)];if(void 0===a[0].zoom)return[new St(s,a,&quot;object stop key must have zoom&quot;)];if(void 0===a[0].value)return[new St(s,a,&quot;object stop key must have value&quot;)];if(n&amp;&amp;n&gt;Lt(a[0].zoom))return[new St(s,a[0].zoom,&quot;stop zoom values must appear in ascending order&quot;)];Lt(a[0].zoom)!==n&amp;&amp;(n=Lt(a[0].zoom),r=void 0,o={}),e=e.concat(Xr({key:s+&quot;[0]&quot;,value:a[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:Jr,value:h}}))}else e=e.concat(h({key:s+&quot;[0]&quot;,value:a[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},a));return Vr(It(a[1]))?e.concat([new St(s+&quot;[1]&quot;,a[1],&quot;expressions are not allowed in function stops.&quot;)]):e.concat(bn({key:s+&quot;[1]&quot;,value:a[1],valueSpec:i,style:t.style,styleSpec:t.styleSpec}))}function h(t,n){var s=zr(t.value),l=Lt(t.value),c=null!==t.value?t.value:n;if(e){if(s!==e)return[new St(t.key,c,s+&quot; stop domain type must match previous stop domain type &quot;+e)]}else e=s;if(&quot;number&quot;!==s&amp;&amp;&quot;string&quot;!==s&amp;&amp;&quot;boolean&quot;!==s)return[new St(t.key,c,&quot;stop domain value must be a number, string, or boolean&quot;)];if(&quot;number&quot;!==s&amp;&amp;&quot;categorical&quot;!==a){var u=&quot;number expected, &quot;+s+&quot; found&quot;;return Lr(i)&amp;&amp;void 0===a&amp;&amp;(u+='\nIf you intended to use a categorical function, specify `&quot;type&quot;: &quot;categorical&quot;`.'),[new St(t.key,c,u)]}return&quot;categorical&quot;!==a||&quot;number&quot;!==s||isFinite(l)&amp;&amp;Math.floor(l)===l?&quot;categorical&quot;!==a&amp;&amp;&quot;number&quot;===s&amp;&amp;void 0!==r&amp;&amp;l&lt;r?[new St(t.key,c,&quot;stop domain values must appear in ascending order&quot;)]:(r=l,&quot;categorical&quot;===a&amp;&amp;l in o?[new St(t.key,c,&quot;stop domain values must be unique&quot;)]:(o[l]=!0,[])):[new St(t.key,c,&quot;integer expected, found &quot;+l)]}}function Qr(t){var e=(&quot;property&quot;===t.expressionContext?Yr:qr)(It(t.value),t.valueSpec);if(&quot;error&quot;===e.result)return e.value.map((function(e){return new St(&quot;&quot;+t.key+e.key,t.value,e.message)}));var r=e.value.expression||e.value._styleExpression.expression;if(&quot;property&quot;===t.expressionContext&amp;&amp;&quot;text-font&quot;===t.propertyKey&amp;&amp;!r.outputDefined())return[new St(t.key,t.value,'Invalid data expression for &quot;'+t.propertyKey+'&quot;. Output values must be contained as literals within the expression.')];if(&quot;property&quot;===t.expressionContext&amp;&amp;&quot;layout&quot;===t.propertyType&amp;&amp;!De(r))return[new St(t.key,t.value,'&quot;feature-state&quot; data expressions are not supported with layout properties.')];if(&quot;filter&quot;===t.expressionContext&amp;&amp;!De(r))return[new St(t.key,t.value,'&quot;feature-state&quot; data expressions are not supported with filters.')];if(t.expressionContext&amp;&amp;0===t.expressionContext.indexOf(&quot;cluster&quot;)){if(!Re(r,[&quot;zoom&quot;,&quot;feature-state&quot;]))return[new St(t.key,t.value,'&quot;zoom&quot; and &quot;feature-state&quot; expressions are not supported with cluster properties.')];if(&quot;cluster-initial&quot;===t.expressionContext&amp;&amp;!Oe(r))return[new St(t.key,t.value,&quot;Feature data expressions are not supported with initial expression part of cluster properties.&quot;)]}return[]}function $r(t){var e=t.key,r=t.value,n=t.valueSpec,i=[];return Array.isArray(n.values)?-1===n.values.indexOf(Lt(r))&amp;&amp;i.push(new St(e,r,&quot;expected one of [&quot;+n.values.join(&quot;, &quot;)+&quot;], &quot;+JSON.stringify(r)+&quot; found&quot;)):-1===Object.keys(n.values).indexOf(Lt(r))&amp;&amp;i.push(new St(e,r,&quot;expected one of [&quot;+Object.keys(n.values).join(&quot;, &quot;)+&quot;], &quot;+JSON.stringify(r)+&quot; found&quot;)),i}function tn(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case&quot;has&quot;:return t.length&gt;=2&amp;&amp;&quot;$id&quot;!==t[1]&amp;&amp;&quot;$type&quot;!==t[1];case&quot;in&quot;:return t.length&gt;=3&amp;&amp;(&quot;string&quot;!=typeof t[1]||Array.isArray(t[2]));case&quot;!in&quot;:case&quot;!has&quot;:case&quot;none&quot;:return!1;case&quot;==&quot;:case&quot;!=&quot;:case&quot;&gt;&quot;:case&quot;&gt;=&quot;:case&quot;&lt;&quot;:case&quot;&lt;=&quot;:return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case&quot;any&quot;:case&quot;all&quot;:for(var e=0,r=t.slice(1);e&lt;r.length;e+=1){var n=r[e];if(!tn(n)&amp;&amp;&quot;boolean&quot;!=typeof n)return!1}return!0;default:return!0}}Wr.deserialize=function(t){return new Wr(t._parameters,t._specification)},Wr.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var en={type:&quot;boolean&quot;,default:!1,transition:!1,&quot;property-type&quot;:&quot;data-driven&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]}};function rn(t){if(null==t)return{filter:function(){return!0},needGeometry:!1};tn(t)||(t=an(t));var e=qr(t,en);if(&quot;error&quot;===e.result)throw new Error(e.value.map((function(t){return t.key+&quot;: &quot;+t.message})).join(&quot;, &quot;));return{filter:function(t,r,n){return e.value.evaluate(t,r,{},n)},needGeometry:function t(e){if(!Array.isArray(e))return!1;if(&quot;within&quot;===e[0])return!0;for(var r=1;r&lt;e.length;r++)if(t(e[r]))return!0;return!1}(t)}}function nn(t,e){return t&lt;e?-1:t&gt;e?1:0}function an(t){if(!t)return!0;var e,r=t[0];return t.length&lt;=1?&quot;any&quot;!==r:&quot;==&quot;===r?on(t[1],t[2],&quot;==&quot;):&quot;!=&quot;===r?cn(on(t[1],t[2],&quot;==&quot;)):&quot;&lt;&quot;===r||&quot;&gt;&quot;===r||&quot;&lt;=&quot;===r||&quot;&gt;=&quot;===r?on(t[1],t[2],r):&quot;any&quot;===r?(e=t.slice(1),[&quot;any&quot;].concat(e.map(an))):&quot;all&quot;===r?[&quot;all&quot;].concat(t.slice(1).map(an)):&quot;none&quot;===r?[&quot;all&quot;].concat(t.slice(1).map(an).map(cn)):&quot;in&quot;===r?sn(t[1],t.slice(2)):&quot;!in&quot;===r?cn(sn(t[1],t.slice(2))):&quot;has&quot;===r?ln(t[1]):&quot;!has&quot;===r?cn(ln(t[1])):&quot;within&quot;!==r||t}function on(t,e,r){switch(t){case&quot;$type&quot;:return[&quot;filter-type-&quot;+r,e];case&quot;$id&quot;:return[&quot;filter-id-&quot;+r,e];default:return[&quot;filter-&quot;+r,t,e]}}function sn(t,e){if(0===e.length)return!1;switch(t){case&quot;$type&quot;:return[&quot;filter-type-in&quot;,[&quot;literal&quot;,e]];case&quot;$id&quot;:return[&quot;filter-id-in&quot;,[&quot;literal&quot;,e]];default:return e.length&gt;200&amp;&amp;!e.some((function(t){return typeof t!=typeof e[0]}))?[&quot;filter-in-large&quot;,t,[&quot;literal&quot;,e.sort(nn)]]:[&quot;filter-in-small&quot;,t,[&quot;literal&quot;,e]]}}function ln(t){switch(t){case&quot;$type&quot;:return!0;case&quot;$id&quot;:return[&quot;filter-has-id&quot;];default:return[&quot;filter-has&quot;,t]}}function cn(t){return[&quot;!&quot;,t]}function un(t){return tn(It(t.value))?Qr(Ct({},t,{expressionContext:&quot;filter&quot;,valueSpec:{value:&quot;boolean&quot;}})):function t(e){var r=e.value,n=e.key;if(&quot;array&quot;!==zr(r))return[new St(n,r,&quot;array expected, &quot;+zr(r)+&quot; found&quot;)];var i,a=e.styleSpec,o=[];if(r.length&lt;1)return[new St(n,r,&quot;filter array must have at least 1 element&quot;)];switch(o=o.concat($r({key:n+&quot;[0]&quot;,value:r[0],valueSpec:a.filter_operator,style:e.style,styleSpec:e.styleSpec})),Lt(r[0])){case&quot;&lt;&quot;:case&quot;&lt;=&quot;:case&quot;&gt;&quot;:case&quot;&gt;=&quot;:r.length&gt;=2&amp;&amp;&quot;$type&quot;===Lt(r[1])&amp;&amp;o.push(new St(n,r,'&quot;$type&quot; cannot be use with operator &quot;'+r[0]+'&quot;'));case&quot;==&quot;:case&quot;!=&quot;:3!==r.length&amp;&amp;o.push(new St(n,r,'filter array for operator &quot;'+r[0]+'&quot; must have 3 elements'));case&quot;in&quot;:case&quot;!in&quot;:r.length&gt;=2&amp;&amp;&quot;string&quot;!==(i=zr(r[1]))&amp;&amp;o.push(new St(n+&quot;[1]&quot;,r[1],&quot;string expected, &quot;+i+&quot; found&quot;));for(var s=2;s&lt;r.length;s++)i=zr(r[s]),&quot;$type&quot;===Lt(r[1])?o=o.concat($r({key:n+&quot;[&quot;+s+&quot;]&quot;,value:r[s],valueSpec:a.geometry_type,style:e.style,styleSpec:e.styleSpec})):&quot;string&quot;!==i&amp;&amp;&quot;number&quot;!==i&amp;&amp;&quot;boolean&quot;!==i&amp;&amp;o.push(new St(n+&quot;[&quot;+s+&quot;]&quot;,r[s],&quot;string, number, or boolean expected, &quot;+i+&quot; found&quot;));break;case&quot;any&quot;:case&quot;all&quot;:case&quot;none&quot;:for(var l=1;l&lt;r.length;l++)o=o.concat(t({key:n+&quot;[&quot;+l+&quot;]&quot;,value:r[l],style:e.style,styleSpec:e.styleSpec}));break;case&quot;has&quot;:case&quot;!has&quot;:i=zr(r[1]),2!==r.length?o.push(new St(n,r,'filter array for &quot;'+r[0]+'&quot; operator must have 2 elements')):&quot;string&quot;!==i&amp;&amp;o.push(new St(n+&quot;[1]&quot;,r[1],&quot;string expected, &quot;+i+&quot; found&quot;));break;case&quot;within&quot;:i=zr(r[1]),2!==r.length?o.push(new St(n,r,'filter array for &quot;'+r[0]+'&quot; operator must have 2 elements')):&quot;object&quot;!==i&amp;&amp;o.push(new St(n+&quot;[1]&quot;,r[1],&quot;object expected, &quot;+i+&quot; found&quot;))}return o}(t)}function fn(t,e){var r=t.key,n=t.style,i=t.styleSpec,a=t.value,o=t.objectKey,s=i[e+&quot;_&quot;+t.layerType];if(!s)return[];var l=o.match(/^(.*)-transition$/);if(&quot;paint&quot;===e&amp;&amp;l&amp;&amp;s[l[1]]&amp;&amp;s[l[1]].transition)return bn({key:r,value:a,valueSpec:i.transition,style:n,styleSpec:i});var c,u=t.valueSpec||s[o];if(!u)return[new St(r,a,'unknown property &quot;'+o+'&quot;')];if(&quot;string&quot;===zr(a)&amp;&amp;Lr(u)&amp;&amp;!u.tokens&amp;&amp;(c=/^{([^}]+)}$/.exec(a)))return[new St(r,a,'&quot;'+o+'&quot; does not support interpolation syntax\nUse an identity property function instead: `{ &quot;type&quot;: &quot;identity&quot;, &quot;property&quot;: '+JSON.stringify(c[1])+&quot; }`.&quot;)];var f=[];return&quot;symbol&quot;===t.layerType&amp;&amp;(&quot;text-field&quot;===o&amp;&amp;n&amp;&amp;!n.glyphs&amp;&amp;f.push(new St(r,a,'use of &quot;text-field&quot; requires a style &quot;glyphs&quot; property')),&quot;text-font&quot;===o&amp;&amp;Or(It(a))&amp;&amp;&quot;identity&quot;===Lt(a.type)&amp;&amp;f.push(new St(r,a,'&quot;text-font&quot; does not support identity functions'))),f.concat(bn({key:t.key,value:a,valueSpec:u,style:n,styleSpec:i,expressionContext:&quot;property&quot;,propertyType:e,propertyKey:o}))}function hn(t){return fn(t,&quot;paint&quot;)}function pn(t){return fn(t,&quot;layout&quot;)}function dn(t){var e=[],r=t.value,n=t.key,i=t.style,a=t.styleSpec;r.type||r.ref||e.push(new St(n,r,'either &quot;type&quot; or &quot;ref&quot; is required'));var o,s=Lt(r.type),l=Lt(r.ref);if(r.id)for(var c=Lt(r.id),u=0;u&lt;t.arrayIndex;u++){var f=i.layers[u];Lt(f.id)===c&amp;&amp;e.push(new St(n,r.id,'duplicate layer id &quot;'+r.id+'&quot;, previously used at line '+f.id.__line__))}if(&quot;ref&quot;in r)[&quot;type&quot;,&quot;source&quot;,&quot;source-layer&quot;,&quot;filter&quot;,&quot;layout&quot;].forEach((function(t){t in r&amp;&amp;e.push(new St(n,r[t],'&quot;'+t+'&quot; is prohibited for ref layers'))})),i.layers.forEach((function(t){Lt(t.id)===l&amp;&amp;(o=t)})),o?o.ref?e.push(new St(n,r.ref,&quot;ref cannot reference another ref layer&quot;)):s=Lt(o.type):e.push(new St(n,r.ref,'ref layer &quot;'+l+'&quot; not found'));else if(&quot;background&quot;!==s)if(r.source){var h=i.sources&amp;&amp;i.sources[r.source],p=h&amp;&amp;Lt(h.type);h?&quot;vector&quot;===p&amp;&amp;&quot;raster&quot;===s?e.push(new St(n,r.source,'layer &quot;'+r.id+'&quot; requires a raster source')):&quot;raster&quot;===p&amp;&amp;&quot;raster&quot;!==s?e.push(new St(n,r.source,'layer &quot;'+r.id+'&quot; requires a vector source')):&quot;vector&quot;!==p||r[&quot;source-layer&quot;]?&quot;raster-dem&quot;===p&amp;&amp;&quot;hillshade&quot;!==s?e.push(new St(n,r.source,&quot;raster-dem source can only be used with layer type 'hillshade'.&quot;)):&quot;line&quot;!==s||!r.paint||!r.paint[&quot;line-gradient&quot;]||&quot;geojson&quot;===p&amp;&amp;h.lineMetrics||e.push(new St(n,r,'layer &quot;'+r.id+'&quot; specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new St(n,r,'layer &quot;'+r.id+'&quot; must specify a &quot;source-layer&quot;')):e.push(new St(n,r.source,'source &quot;'+r.source+'&quot; not found'))}else e.push(new St(n,r,'missing required property &quot;source&quot;'));return e=e.concat(Xr({key:n,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(){return[]},type:function(){return bn({key:n+&quot;.type&quot;,value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,object:r,objectKey:&quot;type&quot;})},filter:un,layout:function(t){return Xr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(t){return pn(Ct({layerType:s},t))}}})},paint:function(t){return Xr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(t){return hn(Ct({layerType:s},t))}}})}}}))}function gn(t){var e=t.value,r=t.key,n=zr(e);return&quot;string&quot;!==n?[new St(r,e,&quot;string expected, &quot;+n+&quot; found&quot;)]:[]}var mn={promoteId:function(t){var e=t.key,r=t.value;if(&quot;string&quot;===zr(r))return gn({key:e,value:r});var n=[];for(var i in r)n.push.apply(n,gn({key:e+&quot;.&quot;+i,value:r[i]}));return n}};function vn(t){var e=t.value,r=t.key,n=t.styleSpec,i=t.style;if(!e.type)return[new St(r,e,'&quot;type&quot; is required')];var a,o=Lt(e.type);switch(o){case&quot;vector&quot;:case&quot;raster&quot;:case&quot;raster-dem&quot;:return Xr({key:r,value:e,valueSpec:n[&quot;source_&quot;+o.replace(&quot;-&quot;,&quot;_&quot;)],style:t.style,styleSpec:n,objectElementValidators:mn});case&quot;geojson&quot;:if(a=Xr({key:r,value:e,valueSpec:n.source_geojson,style:i,styleSpec:n,objectElementValidators:mn}),e.cluster)for(var s in e.clusterProperties){var l=e.clusterProperties[s],c=l[0],u=&quot;string&quot;==typeof c?[c,[&quot;accumulated&quot;],[&quot;get&quot;,s]]:c;a.push.apply(a,Qr({key:r+&quot;.&quot;+s+&quot;.map&quot;,value:l[1],expressionContext:&quot;cluster-map&quot;})),a.push.apply(a,Qr({key:r+&quot;.&quot;+s+&quot;.reduce&quot;,value:u,expressionContext:&quot;cluster-reduce&quot;}))}return a;case&quot;video&quot;:return Xr({key:r,value:e,valueSpec:n.source_video,style:i,styleSpec:n});case&quot;image&quot;:return Xr({key:r,value:e,valueSpec:n.source_image,style:i,styleSpec:n});case&quot;canvas&quot;:return[new St(r,null,&quot;Please use runtime APIs to add canvas sources, rather than including them in stylesheets.&quot;,&quot;source.canvas&quot;)];default:return $r({key:r+&quot;.type&quot;,value:e.type,valueSpec:{values:[&quot;vector&quot;,&quot;raster&quot;,&quot;raster-dem&quot;,&quot;geojson&quot;,&quot;video&quot;,&quot;image&quot;]},style:i,styleSpec:n})}}function yn(t){var e=t.value,r=t.styleSpec,n=r.light,i=t.style,a=[],o=zr(e);if(void 0===e)return a;if(&quot;object&quot;!==o)return a.concat([new St(&quot;light&quot;,e,&quot;object expected, &quot;+o+&quot; found&quot;)]);for(var s in e){var l=s.match(/^(.*)-transition$/);a=a.concat(l&amp;&amp;n[l[1]]&amp;&amp;n[l[1]].transition?bn({key:s,value:e[s],valueSpec:r.transition,style:i,styleSpec:r}):n[s]?bn({key:s,value:e[s],valueSpec:n[s],style:i,styleSpec:r}):[new St(s,e[s],'unknown property &quot;'+s+'&quot;')])}return a}var xn={&quot;*&quot;:function(){return[]},array:Zr,boolean:function(t){var e=t.value,r=t.key,n=zr(e);return&quot;boolean&quot;!==n?[new St(r,e,&quot;boolean expected, &quot;+n+&quot; found&quot;)]:[]},number:Jr,color:function(t){var e=t.key,r=t.value,n=zr(r);return&quot;string&quot;!==n?[new St(e,r,&quot;color expected, &quot;+n+&quot; found&quot;)]:null===Jt(r)?[new St(e,r,'color expected, &quot;'+r+'&quot; found')]:[]},constants:Et,enum:$r,filter:un,function:Kr,layer:dn,object:Xr,source:vn,light:yn,string:gn,formatted:function(t){return 0===gn(t).length?[]:Qr(t)},resolvedImage:function(t){return 0===gn(t).length?[]:Qr(t)}};function bn(t){var e=t.value,r=t.valueSpec,n=t.styleSpec;return r.expression&amp;&amp;Or(Lt(e))?Kr(t):r.expression&amp;&amp;Vr(It(e))?Qr(t):r.type&amp;&amp;xn[r.type]?xn[r.type](t):Xr(Ct({},t,{valueSpec:r.type?n[r.type]:r}))}function _n(t){var e=t.value,r=t.key,n=gn(t);return n.length||(-1===e.indexOf(&quot;{fontstack}&quot;)&amp;&amp;n.push(new St(r,e,'&quot;glyphs&quot; url must include a &quot;{fontstack}&quot; token')),-1===e.indexOf(&quot;{range}&quot;)&amp;&amp;n.push(new St(r,e,'&quot;glyphs&quot; url must include a &quot;{range}&quot; token'))),n}function wn(t,e){void 0===e&amp;&amp;(e=At);var r=[];return r=r.concat(bn({key:&quot;&quot;,value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:_n,&quot;*&quot;:function(){return[]}}})),t.constants&amp;&amp;(r=r.concat(Et({key:&quot;constants&quot;,value:t.constants,style:t,styleSpec:e}))),Tn(r)}function Tn(t){return[].concat(t).sort((function(t,e){return t.line-e.line}))}function kn(t){return function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return Tn(t.apply(this,e))}}wn.source=kn(vn),wn.light=kn(yn),wn.layer=kn(dn),wn.filter=kn(un),wn.paintProperty=kn(hn),wn.layoutProperty=kn(pn);var Mn=wn,An=Mn.light,Sn=Mn.paintProperty,En=Mn.layoutProperty;function Cn(t,e){var r=!1;if(e&amp;&amp;e.length)for(var n=0,i=e;n&lt;i.length;n+=1)t.fire(new kt(new Error(i[n].message))),r=!0;return r}var Ln=In;function In(t,e,r){var n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var i=new Int32Array(this.arrayBuffer);t=i[0],this.d=(e=i[1])+2*(r=i[2]);for(var a=0;a&lt;this.d*this.d;a++){var o=i[3+a],s=i[3+a+1];n.push(o===s?null:i.subarray(o,s))}var l=i[3+n.length+1];this.keys=i.subarray(i[3+n.length],l),this.bboxes=i.subarray(l),this.insert=this._insertReadonly}else{this.d=e+2*r;for(var c=0;c&lt;this.d*this.d;c++)n.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=r,this.scale=e/t,this.uid=0;var u=r/e*t;this.min=-u,this.max=t+u}In.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},In.prototype._insertReadonly=function(){throw&quot;Cannot insert into a GridIndex created from an ArrayBuffer.&quot;},In.prototype._insertCell=function(t,e,r,n,i,a){this.cells[i].push(a)},In.prototype.query=function(t,e,r,n,i){var a=this.min,o=this.max;if(t&lt;=a&amp;&amp;e&lt;=a&amp;&amp;o&lt;=r&amp;&amp;o&lt;=n&amp;&amp;!i)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(t,e,r,n,this._queryCell,s,{},i),s},In.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=this.cells[i];if(null!==l)for(var c=this.keys,u=this.bboxes,f=0;f&lt;l.length;f++){var h=l[f];if(void 0===o[h]){var p=4*h;(s?s(u[p+0],u[p+1],u[p+2],u[p+3]):t&lt;=u[p+2]&amp;&amp;e&lt;=u[p+3]&amp;&amp;r&gt;=u[p+0]&amp;&amp;n&gt;=u[p+1])?(o[h]=!0,a.push(c[h])):o[h]=!1}}},In.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToCellCoord(t),c=this._convertToCellCoord(e),u=this._convertToCellCoord(r),f=this._convertToCellCoord(n),h=l;h&lt;=u;h++)for(var p=c;p&lt;=f;p++){var d=this.d*p+h;if((!s||s(this._convertFromCellCoord(h),this._convertFromCellCoord(p),this._convertFromCellCoord(h+1),this._convertFromCellCoord(p+1)))&amp;&amp;i.call(this,t,e,r,n,d,a,o,s))return}},In.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},In.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},In.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,r=0,n=0;n&lt;this.cells.length;n++)r+=this.cells[n].length;var i=new Int32Array(e+r+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var a=e,o=0;o&lt;t.length;o++){var s=t[o];i[3+o]=a,i.set(s,a),a+=s.length}return i[3+t.length]=a,i.set(this.keys,a),i[3+t.length+1]=a+=this.keys.length,i.set(this.bboxes,a),a+=this.bboxes.length,i.buffer};var Pn=self.ImageData,zn=self.ImageBitmap,On={};function Dn(t,e,r){void 0===r&amp;&amp;(r={}),Object.defineProperty(e,&quot;_classRegistryKey&quot;,{value:t,writeable:!1}),On[t]={klass:e,omit:r.omit||[],shallow:r.shallow||[]}}for(var Rn in Dn(&quot;Object&quot;,Object),Ln.serialize=function(t,e){var r=t.toArrayBuffer();return e&amp;&amp;e.push(r),{buffer:r}},Ln.deserialize=function(t){return new Ln(t.buffer)},Dn(&quot;Grid&quot;,Ln),Dn(&quot;Color&quot;,Kt),Dn(&quot;Error&quot;,Error),Dn(&quot;ResolvedImage&quot;,ee),Dn(&quot;StylePropertyFunction&quot;,Wr),Dn(&quot;StyleExpression&quot;,Ur,{omit:[&quot;_evaluator&quot;]}),Dn(&quot;ZoomDependentExpression&quot;,Gr),Dn(&quot;ZoomConstantExpression&quot;,Hr),Dn(&quot;CompoundExpression&quot;,me,{omit:[&quot;_evaluate&quot;]}),Tr)Tr[Rn]._classRegistryKey||Dn(&quot;Expression_&quot;+Rn,Tr[Rn]);function Fn(t){return t&amp;&amp;&quot;undefined&quot;!=typeof ArrayBuffer&amp;&amp;(t instanceof ArrayBuffer||t.constructor&amp;&amp;&quot;ArrayBuffer&quot;===t.constructor.name)}function Bn(t){return zn&amp;&amp;t instanceof zn}function Nn(t,e){if(null==t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(Fn(t)||Bn(t))return e&amp;&amp;e.push(t),t;if(ArrayBuffer.isView(t)){var r=t;return e&amp;&amp;e.push(r.buffer),r}if(t instanceof Pn)return e&amp;&amp;e.push(t.data.buffer),t;if(Array.isArray(t)){for(var n=[],i=0,a=t;i&lt;a.length;i+=1)n.push(Nn(a[i],e));return n}if(&quot;object&quot;==typeof t){var o=t.constructor,s=o._classRegistryKey;if(!s)throw new Error(&quot;can't serialize object of unregistered class&quot;);var l=o.serialize?o.serialize(t,e):{};if(!o.serialize){for(var c in t)if(t.hasOwnProperty(c)&amp;&amp;!(On[s].omit.indexOf(c)&gt;=0)){var u=t[c];l[c]=On[s].shallow.indexOf(c)&gt;=0?u:Nn(u,e)}t instanceof Error&amp;&amp;(l.message=t.message)}if(l.$name)throw new Error(&quot;$name property is reserved for worker serialization logic.&quot;);return&quot;Object&quot;!==s&amp;&amp;(l.$name=s),l}throw new Error(&quot;can't serialize object of type &quot;+typeof t)}function jn(t){if(null==t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||Fn(t)||Bn(t)||ArrayBuffer.isView(t)||t instanceof Pn)return t;if(Array.isArray(t))return t.map(jn);if(&quot;object&quot;==typeof t){var e=t.$name||&quot;Object&quot;,r=On[e].klass;if(!r)throw new Error(&quot;can't deserialize unregistered class &quot;+e);if(r.deserialize)return r.deserialize(t);for(var n=Object.create(r.prototype),i=0,a=Object.keys(t);i&lt;a.length;i+=1){var o=a[i];if(&quot;$name&quot;!==o){var s=t[o];n[o]=On[e].shallow.indexOf(o)&gt;=0?s:jn(s)}}return n}throw new Error(&quot;can't deserialize object of type &quot;+typeof t)}var Un=function(){this.first=!0};Un.prototype.update=function(t,e){var r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom&gt;r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoom&lt;r&amp;&amp;(this.lastIntegerZoom=r,this.lastIntegerZoomTime=e),t!==this.lastZoom&amp;&amp;(this.lastZoom=t,this.lastFloorZoom=r,!0))};var Vn={&quot;Latin-1 Supplement&quot;:function(t){return t&gt;=128&amp;&amp;t&lt;=255},Arabic:function(t){return t&gt;=1536&amp;&amp;t&lt;=1791},&quot;Arabic Supplement&quot;:function(t){return t&gt;=1872&amp;&amp;t&lt;=1919},&quot;Arabic Extended-A&quot;:function(t){return t&gt;=2208&amp;&amp;t&lt;=2303},&quot;Hangul Jamo&quot;:function(t){return t&gt;=4352&amp;&amp;t&lt;=4607},&quot;Unified Canadian Aboriginal Syllabics&quot;:function(t){return t&gt;=5120&amp;&amp;t&lt;=5759},Khmer:function(t){return t&gt;=6016&amp;&amp;t&lt;=6143},&quot;Unified Canadian Aboriginal Syllabics Extended&quot;:function(t){return t&gt;=6320&amp;&amp;t&lt;=6399},&quot;General Punctuation&quot;:function(t){return t&gt;=8192&amp;&amp;t&lt;=8303},&quot;Letterlike Symbols&quot;:function(t){return t&gt;=8448&amp;&amp;t&lt;=8527},&quot;Number Forms&quot;:function(t){return t&gt;=8528&amp;&amp;t&lt;=8591},&quot;Miscellaneous Technical&quot;:function(t){return t&gt;=8960&amp;&amp;t&lt;=9215},&quot;Control Pictures&quot;:function(t){return t&gt;=9216&amp;&amp;t&lt;=9279},&quot;Optical Character Recognition&quot;:function(t){return t&gt;=9280&amp;&amp;t&lt;=9311},&quot;Enclosed Alphanumerics&quot;:function(t){return t&gt;=9312&amp;&amp;t&lt;=9471},&quot;Geometric Shapes&quot;:function(t){return t&gt;=9632&amp;&amp;t&lt;=9727},&quot;Miscellaneous Symbols&quot;:function(t){return t&gt;=9728&amp;&amp;t&lt;=9983},&quot;Miscellaneous Symbols and Arrows&quot;:function(t){return t&gt;=11008&amp;&amp;t&lt;=11263},&quot;CJK Radicals Supplement&quot;:function(t){return t&gt;=11904&amp;&amp;t&lt;=12031},&quot;Kangxi Radicals&quot;:function(t){return t&gt;=12032&amp;&amp;t&lt;=12255},&quot;Ideographic Description Characters&quot;:function(t){return t&gt;=12272&amp;&amp;t&lt;=12287},&quot;CJK Symbols and Punctuation&quot;:function(t){return t&gt;=12288&amp;&amp;t&lt;=12351},Hiragana:function(t){return t&gt;=12352&amp;&amp;t&lt;=12447},Katakana:function(t){return t&gt;=12448&amp;&amp;t&lt;=12543},Bopomofo:function(t){return t&gt;=12544&amp;&amp;t&lt;=12591},&quot;Hangul Compatibility Jamo&quot;:function(t){return t&gt;=12592&amp;&amp;t&lt;=12687},Kanbun:function(t){return t&gt;=12688&amp;&amp;t&lt;=12703},&quot;Bopomofo Extended&quot;:function(t){return t&gt;=12704&amp;&amp;t&lt;=12735},&quot;CJK Strokes&quot;:function(t){return t&gt;=12736&amp;&amp;t&lt;=12783},&quot;Katakana Phonetic Extensions&quot;:function(t){return t&gt;=12784&amp;&amp;t&lt;=12799},&quot;Enclosed CJK Letters and Months&quot;:function(t){return t&gt;=12800&amp;&amp;t&lt;=13055},&quot;CJK Compatibility&quot;:function(t){return t&gt;=13056&amp;&amp;t&lt;=13311},&quot;CJK Unified Ideographs Extension A&quot;:function(t){return t&gt;=13312&amp;&amp;t&lt;=19903},&quot;Yijing Hexagram Symbols&quot;:function(t){return t&gt;=19904&amp;&amp;t&lt;=19967},&quot;CJK Unified Ideographs&quot;:function(t){return t&gt;=19968&amp;&amp;t&lt;=40959},&quot;Yi Syllables&quot;:function(t){return t&gt;=40960&amp;&amp;t&lt;=42127},&quot;Yi Radicals&quot;:function(t){return t&gt;=42128&amp;&amp;t&lt;=42191},&quot;Hangul Jamo Extended-A&quot;:function(t){return t&gt;=43360&amp;&amp;t&lt;=43391},&quot;Hangul Syllables&quot;:function(t){return t&gt;=44032&amp;&amp;t&lt;=55215},&quot;Hangul Jamo Extended-B&quot;:function(t){return t&gt;=55216&amp;&amp;t&lt;=55295},&quot;Private Use Area&quot;:function(t){return t&gt;=57344&amp;&amp;t&lt;=63743},&quot;CJK Compatibility Ideographs&quot;:function(t){return t&gt;=63744&amp;&amp;t&lt;=64255},&quot;Arabic Presentation Forms-A&quot;:function(t){return t&gt;=64336&amp;&amp;t&lt;=65023},&quot;Vertical Forms&quot;:function(t){return t&gt;=65040&amp;&amp;t&lt;=65055},&quot;CJK Compatibility Forms&quot;:function(t){return t&gt;=65072&amp;&amp;t&lt;=65103},&quot;Small Form Variants&quot;:function(t){return t&gt;=65104&amp;&amp;t&lt;=65135},&quot;Arabic Presentation Forms-B&quot;:function(t){return t&gt;=65136&amp;&amp;t&lt;=65279},&quot;Halfwidth and Fullwidth Forms&quot;:function(t){return t&gt;=65280&amp;&amp;t&lt;=65519}};function qn(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(Hn(r[e].charCodeAt(0)))return!0;return!1}function Hn(t){return!(746!==t&amp;&amp;747!==t&amp;&amp;(t&lt;4352||!(Vn[&quot;Bopomofo Extended&quot;](t)||Vn.Bopomofo(t)||Vn[&quot;CJK Compatibility Forms&quot;](t)&amp;&amp;!(t&gt;=65097&amp;&amp;t&lt;=65103)||Vn[&quot;CJK Compatibility Ideographs&quot;](t)||Vn[&quot;CJK Compatibility&quot;](t)||Vn[&quot;CJK Radicals Supplement&quot;](t)||Vn[&quot;CJK Strokes&quot;](t)||!(!Vn[&quot;CJK Symbols and Punctuation&quot;](t)||t&gt;=12296&amp;&amp;t&lt;=12305||t&gt;=12308&amp;&amp;t&lt;=12319||12336===t)||Vn[&quot;CJK Unified Ideographs Extension A&quot;](t)||Vn[&quot;CJK Unified Ideographs&quot;](t)||Vn[&quot;Enclosed CJK Letters and Months&quot;](t)||Vn[&quot;Hangul Compatibility Jamo&quot;](t)||Vn[&quot;Hangul Jamo Extended-A&quot;](t)||Vn[&quot;Hangul Jamo Extended-B&quot;](t)||Vn[&quot;Hangul Jamo&quot;](t)||Vn[&quot;Hangul Syllables&quot;](t)||Vn.Hiragana(t)||Vn[&quot;Ideographic Description Characters&quot;](t)||Vn.Kanbun(t)||Vn[&quot;Kangxi Radicals&quot;](t)||Vn[&quot;Katakana Phonetic Extensions&quot;](t)||Vn.Katakana(t)&amp;&amp;12540!==t||!(!Vn[&quot;Halfwidth and Fullwidth Forms&quot;](t)||65288===t||65289===t||65293===t||t&gt;=65306&amp;&amp;t&lt;=65310||65339===t||65341===t||65343===t||t&gt;=65371&amp;&amp;t&lt;=65503||65507===t||t&gt;=65512&amp;&amp;t&lt;=65519)||!(!Vn[&quot;Small Form Variants&quot;](t)||t&gt;=65112&amp;&amp;t&lt;=65118||t&gt;=65123&amp;&amp;t&lt;=65126)||Vn[&quot;Unified Canadian Aboriginal Syllabics&quot;](t)||Vn[&quot;Unified Canadian Aboriginal Syllabics Extended&quot;](t)||Vn[&quot;Vertical Forms&quot;](t)||Vn[&quot;Yijing Hexagram Symbols&quot;](t)||Vn[&quot;Yi Syllables&quot;](t)||Vn[&quot;Yi Radicals&quot;](t))))}function Gn(t){return!(Hn(t)||function(t){return!!(Vn[&quot;Latin-1 Supplement&quot;](t)&amp;&amp;(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||Vn[&quot;General Punctuation&quot;](t)&amp;&amp;(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||Vn[&quot;Letterlike Symbols&quot;](t)||Vn[&quot;Number Forms&quot;](t)||Vn[&quot;Miscellaneous Technical&quot;](t)&amp;&amp;(t&gt;=8960&amp;&amp;t&lt;=8967||t&gt;=8972&amp;&amp;t&lt;=8991||t&gt;=8996&amp;&amp;t&lt;=9e3||9003===t||t&gt;=9085&amp;&amp;t&lt;=9114||t&gt;=9150&amp;&amp;t&lt;=9165||9167===t||t&gt;=9169&amp;&amp;t&lt;=9179||t&gt;=9186&amp;&amp;t&lt;=9215)||Vn[&quot;Control Pictures&quot;](t)&amp;&amp;9251!==t||Vn[&quot;Optical Character Recognition&quot;](t)||Vn[&quot;Enclosed Alphanumerics&quot;](t)||Vn[&quot;Geometric Shapes&quot;](t)||Vn[&quot;Miscellaneous Symbols&quot;](t)&amp;&amp;!(t&gt;=9754&amp;&amp;t&lt;=9759)||Vn[&quot;Miscellaneous Symbols and Arrows&quot;](t)&amp;&amp;(t&gt;=11026&amp;&amp;t&lt;=11055||t&gt;=11088&amp;&amp;t&lt;=11097||t&gt;=11192&amp;&amp;t&lt;=11243)||Vn[&quot;CJK Symbols and Punctuation&quot;](t)||Vn.Katakana(t)||Vn[&quot;Private Use Area&quot;](t)||Vn[&quot;CJK Compatibility Forms&quot;](t)||Vn[&quot;Small Form Variants&quot;](t)||Vn[&quot;Halfwidth and Fullwidth Forms&quot;](t)||8734===t||8756===t||8757===t||t&gt;=9984&amp;&amp;t&lt;=10087||t&gt;=10102&amp;&amp;t&lt;=10131||65532===t||65533===t)}(t))}function Yn(t){return t&gt;=1424&amp;&amp;t&lt;=2303||Vn[&quot;Arabic Presentation Forms-A&quot;](t)||Vn[&quot;Arabic Presentation Forms-B&quot;](t)}function Wn(t,e){return!(!e&amp;&amp;Yn(t)||t&gt;=2304&amp;&amp;t&lt;=3583||t&gt;=3840&amp;&amp;t&lt;=4255||Vn.Khmer(t))}function Xn(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(Yn(r[e].charCodeAt(0)))return!0;return!1}var Zn=null,Jn=&quot;unavailable&quot;,Kn=null,Qn=function(t){t&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;t.indexOf(&quot;NetworkError&quot;)&gt;-1&amp;&amp;(Jn=&quot;error&quot;),Zn&amp;&amp;Zn(t)};function $n(){ti.fire(new Tt(&quot;pluginStateChange&quot;,{pluginStatus:Jn,pluginURL:Kn}))}var ti=new Mt,ei=function(){return Jn},ri=function(){if(&quot;deferred&quot;!==Jn||!Kn)throw new Error(&quot;rtl-text-plugin cannot be downloaded unless a pluginURL is specified&quot;);Jn=&quot;loading&quot;,$n(),Kn&amp;&amp;yt({url:Kn},(function(t){t?Qn(t):(Jn=&quot;loaded&quot;,$n())}))},ni={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return&quot;loaded&quot;===Jn||null!=ni.applyArabicShaping},isLoading:function(){return&quot;loading&quot;===Jn},setState:function(t){Jn=t.pluginStatus,Kn=t.pluginURL},isParsed:function(){return null!=ni.applyArabicShaping&amp;&amp;null!=ni.processBidirectionalText&amp;&amp;null!=ni.processStyledBidirectionalText},getPluginURL:function(){return Kn}},ii=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Un,this.transition={})};ii.prototype.isSupportedScript=function(t){return function(t,e){for(var r=0,n=t;r&lt;n.length;r+=1)if(!Wn(n[r].charCodeAt(0),e))return!1;return!0}(t,ni.isLoaded())},ii.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},ii.prototype.getCrossfadeParameters=function(){var t=this.zoom,e=t-Math.floor(t),r=this.crossFadingFactor();return t&gt;this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}};var ai=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(Or(t))return new Wr(t,e);if(Vr(t)){var r=Yr(t,e);if(&quot;error&quot;===r.result)throw new Error(r.value.map((function(t){return t.key+&quot;: &quot;+t.message})).join(&quot;, &quot;));return r.value}var n=t;return&quot;string&quot;==typeof t&amp;&amp;&quot;color&quot;===e.type&amp;&amp;(n=Kt.parse(t)),{kind:&quot;constant&quot;,evaluate:function(){return n}}}(void 0===e?t.specification.default:e,t.specification)};ai.prototype.isDataDriven=function(){return&quot;source&quot;===this.expression.kind||&quot;composite&quot;===this.expression.kind},ai.prototype.possiblyEvaluate=function(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)};var oi=function(t){this.property=t,this.value=new ai(t,void 0)};oi.prototype.transitioned=function(t,e){return new li(this.property,this.value,e,u({},t.transition,this.transition),t.now)},oi.prototype.untransitioned=function(){return new li(this.property,this.value,null,{},0)};var si=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};si.prototype.getValue=function(t){return x(this._values[t].value.value)},si.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new oi(this._values[t].property)),this._values[t].value=new ai(this._values[t].property,null===e?void 0:x(e))},si.prototype.getTransition=function(t){return x(this._values[t].transition)},si.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new oi(this._values[t].property)),this._values[t].transition=x(e)||void 0},si.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&amp;&amp;(t[n]=i);var a=this.getTransition(n);void 0!==a&amp;&amp;(t[n+&quot;-transition&quot;]=a)}return t},si.prototype.transitioned=function(t,e){for(var r=new ci(this._properties),n=0,i=Object.keys(this._values);n&lt;i.length;n+=1){var a=i[n];r._values[a]=this._values[a].transitioned(t,e._values[a])}return r},si.prototype.untransitioned=function(){for(var t=new ci(this._properties),e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e];t._values[n]=this._values[n].untransitioned()}return t};var li=function(t,e,r,n,i){this.property=t,this.value=e,this.begin=i+n.delay||0,this.end=this.begin+n.duration||0,t.specification.transition&amp;&amp;(n.delay||n.duration)&amp;&amp;(this.prior=r)};li.prototype.possiblyEvaluate=function(t,e,r){var n=t.now||0,i=this.value.possiblyEvaluate(t,e,r),a=this.prior;if(a){if(n&gt;this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(n&lt;this.begin)return a.possiblyEvaluate(t,e,r);var o=(n-this.begin)/(this.end-this.begin);return this.property.interpolate(a.possiblyEvaluate(t,e,r),i,function(t){if(t&lt;=0)return 0;if(t&gt;=1)return 1;var e=t*t,r=e*t;return 4*(t&lt;.5?r:3*(t-e)+r-.75)}(o))}return i};var ci=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};ci.prototype.possiblyEvaluate=function(t,e,r){for(var n=new hi(this._properties),i=0,a=Object.keys(this._values);i&lt;a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n},ci.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t&lt;e.length;t+=1)if(this._values[e[t]].prior)return!0;return!1};var ui=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};ui.prototype.getValue=function(t){return x(this._values[t].value)},ui.prototype.setValue=function(t,e){this._values[t]=new ai(this._values[t].property,null===e?void 0:x(e))},ui.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&amp;&amp;(t[n]=i)}return t},ui.prototype.possiblyEvaluate=function(t,e,r){for(var n=new hi(this._properties),i=0,a=Object.keys(this._values);i&lt;a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n};var fi=function(t,e,r){this.property=t,this.value=e,this.parameters=r};fi.prototype.isConstant=function(){return&quot;constant&quot;===this.value.kind},fi.prototype.constantOr=function(t){return&quot;constant&quot;===this.value.kind?this.value.value:t},fi.prototype.evaluate=function(t,e,r,n){return this.property.evaluate(this.value,this.parameters,t,e,r,n)};var hi=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};hi.prototype.get=function(t){return this._values[t]};var pi=function(t){this.specification=t};pi.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},pi.prototype.interpolate=function(t,e,r){var n=Ve[this.specification.type];return n?n(t,e,r):t};var di=function(t,e){this.specification=t,this.overrides=e};di.prototype.possiblyEvaluate=function(t,e,r,n){return new fi(this,&quot;constant&quot;===t.expression.kind||&quot;camera&quot;===t.expression.kind?{kind:&quot;constant&quot;,value:t.expression.evaluate(e,null,{},r,n)}:t.expression,e)},di.prototype.interpolate=function(t,e,r){if(&quot;constant&quot;!==t.value.kind||&quot;constant&quot;!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new fi(this,{kind:&quot;constant&quot;,value:void 0},t.parameters);var n=Ve[this.specification.type];return n?new fi(this,{kind:&quot;constant&quot;,value:n(t.value.value,e.value.value,r)},t.parameters):t},di.prototype.evaluate=function(t,e,r,n,i,a){return&quot;constant&quot;===t.kind?t.value:t.evaluate(e,r,n,i,a)};var gi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0===t.value)return new fi(this,{kind:&quot;constant&quot;,value:void 0},e);if(&quot;constant&quot;===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n),a=&quot;resolvedImage&quot;===t.property.specification.type&amp;&amp;&quot;string&quot;!=typeof i?i.name:i,o=this._calculate(a,a,a,e);return new fi(this,{kind:&quot;constant&quot;,value:o},e)}if(&quot;camera&quot;===t.expression.kind){var s=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new fi(this,{kind:&quot;constant&quot;,value:s},e)}return new fi(this,t.expression,e)},e.prototype.evaluate=function(t,e,r,n,i,a){if(&quot;source&quot;===t.kind){var o=t.evaluate(e,r,n,i,a);return this._calculate(o,o,o,e)}return&quot;composite&quot;===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},r,n),t.evaluate({zoom:Math.floor(e.zoom)},r,n),t.evaluate({zoom:Math.floor(e.zoom)+1},r,n),e):t.value},e.prototype._calculate=function(t,e,r,n){return n.zoom&gt;n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},e.prototype.interpolate=function(t){return t},e}(di),mi=function(t){this.specification=t};mi.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0!==t.value){if(&quot;constant&quot;===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n);return this._calculate(i,i,i,e)}return this._calculate(t.expression.evaluate(new ii(Math.floor(e.zoom-1),e)),t.expression.evaluate(new ii(Math.floor(e.zoom),e)),t.expression.evaluate(new ii(Math.floor(e.zoom+1),e)),e)}},mi.prototype._calculate=function(t,e,r,n){return n.zoom&gt;n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},mi.prototype.interpolate=function(t){return t};var vi=function(t){this.specification=t};vi.prototype.possiblyEvaluate=function(t,e,r,n){return!!t.expression.evaluate(e,null,{},r,n)},vi.prototype.interpolate=function(){return!1};var yi=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var r=t[e];r.specification.overridable&amp;&amp;this.overridableProperties.push(e);var n=this.defaultPropertyValues[e]=new ai(r,void 0),i=this.defaultTransitionablePropertyValues[e]=new oi(r);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=n.possiblyEvaluate({})}};Dn(&quot;DataDrivenProperty&quot;,di),Dn(&quot;DataConstantProperty&quot;,pi),Dn(&quot;CrossFadedDataDrivenProperty&quot;,gi),Dn(&quot;CrossFadedProperty&quot;,mi),Dn(&quot;ColorRampProperty&quot;,vi);var xi=function(t){function e(e,r){if(t.call(this),this.id=e.id,this.type=e.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},&quot;custom&quot;!==e.type&amp;&amp;(this.metadata=(e=e).metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,&quot;background&quot;!==e.type&amp;&amp;(this.source=e.source,this.sourceLayer=e[&quot;source-layer&quot;],this.filter=e.filter),r.layout&amp;&amp;(this._unevaluatedLayout=new ui(r.layout)),r.paint)){for(var n in this._transitionablePaint=new si(r.paint),e.paint)this.setPaintProperty(n,e.paint[n],{validate:!1});for(var i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new hi(r.paint)}}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return&quot;visibility&quot;===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,r){void 0===r&amp;&amp;(r={}),null!=e&amp;&amp;this._validate(En,&quot;layers.&quot;+this.id+&quot;.layout.&quot;+t,t,e,r)||(&quot;visibility&quot;!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e)},e.prototype.getPaintProperty=function(t){return m(t,&quot;-transition&quot;)?this._transitionablePaint.getTransition(t.slice(0,-&quot;-transition&quot;.length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,r){if(void 0===r&amp;&amp;(r={}),null!=e&amp;&amp;this._validate(Sn,&quot;layers.&quot;+this.id+&quot;.paint.&quot;+t,t,e,r))return!1;if(m(t,&quot;-transition&quot;))return this._transitionablePaint.setTransition(t.slice(0,-&quot;-transition&quot;.length),e||void 0),!1;var n=this._transitionablePaint._values[t],i=&quot;cross-faded-data-driven&quot;===n.property.specification[&quot;property-type&quot;],a=n.value.isDataDriven(),o=n.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var s=this._transitionablePaint._values[t].value;return s.isDataDriven()||a||i||this._handleOverridablePaintPropertyUpdate(t,o,s)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype._handleOverridablePaintPropertyUpdate=function(t,e,r){return!1},e.prototype.isHidden=function(t){return!!(this.minzoom&amp;&amp;t&lt;this.minzoom)||!!(this.maxzoom&amp;&amp;t&gt;=this.maxzoom)||&quot;none&quot;===this.visibility},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t,e){t.getCrossfadeParameters&amp;&amp;(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&amp;&amp;(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,&quot;source-layer&quot;:this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&amp;&amp;this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&amp;&amp;this._transitionablePaint.serialize()};return this.visibility&amp;&amp;(t.layout=t.layout||{},t.layout.visibility=this.visibility),y(t,(function(t,e){return!(void 0===t||&quot;layout&quot;===e&amp;&amp;!Object.keys(t).length||&quot;paint&quot;===e&amp;&amp;!Object.keys(t).length)}))},e.prototype._validate=function(t,e,r,n,i){return void 0===i&amp;&amp;(i={}),(!i||!1!==i.validate)&amp;&amp;Cn(this,t.call(Mn,{key:e,layerType:this.type,objectKey:r,value:n,styleSpec:At,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof fi&amp;&amp;Lr(e.property.specification)&amp;&amp;(&quot;source&quot;===e.value.kind||&quot;composite&quot;===e.value.kind)&amp;&amp;e.value.isStateDependent)return!0}return!1},e}(Mt),bi={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},_i=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},wi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Ti(t,e){void 0===e&amp;&amp;(e=1);var r=0,n=0;return{members:t.map((function(t){var i=bi[t.type].BYTES_PER_ELEMENT,a=r=ki(r,Math.max(e,i)),o=t.components||1;return n=Math.max(n,i),r+=i*o,{name:t.name,type:t.type,components:o,offset:a}})),size:ki(r,Math.max(n,e)),alignment:e}}function ki(t,e){return Math.ceil(t/e)*e}wi.serialize=function(t,e){return t._trim(),e&amp;&amp;(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},wi.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},wi.prototype._trim=function(){this.length!==this.capacity&amp;&amp;(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},wi.prototype.clear=function(){this.length=0},wi.prototype.resize=function(t){this.reserve(t),this.length=t},wi.prototype.reserve=function(t){if(t&gt;this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&amp;&amp;this.uint8.set(e)}},wi.prototype._refreshViews=function(){throw new Error(&quot;_refreshViews() must be implemented by each concrete StructArray layout&quot;)};var Mi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.int16[n+0]=e,this.int16[n+1]=r,t},e}(wi);Mi.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout2i4&quot;,Mi);var Ai=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.int16[a+0]=e,this.int16[a+1]=r,this.int16[a+2]=n,this.int16[a+3]=i,t},e}(wi);Ai.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout4i8&quot;,Ai);var Si=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(wi);Si.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout2i4i12&quot;,Si);var Ei=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=4*t,l=8*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.uint8[l+4]=n,this.uint8[l+5]=i,this.uint8[l+6]=a,this.uint8[l+7]=o,t},e}(wi);Ei.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout2i4ub8&quot;,Ei);var Ci=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,n,i,a,o,s,l,c)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u){var f=9*t,h=18*t;return this.uint16[f+0]=e,this.uint16[f+1]=r,this.uint16[f+2]=n,this.uint16[f+3]=i,this.uint16[f+4]=a,this.uint16[f+5]=o,this.uint16[f+6]=s,this.uint16[f+7]=l,this.uint8[h+16]=c,this.uint8[h+17]=u,t},e}(wi);Ci.prototype.bytesPerElement=18,Dn(&quot;StructArrayLayout8ui2ub18&quot;,Ci);var Li=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f){var h=this.length;return this.resize(h+1),this.emplace(h,t,e,r,n,i,a,o,s,l,c,u,f)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=12*t;return this.int16[p+0]=e,this.int16[p+1]=r,this.int16[p+2]=n,this.int16[p+3]=i,this.uint16[p+4]=a,this.uint16[p+5]=o,this.uint16[p+6]=s,this.uint16[p+7]=l,this.int16[p+8]=c,this.int16[p+9]=u,this.int16[p+10]=f,this.int16[p+11]=h,t},e}(wi);Li.prototype.bytesPerElement=24,Dn(&quot;StructArrayLayout4i4ui4i24&quot;,Li);var Ii=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.float32[i+0]=e,this.float32[i+1]=r,this.float32[i+2]=n,t},e}(wi);Ii.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout3f12&quot;,Ii);var Pi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint32[1*t+0]=e,t},e}(wi);Pi.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout1ul4&quot;,Pi);var zi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,r,n,i,a,o,s,l)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c){var u=10*t,f=5*t;return this.int16[u+0]=e,this.int16[u+1]=r,this.int16[u+2]=n,this.int16[u+3]=i,this.int16[u+4]=a,this.int16[u+5]=o,this.uint32[f+3]=s,this.uint16[u+8]=l,this.uint16[u+9]=c,t},e}(wi);zi.prototype.bytesPerElement=20,Dn(&quot;StructArrayLayout6i1ul2ui20&quot;,zi);var Oi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(wi);Oi.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout2i2i2i12&quot;,Oi);var Di=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,n,i)},e.prototype.emplace=function(t,e,r,n,i,a){var o=4*t,s=8*t;return this.float32[o+0]=e,this.float32[o+1]=r,this.float32[o+2]=n,this.int16[s+6]=i,this.int16[s+7]=a,t},e}(wi);Di.prototype.bytesPerElement=16,Dn(&quot;StructArrayLayout2f1f2i16&quot;,Di);var Ri=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=12*t,o=3*t;return this.uint8[a+0]=e,this.uint8[a+1]=r,this.float32[o+1]=n,this.float32[o+2]=i,t},e}(wi);Ri.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout2ub2f12&quot;,Ri);var Fi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.uint16[i+0]=e,this.uint16[i+1]=r,this.uint16[i+2]=n,t},e}(wi);Fi.prototype.bytesPerElement=6,Dn(&quot;StructArrayLayout3ui6&quot;,Fi);var Bi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m){var v=this.length;return this.resize(v+1),this.emplace(v,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v){var y=24*t,x=12*t,b=48*t;return this.int16[y+0]=e,this.int16[y+1]=r,this.uint16[y+2]=n,this.uint16[y+3]=i,this.uint32[x+2]=a,this.uint32[x+3]=o,this.uint32[x+4]=s,this.uint16[y+10]=l,this.uint16[y+11]=c,this.uint16[y+12]=u,this.float32[x+7]=f,this.float32[x+8]=h,this.uint8[b+36]=p,this.uint8[b+37]=d,this.uint8[b+38]=g,this.uint32[x+10]=m,this.int16[y+22]=v,t},e}(wi);Bi.prototype.bytesPerElement=48,Dn(&quot;StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48&quot;,Bi);var Ni=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S){var E=this.length;return this.resize(E+1),this.emplace(E,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S,E){var C=34*t,L=17*t;return this.int16[C+0]=e,this.int16[C+1]=r,this.int16[C+2]=n,this.int16[C+3]=i,this.int16[C+4]=a,this.int16[C+5]=o,this.int16[C+6]=s,this.int16[C+7]=l,this.uint16[C+8]=c,this.uint16[C+9]=u,this.uint16[C+10]=f,this.uint16[C+11]=h,this.uint16[C+12]=p,this.uint16[C+13]=d,this.uint16[C+14]=g,this.uint16[C+15]=m,this.uint16[C+16]=v,this.uint16[C+17]=y,this.uint16[C+18]=x,this.uint16[C+19]=b,this.uint16[C+20]=_,this.uint16[C+21]=w,this.uint16[C+22]=T,this.uint32[L+12]=k,this.float32[L+13]=M,this.float32[L+14]=A,this.float32[L+15]=S,this.float32[L+16]=E,t},e}(wi);Ni.prototype.bytesPerElement=68,Dn(&quot;StructArrayLayout8i15ui1ul4f68&quot;,Ni);var ji=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.float32[1*t+0]=e,t},e}(wi);ji.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout1f4&quot;,ji);var Ui=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.int16[i+0]=e,this.int16[i+1]=r,this.int16[i+2]=n,t},e}(wi);Ui.prototype.bytesPerElement=6,Dn(&quot;StructArrayLayout3i6&quot;,Ui);var Vi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=4*t;return this.uint32[2*t+0]=e,this.uint16[i+2]=r,this.uint16[i+3]=n,t},e}(wi);Vi.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout1ul2ui8&quot;,Vi);var qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.uint16[n+0]=e,this.uint16[n+1]=r,t},e}(wi);qi.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout2ui4&quot;,qi);var Hi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint16[1*t+0]=e,t},e}(wi);Hi.prototype.bytesPerElement=2,Dn(&quot;StructArrayLayout1ui2&quot;,Hi);var Gi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.float32[n+0]=e,this.float32[n+1]=r,t},e}(wi);Gi.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout2f8&quot;,Gi);var Yi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=n,this.float32[a+3]=i,t},e}(wi);Yi.prototype.bytesPerElement=16,Dn(&quot;StructArrayLayout4f16&quot;,Yi);var Wi=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return r.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},r.x1.get=function(){return this._structArray.int16[this._pos2+2]},r.y1.get=function(){return this._structArray.int16[this._pos2+3]},r.x2.get=function(){return this._structArray.int16[this._pos2+4]},r.y2.get=function(){return this._structArray.int16[this._pos2+5]},r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.anchorPoint.get=function(){return new i(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,r),e}(_i);Wi.prototype.size=20;var Xi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new Wi(this,t)},e}(zi);Dn(&quot;CollisionBoxArray&quot;,Xi);var Zi=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},r.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},r.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},r.segment.get=function(){return this._structArray.uint16[this._pos2+10]},r.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},r.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},r.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},r.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},r.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},r.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},r.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},r.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},r.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},r.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(e.prototype,r),e}(_i);Zi.prototype.size=48;var Ji=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new Zi(this,t)},e}(Bi);Dn(&quot;PlacedSymbolArray&quot;,Ji);var Ki=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},r.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},r.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},r.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},r.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},r.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},r.key.get=function(){return this._structArray.uint16[this._pos2+8]},r.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},r.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},r.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},r.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},r.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},r.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},r.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},r.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},r.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},r.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},r.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},r.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},r.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+12]=t},r.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},r.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},r.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},r.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(e.prototype,r),e}(_i);Ki.prototype.size=68;var Qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new Ki(this,t)},e}(Ni);Dn(&quot;SymbolInstanceArray&quot;,Qi);var $i=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e}(ji);Dn(&quot;GlyphOffsetArray&quot;,$i);var ta=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e}(Ui);Dn(&quot;SymbolLineVertexArray&quot;,ta);var ea=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(e.prototype,r),e}(_i);ea.prototype.size=8;var ra=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new ea(this,t)},e}(Vi);Dn(&quot;FeatureIndexArray&quot;,ra);var na=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;}],4).members,ia=function(t){void 0===t&amp;&amp;(t=[]),this.segments=t};function aa(t,e){return 256*(t=l(Math.floor(t),0,255))+l(Math.floor(e),0,255)}ia.prototype.prepareSegment=function(t,e,r,n){var i=this.segments[this.segments.length-1];return t&gt;ia.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;_(&quot;Max vertices per segment is &quot;+ia.MAX_VERTEX_ARRAY_LENGTH+&quot;: bucket requested &quot;+t),(!i||i.vertexLength+t&gt;ia.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==n)&amp;&amp;(i={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},void 0!==n&amp;&amp;(i.sortKey=n),this.segments.push(i)),i},ia.prototype.get=function(){return this.segments},ia.prototype.destroy=function(){for(var t=0,e=this.segments;t&lt;e.length;t+=1){var r=e[t];for(var n in r.vaos)r.vaos[n].destroy()}},ia.simpleSegment=function(t,e,r,n){return new ia([{vertexOffset:t,primitiveOffset:e,vertexLength:r,primitiveLength:n,vaos:{},sortKey:0}])},ia.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Dn(&quot;SegmentVector&quot;,ia);var oa=Ti([{name:&quot;a_pattern_from&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pattern_to&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pixel_ratio_from&quot;,components:1,type:&quot;Uint8&quot;},{name:&quot;a_pixel_ratio_to&quot;,components:1,type:&quot;Uint8&quot;}]),sa=e((function(t){t.exports=function(t,e){var r,n,i,a,o,s,l,c;for(n=t.length-(r=3&amp;t.length),i=e,o=3432918353,s=461845907,c=0;c&lt;n;)l=255&amp;t.charCodeAt(c)|(255&amp;t.charCodeAt(++c))&lt;&lt;8|(255&amp;t.charCodeAt(++c))&lt;&lt;16|(255&amp;t.charCodeAt(++c))&lt;&lt;24,++c,i=27492+(65535&amp;(a=5*(65535&amp;(i=(i^=l=(65535&amp;(l=(l=(65535&amp;l)*o+(((l&gt;&gt;&gt;16)*o&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;13|i&gt;&gt;&gt;19))+((5*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295))+((58964+(a&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16);switch(l=0,r){case 3:l^=(255&amp;t.charCodeAt(c+2))&lt;&lt;16;case 2:l^=(255&amp;t.charCodeAt(c+1))&lt;&lt;8;case 1:i^=l=(65535&amp;(l=(l=(65535&amp;(l^=255&amp;t.charCodeAt(c)))*o+(((l&gt;&gt;&gt;16)*o&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295}return i^=t.length,i=2246822507*(65535&amp;(i^=i&gt;&gt;&gt;16))+((2246822507*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,i=3266489909*(65535&amp;(i^=i&gt;&gt;&gt;13))+((3266489909*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,(i^=i&gt;&gt;&gt;16)&gt;&gt;&gt;0}})),la=e((function(t){t.exports=function(t,e){for(var r,n=t.length,i=e^n,a=0;n&gt;=4;)r=1540483477*(65535&amp;(r=255&amp;t.charCodeAt(a)|(255&amp;t.charCodeAt(++a))&lt;&lt;8|(255&amp;t.charCodeAt(++a))&lt;&lt;16|(255&amp;t.charCodeAt(++a))&lt;&lt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),i=1540483477*(65535&amp;i)+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)^(r=1540483477*(65535&amp;(r^=r&gt;&gt;&gt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)),n-=4,++a;switch(n){case 3:i^=(255&amp;t.charCodeAt(a+2))&lt;&lt;16;case 2:i^=(255&amp;t.charCodeAt(a+1))&lt;&lt;8;case 1:i=1540483477*(65535&amp;(i^=255&amp;t.charCodeAt(a)))+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)}return i=1540483477*(65535&amp;(i^=i&gt;&gt;&gt;13))+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),(i^=i&gt;&gt;&gt;15)&gt;&gt;&gt;0}})),ca=sa,ua=la;ca.murmur3=sa,ca.murmur2=ua;var fa=function(){this.ids=[],this.positions=[],this.indexed=!1};fa.prototype.add=function(t,e,r,n){this.ids.push(pa(t)),this.positions.push(e,r,n)},fa.prototype.getPositions=function(t){for(var e=pa(t),r=0,n=this.ids.length-1;r&lt;n;){var i=r+n&gt;&gt;1;this.ids[i]&gt;=e?n=i:r=i+1}for(var a=[];this.ids[r]===e;)a.push({index:this.positions[3*r],start:this.positions[3*r+1],end:this.positions[3*r+2]}),r++;return a},fa.serialize=function(t,e){var r=new Float64Array(t.ids),n=new Uint32Array(t.positions);return function t(e,r,n,i){for(;n&lt;i;){for(var a=e[n+i&gt;&gt;1],o=n-1,s=i+1;;){do{o++}while(e[o]&lt;a);do{s--}while(e[s]&gt;a);if(o&gt;=s)break;da(e,o,s),da(r,3*o,3*s),da(r,3*o+1,3*s+1),da(r,3*o+2,3*s+2)}s-n&lt;i-s?(t(e,r,n,s),n=s+1):(t(e,r,s+1,i),i=s)}}(r,n,0,r.length-1),e&amp;&amp;e.push(r.buffer,n.buffer),{ids:r,positions:n}},fa.deserialize=function(t){var e=new fa;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e};var ha=Math.pow(2,53)-1;function pa(t){var e=+t;return!isNaN(e)&amp;&amp;e&lt;=ha?e:ca(String(t))}function da(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}Dn(&quot;FeaturePositionMap&quot;,fa);var ga=function(t,e){this.gl=t.gl,this.location=e},ma=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1i(this.location,t))},e}(ga),va=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1f(this.location,t))},e}(ga),ya=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0]}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))},e}(ga),xa=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0]}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))},e}(ga),ba=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0,0]}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]&amp;&amp;t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))},e}(ga),_a=function(t){function e(e,r){t.call(this,e,r),this.current=Kt.transparent}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t.r===this.current.r&amp;&amp;t.g===this.current.g&amp;&amp;t.b===this.current.b&amp;&amp;t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))},e}(ga),wa=new Float32Array(16),Ta=function(t){function e(e,r){t.call(this,e,r),this.current=wa}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(var e=1;e&lt;16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}},e}(ga);function ka(t){return[aa(255*t.r,255*t.g),aa(255*t.b,255*t.a)]}var Ma=function(t,e,r){this.value=t,this.uniformNames=e.map((function(t){return&quot;u_&quot;+t})),this.type=r};Ma.prototype.setUniform=function(t,e,r){t.set(r.constantOr(this.value))},Ma.prototype.getBinding=function(t,e,r){return&quot;color&quot;===this.type?new _a(t,e):new va(t,e)};var Aa=function(t,e){this.uniformNames=e.map((function(t){return&quot;u_&quot;+t})),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1};Aa.prototype.setConstantPatternPositions=function(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr},Aa.prototype.setUniform=function(t,e,r,n){var i=&quot;u_pattern_to&quot;===n?this.patternTo:&quot;u_pattern_from&quot;===n?this.patternFrom:&quot;u_pixel_ratio_to&quot;===n?this.pixelRatioTo:&quot;u_pixel_ratio_from&quot;===n?this.pixelRatioFrom:null;i&amp;&amp;t.set(i)},Aa.prototype.getBinding=function(t,e,r){return&quot;u_pattern&quot;===r.substr(0,9)?new ba(t,e):new va(t,e)};var Sa=function(t,e,r,n){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:&quot;a_&quot;+t,type:&quot;Float32&quot;,components:&quot;color&quot;===r?2:1,offset:0}})),this.paintVertexArray=new n};Sa.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.paintVertexArray.length,o=this.expression.evaluate(new ii(0),e,{},n,[],i);this.paintVertexArray.resize(t),this._setPaintValue(a,t,o)},Sa.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:0},r,n);this._setPaintValue(t,e,i)},Sa.prototype._setPaintValue=function(t,e,r){if(&quot;color&quot;===this.type)for(var n=ka(r),i=t;i&lt;e;i++)this.paintVertexArray.emplace(i,n[0],n[1]);else{for(var a=t;a&lt;e;a++)this.paintVertexArray.emplace(a,r);this.maxValue=Math.max(this.maxValue,Math.abs(r))}},Sa.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Sa.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()};var Ea=function(t,e,r,n,i,a){this.expression=t,this.uniformNames=e.map((function(t){return&quot;u_&quot;+t+&quot;_t&quot;})),this.type=r,this.useIntegerZoom=n,this.zoom=i,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:&quot;a_&quot;+t,type:&quot;Float32&quot;,components:&quot;color&quot;===r?4:2,offset:0}})),this.paintVertexArray=new a};Ea.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.expression.evaluate(new ii(this.zoom),e,{},n,[],i),o=this.expression.evaluate(new ii(this.zoom+1),e,{},n,[],i),s=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(s,t,a,o)},Ea.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:this.zoom},r,n),a=this.expression.evaluate({zoom:this.zoom+1},r,n);this._setPaintValue(t,e,i,a)},Ea.prototype._setPaintValue=function(t,e,r,n){if(&quot;color&quot;===this.type)for(var i=ka(r),a=ka(n),o=t;o&lt;e;o++)this.paintVertexArray.emplace(o,i[0],i[1],a[0],a[1]);else{for(var s=t;s&lt;e;s++)this.paintVertexArray.emplace(s,r,n);this.maxValue=Math.max(this.maxValue,Math.abs(r),Math.abs(n))}},Ea.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Ea.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()},Ea.prototype.setUniform=function(t,e){var r=this.useIntegerZoom?Math.floor(e.zoom):e.zoom,n=l(this.expression.interpolationFactor(r,this.zoom,this.zoom+1),0,1);t.set(n)},Ea.prototype.getBinding=function(t,e,r){return new va(t,e)};var Ca=function(t,e,r,n,i,a){this.expression=t,this.type=e,this.useIntegerZoom=r,this.zoom=n,this.layerId=a,this.zoomInPaintVertexArray=new i,this.zoomOutPaintVertexArray=new i};Ca.prototype.populatePaintArray=function(t,e,r){var n=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(n,t,e.patterns&amp;&amp;e.patterns[this.layerId],r)},Ca.prototype.updatePaintArray=function(t,e,r,n,i){this._setPaintValues(t,e,r.patterns&amp;&amp;r.patterns[this.layerId],i)},Ca.prototype._setPaintValues=function(t,e,r,n){if(n&amp;&amp;r){var i=n[r.min],a=n[r.mid],o=n[r.max];if(i&amp;&amp;a&amp;&amp;o)for(var s=t;s&lt;e;s++)this.zoomInPaintVertexArray.emplace(s,a.tl[0],a.tl[1],a.br[0],a.br[1],i.tl[0],i.tl[1],i.br[0],i.br[1],a.pixelRatio,i.pixelRatio),this.zoomOutPaintVertexArray.emplace(s,a.tl[0],a.tl[1],a.br[0],a.br[1],o.tl[0],o.tl[1],o.br[0],o.br[1],a.pixelRatio,o.pixelRatio)}},Ca.prototype.upload=function(t){this.zoomInPaintVertexArray&amp;&amp;this.zoomInPaintVertexArray.arrayBuffer&amp;&amp;this.zoomOutPaintVertexArray&amp;&amp;this.zoomOutPaintVertexArray.arrayBuffer&amp;&amp;(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,oa.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,oa.members,this.expression.isStateDependent))},Ca.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&amp;&amp;this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&amp;&amp;this.zoomInPaintVertexBuffer.destroy()};var La=function(t,e,r,n){this.binders={},this.layoutAttributes=n,this._buffers=[];var i=[];for(var a in t.paint._values)if(r(a)){var o=t.paint.get(a);if(o instanceof fi&amp;&amp;Lr(o.property.specification)){var s=Pa(a,t.type),l=o.value,c=o.property.specification.type,u=o.property.useIntegerZoom,f=o.property.specification[&quot;property-type&quot;],h=&quot;cross-faded&quot;===f||&quot;cross-faded-data-driven&quot;===f;if(&quot;constant&quot;===l.kind)this.binders[a]=h?new Aa(l.value,s):new Ma(l.value,s,c),i.push(&quot;/u_&quot;+a);else if(&quot;source&quot;===l.kind||h){var p=za(a,c,&quot;source&quot;);this.binders[a]=h?new Ca(l,c,u,e,p,t.id):new Sa(l,s,c,p),i.push(&quot;/a_&quot;+a)}else{var d=za(a,c,&quot;composite&quot;);this.binders[a]=new Ea(l,s,c,u,e,d),i.push(&quot;/z_&quot;+a)}}}this.cacheKey=i.sort().join(&quot;&quot;)};La.prototype.getMaxValue=function(t){var e=this.binders[t];return e instanceof Sa||e instanceof Ea?e.maxValue:0},La.prototype.populatePaintArrays=function(t,e,r,n,i){for(var a in this.binders){var o=this.binders[a];(o instanceof Sa||o instanceof Ea||o instanceof Ca)&amp;&amp;o.populatePaintArray(t,e,r,n,i)}},La.prototype.setConstantPatternPositions=function(t,e){for(var r in this.binders){var n=this.binders[r];n instanceof Aa&amp;&amp;n.setConstantPatternPositions(t,e)}},La.prototype.updatePaintArrays=function(t,e,r,n,i){var a=!1;for(var o in t)for(var s=0,l=e.getPositions(o);s&lt;l.length;s+=1){var c=l[s],u=r.feature(c.index);for(var f in this.binders){var h=this.binders[f];if((h instanceof Sa||h instanceof Ea||h instanceof Ca)&amp;&amp;!0===h.expression.isStateDependent){var p=n.paint.get(f);h.expression=p.value,h.updatePaintArray(c.start,c.end,u,t[o],i),a=!0}}}return a},La.prototype.defines=function(){var t=[];for(var e in this.binders){var r=this.binders[e];(r instanceof Ma||r instanceof Aa)&amp;&amp;t.push.apply(t,r.uniformNames.map((function(t){return&quot;#define HAS_UNIFORM_&quot;+t})))}return t},La.prototype.getPaintVertexBuffers=function(){return this._buffers},La.prototype.getUniforms=function(t,e){var r=[];for(var n in this.binders){var i=this.binders[n];if(i instanceof Ma||i instanceof Aa||i instanceof Ea)for(var a=0,o=i.uniformNames;a&lt;o.length;a+=1){var s=o[a];if(e[s]){var l=i.getBinding(t,e[s],s);r.push({name:s,property:n,binding:l})}}}return r},La.prototype.setUniforms=function(t,e,r,n){for(var i=0,a=e;i&lt;a.length;i+=1){var o=a[i],s=o.name,l=o.property;this.binders[l].setUniform(o.binding,n,r.get(l),s)}},La.prototype.updatePaintBuffers=function(t){for(var e in this._buffers=[],this.binders){var r=this.binders[e];if(t&amp;&amp;r instanceof Ca){var n=2===t.fromScale?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;n&amp;&amp;this._buffers.push(n)}else(r instanceof Sa||r instanceof Ea)&amp;&amp;r.paintVertexBuffer&amp;&amp;this._buffers.push(r.paintVertexBuffer)}},La.prototype.upload=function(t){for(var e in this.binders){var r=this.binders[e];(r instanceof Sa||r instanceof Ea||r instanceof Ca)&amp;&amp;r.upload(t)}this.updatePaintBuffers()},La.prototype.destroy=function(){for(var t in this.binders){var e=this.binders[t];(e instanceof Sa||e instanceof Ea||e instanceof Ca)&amp;&amp;e.destroy()}};var Ia=function(t,e,r,n){void 0===n&amp;&amp;(n=function(){return!0}),this.programConfigurations={};for(var i=0,a=e;i&lt;a.length;i+=1){var o=a[i];this.programConfigurations[o.id]=new La(o,r,n,t)}this.needsUpload=!1,this._featureMap=new fa,this._bufferOffset=0};function Pa(t,e){return{&quot;text-opacity&quot;:[&quot;opacity&quot;],&quot;icon-opacity&quot;:[&quot;opacity&quot;],&quot;text-color&quot;:[&quot;fill_color&quot;],&quot;icon-color&quot;:[&quot;fill_color&quot;],&quot;text-halo-color&quot;:[&quot;halo_color&quot;],&quot;icon-halo-color&quot;:[&quot;halo_color&quot;],&quot;text-halo-blur&quot;:[&quot;halo_blur&quot;],&quot;icon-halo-blur&quot;:[&quot;halo_blur&quot;],&quot;text-halo-width&quot;:[&quot;halo_width&quot;],&quot;icon-halo-width&quot;:[&quot;halo_width&quot;],&quot;line-gap-width&quot;:[&quot;gapwidth&quot;],&quot;line-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;],&quot;fill-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;],&quot;fill-extrusion-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;]}[t]||[t.replace(e+&quot;-&quot;,&quot;&quot;).replace(/-/g,&quot;_&quot;)]}function za(t,e,r){var n={color:{source:Gi,composite:Yi},number:{source:ji,composite:Gi}},i=function(t){return{&quot;line-pattern&quot;:{source:Ci,composite:Ci},&quot;fill-pattern&quot;:{source:Ci,composite:Ci},&quot;fill-extrusion-pattern&quot;:{source:Ci,composite:Ci}}[t]}(t);return i&amp;&amp;i[r]||n[e][r]}Ia.prototype.populatePaintArrays=function(t,e,r,n,i,a){for(var o in this.programConfigurations)this.programConfigurations[o].populatePaintArrays(t,e,n,i,a);void 0!==e.id&amp;&amp;this._featureMap.add(e.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0},Ia.prototype.updatePaintArrays=function(t,e,r,n){for(var i=0,a=r;i&lt;a.length;i+=1){var o=a[i];this.needsUpload=this.programConfigurations[o.id].updatePaintArrays(t,this._featureMap,e,o,n)||this.needsUpload}},Ia.prototype.get=function(t){return this.programConfigurations[t]},Ia.prototype.upload=function(t){if(this.needsUpload){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}},Ia.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},Dn(&quot;ConstantBinder&quot;,Ma),Dn(&quot;CrossFadedConstantBinder&quot;,Aa),Dn(&quot;SourceExpressionBinder&quot;,Sa),Dn(&quot;CrossFadedCompositeBinder&quot;,Ca),Dn(&quot;CompositeExpressionBinder&quot;,Ea),Dn(&quot;ProgramConfiguration&quot;,La,{omit:[&quot;_buffers&quot;]}),Dn(&quot;ProgramConfigurationSet&quot;,Ia);var Oa={min:-1*Math.pow(2,14),max:Math.pow(2,14)-1};function Da(t){for(var e=8192/t.extent,r=t.loadGeometry(),n=0;n&lt;r.length;n++)for(var i=r[n],a=0;a&lt;i.length;a++){var o=i[a];o.x=Math.round(o.x*e),o.y=Math.round(o.y*e),(o.x&lt;Oa.min||o.x&gt;Oa.max||o.y&lt;Oa.min||o.y&gt;Oa.max)&amp;&amp;(_(&quot;Geometry exceeds allowed extent, reduce your vector tile buffer size&quot;),o.x=l(o.x,Oa.min,Oa.max),o.y=l(o.y,Oa.min,Oa.max))}return r}function Ra(t,e,r,n,i){t.emplaceBack(2*e+(n+1)/2,2*r+(i+1)/2)}var Fa=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Mi,this.indexArray=new Fi,this.segments=new ia,this.programConfigurations=new Ia(na,t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Ba(t,e){for(var r=0;r&lt;t.length;r++)if(Wa(e,t[r]))return!0;for(var n=0;n&lt;e.length;n++)if(Wa(t,e[n]))return!0;return!!Va(t,e)}function Na(t,e,r){return!!Wa(t,e)||!!Ha(e,t,r)}function ja(t,e){if(1===t.length)return Ya(e,t[0]);for(var r=0;r&lt;e.length;r++)for(var n=e[r],i=0;i&lt;n.length;i++)if(Wa(t,n[i]))return!0;for(var a=0;a&lt;t.length;a++)if(Ya(e,t[a]))return!0;for(var o=0;o&lt;e.length;o++)if(Va(t,e[o]))return!0;return!1}function Ua(t,e,r){if(t.length&gt;1){if(Va(t,e))return!0;for(var n=0;n&lt;e.length;n++)if(Ha(e[n],t,r))return!0}for(var i=0;i&lt;t.length;i++)if(Ha(t[i],e,r))return!0;return!1}function Va(t,e){if(0===t.length||0===e.length)return!1;for(var r=0;r&lt;t.length-1;r++)for(var n=t[r],i=t[r+1],a=0;a&lt;e.length-1;a++)if(qa(n,i,e[a],e[a+1]))return!0;return!1}function qa(t,e,r,n){return w(t,r,n)!==w(e,r,n)&amp;&amp;w(t,e,r)!==w(t,e,n)}function Ha(t,e,r){var n=r*r;if(1===e.length)return t.distSqr(e[0])&lt;n;for(var i=1;i&lt;e.length;i++)if(Ga(t,e[i-1],e[i])&lt;n)return!0;return!1}function Ga(t,e,r){var n=e.distSqr(r);if(0===n)return t.distSqr(e);var i=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;return t.distSqr(i&lt;0?e:i&gt;1?r:r.sub(e)._mult(i)._add(e))}function Ya(t,e){for(var r,n,i,a=!1,o=0;o&lt;t.length;o++)for(var s=0,l=(r=t[o]).length-1;s&lt;r.length;l=s++)(n=r[s]).y&gt;e.y!=(i=r[l]).y&gt;e.y&amp;&amp;e.x&lt;(i.x-n.x)*(e.y-n.y)/(i.y-n.y)+n.x&amp;&amp;(a=!a);return a}function Wa(t,e){for(var r=!1,n=0,i=t.length-1;n&lt;t.length;i=n++){var a=t[n],o=t[i];a.y&gt;e.y!=o.y&gt;e.y&amp;&amp;e.x&lt;(o.x-a.x)*(e.y-a.y)/(o.y-a.y)+a.x&amp;&amp;(r=!r)}return r}function Xa(t,e,r){var n=r[0],i=r[2];if(t.x&lt;n.x&amp;&amp;e.x&lt;n.x||t.x&gt;i.x&amp;&amp;e.x&gt;i.x||t.y&lt;n.y&amp;&amp;e.y&lt;n.y||t.y&gt;i.y&amp;&amp;e.y&gt;i.y)return!1;var a=w(t,e,r[0]);return a!==w(t,e,r[1])||a!==w(t,e,r[2])||a!==w(t,e,r[3])}function Za(t,e,r){var n=e.paint.get(t).value;return&quot;constant&quot;===n.kind?n.value:r.programConfigurations.get(e.id).getMaxValue(t)}function Ja(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ka(t,e,r,n,a){if(!e[0]&amp;&amp;!e[1])return t;var o=i.convert(e)._mult(a);&quot;viewport&quot;===r&amp;&amp;o._rotate(-n);for(var s=[],l=0;l&lt;t.length;l++)s.push(t[l].sub(o));return s}Fa.prototype.populate=function(t,e,r){var n=this.layers[0],i=[],a=null;&quot;circle&quot;===n.type&amp;&amp;(a=n.layout.get(&quot;circle-sort-key&quot;));for(var o=0,s=t;o&lt;s.length;o+=1){var l=s[o],c=l.feature,u=l.id,f=l.index,h=l.sourceLayerIndex,p=this.layers[0]._featureFilter.needGeometry,d={type:c.type,id:u,properties:c.properties,geometry:p?Da(c):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),d,r)){p||(d.geometry=Da(c));var g=a?a.evaluate(d,{},r):void 0;i.push({id:u,properties:c.properties,type:c.type,sourceLayerIndex:h,index:f,geometry:d.geometry,patterns:{},sortKey:g})}}a&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var m=0,v=i;m&lt;v.length;m+=1){var y=v[m],x=y.geometry,b=y.index,_=y.sourceLayerIndex,w=t[b].feature;this.addFeature(y,x,b,r),e.featureIndex.insert(w,x,b,_,this.index)}},Fa.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Fa.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Fa.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Fa.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,na),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Fa.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Fa.prototype.addFeature=function(t,e,r,n){for(var i=0,a=e;i&lt;a.length;i+=1)for(var o=0,s=a[i];o&lt;s.length;o+=1){var l=s[o],c=l.x,u=l.y;if(!(c&lt;0||c&gt;=8192||u&lt;0||u&gt;=8192)){var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),h=f.vertexLength;Ra(this.layoutVertexArray,c,u,-1,-1),Ra(this.layoutVertexArray,c,u,1,-1),Ra(this.layoutVertexArray,c,u,1,1),Ra(this.layoutVertexArray,c,u,-1,1),this.indexArray.emplaceBack(h,h+1,h+2),this.indexArray.emplaceBack(h,h+3,h+2),f.vertexLength+=4,f.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{},n)},Dn(&quot;CircleBucket&quot;,Fa,{omit:[&quot;layers&quot;]});var Qa=new yi({&quot;circle-sort-key&quot;:new di(At.layout_circle[&quot;circle-sort-key&quot;])}),$a={paint:new yi({&quot;circle-radius&quot;:new di(At.paint_circle[&quot;circle-radius&quot;]),&quot;circle-color&quot;:new di(At.paint_circle[&quot;circle-color&quot;]),&quot;circle-blur&quot;:new di(At.paint_circle[&quot;circle-blur&quot;]),&quot;circle-opacity&quot;:new di(At.paint_circle[&quot;circle-opacity&quot;]),&quot;circle-translate&quot;:new pi(At.paint_circle[&quot;circle-translate&quot;]),&quot;circle-translate-anchor&quot;:new pi(At.paint_circle[&quot;circle-translate-anchor&quot;]),&quot;circle-pitch-scale&quot;:new pi(At.paint_circle[&quot;circle-pitch-scale&quot;]),&quot;circle-pitch-alignment&quot;:new pi(At.paint_circle[&quot;circle-pitch-alignment&quot;]),&quot;circle-stroke-width&quot;:new di(At.paint_circle[&quot;circle-stroke-width&quot;]),&quot;circle-stroke-color&quot;:new di(At.paint_circle[&quot;circle-stroke-color&quot;]),&quot;circle-stroke-opacity&quot;:new di(At.paint_circle[&quot;circle-stroke-opacity&quot;])}),layout:Qa},to=&quot;undefined&quot;!=typeof Float32Array?Float32Array:Array;function eo(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ro(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],m=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*m,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,t[4]=(x=r[4])*n+(b=r[5])*s+(_=r[6])*f+(w=r[7])*g,t[5]=x*i+b*l+_*h+w*m,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,t[8]=(x=r[8])*n+(b=r[9])*s+(_=r[10])*f+(w=r[11])*g,t[9]=x*i+b*l+_*h+w*m,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,t[12]=(x=r[12])*n+(b=r[13])*s+(_=r[14])*f+(w=r[15])*g,t[13]=x*i+b*l+_*h+w*m,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,r=arguments.length;r--;)e+=t[r]*t[r];return Math.sqrt(e)});var no,io=ro;function ao(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}no=new to(3),to!=Float32Array&amp;&amp;(no[0]=0,no[1]=0,no[2]=0),function(){var t=new to(4);to!=Float32Array&amp;&amp;(t[0]=0,t[1]=0,t[2]=0,t[3]=0)}();var oo=(function(){var t=new to(2);to!=Float32Array&amp;&amp;(t[0]=0,t[1]=0)}(),function(t){function e(e){t.call(this,e,$a)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new Fa(t)},e.prototype.queryRadius=function(t){var e=t;return Za(&quot;circle-radius&quot;,this,e)+Za(&quot;circle-stroke-width&quot;,this,e)+Ja(this.paint.get(&quot;circle-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o,s){for(var l=Ka(t,this.paint.get(&quot;circle-translate&quot;),this.paint.get(&quot;circle-translate-anchor&quot;),a.angle,o),c=this.paint.get(&quot;circle-radius&quot;).evaluate(e,r)+this.paint.get(&quot;circle-stroke-width&quot;).evaluate(e,r),u=&quot;map&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;),f=u?l:function(t,e){return t.map((function(t){return so(t,e)}))}(l,s),h=u?c*o:c,p=0,d=n;p&lt;d.length;p+=1)for(var g=0,m=d[p];g&lt;m.length;g+=1){var v=m[g],y=u?v:so(v,s),x=h,b=ao([],[v.x,v.y,0,1],s);if(&quot;viewport&quot;===this.paint.get(&quot;circle-pitch-scale&quot;)&amp;&amp;&quot;map&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;)?x*=b[3]/a.cameraToCenterDistance:&quot;map&quot;===this.paint.get(&quot;circle-pitch-scale&quot;)&amp;&amp;&quot;viewport&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;)&amp;&amp;(x*=a.cameraToCenterDistance/b[3]),Na(f,y,x))return!0}return!1},e}(xi));function so(t,e){var r=ao([],[t.x,t.y,0,1],e);return new i(r[0]/r[3],r[1]/r[3])}var lo=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(Fa);function co(t,e,r,n){var i=e.width,a=e.height;if(n){if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==i*a*r)throw new RangeError(&quot;mismatched image size&quot;)}else n=new Uint8Array(i*a*r);return t.width=i,t.height=a,t.data=n,t}function uo(t,e,r){var n=e.width,i=e.height;if(n!==t.width||i!==t.height){var a=co({},{width:n,height:i},r);fo(t,a,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,n),height:Math.min(t.height,i)},r),t.width=n,t.height=i,t.data=a.data}}function fo(t,e,r,n,i,a){if(0===i.width||0===i.height)return e;if(i.width&gt;t.width||i.height&gt;t.height||r.x&gt;t.width-i.width||r.y&gt;t.height-i.height)throw new RangeError(&quot;out of range source coordinates for image copy&quot;);if(i.width&gt;e.width||i.height&gt;e.height||n.x&gt;e.width-i.width||n.y&gt;e.height-i.height)throw new RangeError(&quot;out of range destination coordinates for image copy&quot;);for(var o=t.data,s=e.data,l=0;l&lt;i.height;l++)for(var c=((r.y+l)*t.width+r.x)*a,u=((n.y+l)*e.width+n.x)*a,f=0;f&lt;i.width*a;f++)s[u+f]=o[c+f];return e}Dn(&quot;HeatmapBucket&quot;,lo,{omit:[&quot;layers&quot;]});var ho=function(t,e){co(this,t,1,e)};ho.prototype.resize=function(t){uo(this,t,1)},ho.prototype.clone=function(){return new ho({width:this.width,height:this.height},new Uint8Array(this.data))},ho.copy=function(t,e,r,n,i){fo(t,e,r,n,i,1)};var po=function(t,e){co(this,t,4,e)};po.prototype.resize=function(t){uo(this,t,4)},po.prototype.replace=function(t,e){e?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t},po.prototype.clone=function(){return new po({width:this.width,height:this.height},new Uint8Array(this.data))},po.copy=function(t,e,r,n,i){fo(t,e,r,n,i,4)},Dn(&quot;AlphaImage&quot;,ho),Dn(&quot;RGBAImage&quot;,po);var go={paint:new yi({&quot;heatmap-radius&quot;:new di(At.paint_heatmap[&quot;heatmap-radius&quot;]),&quot;heatmap-weight&quot;:new di(At.paint_heatmap[&quot;heatmap-weight&quot;]),&quot;heatmap-intensity&quot;:new pi(At.paint_heatmap[&quot;heatmap-intensity&quot;]),&quot;heatmap-color&quot;:new vi(At.paint_heatmap[&quot;heatmap-color&quot;]),&quot;heatmap-opacity&quot;:new pi(At.paint_heatmap[&quot;heatmap-opacity&quot;])})};function mo(t,e){for(var r=new Uint8Array(1024),n={},i=0,a=0;i&lt;256;i++,a+=4){n[e]=i/255;var o=t.evaluate(n);r[a+0]=Math.floor(255*o.r/o.a),r[a+1]=Math.floor(255*o.g/o.a),r[a+2]=Math.floor(255*o.b/o.a),r[a+3]=Math.floor(255*o.a)}return new po({width:256,height:1},r)}var vo=function(t){function e(e){t.call(this,e,go),this._updateColorRamp()}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new lo(t)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){&quot;heatmap-color&quot;===t&amp;&amp;this._updateColorRamp()},e.prototype._updateColorRamp=function(){this.colorRamp=mo(this._transitionablePaint._values[&quot;heatmap-color&quot;].value.expression,&quot;heatmapDensity&quot;),this.colorRampTexture=null},e.prototype.resize=function(){this.heatmapFbo&amp;&amp;(this.heatmapFbo.destroy(),this.heatmapFbo=null)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(&quot;heatmap-opacity&quot;)&amp;&amp;&quot;none&quot;!==this.visibility},e}(xi),yo={paint:new yi({&quot;hillshade-illumination-direction&quot;:new pi(At.paint_hillshade[&quot;hillshade-illumination-direction&quot;]),&quot;hillshade-illumination-anchor&quot;:new pi(At.paint_hillshade[&quot;hillshade-illumination-anchor&quot;]),&quot;hillshade-exaggeration&quot;:new pi(At.paint_hillshade[&quot;hillshade-exaggeration&quot;]),&quot;hillshade-shadow-color&quot;:new pi(At.paint_hillshade[&quot;hillshade-shadow-color&quot;]),&quot;hillshade-highlight-color&quot;:new pi(At.paint_hillshade[&quot;hillshade-highlight-color&quot;]),&quot;hillshade-accent-color&quot;:new pi(At.paint_hillshade[&quot;hillshade-accent-color&quot;])})},xo=function(t){function e(e){t.call(this,e,yo)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(&quot;hillshade-exaggeration&quot;)&amp;&amp;&quot;none&quot;!==this.visibility},e}(xi),bo=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;}],4).members,_o=To,wo=To;function To(t,e,r){r=r||2;var n,i,a,o,s,l,c,u=e&amp;&amp;e.length,f=u?e[0]*r:t.length,h=ko(t,0,f,r,!0),p=[];if(!h||h.next===h.prev)return p;if(u&amp;&amp;(h=function(t,e,r,n){var i,a,o,s=[];for(i=0,a=e.length;i&lt;a;i++)(o=ko(t,e[i]*n,i&lt;a-1?e[i+1]*n:t.length,n,!1))===o.next&amp;&amp;(o.steiner=!0),s.push(Do(o));for(s.sort(Io),i=0;i&lt;s.length;i++)Po(s[i],r),r=Mo(r,r.next);return r}(t,e,h,r)),t.length&gt;80*r){n=a=t[0],i=o=t[1];for(var d=r;d&lt;f;d+=r)(s=t[d])&lt;n&amp;&amp;(n=s),(l=t[d+1])&lt;i&amp;&amp;(i=l),s&gt;a&amp;&amp;(a=s),l&gt;o&amp;&amp;(o=l);c=0!==(c=Math.max(a-n,o-i))?1/c:0}return Ao(h,p,r,n,i,c),p}function ko(t,e,r,n,i){var a,o;if(i===Xo(t,e,r,n)&gt;0)for(a=e;a&lt;r;a+=n)o=Go(a,t[a],t[a+1],o);else for(a=r-n;a&gt;=e;a-=n)o=Go(a,t[a],t[a+1],o);return o&amp;&amp;No(o,o.next)&amp;&amp;(Yo(o),o=o.next),o}function Mo(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!No(n,n.next)&amp;&amp;0!==Bo(n.prev,n,n.next))n=n.next;else{if(Yo(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function Ao(t,e,r,n,i,a,o){if(t){!o&amp;&amp;a&amp;&amp;function(t,e,r,n){var i=t;do{null===i.z&amp;&amp;(i.z=Oo(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e&lt;c&amp;&amp;(s++,n=n.nextZ);e++);for(l=c;s&gt;0||l&gt;0&amp;&amp;n;)0!==s&amp;&amp;(0===l||!n||r.z&lt;=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o&gt;1)}(i)}(t,n,i,a);for(var s,l,c=t;t.prev!==t.next;)if(s=t.prev,l=t.next,a?Eo(t,n,i,a):So(t))e.push(s.i/r),e.push(t.i/r),e.push(l.i/r),Yo(t),t=l.next,c=l.next;else if((t=l)===c){o?1===o?Ao(t=Co(Mo(t),e,r),e,r,n,i,a,2):2===o&amp;&amp;Lo(t,e,r,n,i,a):Ao(Mo(t),e,r,n,i,a,1);break}}}function So(t){var e=t.prev,r=t,n=t.next;if(Bo(e,r,n)&gt;=0)return!1;for(var i=t.next.next;i!==t.prev;){if(Ro(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&amp;&amp;Bo(i.prev,i,i.next)&gt;=0)return!1;i=i.next}return!0}function Eo(t,e,r,n){var i=t.prev,a=t,o=t.next;if(Bo(i,a,o)&gt;=0)return!1;for(var s=i.x&gt;a.x?i.x&gt;o.x?i.x:o.x:a.x&gt;o.x?a.x:o.x,l=i.y&gt;a.y?i.y&gt;o.y?i.y:o.y:a.y&gt;o.y?a.y:o.y,c=Oo(i.x&lt;a.x?i.x&lt;o.x?i.x:o.x:a.x&lt;o.x?a.x:o.x,i.y&lt;a.y?i.y&lt;o.y?i.y:o.y:a.y&lt;o.y?a.y:o.y,e,r,n),u=Oo(s,l,e,r,n),f=t.prevZ,h=t.nextZ;f&amp;&amp;f.z&gt;=c&amp;&amp;h&amp;&amp;h.z&lt;=u;){if(f!==t.prev&amp;&amp;f!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,f.x,f.y)&amp;&amp;Bo(f.prev,f,f.next)&gt;=0)return!1;if(f=f.prevZ,h!==t.prev&amp;&amp;h!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&amp;&amp;Bo(h.prev,h,h.next)&gt;=0)return!1;h=h.nextZ}for(;f&amp;&amp;f.z&gt;=c;){if(f!==t.prev&amp;&amp;f!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,f.x,f.y)&amp;&amp;Bo(f.prev,f,f.next)&gt;=0)return!1;f=f.prevZ}for(;h&amp;&amp;h.z&lt;=u;){if(h!==t.prev&amp;&amp;h!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&amp;&amp;Bo(h.prev,h,h.next)&gt;=0)return!1;h=h.nextZ}return!0}function Co(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!No(i,a)&amp;&amp;jo(i,n,n.next,a)&amp;&amp;qo(i,a)&amp;&amp;qo(a,i)&amp;&amp;(e.push(i.i/r),e.push(n.i/r),e.push(a.i/r),Yo(n),Yo(n.next),n=t=a),n=n.next}while(n!==t);return Mo(n)}function Lo(t,e,r,n,i,a){var o=t;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&amp;&amp;Fo(o,s)){var l=Ho(o,s);return o=Mo(o,o.next),l=Mo(l,l.next),Ao(o,e,r,n,i,a),void Ao(l,e,r,n,i,a)}s=s.next}o=o.next}while(o!==t)}function Io(t,e){return t.x-e.x}function Po(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a&lt;=n.y&amp;&amp;a&gt;=n.next.y&amp;&amp;n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s&lt;=i&amp;&amp;s&gt;o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x&lt;n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,h=1/0;n=r;do{i&gt;=n.x&amp;&amp;n.x&gt;=u&amp;&amp;i!==n.x&amp;&amp;Ro(a&lt;f?i:o,a,u,f,a&lt;f?o:i,a,n.x,n.y)&amp;&amp;(l=Math.abs(a-n.y)/(i-n.x),qo(n,t)&amp;&amp;(l&lt;h||l===h&amp;&amp;(n.x&gt;r.x||n.x===r.x&amp;&amp;zo(r,n)))&amp;&amp;(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e)){var r=Ho(e,t);Mo(e,e.next),Mo(r,r.next)}}function zo(t,e){return Bo(t.prev,t,e.prev)&lt;0&amp;&amp;Bo(e.next,t,t.next)&lt;0}function Oo(t,e,r,n,i){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t=32767*(t-r)*i)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e=32767*(e-n)*i)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1}function Do(t){var e=t,r=t;do{(e.x&lt;r.x||e.x===r.x&amp;&amp;e.y&lt;r.y)&amp;&amp;(r=e),e=e.next}while(e!==t);return r}function Ro(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)&gt;=0&amp;&amp;(t-o)*(n-s)-(r-o)*(e-s)&gt;=0&amp;&amp;(r-o)*(a-s)-(i-o)*(n-s)&gt;=0}function Fo(t,e){return t.next.i!==e.i&amp;&amp;t.prev.i!==e.i&amp;&amp;!function(t,e){var r=t;do{if(r.i!==t.i&amp;&amp;r.next.i!==t.i&amp;&amp;r.i!==e.i&amp;&amp;r.next.i!==e.i&amp;&amp;jo(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&amp;&amp;(qo(t,e)&amp;&amp;qo(e,t)&amp;&amp;function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y&gt;a!=r.next.y&gt;a&amp;&amp;r.next.y!==r.y&amp;&amp;i&lt;(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&amp;&amp;(n=!n),r=r.next}while(r!==t);return n}(t,e)&amp;&amp;(Bo(t.prev,t,e.prev)||Bo(t,e.prev,e))||No(t,e)&amp;&amp;Bo(t.prev,t,t.next)&gt;0&amp;&amp;Bo(e.prev,e,e.next)&gt;0)}function Bo(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function No(t,e){return t.x===e.x&amp;&amp;t.y===e.y}function jo(t,e,r,n){var i=Vo(Bo(t,e,r)),a=Vo(Bo(t,e,n)),o=Vo(Bo(r,n,t)),s=Vo(Bo(r,n,e));return i!==a&amp;&amp;o!==s||!(0!==i||!Uo(t,r,e))||!(0!==a||!Uo(t,n,e))||!(0!==o||!Uo(r,t,n))||!(0!==s||!Uo(r,e,n))}function Uo(t,e,r){return e.x&lt;=Math.max(t.x,r.x)&amp;&amp;e.x&gt;=Math.min(t.x,r.x)&amp;&amp;e.y&lt;=Math.max(t.y,r.y)&amp;&amp;e.y&gt;=Math.min(t.y,r.y)}function Vo(t){return t&gt;0?1:t&lt;0?-1:0}function qo(t,e){return Bo(t.prev,t,t.next)&lt;0?Bo(t,e,t.next)&gt;=0&amp;&amp;Bo(t,t.prev,e)&gt;=0:Bo(t,e,t.prev)&lt;0||Bo(t,t.next,e)&lt;0}function Ho(t,e){var r=new Wo(t.i,t.x,t.y),n=new Wo(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function Go(t,e,r,n){var i=new Wo(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Yo(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&amp;&amp;(t.prevZ.nextZ=t.nextZ),t.nextZ&amp;&amp;(t.nextZ.prevZ=t.prevZ)}function Wo(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Xo(t,e,r,n){for(var i=0,a=e,o=r-n;a&lt;r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}function Zo(t,e,r,n,i){!function t(e,r,n,i,a){for(;i&gt;n;){if(i-n&gt;600){var o=i-n+1,s=r-n+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2&lt;0?-1:1);t(e,r,Math.max(n,Math.floor(r-s*c/o+u)),Math.min(i,Math.floor(r+(o-s)*c/o+u)),a)}var f=e[r],h=n,p=i;for(Jo(e,n,r),a(e[i],f)&gt;0&amp;&amp;Jo(e,n,i);h&lt;p;){for(Jo(e,h,p),h++,p--;a(e[h],f)&lt;0;)h++;for(;a(e[p],f)&gt;0;)p--}0===a(e[n],f)?Jo(e,n,p):Jo(e,++p,i),p&lt;=r&amp;&amp;(n=p+1),r&lt;=p&amp;&amp;(i=p-1)}}(t,e,r||0,n||t.length-1,i||Ko)}function Jo(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Ko(t,e){return t&lt;e?-1:t&gt;e?1:0}function Qo(t,e){var r=t.length;if(r&lt;=1)return[t];for(var n,i,a=[],o=0;o&lt;r;o++){var s=T(t[o]);0!==s&amp;&amp;(t[o].area=Math.abs(s),void 0===i&amp;&amp;(i=s&lt;0),i===s&lt;0?(n&amp;&amp;a.push(n),n=[t[o]]):n.push(t[o]))}if(n&amp;&amp;a.push(n),e&gt;1)for(var l=0;l&lt;a.length;l++)a[l].length&lt;=e||(Zo(a[l],e,1,a[l].length-1,$o),a[l]=a[l].slice(0,e));return a}function $o(t,e){return e.area-t.area}function ts(t,e,r){for(var n=r.patternDependencies,i=!1,a=0,o=e;a&lt;o.length;a+=1){var s=o[a].paint.get(t+&quot;-pattern&quot;);s.isConstant()||(i=!0);var l=s.constantOr(null);l&amp;&amp;(i=!0,n[l.to]=!0,n[l.from]=!0)}return i}function es(t,e,r,n,i){for(var a=i.patternDependencies,o=0,s=e;o&lt;s.length;o+=1){var l=s[o],c=l.paint.get(t+&quot;-pattern&quot;).value;if(&quot;constant&quot;!==c.kind){var u=c.evaluate({zoom:n-1},r,{},i.availableImages),f=c.evaluate({zoom:n},r,{},i.availableImages),h=c.evaluate({zoom:n+1},r,{},i.availableImages);f=f&amp;&amp;f.name?f.name:f,h=h&amp;&amp;h.name?h.name:h,a[u=u&amp;&amp;u.name?u.name:u]=!0,a[f]=!0,a[h]=!0,r.patterns[l.id]={min:u,mid:f,max:h}}}return r}To.deviation=function(t,e,r,n){var i=e&amp;&amp;e.length,a=Math.abs(Xo(t,0,i?e[0]*r:t.length,r));if(i)for(var o=0,s=e.length;o&lt;s;o++)a-=Math.abs(Xo(t,e[o]*r,o&lt;s-1?e[o+1]*r:t.length,r));var l=0;for(o=0;o&lt;n.length;o+=3){var c=n[o]*r,u=n[o+1]*r,f=n[o+2]*r;l+=Math.abs((t[c]-t[f])*(t[u+1]-t[c+1])-(t[c]-t[u])*(t[f+1]-t[c+1]))}return 0===a&amp;&amp;0===l?0:Math.abs((l-a)/a)},To.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i&lt;t.length;i++){for(var a=0;a&lt;t[i].length;a++)for(var o=0;o&lt;e;o++)r.vertices.push(t[i][a][o]);i&gt;0&amp;&amp;r.holes.push(n+=t[i-1].length)}return r},_o.default=wo;var rs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Mi,this.indexArray=new Fi,this.indexArray2=new qi,this.programConfigurations=new Ia(bo,t.layers,t.zoom),this.segments=new ia,this.segments2=new ia,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};rs.prototype.populate=function(t,e,r){this.hasPattern=ts(&quot;fill&quot;,this.layers,e);for(var n=this.layers[0].layout.get(&quot;fill-sort-key&quot;),i=[],a=0,o=t;a&lt;o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,p={type:l.type,id:c,properties:l.properties,geometry:h?Da(l):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),p,r)){h||(p.geometry=Da(l));var d=n?n.evaluate(p,{},r,e.availableImages):void 0;i.push({id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:p.geometry,patterns:{},sortKey:d})}}n&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var g=0,m=i;g&lt;m.length;g+=1){var v=m[g],y=v.geometry,x=v.index,b=v.sourceLayerIndex;if(this.hasPattern){var _=es(&quot;fill&quot;,this.layers,v,this.zoom,e);this.patternFeatures.push(_)}else this.addFeature(v,y,x,r,{});e.featureIndex.insert(t[x].feature,y,x,b,this.index)}},rs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},rs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},rs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},rs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},rs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,bo),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0},rs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},rs.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=Qo(e,500);a&lt;o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c&lt;u.length;c+=1)l+=u[c].length;for(var f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray),h=f.vertexLength,p=[],d=[],g=0,m=s;g&lt;m.length;g+=1){var v=m[g];if(0!==v.length){v!==s[0]&amp;&amp;d.push(p.length/2);var y=this.segments2.prepareSegment(v.length,this.layoutVertexArray,this.indexArray2),x=y.vertexLength;this.layoutVertexArray.emplaceBack(v[0].x,v[0].y),this.indexArray2.emplaceBack(x+v.length-1,x),p.push(v[0].x),p.push(v[0].y);for(var b=1;b&lt;v.length;b++)this.layoutVertexArray.emplaceBack(v[b].x,v[b].y),this.indexArray2.emplaceBack(x+b-1,x+b),p.push(v[b].x),p.push(v[b].y);y.vertexLength+=v.length,y.primitiveLength+=v.length}}for(var _=_o(p,d),w=0;w&lt;_.length;w+=3)this.indexArray.emplaceBack(h+_[w],h+_[w+1],h+_[w+2]);f.vertexLength+=l,f.primitiveLength+=_.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Dn(&quot;FillBucket&quot;,rs,{omit:[&quot;layers&quot;,&quot;patternFeatures&quot;]});var ns=new yi({&quot;fill-sort-key&quot;:new di(At.layout_fill[&quot;fill-sort-key&quot;])}),is={paint:new yi({&quot;fill-antialias&quot;:new pi(At.paint_fill[&quot;fill-antialias&quot;]),&quot;fill-opacity&quot;:new di(At.paint_fill[&quot;fill-opacity&quot;]),&quot;fill-color&quot;:new di(At.paint_fill[&quot;fill-color&quot;]),&quot;fill-outline-color&quot;:new di(At.paint_fill[&quot;fill-outline-color&quot;]),&quot;fill-translate&quot;:new pi(At.paint_fill[&quot;fill-translate&quot;]),&quot;fill-translate-anchor&quot;:new pi(At.paint_fill[&quot;fill-translate-anchor&quot;]),&quot;fill-pattern&quot;:new gi(At.paint_fill[&quot;fill-pattern&quot;])}),layout:ns},as=function(t){function e(e){t.call(this,e,is)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r);var n=this.paint._values[&quot;fill-outline-color&quot;];&quot;constant&quot;===n.value.kind&amp;&amp;void 0===n.value.value&amp;&amp;(this.paint._values[&quot;fill-outline-color&quot;]=this.paint._values[&quot;fill-color&quot;])},e.prototype.createBucket=function(t){return new rs(t)},e.prototype.queryRadius=function(){return Ja(this.paint.get(&quot;fill-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o){return ja(Ka(t,this.paint.get(&quot;fill-translate&quot;),this.paint.get(&quot;fill-translate-anchor&quot;),a.angle,o),n)},e.prototype.isTileClipped=function(){return!0},e}(xi),os=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_normal_ed&quot;,components:4,type:&quot;Int16&quot;}],4).members,ss=ls;function ls(t,e,r,n,i){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=i,t.readFields(cs,this,e)}function cs(t,e,r){1==t?e.id=r.readVarint():2==t?function(t,e){for(var r=t.readVarint()+t.pos;t.pos&lt;r;){var n=e._keys[t.readVarint()],i=e._values[t.readVarint()];e.properties[n]=i}}(r,e):3==t?e.type=r.readVarint():4==t&amp;&amp;(e._geometry=r.pos)}function us(t){for(var e,r,n=0,i=0,a=t.length,o=a-1;i&lt;a;o=i++)n+=((r=t[o]).x-(e=t[i]).x)*(e.y+r.y);return n}ls.types=[&quot;Unknown&quot;,&quot;Point&quot;,&quot;LineString&quot;,&quot;Polygon&quot;],ls.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,r=t.readVarint()+t.pos,n=1,a=0,o=0,s=0,l=[];t.pos&lt;r;){if(a&lt;=0){var c=t.readVarint();n=7&amp;c,a=c&gt;&gt;3}if(a--,1===n||2===n)o+=t.readSVarint(),s+=t.readSVarint(),1===n&amp;&amp;(e&amp;&amp;l.push(e),e=[]),e.push(new i(o,s));else{if(7!==n)throw new Error(&quot;unknown command &quot;+n);e&amp;&amp;e.push(e[0].clone())}}return e&amp;&amp;l.push(e),l},ls.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,i=0,a=0,o=1/0,s=-1/0,l=1/0,c=-1/0;t.pos&lt;e;){if(n&lt;=0){var u=t.readVarint();r=7&amp;u,n=u&gt;&gt;3}if(n--,1===r||2===r)(i+=t.readSVarint())&lt;o&amp;&amp;(o=i),i&gt;s&amp;&amp;(s=i),(a+=t.readSVarint())&lt;l&amp;&amp;(l=a),a&gt;c&amp;&amp;(c=a);else if(7!==r)throw new Error(&quot;unknown command &quot;+r)}return[o,l,s,c]},ls.prototype.toGeoJSON=function(t,e,r){var n,i,a=this.extent*Math.pow(2,r),o=this.extent*t,s=this.extent*e,l=this.loadGeometry(),c=ls.types[this.type];function u(t){for(var e=0;e&lt;t.length;e++){var r=t[e];t[e]=[360*(r.x+o)/a-180,360/Math.PI*Math.atan(Math.exp((180-360*(r.y+s)/a)*Math.PI/180))-90]}}switch(this.type){case 1:var f=[];for(n=0;n&lt;l.length;n++)f[n]=l[n][0];u(l=f);break;case 2:for(n=0;n&lt;l.length;n++)u(l[n]);break;case 3:for(l=function(t){var e=t.length;if(e&lt;=1)return[t];for(var r,n,i=[],a=0;a&lt;e;a++){var o=us(t[a]);0!==o&amp;&amp;(void 0===n&amp;&amp;(n=o&lt;0),n===o&lt;0?(r&amp;&amp;i.push(r),r=[t[a]]):r.push(t[a]))}return r&amp;&amp;i.push(r),i}(l),n=0;n&lt;l.length;n++)for(i=0;i&lt;l[n].length;i++)u(l[n][i])}1===l.length?l=l[0]:c=&quot;Multi&quot;+c;var h={type:&quot;Feature&quot;,geometry:{type:c,coordinates:l},properties:this.properties};return&quot;id&quot;in this&amp;&amp;(h.id=this.id),h};var fs=hs;function hs(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(ps,this,e),this.length=this._features.length}function ps(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():5===t?e.extent=r.readVarint():2===t?e._features.push(r.pos):3===t?e._keys.push(r.readString()):4===t&amp;&amp;e._values.push(function(t){for(var e=null,r=t.readVarint()+t.pos;t.pos&lt;r;){var n=t.readVarint()&gt;&gt;3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}(r))}function ds(t,e,r){if(3===t){var n=new fs(r,r.readVarint()+r.pos);n.length&amp;&amp;(e[n.name]=n)}}hs.prototype.feature=function(t){if(t&lt;0||t&gt;=this._features.length)throw new Error(&quot;feature index out of bounds&quot;);this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new ss(this._pbf,e,this.extent,this._keys,this._values)};var gs={VectorTile:function(t,e){this.layers=t.readFields(ds,{},e)},VectorTileFeature:ss,VectorTileLayer:fs},ms=gs.VectorTileFeature.types,vs=Math.pow(2,13);function ys(t,e,r,n,i,a,o,s){t.emplaceBack(e,r,2*Math.floor(n*vs)+o,i*vs*2,a*vs*2,Math.round(s))}var xs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Si,this.indexArray=new Fi,this.programConfigurations=new Ia(os,t.layers,t.zoom),this.segments=new ia,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function bs(t,e){return t.x===e.x&amp;&amp;(t.x&lt;0||t.x&gt;8192)||t.y===e.y&amp;&amp;(t.y&lt;0||t.y&gt;8192)}xs.prototype.populate=function(t,e,r){this.features=[],this.hasPattern=ts(&quot;fill-extrusion&quot;,this.layers,e);for(var n=0,i=t;n&lt;i.length;n+=1){var a=i[n],o=a.feature,s=a.id,l=a.index,c=a.sourceLayerIndex,u=this.layers[0]._featureFilter.needGeometry,f={type:o.type,id:s,properties:o.properties,geometry:u?Da(o):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),f,r)){var h={id:s,sourceLayerIndex:c,index:l,geometry:u?f.geometry:Da(o),properties:o.properties,type:o.type,patterns:{}};void 0!==o.id&amp;&amp;(h.id=o.id),this.hasPattern?this.features.push(es(&quot;fill-extrusion&quot;,this.layers,h,this.zoom,e)):this.addFeature(h,h.geometry,l,r,{}),e.featureIndex.insert(o,h.geometry,l,c,this.index,!0)}}},xs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.features;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},xs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},xs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},xs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},xs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,os),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},xs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},xs.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=Qo(e,500);a&lt;o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c&lt;u.length;c+=1)l+=u[c].length;for(var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),h=0,p=s;h&lt;p.length;h+=1){var d=p[h];if(0!==d.length&amp;&amp;!((P=d).every((function(t){return t.x&lt;0}))||P.every((function(t){return t.x&gt;8192}))||P.every((function(t){return t.y&lt;0}))||P.every((function(t){return t.y&gt;8192}))))for(var g=0,m=0;m&lt;d.length;m++){var v=d[m];if(m&gt;=1){var y=d[m-1];if(!bs(v,y)){f.vertexLength+4&gt;ia.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var x=v.sub(y)._perp()._unit(),b=y.dist(v);g+b&gt;32768&amp;&amp;(g=0),ys(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,0,g),ys(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,1,g),ys(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,0,g+=b),ys(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,1,g);var _=f.vertexLength;this.indexArray.emplaceBack(_,_+2,_+1),this.indexArray.emplaceBack(_+1,_+2,_+3),f.vertexLength+=4,f.primitiveLength+=2}}}}if(f.vertexLength+l&gt;ia.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray)),&quot;Polygon&quot;===ms[t.type]){for(var w=[],T=[],k=f.vertexLength,M=0,A=s;M&lt;A.length;M+=1){var S=A[M];if(0!==S.length){S!==s[0]&amp;&amp;T.push(w.length/2);for(var E=0;E&lt;S.length;E++){var C=S[E];ys(this.layoutVertexArray,C.x,C.y,0,0,1,1,0),w.push(C.x),w.push(C.y)}}}for(var L=_o(w,T),I=0;I&lt;L.length;I+=3)this.indexArray.emplaceBack(k+L[I],k+L[I+2],k+L[I+1]);f.primitiveLength+=L.length/3,f.vertexLength+=l}}var P;this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Dn(&quot;FillExtrusionBucket&quot;,xs,{omit:[&quot;layers&quot;,&quot;features&quot;]});var _s={paint:new yi({&quot;fill-extrusion-opacity&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-opacity&quot;]),&quot;fill-extrusion-color&quot;:new di(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-color&quot;]),&quot;fill-extrusion-translate&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-translate&quot;]),&quot;fill-extrusion-translate-anchor&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-translate-anchor&quot;]),&quot;fill-extrusion-pattern&quot;:new gi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-pattern&quot;]),&quot;fill-extrusion-height&quot;:new di(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-height&quot;]),&quot;fill-extrusion-base&quot;:new di(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-base&quot;]),&quot;fill-extrusion-vertical-gradient&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-vertical-gradient&quot;])})},ws=function(t){function e(e){t.call(this,e,_s)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new xs(t)},e.prototype.queryRadius=function(){return Ja(this.paint.get(&quot;fill-extrusion-translate&quot;))},e.prototype.is3D=function(){return!0},e.prototype.queryIntersectsFeature=function(t,e,r,n,a,o,s,l){var c=Ka(t,this.paint.get(&quot;fill-extrusion-translate&quot;),this.paint.get(&quot;fill-extrusion-translate-anchor&quot;),o.angle,s),u=this.paint.get(&quot;fill-extrusion-height&quot;).evaluate(e,r),f=this.paint.get(&quot;fill-extrusion-base&quot;).evaluate(e,r),h=function(t,e,r,n){for(var a=[],o=0,s=t;o&lt;s.length;o+=1){var l=s[o],c=[l.x,l.y,0,1];ao(c,c,e),a.push(new i(c[0]/c[3],c[1]/c[3]))}return a}(c,l),p=function(t,e,r,n){for(var a=[],o=[],s=n[8]*e,l=n[9]*e,c=n[10]*e,u=n[11]*e,f=n[8]*r,h=n[9]*r,p=n[10]*r,d=n[11]*r,g=0,m=t;g&lt;m.length;g+=1){for(var v=[],y=[],x=0,b=m[g];x&lt;b.length;x+=1){var _=b[x],w=_.x,T=_.y,k=n[0]*w+n[4]*T+n[12],M=n[1]*w+n[5]*T+n[13],A=n[2]*w+n[6]*T+n[14],S=n[3]*w+n[7]*T+n[15],E=A+c,C=S+u,L=k+f,I=M+h,P=A+p,z=S+d,O=new i((k+s)/C,(M+l)/C);O.z=E/C,v.push(O);var D=new i(L/z,I/z);D.z=P/z,y.push(D)}a.push(v),o.push(y)}return[a,o]}(n,f,u,l);return function(t,e,r){var n=1/0;ja(r,e)&amp;&amp;(n=ks(r,e[0]));for(var i=0;i&lt;e.length;i++)for(var a=e[i],o=t[i],s=0;s&lt;a.length-1;s++){var l=a[s],c=[l,a[s+1],o[s+1],o[s],l];Ba(r,c)&amp;&amp;(n=Math.min(n,ks(r,c)))}return n!==1/0&amp;&amp;n}(p[0],p[1],h)},e}(xi);function Ts(t,e){return t.x*e.x+t.y*e.y}function ks(t,e){if(1===t.length){for(var r,n=0,i=e[n++];!r||i.equals(r);)if(!(r=e[n++]))return 1/0;for(;n&lt;e.length;n++){var a=e[n],o=t[0],s=r.sub(i),l=a.sub(i),c=o.sub(i),u=Ts(s,s),f=Ts(s,l),h=Ts(l,l),p=Ts(c,s),d=Ts(c,l),g=u*h-f*f,m=(h*p-f*d)/g,v=(u*d-f*p)/g,y=i.z*(1-m-v)+r.z*m+a.z*v;if(isFinite(y))return y}return 1/0}for(var x=1/0,b=0,_=e;b&lt;_.length;b+=1)x=Math.min(x,_[b].z);return x}var Ms=Ti([{name:&quot;a_pos_normal&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_data&quot;,components:4,type:&quot;Uint8&quot;}],4).members,As=gs.VectorTileFeature.types,Ss=Math.cos(Math.PI/180*37.5),Es=Math.pow(2,14)/.5,Cs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Ei,this.indexArray=new Fi,this.programConfigurations=new Ia(Ms,t.layers,t.zoom),this.segments=new ia,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};Cs.prototype.populate=function(t,e,r){this.hasPattern=ts(&quot;line&quot;,this.layers,e);for(var n=this.layers[0].layout.get(&quot;line-sort-key&quot;),i=[],a=0,o=t;a&lt;o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,p={type:l.type,id:c,properties:l.properties,geometry:h?Da(l):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),p,r)){h||(p.geometry=Da(l));var d=n?n.evaluate(p,{},r):void 0;i.push({id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:p.geometry,patterns:{},sortKey:d})}}n&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var g=0,m=i;g&lt;m.length;g+=1){var v=m[g],y=v.geometry,x=v.index,b=v.sourceLayerIndex;if(this.hasPattern){var _=es(&quot;line&quot;,this.layers,v,this.zoom,e);this.patternFeatures.push(_)}else this.addFeature(v,y,x,r,{});e.featureIndex.insert(t[x].feature,y,x,b,this.index)}},Cs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Cs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},Cs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Cs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Cs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ms),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Cs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Cs.prototype.addFeature=function(t,e,r,n,i){for(var a=this.layers[0].layout,o=a.get(&quot;line-join&quot;).evaluate(t,{}),s=a.get(&quot;line-cap&quot;),l=a.get(&quot;line-miter-limit&quot;),c=a.get(&quot;line-round-limit&quot;),u=0,f=e;u&lt;f.length;u+=1)this.addLine(f[u],t,o,s,l,c);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Cs.prototype.addLine=function(t,e,r,n,i,a){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,e.properties&amp;&amp;e.properties.hasOwnProperty(&quot;mapbox_clip_start&quot;)&amp;&amp;e.properties.hasOwnProperty(&quot;mapbox_clip_end&quot;)){this.clipStart=+e.properties.mapbox_clip_start,this.clipEnd=+e.properties.mapbox_clip_end;for(var o=0;o&lt;t.length-1;o++)this.totalDistance+=t[o].dist(t[o+1]);this.updateScaledDistance()}for(var s=&quot;Polygon&quot;===As[e.type],l=t.length;l&gt;=2&amp;&amp;t[l-1].equals(t[l-2]);)l--;for(var c=0;c&lt;l-1&amp;&amp;t[c].equals(t[c+1]);)c++;if(!(l&lt;(s?3:2))){&quot;bevel&quot;===r&amp;&amp;(i=1.05);var u,f=this.overscaling&lt;=16?122880/(512*this.overscaling):0,h=this.segments.prepareSegment(10*l,this.layoutVertexArray,this.indexArray),p=void 0,d=void 0,g=void 0,m=void 0;this.e1=this.e2=-1,s&amp;&amp;(m=t[c].sub(u=t[l-2])._unit()._perp());for(var v=c;v&lt;l;v++)if(!(d=v===l-1?s?t[c+1]:void 0:t[v+1])||!t[v].equals(d)){m&amp;&amp;(g=m),u&amp;&amp;(p=u),u=t[v],m=d?d.sub(u)._unit()._perp():g;var y=(g=g||m).add(m);0===y.x&amp;&amp;0===y.y||y._unit();var x=g.x*m.x+g.y*m.y,b=y.x*m.x+y.y*m.y,_=0!==b?1/b:1/0,w=2*Math.sqrt(2-2*b),T=b&lt;Ss&amp;&amp;p&amp;&amp;d,k=g.x*m.y-g.y*m.x&gt;0;if(T&amp;&amp;v&gt;c){var M=u.dist(p);if(M&gt;2*f){var A=u.sub(u.sub(p)._mult(f/M)._round());this.updateDistance(p,A),this.addCurrentVertex(A,g,0,0,h),p=A}}var S=p&amp;&amp;d,E=S?r:s?&quot;butt&quot;:n;if(S&amp;&amp;&quot;round&quot;===E&amp;&amp;(_&lt;a?E=&quot;miter&quot;:_&lt;=2&amp;&amp;(E=&quot;fakeround&quot;)),&quot;miter&quot;===E&amp;&amp;_&gt;i&amp;&amp;(E=&quot;bevel&quot;),&quot;bevel&quot;===E&amp;&amp;(_&gt;2&amp;&amp;(E=&quot;flipbevel&quot;),_&lt;i&amp;&amp;(E=&quot;miter&quot;)),p&amp;&amp;this.updateDistance(p,u),&quot;miter&quot;===E)y._mult(_),this.addCurrentVertex(u,y,0,0,h);else if(&quot;flipbevel&quot;===E){if(_&gt;100)y=m.mult(-1);else{var C=_*g.add(m).mag()/g.sub(m).mag();y._perp()._mult(C*(k?-1:1))}this.addCurrentVertex(u,y,0,0,h),this.addCurrentVertex(u,y.mult(-1),0,0,h)}else if(&quot;bevel&quot;===E||&quot;fakeround&quot;===E){var L=-Math.sqrt(_*_-1),I=k?L:0,P=k?0:L;if(p&amp;&amp;this.addCurrentVertex(u,g,I,P,h),&quot;fakeround&quot;===E)for(var z=Math.round(180*w/Math.PI/20),O=1;O&lt;z;O++){var D=O/z;if(.5!==D){var R=D-.5;D+=D*R*(D-1)*((1.0904+x*(x*(3.55645-1.43519*x)-3.2452))*R*R+(.848013+x*(.215638*x-1.06021)))}var F=m.sub(g)._mult(D)._add(g)._unit()._mult(k?-1:1);this.addHalfVertex(u,F.x,F.y,!1,k,0,h)}d&amp;&amp;this.addCurrentVertex(u,m,-I,-P,h)}else if(&quot;butt&quot;===E)this.addCurrentVertex(u,y,0,0,h);else if(&quot;square&quot;===E){var B=p?1:-1;this.addCurrentVertex(u,y,B,B,h)}else&quot;round&quot;===E&amp;&amp;(p&amp;&amp;(this.addCurrentVertex(u,g,0,0,h),this.addCurrentVertex(u,g,1,1,h,!0)),d&amp;&amp;(this.addCurrentVertex(u,m,-1,-1,h,!0),this.addCurrentVertex(u,m,0,0,h)));if(T&amp;&amp;v&lt;l-1){var N=u.dist(d);if(N&gt;2*f){var j=u.add(d.sub(u)._mult(f/N)._round());this.updateDistance(u,j),this.addCurrentVertex(j,m,0,0,h),u=j}}}}},Cs.prototype.addCurrentVertex=function(t,e,r,n,i,a){void 0===a&amp;&amp;(a=!1);var o=e.y*n-e.x,s=-e.y-e.x*n;this.addHalfVertex(t,e.x+e.y*r,e.y-e.x*r,a,!1,r,i),this.addHalfVertex(t,o,s,a,!0,-n,i),this.distance&gt;Es/2&amp;&amp;0===this.totalDistance&amp;&amp;(this.distance=0,this.addCurrentVertex(t,e,r,n,i,a))},Cs.prototype.addHalfVertex=function(t,e,r,n,i,a,o){var s=.5*this.scaledDistance;this.layoutVertexArray.emplaceBack((t.x&lt;&lt;1)+(n?1:0),(t.y&lt;&lt;1)+(i?1:0),Math.round(63*e)+128,Math.round(63*r)+128,1+(0===a?0:a&lt;0?-1:1)|(63&amp;s)&lt;&lt;2,s&gt;&gt;6);var l=o.vertexLength++;this.e1&gt;=0&amp;&amp;this.e2&gt;=0&amp;&amp;(this.indexArray.emplaceBack(this.e1,this.e2,l),o.primitiveLength++),i?this.e2=l:this.e1=l},Cs.prototype.updateScaledDistance=function(){this.scaledDistance=this.totalDistance&gt;0?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(Es-1):this.distance},Cs.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},Dn(&quot;LineBucket&quot;,Cs,{omit:[&quot;layers&quot;,&quot;patternFeatures&quot;]});var Ls=new yi({&quot;line-cap&quot;:new pi(At.layout_line[&quot;line-cap&quot;]),&quot;line-join&quot;:new di(At.layout_line[&quot;line-join&quot;]),&quot;line-miter-limit&quot;:new pi(At.layout_line[&quot;line-miter-limit&quot;]),&quot;line-round-limit&quot;:new pi(At.layout_line[&quot;line-round-limit&quot;]),&quot;line-sort-key&quot;:new di(At.layout_line[&quot;line-sort-key&quot;])}),Is={paint:new yi({&quot;line-opacity&quot;:new di(At.paint_line[&quot;line-opacity&quot;]),&quot;line-color&quot;:new di(At.paint_line[&quot;line-color&quot;]),&quot;line-translate&quot;:new pi(At.paint_line[&quot;line-translate&quot;]),&quot;line-translate-anchor&quot;:new pi(At.paint_line[&quot;line-translate-anchor&quot;]),&quot;line-width&quot;:new di(At.paint_line[&quot;line-width&quot;]),&quot;line-gap-width&quot;:new di(At.paint_line[&quot;line-gap-width&quot;]),&quot;line-offset&quot;:new di(At.paint_line[&quot;line-offset&quot;]),&quot;line-blur&quot;:new di(At.paint_line[&quot;line-blur&quot;]),&quot;line-dasharray&quot;:new mi(At.paint_line[&quot;line-dasharray&quot;]),&quot;line-pattern&quot;:new gi(At.paint_line[&quot;line-pattern&quot;]),&quot;line-gradient&quot;:new vi(At.paint_line[&quot;line-gradient&quot;])}),layout:Ls},Ps=new(function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(e,r){return r=new ii(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),t.prototype.possiblyEvaluate.call(this,e,r)},e.prototype.evaluate=function(e,r,n,i){return r=u({},r,{zoom:Math.floor(r.zoom)}),t.prototype.evaluate.call(this,e,r,n,i)},e}(di))(Is.paint.properties[&quot;line-width&quot;].specification);Ps.useIntegerZoom=!0;var zs=function(t){function e(e){t.call(this,e,Is)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){&quot;line-gradient&quot;===t&amp;&amp;this._updateGradient()},e.prototype._updateGradient=function(){this.gradient=mo(this._transitionablePaint._values[&quot;line-gradient&quot;].value.expression,&quot;lineProgress&quot;),this.gradientTexture=null},e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r),this.paint._values[&quot;line-floorwidth&quot;]=Ps.possiblyEvaluate(this._transitioningPaint._values[&quot;line-width&quot;].value,e)},e.prototype.createBucket=function(t){return new Cs(t)},e.prototype.queryRadius=function(t){var e=t,r=Os(Za(&quot;line-width&quot;,this,e),Za(&quot;line-gap-width&quot;,this,e)),n=Za(&quot;line-offset&quot;,this,e);return r/2+Math.abs(n)+Ja(this.paint.get(&quot;line-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,a,o,s){var l=Ka(t,this.paint.get(&quot;line-translate&quot;),this.paint.get(&quot;line-translate-anchor&quot;),o.angle,s),c=s/2*Os(this.paint.get(&quot;line-width&quot;).evaluate(e,r),this.paint.get(&quot;line-gap-width&quot;).evaluate(e,r)),u=this.paint.get(&quot;line-offset&quot;).evaluate(e,r);return u&amp;&amp;(n=function(t,e){for(var r=[],n=new i(0,0),a=0;a&lt;t.length;a++){for(var o=t[a],s=[],l=0;l&lt;o.length;l++){var c=o[l],u=o[l+1],f=0===l?n:c.sub(o[l-1])._unit()._perp(),h=l===o.length-1?n:u.sub(c)._unit()._perp(),p=f._add(h)._unit();p._mult(1/(p.x*h.x+p.y*h.y)),s.push(p._mult(e)._add(c))}r.push(s)}return r}(n,u*s)),function(t,e,r){for(var n=0;n&lt;e.length;n++){var i=e[n];if(t.length&gt;=3)for(var a=0;a&lt;i.length;a++)if(Wa(t,i[a]))return!0;if(Ua(t,i,r))return!0}return!1}(l,n,c)},e.prototype.isTileClipped=function(){return!0},e}(xi);function Os(t,e){return e&gt;0?e+2*t:t}var Ds=Ti([{name:&quot;a_pos_offset&quot;,components:4,type:&quot;Int16&quot;},{name:&quot;a_data&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pixeloffset&quot;,components:4,type:&quot;Int16&quot;}],4),Rs=Ti([{name:&quot;a_projected_pos&quot;,components:3,type:&quot;Float32&quot;}],4),Fs=(Ti([{name:&quot;a_fade_opacity&quot;,components:1,type:&quot;Uint32&quot;}],4),Ti([{name:&quot;a_placed&quot;,components:2,type:&quot;Uint8&quot;},{name:&quot;a_shift&quot;,components:2,type:&quot;Float32&quot;}])),Bs=(Ti([{type:&quot;Int16&quot;,name:&quot;anchorPointX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorPointY&quot;},{type:&quot;Int16&quot;,name:&quot;x1&quot;},{type:&quot;Int16&quot;,name:&quot;y1&quot;},{type:&quot;Int16&quot;,name:&quot;x2&quot;},{type:&quot;Int16&quot;,name:&quot;y2&quot;},{type:&quot;Uint32&quot;,name:&quot;featureIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;sourceLayerIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;bucketIndex&quot;}]),Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_anchor_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_extrude&quot;,components:2,type:&quot;Int16&quot;}],4)),Ns=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Float32&quot;},{name:&quot;a_radius&quot;,components:1,type:&quot;Float32&quot;},{name:&quot;a_flags&quot;,components:2,type:&quot;Int16&quot;}],4);function js(t,e,r){return t.sections.forEach((function(t){t.text=function(t,e,r){var n=e.layout.get(&quot;text-transform&quot;).evaluate(r,{});return&quot;uppercase&quot;===n?t=t.toLocaleUpperCase():&quot;lowercase&quot;===n&amp;&amp;(t=t.toLocaleLowerCase()),ni.applyArabicShaping&amp;&amp;(t=ni.applyArabicShaping(t)),t}(t.text,e,r)})),t}Ti([{name:&quot;triangle&quot;,components:3,type:&quot;Uint16&quot;}]),Ti([{type:&quot;Int16&quot;,name:&quot;anchorX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorY&quot;},{type:&quot;Uint16&quot;,name:&quot;glyphStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;numGlyphs&quot;},{type:&quot;Uint32&quot;,name:&quot;vertexStartIndex&quot;},{type:&quot;Uint32&quot;,name:&quot;lineStartIndex&quot;},{type:&quot;Uint32&quot;,name:&quot;lineLength&quot;},{type:&quot;Uint16&quot;,name:&quot;segment&quot;},{type:&quot;Uint16&quot;,name:&quot;lowerSize&quot;},{type:&quot;Uint16&quot;,name:&quot;upperSize&quot;},{type:&quot;Float32&quot;,name:&quot;lineOffsetX&quot;},{type:&quot;Float32&quot;,name:&quot;lineOffsetY&quot;},{type:&quot;Uint8&quot;,name:&quot;writingMode&quot;},{type:&quot;Uint8&quot;,name:&quot;placedOrientation&quot;},{type:&quot;Uint8&quot;,name:&quot;hidden&quot;},{type:&quot;Uint32&quot;,name:&quot;crossTileID&quot;},{type:&quot;Int16&quot;,name:&quot;associatedIconIndex&quot;}]),Ti([{type:&quot;Int16&quot;,name:&quot;anchorX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorY&quot;},{type:&quot;Int16&quot;,name:&quot;rightJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;centerJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;leftJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;verticalPlacedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;placedIconSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;verticalPlacedIconSymbolIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;key&quot;},{type:&quot;Uint16&quot;,name:&quot;textBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;textBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalTextBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalTextBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;iconBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;iconBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalIconBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalIconBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;featureIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;numHorizontalGlyphVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numVerticalGlyphVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numIconVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numVerticalIconVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;useRuntimeCollisionCircles&quot;},{type:&quot;Uint32&quot;,name:&quot;crossTileID&quot;},{type:&quot;Float32&quot;,name:&quot;textBoxScale&quot;},{type:&quot;Float32&quot;,components:2,name:&quot;textOffset&quot;},{type:&quot;Float32&quot;,name:&quot;collisionCircleDiameter&quot;}]),Ti([{type:&quot;Float32&quot;,name:&quot;offsetX&quot;}]),Ti([{type:&quot;Int16&quot;,name:&quot;x&quot;},{type:&quot;Int16&quot;,name:&quot;y&quot;},{type:&quot;Int16&quot;,name:&quot;tileUnitDistanceFromAnchor&quot;}]);var Us={&quot;!&quot;:&quot;\ufe15&quot;,&quot;#&quot;:&quot;\uff03&quot;,$:&quot;\uff04&quot;,&quot;%&quot;:&quot;\uff05&quot;,&quot;&amp;&quot;:&quot;\uff06&quot;,&quot;(&quot;:&quot;\ufe35&quot;,&quot;)&quot;:&quot;\ufe36&quot;,&quot;*&quot;:&quot;\uff0a&quot;,&quot;+&quot;:&quot;\uff0b&quot;,&quot;,&quot;:&quot;\ufe10&quot;,&quot;-&quot;:&quot;\ufe32&quot;,&quot;.&quot;:&quot;\u30fb&quot;,&quot;/&quot;:&quot;\uff0f&quot;,&quot;:&quot;:&quot;\ufe13&quot;,&quot;;&quot;:&quot;\ufe14&quot;,&quot;&lt;&quot;:&quot;\ufe3f&quot;,&quot;=&quot;:&quot;\uff1d&quot;,&quot;&gt;&quot;:&quot;\ufe40&quot;,&quot;?&quot;:&quot;\ufe16&quot;,&quot;@&quot;:&quot;\uff20&quot;,&quot;[&quot;:&quot;\ufe47&quot;,&quot;\\&quot;:&quot;\uff3c&quot;,&quot;]&quot;:&quot;\ufe48&quot;,&quot;^&quot;:&quot;\uff3e&quot;,_:&quot;\ufe33&quot;,&quot;`&quot;:&quot;\uff40&quot;,&quot;{&quot;:&quot;\ufe37&quot;,&quot;|&quot;:&quot;\u2015&quot;,&quot;}&quot;:&quot;\ufe38&quot;,&quot;~&quot;:&quot;\uff5e&quot;,&quot;\xa2&quot;:&quot;\uffe0&quot;,&quot;\xa3&quot;:&quot;\uffe1&quot;,&quot;\xa5&quot;:&quot;\uffe5&quot;,&quot;\xa6&quot;:&quot;\uffe4&quot;,&quot;\xac&quot;:&quot;\uffe2&quot;,&quot;\xaf&quot;:&quot;\uffe3&quot;,&quot;\u2013&quot;:&quot;\ufe32&quot;,&quot;\u2014&quot;:&quot;\ufe31&quot;,&quot;\u2018&quot;:&quot;\ufe43&quot;,&quot;\u2019&quot;:&quot;\ufe44&quot;,&quot;\u201c&quot;:&quot;\ufe41&quot;,&quot;\u201d&quot;:&quot;\ufe42&quot;,&quot;\u2026&quot;:&quot;\ufe19&quot;,&quot;\u2027&quot;:&quot;\u30fb&quot;,&quot;\u20a9&quot;:&quot;\uffe6&quot;,&quot;\u3001&quot;:&quot;\ufe11&quot;,&quot;\u3002&quot;:&quot;\ufe12&quot;,&quot;\u3008&quot;:&quot;\ufe3f&quot;,&quot;\u3009&quot;:&quot;\ufe40&quot;,&quot;\u300a&quot;:&quot;\ufe3d&quot;,&quot;\u300b&quot;:&quot;\ufe3e&quot;,&quot;\u300c&quot;:&quot;\ufe41&quot;,&quot;\u300d&quot;:&quot;\ufe42&quot;,&quot;\u300e&quot;:&quot;\ufe43&quot;,&quot;\u300f&quot;:&quot;\ufe44&quot;,&quot;\u3010&quot;:&quot;\ufe3b&quot;,&quot;\u3011&quot;:&quot;\ufe3c&quot;,&quot;\u3014&quot;:&quot;\ufe39&quot;,&quot;\u3015&quot;:&quot;\ufe3a&quot;,&quot;\u3016&quot;:&quot;\ufe17&quot;,&quot;\u3017&quot;:&quot;\ufe18&quot;,&quot;\uff01&quot;:&quot;\ufe15&quot;,&quot;\uff08&quot;:&quot;\ufe35&quot;,&quot;\uff09&quot;:&quot;\ufe36&quot;,&quot;\uff0c&quot;:&quot;\ufe10&quot;,&quot;\uff0d&quot;:&quot;\ufe32&quot;,&quot;\uff0e&quot;:&quot;\u30fb&quot;,&quot;\uff1a&quot;:&quot;\ufe13&quot;,&quot;\uff1b&quot;:&quot;\ufe14&quot;,&quot;\uff1c&quot;:&quot;\ufe3f&quot;,&quot;\uff1e&quot;:&quot;\ufe40&quot;,&quot;\uff1f&quot;:&quot;\ufe16&quot;,&quot;\uff3b&quot;:&quot;\ufe47&quot;,&quot;\uff3d&quot;:&quot;\ufe48&quot;,&quot;\uff3f&quot;:&quot;\ufe33&quot;,&quot;\uff5b&quot;:&quot;\ufe37&quot;,&quot;\uff5c&quot;:&quot;\u2015&quot;,&quot;\uff5d&quot;:&quot;\ufe38&quot;,&quot;\uff5f&quot;:&quot;\ufe35&quot;,&quot;\uff60&quot;:&quot;\ufe36&quot;,&quot;\uff61&quot;:&quot;\ufe12&quot;,&quot;\uff62&quot;:&quot;\ufe41&quot;,&quot;\uff63&quot;:&quot;\ufe42&quot;},Vs=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1&lt;&lt;s)-1,c=l&gt;&gt;1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&amp;(1&lt;&lt;-u)-1,p&gt;&gt;=-u,u+=s;u&gt;0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&amp;(1&lt;&lt;-u)-1,a&gt;&gt;=-u,u+=n;u&gt;0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},qs=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1&lt;&lt;c)-1,f=u&gt;&gt;1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e&lt;0||0===e&amp;&amp;1/e&lt;0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))&lt;1&amp;&amp;(o--,l*=2),(e+=o+f&gt;=1?h/l:h*Math.pow(2,1-f))*l&gt;=2&amp;&amp;(o++,l/=2),o+f&gt;=u?(s=0,o=u):o+f&gt;=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i&gt;=8;t[r+p]=255&amp;s,p+=d,s/=256,i-=8);for(o=o&lt;&lt;i|s,c+=i;c&gt;0;t[r+p]=255&amp;o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g},Hs=Gs;function Gs(t){this.buf=ArrayBuffer.isView&amp;&amp;ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Gs.Varint=0,Gs.Fixed64=1,Gs.Bytes=2,Gs.Fixed32=5;var Ys=&quot;undefined&quot;==typeof TextDecoder?null:new TextDecoder(&quot;utf8&quot;);function Ws(t){return t.type===Gs.Bytes?t.readVarint()+t.pos:t.pos+1}function Xs(t,e,r){return r?4294967296*e+(t&gt;&gt;&gt;0):4294967296*(e&gt;&gt;&gt;0)+(t&gt;&gt;&gt;0)}function Zs(t,e,r){var n=e&lt;=16383?1:e&lt;=2097151?2:e&lt;=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i&gt;=t;i--)r.buf[i+n]=r.buf[i]}function Js(t,e){for(var r=0;r&lt;t.length;r++)e.writeVarint(t[r])}function Ks(t,e){for(var r=0;r&lt;t.length;r++)e.writeSVarint(t[r])}function Qs(t,e){for(var r=0;r&lt;t.length;r++)e.writeFloat(t[r])}function $s(t,e){for(var r=0;r&lt;t.length;r++)e.writeDouble(t[r])}function tl(t,e){for(var r=0;r&lt;t.length;r++)e.writeBoolean(t[r])}function el(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed32(t[r])}function rl(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed32(t[r])}function nl(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed64(t[r])}function il(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed64(t[r])}function al(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+16777216*t[e+3]}function ol(t,e,r){t[r]=e,t[r+1]=e&gt;&gt;&gt;8,t[r+2]=e&gt;&gt;&gt;16,t[r+3]=e&gt;&gt;&gt;24}function sl(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+(t[e+3]&lt;&lt;24)}function ll(t,e,r){1===t&amp;&amp;r.readMessage(cl,e)}function cl(t,e,r){if(3===t){var n=r.readMessage(ul,{}),i=n.width,a=n.height,o=n.left,s=n.top,l=n.advance;e.push({id:n.id,bitmap:new ho({width:i+6,height:a+6},n.bitmap),metrics:{width:i,height:a,left:o,top:s,advance:l}})}}function ul(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&amp;&amp;(e.advance=r.readVarint())}function fl(t){for(var e=0,r=0,n=0,i=t;n&lt;i.length;n+=1){var a=i[n];e+=a.w*a.h,r=Math.max(r,a.w)}t.sort((function(t,e){return e.h-t.h}));for(var o=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}],s=0,l=0,c=0,u=t;c&lt;u.length;c+=1)for(var f=u[c],h=o.length-1;h&gt;=0;h--){var p=o[h];if(!(f.w&gt;p.w||f.h&gt;p.h)){if(f.x=p.x,f.y=p.y,l=Math.max(l,f.y+f.h),s=Math.max(s,f.x+f.w),f.w===p.w&amp;&amp;f.h===p.h){var d=o.pop();h&lt;o.length&amp;&amp;(o[h]=d)}else f.h===p.h?(p.x+=f.w,p.w-=f.w):f.w===p.w?(p.y+=f.h,p.h-=f.h):(o.push({x:p.x+f.w,y:p.y,w:p.w-f.w,h:f.h}),p.y+=f.h,p.h-=f.h);break}}return{w:s,h:l,fill:e/(s*l)||0}}Gs.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos&lt;r;){var n=this.readVarint(),i=n&gt;&gt;3,a=this.pos;this.type=7&amp;n,t(i,e,this),this.pos===a&amp;&amp;this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=al(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=sl(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=al(this.buf,this.pos)+4294967296*al(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=al(this.buf,this.pos)+4294967296*sl(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=Vs(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Vs(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return e=127&amp;(r=n[this.pos++]),r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;7,r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;14,r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;21,r&lt;128?e:function(t,e,r){var n,i,a=r.buf;if(n=(112&amp;(i=a[r.pos++]))&gt;&gt;4,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;3,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;10,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;17,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;24,i&lt;128)return Xs(t,n,e);if(n|=(1&amp;(i=a[r.pos++]))&lt;&lt;31,i&lt;128)return Xs(t,n,e);throw new Error(&quot;Expected varint not more than 10 bytes&quot;)}(e|=(15&amp;(r=n[this.pos]))&lt;&lt;28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e&gt;=12&amp;&amp;Ys?function(t,e,r){return Ys.decode(t.subarray(e,r))}(this.buf,e,t):function(t,e,r){for(var n=&quot;&quot;,i=e;i&lt;r;){var a,o,s,l=t[i],c=null,u=l&gt;239?4:l&gt;223?3:l&gt;191?2:1;if(i+u&gt;r)break;1===u?l&lt;128&amp;&amp;(c=l):2===u?128==(192&amp;(a=t[i+1]))&amp;&amp;(c=(31&amp;l)&lt;&lt;6|63&amp;a)&lt;=127&amp;&amp;(c=null):3===u?(o=t[i+2],128==(192&amp;(a=t[i+1]))&amp;&amp;128==(192&amp;o)&amp;&amp;((c=(15&amp;l)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;o)&lt;=2047||c&gt;=55296&amp;&amp;c&lt;=57343)&amp;&amp;(c=null)):4===u&amp;&amp;(o=t[i+2],s=t[i+3],128==(192&amp;(a=t[i+1]))&amp;&amp;128==(192&amp;o)&amp;&amp;128==(192&amp;s)&amp;&amp;((c=(15&amp;l)&lt;&lt;18|(63&amp;a)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;s)&lt;=65535||c&gt;=1114112)&amp;&amp;(c=null)),null===c?(c=65533,u=1):c&gt;65535&amp;&amp;(c-=65536,n+=String.fromCharCode(c&gt;&gt;&gt;10&amp;1023|55296),c=56320|1023&amp;c),n+=String.fromCharCode(c),i+=u}return n}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Gs.Bytes)return t.push(this.readVarint(e));var r=Ws(this);for(t=t||[];this.pos&lt;r;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==Gs.Bytes)return t.push(this.readSVarint());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==Gs.Bytes)return t.push(this.readBoolean());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==Gs.Bytes)return t.push(this.readFloat());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==Gs.Bytes)return t.push(this.readDouble());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==Gs.Bytes)return t.push(this.readFixed32());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==Gs.Bytes)return t.push(this.readSFixed32());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==Gs.Bytes)return t.push(this.readFixed64());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==Gs.Bytes)return t.push(this.readSFixed64());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&amp;t;if(e===Gs.Varint)for(;this.buf[this.pos++]&gt;127;);else if(e===Gs.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Gs.Fixed32)this.pos+=4;else{if(e!==Gs.Fixed64)throw new Error(&quot;Unimplemented type: &quot;+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t&lt;&lt;3|e)},realloc:function(t){for(var e=this.length||16;e&lt;this.pos+t;)e*=2;if(e!==this.length){var r=new Uint8Array(e);r.set(this.buf),this.buf=r,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),ol(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),ol(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),ol(this.buf,-1&amp;t,this.pos),ol(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),ol(this.buf,-1&amp;t,this.pos),ol(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)&gt;268435455||t&lt;0?function(t,e){var r,n;if(t&gt;=0?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,n=n+1|0)),t&gt;=0x10000000000000000||t&lt;-0x10000000000000000)throw new Error(&quot;Given varint doesn't fit into 10 bytes&quot;);e.realloc(10),function(t,e,r){r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,r.buf[r.pos]=127&amp;(t&gt;&gt;&gt;=7)}(r,0,e),function(t,e){var r=(7&amp;t)&lt;&lt;4;e.buf[e.pos++]|=r|((t&gt;&gt;&gt;=3)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t)))))}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&amp;t|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=t&gt;&gt;&gt;7&amp;127))))},writeSVarint:function(t){this.writeVarint(t&lt;0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,r){for(var n,i,a=0;a&lt;e.length;a++){if((n=e.charCodeAt(a))&gt;55295&amp;&amp;n&lt;57344){if(!i){n&gt;56319||a+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n&lt;56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296&lt;&lt;10|n-56320|65536,i=null}else i&amp;&amp;(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n&lt;128?t[r++]=n:(n&lt;2048?t[r++]=n&gt;&gt;6|192:(n&lt;65536?t[r++]=n&gt;&gt;12|224:(t[r++]=n&gt;&gt;18|240,t[r++]=n&gt;&gt;12&amp;63|128),t[r++]=n&gt;&gt;6&amp;63|128),t[r++]=63&amp;n|128)}return r}(this.buf,t,this.pos);var r=this.pos-e;r&gt;=128&amp;&amp;Zs(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),qs(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),qs(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r&lt;e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var n=this.pos-r;n&gt;=128&amp;&amp;Zs(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,Gs.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,Js,e)},writePackedSVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,Ks,e)},writePackedBoolean:function(t,e){e.length&amp;&amp;this.writeMessage(t,tl,e)},writePackedFloat:function(t,e){e.length&amp;&amp;this.writeMessage(t,Qs,e)},writePackedDouble:function(t,e){e.length&amp;&amp;this.writeMessage(t,$s,e)},writePackedFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,el,e)},writePackedSFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,rl,e)},writePackedFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,nl,e)},writePackedSFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,il,e)},writeBytesField:function(t,e){this.writeTag(t,Gs.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Gs.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Gs.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Gs.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Gs.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Gs.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Gs.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Gs.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Gs.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Gs.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var hl=function(t,e){var r=e.pixelRatio,n=e.version,i=e.stretchX,a=e.stretchY,o=e.content;this.paddedRect=t,this.pixelRatio=r,this.stretchX=i,this.stretchY=a,this.content=o,this.version=n},pl={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};pl.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},pl.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},pl.tlbr.get=function(){return this.tl.concat(this.br)},pl.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(hl.prototype,pl);var dl=function(t,e){var r={},n={};this.haveRenderCallbacks=[];var i=[];this.addImages(t,r,i),this.addImages(e,n,i);var a=fl(i),o=new po({width:a.w||1,height:a.h||1});for(var s in t){var l=t[s],c=r[s].paddedRect;po.copy(l.data,o,{x:0,y:0},{x:c.x+1,y:c.y+1},l.data)}for(var u in e){var f=e[u],h=n[u].paddedRect,p=h.x+1,d=h.y+1,g=f.data.width,m=f.data.height;po.copy(f.data,o,{x:0,y:0},{x:p,y:d},f.data),po.copy(f.data,o,{x:0,y:m-1},{x:p,y:d-1},{width:g,height:1}),po.copy(f.data,o,{x:0,y:0},{x:p,y:d+m},{width:g,height:1}),po.copy(f.data,o,{x:g-1,y:0},{x:p-1,y:d},{width:1,height:m}),po.copy(f.data,o,{x:0,y:0},{x:p+g,y:d},{width:1,height:m})}this.image=o,this.iconPositions=r,this.patternPositions=n};dl.prototype.addImages=function(t,e,r){for(var n in t){var i=t[n],a={x:0,y:0,w:i.data.width+2,h:i.data.height+2};r.push(a),e[n]=new hl(a,i),i.hasRenderCallback&amp;&amp;this.haveRenderCallbacks.push(n)}},dl.prototype.patchUpdatedImages=function(t,e){for(var r in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[r],t.getImage(r),e),this.patchUpdatedImage(this.patternPositions[r],t.getImage(r),e)},dl.prototype.patchUpdatedImage=function(t,e,r){if(t&amp;&amp;e&amp;&amp;t.version!==e.version){t.version=e.version;var n=t.tl;r.update(e.data,void 0,{x:n[0],y:n[1]})}},Dn(&quot;ImagePosition&quot;,hl),Dn(&quot;ImageAtlas&quot;,dl);var gl={horizontal:1,vertical:2,horizontalOnly:3},ml=function(){this.scale=1,this.fontStack=&quot;&quot;,this.imageName=null};ml.forText=function(t,e){var r=new ml;return r.scale=t||1,r.fontStack=e,r},ml.forImage=function(t){var e=new ml;return e.imageName=t,e};var vl=function(){this.text=&quot;&quot;,this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function yl(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g){var m,v=vl.fromFeature(t,i);f===gl.vertical&amp;&amp;v.verticalizePunctuation();var y=ni.processBidirectionalText,x=ni.processStyledBidirectionalText;if(y&amp;&amp;1===v.sections.length){m=[];for(var b=0,_=y(v.toString(),Ml(v,c,a,e,n,p,d));b&lt;_.length;b+=1){var w=_[b],T=new vl;T.text=w,T.sections=v.sections;for(var k=0;k&lt;w.length;k++)T.sectionIndex.push(0);m.push(T)}}else if(x){m=[];for(var M=0,A=x(v.text,v.sectionIndex,Ml(v,c,a,e,n,p,d));M&lt;A.length;M+=1){var S=A[M],E=new vl;E.text=S[0],E.sectionIndex=S[1],E.sections=v.sections,m.push(E)}}else m=function(t,e){for(var r=[],n=t.text,i=0,a=0,o=e;a&lt;o.length;a+=1){var s=o[a];r.push(t.substring(i,s)),i=s}return i&lt;n.length&amp;&amp;r.push(t.substring(i,n.length)),r}(v,Ml(v,c,a,e,n,p,d));var C=[],L={positionedLines:C,text:v.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:f,iconsInText:!1,verticalizable:!1};return function(t,e,r,n,i,a,o,s,l,c,u,f){for(var h=0,p=-17,d=0,g=0,m=&quot;right&quot;===s?1:&quot;left&quot;===s?0:.5,v=0,y=0,x=i;y&lt;x.length;y+=1){var b=x[y];b.trim();var _=b.getMaxScale(),w=24*(_-1),T={positionedGlyphs:[],lineOffset:0};t.positionedLines[v]=T;var k=T.positionedGlyphs,M=0;if(b.length()){for(var A=0;A&lt;b.length();A++){var S=b.getSection(A),E=b.getSectionIndex(A),C=b.getCharCode(A),L=0,I=null,P=null,z=null,O=24,D=!(l===gl.horizontal||!u&amp;&amp;!Hn(C)||u&amp;&amp;(xl[C]||(H=C,Vn.Arabic(H)||Vn[&quot;Arabic Supplement&quot;](H)||Vn[&quot;Arabic Extended-A&quot;](H)||Vn[&quot;Arabic Presentation Forms-A&quot;](H)||Vn[&quot;Arabic Presentation Forms-B&quot;](H))));if(S.imageName){var R=n[S.imageName];if(!R)continue;z=S.imageName,t.iconsInText=t.iconsInText||!0,P=R.paddedRect;var F=R.displaySize;S.scale=24*S.scale/f,L=w+(24-F[1]*S.scale),O=(I={width:F[0],height:F[1],left:1,top:-3,advance:D?F[1]:F[0]}).advance;var B=D?F[0]*S.scale-24*_:F[1]*S.scale-24*_;B&gt;0&amp;&amp;B&gt;M&amp;&amp;(M=B)}else{var N=r[S.fontStack],j=N&amp;&amp;N[C];if(j&amp;&amp;j.rect)P=j.rect,I=j.metrics;else{var U=e[S.fontStack],V=U&amp;&amp;U[C];if(!V)continue;I=V.metrics}L=24*(_-S.scale)}D?(t.verticalizable=!0,k.push({glyph:C,imageName:z,x:h,y:p+L,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:I,rect:P}),h+=O*S.scale+c):(k.push({glyph:C,imageName:z,x:h,y:p+L,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:I,rect:P}),h+=I.advance*S.scale+c)}0!==k.length&amp;&amp;(d=Math.max(h-c,d),Sl(k,0,k.length-1,m,M)),h=0;var q=a*_+M;T.lineOffset=Math.max(M,w),p+=q,g=Math.max(q,g),++v}else p+=a,++v}var H,G=p- -17,Y=Al(o),W=Y.horizontalAlign,X=Y.verticalAlign;(function(t,e,r,n,i,a,o,s,l){var c,u=(e-r)*i;c=a!==o?-s*n- -17:(-n*l+.5)*o;for(var f=0,h=t;f&lt;h.length;f+=1)for(var p=0,d=h[f].positionedGlyphs;p&lt;d.length;p+=1){var g=d[p];g.x+=u,g.y+=c}})(t.positionedLines,m,W,X,d,g,a,G,i.length),t.top+=-X*G,t.bottom=t.top+G,t.left+=-W*d,t.right=t.left+d}(L,e,r,n,m,o,s,l,f,c,h,g),!function(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(0!==r[e].positionedGlyphs.length)return!1;return!0}(C)&amp;&amp;L}vl.fromFeature=function(t,e){for(var r=new vl,n=0;n&lt;t.sections.length;n++){var i=t.sections[n];i.image?r.addImageSection(i):r.addTextSection(i,e)}return r},vl.prototype.length=function(){return this.text.length},vl.prototype.getSection=function(t){return this.sections[this.sectionIndex[t]]},vl.prototype.getSectionIndex=function(t){return this.sectionIndex[t]},vl.prototype.getCharCode=function(t){return this.text.charCodeAt(t)},vl.prototype.verticalizePunctuation=function(){this.text=function(t){for(var e=&quot;&quot;,r=0;r&lt;t.length;r++){var n=t.charCodeAt(r+1)||null,i=t.charCodeAt(r-1)||null;e+=n&amp;&amp;Gn(n)&amp;&amp;!Us[t[r+1]]||i&amp;&amp;Gn(i)&amp;&amp;!Us[t[r-1]]||!Us[t[r]]?t[r]:Us[t[r]]}return e}(this.text)},vl.prototype.trim=function(){for(var t=0,e=0;e&lt;this.text.length&amp;&amp;xl[this.text.charCodeAt(e)];e++)t++;for(var r=this.text.length,n=this.text.length-1;n&gt;=0&amp;&amp;n&gt;=t&amp;&amp;xl[this.text.charCodeAt(n)];n--)r--;this.text=this.text.substring(t,r),this.sectionIndex=this.sectionIndex.slice(t,r)},vl.prototype.substring=function(t,e){var r=new vl;return r.text=this.text.substring(t,e),r.sectionIndex=this.sectionIndex.slice(t,e),r.sections=this.sections,r},vl.prototype.toString=function(){return this.text},vl.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,r){return Math.max(e,t.sections[r].scale)}),0)},vl.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(ml.forText(t.scale,t.fontStack||e));for(var r=this.sections.length-1,n=0;n&lt;t.text.length;++n)this.sectionIndex.push(r)},vl.prototype.addImageSection=function(t){var e=t.image?t.image.name:&quot;&quot;;if(0!==e.length){var r=this.getNextImageSectionCharCode();r?(this.text+=String.fromCharCode(r),this.sections.push(ml.forImage(e)),this.sectionIndex.push(this.sections.length-1)):_(&quot;Reached maximum number of images 6401&quot;)}else _(&quot;Can't add FormattedSection with an empty image.&quot;)},vl.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID&gt;=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var xl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},bl={};function _l(t,e,r,n,i,a){if(e.imageName){var o=n[e.imageName];return o?o.displaySize[0]*e.scale*24/a+i:0}var s=r[e.fontStack],l=s&amp;&amp;s[t];return l?l.metrics.advance*e.scale+i:0}function wl(t,e,r,n){var i=Math.pow(t-e,2);return n?t&lt;e?i/2:2*i:i+Math.abs(r)*r}function Tl(t,e,r){var n=0;return 10===t&amp;&amp;(n-=1e4),r&amp;&amp;(n+=150),40!==t&amp;&amp;65288!==t||(n+=50),41!==e&amp;&amp;65289!==e||(n+=50),n}function kl(t,e,r,n,i,a){for(var o=null,s=wl(e,r,i,a),l=0,c=n;l&lt;c.length;l+=1){var u=c[l],f=wl(e-u.x,r,i,a)+u.badness;f&lt;=s&amp;&amp;(o=u,s=f)}return{index:t,x:e,priorBreak:o,badness:s}}function Ml(t,e,r,n,i,a,o){if(&quot;point&quot;!==a)return[];if(!t)return[];for(var s,l=[],c=function(t,e,r,n,i,a){for(var o=0,s=0;s&lt;t.length();s++){var l=t.getSection(s);o+=_l(t.getCharCode(s),l,n,i,e,a)}return o/Math.max(1,Math.ceil(o/r))}(t,e,r,n,i,o),u=t.text.indexOf(&quot;\u200b&quot;)&gt;=0,f=0,h=0;h&lt;t.length();h++){var p=t.getSection(h),d=t.getCharCode(h);if(xl[d]||(f+=_l(d,p,n,i,e,o)),h&lt;t.length()-1){var g=!((s=d)&lt;11904||!(Vn[&quot;Bopomofo Extended&quot;](s)||Vn.Bopomofo(s)||Vn[&quot;CJK Compatibility Forms&quot;](s)||Vn[&quot;CJK Compatibility Ideographs&quot;](s)||Vn[&quot;CJK Compatibility&quot;](s)||Vn[&quot;CJK Radicals Supplement&quot;](s)||Vn[&quot;CJK Strokes&quot;](s)||Vn[&quot;CJK Symbols and Punctuation&quot;](s)||Vn[&quot;CJK Unified Ideographs Extension A&quot;](s)||Vn[&quot;CJK Unified Ideographs&quot;](s)||Vn[&quot;Enclosed CJK Letters and Months&quot;](s)||Vn[&quot;Halfwidth and Fullwidth Forms&quot;](s)||Vn.Hiragana(s)||Vn[&quot;Ideographic Description Characters&quot;](s)||Vn[&quot;Kangxi Radicals&quot;](s)||Vn[&quot;Katakana Phonetic Extensions&quot;](s)||Vn.Katakana(s)||Vn[&quot;Vertical Forms&quot;](s)||Vn[&quot;Yi Radicals&quot;](s)||Vn[&quot;Yi Syllables&quot;](s)));(bl[d]||g||p.imageName)&amp;&amp;l.push(kl(h+1,f,c,l,Tl(d,t.getCharCode(h+1),g&amp;&amp;u),!1))}}return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(kl(t.length(),f,c,l,0,!0))}function Al(t){var e=.5,r=.5;switch(t){case&quot;right&quot;:case&quot;top-right&quot;:case&quot;bottom-right&quot;:e=1;break;case&quot;left&quot;:case&quot;top-left&quot;:case&quot;bottom-left&quot;:e=0}switch(t){case&quot;bottom&quot;:case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:r=1;break;case&quot;top&quot;:case&quot;top-right&quot;:case&quot;top-left&quot;:r=0}return{horizontalAlign:e,verticalAlign:r}}function Sl(t,e,r,n,i){if(n||i)for(var a=t[r],o=(t[r].x+a.metrics.advance*a.scale)*n,s=e;s&lt;=r;s++)t[s].x-=o,t[s].y+=i}function El(t,e,r,n,i,a){var o,s=t.image;if(s.content){var l=s.content,c=s.pixelRatio||1;o=[l[0]/c,l[1]/c,s.displaySize[0]-l[2]/c,s.displaySize[1]-l[3]/c]}var u,f,h,p,d=e.left*a,g=e.right*a;&quot;width&quot;===r||&quot;both&quot;===r?(p=i[0]+d-n[3],f=i[0]+g+n[1]):f=(p=i[0]+(d+g-s.displaySize[0])/2)+s.displaySize[0];var m=e.top*a,v=e.bottom*a;return&quot;height&quot;===r||&quot;both&quot;===r?(u=i[1]+m-n[0],h=i[1]+v+n[2]):h=(u=i[1]+(m+v-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:u,right:f,bottom:h,left:p,collisionPadding:o}}bl[10]=!0,bl[32]=!0,bl[38]=!0,bl[40]=!0,bl[41]=!0,bl[43]=!0,bl[45]=!0,bl[47]=!0,bl[173]=!0,bl[183]=!0,bl[8203]=!0,bl[8208]=!0,bl[8211]=!0,bl[8231]=!0;var Cl=function(t){function e(e,r,n,i){t.call(this,e,r),this.angle=n,void 0!==i&amp;&amp;(this.segment=i)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.clone=function(){return new e(this.x,this.y,this.angle,this.segment)},e}(i);function Ll(t,e){var r=e.expression;if(&quot;constant&quot;===r.kind)return{kind:&quot;constant&quot;,layoutSize:r.evaluate(new ii(t+1))};if(&quot;source&quot;===r.kind)return{kind:&quot;source&quot;};for(var n=r.zoomStops,i=r.interpolationType,a=0;a&lt;n.length&amp;&amp;n[a]&lt;=t;)a++;for(var o=a=Math.max(0,a-1);o&lt;n.length&amp;&amp;n[o]&lt;t+1;)o++;o=Math.min(n.length-1,o);var s=n[a],l=n[o];return&quot;composite&quot;===r.kind?{kind:&quot;composite&quot;,minZoom:s,maxZoom:l,interpolationType:i}:{kind:&quot;camera&quot;,minZoom:s,maxZoom:l,minSize:r.evaluate(new ii(s)),maxSize:r.evaluate(new ii(l)),interpolationType:i}}function Il(t,e,r){var n=e.uSize,i=r.lowerSize;return&quot;source&quot;===t.kind?i/128:&quot;composite&quot;===t.kind?Ue(i/128,r.upperSize/128,e.uSizeT):n}function Pl(t,e){var r=0,n=0;if(&quot;constant&quot;===t.kind)n=t.layoutSize;else if(&quot;source&quot;!==t.kind){var i=t.interpolationType,a=i?l(rr.interpolationFactor(i,e,t.minZoom,t.maxZoom),0,1):0;&quot;camera&quot;===t.kind?n=Ue(t.minSize,t.maxSize,a):r=a}return{uSizeT:r,uSize:n}}Dn(&quot;Anchor&quot;,Cl);var zl=Object.freeze({__proto__:null,getSizeData:Ll,evaluateSizeForFeature:Il,evaluateSizeForZoom:Pl,SIZE_PACK_FACTOR:128});function Ol(t,e,r,n,i){if(void 0===e.segment)return!0;for(var a=e,o=e.segment+1,s=0;s&gt;-r/2;){if(--o&lt;0)return!1;s-=t[o].dist(a),a=t[o]}s+=t[o].dist(t[o+1]),o++;for(var l=[],c=0;s&lt;r/2;){var u=t[o],f=t[o+1];if(!f)return!1;var h=t[o-1].angleTo(u)-u.angleTo(f);for(h=Math.abs((h+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:h}),c+=h;s-l[0].distance&gt;n;)c-=l.shift().angleDelta;if(c&gt;i)return!1;o++,s+=u.dist(f)}return!0}function Dl(t){for(var e=0,r=0;r&lt;t.length-1;r++)e+=t[r].dist(t[r+1]);return e}function Rl(t,e,r){return t?.6*e*r:0}function Fl(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function Bl(t,e,r,n,i,a){for(var o=Rl(r,i,a),s=Fl(r,n)*a,l=0,c=Dl(t)/2,u=0;u&lt;t.length-1;u++){var f=t[u],h=t[u+1],p=f.dist(h);if(l+p&gt;c){var d=(c-l)/p,g=Ue(f.x,h.x,d),m=Ue(f.y,h.y,d),v=new Cl(g,m,h.angleTo(f),u);return v._round(),!o||Ol(t,v,s,o,e)?v:void 0}l+=p}}function Nl(t,e,r,n,i,a,o,s,l){var c=Rl(n,a,o),u=Fl(n,i),f=u*o,h=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-f&lt;e/4&amp;&amp;(e=f+e/4),function t(e,r,n,i,a,o,s,l,c){for(var u=o/2,f=Dl(e),h=0,p=r-n,d=[],g=0;g&lt;e.length-1;g++){for(var m=e[g],v=e[g+1],y=m.dist(v),x=v.angleTo(m);p+n&lt;h+y;){var b=((p+=n)-h)/y,_=Ue(m.x,v.x,b),w=Ue(m.y,v.y,b);if(_&gt;=0&amp;&amp;_&lt;c&amp;&amp;w&gt;=0&amp;&amp;w&lt;c&amp;&amp;p-u&gt;=0&amp;&amp;p+u&lt;=f){var T=new Cl(_,w,x,g);T._round(),i&amp;&amp;!Ol(e,T,o,i,a)||d.push(T)}}h+=y}return l||d.length||s||(d=t(e,h/2,n,i,a,o,s,!0,c)),d}(t,h?e/2*s%e:(u/2+2*a)*o*s%e,e,c,r,f,h,!1,l)}function jl(t,e,r,n,a){for(var o=[],s=0;s&lt;t.length;s++)for(var l=t[s],c=void 0,u=0;u&lt;l.length-1;u++){var f=l[u],h=l[u+1];f.x&lt;e&amp;&amp;h.x&lt;e||(f.x&lt;e?f=new i(e,f.y+(e-f.x)/(h.x-f.x)*(h.y-f.y))._round():h.x&lt;e&amp;&amp;(h=new i(e,f.y+(e-f.x)/(h.x-f.x)*(h.y-f.y))._round()),f.y&lt;r&amp;&amp;h.y&lt;r||(f.y&lt;r?f=new i(f.x+(r-f.y)/(h.y-f.y)*(h.x-f.x),r)._round():h.y&lt;r&amp;&amp;(h=new i(f.x+(r-f.y)/(h.y-f.y)*(h.x-f.x),r)._round()),f.x&gt;=n&amp;&amp;h.x&gt;=n||(f.x&gt;=n?f=new i(n,f.y+(n-f.x)/(h.x-f.x)*(h.y-f.y))._round():h.x&gt;=n&amp;&amp;(h=new i(n,f.y+(n-f.x)/(h.x-f.x)*(h.y-f.y))._round()),f.y&gt;=a&amp;&amp;h.y&gt;=a||(f.y&gt;=a?f=new i(f.x+(a-f.y)/(h.y-f.y)*(h.x-f.x),a)._round():h.y&gt;=a&amp;&amp;(h=new i(f.x+(a-f.y)/(h.y-f.y)*(h.x-f.x),a)._round()),c&amp;&amp;f.equals(c[c.length-1])||o.push(c=[f]),c.push(h)))))}return o}function Ul(t,e,r,n){var a=[],o=t.image,s=o.pixelRatio,l=o.paddedRect.w-2,c=o.paddedRect.h-2,u=t.right-t.left,f=t.bottom-t.top,h=o.stretchX||[[0,l]],p=o.stretchY||[[0,c]],d=function(t,e){return t+e[1]-e[0]},g=h.reduce(d,0),m=p.reduce(d,0),v=l-g,y=c-m,x=0,b=g,_=0,w=m,T=0,k=v,M=0,A=y;if(o.content&amp;&amp;n){var S=o.content;x=Vl(h,0,S[0]),_=Vl(p,0,S[1]),b=Vl(h,S[0],S[2]),w=Vl(p,S[1],S[3]),T=S[0]-x,M=S[1]-_,k=S[2]-S[0]-b,A=S[3]-S[1]-w}var E=function(n,a,l,c){var h=Hl(n.stretch-x,b,u,t.left),p=Gl(n.fixed-T,k,n.stretch,g),d=Hl(a.stretch-_,w,f,t.top),v=Gl(a.fixed-M,A,a.stretch,m),y=Hl(l.stretch-x,b,u,t.left),S=Gl(l.fixed-T,k,l.stretch,g),E=Hl(c.stretch-_,w,f,t.top),C=Gl(c.fixed-M,A,c.stretch,m),L=new i(h,d),I=new i(y,d),P=new i(y,E),z=new i(h,E),O=new i(p/s,v/s),D=new i(S/s,C/s),R=e*Math.PI/180;if(R){var F=Math.sin(R),B=Math.cos(R),N=[B,-F,F,B];L._matMult(N),I._matMult(N),z._matMult(N),P._matMult(N)}var j=n.stretch+n.fixed,U=a.stretch+a.fixed;return{tl:L,tr:I,bl:z,br:P,tex:{x:o.paddedRect.x+1+j,y:o.paddedRect.y+1+U,w:l.stretch+l.fixed-j,h:c.stretch+c.fixed-U},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:O,pixelOffsetBR:D,minFontScaleX:k/s/u,minFontScaleY:A/s/f,isSDF:r}};if(n&amp;&amp;(o.stretchX||o.stretchY))for(var C=ql(h,v,g),L=ql(p,y,m),I=0;I&lt;C.length-1;I++)for(var P=C[I],z=C[I+1],O=0;O&lt;L.length-1;O++)a.push(E(P,L[O],z,L[O+1]));else a.push(E({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return a}function Vl(t,e,r){for(var n=0,i=0,a=t;i&lt;a.length;i+=1){var o=a[i];n+=Math.max(e,Math.min(r,o[1]))-Math.max(e,Math.min(r,o[0]))}return n}function ql(t,e,r){for(var n=[{fixed:-1,stretch:0}],i=0,a=t;i&lt;a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=n[n.length-1];n.push({fixed:s-c.stretch,stretch:c.stretch}),n.push({fixed:s-c.stretch,stretch:c.stretch+(l-s)})}return n.push({fixed:e+1,stretch:r}),n}function Hl(t,e,r,n){return t/e*r+n}function Gl(t,e,r,n){return t-e*r/n}var Yl=function(t,e,r,n,a,o,s,l,c,u){if(this.boxStartIndex=t.length,c){var f=o.top,h=o.bottom,p=o.collisionPadding;p&amp;&amp;(f-=p[1],h+=p[3]);var d=h-f;d&gt;0&amp;&amp;(d=Math.max(10,d),this.circleDiameter=d)}else{var g=o.top*s-l,m=o.bottom*s+l,v=o.left*s-l,y=o.right*s+l,x=o.collisionPadding;if(x&amp;&amp;(v-=x[0]*s,g-=x[1]*s,y+=x[2]*s,m+=x[3]*s),u){var b=new i(v,g),_=new i(y,g),w=new i(v,m),T=new i(y,m),k=u*Math.PI/180;b._rotate(k),_._rotate(k),w._rotate(k),T._rotate(k),v=Math.min(b.x,_.x,w.x,T.x),y=Math.max(b.x,_.x,w.x,T.x),g=Math.min(b.y,_.y,w.y,T.y),m=Math.max(b.y,_.y,w.y,T.y)}t.emplaceBack(e.x,e.y,v,g,y,m,r,n,a)}this.boxEndIndex=t.length},Wl=function(t,e){if(void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e=Xl),this.data=t,this.length=this.data.length,this.compare=e,this.length&gt;0)for(var r=(this.length&gt;&gt;1)-1;r&gt;=0;r--)this._down(r)};function Xl(t,e){return t&lt;e?-1:t&gt;e?1:0}function Zl(t,e,r){void 0===e&amp;&amp;(e=1),void 0===r&amp;&amp;(r=!1);for(var n=1/0,a=1/0,o=-1/0,s=-1/0,l=t[0],c=0;c&lt;l.length;c++){var u=l[c];(!c||u.x&lt;n)&amp;&amp;(n=u.x),(!c||u.y&lt;a)&amp;&amp;(a=u.y),(!c||u.x&gt;o)&amp;&amp;(o=u.x),(!c||u.y&gt;s)&amp;&amp;(s=u.y)}var f=Math.min(o-n,s-a),h=f/2,p=new Wl([],Jl);if(0===f)return new i(n,a);for(var d=n;d&lt;o;d+=f)for(var g=a;g&lt;s;g+=f)p.push(new Kl(d+h,g+h,h,t));for(var m=function(t){for(var e=0,r=0,n=0,i=t[0],a=0,o=i.length,s=o-1;a&lt;o;s=a++){var l=i[a],c=i[s],u=l.x*c.y-c.x*l.y;r+=(l.x+c.x)*u,n+=(l.y+c.y)*u,e+=3*u}return new Kl(r/e,n/e,0,t)}(t),v=p.length;p.length;){var y=p.pop();(y.d&gt;m.d||!m.d)&amp;&amp;(m=y,r&amp;&amp;console.log(&quot;found best %d after %d probes&quot;,Math.round(1e4*y.d)/1e4,v)),y.max-m.d&lt;=e||(p.push(new Kl(y.p.x-(h=y.h/2),y.p.y-h,h,t)),p.push(new Kl(y.p.x+h,y.p.y-h,h,t)),p.push(new Kl(y.p.x-h,y.p.y+h,h,t)),p.push(new Kl(y.p.x+h,y.p.y+h,h,t)),v+=4)}return r&amp;&amp;(console.log(&quot;num probes: &quot;+v),console.log(&quot;best distance: &quot;+m.d)),m.p}function Jl(t,e){return e.max-t.max}function Kl(t,e,r,n){this.p=new i(t,e),this.h=r,this.d=function(t,e){for(var r=!1,n=1/0,i=0;i&lt;e.length;i++)for(var a=e[i],o=0,s=a.length,l=s-1;o&lt;s;l=o++){var c=a[o],u=a[l];c.y&gt;t.y!=u.y&gt;t.y&amp;&amp;t.x&lt;(u.x-c.x)*(t.y-c.y)/(u.y-c.y)+c.x&amp;&amp;(r=!r),n=Math.min(n,Ga(t,c,u))}return(r?1:-1)*Math.sqrt(n)}(this.p,n),this.max=this.d+this.h*Math.SQRT2}Wl.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},Wl.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length&gt;0&amp;&amp;(this.data[0]=e,this._down(0)),t}},Wl.prototype.peek=function(){return this.data[0]},Wl.prototype._up=function(t){for(var e=this.data,r=this.compare,n=e[t];t&gt;0;){var i=t-1&gt;&gt;1,a=e[i];if(r(n,a)&gt;=0)break;e[t]=a,t=i}e[t]=n},Wl.prototype._down=function(t){for(var e=this.data,r=this.compare,n=this.length&gt;&gt;1,i=e[t];t&lt;n;){var a=1+(t&lt;&lt;1),o=e[a],s=a+1;if(s&lt;this.length&amp;&amp;r(e[s],o)&lt;0&amp;&amp;(a=s,o=e[s]),r(o,i)&gt;=0)break;e[t]=o,t=a}e[t]=i};var Ql=Number.POSITIVE_INFINITY;function $l(t,e){return e[1]!==Ql?function(t,e,r){var n=0,i=0;switch(e=Math.abs(e),r=Math.abs(r),t){case&quot;top-right&quot;:case&quot;top-left&quot;:case&quot;top&quot;:i=r-7;break;case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:case&quot;bottom&quot;:i=7-r}switch(t){case&quot;top-right&quot;:case&quot;bottom-right&quot;:case&quot;right&quot;:n=-e;break;case&quot;top-left&quot;:case&quot;bottom-left&quot;:case&quot;left&quot;:n=e}return[n,i]}(t,e[0],e[1]):function(t,e){var r=0,n=0;e&lt;0&amp;&amp;(e=0);var i=e/Math.sqrt(2);switch(t){case&quot;top-right&quot;:case&quot;top-left&quot;:n=i-7;break;case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:n=7-i;break;case&quot;bottom&quot;:n=7-e;break;case&quot;top&quot;:n=e-7}switch(t){case&quot;top-right&quot;:case&quot;bottom-right&quot;:r=-i;break;case&quot;top-left&quot;:case&quot;bottom-left&quot;:r=i;break;case&quot;left&quot;:r=e;break;case&quot;right&quot;:r=-e}return[r,n]}(t,e[0])}function tc(t){switch(t){case&quot;right&quot;:case&quot;top-right&quot;:case&quot;bottom-right&quot;:return&quot;right&quot;;case&quot;left&quot;:case&quot;top-left&quot;:case&quot;bottom-left&quot;:return&quot;left&quot;}return&quot;center&quot;}function ec(t,e,r,n,a,o,s,l,c,u,f,h,p,d,g){var m=function(t,e,r,n,a,o,s,l){for(var c=n.layout.get(&quot;text-rotate&quot;).evaluate(o,{})*Math.PI/180,u=[],f=0,h=e.positionedLines;f&lt;h.length;f+=1)for(var p=h[f],d=0,g=p.positionedGlyphs;d&lt;g.length;d+=1){var m=g[d];if(m.rect){var v=m.rect||{},y=4,x=!0,b=1,_=0,w=(a||l)&amp;&amp;m.vertical,T=m.metrics.advance*m.scale/2;if(l&amp;&amp;e.verticalizable&amp;&amp;(_=p.lineOffset/2-(m.imageName?-(24-m.metrics.width*m.scale)/2:24*(m.scale-1))),m.imageName){var k=s[m.imageName];x=k.sdf,y=1/(b=k.pixelRatio)}var M=a?[m.x+T,m.y]:[0,0],A=a?[0,0]:[m.x+T+r[0],m.y+r[1]-_],S=[0,0];w&amp;&amp;(S=A,A=[0,0]);var E=(m.metrics.left-y)*m.scale-T+A[0],C=(-m.metrics.top-y)*m.scale+A[1],L=E+v.w*m.scale/b,I=C+v.h*m.scale/b,P=new i(E,C),z=new i(L,C),O=new i(E,I),D=new i(L,I);if(w){var R=new i(-T,T- -17),F=-Math.PI/2,B=12-T,N=new i(22-B,-(m.imageName?B:0)),j=new(Function.prototype.bind.apply(i,[null].concat(S)));P._rotateAround(F,R)._add(N)._add(j),z._rotateAround(F,R)._add(N)._add(j),O._rotateAround(F,R)._add(N)._add(j),D._rotateAround(F,R)._add(N)._add(j)}if(c){var U=Math.sin(c),V=Math.cos(c),q=[V,-U,U,V];P._matMult(q),z._matMult(q),O._matMult(q),D._matMult(q)}var H=new i(0,0),G=new i(0,0);u.push({tl:P,tr:z,bl:O,br:D,tex:v,writingMode:e.writingMode,glyphOffset:M,sectionIndex:m.sectionIndex,isSDF:x,pixelOffsetTL:H,pixelOffsetBR:G,minFontScaleX:0,minFontScaleY:0})}}return u}(0,r,l,a,o,s,n,t.allowVerticalPlacement),v=t.textSizeData,y=null;&quot;source&quot;===v.kind?(y=[128*a.layout.get(&quot;text-size&quot;).evaluate(s,{})])[0]&gt;32640&amp;&amp;_(t.layerIds[0]+': Value for &quot;text-size&quot; is &gt;= 255. Reduce your &quot;text-size&quot;.'):&quot;composite&quot;===v.kind&amp;&amp;((y=[128*d.compositeTextSizes[0].evaluate(s,{},g),128*d.compositeTextSizes[1].evaluate(s,{},g)])[0]&gt;32640||y[1]&gt;32640)&amp;&amp;_(t.layerIds[0]+': Value for &quot;text-size&quot; is &gt;= 255. Reduce your &quot;text-size&quot;.'),t.addSymbols(t.text,m,y,l,o,s,u,e,c.lineStartIndex,c.lineLength,p,g);for(var x=0,b=f;x&lt;b.length;x+=1)h[b[x]]=t.text.placedSymbolArray.length-1;return 4*m.length}function rc(t){for(var e in t)return t[e];return null}function nc(t,e,r,n){var i=t.compareText;if(e in i){for(var a=i[e],o=a.length-1;o&gt;=0;o--)if(n.dist(a[o])&lt;r)return!0}else i[e]=[];return i[e].push(n),!1}var ic=gs.VectorTileFeature.types,ac=[{name:&quot;a_fade_opacity&quot;,components:1,type:&quot;Uint8&quot;,offset:0}];function oc(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=s?Math.min(32640,Math.round(s[0])):0,d=s?Math.min(32640,Math.round(s[1])):0;t.emplaceBack(e,r,Math.round(32*n),Math.round(32*i),a,o,(p&lt;&lt;1)+(l?1:0),d,16*c,16*u,256*f,256*h)}function sc(t,e,r){t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r)}function lc(t){for(var e=0,r=t.sections;e&lt;r.length;e+=1)if(Xn(r[e].text))return!0;return!1}var cc=function(t){this.layoutVertexArray=new Li,this.indexArray=new Fi,this.programConfigurations=t,this.segments=new ia,this.dynamicLayoutVertexArray=new Ii,this.opacityVertexArray=new Pi,this.placedSymbolArray=new Ji};cc.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&amp;&amp;0===this.indexArray.length&amp;&amp;0===this.dynamicLayoutVertexArray.length&amp;&amp;0===this.opacityVertexArray.length},cc.prototype.upload=function(t,e,r,n){this.isEmpty()||(r&amp;&amp;(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ds.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,Rs.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,ac,!0),this.opacityVertexBuffer.itemSize=1),(r||n)&amp;&amp;this.programConfigurations.upload(t))},cc.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},Dn(&quot;SymbolBuffers&quot;,cc);var uc=function(t,e,r){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new r,this.segments=new ia,this.collisionVertexArray=new Ri};uc.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,Fs.members,!0)},uc.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},Dn(&quot;CollisionBuffers&quot;,uc);var fc=function(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=eo([]),this.placementViewportMatrix=eo([]);var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Ll(this.zoom,e[&quot;text-size&quot;]),this.iconSizeData=Ll(this.zoom,e[&quot;icon-size&quot;]);var r=this.layers[0].layout,n=r.get(&quot;symbol-sort-key&quot;),i=r.get(&quot;symbol-z-order&quot;);this.sortFeaturesByKey=&quot;viewport-y&quot;!==i&amp;&amp;void 0!==n.constantOr(1),this.sortFeaturesByY=(&quot;viewport-y&quot;===i||&quot;auto&quot;===i&amp;&amp;!this.sortFeaturesByKey)&amp;&amp;(r.get(&quot;text-allow-overlap&quot;)||r.get(&quot;icon-allow-overlap&quot;)||r.get(&quot;text-ignore-placement&quot;)||r.get(&quot;icon-ignore-placement&quot;)),&quot;point&quot;===r.get(&quot;symbol-placement&quot;)&amp;&amp;(this.writingModes=r.get(&quot;text-writing-mode&quot;).map((function(t){return gl[t]}))),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id})),this.sourceID=t.sourceID};fc.prototype.createArrays=function(){this.text=new cc(new Ia(Ds.members,this.layers,this.zoom,(function(t){return/^text/.test(t)}))),this.icon=new cc(new Ia(Ds.members,this.layers,this.zoom,(function(t){return/^icon/.test(t)}))),this.glyphOffsetArray=new $i,this.lineVertexArray=new ta,this.symbolInstances=new Qi},fc.prototype.calculateGlyphDependencies=function(t,e,r,n,i){for(var a=0;a&lt;t.length;a++)if(e[t.charCodeAt(a)]=!0,(r||n)&amp;&amp;i){var o=Us[t.charAt(a)];o&amp;&amp;(e[o.charCodeAt(0)]=!0)}},fc.prototype.populate=function(t,e,r){var n=this.layers[0],i=n.layout,a=i.get(&quot;text-font&quot;),o=i.get(&quot;text-field&quot;),s=i.get(&quot;icon-image&quot;),l=(&quot;constant&quot;!==o.value.kind||o.value.value instanceof te&amp;&amp;!o.value.value.isEmpty()||o.value.value.toString().length&gt;0)&amp;&amp;(&quot;constant&quot;!==a.value.kind||a.value.value.length&gt;0),c=&quot;constant&quot;!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length&gt;0,u=i.get(&quot;symbol-sort-key&quot;);if(this.features=[],l||c){for(var f=e.iconDependencies,h=e.glyphDependencies,p=e.availableImages,d=new ii(this.zoom),g=0,m=t;g&lt;m.length;g+=1){var v=m[g],y=v.feature,x=v.id,b=v.index,_=v.sourceLayerIndex,w=n._featureFilter.needGeometry,T={type:y.type,id:x,properties:y.properties,geometry:w?Da(y):[]};if(n._featureFilter.filter(d,T,r)){w||(T.geometry=Da(y));var k=void 0;if(l){var M=n.getValueAndResolveTokens(&quot;text-field&quot;,T,r,p),A=te.factory(M);lc(A)&amp;&amp;(this.hasRTLText=!0),(!this.hasRTLText||&quot;unavailable&quot;===ei()||this.hasRTLText&amp;&amp;ni.isParsed())&amp;&amp;(k=js(A,n,T))}var S=void 0;if(c){var E=n.getValueAndResolveTokens(&quot;icon-image&quot;,T,r,p);S=E instanceof ee?E:ee.fromString(E)}if(k||S){var C=this.sortFeaturesByKey?u.evaluate(T,{},r):void 0,L={id:x,text:k,icon:S,index:b,sourceLayerIndex:_,geometry:Da(y),properties:y.properties,type:ic[y.type],sortKey:C};if(this.features.push(L),S&amp;&amp;(f[S.name]=!0),k){var I=a.evaluate(T,{},r).join(&quot;,&quot;),P=&quot;map&quot;===i.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==i.get(&quot;symbol-placement&quot;);this.allowVerticalPlacement=this.writingModes&amp;&amp;this.writingModes.indexOf(gl.vertical)&gt;=0;for(var z=0,O=k.sections;z&lt;O.length;z+=1){var D=O[z];if(D.image)f[D.image.name]=!0;else{var R=qn(k.toString()),F=D.fontStack||I,B=h[F]=h[F]||{};this.calculateGlyphDependencies(D.text,B,P,this.allowVerticalPlacement,R)}}}}}}&quot;line&quot;===i.get(&quot;symbol-placement&quot;)&amp;&amp;(this.features=function(t){var e={},r={},n=[],i=0;function a(e){n.push(t[e]),i++}function o(t,e,i){var a=r[t];return delete r[t],r[e]=a,n[a].geometry[0].pop(),n[a].geometry[0]=n[a].geometry[0].concat(i[0]),a}function s(t,r,i){var a=e[r];return delete e[r],e[t]=a,n[a].geometry[0].shift(),n[a].geometry[0]=i[0].concat(n[a].geometry[0]),a}function l(t,e,r){var n=r?e[0][e[0].length-1]:e[0][0];return t+&quot;:&quot;+n.x+&quot;:&quot;+n.y}for(var c=0;c&lt;t.length;c++){var u=t[c],f=u.geometry,h=u.text?u.text.toString():null;if(h){var p=l(h,f),d=l(h,f,!0);if(p in r&amp;&amp;d in e&amp;&amp;r[p]!==e[d]){var g=s(p,d,f),m=o(p,d,n[g].geometry);delete e[p],delete r[d],r[l(h,n[m].geometry,!0)]=m,n[g].geometry=null}else p in r?o(p,d,f):d in e?s(p,d,f):(a(c),e[p]=i-1,r[d]=i-1)}else a(c)}return n.filter((function(t){return t.geometry}))}(this.features)),this.sortFeaturesByKey&amp;&amp;this.features.sort((function(t,e){return t.sortKey-e.sortKey}))}},fc.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,r),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,r))},fc.prototype.isEmpty=function(){return 0===this.symbolInstances.length&amp;&amp;!this.hasRTLText},fc.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},fc.prototype.upload=function(t){!this.uploaded&amp;&amp;this.hasDebugData()&amp;&amp;(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},fc.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},fc.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&amp;&amp;this.destroyDebugData()},fc.prototype.addToLineVertexArray=function(t,e){var r=this.lineVertexArray.length;if(void 0!==t.segment){for(var n=t.dist(e[t.segment+1]),i=t.dist(e[t.segment]),a={},o=t.segment+1;o&lt;e.length;o++)a[o]={x:e[o].x,y:e[o].y,tileUnitDistanceFromAnchor:n},o&lt;e.length-1&amp;&amp;(n+=e[o+1].dist(e[o]));for(var s=t.segment||0;s&gt;=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s&gt;0&amp;&amp;(i+=e[s-1].dist(e[s]));for(var l=0;l&lt;e.length;l++){var c=a[l];this.lineVertexArray.emplaceBack(c.x,c.y,c.tileUnitDistanceFromAnchor)}}return{lineStartIndex:r,lineLength:this.lineVertexArray.length-r}},fc.prototype.addSymbols=function(t,e,r,n,i,a,o,s,l,c,u,f){for(var h=t.indexArray,p=t.layoutVertexArray,d=t.segments.prepareSegment(4*e.length,p,h,a.sortKey),g=this.glyphOffsetArray.length,m=d.vertexLength,v=this.allowVerticalPlacement&amp;&amp;o===gl.vertical?Math.PI/2:0,y=a.text&amp;&amp;a.text.sections,x=0;x&lt;e.length;x++){var b=e[x],_=b.tl,w=b.tr,T=b.bl,k=b.br,M=b.tex,A=b.pixelOffsetTL,S=b.pixelOffsetBR,E=b.minFontScaleX,C=b.minFontScaleY,L=b.glyphOffset,I=b.isSDF,P=b.sectionIndex,z=d.vertexLength,O=L[1];oc(p,s.x,s.y,_.x,O+_.y,M.x,M.y,r,I,A.x,A.y,E,C),oc(p,s.x,s.y,w.x,O+w.y,M.x+M.w,M.y,r,I,S.x,A.y,E,C),oc(p,s.x,s.y,T.x,O+T.y,M.x,M.y+M.h,r,I,A.x,S.y,E,C),oc(p,s.x,s.y,k.x,O+k.y,M.x+M.w,M.y+M.h,r,I,S.x,S.y,E,C),sc(t.dynamicLayoutVertexArray,s,v),h.emplaceBack(z,z+1,z+2),h.emplaceBack(z+1,z+2,z+3),d.vertexLength+=4,d.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(L[0]),x!==e.length-1&amp;&amp;P===e[x+1].sectionIndex||t.programConfigurations.populatePaintArrays(p.length,a,a.index,{},f,y&amp;&amp;y[P])}t.placedSymbolArray.emplaceBack(s.x,s.y,g,this.glyphOffsetArray.length-g,m,l,c,s.segment,r?r[0]:0,r?r[1]:0,n[0],n[1],o,0,!1,0,u)},fc.prototype._addCollisionDebugVertex=function(t,e,r,n,i,a){return e.emplaceBack(0,0),t.emplaceBack(r.x,r.y,n,i,Math.round(a.x),Math.round(a.y))},fc.prototype.addCollisionDebugVertices=function(t,e,r,n,a,o,s){var l=a.segments.prepareSegment(4,a.layoutVertexArray,a.indexArray),c=l.vertexLength,u=a.layoutVertexArray,f=a.collisionVertexArray,h=s.anchorX,p=s.anchorY;this._addCollisionDebugVertex(u,f,o,h,p,new i(t,e)),this._addCollisionDebugVertex(u,f,o,h,p,new i(r,e)),this._addCollisionDebugVertex(u,f,o,h,p,new i(r,n)),this._addCollisionDebugVertex(u,f,o,h,p,new i(t,n)),l.vertexLength+=4;var d=a.indexArray;d.emplaceBack(c,c+1),d.emplaceBack(c+1,c+2),d.emplaceBack(c+2,c+3),d.emplaceBack(c+3,c),l.primitiveLength+=4},fc.prototype.addDebugCollisionBoxes=function(t,e,r,n){for(var i=t;i&lt;e;i++){var a=this.collisionBoxArray.get(i);this.addCollisionDebugVertices(a.x1,a.y1,a.x2,a.y2,n?this.textCollisionBox:this.iconCollisionBox,a.anchorPoint,r)}},fc.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&amp;&amp;this.destroyDebugData(),this.textCollisionBox=new uc(Oi,Bs.members,qi),this.iconCollisionBox=new uc(Oi,Bs.members,qi);for(var t=0;t&lt;this.symbolInstances.length;t++){var e=this.symbolInstances.get(t);this.addDebugCollisionBoxes(e.textBoxStartIndex,e.textBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.verticalTextBoxStartIndex,e.verticalTextBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.iconBoxStartIndex,e.iconBoxEndIndex,e,!1),this.addDebugCollisionBoxes(e.verticalIconBoxStartIndex,e.verticalIconBoxEndIndex,e,!1)}},fc.prototype._deserializeCollisionBoxesForSymbol=function(t,e,r,n,i,a,o,s,l){for(var c={},u=e;u&lt;r;u++){var f=t.get(u);c.textBox={x1:f.x1,y1:f.y1,x2:f.x2,y2:f.y2,anchorPointX:f.anchorPointX,anchorPointY:f.anchorPointY},c.textFeatureIndex=f.featureIndex;break}for(var h=n;h&lt;i;h++){var p=t.get(h);c.verticalTextBox={x1:p.x1,y1:p.y1,x2:p.x2,y2:p.y2,anchorPointX:p.anchorPointX,anchorPointY:p.anchorPointY},c.verticalTextFeatureIndex=p.featureIndex;break}for(var d=a;d&lt;o;d++){var g=t.get(d);c.iconBox={x1:g.x1,y1:g.y1,x2:g.x2,y2:g.y2,anchorPointX:g.anchorPointX,anchorPointY:g.anchorPointY},c.iconFeatureIndex=g.featureIndex;break}for(var m=s;m&lt;l;m++){var v=t.get(m);c.verticalIconBox={x1:v.x1,y1:v.y1,x2:v.x2,y2:v.y2,anchorPointX:v.anchorPointX,anchorPointY:v.anchorPointY},c.verticalIconFeatureIndex=v.featureIndex;break}return c},fc.prototype.deserializeCollisionBoxes=function(t){this.collisionArrays=[];for(var e=0;e&lt;this.symbolInstances.length;e++){var r=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,r.textBoxStartIndex,r.textBoxEndIndex,r.verticalTextBoxStartIndex,r.verticalTextBoxEndIndex,r.iconBoxStartIndex,r.iconBoxEndIndex,r.verticalIconBoxStartIndex,r.verticalIconBoxEndIndex))}},fc.prototype.hasTextData=function(){return this.text.segments.get().length&gt;0},fc.prototype.hasIconData=function(){return this.icon.segments.get().length&gt;0},fc.prototype.hasDebugData=function(){return this.textCollisionBox&amp;&amp;this.iconCollisionBox},fc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&amp;&amp;this.textCollisionBox.segments.get().length&gt;0},fc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&amp;&amp;this.iconCollisionBox.segments.get().length&gt;0},fc.prototype.addIndicesForPlacedSymbol=function(t,e){for(var r=t.placedSymbolArray.get(e),n=r.vertexStartIndex+4*r.numGlyphs,i=r.vertexStartIndex;i&lt;n;i+=4)t.indexArray.emplaceBack(i,i+1,i+2),t.indexArray.emplaceBack(i+1,i+2,i+3)},fc.prototype.getSortedSymbolIndexes=function(t){if(this.sortedAngle===t&amp;&amp;void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var e=Math.sin(t),r=Math.cos(t),n=[],i=[],a=[],o=0;o&lt;this.symbolInstances.length;++o){a.push(o);var s=this.symbolInstances.get(o);n.push(0|Math.round(e*s.anchorX+r*s.anchorY)),i.push(s.featureIndex)}return a.sort((function(t,e){return n[t]-n[e]||i[e]-i[t]})),a},fc.prototype.addToSortKeyRanges=function(t,e){var r=this.sortKeyRanges[this.sortKeyRanges.length-1];r&amp;&amp;r.sortKey===e?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})},fc.prototype.sortFeatures=function(t){var e=this;if(this.sortFeaturesByY&amp;&amp;this.sortedAngle!==t&amp;&amp;!(this.text.segments.get().length&gt;1||this.icon.segments.get().length&gt;1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var r=0,n=this.symbolInstanceIndexes;r&lt;n.length;r+=1){var i=this.symbolInstances.get(n[r]);this.featureSortOrder.push(i.featureIndex),[i.rightJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.leftJustifiedTextSymbolIndex].forEach((function(t,r,n){t&gt;=0&amp;&amp;n.indexOf(t)===r&amp;&amp;e.addIndicesForPlacedSymbol(e.text,t)})),i.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.text,i.verticalPlacedTextSymbolIndex),i.placedIconSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.icon,i.placedIconSymbolIndex),i.verticalPlacedIconSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.icon,i.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&amp;&amp;this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&amp;&amp;this.icon.indexBuffer.updateData(this.icon.indexArray)}},Dn(&quot;SymbolBucket&quot;,fc,{omit:[&quot;layers&quot;,&quot;collisionBoxArray&quot;,&quot;features&quot;,&quot;compareText&quot;]}),fc.MAX_GLYPHS=65535,fc.addDynamicAttributes=sc;var hc=new yi({&quot;symbol-placement&quot;:new pi(At.layout_symbol[&quot;symbol-placement&quot;]),&quot;symbol-spacing&quot;:new pi(At.layout_symbol[&quot;symbol-spacing&quot;]),&quot;symbol-avoid-edges&quot;:new pi(At.layout_symbol[&quot;symbol-avoid-edges&quot;]),&quot;symbol-sort-key&quot;:new di(At.layout_symbol[&quot;symbol-sort-key&quot;]),&quot;symbol-z-order&quot;:new pi(At.layout_symbol[&quot;symbol-z-order&quot;]),&quot;icon-allow-overlap&quot;:new pi(At.layout_symbol[&quot;icon-allow-overlap&quot;]),&quot;icon-ignore-placement&quot;:new pi(At.layout_symbol[&quot;icon-ignore-placement&quot;]),&quot;icon-optional&quot;:new pi(At.layout_symbol[&quot;icon-optional&quot;]),&quot;icon-rotation-alignment&quot;:new pi(At.layout_symbol[&quot;icon-rotation-alignment&quot;]),&quot;icon-size&quot;:new di(At.layout_symbol[&quot;icon-size&quot;]),&quot;icon-text-fit&quot;:new pi(At.layout_symbol[&quot;icon-text-fit&quot;]),&quot;icon-text-fit-padding&quot;:new pi(At.layout_symbol[&quot;icon-text-fit-padding&quot;]),&quot;icon-image&quot;:new di(At.layout_symbol[&quot;icon-image&quot;]),&quot;icon-rotate&quot;:new di(At.layout_symbol[&quot;icon-rotate&quot;]),&quot;icon-padding&quot;:new pi(At.layout_symbol[&quot;icon-padding&quot;]),&quot;icon-keep-upright&quot;:new pi(At.layout_symbol[&quot;icon-keep-upright&quot;]),&quot;icon-offset&quot;:new di(At.layout_symbol[&quot;icon-offset&quot;]),&quot;icon-anchor&quot;:new di(At.layout_symbol[&quot;icon-anchor&quot;]),&quot;icon-pitch-alignment&quot;:new pi(At.layout_symbol[&quot;icon-pitch-alignment&quot;]),&quot;text-pitch-alignment&quot;:new pi(At.layout_symbol[&quot;text-pitch-alignment&quot;]),&quot;text-rotation-alignment&quot;:new pi(At.layout_symbol[&quot;text-rotation-alignment&quot;]),&quot;text-field&quot;:new di(At.layout_symbol[&quot;text-field&quot;]),&quot;text-font&quot;:new di(At.layout_symbol[&quot;text-font&quot;]),&quot;text-size&quot;:new di(At.layout_symbol[&quot;text-size&quot;]),&quot;text-max-width&quot;:new di(At.layout_symbol[&quot;text-max-width&quot;]),&quot;text-line-height&quot;:new pi(At.layout_symbol[&quot;text-line-height&quot;]),&quot;text-letter-spacing&quot;:new di(At.layout_symbol[&quot;text-letter-spacing&quot;]),&quot;text-justify&quot;:new di(At.layout_symbol[&quot;text-justify&quot;]),&quot;text-radial-offset&quot;:new di(At.layout_symbol[&quot;text-radial-offset&quot;]),&quot;text-variable-anchor&quot;:new pi(At.layout_symbol[&quot;text-variable-anchor&quot;]),&quot;text-anchor&quot;:new di(At.layout_symbol[&quot;text-anchor&quot;]),&quot;text-max-angle&quot;:new pi(At.layout_symbol[&quot;text-max-angle&quot;]),&quot;text-writing-mode&quot;:new pi(At.layout_symbol[&quot;text-writing-mode&quot;]),&quot;text-rotate&quot;:new di(At.layout_symbol[&quot;text-rotate&quot;]),&quot;text-padding&quot;:new pi(At.layout_symbol[&quot;text-padding&quot;]),&quot;text-keep-upright&quot;:new pi(At.layout_symbol[&quot;text-keep-upright&quot;]),&quot;text-transform&quot;:new di(At.layout_symbol[&quot;text-transform&quot;]),&quot;text-offset&quot;:new di(At.layout_symbol[&quot;text-offset&quot;]),&quot;text-allow-overlap&quot;:new pi(At.layout_symbol[&quot;text-allow-overlap&quot;]),&quot;text-ignore-placement&quot;:new pi(At.layout_symbol[&quot;text-ignore-placement&quot;]),&quot;text-optional&quot;:new pi(At.layout_symbol[&quot;text-optional&quot;])}),pc={paint:new yi({&quot;icon-opacity&quot;:new di(At.paint_symbol[&quot;icon-opacity&quot;]),&quot;icon-color&quot;:new di(At.paint_symbol[&quot;icon-color&quot;]),&quot;icon-halo-color&quot;:new di(At.paint_symbol[&quot;icon-halo-color&quot;]),&quot;icon-halo-width&quot;:new di(At.paint_symbol[&quot;icon-halo-width&quot;]),&quot;icon-halo-blur&quot;:new di(At.paint_symbol[&quot;icon-halo-blur&quot;]),&quot;icon-translate&quot;:new pi(At.paint_symbol[&quot;icon-translate&quot;]),&quot;icon-translate-anchor&quot;:new pi(At.paint_symbol[&quot;icon-translate-anchor&quot;]),&quot;text-opacity&quot;:new di(At.paint_symbol[&quot;text-opacity&quot;]),&quot;text-color&quot;:new di(At.paint_symbol[&quot;text-color&quot;],{runtimeType:Bt,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),&quot;text-halo-color&quot;:new di(At.paint_symbol[&quot;text-halo-color&quot;]),&quot;text-halo-width&quot;:new di(At.paint_symbol[&quot;text-halo-width&quot;]),&quot;text-halo-blur&quot;:new di(At.paint_symbol[&quot;text-halo-blur&quot;]),&quot;text-translate&quot;:new pi(At.paint_symbol[&quot;text-translate&quot;]),&quot;text-translate-anchor&quot;:new pi(At.paint_symbol[&quot;text-translate-anchor&quot;])}),layout:hc},dc=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Ot,this.defaultValue=t};dc.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&amp;&amp;e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&amp;&amp;t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},dc.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},dc.prototype.outputDefined=function(){return!1},dc.prototype.serialize=function(){return null},Dn(&quot;FormatSectionOverride&quot;,dc,{omit:[&quot;defaultValue&quot;]});var gc=function(t){function e(e){t.call(this,e,pc)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.recalculate=function(e,r){if(t.prototype.recalculate.call(this,e,r),&quot;auto&quot;===this.layout.get(&quot;icon-rotation-alignment&quot;)&amp;&amp;(this.layout._values[&quot;icon-rotation-alignment&quot;]=&quot;point&quot;!==this.layout.get(&quot;symbol-placement&quot;)?&quot;map&quot;:&quot;viewport&quot;),&quot;auto&quot;===this.layout.get(&quot;text-rotation-alignment&quot;)&amp;&amp;(this.layout._values[&quot;text-rotation-alignment&quot;]=&quot;point&quot;!==this.layout.get(&quot;symbol-placement&quot;)?&quot;map&quot;:&quot;viewport&quot;),&quot;auto&quot;===this.layout.get(&quot;text-pitch-alignment&quot;)&amp;&amp;(this.layout._values[&quot;text-pitch-alignment&quot;]=this.layout.get(&quot;text-rotation-alignment&quot;)),&quot;auto&quot;===this.layout.get(&quot;icon-pitch-alignment&quot;)&amp;&amp;(this.layout._values[&quot;icon-pitch-alignment&quot;]=this.layout.get(&quot;icon-rotation-alignment&quot;)),&quot;point&quot;===this.layout.get(&quot;symbol-placement&quot;)){var n=this.layout.get(&quot;text-writing-mode&quot;);if(n){for(var i=[],a=0,o=n;a&lt;o.length;a+=1){var s=o[a];i.indexOf(s)&lt;0&amp;&amp;i.push(s)}this.layout._values[&quot;text-writing-mode&quot;]=i}else this.layout._values[&quot;text-writing-mode&quot;]=[&quot;horizontal&quot;]}this._setPaintOverrides()},e.prototype.getValueAndResolveTokens=function(t,e,r,n){var i=this.layout.get(t).evaluate(e,{},r,n),a=this._unevaluatedLayout._values[t];return a.isDataDriven()||Vr(a.value)||!i?i:function(t,e){return e.replace(/{([^{}]+)}/g,(function(e,r){return r in t?String(t[r]):&quot;&quot;}))}(e.properties,i)},e.prototype.createBucket=function(t){return new fc(t)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype._setPaintOverrides=function(){for(var t=0,r=pc.paint.overridableProperties;t&lt;r.length;t+=1){var n=r[t];if(e.hasPaintOverride(this.layout,n)){var i,a=this.paint.get(n),o=new dc(a),s=new Ur(o,a.property.specification);i=&quot;constant&quot;===a.value.kind||&quot;source&quot;===a.value.kind?new Hr(&quot;source&quot;,s):new Gr(&quot;composite&quot;,s,a.value.zoomStops,a.value._interpolationType),this.paint._values[n]=new fi(a.property,i,a.parameters)}}},e.prototype._handleOverridablePaintPropertyUpdate=function(t,r,n){return!(!this.layout||r.isDataDriven()||n.isDataDriven())&amp;&amp;e.hasPaintOverride(this.layout,t)},e.hasPaintOverride=function(t,e){var r=t.get(&quot;text-field&quot;),n=pc.paint.properties[e],i=!1,a=function(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(n.overrides&amp;&amp;n.overrides.hasOverride(r[e]))return void(i=!0)};if(&quot;constant&quot;===r.value.kind&amp;&amp;r.value.value instanceof te)a(r.value.value.sections);else if(&quot;source&quot;===r.value.kind){var o=function(t){i||(t instanceof oe&amp;&amp;ie(t.value)===Vt?a(t.value.sections):t instanceof ue?a(t.sections):t.eachChild(o))},s=r.value;s._styleExpression&amp;&amp;o(s._styleExpression.expression)}return i},e}(xi),mc={paint:new yi({&quot;background-color&quot;:new pi(At.paint_background[&quot;background-color&quot;]),&quot;background-pattern&quot;:new mi(At.paint_background[&quot;background-pattern&quot;]),&quot;background-opacity&quot;:new pi(At.paint_background[&quot;background-opacity&quot;])})},vc=function(t){function e(e){t.call(this,e,mc)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(xi),yc={paint:new yi({&quot;raster-opacity&quot;:new pi(At.paint_raster[&quot;raster-opacity&quot;]),&quot;raster-hue-rotate&quot;:new pi(At.paint_raster[&quot;raster-hue-rotate&quot;]),&quot;raster-brightness-min&quot;:new pi(At.paint_raster[&quot;raster-brightness-min&quot;]),&quot;raster-brightness-max&quot;:new pi(At.paint_raster[&quot;raster-brightness-max&quot;]),&quot;raster-saturation&quot;:new pi(At.paint_raster[&quot;raster-saturation&quot;]),&quot;raster-contrast&quot;:new pi(At.paint_raster[&quot;raster-contrast&quot;]),&quot;raster-resampling&quot;:new pi(At.paint_raster[&quot;raster-resampling&quot;]),&quot;raster-fade-duration&quot;:new pi(At.paint_raster[&quot;raster-fade-duration&quot;])})},xc=function(t){function e(e){t.call(this,e,yc)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(xi),bc=function(t){function e(e){t.call(this,e,{}),this.implementation=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.is3D=function(){return&quot;3d&quot;===this.implementation.renderingMode},e.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},e.prototype.recalculate=function(){},e.prototype.updateTransitions=function(){},e.prototype.hasTransition=function(){},e.prototype.serialize=function(){},e.prototype.onAdd=function(t){this.implementation.onAdd&amp;&amp;this.implementation.onAdd(t,t.painter.context.gl)},e.prototype.onRemove=function(t){this.implementation.onRemove&amp;&amp;this.implementation.onRemove(t,t.painter.context.gl)},e}(xi),_c={circle:oo,heatmap:vo,hillshade:xo,fill:as,&quot;fill-extrusion&quot;:ws,line:zs,symbol:gc,background:vc,raster:xc},wc=self.HTMLImageElement,Tc=self.HTMLCanvasElement,kc=self.HTMLVideoElement,Mc=self.ImageData,Ac=self.ImageBitmap,Sc=function(t,e,r,n){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this.update(e,n)};Sc.prototype.update=function(t,e,r){var n=t.width,i=t.height,a=!(this.size&amp;&amp;this.size[0]===n&amp;&amp;this.size[1]===i||r),o=this.context,s=o.gl;if(this.useMipmap=Boolean(e&amp;&amp;e.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1),o.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&amp;&amp;(!e||!1!==e.premultiply)),a)this.size=[n,i],t instanceof wc||t instanceof Tc||t instanceof kc||t instanceof Mc||Ac&amp;&amp;t instanceof Ac?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,t):s.texImage2D(s.TEXTURE_2D,0,this.format,n,i,0,this.format,s.UNSIGNED_BYTE,t.data);else{var l=r||{x:0,y:0},c=l.x,u=l.y;t instanceof wc||t instanceof Tc||t instanceof kc||t instanceof Mc||Ac&amp;&amp;t instanceof Ac?s.texSubImage2D(s.TEXTURE_2D,0,c,u,s.RGBA,s.UNSIGNED_BYTE,t):s.texSubImage2D(s.TEXTURE_2D,0,c,u,n,i,s.RGBA,s.UNSIGNED_BYTE,t.data)}this.useMipmap&amp;&amp;this.isSizePowerOfTwo()&amp;&amp;s.generateMipmap(s.TEXTURE_2D)},Sc.prototype.bind=function(t,e,r){var n=this.context.gl;n.bindTexture(n.TEXTURE_2D,this.texture),r!==n.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(r=n.LINEAR),t!==this.filter&amp;&amp;(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,r||t),this.filter=t),e!==this.wrap&amp;&amp;(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)},Sc.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&amp;&amp;Math.log(this.size[0])/Math.LN2%1==0},Sc.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var Ec=function(t){var e=this;this._callback=t,this._triggered=!1,&quot;undefined&quot;!=typeof MessageChannel&amp;&amp;(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){e._triggered=!1,e._callback()})};Ec.prototype.trigger=function(){var t=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((function(){t._triggered=!1,t._callback()}),0))},Ec.prototype.remove=function(){delete this._channel,this._callback=function(){}};var Cc=function(t,e,r){this.target=t,this.parent=e,this.mapId=r,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},g([&quot;receive&quot;,&quot;process&quot;],this),this.invoker=new Ec(this.process),this.target.addEventListener(&quot;message&quot;,this.receive,!1),this.globalScope=k()?t:self};function Lc(t,e,r){var n=2*Math.PI*6378137/256/Math.pow(2,r);return[t*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}Cc.prototype.send=function(t,e,r,n,i){var a=this;void 0===i&amp;&amp;(i=!1);var o=Math.round(1e18*Math.random()).toString(36).substring(0,10);r&amp;&amp;(this.callbacks[o]=r);var s=S(this.globalScope)?void 0:[];return this.target.postMessage({id:o,type:t,hasCallback:!!r,targetMapId:n,mustQueue:i,sourceMapId:this.mapId,data:Nn(e,s)},s),{cancel:function(){r&amp;&amp;delete a.callbacks[o],a.target.postMessage({id:o,type:&quot;&lt;cancel&gt;&quot;,targetMapId:n,sourceMapId:a.mapId})}}},Cc.prototype.receive=function(t){var e=t.data,r=e.id;if(r&amp;&amp;(!e.targetMapId||this.mapId===e.targetMapId))if(&quot;&lt;cancel&gt;&quot;===e.type){delete this.tasks[r];var n=this.cancelCallbacks[r];delete this.cancelCallbacks[r],n&amp;&amp;n()}else k()||e.mustQueue?(this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger()):this.processTask(r,e)},Cc.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&amp;&amp;this.invoker.trigger(),e&amp;&amp;this.processTask(t,e)}},Cc.prototype.processTask=function(t,e){var r=this;if(&quot;&lt;response&gt;&quot;===e.type){var n=this.callbacks[t];delete this.callbacks[t],n&amp;&amp;(e.error?n(jn(e.error)):n(null,jn(e.data)))}else{var i=!1,a=S(this.globalScope)?void 0:[],o=e.hasCallback?function(e,n){i=!0,delete r.cancelCallbacks[t],r.target.postMessage({id:t,type:&quot;&lt;response&gt;&quot;,sourceMapId:r.mapId,error:e?Nn(e):null,data:Nn(n,a)},a)}:function(t){i=!0},s=null,l=jn(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,l,o);else if(this.parent.getWorkerSource){var c=e.type.split(&quot;.&quot;);s=this.parent.getWorkerSource(e.sourceMapId,c[0],l.source)[c[1]](l,o)}else o(new Error(&quot;Could not find function &quot;+e.type));!i&amp;&amp;s&amp;&amp;s.cancel&amp;&amp;(this.cancelCallbacks[t]=s.cancel)}},Cc.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener(&quot;message&quot;,this.receive,!1)};var Ic=function(t,e){t&amp;&amp;(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};Ic.prototype.setNorthEast=function(t){return this._ne=t instanceof Pc?new Pc(t.lng,t.lat):Pc.convert(t),this},Ic.prototype.setSouthWest=function(t){return this._sw=t instanceof Pc?new Pc(t.lng,t.lat):Pc.convert(t),this},Ic.prototype.extend=function(t){var e,r,n=this._sw,i=this._ne;if(t instanceof Pc)e=t,r=t;else{if(!(t instanceof Ic))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(Ic.convert(t)):this.extend(Pc.convert(t)):this;if(r=t._ne,!(e=t._sw)||!r)return this}return n||i?(n.lng=Math.min(e.lng,n.lng),n.lat=Math.min(e.lat,n.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this._sw=new Pc(e.lng,e.lat),this._ne=new Pc(r.lng,r.lat)),this},Ic.prototype.getCenter=function(){return new Pc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Ic.prototype.getSouthWest=function(){return this._sw},Ic.prototype.getNorthEast=function(){return this._ne},Ic.prototype.getNorthWest=function(){return new Pc(this.getWest(),this.getNorth())},Ic.prototype.getSouthEast=function(){return new Pc(this.getEast(),this.getSouth())},Ic.prototype.getWest=function(){return this._sw.lng},Ic.prototype.getSouth=function(){return this._sw.lat},Ic.prototype.getEast=function(){return this._ne.lng},Ic.prototype.getNorth=function(){return this._ne.lat},Ic.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Ic.prototype.toString=function(){return&quot;LngLatBounds(&quot;+this._sw.toString()+&quot;, &quot;+this._ne.toString()+&quot;)&quot;},Ic.prototype.isEmpty=function(){return!(this._sw&amp;&amp;this._ne)},Ic.prototype.contains=function(t){var e=Pc.convert(t),r=e.lng,n=e.lat,i=this._sw.lng&lt;=r&amp;&amp;r&lt;=this._ne.lng;return this._sw.lng&gt;this._ne.lng&amp;&amp;(i=this._sw.lng&gt;=r&amp;&amp;r&gt;=this._ne.lng),this._sw.lat&lt;=n&amp;&amp;n&lt;=this._ne.lat&amp;&amp;i},Ic.convert=function(t){return!t||t instanceof Ic?t:new Ic(t)};var Pc=function(t,e){if(isNaN(t)||isNaN(e))throw new Error(&quot;Invalid LngLat object: (&quot;+t+&quot;, &quot;+e+&quot;)&quot;);if(this.lng=+t,this.lat=+e,this.lat&gt;90||this.lat&lt;-90)throw new Error(&quot;Invalid LngLat latitude value: must be between -90 and 90&quot;)};Pc.prototype.wrap=function(){return new Pc(c(this.lng,-180,180),this.lat)},Pc.prototype.toArray=function(){return[this.lng,this.lat]},Pc.prototype.toString=function(){return&quot;LngLat(&quot;+this.lng+&quot;, &quot;+this.lat+&quot;)&quot;},Pc.prototype.distanceTo=function(t){var e=Math.PI/180,r=this.lat*e,n=t.lat*e,i=Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos((t.lng-this.lng)*e);return 6371008.8*Math.acos(Math.min(i,1))},Pc.prototype.toBounds=function(t){void 0===t&amp;&amp;(t=0);var e=360*t/40075017,r=e/Math.cos(Math.PI/180*this.lat);return new Ic(new Pc(this.lng-r,this.lat-e),new Pc(this.lng+r,this.lat+e))},Pc.convert=function(t){if(t instanceof Pc)return t;if(Array.isArray(t)&amp;&amp;(2===t.length||3===t.length))return new Pc(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;null!==t)return new Pc(Number(&quot;lng&quot;in t?t.lng:t.lon),Number(t.lat));throw new Error(&quot;`LngLatLike` argument must be specified as a LngLat instance, an object {lng: &lt;lng&gt;, lat: &lt;lat&gt;}, an object {lon: &lt;lng&gt;, lat: &lt;lat&gt;}, or an array of [&lt;lng&gt;, &lt;lat&gt;]&quot;)};var zc=2*Math.PI*6371008.8;function Oc(t){return zc*Math.cos(t*Math.PI/180)}function Dc(t){return(180+t)/360}function Rc(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Fc(t,e){return t/Oc(e)}function Bc(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}var Nc=function(t,e,r){void 0===r&amp;&amp;(r=0),this.x=+t,this.y=+e,this.z=+r};Nc.fromLngLat=function(t,e){void 0===e&amp;&amp;(e=0);var r=Pc.convert(t);return new Nc(Dc(r.lng),Rc(r.lat),Fc(e,r.lat))},Nc.prototype.toLngLat=function(){return new Pc(360*this.x-180,Bc(this.y))},Nc.prototype.toAltitude=function(){return this.z*Oc(Bc(this.y))},Nc.prototype.meterInMercatorCoordinateUnits=function(){return 1/zc*(t=Bc(this.y),1/Math.cos(t*Math.PI/180));var t};var jc=function(t,e,r){this.z=t,this.x=e,this.y=r,this.key=qc(0,t,t,e,r)};jc.prototype.equals=function(t){return this.z===t.z&amp;&amp;this.x===t.x&amp;&amp;this.y===t.y},jc.prototype.url=function(t,e){var r,n,i,a,o,s=(n=this.y,i=this.z,a=Lc(256*(r=this.x),256*(n=Math.pow(2,i)-n-1),i),o=Lc(256*(r+1),256*(n+1),i),a[0]+&quot;,&quot;+a[1]+&quot;,&quot;+o[0]+&quot;,&quot;+o[1]),l=function(t,e,r){for(var n,i=&quot;&quot;,a=t;a&gt;0;a--)i+=(e&amp;(n=1&lt;&lt;a-1)?1:0)+(r&amp;n?2:0);return i}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(&quot;{prefix}&quot;,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(&quot;{z}&quot;,String(this.z)).replace(&quot;{x}&quot;,String(this.x)).replace(&quot;{y}&quot;,String(&quot;tms&quot;===e?Math.pow(2,this.z)-this.y-1:this.y)).replace(&quot;{quadkey}&quot;,l).replace(&quot;{bbox-epsg-3857}&quot;,s)},jc.prototype.getTilePoint=function(t){var e=Math.pow(2,this.z);return new i(8192*(t.x*e-this.x),8192*(t.y*e-this.y))},jc.prototype.toString=function(){return this.z+&quot;/&quot;+this.x+&quot;/&quot;+this.y};var Uc=function(t,e){this.wrap=t,this.canonical=e,this.key=qc(t,e.z,e.z,e.x,e.y)},Vc=function(t,e,r,n,i){this.overscaledZ=t,this.wrap=e,this.canonical=new jc(r,+n,+i),this.key=qc(e,t,r,n,i)};function qc(t,e,r,n,i){(t*=2)&lt;0&amp;&amp;(t=-1*t-1);var a=1&lt;&lt;r;return(a*a*t+a*i+n).toString(36)+r.toString(36)+e.toString(36)}Vc.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&amp;&amp;this.wrap===t.wrap&amp;&amp;this.canonical.equals(t.canonical)},Vc.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t&gt;this.canonical.z?new Vc(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Vc(t,this.wrap,t,this.canonical.x&gt;&gt;e,this.canonical.y&gt;&gt;e)},Vc.prototype.calculateScaledKey=function(t,e){var r=this.canonical.z-t;return t&gt;this.canonical.z?qc(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):qc(this.wrap*+e,t,t,this.canonical.x&gt;&gt;r,this.canonical.y&gt;&gt;r)},Vc.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ&lt;this.overscaledZ&amp;&amp;t.canonical.x===this.canonical.x&gt;&gt;e&amp;&amp;t.canonical.y===this.canonical.y&gt;&gt;e},Vc.prototype.children=function(t){if(this.overscaledZ&gt;=t)return[new Vc(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,r=2*this.canonical.x,n=2*this.canonical.y;return[new Vc(e,this.wrap,e,r,n),new Vc(e,this.wrap,e,r+1,n),new Vc(e,this.wrap,e,r,n+1),new Vc(e,this.wrap,e,r+1,n+1)]},Vc.prototype.isLessThan=function(t){return this.wrap&lt;t.wrap||!(this.wrap&gt;t.wrap)&amp;&amp;(this.overscaledZ&lt;t.overscaledZ||!(this.overscaledZ&gt;t.overscaledZ)&amp;&amp;(this.canonical.x&lt;t.canonical.x||!(this.canonical.x&gt;t.canonical.x)&amp;&amp;this.canonical.y&lt;t.canonical.y))},Vc.prototype.wrapped=function(){return new Vc(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},Vc.prototype.unwrapTo=function(t){return new Vc(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},Vc.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},Vc.prototype.toUnwrapped=function(){return new Uc(this.wrap,this.canonical)},Vc.prototype.toString=function(){return this.overscaledZ+&quot;/&quot;+this.canonical.x+&quot;/&quot;+this.canonical.y},Vc.prototype.getTilePoint=function(t){return this.canonical.getTilePoint(new Nc(t.x-this.wrap,t.y))},Dn(&quot;CanonicalTileID&quot;,jc),Dn(&quot;OverscaledTileID&quot;,Vc,{omit:[&quot;posMatrix&quot;]});var Hc=function(t,e,r){if(this.uid=t,e.height!==e.width)throw new RangeError(&quot;DEM tiles must be square&quot;);if(r&amp;&amp;&quot;mapbox&quot;!==r&amp;&amp;&quot;terrarium&quot;!==r)return _('&quot;'+r+'&quot; is not a valid encoding type. Valid types include &quot;mapbox&quot; and &quot;terrarium&quot;.');this.stride=e.height;var n=this.dim=e.height-2;this.data=new Uint32Array(e.data.buffer),this.encoding=r||&quot;mapbox&quot;;for(var i=0;i&lt;n;i++)this.data[this._idx(-1,i)]=this.data[this._idx(0,i)],this.data[this._idx(n,i)]=this.data[this._idx(n-1,i)],this.data[this._idx(i,-1)]=this.data[this._idx(i,0)],this.data[this._idx(i,n)]=this.data[this._idx(i,n-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(n,-1)]=this.data[this._idx(n-1,0)],this.data[this._idx(-1,n)]=this.data[this._idx(0,n-1)],this.data[this._idx(n,n)]=this.data[this._idx(n-1,n-1)]};Hc.prototype.get=function(t,e){var r=new Uint8Array(this.data.buffer),n=4*this._idx(t,e);return(&quot;terrarium&quot;===this.encoding?this._unpackTerrarium:this._unpackMapbox)(r[n],r[n+1],r[n+2])},Hc.prototype.getUnpackVector=function(){return&quot;terrarium&quot;===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},Hc.prototype._idx=function(t,e){if(t&lt;-1||t&gt;=this.dim+1||e&lt;-1||e&gt;=this.dim+1)throw new RangeError(&quot;out of range source coordinates for DEM data&quot;);return(e+1)*this.stride+(t+1)},Hc.prototype._unpackMapbox=function(t,e,r){return(256*t*256+256*e+r)/10-1e4},Hc.prototype._unpackTerrarium=function(t,e,r){return 256*t+e+r/256-32768},Hc.prototype.getPixels=function(){return new po({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Hc.prototype.backfillBorder=function(t,e,r){if(this.dim!==t.dim)throw new Error(&quot;dem dimension mismatch&quot;);var n=e*this.dim,i=e*this.dim+this.dim,a=r*this.dim,o=r*this.dim+this.dim;switch(e){case-1:n=i-1;break;case 1:i=n+1}switch(r){case-1:a=o-1;break;case 1:o=a+1}for(var s=-e*this.dim,l=-r*this.dim,c=a;c&lt;o;c++)for(var u=n;u&lt;i;u++)this.data[this._idx(u,c)]=t.data[this._idx(u+s,c+l)]},Dn(&quot;DEMData&quot;,Hc);var Gc=function(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e&lt;t.length;e++){var r=t[e];this._stringToNumber[r]=e,this._numberToString[e]=r}};Gc.prototype.encode=function(t){return this._stringToNumber[t]},Gc.prototype.decode=function(t){return this._numberToString[t]};var Yc=function(t,e,r,n,i){this.type=&quot;Feature&quot;,this._vectorTileFeature=t,t._z=e,t._x=r,t._y=n,this.properties=t.properties,this.id=i},Wc={geometry:{configurable:!0}};Wc.geometry.get=function(){return void 0===this._geometry&amp;&amp;(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},Wc.geometry.set=function(t){this._geometry=t},Yc.prototype.toJSON=function(){var t={geometry:this.geometry};for(var e in this)&quot;_geometry&quot;!==e&amp;&amp;&quot;_vectorTileFeature&quot;!==e&amp;&amp;(t[e]=this[e]);return t},Object.defineProperties(Yc.prototype,Wc);var Xc=function(){this.state={},this.stateChanges={},this.deletedStates={}};Xc.prototype.updateState=function(t,e,r){var n=String(e);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][n]=this.stateChanges[t][n]||{},u(this.stateChanges[t][n],r),null===this.deletedStates[t])for(var i in this.deletedStates[t]={},this.state[t])i!==n&amp;&amp;(this.deletedStates[t][i]=null);else if(this.deletedStates[t]&amp;&amp;null===this.deletedStates[t][n])for(var a in this.deletedStates[t][n]={},this.state[t][n])r[a]||(this.deletedStates[t][n][a]=null);else for(var o in r)this.deletedStates[t]&amp;&amp;this.deletedStates[t][n]&amp;&amp;null===this.deletedStates[t][n][o]&amp;&amp;delete this.deletedStates[t][n][o]},Xc.prototype.removeFeatureState=function(t,e,r){if(null!==this.deletedStates[t]){var n=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},r&amp;&amp;void 0!==e)null!==this.deletedStates[t][n]&amp;&amp;(this.deletedStates[t][n]=this.deletedStates[t][n]||{},this.deletedStates[t][n][r]=null);else if(void 0!==e)if(this.stateChanges[t]&amp;&amp;this.stateChanges[t][n])for(r in this.deletedStates[t][n]={},this.stateChanges[t][n])this.deletedStates[t][n][r]=null;else this.deletedStates[t][n]=null;else this.deletedStates[t]=null}},Xc.prototype.getState=function(t,e){var r=String(e),n=u({},(this.state[t]||{})[r],(this.stateChanges[t]||{})[r]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){var i=this.deletedStates[t][e];if(null===i)return{};for(var a in i)delete n[a]}return n},Xc.prototype.initializeTileState=function(t,e){t.setFeatureState(this.state,e)},Xc.prototype.coalesceChanges=function(t,e){var r={};for(var n in this.stateChanges){this.state[n]=this.state[n]||{};var i={};for(var a in this.stateChanges[n])this.state[n][a]||(this.state[n][a]={}),u(this.state[n][a],this.stateChanges[n][a]),i[a]=this.state[n][a];r[n]=i}for(var o in this.deletedStates){this.state[o]=this.state[o]||{};var s={};if(null===this.deletedStates[o])for(var l in this.state[o])s[l]={},this.state[o][l]={};else for(var c in this.deletedStates[o]){if(null===this.deletedStates[o][c])this.state[o][c]={};else for(var f=0,h=Object.keys(this.deletedStates[o][c]);f&lt;h.length;f+=1)delete this.state[o][c][h[f]];s[c]=this.state[o][c]}r[o]=r[o]||{},u(r[o],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(r).length)for(var p in t)t[p].setFeatureState(r,e)};var Zc=function(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new Ln(8192,16,0),this.grid3D=new Ln(8192,16,0),this.featureIndexArray=new ra,this.promoteId=e};function Jc(t,e,r,n,i){return v(t,(function(t,a){var o=e instanceof hi?e.get(a):null;return o&amp;&amp;o.evaluate?o.evaluate(r,n,i):o}))}function Kc(t){for(var e=1/0,r=1/0,n=-1/0,i=-1/0,a=0,o=t;a&lt;o.length;a+=1){var s=o[a];e=Math.min(e,s.x),r=Math.min(r,s.y),n=Math.max(n,s.x),i=Math.max(i,s.y)}return{minX:e,minY:r,maxX:n,maxY:i}}function Qc(t,e){return e-t}Zc.prototype.insert=function(t,e,r,n,i,a){var o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,n,i);for(var s=a?this.grid3D:this.grid,l=0;l&lt;e.length;l++){for(var c=e[l],u=[1/0,1/0,-1/0,-1/0],f=0;f&lt;c.length;f++){var h=c[f];u[0]=Math.min(u[0],h.x),u[1]=Math.min(u[1],h.y),u[2]=Math.max(u[2],h.x),u[3]=Math.max(u[3],h.y)}u[0]&lt;8192&amp;&amp;u[1]&lt;8192&amp;&amp;u[2]&gt;=0&amp;&amp;u[3]&gt;=0&amp;&amp;s.insert(o,u[0],u[1],u[2],u[3])}},Zc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new gs.VectorTile(new Hs(this.rawTileData)).layers,this.sourceLayerCoder=new Gc(this.vtLayers?Object.keys(this.vtLayers).sort():[&quot;_geojsonTileLayer&quot;])),this.vtLayers},Zc.prototype.query=function(t,e,r,n){var a=this;this.loadVTLayers();for(var o=t.params||{},s=8192/t.tileSize/t.scale,l=rn(o.filter),c=t.queryGeometry,u=t.queryPadding*s,f=Kc(c),h=this.grid.query(f.minX-u,f.minY-u,f.maxX+u,f.maxY+u),p=Kc(t.cameraQueryGeometry),d=0,g=this.grid3D.query(p.minX-u,p.minY-u,p.maxX+u,p.maxY+u,(function(e,r,n,a){return function(t,e,r,n,a){for(var o=0,s=t;o&lt;s.length;o+=1){var l=s[o];if(e&lt;=l.x&amp;&amp;r&lt;=l.y&amp;&amp;n&gt;=l.x&amp;&amp;a&gt;=l.y)return!0}var c=[new i(e,r),new i(e,a),new i(n,a),new i(n,r)];if(t.length&gt;2)for(var u=0,f=c;u&lt;f.length;u+=1)if(Wa(t,f[u]))return!0;for(var h=0;h&lt;t.length-1;h++)if(Xa(t[h],t[h+1],c))return!0;return!1}(t.cameraQueryGeometry,e-u,r-u,n+u,a+u)}));d&lt;g.length;d+=1)h.push(g[d]);h.sort(Qc);for(var m,v={},y=function(i){var u=h[i];if(u!==m){m=u;var f=a.featureIndexArray.get(u),p=null;a.loadMatchingFeature(v,f.bucketIndex,f.sourceLayerIndex,f.featureIndex,l,o.layers,o.availableImages,e,r,n,(function(e,r,n){return p||(p=Da(e)),r.queryIntersectsFeature(c,e,n,p,a.z,t.transform,s,t.pixelPosMatrix)}))}},x=0;x&lt;h.length;x++)y(x);return v},Zc.prototype.loadMatchingFeature=function(t,e,r,n,i,a,o,s,l,c,u){var f=this.bucketLayerIDs[e];if(!a||function(t,e){for(var r=0;r&lt;t.length;r++)if(e.indexOf(t[r])&gt;=0)return!0;return!1}(a,f)){var h=this.sourceLayerCoder.decode(r),p=this.vtLayers[h].feature(n);if(i.filter(new ii(this.tileID.overscaledZ),p))for(var d=this.getId(p,h),g=0;g&lt;f.length;g++){var m=f[g];if(!(a&amp;&amp;a.indexOf(m)&lt;0)){var v=s[m];if(v){var y={};void 0!==d&amp;&amp;c&amp;&amp;(y=c.getState(v.sourceLayer||&quot;_geojsonTileLayer&quot;,d));var x=l[m];x.paint=Jc(x.paint,v.paint,p,y,o),x.layout=Jc(x.layout,v.layout,p,y,o);var b=!u||u(p,v,y);if(b){var _=new Yc(p,this.z,this.x,this.y,d);_.layer=x;var w=t[m];void 0===w&amp;&amp;(w=t[m]=[]),w.push({featureIndex:n,feature:_,intersectionZ:b})}}}}}},Zc.prototype.lookupSymbolFeatures=function(t,e,r,n,i,a,o,s){var l={};this.loadVTLayers();for(var c=rn(i),u=0,f=t;u&lt;f.length;u+=1)this.loadMatchingFeature(l,r,n,f[u],c,a,o,s,e);return l},Zc.prototype.hasLayer=function(t){for(var e=0,r=this.bucketLayerIDs;e&lt;r.length;e+=1)for(var n=0,i=r[e];n&lt;i.length;n+=1)if(t===i[n])return!0;return!1},Zc.prototype.getId=function(t,e){var r=t.id;return this.promoteId&amp;&amp;&quot;boolean&quot;==typeof(r=t.properties[&quot;string&quot;==typeof this.promoteId?this.promoteId:this.promoteId[e]])&amp;&amp;(r=Number(r)),r},Dn(&quot;FeatureIndex&quot;,Zc,{omit:[&quot;rawTileData&quot;,&quot;sourceLayerCoder&quot;]});var $c=function(t,e){this.tileID=t,this.uid=h(),this.uses=0,this.tileSize=e,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state=&quot;loading&quot;};$c.prototype.registerFadeDuration=function(t){var e=t+this.timeAdded;e&lt;R.now()||this.fadeEndTime&amp;&amp;e&lt;this.fadeEndTime||(this.fadeEndTime=e)},$c.prototype.wasRequested=function(){return&quot;errored&quot;===this.state||&quot;loaded&quot;===this.state||&quot;reloading&quot;===this.state},$c.prototype.loadVectorData=function(t,e,r){if(this.hasData()&amp;&amp;this.unloadVectorData(),this.state=&quot;loaded&quot;,t){for(var n in t.featureIndex&amp;&amp;(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&amp;&amp;(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,e){var r={};if(!e)return r;for(var n=function(){var t=a[i],n=t.layerIds.map((function(t){return e.getLayer(t)})).filter(Boolean);if(0!==n.length){t.layers=n,t.stateDependentLayerIds&amp;&amp;(t.stateDependentLayers=t.stateDependentLayerIds.map((function(t){return n.filter((function(e){return e.id===t}))[0]})));for(var o=0,s=n;o&lt;s.length;o+=1)r[s[o].id]=t}},i=0,a=t;i&lt;a.length;i+=1)n();return r}(t.buckets,e.style),this.hasSymbolBuckets=!1,this.buckets){var i=this.buckets[n];if(i instanceof fc){if(this.hasSymbolBuckets=!0,!r)break;i.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(var a in this.buckets){var o=this.buckets[a];if(o instanceof fc&amp;&amp;o.hasRTLText){this.hasRTLText=!0,ni.isLoading()||ni.isLoaded()||&quot;deferred&quot;!==ei()||ri();break}}for(var s in this.queryPadding=0,this.buckets){var l=this.buckets[s];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(s).queryRadius(l))}t.imageAtlas&amp;&amp;(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&amp;&amp;(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new Xi},$c.prototype.unloadVectorData=function(){for(var t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&amp;&amp;this.imageAtlasTexture.destroy(),this.imageAtlas&amp;&amp;(this.imageAtlas=null),this.glyphAtlasTexture&amp;&amp;this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state=&quot;unloaded&quot;},$c.prototype.getBucket=function(t){return this.buckets[t.id]},$c.prototype.upload=function(t){for(var e in this.buckets){var r=this.buckets[e];r.uploadPending()&amp;&amp;r.upload(t)}var n=t.gl;this.imageAtlas&amp;&amp;!this.imageAtlas.uploaded&amp;&amp;(this.imageAtlasTexture=new Sc(t,this.imageAtlas.image,n.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&amp;&amp;(this.glyphAtlasTexture=new Sc(t,this.glyphAtlasImage,n.ALPHA),this.glyphAtlasImage=null)},$c.prototype.prepare=function(t){this.imageAtlas&amp;&amp;this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)},$c.prototype.queryRenderedFeatures=function(t,e,r,n,i,a,o,s,l,c){return this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:n,cameraQueryGeometry:i,scale:a,tileSize:this.tileSize,pixelPosMatrix:c,transform:s,params:o,queryPadding:this.queryPadding*l},t,e,r):{}},$c.prototype.querySourceFeatures=function(t,e){var r=this.latestFeatureIndex;if(r&amp;&amp;r.rawTileData){var n=r.loadVTLayers(),i=e?e.sourceLayer:&quot;&quot;,a=n._geojsonTileLayer||n[i];if(a)for(var o=rn(e&amp;&amp;e.filter),s=this.tileID.canonical,l=s.z,c=s.x,u=s.y,f={z:l,x:c,y:u},h=0;h&lt;a.length;h++){var p=a.feature(h);if(o.filter(new ii(this.tileID.overscaledZ),p)){var d=r.getId(p,i),g=new Yc(p,l,c,u,d);g.tile=f,t.push(g)}}}},$c.prototype.hasData=function(){return&quot;loaded&quot;===this.state||&quot;reloading&quot;===this.state||&quot;expired&quot;===this.state},$c.prototype.patternsLoaded=function(){return this.imageAtlas&amp;&amp;!!Object.keys(this.imageAtlas.patternPositions).length},$c.prototype.setExpiryData=function(t){var e=this.expirationTime;if(t.cacheControl){var r=M(t.cacheControl);r[&quot;max-age&quot;]&amp;&amp;(this.expirationTime=Date.now()+1e3*r[&quot;max-age&quot;])}else t.expires&amp;&amp;(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){var n=Date.now(),i=!1;if(this.expirationTime&gt;n)i=!1;else if(e)if(this.expirationTime&lt;e)i=!0;else{var a=this.expirationTime-e;a?this.expirationTime=n+Math.max(a,3e4):i=!0}else i=!0;i?(this.expiredRequestCount++,this.state=&quot;expired&quot;):this.expiredRequestCount=0}},$c.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1&lt;&lt;Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},$c.prototype.setFeatureState=function(t,e){if(this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData&amp;&amp;0!==Object.keys(t).length){var r=this.latestFeatureIndex.loadVTLayers();for(var n in this.buckets)if(e.style.hasLayer(n)){var i=this.buckets[n],a=i.layers[0].sourceLayer||&quot;_geojsonTileLayer&quot;,o=r[a],s=t[a];if(o&amp;&amp;s&amp;&amp;0!==Object.keys(s).length){i.update(s,o,this.imageAtlas&amp;&amp;this.imageAtlas.patternPositions||{});var l=e&amp;&amp;e.style&amp;&amp;e.style.getLayer(n);l&amp;&amp;(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(i)))}}}},$c.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},$c.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil&lt;R.now()},$c.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},$c.prototype.setHoldDuration=function(t){this.symbolFadeHoldUntil=R.now()+t},$c.prototype.setDependencies=function(t,e){for(var r={},n=0,i=e;n&lt;i.length;n+=1)r[i[n]]=!0;this.dependencies[t]=r},$c.prototype.hasDependency=function(t,e){for(var r=0,n=t;r&lt;n.length;r+=1){var i=this.dependencies[n[r]];if(i)for(var a=0,o=e;a&lt;o.length;a+=1)if(i[o[a]])return!0}return!1};var tu=self.performance,eu=function(t){this._marks={start:[t.url,&quot;start&quot;].join(&quot;#&quot;),end:[t.url,&quot;end&quot;].join(&quot;#&quot;),measure:t.url.toString()},tu.mark(this._marks.start)};eu.prototype.finish=function(){tu.mark(this._marks.end);var t=tu.getEntriesByName(this._marks.measure);return 0===t.length&amp;&amp;(tu.measure(this._marks.measure,this._marks.start,this._marks.end),t=tu.getEntriesByName(this._marks.measure),tu.clearMarks(this._marks.start),tu.clearMarks(this._marks.end),tu.clearMeasures(this._marks.measure)),t},t.Actor=Cc,t.AlphaImage=ho,t.CanonicalTileID=jc,t.CollisionBoxArray=Xi,t.Color=Kt,t.DEMData=Hc,t.DataConstantProperty=pi,t.DictionaryCoder=Gc,t.EXTENT=8192,t.ErrorEvent=kt,t.EvaluationParameters=ii,t.Event=Tt,t.Evented=Mt,t.FeatureIndex=Zc,t.FillBucket=rs,t.FillExtrusionBucket=xs,t.ImageAtlas=dl,t.ImagePosition=hl,t.LineBucket=Cs,t.LngLat=Pc,t.LngLatBounds=Ic,t.MercatorCoordinate=Nc,t.ONE_EM=24,t.OverscaledTileID=Vc,t.Point=i,t.Point$1=i,t.Properties=yi,t.Protobuf=Hs,t.RGBAImage=po,t.RequestManager=q,t.RequestPerformance=eu,t.ResourceType=ht,t.SegmentVector=ia,t.SourceFeatureState=Xc,t.StructArrayLayout1ui2=Hi,t.StructArrayLayout2f1f2i16=Di,t.StructArrayLayout2i4=Mi,t.StructArrayLayout3ui6=Fi,t.StructArrayLayout4i8=Ai,t.SymbolBucket=fc,t.Texture=Sc,t.Tile=$c,t.Transitionable=si,t.Uniform1f=va,t.Uniform1i=ma,t.Uniform2f=ya,t.Uniform3f=xa,t.Uniform4f=ba,t.UniformColor=_a,t.UniformMatrix4f=Ta,t.UnwrappedTileID=Uc,t.ValidationError=St,t.WritingMode=gl,t.ZoomHistory=Un,t.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},t.addDynamicAttributes=sc,t.asyncAll=function(t,e,r){if(!t.length)return r(null,[]);var n=t.length,i=new Array(t.length),a=null;t.forEach((function(t,o){e(t,(function(t,e){t&amp;&amp;(a=t),i[o]=e,0==--n&amp;&amp;r(a,i)}))}))},t.bezier=o,t.bindAll=g,t.browser=R,t.cacheEntryPossiblyAdded=function(t){++ut&gt;ot&amp;&amp;(t.getActor().send(&quot;enforceCacheSizeLimit&quot;,at),ut=0)},t.clamp=l,t.clearTileCache=function(t){var e=self.caches.delete(&quot;mapbox-tiles&quot;);t&amp;&amp;e.catch(t).then((function(){return t()}))},t.clipLine=jl,t.clone=function(t){var e=new to(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=x,t.clone$2=function(t){var e=new to(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.collisionCircleLayout=Ns,t.config=F,t.create=function(){var t=new to(16);return to!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=function(){var t=new to(9);return to!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},t.create$2=function(){var t=new to(4);return to!=Float32Array&amp;&amp;(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=qr,t.createLayout=Ti,t.createStyleLayer=function(t){return&quot;custom&quot;===t.type?new bc(t):new _c[t.type](t)},t.cross=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t},t.deepEqual=function t(e,r){if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(var n=0;n&lt;e.length;n++)if(!t(e[n],r[n]))return!1;return!0}if(&quot;object&quot;==typeof e&amp;&amp;null!==e&amp;&amp;null!==r){if(&quot;object&quot;!=typeof r)return!1;if(Object.keys(e).length!==Object.keys(r).length)return!1;for(var i in e)if(!t(e[i],r[i]))return!1;return!0}return e===r},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},t.dot$1=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},t.ease=s,t.emitValidationErrors=Cn,t.endsWith=m,t.enforceCacheSizeLimit=function(t){st(),Q&amp;&amp;Q.then((function(e){e.keys().then((function(r){for(var n=0;n&lt;r.length-t;n++)e.delete(r[n])}))}))},t.evaluateSizeForFeature=Il,t.evaluateSizeForZoom=Pl,t.evaluateVariableOffset=$l,t.evented=ti,t.extend=u,t.featureFilter=rn,t.filterObject=y,t.fromRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},t.getAnchorAlignment=Al,t.getAnchorJustification=tc,t.getArrayBuffer=yt,t.getImage=bt,t.getJSON=function(t,e){return vt(u(t,{type:&quot;json&quot;}),e)},t.getRTLTextPluginStatus=ei,t.getReferrer=mt,t.getVideo=function(t,e){var r,n,i=self.document.createElement(&quot;video&quot;);i.muted=!0,i.onloadstart=function(){e(null,i)};for(var a=0;a&lt;t.length;a++){var o=self.document.createElement(&quot;source&quot;);r=t[a],n=void 0,(n=self.document.createElement(&quot;a&quot;)).href=r,(n.protocol!==self.document.location.protocol||n.host!==self.document.location.host)&amp;&amp;(i.crossOrigin=&quot;Anonymous&quot;),o.src=t[a],i.appendChild(o)}return{cancel:function(){}}},t.identity=eo,t.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*g-f*d,M=u*m-h*d,A=u*v-p*d,S=f*m-h*g,E=f*v-p*g,C=h*v-p*m,L=y*C-x*E+b*S+_*A-w*M+T*k;return L?(t[0]=(s*C-l*E+c*S)*(L=1/L),t[1]=(i*E-n*C-a*S)*L,t[2]=(g*T-m*w+v*_)*L,t[3]=(h*w-f*T-p*_)*L,t[4]=(l*A-o*C-c*M)*L,t[5]=(r*C-i*A+a*M)*L,t[6]=(m*b-d*T-v*x)*L,t[7]=(u*T-h*b+p*x)*L,t[8]=(o*E-s*A+c*k)*L,t[9]=(n*A-r*E-a*k)*L,t[10]=(d*w-g*b+v*y)*L,t[11]=(f*b-u*w-p*y)*L,t[12]=(s*M-o*S-l*k)*L,t[13]=(r*S-n*M+i*k)*L,t[14]=(g*x-d*_-m*y)*L,t[15]=(u*_-f*x+h*y)*L,t):null},t.isChar=Vn,t.isMapboxURL=H,t.keysDifference=function(t,e){var r=[];for(var n in t)n in e||r.push(n);return r},t.makeRequest=vt,t.mapObject=v,t.mercatorXfromLng=Dc,t.mercatorYfromLat=Rc,t.mercatorZfromAltitude=Fc,t.mul=io,t.multiply=ro,t.mvt=gs,t.normalize=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;return a&gt;0&amp;&amp;(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t},t.number=Ue,t.offscreenCanvasSupported=ft,t.ortho=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t},t.parseGlyphPBF=function(t){return new Hs(t).readFields(ll,[])},t.pbf=Hs,t.performSymbolLayout=function(t,e,r,n,i,a,o){t.createArrays(),t.tilePixelRatio=8192/(512*t.overscaling),t.compareText={},t.iconsNeedLinear=!1;var s=t.layers[0].layout,l=t.layers[0]._unevaluatedLayout._values,c={};if(&quot;composite&quot;===t.textSizeData.kind){var u=t.textSizeData,f=u.maxZoom;c.compositeTextSizes=[l[&quot;text-size&quot;].possiblyEvaluate(new ii(u.minZoom),o),l[&quot;text-size&quot;].possiblyEvaluate(new ii(f),o)]}if(&quot;composite&quot;===t.iconSizeData.kind){var h=t.iconSizeData,p=h.maxZoom;c.compositeIconSizes=[l[&quot;icon-size&quot;].possiblyEvaluate(new ii(h.minZoom),o),l[&quot;icon-size&quot;].possiblyEvaluate(new ii(p),o)]}c.layoutTextSize=l[&quot;text-size&quot;].possiblyEvaluate(new ii(t.zoom+1),o),c.layoutIconSize=l[&quot;icon-size&quot;].possiblyEvaluate(new ii(t.zoom+1),o),c.textMaxSize=l[&quot;text-size&quot;].possiblyEvaluate(new ii(18));for(var d=24*s.get(&quot;text-line-height&quot;),g=&quot;map&quot;===s.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==s.get(&quot;symbol-placement&quot;),m=s.get(&quot;text-keep-upright&quot;),v=s.get(&quot;text-size&quot;),y=function(){var a=b[x],l=s.get(&quot;text-font&quot;).evaluate(a,{},o).join(&quot;,&quot;),u=v.evaluate(a,{},o),f=c.layoutTextSize.evaluate(a,{},o),h=c.layoutIconSize.evaluate(a,{},o),p={horizontal:{},vertical:void 0},y=a.text,w=[0,0];if(y){var T=y.toString(),k=24*s.get(&quot;text-letter-spacing&quot;).evaluate(a,{},o),M=function(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(n=r[e].charCodeAt(0),Vn.Arabic(n)||Vn[&quot;Arabic Supplement&quot;](n)||Vn[&quot;Arabic Extended-A&quot;](n)||Vn[&quot;Arabic Presentation Forms-A&quot;](n)||Vn[&quot;Arabic Presentation Forms-B&quot;](n))return!1;var n;return!0}(T)?k:0,A=s.get(&quot;text-anchor&quot;).evaluate(a,{},o),S=s.get(&quot;text-variable-anchor&quot;);if(!S){var E=s.get(&quot;text-radial-offset&quot;).evaluate(a,{},o);w=E?$l(A,[24*E,Ql]):s.get(&quot;text-offset&quot;).evaluate(a,{},o).map((function(t){return 24*t}))}var C=g?&quot;center&quot;:s.get(&quot;text-justify&quot;).evaluate(a,{},o),L=s.get(&quot;symbol-placement&quot;),I=&quot;point&quot;===L?24*s.get(&quot;text-max-width&quot;).evaluate(a,{},o):0,P=function(){t.allowVerticalPlacement&amp;&amp;qn(T)&amp;&amp;(p.vertical=yl(y,e,r,i,l,I,d,A,&quot;left&quot;,M,w,gl.vertical,!0,L,f,u))};if(!g&amp;&amp;S){for(var z=&quot;auto&quot;===C?S.map((function(t){return tc(t)})):[C],O=!1,D=0;D&lt;z.length;D++){var R=z[D];if(!p.horizontal[R])if(O)p.horizontal[R]=p.horizontal[0];else{var F=yl(y,e,r,i,l,I,d,&quot;center&quot;,R,M,w,gl.horizontal,!1,L,f,u);F&amp;&amp;(p.horizontal[R]=F,O=1===F.positionedLines.length)}}P()}else{&quot;auto&quot;===C&amp;&amp;(C=tc(A));var B=yl(y,e,r,i,l,I,d,A,C,M,w,gl.horizontal,!1,L,f,u);B&amp;&amp;(p.horizontal[C]=B),P(),qn(T)&amp;&amp;g&amp;&amp;m&amp;&amp;(p.vertical=yl(y,e,r,i,l,I,d,A,C,M,w,gl.vertical,!1,L,f,u))}}var N=void 0,j=!1;if(a.icon&amp;&amp;a.icon.name){var U=n[a.icon.name];U&amp;&amp;(N=function(t,e,r){var n=Al(r),i=e[0]-t.displaySize[0]*n.horizontalAlign,a=e[1]-t.displaySize[1]*n.verticalAlign;return{image:t,top:a,bottom:a+t.displaySize[1],left:i,right:i+t.displaySize[0]}}(i[a.icon.name],s.get(&quot;icon-offset&quot;).evaluate(a,{},o),s.get(&quot;icon-anchor&quot;).evaluate(a,{},o)),j=U.sdf,void 0===t.sdfIcons?t.sdfIcons=U.sdf:t.sdfIcons!==U.sdf&amp;&amp;_(&quot;Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer&quot;),(U.pixelRatio!==t.pixelRatio||0!==s.get(&quot;icon-rotate&quot;).constantOr(1))&amp;&amp;(t.iconsNeedLinear=!0))}var V=rc(p.horizontal)||p.vertical;t.iconsInText=!!V&amp;&amp;V.iconsInText,(V||N)&amp;&amp;function(t,e,r,n,i,a,o,s,l,c,u){var f=a.textMaxSize.evaluate(e,{});void 0===f&amp;&amp;(f=o);var h,p=t.layers[0].layout,d=p.get(&quot;icon-offset&quot;).evaluate(e,{},u),g=rc(r.horizontal),m=o/24,v=t.tilePixelRatio*m,y=t.tilePixelRatio*f/24,x=t.tilePixelRatio*s,b=t.tilePixelRatio*p.get(&quot;symbol-spacing&quot;),w=p.get(&quot;text-padding&quot;)*t.tilePixelRatio,T=p.get(&quot;icon-padding&quot;)*t.tilePixelRatio,k=p.get(&quot;text-max-angle&quot;)/180*Math.PI,M=&quot;map&quot;===p.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==p.get(&quot;symbol-placement&quot;),A=&quot;map&quot;===p.get(&quot;icon-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==p.get(&quot;symbol-placement&quot;),S=p.get(&quot;symbol-placement&quot;),E=b/2,C=p.get(&quot;icon-text-fit&quot;);n&amp;&amp;&quot;none&quot;!==C&amp;&amp;(t.allowVerticalPlacement&amp;&amp;r.vertical&amp;&amp;(h=El(n,r.vertical,C,p.get(&quot;icon-text-fit-padding&quot;),d,m)),g&amp;&amp;(n=El(n,g,C,p.get(&quot;icon-text-fit-padding&quot;),d,m)));var L=function(s,f){f.x&lt;0||f.x&gt;=8192||f.y&lt;0||f.y&gt;=8192||function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,w,T,k,M){var A,S,E,C,L,I=t.addToLineVertexArray(e,r),P=0,z=0,O=0,D=0,R=-1,F=-1,B={},N=ca(&quot;&quot;),j=0,U=0;if(void 0===s._unevaluatedLayout.getValue(&quot;text-radial-offset&quot;)?(j=(A=s.layout.get(&quot;text-offset&quot;).evaluate(b,{},k).map((function(t){return 24*t})))[0],U=A[1]):(j=24*s.layout.get(&quot;text-radial-offset&quot;).evaluate(b,{},k),U=Ql),t.allowVerticalPlacement&amp;&amp;n.vertical){var V=s.layout.get(&quot;text-rotate&quot;).evaluate(b,{},k)+90;C=new Yl(l,e,c,u,f,n.vertical,h,p,d,V),o&amp;&amp;(L=new Yl(l,e,c,u,f,o,m,v,d,V))}if(i){var q=s.layout.get(&quot;icon-rotate&quot;).evaluate(b,{}),H=&quot;none&quot;!==s.layout.get(&quot;icon-text-fit&quot;),G=Ul(i,q,T,H),Y=o?Ul(o,q,T,H):void 0;E=new Yl(l,e,c,u,f,i,m,v,!1,q),P=4*G.length;var W=t.iconSizeData,X=null;&quot;source&quot;===W.kind?(X=[128*s.layout.get(&quot;icon-size&quot;).evaluate(b,{})])[0]&gt;32640&amp;&amp;_(t.layerIds[0]+': Value for &quot;icon-size&quot; is &gt;= 255. Reduce your &quot;icon-size&quot;.'):&quot;composite&quot;===W.kind&amp;&amp;((X=[128*w.compositeIconSizes[0].evaluate(b,{},k),128*w.compositeIconSizes[1].evaluate(b,{},k)])[0]&gt;32640||X[1]&gt;32640)&amp;&amp;_(t.layerIds[0]+': Value for &quot;icon-size&quot; is &gt;= 255. Reduce your &quot;icon-size&quot;.'),t.addSymbols(t.icon,G,X,x,y,b,!1,e,I.lineStartIndex,I.lineLength,-1,k),R=t.icon.placedSymbolArray.length-1,Y&amp;&amp;(z=4*Y.length,t.addSymbols(t.icon,Y,X,x,y,b,gl.vertical,e,I.lineStartIndex,I.lineLength,-1,k),F=t.icon.placedSymbolArray.length-1)}for(var Z in n.horizontal){var J=n.horizontal[Z];if(!S){N=ca(J.text);var K=s.layout.get(&quot;text-rotate&quot;).evaluate(b,{},k);S=new Yl(l,e,c,u,f,J,h,p,d,K)}var Q=1===J.positionedLines.length;if(O+=ec(t,e,J,a,s,d,b,g,I,n.vertical?gl.horizontal:gl.horizontalOnly,Q?Object.keys(n.horizontal):[Z],B,R,w,k),Q)break}n.vertical&amp;&amp;(D+=ec(t,e,n.vertical,a,s,d,b,g,I,gl.vertical,[&quot;vertical&quot;],B,F,w,k));var $=S?S.boxStartIndex:t.collisionBoxArray.length,tt=S?S.boxEndIndex:t.collisionBoxArray.length,et=C?C.boxStartIndex:t.collisionBoxArray.length,rt=C?C.boxEndIndex:t.collisionBoxArray.length,nt=E?E.boxStartIndex:t.collisionBoxArray.length,it=E?E.boxEndIndex:t.collisionBoxArray.length,at=L?L.boxStartIndex:t.collisionBoxArray.length,ot=L?L.boxEndIndex:t.collisionBoxArray.length,st=-1,lt=function(t,e){return t&amp;&amp;t.circleDiameter?Math.max(t.circleDiameter,e):e};st=lt(S,st),st=lt(C,st),st=lt(E,st);var ct=(st=lt(L,st))&gt;-1?1:0;ct&amp;&amp;(st*=M/24),t.glyphOffsetArray.length&gt;=fc.MAX_GLYPHS&amp;&amp;_(&quot;Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907&quot;),void 0!==b.sortKey&amp;&amp;t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey),t.symbolInstances.emplaceBack(e.x,e.y,B.right&gt;=0?B.right:-1,B.center&gt;=0?B.center:-1,B.left&gt;=0?B.left:-1,B.vertical||-1,R,F,N,$,tt,et,rt,nt,it,at,ot,c,O,D,P,z,ct,0,h,j,U,st)}(t,f,s,r,n,i,h,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,v,w,M,l,x,T,A,d,e,a,c,u,o)};if(&quot;line&quot;===S)for(var I=0,P=jl(e.geometry,0,0,8192,8192);I&lt;P.length;I+=1)for(var z=P[I],O=0,D=Nl(z,b,k,r.vertical||g,n,24,y,t.overscaling,8192);O&lt;D.length;O+=1){var R=D[O];g&amp;&amp;nc(t,g.text,E,R)||L(z,R)}else if(&quot;line-center&quot;===S)for(var F=0,B=e.geometry;F&lt;B.length;F+=1){var N=B[F];if(N.length&gt;1){var j=Bl(N,k,r.vertical||g,n,24,y);j&amp;&amp;L(N,j)}}else if(&quot;Polygon&quot;===e.type)for(var U=0,V=Qo(e.geometry,0);U&lt;V.length;U+=1){var q=V[U],H=Zl(q,16);L(q[0],new Cl(H.x,H.y,0))}else if(&quot;LineString&quot;===e.type)for(var G=0,Y=e.geometry;G&lt;Y.length;G+=1){var W=Y[G];L(W,new Cl(W[0].x,W[0].y,0))}else if(&quot;Point&quot;===e.type)for(var X=0,Z=e.geometry;X&lt;Z.length;X+=1)for(var J=0,K=Z[X];J&lt;K.length;J+=1){var Q=K[J];L([Q],new Cl(Q.x,Q.y,0))}}(t,a,p,N,n,c,f,h,w,j,o)},x=0,b=t.features;x&lt;b.length;x+=1)y();a&amp;&amp;t.generateCollisionDebugBuffers()},t.perspective=function(t,e,r,n,i){var a,o=1/Math.tan(e/2);return t[0]=o/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&amp;&amp;i!==1/0?(t[10]=(i+n)*(a=1/(n-i)),t[14]=2*i*n*a):(t[10]=-1,t[14]=-2*n),t},t.pick=function(t,e){for(var r={},n=0;n&lt;e.length;n++){var i=e[n];i in t&amp;&amp;(r[i]=t[i])}return r},t.plugin=ni,t.polygonIntersectsPolygon=Ba,t.postMapLoadEvent=it,t.postTurnstileEvent=rt,t.potpack=fl,t.refProperties=[&quot;type&quot;,&quot;source&quot;,&quot;source-layer&quot;,&quot;minzoom&quot;,&quot;maxzoom&quot;,&quot;filter&quot;,&quot;layout&quot;],t.register=Dn,t.registerForPluginStateChange=function(t){return t({pluginStatus:Jn,pluginURL:Kn}),ti.on(&quot;pluginStateChange&quot;,t),t},t.rotate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l+a*s,t[1]=i*l+o*s,t[2]=n*-s+a*l,t[3]=i*-s+o*l,t},t.rotateX=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];return e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t},t.rotateZ=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];return e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t},t.scale=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.scale$1=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t},t.scale$2=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t},t.setCacheLimits=function(t,e){at=t,ot=e},t.setRTLTextPlugin=function(t,e,r){if(void 0===r&amp;&amp;(r=!1),&quot;deferred&quot;===Jn||&quot;loading&quot;===Jn||&quot;loaded&quot;===Jn)throw new Error(&quot;setRTLTextPlugin cannot be called multiple times.&quot;);Kn=R.resolveURL(t),Jn=&quot;deferred&quot;,Zn=e,$n(),r||ri()},t.sphericalToCartesian=function(t){var e=t[0],r=t[1],n=t[2];return r+=90,r*=Math.PI/180,n*=Math.PI/180,{x:e*Math.cos(r)*Math.sin(n),y:e*Math.sin(r)*Math.sin(n),z:e*Math.cos(n)}},t.sqrLen=function(t){var e=t[0],r=t[1];return e*e+r*r},t.styleSpec=At,t.sub=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t},t.symbolSize=zl,t.transformMat3=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t},t.transformMat4=ao,t.translate=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],m=r[1],v=r[2];return e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n=e[0],t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*m+f*v+e[12],t[13]=i*g+l*m+h*v+e[13],t[14]=a*g+c*m+p*v+e[14],t[15]=o*g+u*m+d*v+e[15]),t},t.triggerPluginCompletionEvent=Qn,t.uniqueId=h,t.validateCustomStyleLayer=function(t){var e=[],r=t.id;return void 0===r&amp;&amp;e.push({message:&quot;layers.&quot;+r+': missing required property &quot;id&quot;'}),void 0===t.render&amp;&amp;e.push({message:&quot;layers.&quot;+r+': missing required method &quot;render&quot;'}),t.renderingMode&amp;&amp;&quot;2d&quot;!==t.renderingMode&amp;&amp;&quot;3d&quot;!==t.renderingMode&amp;&amp;e.push({message:&quot;layers.&quot;+r+': property &quot;renderingMode&quot; must be either &quot;2d&quot; or &quot;3d&quot;'}),e},t.validateLight=An,t.validateStyle=Mn,t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.vectorTile=gs,t.version=&quot;1.10.1&quot;,t.warnOnce=_,t.webpSupported=B,t.window=self,t.wrap=c})),n(0,(function(t){function e(t){var r=typeof t;if(&quot;number&quot;===r||&quot;boolean&quot;===r||&quot;string&quot;===r||null==t)return JSON.stringify(t);if(Array.isArray(t)){for(var n=&quot;[&quot;,i=0,a=t;i&lt;a.length;i+=1)n+=e(a[i])+&quot;,&quot;;return n+&quot;]&quot;}for(var o=Object.keys(t).sort(),s=&quot;{&quot;,l=0;l&lt;o.length;l++)s+=JSON.stringify(o[l])+&quot;:&quot;+e(t[o[l]])+&quot;,&quot;;return s+&quot;}&quot;}function r(r){for(var n=&quot;&quot;,i=0,a=t.refProperties;i&lt;a.length;i+=1)n+=&quot;/&quot;+e(r[a[i]]);return n}var n=function(t){this.keyCache={},t&amp;&amp;this.replace(t)};n.prototype.replace=function(t){this._layerConfigs={},this._layers={},this.update(t,[])},n.prototype.update=function(e,n){for(var i=this,a=0,o=e;a&lt;o.length;a+=1){var s=o[a];this._layerConfigs[s.id]=s;var l=this._layers[s.id]=t.createStyleLayer(s);l._featureFilter=t.featureFilter(l.filter),this.keyCache[s.id]&amp;&amp;delete this.keyCache[s.id]}for(var c=0,u=n;c&lt;u.length;c+=1){var f=u[c];delete this.keyCache[f],delete this._layerConfigs[f],delete this._layers[f]}this.familiesBySource={};for(var h=0,p=function(t,e){for(var n={},i=0;i&lt;t.length;i++){var a=e&amp;&amp;e[t[i].id]||r(t[i]);e&amp;&amp;(e[t[i].id]=a);var o=n[a];o||(o=n[a]=[]),o.push(t[i])}var s=[];for(var l in n)s.push(n[l]);return s}(t.values(this._layerConfigs),this.keyCache);h&lt;p.length;h+=1){var d=p[h].map((function(t){return i._layers[t.id]})),g=d[0];if(&quot;none&quot;!==g.visibility){var m=g.source||&quot;&quot;,v=this.familiesBySource[m];v||(v=this.familiesBySource[m]={});var y=g.sourceLayer||&quot;_geojsonTileLayer&quot;,x=v[y];x||(x=v[y]=[]),x.push(d)}}};var i=function(e){var r={},n=[];for(var i in e){var a=e[i],o=r[i]={};for(var s in a){var l=a[+s];if(l&amp;&amp;0!==l.bitmap.width&amp;&amp;0!==l.bitmap.height){var c={x:0,y:0,w:l.bitmap.width+2,h:l.bitmap.height+2};n.push(c),o[s]={rect:c,metrics:l.metrics}}}}var u=t.potpack(n),f=new t.AlphaImage({width:u.w||1,height:u.h||1});for(var h in e){var p=e[h];for(var d in p){var g=p[+d];if(g&amp;&amp;0!==g.bitmap.width&amp;&amp;0!==g.bitmap.height){var m=r[h][d].rect;t.AlphaImage.copy(g.bitmap,f,{x:0,y:0},{x:m.x+1,y:m.y+1},g.bitmap)}}}this.image=f,this.positions=r};t.register(&quot;GlyphAtlas&quot;,i);var a=function(e){this.tileID=new t.OverscaledTileID(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId};function o(e,r,n){for(var i=new t.EvaluationParameters(r),a=0,o=e;a&lt;o.length;a+=1)o[a].recalculate(i,n)}function s(e,r){var n=t.getArrayBuffer(e.request,(function(e,n,i,a){e?r(e):n&amp;&amp;r(null,{vectorTile:new t.vectorTile.VectorTile(new t.pbf(n)),rawData:n,cacheControl:i,expires:a})}));return function(){n.cancel(),r()}}a.prototype.parse=function(e,r,n,a,s){var l=this;this.status=&quot;parsing&quot;,this.data=e,this.collisionBoxArray=new t.CollisionBoxArray;var c=new t.DictionaryCoder(Object.keys(e.layers).sort()),u=new t.FeatureIndex(this.tileID,this.promoteId);u.bucketLayerIDs=[];var f,h,p,d,g={},m={featureIndex:u,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:n},v=r.familiesBySource[this.source];for(var y in v){var x=e.layers[y];if(x){1===x.version&amp;&amp;t.warnOnce('Vector tile source &quot;'+this.source+'&quot; layer &quot;'+y+'&quot; does not use vector tile spec v2 and therefore may have some rendering errors.');for(var b=c.encode(y),_=[],w=0;w&lt;x.length;w++){var T=x.feature(w),k=u.getId(T,y);_.push({feature:T,id:k,index:w,sourceLayerIndex:b})}for(var M=0,A=v[y];M&lt;A.length;M+=1){var S=A[M],E=S[0];E.minzoom&amp;&amp;this.zoom&lt;Math.floor(E.minzoom)||E.maxzoom&amp;&amp;this.zoom&gt;=E.maxzoom||&quot;none&quot;!==E.visibility&amp;&amp;(o(S,this.zoom,n),(g[E.id]=E.createBucket({index:u.bucketLayerIDs.length,layers:S,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:b,sourceID:this.source})).populate(_,m,this.tileID.canonical),u.bucketLayerIDs.push(S.map((function(t){return t.id}))))}}}var C=t.mapObject(m.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(C).length?a.send(&quot;getGlyphs&quot;,{uid:this.uid,stacks:C},(function(t,e){f||(f=t,h=e,P.call(l))})):h={};var L=Object.keys(m.iconDependencies);L.length?a.send(&quot;getImages&quot;,{icons:L,source:this.source,tileID:this.tileID,type:&quot;icons&quot;},(function(t,e){f||(f=t,p=e,P.call(l))})):p={};var I=Object.keys(m.patternDependencies);function P(){if(f)return s(f);if(h&amp;&amp;p&amp;&amp;d){var e=new i(h),r=new t.ImageAtlas(p,d);for(var a in g){var l=g[a];l instanceof t.SymbolBucket?(o(l.layers,this.zoom,n),t.performSymbolLayout(l,h,e.positions,p,r.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):l.hasPattern&amp;&amp;(l instanceof t.LineBucket||l instanceof t.FillBucket||l instanceof t.FillExtrusionBucket)&amp;&amp;(o(l.layers,this.zoom,n),l.addFeatures(m,this.tileID.canonical,r.patternPositions))}this.status=&quot;done&quot;,s(null,{buckets:t.values(g).filter((function(t){return!t.isEmpty()})),featureIndex:u,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:r,glyphMap:this.returnDependencies?h:null,iconMap:this.returnDependencies?p:null,glyphPositions:this.returnDependencies?e.positions:null})}}I.length?a.send(&quot;getImages&quot;,{icons:I,source:this.source,tileID:this.tileID,type:&quot;patterns&quot;},(function(t,e){f||(f=t,d=e,P.call(l))})):d={},P.call(this)};var l=function(t,e,r,n){this.actor=t,this.layerIndex=e,this.availableImages=r,this.loadVectorData=n||s,this.loading={},this.loaded={}};l.prototype.loadTile=function(e,r){var n=this,i=e.uid;this.loading||(this.loading={});var o=!!(e&amp;&amp;e.request&amp;&amp;e.request.collectResourceTiming)&amp;&amp;new t.RequestPerformance(e.request),s=this.loading[i]=new a(e);s.abort=this.loadVectorData(e,(function(e,a){if(delete n.loading[i],e||!a)return s.status=&quot;done&quot;,n.loaded[i]=s,r(e);var l=a.rawData,c={};a.expires&amp;&amp;(c.expires=a.expires),a.cacheControl&amp;&amp;(c.cacheControl=a.cacheControl);var u={};if(o){var f=o.finish();f&amp;&amp;(u.resourceTiming=JSON.parse(JSON.stringify(f)))}s.vectorTile=a.vectorTile,s.parse(a.vectorTile,n.layerIndex,n.availableImages,n.actor,(function(e,n){if(e||!n)return r(e);r(null,t.extend({rawTileData:l.slice(0)},n,c,u))})),n.loaded=n.loaded||{},n.loaded[i]=s}))},l.prototype.reloadTile=function(t,e){var r=this,n=this.loaded,i=t.uid,a=this;if(n&amp;&amp;n[i]){var o=n[i];o.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,n){var i=o.reloadCallback;i&amp;&amp;(delete o.reloadCallback,o.parse(o.vectorTile,a.layerIndex,r.availableImages,a.actor,i)),e(t,n)};&quot;parsing&quot;===o.status?o.reloadCallback=s:&quot;done&quot;===o.status&amp;&amp;(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},l.prototype.abortTile=function(t,e){var r=this.loading,n=t.uid;r&amp;&amp;r[n]&amp;&amp;r[n].abort&amp;&amp;(r[n].abort(),delete r[n]),e()},l.prototype.removeTile=function(t,e){var r=this.loaded,n=t.uid;r&amp;&amp;r[n]&amp;&amp;delete r[n],e()};var c=t.window.ImageBitmap,u=function(){this.loaded={}};function f(t,e){if(0!==t.length){h(t[0],e);for(var r=1;r&lt;t.length;r++)h(t[r],!e)}}function h(t,e){for(var r=0,n=0,i=t.length,a=i-1;n&lt;i;a=n++)r+=(t[n][0]-t[a][0])*(t[a][1]+t[n][1]);r&gt;=0!=!!e&amp;&amp;t.reverse()}u.prototype.loadTile=function(e,r){var n=e.uid,i=e.encoding,a=e.rawImageData,o=c&amp;&amp;a instanceof c?this.getImageData(a):a,s=new t.DEMData(n,o,i);this.loaded=this.loaded||{},this.loaded[n]=s,r(null,s)},u.prototype.getImageData=function(e){this.offscreenCanvas&amp;&amp;this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext(&quot;2d&quot;)),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);var r=this.offscreenCanvasContext.getImageData(-1,-1,e.width+2,e.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new t.RGBAImage({width:r.width,height:r.height},r.data)},u.prototype.removeTile=function(t){var e=this.loaded,r=t.uid;e&amp;&amp;e[r]&amp;&amp;delete e[r]};var p=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,d=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,&quot;id&quot;in e&amp;&amp;!isNaN(e.id)&amp;&amp;(this.id=parseInt(e.id,10))};d.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],r=0,n=this._feature.geometry;r&lt;n.length;r+=1){var i=n[r];e.push([new t.Point$1(i[0],i[1])])}return e}for(var a=[],o=0,s=this._feature.geometry;o&lt;s.length;o+=1){for(var l=[],c=0,u=s[o];c&lt;u.length;c+=1){var f=u[c];l.push(new t.Point$1(f[0],f[1]))}a.push(l)}return a},d.prototype.toGeoJSON=function(t,e,r){return p.call(this,t,e,r)};var g=function(e){this.layers={_geojsonTileLayer:this},this.name=&quot;_geojsonTileLayer&quot;,this.extent=t.EXTENT,this.length=e.length,this._features=e};g.prototype.feature=function(t){return new d(this._features[t])};var m=t.vectorTile.VectorTileFeature,v=y;function y(t,e){this.options=e||{},this.features=t,this.length=t.length}function x(t,e){this.id=&quot;number&quot;==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}y.prototype.feature=function(t){return new x(this.features[t],this.options.extent)},x.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var r=0;r&lt;e.length;r++){for(var n=e[r],i=[],a=0;a&lt;n.length;a++)i.push(new t.Point$1(n[a][0],n[a][1]));this.geometry.push(i)}return this.geometry},x.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,r=-1/0,n=1/0,i=-1/0,a=0;a&lt;t.length;a++)for(var o=t[a],s=0;s&lt;o.length;s++){var l=o[s];e=Math.min(e,l.x),r=Math.max(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.y)}return[e,n,r,i]},x.prototype.toGeoJSON=m.prototype.toGeoJSON;var b=w,_=v;function w(e){var r=new t.pbf;return function(t,e){for(var r in t.layers)e.writeMessage(3,T,t.layers[r])}(e,r),r.finish()}function T(t,e){var r;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||&quot;&quot;),e.writeVarintField(5,t.extent||4096);var n={keys:[],values:[],keycache:{},valuecache:{}};for(r=0;r&lt;t.length;r++)n.feature=t.feature(r),e.writeMessage(2,k,n);var i=n.keys;for(r=0;r&lt;i.length;r++)e.writeStringField(3,i[r]);var a=n.values;for(r=0;r&lt;a.length;r++)e.writeMessage(4,C,a[r])}function k(t,e){var r=t.feature;void 0!==r.id&amp;&amp;e.writeVarintField(1,r.id),e.writeMessage(2,M,t),e.writeVarintField(3,r.type),e.writeMessage(4,E,r)}function M(t,e){var r=t.feature,n=t.keys,i=t.values,a=t.keycache,o=t.valuecache;for(var s in r.properties){var l=a[s];void 0===l&amp;&amp;(n.push(s),a[s]=l=n.length-1),e.writeVarint(l);var c=r.properties[s],u=typeof c;&quot;string&quot;!==u&amp;&amp;&quot;boolean&quot;!==u&amp;&amp;&quot;number&quot;!==u&amp;&amp;(c=JSON.stringify(c));var f=u+&quot;:&quot;+c,h=o[f];void 0===h&amp;&amp;(i.push(c),o[f]=h=i.length-1),e.writeVarint(h)}}function A(t,e){return(e&lt;&lt;3)+(7&amp;t)}function S(t){return t&lt;&lt;1^t&gt;&gt;31}function E(t,e){for(var r=t.loadGeometry(),n=t.type,i=0,a=0,o=r.length,s=0;s&lt;o;s++){var l=r[s],c=1;1===n&amp;&amp;(c=l.length),e.writeVarint(A(1,c));for(var u=3===n?l.length-1:l.length,f=0;f&lt;u;f++){1===f&amp;&amp;1!==n&amp;&amp;e.writeVarint(A(2,u-1));var h=l[f].x-i,p=l[f].y-a;e.writeVarint(S(h)),e.writeVarint(S(p)),i+=h,a+=p}3===n&amp;&amp;e.writeVarint(A(7,1))}}function C(t,e){var r=typeof t;&quot;string&quot;===r?e.writeStringField(1,t):&quot;boolean&quot;===r?e.writeBooleanField(7,t):&quot;number&quot;===r&amp;&amp;(t%1!=0?e.writeDoubleField(3,t):t&lt;0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}function L(t,e,r,n){I(t,r,n),I(e,2*r,2*n),I(e,2*r+1,2*n+1)}function I(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function P(t,e,r,n){var i=t-r,a=e-n;return i*i+a*a}b.fromVectorTileJs=w,b.fromGeojsonVt=function(t,e){e=e||{};var r={};for(var n in t)r[n]=new v(t[n].features,e),r[n].name=n,r[n].version=e.version,r[n].extent=e.extent;return w({layers:r})},b.GeoJSONWrapper=_;var z=function(t){return t[0]},O=function(t){return t[1]},D=function(t,e,r,n,i){void 0===e&amp;&amp;(e=z),void 0===r&amp;&amp;(r=O),void 0===n&amp;&amp;(n=64),void 0===i&amp;&amp;(i=Float64Array),this.nodeSize=n,this.points=t;for(var a=t.length&lt;65536?Uint16Array:Uint32Array,o=this.ids=new a(t.length),s=this.coords=new i(2*t.length),l=0;l&lt;t.length;l++)o[l]=l,s[2*l]=e(t[l]),s[2*l+1]=r(t[l]);!function t(e,r,n,i,a,o){if(!(a-i&lt;=n)){var s=i+a&gt;&gt;1;!function t(e,r,n,i,a,o){for(;a&gt;i;){if(a-i&gt;600){var s=a-i+1,l=n-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2&lt;0?-1:1);t(e,r,n,Math.max(i,Math.floor(n-l*u/s+f)),Math.min(a,Math.floor(n+(s-l)*u/s+f)),o)}var h=r[2*n+o],p=i,d=a;for(L(e,r,i,n),r[2*a+o]&gt;h&amp;&amp;L(e,r,i,a);p&lt;d;){for(L(e,r,p,d),p++,d--;r[2*p+o]&lt;h;)p++;for(;r[2*d+o]&gt;h;)d--}r[2*i+o]===h?L(e,r,i,d):L(e,r,++d,a),d&lt;=n&amp;&amp;(i=d+1),n&lt;=d&amp;&amp;(a=d-1)}}(e,r,s,i,a,o%2),t(e,r,n,i,s-1,o+1),t(e,r,n,s+1,a,o+1)}}(o,s,n,0,o.length-1,0)};D.prototype.range=function(t,e,r,n){return function(t,e,r,n,i,a,o){for(var s,l,c=[0,t.length-1,0],u=[];c.length;){var f=c.pop(),h=c.pop(),p=c.pop();if(h-p&lt;=o)for(var d=p;d&lt;=h;d++)l=e[2*d+1],(s=e[2*d])&gt;=r&amp;&amp;s&lt;=i&amp;&amp;l&gt;=n&amp;&amp;l&lt;=a&amp;&amp;u.push(t[d]);else{var g=Math.floor((p+h)/2);l=e[2*g+1],(s=e[2*g])&gt;=r&amp;&amp;s&lt;=i&amp;&amp;l&gt;=n&amp;&amp;l&lt;=a&amp;&amp;u.push(t[g]);var m=(f+1)%2;(0===f?r&lt;=s:n&lt;=l)&amp;&amp;(c.push(p),c.push(g-1),c.push(m)),(0===f?i&gt;=s:a&gt;=l)&amp;&amp;(c.push(g+1),c.push(h),c.push(m))}}return u}(this.ids,this.coords,t,e,r,n,this.nodeSize)},D.prototype.within=function(t,e,r){return function(t,e,r,n,i,a){for(var o=[0,t.length-1,0],s=[],l=i*i;o.length;){var c=o.pop(),u=o.pop(),f=o.pop();if(u-f&lt;=a)for(var h=f;h&lt;=u;h++)P(e[2*h],e[2*h+1],r,n)&lt;=l&amp;&amp;s.push(t[h]);else{var p=Math.floor((f+u)/2),d=e[2*p],g=e[2*p+1];P(d,g,r,n)&lt;=l&amp;&amp;s.push(t[p]);var m=(c+1)%2;(0===c?r-i&lt;=d:n-i&lt;=g)&amp;&amp;(o.push(f),o.push(p-1),o.push(m)),(0===c?r+i&gt;=d:n+i&gt;=g)&amp;&amp;(o.push(p+1),o.push(u),o.push(m))}}return s}(this.ids,this.coords,t,e,r,this.nodeSize)};var R={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},F=function(t){this.options=H(Object.create(R),t),this.trees=new Array(this.options.maxZoom+1)};function B(t,e,r,n,i){return{x:t,y:e,zoom:1/0,id:r,parentId:-1,numPoints:n,properties:i}}function N(t,e){var r=t.geometry.coordinates,n=r[1];return{x:V(r[0]),y:q(n),zoom:1/0,index:e,parentId:-1}}function j(t){return{type:&quot;Feature&quot;,id:t.id,properties:U(t),geometry:{type:&quot;Point&quot;,coordinates:[(n=t.x,360*(n-.5)),(e=t.y,r=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(r))/Math.PI-90)]}};var e,r,n}function U(t){var e=t.numPoints,r=e&gt;=1e4?Math.round(e/1e3)+&quot;k&quot;:e&gt;=1e3?Math.round(e/100)/10+&quot;k&quot;:e;return H(H({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function V(t){return t/360+.5}function q(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function H(t,e){for(var r in e)t[r]=e[r];return t}function G(t){return t.x}function Y(t){return t.y}function W(t,e,r,n,i,a){var o=i-r,s=a-n;if(0!==o||0!==s){var l=((t-r)*o+(e-n)*s)/(o*o+s*s);l&gt;1?(r=i,n=a):l&gt;0&amp;&amp;(r+=o*l,n+=s*l)}return(o=t-r)*o+(s=e-n)*s}function X(t,e,r,n){var i={id:void 0===t?null:t,type:e,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,r=t.type;if(&quot;Point&quot;===r||&quot;MultiPoint&quot;===r||&quot;LineString&quot;===r)Z(t,e);else if(&quot;Polygon&quot;===r||&quot;MultiLineString&quot;===r)for(var n=0;n&lt;e.length;n++)Z(t,e[n]);else if(&quot;MultiPolygon&quot;===r)for(n=0;n&lt;e.length;n++)for(var i=0;i&lt;e[n].length;i++)Z(t,e[n][i])}(i),i}function Z(t,e){for(var r=0;r&lt;e.length;r+=3)t.minX=Math.min(t.minX,e[r]),t.minY=Math.min(t.minY,e[r+1]),t.maxX=Math.max(t.maxX,e[r]),t.maxY=Math.max(t.maxY,e[r+1])}function J(t,e,r,n){if(e.geometry){var i=e.geometry.coordinates,a=e.geometry.type,o=Math.pow(r.tolerance/((1&lt;&lt;r.maxZoom)*r.extent),2),s=[],l=e.id;if(r.promoteId?l=e.properties[r.promoteId]:r.generateId&amp;&amp;(l=n||0),&quot;Point&quot;===a)K(i,s);else if(&quot;MultiPoint&quot;===a)for(var c=0;c&lt;i.length;c++)K(i[c],s);else if(&quot;LineString&quot;===a)Q(i,s,o,!1);else if(&quot;MultiLineString&quot;===a){if(r.lineMetrics){for(c=0;c&lt;i.length;c++)Q(i[c],s=[],o,!1),t.push(X(l,&quot;LineString&quot;,s,e.properties));return}$(i,s,o,!1)}else if(&quot;Polygon&quot;===a)$(i,s,o,!0);else{if(&quot;MultiPolygon&quot;!==a){if(&quot;GeometryCollection&quot;===a){for(c=0;c&lt;e.geometry.geometries.length;c++)J(t,{id:l,geometry:e.geometry.geometries[c],properties:e.properties},r,n);return}throw new Error(&quot;Input data is not a valid GeoJSON object.&quot;)}for(c=0;c&lt;i.length;c++){var u=[];$(i[c],u,o,!0),s.push(u)}}t.push(X(l,a,s,e.properties))}}function K(t,e){e.push(tt(t[0])),e.push(et(t[1])),e.push(0)}function Q(t,e,r,n){for(var i,a,o=0,s=0;s&lt;t.length;s++){var l=tt(t[s][0]),c=et(t[s][1]);e.push(l),e.push(c),e.push(0),s&gt;0&amp;&amp;(o+=n?(i*c-l*a)/2:Math.sqrt(Math.pow(l-i,2)+Math.pow(c-a,2))),i=l,a=c}var u=e.length-3;e[2]=1,function t(e,r,n,i){for(var a,o=i,s=n-r&gt;&gt;1,l=n-r,c=e[r],u=e[r+1],f=e[n],h=e[n+1],p=r+3;p&lt;n;p+=3){var d=W(e[p],e[p+1],c,u,f,h);if(d&gt;o)a=p,o=d;else if(d===o){var g=Math.abs(p-s);g&lt;l&amp;&amp;(a=p,l=g)}}o&gt;i&amp;&amp;(a-r&gt;3&amp;&amp;t(e,r,a,i),e[a+2]=o,n-a&gt;3&amp;&amp;t(e,a,n,i))}(e,0,u,r),e[u+2]=1,e.size=Math.abs(o),e.start=0,e.end=e.size}function $(t,e,r,n){for(var i=0;i&lt;t.length;i++){var a=[];Q(t[i],a,r,n),e.push(a)}}function tt(t){return t/360+.5}function et(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function rt(t,e,r,n,i,a,o,s){if(n/=e,a&gt;=(r/=e)&amp;&amp;o&lt;n)return t;if(o&lt;r||a&gt;=n)return null;for(var l=[],c=0;c&lt;t.length;c++){var u=t[c],f=u.geometry,h=u.type,p=0===i?u.minX:u.minY,d=0===i?u.maxX:u.maxY;if(p&gt;=r&amp;&amp;d&lt;n)l.push(u);else if(!(d&lt;r||p&gt;=n)){var g=[];if(&quot;Point&quot;===h||&quot;MultiPoint&quot;===h)nt(f,g,r,n,i);else if(&quot;LineString&quot;===h)it(f,g,r,n,i,!1,s.lineMetrics);else if(&quot;MultiLineString&quot;===h)ot(f,g,r,n,i,!1);else if(&quot;Polygon&quot;===h)ot(f,g,r,n,i,!0);else if(&quot;MultiPolygon&quot;===h)for(var m=0;m&lt;f.length;m++){var v=[];ot(f[m],v,r,n,i,!0),v.length&amp;&amp;g.push(v)}if(g.length){if(s.lineMetrics&amp;&amp;&quot;LineString&quot;===h){for(m=0;m&lt;g.length;m++)l.push(X(u.id,h,g[m],u.tags));continue}&quot;LineString&quot;!==h&amp;&amp;&quot;MultiLineString&quot;!==h||(1===g.length?(h=&quot;LineString&quot;,g=g[0]):h=&quot;MultiLineString&quot;),&quot;Point&quot;!==h&amp;&amp;&quot;MultiPoint&quot;!==h||(h=3===g.length?&quot;Point&quot;:&quot;MultiPoint&quot;),l.push(X(u.id,h,g,u.tags))}}}return l.length?l:null}function nt(t,e,r,n,i){for(var a=0;a&lt;t.length;a+=3){var o=t[a+i];o&gt;=r&amp;&amp;o&lt;=n&amp;&amp;(e.push(t[a]),e.push(t[a+1]),e.push(t[a+2]))}}function it(t,e,r,n,i,a,o){for(var s,l,c=at(t),u=0===i?lt:ct,f=t.start,h=0;h&lt;t.length-3;h+=3){var p=t[h],d=t[h+1],g=t[h+2],m=t[h+3],v=t[h+4],y=0===i?p:d,x=0===i?m:v,b=!1;o&amp;&amp;(s=Math.sqrt(Math.pow(p-m,2)+Math.pow(d-v,2))),y&lt;r?x&gt;r&amp;&amp;(l=u(c,p,d,m,v,r),o&amp;&amp;(c.start=f+s*l)):y&gt;n?x&lt;n&amp;&amp;(l=u(c,p,d,m,v,n),o&amp;&amp;(c.start=f+s*l)):st(c,p,d,g),x&lt;r&amp;&amp;y&gt;=r&amp;&amp;(l=u(c,p,d,m,v,r),b=!0),x&gt;n&amp;&amp;y&lt;=n&amp;&amp;(l=u(c,p,d,m,v,n),b=!0),!a&amp;&amp;b&amp;&amp;(o&amp;&amp;(c.end=f+s*l),e.push(c),c=at(t)),o&amp;&amp;(f+=s)}var _=t.length-3;p=t[_],d=t[_+1],g=t[_+2],(y=0===i?p:d)&gt;=r&amp;&amp;y&lt;=n&amp;&amp;st(c,p,d,g),_=c.length-3,a&amp;&amp;_&gt;=3&amp;&amp;(c[_]!==c[0]||c[_+1]!==c[1])&amp;&amp;st(c,c[0],c[1],c[2]),c.length&amp;&amp;e.push(c)}function at(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function ot(t,e,r,n,i,a){for(var o=0;o&lt;t.length;o++)it(t[o],e,r,n,i,a,!1)}function st(t,e,r,n){t.push(e),t.push(r),t.push(n)}function lt(t,e,r,n,i,a){var o=(a-e)/(n-e);return t.push(a),t.push(r+(i-r)*o),t.push(1),o}function ct(t,e,r,n,i,a){var o=(a-r)/(i-r);return t.push(e+(n-e)*o),t.push(a),t.push(1),o}function ut(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i,a=t[n],o=a.type;if(&quot;Point&quot;===o||&quot;MultiPoint&quot;===o||&quot;LineString&quot;===o)i=ft(a.geometry,e);else if(&quot;MultiLineString&quot;===o||&quot;Polygon&quot;===o){i=[];for(var s=0;s&lt;a.geometry.length;s++)i.push(ft(a.geometry[s],e))}else if(&quot;MultiPolygon&quot;===o)for(i=[],s=0;s&lt;a.geometry.length;s++){for(var l=[],c=0;c&lt;a.geometry[s].length;c++)l.push(ft(a.geometry[s][c],e));i.push(l)}r.push(X(a.id,o,i,a.tags))}return r}function ft(t,e){var r=[];r.size=t.size,void 0!==t.start&amp;&amp;(r.start=t.start,r.end=t.end);for(var n=0;n&lt;t.length;n+=3)r.push(t[n]+e,t[n+1],t[n+2]);return r}function ht(t,e){if(t.transformed)return t;var r,n,i,a=1&lt;&lt;t.z,o=t.x,s=t.y;for(r=0;r&lt;t.features.length;r++){var l=t.features[r],c=l.geometry,u=l.type;if(l.geometry=[],1===u)for(n=0;n&lt;c.length;n+=2)l.geometry.push(pt(c[n],c[n+1],e,a,o,s));else for(n=0;n&lt;c.length;n++){var f=[];for(i=0;i&lt;c[n].length;i+=2)f.push(pt(c[n][i],c[n][i+1],e,a,o,s));l.geometry.push(f)}}return t.transformed=!0,t}function pt(t,e,r,n,i,a){return[Math.round(r*(t*n-i)),Math.round(r*(e*n-a))]}function dt(t,e,r,n,i){for(var a=e===i.maxZoom?0:i.tolerance/((1&lt;&lt;e)*i.extent),o={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:r,y:n,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s&lt;t.length;s++){o.numFeatures++,gt(o,t[s],a,i);var l=t[s].minX,c=t[s].minY,u=t[s].maxX,f=t[s].maxY;l&lt;o.minX&amp;&amp;(o.minX=l),c&lt;o.minY&amp;&amp;(o.minY=c),u&gt;o.maxX&amp;&amp;(o.maxX=u),f&gt;o.maxY&amp;&amp;(o.maxY=f)}return o}function gt(t,e,r,n){var i=e.geometry,a=e.type,o=[];if(&quot;Point&quot;===a||&quot;MultiPoint&quot;===a)for(var s=0;s&lt;i.length;s+=3)o.push(i[s]),o.push(i[s+1]),t.numPoints++,t.numSimplified++;else if(&quot;LineString&quot;===a)mt(o,i,t,r,!1,!1);else if(&quot;MultiLineString&quot;===a||&quot;Polygon&quot;===a)for(s=0;s&lt;i.length;s++)mt(o,i[s],t,r,&quot;Polygon&quot;===a,0===s);else if(&quot;MultiPolygon&quot;===a)for(var l=0;l&lt;i.length;l++){var c=i[l];for(s=0;s&lt;c.length;s++)mt(o,c[s],t,r,!0,0===s)}if(o.length){var u=e.tags||null;if(&quot;LineString&quot;===a&amp;&amp;n.lineMetrics){for(var f in u={},e.tags)u[f]=e.tags[f];u.mapbox_clip_start=i.start/i.size,u.mapbox_clip_end=i.end/i.size}var h={geometry:o,type:&quot;Polygon&quot;===a||&quot;MultiPolygon&quot;===a?3:&quot;LineString&quot;===a||&quot;MultiLineString&quot;===a?2:1,tags:u};null!==e.id&amp;&amp;(h.id=e.id),t.features.push(h)}}function mt(t,e,r,n,i,a){var o=n*n;if(n&gt;0&amp;&amp;e.size&lt;(i?o:n))r.numPoints+=e.length/3;else{for(var s=[],l=0;l&lt;e.length;l+=3)(0===n||e[l+2]&gt;o)&amp;&amp;(r.numSimplified++,s.push(e[l]),s.push(e[l+1])),r.numPoints++;i&amp;&amp;function(t,e){for(var r=0,n=0,i=t.length,a=i-2;n&lt;i;a=n,n+=2)r+=(t[n]-t[a])*(t[n+1]+t[a+1]);if(r&gt;0===e)for(n=0,i=t.length;n&lt;i/2;n+=2){var o=t[n],s=t[n+1];t[n]=t[i-2-n],t[n+1]=t[i-1-n],t[i-2-n]=o,t[i-1-n]=s}}(s,a),t.push(s)}}function vt(t,e){var r=(e=this.options=function(t,e){for(var r in e)t[r]=e[r];return t}(Object.create(this.options),e)).debug;if(r&amp;&amp;console.time(&quot;preprocess data&quot;),e.maxZoom&lt;0||e.maxZoom&gt;24)throw new Error(&quot;maxZoom should be in the 0-24 range&quot;);if(e.promoteId&amp;&amp;e.generateId)throw new Error(&quot;promoteId and generateId cannot be used together.&quot;);var n=function(t,e){var r=[];if(&quot;FeatureCollection&quot;===t.type)for(var n=0;n&lt;t.features.length;n++)J(r,t.features[n],e,n);else J(r,&quot;Feature&quot;===t.type?t:{geometry:t},e);return r}(t,e);this.tiles={},this.tileCoords=[],r&amp;&amp;(console.timeEnd(&quot;preprocess data&quot;),console.log(&quot;index: maxZoom: %d, maxPoints: %d&quot;,e.indexMaxZoom,e.indexMaxPoints),console.time(&quot;generate tiles&quot;),this.stats={},this.total=0),(n=function(t,e){var r=e.buffer/e.extent,n=t,i=rt(t,1,-1-r,r,0,-1,2,e),a=rt(t,1,1-r,2+r,0,-1,2,e);return(i||a)&amp;&amp;(n=rt(t,1,-r,1+r,0,-1,2,e)||[],i&amp;&amp;(n=ut(i,1).concat(n)),a&amp;&amp;(n=n.concat(ut(a,-1)))),n}(n,e)).length&amp;&amp;this.splitTile(n,0,0,0),r&amp;&amp;(n.length&amp;&amp;console.log(&quot;features: %d, points: %d&quot;,this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd(&quot;generate tiles&quot;),console.log(&quot;tiles generated:&quot;,this.total,JSON.stringify(this.stats)))}function yt(t,e,r){return 32*((1&lt;&lt;t)*r+e)+t}function xt(t,e){var r=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);var n=this._geoJSONIndex.getTile(r.z,r.x,r.y);if(!n)return e(null,null);var i=new g(n.features),a=b(i);0===a.byteOffset&amp;&amp;a.byteLength===a.buffer.byteLength||(a=new Uint8Array(a)),e(null,{vectorTile:i,rawData:a.buffer})}F.prototype.load=function(t){var e=this.options,r=e.log,n=e.minZoom,i=e.maxZoom,a=e.nodeSize;r&amp;&amp;console.time(&quot;total time&quot;);var o=&quot;prepare &quot;+t.length+&quot; points&quot;;r&amp;&amp;console.time(o),this.points=t;for(var s=[],l=0;l&lt;t.length;l++)t[l].geometry&amp;&amp;s.push(N(t[l],l));this.trees[i+1]=new D(s,G,Y,a,Float32Array),r&amp;&amp;console.timeEnd(o);for(var c=i;c&gt;=n;c--){var u=+Date.now();s=this._cluster(s,c),this.trees[c]=new D(s,G,Y,a,Float32Array),r&amp;&amp;console.log(&quot;z%d: %d clusters in %dms&quot;,c,s.length,+Date.now()-u)}return r&amp;&amp;console.timeEnd(&quot;total time&quot;),this},F.prototype.getClusters=function(t,e){var r=((t[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]&gt;=360)r=-180,i=180;else if(r&gt;i){var o=this.getClusters([r,n,180,a],e),s=this.getClusters([-180,n,i,a],e);return o.concat(s)}for(var l=this.trees[this._limitZoom(e)],c=[],u=0,f=l.range(V(r),q(a),V(i),q(n));u&lt;f.length;u+=1){var h=l.points[f[u]];c.push(h.numPoints?j(h):this.points[h.index])}return c},F.prototype.getChildren=function(t){var e=this._getOriginId(t),r=this._getOriginZoom(t),n=&quot;No cluster with the specified id.&quot;,i=this.trees[r];if(!i)throw new Error(n);var a=i.points[e];if(!a)throw new Error(n);for(var o=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=[],l=0,c=i.within(a.x,a.y,o);l&lt;c.length;l+=1){var u=i.points[c[l]];u.parentId===t&amp;&amp;s.push(u.numPoints?j(u):this.points[u.index])}if(0===s.length)throw new Error(n);return s},F.prototype.getLeaves=function(t,e,r){var n=[];return this._appendLeaves(n,t,e=e||10,r=r||0,0),n},F.prototype.getTile=function(t,e,r){var n=this.trees[this._limitZoom(t)],i=Math.pow(2,t),a=this.options,o=a.radius/a.extent,s=(r-o)/i,l=(r+1+o)/i,c={features:[]};return this._addTileFeatures(n.range((e-o)/i,s,(e+1+o)/i,l),n.points,e,r,i,c),0===e&amp;&amp;this._addTileFeatures(n.range(1-o/i,s,1,l),n.points,i,r,i,c),e===i-1&amp;&amp;this._addTileFeatures(n.range(0,s,o/i,l),n.points,-1,r,i,c),c.features.length?c:null},F.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e&lt;=this.options.maxZoom;){var r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e},F.prototype._appendLeaves=function(t,e,r,n,i){for(var a=0,o=this.getChildren(e);a&lt;o.length;a+=1){var s=o[a],l=s.properties;if(l&amp;&amp;l.cluster?i+l.point_count&lt;=n?i+=l.point_count:i=this._appendLeaves(t,l.cluster_id,r,n,i):i&lt;n?i++:t.push(s),t.length===r)break}return i},F.prototype._addTileFeatures=function(t,e,r,n,i,a){for(var o=0,s=t;o&lt;s.length;o+=1){var l=e[s[o]],c=l.numPoints,u={type:1,geometry:[[Math.round(this.options.extent*(l.x*i-r)),Math.round(this.options.extent*(l.y*i-n))]],tags:c?U(l):this.points[l.index].properties},f=void 0;c?f=l.id:this.options.generateId?f=l.index:this.points[l.index].id&amp;&amp;(f=this.points[l.index].id),void 0!==f&amp;&amp;(u.id=f),a.features.push(u)}},F.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},F.prototype._cluster=function(t,e){for(var r=[],n=this.options,i=n.reduce,a=n.radius/(n.extent*Math.pow(2,e)),o=0;o&lt;t.length;o++){var s=t[o];if(!(s.zoom&lt;=e)){s.zoom=e;for(var l=this.trees[e+1],c=l.within(s.x,s.y,a),u=s.numPoints||1,f=s.x*u,h=s.y*u,p=i&amp;&amp;u&gt;1?this._map(s,!0):null,d=(o&lt;&lt;5)+(e+1)+this.points.length,g=0,m=c;g&lt;m.length;g+=1){var v=l.points[m[g]];if(!(v.zoom&lt;=e)){v.zoom=e;var y=v.numPoints||1;f+=v.x*y,h+=v.y*y,u+=y,v.parentId=d,i&amp;&amp;(p||(p=this._map(s,!0)),i(p,this._map(v)))}}1===u?r.push(s):(s.parentId=d,r.push(B(f/u,h/u,d,u,p)))}}return r},F.prototype._getOriginId=function(t){return t-this.points.length&gt;&gt;5},F.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},F.prototype._map=function(t,e){if(t.numPoints)return e?H({},t.properties):t.properties;var r=this.points[t.index].properties,n=this.options.map(r);return e&amp;&amp;n===r?H({},n):n},vt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},vt.prototype.splitTile=function(t,e,r,n,i,a,o){for(var s=[t,e,r,n],l=this.options,c=l.debug;s.length;){n=s.pop(),r=s.pop(),e=s.pop(),t=s.pop();var u=1&lt;&lt;e,f=yt(e,r,n),h=this.tiles[f];if(!h&amp;&amp;(c&gt;1&amp;&amp;console.time(&quot;creation&quot;),h=this.tiles[f]=dt(t,e,r,n,l),this.tileCoords.push({z:e,x:r,y:n}),c)){c&gt;1&amp;&amp;(console.log(&quot;tile z%d-%d-%d (features: %d, points: %d, simplified: %d)&quot;,e,r,n,h.numFeatures,h.numPoints,h.numSimplified),console.timeEnd(&quot;creation&quot;));var p=&quot;z&quot;+e;this.stats[p]=(this.stats[p]||0)+1,this.total++}if(h.source=t,i){if(e===l.maxZoom||e===i)continue;var d=1&lt;&lt;i-e;if(r!==Math.floor(a/d)||n!==Math.floor(o/d))continue}else if(e===l.indexMaxZoom||h.numPoints&lt;=l.indexMaxPoints)continue;if(h.source=null,0!==t.length){c&gt;1&amp;&amp;console.time(&quot;clipping&quot;);var g,m,v,y,x,b,_=.5*l.buffer/l.extent,w=.5-_,T=.5+_,k=1+_;g=m=v=y=null,x=rt(t,u,r-_,r+T,0,h.minX,h.maxX,l),b=rt(t,u,r+w,r+k,0,h.minX,h.maxX,l),t=null,x&amp;&amp;(g=rt(x,u,n-_,n+T,1,h.minY,h.maxY,l),m=rt(x,u,n+w,n+k,1,h.minY,h.maxY,l),x=null),b&amp;&amp;(v=rt(b,u,n-_,n+T,1,h.minY,h.maxY,l),y=rt(b,u,n+w,n+k,1,h.minY,h.maxY,l),b=null),c&gt;1&amp;&amp;console.timeEnd(&quot;clipping&quot;),s.push(g||[],e+1,2*r,2*n),s.push(m||[],e+1,2*r,2*n+1),s.push(v||[],e+1,2*r+1,2*n),s.push(y||[],e+1,2*r+1,2*n+1)}}},vt.prototype.getTile=function(t,e,r){var n=this.options,i=n.extent,a=n.debug;if(t&lt;0||t&gt;24)return null;var o=1&lt;&lt;t,s=yt(t,e=(e%o+o)%o,r);if(this.tiles[s])return ht(this.tiles[s],i);a&gt;1&amp;&amp;console.log(&quot;drilling down to z%d-%d-%d&quot;,t,e,r);for(var l,c=t,u=e,f=r;!l&amp;&amp;c&gt;0;)c--,u=Math.floor(u/2),f=Math.floor(f/2),l=this.tiles[yt(c,u,f)];return l&amp;&amp;l.source?(a&gt;1&amp;&amp;console.log(&quot;found parent tile z%d-%d-%d&quot;,c,u,f),a&gt;1&amp;&amp;console.time(&quot;drilling down&quot;),this.splitTile(l.source,c,u,f,t,e,r),a&gt;1&amp;&amp;console.timeEnd(&quot;drilling down&quot;),this.tiles[s]?ht(this.tiles[s],i):null):null};var bt=function(e){function r(t,r,n,i){e.call(this,t,r,n,xt),i&amp;&amp;(this.loadGeoJSON=i)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.loadData=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&amp;&amp;&quot;Idle&quot;!==this._state?this._state=&quot;NeedsLoadData&quot;:(this._state=&quot;Coalescing&quot;,this._loadData())},r.prototype._loadData=function(){var e=this;if(this._pendingCallback&amp;&amp;this._pendingLoadDataParams){var r=this._pendingCallback,n=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var i=!!(n&amp;&amp;n.request&amp;&amp;n.request.collectResourceTiming)&amp;&amp;new t.RequestPerformance(n.request);this.loadGeoJSON(n,(function(a,o){if(a||!o)return r(a);if(&quot;object&quot;!=typeof o)return r(new Error(&quot;Input data given to '&quot;+n.source+&quot;' is not a valid GeoJSON object.&quot;));!function t(e,r){var n,i=e&amp;&amp;e.type;if(&quot;FeatureCollection&quot;===i)for(n=0;n&lt;e.features.length;n++)t(e.features[n],r);else if(&quot;GeometryCollection&quot;===i)for(n=0;n&lt;e.geometries.length;n++)t(e.geometries[n],r);else if(&quot;Feature&quot;===i)t(e.geometry,r);else if(&quot;Polygon&quot;===i)f(e.coordinates,r);else if(&quot;MultiPolygon&quot;===i)for(n=0;n&lt;e.coordinates.length;n++)f(e.coordinates[n],r);return e}(o,!0);try{e._geoJSONIndex=n.cluster?new F(function(e){var r=e.superclusterOptions,n=e.clusterProperties;if(!n||!r)return r;for(var i={},a={},o={accumulated:null,zoom:0},s={properties:null},l=Object.keys(n),c=0,u=l;c&lt;u.length;c+=1){var f=u[c],h=n[f],p=h[0],d=t.createExpression(h[1]),g=t.createExpression(&quot;string&quot;==typeof p?[p,[&quot;accumulated&quot;],[&quot;get&quot;,f]]:p);i[f]=d.value,a[f]=g.value}return r.map=function(t){s.properties=t;for(var e={},r=0,n=l;r&lt;n.length;r+=1){var a=n[r];e[a]=i[a].evaluate(o,s)}return e},r.reduce=function(t,e){s.properties=e;for(var r=0,n=l;r&lt;n.length;r+=1){var i=n[r];o.accumulated=t[i],t[i]=a[i].evaluate(o,s)}},r}(n)).load(o.features):function(t,e){return new vt(t,e)}(o,n.geojsonVtOptions)}catch(a){return r(a)}e.loaded={};var s={};if(i){var l=i.finish();l&amp;&amp;(s.resourceTiming={},s.resourceTiming[n.source]=JSON.parse(JSON.stringify(l)))}r(null,s)}))}},r.prototype.coalesce=function(){&quot;Coalescing&quot;===this._state?this._state=&quot;Idle&quot;:&quot;NeedsLoadData&quot;===this._state&amp;&amp;(this._state=&quot;Coalescing&quot;,this._loadData())},r.prototype.reloadTile=function(t,r){var n=this.loaded;return n&amp;&amp;n[t.uid]?e.prototype.reloadTile.call(this,t,r):this.loadTile(t,r)},r.prototype.loadGeoJSON=function(e,r){if(e.request)t.getJSON(e.request,r);else{if(&quot;string&quot;!=typeof e.data)return r(new Error(&quot;Input data given to '&quot;+e.source+&quot;' is not a valid GeoJSON object.&quot;));try{return r(null,JSON.parse(e.data))}catch(t){return r(new Error(&quot;Input data given to '&quot;+e.source+&quot;' is not a valid GeoJSON object.&quot;))}}},r.prototype.removeSource=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),e()},r.prototype.getClusterExpansionZoom=function(t,e){try{e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterChildren=function(t,e){try{e(null,this._geoJSONIndex.getChildren(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterLeaves=function(t,e){try{e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))}catch(t){e(t)}},r}(l),_t=function(e){var r=this;this.self=e,this.actor=new t.Actor(e,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:l,geojson:bt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(r.workerSourceTypes[t])throw new Error('Worker source with name &quot;'+t+'&quot; already registered.');r.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(e){if(t.plugin.isParsed())throw new Error(&quot;RTL text plugin already registered.&quot;);t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText,t.plugin.processStyledBidirectionalText=e.processStyledBidirectionalText}};return _t.prototype.setReferrer=function(t,e){this.referrer=e},_t.prototype.setImages=function(t,e,r){for(var n in this.availableImages[t]=e,this.workerSources[t]){var i=this.workerSources[t][n];for(var a in i)i[a].availableImages=e}r()},_t.prototype.setLayers=function(t,e,r){this.getLayerIndex(t).replace(e),r()},_t.prototype.updateLayers=function(t,e,r){this.getLayerIndex(t).update(e.layers,e.removedIds),r()},_t.prototype.loadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).loadTile(e,r)},_t.prototype.loadDEMTile=function(t,e,r){this.getDEMWorkerSource(t,e.source).loadTile(e,r)},_t.prototype.reloadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).reloadTile(e,r)},_t.prototype.abortTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).abortTile(e,r)},_t.prototype.removeTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).removeTile(e,r)},_t.prototype.removeDEMTile=function(t,e){this.getDEMWorkerSource(t,e.source).removeTile(e)},_t.prototype.removeSource=function(t,e,r){if(this.workerSources[t]&amp;&amp;this.workerSources[t][e.type]&amp;&amp;this.workerSources[t][e.type][e.source]){var n=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==n.removeSource?n.removeSource(e,r):r()}},_t.prototype.loadWorkerSource=function(t,e,r){try{this.self.importScripts(e.url),r()}catch(t){r(t.toString())}},_t.prototype.syncRTLPluginState=function(e,r,n){try{t.plugin.setState(r);var i=t.plugin.getPluginURL();if(t.plugin.isLoaded()&amp;&amp;!t.plugin.isParsed()&amp;&amp;null!=i){this.self.importScripts(i);var a=t.plugin.isParsed();n(a?void 0:new Error(&quot;RTL Text Plugin failed to import scripts from &quot;+i),a)}}catch(t){n(t.toString())}},_t.prototype.getAvailableImages=function(t){var e=this.availableImages[t];return e||(e=[]),e},_t.prototype.getLayerIndex=function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new n),e},_t.prototype.getWorkerSource=function(t,e,r){var n=this;return this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),this.workerSources[t][e][r]||(this.workerSources[t][e][r]=new this.workerSourceTypes[e]({send:function(e,r,i){n.actor.send(e,r,i,t)}},this.getLayerIndex(t),this.getAvailableImages(t))),this.workerSources[t][e][r]},_t.prototype.getDEMWorkerSource=function(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new u),this.demWorkerSources[t][e]},_t.prototype.enforceCacheSizeLimit=function(e,r){t.enforceCacheSizeLimit(r)},&quot;undefined&quot;!=typeof WorkerGlobalScope&amp;&amp;void 0!==t.window&amp;&amp;t.window instanceof WorkerGlobalScope&amp;&amp;(t.window.worker=new _t(t.window)),_t})),n(0,(function(t){var e=t.createCommonjsModule((function(t){function e(t){return!r(t)}function r(t){return&quot;undefined&quot;==typeof window||&quot;undefined&quot;==typeof document?&quot;not a browser&quot;:Array.prototype&amp;&amp;Array.prototype.every&amp;&amp;Array.prototype.filter&amp;&amp;Array.prototype.forEach&amp;&amp;Array.prototype.indexOf&amp;&amp;Array.prototype.lastIndexOf&amp;&amp;Array.prototype.map&amp;&amp;Array.prototype.some&amp;&amp;Array.prototype.reduce&amp;&amp;Array.prototype.reduceRight&amp;&amp;Array.isArray?Function.prototype&amp;&amp;Function.prototype.bind?Object.keys&amp;&amp;Object.create&amp;&amp;Object.getPrototypeOf&amp;&amp;Object.getOwnPropertyNames&amp;&amp;Object.isSealed&amp;&amp;Object.isFrozen&amp;&amp;Object.isExtensible&amp;&amp;Object.getOwnPropertyDescriptor&amp;&amp;Object.defineProperty&amp;&amp;Object.defineProperties&amp;&amp;Object.seal&amp;&amp;Object.freeze&amp;&amp;Object.preventExtensions?&quot;JSON&quot;in window&amp;&amp;&quot;parse&quot;in JSON&amp;&amp;&quot;stringify&quot;in JSON?function(){if(!(&quot;Worker&quot;in window&amp;&amp;&quot;Blob&quot;in window&amp;&amp;&quot;URL&quot;in window))return!1;var t,e,r=new Blob([&quot;&quot;],{type:&quot;text/javascript&quot;}),n=URL.createObjectURL(r);try{e=new Worker(n),t=!0}catch(e){t=!1}return e&amp;&amp;e.terminate(),URL.revokeObjectURL(n),t}()?&quot;Uint8ClampedArray&quot;in window?ArrayBuffer.isView?function(){var t=document.createElement(&quot;canvas&quot;);t.width=t.height=1;var e=t.getContext(&quot;2d&quot;);if(!e)return!1;var r=e.getImageData(0,0,1,1);return r&amp;&amp;r.width===t.width}()?(void 0===n[r=t&amp;&amp;t.failIfMajorPerformanceCaveat]&amp;&amp;(n[r]=function(t){var r=function(t){var r=document.createElement(&quot;canvas&quot;),n=Object.create(e.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=t,r.probablySupportsContext?r.probablySupportsContext(&quot;webgl&quot;,n)||r.probablySupportsContext(&quot;experimental-webgl&quot;,n):r.supportsContext?r.supportsContext(&quot;webgl&quot;,n)||r.supportsContext(&quot;experimental-webgl&quot;,n):r.getContext(&quot;webgl&quot;,n)||r.getContext(&quot;experimental-webgl&quot;,n)}(t);if(!r)return!1;var n=r.createShader(r.VERTEX_SHADER);return!(!n||r.isContextLost())&amp;&amp;(r.shaderSource(n,&quot;void main() {}&quot;),r.compileShader(n),!0===r.getShaderParameter(n,r.COMPILE_STATUS))}(r)),n[r]?void 0:&quot;insufficient WebGL support&quot;):&quot;insufficient Canvas/getImageData support&quot;:&quot;insufficient ArrayBuffer support&quot;:&quot;insufficient Uint8ClampedArray support&quot;:&quot;insufficient worker support&quot;:&quot;insufficient JSON support&quot;:&quot;insufficient Object support&quot;:&quot;insufficient Function support&quot;:&quot;insufficent Array support&quot;;var r}t.exports?t.exports=e:window&amp;&amp;(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=e,window.mapboxgl.notSupportedReason=r);var n={};e.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}})),r={create:function(e,r,n){var i=t.window.document.createElement(e);return void 0!==r&amp;&amp;(i.className=r),n&amp;&amp;n.appendChild(i),i},createNS:function(e,r){return t.window.document.createElementNS(e,r)}},n=t.window.document.documentElement.style;function i(t){if(!n)return t[0];for(var e=0;e&lt;t.length;e++)if(t[e]in n)return t[e];return t[0]}var a,o=i([&quot;userSelect&quot;,&quot;MozUserSelect&quot;,&quot;WebkitUserSelect&quot;,&quot;msUserSelect&quot;]);r.disableDrag=function(){n&amp;&amp;o&amp;&amp;(a=n[o],n[o]=&quot;none&quot;)},r.enableDrag=function(){n&amp;&amp;o&amp;&amp;(n[o]=a)};var s=i([&quot;transform&quot;,&quot;WebkitTransform&quot;]);r.setTransform=function(t,e){t.style[s]=e};var l=!1;try{var c=Object.defineProperty({},&quot;passive&quot;,{get:function(){l=!0}});t.window.addEventListener(&quot;test&quot;,c,c),t.window.removeEventListener(&quot;test&quot;,c,c)}catch(t){l=!1}r.addEventListener=function(t,e,r,n){void 0===n&amp;&amp;(n={}),t.addEventListener(e,r,&quot;passive&quot;in n&amp;&amp;l?n:n.capture)},r.removeEventListener=function(t,e,r,n){void 0===n&amp;&amp;(n={}),t.removeEventListener(e,r,&quot;passive&quot;in n&amp;&amp;l?n:n.capture)};var u=function(e){e.preventDefault(),e.stopPropagation(),t.window.removeEventListener(&quot;click&quot;,u,!0)};function f(t){var e=t.userImage;return!!(e&amp;&amp;e.render&amp;&amp;e.render())&amp;&amp;(t.data.replace(new Uint8Array(e.data.buffer)),!0)}r.suppressClick=function(){t.window.addEventListener(&quot;click&quot;,u,!0),t.window.setTimeout((function(){t.window.removeEventListener(&quot;click&quot;,u,!0)}),0)},r.mousePos=function(e,r){var n=e.getBoundingClientRect();return new t.Point(r.clientX-n.left-e.clientLeft,r.clientY-n.top-e.clientTop)},r.touchPos=function(e,r){for(var n=e.getBoundingClientRect(),i=[],a=0;a&lt;r.length;a++)i.push(new t.Point(r[a].clientX-n.left-e.clientLeft,r[a].clientY-n.top-e.clientTop));return i},r.mouseButton=function(e){return void 0!==t.window.InstallTrigger&amp;&amp;2===e.button&amp;&amp;e.ctrlKey&amp;&amp;t.window.navigator.platform.toUpperCase().indexOf(&quot;MAC&quot;)&gt;=0?0:e.button},r.remove=function(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)};var h=function(e){function r(){e.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.isLoaded=function(){return this.loaded},r.prototype.setLoaded=function(t){if(this.loaded!==t&amp;&amp;(this.loaded=t,t)){for(var e=0,r=this.requestors;e&lt;r.length;e+=1){var n=r[e];this._notify(n.ids,n.callback)}this.requestors=[]}},r.prototype.getImage=function(t){return this.images[t]},r.prototype.addImage=function(t,e){this._validate(t,e)&amp;&amp;(this.images[t]=e)},r.prototype._validate=function(e,r){var n=!0;return this._validateStretch(r.stretchX,r.data&amp;&amp;r.data.width)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;stretchX&quot; value'))),n=!1),this._validateStretch(r.stretchY,r.data&amp;&amp;r.data.height)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;stretchY&quot; value'))),n=!1),this._validateContent(r.content,r)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;content&quot; value'))),n=!1),n},r.prototype._validateStretch=function(t,e){if(!t)return!0;for(var r=0,n=0,i=t;n&lt;i.length;n+=1){var a=i[n];if(a[0]&lt;r||a[1]&lt;a[0]||e&lt;a[1])return!1;r=a[1]}return!0},r.prototype._validateContent=function(t,e){return!(t&amp;&amp;(4!==t.length||t[0]&lt;0||e.data.width&lt;t[0]||t[1]&lt;0||e.data.height&lt;t[1]||t[2]&lt;0||e.data.width&lt;t[2]||t[3]&lt;0||e.data.height&lt;t[3]||t[2]&lt;t[0]||t[3]&lt;t[1]))},r.prototype.updateImage=function(t,e){e.version=this.images[t].version+1,this.images[t]=e,this.updatedImages[t]=!0},r.prototype.removeImage=function(t){var e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&amp;&amp;e.userImage.onRemove&amp;&amp;e.userImage.onRemove()},r.prototype.listImages=function(){return Object.keys(this.images)},r.prototype.getImages=function(t,e){var r=!0;if(!this.isLoaded())for(var n=0,i=t;n&lt;i.length;n+=1)this.images[i[n]]||(r=!1);this.isLoaded()||r?this._notify(t,e):this.requestors.push({ids:t,callback:e})},r.prototype._notify=function(e,r){for(var n={},i=0,a=e;i&lt;a.length;i+=1){var o=a[i];this.images[o]||this.fire(new t.Event(&quot;styleimagemissing&quot;,{id:o}));var s=this.images[o];s?n[o]={data:s.data.clone(),pixelRatio:s.pixelRatio,sdf:s.sdf,version:s.version,stretchX:s.stretchX,stretchY:s.stretchY,content:s.content,hasRenderCallback:Boolean(s.userImage&amp;&amp;s.userImage.render)}:t.warnOnce('Image &quot;'+o+'&quot; could not be loaded. Please make sure you have added the image with map.addImage() or a &quot;sprite&quot; property in your style. You can provide missing images by listening for the &quot;styleimagemissing&quot; map event.')}r(null,n)},r.prototype.getPixelSize=function(){var t=this.atlasImage;return{width:t.width,height:t.height}},r.prototype.getPattern=function(e){var r=this.patterns[e],n=this.getImage(e);if(!n)return null;if(r&amp;&amp;r.position.version===n.version)return r.position;if(r)r.position.version=n.version;else{var i={w:n.data.width+2,h:n.data.height+2,x:0,y:0},a=new t.ImagePosition(i,n);this.patterns[e]={bin:i,position:a}}return this._updatePatternAtlas(),this.patterns[e].position},r.prototype.bind=function(e){var r=e.gl;this.atlasTexture?this.dirty&amp;&amp;(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new t.Texture(e,this.atlasImage,r.RGBA),this.atlasTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)},r.prototype._updatePatternAtlas=function(){var e=[];for(var r in this.patterns)e.push(this.patterns[r].bin);var n=t.potpack(e),i=n.w,a=n.h,o=this.atlasImage;for(var s in o.resize({width:i||1,height:a||1}),this.patterns){var l=this.patterns[s].bin,c=l.x+1,u=l.y+1,f=this.images[s].data,h=f.width,p=f.height;t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u},{width:h,height:p}),t.RGBAImage.copy(f,o,{x:0,y:p-1},{x:c,y:u-1},{width:h,height:1}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u+p},{width:h,height:1}),t.RGBAImage.copy(f,o,{x:h-1,y:0},{x:c-1,y:u},{width:1,height:p}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c+h,y:u},{width:1,height:p})}this.dirty=!0},r.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},r.prototype.dispatchRenderCallbacks=function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var n=r[e];if(!this.callbackDispatchedThisFrame[n]){this.callbackDispatchedThisFrame[n]=!0;var i=this.images[n];f(i)&amp;&amp;this.updateImage(n,i)}}},r}(t.Evented),p=m,d=m,g=1e20;function m(t,e,r,n,i,a){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=n||.25,this.fontFamily=i||&quot;sans-serif&quot;,this.fontWeight=a||&quot;normal&quot;,this.radius=r||8;var o=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement(&quot;canvas&quot;),this.canvas.width=this.canvas.height=o,this.ctx=this.canvas.getContext(&quot;2d&quot;),this.ctx.font=this.fontWeight+&quot; &quot;+this.fontSize+&quot;px &quot;+this.fontFamily,this.ctx.textBaseline=&quot;middle&quot;,this.ctx.fillStyle=&quot;black&quot;,this.gridOuter=new Float64Array(o*o),this.gridInner=new Float64Array(o*o),this.f=new Float64Array(o),this.d=new Float64Array(o),this.z=new Float64Array(o+1),this.v=new Int16Array(o),this.middle=Math.round(o/2*(navigator.userAgent.indexOf(&quot;Gecko/&quot;)&gt;=0?1.2:1))}function v(t,e,r,n,i,a,o){for(var s=0;s&lt;e;s++){for(var l=0;l&lt;r;l++)n[l]=t[l*e+s];for(y(n,i,a,o,r),l=0;l&lt;r;l++)t[l*e+s]=i[l]}for(l=0;l&lt;r;l++){for(s=0;s&lt;e;s++)n[s]=t[l*e+s];for(y(n,i,a,o,e),s=0;s&lt;e;s++)t[l*e+s]=Math.sqrt(i[s])}}function y(t,e,r,n,i){r[0]=0,n[0]=-g,n[1]=+g;for(var a=1,o=0;a&lt;i;a++){for(var s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);s&lt;=n[o];)o--,s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);r[++o]=a,n[o]=s,n[o+1]=+g}for(a=0,o=0;a&lt;i;a++){for(;n[o+1]&lt;a;)o++;e[a]=(a-r[o])*(a-r[o])+t[r[o]]}}m.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),r=new Uint8ClampedArray(this.size*this.size),n=0;n&lt;this.size*this.size;n++){var i=e.data[4*n+3]/255;this.gridOuter[n]=1===i?0:0===i?g:Math.pow(Math.max(0,.5-i),2),this.gridInner[n]=1===i?g:0===i?0:Math.pow(Math.max(0,i-.5),2)}for(v(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),v(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),n=0;n&lt;this.size*this.size;n++)r[n]=Math.max(0,Math.min(255,Math.round(255-255*((this.gridOuter[n]-this.gridInner[n])/this.radius+this.cutoff))));return r},p.default=d;var x=function(t,e){this.requestManager=t,this.localIdeographFontFamily=e,this.entries={}};x.prototype.setURL=function(t){this.url=t},x.prototype.getGlyphs=function(e,r){var n=this,i=[];for(var a in e)for(var o=0,s=e[a];o&lt;s.length;o+=1)i.push({stack:a,id:s[o]});t.asyncAll(i,(function(t,e){var r=t.stack,i=t.id,a=n.entries[r];a||(a=n.entries[r]={glyphs:{},requests:{},ranges:{}});var o=a.glyphs[i];if(void 0===o){if(o=n._tinySDF(a,r,i))return a.glyphs[i]=o,void e(null,{stack:r,id:i,glyph:o});var s=Math.floor(i/256);if(256*s&gt;65535)e(new Error(&quot;glyphs &gt; 65535 not supported&quot;));else if(a.ranges[s])e(null,{stack:r,id:i,glyph:o});else{var l=a.requests[s];l||(l=a.requests[s]=[],x.loadGlyphRange(r,s,n.url,n.requestManager,(function(t,e){if(e){for(var r in e)n._doesCharSupportLocalGlyph(+r)||(a.glyphs[+r]=e[+r]);a.ranges[s]=!0}for(var i=0,o=l;i&lt;o.length;i+=1)(0,o[i])(t,e);delete a.requests[s]}))),l.push((function(t,n){t?e(t):n&amp;&amp;e(null,{stack:r,id:i,glyph:n[i]||null})}))}}else e(null,{stack:r,id:i,glyph:o})}),(function(t,e){if(t)r(t);else if(e){for(var n={},i=0,a=e;i&lt;a.length;i+=1){var o=a[i],s=o.stack,l=o.id,c=o.glyph;(n[s]||(n[s]={}))[l]=c&amp;&amp;{id:c.id,bitmap:c.bitmap.clone(),metrics:c.metrics}}r(null,n)}}))},x.prototype._doesCharSupportLocalGlyph=function(e){return!!this.localIdeographFontFamily&amp;&amp;(t.isChar[&quot;CJK Unified Ideographs&quot;](e)||t.isChar[&quot;Hangul Syllables&quot;](e)||t.isChar.Hiragana(e)||t.isChar.Katakana(e))},x.prototype._tinySDF=function(e,r,n){var i=this.localIdeographFontFamily;if(i&amp;&amp;this._doesCharSupportLocalGlyph(n)){var a=e.tinySDF;if(!a){var o=&quot;400&quot;;/bold/i.test(r)?o=&quot;900&quot;:/medium/i.test(r)?o=&quot;500&quot;:/light/i.test(r)&amp;&amp;(o=&quot;200&quot;),a=e.tinySDF=new x.TinySDF(24,3,8,.25,i,o)}return{id:n,bitmap:new t.AlphaImage({width:30,height:30},a.draw(String.fromCharCode(n))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},x.loadGlyphRange=function(e,r,n,i,a){var o=256*r,s=o+255,l=i.transformRequest(i.normalizeGlyphsURL(n).replace(&quot;{fontstack}&quot;,e).replace(&quot;{range}&quot;,o+&quot;-&quot;+s),t.ResourceType.Glyphs);t.getArrayBuffer(l,(function(e,r){if(e)a(e);else if(r){for(var n={},i=0,o=t.parseGlyphPBF(r);i&lt;o.length;i+=1){var s=o[i];n[s.id]=s}a(null,n)}}))},x.TinySDF=p;var b=function(){this.specification=t.styleSpec.light.position};b.prototype.possiblyEvaluate=function(e,r){return t.sphericalToCartesian(e.expression.evaluate(r))},b.prototype.interpolate=function(e,r,n){return{x:t.number(e.x,r.x,n),y:t.number(e.y,r.y,n),z:t.number(e.z,r.z,n)}};var _=new t.Properties({anchor:new t.DataConstantProperty(t.styleSpec.light.anchor),position:new b,color:new t.DataConstantProperty(t.styleSpec.light.color),intensity:new t.DataConstantProperty(t.styleSpec.light.intensity)}),w=function(e){function r(r){e.call(this),this._transitionable=new t.Transitionable(_),this.setLight(r),this._transitioning=this._transitionable.untransitioned()}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getLight=function(){return this._transitionable.serialize()},r.prototype.setLight=function(e,r){if(void 0===r&amp;&amp;(r={}),!this._validate(t.validateLight,e,r))for(var n in e){var i=e[n];t.endsWith(n,&quot;-transition&quot;)?this._transitionable.setTransition(n.slice(0,-&quot;-transition&quot;.length),i):this._transitionable.setValue(n,i)}},r.prototype.updateTransitions=function(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)},r.prototype.hasTransition=function(){return this._transitioning.hasTransition()},r.prototype.recalculate=function(t){this.properties=this._transitioning.possiblyEvaluate(t)},r.prototype._validate=function(e,r,n){return(!n||!1!==n.validate)&amp;&amp;t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:r,style:{glyphs:!0,sprite:!0},styleSpec:t.styleSpec})))},r}(t.Evented),T=function(t,e){this.width=t,this.height=e,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}};T.prototype.getDash=function(t,e){var r=t.join(&quot;,&quot;)+String(e);return this.dashEntry[r]||(this.dashEntry[r]=this.addDash(t,e)),this.dashEntry[r]},T.prototype.getDashRanges=function(t,e,r){var n=[],i=t.length%2==1?-t[t.length-1]*r:0,a=t[0]*r,o=!0;n.push({left:i,right:a,isDash:o,zeroLength:0===t[0]});for(var s=t[0],l=1;l&lt;t.length;l++){var c=t[l];n.push({left:i=s*r,right:a=(s+=c)*r,isDash:o=!o,zeroLength:0===c})}return n},T.prototype.addRoundDash=function(t,e,r){for(var n=e/2,i=-r;i&lt;=r;i++)for(var a=this.width*(this.nextRow+r+i),o=0,s=t[o],l=0;l&lt;this.width;l++){l/s.right&gt;1&amp;&amp;(s=t[++o]);var c=Math.abs(l-s.left),u=Math.abs(l-s.right),f=Math.min(c,u),h=void 0,p=i/r*(n+1);if(s.isDash){var d=n-Math.abs(p);h=Math.sqrt(f*f+d*d)}else h=n-Math.sqrt(f*f+p*p);this.data[a+l]=Math.max(0,Math.min(255,h+128))}},T.prototype.addRegularDash=function(t){for(var e=t.length-1;e&gt;=0;--e){var r=t[e],n=t[e+1];r.zeroLength?t.splice(e,1):n&amp;&amp;n.isDash===r.isDash&amp;&amp;(n.left=r.left,t.splice(e,1))}var i=t[0],a=t[t.length-1];i.isDash===a.isDash&amp;&amp;(i.left=a.left-this.width,a.right=i.right+this.width);for(var o=this.width*this.nextRow,s=0,l=t[s],c=0;c&lt;this.width;c++){c/l.right&gt;1&amp;&amp;(l=t[++s]);var u=Math.abs(c-l.left),f=Math.abs(c-l.right),h=Math.min(u,f);this.data[o+c]=Math.max(0,Math.min(255,(l.isDash?h:-h)+128))}},T.prototype.addDash=function(e,r){var n=r?7:0,i=2*n+1;if(this.nextRow+i&gt;this.height)return t.warnOnce(&quot;LineAtlas out of space&quot;),null;for(var a=0,o=0;o&lt;e.length;o++)a+=e[o];if(0!==a){var s=this.width/a,l=this.getDashRanges(e,this.width,s);r?this.addRoundDash(l,s,n):this.addRegularDash(l)}var c={y:(this.nextRow+n+.5)/this.height,height:2*n/this.height,width:a};return this.nextRow+=i,this.dirty=!0,c},T.prototype.bind=function(t){var e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&amp;&amp;(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.ALPHA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.ALPHA,this.width,this.height,0,e.ALPHA,e.UNSIGNED_BYTE,this.data))};var k=function e(r,n){this.workerPool=r,this.actors=[],this.currentActor=0,this.id=t.uniqueId();for(var i=this.workerPool.acquire(this.id),a=0;a&lt;i.length;a++){var o=new e.Actor(i[a],n,this.id);o.name=&quot;Worker &quot;+a,this.actors.push(o)}};function M(e,r,n){var i=function(i,a){if(i)return n(i);if(a){var o=t.pick(t.extend(a,e),[&quot;tiles&quot;,&quot;minzoom&quot;,&quot;maxzoom&quot;,&quot;attribution&quot;,&quot;mapbox_logo&quot;,&quot;bounds&quot;,&quot;scheme&quot;,&quot;tileSize&quot;,&quot;encoding&quot;]);a.vector_layers&amp;&amp;(o.vectorLayers=a.vector_layers,o.vectorLayerIds=o.vectorLayers.map((function(t){return t.id}))),o.tiles=r.canonicalizeTileset(o,e.url),n(null,o)}};return e.url?t.getJSON(r.transformRequest(r.normalizeSourceURL(e.url),t.ResourceType.Source),i):t.browser.frame((function(){return i(null,e)}))}k.prototype.broadcast=function(e,r,n){t.asyncAll(this.actors,(function(t,n){t.send(e,r,n)}),n=n||function(){})},k.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},k.prototype.remove=function(){this.actors.forEach((function(t){t.remove()})),this.actors=[],this.workerPool.release(this.id)},k.Actor=t.Actor;var A=function(e,r,n){this.bounds=t.LngLatBounds.convert(this.validateBounds(e)),this.minzoom=r||0,this.maxzoom=n||24};A.prototype.validateBounds=function(t){return Array.isArray(t)&amp;&amp;4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]},A.prototype.contains=function(e){var r=Math.pow(2,e.z),n=Math.floor(t.mercatorXfromLng(this.bounds.getWest())*r),i=Math.floor(t.mercatorYfromLat(this.bounds.getNorth())*r),a=Math.ceil(t.mercatorXfromLng(this.bounds.getEast())*r),o=Math.ceil(t.mercatorYfromLat(this.bounds.getSouth())*r);return e.x&gt;=n&amp;&amp;e.x&lt;a&amp;&amp;e.y&gt;=i&amp;&amp;e.y&lt;o};var S=function(e){function r(r,n,i,a){if(e.call(this),this.id=r,this.dispatcher=i,this.type=&quot;vector&quot;,this.minzoom=0,this.maxzoom=22,this.scheme=&quot;xyz&quot;,this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,t.extend(this,t.pick(n,[&quot;url&quot;,&quot;scheme&quot;,&quot;tileSize&quot;,&quot;promoteId&quot;])),this._options=t.extend({type:&quot;vector&quot;},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error(&quot;vector tile sources must have a tileSize of 512&quot;);this.setEventedParent(a)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._tileJSONRequest=M(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(t.extend(e,n),n.bounds&amp;&amp;(e.tileBounds=new A(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles,e.map._requestManager._customAccessToken),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken,e.map._requestManager._customAccessToken),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme)),i={request:this.map._requestManager.transformRequest(n,t.ResourceType.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function a(n,i){return delete e.request,e.aborted?r(null):n&amp;&amp;404!==n.status?r(n):(i&amp;&amp;i.resourceTiming&amp;&amp;(e.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&amp;&amp;i&amp;&amp;e.setExpiryData(i),e.loadVectorData(i,this.map.painter),t.cacheEntryPossiblyAdded(this.dispatcher),r(null),void(e.reloadCallback&amp;&amp;(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}i.request.collectResourceTiming=this._collectResourceTiming,e.actor&amp;&amp;&quot;expired&quot;!==e.state?&quot;loading&quot;===e.state?e.reloadCallback=r:e.request=e.actor.send(&quot;reloadTile&quot;,i,a.bind(this)):(e.actor=this.dispatcher.getActor(),e.request=e.actor.send(&quot;loadTile&quot;,i,a.bind(this)))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.actor&amp;&amp;t.actor.send(&quot;abortTile&quot;,{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.unloadTile=function(t){t.unloadVectorData(),t.actor&amp;&amp;t.actor.send(&quot;removeTile&quot;,{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.hasTransition=function(){return!1},r}(t.Evented),E=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.dispatcher=i,this.setEventedParent(a),this.type=&quot;raster&quot;,this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme=&quot;xyz&quot;,this.tileSize=512,this._loaded=!1,this._options=t.extend({type:&quot;raster&quot;},n),t.extend(this,t.pick(n,[&quot;url&quot;,&quot;scheme&quot;,&quot;tileSize&quot;]))}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._tileJSONRequest=M(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(t.extend(e,n),n.bounds&amp;&amp;(e.tileBounds=new A(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.loadTile=function(e,r){var n=this,i=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);e.request=t.getImage(this.map._requestManager.transformRequest(i,t.ResourceType.Tile),(function(i,a){if(delete e.request,e.aborted)e.state=&quot;unloaded&quot;,r(null);else if(i)e.state=&quot;errored&quot;,r(i);else if(a){n.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(a),delete a.cacheControl,delete a.expires;var o=n.map.painter.context,s=o.gl;e.texture=n.map.painter.getTileTexture(a.width),e.texture?e.texture.update(a,{useMipmap:!0}):(e.texture=new t.Texture(o,a,s.RGBA,{useMipmap:!0}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),o.extTextureFilterAnisotropic&amp;&amp;s.texParameterf(s.TEXTURE_2D,o.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,o.extTextureFilterAnisotropicMax)),e.state=&quot;loaded&quot;,t.cacheEntryPossiblyAdded(n.dispatcher),r(null)}}))},r.prototype.abortTile=function(t,e){t.request&amp;&amp;(t.request.cancel(),delete t.request),e()},r.prototype.unloadTile=function(t,e){t.texture&amp;&amp;this.map.painter.saveTileTexture(t.texture),e()},r.prototype.hasTransition=function(){return!1},r}(t.Evented),C=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),this.type=&quot;raster-dem&quot;,this.maxzoom=22,this._options=t.extend({type:&quot;raster-dem&quot;},n),this.encoding=n.encoding||&quot;mapbox&quot;}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.serialize=function(){return{type:&quot;raster-dem&quot;,url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);function i(t,n){t&amp;&amp;(e.state=&quot;errored&quot;,r(t)),n&amp;&amp;(e.dem=n,e.needsHillshadePrepare=!0,e.state=&quot;loaded&quot;,r(null))}e.request=t.getImage(this.map._requestManager.transformRequest(n,t.ResourceType.Tile),function(n,a){if(delete e.request,e.aborted)e.state=&quot;unloaded&quot;,r(null);else if(n)e.state=&quot;errored&quot;,r(n);else if(a){this.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(a),delete a.cacheControl,delete a.expires;var o=t.window.ImageBitmap&amp;&amp;a instanceof t.window.ImageBitmap&amp;&amp;t.offscreenCanvasSupported()?a:t.browser.getImageData(a,1),s={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:o,encoding:this.encoding};e.actor&amp;&amp;&quot;expired&quot;!==e.state||(e.actor=this.dispatcher.getActor(),e.actor.send(&quot;loadDEMTile&quot;,s,i.bind(this)))}}.bind(this)),e.neighboringTiles=this._getNeighboringTiles(e.tileID)},r.prototype._getNeighboringTiles=function(e){var r=e.canonical,n=Math.pow(2,r.z),i=(r.x-1+n)%n,a=0===r.x?e.wrap-1:e.wrap,o=(r.x+1+n)%n,s=r.x+1===n?e.wrap+1:e.wrap,l={};return l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y).key]={backfilled:!1},r.y&gt;0&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y-1).key]={backfilled:!1}),r.y+1&lt;n&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y+1).key]={backfilled:!1}),l},r.prototype.unloadTile=function(t){t.demTexture&amp;&amp;this.map.painter.saveTileTexture(t.demTexture),t.fbo&amp;&amp;(t.fbo.destroy(),delete t.fbo),t.dem&amp;&amp;delete t.dem,delete t.neighboringTiles,t.state=&quot;unloaded&quot;,t.actor&amp;&amp;t.actor.send(&quot;removeDEMTile&quot;,{uid:t.uid,source:this.id})},r}(E),L=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.type=&quot;geojson&quot;,this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=i.getActor(),this.setEventedParent(a),this._data=n.data,this._options=t.extend({},n),this._collectResourceTiming=n.collectResourceTiming,this._resourceTiming=[],void 0!==n.maxzoom&amp;&amp;(this.maxzoom=n.maxzoom),n.type&amp;&amp;(this.type=n.type),n.attribution&amp;&amp;(this.attribution=n.attribution),this.promoteId=n.promoteId;var o=t.EXTENT/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*o,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*o,extent:t.EXTENT,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?Math.min(n.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,extent:t.EXTENT,radius:(n.clusterRadius||50)*o,log:!1,generateId:n.generateId||!1},clusterProperties:n.clusterProperties},n.workerOptions)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._updateWorkerData((function(r){if(r)e.fire(new t.ErrorEvent(r));else{var n={dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;};e._collectResourceTiming&amp;&amp;e._resourceTiming&amp;&amp;e._resourceTiming.length&gt;0&amp;&amp;(n.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event(&quot;data&quot;,n))}}))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setData=function(e){var r=this;return this._data=e,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._updateWorkerData((function(e){if(e)r.fire(new t.ErrorEvent(e));else{var n={dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;};r._collectResourceTiming&amp;&amp;r._resourceTiming&amp;&amp;r._resourceTiming.length&gt;0&amp;&amp;(n.resourceTiming=r._resourceTiming,r._resourceTiming=[]),r.fire(new t.Event(&quot;data&quot;,n))}})),this},r.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send(&quot;geojson.getClusterExpansionZoom&quot;,{clusterId:t,source:this.id},e),this},r.prototype.getClusterChildren=function(t,e){return this.actor.send(&quot;geojson.getClusterChildren&quot;,{clusterId:t,source:this.id},e),this},r.prototype.getClusterLeaves=function(t,e,r,n){return this.actor.send(&quot;geojson.getClusterLeaves&quot;,{source:this.id,clusterId:t,limit:e,offset:r},n),this},r.prototype._updateWorkerData=function(e){var r=this;this._loaded=!1;var n=t.extend({},this.workerOptions),i=this._data;&quot;string&quot;==typeof i?(n.request=this.map._requestManager.transformRequest(t.browser.resolveURL(i),t.ResourceType.Source),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(i),this.actor.send(this.type+&quot;.loadData&quot;,n,(function(t,i){r._removed||i&amp;&amp;i.abandoned||(r._loaded=!0,i&amp;&amp;i.resourceTiming&amp;&amp;i.resourceTiming[r.id]&amp;&amp;(r._resourceTiming=i.resourceTiming[r.id].slice(0)),r.actor.send(r.type+&quot;.coalesce&quot;,{source:n.source},null),e(t))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.loadTile=function(e,r){var n=this,i=e.actor?&quot;reloadTile&quot;:&quot;loadTile&quot;;e.actor=this.actor,e.request=this.actor.send(i,{type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(function(t,a){return delete e.request,e.unloadVectorData(),e.aborted?r(null):t?r(t):(e.loadVectorData(a,n.map.painter,&quot;reloadTile&quot;===i),r(null))}))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.aborted=!0},r.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send(&quot;removeTile&quot;,{uid:t.uid,type:this.type,source:this.id})},r.prototype.onRemove=function(){this._removed=!0,this.actor.send(&quot;removeSource&quot;,{type:this.type,source:this.id})},r.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},r.prototype.hasTransition=function(){return!1},r}(t.Evented),I=t.createLayout([{name:&quot;a_pos&quot;,type:&quot;Int16&quot;,components:2},{name:&quot;a_texture_pos&quot;,type:&quot;Int16&quot;,components:2}]),P=function(e){function r(t,r,n,i){e.call(this),this.id=t,this.dispatcher=n,this.coordinates=r.coordinates,this.type=&quot;image&quot;,this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=r}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(e,r){var n=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(function(i,a){n._loaded=!0,i?n.fire(new t.ErrorEvent(i)):a&amp;&amp;(n.image=a,e&amp;&amp;(n.coordinates=e),r&amp;&amp;r(),n._finishLoading())}))},r.prototype.loaded=function(){return this._loaded},r.prototype.updateImage=function(t){var e=this;return this.image&amp;&amp;t.url?(this.options.url=t.url,this.load(t.coordinates,(function(){e.texture=null})),this):this},r.prototype._finishLoading=function(){this.map&amp;&amp;(this.setCoordinates(this.coordinates),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setCoordinates=function(e){var r=this;this.coordinates=e;var n=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){for(var r=1/0,n=1/0,i=-1/0,a=-1/0,o=0,s=e;o&lt;s.length;o+=1){var l=s[o];r=Math.min(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.x),a=Math.max(a,l.y)}var c=Math.max(i-r,a-n),u=Math.max(0,Math.floor(-Math.log(c)/Math.LN2)),f=Math.pow(2,u);return new t.CanonicalTileID(u,Math.floor((r+i)/2*f),Math.floor((n+a)/2*f))}(n),this.minzoom=this.maxzoom=this.tileID.z;var i=n.map((function(t){return r.tileID.getTilePoint(t)._round()}));return this._boundsArray=new t.StructArrayLayout4i8,this._boundsArray.emplaceBack(i[0].x,i[0].y,0,0),this._boundsArray.emplaceBack(i[1].x,i[1].y,t.EXTENT,0),this._boundsArray.emplaceBack(i[3].x,i[3].y,0,t.EXTENT),this._boundsArray.emplaceBack(i[2].x,i[2].y,t.EXTENT,t.EXTENT),this.boundsBuffer&amp;&amp;(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})),this},r.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&amp;&amp;this.image){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new t.Texture(e,this.image,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];&quot;loaded&quot;!==i.state&amp;&amp;(i.state=&quot;loaded&quot;,i.texture=this.texture)}}},r.prototype.loadTile=function(t,e){this.tileID&amp;&amp;this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state=&quot;errored&quot;,e(null))},r.prototype.serialize=function(){return{type:&quot;image&quot;,url:this.options.url,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return!1},r}(t.Evented),z=function(e){function r(t,r,n,i){e.call(this,t,r,n,i),this.roundZoom=!0,this.type=&quot;video&quot;,this.options=r}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1;var r=this.options;this.urls=[];for(var n=0,i=r.urls;n&lt;i.length;n+=1)this.urls.push(this.map._requestManager.transformRequest(i[n],t.ResourceType.Source).url);t.getVideo(this.urls,(function(r,n){e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(e.video=n,e.video.loop=!0,e.video.addEventListener(&quot;playing&quot;,(function(){e.map.triggerRepaint()})),e.map&amp;&amp;e.video.play(),e._finishLoading())}))},r.prototype.pause=function(){this.video&amp;&amp;this.video.pause()},r.prototype.play=function(){this.video&amp;&amp;this.video.play()},r.prototype.seek=function(e){if(this.video){var r=this.video.seekable;e&lt;r.start(0)||e&gt;r.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+this.id,null,&quot;Playback for this video can be set only between the &quot;+r.start(0)+&quot; and &quot;+r.end(0)+&quot;-second mark.&quot;))):this.video.currentTime=e}},r.prototype.getVideo=function(){return this.video},r.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&amp;&amp;(this.video.play(),this.setCoordinates(this.coordinates)))},r.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState&lt;2)){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];&quot;loaded&quot;!==i.state&amp;&amp;(i.state=&quot;loaded&quot;,i.texture=this.texture)}}},r.prototype.serialize=function(){return{type:&quot;video&quot;,urls:this.urls,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this.video&amp;&amp;!this.video.paused},r}(P),O=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),n.coordinates?Array.isArray(n.coordinates)&amp;&amp;4===n.coordinates.length&amp;&amp;!n.coordinates.some((function(t){return!Array.isArray(t)||2!==t.length||t.some((function(t){return&quot;number&quot;!=typeof t}))}))||this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'&quot;coordinates&quot; property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'missing required property &quot;coordinates&quot;'))),n.animate&amp;&amp;&quot;boolean&quot;!=typeof n.animate&amp;&amp;this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'optional &quot;animate&quot; property must be a boolean value'))),n.canvas?&quot;string&quot;==typeof n.canvas||n.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'&quot;canvas&quot; must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'missing required property &quot;canvas&quot;'))),this.options=n,this.animate=void 0===n.animate||n.animate}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error(&quot;Canvas dimensions cannot be less than or equal to zero.&quot;))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&amp;&amp;(this.prepare(),this._playing=!1)},this._finishLoading())},r.prototype.getCanvas=function(){return this.canvas},r.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&amp;&amp;this.animate&amp;&amp;this.play()},r.prototype.onRemove=function(){this.pause()},r.prototype.prepare=function(){var e=!1;if(this.canvas.width!==this.width&amp;&amp;(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&amp;&amp;(this.height=this.canvas.height,e=!0),!this._hasInvalidDimensions()&amp;&amp;0!==Object.keys(this.tiles).length){var r=this.map.painter.context,n=r.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=r.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&amp;&amp;this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(r,this.canvas,n.RGBA,{premultiply:!0}),this.tiles){var a=this.tiles[i];&quot;loaded&quot;!==a.state&amp;&amp;(a.state=&quot;loaded&quot;,a.texture=this.texture)}}},r.prototype.serialize=function(){return{type:&quot;canvas&quot;,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this._playing},r.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];t&lt;e.length;t+=1){var r=e[t];if(isNaN(r)||r&lt;=0)return!0}return!1},r}(P),D={vector:S,raster:E,&quot;raster-dem&quot;:C,geojson:L,video:z,image:P,canvas:O};function R(e,r){var n=t.identity([]);return t.translate(n,n,[1,1,0]),t.scale(n,n,[.5*e.width,.5*e.height,1]),t.multiply(n,n,e.calculatePosMatrix(r.toUnwrapped()))}function F(t,e,r,n,i,a){var o=function(t,e,r){if(t)for(var n=0,i=t;n&lt;i.length;n+=1){var a=e[i[n]];if(a&amp;&amp;a.source===r&amp;&amp;&quot;fill-extrusion&quot;===a.type)return!0}else for(var o in e){var s=e[o];if(s.source===r&amp;&amp;&quot;fill-extrusion&quot;===s.type)return!0}return!1}(i&amp;&amp;i.layers,e,t.id),s=a.maxPitchScaleFactor(),l=t.tilesIn(n,s,o);l.sort(B);for(var c=[],u=0,f=l;u&lt;f.length;u+=1){var h=f[u];c.push({wrappedTileID:h.tileID.wrapped().key,queryResults:h.tile.queryRenderedFeatures(e,r,t._state,h.queryGeometry,h.cameraQueryGeometry,h.scale,i,a,s,R(t.transform,h.tileID))})}var p=function(t){for(var e={},r={},n=0,i=t;n&lt;i.length;n+=1){var a=i[n],o=a.queryResults,s=a.wrappedTileID,l=r[s]=r[s]||{};for(var c in o)for(var u=o[c],f=l[c]=l[c]||{},h=e[c]=e[c]||[],p=0,d=u;p&lt;d.length;p+=1){var g=d[p];f[g.featureIndex]||(f[g.featureIndex]=!0,h.push(g))}}return e}(c);for(var d in p)p[d].forEach((function(e){var r=e.feature,n=t.getFeatureState(r.layer[&quot;source-layer&quot;],r.id);r.source=r.layer.source,r.layer[&quot;source-layer&quot;]&amp;&amp;(r.sourceLayer=r.layer[&quot;source-layer&quot;]),r.state=n}));return p}function B(t,e){var r=t.tileID,n=e.tileID;return r.overscaledZ-n.overscaledZ||r.canonical.y-n.canonical.y||r.wrap-n.wrap||r.canonical.x-n.canonical.x}var N=function(t,e){this.max=t,this.onRemove=e,this.reset()};N.prototype.reset=function(){for(var t in this.data)for(var e=0,r=this.data[t];e&lt;r.length;e+=1){var n=r[e];n.timeout&amp;&amp;clearTimeout(n.timeout),this.onRemove(n.value)}return this.data={},this.order=[],this},N.prototype.add=function(t,e,r){var n=this,i=t.wrapped().key;void 0===this.data[i]&amp;&amp;(this.data[i]=[]);var a={value:e,timeout:void 0};if(void 0!==r&amp;&amp;(a.timeout=setTimeout((function(){n.remove(t,a)}),r)),this.data[i].push(a),this.order.push(i),this.order.length&gt;this.max){var o=this._getAndRemoveByKey(this.order[0]);o&amp;&amp;this.onRemove(o)}return this},N.prototype.has=function(t){return t.wrapped().key in this.data},N.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},N.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&amp;&amp;clearTimeout(e.timeout),0===this.data[t].length&amp;&amp;delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},N.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},N.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},N.prototype.remove=function(t,e){if(!this.has(t))return this;var r=t.wrapped().key,n=void 0===e?0:this.data[r].indexOf(e),i=this.data[r][n];return this.data[r].splice(n,1),i.timeout&amp;&amp;clearTimeout(i.timeout),0===this.data[r].length&amp;&amp;delete this.data[r],this.onRemove(i.value),this.order.splice(this.order.indexOf(r),1),this},N.prototype.setMaxSize=function(t){for(this.max=t;this.order.length&gt;this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&amp;&amp;this.onRemove(e)}return this},N.prototype.filter=function(t){var e=[];for(var r in this.data)for(var n=0,i=this.data[r];n&lt;i.length;n+=1){var a=i[n];t(a.value)||e.push(a)}for(var o=0,s=e;o&lt;s.length;o+=1){var l=s[o];this.remove(l.value.tileID,l)}};var j=function(t,e,r){this.context=t;var n=t.gl;this.buffer=n.createBuffer(),this.dynamicDraw=Boolean(r),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),n.bufferData(n.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};j.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},j.prototype.updateData=function(t){var e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)},j.prototype.destroy=function(){this.buffer&amp;&amp;(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var U={Int8:&quot;BYTE&quot;,Uint8:&quot;UNSIGNED_BYTE&quot;,Int16:&quot;SHORT&quot;,Uint16:&quot;UNSIGNED_SHORT&quot;,Int32:&quot;INT&quot;,Uint32:&quot;UNSIGNED_INT&quot;,Float32:&quot;FLOAT&quot;},V=function(t,e,r,n){this.length=e.length,this.attributes=r,this.itemSize=e.bytesPerElement,this.dynamicDraw=n,this.context=t;var i=t.gl;this.buffer=i.createBuffer(),t.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};V.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},V.prototype.updateData=function(t){var e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)},V.prototype.enableAttributes=function(t,e){for(var r=0;r&lt;this.attributes.length;r++){var n=e.attributes[this.attributes[r].name];void 0!==n&amp;&amp;t.enableVertexAttribArray(n)}},V.prototype.setVertexAttribPointers=function(t,e,r){for(var n=0;n&lt;this.attributes.length;n++){var i=this.attributes[n],a=e.attributes[i.name];void 0!==a&amp;&amp;t.vertexAttribPointer(a,i.components,t[U[i.type]],!1,this.itemSize,i.offset+this.itemSize*(r||0))}},V.prototype.destroy=function(){this.buffer&amp;&amp;(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var q=function(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};q.prototype.get=function(){return this.current},q.prototype.set=function(t){},q.prototype.getDefault=function(){return this.default},q.prototype.setDefault=function(){this.set(this.default)};var H=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),G=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 1},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearDepth(t),this.current=t,this.dirty=!1)},e}(q),Y=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearStencil(t),this.current=t,this.dirty=!1)},e}(q),W=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return[!0,!0,!0,!0]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),X=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthMask(t),this.current=t,this.dirty=!1)},e}(q),Z=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 255},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.stencilMask(t),this.current=t,this.dirty=!1)},e}(q),J=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},e.prototype.set=function(t){var e=this.current;(t.func!==e.func||t.ref!==e.ref||t.mask!==e.mask||this.dirty)&amp;&amp;(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)},e}(q),K=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||this.dirty)&amp;&amp;(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)},e}(q),Q=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}},e}(q),$=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return[0,1]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),tt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}},e}(q),et=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.LESS},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthFunc(t),this.current=t,this.dirty=!1)},e}(q),rt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}},e}(q),nt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.ONE,t.ZERO]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),it=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),at=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.FUNC_ADD},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.blendEquation(t),this.current=t,this.dirty=!1)},e}(q),ot=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}},e}(q),st=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.BACK},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.cullFace(t),this.current=t,this.dirty=!1)},e}(q),lt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.CCW},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.frontFace(t),this.current=t,this.dirty=!1)},e}(q),ct=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.useProgram(t),this.current=t,this.dirty=!1)},e}(q),ut=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.TEXTURE0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.activeTexture(t),this.current=t,this.dirty=!1)},e}(q),ft=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),ht=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}},e}(q),pt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(q),dt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}},e}(q),gt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}},e}(q),mt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1},e}(q),vt=function(t){function e(e){t.call(this,e),this.vao=e.extVertexArrayObject}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){this.vao&amp;&amp;(t!==this.current||this.dirty)&amp;&amp;(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1)},e}(q),yt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 4},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}},e}(q),xt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),bt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),_t=function(t){function e(e,r){t.call(this,e),this.context=e,this.parent=r}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e}(q),wt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.setDirty=function(){this.dirty=!0},e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},e}(_t),Tt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(_t),kt=function(t,e,r,n){this.context=t,this.width=e,this.height=r;var i=this.framebuffer=t.gl.createFramebuffer();this.colorAttachment=new wt(t,i),n&amp;&amp;(this.depthAttachment=new Tt(t,i))};kt.prototype.destroy=function(){var t=this.context.gl,e=this.colorAttachment.get();if(e&amp;&amp;t.deleteTexture(e),this.depthAttachment){var r=this.depthAttachment.get();r&amp;&amp;t.deleteRenderbuffer(r)}t.deleteFramebuffer(this.framebuffer)};var Mt=function(t,e,r){this.func=t,this.mask=e,this.range=r};Mt.ReadOnly=!1,Mt.ReadWrite=!0,Mt.disabled=new Mt(519,Mt.ReadOnly,[0,1]);var At=function(t,e,r,n,i,a){this.test=t,this.ref=e,this.mask=r,this.fail=n,this.depthFail=i,this.pass=a};At.disabled=new At({func:519,mask:0},0,0,7680,7680,7680);var St=function(t,e,r){this.blendFunction=t,this.blendColor=e,this.mask=r};St.disabled=new St(St.Replace=[1,0],t.Color.transparent,[!1,!1,!1,!1]),St.unblended=new St(St.Replace,t.Color.transparent,[!0,!0,!0,!0]),St.alphaBlended=new St([1,771],t.Color.transparent,[!0,!0,!0,!0]);var Et=function(t,e,r){this.enable=t,this.mode=e,this.frontFace=r};Et.disabled=new Et(!1,1029,2305),Et.backCCW=new Et(!0,1029,2305);var Ct=function(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension(&quot;OES_vertex_array_object&quot;),this.clearColor=new H(this),this.clearDepth=new G(this),this.clearStencil=new Y(this),this.colorMask=new W(this),this.depthMask=new X(this),this.stencilMask=new Z(this),this.stencilFunc=new J(this),this.stencilOp=new K(this),this.stencilTest=new Q(this),this.depthRange=new $(this),this.depthTest=new tt(this),this.depthFunc=new et(this),this.blend=new rt(this),this.blendFunc=new nt(this),this.blendColor=new it(this),this.blendEquation=new at(this),this.cullFace=new ot(this),this.cullFaceSide=new st(this),this.frontFace=new lt(this),this.program=new ct(this),this.activeTexture=new ut(this),this.viewport=new ft(this),this.bindFramebuffer=new ht(this),this.bindRenderbuffer=new pt(this),this.bindTexture=new dt(this),this.bindVertexBuffer=new gt(this),this.bindElementBuffer=new mt(this),this.bindVertexArrayOES=this.extVertexArrayObject&amp;&amp;new vt(this),this.pixelStoreUnpack=new yt(this),this.pixelStoreUnpackPremultiplyAlpha=new xt(this),this.pixelStoreUnpackFlipY=new bt(this),this.extTextureFilterAnisotropic=t.getExtension(&quot;EXT_texture_filter_anisotropic&quot;)||t.getExtension(&quot;MOZ_EXT_texture_filter_anisotropic&quot;)||t.getExtension(&quot;WEBKIT_EXT_texture_filter_anisotropic&quot;),this.extTextureFilterAnisotropic&amp;&amp;(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension(&quot;OES_texture_half_float&quot;),this.extTextureHalfFloat&amp;&amp;(t.getExtension(&quot;OES_texture_half_float_linear&quot;),this.extRenderToTextureHalfFloat=t.getExtension(&quot;EXT_color_buffer_half_float&quot;)),this.extTimerQuery=t.getExtension(&quot;EXT_disjoint_timer_query&quot;)};Ct.prototype.setDefault=function(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()},Ct.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&amp;&amp;(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},Ct.prototype.createIndexBuffer=function(t,e){return new j(this,t,e)},Ct.prototype.createVertexBuffer=function(t,e,r){return new V(this,t,e,r)},Ct.prototype.createRenderbuffer=function(t,e,r){var n=this.gl,i=n.createRenderbuffer();return this.bindRenderbuffer.set(i),n.renderbufferStorage(n.RENDERBUFFER,t,e,r),this.bindRenderbuffer.set(null),i},Ct.prototype.createFramebuffer=function(t,e,r){return new kt(this,t,e,r)},Ct.prototype.clear=function(t){var e=t.color,r=t.depth,n=this.gl,i=0;e&amp;&amp;(i|=n.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==r&amp;&amp;(i|=n.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(r),this.depthMask.set(!0)),n.clear(i)},Ct.prototype.setCullFace=function(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))},Ct.prototype.setDepthMode=function(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)},Ct.prototype.setStencilMode=function(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)},Ct.prototype.setColorMode=function(e){t.deepEqual(e.blendFunction,St.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)},Ct.prototype.unbindVAO=function(){this.extVertexArrayObject&amp;&amp;this.bindVertexArrayOES.set(null)};var Lt=function(e){function r(r,n,i){var a=this;e.call(this),this.id=r,this.dispatcher=i,this.on(&quot;data&quot;,(function(t){&quot;source&quot;===t.dataType&amp;&amp;&quot;metadata&quot;===t.sourceDataType&amp;&amp;(a._sourceLoaded=!0),a._sourceLoaded&amp;&amp;!a._paused&amp;&amp;&quot;source&quot;===t.dataType&amp;&amp;&quot;content&quot;===t.sourceDataType&amp;&amp;(a.reload(),a.transform&amp;&amp;a.update(a.transform))})),this.on(&quot;error&quot;,(function(){a._sourceErrored=!0})),this._source=function(e,r,n,i){var a=new D[r.type](e,r,n,i);if(a.id!==e)throw new Error(&quot;Expected Source id to be &quot;+e+&quot; instead of &quot;+a.id);return t.bindAll([&quot;load&quot;,&quot;abort&quot;,&quot;unload&quot;,&quot;serialize&quot;,&quot;prepare&quot;],a),a}(r,n,i,this),this._tiles={},this._cache=new N(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new t.SourceFeatureState}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.onAdd=function(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&amp;&amp;this._source.onAdd&amp;&amp;this._source.onAdd(t)},r.prototype.onRemove=function(t){this._source&amp;&amp;this._source.onRemove&amp;&amp;this._source.onRemove(t)},r.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var t in this._tiles){var e=this._tiles[t];if(&quot;loaded&quot;!==e.state&amp;&amp;&quot;errored&quot;!==e.state)return!1}return!0},r.prototype.getSource=function(){return this._source},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){if(this._paused){var t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&amp;&amp;this.reload(),this.transform&amp;&amp;this.update(this.transform)}},r.prototype._loadTile=function(t,e){return this._source.loadTile(t,e)},r.prototype._unloadTile=function(t){if(this._source.unloadTile)return this._source.unloadTile(t,(function(){}))},r.prototype._abortTile=function(t){if(this._source.abortTile)return this._source.abortTile(t,(function(){}))},r.prototype.serialize=function(){return this._source.serialize()},r.prototype.prepare=function(t){for(var e in this._source.prepare&amp;&amp;this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var r=this._tiles[e];r.upload(t),r.prepare(this.map.style.imageManager)}},r.prototype.getIds=function(){return t.values(this._tiles).map((function(t){return t.tileID})).sort(It).map((function(t){return t.key}))},r.prototype.getRenderableIds=function(e){var r=this,n=[];for(var i in this._tiles)this._isIdRenderable(i,e)&amp;&amp;n.push(this._tiles[i]);return e?n.sort((function(e,n){var i=e.tileID,a=n.tileID,o=new t.Point(i.canonical.x,i.canonical.y)._rotate(r.transform.angle),s=new t.Point(a.canonical.x,a.canonical.y)._rotate(r.transform.angle);return i.overscaledZ-a.overscaledZ||s.y-o.y||s.x-o.x})).map((function(t){return t.tileID.key})):n.map((function(t){return t.tileID})).sort(It).map((function(t){return t.key}))},r.prototype.hasRenderableParent=function(t){var e=this.findLoadedParent(t,0);return!!e&amp;&amp;this._isIdRenderable(e.tileID.key)},r.prototype._isIdRenderable=function(t,e){return this._tiles[t]&amp;&amp;this._tiles[t].hasData()&amp;&amp;!this._coveredTiles[t]&amp;&amp;(e||!this._tiles[t].holdingForFade())},r.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var t in this._cache.reset(),this._tiles)&quot;errored&quot;!==this._tiles[t].state&amp;&amp;this._reloadTile(t,&quot;reloading&quot;)},r.prototype._reloadTile=function(t,e){var r=this._tiles[t];r&amp;&amp;(&quot;loading&quot;!==r.state&amp;&amp;(r.state=e),this._loadTile(r,this._tileLoaded.bind(this,r,t,e)))},r.prototype._tileLoaded=function(e,r,n,i){if(i)return e.state=&quot;errored&quot;,void(404!==i.status?this._source.fire(new t.ErrorEvent(i,{tile:e})):this.update(this.transform));e.timeAdded=t.browser.now(),&quot;expired&quot;===n&amp;&amp;(e.refreshedUponExpiration=!0),this._setTileReloadTimer(r,e),&quot;raster-dem&quot;===this.getSource().type&amp;&amp;e.dem&amp;&amp;this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,tile:e,coord:e.tileID}))},r.prototype._backfillDEM=function(t){for(var e=this.getRenderableIds(),r=0;r&lt;e.length;r++){var n=e[r];if(t.neighboringTiles&amp;&amp;t.neighboringTiles[n]){var i=this.getTileByID(n);a(t,i),a(i,t)}}function a(t,e){t.needsHillshadePrepare=!0;var r=e.tileID.canonical.x-t.tileID.canonical.x,n=e.tileID.canonical.y-t.tileID.canonical.y,i=Math.pow(2,t.tileID.canonical.z),a=e.tileID.key;0===r&amp;&amp;0===n||Math.abs(n)&gt;1||(Math.abs(r)&gt;1&amp;&amp;(1===Math.abs(r+i)?r+=i:1===Math.abs(r-i)&amp;&amp;(r-=i)),e.dem&amp;&amp;t.dem&amp;&amp;(t.dem.backfillBorder(e.dem,r,n),t.neighboringTiles&amp;&amp;t.neighboringTiles[a]&amp;&amp;(t.neighboringTiles[a].backfilled=!0)))}},r.prototype.getTile=function(t){return this.getTileByID(t.key)},r.prototype.getTileByID=function(t){return this._tiles[t]},r.prototype._retainLoadedChildren=function(t,e,r,n){for(var i in this._tiles){var a=this._tiles[i];if(!(n[i]||!a.hasData()||a.tileID.overscaledZ&lt;=e||a.tileID.overscaledZ&gt;r)){for(var o=a.tileID;a&amp;&amp;a.tileID.overscaledZ&gt;e+1;){var s=a.tileID.scaledTo(a.tileID.overscaledZ-1);(a=this._tiles[s.key])&amp;&amp;a.hasData()&amp;&amp;(o=s)}for(var l=o;l.overscaledZ&gt;e;)if(t[(l=l.scaledTo(l.overscaledZ-1)).key]){n[o.key]=o;break}}}},r.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var r=this._loadedParentTiles[t.key];return r&amp;&amp;r.tileID.overscaledZ&gt;=e?r:null}for(var n=t.overscaledZ-1;n&gt;=e;n--){var i=t.scaledTo(n),a=this._getLoadedTile(i);if(a)return a}},r.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&amp;&amp;e.hasData()?e:this._cache.getByKey(t.wrapped().key)},r.prototype.updateCacheSize=function(t){var e=Math.ceil(t.width/this._source.tileSize)+1,r=Math.ceil(t.height/this._source.tileSize)+1,n=Math.floor(e*r*5),i=&quot;number&quot;==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,n):n;this._cache.setMaxSize(i)},r.prototype.handleWrapJump=function(t){var e=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);if(this._prevLng=t,e){var r={};for(var n in this._tiles){var i=this._tiles[n];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+e),r[i.tileID.key]=i}for(var a in this._tiles=r,this._timers)clearTimeout(this._timers[a]),delete this._timers[a];for(var o in this._tiles)this._setTileReloadTimer(o,this._tiles[o])}},r.prototype.update=function(e){var n=this;if(this.transform=e,this._sourceLoaded&amp;&amp;!this._paused){var i;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)})):(i=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&amp;&amp;(i=i.filter((function(t){return n._source.hasTile(t)})))):i=[];var a=e.coveringZoomLevel(this._source),o=Math.max(a-r.maxOverzooming,this._source.minzoom),s=Math.max(a+r.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(i,a);if(Pt(this._source.type)){for(var c={},u={},f=0,h=Object.keys(l);f&lt;h.length;f+=1){var p=h[f],d=l[p],g=this._tiles[p];if(g&amp;&amp;!(g.fadeEndTime&amp;&amp;g.fadeEndTime&lt;=t.browser.now())){var m=this.findLoadedParent(d,o);m&amp;&amp;(this._addTile(m.tileID),c[m.tileID.key]=m.tileID),u[p]=d}}for(var v in this._retainLoadedChildren(u,a,s,l),c)l[v]||(this._coveredTiles[v]=!0,l[v]=c[v])}for(var y in l)this._tiles[y].clearFadeHold();for(var x=0,b=t.keysDifference(this._tiles,l);x&lt;b.length;x+=1){var _=b[x],w=this._tiles[_];w.hasSymbolBuckets&amp;&amp;!w.holdingForFade()?w.setHoldDuration(this.map._fadeDuration):w.hasSymbolBuckets&amp;&amp;!w.symbolFadeFinished()||this._removeTile(_)}this._updateLoadedParentTileCache()}},r.prototype.releaseSymbolFadeTiles=function(){for(var t in this._tiles)this._tiles[t].holdingForFade()&amp;&amp;this._removeTile(t)},r.prototype._updateRetainedTiles=function(t,e){for(var n={},i={},a=Math.max(e-r.maxOverzooming,this._source.minzoom),o=Math.max(e+r.maxUnderzooming,this._source.minzoom),s={},l=0,c=t;l&lt;c.length;l+=1){var u=c[l],f=this._addTile(u);n[u.key]=u,f.hasData()||e&lt;this._source.maxzoom&amp;&amp;(s[u.key]=u)}this._retainLoadedChildren(s,e,o,n);for(var h=0,p=t;h&lt;p.length;h+=1){var d=p[h],g=this._tiles[d.key];if(!g.hasData()){if(e+1&gt;this._source.maxzoom){var m=d.children(this._source.maxzoom)[0],v=this.getTile(m);if(v&amp;&amp;v.hasData()){n[m.key]=m;continue}}else{var y=d.children(this._source.maxzoom);if(n[y[0].key]&amp;&amp;n[y[1].key]&amp;&amp;n[y[2].key]&amp;&amp;n[y[3].key])continue}for(var x=g.wasRequested(),b=d.overscaledZ-1;b&gt;=a;--b){var _=d.scaledTo(b);if(i[_.key])break;if(i[_.key]=!0,!(g=this.getTile(_))&amp;&amp;x&amp;&amp;(g=this._addTile(_)),g&amp;&amp;(n[_.key]=_,x=g.wasRequested(),g.hasData()))break}}}return n},r.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],r=void 0,n=this._tiles[t].tileID;n.overscaledZ&gt;0;){if(n.key in this._loadedParentTiles){r=this._loadedParentTiles[n.key];break}e.push(n.key);var i=n.scaledTo(n.overscaledZ-1);if(r=this._getLoadedTile(i))break;n=i}for(var a=0,o=e;a&lt;o.length;a+=1)this._loadedParentTiles[o[a]]=r}},r.prototype._addTile=function(e){var r=this._tiles[e.key];if(r)return r;(r=this._cache.getAndRemove(e))&amp;&amp;(this._setTileReloadTimer(e.key,r),r.tileID=e,this._state.initializeTileState(r,this.map?this.map.painter:null),this._cacheTimers[e.key]&amp;&amp;(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,r)));var n=Boolean(r);return n||(r=new t.Tile(e,this._source.tileSize*e.overscaleFactor()),this._loadTile(r,this._tileLoaded.bind(this,r,e.key,r.state))),r?(r.uses++,this._tiles[e.key]=r,n||this._source.fire(new t.Event(&quot;dataloading&quot;,{tile:r,coord:r.tileID,dataType:&quot;source&quot;})),r):null},r.prototype._setTileReloadTimer=function(t,e){var r=this;t in this._timers&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]);var n=e.getExpiryTimeout();n&amp;&amp;(this._timers[t]=setTimeout((function(){r._reloadTile(t,&quot;expired&quot;),delete r._timers[t]}),n))},r.prototype._removeTile=function(t){var e=this._tiles[t];e&amp;&amp;(e.uses--,delete this._tiles[t],this._timers[t]&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses&gt;0||(e.hasData()&amp;&amp;&quot;reloading&quot;!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},r.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},r.prototype.tilesIn=function(e,r,n){var i=this,a=[],o=this.transform;if(!o)return a;for(var s=n?o.getCameraQueryGeometry(e):e,l=e.map((function(t){return o.pointCoordinate(t)})),c=s.map((function(t){return o.pointCoordinate(t)})),u=this.getIds(),f=1/0,h=1/0,p=-1/0,d=-1/0,g=0,m=c;g&lt;m.length;g+=1){var v=m[g];f=Math.min(f,v.x),h=Math.min(h,v.y),p=Math.max(p,v.x),d=Math.max(d,v.y)}for(var y=function(e){var n=i._tiles[u[e]];if(!n.holdingForFade()){var s=n.tileID,g=Math.pow(2,o.zoom-n.tileID.overscaledZ),m=r*n.queryPadding*t.EXTENT/n.tileSize/g,v=[s.getTilePoint(new t.MercatorCoordinate(f,h)),s.getTilePoint(new t.MercatorCoordinate(p,d))];if(v[0].x-m&lt;t.EXTENT&amp;&amp;v[0].y-m&lt;t.EXTENT&amp;&amp;v[1].x+m&gt;=0&amp;&amp;v[1].y+m&gt;=0){var y=l.map((function(t){return s.getTilePoint(t)})),x=c.map((function(t){return s.getTilePoint(t)}));a.push({tile:n,tileID:s,queryGeometry:y,cameraQueryGeometry:x,scale:g})}}},x=0;x&lt;u.length;x++)y(x);return a},r.prototype.getVisibleCoordinates=function(t){for(var e=this,r=this.getRenderableIds(t).map((function(t){return e._tiles[t].tileID})),n=0,i=r;n&lt;i.length;n+=1){var a=i[n];a.posMatrix=this.transform.calculatePosMatrix(a.toUnwrapped())}return r},r.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(Pt(this._source.type))for(var e in this._tiles){var r=this._tiles[e];if(void 0!==r.fadeEndTime&amp;&amp;r.fadeEndTime&gt;=t.browser.now())return!0}return!1},r.prototype.setFeatureState=function(t,e,r){this._state.updateState(t=t||&quot;_geojsonTileLayer&quot;,e,r)},r.prototype.removeFeatureState=function(t,e,r){this._state.removeFeatureState(t=t||&quot;_geojsonTileLayer&quot;,e,r)},r.prototype.getFeatureState=function(t,e){return this._state.getState(t=t||&quot;_geojsonTileLayer&quot;,e)},r.prototype.setDependencies=function(t,e,r){var n=this._tiles[t];n&amp;&amp;n.setDependencies(e,r)},r.prototype.reloadTilesForDependencies=function(t,e){for(var r in this._tiles)this._tiles[r].hasDependency(t,e)&amp;&amp;this._reloadTile(r,&quot;reloading&quot;);this._cache.filter((function(r){return!r.hasDependency(t,e)}))},r}(t.Evented);function It(t,e){var r=Math.abs(2*t.wrap)-+(t.wrap&lt;0),n=Math.abs(2*e.wrap)-+(e.wrap&lt;0);return t.overscaledZ-e.overscaledZ||n-r||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function Pt(t){return&quot;raster&quot;===t||&quot;image&quot;===t||&quot;video&quot;===t}function zt(){return new t.window.Worker(Yi.workerUrl)}Lt.maxOverzooming=10,Lt.maxUnderzooming=3;var Ot=&quot;mapboxgl_preloaded_worker_pool&quot;,Dt=function(){this.active={}};Dt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length&lt;Dt.workerCount;)this.workers.push(new zt);return this.active[t]=!0,this.workers.slice()},Dt.prototype.release=function(t){delete this.active[t],0===this.numActive()&amp;&amp;(this.workers.forEach((function(t){t.terminate()})),this.workers=null)},Dt.prototype.isPreloaded=function(){return!!this.active[Ot]},Dt.prototype.numActive=function(){return Object.keys(this.active).length};var Rt,Ft=Math.floor(t.browser.hardwareConcurrency/2);function Bt(){return Rt||(Rt=new Dt),Rt}function Nt(e,r){var n={};for(var i in e)&quot;ref&quot;!==i&amp;&amp;(n[i]=e[i]);return t.refProperties.forEach((function(t){t in r&amp;&amp;(n[t]=r[t])})),n}function jt(t){t=t.slice();for(var e=Object.create(null),r=0;r&lt;t.length;r++)e[t[r].id]=t[r];for(var n=0;n&lt;t.length;n++)&quot;ref&quot;in t[n]&amp;&amp;(t[n]=Nt(t[n],e[t[n].ref]));return t}Dt.workerCount=Math.max(Math.min(Ft,6),1);var Ut={setStyle:&quot;setStyle&quot;,addLayer:&quot;addLayer&quot;,removeLayer:&quot;removeLayer&quot;,setPaintProperty:&quot;setPaintProperty&quot;,setLayoutProperty:&quot;setLayoutProperty&quot;,setFilter:&quot;setFilter&quot;,addSource:&quot;addSource&quot;,removeSource:&quot;removeSource&quot;,setGeoJSONSourceData:&quot;setGeoJSONSourceData&quot;,setLayerZoomRange:&quot;setLayerZoomRange&quot;,setLayerProperty:&quot;setLayerProperty&quot;,setCenter:&quot;setCenter&quot;,setZoom:&quot;setZoom&quot;,setBearing:&quot;setBearing&quot;,setPitch:&quot;setPitch&quot;,setSprite:&quot;setSprite&quot;,setGlyphs:&quot;setGlyphs&quot;,setTransition:&quot;setTransition&quot;,setLight:&quot;setLight&quot;};function Vt(t,e,r){r.push({command:Ut.addSource,args:[t,e[t]]})}function qt(t,e,r){e.push({command:Ut.removeSource,args:[t]}),r[t]=!0}function Ht(t,e,r,n){qt(t,r,n),Vt(t,e,r)}function Gt(e,r,n){var i;for(i in e[n])if(e[n].hasOwnProperty(i)&amp;&amp;&quot;data&quot;!==i&amp;&amp;!t.deepEqual(e[n][i],r[n][i]))return!1;for(i in r[n])if(r[n].hasOwnProperty(i)&amp;&amp;&quot;data&quot;!==i&amp;&amp;!t.deepEqual(e[n][i],r[n][i]))return!1;return!0}function Yt(e,r,n,i,a,o){var s;for(s in r=r||{},e=e||{})e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}));for(s in r)r.hasOwnProperty(s)&amp;&amp;!e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}))}function Wt(t){return t.id}function Xt(t,e){return t[e.id]=e,t}var Zt=function(t,e){this.reset(t,e)};Zt.prototype.reset=function(t,e){this.points=t||[],this._distances=[0];for(var r=1;r&lt;this.points.length;r++)this._distances[r]=this._distances[r-1]+this.points[r].dist(this.points[r-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(e||0,.5*this.length),this.paddedLength=this.length-2*this.padding},Zt.prototype.lerp=function(e){if(1===this.points.length)return this.points[0];e=t.clamp(e,0,1);for(var r=1,n=this._distances[r],i=e*this.paddedLength+this.padding;n&lt;i&amp;&amp;r&lt;this._distances.length;)n=this._distances[++r];var a=r-1,o=this._distances[a],s=n-o,l=s&gt;0?(i-o)/s:0;return this.points[a].mult(1-l).add(this.points[r].mult(l))};var Jt=function(t,e,r){var n=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(e/r);for(var a=0;a&lt;this.xCellCount*this.yCellCount;a++)n.push([]),i.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0};function Kt(e,r,n,i,a){var o=t.create();return r?(t.scale(o,o,[1/a,1/a,1]),n||t.rotateZ(o,o,i.angle)):t.multiply(o,i.labelPlaneMatrix,e),o}function Qt(e,r,n,i,a){if(r){var o=t.clone(e);return t.scale(o,o,[a,a,1]),n||t.rotateZ(o,o,-i.angle),o}return i.glCoordMatrix}function $t(e,r){var n=[e.x,e.y,0,1];ue(n,n,r);var i=n[3];return{point:new t.Point(n[0]/i,n[1]/i),signedDistanceFromCamera:i}}function te(t,e){return.5+t/e*.5}function ee(t,e){var r=t[0]/t[3],n=t[1]/t[3];return r&gt;=-e[0]&amp;&amp;r&lt;=e[0]&amp;&amp;n&gt;=-e[1]&amp;&amp;n&lt;=e[1]}function re(e,r,n,i,a,o,s,l){var c=i?e.textSizeData:e.iconSizeData,u=t.evaluateSizeForZoom(c,n.transform.zoom),f=[256/n.width*2+1,256/n.height*2+1],h=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;h.clear();for(var p=e.lineVertexArray,d=i?e.text.placedSymbolArray:e.icon.placedSymbolArray,g=n.transform.width/n.transform.height,m=!1,v=0;v&lt;d.length;v++){var y=d.get(v);if(y.hidden||y.writingMode===t.WritingMode.vertical&amp;&amp;!m)ce(y.numGlyphs,h);else{m=!1;var x=[y.anchorX,y.anchorY,0,1];if(t.transformMat4(x,x,r),ee(x,f)){var b=te(n.transform.cameraToCenterDistance,x[3]),_=t.evaluateSizeForFeature(c,u,y),w=s?_/b:_*b,T=new t.Point(y.anchorX,y.anchorY),k=$t(T,a).point,M={},A=ae(y,w,!1,l,r,a,o,e.glyphOffsetArray,p,h,k,T,M,g);m=A.useVertical,(A.notEnoughRoom||m||A.needsFlipping&amp;&amp;ae(y,w,!0,l,r,a,o,e.glyphOffsetArray,p,h,k,T,M,g).notEnoughRoom)&amp;&amp;ce(y.numGlyphs,h)}else ce(y.numGlyphs,h)}}i?e.text.dynamicLayoutVertexBuffer.updateData(h):e.icon.dynamicLayoutVertexBuffer.updateData(h)}function ne(t,e,r,n,i,a,o,s,l,c,u){var f=s.glyphStartIndex+s.numGlyphs,h=s.lineStartIndex,p=s.lineStartIndex+s.lineLength,d=e.getoffsetX(s.glyphStartIndex),g=e.getoffsetX(f-1),m=se(t*d,r,n,i,a,o,s.segment,h,p,l,c,u);if(!m)return null;var v=se(t*g,r,n,i,a,o,s.segment,h,p,l,c,u);return v?{first:m,last:v}:null}function ie(e,r,n,i){return e===t.WritingMode.horizontal&amp;&amp;Math.abs(n.y-r.y)&gt;Math.abs(n.x-r.x)*i?{useVertical:!0}:(e===t.WritingMode.vertical?r.y&lt;n.y:r.x&gt;n.x)?{needsFlipping:!0}:null}function ae(e,r,n,i,a,o,s,l,c,u,f,h,p,d){var g,m=r/24,v=e.lineOffsetX*m,y=e.lineOffsetY*m;if(e.numGlyphs&gt;1){var x=e.glyphStartIndex+e.numGlyphs,b=e.lineStartIndex,_=e.lineStartIndex+e.lineLength,w=ne(m,l,v,y,n,f,h,e,c,o,p);if(!w)return{notEnoughRoom:!0};var T=$t(w.first.point,s).point,k=$t(w.last.point,s).point;if(i&amp;&amp;!n){var M=ie(e.writingMode,T,k,d);if(M)return M}g=[w.first];for(var A=e.glyphStartIndex+1;A&lt;x-1;A++)g.push(se(m*l.getoffsetX(A),v,y,n,f,h,e.segment,b,_,c,o,p));g.push(w.last)}else{if(i&amp;&amp;!n){var S=$t(h,a).point,E=e.lineStartIndex+e.segment+1,C=new t.Point(c.getx(E),c.gety(E)),L=$t(C,a),I=L.signedDistanceFromCamera&gt;0?L.point:oe(h,C,S,1,a),P=ie(e.writingMode,S,I,d);if(P)return P}var z=se(m*l.getoffsetX(e.glyphStartIndex),v,y,n,f,h,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,c,o,p);if(!z)return{notEnoughRoom:!0};g=[z]}for(var O=0,D=g;O&lt;D.length;O+=1){var R=D[O];t.addDynamicAttributes(u,R.point,R.angle)}return{}}function oe(t,e,r,n,i){var a=$t(t.add(t.sub(e)._unit()),i).point,o=r.sub(a);return r.add(o._mult(n/o.mag()))}function se(e,r,n,i,a,o,s,l,c,u,f,h){var p=i?e-r:e+r,d=p&gt;0?1:-1,g=0;i&amp;&amp;(d*=-1,g=Math.PI),d&lt;0&amp;&amp;(g+=Math.PI);for(var m=d&gt;0?l+s:l+s+1,v=a,y=a,x=0,b=0,_=Math.abs(p),w=[];x+b&lt;=_;){if((m+=d)&lt;l||m&gt;=c)return null;if(y=v,w.push(v),void 0===(v=h[m])){var T=new t.Point(u.getx(m),u.gety(m)),k=$t(T,f);if(k.signedDistanceFromCamera&gt;0)v=h[m]=k.point;else{var M=m-d;v=oe(0===x?o:new t.Point(u.getx(M),u.gety(M)),T,y,_-x+1,f)}}x+=b,b=y.dist(v)}var A=(_-x)/b,S=v.sub(y),E=S.mult(A)._add(y);E._add(S._unit()._perp()._mult(n*d));var C=g+Math.atan2(v.y-y.y,v.x-y.x);return w.push(E),{point:E,angle:C,path:w}}Jt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Jt.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},Jt.prototype.insertCircle=function(t,e,r,n){this._forEachCell(e-n,r-n,e+n,r+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(r),this.circles.push(n)},Jt.prototype._insertBoxCell=function(t,e,r,n,i,a){this.boxCells[i].push(a)},Jt.prototype._insertCircleCell=function(t,e,r,n,i,a){this.circleCells[i].push(a)},Jt.prototype._query=function(t,e,r,n,i,a){if(r&lt;0||t&gt;this.width||n&lt;0||e&gt;this.height)return!i&amp;&amp;[];var o=[];if(t&lt;=0&amp;&amp;e&lt;=0&amp;&amp;this.width&lt;=r&amp;&amp;this.height&lt;=n){if(i)return!0;for(var s=0;s&lt;this.boxKeys.length;s++)o.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var l=0;l&lt;this.circleKeys.length;l++){var c=this.circles[3*l],u=this.circles[3*l+1],f=this.circles[3*l+2];o.push({key:this.circleKeys[l],x1:c-f,y1:u-f,x2:c+f,y2:u+f})}return a?o.filter(a):o}return this._forEachCell(t,e,r,n,this._queryCell,o,{hitTest:i,seenUids:{box:{},circle:{}}},a),i?o.length&gt;0:o},Jt.prototype._queryCircle=function(t,e,r,n,i){var a=t-r,o=t+r,s=e-r,l=e+r;if(o&lt;0||a&gt;this.width||l&lt;0||s&gt;this.height)return!n&amp;&amp;[];var c=[];return this._forEachCell(a,s,o,l,this._queryCellCircle,c,{hitTest:n,circle:{x:t,y:e,radius:r},seenUids:{box:{},circle:{}}},i),n?c.length&gt;0:c},Jt.prototype.query=function(t,e,r,n,i){return this._query(t,e,r,n,!1,i)},Jt.prototype.hitTest=function(t,e,r,n,i){return this._query(t,e,r,n,!0,i)},Jt.prototype.hitTestCircle=function(t,e,r,n){return this._queryCircle(t,e,r,!0,n)},Jt.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=o.seenUids,c=this.boxCells[i];if(null!==c)for(var u=this.bboxes,f=0,h=c;f&lt;h.length;f+=1){var p=h[f];if(!l.box[p]){l.box[p]=!0;var d=4*p;if(t&lt;=u[d+2]&amp;&amp;e&lt;=u[d+3]&amp;&amp;r&gt;=u[d+0]&amp;&amp;n&gt;=u[d+1]&amp;&amp;(!s||s(this.boxKeys[p]))){if(o.hitTest)return a.push(!0),!0;a.push({key:this.boxKeys[p],x1:u[d],y1:u[d+1],x2:u[d+2],y2:u[d+3]})}}}var g=this.circleCells[i];if(null!==g)for(var m=this.circles,v=0,y=g;v&lt;y.length;v+=1){var x=y[v];if(!l.circle[x]){l.circle[x]=!0;var b=3*x;if(this._circleAndRectCollide(m[b],m[b+1],m[b+2],t,e,r,n)&amp;&amp;(!s||s(this.circleKeys[x]))){if(o.hitTest)return a.push(!0),!0;var _=m[b],w=m[b+1],T=m[b+2];a.push({key:this.circleKeys[x],x1:_-T,y1:w-T,x2:_+T,y2:w+T})}}}},Jt.prototype._queryCellCircle=function(t,e,r,n,i,a,o,s){var l=o.circle,c=o.seenUids,u=this.boxCells[i];if(null!==u)for(var f=this.bboxes,h=0,p=u;h&lt;p.length;h+=1){var d=p[h];if(!c.box[d]){c.box[d]=!0;var g=4*d;if(this._circleAndRectCollide(l.x,l.y,l.radius,f[g+0],f[g+1],f[g+2],f[g+3])&amp;&amp;(!s||s(this.boxKeys[d])))return a.push(!0),!0}}var m=this.circleCells[i];if(null!==m)for(var v=this.circles,y=0,x=m;y&lt;x.length;y+=1){var b=x[y];if(!c.circle[b]){c.circle[b]=!0;var _=3*b;if(this._circlesCollide(v[_],v[_+1],v[_+2],l.x,l.y,l.radius)&amp;&amp;(!s||s(this.circleKeys[b])))return a.push(!0),!0}}},Jt.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToXCellCoord(t),c=this._convertToYCellCoord(e),u=this._convertToXCellCoord(r),f=this._convertToYCellCoord(n),h=l;h&lt;=u;h++)for(var p=c;p&lt;=f;p++)if(i.call(this,t,e,r,n,this.xCellCount*p+h,a,o,s))return},Jt.prototype._convertToXCellCoord=function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))},Jt.prototype._convertToYCellCoord=function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))},Jt.prototype._circlesCollide=function(t,e,r,n,i,a){var o=n-t,s=i-e,l=r+a;return l*l&gt;o*o+s*s},Jt.prototype._circleAndRectCollide=function(t,e,r,n,i,a,o){var s=(a-n)/2,l=Math.abs(t-(n+s));if(l&gt;s+r)return!1;var c=(o-i)/2,u=Math.abs(e-(i+c));if(u&gt;c+r)return!1;if(l&lt;=s||u&lt;=c)return!0;var f=l-s,h=u-c;return f*f+h*h&lt;=r*r};var le=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ce(t,e){for(var r=0;r&lt;t;r++){var n=e.length;e.resize(n+4),e.float32.set(le,3*n)}}function ue(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[4]*i+r[12],t[1]=r[1]*n+r[5]*i+r[13],t[3]=r[3]*n+r[7]*i+r[15],t}var fe=function(t,e,r){void 0===e&amp;&amp;(e=new Jt(t.width+200,t.height+200,25)),void 0===r&amp;&amp;(r=new Jt(t.width+200,t.height+200,25)),this.transform=t,this.grid=e,this.ignoredGrid=r,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200};function he(e,r,n){return r*(t.EXTENT/(e.tileSize*Math.pow(2,n-e.tileID.overscaledZ)))}fe.prototype.placeCollisionBox=function(t,e,r,n,i){var a=this.projectAndGetPerspectiveRatio(n,t.anchorPointX,t.anchorPointY),o=r*a.perspectiveRatio,s=t.x1*o+a.point.x,l=t.y1*o+a.point.y,c=t.x2*o+a.point.x,u=t.y2*o+a.point.y;return!this.isInsideGrid(s,l,c,u)||!e&amp;&amp;this.grid.hitTest(s,l,c,u,i)?{box:[],offscreen:!1}:{box:[s,l,c,u],offscreen:this.isOffscreen(s,l,c,u)}},fe.prototype.placeCollisionCircles=function(e,r,n,i,a,o,s,l,c,u,f,h,p){var d=[],g=new t.Point(r.anchorX,r.anchorY),m=$t(g,o),v=te(this.transform.cameraToCenterDistance,m.signedDistanceFromCamera),y=(u?a/v:a*v)/t.ONE_EM,x=$t(g,s).point,b=ne(y,i,r.lineOffsetX*y,r.lineOffsetY*y,!1,x,g,r,n,s,{}),_=!1,w=!1,T=!0;if(b){for(var k=.5*h*v+p,M=new t.Point(-100,-100),A=new t.Point(this.screenRightBoundary,this.screenBottomBoundary),S=new Zt,E=b.first,C=b.last,L=[],I=E.path.length-1;I&gt;=1;I--)L.push(E.path[I]);for(var P=1;P&lt;C.path.length;P++)L.push(C.path[P]);var z=2.5*k;if(l){var O=L.map((function(t){return $t(t,l)}));L=O.some((function(t){return t.signedDistanceFromCamera&lt;=0}))?[]:O.map((function(t){return t.point}))}var D=[];if(L.length&gt;0){for(var R=L[0].clone(),F=L[0].clone(),B=1;B&lt;L.length;B++)R.x=Math.min(R.x,L[B].x),R.y=Math.min(R.y,L[B].y),F.x=Math.max(F.x,L[B].x),F.y=Math.max(F.y,L[B].y);D=R.x&gt;=M.x&amp;&amp;F.x&lt;=A.x&amp;&amp;R.y&gt;=M.y&amp;&amp;F.y&lt;=A.y?[L]:F.x&lt;M.x||R.x&gt;A.x||F.y&lt;M.y||R.y&gt;A.y?[]:t.clipLine([L],M.x,M.y,A.x,A.y)}for(var N=0,j=D;N&lt;j.length;N+=1){var U;S.reset(j[N],.25*k),U=S.length&lt;=.5*k?1:Math.ceil(S.paddedLength/z)+1;for(var V=0;V&lt;U;V++){var q=V/Math.max(U-1,1),H=S.lerp(q),G=H.x+100,Y=H.y+100;d.push(G,Y,k,0);var W=G-k,X=Y-k,Z=G+k,J=Y+k;if(T=T&amp;&amp;this.isOffscreen(W,X,Z,J),w=w||this.isInsideGrid(W,X,Z,J),!e&amp;&amp;this.grid.hitTestCircle(G,Y,k,f)&amp;&amp;(_=!0,!c))return{circles:[],offscreen:!1,collisionDetected:_}}}}return{circles:!c&amp;&amp;_||!w?[]:d,offscreen:T,collisionDetected:_}},fe.prototype.queryRenderedSymbols=function(e){if(0===e.length||0===this.grid.keysLength()&amp;&amp;0===this.ignoredGrid.keysLength())return{};for(var r=[],n=1/0,i=1/0,a=-1/0,o=-1/0,s=0,l=e;s&lt;l.length;s+=1){var c=l[s],u=new t.Point(c.x+100,c.y+100);n=Math.min(n,u.x),i=Math.min(i,u.y),a=Math.max(a,u.x),o=Math.max(o,u.y),r.push(u)}for(var f={},h={},p=0,d=this.grid.query(n,i,a,o).concat(this.ignoredGrid.query(n,i,a,o));p&lt;d.length;p+=1){var g=d[p],m=g.key;if(void 0===f[m.bucketInstanceId]&amp;&amp;(f[m.bucketInstanceId]={}),!f[m.bucketInstanceId][m.featureIndex]){var v=[new t.Point(g.x1,g.y1),new t.Point(g.x2,g.y1),new t.Point(g.x2,g.y2),new t.Point(g.x1,g.y2)];t.polygonIntersectsPolygon(r,v)&amp;&amp;(f[m.bucketInstanceId][m.featureIndex]=!0,void 0===h[m.bucketInstanceId]&amp;&amp;(h[m.bucketInstanceId]=[]),h[m.bucketInstanceId].push(m.featureIndex))}}return h},fe.prototype.insertCollisionBox=function(t,e,r,n,i){(e?this.ignoredGrid:this.grid).insert({bucketInstanceId:r,featureIndex:n,collisionGroupID:i},t[0],t[1],t[2],t[3])},fe.prototype.insertCollisionCircles=function(t,e,r,n,i){for(var a=e?this.ignoredGrid:this.grid,o={bucketInstanceId:r,featureIndex:n,collisionGroupID:i},s=0;s&lt;t.length;s+=4)a.insertCircle(o,t[s],t[s+1],t[s+2])},fe.prototype.projectAndGetPerspectiveRatio=function(e,r,n){var i=[r,n,0,1];return ue(i,i,e),{point:new t.Point((i[0]/i[3]+1)/2*this.transform.width+100,(-i[1]/i[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/i[3]*.5}},fe.prototype.isOffscreen=function(t,e,r,n){return r&lt;100||t&gt;=this.screenRightBoundary||n&lt;100||e&gt;this.screenBottomBoundary},fe.prototype.isInsideGrid=function(t,e,r,n){return r&gt;=0&amp;&amp;t&lt;this.gridRightBoundary&amp;&amp;n&gt;=0&amp;&amp;e&lt;this.gridBottomBoundary},fe.prototype.getViewportMatrix=function(){var e=t.identity([]);return t.translate(e,e,[-100,-100,0]),e};var pe=function(t,e,r,n){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):n&amp;&amp;r?1:0,this.placed=r};pe.prototype.isHidden=function(){return 0===this.opacity&amp;&amp;!this.placed};var de=function(t,e,r,n,i){this.text=new pe(t?t.text:null,e,r,i),this.icon=new pe(t?t.icon:null,e,n,i)};de.prototype.isHidden=function(){return this.text.isHidden()&amp;&amp;this.icon.isHidden()};var ge=function(t,e,r){this.text=t,this.icon=e,this.skipFade=r},me=function(){this.invProjMatrix=t.create(),this.viewportMatrix=t.create(),this.circles=[]},ve=function(t,e,r,n,i){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=r,this.bucketIndex=n,this.tileID=i},ye=function(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}};function xe(e,r,n,i,a){var o=t.getAnchorAlignment(e),s=-(o.horizontalAlign-.5)*r,l=-(o.verticalAlign-.5)*n,c=t.evaluateVariableOffset(e,i);return new t.Point(s+c[0]*a,l+c[1]*a)}function be(e,r,n,i,a,o){var s=e.x1,l=e.x2,c=e.y1,u=e.y2,f=e.anchorPointX,h=e.anchorPointY,p=new t.Point(r,n);return i&amp;&amp;p._rotate(a?o:-o),{x1:s+p.x,y1:c+p.y,x2:l+p.x,y2:u+p.y,anchorPointX:f,anchorPointY:h}}ye.prototype.get=function(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){var e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:function(t){return t.collisionGroupID===e}}}return this.collisionGroups[t]};var _e=function(t,e,r,n){this.transform=t.clone(),this.collisionIndex=new fe(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new ye(r),this.collisionCircleArrays={},this.prevPlacement=n,n&amp;&amp;(n.prevPlacement=void 0),this.placedOrientations={}};function we(t,e,r,n,i){t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0)}_e.prototype.getBucketParts=function(e,r,n,i){var a=n.getBucket(r),o=n.latestFeatureIndex;if(a&amp;&amp;o&amp;&amp;r.id===a.layerIds[0]){var s=n.collisionBoxArray,l=a.layers[0].layout,c=Math.pow(2,this.transform.zoom-n.tileID.overscaledZ),u=n.tileSize/t.EXTENT,f=this.transform.calculatePosMatrix(n.tileID.toUnwrapped()),h=&quot;map&quot;===l.get(&quot;text-pitch-alignment&quot;),p=&quot;map&quot;===l.get(&quot;text-rotation-alignment&quot;),d=he(n,1,this.transform.zoom),g=Kt(f,h,p,this.transform,d),m=null;if(h){var v=Qt(f,h,p,this.transform,d);m=t.multiply([],this.transform.labelPlaneMatrix,v)}this.retainedQueryData[a.bucketInstanceId]=new ve(a.bucketInstanceId,o,a.sourceLayerIndex,a.index,n.tileID);var y={bucket:a,layout:l,posMatrix:f,textLabelPlaneMatrix:g,labelToScreenMatrix:m,scale:c,textPixelRatio:u,holdingForFade:n.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:t.evaluateSizeForZoom(a.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(a.sourceID)};if(i)for(var x=0,b=a.sortKeyRanges;x&lt;b.length;x+=1){var _=b[x];e.push({sortKey:_.sortKey,symbolInstanceStart:_.symbolInstanceStart,symbolInstanceEnd:_.symbolInstanceEnd,parameters:y})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:a.symbolInstances.length,parameters:y})}},_e.prototype.attemptAnchorPlacement=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d){var g,m=[f.textOffset0,f.textOffset1],v=xe(t,r,n,m,i),y=this.collisionIndex.placeCollisionBox(be(e,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate);if(!d||0!==this.collisionIndex.placeCollisionBox(be(d,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate).box.length)return y.box.length&gt;0?(this.prevPlacement&amp;&amp;this.prevPlacement.variableOffsets[f.crossTileID]&amp;&amp;this.prevPlacement.placements[f.crossTileID]&amp;&amp;this.prevPlacement.placements[f.crossTileID].text&amp;&amp;(g=this.prevPlacement.variableOffsets[f.crossTileID].anchor),this.variableOffsets[f.crossTileID]={textOffset:m,width:r,height:n,anchor:t,textBoxScale:i,prevAnchor:g},this.markUsedJustification(h,t,f,p),h.allowVerticalPlacement&amp;&amp;(this.markUsedOrientation(h,p,f),this.placedOrientations[f.crossTileID]=p),{shift:v,placedGlyphBoxes:y}):void 0},_e.prototype.placeLayerBucketPart=function(e,r,n){var i=this,a=e.parameters,o=a.bucket,s=a.layout,l=a.posMatrix,c=a.textLabelPlaneMatrix,u=a.labelToScreenMatrix,f=a.textPixelRatio,h=a.holdingForFade,p=a.collisionBoxArray,d=a.partiallyEvaluatedTextSize,g=a.collisionGroup,m=s.get(&quot;text-optional&quot;),v=s.get(&quot;icon-optional&quot;),y=s.get(&quot;text-allow-overlap&quot;),x=s.get(&quot;icon-allow-overlap&quot;),b=&quot;map&quot;===s.get(&quot;text-rotation-alignment&quot;),_=&quot;map&quot;===s.get(&quot;text-pitch-alignment&quot;),w=&quot;none&quot;!==s.get(&quot;icon-text-fit&quot;),T=&quot;viewport-y&quot;===s.get(&quot;symbol-z-order&quot;),k=y&amp;&amp;(x||!o.hasIconData()||v),M=x&amp;&amp;(y||!o.hasTextData()||m);!o.collisionArrays&amp;&amp;p&amp;&amp;o.deserializeCollisionBoxes(p);var A=function(e,a){if(!r[e.crossTileID])if(h)i.placements[e.crossTileID]=new ge(!1,!1,!1);else{var p,T=!1,A=!1,S=!0,E=null,C={box:null,offscreen:null},L={box:null,offscreen:null},I=null,P=null,z=0,O=0,D=0;a.textFeatureIndex?z=a.textFeatureIndex:e.useRuntimeCollisionCircles&amp;&amp;(z=e.featureIndex),a.verticalTextFeatureIndex&amp;&amp;(O=a.verticalTextFeatureIndex);var R=a.textBox;if(R){var F=function(r){var n=t.WritingMode.horizontal;if(o.allowVerticalPlacement&amp;&amp;!r&amp;&amp;i.prevPlacement){var a=i.prevPlacement.placedOrientations[e.crossTileID];a&amp;&amp;(i.placedOrientations[e.crossTileID]=a,i.markUsedOrientation(o,n=a,e))}return n},B=function(r,n){if(o.allowVerticalPlacement&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;a.verticalTextBox)for(var i=0,s=o.writingModes;i&lt;s.length&amp;&amp;(s[i]===t.WritingMode.vertical?(C=n(),L=C):C=r(),!(C&amp;&amp;C.box&amp;&amp;C.box.length));i+=1);else C=r()};if(s.get(&quot;text-variable-anchor&quot;)){var N=s.get(&quot;text-variable-anchor&quot;);if(i.prevPlacement&amp;&amp;i.prevPlacement.variableOffsets[e.crossTileID]){var j=i.prevPlacement.variableOffsets[e.crossTileID];N.indexOf(j.anchor)&gt;0&amp;&amp;(N=N.filter((function(t){return t!==j.anchor}))).unshift(j.anchor)}var U=function(t,r,n){for(var a=t.x2-t.x1,s=t.y2-t.y1,c=e.textBoxScale,u=w&amp;&amp;!x?r:null,h={box:[],offscreen:!1},p=y?2*N.length:N.length,d=0;d&lt;p;++d){var m=i.attemptAnchorPlacement(N[d%N.length],t,a,s,c,b,_,f,l,g,d&gt;=N.length,e,o,n,u);if(m&amp;&amp;(h=m.placedGlyphBoxes)&amp;&amp;h.box&amp;&amp;h.box.length){T=!0,E=m.shift;break}}return h};B((function(){return U(R,a.iconBox,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox;return o.allowVerticalPlacement&amp;&amp;!(C&amp;&amp;C.box&amp;&amp;C.box.length)&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;r?U(r,a.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),C&amp;&amp;(T=C.box,S=C.offscreen);var V=F(C&amp;&amp;C.box);if(!T&amp;&amp;i.prevPlacement){var q=i.prevPlacement.variableOffsets[e.crossTileID];q&amp;&amp;(i.variableOffsets[e.crossTileID]=q,i.markUsedJustification(o,q.anchor,e,V))}}else{var H=function(t,r){var n=i.collisionIndex.placeCollisionBox(t,y,f,l,g.predicate);return n&amp;&amp;n.box&amp;&amp;n.box.length&amp;&amp;(i.markUsedOrientation(o,r,e),i.placedOrientations[e.crossTileID]=r),n};B((function(){return H(R,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox;return o.allowVerticalPlacement&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;r?H(r,t.WritingMode.vertical):{box:null,offscreen:null}})),F(C&amp;&amp;C.box&amp;&amp;C.box.length)}}if(T=(p=C)&amp;&amp;p.box&amp;&amp;p.box.length&gt;0,S=p&amp;&amp;p.offscreen,e.useRuntimeCollisionCircles){var G=o.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),Y=t.evaluateSizeForFeature(o.textSizeData,d,G),W=s.get(&quot;text-padding&quot;);I=i.collisionIndex.placeCollisionCircles(y,G,o.lineVertexArray,o.glyphOffsetArray,Y,l,c,u,n,_,g.predicate,e.collisionCircleDiameter,W),T=y||I.circles.length&gt;0&amp;&amp;!I.collisionDetected,S=S&amp;&amp;I.offscreen}if(a.iconFeatureIndex&amp;&amp;(D=a.iconFeatureIndex),a.iconBox){var X=function(t){var e=w&amp;&amp;E?be(t,E.x,E.y,b,_,i.transform.angle):t;return i.collisionIndex.placeCollisionBox(e,x,f,l,g.predicate)};A=L&amp;&amp;L.box&amp;&amp;L.box.length&amp;&amp;a.verticalIconBox?(P=X(a.verticalIconBox)).box.length&gt;0:(P=X(a.iconBox)).box.length&gt;0,S=S&amp;&amp;P.offscreen}var Z=m||0===e.numHorizontalGlyphVertices&amp;&amp;0===e.numVerticalGlyphVertices,J=v||0===e.numIconVertices;if(Z||J?J?Z||(A=A&amp;&amp;T):T=A&amp;&amp;T:A=T=A&amp;&amp;T,T&amp;&amp;p&amp;&amp;p.box&amp;&amp;i.collisionIndex.insertCollisionBox(p.box,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,L&amp;&amp;L.box&amp;&amp;O?O:z,g.ID),A&amp;&amp;P&amp;&amp;i.collisionIndex.insertCollisionBox(P.box,s.get(&quot;icon-ignore-placement&quot;),o.bucketInstanceId,D,g.ID),I&amp;&amp;(T&amp;&amp;i.collisionIndex.insertCollisionCircles(I.circles,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,z,g.ID),n)){var K=o.bucketInstanceId,Q=i.collisionCircleArrays[K];void 0===Q&amp;&amp;(Q=i.collisionCircleArrays[K]=new me);for(var $=0;$&lt;I.circles.length;$+=4)Q.circles.push(I.circles[$+0]),Q.circles.push(I.circles[$+1]),Q.circles.push(I.circles[$+2]),Q.circles.push(I.collisionDetected?1:0)}i.placements[e.crossTileID]=new ge(T||k,A||M,S||o.justReloaded),r[e.crossTileID]=!0}};if(T)for(var S=o.getSortedSymbolIndexes(this.transform.angle),E=S.length-1;E&gt;=0;--E){var C=S[E];A(o.symbolInstances.get(C),o.collisionArrays[C])}else for(var L=e.symbolInstanceStart;L&lt;e.symbolInstanceEnd;L++)A(o.symbolInstances.get(L),o.collisionArrays[L]);if(n&amp;&amp;o.bucketInstanceId in this.collisionCircleArrays){var I=this.collisionCircleArrays[o.bucketInstanceId];t.invert(I.invProjMatrix,l),I.viewportMatrix=this.collisionIndex.getViewportMatrix()}o.justReloaded=!1},_e.prototype.markUsedJustification=function(e,r,n,i){var a;a=i===t.WritingMode.vertical?n.verticalPlacedTextSymbolIndex:{left:n.leftJustifiedTextSymbolIndex,center:n.centerJustifiedTextSymbolIndex,right:n.rightJustifiedTextSymbolIndex}[t.getAnchorJustification(r)];for(var o=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex,n.verticalPlacedTextSymbolIndex];o&lt;s.length;o+=1){var l=s[o];l&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(l).crossTileID=a&gt;=0&amp;&amp;l!==a?0:n.crossTileID)}},_e.prototype.markUsedOrientation=function(e,r,n){for(var i=r===t.WritingMode.horizontal||r===t.WritingMode.horizontalOnly?r:0,a=r===t.WritingMode.vertical?r:0,o=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex];o&lt;s.length;o+=1)e.text.placedSymbolArray.get(s[o]).placedOrientation=i;n.verticalPlacedTextSymbolIndex&amp;&amp;(e.text.placedSymbolArray.get(n.verticalPlacedTextSymbolIndex).placedOrientation=a)},_e.prototype.commit=function(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;var e=this.prevPlacement,r=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;var n=e?e.symbolFadeChange(t):1,i=e?e.opacities:{},a=e?e.variableOffsets:{},o=e?e.placedOrientations:{};for(var s in this.placements){var l=this.placements[s],c=i[s];c?(this.opacities[s]=new de(c,n,l.text,l.icon),r=r||l.text!==c.text.placed||l.icon!==c.icon.placed):(this.opacities[s]=new de(null,n,l.text,l.icon,l.skipFade),r=r||l.text||l.icon)}for(var u in i){var f=i[u];if(!this.opacities[u]){var h=new de(f,n,!1,!1);h.isHidden()||(this.opacities[u]=h,r=r||f.text.placed||f.icon.placed)}}for(var p in a)this.variableOffsets[p]||!this.opacities[p]||this.opacities[p].isHidden()||(this.variableOffsets[p]=a[p]);for(var d in o)this.placedOrientations[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.placedOrientations[d]=o[d]);r?this.lastPlacementChangeTime=t:&quot;number&quot;!=typeof this.lastPlacementChangeTime&amp;&amp;(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)},_e.prototype.updateLayerOpacities=function(t,e){for(var r={},n=0,i=e;n&lt;i.length;n+=1){var a=i[n],o=a.getBucket(t);o&amp;&amp;a.latestFeatureIndex&amp;&amp;t.id===o.layerIds[0]&amp;&amp;this.updateBucketOpacities(o,r,a.collisionBoxArray)}},_e.prototype.updateBucketOpacities=function(e,r,n){var i=this;e.hasTextData()&amp;&amp;e.text.opacityVertexArray.clear(),e.hasIconData()&amp;&amp;e.icon.opacityVertexArray.clear(),e.hasIconCollisionBoxData()&amp;&amp;e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&amp;&amp;e.textCollisionBox.collisionVertexArray.clear();var a=e.layers[0].layout,o=new de(null,0,!1,!1,!0),s=a.get(&quot;text-allow-overlap&quot;),l=a.get(&quot;icon-allow-overlap&quot;),c=a.get(&quot;text-variable-anchor&quot;),u=&quot;map&quot;===a.get(&quot;text-rotation-alignment&quot;),f=&quot;map&quot;===a.get(&quot;text-pitch-alignment&quot;),h=&quot;none&quot;!==a.get(&quot;icon-text-fit&quot;),p=new de(null,0,s&amp;&amp;(l||!e.hasIconData()||a.get(&quot;icon-optional&quot;)),l&amp;&amp;(s||!e.hasTextData()||a.get(&quot;text-optional&quot;)),!0);!e.collisionArrays&amp;&amp;n&amp;&amp;(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&amp;&amp;e.deserializeCollisionBoxes(n);for(var d=function(t,e,r){for(var n=0;n&lt;e/4;n++)t.opacityVertexArray.emplaceBack(r)},g=function(n){var a=e.symbolInstances.get(n),s=a.numHorizontalGlyphVertices,l=a.numVerticalGlyphVertices,g=a.crossTileID,m=i.opacities[g];r[g]?m=o:m||(i.opacities[g]=m=p),r[g]=!0;var v=a.numIconVertices&gt;0,y=i.placedOrientations[a.crossTileID],x=y===t.WritingMode.vertical,b=y===t.WritingMode.horizontal||y===t.WritingMode.horizontalOnly;if(s&gt;0||l&gt;0){var _=Le(m.text);d(e.text,s,x?Ie:_),d(e.text,l,b?Ie:_);var w=m.text.isHidden();[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((function(t){t&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(t).hidden=w||x?1:0)})),a.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).hidden=w||b?1:0);var T=i.variableOffsets[a.crossTileID];T&amp;&amp;i.markUsedJustification(e,T.anchor,a,y);var k=i.placedOrientations[a.crossTileID];k&amp;&amp;(i.markUsedJustification(e,&quot;left&quot;,a,k),i.markUsedOrientation(e,k,a))}if(v){var M=Le(m.icon),A=!(h&amp;&amp;a.verticalPlacedIconSymbolIndex&amp;&amp;x);a.placedIconSymbolIndex&gt;=0&amp;&amp;(d(e.icon,a.numIconVertices,A?M:Ie),e.icon.placedSymbolArray.get(a.placedIconSymbolIndex).hidden=m.icon.isHidden()),a.verticalPlacedIconSymbolIndex&gt;=0&amp;&amp;(d(e.icon,a.numVerticalIconVertices,A?Ie:M),e.icon.placedSymbolArray.get(a.verticalPlacedIconSymbolIndex).hidden=m.icon.isHidden())}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){var S=e.collisionArrays[n];if(S){var E=new t.Point(0,0);if(S.textBox||S.verticalTextBox){var C=!0;if(c){var L=i.variableOffsets[g];L?(E=xe(L.anchor,L.width,L.height,L.textOffset,L.textBoxScale),u&amp;&amp;E._rotate(f?i.transform.angle:-i.transform.angle)):C=!1}S.textBox&amp;&amp;we(e.textCollisionBox.collisionVertexArray,m.text.placed,!C||x,E.x,E.y),S.verticalTextBox&amp;&amp;we(e.textCollisionBox.collisionVertexArray,m.text.placed,!C||b,E.x,E.y)}var I=Boolean(!b&amp;&amp;S.verticalIconBox);S.iconBox&amp;&amp;we(e.iconCollisionBox.collisionVertexArray,m.icon.placed,I,h?E.x:0,h?E.y:0),S.verticalIconBox&amp;&amp;we(e.iconCollisionBox.collisionVertexArray,m.icon.placed,!I,h?E.x:0,h?E.y:0)}}},m=0;m&lt;e.symbolInstances.length;m++)g(m);if(e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&amp;&amp;(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&amp;&amp;e.text.opacityVertexBuffer&amp;&amp;e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&amp;&amp;e.icon.opacityVertexBuffer&amp;&amp;e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&amp;&amp;e.iconCollisionBox.collisionVertexBuffer&amp;&amp;e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&amp;&amp;e.textCollisionBox.collisionVertexBuffer&amp;&amp;e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.bucketInstanceId in this.collisionCircleArrays){var v=this.collisionCircleArrays[e.bucketInstanceId];e.placementInvProjMatrix=v.invProjMatrix,e.placementViewportMatrix=v.viewportMatrix,e.collisionCircleArray=v.circles,delete this.collisionCircleArrays[e.bucketInstanceId]}},_e.prototype.symbolFadeChange=function(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},_e.prototype.zoomAdjustment=function(t){return Math.max(0,(this.transform.zoom-t)/1.5)},_e.prototype.hasTransitions=function(t){return this.stale||t-this.lastPlacementChangeTime&lt;this.fadeDuration},_e.prototype.stillRecent=function(t,e){var r=this.zoomAtLastRecencyCheck===e?1-this.zoomAdjustment(e):1;return this.zoomAtLastRecencyCheck=e,this.commitTime+this.fadeDuration*r&gt;t},_e.prototype.setStale=function(){this.stale=!0};var Te=Math.pow(2,25),ke=Math.pow(2,24),Me=Math.pow(2,17),Ae=Math.pow(2,16),Se=Math.pow(2,9),Ee=Math.pow(2,8),Ce=Math.pow(2,1);function Le(t){if(0===t.opacity&amp;&amp;!t.placed)return 0;if(1===t.opacity&amp;&amp;t.placed)return 4294967295;var e=t.placed?1:0,r=Math.floor(127*t.opacity);return r*Te+e*ke+r*Me+e*Ae+r*Se+e*Ee+r*Ce+e}var Ie=0,Pe=function(t){this._sortAcrossTiles=&quot;viewport-y&quot;!==t.layout.get(&quot;symbol-z-order&quot;)&amp;&amp;void 0!==t.layout.get(&quot;symbol-sort-key&quot;).constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Pe.prototype.continuePlacement=function(t,e,r,n,i){for(var a=this._bucketParts;this._currentTileIndex&lt;t.length;)if(e.getBucketParts(a,n,t[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,i())return!0;for(this._sortAcrossTiles&amp;&amp;(this._sortAcrossTiles=!1,a.sort((function(t,e){return t.sortKey-e.sortKey})));this._currentPartIndex&lt;a.length;)if(e.placeLayerBucketPart(a[this._currentPartIndex],this._seenCrossTileIDs,r),this._currentPartIndex++,i())return!0;return!1};var ze=function(t,e,r,n,i,a,o){this.placement=new _e(t,i,a,o),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=n,this._done=!1};ze.prototype.isDone=function(){return this._done},ze.prototype.continuePlacement=function(e,r,n){for(var i=this,a=t.browser.now(),o=function(){var e=t.browser.now()-a;return!i._forceFullPlacement&amp;&amp;e&gt;2};this._currentPlacementIndex&gt;=0;){var s=r[e[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if(&quot;symbol&quot;===s.type&amp;&amp;(!s.minzoom||s.minzoom&lt;=l)&amp;&amp;(!s.maxzoom||s.maxzoom&gt;l)){if(this._inProgressLayer||(this._inProgressLayer=new Pe(s)),this._inProgressLayer.continuePlacement(n[s.source],this.placement,this._showCollisionBoxes,s,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},ze.prototype.commit=function(t){return this.placement.commit(t),this.placement};var Oe=512/t.EXTENT/2,De=function(t,e,r){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=r;for(var n=0;n&lt;e.length;n++){var i=e.get(n),a=i.key;this.indexedSymbolInstances[a]||(this.indexedSymbolInstances[a]=[]),this.indexedSymbolInstances[a].push({crossTileID:i.crossTileID,coord:this.getScaledCoordinates(i,t)})}};De.prototype.getScaledCoordinates=function(e,r){var n=Oe/Math.pow(2,r.canonical.z-this.tileID.canonical.z);return{x:Math.floor((r.canonical.x*t.EXTENT+e.anchorX)*n),y:Math.floor((r.canonical.y*t.EXTENT+e.anchorY)*n)}},De.prototype.findMatches=function(t,e,r){for(var n=this.tileID.canonical.z&lt;e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z),i=0;i&lt;t.length;i++){var a=t.get(i);if(!a.crossTileID){var o=this.indexedSymbolInstances[a.key];if(o)for(var s=this.getScaledCoordinates(a,e),l=0,c=o;l&lt;c.length;l+=1){var u=c[l];if(Math.abs(u.coord.x-s.x)&lt;=n&amp;&amp;Math.abs(u.coord.y-s.y)&lt;=n&amp;&amp;!r[u.crossTileID]){r[u.crossTileID]=!0,a.crossTileID=u.crossTileID;break}}}}};var Re=function(){this.maxCrossTileID=0};Re.prototype.generate=function(){return++this.maxCrossTileID};var Fe=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};Fe.prototype.handleWrapJump=function(t){var e=Math.round((t-this.lng)/360);if(0!==e)for(var r in this.indexes){var n=this.indexes[r],i={};for(var a in n){var o=n[a];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+e),i[o.tileID.key]=o}this.indexes[r]=i}this.lng=t},Fe.prototype.addBucket=function(t,e,r){if(this.indexes[t.overscaledZ]&amp;&amp;this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(var n=0;n&lt;e.symbolInstances.length;n++)e.symbolInstances.get(n).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});var i=this.usedCrossTileIDs[t.overscaledZ];for(var a in this.indexes){var o=this.indexes[a];if(Number(a)&gt;t.overscaledZ)for(var s in o){var l=o[s];l.tileID.isChildOf(t)&amp;&amp;l.findMatches(e.symbolInstances,t,i)}else{var c=o[t.scaledTo(Number(a)).key];c&amp;&amp;c.findMatches(e.symbolInstances,t,i)}}for(var u=0;u&lt;e.symbolInstances.length;u++){var f=e.symbolInstances.get(u);f.crossTileID||(f.crossTileID=r.generate(),i[f.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&amp;&amp;(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new De(t,e.symbolInstances,e.bucketInstanceId),!0},Fe.prototype.removeBucketCrossTileIDs=function(t,e){for(var r in e.indexedSymbolInstances)for(var n=0,i=e.indexedSymbolInstances[r];n&lt;i.length;n+=1)delete this.usedCrossTileIDs[t][i[n].crossTileID]},Fe.prototype.removeStaleBuckets=function(t){var e=!1;for(var r in this.indexes){var n=this.indexes[r];for(var i in n)t[n[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(r,n[i]),delete n[i],e=!0)}return e};var Be=function(){this.layerIndexes={},this.crossTileIDs=new Re,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};Be.prototype.addLayer=function(t,e,r){var n=this.layerIndexes[t.id];void 0===n&amp;&amp;(n=this.layerIndexes[t.id]=new Fe);var i=!1,a={};n.handleWrapJump(r);for(var o=0,s=e;o&lt;s.length;o+=1){var l=s[o],c=l.getBucket(t);c&amp;&amp;t.id===c.layerIds[0]&amp;&amp;(c.bucketInstanceId||(c.bucketInstanceId=++this.maxBucketInstanceId),n.addBucket(l.tileID,c,this.crossTileIDs)&amp;&amp;(i=!0),a[c.bucketInstanceId]=!0)}return n.removeStaleBuckets(a)&amp;&amp;(i=!0),i},Be.prototype.pruneUnusedLayers=function(t){var e={};for(var r in t.forEach((function(t){e[t]=!0})),this.layerIndexes)e[r]||delete this.layerIndexes[r]};var Ne=function(e,r){return t.emitValidationErrors(e,r&amp;&amp;r.filter((function(t){return&quot;source.canvas&quot;!==t.identifier})))},je=t.pick(Ut,[&quot;addLayer&quot;,&quot;removeLayer&quot;,&quot;setPaintProperty&quot;,&quot;setLayoutProperty&quot;,&quot;setFilter&quot;,&quot;addSource&quot;,&quot;removeSource&quot;,&quot;setLayerZoomRange&quot;,&quot;setLight&quot;,&quot;setTransition&quot;,&quot;setGeoJSONSourceData&quot;]),Ue=t.pick(Ut,[&quot;setCenter&quot;,&quot;setZoom&quot;,&quot;setBearing&quot;,&quot;setPitch&quot;]),Ve=function(){var e={},r=t.styleSpec.$version;for(var n in t.styleSpec.$root){var i,a=t.styleSpec.$root[n];a.required&amp;&amp;null!=(i=&quot;version&quot;===n?r:&quot;array&quot;===a.type?[]:{})&amp;&amp;(e[n]=i)}return e}(),qe=function(e){function r(n,i){var a=this;void 0===i&amp;&amp;(i={}),e.call(this),this.map=n,this.dispatcher=new k(Bt(),this),this.imageManager=new h,this.imageManager.setEventedParent(this),this.glyphManager=new x(n._requestManager,i.localIdeographFontFamily),this.lineAtlas=new T(256,512),this.crossTileSymbolIndex=new Be,this._layers={},this._serializedLayers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast(&quot;setReferrer&quot;,t.getReferrer());var o=this;this._rtlTextPluginCallback=r.registerForPluginStateChange((function(e){o.dispatcher.broadcast(&quot;syncRTLPluginState&quot;,{pluginStatus:e.pluginStatus,pluginURL:e.pluginURL},(function(e,r){if(t.triggerPluginCompletionEvent(e),r&amp;&amp;r.every((function(t){return t})))for(var n in o.sourceCaches)o.sourceCaches[n].reload()}))})),this.on(&quot;data&quot;,(function(t){if(&quot;source&quot;===t.dataType&amp;&amp;&quot;metadata&quot;===t.sourceDataType){var e=a.sourceCaches[t.sourceId];if(e){var r=e.getSource();if(r&amp;&amp;r.vectorLayerIds)for(var n in a._layers){var i=a._layers[n];i.source===r.id&amp;&amp;a._validateLayer(i)}}}}))}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.loadURL=function(e,r){var n=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;}));var i=&quot;boolean&quot;==typeof r.validate?r.validate:!t.isMapboxURL(e);e=this.map._requestManager.normalizeStyleURL(e,r.accessToken);var a=this.map._requestManager.transformRequest(e,t.ResourceType.Style);this._request=t.getJSON(a,(function(e,r){n._request=null,e?n.fire(new t.ErrorEvent(e)):r&amp;&amp;n._load(r,i)}))},r.prototype.loadJSON=function(e,r){var n=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;})),this._request=t.browser.frame((function(){n._request=null,n._load(e,!1!==r.validate)}))},r.prototype.loadEmpty=function(){this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;})),this._load(Ve,!1)},r.prototype._load=function(e,r){if(!r||!Ne(this,t.validateStyle(e))){for(var n in this._loaded=!0,this.stylesheet=e,e.sources)this.addSource(n,e.sources[n],{validate:!1});e.sprite?this._loadSprite(e.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(e.glyphs);var i=jt(this.stylesheet.layers);this._order=i.map((function(t){return t.id})),this._layers={},this._serializedLayers={};for(var a=0,o=i;a&lt;o.length;a+=1){var s=o[a];(s=t.createStyleLayer(s)).setEventedParent(this,{layer:{id:s.id}}),this._layers[s.id]=s,this._serializedLayers[s.id]=s.serialize()}this.dispatcher.broadcast(&quot;setLayers&quot;,this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;})),this.fire(new t.Event(&quot;style.load&quot;))}},r.prototype._loadSprite=function(e){var r=this;this._spriteRequest=function(e,r,n){var i,a,o,s=t.browser.devicePixelRatio&gt;1?&quot;@2x&quot;:&quot;&quot;,l=t.getJSON(r.transformRequest(r.normalizeSpriteURL(e,s,&quot;.json&quot;),t.ResourceType.SpriteJSON),(function(t,e){l=null,o||(o=t,i=e,u())})),c=t.getImage(r.transformRequest(r.normalizeSpriteURL(e,s,&quot;.png&quot;),t.ResourceType.SpriteImage),(function(t,e){c=null,o||(o=t,a=e,u())}));function u(){if(o)n(o);else if(i&amp;&amp;a){var e=t.browser.getImageData(a),r={};for(var s in i){var l=i[s],c=l.width,u=l.height,f=l.x,h=l.y,p=l.sdf,d=l.pixelRatio,g=l.stretchX,m=l.stretchY,v=l.content,y=new t.RGBAImage({width:c,height:u});t.RGBAImage.copy(e,y,{x:f,y:h},{x:0,y:0},{width:c,height:u}),r[s]={data:y,pixelRatio:d,sdf:p,stretchX:g,stretchY:m,content:v}}n(null,r)}}return{cancel:function(){l&amp;&amp;(l.cancel(),l=null),c&amp;&amp;(c.cancel(),c=null)}}}(e,this.map._requestManager,(function(e,n){if(r._spriteRequest=null,e)r.fire(new t.ErrorEvent(e));else if(n)for(var i in n)r.imageManager.addImage(i,n[i]);r.imageManager.setLoaded(!0),r._availableImages=r.imageManager.listImages(),r.dispatcher.broadcast(&quot;setImages&quot;,r._availableImages),r.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))}))},r.prototype._validateLayer=function(e){var r=this.sourceCaches[e.source];if(r){var n=e.sourceLayer;if(n){var i=r.getSource();(&quot;geojson&quot;===i.type||i.vectorLayerIds&amp;&amp;-1===i.vectorLayerIds.indexOf(n))&amp;&amp;this.fire(new t.ErrorEvent(new Error('Source layer &quot;'+n+'&quot; does not exist on source &quot;'+i.id+'&quot; as specified by style layer &quot;'+e.id+'&quot;')))}}},r.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},r.prototype._serializeLayers=function(t){for(var e=[],r=0,n=t;r&lt;n.length;r+=1){var i=this._layers[n[r]];&quot;custom&quot;!==i.type&amp;&amp;e.push(i.serialize())}return e},r.prototype.hasTransitions=function(){if(this.light&amp;&amp;this.light.hasTransition())return!0;for(var t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(var e in this._layers)if(this._layers[e].hasTransition())return!0;return!1},r.prototype._checkLoaded=function(){if(!this._loaded)throw new Error(&quot;Style is not done loading&quot;)},r.prototype.update=function(e){if(this._loaded){var r=this._changed;if(this._changed){var n=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);for(var a in(n.length||i.length)&amp;&amp;this._updateWorkerLayers(n,i),this._updatedSources){var o=this._updatedSources[a];&quot;reload&quot;===o?this._reloadSource(a):&quot;clear&quot;===o&amp;&amp;this._clearSource(a)}for(var s in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[s].updateTransitions(e);this.light.updateTransitions(e),this._resetUpdates()}for(var l in this.sourceCaches)this.sourceCaches[l].used=!1;for(var c=0,u=this._order;c&lt;u.length;c+=1){var f=this._layers[u[c]];f.recalculate(e,this._availableImages),!f.isHidden(e.zoom)&amp;&amp;f.source&amp;&amp;(this.sourceCaches[f.source].used=!0)}this.light.recalculate(e),this.z=e.zoom,r&amp;&amp;this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))}},r.prototype._updateTilesForChangedImages=function(){var t=Object.keys(this._changedImages);if(t.length){for(var e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies([&quot;icons&quot;,&quot;patterns&quot;],t);this._changedImages={}}},r.prototype._updateWorkerLayers=function(t,e){this.dispatcher.broadcast(&quot;updateLayers&quot;,{layers:this._serializeLayers(t),removedIds:e})},r.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}},r.prototype.setState=function(e){var r=this;if(this._checkLoaded(),Ne(this,t.validateStyle(e)))return!1;(e=t.clone$1(e)).layers=jt(e.layers);var n=function(e,r){if(!e)return[{command:Ut.setStyle,args:[r]}];var n=[];try{if(!t.deepEqual(e.version,r.version))return[{command:Ut.setStyle,args:[r]}];t.deepEqual(e.center,r.center)||n.push({command:Ut.setCenter,args:[r.center]}),t.deepEqual(e.zoom,r.zoom)||n.push({command:Ut.setZoom,args:[r.zoom]}),t.deepEqual(e.bearing,r.bearing)||n.push({command:Ut.setBearing,args:[r.bearing]}),t.deepEqual(e.pitch,r.pitch)||n.push({command:Ut.setPitch,args:[r.pitch]}),t.deepEqual(e.sprite,r.sprite)||n.push({command:Ut.setSprite,args:[r.sprite]}),t.deepEqual(e.glyphs,r.glyphs)||n.push({command:Ut.setGlyphs,args:[r.glyphs]}),t.deepEqual(e.transition,r.transition)||n.push({command:Ut.setTransition,args:[r.transition]}),t.deepEqual(e.light,r.light)||n.push({command:Ut.setLight,args:[r.light]});var i={},a=[];!function(e,r,n,i){var a;for(a in r=r||{},e=e||{})e.hasOwnProperty(a)&amp;&amp;(r.hasOwnProperty(a)||qt(a,n,i));for(a in r)r.hasOwnProperty(a)&amp;&amp;(e.hasOwnProperty(a)?t.deepEqual(e[a],r[a])||(&quot;geojson&quot;===e[a].type&amp;&amp;&quot;geojson&quot;===r[a].type&amp;&amp;Gt(e,r,a)?n.push({command:Ut.setGeoJSONSourceData,args:[a,r[a].data]}):Ht(a,r,n,i)):Vt(a,r,n))}(e.sources,r.sources,a,i);var o=[];e.layers&amp;&amp;e.layers.forEach((function(t){i[t.source]?n.push({command:Ut.removeLayer,args:[t.id]}):o.push(t)})),n=n.concat(a),function(e,r,n){r=r||[];var i,a,o,s,l,c,u,f=(e=e||[]).map(Wt),h=r.map(Wt),p=e.reduce(Xt,{}),d=r.reduce(Xt,{}),g=f.slice(),m=Object.create(null);for(i=0,a=0;i&lt;f.length;i++)d.hasOwnProperty(o=f[i])?a++:(n.push({command:Ut.removeLayer,args:[o]}),g.splice(g.indexOf(o,a),1));for(i=0,a=0;i&lt;h.length;i++)g[g.length-1-i]!==(o=h[h.length-1-i])&amp;&amp;(p.hasOwnProperty(o)?(n.push({command:Ut.removeLayer,args:[o]}),g.splice(g.lastIndexOf(o,g.length-a),1)):a++,n.push({command:Ut.addLayer,args:[d[o],c=g[g.length-i]]}),g.splice(g.length-i,0,o),m[o]=!0);for(i=0;i&lt;h.length;i++)if(s=p[o=h[i]],l=d[o],!m[o]&amp;&amp;!t.deepEqual(s,l))if(t.deepEqual(s.source,l.source)&amp;&amp;t.deepEqual(s[&quot;source-layer&quot;],l[&quot;source-layer&quot;])&amp;&amp;t.deepEqual(s.type,l.type)){for(u in Yt(s.layout,l.layout,n,o,null,Ut.setLayoutProperty),Yt(s.paint,l.paint,n,o,null,Ut.setPaintProperty),t.deepEqual(s.filter,l.filter)||n.push({command:Ut.setFilter,args:[o,l.filter]}),t.deepEqual(s.minzoom,l.minzoom)&amp;&amp;t.deepEqual(s.maxzoom,l.maxzoom)||n.push({command:Ut.setLayerZoomRange,args:[o,l.minzoom,l.maxzoom]}),s)s.hasOwnProperty(u)&amp;&amp;&quot;layout&quot;!==u&amp;&amp;&quot;paint&quot;!==u&amp;&amp;&quot;filter&quot;!==u&amp;&amp;&quot;metadata&quot;!==u&amp;&amp;&quot;minzoom&quot;!==u&amp;&amp;&quot;maxzoom&quot;!==u&amp;&amp;(0===u.indexOf(&quot;paint.&quot;)?Yt(s[u],l[u],n,o,u.slice(6),Ut.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:Ut.setLayerProperty,args:[o,u,l[u]]}));for(u in l)l.hasOwnProperty(u)&amp;&amp;!s.hasOwnProperty(u)&amp;&amp;&quot;layout&quot;!==u&amp;&amp;&quot;paint&quot;!==u&amp;&amp;&quot;filter&quot;!==u&amp;&amp;&quot;metadata&quot;!==u&amp;&amp;&quot;minzoom&quot;!==u&amp;&amp;&quot;maxzoom&quot;!==u&amp;&amp;(0===u.indexOf(&quot;paint.&quot;)?Yt(s[u],l[u],n,o,u.slice(6),Ut.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:Ut.setLayerProperty,args:[o,u,l[u]]}))}else n.push({command:Ut.removeLayer,args:[o]}),c=g[g.lastIndexOf(o)+1],n.push({command:Ut.addLayer,args:[l,c]})}(o,r.layers,n)}catch(t){console.warn(&quot;Unable to compute style diff:&quot;,t),n=[{command:Ut.setStyle,args:[r]}]}return n}(this.serialize(),e).filter((function(t){return!(t.command in Ue)}));if(0===n.length)return!1;var i=n.filter((function(t){return!(t.command in je)}));if(i.length&gt;0)throw new Error(&quot;Unimplemented: &quot;+i.map((function(t){return t.command})).join(&quot;, &quot;)+&quot;.&quot;);return n.forEach((function(t){&quot;setTransition&quot;!==t.command&amp;&amp;r[t.command].apply(r,t.args)})),this.stylesheet=e,!0},r.prototype.addImage=function(e,r){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error(&quot;An image with this name already exists.&quot;)));this.imageManager.addImage(e,r),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))},r.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},r.prototype.getImage=function(t){return this.imageManager.getImage(t)},r.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error(&quot;No image with this name exists.&quot;)));this.imageManager.removeImage(e),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))},r.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},r.prototype.addSource=function(e,r,n){var i=this;if(void 0===n&amp;&amp;(n={}),this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error(&quot;There is already a source with this ID&quot;);if(!r.type)throw new Error(&quot;The type property must be defined, but the only the following properties were given: &quot;+Object.keys(r).join(&quot;, &quot;)+&quot;.&quot;);if(!([&quot;vector&quot;,&quot;raster&quot;,&quot;geojson&quot;,&quot;video&quot;,&quot;image&quot;].indexOf(r.type)&gt;=0&amp;&amp;this._validate(t.validateStyle.source,&quot;sources.&quot;+e,r,null,n))){this.map&amp;&amp;this.map._collectResourceTiming&amp;&amp;(r.collectResourceTiming=!0);var a=this.sourceCaches[e]=new Lt(e,r,this.dispatcher);a.style=this,a.setEventedParent(this,(function(){return{isSourceLoaded:i.loaded(),source:a.serialize(),sourceId:e}})),a.onAdd(this.map),this._changed=!0}},r.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error(&quot;There is no source with this ID&quot;);for(var r in this._layers)if(this._layers[r].source===e)return this.fire(new t.ErrorEvent(new Error('Source &quot;'+e+'&quot; cannot be removed while layer &quot;'+r+'&quot; is using it.')));var n=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],n.fire(new t.Event(&quot;data&quot;,{sourceDataType:&quot;metadata&quot;,dataType:&quot;source&quot;,sourceId:e})),n.setEventedParent(null),n.clearTiles(),n.onRemove&amp;&amp;n.onRemove(this.map),this._changed=!0},r.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},r.prototype.getSource=function(t){return this.sourceCaches[t]&amp;&amp;this.sourceCaches[t].getSource()},r.prototype.addLayer=function(e,r,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var i=e.id;if(this.getLayer(i))this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+i+'&quot; already exists on this map')));else{var a;if(&quot;custom&quot;===e.type){if(Ne(this,t.validateCustomStyleLayer(e)))return;a=t.createStyleLayer(e)}else{if(&quot;object&quot;==typeof e.source&amp;&amp;(this.addSource(i,e.source),e=t.clone$1(e),e=t.extend(e,{source:i})),this._validate(t.validateStyle.layer,&quot;layers.&quot;+i,e,{arrayIndex:-1},n))return;a=t.createStyleLayer(e),this._validateLayer(a),a.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[a.id]=a.serialize()}var o=r?this._order.indexOf(r):this._order.length;if(r&amp;&amp;-1===o)this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+r+'&quot; does not exist on this map.')));else{if(this._order.splice(o,0,i),this._layerOrderChanged=!0,this._layers[i]=a,this._removedLayers[i]&amp;&amp;a.source&amp;&amp;&quot;custom&quot;!==a.type){var s=this._removedLayers[i];delete this._removedLayers[i],s.type!==a.type?this._updatedSources[a.source]=&quot;clear&quot;:(this._updatedSources[a.source]=&quot;reload&quot;,this.sourceCaches[a.source].pause())}this._updateLayer(a),a.onAdd&amp;&amp;a.onAdd(this.map)}}},r.prototype.moveLayer=function(e,r){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==r){var n=this._order.indexOf(e);this._order.splice(n,1);var i=r?this._order.indexOf(r):this._order.length;r&amp;&amp;-1===i?this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+r+'&quot; does not exist on this map.'))):(this._order.splice(i,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be moved.&quot;)))},r.prototype.removeLayer=function(e){this._checkLoaded();var r=this._layers[e];if(r){r.setEventedParent(null);var n=this._order.indexOf(e);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=r,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],r.onRemove&amp;&amp;r.onRemove(this.map)}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be removed.&quot;)))},r.prototype.getLayer=function(t){return this._layers[t]},r.prototype.hasLayer=function(t){return t in this._layers},r.prototype.setLayerZoomRange=function(e,r,n){this._checkLoaded();var i=this.getLayer(e);i?i.minzoom===r&amp;&amp;i.maxzoom===n||(null!=r&amp;&amp;(i.minzoom=r),null!=n&amp;&amp;(i.maxzoom=n),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot have zoom extent.&quot;)))},r.prototype.setFilter=function(e,r,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var i=this.getLayer(e);if(i){if(!t.deepEqual(i.filter,r))return null==r?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(t.validateStyle.filter,&quot;layers.&quot;+i.id+&quot;.filter&quot;,r,null,n)||(i.filter=t.clone$1(r),this._updateLayer(i)))}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be filtered.&quot;)))},r.prototype.getFilter=function(e){return t.clone$1(this.getLayer(e).filter)},r.prototype.setLayoutProperty=function(e,r,n,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getLayoutProperty(r),n)||(a.setLayoutProperty(r,n,i),this._updateLayer(a)):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be styled.&quot;)))},r.prototype.getLayoutProperty=function(e,r){var n=this.getLayer(e);if(n)return n.getLayoutProperty(r);this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style.&quot;)))},r.prototype.setPaintProperty=function(e,r,n,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getPaintProperty(r),n)||(a.setPaintProperty(r,n,i)&amp;&amp;this._updateLayer(a),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be styled.&quot;)))},r.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},r.prototype.setFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=e.sourceLayer,a=this.sourceCaches[n];if(void 0!==a){var o=a.getSource().type;&quot;geojson&quot;===o&amp;&amp;i?this.fire(new t.ErrorEvent(new Error(&quot;GeoJSON sources cannot have a sourceLayer parameter.&quot;))):&quot;vector&quot;!==o||i?(void 0===e.id&amp;&amp;this.fire(new t.ErrorEvent(new Error(&quot;The feature id parameter must be provided.&quot;))),a.setFeatureState(i,e.id,r)):this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+n+&quot;' does not exist in the map's style.&quot;)))},r.prototype.removeFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=this.sourceCaches[n];if(void 0!==i){var a=i.getSource().type,o=&quot;vector&quot;===a?e.sourceLayer:void 0;&quot;vector&quot;!==a||o?r&amp;&amp;&quot;string&quot;!=typeof e.id&amp;&amp;&quot;number&quot;!=typeof e.id?this.fire(new t.ErrorEvent(new Error(&quot;A feature id is requred to remove its specific state property.&quot;))):i.removeFeatureState(o,e.id,r):this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+n+&quot;' does not exist in the map's style.&quot;)))},r.prototype.getFeatureState=function(e){this._checkLoaded();var r=e.source,n=e.sourceLayer,i=this.sourceCaches[r];if(void 0!==i){if(&quot;vector&quot;!==i.getSource().type||n)return void 0===e.id&amp;&amp;this.fire(new t.ErrorEvent(new Error(&quot;The feature id parameter must be provided.&quot;))),i.getFeatureState(n,e.id);this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+r+&quot;' does not exist in the map's style.&quot;)))},r.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&amp;&amp;this.stylesheet.transition)},r.prototype.serialize=function(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,(function(t){return t.serialize()})),layers:this._serializeLayers(this._order)},(function(t){return void 0!==t}))},r.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&amp;&amp;!this._updatedSources[t.source]&amp;&amp;&quot;raster&quot;!==this.sourceCaches[t.source].getSource().type&amp;&amp;(this._updatedSources[t.source]=&quot;reload&quot;,this.sourceCaches[t.source].pause()),this._changed=!0},r.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,r=function(t){return&quot;fill-extrusion&quot;===e._layers[t].type},n={},i=[],a=this._order.length-1;a&gt;=0;a--){var o=this._order[a];if(r(o)){n[o]=a;for(var s=0,l=t;s&lt;l.length;s+=1){var c=l[s][o];if(c)for(var u=0,f=c;u&lt;f.length;u+=1)i.push(f[u])}}}i.sort((function(t,e){return e.intersectionZ-t.intersectionZ}));for(var h=[],p=this._order.length-1;p&gt;=0;p--){var d=this._order[p];if(r(d))for(var g=i.length-1;g&gt;=0;g--){var m=i[g].feature;if(n[m.layer.id]&lt;p)break;h.push(m),i.pop()}else for(var v=0,y=t;v&lt;y.length;v+=1){var x=y[v][d];if(x)for(var b=0,_=x;b&lt;_.length;b+=1)h.push(_[b].feature)}}return h},r.prototype.queryRenderedFeatures=function(e,r,n){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,&quot;queryRenderedFeatures.filter&quot;,r.filter,null,r);var i={};if(r&amp;&amp;r.layers){if(!Array.isArray(r.layers))return this.fire(new t.ErrorEvent(new Error(&quot;parameters.layers must be an Array.&quot;))),[];for(var a=0,o=r.layers;a&lt;o.length;a+=1){var s=o[a],l=this._layers[s];if(!l)return this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+s+&quot;' does not exist in the map's style and cannot be queried for features.&quot;))),[];i[l.source]=!0}}var c=[];for(var u in r.availableImages=this._availableImages,this.sourceCaches)r.layers&amp;&amp;!i[u]||c.push(F(this.sourceCaches[u],this._layers,this._serializedLayers,e,r,n));return this.placement&amp;&amp;c.push(function(t,e,r,n,i,a,o){for(var s={},l=a.queryRenderedSymbols(n),c=[],u=0,f=Object.keys(l).map(Number);u&lt;f.length;u+=1)c.push(o[f[u]]);c.sort(B);for(var h=function(){var r=d[p],n=r.featureIndex.lookupSymbolFeatures(l[r.bucketInstanceId],e,r.bucketIndex,r.sourceLayerIndex,i.filter,i.layers,i.availableImages,t);for(var a in n){var o=s[a]=s[a]||[],c=n[a];c.sort((function(t,e){var n=r.featureSortOrder;if(n){var i=n.indexOf(t.featureIndex);return n.indexOf(e.featureIndex)-i}return e.featureIndex-t.featureIndex}));for(var u=0,f=c;u&lt;f.length;u+=1)o.push(f[u])}},p=0,d=c;p&lt;d.length;p+=1)h();var g=function(e){s[e].forEach((function(n){var i=n.feature,a=r[t[e].source].getFeatureState(i.layer[&quot;source-layer&quot;],i.id);i.source=i.layer.source,i.layer[&quot;source-layer&quot;]&amp;&amp;(i.sourceLayer=i.layer[&quot;source-layer&quot;]),i.state=a}))};for(var m in s)g(m);return s}(this._layers,this._serializedLayers,this.sourceCaches,e,r,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(c)},r.prototype.querySourceFeatures=function(e,r){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,&quot;querySourceFeatures.filter&quot;,r.filter,null,r);var n=this.sourceCaches[e];return n?function(t,e){for(var r=t.getRenderableIds().map((function(e){return t.getTileByID(e)})),n=[],i={},a=0;a&lt;r.length;a++){var o=r[a],s=o.tileID.canonical.key;i[s]||(i[s]=!0,o.querySourceFeatures(n,e))}return n}(n,r):[]},r.prototype.addSourceType=function(t,e,n){return r.getSourceType(t)?n(new Error('A source type called &quot;'+t+'&quot; already exists.')):(r.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast(&quot;loadWorkerSource&quot;,{name:t,url:e.workerSourceURL},n):n(null,null))},r.prototype.getLight=function(){return this.light.getLight()},r.prototype.setLight=function(e,r){void 0===r&amp;&amp;(r={}),this._checkLoaded();var n=this.light.getLight(),i=!1;for(var a in e)if(!t.deepEqual(e[a],n[a])){i=!0;break}if(i){var o={now:t.browser.now(),transition:t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,r),this.light.updateTransitions(o)}},r.prototype._validate=function(e,r,n,i,a){return void 0===a&amp;&amp;(a={}),(!a||!1!==a.validate)&amp;&amp;Ne(this,e.call(t.validateStyle,t.extend({key:r,style:this.serialize(),value:n,styleSpec:t.styleSpec},i)))},r.prototype._remove=function(){for(var e in this._request&amp;&amp;(this._request.cancel(),this._request=null),this._spriteRequest&amp;&amp;(this._spriteRequest.cancel(),this._spriteRequest=null),t.evented.off(&quot;pluginStateChange&quot;,this._rtlTextPluginCallback),this._layers)this._layers[e].setEventedParent(null);for(var r in this.sourceCaches)this.sourceCaches[r].clearTiles(),this.sourceCaches[r].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()},r.prototype._clearSource=function(t){this.sourceCaches[t].clearTiles()},r.prototype._reloadSource=function(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()},r.prototype._updateSources=function(t){for(var e in this.sourceCaches)this.sourceCaches[e].update(t)},r.prototype._generateCollisionBoxes=function(){for(var t in this.sourceCaches)this._reloadSource(t)},r.prototype._updatePlacement=function(e,r,n,i,a){void 0===a&amp;&amp;(a=!1);for(var o=!1,s=!1,l={},c=0,u=this._order;c&lt;u.length;c+=1){var f=this._layers[u[c]];if(&quot;symbol&quot;===f.type){if(!l[f.source]){var h=this.sourceCaches[f.source];l[f.source]=h.getRenderableIds(!0).map((function(t){return h.getTileByID(t)})).sort((function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)}))}var p=this.crossTileSymbolIndex.addLayer(f,l[f.source],e.center.lng);o=o||p}}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((a=a||this._layerOrderChanged||0===n)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&amp;&amp;!this.placement.stillRecent(t.browser.now(),e.zoom))&amp;&amp;(this.pauseablePlacement=new ze(e,this._order,a,r,n,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&amp;&amp;(this.placement=this.pauseablePlacement.commit(t.browser.now()),s=!0),o&amp;&amp;this.pauseablePlacement.placement.setStale()),s||o)for(var d=0,g=this._order;d&lt;g.length;d+=1){var m=this._layers[g[d]];&quot;symbol&quot;===m.type&amp;&amp;this.placement.updateLayerOpacities(m,l[m.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(t.browser.now())},r.prototype._releaseSymbolFadeTiles=function(){for(var t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()},r.prototype.getImages=function(t,e,r){this.imageManager.getImages(e.icons,r),this._updateTilesForChangedImages();var n=this.sourceCaches[e.source];n&amp;&amp;n.setDependencies(e.tileID.key,e.type,e.icons)},r.prototype.getGlyphs=function(t,e,r){this.glyphManager.getGlyphs(e.stacks,r)},r.prototype.getResource=function(e,r,n){return t.makeRequest(r,n)},r}(t.Evented);qe.getSourceType=function(t){return D[t]},qe.setSourceType=function(t,e){D[t]=e},qe.registerForPluginStateChange=t.registerForPluginStateChange;var He=t.createLayout([{name:&quot;a_pos&quot;,type:&quot;Int16&quot;,components:2}]),Ge=vr(&quot;#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif&quot;,&quot;#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}&quot;),Ye=vr(&quot;uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),We=vr(&quot;uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}&quot;),Xe=vr(&quot;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width &lt; 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}&quot;),Ze=vr(&quot;void main() {gl_FragColor=vec4(1.0);}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),Je=vr(&quot;uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}&quot;),Ke=vr(&quot;uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}&quot;),Qe=vr(&quot;varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed &gt; 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed &gt; 0.5) {gl_FragColor*=.1;}}&quot;,&quot;attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}&quot;),$e=vr(&quot;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}&quot;,&quot;attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd  =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz  /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx &gt;=2.0)),mix(-1.0,1.0,float(vertexIdx &gt;=1.0 &amp;&amp; vertexIdx &lt;=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}&quot;),tr=vr(&quot;uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}&quot;,&quot;attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}&quot;),er=vr(&quot;#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),rr=vr(&quot;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}&quot;),nr=vr(&quot;uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}&quot;),ir=vr(&quot;uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}&quot;),ar=vr(&quot;varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t &gt; 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}&quot;),or=vr(&quot;uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t &gt; 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 &amp;&amp; normal.y==0.0 &amp;&amp; normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}&quot;),sr=vr(&quot;#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform float u_maxzoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom &lt; 2.0 ? 0.4 : u_zoom &lt; 4.5 ? 0.35 : 0.3;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}&quot;),lr=vr(&quot;uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y &gt; 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}&quot;),cr=vr(&quot;uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}&quot;),ur=vr(&quot;uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define MAX_LINE_DISTANCE 32767.0\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}&quot;),fr=vr(&quot;uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}&quot;),hr=vr(&quot;uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}&quot;),pr=vr(&quot;uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a &gt; 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a &gt; 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}&quot;),dr=vr(&quot;uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}&quot;),gr=vr(&quot;#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}&quot;),mr=vr(&quot;#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}&quot;);function vr(t,e){var r=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,n={};return{fragmentSource:t=t.replace(r,(function(t,e,r,i,a){return n[a]=!0,&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nvarying &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifdef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;})),vertexSource:e=e.replace(r,(function(t,e,r,i,a){var o=&quot;float&quot;===i?&quot;vec2&quot;:&quot;vec4&quot;,s=a.match(/color/)?&quot;color&quot;:o;return n[a]?&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nuniform lowp float u_&quot;+a+&quot;_t;\nattribute &quot;+r+&quot; &quot;+o+&quot; a_&quot;+a+&quot;;\nvarying &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;vec4&quot;===s?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+a+&quot; = a_&quot;+a+&quot;;\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+a+&quot; = unpack_mix_&quot;+s+&quot;(a_&quot;+a+&quot;, u_&quot;+a+&quot;_t);\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nuniform lowp float u_&quot;+a+&quot;_t;\nattribute &quot;+r+&quot; &quot;+o+&quot; a_&quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;vec4&quot;===s?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = a_&quot;+a+&quot;;\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = unpack_mix_&quot;+s+&quot;(a_&quot;+a+&quot;, u_&quot;+a+&quot;_t);\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;}))}}var yr=Object.freeze({__proto__:null,prelude:Ge,background:Ye,backgroundPattern:We,circle:Xe,clippingMask:Ze,heatmap:Je,heatmapTexture:Ke,collisionBox:Qe,collisionCircle:$e,debug:tr,fill:er,fillOutline:rr,fillOutlinePattern:nr,fillPattern:ir,fillExtrusion:ar,fillExtrusionPattern:or,hillshadePrepare:sr,hillshade:lr,line:cr,lineGradient:ur,linePattern:fr,lineSDF:hr,raster:pr,symbolIcon:dr,symbolSDF:gr,symbolTextAndIcon:mr}),xr=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};xr.prototype.bind=function(t,e,r,n,i,a,o,s){this.context=t;for(var l=this.boundPaintVertexBuffers.length!==n.length,c=0;!l&amp;&amp;c&lt;n.length;c++)this.boundPaintVertexBuffers[c]!==n[c]&amp;&amp;(l=!0);t.extVertexArrayObject&amp;&amp;this.vao&amp;&amp;this.boundProgram===e&amp;&amp;this.boundLayoutVertexBuffer===r&amp;&amp;!l&amp;&amp;this.boundIndexBuffer===i&amp;&amp;this.boundVertexOffset===a&amp;&amp;this.boundDynamicVertexBuffer===o&amp;&amp;this.boundDynamicVertexBuffer2===s?(t.bindVertexArrayOES.set(this.vao),o&amp;&amp;o.bind(),i&amp;&amp;i.dynamicDraw&amp;&amp;i.bind(),s&amp;&amp;s.bind()):this.freshBind(e,r,n,i,a,o,s)},xr.prototype.freshBind=function(t,e,r,n,i,a,o){var s,l=t.numAttributes,c=this.context,u=c.gl;if(c.extVertexArrayObject)this.vao&amp;&amp;this.destroy(),this.vao=c.extVertexArrayObject.createVertexArrayOES(),c.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=r,this.boundIndexBuffer=n,this.boundVertexOffset=i,this.boundDynamicVertexBuffer=a,this.boundDynamicVertexBuffer2=o;else{s=c.currentNumAttributes||0;for(var f=l;f&lt;s;f++)u.disableVertexAttribArray(f)}e.enableAttributes(u,t);for(var h=0,p=r;h&lt;p.length;h+=1)p[h].enableAttributes(u,t);a&amp;&amp;a.enableAttributes(u,t),o&amp;&amp;o.enableAttributes(u,t),e.bind(),e.setVertexAttribPointers(u,t,i);for(var d=0,g=r;d&lt;g.length;d+=1){var m=g[d];m.bind(),m.setVertexAttribPointers(u,t,i)}a&amp;&amp;(a.bind(),a.setVertexAttribPointers(u,t,i)),n&amp;&amp;n.bind(),o&amp;&amp;(o.bind(),o.setVertexAttribPointers(u,t,i)),c.currentNumAttributes=l},xr.prototype.destroy=function(){this.vao&amp;&amp;(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var br=function(t,e,r,n,i){var a=t.gl;this.program=a.createProgram();var o=r?r.defines():[];i&amp;&amp;o.push(&quot;#define OVERDRAW_INSPECTOR;&quot;);var s=o.concat(Ge.fragmentSource,e.fragmentSource).join(&quot;\n&quot;),l=o.concat(Ge.vertexSource,e.vertexSource).join(&quot;\n&quot;),c=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(c,s),a.compileShader(c),a.attachShader(this.program,c);var u=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(u,l),a.compileShader(u),a.attachShader(this.program,u);for(var f=r?r.layoutAttributes:[],h=0;h&lt;f.length;h++)a.bindAttribLocation(this.program,h,f[h].name);a.linkProgram(this.program),a.deleteShader(u),a.deleteShader(c),this.numAttributes=a.getProgramParameter(this.program,a.ACTIVE_ATTRIBUTES),this.attributes={};for(var p={},d=0;d&lt;this.numAttributes;d++){var g=a.getActiveAttrib(this.program,d);g&amp;&amp;(this.attributes[g.name]=a.getAttribLocation(this.program,g.name))}for(var m=a.getProgramParameter(this.program,a.ACTIVE_UNIFORMS),v=0;v&lt;m;v++){var y=a.getActiveUniform(this.program,v);y&amp;&amp;(p[y.name]=a.getUniformLocation(this.program,y.name))}this.fixedUniforms=n(t,p),this.binderUniforms=r?r.getUniforms(t,p):[]}}};function _r(t,e,r){var n=1/he(r,1,e.transform.tileZoom),i=Math.pow(2,r.tileID.overscaledZ),a=r.tileSize*Math.pow(2,e.transform.tileZoom)/i,o=a*(r.tileID.canonical.x+r.tileID.wrap*i),s=a*r.tileID.canonical.y;return{u_image:0,u_texsize:r.imageAtlasTexture.size,u_scale:[n,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[o&gt;&gt;16,s&gt;&gt;16],u_pixel_coord_lower:[65535&amp;o,65535&amp;s]}}br.prototype.draw=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g){var m,v=t.gl;if(!this.failedToCreate){for(var y in t.program.set(this.program),t.setDepthMode(r),t.setStencilMode(n),t.setColorMode(i),t.setCullFace(a),this.fixedUniforms)this.fixedUniforms[y].set(o[y]);p&amp;&amp;p.setUniforms(t,this.binderUniforms,f,{zoom:h});for(var x=(m={},m[v.LINES]=2,m[v.TRIANGLES]=3,m[v.LINE_STRIP]=1,m)[e],b=0,_=u.get();b&lt;_.length;b+=1){var w=_[b],T=w.vaos||(w.vaos={});(T[s]||(T[s]=new xr)).bind(t,this,l,p?p.getPaintVertexBuffers():[],c,w.vertexOffset,d,g),v.drawElements(e,w.primitiveLength*x,v.UNSIGNED_SHORT,w.primitiveOffset*x*2)}}};var wr=function(e,r,n,i){var a=r.style.light,o=a.properties.get(&quot;position&quot;),s=[o.x,o.y,o.z],l=t.create$1();&quot;viewport&quot;===a.properties.get(&quot;anchor&quot;)&amp;&amp;t.fromRotation(l,-r.transform.angle),t.transformMat3(s,s,l);var c=a.properties.get(&quot;color&quot;);return{u_matrix:e,u_lightpos:s,u_lightintensity:a.properties.get(&quot;intensity&quot;),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+n,u_opacity:i}},Tr=function(e,r,n,i,a,o,s){return t.extend(wr(e,r,n,i),_r(o,r,s),{u_height_factor:-Math.pow(2,a.overscaledZ)/s.tileSize/8})},kr=function(t){return{u_matrix:t}},Mr=function(e,r,n,i){return t.extend(kr(e),_r(n,r,i))},Ar=function(t,e){return{u_matrix:t,u_world:e}},Sr=function(e,r,n,i,a){return t.extend(Mr(e,r,n,i),{u_world:a})},Er=function(e,r,n,i){var a,o,s=e.transform;if(&quot;map&quot;===i.paint.get(&quot;circle-pitch-alignment&quot;)){var l=he(n,1,s.zoom);a=!0,o=[l,l]}else a=!1,o=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+(&quot;map&quot;===i.paint.get(&quot;circle-pitch-scale&quot;)),u_matrix:e.translatePosMatrix(r.posMatrix,n,i.paint.get(&quot;circle-translate&quot;),i.paint.get(&quot;circle-translate-anchor&quot;)),u_pitch_with_map:+a,u_device_pixel_ratio:t.browser.devicePixelRatio,u_extrude_scale:o}},Cr=function(t,e,r){var n=he(r,1,e.zoom),i=Math.pow(2,e.zoom-r.tileID.overscaledZ),a=r.tileID.overscaleFactor();return{u_matrix:t,u_camera_to_center_distance:e.cameraToCenterDistance,u_pixels_to_tile_units:n,u_extrude_scale:[e.pixelsToGLUnits[0]/(n*i),e.pixelsToGLUnits[1]/(n*i)],u_overscale_factor:a}},Lr=function(t,e,r){return{u_matrix:t,u_inv_matrix:e,u_camera_to_center_distance:r.cameraToCenterDistance,u_viewport_size:[r.width,r.height]}},Ir=function(t,e,r){return void 0===r&amp;&amp;(r=1),{u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:r}},Pr=function(t){return{u_matrix:t}},zr=function(t,e,r,n){return{u_matrix:t,u_extrude_scale:he(e,1,r),u_intensity:n}},Or=function(e,r,n){var i=e.transform;return{u_matrix:Nr(e,r,n),u_ratio:1/he(r,1,i.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},Dr=function(e,r,n){return t.extend(Or(e,r,n),{u_image:0})},Rr=function(e,r,n,i){var a=e.transform,o=Br(r,a);return{u_matrix:Nr(e,r,n),u_texsize:r.imageAtlasTexture.size,u_ratio:1/he(r,1,a.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_image:0,u_scale:[o,i.fromScale,i.toScale],u_fade:i.t,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]]}},Fr=function(e,r,n,i,a){var o=e.lineAtlas,s=Br(r,e.transform),l=&quot;round&quot;===n.layout.get(&quot;line-cap&quot;),c=o.getDash(i.from,l),u=o.getDash(i.to,l),f=c.width*a.fromScale,h=u.width*a.toScale;return t.extend(Or(e,r,n),{u_patternscale_a:[s/f,-c.height/2],u_patternscale_b:[s/h,-u.height/2],u_sdfgamma:o.width/(256*Math.min(f,h)*t.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:c.y,u_tex_y_b:u.y,u_mix:a.t})};function Br(t,e){return 1/he(t,1,e.tileZoom)}function Nr(t,e,r){return t.translatePosMatrix(e.tileID.posMatrix,e,r.paint.get(&quot;line-translate&quot;),r.paint.get(&quot;line-translate-anchor&quot;))}var jr=function(t,e,r,n,i){return{u_matrix:t,u_tl_parent:e,u_scale_parent:r,u_buffer_scale:1,u_fade_t:n.mix,u_opacity:n.opacity*i.paint.get(&quot;raster-opacity&quot;),u_image0:0,u_image1:1,u_brightness_low:i.paint.get(&quot;raster-brightness-min&quot;),u_brightness_high:i.paint.get(&quot;raster-brightness-max&quot;),u_saturation_factor:(o=i.paint.get(&quot;raster-saturation&quot;),o&gt;0?1-1/(1.001-o):-o),u_contrast_factor:(a=i.paint.get(&quot;raster-contrast&quot;),a&gt;0?1/(1-a):1+a),u_spin_weights:Ur(i.paint.get(&quot;raster-hue-rotate&quot;))};var a,o};function Ur(t){t*=Math.PI/180;var e=Math.sin(t),r=Math.cos(t);return[(2*r+1)/3,(-Math.sqrt(3)*e-r+1)/3,(Math.sqrt(3)*e-r+1)/3]}var Vr,qr=function(t,e,r,n,i,a,o,s,l,c){var u=i.transform;return{u_is_size_zoom_constant:+(&quot;constant&quot;===t||&quot;source&quot;===t),u_is_size_feature_constant:+(&quot;constant&quot;===t||&quot;camera&quot;===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:u.cameraToCenterDistance,u_pitch:u.pitch/360*2*Math.PI,u_rotate_symbol:+r,u_aspect_ratio:u.width/u.height,u_fade_change:i.options.fadeDuration?i.symbolFadeChange:1,u_matrix:a,u_label_plane_matrix:o,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+n,u_texsize:c,u_texture:0}},Hr=function(e,r,n,i,a,o,s,l,c,u,f){var h=a.transform;return t.extend(qr(e,r,n,i,a,o,s,l,c,u),{u_gamma_scale:i?Math.cos(h._pitch)*h.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+f})},Gr=function(e,r,n,i,a,o,s,l,c,u){return t.extend(Hr(e,r,n,i,a,o,s,l,!0,c,!0),{u_texsize_icon:u,u_texture_icon:1})},Yr=function(t,e,r){return{u_matrix:t,u_opacity:e,u_color:r}},Wr=function(e,r,n,i,a,o){return t.extend(function(t,e,r,n){var i=r.imageManager.getPattern(t.from.toString()),a=r.imageManager.getPattern(t.to.toString()),o=r.imageManager.getPixelSize(),s=o.width,l=o.height,c=Math.pow(2,n.tileID.overscaledZ),u=n.tileSize*Math.pow(2,r.transform.tileZoom)/c,f=u*(n.tileID.canonical.x+n.tileID.wrap*c),h=u*n.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[s,l],u_mix:e.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/he(n,1,r.transform.tileZoom),u_pixel_coord_upper:[f&gt;&gt;16,h&gt;&gt;16],u_pixel_coord_lower:[65535&amp;f,65535&amp;h]}}(i,o,n,a),{u_matrix:e,u_opacity:r})},Xr={fillExtrusion:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fillExtrusionPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,r.u_height_factor),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fill:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},fillPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},fillOutline:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world)}},fillOutlinePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},circle:function(e,r){return{u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,r.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},collisionBox:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,r.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,r.u_overscale_factor)}},collisionCircle:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,r.u_inv_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,r.u_viewport_size)}},debug:function(e,r){return{u_color:new t.UniformColor(e,r.u_color),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_overlay:new t.Uniform1i(e,r.u_overlay),u_overlay_scale:new t.Uniform1f(e,r.u_overlay_scale)}},clippingMask:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmap:function(e,r){return{u_extrude_scale:new t.Uniform1f(e,r.u_extrude_scale),u_intensity:new t.Uniform1f(e,r.u_intensity),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmapTexture:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_color_ramp:new t.Uniform1i(e,r.u_color_ramp),u_opacity:new t.Uniform1f(e,r.u_opacity)}},hillshade:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_latrange:new t.Uniform2f(e,r.u_latrange),u_light:new t.Uniform2f(e,r.u_light),u_shadow:new t.UniformColor(e,r.u_shadow),u_highlight:new t.UniformColor(e,r.u_highlight),u_accent:new t.UniformColor(e,r.u_accent)}},hillshadePrepare:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_dimension:new t.Uniform2f(e,r.u_dimension),u_zoom:new t.Uniform1f(e,r.u_zoom),u_maxzoom:new t.Uniform1f(e,r.u_maxzoom),u_unpack:new t.Uniform4f(e,r.u_unpack)}},line:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels)}},lineGradient:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_image:new t.Uniform1i(e,r.u_image)}},linePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_texsize:new t.Uniform2f(e,r.u_texsize),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_image:new t.Uniform1i(e,r.u_image),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},lineSDF:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,r.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,r.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,r.u_sdfgamma),u_image:new t.Uniform1i(e,r.u_image),u_tex_y_a:new t.Uniform1f(e,r.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,r.u_tex_y_b),u_mix:new t.Uniform1f(e,r.u_mix)}},raster:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_tl_parent:new t.Uniform2f(e,r.u_tl_parent),u_scale_parent:new t.Uniform1f(e,r.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,r.u_buffer_scale),u_fade_t:new t.Uniform1f(e,r.u_fade_t),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image0:new t.Uniform1i(e,r.u_image0),u_image1:new t.Uniform1i(e,r.u_image1),u_brightness_low:new t.Uniform1f(e,r.u_brightness_low),u_brightness_high:new t.Uniform1f(e,r.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,r.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,r.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,r.u_spin_weights)}},symbolIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture)}},symbolSDF:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},symbolTextAndIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texsize_icon:new t.Uniform2f(e,r.u_texsize_icon),u_texture:new t.Uniform1i(e,r.u_texture),u_texture_icon:new t.Uniform1i(e,r.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},background:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_color:new t.UniformColor(e,r.u_color)}},backgroundPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image:new t.Uniform1i(e,r.u_image),u_pattern_tl_a:new t.Uniform2f(e,r.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,r.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,r.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,r.u_pattern_br_b),u_texsize:new t.Uniform2f(e,r.u_texsize),u_mix:new t.Uniform1f(e,r.u_mix),u_pattern_size_a:new t.Uniform2f(e,r.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,r.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,r.u_scale_a),u_scale_b:new t.Uniform1f(e,r.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,r.u_tile_units_to_pixels)}}};function Zr(e,r,n,i,a,o,s){for(var l=e.context,c=l.gl,u=e.useProgram(&quot;collisionBox&quot;),f=[],h=0,p=0,d=0;d&lt;i.length;d++){var g=i[d],m=r.getTile(g),v=m.getBucket(n);if(v){var y=g.posMatrix;0===a[0]&amp;&amp;0===a[1]||(y=e.translatePosMatrix(g.posMatrix,m,a,o));var x=s?v.textCollisionBox:v.iconCollisionBox,b=v.collisionCircleArray;if(b.length&gt;0){var _=t.create(),w=y;t.mul(_,v.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul(_,_,v.placementViewportMatrix),f.push({circleArray:b,circleOffset:p,transform:w,invTransform:_}),p=h+=b.length/4}x&amp;&amp;u.draw(l,c.LINES,Mt.disabled,At.disabled,e.colorModeForRenderPass(),Et.disabled,Cr(y,e.transform,m),n.id,x.layoutVertexBuffer,x.indexBuffer,x.segments,null,e.transform.zoom,null,null,x.collisionVertexBuffer)}}if(s&amp;&amp;f.length){var T=e.useProgram(&quot;collisionCircle&quot;),k=new t.StructArrayLayout2f1f2i16;k.resize(4*h),k._trim();for(var M=0,A=0,S=f;A&lt;S.length;A+=1)for(var E=S[A],C=0;C&lt;E.circleArray.length/4;C++){var L=4*C,I=E.circleArray[L+0],P=E.circleArray[L+1],z=E.circleArray[L+2],O=E.circleArray[L+3];k.emplace(M++,I,P,z,O,0),k.emplace(M++,I,P,z,O,1),k.emplace(M++,I,P,z,O,2),k.emplace(M++,I,P,z,O,3)}(!Vr||Vr.length&lt;2*h)&amp;&amp;(Vr=function(e){var r=2*e,n=new t.StructArrayLayout3ui6;n.resize(r),n._trim();for(var i=0;i&lt;r;i++){var a=6*i;n.uint16[a+0]=4*i+0,n.uint16[a+1]=4*i+1,n.uint16[a+2]=4*i+2,n.uint16[a+3]=4*i+2,n.uint16[a+4]=4*i+3,n.uint16[a+5]=4*i+0}return n}(h));for(var D=l.createIndexBuffer(Vr,!0),R=l.createVertexBuffer(k,t.collisionCircleLayout.members,!0),F=0,B=f;F&lt;B.length;F+=1){var N=B[F],j=Lr(N.transform,N.invTransform,e.transform);T.draw(l,c.TRIANGLES,Mt.disabled,At.disabled,e.colorModeForRenderPass(),Et.disabled,j,n.id,R,D,t.SegmentVector.simpleSegment(0,2*N.circleOffset,N.circleArray.length,N.circleArray.length/2),null,e.transform.zoom,null,null,null)}R.destroy(),D.destroy()}}var Jr=t.identity(new Float32Array(16));function Kr(e,r,n,i,a,o){var s=t.getAnchorAlignment(e),l=-(s.horizontalAlign-.5)*r,c=-(s.verticalAlign-.5)*n,u=t.evaluateVariableOffset(e,i);return new t.Point((l/a+u[0])*o,(c/a+u[1])*o)}function Qr(e,r,n,i,a,o,s,l,c,u,f){var h=e.text.placedSymbolArray,p=e.text.dynamicLayoutVertexArray,d=e.icon.dynamicLayoutVertexArray,g={};p.clear();for(var m=0;m&lt;h.length;m++){var v=h.get(m),y=v.hidden||!v.crossTileID||e.allowVerticalPlacement&amp;&amp;!v.placedOrientation?null:i[v.crossTileID];if(y){var x=new t.Point(v.anchorX,v.anchorY),b=$t(x,n?l:s),_=te(o.cameraToCenterDistance,b.signedDistanceFromCamera),w=a.evaluateSizeForFeature(e.textSizeData,u,v)*_/t.ONE_EM;n&amp;&amp;(w*=e.tilePixelRatio/c);for(var T=Kr(y.anchor,y.width,y.height,y.textOffset,y.textBoxScale,w),k=n?$t(x.add(T),s).point:b.point.add(r?T.rotate(-o.angle):T),M=e.allowVerticalPlacement&amp;&amp;v.placedOrientation===t.WritingMode.vertical?Math.PI/2:0,A=0;A&lt;v.numGlyphs;A++)t.addDynamicAttributes(p,k,M);f&amp;&amp;v.associatedIconIndex&gt;=0&amp;&amp;(g[v.associatedIconIndex]={shiftedAnchor:k,angle:M})}else ce(v.numGlyphs,p)}if(f){d.clear();for(var S=e.icon.placedSymbolArray,E=0;E&lt;S.length;E++){var C=S.get(E);if(C.hidden)ce(C.numGlyphs,d);else{var L=g[E];if(L)for(var I=0;I&lt;C.numGlyphs;I++)t.addDynamicAttributes(d,L.shiftedAnchor,L.angle);else ce(C.numGlyphs,d)}}e.icon.dynamicLayoutVertexBuffer.updateData(d)}e.text.dynamicLayoutVertexBuffer.updateData(p)}function $r(t,e,r){return r.iconsInText&amp;&amp;e?&quot;symbolTextAndIcon&quot;:t?&quot;symbolSDF&quot;:&quot;symbolIcon&quot;}function tn(e,r,n,i,a,o,s,l,c,u,f,h){for(var p=e.context,d=p.gl,g=e.transform,m=&quot;map&quot;===l,v=&quot;map&quot;===c,y=m&amp;&amp;&quot;point&quot;!==n.layout.get(&quot;symbol-placement&quot;),x=m&amp;&amp;!v&amp;&amp;!y,b=void 0!==n.layout.get(&quot;symbol-sort-key&quot;).constantOr(1),_=e.depthModeForSublayer(0,Mt.ReadOnly),w=n.layout.get(&quot;text-variable-anchor&quot;),T=[],k=0,M=i;k&lt;M.length;k+=1){var A=M[k],S=r.getTile(A),E=S.getBucket(n);if(E){var C=a?E.text:E.icon;if(C&amp;&amp;C.segments.get().length){var L=C.programConfigurations.get(n.id),I=a||E.sdfIcons,P=a?E.textSizeData:E.iconSizeData,z=v||0!==g.pitch,O=e.useProgram($r(I,a,E),L),D=t.evaluateSizeForZoom(P,g.zoom),R=void 0,F=[0,0],B=void 0,N=void 0,j=null,U=void 0;if(a)B=S.glyphAtlasTexture,N=d.LINEAR,R=S.glyphAtlasTexture.size,E.iconsInText&amp;&amp;(F=S.imageAtlasTexture.size,j=S.imageAtlasTexture,U=z||e.options.rotating||e.options.zooming||&quot;composite&quot;===P.kind||&quot;camera&quot;===P.kind?d.LINEAR:d.NEAREST);else{var V=1!==n.layout.get(&quot;icon-size&quot;).constantOr(0)||E.iconsNeedLinear;B=S.imageAtlasTexture,N=I||e.options.rotating||e.options.zooming||V||z?d.LINEAR:d.NEAREST,R=S.imageAtlasTexture.size}var q=he(S,1,e.transform.zoom),H=Kt(A.posMatrix,v,m,e.transform,q),G=Qt(A.posMatrix,v,m,e.transform,q),Y=w&amp;&amp;E.hasTextData(),W=&quot;none&quot;!==n.layout.get(&quot;icon-text-fit&quot;)&amp;&amp;Y&amp;&amp;E.hasIconData();y&amp;&amp;re(E,A.posMatrix,e,a,H,G,v,u);var X=e.translatePosMatrix(A.posMatrix,S,o,s),Z=y||a&amp;&amp;w||W?Jr:H,J=e.translatePosMatrix(G,S,o,s,!0),K=I&amp;&amp;0!==n.paint.get(a?&quot;text-halo-width&quot;:&quot;icon-halo-width&quot;).constantOr(1),Q={program:O,buffers:C,uniformValues:I?E.iconsInText?Gr(P.kind,D,x,v,e,X,Z,J,R,F):Hr(P.kind,D,x,v,e,X,Z,J,a,R,!0):qr(P.kind,D,x,v,e,X,Z,J,a,R),atlasTexture:B,atlasTextureIcon:j,atlasInterpolation:N,atlasInterpolationIcon:U,isSDF:I,hasHalo:K};if(b)for(var $=0,tt=C.segments.get();$&lt;tt.length;$+=1){var et=tt[$];T.push({segments:new t.SegmentVector([et]),sortKey:et.sortKey,state:Q})}else T.push({segments:C.segments,sortKey:0,state:Q})}}}b&amp;&amp;T.sort((function(t,e){return t.sortKey-e.sortKey}));for(var rt=0,nt=T;rt&lt;nt.length;rt+=1){var it=nt[rt],at=it.state;if(p.activeTexture.set(d.TEXTURE0),at.atlasTexture.bind(at.atlasInterpolation,d.CLAMP_TO_EDGE),at.atlasTextureIcon&amp;&amp;(p.activeTexture.set(d.TEXTURE1),at.atlasTextureIcon&amp;&amp;at.atlasTextureIcon.bind(at.atlasInterpolationIcon,d.CLAMP_TO_EDGE)),at.isSDF){var ot=at.uniformValues;at.hasHalo&amp;&amp;(ot.u_is_halo=1,en(at.buffers,it.segments,n,e,at.program,_,f,h,ot)),ot.u_is_halo=0}en(at.buffers,it.segments,n,e,at.program,_,f,h,at.uniformValues)}}function en(t,e,r,n,i,a,o,s,l){var c=n.context;i.draw(c,c.gl.TRIANGLES,a,o,s,Et.disabled,l,r.id,t.layoutVertexBuffer,t.indexBuffer,e,r.paint,n.transform.zoom,t.programConfigurations.get(r.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function rn(t,e,r,n,i,a,o){var s,l,c,u,f,h=t.context.gl,p=r.paint.get(&quot;fill-pattern&quot;),d=p&amp;&amp;p.constantOr(1),g=r.getCrossfadeParameters();o?(l=d&amp;&amp;!r.getPaintProperty(&quot;fill-outline-color&quot;)?&quot;fillOutlinePattern&quot;:&quot;fillOutline&quot;,s=h.LINES):(l=d?&quot;fillPattern&quot;:&quot;fill&quot;,s=h.TRIANGLES);for(var m=0,v=n;m&lt;v.length;m+=1){var y=v[m],x=e.getTile(y);if(!d||x.patternsLoaded()){var b=x.getBucket(r);if(b){var _=b.programConfigurations.get(r.id),w=t.useProgram(l,_);d&amp;&amp;(t.context.activeTexture.set(h.TEXTURE0),x.imageAtlasTexture.bind(h.LINEAR,h.CLAMP_TO_EDGE),_.updatePaintBuffers(g));var T=p.constantOr(null);if(T&amp;&amp;x.imageAtlas){var k=x.imageAtlas,M=k.patternPositions[T.to.toString()],A=k.patternPositions[T.from.toString()];M&amp;&amp;A&amp;&amp;_.setConstantPatternPositions(M,A)}var S=t.translatePosMatrix(y.posMatrix,x,r.paint.get(&quot;fill-translate&quot;),r.paint.get(&quot;fill-translate-anchor&quot;));if(o){u=b.indexBuffer2,f=b.segments2;var E=[h.drawingBufferWidth,h.drawingBufferHeight];c=&quot;fillOutlinePattern&quot;===l&amp;&amp;d?Sr(S,t,g,x,E):Ar(S,E)}else u=b.indexBuffer,f=b.segments,c=d?Mr(S,t,g,x):kr(S);w.draw(t.context,s,i,t.stencilModeForClipping(y),a,Et.disabled,c,r.id,b.layoutVertexBuffer,u,f,r.paint,t.transform.zoom,_)}}}}function nn(t,e,r,n,i,a,o){for(var s=t.context,l=s.gl,c=r.paint.get(&quot;fill-extrusion-pattern&quot;),u=c.constantOr(1),f=r.getCrossfadeParameters(),h=r.paint.get(&quot;fill-extrusion-opacity&quot;),p=0,d=n;p&lt;d.length;p+=1){var g=d[p],m=e.getTile(g),v=m.getBucket(r);if(v){var y=v.programConfigurations.get(r.id),x=t.useProgram(u?&quot;fillExtrusionPattern&quot;:&quot;fillExtrusion&quot;,y);u&amp;&amp;(t.context.activeTexture.set(l.TEXTURE0),m.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),y.updatePaintBuffers(f));var b=c.constantOr(null);if(b&amp;&amp;m.imageAtlas){var _=m.imageAtlas,w=_.patternPositions[b.to.toString()],T=_.patternPositions[b.from.toString()];w&amp;&amp;T&amp;&amp;y.setConstantPatternPositions(w,T)}var k=t.translatePosMatrix(g.posMatrix,m,r.paint.get(&quot;fill-extrusion-translate&quot;),r.paint.get(&quot;fill-extrusion-translate-anchor&quot;)),M=r.paint.get(&quot;fill-extrusion-vertical-gradient&quot;),A=u?Tr(k,t,M,h,g,f,m):wr(k,t,M,h);x.draw(s,s.gl.TRIANGLES,i,a,o,Et.backCCW,A,r.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,r.paint,t.transform.zoom,y)}}}function an(e,r,n,i,a,o){var s=e.context,l=s.gl,c=r.fbo;if(c){var u=e.useProgram(&quot;hillshade&quot;);s.activeTexture.set(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,c.colorAttachment.get());var f=function(e,r,n){var i=n.paint.get(&quot;hillshade-shadow-color&quot;),a=n.paint.get(&quot;hillshade-highlight-color&quot;),o=n.paint.get(&quot;hillshade-accent-color&quot;),s=n.paint.get(&quot;hillshade-illumination-direction&quot;)*(Math.PI/180);&quot;viewport&quot;===n.paint.get(&quot;hillshade-illumination-anchor&quot;)&amp;&amp;(s-=e.transform.angle);var l,c,u,f=!e.options.moving;return{u_matrix:e.transform.calculatePosMatrix(r.tileID.toUnwrapped(),f),u_image:0,u_latrange:(l=r.tileID,c=Math.pow(2,l.canonical.z),u=l.canonical.y,[new t.MercatorCoordinate(0,u/c).toLngLat().lat,new t.MercatorCoordinate(0,(u+1)/c).toLngLat().lat]),u_light:[n.paint.get(&quot;hillshade-exaggeration&quot;),s],u_shadow:i,u_highlight:a,u_accent:o}}(e,r,n);u.draw(s,l.TRIANGLES,i,a,o,Et.disabled,f,n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}}function on(e,r,n,i,a,o,s){var l=e.context,c=l.gl,u=r.dem;if(u&amp;&amp;u.data){var f=u.dim,h=u.stride,p=u.getPixels();if(l.activeTexture.set(c.TEXTURE1),l.pixelStoreUnpackPremultiplyAlpha.set(!1),r.demTexture=r.demTexture||e.getTileTexture(h),r.demTexture){var d=r.demTexture;d.update(p,{premultiply:!1}),d.bind(c.NEAREST,c.CLAMP_TO_EDGE)}else r.demTexture=new t.Texture(l,p,c.RGBA,{premultiply:!1}),r.demTexture.bind(c.NEAREST,c.CLAMP_TO_EDGE);l.activeTexture.set(c.TEXTURE0);var g=r.fbo;if(!g){var m=new t.Texture(l,{width:f,height:f,data:null},c.RGBA);m.bind(c.LINEAR,c.CLAMP_TO_EDGE),(g=r.fbo=l.createFramebuffer(f,f,!0)).colorAttachment.set(m.texture)}l.bindFramebuffer.set(g.framebuffer),l.viewport.set([0,0,f,f]),e.useProgram(&quot;hillshadePrepare&quot;).draw(l,c.TRIANGLES,a,o,s,Et.disabled,function(e,r,n){var i=r.stride,a=t.create();return t.ortho(a,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(a,a,[0,-t.EXTENT,0]),{u_matrix:a,u_image:1,u_dimension:[i,i],u_zoom:e.overscaledZ,u_maxzoom:n,u_unpack:r.getUnpackVector()}}(r.tileID,u,i),n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),r.needsHillshadePrepare=!1}}function sn(e,r,n,i,a){var o=i.paint.get(&quot;raster-fade-duration&quot;);if(o&gt;0){var s=t.browser.now(),l=(s-e.timeAdded)/o,c=r?(s-r.timeAdded)/o:-1,u=n.getSource(),f=a.coveringZoomLevel({tileSize:u.tileSize,roundZoom:u.roundZoom}),h=!r||Math.abs(r.tileID.overscaledZ-f)&gt;Math.abs(e.tileID.overscaledZ-f),p=h&amp;&amp;e.refreshedUponExpiration?1:t.clamp(h?l:1-c,0,1);return e.refreshedUponExpiration&amp;&amp;l&gt;=1&amp;&amp;(e.refreshedUponExpiration=!1),r?{opacity:1,mix:1-p}:{opacity:p,mix:0}}return{opacity:1,mix:0}}var ln=new t.Color(1,0,0,1),cn=new t.Color(0,1,0,1),un=new t.Color(0,0,1,1),fn=new t.Color(1,0,1,1),hn=new t.Color(0,1,1,1);function pn(t,e,r,n){gn(t,0,e+r/2,t.transform.width,r,n)}function dn(t,e,r,n){gn(t,e-r/2,0,r,t.transform.height,n)}function gn(e,r,n,i,a,o){var s=e.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(r*t.browser.devicePixelRatio,n*t.browser.devicePixelRatio,i*t.browser.devicePixelRatio,a*t.browser.devicePixelRatio),s.clear({color:o}),l.disable(l.SCISSOR_TEST)}function mn(e,r,n){var i=e.context,a=i.gl,o=n.posMatrix,s=e.useProgram(&quot;debug&quot;),l=Mt.disabled,c=At.disabled,u=e.colorModeForRenderPass();i.activeTexture.set(a.TEXTURE0),e.emptyTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE),s.draw(i,a.LINE_STRIP,l,c,u,Et.disabled,Ir(o,t.Color.red),&quot;$debug&quot;,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);var f=r.getTileByID(n.key).latestRawTileData,h=Math.floor((f&amp;&amp;f.byteLength||0)/1024),p=r.getTile(n).tileSize,d=512/Math.min(p,512)*(n.overscaledZ/e.transform.zoom)*.5,g=n.canonical.toString();n.overscaledZ!==n.canonical.z&amp;&amp;(g+=&quot; =&gt; &quot;+n.overscaledZ),function(t,e){t.initDebugOverlayCanvas();var r=t.debugOverlayCanvas,n=t.context.gl,i=t.debugOverlayCanvas.getContext(&quot;2d&quot;);i.clearRect(0,0,r.width,r.height),i.shadowColor=&quot;white&quot;,i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle=&quot;white&quot;,i.textBaseline=&quot;top&quot;,i.font=&quot;bold 36px Open Sans, sans-serif&quot;,i.fillText(e,5,5),i.strokeText(e,5,5),t.debugOverlayTexture.update(r),t.debugOverlayTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}(e,g+&quot; &quot;+h+&quot;kb&quot;),s.draw(i,a.TRIANGLES,l,c,St.alphaBlended,Et.disabled,Ir(o,t.Color.transparent,d),&quot;$debug&quot;,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments)}var vn={symbol:function(e,r,n,i,a){if(&quot;translucent&quot;===e.renderPass){var o=At.disabled,s=e.colorModeForRenderPass();n.layout.get(&quot;text-variable-anchor&quot;)&amp;&amp;function(e,r,n,i,a,o,s){for(var l=r.transform,c=&quot;map&quot;===a,u=&quot;map&quot;===o,f=0,h=e;f&lt;h.length;f+=1){var p=h[f],d=i.getTile(p),g=d.getBucket(n);if(g&amp;&amp;g.text&amp;&amp;g.text.segments.get().length){var m=t.evaluateSizeForZoom(g.textSizeData,l.zoom),v=he(d,1,r.transform.zoom),y=Kt(p.posMatrix,u,c,r.transform,v),x=&quot;none&quot;!==n.layout.get(&quot;icon-text-fit&quot;)&amp;&amp;g.hasIconData();if(m){var b=Math.pow(2,l.zoom-d.tileID.overscaledZ);Qr(g,c,u,s,t.symbolSize,l,y,p.posMatrix,b,m,x)}}}}(i,e,n,r,n.layout.get(&quot;text-rotation-alignment&quot;),n.layout.get(&quot;text-pitch-alignment&quot;),a),0!==n.paint.get(&quot;icon-opacity&quot;).constantOr(1)&amp;&amp;tn(e,r,n,i,!1,n.paint.get(&quot;icon-translate&quot;),n.paint.get(&quot;icon-translate-anchor&quot;),n.layout.get(&quot;icon-rotation-alignment&quot;),n.layout.get(&quot;icon-pitch-alignment&quot;),n.layout.get(&quot;icon-keep-upright&quot;),o,s),0!==n.paint.get(&quot;text-opacity&quot;).constantOr(1)&amp;&amp;tn(e,r,n,i,!0,n.paint.get(&quot;text-translate&quot;),n.paint.get(&quot;text-translate-anchor&quot;),n.layout.get(&quot;text-rotation-alignment&quot;),n.layout.get(&quot;text-pitch-alignment&quot;),n.layout.get(&quot;text-keep-upright&quot;),o,s),r.map.showCollisionBoxes&amp;&amp;(Zr(e,r,n,i,n.paint.get(&quot;text-translate&quot;),n.paint.get(&quot;text-translate-anchor&quot;),!0),Zr(e,r,n,i,n.paint.get(&quot;icon-translate&quot;),n.paint.get(&quot;icon-translate-anchor&quot;),!1))}},circle:function(e,r,n,i){if(&quot;translucent&quot;===e.renderPass){var a=n.paint.get(&quot;circle-opacity&quot;),o=n.paint.get(&quot;circle-stroke-width&quot;),s=n.paint.get(&quot;circle-stroke-opacity&quot;),l=void 0!==n.layout.get(&quot;circle-sort-key&quot;).constantOr(1);if(0!==a.constantOr(1)||0!==o.constantOr(1)&amp;&amp;0!==s.constantOr(1)){for(var c=e.context,u=c.gl,f=e.depthModeForSublayer(0,Mt.ReadOnly),h=At.disabled,p=e.colorModeForRenderPass(),d=[],g=0;g&lt;i.length;g++){var m=i[g],v=r.getTile(m),y=v.getBucket(n);if(y){var x=y.programConfigurations.get(n.id),b={programConfiguration:x,program:e.useProgram(&quot;circle&quot;,x),layoutVertexBuffer:y.layoutVertexBuffer,indexBuffer:y.indexBuffer,uniformValues:Er(e,m,v,n)};if(l)for(var _=0,w=y.segments.get();_&lt;w.length;_+=1){var T=w[_];d.push({segments:new t.SegmentVector([T]),sortKey:T.sortKey,state:b})}else d.push({segments:y.segments,sortKey:0,state:b})}}l&amp;&amp;d.sort((function(t,e){return t.sortKey-e.sortKey}));for(var k=0,M=d;k&lt;M.length;k+=1){var A=M[k],S=A.state;S.program.draw(c,u.TRIANGLES,f,h,p,Et.disabled,S.uniformValues,n.id,S.layoutVertexBuffer,S.indexBuffer,A.segments,n.paint,e.transform.zoom,S.programConfiguration)}}}},heatmap:function(e,r,n,i){if(0!==n.paint.get(&quot;heatmap-opacity&quot;))if(&quot;offscreen&quot;===e.renderPass){var a=e.context,o=a.gl,s=At.disabled,l=new St([o.ONE,o.ONE],t.Color.transparent,[!0,!0,!0,!0]);!function(t,e,r){var n=t.gl;t.activeTexture.set(n.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);var i=r.heatmapFbo;if(i)n.bindTexture(n.TEXTURE_2D,i.colorAttachment.get()),t.bindFramebuffer.set(i.framebuffer);else{var a=n.createTexture();n.bindTexture(n.TEXTURE_2D,a),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),i=r.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4,!1),function(t,e,r,n){var i=t.gl;i.texImage2D(i.TEXTURE_2D,0,i.RGBA,e.width/4,e.height/4,0,i.RGBA,t.extRenderToTextureHalfFloat?t.extTextureHalfFloat.HALF_FLOAT_OES:i.UNSIGNED_BYTE,null),n.colorAttachment.set(r)}(t,e,a,i)}}(a,e,n),a.clear({color:t.Color.transparent});for(var c=0;c&lt;i.length;c++){var u=i[c];if(!r.hasRenderableParent(u)){var f=r.getTile(u),h=f.getBucket(n);if(h){var p=h.programConfigurations.get(n.id);e.useProgram(&quot;heatmap&quot;,p).draw(a,o.TRIANGLES,Mt.disabled,s,l,Et.disabled,zr(u.posMatrix,f,e.transform.zoom,n.paint.get(&quot;heatmap-intensity&quot;)),n.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,n.paint,e.transform.zoom,p)}}}a.viewport.set([0,0,e.width,e.height])}else&quot;translucent&quot;===e.renderPass&amp;&amp;(e.context.setColorMode(e.colorModeForRenderPass()),function(e,r){var n=e.context,i=n.gl,a=r.heatmapFbo;if(a){n.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),n.activeTexture.set(i.TEXTURE1);var o=r.colorRampTexture;o||(o=r.colorRampTexture=new t.Texture(n,r.colorRamp,i.RGBA)),o.bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram(&quot;heatmapTexture&quot;).draw(n,i.TRIANGLES,Mt.disabled,At.disabled,e.colorModeForRenderPass(),Et.disabled,function(e,r,n,i){var a=t.create();t.ortho(a,0,e.width,e.height,0,0,1);var o=e.context.gl;return{u_matrix:a,u_world:[o.drawingBufferWidth,o.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:r.paint.get(&quot;heatmap-opacity&quot;)}}(e,r),r.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,r.paint,e.transform.zoom)}}(e,n))},line:function(e,r,n,i){if(&quot;translucent&quot;===e.renderPass){var a=n.paint.get(&quot;line-opacity&quot;),o=n.paint.get(&quot;line-width&quot;);if(0!==a.constantOr(1)&amp;&amp;0!==o.constantOr(1)){var s=e.depthModeForSublayer(0,Mt.ReadOnly),l=e.colorModeForRenderPass(),c=n.paint.get(&quot;line-dasharray&quot;),u=n.paint.get(&quot;line-pattern&quot;),f=u.constantOr(1),h=n.paint.get(&quot;line-gradient&quot;),p=n.getCrossfadeParameters(),d=f?&quot;linePattern&quot;:c?&quot;lineSDF&quot;:h?&quot;lineGradient&quot;:&quot;line&quot;,g=e.context,m=g.gl,v=!0;if(h){g.activeTexture.set(m.TEXTURE0);var y=n.gradientTexture;if(!n.gradient)return;y||(y=n.gradientTexture=new t.Texture(g,n.gradient,m.RGBA)),y.bind(m.LINEAR,m.CLAMP_TO_EDGE)}for(var x=0,b=i;x&lt;b.length;x+=1){var _=b[x],w=r.getTile(_);if(!f||w.patternsLoaded()){var T=w.getBucket(n);if(T){var k=T.programConfigurations.get(n.id),M=e.context.program.get(),A=e.useProgram(d,k),S=v||A.program!==M,E=u.constantOr(null);if(E&amp;&amp;w.imageAtlas){var C=w.imageAtlas,L=C.patternPositions[E.to.toString()],I=C.patternPositions[E.from.toString()];L&amp;&amp;I&amp;&amp;k.setConstantPatternPositions(L,I)}var P=f?Rr(e,w,n,p):c?Fr(e,w,n,c,p):h?Dr(e,w,n):Or(e,w,n);f?(g.activeTexture.set(m.TEXTURE0),w.imageAtlasTexture.bind(m.LINEAR,m.CLAMP_TO_EDGE),k.updatePaintBuffers(p)):c&amp;&amp;(S||e.lineAtlas.dirty)&amp;&amp;(g.activeTexture.set(m.TEXTURE0),e.lineAtlas.bind(g)),A.draw(g,m.TRIANGLES,s,e.stencilModeForClipping(_),l,Et.disabled,P,n.id,T.layoutVertexBuffer,T.indexBuffer,T.segments,n.paint,e.transform.zoom,k),v=!1}}}}}},fill:function(e,r,n,i){var a=n.paint.get(&quot;fill-color&quot;),o=n.paint.get(&quot;fill-opacity&quot;);if(0!==o.constantOr(1)){var s=e.colorModeForRenderPass(),l=n.paint.get(&quot;fill-pattern&quot;),c=e.opaquePassEnabledForLayer()&amp;&amp;!l.constantOr(1)&amp;&amp;1===a.constantOr(t.Color.transparent).a&amp;&amp;1===o.constantOr(0)?&quot;opaque&quot;:&quot;translucent&quot;;if(e.renderPass===c){var u=e.depthModeForSublayer(1,&quot;opaque&quot;===e.renderPass?Mt.ReadWrite:Mt.ReadOnly);rn(e,r,n,i,u,s,!1)}if(&quot;translucent&quot;===e.renderPass&amp;&amp;n.paint.get(&quot;fill-antialias&quot;)){var f=e.depthModeForSublayer(n.getPaintProperty(&quot;fill-outline-color&quot;)?2:0,Mt.ReadOnly);rn(e,r,n,i,f,s,!0)}}},&quot;fill-extrusion&quot;:function(t,e,r,n){var i=r.paint.get(&quot;fill-extrusion-opacity&quot;);if(0!==i&amp;&amp;&quot;translucent&quot;===t.renderPass){var a=new Mt(t.context.gl.LEQUAL,Mt.ReadWrite,t.depthRangeFor3D);if(1!==i||r.paint.get(&quot;fill-extrusion-pattern&quot;).constantOr(1))nn(t,e,r,n,a,At.disabled,St.disabled),nn(t,e,r,n,a,t.stencilModeFor3D(),t.colorModeForRenderPass());else{var o=t.colorModeForRenderPass();nn(t,e,r,n,a,At.disabled,o)}}},hillshade:function(t,e,r,n){if(&quot;offscreen&quot;===t.renderPass||&quot;translucent&quot;===t.renderPass){for(var i=t.context,a=e.getSource().maxzoom,o=t.depthModeForSublayer(0,Mt.ReadOnly),s=t.colorModeForRenderPass(),l=&quot;translucent&quot;===t.renderPass?t.stencilConfigForOverlap(n):[{},n],c=l[0],u=0,f=l[1];u&lt;f.length;u+=1){var h=f[u],p=e.getTile(h);p.needsHillshadePrepare&amp;&amp;&quot;offscreen&quot;===t.renderPass?on(t,p,r,a,o,At.disabled,s):&quot;translucent&quot;===t.renderPass&amp;&amp;an(t,p,r,o,c[h.overscaledZ],s)}i.viewport.set([0,0,t.width,t.height])}},raster:function(t,e,r,n){if(&quot;translucent&quot;===t.renderPass&amp;&amp;0!==r.paint.get(&quot;raster-opacity&quot;)&amp;&amp;n.length)for(var i=t.context,a=i.gl,o=e.getSource(),s=t.useProgram(&quot;raster&quot;),l=t.colorModeForRenderPass(),c=o instanceof P?[{},n]:t.stencilConfigForOverlap(n),u=c[0],f=c[1],h=f[f.length-1].overscaledZ,p=!t.options.moving,d=0,g=f;d&lt;g.length;d+=1){var m=g[d],v=t.depthModeForSublayer(m.overscaledZ-h,1===r.paint.get(&quot;raster-opacity&quot;)?Mt.ReadWrite:Mt.ReadOnly,a.LESS),y=e.getTile(m),x=t.transform.calculatePosMatrix(m.toUnwrapped(),p);y.registerFadeDuration(r.paint.get(&quot;raster-fade-duration&quot;));var b=e.findLoadedParent(m,0),_=sn(y,b,e,r,t.transform),w=void 0,T=void 0,k=&quot;nearest&quot;===r.paint.get(&quot;raster-resampling&quot;)?a.NEAREST:a.LINEAR;i.activeTexture.set(a.TEXTURE0),y.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),i.activeTexture.set(a.TEXTURE1),b?(b.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),w=Math.pow(2,b.tileID.overscaledZ-y.tileID.overscaledZ),T=[y.tileID.canonical.x*w%1,y.tileID.canonical.y*w%1]):y.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST);var M=jr(x,T||[0,0],w||1,_,r);o instanceof P?s.draw(i,a.TRIANGLES,v,At.disabled,l,Et.disabled,M,r.id,o.boundsBuffer,t.quadTriangleIndexBuffer,o.boundsSegments):s.draw(i,a.TRIANGLES,v,u[m.overscaledZ],l,Et.disabled,M,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}},background:function(t,e,r){var n=r.paint.get(&quot;background-color&quot;),i=r.paint.get(&quot;background-opacity&quot;);if(0!==i){var a=t.context,o=a.gl,s=t.transform,l=s.tileSize,c=r.paint.get(&quot;background-pattern&quot;);if(!t.isPatternMissing(c)){var u=!c&amp;&amp;1===n.a&amp;&amp;1===i&amp;&amp;t.opaquePassEnabledForLayer()?&quot;opaque&quot;:&quot;translucent&quot;;if(t.renderPass===u){var f=At.disabled,h=t.depthModeForSublayer(0,&quot;opaque&quot;===u?Mt.ReadWrite:Mt.ReadOnly),p=t.colorModeForRenderPass(),d=t.useProgram(c?&quot;backgroundPattern&quot;:&quot;background&quot;),g=s.coveringTiles({tileSize:l});c&amp;&amp;(a.activeTexture.set(o.TEXTURE0),t.imageManager.bind(t.context));for(var m=r.getCrossfadeParameters(),v=0,y=g;v&lt;y.length;v+=1){var x=y[v],b=t.transform.calculatePosMatrix(x.toUnwrapped()),_=c?Wr(b,i,t,c,{tileID:x,tileSize:l},m):Yr(b,i,n);d.draw(a,o.TRIANGLES,h,f,p,Et.disabled,_,r.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments)}}}}},debug:function(t,e,r){for(var n=0;n&lt;r.length;n++)mn(t,e,r[n])},custom:function(t,e,r){var n=t.context,i=r.implementation;if(&quot;offscreen&quot;===t.renderPass){var a=i.prerender;a&amp;&amp;(t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),a.call(i,n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState())}else if(&quot;translucent&quot;===t.renderPass){t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),n.setStencilMode(At.disabled);var o=&quot;3d&quot;===i.renderingMode?new Mt(t.context.gl.LEQUAL,Mt.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,Mt.ReadOnly);n.setDepthMode(o),i.render(n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState(),n.bindFramebuffer.set(null)}}},yn=function(t,e){this.context=new Ct(t),this.transform=e,this._tileTextures={},this.setup(),this.numSublayers=Lt.maxUnderzooming+Lt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Be,this.gpuTimers={}};yn.prototype.resize=function(e,r){if(this.width=e*t.browser.devicePixelRatio,this.height=r*t.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var n=0,i=this.style._order;n&lt;i.length;n+=1)this.style._layers[i[n]].resize()},yn.prototype.setup=function(){var e=this.context,r=new t.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(t.EXTENT,0),r.emplaceBack(0,t.EXTENT),r.emplaceBack(t.EXTENT,t.EXTENT),this.tileExtentBuffer=e.createVertexBuffer(r,He.members),this.tileExtentSegments=t.SegmentVector.simpleSegment(0,0,4,2);var n=new t.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(t.EXTENT,0),n.emplaceBack(0,t.EXTENT),n.emplaceBack(t.EXTENT,t.EXTENT),this.debugBuffer=e.createVertexBuffer(n,He.members),this.debugSegments=t.SegmentVector.simpleSegment(0,0,4,5);var i=new t.StructArrayLayout4i8;i.emplaceBack(0,0,0,0),i.emplaceBack(t.EXTENT,0,t.EXTENT,0),i.emplaceBack(0,t.EXTENT,0,t.EXTENT),i.emplaceBack(t.EXTENT,t.EXTENT,t.EXTENT,t.EXTENT),this.rasterBoundsBuffer=e.createVertexBuffer(i,I.members),this.rasterBoundsSegments=t.SegmentVector.simpleSegment(0,0,4,2);var a=new t.StructArrayLayout2i4;a.emplaceBack(0,0),a.emplaceBack(1,0),a.emplaceBack(0,1),a.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(a,He.members),this.viewportSegments=t.SegmentVector.simpleSegment(0,0,4,2);var o=new t.StructArrayLayout1ui2;o.emplaceBack(0),o.emplaceBack(1),o.emplaceBack(3),o.emplaceBack(2),o.emplaceBack(0),this.tileBorderIndexBuffer=e.createIndexBuffer(o);var s=new t.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(s),this.emptyTexture=new t.Texture(e,{width:1,height:1,data:new Uint8Array([0,0,0,0])},e.gl.RGBA);var l=this.context.gl;this.stencilClearMode=new At({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)},yn.prototype.clearStencil=function(){var e=this.context,r=e.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var n=t.create();t.ortho(n,0,this.width,this.height,0,0,1),t.scale(n,n,[r.drawingBufferWidth,r.drawingBufferHeight,0]),this.useProgram(&quot;clippingMask&quot;).draw(e,r.TRIANGLES,Mt.disabled,this.stencilClearMode,St.disabled,Et.disabled,Pr(n),&quot;$clipping&quot;,this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},yn.prototype._renderTileClippingMasks=function(t,e){if(this.currentStencilSource!==t.source&amp;&amp;t.isTileClipped()&amp;&amp;e&amp;&amp;e.length){this.currentStencilSource=t.source;var r=this.context,n=r.gl;this.nextStencilID+e.length&gt;256&amp;&amp;this.clearStencil(),r.setColorMode(St.disabled),r.setDepthMode(Mt.disabled);var i=this.useProgram(&quot;clippingMask&quot;);this._tileClippingMaskIDs={};for(var a=0,o=e;a&lt;o.length;a+=1){var s=o[a],l=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;i.draw(r,n.TRIANGLES,Mt.disabled,new At({func:n.ALWAYS,mask:0},l,255,n.KEEP,n.KEEP,n.REPLACE),St.disabled,Et.disabled,Pr(s.posMatrix),&quot;$clipping&quot;,this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},yn.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1&gt;256&amp;&amp;this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new At({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},yn.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new At({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},yn.prototype.stencilConfigForOverlap=function(t){var e,r=this.context.gl,n=t.sort((function(t,e){return e.overscaledZ-t.overscaledZ})),i=n[n.length-1].overscaledZ,a=n[0].overscaledZ-i+1;if(a&gt;1){this.currentStencilSource=void 0,this.nextStencilID+a&gt;256&amp;&amp;this.clearStencil();for(var o={},s=0;s&lt;a;s++)o[s+i]=new At({func:r.GEQUAL,mask:255},s+this.nextStencilID,255,r.KEEP,r.KEEP,r.REPLACE);return this.nextStencilID+=a,[o,n]}return[(e={},e[i]=At.disabled,e),n]},yn.prototype.colorModeForRenderPass=function(){var e=this.context.gl;return this._showOverdrawInspector?new St([e.CONSTANT_COLOR,e.ONE],new t.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):&quot;opaque&quot;===this.renderPass?St.unblended:St.alphaBlended},yn.prototype.depthModeForSublayer=function(t,e,r){if(!this.opaquePassEnabledForLayer())return Mt.disabled;var n=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new Mt(r||this.context.gl.LEQUAL,e,[n,n])},yn.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer&lt;this.opaquePassCutoff},yn.prototype.render=function(e,r){var n=this;this.style=e,this.options=r,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(t.browser.now()),this.imageManager.beginFrame();var i=this.style._order,a=this.style.sourceCaches;for(var o in a){var s=a[o];s.used&amp;&amp;s.prepare(this.context)}var l,c,u={},f={},h={};for(var p in a){var d=a[p];u[p]=d.getVisibleCoordinates(),f[p]=u[p].slice().reverse(),h[p]=d.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(var g=0;g&lt;i.length;g++)if(this.style._layers[i[g]].is3D()){this.opaquePassCutoff=g;break}this.renderPass=&quot;offscreen&quot;;for(var m=0,v=i;m&lt;v.length;m+=1){var y=this.style._layers[v[m]];if(y.hasOffscreenPass()&amp;&amp;!y.isHidden(this.transform.zoom)){var x=f[y.source];(&quot;custom&quot;===y.type||x.length)&amp;&amp;this.renderLayer(this,a[y.source],y,x)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:r.showOverdrawInspector?t.Color.black:t.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=r.showOverdrawInspector,this.depthRangeFor3D=[0,1-(e._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass=&quot;opaque&quot;,this.currentLayer=i.length-1;this.currentLayer&gt;=0;this.currentLayer--){var b=this.style._layers[i[this.currentLayer]],_=a[b.source],w=u[b.source];this._renderTileClippingMasks(b,w),this.renderLayer(this,_,b,w)}for(this.renderPass=&quot;translucent&quot;,this.currentLayer=0;this.currentLayer&lt;i.length;this.currentLayer++){var T=this.style._layers[i[this.currentLayer]],k=a[T.source],M=(&quot;symbol&quot;===T.type?h:f)[T.source];this._renderTileClippingMasks(T,u[T.source]),this.renderLayer(this,k,T,M)}this.options.showTileBoundaries&amp;&amp;(t.values(this.style._layers).forEach((function(t){t.source&amp;&amp;!t.isHidden(n.transform.zoom)&amp;&amp;(t.source!==(c&amp;&amp;c.id)&amp;&amp;(c=n.style.sourceCaches[t.source]),(!l||l.getSource().maxzoom&lt;c.getSource().maxzoom)&amp;&amp;(l=c))})),l&amp;&amp;vn.debug(this,l,l.getVisibleCoordinates())),this.options.showPadding&amp;&amp;function(t){var e=t.transform.padding;pn(t,t.transform.height-(e.top||0),3,ln),pn(t,e.bottom||0,3,cn),dn(t,e.left||0,3,un),dn(t,t.transform.width-(e.right||0),3,fn);var r=t.transform.centerPoint;!function(t,e,r,n){gn(t,e-1,r-10,2,20,n),gn(t,e-10,r-1,20,2,n)}(t,r.x,t.transform.height-r.y,hn)}(this),this.context.setDefault()},yn.prototype.renderLayer=function(t,e,r,n){r.isHidden(this.transform.zoom)||(&quot;background&quot;===r.type||&quot;custom&quot;===r.type||n.length)&amp;&amp;(this.id=r.id,this.gpuTimingStart(r),vn[r.type](t,e,r,n,this.style.placement.variableOffsets),this.gpuTimingEnd())},yn.prototype.gpuTimingStart=function(t){if(this.options.gpuTiming){var e=this.context.extTimerQuery,r=this.gpuTimers[t.id];r||(r=this.gpuTimers[t.id]={calls:0,cpuTime:0,query:e.createQueryEXT()}),r.calls++,e.beginQueryEXT(e.TIME_ELAPSED_EXT,r.query)}},yn.prototype.gpuTimingEnd=function(){if(this.options.gpuTiming){var t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}},yn.prototype.collectGpuTimers=function(){var t=this.gpuTimers;return this.gpuTimers={},t},yn.prototype.queryGpuTimers=function(t){var e={};for(var r in t){var n=t[r],i=this.context.extTimerQuery,a=i.getQueryObjectEXT(n.query,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(n.query),e[r]=a}return e},yn.prototype.translatePosMatrix=function(e,r,n,i,a){if(!n[0]&amp;&amp;!n[1])return e;var o=a?&quot;map&quot;===i?this.transform.angle:0:&quot;viewport&quot;===i?-this.transform.angle:0;if(o){var s=Math.sin(o),l=Math.cos(o);n=[n[0]*l-n[1]*s,n[0]*s+n[1]*l]}var c=[a?n[0]:he(r,n[0],this.transform.zoom),a?n[1]:he(r,n[1],this.transform.zoom),0],u=new Float32Array(16);return t.translate(u,e,c),u},yn.prototype.saveTileTexture=function(t){var e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]},yn.prototype.getTileTexture=function(t){var e=this._tileTextures[t];return e&amp;&amp;e.length&gt;0?e.pop():null},yn.prototype.isPatternMissing=function(t){if(!t)return!1;if(!t.from||!t.to)return!0;var e=this.imageManager.getPattern(t.from.toString()),r=this.imageManager.getPattern(t.to.toString());return!e||!r},yn.prototype.useProgram=function(t,e){this.cache=this.cache||{};var r=&quot;&quot;+t+(e?e.cacheKey:&quot;&quot;)+(this._showOverdrawInspector?&quot;/overdraw&quot;:&quot;&quot;);return this.cache[r]||(this.cache[r]=new br(this.context,yr[t],e,Xr[t],this._showOverdrawInspector)),this.cache[r]},yn.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},yn.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)},yn.prototype.initDebugOverlayCanvas=function(){null==this.debugOverlayCanvas&amp;&amp;(this.debugOverlayCanvas=t.window.document.createElement(&quot;canvas&quot;),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},yn.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&amp;&amp;this.debugOverlayTexture.destroy()};var xn=function(t,e){this.points=t,this.planes=e};xn.fromInvProjectionMatrix=function(e,r,n){var i=Math.pow(2,n),a=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((function(r){return t.transformMat4([],r,e)})).map((function(e){return t.scale$1([],e,1/e[3]/r*i)})),o=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(e){var r=t.sub([],a[e[0]],a[e[1]]),n=t.sub([],a[e[2]],a[e[1]]),i=t.normalize([],t.cross([],r,n)),o=-t.dot(i,a[e[1]]);return i.concat(o)}));return new xn(a,o)};var bn=function(e,r){this.min=e,this.max=r,this.center=t.scale$2([],t.add([],this.min,this.max),.5)};bn.prototype.quadrant=function(e){for(var r=[e%2==0,e&lt;2],n=t.clone$2(this.min),i=t.clone$2(this.max),a=0;a&lt;r.length;a++)n[a]=r[a]?this.min[a]:this.center[a],i[a]=r[a]?this.center[a]:this.max[a];return i[2]=this.max[2],new bn(n,i)},bn.prototype.distanceX=function(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]},bn.prototype.distanceY=function(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]},bn.prototype.intersects=function(e){for(var r=[[this.min[0],this.min[1],0,1],[this.max[0],this.min[1],0,1],[this.max[0],this.max[1],0,1],[this.min[0],this.max[1],0,1]],n=!0,i=0;i&lt;e.planes.length;i++){for(var a=e.planes[i],o=0,s=0;s&lt;r.length;s++)o+=t.dot$1(a,r[s])&gt;=0;if(0===o)return 0;o!==r.length&amp;&amp;(n=!1)}if(n)return 2;for(var l=0;l&lt;3;l++){for(var c=Number.MAX_VALUE,u=-Number.MAX_VALUE,f=0;f&lt;e.points.length;f++){var h=e.points[f][l]-this.min[l];c=Math.min(c,h),u=Math.max(u,h)}if(u&lt;0||c&gt;this.max[l]-this.min[l])return 0}return 1};var _n=function(t,e,r,n){if(void 0===t&amp;&amp;(t=0),void 0===e&amp;&amp;(e=0),void 0===r&amp;&amp;(r=0),void 0===n&amp;&amp;(n=0),isNaN(t)||t&lt;0||isNaN(e)||e&lt;0||isNaN(r)||r&lt;0||isNaN(n)||n&lt;0)throw new Error(&quot;Invalid value for edge-insets, top, bottom, left and right must all be numbers&quot;);this.top=t,this.bottom=e,this.left=r,this.right=n};_n.prototype.interpolate=function(e,r,n){return null!=r.top&amp;&amp;null!=e.top&amp;&amp;(this.top=t.number(e.top,r.top,n)),null!=r.bottom&amp;&amp;null!=e.bottom&amp;&amp;(this.bottom=t.number(e.bottom,r.bottom,n)),null!=r.left&amp;&amp;null!=e.left&amp;&amp;(this.left=t.number(e.left,r.left,n)),null!=r.right&amp;&amp;null!=e.right&amp;&amp;(this.right=t.number(e.right,r.right,n)),this},_n.prototype.getCenter=function(e,r){var n=t.clamp((this.left+e-this.right)/2,0,e),i=t.clamp((this.top+r-this.bottom)/2,0,r);return new t.Point(n,i)},_n.prototype.equals=function(t){return this.top===t.top&amp;&amp;this.bottom===t.bottom&amp;&amp;this.left===t.left&amp;&amp;this.right===t.right},_n.prototype.clone=function(){return new _n(this.top,this.bottom,this.left,this.right)},_n.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var wn=function(e,r,n,i,a){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===a||a,this._minZoom=e||0,this._maxZoom=r||22,this._minPitch=null==n?0:n,this._maxPitch=null==i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new _n,this._posMatrixCache={},this._alignedPosMatrixCache={}},Tn={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};wn.prototype.clone=function(){var t=new wn(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._calcMatrices(),t},Tn.minZoom.get=function(){return this._minZoom},Tn.minZoom.set=function(t){this._minZoom!==t&amp;&amp;(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Tn.maxZoom.get=function(){return this._maxZoom},Tn.maxZoom.set=function(t){this._maxZoom!==t&amp;&amp;(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Tn.minPitch.get=function(){return this._minPitch},Tn.minPitch.set=function(t){this._minPitch!==t&amp;&amp;(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},Tn.maxPitch.get=function(){return this._maxPitch},Tn.maxPitch.set=function(t){this._maxPitch!==t&amp;&amp;(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},Tn.renderWorldCopies.get=function(){return this._renderWorldCopies},Tn.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&amp;&amp;(t=!1),this._renderWorldCopies=t},Tn.worldSize.get=function(){return this.tileSize*this.scale},Tn.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Tn.size.get=function(){return new t.Point(this.width,this.height)},Tn.bearing.get=function(){return-this.angle/Math.PI*180},Tn.bearing.set=function(e){var r=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==r&amp;&amp;(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Tn.pitch.get=function(){return this._pitch/Math.PI*180},Tn.pitch.set=function(e){var r=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==r&amp;&amp;(this._unmodified=!1,this._pitch=r,this._calcMatrices())},Tn.fov.get=function(){return this._fov/Math.PI*180},Tn.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&amp;&amp;(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Tn.zoom.get=function(){return this._zoom},Tn.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&amp;&amp;(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Tn.center.get=function(){return this._center},Tn.center.set=function(t){t.lat===this._center.lat&amp;&amp;t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Tn.padding.get=function(){return this._edgeInsets.toJSON()},Tn.padding.set=function(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())},Tn.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},wn.prototype.isPaddingEqual=function(t){return this._edgeInsets.equals(t)},wn.prototype.interpolatePadding=function(t,e,r){this._unmodified=!1,this._edgeInsets.interpolate(t,e,r),this._constrain(),this._calcMatrices()},wn.prototype.coveringZoomLevel=function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)},wn.prototype.getVisibleUnwrappedCoordinates=function(e){var r=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var n=this.pointCoordinate(new t.Point(0,0)),i=this.pointCoordinate(new t.Point(this.width,0)),a=this.pointCoordinate(new t.Point(this.width,this.height)),o=this.pointCoordinate(new t.Point(0,this.height)),s=Math.floor(Math.min(n.x,i.x,a.x,o.x)),l=Math.floor(Math.max(n.x,i.x,a.x,o.x)),c=s-1;c&lt;=l+1;c++)0!==c&amp;&amp;r.push(new t.UnwrappedTileID(c,e));return r},wn.prototype.coveringTiles=function(e){var r=this.coveringZoomLevel(e),n=r;if(void 0!==e.minzoom&amp;&amp;r&lt;e.minzoom)return[];void 0!==e.maxzoom&amp;&amp;r&gt;e.maxzoom&amp;&amp;(r=e.maxzoom);var i=t.MercatorCoordinate.fromLngLat(this.center),a=Math.pow(2,r),o=[a*i.x,a*i.y,0],s=xn.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,r),l=e.minzoom||0;this.pitch&lt;=60&amp;&amp;this._edgeInsets.top&lt;.1&amp;&amp;(l=r);var c=function(t){return{aabb:new bn([t*a,0,0],[(t+1)*a,a,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}},u=[],f=[],h=r,p=e.reparseOverscaled?n:r;if(this._renderWorldCopies)for(var d=1;d&lt;=3;d++)u.push(c(-d)),u.push(c(d));for(u.push(c(0));u.length&gt;0;){var g=u.pop(),m=g.x,v=g.y,y=g.fullyVisible;if(!y){var x=g.aabb.intersects(s);if(0===x)continue;y=2===x}var b=g.aabb.distanceX(o),_=g.aabb.distanceY(o),w=Math.max(Math.abs(b),Math.abs(_));if(g.zoom===h||w&gt;3+(1&lt;&lt;h-g.zoom)-2&amp;&amp;g.zoom&gt;=l)f.push({tileID:new t.OverscaledTileID(g.zoom===h?p:g.zoom,g.wrap,g.zoom,m,v),distanceSq:t.sqrLen([o[0]-.5-m,o[1]-.5-v])});else for(var T=0;T&lt;4;T++){var k=(m&lt;&lt;1)+T%2,M=(v&lt;&lt;1)+(T&gt;&gt;1);u.push({aabb:g.aabb.quadrant(T),zoom:g.zoom+1,x:k,y:M,wrap:g.wrap,fullyVisible:y})}}return f.sort((function(t,e){return t.distanceSq-e.distanceSq})).map((function(t){return t.tileID}))},wn.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Tn.unmodified.get=function(){return this._unmodified},wn.prototype.zoomScale=function(t){return Math.pow(2,t)},wn.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},wn.prototype.project=function(e){var r=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(r)*this.worldSize)},wn.prototype.unproject=function(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()},Tn.point.get=function(){return this.project(this.center)},wn.prototype.setLocationAtPoint=function(e,r){var n=this.pointCoordinate(r),i=this.pointCoordinate(this.centerPoint),a=this.locationCoordinate(e),o=new t.MercatorCoordinate(a.x-(n.x-i.x),a.y-(n.y-i.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&amp;&amp;(this.center=this.center.wrap())},wn.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},wn.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},wn.prototype.locationCoordinate=function(e){return t.MercatorCoordinate.fromLngLat(e)},wn.prototype.coordinateLocation=function(t){return t.toLngLat()},wn.prototype.pointCoordinate=function(e){var r=[e.x,e.y,0,1],n=[e.x,e.y,1,1];t.transformMat4(r,r,this.pixelMatrixInverse),t.transformMat4(n,n,this.pixelMatrixInverse);var i=r[3],a=n[3],o=r[1]/i,s=n[1]/a,l=r[2]/i,c=n[2]/a,u=l===c?0:(0-l)/(c-l);return new t.MercatorCoordinate(t.number(r[0]/i,n[0]/a,u)/this.worldSize,t.number(o,s,u)/this.worldSize)},wn.prototype.coordinatePoint=function(e){var r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix),new t.Point(r[0]/r[3],r[1]/r[3])},wn.prototype.getBounds=function(){return(new t.LngLatBounds).extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},wn.prototype.getMaxBounds=function(){return this.latRange&amp;&amp;2===this.latRange.length&amp;&amp;this.lngRange&amp;&amp;2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},wn.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},wn.prototype.calculatePosMatrix=function(e,r){void 0===r&amp;&amp;(r=!1);var n=e.key,i=r?this._alignedPosMatrixCache:this._posMatrixCache;if(i[n])return i[n];var a=e.canonical,o=this.worldSize/this.zoomScale(a.z),s=a.x+Math.pow(2,a.z)*e.wrap,l=t.identity(new Float64Array(16));return t.translate(l,l,[s*o,a.y*o,0]),t.scale(l,l,[o/t.EXTENT,o/t.EXTENT,1]),t.multiply(l,r?this.alignedProjMatrix:this.projMatrix,l),i[n]=new Float32Array(l),i[n]},wn.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},wn.prototype._constrain=function(){if(this.center&amp;&amp;this.width&amp;&amp;this.height&amp;&amp;!this._constraining){this._constraining=!0;var e,r,n,i,a=-90,o=90,s=-180,l=180,c=this.size,u=this._unmodified;if(this.latRange){var f=this.latRange;a=t.mercatorYfromLat(f[1])*this.worldSize,e=(o=t.mercatorYfromLat(f[0])*this.worldSize)-a&lt;c.y?c.y/(o-a):0}if(this.lngRange){var h=this.lngRange;s=t.mercatorXfromLng(h[0])*this.worldSize,r=(l=t.mercatorXfromLng(h[1])*this.worldSize)-s&lt;c.x?c.x/(l-s):0}var p=this.point,d=Math.max(r||0,e||0);if(d)return this.center=this.unproject(new t.Point(r?(l+s)/2:p.x,e?(o+a)/2:p.y)),this.zoom+=this.scaleZoom(d),this._unmodified=u,void(this._constraining=!1);if(this.latRange){var g=p.y,m=c.y/2;g-m&lt;a&amp;&amp;(i=a+m),g+m&gt;o&amp;&amp;(i=o-m)}if(this.lngRange){var v=p.x,y=c.x/2;v-y&lt;s&amp;&amp;(n=s+y),v+y&gt;l&amp;&amp;(n=l-y)}void 0===n&amp;&amp;void 0===i||(this.center=this.unproject(new t.Point(void 0!==n?n:p.x,void 0!==i?i:p.y))),this._unmodified=u,this._constraining=!1}},wn.prototype._calcMatrices=function(){if(this.height){var e=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var r=Math.PI/2+this._pitch,n=this._fov*(.5+e.y/this.height),i=Math.sin(n)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-r-n,.01,Math.PI-.01)),a=this.point,o=a.x,s=a.y,l=1.01*(Math.cos(Math.PI/2-this._pitch)*i+this.cameraToCenterDistance),c=this.height/50,u=new Float64Array(16);t.perspective(u,this._fov,this.width/this.height,c,l),u[8]=2*-e.x/this.width,u[9]=2*e.y/this.height,t.scale(u,u,[1,-1,1]),t.translate(u,u,[0,0,-this.cameraToCenterDistance]),t.rotateX(u,u,this._pitch),t.rotateZ(u,u,this.angle),t.translate(u,u,[-o,-s,0]),this.mercatorMatrix=t.scale([],u,[this.worldSize,this.worldSize,this.worldSize]),t.scale(u,u,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=u,this.invProjMatrix=t.invert([],this.projMatrix);var f=this.width%2/2,h=this.height%2/2,p=Math.cos(this.angle),d=Math.sin(this.angle),g=o-Math.round(o)+p*f+d*h,m=s-Math.round(s)+p*h+d*f,v=new Float64Array(u);if(t.translate(v,v,[g&gt;.5?g-1:g,m&gt;.5?m-1:m,0]),this.alignedProjMatrix=v,u=t.create(),t.scale(u,u,[this.width/2,-this.height/2,1]),t.translate(u,u,[1,-1,0]),this.labelPlaneMatrix=u,u=t.create(),t.scale(u,u,[1,-1,1]),t.translate(u,u,[-1,-1,0]),t.scale(u,u,[2/this.width,2/this.height,1]),this.glCoordMatrix=u,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(u=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error(&quot;failed to invert matrix&quot;);this.pixelMatrixInverse=u,this._posMatrixCache={},this._alignedPosMatrixCache={}}},wn.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)),r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance},wn.prototype.getCameraPoint=function(){var e=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,e))},wn.prototype.getCameraQueryGeometry=function(e){var r=this.getCameraPoint();if(1===e.length)return[e[0],r];for(var n=r.x,i=r.y,a=r.x,o=r.y,s=0,l=e;s&lt;l.length;s+=1){var c=l[s];n=Math.min(n,c.x),i=Math.min(i,c.y),a=Math.max(a,c.x),o=Math.max(o,c.y)}return[new t.Point(n,i),new t.Point(a,i),new t.Point(a,o),new t.Point(n,o),new t.Point(n,i)]},Object.defineProperties(wn.prototype,Tn);var kn=function(e){var r,n,i,a;this._hashName=e&amp;&amp;encodeURIComponent(e),t.bindAll([&quot;_getCurrentHash&quot;,&quot;_onHashChange&quot;,&quot;_updateHash&quot;],this),this._updateHash=(r=this._updateHashUnthrottled.bind(this),n=!1,i=null,a=function(){i=null,n&amp;&amp;(r(),i=setTimeout(a,300),n=!1)},function(){return n=!0,i||a(),i})};kn.prototype.addTo=function(e){return this._map=e,t.window.addEventListener(&quot;hashchange&quot;,this._onHashChange,!1),this._map.on(&quot;moveend&quot;,this._updateHash),this},kn.prototype.remove=function(){return t.window.removeEventListener(&quot;hashchange&quot;,this._onHashChange,!1),this._map.off(&quot;moveend&quot;,this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},kn.prototype.getHashString=function(e){var r=this._map.getCenter(),n=Math.round(100*this._map.getZoom())/100,i=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),a=Math.pow(10,i),o=Math.round(r.lng*a)/a,s=Math.round(r.lat*a)/a,l=this._map.getBearing(),c=this._map.getPitch(),u=&quot;&quot;;if(u+=e?&quot;/&quot;+o+&quot;/&quot;+s+&quot;/&quot;+n:n+&quot;/&quot;+s+&quot;/&quot;+o,(l||c)&amp;&amp;(u+=&quot;/&quot;+Math.round(10*l)/10),c&amp;&amp;(u+=&quot;/&quot;+Math.round(c)),this._hashName){var f=this._hashName,h=!1,p=t.window.location.hash.slice(1).split(&quot;&amp;&quot;).map((function(t){var e=t.split(&quot;=&quot;)[0];return e===f?(h=!0,e+&quot;=&quot;+u):t})).filter((function(t){return t}));return h||p.push(f+&quot;=&quot;+u),&quot;#&quot;+p.join(&quot;&amp;&quot;)}return&quot;#&quot;+u},kn.prototype._getCurrentHash=function(){var e,r=this,n=t.window.location.hash.replace(&quot;#&quot;,&quot;&quot;);return this._hashName?(n.split(&quot;&amp;&quot;).map((function(t){return t.split(&quot;=&quot;)})).forEach((function(t){t[0]===r._hashName&amp;&amp;(e=t)})),(e&amp;&amp;e[1]||&quot;&quot;).split(&quot;/&quot;)):n.split(&quot;/&quot;)},kn.prototype._onHashChange=function(){var t=this._getCurrentHash();if(t.length&gt;=3&amp;&amp;!t.some((function(t){return isNaN(t)}))){var e=this._map.dragRotate.isEnabled()&amp;&amp;this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},kn.prototype._updateHashUnthrottled=function(){var e=this.getHashString();try{t.window.history.replaceState(t.window.history.state,&quot;&quot;,e)}catch(t){}};var Mn={linearity:.3,easing:t.bezier(0,0,.3,1)},An=t.extend({deceleration:2500,maxSpeed:1400},Mn),Sn=t.extend({deceleration:20,maxSpeed:1400},Mn),En=t.extend({deceleration:1e3,maxSpeed:360},Mn),Cn=t.extend({deceleration:1e3,maxSpeed:90},Mn),Ln=function(t){this._map=t,this.clear()};function In(t,e){(!t.duration||t.duration&lt;e.duration)&amp;&amp;(t.duration=e.duration,t.easing=e.easing)}function Pn(e,r,n){var i=n.maxSpeed,a=n.linearity,o=n.deceleration,s=t.clamp(e*a/(r/1e3),-i,i),l=Math.abs(s)/(o*a);return{easing:n.easing,duration:1e3*l,amount:s*(l/2)}}Ln.prototype.clear=function(){this._inertiaBuffer=[]},Ln.prototype.record=function(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:t.browser.now(),settings:e})},Ln.prototype._drainInertiaBuffer=function(){for(var e=this._inertiaBuffer,r=t.browser.now();e.length&gt;0&amp;&amp;r-e[0].time&gt;160;)e.shift()},Ln.prototype._onMoveEnd=function(e){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length&lt;2)){for(var r={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0},n=0,i=this._inertiaBuffer;n&lt;i.length;n+=1){var a=i[n].settings;r.zoom+=a.zoomDelta||0,r.bearing+=a.bearingDelta||0,r.pitch+=a.pitchDelta||0,a.panDelta&amp;&amp;r.pan._add(a.panDelta),a.around&amp;&amp;(r.around=a.around),a.pinchAround&amp;&amp;(r.pinchAround=a.pinchAround)}var o=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,s={};if(r.pan.mag()){var l=Pn(r.pan.mag(),o,t.extend({},An,e||{}));s.offset=r.pan.mult(l.amount/r.pan.mag()),s.center=this._map.transform.center,In(s,l)}if(r.zoom){var c=Pn(r.zoom,o,Sn);s.zoom=this._map.transform.zoom+c.amount,In(s,c)}if(r.bearing){var u=Pn(r.bearing,o,En);s.bearing=this._map.transform.bearing+t.clamp(u.amount,-179,179),In(s,u)}if(r.pitch){var f=Pn(r.pitch,o,Cn);s.pitch=this._map.transform.pitch+f.amount,In(s,f)}if(s.zoom||s.bearing){var h=void 0===r.pinchAround?r.around:r.pinchAround;s.around=h?this._map.unproject(h):this._map.getCenter()}return this.clear(),t.extend(s,{noMoveStart:!0})}};var zn=function(e){function n(n,i,a,o){void 0===o&amp;&amp;(o={});var s=r.mousePos(i.getCanvasContainer(),a),l=i.unproject(s);e.call(this,n,t.extend({point:s,lngLat:l,originalEvent:a},o)),this._defaultPrevented=!1,this.target=i}e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),On=function(e){function n(n,i,a){var o=&quot;touchend&quot;===n?a.changedTouches:a.touches,s=r.touchPos(i.getCanvasContainer(),o),l=s.map((function(t){return i.unproject(t)})),c=s.reduce((function(t,e,r,n){return t.add(e.div(n.length))}),new t.Point(0,0)),u=i.unproject(c);e.call(this,n,{points:s,point:c,lngLats:l,lngLat:u,originalEvent:a}),this._defaultPrevented=!1}e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),Dn=function(t){function e(e,r,n){t.call(this,e,{originalEvent:n}),this._defaultPrevented=!1}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={defaultPrevented:{configurable:!0}};return e.prototype.preventDefault=function(){this._defaultPrevented=!0},r.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(e.prototype,r),e}(t.Event),Rn=function(t,e){this._map=t,this._clickTolerance=e.clickTolerance};Rn.prototype.reset=function(){delete this._mousedownPos},Rn.prototype.wheel=function(t){return this._firePreventable(new Dn(t.type,this._map,t))},Rn.prototype.mousedown=function(t,e){return this._mousedownPos=e,this._firePreventable(new zn(t.type,this._map,t))},Rn.prototype.mouseup=function(t){this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.click=function(t,e){this._mousedownPos&amp;&amp;this._mousedownPos.dist(e)&gt;=this._clickTolerance||this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.dblclick=function(t){return this._firePreventable(new zn(t.type,this._map,t))},Rn.prototype.mouseover=function(t){this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.mouseout=function(t){this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.touchstart=function(t){return this._firePreventable(new On(t.type,this._map,t))},Rn.prototype.touchmove=function(t){this._map.fire(new On(t.type,this._map,t))},Rn.prototype.touchend=function(t){this._map.fire(new On(t.type,this._map,t))},Rn.prototype.touchcancel=function(t){this._map.fire(new On(t.type,this._map,t))},Rn.prototype._firePreventable=function(t){if(this._map.fire(t),t.defaultPrevented)return{}},Rn.prototype.isEnabled=function(){return!0},Rn.prototype.isActive=function(){return!1},Rn.prototype.enable=function(){},Rn.prototype.disable=function(){};var Fn=function(t){this._map=t};Fn.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Fn.prototype.mousemove=function(t){this._map.fire(new zn(t.type,this._map,t))},Fn.prototype.mousedown=function(){this._delayContextMenu=!0},Fn.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&amp;&amp;(this._map.fire(new zn(&quot;contextmenu&quot;,this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Fn.prototype.contextmenu=function(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new zn(t.type,this._map,t)),this._map.listens(&quot;contextmenu&quot;)&amp;&amp;t.preventDefault()},Fn.prototype.isEnabled=function(){return!0},Fn.prototype.isActive=function(){return!1},Fn.prototype.enable=function(){},Fn.prototype.disable=function(){};var Bn=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1};function Nn(t,e){for(var r={},n=0;n&lt;t.length;n++)r[t[n].identifier]=e[n];return r}Bn.prototype.isEnabled=function(){return!!this._enabled},Bn.prototype.isActive=function(){return!!this._active},Bn.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Bn.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},Bn.prototype.mousedown=function(t,e){this.isEnabled()&amp;&amp;t.shiftKey&amp;&amp;0===t.button&amp;&amp;(r.disableDrag(),this._startPos=this._lastPos=e,this._active=!0)},Bn.prototype.mousemoveWindow=function(t,e){if(this._active){var n=e;if(!(this._lastPos.equals(n)||!this._box&amp;&amp;n.dist(this._startPos)&lt;this._clickTolerance)){var i=this._startPos;this._lastPos=n,this._box||(this._box=r.create(&quot;div&quot;,&quot;mapboxgl-boxzoom&quot;,this._container),this._container.classList.add(&quot;mapboxgl-crosshair&quot;),this._fireEvent(&quot;boxzoomstart&quot;,t));var a=Math.min(i.x,n.x),o=Math.max(i.x,n.x),s=Math.min(i.y,n.y),l=Math.max(i.y,n.y);r.setTransform(this._box,&quot;translate(&quot;+a+&quot;px,&quot;+s+&quot;px)&quot;),this._box.style.width=o-a+&quot;px&quot;,this._box.style.height=l-s+&quot;px&quot;}}},Bn.prototype.mouseupWindow=function(e,n){var i=this;if(this._active&amp;&amp;0===e.button){var a=this._startPos,o=n;if(this.reset(),r.suppressClick(),a.x!==o.x||a.y!==o.y)return this._map.fire(new t.Event(&quot;boxzoomend&quot;,{originalEvent:e})),{cameraAnimation:function(t){return t.fitScreenCoordinates(a,o,i._map.getBearing(),{linear:!0})}};this._fireEvent(&quot;boxzoomcancel&quot;,e)}},Bn.prototype.keydown=function(t){this._active&amp;&amp;27===t.keyCode&amp;&amp;(this.reset(),this._fireEvent(&quot;boxzoomcancel&quot;,t))},Bn.prototype.reset=function(){this._active=!1,this._container.classList.remove(&quot;mapboxgl-crosshair&quot;),this._box&amp;&amp;(r.remove(this._box),this._box=null),r.enableDrag(),delete this._startPos,delete this._lastPos},Bn.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,{originalEvent:r}))};var jn=function(t){this.reset(),this.numTouches=t.numTouches};jn.prototype.reset=function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1},jn.prototype.touchstart=function(e,r,n){(this.centroid||n.length&gt;this.numTouches)&amp;&amp;(this.aborted=!0),this.aborted||(void 0===this.startTime&amp;&amp;(this.startTime=e.timeStamp),n.length===this.numTouches&amp;&amp;(this.centroid=function(e){for(var r=new t.Point(0,0),n=0,i=e;n&lt;i.length;n+=1)r._add(i[n]);return r.div(e.length)}(r),this.touches=Nn(n,r)))},jn.prototype.touchmove=function(t,e,r){if(!this.aborted&amp;&amp;this.centroid){var n=Nn(r,e);for(var i in this.touches){var a=n[i];(!a||a.dist(this.touches[i])&gt;30)&amp;&amp;(this.aborted=!0)}}},jn.prototype.touchend=function(t,e,r){if((!this.centroid||t.timeStamp-this.startTime&gt;500)&amp;&amp;(this.aborted=!0),0===r.length){var n=!this.aborted&amp;&amp;this.centroid;if(this.reset(),n)return n}};var Un=function(t){this.singleTap=new jn(t),this.numTaps=t.numTaps,this.reset()};Un.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Un.prototype.touchstart=function(t,e,r){this.singleTap.touchstart(t,e,r)},Un.prototype.touchmove=function(t,e,r){this.singleTap.touchmove(t,e,r)},Un.prototype.touchend=function(t,e,r){var n=this.singleTap.touchend(t,e,r);if(n){var i=t.timeStamp-this.lastTime&lt;500,a=!this.lastTap||this.lastTap.dist(n)&lt;30;if(i&amp;&amp;a||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=n,this.count===this.numTaps)return this.reset(),n}};var Vn=function(){this._zoomIn=new Un({numTouches:1,numTaps:2}),this._zoomOut=new Un({numTouches:2,numTaps:1}),this.reset()};Vn.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Vn.prototype.touchstart=function(t,e,r){this._zoomIn.touchstart(t,e,r),this._zoomOut.touchstart(t,e,r)},Vn.prototype.touchmove=function(t,e,r){this._zoomIn.touchmove(t,e,r),this._zoomOut.touchmove(t,e,r)},Vn.prototype.touchend=function(t,e,r){var n=this,i=this._zoomIn.touchend(t,e,r),a=this._zoomOut.touchend(t,e,r);return i?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(i)},{originalEvent:t})}}):a?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(a)},{originalEvent:t})}}):void 0},Vn.prototype.touchcancel=function(){this.reset()},Vn.prototype.enable=function(){this._enabled=!0},Vn.prototype.disable=function(){this._enabled=!1,this.reset()},Vn.prototype.isEnabled=function(){return this._enabled},Vn.prototype.isActive=function(){return this._active};var qn=function(t){this.reset(),this._clickTolerance=t.clickTolerance||1};qn.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},qn.prototype._correctButton=function(t,e){return!1},qn.prototype._move=function(t,e){return{}},qn.prototype.mousedown=function(t,e){if(!this._lastPoint){var n=r.mouseButton(t);this._correctButton(t,n)&amp;&amp;(this._lastPoint=e,this._eventButton=n)}},qn.prototype.mousemoveWindow=function(t,e){var r=this._lastPoint;if(r&amp;&amp;(t.preventDefault(),this._moved||!(e.dist(r)&lt;this._clickTolerance)))return this._moved=!0,this._lastPoint=e,this._move(r,e)},qn.prototype.mouseupWindow=function(t){r.mouseButton(t)===this._eventButton&amp;&amp;(this._moved&amp;&amp;r.suppressClick(),this.reset())},qn.prototype.enable=function(){this._enabled=!0},qn.prototype.disable=function(){this._enabled=!1,this.reset()},qn.prototype.isEnabled=function(){return this._enabled},qn.prototype.isActive=function(){return this._active};var Hn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.mousedown=function(e,r){t.prototype.mousedown.call(this,e,r),this._lastPoint&amp;&amp;(this._active=!0)},e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;!t.ctrlKey},e.prototype._move=function(t,e){return{around:e,panDelta:e.sub(t)}},e}(qn),Gn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=.8*(e.x-t.x);if(r)return this._active=!0,{bearingDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(qn),Yn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=-.5*(e.y-t.y);if(r)return this._active=!0,{pitchDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(qn),Wn=function(t){this._minTouches=1,this._clickTolerance=t.clickTolerance||1,this.reset()};Wn.prototype.reset=function(){this._active=!1,this._touches={},this._sum=new t.Point(0,0)},Wn.prototype.touchstart=function(t,e,r){return this._calculateTransform(t,e,r)},Wn.prototype.touchmove=function(t,e,r){if(this._active)return t.preventDefault(),this._calculateTransform(t,e,r)},Wn.prototype.touchend=function(t,e,r){this._calculateTransform(t,e,r),this._active&amp;&amp;r.length&lt;this._minTouches&amp;&amp;this.reset()},Wn.prototype.touchcancel=function(){this.reset()},Wn.prototype._calculateTransform=function(e,r,n){n.length&gt;0&amp;&amp;(this._active=!0);var i=Nn(n,r),a=new t.Point(0,0),o=new t.Point(0,0),s=0;for(var l in i){var c=i[l],u=this._touches[l];u&amp;&amp;(a._add(c),o._add(c.sub(u)),s++,i[l]=c)}if(this._touches=i,!(s&lt;this._minTouches)&amp;&amp;o.mag()){var f=o.div(s);if(this._sum._add(f),!(this._sum.mag()&lt;this._clickTolerance))return{around:a.div(s),panDelta:f}}},Wn.prototype.enable=function(){this._enabled=!0},Wn.prototype.disable=function(){this._enabled=!1,this.reset()},Wn.prototype.isEnabled=function(){return this._enabled},Wn.prototype.isActive=function(){return this._active};var Xn=function(){this.reset()};function Zn(t,e,r){for(var n=0;n&lt;t.length;n++)if(t[n].identifier===r)return e[n]}function Jn(t,e){return Math.log(t/e)/Math.LN2}Xn.prototype.reset=function(){this._active=!1,delete this._firstTwoTouches},Xn.prototype._start=function(t){},Xn.prototype._move=function(t,e,r){return{}},Xn.prototype.touchstart=function(t,e,r){this._firstTwoTouches||r.length&lt;2||(this._firstTwoTouches=[r[0].identifier,r[1].identifier],this._start([e[0],e[1]]))},Xn.prototype.touchmove=function(t,e,r){if(this._firstTwoTouches){t.preventDefault();var n=this._firstTwoTouches,i=n[1],a=Zn(r,e,n[0]),o=Zn(r,e,i);if(a&amp;&amp;o){var s=this._aroundCenter?null:a.add(o).div(2);return this._move([a,o],s,t)}}},Xn.prototype.touchend=function(t,e,n){if(this._firstTwoTouches){var i=this._firstTwoTouches,a=i[1],o=Zn(n,e,i[0]),s=Zn(n,e,a);o&amp;&amp;s||(this._active&amp;&amp;r.suppressClick(),this.reset())}},Xn.prototype.touchcancel=function(){this.reset()},Xn.prototype.enable=function(t){this._enabled=!0,this._aroundCenter=!!t&amp;&amp;&quot;center&quot;===t.around},Xn.prototype.disable=function(){this._enabled=!1,this.reset()},Xn.prototype.isEnabled=function(){return this._enabled},Xn.prototype.isActive=function(){return this._active};var Kn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._distance,delete this._startDistance},e.prototype._start=function(t){this._startDistance=this._distance=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._distance;if(this._distance=t[0].dist(t[1]),this._active||!(Math.abs(Jn(this._distance,this._startDistance))&lt;.1))return this._active=!0,{zoomDelta:Jn(this._distance,r),pinchAround:e}},e}(Xn);function Qn(t,e){return 180*t.angleWith(e)/Math.PI}var $n=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._minDiameter,delete this._startVector,delete this._vector},e.prototype._start=function(t){this._startVector=this._vector=t[0].sub(t[1]),this._minDiameter=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._vector;if(this._vector=t[0].sub(t[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:Qn(this._vector,r),pinchAround:e}},e.prototype._isBelowThreshold=function(t){this._minDiameter=Math.min(this._minDiameter,t.mag());var e=25/(Math.PI*this._minDiameter)*360,r=Qn(t,this._startVector);return Math.abs(r)&lt;e},e}(Xn);function ti(t){return Math.abs(t.y)&gt;Math.abs(t.x)}var ei=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},e.prototype._start=function(t){this._lastPoints=t,ti(t[0].sub(t[1]))&amp;&amp;(this._valid=!1)},e.prototype._move=function(t,e,r){var n=t[0].sub(this._lastPoints[0]),i=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(n,i,r.timeStamp),this._valid)return this._lastPoints=t,this._active=!0,{pitchDelta:(n.y+i.y)/2*-.5}},e.prototype.gestureBeginsVertically=function(t,e,r){if(void 0!==this._valid)return this._valid;var n=t.mag()&gt;=2,i=e.mag()&gt;=2;if(n||i){if(!n||!i)return void 0===this._firstMove&amp;&amp;(this._firstMove=r),r-this._firstMove&lt;100&amp;&amp;void 0;var a=t.y&gt;0==e.y&gt;0;return ti(t)&amp;&amp;ti(e)&amp;&amp;a}},e}(Xn),ri={panStep:100,bearingStep:15,pitchStep:10},ni=function(){var t=ri;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep};function ii(t){return t*(2-t)}ni.prototype.reset=function(){this._active=!1},ni.prototype.keydown=function(t){var e=this;if(!(t.altKey||t.ctrlKey||t.metaKey)){var r=0,n=0,i=0,a=0,o=0;switch(t.keyCode){case 61:case 107:case 171:case 187:r=1;break;case 189:case 109:case 173:r=-1;break;case 37:t.shiftKey?n=-1:(t.preventDefault(),a=-1);break;case 39:t.shiftKey?n=1:(t.preventDefault(),a=1);break;case 38:t.shiftKey?i=1:(t.preventDefault(),o=-1);break;case 40:t.shiftKey?i=-1:(t.preventDefault(),o=1);break;default:return}return{cameraAnimation:function(s){var l=s.getZoom();s.easeTo({duration:300,easeId:&quot;keyboardHandler&quot;,easing:ii,zoom:r?Math.round(l)+r*(t.shiftKey?2:1):l,bearing:s.getBearing()+n*e._bearingStep,pitch:s.getPitch()+i*e._pitchStep,offset:[-a*e._panStep,-o*e._panStep],center:s.getCenter()},{originalEvent:t})}}}},ni.prototype.enable=function(){this._enabled=!0},ni.prototype.disable=function(){this._enabled=!1,this.reset()},ni.prototype.isEnabled=function(){return this._enabled},ni.prototype.isActive=function(){return this._active};var ai=function(e,r){this._map=e,this._el=e.getCanvasContainer(),this._handler=r,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,t.bindAll([&quot;_onWheel&quot;,&quot;_onTimeout&quot;,&quot;_onScrollFrame&quot;,&quot;_onScrollFinished&quot;],this)};ai.prototype.setZoomRate=function(t){this._defaultZoomRate=t},ai.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},ai.prototype.isEnabled=function(){return!!this._enabled},ai.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},ai.prototype.isZooming=function(){return!!this._zooming},ai.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&amp;&amp;&quot;center&quot;===t.around)},ai.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},ai.prototype.wheel=function(e){if(this.isEnabled()){var r=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,n=t.browser.now(),i=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==r&amp;&amp;r%4.000244140625==0?this._type=&quot;wheel&quot;:0!==r&amp;&amp;Math.abs(r)&lt;4?this._type=&quot;trackpad&quot;:i&gt;400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*r)&lt;200?&quot;trackpad&quot;:&quot;wheel&quot;,this._timeout&amp;&amp;(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),e.shiftKey&amp;&amp;r&amp;&amp;(r/=4),this._type&amp;&amp;(this._lastWheelEvent=e,this._delta-=r,this._active||this._start(e)),e.preventDefault()}},ai.prototype._onTimeout=function(t){this._type=&quot;wheel&quot;,this._delta-=this._lastValue,this._active||this._start(t)},ai.prototype._start=function(e){if(this._delta){this._frameId&amp;&amp;(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&amp;&amp;(clearTimeout(this._finishTimeout),delete this._finishTimeout);var n=r.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(n)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},ai.prototype.renderFrame=function(){return this._onScrollFrame()},ai.prototype._onScrollFrame=function(){var e=this;if(this._frameId&amp;&amp;(this._frameId=null,this.isActive())){var r=this._map.transform;if(0!==this._delta){var n=&quot;wheel&quot;===this._type&amp;&amp;Math.abs(this._delta)&gt;4.000244140625?this._wheelZoomRate:this._defaultZoomRate,i=2/(1+Math.exp(-Math.abs(this._delta*n)));this._delta&lt;0&amp;&amp;0!==i&amp;&amp;(i=1/i);var a=&quot;number&quot;==typeof this._targetZoom?r.zoomScale(this._targetZoom):r.scale;this._targetZoom=Math.min(r.maxZoom,Math.max(r.minZoom,r.scaleZoom(a*i))),&quot;wheel&quot;===this._type&amp;&amp;(this._startZoom=r.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var o,s=&quot;number&quot;==typeof this._targetZoom?this._targetZoom:r.zoom,l=this._startZoom,c=this._easing,u=!1;if(&quot;wheel&quot;===this._type&amp;&amp;l&amp;&amp;c){var f=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),h=c(f);o=t.number(l,s,h),f&lt;1?this._frameId||(this._frameId=!0):u=!0}else o=s,u=!0;return this._active=!0,u&amp;&amp;(this._active=!1,this._finishTimeout=setTimeout((function(){e._zooming=!1,e._handler._triggerRenderFrame(),delete e._targetZoom,delete e._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!u,zoomDelta:o-r.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},ai.prototype._smoothOutEasing=function(e){var r=t.ease;if(this._prevEase){var n=this._prevEase,i=(t.browser.now()-n.start)/n.duration,a=n.easing(i+.01)-n.easing(i),o=.27/Math.sqrt(a*a+1e-4)*.01,s=Math.sqrt(.0729-o*o);r=t.bezier(o,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:r},r},ai.prototype.reset=function(){this._active=!1};var oi=function(t,e){this._clickZoom=t,this._tapZoom=e};oi.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},oi.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},oi.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&amp;&amp;this._tapZoom.isEnabled()},oi.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var si=function(){this.reset()};si.prototype.reset=function(){this._active=!1},si.prototype.dblclick=function(t,e){return t.preventDefault(),{cameraAnimation:function(r){r.easeTo({duration:300,zoom:r.getZoom()+(t.shiftKey?-1:1),around:r.unproject(e)},{originalEvent:t})}}},si.prototype.enable=function(){this._enabled=!0},si.prototype.disable=function(){this._enabled=!1,this.reset()},si.prototype.isEnabled=function(){return this._enabled},si.prototype.isActive=function(){return this._active};var li=function(){this._tap=new Un({numTouches:1,numTaps:1}),this.reset()};li.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},li.prototype.touchstart=function(t,e,r){this._swipePoint||(this._tapTime&amp;&amp;t.timeStamp-this._tapTime&gt;500&amp;&amp;this.reset(),this._tapTime?r.length&gt;0&amp;&amp;(this._swipePoint=e[0],this._swipeTouch=r[0].identifier):this._tap.touchstart(t,e,r))},li.prototype.touchmove=function(t,e,r){if(this._tapTime){if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;var n=e[0],i=n.y-this._swipePoint.y;return this._swipePoint=n,t.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(t,e,r)},li.prototype.touchend=function(t,e,r){this._tapTime?this._swipePoint&amp;&amp;0===r.length&amp;&amp;this.reset():this._tap.touchend(t,e,r)&amp;&amp;(this._tapTime=t.timeStamp)},li.prototype.touchcancel=function(){this.reset()},li.prototype.enable=function(){this._enabled=!0},li.prototype.disable=function(){this._enabled=!1,this.reset()},li.prototype.isEnabled=function(){return this._enabled},li.prototype.isActive=function(){return this._active};var ci=function(t,e,r){this._el=t,this._mousePan=e,this._touchPan=r};ci.prototype.enable=function(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add(&quot;mapboxgl-touch-drag-pan&quot;)},ci.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove(&quot;mapboxgl-touch-drag-pan&quot;)},ci.prototype.isEnabled=function(){return this._mousePan.isEnabled()&amp;&amp;this._touchPan.isEnabled()},ci.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var ui=function(t,e,r){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=r};ui.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&amp;&amp;this._mousePitch.enable()},ui.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},ui.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&amp;&amp;(!this._pitchWithRotate||this._mousePitch.isEnabled())},ui.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var fi=function(t,e,r,n){this._el=t,this._touchZoom=e,this._touchRotate=r,this._tapDragZoom=n,this._rotationDisabled=!1,this._enabled=!0};fi.prototype.enable=function(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add(&quot;mapboxgl-touch-zoom-rotate&quot;)},fi.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove(&quot;mapboxgl-touch-zoom-rotate&quot;)},fi.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&amp;&amp;(this._rotationDisabled||this._touchRotate.isEnabled())&amp;&amp;this._tapDragZoom.isEnabled()},fi.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},fi.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},fi.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&amp;&amp;this._touchRotate.enable()};var hi=function(t){return t.zoom||t.drag||t.pitch||t.rotate},pi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(t.Event);function di(t){return t.panDelta&amp;&amp;t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var gi=function(e,n){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Ln(e),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(n),t.bindAll([&quot;handleEvent&quot;,&quot;handleWindowEvent&quot;],this);var i=this._el;this._listeners=[[i,&quot;touchstart&quot;,{passive:!1}],[i,&quot;touchmove&quot;,{passive:!1}],[i,&quot;touchend&quot;,void 0],[i,&quot;touchcancel&quot;,void 0],[i,&quot;mousedown&quot;,void 0],[i,&quot;mousemove&quot;,void 0],[i,&quot;mouseup&quot;,void 0],[t.window.document,&quot;mousemove&quot;,{capture:!0}],[t.window.document,&quot;mouseup&quot;,void 0],[i,&quot;mouseover&quot;,void 0],[i,&quot;mouseout&quot;,void 0],[i,&quot;dblclick&quot;,void 0],[i,&quot;click&quot;,void 0],[i,&quot;keydown&quot;,{capture:!1}],[i,&quot;keyup&quot;,void 0],[i,&quot;wheel&quot;,{passive:!1}],[i,&quot;contextmenu&quot;,void 0],[t.window,&quot;blur&quot;,void 0]];for(var a=0,o=this._listeners;a&lt;o.length;a+=1){var s=o[a],l=s[0];r.addEventListener(l,s[1],l===t.window.document?this.handleWindowEvent:this.handleEvent,s[2])}};gi.prototype.destroy=function(){for(var e=0,n=this._listeners;e&lt;n.length;e+=1){var i=n[e],a=i[0];r.removeEventListener(a,i[1],a===t.window.document?this.handleWindowEvent:this.handleEvent,i[2])}},gi.prototype._addDefaultHandlers=function(t){var e=this._map,r=e.getCanvasContainer();this._add(&quot;mapEvent&quot;,new Rn(e,t));var n=e.boxZoom=new Bn(e,t);this._add(&quot;boxZoom&quot;,n);var i=new Vn,a=new si;e.doubleClickZoom=new oi(a,i),this._add(&quot;tapZoom&quot;,i),this._add(&quot;clickZoom&quot;,a);var o=new li;this._add(&quot;tapDragZoom&quot;,o);var s=e.touchPitch=new ei;this._add(&quot;touchPitch&quot;,s);var l=new Gn(t),c=new Yn(t);e.dragRotate=new ui(t,l,c),this._add(&quot;mouseRotate&quot;,l,[&quot;mousePitch&quot;]),this._add(&quot;mousePitch&quot;,c,[&quot;mouseRotate&quot;]);var u=new Hn(t),f=new Wn(t);e.dragPan=new ci(r,u,f),this._add(&quot;mousePan&quot;,u),this._add(&quot;touchPan&quot;,f,[&quot;touchZoom&quot;,&quot;touchRotate&quot;]);var h=new $n,p=new Kn;e.touchZoomRotate=new fi(r,p,h,o),this._add(&quot;touchRotate&quot;,h,[&quot;touchPan&quot;,&quot;touchZoom&quot;]),this._add(&quot;touchZoom&quot;,p,[&quot;touchPan&quot;,&quot;touchRotate&quot;]);var d=e.scrollZoom=new ai(e,this);this._add(&quot;scrollZoom&quot;,d,[&quot;mousePan&quot;]);var g=e.keyboard=new ni;this._add(&quot;keyboard&quot;,g),this._add(&quot;blockableMapEvent&quot;,new Fn(e));for(var m=0,v=[&quot;boxZoom&quot;,&quot;doubleClickZoom&quot;,&quot;tapDragZoom&quot;,&quot;touchPitch&quot;,&quot;dragRotate&quot;,&quot;dragPan&quot;,&quot;touchZoomRotate&quot;,&quot;scrollZoom&quot;,&quot;keyboard&quot;];m&lt;v.length;m+=1){var y=v[m];t.interactive&amp;&amp;t[y]&amp;&amp;e[y].enable(t[y])}},gi.prototype._add=function(t,e,r){this._handlers.push({handlerName:t,handler:e,allowed:r}),this._handlersById[t]=e},gi.prototype.stop=function(){if(!this._updatingCamera){for(var t=0,e=this._handlers;t&lt;e.length;t+=1)e[t].handler.reset();this._inertia.clear(),this._fireEvents({},{}),this._changes=[]}},gi.prototype.isActive=function(){for(var t=0,e=this._handlers;t&lt;e.length;t+=1)if(e[t].handler.isActive())return!0;return!1},gi.prototype.isZooming=function(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()},gi.prototype.isRotating=function(){return!!this._eventsInProgress.rotate},gi.prototype.isMoving=function(){return Boolean(hi(this._eventsInProgress))||this.isZooming()},gi.prototype._blockedByActive=function(t,e,r){for(var n in t)if(n!==r&amp;&amp;(!e||e.indexOf(n)&lt;0))return!0;return!1},gi.prototype.handleWindowEvent=function(t){this.handleEvent(t,t.type+&quot;Window&quot;)},gi.prototype._getMapTouches=function(t){for(var e=[],r=0,n=t;r&lt;n.length;r+=1){var i=n[r];this._el.contains(i.target)&amp;&amp;e.push(i)}return e},gi.prototype.handleEvent=function(t,e){if(&quot;blur&quot;!==t.type){this._updatingCamera=!0;for(var n=&quot;renderFrame&quot;===t.type?void 0:t,i={needsRenderFrame:!1},a={},o={},s=t.touches?this._getMapTouches(t.touches):void 0,l=s?r.touchPos(this._el,s):r.mousePos(this._el,t),c=0,u=this._handlers;c&lt;u.length;c+=1){var f=u[c],h=f.handlerName,p=f.handler,d=f.allowed;if(p.isEnabled()){var g=void 0;this._blockedByActive(o,d,h)?p.reset():p[e||t.type]&amp;&amp;(g=p[e||t.type](t,l,s),this.mergeHandlerResult(i,a,g,h,n),g&amp;&amp;g.needsRenderFrame&amp;&amp;this._triggerRenderFrame()),(g||p.isActive())&amp;&amp;(o[h]=p)}}var m={};for(var v in this._previousActiveHandlers)o[v]||(m[v]=n);this._previousActiveHandlers=o,(Object.keys(m).length||di(i))&amp;&amp;(this._changes.push([i,a,m]),this._triggerRenderFrame()),(Object.keys(o).length||di(i))&amp;&amp;this._map._stop(!0),this._updatingCamera=!1;var y=i.cameraAnimation;y&amp;&amp;(this._inertia.clear(),this._fireEvents({},{}),this._changes=[],y(this._map))}else this.stop()},gi.prototype.mergeHandlerResult=function(e,r,n,i,a){if(n){t.extend(e,n);var o={handlerName:i,originalEvent:n.originalEvent||a};void 0!==n.zoomDelta&amp;&amp;(r.zoom=o),void 0!==n.panDelta&amp;&amp;(r.drag=o),void 0!==n.pitchDelta&amp;&amp;(r.pitch=o),void 0!==n.bearingDelta&amp;&amp;(r.rotate=o)}},gi.prototype._applyChanges=function(){for(var e={},r={},n={},i=0,a=this._changes;i&lt;a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=o[2];s.panDelta&amp;&amp;(e.panDelta=(e.panDelta||new t.Point(0,0))._add(s.panDelta)),s.zoomDelta&amp;&amp;(e.zoomDelta=(e.zoomDelta||0)+s.zoomDelta),s.bearingDelta&amp;&amp;(e.bearingDelta=(e.bearingDelta||0)+s.bearingDelta),s.pitchDelta&amp;&amp;(e.pitchDelta=(e.pitchDelta||0)+s.pitchDelta),void 0!==s.around&amp;&amp;(e.around=s.around),void 0!==s.pinchAround&amp;&amp;(e.pinchAround=s.pinchAround),s.noInertia&amp;&amp;(e.noInertia=s.noInertia),t.extend(r,l),t.extend(n,c)}this._updateMapTransform(e,r,n),this._changes=[]},gi.prototype._updateMapTransform=function(t,e,r){var n=this._map,i=n.transform;if(!di(t))return this._fireEvents(e,r);var a=t.panDelta,o=t.zoomDelta,s=t.bearingDelta,l=t.pitchDelta,c=t.around,u=t.pinchAround;void 0!==u&amp;&amp;(c=u),n._stop(!0),c=c||n.transform.centerPoint;var f=i.pointLocation(a?c.sub(a):c);s&amp;&amp;(i.bearing+=s),l&amp;&amp;(i.pitch+=l),o&amp;&amp;(i.zoom+=o),i.setLocationAtPoint(f,c),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(e,r)},gi.prototype._fireEvents=function(e,r){var n=this,i=hi(this._eventsInProgress),a=hi(e),o={};for(var s in e)this._eventsInProgress[s]||(o[s+&quot;start&quot;]=e[s].originalEvent),this._eventsInProgress[s]=e[s];for(var l in!i&amp;&amp;a&amp;&amp;this._fireEvent(&quot;movestart&quot;,a.originalEvent),o)this._fireEvent(l,o[l]);for(var c in e.rotate&amp;&amp;(this._bearingChanged=!0),a&amp;&amp;this._fireEvent(&quot;move&quot;,a.originalEvent),e)this._fireEvent(c,e[c].originalEvent);var u,f={};for(var h in this._eventsInProgress){var p=this._eventsInProgress[h],d=p.handlerName,g=p.originalEvent;this._handlersById[d].isActive()||(delete this._eventsInProgress[h],f[h+&quot;end&quot;]=u=r[d]||g)}for(var m in f)this._fireEvent(m,f[m]);var v=hi(this._eventsInProgress);if((i||a)&amp;&amp;!v){this._updatingCamera=!0;var y=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),x=function(t){return 0!==t&amp;&amp;-n._bearingSnap&lt;t&amp;&amp;t&lt;n._bearingSnap};y?(x(y.bearing||this._map.getBearing())&amp;&amp;(y.bearing=0),this._map.easeTo(y,{originalEvent:u})):(this._map.fire(new t.Event(&quot;moveend&quot;,{originalEvent:u})),x(this._map.getBearing())&amp;&amp;this._map.resetNorth()),this._bearingChanged=!1,this._updatingCamera=!1}},gi.prototype._fireEvent=function(e,r){this._map.fire(new t.Event(e,r?{originalEvent:r}:{}))},gi.prototype._triggerRenderFrame=function(){var t=this;void 0===this._frameId&amp;&amp;(this._frameId=this._map._requestRenderFrame((function(e){delete t._frameId,t.handleEvent(new pi(&quot;renderFrame&quot;,{timeStamp:e})),t._applyChanges()})))};var mi=function(e){function r(r,n){e.call(this),this._moving=!1,this._zooming=!1,this.transform=r,this._bearingSnap=n.bearingSnap,t.bindAll([&quot;_renderFrameCallback&quot;],this)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getCenter=function(){return new t.LngLat(this.transform.center.lng,this.transform.center.lat)},r.prototype.setCenter=function(t,e){return this.jumpTo({center:t},e)},r.prototype.panBy=function(e,r,n){return e=t.Point.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},r),n)},r.prototype.panTo=function(e,r,n){return this.easeTo(t.extend({center:e},r),n)},r.prototype.getZoom=function(){return this.transform.zoom},r.prototype.setZoom=function(t,e){return this.jumpTo({zoom:t},e),this},r.prototype.zoomTo=function(e,r,n){return this.easeTo(t.extend({zoom:e},r),n)},r.prototype.zoomIn=function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},r.prototype.zoomOut=function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},r.prototype.getBearing=function(){return this.transform.bearing},r.prototype.setBearing=function(t,e){return this.jumpTo({bearing:t},e),this},r.prototype.getPadding=function(){return this.transform.padding},r.prototype.setPadding=function(t,e){return this.jumpTo({padding:t},e),this},r.prototype.rotateTo=function(e,r,n){return this.easeTo(t.extend({bearing:e},r),n)},r.prototype.resetNorth=function(e,r){return this.rotateTo(0,t.extend({duration:1e3},e),r),this},r.prototype.resetNorthPitch=function(e,r){return this.easeTo(t.extend({bearing:0,pitch:0,duration:1e3},e),r),this},r.prototype.snapToNorth=function(t,e){return Math.abs(this.getBearing())&lt;this._bearingSnap?this.resetNorth(t,e):this},r.prototype.getPitch=function(){return this.transform.pitch},r.prototype.setPitch=function(t,e){return this.jumpTo({pitch:t},e),this},r.prototype.cameraForBounds=function(e,r){return e=t.LngLatBounds.convert(e),this._cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),0,r)},r.prototype._cameraForBoxAndBearing=function(e,r,n,i){var a={top:0,bottom:0,right:0,left:0};if(&quot;number&quot;==typeof(i=t.extend({padding:a,offset:[0,0],maxZoom:this.transform.maxZoom},i)).padding){var o=i.padding;i.padding={top:o,bottom:o,right:o,left:o}}i.padding=t.extend(a,i.padding);var s=this.transform,l=s.padding,c=s.project(t.LngLat.convert(e)),u=s.project(t.LngLat.convert(r)),f=c.rotate(-n*Math.PI/180),h=u.rotate(-n*Math.PI/180),p=new t.Point(Math.max(f.x,h.x),Math.max(f.y,h.y)),d=new t.Point(Math.min(f.x,h.x),Math.min(f.y,h.y)),g=p.sub(d),m=(s.width-(l.left+l.right+i.padding.left+i.padding.right))/g.x,v=(s.height-(l.top+l.bottom+i.padding.top+i.padding.bottom))/g.y;if(!(v&lt;0||m&lt;0)){var y=Math.min(s.scaleZoom(s.scale*Math.min(m,v)),i.maxZoom),x=t.Point.convert(i.offset),b=new t.Point(x.x+(i.padding.left-i.padding.right)/2,x.y+(i.padding.top-i.padding.bottom)/2).mult(s.scale/s.zoomScale(y));return{center:s.unproject(c.add(u).div(2).sub(b)),zoom:y,bearing:n}}t.warnOnce(&quot;Map cannot fit within canvas with the given bounds, padding, and/or offset.&quot;)},r.prototype.fitBounds=function(t,e,r){return this._fitInternal(this.cameraForBounds(t,e),e,r)},r.prototype.fitScreenCoordinates=function(e,r,n,i,a){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(t.Point.convert(e)),this.transform.pointLocation(t.Point.convert(r)),n,i),i,a)},r.prototype._fitInternal=function(e,r,n){return e?(delete(r=t.extend(e,r)).padding,r.linear?this.easeTo(r,n):this.flyTo(r,n)):this},r.prototype.jumpTo=function(e,r){this.stop();var n=this.transform,i=!1,a=!1,o=!1;return&quot;zoom&quot;in e&amp;&amp;n.zoom!==+e.zoom&amp;&amp;(i=!0,n.zoom=+e.zoom),void 0!==e.center&amp;&amp;(n.center=t.LngLat.convert(e.center)),&quot;bearing&quot;in e&amp;&amp;n.bearing!==+e.bearing&amp;&amp;(a=!0,n.bearing=+e.bearing),&quot;pitch&quot;in e&amp;&amp;n.pitch!==+e.pitch&amp;&amp;(o=!0,n.pitch=+e.pitch),null==e.padding||n.isPaddingEqual(e.padding)||(n.padding=e.padding),this.fire(new t.Event(&quot;movestart&quot;,r)).fire(new t.Event(&quot;move&quot;,r)),i&amp;&amp;this.fire(new t.Event(&quot;zoomstart&quot;,r)).fire(new t.Event(&quot;zoom&quot;,r)).fire(new t.Event(&quot;zoomend&quot;,r)),a&amp;&amp;this.fire(new t.Event(&quot;rotatestart&quot;,r)).fire(new t.Event(&quot;rotate&quot;,r)).fire(new t.Event(&quot;rotateend&quot;,r)),o&amp;&amp;this.fire(new t.Event(&quot;pitchstart&quot;,r)).fire(new t.Event(&quot;pitch&quot;,r)).fire(new t.Event(&quot;pitchend&quot;,r)),this.fire(new t.Event(&quot;moveend&quot;,r))},r.prototype.easeTo=function(e,r){var n=this;this._stop(!1,e.easeId),(!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate||!e.essential&amp;&amp;t.browser.prefersReducedMotion)&amp;&amp;(e.duration=0);var i=this.transform,a=this.getZoom(),o=this.getBearing(),s=this.getPitch(),l=this.getPadding(),c=&quot;zoom&quot;in e?+e.zoom:a,u=&quot;bearing&quot;in e?this._normalizeBearing(e.bearing,o):o,f=&quot;pitch&quot;in e?+e.pitch:s,h=&quot;padding&quot;in e?e.padding:i.padding,p=t.Point.convert(e.offset),d=i.centerPoint.add(p),g=i.pointLocation(d),m=t.LngLat.convert(e.center||g);this._normalizeCenter(m);var v,y,x=i.project(g),b=i.project(m).sub(x),_=i.zoomScale(c-a);e.around&amp;&amp;(v=t.LngLat.convert(e.around),y=i.locationPoint(v));var w={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||c!==a,this._rotating=this._rotating||o!==u,this._pitching=this._pitching||f!==s,this._padding=!i.isPaddingEqual(h),this._easeId=e.easeId,this._prepareEase(r,e.noMoveStart,w),clearTimeout(this._easeEndTimeoutID),this._ease((function(e){if(n._zooming&amp;&amp;(i.zoom=t.number(a,c,e)),n._rotating&amp;&amp;(i.bearing=t.number(o,u,e)),n._pitching&amp;&amp;(i.pitch=t.number(s,f,e)),n._padding&amp;&amp;(i.interpolatePadding(l,h,e),d=i.centerPoint.add(p)),v)i.setLocationAtPoint(v,y);else{var g=i.zoomScale(i.zoom-a),m=c&gt;a?Math.min(2,_):Math.max(.5,_),w=Math.pow(m,1-e),T=i.unproject(x.add(b.mult(e*w)).mult(g));i.setLocationAtPoint(i.renderWorldCopies?T.wrap():T,d)}n._fireMoveEvents(r)}),(function(t){n._afterEase(r,t)}),e),this},r.prototype._prepareEase=function(e,r,n){void 0===n&amp;&amp;(n={}),this._moving=!0,r||n.moving||this.fire(new t.Event(&quot;movestart&quot;,e)),this._zooming&amp;&amp;!n.zooming&amp;&amp;this.fire(new t.Event(&quot;zoomstart&quot;,e)),this._rotating&amp;&amp;!n.rotating&amp;&amp;this.fire(new t.Event(&quot;rotatestart&quot;,e)),this._pitching&amp;&amp;!n.pitching&amp;&amp;this.fire(new t.Event(&quot;pitchstart&quot;,e))},r.prototype._fireMoveEvents=function(e){this.fire(new t.Event(&quot;move&quot;,e)),this._zooming&amp;&amp;this.fire(new t.Event(&quot;zoom&quot;,e)),this._rotating&amp;&amp;this.fire(new t.Event(&quot;rotate&quot;,e)),this._pitching&amp;&amp;this.fire(new t.Event(&quot;pitch&quot;,e))},r.prototype._afterEase=function(e,r){if(!this._easeId||!r||this._easeId!==r){delete this._easeId;var n=this._zooming,i=this._rotating,a=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&amp;&amp;this.fire(new t.Event(&quot;zoomend&quot;,e)),i&amp;&amp;this.fire(new t.Event(&quot;rotateend&quot;,e)),a&amp;&amp;this.fire(new t.Event(&quot;pitchend&quot;,e)),this.fire(new t.Event(&quot;moveend&quot;,e))}},r.prototype.flyTo=function(e,r){var n=this;if(!e.essential&amp;&amp;t.browser.prefersReducedMotion){var i=t.pick(e,[&quot;center&quot;,&quot;zoom&quot;,&quot;bearing&quot;,&quot;pitch&quot;,&quot;around&quot;]);return this.jumpTo(i,r)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var a=this.transform,o=this.getZoom(),s=this.getBearing(),l=this.getPitch(),c=this.getPadding(),u=&quot;zoom&quot;in e?t.clamp(+e.zoom,a.minZoom,a.maxZoom):o,f=&quot;bearing&quot;in e?this._normalizeBearing(e.bearing,s):s,h=&quot;pitch&quot;in e?+e.pitch:l,p=&quot;padding&quot;in e?e.padding:a.padding,d=a.zoomScale(u-o),g=t.Point.convert(e.offset),m=a.centerPoint.add(g),v=a.pointLocation(m),y=t.LngLat.convert(e.center||v);this._normalizeCenter(y);var x=a.project(v),b=a.project(y).sub(x),_=e.curve,w=Math.max(a.width,a.height),T=w/d,k=b.mag();if(&quot;minZoom&quot;in e){var M=t.clamp(Math.min(e.minZoom,o,u),a.minZoom,a.maxZoom),A=w/a.zoomScale(M-o);_=Math.sqrt(A/k*2)}var S=_*_;function E(t){var e=(T*T-w*w+(t?-1:1)*S*S*k*k)/(2*(t?T:w)*S*k);return Math.log(Math.sqrt(e*e+1)-e)}function C(t){return(Math.exp(t)-Math.exp(-t))/2}function L(t){return(Math.exp(t)+Math.exp(-t))/2}var I=E(0),P=function(t){return L(I)/L(I+_*t)},z=function(t){return w*((L(I)*(C(e=I+_*t)/L(e))-C(I))/S)/k;var e},O=(E(1)-I)/_;if(Math.abs(k)&lt;1e-6||!isFinite(O)){if(Math.abs(w-T)&lt;1e-6)return this.easeTo(e,r);var D=T&lt;w?-1:1;O=Math.abs(Math.log(T/w))/_,z=function(){return 0},P=function(t){return Math.exp(D*_*t)}}return e.duration=&quot;duration&quot;in e?+e.duration:1e3*O/(&quot;screenSpeed&quot;in e?+e.screenSpeed/_:+e.speed),e.maxDuration&amp;&amp;e.duration&gt;e.maxDuration&amp;&amp;(e.duration=0),this._zooming=!0,this._rotating=s!==f,this._pitching=h!==l,this._padding=!a.isPaddingEqual(p),this._prepareEase(r,!1),this._ease((function(e){var i=e*O,d=1/P(i);a.zoom=1===e?u:o+a.scaleZoom(d),n._rotating&amp;&amp;(a.bearing=t.number(s,f,e)),n._pitching&amp;&amp;(a.pitch=t.number(l,h,e)),n._padding&amp;&amp;(a.interpolatePadding(c,p,e),m=a.centerPoint.add(g));var v=1===e?y:a.unproject(x.add(b.mult(z(i))).mult(d));a.setLocationAtPoint(a.renderWorldCopies?v.wrap():v,m),n._fireMoveEvents(r)}),(function(){return n._afterEase(r)}),e),this},r.prototype.isEasing=function(){return!!this._easeFrameId},r.prototype.stop=function(){return this._stop()},r.prototype._stop=function(t,e){if(this._easeFrameId&amp;&amp;(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,e)}if(!t){var n=this.handlers;n&amp;&amp;n.stop()}return this},r.prototype._ease=function(e,r,n){!1===n.animate||0===n.duration?(e(1),r()):(this._easeStart=t.browser.now(),this._easeOptions=n,this._onEaseFrame=e,this._onEaseEnd=r,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},r.prototype._renderFrameCallback=function(){var e=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e&lt;1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},r.prototype._normalizeBearing=function(e,r){e=t.wrap(e,-180,180);var n=Math.abs(e-r);return Math.abs(e-360-r)&lt;n&amp;&amp;(e-=360),Math.abs(e+360-r)&lt;n&amp;&amp;(e+=360),e},r.prototype._normalizeCenter=function(t){var e=this.transform;if(e.renderWorldCopies&amp;&amp;!e.lngRange){var r=t.lng-e.center.lng;t.lng+=r&gt;180?-360:r&lt;-180?360:0}},r}(t.Evented),vi=function(e){void 0===e&amp;&amp;(e={}),this.options=e,t.bindAll([&quot;_updateEditLink&quot;,&quot;_updateData&quot;,&quot;_updateCompact&quot;],this)};vi.prototype.getDefaultPosition=function(){return&quot;bottom-right&quot;},vi.prototype.onAdd=function(t){var e=this.options&amp;&amp;this.options.compact;return this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-attrib&quot;),this._innerContainer=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl-attrib-inner&quot;,this._container),e&amp;&amp;this._container.classList.add(&quot;mapboxgl-compact&quot;),this._updateAttributions(),this._updateEditLink(),this._map.on(&quot;styledata&quot;,this._updateData),this._map.on(&quot;sourcedata&quot;,this._updateData),this._map.on(&quot;moveend&quot;,this._updateEditLink),void 0===e&amp;&amp;(this._map.on(&quot;resize&quot;,this._updateCompact),this._updateCompact()),this._container},vi.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;styledata&quot;,this._updateData),this._map.off(&quot;sourcedata&quot;,this._updateData),this._map.off(&quot;moveend&quot;,this._updateEditLink),this._map.off(&quot;resize&quot;,this._updateCompact),this._map=void 0,this._attribHTML=void 0},vi.prototype._updateEditLink=function(){var e=this._editLink;e||(e=this._editLink=this._container.querySelector(&quot;.mapbox-improve-map&quot;));var r=[{key:&quot;owner&quot;,value:this.styleOwner},{key:&quot;id&quot;,value:this.styleId},{key:&quot;access_token&quot;,value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if(e){var n=r.reduce((function(t,e,n){return e.value&amp;&amp;(t+=e.key+&quot;=&quot;+e.value+(n&lt;r.length-1?&quot;&amp;&quot;:&quot;&quot;)),t}),&quot;?&quot;);e.href=t.config.FEEDBACK_URL+&quot;/&quot;+n+(this._map._hash?this._map._hash.getHashString(!0):&quot;&quot;),e.rel=&quot;noopener nofollow&quot;}},vi.prototype._updateData=function(t){!t||&quot;metadata&quot;!==t.sourceDataType&amp;&amp;&quot;style&quot;!==t.dataType||(this._updateAttributions(),this._updateEditLink())},vi.prototype._updateAttributions=function(){if(this._map.style){var t=[];if(this.options.customAttribution&amp;&amp;(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map((function(t){return&quot;string&quot;!=typeof t?&quot;&quot;:t}))):&quot;string&quot;==typeof this.options.customAttribution&amp;&amp;t.push(this.options.customAttribution)),this._map.style.stylesheet){var e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}var r=this._map.style.sourceCaches;for(var n in r){var i=r[n];if(i.used){var a=i.getSource();a.attribution&amp;&amp;t.indexOf(a.attribution)&lt;0&amp;&amp;t.push(a.attribution)}}t.sort((function(t,e){return t.length-e.length}));var o=(t=t.filter((function(e,r){for(var n=r+1;n&lt;t.length;n++)if(t[n].indexOf(e)&gt;=0)return!1;return!0}))).join(&quot; | &quot;);o!==this._attribHTML&amp;&amp;(this._attribHTML=o,t.length?(this._innerContainer.innerHTML=o,this._container.classList.remove(&quot;mapboxgl-attrib-empty&quot;)):this._container.classList.add(&quot;mapboxgl-attrib-empty&quot;),this._editLink=null)}},vi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth&lt;=640?this._container.classList.add(&quot;mapboxgl-compact&quot;):this._container.classList.remove(&quot;mapboxgl-compact&quot;)};var yi=function(){t.bindAll([&quot;_updateLogo&quot;],this),t.bindAll([&quot;_updateCompact&quot;],this)};yi.prototype.onAdd=function(t){this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl&quot;);var e=r.create(&quot;a&quot;,&quot;mapboxgl-ctrl-logo&quot;);return e.target=&quot;_blank&quot;,e.rel=&quot;noopener nofollow&quot;,e.href=&quot;https://www.mapbox.com/&quot;,e.setAttribute(&quot;aria-label&quot;,this._map._getUIString(&quot;LogoControl.Title&quot;)),e.setAttribute(&quot;rel&quot;,&quot;noopener nofollow&quot;),this._container.appendChild(e),this._container.style.display=&quot;none&quot;,this._map.on(&quot;sourcedata&quot;,this._updateLogo),this._updateLogo(),this._map.on(&quot;resize&quot;,this._updateCompact),this._updateCompact(),this._container},yi.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;sourcedata&quot;,this._updateLogo),this._map.off(&quot;resize&quot;,this._updateCompact)},yi.prototype.getDefaultPosition=function(){return&quot;bottom-left&quot;},yi.prototype._updateLogo=function(t){t&amp;&amp;&quot;metadata&quot;!==t.sourceDataType||(this._container.style.display=this._logoRequired()?&quot;block&quot;:&quot;none&quot;)},yi.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}},yi.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth&lt;250?e.classList.add(&quot;mapboxgl-compact&quot;):e.classList.remove(&quot;mapboxgl-compact&quot;)}};var xi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};xi.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},xi.prototype.remove=function(t){for(var e=this._currentlyRunning,r=0,n=e?this._queue.concat(e):this._queue;r&lt;n.length;r+=1){var i=n[r];if(i.id===t)return void(i.cancelled=!0)}},xi.prototype.run=function(t){void 0===t&amp;&amp;(t=0);var e=this._currentlyRunning=this._queue;this._queue=[];for(var r=0,n=e;r&lt;n.length;r+=1){var i=n[r];if(!i.cancelled&amp;&amp;(i.callback(t),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},xi.prototype.clear=function(){this._currentlyRunning&amp;&amp;(this._cleared=!0),this._queue=[]};var bi={&quot;FullscreenControl.Enter&quot;:&quot;Enter fullscreen&quot;,&quot;FullscreenControl.Exit&quot;:&quot;Exit fullscreen&quot;,&quot;GeolocateControl.FindMyLocation&quot;:&quot;Find my location&quot;,&quot;GeolocateControl.LocationNotAvailable&quot;:&quot;Location not available&quot;,&quot;LogoControl.Title&quot;:&quot;Mapbox logo&quot;,&quot;NavigationControl.ResetBearing&quot;:&quot;Reset bearing to north&quot;,&quot;NavigationControl.ZoomIn&quot;:&quot;Zoom in&quot;,&quot;NavigationControl.ZoomOut&quot;:&quot;Zoom out&quot;,&quot;ScaleControl.Feet&quot;:&quot;ft&quot;,&quot;ScaleControl.Meters&quot;:&quot;m&quot;,&quot;ScaleControl.Kilometers&quot;:&quot;km&quot;,&quot;ScaleControl.Miles&quot;:&quot;mi&quot;,&quot;ScaleControl.NauticalMiles&quot;:&quot;nm&quot;},_i=t.window.HTMLImageElement,wi=t.window.HTMLElement,Ti=t.window.ImageBitmap,ki={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:&quot;sans-serif&quot;,transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Mi=function(n){function i(e){var r=this;if(null!=(e=t.extend({},ki,e)).minZoom&amp;&amp;null!=e.maxZoom&amp;&amp;e.minZoom&gt;e.maxZoom)throw new Error(&quot;maxZoom must be greater than or equal to minZoom&quot;);if(null!=e.minPitch&amp;&amp;null!=e.maxPitch&amp;&amp;e.minPitch&gt;e.maxPitch)throw new Error(&quot;maxPitch must be greater than or equal to minPitch&quot;);if(null!=e.minPitch&amp;&amp;e.minPitch&lt;0)throw new Error(&quot;minPitch must be greater than or equal to 0&quot;);if(null!=e.maxPitch&amp;&amp;e.maxPitch&gt;60)throw new Error(&quot;maxPitch must be less than or equal to 60&quot;);var i=new wn(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies);if(n.call(this,i,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new xi,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},bi,e.locale),this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken),&quot;string&quot;==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error(&quot;Container '&quot;+e.container+&quot;' not found.&quot;)}else{if(!(e.container instanceof wi))throw new Error(&quot;Invalid type: 'container' must be a String or HTMLElement.&quot;);this._container=e.container}if(e.maxBounds&amp;&amp;this.setMaxBounds(e.maxBounds),t.bindAll([&quot;_onWindowOnline&quot;,&quot;_onWindowResize&quot;,&quot;_contextLost&quot;,&quot;_contextRestored&quot;],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error(&quot;Failed to initialize WebGL.&quot;);this.on(&quot;move&quot;,(function(){return r._update(!1)})),this.on(&quot;moveend&quot;,(function(){return r._update(!1)})),this.on(&quot;zoom&quot;,(function(){return r._update(!0)})),void 0!==t.window&amp;&amp;(t.window.addEventListener(&quot;online&quot;,this._onWindowOnline,!1),t.window.addEventListener(&quot;resize&quot;,this._onWindowResize,!1)),this.handlers=new gi(this,e),this._hash=e.hash&amp;&amp;new kn(&quot;string&quot;==typeof e.hash&amp;&amp;e.hash||void 0).addTo(this),this._hash&amp;&amp;this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&amp;&amp;(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&amp;&amp;this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&amp;&amp;this.addControl(new vi({customAttribution:e.customAttribution})),this.addControl(new yi,e.logoPosition),this.on(&quot;style.load&quot;,(function(){r.transform.unmodified&amp;&amp;r.jumpTo(r.style.stylesheet)})),this.on(&quot;data&quot;,(function(e){r._update(&quot;style&quot;===e.dataType),r.fire(new t.Event(e.dataType+&quot;data&quot;,e))})),this.on(&quot;dataloading&quot;,(function(e){r.fire(new t.Event(e.dataType+&quot;dataloading&quot;,e))}))}n&amp;&amp;(i.__proto__=n),(i.prototype=Object.create(n&amp;&amp;n.prototype)).constructor=i;var a={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return i.prototype._getMapId=function(){return this._mapId},i.prototype.addControl=function(e,r){if(void 0===r&amp;&amp;e.getDefaultPosition&amp;&amp;(r=e.getDefaultPosition()),void 0===r&amp;&amp;(r=&quot;top-right&quot;),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.&quot;)));var n=e.onAdd(this);this._controls.push(e);var i=this._controlPositions[r];return-1!==r.indexOf(&quot;bottom&quot;)?i.insertBefore(n,i.firstChild):i.appendChild(n),this},i.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.&quot;)));var r=this._controls.indexOf(e);return r&gt;-1&amp;&amp;this._controls.splice(r,1),e.onRemove(this),this},i.prototype.resize=function(e){var r=this._containerDimensions(),n=r[0],i=r[1];this._resizeCanvas(n,i),this.transform.resize(n,i),this.painter.resize(n,i);var a=!this._moving;return a&amp;&amp;(this.stop(),this.fire(new t.Event(&quot;movestart&quot;,e)).fire(new t.Event(&quot;move&quot;,e))),this.fire(new t.Event(&quot;resize&quot;,e)),a&amp;&amp;this.fire(new t.Event(&quot;moveend&quot;,e)),this},i.prototype.getBounds=function(){return this.transform.getBounds()},i.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},i.prototype.setMaxBounds=function(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()},i.prototype.setMinZoom=function(t){if((t=null==t?-2:t)&gt;=-2&amp;&amp;t&lt;=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()&lt;t&amp;&amp;this.setZoom(t),this;throw new Error(&quot;minZoom must be between -2 and the current maxZoom, inclusive&quot;)},i.prototype.getMinZoom=function(){return this.transform.minZoom},i.prototype.setMaxZoom=function(t){if((t=null==t?22:t)&gt;=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()&gt;t&amp;&amp;this.setZoom(t),this;throw new Error(&quot;maxZoom must be greater than the current minZoom&quot;)},i.prototype.getMaxZoom=function(){return this.transform.maxZoom},i.prototype.setMinPitch=function(t){if((t=null==t?0:t)&lt;0)throw new Error(&quot;minPitch must be greater than or equal to 0&quot;);if(t&gt;=0&amp;&amp;t&lt;=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()&lt;t&amp;&amp;this.setPitch(t),this;throw new Error(&quot;minPitch must be between 0 and the current maxPitch, inclusive&quot;)},i.prototype.getMinPitch=function(){return this.transform.minPitch},i.prototype.setMaxPitch=function(t){if((t=null==t?60:t)&gt;60)throw new Error(&quot;maxPitch must be less than or equal to 60&quot;);if(t&gt;=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()&gt;t&amp;&amp;this.setPitch(t),this;throw new Error(&quot;maxPitch must be greater than the current minPitch&quot;)},i.prototype.getMaxPitch=function(){return this.transform.maxPitch},i.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},i.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},i.prototype.project=function(e){return this.transform.locationPoint(t.LngLat.convert(e))},i.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},i.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},i.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},i.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},i.prototype._createDelegatedListener=function(t,e,r){var n,i=this;if(&quot;mouseenter&quot;===t||&quot;mouseover&quot;===t){var a=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){var o=i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[];o.length?a||(a=!0,r.call(i,new zn(t,i,n.originalEvent,{features:o}))):a=!1},mouseout:function(){a=!1}}}}if(&quot;mouseleave&quot;===t||&quot;mouseout&quot;===t){var o=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){(i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[]).length?o=!0:o&amp;&amp;(o=!1,r.call(i,new zn(t,i,n.originalEvent)))},mouseout:function(e){o&amp;&amp;(o=!1,r.call(i,new zn(t,i,e.originalEvent)))}}}}return{layer:e,listener:r,delegates:(n={},n[t]=function(t){var n=i.getLayer(e)?i.queryRenderedFeatures(t.point,{layers:[e]}):[];n.length&amp;&amp;(t.features=n,r.call(i,t),delete t.features)},n)}},i.prototype.on=function(t,e,r){if(void 0===r)return n.prototype.on.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(i),i.delegates)this.on(a,i.delegates[a]);return this},i.prototype.once=function(t,e,r){if(void 0===r)return n.prototype.once.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in i.delegates)this.once(a,i.delegates[a]);return this},i.prototype.off=function(t,e,r){var i=this;return void 0===r?n.prototype.off.call(this,t,e):(this._delegatedListeners&amp;&amp;this._delegatedListeners[t]&amp;&amp;function(n){for(var a=n[t],o=0;o&lt;a.length;o++){var s=a[o];if(s.layer===e&amp;&amp;s.listener===r){for(var l in s.delegates)i.off(l,s.delegates[l]);return a.splice(o,1),i}}}(this._delegatedListeners),this)},i.prototype.queryRenderedFeatures=function(e,r){if(!this.style)return[];var n;if(void 0!==r||void 0===e||e instanceof t.Point||Array.isArray(e)||(r=e,e=void 0),r=r||{},(e=e||[[0,0],[this.transform.width,this.transform.height]])instanceof t.Point||&quot;number&quot;==typeof e[0])n=[t.Point.convert(e)];else{var i=t.Point.convert(e[0]),a=t.Point.convert(e[1]);n=[i,new t.Point(a.x,i.y),a,new t.Point(i.x,a.y),i]}return this.style.queryRenderedFeatures(n,r,this.transform)},i.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},i.prototype.setStyle=function(e,r){return!1!==(r=t.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},r)).diff&amp;&amp;r.localIdeographFontFamily===this._localIdeographFontFamily&amp;&amp;this.style&amp;&amp;e?(this._diffStyle(e,r),this):(this._localIdeographFontFamily=r.localIdeographFontFamily,this._updateStyle(e,r))},i.prototype._getUIString=function(t){var e=this._locale[t];if(null==e)throw new Error(&quot;Missing UI string '&quot;+t+&quot;'&quot;);return e},i.prototype._updateStyle=function(t,e){return this.style&amp;&amp;(this.style.setEventedParent(null),this.style._remove()),t?(this.style=new qe(this,e||{}),this.style.setEventedParent(this,{style:this.style}),&quot;string&quot;==typeof t?this.style.loadURL(t):this.style.loadJSON(t),this):(delete this.style,this)},i.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new qe(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},i.prototype._diffStyle=function(e,r){var n=this;if(&quot;string&quot;==typeof e){var i=this._requestManager.normalizeStyleURL(e),a=this._requestManager.transformRequest(i,t.ResourceType.Style);t.getJSON(a,(function(e,i){e?n.fire(new t.ErrorEvent(e)):i&amp;&amp;n._updateDiff(i,r)}))}else&quot;object&quot;==typeof e&amp;&amp;this._updateDiff(e,r)},i.prototype._updateDiff=function(e,r){try{this.style.setState(e)&amp;&amp;this._update(!0)}catch(n){t.warnOnce(&quot;Unable to perform style diff: &quot;+(n.message||n.error||n)+&quot;.  Rebuilding the style from scratch.&quot;),this._updateStyle(e,r)}},i.prototype.getStyle=function(){if(this.style)return this.style.serialize()},i.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():t.warnOnce(&quot;There is no style added to the map.&quot;)},i.prototype.addSource=function(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)},i.prototype.isSourceLoaded=function(e){var r=this.style&amp;&amp;this.style.sourceCaches[e];if(void 0!==r)return r.loaded();this.fire(new t.ErrorEvent(new Error(&quot;There is no source with ID '&quot;+e+&quot;'&quot;)))},i.prototype.areTilesLoaded=function(){var t=this.style&amp;&amp;this.style.sourceCaches;for(var e in t){var r=t[e]._tiles;for(var n in r){var i=r[n];if(&quot;loaded&quot;!==i.state&amp;&amp;&quot;errored&quot;!==i.state)return!1}}return!0},i.prototype.addSourceType=function(t,e,r){return this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,r)},i.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0)},i.prototype.getSource=function(t){return this.style.getSource(t)},i.prototype.addImage=function(e,r,n){void 0===n&amp;&amp;(n={});var i=n.pixelRatio;void 0===i&amp;&amp;(i=1);var a=n.sdf;void 0===a&amp;&amp;(a=!1);var o=n.stretchX,s=n.stretchY,l=n.content;if(this._lazyInitEmptyStyle(),r instanceof _i||Ti&amp;&amp;r instanceof Ti){var c=t.browser.getImageData(r);this.style.addImage(e,{data:new t.RGBAImage({width:c.width,height:c.height},c.data),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:0})}else{if(void 0===r.width||void 0===r.height)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`&quot;)));var u=r;this.style.addImage(e,{data:new t.RGBAImage({width:r.width,height:r.height},new Uint8Array(r.data)),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:0,userImage:u}),u.onAdd&amp;&amp;u.onAdd(this,e)}},i.prototype.updateImage=function(e,r){var n=this.style.getImage(e);if(!n)return this.fire(new t.ErrorEvent(new Error(&quot;The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.&quot;)));var i=r instanceof _i||Ti&amp;&amp;r instanceof Ti?t.browser.getImageData(r):r,a=i.width,o=i.height,s=i.data;return void 0===a||void 0===o?this.fire(new t.ErrorEvent(new Error(&quot;Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`&quot;))):a!==n.data.width||o!==n.data.height?this.fire(new t.ErrorEvent(new Error(&quot;The width and height of the updated image must be that same as the previous version of the image&quot;))):(n.data.replace(s,!(r instanceof _i||Ti&amp;&amp;r instanceof Ti)),void this.style.updateImage(e,n))},i.prototype.hasImage=function(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error(&quot;Missing required image id&quot;))),!1)},i.prototype.removeImage=function(t){this.style.removeImage(t)},i.prototype.loadImage=function(e,r){t.getImage(this._requestManager.transformRequest(e,t.ResourceType.Image),r)},i.prototype.listImages=function(){return this.style.listImages()},i.prototype.addLayer=function(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)},i.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0)},i.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0)},i.prototype.getLayer=function(t){return this.style.getLayer(t)},i.prototype.setLayerZoomRange=function(t,e,r){return this.style.setLayerZoomRange(t,e,r),this._update(!0)},i.prototype.setFilter=function(t,e,r){return void 0===r&amp;&amp;(r={}),this.style.setFilter(t,e,r),this._update(!0)},i.prototype.getFilter=function(t){return this.style.getFilter(t)},i.prototype.setPaintProperty=function(t,e,r,n){return void 0===n&amp;&amp;(n={}),this.style.setPaintProperty(t,e,r,n),this._update(!0)},i.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},i.prototype.setLayoutProperty=function(t,e,r,n){return void 0===n&amp;&amp;(n={}),this.style.setLayoutProperty(t,e,r,n),this._update(!0)},i.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},i.prototype.setLight=function(t,e){return void 0===e&amp;&amp;(e={}),this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)},i.prototype.getLight=function(){return this.style.getLight()},i.prototype.setFeatureState=function(t,e){return this.style.setFeatureState(t,e),this._update()},i.prototype.removeFeatureState=function(t,e){return this.style.removeFeatureState(t,e),this._update()},i.prototype.getFeatureState=function(t){return this.style.getFeatureState(t)},i.prototype.getContainer=function(){return this._container},i.prototype.getCanvasContainer=function(){return this._canvasContainer},i.prototype.getCanvas=function(){return this._canvas},i.prototype._containerDimensions=function(){var t=0,e=0;return this._container&amp;&amp;(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]},i.prototype._detectMissingCSS=function(){&quot;rgb(250, 128, 114)&quot;!==t.window.getComputedStyle(this._missingCSSCanary).getPropertyValue(&quot;background-color&quot;)&amp;&amp;t.warnOnce(&quot;This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.&quot;)},i.prototype._setupContainer=function(){var t=this._container;t.classList.add(&quot;mapboxgl-map&quot;),(this._missingCSSCanary=r.create(&quot;div&quot;,&quot;mapboxgl-canary&quot;,t)).style.visibility=&quot;hidden&quot;,this._detectMissingCSS();var e=this._canvasContainer=r.create(&quot;div&quot;,&quot;mapboxgl-canvas-container&quot;,t);this._interactive&amp;&amp;e.classList.add(&quot;mapboxgl-interactive&quot;),this._canvas=r.create(&quot;canvas&quot;,&quot;mapboxgl-canvas&quot;,e),this._canvas.addEventListener(&quot;webglcontextlost&quot;,this._contextLost,!1),this._canvas.addEventListener(&quot;webglcontextrestored&quot;,this._contextRestored,!1),this._canvas.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),this._canvas.setAttribute(&quot;aria-label&quot;,&quot;Map&quot;);var n=this._containerDimensions();this._resizeCanvas(n[0],n[1]);var i=this._controlContainer=r.create(&quot;div&quot;,&quot;mapboxgl-control-container&quot;,t),a=this._controlPositions={};[&quot;top-left&quot;,&quot;top-right&quot;,&quot;bottom-left&quot;,&quot;bottom-right&quot;].forEach((function(t){a[t]=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl-&quot;+t,i)}))},i.prototype._resizeCanvas=function(e,r){var n=t.browser.devicePixelRatio||1;this._canvas.width=n*e,this._canvas.height=n*r,this._canvas.style.width=e+&quot;px&quot;,this._canvas.style.height=r+&quot;px&quot;},i.prototype._setupPainter=function(){var r=t.extend({},e.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),n=this._canvas.getContext(&quot;webgl&quot;,r)||this._canvas.getContext(&quot;experimental-webgl&quot;,r);n?(this.painter=new yn(n,this.transform),t.webpSupported.testSupport(n)):this.fire(new t.ErrorEvent(new Error(&quot;Failed to initialize WebGL&quot;)))},i.prototype._contextLost=function(e){e.preventDefault(),this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this.fire(new t.Event(&quot;webglcontextlost&quot;,{originalEvent:e}))},i.prototype._contextRestored=function(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event(&quot;webglcontextrestored&quot;,{originalEvent:e}))},i.prototype.loaded=function(){return!this._styleDirty&amp;&amp;!this._sourcesDirty&amp;&amp;!!this.style&amp;&amp;this.style.loaded()},i.prototype._update=function(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this},i.prototype._requestRenderFrame=function(t){return this._update(),this._renderTaskQueue.add(t)},i.prototype._cancelRenderFrame=function(t){this._renderTaskQueue.remove(t)},i.prototype._render=function(e){var r,n=this,i=0,a=this.painter.context.extTimerQuery;if(this.listens(&quot;gpu-timing-frame&quot;)&amp;&amp;(r=a.createQueryEXT(),a.beginQueryEXT(a.TIME_ELAPSED_EXT,r),i=t.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),!this._removed){var o=!1;if(this.style&amp;&amp;this._styleDirty){this._styleDirty=!1;var s=this.transform.zoom,l=t.browser.now();this.style.zoomHistory.update(s,l);var c=new t.EvaluationParameters(s,{now:l,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),u=c.crossFadingFactor();1===u&amp;&amp;u===this._crossFadingFactor||(o=!0,this._crossFadingFactor=u),this.style.update(c)}if(this.style&amp;&amp;this._sourcesDirty&amp;&amp;(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&amp;&amp;this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens(&quot;gpu-timing-layer&quot;)}),this.fire(new t.Event(&quot;render&quot;)),this.loaded()&amp;&amp;!this._loaded&amp;&amp;(this._loaded=!0,this.fire(new t.Event(&quot;load&quot;))),this.style&amp;&amp;(this.style.hasTransitions()||o)&amp;&amp;(this._styleDirty=!0),this.style&amp;&amp;!this._placementDirty&amp;&amp;this.style._releaseSymbolFadeTiles(),this.listens(&quot;gpu-timing-frame&quot;)){var f=t.browser.now()-i;a.endQueryEXT(a.TIME_ELAPSED_EXT,r),setTimeout((function(){var e=a.getQueryObjectEXT(r,a.QUERY_RESULT_EXT)/1e6;a.deleteQueryEXT(r),n.fire(new t.Event(&quot;gpu-timing-frame&quot;,{cpuTime:f,gpuTime:e}))}),50)}if(this.listens(&quot;gpu-timing-layer&quot;)){var h=this.painter.collectGpuTimers();setTimeout((function(){var e=n.painter.queryGpuTimers(h);n.fire(new t.Event(&quot;gpu-timing-layer&quot;,{layerTimes:e}))}),50)}return this._sourcesDirty||this._styleDirty||this._placementDirty||this._repaint?this.triggerRepaint():!this.isMoving()&amp;&amp;this.loaded()&amp;&amp;(this._fullyLoaded||(this._fullyLoaded=!0),this.fire(new t.Event(&quot;idle&quot;))),this}},i.prototype.remove=function(){this._hash&amp;&amp;this._hash.remove();for(var e=0,r=this._controls;e&lt;r.length;e+=1)r[e].onRemove(this);this._controls=[],this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),void 0!==t.window&amp;&amp;(t.window.removeEventListener(&quot;resize&quot;,this._onWindowResize,!1),t.window.removeEventListener(&quot;online&quot;,this._onWindowOnline,!1));var n=this.painter.context.gl.getExtension(&quot;WEBGL_lose_context&quot;);n&amp;&amp;n.loseContext(),Ai(this._canvasContainer),Ai(this._controlContainer),Ai(this._missingCSSCanary),this._container.classList.remove(&quot;mapboxgl-map&quot;),this._removed=!0,this.fire(new t.Event(&quot;remove&quot;))},i.prototype.triggerRepaint=function(){var e=this;this.style&amp;&amp;!this._frame&amp;&amp;(this._frame=t.browser.frame((function(t){e._frame=null,e._render(t)})))},i.prototype._onWindowOnline=function(){this._update()},i.prototype._onWindowResize=function(t){this._trackResize&amp;&amp;this.resize({originalEvent:t})._update()},a.showTileBoundaries.get=function(){return!!this._showTileBoundaries},a.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&amp;&amp;(this._showTileBoundaries=t,this._update())},a.showPadding.get=function(){return!!this._showPadding},a.showPadding.set=function(t){this._showPadding!==t&amp;&amp;(this._showPadding=t,this._update())},a.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},a.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&amp;&amp;(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())},a.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},a.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&amp;&amp;(this._showOverdrawInspector=t,this._update())},a.repaint.get=function(){return!!this._repaint},a.repaint.set=function(t){this._repaint!==t&amp;&amp;(this._repaint=t,this.triggerRepaint())},a.vertices.get=function(){return!!this._vertices},a.vertices.set=function(t){this._vertices=t,this._update()},i.prototype._setCacheLimits=function(e,r){t.setCacheLimits(e,r)},a.version.get=function(){return t.version},Object.defineProperties(i.prototype,a),i}(mi);function Ai(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)}var Si={showCompass:!0,showZoom:!0,visualizePitch:!1},Ei=function(e){var n=this;this.options=t.extend({},Si,e),this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),this._container.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault()})),this.options.showZoom&amp;&amp;(t.bindAll([&quot;_setButtonTitle&quot;,&quot;_updateZoomButtons&quot;],this),this._zoomInButton=this._createButton(&quot;mapboxgl-ctrl-zoom-in&quot;,(function(t){return n._map.zoomIn({},{originalEvent:t})})),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._zoomInButton).setAttribute(&quot;aria-hidden&quot;,!0),this._zoomOutButton=this._createButton(&quot;mapboxgl-ctrl-zoom-out&quot;,(function(t){return n._map.zoomOut({},{originalEvent:t})})),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._zoomOutButton).setAttribute(&quot;aria-hidden&quot;,!0)),this.options.showCompass&amp;&amp;(t.bindAll([&quot;_rotateCompassArrow&quot;],this),this._compass=this._createButton(&quot;mapboxgl-ctrl-compass&quot;,(function(t){n.options.visualizePitch?n._map.resetNorthPitch({},{originalEvent:t}):n._map.resetNorth({},{originalEvent:t})})),this._compassIcon=r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._compass),this._compassIcon.setAttribute(&quot;aria-hidden&quot;,!0))};Ei.prototype._updateZoomButtons=function(){var t=this._map.getZoom();this._zoomInButton.disabled=t===this._map.getMaxZoom(),this._zoomOutButton.disabled=t===this._map.getMinZoom()},Ei.prototype._rotateCompassArrow=function(){var t=this.options.visualizePitch?&quot;scale(&quot;+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+&quot;) rotateX(&quot;+this._map.transform.pitch+&quot;deg) rotateZ(&quot;+this._map.transform.angle*(180/Math.PI)+&quot;deg)&quot;:&quot;rotate(&quot;+this._map.transform.angle*(180/Math.PI)+&quot;deg)&quot;;this._compassIcon.style.transform=t},Ei.prototype.onAdd=function(t){return this._map=t,this.options.showZoom&amp;&amp;(this._setButtonTitle(this._zoomInButton,&quot;ZoomIn&quot;),this._setButtonTitle(this._zoomOutButton,&quot;ZoomOut&quot;),this._map.on(&quot;zoom&quot;,this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&amp;&amp;(this._setButtonTitle(this._compass,&quot;ResetBearing&quot;),this.options.visualizePitch&amp;&amp;this._map.on(&quot;pitch&quot;,this._rotateCompassArrow),this._map.on(&quot;rotate&quot;,this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Ci(this._map,this._compass,this.options.visualizePitch)),this._container},Ei.prototype.onRemove=function(){r.remove(this._container),this.options.showZoom&amp;&amp;this._map.off(&quot;zoom&quot;,this._updateZoomButtons),this.options.showCompass&amp;&amp;(this.options.visualizePitch&amp;&amp;this._map.off(&quot;pitch&quot;,this._rotateCompassArrow),this._map.off(&quot;rotate&quot;,this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map},Ei.prototype._createButton=function(t,e){var n=r.create(&quot;button&quot;,t,this._container);return n.type=&quot;button&quot;,n.addEventListener(&quot;click&quot;,e),n},Ei.prototype._setButtonTitle=function(t,e){var r=this._map._getUIString(&quot;NavigationControl.&quot;+e);t.title=r,t.setAttribute(&quot;aria-label&quot;,r)};var Ci=function(e,n,i){void 0===i&amp;&amp;(i=!1),this._clickTolerance=10,this.element=n,this.mouseRotate=new Gn({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,i&amp;&amp;(this.mousePitch=new Yn({clickTolerance:e.dragRotate._mousePitch._clickTolerance})),t.bindAll([&quot;mousedown&quot;,&quot;mousemove&quot;,&quot;mouseup&quot;,&quot;touchstart&quot;,&quot;touchmove&quot;,&quot;touchend&quot;,&quot;reset&quot;],this),r.addEventListener(n,&quot;mousedown&quot;,this.mousedown),r.addEventListener(n,&quot;touchstart&quot;,this.touchstart,{passive:!1}),r.addEventListener(n,&quot;touchmove&quot;,this.touchmove),r.addEventListener(n,&quot;touchend&quot;,this.touchend),r.addEventListener(n,&quot;touchcancel&quot;,this.reset)};function Li(e,r,n){if(e=new t.LngLat(e.lng,e.lat),r){var i=new t.LngLat(e.lng-360,e.lat),a=new t.LngLat(e.lng+360,e.lat),o=n.locationPoint(e).distSqr(r);n.locationPoint(i).distSqr(r)&lt;o?e=i:n.locationPoint(a).distSqr(r)&lt;o&amp;&amp;(e=a)}for(;Math.abs(e.lng-n.center.lng)&gt;180;){var s=n.locationPoint(e);if(s.x&gt;=0&amp;&amp;s.y&gt;=0&amp;&amp;s.x&lt;=n.width&amp;&amp;s.y&lt;=n.height)break;e.lng&gt;n.center.lng?e.lng-=360:e.lng+=360}return e}Ci.prototype.down=function(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&amp;&amp;this.mousePitch.mousedown(t,e),r.disableDrag()},Ci.prototype.move=function(t,e){var r=this.map,n=this.mouseRotate.mousemoveWindow(t,e);if(n&amp;&amp;n.bearingDelta&amp;&amp;r.setBearing(r.getBearing()+n.bearingDelta),this.mousePitch){var i=this.mousePitch.mousemoveWindow(t,e);i&amp;&amp;i.pitchDelta&amp;&amp;r.setPitch(r.getPitch()+i.pitchDelta)}},Ci.prototype.off=function(){var t=this.element;r.removeEventListener(t,&quot;mousedown&quot;,this.mousedown),r.removeEventListener(t,&quot;touchstart&quot;,this.touchstart,{passive:!1}),r.removeEventListener(t,&quot;touchmove&quot;,this.touchmove),r.removeEventListener(t,&quot;touchend&quot;,this.touchend),r.removeEventListener(t,&quot;touchcancel&quot;,this.reset),this.offTemp()},Ci.prototype.offTemp=function(){r.enableDrag(),r.removeEventListener(t.window,&quot;mousemove&quot;,this.mousemove),r.removeEventListener(t.window,&quot;mouseup&quot;,this.mouseup)},Ci.prototype.mousedown=function(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:function(){return e.preventDefault()}}),r.mousePos(this.element,e)),r.addEventListener(t.window,&quot;mousemove&quot;,this.mousemove),r.addEventListener(t.window,&quot;mouseup&quot;,this.mouseup)},Ci.prototype.mousemove=function(t){this.move(t,r.mousePos(this.element,t))},Ci.prototype.mouseup=function(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&amp;&amp;this.mousePitch.mouseupWindow(t),this.offTemp()},Ci.prototype.touchstart=function(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.down({type:&quot;mousedown&quot;,button:0,ctrlKey:!0,preventDefault:function(){return t.preventDefault()}},this._startPos))},Ci.prototype.touchmove=function(t){1!==t.targetTouches.length?this.reset():(this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:function(){return t.preventDefault()}},this._lastPos))},Ci.prototype.touchend=function(t){0===t.targetTouches.length&amp;&amp;this._startPos&amp;&amp;this._lastPos&amp;&amp;this._startPos.dist(this._lastPos)&lt;this._clickTolerance&amp;&amp;this.element.click(),this.reset()},Ci.prototype.reset=function(){this.mouseRotate.reset(),this.mousePitch&amp;&amp;this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()};var Ii={center:&quot;translate(-50%,-50%)&quot;,top:&quot;translate(-50%,0)&quot;,&quot;top-left&quot;:&quot;translate(0,0)&quot;,&quot;top-right&quot;:&quot;translate(-100%,0)&quot;,bottom:&quot;translate(-50%,-100%)&quot;,&quot;bottom-left&quot;:&quot;translate(0,-100%)&quot;,&quot;bottom-right&quot;:&quot;translate(-100%,-100%)&quot;,left:&quot;translate(0,-50%)&quot;,right:&quot;translate(-100%,-50%)&quot;};function Pi(t,e,r){var n=t.classList;for(var i in Ii)n.remove(&quot;mapboxgl-&quot;+r+&quot;-anchor-&quot;+i);n.add(&quot;mapboxgl-&quot;+r+&quot;-anchor-&quot;+e)}var zi,Oi=function(e){function n(n,i){var a=this;if(e.call(this),(n instanceof t.window.HTMLElement||i)&amp;&amp;(n=t.extend({element:n},i)),t.bindAll([&quot;_update&quot;,&quot;_onMove&quot;,&quot;_onUp&quot;,&quot;_addDragHandler&quot;,&quot;_onMapClick&quot;,&quot;_onKeyPress&quot;],this),this._anchor=n&amp;&amp;n.anchor||&quot;center&quot;,this._color=n&amp;&amp;n.color||&quot;#3FB1CE&quot;,this._draggable=n&amp;&amp;n.draggable||!1,this._state=&quot;inactive&quot;,this._rotation=n&amp;&amp;n.rotation||0,this._rotationAlignment=n&amp;&amp;n.rotationAlignment||&quot;auto&quot;,this._pitchAlignment=n&amp;&amp;n.pitchAlignment&amp;&amp;&quot;auto&quot;!==n.pitchAlignment?n.pitchAlignment:this._rotationAlignment,n&amp;&amp;n.element)this._element=n.element,this._offset=t.Point.convert(n&amp;&amp;n.offset||[0,0]);else{this._defaultMarker=!0,this._element=r.create(&quot;div&quot;),this._element.setAttribute(&quot;aria-label&quot;,&quot;Map marker&quot;);var o=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);o.setAttributeNS(null,&quot;display&quot;,&quot;block&quot;),o.setAttributeNS(null,&quot;height&quot;,&quot;41px&quot;),o.setAttributeNS(null,&quot;width&quot;,&quot;27px&quot;),o.setAttributeNS(null,&quot;viewBox&quot;,&quot;0 0 27 41&quot;);var s=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);s.setAttributeNS(null,&quot;stroke&quot;,&quot;none&quot;),s.setAttributeNS(null,&quot;stroke-width&quot;,&quot;1&quot;),s.setAttributeNS(null,&quot;fill&quot;,&quot;none&quot;),s.setAttributeNS(null,&quot;fill-rule&quot;,&quot;evenodd&quot;);var l=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);l.setAttributeNS(null,&quot;fill-rule&quot;,&quot;nonzero&quot;);var c=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);c.setAttributeNS(null,&quot;transform&quot;,&quot;translate(3.0, 29.0)&quot;),c.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;);for(var u=0,f=[{rx:&quot;10.5&quot;,ry:&quot;5.25002273&quot;},{rx:&quot;10.5&quot;,ry:&quot;5.25002273&quot;},{rx:&quot;9.5&quot;,ry:&quot;4.77275007&quot;},{rx:&quot;8.5&quot;,ry:&quot;4.29549936&quot;},{rx:&quot;7.5&quot;,ry:&quot;3.81822308&quot;},{rx:&quot;6.5&quot;,ry:&quot;3.34094679&quot;},{rx:&quot;5.5&quot;,ry:&quot;2.86367051&quot;},{rx:&quot;4.5&quot;,ry:&quot;2.38636864&quot;}];u&lt;f.length;u+=1){var h=f[u],p=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;ellipse&quot;);p.setAttributeNS(null,&quot;opacity&quot;,&quot;0.04&quot;),p.setAttributeNS(null,&quot;cx&quot;,&quot;10.5&quot;),p.setAttributeNS(null,&quot;cy&quot;,&quot;5.80029008&quot;),p.setAttributeNS(null,&quot;rx&quot;,h.rx),p.setAttributeNS(null,&quot;ry&quot;,h.ry),c.appendChild(p)}var d=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);d.setAttributeNS(null,&quot;fill&quot;,this._color);var g=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;path&quot;);g.setAttributeNS(null,&quot;d&quot;,&quot;M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z&quot;),d.appendChild(g);var m=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);m.setAttributeNS(null,&quot;opacity&quot;,&quot;0.25&quot;),m.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;);var v=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;path&quot;);v.setAttributeNS(null,&quot;d&quot;,&quot;M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z&quot;),m.appendChild(v);var y=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);y.setAttributeNS(null,&quot;transform&quot;,&quot;translate(6.0, 7.0)&quot;),y.setAttributeNS(null,&quot;fill&quot;,&quot;#FFFFFF&quot;);var x=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);x.setAttributeNS(null,&quot;transform&quot;,&quot;translate(8.0, 8.0)&quot;);var b=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;circle&quot;);b.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;),b.setAttributeNS(null,&quot;opacity&quot;,&quot;0.25&quot;),b.setAttributeNS(null,&quot;cx&quot;,&quot;5.5&quot;),b.setAttributeNS(null,&quot;cy&quot;,&quot;5.5&quot;),b.setAttributeNS(null,&quot;r&quot;,&quot;5.4999962&quot;);var _=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;circle&quot;);_.setAttributeNS(null,&quot;fill&quot;,&quot;#FFFFFF&quot;),_.setAttributeNS(null,&quot;cx&quot;,&quot;5.5&quot;),_.setAttributeNS(null,&quot;cy&quot;,&quot;5.5&quot;),_.setAttributeNS(null,&quot;r&quot;,&quot;5.4999962&quot;),x.appendChild(b),x.appendChild(_),l.appendChild(c),l.appendChild(d),l.appendChild(m),l.appendChild(y),l.appendChild(x),o.appendChild(l),this._element.appendChild(o),this._offset=t.Point.convert(n&amp;&amp;n.offset||[0,-14])}this._element.classList.add(&quot;mapboxgl-marker&quot;),this._element.addEventListener(&quot;dragstart&quot;,(function(t){t.preventDefault()})),this._element.addEventListener(&quot;mousedown&quot;,(function(t){t.preventDefault()})),this._element.addEventListener(&quot;focus&quot;,(function(){var t=a._map.getContainer();t.scrollTop=0,t.scrollLeft=0})),Pi(this._element,this._anchor,&quot;marker&quot;),this._popup=null}return e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n,n.prototype.addTo=function(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on(&quot;move&quot;,this._update),t.on(&quot;moveend&quot;,this._update),this.setDraggable(this._draggable),this._update(),this._map.on(&quot;click&quot;,this._onMapClick),this},n.prototype.remove=function(){return this._map&amp;&amp;(this._map.off(&quot;click&quot;,this._onMapClick),this._map.off(&quot;move&quot;,this._update),this._map.off(&quot;moveend&quot;,this._update),this._map.off(&quot;mousedown&quot;,this._addDragHandler),this._map.off(&quot;touchstart&quot;,this._addDragHandler),this._map.off(&quot;mouseup&quot;,this._onUp),this._map.off(&quot;touchend&quot;,this._onUp),this._map.off(&quot;mousemove&quot;,this._onMove),this._map.off(&quot;touchmove&quot;,this._onMove),delete this._map),r.remove(this._element),this._popup&amp;&amp;this._popup.remove(),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._popup&amp;&amp;this._popup.setLngLat(this._lngLat),this._update(),this},n.prototype.getElement=function(){return this._element},n.prototype.setPopup=function(t){if(this._popup&amp;&amp;(this._popup.remove(),this._popup=null,this._element.removeEventListener(&quot;keypress&quot;,this._onKeyPress),this._originalTabIndex||this._element.removeAttribute(&quot;tabindex&quot;)),t){if(!(&quot;offset&quot;in t.options)){var e=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],&quot;top-left&quot;:[0,0],&quot;top-right&quot;:[0,0],bottom:[0,-38.1],&quot;bottom-left&quot;:[e,-1*(24.6+e)],&quot;bottom-right&quot;:[-e,-1*(24.6+e)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._lngLat&amp;&amp;this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute(&quot;tabindex&quot;),this._originalTabIndex||this._element.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),this._element.addEventListener(&quot;keypress&quot;,this._onKeyPress)}return this},n.prototype._onKeyPress=function(t){var e=t.code,r=t.charCode||t.keyCode;&quot;Space&quot;!==e&amp;&amp;&quot;Enter&quot;!==e&amp;&amp;32!==r&amp;&amp;13!==r||this.togglePopup()},n.prototype._onMapClick=function(t){var e=t.originalEvent.target,r=this._element;this._popup&amp;&amp;(e===r||r.contains(e))&amp;&amp;this.togglePopup()},n.prototype.getPopup=function(){return this._popup},n.prototype.togglePopup=function(){var t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this},n.prototype._update=function(t){if(this._map){this._map.transform.renderWorldCopies&amp;&amp;(this._lngLat=Li(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);var e=&quot;&quot;;&quot;viewport&quot;===this._rotationAlignment||&quot;auto&quot;===this._rotationAlignment?e=&quot;rotateZ(&quot;+this._rotation+&quot;deg)&quot;:&quot;map&quot;===this._rotationAlignment&amp;&amp;(e=&quot;rotateZ(&quot;+(this._rotation-this._map.getBearing())+&quot;deg)&quot;);var n=&quot;&quot;;&quot;viewport&quot;===this._pitchAlignment||&quot;auto&quot;===this._pitchAlignment?n=&quot;rotateX(0deg)&quot;:&quot;map&quot;===this._pitchAlignment&amp;&amp;(n=&quot;rotateX(&quot;+this._map.getPitch()+&quot;deg)&quot;),t&amp;&amp;&quot;moveend&quot;!==t.type||(this._pos=this._pos.round()),r.setTransform(this._element,Ii[this._anchor]+&quot; translate(&quot;+this._pos.x+&quot;px, &quot;+this._pos.y+&quot;px) &quot;+n+&quot; &quot;+e)}},n.prototype.getOffset=function(){return this._offset},n.prototype.setOffset=function(e){return this._offset=t.Point.convert(e),this._update(),this},n.prototype._onMove=function(e){this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents=&quot;none&quot;,&quot;pending&quot;===this._state&amp;&amp;(this._state=&quot;active&quot;,this.fire(new t.Event(&quot;dragstart&quot;))),this.fire(new t.Event(&quot;drag&quot;))},n.prototype._onUp=function(){this._element.style.pointerEvents=&quot;auto&quot;,this._positionDelta=null,this._map.off(&quot;mousemove&quot;,this._onMove),this._map.off(&quot;touchmove&quot;,this._onMove),&quot;active&quot;===this._state&amp;&amp;this.fire(new t.Event(&quot;dragend&quot;)),this._state=&quot;inactive&quot;},n.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&amp;&amp;(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._state=&quot;pending&quot;,this._map.on(&quot;mousemove&quot;,this._onMove),this._map.on(&quot;touchmove&quot;,this._onMove),this._map.once(&quot;mouseup&quot;,this._onUp),this._map.once(&quot;touchend&quot;,this._onUp))},n.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&amp;&amp;(t?(this._map.on(&quot;mousedown&quot;,this._addDragHandler),this._map.on(&quot;touchstart&quot;,this._addDragHandler)):(this._map.off(&quot;mousedown&quot;,this._addDragHandler),this._map.off(&quot;touchstart&quot;,this._addDragHandler))),this},n.prototype.isDraggable=function(){return this._draggable},n.prototype.setRotation=function(t){return this._rotation=t||0,this._update(),this},n.prototype.getRotation=function(){return this._rotation},n.prototype.setRotationAlignment=function(t){return this._rotationAlignment=t||&quot;auto&quot;,this._update(),this},n.prototype.getRotationAlignment=function(){return this._rotationAlignment},n.prototype.setPitchAlignment=function(t){return this._pitchAlignment=t&amp;&amp;&quot;auto&quot;!==t?t:this._rotationAlignment,this._update(),this},n.prototype.getPitchAlignment=function(){return this._pitchAlignment},n}(t.Evented),Di={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Ri=0,Fi=!1,Bi=function(e){function n(r){e.call(this),this.options=t.extend({},Di,r),t.bindAll([&quot;_onSuccess&quot;,&quot;_onError&quot;,&quot;_onZoom&quot;,&quot;_finish&quot;,&quot;_setupUI&quot;,&quot;_updateCamera&quot;,&quot;_updateMarker&quot;],this)}return e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n,n.prototype.onAdd=function(e){var n;return this._map=e,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),n=this._setupUI,void 0!==zi?n(zi):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:&quot;geolocation&quot;}).then((function(t){n(zi=&quot;denied&quot;!==t.state)})):n(zi=!!t.window.navigator.geolocation),this._container},n.prototype.onRemove=function(){void 0!==this._geolocationWatchID&amp;&amp;(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&amp;&amp;this._userLocationDotMarker&amp;&amp;this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&amp;&amp;this._accuracyCircleMarker&amp;&amp;this._accuracyCircleMarker.remove(),r.remove(this._container),this._map.off(&quot;zoom&quot;,this._onZoom),this._map=void 0,Ri=0,Fi=!1},n.prototype._isOutOfMapMaxBounds=function(t){var e=this._map.getMaxBounds(),r=t.coords;return e&amp;&amp;(r.longitude&lt;e.getWest()||r.longitude&gt;e.getEast()||r.latitude&lt;e.getSouth()||r.latitude&gt;e.getNorth())},n.prototype._setErrorState=function(){switch(this._watchState){case&quot;WAITING_ACTIVE&quot;:this._watchState=&quot;ACTIVE_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;);break;case&quot;ACTIVE_LOCK&quot;:this._watchState=&quot;ACTIVE_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;);break;case&quot;BACKGROUND&quot;:this._watchState=&quot;BACKGROUND_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;)}},n.prototype._onSuccess=function(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event(&quot;outofmaxbounds&quot;,e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case&quot;WAITING_ACTIVE&quot;:case&quot;ACTIVE_LOCK&quot;:case&quot;ACTIVE_ERROR&quot;:this._watchState=&quot;ACTIVE_LOCK&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;BACKGROUND&quot;:case&quot;BACKGROUND_ERROR&quot;:this._watchState=&quot;BACKGROUND&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;)}this.options.showUserLocation&amp;&amp;&quot;OFF&quot;!==this._watchState&amp;&amp;this._updateMarker(e),this.options.trackUserLocation&amp;&amp;&quot;ACTIVE_LOCK&quot;!==this._watchState||this._updateCamera(e),this.options.showUserLocation&amp;&amp;this._dotElement.classList.remove(&quot;mapboxgl-user-location-dot-stale&quot;),this.fire(new t.Event(&quot;geolocate&quot;,e)),this._finish()}},n.prototype._updateCamera=function(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude),n=e.coords.accuracy,i=this._map.getBearing(),a=t.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(r.toBounds(n),a,{geolocateSource:!0})},n.prototype._updateMarker=function(e){if(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&amp;&amp;this.options.showAccuracyCircle&amp;&amp;this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},n.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),r=this._map.unproject([1,t]),n=e.distanceTo(r),i=Math.ceil(2*this._accuracy/n);this._circleElement.style.width=i+&quot;px&quot;,this._circleElement.style.height=i+&quot;px&quot;},n.prototype._onZoom=function(){this.options.showUserLocation&amp;&amp;this.options.showAccuracyCircle&amp;&amp;this._updateCircleRadius()},n.prototype._onError=function(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState=&quot;OFF&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.disabled=!0;var r=this._map._getUIString(&quot;GeolocateControl.LocationNotAvailable&quot;);this._geolocateButton.title=r,this._geolocateButton.setAttribute(&quot;aria-label&quot;,r),void 0!==this._geolocationWatchID&amp;&amp;this._clearWatch()}else{if(3===e.code&amp;&amp;Fi)return;this._setErrorState()}&quot;OFF&quot;!==this._watchState&amp;&amp;this.options.showUserLocation&amp;&amp;this._dotElement.classList.add(&quot;mapboxgl-user-location-dot-stale&quot;),this.fire(new t.Event(&quot;error&quot;,e)),this._finish()}},n.prototype._finish=function(){this._timeoutId&amp;&amp;clearTimeout(this._timeoutId),this._timeoutId=void 0},n.prototype._setupUI=function(e){var n=this;if(this._container.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault()})),this._geolocateButton=r.create(&quot;button&quot;,&quot;mapboxgl-ctrl-geolocate&quot;,this._container),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._geolocateButton).setAttribute(&quot;aria-hidden&quot;,!0),this._geolocateButton.type=&quot;button&quot;,!1===e){t.warnOnce(&quot;Geolocation support is not available so the GeolocateControl will be disabled.&quot;);var i=this._map._getUIString(&quot;GeolocateControl.LocationNotAvailable&quot;);this._geolocateButton.disabled=!0,this._geolocateButton.title=i,this._geolocateButton.setAttribute(&quot;aria-label&quot;,i)}else{var a=this._map._getUIString(&quot;GeolocateControl.FindMyLocation&quot;);this._geolocateButton.title=a,this._geolocateButton.setAttribute(&quot;aria-label&quot;,a)}this.options.trackUserLocation&amp;&amp;(this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;false&quot;),this._watchState=&quot;OFF&quot;),this.options.showUserLocation&amp;&amp;(this._dotElement=r.create(&quot;div&quot;,&quot;mapboxgl-user-location-dot&quot;),this._userLocationDotMarker=new Oi(this._dotElement),this._circleElement=r.create(&quot;div&quot;,&quot;mapboxgl-user-location-accuracy-circle&quot;),this._accuracyCircleMarker=new Oi({element:this._circleElement,pitchAlignment:&quot;map&quot;}),this.options.trackUserLocation&amp;&amp;(this._watchState=&quot;OFF&quot;),this._map.on(&quot;zoom&quot;,this._onZoom)),this._geolocateButton.addEventListener(&quot;click&quot;,this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&amp;&amp;this._map.on(&quot;movestart&quot;,(function(e){e.geolocateSource||&quot;ACTIVE_LOCK&quot;!==n._watchState||e.originalEvent&amp;&amp;&quot;resize&quot;===e.originalEvent.type||(n._watchState=&quot;BACKGROUND&quot;,n._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;),n._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),n.fire(new t.Event(&quot;trackuserlocationend&quot;)))}))},n.prototype.trigger=function(){if(!this._setup)return t.warnOnce(&quot;Geolocate control triggered before added to a map&quot;),!1;if(this.options.trackUserLocation){switch(this._watchState){case&quot;OFF&quot;:this._watchState=&quot;WAITING_ACTIVE&quot;,this.fire(new t.Event(&quot;trackuserlocationstart&quot;));break;case&quot;WAITING_ACTIVE&quot;:case&quot;ACTIVE_LOCK&quot;:case&quot;ACTIVE_ERROR&quot;:case&quot;BACKGROUND_ERROR&quot;:Ri--,Fi=!1,this._watchState=&quot;OFF&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this.fire(new t.Event(&quot;trackuserlocationend&quot;));break;case&quot;BACKGROUND&quot;:this._watchState=&quot;ACTIVE_LOCK&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._lastKnownPosition&amp;&amp;this._updateCamera(this._lastKnownPosition),this.fire(new t.Event(&quot;trackuserlocationstart&quot;))}switch(this._watchState){case&quot;WAITING_ACTIVE&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;ACTIVE_LOCK&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;ACTIVE_ERROR&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;);break;case&quot;BACKGROUND&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;);break;case&quot;BACKGROUND_ERROR&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background-error&quot;)}if(&quot;OFF&quot;===this._watchState&amp;&amp;void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var e;this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;true&quot;),++Ri&gt;1?(e={maximumAge:6e5,timeout:0},Fi=!0):(e=this.options.positionOptions,Fi=!1),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},n.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;false&quot;),this.options.showUserLocation&amp;&amp;this._updateMarker(null)},n}(t.Evented),Ni={maxWidth:100,unit:&quot;metric&quot;},ji=function(e){this.options=t.extend({},Ni,e),t.bindAll([&quot;_onMove&quot;,&quot;setUnit&quot;],this)};function Ui(t,e,r){var n=r&amp;&amp;r.maxWidth||100,i=t._container.clientHeight/2,a=t.unproject([0,i]),o=t.unproject([n,i]),s=a.distanceTo(o);if(r&amp;&amp;&quot;imperial&quot;===r.unit){var l=3.2808*s;l&gt;5280?Vi(e,n,l/5280,t._getUIString(&quot;ScaleControl.Miles&quot;)):Vi(e,n,l,t._getUIString(&quot;ScaleControl.Feet&quot;))}else r&amp;&amp;&quot;nautical&quot;===r.unit?Vi(e,n,s/1852,t._getUIString(&quot;ScaleControl.NauticalMiles&quot;)):s&gt;=1e3?Vi(e,n,s/1e3,t._getUIString(&quot;ScaleControl.Kilometers&quot;)):Vi(e,n,s,t._getUIString(&quot;ScaleControl.Meters&quot;))}function Vi(t,e,r,n){var i,a,o,s=(i=r,(a=Math.pow(10,(&quot;&quot;+Math.floor(i)).length-1))*(o=(o=i/a)&gt;=10?10:o&gt;=5?5:o&gt;=3?3:o&gt;=2?2:o&gt;=1?1:function(t){var e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(o)));t.style.width=e*(s/r)+&quot;px&quot;,t.innerHTML=s+&quot;&amp;nbsp;&quot;+n}ji.prototype.getDefaultPosition=function(){return&quot;bottom-left&quot;},ji.prototype._onMove=function(){Ui(this._map,this._container,this.options)},ji.prototype.onAdd=function(t){return this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-scale&quot;,t.getContainer()),this._map.on(&quot;move&quot;,this._onMove),this._onMove(),this._container},ji.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;move&quot;,this._onMove),this._map=void 0},ji.prototype.setUnit=function(t){this.options.unit=t,Ui(this._map,this._container,this.options)};var qi=function(e){this._fullscreen=!1,e&amp;&amp;e.container&amp;&amp;(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce(&quot;Full screen control 'container' must be a DOM element.&quot;)),t.bindAll([&quot;_onClickFullscreen&quot;,&quot;_changeIcon&quot;],this),&quot;onfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;fullscreenchange&quot;:&quot;onmozfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;mozfullscreenchange&quot;:&quot;onwebkitfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;webkitfullscreenchange&quot;:&quot;onmsfullscreenchange&quot;in t.window.document&amp;&amp;(this._fullscreenchange=&quot;MSFullscreenChange&quot;)};qi.prototype.onAdd=function(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display=&quot;none&quot;,t.warnOnce(&quot;This device does not support fullscreen mode.&quot;)),this._controlContainer},qi.prototype.onRemove=function(){r.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},qi.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},qi.prototype._setupUI=function(){var e=this._fullscreenButton=r.create(&quot;button&quot;,&quot;mapboxgl-ctrl-fullscreen&quot;,this._controlContainer);r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,e).setAttribute(&quot;aria-hidden&quot;,!0),e.type=&quot;button&quot;,this._updateTitle(),this._fullscreenButton.addEventListener(&quot;click&quot;,this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},qi.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute(&quot;aria-label&quot;,t),this._fullscreenButton.title=t},qi.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?&quot;FullscreenControl.Exit&quot;:&quot;FullscreenControl.Enter&quot;)},qi.prototype._isFullscreen=function(){return this._fullscreen},qi.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._container!==this._fullscreen&amp;&amp;(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle(&quot;mapboxgl-ctrl-shrink&quot;),this._fullscreenButton.classList.toggle(&quot;mapboxgl-ctrl-fullscreen&quot;),this._updateTitle())},qi.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&amp;&amp;t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&amp;&amp;this._container.webkitRequestFullscreen()};var Hi={closeButton:!0,closeOnClick:!0,className:&quot;&quot;,maxWidth:&quot;240px&quot;},Gi=function(e){function n(r){e.call(this),this.options=t.extend(Object.create(Hi),r),t.bindAll([&quot;_update&quot;,&quot;_onClose&quot;,&quot;remove&quot;,&quot;_onMouseMove&quot;,&quot;_onMouseUp&quot;,&quot;_onDrag&quot;],this)}return e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n,n.prototype.addTo=function(e){return this._map&amp;&amp;this.remove(),this._map=e,this.options.closeOnClick&amp;&amp;this._map.on(&quot;click&quot;,this._onClose),this.options.closeOnMove&amp;&amp;this._map.on(&quot;move&quot;,this._onClose),this._map.on(&quot;remove&quot;,this.remove),this._update(),this._trackPointer?(this._map.on(&quot;mousemove&quot;,this._onMouseMove),this._map.on(&quot;mouseup&quot;,this._onMouseUp),this._container&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.add(&quot;mapboxgl-track-pointer&quot;)):this._map.on(&quot;move&quot;,this._update),this.fire(new t.Event(&quot;open&quot;)),this},n.prototype.isOpen=function(){return!!this._map},n.prototype.remove=function(){return this._content&amp;&amp;r.remove(this._content),this._container&amp;&amp;(r.remove(this._container),delete this._container),this._map&amp;&amp;(this._map.off(&quot;move&quot;,this._update),this._map.off(&quot;move&quot;,this._onClose),this._map.off(&quot;click&quot;,this._onClose),this._map.off(&quot;remove&quot;,this.remove),this._map.off(&quot;mousemove&quot;,this._onMouseMove),this._map.off(&quot;mouseup&quot;,this._onMouseUp),this._map.off(&quot;drag&quot;,this._onDrag),delete this._map),this.fire(new t.Event(&quot;close&quot;)),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&amp;&amp;(this._map.on(&quot;move&quot;,this._update),this._map.off(&quot;mousemove&quot;,this._onMouseMove),this._container&amp;&amp;this._container.classList.remove(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.remove(&quot;mapboxgl-track-pointer&quot;)),this},n.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&amp;&amp;(this._map.off(&quot;move&quot;,this._update),this._map.on(&quot;mousemove&quot;,this._onMouseMove),this._map.on(&quot;drag&quot;,this._onDrag),this._container&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.add(&quot;mapboxgl-track-pointer&quot;)),this},n.prototype.getElement=function(){return this._container},n.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},n.prototype.setHTML=function(e){var r,n=t.window.document.createDocumentFragment(),i=t.window.document.createElement(&quot;body&quot;);for(i.innerHTML=e;r=i.firstChild;)n.appendChild(r);return this.setDOMContent(n)},n.prototype.getMaxWidth=function(){return this._container&amp;&amp;this._container.style.maxWidth},n.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},n.prototype.setDOMContent=function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},n.prototype.addClassName=function(t){this._container&amp;&amp;this._container.classList.add(t)},n.prototype.removeClassName=function(t){this._container&amp;&amp;this._container.classList.remove(t)},n.prototype.toggleClassName=function(t){if(this._container)return this._container.classList.toggle(t)},n.prototype._createContent=function(){this._content&amp;&amp;r.remove(this._content),this._content=r.create(&quot;div&quot;,&quot;mapboxgl-popup-content&quot;,this._container),this.options.closeButton&amp;&amp;(this._closeButton=r.create(&quot;button&quot;,&quot;mapboxgl-popup-close-button&quot;,this._content),this._closeButton.type=&quot;button&quot;,this._closeButton.setAttribute(&quot;aria-label&quot;,&quot;Close popup&quot;),this._closeButton.innerHTML=&quot;&amp;#215;&quot;,this._closeButton.addEventListener(&quot;click&quot;,this._onClose))},n.prototype._onMouseUp=function(t){this._update(t.point)},n.prototype._onMouseMove=function(t){this._update(t.point)},n.prototype._onDrag=function(t){this._update(t.point)},n.prototype._update=function(e){var n=this;if(this._map&amp;&amp;(this._lngLat||this._trackPointer)&amp;&amp;this._content&amp;&amp;(this._container||(this._container=r.create(&quot;div&quot;,&quot;mapboxgl-popup&quot;,this._map.getContainer()),this._tip=r.create(&quot;div&quot;,&quot;mapboxgl-popup-tip&quot;,this._container),this._container.appendChild(this._content),this.options.className&amp;&amp;this.options.className.split(&quot; &quot;).forEach((function(t){return n._container.classList.add(t)})),this._trackPointer&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;)),this.options.maxWidth&amp;&amp;this._container.style.maxWidth!==this.options.maxWidth&amp;&amp;(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&amp;&amp;!this._trackPointer&amp;&amp;(this._lngLat=Li(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||e)){var i=this._pos=this._trackPointer&amp;&amp;e?e:this._map.project(this._lngLat),a=this.options.anchor,o=function e(r){if(r){if(&quot;number&quot;==typeof r){var n=Math.round(Math.sqrt(.5*Math.pow(r,2)));return{center:new t.Point(0,0),top:new t.Point(0,r),&quot;top-left&quot;:new t.Point(n,n),&quot;top-right&quot;:new t.Point(-n,n),bottom:new t.Point(0,-r),&quot;bottom-left&quot;:new t.Point(n,-n),&quot;bottom-right&quot;:new t.Point(-n,-n),left:new t.Point(r,0),right:new t.Point(-r,0)}}if(r instanceof t.Point||Array.isArray(r)){var i=t.Point.convert(r);return{center:i,top:i,&quot;top-left&quot;:i,&quot;top-right&quot;:i,bottom:i,&quot;bottom-left&quot;:i,&quot;bottom-right&quot;:i,left:i,right:i}}return{center:t.Point.convert(r.center||[0,0]),top:t.Point.convert(r.top||[0,0]),&quot;top-left&quot;:t.Point.convert(r[&quot;top-left&quot;]||[0,0]),&quot;top-right&quot;:t.Point.convert(r[&quot;top-right&quot;]||[0,0]),bottom:t.Point.convert(r.bottom||[0,0]),&quot;bottom-left&quot;:t.Point.convert(r[&quot;bottom-left&quot;]||[0,0]),&quot;bottom-right&quot;:t.Point.convert(r[&quot;bottom-right&quot;]||[0,0]),left:t.Point.convert(r.left||[0,0]),right:t.Point.convert(r.right||[0,0])}}return e(new t.Point(0,0))}(this.options.offset);if(!a){var s,l=this._container.offsetWidth,c=this._container.offsetHeight;s=i.y+o.bottom.y&lt;c?[&quot;top&quot;]:i.y&gt;this._map.transform.height-c?[&quot;bottom&quot;]:[],i.x&lt;l/2?s.push(&quot;left&quot;):i.x&gt;this._map.transform.width-l/2&amp;&amp;s.push(&quot;right&quot;),a=0===s.length?&quot;bottom&quot;:s.join(&quot;-&quot;)}var u=i.add(o[a]).round();r.setTransform(this._container,Ii[a]+&quot; translate(&quot;+u.x+&quot;px,&quot;+u.y+&quot;px)&quot;),Pi(this._container,a,&quot;popup&quot;)}},n.prototype._onClose=function(){this.remove()},n}(t.Evented),Yi={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:Mi,NavigationControl:Ei,GeolocateControl:Bi,AttributionControl:vi,ScaleControl:ji,FullscreenControl:qi,Popup:Gi,Marker:Oi,Style:qe,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,config:t.config,prewarm:function(){Bt().acquire(Ot)},clearPrewarmedResources:function(){var t=Rt;t&amp;&amp;(t.isPreloaded()&amp;&amp;1===t.numActive()?(t.release(Ot),Rt=null):console.warn(&quot;Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()&quot;))},get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return Dt.workerCount},set workerCount(t){Dt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage:function(e){t.clearTileCache(e)},workerUrl:&quot;&quot;};return Yi})),r}))},{}],474:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=1&lt;&lt;t+1,r=new Array(e),n=0;n&lt;e;++n)r[n]=a(t,n);return r};var n=t(&quot;convex-hull&quot;);function i(t,e,r){for(var n=new Array(t),i=0;i&lt;t;++i)n[i]=0,i===e&amp;&amp;(n[i]+=.5),i===r&amp;&amp;(n[i]+=.5);return n}function a(t,e){if(0===e||e===(1&lt;&lt;t+1)-1)return[];for(var r=[],a=[],o=0;o&lt;=t;++o)if(e&amp;1&lt;&lt;o){r.push(i(t,o-1,o-1)),a.push(null);for(var s=0;s&lt;=t;++s)~e&amp;1&lt;&lt;s&amp;&amp;(r.push(i(t,o-1,s-1)),a.push([o,s]))}var l=n(r),c=[];t:for(o=0;o&lt;l.length;++o){var u=l[o],f=[];for(s=0;s&lt;u.length;++s){if(!a[u[s]])continue t;f.push(a[u[s]].slice())}c.push(f)}return c}},{&quot;convex-hull&quot;:135}],475:[function(t,e,r){var n=t(&quot;./normalize&quot;),i=t(&quot;gl-mat4/create&quot;),a=t(&quot;gl-mat4/clone&quot;),o=t(&quot;gl-mat4/determinant&quot;),s=t(&quot;gl-mat4/invert&quot;),l=t(&quot;gl-mat4/transpose&quot;),c={length:t(&quot;gl-vec3/length&quot;),normalize:t(&quot;gl-vec3/normalize&quot;),dot:t(&quot;gl-vec3/dot&quot;),cross:t(&quot;gl-vec3/cross&quot;)},u=i(),f=i(),h=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],d=[0,0,0];function g(t,e,r,n,i){t[0]=e[0]*n+r[0]*i,t[1]=e[1]*n+r[1]*i,t[2]=e[2]*n+r[2]*i}e.exports=function(t,e,r,i,m,v){if(e||(e=[0,0,0]),r||(r=[0,0,0]),i||(i=[0,0,0]),m||(m=[0,0,0,1]),v||(v=[0,0,0,1]),!n(u,t))return!1;if(a(f,u),f[3]=0,f[7]=0,f[11]=0,f[15]=1,Math.abs(o(f)&lt;1e-8))return!1;var y,x,b,_,w,T,k,M=u[3],A=u[7],S=u[11],E=u[12],C=u[13],L=u[14],I=u[15];if(0!==M||0!==A||0!==S){if(h[0]=M,h[1]=A,h[2]=S,h[3]=I,!s(f,f))return!1;l(f,f),y=m,b=f,_=(x=h)[0],w=x[1],T=x[2],k=x[3],y[0]=b[0]*_+b[4]*w+b[8]*T+b[12]*k,y[1]=b[1]*_+b[5]*w+b[9]*T+b[13]*k,y[2]=b[2]*_+b[6]*w+b[10]*T+b[14]*k,y[3]=b[3]*_+b[7]*w+b[11]*T+b[15]*k}else m[0]=m[1]=m[2]=0,m[3]=1;if(e[0]=E,e[1]=C,e[2]=L,function(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}(p,u),r[0]=c.length(p[0]),c.normalize(p[0],p[0]),i[0]=c.dot(p[0],p[1]),g(p[1],p[1],p[0],1,-i[0]),r[1]=c.length(p[1]),c.normalize(p[1],p[1]),i[0]/=r[1],i[1]=c.dot(p[0],p[2]),g(p[2],p[2],p[0],1,-i[1]),i[2]=c.dot(p[1],p[2]),g(p[2],p[2],p[1],1,-i[2]),r[2]=c.length(p[2]),c.normalize(p[2],p[2]),i[1]/=r[2],i[2]/=r[2],c.cross(d,p[1],p[2]),c.dot(p[0],d)&lt;0)for(var P=0;P&lt;3;P++)r[P]*=-1,p[P][0]*=-1,p[P][1]*=-1,p[P][2]*=-1;return v[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),v[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),v[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),v[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]&gt;p[1][2]&amp;&amp;(v[0]=-v[0]),p[0][2]&gt;p[2][0]&amp;&amp;(v[1]=-v[1]),p[1][0]&gt;p[0][1]&amp;&amp;(v[2]=-v[2]),!0}},{&quot;./normalize&quot;:476,&quot;gl-mat4/clone&quot;:278,&quot;gl-mat4/create&quot;:280,&quot;gl-mat4/determinant&quot;:281,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/transpose&quot;:306,&quot;gl-vec3/cross&quot;:365,&quot;gl-vec3/dot&quot;:370,&quot;gl-vec3/length&quot;:380,&quot;gl-vec3/normalize&quot;:387}],476:[function(t,e,r){e.exports=function(t,e){var r=e[15];if(0===r)return!1;for(var n=1/r,i=0;i&lt;16;i++)t[i]=e[i]*n;return!0}},{}],477:[function(t,e,r){var n=t(&quot;gl-vec3/lerp&quot;),i=t(&quot;mat4-recompose&quot;),a=t(&quot;mat4-decompose&quot;),o=t(&quot;gl-mat4/determinant&quot;),s=t(&quot;quat-slerp&quot;),l=f(),c=f(),u=f();function f(){return{translate:h(),scale:h(1),skew:h(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function h(t){return[t||0,t||0,t||0]}e.exports=function(t,e,r,f){if(0===o(e)||0===o(r))return!1;var h=a(e,l.translate,l.scale,l.skew,l.perspective,l.quaternion),p=a(r,c.translate,c.scale,c.skew,c.perspective,c.quaternion);return!(!h||!p)&amp;&amp;(n(u.translate,l.translate,c.translate,f),n(u.skew,l.skew,c.skew,f),n(u.scale,l.scale,c.scale,f),n(u.perspective,l.perspective,c.perspective,f),s(u.quaternion,l.quaternion,c.quaternion,f),i(t,u.translate,u.scale,u.skew,u.perspective,u.quaternion),!0)}},{&quot;gl-mat4/determinant&quot;:281,&quot;gl-vec3/lerp&quot;:381,&quot;mat4-decompose&quot;:475,&quot;mat4-recompose&quot;:478,&quot;quat-slerp&quot;:527}],478:[function(t,e,r){var n={identity:t(&quot;gl-mat4/identity&quot;),translate:t(&quot;gl-mat4/translate&quot;),multiply:t(&quot;gl-mat4/multiply&quot;),create:t(&quot;gl-mat4/create&quot;),scale:t(&quot;gl-mat4/scale&quot;),fromRotationTranslation:t(&quot;gl-mat4/fromRotationTranslation&quot;)},i=(n.create(),n.create());e.exports=function(t,e,r,a,o,s){return n.identity(t),n.fromRotationTranslation(t,s,e),t[3]=o[0],t[7]=o[1],t[11]=o[2],t[15]=o[3],n.identity(i),0!==a[2]&amp;&amp;(i[9]=a[2],n.multiply(t,t,i)),0!==a[1]&amp;&amp;(i[9]=0,i[8]=a[1],n.multiply(t,t,i)),0!==a[0]&amp;&amp;(i[8]=0,i[4]=a[0],n.multiply(t,t,i)),n.scale(t,t,r),t}},{&quot;gl-mat4/create&quot;:280,&quot;gl-mat4/fromRotationTranslation&quot;:284,&quot;gl-mat4/identity&quot;:291,&quot;gl-mat4/multiply&quot;:295,&quot;gl-mat4/scale&quot;:303,&quot;gl-mat4/translate&quot;:305}],479:[function(t,e,r){&quot;use strict&quot;;e.exports=Math.log2||function(t){return Math.log(t)*Math.LOG2E}},{}],480:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;mat4-interpolate&quot;),a=t(&quot;gl-mat4/invert&quot;),o=t(&quot;gl-mat4/rotateX&quot;),s=t(&quot;gl-mat4/rotateY&quot;),l=t(&quot;gl-mat4/rotateZ&quot;),c=t(&quot;gl-mat4/lookAt&quot;),u=t(&quot;gl-mat4/translate&quot;),f=(t(&quot;gl-mat4/scale&quot;),t(&quot;gl-vec3/normalize&quot;)),h=[0,0,0];function p(t){this._components=t.slice(),this._time=[0],this.prevMatrix=t.slice(),this.nextMatrix=t.slice(),this.computedMatrix=t.slice(),this.computedInverse=t.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}e.exports=function(t){return new p((t=t||{}).matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};var d=p.prototype;d.recalcMatrix=function(t){var e=this._time,r=n.le(e,t),o=this.computedMatrix;if(!(r&lt;0)){var s=this._components;if(r===e.length-1)for(var l=16*r,c=0;c&lt;16;++c)o[c]=s[l++];else{var u=e[r+1]-e[r],h=(l=16*r,this.prevMatrix),p=!0;for(c=0;c&lt;16;++c)h[c]=s[l++];var d=this.nextMatrix;for(c=0;c&lt;16;++c)d[c]=s[l++],p=p&amp;&amp;h[c]===d[c];if(u&lt;1e-6||p)for(c=0;c&lt;16;++c)o[c]=h[c];else i(o,h,d,(t-e[r])/u)}var g=this.computedUp;g[0]=o[1],g[1]=o[5],g[2]=o[9],f(g,g);var m=this.computedInverse;a(m,o);var v=this.computedEye,y=m[15];v[0]=m[12]/y,v[1]=m[13]/y,v[2]=m[14]/y;var x=this.computedCenter,b=Math.exp(this.computedRadius[0]);for(c=0;c&lt;3;++c)x[c]=v[c]-o[2+4*c]*b}},d.idle=function(t){if(!(t&lt;this.lastT())){for(var e=this._components,r=e.length-16,n=0;n&lt;16;++n)e.push(e[r++]);this._time.push(t)}},d.flush=function(t){var e=n.gt(this._time,t)-2;e&lt;0||(this._time.splice(0,e),this._components.splice(0,16*e))},d.lastT=function(){return this._time[this._time.length-1]},d.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||h,n=n||this.computedUp,this.setMatrix(t,c(this.computedMatrix,e,r,n));for(var i=0,a=0;a&lt;3;++a)i+=Math.pow(r[a]-e[a],2);i=Math.log(Math.sqrt(i)),this.computedRadius[0]=i},d.rotate=function(t,e,r,n){this.recalcMatrix(t);var i=this.computedInverse;e&amp;&amp;s(i,i,e),r&amp;&amp;o(i,i,r),n&amp;&amp;l(i,i,n),this.setMatrix(t,a(this.computedMatrix,i))};var g=[0,0,0];d.pan=function(t,e,r,n){g[0]=-(e||0),g[1]=-(r||0),g[2]=-(n||0),this.recalcMatrix(t);var i=this.computedInverse;u(i,i,g),this.setMatrix(t,a(i,i))},d.translate=function(t,e,r,n){g[0]=e||0,g[1]=r||0,g[2]=n||0,this.recalcMatrix(t);var i=this.computedMatrix;u(i,i,g),this.setMatrix(t,i)},d.setMatrix=function(t,e){if(!(t&lt;this.lastT())){this._time.push(t);for(var r=0;r&lt;16;++r)this._components.push(e[r])}},d.setDistance=function(t,e){this.computedRadius[0]=e},d.setDistanceLimits=function(t,e){var r=this._limits;r[0]=t,r[1]=e},d.getDistanceLimits=function(t){var e=this._limits;return t?(t[0]=e[0],t[1]=e[1],t):e}},{&quot;binary-search-bounds&quot;:481,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/lookAt&quot;:294,&quot;gl-mat4/rotateX&quot;:300,&quot;gl-mat4/rotateY&quot;:301,&quot;gl-mat4/rotateZ&quot;:302,&quot;gl-mat4/scale&quot;:303,&quot;gl-mat4/translate&quot;:305,&quot;gl-vec3/normalize&quot;:387,&quot;mat4-interpolate&quot;:477}],481:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],482:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(e&lt;3){for(var r=new Array(e),i=0;i&lt;e;++i)r[i]=i;return 2===e&amp;&amp;t[0][0]===t[1][0]&amp;&amp;t[0][1]===t[1][1]?[0]:r}var a=new Array(e);for(i=0;i&lt;e;++i)a[i]=i;a.sort((function(e,r){var n=t[e][0]-t[r][0];return n||t[e][1]-t[r][1]}));var o=[a[0],a[1]],s=[a[0],a[1]];for(i=2;i&lt;e;++i){for(var l=a[i],c=t[l],u=o.length;u&gt;1&amp;&amp;n(t[o[u-2]],t[o[u-1]],c)&lt;=0;)u-=1,o.pop();for(o.push(l),u=s.length;u&gt;1&amp;&amp;n(t[s[u-2]],t[s[u-1]],c)&gt;=0;)u-=1,s.pop();s.push(l)}r=new Array(s.length+o.length-2);for(var f=0,h=(i=0,o.length);i&lt;h;++i)r[f++]=o[i];for(var p=s.length-2;p&gt;0;--p)r[f++]=s[p];return r};var n=t(&quot;robust-orientation&quot;)[3]},{&quot;robust-orientation&quot;:548}],483:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e||(e=t,t=window);var r=0,i=0,a=0,o={shift:!1,alt:!1,control:!1,meta:!1},s=!1;function l(t){var e=!1;return&quot;altKey&quot;in t&amp;&amp;(e=e||t.altKey!==o.alt,o.alt=!!t.altKey),&quot;shiftKey&quot;in t&amp;&amp;(e=e||t.shiftKey!==o.shift,o.shift=!!t.shiftKey),&quot;ctrlKey&quot;in t&amp;&amp;(e=e||t.ctrlKey!==o.control,o.control=!!t.ctrlKey),&quot;metaKey&quot;in t&amp;&amp;(e=e||t.metaKey!==o.meta,o.meta=!!t.metaKey),e}function c(t,s){var c=n.x(s),u=n.y(s);&quot;buttons&quot;in s&amp;&amp;(t=0|s.buttons),(t!==r||c!==i||u!==a||l(s))&amp;&amp;(r=0|t,i=c||0,a=u||0,e&amp;&amp;e(r,i,a,o))}function u(t){c(0,t)}function f(){(r||i||a||o.shift||o.alt||o.meta||o.control)&amp;&amp;(i=a=0,r=0,o.shift=o.alt=o.control=o.meta=!1,e&amp;&amp;e(0,0,0,o))}function h(t){l(t)&amp;&amp;e&amp;&amp;e(r,i,a,o)}function p(t){0===n.buttons(t)?c(0,t):c(r,t)}function d(t){c(r|n.buttons(t),t)}function g(t){c(r&amp;~n.buttons(t),t)}function m(){s||(s=!0,t.addEventListener(&quot;mousemove&quot;,p),t.addEventListener(&quot;mousedown&quot;,d),t.addEventListener(&quot;mouseup&quot;,g),t.addEventListener(&quot;mouseleave&quot;,u),t.addEventListener(&quot;mouseenter&quot;,u),t.addEventListener(&quot;mouseout&quot;,u),t.addEventListener(&quot;mouseover&quot;,u),t.addEventListener(&quot;blur&quot;,f),t.addEventListener(&quot;keyup&quot;,h),t.addEventListener(&quot;keydown&quot;,h),t.addEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.addEventListener(&quot;blur&quot;,f),window.addEventListener(&quot;keyup&quot;,h),window.addEventListener(&quot;keydown&quot;,h),window.addEventListener(&quot;keypress&quot;,h)))}m();var v={element:t};return Object.defineProperties(v,{enabled:{get:function(){return s},set:function(e){e?m():function(){if(!s)return;s=!1,t.removeEventListener(&quot;mousemove&quot;,p),t.removeEventListener(&quot;mousedown&quot;,d),t.removeEventListener(&quot;mouseup&quot;,g),t.removeEventListener(&quot;mouseleave&quot;,u),t.removeEventListener(&quot;mouseenter&quot;,u),t.removeEventListener(&quot;mouseout&quot;,u),t.removeEventListener(&quot;mouseover&quot;,u),t.removeEventListener(&quot;blur&quot;,f),t.removeEventListener(&quot;keyup&quot;,h),t.removeEventListener(&quot;keydown&quot;,h),t.removeEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.removeEventListener(&quot;blur&quot;,f),window.removeEventListener(&quot;keyup&quot;,h),window.removeEventListener(&quot;keydown&quot;,h),window.removeEventListener(&quot;keypress&quot;,h))}()},enumerable:!0},buttons:{get:function(){return r},enumerable:!0},x:{get:function(){return i},enumerable:!0},y:{get:function(){return a},enumerable:!0},mods:{get:function(){return o},enumerable:!0}}),v};var n=t(&quot;mouse-event&quot;)},{&quot;mouse-event&quot;:485}],484:[function(t,e,r){var n={left:0,top:0};e.exports=function(t,e,r){e=e||t.currentTarget||t.srcElement,Array.isArray(r)||(r=[0,0]);var i=t.clientX||0,a=t.clientY||0,o=(s=e,s===window||s===document||s===document.body?n:s.getBoundingClientRect());var s;return r[0]=i-o.left,r[1]=a-o.top,r}},{}],485:[function(t,e,r){&quot;use strict&quot;;function n(t){return t.target||t.srcElement||window}r.buttons=function(t){if(&quot;object&quot;==typeof t){if(&quot;buttons&quot;in t)return t.buttons;if(&quot;which&quot;in t){if(2===(e=t.which))return 4;if(3===e)return 2;if(e&gt;0)return 1&lt;&lt;e-1}else if(&quot;button&quot;in t){var e;if(1===(e=t.button))return 4;if(2===e)return 2;if(e&gt;=0)return 1&lt;&lt;e}}return 0},r.element=n,r.x=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetX&quot;in t)return t.offsetX;var e=n(t).getBoundingClientRect();return t.clientX-e.left}return 0},r.y=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetY&quot;in t)return t.offsetY;var e=n(t).getBoundingClientRect();return t.clientY-e.top}return 0}},{}],486:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;to-px&quot;);e.exports=function(t,e,r){&quot;function&quot;==typeof t&amp;&amp;(r=!!e,e=t,t=window);var i=n(&quot;ex&quot;,t),a=function(t){r&amp;&amp;t.preventDefault();var n=t.deltaX||0,a=t.deltaY||0,o=t.deltaZ||0,s=1;switch(t.deltaMode){case 1:s=i;break;case 2:s=window.innerHeight}if(a*=s,o*=s,(n*=s)||a||o)return e(n,a,o,t)};return t.addEventListener(&quot;wheel&quot;,a),a}},{&quot;to-px&quot;:578}],487:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;);function i(t){return&quot;a&quot;+t}function a(t){return&quot;d&quot;+t}function o(t,e){return&quot;c&quot;+t+&quot;_&quot;+e}function s(t){return&quot;s&quot;+t}function l(t,e){return&quot;t&quot;+t+&quot;_&quot;+e}function c(t){return&quot;o&quot;+t}function u(t){return&quot;x&quot;+t}function f(t){return&quot;p&quot;+t}function h(t,e){return&quot;d&quot;+t+&quot;_&quot;+e}function p(t){return&quot;i&quot;+t}function d(t,e){return&quot;u&quot;+t+&quot;_&quot;+e}function g(t){return&quot;b&quot;+t}function m(t){return&quot;y&quot;+t}function v(t){return&quot;e&quot;+t}function y(t){return&quot;v&quot;+t}e.exports=function(t){function e(t){throw new Error(&quot;ndarray-extract-contour: &quot;+t)}&quot;object&quot;!=typeof t&amp;&amp;e(&quot;Must specify arguments&quot;);var r=t.order;Array.isArray(r)||e(&quot;Must specify order&quot;);var b=t.arrayArguments||1;b&lt;1&amp;&amp;e(&quot;Must have at least one array argument&quot;);var _=t.scalarArguments||0;_&lt;0&amp;&amp;e(&quot;Scalar arg count must be &gt; 0&quot;);&quot;function&quot;!=typeof t.vertex&amp;&amp;e(&quot;Must specify vertex creation function&quot;);&quot;function&quot;!=typeof t.cell&amp;&amp;e(&quot;Must specify cell creation function&quot;);&quot;function&quot;!=typeof t.phase&amp;&amp;e(&quot;Must specify phase function&quot;);for(var w=t.getters||[],T=new Array(b),k=0;k&lt;b;++k)w.indexOf(k)&gt;=0?T[k]=!0:T[k]=!1;return function(t,e,r,b,_,w){var T=w.length,k=_.length;if(k&lt;2)throw new Error(&quot;ndarray-extract-contour: Dimension must be at least 2&quot;);for(var M=&quot;extractContour&quot;+_.join(&quot;_&quot;),A=[],S=[],E=[],C=0;C&lt;T;++C)E.push(i(C));for(C=0;C&lt;b;++C)E.push(u(C));for(C=0;C&lt;k;++C)S.push(s(C)+&quot;=&quot;+i(0)+&quot;.shape[&quot;+C+&quot;]|0&quot;);for(C=0;C&lt;T;++C){S.push(a(C)+&quot;=&quot;+i(C)+&quot;.data&quot;,c(C)+&quot;=&quot;+i(C)+&quot;.offset|0&quot;);for(var L=0;L&lt;k;++L)S.push(l(C,L)+&quot;=&quot;+i(C)+&quot;.stride[&quot;+L+&quot;]|0&quot;)}for(C=0;C&lt;T;++C){S.push(f(C)+&quot;=&quot;+c(C)),S.push(o(C,0));for(L=1;L&lt;1&lt;&lt;k;++L){for(var I=[],P=0;P&lt;k;++P)L&amp;1&lt;&lt;P&amp;&amp;I.push(&quot;-&quot;+l(C,P));S.push(h(C,L)+&quot;=(&quot;+I.join(&quot;&quot;)+&quot;)|0&quot;),S.push(o(C,L)+&quot;=0&quot;)}}for(C=0;C&lt;T;++C)for(L=0;L&lt;k;++L){var z=[l(C,_[L])];L&gt;0&amp;&amp;z.push(l(C,_[L-1])+&quot;*&quot;+s(_[L-1])),S.push(d(C,_[L])+&quot;=(&quot;+z.join(&quot;-&quot;)+&quot;)|0&quot;)}for(C=0;C&lt;k;++C)S.push(p(C)+&quot;=0&quot;);S.push(&quot;N=0&quot;);var O=[&quot;2&quot;];for(C=k-2;C&gt;=0;--C)O.push(s(_[C]));S.push(&quot;Q=(&quot;+O.join(&quot;*&quot;)+&quot;)|0&quot;,&quot;P=mallocUint32(Q)&quot;,&quot;V=mallocUint32(Q)&quot;,&quot;X=0&quot;),S.push(g(0)+&quot;=0&quot;);for(L=1;L&lt;1&lt;&lt;k;++L){var D=[],R=[];for(P=0;P&lt;k;++P)L&amp;1&lt;&lt;P&amp;&amp;(0===R.length?D.push(&quot;1&quot;):D.unshift(R.join(&quot;*&quot;))),R.push(s(_[P]));var F=&quot;&quot;;D[0].indexOf(s(_[k-2]))&lt;0&amp;&amp;(F=&quot;-&quot;);var B=x(k,L,_);S.push(v(B)+&quot;=(-&quot;+D.join(&quot;-&quot;)+&quot;)|0&quot;,m(B)+&quot;=(&quot;+F+D.join(&quot;-&quot;)+&quot;)|0&quot;,g(B)+&quot;=0&quot;)}function N(t,e){A.push(&quot;for(&quot;,p(_[t]),&quot;=&quot;,e,&quot;;&quot;,p(_[t]),&quot;&lt;&quot;,s(_[t]),&quot;;&quot;,&quot;++&quot;,p(_[t]),&quot;){&quot;)}function j(t){for(var e=0;e&lt;T;++e)A.push(f(e),&quot;+=&quot;,d(e,_[t]),&quot;;&quot;);A.push(&quot;}&quot;)}function U(){for(var t=1;t&lt;1&lt;&lt;k;++t)A.push(&quot;T&quot;,&quot;=&quot;,v(t),&quot;;&quot;,v(t),&quot;=&quot;,m(t),&quot;;&quot;,m(t),&quot;=&quot;,&quot;T&quot;,&quot;;&quot;)}S.push(y(0)+&quot;=0&quot;,&quot;T=0&quot;),function t(e,r){if(e&lt;0)!function(t){for(var e=0;e&lt;T;++e)w[e]?A.push(o(e,0),&quot;=&quot;,a(e),&quot;.get(&quot;,f(e),&quot;);&quot;):A.push(o(e,0),&quot;=&quot;,a(e),&quot;[&quot;,f(e),&quot;];&quot;);var r=[];for(e=0;e&lt;T;++e)r.push(o(e,0));for(e=0;e&lt;b;++e)r.push(u(e));A.push(g(0),&quot;=&quot;,&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;]=phase(&quot;,r.join(),&quot;);&quot;);for(var n=1;n&lt;1&lt;&lt;k;++n)A.push(g(n),&quot;=&quot;,&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;+&quot;,v(n),&quot;];&quot;);var i=[];for(n=1;n&lt;1&lt;&lt;k;++n)i.push(&quot;(&quot;+g(0)+&quot;!==&quot;+g(n)+&quot;)&quot;);A.push(&quot;if(&quot;,i.join(&quot;||&quot;),&quot;){&quot;);var s=[];for(e=0;e&lt;k;++e)s.push(p(e));for(e=0;e&lt;T;++e){s.push(o(e,0));for(n=1;n&lt;1&lt;&lt;k;++n)w[e]?A.push(o(e,n),&quot;=&quot;,a(e),&quot;.get(&quot;,f(e),&quot;+&quot;,h(e,n),&quot;);&quot;):A.push(o(e,n),&quot;=&quot;,a(e),&quot;[&quot;,f(e),&quot;+&quot;,h(e,n),&quot;];&quot;),s.push(o(e,n))}for(e=0;e&lt;1&lt;&lt;k;++e)s.push(g(e));for(e=0;e&lt;b;++e)s.push(u(e));A.push(&quot;vertex(&quot;,s.join(),&quot;);&quot;,y(0),&quot;=&quot;,&quot;V&quot;,&quot;[&quot;,&quot;X&quot;,&quot;]=&quot;,&quot;N&quot;,&quot;++;&quot;);var l=(1&lt;&lt;k)-1,c=g(l);for(n=0;n&lt;k;++n)if(0==(t&amp;~(1&lt;&lt;n))){for(var d=l^1&lt;&lt;n,m=g(d),x=[],_=d;_&gt;0;_=_-1&amp;d)x.push(&quot;V[X+&quot;+v(_)+&quot;]&quot;);x.push(y(0));for(_=0;_&lt;T;++_)1&amp;n?x.push(o(_,l),o(_,d)):x.push(o(_,d),o(_,l));1&amp;n?x.push(c,m):x.push(m,c);for(_=0;_&lt;b;++_)x.push(u(_));A.push(&quot;if(&quot;,c,&quot;!==&quot;,m,&quot;){&quot;,&quot;face(&quot;,x.join(),&quot;)}&quot;)}A.push(&quot;}&quot;,&quot;X&quot;,&quot;+=1;&quot;)}(r);else{!function(t){for(var e=t-1;e&gt;=0;--e)N(e,0);var r=[];for(e=0;e&lt;T;++e)w[e]?r.push(a(e)+&quot;.get(&quot;+f(e)+&quot;)&quot;):r.push(a(e)+&quot;[&quot;+f(e)+&quot;]&quot;);for(e=0;e&lt;b;++e)r.push(u(e));for(A.push(&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;++]=phase(&quot;,r.join(),&quot;);&quot;),e=0;e&lt;t;++e)j(e);for(var n=0;n&lt;T;++n)A.push(f(n),&quot;+=&quot;,d(n,_[t]),&quot;;&quot;)}(e),A.push(&quot;if(&quot;,s(_[e]),&quot;&gt;0){&quot;,p(_[e]),&quot;=1;&quot;),t(e-1,r|1&lt;&lt;_[e]);for(var n=0;n&lt;T;++n)A.push(f(n),&quot;+=&quot;,d(n,_[e]),&quot;;&quot;);e===k-1&amp;&amp;(A.push(&quot;X&quot;,&quot;=0;&quot;),U()),N(e,2),t(e-1,r),e===k-1&amp;&amp;(A.push(&quot;if(&quot;,p(_[k-1]),&quot;&amp;1){&quot;,&quot;X&quot;,&quot;=0;}&quot;),U()),j(e),A.push(&quot;}&quot;)}}(k-1,0),A.push(&quot;freeUint32(&quot;,&quot;V&quot;,&quot;);freeUint32(&quot;,&quot;P&quot;,&quot;);&quot;);var V=[&quot;'use strict';&quot;,&quot;function &quot;,M,&quot;(&quot;,E.join(),&quot;){&quot;,&quot;var &quot;,S.join(),&quot;;&quot;,A.join(&quot;&quot;),&quot;}&quot;,&quot;return &quot;,M].join(&quot;&quot;);return new Function(&quot;vertex&quot;,&quot;face&quot;,&quot;phase&quot;,&quot;mallocUint32&quot;,&quot;freeUint32&quot;,V)(t,e,r,n.mallocUint32,n.freeUint32)}(t.vertex,t.cell,t.phase,_,r,T)};function x(t,e,r){for(var n=0,i=0;i&lt;t;++i)e&amp;1&lt;&lt;i&amp;&amp;(n|=1&lt;&lt;r[i]);return n}},{&quot;typedarray-pool&quot;:595}],488:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(Array.isArray(r)){if(r.length!==e.dimension)throw new Error(&quot;ndarray-gradient: invalid boundary conditions&quot;)}else r=n(e.dimension,&quot;string&quot;==typeof r?r:&quot;clamp&quot;);if(t.dimension!==e.dimension+1)throw new Error(&quot;ndarray-gradient: output dimension must be +1 input dimension&quot;);if(t.shape[e.dimension]!==e.dimension)throw new Error(&quot;ndarray-gradient: output shape must match input shape&quot;);for(var i=0;i&lt;e.dimension;++i)if(t.shape[i]!==e.shape[i])throw new Error(&quot;ndarray-gradient: shape mismatch&quot;);if(0===e.size)return t;if(e.dimension&lt;=0)return t.set(0),t;return function(t){var e=t.join();if(v=o[e])return v;var r=t.length,n=[&quot;function gradient(dst,src){var s=src.shape.slice();&quot;];function i(e){for(var i=r-e.length,a=[],o=[],s=[],l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0?s.push(&quot;0&quot;):e.indexOf(-(l+1))&gt;=0?s.push(&quot;s[&quot;+l+&quot;]-1&quot;):(s.push(&quot;-1&quot;),a.push(&quot;1&quot;),o.push(&quot;s[&quot;+l+&quot;]-2&quot;));var c=&quot;.lo(&quot;+a.join()+&quot;).hi(&quot;+o.join()+&quot;)&quot;;if(0===a.length&amp;&amp;(c=&quot;&quot;),i&gt;0){n.push(&quot;if(1&quot;);for(l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0||e.indexOf(-(l+1))&gt;=0||n.push(&quot;&amp;&amp;s[&quot;,l,&quot;]&gt;2&quot;);n.push(&quot;){grad&quot;,i,&quot;(src.pick(&quot;,s.join(),&quot;)&quot;,c);for(l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0||e.indexOf(-(l+1))&gt;=0||n.push(&quot;,dst.pick(&quot;,s.join(),&quot;,&quot;,l,&quot;)&quot;,c);n.push(&quot;);&quot;)}for(l=0;l&lt;e.length;++l){var u=Math.abs(e[l])-1,f=&quot;dst.pick(&quot;+s.join()+&quot;,&quot;+u+&quot;)&quot;+c;switch(t[u]){case&quot;clamp&quot;:var h=s.slice(),p=s.slice();e[l]&lt;0?h[u]=&quot;s[&quot;+u+&quot;]-2&quot;:p[u]=&quot;1&quot;,0===i?n.push(&quot;if(s[&quot;,u,&quot;]&gt;1){dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0.5*(src.get(&quot;,h.join(),&quot;)-src.get(&quot;,p.join(),&quot;)))}else{dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0)};&quot;):n.push(&quot;if(s[&quot;,u,&quot;]&gt;1){diff(&quot;,f,&quot;,src.pick(&quot;,h.join(),&quot;)&quot;,c,&quot;,src.pick(&quot;,p.join(),&quot;)&quot;,c,&quot;);}else{zero(&quot;,f,&quot;);};&quot;);break;case&quot;mirror&quot;:0===i?n.push(&quot;dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0);&quot;):n.push(&quot;zero(&quot;,f,&quot;);&quot;);break;case&quot;wrap&quot;:var d=s.slice(),g=s.slice();e[l]&lt;0?(d[u]=&quot;s[&quot;+u+&quot;]-2&quot;,g[u]=&quot;0&quot;):(d[u]=&quot;s[&quot;+u+&quot;]-1&quot;,g[u]=&quot;1&quot;),0===i?n.push(&quot;if(s[&quot;,u,&quot;]&gt;2){dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0.5*(src.get(&quot;,d.join(),&quot;)-src.get(&quot;,g.join(),&quot;)))}else{dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0)};&quot;):n.push(&quot;if(s[&quot;,u,&quot;]&gt;2){diff(&quot;,f,&quot;,src.pick(&quot;,d.join(),&quot;)&quot;,c,&quot;,src.pick(&quot;,g.join(),&quot;)&quot;,c,&quot;);}else{zero(&quot;,f,&quot;);};&quot;);break;default:throw new Error(&quot;ndarray-gradient: Invalid boundary condition&quot;)}}i&gt;0&amp;&amp;n.push(&quot;};&quot;)}for(var s=0;s&lt;1&lt;&lt;r;++s){for(var f=[],h=0;h&lt;r;++h)s&amp;1&lt;&lt;h&amp;&amp;f.push(h+1);for(var p=0;p&lt;1&lt;&lt;f.length;++p){var d=f.slice();for(h=0;h&lt;f.length;++h)p&amp;1&lt;&lt;h&amp;&amp;(d[h]=-d[h]);i(d)}}n.push(&quot;return dst;};return gradient&quot;);var g=[&quot;diff&quot;,&quot;zero&quot;],m=[l,c];for(s=1;s&lt;=r;++s)g.push(&quot;grad&quot;+s),m.push(u(s));g.push(n.join(&quot;&quot;));var v=Function.apply(void 0,g).apply(void 0,m);return a[e]=v,v}(r)(t,e)};var n=t(&quot;dup&quot;),i=t(&quot;cwise-compiler&quot;),a={},o={},s={body:&quot;&quot;,args:[],thisVars:[],localVars:[]},l=i({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:s,post:s,body:{args:[{name:&quot;out&quot;,lvalue:!0,rvalue:!1,count:1},{name:&quot;left&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;right&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;out=0.5*(left-right)&quot;,thisVars:[],localVars:[]},funcName:&quot;cdiff&quot;}),c=i({args:[&quot;array&quot;],pre:s,post:s,body:{args:[{name:&quot;out&quot;,lvalue:!0,rvalue:!1,count:1}],body:&quot;out=0&quot;,thisVars:[],localVars:[]},funcName:&quot;zero&quot;});function u(t){if(t in a)return a[t];for(var e=[],r=0;r&lt;t;++r)e.push(&quot;out&quot;,r,&quot;s=0.5*(inp&quot;,r,&quot;l-inp&quot;,r,&quot;r);&quot;);var o=[&quot;array&quot;],l=[&quot;junk&quot;];for(r=0;r&lt;t;++r){o.push(&quot;array&quot;),l.push(&quot;out&quot;+r+&quot;s&quot;);var c=n(t);c[r]=-1,o.push({array:0,offset:c.slice()}),c[r]=1,o.push({array:0,offset:c.slice()}),l.push(&quot;inp&quot;+r+&quot;l&quot;,&quot;inp&quot;+r+&quot;r&quot;)}return a[t]=i({args:o,pre:s,post:s,body:{body:e.join(&quot;&quot;),args:l.map((function(t){return{name:t,lvalue:0===t.indexOf(&quot;out&quot;),rvalue:0===t.indexOf(&quot;inp&quot;),count:&quot;junk&quot;!==t|0}})),thisVars:[],localVars:[]},funcName:&quot;fdTemplate&quot;+t})}},{&quot;cwise-compiler&quot;:151,dup:176}],489:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=Math.floor(e),n=e-r,i=0&lt;=r&amp;&amp;r&lt;t.shape[0],a=0&lt;=r+1&amp;&amp;r+1&lt;t.shape[0];return(1-n)*(i?+t.get(r):0)+n*(a?+t.get(r+1):0)}function i(t,e,r){var n=Math.floor(e),i=e-n,a=0&lt;=n&amp;&amp;n&lt;t.shape[0],o=0&lt;=n+1&amp;&amp;n+1&lt;t.shape[0],s=Math.floor(r),l=r-s,c=0&lt;=s&amp;&amp;s&lt;t.shape[1],u=0&lt;=s+1&amp;&amp;s+1&lt;t.shape[1],f=a&amp;&amp;c?t.get(n,s):0,h=a&amp;&amp;u?t.get(n,s+1):0;return(1-l)*((1-i)*f+i*(o&amp;&amp;c?t.get(n+1,s):0))+l*((1-i)*h+i*(o&amp;&amp;u?t.get(n+1,s+1):0))}function a(t,e,r,n){var i=Math.floor(e),a=e-i,o=0&lt;=i&amp;&amp;i&lt;t.shape[0],s=0&lt;=i+1&amp;&amp;i+1&lt;t.shape[0],l=Math.floor(r),c=r-l,u=0&lt;=l&amp;&amp;l&lt;t.shape[1],f=0&lt;=l+1&amp;&amp;l+1&lt;t.shape[1],h=Math.floor(n),p=n-h,d=0&lt;=h&amp;&amp;h&lt;t.shape[2],g=0&lt;=h+1&amp;&amp;h+1&lt;t.shape[2],m=o&amp;&amp;u&amp;&amp;d?t.get(i,l,h):0,v=o&amp;&amp;f&amp;&amp;d?t.get(i,l+1,h):0,y=s&amp;&amp;u&amp;&amp;d?t.get(i+1,l,h):0,x=s&amp;&amp;f&amp;&amp;d?t.get(i+1,l+1,h):0,b=o&amp;&amp;u&amp;&amp;g?t.get(i,l,h+1):0,_=o&amp;&amp;f&amp;&amp;g?t.get(i,l+1,h+1):0;return(1-p)*((1-c)*((1-a)*m+a*y)+c*((1-a)*v+a*x))+p*((1-c)*((1-a)*b+a*(s&amp;&amp;u&amp;&amp;g?t.get(i+1,l,h+1):0))+c*((1-a)*_+a*(s&amp;&amp;f&amp;&amp;g?t.get(i+1,l+1,h+1):0)))}function o(t){var e,r,n=0|t.shape.length,i=new Array(n),a=new Array(n),o=new Array(n),s=new Array(n);for(e=0;e&lt;n;++e)r=+arguments[e+1],i[e]=Math.floor(r),a[e]=r-i[e],o[e]=0&lt;=i[e]&amp;&amp;i[e]&lt;t.shape[e],s[e]=0&lt;=i[e]+1&amp;&amp;i[e]+1&lt;t.shape[e];var l,c,u,f=0;t:for(e=0;e&lt;1&lt;&lt;n;++e){for(c=1,u=t.offset,l=0;l&lt;n;++l)if(e&amp;1&lt;&lt;l){if(!s[l])continue t;c*=a[l],u+=t.stride[l]*(i[l]+1)}else{if(!o[l])continue t;c*=1-a[l],u+=t.stride[l]*i[l]}f+=c*t.data[u]}return f}e.exports=function(t,e,r,s){switch(t.shape.length){case 0:return 0;case 1:return n(t,e);case 2:return i(t,e,r);case 3:return a(t,e,r,s);default:return o.apply(void 0,arguments)}},e.exports.d1=n,e.exports.d2=i,e.exports.d3=a},{}],490:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;cwise-compiler&quot;),i={body:&quot;&quot;,args:[],thisVars:[],localVars:[]};function a(t){if(!t)return i;for(var e=0;e&lt;t.args.length;++e){var r=t.args[e];t.args[e]=0===e?{name:r,lvalue:!0,rvalue:!!t.rvalue,count:t.count||1}:{name:r,lvalue:!1,rvalue:!0,count:1}}return t.thisVars||(t.thisVars=[]),t.localVars||(t.localVars=[]),t}function o(t){for(var e=[],r=0;r&lt;t.args.length;++r)e.push(&quot;a&quot;+r);return new Function(&quot;P&quot;,[&quot;return function &quot;,t.funcName,&quot;_ndarrayops(&quot;,e.join(&quot;,&quot;),&quot;) {P(&quot;,e.join(&quot;,&quot;),&quot;);return a0}&quot;].join(&quot;&quot;))(function(t){return n({args:t.args,pre:a(t.pre),body:a(t.body),post:a(t.proc),funcName:t.funcName})}(t))}var s={add:&quot;+&quot;,sub:&quot;-&quot;,mul:&quot;*&quot;,div:&quot;/&quot;,mod:&quot;%&quot;,band:&quot;&amp;&quot;,bor:&quot;|&quot;,bxor:&quot;^&quot;,lshift:&quot;&lt;&lt;&quot;,rshift:&quot;&gt;&gt;&quot;,rrshift:&quot;&gt;&gt;&gt;&quot;};!function(){for(var t in s){var e=s[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=b&quot;+e+&quot;c&quot;},funcName:t}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a&quot;+e+&quot;=b&quot;},rvalue:!0,funcName:t+&quot;eq&quot;}),r[t+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;s&quot;],body:&quot;a=b&quot;+e+&quot;s&quot;},funcName:t+&quot;s&quot;}),r[t+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;s&quot;],body:&quot;a&quot;+e+&quot;=s&quot;},rvalue:!0,funcName:t+&quot;seq&quot;})}}();var l={not:&quot;!&quot;,bnot:&quot;~&quot;,neg:&quot;-&quot;,recip:&quot;1.0/&quot;};!function(){for(var t in l){var e=l[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=&quot;+e+&quot;b&quot;},funcName:t}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;],body:{args:[&quot;a&quot;],body:&quot;a=&quot;+e+&quot;a&quot;},rvalue:!0,count:2,funcName:t+&quot;eq&quot;})}}();var c={and:&quot;&amp;&amp;&quot;,or:&quot;||&quot;,eq:&quot;===&quot;,neq:&quot;!==&quot;,lt:&quot;&lt;&quot;,gt:&quot;&gt;&quot;,leq:&quot;&lt;=&quot;,geq:&quot;&gt;=&quot;};!function(){for(var t in c){var e=c[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=b&quot;+e+&quot;c&quot;},funcName:t}),r[t+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;s&quot;],body:&quot;a=b&quot;+e+&quot;s&quot;},funcName:t+&quot;s&quot;}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=a&quot;+e+&quot;b&quot;},rvalue:!0,count:2,funcName:t+&quot;eq&quot;}),r[t+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;s&quot;],body:&quot;a=a&quot;+e+&quot;s&quot;},rvalue:!0,count:2,funcName:t+&quot;seq&quot;})}}();var u=[&quot;abs&quot;,&quot;acos&quot;,&quot;asin&quot;,&quot;atan&quot;,&quot;ceil&quot;,&quot;cos&quot;,&quot;exp&quot;,&quot;floor&quot;,&quot;log&quot;,&quot;round&quot;,&quot;sin&quot;,&quot;sqrt&quot;,&quot;tan&quot;];!function(){for(var t=0;t&lt;u.length;++t){var e=u[t];r[e]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e}),r[e+&quot;eq&quot;]=o({args:[&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;],body:&quot;a=this_f(a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;eq&quot;})}}();var f=[&quot;max&quot;,&quot;min&quot;,&quot;atan2&quot;,&quot;pow&quot;];!function(){for(var t=0;t&lt;f.length;++t){var e=f[t];r[e]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(b,c)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e}),r[e+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(b,c)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;s&quot;}),r[e+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(a,b)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;eq&quot;}),r[e+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(a,b)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;seq&quot;})}}();var h=[&quot;atan2&quot;,&quot;pow&quot;];!function(){for(var t=0;t&lt;h.length;++t){var e=h[t];r[e+&quot;op&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(c,b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;op&quot;}),r[e+&quot;ops&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(c,b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;ops&quot;}),r[e+&quot;opeq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b,a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;opeq&quot;}),r[e+&quot;opseq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b,a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;opseq&quot;})}}(),r.any=n({args:[&quot;array&quot;],pre:i,body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(a){return true}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return false&quot;},funcName:&quot;any&quot;}),r.all=n({args:[&quot;array&quot;],pre:i,body:{args:[{name:&quot;x&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(!x){return false}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return true&quot;},funcName:&quot;all&quot;}),r.sum=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;this_s+=a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;sum&quot;}),r.prod=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=1&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;this_s*=a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;prod&quot;}),r.norm2squared=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:2}],body:&quot;this_s+=a*a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norm2squared&quot;}),r.norm2=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:2}],body:&quot;this_s+=a*a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return Math.sqrt(this_s)&quot;},funcName:&quot;norm2&quot;}),r.norminf=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:4}],body:&quot;if(-a&gt;this_s){this_s=-a}else if(a&gt;this_s){this_s=a}&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norminf&quot;}),r.norm1=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:3}],body:&quot;this_s+=a&lt;0?-a:a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norm1&quot;}),r.sup=n({args:[&quot;array&quot;],pre:{body:&quot;this_h=-Infinity&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]},body:{body:&quot;if(_inline_1_arg0_&gt;this_h)this_h=_inline_1_arg0_&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_h&quot;],localVars:[]},post:{body:&quot;return this_h&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]}}),r.inf=n({args:[&quot;array&quot;],pre:{body:&quot;this_h=Infinity&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]},body:{body:&quot;if(_inline_1_arg0_&lt;this_h)this_h=_inline_1_arg0_&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_h&quot;],localVars:[]},post:{body:&quot;return this_h&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]}}),r.argmin=n({args:[&quot;index&quot;,&quot;array&quot;,&quot;shape&quot;],pre:{body:&quot;{this_v=Infinity;this_i=_inline_0_arg2_.slice(0)}&quot;,args:[{name:&quot;_inline_0_arg0_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg1_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg2_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[]},body:{body:&quot;{if(_inline_1_arg1_&lt;this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k&lt;_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[&quot;_inline_1_k&quot;]},post:{body:&quot;{return this_i}&quot;,args:[],thisVars:[&quot;this_i&quot;],localVars:[]}}),r.argmax=n({args:[&quot;index&quot;,&quot;array&quot;,&quot;shape&quot;],pre:{body:&quot;{this_v=-Infinity;this_i=_inline_0_arg2_.slice(0)}&quot;,args:[{name:&quot;_inline_0_arg0_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg1_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg2_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[]},body:{body:&quot;{if(_inline_1_arg1_&gt;this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k&lt;_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[&quot;_inline_1_k&quot;]},post:{body:&quot;{return this_i}&quot;,args:[],thisVars:[&quot;this_i&quot;],localVars:[]}}),r.random=o({args:[&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.random&quot;,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;],body:&quot;a=this_f()&quot;,thisVars:[&quot;this_f&quot;]},funcName:&quot;random&quot;}),r.assign=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=b&quot;},funcName:&quot;assign&quot;}),r.assigns=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=b&quot;},funcName:&quot;assigns&quot;}),r.equals=n({args:[&quot;array&quot;,&quot;array&quot;],pre:i,body:{args:[{name:&quot;x&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;y&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(x!==y){return false}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return true&quot;},funcName:&quot;equals&quot;})},{&quot;cwise-compiler&quot;:151}],491:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ndarray&quot;),i=t(&quot;./doConvert.js&quot;);e.exports=function(t,e){for(var r=[],a=t,o=1;Array.isArray(a);)r.push(a.length),o*=a.length,a=a[0];return 0===r.length?n():(e||(e=n(new Float64Array(o),r)),i(e,t),e)}},{&quot;./doConvert.js&quot;:492,ndarray:495}],492:[function(t,e,r){e.exports=t(&quot;cwise-compiler&quot;)({args:[&quot;array&quot;,&quot;scalar&quot;,&quot;index&quot;],pre:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},body:{body:&quot;{\nvar _inline_1_v=_inline_1_arg1_,_inline_1_i\nfor(_inline_1_i=0;_inline_1_i&lt;_inline_1_arg2_.length-1;++_inline_1_i) {\n_inline_1_v=_inline_1_v[_inline_1_arg2_[_inline_1_i]]\n}\n_inline_1_arg0_=_inline_1_v[_inline_1_arg2_[_inline_1_arg2_.length-1]]\n}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!0,rvalue:!1,count:1},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg2_&quot;,lvalue:!1,rvalue:!0,count:4}],thisVars:[],localVars:[&quot;_inline_1_i&quot;,&quot;_inline_1_v&quot;]},post:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},funcName:&quot;convert&quot;,blockSize:64})},{&quot;cwise-compiler&quot;:151}],493:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=32;function a(t){switch(t){case&quot;uint8&quot;:return[n.mallocUint8,n.freeUint8];case&quot;uint16&quot;:return[n.mallocUint16,n.freeUint16];case&quot;uint32&quot;:return[n.mallocUint32,n.freeUint32];case&quot;int8&quot;:return[n.mallocInt8,n.freeInt8];case&quot;int16&quot;:return[n.mallocInt16,n.freeInt16];case&quot;int32&quot;:return[n.mallocInt32,n.freeInt32];case&quot;float32&quot;:return[n.mallocFloat,n.freeFloat];case&quot;float64&quot;:return[n.mallocDouble,n.freeDouble];default:return null}}function o(t){for(var e=[],r=0;r&lt;t;++r)e.push(&quot;s&quot;+r);for(r=0;r&lt;t;++r)e.push(&quot;n&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;d&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;e&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;f&quot;+r);return e}e.exports=function(t,e){var r=[&quot;'use strict'&quot;],n=[&quot;ndarraySortWrapper&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;);r.push([&quot;function &quot;,n,&quot;(&quot;,[&quot;array&quot;].join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));for(var s=[&quot;data=array.data,offset=array.offset|0,shape=array.shape,stride=array.stride&quot;],l=0;l&lt;t.length;++l)s.push([&quot;s&quot;,l,&quot;=stride[&quot;,l,&quot;]|0,n&quot;,l,&quot;=shape[&quot;,l,&quot;]|0&quot;].join(&quot;&quot;));var c=new Array(t.length),u=[];for(l=0;l&lt;t.length;++l){0!==(p=t[l])&amp;&amp;(0===u.length?c[p]=&quot;1&quot;:c[p]=u.join(&quot;*&quot;),u.push(&quot;n&quot;+p))}var f=-1,h=-1;for(l=0;l&lt;t.length;++l){var p,d=t[l];0!==d&amp;&amp;(f&gt;0?s.push([&quot;d&quot;,d,&quot;=s&quot;,d,&quot;-d&quot;,f,&quot;*n&quot;,f].join(&quot;&quot;)):s.push([&quot;d&quot;,d,&quot;=s&quot;,d].join(&quot;&quot;)),f=d),0!==(p=t.length-1-l)&amp;&amp;(h&gt;0?s.push([&quot;e&quot;,p,&quot;=s&quot;,p,&quot;-e&quot;,h,&quot;*n&quot;,h,&quot;,f&quot;,p,&quot;=&quot;,c[p],&quot;-f&quot;,h,&quot;*n&quot;,h].join(&quot;&quot;)):s.push([&quot;e&quot;,p,&quot;=s&quot;,p,&quot;,f&quot;,p,&quot;=&quot;,c[p]].join(&quot;&quot;)),h=p)}r.push(&quot;var &quot;+s.join(&quot;,&quot;));var g=[&quot;0&quot;,&quot;n0-1&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length));r.push([&quot;if(n0&lt;=&quot;,i,&quot;){&quot;,&quot;insertionSort(&quot;,g.join(&quot;,&quot;),&quot;)}else{&quot;,&quot;quickSort(&quot;,g.join(&quot;,&quot;),&quot;)}&quot;].join(&quot;&quot;)),r.push(&quot;}return &quot;+n);var m=new Function(&quot;insertionSort&quot;,&quot;quickSort&quot;,r.join(&quot;\n&quot;)),v=function(t,e){var r=[&quot;'use strict'&quot;],n=[&quot;ndarrayInsertionSort&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;),i=[&quot;left&quot;,&quot;right&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length)),s=a(e),l=[&quot;i,j,cptr,ptr=left*s0+offset&quot;];if(t.length&gt;1){for(var c=[],u=1;u&lt;t.length;++u)l.push(&quot;i&quot;+u),c.push(&quot;n&quot;+u);s?l.push(&quot;scratch=malloc(&quot;+c.join(&quot;*&quot;)+&quot;)&quot;):l.push(&quot;scratch=new Array(&quot;+c.join(&quot;*&quot;)+&quot;)&quot;),l.push(&quot;dptr&quot;,&quot;sptr&quot;,&quot;a&quot;,&quot;b&quot;)}else l.push(&quot;scratch&quot;);function f(t){return&quot;generic&quot;===e?[&quot;data.get(&quot;,t,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]&quot;].join(&quot;&quot;)}function h(t,r){return&quot;generic&quot;===e?[&quot;data.set(&quot;,t,&quot;,&quot;,r,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]=&quot;,r].join(&quot;&quot;)}if(r.push([&quot;function &quot;,n,&quot;(&quot;,i.join(&quot;,&quot;),&quot;){var &quot;,l.join(&quot;,&quot;)].join(&quot;&quot;),&quot;for(i=left+1;i&lt;=right;++i){&quot;,&quot;j=i;ptr+=s0&quot;,&quot;cptr=ptr&quot;),t.length&gt;1){r.push(&quot;dptr=0;sptr=ptr&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(&quot;scratch[dptr++]=&quot;,f(&quot;sptr&quot;));for(u=0;u&lt;t.length;++u){0!==(p=t[u])&amp;&amp;r.push(&quot;sptr+=d&quot;+p,&quot;}&quot;)}r.push(&quot;__g:while(j--\x3eleft){&quot;,&quot;dptr=0&quot;,&quot;sptr=cptr-s0&quot;);for(u=1;u&lt;t.length;++u)1===u&amp;&amp;r.push(&quot;__l:&quot;),r.push([&quot;for(i&quot;,u,&quot;=0;i&quot;,u,&quot;&lt;n&quot;,u,&quot;;++i&quot;,u,&quot;){&quot;].join(&quot;&quot;));r.push([&quot;a=&quot;,f(&quot;sptr&quot;),&quot;\nb=scratch[dptr]\nif(a&lt;b){break __g}\nif(a&gt;b){break __l}&quot;].join(&quot;&quot;));for(u=t.length-1;u&gt;=1;--u)r.push(&quot;sptr+=e&quot;+u,&quot;dptr+=f&quot;+u,&quot;}&quot;);r.push(&quot;dptr=cptr;sptr=cptr-s0&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(h(&quot;dptr&quot;,f(&quot;sptr&quot;)));for(u=0;u&lt;t.length;++u){0!==(p=t[u])&amp;&amp;r.push([&quot;dptr+=d&quot;,p,&quot;;sptr+=d&quot;,p].join(&quot;&quot;),&quot;}&quot;)}r.push(&quot;cptr-=s0\n}&quot;),r.push(&quot;dptr=cptr;sptr=0&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(h(&quot;dptr&quot;,&quot;scratch[sptr++]&quot;));for(u=0;u&lt;t.length;++u){var p;0!==(p=t[u])&amp;&amp;r.push(&quot;dptr+=d&quot;+p,&quot;}&quot;)}}else r.push(&quot;scratch=&quot;+f(&quot;ptr&quot;),&quot;while((j--\x3eleft)&amp;&amp;(&quot;+f(&quot;cptr-s0&quot;)+&quot;&gt;scratch)){&quot;,h(&quot;cptr&quot;,f(&quot;cptr-s0&quot;)),&quot;cptr-=s0&quot;,&quot;}&quot;,h(&quot;cptr&quot;,&quot;scratch&quot;));return r.push(&quot;}&quot;),t.length&gt;1&amp;&amp;s&amp;&amp;r.push(&quot;free(scratch)&quot;),r.push(&quot;} return &quot;+n),s?new Function(&quot;malloc&quot;,&quot;free&quot;,r.join(&quot;\n&quot;))(s[0],s[1]):new Function(r.join(&quot;\n&quot;))()}(t,e),y=function(t,e,r){var n=[&quot;'use strict'&quot;],s=[&quot;ndarrayQuickSort&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;),l=[&quot;left&quot;,&quot;right&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length)),c=a(e),u=0;n.push([&quot;function &quot;,s,&quot;(&quot;,l.join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));var f=[&quot;sixth=((right-left+1)/6)|0&quot;,&quot;index1=left+sixth&quot;,&quot;index5=right-sixth&quot;,&quot;index3=(left+right)&gt;&gt;1&quot;,&quot;index2=index3-sixth&quot;,&quot;index4=index3+sixth&quot;,&quot;el1=index1&quot;,&quot;el2=index2&quot;,&quot;el3=index3&quot;,&quot;el4=index4&quot;,&quot;el5=index5&quot;,&quot;less=left+1&quot;,&quot;great=right-1&quot;,&quot;pivots_are_equal=true&quot;,&quot;tmp&quot;,&quot;tmp0&quot;,&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;k&quot;,&quot;ptr0&quot;,&quot;ptr1&quot;,&quot;ptr2&quot;,&quot;comp_pivot1=0&quot;,&quot;comp_pivot2=0&quot;,&quot;comp=0&quot;];if(t.length&gt;1){for(var h=[],p=1;p&lt;t.length;++p)h.push(&quot;n&quot;+p),f.push(&quot;i&quot;+p);for(p=0;p&lt;8;++p)f.push(&quot;b_ptr&quot;+p);f.push(&quot;ptr3&quot;,&quot;ptr4&quot;,&quot;ptr5&quot;,&quot;ptr6&quot;,&quot;ptr7&quot;,&quot;pivot_ptr&quot;,&quot;ptr_shift&quot;,&quot;elementSize=&quot;+h.join(&quot;*&quot;)),c?f.push(&quot;pivot1=malloc(elementSize)&quot;,&quot;pivot2=malloc(elementSize)&quot;):f.push(&quot;pivot1=new Array(elementSize),pivot2=new Array(elementSize)&quot;)}else f.push(&quot;pivot1&quot;,&quot;pivot2&quot;);function d(t){return[&quot;(offset+&quot;,t,&quot;*s0)&quot;].join(&quot;&quot;)}function g(t){return&quot;generic&quot;===e?[&quot;data.get(&quot;,t,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]&quot;].join(&quot;&quot;)}function m(t,r){return&quot;generic&quot;===e?[&quot;data.set(&quot;,t,&quot;,&quot;,r,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]=&quot;,r].join(&quot;&quot;)}function v(e,r,i){if(1===e.length)n.push(&quot;ptr0=&quot;+d(e[0]));else for(var a=0;a&lt;e.length;++a)n.push([&quot;b_ptr&quot;,a,&quot;=s0*&quot;,e[a]].join(&quot;&quot;));r&amp;&amp;n.push(&quot;pivot_ptr=0&quot;),n.push(&quot;ptr_shift=offset&quot;);for(a=t.length-1;a&gt;=0;--a){0!==(o=t[a])&amp;&amp;n.push([&quot;for(i&quot;,o,&quot;=0;i&quot;,o,&quot;&lt;n&quot;,o,&quot;;++i&quot;,o,&quot;){&quot;].join(&quot;&quot;))}if(e.length&gt;1)for(a=0;a&lt;e.length;++a)n.push([&quot;ptr&quot;,a,&quot;=b_ptr&quot;,a,&quot;+ptr_shift&quot;].join(&quot;&quot;));n.push(i),r&amp;&amp;n.push(&quot;++pivot_ptr&quot;);for(a=0;a&lt;t.length;++a){var o;0!==(o=t[a])&amp;&amp;(e.length&gt;1?n.push(&quot;ptr_shift+=d&quot;+o):n.push(&quot;ptr0+=d&quot;+o),n.push(&quot;}&quot;))}}function y(e,r,i,a){if(1===r.length)n.push(&quot;ptr0=&quot;+d(r[0]));else{for(var o=0;o&lt;r.length;++o)n.push([&quot;b_ptr&quot;,o,&quot;=s0*&quot;,r[o]].join(&quot;&quot;));n.push(&quot;ptr_shift=offset&quot;)}i&amp;&amp;n.push(&quot;pivot_ptr=0&quot;),e&amp;&amp;n.push(e+&quot;:&quot;);for(o=1;o&lt;t.length;++o)n.push([&quot;for(i&quot;,o,&quot;=0;i&quot;,o,&quot;&lt;n&quot;,o,&quot;;++i&quot;,o,&quot;){&quot;].join(&quot;&quot;));if(r.length&gt;1)for(o=0;o&lt;r.length;++o)n.push([&quot;ptr&quot;,o,&quot;=b_ptr&quot;,o,&quot;+ptr_shift&quot;].join(&quot;&quot;));n.push(a);for(o=t.length-1;o&gt;=1;--o)i&amp;&amp;n.push(&quot;pivot_ptr+=f&quot;+o),r.length&gt;1?n.push(&quot;ptr_shift+=e&quot;+o):n.push(&quot;ptr0+=e&quot;+o),n.push(&quot;}&quot;)}function x(){t.length&gt;1&amp;&amp;c&amp;&amp;n.push(&quot;free(pivot1)&quot;,&quot;free(pivot2)&quot;)}function b(e,r){var i=&quot;el&quot;+e,a=&quot;el&quot;+r;if(t.length&gt;1){var o=&quot;__l&quot;+ ++u;y(o,[i,a],!1,[&quot;comp=&quot;,g(&quot;ptr0&quot;),&quot;-&quot;,g(&quot;ptr1&quot;),&quot;\n&quot;,&quot;if(comp&gt;0){tmp0=&quot;,i,&quot;;&quot;,i,&quot;=&quot;,a,&quot;;&quot;,a,&quot;=tmp0;break &quot;,o,&quot;}\n&quot;,&quot;if(comp&lt;0){break &quot;,o,&quot;}&quot;].join(&quot;&quot;))}else n.push([&quot;if(&quot;,g(d(i)),&quot;&gt;&quot;,g(d(a)),&quot;){tmp0=&quot;,i,&quot;;&quot;,i,&quot;=&quot;,a,&quot;;&quot;,a,&quot;=tmp0}&quot;].join(&quot;&quot;))}function _(e,r){t.length&gt;1?v([e,r],!1,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;))):n.push(m(d(e),g(d(r))))}function w(e,r,i){if(t.length&gt;1){var a=&quot;__l&quot;+ ++u;y(a,[r],!0,[e,&quot;=&quot;,g(&quot;ptr0&quot;),&quot;-pivot&quot;,i,&quot;[pivot_ptr]\n&quot;,&quot;if(&quot;,e,&quot;!==0){break &quot;,a,&quot;}&quot;].join(&quot;&quot;))}else n.push([e,&quot;=&quot;,g(d(r)),&quot;-pivot&quot;,i].join(&quot;&quot;))}function T(e,r){t.length&gt;1?v([e,r],!1,[&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,&quot;tmp&quot;)].join(&quot;&quot;)):n.push([&quot;ptr0=&quot;,d(e),&quot;\n&quot;,&quot;ptr1=&quot;,d(r),&quot;\n&quot;,&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,&quot;tmp&quot;)].join(&quot;&quot;))}function k(e,r,i){t.length&gt;1?(v([e,r,i],!1,[&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,g(&quot;ptr2&quot;)),&quot;\n&quot;,m(&quot;ptr2&quot;,&quot;tmp&quot;)].join(&quot;&quot;)),n.push(&quot;++&quot;+r,&quot;--&quot;+i)):n.push([&quot;ptr0=&quot;,d(e),&quot;\n&quot;,&quot;ptr1=&quot;,d(r),&quot;\n&quot;,&quot;ptr2=&quot;,d(i),&quot;\n&quot;,&quot;++&quot;,r,&quot;\n&quot;,&quot;--&quot;,i,&quot;\n&quot;,&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,g(&quot;ptr2&quot;)),&quot;\n&quot;,m(&quot;ptr2&quot;,&quot;tmp&quot;)].join(&quot;&quot;))}function M(t,e){T(t,e),n.push(&quot;--&quot;+e)}function A(e,r,i){t.length&gt;1?v([e,r],!0,[m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,[&quot;pivot&quot;,i,&quot;[pivot_ptr]&quot;].join(&quot;&quot;))].join(&quot;&quot;)):n.push(m(d(e),g(d(r))),m(d(r),&quot;pivot&quot;+i))}function S(e,r){n.push([&quot;if((&quot;,r,&quot;-&quot;,e,&quot;)&lt;=&quot;,i,&quot;){\n&quot;,&quot;insertionSort(&quot;,e,&quot;,&quot;,r,&quot;,data,offset,&quot;,o(t.length).join(&quot;,&quot;),&quot;)\n&quot;,&quot;}else{\n&quot;,s,&quot;(&quot;,e,&quot;,&quot;,r,&quot;,data,offset,&quot;,o(t.length).join(&quot;,&quot;),&quot;)\n&quot;,&quot;}&quot;].join(&quot;&quot;))}function E(e,r,i){t.length&gt;1?(n.push([&quot;__l&quot;,++u,&quot;:while(true){&quot;].join(&quot;&quot;)),v([e],!0,[&quot;if(&quot;,g(&quot;ptr0&quot;),&quot;!==pivot&quot;,r,&quot;[pivot_ptr]){break __l&quot;,u,&quot;}&quot;].join(&quot;&quot;)),n.push(i,&quot;}&quot;)):n.push([&quot;while(&quot;,g(d(e)),&quot;===pivot&quot;,r,&quot;){&quot;,i,&quot;}&quot;].join(&quot;&quot;))}return n.push(&quot;var &quot;+f.join(&quot;,&quot;)),b(1,2),b(4,5),b(1,3),b(2,3),b(1,4),b(3,4),b(2,5),b(2,3),b(4,5),t.length&gt;1?v([&quot;el1&quot;,&quot;el2&quot;,&quot;el3&quot;,&quot;el4&quot;,&quot;el5&quot;,&quot;index1&quot;,&quot;index3&quot;,&quot;index5&quot;],!0,[&quot;pivot1[pivot_ptr]=&quot;,g(&quot;ptr1&quot;),&quot;\n&quot;,&quot;pivot2[pivot_ptr]=&quot;,g(&quot;ptr3&quot;),&quot;\n&quot;,&quot;pivots_are_equal=pivots_are_equal&amp;&amp;(pivot1[pivot_ptr]===pivot2[pivot_ptr])\n&quot;,&quot;x=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,&quot;y=&quot;,g(&quot;ptr2&quot;),&quot;\n&quot;,&quot;z=&quot;,g(&quot;ptr4&quot;),&quot;\n&quot;,m(&quot;ptr5&quot;,&quot;x&quot;),&quot;\n&quot;,m(&quot;ptr6&quot;,&quot;y&quot;),&quot;\n&quot;,m(&quot;ptr7&quot;,&quot;z&quot;)].join(&quot;&quot;)):n.push([&quot;pivot1=&quot;,g(d(&quot;el2&quot;)),&quot;\n&quot;,&quot;pivot2=&quot;,g(d(&quot;el4&quot;)),&quot;\n&quot;,&quot;pivots_are_equal=pivot1===pivot2\n&quot;,&quot;x=&quot;,g(d(&quot;el1&quot;)),&quot;\n&quot;,&quot;y=&quot;,g(d(&quot;el3&quot;)),&quot;\n&quot;,&quot;z=&quot;,g(d(&quot;el5&quot;)),&quot;\n&quot;,m(d(&quot;index1&quot;),&quot;x&quot;),&quot;\n&quot;,m(d(&quot;index3&quot;),&quot;y&quot;),&quot;\n&quot;,m(d(&quot;index5&quot;),&quot;z&quot;)].join(&quot;&quot;)),_(&quot;index2&quot;,&quot;left&quot;),_(&quot;index4&quot;,&quot;right&quot;),n.push(&quot;if(pivots_are_equal){&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp&quot;,&quot;k&quot;,1),n.push(&quot;if(comp===0){continue}&quot;),n.push(&quot;if(comp&lt;0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&gt;0){&quot;),n.push(&quot;great--&quot;),n.push(&quot;}else if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;break&quot;),n.push(&quot;}else{&quot;),M(&quot;k&quot;,&quot;great&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}else{&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp_pivot1&quot;,&quot;k&quot;,1),n.push(&quot;if(comp_pivot1&lt;0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),w(&quot;comp_pivot2&quot;,&quot;k&quot;,2),n.push(&quot;if(comp_pivot2&gt;0){&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,2),n.push(&quot;if(comp&gt;0){&quot;),n.push(&quot;if(--great&lt;k){break}&quot;),n.push(&quot;continue&quot;),n.push(&quot;}else{&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;}else{&quot;),M(&quot;k&quot;,&quot;great&quot;),n.push(&quot;}&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),A(&quot;left&quot;,&quot;(less-1)&quot;,1),A(&quot;right&quot;,&quot;(great+1)&quot;,2),S(&quot;left&quot;,&quot;(less-2)&quot;),S(&quot;(great+2)&quot;,&quot;right&quot;),n.push(&quot;if(pivots_are_equal){&quot;),x(),n.push(&quot;return&quot;),n.push(&quot;}&quot;),n.push(&quot;if(less&lt;index1&amp;&amp;great&gt;index5){&quot;),E(&quot;less&quot;,1,&quot;++less&quot;),E(&quot;great&quot;,2,&quot;--great&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp_pivot1&quot;,&quot;k&quot;,1),n.push(&quot;if(comp_pivot1===0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),w(&quot;comp_pivot2&quot;,&quot;k&quot;,2),n.push(&quot;if(comp_pivot2===0){&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,2),n.push(&quot;if(comp===0){&quot;),n.push(&quot;if(--great&lt;k){break}&quot;),n.push(&quot;continue&quot;),n.push(&quot;}else{&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;}else{&quot;),M(&quot;k&quot;,&quot;great&quot;),n.push(&quot;}&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),x(),S(&quot;less&quot;,&quot;great&quot;),n.push(&quot;}return &quot;+s),t.length&gt;1&amp;&amp;c?new Function(&quot;insertionSort&quot;,&quot;malloc&quot;,&quot;free&quot;,n.join(&quot;\n&quot;))(r,c[0],c[1]):new Function(&quot;insertionSort&quot;,n.join(&quot;\n&quot;))(r)}(t,e,v);return m(v,y)}},{&quot;typedarray-pool&quot;:595}],494:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/compile_sort.js&quot;),i={};e.exports=function(t){var e=t.order,r=t.dtype,a=[e,r].join(&quot;:&quot;),o=i[a];return o||(i[a]=o=n(e,r)),o(t),t}},{&quot;./lib/compile_sort.js&quot;:493}],495:[function(t,e,r){var n=t(&quot;iota-array&quot;),i=t(&quot;is-buffer&quot;),a=&quot;undefined&quot;!=typeof Float64Array;function o(t,e){return t[0]-e[0]}function s(){var t,e=this.stride,r=new Array(e.length);for(t=0;t&lt;r.length;++t)r[t]=[Math.abs(e[t]),t];r.sort(o);var n=new Array(r.length);for(t=0;t&lt;n.length;++t)n[t]=r[t][1];return n}function l(t,e){var r=[&quot;View&quot;,e,&quot;d&quot;,t].join(&quot;&quot;);e&lt;0&amp;&amp;(r=&quot;View_Nil&quot;+t);var i=&quot;generic&quot;===t;if(-1===e){var a=&quot;function &quot;+r+&quot;(a){this.data=a;};var proto=&quot;+r+&quot;.prototype;proto.dtype='&quot;+t+&quot;';proto.index=function(){return -1};proto.size=0;proto.dimension=-1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function(){return new &quot;+r+&quot;(this.data);};proto.get=proto.set=function(){};proto.pick=function(){return null};return function construct_&quot;+r+&quot;(a){return new &quot;+r+&quot;(a);}&quot;;return new Function(a)()}if(0===e){a=&quot;function &quot;+r+&quot;(a,d) {this.data = a;this.offset = d};var proto=&quot;+r+&quot;.prototype;proto.dtype='&quot;+t+&quot;';proto.index=function(){return this.offset};proto.dimension=0;proto.size=1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function &quot;+r+&quot;_copy() {return new &quot;+r+&quot;(this.data,this.offset)};proto.pick=function &quot;+r+&quot;_pick(){return TrivialArray(this.data);};proto.valueOf=proto.get=function &quot;+r+&quot;_get(){return &quot;+(i?&quot;this.data.get(this.offset)&quot;:&quot;this.data[this.offset]&quot;)+&quot;};proto.set=function &quot;+r+&quot;_set(v){return &quot;+(i?&quot;this.data.set(this.offset,v)&quot;:&quot;this.data[this.offset]=v&quot;)+&quot;};return function construct_&quot;+r+&quot;(a,b,c,d){return new &quot;+r+&quot;(a,d)}&quot;;return new Function(&quot;TrivialArray&quot;,a)(c[t][0])}a=[&quot;'use strict'&quot;];var o=n(e),l=o.map((function(t){return&quot;i&quot;+t})),u=&quot;this.offset+&quot;+o.map((function(t){return&quot;this.stride[&quot;+t+&quot;]*i&quot;+t})).join(&quot;+&quot;),f=o.map((function(t){return&quot;b&quot;+t})).join(&quot;,&quot;),h=o.map((function(t){return&quot;c&quot;+t})).join(&quot;,&quot;);a.push(&quot;function &quot;+r+&quot;(a,&quot;+f+&quot;,&quot;+h+&quot;,d){this.data=a&quot;,&quot;this.shape=[&quot;+f+&quot;]&quot;,&quot;this.stride=[&quot;+h+&quot;]&quot;,&quot;this.offset=d|0}&quot;,&quot;var proto=&quot;+r+&quot;.prototype&quot;,&quot;proto.dtype='&quot;+t+&quot;'&quot;,&quot;proto.dimension=&quot;+e),a.push(&quot;Object.defineProperty(proto,'size',{get:function &quot;+r+&quot;_size(){return &quot;+o.map((function(t){return&quot;this.shape[&quot;+t+&quot;]&quot;})).join(&quot;*&quot;),&quot;}})&quot;),1===e?a.push(&quot;proto.order=[0]&quot;):(a.push(&quot;Object.defineProperty(proto,'order',{get:&quot;),e&lt;4?(a.push(&quot;function &quot;+r+&quot;_order(){&quot;),2===e?a.push(&quot;return (Math.abs(this.stride[0])&gt;Math.abs(this.stride[1]))?[1,0]:[0,1]}})&quot;):3===e&amp;&amp;a.push(&quot;var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0&gt;s1){if(s1&gt;s2){return [2,1,0];}else if(s0&gt;s2){return [1,2,0];}else{return [1,0,2];}}else if(s0&gt;s2){return [2,0,1];}else if(s2&gt;s1){return [0,1,2];}else{return [0,2,1];}}})&quot;)):a.push(&quot;ORDER})&quot;)),a.push(&quot;proto.set=function &quot;+r+&quot;_set(&quot;+l.join(&quot;,&quot;)+&quot;,v){&quot;),i?a.push(&quot;return this.data.set(&quot;+u+&quot;,v)}&quot;):a.push(&quot;return this.data[&quot;+u+&quot;]=v}&quot;),a.push(&quot;proto.get=function &quot;+r+&quot;_get(&quot;+l.join(&quot;,&quot;)+&quot;){&quot;),i?a.push(&quot;return this.data.get(&quot;+u+&quot;)}&quot;):a.push(&quot;return this.data[&quot;+u+&quot;]}&quot;),a.push(&quot;proto.index=function &quot;+r+&quot;_index(&quot;,l.join(),&quot;){return &quot;+u+&quot;}&quot;),a.push(&quot;proto.hi=function &quot;+r+&quot;_hi(&quot;+l.join(&quot;,&quot;)+&quot;){return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return[&quot;(typeof i&quot;,t,&quot;!=='number'||i&quot;,t,&quot;&lt;0)?this.shape[&quot;,t,&quot;]:i&quot;,t,&quot;|0&quot;].join(&quot;&quot;)})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;this.stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,this.offset)}&quot;);var p=o.map((function(t){return&quot;a&quot;+t+&quot;=this.shape[&quot;+t+&quot;]&quot;})),d=o.map((function(t){return&quot;c&quot;+t+&quot;=this.stride[&quot;+t+&quot;]&quot;}));a.push(&quot;proto.lo=function &quot;+r+&quot;_lo(&quot;+l.join(&quot;,&quot;)+&quot;){var b=this.offset,d=0,&quot;+p.join(&quot;,&quot;)+&quot;,&quot;+d.join(&quot;,&quot;));for(var g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'&amp;&amp;i&quot;+g+&quot;&gt;=0){d=i&quot;+g+&quot;|0;b+=c&quot;+g+&quot;*d;a&quot;+g+&quot;-=d}&quot;);a.push(&quot;return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return&quot;a&quot;+t})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;c&quot;+t})).join(&quot;,&quot;)+&quot;,b)}&quot;),a.push(&quot;proto.step=function &quot;+r+&quot;_step(&quot;+l.join(&quot;,&quot;)+&quot;){var &quot;+o.map((function(t){return&quot;a&quot;+t+&quot;=this.shape[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;b&quot;+t+&quot;=this.stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,c=this.offset,d=0,ceil=Math.ceil&quot;);for(g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'){d=i&quot;+g+&quot;|0;if(d&lt;0){c+=b&quot;+g+&quot;*(a&quot;+g+&quot;-1);a&quot;+g+&quot;=ceil(-a&quot;+g+&quot;/d)}else{a&quot;+g+&quot;=ceil(a&quot;+g+&quot;/d)}b&quot;+g+&quot;*=d}&quot;);a.push(&quot;return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return&quot;a&quot;+t})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;b&quot;+t})).join(&quot;,&quot;)+&quot;,c)}&quot;);var m=new Array(e),v=new Array(e);for(g=0;g&lt;e;++g)m[g]=&quot;a[i&quot;+g+&quot;]&quot;,v[g]=&quot;b[i&quot;+g+&quot;]&quot;;a.push(&quot;proto.transpose=function &quot;+r+&quot;_transpose(&quot;+l+&quot;){&quot;+l.map((function(t,e){return t+&quot;=(&quot;+t+&quot;===undefined?&quot;+e+&quot;:&quot;+t+&quot;|0)&quot;})).join(&quot;;&quot;),&quot;var a=this.shape,b=this.stride;return new &quot;+r+&quot;(this.data,&quot;+m.join(&quot;,&quot;)+&quot;,&quot;+v.join(&quot;,&quot;)+&quot;,this.offset)}&quot;),a.push(&quot;proto.pick=function &quot;+r+&quot;_pick(&quot;+l+&quot;){var a=[],b=[],c=this.offset&quot;);for(g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'&amp;&amp;i&quot;+g+&quot;&gt;=0){c=(c+this.stride[&quot;+g+&quot;]*i&quot;+g+&quot;)|0}else{a.push(this.shape[&quot;+g+&quot;]);b.push(this.stride[&quot;+g+&quot;])}&quot;);return a.push(&quot;var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}&quot;),a.push(&quot;return function construct_&quot;+r+&quot;(data,shape,stride,offset){return new &quot;+r+&quot;(data,&quot;+o.map((function(t){return&quot;shape[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,offset)}&quot;),new Function(&quot;CTOR_LIST&quot;,&quot;ORDER&quot;,a.join(&quot;\n&quot;))(c[t],s)}var c={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],bigint64:[],biguint64:[],buffer:[],generic:[]};e.exports=function(t,e,r,n){if(void 0===t)return(0,c.array[0])([]);&quot;number&quot;==typeof t&amp;&amp;(t=[t]),void 0===e&amp;&amp;(e=[t.length]);var o=e.length;if(void 0===r){r=new Array(o);for(var s=o-1,u=1;s&gt;=0;--s)r[s]=u,u*=e[s]}if(void 0===n){n=0;for(s=0;s&lt;o;++s)r[s]&lt;0&amp;&amp;(n-=(e[s]-1)*r[s])}for(var f=function(t){if(i(t))return&quot;buffer&quot;;if(a)switch(Object.prototype.toString.call(t)){case&quot;[object Float64Array]&quot;:return&quot;float64&quot;;case&quot;[object Float32Array]&quot;:return&quot;float32&quot;;case&quot;[object Int8Array]&quot;:return&quot;int8&quot;;case&quot;[object Int16Array]&quot;:return&quot;int16&quot;;case&quot;[object Int32Array]&quot;:return&quot;int32&quot;;case&quot;[object Uint8Array]&quot;:return&quot;uint8&quot;;case&quot;[object Uint16Array]&quot;:return&quot;uint16&quot;;case&quot;[object Uint32Array]&quot;:return&quot;uint32&quot;;case&quot;[object Uint8ClampedArray]&quot;:return&quot;uint8_clamped&quot;;case&quot;[object BigInt64Array]&quot;:return&quot;bigint64&quot;;case&quot;[object BigUint64Array]&quot;:return&quot;biguint64&quot;}return Array.isArray(t)?&quot;array&quot;:&quot;generic&quot;}(t),h=c[f];h.length&lt;=o+1;)h.push(l(f,h.length-1));return(0,h[o+1])(t,e,r,n)}},{&quot;iota-array&quot;:463,&quot;is-buffer&quot;:465}],496:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;double-bits&quot;),i=Math.pow(2,-1074);e.exports=function(t,e){if(isNaN(t)||isNaN(e))return NaN;if(t===e)return t;if(0===t)return e&lt;0?-i:i;var r=n.hi(t),a=n.lo(t);e&gt;t==t&gt;0?a===-1&gt;&gt;&gt;0?(r+=1,a=0):a+=1:0===a?(a=-1&gt;&gt;&gt;0,r-=1):a-=1;return n.pack(a,r)}},{&quot;double-bits&quot;:173}],497:[function(t,e,r){var n=Math.PI,i=c(120);function a(t,e,r,n){return[&quot;C&quot;,t,e,r,n,r,n]}function o(t,e,r,n,i,a){return[&quot;C&quot;,t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function s(t,e,r,a,o,c,u,f,h,p){if(p)T=p[0],k=p[1],_=p[2],w=p[3];else{var d=l(t,e,-o);t=d.x,e=d.y;var g=(t-(f=(d=l(f,h,-o)).x))/2,m=(e-(h=d.y))/2,v=g*g/(r*r)+m*m/(a*a);v&gt;1&amp;&amp;(r*=v=Math.sqrt(v),a*=v);var y=r*r,x=a*a,b=(c==u?-1:1)*Math.sqrt(Math.abs((y*x-y*m*m-x*g*g)/(y*m*m+x*g*g)));b==1/0&amp;&amp;(b=1);var _=b*r*m/a+(t+f)/2,w=b*-a*g/r+(e+h)/2,T=Math.asin(((e-w)/a).toFixed(9)),k=Math.asin(((h-w)/a).toFixed(9));(T=t&lt;_?n-T:T)&lt;0&amp;&amp;(T=2*n+T),(k=f&lt;_?n-k:k)&lt;0&amp;&amp;(k=2*n+k),u&amp;&amp;T&gt;k&amp;&amp;(T-=2*n),!u&amp;&amp;k&gt;T&amp;&amp;(k-=2*n)}if(Math.abs(k-T)&gt;i){var M=k,A=f,S=h;k=T+i*(u&amp;&amp;k&gt;T?1:-1);var E=s(f=_+r*Math.cos(k),h=w+a*Math.sin(k),r,a,o,0,u,A,S,[k,M,_,w])}var C=Math.tan((k-T)/4),L=4/3*r*C,I=4/3*a*C,P=[2*t-(t+L*Math.sin(T)),2*e-(e-I*Math.cos(T)),f+L*Math.sin(k),h-I*Math.cos(k),f,h];if(p)return P;E&amp;&amp;(P=P.concat(E));for(var z=0;z&lt;P.length;){var O=l(P[z],P[z+1],o);P[z++]=O.x,P[z++]=O.y}return P}function l(t,e,r){return{x:t*Math.cos(r)-e*Math.sin(r),y:t*Math.sin(r)+e*Math.cos(r)}}function c(t){return t*(n/180)}e.exports=function(t){for(var e,r=[],n=0,i=0,l=0,u=0,f=null,h=null,p=0,d=0,g=0,m=t.length;g&lt;m;g++){var v=t[g],y=v[0];switch(y){case&quot;M&quot;:l=v[1],u=v[2];break;case&quot;A&quot;:(v=s(p,d,v[1],v[2],c(v[3]),v[4],v[5],v[6],v[7])).unshift(&quot;C&quot;),v.length&gt;7&amp;&amp;(r.push(v.splice(0,7)),v.unshift(&quot;C&quot;));break;case&quot;S&quot;:var x=p,b=d;&quot;C&quot;!=e&amp;&amp;&quot;S&quot;!=e||(x+=x-n,b+=b-i),v=[&quot;C&quot;,x,b,v[1],v[2],v[3],v[4]];break;case&quot;T&quot;:&quot;Q&quot;==e||&quot;T&quot;==e?(f=2*p-f,h=2*d-h):(f=p,h=d),v=o(p,d,f,h,v[1],v[2]);break;case&quot;Q&quot;:f=v[1],h=v[2],v=o(p,d,v[1],v[2],v[3],v[4]);break;case&quot;L&quot;:v=a(p,d,v[1],v[2]);break;case&quot;H&quot;:v=a(p,d,v[1],d);break;case&quot;V&quot;:v=a(p,d,p,v[1]);break;case&quot;Z&quot;:v=a(p,d,l,u)}e=y,p=v[v.length-2],d=v[v.length-1],v.length&gt;4?(n=v[v.length-4],i=v[v.length-3]):(n=p,i=d),r.push(v)}return r}},{}],498:[function(t,e,r){r.vertexNormals=function(t,e,r){for(var n=e.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o&lt;n;++o)i[o]=[0,0,0];for(o=0;o&lt;t.length;++o)for(var s=t[o],l=0,c=s[s.length-1],u=s[0],f=0;f&lt;s.length;++f){l=c,c=u,u=s[(f+1)%s.length];for(var h=e[l],p=e[c],d=e[u],g=new Array(3),m=0,v=new Array(3),y=0,x=0;x&lt;3;++x)g[x]=h[x]-p[x],m+=g[x]*g[x],v[x]=d[x]-p[x],y+=v[x]*v[x];if(m*y&gt;a){var b=i[c],_=1/Math.sqrt(m*y);for(x=0;x&lt;3;++x){var w=(x+1)%3,T=(x+2)%3;b[x]+=_*(v[w]*g[T]-v[T]*g[w])}}}for(o=0;o&lt;n;++o){b=i[o];var k=0;for(x=0;x&lt;3;++x)k+=b[x]*b[x];if(k&gt;a)for(_=1/Math.sqrt(k),x=0;x&lt;3;++x)b[x]*=_;else for(x=0;x&lt;3;++x)b[x]=0}return i},r.faceNormals=function(t,e,r){for(var n=t.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o&lt;n;++o){for(var s=t[o],l=new Array(3),c=0;c&lt;3;++c)l[c]=e[s[c]];var u=new Array(3),f=new Array(3);for(c=0;c&lt;3;++c)u[c]=l[1][c]-l[0][c],f[c]=l[2][c]-l[0][c];var h=new Array(3),p=0;for(c=0;c&lt;3;++c){var d=(c+1)%3,g=(c+2)%3;h[c]=u[d]*f[g]-u[g]*f[d],p+=h[c]*h[c]}p=p&gt;a?1/Math.sqrt(p):0;for(c=0;c&lt;3;++c)h[c]*=p;i[o]=h}return i}},{}],499:[function(t,e,r){
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
&quot;use strict&quot;;var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError(&quot;Object.assign cannot be called with null or undefined&quot;);return Object(t)}e.exports=function(){try{if(!Object.assign)return!1;var t=new String(&quot;abc&quot;);if(t[5]=&quot;de&quot;,&quot;5&quot;===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r&lt;10;r++)e[&quot;_&quot;+String.fromCharCode(r)]=r;if(&quot;0123456789&quot;!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(&quot;&quot;))return!1;var n={};return&quot;abcdefghijklmnopqrst&quot;.split(&quot;&quot;).forEach((function(t){n[t]=t})),&quot;abcdefghijklmnopqrst&quot;===Object.keys(Object.assign({},n)).join(&quot;&quot;)}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,l=o(t),c=1;c&lt;arguments.length;c++){for(var u in r=Object(arguments[c]))i.call(r,u)&amp;&amp;(l[u]=r[u]);if(n){s=n(r);for(var f=0;f&lt;s.length;f++)a.call(r,s[f])&amp;&amp;(l[s[f]]=r[s[f]])}}return l}},{}],500:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a,o,s,l,c){var u=e+a+c;if(f&gt;0){var f=Math.sqrt(u+1);t[0]=.5*(o-l)/f,t[1]=.5*(s-n)/f,t[2]=.5*(r-a)/f,t[3]=.5*f}else{var h=Math.max(e,a,c);f=Math.sqrt(2*h-u+1);e&gt;=h?(t[0]=.5*f,t[1]=.5*(i+r)/f,t[2]=.5*(s+n)/f,t[3]=.5*(o-l)/f):a&gt;=h?(t[0]=.5*(r+i)/f,t[1]=.5*f,t[2]=.5*(l+o)/f,t[3]=.5*(s-n)/f):(t[0]=.5*(n+s)/f,t[1]=.5*(o+l)/f,t[2]=.5*f,t[3]=.5*(r-i)/f)}return t}},{}],501:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.rotation||[0,0,0,1],n=t.radius||1;e=[].slice.call(e,0,3),u(r=[].slice.call(r,0,4),r);var i=new f(r,e,Math.log(n));i.setDistanceLimits(t.zoomMin,t.zoomMax),(&quot;eye&quot;in t||&quot;up&quot;in t)&amp;&amp;i.lookAt(0,t.eye,t.center,t.up);return i};var n=t(&quot;filtered-vector&quot;),i=t(&quot;gl-mat4/lookAt&quot;),a=t(&quot;gl-mat4/fromQuat&quot;),o=t(&quot;gl-mat4/invert&quot;),s=t(&quot;./lib/quatFromFrame&quot;);function l(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function c(t,e,r,n){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2)+Math.pow(n,2))}function u(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=c(r,n,i,a);o&gt;1e-6?(t[0]=r/o,t[1]=n/o,t[2]=i/o,t[3]=a/o):(t[0]=t[1]=t[2]=0,t[3]=1)}function f(t,e,r){this.radius=n([r]),this.center=n(e),this.rotation=n(t),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var h=f.prototype;h.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},h.recalcMatrix=function(t){this.radius.curve(t),this.center.curve(t),this.rotation.curve(t);var e=this.computedRotation;u(e,e);var r=this.computedMatrix;a(r,e);var n=this.computedCenter,i=this.computedEye,o=this.computedUp,s=Math.exp(this.computedRadius[0]);i[0]=n[0]+s*r[2],i[1]=n[1]+s*r[6],i[2]=n[2]+s*r[10],o[0]=r[1],o[1]=r[5],o[2]=r[9];for(var l=0;l&lt;3;++l){for(var c=0,f=0;f&lt;3;++f)c+=r[l+4*f]*i[f];r[12+l]=-c}},h.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n&lt;16;++n)e[n]=r[n];return e}return r},h.idle=function(t){this.center.idle(t),this.radius.idle(t),this.rotation.idle(t)},h.flush=function(t){this.center.flush(t),this.radius.flush(t),this.rotation.flush(t)},h.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=i[1],o=i[5],s=i[9],c=l(a,o,s);a/=c,o/=c,s/=c;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=l(u-=a*p,f-=o*p,h-=s*p);u/=d,f/=d,h/=d;var g=i[2],m=i[6],v=i[10],y=g*a+m*o+v*s,x=g*u+m*f+v*h,b=l(g-=y*a+x*u,m-=y*o+x*f,v-=y*s+x*h);g/=b,m/=b,v/=b;var _=u*e+a*r,w=f*e+o*r,T=h*e+s*r;this.center.move(t,_,w,T);var k=Math.exp(this.computedRadius[0]);k=Math.max(1e-4,k+n),this.radius.set(t,Math.log(k))},h.rotate=function(t,e,r,n){this.recalcMatrix(t),e=e||0,r=r||0;var i=this.computedMatrix,a=i[0],o=i[4],s=i[8],u=i[1],f=i[5],h=i[9],p=i[2],d=i[6],g=i[10],m=e*a+r*u,v=e*o+r*f,y=e*s+r*h,x=-(d*y-g*v),b=-(g*m-p*y),_=-(p*v-d*m),w=Math.sqrt(Math.max(0,1-Math.pow(x,2)-Math.pow(b,2)-Math.pow(_,2))),T=c(x,b,_,w);T&gt;1e-6?(x/=T,b/=T,_/=T,w/=T):(x=b=_=0,w=1);var k=this.computedRotation,M=k[0],A=k[1],S=k[2],E=k[3],C=M*w+E*x+A*_-S*b,L=A*w+E*b+S*x-M*_,I=S*w+E*_+M*b-A*x,P=E*w-M*x-A*b-S*_;if(n){x=p,b=d,_=g;var z=Math.sin(n)/l(x,b,_);x*=z,b*=z,_*=z,P=P*(w=Math.cos(e))-(C=C*w+P*x+L*_-I*b)*x-(L=L*w+P*b+I*x-C*_)*b-(I=I*w+P*_+C*b-L*x)*_}var O=c(C,L,I,P);O&gt;1e-6?(C/=O,L/=O,I/=O,P/=O):(C=L=I=0,P=1),this.rotation.set(t,C,L,I,P)},h.lookAt=function(t,e,r,n){this.recalcMatrix(t),r=r||this.computedCenter,e=e||this.computedEye,n=n||this.computedUp;var a=this.computedMatrix;i(a,e,r,n);var o=this.computedRotation;s(o,a[0],a[1],a[2],a[4],a[5],a[6],a[8],a[9],a[10]),u(o,o),this.rotation.set(t,o[0],o[1],o[2],o[3]);for(var l=0,c=0;c&lt;3;++c)l+=Math.pow(r[c]-e[c],2);this.radius.set(t,.5*Math.log(Math.max(l,1e-6))),this.center.set(t,r[0],r[1],r[2])},h.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},h.setMatrix=function(t,e){var r=this.computedRotation;s(r,e[0],e[1],e[2],e[4],e[5],e[6],e[8],e[9],e[10]),u(r,r),this.rotation.set(t,r[0],r[1],r[2],r[3]);var n=this.computedMatrix;o(n,e);var i=n[15];if(Math.abs(i)&gt;1e-6){var a=n[12]/i,l=n[13]/i,c=n[14]/i;this.recalcMatrix(t);var f=Math.exp(this.computedRadius[0]);this.center.set(t,a-n[2]*f,l-n[6]*f,c-n[10]*f),this.radius.idle(t)}else this.center.idle(t),this.radius.idle(t)},h.setDistance=function(t,e){e&gt;0&amp;&amp;this.radius.set(t,Math.log(e))},h.setDistanceLimits=function(t,e){t=t&gt;0?Math.log(t):-1/0,e=e&gt;0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},h.getDistanceLimits=function(t){var e=this.radius.bounds;return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},h.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},h.fromJSON=function(t){var e=this.lastT(),r=t.center;r&amp;&amp;this.center.set(e,r[0],r[1],r[2]);var n=t.rotation;n&amp;&amp;this.rotation.set(e,n[0],n[1],n[2],n[3]);var i=t.distance;i&amp;&amp;i&gt;0&amp;&amp;this.radius.set(e,Math.log(i)),this.setDistanceLimits(t.zoomMin,t.zoomMax)}},{&quot;./lib/quatFromFrame&quot;:500,&quot;filtered-vector&quot;:242,&quot;gl-mat4/fromQuat&quot;:282,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/lookAt&quot;:294}],502:[function(t,e,r){
/*!
 * pad-left &lt;https://github.com/jonschlinkert/pad-left&gt;
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT license.
 */
&quot;use strict&quot;;var n=t(&quot;repeat-string&quot;);e.exports=function(t,e,r){return n(r=&quot;undefined&quot;!=typeof r?r+&quot;&quot;:&quot; &quot;,e)+t}},{&quot;repeat-string&quot;:541}],503:[function(t,e,r){&quot;use strict&quot;;function n(t,e){if(&quot;string&quot;!=typeof t)return[t];var r=[t];&quot;string&quot;==typeof e||Array.isArray(e)?e={brackets:e}:e||(e={});var n=e.brackets?Array.isArray(e.brackets)?e.brackets:[e.brackets]:[&quot;{}&quot;,&quot;[]&quot;,&quot;()&quot;],i=e.escape||&quot;___&quot;,a=!!e.flat;n.forEach((function(t){var e=new RegExp([&quot;\\&quot;,t[0],&quot;[^\\&quot;,t[0],&quot;\\&quot;,t[1],&quot;]*\\&quot;,t[1]].join(&quot;&quot;)),n=[];function a(e,a,o){var s=r.push(e.slice(t[0].length,-t[1].length))-1;return n.push(s),i+s+i}r.forEach((function(t,n){for(var i,o=0;t!=i;)if(i=t,t=t.replace(e,a),o++&gt;1e4)throw Error(&quot;References have circular dependency. Please, check them.&quot;);r[n]=t})),n=n.reverse(),r=r.map((function(e){return n.forEach((function(r){e=e.replace(new RegExp(&quot;(\\&quot;+i+r+&quot;\\&quot;+i+&quot;)&quot;,&quot;g&quot;),t[0]+&quot;$1&quot;+t[1])})),e}))}));var o=new RegExp(&quot;\\&quot;+i+&quot;([0-9]+)\\&quot;+i);return a?r:function t(e,r,n){for(var i,a=[],s=0;i=o.exec(e);){if(s++&gt;1e4)throw Error(&quot;Circular references in parenthesis&quot;);a.push(e.slice(0,i.index)),a.push(t(r[i[1]],r)),e=e.slice(i.index+i[0].length)}return a.push(e),a}(r[0],r)}function i(t,e){if(e&amp;&amp;e.flat){var r,n=e&amp;&amp;e.escape||&quot;___&quot;,i=t[0];if(!i)return&quot;&quot;;for(var a=new RegExp(&quot;\\&quot;+n+&quot;([0-9]+)\\&quot;+n),o=0;i!=r;){if(o++&gt;1e4)throw Error(&quot;Circular references in &quot;+t);r=i,i=i.replace(a,s)}return i}return t.reduce((function t(e,r){return Array.isArray(r)&amp;&amp;(r=r.reduce(t,&quot;&quot;)),e+r}),&quot;&quot;);function s(e,r){if(null==t[r])throw Error(&quot;Reference &quot;+r+&quot;is undefined&quot;);return t[r]}}function a(t,e){return Array.isArray(t)?i(t,e):n(t,e)}a.parse=n,a.stringify=i,e.exports=a},{}],504:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;);e.exports=function(t){var e;arguments.length&gt;1&amp;&amp;(t=arguments);&quot;string&quot;==typeof t?t=t.split(/\s/).map(parseFloat):&quot;number&quot;==typeof t&amp;&amp;(t=[t]);t.length&amp;&amp;&quot;number&quot;==typeof t[0]?e=1===t.length?{width:t[0],height:t[0],x:0,y:0}:2===t.length?{width:t[0],height:t[1],x:0,y:0}:{x:t[0],y:t[1],width:t[2]-t[0]||0,height:t[3]-t[1]||0}:t&amp;&amp;(t=n(t,{left:&quot;x l left Left&quot;,top:&quot;y t top Top&quot;,width:&quot;w width W Width&quot;,height:&quot;h height W Width&quot;,bottom:&quot;b bottom Bottom&quot;,right:&quot;r right Right&quot;}),e={x:t.left||0,y:t.top||0},null==t.width?t.right?e.width=t.right-e.x:e.width=0:e.width=t.width,null==t.height?t.bottom?e.height=t.bottom-e.y:e.height=0:e.height=t.height);return e}},{&quot;pick-by-alias&quot;:511}],505:[function(t,e,r){e.exports=function(t){var e=[];return t.replace(i,(function(t,r,i){var o=r.toLowerCase();for(i=function(t){var e=t.match(a);return e?e.map(Number):[]}(i),&quot;m&quot;==o&amp;&amp;i.length&gt;2&amp;&amp;(e.push([r].concat(i.splice(0,2))),o=&quot;l&quot;,r=&quot;m&quot;==r?&quot;l&quot;:&quot;L&quot;);;){if(i.length==n[o])return i.unshift(r),e.push(i);if(i.length&lt;n[o])throw new Error(&quot;malformed path data&quot;);e.push([r].concat(i.splice(0,n[o])))}})),e};var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var a=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},{}],506:[function(t,e,r){e.exports=function(t,e){e||(e=[0,&quot;&quot;]),t=String(t);var r=parseFloat(t,10);return e[0]=r,e[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||&quot;&quot;,e}},{}],507:[function(t,e,r){(function(t){(function(){&quot;use strict&quot;;function r(t){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;Path must be a string. Received &quot;+JSON.stringify(t))}function n(t,e){for(var r,n=&quot;&quot;,i=0,a=-1,o=0,s=0;s&lt;=t.length;++s){if(s&lt;t.length)r=t.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(a===s-1||1===o);else if(a!==s-1&amp;&amp;2===o){if(n.length&lt;2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length&gt;2){var l=n.lastIndexOf(&quot;/&quot;);if(l!==n.length-1){-1===l?(n=&quot;&quot;,i=0):i=(n=n.slice(0,l)).length-1-n.lastIndexOf(&quot;/&quot;),a=s,o=0;continue}}else if(2===n.length||1===n.length){n=&quot;&quot;,i=0,a=s,o=0;continue}e&amp;&amp;(n.length&gt;0?n+=&quot;/..&quot;:n=&quot;..&quot;,i=2)}else n.length&gt;0?n+=&quot;/&quot;+t.slice(a+1,s):n=t.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===r&amp;&amp;-1!==o?++o:o=-1}return n}var i={resolve:function(){for(var e,i=&quot;&quot;,a=!1,o=arguments.length-1;o&gt;=-1&amp;&amp;!a;o--){var s;o&gt;=0?s=arguments[o]:(void 0===e&amp;&amp;(e=t.cwd()),s=e),r(s),0!==s.length&amp;&amp;(i=s+&quot;/&quot;+i,a=47===s.charCodeAt(0))}return i=n(i,!a),a?i.length&gt;0?&quot;/&quot;+i:&quot;/&quot;:i.length&gt;0?i:&quot;.&quot;},normalize:function(t){if(r(t),0===t.length)return&quot;.&quot;;var e=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1);return 0!==(t=n(t,!e)).length||e||(t=&quot;.&quot;),t.length&gt;0&amp;&amp;i&amp;&amp;(t+=&quot;/&quot;),e?&quot;/&quot;+t:t},isAbsolute:function(t){return r(t),t.length&gt;0&amp;&amp;47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return&quot;.&quot;;for(var t,e=0;e&lt;arguments.length;++e){var n=arguments[e];r(n),n.length&gt;0&amp;&amp;(void 0===t?t=n:t+=&quot;/&quot;+n)}return void 0===t?&quot;.&quot;:i.normalize(t)},relative:function(t,e){if(r(t),r(e),t===e)return&quot;&quot;;if((t=i.resolve(t))===(e=i.resolve(e)))return&quot;&quot;;for(var n=1;n&lt;t.length&amp;&amp;47===t.charCodeAt(n);++n);for(var a=t.length,o=a-n,s=1;s&lt;e.length&amp;&amp;47===e.charCodeAt(s);++s);for(var l=e.length-s,c=o&lt;l?o:l,u=-1,f=0;f&lt;=c;++f){if(f===c){if(l&gt;c){if(47===e.charCodeAt(s+f))return e.slice(s+f+1);if(0===f)return e.slice(s+f)}else o&gt;c&amp;&amp;(47===t.charCodeAt(n+f)?u=f:0===f&amp;&amp;(u=0));break}var h=t.charCodeAt(n+f);if(h!==e.charCodeAt(s+f))break;47===h&amp;&amp;(u=f)}var p=&quot;&quot;;for(f=n+u+1;f&lt;=a;++f)f!==a&amp;&amp;47!==t.charCodeAt(f)||(0===p.length?p+=&quot;..&quot;:p+=&quot;/..&quot;);return p.length&gt;0?p+e.slice(s+u):(s+=u,47===e.charCodeAt(s)&amp;&amp;++s,e.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(r(t),0===t.length)return&quot;.&quot;;for(var e=t.charCodeAt(0),n=47===e,i=-1,a=!0,o=t.length-1;o&gt;=1;--o)if(47===(e=t.charCodeAt(o))){if(!a){i=o;break}}else a=!1;return-1===i?n?&quot;/&quot;:&quot;.&quot;:n&amp;&amp;1===i?&quot;//&quot;:t.slice(0,i)},basename:function(t,e){if(void 0!==e&amp;&amp;&quot;string&quot;!=typeof e)throw new TypeError('&quot;ext&quot; argument must be a string');r(t);var n,i=0,a=-1,o=!0;if(void 0!==e&amp;&amp;e.length&gt;0&amp;&amp;e.length&lt;=t.length){if(e.length===t.length&amp;&amp;e===t)return&quot;&quot;;var s=e.length-1,l=-1;for(n=t.length-1;n&gt;=0;--n){var c=t.charCodeAt(n);if(47===c){if(!o){i=n+1;break}}else-1===l&amp;&amp;(o=!1,l=n+1),s&gt;=0&amp;&amp;(c===e.charCodeAt(s)?-1==--s&amp;&amp;(a=n):(s=-1,a=l))}return i===a?a=l:-1===a&amp;&amp;(a=t.length),t.slice(i,a)}for(n=t.length-1;n&gt;=0;--n)if(47===t.charCodeAt(n)){if(!o){i=n+1;break}}else-1===a&amp;&amp;(o=!1,a=n+1);return-1===a?&quot;&quot;:t.slice(i,a)},extname:function(t){r(t);for(var e=-1,n=0,i=-1,a=!0,o=0,s=t.length-1;s&gt;=0;--s){var l=t.charCodeAt(s);if(47!==l)-1===i&amp;&amp;(a=!1,i=s+1),46===l?-1===e?e=s:1!==o&amp;&amp;(o=1):-1!==e&amp;&amp;(o=-1);else if(!a){n=s+1;break}}return-1===e||-1===i||0===o||1===o&amp;&amp;e===i-1&amp;&amp;e===n+1?&quot;&quot;:t.slice(e,i)},format:function(t){if(null===t||&quot;object&quot;!=typeof t)throw new TypeError('The &quot;pathObject&quot; argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||&quot;&quot;)+(e.ext||&quot;&quot;);return r?r===e.root?r+n:r+t+n:n}(&quot;/&quot;,t)},parse:function(t){r(t);var e={root:&quot;&quot;,dir:&quot;&quot;,base:&quot;&quot;,ext:&quot;&quot;,name:&quot;&quot;};if(0===t.length)return e;var n,i=t.charCodeAt(0),a=47===i;a?(e.root=&quot;/&quot;,n=1):n=0;for(var o=-1,s=0,l=-1,c=!0,u=t.length-1,f=0;u&gt;=n;--u)if(47!==(i=t.charCodeAt(u)))-1===l&amp;&amp;(c=!1,l=u+1),46===i?-1===o?o=u:1!==f&amp;&amp;(f=1):-1!==o&amp;&amp;(f=-1);else if(!c){s=u+1;break}return-1===o||-1===l||0===f||1===f&amp;&amp;o===l-1&amp;&amp;o===s+1?-1!==l&amp;&amp;(e.base=e.name=0===s&amp;&amp;a?t.slice(1,l):t.slice(s,l)):(0===s&amp;&amp;a?(e.name=t.slice(1,o),e.base=t.slice(1,l)):(e.name=t.slice(s,o),e.base=t.slice(s,l)),e.ext=t.slice(o,l)),s&gt;0?e.dir=t.slice(0,s-1):a&amp;&amp;(e.dir=&quot;/&quot;),e},sep:&quot;/&quot;,delimiter:&quot;:&quot;,win32:null,posix:null};i.posix=i,e.exports=i}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:526}],508:[function(t,e,r){(function(t){(function(){(function(){var r,n,i,a,o,s;&quot;undefined&quot;!=typeof performance&amp;&amp;null!==performance&amp;&amp;performance.now?e.exports=function(){return performance.now()}:&quot;undefined&quot;!=typeof t&amp;&amp;null!==t&amp;&amp;t.hrtime?(e.exports=function(){return(r()-o)/1e6},n=t.hrtime,a=(r=function(){var t;return 1e9*(t=n())[0]+t[1]})(),s=1e9*t.uptime(),o=a-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:526}],509:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(e&lt;32){for(var r=1,i=0;i&lt;e;++i)for(var a=0;a&lt;i;++a)if(t[i]&lt;t[a])r=-r;else if(t[i]===t[a])return 0;return r}var o=n.mallocUint8(e);for(i=0;i&lt;e;++i)o[i]=0;for(r=1,i=0;i&lt;e;++i)if(!o[i]){var s=1;o[i]=1;for(a=t[i];a!==i;a=t[a]){if(o[a])return n.freeUint8(o),0;s+=1,o[a]=1}1&amp;s||(r=-r)}return n.freeUint8(o),r};var n=t(&quot;typedarray-pool&quot;)},{&quot;typedarray-pool&quot;:595}],510:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=t(&quot;invert-permutation&quot;);r.rank=function(t){var e=t.length;switch(e){case 0:case 1:return 0;case 2:return t[1]}var r,a,o,s=n.mallocUint32(e),l=n.mallocUint32(e),c=0;for(i(t,l),o=0;o&lt;e;++o)s[o]=t[o];for(o=e-1;o&gt;0;--o)a=l[o],r=s[o],s[o]=s[a],s[a]=r,l[o]=l[r],l[r]=a,c=(c+r)*o;return n.freeUint32(l),n.freeUint32(s),c},r.unrank=function(t,e,r){switch(t){case 0:return r||[];case 1:return r?(r[0]=0,r):[0];case 2:return r?(e?(r[0]=0,r[1]=1):(r[0]=1,r[1]=0),r):e?[0,1]:[1,0]}var n,i,a,o=1;for((r=r||new Array(t))[0]=0,a=1;a&lt;t;++a)r[a]=a,o=o*a|0;for(a=t-1;a&gt;0;--a)e=e-(n=e/o|0)*o|0,o=o/a|0,i=0|r[a],r[a]=0|r[n],r[n]=0|i;return r}},{&quot;invert-permutation&quot;:462,&quot;typedarray-pool&quot;:595}],511:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n,a,o={};if(&quot;string&quot;==typeof e&amp;&amp;(e=i(e)),Array.isArray(e)){var s={};for(a=0;a&lt;e.length;a++)s[e[a]]=!0;e=s}for(n in e)e[n]=i(e[n]);var l={};for(n in e){var c=e[n];if(Array.isArray(c))for(a=0;a&lt;c.length;a++){var u=c[a];if(r&amp;&amp;(l[u]=!0),u in t){if(o[n]=t[u],r)for(var f=a;f&lt;c.length;f++)l[c[f]]=!0;break}}else n in t&amp;&amp;(e[n]&amp;&amp;(o[n]=t[n]),r&amp;&amp;(l[n]=!0))}if(r)for(n in t)l[n]||(o[n]=t[n]);return o};var n={};function i(t){return n[t]?n[t]:(&quot;string&quot;==typeof t&amp;&amp;(t=n[t]=t.split(/\s*,\s*|\s+/)),t)}},{}],512:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=0|e.length,i=t.length,a=[new Array(r),new Array(r)],o=0;o&lt;r;++o)a[0][o]=[],a[1][o]=[];for(o=0;o&lt;i;++o){var s=t[o];a[0][s[0]].push(s),a[1][s[1]].push(s)}var l=[];for(o=0;o&lt;r;++o)a[0][o].length+a[1][o].length===0&amp;&amp;l.push([o]);function c(t,e){var r=a[e][t[e]];r.splice(r.indexOf(t),1)}function u(t,r,i){for(var o,s,l,u=0;u&lt;2;++u)if(a[u][r].length&gt;0){o=a[u][r][0],l=u;break}s=o[1^l];for(var f=0;f&lt;2;++f)for(var h=a[f][r],p=0;p&lt;h.length;++p){var d=h[p],g=d[1^f];n(e[t],e[r],e[s],e[g])&gt;0&amp;&amp;(o=d,s=g,l=f)}return i||o&amp;&amp;c(o,l),s}function f(t,r){var i=a[r][t][0],o=[t];c(i,r);for(var s=i[1^r];;){for(;s!==t;)o.push(s),s=u(o[o.length-2],s,!1);if(a[0][t].length+a[1][t].length===0)break;var l=o[o.length-1],f=t,h=o[1],p=u(l,f,!0);if(n(e[l],e[f],e[h],e[p])&lt;0)break;o.push(t),s=u(l,f)}return o}function h(t,e){return e[1]===e[e.length-1]}for(o=0;o&lt;r;++o)for(var p=0;p&lt;2;++p){for(var d=[];a[p][o].length&gt;0;){a[0][o].length;var g=f(o,p);h(0,g)?d.push.apply(d,g):(d.length&gt;0&amp;&amp;l.push(d),d=g)}d.length&gt;0&amp;&amp;l.push(d)}return l};var n=t(&quot;compare-angle&quot;)},{&quot;compare-angle&quot;:132}],513:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=n(t,e.length),i=new Array(e.length),a=new Array(e.length),o=[],s=0;s&lt;e.length;++s){var l=r[s].length;a[s]=l,i[s]=!0,l&lt;=1&amp;&amp;o.push(s)}for(;o.length&gt;0;){var c=o.pop();i[c]=!1;var u=r[c];for(s=0;s&lt;u.length;++s){var f=u[s];0==--a[f]&amp;&amp;o.push(f)}}var h=new Array(e.length),p=[];for(s=0;s&lt;e.length;++s)if(i[s]){c=p.length;h[s]=c,p.push(e[s])}else h[s]=-1;var d=[];for(s=0;s&lt;t.length;++s){var g=t[s];i[g[0]]&amp;&amp;i[g[1]]&amp;&amp;d.push([h[g[0]],h[g[1]]])}return[d,p]};var n=t(&quot;edges-to-adjacency-list&quot;)},{&quot;edges-to-adjacency-list&quot;:178}],514:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=c(t,e);t=r[0];for(var f=(e=r[1]).length,h=(t.length,n(t,e.length)),p=0;p&lt;f;++p)if(h[p].length%2==1)throw new Error(&quot;planar-graph-to-polyline: graph must be manifold&quot;);var d=i(t,e);var g=(d=d.filter((function(t){for(var r=t.length,n=[0],i=0;i&lt;r;++i){var a=e[t[i]],l=e[t[(i+1)%r]],c=o(-a[0],a[1]),u=o(-a[0],l[1]),f=o(l[0],a[1]),h=o(l[0],l[1]);n=s(n,s(s(c,u),s(f,h)))}return n[n.length-1]&gt;0}))).length,m=new Array(g),v=new Array(g);for(p=0;p&lt;g;++p){m[p]=p;var y=new Array(g),x=d[p].map((function(t){return e[t]})),b=a([x]),_=0;t:for(var w=0;w&lt;g;++w)if(y[w]=0,p!==w){for(var T=(q=d[w]).length,k=0;k&lt;T;++k){var M=b(e[q[k]]);if(0!==M){M&lt;0&amp;&amp;(y[w]=1,_+=1);continue t}}y[w]=1,_+=1}v[p]=[_,p,y]}v.sort((function(t,e){return e[0]-t[0]}));for(p=0;p&lt;g;++p){var A=(y=v[p])[1],S=y[2];for(w=0;w&lt;g;++w)S[w]&amp;&amp;(m[w]=A)}var E=function(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=[];return e}(g);for(p=0;p&lt;g;++p)E[p].push(m[p]),E[m[p]].push(p);var C={},L=u(f,!1);for(p=0;p&lt;g;++p)for(T=(q=d[p]).length,w=0;w&lt;T;++w){var I=q[w],P=q[(w+1)%T],z=Math.min(I,P)+&quot;:&quot;+Math.max(I,P);if(z in C){var O=C[z];E[O].push(p),E[p].push(O),L[I]=L[P]=!0}else C[z]=p}function D(t){for(var e=t.length,r=0;r&lt;e;++r)if(!L[t[r]])return!1;return!0}var R=[],F=u(g,-1);for(p=0;p&lt;g;++p)m[p]!==p||D(d[p])?F[p]=-1:(R.push(p),F[p]=0);r=[];for(;R.length&gt;0;){var B=R.pop(),N=E[B];l(N,(function(t,e){return t-e}));var j,U=N.length,V=F[B];if(0===V){var q=d[B];j=[q]}for(p=0;p&lt;U;++p){var H=N[p];if(!(F[H]&gt;=0))if(F[H]=1^V,R.push(H),0===V)D(q=d[H])||(q.reverse(),j.push(q))}0===V&amp;&amp;r.push(j)}return r};var n=t(&quot;edges-to-adjacency-list&quot;),i=t(&quot;planar-dual&quot;),a=t(&quot;point-in-big-polygon&quot;),o=t(&quot;two-product&quot;),s=t(&quot;robust-sum&quot;),l=t(&quot;uniq&quot;),c=t(&quot;./lib/trim-leaves&quot;);function u(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}},{&quot;./lib/trim-leaves&quot;:513,&quot;edges-to-adjacency-list&quot;:178,&quot;planar-dual&quot;:512,&quot;point-in-big-polygon&quot;:516,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582,uniq:597}],515:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],516:[function(t,e,r){e.exports=function(t){for(var e=t.length,r=[],a=[],s=0;s&lt;e;++s)for(var u=t[s],f=u.length,h=f-1,p=0;p&lt;f;h=p++){var d=u[h],g=u[p];d[0]===g[0]?a.push([d,g]):r.push([d,g])}if(0===r.length)return 0===a.length?c:(m=l(a),function(t){return m(t[0],t[1])?0:1});var m;var v=i(r),y=function(t,e){return function(r){var i=o.le(e,r[0]);if(i&lt;0)return 1;var a=t[i];if(!a){if(!(i&gt;0&amp;&amp;e[i]===r[0]))return 1;a=t[i-1]}for(var s=1;a;){var l=a.key,c=n(r,l[0],l[1]);if(l[0][0]&lt;l[1][0])if(c&lt;0)a=a.left;else{if(!(c&gt;0))return 0;s=-1,a=a.right}else if(c&gt;0)a=a.left;else{if(!(c&lt;0))return 0;s=1,a=a.right}}return s}}(v.slabs,v.coordinates);return 0===a.length?y:function(t,e){return function(r){return t(r[0],r[1])?0:e(r)}}(l(a),y)};var n=t(&quot;robust-orientation&quot;)[3],i=t(&quot;slab-decomposition&quot;),a=t(&quot;interval-tree-1d&quot;),o=t(&quot;binary-search-bounds&quot;);function s(){return!0}function l(t){for(var e={},r=0;r&lt;t.length;++r){var n=t[r],i=n[0][0],o=n[0][1],l=n[1][1],c=[Math.min(o,l),Math.max(o,l)];i in e?e[i].push(c):e[i]=[c]}var u={},f=Object.keys(e);for(r=0;r&lt;f.length;++r){var h=e[f[r]];u[f[r]]=a(h)}return function(t){return function(e,r){var n=t[e];return!!n&amp;&amp;!!n.queryPoint(r,s)}}(u)}function c(t){return 1}},{&quot;binary-search-bounds&quot;:515,&quot;interval-tree-1d&quot;:460,&quot;robust-orientation&quot;:548,&quot;slab-decomposition&quot;:565}],517:[function(t,e,r){
/*
 * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
 * @license MIT
 * @preserve Project Home: https://github.com/voidqk/polybooljs
 */
var n,i=t(&quot;./lib/build-log&quot;),a=t(&quot;./lib/epsilon&quot;),o=t(&quot;./lib/intersecter&quot;),s=t(&quot;./lib/segment-chainer&quot;),l=t(&quot;./lib/segment-selector&quot;),c=t(&quot;./lib/geojson&quot;),u=!1,f=a();function h(t,e,r){var i=n.segments(t),a=n.segments(e),o=r(n.combine(i,a));return n.polygon(o)}n={buildLog:function(t){return!0===t?u=i():!1===t&amp;&amp;(u=!1),!1!==u&amp;&amp;u.list},epsilon:function(t){return f.epsilon(t)},segments:function(t){var e=o(!0,f,u);return t.regions.forEach(e.addRegion),{segments:e.calculate(t.inverted),inverted:t.inverted}},combine:function(t,e){return{combined:o(!1,f,u).calculate(t.segments,t.inverted,e.segments,e.inverted),inverted1:t.inverted,inverted2:e.inverted}},selectUnion:function(t){return{segments:l.union(t.combined,u),inverted:t.inverted1||t.inverted2}},selectIntersect:function(t){return{segments:l.intersect(t.combined,u),inverted:t.inverted1&amp;&amp;t.inverted2}},selectDifference:function(t){return{segments:l.difference(t.combined,u),inverted:t.inverted1&amp;&amp;!t.inverted2}},selectDifferenceRev:function(t){return{segments:l.differenceRev(t.combined,u),inverted:!t.inverted1&amp;&amp;t.inverted2}},selectXor:function(t){return{segments:l.xor(t.combined,u),inverted:t.inverted1!==t.inverted2}},polygon:function(t){return{regions:s(t.segments,f,u),inverted:t.inverted}},polygonFromGeoJSON:function(t){return c.toPolygon(n,t)},polygonToGeoJSON:function(t){return c.fromPolygon(n,f,t)},union:function(t,e){return h(t,e,n.selectUnion)},intersect:function(t,e){return h(t,e,n.selectIntersect)},difference:function(t,e){return h(t,e,n.selectDifference)},differenceRev:function(t,e){return h(t,e,n.selectDifferenceRev)},xor:function(t,e){return h(t,e,n.selectXor)}},&quot;object&quot;==typeof window&amp;&amp;(window.PolyBool=n),e.exports=n},{&quot;./lib/build-log&quot;:518,&quot;./lib/epsilon&quot;:519,&quot;./lib/geojson&quot;:520,&quot;./lib/intersecter&quot;:521,&quot;./lib/segment-chainer&quot;:523,&quot;./lib/segment-selector&quot;:524}],518:[function(t,e,r){e.exports=function(){var t,e=0,r=!1;function n(e,r){return t.list.push({type:e,data:r?JSON.parse(JSON.stringify(r)):void 0}),t}return t={list:[],segmentId:function(){return e++},checkIntersection:function(t,e){return n(&quot;check&quot;,{seg1:t,seg2:e})},segmentChop:function(t,e){return n(&quot;div_seg&quot;,{seg:t,pt:e}),n(&quot;chop&quot;,{seg:t,pt:e})},statusRemove:function(t){return n(&quot;pop_seg&quot;,{seg:t})},segmentUpdate:function(t){return n(&quot;seg_update&quot;,{seg:t})},segmentNew:function(t,e){return n(&quot;new_seg&quot;,{seg:t,primary:e})},segmentRemove:function(t){return n(&quot;rem_seg&quot;,{seg:t})},tempStatus:function(t,e,r){return n(&quot;temp_status&quot;,{seg:t,above:e,below:r})},rewind:function(t){return n(&quot;rewind&quot;,{seg:t})},status:function(t,e,r){return n(&quot;status&quot;,{seg:t,above:e,below:r})},vert:function(e){return e===r?t:(r=e,n(&quot;vert&quot;,{x:e}))},log:function(t){return&quot;string&quot;!=typeof t&amp;&amp;(t=JSON.stringify(t,!1,&quot;  &quot;)),n(&quot;log&quot;,{txt:t})},reset:function(){return n(&quot;reset&quot;)},selected:function(t){return n(&quot;selected&quot;,{segs:t})},chainStart:function(t){return n(&quot;chain_start&quot;,{seg:t})},chainRemoveHead:function(t,e){return n(&quot;chain_rem_head&quot;,{index:t,pt:e})},chainRemoveTail:function(t,e){return n(&quot;chain_rem_tail&quot;,{index:t,pt:e})},chainNew:function(t,e){return n(&quot;chain_new&quot;,{pt1:t,pt2:e})},chainMatch:function(t){return n(&quot;chain_match&quot;,{index:t})},chainClose:function(t){return n(&quot;chain_close&quot;,{index:t})},chainAddHead:function(t,e){return n(&quot;chain_add_head&quot;,{index:t,pt:e})},chainAddTail:function(t,e){return n(&quot;chain_add_tail&quot;,{index:t,pt:e})},chainConnect:function(t,e){return n(&quot;chain_con&quot;,{index1:t,index2:e})},chainReverse:function(t){return n(&quot;chain_rev&quot;,{index:t})},chainJoin:function(t,e){return n(&quot;chain_join&quot;,{index1:t,index2:e})},done:function(){return n(&quot;done&quot;)}}}},{}],519:[function(t,e,r){e.exports=function(t){&quot;number&quot;!=typeof t&amp;&amp;(t=1e-10);var e={epsilon:function(e){return&quot;number&quot;==typeof e&amp;&amp;(t=e),t},pointAboveOrOnLine:function(e,r,n){var i=r[0],a=r[1],o=n[0],s=n[1],l=e[0];return(o-i)*(e[1]-a)-(s-a)*(l-i)&gt;=-t},pointBetween:function(e,r,n){var i=e[1]-r[1],a=n[0]-r[0],o=e[0]-r[0],s=n[1]-r[1],l=o*a+i*s;return!(l&lt;t)&amp;&amp;!(l-(a*a+s*s)&gt;-t)},pointsSameX:function(e,r){return Math.abs(e[0]-r[0])&lt;t},pointsSameY:function(e,r){return Math.abs(e[1]-r[1])&lt;t},pointsSame:function(t,r){return e.pointsSameX(t,r)&amp;&amp;e.pointsSameY(t,r)},pointsCompare:function(t,r){return e.pointsSameX(t,r)?e.pointsSameY(t,r)?0:t[1]&lt;r[1]?-1:1:t[0]&lt;r[0]?-1:1},pointsCollinear:function(e,r,n){var i=e[0]-r[0],a=e[1]-r[1],o=r[0]-n[0],s=r[1]-n[1];return Math.abs(i*s-o*a)&lt;t},linesIntersect:function(e,r,n,i){var a=r[0]-e[0],o=r[1]-e[1],s=i[0]-n[0],l=i[1]-n[1],c=a*l-o*s;if(Math.abs(c)&lt;t)return!1;var u=e[0]-n[0],f=e[1]-n[1],h=(s*f-l*u)/c,p=(a*f-o*u)/c,d={alongA:0,alongB:0,pt:[e[0]+h*a,e[1]+h*o]};return d.alongA=h&lt;=-t?-2:h&lt;t?-1:h-1&lt;=-t?0:h-1&lt;t?1:2,d.alongB=p&lt;=-t?-2:p&lt;t?-1:p-1&lt;=-t?0:p-1&lt;t?1:2,d},pointInsideRegion:function(e,r){for(var n=e[0],i=e[1],a=r[r.length-1][0],o=r[r.length-1][1],s=!1,l=0;l&lt;r.length;l++){var c=r[l][0],u=r[l][1];u-i&gt;t!=o-i&gt;t&amp;&amp;(a-c)*(i-u)/(o-u)+c-n&gt;t&amp;&amp;(s=!s),a=c,o=u}return s}};return e}},{}],520:[function(t,e,r){var n={toPolygon:function(t,e){function r(e){if(e.length&lt;=0)return t.segments({inverted:!1,regions:[]});function r(e){var r=e.slice(0,e.length-1);return t.segments({inverted:!1,regions:[r]})}for(var n=r(e[0]),i=1;i&lt;e.length;i++)n=t.selectDifference(t.combine(n,r(e[i])));return n}if(&quot;Polygon&quot;===e.type)return t.polygon(r(e.coordinates));if(&quot;MultiPolygon&quot;===e.type){for(var n=t.segments({inverted:!1,regions:[]}),i=0;i&lt;e.coordinates.length;i++)n=t.selectUnion(t.combine(n,r(e.coordinates[i])));return t.polygon(n)}throw new Error(&quot;PolyBool: Cannot convert GeoJSON object to PolyBool polygon&quot;)},fromPolygon:function(t,e,r){function n(t,r){return e.pointInsideRegion([.5*(t[0][0]+t[1][0]),.5*(t[0][1]+t[1][1])],r)}function i(t){return{region:t,children:[]}}r=t.polygon(t.segments(r));var a=i(null);function o(t,e){for(var r=0;r&lt;t.children.length;r++){if(n(e,(s=t.children[r]).region))return void o(s,e)}var a=i(e);for(r=0;r&lt;t.children.length;r++){var s;n((s=t.children[r]).region,e)&amp;&amp;(a.children.push(s),t.children.splice(r,1),r--)}t.children.push(a)}for(var s=0;s&lt;r.regions.length;s++){var l=r.regions[s];l.length&lt;3||o(a,l)}function c(t,e){for(var r=0,n=t[t.length-1][0],i=t[t.length-1][1],a=[],o=0;o&lt;t.length;o++){var s=t[o][0],l=t[o][1];a.push([s,l]),r+=l*n-s*i,n=s,i=l}return r&lt;0!==e&amp;&amp;a.reverse(),a.push([a[0][0],a[0][1]]),a}var u=[];function f(t){var e=[c(t.region,!1)];u.push(e);for(var r=0;r&lt;t.children.length;r++)e.push(h(t.children[r]))}function h(t){for(var e=0;e&lt;t.children.length;e++)f(t.children[e]);return c(t.region,!0)}for(s=0;s&lt;a.children.length;s++)f(a.children[s]);return u.length&lt;=0?{type:&quot;Polygon&quot;,coordinates:[]}:1==u.length?{type:&quot;Polygon&quot;,coordinates:u[0]}:{type:&quot;MultiPolygon&quot;,coordinates:u}}};e.exports=n},{}],521:[function(t,e,r){var n=t(&quot;./linked-list&quot;);e.exports=function(t,e,r){function i(t,e,n){return{id:r?r.segmentId():-1,start:t,end:e,myFill:{above:n.myFill.above,below:n.myFill.below},otherFill:null}}var a=n.create();function o(t,r){a.insertBefore(t,(function(n){return function(t,r,n,i,a,o){var s=e.pointsCompare(r,a);return 0!==s?s:e.pointsSame(n,o)?0:t!==i?t?1:-1:e.pointAboveOrOnLine(n,i?a:o,i?o:a)?1:-1}(t.isStart,t.pt,r,n.isStart,n.pt,n.other.pt)&lt;0}))}function s(t,e){var r=function(t,e){var r=n.node({isStart:!0,pt:t.start,seg:t,primary:e,other:null,status:null});return o(r,t.end),r}(t,e);return function(t,e,r){var i=n.node({isStart:!1,pt:e.end,seg:e,primary:r,other:t,status:null});t.other=i,o(i,t.pt)}(r,t,e),r}function l(t,e){var n=i(e,t.seg.end,t.seg);return function(t,e){r&amp;&amp;r.segmentChop(t.seg,e),t.other.remove(),t.seg.end=e,t.other.pt=e,o(t.other,t.pt)}(t,e),s(n,t.primary)}function c(i,o){var s=n.create();function c(t){return s.findTransition((function(r){var n,i,a,o,s,l;return(n=t,i=r.ev,a=n.seg.start,o=n.seg.end,s=i.seg.start,l=i.seg.end,e.pointsCollinear(a,s,l)?e.pointsCollinear(o,s,l)||e.pointAboveOrOnLine(o,s,l)?1:-1:e.pointAboveOrOnLine(a,s,l)?1:-1)&gt;0}))}function u(t,n){var i=t.seg,a=n.seg,o=i.start,s=i.end,c=a.start,u=a.end;r&amp;&amp;r.checkIntersection(i,a);var f=e.linesIntersect(o,s,c,u);if(!1===f){if(!e.pointsCollinear(o,s,c))return!1;if(e.pointsSame(o,u)||e.pointsSame(s,c))return!1;var h=e.pointsSame(o,c),p=e.pointsSame(s,u);if(h&amp;&amp;p)return n;var d=!h&amp;&amp;e.pointBetween(o,c,u),g=!p&amp;&amp;e.pointBetween(s,c,u);if(h)return g?l(n,s):l(t,u),n;d&amp;&amp;(p||(g?l(n,s):l(t,u)),l(n,o))}else 0===f.alongA&amp;&amp;(-1===f.alongB?l(t,c):0===f.alongB?l(t,f.pt):1===f.alongB&amp;&amp;l(t,u)),0===f.alongB&amp;&amp;(-1===f.alongA?l(n,o):0===f.alongA?l(n,f.pt):1===f.alongA&amp;&amp;l(n,s));return!1}for(var f=[];!a.isEmpty();){var h=a.getHead();if(r&amp;&amp;r.vert(h.pt[0]),h.isStart){r&amp;&amp;r.segmentNew(h.seg,h.primary);var p=c(h),d=p.before?p.before.ev:null,g=p.after?p.after.ev:null;function m(){if(d){var t=u(h,d);if(t)return t}return!!g&amp;&amp;u(h,g)}r&amp;&amp;r.tempStatus(h.seg,!!d&amp;&amp;d.seg,!!g&amp;&amp;g.seg);var v,y=m();if(y){var x;if(t)(x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below)&amp;&amp;(y.seg.myFill.above=!y.seg.myFill.above);else y.seg.otherFill=h.seg.myFill;r&amp;&amp;r.segmentUpdate(y.seg),h.other.remove(),h.remove()}if(a.getHead()!==h){r&amp;&amp;r.rewind(h.seg);continue}if(t)x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below,h.seg.myFill.below=g?g.seg.myFill.above:i,h.seg.myFill.above=x?!h.seg.myFill.below:h.seg.myFill.below;else if(null===h.seg.otherFill)v=g?h.primary===g.primary?g.seg.otherFill.above:g.seg.myFill.above:h.primary?o:i,h.seg.otherFill={above:v,below:v};r&amp;&amp;r.status(h.seg,!!d&amp;&amp;d.seg,!!g&amp;&amp;g.seg),h.other.status=p.insert(n.node({ev:h}))}else{var b=h.status;if(null===b)throw new Error(&quot;PolyBool: Zero-length segment detected; your epsilon is probably too small or too large&quot;);if(s.exists(b.prev)&amp;&amp;s.exists(b.next)&amp;&amp;u(b.prev.ev,b.next.ev),r&amp;&amp;r.statusRemove(b.ev.seg),b.remove(),!h.primary){var _=h.seg.myFill;h.seg.myFill=h.seg.otherFill,h.seg.otherFill=_}f.push(h.seg)}a.getHead().remove()}return r&amp;&amp;r.done(),f}return t?{addRegion:function(t){for(var n,i,a,o=t[t.length-1],l=0;l&lt;t.length;l++){n=o,o=t[l];var c=e.pointsCompare(n,o);0!==c&amp;&amp;s((i=c&lt;0?n:o,a=c&lt;0?o:n,{id:r?r.segmentId():-1,start:i,end:a,myFill:{above:null,below:null},otherFill:null}),!0)}},calculate:function(t){return c(t,!1)}}:{calculate:function(t,e,r,n){return t.forEach((function(t){s(i(t.start,t.end,t),!0)})),r.forEach((function(t){s(i(t.start,t.end,t),!1)})),c(e,n)}}}},{&quot;./linked-list&quot;:522}],522:[function(t,e,r){e.exports={create:function(){var t={root:{root:!0,next:null},exists:function(e){return null!==e&amp;&amp;e!==t.root},isEmpty:function(){return null===t.root.next},getHead:function(){return t.root.next},insertBefore:function(e,r){for(var n=t.root,i=t.root.next;null!==i;){if(r(i))return e.prev=i.prev,e.next=i,i.prev.next=e,void(i.prev=e);n=i,i=i.next}n.next=e,e.prev=n,e.next=null},findTransition:function(e){for(var r=t.root,n=t.root.next;null!==n&amp;&amp;!e(n);)r=n,n=n.next;return{before:r===t.root?null:r,after:n,insert:function(t){return t.prev=r,t.next=n,r.next=t,null!==n&amp;&amp;(n.prev=t),t}}}};return t},node:function(t){return t.prev=null,t.next=null,t.remove=function(){t.prev.next=t.next,t.next&amp;&amp;(t.next.prev=t.prev),t.prev=null,t.next=null},t}}},{}],523:[function(t,e,r){e.exports=function(t,e,r){var n=[],i=[];return t.forEach((function(t){var a=t.start,o=t.end;if(e.pointsSame(a,o))console.warn(&quot;PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large&quot;);else{r&amp;&amp;r.chainStart(t);for(var s={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},c=s,u=0;u&lt;n.length;u++){var f=(m=n[u])[0],h=(m[1],m[m.length-1]);m[m.length-2];if(e.pointsSame(f,a)){if(k(u,!0,!0))break}else if(e.pointsSame(f,o)){if(k(u,!0,!1))break}else if(e.pointsSame(h,a)){if(k(u,!1,!0))break}else if(e.pointsSame(h,o)&amp;&amp;k(u,!1,!1))break}if(c===s)return n.push([a,o]),void(r&amp;&amp;r.chainNew(a,o));if(c===l){r&amp;&amp;r.chainMatch(s.index);var p=s.index,d=s.matches_pt1?o:a,g=s.matches_head,m=n[p],v=g?m[0]:m[m.length-1],y=g?m[1]:m[m.length-2],x=g?m[m.length-1]:m[0],b=g?m[m.length-2]:m[1];return e.pointsCollinear(y,v,d)&amp;&amp;(g?(r&amp;&amp;r.chainRemoveHead(s.index,d),m.shift()):(r&amp;&amp;r.chainRemoveTail(s.index,d),m.pop()),v=y),e.pointsSame(x,d)?(n.splice(p,1),e.pointsCollinear(b,x,v)&amp;&amp;(g?(r&amp;&amp;r.chainRemoveTail(s.index,v),m.pop()):(r&amp;&amp;r.chainRemoveHead(s.index,v),m.shift())),r&amp;&amp;r.chainClose(s.index),void i.push(m)):void(g?(r&amp;&amp;r.chainAddHead(s.index,d),m.unshift(d)):(r&amp;&amp;r.chainAddTail(s.index,d),m.push(d)))}var _=s.index,w=l.index;r&amp;&amp;r.chainConnect(_,w);var T=n[_].length&lt;n[w].length;s.matches_head?l.matches_head?T?(M(_),A(_,w)):(M(w),A(w,_)):A(w,_):l.matches_head?A(_,w):T?(M(_),A(w,_)):(M(w),A(_,w))}function k(t,e,r){return c.index=t,c.matches_head=e,c.matches_pt1=r,c===s?(c=l,!1):(c=null,!0)}function M(t){r&amp;&amp;r.chainReverse(t),n[t].reverse()}function A(t,i){var a=n[t],o=n[i],s=a[a.length-1],l=a[a.length-2],c=o[0],u=o[1];e.pointsCollinear(l,s,c)&amp;&amp;(r&amp;&amp;r.chainRemoveTail(t,s),a.pop(),s=l),e.pointsCollinear(s,c,u)&amp;&amp;(r&amp;&amp;r.chainRemoveHead(i,c),o.shift()),r&amp;&amp;r.chainJoin(t,i),n[t]=a.concat(o),n.splice(i,1)}})),i}},{}],524:[function(t,e,r){function n(t,e,r){var n=[];return t.forEach((function(t){var i=(t.myFill.above?8:0)+(t.myFill.below?4:0)+(t.otherFill&amp;&amp;t.otherFill.above?2:0)+(t.otherFill&amp;&amp;t.otherFill.below?1:0);0!==e[i]&amp;&amp;n.push({id:r?r.segmentId():-1,start:t.start,end:t.end,myFill:{above:1===e[i],below:2===e[i]},otherFill:null})})),r&amp;&amp;r.selected(n),n}var i={union:function(t,e){return n(t,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],e)},intersect:function(t,e){return n(t,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],e)},difference:function(t,e){return n(t,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],e)},differenceRev:function(t,e){return n(t,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],e)},xor:function(t,e){return n(t,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],e)}};e.exports=i},{}],525:[function(t,e,r){&quot;use strict&quot;;var n=new Float64Array(4),i=new Float64Array(4),a=new Float64Array(4);e.exports=function(t,e,r,o,s){n.length&lt;o.length&amp;&amp;(n=new Float64Array(o.length),i=new Float64Array(o.length),a=new Float64Array(o.length));for(var l=0;l&lt;o.length;++l)n[l]=t[l]-o[l],i[l]=e[l]-t[l],a[l]=r[l]-t[l];var c=0,u=0,f=0,h=0,p=0,d=0;for(l=0;l&lt;o.length;++l){var g=i[l],m=a[l],v=n[l];c+=g*g,u+=g*m,f+=m*m,h+=v*g,p+=v*m,d+=v*v}var y,x,b,_,w,T=Math.abs(c*f-u*u),k=u*p-f*h,M=u*h-c*p;if(k+M&lt;=T)if(k&lt;0)M&lt;0&amp;&amp;h&lt;0?(M=0,-h&gt;=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d):(k=0,p&gt;=0?(M=0,y=d):-p&gt;=f?(M=1,y=f+2*p+d):y=p*(M=-p/f)+d);else if(M&lt;0)M=0,h&gt;=0?(k=0,y=d):-h&gt;=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d;else{var A=1/T;y=(k*=A)*(c*k+u*(M*=A)+2*h)+M*(u*k+f*M+2*p)+d}else k&lt;0?(b=f+p)&gt;(x=u+h)?(_=b-x)&gt;=(w=c-2*u+f)?(k=1,M=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(M=1-k)+2*h)+M*(u*k+f*M+2*p)+d:(k=0,b&lt;=0?(M=1,y=f+2*p+d):p&gt;=0?(M=0,y=d):y=p*(M=-p/f)+d):M&lt;0?(b=c+h)&gt;(x=u+p)?(_=b-x)&gt;=(w=c-2*u+f)?(M=1,k=0,y=f+2*p+d):y=(k=1-(M=_/w))*(c*k+u*M+2*h)+M*(u*k+f*M+2*p)+d:(M=0,b&lt;=0?(k=1,y=c+2*h+d):h&gt;=0?(k=0,y=d):y=h*(k=-h/c)+d):(_=f+p-u-h)&lt;=0?(k=0,M=1,y=f+2*p+d):_&gt;=(w=c-2*u+f)?(k=1,M=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(M=1-k)+2*h)+M*(u*k+f*M+2*p)+d;var S=1-k-M;for(l=0;l&lt;o.length;++l)s[l]=S*t[l]+k*e[l]+M*r[l];return y&lt;0?0:y}},{}],526:[function(t,e,r){var n,i,a=e.exports={};function o(){throw new Error(&quot;setTimeout has not been defined&quot;)}function s(){throw new Error(&quot;clearTimeout has not been defined&quot;)}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&amp;&amp;setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n=&quot;function&quot;==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i=&quot;function&quot;==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,u=[],f=!1,h=-1;function p(){f&amp;&amp;c&amp;&amp;(f=!1,c.length?u=c.concat(u):h=-1,u.length&amp;&amp;d())}function d(){if(!f){var t=l(p);f=!0;for(var e=u.length;e;){for(c=u,u=[];++h&lt;e;)c&amp;&amp;c[h].run();h=-1,e=u.length}c=null,f=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&amp;&amp;clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function m(){}a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length&gt;1)for(var r=1;r&lt;arguments.length;r++)e[r-1]=arguments[r];u.push(new g(t,e)),1!==u.length||f||l(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},a.title=&quot;browser&quot;,a.browser=!0,a.env={},a.argv=[],a.version=&quot;&quot;,a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(t){return[]},a.binding=function(t){throw new Error(&quot;process.binding is not supported&quot;)},a.cwd=function(){return&quot;/&quot;},a.chdir=function(t){throw new Error(&quot;process.chdir is not supported&quot;)},a.umask=function(){return 0}},{}],527:[function(t,e,r){e.exports=t(&quot;gl-quat/slerp&quot;)},{&quot;gl-quat/slerp&quot;:325}],528:[function(t,e,r){(function(r){(function(){for(var n=t(&quot;performance-now&quot;),i=&quot;undefined&quot;==typeof window?r:window,a=[&quot;moz&quot;,&quot;webkit&quot;],o=&quot;AnimationFrame&quot;,s=i[&quot;request&quot;+o],l=i[&quot;cancel&quot;+o]||i[&quot;cancelRequest&quot;+o],c=0;!s&amp;&amp;c&lt;a.length;c++)s=i[a[c]+&quot;Request&quot;+o],l=i[a[c]+&quot;Cancel&quot;+o]||i[a[c]+&quot;CancelRequest&quot;+o];if(!s||!l){var u=0,f=0,h=[];s=function(t){if(0===h.length){var e=n(),r=Math.max(0,1e3/60-(e-u));u=r+e,setTimeout((function(){var t=h.slice(0);h.length=0;for(var e=0;e&lt;t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(r))}return h.push({handle:++f,callback:t,cancelled:!1}),f},l=function(t){for(var e=0;e&lt;h.length;e++)h[e].handle===t&amp;&amp;(h[e].cancelled=!0)}}e.exports=function(t){return s.call(i,t)},e.exports.cancel=function(){l.apply(i,arguments)},e.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=s,t.cancelAnimationFrame=l}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;performance-now&quot;:508}],529:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat/add&quot;);e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a&lt;r;++a)i[a]=n(t[a],e[a]);return i}},{&quot;big-rat/add&quot;:80}],530:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=new Array(t.length),r=0;r&lt;t.length;++r)e[r]=n(t[r]);return e};var n=t(&quot;big-rat&quot;)},{&quot;big-rat&quot;:83}],531:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat&quot;),i=t(&quot;big-rat/mul&quot;);e.exports=function(t,e){for(var r=n(e),a=t.length,o=new Array(a),s=0;s&lt;a;++s)o[s]=i(t[s],r);return o}},{&quot;big-rat&quot;:83,&quot;big-rat/mul&quot;:92}],532:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat/sub&quot;);e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a&lt;r;++a)i[a]=n(t[a],e[a]);return i}},{&quot;big-rat/sub&quot;:94}],533:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;compare-cell&quot;),i=t(&quot;compare-oriented-cell&quot;),a=t(&quot;cell-orientation&quot;);e.exports=function(t){t.sort(i);for(var e=t.length,r=0,o=0;o&lt;e;++o){var s=t[o],l=a(s);if(0!==l){if(r&gt;0){var c=t[r-1];if(0===n(s,c)&amp;&amp;a(c)!==l){r-=1;continue}}t[r++]=s}}return t.length=r,t}},{&quot;cell-orientation&quot;:117,&quot;compare-cell&quot;:133,&quot;compare-oriented-cell&quot;:134}],534:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;array-bounds&quot;),i=t(&quot;color-normalize&quot;),a=t(&quot;update-diff&quot;),o=t(&quot;pick-by-alias&quot;),s=t(&quot;object-assign&quot;),l=t(&quot;flatten-vertex-data&quot;),c=t(&quot;to-float32&quot;),u=c.float32,f=c.fract32;e.exports=function(t,e){&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):e=t;e.length&amp;&amp;(e.positions=e);if(!(t=e.regl).hasExtension(&quot;ANGLE_instanced_arrays&quot;))throw Error(&quot;regl-error2d: `ANGLE_instanced_arrays` extension should be enabled&quot;);var r,c,p,d,g,m,v=t._gl,y={color:&quot;black&quot;,capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},x=[];return d=t.buffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:new Uint8Array(0)}),c=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),p=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),g=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),m=t.buffer({usage:&quot;static&quot;,type:&quot;float&quot;,data:h}),T(e),r=t({vert:&quot;\n\t\tprecision highp float;\n\n\t\tattribute vec2 position, positionFract;\n\t\tattribute vec4 error;\n\t\tattribute vec4 color;\n\n\t\tattribute vec2 direction, lineOffset, capOffset;\n\n\t\tuniform vec4 viewport;\n\t\tuniform float lineWidth, capSize;\n\t\tuniform vec2 scale, scaleFract, translate, translateFract;\n\n\t\tvarying vec4 fragColor;\n\n\t\tvoid main() {\n\t\t\tfragColor = color / 255.;\n\n\t\t\tvec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;\n\n\t\t\tvec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;\n\n\t\t\tvec2 position = position + dxy;\n\n\t\t\tvec2 pos = (position + translate) * scale\n\t\t\t\t+ (positionFract + translateFract) * scale\n\t\t\t\t+ (position + translate) * scaleFract\n\t\t\t\t+ (positionFract + translateFract) * scaleFract;\n\n\t\t\tpos += pixelOffset / viewport.zw;\n\n\t\t\tgl_Position = vec4(pos * 2. - 1., 0, 1);\n\t\t}\n\t\t&quot;,frag:&quot;\n\t\tprecision highp float;\n\n\t\tvarying vec4 fragColor;\n\n\t\tuniform float opacity;\n\n\t\tvoid main() {\n\t\t\tgl_FragColor = fragColor;\n\t\t\tgl_FragColor.a *= opacity;\n\t\t}\n\t\t&quot;,uniforms:{range:t.prop(&quot;range&quot;),lineWidth:t.prop(&quot;lineWidth&quot;),capSize:t.prop(&quot;capSize&quot;),opacity:t.prop(&quot;opacity&quot;),scale:t.prop(&quot;scale&quot;),translate:t.prop(&quot;translate&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{color:{buffer:d,offset:function(t,e){return 4*e.offset},divisor:1},position:{buffer:c,offset:function(t,e){return 8*e.offset},divisor:1},positionFract:{buffer:p,offset:function(t,e){return 8*e.offset},divisor:1},error:{buffer:g,offset:function(t,e){return 16*e.offset},divisor:1},direction:{buffer:m,stride:24,offset:0},lineOffset:{buffer:m,stride:24,offset:8},capOffset:{buffer:m,stride:24,offset:16}},primitive:&quot;triangles&quot;,blend:{enable:!0,color:[0,0,0,0],equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},depth:{enable:!1},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;),stencil:!1,instances:t.prop(&quot;count&quot;),count:h.length}),s(b,{update:T,draw:_,destroy:k,regl:t,gl:v,canvas:v.canvas,groups:x}),b;function b(t){t?T(t):null===t&amp;&amp;k(),_()}function _(e){if(&quot;number&quot;==typeof e)return w(e);e&amp;&amp;!Array.isArray(e)&amp;&amp;(e=[e]),t._refresh(),x.forEach((function(t,r){t&amp;&amp;(e&amp;&amp;(e[r]?t.draw=!0:t.draw=!1),t.draw?w(r):t.draw=!0)}))}function w(t){&quot;number&quot;==typeof t&amp;&amp;(t=x[t]),null!=t&amp;&amp;t&amp;&amp;t.count&amp;&amp;t.color&amp;&amp;t.opacity&amp;&amp;t.positions&amp;&amp;t.positions.length&gt;1&amp;&amp;(t.scaleRatio=[t.scale[0]*t.viewport.width,t.scale[1]*t.viewport.height],r(t),t.after&amp;&amp;t.after(t))}function T(t){if(t){null!=t.length?&quot;number&quot;==typeof t[0]&amp;&amp;(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var e=0,r=0;if(b.groups=x=t.map((function(t,c){var u=x[c];return t?(&quot;function&quot;==typeof t?t={after:t}:&quot;number&quot;==typeof t[0]&amp;&amp;(t={positions:t}),t=o(t,{color:&quot;color colors fill&quot;,capSize:&quot;capSize cap capsize cap-size&quot;,lineWidth:&quot;lineWidth line-width width line thickness&quot;,opacity:&quot;opacity alpha&quot;,range:&quot;range dataBox&quot;,viewport:&quot;viewport viewBox&quot;,errors:&quot;errors error&quot;,positions:&quot;positions position data points&quot;}),u||(x[c]=u={id:c,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},t=s({},y,t)),a(u,t,[{lineWidth:function(t){return.5*+t},capSize:function(t){return.5*+t},opacity:parseFloat,errors:function(t){return t=l(t),r+=t.length,t},positions:function(t,r){return t=l(t,&quot;float64&quot;),r.count=Math.floor(t.length/2),r.bounds=n(t,2),r.offset=e,e+=r.count,t}},{color:function(t,e){var r=e.count;if(t||(t=&quot;transparent&quot;),!Array.isArray(t)||&quot;number&quot;==typeof t[0]){var n=t;t=Array(r);for(var a=0;a&lt;r;a++)t[a]=n}if(t.length&lt;r)throw Error(&quot;Not enough colors&quot;);for(var o=new Uint8Array(4*r),s=0;s&lt;r;s++){var l=i(t[s],&quot;uint8&quot;);o.set(l,4*s)}return o},range:function(t,e,r){var n=e.bounds;return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=f(e.scale),e.translateFract=f(e.translate),t},viewport:function(t){var e;return Array.isArray(t)?e={x:t[0],y:t[1],width:t[2]-t[0],height:t[3]-t[1]}:t?(e={x:t.x||t.left||0,y:t.y||t.top||0},t.right?e.width=t.right-e.x:e.width=t.w||t.width||0,t.bottom?e.height=t.bottom-e.y:e.height=t.h||t.height||0):e={x:0,y:0,width:v.drawingBufferWidth,height:v.drawingBufferHeight},e}}]),u):u})),e||r){var h=x.reduce((function(t,e,r){return t+(e?e.count:0)}),0),m=new Float64Array(2*h),_=new Uint8Array(4*h),w=new Float32Array(4*h);x.forEach((function(t,e){if(t){var r=t.positions,n=t.count,i=t.offset,a=t.color,o=t.errors;n&amp;&amp;(_.set(a,4*i),w.set(o,4*i),m.set(r,2*i))}})),c(u(m)),p(f(m)),d(_),g(w)}}}function k(){c.destroy(),p.destroy(),d.destroy(),g.destroy(),m.destroy()}};var h=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]]},{&quot;array-bounds&quot;:70,&quot;color-normalize&quot;:125,&quot;flatten-vertex-data&quot;:244,&quot;object-assign&quot;:499,&quot;pick-by-alias&quot;:511,&quot;to-float32&quot;:577,&quot;update-diff&quot;:599}],535:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-normalize&quot;),i=t(&quot;array-bounds&quot;),a=t(&quot;object-assign&quot;),o=t(&quot;glslify&quot;),s=t(&quot;pick-by-alias&quot;),l=t(&quot;flatten-vertex-data&quot;),c=t(&quot;earcut&quot;),u=t(&quot;array-normalize&quot;),f=t(&quot;to-float32&quot;),h=f.float32,p=f.fract32,d=t(&quot;es6-weak-map&quot;),g=t(&quot;parse-rect&quot;);function m(t,e){if(!(this instanceof m))return new m(t,e);if(&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):e=t,e.length&amp;&amp;(e.positions=e),!(t=e.regl).hasExtension(&quot;ANGLE_instanced_arrays&quot;))throw Error(&quot;regl-error2d: `ANGLE_instanced_arrays` extension should be enabled&quot;);this.gl=t._gl,this.regl=t,this.passes=[],this.shaders=m.shaders.has(t)?m.shaders.get(t):m.shaders.set(t,m.createShaders(t)).get(t),this.update(e)}e.exports=m,m.dashMult=2,m.maxPatternLength=256,m.precisionThreshold=3e6,m.maxPoints=1e4,m.maxLines=2048,m.shaders=new d,m.createShaders=function(t){var e,r=t.buffer({usage:&quot;static&quot;,type:&quot;float&quot;,data:[0,1,0,0,1,1,1,0]}),n={primitive:&quot;triangle strip&quot;,instances:t.prop(&quot;count&quot;),count:4,offset:0,uniforms:{miterMode:function(t,e){return&quot;round&quot;===e.join?2:1},miterLimit:t.prop(&quot;miterLimit&quot;),scale:t.prop(&quot;scale&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),translate:t.prop(&quot;translate&quot;),thickness:t.prop(&quot;thickness&quot;),dashPattern:t.prop(&quot;dashTexture&quot;),opacity:t.prop(&quot;opacity&quot;),pixelRatio:t.context(&quot;pixelRatio&quot;),id:t.prop(&quot;id&quot;),dashSize:t.prop(&quot;dashLength&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]},depth:t.prop(&quot;depth&quot;)},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},depth:{enable:function(t,e){return!e.overlay}},stencil:{enable:!1},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;)},i=t(a({vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;\nattribute vec4 color;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvec2 project(vec2 position, vec2 positionFract, vec2 scale, vec2 scaleFract, vec2 translate, vec2 translateFract) {\n\t// the order is important\n\treturn position * scale + translate\n       + positionFract * scale + translateFract\n       + position * scaleFract\n       + positionFract * scaleFract;\n}\n\nvoid main() {\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineOffset = lineTop * 2. - 1.;\n\n\tvec2 diff = (bCoord + bCoordFract - aCoord - aCoordFract);\n\ttangent = normalize(diff * scale * viewport.zw);\n\tvec2 normal = vec2(-tangent.y, tangent.x);\n\n\tvec2 position = project(aCoord, aCoordFract, scale, scaleFract, translate, translateFract) * lineStart\n\t\t+ project(bCoord, bCoordFract, scale, scaleFract, translate, translateFract) * lineEnd\n\n\t\t+ thickness * normal * .5 * lineOffset / viewport.zw;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\n\nuniform float dashSize, pixelRatio, thickness, opacity, id;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvoid main() {\n\tfloat alpha = 1.;\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n&quot;]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:16,divisor:1},aCoordFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:8,divisor:1},bCoordFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:16,divisor:1},color:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:0,divisor:1}}},n));try{e=t(a({cull:{enable:!0,face:&quot;back&quot;},vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, nextCoord, prevCoord;\nattribute vec4 aColor, bColor;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, translate;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\nuniform float miterLimit, miterMode;\n\nvarying vec4 fragColor;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 tangent;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nconst float REVERSE_THRESHOLD = -.875;\nconst float MIN_DIFF = 1e-6;\n\n// TODO: possible optimizations: avoid overcalculating all for vertices and calc just one instead\n// TODO: precalculate dot products, normalize things beforehead etc.\n// TODO: refactor to rectangular algorithm\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nbool isNaN( float val ){\n  return ( val &lt; 0.0 || 0.0 &lt; val || val == 0.0 ) ? false : true;\n}\n\nvoid main() {\n\tvec2 aCoord = aCoord, bCoord = bCoord, prevCoord = prevCoord, nextCoord = nextCoord;\n\n  vec2 adjustedScale;\n  adjustedScale.x = (abs(scale.x) &lt; MIN_DIFF) ? MIN_DIFF : scale.x;\n  adjustedScale.y = (abs(scale.y) &lt; MIN_DIFF) ? MIN_DIFF : scale.y;\n\n  vec2 scaleRatio = adjustedScale * viewport.zw;\n\tvec2 normalWidth = thickness / scaleRatio;\n\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineBot = 1. - lineTop;\n\n\tfragColor = (lineStart * aColor + lineEnd * bColor) / 255.;\n\n\tif (isNaN(aCoord.x) || isNaN(aCoord.y) || isNaN(bCoord.x) || isNaN(bCoord.y)) return;\n\n\tif (aCoord == prevCoord) prevCoord = aCoord + normalize(bCoord - aCoord);\n\tif (bCoord == nextCoord) nextCoord = bCoord - normalize(bCoord - aCoord);\n\n\tvec2 prevDiff = aCoord - prevCoord;\n\tvec2 currDiff = bCoord - aCoord;\n\tvec2 nextDiff = nextCoord - bCoord;\n\n\tvec2 prevTangent = normalize(prevDiff * scaleRatio);\n\tvec2 currTangent = normalize(currDiff * scaleRatio);\n\tvec2 nextTangent = normalize(nextDiff * scaleRatio);\n\n\tvec2 prevNormal = vec2(-prevTangent.y, prevTangent.x);\n\tvec2 currNormal = vec2(-currTangent.y, currTangent.x);\n\tvec2 nextNormal = vec2(-nextTangent.y, nextTangent.x);\n\n\tvec2 startJoinDirection = normalize(prevTangent - currTangent);\n\tvec2 endJoinDirection = normalize(currTangent - nextTangent);\n\n\t// collapsed/unidirectional segment cases\n\t// FIXME: there should be more elegant solution\n\tvec2 prevTanDiff = abs(prevTangent - currTangent);\n\tvec2 nextTanDiff = abs(nextTangent - currTangent);\n\tif (max(prevTanDiff.x, prevTanDiff.y) &lt; MIN_DIFF) {\n\t\tstartJoinDirection = currNormal;\n\t}\n\tif (max(nextTanDiff.x, nextTanDiff.y) &lt; MIN_DIFF) {\n\t\tendJoinDirection = currNormal;\n\t}\n\tif (aCoord == bCoord) {\n\t\tendJoinDirection = startJoinDirection;\n\t\tcurrNormal = prevNormal;\n\t\tcurrTangent = prevTangent;\n\t}\n\n\ttangent = currTangent;\n\n\t//calculate join shifts relative to normals\n\tfloat startJoinShift = dot(currNormal, startJoinDirection);\n\tfloat endJoinShift = dot(currNormal, endJoinDirection);\n\n\tfloat startMiterRatio = abs(1. / startJoinShift);\n\tfloat endMiterRatio = abs(1. / endJoinShift);\n\n\tvec2 startJoin = startJoinDirection * startMiterRatio;\n\tvec2 endJoin = endJoinDirection * endMiterRatio;\n\n\tvec2 startTopJoin, startBotJoin, endTopJoin, endBotJoin;\n\tstartTopJoin = sign(startJoinShift) * startJoin * .5;\n\tstartBotJoin = -startTopJoin;\n\n\tendTopJoin = sign(endJoinShift) * endJoin * .5;\n\tendBotJoin = -endTopJoin;\n\n\tvec2 aTopCoord = aCoord + normalWidth * startTopJoin;\n\tvec2 bTopCoord = bCoord + normalWidth * endTopJoin;\n\tvec2 aBotCoord = aCoord + normalWidth * startBotJoin;\n\tvec2 bBotCoord = bCoord + normalWidth * endBotJoin;\n\n\t//miter anti-clipping\n\tfloat baClipping = distToLine(bCoord, aCoord, aBotCoord) / dot(normalize(normalWidth * endBotJoin), normalize(normalWidth.yx * vec2(-startBotJoin.y, startBotJoin.x)));\n\tfloat abClipping = distToLine(aCoord, bCoord, bTopCoord) / dot(normalize(normalWidth * startBotJoin), normalize(normalWidth.yx * vec2(-endBotJoin.y, endBotJoin.x)));\n\n\t//prevent close to reverse direction switch\n\tbool prevReverse = dot(currTangent, prevTangent) &lt;= REVERSE_THRESHOLD &amp;&amp; abs(dot(currTangent, prevNormal)) * min(length(prevDiff), length(currDiff)) &lt;  length(normalWidth * currNormal);\n\tbool nextReverse = dot(currTangent, nextTangent) &lt;= REVERSE_THRESHOLD &amp;&amp; abs(dot(currTangent, nextNormal)) * min(length(nextDiff), length(currDiff)) &lt;  length(normalWidth * currNormal);\n\n\tif (prevReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * startJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / startMiterRatio, 1.);\n\t\taBotCoord = aCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\taTopCoord = aCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!nextReverse &amp;&amp; baClipping &gt; 0. &amp;&amp; baClipping &lt; length(normalWidth * endBotJoin)) {\n\t\t//handle miter clipping\n\t\tbTopCoord -= normalWidth * endTopJoin;\n\t\tbTopCoord += normalize(endTopJoin * normalWidth) * baClipping;\n\t}\n\n\tif (nextReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);\n\t\tbBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\tbTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!prevReverse &amp;&amp; abClipping &gt; 0. &amp;&amp; abClipping &lt; length(normalWidth * startBotJoin)) {\n\t\t//handle miter clipping\n\t\taBotCoord -= normalWidth * startBotJoin;\n\t\taBotCoord += normalize(startBotJoin * normalWidth) * abClipping;\n\t}\n\n\tvec2 aTopPosition = (aTopCoord) * adjustedScale + translate;\n\tvec2 aBotPosition = (aBotCoord) * adjustedScale + translate;\n\n\tvec2 bTopPosition = (bTopCoord) * adjustedScale + translate;\n\tvec2 bBotPosition = (bBotCoord) * adjustedScale + translate;\n\n\t//position is normalized 0..1 coord on the screen\n\tvec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;\n\n\tstartCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\tendCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\n\tgl_Position = vec4(position  * 2.0 - 1.0, depth, 1);\n\n\tenableStartMiter = step(dot(currTangent, prevTangent), .5);\n\tenableEndMiter = step(dot(currTangent, nextTangent), .5);\n\n\t//bevel miter cutoffs\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n\n\t//round miter cutoffs\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\nuniform float dashSize, pixelRatio, thickness, opacity, id, miterMode;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nvoid main() {\n\tfloat alpha = 1., distToStart, distToEnd;\n\tfloat cutoff = thickness * .5;\n\n\t//bevel miter\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart &lt; -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToStart + 1., 0.), 1.);\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd &lt; -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToEnd + 1., 0.), 1.);\n\t\t}\n\t}\n\n\t// round miter\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart &lt; 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - startCoord);\n\n\t\t\t\tif(radius &gt; cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd &lt; 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - endCoord);\n\n\t\t\t\tif(radius &gt; cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\t}\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n&quot;]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:0,divisor:1},bColor:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:4,divisor:1},prevCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:0,divisor:1},aCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:16,divisor:1},nextCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:24,divisor:1}}},n))}catch(t){e=i}return{fill:t({primitive:&quot;triangle&quot;,elements:function(t,e){return e.triangles},offset:0,vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 position, positionFract;\n\nuniform vec4 color;\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio, id;\nuniform vec4 viewport;\nuniform float opacity;\n\nvarying vec4 fragColor;\n\nconst float MAX_LINES = 256.;\n\nvoid main() {\n\tfloat depth = (MAX_LINES - 4. - id) / (MAX_LINES);\n\n\tvec2 position = position * scale + translate\n       + positionFract * scale + translateFract\n       + position * scaleFract\n       + positionFract * scaleFract;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n\tfragColor.a *= opacity;\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n\tgl_FragColor = fragColor;\n}\n&quot;]),uniforms:{scale:t.prop(&quot;scale&quot;),color:t.prop(&quot;fill&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),translate:t.prop(&quot;translate&quot;),opacity:t.prop(&quot;opacity&quot;),pixelRatio:t.context(&quot;pixelRatio&quot;),id:t.prop(&quot;id&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{position:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8},positionFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:8}},blend:n.blend,depth:{enable:!1},scissor:n.scissor,stencil:n.stencil,viewport:n.viewport}),rect:i,miter:e}},m.defaults={dashes:null,join:&quot;miter&quot;,miterLimit:1,thickness:10,cap:&quot;square&quot;,color:&quot;black&quot;,opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},m.prototype.render=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];e.length&amp;&amp;(t=this).update.apply(t,e),this.draw()},m.prototype.draw=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];return(e.length?e:this.passes).forEach((function(e,r){var n;if(e&amp;&amp;Array.isArray(e))return(n=t).draw.apply(n,e);&quot;number&quot;==typeof e&amp;&amp;(e=t.passes[e]),e&amp;&amp;e.count&gt;1&amp;&amp;e.opacity&amp;&amp;(t.regl._refresh(),e.fill&amp;&amp;e.triangles&amp;&amp;e.triangles.length&gt;2&amp;&amp;t.shaders.fill(e),e.thickness&amp;&amp;(e.scale[0]*e.viewport.width&gt;m.precisionThreshold||e.scale[1]*e.viewport.height&gt;m.precisionThreshold||&quot;rect&quot;===e.join||!e.join&amp;&amp;(e.thickness&lt;=2||e.count&gt;=m.maxPoints)?t.shaders.rect(e):t.shaders.miter(e)))})),this},m.prototype.update=function(t){var e=this;if(t){null!=t.length?&quot;number&quot;==typeof t[0]&amp;&amp;(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var r=this.regl,o=this.gl;if(t.forEach((function(t,f){var d=e.passes[f];if(void 0!==t)if(null!==t){if(&quot;number&quot;==typeof t[0]&amp;&amp;(t={positions:t}),t=s(t,{positions:&quot;positions points data coords&quot;,thickness:&quot;thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth&quot;,join:&quot;lineJoin linejoin join type mode&quot;,miterLimit:&quot;miterlimit miterLimit&quot;,dashes:&quot;dash dashes dasharray dash-array dashArray&quot;,color:&quot;color colour stroke colors colours stroke-color strokeColor&quot;,fill:&quot;fill fill-color fillColor&quot;,opacity:&quot;alpha opacity&quot;,overlay:&quot;overlay crease overlap intersect&quot;,close:&quot;closed close closed-path closePath&quot;,range:&quot;range dataBox&quot;,viewport:&quot;viewport viewBox&quot;,hole:&quot;holes hole hollow&quot;}),d||(e.passes[f]=d={id:f,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:&quot;linear&quot;,min:&quot;linear&quot;}),colorBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:new Uint8Array}),positionBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array}),positionFractBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array})},t=a({},m.defaults,t)),null!=t.thickness&amp;&amp;(d.thickness=parseFloat(t.thickness)),null!=t.opacity&amp;&amp;(d.opacity=parseFloat(t.opacity)),null!=t.miterLimit&amp;&amp;(d.miterLimit=parseFloat(t.miterLimit)),null!=t.overlay&amp;&amp;(d.overlay=!!t.overlay,f&lt;m.maxLines&amp;&amp;(d.depth=2*(m.maxLines-1-f%m.maxLines)/m.maxLines-1)),null!=t.join&amp;&amp;(d.join=t.join),null!=t.hole&amp;&amp;(d.hole=t.hole),null!=t.fill&amp;&amp;(d.fill=t.fill?n(t.fill,&quot;uint8&quot;):null),null!=t.viewport&amp;&amp;(d.viewport=g(t.viewport)),d.viewport||(d.viewport=g([o.drawingBufferWidth,o.drawingBufferHeight])),null!=t.close&amp;&amp;(d.close=t.close),null===t.positions&amp;&amp;(t.positions=[]),t.positions){var v,y;if(t.positions.x&amp;&amp;t.positions.y){var x=t.positions.x,b=t.positions.y;y=d.count=Math.max(x.length,b.length),v=new Float64Array(2*y);for(var _=0;_&lt;y;_++)v[2*_]=x[_],v[2*_+1]=b[_]}else v=l(t.positions,&quot;float64&quot;),y=d.count=Math.floor(v.length/2);var w=d.bounds=i(v,2);if(d.fill){for(var T=[],k={},M=0,A=0,S=0,E=d.count;A&lt;E;A++){var C=v[2*A],L=v[2*A+1];isNaN(C)||isNaN(L)||null==C||null==L?(C=v[2*M],L=v[2*M+1],k[A]=M):M=A,T[S++]=C,T[S++]=L}for(var I=c(T,d.hole||[]),P=0,z=I.length;P&lt;z;P++)null!=k[I[P]]&amp;&amp;(I[P]=k[I[P]]);d.triangles=I}var O=new Float64Array(v);u(O,2,w);var D=new Float64Array(2*y+6);d.close?v[0]===v[2*y-2]&amp;&amp;v[1]===v[2*y-1]?(D[0]=O[2*y-4],D[1]=O[2*y-3]):(D[0]=O[2*y-2],D[1]=O[2*y-1]):(D[0]=O[0],D[1]=O[1]),D.set(O,2),d.close?v[0]===v[2*y-2]&amp;&amp;v[1]===v[2*y-1]?(D[2*y+2]=O[2],D[2*y+3]=O[3],d.count-=1):(D[2*y+2]=O[0],D[2*y+3]=O[1],D[2*y+4]=O[2],D[2*y+5]=O[3]):(D[2*y+2]=O[2*y-2],D[2*y+3]=O[2*y-1],D[2*y+4]=O[2*y-2],D[2*y+5]=O[2*y-1]),d.positionBuffer(h(D)),d.positionFractBuffer(p(D))}if(t.range?d.range=t.range:d.range||(d.range=d.bounds),(t.range||t.positions)&amp;&amp;d.count){var R=d.bounds,F=R[2]-R[0],B=R[3]-R[1],N=d.range[2]-d.range[0],j=d.range[3]-d.range[1];d.scale=[F/N,B/j],d.translate=[-d.range[0]/N+R[0]/N||0,-d.range[1]/j+R[1]/j||0],d.scaleFract=p(d.scale),d.translateFract=p(d.translate)}if(t.dashes){var U,V=0;if(!t.dashes||t.dashes.length&lt;2)V=1,U=new Uint8Array([255,255,255,255,255,255,255,255]);else{V=0;for(var q=0;q&lt;t.dashes.length;++q)V+=t.dashes[q];U=new Uint8Array(V*m.dashMult);for(var H=0,G=255,Y=0;Y&lt;2;Y++)for(var W=0;W&lt;t.dashes.length;++W){for(var X=0,Z=t.dashes[W]*m.dashMult*.5;X&lt;Z;++X)U[H++]=G;G^=255}}d.dashLength=V,d.dashTexture({channels:1,data:U,width:U.length,height:1,mag:&quot;linear&quot;,min:&quot;linear&quot;},0,0)}if(t.color){var J=d.count,K=t.color;K||(K=&quot;transparent&quot;);var Q=new Uint8Array(4*J+4);if(Array.isArray(K)&amp;&amp;&quot;number&quot;!=typeof K[0]){for(var $=0;$&lt;J;$++){var tt=n(K[$],&quot;uint8&quot;);Q.set(tt,4*$)}Q.set(n(K[0],&quot;uint8&quot;),4*J)}else for(var et=n(K,&quot;uint8&quot;),rt=0;rt&lt;J+1;rt++)Q.set(et,4*rt);d.colorBuffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:Q})}}else e.passes[f]=null})),t.length&lt;this.passes.length){for(var f=t.length;f&lt;this.passes.length;f++){var d=this.passes[f];d&amp;&amp;(d.colorBuffer.destroy(),d.positionBuffer.destroy(),d.dashTexture.destroy())}this.passes.length=t.length}for(var v=[],y=0;y&lt;this.passes.length;y++)null!==this.passes[y]&amp;&amp;v.push(this.passes[y]);return this.passes=v,this}},m.prototype.destroy=function(){return this.passes.forEach((function(t){t.colorBuffer.destroy(),t.positionBuffer.destroy(),t.dashTexture.destroy()})),this.passes.length=0,this}},{&quot;array-bounds&quot;:70,&quot;array-normalize&quot;:71,&quot;color-normalize&quot;:125,earcut:177,&quot;es6-weak-map&quot;:233,&quot;flatten-vertex-data&quot;:244,glslify:536,&quot;object-assign&quot;:499,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511,&quot;to-float32&quot;:577}],536:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],537:[function(t,e,r){&quot;use strict&quot;;function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(&quot;undefined&quot;==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&amp;&amp;(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}(t,e)||a(t,e)||function(){throw new TypeError(&quot;Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.&quot;)}()}function i(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if(&quot;undefined&quot;!=typeof Symbol&amp;&amp;Symbol.iterator in Object(t))return Array.from(t)}(t)||a(t)||function(){throw new TypeError(&quot;Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.&quot;)}()}function a(t,e){if(t){if(&quot;string&quot;==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return&quot;Object&quot;===r&amp;&amp;t.constructor&amp;&amp;(r=t.constructor.name),&quot;Map&quot;===r||&quot;Set&quot;===r?Array.from(t):&quot;Arguments&quot;===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e&gt;t.length)&amp;&amp;(e=t.length);for(var r=0,n=new Array(e);r&lt;e;r++)n[r]=t[r];return n}var s=t(&quot;color-normalize&quot;),l=t(&quot;array-bounds&quot;),c=t(&quot;color-id&quot;),u=t(&quot;@plotly/point-cluster&quot;),f=t(&quot;object-assign&quot;),h=t(&quot;glslify&quot;),p=t(&quot;pick-by-alias&quot;),d=t(&quot;update-diff&quot;),g=t(&quot;flatten-vertex-data&quot;),m=t(&quot;is-iexplorer&quot;),v=t(&quot;to-float32&quot;),y=t(&quot;parse-rect&quot;),x=b;function b(t,e){var r=this;if(!(this instanceof b))return new b(t,e);&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):(e=t,t=null),e&amp;&amp;e.length&amp;&amp;(e.positions=e);var n,i=(t=e.regl)._gl,a=[];this.tooManyColors=m,n=t.texture({data:new Uint8Array(1020),width:255,height:1,type:&quot;uint8&quot;,format:&quot;rgba&quot;,wrapS:&quot;clamp&quot;,wrapT:&quot;clamp&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;}),f(this,{regl:t,gl:i,groups:[],markerCache:[null],markerTextures:[null],palette:a,paletteIds:{},paletteTexture:n,maxColors:255,maxSize:100,canvas:i.canvas}),this.update(e);var o={uniforms:{constPointSize:!!e.constPointSize,pixelRatio:t.context(&quot;pixelRatio&quot;),palette:n,paletteSize:function(t,e){return[r.tooManyColors?0:255,n.height]},scale:t.prop(&quot;scale&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translate:t.prop(&quot;translate&quot;),translateFract:t.prop(&quot;translateFract&quot;),opacity:t.prop(&quot;opacity&quot;),marker:t.prop(&quot;markerTexture&quot;)},attributes:{x:function(t,e){return e.xAttr||{buffer:e.positionBuffer,stride:8,offset:0}},y:function(t,e){return e.yAttr||{buffer:e.positionBuffer,stride:8,offset:4}},xFract:function(t,e){return e.xAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:0}},yFract:function(t,e){return e.yAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:4}},size:function(t,e){return e.size.length?{buffer:e.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(255*e.size/r.maxSize)]}},borderSize:function(t,e){return e.borderSize.length?{buffer:e.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(255*e.borderSize/r.maxSize)]}},colorId:function(t,e){return e.color.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(4*e.color,4*e.color+4):[e.color]}},borderColorId:function(t,e){return e.borderColor.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(4*e.borderColor,4*e.borderColor+4):[e.borderColor]}},isActive:function(t,e){return!0===e.activation?{constant:[1]}:e.activation?e.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;),stencil:{enable:!1},depth:{enable:!1},elements:t.prop(&quot;elements&quot;),count:t.prop(&quot;count&quot;),offset:t.prop(&quot;offset&quot;),primitive:&quot;points&quot;},s=f({},o);s.frag=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragWidth, fragBorderColorLevel, fragColorLevel;\n\nuniform sampler2D marker;\nuniform float opacity;\n\nfloat smoothStep(float x, float y) {\n  return 1.0 / (1.0 + exp(50.0*(x - y)));\n}\n\nvoid main() {\n  float dist = texture2D(marker, gl_PointCoord).r, delta = fragWidth;\n\n  // max-distance alpha\n  if (dist &lt; 0.003) discard;\n\n  // null-border case\n  if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {\n    float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);\n    gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);\n  }\n  else {\n    float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);\n    float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);\n\n    vec4 color = fragBorderColor;\n    color.a *= borderColorAmt;\n    color = mix(color, fragColor, colorAmt);\n    color.a *= opacity;\n\n    gl_FragColor = color;\n  }\n\n}\n&quot;]),s.vert=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform vec2 scale, scaleFract, translate, translateFract, paletteSize;\nuniform float pixelRatio;\nuniform bool constPointSize;\nuniform sampler2D palette;\n\nconst float maxSize = 100.;\nconst float borderLevel = .5;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x &lt; 1.);\n\nvec4 getColor(vec4 id) {\n  return isDirect ? id / 255. : texture2D(palette,\n    vec2(\n      (id.x + .5) / paletteSize.x,\n      (id.y + .5) / paletteSize.y\n    )\n  );\n}\n\nvoid main() {\n  // ignore inactive points\n  if (isActive == 0.) return;\n\n  vec2 position = vec2(x, y);\n  vec2 positionFract = vec2(xFract, yFract);\n\n  vec4 color = getColor(colorId);\n  vec4 borderColor = getColor(borderColorId);\n\n  float size = size * maxSize / 255.;\n  float borderSize = borderSize * maxSize / 255.;\n\n  gl_PointSize = 2. * size * pointSizeScale;\n  fragPointSize = size * pixelRatio;\n\n  vec2 pos = (position + translate) * scale\n      + (positionFract + translateFract) * scale\n      + (position + translate) * scaleFract\n      + (positionFract + translateFract) * scaleFract;\n\n  gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n  fragColor = color;\n  fragBorderColor = borderColor;\n  fragWidth = 1. / gl_PointSize;\n\n  fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);\n  fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);\n}&quot;]),this.drawMarker=t(s);var l=f({},o);l.frag=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\n\nuniform float opacity;\nvarying float fragBorderRadius, fragWidth;\n\nfloat smoothStep(float edge0, float edge1, float x) {\n\tfloat t;\n\tt = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\n\treturn t * t * (3.0 - 2.0 * t);\n}\n\nvoid main() {\n\tfloat radius, alpha = 1.0, delta = fragWidth;\n\n\tradius = length(2.0 * gl_PointCoord.xy - 1.0);\n\n\tif (radius &gt; 1.0 + delta) {\n\t\tdiscard;\n\t}\n\n\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\n\n\tfloat borderRadius = fragBorderRadius;\n\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\n\tvec4 color = mix(fragColor, fragBorderColor, ratio);\n\tcolor.a *= alpha * opacity;\n\tgl_FragColor = color;\n}\n&quot;]),l.vert=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio;\nuniform bool constPointSize;\nuniform sampler2D palette;\nuniform vec2 paletteSize;\n\nconst float maxSize = 100.;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x &lt; 1.);\n\nvec4 getColor(vec4 id) {\n  return isDirect ? id / 255. : texture2D(palette,\n    vec2(\n      (id.x + .5) / paletteSize.x,\n      (id.y + .5) / paletteSize.y\n    )\n  );\n}\n\nvoid main() {\n  // ignore inactive points\n  if (isActive == 0.) return;\n\n  vec2 position = vec2(x, y);\n  vec2 positionFract = vec2(xFract, yFract);\n\n  vec4 color = getColor(colorId);\n  vec4 borderColor = getColor(borderColorId);\n\n  float size = size * maxSize / 255.;\n  float borderSize = borderSize * maxSize / 255.;\n\n  gl_PointSize = (size + borderSize) * pointSizeScale;\n\n  vec2 pos = (position + translate) * scale\n      + (positionFract + translateFract) * scale\n      + (position + translate) * scaleFract\n      + (positionFract + translateFract) * scaleFract;\n\n  gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n  fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\n  fragColor = color;\n  fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\n  fragWidth = 1. / gl_PointSize;\n}\n&quot;]),m&amp;&amp;(l.frag=l.frag.replace(&quot;smoothstep&quot;,&quot;smoothStep&quot;),s.frag=s.frag.replace(&quot;smoothstep&quot;,&quot;smoothStep&quot;)),this.drawCircle=t(l)}b.defaults={color:&quot;black&quot;,borderColor:&quot;transparent&quot;,borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},b.prototype.render=function(){return arguments.length&amp;&amp;this.update.apply(this,arguments),this.draw(),this},b.prototype.draw=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n&lt;e;n++)r[n]=arguments[n];var i=this.groups;if(1===r.length&amp;&amp;Array.isArray(r[0])&amp;&amp;(null===r[0][0]||Array.isArray(r[0][0]))&amp;&amp;(r=r[0]),this.regl._refresh(),r.length)for(var a=0;a&lt;r.length;a++)this.drawItem(a,r[a]);else i.forEach((function(e,r){t.drawItem(r)}));return this},b.prototype.drawItem=function(t,e){var r=this.groups,n=r[t];if(&quot;number&quot;==typeof e&amp;&amp;(t=e,n=r[e],e=null),n&amp;&amp;n.count&amp;&amp;n.opacity){n.activation[0]&amp;&amp;this.drawCircle(this.getMarkerDrawOptions(0,n,e));for(var a=[],o=1;o&lt;n.activation.length;o++)n.activation[o]&amp;&amp;(!0===n.activation[o]||n.activation[o].data.length)&amp;&amp;a.push.apply(a,i(this.getMarkerDrawOptions(o,n,e)));a.length&amp;&amp;this.drawMarker(a)}},b.prototype.getMarkerDrawOptions=function(t,e,r){var i=e.range,a=e.tree,o=e.viewport,s=e.activation,l=e.selectionBuffer,c=e.count;this.regl;if(!a)return r?[f({},e,{markerTexture:this.markerTextures[t],activation:s[t],count:r.length,elements:r,offset:0})]:[f({},e,{markerTexture:this.markerTextures[t],activation:s[t],offset:0})];var u=[],h=a.range(i,{lod:!0,px:[(i[2]-i[0])/o.width,(i[3]-i[1])/o.height]});if(r){for(var p=s[t].data,d=new Uint8Array(c),g=0;g&lt;r.length;g++){var m=r[g];d[m]=p?p[m]:1}l.subdata(d)}for(var v=h.length;v--;){var y=n(h[v],2),x=y[0],b=y[1];u.push(f({},e,{markerTexture:this.markerTextures[t],activation:r?l:s[t],offset:x,count:b-x}))}return u},b.prototype.update=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n&lt;e;n++)r[n]=arguments[n];if(r.length){1===r.length&amp;&amp;Array.isArray(r[0])&amp;&amp;(r=r[0]);var i=this.groups,a=this.gl,o=this.regl,s=this.maxSize,c=this.maxColors,h=this.palette;this.groups=i=r.map((function(e,r){var n=i[r];if(void 0===e)return n;null===e?e={positions:null}:&quot;function&quot;==typeof e?e={ondraw:e}:&quot;number&quot;==typeof e[0]&amp;&amp;(e={positions:e}),null===(e=p(e,{positions:&quot;positions data points&quot;,snap:&quot;snap cluster lod tree&quot;,size:&quot;sizes size radius&quot;,borderSize:&quot;borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline&quot;,color:&quot;colors color fill fill-color fillColor&quot;,borderColor:&quot;borderColors borderColor stroke stroke-color strokeColor&quot;,marker:&quot;markers marker shape&quot;,range:&quot;range dataBox databox&quot;,viewport:&quot;viewport viewPort viewBox viewbox&quot;,opacity:&quot;opacity alpha transparency&quot;,bounds:&quot;bound bounds boundaries limits&quot;,tooManyColors:&quot;tooManyColors palette paletteMode optimizePalette enablePalette&quot;})).positions&amp;&amp;(e.positions=[]),null!=e.tooManyColors&amp;&amp;(t.tooManyColors=e.tooManyColors),n||(i[r]=n={id:r,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;stream&quot;,type:&quot;uint8&quot;}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;uint8&quot;}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;uint8&quot;}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;float&quot;}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;float&quot;})},e=f({},b.defaults,e)),e.positions&amp;&amp;!(&quot;marker&quot;in e)&amp;&amp;(e.marker=n.marker,delete n.marker),e.marker&amp;&amp;!(&quot;positions&quot;in e)&amp;&amp;(e.positions=n.positions,delete n.positions);var m=0,x=0;if(d(n,e,[{snap:!0,size:function(t,e){return null==t&amp;&amp;(t=b.defaults.size),m+=t&amp;&amp;t.length?1:0,t},borderSize:function(t,e){return null==t&amp;&amp;(t=b.defaults.borderSize),m+=t&amp;&amp;t.length?1:0,t},opacity:parseFloat,color:function(e,r){return null==e&amp;&amp;(e=b.defaults.color),e=t.updateColor(e),x++,e},borderColor:function(e,r){return null==e&amp;&amp;(e=b.defaults.borderColor),e=t.updateColor(e),x++,e},bounds:function(t,e,r){return&quot;range&quot;in r||(r.range=null),t},positions:function(t,e,r){var n=e.snap,i=e.positionBuffer,a=e.positionFractBuffer,s=e.selectionBuffer;if(t.x||t.y)return t.x.length?e.xAttr={buffer:o.buffer(t.x),offset:0,stride:4,count:t.x.length}:e.xAttr={buffer:t.x.buffer,offset:4*t.x.offset||0,stride:4*(t.x.stride||1),count:t.x.count},t.y.length?e.yAttr={buffer:o.buffer(t.y),offset:0,stride:4,count:t.y.length}:e.yAttr={buffer:t.y.buffer,offset:4*t.y.offset||0,stride:4*(t.y.stride||1),count:t.y.count},e.count=Math.max(e.xAttr.count,e.yAttr.count),t;t=g(t,&quot;float64&quot;);var c=e.count=Math.floor(t.length/2),f=e.bounds=c?l(t,2):null;if(r.range||e.range||(delete e.range,r.range=f),r.marker||e.marker||(delete e.marker,r.marker=null),n&amp;&amp;(!0===n||c&gt;n)?e.tree=u(t,{bounds:f}):n&amp;&amp;n.length&amp;&amp;(e.tree=n),e.tree){var h={primitive:&quot;points&quot;,usage:&quot;static&quot;,data:e.tree,type:&quot;uint32&quot;};e.elements?e.elements(h):e.elements=o.elements(h)}return i({data:v.float(t),usage:&quot;dynamic&quot;}),a({data:v.fract(t),usage:&quot;dynamic&quot;}),s({data:new Uint8Array(c),type:&quot;uint8&quot;,usage:&quot;stream&quot;}),t}},{marker:function(e,r,n){var i=r.activation;if(i.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),i.length=0,e&amp;&amp;&quot;number&quot;!=typeof e[0]){for(var a=[],s=0,l=Math.min(e.length,r.count);s&lt;l;s++){var c=t.addMarker(e[s]);a[c]||(a[c]=new Uint8Array(r.count)),a[c][s]=1}for(var u=0;u&lt;a.length;u++)if(a[u]){var f={data:a[u],type:&quot;uint8&quot;,usage:&quot;static&quot;};i[u]?i[u](f):i[u]=o.buffer(f),i[u].data=a[u]}}else{i[t.addMarker(e)]=!0}return e},range:function(t,e,r){var n=e.bounds;if(n)return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=v.fract(e.scale),e.translateFract=v.fract(e.translate),t},viewport:function(t){return y(t||[a.drawingBufferWidth,a.drawingBufferHeight])}}]),m){var _=n,w=_.count,T=_.size,k=_.borderSize,M=_.sizeBuffer,A=new Uint8Array(2*w);if(T.length||k.length)for(var S=0;S&lt;w;S++)A[2*S]=Math.round(255*(null==T[S]?T:T[S])/s),A[2*S+1]=Math.round(255*(null==k[S]?k:k[S])/s);M({data:A,usage:&quot;dynamic&quot;})}if(x){var E,C=n,L=C.count,I=C.color,P=C.borderColor,z=C.colorBuffer;if(t.tooManyColors){if(I.length||P.length){E=new Uint8Array(8*L);for(var O=0;O&lt;L;O++){var D=I[O];E[8*O]=h[4*D],E[8*O+1]=h[4*D+1],E[8*O+2]=h[4*D+2],E[8*O+3]=h[4*D+3];var R=P[O];E[8*O+4]=h[4*R],E[8*O+5]=h[4*R+1],E[8*O+6]=h[4*R+2],E[8*O+7]=h[4*R+3]}}}else if(I.length||P.length){E=new Uint8Array(4*L+2);for(var F=0;F&lt;L;F++)null!=I[F]&amp;&amp;(E[4*F]=I[F]%c,E[4*F+1]=Math.floor(I[F]/c)),null!=P[F]&amp;&amp;(E[4*F+2]=P[F]%c,E[4*F+3]=Math.floor(P[F]/c))}z({data:E||new Uint8Array(0),type:&quot;uint8&quot;,usage:&quot;dynamic&quot;})}return n}))}},b.prototype.addMarker=function(t){var e,r=this.markerTextures,n=this.regl,i=this.markerCache,a=null==t?0:i.indexOf(t);if(a&gt;=0)return a;if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)e=t;else{e=new Uint8Array(t.length);for(var o=0,s=t.length;o&lt;s;o++)e[o]=255*t[o]}var l=Math.floor(Math.sqrt(e.length));return a=r.length,i.push(t),r.push(n.texture({channels:1,data:e,radius:l,mag:&quot;linear&quot;,min:&quot;linear&quot;})),a},b.prototype.updateColor=function(t){var e=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(t)||(t=[t]);var i=[];if(&quot;number&quot;==typeof t[0]){var a=[];if(Array.isArray(t))for(var o=0;o&lt;t.length;o+=4)a.push(t.slice(o,o+4));else for(var l=0;l&lt;t.length;l+=4)a.push(t.subarray(l,l+4));t=a}for(var u=0;u&lt;t.length;u++){var f=t[u];f=s(f,&quot;uint8&quot;);var h=c(f,!1);if(null==e[h]){var p=r.length;e[h]=Math.floor(p/4),r[p]=f[0],r[p+1]=f[1],r[p+2]=f[2],r[p+3]=f[3]}i[u]=e[h]}return!this.tooManyColors&amp;&amp;r.length&gt;4*n&amp;&amp;(this.tooManyColors=!0),this.updatePalette(r),1===i.length?i[0]:i},b.prototype.updatePalette=function(t){if(!this.tooManyColors){var e=this.maxColors,r=this.paletteTexture,n=Math.ceil(.25*t.length/e);if(n&gt;1)for(var i=.25*(t=t.slice()).length%e;i&lt;n*e;i++)t.push(0,0,0,0);r.height&lt;n&amp;&amp;r.resize(e,n),r.subimage({width:Math.min(.25*t.length,e),height:n,data:t},0,0)}},b.prototype.destroy=function(){return this.groups.forEach((function(t){t.sizeBuffer.destroy(),t.positionBuffer.destroy(),t.positionFractBuffer.destroy(),t.colorBuffer.destroy(),t.activation.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),t.selectionBuffer.destroy(),t.elements&amp;&amp;t.elements.destroy()})),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),this};var _=t(&quot;object-assign&quot;);e.exports=function(t,e){var r=new x(t,e),n=r.render.bind(r);return _(n,{render:n,update:r.update.bind(r),draw:r.draw.bind(r),destroy:r.destroy.bind(r),regl:r.regl,gl:r.gl,canvas:r.gl.canvas,groups:r.groups,markers:r.markerCache,palette:r.palette}),n}},{&quot;@plotly/point-cluster&quot;:57,&quot;array-bounds&quot;:70,&quot;color-id&quot;:123,&quot;color-normalize&quot;:125,&quot;flatten-vertex-data&quot;:244,glslify:538,&quot;is-iexplorer&quot;:466,&quot;object-assign&quot;:499,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511,&quot;to-float32&quot;:577,&quot;update-diff&quot;:599}],538:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],539:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-scatter2d&quot;),i=t(&quot;pick-by-alias&quot;),a=t(&quot;array-bounds&quot;),o=t(&quot;raf&quot;),s=t(&quot;array-range&quot;),l=t(&quot;parse-rect&quot;),c=t(&quot;flatten-vertex-data&quot;);function u(t,e){if(!(this instanceof u))return new u(t,e);this.traces=[],this.passes={},this.regl=t,this.scatter=n(t),this.canvas=this.scatter.canvas}function f(t,e,r){return(null!=t.id?t.id:t)&lt;&lt;16|(255&amp;e)&lt;&lt;8|255&amp;r}function h(t,e,r){var n,i,a,o,s=t[e],l=t[r];return s.length&gt;2?(s[0],s[2],n=s[1],i=s[3]):s.length?(n=s[0],i=s[1]):(s.x,n=s.y,s.x+s.width,i=s.y+s.height),l.length&gt;2?(a=l[0],o=l[2],l[1],l[3]):l.length?(a=l[0],o=l[1]):(a=l.x,l.y,o=l.x+l.width,l.y+l.height),[a,n,o,i]}function p(t){if(&quot;number&quot;==typeof t)return[t,t,t,t];if(2===t.length)return[t[0],t[1],t[0],t[1]];var e=l(t);return[e.x,e.y,e.x+e.width,e.y+e.height]}e.exports=u,u.prototype.render=function(){for(var t,e=this,r=[],n=arguments.length;n--;)r[n]=arguments[n];return r.length&amp;&amp;(t=this).update.apply(t,r),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?null==this.planned&amp;&amp;(this.planned=o((function(){e.draw(),e.dirty=!0,e.planned=null}))):(this.draw(),this.dirty=!0,o((function(){e.dirty=!1}))),this)},u.prototype.update=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=0;n&lt;e.length;n++)this.updateItem(n,e[n]);this.traces=this.traces.filter(Boolean);for(var i=[],a=0,o=0;o&lt;this.traces.length;o++){for(var s=this.traces[o],l=this.traces[o].passes,c=0;c&lt;l.length;c++)i.push(this.passes[l[c]]);s.passOffset=a,a+=s.passes.length}return(t=this.scatter).update.apply(t,i),this}},u.prototype.updateItem=function(t,e){var r=this.regl;if(null===e)return this.traces[t]=null,this;if(!e)return this;var n,o=i(e,{data:&quot;data items columns rows values dimensions samples x&quot;,snap:&quot;snap cluster&quot;,size:&quot;sizes size radius&quot;,color:&quot;colors color fill fill-color fillColor&quot;,opacity:&quot;opacity alpha transparency opaque&quot;,borderSize:&quot;borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline&quot;,borderColor:&quot;borderColors borderColor bordercolor stroke stroke-color strokeColor&quot;,marker:&quot;markers marker shape&quot;,range:&quot;range ranges databox dataBox&quot;,viewport:&quot;viewport viewBox viewbox&quot;,domain:&quot;domain domains area areas&quot;,padding:&quot;pad padding paddings pads margin margins&quot;,transpose:&quot;transpose transposed&quot;,diagonal:&quot;diagonal diag showDiagonal&quot;,upper:&quot;upper up top upperhalf upperHalf showupperhalf showUpper showUpperHalf&quot;,lower:&quot;lower low bottom lowerhalf lowerHalf showlowerhalf showLowerHalf showLower&quot;}),s=this.traces[t]||(this.traces[t]={id:t,buffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array}),color:&quot;black&quot;,marker:null,size:12,borderColor:&quot;transparent&quot;,borderSize:1,viewport:l([r._gl.drawingBufferWidth,r._gl.drawingBufferHeight]),padding:[0,0,0,0],opacity:1,diagonal:!0,upper:!0,lower:!0});if(null!=o.color&amp;&amp;(s.color=o.color),null!=o.size&amp;&amp;(s.size=o.size),null!=o.marker&amp;&amp;(s.marker=o.marker),null!=o.borderColor&amp;&amp;(s.borderColor=o.borderColor),null!=o.borderSize&amp;&amp;(s.borderSize=o.borderSize),null!=o.opacity&amp;&amp;(s.opacity=o.opacity),o.viewport&amp;&amp;(s.viewport=l(o.viewport)),null!=o.diagonal&amp;&amp;(s.diagonal=o.diagonal),null!=o.upper&amp;&amp;(s.upper=o.upper),null!=o.lower&amp;&amp;(s.lower=o.lower),o.data){s.buffer(c(o.data)),s.columns=o.data.length,s.count=o.data[0].length,s.bounds=[];for(var u=0;u&lt;s.columns;u++)s.bounds[u]=a(o.data[u],1)}o.range&amp;&amp;(s.range=o.range,n=s.range&amp;&amp;&quot;number&quot;!=typeof s.range[0]),o.domain&amp;&amp;(s.domain=o.domain);var d=!1;null!=o.padding&amp;&amp;(Array.isArray(o.padding)&amp;&amp;o.padding.length===s.columns&amp;&amp;&quot;number&quot;==typeof o.padding[o.padding.length-1]?(s.padding=o.padding.map(p),d=!0):s.padding=p(o.padding));var g=s.columns,m=s.count,v=s.viewport.width,y=s.viewport.height,x=s.viewport.x,b=s.viewport.y,_=v/g,w=y/g;s.passes=[];for(var T=0;T&lt;g;T++)for(var k=0;k&lt;g;k++)if((s.diagonal||k!==T)&amp;&amp;(s.upper||!(T&gt;k))&amp;&amp;(s.lower||!(T&lt;k))){var M=f(s.id,T,k),A=this.passes[M]||(this.passes[M]={});if(o.data&amp;&amp;(o.transpose?A.positions={x:{buffer:s.buffer,offset:k,count:m,stride:g},y:{buffer:s.buffer,offset:T,count:m,stride:g}}:A.positions={x:{buffer:s.buffer,offset:k*m,count:m},y:{buffer:s.buffer,offset:T*m,count:m}},A.bounds=h(s.bounds,T,k)),o.domain||o.viewport||o.data){var S=d?h(s.padding,T,k):s.padding;if(s.domain){var E=h(s.domain,T,k),C=E[0],L=E[1],I=E[2],P=E[3];A.viewport=[x+C*v+S[0],b+L*y+S[1],x+I*v-S[2],b+P*y-S[3]]}else A.viewport=[x+k*_+_*S[0],b+T*w+w*S[1],x+(k+1)*_-_*S[2],b+(T+1)*w-w*S[3]]}o.color&amp;&amp;(A.color=s.color),o.size&amp;&amp;(A.size=s.size),o.marker&amp;&amp;(A.marker=s.marker),o.borderSize&amp;&amp;(A.borderSize=s.borderSize),o.borderColor&amp;&amp;(A.borderColor=s.borderColor),o.opacity&amp;&amp;(A.opacity=s.opacity),o.range&amp;&amp;(A.range=n?h(s.range,T,k):s.range||A.bounds),s.passes.push(M)}return this},u.prototype.draw=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=[],i=0;i&lt;e.length;i++)if(&quot;number&quot;==typeof e[i]){var a=this.traces[e[i]],o=a.passes,l=a.passOffset;n.push.apply(n,s(l,l+o.length))}else if(e[i].length){var c=e[i],u=this.traces[i],f=u.passes,h=u.passOffset;f=f.map((function(t,e){n[h+e]=c}))}(t=this.scatter).draw.apply(t,n)}else this.scatter.draw();return this},u.prototype.destroy=function(){return this.traces.forEach((function(t){t.buffer&amp;&amp;t.buffer.destroy&amp;&amp;t.buffer.destroy()})),this.traces=null,this.passes=null,this.scatter.destroy(),this}},{&quot;array-bounds&quot;:70,&quot;array-range&quot;:72,&quot;flatten-vertex-data&quot;:244,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511,raf:528,&quot;regl-scatter2d&quot;:537}],540:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?e.exports=n():t.createREGL=n()}(this,(function(){function t(t,e){this.id=V++,this.type=t,this.data=e}function e(t){return&quot;[&quot;+function t(e){if(0===e.length)return[];var r=e.charAt(0),n=e.charAt(e.length-1);if(1&lt;e.length&amp;&amp;r===n&amp;&amp;('&quot;'===r||&quot;'&quot;===r))return['&quot;'+e.substr(1,e.length-2).replace(/\\/g,&quot;\\\\&quot;).replace(/&quot;/g,'\\&quot;')+'&quot;'];if(r=/\[(false|true|null|\d+|'[^']*'|&quot;[^&quot;]*&quot;)\]/.exec(e))return t(e.substr(0,r.index)).concat(t(r[1])).concat(t(e.substr(r.index+r[0].length)));if(1===(r=e.split(&quot;.&quot;)).length)return['&quot;'+e.replace(/\\/g,&quot;\\\\&quot;).replace(/&quot;/g,'\\&quot;')+'&quot;'];for(e=[],n=0;n&lt;r.length;++n)e=e.concat(t(r[n]));return e}(t).join(&quot;][&quot;)+&quot;]&quot;}function r(t){return&quot;string&quot;==typeof t?t.split():t}function n(t){return&quot;string&quot;==typeof t?document.querySelector(t):t}function i(t){var e,i,a,o,s=t||{};t={};var l=[],c=[],u=&quot;undefined&quot;==typeof window?1:window.devicePixelRatio,f=!1,h=function(t){},p=function(){};if(&quot;string&quot;==typeof s?e=document.querySelector(s):&quot;object&quot;==typeof s&amp;&amp;(&quot;string&quot;==typeof s.nodeName&amp;&amp;&quot;function&quot;==typeof s.appendChild&amp;&amp;&quot;function&quot;==typeof s.getBoundingClientRect?e=s:&quot;function&quot;==typeof s.drawArrays||&quot;function&quot;==typeof s.drawElements?a=(o=s).canvas:(&quot;gl&quot;in s?o=s.gl:&quot;canvas&quot;in s?a=n(s.canvas):&quot;container&quot;in s&amp;&amp;(i=n(s.container)),&quot;attributes&quot;in s&amp;&amp;(t=s.attributes),&quot;extensions&quot;in s&amp;&amp;(l=r(s.extensions)),&quot;optionalExtensions&quot;in s&amp;&amp;(c=r(s.optionalExtensions)),&quot;onDone&quot;in s&amp;&amp;(h=s.onDone),&quot;profile&quot;in s&amp;&amp;(f=!!s.profile),&quot;pixelRatio&quot;in s&amp;&amp;(u=+s.pixelRatio))),e&amp;&amp;(&quot;canvas&quot;===e.nodeName.toLowerCase()?a=e:i=e),!o){if(!a){if(!(e=function(t,e,r){function n(){var e=window.innerWidth,n=window.innerHeight;t!==document.body&amp;&amp;(e=(n=t.getBoundingClientRect()).right-n.left,n=n.bottom-n.top),a.width=r*e,a.height=r*n,U(a.style,{width:e+&quot;px&quot;,height:n+&quot;px&quot;})}var i,a=document.createElement(&quot;canvas&quot;);return U(a.style,{border:0,margin:0,padding:0,top:0,left:0}),t.appendChild(a),t===document.body&amp;&amp;(a.style.position=&quot;absolute&quot;,U(t.style,{margin:0,padding:0})),t!==document.body&amp;&amp;&quot;function&quot;==typeof ResizeObserver?(i=new ResizeObserver((function(){setTimeout(n)}))).observe(t):window.addEventListener(&quot;resize&quot;,n,!1),n(),{canvas:a,onDestroy:function(){i?i.disconnect():window.removeEventListener(&quot;resize&quot;,n),t.removeChild(a)}}}(i||document.body,0,u)))return null;a=e.canvas,p=e.onDestroy}void 0===t.premultipliedAlpha&amp;&amp;(t.premultipliedAlpha=!0),o=function(t,e){function r(r){try{return t.getContext(r,e)}catch(t){return null}}return r(&quot;webgl&quot;)||r(&quot;experimental-webgl&quot;)||r(&quot;webgl-experimental&quot;)}(a,t)}return o?{gl:o,canvas:a,container:i,extensions:l,optionalExtensions:c,pixelRatio:u,profile:f,onDone:h,onDestroy:p}:(p(),h(&quot;webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org&quot;),null)}function a(t,e){for(var r=Array(t),n=0;n&lt;t;++n)r[n]=e(n);return r}function o(t){var e,r;return e=(65535&lt;t)&lt;&lt;4,e|=r=(255&lt;(t&gt;&gt;&gt;=e))&lt;&lt;3,(e|=r=(15&lt;(t&gt;&gt;&gt;=r))&lt;&lt;2)|(r=(3&lt;(t&gt;&gt;&gt;=r))&lt;&lt;1)|t&gt;&gt;&gt;r&gt;&gt;1}function s(){function t(t){t:{for(var e=16;268435456&gt;=e;e*=16)if(t&lt;=e){t=e;break t}t=0}return 0&lt;(e=r[o(t)&gt;&gt;2]).length?e.pop():new ArrayBuffer(t)}function e(t){r[o(t.byteLength)&gt;&gt;2].push(t)}var r=a(8,(function(){return[]}));return{alloc:t,free:e,allocType:function(e,r){var n=null;switch(e){case 5120:n=new Int8Array(t(r),0,r);break;case 5121:n=new Uint8Array(t(r),0,r);break;case 5122:n=new Int16Array(t(2*r),0,r);break;case 5123:n=new Uint16Array(t(2*r),0,r);break;case 5124:n=new Int32Array(t(4*r),0,r);break;case 5125:n=new Uint32Array(t(4*r),0,r);break;case 5126:n=new Float32Array(t(4*r),0,r);break;default:return null}return n.length!==r?n.subarray(0,r):n},freeType:function(t){e(t.buffer)}}}function l(t){return!!t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;Array.isArray(t.shape)&amp;&amp;Array.isArray(t.stride)&amp;&amp;&quot;number&quot;==typeof t.offset&amp;&amp;t.shape.length===t.stride.length&amp;&amp;(Array.isArray(t.data)||X(t.data))}function c(t,e,r,n,i,a){for(var o=0;o&lt;e;++o)for(var s=t[o],l=0;l&lt;r;++l)for(var c=s[l],u=0;u&lt;n;++u)i[a++]=c[u]}function u(t){return 0|K[Object.prototype.toString.call(t)]}function f(t,e){for(var r=0;r&lt;e.length;++r)t[r]=e[r]}function h(t,e,r,n,i,a,o){for(var s=0,l=0;l&lt;r;++l)for(var c=0;c&lt;n;++c)t[s++]=e[i*l+a*c+o]}function p(t,e,r,n){function i(e){this.id=c++,this.buffer=t.createBuffer(),this.type=e,this.usage=35044,this.byteLength=0,this.dimension=1,this.dtype=5121,this.persistentData=null,r.profile&amp;&amp;(this.stats={size:0})}function a(e,r,n){e.byteLength=r.byteLength,t.bufferData(e.type,r,n)}function o(t,e,r,n,i,o){if(t.usage=r,Array.isArray(e)){if(t.dtype=n||5126,0&lt;e.length)if(Array.isArray(e[0])){i=et(e);for(var s=n=1;s&lt;i.length;++s)n*=i[s];t.dimension=n,a(t,e=tt(e,i,t.dtype),r),o?t.persistentData=e:Y.freeType(e)}else&quot;number&quot;==typeof e[0]?(t.dimension=i,f(i=Y.allocType(t.dtype,e.length),e),a(t,i,r),o?t.persistentData=i:Y.freeType(i)):X(e[0])&amp;&amp;(t.dimension=e[0].length,t.dtype=n||u(e[0])||5126,a(t,e=tt(e,[e.length,e[0].length],t.dtype),r),o?t.persistentData=e:Y.freeType(e))}else if(X(e))t.dtype=n||u(e),t.dimension=i,a(t,e,r),o&amp;&amp;(t.persistentData=new Uint8Array(new Uint8Array(e.buffer)));else if(l(e)){i=e.shape;var c=e.stride,p=(s=e.offset,0),d=0,g=0,m=0;1===i.length?(p=i[0],d=1,g=c[0],m=0):2===i.length&amp;&amp;(p=i[0],d=i[1],g=c[0],m=c[1]),t.dtype=n||u(e.data)||5126,t.dimension=d,h(i=Y.allocType(t.dtype,p*d),e.data,p,d,g,m,s),a(t,i,r),o?t.persistentData=i:Y.freeType(i)}else e instanceof ArrayBuffer&amp;&amp;(t.dtype=5121,t.dimension=i,a(t,e,r),o&amp;&amp;(t.persistentData=new Uint8Array(new Uint8Array(e))))}function s(r){e.bufferCount--,n(r),t.deleteBuffer(r.buffer),r.buffer=null,delete p[r.id]}var c=0,p={};i.prototype.bind=function(){t.bindBuffer(this.type,this.buffer)},i.prototype.destroy=function(){s(this)};var d=[];return r.profile&amp;&amp;(e.getTotalBufferSize=function(){var t=0;return Object.keys(p).forEach((function(e){t+=p[e].stats.size})),t}),{create:function(n,a,c,d){function g(e){var n=35044,i=null,a=0,s=0,c=1;return Array.isArray(e)||X(e)||l(e)||e instanceof ArrayBuffer?i=e:&quot;number&quot;==typeof e?a=0|e:e&amp;&amp;(&quot;data&quot;in e&amp;&amp;(i=e.data),&quot;usage&quot;in e&amp;&amp;(n=$[e.usage]),&quot;type&quot;in e&amp;&amp;(s=Q[e.type]),&quot;dimension&quot;in e&amp;&amp;(c=0|e.dimension),&quot;length&quot;in e&amp;&amp;(a=0|e.length)),m.bind(),i?o(m,i,n,s,c,d):(a&amp;&amp;t.bufferData(m.type,a,n),m.dtype=s||5121,m.usage=n,m.dimension=c,m.byteLength=a),r.profile&amp;&amp;(m.stats.size=m.byteLength*rt[m.dtype]),g}e.bufferCount++;var m=new i(a);return p[m.id]=m,c||g(n),g._reglType=&quot;buffer&quot;,g._buffer=m,g.subdata=function(e,r){var n,i=0|(r||0);if(m.bind(),X(e)||e instanceof ArrayBuffer)t.bufferSubData(m.type,i,e);else if(Array.isArray(e)){if(0&lt;e.length)if(&quot;number&quot;==typeof e[0]){var a=Y.allocType(m.dtype,e.length);f(a,e),t.bufferSubData(m.type,i,a),Y.freeType(a)}else(Array.isArray(e[0])||X(e[0]))&amp;&amp;(n=et(e),a=tt(e,n,m.dtype),t.bufferSubData(m.type,i,a),Y.freeType(a))}else if(l(e)){n=e.shape;var o=e.stride,s=a=0,c=0,p=0;1===n.length?(a=n[0],s=1,c=o[0],p=0):2===n.length&amp;&amp;(a=n[0],s=n[1],c=o[0],p=o[1]),n=Array.isArray(e.data)?m.dtype:u(e.data),h(n=Y.allocType(n,a*s),e.data,a,s,c,p,e.offset),t.bufferSubData(m.type,i,n),Y.freeType(n)}return g},r.profile&amp;&amp;(g.stats=m.stats),g.destroy=function(){s(m)},g},createStream:function(t,e){var r=d.pop();return r||(r=new i(t)),r.bind(),o(r,e,35040,0,1,!1),r},destroyStream:function(t){d.push(t)},clear:function(){Z(p).forEach(s),d.forEach(s)},getBuffer:function(t){return t&amp;&amp;t._buffer instanceof i?t._buffer:null},restore:function(){Z(p).forEach((function(e){e.buffer=t.createBuffer(),t.bindBuffer(e.type,e.buffer),t.bufferData(e.type,e.persistentData||e.byteLength,e.usage)}))},_initBuffer:o}}function d(t,e,r,n){function i(t){this.id=c++,s[this.id]=this,this.buffer=t,this.primType=4,this.type=this.vertCount=0}function a(n,i,a,o,s,c,u){var f;if(n.buffer.bind(),i?((f=u)||X(i)&amp;&amp;(!l(i)||X(i.data))||(f=e.oes_element_index_uint?5125:5123),r._initBuffer(n.buffer,i,a,f,3)):(t.bufferData(34963,c,a),n.buffer.dtype=f||5121,n.buffer.usage=a,n.buffer.dimension=3,n.buffer.byteLength=c),f=u,!u){switch(n.buffer.dtype){case 5121:case 5120:f=5121;break;case 5123:case 5122:f=5123;break;case 5125:case 5124:f=5125}n.buffer.dtype=f}n.type=f,0&gt;(i=s)&amp;&amp;(i=n.buffer.byteLength,5123===f?i&gt;&gt;=1:5125===f&amp;&amp;(i&gt;&gt;=2)),n.vertCount=i,i=o,0&gt;o&amp;&amp;(i=4,1===(o=n.buffer.dimension)&amp;&amp;(i=0),2===o&amp;&amp;(i=1),3===o&amp;&amp;(i=4)),n.primType=i}function o(t){n.elementsCount--,delete s[t.id],t.buffer.destroy(),t.buffer=null}var s={},c=0,u={uint8:5121,uint16:5123};e.oes_element_index_uint&amp;&amp;(u.uint32=5125),i.prototype.bind=function(){this.buffer.bind()};var f=[];return{create:function(t,e){function s(t){if(t)if(&quot;number&quot;==typeof t)c(t),f.primType=4,f.vertCount=0|t,f.type=5121;else{var e=null,r=35044,n=-1,i=-1,o=0,h=0;Array.isArray(t)||X(t)||l(t)?e=t:(&quot;data&quot;in t&amp;&amp;(e=t.data),&quot;usage&quot;in t&amp;&amp;(r=$[t.usage]),&quot;primitive&quot;in t&amp;&amp;(n=nt[t.primitive]),&quot;count&quot;in t&amp;&amp;(i=0|t.count),&quot;type&quot;in t&amp;&amp;(h=u[t.type]),&quot;length&quot;in t?o=0|t.length:(o=i,5123===h||5122===h?o*=2:5125!==h&amp;&amp;5124!==h||(o*=4))),a(f,e,r,n,i,o,h)}else c(),f.primType=4,f.vertCount=0,f.type=5121;return s}var c=r.create(null,34963,!0),f=new i(c._buffer);return n.elementsCount++,s(t),s._reglType=&quot;elements&quot;,s._elements=f,s.subdata=function(t,e){return c.subdata(t,e),s},s.destroy=function(){o(f)},s},createStream:function(t){var e=f.pop();return e||(e=new i(r.create(null,34963,!0,!1)._buffer)),a(e,t,35040,-1,-1,0,0),e},destroyStream:function(t){f.push(t)},getElements:function(t){return&quot;function&quot;==typeof t&amp;&amp;t._elements instanceof i?t._elements:null},clear:function(){Z(s).forEach(o)}}}function g(t){for(var e=Y.allocType(5123,t.length),r=0;r&lt;t.length;++r)if(isNaN(t[r]))e[r]=65535;else if(1/0===t[r])e[r]=31744;else if(-1/0===t[r])e[r]=64512;else{it[0]=t[r];var n=(a=at[0])&gt;&gt;&gt;31&lt;&lt;15,i=(a&lt;&lt;1&gt;&gt;&gt;24)-127,a=a&gt;&gt;13&amp;1023;e[r]=-24&gt;i?n:-14&gt;i?n+(a+1024&gt;&gt;-14-i):15&lt;i?n+31744:n+(i+15&lt;&lt;10)+a}return e}function m(t){return Array.isArray(t)||X(t)}function v(t){return&quot;[object &quot;+t+&quot;]&quot;}function y(t){return Array.isArray(t)&amp;&amp;(0===t.length||&quot;number&quot;==typeof t[0])}function x(t){return!(!Array.isArray(t)||0===t.length||!m(t[0]))}function b(t){return Object.prototype.toString.call(t)}function _(t){if(!t)return!1;var e=b(t);return 0&lt;=gt.indexOf(e)||(y(t)||x(t)||l(t))}function w(t,e){36193===t.type?(t.data=g(e),Y.freeType(e)):t.data=e}function T(t,e,r,n,i,a){if(t=&quot;undefined&quot;!=typeof vt[t]?vt[t]:lt[t]*mt[e],a&amp;&amp;(t*=6),i){for(n=0;1&lt;=r;)n+=t*r*r,r/=2;return n}return t*r*n}function k(t,e,r,n,i,a,o){function s(){this.format=this.internalformat=6408,this.type=5121,this.flipY=this.premultiplyAlpha=this.compressed=!1,this.unpackAlignment=1,this.colorSpace=37444,this.channels=this.height=this.width=0}function c(t,e){t.internalformat=e.internalformat,t.format=e.format,t.type=e.type,t.compressed=e.compressed,t.premultiplyAlpha=e.premultiplyAlpha,t.flipY=e.flipY,t.unpackAlignment=e.unpackAlignment,t.colorSpace=e.colorSpace,t.width=e.width,t.height=e.height,t.channels=e.channels}function u(t,e){if(&quot;object&quot;==typeof e&amp;&amp;e){&quot;premultiplyAlpha&quot;in e&amp;&amp;(t.premultiplyAlpha=e.premultiplyAlpha),&quot;flipY&quot;in e&amp;&amp;(t.flipY=e.flipY),&quot;alignment&quot;in e&amp;&amp;(t.unpackAlignment=e.alignment),&quot;colorSpace&quot;in e&amp;&amp;(t.colorSpace=q[e.colorSpace]),&quot;type&quot;in e&amp;&amp;(t.type=H[e.type]);var r=t.width,n=t.height,i=t.channels,a=!1;&quot;shape&quot;in e?(r=e.shape[0],n=e.shape[1],3===e.shape.length&amp;&amp;(i=e.shape[2],a=!0)):(&quot;radius&quot;in e&amp;&amp;(r=n=e.radius),&quot;width&quot;in e&amp;&amp;(r=e.width),&quot;height&quot;in e&amp;&amp;(n=e.height),&quot;channels&quot;in e&amp;&amp;(i=e.channels,a=!0)),t.width=0|r,t.height=0|n,t.channels=0|i,r=!1,&quot;format&quot;in e&amp;&amp;(r=e.format,n=t.internalformat=G[r],t.format=at[n],r in H&amp;&amp;!(&quot;type&quot;in e)&amp;&amp;(t.type=H[r]),r in W&amp;&amp;(t.compressed=!0),r=!0),!a&amp;&amp;r?t.channels=lt[t.format]:a&amp;&amp;!r&amp;&amp;t.channels!==st[t.format]&amp;&amp;(t.format=t.internalformat=st[t.channels])}}function f(e){t.pixelStorei(37440,e.flipY),t.pixelStorei(37441,e.premultiplyAlpha),t.pixelStorei(37443,e.colorSpace),t.pixelStorei(3317,e.unpackAlignment)}function h(){s.call(this),this.yOffset=this.xOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function p(t,e){var r=null;if(_(e)?r=e:e&amp;&amp;(u(t,e),&quot;x&quot;in e&amp;&amp;(t.xOffset=0|e.x),&quot;y&quot;in e&amp;&amp;(t.yOffset=0|e.y),_(e.data)&amp;&amp;(r=e.data)),e.copy){var n=i.viewportWidth,a=i.viewportHeight;t.width=t.width||n-t.xOffset,t.height=t.height||a-t.yOffset,t.needsCopy=!0}else if(r){if(X(r))t.channels=t.channels||4,t.data=r,&quot;type&quot;in e||5121!==t.type||(t.type=0|K[Object.prototype.toString.call(r)]);else if(y(r)){switch(t.channels=t.channels||4,a=(n=r).length,t.type){case 5121:case 5123:case 5125:case 5126:(a=Y.allocType(t.type,a)).set(n),t.data=a;break;case 36193:t.data=g(n)}t.alignment=1,t.needsFree=!0}else if(l(r)){n=r.data,Array.isArray(n)||5121!==t.type||(t.type=0|K[Object.prototype.toString.call(n)]);a=r.shape;var o,s,c,f,h=r.stride;3===a.length?(c=a[2],f=h[2]):f=c=1,o=a[0],s=a[1],a=h[0],h=h[1],t.alignment=1,t.width=o,t.height=s,t.channels=c,t.format=t.internalformat=st[c],t.needsFree=!0,o=f,r=r.offset,c=t.width,f=t.height,s=t.channels;for(var p=Y.allocType(36193===t.type?5126:t.type,c*f*s),d=0,v=0;v&lt;f;++v)for(var T=0;T&lt;c;++T)for(var k=0;k&lt;s;++k)p[d++]=n[a*T+h*v+o*k+r];w(t,p)}else if(b(r)===ct||b(r)===ut||b(r)===ft)b(r)===ct||b(r)===ut?t.element=r:t.element=r.canvas,t.width=t.element.width,t.height=t.element.height,t.channels=4;else if(b(r)===ht)t.element=r,t.width=r.width,t.height=r.height,t.channels=4;else if(b(r)===pt)t.element=r,t.width=r.naturalWidth,t.height=r.naturalHeight,t.channels=4;else if(b(r)===dt)t.element=r,t.width=r.videoWidth,t.height=r.videoHeight,t.channels=4;else if(x(r)){for(n=t.width||r[0].length,a=t.height||r.length,h=t.channels,h=m(r[0][0])?h||r[0][0].length:h||1,o=J.shape(r),c=1,f=0;f&lt;o.length;++f)c*=o[f];c=Y.allocType(36193===t.type?5126:t.type,c),J.flatten(r,o,&quot;&quot;,c),w(t,c),t.alignment=1,t.width=n,t.height=a,t.channels=h,t.format=t.internalformat=st[h],t.needsFree=!0}}else t.width=t.width||1,t.height=t.height||1,t.channels=t.channels||4}function d(e,r,i,a,o){var s=e.element,l=e.data,c=e.internalformat,u=e.format,h=e.type,p=e.width,d=e.height;f(e),s?t.texSubImage2D(r,o,i,a,u,h,s):e.compressed?t.compressedTexSubImage2D(r,o,i,a,c,p,d,l):e.needsCopy?(n(),t.copyTexSubImage2D(r,o,i,a,e.xOffset,e.yOffset,p,d)):t.texSubImage2D(r,o,i,a,p,d,u,h,l)}function v(){return gt.pop()||new h}function k(t){t.needsFree&amp;&amp;Y.freeType(t.data),h.call(t),gt.push(t)}function M(){s.call(this),this.genMipmaps=!1,this.mipmapHint=4352,this.mipmask=0,this.images=Array(16)}function A(t,e,r){var n=t.images[0]=v();t.mipmask=1,n.width=t.width=e,n.height=t.height=r,n.channels=t.channels=4}function S(t,e){var r=null;if(_(e))c(r=t.images[0]=v(),t),p(r,e),t.mipmask=1;else if(u(t,e),Array.isArray(e.mipmap))for(var n=e.mipmap,i=0;i&lt;n.length;++i)c(r=t.images[i]=v(),t),r.width&gt;&gt;=i,r.height&gt;&gt;=i,p(r,n[i]),t.mipmask|=1&lt;&lt;i;else c(r=t.images[0]=v(),t),p(r,e),t.mipmask=1;c(t,t.images[0])}function E(e,r){for(var i=e.images,a=0;a&lt;i.length&amp;&amp;i[a];++a){var o=i[a],s=r,l=a,c=o.element,u=o.data,h=o.internalformat,p=o.format,d=o.type,g=o.width,m=o.height;f(o),c?t.texImage2D(s,l,p,p,d,c):o.compressed?t.compressedTexImage2D(s,l,h,g,m,0,u):o.needsCopy?(n(),t.copyTexImage2D(s,l,p,o.xOffset,o.yOffset,g,m,0)):t.texImage2D(s,l,p,g,m,0,p,d,u||null)}}function C(){var t=mt.pop()||new M;s.call(t);for(var e=t.mipmask=0;16&gt;e;++e)t.images[e]=null;return t}function L(t){for(var e=t.images,r=0;r&lt;e.length;++r)e[r]&amp;&amp;k(e[r]),e[r]=null;mt.push(t)}function I(){this.magFilter=this.minFilter=9728,this.wrapT=this.wrapS=33071,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=4352}function P(t,e){&quot;min&quot;in e&amp;&amp;(t.minFilter=V[e.min],0&lt;=ot.indexOf(t.minFilter)&amp;&amp;!(&quot;faces&quot;in e)&amp;&amp;(t.genMipmaps=!0)),&quot;mag&quot;in e&amp;&amp;(t.magFilter=j[e.mag]);var r=t.wrapS,n=t.wrapT;if(&quot;wrap&quot;in e){var i=e.wrap;&quot;string&quot;==typeof i?r=n=N[i]:Array.isArray(i)&amp;&amp;(r=N[i[0]],n=N[i[1]])}else&quot;wrapS&quot;in e&amp;&amp;(r=N[e.wrapS]),&quot;wrapT&quot;in e&amp;&amp;(n=N[e.wrapT]);if(t.wrapS=r,t.wrapT=n,&quot;anisotropic&quot;in e&amp;&amp;(t.anisotropic=e.anisotropic),&quot;mipmap&quot;in e){switch(r=!1,typeof e.mipmap){case&quot;string&quot;:t.mipmapHint=B[e.mipmap],r=t.genMipmaps=!0;break;case&quot;boolean&quot;:r=t.genMipmaps=e.mipmap;break;case&quot;object&quot;:t.genMipmaps=!1,r=!0}!r||&quot;min&quot;in e||(t.minFilter=9984)}}function z(r,n){t.texParameteri(n,10241,r.minFilter),t.texParameteri(n,10240,r.magFilter),t.texParameteri(n,10242,r.wrapS),t.texParameteri(n,10243,r.wrapT),e.ext_texture_filter_anisotropic&amp;&amp;t.texParameteri(n,34046,r.anisotropic),r.genMipmaps&amp;&amp;(t.hint(33170,r.mipmapHint),t.generateMipmap(n))}function O(e){s.call(this),this.mipmask=0,this.internalformat=6408,this.id=vt++,this.refCount=1,this.target=e,this.texture=t.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new I,o.profile&amp;&amp;(this.stats={size:0})}function D(e){t.activeTexture(33984),t.bindTexture(e.target,e.texture)}function R(){var e=bt[0];e?t.bindTexture(e.target,e.texture):t.bindTexture(3553,null)}function F(e){var r=e.texture,n=e.unit,i=e.target;0&lt;=n&amp;&amp;(t.activeTexture(33984+n),t.bindTexture(i,null),bt[n]=null),t.deleteTexture(r),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete yt[e.id],a.textureCount--}var B={&quot;don't care&quot;:4352,&quot;dont care&quot;:4352,nice:4354,fast:4353},N={repeat:10497,clamp:33071,mirror:33648},j={nearest:9728,linear:9729},V=U({mipmap:9987,&quot;nearest mipmap nearest&quot;:9984,&quot;linear mipmap nearest&quot;:9985,&quot;nearest mipmap linear&quot;:9986,&quot;linear mipmap linear&quot;:9987},j),q={none:0,browser:37444},H={uint8:5121,rgba4:32819,rgb565:33635,&quot;rgb5 a1&quot;:32820},G={alpha:6406,luminance:6409,&quot;luminance alpha&quot;:6410,rgb:6407,rgba:6408,rgba4:32854,&quot;rgb5 a1&quot;:32855,rgb565:36194},W={};e.ext_srgb&amp;&amp;(G.srgb=35904,G.srgba=35906),e.oes_texture_float&amp;&amp;(H.float32=H.float=5126),e.oes_texture_half_float&amp;&amp;(H.float16=H[&quot;half float&quot;]=36193),e.webgl_depth_texture&amp;&amp;(U(G,{depth:6402,&quot;depth stencil&quot;:34041}),U(H,{uint16:5123,uint32:5125,&quot;depth stencil&quot;:34042})),e.webgl_compressed_texture_s3tc&amp;&amp;U(W,{&quot;rgb s3tc dxt1&quot;:33776,&quot;rgba s3tc dxt1&quot;:33777,&quot;rgba s3tc dxt3&quot;:33778,&quot;rgba s3tc dxt5&quot;:33779}),e.webgl_compressed_texture_atc&amp;&amp;U(W,{&quot;rgb atc&quot;:35986,&quot;rgba atc explicit alpha&quot;:35987,&quot;rgba atc interpolated alpha&quot;:34798}),e.webgl_compressed_texture_pvrtc&amp;&amp;U(W,{&quot;rgb pvrtc 4bppv1&quot;:35840,&quot;rgb pvrtc 2bppv1&quot;:35841,&quot;rgba pvrtc 4bppv1&quot;:35842,&quot;rgba pvrtc 2bppv1&quot;:35843}),e.webgl_compressed_texture_etc1&amp;&amp;(W[&quot;rgb etc1&quot;]=36196);var Q=Array.prototype.slice.call(t.getParameter(34467));Object.keys(W).forEach((function(t){var e=W[t];0&lt;=Q.indexOf(e)&amp;&amp;(G[t]=e)}));var $=Object.keys(G);r.textureFormats=$;var tt=[];Object.keys(G).forEach((function(t){tt[G[t]]=t}));var et=[];Object.keys(H).forEach((function(t){et[H[t]]=t}));var rt=[];Object.keys(j).forEach((function(t){rt[j[t]]=t}));var nt=[];Object.keys(V).forEach((function(t){nt[V[t]]=t}));var it=[];Object.keys(N).forEach((function(t){it[N[t]]=t}));var at=$.reduce((function(t,r){var n=G[r];return 6409===n||6406===n||6409===n||6410===n||6402===n||34041===n||e.ext_srgb&amp;&amp;(35904===n||35906===n)?t[n]=n:32855===n||0&lt;=r.indexOf(&quot;rgba&quot;)?t[n]=6408:t[n]=6407,t}),{}),gt=[],mt=[],vt=0,yt={},xt=r.maxTextureUnits,bt=Array(xt).map((function(){return null}));return U(O.prototype,{bind:function(){this.bindCount+=1;var e=this.unit;if(0&gt;e){for(var r=0;r&lt;xt;++r){var n=bt[r];if(n){if(0&lt;n.bindCount)continue;n.unit=-1}bt[r]=this,e=r;break}o.profile&amp;&amp;a.maxTextureUnits&lt;e+1&amp;&amp;(a.maxTextureUnits=e+1),this.unit=e,t.activeTexture(33984+e),t.bindTexture(this.target,this.texture)}return e},unbind:function(){--this.bindCount},decRef:function(){0&gt;=--this.refCount&amp;&amp;F(this)}}),o.profile&amp;&amp;(a.getTotalTextureSize=function(){var t=0;return Object.keys(yt).forEach((function(e){t+=yt[e].stats.size})),t}),{create2D:function(e,r){function n(t,e){var r=i.texInfo;I.call(r);var a=C();return&quot;number&quot;==typeof t?A(a,0|t,&quot;number&quot;==typeof e?0|e:0|t):t?(P(r,t),S(a,t)):A(a,1,1),r.genMipmaps&amp;&amp;(a.mipmask=(a.width&lt;&lt;1)-1),i.mipmask=a.mipmask,c(i,a),i.internalformat=a.internalformat,n.width=a.width,n.height=a.height,D(i),E(a,3553),z(r,3553),R(),L(a),o.profile&amp;&amp;(i.stats.size=T(i.internalformat,i.type,a.width,a.height,r.genMipmaps,!1)),n.format=tt[i.internalformat],n.type=et[i.type],n.mag=rt[r.magFilter],n.min=nt[r.minFilter],n.wrapS=it[r.wrapS],n.wrapT=it[r.wrapT],n}var i=new O(3553);return yt[i.id]=i,a.textureCount++,n(e,r),n.subimage=function(t,e,r,a){e|=0,r|=0,a|=0;var o=v();return c(o,i),o.width=0,o.height=0,p(o,t),o.width=o.width||(i.width&gt;&gt;a)-e,o.height=o.height||(i.height&gt;&gt;a)-r,D(i),d(o,3553,e,r,a),R(),k(o),n},n.resize=function(e,r){var a=0|e,s=0|r||a;if(a===i.width&amp;&amp;s===i.height)return n;n.width=i.width=a,n.height=i.height=s,D(i);for(var l=0;i.mipmask&gt;&gt;l;++l){var c=a&gt;&gt;l,u=s&gt;&gt;l;if(!c||!u)break;t.texImage2D(3553,l,i.format,c,u,0,i.format,i.type,null)}return R(),o.profile&amp;&amp;(i.stats.size=T(i.internalformat,i.type,a,s,!1,!1)),n},n._reglType=&quot;texture2d&quot;,n._texture=i,o.profile&amp;&amp;(n.stats=i.stats),n.destroy=function(){i.decRef()},n},createCube:function(e,r,n,i,s,l){function f(t,e,r,n,i,a){var s,l=h.texInfo;for(I.call(l),s=0;6&gt;s;++s)g[s]=C();if(&quot;number&quot;!=typeof t&amp;&amp;t){if(&quot;object&quot;==typeof t)if(e)S(g[0],t),S(g[1],e),S(g[2],r),S(g[3],n),S(g[4],i),S(g[5],a);else if(P(l,t),u(h,t),&quot;faces&quot;in t)for(t=t.faces,s=0;6&gt;s;++s)c(g[s],h),S(g[s],t[s]);else for(s=0;6&gt;s;++s)S(g[s],t)}else for(t=0|t||1,s=0;6&gt;s;++s)A(g[s],t,t);for(c(h,g[0]),h.mipmask=l.genMipmaps?(g[0].width&lt;&lt;1)-1:g[0].mipmask,h.internalformat=g[0].internalformat,f.width=g[0].width,f.height=g[0].height,D(h),s=0;6&gt;s;++s)E(g[s],34069+s);for(z(l,34067),R(),o.profile&amp;&amp;(h.stats.size=T(h.internalformat,h.type,f.width,f.height,l.genMipmaps,!0)),f.format=tt[h.internalformat],f.type=et[h.type],f.mag=rt[l.magFilter],f.min=nt[l.minFilter],f.wrapS=it[l.wrapS],f.wrapT=it[l.wrapT],s=0;6&gt;s;++s)L(g[s]);return f}var h=new O(34067);yt[h.id]=h,a.cubeCount++;var g=Array(6);return f(e,r,n,i,s,l),f.subimage=function(t,e,r,n,i){r|=0,n|=0,i|=0;var a=v();return c(a,h),a.width=0,a.height=0,p(a,e),a.width=a.width||(h.width&gt;&gt;i)-r,a.height=a.height||(h.height&gt;&gt;i)-n,D(h),d(a,34069+t,r,n,i),R(),k(a),f},f.resize=function(e){if((e|=0)!==h.width){f.width=h.width=e,f.height=h.height=e,D(h);for(var r=0;6&gt;r;++r)for(var n=0;h.mipmask&gt;&gt;n;++n)t.texImage2D(34069+r,n,h.format,e&gt;&gt;n,e&gt;&gt;n,0,h.format,h.type,null);return R(),o.profile&amp;&amp;(h.stats.size=T(h.internalformat,h.type,f.width,f.height,!1,!0)),f}},f._reglType=&quot;textureCube&quot;,f._texture=h,o.profile&amp;&amp;(f.stats=h.stats),f.destroy=function(){h.decRef()},f},clear:function(){for(var e=0;e&lt;xt;++e)t.activeTexture(33984+e),t.bindTexture(3553,null),bt[e]=null;Z(yt).forEach(F),a.cubeCount=0,a.textureCount=0},getTexture:function(t){return null},restore:function(){for(var e=0;e&lt;xt;++e){var r=bt[e];r&amp;&amp;(r.bindCount=0,r.unit=-1,bt[e]=null)}Z(yt).forEach((function(e){e.texture=t.createTexture(),t.bindTexture(e.target,e.texture);for(var r=0;32&gt;r;++r)if(0!=(e.mipmask&amp;1&lt;&lt;r))if(3553===e.target)t.texImage2D(3553,r,e.internalformat,e.width&gt;&gt;r,e.height&gt;&gt;r,0,e.internalformat,e.type,null);else for(var n=0;6&gt;n;++n)t.texImage2D(34069+n,r,e.internalformat,e.width&gt;&gt;r,e.height&gt;&gt;r,0,e.internalformat,e.type,null);z(e.texInfo,e.target)}))}}}function M(t,e,r,n,i,a){function o(t,e,r){this.target=t,this.texture=e,this.renderbuffer=r;var n=t=0;e?(t=e.width,n=e.height):r&amp;&amp;(t=r.width,n=r.height),this.width=t,this.height=n}function s(t){t&amp;&amp;(t.texture&amp;&amp;t.texture._texture.decRef(),t.renderbuffer&amp;&amp;t.renderbuffer._renderbuffer.decRef())}function l(t,e,r){t&amp;&amp;(t.texture?t.texture._texture.refCount+=1:t.renderbuffer._renderbuffer.refCount+=1)}function c(e,r){r&amp;&amp;(r.texture?t.framebufferTexture2D(36160,e,r.target,r.texture._texture.texture,0):t.framebufferRenderbuffer(36160,e,36161,r.renderbuffer._renderbuffer.renderbuffer))}function u(t){var e=3553,r=null,n=null,i=t;return&quot;object&quot;==typeof t&amp;&amp;(i=t.data,&quot;target&quot;in t&amp;&amp;(e=0|t.target)),&quot;texture2d&quot;===(t=i._reglType)||&quot;textureCube&quot;===t?r=i:&quot;renderbuffer&quot;===t&amp;&amp;(n=i,e=36161),new o(e,r,n)}function f(t,e,r,a,s){return r?((t=n.create2D({width:t,height:e,format:a,type:s}))._texture.refCount=0,new o(3553,t,null)):((t=i.create({width:t,height:e,format:a}))._renderbuffer.refCount=0,new o(36161,null,t))}function h(t){return t&amp;&amp;(t.texture||t.renderbuffer)}function p(t,e,r){t&amp;&amp;(t.texture?t.texture.resize(e,r):t.renderbuffer&amp;&amp;t.renderbuffer.resize(e,r),t.width=e,t.height=r)}function d(){this.id=T++,k[this.id]=this,this.framebuffer=t.createFramebuffer(),this.height=this.width=0,this.colorAttachments=[],this.depthStencilAttachment=this.stencilAttachment=this.depthAttachment=null}function g(t){t.colorAttachments.forEach(s),s(t.depthAttachment),s(t.stencilAttachment),s(t.depthStencilAttachment)}function m(e){t.deleteFramebuffer(e.framebuffer),e.framebuffer=null,a.framebufferCount--,delete k[e.id]}function v(e){var n;t.bindFramebuffer(36160,e.framebuffer);var i=e.colorAttachments;for(n=0;n&lt;i.length;++n)c(36064+n,i[n]);for(n=i.length;n&lt;r.maxColorAttachments;++n)t.framebufferTexture2D(36160,36064+n,3553,null,0);t.framebufferTexture2D(36160,33306,3553,null,0),t.framebufferTexture2D(36160,36096,3553,null,0),t.framebufferTexture2D(36160,36128,3553,null,0),c(36096,e.depthAttachment),c(36128,e.stencilAttachment),c(33306,e.depthStencilAttachment),t.checkFramebufferStatus(36160),t.isContextLost(),t.bindFramebuffer(36160,x.next?x.next.framebuffer:null),x.cur=x.next,t.getError()}function y(t,e){function r(t,e){var i,a=0,o=0,s=!0,c=!0;i=null;var p=!0,d=&quot;rgba&quot;,m=&quot;uint8&quot;,y=1,x=null,w=null,T=null,k=!1;&quot;number&quot;==typeof t?(a=0|t,o=0|e||a):t?(&quot;shape&quot;in t?(a=(o=t.shape)[0],o=o[1]):(&quot;radius&quot;in t&amp;&amp;(a=o=t.radius),&quot;width&quot;in t&amp;&amp;(a=t.width),&quot;height&quot;in t&amp;&amp;(o=t.height)),(&quot;color&quot;in t||&quot;colors&quot;in t)&amp;&amp;(i=t.color||t.colors,Array.isArray(i)),i||(&quot;colorCount&quot;in t&amp;&amp;(y=0|t.colorCount),&quot;colorTexture&quot;in t&amp;&amp;(p=!!t.colorTexture,d=&quot;rgba4&quot;),&quot;colorType&quot;in t&amp;&amp;(m=t.colorType,!p)&amp;&amp;(&quot;half float&quot;===m||&quot;float16&quot;===m?d=&quot;rgba16f&quot;:&quot;float&quot;!==m&amp;&amp;&quot;float32&quot;!==m||(d=&quot;rgba32f&quot;)),&quot;colorFormat&quot;in t&amp;&amp;(d=t.colorFormat,0&lt;=b.indexOf(d)?p=!0:0&lt;=_.indexOf(d)&amp;&amp;(p=!1))),(&quot;depthTexture&quot;in t||&quot;depthStencilTexture&quot;in t)&amp;&amp;(k=!(!t.depthTexture&amp;&amp;!t.depthStencilTexture)),&quot;depth&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.depth?s=t.depth:(x=t.depth,c=!1)),&quot;stencil&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.stencil?c=t.stencil:(w=t.stencil,s=!1)),&quot;depthStencil&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.depthStencil?s=c=t.depthStencil:(T=t.depthStencil,c=s=!1))):a=o=1;var M=null,A=null,S=null,E=null;if(Array.isArray(i))M=i.map(u);else if(i)M=[u(i)];else for(M=Array(y),i=0;i&lt;y;++i)M[i]=f(a,o,p,d,m);for(a=a||M[0].width,o=o||M[0].height,x?A=u(x):s&amp;&amp;!c&amp;&amp;(A=f(a,o,k,&quot;depth&quot;,&quot;uint32&quot;)),w?S=u(w):c&amp;&amp;!s&amp;&amp;(S=f(a,o,!1,&quot;stencil&quot;,&quot;uint8&quot;)),T?E=u(T):!x&amp;&amp;!w&amp;&amp;c&amp;&amp;s&amp;&amp;(E=f(a,o,k,&quot;depth stencil&quot;,&quot;depth stencil&quot;)),s=null,i=0;i&lt;M.length;++i)l(M[i]),M[i]&amp;&amp;M[i].texture&amp;&amp;(c=bt[M[i].texture._texture.format]*_t[M[i].texture._texture.type],null===s&amp;&amp;(s=c));return l(A),l(S),l(E),g(n),n.width=a,n.height=o,n.colorAttachments=M,n.depthAttachment=A,n.stencilAttachment=S,n.depthStencilAttachment=E,r.color=M.map(h),r.depth=h(A),r.stencil=h(S),r.depthStencil=h(E),r.width=n.width,r.height=n.height,v(n),r}var n=new d;return a.framebufferCount++,r(t,e),U(r,{resize:function(t,e){var i=Math.max(0|t,1),a=Math.max(0|e||i,1);if(i===n.width&amp;&amp;a===n.height)return r;for(var o=n.colorAttachments,s=0;s&lt;o.length;++s)p(o[s],i,a);return p(n.depthAttachment,i,a),p(n.stencilAttachment,i,a),p(n.depthStencilAttachment,i,a),n.width=r.width=i,n.height=r.height=a,v(n),r},_reglType:&quot;framebuffer&quot;,_framebuffer:n,destroy:function(){m(n),g(n)},use:function(t){x.setFBO({framebuffer:r},t)}})}var x={cur:null,next:null,dirty:!1,setFBO:null},b=[&quot;rgba&quot;],_=[&quot;rgba4&quot;,&quot;rgb565&quot;,&quot;rgb5 a1&quot;];e.ext_srgb&amp;&amp;_.push(&quot;srgba&quot;),e.ext_color_buffer_half_float&amp;&amp;_.push(&quot;rgba16f&quot;,&quot;rgb16f&quot;),e.webgl_color_buffer_float&amp;&amp;_.push(&quot;rgba32f&quot;);var w=[&quot;uint8&quot;];e.oes_texture_half_float&amp;&amp;w.push(&quot;half float&quot;,&quot;float16&quot;),e.oes_texture_float&amp;&amp;w.push(&quot;float&quot;,&quot;float32&quot;);var T=0,k={};return U(x,{getFramebuffer:function(t){return&quot;function&quot;==typeof t&amp;&amp;&quot;framebuffer&quot;===t._reglType&amp;&amp;(t=t._framebuffer)instanceof d?t:null},create:y,createCube:function(t){function e(t){var i,a={color:null},o=0,s=null;i=&quot;rgba&quot;;var l=&quot;uint8&quot;,c=1;if(&quot;number&quot;==typeof t?o=0|t:t?(&quot;shape&quot;in t?o=t.shape[0]:(&quot;radius&quot;in t&amp;&amp;(o=0|t.radius),&quot;width&quot;in t?o=0|t.width:&quot;height&quot;in t&amp;&amp;(o=0|t.height)),(&quot;color&quot;in t||&quot;colors&quot;in t)&amp;&amp;(s=t.color||t.colors,Array.isArray(s)),s||(&quot;colorCount&quot;in t&amp;&amp;(c=0|t.colorCount),&quot;colorType&quot;in t&amp;&amp;(l=t.colorType),&quot;colorFormat&quot;in t&amp;&amp;(i=t.colorFormat)),&quot;depth&quot;in t&amp;&amp;(a.depth=t.depth),&quot;stencil&quot;in t&amp;&amp;(a.stencil=t.stencil),&quot;depthStencil&quot;in t&amp;&amp;(a.depthStencil=t.depthStencil)):o=1,s)if(Array.isArray(s))for(t=[],i=0;i&lt;s.length;++i)t[i]=s[i];else t=[s];else for(t=Array(c),s={radius:o,format:i,type:l},i=0;i&lt;c;++i)t[i]=n.createCube(s);for(a.color=Array(t.length),i=0;i&lt;t.length;++i)c=t[i],o=o||c.width,a.color[i]={target:34069,data:t[i]};for(i=0;6&gt;i;++i){for(c=0;c&lt;t.length;++c)a.color[c].target=34069+i;0&lt;i&amp;&amp;(a.depth=r[0].depth,a.stencil=r[0].stencil,a.depthStencil=r[0].depthStencil),r[i]?r[i](a):r[i]=y(a)}return U(e,{width:o,height:o,color:t})}var r=Array(6);return e(t),U(e,{faces:r,resize:function(t){var n=0|t;if(n===e.width)return e;var i=e.color;for(t=0;t&lt;i.length;++t)i[t].resize(n);for(t=0;6&gt;t;++t)r[t].resize(n);return e.width=e.height=n,e},_reglType:&quot;framebufferCube&quot;,destroy:function(){r.forEach((function(t){t.destroy()}))}})},clear:function(){Z(k).forEach(m)},restore:function(){x.cur=null,x.next=null,x.dirty=!0,Z(k).forEach((function(e){e.framebuffer=t.createFramebuffer(),v(e)}))}})}function A(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function S(t,e,r,n,i){function a(){this.id=++c,this.attributes=[];var t=e.oes_vertex_array_object;this.vao=t?t.createVertexArrayOES():null,u[this.id]=this,this.buffers=[]}var o=r.maxAttributes,s=Array(o);for(r=0;r&lt;o;++r)s[r]=new A;var c=0,u={},f={Record:A,scope:{},state:s,currentVAO:null,targetVAO:null,restore:e.oes_vertex_array_object?function(){e.oes_vertex_array_object&amp;&amp;Z(u).forEach((function(t){t.refresh()}))}:function(){},createVAO:function(t){function e(t){for(var n=0;n&lt;r.buffers.length;++n)r.buffers[n].destroy();r.buffers.length=0,(n=r.attributes).length=t.length;for(var a=0;a&lt;t.length;++a){var o=t[a],s=n[a]=new A;Array.isArray(o)||X(o)||l(o)?(o=i.create(o,34962,!1,!0),s.buffer=i.getBuffer(o),s.size=0|s.buffer.dimension,s.normalized=!1,s.type=s.buffer.dtype,s.offset=0,s.stride=0,s.divisor=0,s.state=1,r.buffers.push(o)):i.getBuffer(o)?(s.buffer=i.getBuffer(o),s.size=0|s.buffer.dimension,s.normalized=!1,s.type=s.buffer.dtype,s.offset=0,s.stride=0,s.divisor=0,s.state=1):i.getBuffer(o.buffer)?(s.buffer=i.getBuffer(o.buffer),s.size=0|(+o.size||s.buffer.dimension),s.normalized=!!o.normalized||!1,s.type=&quot;type&quot;in o?Q[o.type]:s.buffer.dtype,s.offset=0|(o.offset||0),s.stride=0|(o.stride||0),s.divisor=0|(o.divisor||0),s.state=1):&quot;x&quot;in o&amp;&amp;(s.x=+o.x||0,s.y=+o.y||0,s.z=+o.z||0,s.w=+o.w||0,s.state=2)}return r.refresh(),e}var r=new a;return n.vaoCount+=1,e.destroy=function(){r.destroy()},e._vao=r,e._reglType=&quot;vao&quot;,e(t)},getVAO:function(t){return&quot;function&quot;==typeof t&amp;&amp;t._vao?t._vao:null},destroyBuffer:function(e){for(var r=0;r&lt;s.length;++r){var n=s[r];n.buffer===e&amp;&amp;(t.disableVertexAttribArray(r),n.buffer=null)}},setVAO:e.oes_vertex_array_object?function(t){if(t!==f.currentVAO){var r=e.oes_vertex_array_object;t?r.bindVertexArrayOES(t.vao):r.bindVertexArrayOES(null),f.currentVAO=t}}:function(r){if(r!==f.currentVAO){if(r)r.bindAttrs();else for(var n=e.angle_instanced_arrays,i=0;i&lt;s.length;++i){var a=s[i];a.buffer?(t.enableVertexAttribArray(i),t.vertexAttribPointer(i,a.size,a.type,a.normalized,a.stride,a.offfset),n&amp;&amp;n.vertexAttribDivisorANGLE(i,a.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,a.x,a.y,a.z,a.w))}f.currentVAO=r}},clear:e.oes_vertex_array_object?function(){Z(u).forEach((function(t){t.destroy()}))}:function(){}};return a.prototype.bindAttrs=function(){for(var r=e.angle_instanced_arrays,n=this.attributes,i=0;i&lt;n.length;++i){var a=n[i];a.buffer?(t.enableVertexAttribArray(i),t.bindBuffer(34962,a.buffer.buffer),t.vertexAttribPointer(i,a.size,a.type,a.normalized,a.stride,a.offset),r&amp;&amp;r.vertexAttribDivisorANGLE(i,a.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,a.x,a.y,a.z,a.w))}for(r=n.length;r&lt;o;++r)t.disableVertexAttribArray(r)},a.prototype.refresh=function(){var t=e.oes_vertex_array_object;t&amp;&amp;(t.bindVertexArrayOES(this.vao),this.bindAttrs(),f.currentVAO=this)},a.prototype.destroy=function(){if(this.vao){var t=e.oes_vertex_array_object;this===f.currentVAO&amp;&amp;(f.currentVAO=null,t.bindVertexArrayOES(null)),t.deleteVertexArrayOES(this.vao),this.vao=null}u[this.id]&amp;&amp;(delete u[this.id],--n.vaoCount)},f}function E(t,e,r,n){function i(t,e,r,n){this.name=t,this.id=e,this.location=r,this.info=n}function a(t,e){for(var r=0;r&lt;t.length;++r)if(t[r].id===e.id)return void(t[r].location=e.location);t.push(e)}function o(r,n,i){if(!(o=(i=35632===r?c:u)[n])){var a=e.str(n),o=t.createShader(r);t.shaderSource(o,a),t.compileShader(o),i[n]=o}return o}function s(t,e){this.id=p++,this.fragId=t,this.vertId=e,this.program=null,this.uniforms=[],this.attributes=[],n.profile&amp;&amp;(this.stats={uniformsCount:0,attributesCount:0})}function l(r,s,l){var c;c=o(35632,r.fragId);var u=o(35633,r.vertId);if(s=r.program=t.createProgram(),t.attachShader(s,c),t.attachShader(s,u),l)for(c=0;c&lt;l.length;++c)u=l[c],t.bindAttribLocation(s,u[0],u[1]);t.linkProgram(s),u=t.getProgramParameter(s,35718),n.profile&amp;&amp;(r.stats.uniformsCount=u);var f=r.uniforms;for(c=0;c&lt;u;++c)if(l=t.getActiveUniform(s,c))if(1&lt;l.size)for(var h=0;h&lt;l.size;++h){var p=l.name.replace(&quot;[0]&quot;,&quot;[&quot;+h+&quot;]&quot;);a(f,new i(p,e.id(p),t.getUniformLocation(s,p),l))}else a(f,new i(l.name,e.id(l.name),t.getUniformLocation(s,l.name),l));for(u=t.getProgramParameter(s,35721),n.profile&amp;&amp;(r.stats.attributesCount=u),r=r.attributes,c=0;c&lt;u;++c)(l=t.getActiveAttrib(s,c))&amp;&amp;a(r,new i(l.name,e.id(l.name),t.getAttribLocation(s,l.name),l))}var c={},u={},f={},h=[],p=0;return n.profile&amp;&amp;(r.getMaxUniformsCount=function(){var t=0;return h.forEach((function(e){e.stats.uniformsCount&gt;t&amp;&amp;(t=e.stats.uniformsCount)})),t},r.getMaxAttributesCount=function(){var t=0;return h.forEach((function(e){e.stats.attributesCount&gt;t&amp;&amp;(t=e.stats.attributesCount)})),t}),{clear:function(){var e=t.deleteShader.bind(t);Z(c).forEach(e),c={},Z(u).forEach(e),u={},h.forEach((function(e){t.deleteProgram(e.program)})),h.length=0,f={},r.shaderCount=0},program:function(t,e,n,i){var a=f[e];a||(a=f[e]={});var o=a[t];return o&amp;&amp;!i?o:(e=new s(e,t),r.shaderCount++,l(e,n,i),o||(a[t]=e),h.push(e),e)},restore:function(){c={},u={};for(var t=0;t&lt;h.length;++t)l(h[t],null,h[t].attributes.map((function(t){return[t.location,t.name]})))},shader:o,frag:-1,vert:-1}}function C(t,e,r,n,i,a,o){function s(i){var a;a=null===e.next?5121:e.next.colorAttachments[0].texture._texture.type;var o=0,s=0,l=n.framebufferWidth,c=n.framebufferHeight,u=null;return X(i)?u=i:i&amp;&amp;(o=0|i.x,s=0|i.y,l=0|(i.width||n.framebufferWidth-o),c=0|(i.height||n.framebufferHeight-s),u=i.data||null),r(),i=l*c*4,u||(5121===a?u=new Uint8Array(i):5126===a&amp;&amp;(u=u||new Float32Array(i))),t.pixelStorei(3333,4),t.readPixels(o,s,l,c,6408,a,u),u}return function(t){return t&amp;&amp;&quot;framebuffer&quot;in t?function(t){var r;return e.setFBO({framebuffer:t.framebuffer},(function(){r=s(t)})),r}(t):s(t)}}function L(t){return Array.prototype.slice.call(t)}function I(t){return L(t).join(&quot;&quot;)}function P(){function t(){var t=[],e=[];return U((function(){t.push.apply(t,L(arguments))}),{def:function(){var n=&quot;v&quot;+r++;return e.push(n),0&lt;arguments.length&amp;&amp;(t.push(n,&quot;=&quot;),t.push.apply(t,L(arguments)),t.push(&quot;;&quot;)),n},toString:function(){return I([0&lt;e.length?&quot;var &quot;+e.join(&quot;,&quot;)+&quot;;&quot;:&quot;&quot;,I(t)])}})}function e(){function e(t,e){n(t,e,&quot;=&quot;,r.def(t,e),&quot;;&quot;)}var r=t(),n=t(),i=r.toString,a=n.toString;return U((function(){r.apply(r,L(arguments))}),{def:r.def,entry:r,exit:n,save:e,set:function(t,n,i){e(t,n),r(t,n,&quot;=&quot;,i,&quot;;&quot;)},toString:function(){return i()+a()}})}var r=0,n=[],i=[],a=t(),o={};return{global:a,link:function(t){for(var e=0;e&lt;i.length;++e)if(i[e]===t)return n[e];return e=&quot;g&quot;+r++,n.push(e),i.push(t),e},block:t,proc:function(t,r){function n(){var t=&quot;a&quot;+i.length;return i.push(t),t}var i=[];r=r||0;for(var a=0;a&lt;r;++a)n();var s=(a=e()).toString;return o[t]=U(a,{arg:n,toString:function(){return I([&quot;function(&quot;,i.join(),&quot;){&quot;,s(),&quot;}&quot;])}})},scope:e,cond:function(){var t=I(arguments),r=e(),n=e(),i=r.toString,a=n.toString;return U(r,{then:function(){return r.apply(r,L(arguments)),this},else:function(){return n.apply(n,L(arguments)),this},toString:function(){var e=a();return e&amp;&amp;(e=&quot;else{&quot;+e+&quot;}&quot;),I([&quot;if(&quot;,t,&quot;){&quot;,i(),&quot;}&quot;,e])}})},compile:function(){var t=['&quot;use strict&quot;;',a,&quot;return {&quot;];Object.keys(o).forEach((function(e){t.push('&quot;',e,'&quot;:',o[e].toString(),&quot;,&quot;)})),t.push(&quot;}&quot;);var e=I(t).replace(/;/g,&quot;;\n&quot;).replace(/}/g,&quot;}\n&quot;).replace(/{/g,&quot;{\n&quot;);return Function.apply(null,n.concat(e)).apply(null,i)}}}function z(t){return Array.isArray(t)||X(t)||l(t)}function O(t){return t.sort((function(t,e){return&quot;viewport&quot;===t?-1:&quot;viewport&quot;===e?1:t&lt;e?-1:1}))}function D(t,e,r,n){this.thisDep=t,this.contextDep=e,this.propDep=r,this.append=n}function R(t){return t&amp;&amp;!(t.thisDep||t.contextDep||t.propDep)}function F(t){return new D(!1,!1,!1,t)}function B(t,e){var r=t.type;return 0===r?new D(!0,1&lt;=(r=t.data.length),2&lt;=r,e):4===r?new D((r=t.data).thisDep,r.contextDep,r.propDep,e):new D(3===r,2===r,1===r,e)}function N(t,e,r,n,i,o,s,l,c,u,f,h,p,d,g){function v(t){return t.replace(&quot;.&quot;,&quot;_&quot;)}function y(t,e,r){var n=v(t);rt.push(t),et[n]=tt[n]=!!r,it[n]=e}function x(t,e,r){var n=v(t);rt.push(t),Array.isArray(r)?(tt[n]=r.slice(),et[n]=r.slice()):tt[n]=et[n]=r,at[n]=e}function b(){var t=P(),r=t.link,n=t.global;t.id=lt++,t.batchId=&quot;0&quot;;var i=r(ot),a=t.shared={props:&quot;a0&quot;};Object.keys(ot).forEach((function(t){a[t]=n.def(i,&quot;.&quot;,t)}));var o=t.next={},s=t.current={};Object.keys(at).forEach((function(t){Array.isArray(tt[t])&amp;&amp;(o[t]=n.def(a.next,&quot;.&quot;,t),s[t]=n.def(a.current,&quot;.&quot;,t))}));var l=t.constants={};Object.keys(st).forEach((function(t){l[t]=n.def(JSON.stringify(st[t]))})),t.invoke=function(e,n){switch(n.type){case 0:var i=[&quot;this&quot;,a.context,a.props,t.batchId];return e.def(r(n.data),&quot;.call(&quot;,i.slice(0,Math.max(n.data.length+1,4)),&quot;)&quot;);case 1:return e.def(a.props,n.data);case 2:return e.def(a.context,n.data);case 3:return e.def(&quot;this&quot;,n.data);case 4:return n.data.append(t,e),n.data.ref}},t.attribCache={};var c={};return t.scopeAttrib=function(t){if((t=e.id(t))in c)return c[t];var n=u.scope[t];return n||(n=u.scope[t]=new Z),c[t]=r(n)},t}function _(t,e){var r=t.static,n=t.dynamic;if(&quot;framebuffer&quot;in r){var i=r.framebuffer;return i?(i=l.getFramebuffer(i),F((function(t,e){var r=t.link(i),n=t.shared;return e.set(n.framebuffer,&quot;.next&quot;,r),n=n.context,e.set(n,&quot;.framebufferWidth&quot;,r+&quot;.width&quot;),e.set(n,&quot;.framebufferHeight&quot;,r+&quot;.height&quot;),r}))):F((function(t,e){var r=t.shared;return e.set(r.framebuffer,&quot;.next&quot;,&quot;null&quot;),r=r.context,e.set(r,&quot;.framebufferWidth&quot;,r+&quot;.drawingBufferWidth&quot;),e.set(r,&quot;.framebufferHeight&quot;,r+&quot;.drawingBufferHeight&quot;),&quot;null&quot;}))}if(&quot;framebuffer&quot;in n){var a=n.framebuffer;return B(a,(function(t,e){var r=t.invoke(e,a),n=t.shared,i=n.framebuffer;r=e.def(i,&quot;.getFramebuffer(&quot;,r,&quot;)&quot;);return e.set(i,&quot;.next&quot;,r),n=n.context,e.set(n,&quot;.framebufferWidth&quot;,r+&quot;?&quot;+r+&quot;.width:&quot;+n+&quot;.drawingBufferWidth&quot;),e.set(n,&quot;.framebufferHeight&quot;,r+&quot;?&quot;+r+&quot;.height:&quot;+n+&quot;.drawingBufferHeight&quot;),r}))}return null}function w(t,r,n){function i(t){if(t in a){var r=e.id(a[t]);return(t=F((function(){return r}))).id=r,t}if(t in o){var n=o[t];return B(n,(function(t,e){var r=t.invoke(e,n);return e.def(t.shared.strings,&quot;.id(&quot;,r,&quot;)&quot;)}))}return null}var a=t.static,o=t.dynamic,s=i(&quot;frag&quot;),l=i(&quot;vert&quot;),c=null;return R(s)&amp;&amp;R(l)?(c=f.program(l.id,s.id,null,n),t=F((function(t,e){return t.link(c)}))):t=new D(s&amp;&amp;s.thisDep||l&amp;&amp;l.thisDep,s&amp;&amp;s.contextDep||l&amp;&amp;l.contextDep,s&amp;&amp;s.propDep||l&amp;&amp;l.propDep,(function(t,e){var r,n,i=t.shared.shader;return r=s?s.append(t,e):e.def(i,&quot;.&quot;,&quot;frag&quot;),n=l?l.append(t,e):e.def(i,&quot;.&quot;,&quot;vert&quot;),e.def(i+&quot;.program(&quot;+n+&quot;,&quot;+r+&quot;)&quot;)})),{frag:s,vert:l,progVar:t,program:c}}function T(t,e){function r(t,e){if(t in n){var r=0|n[t];return F((function(t,n){return e&amp;&amp;(t.OFFSET=r),r}))}if(t in i){var o=i[t];return B(o,(function(t,r){var n=t.invoke(r,o);return e&amp;&amp;(t.OFFSET=n),n}))}return e&amp;&amp;a?F((function(t,e){return t.OFFSET=&quot;0&quot;,0})):null}var n=t.static,i=t.dynamic,a=function(){if(&quot;elements&quot;in n){var t=n.elements;z(t)?t=o.getElements(o.create(t,!0)):t&amp;&amp;(t=o.getElements(t));var e=F((function(e,r){if(t){var n=e.link(t);return e.ELEMENTS=n}return e.ELEMENTS=null}));return e.value=t,e}if(&quot;elements&quot;in i){var r=i.elements;return B(r,(function(t,e){var n=(i=t.shared).isBufferArgs,i=i.elements,a=t.invoke(e,r),o=e.def(&quot;null&quot;);n=e.def(n,&quot;(&quot;,a,&quot;)&quot;),a=t.cond(n).then(o,&quot;=&quot;,i,&quot;.createStream(&quot;,a,&quot;);&quot;).else(o,&quot;=&quot;,i,&quot;.getElements(&quot;,a,&quot;);&quot;);return e.entry(a),e.exit(t.cond(n).then(i,&quot;.destroyStream(&quot;,o,&quot;);&quot;)),t.ELEMENTS=o}))}return null}(),s=r(&quot;offset&quot;,!0);return{elements:a,primitive:function(){if(&quot;primitive&quot;in n){var t=n.primitive;return F((function(e,r){return nt[t]}))}if(&quot;primitive&quot;in i){var e=i.primitive;return B(e,(function(t,r){var n=t.constants.primTypes,i=t.invoke(r,e);return r.def(n,&quot;[&quot;,i,&quot;]&quot;)}))}return a?R(a)?a.value?F((function(t,e){return e.def(t.ELEMENTS,&quot;.primType&quot;)})):F((function(){return 4})):new D(a.thisDep,a.contextDep,a.propDep,(function(t,e){var r=t.ELEMENTS;return e.def(r,&quot;?&quot;,r,&quot;.primType:&quot;,4)})):null}(),count:function(){if(&quot;count&quot;in n){var t=0|n.count;return F((function(){return t}))}if(&quot;count&quot;in i){var e=i.count;return B(e,(function(t,r){return t.invoke(r,e)}))}return a?R(a)?a?s?new D(s.thisDep,s.contextDep,s.propDep,(function(t,e){return e.def(t.ELEMENTS,&quot;.vertCount-&quot;,t.OFFSET)})):F((function(t,e){return e.def(t.ELEMENTS,&quot;.vertCount&quot;)})):F((function(){return-1})):new D(a.thisDep||s.thisDep,a.contextDep||s.contextDep,a.propDep||s.propDep,(function(t,e){var r=t.ELEMENTS;return t.OFFSET?e.def(r,&quot;?&quot;,r,&quot;.vertCount-&quot;,t.OFFSET,&quot;:-1&quot;):e.def(r,&quot;?&quot;,r,&quot;.vertCount:-1&quot;)})):null}(),instances:r(&quot;instances&quot;,!1),offset:s}}function k(t,r){var n=t.static,a=t.dynamic,o={};return Object.keys(n).forEach((function(t){var r=n[t],a=e.id(t),s=new Z;if(z(r))s.state=1,s.buffer=i.getBuffer(i.create(r,34962,!1,!0)),s.type=0;else if(c=i.getBuffer(r))s.state=1,s.buffer=c,s.type=0;else if(&quot;constant&quot;in r){var l=r.constant;s.buffer=&quot;null&quot;,s.state=2,&quot;number&quot;==typeof l?s.x=l:wt.forEach((function(t,e){e&lt;l.length&amp;&amp;(s[t]=l[e])}))}else{var c=z(r.buffer)?i.getBuffer(i.create(r.buffer,34962,!1,!0)):i.getBuffer(r.buffer),u=0|r.offset,f=0|r.stride,h=0|r.size,p=!!r.normalized,d=0;&quot;type&quot;in r&amp;&amp;(d=Q[r.type]),r=0|r.divisor,s.buffer=c,s.state=1,s.size=h,s.normalized=p,s.type=d||c.dtype,s.offset=u,s.stride=f,s.divisor=r}o[t]=F((function(t,e){var r=t.attribCache;if(a in r)return r[a];var n={isStream:!1};return Object.keys(s).forEach((function(t){n[t]=s[t]})),s.buffer&amp;&amp;(n.buffer=t.link(s.buffer),n.type=n.type||n.buffer+&quot;.dtype&quot;),r[a]=n}))})),Object.keys(a).forEach((function(t){var e=a[t];o[t]=B(e,(function(t,r){function n(t){r(l[t],&quot;=&quot;,i,&quot;.&quot;,t,&quot;|0;&quot;)}var i=t.invoke(r,e),a=t.shared,o=t.constants,s=a.isBufferArgs,l=(a=a.buffer,{isStream:r.def(!1)}),c=new Z;c.state=1,Object.keys(c).forEach((function(t){l[t]=r.def(&quot;&quot;+c[t])}));var u=l.buffer,f=l.type;return r(&quot;if(&quot;,s,&quot;(&quot;,i,&quot;)){&quot;,l.isStream,&quot;=true;&quot;,u,&quot;=&quot;,a,&quot;.createStream(&quot;,34962,&quot;,&quot;,i,&quot;);&quot;,f,&quot;=&quot;,u,&quot;.dtype;&quot;,&quot;}else{&quot;,u,&quot;=&quot;,a,&quot;.getBuffer(&quot;,i,&quot;);&quot;,&quot;if(&quot;,u,&quot;){&quot;,f,&quot;=&quot;,u,&quot;.dtype;&quot;,'}else if(&quot;constant&quot; in ',i,&quot;){&quot;,l.state,&quot;=&quot;,2,&quot;;&quot;,&quot;if(typeof &quot;+i+'.constant === &quot;number&quot;){',l[wt[0]],&quot;=&quot;,i,&quot;.constant;&quot;,wt.slice(1).map((function(t){return l[t]})).join(&quot;=&quot;),&quot;=0;&quot;,&quot;}else{&quot;,wt.map((function(t,e){return l[t]+&quot;=&quot;+i+&quot;.constant.length&gt;&quot;+e+&quot;?&quot;+i+&quot;.constant[&quot;+e+&quot;]:0;&quot;})).join(&quot;&quot;),&quot;}}else{&quot;,&quot;if(&quot;,s,&quot;(&quot;,i,&quot;.buffer)){&quot;,u,&quot;=&quot;,a,&quot;.createStream(&quot;,34962,&quot;,&quot;,i,&quot;.buffer);&quot;,&quot;}else{&quot;,u,&quot;=&quot;,a,&quot;.getBuffer(&quot;,i,&quot;.buffer);&quot;,&quot;}&quot;,f,'=&quot;type&quot; in ',i,&quot;?&quot;,o.glTypes,&quot;[&quot;,i,&quot;.type]:&quot;,u,&quot;.dtype;&quot;,l.normalized,&quot;=!!&quot;,i,&quot;.normalized;&quot;),n(&quot;size&quot;),n(&quot;offset&quot;),n(&quot;stride&quot;),n(&quot;divisor&quot;),r(&quot;}}&quot;),r.exit(&quot;if(&quot;,l.isStream,&quot;){&quot;,a,&quot;.destroyStream(&quot;,u,&quot;);&quot;,&quot;}&quot;),l}))})),o}function M(t,e,n,i,o){function s(t){var e=c[t];e&amp;&amp;(h[t]=e)}var l=function(t,e){if(&quot;string&quot;==typeof(r=t.static).frag&amp;&amp;&quot;string&quot;==typeof r.vert){if(0&lt;Object.keys(e.dynamic).length)return null;var r=e.static,n=Object.keys(r);if(0&lt;n.length&amp;&amp;&quot;number&quot;==typeof r[n[0]]){for(var i=[],a=0;a&lt;n.length;++a)i.push([0|r[n[a]],n[a]]);return i}}return null}(t,e),c=function(t,e,r){function n(t){if(t in i){var r=i[t];t=!0;var n,o,s=0|r.x,l=0|r.y;return&quot;width&quot;in r?n=0|r.width:t=!1,&quot;height&quot;in r?o=0|r.height:t=!1,new D(!t&amp;&amp;e&amp;&amp;e.thisDep,!t&amp;&amp;e&amp;&amp;e.contextDep,!t&amp;&amp;e&amp;&amp;e.propDep,(function(t,e){var i=t.shared.context,a=n;&quot;width&quot;in r||(a=e.def(i,&quot;.&quot;,&quot;framebufferWidth&quot;,&quot;-&quot;,s));var c=o;return&quot;height&quot;in r||(c=e.def(i,&quot;.&quot;,&quot;framebufferHeight&quot;,&quot;-&quot;,l)),[s,l,a,c]}))}if(t in a){var c=a[t];return t=B(c,(function(t,e){var r=t.invoke(e,c),n=t.shared.context,i=e.def(r,&quot;.x|0&quot;),a=e.def(r,&quot;.y|0&quot;);return[i,a,e.def('&quot;width&quot; in ',r,&quot;?&quot;,r,&quot;.width|0:&quot;,&quot;(&quot;,n,&quot;.&quot;,&quot;framebufferWidth&quot;,&quot;-&quot;,i,&quot;)&quot;),r=e.def('&quot;height&quot; in ',r,&quot;?&quot;,r,&quot;.height|0:&quot;,&quot;(&quot;,n,&quot;.&quot;,&quot;framebufferHeight&quot;,&quot;-&quot;,a,&quot;)&quot;)]})),e&amp;&amp;(t.thisDep=t.thisDep||e.thisDep,t.contextDep=t.contextDep||e.contextDep,t.propDep=t.propDep||e.propDep),t}return e?new D(e.thisDep,e.contextDep,e.propDep,(function(t,e){var r=t.shared.context;return[0,0,e.def(r,&quot;.&quot;,&quot;framebufferWidth&quot;),e.def(r,&quot;.&quot;,&quot;framebufferHeight&quot;)]})):null}var i=t.static,a=t.dynamic;if(t=n(&quot;viewport&quot;)){var o=t;t=new D(t.thisDep,t.contextDep,t.propDep,(function(t,e){var r=o.append(t,e),n=t.shared.context;return e.set(n,&quot;.viewportWidth&quot;,r[2]),e.set(n,&quot;.viewportHeight&quot;,r[3]),r}))}return{viewport:t,scissor_box:n(&quot;scissor.box&quot;)}}(t,d=_(t)),f=T(t),h=function(t,e){var r=t.static,n=t.dynamic,i={};return rt.forEach((function(t){function e(e,a){if(t in r){var s=e(r[t]);i[o]=F((function(){return s}))}else if(t in n){var l=n[t];i[o]=B(l,(function(t,e){return a(t,e,t.invoke(e,l))}))}}var o=v(t);switch(t){case&quot;cull.enable&quot;:case&quot;blend.enable&quot;:case&quot;dither&quot;:case&quot;stencil.enable&quot;:case&quot;depth.enable&quot;:case&quot;scissor.enable&quot;:case&quot;polygonOffset.enable&quot;:case&quot;sample.alpha&quot;:case&quot;sample.enable&quot;:case&quot;depth.mask&quot;:return e((function(t){return t}),(function(t,e,r){return r}));case&quot;depth.func&quot;:return e((function(t){return Mt[t]}),(function(t,e,r){return e.def(t.constants.compareFuncs,&quot;[&quot;,r,&quot;]&quot;)}));case&quot;depth.range&quot;:return e((function(t){return t}),(function(t,e,r){return[e.def(&quot;+&quot;,r,&quot;[0]&quot;),e=e.def(&quot;+&quot;,r,&quot;[1]&quot;)]}));case&quot;blend.func&quot;:return e((function(t){return[kt[&quot;srcRGB&quot;in t?t.srcRGB:t.src],kt[&quot;dstRGB&quot;in t?t.dstRGB:t.dst],kt[&quot;srcAlpha&quot;in t?t.srcAlpha:t.src],kt[&quot;dstAlpha&quot;in t?t.dstAlpha:t.dst]]}),(function(t,e,r){function n(t,n){return e.def('&quot;',t,n,'&quot; in ',r,&quot;?&quot;,r,&quot;.&quot;,t,n,&quot;:&quot;,r,&quot;.&quot;,t)}t=t.constants.blendFuncs;var i=n(&quot;src&quot;,&quot;RGB&quot;),a=n(&quot;dst&quot;,&quot;RGB&quot;),o=(i=e.def(t,&quot;[&quot;,i,&quot;]&quot;),e.def(t,&quot;[&quot;,n(&quot;src&quot;,&quot;Alpha&quot;),&quot;]&quot;));return[i,a=e.def(t,&quot;[&quot;,a,&quot;]&quot;),o,t=e.def(t,&quot;[&quot;,n(&quot;dst&quot;,&quot;Alpha&quot;),&quot;]&quot;)]}));case&quot;blend.equation&quot;:return e((function(t){return&quot;string&quot;==typeof t?[J[t],J[t]]:&quot;object&quot;==typeof t?[J[t.rgb],J[t.alpha]]:void 0}),(function(t,e,r){var n=t.constants.blendEquations,i=e.def(),a=e.def();return(t=t.cond(&quot;typeof &quot;,r,'===&quot;string&quot;')).then(i,&quot;=&quot;,a,&quot;=&quot;,n,&quot;[&quot;,r,&quot;];&quot;),t.else(i,&quot;=&quot;,n,&quot;[&quot;,r,&quot;.rgb];&quot;,a,&quot;=&quot;,n,&quot;[&quot;,r,&quot;.alpha];&quot;),e(t),[i,a]}));case&quot;blend.color&quot;:return e((function(t){return a(4,(function(e){return+t[e]}))}),(function(t,e,r){return a(4,(function(t){return e.def(&quot;+&quot;,r,&quot;[&quot;,t,&quot;]&quot;)}))}));case&quot;stencil.mask&quot;:return e((function(t){return 0|t}),(function(t,e,r){return e.def(r,&quot;|0&quot;)}));case&quot;stencil.func&quot;:return e((function(t){return[Mt[t.cmp||&quot;keep&quot;],t.ref||0,&quot;mask&quot;in t?t.mask:-1]}),(function(t,e,r){return[t=e.def('&quot;cmp&quot; in ',r,&quot;?&quot;,t.constants.compareFuncs,&quot;[&quot;,r,&quot;.cmp]&quot;,&quot;:&quot;,7680),e.def(r,&quot;.ref|0&quot;),e=e.def('&quot;mask&quot; in ',r,&quot;?&quot;,r,&quot;.mask|0:-1&quot;)]}));case&quot;stencil.opFront&quot;:case&quot;stencil.opBack&quot;:return e((function(e){return[&quot;stencil.opBack&quot;===t?1029:1028,At[e.fail||&quot;keep&quot;],At[e.zfail||&quot;keep&quot;],At[e.zpass||&quot;keep&quot;]]}),(function(e,r,n){function i(t){return r.def('&quot;',t,'&quot; in ',n,&quot;?&quot;,a,&quot;[&quot;,n,&quot;.&quot;,t,&quot;]:&quot;,7680)}var a=e.constants.stencilOps;return[&quot;stencil.opBack&quot;===t?1029:1028,i(&quot;fail&quot;),i(&quot;zfail&quot;),i(&quot;zpass&quot;)]}));case&quot;polygonOffset.offset&quot;:return e((function(t){return[0|t.factor,0|t.units]}),(function(t,e,r){return[e.def(r,&quot;.factor|0&quot;),e=e.def(r,&quot;.units|0&quot;)]}));case&quot;cull.face&quot;:return e((function(t){var e=0;return&quot;front&quot;===t?e=1028:&quot;back&quot;===t&amp;&amp;(e=1029),e}),(function(t,e,r){return e.def(r,'===&quot;front&quot;?',1028,&quot;:&quot;,1029)}));case&quot;lineWidth&quot;:return e((function(t){return t}),(function(t,e,r){return r}));case&quot;frontFace&quot;:return e((function(t){return St[t]}),(function(t,e,r){return e.def(r+'===&quot;cw&quot;?2304:2305')}));case&quot;colorMask&quot;:return e((function(t){return t.map((function(t){return!!t}))}),(function(t,e,r){return a(4,(function(t){return&quot;!!&quot;+r+&quot;[&quot;+t+&quot;]&quot;}))}));case&quot;sample.coverage&quot;:return e((function(t){return[&quot;value&quot;in t?t.value:1,!!t.invert]}),(function(t,e,r){return[e.def('&quot;value&quot; in ',r,&quot;?+&quot;,r,&quot;.value:1&quot;),e=e.def(&quot;!!&quot;,r,&quot;.invert&quot;)]}))}})),i}(t),p=w(t,0,l);s(&quot;viewport&quot;),s(v(&quot;scissor.box&quot;));var d,g=0&lt;Object.keys(h).length;if((d={framebuffer:d,draw:f,shader:p,state:h,dirty:g,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}}).profile=function(t){var e,r=t.static;if(t=t.dynamic,&quot;profile&quot;in r){var n=!!r.profile;(e=F((function(t,e){return n}))).enable=n}else if(&quot;profile&quot;in t){var i=t.profile;e=B(i,(function(t,e){return t.invoke(e,i)}))}return e}(t),d.uniforms=function(t,e){var r=t.static,n=t.dynamic,i={};return Object.keys(r).forEach((function(t){var e,n=r[t];if(&quot;number&quot;==typeof n||&quot;boolean&quot;==typeof n)e=F((function(){return n}));else if(&quot;function&quot;==typeof n){var o=n._reglType;&quot;texture2d&quot;===o||&quot;textureCube&quot;===o?e=F((function(t){return t.link(n)})):&quot;framebuffer&quot;!==o&amp;&amp;&quot;framebufferCube&quot;!==o||(e=F((function(t){return t.link(n.color[0])})))}else m(n)&amp;&amp;(e=F((function(t){return t.global.def(&quot;[&quot;,a(n.length,(function(t){return n[t]})),&quot;]&quot;)})));e.value=n,i[t]=e})),Object.keys(n).forEach((function(t){var e=n[t];i[t]=B(e,(function(t,r){return t.invoke(r,e)}))})),i}(n),d.drawVAO=d.scopeVAO=function(t,e){var r=t.static,n=t.dynamic;if(&quot;vao&quot;in r){var i=r.vao;return null!==i&amp;&amp;null===u.getVAO(i)&amp;&amp;(i=u.createVAO(i)),F((function(t){return t.link(u.getVAO(i))}))}if(&quot;vao&quot;in n){var a=n.vao;return B(a,(function(t,e){var r=t.invoke(e,a);return e.def(t.shared.vao+&quot;.getVAO(&quot;+r+&quot;)&quot;)}))}return null}(t),!d.drawVAO&amp;&amp;p.program&amp;&amp;!l&amp;&amp;r.angle_instanced_arrays){var y=!0;if(t=p.program.attributes.map((function(t){return t=e.static[t],y=y&amp;&amp;!!t,t})),y&amp;&amp;0&lt;t.length){var x=u.getVAO(u.createVAO(t));d.drawVAO=new D(null,null,null,(function(t,e){return t.link(x)})),d.useVAO=!0}}return l?d.useVAO=!0:d.attributes=k(e),d.context=function(t){var e=t.static,r=t.dynamic,n={};return Object.keys(e).forEach((function(t){var r=e[t];n[t]=F((function(t,e){return&quot;number&quot;==typeof r||&quot;boolean&quot;==typeof r?&quot;&quot;+r:t.link(r)}))})),Object.keys(r).forEach((function(t){var e=r[t];n[t]=B(e,(function(t,r){return t.invoke(r,e)}))})),n}(i),d}function A(t,e,r){var n=t.shared.context,i=t.scope();Object.keys(r).forEach((function(a){e.save(n,&quot;.&quot;+a),i(n,&quot;.&quot;,a,&quot;=&quot;,r[a].append(t,e),&quot;;&quot;)})),e(i)}function S(t,e,r,n){var i,a=(s=t.shared).gl,o=s.framebuffer;$&amp;&amp;(i=e.def(s.extensions,&quot;.webgl_draw_buffers&quot;));var s=(l=t.constants).drawBuffer,l=l.backBuffer;t=r?r.append(t,e):e.def(o,&quot;.next&quot;),n||e(&quot;if(&quot;,t,&quot;!==&quot;,o,&quot;.cur){&quot;),e(&quot;if(&quot;,t,&quot;){&quot;,a,&quot;.bindFramebuffer(&quot;,36160,&quot;,&quot;,t,&quot;.framebuffer);&quot;),$&amp;&amp;e(i,&quot;.drawBuffersWEBGL(&quot;,s,&quot;[&quot;,t,&quot;.colorAttachments.length]);&quot;),e(&quot;}else{&quot;,a,&quot;.bindFramebuffer(&quot;,36160,&quot;,null);&quot;),$&amp;&amp;e(i,&quot;.drawBuffersWEBGL(&quot;,l,&quot;);&quot;),e(&quot;}&quot;,o,&quot;.cur=&quot;,t,&quot;;&quot;),n||e(&quot;}&quot;)}function E(t,e,r){var n=t.shared,i=n.gl,o=t.current,s=t.next,l=n.current,c=n.next,u=t.cond(l,&quot;.dirty&quot;);rt.forEach((function(e){var n,f;if(!((e=v(e))in r.state))if(e in s){n=s[e],f=o[e];var h=a(tt[e].length,(function(t){return u.def(n,&quot;[&quot;,t,&quot;]&quot;)}));u(t.cond(h.map((function(t,e){return t+&quot;!==&quot;+f+&quot;[&quot;+e+&quot;]&quot;})).join(&quot;||&quot;)).then(i,&quot;.&quot;,at[e],&quot;(&quot;,h,&quot;);&quot;,h.map((function(t,e){return f+&quot;[&quot;+e+&quot;]=&quot;+t})).join(&quot;;&quot;),&quot;;&quot;))}else n=u.def(c,&quot;.&quot;,e),h=t.cond(n,&quot;!==&quot;,l,&quot;.&quot;,e),u(h),e in it?h(t.cond(n).then(i,&quot;.enable(&quot;,it[e],&quot;);&quot;).else(i,&quot;.disable(&quot;,it[e],&quot;);&quot;),l,&quot;.&quot;,e,&quot;=&quot;,n,&quot;;&quot;):h(i,&quot;.&quot;,at[e],&quot;(&quot;,n,&quot;);&quot;,l,&quot;.&quot;,e,&quot;=&quot;,n,&quot;;&quot;)})),0===Object.keys(r.state).length&amp;&amp;u(l,&quot;.dirty=false;&quot;),e(u)}function C(t,e,r,n){var i=t.shared,a=t.current,o=i.current,s=i.gl;O(Object.keys(r)).forEach((function(i){var l=r[i];if(!n||n(l)){var c=l.append(t,e);if(it[i]){var u=it[i];R(l)?e(s,c?&quot;.enable(&quot;:&quot;.disable(&quot;,u,&quot;);&quot;):e(t.cond(c).then(s,&quot;.enable(&quot;,u,&quot;);&quot;).else(s,&quot;.disable(&quot;,u,&quot;);&quot;)),e(o,&quot;.&quot;,i,&quot;=&quot;,c,&quot;;&quot;)}else if(m(c)){var f=a[i];e(s,&quot;.&quot;,at[i],&quot;(&quot;,c,&quot;);&quot;,c.map((function(t,e){return f+&quot;[&quot;+e+&quot;]=&quot;+t})).join(&quot;;&quot;),&quot;;&quot;)}else e(s,&quot;.&quot;,at[i],&quot;(&quot;,c,&quot;);&quot;,o,&quot;.&quot;,i,&quot;=&quot;,c,&quot;;&quot;)}}))}function L(t,e){K&amp;&amp;(t.instancing=e.def(t.shared.extensions,&quot;.angle_instanced_arrays&quot;))}function I(t,e,r,n,i){function a(){return&quot;undefined&quot;==typeof performance?&quot;Date.now()&quot;:&quot;performance.now()&quot;}function o(t){t(c=e.def(),&quot;=&quot;,a(),&quot;;&quot;),&quot;string&quot;==typeof i?t(h,&quot;.count+=&quot;,i,&quot;;&quot;):t(h,&quot;.count++;&quot;),d&amp;&amp;(n?t(u=e.def(),&quot;=&quot;,g,&quot;.getNumPendingQueries();&quot;):t(g,&quot;.beginQuery(&quot;,h,&quot;);&quot;))}function s(t){t(h,&quot;.cpuTime+=&quot;,a(),&quot;-&quot;,c,&quot;;&quot;),d&amp;&amp;(n?t(g,&quot;.pushScopeStats(&quot;,u,&quot;,&quot;,g,&quot;.getNumPendingQueries(),&quot;,h,&quot;);&quot;):t(g,&quot;.endQuery();&quot;))}function l(t){var r=e.def(p,&quot;.profile&quot;);e(p,&quot;.profile=&quot;,t,&quot;;&quot;),e.exit(p,&quot;.profile=&quot;,r,&quot;;&quot;)}var c,u,f=t.shared,h=t.stats,p=f.current,g=f.timer;if(r=r.profile){if(R(r))return void(r.enable?(o(e),s(e.exit),l(&quot;true&quot;)):l(&quot;false&quot;));l(r=r.append(t,e))}else r=e.def(p,&quot;.profile&quot;);o(f=t.block()),e(&quot;if(&quot;,r,&quot;){&quot;,f,&quot;}&quot;),s(t=t.block()),e.exit(&quot;if(&quot;,r,&quot;){&quot;,t,&quot;}&quot;)}function N(t,e,r,n,i){function a(r,n,i){function a(){e(&quot;if(!&quot;,u,&quot;.buffer){&quot;,l,&quot;.enableVertexAttribArray(&quot;,c,&quot;);}&quot;);var r,a=i.type;r=i.size?e.def(i.size,&quot;||&quot;,n):n,e(&quot;if(&quot;,u,&quot;.type!==&quot;,a,&quot;||&quot;,u,&quot;.size!==&quot;,r,&quot;||&quot;,p.map((function(t){return u+&quot;.&quot;+t+&quot;!==&quot;+i[t]})).join(&quot;||&quot;),&quot;){&quot;,l,&quot;.bindBuffer(&quot;,34962,&quot;,&quot;,f,&quot;.buffer);&quot;,l,&quot;.vertexAttribPointer(&quot;,[c,r,a,i.normalized,i.stride,i.offset],&quot;);&quot;,u,&quot;.type=&quot;,a,&quot;;&quot;,u,&quot;.size=&quot;,r,&quot;;&quot;,p.map((function(t){return u+&quot;.&quot;+t+&quot;=&quot;+i[t]+&quot;;&quot;})).join(&quot;&quot;),&quot;}&quot;),K&amp;&amp;(a=i.divisor,e(&quot;if(&quot;,u,&quot;.divisor!==&quot;,a,&quot;){&quot;,t.instancing,&quot;.vertexAttribDivisorANGLE(&quot;,[c,a],&quot;);&quot;,u,&quot;.divisor=&quot;,a,&quot;;}&quot;))}function s(){e(&quot;if(&quot;,u,&quot;.buffer){&quot;,l,&quot;.disableVertexAttribArray(&quot;,c,&quot;);&quot;,u,&quot;.buffer=null;&quot;,&quot;}if(&quot;,wt.map((function(t,e){return u+&quot;.&quot;+t+&quot;!==&quot;+h[e]})).join(&quot;||&quot;),&quot;){&quot;,l,&quot;.vertexAttrib4f(&quot;,c,&quot;,&quot;,h,&quot;);&quot;,wt.map((function(t,e){return u+&quot;.&quot;+t+&quot;=&quot;+h[e]+&quot;;&quot;})).join(&quot;&quot;),&quot;}&quot;)}var l=o.gl,c=e.def(r,&quot;.location&quot;),u=e.def(o.attributes,&quot;[&quot;,c,&quot;]&quot;);r=i.state;var f=i.buffer,h=[i.x,i.y,i.z,i.w],p=[&quot;buffer&quot;,&quot;normalized&quot;,&quot;offset&quot;,&quot;stride&quot;];1===r?a():2===r?s():(e(&quot;if(&quot;,r,&quot;===&quot;,1,&quot;){&quot;),a(),e(&quot;}else{&quot;),s(),e(&quot;}&quot;))}var o=t.shared;n.forEach((function(n){var o,s=n.name,l=r.attributes[s];if(l){if(!i(l))return;o=l.append(t,e)}else{if(!i(Et))return;var c=t.scopeAttrib(s);o={},Object.keys(new Z).forEach((function(t){o[t]=e.def(c,&quot;.&quot;,t)}))}a(t.link(n),function(t){switch(t){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}(n.info.type),o)}))}function j(t,r,n,i,o){for(var s,l=t.shared,c=l.gl,u=0;u&lt;i.length;++u){var f,h=(g=i[u]).name,p=g.info.type,d=n.uniforms[h],g=t.link(g)+&quot;.location&quot;;if(d){if(!o(d))continue;if(R(d)){if(h=d.value,35678===p||35680===p)r(c,&quot;.uniform1i(&quot;,g,&quot;,&quot;,(p=t.link(h._texture||h.color[0]._texture))+&quot;.bind());&quot;),r.exit(p,&quot;.unbind();&quot;);else if(35674===p||35675===p||35676===p)d=2,35675===p?d=3:35676===p&amp;&amp;(d=4),r(c,&quot;.uniformMatrix&quot;,d,&quot;fv(&quot;,g,&quot;,false,&quot;,h=t.global.def(&quot;new Float32Array([&quot;+Array.prototype.slice.call(h)+&quot;])&quot;),&quot;);&quot;);else{switch(p){case 5126:s=&quot;1f&quot;;break;case 35664:s=&quot;2f&quot;;break;case 35665:s=&quot;3f&quot;;break;case 35666:s=&quot;4f&quot;;break;case 35670:case 5124:s=&quot;1i&quot;;break;case 35671:case 35667:s=&quot;2i&quot;;break;case 35672:case 35668:s=&quot;3i&quot;;break;case 35673:s=&quot;4i&quot;;break;case 35669:s=&quot;4i&quot;}r(c,&quot;.uniform&quot;,s,&quot;(&quot;,g,&quot;,&quot;,m(h)?Array.prototype.slice.call(h):h,&quot;);&quot;)}continue}f=d.append(t,r)}else{if(!o(Et))continue;f=r.def(l.uniforms,&quot;[&quot;,e.id(h),&quot;]&quot;)}switch(35678===p?r(&quot;if(&quot;,f,&quot;&amp;&amp;&quot;,f,'._reglType===&quot;framebuffer&quot;){',f,&quot;=&quot;,f,&quot;.color[0];&quot;,&quot;}&quot;):35680===p&amp;&amp;r(&quot;if(&quot;,f,&quot;&amp;&amp;&quot;,f,'._reglType===&quot;framebufferCube&quot;){',f,&quot;=&quot;,f,&quot;.color[0];&quot;,&quot;}&quot;),h=1,p){case 35678:case 35680:p=r.def(f,&quot;._texture&quot;),r(c,&quot;.uniform1i(&quot;,g,&quot;,&quot;,p,&quot;.bind());&quot;),r.exit(p,&quot;.unbind();&quot;);continue;case 5124:case 35670:s=&quot;1i&quot;;break;case 35667:case 35671:s=&quot;2i&quot;,h=2;break;case 35668:case 35672:s=&quot;3i&quot;,h=3;break;case 35669:case 35673:s=&quot;4i&quot;,h=4;break;case 5126:s=&quot;1f&quot;;break;case 35664:s=&quot;2f&quot;,h=2;break;case 35665:s=&quot;3f&quot;,h=3;break;case 35666:s=&quot;4f&quot;,h=4;break;case 35674:s=&quot;Matrix2fv&quot;;break;case 35675:s=&quot;Matrix3fv&quot;;break;case 35676:s=&quot;Matrix4fv&quot;}if(r(c,&quot;.uniform&quot;,s,&quot;(&quot;,g,&quot;,&quot;),&quot;M&quot;===s.charAt(0)){g=Math.pow(p-35674+2,2);var v=t.global.def(&quot;new Float32Array(&quot;,g,&quot;)&quot;);r(&quot;false,(Array.isArray(&quot;,f,&quot;)||&quot;,f,&quot; instanceof Float32Array)?&quot;,f,&quot;:(&quot;,a(g,(function(t){return v+&quot;[&quot;+t+&quot;]=&quot;+f+&quot;[&quot;+t+&quot;]&quot;})),&quot;,&quot;,v,&quot;)&quot;)}else r(1&lt;h?a(h,(function(t){return f+&quot;[&quot;+t+&quot;]&quot;})):f);r(&quot;);&quot;)}}function U(t,e,r,n){function i(i){var a=h[i];return a?a.contextDep&amp;&amp;n.contextDynamic||a.propDep?a.append(t,r):a.append(t,e):e.def(f,&quot;.&quot;,i)}function a(){function t(){r(l,&quot;.drawElementsInstancedANGLE(&quot;,[d,m,v,g+&quot;&lt;&lt;((&quot;+v+&quot;-5121)&gt;&gt;1)&quot;,s],&quot;);&quot;)}function e(){r(l,&quot;.drawArraysInstancedANGLE(&quot;,[d,g,m,s],&quot;);&quot;)}p?y?t():(r(&quot;if(&quot;,p,&quot;){&quot;),t(),r(&quot;}else{&quot;),e(),r(&quot;}&quot;)):e()}function o(){function t(){r(u+&quot;.drawElements(&quot;+[d,m,v,g+&quot;&lt;&lt;((&quot;+v+&quot;-5121)&gt;&gt;1)&quot;]+&quot;);&quot;)}function e(){r(u+&quot;.drawArrays(&quot;+[d,g,m]+&quot;);&quot;)}p?y?t():(r(&quot;if(&quot;,p,&quot;){&quot;),t(),r(&quot;}else{&quot;),e(),r(&quot;}&quot;)):e()}var s,l,c=t.shared,u=c.gl,f=c.draw,h=n.draw,p=function(){var i=h.elements,a=e;return i?((i.contextDep&amp;&amp;n.contextDynamic||i.propDep)&amp;&amp;(a=r),i=i.append(t,a)):i=a.def(f,&quot;.&quot;,&quot;elements&quot;),i&amp;&amp;a(&quot;if(&quot;+i+&quot;)&quot;+u+&quot;.bindBuffer(34963,&quot;+i+&quot;.buffer.buffer);&quot;),i}(),d=i(&quot;primitive&quot;),g=i(&quot;offset&quot;),m=function(){var i=h.count,a=e;return i?((i.contextDep&amp;&amp;n.contextDynamic||i.propDep)&amp;&amp;(a=r),i=i.append(t,a)):i=a.def(f,&quot;.&quot;,&quot;count&quot;),i}();if(&quot;number&quot;==typeof m){if(0===m)return}else r(&quot;if(&quot;,m,&quot;){&quot;),r.exit(&quot;}&quot;);K&amp;&amp;(s=i(&quot;instances&quot;),l=t.instancing);var v=p+&quot;.type&quot;,y=h.elements&amp;&amp;R(h.elements);K&amp;&amp;(&quot;number&quot;!=typeof s||0&lt;=s)?&quot;string&quot;==typeof s?(r(&quot;if(&quot;,s,&quot;&gt;0){&quot;),a(),r(&quot;}else if(&quot;,s,&quot;&lt;0){&quot;),o(),r(&quot;}&quot;)):a():o()}function V(t,e,r,n,i){return i=(e=b()).proc(&quot;body&quot;,i),K&amp;&amp;(e.instancing=i.def(e.shared.extensions,&quot;.angle_instanced_arrays&quot;)),t(e,i,r,n),e.compile().body}function H(t,e,r,n){L(t,e),r.useVAO?r.drawVAO?e(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,e),&quot;);&quot;):e(t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;):(e(t.shared.vao,&quot;.setVAO(null);&quot;),N(t,e,r,n.attributes,(function(){return!0}))),j(t,e,r,n.uniforms,(function(){return!0})),U(t,e,e,r)}function G(t,e,r,n){function i(){return!0}t.batchId=&quot;a1&quot;,L(t,e),N(t,e,r,n.attributes,i),j(t,e,r,n.uniforms,i),U(t,e,e,r)}function Y(t,e,r,n){function i(t){return t.contextDep&amp;&amp;o||t.propDep}function a(t){return!i(t)}L(t,e);var o=r.contextDep,s=e.def(),l=e.def();t.shared.props=l,t.batchId=s;var c=t.scope(),u=t.scope();e(c.entry,&quot;for(&quot;,s,&quot;=0;&quot;,s,&quot;&lt;&quot;,&quot;a1&quot;,&quot;;++&quot;,s,&quot;){&quot;,l,&quot;=&quot;,&quot;a0&quot;,&quot;[&quot;,s,&quot;];&quot;,u,&quot;}&quot;,c.exit),r.needsContext&amp;&amp;A(t,u,r.context),r.needsFramebuffer&amp;&amp;S(t,u,r.framebuffer),C(t,u,r.state,i),r.profile&amp;&amp;i(r.profile)&amp;&amp;I(t,u,r,!1,!0),n?(r.useVAO?r.drawVAO?i(r.drawVAO)?u(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,u),&quot;);&quot;):c(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,c),&quot;);&quot;):c(t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;):(c(t.shared.vao,&quot;.setVAO(null);&quot;),N(t,c,r,n.attributes,a),N(t,u,r,n.attributes,i)),j(t,c,r,n.uniforms,a),j(t,u,r,n.uniforms,i),U(t,c,u,r)):(e=t.global.def(&quot;{}&quot;),n=r.shader.progVar.append(t,u),l=u.def(n,&quot;.id&quot;),c=u.def(e,&quot;[&quot;,l,&quot;]&quot;),u(t.shared.gl,&quot;.useProgram(&quot;,n,&quot;.program);&quot;,&quot;if(!&quot;,c,&quot;){&quot;,c,&quot;=&quot;,e,&quot;[&quot;,l,&quot;]=&quot;,t.link((function(e){return V(G,t,r,e,2)})),&quot;(&quot;,n,&quot;);}&quot;,c,&quot;.call(this,a0[&quot;,s,&quot;],&quot;,s,&quot;);&quot;))}function W(t,r){function n(e){var n=r.shader[e];n&amp;&amp;i.set(a.shader,&quot;.&quot;+e,n.append(t,i))}var i=t.proc(&quot;scope&quot;,3);t.batchId=&quot;a2&quot;;var a=t.shared,o=a.current;A(t,i,r.context),r.framebuffer&amp;&amp;r.framebuffer.append(t,i),O(Object.keys(r.state)).forEach((function(e){var n=r.state[e].append(t,i);m(n)?n.forEach((function(r,n){i.set(t.next[e],&quot;[&quot;+n+&quot;]&quot;,r)})):i.set(a.next,&quot;.&quot;+e,n)})),I(t,i,r,!0,!0),[&quot;elements&quot;,&quot;offset&quot;,&quot;count&quot;,&quot;instances&quot;,&quot;primitive&quot;].forEach((function(e){var n=r.draw[e];n&amp;&amp;i.set(a.draw,&quot;.&quot;+e,&quot;&quot;+n.append(t,i))})),Object.keys(r.uniforms).forEach((function(n){i.set(a.uniforms,&quot;[&quot;+e.id(n)+&quot;]&quot;,r.uniforms[n].append(t,i))})),Object.keys(r.attributes).forEach((function(e){var n=r.attributes[e].append(t,i),a=t.scopeAttrib(e);Object.keys(new Z).forEach((function(t){i.set(a,&quot;.&quot;+t,n[t])}))})),r.scopeVAO&amp;&amp;i.set(a.vao,&quot;.targetVAO&quot;,r.scopeVAO.append(t,i)),n(&quot;vert&quot;),n(&quot;frag&quot;),0&lt;Object.keys(r.state).length&amp;&amp;(i(o,&quot;.dirty=true;&quot;),i.exit(o,&quot;.dirty=true;&quot;)),i(&quot;a1(&quot;,t.shared.context,&quot;,a0,&quot;,t.batchId,&quot;);&quot;)}function X(t,e,r){var n=e.static[r];if(n&amp;&amp;function(t){if(&quot;object&quot;==typeof t&amp;&amp;!m(t)){for(var e=Object.keys(t),r=0;r&lt;e.length;++r)if(q.isDynamic(t[e[r]]))return!0;return!1}}(n)){var i=t.global,a=Object.keys(n),o=!1,s=!1,l=!1,c=t.global.def(&quot;{}&quot;);a.forEach((function(e){var r=n[e];if(q.isDynamic(r))&quot;function&quot;==typeof r&amp;&amp;(r=n[e]=q.unbox(r)),e=B(r,null),o=o||e.thisDep,l=l||e.propDep,s=s||e.contextDep;else{switch(i(c,&quot;.&quot;,e,&quot;=&quot;),typeof r){case&quot;number&quot;:i(r);break;case&quot;string&quot;:i('&quot;',r,'&quot;');break;case&quot;object&quot;:Array.isArray(r)&amp;&amp;i(&quot;[&quot;,r.join(),&quot;]&quot;);break;default:i(t.link(r))}i(&quot;;&quot;)}})),e.dynamic[r]=new q.DynamicVariable(4,{thisDep:o,contextDep:s,propDep:l,ref:c,append:function(t,e){a.forEach((function(r){var i=n[r];q.isDynamic(i)&amp;&amp;(i=t.invoke(e,i),e(c,&quot;.&quot;,r,&quot;=&quot;,i,&quot;;&quot;))}))}}),delete e.static[r]}}var Z=u.Record,J={add:32774,subtract:32778,&quot;reverse subtract&quot;:32779};r.ext_blend_minmax&amp;&amp;(J.min=32775,J.max=32776);var K=r.angle_instanced_arrays,$=r.webgl_draw_buffers,tt={dirty:!0,profile:g.profile},et={},rt=[],it={},at={};y(&quot;dither&quot;,3024),y(&quot;blend.enable&quot;,3042),x(&quot;blend.color&quot;,&quot;blendColor&quot;,[0,0,0,0]),x(&quot;blend.equation&quot;,&quot;blendEquationSeparate&quot;,[32774,32774]),x(&quot;blend.func&quot;,&quot;blendFuncSeparate&quot;,[1,0,1,0]),y(&quot;depth.enable&quot;,2929,!0),x(&quot;depth.func&quot;,&quot;depthFunc&quot;,513),x(&quot;depth.range&quot;,&quot;depthRange&quot;,[0,1]),x(&quot;depth.mask&quot;,&quot;depthMask&quot;,!0),x(&quot;colorMask&quot;,&quot;colorMask&quot;,[!0,!0,!0,!0]),y(&quot;cull.enable&quot;,2884),x(&quot;cull.face&quot;,&quot;cullFace&quot;,1029),x(&quot;frontFace&quot;,&quot;frontFace&quot;,2305),x(&quot;lineWidth&quot;,&quot;lineWidth&quot;,1),y(&quot;polygonOffset.enable&quot;,32823),x(&quot;polygonOffset.offset&quot;,&quot;polygonOffset&quot;,[0,0]),y(&quot;sample.alpha&quot;,32926),y(&quot;sample.enable&quot;,32928),x(&quot;sample.coverage&quot;,&quot;sampleCoverage&quot;,[1,!1]),y(&quot;stencil.enable&quot;,2960),x(&quot;stencil.mask&quot;,&quot;stencilMask&quot;,-1),x(&quot;stencil.func&quot;,&quot;stencilFunc&quot;,[519,0,-1]),x(&quot;stencil.opFront&quot;,&quot;stencilOpSeparate&quot;,[1028,7680,7680,7680]),x(&quot;stencil.opBack&quot;,&quot;stencilOpSeparate&quot;,[1029,7680,7680,7680]),y(&quot;scissor.enable&quot;,3089),x(&quot;scissor.box&quot;,&quot;scissor&quot;,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),x(&quot;viewport&quot;,&quot;viewport&quot;,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var ot={gl:t,context:p,strings:e,next:et,current:tt,draw:h,elements:o,buffer:i,shader:f,attributes:u.state,vao:u,uniforms:c,framebuffer:l,extensions:r,timer:d,isBufferArgs:z},st={primTypes:nt,compareFuncs:Mt,blendFuncs:kt,blendEquations:J,stencilOps:At,glTypes:Q,orientationType:St};$&amp;&amp;(st.backBuffer=[1029],st.drawBuffer=a(n.maxDrawbuffers,(function(t){return 0===t?[0]:a(t,(function(t){return 36064+t}))})));var lt=0;return{next:et,current:tt,procs:function(){var t=b(),e=t.proc(&quot;poll&quot;),i=t.proc(&quot;refresh&quot;),o=t.block();e(o),i(o);var s,l=t.shared,c=l.gl,u=l.next,f=l.current;o(f,&quot;.dirty=false;&quot;),S(t,e),S(t,i,null,!0),K&amp;&amp;(s=t.link(K)),r.oes_vertex_array_object&amp;&amp;i(t.link(r.oes_vertex_array_object),&quot;.bindVertexArrayOES(null);&quot;);for(var h=0;h&lt;n.maxAttributes;++h){var p=i.def(l.attributes,&quot;[&quot;,h,&quot;]&quot;),d=t.cond(p,&quot;.buffer&quot;);d.then(c,&quot;.enableVertexAttribArray(&quot;,h,&quot;);&quot;,c,&quot;.bindBuffer(&quot;,34962,&quot;,&quot;,p,&quot;.buffer.buffer);&quot;,c,&quot;.vertexAttribPointer(&quot;,h,&quot;,&quot;,p,&quot;.size,&quot;,p,&quot;.type,&quot;,p,&quot;.normalized,&quot;,p,&quot;.stride,&quot;,p,&quot;.offset);&quot;).else(c,&quot;.disableVertexAttribArray(&quot;,h,&quot;);&quot;,c,&quot;.vertexAttrib4f(&quot;,h,&quot;,&quot;,p,&quot;.x,&quot;,p,&quot;.y,&quot;,p,&quot;.z,&quot;,p,&quot;.w);&quot;,p,&quot;.buffer=null;&quot;),i(d),K&amp;&amp;i(s,&quot;.vertexAttribDivisorANGLE(&quot;,h,&quot;,&quot;,p,&quot;.divisor);&quot;)}return i(t.shared.vao,&quot;.currentVAO=null;&quot;,t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;),Object.keys(it).forEach((function(r){var n=it[r],a=o.def(u,&quot;.&quot;,r),s=t.block();s(&quot;if(&quot;,a,&quot;){&quot;,c,&quot;.enable(&quot;,n,&quot;)}else{&quot;,c,&quot;.disable(&quot;,n,&quot;)}&quot;,f,&quot;.&quot;,r,&quot;=&quot;,a,&quot;;&quot;),i(s),e(&quot;if(&quot;,a,&quot;!==&quot;,f,&quot;.&quot;,r,&quot;){&quot;,s,&quot;}&quot;)})),Object.keys(at).forEach((function(r){var n,s,l=at[r],h=tt[r],p=t.block();p(c,&quot;.&quot;,l,&quot;(&quot;),m(h)?(l=h.length,n=t.global.def(u,&quot;.&quot;,r),s=t.global.def(f,&quot;.&quot;,r),p(a(l,(function(t){return n+&quot;[&quot;+t+&quot;]&quot;})),&quot;);&quot;,a(l,(function(t){return s+&quot;[&quot;+t+&quot;]=&quot;+n+&quot;[&quot;+t+&quot;];&quot;})).join(&quot;&quot;)),e(&quot;if(&quot;,a(l,(function(t){return n+&quot;[&quot;+t+&quot;]!==&quot;+s+&quot;[&quot;+t+&quot;]&quot;})).join(&quot;||&quot;),&quot;){&quot;,p,&quot;}&quot;)):(n=o.def(u,&quot;.&quot;,r),s=o.def(f,&quot;.&quot;,r),p(n,&quot;);&quot;,f,&quot;.&quot;,r,&quot;=&quot;,n,&quot;;&quot;),e(&quot;if(&quot;,n,&quot;!==&quot;,s,&quot;){&quot;,p,&quot;}&quot;)),i(p)})),t.compile()}(),compile:function(t,e,r,n,i){var a=b();return a.stats=a.link(i),Object.keys(e.static).forEach((function(t){X(a,e,t)})),Tt.forEach((function(e){X(a,t,e)})),r=M(t,e,r,n),function(t,e){var r=t.proc(&quot;draw&quot;,1);L(t,r),A(t,r,e.context),S(t,r,e.framebuffer),E(t,r,e),C(t,r,e.state),I(t,r,e,!1,!0);var n=e.shader.progVar.append(t,r);if(r(t.shared.gl,&quot;.useProgram(&quot;,n,&quot;.program);&quot;),e.shader.program)H(t,r,e,e.shader.program);else{r(t.shared.vao,&quot;.setVAO(null);&quot;);var i=t.global.def(&quot;{}&quot;),a=r.def(n,&quot;.id&quot;),o=r.def(i,&quot;[&quot;,a,&quot;]&quot;);r(t.cond(o).then(o,&quot;.call(this,a0);&quot;).else(o,&quot;=&quot;,i,&quot;[&quot;,a,&quot;]=&quot;,t.link((function(r){return V(H,t,e,r,1)})),&quot;(&quot;,n,&quot;);&quot;,o,&quot;.call(this,a0);&quot;))}0&lt;Object.keys(e.state).length&amp;&amp;r(t.shared.current,&quot;.dirty=true;&quot;)}(a,r),W(a,r),function(t,e){function r(t){return t.contextDep&amp;&amp;i||t.propDep}var n=t.proc(&quot;batch&quot;,2);t.batchId=&quot;0&quot;,L(t,n);var i=!1,a=!0;Object.keys(e.context).forEach((function(t){i=i||e.context[t].propDep})),i||(A(t,n,e.context),a=!1);var o=!1;if((s=e.framebuffer)?(s.propDep?i=o=!0:s.contextDep&amp;&amp;i&amp;&amp;(o=!0),o||S(t,n,s)):S(t,n,null),e.state.viewport&amp;&amp;e.state.viewport.propDep&amp;&amp;(i=!0),E(t,n,e),C(t,n,e.state,(function(t){return!r(t)})),e.profile&amp;&amp;r(e.profile)||I(t,n,e,!1,&quot;a1&quot;),e.contextDep=i,e.needsContext=a,e.needsFramebuffer=o,(a=e.shader.progVar).contextDep&amp;&amp;i||a.propDep)Y(t,n,e,null);else if(a=a.append(t,n),n(t.shared.gl,&quot;.useProgram(&quot;,a,&quot;.program);&quot;),e.shader.program)Y(t,n,e,e.shader.program);else{n(t.shared.vao,&quot;.setVAO(null);&quot;);var s=t.global.def(&quot;{}&quot;),l=(o=n.def(a,&quot;.id&quot;),n.def(s,&quot;[&quot;,o,&quot;]&quot;));n(t.cond(l).then(l,&quot;.call(this,a0,a1);&quot;).else(l,&quot;=&quot;,s,&quot;[&quot;,o,&quot;]=&quot;,t.link((function(r){return V(Y,t,e,r,2)})),&quot;(&quot;,a,&quot;);&quot;,l,&quot;.call(this,a0,a1);&quot;))}0&lt;Object.keys(e.state).length&amp;&amp;n(t.shared.current,&quot;.dirty=true;&quot;)}(a,r),a.compile()}}}function j(t,e){for(var r=0;r&lt;t.length;++r)if(t[r]===e)return r;return-1}var U=function(t,e){for(var r=Object.keys(e),n=0;n&lt;r.length;++n)t[r[n]]=e[r[n]];return t},V=0,q={DynamicVariable:t,define:function(r,n){return new t(r,e(n+&quot;&quot;))},isDynamic:function(e){return&quot;function&quot;==typeof e&amp;&amp;!e._reglType||e instanceof t},unbox:function(e,r){return&quot;function&quot;==typeof e?new t(0,e):e},accessor:e},H={next:&quot;function&quot;==typeof requestAnimationFrame?function(t){return requestAnimationFrame(t)}:function(t){return setTimeout(t,16)},cancel:&quot;function&quot;==typeof cancelAnimationFrame?function(t){return cancelAnimationFrame(t)}:clearTimeout},G=&quot;undefined&quot;!=typeof performance&amp;&amp;performance.now?function(){return performance.now()}:function(){return+new Date},Y=s();Y.zero=s();var W=function(t,e){var r=1;e.ext_texture_filter_anisotropic&amp;&amp;(r=t.getParameter(34047));var n=1,i=1;e.webgl_draw_buffers&amp;&amp;(n=t.getParameter(34852),i=t.getParameter(36063));var a=!!e.oes_texture_float;if(a){a=t.createTexture(),t.bindTexture(3553,a),t.texImage2D(3553,0,6408,1,1,0,6408,5126,null);var o=t.createFramebuffer();if(t.bindFramebuffer(36160,o),t.framebufferTexture2D(36160,36064,3553,a,0),t.bindTexture(3553,null),36053!==t.checkFramebufferStatus(36160))a=!1;else{t.viewport(0,0,1,1),t.clearColor(1,0,0,1),t.clear(16384);var s=Y.allocType(5126,4);t.readPixels(0,0,1,1,6408,5126,s),t.getError()?a=!1:(t.deleteFramebuffer(o),t.deleteTexture(a),a=1===s[0]),Y.freeType(s)}}return s=!0,&quot;undefined&quot;!=typeof navigator&amp;&amp;(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent))||(s=t.createTexture(),o=Y.allocType(5121,36),t.activeTexture(33984),t.bindTexture(34067,s),t.texImage2D(34069,0,6408,3,3,0,6408,5121,o),Y.freeType(o),t.bindTexture(34067,null),t.deleteTexture(s),s=!t.getError()),{colorBits:[t.getParameter(3410),t.getParameter(3411),t.getParameter(3412),t.getParameter(3413)],depthBits:t.getParameter(3414),stencilBits:t.getParameter(3415),subpixelBits:t.getParameter(3408),extensions:Object.keys(e).filter((function(t){return!!e[t]})),maxAnisotropic:r,maxDrawbuffers:n,maxColorAttachments:i,pointSizeDims:t.getParameter(33901),lineWidthDims:t.getParameter(33902),maxViewportDims:t.getParameter(3386),maxCombinedTextureUnits:t.getParameter(35661),maxCubeMapSize:t.getParameter(34076),maxRenderbufferSize:t.getParameter(34024),maxTextureUnits:t.getParameter(34930),maxTextureSize:t.getParameter(3379),maxAttributes:t.getParameter(34921),maxVertexUniforms:t.getParameter(36347),maxVertexTextureUnits:t.getParameter(35660),maxVaryingVectors:t.getParameter(36348),maxFragmentUniforms:t.getParameter(36349),glsl:t.getParameter(35724),renderer:t.getParameter(7937),vendor:t.getParameter(7936),version:t.getParameter(7938),readFloat:a,npotTextureCube:s}},X=function(t){return t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Float32Array||t instanceof Float64Array||t instanceof Uint8ClampedArray},Z=function(t){return Object.keys(t).map((function(e){return t[e]}))},J={shape:function(t){for(var e=[];t.length;t=t[0])e.push(t.length);return e},flatten:function(t,e,r,n){var i=1;if(e.length)for(var a=0;a&lt;e.length;++a)i*=e[a];else i=0;switch(r=n||Y.allocType(r,i),e.length){case 0:break;case 1:for(n=e[0],e=0;e&lt;n;++e)r[e]=t[e];break;case 2:for(n=e[0],e=e[1],a=i=0;a&lt;n;++a)for(var o=t[a],s=0;s&lt;e;++s)r[i++]=o[s];break;case 3:c(t,e[0],e[1],e[2],r,0);break;default:!function t(e,r,n,i,a){for(var o=1,s=n+1;s&lt;r.length;++s)o*=r[s];var l=r[n];if(4==r.length-n){var u=r[n+1],f=r[n+2];for(r=r[n+3],s=0;s&lt;l;++s)c(e[s],u,f,r,i,a),a+=o}else for(s=0;s&lt;l;++s)t(e[s],r,n+1,i,a),a+=o}(t,e,0,r,0)}return r}},K={&quot;[object Int8Array]&quot;:5120,&quot;[object Int16Array]&quot;:5122,&quot;[object Int32Array]&quot;:5124,&quot;[object Uint8Array]&quot;:5121,&quot;[object Uint8ClampedArray]&quot;:5121,&quot;[object Uint16Array]&quot;:5123,&quot;[object Uint32Array]&quot;:5125,&quot;[object Float32Array]&quot;:5126,&quot;[object Float64Array]&quot;:5121,&quot;[object ArrayBuffer]&quot;:5121},Q={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},$={dynamic:35048,stream:35040,static:35044},tt=J.flatten,et=J.shape,rt=[];rt[5120]=1,rt[5122]=2,rt[5124]=4,rt[5121]=1,rt[5123]=2,rt[5125]=4,rt[5126]=4;var nt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,&quot;line loop&quot;:2,&quot;line strip&quot;:3,&quot;triangle strip&quot;:5,&quot;triangle fan&quot;:6},it=new Float32Array(1),at=new Uint32Array(it.buffer),ot=[9984,9986,9985,9987],st=[0,6409,6410,6407,6408],lt={};lt[6409]=lt[6406]=lt[6402]=1,lt[34041]=lt[6410]=2,lt[6407]=lt[35904]=3,lt[6408]=lt[35906]=4;var ct=v(&quot;HTMLCanvasElement&quot;),ut=v(&quot;OffscreenCanvas&quot;),ft=v(&quot;CanvasRenderingContext2D&quot;),ht=v(&quot;ImageBitmap&quot;),pt=v(&quot;HTMLImageElement&quot;),dt=v(&quot;HTMLVideoElement&quot;),gt=Object.keys(K).concat([ct,ut,ft,ht,pt,dt]),mt=[];mt[5121]=1,mt[5126]=4,mt[36193]=2,mt[5123]=2,mt[5125]=4;var vt=[];vt[32854]=2,vt[32855]=2,vt[36194]=2,vt[34041]=4,vt[33776]=.5,vt[33777]=.5,vt[33778]=1,vt[33779]=1,vt[35986]=.5,vt[35987]=1,vt[34798]=1,vt[35840]=.5,vt[35841]=.25,vt[35842]=.5,vt[35843]=.25,vt[36196]=.5;var yt=[];yt[32854]=2,yt[32855]=2,yt[36194]=2,yt[33189]=2,yt[36168]=1,yt[34041]=4,yt[35907]=4,yt[34836]=16,yt[34842]=8,yt[34843]=6;var xt=function(t,e,r,n,i){function a(t){this.id=c++,this.refCount=1,this.renderbuffer=t,this.format=32854,this.height=this.width=0,i.profile&amp;&amp;(this.stats={size:0})}function o(e){var r=e.renderbuffer;t.bindRenderbuffer(36161,null),t.deleteRenderbuffer(r),e.renderbuffer=null,e.refCount=0,delete u[e.id],n.renderbufferCount--}var s={rgba4:32854,rgb565:36194,&quot;rgb5 a1&quot;:32855,depth:33189,stencil:36168,&quot;depth stencil&quot;:34041};e.ext_srgb&amp;&amp;(s.srgba=35907),e.ext_color_buffer_half_float&amp;&amp;(s.rgba16f=34842,s.rgb16f=34843),e.webgl_color_buffer_float&amp;&amp;(s.rgba32f=34836);var l=[];Object.keys(s).forEach((function(t){l[s[t]]=t}));var c=0,u={};return a.prototype.decRef=function(){0&gt;=--this.refCount&amp;&amp;o(this)},i.profile&amp;&amp;(n.getTotalRenderbufferSize=function(){var t=0;return Object.keys(u).forEach((function(e){t+=u[e].stats.size})),t}),{create:function(e,r){function o(e,r){var n=0,a=0,u=32854;if(&quot;object&quot;==typeof e&amp;&amp;e?(&quot;shape&quot;in e?(n=0|(a=e.shape)[0],a=0|a[1]):(&quot;radius&quot;in e&amp;&amp;(n=a=0|e.radius),&quot;width&quot;in e&amp;&amp;(n=0|e.width),&quot;height&quot;in e&amp;&amp;(a=0|e.height)),&quot;format&quot;in e&amp;&amp;(u=s[e.format])):&quot;number&quot;==typeof e?(n=0|e,a=&quot;number&quot;==typeof r?0|r:n):e||(n=a=1),n!==c.width||a!==c.height||u!==c.format)return o.width=c.width=n,o.height=c.height=a,c.format=u,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,u,n,a),i.profile&amp;&amp;(c.stats.size=yt[c.format]*c.width*c.height),o.format=l[c.format],o}var c=new a(t.createRenderbuffer());return u[c.id]=c,n.renderbufferCount++,o(e,r),o.resize=function(e,r){var n=0|e,a=0|r||n;return n===c.width&amp;&amp;a===c.height||(o.width=c.width=n,o.height=c.height=a,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,c.format,n,a),i.profile&amp;&amp;(c.stats.size=yt[c.format]*c.width*c.height)),o},o._reglType=&quot;renderbuffer&quot;,o._renderbuffer=c,i.profile&amp;&amp;(o.stats=c.stats),o.destroy=function(){c.decRef()},o},clear:function(){Z(u).forEach(o)},restore:function(){Z(u).forEach((function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,e.renderbuffer),t.renderbufferStorage(36161,e.format,e.width,e.height)})),t.bindRenderbuffer(36161,null)}}},bt=[];bt[6408]=4,bt[6407]=3;var _t=[];_t[5121]=1,_t[5126]=4,_t[36193]=2;var wt=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;w&quot;],Tt=&quot;blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset&quot;.split(&quot; &quot;),kt={0:0,1:1,zero:0,one:1,&quot;src color&quot;:768,&quot;one minus src color&quot;:769,&quot;src alpha&quot;:770,&quot;one minus src alpha&quot;:771,&quot;dst color&quot;:774,&quot;one minus dst color&quot;:775,&quot;dst alpha&quot;:772,&quot;one minus dst alpha&quot;:773,&quot;constant color&quot;:32769,&quot;one minus constant color&quot;:32770,&quot;constant alpha&quot;:32771,&quot;one minus constant alpha&quot;:32772,&quot;src alpha saturate&quot;:776},Mt={never:512,less:513,&quot;&lt;&quot;:513,equal:514,&quot;=&quot;:514,&quot;==&quot;:514,&quot;===&quot;:514,lequal:515,&quot;&lt;=&quot;:515,greater:516,&quot;&gt;&quot;:516,notequal:517,&quot;!=&quot;:517,&quot;!==&quot;:517,gequal:518,&quot;&gt;=&quot;:518,always:519},At={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,&quot;increment wrap&quot;:34055,&quot;decrement wrap&quot;:34056,invert:5386},St={cw:2304,ccw:2305},Et=new D(!1,!1,!1,(function(){}));return function(t){function e(){if(0===J.length)w&amp;&amp;w.update(),tt=null;else{tt=H.next(e),f();for(var t=J.length-1;0&lt;=t;--t){var r=J[t];r&amp;&amp;r(I,null,0)}m.flush(),w&amp;&amp;w.update()}}function r(){!tt&amp;&amp;0&lt;J.length&amp;&amp;(tt=H.next(e))}function n(){tt&amp;&amp;(H.cancel(e),tt=null)}function a(t){t.preventDefault(),n(),K.forEach((function(t){t()}))}function o(t){m.getError(),y.restore(),R.restore(),z.restore(),F.restore(),B.restore(),V.restore(),O.restore(),w&amp;&amp;w.restore(),Y.procs.refresh(),r(),Q.forEach((function(t){t()}))}function s(t){function e(t){var e={},r={};return Object.keys(t).forEach((function(n){var i=t[n];q.isDynamic(i)?r[n]=q.unbox(i,n):e[n]=i})),{dynamic:r,static:e}}var r=e(t.context||{}),n=e(t.uniforms||{}),i=e(t.attributes||{}),a=e(function(t){function e(t){if(t in r){var e=r[t];delete r[t],Object.keys(e).forEach((function(n){r[t+&quot;.&quot;+n]=e[n]}))}}var r=U({},t);return delete r.uniforms,delete r.attributes,delete r.context,delete r.vao,&quot;stencil&quot;in r&amp;&amp;r.stencil.op&amp;&amp;(r.stencil.opBack=r.stencil.opFront=r.stencil.op,delete r.stencil.op),e(&quot;blend&quot;),e(&quot;depth&quot;),e(&quot;cull&quot;),e(&quot;stencil&quot;),e(&quot;polygonOffset&quot;),e(&quot;scissor&quot;),e(&quot;sample&quot;),&quot;vao&quot;in t&amp;&amp;(r.vao=t.vao),r}(t));t={gpuTime:0,cpuTime:0,count:0};var o=(r=Y.compile(a,i,n,r,t)).draw,s=r.batch,l=r.scope,c=[];return U((function(t,e){var r;if(&quot;function&quot;==typeof t)return l.call(this,null,t,0);if(&quot;function&quot;==typeof e)if(&quot;number&quot;==typeof t)for(r=0;r&lt;t;++r)l.call(this,null,e,r);else{if(!Array.isArray(t))return l.call(this,t,e,0);for(r=0;r&lt;t.length;++r)l.call(this,t[r],e,r)}else if(&quot;number&quot;==typeof t){if(0&lt;t)return s.call(this,function(t){for(;c.length&lt;t;)c.push(null);return c}(0|t),0|t)}else{if(!Array.isArray(t))return o.call(this,t);if(t.length)return s.call(this,t,t.length)}}),{stats:t})}function l(t,e){var r=0;Y.procs.poll();var n=e.color;n&amp;&amp;(m.clearColor(+n[0]||0,+n[1]||0,+n[2]||0,+n[3]||0),r|=16384),&quot;depth&quot;in e&amp;&amp;(m.clearDepth(+e.depth),r|=256),&quot;stencil&quot;in e&amp;&amp;(m.clearStencil(0|e.stencil),r|=1024),m.clear(r)}function c(t){return J.push(t),r(),{cancel:function(){var e=j(J,t);J[e]=function t(){var e=j(J,t);J[e]=J[J.length-1],--J.length,0&gt;=J.length&amp;&amp;n()}}}}function u(){var t=X.viewport,e=X.scissor_box;t[0]=t[1]=e[0]=e[1]=0,I.viewportWidth=I.framebufferWidth=I.drawingBufferWidth=t[2]=e[2]=m.drawingBufferWidth,I.viewportHeight=I.framebufferHeight=I.drawingBufferHeight=t[3]=e[3]=m.drawingBufferHeight}function f(){I.tick+=1,I.time=g(),u(),Y.procs.poll()}function h(){u(),Y.procs.refresh(),w&amp;&amp;w.update()}function g(){return(G()-T)/1e3}if(!(t=i(t)))return null;var m=t.gl,v=m.getContextAttributes();m.isContextLost();var y=function(t,e){function r(e){var r;e=e.toLowerCase();try{r=n[e]=t.getExtension(e)}catch(t){}return!!r}for(var n={},i=0;i&lt;e.extensions.length;++i){var a=e.extensions[i];if(!r(a))return e.onDestroy(),e.onDone('&quot;'+a+'&quot; extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return e.optionalExtensions.forEach(r),{extensions:n,restore:function(){Object.keys(n).forEach((function(t){if(n[t]&amp;&amp;!r(t))throw Error(&quot;(regl): error restoring extension &quot;+t)}))}}}(m,t);if(!y)return null;var x=function(){var t={&quot;&quot;:0},e=[&quot;&quot;];return{id:function(r){var n=t[r];return n||(n=t[r]=e.length,e.push(r),n)},str:function(t){return e[t]}}}(),b={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},_=y.extensions,w=function(t,e){function r(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function n(t,e,n){var i=o.pop()||new r;i.startQueryIndex=t,i.endQueryIndex=e,i.sum=0,i.stats=n,s.push(i)}if(!e.ext_disjoint_timer_query)return null;var i=[],a=[],o=[],s=[],l=[],c=[];return{beginQuery:function(t){var r=i.pop()||e.ext_disjoint_timer_query.createQueryEXT();e.ext_disjoint_timer_query.beginQueryEXT(35007,r),a.push(r),n(a.length-1,a.length,t)},endQuery:function(){e.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:n,update:function(){var t,r;if(0!==(t=a.length)){c.length=Math.max(c.length,t+1),l.length=Math.max(l.length,t+1),l[0]=0;var n=c[0]=0;for(r=t=0;r&lt;a.length;++r){var u=a[r];e.ext_disjoint_timer_query.getQueryObjectEXT(u,34919)?(n+=e.ext_disjoint_timer_query.getQueryObjectEXT(u,34918),i.push(u)):a[t++]=u,l[r+1]=n,c[r+1]=t}for(a.length=t,r=t=0;r&lt;s.length;++r){var f=(n=s[r]).startQueryIndex;u=n.endQueryIndex;n.sum+=l[u]-l[f],f=c[f],(u=c[u])===f?(n.stats.gpuTime+=n.sum/1e6,o.push(n)):(n.startQueryIndex=f,n.endQueryIndex=u,s[t++]=n)}s.length=t}},getNumPendingQueries:function(){return a.length},clear:function(){i.push.apply(i,a);for(var t=0;t&lt;i.length;t++)e.ext_disjoint_timer_query.deleteQueryEXT(i[t]);a.length=0,i.length=0},restore:function(){a.length=0,i.length=0}}}(0,_),T=G(),A=m.drawingBufferWidth,L=m.drawingBufferHeight,I={tick:0,time:0,viewportWidth:A,viewportHeight:L,framebufferWidth:A,framebufferHeight:L,drawingBufferWidth:A,drawingBufferHeight:L,pixelRatio:t.pixelRatio},P=W(m,_),z=p(m,b,t,(function(t){return O.destroyBuffer(t)})),O=S(m,_,P,b,z),D=d(m,_,z,b),R=E(m,x,b,t),F=k(m,_,P,(function(){Y.procs.poll()}),I,b,t),B=xt(m,_,0,b,t),V=M(m,_,P,F,B,b),Y=N(m,x,_,P,z,D,0,V,{},O,R,{elements:null,primitive:4,count:-1,offset:0,instances:-1},I,w,t),X=(x=C(m,V,Y.procs.poll,I),Y.next),Z=m.canvas,J=[],K=[],Q=[],$=[t.onDestroy],tt=null;Z&amp;&amp;(Z.addEventListener(&quot;webglcontextlost&quot;,a,!1),Z.addEventListener(&quot;webglcontextrestored&quot;,o,!1));var et=V.setFBO=s({framebuffer:q.define.call(null,1,&quot;framebuffer&quot;)});return h(),v=U(s,{clear:function(t){if(&quot;framebuffer&quot;in t)if(t.framebuffer&amp;&amp;&quot;framebufferCube&quot;===t.framebuffer_reglType)for(var e=0;6&gt;e;++e)et(U({framebuffer:t.framebuffer.faces[e]},t),l);else et(t,l);else l(0,t)},prop:q.define.bind(null,1),context:q.define.bind(null,2),this:q.define.bind(null,3),draw:s({}),buffer:function(t){return z.create(t,34962,!1,!1)},elements:function(t){return D.create(t,!1)},texture:F.create2D,cube:F.createCube,renderbuffer:B.create,framebuffer:V.create,framebufferCube:V.createCube,vao:O.createVAO,attributes:v,frame:c,on:function(t,e){var r;switch(t){case&quot;frame&quot;:return c(e);case&quot;lost&quot;:r=K;break;case&quot;restore&quot;:r=Q;break;case&quot;destroy&quot;:r=$}return r.push(e),{cancel:function(){for(var t=0;t&lt;r.length;++t)if(r[t]===e){r[t]=r[r.length-1],r.pop();break}}}},limits:P,hasExtension:function(t){return 0&lt;=P.extensions.indexOf(t.toLowerCase())},read:x,destroy:function(){J.length=0,n(),Z&amp;&amp;(Z.removeEventListener(&quot;webglcontextlost&quot;,a),Z.removeEventListener(&quot;webglcontextrestored&quot;,o)),R.clear(),V.clear(),B.clear(),F.clear(),D.clear(),z.clear(),O.clear(),w&amp;&amp;w.clear(),$.forEach((function(t){t()}))},_gl:m,_refresh:h,poll:function(){f(),w&amp;&amp;w.update()},now:g,stats:b}),t.onDone(null,v),v}}))},{}],541:[function(t,e,r){
/*!
 * repeat-string &lt;https://github.com/jonschlinkert/repeat-string&gt;
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */
&quot;use strict&quot;;var n,i=&quot;&quot;;e.exports=function(t,e){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;expected a string&quot;);if(1===e)return t;if(2===e)return t+t;var r=t.length*e;if(n!==t||&quot;undefined&quot;==typeof n)n=t,i=&quot;&quot;;else if(i.length&gt;=r)return i.substr(0,r);for(;r&gt;i.length&amp;&amp;e&gt;1;)1&amp;e&amp;&amp;(i+=t),e&gt;&gt;=1,t+=t;return i=(i+=t).substr(0,r)}},{}],542:[function(t,e,r){(function(t){(function(){e.exports=t.performance&amp;&amp;t.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{}],543:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=t[t.length-1],n=e,i=e-2;i&gt;=0;--i){var a=r,o=t[i];(l=o-((r=a+o)-a))&amp;&amp;(t[--n]=r,r=l)}var s=0;for(i=n;i&lt;e;++i){var l;a=t[i];(l=(o=r)-((r=a+o)-a))&amp;&amp;(t[s++]=l)}return t[s++]=r,t.length=s,t}},{}],544:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-scale&quot;),o=t(&quot;robust-compress&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m[&quot;,r,&quot;][&quot;,n,&quot;]&quot;].join(&quot;&quot;)}return e}function c(t){if(2===t.length)return[&quot;sum(prod(&quot;,t[0][0],&quot;,&quot;,t[1][1],&quot;),prod(-&quot;,t[0][1],&quot;,&quot;,t[1][0],&quot;))&quot;].join(&quot;&quot;);for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,c(s(t,r)),&quot;,&quot;,(n=r,1&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return function t(e){if(1===e.length)return e[0];if(2===e.length)return[&quot;sum(&quot;,e[0],&quot;,&quot;,e[1],&quot;)&quot;].join(&quot;&quot;);var r=e.length&gt;&gt;1;return[&quot;sum(&quot;,t(e.slice(0,r)),&quot;,&quot;,t(e.slice(r)),&quot;)&quot;].join(&quot;&quot;)}(e);var n}function u(t){return new Function(&quot;sum&quot;,&quot;scale&quot;,&quot;prod&quot;,&quot;compress&quot;,[&quot;function robustDeterminant&quot;,t,&quot;(m){return compress(&quot;,c(l(t)),&quot;)};return robustDeterminant&quot;,t].join(&quot;&quot;))(i,a,n,o)}var f=[function(){return[0]},function(t){return[t[0][0]]}];!function(){for(;f.length&lt;6;)f.push(u(f.length));for(var t=[],r=[&quot;function robustDeterminant(m){switch(m.length){&quot;],n=0;n&lt;6;++n)t.push(&quot;det&quot;+n),r.push(&quot;case &quot;,n,&quot;:return det&quot;,n,&quot;(m);&quot;);r.push(&quot;}var det=CACHE[m.length];if(!det)det=CACHE[m.length]=gen(m.length);return det(m);}return robustDeterminant&quot;),t.push(&quot;CACHE&quot;,&quot;gen&quot;,r.join(&quot;&quot;));var i=Function.apply(void 0,t);for(e.exports=i.apply(void 0,f.concat([f,u])),n=0;n&lt;f.length;++n)e.exports[n]=f[n]}()},{&quot;robust-compress&quot;:543,&quot;robust-scale&quot;:550,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],545:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;);e.exports=function(t,e){for(var r=n(t[0],e[0]),a=1;a&lt;t.length;++a)r=i(r,n(t[a],e[a]));return r}},{&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],546:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-subtract&quot;),o=t(&quot;robust-scale&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){if(1===t.length)return t[0];if(2===t.length)return[&quot;sum(&quot;,t[0],&quot;,&quot;,t[1],&quot;)&quot;].join(&quot;&quot;);var e=t.length&gt;&gt;1;return[&quot;sum(&quot;,l(t.slice(0,e)),&quot;,&quot;,l(t.slice(e)),&quot;)&quot;].join(&quot;&quot;)}function c(t,e){if(&quot;m&quot;===t.charAt(0)){if(&quot;w&quot;===e.charAt(0)){var r=t.split(&quot;[&quot;);return[&quot;w&quot;,e.substr(1),&quot;m&quot;,r[0].substr(1)].join(&quot;&quot;)}return[&quot;prod(&quot;,t,&quot;,&quot;,e,&quot;)&quot;].join(&quot;&quot;)}return c(e,t)}function u(t){if(2===t.length)return[[&quot;diff(&quot;,c(t[0][0],t[1][1]),&quot;,&quot;,c(t[1][0],t[0][1]),&quot;)&quot;].join(&quot;&quot;)];for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,l(u(s(t,r))),&quot;,&quot;,(n=r,!0&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return e;var n}function f(t,e){for(var r=[],n=0;n&lt;e-2;++n)r.push([&quot;prod(m&quot;,t,&quot;[&quot;,n,&quot;],m&quot;,t,&quot;[&quot;,n,&quot;])&quot;].join(&quot;&quot;));return l(r)}function h(t){for(var e=[],r=[],c=function(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m&quot;,n,&quot;[&quot;,t-r-2,&quot;]&quot;].join(&quot;&quot;)}return e}(t),h=0;h&lt;t;++h)c[0][h]=&quot;1&quot;,c[t-1][h]=&quot;w&quot;+h;for(h=0;h&lt;t;++h)0==(1&amp;h)?e.push.apply(e,u(s(c,h))):r.push.apply(r,u(s(c,h)));var p=l(e),d=l(r),g=&quot;exactInSphere&quot;+t,m=[];for(h=0;h&lt;t;++h)m.push(&quot;m&quot;+h);var v=[&quot;function &quot;,g,&quot;(&quot;,m.join(),&quot;){&quot;];for(h=0;h&lt;t;++h){v.push(&quot;var w&quot;,h,&quot;=&quot;,f(h,t),&quot;;&quot;);for(var y=0;y&lt;t;++y)y!==h&amp;&amp;v.push(&quot;var w&quot;,h,&quot;m&quot;,y,&quot;=scale(w&quot;,h,&quot;,m&quot;,y,&quot;[0]);&quot;)}return v.push(&quot;var p=&quot;,p,&quot;,n=&quot;,d,&quot;,d=diff(p,n);return d[d.length-1];}return &quot;,g),new Function(&quot;sum&quot;,&quot;diff&quot;,&quot;prod&quot;,&quot;scale&quot;,v.join(&quot;&quot;))(i,a,n,o)}var p=[function(){return 0},function(){return 0},function(){return 0}];function d(t){var e=p[t.length];return e||(e=p[t.length]=h(t.length)),e.apply(void 0,t)}!function(){for(;p.length&lt;=6;)p.push(h(p.length));for(var t=[],r=[&quot;slow&quot;],n=0;n&lt;=6;++n)t.push(&quot;a&quot;+n),r.push(&quot;o&quot;+n);var i=[&quot;function testInSphere(&quot;,t.join(),&quot;){switch(arguments.length){case 0:case 1:return 0;&quot;];for(n=2;n&lt;=6;++n)i.push(&quot;case &quot;,n,&quot;:return o&quot;,n,&quot;(&quot;,t.slice(0,n).join(),&quot;);&quot;);i.push(&quot;}var s=new Array(arguments.length);for(var i=0;i&lt;arguments.length;++i){s[i]=arguments[i]};return slow(s);}return testInSphere&quot;),r.push(i.join(&quot;&quot;));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[d].concat(p)),n=0;n&lt;=6;++n)e.exports[n]=p[n]}()},{&quot;robust-scale&quot;:550,&quot;robust-subtract&quot;:552,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],547:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-determinant&quot;);function i(t){for(var e=&quot;robustLinearSolve&quot;+t+&quot;d&quot;,r=[&quot;function &quot;,e,&quot;(A,b){return [&quot;],i=0;i&lt;t;++i){r.push(&quot;det([&quot;);for(var a=0;a&lt;t;++a){a&gt;0&amp;&amp;r.push(&quot;,&quot;),r.push(&quot;[&quot;);for(var o=0;o&lt;t;++o)o&gt;0&amp;&amp;r.push(&quot;,&quot;),o===i?r.push(&quot;+b[&quot;,a,&quot;]&quot;):r.push(&quot;+A[&quot;,a,&quot;][&quot;,o,&quot;]&quot;);r.push(&quot;]&quot;)}r.push(&quot;]),&quot;)}r.push(&quot;det(A)]}return &quot;,e);var s=new Function(&quot;det&quot;,r.join(&quot;&quot;));return s(t&lt;6?n[t]:n)}var a=[function(){return[0]},function(t,e){return[[e[0]],[t[0][0]]]}];!function(){for(;a.length&lt;6;)a.push(i(a.length));for(var t=[],r=[&quot;function dispatchLinearSolve(A,b){switch(A.length){&quot;],n=0;n&lt;6;++n)t.push(&quot;s&quot;+n),r.push(&quot;case &quot;,n,&quot;:return s&quot;,n,&quot;(A,b);&quot;);r.push(&quot;}var s=CACHE[A.length];if(!s)s=CACHE[A.length]=g(A.length);return s(A,b)}return dispatchLinearSolve&quot;),t.push(&quot;CACHE&quot;,&quot;g&quot;,r.join(&quot;&quot;));var o=Function.apply(void 0,t);for(e.exports=o.apply(void 0,a.concat([a,i])),n=0;n&lt;6;++n)e.exports[n]=a[n]}()},{&quot;robust-determinant&quot;:544}],548:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-scale&quot;),o=t(&quot;robust-subtract&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){if(1===t.length)return t[0];if(2===t.length)return[&quot;sum(&quot;,t[0],&quot;,&quot;,t[1],&quot;)&quot;].join(&quot;&quot;);var e=t.length&gt;&gt;1;return[&quot;sum(&quot;,l(t.slice(0,e)),&quot;,&quot;,l(t.slice(e)),&quot;)&quot;].join(&quot;&quot;)}function c(t){if(2===t.length)return[[&quot;sum(prod(&quot;,t[0][0],&quot;,&quot;,t[1][1],&quot;),prod(-&quot;,t[0][1],&quot;,&quot;,t[1][0],&quot;))&quot;].join(&quot;&quot;)];for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,l(c(s(t,r))),&quot;,&quot;,(n=r,1&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return e;var n}function u(t){for(var e=[],r=[],u=function(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m&quot;,n,&quot;[&quot;,t-r-1,&quot;]&quot;].join(&quot;&quot;)}return e}(t),f=[],h=0;h&lt;t;++h)0==(1&amp;h)?e.push.apply(e,c(s(u,h))):r.push.apply(r,c(s(u,h))),f.push(&quot;m&quot;+h);var p=l(e),d=l(r),g=&quot;orientation&quot;+t+&quot;Exact&quot;,m=[&quot;function &quot;,g,&quot;(&quot;,f.join(),&quot;){var p=&quot;,p,&quot;,n=&quot;,d,&quot;,d=sub(p,n);return d[d.length-1];};return &quot;,g].join(&quot;&quot;);return new Function(&quot;sum&quot;,&quot;prod&quot;,&quot;scale&quot;,&quot;sub&quot;,m)(i,n,a,o)}var f=u(3),h=u(4),p=[function(){return 0},function(){return 0},function(t,e){return e[0]-t[0]},function(t,e,r){var n,i=(t[1]-r[1])*(e[0]-r[0]),a=(t[0]-r[0])*(e[1]-r[1]),o=i-a;if(i&gt;0){if(a&lt;=0)return o;n=i+a}else{if(!(i&lt;0))return o;if(a&gt;=0)return o;n=-(i+a)}var s=33306690738754716e-32*n;return o&gt;=s||o&lt;=-s?o:f(t,e,r)},function(t,e,r,n){var i=t[0]-n[0],a=e[0]-n[0],o=r[0]-n[0],s=t[1]-n[1],l=e[1]-n[1],c=r[1]-n[1],u=t[2]-n[2],f=e[2]-n[2],p=r[2]-n[2],d=a*c,g=o*l,m=o*s,v=i*c,y=i*l,x=a*s,b=u*(d-g)+f*(m-v)+p*(y-x),_=7771561172376103e-31*((Math.abs(d)+Math.abs(g))*Math.abs(u)+(Math.abs(m)+Math.abs(v))*Math.abs(f)+(Math.abs(y)+Math.abs(x))*Math.abs(p));return b&gt;_||-b&gt;_?b:h(t,e,r,n)}];function d(t){var e=p[t.length];return e||(e=p[t.length]=u(t.length)),e.apply(void 0,t)}!function(){for(;p.length&lt;=5;)p.push(u(p.length));for(var t=[],r=[&quot;slow&quot;],n=0;n&lt;=5;++n)t.push(&quot;a&quot;+n),r.push(&quot;o&quot;+n);var i=[&quot;function getOrientation(&quot;,t.join(),&quot;){switch(arguments.length){case 0:case 1:return 0;&quot;];for(n=2;n&lt;=5;++n)i.push(&quot;case &quot;,n,&quot;:return o&quot;,n,&quot;(&quot;,t.slice(0,n).join(),&quot;);&quot;);i.push(&quot;}var s=new Array(arguments.length);for(var i=0;i&lt;arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation&quot;),r.push(i.join(&quot;&quot;));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[d].concat(p)),n=0;n&lt;=5;++n)e.exports[n]=p[n]}()},{&quot;robust-scale&quot;:550,&quot;robust-subtract&quot;:552,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],549:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-sum&quot;),i=t(&quot;robust-scale&quot;);e.exports=function(t,e){if(1===t.length)return i(e,t[0]);if(1===e.length)return i(t,e[0]);if(0===t.length||0===e.length)return[0];var r=[0];if(t.length&lt;e.length)for(var a=0;a&lt;t.length;++a)r=n(r,i(e,t[a]));else for(a=0;a&lt;e.length;++a)r=n(r,i(t,e[a]));return r}},{&quot;robust-scale&quot;:550,&quot;robust-sum&quot;:553}],550:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;two-sum&quot;);e.exports=function(t,e){var r=t.length;if(1===r){var a=n(t[0],e);return a[0]?a:[a[1]]}var o=new Array(2*r),s=[.1,.1],l=[.1,.1],c=0;n(t[0],e,s),s[0]&amp;&amp;(o[c++]=s[0]);for(var u=1;u&lt;r;++u){n(t[u],e,l);var f=s[1];i(f,l[0],s),s[0]&amp;&amp;(o[c++]=s[0]);var h=l[1],p=s[1],d=h+p,g=p-(d-h);s[1]=d,g&amp;&amp;(o[c++]=g)}s[1]&amp;&amp;(o[c++]=s[1]);0===c&amp;&amp;(o[c++]=0);return o.length=c,o}},{&quot;two-product&quot;:582,&quot;two-sum&quot;:583}],551:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,i){var a=n(t,r,i),o=n(e,r,i);if(a&gt;0&amp;&amp;o&gt;0||a&lt;0&amp;&amp;o&lt;0)return!1;var s=n(r,t,e),l=n(i,t,e);if(s&gt;0&amp;&amp;l&gt;0||s&lt;0&amp;&amp;l&lt;0)return!1;if(0===a&amp;&amp;0===o&amp;&amp;0===s&amp;&amp;0===l)return function(t,e,r,n){for(var i=0;i&lt;2;++i){var a=t[i],o=e[i],s=Math.min(a,o),l=Math.max(a,o),c=r[i],u=n[i],f=Math.min(c,u);if(Math.max(c,u)&lt;s||l&lt;f)return!1}return!0}(t,e,r,i);return!0};var n=t(&quot;robust-orientation&quot;)[3]},{&quot;robust-orientation&quot;:548}],552:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&amp;&amp;1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],-e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=-e[c],d=u(p);h&lt;d?(a=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(a=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p)));l&lt;r&amp;&amp;h&lt;d||c&gt;=n?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p)));var g,m,v=i+a,y=v-i,x=a-y,b=x,_=v;for(;l&lt;r&amp;&amp;c&lt;n;)h&lt;d?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p))),(x=(a=b)-(y=(v=i+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g;for(;l&lt;r;)(x=(a=b)-(y=(v=(i=f)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(l+=1)&lt;r&amp;&amp;(f=t[l]);for(;c&lt;n;)(x=(a=b)-(y=(v=(i=p)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(c+=1)&lt;n&amp;&amp;(p=-e[c]);b&amp;&amp;(o[s++]=b);_&amp;&amp;(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],553:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&amp;&amp;1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=e[c],d=u(p);h&lt;d?(a=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(a=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p)));l&lt;r&amp;&amp;h&lt;d||c&gt;=n?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p)));var g,m,v=i+a,y=v-i,x=a-y,b=x,_=v;for(;l&lt;r&amp;&amp;c&lt;n;)h&lt;d?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p))),(x=(a=b)-(y=(v=i+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g;for(;l&lt;r;)(x=(a=b)-(y=(v=(i=f)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(l+=1)&lt;r&amp;&amp;(f=t[l]);for(;c&lt;n;)(x=(a=b)-(y=(v=(i=p)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(c+=1)&lt;n&amp;&amp;(p=e[c]);b&amp;&amp;(o[s++]=b);_&amp;&amp;(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],554:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t&lt;0?-1:t&gt;0?1:0}},{}],555:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return i(n(t))};var n=t(&quot;boundary-cells&quot;),i=t(&quot;reduce-simplicial-complex&quot;)},{&quot;boundary-cells&quot;:100,&quot;reduce-simplicial-complex&quot;:533}],556:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,s){r=r||0,&quot;undefined&quot;==typeof s&amp;&amp;(s=function(t){for(var e=t.length,r=0,n=0;n&lt;e;++n)r=0|Math.max(r,t[n].length);return r-1}(t));if(0===t.length||s&lt;1)return{cells:[],vertexIds:[],vertexWeights:[]};var l=function(t,e){for(var r=t.length,n=i.mallocUint8(r),a=0;a&lt;r;++a)n[a]=t[a]&lt;e|0;return n}(e,+r),c=function(t,e){for(var r=t.length,o=e*(e+1)/2*r|0,s=i.mallocUint32(2*o),l=0,c=0;c&lt;r;++c)for(var u=t[c],f=(e=u.length,0);f&lt;e;++f)for(var h=0;h&lt;f;++h){var p=u[h],d=u[f];s[l++]=0|Math.min(p,d),s[l++]=0|Math.max(p,d)}a(n(s,[l/2|0,2]));var g=2;for(c=2;c&lt;l;c+=2)s[c-2]===s[c]&amp;&amp;s[c-1]===s[c+1]||(s[g++]=s[c],s[g++]=s[c+1]);return n(s,[g/2|0,2])}(t,s),u=function(t,e,r,a){for(var o=t.data,s=t.shape[0],l=i.mallocDouble(s),c=0,u=0;u&lt;s;++u){var f=o[2*u],h=o[2*u+1];if(r[f]!==r[h]){var p=e[f],d=e[h];o[2*c]=f,o[2*c+1]=h,l[c++]=(d-a)/(d-p)}}return t.shape[0]=c,n(l,[c])}(c,e,l,+r),f=function(t,e){var r=i.mallocInt32(2*e),n=t.shape[0],a=t.data;r[0]=0;for(var o=0,s=0;s&lt;n;++s){var l=a[2*s];if(l!==o){for(r[2*o+1]=s;++o&lt;l;)r[2*o]=s,r[2*o+1]=s;r[2*o]=s}}r[2*o+1]=n;for(;++o&lt;e;)r[2*o]=r[2*o+1]=n;return r}(c,0|e.length),h=o(s)(t,c.data,f,l),p=function(t){for(var e=0|t.shape[0],r=t.data,n=new Array(e),i=0;i&lt;e;++i)n[i]=[r[2*i],r[2*i+1]];return n}(c),d=[].slice.call(u.data,0,u.shape[0]);return i.free(l),i.free(c.data),i.free(u.data),i.free(f),{cells:h,vertexIds:p,vertexWeights:d}};var n=t(&quot;ndarray&quot;),i=t(&quot;typedarray-pool&quot;),a=t(&quot;ndarray-sort&quot;),o=t(&quot;./lib/codegen&quot;)},{&quot;./lib/codegen&quot;:557,ndarray:495,&quot;ndarray-sort&quot;:494,&quot;typedarray-pool&quot;:595}],557:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=a[t];e||(e=a[t]=function(t){var e=0,r=new Array(t+1);r[0]=[[]];for(var a=1;a&lt;=t;++a)for(var o=r[a]=i(a),s=0;s&lt;o.length;++s)e=Math.max(e,o[a].length);var l=[&quot;function B(C,E,i,j){&quot;,&quot;var a=Math.min(i,j)|0,b=Math.max(i,j)|0,l=C[2*a],h=C[2*a+1];&quot;,&quot;while(l&lt;h){&quot;,&quot;var m=(l+h)&gt;&gt;1,v=E[2*m+1];&quot;,&quot;if(v===b){return m}&quot;,&quot;if(b&lt;v){h=m}else{l=m+1}&quot;,&quot;}&quot;,&quot;return l;&quot;,&quot;};&quot;,&quot;function getContour&quot;,t,&quot;d(F,E,C,S){&quot;,&quot;var n=F.length,R=[];&quot;,&quot;for(var i=0;i&lt;n;++i){var c=F[i],l=c.length;&quot;];function c(t){if(!(t.length&lt;=0)){l.push(&quot;R.push(&quot;);for(var e=0;e&lt;t.length;++e){var r=t[e];e&gt;0&amp;&amp;l.push(&quot;,&quot;),l.push(&quot;[&quot;);for(var n=0;n&lt;r.length;++n){var i=r[n];n&gt;0&amp;&amp;l.push(&quot;,&quot;),l.push(&quot;B(C,E,c[&quot;,i[0],&quot;],c[&quot;,i[1],&quot;])&quot;)}l.push(&quot;]&quot;)}l.push(&quot;);&quot;)}}for(a=t+1;a&gt;1;--a){a&lt;t+1&amp;&amp;l.push(&quot;else &quot;),l.push(&quot;if(l===&quot;,a,&quot;){&quot;);var u=[];for(s=0;s&lt;a;++s)u.push(&quot;(S[c[&quot;+s+&quot;]]&lt;&lt;&quot;+s+&quot;)&quot;);l.push(&quot;var M=&quot;,u.join(&quot;+&quot;),&quot;;if(M===0||M===&quot;,(1&lt;&lt;a)-1,&quot;){continue}switch(M){&quot;);for(o=r[a-1],s=0;s&lt;o.length;++s)l.push(&quot;case &quot;,s,&quot;:&quot;),c(o[s]),l.push(&quot;break;&quot;);l.push(&quot;}}&quot;)}return l.push(&quot;}return R;};return getContour&quot;,t,&quot;d&quot;),new Function(&quot;pool&quot;,l.join(&quot;&quot;))(n)}(t));return e};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;marching-simplex-table&quot;),a={}},{&quot;marching-simplex-table&quot;:474,&quot;typedarray-pool&quot;:595}],558:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bit-twiddle&quot;),i=t(&quot;union-find&quot;);function a(t,e){var r=t.length,n=t.length-e.length,i=Math.min;if(n)return n;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return(s=t[0]+t[1]-e[0]-e[1])||i(t[0],t[1])-i(e[0],e[1]);case 3:var a=t[0]+t[1],o=e[0]+e[1];if(s=a+t[2]-(o+e[2]))return s;var s,l=i(t[0],t[1]),c=i(e[0],e[1]);return(s=i(l,t[2])-i(c,e[2]))||i(l+t[2],a)-i(c+e[2],o);default:var u=t.slice(0);u.sort();var f=e.slice(0);f.sort();for(var h=0;h&lt;r;++h)if(n=u[h]-f[h])return n;return 0}}function o(t,e){return a(t[0],e[0])}function s(t,e){if(e){for(var r=t.length,n=new Array(r),i=0;i&lt;r;++i)n[i]=[t[i],e[i]];n.sort(o);for(i=0;i&lt;r;++i)t[i]=n[i][0],e[i]=n[i][1];return t}return t.sort(a),t}function l(t){if(0===t.length)return[];for(var e=1,r=t.length,n=1;n&lt;r;++n){var i=t[n];if(a(i,t[n-1])){if(n===e){e++;continue}t[e++]=i}}return t.length=e,t}function c(t,e){for(var r=0,n=t.length-1,i=-1;r&lt;=n;){var o=r+n&gt;&gt;1,s=a(t[o],e);s&lt;=0?(0===s&amp;&amp;(i=o),r=o+1):s&gt;0&amp;&amp;(n=o-1)}return i}function u(t,e){for(var r=new Array(t.length),i=0,o=r.length;i&lt;o;++i)r[i]=[];for(var s=[],l=(i=0,e.length);i&lt;l;++i)for(var u=e[i],f=u.length,h=1,p=1&lt;&lt;f;h&lt;p;++h){s.length=n.popCount(h);for(var d=0,g=0;g&lt;f;++g)h&amp;1&lt;&lt;g&amp;&amp;(s[d++]=u[g]);var m=c(t,s);if(!(m&lt;0))for(;r[m++].push(i),!(m&gt;=t.length||0!==a(t[m],s)););}return r}function f(t,e){if(e&lt;0)return[];for(var r=[],i=(1&lt;&lt;e+1)-1,a=0;a&lt;t.length;++a)for(var o=t[a],l=i;l&lt;1&lt;&lt;o.length;l=n.nextCombination(l)){for(var c=new Array(e+1),u=0,f=0;f&lt;o.length;++f)l&amp;1&lt;&lt;f&amp;&amp;(c[u++]=o[f]);r.push(c)}return s(r)}r.dimension=function(t){for(var e=0,r=Math.max,n=0,i=t.length;n&lt;i;++n)e=r(e,t[n].length);return e-1},r.countVertices=function(t){for(var e=-1,r=Math.max,n=0,i=t.length;n&lt;i;++n)for(var a=t[n],o=0,s=a.length;o&lt;s;++o)e=r(e,a[o]);return e+1},r.cloneCells=function(t){for(var e=new Array(t.length),r=0,n=t.length;r&lt;n;++r)e[r]=t[r].slice(0);return e},r.compareCells=a,r.normalize=s,r.unique=l,r.findCell=c,r.incidence=u,r.dual=function(t,e){if(!e)return u(l(f(t,0)),t);for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=[];n=0;for(var i=t.length;n&lt;i;++n)for(var a=t[n],o=0,s=a.length;o&lt;s;++o)r[a[o]].push(n);return r},r.explode=function(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0|i.length,o=1,l=1&lt;&lt;a;o&lt;l;++o){for(var c=[],u=0;u&lt;a;++u)o&gt;&gt;&gt;u&amp;1&amp;&amp;c.push(i[u]);e.push(c)}return s(e)},r.skeleton=f,r.boundary=function(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;++a){for(var l=new Array(i.length-1),c=0,u=0;c&lt;o;++c)c!==a&amp;&amp;(l[u++]=i[c]);e.push(l)}return s(e)},r.connectedComponents=function(t,e){return e?function(t,e){for(var r=new i(e),n=0;n&lt;t.length;++n)for(var a=t[n],o=0;o&lt;a.length;++o)for(var s=o+1;s&lt;a.length;++s)r.link(a[o],a[s]);var l=[],c=r.ranks;for(n=0;n&lt;c.length;++n)c[n]=-1;for(n=0;n&lt;t.length;++n){var u=r.find(t[n][0]);c[u]&lt;0?(c[u]=l.length,l.push([t[n].slice(0)])):l[c[u]].push(t[n].slice(0))}return l}(t,e):function(t){for(var e=l(s(f(t,0))),r=new i(e.length),n=0;n&lt;t.length;++n)for(var a=t[n],o=0;o&lt;a.length;++o)for(var u=c(e,[a[o]]),h=o+1;h&lt;a.length;++h)r.link(u,c(e,[a[h]]));var p=[],d=r.ranks;for(n=0;n&lt;d.length;++n)d[n]=-1;for(n=0;n&lt;t.length;++n){var g=r.find(c(e,[t[n][0]]));d[g]&lt;0?(d[g]=p.length,p.push([t[n].slice(0)])):p[d[g]].push(t[n].slice(0))}return p}(t)}},{&quot;bit-twiddle&quot;:97,&quot;union-find&quot;:596}],559:[function(t,e,r){arguments[4][97][0].apply(r,arguments)},{dup:97}],560:[function(t,e,r){arguments[4][558][0].apply(r,arguments)},{&quot;bit-twiddle&quot;:559,dup:558,&quot;union-find&quot;:561}],561:[function(t,e,r){&quot;use strict&quot;;function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e&lt;t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n,n.prototype.length=function(){return this.roots.length},n.prototype.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},n.prototype.find=function(t){for(var e=this.roots;e[t]!==t;){var r=e[t];e[t]=e[r],t=r}return t},n.prototype.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o&lt;s?a[r]=n:s&lt;o?a[n]=r:(a[n]=r,++i[r])}}},{}],562:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){for(var a=e.length,o=t.length,s=new Array(a),l=new Array(a),c=new Array(a),u=new Array(a),f=0;f&lt;a;++f)s[f]=l[f]=-1,c[f]=1/0,u[f]=!1;for(f=0;f&lt;o;++f){var h=t[f];if(2!==h.length)throw new Error(&quot;Input must be a graph&quot;);var p=h[1],d=h[0];-1!==l[d]?l[d]=-2:l[d]=p,-1!==s[p]?s[p]=-2:s[p]=d}function g(t){if(u[t])return 1/0;var r,i,a,o,c,f=s[t],h=l[t];return f&lt;0||h&lt;0?1/0:(r=e[t],i=e[f],a=e[h],o=Math.abs(n(r,i,a)),c=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)),o/c)}function m(t,e){var r=k[t],n=k[e];k[t]=n,k[e]=r,M[r]=e,M[n]=t}function v(t){return c[k[t]]}function y(t){return 1&amp;t?t-1&gt;&gt;1:(t&gt;&gt;1)-1}function x(t){for(var e=v(t);;){var r=e,n=2*t+1,i=2*(t+1),a=t;if(n&lt;A){var o=v(n);o&lt;r&amp;&amp;(a=n,r=o)}if(i&lt;A)v(i)&lt;r&amp;&amp;(a=i);if(a===t)return t;m(t,a),t=a}}function b(t){for(var e=v(t);t&gt;0;){var r=y(t);if(r&gt;=0)if(e&lt;v(r)){m(t,r),t=r;continue}return t}}function _(){if(A&gt;0){var t=k[0];return m(0,A-1),A-=1,x(0),t}return-1}function w(t,e){var r=k[t];return c[r]===e?t:(c[r]=-1/0,b(t),_(),c[r]=e,b((A+=1)-1))}function T(t){if(!u[t]){u[t]=!0;var e=s[t],r=l[t];s[r]&gt;=0&amp;&amp;(s[r]=e),l[e]&gt;=0&amp;&amp;(l[e]=r),M[e]&gt;=0&amp;&amp;w(M[e],g(e)),M[r]&gt;=0&amp;&amp;w(M[r],g(r))}}var k=[],M=new Array(a);for(f=0;f&lt;a;++f){(c[f]=g(f))&lt;1/0?(M[f]=k.length,k.push(f)):M[f]=-1}var A=k.length;for(f=A&gt;&gt;1;f&gt;=0;--f)x(f);for(;;){var S=_();if(S&lt;0||c[S]&gt;r)break;T(S)}var E=[];for(f=0;f&lt;a;++f)u[f]||(M[f]=E.length,E.push(e[f].slice()));E.length;function C(t,e){if(t[e]&lt;0)return e;var r=e,n=e;do{var i=t[n];if(!u[n]||i&lt;0||i===n)break;if(i=t[n=i],!u[n]||i&lt;0||i===n)break;n=i,r=t[r]}while(r!==n);for(var a=e;a!==n;a=t[a])t[a]=n;return n}var L=[];return t.forEach((function(t){var e=C(s,t[0]),r=C(l,t[1]);if(e&gt;=0&amp;&amp;r&gt;=0&amp;&amp;e!==r){var n=M[e],i=M[r];n!==i&amp;&amp;L.push([n,i])}})),i.unique(i.normalize(L)),{positions:E,edges:L}};var n=t(&quot;robust-orientation&quot;),i=t(&quot;simplicial-complex&quot;)},{&quot;robust-orientation&quot;:548,&quot;simplicial-complex&quot;:560}],563:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,a,o,s;if(e[0][0]&lt;e[1][0])r=e[0],a=e[1];else{if(!(e[0][0]&gt;e[1][0]))return i(e,t);r=e[1],a=e[0]}if(t[0][0]&lt;t[1][0])o=t[0],s=t[1];else{if(!(t[0][0]&gt;t[1][0]))return-i(t,e);o=t[1],s=t[0]}var l=n(r,a,s),c=n(r,a,o);if(l&lt;0){if(c&lt;=0)return l}else if(l&gt;0){if(c&gt;=0)return l}else if(c)return c;if(l=n(s,o,a),c=n(s,o,r),l&lt;0){if(c&lt;=0)return l}else if(l&gt;0){if(c&gt;=0)return l}else if(c)return c;return a[0]-s[0]};var n=t(&quot;robust-orientation&quot;);function i(t,e){var r,i,a,o;if(e[0][0]&lt;e[1][0])r=e[0],i=e[1];else{if(!(e[0][0]&gt;e[1][0])){var s=Math.min(t[0][1],t[1][1]),l=Math.max(t[0][1],t[1][1]),c=Math.min(e[0][1],e[1][1]),u=Math.max(e[0][1],e[1][1]);return l&lt;c?l-c:s&gt;u?s-u:l-u}r=e[1],i=e[0]}t[0][1]&lt;t[1][1]?(a=t[0],o=t[1]):(a=t[1],o=t[0]);var f=n(i,r,a);return f||((f=n(i,r,o))||o-i)}},{&quot;robust-orientation&quot;:548}],564:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],565:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=2*e,n=new Array(r),a=0;a&lt;e;++a){var l=t[a],c=l[0][0]&lt;l[1][0];n[2*a]=new f(l[0][0],l,c,a),n[2*a+1]=new f(l[1][0],l,!c,a)}n.sort((function(t,e){var r=t.x-e.x;return r||((r=t.create-e.create)||Math.min(t.segment[0][1],t.segment[1][1])-Math.min(e.segment[0][1],e.segment[1][1]))}));var h=i(o),p=[],d=[],g=[];for(a=0;a&lt;r;){for(var m=n[a].x,v=[];a&lt;r;){var y=n[a];if(y.x!==m)break;a+=1,y.segment[0][0]===y.x&amp;&amp;y.segment[1][0]===y.x?y.create&amp;&amp;(y.segment[0][1]&lt;y.segment[1][1]?(v.push(new u(y.segment[0][1],y.index,!0,!0)),v.push(new u(y.segment[1][1],y.index,!1,!1))):(v.push(new u(y.segment[1][1],y.index,!0,!1)),v.push(new u(y.segment[0][1],y.index,!1,!0)))):h=y.create?h.insert(y.segment,y.index):h.remove(y.segment)}p.push(h.root),d.push(m),g.push(v)}return new s(p,d,g)};var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;functional-red-black-tree&quot;),a=t(&quot;robust-orientation&quot;),o=t(&quot;./lib/order-segments&quot;);function s(t,e,r){this.slabs=t,this.coordinates=e,this.horizontal=r}function l(t,e){return t.y-e}function c(t,e){for(var r=null;t;){var n,i,o=t.key;o[0][0]&lt;o[1][0]?(n=o[0],i=o[1]):(n=o[1],i=o[0]);var s=a(n,i,e);if(s&lt;0)t=t.left;else if(s&gt;0)if(e[0]!==o[1][0])r=t,t=t.right;else{if(l=c(t.right,e))return l;t=t.left}else{if(e[0]!==o[1][0])return t;var l;if(l=c(t.right,e))return l;t=t.left}}return r}function u(t,e,r,n){this.y=t,this.index=e,this.start=r,this.closed=n}function f(t,e,r,n){this.x=t,this.segment=e,this.create=r,this.index=n}s.prototype.castUp=function(t){var e=n.le(this.coordinates,t[0]);if(e&lt;0)return-1;this.slabs[e];var r=c(this.slabs[e],t),i=-1;if(r&amp;&amp;(i=r.value),this.coordinates[e]===t[0]){var s=null;if(r&amp;&amp;(s=r.key),e&gt;0){var u=c(this.slabs[e-1],t);u&amp;&amp;(s?o(u.key,s)&gt;0&amp;&amp;(s=u.key,i=u.value):(i=u.value,s=u.key))}var f=this.horizontal[e];if(f.length&gt;0){var h=n.ge(f,t[1],l);if(h&lt;f.length){var p=f[h];if(t[1]===p.y){if(p.closed)return p.index;for(;h&lt;f.length-1&amp;&amp;f[h+1].y===t[1];)if((p=f[h+=1]).closed)return p.index;if(p.y===t[1]&amp;&amp;!p.start){if((h+=1)&gt;=f.length)return i;p=f[h]}}if(p.start)if(s){var d=a(s[0],s[1],[t[0],p.y]);s[0][0]&gt;s[1][0]&amp;&amp;(d=-d),d&gt;0&amp;&amp;(i=p.index)}else i=p.index;else p.y!==t[1]&amp;&amp;(i=p.index)}}}return i}},{&quot;./lib/order-segments&quot;:563,&quot;binary-search-bounds&quot;:564,&quot;functional-red-black-tree&quot;:247,&quot;robust-orientation&quot;:548}],566:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-dot-product&quot;),i=t(&quot;robust-sum&quot;);function a(t,e){var r=i(n(t,e),[e[e.length-1]]);return r[r.length-1]}function o(t,e,r,n){var i=-e/(n-e);i&lt;0?i=0:i&gt;1&amp;&amp;(i=1);for(var a=1-i,o=t.length,s=new Array(o),l=0;l&lt;o;++l)s[l]=i*t[l]+a*r[l];return s}e.exports=function(t,e){for(var r=[],n=[],i=a(t[t.length-1],e),s=t[t.length-1],l=t[0],c=0;c&lt;t.length;++c,s=l){var u=a(l=t[c],e);if(i&lt;0&amp;&amp;u&gt;0||i&gt;0&amp;&amp;u&lt;0){var f=o(s,u,l,i);r.push(f),n.push(f.slice())}u&lt;0?n.push(l.slice()):u&gt;0?r.push(l.slice()):(r.push(l.slice()),n.push(l.slice())),i=u}return{positive:r,negative:n}},e.exports.positive=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l&lt;t.length;++l,i=s){var c=a(s=t[l],e);(n&lt;0&amp;&amp;c&gt;0||n&gt;0&amp;&amp;c&lt;0)&amp;&amp;r.push(o(i,c,s,n)),c&gt;=0&amp;&amp;r.push(s.slice()),n=c}return r},e.exports.negative=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l&lt;t.length;++l,i=s){var c=a(s=t[l],e);(n&lt;0&amp;&amp;c&gt;0||n&gt;0&amp;&amp;c&lt;0)&amp;&amp;r.push(o(i,c,s,n)),c&lt;=0&amp;&amp;r.push(s.slice()),n=c}return r}},{&quot;robust-dot-product&quot;:545,&quot;robust-sum&quot;:553}],567:[function(t,e,r){!function(){&quot;use strict&quot;;var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(t){return i(o(t),arguments)}function n(t,r){return e.apply(null,[t].concat(r||[]))}function i(r,n){var i,a,o,s,l,c,u,f,h,p=1,d=r.length,g=&quot;&quot;;for(a=0;a&lt;d;a++)if(&quot;string&quot;==typeof r[a])g+=r[a];else if(&quot;object&quot;==typeof r[a]){if((s=r[a]).keys)for(i=n[p],o=0;o&lt;s.keys.length;o++){if(null==i)throw new Error(e('[sprintf] Cannot access property &quot;%s&quot; of undefined value &quot;%s&quot;',s.keys[o],s.keys[o-1]));i=i[s.keys[o]]}else i=s.param_no?n[s.param_no]:n[p++];if(t.not_type.test(s.type)&amp;&amp;t.not_primitive.test(s.type)&amp;&amp;i instanceof Function&amp;&amp;(i=i()),t.numeric_arg.test(s.type)&amp;&amp;&quot;number&quot;!=typeof i&amp;&amp;isNaN(i))throw new TypeError(e(&quot;[sprintf] expecting number but found %T&quot;,i));switch(t.number.test(s.type)&amp;&amp;(f=i&gt;=0),s.type){case&quot;b&quot;:i=parseInt(i,10).toString(2);break;case&quot;c&quot;:i=String.fromCharCode(parseInt(i,10));break;case&quot;d&quot;:case&quot;i&quot;:i=parseInt(i,10);break;case&quot;j&quot;:i=JSON.stringify(i,null,s.width?parseInt(s.width):0);break;case&quot;e&quot;:i=s.precision?parseFloat(i).toExponential(s.precision):parseFloat(i).toExponential();break;case&quot;f&quot;:i=s.precision?parseFloat(i).toFixed(s.precision):parseFloat(i);break;case&quot;g&quot;:i=s.precision?String(Number(i.toPrecision(s.precision))):parseFloat(i);break;case&quot;o&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(8);break;case&quot;s&quot;:i=String(i),i=s.precision?i.substring(0,s.precision):i;break;case&quot;t&quot;:i=String(!!i),i=s.precision?i.substring(0,s.precision):i;break;case&quot;T&quot;:i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=s.precision?i.substring(0,s.precision):i;break;case&quot;u&quot;:i=parseInt(i,10)&gt;&gt;&gt;0;break;case&quot;v&quot;:i=i.valueOf(),i=s.precision?i.substring(0,s.precision):i;break;case&quot;x&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(16);break;case&quot;X&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(16).toUpperCase()}t.json.test(s.type)?g+=i:(!t.number.test(s.type)||f&amp;&amp;!s.sign?h=&quot;&quot;:(h=f?&quot;+&quot;:&quot;-&quot;,i=i.toString().replace(t.sign,&quot;&quot;)),c=s.pad_char?&quot;0&quot;===s.pad_char?&quot;0&quot;:s.pad_char.charAt(1):&quot; &quot;,u=s.width-(h+i).length,l=s.width&amp;&amp;u&gt;0?c.repeat(u):&quot;&quot;,g+=s.align?h+i+l:&quot;0&quot;===c?h+l+i:l+h+i)}return g}var a=Object.create(null);function o(e){if(a[e])return a[e];for(var r,n=e,i=[],o=0;n;){if(null!==(r=t.text.exec(n)))i.push(r[0]);else if(null!==(r=t.modulo.exec(n)))i.push(&quot;%&quot;);else{if(null===(r=t.placeholder.exec(n)))throw new SyntaxError(&quot;[sprintf] unexpected placeholder&quot;);if(r[2]){o|=1;var s=[],l=r[2],c=[];if(null===(c=t.key.exec(l)))throw new SyntaxError(&quot;[sprintf] failed to parse named argument key&quot;);for(s.push(c[1]);&quot;&quot;!==(l=l.substring(c[0].length));)if(null!==(c=t.key_access.exec(l)))s.push(c[1]);else{if(null===(c=t.index_access.exec(l)))throw new SyntaxError(&quot;[sprintf] failed to parse named argument key&quot;);s.push(c[1])}r[2]=s}else o|=2;if(3===o)throw new Error(&quot;[sprintf] mixing positional and named placeholders is not (yet) supported&quot;);i.push({placeholder:r[0],param_no:r[1],keys:r[2],sign:r[3],pad_char:r[4],align:r[5],width:r[6],precision:r[7],type:r[8]})}n=n.substring(r[0].length)}return a[e]=i}&quot;undefined&quot;!=typeof r&amp;&amp;(r.sprintf=e,r.vsprintf=n),&quot;undefined&quot;!=typeof window&amp;&amp;(window.sprintf=e,window.vsprintf=n)}()},{}],568:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parenthesis&quot;);e.exports=function(t,e,r){if(null==t)throw Error(&quot;First argument should be a string&quot;);if(null==e)throw Error(&quot;Separator should be a string or a RegExp&quot;);r?(&quot;string&quot;==typeof r||Array.isArray(r))&amp;&amp;(r={ignore:r}):r={},null==r.escape&amp;&amp;(r.escape=!0),null==r.ignore?r.ignore=[&quot;[]&quot;,&quot;()&quot;,&quot;{}&quot;,&quot;&lt;&gt;&quot;,'&quot;&quot;',&quot;''&quot;,&quot;``&quot;,&quot;\u201c\u201d&quot;,&quot;\xab\xbb&quot;]:(&quot;string&quot;==typeof r.ignore&amp;&amp;(r.ignore=[r.ignore]),r.ignore=r.ignore.map((function(t){return 1===t.length&amp;&amp;(t+=t),t})));var i=n.parse(t,{flat:!0,brackets:r.ignore}),a=i[0].split(e);if(r.escape){for(var o=[],s=0;s&lt;a.length;s++){var l=a[s],c=a[s+1];&quot;\\&quot;===l[l.length-1]&amp;&amp;&quot;\\&quot;!==l[l.length-2]?(o.push(l+e+c),s++):o.push(l)}a=o}for(s=0;s&lt;a.length;s++)i[0]=a[s],a[s]=n.stringify(i,{flat:!0});return a}},{parenthesis:503}],569:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=new Array(e),n=new Array(e),i=new Array(e),a=new Array(e),o=new Array(e),s=new Array(e),l=0;l&lt;e;++l)r[l]=-1,n[l]=0,i[l]=!1,a[l]=0,o[l]=-1,s[l]=[];var c,u=0,f=[],h=[];function p(e){var l=[e],c=[e];for(r[e]=n[e]=u,i[e]=!0,u+=1;c.length&gt;0;){e=c[c.length-1];var p=t[e];if(a[e]&lt;p.length){for(var d=a[e];d&lt;p.length;++d){var g=p[d];if(r[g]&lt;0){r[g]=n[g]=u,i[g]=!0,u+=1,l.push(g),c.push(g);break}i[g]&amp;&amp;(n[e]=0|Math.min(n[e],n[g])),o[g]&gt;=0&amp;&amp;s[e].push(o[g])}a[e]=d}else{if(n[e]===r[e]){var m=[],v=[],y=0;for(d=l.length-1;d&gt;=0;--d){var x=l[d];if(i[x]=!1,m.push(x),v.push(s[x]),y+=s[x].length,o[x]=f.length,x===e){l.length=d;break}}f.push(m);var b=new Array(y);for(d=0;d&lt;v.length;d++)for(var _=0;_&lt;v[d].length;_++)b[--y]=v[d][_];h.push(b)}c.pop()}}}for(l=0;l&lt;e;++l)r[l]&lt;0&amp;&amp;p(l);for(l=0;l&lt;h.length;l++){var d=h[l];if(0!==d.length){d.sort((function(t,e){return t-e})),c=[d[0]];for(var g=1;g&lt;d.length;g++)d[g]!==d[g-1]&amp;&amp;c.push(d[g]);h[l]=c}}return{components:f,adjacencyList:h}}},{}],570:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(t.dimension&lt;=0)return{positions:[],cells:[]};if(1===t.dimension)return function(t,e){for(var r=a(t,e),n=r.length,i=new Array(n),o=new Array(n),s=0;s&lt;n;++s)i[s]=[r[s]],o[s]=[s];return{positions:i,cells:o}}(t,e);var r=t.order.join()+&quot;-&quot;+t.dtype,s=o[r];e=+e||0;s||(s=o[r]=function(t,e){var r=t.length,a=[&quot;'use strict';&quot;],o=&quot;surfaceNets&quot;+t.join(&quot;_&quot;)+&quot;d&quot;+e;a.push(&quot;var contour=genContour({&quot;,&quot;order:[&quot;,t.join(),&quot;],&quot;,&quot;scalarArguments: 3,&quot;,&quot;phase:function phaseFunc(p,a,b,c) { return (p &gt; c)|0 },&quot;),&quot;generic&quot;===e&amp;&amp;a.push(&quot;getters:[0],&quot;);for(var s=[],l=[],c=0;c&lt;r;++c)s.push(&quot;d&quot;+c),l.push(&quot;d&quot;+c);for(c=0;c&lt;1&lt;&lt;r;++c)s.push(&quot;v&quot;+c),l.push(&quot;v&quot;+c);for(c=0;c&lt;1&lt;&lt;r;++c)s.push(&quot;p&quot;+c),l.push(&quot;p&quot;+c);s.push(&quot;a&quot;,&quot;b&quot;,&quot;c&quot;),l.push(&quot;a&quot;,&quot;c&quot;),a.push(&quot;vertex:function vertexFunc(&quot;,s.join(),&quot;){&quot;);var u=[];for(c=0;c&lt;1&lt;&lt;r;++c)u.push(&quot;(p&quot;+c+&quot;&lt;&lt;&quot;+c+&quot;)&quot;);a.push(&quot;var m=(&quot;,u.join(&quot;+&quot;),&quot;)|0;if(m===0||m===&quot;,(1&lt;&lt;(1&lt;&lt;r))-1,&quot;){return}&quot;);var f=[],h=[];1&lt;&lt;(1&lt;&lt;r)&lt;=128?(a.push(&quot;switch(m){&quot;),h=a):a.push(&quot;switch(m&gt;&gt;&gt;7){&quot;);for(c=0;c&lt;1&lt;&lt;(1&lt;&lt;r);++c){if(1&lt;&lt;(1&lt;&lt;r)&gt;128&amp;&amp;c%128==0){f.length&gt;0&amp;&amp;h.push(&quot;}}&quot;);var p=&quot;vExtra&quot;+f.length;a.push(&quot;case &quot;,c&gt;&gt;&gt;7,&quot;:&quot;,p,&quot;(m&amp;0x7f,&quot;,l.join(),&quot;);break;&quot;),h=[&quot;function &quot;,p,&quot;(m,&quot;,l.join(),&quot;){switch(m){&quot;],f.push(h)}h.push(&quot;case &quot;,127&amp;c,&quot;:&quot;);for(var d=new Array(r),g=new Array(r),m=new Array(r),v=new Array(r),y=0,x=0;x&lt;r;++x)d[x]=[],g[x]=[],m[x]=0,v[x]=0;for(x=0;x&lt;1&lt;&lt;r;++x)for(var b=0;b&lt;r;++b){var _=x^1&lt;&lt;b;if(!(_&gt;x)&amp;&amp;!(c&amp;1&lt;&lt;_)!=!(c&amp;1&lt;&lt;x)){var w=1;c&amp;1&lt;&lt;_?g[b].push(&quot;v&quot;+_+&quot;-v&quot;+x):(g[b].push(&quot;v&quot;+x+&quot;-v&quot;+_),w=-w),w&lt;0?(d[b].push(&quot;-v&quot;+x+&quot;-v&quot;+_),m[b]+=2):(d[b].push(&quot;v&quot;+x+&quot;+v&quot;+_),m[b]-=2),y+=1;for(var T=0;T&lt;r;++T)T!==b&amp;&amp;(_&amp;1&lt;&lt;T?v[T]+=1:v[T]-=1)}}var k=[];for(b=0;b&lt;r;++b)if(0===d[b].length)k.push(&quot;d&quot;+b+&quot;-0.5&quot;);else{var M=&quot;&quot;;m[b]&lt;0?M=m[b]+&quot;*c&quot;:m[b]&gt;0&amp;&amp;(M=&quot;+&quot;+m[b]+&quot;*c&quot;);var A=d[b].length/y*.5,S=.5+v[b]/y*.5;k.push(&quot;d&quot;+b+&quot;-&quot;+S+&quot;-&quot;+A+&quot;*(&quot;+d[b].join(&quot;+&quot;)+M+&quot;)/(&quot;+g[b].join(&quot;+&quot;)+&quot;)&quot;)}h.push(&quot;a.push([&quot;,k.join(),&quot;]);&quot;,&quot;break;&quot;)}a.push(&quot;}},&quot;),f.length&gt;0&amp;&amp;h.push(&quot;}}&quot;);var E=[];for(c=0;c&lt;1&lt;&lt;r-1;++c)E.push(&quot;v&quot;+c);E.push(&quot;c0&quot;,&quot;c1&quot;,&quot;p0&quot;,&quot;p1&quot;,&quot;a&quot;,&quot;b&quot;,&quot;c&quot;),a.push(&quot;cell:function cellFunc(&quot;,E.join(),&quot;){&quot;);var C=i(r-1);a.push(&quot;if(p0){b.push(&quot;,C.map((function(t){return&quot;[&quot;+t.map((function(t){return&quot;v&quot;+t}))+&quot;]&quot;})).join(),&quot;)}else{b.push(&quot;,C.map((function(t){var e=t.slice();return e.reverse(),&quot;[&quot;+e.map((function(t){return&quot;v&quot;+t}))+&quot;]&quot;})).join(),&quot;)}}});function &quot;,o,&quot;(array,level){var verts=[],cells=[];contour(array,verts,cells,level);return {positions:verts,cells:cells};} return &quot;,o,&quot;;&quot;);for(c=0;c&lt;f.length;++c)a.push(f[c].join(&quot;&quot;));return new Function(&quot;genContour&quot;,a.join(&quot;&quot;))(n)}(t.order,t.dtype));return s(t,e)};var n=t(&quot;ndarray-extract-contour&quot;),i=t(&quot;triangulate-hypercube&quot;),a=t(&quot;zero-crossings&quot;);var o={}},{&quot;ndarray-extract-contour&quot;:487,&quot;triangulate-hypercube&quot;:580,&quot;zero-crossings&quot;:624}],571:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&amp;&amp;(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{!n&amp;&amp;s.return&amp;&amp;s.return()}finally{if(i)throw a}}return r}(t,e);throw new TypeError(&quot;Invalid attempt to destructure non-iterable instance&quot;)},i=2*Math.PI,a=function(t,e,r,n,i,a,o){var s=t.x,l=t.y;return{x:n*(s*=e)-i*(l*=r)+a,y:i*s+n*l+o}},o=function(t,e){var r=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),n=Math.cos(t),i=Math.sin(t),a=Math.cos(t+e),o=Math.sin(t+e);return[{x:n-i*r,y:i+n*r},{x:a+o*r,y:o-a*r},{x:a,y:o}]},s=function(t,e,r,n){var i=t*r+e*n;return i&gt;1&amp;&amp;(i=1),i&lt;-1&amp;&amp;(i=-1),(t*n-e*r&lt;0?-1:1)*Math.acos(i)};r.default=function(t){var e=t.px,r=t.py,l=t.cx,c=t.cy,u=t.rx,f=t.ry,h=t.xAxisRotation,p=void 0===h?0:h,d=t.largeArcFlag,g=void 0===d?0:d,m=t.sweepFlag,v=void 0===m?0:m,y=[];if(0===u||0===f)return[];var x=Math.sin(p*i/360),b=Math.cos(p*i/360),_=b*(e-l)/2+x*(r-c)/2,w=-x*(e-l)/2+b*(r-c)/2;if(0===_&amp;&amp;0===w)return[];u=Math.abs(u),f=Math.abs(f);var T=Math.pow(_,2)/Math.pow(u,2)+Math.pow(w,2)/Math.pow(f,2);T&gt;1&amp;&amp;(u*=Math.sqrt(T),f*=Math.sqrt(T));var k=function(t,e,r,n,a,o,l,c,u,f,h,p){var d=Math.pow(a,2),g=Math.pow(o,2),m=Math.pow(h,2),v=Math.pow(p,2),y=d*g-d*v-g*m;y&lt;0&amp;&amp;(y=0),y/=d*v+g*m;var x=(y=Math.sqrt(y)*(l===c?-1:1))*a/o*p,b=y*-o/a*h,_=f*x-u*b+(t+r)/2,w=u*x+f*b+(e+n)/2,T=(h-x)/a,k=(p-b)/o,M=(-h-x)/a,A=(-p-b)/o,S=s(1,0,T,k),E=s(T,k,M,A);return 0===c&amp;&amp;E&gt;0&amp;&amp;(E-=i),1===c&amp;&amp;E&lt;0&amp;&amp;(E+=i),[_,w,S,E]}(e,r,l,c,u,f,g,v,x,b,_,w),M=n(k,4),A=M[0],S=M[1],E=M[2],C=M[3],L=Math.abs(C)/(i/4);Math.abs(1-L)&lt;1e-7&amp;&amp;(L=1);var I=Math.max(Math.ceil(L),1);C/=I;for(var P=0;P&lt;I;P++)y.push(o(E,C)),E+=C;return y.map((function(t){var e=a(t[0],u,f,b,x,A,S),r=e.x,n=e.y,i=a(t[1],u,f,b,x,A,S),o=i.x,s=i.y,l=a(t[2],u,f,b,x,A,S);return{x1:r,y1:n,x2:o,y2:s,x:l.x,y:l.y}}))},e.exports=r.default},{}],572:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-svg-path&quot;),i=t(&quot;abs-svg-path&quot;),a=t(&quot;normalize-svg-path&quot;),o=t(&quot;is-svg-path&quot;),s=t(&quot;assert&quot;);e.exports=function(t){Array.isArray(t)&amp;&amp;1===t.length&amp;&amp;&quot;string&quot;==typeof t[0]&amp;&amp;(t=t[0]);&quot;string&quot;==typeof t&amp;&amp;(s(o(t),&quot;String is not an SVG path.&quot;),t=n(t));if(s(Array.isArray(t),&quot;Argument should be a string or an array of path segments.&quot;),t=i(t),!(t=a(t)).length)return[0,0,0,0];for(var e=[1/0,1/0,-1/0,-1/0],r=0,l=t.length;r&lt;l;r++)for(var c=t[r].slice(1),u=0;u&lt;c.length;u+=2)c[u+0]&lt;e[0]&amp;&amp;(e[0]=c[u+0]),c[u+1]&lt;e[1]&amp;&amp;(e[1]=c[u+1]),c[u+0]&gt;e[2]&amp;&amp;(e[2]=c[u+0]),c[u+1]&gt;e[3]&amp;&amp;(e[3]=c[u+1]);return e}},{&quot;abs-svg-path&quot;:65,assert:73,&quot;is-svg-path&quot;:471,&quot;normalize-svg-path&quot;:573,&quot;parse-svg-path&quot;:505}],573:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e,r=[],o=0,s=0,l=0,c=0,u=null,f=null,h=0,p=0,d=0,g=t.length;d&lt;g;d++){var m=t[d],v=m[0];switch(v){case&quot;M&quot;:l=m[1],c=m[2];break;case&quot;A&quot;:var y=n({px:h,py:p,cx:m[6],cy:m[7],rx:m[1],ry:m[2],xAxisRotation:m[3],largeArcFlag:m[4],sweepFlag:m[5]});if(!y.length)continue;for(var x,b=0;b&lt;y.length;b++)x=y[b],m=[&quot;C&quot;,x.x1,x.y1,x.x2,x.y2,x.x,x.y],b&lt;y.length-1&amp;&amp;r.push(m);break;case&quot;S&quot;:var _=h,w=p;&quot;C&quot;!=e&amp;&amp;&quot;S&quot;!=e||(_+=_-o,w+=w-s),m=[&quot;C&quot;,_,w,m[1],m[2],m[3],m[4]];break;case&quot;T&quot;:&quot;Q&quot;==e||&quot;T&quot;==e?(u=2*h-u,f=2*p-f):(u=h,f=p),m=a(h,p,u,f,m[1],m[2]);break;case&quot;Q&quot;:u=m[1],f=m[2],m=a(h,p,m[1],m[2],m[3],m[4]);break;case&quot;L&quot;:m=i(h,p,m[1],m[2]);break;case&quot;H&quot;:m=i(h,p,m[1],p);break;case&quot;V&quot;:m=i(h,p,h,m[1]);break;case&quot;Z&quot;:m=i(h,p,l,c)}e=v,h=m[m.length-2],p=m[m.length-1],m.length&gt;4?(o=m[m.length-4],s=m[m.length-3]):(o=h,s=p),r.push(m)}return r};var n=t(&quot;svg-arc-to-cubic-bezier&quot;);function i(t,e,r,n){return[&quot;C&quot;,t,e,r,n,r,n]}function a(t,e,r,n,i,a){return[&quot;C&quot;,t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}},{&quot;svg-arc-to-cubic-bezier&quot;:571}],574:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;svg-path-bounds&quot;),a=t(&quot;parse-svg-path&quot;),o=t(&quot;draw-svg-path&quot;),s=t(&quot;is-svg-path&quot;),l=t(&quot;bitmap-sdf&quot;),c=document.createElement(&quot;canvas&quot;),u=c.getContext(&quot;2d&quot;);e.exports=function(t,e){if(!s(t))throw Error(&quot;Argument should be valid svg path string&quot;);e||(e={});var r,f;e.shape?(r=e.shape[0],f=e.shape[1]):(r=c.width=e.w||e.width||200,f=c.height=e.h||e.height||200);var h=Math.min(r,f),p=e.stroke||0,d=e.viewbox||e.viewBox||i(t),g=[r/(d[2]-d[0]),f/(d[3]-d[1])],m=Math.min(g[0]||0,g[1]||0)/2;u.fillStyle=&quot;black&quot;,u.fillRect(0,0,r,f),u.fillStyle=&quot;white&quot;,p&amp;&amp;(&quot;number&quot;!=typeof p&amp;&amp;(p=1),u.strokeStyle=p&gt;0?&quot;white&quot;:&quot;black&quot;,u.lineWidth=Math.abs(p));if(u.translate(.5*r,.5*f),u.scale(m,m),function(){if(null!=n)return n;var t=document.createElement(&quot;canvas&quot;).getContext(&quot;2d&quot;);if(t.canvas.width=t.canvas.height=1,!window.Path2D)return n=!1;var e=new Path2D(&quot;M0,0h1v1h-1v-1Z&quot;);t.fillStyle=&quot;black&quot;,t.fill(e);var r=t.getImageData(0,0,1,1);return n=r&amp;&amp;r.data&amp;&amp;255===r.data[3]}()){var v=new Path2D(t);u.fill(v),p&amp;&amp;u.stroke(v)}else{var y=a(t);o(u,y),u.fill(),p&amp;&amp;u.stroke()}return u.setTransform(1,0,0,1,0,0),l(u,{cutoff:null!=e.cutoff?e.cutoff:.5,radius:null!=e.radius?e.radius:.5*h})}},{&quot;bitmap-sdf&quot;:98,&quot;draw-svg-path&quot;:174,&quot;is-svg-path&quot;:471,&quot;parse-svg-path&quot;:505,&quot;svg-path-bounds&quot;:572}],575:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;e.exports=function t(e,r,i){i=i||{};var o=a[e];o||(o=a[e]={&quot; &quot;:{data:new Float32Array(0),shape:.2}});var s=o[r];if(!s)if(r.length&lt;=1||!/\d/.test(r))s=o[r]=function(t){for(var e=t.cells,r=t.positions,n=new Float32Array(6*e.length),i=0,a=0,o=0;o&lt;e.length;++o)for(var s=e[o],l=0;l&lt;3;++l){var c=r[s[l]];n[i++]=c[0],n[i++]=c[1]+1.4,a=Math.max(c[0],a)}return{data:n,shape:a}}(n(r,{triangles:!0,font:e,textAlign:i.textAlign||&quot;left&quot;,textBaseline:&quot;alphabetic&quot;,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}}));else{for(var l=r.split(/(\d|\s)/),c=new Array(l.length),u=0,f=0,h=0;h&lt;l.length;++h)c[h]=t(e,l[h]),u+=c[h].data.length,f+=c[h].shape,h&gt;0&amp;&amp;(f+=.02);var p=new Float32Array(u),d=0,g=-.5*f;for(h=0;h&lt;c.length;++h){for(var m=c[h].data,v=0;v&lt;m.length;v+=2)p[d++]=m[v]+g,p[d++]=m[v+1];g+=c[h].shape+.02}s=o[r]={data:p,shape:f}}return s};var n=t(&quot;vectorize-text&quot;),i=window||r.global||{},a=i.__TEXT_CACHE||{};i.__TEXT_CACHE={}}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:526,&quot;vectorize-text&quot;:600}],576:[function(t,e,r){!function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,s=t.max,l=t.random;function c(e,l){if(l=l||{},(e=e||&quot;&quot;)instanceof c)return e;if(!(this instanceof c))return new c(e,l);var u=function(e){var i={r:0,g:0,b:0},a=1,l=null,c=null,u=null,f=!1,h=!1;&quot;string&quot;==typeof e&amp;&amp;(e=function(t){t=t.replace(r,&quot;&quot;).replace(n,&quot;&quot;).toLowerCase();var e,i=!1;if(S[t])t=S[t],i=!0;else if(&quot;transparent&quot;==t)return{r:0,g:0,b:0,a:0,format:&quot;name&quot;};if(e=j.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=j.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=j.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=j.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=j.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=j.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=j.hex8.exec(t))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),a:R(e[4]),format:i?&quot;name&quot;:&quot;hex8&quot;};if(e=j.hex6.exec(t))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),format:i?&quot;name&quot;:&quot;hex&quot;};if(e=j.hex4.exec(t))return{r:P(e[1]+&quot;&quot;+e[1]),g:P(e[2]+&quot;&quot;+e[2]),b:P(e[3]+&quot;&quot;+e[3]),a:R(e[4]+&quot;&quot;+e[4]),format:i?&quot;name&quot;:&quot;hex8&quot;};if(e=j.hex3.exec(t))return{r:P(e[1]+&quot;&quot;+e[1]),g:P(e[2]+&quot;&quot;+e[2]),b:P(e[3]+&quot;&quot;+e[3]),format:i?&quot;name&quot;:&quot;hex&quot;};return!1}(e));&quot;object&quot;==typeof e&amp;&amp;(U(e.r)&amp;&amp;U(e.g)&amp;&amp;U(e.b)?(p=e.r,d=e.g,g=e.b,i={r:255*L(p,255),g:255*L(d,255),b:255*L(g,255)},f=!0,h=&quot;%&quot;===String(e.r).substr(-1)?&quot;prgb&quot;:&quot;rgb&quot;):U(e.h)&amp;&amp;U(e.s)&amp;&amp;U(e.v)?(l=O(e.s),c=O(e.v),i=function(e,r,n){e=6*L(e,360),r=L(r,100),n=L(n,100);var i=t.floor(e),a=e-i,o=n*(1-r),s=n*(1-a*r),l=n*(1-(1-a)*r),c=i%6;return{r:255*[n,s,o,o,l,n][c],g:255*[l,n,n,s,o,o][c],b:255*[o,o,l,n,n,s][c]}}(e.h,l,c),f=!0,h=&quot;hsv&quot;):U(e.h)&amp;&amp;U(e.s)&amp;&amp;U(e.l)&amp;&amp;(l=O(e.s),u=O(e.l),i=function(t,e,r){var n,i,a;function o(t,e,r){return r&lt;0&amp;&amp;(r+=1),r&gt;1&amp;&amp;(r-=1),r&lt;1/6?t+6*(e-t)*r:r&lt;.5?e:r&lt;2/3?t+(e-t)*(2/3-r)*6:t}if(t=L(t,360),e=L(e,100),r=L(r,100),0===e)n=i=a=r;else{var s=r&lt;.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),i=o(l,s,t),a=o(l,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(e.h,l,u),f=!0,h=&quot;hsl&quot;),e.hasOwnProperty(&quot;a&quot;)&amp;&amp;(a=e.a));var p,d,g;return a=C(a),{ok:f,format:e.format||h,r:o(255,s(i.r,0)),g:o(255,s(i.g,0)),b:o(255,s(i.b,0)),a:a}}(e);this._originalInput=e,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=a(100*this._a)/100,this._format=l.format||u.format,this._gradientType=l.gradientType,this._r&lt;1&amp;&amp;(this._r=a(this._r)),this._g&lt;1&amp;&amp;(this._g=a(this._g)),this._b&lt;1&amp;&amp;(this._b=a(this._b)),this._ok=u.ok,this._tc_id=i++}function u(t,e,r){t=L(t,255),e=L(e,255),r=L(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=(a+l)/2;if(a==l)n=i=0;else{var u=a-l;switch(i=c&gt;.5?u/(2-a-l):u/(a+l),a){case t:n=(e-r)/u+(e&lt;r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:c}}function f(t,e,r){t=L(t,255),e=L(e,255),r=L(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=a,u=a-l;if(i=0===a?0:u/a,a==l)n=0;else{switch(a){case t:n=(e-r)/u+(e&lt;r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:c}}function h(t,e,r,n){var i=[z(a(t).toString(16)),z(a(e).toString(16)),z(a(r).toString(16))];return n&amp;&amp;i[0].charAt(0)==i[0].charAt(1)&amp;&amp;i[1].charAt(0)==i[1].charAt(1)&amp;&amp;i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(&quot;&quot;)}function p(t,e,r,n){return[z(D(n)),z(a(t).toString(16)),z(a(e).toString(16)),z(a(r).toString(16))].join(&quot;&quot;)}function d(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s-=e/100,r.s=I(r.s),c(r)}function g(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s+=e/100,r.s=I(r.s),c(r)}function m(t){return c(t).desaturate(100)}function v(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l+=e/100,r.l=I(r.l),c(r)}function y(t,e){e=0===e?0:e||10;var r=c(t).toRgb();return r.r=s(0,o(255,r.r-a(-e/100*255))),r.g=s(0,o(255,r.g-a(-e/100*255))),r.b=s(0,o(255,r.b-a(-e/100*255))),c(r)}function x(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l-=e/100,r.l=I(r.l),c(r)}function b(t,e){var r=c(t).toHsl(),n=(r.h+e)%360;return r.h=n&lt;0?360+n:n,c(r)}function _(t){var e=c(t).toHsl();return e.h=(e.h+180)%360,c(e)}function w(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+120)%360,s:e.s,l:e.l}),c({h:(r+240)%360,s:e.s,l:e.l})]}function T(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+90)%360,s:e.s,l:e.l}),c({h:(r+180)%360,s:e.s,l:e.l}),c({h:(r+270)%360,s:e.s,l:e.l})]}function k(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+72)%360,s:e.s,l:e.l}),c({h:(r+216)%360,s:e.s,l:e.l})]}function M(t,e,r){e=e||6,r=r||30;var n=c(t).toHsl(),i=360/r,a=[c(t)];for(n.h=(n.h-(i*e&gt;&gt;1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(c(n));return a}function A(t,e){e=e||6;for(var r=c(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(c({h:n,s:i,v:a})),a=(a+s)%1;return o}c.prototype={isDark:function(){return this.getBrightness()&lt;128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var e,r,n,i=this.toRgb();return e=i.r/255,r=i.g/255,n=i.b/255,.2126*(e&lt;=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(r&lt;=.03928?r/12.92:t.pow((r+.055)/1.055,2.4))+.0722*(n&lt;=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=C(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=f(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.v);return 1==this._a?&quot;hsv(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%)&quot;:&quot;hsva(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%, &quot;+this._roundA+&quot;)&quot;},toHsl:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=u(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.l);return 1==this._a?&quot;hsl(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%)&quot;:&quot;hsla(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%, &quot;+this._roundA+&quot;)&quot;},toHex:function(t){return h(this._r,this._g,this._b,t)},toHexString:function(t){return&quot;#&quot;+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[z(a(t).toString(16)),z(a(e).toString(16)),z(a(r).toString(16)),z(D(n))];if(i&amp;&amp;o[0].charAt(0)==o[0].charAt(1)&amp;&amp;o[1].charAt(0)==o[1].charAt(1)&amp;&amp;o[2].charAt(0)==o[2].charAt(1)&amp;&amp;o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join(&quot;&quot;)}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return&quot;#&quot;+this.toHex8(t)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?&quot;rgb(&quot;+a(this._r)+&quot;, &quot;+a(this._g)+&quot;, &quot;+a(this._b)+&quot;)&quot;:&quot;rgba(&quot;+a(this._r)+&quot;, &quot;+a(this._g)+&quot;, &quot;+a(this._b)+&quot;, &quot;+this._roundA+&quot;)&quot;},toPercentageRgb:function(){return{r:a(100*L(this._r,255))+&quot;%&quot;,g:a(100*L(this._g,255))+&quot;%&quot;,b:a(100*L(this._b,255))+&quot;%&quot;,a:this._a}},toPercentageRgbString:function(){return 1==this._a?&quot;rgb(&quot;+a(100*L(this._r,255))+&quot;%, &quot;+a(100*L(this._g,255))+&quot;%, &quot;+a(100*L(this._b,255))+&quot;%)&quot;:&quot;rgba(&quot;+a(100*L(this._r,255))+&quot;%, &quot;+a(100*L(this._g,255))+&quot;%, &quot;+a(100*L(this._b,255))+&quot;%, &quot;+this._roundA+&quot;)&quot;},toName:function(){return 0===this._a?&quot;transparent&quot;:!(this._a&lt;1)&amp;&amp;(E[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e=&quot;#&quot;+p(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?&quot;GradientType = 1, &quot;:&quot;&quot;;if(t){var i=c(t);r=&quot;#&quot;+p(i._r,i._g,i._b,i._a)}return&quot;progid:DXImageTransform.Microsoft.gradient(&quot;+n+&quot;startColorstr=&quot;+e+&quot;,endColorstr=&quot;+r+&quot;)&quot;},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a&lt;1&amp;&amp;this._a&gt;=0;return e||!n||&quot;hex&quot;!==t&amp;&amp;&quot;hex6&quot;!==t&amp;&amp;&quot;hex3&quot;!==t&amp;&amp;&quot;hex4&quot;!==t&amp;&amp;&quot;hex8&quot;!==t&amp;&amp;&quot;name&quot;!==t?(&quot;rgb&quot;===t&amp;&amp;(r=this.toRgbString()),&quot;prgb&quot;===t&amp;&amp;(r=this.toPercentageRgbString()),&quot;hex&quot;!==t&amp;&amp;&quot;hex6&quot;!==t||(r=this.toHexString()),&quot;hex3&quot;===t&amp;&amp;(r=this.toHexString(!0)),&quot;hex4&quot;===t&amp;&amp;(r=this.toHex8String(!0)),&quot;hex8&quot;===t&amp;&amp;(r=this.toHex8String()),&quot;name&quot;===t&amp;&amp;(r=this.toName()),&quot;hsl&quot;===t&amp;&amp;(r=this.toHslString()),&quot;hsv&quot;===t&amp;&amp;(r=this.toHsvString()),r||this.toHexString()):&quot;name&quot;===t&amp;&amp;0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},c.fromRatio=function(t,e){if(&quot;object&quot;==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&amp;&amp;(r[n]=&quot;a&quot;===n?t[n]:O(t[n]));t=r}return c(t,e)},c.equals=function(t,e){return!(!t||!e)&amp;&amp;c(t).toRgbString()==c(e).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})},c.mix=function(t,e,r){r=0===r?0:r||50;var n=c(t).toRgb(),i=c(e).toRgb(),a=r/100;return c({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},c.readability=function(e,r){var n=c(e),i=c(r);return(t.max(n.getLuminance(),i.getLuminance())+.05)/(t.min(n.getLuminance(),i.getLuminance())+.05)},c.isReadable=function(t,e,r){var n,i,a=c.readability(t,e);switch(i=!1,(n=function(t){var e,r;e=((t=t||{level:&quot;AA&quot;,size:&quot;small&quot;}).level||&quot;AA&quot;).toUpperCase(),r=(t.size||&quot;small&quot;).toLowerCase(),&quot;AA&quot;!==e&amp;&amp;&quot;AAA&quot;!==e&amp;&amp;(e=&quot;AA&quot;);&quot;small&quot;!==r&amp;&amp;&quot;large&quot;!==r&amp;&amp;(r=&quot;small&quot;);return{level:e,size:r}}(r)).level+n.size){case&quot;AAsmall&quot;:case&quot;AAAlarge&quot;:i=a&gt;=4.5;break;case&quot;AAlarge&quot;:i=a&gt;=3;break;case&quot;AAAsmall&quot;:i=a&gt;=7}return i},c.mostReadable=function(t,e,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var u=0;u&lt;e.length;u++)(n=c.readability(t,e[u]))&gt;l&amp;&amp;(l=n,s=c(e[u]));return c.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,c.mostReadable(t,[&quot;#fff&quot;,&quot;#000&quot;],r))};var S=c.names={aliceblue:&quot;f0f8ff&quot;,antiquewhite:&quot;faebd7&quot;,aqua:&quot;0ff&quot;,aquamarine:&quot;7fffd4&quot;,azure:&quot;f0ffff&quot;,beige:&quot;f5f5dc&quot;,bisque:&quot;ffe4c4&quot;,black:&quot;000&quot;,blanchedalmond:&quot;ffebcd&quot;,blue:&quot;00f&quot;,blueviolet:&quot;8a2be2&quot;,brown:&quot;a52a2a&quot;,burlywood:&quot;deb887&quot;,burntsienna:&quot;ea7e5d&quot;,cadetblue:&quot;5f9ea0&quot;,chartreuse:&quot;7fff00&quot;,chocolate:&quot;d2691e&quot;,coral:&quot;ff7f50&quot;,cornflowerblue:&quot;6495ed&quot;,cornsilk:&quot;fff8dc&quot;,crimson:&quot;dc143c&quot;,cyan:&quot;0ff&quot;,darkblue:&quot;00008b&quot;,darkcyan:&quot;008b8b&quot;,darkgoldenrod:&quot;b8860b&quot;,darkgray:&quot;a9a9a9&quot;,darkgreen:&quot;006400&quot;,darkgrey:&quot;a9a9a9&quot;,darkkhaki:&quot;bdb76b&quot;,darkmagenta:&quot;8b008b&quot;,darkolivegreen:&quot;556b2f&quot;,darkorange:&quot;ff8c00&quot;,darkorchid:&quot;9932cc&quot;,darkred:&quot;8b0000&quot;,darksalmon:&quot;e9967a&quot;,darkseagreen:&quot;8fbc8f&quot;,darkslateblue:&quot;483d8b&quot;,darkslategray:&quot;2f4f4f&quot;,darkslategrey:&quot;2f4f4f&quot;,darkturquoise:&quot;00ced1&quot;,darkviolet:&quot;9400d3&quot;,deeppink:&quot;ff1493&quot;,deepskyblue:&quot;00bfff&quot;,dimgray:&quot;696969&quot;,dimgrey:&quot;696969&quot;,dodgerblue:&quot;1e90ff&quot;,firebrick:&quot;b22222&quot;,floralwhite:&quot;fffaf0&quot;,forestgreen:&quot;228b22&quot;,fuchsia:&quot;f0f&quot;,gainsboro:&quot;dcdcdc&quot;,ghostwhite:&quot;f8f8ff&quot;,gold:&quot;ffd700&quot;,goldenrod:&quot;daa520&quot;,gray:&quot;808080&quot;,green:&quot;008000&quot;,greenyellow:&quot;adff2f&quot;,grey:&quot;808080&quot;,honeydew:&quot;f0fff0&quot;,hotpink:&quot;ff69b4&quot;,indianred:&quot;cd5c5c&quot;,indigo:&quot;4b0082&quot;,ivory:&quot;fffff0&quot;,khaki:&quot;f0e68c&quot;,lavender:&quot;e6e6fa&quot;,lavenderblush:&quot;fff0f5&quot;,lawngreen:&quot;7cfc00&quot;,lemonchiffon:&quot;fffacd&quot;,lightblue:&quot;add8e6&quot;,lightcoral:&quot;f08080&quot;,lightcyan:&quot;e0ffff&quot;,lightgoldenrodyellow:&quot;fafad2&quot;,lightgray:&quot;d3d3d3&quot;,lightgreen:&quot;90ee90&quot;,lightgrey:&quot;d3d3d3&quot;,lightpink:&quot;ffb6c1&quot;,lightsalmon:&quot;ffa07a&quot;,lightseagreen:&quot;20b2aa&quot;,lightskyblue:&quot;87cefa&quot;,lightslategray:&quot;789&quot;,lightslategrey:&quot;789&quot;,lightsteelblue:&quot;b0c4de&quot;,lightyellow:&quot;ffffe0&quot;,lime:&quot;0f0&quot;,limegreen:&quot;32cd32&quot;,linen:&quot;faf0e6&quot;,magenta:&quot;f0f&quot;,maroon:&quot;800000&quot;,mediumaquamarine:&quot;66cdaa&quot;,mediumblue:&quot;0000cd&quot;,mediumorchid:&quot;ba55d3&quot;,mediumpurple:&quot;9370db&quot;,mediumseagreen:&quot;3cb371&quot;,mediumslateblue:&quot;7b68ee&quot;,mediumspringgreen:&quot;00fa9a&quot;,mediumturquoise:&quot;48d1cc&quot;,mediumvioletred:&quot;c71585&quot;,midnightblue:&quot;191970&quot;,mintcream:&quot;f5fffa&quot;,mistyrose:&quot;ffe4e1&quot;,moccasin:&quot;ffe4b5&quot;,navajowhite:&quot;ffdead&quot;,navy:&quot;000080&quot;,oldlace:&quot;fdf5e6&quot;,olive:&quot;808000&quot;,olivedrab:&quot;6b8e23&quot;,orange:&quot;ffa500&quot;,orangered:&quot;ff4500&quot;,orchid:&quot;da70d6&quot;,palegoldenrod:&quot;eee8aa&quot;,palegreen:&quot;98fb98&quot;,paleturquoise:&quot;afeeee&quot;,palevioletred:&quot;db7093&quot;,papayawhip:&quot;ffefd5&quot;,peachpuff:&quot;ffdab9&quot;,peru:&quot;cd853f&quot;,pink:&quot;ffc0cb&quot;,plum:&quot;dda0dd&quot;,powderblue:&quot;b0e0e6&quot;,purple:&quot;800080&quot;,rebeccapurple:&quot;663399&quot;,red:&quot;f00&quot;,rosybrown:&quot;bc8f8f&quot;,royalblue:&quot;4169e1&quot;,saddlebrown:&quot;8b4513&quot;,salmon:&quot;fa8072&quot;,sandybrown:&quot;f4a460&quot;,seagreen:&quot;2e8b57&quot;,seashell:&quot;fff5ee&quot;,sienna:&quot;a0522d&quot;,silver:&quot;c0c0c0&quot;,skyblue:&quot;87ceeb&quot;,slateblue:&quot;6a5acd&quot;,slategray:&quot;708090&quot;,slategrey:&quot;708090&quot;,snow:&quot;fffafa&quot;,springgreen:&quot;00ff7f&quot;,steelblue:&quot;4682b4&quot;,tan:&quot;d2b48c&quot;,teal:&quot;008080&quot;,thistle:&quot;d8bfd8&quot;,tomato:&quot;ff6347&quot;,turquoise:&quot;40e0d0&quot;,violet:&quot;ee82ee&quot;,wheat:&quot;f5deb3&quot;,white:&quot;fff&quot;,whitesmoke:&quot;f5f5f5&quot;,yellow:&quot;ff0&quot;,yellowgreen:&quot;9acd32&quot;},E=c.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&amp;&amp;(e[t[r]]=r);return e}(S);function C(t){return t=parseFloat(t),(isNaN(t)||t&lt;0||t&gt;1)&amp;&amp;(t=1),t}function L(e,r){(function(t){return&quot;string&quot;==typeof t&amp;&amp;-1!=t.indexOf(&quot;.&quot;)&amp;&amp;1===parseFloat(t)})(e)&amp;&amp;(e=&quot;100%&quot;);var n=function(t){return&quot;string&quot;==typeof t&amp;&amp;-1!=t.indexOf(&quot;%&quot;)}(e);return e=o(r,s(0,parseFloat(e))),n&amp;&amp;(e=parseInt(e*r,10)/100),t.abs(e-r)&lt;1e-6?1:e%r/parseFloat(r)}function I(t){return o(1,s(0,t))}function P(t){return parseInt(t,16)}function z(t){return 1==t.length?&quot;0&quot;+t:&quot;&quot;+t}function O(t){return t&lt;=1&amp;&amp;(t=100*t+&quot;%&quot;),t}function D(e){return t.round(255*parseFloat(e)).toString(16)}function R(t){return P(t)/255}var F,B,N,j=(B=&quot;[\\s|\\(]+(&quot;+(F=&quot;(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)&quot;)+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)\\s*\\)?&quot;,N=&quot;[\\s|\\(]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)\\s*\\)?&quot;,{CSS_UNIT:new RegExp(F),rgb:new RegExp(&quot;rgb&quot;+B),rgba:new RegExp(&quot;rgba&quot;+N),hsl:new RegExp(&quot;hsl&quot;+B),hsla:new RegExp(&quot;hsla&quot;+N),hsv:new RegExp(&quot;hsv&quot;+B),hsva:new RegExp(&quot;hsva&quot;+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(t){return!!j.CSS_UNIT.exec(t)}&quot;undefined&quot;!=typeof e&amp;&amp;e.exports?e.exports=c:window.tinycolor=c}(Math)},{}],577:[function(t,e,r){&quot;use strict&quot;;e.exports=i,e.exports.float32=e.exports.float=i,e.exports.fract32=e.exports.fract=function(t){if(t.length){for(var e=i(t),r=0,n=e.length;r&lt;n;r++)e[r]=t[r]-e[r];return e}return i(t-i(t))};var n=new Float32Array(1);function i(t){if(t.length){if(t instanceof Float32Array)return t;var e=new Float32Array(t);return e.set(t),e}return n[0]=t,n[0]}},{}],578:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-unit&quot;);e.exports=a;function i(t,e){var r=n(getComputedStyle(t).getPropertyValue(e));return r[0]*a(r[1],t)}function a(t,e){switch(e=e||document.body,t=(t||&quot;px&quot;).trim().toLowerCase(),e!==window&amp;&amp;e!==document||(e=document.body),t){case&quot;%&quot;:return e.clientHeight/100;case&quot;ch&quot;:case&quot;ex&quot;:return function(t,e){var r=document.createElement(&quot;div&quot;);r.style[&quot;font-size&quot;]=&quot;128&quot;+t,e.appendChild(r);var n=i(r,&quot;font-size&quot;)/128;return e.removeChild(r),n}(t,e);case&quot;em&quot;:return i(e,&quot;font-size&quot;);case&quot;rem&quot;:return i(document.body,&quot;font-size&quot;);case&quot;vw&quot;:return window.innerWidth/100;case&quot;vh&quot;:return window.innerHeight/100;case&quot;vmin&quot;:return Math.min(window.innerWidth,window.innerHeight)/100;case&quot;vmax&quot;:return Math.max(window.innerWidth,window.innerHeight)/100;case&quot;in&quot;:return 96;case&quot;cm&quot;:return 96/2.54;case&quot;mm&quot;:return 96/25.4;case&quot;pt&quot;:return 96/72;case&quot;pc&quot;:return 16}return 1}},{&quot;parse-unit&quot;:506}],579:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).topojson=t.topojson||{})}(this,(function(t){&quot;use strict&quot;;function e(t){return t}function r(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c);for(u[0]=(r+=t[0])*i+o,u[1]=(n+=t[1])*a+s;l&lt;c;)u[l]=t[l],++l;return u}}function n(t){var e,n=r(t.transform),i=1/0,a=i,o=-i,s=-i;function l(t){(t=n(t))[0]&lt;i&amp;&amp;(i=t[0]),t[0]&gt;o&amp;&amp;(o=t[0]),t[1]&lt;a&amp;&amp;(a=t[1]),t[1]&gt;s&amp;&amp;(s=t[1])}function c(t){switch(t.type){case&quot;GeometryCollection&quot;:t.geometries.forEach(c);break;case&quot;Point&quot;:l(t.coordinates);break;case&quot;MultiPoint&quot;:t.coordinates.forEach(l)}}for(e in t.arcs.forEach((function(t){for(var e,r=-1,l=t.length;++r&lt;l;)(e=n(t[r],r))[0]&lt;i&amp;&amp;(i=e[0]),e[0]&gt;o&amp;&amp;(o=e[0]),e[1]&lt;a&amp;&amp;(a=e[1]),e[1]&gt;s&amp;&amp;(s=e[1])})),t.objects)c(t.objects[e]);return[i,a,o,s]}function i(t,e){var r=e.id,n=e.bbox,i=null==e.properties?{}:e.properties,o=a(t,e);return null==r&amp;&amp;null==n?{type:&quot;Feature&quot;,properties:i,geometry:o}:null==n?{type:&quot;Feature&quot;,id:r,properties:i,geometry:o}:{type:&quot;Feature&quot;,id:r,bbox:n,properties:i,geometry:o}}function a(t,e){var n=r(t.transform),i=t.arcs;function a(t,e){e.length&amp;&amp;e.pop();for(var r=i[t&lt;0?~t:t],a=0,o=r.length;a&lt;o;++a)e.push(n(r[a],a));t&lt;0&amp;&amp;function(t,e){for(var r,n=t.length,i=n-e;i&lt;--n;)r=t[i],t[i++]=t[n],t[n]=r}(e,o)}function o(t){return n(t)}function s(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)a(t[r],e);return e.length&lt;2&amp;&amp;e.push(e[0]),e}function l(t){for(var e=s(t);e.length&lt;4;)e.push(e[0]);return e}function c(t){return t.map(l)}return function t(e){var r,n=e.type;switch(n){case&quot;GeometryCollection&quot;:return{type:n,geometries:e.geometries.map(t)};case&quot;Point&quot;:r=o(e.coordinates);break;case&quot;MultiPoint&quot;:r=e.coordinates.map(o);break;case&quot;LineString&quot;:r=s(e.arcs);break;case&quot;MultiLineString&quot;:r=e.arcs.map(s);break;case&quot;Polygon&quot;:r=c(e.arcs);break;case&quot;MultiPolygon&quot;:r=e.arcs.map(c);break;default:return null}return{type:n,coordinates:r}}(e)}function o(t,e){var r={},n={},i={},a=[],o=-1;function s(t,e){for(var n in t){var i=t[n];delete e[i.start],delete i.start,delete i.end,i.forEach((function(t){r[t&lt;0?~t:t]=1})),a.push(i)}}return e.forEach((function(r,n){var i,a=t.arcs[r&lt;0?~r:r];a.length&lt;3&amp;&amp;!a[1][0]&amp;&amp;!a[1][1]&amp;&amp;(i=e[++o],e[o]=r,e[n]=i)})),e.forEach((function(e){var r,a,o=function(e){var r,n=t.arcs[e&lt;0?~e:e],i=n[0];t.transform?(r=[0,0],n.forEach((function(t){r[0]+=t[0],r[1]+=t[1]}))):r=n[n.length-1];return e&lt;0?[r,i]:[i,r]}(e),s=o[0],l=o[1];if(r=i[s])if(delete i[r.end],r.push(e),r.end=l,a=n[l]){delete n[a.start];var c=a===r?r:r.concat(a);n[c.start=r.start]=i[c.end=a.end]=c}else n[r.start]=i[r.end]=r;else if(r=n[l])if(delete n[r.start],r.unshift(e),r.start=s,a=i[s]){delete i[a.end];var u=a===r?r:a.concat(r);n[u.start=a.start]=i[u.end=r.end]=u}else n[r.start]=i[r.end]=r;else n[(r=[e]).start=s]=i[r.end=l]=r})),s(i,n),s(n,i),e.forEach((function(t){r[t&lt;0?~t:t]||a.push([t])})),a}function s(t,e,r){var n,i,a;if(arguments.length&gt;1)n=l(t,e,r);else for(i=0,n=new Array(a=t.arcs.length);i&lt;a;++i)n[i]=i;return{type:&quot;MultiLineString&quot;,arcs:o(t,n)}}function l(t,e,r){var n,i=[],a=[];function o(t){var e=t&lt;0?~t:t;(a[e]||(a[e]=[])).push({i:t,g:n})}function s(t){t.forEach(o)}function l(t){t.forEach(s)}return function t(e){switch(n=e,e.type){case&quot;GeometryCollection&quot;:e.geometries.forEach(t);break;case&quot;LineString&quot;:s(e.arcs);break;case&quot;MultiLineString&quot;:case&quot;Polygon&quot;:l(e.arcs);break;case&quot;MultiPolygon&quot;:!function(t){t.forEach(l)}(e.arcs)}}(e),a.forEach(null==r?function(t){i.push(t[0].i)}:function(t){r(t[0].g,t[t.length-1].g)&amp;&amp;i.push(t[0].i)}),i}function c(t,e){var r={},n=[],i=[];function s(t){t.forEach((function(e){e.forEach((function(e){(r[e=e&lt;0?~e:e]||(r[e]=[])).push(t)}))})),n.push(t)}function l(e){return function(t){for(var e,r=-1,n=t.length,i=t[n-1],a=0;++r&lt;n;)e=i,i=t[r],a+=e[0]*i[1]-e[1]*i[0];return Math.abs(a)}(a(t,{type:&quot;Polygon&quot;,arcs:[e]}).coordinates[0])}return e.forEach((function t(e){switch(e.type){case&quot;GeometryCollection&quot;:e.geometries.forEach(t);break;case&quot;Polygon&quot;:s(e.arcs);break;case&quot;MultiPolygon&quot;:e.arcs.forEach(s)}})),n.forEach((function(t){if(!t._){var e=[],n=[t];for(t._=1,i.push(e);t=n.pop();)e.push(t),t.forEach((function(t){t.forEach((function(t){r[t&lt;0?~t:t].forEach((function(t){t._||(t._=1,n.push(t))}))}))}))}})),n.forEach((function(t){delete t._})),{type:&quot;MultiPolygon&quot;,arcs:i.map((function(e){var n,i=[];if(e.forEach((function(t){t.forEach((function(t){t.forEach((function(t){r[t&lt;0?~t:t].length&lt;2&amp;&amp;i.push(t)}))}))})),(n=(i=o(t,i)).length)&gt;1)for(var a,s,c=1,u=l(i[0]);c&lt;n;++c)(a=l(i[c]))&gt;u&amp;&amp;(s=i[0],i[0]=i[c],i[c]=s,u=a);return i})).filter((function(t){return t.length&gt;0}))}}function u(t,e){for(var r=0,n=t.length;r&lt;n;){var i=r+n&gt;&gt;&gt;1;t[i]&lt;e?r=i+1:n=i}return r}function f(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c),f=Math.round((t[0]-o)/i),h=Math.round((t[1]-s)/a);for(u[0]=f-r,r=f,u[1]=h-n,n=h;l&lt;c;)u[l]=t[l],++l;return u}}t.bbox=n,t.feature=function(t,e){return&quot;string&quot;==typeof e&amp;&amp;(e=t.objects[e]),&quot;GeometryCollection&quot;===e.type?{type:&quot;FeatureCollection&quot;,features:e.geometries.map((function(e){return i(t,e)}))}:i(t,e)},t.merge=function(t){return a(t,c.apply(this,arguments))},t.mergeArcs=c,t.mesh=function(t){return a(t,s.apply(this,arguments))},t.meshArcs=s,t.neighbors=function(t){var e={},r=t.map((function(){return[]}));function n(t,r){t.forEach((function(t){t&lt;0&amp;&amp;(t=~t);var n=e[t];n?n.push(r):e[t]=[r]}))}function i(t,e){t.forEach((function(t){n(t,e)}))}var a={LineString:n,MultiLineString:i,Polygon:i,MultiPolygon:function(t,e){t.forEach((function(t){i(t,e)}))}};for(var o in t.forEach((function t(e,r){&quot;GeometryCollection&quot;===e.type?e.geometries.forEach((function(e){t(e,r)})):e.type in a&amp;&amp;a[e.type](e.arcs,r)})),e)for(var s=e[o],l=s.length,c=0;c&lt;l;++c)for(var f=c+1;f&lt;l;++f){var h,p=s[c],d=s[f];(h=r[p])[o=u(h,d)]!==d&amp;&amp;h.splice(o,0,d),(h=r[d])[o=u(h,p)]!==p&amp;&amp;h.splice(o,0,p)}return r},t.quantize=function(t,e){if(t.transform)throw new Error(&quot;already quantized&quot;);if(e&amp;&amp;e.scale)l=t.bbox;else{if(!((r=Math.floor(e))&gt;=2))throw new Error(&quot;n must be \u22652&quot;);var r,i=(l=t.bbox||n(t))[0],a=l[1],o=l[2],s=l[3];e={scale:[o-i?(o-i)/(r-1):1,s-a?(s-a)/(r-1):1],translate:[i,a]}}var l,c,u=f(e),h=t.objects,p={};function d(t){return u(t)}function g(t){var e;switch(t.type){case&quot;GeometryCollection&quot;:e={type:&quot;GeometryCollection&quot;,geometries:t.geometries.map(g)};break;case&quot;Point&quot;:e={type:&quot;Point&quot;,coordinates:d(t.coordinates)};break;case&quot;MultiPoint&quot;:e={type:&quot;MultiPoint&quot;,coordinates:t.coordinates.map(d)};break;default:return t}return null!=t.id&amp;&amp;(e.id=t.id),null!=t.bbox&amp;&amp;(e.bbox=t.bbox),null!=t.properties&amp;&amp;(e.properties=t.properties),e}for(c in h)p[c]=g(h[c]);return{type:&quot;Topology&quot;,bbox:l,transform:e,objects:p,arcs:t.arcs.map((function(t){var e,r=0,n=1,i=t.length,a=new Array(i);for(a[0]=u(t[0],0);++r&lt;i;)((e=u(t[r],r))[0]||e[1])&amp;&amp;(a[n++]=e);return 1===n&amp;&amp;(a[n++]=[0,0]),a.length=n,a}))}},t.transform=r,t.untransform=f,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],580:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){if(t&lt;0)return[];if(0===t)return[[0]];for(var e=0|Math.round(a(t+1)),r=[],o=0;o&lt;e;++o){for(var s=n.unrank(t,o),l=[0],c=0,u=0;u&lt;s.length;++u)c+=1&lt;&lt;s[u],l.push(c);i(s)&lt;1&amp;&amp;(l[0]=c,l[t]=0),r.push(l)}return r};var n=t(&quot;permutation-rank&quot;),i=t(&quot;permutation-parity&quot;),a=t(&quot;gamma&quot;)},{gamma:248,&quot;permutation-parity&quot;:509,&quot;permutation-rank&quot;:510}],581:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.up||[0,1,0],n=t.right||f(r),i=t.radius||1,a=t.theta||0,u=t.phi||0;if(e=[].slice.call(e,0,3),r=[].slice.call(r,0,3),s(r,r),n=[].slice.call(n,0,3),s(n,n),&quot;eye&quot;in t){var p=t.eye,d=[p[0]-e[0],p[1]-e[1],p[2]-e[2]];o(n,d,r),c(n[0],n[1],n[2])&lt;1e-6?n=f(r):s(n,n),i=c(d[0],d[1],d[2]);var g=l(r,d)/i,m=l(n,d)/i;u=Math.acos(g),a=Math.acos(m)}return i=Math.log(i),new h(t.zoomMin,t.zoomMax,e,r,n,i,a,u)};var n=t(&quot;filtered-vector&quot;),i=t(&quot;gl-mat4/invert&quot;),a=t(&quot;gl-mat4/rotate&quot;),o=t(&quot;gl-vec3/cross&quot;),s=t(&quot;gl-vec3/normalize&quot;),l=t(&quot;gl-vec3/dot&quot;);function c(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function u(t){return Math.min(1,Math.max(-1,t))}function f(t){var e=Math.abs(t[0]),r=Math.abs(t[1]),n=Math.abs(t[2]),i=[0,0,0];e&gt;Math.max(r,n)?i[2]=1:r&gt;Math.max(e,n)?i[0]=1:i[1]=1;for(var a=0,o=0,l=0;l&lt;3;++l)a+=t[l]*t[l],o+=i[l]*t[l];for(l=0;l&lt;3;++l)i[l]-=o/a*t[l];return s(i,i),i}function h(t,e,r,i,a,o,s,l){this.center=n(r),this.up=n(i),this.right=n(a),this.radius=n([o]),this.angle=n([s,l]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(t,e),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var c=0;c&lt;16;++c)this.computedMatrix[c]=.5;this.recalcMatrix(0)}var p=h.prototype;p.setDistanceLimits=function(t,e){t=t&gt;0?Math.log(t):-1/0,e=e&gt;0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},p.getDistanceLimits=function(t){var e=this.radius.bounds[0];return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},p.recalcMatrix=function(t){this.center.curve(t),this.up.curve(t),this.right.curve(t),this.radius.curve(t),this.angle.curve(t);for(var e=this.computedUp,r=this.computedRight,n=0,i=0,a=0;a&lt;3;++a)i+=e[a]*r[a],n+=e[a]*e[a];var l=Math.sqrt(n),u=0;for(a=0;a&lt;3;++a)r[a]-=e[a]*i/n,u+=r[a]*r[a],e[a]/=l;var f=Math.sqrt(u);for(a=0;a&lt;3;++a)r[a]/=f;var h=this.computedToward;o(h,e,r),s(h,h);var p=Math.exp(this.computedRadius[0]),d=this.computedAngle[0],g=this.computedAngle[1],m=Math.cos(d),v=Math.sin(d),y=Math.cos(g),x=Math.sin(g),b=this.computedCenter,_=m*y,w=v*y,T=x,k=-m*x,M=-v*x,A=y,S=this.computedEye,E=this.computedMatrix;for(a=0;a&lt;3;++a){var C=_*r[a]+w*h[a]+T*e[a];E[4*a+1]=k*r[a]+M*h[a]+A*e[a],E[4*a+2]=C,E[4*a+3]=0}var L=E[1],I=E[5],P=E[9],z=E[2],O=E[6],D=E[10],R=I*D-P*O,F=P*z-L*D,B=L*O-I*z,N=c(R,F,B);R/=N,F/=N,B/=N,E[0]=R,E[4]=F,E[8]=B;for(a=0;a&lt;3;++a)S[a]=b[a]+E[2+4*a]*p;for(a=0;a&lt;3;++a){u=0;for(var j=0;j&lt;3;++j)u+=E[a+4*j]*S[j];E[12+a]=-u}E[15]=1},p.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n&lt;16;++n)e[n]=r[n];return e}return r};var d=[0,0,0];p.rotate=function(t,e,r,n){if(this.angle.move(t,e,r),n){this.recalcMatrix(t);var i=this.computedMatrix;d[0]=i[2],d[1]=i[6],d[2]=i[10];for(var o=this.computedUp,s=this.computedRight,l=this.computedToward,c=0;c&lt;3;++c)i[4*c]=o[c],i[4*c+1]=s[c],i[4*c+2]=l[c];a(i,i,n,d);for(c=0;c&lt;3;++c)o[c]=i[4*c],s[c]=i[4*c+1];this.up.set(t,o[0],o[1],o[2]),this.right.set(t,s[0],s[1],s[2])}},p.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=(Math.exp(this.computedRadius[0]),i[1]),o=i[5],s=i[9],l=c(a,o,s);a/=l,o/=l,s/=l;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=c(u-=a*p,f-=o*p,h-=s*p),g=(u/=d)*e+a*r,m=(f/=d)*e+o*r,v=(h/=d)*e+s*r;this.center.move(t,g,m,v);var y=Math.exp(this.computedRadius[0]);y=Math.max(1e-4,y+n),this.radius.set(t,Math.log(y))},p.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},p.setMatrix=function(t,e,r,n){var a=1;&quot;number&quot;==typeof r&amp;&amp;(a=0|r),(a&lt;0||a&gt;3)&amp;&amp;(a=1);var o=(a+2)%3;e||(this.recalcMatrix(t),e=this.computedMatrix);var s=e[a],l=e[a+4],f=e[a+8];if(n){var h=Math.abs(s),p=Math.abs(l),d=Math.abs(f),g=Math.max(h,p,d);h===g?(s=s&lt;0?-1:1,l=f=0):d===g?(f=f&lt;0?-1:1,s=l=0):(l=l&lt;0?-1:1,s=f=0)}else{var m=c(s,l,f);s/=m,l/=m,f/=m}var v,y,x=e[o],b=e[o+4],_=e[o+8],w=x*s+b*l+_*f,T=c(x-=s*w,b-=l*w,_-=f*w),k=l*(_/=T)-f*(b/=T),M=f*(x/=T)-s*_,A=s*b-l*x,S=c(k,M,A);if(k/=S,M/=S,A/=S,this.center.jump(t,H,G,Y),this.radius.idle(t),this.up.jump(t,s,l,f),this.right.jump(t,x,b,_),2===a){var E=e[1],C=e[5],L=e[9],I=E*x+C*b+L*_,P=E*k+C*M+L*A;v=R&lt;0?-Math.PI/2:Math.PI/2,y=Math.atan2(P,I)}else{var z=e[2],O=e[6],D=e[10],R=z*s+O*l+D*f,F=z*x+O*b+D*_,B=z*k+O*M+D*A;v=Math.asin(u(R)),y=Math.atan2(B,F)}this.angle.jump(t,y,v),this.recalcMatrix(t);var N=e[2],j=e[6],U=e[10],V=this.computedMatrix;i(V,e);var q=V[15],H=V[12]/q,G=V[13]/q,Y=V[14]/q,W=Math.exp(this.computedRadius[0]);this.center.jump(t,H-N*W,G-j*W,Y-U*W)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(t){this.center.idle(t),this.up.idle(t),this.right.idle(t),this.radius.idle(t),this.angle.idle(t)},p.flush=function(t){this.center.flush(t),this.up.flush(t),this.right.flush(t),this.radius.flush(t),this.angle.flush(t)},p.setDistance=function(t,e){e&gt;0&amp;&amp;this.radius.set(t,Math.log(e))},p.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||this.computedCenter;var i=(n=n||this.computedUp)[0],a=n[1],o=n[2],s=c(i,a,o);if(!(s&lt;1e-6)){i/=s,a/=s,o/=s;var l=e[0]-r[0],f=e[1]-r[1],h=e[2]-r[2],p=c(l,f,h);if(!(p&lt;1e-6)){l/=p,f/=p,h/=p;var d=this.computedRight,g=d[0],m=d[1],v=d[2],y=i*g+a*m+o*v,x=c(g-=y*i,m-=y*a,v-=y*o);if(!(x&lt;.01&amp;&amp;(x=c(g=a*h-o*f,m=o*l-i*h,v=i*f-a*l))&lt;1e-6)){g/=x,m/=x,v/=x,this.up.set(t,i,a,o),this.right.set(t,g,m,v),this.center.set(t,r[0],r[1],r[2]),this.radius.set(t,Math.log(p));var b=a*v-o*m,_=o*g-i*v,w=i*m-a*g,T=c(b,_,w),k=i*l+a*f+o*h,M=g*l+m*f+v*h,A=(b/=T)*l+(_/=T)*f+(w/=T)*h,S=Math.asin(u(k)),E=Math.atan2(A,M),C=this.angle._state,L=C[C.length-1],I=C[C.length-2];L%=2*Math.PI;var P=Math.abs(L+2*Math.PI-E),z=Math.abs(L-E),O=Math.abs(L-2*Math.PI-E);P&lt;z&amp;&amp;(L+=2*Math.PI),O&lt;z&amp;&amp;(L-=2*Math.PI),this.angle.jump(this.angle.lastT(),L,I),this.angle.set(t,E,S)}}}}},{&quot;filtered-vector&quot;:242,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/rotate&quot;:299,&quot;gl-vec3/cross&quot;:365,&quot;gl-vec3/dot&quot;:370,&quot;gl-vec3/normalize&quot;:387}],582:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var i=t*e,a=n*t,o=a-(a-t),s=t-o,l=n*e,c=l-(l-e),u=e-c,f=s*u-(i-o*c-s*c-o*u);if(r)return r[0]=f,r[1]=i,r;return[f,i]};var n=+(Math.pow(2,27)+1)},{}],583:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n=t+e,i=n-t,a=e-i,o=t-(n-i);if(r)return r[0]=o+a,r[1]=n,r;return[o+a,n]}},{}],584:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../prototype/is&quot;);e.exports=function(t){if(&quot;function&quot;!=typeof t)return!1;if(!hasOwnProperty.call(t,&quot;length&quot;))return!1;try{if(&quot;number&quot;!=typeof t.length)return!1;if(&quot;function&quot;!=typeof t.call)return!1;if(&quot;function&quot;!=typeof t.apply)return!1}catch(t){return!1}return!n(t)}},{&quot;../prototype/is&quot;:591}],585:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i=t(&quot;../object/is&quot;),a=t(&quot;../string/coerce&quot;),o=t(&quot;./to-short-string&quot;),s=function(t,e){return t.replace(&quot;%v&quot;,o(e))};e.exports=function(t,e,r){if(!i(r))throw new TypeError(s(e,t));if(!n(t)){if(&quot;default&quot;in r)return r.default;if(r.isOptional)return null}var o=a(r.errorMessage);throw n(o)||(o=e),new TypeError(s(o,t))}},{&quot;../object/is&quot;:588,&quot;../string/coerce&quot;:592,&quot;../value/is&quot;:594,&quot;./to-short-string&quot;:587}],586:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){try{return t.toString()}catch(e){try{return String(t)}catch(t){return null}}}},{}],587:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./safe-to-string&quot;),i=/[\n\r\u2028\u2029]/g;e.exports=function(t){var e=n(t);return null===e?&quot;&lt;Non-coercible to string value&gt;&quot;:(e.length&gt;100&amp;&amp;(e=e.slice(0,99)+&quot;\u2026&quot;),e=e.replace(i,(function(t){switch(t){case&quot;\n&quot;:return&quot;\\n&quot;;case&quot;\r&quot;:return&quot;\\r&quot;;case&quot;\u2028&quot;:return&quot;\\u2028&quot;;case&quot;\u2029&quot;:return&quot;\\u2029&quot;;default:throw new Error(&quot;Unexpected character&quot;)}})))}},{&quot;./safe-to-string&quot;:586}],588:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i={object:!0,function:!0,undefined:!0};e.exports=function(t){return!!n(t)&amp;&amp;hasOwnProperty.call(i,typeof t)}},{&quot;../value/is&quot;:594}],589:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/resolve-exception&quot;),i=t(&quot;./is&quot;);e.exports=function(t){return i(t)?t:n(t,&quot;%v is not a plain function&quot;,arguments[1])}},{&quot;../lib/resolve-exception&quot;:585,&quot;./is&quot;:590}],590:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../function/is&quot;),i=/^\s*class[\s{/}]/,a=Function.prototype.toString;e.exports=function(t){return!!n(t)&amp;&amp;!i.test(a.call(t))}},{&quot;../function/is&quot;:584}],591:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../object/is&quot;);e.exports=function(t){if(!n(t))return!1;try{return!!t.constructor&amp;&amp;t.constructor.prototype===t}catch(t){return!1}}},{&quot;../object/is&quot;:588}],592:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i=t(&quot;../object/is&quot;),a=Object.prototype.toString;e.exports=function(t){if(!n(t))return null;if(i(t)){var e=t.toString;if(&quot;function&quot;!=typeof e)return null;if(e===a)return null}try{return&quot;&quot;+t}catch(t){return null}}},{&quot;../object/is&quot;:588,&quot;../value/is&quot;:594}],593:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/resolve-exception&quot;),i=t(&quot;./is&quot;);e.exports=function(t){return i(t)?t:n(t,&quot;Cannot use %v&quot;,arguments[1])}},{&quot;../lib/resolve-exception&quot;:585,&quot;./is&quot;:594}],594:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return null!=t}},{}],595:[function(t,e,r){(function(e){(function(){&quot;use strict&quot;;var n=t(&quot;bit-twiddle&quot;),i=t(&quot;dup&quot;),a=t(&quot;buffer&quot;).Buffer;e.__TYPEDARRAY_POOL||(e.__TYPEDARRAY_POOL={UINT8:i([32,0]),UINT16:i([32,0]),UINT32:i([32,0]),BIGUINT64:i([32,0]),INT8:i([32,0]),INT16:i([32,0]),INT32:i([32,0]),BIGINT64:i([32,0]),FLOAT:i([32,0]),DOUBLE:i([32,0]),DATA:i([32,0]),UINT8C:i([32,0]),BUFFER:i([32,0])});var o=&quot;undefined&quot;!=typeof Uint8ClampedArray,s=&quot;undefined&quot;!=typeof BigUint64Array,l=&quot;undefined&quot;!=typeof BigInt64Array,c=e.__TYPEDARRAY_POOL;c.UINT8C||(c.UINT8C=i([32,0])),c.BIGUINT64||(c.BIGUINT64=i([32,0])),c.BIGINT64||(c.BIGINT64=i([32,0])),c.BUFFER||(c.BUFFER=i([32,0]));var u=c.DATA,f=c.BUFFER;function h(t){if(t){var e=t.length||t.byteLength,r=n.log2(e);u[r].push(t)}}function p(t){t=n.nextPow2(t);var e=n.log2(t),r=u[e];return r.length&gt;0?r.pop():new ArrayBuffer(t)}function d(t){return new Uint8Array(p(t),0,t)}function g(t){return new Uint16Array(p(2*t),0,t)}function m(t){return new Uint32Array(p(4*t),0,t)}function v(t){return new Int8Array(p(t),0,t)}function y(t){return new Int16Array(p(2*t),0,t)}function x(t){return new Int32Array(p(4*t),0,t)}function b(t){return new Float32Array(p(4*t),0,t)}function _(t){return new Float64Array(p(8*t),0,t)}function w(t){return o?new Uint8ClampedArray(p(t),0,t):d(t)}function T(t){return s?new BigUint64Array(p(8*t),0,t):null}function k(t){return l?new BigInt64Array(p(8*t),0,t):null}function M(t){return new DataView(p(t),0,t)}function A(t){t=n.nextPow2(t);var e=n.log2(t),r=f[e];return r.length&gt;0?r.pop():new a(t)}r.free=function(t){if(a.isBuffer(t))f[n.log2(t.length)].push(t);else{if(&quot;[object ArrayBuffer]&quot;!==Object.prototype.toString.call(t)&amp;&amp;(t=t.buffer),!t)return;var e=t.length||t.byteLength,r=0|n.log2(e);u[r].push(t)}},r.freeUint8=r.freeUint16=r.freeUint32=r.freeBigUint64=r.freeInt8=r.freeInt16=r.freeInt32=r.freeBigInt64=r.freeFloat32=r.freeFloat=r.freeFloat64=r.freeDouble=r.freeUint8Clamped=r.freeDataView=function(t){h(t.buffer)},r.freeArrayBuffer=h,r.freeBuffer=function(t){f[n.log2(t.length)].push(t)},r.malloc=function(t,e){if(void 0===e||&quot;arraybuffer&quot;===e)return p(t);switch(e){case&quot;uint8&quot;:return d(t);case&quot;uint16&quot;:return g(t);case&quot;uint32&quot;:return m(t);case&quot;int8&quot;:return v(t);case&quot;int16&quot;:return y(t);case&quot;int32&quot;:return x(t);case&quot;float&quot;:case&quot;float32&quot;:return b(t);case&quot;double&quot;:case&quot;float64&quot;:return _(t);case&quot;uint8_clamped&quot;:return w(t);case&quot;bigint64&quot;:return k(t);case&quot;biguint64&quot;:return T(t);case&quot;buffer&quot;:return A(t);case&quot;data&quot;:case&quot;dataview&quot;:return M(t);default:return null}return null},r.mallocArrayBuffer=p,r.mallocUint8=d,r.mallocUint16=g,r.mallocUint32=m,r.mallocInt8=v,r.mallocInt16=y,r.mallocInt32=x,r.mallocFloat32=r.mallocFloat=b,r.mallocFloat64=r.mallocDouble=_,r.mallocUint8Clamped=w,r.mallocBigUint64=T,r.mallocBigInt64=k,r.mallocDataView=M,r.mallocBuffer=A,r.clearCache=function(){for(var t=0;t&lt;32;++t)c.UINT8[t].length=0,c.UINT16[t].length=0,c.UINT32[t].length=0,c.INT8[t].length=0,c.INT16[t].length=0,c.INT32[t].length=0,c.FLOAT[t].length=0,c.DOUBLE[t].length=0,c.BIGUINT64[t].length=0,c.BIGINT64[t].length=0,c.UINT8C[t].length=0,u[t].length=0,f[t].length=0}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;bit-twiddle&quot;:97,buffer:111,dup:176}],596:[function(t,e,r){&quot;use strict&quot;;function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e&lt;t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n;var i=n.prototype;Object.defineProperty(i,&quot;length&quot;,{get:function(){return this.roots.length}}),i.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},i.find=function(t){for(var e=t,r=this.roots;r[t]!==t;)t=r[t];for(;r[e]!==t;){var n=r[e];r[e]=t,e=n}return t},i.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o&lt;s?a[r]=n:s&lt;o?a[n]=r:(a[n]=r,++i[r])}}},{}],597:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return 0===t.length?t:e?(r||t.sort(e),function(t,e){for(var r=1,n=t.length,i=t[0],a=t[0],o=1;o&lt;n;++o)if(a=i,e(i=t[o],a)){if(o===r){r++;continue}t[r++]=i}return t.length=r,t}(t,e)):(r||t.sort(),function(t){for(var e=1,r=t.length,n=t[0],i=t[0],a=1;a&lt;r;++a,i=n)if(i=n,(n=t[a])!==i){if(a===e){e++;continue}t[e++]=n}return t.length=e,t}(t))}},{}],598:[function(t,e,r){var n=/[\'\&quot;]/;e.exports=function(t){return t?(n.test(t.charAt(0))&amp;&amp;(t=t.substr(1)),n.test(t.charAt(t.length-1))&amp;&amp;(t=t.substr(0,t.length-1)),t):&quot;&quot;}},{}],599:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){Array.isArray(r)||(r=[].slice.call(arguments,2));for(var n=0,i=r.length;n&lt;i;n++){var a=r[n];for(var o in a)if((void 0===e[o]||Array.isArray(e[o])||t[o]!==e[o])&amp;&amp;o in e){var s;if(!0===a[o])s=e[o];else{if(!1===a[o])continue;if(&quot;function&quot;==typeof a[o]&amp;&amp;void 0===(s=a[o](e[o],t,e)))continue}t[o]=s}}return t}},{}],600:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){&quot;object&quot;==typeof e&amp;&amp;null!==e||(e={});return n(t,e.canvas||i,e.context||a,e)};var n=t(&quot;./lib/vtext&quot;),i=null,a=null;&quot;undefined&quot;!=typeof document&amp;&amp;((i=document.createElement(&quot;canvas&quot;)).width=8192,i.height=1024,a=i.getContext(&quot;2d&quot;))},{&quot;./lib/vtext&quot;:601}],601:[function(t,e,r){e.exports=function(t,e,r,n){var a=64,o=1.25,s={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};n&amp;&amp;(n.size&amp;&amp;n.size&gt;0&amp;&amp;(a=n.size),n.lineSpacing&amp;&amp;n.lineSpacing&gt;0&amp;&amp;(o=n.lineSpacing),n.styletags&amp;&amp;n.styletags.breaklines&amp;&amp;(s.breaklines=!!n.styletags.breaklines),n.styletags&amp;&amp;n.styletags.bolds&amp;&amp;(s.bolds=!!n.styletags.bolds),n.styletags&amp;&amp;n.styletags.italics&amp;&amp;(s.italics=!!n.styletags.italics),n.styletags&amp;&amp;n.styletags.subscripts&amp;&amp;(s.subscripts=!!n.styletags.subscripts),n.styletags&amp;&amp;n.styletags.superscripts&amp;&amp;(s.superscripts=!!n.styletags.superscripts));return r.font=[n.fontStyle,n.fontVariant,n.fontWeight,a+&quot;px&quot;,n.font].filter((function(t){return t})).join(&quot; &quot;),r.textAlign=&quot;start&quot;,r.textBaseline=&quot;alphabetic&quot;,r.direction=&quot;ltr&quot;,h(function(t,e,r,n,a,o){r=r.replace(/\n/g,&quot;&quot;),r=!0===o.breaklines?r.replace(/\&lt;br\&gt;/g,&quot;\n&quot;):r.replace(/\&lt;br\&gt;/g,&quot; &quot;);var s=&quot;&quot;,l=[];for(p=0;p&lt;r.length;++p)l[p]=s;!0===o.bolds&amp;&amp;(l=c(&quot;b&quot;,&quot;b|&quot;,r,l));!0===o.italics&amp;&amp;(l=c(&quot;i&quot;,&quot;i|&quot;,r,l));!0===o.superscripts&amp;&amp;(l=c(&quot;sup&quot;,&quot;+1&quot;,r,l));!0===o.subscripts&amp;&amp;(l=c(&quot;sub&quot;,&quot;-1&quot;,r,l));var u=[],f=&quot;&quot;;for(p=0;p&lt;r.length;++p)null!==l[p]&amp;&amp;(f+=r[p],u.push(l[p]));var h,p,d,g,m,v=f.split(&quot;\n&quot;),y=v.length,x=Math.round(a*n),b=n,_=2*n,w=0,T=y*x+_;t.height&lt;T&amp;&amp;(t.height=T);e.fillStyle=&quot;#000&quot;,e.fillRect(0,0,t.width,t.height),e.fillStyle=&quot;#fff&quot;;var k=0,M=&quot;&quot;;function A(){if(&quot;&quot;!==M){var t=e.measureText(M).width;e.fillText(M,b+d,_+g),d+=t}}function S(){return Math.round(m)+&quot;px &quot;}function E(t,r){var n=&quot;&quot;+e.font;if(!0===o.subscripts){var i=t.indexOf(&quot;-&quot;),a=r.indexOf(&quot;-&quot;),s=i&gt;-1?parseInt(t[1+i]):0,l=a&gt;-1?parseInt(r[1+a]):0;s!==l&amp;&amp;(n=n.replace(S(),&quot;?px &quot;),m*=Math.pow(.75,l-s),n=n.replace(&quot;?px &quot;,S())),g+=.25*x*(l-s)}if(!0===o.superscripts){var c=t.indexOf(&quot;+&quot;),u=r.indexOf(&quot;+&quot;),f=c&gt;-1?parseInt(t[1+c]):0,h=u&gt;-1?parseInt(r[1+u]):0;f!==h&amp;&amp;(n=n.replace(S(),&quot;?px &quot;),m*=Math.pow(.75,h-f),n=n.replace(&quot;?px &quot;,S())),g-=.25*x*(h-f)}if(!0===o.bolds){var p=t.indexOf(&quot;b|&quot;)&gt;-1,d=r.indexOf(&quot;b|&quot;)&gt;-1;!p&amp;&amp;d&amp;&amp;(n=v?n.replace(&quot;italic &quot;,&quot;italic bold &quot;):&quot;bold &quot;+n),p&amp;&amp;!d&amp;&amp;(n=n.replace(&quot;bold &quot;,&quot;&quot;))}if(!0===o.italics){var v=t.indexOf(&quot;i|&quot;)&gt;-1,y=r.indexOf(&quot;i|&quot;)&gt;-1;!v&amp;&amp;y&amp;&amp;(n=&quot;italic &quot;+n),v&amp;&amp;!y&amp;&amp;(n=n.replace(&quot;italic &quot;,&quot;&quot;))}e.font=n}for(h=0;h&lt;y;++h){var C=v[h]+&quot;\n&quot;;for(d=0,g=h*x,m=n,M=&quot;&quot;,p=0;p&lt;C.length;++p){var L=p+k&lt;u.length?u[p+k]:u[u.length-1];s===L?M+=C[p]:(A(),M=C[p],void 0!==L&amp;&amp;(E(s,L),s=L))}A(),k+=C.length;var I=0|Math.round(d+2*b);w&lt;I&amp;&amp;(w=I)}var P=w,z=_+x*y;return i(e.getImageData(0,0,P,z).data,[z,P,4]).pick(-1,-1,0).transpose(1,0)}(e,r,t,a,o,s),n,a)},e.exports.processPixels=h;var n=t(&quot;surface-nets&quot;),i=t(&quot;ndarray&quot;),a=t(&quot;simplify-planar-graph&quot;),o=t(&quot;clean-pslg&quot;),s=t(&quot;cdt2d&quot;),l=t(&quot;planar-graph-to-polyline&quot;);function c(t,e,r,n){for(var i=&quot;&lt;&quot;+t+&quot;&gt;&quot;,a=&quot;&lt;/&quot;+t+&quot;&gt;&quot;,o=i.length,s=a.length,l=&quot;+&quot;===e[0]||&quot;-&quot;===e[0],c=0,u=-s;c&gt;-1&amp;&amp;-1!==(c=r.indexOf(i,c))&amp;&amp;-1!==(u=r.indexOf(a,c+o))&amp;&amp;!(u&lt;=c);){for(var f=c;f&lt;u+s;++f)if(f&lt;c+o||f&gt;=u)n[f]=null,r=r.substr(0,f)+&quot; &quot;+r.substr(f+1);else if(null!==n[f]){var h=n[f].indexOf(e[0]);-1===h?n[f]+=e:l&amp;&amp;(n[f]=n[f].substr(0,h+1)+(1+parseInt(n[f][h+1]))+n[f].substr(h+2))}var p=c+o,d=r.substr(p,u-p).indexOf(i);c=-1!==d?d:u+s}return n}function u(t,e){var r=n(t,128);return e?a(r.cells,r.positions,.25):{edges:r.cells,positions:r.positions}}function f(t,e,r,n){var i=u(t,n),a=function(t,e,r){for(var n=e.textAlign||&quot;start&quot;,i=e.textBaseline||&quot;alphabetic&quot;,a=[1&lt;&lt;30,1&lt;&lt;30],o=[0,0],s=t.length,l=0;l&lt;s;++l)for(var c=t[l],u=0;u&lt;2;++u)a[u]=0|Math.min(a[u],c[u]),o[u]=0|Math.max(o[u],c[u]);var f=0;switch(n){case&quot;center&quot;:f=-.5*(a[0]+o[0]);break;case&quot;right&quot;:case&quot;end&quot;:f=-o[0];break;case&quot;left&quot;:case&quot;start&quot;:f=-a[0];break;default:throw new Error(&quot;vectorize-text: Unrecognized textAlign: '&quot;+n+&quot;'&quot;)}var h=0;switch(i){case&quot;hanging&quot;:case&quot;top&quot;:h=-a[1];break;case&quot;middle&quot;:h=-.5*(a[1]+o[1]);break;case&quot;alphabetic&quot;:case&quot;ideographic&quot;:h=-3*r;break;case&quot;bottom&quot;:h=-o[1];break;default:throw new Error(&quot;vectorize-text: Unrecoginized textBaseline: '&quot;+i+&quot;'&quot;)}var p=1/r;return&quot;lineHeight&quot;in e?p*=+e.lineHeight:&quot;width&quot;in e?p=e.width/(o[0]-a[0]):&quot;height&quot;in e&amp;&amp;(p=e.height/(o[1]-a[1])),t.map((function(t){return[p*(t[0]+f),p*(t[1]+h)]}))}(i.positions,e,r),c=i.edges,f=&quot;ccw&quot;===e.orientation;if(o(a,c),e.polygons||e.polygon||e.polyline){for(var h=l(c,a),p=new Array(h.length),d=0;d&lt;h.length;++d){for(var g=h[d],m=new Array(g.length),v=0;v&lt;g.length;++v){for(var y=g[v],x=new Array(y.length),b=0;b&lt;y.length;++b)x[b]=a[y[b]].slice();f&amp;&amp;x.reverse(),m[v]=x}p[d]=m}return p}return e.triangles||e.triangulate||e.triangle?{cells:s(a,c,{delaunay:!1,exterior:!1,interior:!0}),positions:a}:{edges:c,positions:a}}function h(t,e,r){try{return f(t,e,r,!0)}catch(t){}try{return f(t,e,r,!1)}catch(t){}return e.polygons||e.polyline||e.polygon?[]:e.triangles||e.triangulate||e.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}},{cdt2d:112,&quot;clean-pslg&quot;:121,ndarray:495,&quot;planar-graph-to-polyline&quot;:514,&quot;simplify-planar-graph&quot;:562,&quot;surface-nets&quot;:570}],602:[function(t,e,r){!function(){&quot;use strict&quot;;if(&quot;undefined&quot;==typeof ses||!ses.ok||ses.ok()){&quot;undefined&quot;!=typeof ses&amp;&amp;(ses.weakMapPermitHostObjects=g);var t=!1;if(&quot;function&quot;==typeof WeakMap){var r=WeakMap;if(&quot;undefined&quot;!=typeof navigator&amp;&amp;/Firefox/.test(navigator.userAgent));else{var n=new r,i=Object.freeze({});if(n.set(i,1),1===n.get(i))return void(e.exports=WeakMap);t=!0}}Object.prototype.hasOwnProperty;var a=Object.getOwnPropertyNames,o=Object.defineProperty,s=Object.isExtensible,l=&quot;weakmap:ident:&quot;+Math.random()+&quot;___&quot;;if(&quot;undefined&quot;!=typeof crypto&amp;&amp;&quot;function&quot;==typeof crypto.getRandomValues&amp;&amp;&quot;function&quot;==typeof ArrayBuffer&amp;&amp;&quot;function&quot;==typeof Uint8Array){var c=new ArrayBuffer(25),u=new Uint8Array(c);crypto.getRandomValues(u),l=&quot;weakmap:rand:&quot;+Array.prototype.map.call(u,(function(t){return(t%36).toString(36)})).join(&quot;&quot;)+&quot;___&quot;}if(o(Object,&quot;getOwnPropertyNames&quot;,{value:function(t){return a(t).filter(m)}}),&quot;getPropertyNames&quot;in Object){var f=Object.getPropertyNames;o(Object,&quot;getPropertyNames&quot;,{value:function(t){return f(t).filter(m)}})}!function(){var t=Object.freeze;o(Object,&quot;freeze&quot;,{value:function(e){return v(e),t(e)}});var e=Object.seal;o(Object,&quot;seal&quot;,{value:function(t){return v(t),e(t)}});var r=Object.preventExtensions;o(Object,&quot;preventExtensions&quot;,{value:function(t){return v(t),r(t)}})}();var h=!1,p=0,d=function(){this instanceof d||x();var t=[],e=[],r=p++;return Object.create(d.prototype,{get___:{value:y((function(n,i){var a,o=v(n);return o?r in o?o[r]:i:(a=t.indexOf(n))&gt;=0?e[a]:i}))},has___:{value:y((function(e){var n=v(e);return n?r in n:t.indexOf(e)&gt;=0}))},set___:{value:y((function(n,i){var a,o=v(n);return o?o[r]=i:(a=t.indexOf(n))&gt;=0?e[a]=i:(a=t.length,e[a]=i,t[a]=n),this}))},delete___:{value:y((function(n){var i,a,o=v(n);return o?r in o&amp;&amp;delete o[r]:!((i=t.indexOf(n))&lt;0)&amp;&amp;(a=t.length-1,t[i]=void 0,e[i]=e[a],t[i]=t[a],t.length=a,e.length=a,!0)}))}})};d.prototype=Object.create(Object.prototype,{get:{value:function(t,e){return this.get___(t,e)},writable:!0,configurable:!0},has:{value:function(t){return this.has___(t)},writable:!0,configurable:!0},set:{value:function(t,e){return this.set___(t,e)},writable:!0,configurable:!0},delete:{value:function(t){return this.delete___(t)},writable:!0,configurable:!0}}),&quot;function&quot;==typeof r?function(){function n(){this instanceof d||x();var e,n=new r,i=void 0,a=!1;return e=t?function(t,e){return n.set(t,e),n.has(t)||(i||(i=new d),i.set(t,e)),this}:function(t,e){if(a)try{n.set(t,e)}catch(r){i||(i=new d),i.set___(t,e)}else n.set(t,e);return this},Object.create(d.prototype,{get___:{value:y((function(t,e){return i?n.has(t)?n.get(t):i.get___(t,e):n.get(t,e)}))},has___:{value:y((function(t){return n.has(t)||!!i&amp;&amp;i.has___(t)}))},set___:{value:y(e)},delete___:{value:y((function(t){var e=!!n.delete(t);return i&amp;&amp;i.delete___(t)||e}))},permitHostObjects___:{value:y((function(t){if(t!==g)throw new Error(&quot;bogus call to permitHostObjects___&quot;);a=!0}))}})}t&amp;&amp;&quot;undefined&quot;!=typeof Proxy&amp;&amp;(Proxy=void 0),n.prototype=d.prototype,e.exports=n,Object.defineProperty(WeakMap.prototype,&quot;constructor&quot;,{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(&quot;undefined&quot;!=typeof Proxy&amp;&amp;(Proxy=void 0),e.exports=d)}function g(t){t.permitHostObjects___&amp;&amp;t.permitHostObjects___(g)}function m(t){return!(&quot;weakmap:&quot;==t.substr(0,&quot;weakmap:&quot;.length)&amp;&amp;&quot;___&quot;===t.substr(t.length-3))}function v(t){if(t!==Object(t))throw new TypeError(&quot;Not an object: &quot;+t);var e=t[l];if(e&amp;&amp;e.key===t)return e;if(s(t)){e={key:t};try{return o(t,l,{value:e,writable:!1,enumerable:!1,configurable:!1}),e}catch(t){return}}}function y(t){return t.prototype=null,Object.freeze(t)}function x(){h||&quot;undefined&quot;==typeof console||(h=!0,console.warn(&quot;WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future.&quot;))}}()},{}],603:[function(t,e,r){var n=t(&quot;./hidden-store.js&quot;);e.exports=function(){var t={};return function(e){if((&quot;object&quot;!=typeof e||null===e)&amp;&amp;&quot;function&quot;!=typeof e)throw new Error(&quot;Weakmap-shim: Key must be object&quot;);var r=e.valueOf(t);return r&amp;&amp;r.identity===t?r:n(e,t)}}},{&quot;./hidden-store.js&quot;:604}],604:[function(t,e,r){e.exports=function(t,e){var r={identity:e},n=t.valueOf;return Object.defineProperty(t,&quot;valueOf&quot;,{value:function(t){return t!==e?n.apply(this,arguments):r},writable:!0}),r}},{}],605:[function(t,e,r){var n=t(&quot;./create-store.js&quot;);e.exports=function(){var t=n();return{get:function(e,r){var n=t(e);return n.hasOwnProperty(&quot;value&quot;)?n.value:r},set:function(e,r){return t(e).value=r,this},has:function(e){return&quot;value&quot;in t(e)},delete:function(e){return delete t(e).value}}}},{&quot;./create-store.js&quot;:603}],606:[function(t,e,r){var n=t(&quot;get-canvas-context&quot;);e.exports=function(t){return n(&quot;webgl&quot;,t)}},{&quot;get-canvas-context&quot;:249}],607:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Chinese&quot;,jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Chinese&quot;,epochs:[&quot;BEC&quot;,&quot;EC&quot;],monthNumbers:function(t,e){if(&quot;string&quot;==typeof t){var r=t.match(l);return r?r[0]:&quot;&quot;}var n=this._validateYear(t),i=t.month(),a=&quot;&quot;+this.toChineseMonth(n,i);return e&amp;&amp;a.length&lt;2&amp;&amp;(a=&quot;0&quot;+a),this.isIntercalaryMonth(n,i)&amp;&amp;(a+=&quot;i&quot;),a},monthNames:function(t){if(&quot;string&quot;==typeof t){var e=t.match(c);return e?e[0]:&quot;&quot;}var r=this._validateYear(t),n=t.month(),i=[&quot;\u4e00\u6708&quot;,&quot;\u4e8c\u6708&quot;,&quot;\u4e09\u6708&quot;,&quot;\u56db\u6708&quot;,&quot;\u4e94\u6708&quot;,&quot;\u516d\u6708&quot;,&quot;\u4e03\u6708&quot;,&quot;\u516b\u6708&quot;,&quot;\u4e5d\u6708&quot;,&quot;\u5341\u6708&quot;,&quot;\u5341\u4e00\u6708&quot;,&quot;\u5341\u4e8c\u6708&quot;][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&amp;&amp;(i=&quot;\u95f0&quot;+i),i},monthNamesShort:function(t){if(&quot;string&quot;==typeof t){var e=t.match(u);return e?e[0]:&quot;&quot;}var r=this._validateYear(t),n=t.month(),i=[&quot;\u4e00&quot;,&quot;\u4e8c&quot;,&quot;\u4e09&quot;,&quot;\u56db&quot;,&quot;\u4e94&quot;,&quot;\u516d&quot;,&quot;\u4e03&quot;,&quot;\u516b&quot;,&quot;\u4e5d&quot;,&quot;\u5341&quot;,&quot;\u5341\u4e00&quot;,&quot;\u5341\u4e8c&quot;][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&amp;&amp;(i=&quot;\u95f0&quot;+i),i},parseMonth:function(t,e){t=this._validateYear(t);var r,n=parseInt(e);if(isNaN(n))&quot;\u95f0&quot;===e[0]&amp;&amp;(r=!0,e=e.substring(1)),&quot;\u6708&quot;===e[e.length-1]&amp;&amp;(e=e.substring(0,e.length-1)),n=1+[&quot;\u4e00&quot;,&quot;\u4e8c&quot;,&quot;\u4e09&quot;,&quot;\u56db&quot;,&quot;\u4e94&quot;,&quot;\u516d&quot;,&quot;\u4e03&quot;,&quot;\u516b&quot;,&quot;\u4e5d&quot;,&quot;\u5341&quot;,&quot;\u5341\u4e00&quot;,&quot;\u5341\u4e8c&quot;].indexOf(e);else{var i=e[e.length-1];r=&quot;i&quot;===i||&quot;I&quot;===i}return this.toMonthIndex(t,n,r)},dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:1,isRTL:!1}},_validateYear:function(t,e){if(t.year&amp;&amp;(t=t.year()),&quot;number&quot;!=typeof t||t&lt;1888||t&gt;2111)throw e.replace(/\{0\}/,this.local.name);return t},toMonthIndex:function(t,e,r){var i=this.intercalaryMonth(t);if(r&amp;&amp;e!==i||e&lt;1||e&gt;12)throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return i?!r&amp;&amp;e&lt;=i?e-1:e:e-1},toChineseMonth:function(t,e){t.year&amp;&amp;(e=(t=t.year()).month());var r=this.intercalaryMonth(t);if(e&lt;0||e&gt;(r?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r?e&lt;r?e+1:e:e+1},intercalaryMonth:function(t){return t=this._validateYear(t),f[t-f[0]]&gt;&gt;13},isIntercalaryMonth:function(t,e){t.year&amp;&amp;(e=(t=t.year()).month());var r=this.intercalaryMonth(t);return!!r&amp;&amp;r===e},leapYear:function(t){return 0!==this.intercalaryMonth(t)},weekOfYear:function(t,e,r){var i,o=this._validateYear(t,n.local.invalidyear),s=h[o-h[0]],l=s&gt;&gt;9&amp;4095,c=s&gt;&gt;5&amp;15,u=31&amp;s;(i=a.newDate(l,c,u)).add(4-(i.dayOfWeek()||7),&quot;d&quot;);var f=this.toJD(t,e,r)-i.toJD();return 1+Math.floor(f/7)},monthsInYear:function(t){return this.leapYear(t)?13:12},daysInMonth:function(t,e){t.year&amp;&amp;(e=t.month(),t=t.year()),t=this._validateYear(t);var r=f[t-f[0]];if(e&gt;(r&gt;&gt;13?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r&amp;1&lt;&lt;12-e?30:29},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,s,r,n.local.invalidDate);t=this._validateYear(i.year()),e=i.month(),r=i.day();var o=this.isIntercalaryMonth(t,e),s=this.toChineseMonth(t,e),l=function(t,e,r,n,i){var a,o,s;if(&quot;object&quot;==typeof t)o=t,a=e||{};else{var l;if(!(&quot;number&quot;==typeof t&amp;&amp;t&gt;=1888&amp;&amp;t&lt;=2111))throw new Error(&quot;Lunar year outside range 1888-2111&quot;);if(!(&quot;number&quot;==typeof e&amp;&amp;e&gt;=1&amp;&amp;e&lt;=12))throw new Error(&quot;Lunar month outside range 1 - 12&quot;);if(!(&quot;number&quot;==typeof r&amp;&amp;r&gt;=1&amp;&amp;r&lt;=30))throw new Error(&quot;Lunar day outside range 1 - 30&quot;);&quot;object&quot;==typeof n?(l=!1,a=n):(l=!!n,a=i||{}),o={year:t,month:e,day:r,isIntercalary:l}}s=o.day-1;var c,u=f[o.year-f[0]],p=u&gt;&gt;13;c=p&amp;&amp;(o.month&gt;p||o.isIntercalary)?o.month:o.month-1;for(var d=0;d&lt;c;d++){s+=u&amp;1&lt;&lt;12-d?30:29}var g=h[o.year-h[0]],m=new Date(g&gt;&gt;9&amp;4095,(g&gt;&gt;5&amp;15)-1,(31&amp;g)+s);return a.year=m.getFullYear(),a.month=1+m.getMonth(),a.day=m.getDate(),a}(t,s,r,o);return a.toJD(l.year,l.month,l.day)},fromJD:function(t){var e=a.fromJD(t),r=function(t,e,r,n){var i,a;if(&quot;object&quot;==typeof t)i=t,a=e||{};else{if(!(&quot;number&quot;==typeof t&amp;&amp;t&gt;=1888&amp;&amp;t&lt;=2111))throw new Error(&quot;Solar year outside range 1888-2111&quot;);if(!(&quot;number&quot;==typeof e&amp;&amp;e&gt;=1&amp;&amp;e&lt;=12))throw new Error(&quot;Solar month outside range 1 - 12&quot;);if(!(&quot;number&quot;==typeof r&amp;&amp;r&gt;=1&amp;&amp;r&lt;=31))throw new Error(&quot;Solar day outside range 1 - 31&quot;);i={year:t,month:e,day:r},a=n||{}}var o=h[i.year-h[0]],s=i.year&lt;&lt;9|i.month&lt;&lt;5|i.day;a.year=s&gt;=o?i.year:i.year-1,o=h[a.year-h[0]];var l,c=new Date(o&gt;&gt;9&amp;4095,(o&gt;&gt;5&amp;15)-1,31&amp;o),u=new Date(i.year,i.month-1,i.day);l=Math.round((u-c)/864e5);var p,d=f[a.year-f[0]];for(p=0;p&lt;13;p++){var g=d&amp;1&lt;&lt;12-p?30:29;if(l&lt;g)break;l-=g}var m=d&gt;&gt;13;!m||p&lt;m?(a.isIntercalary=!1,a.month=1+p):p===m?(a.isIntercalary=!0,a.month=p):(a.isIntercalary=!1,a.month=p);return a.day=1+l,a}(e.year(),e.month(),e.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(t){var e=t.match(s),r=this._validateYear(+e[1]),n=+e[2],i=!!e[3],a=this.toMonthIndex(r,n,i),o=+e[4];return this.newDate(r,a,o)},add:function(t,e,r){var n=t.year(),i=t.month(),a=this.isIntercalaryMonth(n,i),s=this.toChineseMonth(n,i),l=Object.getPrototypeOf(o.prototype).add.call(this,t,e,r);if(&quot;y&quot;===r){var c=l.year(),u=l.month(),f=this.isIntercalaryMonth(c,s),h=a&amp;&amp;f?this.toMonthIndex(c,s,!0):this.toMonthIndex(c,s,!1);h!==u&amp;&amp;l.month(h)}return l}});var s=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,l=/^\d?\d[iI]?/m,c=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?\u6708/m,u=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?/m;n.calendars.chinese=o;var f=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],h=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],608:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Coptic&quot;,jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Coptic&quot;,epochs:[&quot;BAM&quot;,&quot;AM&quot;],monthNames:[&quot;Thout&quot;,&quot;Paopi&quot;,&quot;Hathor&quot;,&quot;Koiak&quot;,&quot;Tobi&quot;,&quot;Meshir&quot;,&quot;Paremhat&quot;,&quot;Paremoude&quot;,&quot;Pashons&quot;,&quot;Paoni&quot;,&quot;Epip&quot;,&quot;Mesori&quot;,&quot;Pi Kogi Enavot&quot;],monthNamesShort:[&quot;Tho&quot;,&quot;Pao&quot;,&quot;Hath&quot;,&quot;Koi&quot;,&quot;Tob&quot;,&quot;Mesh&quot;,&quot;Pat&quot;,&quot;Pad&quot;,&quot;Pash&quot;,&quot;Pao&quot;,&quot;Epi&quot;,&quot;Meso&quot;,&quot;PiK&quot;],dayNames:[&quot;Tkyriaka&quot;,&quot;Pesnau&quot;,&quot;Pshoment&quot;,&quot;Peftoou&quot;,&quot;Ptiou&quot;,&quot;Psoou&quot;,&quot;Psabbaton&quot;],dayNamesShort:[&quot;Tky&quot;,&quot;Pes&quot;,&quot;Psh&quot;,&quot;Pef&quot;,&quot;Pti&quot;,&quot;Pso&quot;,&quot;Psa&quot;],dayNamesMin:[&quot;Tk&quot;,&quot;Pes&quot;,&quot;Psh&quot;,&quot;Pef&quot;,&quot;Pt&quot;,&quot;Pso&quot;,&quot;Psa&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())&lt;0&amp;&amp;t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r&lt;=0&amp;&amp;r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.coptic=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],609:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Discworld&quot;,jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Discworld&quot;,epochs:[&quot;BUC&quot;,&quot;UC&quot;],monthNames:[&quot;Ick&quot;,&quot;Offle&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;Grune&quot;,&quot;August&quot;,&quot;Spune&quot;,&quot;Sektober&quot;,&quot;Ember&quot;,&quot;December&quot;],monthNamesShort:[&quot;Ick&quot;,&quot;Off&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Gru&quot;,&quot;Aug&quot;,&quot;Spu&quot;,&quot;Sek&quot;,&quot;Emb&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Octeday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Oct&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Oc&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:2,isRTL:!1}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),13},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),400},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(t,e,r){return(this._validate(t,e,r,n.local.invalidDate).day()+1)%8},weekDay:function(t,e,r){var n=this.dayOfWeek(t,e,r);return n&gt;=2&amp;&amp;n&lt;=6},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{century:o[Math.floor((i.year()-1)/100)+1]||&quot;&quot;}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year()+(i.year()&lt;0?1:0),e=i.month(),(r=i.day())+(e&gt;1?16:0)+(e&gt;2?32*(e-2):0)+400*(t-1)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t+.5)-Math.floor(this.jdEpoch)-1;var e=Math.floor(t/400)+1;t-=400*(e-1),t+=t&gt;15?16:0;var r=Math.floor(t/32)+1,n=t-32*(r-1)+1;return this.newDate(e&lt;=0?e-1:e,r,n)}});var o={20:&quot;Fruitbat&quot;,21:&quot;Anchovy&quot;};n.calendars.discworld=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],610:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Ethiopian&quot;,jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Ethiopian&quot;,epochs:[&quot;BEE&quot;,&quot;EE&quot;],monthNames:[&quot;Meskerem&quot;,&quot;Tikemet&quot;,&quot;Hidar&quot;,&quot;Tahesas&quot;,&quot;Tir&quot;,&quot;Yekatit&quot;,&quot;Megabit&quot;,&quot;Miazia&quot;,&quot;Genbot&quot;,&quot;Sene&quot;,&quot;Hamle&quot;,&quot;Nehase&quot;,&quot;Pagume&quot;],monthNamesShort:[&quot;Mes&quot;,&quot;Tik&quot;,&quot;Hid&quot;,&quot;Tah&quot;,&quot;Tir&quot;,&quot;Yek&quot;,&quot;Meg&quot;,&quot;Mia&quot;,&quot;Gen&quot;,&quot;Sen&quot;,&quot;Ham&quot;,&quot;Neh&quot;,&quot;Pag&quot;],dayNames:[&quot;Ehud&quot;,&quot;Segno&quot;,&quot;Maksegno&quot;,&quot;Irob&quot;,&quot;Hamus&quot;,&quot;Arb&quot;,&quot;Kidame&quot;],dayNamesShort:[&quot;Ehu&quot;,&quot;Seg&quot;,&quot;Mak&quot;,&quot;Iro&quot;,&quot;Ham&quot;,&quot;Arb&quot;,&quot;Kid&quot;],dayNamesMin:[&quot;Eh&quot;,&quot;Se&quot;,&quot;Ma&quot;,&quot;Ir&quot;,&quot;Ha&quot;,&quot;Ar&quot;,&quot;Ki&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())&lt;0&amp;&amp;t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r&lt;=0&amp;&amp;r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.ethiopian=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],611:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Hebrew&quot;,jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Hebrew&quot;,epochs:[&quot;BAM&quot;,&quot;AM&quot;],monthNames:[&quot;Nisan&quot;,&quot;Iyar&quot;,&quot;Sivan&quot;,&quot;Tammuz&quot;,&quot;Av&quot;,&quot;Elul&quot;,&quot;Tishrei&quot;,&quot;Cheshvan&quot;,&quot;Kislev&quot;,&quot;Tevet&quot;,&quot;Shevat&quot;,&quot;Adar&quot;,&quot;Adar II&quot;],monthNamesShort:[&quot;Nis&quot;,&quot;Iya&quot;,&quot;Siv&quot;,&quot;Tam&quot;,&quot;Av&quot;,&quot;Elu&quot;,&quot;Tis&quot;,&quot;Che&quot;,&quot;Kis&quot;,&quot;Tev&quot;,&quot;She&quot;,&quot;Ada&quot;,&quot;Ad2&quot;],dayNames:[&quot;Yom Rishon&quot;,&quot;Yom Sheni&quot;,&quot;Yom Shlishi&quot;,&quot;Yom Revi'i&quot;,&quot;Yom Chamishi&quot;,&quot;Yom Shishi&quot;,&quot;Yom Shabbat&quot;],dayNamesShort:[&quot;Ris&quot;,&quot;She&quot;,&quot;Shl&quot;,&quot;Rev&quot;,&quot;Cha&quot;,&quot;Shi&quot;,&quot;Sha&quot;],dayNamesMin:[&quot;Ri&quot;,&quot;She&quot;,&quot;Shl&quot;,&quot;Re&quot;,&quot;Ch&quot;,&quot;Shi&quot;,&quot;Sha&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return this._leapYear(e.year())},_leapYear:function(t){return o(7*(t=t&lt;0?t+1:t)+1,19)&lt;7},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),this._leapYear(t.year?t.year():t)?13:12},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),this.toJD(-1===t?1:t+1,7,1)-this.toJD(t,7,1)},daysInMonth:function(t,e){return t.year&amp;&amp;(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),12===e&amp;&amp;this.leapYear(t)||8===e&amp;&amp;5===o(this.daysInYear(t),10)?30:9===e&amp;&amp;3===o(this.daysInYear(t),10)?29:this.daysPerMonth[e-1]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{yearType:(this.leapYear(i)?&quot;embolismic&quot;:&quot;common&quot;)+&quot; &quot;+[&quot;deficient&quot;,&quot;regular&quot;,&quot;complete&quot;][this.daysInYear(i)%10-3]}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t&lt;=0?t+1:t,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(e&lt;7){for(var s=7;s&lt;=this.monthsInYear(t);s++)o+=this.daysInMonth(t,s);for(s=1;s&lt;e;s++)o+=this.daysInMonth(t,s)}else for(s=7;s&lt;e;s++)o+=this.daysInMonth(t,s);return o},_delay1:function(t){var e=Math.floor((235*t-234)/19),r=12084+13753*e,n=29*e+Math.floor(r/25920);return o(3*(n+1),7)&lt;3&amp;&amp;n++,n},_delay2:function(t){var e=this._delay1(t-1),r=this._delay1(t);return this._delay1(t+1)-r==356?2:r-e==382?1:0},fromJD:function(t){t=Math.floor(t)+.5;for(var e=Math.floor(98496*(t-this.jdEpoch)/35975351)-1;t&gt;=this.toJD(-1===e?1:e+1,7,1);)e++;for(var r=t&lt;this.toJD(e,1,1)?7:1;t&gt;this.toJD(e,r,this.daysInMonth(e,r));)r++;var n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.hebrew=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],612:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Islamic&quot;,jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Islamic&quot;,epochs:[&quot;BH&quot;,&quot;AH&quot;],monthNames:[&quot;Muharram&quot;,&quot;Safar&quot;,&quot;Rabi' al-awwal&quot;,&quot;Rabi' al-thani&quot;,&quot;Jumada al-awwal&quot;,&quot;Jumada al-thani&quot;,&quot;Rajab&quot;,&quot;Sha'aban&quot;,&quot;Ramadan&quot;,&quot;Shawwal&quot;,&quot;Dhu al-Qi'dah&quot;,&quot;Dhu al-Hijjah&quot;],monthNamesShort:[&quot;Muh&quot;,&quot;Saf&quot;,&quot;Rab1&quot;,&quot;Rab2&quot;,&quot;Jum1&quot;,&quot;Jum2&quot;,&quot;Raj&quot;,&quot;Sha'&quot;,&quot;Ram&quot;,&quot;Shaw&quot;,&quot;DhuQ&quot;,&quot;DhuH&quot;],dayNames:[&quot;Yawm al-ahad&quot;,&quot;Yawm al-ithnayn&quot;,&quot;Yawm ath-thulaathaa'&quot;,&quot;Yawm al-arbi'aa'&quot;,&quot;Yawm al-kham\u012bs&quot;,&quot;Yawm al-jum'a&quot;,&quot;Yawm as-sabt&quot;],dayNamesShort:[&quot;Aha&quot;,&quot;Ith&quot;,&quot;Thu&quot;,&quot;Arb&quot;,&quot;Kha&quot;,&quot;Jum&quot;,&quot;Sab&quot;],dayNamesMin:[&quot;Ah&quot;,&quot;It&quot;,&quot;Th&quot;,&quot;Ar&quot;,&quot;Kh&quot;,&quot;Ju&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!1}},leapYear:function(t){return(11*this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year()+14)%30&lt;11},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return this.leapYear(t)?355:354},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),t=t&lt;=0?t+1:t,(r=i.day())+Math.ceil(29.5*(e-1))+354*(t-1)+Math.floor((3+11*t)/30)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t)+.5;var e=Math.floor((30*(t-this.jdEpoch)+10646)/10631);e=e&lt;=0?e-1:e;var r=Math.min(12,Math.ceil((t-29-this.toJD(e,1,1))/29.5)+1),n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.islamic=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],613:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Julian&quot;,jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Julian&quot;,epochs:[&quot;BC&quot;,&quot;AD&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;mm/dd/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()&lt;0?e.year()+1:e.year())%4==0},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),r=i.day(),t&lt;0&amp;&amp;t++,e&lt;=2&amp;&amp;(t--,e+=12),Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r-1524.5},fromJD:function(t){var e=Math.floor(t+.5)+1524,r=Math.floor((e-122.1)/365.25),n=Math.floor(365.25*r),i=Math.floor((e-n)/30.6001),a=i-Math.floor(i&lt;14?1:13),o=r-Math.floor(a&gt;2?4716:4715),s=e-n-Math.floor(30.6001*i);return o&lt;=0&amp;&amp;o--,this.newDate(o,a,s)}}),n.calendars.julian=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],614:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}function s(t,e){return o(t-1,e)+1}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Mayan&quot;,jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{&quot;&quot;:{name:&quot;Mayan&quot;,epochs:[&quot;&quot;,&quot;&quot;],monthNames:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;],monthNamesShort:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;],dayNames:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],dayNamesShort:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],dayNamesMin:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],digits:null,dateFormat:&quot;YYYY.m.d&quot;,firstDay:0,isRTL:!1,haabMonths:[&quot;Pop&quot;,&quot;Uo&quot;,&quot;Zip&quot;,&quot;Zotz&quot;,&quot;Tzec&quot;,&quot;Xul&quot;,&quot;Yaxkin&quot;,&quot;Mol&quot;,&quot;Chen&quot;,&quot;Yax&quot;,&quot;Zac&quot;,&quot;Ceh&quot;,&quot;Mac&quot;,&quot;Kankin&quot;,&quot;Muan&quot;,&quot;Pax&quot;,&quot;Kayab&quot;,&quot;Cumku&quot;,&quot;Uayeb&quot;],tzolkinMonths:[&quot;Imix&quot;,&quot;Ik&quot;,&quot;Akbal&quot;,&quot;Kan&quot;,&quot;Chicchan&quot;,&quot;Cimi&quot;,&quot;Manik&quot;,&quot;Lamat&quot;,&quot;Muluc&quot;,&quot;Oc&quot;,&quot;Chuen&quot;,&quot;Eb&quot;,&quot;Ben&quot;,&quot;Ix&quot;,&quot;Men&quot;,&quot;Cib&quot;,&quot;Caban&quot;,&quot;Etznab&quot;,&quot;Cauac&quot;,&quot;Ahau&quot;]}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},formatYear:function(t){t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year();var e=Math.floor(t/400);return t%=400,t+=t&lt;0?400:0,e+&quot;.&quot;+Math.floor(t/20)+&quot;.&quot;+t%20},forYear:function(t){if((t=t.split(&quot;.&quot;)).length&lt;3)throw&quot;Invalid Mayan year&quot;;for(var e=0,r=0;r&lt;t.length;r++){var n=parseInt(t[r],10);if(Math.abs(n)&gt;19||r&gt;0&amp;&amp;n&lt;0)throw&quot;Invalid Mayan year&quot;;e=20*e+n}return e},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),18},weekOfYear:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),0},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),360},daysInMonth:function(t,e){return this._validate(t,e,this.minDay,n.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate).day()},weekDay:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),!0},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate).toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(t){var e=o((t-=this.jdEpoch)+8+340,365);return[Math.floor(e/20)+1,o(e,20)]},_toTzolkin:function(t){return[s((t-=this.jdEpoch)+20,20),s(t+4,13)]},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return i.day()+20*i.month()+360*i.year()+this.jdEpoch},fromJD:function(t){t=Math.floor(t)+.5-this.jdEpoch;var e=Math.floor(t/360);t%=360,t+=t&lt;0?360:0;var r=Math.floor(t/20),n=t%20;return this.newDate(e,r,n)}}),n.calendars.mayan=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],615:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar;var o=n.instance(&quot;gregorian&quot;);i(a.prototype,{name:&quot;Nanakshahi&quot;,jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Nanakshahi&quot;,epochs:[&quot;BN&quot;,&quot;AN&quot;],monthNames:[&quot;Chet&quot;,&quot;Vaisakh&quot;,&quot;Jeth&quot;,&quot;Harh&quot;,&quot;Sawan&quot;,&quot;Bhadon&quot;,&quot;Assu&quot;,&quot;Katak&quot;,&quot;Maghar&quot;,&quot;Poh&quot;,&quot;Magh&quot;,&quot;Phagun&quot;],monthNamesShort:[&quot;Che&quot;,&quot;Vai&quot;,&quot;Jet&quot;,&quot;Har&quot;,&quot;Saw&quot;,&quot;Bha&quot;,&quot;Ass&quot;,&quot;Kat&quot;,&quot;Mgr&quot;,&quot;Poh&quot;,&quot;Mgh&quot;,&quot;Pha&quot;],dayNames:[&quot;Somvaar&quot;,&quot;Mangalvar&quot;,&quot;Budhvaar&quot;,&quot;Veervaar&quot;,&quot;Shukarvaar&quot;,&quot;Sanicharvaar&quot;,&quot;Etvaar&quot;],dayNamesShort:[&quot;Som&quot;,&quot;Mangal&quot;,&quot;Budh&quot;,&quot;Veer&quot;,&quot;Shukar&quot;,&quot;Sanichar&quot;,&quot;Et&quot;],dayNamesMin:[&quot;So&quot;,&quot;Ma&quot;,&quot;Bu&quot;,&quot;Ve&quot;,&quot;Sh&quot;,&quot;Sa&quot;,&quot;Et&quot;],digits:null,dateFormat:&quot;dd-mm-yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear);return o.leapYear(e.year()+(e.year()&lt;1?1:0)+1469)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(1-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidMonth);(t=i.year())&lt;0&amp;&amp;t++;for(var a=i.day(),s=1;s&lt;i.month();s++)a+=this.daysPerMonth[s-1];return a+o.toJD(t+1468,3,13)},fromJD:function(t){t=Math.floor(t+.5);for(var e=Math.floor((t-(this.jdEpoch-1))/366);t&gt;=this.toJD(e+1,1,1);)e++;for(var r=t-Math.floor(this.toJD(e,1,1)+.5)+1,n=1;r&gt;this.daysInMonth(e,n);)r-=this.daysInMonth(e,n),n++;return this.newDate(e,n,r)}}),n.calendars.nanakshahi=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],616:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Nepali&quot;,jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{&quot;&quot;:{name:&quot;Nepali&quot;,epochs:[&quot;BBS&quot;,&quot;ABS&quot;],monthNames:[&quot;Baisakh&quot;,&quot;Jestha&quot;,&quot;Ashadh&quot;,&quot;Shrawan&quot;,&quot;Bhadra&quot;,&quot;Ashwin&quot;,&quot;Kartik&quot;,&quot;Mangsir&quot;,&quot;Paush&quot;,&quot;Mangh&quot;,&quot;Falgun&quot;,&quot;Chaitra&quot;],monthNamesShort:[&quot;Bai&quot;,&quot;Je&quot;,&quot;As&quot;,&quot;Shra&quot;,&quot;Bha&quot;,&quot;Ash&quot;,&quot;Kar&quot;,&quot;Mang&quot;,&quot;Pau&quot;,&quot;Ma&quot;,&quot;Fal&quot;,&quot;Chai&quot;],dayNames:[&quot;Aaitabaar&quot;,&quot;Sombaar&quot;,&quot;Manglbaar&quot;,&quot;Budhabaar&quot;,&quot;Bihibaar&quot;,&quot;Shukrabaar&quot;,&quot;Shanibaar&quot;],dayNamesShort:[&quot;Aaita&quot;,&quot;Som&quot;,&quot;Mangl&quot;,&quot;Budha&quot;,&quot;Bihi&quot;,&quot;Shukra&quot;,&quot;Shani&quot;],dayNamesMin:[&quot;Aai&quot;,&quot;So&quot;,&quot;Man&quot;,&quot;Bu&quot;,&quot;Bi&quot;,&quot;Shu&quot;,&quot;Sha&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:1,isRTL:!1}},leapYear:function(t){return this.daysInYear(t)!==this.daysPerYear},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){if(t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),&quot;undefined&quot;==typeof this.NEPALI_CALENDAR_DATA[t])return this.daysPerYear;for(var e=0,r=this.minMonth;r&lt;=12;r++)e+=this.NEPALI_CALENDAR_DATA[t][r];return e},daysInMonth:function(t,e){return t.year&amp;&amp;(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),&quot;undefined&quot;==typeof this.NEPALI_CALENDAR_DATA[t]?this.daysPerMonth[e-1]:this.NEPALI_CALENDAR_DATA[t][e]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=n.instance(),o=0,s=e,l=t;this._createMissingCalendarData(t);var c=t-(s&gt;9||9===s&amp;&amp;r&gt;=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(9!==e&amp;&amp;(o=r,s--);9!==s;)s&lt;=0&amp;&amp;(s=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][s],s--;return 9===e?(o+=r-this.NEPALI_CALENDAR_DATA[l][0])&lt;0&amp;&amp;(o+=a.daysInYear(c)):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(c,1,1).add(o,&quot;d&quot;).toJD()},fromJD:function(t){var e=n.instance().fromJD(t),r=e.year(),i=e.dayOfYear(),a=r+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i&gt;l;)++o&gt;12&amp;&amp;(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var c=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,c)},_createMissingCalendarData:function(t){var e=this.daysPerMonth.slice(0);e.unshift(17);for(var r=t-1;r&lt;t+2;r++)&quot;undefined&quot;==typeof this.NEPALI_CALENDAR_DATA[r]&amp;&amp;(this.NEPALI_CALENDAR_DATA[r]=e)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),n.calendars.nepali=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],617:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Persian&quot;,jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Persian&quot;,epochs:[&quot;BP&quot;,&quot;AP&quot;],monthNames:[&quot;Farvardin&quot;,&quot;Ordibehesht&quot;,&quot;Khordad&quot;,&quot;Tir&quot;,&quot;Mordad&quot;,&quot;Shahrivar&quot;,&quot;Mehr&quot;,&quot;Aban&quot;,&quot;Azar&quot;,&quot;Day&quot;,&quot;Bahman&quot;,&quot;Esfand&quot;],monthNamesShort:[&quot;Far&quot;,&quot;Ord&quot;,&quot;Kho&quot;,&quot;Tir&quot;,&quot;Mor&quot;,&quot;Sha&quot;,&quot;Meh&quot;,&quot;Aba&quot;,&quot;Aza&quot;,&quot;Day&quot;,&quot;Bah&quot;,&quot;Esf&quot;],dayNames:[&quot;Yekshambe&quot;,&quot;Doshambe&quot;,&quot;Seshambe&quot;,&quot;Ch\xe6harshambe&quot;,&quot;Panjshambe&quot;,&quot;Jom'e&quot;,&quot;Shambe&quot;],dayNamesShort:[&quot;Yek&quot;,&quot;Do&quot;,&quot;Se&quot;,&quot;Ch\xe6&quot;,&quot;Panj&quot;,&quot;Jom&quot;,&quot;Sha&quot;],dayNamesMin:[&quot;Ye&quot;,&quot;Do&quot;,&quot;Se&quot;,&quot;Ch&quot;,&quot;Pa&quot;,&quot;Jo&quot;,&quot;Sh&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 682*((e.year()-(e.year()&gt;0?474:473))%2820+474+38)%2816&lt;682},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-(n.dayOfWeek()+1)%7,&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t-(t&gt;=0?474:473),s=474+o(a,2820);return r+(e&lt;=7?31*(e-1):30*(e-1)+6)+Math.floor((682*s-110)/2816)+365*(s-1)+1029983*Math.floor(a/2820)+this.jdEpoch-1},fromJD:function(t){var e=(t=Math.floor(t)+.5)-this.toJD(475,1,1),r=Math.floor(e/1029983),n=o(e,1029983),i=2820;if(1029982!==n){var a=Math.floor(n/366),s=o(n,366);i=Math.floor((2134*a+2816*s+2815)/1028522)+a+1}var l=i+2820*r+474;l=l&lt;=0?l-1:l;var c=t-this.toJD(l,1,1)+1,u=c&lt;=186?Math.ceil(c/31):Math.ceil((c-6)/30),f=t-this.toJD(l,u,1)+1;return this.newDate(l,u,f)}}),n.calendars.persian=a,n.calendars.jalali=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],618:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Taiwan&quot;,jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Taiwan&quot;,epochs:[&quot;BROC&quot;,&quot;ROC&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:1,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t+this.yearsOffset+(t&gt;=-this.yearsOffset&amp;&amp;t&lt;=-1?1:0)},_g2tYear:function(t){return t-this.yearsOffset-(t&gt;=1&amp;&amp;t&lt;=this.yearsOffset?1:0)}}),n.calendars.taiwan=o},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],619:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Thai&quot;,jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Thai&quot;,epochs:[&quot;BBE&quot;,&quot;BE&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t-this.yearsOffset-(t&gt;=1&amp;&amp;t&lt;=this.yearsOffset?1:0)},_g2tYear:function(t){return t+this.yearsOffset+(t&gt;=-this.yearsOffset&amp;&amp;t&lt;=-1?1:0)}}),n.calendars.thai=o},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],620:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;UmmAlQura&quot;,hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Umm al-Qura&quot;,epochs:[&quot;BH&quot;,&quot;AH&quot;],monthNames:[&quot;Al-Muharram&quot;,&quot;Safar&quot;,&quot;Rabi' al-awwal&quot;,&quot;Rabi' Al-Thani&quot;,&quot;Jumada Al-Awwal&quot;,&quot;Jumada Al-Thani&quot;,&quot;Rajab&quot;,&quot;Sha'aban&quot;,&quot;Ramadan&quot;,&quot;Shawwal&quot;,&quot;Dhu al-Qi'dah&quot;,&quot;Dhu al-Hijjah&quot;],monthNamesShort:[&quot;Muh&quot;,&quot;Saf&quot;,&quot;Rab1&quot;,&quot;Rab2&quot;,&quot;Jum1&quot;,&quot;Jum2&quot;,&quot;Raj&quot;,&quot;Sha'&quot;,&quot;Ram&quot;,&quot;Shaw&quot;,&quot;DhuQ&quot;,&quot;DhuH&quot;],dayNames:[&quot;Yawm al-Ahad&quot;,&quot;Yawm al-Ithnain&quot;,&quot;Yawm al-Thal\u0101th\u0101\u2019&quot;,&quot;Yawm al-Arba\u2018\u0101\u2019&quot;,&quot;Yawm al-Kham\u012bs&quot;,&quot;Yawm al-Jum\u2018a&quot;,&quot;Yawm al-Sabt&quot;],dayNamesMin:[&quot;Ah&quot;,&quot;Ith&quot;,&quot;Th&quot;,&quot;Ar&quot;,&quot;Kh&quot;,&quot;Ju&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!0}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 355===this.daysInYear(e.year())},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){for(var e=0,r=1;r&lt;=12;r++)e+=this.daysInMonth(t,r);return e},daysInMonth:function(t,e){for(var r=this._validate(t,e,this.minDay,n.local.invalidMonth).toJD()-24e5+.5,i=0,a=0;a&lt;o.length;a++){if(o[a]&gt;r)return o[i]-o[i-1];i++}return 30},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate),a=12*(i.year()-1)+i.month()-15292;return i.day()+o[a-1]-1+24e5-.5},fromJD:function(t){for(var e=t-24e5+.5,r=0,n=0;n&lt;o.length&amp;&amp;!(o[n]&gt;e);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),s=a+1,l=i-12*a,c=e-o[r-1]+1;return this.newDate(s,l,c)},isValid:function(t,e,r){var i=n.baseCalendar.prototype.isValid.apply(this,arguments);return i&amp;&amp;(i=(t=null!=t.year?t.year:t)&gt;=1276&amp;&amp;t&lt;=1500),i},_validate:function(t,e,r,i){var a=n.baseCalendar.prototype._validate.apply(this,arguments);if(a.year&lt;1276||a.year&gt;1500)throw i.replace(/\{0\}/,this.local.name);return a}}),n.calendars.ummalqura=a;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],621:[function(t,e,r){var n=t(&quot;object-assign&quot;);function i(){this.regionalOptions=[],this.regionalOptions[&quot;&quot;]={invalidCalendar:&quot;Calendar {0} not found&quot;,invalidDate:&quot;Invalid {0} date&quot;,invalidMonth:&quot;Invalid {0} month&quot;,invalidYear:&quot;Invalid {0} year&quot;,differentCalendars:&quot;Cannot mix {0} and {1} dates&quot;},this.local=this.regionalOptions[&quot;&quot;],this.calendars={},this._localCals={}}function a(t,e,r,n){if(this._calendar=t,this._year=e,this._month=r,this._day=n,0===this._calendar._validateLevel&amp;&amp;!this._calendar.isValid(this._year,this._month,this._day))throw(c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function o(t,e){return&quot;000000&quot;.substring(0,e-(t=&quot;&quot;+t).length)+t}function s(){this.shortYearCutoff=&quot;+10&quot;}function l(t){this.local=this.regionalOptions[t]||this.regionalOptions[&quot;&quot;]}n(i.prototype,{instance:function(t,e){t=(t||&quot;gregorian&quot;).toLowerCase(),e=e||&quot;&quot;;var r=this._localCals[t+&quot;-&quot;+e];if(!r&amp;&amp;this.calendars[t]&amp;&amp;(r=new this.calendars[t](e),this._localCals[t+&quot;-&quot;+e]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[&quot;&quot;].invalidCalendar).replace(/\{0\}/,t);return r},newDate:function(t,e,r,n,i){return(n=(null!=t&amp;&amp;t.year?t.calendar():&quot;string&quot;==typeof n?this.instance(n,i):n)||this.instance()).newDate(t,e,r)},substituteDigits:function(t){return function(e){return(e+&quot;&quot;).replace(/[0-9]/g,(function(e){return t[e]}))}},substituteChineseDigits:function(t,e){return function(r){for(var n=&quot;&quot;,i=0;r&gt;0;){var a=r%10;n=(0===a?&quot;&quot;:t[a]+e[i])+n,i++,r=Math.floor(r/10)}return 0===n.indexOf(t[1]+e[1])&amp;&amp;(n=n.substr(1)),n||t[0]}}}),n(a.prototype,{newDate:function(t,e,r){return this._calendar.newDate(null==t?this:t,e,r)},year:function(t){return 0===arguments.length?this._year:this.set(t,&quot;y&quot;)},month:function(t){return 0===arguments.length?this._month:this.set(t,&quot;m&quot;)},day:function(t){return 0===arguments.length?this._day:this.set(t,&quot;d&quot;)},date:function(t,e,r){if(!this._calendar.isValid(t,e,r))throw(c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=t,this._month=e,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(t,e){return this._calendar.add(this,t,e)},set:function(t,e){return this._calendar.set(this,t,e)},compareTo:function(t){if(this._calendar.name!==t._calendar.name)throw(c.local.differentCalendars||c.regionalOptions[&quot;&quot;].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,t._calendar.local.name);var e=this._year!==t._year?this._year-t._year:this._month!==t._month?this.monthOfYear()-t.monthOfYear():this._day-t._day;return 0===e?0:e&lt;0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(t){return this._calendar.fromJD(t)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(t){return this._calendar.fromJSDate(t)},toString:function(){return(this.year()&lt;0?&quot;-&quot;:&quot;&quot;)+o(Math.abs(this.year()),4)+&quot;-&quot;+o(this.month(),2)+&quot;-&quot;+o(this.day(),2)}}),n(s.prototype,{_validateLevel:0,newDate:function(t,e,r){return null==t?this.today():(t.year&amp;&amp;(this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),r=t.day(),e=t.month(),t=t.year()),new a(this,t,e,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear).year()&lt;0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return(e.year()&lt;0?&quot;-&quot;:&quot;&quot;)+o(Math.abs(e.year()),4)},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear),12},monthOfYear:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(t,e){var r=(e+this.firstMonth-2*this.minMonth)%this.monthsInYear(t)+this.minMonth;return this._validate(t,r,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth),r},daysInYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return this.leapYear(e)?366:365},dayOfYear:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(t,e,r){return this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),{}},add:function(t,e,r){return this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),this._correctAdd(t,this._add(t,e,r),e,r)},_add:function(t,e,r){if(this._validateLevel++,&quot;d&quot;===r||&quot;w&quot;===r){var n=t.toJD()+e*(&quot;w&quot;===r?this.daysInWeek():1),i=t.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=t.year()+(&quot;y&quot;===r?e:0),o=t.monthOfYear()+(&quot;m&quot;===r?e:0);i=t.day();&quot;y&quot;===r?(t.month()!==this.fromMonthOfYear(a,o)&amp;&amp;(o=this.newDate(a,t.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):&quot;m&quot;===r&amp;&amp;(!function(t){for(;o&lt;t.minMonth;)a--,o+=t.monthsInYear(a);for(var e=t.monthsInYear(a);o&gt;e-1+t.minMonth;)a++,o-=e,e=t.monthsInYear(a)}(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var s=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,s}catch(t){throw this._validateLevel--,t}},_correctAdd:function(t,e,r,n){if(!(this.hasYearZero||&quot;y&quot;!==n&amp;&amp;&quot;m&quot;!==n||0!==e[0]&amp;&amp;t.year()&gt;0==e[0]&gt;0)){var i={y:[1,1,&quot;y&quot;],m:[1,this.monthsInYear(-1),&quot;m&quot;],w:[this.daysInWeek(),this.daysInYear(-1),&quot;d&quot;],d:[1,this.daysInYear(-1),&quot;d&quot;]}[n],a=r&lt;0?-1:1;e=this._add(t,r*i[0]+a*i[1],i[2])}return t.date(e[0],e[1],e[2])},set:function(t,e,r){this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);var n=&quot;y&quot;===r?e:t.year(),i=&quot;m&quot;===r?e:t.month(),a=&quot;d&quot;===r?e:t.day();return&quot;y&quot;!==r&amp;&amp;&quot;m&quot;!==r||(a=Math.min(a,this.daysInMonth(n,i))),t.date(n,i,a)},isValid:function(t,e,r){this._validateLevel++;var n=this.hasYearZero||0!==t;if(n){var i=this.newDate(t,e,this.minDay);n=e&gt;=this.minMonth&amp;&amp;e-this.minMonth&lt;this.monthsInYear(i)&amp;&amp;r&gt;=this.minDay&amp;&amp;r-this.minDay&lt;this.daysInMonth(i)}return this._validateLevel--,n},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return c.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(t){return this.fromJD(c.instance().fromJSDate(t).toJD())},_validate:function(t,e,r,n){if(t.year){if(0===this._validateLevel&amp;&amp;this.name!==t.calendar().name)throw(c.local.differentCalendars||c.regionalOptions[&quot;&quot;].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,t.calendar().local.name);return t}try{if(this._validateLevel++,1===this._validateLevel&amp;&amp;!this.isValid(t,e,r))throw n.replace(/\{0\}/,this.local.name);var i=this.newDate(t,e,r);return this._validateLevel--,i}catch(t){throw this._validateLevel--,t}}}),l.prototype=new s,n(l.prototype,{name:&quot;Gregorian&quot;,jdEpoch:1721425.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Gregorian&quot;,epochs:[&quot;BCE&quot;,&quot;CE&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;mm/dd/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==0&amp;&amp;(t%100!=0||t%400==0)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);t=n.year(),e=n.month(),r=n.day(),t&lt;0&amp;&amp;t++,e&lt;3&amp;&amp;(e+=12,t--);var i=Math.floor(t/100),a=2-i+Math.floor(i/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r+a-1524.5},fromJD:function(t){var e=Math.floor(t+.5),r=Math.floor((e-1867216.25)/36524.25),n=(r=e+1+r-Math.floor(r/4))+1524,i=Math.floor((n-122.1)/365.25),a=Math.floor(365.25*i),o=Math.floor((n-a)/30.6001),s=n-a-Math.floor(30.6001*o),l=o-(o&gt;13.5?13:1),c=i-(l&gt;2.5?4716:4715);return c&lt;=0&amp;&amp;c--,this.newDate(c,l,s)},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()&gt;12?i.getHours()+2:0),i},fromJSDate:function(t){return this.newDate(t.getFullYear(),t.getMonth()+1,t.getDate())}});var c=e.exports=new i;c.cdate=a,c.baseCalendar=s,c.calendars.gregorian=l},{&quot;object-assign&quot;:499}],622:[function(t,e,r){var n=t(&quot;object-assign&quot;),i=t(&quot;./main&quot;);n(i.regionalOptions[&quot;&quot;],{invalidArguments:&quot;Invalid arguments&quot;,invalidFormat:&quot;Cannot format a date from another calendar&quot;,missingNumberAt:&quot;Missing number at position {0}&quot;,unknownNameAt:&quot;Unknown name at position {0}&quot;,unexpectedLiteralAt:&quot;Unexpected literal at position {0}&quot;,unexpectedText:&quot;Additional text found at end&quot;}),i.local=i.regionalOptions[&quot;&quot;],n(i.cdate.prototype,{formatDate:function(t,e){return&quot;string&quot;!=typeof t&amp;&amp;(e=t,t=&quot;&quot;),this._calendar.formatDate(t||&quot;&quot;,this,e)}}),n(i.baseCalendar.prototype,{UNIX_EPOCH:i.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:i.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:&quot;yyyy-mm-dd&quot;,COOKIE:&quot;D, dd M yyyy&quot;,FULL:&quot;DD, MM d, yyyy&quot;,ISO_8601:&quot;yyyy-mm-dd&quot;,JULIAN:&quot;J&quot;,RFC_822:&quot;D, d M yy&quot;,RFC_850:&quot;DD, dd-M-yy&quot;,RFC_1036:&quot;D, d M yy&quot;,RFC_1123:&quot;D, d M yyyy&quot;,RFC_2822:&quot;D, d M yyyy&quot;,RSS:&quot;D, d M yy&quot;,TICKS:&quot;!&quot;,TIMESTAMP:&quot;@&quot;,W3C:&quot;yyyy-mm-dd&quot;,formatDate:function(t,e,r){if(&quot;string&quot;!=typeof t&amp;&amp;(r=e,e=t,t=&quot;&quot;),!e)return&quot;&quot;;if(e.calendar()!==this)throw i.local.invalidFormat||i.regionalOptions[&quot;&quot;].invalidFormat;t=t||this.local.dateFormat;for(var n,a,o,s,l=(r=r||{}).dayNamesShort||this.local.dayNamesShort,c=r.dayNames||this.local.dayNames,u=r.monthNumbers||this.local.monthNumbers,f=r.monthNamesShort||this.local.monthNamesShort,h=r.monthNames||this.local.monthNames,p=(r.calculateWeek||this.local.calculateWeek,function(e,r){for(var n=1;w+n&lt;t.length&amp;&amp;t.charAt(w+n)===e;)n++;return w+=n-1,Math.floor(n/(r||1))&gt;1}),d=function(t,e,r,n){var i=&quot;&quot;+e;if(p(t,n))for(;i.length&lt;r;)i=&quot;0&quot;+i;return i},g=this,m=function(t){return&quot;function&quot;==typeof u?u.call(g,t,p(&quot;m&quot;)):x(d(&quot;m&quot;,t.month(),2))},v=function(t,e){return e?&quot;function&quot;==typeof h?h.call(g,t):h[t.month()-g.minMonth]:&quot;function&quot;==typeof f?f.call(g,t):f[t.month()-g.minMonth]},y=this.local.digits,x=function(t){return r.localNumbers&amp;&amp;y?y(t):t},b=&quot;&quot;,_=!1,w=0;w&lt;t.length;w++)if(_)&quot;'&quot;!==t.charAt(w)||p(&quot;'&quot;)?b+=t.charAt(w):_=!1;else switch(t.charAt(w)){case&quot;d&quot;:b+=x(d(&quot;d&quot;,e.day(),2));break;case&quot;D&quot;:b+=(n=&quot;D&quot;,a=e.dayOfWeek(),o=l,s=c,p(n)?s[a]:o[a]);break;case&quot;o&quot;:b+=d(&quot;o&quot;,e.dayOfYear(),3);break;case&quot;w&quot;:b+=d(&quot;w&quot;,e.weekOfYear(),2);break;case&quot;m&quot;:b+=m(e);break;case&quot;M&quot;:b+=v(e,p(&quot;M&quot;));break;case&quot;y&quot;:b+=p(&quot;y&quot;,2)?e.year():(e.year()%100&lt;10?&quot;0&quot;:&quot;&quot;)+e.year()%100;break;case&quot;Y&quot;:p(&quot;Y&quot;,2),b+=e.formatYear();break;case&quot;J&quot;:b+=e.toJD();break;case&quot;@&quot;:b+=(e.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case&quot;!&quot;:b+=(e.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case&quot;'&quot;:p(&quot;'&quot;)?b+=&quot;'&quot;:_=!0;break;default:b+=t.charAt(w)}return b},parseDate:function(t,e,r){if(null==e)throw i.local.invalidArguments||i.regionalOptions[&quot;&quot;].invalidArguments;if(&quot;&quot;===(e=&quot;object&quot;==typeof e?e.toString():e+&quot;&quot;))return null;t=t||this.local.dateFormat;var n=(r=r||{}).shortYearCutoff||this.shortYearCutoff;n=&quot;string&quot;!=typeof n?n:this.today().year()%100+parseInt(n,10);for(var a=r.dayNamesShort||this.local.dayNamesShort,o=r.dayNames||this.local.dayNames,s=r.parseMonth||this.local.parseMonth,l=r.monthNumbers||this.local.monthNumbers,c=r.monthNamesShort||this.local.monthNamesShort,u=r.monthNames||this.local.monthNames,f=-1,h=-1,p=-1,d=-1,g=-1,m=!1,v=!1,y=function(e,r){for(var n=1;A+n&lt;t.length&amp;&amp;t.charAt(A+n)===e;)n++;return A+=n-1,Math.floor(n/(r||1))&gt;1},x=function(t,r){var n=y(t,r),a=[2,3,n?4:2,n?4:2,10,11,20][&quot;oyYJ@!&quot;.indexOf(t)+1],o=new RegExp(&quot;^-?\\d{1,&quot;+a+&quot;}&quot;),s=e.substring(M).match(o);if(!s)throw(i.local.missingNumberAt||i.regionalOptions[&quot;&quot;].missingNumberAt).replace(/\{0\}/,M);return M+=s[0].length,parseInt(s[0],10)},b=this,_=function(){if(&quot;function&quot;==typeof l){y(&quot;m&quot;);var t=l.call(b,e.substring(M));return M+=t.length,t}return x(&quot;m&quot;)},w=function(t,r,n,a){for(var o=y(t,a)?n:r,s=0;s&lt;o.length;s++)if(e.substr(M,o[s].length).toLowerCase()===o[s].toLowerCase())return M+=o[s].length,s+b.minMonth;throw(i.local.unknownNameAt||i.regionalOptions[&quot;&quot;].unknownNameAt).replace(/\{0\}/,M)},T=function(){if(&quot;function&quot;==typeof u){var t=y(&quot;M&quot;)?u.call(b,e.substring(M)):c.call(b,e.substring(M));return M+=t.length,t}return w(&quot;M&quot;,c,u)},k=function(){if(e.charAt(M)!==t.charAt(A))throw(i.local.unexpectedLiteralAt||i.regionalOptions[&quot;&quot;].unexpectedLiteralAt).replace(/\{0\}/,M);M++},M=0,A=0;A&lt;t.length;A++)if(v)&quot;'&quot;!==t.charAt(A)||y(&quot;'&quot;)?k():v=!1;else switch(t.charAt(A)){case&quot;d&quot;:d=x(&quot;d&quot;);break;case&quot;D&quot;:w(&quot;D&quot;,a,o);break;case&quot;o&quot;:g=x(&quot;o&quot;);break;case&quot;w&quot;:x(&quot;w&quot;);break;case&quot;m&quot;:p=_();break;case&quot;M&quot;:p=T();break;case&quot;y&quot;:var S=A;m=!y(&quot;y&quot;,2),A=S,h=x(&quot;y&quot;,2);break;case&quot;Y&quot;:h=x(&quot;Y&quot;,2);break;case&quot;J&quot;:f=x(&quot;J&quot;)+.5,&quot;.&quot;===e.charAt(M)&amp;&amp;(M++,x(&quot;J&quot;));break;case&quot;@&quot;:f=x(&quot;@&quot;)/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case&quot;!&quot;:f=x(&quot;!&quot;)/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case&quot;*&quot;:M=e.length;break;case&quot;'&quot;:y(&quot;'&quot;)?k():v=!0;break;default:k()}if(M&lt;e.length)throw i.local.unexpectedText||i.regionalOptions[&quot;&quot;].unexpectedText;if(-1===h?h=this.today().year():h&lt;100&amp;&amp;m&amp;&amp;(h+=-1===n?1900:this.today().year()-this.today().year()%100-(h&lt;=n?0:100)),&quot;string&quot;==typeof p&amp;&amp;(p=s.call(this,h,p)),g&gt;-1){p=1,d=g;for(var E=this.daysInMonth(h,p);d&gt;E;E=this.daysInMonth(h,p))p++,d-=E}return f&gt;-1?this.fromJD(f):this.newDate(h,p,d)},determineDate:function(t,e,r,n,i){r&amp;&amp;&quot;object&quot;!=typeof r&amp;&amp;(i=n,n=r,r=null),&quot;string&quot;!=typeof n&amp;&amp;(i=n,n=&quot;&quot;);var a=this;return e=e?e.newDate():null,t=null==t?e:&quot;string&quot;==typeof t?function(t){try{return a.parseDate(n,t,i)}catch(t){}for(var e=((t=t.toLowerCase()).match(/^c/)&amp;&amp;r?r.newDate():null)||a.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,s=o.exec(t);s;)e.add(parseInt(s[1],10),s[2]||&quot;d&quot;),s=o.exec(t);return e}(t):&quot;number&quot;==typeof t?isNaN(t)||t===1/0||t===-1/0?e:a.today().add(t,&quot;d&quot;):a.newDate(t)}})},{&quot;./main&quot;:621,&quot;object-assign&quot;:499}],623:[function(t,e,r){e.exports=t(&quot;cwise-compiler&quot;)({args:[&quot;array&quot;,{offset:[1],array:0},&quot;scalar&quot;,&quot;scalar&quot;,&quot;index&quot;],pre:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},post:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},body:{body:&quot;{\n        var _inline_1_da = _inline_1_arg0_ - _inline_1_arg3_\n        var _inline_1_db = _inline_1_arg1_ - _inline_1_arg3_\n        if((_inline_1_da &gt;= 0) !== (_inline_1_db &gt;= 0)) {\n          _inline_1_arg2_.push(_inline_1_arg4_[0] + 0.5 + 0.5 * (_inline_1_da + _inline_1_db) / (_inline_1_da - _inline_1_db))\n        }\n      }&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg2_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg3_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg4_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[],localVars:[&quot;_inline_1_da&quot;,&quot;_inline_1_db&quot;]},funcName:&quot;zeroCrossings&quot;})},{&quot;cwise-compiler&quot;:151}],624:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=[];return e=+e||0,n(t.hi(t.shape[0]-1),r,e),r};var n=t(&quot;./lib/zc-core&quot;)},{&quot;./lib/zc-core&quot;:623}],625:[function(t,e,r){&quot;use strict&quot;;e.exports=[{path:&quot;&quot;,backoff:0},{path:&quot;M-2.4,-3V3L0.6,0Z&quot;,backoff:.6},{path:&quot;M-3.7,-2.5V2.5L1.3,0Z&quot;,backoff:1.3},{path:&quot;M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z&quot;,backoff:1.55},{path:&quot;M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z&quot;,backoff:1.6},{path:&quot;M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z&quot;,backoff:2},{path:&quot;M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z&quot;,backoff:0,noRotate:!0},{path:&quot;M2,2V-2H-2V2Z&quot;,backoff:0,noRotate:!0}]},{}],626:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./arrow_paths&quot;),i=t(&quot;../../plots/font_attributes&quot;),a=t(&quot;../../plots/cartesian/constants&quot;),o=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=o(&quot;annotation&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},text:{valType:&quot;string&quot;,editType:&quot;calc+arraydraw&quot;},textangle:{valType:&quot;angle&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},font:i({editType:&quot;calc+arraydraw&quot;,colorEditType:&quot;arraydraw&quot;}),width:{valType:&quot;number&quot;,min:1,dflt:null,editType:&quot;calc+arraydraw&quot;},height:{valType:&quot;number&quot;,min:1,dflt:null,editType:&quot;calc+arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;center&quot;,editType:&quot;arraydraw&quot;},valign:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;,editType:&quot;arraydraw&quot;},bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},bordercolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},borderpad:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc+arraydraw&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc+arraydraw&quot;},showarrow:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},arrowcolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},arrowhead:{valType:&quot;integer&quot;,min:0,max:n.length,dflt:1,editType:&quot;arraydraw&quot;},startarrowhead:{valType:&quot;integer&quot;,min:0,max:n.length,dflt:1,editType:&quot;arraydraw&quot;},arrowside:{valType:&quot;flaglist&quot;,flags:[&quot;end&quot;,&quot;start&quot;],extras:[&quot;none&quot;],dflt:&quot;end&quot;,editType:&quot;arraydraw&quot;},arrowsize:{valType:&quot;number&quot;,min:.3,dflt:1,editType:&quot;calc+arraydraw&quot;},startarrowsize:{valType:&quot;number&quot;,min:.3,dflt:1,editType:&quot;calc+arraydraw&quot;},arrowwidth:{valType:&quot;number&quot;,min:.1,editType:&quot;calc+arraydraw&quot;},standoff:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc+arraydraw&quot;},startstandoff:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc+arraydraw&quot;},ax:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},ay:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},axref:{valType:&quot;enumerated&quot;,dflt:&quot;pixel&quot;,values:[&quot;pixel&quot;,a.idRegex.x.toString()],editType:&quot;calc&quot;},ayref:{valType:&quot;enumerated&quot;,dflt:&quot;pixel&quot;,values:[&quot;pixel&quot;,a.idRegex.y.toString()],editType:&quot;calc&quot;},xref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,a.idRegex.x.toString()],editType:&quot;calc&quot;},x:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;auto&quot;,editType:&quot;calc+arraydraw&quot;},xshift:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},yref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,a.idRegex.y.toString()],editType:&quot;calc&quot;},y:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;auto&quot;,editType:&quot;calc+arraydraw&quot;},yshift:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},clicktoshow:{valType:&quot;enumerated&quot;,values:[!1,&quot;onoff&quot;,&quot;onout&quot;],dflt:!1,editType:&quot;arraydraw&quot;},xclick:{valType:&quot;any&quot;,editType:&quot;arraydraw&quot;},yclick:{valType:&quot;any&quot;,editType:&quot;arraydraw&quot;},hovertext:{valType:&quot;string&quot;,editType:&quot;arraydraw&quot;},hoverlabel:{bgcolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},bordercolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},font:i({editType:&quot;arraydraw&quot;}),editType:&quot;arraydraw&quot;},captureevents:{valType:&quot;boolean&quot;,editType:&quot;arraydraw&quot;},editType:&quot;calc&quot;,_deprecated:{ref:{valType:&quot;string&quot;,editType:&quot;calc&quot;}}})},{&quot;../../constants/axis_placeable_objects&quot;:746,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834,&quot;../../plots/font_attributes&quot;:856,&quot;./arrow_paths&quot;:625}],627:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;./draw&quot;).draw;function o(t){var e=t._fullLayout;n.filterVisible(e.annotations).forEach((function(e){var r=i.getFromId(t,e.xref),n=i.getFromId(t,e.yref),a=i.getRefType(e.xref),o=i.getRefType(e.yref);e._extremes={},&quot;range&quot;===a&amp;&amp;s(e,r),&quot;range&quot;===o&amp;&amp;s(e,n)}))}function s(t,e){var r,n=e._id,a=n.charAt(0),o=t[a],s=t[&quot;a&quot;+a],l=t[a+&quot;ref&quot;],c=t[&quot;a&quot;+a+&quot;ref&quot;],u=t[&quot;_&quot;+a+&quot;padplus&quot;],f=t[&quot;_&quot;+a+&quot;padminus&quot;],h={x:1,y:-1}[a]*t[a+&quot;shift&quot;],p=3*t.arrowsize*t.arrowwidth||0,d=p+h,g=p-h,m=3*t.startarrowsize*t.arrowwidth||0,v=m+h,y=m-h;if(c===l){var x=i.findExtremes(e,[e.r2c(o)],{ppadplus:d,ppadminus:g}),b=i.findExtremes(e,[e.r2c(s)],{ppadplus:Math.max(u,v),ppadminus:Math.max(f,y)});r={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else v=s?v+s:v,y=s?y-s:y,r=i.findExtremes(e,[e.r2c(o)],{ppadplus:Math.max(u,d,v),ppadminus:Math.max(f,g,y)});t._extremes[n]=r}e.exports=function(t){var e=t._fullLayout;if(n.filterVisible(e.annotations).length&amp;&amp;t._fullData.length)return n.syncOrAsync([a,o],t)}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./draw&quot;:632}],628:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plot_api/plot_template&quot;).arrayEditor;function o(t,e){var r,n,i,a,o,l,c,u=t._fullLayout.annotations,f=[],h=[],p=[],d=(e||[]).length;for(r=0;r&lt;u.length;r++)if(a=(i=u[r]).clicktoshow){for(n=0;n&lt;d;n++)if(l=(o=e[n]).xaxis,c=o.yaxis,l._id===i.xref&amp;&amp;c._id===i.yref&amp;&amp;l.d2r(o.x)===s(i._xclick,l)&amp;&amp;c.d2r(o.y)===s(i._yclick,c)){(i.visible?&quot;onout&quot;===a?h:p:f).push(r);break}n===d&amp;&amp;i.visible&amp;&amp;&quot;onout&quot;===a&amp;&amp;h.push(r)}return{on:f,off:h,explicitOff:p}}function s(t,e){return&quot;log&quot;===e.type?e.l2r(t):e.d2r(t)}e.exports={hasClickToShow:function(t,e){var r=o(t,e);return r.on.length&gt;0||r.explicitOff.length&gt;0},onClick:function(t,e){var r,s,l=o(t,e),c=l.on,u=l.off.concat(l.explicitOff),f={},h=t._fullLayout.annotations;if(!c.length&amp;&amp;!u.length)return;for(r=0;r&lt;c.length;r++)(s=a(t.layout,&quot;annotations&quot;,h[c[r]])).modifyItem(&quot;visible&quot;,!0),n.extendFlat(f,s.getUpdateObj());for(r=0;r&lt;u.length;r++)(s=a(t.layout,&quot;annotations&quot;,h[u[r]])).modifyItem(&quot;visible&quot;,!1),n.extendFlat(f,s.getUpdateObj());return i.call(&quot;update&quot;,t,{},f)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../registry&quot;:911}],629:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;);e.exports=function(t,e,r,a){a(&quot;opacity&quot;);var o=a(&quot;bgcolor&quot;),s=a(&quot;bordercolor&quot;),l=i.opacity(s);a(&quot;borderpad&quot;);var c=a(&quot;borderwidth&quot;),u=a(&quot;showarrow&quot;);if(a(&quot;text&quot;,u?&quot; &quot;:r._dfltTitle.annotation),a(&quot;textangle&quot;),n.coerceFont(a,&quot;font&quot;,r.font),a(&quot;width&quot;),a(&quot;align&quot;),a(&quot;height&quot;)&amp;&amp;a(&quot;valign&quot;),u){var f,h,p=a(&quot;arrowside&quot;);-1!==p.indexOf(&quot;end&quot;)&amp;&amp;(f=a(&quot;arrowhead&quot;),h=a(&quot;arrowsize&quot;)),-1!==p.indexOf(&quot;start&quot;)&amp;&amp;(a(&quot;startarrowhead&quot;,f),a(&quot;startarrowsize&quot;,h)),a(&quot;arrowcolor&quot;,l?e.bordercolor:i.defaultLine),a(&quot;arrowwidth&quot;,2*(l&amp;&amp;c||1)),a(&quot;standoff&quot;),a(&quot;startstandoff&quot;)}var d=a(&quot;hovertext&quot;),g=r.hoverlabel||{};if(d){var m=a(&quot;hoverlabel.bgcolor&quot;,g.bgcolor||(i.opacity(o)?i.rgb(o):i.defaultLine)),v=a(&quot;hoverlabel.bordercolor&quot;,g.bordercolor||i.contrast(m));n.coerceFont(a,&quot;hoverlabel.font&quot;,{family:g.font.family,size:g.font.size,color:g.font.color||v})}a(&quot;captureevents&quot;,!!d)}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643}],630:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib/to_log_range&quot;);e.exports=function(t,e,r,a){e=e||{};var o=&quot;log&quot;===r&amp;&amp;&quot;linear&quot;===e.type,s=&quot;linear&quot;===r&amp;&amp;&quot;log&quot;===e.type;if(o||s)for(var l,c,u=t._fullLayout.annotations,f=e._id.charAt(0),h=0;h&lt;u.length;h++)l=u[h],c=&quot;annotations[&quot;+h+&quot;].&quot;,l[f+&quot;ref&quot;]===e._id&amp;&amp;p(f),l[&quot;a&quot;+f+&quot;ref&quot;]===e._id&amp;&amp;p(&quot;a&quot;+f);function p(t){var r=l[t],s=null;s=o?i(r,e.range):Math.pow(10,r),n(s)||(s=null),a(c+t,s)}}},{&quot;../../lib/to_log_range&quot;:805,&quot;fast-isnumeric&quot;:241}],631:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./common_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r){function a(r,i){return n.coerce(t,e,s,r,i)}var l=a(&quot;visible&quot;),c=a(&quot;clicktoshow&quot;);if(l||c){o(t,e,r,a);for(var u=e.showarrow,f=[&quot;x&quot;,&quot;y&quot;],h=[-10,-30],p={_fullLayout:r},d=0;d&lt;2;d++){var g=f[d],m=i.coerceRef(t,e,p,g,&quot;&quot;,&quot;paper&quot;);if(&quot;paper&quot;!==m)i.getFromId(p,m)._annIndices.push(e._index);if(i.coercePosition(e,p,a,m,g,.5),u){var v=&quot;a&quot;+g,y=i.coerceRef(t,e,p,v,&quot;pixel&quot;,[&quot;pixel&quot;,&quot;paper&quot;]);&quot;pixel&quot;!==y&amp;&amp;y!==m&amp;&amp;(y=e[v]=&quot;pixel&quot;);var x=&quot;pixel&quot;===y?h[d]:.4;i.coercePosition(e,p,a,y,v,x)}a(g+&quot;anchor&quot;),a(g+&quot;shift&quot;)}if(n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),u&amp;&amp;n.noneOrAll(t,e,[&quot;ax&quot;,&quot;ay&quot;]),c){var b=a(&quot;xclick&quot;),_=a(&quot;yclick&quot;);e._xclick=void 0===b?e.x:i.cleanPosition(b,p,e.xref),e._yclick=void 0===_?e.y:i.cleanPosition(_,p,e.yref)}}}e.exports=function(t,e){a(t,e,{name:&quot;annotations&quot;,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:626,&quot;./common_defaults&quot;:629}],632:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;../color&quot;),u=t(&quot;../drawing&quot;),f=t(&quot;../fx&quot;),h=t(&quot;../../lib/svg_text_utils&quot;),p=t(&quot;../../lib/setcursor&quot;),d=t(&quot;../dragelement&quot;),g=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,m=t(&quot;./draw_arrow_head&quot;);function v(t,e){var r=t._fullLayout.annotations[e]||{},n=l.getFromId(t,r.xref),i=l.getFromId(t,r.yref);n&amp;&amp;n.setScale(),i&amp;&amp;i.setScale(),x(t,r,e,!1,n,i)}function y(t,e,r,n,i){var a=i[r],o=i[r+&quot;ref&quot;],s=-1!==r.indexOf(&quot;y&quot;),c=&quot;domain&quot;===l.getRefType(o),u=s?n.h:n.w;return t?c?a+(s?-e:e)/t._length:t.p2r(t.r2p(a)+e):a+(s?-e:e)/u}function x(t,e,r,a,v,x){var b,_,w=t._fullLayout,T=t._fullLayout._size,k=t._context.edits;a?(b=&quot;annotation-&quot;+a,_=a+&quot;.annotations&quot;):(b=&quot;annotation&quot;,_=&quot;annotations&quot;);var M=g(t.layout,_,e),A=M.modifyBase,S=M.modifyItem,E=M.getUpdateObj;w._infolayer.selectAll(&quot;.&quot;+b+'[data-index=&quot;'+r+'&quot;]').remove();var C=&quot;clip&quot;+w._uid+&quot;_ann&quot;+r;if(e._input&amp;&amp;!1!==e.visible){var L={x:{},y:{}},I=+e.textangle||0,P=w._infolayer.append(&quot;g&quot;).classed(b,!0).attr(&quot;data-index&quot;,String(r)).style(&quot;opacity&quot;,e.opacity),z=P.append(&quot;g&quot;).classed(&quot;annotation-text-g&quot;,!0),O=k[e.showarrow?&quot;annotationTail&quot;:&quot;annotationPosition&quot;],D=e.captureevents||k.annotationText||O,R=z.append(&quot;g&quot;).style(&quot;pointer-events&quot;,D?&quot;all&quot;:null).call(p,&quot;pointer&quot;).on(&quot;click&quot;,(function(){t._dragging=!1,t.emit(&quot;plotly_clickannotation&quot;,Y(n.event))}));e.hovertext&amp;&amp;R.on(&quot;mouseover&quot;,(function(){var r=e.hoverlabel,n=r.font,i=this.getBoundingClientRect(),a=t.getBoundingClientRect();f.loneHover({x0:i.left-a.left,x1:i.right-a.left,y:(i.top+i.bottom)/2-a.top,text:e.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:w._hoverlayer.node(),outerContainer:w._paper.node(),gd:t})})).on(&quot;mouseout&quot;,(function(){f.loneUnhover(w._hoverlayer.node())}));var F=e.borderwidth,B=e.borderpad,N=F+B,j=R.append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bg&quot;).style(&quot;stroke-width&quot;,F+&quot;px&quot;).call(c.stroke,e.bordercolor).call(c.fill,e.bgcolor),U=e.width||e.height,V=w._topclips.selectAll(&quot;#&quot;+C).data(U?[0]:[]);V.enter().append(&quot;clipPath&quot;).classed(&quot;annclip&quot;,!0).attr(&quot;id&quot;,C).append(&quot;rect&quot;),V.exit().remove();var q=e.font,H=w._meta?o.templateString(e.text,w._meta):e.text,G=R.append(&quot;text&quot;).classed(&quot;annotation-text&quot;,!0).text(H);k.annotationText?G.call(h.makeEditable,{delegate:R,gd:t}).call(W).on(&quot;edit&quot;,(function(r){e.text=r,this.call(W),S(&quot;text&quot;,r),v&amp;&amp;v.autorange&amp;&amp;A(v._name+&quot;.autorange&quot;,!0),x&amp;&amp;x.autorange&amp;&amp;A(x._name+&quot;.autorange&quot;,!0),i.call(&quot;_guiRelayout&quot;,t,E())})):G.call(W)}else n.selectAll(&quot;#&quot;+C).remove();function Y(t){var n={index:r,annotation:e._input,fullAnnotation:e,event:t};return a&amp;&amp;(n.subplotId=a),n}function W(r){return r.call(u.font,q).attr({&quot;text-anchor&quot;:{left:&quot;start&quot;,right:&quot;end&quot;}[e.align]||&quot;middle&quot;}),h.convertToTspans(r,t,X),r}function X(){var r=G.selectAll(&quot;a&quot;);1===r.size()&amp;&amp;r.text()===G.text()&amp;&amp;R.insert(&quot;a&quot;,&quot;:first-child&quot;).attr({&quot;xlink:xlink:href&quot;:r.attr(&quot;xlink:href&quot;),&quot;xlink:xlink:show&quot;:r.attr(&quot;xlink:show&quot;)}).style({cursor:&quot;pointer&quot;}).node().appendChild(j.node());var n=R.select(&quot;.annotation-text-math-group&quot;),f=!n.empty(),g=u.bBox((f?n:G).node()),b=g.width,_=g.height,M=e.width||b,D=e.height||_,B=Math.round(M+2*N),q=Math.round(D+2*N);function H(t,e){return&quot;auto&quot;===e&amp;&amp;(e=t&lt;1/3?&quot;left&quot;:t&gt;2/3?&quot;right&quot;:&quot;center&quot;),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[e]}for(var W=!1,X=[&quot;x&quot;,&quot;y&quot;],Z=0;Z&lt;X.length;Z++){var J,K,Q,$,tt,et=X[Z],rt=e[et+&quot;ref&quot;]||et,nt=e[&quot;a&quot;+et+&quot;ref&quot;],it={x:v,y:x}[et],at=(I+(&quot;x&quot;===et?0:-90))*Math.PI/180,ot=B*Math.cos(at),st=q*Math.sin(at),lt=Math.abs(ot)+Math.abs(st),ct=e[et+&quot;anchor&quot;],ut=e[et+&quot;shift&quot;]*(&quot;x&quot;===et?1:-1),ft=L[et],ht=l.getRefType(rt);if(it&amp;&amp;&quot;domain&quot;!==ht){var pt=it.r2fraction(e[et]);(pt&lt;0||pt&gt;1)&amp;&amp;(nt===rt?((pt=it.r2fraction(e[&quot;a&quot;+et]))&lt;0||pt&gt;1)&amp;&amp;(W=!0):W=!0),J=it._offset+it.r2p(e[et]),$=.5}else{var dt=&quot;domain&quot;===ht;&quot;x&quot;===et?(Q=e[et],J=dt?it._offset+it._length*Q:J=T.l+T.w*Q):(Q=1-e[et],J=dt?it._offset+it._length*Q:J=T.t+T.h*Q),$=e.showarrow?.5:Q}if(e.showarrow){ft.head=J;var gt=e[&quot;a&quot;+et];if(tt=ot*H(.5,e.xanchor)-st*H(.5,e.yanchor),nt===rt){var mt=l.getRefType(nt);&quot;domain&quot;===mt?(&quot;y&quot;===et&amp;&amp;(gt=1-gt),ft.tail=it._offset+it._length*gt):&quot;paper&quot;===mt?&quot;y&quot;===et?(gt=1-gt,ft.tail=T.t+T.h*gt):ft.tail=T.l+T.w*gt:ft.tail=it._offset+it.r2p(gt),K=tt}else ft.tail=J+gt,K=tt+gt;ft.text=ft.tail+tt;var vt=w[&quot;x&quot;===et?&quot;width&quot;:&quot;height&quot;];if(&quot;paper&quot;===rt&amp;&amp;(ft.head=o.constrain(ft.head,1,vt-1)),&quot;pixel&quot;===nt){var yt=-Math.max(ft.tail-3,ft.text),xt=Math.min(ft.tail+3,ft.text)-vt;yt&gt;0?(ft.tail+=yt,ft.text+=yt):xt&gt;0&amp;&amp;(ft.tail-=xt,ft.text-=xt)}ft.tail+=ut,ft.head+=ut}else K=tt=lt*H($,ct),ft.text=J+tt;ft.text+=ut,tt+=ut,K+=ut,e[&quot;_&quot;+et+&quot;padplus&quot;]=lt/2+K,e[&quot;_&quot;+et+&quot;padminus&quot;]=lt/2-K,e[&quot;_&quot;+et+&quot;size&quot;]=lt,e[&quot;_&quot;+et+&quot;shift&quot;]=tt}if(W)R.remove();else{var bt=0,_t=0;if(&quot;left&quot;!==e.align&amp;&amp;(bt=(M-b)*(&quot;center&quot;===e.align?.5:1)),&quot;top&quot;!==e.valign&amp;&amp;(_t=(D-_)*(&quot;middle&quot;===e.valign?.5:1)),f)n.select(&quot;svg&quot;).attr({x:N+bt-1,y:N+_t}).call(u.setClipUrl,U?C:null,t);else{var wt=N+_t-g.top,Tt=N+bt-g.left;G.call(h.positionText,Tt,wt).call(u.setClipUrl,U?C:null,t)}V.select(&quot;rect&quot;).call(u.setRect,N,N,M,D),j.call(u.setRect,F/2,F/2,B-F,q-F),R.call(u.setTranslate,Math.round(L.x.text-B/2),Math.round(L.y.text-q/2)),z.attr({transform:&quot;rotate(&quot;+I+&quot;,&quot;+L.x.text+&quot;,&quot;+L.y.text+&quot;)&quot;});var kt,Mt=function(r,n){P.selectAll(&quot;.annotation-arrow-g&quot;).remove();var l=L.x.head,f=L.y.head,h=L.x.tail+r,p=L.y.tail+n,g=L.x.text+r,b=L.y.text+n,_=o.rotationXYMatrix(I,g,b),w=o.apply2DTransform(_),M=o.apply2DTransform2(_),C=+j.attr(&quot;width&quot;),O=+j.attr(&quot;height&quot;),D=g-.5*C,F=D+C,B=b-.5*O,N=B+O,U=[[D,B,D,N],[D,N,F,N],[F,N,F,B],[F,B,D,B]].map(M);if(!U.reduce((function(t,e){return t^!!o.segmentsIntersect(l,f,l+1e6,f+1e6,e[0],e[1],e[2],e[3])}),!1)){U.forEach((function(t){var e=o.segmentsIntersect(h,p,l,f,t[0],t[1],t[2],t[3]);e&amp;&amp;(h=e.x,p=e.y)}));var V=e.arrowwidth,q=e.arrowcolor,H=e.arrowside,G=P.append(&quot;g&quot;).style({opacity:c.opacity(q)}).classed(&quot;annotation-arrow-g&quot;,!0),Y=G.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M&quot;+h+&quot;,&quot;+p+&quot;L&quot;+l+&quot;,&quot;+f).style(&quot;stroke-width&quot;,V+&quot;px&quot;).call(c.stroke,c.rgb(q));if(m(Y,H,e),k.annotationPosition&amp;&amp;Y.node().parentNode&amp;&amp;!a){var W=l,X=f;if(e.standoff){var Z=Math.sqrt(Math.pow(l-h,2)+Math.pow(f-p,2));W+=e.standoff*(h-l)/Z,X+=e.standoff*(p-f)/Z}var J,K,Q=G.append(&quot;path&quot;).classed(&quot;annotation-arrow&quot;,!0).classed(&quot;anndrag&quot;,!0).classed(&quot;cursor-move&quot;,!0).attr({d:&quot;M3,3H-3V-3H3ZM0,0L&quot;+(h-W)+&quot;,&quot;+(p-X),transform:s(W,X)}).style(&quot;stroke-width&quot;,V+6+&quot;px&quot;).call(c.stroke,&quot;rgba(0,0,0,0)&quot;).call(c.fill,&quot;rgba(0,0,0,0)&quot;);d.init({element:Q.node(),gd:t,prepFn:function(){var t=u.getTranslate(R);J=t.x,K=t.y,v&amp;&amp;v.autorange&amp;&amp;A(v._name+&quot;.autorange&quot;,!0),x&amp;&amp;x.autorange&amp;&amp;A(x._name+&quot;.autorange&quot;,!0)},moveFn:function(t,r){var n=w(J,K),i=n[0]+t,a=n[1]+r;R.call(u.setTranslate,i,a),S(&quot;x&quot;,y(v,t,&quot;x&quot;,T,e)),S(&quot;y&quot;,y(x,r,&quot;y&quot;,T,e)),e.axref===e.xref&amp;&amp;S(&quot;ax&quot;,y(v,t,&quot;ax&quot;,T,e)),e.ayref===e.yref&amp;&amp;S(&quot;ay&quot;,y(x,r,&quot;ay&quot;,T,e)),G.attr(&quot;transform&quot;,s(t,r)),z.attr({transform:&quot;rotate(&quot;+I+&quot;,&quot;+i+&quot;,&quot;+a+&quot;)&quot;})},doneFn:function(){i.call(&quot;_guiRelayout&quot;,t,E());var e=document.querySelector(&quot;.js-notes-box-panel&quot;);e&amp;&amp;e.redraw(e.selectedObj)}})}}};if(e.showarrow&amp;&amp;Mt(0,0),O)d.init({element:R.node(),gd:t,prepFn:function(){kt=z.attr(&quot;transform&quot;)},moveFn:function(t,r){var n=&quot;pointer&quot;;if(e.showarrow)e.axref===e.xref?S(&quot;ax&quot;,y(v,t,&quot;ax&quot;,T,e)):S(&quot;ax&quot;,e.ax+t),e.ayref===e.yref?S(&quot;ay&quot;,y(x,r,&quot;ay&quot;,T.w,e)):S(&quot;ay&quot;,e.ay+r),Mt(t,r);else{if(a)return;var i,o;if(v)i=y(v,t,&quot;x&quot;,T,e);else{var l=e._xsize/T.w,c=e.x+(e._xshift-e.xshift)/T.w-l/2;i=d.align(c+t/T.w,l,0,1,e.xanchor)}if(x)o=y(x,r,&quot;y&quot;,T,e);else{var u=e._ysize/T.h,f=e.y-(e._yshift+e.yshift)/T.h-u/2;o=d.align(f-r/T.h,u,0,1,e.yanchor)}S(&quot;x&quot;,i),S(&quot;y&quot;,o),v&amp;&amp;x||(n=d.getCursor(v?.5:i,x?.5:o,e.xanchor,e.yanchor))}z.attr({transform:s(t,r)+kt}),p(R,n)},clickFn:function(r,n){e.captureevents&amp;&amp;t.emit(&quot;plotly_clickannotation&quot;,Y(n))},doneFn:function(){p(R),i.call(&quot;_guiRelayout&quot;,t,E());var e=document.querySelector(&quot;.js-notes-box-panel&quot;);e&amp;&amp;e.redraw(e.selectedObj)}})}}}e.exports={draw:function(t){var e=t._fullLayout;e._infolayer.selectAll(&quot;.annotation&quot;).remove();for(var r=0;r&lt;e.annotations.length;r++)e.annotations[r].visible&amp;&amp;v(t,r);return a.previousPromises(t)},drawOne:v,drawRaw:x}},{&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../fx&quot;:683,&quot;./draw_arrow_head&quot;:633,d3:169}],633:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../color&quot;),a=t(&quot;./arrow_paths&quot;),o=t(&quot;../../lib&quot;),s=o.strScale,l=o.strRotate,c=o.strTranslate;e.exports=function(t,e,r){var o,u,f,h,p=t.node(),d=a[r.arrowhead||0],g=a[r.startarrowhead||0],m=(r.arrowwidth||1)*(r.arrowsize||1),v=(r.arrowwidth||1)*(r.startarrowsize||1),y=e.indexOf(&quot;start&quot;)&gt;=0,x=e.indexOf(&quot;end&quot;)&gt;=0,b=d.backoff*m+r.standoff,_=g.backoff*v+r.startstandoff;if(&quot;line&quot;===p.nodeName){o={x:+t.attr(&quot;x1&quot;),y:+t.attr(&quot;y1&quot;)},u={x:+t.attr(&quot;x2&quot;),y:+t.attr(&quot;y2&quot;)};var w=o.x-u.x,T=o.y-u.y;if(h=(f=Math.atan2(T,w))+Math.PI,b&amp;&amp;_&amp;&amp;b+_&gt;Math.sqrt(w*w+T*T))return void O();if(b){if(b*b&gt;w*w+T*T)return void O();var k=b*Math.cos(f),M=b*Math.sin(f);u.x+=k,u.y+=M,t.attr({x2:u.x,y2:u.y})}if(_){if(_*_&gt;w*w+T*T)return void O();var A=_*Math.cos(f),S=_*Math.sin(f);o.x-=A,o.y-=S,t.attr({x1:o.x,y1:o.y})}}else if(&quot;path&quot;===p.nodeName){var E=p.getTotalLength(),C=&quot;&quot;;if(E&lt;b+_)return void O();var L=p.getPointAtLength(0),I=p.getPointAtLength(.1);f=Math.atan2(L.y-I.y,L.x-I.x),o=p.getPointAtLength(Math.min(_,E)),C=&quot;0px,&quot;+_+&quot;px,&quot;;var P=p.getPointAtLength(E),z=p.getPointAtLength(E-.1);h=Math.atan2(P.y-z.y,P.x-z.x),u=p.getPointAtLength(Math.max(0,E-b)),C+=E-(C?_+b:b)+&quot;px,&quot;+E+&quot;px&quot;,t.style(&quot;stroke-dasharray&quot;,C)}function O(){t.style(&quot;stroke-dasharray&quot;,&quot;0px,100px&quot;)}function D(e,a,o,u){e.path&amp;&amp;(e.noRotate&amp;&amp;(o=0),n.select(p.parentNode).append(&quot;path&quot;).attr({class:t.attr(&quot;class&quot;),d:e.path,transform:c(a.x,a.y)+l(180*o/Math.PI)+s(u)}).style({fill:i.rgb(r.arrowcolor),&quot;stroke-width&quot;:0}))}y&amp;&amp;D(g,o,f,v),x&amp;&amp;D(d,u,h,m)}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;./arrow_paths&quot;:625,d3:169}],634:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;),i=t(&quot;./click&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;annotations&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;annotations&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:i.hasClickToShow,onClick:i.onClick,convertCoords:t(&quot;./convert_coords&quot;)}},{&quot;../../plots/cartesian/include_components&quot;:840,&quot;./attributes&quot;:626,&quot;./calc_autorange&quot;:627,&quot;./click&quot;:628,&quot;./convert_coords&quot;:630,&quot;./defaults&quot;:631,&quot;./draw&quot;:632}],635:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/attributes&quot;),i=t(&quot;../../plot_api/edit_types&quot;).overrideAll,a=t(&quot;../../plot_api/plot_template&quot;).templatedArray;e.exports=i(a(&quot;annotation&quot;,{visible:n.visible,x:{valType:&quot;any&quot;},y:{valType:&quot;any&quot;},z:{valType:&quot;any&quot;},ax:{valType:&quot;number&quot;},ay:{valType:&quot;number&quot;},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,startarrowhead:n.startarrowhead,arrowside:n.arrowside,arrowsize:n.arrowsize,startarrowsize:n.startarrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,startstandoff:n.startstandoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents}),&quot;calc&quot;,&quot;from-root&quot;)},{&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../annotations/attributes&quot;:626}],636:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;);function a(t,e){var r=e.fullSceneLayout.domain,a=e.fullLayout._size,o={pdata:null,type:&quot;linear&quot;,autorange:!1,range:[-1/0,1/0]};t._xa={},n.extendFlat(t._xa,o),i.setConvert(t._xa),t._xa._offset=a.l+r.x[0]*a.w,t._xa.l2p=function(){return.5*(1+t._pdata[0]/t._pdata[3])*a.w*(r.x[1]-r.x[0])},t._ya={},n.extendFlat(t._ya,o),i.setConvert(t._ya),t._ya._offset=a.t+(1-r.y[1])*a.h,t._ya.l2p=function(){return.5*(1-t._pdata[1]/t._pdata[3])*a.h*(r.y[1]-r.y[0])}}e.exports=function(t){for(var e=t.fullSceneLayout.annotations,r=0;r&lt;e.length;r++)a(e[r],t);t.fullLayout._infolayer.selectAll(&quot;.annotation-&quot;+t.id).remove()}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],637:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;../annotations/common_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r,a){function l(r,i){return n.coerce(t,e,s,r,i)}function c(t){var n=t+&quot;axis&quot;,a={_fullLayout:{}};return a._fullLayout[n]=r[n],i.coercePosition(e,a,l,t,t,.5)}l(&quot;visible&quot;)&amp;&amp;(o(t,e,a.fullLayout,l),c(&quot;x&quot;),c(&quot;y&quot;),c(&quot;z&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;]),e.xref=&quot;x&quot;,e.yref=&quot;y&quot;,e.zref=&quot;z&quot;,l(&quot;xanchor&quot;),l(&quot;yanchor&quot;),l(&quot;xshift&quot;),l(&quot;yshift&quot;),e.showarrow&amp;&amp;(e.axref=&quot;pixel&quot;,e.ayref=&quot;pixel&quot;,l(&quot;ax&quot;,-10),l(&quot;ay&quot;,-30),n.noneOrAll(t,e,[&quot;ax&quot;,&quot;ay&quot;])))}e.exports=function(t,e,r){a(t,e,{name:&quot;annotations&quot;,handleItemDefaults:l,fullLayout:r.fullLayout})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;../annotations/common_defaults&quot;:629,&quot;./attributes&quot;:635}],638:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/draw&quot;).drawRaw,i=t(&quot;../../plots/gl3d/project&quot;),a=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];e.exports=function(t){for(var e=t.fullSceneLayout,r=t.dataScale,o=e.annotations,s=0;s&lt;o.length;s++){for(var l=o[s],c=!1,u=0;u&lt;3;u++){var f=a[u],h=l[f],p=e[f+&quot;axis&quot;].r2fraction(h);if(p&lt;0||p&gt;1){c=!0;break}}c?t.fullLayout._infolayer.select(&quot;.annotation-&quot;+t.id+'[data-index=&quot;'+s+'&quot;]').remove():(l._pdata=i(t.glplot.cameraParams,[e.xaxis.r2l(l.x)*r[0],e.yaxis.r2l(l.y)*r[1],e.zaxis.r2l(l.z)*r[2]]),n(t.graphDiv,l,s,t.id,l._xa,l._ya))}}},{&quot;../../plots/gl3d/project&quot;:879,&quot;../annotations/draw&quot;:632}],639:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;annotations3d&quot;,schema:{subplots:{scene:{annotations:t(&quot;./attributes&quot;)}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),includeBasePlot:function(t,e){var r=n.subplotsRegistry.gl3d;if(!r)return;for(var a=r.attrRegex,o=Object.keys(t),s=0;s&lt;o.length;s++){var l=o[s];a.test(l)&amp;&amp;(t[l].annotations||[]).length&amp;&amp;(i.pushUnique(e._basePlotModules,r),i.pushUnique(e._subplots.gl3d,l))}},convert:t(&quot;./convert&quot;),draw:t(&quot;./draw&quot;)}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:635,&quot;./convert&quot;:636,&quot;./defaults&quot;:637,&quot;./draw&quot;:638}],640:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;world-calendars/dist/main&quot;),t(&quot;world-calendars/dist/plus&quot;),t(&quot;world-calendars/dist/calendars/chinese&quot;),t(&quot;world-calendars/dist/calendars/coptic&quot;),t(&quot;world-calendars/dist/calendars/discworld&quot;),t(&quot;world-calendars/dist/calendars/ethiopian&quot;),t(&quot;world-calendars/dist/calendars/hebrew&quot;),t(&quot;world-calendars/dist/calendars/islamic&quot;),t(&quot;world-calendars/dist/calendars/julian&quot;),t(&quot;world-calendars/dist/calendars/mayan&quot;),t(&quot;world-calendars/dist/calendars/nanakshahi&quot;),t(&quot;world-calendars/dist/calendars/nepali&quot;),t(&quot;world-calendars/dist/calendars/persian&quot;),t(&quot;world-calendars/dist/calendars/taiwan&quot;),t(&quot;world-calendars/dist/calendars/thai&quot;),t(&quot;world-calendars/dist/calendars/ummalqura&quot;)},{&quot;world-calendars/dist/calendars/chinese&quot;:607,&quot;world-calendars/dist/calendars/coptic&quot;:608,&quot;world-calendars/dist/calendars/discworld&quot;:609,&quot;world-calendars/dist/calendars/ethiopian&quot;:610,&quot;world-calendars/dist/calendars/hebrew&quot;:611,&quot;world-calendars/dist/calendars/islamic&quot;:612,&quot;world-calendars/dist/calendars/julian&quot;:613,&quot;world-calendars/dist/calendars/mayan&quot;:614,&quot;world-calendars/dist/calendars/nanakshahi&quot;:615,&quot;world-calendars/dist/calendars/nepali&quot;:616,&quot;world-calendars/dist/calendars/persian&quot;:617,&quot;world-calendars/dist/calendars/taiwan&quot;:618,&quot;world-calendars/dist/calendars/thai&quot;:619,&quot;world-calendars/dist/calendars/ummalqura&quot;:620,&quot;world-calendars/dist/main&quot;:621,&quot;world-calendars/dist/plus&quot;:622}],641:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./calendars&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;),o=a.EPOCHJD,s=a.ONEDAY,l={valType:&quot;enumerated&quot;,values:Object.keys(n.calendars),editType:&quot;calc&quot;,dflt:&quot;gregorian&quot;},c=function(t,e,r,n){var a={};return a[r]=l,i.coerce(t,e,a,r,n)},u={d:{0:&quot;dd&quot;,&quot;-&quot;:&quot;d&quot;},e:{0:&quot;d&quot;,&quot;-&quot;:&quot;d&quot;},a:{0:&quot;D&quot;,&quot;-&quot;:&quot;D&quot;},A:{0:&quot;DD&quot;,&quot;-&quot;:&quot;DD&quot;},j:{0:&quot;oo&quot;,&quot;-&quot;:&quot;o&quot;},W:{0:&quot;ww&quot;,&quot;-&quot;:&quot;w&quot;},m:{0:&quot;mm&quot;,&quot;-&quot;:&quot;m&quot;},b:{0:&quot;M&quot;,&quot;-&quot;:&quot;M&quot;},B:{0:&quot;MM&quot;,&quot;-&quot;:&quot;MM&quot;},y:{0:&quot;yy&quot;,&quot;-&quot;:&quot;yy&quot;},Y:{0:&quot;yyyy&quot;,&quot;-&quot;:&quot;yyyy&quot;},U:&quot;##&quot;,w:&quot;##&quot;,c:{0:&quot;D M d %X yyyy&quot;,&quot;-&quot;:&quot;D M d %X yyyy&quot;},x:{0:&quot;mm/dd/yyyy&quot;,&quot;-&quot;:&quot;mm/dd/yyyy&quot;}};var f={};function h(t){var e=f[t];return e||(e=f[t]=n.instance(t))}function p(t){return i.extendFlat({},l,{description:t})}function d(t){return&quot;Sets the calendar system to use with `&quot;+t+&quot;` date data.&quot;}var g={xcalendar:p(d(&quot;x&quot;))},m=i.extendFlat({},g,{ycalendar:p(d(&quot;y&quot;))}),v=i.extendFlat({},m,{zcalendar:p(d(&quot;z&quot;))}),y=p([&quot;Sets the calendar system to use for `range` and `tick0`&quot;,&quot;if this is a date axis. This does not set the calendar for&quot;,&quot;interpreting data on this axis, that's specified in the trace&quot;,&quot;or via the global `layout.calendar`&quot;].join(&quot; &quot;));e.exports={moduleType:&quot;component&quot;,name:&quot;calendars&quot;,schema:{traces:{scatter:m,bar:m,box:m,heatmap:m,contour:m,histogram:m,histogram2d:m,histogram2dcontour:m,scatter3d:v,surface:v,mesh3d:v,scattergl:m,ohlc:g,candlestick:g},layout:{calendar:p([&quot;Sets the default calendar system to use for interpreting and&quot;,&quot;displaying dates throughout the plot.&quot;].join(&quot; &quot;))},subplots:{xaxis:{calendar:y},yaxis:{calendar:y},scene:{xaxis:{calendar:y},yaxis:{calendar:y},zaxis:{calendar:y}},polar:{radialaxis:{calendar:y}}},transforms:{filter:{valuecalendar:p([&quot;Sets the calendar system to use for `value`, if it is a date.&quot;].join(&quot; &quot;)),targetcalendar:p([&quot;Sets the calendar system to use for `target`, if it is an&quot;,&quot;array of dates. If `target` is a string (eg *x*) we use the&quot;,&quot;corresponding trace attribute (eg `xcalendar`) if it exists,&quot;,&quot;even if `targetcalendar` is provided.&quot;].join(&quot; &quot;))}}},layoutAttributes:l,handleDefaults:c,handleTraceDefaults:function(t,e,r,n){for(var i=0;i&lt;r.length;i++)c(t,e,r[i]+&quot;calendar&quot;,n.calendar)},CANONICAL_SUNDAY:{chinese:&quot;2000-01-02&quot;,coptic:&quot;2000-01-03&quot;,discworld:&quot;2000-01-03&quot;,ethiopian:&quot;2000-01-05&quot;,hebrew:&quot;5000-01-01&quot;,islamic:&quot;1000-01-02&quot;,julian:&quot;2000-01-03&quot;,mayan:&quot;5000-01-01&quot;,nanakshahi:&quot;1000-01-05&quot;,nepali:&quot;2000-01-05&quot;,persian:&quot;1000-01-01&quot;,jalali:&quot;1000-01-01&quot;,taiwan:&quot;1000-01-04&quot;,thai:&quot;2000-01-04&quot;,ummalqura:&quot;1400-01-06&quot;},CANONICAL_TICK:{chinese:&quot;2000-01-01&quot;,coptic:&quot;2000-01-01&quot;,discworld:&quot;2000-01-01&quot;,ethiopian:&quot;2000-01-01&quot;,hebrew:&quot;5000-01-01&quot;,islamic:&quot;1000-01-01&quot;,julian:&quot;2000-01-01&quot;,mayan:&quot;5000-01-01&quot;,nanakshahi:&quot;1000-01-01&quot;,nepali:&quot;2000-01-01&quot;,persian:&quot;1000-01-01&quot;,jalali:&quot;1000-01-01&quot;,taiwan:&quot;1000-01-01&quot;,thai:&quot;2000-01-01&quot;,ummalqura:&quot;1400-01-01&quot;},DFLTRANGE:{chinese:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],coptic:[&quot;1700-01-01&quot;,&quot;1701-01-01&quot;],discworld:[&quot;1800-01-01&quot;,&quot;1801-01-01&quot;],ethiopian:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],hebrew:[&quot;5700-01-01&quot;,&quot;5701-01-01&quot;],islamic:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],julian:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],mayan:[&quot;5200-01-01&quot;,&quot;5201-01-01&quot;],nanakshahi:[&quot;0500-01-01&quot;,&quot;0501-01-01&quot;],nepali:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],persian:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],jalali:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],taiwan:[&quot;0100-01-01&quot;,&quot;0101-01-01&quot;],thai:[&quot;2500-01-01&quot;,&quot;2501-01-01&quot;],ummalqura:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;]},getCal:h,worldCalFmt:function(t,e,r){for(var n,i,a,l,c,f=Math.floor((e+.05)/s)+o,p=h(r).fromJD(f),d=0;-1!==(d=t.indexOf(&quot;%&quot;,d));)&quot;0&quot;===(n=t.charAt(d+1))||&quot;-&quot;===n||&quot;_&quot;===n?(a=3,i=t.charAt(d+2),&quot;_&quot;===n&amp;&amp;(n=&quot;-&quot;)):(i=n,n=&quot;0&quot;,a=2),(l=u[i])?(c=&quot;##&quot;===l?&quot;##&quot;:p.formatDate(l[n]),t=t.substr(0,d)+c+t.substr(d+a),d+=c.length):d+=a;return t}}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./calendars&quot;:640}],642:[function(t,e,r){&quot;use strict&quot;;r.defaults=[&quot;#1f77b4&quot;,&quot;#ff7f0e&quot;,&quot;#2ca02c&quot;,&quot;#d62728&quot;,&quot;#9467bd&quot;,&quot;#8c564b&quot;,&quot;#e377c2&quot;,&quot;#7f7f7f&quot;,&quot;#bcbd22&quot;,&quot;#17becf&quot;],r.defaultLine=&quot;#444&quot;,r.lightLine=&quot;#eee&quot;,r.background=&quot;#fff&quot;,r.borderLine=&quot;#BEC8D9&quot;,r.lightFraction=1e3/11},{}],643:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;),i=t(&quot;fast-isnumeric&quot;),a=e.exports={},o=t(&quot;./attributes&quot;);a.defaults=o.defaults;var s=a.defaultLine=o.defaultLine;a.lightLine=o.lightLine;var l=a.background=o.background;function c(t){if(i(t)||&quot;string&quot;!=typeof t)return t;var e=t.trim();if(&quot;rgb&quot;!==e.substr(0,3))return t;var r=e.match(/^rgba?\s*\(([^()]*)\)$/);if(!r)return t;var n=r[1].trim().split(/\s*[\s,]\s*/),a=&quot;a&quot;===e.charAt(3)&amp;&amp;4===n.length;if(!a&amp;&amp;3!==n.length)return t;for(var o=0;o&lt;n.length;o++){if(!n[o].length)return t;if(n[o]=Number(n[o]),!(n[o]&gt;=0))return t;if(3===o)n[o]&gt;1&amp;&amp;(n[o]=1);else if(n[o]&gt;=1)return t}var s=Math.round(255*n[0])+&quot;, &quot;+Math.round(255*n[1])+&quot;, &quot;+Math.round(255*n[2]);return a?&quot;rgba(&quot;+s+&quot;, &quot;+n[3]+&quot;)&quot;:&quot;rgb(&quot;+s+&quot;)&quot;}a.tinyRGB=function(t){var e=t.toRgb();return&quot;rgb(&quot;+Math.round(e.r)+&quot;, &quot;+Math.round(e.g)+&quot;, &quot;+Math.round(e.b)+&quot;)&quot;},a.rgb=function(t){return a.tinyRGB(n(t))},a.opacity=function(t){return t?n(t).getAlpha():0},a.addOpacity=function(t,e){var r=n(t).toRgb();return&quot;rgba(&quot;+Math.round(r.r)+&quot;, &quot;+Math.round(r.g)+&quot;, &quot;+Math.round(r.b)+&quot;, &quot;+e+&quot;)&quot;},a.combine=function(t,e){var r=n(t).toRgb();if(1===r.a)return n(t).toRgbString();var i=n(e||l).toRgb(),a=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},o={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},a.contrast=function(t,e,r){var i=n(t);return 1!==i.getAlpha()&amp;&amp;(i=n(a.combine(t,l))),(i.isDark()?e?i.lighten(e):l:r?i.darken(r):s).toString()},a.stroke=function(t,e){var r=n(e);t.style({stroke:a.tinyRGB(r),&quot;stroke-opacity&quot;:r.getAlpha()})},a.fill=function(t,e){var r=n(e);t.style({fill:a.tinyRGB(r),&quot;fill-opacity&quot;:r.getAlpha()})},a.clean=function(t){if(t&amp;&amp;&quot;object&quot;==typeof t){var e,r,n,i,o=Object.keys(t);for(e=0;e&lt;o.length;e++)if(i=t[n=o[e]],&quot;color&quot;===n.substr(n.length-5))if(Array.isArray(i))for(r=0;r&lt;i.length;r++)i[r]=c(i[r]);else t[n]=c(i);else if(&quot;colorscale&quot;===n.substr(n.length-10)&amp;&amp;Array.isArray(i))for(r=0;r&lt;i.length;r++)Array.isArray(i[r])&amp;&amp;(i[r][1]=c(i[r][1]));else if(Array.isArray(i)){var s=i[0];if(!Array.isArray(s)&amp;&amp;s&amp;&amp;&quot;object&quot;==typeof s)for(r=0;r&lt;i.length;r++)a.clean(i[r])}else i&amp;&amp;&quot;object&quot;==typeof i&amp;&amp;a.clean(i)}}},{&quot;./attributes&quot;:642,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],644:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/layout_attributes&quot;),i=t(&quot;../../plots/font_attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll;e.exports=o({thicknessmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;pixels&quot;},thickness:{valType:&quot;number&quot;,min:0,dflt:30},lenmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;fraction&quot;},len:{valType:&quot;number&quot;,min:0,dflt:1},x:{valType:&quot;number&quot;,dflt:1.02,min:-2,max:3},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},xpad:{valType:&quot;number&quot;,min:0,dflt:10},y:{valType:&quot;number&quot;,dflt:.5,min:-2,max:3},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;},ypad:{valType:&quot;number&quot;,min:0,dflt:10},outlinecolor:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:&quot;number&quot;,min:0,dflt:0},bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;},tickmode:n.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:a({},n.ticks,{dflt:&quot;&quot;}),ticklabelposition:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;],dflt:&quot;outside&quot;},ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,showticklabels:n.showticklabels,tickfont:i({}),tickangle:n.tickangle,tickformat:n.tickformat,tickformatstops:n.tickformatstops,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,minexponent:n.minexponent,showexponent:n.showexponent,title:{text:{valType:&quot;string&quot;},font:i({}),side:{valType:&quot;enumerated&quot;,values:[&quot;right&quot;,&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;}},_deprecated:{title:{valType:&quot;string&quot;},titlefont:i({}),titleside:{valType:&quot;enumerated&quot;,values:[&quot;right&quot;,&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;}}},&quot;colorbars&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/font_attributes&quot;:856}],645:[function(t,e,r){&quot;use strict&quot;;e.exports={cn:{colorbar:&quot;colorbar&quot;,cbbg:&quot;cbbg&quot;,cbfill:&quot;cbfill&quot;,cbfills:&quot;cbfills&quot;,cbline:&quot;cbline&quot;,cblines:&quot;cblines&quot;,cbaxis:&quot;cbaxis&quot;,cbtitleunshift:&quot;cbtitleunshift&quot;,cbtitle:&quot;cbtitle&quot;,cboutline:&quot;cboutline&quot;,crisp:&quot;crisp&quot;,jsPlaceholder:&quot;js-placeholder&quot;}}},{}],646:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),o=t(&quot;../../plots/cartesian/tick_mark_defaults&quot;),s=t(&quot;../../plots/cartesian/tick_label_defaults&quot;),l=t(&quot;./attributes&quot;);e.exports=function(t,e,r){var c=i.newContainer(e,&quot;colorbar&quot;),u=t.colorbar||{};function f(t,e){return n.coerce(u,c,l,t,e)}var h=f(&quot;thicknessmode&quot;);f(&quot;thickness&quot;,&quot;fraction&quot;===h?30/(r.width-r.margin.l-r.margin.r):30);var p=f(&quot;lenmode&quot;);f(&quot;len&quot;,&quot;fraction&quot;===p?1:r.height-r.margin.t-r.margin.b),f(&quot;x&quot;),f(&quot;xanchor&quot;),f(&quot;xpad&quot;),f(&quot;y&quot;),f(&quot;yanchor&quot;),f(&quot;ypad&quot;),n.noneOrAll(u,c,[&quot;x&quot;,&quot;y&quot;]),f(&quot;outlinecolor&quot;),f(&quot;outlinewidth&quot;),f(&quot;bordercolor&quot;),f(&quot;borderwidth&quot;),f(&quot;bgcolor&quot;);var d=f(&quot;ticklabelposition&quot;);a(u,c,f,&quot;linear&quot;);var g={outerTicks:!1,font:r.font};-1!==d.indexOf(&quot;inside&quot;)&amp;&amp;(g.bgColor=&quot;black&quot;),s(u,c,f,&quot;linear&quot;,g),o(u,c,f,&quot;linear&quot;,g),f(&quot;title.text&quot;,r._dfltTitle.colorbar),n.coerceFont(f,&quot;title.font&quot;,r.font),f(&quot;title.side&quot;)}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/tick_label_defaults&quot;:849,&quot;../../plots/cartesian/tick_mark_defaults&quot;:850,&quot;../../plots/cartesian/tick_value_defaults&quot;:851,&quot;./attributes&quot;:644}],647:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=t(&quot;../dragelement&quot;),c=t(&quot;../../lib&quot;),u=c.strTranslate,f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../lib/setcursor&quot;),p=t(&quot;../drawing&quot;),d=t(&quot;../color&quot;),g=t(&quot;../titles&quot;),m=t(&quot;../../lib/svg_text_utils&quot;),v=t(&quot;../colorscale/helpers&quot;).flipScale,y=t(&quot;../../plots/cartesian/axis_defaults&quot;),x=t(&quot;../../plots/cartesian/position_defaults&quot;),b=t(&quot;../../plots/cartesian/layout_attributes&quot;),_=t(&quot;../../constants/alignment&quot;),w=_.LINE_SPACING,T=_.FROM_TL,k=_.FROM_BR,M=t(&quot;./constants&quot;).cn;e.exports={draw:function(t){var e=t._fullLayout._infolayer.selectAll(&quot;g.&quot;+M.colorbar).data(function(t){var e,r,n,i,a=t._fullLayout,o=t.calcdata,s=[];function l(t){return f(t,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){&quot;function&quot;==typeof i.calc?i.calc(t,n,e):(e._fillgradient=r.reversescale?v(r.colorscale):r.colorscale,e._zrange=[r[i.min],r[i.max]])}for(var u=0;u&lt;o.length;u++){var h=o[u],p=(n=h[0].trace)._module.colorbar;if(!0===n.visible&amp;&amp;p)for(var d=Array.isArray(p),g=d?p:[p],m=0;m&lt;g.length;m++){var y=(i=g[m]).container;(r=y?n[y]:n)&amp;&amp;r.showscale&amp;&amp;((e=l(r.colorbar))._id=&quot;cb&quot;+n.uid+(d&amp;&amp;y?&quot;-&quot;+y:&quot;&quot;),e._traceIndex=n.index,e._propPrefix=(y?y+&quot;.&quot;:&quot;&quot;)+&quot;colorbar.&quot;,e._meta=n._meta,c(),s.push(e))}}for(var x in a._colorAxes)if((r=a[x]).showscale){var b=a._colorAxes[x];(e=l(r.colorbar))._id=&quot;cb&quot;+x,e._propPrefix=x+&quot;.colorbar.&quot;,e._meta=a._meta,i={min:&quot;cmin&quot;,max:&quot;cmax&quot;},&quot;heatmap&quot;!==b[0]&amp;&amp;(n=b[1],i.calc=n._module.colorbar.calc),c(),s.push(e)}return s}(t),(function(t){return t._id}));e.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return t._id})).classed(M.colorbar,!0),e.each((function(e){var r=n.select(this);c.ensureSingle(r,&quot;rect&quot;,M.cbbg),c.ensureSingle(r,&quot;g&quot;,M.cbfills),c.ensureSingle(r,&quot;g&quot;,M.cblines),c.ensureSingle(r,&quot;g&quot;,M.cbaxis,(function(t){t.classed(M.crisp,!0)})),c.ensureSingle(r,&quot;g&quot;,M.cbtitleunshift,(function(t){t.append(&quot;g&quot;).classed(M.cbtitle,!0)})),c.ensureSingle(r,&quot;rect&quot;,M.cboutline);var v=function(t,e,r){var o=r._fullLayout,l=o._size,h=e._fillcolor,v=e._line,_=e.title,A=_.side,S=e._zrange||n.extent((&quot;function&quot;==typeof h?h:v.color).domain()),E=&quot;function&quot;==typeof v.color?v.color:function(){return v.color},C=&quot;function&quot;==typeof h?h:function(){return h},L=e._levels,I=function(t,e,r){var n,i,a=e._levels,o=[],s=[],l=a.end+a.size/100,c=a.size,u=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(i=0;i&lt;1e5&amp;&amp;(n=a.start+i*c,!(c&gt;0?n&gt;=l:n&lt;=l));i++)n&gt;u&amp;&amp;n&lt;f&amp;&amp;o.push(n);if(e._fillgradient)s=[0];else if(&quot;function&quot;==typeof e._fillcolor){var h=e._filllevels;if(h)for(l=h.end+h.size/100,c=h.size,i=0;i&lt;1e5&amp;&amp;(n=h.start+i*c,!(c&gt;0?n&gt;=l:n&lt;=l));i++)n&gt;r[0]&amp;&amp;n&lt;r[1]&amp;&amp;s.push(n);else(s=o.map((function(t){return t-a.size/2}))).push(s[s.length-1]+a.size)}else e._fillcolor&amp;&amp;&quot;string&quot;==typeof e._fillcolor&amp;&amp;(s=[0]);a.size&lt;0&amp;&amp;(o.reverse(),s.reverse());return{line:o,fill:s}}(0,e,S),P=I.fill,z=I.line,O=Math.round(e.thickness*(&quot;fraction&quot;===e.thicknessmode?l.w:1)),D=O/l.w,R=Math.round(e.len*(&quot;fraction&quot;===e.lenmode?l.h:1)),F=R/l.h,B=e.xpad/l.w,N=(e.borderwidth+e.outlinewidth)/2,j=e.ypad/l.h,U=Math.round(e.x*l.w+e.xpad),V=e.x-D*({middle:.5,right:1}[e.xanchor]||0),q=e.y+F*(({top:-.5,bottom:.5}[e.yanchor]||0)-.5),H=Math.round(l.h*(1-q)),G=H-R;e._lenFrac=F,e._thickFrac=D,e._xLeftFrac=V,e._yBottomFrac=q;var Y=e._axis=function(t,e,r){var n=t._fullLayout,i={type:&quot;linear&quot;,range:r,tickmode:e.tickmode,nticks:e.nticks,tick0:e.tick0,dtick:e.dtick,tickvals:e.tickvals,ticktext:e.ticktext,ticks:e.ticks,ticklen:e.ticklen,tickwidth:e.tickwidth,tickcolor:e.tickcolor,showticklabels:e.showticklabels,ticklabelposition:e.ticklabelposition,tickfont:e.tickfont,tickangle:e.tickangle,tickformat:e.tickformat,exponentformat:e.exponentformat,minexponent:e.minexponent,separatethousands:e.separatethousands,showexponent:e.showexponent,showtickprefix:e.showtickprefix,tickprefix:e.tickprefix,showticksuffix:e.showticksuffix,ticksuffix:e.ticksuffix,title:e.title,showline:!0,anchor:&quot;free&quot;,side:&quot;right&quot;,position:1},a={type:&quot;linear&quot;,_id:&quot;y&quot;+e._id},o={letter:&quot;y&quot;,font:n.font,noHover:!0,noTickson:!0,noTicklabelmode:!0,calendar:n.calendar};function s(t,e){return c.coerce(i,a,b,t,e)}return y(i,a,s,o,n),x(i,a,s,o),a}(r,e,S);Y.position=e.x+B+D,-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)&amp;&amp;(Y.title.side=A,Y.titlex=e.x+B,Y.titley=q+(&quot;top&quot;===_.side?F-j:j));if(v.color&amp;&amp;&quot;auto&quot;===e.tickmode){Y.tickmode=&quot;linear&quot;,Y.tick0=L.start;var W=L.size,X=c.constrain((H-G)/50,4,15)+1,Z=(S[1]-S[0])/((e.nticks||X)*W);if(Z&gt;1){var J=Math.pow(10,Math.floor(Math.log(Z)/Math.LN10));W*=J*c.roundUp(Z/J,[2,5,10]),(Math.abs(L.start)/L.size+1e-6)%1&lt;2e-6&amp;&amp;(Y.tick0=0)}Y.dtick=W}Y.domain=[q+j,q+F-j],Y.setScale(),t.attr(&quot;transform&quot;,u(Math.round(l.l),Math.round(l.t)));var K,Q=t.select(&quot;.&quot;+M.cbtitleunshift).attr(&quot;transform&quot;,u(-Math.round(l.l),-Math.round(l.t))),$=t.select(&quot;.&quot;+M.cbaxis),tt=0;function et(n,i){var a={propContainer:Y,propName:e._propPrefix+&quot;title&quot;,traceIndex:e._traceIndex,_meta:e._meta,placeholder:o._dfltTitle.colorbar,containerGroup:t.select(&quot;.&quot;+M.cbtitle)},s=&quot;h&quot;===n.charAt(0)?n.substr(1):&quot;h&quot;+n;t.selectAll(&quot;.&quot;+s+&quot;,.&quot;+s+&quot;-math-group&quot;).remove(),g.draw(r,n,f(a,i||{}))}return c.syncOrAsync([a.previousPromises,function(){if(-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)){var t,r=l.l+(e.x+B)*l.w,n=Y.title.font.size;t=&quot;top&quot;===A?(1-(q+F-j))*l.h+l.t+3+.75*n:(1-(q+j))*l.h+l.t-3-.25*n,et(Y._id+&quot;title&quot;,{attributes:{x:r,y:t,&quot;text-anchor&quot;:&quot;start&quot;}})}},function(){if(-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)){var a=t.select(&quot;.&quot;+M.cbtitle),o=a.select(&quot;text&quot;),f=[-e.outlinewidth/2,e.outlinewidth/2],h=a.select(&quot;.h&quot;+Y._id+&quot;title-math-group&quot;).node(),d=15.6;if(o.node()&amp;&amp;(d=parseInt(o.node().style.fontSize,10)*w),h?(tt=p.bBox(h).height)&gt;d&amp;&amp;(f[1]-=(tt-d)/2):o.node()&amp;&amp;!o.classed(M.jsPlaceholder)&amp;&amp;(tt=p.bBox(o.node()).height),tt){if(tt+=5,&quot;top&quot;===A)Y.domain[1]-=tt/l.h,f[1]*=-1;else{Y.domain[0]+=tt/l.h;var g=m.lineCount(o);f[1]+=(1-g)*d}a.attr(&quot;transform&quot;,u(f[0],f[1])),Y.setScale()}}t.selectAll(&quot;.&quot;+M.cbfills+&quot;,.&quot;+M.cblines).attr(&quot;transform&quot;,u(0,Math.round(l.h*(1-Y.domain[1])))),$.attr(&quot;transform&quot;,u(0,Math.round(-l.t)));var y=t.select(&quot;.&quot;+M.cbfills).selectAll(&quot;rect.&quot;+M.cbfill).attr(&quot;style&quot;,&quot;&quot;).data(P);y.enter().append(&quot;rect&quot;).classed(M.cbfill,!0).style(&quot;stroke&quot;,&quot;none&quot;),y.exit().remove();var x=S.map(Y.c2p).map(Math.round).sort((function(t,e){return t-e}));y.each((function(t,a){var o=[0===a?S[0]:(P[a]+P[a-1])/2,a===P.length-1?S[1]:(P[a]+P[a+1])/2].map(Y.c2p).map(Math.round);o[1]=c.constrain(o[1]+(o[1]&gt;o[0])?1:-1,x[0],x[1]);var s=n.select(this).attr({x:U,width:Math.max(O,2),y:n.min(o),height:Math.max(n.max(o)-n.min(o),2)});if(e._fillgradient)p.gradient(s,r,e._id,&quot;vertical&quot;,e._fillgradient,&quot;fill&quot;);else{var l=C(t).replace(&quot;e-&quot;,&quot;&quot;);s.attr(&quot;fill&quot;,i(l).toHexString())}}));var b=t.select(&quot;.&quot;+M.cblines).selectAll(&quot;path.&quot;+M.cbline).data(v.color&amp;&amp;v.width?z:[]);b.enter().append(&quot;path&quot;).classed(M.cbline,!0),b.exit().remove(),b.each((function(t){n.select(this).attr(&quot;d&quot;,&quot;M&quot;+U+&quot;,&quot;+(Math.round(Y.c2p(t))+v.width/2%1)+&quot;h&quot;+O).call(p.lineGroupStyle,v.width,E(t),v.dash)})),$.selectAll(&quot;g.&quot;+Y._id+&quot;tick,path&quot;).remove();var _=U+O+(e.outlinewidth||0)/2-(&quot;outside&quot;===e.ticks?1:0),T=s.calcTicks(Y),k=s.getTickSigns(Y)[2];return s.drawTicks(r,Y,{vals:&quot;inside&quot;===Y.ticks?s.clipEnds(Y,T):T,layer:$,path:s.makeTickPath(Y,_,k),transFn:s.makeTransTickFn(Y)}),s.drawLabels(r,Y,{vals:T,layer:$,transFn:s.makeTransTickLabelFn(Y),labelFns:s.makeLabelFns(Y,_)})},function(){if(-1===[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)){var t=Y.title.font.size,e=Y._offset+Y._length/2,i=l.l+(Y.position||0)*l.w+(&quot;right&quot;===Y.side?10+t*(Y.showticklabels?1:.5):-10-t*(Y.showticklabels?.5:0));et(&quot;h&quot;+Y._id+&quot;title&quot;,{avoid:{selection:n.select(r).selectAll(&quot;g.&quot;+Y._id+&quot;tick&quot;),side:A,offsetLeft:l.l,offsetTop:0,maxShift:o.width},attributes:{x:i,y:e,&quot;text-anchor&quot;:&quot;middle&quot;},transform:{rotate:&quot;-90&quot;,offset:0}})}},a.previousPromises,function(){var n=O+e.outlinewidth/2;if(-1===Y.ticklabelposition.indexOf(&quot;inside&quot;)&amp;&amp;(n+=p.bBox($.node()).width),(K=Q.select(&quot;text&quot;)).node()&amp;&amp;!K.classed(M.jsPlaceholder)){var i,o=Q.select(&quot;.h&quot;+Y._id+&quot;title-math-group&quot;).node();i=o&amp;&amp;-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)?p.bBox(o).width:p.bBox(Q.node()).right-U-l.l,n=Math.max(n,i)}var s=2*e.xpad+n+e.borderwidth+e.outlinewidth/2,c=H-G;t.select(&quot;.&quot;+M.cbbg).attr({x:U-e.xpad-(e.borderwidth+e.outlinewidth)/2,y:G-N,width:Math.max(s,2),height:Math.max(c+2*N,2)}).call(d.fill,e.bgcolor).call(d.stroke,e.bordercolor).style(&quot;stroke-width&quot;,e.borderwidth),t.selectAll(&quot;.&quot;+M.cboutline).attr({x:U,y:G+e.ypad+(&quot;top&quot;===A?tt:0),width:Math.max(O,2),height:Math.max(c-2*e.ypad-tt,2)}).call(d.stroke,e.outlinecolor).style({fill:&quot;none&quot;,&quot;stroke-width&quot;:e.outlinewidth});var f=({center:.5,right:1}[e.xanchor]||0)*s;t.attr(&quot;transform&quot;,u(l.l-f,l.t));var h={},g=T[e.yanchor],m=k[e.yanchor];&quot;pixels&quot;===e.lenmode?(h.y=e.y,h.t=c*g,h.b=c*m):(h.t=h.b=0,h.yt=e.y+e.len*g,h.yb=e.y-e.len*m);var v=T[e.xanchor],y=k[e.xanchor];if(&quot;pixels&quot;===e.thicknessmode)h.x=e.x,h.l=s*v,h.r=s*y;else{var x=s-O;h.l=x*v,h.r=x*y,h.xl=e.x-e.thickness*v,h.xr=e.x+e.thickness*y}a.autoMargin(r,e._id,h)}],r)}(r,e,t);v&amp;&amp;v.then&amp;&amp;(t._promises||[]).push(v),t._context.edits.colorbarPosition&amp;&amp;function(t,e,r){var n,i,a,s=r._fullLayout._size;l.init({element:t.node(),gd:r,prepFn:function(){n=t.attr(&quot;transform&quot;),h(t)},moveFn:function(r,o){t.attr(&quot;transform&quot;,n+u(r,o)),i=l.align(e._xLeftFrac+r/s.w,e._thickFrac,0,1,e.xanchor),a=l.align(e._yBottomFrac-o/s.h,e._lenFrac,0,1,e.yanchor);var c=l.getCursor(i,a,e.xanchor,e.yanchor);h(t,c)},doneFn:function(){if(h(t),void 0!==i&amp;&amp;void 0!==a){var n={};n[e._propPrefix+&quot;x&quot;]=i,n[e._propPrefix+&quot;y&quot;]=a,void 0!==e._traceIndex?o.call(&quot;_guiRestyle&quot;,r,n,e._traceIndex):o.call(&quot;_guiRelayout&quot;,r,n)}}})}(r,e,t)})),e.exit().each((function(e){a.autoMargin(t,e._id)})).remove(),e.order()}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/extend&quot;:768,&quot;../../lib/setcursor&quot;:799,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_defaults&quot;:830,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/cartesian/position_defaults&quot;:845,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../colorscale/helpers&quot;:654,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../titles&quot;:738,&quot;./constants&quot;:645,d3:169,tinycolor2:576}],648:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t){return n.isPlainObject(t.colorbar)}},{&quot;../../lib&quot;:778}],649:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;colorbar&quot;,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;).draw,hasColorbar:t(&quot;./has_colorbar&quot;)}},{&quot;./attributes&quot;:644,&quot;./defaults&quot;:646,&quot;./draw&quot;:647,&quot;./has_colorbar&quot;:648}],650:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../colorbar/attributes&quot;),i=t(&quot;../../lib/regex&quot;).counter,a=t(&quot;./scales.js&quot;).scales;Object.keys(a);function o(t){return&quot;`&quot;+t+&quot;`&quot;}e.exports=function(t,e){t=t||&quot;&quot;;var r,s=(e=e||{}).cLetter||&quot;c&quot;,l=(&quot;onlyIfNumerical&quot;in e?e.onlyIfNumerical:Boolean(t),&quot;noScale&quot;in e?e.noScale:&quot;marker.line&quot;===t),c=&quot;showScaleDflt&quot;in e?e.showScaleDflt:&quot;z&quot;===s,u=&quot;string&quot;==typeof e.colorscaleDflt?a[e.colorscaleDflt]:null,f=e.editTypeOverride||&quot;&quot;,h=t?t+&quot;.&quot;:&quot;&quot;;&quot;colorAttr&quot;in e?(r=e.colorAttr,e.colorAttr):o(h+(r={z:&quot;z&quot;,c:&quot;color&quot;}[s]));var p=s+&quot;auto&quot;,d=s+&quot;min&quot;,g=s+&quot;max&quot;,m=s+&quot;mid&quot;,v=(o(h+p),o(h+d),o(h+g),{});v[d]=v[g]=void 0;var y={};y[p]=!1;var x={};return&quot;color&quot;===r&amp;&amp;(x.color={valType:&quot;color&quot;,arrayOk:!0,editType:f||&quot;style&quot;},e.anim&amp;&amp;(x.color.anim=!0)),x[p]={valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:v},x[d]={valType:&quot;number&quot;,dflt:null,editType:f||&quot;plot&quot;,impliedEdits:y},x[g]={valType:&quot;number&quot;,dflt:null,editType:f||&quot;plot&quot;,impliedEdits:y},x[m]={valType:&quot;number&quot;,dflt:null,editType:&quot;calc&quot;,impliedEdits:v},x.colorscale={valType:&quot;colorscale&quot;,editType:&quot;calc&quot;,dflt:u,impliedEdits:{autocolorscale:!1}},x.autocolorscale={valType:&quot;boolean&quot;,dflt:!1!==e.autoColorDflt,editType:&quot;calc&quot;,impliedEdits:{colorscale:void 0}},x.reversescale={valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},l||(x.showscale={valType:&quot;boolean&quot;,dflt:c,editType:&quot;calc&quot;},x.colorbar=n),e.noColorAxis||(x.coloraxis={valType:&quot;subplotid&quot;,regex:i(&quot;coloraxis&quot;),dflt:null,editType:&quot;calc&quot;}),x}},{&quot;../../lib/regex&quot;:795,&quot;../colorbar/attributes&quot;:644,&quot;./scales.js&quot;:658}],651:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./helpers&quot;).extractOpts;e.exports=function(t,e,r){var o,s=t._fullLayout,l=r.vals,c=r.containerStr,u=c?i.nestedProperty(e,c).get():e,f=a(u),h=!1!==f.auto,p=f.min,d=f.max,g=f.mid,m=function(){return i.aggNums(Math.min,null,l)},v=function(){return i.aggNums(Math.max,null,l)};(void 0===p?p=m():h&amp;&amp;(p=u._colorAx&amp;&amp;n(p)?Math.min(p,m()):m()),void 0===d?d=v():h&amp;&amp;(d=u._colorAx&amp;&amp;n(d)?Math.max(d,v()):v()),h&amp;&amp;void 0!==g&amp;&amp;(d-g&gt;g-p?p=g-(d-g):d-g&lt;g-p&amp;&amp;(d=g+(g-p))),p===d&amp;&amp;(p-=.5,d+=.5),f._sync(&quot;min&quot;,p),f._sync(&quot;max&quot;,d),f.autocolorscale)&amp;&amp;(o=p*d&lt;0?s.colorscale.diverging:p&gt;=0?s.colorscale.sequential:s.colorscale.sequentialminus,f._sync(&quot;colorscale&quot;,o))}},{&quot;../../lib&quot;:778,&quot;./helpers&quot;:654,&quot;fast-isnumeric&quot;:241}],652:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./helpers&quot;).hasColorscale,a=t(&quot;./helpers&quot;).extractOpts;e.exports=function(t,e){function r(t,e){var r=t[&quot;_&quot;+e];void 0!==r&amp;&amp;(t[e]=r)}function o(t,i){var o=i.container?n.nestedProperty(t,i.container).get():t;if(o)if(o.coloraxis)o._colorAx=e[o.coloraxis];else{var s=a(o),l=s.auto;(l||void 0===s.min)&amp;&amp;r(o,i.min),(l||void 0===s.max)&amp;&amp;r(o,i.max),s.autocolorscale&amp;&amp;r(o,&quot;colorscale&quot;)}}for(var s=0;s&lt;t.length;s++){var l=t[s],c=l._module.colorbar;if(c)if(Array.isArray(c))for(var u=0;u&lt;c.length;u++)o(l,c[u]);else o(l,c);i(l,&quot;marker.line&quot;)&amp;&amp;o(l,{container:&quot;marker.line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;})}for(var f in e._colorAxes)o(e[f],{min:&quot;cmin&quot;,max:&quot;cmax&quot;})}},{&quot;../../lib&quot;:778,&quot;./helpers&quot;:654}],653:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../colorbar/has_colorbar&quot;),o=t(&quot;../colorbar/defaults&quot;),s=t(&quot;./scales&quot;).isValid,l=t(&quot;../../registry&quot;).traceIs;function c(t,e){var r=e.slice(0,e.length-1);return e?i.nestedProperty(t,r).get()||{}:t}e.exports=function t(e,r,u,f,h){var p=h.prefix,d=h.cLetter,g=&quot;_module&quot;in r,m=c(e,p),v=c(r,p),y=c(r._template||{},p)||{},x=function(){return delete e.coloraxis,delete r.coloraxis,t(e,r,u,f,h)};if(g){var b=u._colorAxes||{},_=f(p+&quot;coloraxis&quot;);if(_){var w=l(r,&quot;contour&quot;)&amp;&amp;i.nestedProperty(r,&quot;contours.coloring&quot;).get()||&quot;heatmap&quot;,T=b[_];return void(T?(T[2].push(x),T[0]!==w&amp;&amp;(T[0]=!1,i.warn([&quot;Ignoring coloraxis:&quot;,_,&quot;setting&quot;,&quot;as it is linked to incompatible colorscales.&quot;].join(&quot; &quot;)))):b[_]=[w,r,[x]])}}var k=m[d+&quot;min&quot;],M=m[d+&quot;max&quot;],A=n(k)&amp;&amp;n(M)&amp;&amp;k&lt;M;f(p+d+&quot;auto&quot;,!A)?f(p+d+&quot;mid&quot;):(f(p+d+&quot;min&quot;),f(p+d+&quot;max&quot;));var S,E,C=m.colorscale,L=y.colorscale;(void 0!==C&amp;&amp;(S=!s(C)),void 0!==L&amp;&amp;(S=!s(L)),f(p+&quot;autocolorscale&quot;,S),f(p+&quot;colorscale&quot;),f(p+&quot;reversescale&quot;),&quot;marker.line.&quot;!==p)&amp;&amp;(p&amp;&amp;g&amp;&amp;(E=a(m)),f(p+&quot;showscale&quot;,E)&amp;&amp;(p&amp;&amp;y&amp;&amp;(v._template=y),o(m,v,u)))}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../colorbar/defaults&quot;:646,&quot;../colorbar/has_colorbar&quot;:648,&quot;./scales&quot;:658,&quot;fast-isnumeric&quot;:241}],654:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../color&quot;),l=t(&quot;./scales&quot;).isValid;var c=[&quot;showscale&quot;,&quot;autocolorscale&quot;,&quot;colorscale&quot;,&quot;reversescale&quot;,&quot;colorbar&quot;],u=[&quot;min&quot;,&quot;max&quot;,&quot;mid&quot;,&quot;auto&quot;];function f(t){var e,r,n,i=t._colorAx,a=i||t,o={};for(r=0;r&lt;c.length;r++)o[n=c[r]]=a[n];if(i)for(e=&quot;c&quot;,r=0;r&lt;u.length;r++)o[n=u[r]]=a[&quot;c&quot;+n];else{var s;for(r=0;r&lt;u.length;r++)((s=&quot;c&quot;+(n=u[r]))in a||(s=&quot;z&quot;+n)in a)&amp;&amp;(o[n]=a[s]);e=s.charAt(0)}return o._sync=function(t,r){var n=-1!==u.indexOf(t)?e+t:t;a[n]=a[&quot;_&quot;+n]=r},o}function h(t){for(var e=f(t),r=e.min,n=e.max,i=e.reversescale?p(e.colorscale):e.colorscale,a=i.length,o=new Array(a),s=new Array(a),l=0;l&lt;a;l++){var c=i[l];o[l]=r+c[0]*(n-r),s[l]=c[1]}return{domain:o,range:s}}function p(t){for(var e=t.length,r=new Array(e),n=e-1,i=0;n&gt;=0;n--,i++){var a=t[n];r[i]=[1-a[0],a[1]]}return r}function d(t,e){e=e||{};for(var r=t.domain,o=t.range,l=o.length,c=new Array(l),u=0;u&lt;l;u++){var f=i(o[u]).toRgb();c[u]=[f.r,f.g,f.b,f.a]}var h,p=n.scale.linear().domain(r).range(c).clamp(!0),d=e.noNumericCheck,m=e.returnArray;return(h=d&amp;&amp;m?p:d?function(t){return g(p(t))}:m?function(t){return a(t)?p(t):i(t).isValid()?t:s.defaultLine}:function(t){return a(t)?g(p(t)):i(t).isValid()?t:s.defaultLine}).domain=p.domain,h.range=function(){return o},h}function g(t){var e={r:t[0],g:t[1],b:t[2],a:t[3]};return i(e).toRgbString()}e.exports={hasColorscale:function(t,e,r){var n=e?o.nestedProperty(t,e).get()||{}:t,i=n[r||&quot;color&quot;],s=!1;if(o.isArrayOrTypedArray(i))for(var c=0;c&lt;i.length;c++)if(a(i[c])){s=!0;break}return o.isPlainObject(n)&amp;&amp;(s||!0===n.showscale||a(n.cmin)&amp;&amp;a(n.cmax)||l(n.colorscale)||o.isPlainObject(n.colorbar))},extractOpts:f,extractScale:h,flipScale:p,makeColorScaleFunc:d,makeColorScaleFuncFromTrace:function(t,e){return d(h(t),e)}}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;./scales&quot;:658,d3:169,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],655:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./scales&quot;),i=t(&quot;./helpers&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;colorscale&quot;,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),handleDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),calc:t(&quot;./calc&quot;),scales:n.scales,defaultScale:n.defaultScale,getScale:n.get,isValidScale:n.isValid,hasColorscale:i.hasColorscale,extractOpts:i.extractOpts,extractScale:i.extractScale,flipScale:i.flipScale,makeColorScaleFunc:i.makeColorScaleFunc,makeColorScaleFuncFromTrace:i.makeColorScaleFuncFromTrace}},{&quot;./attributes&quot;:650,&quot;./calc&quot;:651,&quot;./cross_trace_defaults&quot;:652,&quot;./defaults&quot;:653,&quot;./helpers&quot;:654,&quot;./layout_attributes&quot;:656,&quot;./layout_defaults&quot;:657,&quot;./scales&quot;:658}],656:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;./attributes&quot;),a=t(&quot;./scales&quot;).scales;e.exports={editType:&quot;calc&quot;,colorscale:{editType:&quot;calc&quot;,sequential:{valType:&quot;colorscale&quot;,dflt:a.Reds,editType:&quot;calc&quot;},sequentialminus:{valType:&quot;colorscale&quot;,dflt:a.Blues,editType:&quot;calc&quot;},diverging:{valType:&quot;colorscale&quot;,dflt:a.RdBu,editType:&quot;calc&quot;}},coloraxis:n({_isSubplotObj:!0,editType:&quot;calc&quot;},i(&quot;&quot;,{colorAttr:&quot;corresponding trace color array(s)&quot;,noColorAxis:!0,showScaleDflt:!0}))}},{&quot;../../lib/extend&quot;:768,&quot;./attributes&quot;:650,&quot;./scales&quot;:658}],657:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;./layout_attributes&quot;),o=t(&quot;./defaults&quot;);e.exports=function(t,e){function r(r,i){return n.coerce(t,e,a,r,i)}r(&quot;colorscale.sequential&quot;),r(&quot;colorscale.sequentialminus&quot;),r(&quot;colorscale.diverging&quot;);var s,l,c=e._colorAxes;function u(t,e){return n.coerce(s,l,a.coloraxis,t,e)}for(var f in c){var h=c[f];if(h[0])s=t[f]||{},(l=i.newContainer(e,f,&quot;coloraxis&quot;))._name=f,o(s,l,e,u,{prefix:&quot;&quot;,cLetter:&quot;c&quot;});else{for(var p=0;p&lt;h[2].length;p++)h[2][p]();delete e._colorAxes[f]}}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;./defaults&quot;:653,&quot;./layout_attributes&quot;:656}],658:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;),i={Greys:[[0,&quot;rgb(0,0,0)&quot;],[1,&quot;rgb(255,255,255)&quot;]],YlGnBu:[[0,&quot;rgb(8,29,88)&quot;],[.125,&quot;rgb(37,52,148)&quot;],[.25,&quot;rgb(34,94,168)&quot;],[.375,&quot;rgb(29,145,192)&quot;],[.5,&quot;rgb(65,182,196)&quot;],[.625,&quot;rgb(127,205,187)&quot;],[.75,&quot;rgb(199,233,180)&quot;],[.875,&quot;rgb(237,248,217)&quot;],[1,&quot;rgb(255,255,217)&quot;]],Greens:[[0,&quot;rgb(0,68,27)&quot;],[.125,&quot;rgb(0,109,44)&quot;],[.25,&quot;rgb(35,139,69)&quot;],[.375,&quot;rgb(65,171,93)&quot;],[.5,&quot;rgb(116,196,118)&quot;],[.625,&quot;rgb(161,217,155)&quot;],[.75,&quot;rgb(199,233,192)&quot;],[.875,&quot;rgb(229,245,224)&quot;],[1,&quot;rgb(247,252,245)&quot;]],YlOrRd:[[0,&quot;rgb(128,0,38)&quot;],[.125,&quot;rgb(189,0,38)&quot;],[.25,&quot;rgb(227,26,28)&quot;],[.375,&quot;rgb(252,78,42)&quot;],[.5,&quot;rgb(253,141,60)&quot;],[.625,&quot;rgb(254,178,76)&quot;],[.75,&quot;rgb(254,217,118)&quot;],[.875,&quot;rgb(255,237,160)&quot;],[1,&quot;rgb(255,255,204)&quot;]],Bluered:[[0,&quot;rgb(0,0,255)&quot;],[1,&quot;rgb(255,0,0)&quot;]],RdBu:[[0,&quot;rgb(5,10,172)&quot;],[.35,&quot;rgb(106,137,247)&quot;],[.5,&quot;rgb(190,190,190)&quot;],[.6,&quot;rgb(220,170,132)&quot;],[.7,&quot;rgb(230,145,90)&quot;],[1,&quot;rgb(178,10,28)&quot;]],Reds:[[0,&quot;rgb(220,220,220)&quot;],[.2,&quot;rgb(245,195,157)&quot;],[.4,&quot;rgb(245,160,105)&quot;],[1,&quot;rgb(178,10,28)&quot;]],Blues:[[0,&quot;rgb(5,10,172)&quot;],[.35,&quot;rgb(40,60,190)&quot;],[.5,&quot;rgb(70,100,245)&quot;],[.6,&quot;rgb(90,120,245)&quot;],[.7,&quot;rgb(106,137,247)&quot;],[1,&quot;rgb(220,220,220)&quot;]],Picnic:[[0,&quot;rgb(0,0,255)&quot;],[.1,&quot;rgb(51,153,255)&quot;],[.2,&quot;rgb(102,204,255)&quot;],[.3,&quot;rgb(153,204,255)&quot;],[.4,&quot;rgb(204,204,255)&quot;],[.5,&quot;rgb(255,255,255)&quot;],[.6,&quot;rgb(255,204,255)&quot;],[.7,&quot;rgb(255,153,255)&quot;],[.8,&quot;rgb(255,102,204)&quot;],[.9,&quot;rgb(255,102,102)&quot;],[1,&quot;rgb(255,0,0)&quot;]],Rainbow:[[0,&quot;rgb(150,0,90)&quot;],[.125,&quot;rgb(0,0,200)&quot;],[.25,&quot;rgb(0,25,255)&quot;],[.375,&quot;rgb(0,152,255)&quot;],[.5,&quot;rgb(44,255,150)&quot;],[.625,&quot;rgb(151,255,0)&quot;],[.75,&quot;rgb(255,234,0)&quot;],[.875,&quot;rgb(255,111,0)&quot;],[1,&quot;rgb(255,0,0)&quot;]],Portland:[[0,&quot;rgb(12,51,131)&quot;],[.25,&quot;rgb(10,136,186)&quot;],[.5,&quot;rgb(242,211,56)&quot;],[.75,&quot;rgb(242,143,56)&quot;],[1,&quot;rgb(217,30,30)&quot;]],Jet:[[0,&quot;rgb(0,0,131)&quot;],[.125,&quot;rgb(0,60,170)&quot;],[.375,&quot;rgb(5,255,255)&quot;],[.625,&quot;rgb(255,255,0)&quot;],[.875,&quot;rgb(250,0,0)&quot;],[1,&quot;rgb(128,0,0)&quot;]],Hot:[[0,&quot;rgb(0,0,0)&quot;],[.3,&quot;rgb(230,0,0)&quot;],[.6,&quot;rgb(255,210,0)&quot;],[1,&quot;rgb(255,255,255)&quot;]],Blackbody:[[0,&quot;rgb(0,0,0)&quot;],[.2,&quot;rgb(230,0,0)&quot;],[.4,&quot;rgb(230,210,0)&quot;],[.7,&quot;rgb(255,255,255)&quot;],[1,&quot;rgb(160,200,255)&quot;]],Earth:[[0,&quot;rgb(0,0,130)&quot;],[.1,&quot;rgb(0,180,180)&quot;],[.2,&quot;rgb(40,210,40)&quot;],[.4,&quot;rgb(230,230,50)&quot;],[.6,&quot;rgb(120,70,20)&quot;],[1,&quot;rgb(255,255,255)&quot;]],Electric:[[0,&quot;rgb(0,0,0)&quot;],[.15,&quot;rgb(30,0,100)&quot;],[.4,&quot;rgb(120,0,100)&quot;],[.6,&quot;rgb(160,90,0)&quot;],[.8,&quot;rgb(230,200,0)&quot;],[1,&quot;rgb(255,250,220)&quot;]],Viridis:[[0,&quot;#440154&quot;],[.06274509803921569,&quot;#48186a&quot;],[.12549019607843137,&quot;#472d7b&quot;],[.18823529411764706,&quot;#424086&quot;],[.25098039215686274,&quot;#3b528b&quot;],[.3137254901960784,&quot;#33638d&quot;],[.3764705882352941,&quot;#2c728e&quot;],[.4392156862745098,&quot;#26828e&quot;],[.5019607843137255,&quot;#21918c&quot;],[.5647058823529412,&quot;#1fa088&quot;],[.6274509803921569,&quot;#28ae80&quot;],[.6901960784313725,&quot;#3fbc73&quot;],[.7529411764705882,&quot;#5ec962&quot;],[.8156862745098039,&quot;#84d44b&quot;],[.8784313725490196,&quot;#addc30&quot;],[.9411764705882353,&quot;#d8e219&quot;],[1,&quot;#fde725&quot;]],Cividis:[[0,&quot;rgb(0,32,76)&quot;],[.058824,&quot;rgb(0,42,102)&quot;],[.117647,&quot;rgb(0,52,110)&quot;],[.176471,&quot;rgb(39,63,108)&quot;],[.235294,&quot;rgb(60,74,107)&quot;],[.294118,&quot;rgb(76,85,107)&quot;],[.352941,&quot;rgb(91,95,109)&quot;],[.411765,&quot;rgb(104,106,112)&quot;],[.470588,&quot;rgb(117,117,117)&quot;],[.529412,&quot;rgb(131,129,120)&quot;],[.588235,&quot;rgb(146,140,120)&quot;],[.647059,&quot;rgb(161,152,118)&quot;],[.705882,&quot;rgb(176,165,114)&quot;],[.764706,&quot;rgb(192,177,109)&quot;],[.823529,&quot;rgb(209,191,102)&quot;],[.882353,&quot;rgb(225,204,92)&quot;],[.941176,&quot;rgb(243,219,79)&quot;],[1,&quot;rgb(255,233,69)&quot;]]},a=i.RdBu;function o(t){var e=0;if(!Array.isArray(t)||t.length&lt;2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r&lt;t.length;r++){var i=t[r];if(2!==i.length||+i[0]&lt;e||!n(i[1]).isValid())return!1;e=+i[0]}return!0}e.exports={scales:i,defaultScale:a,get:function(t,e){if(e||(e=a),!t)return e;function r(){try{t=i[t]||JSON.parse(t)}catch(r){t=e}}return&quot;string&quot;==typeof t&amp;&amp;(r(),&quot;string&quot;==typeof t&amp;&amp;r()),o(t)?t:e},isValid:function(t){return void 0!==i[t]||o(t)}}},{tinycolor2:576}],659:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=(t-r)/(n-r),o=a+e/(n-r),s=(a+o)/2;return&quot;left&quot;===i||&quot;bottom&quot;===i?a:&quot;center&quot;===i||&quot;middle&quot;===i?s:&quot;right&quot;===i||&quot;top&quot;===i?o:a&lt;2/3-s?a:o&gt;4/3-s?o:s}},{}],660:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=[[&quot;sw-resize&quot;,&quot;s-resize&quot;,&quot;se-resize&quot;],[&quot;w-resize&quot;,&quot;move&quot;,&quot;e-resize&quot;],[&quot;nw-resize&quot;,&quot;n-resize&quot;,&quot;ne-resize&quot;]];e.exports=function(t,e,r,a){return t=&quot;left&quot;===r?0:&quot;center&quot;===r?1:&quot;right&quot;===r?2:n.constrain(Math.floor(3*t),0,2),e=&quot;bottom&quot;===a?0:&quot;middle&quot;===a?1:&quot;top&quot;===a?2:n.constrain(Math.floor(3*e),0,2),i[e][t]}},{&quot;../../lib&quot;:778}],661:[function(t,e,r){&quot;use strict&quot;;r.selectMode=function(t){return&quot;lasso&quot;===t||&quot;select&quot;===t},r.drawMode=function(t){return&quot;drawclosedpath&quot;===t||&quot;drawopenpath&quot;===t||&quot;drawline&quot;===t||&quot;drawrect&quot;===t||&quot;drawcircle&quot;===t},r.openMode=function(t){return&quot;drawline&quot;===t||&quot;drawopenpath&quot;===t},r.rectMode=function(t){return&quot;select&quot;===t||&quot;drawline&quot;===t||&quot;drawrect&quot;===t||&quot;drawcircle&quot;===t},r.freeMode=function(t){return&quot;lasso&quot;===t||&quot;drawclosedpath&quot;===t||&quot;drawopenpath&quot;===t},r.selectingOrDrawing=function(t){return r.freeMode(t)||r.rectMode(t)}},{}],662:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mouse-event-offset&quot;),i=t(&quot;has-hover&quot;),a=t(&quot;has-passive-events&quot;),o=t(&quot;../../lib&quot;).removeElement,s=t(&quot;../../plots/cartesian/constants&quot;),l=e.exports={};l.align=t(&quot;./align&quot;),l.getCursor=t(&quot;./cursor&quot;);var c=t(&quot;./unhover&quot;);function u(){var t=document.createElement(&quot;div&quot;);t.className=&quot;dragcover&quot;;var e=t.style;return e.position=&quot;fixed&quot;,e.left=0,e.right=0,e.top=0,e.bottom=0,e.zIndex=999999999,e.background=&quot;none&quot;,document.body.appendChild(t),t}function f(t){return n(t.changedTouches?t.changedTouches[0]:t,document.body)}l.unhover=c.wrapped,l.unhoverRaw=c.raw,l.init=function(t){var e,r,n,c,h,p,d,g,m=t.gd,v=1,y=m._context.doubleClickDelay,x=t.element;m._mouseDownTime||(m._mouseDownTime=0),x.style.pointerEvents=&quot;all&quot;,x.onmousedown=_,a?(x._ontouchstart&amp;&amp;x.removeEventListener(&quot;touchstart&quot;,x._ontouchstart),x._ontouchstart=_,x.addEventListener(&quot;touchstart&quot;,_,{passive:!1})):x.ontouchstart=_;var b=t.clampFn||function(t,e,r){return Math.abs(t)&lt;r&amp;&amp;(t=0),Math.abs(e)&lt;r&amp;&amp;(e=0),[t,e]};function _(a){m._dragged=!1,m._dragging=!0;var o=f(a);e=o[0],r=o[1],d=a.target,p=a,g=2===a.buttons||a.ctrlKey,&quot;undefined&quot;==typeof a.clientX&amp;&amp;&quot;undefined&quot;==typeof a.clientY&amp;&amp;(a.clientX=e,a.clientY=r),(n=(new Date).getTime())-m._mouseDownTime&lt;y?v+=1:(v=1,m._mouseDownTime=n),t.prepFn&amp;&amp;t.prepFn(a,e,r),i&amp;&amp;!g?(h=u()).style.cursor=window.getComputedStyle(x).cursor:i||(h=document,c=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(x).cursor),document.addEventListener(&quot;mouseup&quot;,T),document.addEventListener(&quot;touchend&quot;,T),!1!==t.dragmode&amp;&amp;(a.preventDefault(),document.addEventListener(&quot;mousemove&quot;,w),document.addEventListener(&quot;touchmove&quot;,w,{passive:!1}))}function w(n){n.preventDefault();var i=f(n),a=t.minDrag||s.MINDRAG,o=b(i[0]-e,i[1]-r,a),c=o[0],u=o[1];(c||u)&amp;&amp;(m._dragged=!0,l.unhover(m)),m._dragged&amp;&amp;t.moveFn&amp;&amp;!g&amp;&amp;(m._dragdata={element:x,dx:c,dy:u},t.moveFn(c,u))}function T(e){if(delete m._dragdata,!1!==t.dragmode&amp;&amp;(e.preventDefault(),document.removeEventListener(&quot;mousemove&quot;,w),document.removeEventListener(&quot;touchmove&quot;,w)),document.removeEventListener(&quot;mouseup&quot;,T),document.removeEventListener(&quot;touchend&quot;,T),i?o(h):c&amp;&amp;(h.documentElement.style.cursor=c,c=null),m._dragging){if(m._dragging=!1,(new Date).getTime()-m._mouseDownTime&gt;y&amp;&amp;(v=Math.max(v-1,1)),m._dragged)t.doneFn&amp;&amp;t.doneFn();else if(t.clickFn&amp;&amp;t.clickFn(v,p),!g){var r;try{r=new MouseEvent(&quot;click&quot;,e)}catch(t){var n=f(e);(r=document.createEvent(&quot;MouseEvents&quot;)).initMouseEvent(&quot;click&quot;,e.bubbles,e.cancelable,e.view,e.detail,e.screenX,e.screenY,n[0],n[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget)}d.dispatchEvent(r)}m._dragging=!1,m._dragged=!1}else m._dragged=!1}},l.coverSlip=u},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/constants&quot;:834,&quot;./align&quot;:659,&quot;./cursor&quot;:660,&quot;./unhover&quot;:663,&quot;has-hover&quot;:440,&quot;has-passive-events&quot;:441,&quot;mouse-event-offset&quot;:484}],663:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/events&quot;),i=t(&quot;../../lib/throttle&quot;),a=t(&quot;../../lib/dom&quot;).getGraphDiv,o=t(&quot;../fx/constants&quot;),s=e.exports={};s.wrapped=function(t,e,r){(t=a(t))._fullLayout&amp;&amp;i.clear(t._fullLayout._uid+o.HOVERID),s.raw(t,e,r)},s.raw=function(t,e){var r=t._fullLayout,i=t._hoverdata;e||(e={}),e.target&amp;&amp;!1===n.triggerHandler(t,&quot;plotly_beforehover&quot;,e)||(r._hoverlayer.selectAll(&quot;g&quot;).remove(),r._hoverlayer.selectAll(&quot;line&quot;).remove(),r._hoverlayer.selectAll(&quot;circle&quot;).remove(),t._hoverdata=void 0,e.target&amp;&amp;i&amp;&amp;t.emit(&quot;plotly_unhover&quot;,{event:e,points:i}))}},{&quot;../../lib/dom&quot;:766,&quot;../../lib/events&quot;:767,&quot;../../lib/throttle&quot;:804,&quot;../fx/constants&quot;:677}],664:[function(t,e,r){&quot;use strict&quot;;r.dash={valType:&quot;string&quot;,values:[&quot;solid&quot;,&quot;dot&quot;,&quot;dash&quot;,&quot;longdash&quot;,&quot;dashdot&quot;,&quot;longdashdot&quot;],dflt:&quot;solid&quot;,editType:&quot;style&quot;}},{}],665:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../color&quot;),l=t(&quot;../colorscale&quot;),c=t(&quot;../../lib&quot;),u=c.strTranslate,f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../constants/xmlns_namespaces&quot;),p=t(&quot;../../constants/alignment&quot;).LINE_SPACING,d=t(&quot;../../constants/interactions&quot;).DESELECTDIM,g=t(&quot;../../traces/scatter/subtypes&quot;),m=t(&quot;../../traces/scatter/make_bubble_size_func&quot;),v=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,y=e.exports={};y.font=function(t,e,r,n){c.isPlainObject(e)&amp;&amp;(n=e.color,r=e.size,e=e.family),e&amp;&amp;t.style(&quot;font-family&quot;,e),r+1&amp;&amp;t.style(&quot;font-size&quot;,r+&quot;px&quot;),n&amp;&amp;t.call(s.fill,n)},y.setPosition=function(t,e,r){t.attr(&quot;x&quot;,e).attr(&quot;y&quot;,r)},y.setSize=function(t,e,r){t.attr(&quot;width&quot;,e).attr(&quot;height&quot;,r)},y.setRect=function(t,e,r,n,i){t.call(y.setPosition,e,r).call(y.setSize,n,i)},y.translatePoint=function(t,e,r,n){var a=r.c2p(t.x),o=n.c2p(t.y);return!!(i(a)&amp;&amp;i(o)&amp;&amp;e.node())&amp;&amp;(&quot;text&quot;===e.node().nodeName?e.attr(&quot;x&quot;,a).attr(&quot;y&quot;,o):e.attr(&quot;transform&quot;,u(a,o)),!0)},y.translatePoints=function(t,e,r){t.each((function(t){var i=n.select(this);y.translatePoint(t,i,e,r)}))},y.hideOutsideRangePoint=function(t,e,r,n,i,a){e.attr(&quot;display&quot;,r.isPtWithinRange(t,i)&amp;&amp;n.isPtWithinRange(t,a)?null:&quot;none&quot;)},y.hideOutsideRangePoints=function(t,e){if(e._hasClipOnAxisFalse){var r=e.xaxis,i=e.yaxis;t.each((function(e){var a=e[0].trace,s=a.xcalendar,l=a.ycalendar,c=o.traceIs(a,&quot;bar-like&quot;)?&quot;.bartext&quot;:&quot;.point,.textpoint&quot;;t.selectAll(c).each((function(t){y.hideOutsideRangePoint(t,n.select(this),r,i,s,l)}))}))}},y.crispRound=function(t,e,r){return e&amp;&amp;i(e)?t._context.staticPlot?e:e&lt;1?1:Math.round(e):r||0},y.singleLineStyle=function(t,e,r,n,i){e.style(&quot;fill&quot;,&quot;none&quot;);var a=(((t||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,l=i||a.dash||&quot;&quot;;s.stroke(e,n||a.color),y.dashLine(e,l,o)},y.lineGroupStyle=function(t,e,r,i){t.style(&quot;fill&quot;,&quot;none&quot;).each((function(t){var a=(((t||[])[0]||{}).trace||{}).line||{},o=e||a.width||0,l=i||a.dash||&quot;&quot;;n.select(this).call(s.stroke,r||a.color).call(y.dashLine,l,o)}))},y.dashLine=function(t,e,r){r=+r||0,e=y.dashStyle(e,r),t.style({&quot;stroke-dasharray&quot;:e,&quot;stroke-width&quot;:r+&quot;px&quot;})},y.dashStyle=function(t,e){e=+e||1;var r=Math.max(e,3);return&quot;solid&quot;===t?t=&quot;&quot;:&quot;dot&quot;===t?t=r+&quot;px,&quot;+r+&quot;px&quot;:&quot;dash&quot;===t?t=3*r+&quot;px,&quot;+3*r+&quot;px&quot;:&quot;longdash&quot;===t?t=5*r+&quot;px,&quot;+5*r+&quot;px&quot;:&quot;dashdot&quot;===t?t=3*r+&quot;px,&quot;+r+&quot;px,&quot;+r+&quot;px,&quot;+r+&quot;px&quot;:&quot;longdashdot&quot;===t&amp;&amp;(t=5*r+&quot;px,&quot;+2*r+&quot;px,&quot;+r+&quot;px,&quot;+2*r+&quot;px&quot;),t},y.singleFillStyle=function(t){var e=(((n.select(t.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;e&amp;&amp;t.call(s.fill,e)},y.fillGroupStyle=function(t){t.style(&quot;stroke-width&quot;,0).each((function(t){var e=n.select(this);t[0].trace&amp;&amp;e.call(s.fill,t[0].trace.fillcolor)}))};var x=t(&quot;./symbol_defs&quot;);y.symbolNames=[],y.symbolFuncs=[],y.symbolNeedLines={},y.symbolNoDot={},y.symbolNoFill={},y.symbolList=[],Object.keys(x).forEach((function(t){var e=x[t],r=e.n;y.symbolList.push(r,String(r),t,r+100,String(r+100),t+&quot;-open&quot;),y.symbolNames[r]=t,y.symbolFuncs[r]=e.f,e.needLine&amp;&amp;(y.symbolNeedLines[r]=!0),e.noDot?y.symbolNoDot[r]=!0:y.symbolList.push(r+200,String(r+200),t+&quot;-dot&quot;,r+300,String(r+300),t+&quot;-open-dot&quot;),e.noFill&amp;&amp;(y.symbolNoFill[r]=!0)}));var b=y.symbolNames.length;function _(t,e){var r=t%100;return y.symbolFuncs[r](e)+(t&gt;=200?&quot;M0,0.5L0.5,0L0,-0.5L-0.5,0Z&quot;:&quot;&quot;)}y.symbolNumber=function(t){if(i(t))t=+t;else if(&quot;string&quot;==typeof t){var e=0;t.indexOf(&quot;-open&quot;)&gt;0&amp;&amp;(e=100,t=t.replace(&quot;-open&quot;,&quot;&quot;)),t.indexOf(&quot;-dot&quot;)&gt;0&amp;&amp;(e+=200,t=t.replace(&quot;-dot&quot;,&quot;&quot;)),(t=y.symbolNames.indexOf(t))&gt;=0&amp;&amp;(t+=e)}return t%100&gt;=b||t&gt;=400?0:Math.floor(Math.max(t,0))};var w={x1:1,x2:0,y1:0,y2:0},T={x1:0,x2:0,y1:1,y2:0},k=n.format(&quot;~.1f&quot;),M={radial:{node:&quot;radialGradient&quot;},radialreversed:{node:&quot;radialGradient&quot;,reversed:!0},horizontal:{node:&quot;linearGradient&quot;,attrs:w},horizontalreversed:{node:&quot;linearGradient&quot;,attrs:w,reversed:!0},vertical:{node:&quot;linearGradient&quot;,attrs:T},verticalreversed:{node:&quot;linearGradient&quot;,attrs:T,reversed:!0}};y.gradient=function(t,e,r,i,o,l){for(var u=o.length,f=M[i],h=new Array(u),p=0;p&lt;u;p++)f.reversed?h[u-1-p]=[k(100*(1-o[p][0])),o[p][1]]:h[p]=[k(100*o[p][0]),o[p][1]];var d=e._fullLayout,g=&quot;g&quot;+d._uid+&quot;-&quot;+r,m=d._defs.select(&quot;.gradients&quot;).selectAll(&quot;#&quot;+g).data([i+h.join(&quot;;&quot;)],c.identity);m.exit().remove(),m.enter().append(f.node).each((function(){var t=n.select(this);f.attrs&amp;&amp;t.attr(f.attrs),t.attr(&quot;id&quot;,g);var e=t.selectAll(&quot;stop&quot;).data(h);e.exit().remove(),e.enter().append(&quot;stop&quot;),e.each((function(t){var e=a(t[1]);n.select(this).attr({offset:t[0]+&quot;%&quot;,&quot;stop-color&quot;:s.tinyRGB(e),&quot;stop-opacity&quot;:e.getAlpha()})}))})),t.style(l,O(g,e)).style(l+&quot;-opacity&quot;,null);var v=function(t){return&quot;.&quot;+t.attr(&quot;class&quot;).replace(/\s/g,&quot;.&quot;)},y=v(n.select(t.node().parentNode))+&quot;&gt;&quot;+v(t);d._gradientUrlQueryParts[y]=1},y.initGradients=function(t){var e=t._fullLayout;c.ensureSingle(e._defs,&quot;g&quot;,&quot;gradients&quot;).selectAll(&quot;linearGradient,radialGradient&quot;).remove(),e._gradientUrlQueryParts={}},y.pointStyle=function(t,e,r){if(t.size()){var i=y.makePointStyleFns(e);t.each((function(t){y.singlePointStyle(t,n.select(this),e,i,r)}))}},y.singlePointStyle=function(t,e,r,n,i){var a=r.marker,o=a.line;if(e.style(&quot;opacity&quot;,n.selectedOpacityFn?n.selectedOpacityFn(t):void 0===t.mo?a.opacity:t.mo),n.ms2mrc){var l;l=&quot;various&quot;===t.ms||&quot;various&quot;===a.size?3:n.ms2mrc(t.ms),t.mrc=l,n.selectedSizeFn&amp;&amp;(l=t.mrc=n.selectedSizeFn(t));var u=y.symbolNumber(t.mx||a.symbol)||0;t.om=u%200&gt;=100,e.attr(&quot;d&quot;,_(u,l))}var f,h,p,d=!1;if(t.so)p=o.outlierwidth,h=o.outliercolor,f=a.outliercolor;else{var g=(o||{}).width;p=(t.mlw+1||g+1||(t.trace?(t.trace.marker.line||{}).width:0)+1)-1||0,h=&quot;mlc&quot;in t?t.mlcc=n.lineScale(t.mlc):c.isArrayOrTypedArray(o.color)?s.defaultLine:o.color,c.isArrayOrTypedArray(a.color)&amp;&amp;(f=s.defaultLine,d=!0),f=&quot;mc&quot;in t?t.mcc=n.markerScale(t.mc):a.color||&quot;rgba(0,0,0,0)&quot;,n.selectedColorFn&amp;&amp;(f=n.selectedColorFn(t))}if(t.om)e.call(s.stroke,f).style({&quot;stroke-width&quot;:(p||1)+&quot;px&quot;,fill:&quot;none&quot;});else{e.style(&quot;stroke-width&quot;,(t.isBlank?0:p)+&quot;px&quot;);var m=a.gradient,v=t.mgt;if(v?d=!0:v=m&amp;&amp;m.type,Array.isArray(v)&amp;&amp;(v=v[0],M[v]||(v=0)),v&amp;&amp;&quot;none&quot;!==v){var x=t.mgc;x?d=!0:x=m.color;var b=r.uid;d&amp;&amp;(b+=&quot;-&quot;+t.i),y.gradient(e,i,b,v,[[0,x],[1,f]],&quot;fill&quot;)}else s.fill(e,f);p&amp;&amp;s.stroke(e,h)}},y.makePointStyleFns=function(t){var e={},r=t.marker;return e.markerScale=y.tryColorscale(r,&quot;&quot;),e.lineScale=y.tryColorscale(r,&quot;line&quot;),o.traceIs(t,&quot;symbols&quot;)&amp;&amp;(e.ms2mrc=g.isBubble(t)?m(t):function(){return(r.size||6)/2}),t.selectedpoints&amp;&amp;c.extendFlat(e,y.makeSelectedPointStyleFns(t)),e},y.makeSelectedPointStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.marker||{},a=r.marker||{},s=n.marker||{},l=i.opacity,u=a.opacity,f=s.opacity,h=void 0!==u,p=void 0!==f;(c.isArrayOrTypedArray(l)||h||p)&amp;&amp;(e.selectedOpacityFn=function(t){var e=void 0===t.mo?i.opacity:t.mo;return t.selected?h?u:e:p?f:d*e});var g=i.color,m=a.color,v=s.color;(m||v)&amp;&amp;(e.selectedColorFn=function(t){var e=t.mcc||g;return t.selected?m||e:v||e});var y=i.size,x=a.size,b=s.size,_=void 0!==x,w=void 0!==b;return o.traceIs(t,&quot;symbols&quot;)&amp;&amp;(_||w)&amp;&amp;(e.selectedSizeFn=function(t){var e=t.mrc||y/2;return t.selected?_?x/2:e:w?b/2:e}),e},y.makeSelectedTextStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.textfont||{},a=r.textfont||{},o=n.textfont||{},l=i.color,c=a.color,u=o.color;return e.selectedTextColorFn=function(t){var e=t.tc||l;return t.selected?c||e:u||(c?e:s.addOpacity(e,d))},e},y.selectedPointStyle=function(t,e){if(t.size()&amp;&amp;e.selectedpoints){var r=y.makeSelectedPointStyleFns(e),i=e.marker||{},a=[];r.selectedOpacityFn&amp;&amp;a.push((function(t,e){t.style(&quot;opacity&quot;,r.selectedOpacityFn(e))})),r.selectedColorFn&amp;&amp;a.push((function(t,e){s.fill(t,r.selectedColorFn(e))})),r.selectedSizeFn&amp;&amp;a.push((function(t,e){var n=e.mx||i.symbol||0,a=r.selectedSizeFn(e);t.attr(&quot;d&quot;,_(y.symbolNumber(n),a)),e.mrc2=a})),a.length&amp;&amp;t.each((function(t){for(var e=n.select(this),r=0;r&lt;a.length;r++)a[r](e,t)}))}},y.tryColorscale=function(t,e){var r=e?c.nestedProperty(t,e).get():t;if(r){var n=r.color;if((r.colorscale||r._colorAx)&amp;&amp;c.isArrayOrTypedArray(n))return l.makeColorScaleFuncFromTrace(r)}return c.identity};var A={start:1,end:-1,middle:0,bottom:1,top:-1};function S(t,e,r,i){var a=n.select(t.node().parentNode),o=-1!==e.indexOf(&quot;top&quot;)?&quot;top&quot;:-1!==e.indexOf(&quot;bottom&quot;)?&quot;bottom&quot;:&quot;middle&quot;,s=-1!==e.indexOf(&quot;left&quot;)?&quot;end&quot;:-1!==e.indexOf(&quot;right&quot;)?&quot;start&quot;:&quot;middle&quot;,l=i?i/.8+1:0,c=(f.lineCount(t)-1)*p+1,h=A[s]*l,d=.75*r+A[o]*l+(A[o]-1)*c*r/2;t.attr(&quot;text-anchor&quot;,s),a.attr(&quot;transform&quot;,u(h,d))}function E(t,e){var r=t.ts||e.textfont.size;return i(r)&amp;&amp;r&gt;0?r:0}y.textPointStyle=function(t,e,r){if(t.size()){var i;if(e.selectedpoints){var a=y.makeSelectedTextStyleFns(e);i=a.selectedTextColorFn}var o=e.texttemplate,s=r._fullLayout;t.each((function(t){var a=n.select(this),l=o?c.extractOption(t,e,&quot;txt&quot;,&quot;texttemplate&quot;):c.extractOption(t,e,&quot;tx&quot;,&quot;text&quot;);if(l||0===l){if(o){var u=e._module.formatLabels?e._module.formatLabels(t,e,s):{},h={};v(h,e,t.i);var p=e._meta||{};l=c.texttemplateString(l,u,s._d3locale,h,t,p)}var d=t.tp||e.textposition,g=E(t,e),m=i?i(t):t.tc||e.textfont.color;a.call(y.font,t.tf||e.textfont.family,g,m).text(l).call(f.convertToTspans,r).call(S,d,g,t.mrc)}else a.remove()}))}},y.selectedTextStyle=function(t,e){if(t.size()&amp;&amp;e.selectedpoints){var r=y.makeSelectedTextStyleFns(e);t.each((function(t){var i=n.select(this),a=r.selectedTextColorFn(t),o=t.tp||e.textposition,l=E(t,e);s.fill(i,a),S(i,o,l,t.mrc2||t.mrc)}))}};function C(t,e,r,i){var a=t[0]-e[0],o=t[1]-e[1],s=r[0]-e[0],l=r[1]-e[1],c=Math.pow(a*a+o*o,.25),u=Math.pow(s*s+l*l,.25),f=(u*u*a-c*c*s)*i,h=(u*u*o-c*c*l)*i,p=3*u*(c+u),d=3*c*(c+u);return[[n.round(e[0]+(p&amp;&amp;f/p),2),n.round(e[1]+(p&amp;&amp;h/p),2)],[n.round(e[0]-(d&amp;&amp;f/d),2),n.round(e[1]-(d&amp;&amp;h/d),2)]]}y.smoothopen=function(t,e){if(t.length&lt;3)return&quot;M&quot;+t.join(&quot;L&quot;);var r,n=&quot;M&quot;+t[0],i=[];for(r=1;r&lt;t.length-1;r++)i.push(C(t[r-1],t[r],t[r+1],e));for(n+=&quot;Q&quot;+i[0][0]+&quot; &quot;+t[1],r=2;r&lt;t.length-1;r++)n+=&quot;C&quot;+i[r-2][1]+&quot; &quot;+i[r-1][0]+&quot; &quot;+t[r];return n+=&quot;Q&quot;+i[t.length-3][1]+&quot; &quot;+t[t.length-1]},y.smoothclosed=function(t,e){if(t.length&lt;3)return&quot;M&quot;+t.join(&quot;L&quot;)+&quot;Z&quot;;var r,n=&quot;M&quot;+t[0],i=t.length-1,a=[C(t[i],t[0],t[1],e)];for(r=1;r&lt;i;r++)a.push(C(t[r-1],t[r],t[r+1],e));for(a.push(C(t[i-1],t[i],t[0],e)),r=1;r&lt;=i;r++)n+=&quot;C&quot;+a[r-1][1]+&quot; &quot;+a[r][0]+&quot; &quot;+t[r];return n+=&quot;C&quot;+a[i][1]+&quot; &quot;+a[0][0]+&quot; &quot;+t[0]+&quot;Z&quot;};var L={hv:function(t,e){return&quot;H&quot;+n.round(e[0],2)+&quot;V&quot;+n.round(e[1],2)},vh:function(t,e){return&quot;V&quot;+n.round(e[1],2)+&quot;H&quot;+n.round(e[0],2)},hvh:function(t,e){return&quot;H&quot;+n.round((t[0]+e[0])/2,2)+&quot;V&quot;+n.round(e[1],2)+&quot;H&quot;+n.round(e[0],2)},vhv:function(t,e){return&quot;V&quot;+n.round((t[1]+e[1])/2,2)+&quot;H&quot;+n.round(e[0],2)+&quot;V&quot;+n.round(e[1],2)}},I=function(t,e){return&quot;L&quot;+n.round(e[0],2)+&quot;,&quot;+n.round(e[1],2)};y.steps=function(t){var e=L[t]||I;return function(t){for(var r=&quot;M&quot;+n.round(t[0][0],2)+&quot;,&quot;+n.round(t[0][1],2),i=1;i&lt;t.length;i++)r+=e(t[i-1],t[i]);return r}},y.makeTester=function(){var t=c.ensureSingleById(n.select(&quot;body&quot;),&quot;svg&quot;,&quot;js-plotly-tester&quot;,(function(t){t.attr(h.svgAttrs).style({position:&quot;absolute&quot;,left:&quot;-10000px&quot;,top:&quot;-10000px&quot;,width:&quot;9000px&quot;,height:&quot;9000px&quot;,&quot;z-index&quot;:&quot;1&quot;})})),e=c.ensureSingle(t,&quot;path&quot;,&quot;js-reference-point&quot;,(function(t){t.attr(&quot;d&quot;,&quot;M0,0H1V1H0Z&quot;).style({&quot;stroke-width&quot;:0,fill:&quot;black&quot;})}));y.tester=t,y.testref=e},y.savedBBoxes={};var P=0;function z(t){var e=t.getAttribute(&quot;data-unformatted&quot;);if(null!==e)return e+t.getAttribute(&quot;data-math&quot;)+t.getAttribute(&quot;text-anchor&quot;)+t.getAttribute(&quot;style&quot;)}function O(t,e){if(!t)return null;var r=e._context;return&quot;url('&quot;+(r._exportedPlot?&quot;&quot;:r._baseUrl||&quot;&quot;)+&quot;#&quot;+t+&quot;')&quot;}y.bBox=function(t,e,r){var i,a,o;if(r||(r=z(t)),r){if(i=y.savedBBoxes[r])return c.extendFlat({},i)}else if(1===t.childNodes.length){var s=t.childNodes[0];if(r=z(s)){var l=+s.getAttribute(&quot;x&quot;)||0,u=+s.getAttribute(&quot;y&quot;)||0,h=s.getAttribute(&quot;transform&quot;);if(!h){var p=y.bBox(s,!1,r);return l&amp;&amp;(p.left+=l,p.right+=l),u&amp;&amp;(p.top+=u,p.bottom+=u),p}if(r+=&quot;~&quot;+l+&quot;~&quot;+u+&quot;~&quot;+h,i=y.savedBBoxes[r])return c.extendFlat({},i)}}e?a=t:(o=y.tester.node(),a=t.cloneNode(!0),o.appendChild(a)),n.select(a).attr(&quot;transform&quot;,null).call(f.positionText,0,0);var d=a.getBoundingClientRect(),g=y.testref.node().getBoundingClientRect();e||o.removeChild(a);var m={height:d.height,width:d.width,left:d.left-g.left,top:d.top-g.top,right:d.right-g.left,bottom:d.bottom-g.top};return P&gt;=1e4&amp;&amp;(y.savedBBoxes={},P=0),r&amp;&amp;(y.savedBBoxes[r]=m),P++,c.extendFlat({},m)},y.setClipUrl=function(t,e,r){t.attr(&quot;clip-path&quot;,O(e,r))},y.getTranslate=function(t){var e=(t[t.attr?&quot;attr&quot;:&quot;getAttribute&quot;](&quot;transform&quot;)||&quot;&quot;).replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(&quot; &quot;)})).split(&quot; &quot;);return{x:+e[0]||0,y:+e[1]||0}},y.setTranslate=function(t,e,r){var n=t.attr?&quot;attr&quot;:&quot;getAttribute&quot;,i=t.attr?&quot;attr&quot;:&quot;setAttribute&quot;,a=t[n](&quot;transform&quot;)||&quot;&quot;;return e=e||0,r=r||0,a=a.replace(/(\btranslate\(.*?\);?)/,&quot;&quot;).trim(),a=(a+=u(e,r)).trim(),t[i](&quot;transform&quot;,a),a},y.getScale=function(t){var e=(t[t.attr?&quot;attr&quot;:&quot;getAttribute&quot;](&quot;transform&quot;)||&quot;&quot;).replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(&quot; &quot;)})).split(&quot; &quot;);return{x:+e[0]||1,y:+e[1]||1}},y.setScale=function(t,e,r){var n=t.attr?&quot;attr&quot;:&quot;getAttribute&quot;,i=t.attr?&quot;attr&quot;:&quot;setAttribute&quot;,a=t[n](&quot;transform&quot;)||&quot;&quot;;return e=e||1,r=r||1,a=a.replace(/(\bscale\(.*?\);?)/,&quot;&quot;).trim(),a=(a+=&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;).trim(),t[i](&quot;transform&quot;,a),a};var D=/\s*sc.*/;y.setPointGroupScale=function(t,e,r){if(e=e||1,r=r||1,t){var n=1===e&amp;&amp;1===r?&quot;&quot;:&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;;t.each((function(){var t=(this.getAttribute(&quot;transform&quot;)||&quot;&quot;).replace(D,&quot;&quot;);t=(t+=n).trim(),this.setAttribute(&quot;transform&quot;,t)}))}};var R=/translate\([^)]*\)\s*$/;y.setTextPointsScale=function(t,e,r){t&amp;&amp;t.each((function(){var t,i=n.select(this),a=i.select(&quot;text&quot;);if(a.node()){var o=parseFloat(a.attr(&quot;x&quot;)||0),s=parseFloat(a.attr(&quot;y&quot;)||0),l=(i.attr(&quot;transform&quot;)||&quot;&quot;).match(R);t=1===e&amp;&amp;1===r?[]:[u(o,s),&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;,u(-o,-s)],l&amp;&amp;t.push(l),i.attr(&quot;transform&quot;,t.join(&quot;&quot;))}}))}},{&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/alignment&quot;:745,&quot;../../constants/interactions&quot;:752,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../registry&quot;:911,&quot;../../traces/scatter/make_bubble_size_func&quot;:1204,&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../color&quot;:643,&quot;../colorscale&quot;:655,&quot;./symbol_defs&quot;:666,d3:169,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],666:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports={circle:{n:0,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;}},square:{n:1,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;}},diamond:{n:2,f:function(t){var e=n.round(1.3*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;Z&quot;}},cross:{n:3,f:function(t){var e=n.round(.4*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+r+&quot;,&quot;+e+&quot;H&quot;+e+&quot;V&quot;+r+&quot;H-&quot;+e+&quot;V&quot;+e+&quot;H-&quot;+r+&quot;V-&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+r+&quot;H&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+r+&quot;Z&quot;}},x:{n:4,f:function(t){var e=n.round(.8*t/Math.sqrt(2),2),r=&quot;l&quot;+e+&quot;,&quot;+e,i=&quot;l&quot;+e+&quot;,-&quot;+e,a=&quot;l-&quot;+e+&quot;,-&quot;+e,o=&quot;l-&quot;+e+&quot;,&quot;+e;return&quot;M0,&quot;+e+r+i+a+i+a+o+a+o+r+o+r+&quot;Z&quot;}},&quot;triangle-up&quot;:{n:5,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+e+&quot;,&quot;+n.round(t/2,2)+&quot;H&quot;+e+&quot;L0,-&quot;+n.round(t,2)+&quot;Z&quot;}},&quot;triangle-down&quot;:{n:6,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+e+&quot;,-&quot;+n.round(t/2,2)+&quot;H&quot;+e+&quot;L0,&quot;+n.round(t,2)+&quot;Z&quot;}},&quot;triangle-left&quot;:{n:7,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M&quot;+n.round(t/2,2)+&quot;,-&quot;+e+&quot;V&quot;+e+&quot;L-&quot;+n.round(t,2)+&quot;,0Z&quot;}},&quot;triangle-right&quot;:{n:8,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+n.round(t/2,2)+&quot;,-&quot;+e+&quot;V&quot;+e+&quot;L&quot;+n.round(t,2)+&quot;,0Z&quot;}},&quot;triangle-ne&quot;:{n:9,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M-&quot;+r+&quot;,-&quot;+e+&quot;H&quot;+e+&quot;V&quot;+r+&quot;Z&quot;}},&quot;triangle-se&quot;:{n:10,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+e+&quot;H-&quot;+r+&quot;Z&quot;}},&quot;triangle-sw&quot;:{n:11,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+r+&quot;Z&quot;}},&quot;triangle-nw&quot;:{n:12,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M-&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+e+&quot;H&quot;+r+&quot;Z&quot;}},pentagon:{n:13,f:function(t){var e=n.round(.951*t,2),r=n.round(.588*t,2),i=n.round(-t,2),a=n.round(-.309*t,2);return&quot;M&quot;+e+&quot;,&quot;+a+&quot;L&quot;+r+&quot;,&quot;+n.round(.809*t,2)+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,&quot;+a+&quot;L0,&quot;+i+&quot;Z&quot;}},hexagon:{n:14,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return&quot;M&quot;+i+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;L0,&quot;+e+&quot;L-&quot;+i+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;L0,-&quot;+e+&quot;Z&quot;}},hexagon2:{n:15,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return&quot;M-&quot;+r+&quot;,&quot;+i+&quot;H&quot;+r+&quot;L&quot;+e+&quot;,0L&quot;+r+&quot;,-&quot;+i+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},octagon:{n:16,f:function(t){var e=n.round(.924*t,2),r=n.round(.383*t,2);return&quot;M-&quot;+r+&quot;,-&quot;+e+&quot;H&quot;+r+&quot;L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;L&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;Z&quot;}},star:{n:17,f:function(t){var e=1.4*t,r=n.round(.225*e,2),i=n.round(.951*e,2),a=n.round(.363*e,2),o=n.round(.588*e,2),s=n.round(-e,2),l=n.round(-.309*e,2),c=n.round(.118*e,2),u=n.round(.809*e,2);return&quot;M&quot;+r+&quot;,&quot;+l+&quot;H&quot;+i+&quot;L&quot;+a+&quot;,&quot;+c+&quot;L&quot;+o+&quot;,&quot;+u+&quot;L0,&quot;+n.round(.382*e,2)+&quot;L-&quot;+o+&quot;,&quot;+u+&quot;L-&quot;+a+&quot;,&quot;+c+&quot;L-&quot;+i+&quot;,&quot;+l+&quot;H-&quot;+r+&quot;L0,&quot;+s+&quot;Z&quot;}},hexagram:{n:18,f:function(t){var e=n.round(.66*t,2),r=n.round(.38*t,2),i=n.round(.76*t,2);return&quot;M-&quot;+i+&quot;,0l-&quot;+r+&quot;,-&quot;+e+&quot;h&quot;+i+&quot;l&quot;+r+&quot;,-&quot;+e+&quot;l&quot;+r+&quot;,&quot;+e+&quot;h&quot;+i+&quot;l-&quot;+r+&quot;,&quot;+e+&quot;l&quot;+r+&quot;,&quot;+e+&quot;h-&quot;+i+&quot;l-&quot;+r+&quot;,&quot;+e+&quot;l-&quot;+r+&quot;,-&quot;+e+&quot;h-&quot;+i+&quot;Z&quot;}},&quot;star-triangle-up&quot;:{n:19,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=&quot;A &quot;+a+&quot;,&quot;+a+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,&quot;+r+o+e+&quot;,&quot;+r+o+&quot;0,-&quot;+i+o+&quot;-&quot;+e+&quot;,&quot;+r+&quot;Z&quot;}},&quot;star-triangle-down&quot;:{n:20,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=&quot;A &quot;+a+&quot;,&quot;+a+&quot; 0 0 1 &quot;;return&quot;M&quot;+e+&quot;,-&quot;+r+o+&quot;-&quot;+e+&quot;,-&quot;+r+o+&quot;0,&quot;+i+o+e+&quot;,-&quot;+r+&quot;Z&quot;}},&quot;star-square&quot;:{n:21,f:function(t){var e=n.round(1.1*t,2),r=n.round(2*t,2),i=&quot;A &quot;+r+&quot;,&quot;+r+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,-&quot;+e+i+&quot;-&quot;+e+&quot;,&quot;+e+i+e+&quot;,&quot;+e+i+e+&quot;,-&quot;+e+i+&quot;-&quot;+e+&quot;,-&quot;+e+&quot;Z&quot;}},&quot;star-diamond&quot;:{n:22,f:function(t){var e=n.round(1.4*t,2),r=n.round(1.9*t,2),i=&quot;A &quot;+r+&quot;,&quot;+r+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,0&quot;+i+&quot;0,&quot;+e+i+e+&quot;,0&quot;+i+&quot;0,-&quot;+e+i+&quot;-&quot;+e+&quot;,0Z&quot;}},&quot;diamond-tall&quot;:{n:23,f:function(t){var e=n.round(.7*t,2),r=n.round(1.4*t,2);return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,0L0,-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},&quot;diamond-wide&quot;:{n:24,f:function(t){var e=n.round(1.4*t,2),r=n.round(.7*t,2);return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,0L0,-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},hourglass:{n:25,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;L&quot;+e+&quot;,-&quot;+e+&quot;H-&quot;+e+&quot;Z&quot;},noDot:!0},bowtie:{n:26,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;V-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e+&quot;V-&quot;+e+&quot;Z&quot;},noDot:!0},&quot;circle-cross&quot;:{n:27,f:function(t){var e=n.round(t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;},needLine:!0,noDot:!0},&quot;circle-x&quot;:{n:28,f:function(t){var e=n.round(t,2),r=n.round(t/Math.sqrt(2),2);return&quot;M&quot;+r+&quot;,&quot;+r+&quot;L-&quot;+r+&quot;,-&quot;+r+&quot;M&quot;+r+&quot;,-&quot;+r+&quot;L-&quot;+r+&quot;,&quot;+r+&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;},needLine:!0,noDot:!0},&quot;square-cross&quot;:{n:29,f:function(t){var e=n.round(t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;square-x&quot;:{n:30,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e+&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e+&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;diamond-cross&quot;:{n:31,f:function(t){var e=n.round(1.3*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;ZM0,-&quot;+e+&quot;V&quot;+e+&quot;M-&quot;+e+&quot;,0H&quot;+e},needLine:!0,noDot:!0},&quot;diamond-x&quot;:{n:32,f:function(t){var e=n.round(1.3*t,2),r=n.round(.65*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;ZM-&quot;+r+&quot;,-&quot;+r+&quot;L&quot;+r+&quot;,&quot;+r+&quot;M-&quot;+r+&quot;,&quot;+r+&quot;L&quot;+r+&quot;,-&quot;+r},needLine:!0,noDot:!0},&quot;cross-thin&quot;:{n:33,f:function(t){var e=n.round(1.4*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;x-thin&quot;:{n:34,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e+&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(t){var e=n.round(1.2*t,2),r=n.round(.85*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+r+&quot;,&quot;+r+&quot;L-&quot;+r+&quot;,-&quot;+r+&quot;M&quot;+r+&quot;,-&quot;+r+&quot;L-&quot;+r+&quot;,&quot;+r},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(t){var e=n.round(t/2,2),r=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;m-&quot;+r+&quot;,0V&quot;+r+&quot;M&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+r+&quot;m0,-&quot;+r+&quot;H&quot;+r},needLine:!0,noFill:!0},&quot;y-up&quot;:{n:37,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+e+&quot;,&quot;+i+&quot;L0,0M&quot;+e+&quot;,&quot;+i+&quot;L0,0M0,-&quot;+r+&quot;L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-down&quot;:{n:38,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+e+&quot;,-&quot;+i+&quot;L0,0M&quot;+e+&quot;,-&quot;+i+&quot;L0,0M0,&quot;+r+&quot;L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-left&quot;:{n:39,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M&quot;+i+&quot;,&quot;+e+&quot;L0,0M&quot;+i+&quot;,-&quot;+e+&quot;L0,0M-&quot;+r+&quot;,0L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-right&quot;:{n:40,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+i+&quot;,&quot;+e+&quot;L0,0M-&quot;+i+&quot;,-&quot;+e+&quot;L0,0M&quot;+r+&quot;,0L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;line-ew&quot;:{n:41,f:function(t){var e=n.round(1.4*t,2);return&quot;M&quot;+e+&quot;,0H-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-ns&quot;:{n:42,f:function(t){var e=n.round(1.4*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-ne&quot;:{n:43,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-nw&quot;:{n:44,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;arrow-up&quot;:{n:45,f:function(t){var e=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},noDot:!0},&quot;arrow-down&quot;:{n:46,f:function(t){var e=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,-&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},noDot:!0},&quot;arrow-left&quot;:{n:47,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,0L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},noDot:!0},&quot;arrow-right&quot;:{n:48,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},noDot:!0},&quot;arrow-bar-up&quot;:{n:49,f:function(t){var e=n.round(t,2);return&quot;M-&quot;+e+&quot;,0H&quot;+e+&quot;M0,0L-&quot;+e+&quot;,&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-down&quot;:{n:50,f:function(t){var e=n.round(t,2);return&quot;M-&quot;+e+&quot;,0H&quot;+e+&quot;M0,0L-&quot;+e+&quot;,-&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-left&quot;:{n:51,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,-&quot;+r+&quot;V&quot;+r+&quot;M0,0L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-right&quot;:{n:52,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,-&quot;+r+&quot;V&quot;+r+&quot;M0,0L-&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},needLine:!0,noDot:!0}}},{d3:169}],667:[function(t,e,r){&quot;use strict&quot;;e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;percent&quot;,&quot;constant&quot;,&quot;sqrt&quot;,&quot;data&quot;],editType:&quot;calc&quot;},symmetric:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},array:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},arrayminus:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},value:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;calc&quot;},valueminus:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;calc&quot;},traceref:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;style&quot;},tracerefminus:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;style&quot;},copy_ystyle:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},copy_zstyle:{valType:&quot;boolean&quot;,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},thickness:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;,_deprecated:{opacity:{valType:&quot;number&quot;,editType:&quot;style&quot;}}}},{}],668:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;./compute_error&quot;);function l(t,e,r,i){var l=e[&quot;error_&quot;+i]||{},c=[];if(l.visible&amp;&amp;-1!==[&quot;linear&quot;,&quot;log&quot;].indexOf(r.type)){for(var u=s(l),f=0;f&lt;t.length;f++){var h=t[f],p=h.i;if(void 0===p)p=f;else if(null===p)continue;var d=h[i];if(n(r.c2l(d))){var g=u(d,p);if(n(g[0])&amp;&amp;n(g[1])){var m=h[i+&quot;s&quot;]=d-g[0],v=h[i+&quot;h&quot;]=d+g[1];c.push(m,v)}}}var y=r._id,x=e._extremes[y],b=a.findExtremes(r,c,o.extendFlat({tozero:x.opts.tozero},{padded:!0}));x.min=x.min.concat(b.min),x.max=x.max.concat(b.max)}}e.exports=function(t){for(var e=t.calcdata,r=0;r&lt;e.length;r++){var n=e[r],o=n[0].trace;if(!0===o.visible&amp;&amp;i.traceIs(o,&quot;errorBarsOK&quot;)){var s=a.getFromId(t,o.xaxis),c=a.getFromId(t,o.yaxis);l(n,o,s,&quot;x&quot;),l(n,o,c,&quot;y&quot;)}}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./compute_error&quot;:669,&quot;fast-isnumeric&quot;:241}],669:[function(t,e,r){&quot;use strict&quot;;function n(t,e){return&quot;percent&quot;===t?function(t){return Math.abs(t*e/100)}:&quot;constant&quot;===t?function(){return Math.abs(e)}:&quot;sqrt&quot;===t?function(t){return Math.sqrt(Math.abs(t))}:void 0}e.exports=function(t){var e=t.type,r=t.symmetric;if(&quot;data&quot;===e){var i=t.array||[];if(r)return function(t,e){var r=+i[e];return[r,r]};var a=t.arrayminus||[];return function(t,e){var r=+i[e],n=+a[e];return isNaN(r)&amp;&amp;isNaN(n)?[NaN,NaN]:[n||0,r||0]}}var o=n(e,t.value),s=n(e,t.valueminus);return r||void 0===t.valueminus?function(t){var e=o(t);return[e,e]}:function(t){return[s(t),o(t)]}}},{}],670:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../plot_api/plot_template&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){var c=&quot;error_&quot;+l.axis,u=o.newContainer(e,c),f=t[c]||{};function h(t,e){return a.coerce(f,u,s,t,e)}if(!1!==h(&quot;visible&quot;,void 0!==f.array||void 0!==f.value||&quot;sqrt&quot;===f.type)){var p=h(&quot;type&quot;,&quot;array&quot;in f?&quot;data&quot;:&quot;percent&quot;),d=!0;&quot;sqrt&quot;!==p&amp;&amp;(d=h(&quot;symmetric&quot;,!((&quot;data&quot;===p?&quot;arrayminus&quot;:&quot;valueminus&quot;)in f))),&quot;data&quot;===p?(h(&quot;array&quot;),h(&quot;traceref&quot;),d||(h(&quot;arrayminus&quot;),h(&quot;tracerefminus&quot;))):&quot;percent&quot;!==p&amp;&amp;&quot;constant&quot;!==p||(h(&quot;value&quot;),d||h(&quot;valueminus&quot;));var g=&quot;copy_&quot;+l.inherit+&quot;style&quot;;if(l.inherit)(e[&quot;error_&quot;+l.inherit]||{}).visible&amp;&amp;h(g,!(f.color||n(f.thickness)||n(f.width)));l.inherit&amp;&amp;u[g]||(h(&quot;color&quot;,r),h(&quot;thickness&quot;),h(&quot;width&quot;,i.traceIs(e,&quot;gl3d&quot;)?0:4))}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../registry&quot;:911,&quot;./attributes&quot;:667,&quot;fast-isnumeric&quot;:241}],671:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/edit_types&quot;).overrideAll,a=t(&quot;./attributes&quot;),o={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var s={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a),error_z:n.extendFlat({},a)};delete s.error_x.copy_ystyle,delete s.error_y.copy_ystyle,delete s.error_z.copy_ystyle,delete s.error_z.copy_zstyle,e.exports={moduleType:&quot;component&quot;,name:&quot;errorbars&quot;,schema:{traces:{scatter:o,bar:o,histogram:o,scatter3d:i(s,&quot;calc&quot;,&quot;nested&quot;),scattergl:i(o,&quot;calc&quot;,&quot;nested&quot;)}},supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),makeComputeError:t(&quot;./compute_error&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverInfo:function(t,e,r){(e.error_y||{}).visible&amp;&amp;(r.yerr=t.yh-t.y,e.error_y.symmetric||(r.yerrneg=t.y-t.ys));(e.error_x||{}).visible&amp;&amp;(r.xerr=t.xh-t.x,e.error_x.symmetric||(r.xerrneg=t.x-t.xs))}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;./attributes&quot;:667,&quot;./calc&quot;:668,&quot;./compute_error&quot;:669,&quot;./defaults&quot;:670,&quot;./plot&quot;:672,&quot;./style&quot;:673}],672:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../drawing&quot;),o=t(&quot;../../traces/scatter/subtypes&quot;);e.exports=function(t,e,r,s){var l=r.xaxis,c=r.yaxis,u=s&amp;&amp;s.duration&gt;0;e.each((function(e){var f,h=e[0].trace,p=h.error_x||{},d=h.error_y||{};h.ids&amp;&amp;(f=function(t){return t.id});var g=o.hasMarkers(h)&amp;&amp;h.marker.maxdisplayed&gt;0;d.visible||p.visible||(e=[]);var m=n.select(this).selectAll(&quot;g.errorbar&quot;).data(e,f);if(m.exit().remove(),e.length){p.visible||m.selectAll(&quot;path.xerror&quot;).remove(),d.visible||m.selectAll(&quot;path.yerror&quot;).remove(),m.style(&quot;opacity&quot;,1);var v=m.enter().append(&quot;g&quot;).classed(&quot;errorbar&quot;,!0);u&amp;&amp;v.style(&quot;opacity&quot;,0).transition().duration(s.duration).style(&quot;opacity&quot;,1),a.setClipUrl(m,r.layerClipId,t),m.each((function(t){var e=n.select(this),r=function(t,e,r){var n={x:e.c2p(t.x),y:r.c2p(t.y)};void 0!==t.yh&amp;&amp;(n.yh=r.c2p(t.yh),n.ys=r.c2p(t.ys),i(n.ys)||(n.noYS=!0,n.ys=r.c2p(t.ys,!0)));void 0!==t.xh&amp;&amp;(n.xh=e.c2p(t.xh),n.xs=e.c2p(t.xs),i(n.xs)||(n.noXS=!0,n.xs=e.c2p(t.xs,!0)));return n}(t,l,c);if(!g||t.vis){var a,o=e.select(&quot;path.yerror&quot;);if(d.visible&amp;&amp;i(r.x)&amp;&amp;i(r.yh)&amp;&amp;i(r.ys)){var f=d.width;a=&quot;M&quot;+(r.x-f)+&quot;,&quot;+r.yh+&quot;h&quot;+2*f+&quot;m-&quot;+f+&quot;,0V&quot;+r.ys,r.noYS||(a+=&quot;m-&quot;+f+&quot;,0h&quot;+2*f),!o.size()?o=e.append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).classed(&quot;yerror&quot;,!0):u&amp;&amp;(o=o.transition().duration(s.duration).ease(s.easing)),o.attr(&quot;d&quot;,a)}else o.remove();var h=e.select(&quot;path.xerror&quot;);if(p.visible&amp;&amp;i(r.y)&amp;&amp;i(r.xh)&amp;&amp;i(r.xs)){var m=(p.copy_ystyle?d:p).width;a=&quot;M&quot;+r.xh+&quot;,&quot;+(r.y-m)+&quot;v&quot;+2*m+&quot;m0,-&quot;+m+&quot;H&quot;+r.xs,r.noXS||(a+=&quot;m0,-&quot;+m+&quot;v&quot;+2*m),!h.size()?h=e.append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).classed(&quot;xerror&quot;,!0):u&amp;&amp;(h=h.transition().duration(s.duration).ease(s.easing)),h.attr(&quot;d&quot;,a)}else h.remove()}}))}}))}},{&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../drawing&quot;:665,d3:169,&quot;fast-isnumeric&quot;:241}],673:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../color&quot;);e.exports=function(t){t.each((function(t){var e=t[0].trace,r=e.error_y||{},a=e.error_x||{},o=n.select(this);o.selectAll(&quot;path.yerror&quot;).style(&quot;stroke-width&quot;,r.thickness+&quot;px&quot;).call(i.stroke,r.color),a.copy_ystyle&amp;&amp;(a=r),o.selectAll(&quot;path.xerror&quot;).style(&quot;stroke-width&quot;,a.thickness+&quot;px&quot;).call(i.stroke,a.color)}))}},{&quot;../color&quot;:643,d3:169}],674:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;./layout_attributes&quot;).hoverlabel,a=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={hoverlabel:{bgcolor:a({},i.bgcolor,{arrayOk:!0}),bordercolor:a({},i.bordercolor,{arrayOk:!0}),font:n({arrayOk:!0,editType:&quot;none&quot;}),align:a({},i.align,{arrayOk:!0}),namelength:a({},i.namelength,{arrayOk:!0}),editType:&quot;none&quot;}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;./layout_attributes&quot;:684}],675:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;);function a(t,e,r,i){i=i||n.identity,Array.isArray(t)&amp;&amp;(e[0][r]=i(t))}e.exports=function(t){var e=t.calcdata,r=t._fullLayout;function o(t){return function(e){return n.coerceHoverinfo({hoverinfo:e},{_module:t._module},r)}}for(var s=0;s&lt;e.length;s++){var l=e[s],c=l[0].trace;if(!i.traceIs(c,&quot;pie-like&quot;)){var u=i.traceIs(c,&quot;2dMap&quot;)?a:n.fillArray;u(c.hoverinfo,l,&quot;hi&quot;,o(c)),c.hovertemplate&amp;&amp;u(c.hovertemplate,l,&quot;ht&quot;),c.hoverlabel&amp;&amp;(u(c.hoverlabel.bgcolor,l,&quot;hbg&quot;),u(c.hoverlabel.bordercolor,l,&quot;hbc&quot;),u(c.hoverlabel.font.size,l,&quot;hts&quot;),u(c.hoverlabel.font.color,l,&quot;htc&quot;),u(c.hoverlabel.font.family,l,&quot;htf&quot;),u(c.hoverlabel.namelength,l,&quot;hnl&quot;),u(c.hoverlabel.align,l,&quot;hta&quot;))}}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],676:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./hover&quot;).hover;e.exports=function(t,e,r){var a=n.getComponentMethod(&quot;annotations&quot;,&quot;onClick&quot;)(t,t._hoverdata);function o(){t.emit(&quot;plotly_click&quot;,{points:t._hoverdata,event:e})}void 0!==r&amp;&amp;i(t,e,r,!0),t._hoverdata&amp;&amp;e&amp;&amp;e.target&amp;&amp;(a&amp;&amp;a.then?a.then(o):o(),e.stopImmediatePropagation&amp;&amp;e.stopImmediatePropagation())}},{&quot;../../registry&quot;:911,&quot;./hover&quot;:680}],677:[function(t,e,r){&quot;use strict&quot;;e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:&quot;Arial, sans-serif&quot;,HOVERMINTIME:50,HOVERID:&quot;-hover&quot;}},{}],678:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./hoverlabel_defaults&quot;);e.exports=function(t,e,r,o){var s=n.extendFlat({},o.hoverlabel);e.hovertemplate&amp;&amp;(s.namelength=-1),a(t,e,(function(r,a){return n.coerce(t,e,i,r,a)}),s)}},{&quot;../../lib&quot;:778,&quot;./attributes&quot;:674,&quot;./hoverlabel_defaults&quot;:681}],679:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);r.getSubplot=function(t){return t.subplot||t.xaxis+t.yaxis||t.geo},r.isTraceInSubplots=function(t,e){if(&quot;splom&quot;===t.type){for(var n=t.xaxes||[],i=t.yaxes||[],a=0;a&lt;n.length;a++)for(var o=0;o&lt;i.length;o++)if(-1!==e.indexOf(n[a]+i[o]))return!0;return!1}return-1!==e.indexOf(r.getSubplot(t))},r.flat=function(t,e){for(var r=new Array(t.length),n=0;n&lt;t.length;n++)r[n]=e;return r},r.p2c=function(t,e){for(var r=new Array(t.length),n=0;n&lt;t.length;n++)r[n]=t[n].p2c(e);return r},r.getDistanceFunction=function(t,e,n,i){return&quot;closest&quot;===t?i||r.quadrature(e,n):&quot;x&quot;===t.charAt(0)?e:n},r.getClosest=function(t,e,r){if(!1!==r.index)r.index&gt;=0&amp;&amp;r.index&lt;t.length?r.distance=0:r.index=!1;else for(var n=0;n&lt;t.length;n++){var i=e(t[n]);i&lt;=r.distance&amp;&amp;(r.index=n,r.distance=i)}return r},r.inbox=function(t,e,r){return t*e&lt;0||0===t?r:1/0},r.quadrature=function(t,e){return function(r){var n=t(r),i=e(r);return Math.sqrt(n*n+i*i)}},r.makeEventData=function(t,e,n){var i=&quot;index&quot;in t?t.index:t.pointNumber,a={data:e._input,fullData:e,curveNumber:e.index,pointNumber:i};if(e._indexToPoints){var o=e._indexToPoints[i];1===o.length?a.pointIndex=o[0]:a.pointIndices=o}else a.pointIndex=i;return e._module.eventData?a=e._module.eventData(a,t,e,n,i):(&quot;xVal&quot;in t?a.x=t.xVal:&quot;x&quot;in t&amp;&amp;(a.x=t.x),&quot;yVal&quot;in t?a.y=t.yVal:&quot;y&quot;in t&amp;&amp;(a.y=t.y),t.xa&amp;&amp;(a.xaxis=t.xa),t.ya&amp;&amp;(a.yaxis=t.ya),void 0!==t.zLabelVal&amp;&amp;(a.z=t.zLabelVal)),r.appendArrayPointValue(a,e,i),a},r.appendArrayPointValue=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s&lt;i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){var u=o(n.nestedProperty(e,l).get(),r);void 0!==u&amp;&amp;(t[c]=u)}}},r.appendArrayMultiPointValues=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s&lt;i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){for(var u=n.nestedProperty(e,l).get(),f=new Array(r.length),h=0;h&lt;r.length;h++)f[h]=o(u,r[h]);t[c]=f}}};var i={ids:&quot;id&quot;,locations:&quot;location&quot;,labels:&quot;label&quot;,values:&quot;value&quot;,&quot;marker.colors&quot;:&quot;color&quot;,parents:&quot;parent&quot;};function a(t){return i[t]||t}function o(t,e){return Array.isArray(e)?Array.isArray(t)&amp;&amp;Array.isArray(t[e[0]])?t[e[0]][e[1]]:void 0:t[e]}var s={x:!0,y:!0},l={&quot;x unified&quot;:!0,&quot;y unified&quot;:!0};r.isUnifiedHover=function(t){return&quot;string&quot;==typeof t&amp;&amp;!!l[t]},r.isXYhover=function(t){return&quot;string&quot;==typeof t&amp;&amp;!!s[t]}},{&quot;../../lib&quot;:778}],680:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=o.strRotate,c=t(&quot;../../lib/events&quot;),u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../lib/override_cursor&quot;),h=t(&quot;../drawing&quot;),p=t(&quot;../color&quot;),d=t(&quot;../dragelement&quot;),g=t(&quot;../../plots/cartesian/axes&quot;),m=t(&quot;../../registry&quot;),v=t(&quot;./helpers&quot;),y=t(&quot;./constants&quot;),x=t(&quot;../legend/defaults&quot;),b=t(&quot;../legend/draw&quot;),_=y.YANGLE,w=Math.PI*_/180,T=1/Math.sin(w),k=Math.cos(w),M=Math.sin(w),A=y.HOVERARROWSIZE,S=y.HOVERTEXTPAD;function E(t){return[t.trace.index,t.index,t.x0,t.y0,t.name,t.attr,t.xa,t.ya||&quot;&quot;].join(&quot;,&quot;)}r.hover=function(t,e,r,a){t=o.getGraphDiv(t),o.throttle(t._fullLayout._uid+y.HOVERID,y.HOVERMINTIME,(function(){!function(t,e,r,a){r||(r=&quot;xy&quot;);var s=Array.isArray(r)?r:[r],l=t._fullLayout,u=l._plots||[],h=u[r],g=l._has(&quot;cartesian&quot;);if(h){var y=h.overlays.map((function(t){return t.id}));s=s.concat(y)}for(var x=s.length,b=new Array(x),_=new Array(x),w=!1,k=0;k&lt;x;k++){var M=s[k];if(u[M])w=!0,b[k]=u[M].xaxis,_[k]=u[M].yaxis;else{if(!l[M]||!l[M]._subplot)return void o.warn(&quot;Unrecognized subplot: &quot;+M);var A=l[M]._subplot;b[k]=A.xaxis,_[k]=A.yaxis}}var S=e.hovermode||l.hovermode;S&amp;&amp;!w&amp;&amp;(S=&quot;closest&quot;);if(-1===[&quot;x&quot;,&quot;y&quot;,&quot;closest&quot;,&quot;x unified&quot;,&quot;y unified&quot;].indexOf(S)||!t.calcdata||t.querySelector(&quot;.zoombox&quot;)||t._dragging)return d.unhoverRaw(t,e);var C,I,R,F,B,N,j,U,V,q,H,G,Y,W=-1===l.hoverdistance?1/0:l.hoverdistance,X=-1===l.spikedistance?1/0:l.spikedistance,Z=[],J=[],K={hLinePoint:null,vLinePoint:null},Q=!1;if(Array.isArray(e))for(S=&quot;array&quot;,R=0;R&lt;e.length;R++)(B=t.calcdata[e[R].curveNumber||0])&amp;&amp;(N=B[0].trace,&quot;skip&quot;!==B[0].trace.hoverinfo&amp;&amp;(J.push(B),&quot;h&quot;===N.orientation&amp;&amp;(Q=!0)));else{for(F=0;F&lt;t.calcdata.length;F++)B=t.calcdata[F],&quot;skip&quot;!==(N=B[0].trace).hoverinfo&amp;&amp;v.isTraceInSubplots(N,s)&amp;&amp;(J.push(B),&quot;h&quot;===N.orientation&amp;&amp;(Q=!0));var $,tt;if(!e.target)$=&quot;xpx&quot;in e?e.xpx:b[0]._length/2,tt=&quot;ypx&quot;in e?e.ypx:_[0]._length/2;else{if(!1===c.triggerHandler(t,&quot;plotly_beforehover&quot;,e))return;var et=e.target.getBoundingClientRect();$=e.clientX-et.left,tt=e.clientY-et.top,l._calcInverseTransform(t);var rt=o.apply3DTransform(l._invTransform)($,tt);if($=rt[0],tt=rt[1],$&lt;0||$&gt;b[0]._length||tt&lt;0||tt&gt;_[0]._length)return d.unhoverRaw(t,e)}if(e.pointerX=$+b[0]._offset,e.pointerY=tt+_[0]._offset,C=&quot;xval&quot;in e?v.flat(s,e.xval):v.p2c(b,$),I=&quot;yval&quot;in e?v.flat(s,e.yval):v.p2c(_,tt),!i(C[0])||!i(I[0]))return o.warn(&quot;Fx.hover failed&quot;,e,t),d.unhoverRaw(t,e)}var nt=1/0;function it(t,r){for(F=0;F&lt;J.length;F++)if((B=J[F])&amp;&amp;B[0]&amp;&amp;B[0].trace&amp;&amp;!0===(N=B[0].trace).visible&amp;&amp;0!==N._length&amp;&amp;-1===[&quot;carpet&quot;,&quot;contourcarpet&quot;].indexOf(N._module.name)){if(&quot;splom&quot;===N.type?j=s[U=0]:(j=v.getSubplot(N),U=s.indexOf(j)),V=S,v.isUnifiedHover(V)&amp;&amp;(V=V.charAt(0)),G={cd:B,trace:N,xa:b[U],ya:_[U],maxHoverDistance:W,maxSpikeDistance:X,index:!1,distance:Math.min(nt,W),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:p.defaultLine,name:N.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},l[j]&amp;&amp;(G.subplot=l[j]._subplot),l._splomScenes&amp;&amp;l._splomScenes[N.uid]&amp;&amp;(G.scene=l._splomScenes[N.uid]),Y=Z.length,&quot;array&quot;===V){var n=e[F];&quot;pointNumber&quot;in n?(G.index=n.pointNumber,V=&quot;closest&quot;):(V=&quot;&quot;,&quot;xval&quot;in n&amp;&amp;(q=n.xval,V=&quot;x&quot;),&quot;yval&quot;in n&amp;&amp;(H=n.yval,V=V?&quot;closest&quot;:&quot;y&quot;))}else void 0!==t&amp;&amp;void 0!==r?(q=t,H=r):(q=C[U],H=I[U]);if(0!==W)if(N._module&amp;&amp;N._module.hoverPoints){var a=N._module.hoverPoints(G,q,H,V,l._hoverlayer);if(a)for(var c,u=0;u&lt;a.length;u++)c=a[u],i(c.x0)&amp;&amp;i(c.y0)&amp;&amp;Z.push(z(c,S))}else o.log(&quot;Unrecognized trace type in hover:&quot;,N);if(&quot;closest&quot;===S&amp;&amp;Z.length&gt;Y&amp;&amp;(Z.splice(0,Y),nt=Z[0].distance),g&amp;&amp;0!==X&amp;&amp;0===Z.length){G.distance=X,G.index=!1;var f=N._module.hoverPoints(G,q,H,&quot;closest&quot;,l._hoverlayer);if(f&amp;&amp;(f=f.filter((function(t){return t.spikeDistance&lt;=X}))),f&amp;&amp;f.length){var h,d=f.filter((function(t){return t.xa.showspikes&amp;&amp;&quot;hovered data&quot;!==t.xa.spikesnap}));if(d.length){var m=d[0];i(m.x0)&amp;&amp;i(m.y0)&amp;&amp;(h=ot(m),(!K.vLinePoint||K.vLinePoint.spikeDistance&gt;h.spikeDistance)&amp;&amp;(K.vLinePoint=h))}var y=f.filter((function(t){return t.ya.showspikes&amp;&amp;&quot;hovered data&quot;!==t.ya.spikesnap}));if(y.length){var x=y[0];i(x.x0)&amp;&amp;i(x.y0)&amp;&amp;(h=ot(x),(!K.hLinePoint||K.hLinePoint.spikeDistance&gt;h.spikeDistance)&amp;&amp;(K.hLinePoint=h))}}}}}function at(t,e){for(var r,n=null,i=1/0,a=0;a&lt;t.length;a++)(r=t[a].spikeDistance)&lt;=i&amp;&amp;r&lt;=e&amp;&amp;(n=t[a],i=r);return n}function ot(t){return t?{xa:t.xa,ya:t.ya,x:void 0!==t.xSpike?t.xSpike:(t.x0+t.x1)/2,y:void 0!==t.ySpike?t.ySpike:(t.y0+t.y1)/2,distance:t.distance,spikeDistance:t.spikeDistance,curveNumber:t.trace.index,color:t.color,pointNumber:t.index}:null}it();var st={fullLayout:l,container:l._hoverlayer,outerContainer:l._paperdiv,event:e},lt=t._spikepoints,ct={vLinePoint:K.vLinePoint,hLinePoint:K.hLinePoint};if(t._spikepoints=ct,g&amp;&amp;0!==X&amp;&amp;0!==Z.length){var ut=at(Z.filter((function(t){return t.ya.showspikes})),X);K.hLinePoint=ot(ut);var ft=at(Z.filter((function(t){return t.xa.showspikes})),X);K.vLinePoint=ot(ft)}if(0===Z.length){var ht=d.unhoverRaw(t,e);return!g||null===K.hLinePoint&amp;&amp;null===K.vLinePoint||D(lt)&amp;&amp;O(t,K,st),ht}g&amp;&amp;D(lt)&amp;&amp;O(t,K,st);if(Z.sort((function(t,e){return t.distance-e.distance})),v.isXYhover(V)&amp;&amp;0!==Z[0].length&amp;&amp;&quot;splom&quot;!==Z[0].trace.type){var pt=Z[0],dt=pt.cd[pt.index],gt=&quot;group&quot;===l.boxmode||&quot;group&quot;===l.violinmode,mt=pt.xVal,vt=pt.xa;&quot;category&quot;===vt.type&amp;&amp;(mt=vt._categoriesMap[mt]),&quot;date&quot;===vt.type&amp;&amp;(mt=vt.d2c(mt)),dt&amp;&amp;dt.t&amp;&amp;dt.t.posLetter===vt._id&amp;&amp;gt&amp;&amp;(mt+=dt.t.dPos);var yt=pt.yVal;&quot;category&quot;===(vt=pt.ya).type&amp;&amp;(yt=vt._categoriesMap[yt]),&quot;date&quot;===vt.type&amp;&amp;(yt=vt.d2c(yt)),dt&amp;&amp;dt.t&amp;&amp;dt.t.posLetter===vt._id&amp;&amp;gt&amp;&amp;(yt+=dt.t.dPos),it(mt,yt);var xt={};Z=Z.filter((function(t){var e=E(t);if(!xt[e])return xt[e]=!0,xt[e]}))}var bt=t._hoverdata,_t=[];for(R=0;R&lt;Z.length;R++){var wt=Z[R],Tt=v.makeEventData(wt,wt.trace,wt.cd);if(!1!==wt.hovertemplate){var kt=!1;wt.cd[wt.index]&amp;&amp;wt.cd[wt.index].ht&amp;&amp;(kt=wt.cd[wt.index].ht),wt.hovertemplate=kt||wt.trace.hovertemplate||!1}wt.eventData=[Tt],_t.push(Tt)}t._hoverdata=_t;var Mt=&quot;y&quot;===S&amp;&amp;(J.length&gt;1||Z.length&gt;1)||&quot;closest&quot;===S&amp;&amp;Q&amp;&amp;Z.length&gt;1,At=p.combine(l.plot_bgcolor||p.background,l.paper_bgcolor),St={hovermode:S,rotateLabels:Mt,bgColor:At,container:l._hoverlayer,outerContainer:l._paperdiv,commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance},Et=L(Z,St,t);v.isUnifiedHover(S)||(!function(t,e,r){var n,i,a,o,s,l,c,u=0,f=1,h=t.size(),p=new Array(h),d=0;function g(t){var e=t[0],r=t[t.length-1];if(i=e.pmin-e.pos-e.dp+e.size,a=r.pos+r.dp+r.size-e.pmax,i&gt;.01){for(s=t.length-1;s&gt;=0;s--)t[s].dp+=i;n=!1}if(!(a&lt;.01)){if(i&lt;-.01){for(s=t.length-1;s&gt;=0;s--)t[s].dp-=a;n=!1}if(n){var c=0;for(o=0;o&lt;t.length;o++)(l=t[o]).pos+l.dp+l.size&gt;e.pmax&amp;&amp;c++;for(o=t.length-1;o&gt;=0&amp;&amp;!(c&lt;=0);o--)(l=t[o]).pos&gt;e.pmax-1&amp;&amp;(l.del=!0,c--);for(o=0;o&lt;t.length&amp;&amp;!(c&lt;=0);o++)if((l=t[o]).pos&lt;e.pmin+1)for(l.del=!0,c--,a=2*l.size,s=t.length-1;s&gt;=0;s--)t[s].dp-=a;for(o=t.length-1;o&gt;=0&amp;&amp;!(c&lt;=0);o--)(l=t[o]).pos+l.dp+l.size&gt;e.pmax&amp;&amp;(l.del=!0,c--)}}}t.each((function(t){var n=t[e],i=&quot;x&quot;===n._id.charAt(0),a=n.range;0===d&amp;&amp;a&amp;&amp;a[0]&gt;a[1]!==i&amp;&amp;(f=-1),p[d++]=[{datum:t,traceIndex:t.trace.index,dp:0,pos:t.pos,posref:t.posref,size:t.by*(i?T:1)/2,pmin:0,pmax:i?r.width:r.height}]})),p.sort((function(t,e){return t[0].posref-e[0].posref||f*(e[0].traceIndex-t[0].traceIndex)}));for(;!n&amp;&amp;u&lt;=h;){for(u++,n=!0,o=0;o&lt;p.length-1;){var m=p[o],v=p[o+1],y=m[m.length-1],x=v[0];if((i=y.pos+y.dp+y.size-x.pos-x.dp+x.size)&gt;.01&amp;&amp;y.pmin===x.pmin&amp;&amp;y.pmax===x.pmax){for(s=v.length-1;s&gt;=0;s--)v[s].dp+=i;for(m.push.apply(m,v),p.splice(o+1,1),c=0,s=m.length-1;s&gt;=0;s--)c+=m[s].dp;for(a=c/m.length,s=m.length-1;s&gt;=0;s--)m[s].dp-=a;n=!1}else o++}p.forEach(g)}for(o=p.length-1;o&gt;=0;o--){var b=p[o];for(s=b.length-1;s&gt;=0;s--){var _=b[s],w=_.datum;w.offset=_.dp,w.del=_.del}}}(Et,Mt?&quot;xa&quot;:&quot;ya&quot;,l),P(Et,Mt,l._invScaleX,l._invScaleY));if(e.target&amp;&amp;e.target.tagName){var Ct=m.getComponentMethod(&quot;annotations&quot;,&quot;hasClickToShow&quot;)(t,_t);f(n.select(e.target),Ct?&quot;pointer&quot;:&quot;&quot;)}if(!e.target||a||!function(t,e,r){if(!r||r.length!==t._hoverdata.length)return!0;for(var n=r.length-1;n&gt;=0;n--){var i=r[n],a=t._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers))return!0}return!1}(t,0,bt))return;bt&amp;&amp;t.emit(&quot;plotly_unhover&quot;,{event:e,points:bt});t.emit(&quot;plotly_hover&quot;,{event:e,points:t._hoverdata,xaxes:b,yaxes:_,xvals:C,yvals:I})}(t,e,r,a)}))},r.loneHover=function(t,e){var r=!0;Array.isArray(t)||(r=!1,t=[t]);var i=t.map((function(t){return{color:t.color||p.defaultLine,x0:t.x0||t.x||0,x1:t.x1||t.x||0,y0:t.y0||t.y||0,y1:t.y1||t.y||0,xLabel:t.xLabel,yLabel:t.yLabel,zLabel:t.zLabel,text:t.text,name:t.name,idealAlign:t.idealAlign,borderColor:t.borderColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontColor:t.fontColor,nameLength:t.nameLength,textAlign:t.textAlign,trace:t.trace||{index:0,hoverinfo:&quot;&quot;},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:t.hovertemplate||!1,eventData:t.eventData||!1,hovertemplateLabels:t.hovertemplateLabels||!1}})),a=n.select(e.container),o=e.outerContainer?n.select(e.outerContainer):a,s={hovermode:&quot;closest&quot;,rotateLabels:!1,bgColor:e.bgColor||p.background,container:a,outerContainer:o},l=L(i,s,e.gd),c=0,u=0;l.sort((function(t,e){return t.y0-e.y0})).each((function(t,r){var n=t.y0-t.by/2;t.offset=n-5&lt;c?c-n+5:0,c=n+t.by+t.offset,r===e.anchorIndex&amp;&amp;(u=t.offset)})).each((function(t){t.offset-=u}));var f=e.gd._fullLayout._invScaleX,h=e.gd._fullLayout._invScaleY;return P(l,s.rotateLabels,f,h),r?l:l.node()};var C=/&lt;extra&gt;([\s\S]*)&lt;\/extra&gt;/;function L(t,e,r){var i=r._fullLayout,a=e.hovermode,c=e.rotateLabels,f=e.bgColor,d=e.container,g=e.outerContainer,m=e.commonLabelOpts||{},w=e.fontFamily||y.HOVERFONT,T=e.fontSize||y.HOVERFONTSIZE,k=t[0],M=k.xa,C=k.ya,L=&quot;y&quot;===a.charAt(0)?&quot;yLabel&quot;:&quot;xLabel&quot;,P=k[L],z=(String(P)||&quot;&quot;).split(&quot; &quot;)[0],O=g.node().getBoundingClientRect(),D=O.top,R=O.width,F=O.height,B=void 0!==P&amp;&amp;k.distance&lt;=e.hoverdistance&amp;&amp;(&quot;x&quot;===a||&quot;y&quot;===a);if(B){var N,j,U=!0;for(N=0;N&lt;t.length;N++)if(U&amp;&amp;void 0===t[N].zLabel&amp;&amp;(U=!1),j=t[N].hoverinfo||t[N].trace.hoverinfo){var V=Array.isArray(j)?j:j.split(&quot;+&quot;);if(-1===V.indexOf(&quot;all&quot;)&amp;&amp;-1===V.indexOf(a)){B=!1;break}}U&amp;&amp;(B=!1)}var q=d.selectAll(&quot;g.axistext&quot;).data(B?[0]:[]);function H(t){return t.filter((function(t){return void 0!==t.zLabelVal||(t[L]||&quot;&quot;).split(&quot; &quot;)[0]===z}))}if(q.enter().append(&quot;g&quot;).classed(&quot;axistext&quot;,!0),q.exit().remove(),q.each((function(){var e=n.select(this),l=o.ensureSingle(e,&quot;path&quot;,&quot;&quot;,(function(t){t.style({&quot;stroke-width&quot;:&quot;1px&quot;})})),c=o.ensureSingle(e,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),f=m.bgcolor||p.defaultLine,d=m.bordercolor||p.contrast(f),g=p.contrast(f),v={family:m.font.family||w,size:m.font.size||T,color:m.font.color||g};l.style({fill:f,stroke:d}),c.text(P).call(h.font,v).call(u.positionText,0,0).call(u.convertToTspans,r),e.attr(&quot;transform&quot;,&quot;&quot;);var y,x,b=c.node().getBoundingClientRect();if(&quot;x&quot;===a){var _=&quot;top&quot;===M.side?&quot;-&quot;:&quot;&quot;;c.attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(u.positionText,0,&quot;top&quot;===M.side?D-b.bottom-A-S:D-b.top+A+S),y=M._offset+(k.x0+k.x1)/2,x=C._offset+(&quot;top&quot;===M.side?0:C._length);var E=b.width/2+S;y&lt;E?(y=E,l.attr(&quot;d&quot;,&quot;M-&quot;+(E-A)+&quot;,0L-&quot;+(E-2*A)+&quot;,&quot;+_+A+&quot;H&quot;+(S+b.width/2)+&quot;v&quot;+_+(2*S+b.height)+&quot;H-&quot;+E+&quot;V&quot;+_+A+&quot;Z&quot;)):y&gt;i.width-E?(y=i.width-E,l.attr(&quot;d&quot;,&quot;M&quot;+(E-A)+&quot;,0L&quot;+E+&quot;,&quot;+_+A+&quot;v&quot;+_+(2*S+b.height)+&quot;H-&quot;+E+&quot;V&quot;+_+A+&quot;H&quot;+(E-2*A)+&quot;Z&quot;)):l.attr(&quot;d&quot;,&quot;M0,0L&quot;+A+&quot;,&quot;+_+A+&quot;H&quot;+(S+b.width/2)+&quot;v&quot;+_+(2*S+b.height)+&quot;H-&quot;+(S+b.width/2)+&quot;V&quot;+_+A+&quot;H-&quot;+A+&quot;Z&quot;)}else{var L,I,z;&quot;right&quot;===C.side?(L=&quot;start&quot;,I=1,z=&quot;&quot;,y=M._offset+M._length):(L=&quot;end&quot;,I=-1,z=&quot;-&quot;,y=M._offset),x=C._offset+(k.y0+k.y1)/2,c.attr(&quot;text-anchor&quot;,L),l.attr(&quot;d&quot;,&quot;M0,0L&quot;+z+A+&quot;,&quot;+A+&quot;V&quot;+(S+b.height/2)+&quot;h&quot;+z+(2*S+b.width)+&quot;V-&quot;+(S+b.height/2)+&quot;H&quot;+z+A+&quot;V-&quot;+A+&quot;Z&quot;);var O,R=b.height/2,F=D-b.top-R,B=&quot;clip&quot;+i._uid+&quot;commonlabel&quot;+C._id;if(y&lt;b.width+2*S+A){O=&quot;M-&quot;+(A+S)+&quot;-&quot;+R+&quot;h-&quot;+(b.width-S)+&quot;V&quot;+R+&quot;h&quot;+(b.width-S)+&quot;Z&quot;;var N=b.width-y+S;u.positionText(c,N,F),&quot;end&quot;===L&amp;&amp;c.selectAll(&quot;tspan&quot;).each((function(){var t=n.select(this),e=h.tester.append(&quot;text&quot;).text(t.text()).call(h.font,v),r=e.node().getBoundingClientRect();Math.round(r.width)&lt;Math.round(b.width)&amp;&amp;t.attr(&quot;x&quot;,N-r.width),e.remove()}))}else u.positionText(c,I*(S+A),F),O=null;var j=i._topclips.selectAll(&quot;#&quot;+B).data(O?[0]:[]);j.enter().append(&quot;clipPath&quot;).attr(&quot;id&quot;,B).append(&quot;path&quot;),j.exit().remove(),j.select(&quot;path&quot;).attr(&quot;d&quot;,O),h.setClipUrl(c,O?B:null,r)}e.attr(&quot;transform&quot;,s(y,x)),t=H(t)})),v.isUnifiedHover(a)){if(d.selectAll(&quot;g.hovertext&quot;).remove(),void 0!==P&amp;&amp;k.distance&lt;=e.hoverdistance&amp;&amp;(t=H(t)),0===t.length)return;var G={showlegend:!0,legend:{title:{text:P,font:i.hoverlabel.font},font:i.hoverlabel.font,bgcolor:i.hoverlabel.bgcolor,bordercolor:i.hoverlabel.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:&quot;v&quot;}},Y={};x(G,Y,r._fullData);var W=Y.legend;W.entries=[];for(var X=0;X&lt;t.length;X++){var Z=I(t[X],!0,a,i,P),J=Z[0],K=Z[1],Q=t[X];Q.name=K,Q.text=&quot;&quot;!==K?K+&quot; : &quot;+J:J;var $=Q.cd[Q.index];$&amp;&amp;($.mc&amp;&amp;(Q.mc=$.mc),$.mcc&amp;&amp;(Q.mc=$.mcc),$.mlc&amp;&amp;(Q.mlc=$.mlc),$.mlcc&amp;&amp;(Q.mlc=$.mlcc),$.mlw&amp;&amp;(Q.mlw=$.mlw),$.mrc&amp;&amp;(Q.mrc=$.mrc),$.dir&amp;&amp;(Q.dir=$.dir)),Q._distinct=!0,W.entries.push([Q])}W.entries.sort((function(t,e){return t[0].trace.index-e[0].trace.index})),W.layer=d,b(r,W);var tt=o.mean(t.map((function(t){return(t.y0+t.y1)/2}))),et=o.mean(t.map((function(t){return(t.x0+t.x1)/2}))),rt=d.select(&quot;g.legend&quot;),nt=rt.node().getBoundingClientRect();et+=M._offset,tt+=C._offset-nt.height/2;var it=nt.width+2*S;!(et+it&lt;=R)&amp;&amp;et-it&gt;=0?et-=it:et+=2*S;var at=nt.height+2*S,ot=tt+at&gt;=F;return at&lt;=F&amp;&amp;(tt&lt;=D?tt=C._offset+2*S:ot&amp;&amp;(tt=F-at)),rt.attr(&quot;transform&quot;,s(et,tt)),rt}var st=d.selectAll(&quot;g.hovertext&quot;).data(t,(function(t){return E(t)}));return st.enter().append(&quot;g&quot;).classed(&quot;hovertext&quot;,!0).each((function(){var t=n.select(this);t.append(&quot;rect&quot;).call(p.fill,p.addOpacity(f,.8)),t.append(&quot;text&quot;).classed(&quot;name&quot;,!0),t.append(&quot;path&quot;).style(&quot;stroke-width&quot;,&quot;1px&quot;),t.append(&quot;text&quot;).classed(&quot;nums&quot;,!0).call(h.font,w,T)})),st.exit().remove(),st.each((function(t){var e=n.select(this).attr(&quot;transform&quot;,&quot;&quot;),o=t.color;Array.isArray(o)&amp;&amp;(o=o[t.eventData[0].pointNumber]);var d=t.bgcolor||o,g=p.combine(p.opacity(d)?d:p.defaultLine,f),m=p.combine(p.opacity(o)?o:p.defaultLine,f),v=t.borderColor||p.contrast(g),y=I(t,B,a,i,P,e),x=y[0],b=y[1],k=e.select(&quot;text.nums&quot;).call(h.font,t.fontFamily||w,t.fontSize||T,t.fontColor||v).text(x).attr(&quot;data-notex&quot;,1).call(u.positionText,0,0).call(u.convertToTspans,r),M=e.select(&quot;text.name&quot;),E=0,C=0;if(b&amp;&amp;b!==x){M.call(h.font,t.fontFamily||w,t.fontSize||T,m).text(b).attr(&quot;data-notex&quot;,1).call(u.positionText,0,0).call(u.convertToTspans,r);var L=M.node().getBoundingClientRect();E=L.width+2*S,C=L.height+2*S}else M.remove(),e.select(&quot;rect&quot;).remove();e.select(&quot;path&quot;).style({fill:g,stroke:v});var z,O,N=k.node().getBoundingClientRect(),j=t.xa._offset+(t.x0+t.x1)/2,U=t.ya._offset+(t.y0+t.y1)/2,V=Math.abs(t.x1-t.x0),q=Math.abs(t.y1-t.y0),H=N.width+A+S+E;if(t.ty0=D-N.top,t.bx=N.width+2*S,t.by=Math.max(N.height+2*S,C),t.anchor=&quot;start&quot;,t.txwidth=N.width,t.tx2width=E,t.offset=0,c)t.pos=j,z=U+q/2+H&lt;=F,O=U-q/2-H&gt;=0,&quot;top&quot;!==t.idealAlign&amp;&amp;z||!O?z?(U+=q/2,t.anchor=&quot;start&quot;):t.anchor=&quot;middle&quot;:(U-=q/2,t.anchor=&quot;end&quot;);else if(t.pos=U,z=j+V/2+H&lt;=R,O=j-V/2-H&gt;=0,&quot;left&quot;!==t.idealAlign&amp;&amp;z||!O)if(z)j+=V/2,t.anchor=&quot;start&quot;;else{t.anchor=&quot;middle&quot;;var G=H/2,Y=j+G-R,W=j-G;Y&gt;0&amp;&amp;(j-=Y),W&lt;0&amp;&amp;(j+=-W)}else j-=V/2,t.anchor=&quot;end&quot;;k.attr(&quot;text-anchor&quot;,t.anchor),E&amp;&amp;M.attr(&quot;text-anchor&quot;,t.anchor),e.attr(&quot;transform&quot;,s(j,U)+(c?l(_):&quot;&quot;))})),st}function I(t,e,r,n,i,a){var s=&quot;&quot;,l=&quot;&quot;;void 0!==t.nameOverride&amp;&amp;(t.name=t.nameOverride),t.name&amp;&amp;(t.trace._meta&amp;&amp;(t.name=o.templateString(t.name,t.trace._meta)),s=R(t.name,t.nameLength)),void 0!==t.zLabel?(void 0!==t.xLabel&amp;&amp;(l+=&quot;x: &quot;+t.xLabel+&quot;&lt;br&gt;&quot;),void 0!==t.yLabel&amp;&amp;(l+=&quot;y: &quot;+t.yLabel+&quot;&lt;br&gt;&quot;),&quot;choropleth&quot;!==t.trace.type&amp;&amp;&quot;choroplethmapbox&quot;!==t.trace.type&amp;&amp;(l+=(l?&quot;z: &quot;:&quot;&quot;)+t.zLabel)):e&amp;&amp;t[r.charAt(0)+&quot;Label&quot;]===i?l=t[(&quot;x&quot;===r.charAt(0)?&quot;y&quot;:&quot;x&quot;)+&quot;Label&quot;]||&quot;&quot;:void 0===t.xLabel?void 0!==t.yLabel&amp;&amp;&quot;scattercarpet&quot;!==t.trace.type&amp;&amp;(l=t.yLabel):l=void 0===t.yLabel?t.xLabel:&quot;(&quot;+t.xLabel+&quot;, &quot;+t.yLabel+&quot;)&quot;,!t.text&amp;&amp;0!==t.text||Array.isArray(t.text)||(l+=(l?&quot;&lt;br&gt;&quot;:&quot;&quot;)+t.text),void 0!==t.extraText&amp;&amp;(l+=(l?&quot;&lt;br&gt;&quot;:&quot;&quot;)+t.extraText),a&amp;&amp;&quot;&quot;===l&amp;&amp;!t.hovertemplate&amp;&amp;(&quot;&quot;===s&amp;&amp;a.remove(),l=s);var c=n._d3locale,u=t.hovertemplate||!1,f=t.hovertemplateLabels||t,h=t.eventData[0]||{};return u&amp;&amp;(l=(l=o.hovertemplateString(u,f,c,h,t.trace._meta)).replace(C,(function(e,r){return s=R(r,t.nameLength),&quot;&quot;}))),[l,s]}function P(t,e,r,i){var a=function(t){return t*r},o=function(t){return t*i};t.each((function(t){var r=n.select(this);if(t.del)return r.remove();var i=r.select(&quot;text.nums&quot;),s=t.anchor,l=&quot;end&quot;===s?-1:1,c={start:1,end:-1,middle:0}[s],f=c*(A+S),p=f+c*(t.txwidth+S),d=0,g=t.offset,m=&quot;middle&quot;===s;m&amp;&amp;(f-=t.tx2width/2,p+=t.txwidth/2+S),e&amp;&amp;(g*=-M,d=t.offset*k),r.select(&quot;path&quot;).attr(&quot;d&quot;,m?&quot;M-&quot;+a(t.bx/2+t.tx2width/2)+&quot;,&quot;+o(g-t.by/2)+&quot;h&quot;+a(t.bx)+&quot;v&quot;+o(t.by)+&quot;h-&quot;+a(t.bx)+&quot;Z&quot;:&quot;M0,0L&quot;+a(l*A+d)+&quot;,&quot;+o(A+g)+&quot;v&quot;+o(t.by/2-A)+&quot;h&quot;+a(l*t.bx)+&quot;v-&quot;+o(t.by)+&quot;H&quot;+a(l*A+d)+&quot;V&quot;+o(g-A)+&quot;Z&quot;);var v=d+f,y=g+t.ty0-t.by/2+S,x=t.textAlign||&quot;auto&quot;;&quot;auto&quot;!==x&amp;&amp;(&quot;left&quot;===x&amp;&amp;&quot;start&quot;!==s?(i.attr(&quot;text-anchor&quot;,&quot;start&quot;),v=m?-t.bx/2-t.tx2width/2+S:-t.bx-S):&quot;right&quot;===x&amp;&amp;&quot;end&quot;!==s&amp;&amp;(i.attr(&quot;text-anchor&quot;,&quot;end&quot;),v=m?t.bx/2-t.tx2width/2-S:t.bx+S)),i.call(u.positionText,a(v),o(y)),t.tx2width&amp;&amp;(r.select(&quot;text.name&quot;).call(u.positionText,a(p+c*S+d),o(g+t.ty0-t.by/2+S)),r.select(&quot;rect&quot;).call(h.setRect,a(p+(c-1)*t.tx2width/2+d),o(g-t.by/2-1),a(t.tx2width),o(t.by+2)))}))}function z(t,e){var r=t.index,n=t.trace||{},a=t.cd[0],s=t.cd[r]||{};function l(t){return t||i(t)&amp;&amp;0===t}var c=Array.isArray(r)?function(t,e){var i=o.castOption(a,r,t);return l(i)?i:o.extractOption({},n,&quot;&quot;,e)}:function(t,e){return o.extractOption(s,n,t,e)};function u(e,r,n){var i=c(r,n);l(i)&amp;&amp;(t[e]=i)}if(u(&quot;hoverinfo&quot;,&quot;hi&quot;,&quot;hoverinfo&quot;),u(&quot;bgcolor&quot;,&quot;hbg&quot;,&quot;hoverlabel.bgcolor&quot;),u(&quot;borderColor&quot;,&quot;hbc&quot;,&quot;hoverlabel.bordercolor&quot;),u(&quot;fontFamily&quot;,&quot;htf&quot;,&quot;hoverlabel.font.family&quot;),u(&quot;fontSize&quot;,&quot;hts&quot;,&quot;hoverlabel.font.size&quot;),u(&quot;fontColor&quot;,&quot;htc&quot;,&quot;hoverlabel.font.color&quot;),u(&quot;nameLength&quot;,&quot;hnl&quot;,&quot;hoverlabel.namelength&quot;),u(&quot;textAlign&quot;,&quot;hta&quot;,&quot;hoverlabel.align&quot;),t.posref=&quot;y&quot;===e||&quot;closest&quot;===e&amp;&amp;&quot;h&quot;===n.orientation?t.xa._offset+(t.x0+t.x1)/2:t.ya._offset+(t.y0+t.y1)/2,t.x0=o.constrain(t.x0,0,t.xa._length),t.x1=o.constrain(t.x1,0,t.xa._length),t.y0=o.constrain(t.y0,0,t.ya._length),t.y1=o.constrain(t.y1,0,t.ya._length),void 0!==t.xLabelVal&amp;&amp;(t.xLabel=&quot;xLabel&quot;in t?t.xLabel:g.hoverLabelText(t.xa,t.xLabelVal),t.xVal=t.xa.c2d(t.xLabelVal)),void 0!==t.yLabelVal&amp;&amp;(t.yLabel=&quot;yLabel&quot;in t?t.yLabel:g.hoverLabelText(t.ya,t.yLabelVal),t.yVal=t.ya.c2d(t.yLabelVal)),void 0!==t.zLabelVal&amp;&amp;void 0===t.zLabel&amp;&amp;(t.zLabel=String(t.zLabelVal)),!(isNaN(t.xerr)||&quot;log&quot;===t.xa.type&amp;&amp;t.xerr&lt;=0)){var f=g.tickText(t.xa,t.xa.c2l(t.xerr),&quot;hover&quot;).text;void 0!==t.xerrneg?t.xLabel+=&quot; +&quot;+f+&quot; / -&quot;+g.tickText(t.xa,t.xa.c2l(t.xerrneg),&quot;hover&quot;).text:t.xLabel+=&quot; \xb1 &quot;+f,&quot;x&quot;===e&amp;&amp;(t.distance+=1)}if(!(isNaN(t.yerr)||&quot;log&quot;===t.ya.type&amp;&amp;t.yerr&lt;=0)){var h=g.tickText(t.ya,t.ya.c2l(t.yerr),&quot;hover&quot;).text;void 0!==t.yerrneg?t.yLabel+=&quot; +&quot;+h+&quot; / -&quot;+g.tickText(t.ya,t.ya.c2l(t.yerrneg),&quot;hover&quot;).text:t.yLabel+=&quot; \xb1 &quot;+h,&quot;y&quot;===e&amp;&amp;(t.distance+=1)}var p=t.hoverinfo||t.trace.hoverinfo;return p&amp;&amp;&quot;all&quot;!==p&amp;&amp;(-1===(p=Array.isArray(p)?p:p.split(&quot;+&quot;)).indexOf(&quot;x&quot;)&amp;&amp;(t.xLabel=void 0),-1===p.indexOf(&quot;y&quot;)&amp;&amp;(t.yLabel=void 0),-1===p.indexOf(&quot;z&quot;)&amp;&amp;(t.zLabel=void 0),-1===p.indexOf(&quot;text&quot;)&amp;&amp;(t.text=void 0),-1===p.indexOf(&quot;name&quot;)&amp;&amp;(t.name=void 0)),t}function O(t,e,r){var n,i,o=r.container,s=r.fullLayout,l=s._size,c=r.event,u=!!e.hLinePoint,f=!!e.vLinePoint;if(o.selectAll(&quot;.spikeline&quot;).remove(),f||u){var d=p.combine(s.plot_bgcolor,s.paper_bgcolor);if(u){var m,v,y=e.hLinePoint;n=y&amp;&amp;y.xa,&quot;cursor&quot;===(i=y&amp;&amp;y.ya).spikesnap?(m=c.pointerX,v=c.pointerY):(m=n._offset+y.x,v=i._offset+y.y);var x,b,_=a.readability(y.color,d)&lt;1.5?p.contrast(d):y.color,w=i.spikemode,T=i.spikethickness,k=i.spikecolor||_,M=g.getPxPosition(t,i);if(-1!==w.indexOf(&quot;toaxis&quot;)||-1!==w.indexOf(&quot;across&quot;)){if(-1!==w.indexOf(&quot;toaxis&quot;)&amp;&amp;(x=M,b=m),-1!==w.indexOf(&quot;across&quot;)){var A=i._counterDomainMin,S=i._counterDomainMax;&quot;free&quot;===i.anchor&amp;&amp;(A=Math.min(A,i.position),S=Math.max(S,i.position)),x=l.l+A*l.w,b=l.l+S*l.w}o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:x,x2:b,y1:v,y2:v,&quot;stroke-width&quot;:T,stroke:k,&quot;stroke-dasharray&quot;:h.dashStyle(i.spikedash,T)}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0),o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:x,x2:b,y1:v,y2:v,&quot;stroke-width&quot;:T+2,stroke:d}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0)}-1!==w.indexOf(&quot;marker&quot;)&amp;&amp;o.insert(&quot;circle&quot;,&quot;:first-child&quot;).attr({cx:M+(&quot;right&quot;!==i.side?T:-T),cy:v,r:T,fill:k}).classed(&quot;spikeline&quot;,!0)}if(f){var E,C,L=e.vLinePoint;n=L&amp;&amp;L.xa,i=L&amp;&amp;L.ya,&quot;cursor&quot;===n.spikesnap?(E=c.pointerX,C=c.pointerY):(E=n._offset+L.x,C=i._offset+L.y);var I,P,z=a.readability(L.color,d)&lt;1.5?p.contrast(d):L.color,O=n.spikemode,D=n.spikethickness,R=n.spikecolor||z,F=g.getPxPosition(t,n);if(-1!==O.indexOf(&quot;toaxis&quot;)||-1!==O.indexOf(&quot;across&quot;)){if(-1!==O.indexOf(&quot;toaxis&quot;)&amp;&amp;(I=F,P=C),-1!==O.indexOf(&quot;across&quot;)){var B=n._counterDomainMin,N=n._counterDomainMax;&quot;free&quot;===n.anchor&amp;&amp;(B=Math.min(B,n.position),N=Math.max(N,n.position)),I=l.t+(1-N)*l.h,P=l.t+(1-B)*l.h}o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:E,x2:E,y1:I,y2:P,&quot;stroke-width&quot;:D,stroke:R,&quot;stroke-dasharray&quot;:h.dashStyle(n.spikedash,D)}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0),o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:E,x2:E,y1:I,y2:P,&quot;stroke-width&quot;:D+2,stroke:d}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0)}-1!==O.indexOf(&quot;marker&quot;)&amp;&amp;o.insert(&quot;circle&quot;,&quot;:first-child&quot;).attr({cx:E,cy:F-(&quot;top&quot;!==n.side?D:-D),r:D,fill:R}).classed(&quot;spikeline&quot;,!0)}}}function D(t,e){return!e||(e.vLinePoint!==t._spikepoints.vLinePoint||e.hLinePoint!==t._spikepoints.hLinePoint)}function R(t,e){return u.plainText(t||&quot;&quot;,{len:e,allowedTags:[&quot;br&quot;,&quot;sub&quot;,&quot;sup&quot;,&quot;b&quot;,&quot;i&quot;,&quot;em&quot;]})}},{&quot;../../lib&quot;:778,&quot;../../lib/events&quot;:767,&quot;../../lib/override_cursor&quot;:789,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../legend/defaults&quot;:695,&quot;../legend/draw&quot;:696,&quot;./constants&quot;:677,&quot;./helpers&quot;:679,d3:169,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],681:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;./helpers&quot;).isUnifiedHover;e.exports=function(t,e,r,o){function s(t){o.font[t]||(o.font[t]=e.legend?e.legend.font[t]:e.font[t])}o=o||{},e&amp;&amp;a(e.hovermode)&amp;&amp;(o.font||(o.font={}),s(&quot;size&quot;),s(&quot;family&quot;),s(&quot;color&quot;),e.legend?(o.bgcolor||(o.bgcolor=i.combine(e.legend.bgcolor,e.paper_bgcolor)),o.bordercolor||(o.bordercolor=e.legend.bordercolor)):o.bgcolor||(o.bgcolor=e.paper_bgcolor)),r(&quot;hoverlabel.bgcolor&quot;,o.bgcolor),r(&quot;hoverlabel.bordercolor&quot;,o.bordercolor),r(&quot;hoverlabel.namelength&quot;,o.namelength),n.coerceFont(r,&quot;hoverlabel.font&quot;,o.font),r(&quot;hoverlabel.align&quot;,o.align)}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;./helpers&quot;:679}],682:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){function a(r,a){return void 0!==e[r]?e[r]:n.coerce(t,e,i,r,a)}var o,s=a(&quot;clickmode&quot;);return e._has(&quot;cartesian&quot;)?s.indexOf(&quot;select&quot;)&gt;-1?o=&quot;closest&quot;:(e._isHoriz=function(t,e){for(var r=e._scatterStackOpts||{},n=0;n&lt;t.length;n++){var i=t[n],a=i.xaxis+i.yaxis,o=(r[a]||{})[i.stackgroup]||{};if(&quot;h&quot;!==i.orientation&amp;&amp;&quot;h&quot;!==o.orientation)return!1}return!0}(r,e),o=e._isHoriz?&quot;y&quot;:&quot;x&quot;):o=&quot;closest&quot;,a(&quot;hovermode&quot;,o)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:684}],683:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../dragelement&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;./layout_attributes&quot;),l=t(&quot;./hover&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;fx&quot;,constants:t(&quot;./constants&quot;),schema:{layout:s},attributes:t(&quot;./attributes&quot;),layoutAttributes:s,supplyLayoutGlobalDefaults:t(&quot;./layout_global_defaults&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(t,e,r){return i.castOption(t,e,&quot;hoverlabel.&quot;+r)},castHoverinfo:function(t,e,r){return i.castOption(t,r,&quot;hoverinfo&quot;,(function(r){return i.coerceHoverinfo({hoverinfo:r},{_module:t._module},e)}))},hover:l.hover,unhover:a.unhover,loneHover:l.loneHover,loneUnhover:function(t){var e=i.isD3Selection(t)?t:n.select(t);e.selectAll(&quot;g.hovertext&quot;).remove(),e.selectAll(&quot;.spikeline&quot;).remove()},click:t(&quot;./click&quot;)}},{&quot;../../lib&quot;:778,&quot;../dragelement&quot;:662,&quot;./attributes&quot;:674,&quot;./calc&quot;:675,&quot;./click&quot;:676,&quot;./constants&quot;:677,&quot;./defaults&quot;:678,&quot;./helpers&quot;:679,&quot;./hover&quot;:680,&quot;./layout_attributes&quot;:684,&quot;./layout_defaults&quot;:685,&quot;./layout_global_defaults&quot;:686,d3:169}],684:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../plots/font_attributes&quot;)({editType:&quot;none&quot;});i.family.dflt=n.HOVERFONT,i.size.dflt=n.HOVERFONTSIZE,e.exports={clickmode:{valType:&quot;flaglist&quot;,flags:[&quot;event&quot;,&quot;select&quot;],dflt:&quot;event&quot;,editType:&quot;plot&quot;,extras:[&quot;none&quot;]},dragmode:{valType:&quot;enumerated&quot;,values:[&quot;zoom&quot;,&quot;pan&quot;,&quot;select&quot;,&quot;lasso&quot;,&quot;drawclosedpath&quot;,&quot;drawopenpath&quot;,&quot;drawline&quot;,&quot;drawrect&quot;,&quot;drawcircle&quot;,&quot;orbit&quot;,&quot;turntable&quot;,!1],dflt:&quot;zoom&quot;,editType:&quot;modebar&quot;},hovermode:{valType:&quot;enumerated&quot;,values:[&quot;x&quot;,&quot;y&quot;,&quot;closest&quot;,!1,&quot;x unified&quot;,&quot;y unified&quot;],editType:&quot;modebar&quot;},hoverdistance:{valType:&quot;integer&quot;,min:-1,dflt:20,editType:&quot;none&quot;},spikedistance:{valType:&quot;integer&quot;,min:-1,dflt:20,editType:&quot;none&quot;},hoverlabel:{bgcolor:{valType:&quot;color&quot;,editType:&quot;none&quot;},bordercolor:{valType:&quot;color&quot;,editType:&quot;none&quot;},font:i,align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;right&quot;,&quot;auto&quot;],dflt:&quot;auto&quot;,editType:&quot;none&quot;},namelength:{valType:&quot;integer&quot;,min:-1,dflt:15,editType:&quot;none&quot;},editType:&quot;none&quot;},selectdirection:{valType:&quot;enumerated&quot;,values:[&quot;h&quot;,&quot;v&quot;,&quot;d&quot;,&quot;any&quot;],dflt:&quot;any&quot;,editType:&quot;none&quot;}}},{&quot;../../plots/font_attributes&quot;:856,&quot;./constants&quot;:677}],685:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./helpers&quot;).isUnifiedHover,a=t(&quot;./layout_attributes&quot;),o=t(&quot;./hovermode_defaults&quot;),s=t(&quot;./hoverlabel_defaults&quot;);e.exports=function(t,e,r){function l(r,i){return n.coerce(t,e,a,r,i)}var c=o(t,e,r);c&amp;&amp;(l(&quot;hoverdistance&quot;),l(&quot;spikedistance&quot;,i(c)?-1:void 0)),&quot;select&quot;===l(&quot;dragmode&quot;)&amp;&amp;l(&quot;selectdirection&quot;);var u=e._has(&quot;mapbox&quot;),f=e._has(&quot;geo&quot;),h=e._basePlotModules.length;&quot;zoom&quot;===e.dragmode&amp;&amp;((u||f)&amp;&amp;1===h||u&amp;&amp;f&amp;&amp;2===h)&amp;&amp;(e.dragmode=&quot;pan&quot;),s(t,e,l)}},{&quot;../../lib&quot;:778,&quot;./helpers&quot;:679,&quot;./hoverlabel_defaults&quot;:681,&quot;./hovermode_defaults&quot;:682,&quot;./layout_attributes&quot;:684}],686:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./hoverlabel_defaults&quot;),a=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){i(t,e,(function(r,i){return n.coerce(t,e,a,r,i)}))}},{&quot;../../lib&quot;:778,&quot;./hoverlabel_defaults&quot;:681,&quot;./layout_attributes&quot;:684}],687:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/regex&quot;).counter,a=t(&quot;../../plots/domain&quot;).attributes,o=t(&quot;../../plots/cartesian/constants&quot;).idRegex,s=t(&quot;../../plot_api/plot_template&quot;),l={rows:{valType:&quot;integer&quot;,min:1,editType:&quot;plot&quot;},roworder:{valType:&quot;enumerated&quot;,values:[&quot;top to bottom&quot;,&quot;bottom to top&quot;],dflt:&quot;top to bottom&quot;,editType:&quot;plot&quot;},columns:{valType:&quot;integer&quot;,min:1,editType:&quot;plot&quot;},subplots:{valType:&quot;info_array&quot;,freeLength:!0,dimensions:2,items:{valType:&quot;enumerated&quot;,values:[i(&quot;xy&quot;).toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},xaxes:{valType:&quot;info_array&quot;,freeLength:!0,items:{valType:&quot;enumerated&quot;,values:[o.x.toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},yaxes:{valType:&quot;info_array&quot;,freeLength:!0,items:{valType:&quot;enumerated&quot;,values:[o.y.toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},pattern:{valType:&quot;enumerated&quot;,values:[&quot;independent&quot;,&quot;coupled&quot;],dflt:&quot;coupled&quot;,editType:&quot;plot&quot;},xgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},ygap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},domain:a({name:&quot;grid&quot;,editType:&quot;plot&quot;,noGridCell:!0},{}),xside:{valType:&quot;enumerated&quot;,values:[&quot;bottom&quot;,&quot;bottom plot&quot;,&quot;top plot&quot;,&quot;top&quot;],dflt:&quot;bottom plot&quot;,editType:&quot;plot&quot;},yside:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;left plot&quot;,&quot;right plot&quot;,&quot;right&quot;],dflt:&quot;left plot&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;};function c(t,e,r){var n=e[r+&quot;axes&quot;],i=Object.keys((t._splomAxes||{})[r]||{});return Array.isArray(n)?n:i.length?i:void 0}function u(t,e,r,n,i,a){var o=e(t+&quot;gap&quot;,r),s=e(&quot;domain.&quot;+t);e(t+&quot;side&quot;,n);for(var l=new Array(i),c=s[0],u=(s[1]-c)/(i-o),f=u*(1-o),h=0;h&lt;i;h++){var p=c+u*h;l[a?i-1-h:h]=[p,p+f]}return l}function f(t,e,r,n,i){var a,o=new Array(r);function s(t,r){-1!==e.indexOf(r)&amp;&amp;void 0===n[r]?(o[t]=r,n[r]=t):o[t]=&quot;&quot;}if(Array.isArray(t))for(a=0;a&lt;r;a++)s(a,t[a]);else for(s(0,i),a=1;a&lt;r;a++)s(a,i+(a+1));return o}e.exports={moduleType:&quot;component&quot;,name:&quot;grid&quot;,schema:{layout:{grid:l}},layoutAttributes:l,sizeDefaults:function(t,e){var r=t.grid||{},i=c(e,r,&quot;x&quot;),a=c(e,r,&quot;y&quot;);if(t.grid||i||a){var o,f,h=Array.isArray(r.subplots)&amp;&amp;Array.isArray(r.subplots[0]),p=Array.isArray(i),d=Array.isArray(a),g=p&amp;&amp;i!==r.xaxes&amp;&amp;d&amp;&amp;a!==r.yaxes;h?(o=r.subplots.length,f=r.subplots[0].length):(d&amp;&amp;(o=a.length),p&amp;&amp;(f=i.length));var m=s.newContainer(e,&quot;grid&quot;),v=k(&quot;rows&quot;,o),y=k(&quot;columns&quot;,f);if(v*y&gt;1){if(!h&amp;&amp;!p&amp;&amp;!d)&quot;independent&quot;===k(&quot;pattern&quot;)&amp;&amp;(h=!0);m._hasSubplotGrid=h;var x,b,_=&quot;top to bottom&quot;===k(&quot;roworder&quot;),w=h?.2:.1,T=h?.3:.1;g&amp;&amp;e._splomGridDflt&amp;&amp;(x=e._splomGridDflt.xside,b=e._splomGridDflt.yside),m._domains={x:u(&quot;x&quot;,k,w,x,y),y:u(&quot;y&quot;,k,T,b,v,_)}}else delete e.grid}function k(t,e){return n.coerce(r,m,l,t,e)}},contentDefaults:function(t,e){var r=e.grid;if(r&amp;&amp;r._domains){var n,i,a,o,s,l,u,h=t.grid||{},p=e._subplots,d=r._hasSubplotGrid,g=r.rows,m=r.columns,v=&quot;independent&quot;===r.pattern,y=r._axisMap={};if(d){var x=h.subplots||[];l=r.subplots=new Array(g);var b=1;for(n=0;n&lt;g;n++){var _=l[n]=new Array(m),w=x[n]||[];for(i=0;i&lt;m;i++)if(v?(s=1===b?&quot;xy&quot;:&quot;x&quot;+b+&quot;y&quot;+b,b++):s=w[i],_[i]=&quot;&quot;,-1!==p.cartesian.indexOf(s)){if(u=s.indexOf(&quot;y&quot;),a=s.slice(0,u),o=s.slice(u),void 0!==y[a]&amp;&amp;y[a]!==i||void 0!==y[o]&amp;&amp;y[o]!==n)continue;_[i]=s,y[a]=i,y[o]=n}}}else{var T=c(e,h,&quot;x&quot;),k=c(e,h,&quot;y&quot;);r.xaxes=f(T,p.xaxis,m,y,&quot;x&quot;),r.yaxes=f(k,p.yaxis,g,y,&quot;y&quot;)}var M=r._anchors={},A=&quot;top to bottom&quot;===r.roworder;for(var S in y){var E,C,L,I=S.charAt(0),P=r[I+&quot;side&quot;];if(P.length&lt;8)M[S]=&quot;free&quot;;else if(&quot;x&quot;===I){if(&quot;t&quot;===P.charAt(0)===A?(E=0,C=1,L=g):(E=g-1,C=-1,L=-1),d){var z=y[S];for(n=E;n!==L;n+=C)if((s=l[n][z])&amp;&amp;(u=s.indexOf(&quot;y&quot;),s.slice(0,u)===S)){M[S]=s.slice(u);break}}else for(n=E;n!==L;n+=C)if(o=r.yaxes[n],-1!==p.cartesian.indexOf(S+o)){M[S]=o;break}}else if(&quot;l&quot;===P.charAt(0)?(E=0,C=1,L=m):(E=m-1,C=-1,L=-1),d){var O=y[S];for(n=E;n!==L;n+=C)if((s=l[O][n])&amp;&amp;(u=s.indexOf(&quot;y&quot;),s.slice(u)===S)){M[S]=s.slice(0,u);break}}else for(n=E;n!==L;n+=C)if(a=r.xaxes[n],-1!==p.cartesian.indexOf(a+S)){M[S]=a;break}}}}}},{&quot;../../lib&quot;:778,&quot;../../lib/regex&quot;:795,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834,&quot;../../plots/domain&quot;:855}],688:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/constants&quot;),i=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=i(&quot;image&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;arraydraw&quot;},source:{valType:&quot;string&quot;,editType:&quot;arraydraw&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;arraydraw&quot;},sizex:{valType:&quot;number&quot;,dflt:0,editType:&quot;arraydraw&quot;},sizey:{valType:&quot;number&quot;,dflt:0,editType:&quot;arraydraw&quot;},sizing:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;contain&quot;,&quot;stretch&quot;],dflt:&quot;contain&quot;,editType:&quot;arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},x:{valType:&quot;any&quot;,dflt:0,editType:&quot;arraydraw&quot;},y:{valType:&quot;any&quot;,dflt:0,editType:&quot;arraydraw&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;arraydraw&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;arraydraw&quot;},xref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,n.idRegex.x.toString()],dflt:&quot;paper&quot;,editType:&quot;arraydraw&quot;},yref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,n.idRegex.y.toString()],dflt:&quot;paper&quot;,editType:&quot;arraydraw&quot;},editType:&quot;arraydraw&quot;})},{&quot;../../constants/axis_placeable_objects&quot;:746,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834}],689:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib/to_log_range&quot;);e.exports=function(t,e,r,a){e=e||{};var o=&quot;log&quot;===r&amp;&amp;&quot;linear&quot;===e.type,s=&quot;linear&quot;===r&amp;&amp;&quot;log&quot;===e.type;if(o||s)for(var l,c,u=t._fullLayout.images,f=e._id.charAt(0),h=0;h&lt;u.length;h++)if(c=&quot;images[&quot;+h+&quot;].&quot;,(l=u[h])[f+&quot;ref&quot;]===e._id){var p=l[f],d=l[&quot;size&quot;+f],g=null,m=null;if(o){g=i(p,e.range);var v=d/Math.pow(10,g)/2;m=2*Math.log(v+Math.sqrt(1+v*v))/Math.LN10}else m=(g=Math.pow(10,p))*(Math.pow(10,d/2)-Math.pow(10,-d/2));n(g)?n(m)||(m=null):(g=null,m=null),a(c+f,g),a(c+&quot;size&quot;+f,m)}}},{&quot;../../lib/to_log_range&quot;:805,&quot;fast-isnumeric&quot;:241}],690:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}var s=a(&quot;source&quot;);if(!a(&quot;visible&quot;,!!s))return e;a(&quot;layer&quot;),a(&quot;xanchor&quot;),a(&quot;yanchor&quot;),a(&quot;sizex&quot;),a(&quot;sizey&quot;),a(&quot;sizing&quot;),a(&quot;opacity&quot;);for(var l={_fullLayout:r},c=[&quot;x&quot;,&quot;y&quot;],u=0;u&lt;2;u++){var f=c[u],h=i.coerceRef(t,e,l,f,&quot;paper&quot;,void 0);if(&quot;paper&quot;!==h)i.getFromId(l,h)._imgIndices.push(e._index);i.coercePosition(e,l,a,h,f,0)}return e}e.exports=function(t,e){a(t,e,{name:&quot;images&quot;,handleItemDefaults:s})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:688}],691:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../drawing&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/axis_ids&quot;),s=t(&quot;../../constants/xmlns_namespaces&quot;);e.exports=function(t){var e,r,l=t._fullLayout,c=[],u={},f=[];for(r=0;r&lt;l.images.length;r++){var h=l.images[r];if(h.visible)if(&quot;below&quot;===h.layer&amp;&amp;&quot;paper&quot;!==h.xref&amp;&amp;&quot;paper&quot;!==h.yref){e=o.ref2id(h.xref)+o.ref2id(h.yref);var p=l._plots[e];if(!p){f.push(h);continue}p.mainplot&amp;&amp;(e=p.mainplot.id),u[e]||(u[e]=[]),u[e].push(h)}else&quot;above&quot;===h.layer?c.push(h):f.push(h)}var d={left:{sizing:&quot;xMin&quot;,offset:0},center:{sizing:&quot;xMid&quot;,offset:-.5},right:{sizing:&quot;xMax&quot;,offset:-1}},g={top:{sizing:&quot;YMin&quot;,offset:0},middle:{sizing:&quot;YMid&quot;,offset:-.5},bottom:{sizing:&quot;YMax&quot;,offset:-1}};function m(e){var r=n.select(this);if(this._imgSrc!==e.source)if(r.attr(&quot;xmlns&quot;,s.svg),e.source&amp;&amp;&quot;data:&quot;===e.source.slice(0,5))r.attr(&quot;xlink:href&quot;,e.source),this._imgSrc=e.source;else{var i=new Promise(function(t){var n=new Image;function i(){r.remove(),t()}this.img=n,n.setAttribute(&quot;crossOrigin&quot;,&quot;anonymous&quot;),n.onerror=i,n.onload=function(){var e=document.createElement(&quot;canvas&quot;);e.width=this.width,e.height=this.height,e.getContext(&quot;2d&quot;).drawImage(this,0,0);var n=e.toDataURL(&quot;image/png&quot;);r.attr(&quot;xlink:href&quot;,n),t()},r.on(&quot;error&quot;,i),n.src=e.source,this._imgSrc=e.source}.bind(this));t._promises.push(i)}}function v(e){var r,o,s=n.select(this),c=a.getFromId(t,e.xref),u=a.getFromId(t,e.yref),f=&quot;domain&quot;===a.getRefType(e.xref),h=&quot;domain&quot;===a.getRefType(e.yref),p=l._size;r=void 0!==c?&quot;string&quot;==typeof e.xref&amp;&amp;f?c._length*e.sizex:Math.abs(c.l2p(e.sizex)-c.l2p(0)):e.sizex*p.w,o=void 0!==u?&quot;string&quot;==typeof e.yref&amp;&amp;h?u._length*e.sizey:Math.abs(u.l2p(e.sizey)-u.l2p(0)):e.sizey*p.h;var m,v,y=r*d[e.xanchor].offset,x=o*g[e.yanchor].offset,b=d[e.xanchor].sizing+g[e.yanchor].sizing;switch(m=void 0!==c?&quot;string&quot;==typeof e.xref&amp;&amp;f?c._length*e.x+c._offset:c.r2p(e.x)+c._offset:e.x*p.w+p.l,m+=y,v=void 0!==u?&quot;string&quot;==typeof e.yref&amp;&amp;h?u._length*(1-e.y)+u._offset:u.r2p(e.y)+u._offset:p.h-e.y*p.h+p.t,v+=x,e.sizing){case&quot;fill&quot;:b+=&quot; slice&quot;;break;case&quot;stretch&quot;:b=&quot;none&quot;}s.attr({x:m,y:v,width:r,height:o,preserveAspectRatio:b,opacity:e.opacity});var _=(c&amp;&amp;&quot;domain&quot;!==a.getRefType(e.xref)?c._id:&quot;&quot;)+(u&amp;&amp;&quot;domain&quot;!==a.getRefType(e.yref)?u._id:&quot;&quot;);i.setClipUrl(s,_?&quot;clip&quot;+l._uid+_:null,t)}var y=l._imageLowerLayer.selectAll(&quot;image&quot;).data(f),x=l._imageUpperLayer.selectAll(&quot;image&quot;).data(c);y.enter().append(&quot;image&quot;),x.enter().append(&quot;image&quot;),y.exit().remove(),x.exit().remove(),y.each((function(t){m.bind(this)(t),v.bind(this)(t)})),x.each((function(t){m.bind(this)(t),v.bind(this)(t)}));var b=Object.keys(l._plots);for(r=0;r&lt;b.length;r++){e=b[r];var _=l._plots[e];if(_.imagelayer){var w=_.imagelayer.selectAll(&quot;image&quot;).data(u[e]||[]);w.enter().append(&quot;image&quot;),w.exit().remove(),w.each((function(t){m.bind(this)(t),v.bind(this)(t)}))}}}},{&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../drawing&quot;:665,d3:169}],692:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;images&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;images&quot;),draw:t(&quot;./draw&quot;),convertCoords:t(&quot;./convert_coords&quot;)}},{&quot;../../plots/cartesian/include_components&quot;:840,&quot;./attributes&quot;:688,&quot;./convert_coords&quot;:689,&quot;./defaults&quot;:690,&quot;./draw&quot;:691}],693:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;);e.exports={bgcolor:{valType:&quot;color&quot;,editType:&quot;legend&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;legend&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;legend&quot;},font:n({editType:&quot;legend&quot;}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;v&quot;,editType:&quot;legend&quot;},traceorder:{valType:&quot;flaglist&quot;,flags:[&quot;reversed&quot;,&quot;grouped&quot;],extras:[&quot;normal&quot;],editType:&quot;legend&quot;},tracegroupgap:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;legend&quot;},itemsizing:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;constant&quot;],dflt:&quot;trace&quot;,editType:&quot;legend&quot;},itemwidth:{valType:&quot;number&quot;,min:30,dflt:30,editType:&quot;legend&quot;},itemclick:{valType:&quot;enumerated&quot;,values:[&quot;toggle&quot;,&quot;toggleothers&quot;,!1],dflt:&quot;toggle&quot;,editType:&quot;legend&quot;},itemdoubleclick:{valType:&quot;enumerated&quot;,values:[&quot;toggle&quot;,&quot;toggleothers&quot;,!1],dflt:&quot;toggleothers&quot;,editType:&quot;legend&quot;},x:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;legend&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;legend&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;legend&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;legend&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},valign:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;,editType:&quot;legend&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;legend&quot;},font:n({editType:&quot;legend&quot;}),side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;left&quot;,&quot;top left&quot;],editType:&quot;legend&quot;},editType:&quot;legend&quot;},editType:&quot;legend&quot;}},{&quot;../../plots/font_attributes&quot;:856,&quot;../color/attributes&quot;:642}],694:[function(t,e,r){&quot;use strict&quot;;e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:&quot;#808BA4&quot;,scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},{}],695:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../../plots/layout_attributes&quot;),l=t(&quot;./helpers&quot;);e.exports=function(t,e,r){for(var c=t.legend||{},u=0,f=!1,h=&quot;normal&quot;,p=0;p&lt;r.length;p++){var d=r[p];d.visible&amp;&amp;((d.showlegend||d._dfltShowLegend&amp;&amp;!(d._module&amp;&amp;d._module.attributes&amp;&amp;d._module.attributes.showlegend&amp;&amp;!1===d._module.attributes.showlegend.dflt))&amp;&amp;(u++,d.showlegend&amp;&amp;(f=!0,(n.traceIs(d,&quot;pie-like&quot;)||!0===d._input.showlegend)&amp;&amp;u++)),(n.traceIs(d,&quot;bar&quot;)&amp;&amp;&quot;stack&quot;===e.barmode||-1!==[&quot;tonextx&quot;,&quot;tonexty&quot;].indexOf(d.fill))&amp;&amp;(h=l.isGrouped({traceorder:h})?&quot;grouped+reversed&quot;:&quot;reversed&quot;),void 0!==d.legendgroup&amp;&amp;&quot;&quot;!==d.legendgroup&amp;&amp;(h=l.isReversed({traceorder:h})?&quot;reversed+grouped&quot;:&quot;grouped&quot;))}var g=i.coerce(t,e,s,&quot;showlegend&quot;,f&amp;&amp;u&gt;1);if(!1!==g||c.uirevision){var m=a.newContainer(e,&quot;legend&quot;);if(_(&quot;uirevision&quot;,e.uirevision),!1!==g){_(&quot;bgcolor&quot;,e.paper_bgcolor),_(&quot;bordercolor&quot;),_(&quot;borderwidth&quot;),i.coerceFont(_,&quot;font&quot;,e.font);var v,y,x,b=_(&quot;orientation&quot;);&quot;h&quot;===b?(v=0,n.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(t.xaxis)?(y=1.1,x=&quot;bottom&quot;):(y=-.1,x=&quot;top&quot;)):(v=1.02,y=1,x=&quot;auto&quot;),_(&quot;traceorder&quot;,h),l.isGrouped(e.legend)&amp;&amp;_(&quot;tracegroupgap&quot;),_(&quot;itemsizing&quot;),_(&quot;itemwidth&quot;),_(&quot;itemclick&quot;),_(&quot;itemdoubleclick&quot;),_(&quot;x&quot;,v),_(&quot;xanchor&quot;),_(&quot;y&quot;,y),_(&quot;yanchor&quot;,x),_(&quot;valign&quot;),i.noneOrAll(c,m,[&quot;x&quot;,&quot;y&quot;]),_(&quot;title.text&quot;)&amp;&amp;(_(&quot;title.side&quot;,&quot;h&quot;===b?&quot;left&quot;:&quot;top&quot;),i.coerceFont(_,&quot;title.font&quot;,e.font))}}function _(t,e){return i.coerce(c,m,o,t,e)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/layout_attributes&quot;:882,&quot;../../registry&quot;:911,&quot;./attributes&quot;:693,&quot;./helpers&quot;:699}],696:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib/events&quot;),l=t(&quot;../dragelement&quot;),c=t(&quot;../drawing&quot;),u=t(&quot;../color&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;./handle_click&quot;),p=t(&quot;./constants&quot;),d=t(&quot;../../constants/alignment&quot;),g=d.LINE_SPACING,m=d.FROM_TL,v=d.FROM_BR,y=t(&quot;./get_legend_data&quot;),x=t(&quot;./style&quot;),b=t(&quot;./helpers&quot;);function _(t,e,r,n,i){var a=r.data()[0][0].trace,l={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a._expandedIndex,data:t.data,layout:t.layout,frames:t._transitionData._frames,config:t._context,fullData:t._fullData,fullLayout:t._fullLayout};if(a._group&amp;&amp;(l.group=a._group),o.traceIs(a,&quot;pie-like&quot;)&amp;&amp;(l.label=r.datum()[0].label),!1!==s.triggerHandler(t,&quot;plotly_legendclick&quot;,l))if(1===n)e._clickTimeout=setTimeout((function(){h(r,t,n)}),t._context.doubleClickDelay);else if(2===n){e._clickTimeout&amp;&amp;clearTimeout(e._clickTimeout),t._legendMouseDownTime=0,!1!==s.triggerHandler(t,&quot;plotly_legenddoubleclick&quot;,l)&amp;&amp;h(r,t,n)}}function w(t,e,r){var n,a=t.data()[0][0],s=a.trace,l=o.traceIs(s,&quot;pie-like&quot;),u=s.index,h=r._main&amp;&amp;e._context.edits.legendText&amp;&amp;!l,d=r._maxNameLength;r.entries?n=a.text:(n=l?a.label:s.name,s._meta&amp;&amp;(n=i.templateString(n,s._meta)));var g=i.ensureSingle(t,&quot;text&quot;,&quot;legendtext&quot;);g.attr(&quot;text-anchor&quot;,&quot;start&quot;).call(c.font,r.font).text(h?T(n,d):n);var m=r.itemwidth+2*p.itemGap;f.positionText(g,m,0),h?g.call(f.makeEditable,{gd:e,text:n}).call(M,t,e,r).on(&quot;edit&quot;,(function(n){this.text(T(n,d)).call(M,t,e,r);var s=a.trace._fullInput||{},l={};if(o.hasTransform(s,&quot;groupby&quot;)){var c=o.getTransformIndices(s,&quot;groupby&quot;),f=c[c.length-1],h=i.keyedContainer(s,&quot;transforms[&quot;+f+&quot;].styles&quot;,&quot;target&quot;,&quot;value.name&quot;);h.set(a.trace._group,n),l=h.constructUpdate()}else l.name=n;return o.call(&quot;_guiRestyle&quot;,e,l,u)})):M(g,t,e,r)}function T(t,e){var r=Math.max(4,e);if(t&amp;&amp;t.trim().length&gt;=r/2)return t;for(var n=r-(t=t||&quot;&quot;).length;n&gt;0;n--)t+=&quot; &quot;;return t}function k(t,e){var r,a=e._context.doubleClickDelay,o=1,s=i.ensureSingle(t,&quot;rect&quot;,&quot;legendtoggle&quot;,(function(t){e._context.staticPlot||t.style(&quot;cursor&quot;,&quot;pointer&quot;).attr(&quot;pointer-events&quot;,&quot;all&quot;),t.call(u.fill,&quot;rgba(0,0,0,0)&quot;)}));e._context.staticPlot||(s.on(&quot;mousedown&quot;,(function(){(r=(new Date).getTime())-e._legendMouseDownTime&lt;a?o+=1:(o=1,e._legendMouseDownTime=r)})),s.on(&quot;mouseup&quot;,(function(){if(!e._dragged&amp;&amp;!e._editing){var r=e._fullLayout.legend;(new Date).getTime()-e._legendMouseDownTime&gt;a&amp;&amp;(o=Math.max(o-1,1)),_(e,r,t,o,n.event)}})))}function M(t,e,r,n){n._main||t.attr(&quot;data-notex&quot;,!0),f.convertToTspans(t,r,(function(){!function(t,e,r){var n=t.data()[0][0];if(r._main&amp;&amp;n&amp;&amp;!n.trace.showlegend)return void t.remove();var i=t.select(&quot;g[class*=math-group]&quot;),a=i.node();r||(r=e._fullLayout.legend);var o,s,l=r.borderwidth,u=(n?r:r.title).font.size*g;if(a){var h=c.bBox(a);o=h.height,s=h.width,n?c.setTranslate(i,0,.25*o):c.setTranslate(i,l,.75*o+l)}else{var d=t.select(n?&quot;.legendtext&quot;:&quot;.legendtitletext&quot;),m=f.lineCount(d),v=d.node();o=u*m,s=v?c.bBox(v).width:0;var y=u*((m-1)/2-.3);if(n){var x=r.itemwidth+2*p.itemGap;f.positionText(d,x,-y)}else f.positionText(d,p.titlePad+l,u+l)}n?(n.lineHeight=u,n.height=Math.max(o,16)+3,n.width=s):(r._titleWidth=s,r._titleHeight=o)}(e,r,n)}))}function A(t){return i.isRightAnchor(t)?&quot;right&quot;:i.isCenterAnchor(t)?&quot;center&quot;:&quot;left&quot;}function S(t){return i.isBottomAnchor(t)?&quot;bottom&quot;:i.isMiddleAnchor(t)?&quot;middle&quot;:&quot;top&quot;}e.exports=function(t,e){var r,s=t._fullLayout,f=&quot;legend&quot;+s._uid;if(e?(r=e.layer,f+=&quot;-hover&quot;):((e=s.legend||{})._main=!0,r=s._infolayer),r){var h;if(t._legendMouseDownTime||(t._legendMouseDownTime=0),e._main){if(!t.calcdata)return;h=s.showlegend&amp;&amp;y(t.calcdata,e)}else{if(!e.entries)return;h=y(e.entries,e)}var d=s.hiddenlabels||[];if(e._main&amp;&amp;(!s.showlegend||!h.length))return r.selectAll(&quot;.legend&quot;).remove(),s._topdefs.select(&quot;#&quot;+f).remove(),a.autoMargin(t,&quot;legend&quot;);var g=i.ensureSingle(r,&quot;g&quot;,&quot;legend&quot;,(function(t){e._main&amp;&amp;t.attr(&quot;pointer-events&quot;,&quot;all&quot;)})),T=i.ensureSingleById(s._topdefs,&quot;clipPath&quot;,f,(function(t){t.append(&quot;rect&quot;)})),E=i.ensureSingle(g,&quot;rect&quot;,&quot;bg&quot;,(function(t){t.attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)}));E.call(u.stroke,e.bordercolor).call(u.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;);var C=i.ensureSingle(g,&quot;g&quot;,&quot;scrollbox&quot;),L=e.title;if(e._titleWidth=0,e._titleHeight=0,L.text){var I=i.ensureSingle(C,&quot;text&quot;,&quot;legendtitletext&quot;);I.attr(&quot;text-anchor&quot;,&quot;start&quot;).call(c.font,L.font).text(L.text),M(I,C,t,e)}else C.selectAll(&quot;.legendtitletext&quot;).remove();var P=i.ensureSingle(g,&quot;rect&quot;,&quot;scrollbar&quot;,(function(t){t.attr(p.scrollBarEnterAttrs).call(u.fill,p.scrollBarColor)})),z=C.selectAll(&quot;g.groups&quot;).data(h);z.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;groups&quot;),z.exit().remove();var O=z.selectAll(&quot;g.traces&quot;).data(i.identity);O.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;traces&quot;),O.exit().remove(),O.style(&quot;opacity&quot;,(function(t){var e=t[0].trace;return o.traceIs(e,&quot;pie-like&quot;)?-1!==d.indexOf(t[0].label)?.5:1:&quot;legendonly&quot;===e.visible?.5:1})).each((function(){n.select(this).call(w,t,e)})).call(x,t,e).each((function(){e._main&amp;&amp;n.select(this).call(k,t)})),i.syncOrAsync([a.previousPromises,function(){return function(t,e,r,i){var a=t._fullLayout;i||(i=a.legend);var o=a._size,s=b.isVertical(i),l=b.isGrouped(i),u=i.borderwidth,f=2*u,h=p.itemGap,d=i.itemwidth+2*h,g=2*(u+h),m=S(i),v=i.y&lt;0||0===i.y&amp;&amp;&quot;top&quot;===m,y=i.y&gt;1||1===i.y&amp;&amp;&quot;bottom&quot;===m;i._maxHeight=Math.max(v||y?a.height/2:o.h,30);var x=0;i._width=0,i._height=0;var _=function(t){var e=0,r=0,n=t.title.side;n&amp;&amp;(-1!==n.indexOf(&quot;left&quot;)&amp;&amp;(e=t._titleWidth),-1!==n.indexOf(&quot;top&quot;)&amp;&amp;(r=t._titleHeight));return[e,r]}(i);if(s)r.each((function(t){var e=t[0].height;c.setTranslate(this,u+_[0],u+_[1]+i._height+e/2+h),i._height+=e,i._width=Math.max(i._width,t[0].width)})),x=d+i._width,i._width+=h+d+f,i._height+=g,l&amp;&amp;(e.each((function(t,e){c.setTranslate(this,0,e*i.tracegroupgap)})),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var w=A(i),T=i.x&lt;0||0===i.x&amp;&amp;&quot;right&quot;===w,k=i.x&gt;1||1===i.x&amp;&amp;&quot;left&quot;===w,M=y||v,E=a.width/2;i._maxWidth=Math.max(T?M&amp;&amp;&quot;left&quot;===w?o.l+o.w:E:k?M&amp;&amp;&quot;right&quot;===w?o.r+o.w:E:o.w,2*d);var C=0,L=0;r.each((function(t){var e=t[0].width+d;C=Math.max(C,e),L+=e})),x=null;var I=0;if(l){var P=0,z=0,O=0;e.each((function(){var t=0,e=0;n.select(this).selectAll(&quot;g.traces&quot;).each((function(r){var n=r[0].height;c.setTranslate(this,_[0],_[1]+u+h+n/2+e),e+=n,t=Math.max(t,d+r[0].width)})),P=Math.max(P,e);var r=t+h;r+u+z&gt;i._maxWidth&amp;&amp;(I=Math.max(I,z),z=0,O+=P+i.tracegroupgap,P=e),c.setTranslate(this,z,O),z+=r})),i._width=Math.max(I,z)+u,i._height=O+P+g}else{var D=r.size(),R=L+f+(D-1)*h&lt;i._maxWidth,F=0,B=0,N=0,j=0;r.each((function(t){var e=t[0].height,r=d+t[0].width,n=(R?r:C)+h;n+u+B-h&gt;=i._maxWidth&amp;&amp;(I=Math.max(I,j),B=0,N+=F,i._height+=F,F=0),c.setTranslate(this,_[0]+u+B,_[1]+u+N+e/2+h),j=B+r+h,B+=n,F=Math.max(F,e)})),R?(i._width=B+f,i._height=F+g):(i._width=Math.max(I,j)+f,i._height+=F+g)}}i._width=Math.ceil(Math.max(i._width+_[0],i._titleWidth+2*(u+p.titlePad))),i._height=Math.ceil(Math.max(i._height+_[1],i._titleHeight+2*(u+p.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var U=t._context.edits,V=U.legendText||U.legendPosition;r.each((function(t){var e=n.select(this).select(&quot;.legendtoggle&quot;),r=t[0].height,i=V?d:x||d+t[0].width;s||(i+=h/2),c.setRect(e,0,-r/2,i,r)}))}(t,z,O,e)},function(){if(!e._main||!function(t){var e=t._fullLayout.legend,r=A(e),n=S(e);return a.autoMargin(t,&quot;legend&quot;,{x:e.x,y:e.y,l:e._width*m[r],r:e._width*v[r],b:e._effHeight*v[n],t:e._effHeight*m[n]})}(t)){var u,h,d,y,x=s._size,b=e.borderwidth,w=x.l+x.w*e.x-m[A(e)]*e._width,k=x.t+x.h*(1-e.y)-m[S(e)]*e._effHeight;if(e._main&amp;&amp;s.margin.autoexpand){var M=w,L=k;w=i.constrain(w,0,s.width-e._width),k=i.constrain(k,0,s.height-e._effHeight),w!==M&amp;&amp;i.log(&quot;Constrain legend.x to make legend fit inside graph&quot;),k!==L&amp;&amp;i.log(&quot;Constrain legend.y to make legend fit inside graph&quot;)}if(e._main&amp;&amp;c.setTranslate(g,w,k),P.on(&quot;.drag&quot;,null),g.on(&quot;wheel&quot;,null),!e._main||e._height&lt;=e._maxHeight||t._context.staticPlot){var I=e._effHeight;e._main||(I=e._height),E.attr({width:e._width-b,height:I-b,x:b/2,y:b/2}),c.setTranslate(C,0,0),T.select(&quot;rect&quot;).attr({width:e._width-2*b,height:I-2*b,x:b,y:b}),c.setClipUrl(C,f,t),c.setRect(P,0,0,0,0),delete e._scrollY}else{var z,O,D,R=Math.max(p.scrollBarMinHeight,e._effHeight*e._effHeight/e._height),F=e._effHeight-R-2*p.scrollBarMargin,B=e._height-e._effHeight,N=F/B,j=Math.min(e._scrollY||0,B);E.attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-b,x:b/2,y:b/2}),T.select(&quot;rect&quot;).attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-2*b,x:b,y:b+j}),c.setClipUrl(C,f,t),q(j,R,N),g.on(&quot;wheel&quot;,(function(){q(j=i.constrain(e._scrollY+n.event.deltaY/F*B,0,B),R,N),0!==j&amp;&amp;j!==B&amp;&amp;n.event.preventDefault()}));var U=n.behavior.drag().on(&quot;dragstart&quot;,(function(){var t=n.event.sourceEvent;z=&quot;touchstart&quot;===t.type?t.changedTouches[0].clientY:t.clientY,D=j})).on(&quot;drag&quot;,(function(){var t=n.event.sourceEvent;2===t.buttons||t.ctrlKey||(O=&quot;touchmove&quot;===t.type?t.changedTouches[0].clientY:t.clientY,q(j=function(t,e,r){var n=(r-e)/N+t;return i.constrain(n,0,B)}(D,z,O),R,N))}));P.call(U);var V=n.behavior.drag().on(&quot;dragstart&quot;,(function(){var t=n.event.sourceEvent;&quot;touchstart&quot;===t.type&amp;&amp;(z=t.changedTouches[0].clientY,D=j)})).on(&quot;drag&quot;,(function(){var t=n.event.sourceEvent;&quot;touchmove&quot;===t.type&amp;&amp;(O=t.changedTouches[0].clientY,q(j=function(t,e,r){var n=(e-r)/N+t;return i.constrain(n,0,B)}(D,z,O),R,N))}));C.call(V)}if(t._context.edits.legendPosition)g.classed(&quot;cursor-move&quot;,!0),l.init({element:g.node(),gd:t,prepFn:function(){var t=c.getTranslate(g);d=t.x,y=t.y},moveFn:function(t,r){var n=d+t,i=y+r;c.setTranslate(g,n,i),u=l.align(n,0,x.l,x.l+x.w,e.xanchor),h=l.align(i,0,x.t+x.h,x.t,e.yanchor)},doneFn:function(){void 0!==u&amp;&amp;void 0!==h&amp;&amp;o.call(&quot;_guiRelayout&quot;,t,{&quot;legend.x&quot;:u,&quot;legend.y&quot;:h})},clickFn:function(e,n){var i=r.selectAll(&quot;g.traces&quot;).filter((function(){var t=this.getBoundingClientRect();return n.clientX&gt;=t.left&amp;&amp;n.clientX&lt;=t.right&amp;&amp;n.clientY&gt;=t.top&amp;&amp;n.clientY&lt;=t.bottom}));i.size()&gt;0&amp;&amp;_(t,g,i,e,n)}})}function q(r,n,i){e._scrollY=t._fullLayout.legend._scrollY=r,c.setTranslate(C,0,-r),c.setRect(P,e._width,p.scrollBarMargin+r*i,p.scrollBarWidth,n),T.select(&quot;rect&quot;).attr(&quot;y&quot;,b+r)}}],t)}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/events&quot;:767,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;./constants&quot;:694,&quot;./get_legend_data&quot;:697,&quot;./handle_click&quot;:698,&quot;./helpers&quot;:699,&quot;./style&quot;:701,d3:169}],697:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./helpers&quot;);e.exports=function(t,e){var r,a,o={},s=[],l=!1,c={},u=0,f=0,h=e._main;function p(t,r){if(&quot;&quot;!==t&amp;&amp;i.isGrouped(e))-1===s.indexOf(t)?(s.push(t),l=!0,o[t]=[[r]]):o[t].push([r]);else{var n=&quot;~~i&quot;+u;s.push(n),o[n]=[[r]],u++}}for(r=0;r&lt;t.length;r++){var d=t[r],g=d[0],m=g.trace,v=m.legendgroup;if(!h||m.visible&amp;&amp;m.showlegend)if(n.traceIs(m,&quot;pie-like&quot;))for(c[v]||(c[v]={}),a=0;a&lt;d.length;a++){var y=d[a].label;c[v][y]||(p(v,{label:y,color:d[a].color,i:d[a].i,trace:m,pts:d[a].pts}),c[v][y]=!0,f=Math.max(f,(y||&quot;&quot;).length))}else p(v,g),f=Math.max(f,(m.name||&quot;&quot;).length)}if(!s.length)return[];var x,b,_=s.length;if(l&amp;&amp;i.isGrouped(e))for(b=new Array(_),r=0;r&lt;_;r++)x=o[s[r]],b[r]=i.isReversed(e)?x.reverse():x;else{for(b=[new Array(_)],r=0;r&lt;_;r++)x=o[s[r]][0],b[0][i.isReversed(e)?_-r-1:r]=x;_=1}return e._lgroupsLength=_,e._maxNameLength=f,b}},{&quot;../../registry&quot;:911,&quot;./helpers&quot;:699}],698:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=!0;e.exports=function(t,e,r){var o=e._fullLayout;if(!e._dragged&amp;&amp;!e._editing){var s,l=o.legend.itemclick,c=o.legend.itemdoubleclick;if(1===r&amp;&amp;&quot;toggle&quot;===l&amp;&amp;&quot;toggleothers&quot;===c&amp;&amp;a&amp;&amp;e.data&amp;&amp;e._context.showTips?(n.notifier(n._(e,&quot;Double-click on legend to isolate one trace&quot;),&quot;long&quot;),a=!1):a=!1,1===r?s=l:2===r&amp;&amp;(s=c),s){var u,f,h,p,d,g=o.hiddenlabels?o.hiddenlabels.slice():[],m=t.data()[0][0],v=e._fullData,y=m.trace,x=y.legendgroup,b={},_=[],w=[],T=[];if(i.traceIs(y,&quot;pie-like&quot;)){var k=m.label,M=g.indexOf(k);&quot;toggle&quot;===s?-1===M?g.push(k):g.splice(M,1):&quot;toggleothers&quot;===s&amp;&amp;(g=[],e.calcdata[0].forEach((function(t){k!==t.label&amp;&amp;g.push(t.label)})),e._fullLayout.hiddenlabels&amp;&amp;e._fullLayout.hiddenlabels.length===g.length&amp;&amp;-1===M&amp;&amp;(g=[])),i.call(&quot;_guiRelayout&quot;,e,&quot;hiddenlabels&quot;,g)}else{var A,S=x&amp;&amp;x.length,E=[];if(S)for(u=0;u&lt;v.length;u++)(A=v[u]).visible&amp;&amp;A.legendgroup===x&amp;&amp;E.push(u);if(&quot;toggle&quot;===s){var C;switch(y.visible){case!0:C=&quot;legendonly&quot;;break;case!1:C=!1;break;case&quot;legendonly&quot;:C=!0}if(S)for(u=0;u&lt;v.length;u++)!1!==v[u].visible&amp;&amp;v[u].legendgroup===x&amp;&amp;B(v[u],C);else B(y,C)}else if(&quot;toggleothers&quot;===s){var L,I,P,z,O=!0;for(u=0;u&lt;v.length;u++)if(L=v[u]===y,P=!0!==v[u].showlegend,!(L||P||(I=S&amp;&amp;v[u].legendgroup===x)||!0!==v[u].visible||i.traceIs(v[u],&quot;notLegendIsolatable&quot;))){O=!1;break}for(u=0;u&lt;v.length;u++)if(!1!==v[u].visible&amp;&amp;!i.traceIs(v[u],&quot;notLegendIsolatable&quot;))switch(y.visible){case&quot;legendonly&quot;:B(v[u],!0);break;case!0:z=!!O||&quot;legendonly&quot;,L=v[u]===y,P=!0!==v[u].showlegend&amp;&amp;!v[u].legendgroup,I=L||S&amp;&amp;v[u].legendgroup===x,B(v[u],!(!I&amp;&amp;!P)||z)}}for(u=0;u&lt;w.length;u++)if(h=w[u]){var D=h.constructUpdate(),R=Object.keys(D);for(f=0;f&lt;R.length;f++)p=R[f],(b[p]=b[p]||[])[T[u]]=D[p]}for(d=Object.keys(b),u=0;u&lt;d.length;u++)for(p=d[u],f=0;f&lt;_.length;f++)b[p].hasOwnProperty(f)||(b[p][f]=void 0);i.call(&quot;_guiRestyle&quot;,e,b,_)}}}function F(t,e,r){var n=_.indexOf(t),i=b[e];return i||(i=b[e]=[]),-1===_.indexOf(t)&amp;&amp;(_.push(t),n=_.length-1),i[n]=r,n}function B(t,e){var r=t._fullInput;if(i.hasTransform(r,&quot;groupby&quot;)){var a=w[r.index];if(!a){var o=i.getTransformIndices(r,&quot;groupby&quot;),s=o[o.length-1];a=n.keyedContainer(r,&quot;transforms[&quot;+s+&quot;].styles&quot;,&quot;target&quot;,&quot;value.visible&quot;),w[r.index]=a}var l=a.get(t._group);void 0===l&amp;&amp;(l=!0),!1!==l&amp;&amp;a.set(t._group,e),T[r.index]=F(r.index,&quot;visible&quot;,!1!==r.visible)}else{var c=!1!==r.visible&amp;&amp;e;F(r.index,&quot;visible&quot;,c)}}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],699:[function(t,e,r){&quot;use strict&quot;;r.isGrouped=function(t){return-1!==(t.traceorder||&quot;&quot;).indexOf(&quot;grouped&quot;)},r.isVertical=function(t){return&quot;h&quot;!==t.orientation},r.isReversed=function(t){return-1!==(t.traceorder||&quot;&quot;).indexOf(&quot;reversed&quot;)}},{}],700:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;legend&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;),style:t(&quot;./style&quot;)}},{&quot;./attributes&quot;:693,&quot;./defaults&quot;:695,&quot;./draw&quot;:696,&quot;./style&quot;:701}],701:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.strTranslate,s=t(&quot;../drawing&quot;),l=t(&quot;../color&quot;),c=t(&quot;../colorscale/helpers&quot;).extractOpts,u=t(&quot;../../traces/scatter/subtypes&quot;),f=t(&quot;../../traces/pie/style_one&quot;),h=t(&quot;../../traces/pie/helpers&quot;).castOption,p=t(&quot;./constants&quot;);function d(t,e){return(e?&quot;radial&quot;:&quot;horizontal&quot;)+(t?&quot;&quot;:&quot;reversed&quot;)}e.exports=function(t,e,r){var g=e._fullLayout;r||(r=g.legend);var m=&quot;constant&quot;===r.itemsizing,v=r.itemwidth,y=(v+2*p.itemGap)/2,x=o(y,0),b=function(t,e,r,n){var i;if(t+1)i=t;else{if(!(e&amp;&amp;e.width&gt;0))return 0;i=e.width}return m?n:Math.min(i,r)};function _(t,e,r){var a=t[0].trace,o=a.marker||{},s=o.line||{},c=r?a.visible&amp;&amp;a.type===r:i.traceIs(a,&quot;bar&quot;),u=n.select(e).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend&quot;+r).data(c?[t]:[]);u.enter().append(&quot;path&quot;).classed(&quot;legend&quot;+r,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,x),u.exit().remove(),u.each((function(t){var e=n.select(this),r=t[0],i=b(r.mlw,o.line,5,2);e.style(&quot;stroke-width&quot;,i+&quot;px&quot;).call(l.fill,r.mc||o.color),i&amp;&amp;l.stroke(e,r.mlc||s.color)}))}function w(t,e,r){var o=t[0],s=o.trace,l=r?s.visible&amp;&amp;s.type===r:i.traceIs(s,r),c=n.select(e).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend&quot;+r).data(l?[t]:[]);if(c.enter().append(&quot;path&quot;).classed(&quot;legend&quot;+r,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,x),c.exit().remove(),c.size()){var u=(s.marker||{}).line,p=b(h(u.width,o.pts),u,5,2),d=a.minExtend(s,{marker:{line:{width:p}}});d.marker.line.color=u.color;var g=a.minExtend(o,{trace:d});f(c,g,d)}}t.each((function(t){var e=n.select(this),i=a.ensureSingle(e,&quot;g&quot;,&quot;layers&quot;);i.style(&quot;opacity&quot;,t[0].trace.opacity);var s=r.valign,l=t[0].lineHeight,c=t[0].height;if(&quot;middle&quot;!==s&amp;&amp;l&amp;&amp;c){var u={top:1,bottom:-1}[s]*(.5*(l-c+3));i.attr(&quot;transform&quot;,o(0,u))}else i.attr(&quot;transform&quot;,null);i.selectAll(&quot;g.legendfill&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendfill&quot;,!0),i.selectAll(&quot;g.legendlines&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendlines&quot;,!0);var f=i.selectAll(&quot;g.legendsymbols&quot;).data([t]);f.enter().append(&quot;g&quot;).classed(&quot;legendsymbols&quot;,!0),f.selectAll(&quot;g.legendpoints&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendpoints&quot;,!0)})).each((function(t){var r,i=t[0].trace,o=[];if(i.visible)switch(i.type){case&quot;histogram2d&quot;:case&quot;heatmap&quot;:o=[[&quot;M-15,-2V4H15V-2Z&quot;]],r=!0;break;case&quot;choropleth&quot;:case&quot;choroplethmapbox&quot;:o=[[&quot;M-6,-6V6H6V-6Z&quot;]],r=!0;break;case&quot;densitymapbox&quot;:o=[[&quot;M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0&quot;]],r=&quot;radial&quot;;break;case&quot;cone&quot;:o=[[&quot;M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z&quot;],[&quot;M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z&quot;],[&quot;M-6,-2 A2,2 0 0,0 -6,2 L6,0Z&quot;]],r=!1;break;case&quot;streamtube&quot;:o=[[&quot;M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z&quot;],[&quot;M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z&quot;],[&quot;M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z&quot;]],r=!1;break;case&quot;surface&quot;:o=[[&quot;M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z&quot;],[&quot;M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z&quot;]],r=!0;break;case&quot;mesh3d&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6H6L0,6Z&quot;]],r=!1;break;case&quot;volume&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6H6L0,6Z&quot;]],r=!0;break;case&quot;isosurface&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6 A12,24 0 0,0 6,-6 L0,6Z&quot;]],r=!1}var u=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend3dandfriends&quot;).data(o);u.enter().append(&quot;path&quot;).classed(&quot;legend3dandfriends&quot;,!0).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),u.exit().remove(),u.each((function(t,o){var u,f=n.select(this),h=c(i),p=h.colorscale,g=h.reversescale;if(p){if(!r){var m=p.length;u=0===o?p[g?m-1:0][1]:1===o?p[g?0:m-1][1]:p[Math.floor((m-1)/2)][1]}}else{var v=i.vertexcolor||i.facecolor||i.color;u=a.isArrayOrTypedArray(v)?v[o]||v[0]:v}f.attr(&quot;d&quot;,t[0]),u?f.call(l.fill,u):f.call((function(t){if(t.size()){var n=&quot;legendfill-&quot;+i.uid;s.gradient(t,e,n,d(g,&quot;radial&quot;===r),p,&quot;fill&quot;)}}))}))})).each((function(t){var e=t[0].trace,r=&quot;waterfall&quot;===e.type;if(t[0]._distinct&amp;&amp;r){var i=t[0].trace[t[0].dir].marker;return t[0].mc=i.color,t[0].mlw=i.line.width,t[0].mlc=i.line.color,_(t,this,&quot;waterfall&quot;)}var a=[];e.visible&amp;&amp;r&amp;&amp;(a=t[0].hasTotals?[[&quot;increasing&quot;,&quot;M-6,-6V6H0Z&quot;],[&quot;totals&quot;,&quot;M6,6H0L-6,-6H-0Z&quot;],[&quot;decreasing&quot;,&quot;M6,6V-6H0Z&quot;]]:[[&quot;increasing&quot;,&quot;M-6,-6V6H6Z&quot;],[&quot;decreasing&quot;,&quot;M6,6V-6H-6Z&quot;]]);var o=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendwaterfall&quot;).data(a);o.enter().append(&quot;path&quot;).classed(&quot;legendwaterfall&quot;,!0).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),o.exit().remove(),o.each((function(t){var r=n.select(this),i=e[t[0]].marker,a=b(void 0,i.line,5,2);r.attr(&quot;d&quot;,t[1]).style(&quot;stroke-width&quot;,a+&quot;px&quot;).call(l.fill,i.color),a&amp;&amp;r.call(l.stroke,i.line.color)}))})).each((function(t){_(t,this,&quot;funnel&quot;)})).each((function(t){_(t,this)})).each((function(t){var r=t[0].trace,o=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendbox&quot;).data(r.visible&amp;&amp;i.traceIs(r,&quot;box-violin&quot;)?[t]:[]);o.enter().append(&quot;path&quot;).classed(&quot;legendbox&quot;,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,x),o.exit().remove(),o.each((function(){var t=n.select(this);if(&quot;all&quot;!==r.boxpoints&amp;&amp;&quot;all&quot;!==r.points||0!==l.opacity(r.fillcolor)||0!==l.opacity((r.line||{}).color)){var i=b(void 0,r.line,5,2);t.style(&quot;stroke-width&quot;,i+&quot;px&quot;).call(l.fill,r.fillcolor),i&amp;&amp;l.stroke(t,r.line.color)}else{var c=a.minExtend(r,{marker:{size:m?12:a.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:&quot;diameter&quot;}});o.call(s.pointStyle,c,e)}}))})).each((function(t){w(t,this,&quot;funnelarea&quot;)})).each((function(t){w(t,this,&quot;pie&quot;)})).each((function(t){var r,i,o=t[0],l=o.trace,f=l.visible&amp;&amp;l.fill&amp;&amp;&quot;none&quot;!==l.fill,h=u.hasLines(l),p=l.contours,g=!1,m=!1,y=c(l),x=y.colorscale,_=y.reversescale;if(p){var w=p.coloring;&quot;lines&quot;===w?g=!0:h=&quot;none&quot;===w||&quot;heatmap&quot;===w||p.showlines,&quot;constraint&quot;===p.type?f=&quot;=&quot;!==p._operation:&quot;fill&quot;!==w&amp;&amp;&quot;heatmap&quot;!==w||(m=!0)}var T=u.hasMarkers(l)||u.hasText(l),k=f||m,M=h||g,A=T||!k?&quot;M5,0&quot;:M?&quot;M5,-2&quot;:&quot;M5,-3&quot;,S=n.select(this),E=S.select(&quot;.legendfill&quot;).selectAll(&quot;path&quot;).data(f||m?[t]:[]);if(E.enter().append(&quot;path&quot;).classed(&quot;js-fill&quot;,!0),E.exit().remove(),E.attr(&quot;d&quot;,A+&quot;h&quot;+v+&quot;v6h-&quot;+v+&quot;z&quot;).call(f?s.fillGroupStyle:function(t){if(t.size()){var r=&quot;legendfill-&quot;+l.uid;s.gradient(t,e,r,d(_),x,&quot;fill&quot;)}}),h||g){var C=b(void 0,l.line,10,5);i=a.minExtend(l,{line:{width:C}}),r=[a.minExtend(o,{trace:i})]}var L=S.select(&quot;.legendlines&quot;).selectAll(&quot;path&quot;).data(h||g?[r]:[]);L.enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0),L.exit().remove(),L.attr(&quot;d&quot;,A+(g?&quot;l&quot;+v+&quot;,0.0001&quot;:&quot;h&quot;+v)).call(h?s.lineGroupStyle:function(t){if(t.size()){var r=&quot;legendline-&quot;+l.uid;s.lineGroupStyle(t),s.gradient(t,e,r,d(_),x,&quot;stroke&quot;)}})})).each((function(t){var r,i,o=t[0],l=o.trace,c=u.hasMarkers(l),f=u.hasText(l),h=u.hasLines(l);function p(t,e,r,n){var i=a.nestedProperty(l,t).get(),o=a.isArrayOrTypedArray(i)&amp;&amp;e?e(i):i;if(m&amp;&amp;o&amp;&amp;void 0!==n&amp;&amp;(o=n),r){if(o&lt;r[0])return r[0];if(o&gt;r[1])return r[1]}return o}function d(t){return o._distinct&amp;&amp;o.index&amp;&amp;t[o.index]?t[o.index]:t[0]}if(c||f||h){var g={},v={};if(c){g.mc=p(&quot;marker.color&quot;,d),g.mx=p(&quot;marker.symbol&quot;,d),g.mo=p(&quot;marker.opacity&quot;,a.mean,[.2,1]),g.mlc=p(&quot;marker.line.color&quot;,d),g.mlw=p(&quot;marker.line.width&quot;,a.mean,[0,5],2),v.marker={sizeref:1,sizemin:1,sizemode:&quot;diameter&quot;};var y=p(&quot;marker.size&quot;,a.mean,[2,16],12);g.ms=y,v.marker.size=y}h&amp;&amp;(v.line={width:p(&quot;line.width&quot;,d,[0,10],5)}),f&amp;&amp;(g.tx=&quot;Aa&quot;,g.tp=p(&quot;textposition&quot;,d),g.ts=10,g.tc=p(&quot;textfont.color&quot;,d),g.tf=p(&quot;textfont.family&quot;,d)),r=[a.minExtend(o,g)],(i=a.minExtend(l,v)).selectedpoints=null,i.texttemplate=null}var b=n.select(this).select(&quot;g.legendpoints&quot;),_=b.selectAll(&quot;path.scatterpts&quot;).data(c?r:[]);_.enter().insert(&quot;path&quot;,&quot;:first-child&quot;).classed(&quot;scatterpts&quot;,!0).attr(&quot;transform&quot;,x),_.exit().remove(),_.call(s.pointStyle,i,e),c&amp;&amp;(r[0].mrc=3);var w=b.selectAll(&quot;g.pointtext&quot;).data(f?r:[]);w.enter().append(&quot;g&quot;).classed(&quot;pointtext&quot;,!0).append(&quot;text&quot;).attr(&quot;transform&quot;,x),w.exit().remove(),w.selectAll(&quot;text&quot;).call(s.textPointStyle,i,e)})).each((function(t){var e=t[0].trace,r=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendcandle&quot;).data(e.visible&amp;&amp;&quot;candlestick&quot;===e.type?[t,t]:[]);r.enter().append(&quot;path&quot;).classed(&quot;legendcandle&quot;,!0).attr(&quot;d&quot;,(function(t,e){return e?&quot;M-15,0H-8M-8,6V-6H8Z&quot;:&quot;M15,0H8M8,-6V6H-8Z&quot;})).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?&quot;increasing&quot;:&quot;decreasing&quot;],o=b(void 0,a.line,5,2);i.style(&quot;stroke-width&quot;,o+&quot;px&quot;).call(l.fill,a.fillcolor),o&amp;&amp;l.stroke(i,a.line.color)}))})).each((function(t){var e=t[0].trace,r=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendohlc&quot;).data(e.visible&amp;&amp;&quot;ohlc&quot;===e.type?[t,t]:[]);r.enter().append(&quot;path&quot;).classed(&quot;legendohlc&quot;,!0).attr(&quot;d&quot;,(function(t,e){return e?&quot;M-15,0H0M-8,-6V0&quot;:&quot;M15,0H0M8,6V0&quot;})).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?&quot;increasing&quot;:&quot;decreasing&quot;],o=b(void 0,a.line,5,2);i.style(&quot;fill&quot;,&quot;none&quot;).call(s.dashLine,a.line.dash,o),o&amp;&amp;l.stroke(i,a.line.color)}))}))}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../../traces/pie/helpers&quot;:1166,&quot;../../traces/pie/style_one&quot;:1172,&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../color&quot;:643,&quot;../colorscale/helpers&quot;:654,&quot;../drawing&quot;:665,&quot;./constants&quot;:694,d3:169}],702:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../fonts/ploticon&quot;),s=t(&quot;../shapes/draw&quot;).eraseActiveShape,l=t(&quot;../../lib&quot;),c=l._,u=e.exports={};function f(t,e){var r,i,o=e.currentTarget,s=o.getAttribute(&quot;data-attr&quot;),l=o.getAttribute(&quot;data-val&quot;)||!0,c=t._fullLayout,u={},f=a.list(t,null,!0),h=c._cartesianSpikesEnabled;if(&quot;zoom&quot;===s){var p,d=&quot;in&quot;===l?.5:2,g=(1+d)/2,m=(1-d)/2;for(i=0;i&lt;f.length;i++)if(!(r=f[i]).fixedrange)if(p=r._name,&quot;auto&quot;===l)u[p+&quot;.autorange&quot;]=!0;else if(&quot;reset&quot;===l){if(void 0===r._rangeInitial)u[p+&quot;.autorange&quot;]=!0;else{var v=r._rangeInitial.slice();u[p+&quot;.range[0]&quot;]=v[0],u[p+&quot;.range[1]&quot;]=v[1]}void 0!==r._showSpikeInitial&amp;&amp;(u[p+&quot;.showspikes&quot;]=r._showSpikeInitial,&quot;on&quot;!==h||r._showSpikeInitial||(h=&quot;off&quot;))}else{var y=[r.r2l(r.range[0]),r.r2l(r.range[1])],x=[g*y[0]+m*y[1],g*y[1]+m*y[0]];u[p+&quot;.range[0]&quot;]=r.l2r(x[0]),u[p+&quot;.range[1]&quot;]=r.l2r(x[1])}}else&quot;hovermode&quot;!==s||&quot;x&quot;!==l&amp;&amp;&quot;y&quot;!==l||(l=c._isHoriz?&quot;y&quot;:&quot;x&quot;,o.setAttribute(&quot;data-val&quot;,l)),u[s]=l;c._cartesianSpikesEnabled=h,n.call(&quot;_guiRelayout&quot;,t,u)}function h(t,e){for(var r=e.currentTarget,i=r.getAttribute(&quot;data-attr&quot;),a=r.getAttribute(&quot;data-val&quot;)||!0,o=t._fullLayout._subplots.gl3d||[],s={},l=i.split(&quot;.&quot;),c=0;c&lt;o.length;c++)s[o[c]+&quot;.&quot;+l[1]]=a;var u=&quot;pan&quot;===a?a:&quot;zoom&quot;;s.dragmode=u,n.call(&quot;_guiRelayout&quot;,t,s)}function p(t,e){for(var r=e.currentTarget.getAttribute(&quot;data-attr&quot;),i=&quot;resetLastSave&quot;===r,a=&quot;resetDefault&quot;===r,o=t._fullLayout,s=o._subplots.gl3d||[],l={},c=0;c&lt;s.length;c++){var u,f=s[c],h=f+&quot;.camera&quot;,p=f+&quot;.aspectratio&quot;,d=f+&quot;.aspectmode&quot;,g=o[f]._scene;i?(l[h+&quot;.up&quot;]=g.viewInitial.up,l[h+&quot;.eye&quot;]=g.viewInitial.eye,l[h+&quot;.center&quot;]=g.viewInitial.center,u=!0):a&amp;&amp;(l[h+&quot;.up&quot;]=null,l[h+&quot;.eye&quot;]=null,l[h+&quot;.center&quot;]=null,u=!0),u&amp;&amp;(l[p+&quot;.x&quot;]=g.viewInitial.aspectratio.x,l[p+&quot;.y&quot;]=g.viewInitial.aspectratio.y,l[p+&quot;.z&quot;]=g.viewInitial.aspectratio.z,l[d]=g.viewInitial.aspectmode)}n.call(&quot;_guiRelayout&quot;,t,l)}function d(t,e){var r=e.currentTarget,n=r._previousVal,i=t._fullLayout,a=i._subplots.gl3d||[],o=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;],s={},l={};if(n)l=n,r._previousVal=null;else{for(var c=0;c&lt;a.length;c++){var u=a[c],f=i[u],h=u+&quot;.hovermode&quot;;s[h]=f.hovermode,l[h]=!1;for(var p=0;p&lt;3;p++){var d=o[p],g=u+&quot;.&quot;+d+&quot;.showspikes&quot;;l[g]=!1,s[g]=f[d].showspikes}}r._previousVal=s}return l}function g(t,e){for(var r=e.currentTarget,i=r.getAttribute(&quot;data-attr&quot;),a=r.getAttribute(&quot;data-val&quot;)||!0,o=t._fullLayout,s=o._subplots.geo||[],l=0;l&lt;s.length;l++){var c=s[l],u=o[c];if(&quot;zoom&quot;===i){var f=u.projection.scale,h=&quot;in&quot;===a?2*f:.5*f;n.call(&quot;_guiRelayout&quot;,t,c+&quot;.projection.scale&quot;,h)}}&quot;reset&quot;===i&amp;&amp;x(t,&quot;geo&quot;)}function m(t){var e=t._fullLayout;return!e.hovermode&amp;&amp;(e._has(&quot;cartesian&quot;)?e._isHoriz?&quot;y&quot;:&quot;x&quot;:&quot;closest&quot;)}function v(t){var e=m(t);n.call(&quot;_guiRelayout&quot;,t,&quot;hovermode&quot;,e)}function y(t,e){for(var r=e.currentTarget.getAttribute(&quot;data-val&quot;),i=t._fullLayout,a=i._subplots.mapbox||[],o={},s=0;s&lt;a.length;s++){var l=a[s],c=i[l].zoom,u=&quot;in&quot;===r?1.05*c:c/1.05;o[l+&quot;.zoom&quot;]=u}n.call(&quot;_guiRelayout&quot;,t,o)}function x(t,e){for(var r=t._fullLayout,i=r._subplots[e]||[],a={},o=0;o&lt;i.length;o++)for(var s=i[o],l=r[s]._subplot.viewInitial,c=Object.keys(l),u=0;u&lt;c.length;u++){var f=c[u];a[s+&quot;.&quot;+f]=l[f]}n.call(&quot;_guiRelayout&quot;,t,a)}u.toImage={name:&quot;toImage&quot;,title:function(t){var e=(t._context.toImageButtonOptions||{}).format||&quot;png&quot;;return c(t,&quot;png&quot;===e?&quot;Download plot as a png&quot;:&quot;Download plot&quot;)},icon:o.camera,click:function(t){var e=t._context.toImageButtonOptions,r={format:e.format||&quot;png&quot;};l.notifier(c(t,&quot;Taking snapshot - this may take a few seconds&quot;),&quot;long&quot;),&quot;svg&quot;!==r.format&amp;&amp;l.isIE()&amp;&amp;(l.notifier(c(t,&quot;IE only supports svg.  Changing format to svg.&quot;),&quot;long&quot;),r.format=&quot;svg&quot;),[&quot;filename&quot;,&quot;width&quot;,&quot;height&quot;,&quot;scale&quot;].forEach((function(t){t in e&amp;&amp;(r[t]=e[t])})),n.call(&quot;downloadImage&quot;,t,r).then((function(e){l.notifier(c(t,&quot;Snapshot succeeded&quot;)+&quot; - &quot;+e,&quot;long&quot;)})).catch((function(){l.notifier(c(t,&quot;Sorry, there was a problem downloading your snapshot!&quot;),&quot;long&quot;)}))}},u.sendDataToCloud={name:&quot;sendDataToCloud&quot;,title:function(t){return c(t,&quot;Edit in Chart Studio&quot;)},icon:o.disk,click:function(t){i.sendDataToCloud(t)}},u.editInChartStudio={name:&quot;editInChartStudio&quot;,title:function(t){return c(t,&quot;Edit in Chart Studio&quot;)},icon:o.pencil,click:function(t){i.sendDataToCloud(t)}},u.zoom2d={name:&quot;zoom2d&quot;,title:function(t){return c(t,&quot;Zoom&quot;)},attr:&quot;dragmode&quot;,val:&quot;zoom&quot;,icon:o.zoombox,click:f},u.pan2d={name:&quot;pan2d&quot;,title:function(t){return c(t,&quot;Pan&quot;)},attr:&quot;dragmode&quot;,val:&quot;pan&quot;,icon:o.pan,click:f},u.select2d={name:&quot;select2d&quot;,title:function(t){return c(t,&quot;Box Select&quot;)},attr:&quot;dragmode&quot;,val:&quot;select&quot;,icon:o.selectbox,click:f},u.lasso2d={name:&quot;lasso2d&quot;,title:function(t){return c(t,&quot;Lasso Select&quot;)},attr:&quot;dragmode&quot;,val:&quot;lasso&quot;,icon:o.lasso,click:f},u.drawclosedpath={name:&quot;drawclosedpath&quot;,title:function(t){return c(t,&quot;Draw closed freeform&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawclosedpath&quot;,icon:o.drawclosedpath,click:f},u.drawopenpath={name:&quot;drawopenpath&quot;,title:function(t){return c(t,&quot;Draw open freeform&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawopenpath&quot;,icon:o.drawopenpath,click:f},u.drawline={name:&quot;drawline&quot;,title:function(t){return c(t,&quot;Draw line&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawline&quot;,icon:o.drawline,click:f},u.drawrect={name:&quot;drawrect&quot;,title:function(t){return c(t,&quot;Draw rectangle&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawrect&quot;,icon:o.drawrect,click:f},u.drawcircle={name:&quot;drawcircle&quot;,title:function(t){return c(t,&quot;Draw circle&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawcircle&quot;,icon:o.drawcircle,click:f},u.eraseshape={name:&quot;eraseshape&quot;,title:function(t){return c(t,&quot;Erase active shape&quot;)},icon:o.eraseshape,click:s},u.zoomIn2d={name:&quot;zoomIn2d&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:f},u.zoomOut2d={name:&quot;zoomOut2d&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:f},u.autoScale2d={name:&quot;autoScale2d&quot;,title:function(t){return c(t,&quot;Autoscale&quot;)},attr:&quot;zoom&quot;,val:&quot;auto&quot;,icon:o.autoscale,click:f},u.resetScale2d={name:&quot;resetScale2d&quot;,title:function(t){return c(t,&quot;Reset axes&quot;)},attr:&quot;zoom&quot;,val:&quot;reset&quot;,icon:o.home,click:f},u.hoverClosestCartesian={name:&quot;hoverClosestCartesian&quot;,title:function(t){return c(t,&quot;Show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:&quot;closest&quot;,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:f},u.hoverCompareCartesian={name:&quot;hoverCompareCartesian&quot;,title:function(t){return c(t,&quot;Compare data on hover&quot;)},attr:&quot;hovermode&quot;,val:function(t){return t._fullLayout._isHoriz?&quot;y&quot;:&quot;x&quot;},icon:o.tooltip_compare,gravity:&quot;ne&quot;,click:f},u.zoom3d={name:&quot;zoom3d&quot;,title:function(t){return c(t,&quot;Zoom&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;zoom&quot;,icon:o.zoombox,click:h},u.pan3d={name:&quot;pan3d&quot;,title:function(t){return c(t,&quot;Pan&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;pan&quot;,icon:o.pan,click:h},u.orbitRotation={name:&quot;orbitRotation&quot;,title:function(t){return c(t,&quot;Orbital rotation&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;orbit&quot;,icon:o[&quot;3d_rotate&quot;],click:h},u.tableRotation={name:&quot;tableRotation&quot;,title:function(t){return c(t,&quot;Turntable rotation&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;turntable&quot;,icon:o[&quot;z-axis&quot;],click:h},u.resetCameraDefault3d={name:&quot;resetCameraDefault3d&quot;,title:function(t){return c(t,&quot;Reset camera to default&quot;)},attr:&quot;resetDefault&quot;,icon:o.home,click:p},u.resetCameraLastSave3d={name:&quot;resetCameraLastSave3d&quot;,title:function(t){return c(t,&quot;Reset camera to last save&quot;)},attr:&quot;resetLastSave&quot;,icon:o.movie,click:p},u.hoverClosest3d={name:&quot;hoverClosest3d&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:function(t,e){var r=d(t,e);n.call(&quot;_guiRelayout&quot;,t,r)}},u.zoomInGeo={name:&quot;zoomInGeo&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:g},u.zoomOutGeo={name:&quot;zoomOutGeo&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:g},u.resetGeo={name:&quot;resetGeo&quot;,title:function(t){return c(t,&quot;Reset&quot;)},attr:&quot;reset&quot;,val:null,icon:o.autoscale,click:g},u.hoverClosestGeo={name:&quot;hoverClosestGeo&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.hoverClosestGl2d={name:&quot;hoverClosestGl2d&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.hoverClosestPie={name:&quot;hoverClosestPie&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:&quot;closest&quot;,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.resetViewSankey={name:&quot;resetSankeyGroup&quot;,title:function(t){return c(t,&quot;Reset view&quot;)},icon:o.home,click:function(t){for(var e={&quot;node.groups&quot;:[],&quot;node.x&quot;:[],&quot;node.y&quot;:[]},r=0;r&lt;t._fullData.length;r++){var i=t._fullData[r]._viewInitial;e[&quot;node.groups&quot;].push(i.node.groups.slice()),e[&quot;node.x&quot;].push(i.node.x.slice()),e[&quot;node.y&quot;].push(i.node.y.slice())}n.call(&quot;restyle&quot;,t,e)}},u.toggleHover={name:&quot;toggleHover&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:function(t,e){var r=d(t,e);r.hovermode=m(t),n.call(&quot;_guiRelayout&quot;,t,r)}},u.resetViews={name:&quot;resetViews&quot;,title:function(t){return c(t,&quot;Reset views&quot;)},icon:o.home,click:function(t,e){var r=e.currentTarget;r.setAttribute(&quot;data-attr&quot;,&quot;zoom&quot;),r.setAttribute(&quot;data-val&quot;,&quot;reset&quot;),f(t,e),r.setAttribute(&quot;data-attr&quot;,&quot;resetLastSave&quot;),p(t,e),x(t,&quot;geo&quot;),x(t,&quot;mapbox&quot;)}},u.toggleSpikelines={name:&quot;toggleSpikelines&quot;,title:function(t){return c(t,&quot;Toggle Spike Lines&quot;)},icon:o.spikeline,attr:&quot;_cartesianSpikesEnabled&quot;,val:&quot;on&quot;,click:function(t){var e=t._fullLayout,r=e._cartesianSpikesEnabled;e._cartesianSpikesEnabled=&quot;on&quot;===r?&quot;off&quot;:&quot;on&quot;,n.call(&quot;_guiRelayout&quot;,t,function(t){for(var e=&quot;on&quot;===t._fullLayout._cartesianSpikesEnabled,r=a.list(t,null,!0),n={},i=0;i&lt;r.length;i++){var o=r[i];n[o._name+&quot;.showspikes&quot;]=!!e||o._showSpikeInitial}return n}(t))}},u.resetViewMapbox={name:&quot;resetViewMapbox&quot;,title:function(t){return c(t,&quot;Reset view&quot;)},attr:&quot;reset&quot;,icon:o.home,click:function(t){x(t,&quot;mapbox&quot;)}},u.zoomInMapbox={name:&quot;zoomInMapbox&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:y},u.zoomOutMapbox={name:&quot;zoomOutMapbox&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:y}},{&quot;../../fonts/ploticon&quot;:757,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../shapes/draw&quot;:724}],703:[function(t,e,r){&quot;use strict&quot;;r.manage=t(&quot;./manage&quot;)},{&quot;./manage&quot;:704}],704:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;),i=t(&quot;../../traces/scatter/subtypes&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../fx/helpers&quot;).isUnifiedHover,s=t(&quot;./modebar&quot;),l=t(&quot;./buttons&quot;);e.exports=function(t){var e=t._fullLayout,r=t._context,u=e._modeBar;if(r.displayModeBar||r.watermark){if(!Array.isArray(r.modeBarButtonsToRemove))throw new Error([&quot;*modeBarButtonsToRemove* configuration options&quot;,&quot;must be an array.&quot;].join(&quot; &quot;));if(!Array.isArray(r.modeBarButtonsToAdd))throw new Error([&quot;*modeBarButtonsToAdd* configuration options&quot;,&quot;must be an array.&quot;].join(&quot; &quot;));var f,h=r.modeBarButtons;f=Array.isArray(h)&amp;&amp;h.length?function(t){for(var e=0;e&lt;t.length;e++)for(var r=t[e],n=0;n&lt;r.length;n++){var i=r[n];if(&quot;string&quot;==typeof i){if(void 0===l[i])throw new Error([&quot;*modeBarButtons* configuration options&quot;,&quot;invalid button name&quot;].join(&quot; &quot;));t[e][n]=l[i]}}return t}(h):!r.displayModeBar&amp;&amp;r.watermark?[]:function(t){var e=t._fullLayout,r=t._fullData,s=t._context,u=s.modeBarButtonsToRemove,f=s.modeBarButtonsToAdd,h=e._has(&quot;cartesian&quot;),p=e._has(&quot;gl3d&quot;),d=e._has(&quot;geo&quot;),g=e._has(&quot;pie&quot;),m=e._has(&quot;funnelarea&quot;),v=e._has(&quot;gl2d&quot;),y=e._has(&quot;ternary&quot;),x=e._has(&quot;mapbox&quot;),b=e._has(&quot;polar&quot;),_=e._has(&quot;sankey&quot;),w=function(t){for(var e=n.list({_fullLayout:t},null,!0),r=0;r&lt;e.length;r++)if(!e[r].fixedrange)return!1;return!0}(e),T=o(e.hovermode),k=[];function M(t){if(t.length){for(var e=[],r=0;r&lt;t.length;r++){var n=t[r];-1===u.indexOf(n)&amp;&amp;e.push(l[n])}k.push(e)}}var A=[&quot;toImage&quot;];s.showEditInChartStudio?A.push(&quot;editInChartStudio&quot;):s.showSendToCloud&amp;&amp;A.push(&quot;sendDataToCloud&quot;);M(A);var S=[],E=[],C=[],L=[];(h||v||g||m||y)+d+p+x+b&gt;1?(E=[&quot;toggleHover&quot;],C=[&quot;resetViews&quot;]):d?(S=[&quot;zoomInGeo&quot;,&quot;zoomOutGeo&quot;],E=[&quot;hoverClosestGeo&quot;],C=[&quot;resetGeo&quot;]):p?(E=[&quot;hoverClosest3d&quot;],C=[&quot;resetCameraDefault3d&quot;,&quot;resetCameraLastSave3d&quot;]):x?(S=[&quot;zoomInMapbox&quot;,&quot;zoomOutMapbox&quot;],E=[&quot;toggleHover&quot;],C=[&quot;resetViewMapbox&quot;]):v?E=[&quot;hoverClosestGl2d&quot;]:g?E=[&quot;hoverClosestPie&quot;]:_?(E=[&quot;hoverClosestCartesian&quot;,&quot;hoverCompareCartesian&quot;],C=[&quot;resetViewSankey&quot;]):E=[&quot;toggleHover&quot;];h&amp;&amp;(E=[&quot;toggleSpikelines&quot;,&quot;hoverClosestCartesian&quot;,&quot;hoverCompareCartesian&quot;]);(function(t){for(var e=0;e&lt;t.length;e++)if(!a.traceIs(t[e],&quot;noHover&quot;))return!1;return!0}(r)||T)&amp;&amp;(E=[]);!h&amp;&amp;!v||w||(S=[&quot;zoomIn2d&quot;,&quot;zoomOut2d&quot;,&quot;autoScale2d&quot;],&quot;resetViews&quot;!==C[0]&amp;&amp;(C=[&quot;resetScale2d&quot;]));p?L=[&quot;zoom3d&quot;,&quot;pan3d&quot;,&quot;orbitRotation&quot;,&quot;tableRotation&quot;]:(h||v)&amp;&amp;!w||y?L=[&quot;zoom2d&quot;,&quot;pan2d&quot;]:x||d?L=[&quot;pan2d&quot;]:b&amp;&amp;(L=[&quot;zoom2d&quot;]);(function(t){for(var e=!1,r=0;r&lt;t.length&amp;&amp;!e;r++){var n=t[r];n._module&amp;&amp;n._module.selectPoints&amp;&amp;(a.traceIs(n,&quot;scatter-like&quot;)?(i.hasMarkers(n)||i.hasText(n))&amp;&amp;(e=!0):a.traceIs(n,&quot;box-violin&quot;)&amp;&amp;&quot;all&quot;!==n.boxpoints&amp;&amp;&quot;all&quot;!==n.points||(e=!0))}return e})(r)&amp;&amp;L.push(&quot;select2d&quot;,&quot;lasso2d&quot;);if(Array.isArray(f)){for(var I=[],P=0;P&lt;f.length;P++){var z=f[P];&quot;string&quot;==typeof z?-1!==c.indexOf(z)&amp;&amp;(e._has(&quot;mapbox&quot;)||e._has(&quot;cartesian&quot;))&amp;&amp;L.push(z):I.push(z)}f=I}return M(L),M(S.concat(C)),M(E),function(t,e){if(e.length)if(Array.isArray(e[0]))for(var r=0;r&lt;e.length;r++)t.push(e[r]);else t.push(e);return t}(k,f)}(t),u?u.update(t,f):e._modeBar=s(t,f)}else u&amp;&amp;(u.destroy(),delete e._modeBar)};var c=[&quot;drawline&quot;,&quot;drawopenpath&quot;,&quot;drawclosedpath&quot;,&quot;drawcircle&quot;,&quot;drawrect&quot;,&quot;eraseshape&quot;]},{&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../registry&quot;:911,&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../fx/helpers&quot;:679,&quot;./buttons&quot;:702,&quot;./modebar&quot;:705}],705:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../fonts/ploticon&quot;),s=new DOMParser;function l(t){this.container=t.container,this.element=document.createElement(&quot;div&quot;),this.update(t.graphInfo,t.buttons),this.container.appendChild(this.element)}var c=l.prototype;c.update=function(t,e){this.graphInfo=t;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i=&quot;modebar-&quot;+n._uid;this.element.setAttribute(&quot;id&quot;,i),this._uid=i,this.element.className=&quot;modebar&quot;,&quot;hover&quot;===r.displayModeBar&amp;&amp;(this.element.className+=&quot; modebar--hover ease-bg&quot;),&quot;v&quot;===n.modebar.orientation&amp;&amp;(this.element.className+=&quot; vertical&quot;,e=e.reverse());var o=n.modebar,s=&quot;hover&quot;===r.displayModeBar?&quot;.js-plotly-plot .plotly:hover &quot;:&quot;&quot;;a.deleteRelatedStyleRule(i),a.addRelatedStyleRule(i,s+&quot;#&quot;+i+&quot; .modebar-group&quot;,&quot;background-color: &quot;+o.bgcolor),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn .icon path&quot;,&quot;fill: &quot;+o.color),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn:hover .icon path&quot;,&quot;fill: &quot;+o.activecolor),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn.active .icon path&quot;,&quot;fill: &quot;+o.activecolor);var l=!this.hasButtons(e),c=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(l||c||u)&amp;&amp;(this.removeAllButtons(),this.updateButtons(e),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&amp;&amp;(f.className=f.className+&quot; watermark&quot;),&quot;v&quot;===n.modebar.orientation?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton()},c.updateButtons=function(t){var e=this;this.buttons=t,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(t){var r=e.createGroup();t.forEach((function(t){var n=t.name;if(!n)throw new Error(&quot;must provide button 'name' in button config&quot;);if(-1!==e.buttonsNames.indexOf(n))throw new Error(&quot;button name '&quot;+n+&quot;' is taken&quot;);e.buttonsNames.push(n);var i=e.createButton(t);e.buttonElements.push(i),r.appendChild(i)})),e.element.appendChild(r)}))},c.createGroup=function(){var t=document.createElement(&quot;div&quot;);return t.className=&quot;modebar-group&quot;,t},c.createButton=function(t){var e=this,r=document.createElement(&quot;a&quot;);r.setAttribute(&quot;rel&quot;,&quot;tooltip&quot;),r.className=&quot;modebar-btn&quot;;var i=t.title;void 0===i?i=t.name:&quot;function&quot;==typeof i&amp;&amp;(i=i(this.graphInfo)),(i||0===i)&amp;&amp;r.setAttribute(&quot;data-title&quot;,i),void 0!==t.attr&amp;&amp;r.setAttribute(&quot;data-attr&quot;,t.attr);var a=t.val;if(void 0!==a&amp;&amp;(&quot;function&quot;==typeof a&amp;&amp;(a=a(this.graphInfo)),r.setAttribute(&quot;data-val&quot;,a)),&quot;function&quot;!=typeof t.click)throw new Error(&quot;must provide button 'click' function in button config&quot;);r.addEventListener(&quot;click&quot;,(function(r){t.click(e.graphInfo,r),e.updateActiveButton(r.currentTarget)})),r.setAttribute(&quot;data-toggle&quot;,t.toggle||!1),t.toggle&amp;&amp;n.select(r).classed(&quot;active&quot;,!0);var s=t.icon;return&quot;function&quot;==typeof s?r.appendChild(s()):r.appendChild(this.createIcon(s||o.question)),r.setAttribute(&quot;data-gravity&quot;,t.gravity||&quot;n&quot;),r},c.createIcon=function(t){var e,r=i(t.height)?Number(t.height):t.ascent-t.descent,n=&quot;http://www.w3.org/2000/svg&quot;;if(t.path){(e=document.createElementNS(n,&quot;svg&quot;)).setAttribute(&quot;viewBox&quot;,[0,0,t.width,r].join(&quot; &quot;)),e.setAttribute(&quot;class&quot;,&quot;icon&quot;);var a=document.createElementNS(n,&quot;path&quot;);a.setAttribute(&quot;d&quot;,t.path),t.transform?a.setAttribute(&quot;transform&quot;,t.transform):void 0!==t.ascent&amp;&amp;a.setAttribute(&quot;transform&quot;,&quot;matrix(1 0 0 -1 0 &quot;+t.ascent+&quot;)&quot;),e.appendChild(a)}t.svg&amp;&amp;(e=s.parseFromString(t.svg,&quot;application/xml&quot;).childNodes[0]);return e.setAttribute(&quot;height&quot;,&quot;1em&quot;),e.setAttribute(&quot;width&quot;,&quot;1em&quot;),e},c.updateActiveButton=function(t){var e=this.graphInfo._fullLayout,r=void 0!==t?t.getAttribute(&quot;data-attr&quot;):null;this.buttonElements.forEach((function(t){var i=t.getAttribute(&quot;data-val&quot;)||!0,o=t.getAttribute(&quot;data-attr&quot;),s=&quot;true&quot;===t.getAttribute(&quot;data-toggle&quot;),l=n.select(t);if(s)o===r&amp;&amp;l.classed(&quot;active&quot;,!l.classed(&quot;active&quot;));else{var c=null===o?o:a.nestedProperty(e,o).get();l.classed(&quot;active&quot;,c===i)}}))},c.hasButtons=function(t){var e=this.buttons;if(!e)return!1;if(t.length!==e.length)return!1;for(var r=0;r&lt;t.length;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n&lt;t[r].length;n++)if(t[r][n].name!==e[r][n].name)return!1}return!0},c.getLogo=function(){var t=this.createGroup(),e=document.createElement(&quot;a&quot;);return e.href=&quot;https://plotly.com/&quot;,e.target=&quot;_blank&quot;,e.setAttribute(&quot;data-title&quot;,a._(this.graphInfo,&quot;Produced with Plotly&quot;)),e.className=&quot;modebar-btn plotlyjsicon modebar-btn--logo&quot;,e.appendChild(this.createIcon(o.newplotlylogo)),t.appendChild(e),t},c.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},c.destroy=function(){a.removeElement(this.container.querySelector(&quot;.modebar&quot;)),a.deleteRelatedStyleRule(this._uid)},e.exports=function(t,e){var r=t._fullLayout,i=new l({graphInfo:t,container:r._modebardiv.node(),buttons:e});return r._privateplot&amp;&amp;n.select(i.element).append(&quot;span&quot;).classed(&quot;badge-private float--left&quot;,!0).text(&quot;PRIVATE&quot;),i}},{&quot;../../fonts/ploticon&quot;:757,&quot;../../lib&quot;:778,d3:169,&quot;fast-isnumeric&quot;:241}],706:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;),a=(0,t(&quot;../../plot_api/plot_template&quot;).templatedArray)(&quot;button&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},step:{valType:&quot;enumerated&quot;,values:[&quot;month&quot;,&quot;year&quot;,&quot;day&quot;,&quot;hour&quot;,&quot;minute&quot;,&quot;second&quot;,&quot;all&quot;],dflt:&quot;month&quot;,editType:&quot;plot&quot;},stepmode:{valType:&quot;enumerated&quot;,values:[&quot;backward&quot;,&quot;todate&quot;],dflt:&quot;backward&quot;,editType:&quot;plot&quot;},count:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},label:{valType:&quot;string&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;});e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},buttons:a,x:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;plot&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;plot&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;plot&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;bottom&quot;,editType:&quot;plot&quot;},font:n({editType:&quot;plot&quot;}),bgcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;plot&quot;},activecolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;plot&quot;}},{&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/font_attributes&quot;:856,&quot;../color/attributes&quot;:642}],707:[function(t,e,r){&quot;use strict&quot;;e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},{}],708:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;../../plots/array_container_defaults&quot;),s=t(&quot;./attributes&quot;),l=t(&quot;./constants&quot;);function c(t,e,r,i){var a=i.calendar;function o(r,i){return n.coerce(t,e,s.buttons,r,i)}if(o(&quot;visible&quot;)){var l=o(&quot;step&quot;);&quot;all&quot;!==l&amp;&amp;(!a||&quot;gregorian&quot;===a||&quot;month&quot;!==l&amp;&amp;&quot;year&quot;!==l?o(&quot;stepmode&quot;):e.stepmode=&quot;backward&quot;,o(&quot;count&quot;)),o(&quot;label&quot;)}}e.exports=function(t,e,r,u,f){var h=t.rangeselector||{},p=a.newContainer(e,&quot;rangeselector&quot;);function d(t,e){return n.coerce(h,p,s,t,e)}if(d(&quot;visible&quot;,o(h,p,{name:&quot;buttons&quot;,handleItemDefaults:c,calendar:f}).length&gt;0)){var g=function(t,e,r){for(var n=r.filter((function(r){return e[r].anchor===t._id})),i=0,a=0;a&lt;n.length;a++){var o=e[n[a]].domain;o&amp;&amp;(i=Math.max(o[1],i))}return[t.domain[0],i+l.yPad]}(e,r,u);d(&quot;x&quot;,g[0]),d(&quot;y&quot;,g[1]),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),d(&quot;xanchor&quot;),d(&quot;yanchor&quot;),n.coerceFont(d,&quot;font&quot;,r.font);var m=d(&quot;bgcolor&quot;);d(&quot;activecolor&quot;,i.contrast(m,l.lightAmount,l.darkAmount)),d(&quot;bordercolor&quot;),d(&quot;borderwidth&quot;)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/array_container_defaults&quot;:823,&quot;../color&quot;:643,&quot;./attributes&quot;:706,&quot;./constants&quot;:707}],709:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../color&quot;),s=t(&quot;../drawing&quot;),l=t(&quot;../../lib&quot;),c=l.strTranslate,u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../plots/cartesian/axis_ids&quot;),h=t(&quot;../../constants/alignment&quot;),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR,m=t(&quot;./constants&quot;),v=t(&quot;./get_update_object&quot;);function y(t){return t._id}function x(t,e,r){var n=l.ensureSingle(t,&quot;rect&quot;,&quot;selector-rect&quot;,(function(t){t.attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)}));n.attr({rx:m.rx,ry:m.ry}),n.call(o.stroke,e.bordercolor).call(o.fill,function(t,e){return e._isActive||e._isHovered?t.activecolor:t.bgcolor}(e,r)).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;)}function b(t,e,r,n){l.ensureSingle(t,&quot;text&quot;,&quot;selector-text&quot;,(function(t){t.attr(&quot;text-anchor&quot;,&quot;middle&quot;)})).call(s.font,e.font).text(function(t,e){if(t.label)return e?l.templateString(t.label,e):t.label;return&quot;all&quot;===t.step?&quot;all&quot;:t.count+t.step.charAt(0)}(r,n._fullLayout._meta)).call((function(t){u.convertToTspans(t,n)}))}e.exports=function(t){var e=t._fullLayout._infolayer.selectAll(&quot;.rangeselector&quot;).data(function(t){for(var e=f.list(t,&quot;x&quot;,!0),r=[],n=0;n&lt;e.length;n++){var i=e[n];i.rangeselector&amp;&amp;i.rangeselector.visible&amp;&amp;r.push(i)}return r}(t),y);e.enter().append(&quot;g&quot;).classed(&quot;rangeselector&quot;,!0),e.exit().remove(),e.style({cursor:&quot;pointer&quot;,&quot;pointer-events&quot;:&quot;all&quot;}),e.each((function(e){var r=n.select(this),o=e,f=o.rangeselector,h=r.selectAll(&quot;g.button&quot;).data(l.filterVisible(f.buttons));h.enter().append(&quot;g&quot;).classed(&quot;button&quot;,!0),h.exit().remove(),h.each((function(e){var r=n.select(this),a=v(o,e);e._isActive=function(t,e,r){if(&quot;all&quot;===e.step)return!0===t.autorange;var n=Object.keys(r);return t.range[0]===r[n[0]]&amp;&amp;t.range[1]===r[n[1]]}(o,e,a),r.call(x,f,e),r.call(b,f,e,t),r.on(&quot;click&quot;,(function(){t._dragged||i.call(&quot;_guiRelayout&quot;,t,a)})),r.on(&quot;mouseover&quot;,(function(){e._isHovered=!0,r.call(x,f,e)})),r.on(&quot;mouseout&quot;,(function(){e._isHovered=!1,r.call(x,f,e)}))})),function(t,e,r,i,o){var f=0,h=0,v=r.borderwidth;e.each((function(){var t=n.select(this).select(&quot;.selector-text&quot;),e=r.font.size*p,i=Math.max(e*u.lineCount(t),16)+3;h=Math.max(h,i)})),e.each((function(){var t=n.select(this),e=t.select(&quot;.selector-rect&quot;),i=t.select(&quot;.selector-text&quot;),a=i.node()&amp;&amp;s.bBox(i.node()).width,o=r.font.size*p,l=u.lineCount(i),d=Math.max(a+10,m.minButtonWidth);t.attr(&quot;transform&quot;,c(v+f,v)),e.attr({x:0,y:0,width:d,height:h}),u.positionText(i,d/2,h/2-(l-1)*o/2+3),f+=d+5}));var y=t._fullLayout._size,x=y.l+y.w*r.x,b=y.t+y.h*(1-r.y),_=&quot;left&quot;;l.isRightAnchor(r)&amp;&amp;(x-=f,_=&quot;right&quot;);l.isCenterAnchor(r)&amp;&amp;(x-=f/2,_=&quot;center&quot;);var w=&quot;top&quot;;l.isBottomAnchor(r)&amp;&amp;(b-=h,w=&quot;bottom&quot;);l.isMiddleAnchor(r)&amp;&amp;(b-=h/2,w=&quot;middle&quot;);f=Math.ceil(f),h=Math.ceil(h),x=Math.round(x),b=Math.round(b),a.autoMargin(t,i+&quot;-range-selector&quot;,{x:r.x,y:r.y,l:f*d[_],r:f*g[_],b:h*g[w],t:h*d[w]}),o.attr(&quot;transform&quot;,c(x,b))}(t,h,f,o._name,r)}))}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../drawing&quot;:665,&quot;./constants&quot;:707,&quot;./get_update_object&quot;:710,d3:169}],710:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t,e){var r=t._name,i={};if(&quot;all&quot;===e.step)i[r+&quot;.autorange&quot;]=!0;else{var a=function(t,e){var r,i=t.range,a=new Date(t.r2l(i[1])),o=e.step,s=e.count;switch(e.stepmode){case&quot;backward&quot;:r=t.l2r(+n.time[o].utc.offset(a,-s));break;case&quot;todate&quot;:var l=n.time[o].utc.offset(a,-s);r=t.l2r(+n.time[o].utc.ceil(l))}var c=i[1];return[r,c]}(t,e);i[r+&quot;.range[0]&quot;]=a[0],i[r+&quot;.range[1]&quot;]=a[1]}return i}},{d3:169}],711:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;rangeselector&quot;,schema:{subplots:{xaxis:{rangeselector:t(&quot;./attributes&quot;)}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;)}},{&quot;./attributes&quot;:706,&quot;./defaults&quot;:708,&quot;./draw&quot;:709}],712:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../color/attributes&quot;);e.exports={bgcolor:{valType:&quot;color&quot;,dflt:n.background,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:n.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;integer&quot;,dflt:0,min:0,editType:&quot;plot&quot;},autorange:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:{&quot;range[0]&quot;:void 0,&quot;range[1]&quot;:void 0}},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;calc&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],editType:&quot;calc&quot;,impliedEdits:{autorange:!1}},thickness:{valType:&quot;number&quot;,dflt:.15,min:0,max:1,editType:&quot;plot&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;}},{&quot;../color/attributes&quot;:642}],713:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;).list,i=t(&quot;../../plots/cartesian/autorange&quot;).getAutoRange,a=t(&quot;./constants&quot;);e.exports=function(t){for(var e=n(t,&quot;x&quot;,!0),r=0;r&lt;e.length;r++){var o=e[r],s=o[a.name];s&amp;&amp;s.visible&amp;&amp;s.autorange&amp;&amp;(s._input.autorange=!0,s._input.range=s.range=i(t,o))}}},{&quot;../../plots/cartesian/autorange&quot;:827,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;./constants&quot;:714}],714:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;rangeslider&quot;,containerClassName:&quot;rangeslider-container&quot;,bgClassName:&quot;rangeslider-bg&quot;,rangePlotClassName:&quot;rangeslider-rangeplot&quot;,maskMinClassName:&quot;rangeslider-mask-min&quot;,maskMaxClassName:&quot;rangeslider-mask-max&quot;,slideBoxClassName:&quot;rangeslider-slidebox&quot;,grabberMinClassName:&quot;rangeslider-grabber-min&quot;,grabAreaMinClassName:&quot;rangeslider-grabarea-min&quot;,handleMinClassName:&quot;rangeslider-handle-min&quot;,grabberMaxClassName:&quot;rangeslider-grabber-max&quot;,grabAreaMaxClassName:&quot;rangeslider-grabarea-max&quot;,handleMaxClassName:&quot;rangeslider-handle-max&quot;,maskMinOppAxisClassName:&quot;rangeslider-mask-min-opp-axis&quot;,maskMaxOppAxisClassName:&quot;rangeslider-mask-max-opp-axis&quot;,maskColor:&quot;rgba(0,0,0,0.4)&quot;,maskOppAxisColor:&quot;rgba(0,0,0,0.2)&quot;,slideBoxFill:&quot;transparent&quot;,slideBoxCursor:&quot;ew-resize&quot;,grabAreaFill:&quot;transparent&quot;,grabAreaCursor:&quot;col-resize&quot;,grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},{}],715:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;./oppaxis_attributes&quot;);e.exports=function(t,e,r){var l=t[r],c=e[r];if(l.rangeslider||e._requestRangeslider[c._id]){n.isPlainObject(l.rangeslider)||(l.rangeslider={});var u,f,h=l.rangeslider,p=i.newContainer(c,&quot;rangeslider&quot;);if(_(&quot;visible&quot;)){_(&quot;bgcolor&quot;,e.plot_bgcolor),_(&quot;bordercolor&quot;),_(&quot;borderwidth&quot;),_(&quot;thickness&quot;),_(&quot;autorange&quot;,!c.isValidRange(h.range)),_(&quot;range&quot;);var d=e._subplots;if(d)for(var g=d.cartesian.filter((function(t){return t.substr(0,t.indexOf(&quot;y&quot;))===a.name2id(r)})).map((function(t){return t.substr(t.indexOf(&quot;y&quot;),t.length)})),m=n.simpleMap(g,a.id2name),v=0;v&lt;m.length;v++){var y=m[v];u=h[y]||{},f=i.newContainer(p,y,&quot;yaxis&quot;);var x,b=e[y];u.range&amp;&amp;b.isValidRange(u.range)&amp;&amp;(x=&quot;fixed&quot;),&quot;match&quot;!==w(&quot;rangemode&quot;,x)&amp;&amp;w(&quot;range&quot;,b.range.slice())}p._input=h}}function _(t,e){return n.coerce(h,p,o,t,e)}function w(t,e){return n.coerce(u,f,s,t,e)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;./attributes&quot;:712,&quot;./oppaxis_attributes&quot;:719}],716:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../drawing&quot;),c=t(&quot;../color&quot;),u=t(&quot;../titles&quot;),f=t(&quot;../../plots/cartesian&quot;),h=t(&quot;../../plots/cartesian/axis_ids&quot;),p=t(&quot;../dragelement&quot;),d=t(&quot;../../lib/setcursor&quot;),g=t(&quot;./constants&quot;);function m(t,e,r,n){var i=o.ensureSingle(t,&quot;rect&quot;,g.bgClassName,(function(t){t.attr({x:0,y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})),a=n.borderwidth%2==0?n.borderwidth:n.borderwidth-1,c=-n._offsetShift,u=l.crispRound(e,n.borderwidth);i.attr({width:n._width+a,height:n._height+a,transform:s(c,c),fill:n.bgcolor,stroke:n.bordercolor,&quot;stroke-width&quot;:u})}function v(t,e,r,n){var i=e._fullLayout;o.ensureSingleById(i._topdefs,&quot;clipPath&quot;,n._clipId,(function(t){t.append(&quot;rect&quot;).attr({x:0,y:0})})).select(&quot;rect&quot;).attr({width:n._width,height:n._height})}function y(t,e,r,i){var s,c=e.calcdata,u=t.selectAll(&quot;g.&quot;+g.rangePlotClassName).data(r._subplotsWith,o.identity);u.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return g.rangePlotClassName+&quot; &quot;+t})).call(l.setClipUrl,i._clipId,e),u.order(),u.exit().remove(),u.each((function(t,o){var l=n.select(this),u=0===o,p=h.getFromId(e,t,&quot;y&quot;),d=p._name,g=i[d],m={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:i.range.slice(),calendar:r.calendar},width:i._width,height:i._height,margin:{t:0,b:0,l:0,r:0}},_context:e._context};r.rangebreaks&amp;&amp;(m.layout.xaxis.rangebreaks=r.rangebreaks),m.layout[d]={type:p.type,domain:[0,1],range:&quot;match&quot;!==g.rangemode?g.range.slice():p.range.slice(),calendar:p.calendar},p.rangebreaks&amp;&amp;(m.layout[d].rangebreaks=p.rangebreaks),a.supplyDefaults(m);var v=m._fullLayout.xaxis,y=m._fullLayout[d];v.clearCalc(),v.setScale(),y.clearCalc(),y.setScale();var x={id:t,plotgroup:l,xaxis:v,yaxis:y,isRangePlot:!0};u?s=x:(x.mainplot=&quot;xy&quot;,x.mainplotinfo=s),f.rangePlot(e,x,function(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i=t[n],a=i[0].trace;a.xaxis+a.yaxis===e&amp;&amp;r.push(i)}return r}(c,t))}))}function x(t,e,r,n,i){(o.ensureSingle(t,&quot;rect&quot;,g.maskMinClassName,(function(t){t.attr({x:0,y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;height&quot;,n._height).call(c.fill,g.maskColor),o.ensureSingle(t,&quot;rect&quot;,g.maskMaxClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;height&quot;,n._height).call(c.fill,g.maskColor),&quot;match&quot;!==i.rangemode)&amp;&amp;(o.ensureSingle(t,&quot;rect&quot;,g.maskMinOppAxisClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;width&quot;,n._width).call(c.fill,g.maskOppAxisColor),o.ensureSingle(t,&quot;rect&quot;,g.maskMaxOppAxisClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;width&quot;,n._width).style(&quot;border-top&quot;,g.maskOppBorder).call(c.fill,g.maskOppAxisColor))}function b(t,e,r,n){e._context.staticPlot||o.ensureSingle(t,&quot;rect&quot;,g.slideBoxClassName,(function(t){t.attr({y:0,cursor:g.slideBoxCursor,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr({height:n._height,fill:g.slideBoxFill})}function _(t,e,r,n){var i=o.ensureSingle(t,&quot;g&quot;,g.grabberMinClassName),a=o.ensureSingle(t,&quot;g&quot;,g.grabberMaxClassName),s={x:0,width:g.handleWidth,rx:g.handleRadius,fill:c.background,stroke:c.defaultLine,&quot;stroke-width&quot;:g.handleStrokeWidth,&quot;shape-rendering&quot;:&quot;crispEdges&quot;},l={y:Math.round(n._height/4),height:Math.round(n._height/2)};o.ensureSingle(i,&quot;rect&quot;,g.handleMinClassName,(function(t){t.attr(s)})).attr(l),o.ensureSingle(a,&quot;rect&quot;,g.handleMaxClassName,(function(t){t.attr(s)})).attr(l);var u={width:g.grabAreaWidth,x:0,y:0,fill:g.grabAreaFill,cursor:e._context.staticPlot?void 0:g.grabAreaCursor};o.ensureSingle(i,&quot;rect&quot;,g.grabAreaMinClassName,(function(t){t.attr(u)})).attr(&quot;height&quot;,n._height),o.ensureSingle(a,&quot;rect&quot;,g.grabAreaMaxClassName,(function(t){t.attr(u)})).attr(&quot;height&quot;,n._height)}e.exports=function(t){for(var e=t._fullLayout,r=e._rangeSliderData,a=0;a&lt;r.length;a++){var l=r[a][g.name];l._clipId=l._id+&quot;-&quot;+e._uid}var c=e._infolayer.selectAll(&quot;g.&quot;+g.containerClassName).data(r,(function(t){return t._name}));c.exit().each((function(t){var r=t[g.name];e._topdefs.select(&quot;#&quot;+r._clipId).remove()})).remove(),0!==r.length&amp;&amp;(c.enter().append(&quot;g&quot;).classed(g.containerClassName,!0).attr(&quot;pointer-events&quot;,&quot;all&quot;),c.each((function(r){var a=n.select(this),l=r[g.name],c=e[h.id2name(r.anchor)],f=l[h.id2name(r.anchor)];if(l.range){var w,T=o.simpleMap(l.range,r.r2l),k=o.simpleMap(r.range,r.r2l);w=k[0]&lt;k[1]?[Math.min(T[0],k[0]),Math.max(T[1],k[1])]:[Math.max(T[0],k[0]),Math.min(T[1],k[1])],l.range=l._input.range=o.simpleMap(w,r.l2r)}r.cleanRange(&quot;rangeslider.range&quot;);var M=e._size,A=r.domain;l._width=M.w*(A[1]-A[0]);var S=Math.round(M.l+M.w*A[0]),E=Math.round(M.t+M.h*(1-r._counterDomainMin)+(&quot;bottom&quot;===r.side?r._depth:0)+l._offsetShift+g.extraPad);a.attr(&quot;transform&quot;,s(S,E)),l._rl=o.simpleMap(l.range,r.r2l);var C=l._rl[0],L=l._rl[1],I=L-C;if(l.p2d=function(t){return t/l._width*I+C},l.d2p=function(t){return(t-C)/I*l._width},r.rangebreaks){var P=r.locateBreaks(C,L);if(P.length){var z,O,D=0;for(z=0;z&lt;P.length;z++)D+=(O=P[z]).max-O.min;var R=l._width/(L-C-D),F=[-R*C];for(z=0;z&lt;P.length;z++)O=P[z],F.push(F[F.length-1]-R*(O.max-O.min));for(l.d2p=function(t){for(var e=F[0],r=0;r&lt;P.length;r++){var n=P[r];if(t&gt;=n.max)e=F[r+1];else if(t&lt;n.min)break}return e+R*t},z=0;z&lt;P.length;z++)(O=P[z]).pmin=l.d2p(O.min),O.pmax=l.d2p(O.max);l.p2d=function(t){for(var e=F[0],r=0;r&lt;P.length;r++){var n=P[r];if(t&gt;=n.pmax)e=F[r+1];else if(t&lt;n.pmin)break}return(t-e)/R}}}if(&quot;match&quot;!==f.rangemode){var B=c.r2l(f.range[0]),N=c.r2l(f.range[1])-B;l.d2pOppAxis=function(t){return(t-B)/N*l._height}}a.call(m,t,r,l).call(v,t,r,l).call(y,t,r,l).call(x,t,r,l,f).call(b,t,r,l).call(_,t,r,l),function(t,e,r,a){if(e._context.staticPlot)return;var s=t.select(&quot;rect.&quot;+g.slideBoxClassName).node(),l=t.select(&quot;rect.&quot;+g.grabAreaMinClassName).node(),c=t.select(&quot;rect.&quot;+g.grabAreaMaxClassName).node();function u(){var u=n.event,f=u.target,h=u.clientX||u.touches[0].clientX,g=h-t.node().getBoundingClientRect().left,m=a.d2p(r._rl[0]),v=a.d2p(r._rl[1]),y=p.coverSlip();function x(t){var u,p,x,b=+(t.clientX||t.touches[0].clientX)-h;switch(f){case s:x=&quot;ew-resize&quot;,u=m+b,p=v+b;break;case l:x=&quot;col-resize&quot;,u=m+b,p=v;break;case c:x=&quot;col-resize&quot;,u=m,p=v+b;break;default:x=&quot;ew-resize&quot;,u=g,p=g+b}if(p&lt;u){var _=p;p=u,u=_}a._pixelMin=u,a._pixelMax=p,d(n.select(y),x),function(t,e,r,n){function a(t){return r.l2r(o.constrain(t,n._rl[0],n._rl[1]))}var s=a(n.p2d(n._pixelMin)),l=a(n.p2d(n._pixelMax));window.requestAnimationFrame((function(){i.call(&quot;_guiRelayout&quot;,e,r._name+&quot;.range&quot;,[s,l])}))}(0,e,r,a)}function b(){y.removeEventListener(&quot;mousemove&quot;,x),y.removeEventListener(&quot;mouseup&quot;,b),this.removeEventListener(&quot;touchmove&quot;,x),this.removeEventListener(&quot;touchend&quot;,b),o.removeElement(y)}this.addEventListener(&quot;touchmove&quot;,x),this.addEventListener(&quot;touchend&quot;,b),y.addEventListener(&quot;mousemove&quot;,x),y.addEventListener(&quot;mouseup&quot;,b)}t.on(&quot;mousedown&quot;,u),t.on(&quot;touchstart&quot;,u)}(a,t,r,l),function(t,e,r,n,i,a){var l=g.handleWidth/2;function c(t){return o.constrain(t,0,n._width)}function u(t){return o.constrain(t,0,n._height)}function f(t){return o.constrain(t,-l,n._width+l)}var h=c(n.d2p(r._rl[0])),p=c(n.d2p(r._rl[1]));if(t.select(&quot;rect.&quot;+g.slideBoxClassName).attr(&quot;x&quot;,h).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.maskMinClassName).attr(&quot;width&quot;,h),t.select(&quot;rect.&quot;+g.maskMaxClassName).attr(&quot;x&quot;,p).attr(&quot;width&quot;,n._width-p),&quot;match&quot;!==a.rangemode){var d=n._height-u(n.d2pOppAxis(i._rl[1])),m=n._height-u(n.d2pOppAxis(i._rl[0]));t.select(&quot;rect.&quot;+g.maskMinOppAxisClassName).attr(&quot;x&quot;,h).attr(&quot;height&quot;,d).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.maskMaxOppAxisClassName).attr(&quot;x&quot;,h).attr(&quot;y&quot;,m).attr(&quot;height&quot;,n._height-m).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.slideBoxClassName).attr(&quot;y&quot;,d).attr(&quot;height&quot;,m-d)}var v=Math.round(f(h-l))-.5,y=Math.round(f(p-l))+.5;t.select(&quot;g.&quot;+g.grabberMinClassName).attr(&quot;transform&quot;,s(v,.5)),t.select(&quot;g.&quot;+g.grabberMaxClassName).attr(&quot;transform&quot;,s(y,.5))}(a,0,r,l,c,f),&quot;bottom&quot;===r.side&amp;&amp;u.draw(t,r._id+&quot;title&quot;,{propContainer:r,propName:r._name+&quot;.title&quot;,placeholder:e._dfltTitle.x,attributes:{x:r._offset+r._length/2,y:E+l._height+l._offsetShift+10+1.5*r.title.font.size,&quot;text-anchor&quot;:&quot;middle&quot;}})})))}},{&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../plots/cartesian&quot;:841,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../titles&quot;:738,&quot;./constants&quot;:714,d3:169}],717:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;),i=t(&quot;../../lib/svg_text_utils&quot;),a=t(&quot;./constants&quot;),o=t(&quot;../../constants/alignment&quot;).LINE_SPACING,s=a.name;function l(t){var e=t&amp;&amp;t[s];return e&amp;&amp;e.visible}r.isVisible=l,r.makeData=function(t){var e=n.list({_fullLayout:t},&quot;x&quot;,!0),r=t.margin,i=[];if(!t._has(&quot;gl2d&quot;))for(var a=0;a&lt;e.length;a++){var o=e[a];if(l(o)){i.push(o);var c=o[s];c._id=s+o._id,c._height=(t.height-r.b-r.t)*c.thickness,c._offsetShift=Math.floor(c.borderwidth/2)}}t._rangeSliderData=i},r.autoMarginOpts=function(t,e){var r=t._fullLayout,n=e[s],l=e._id.charAt(0),c=0,u=0;&quot;bottom&quot;===e.side&amp;&amp;(c=e._depth,e.title.text!==r._dfltTitle[l]&amp;&amp;(u=1.5*e.title.font.size+10+n._offsetShift,u+=(e.title.text.match(i.BR_TAG_ALL)||[]).length*e.title.font.size*o));return{x:0,y:e._counterDomainMin,l:0,r:0,t:0,b:n._height+c+Math.max(r.margin.b,u),pad:a.extraPad+2*n._offsetShift}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;./constants&quot;:714}],718:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./oppaxis_attributes&quot;),o=t(&quot;./helpers&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;rangeslider&quot;,schema:{subplots:{xaxis:{rangeslider:n.extendFlat({},i,{yaxis:a})}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:t(&quot;./draw&quot;),isVisible:o.isVisible,makeData:o.makeData,autoMarginOpts:o.autoMarginOpts}},{&quot;../../lib&quot;:778,&quot;./attributes&quot;:712,&quot;./calc_autorange&quot;:713,&quot;./defaults&quot;:715,&quot;./draw&quot;:716,&quot;./helpers&quot;:717,&quot;./oppaxis_attributes&quot;:719}],719:[function(t,e,r){&quot;use strict&quot;;e.exports={_isSubplotObj:!0,rangemode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;fixed&quot;,&quot;match&quot;],dflt:&quot;match&quot;,editType:&quot;calc&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;},{valType:&quot;any&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},editType:&quot;calc&quot;}},{}],720:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/attributes&quot;),i=t(&quot;../../traces/scatter/attributes&quot;).line,a=t(&quot;../drawing/attributes&quot;).dash,o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=s(&quot;shape&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;circle&quot;,&quot;rect&quot;,&quot;path&quot;,&quot;line&quot;],editType:&quot;calc+arraydraw&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;arraydraw&quot;},xref:o({},n.xref,{}),xsizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;pixel&quot;],dflt:&quot;scaled&quot;,editType:&quot;calc+arraydraw&quot;},xanchor:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},x0:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},x1:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},yref:o({},n.yref,{}),ysizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;pixel&quot;],dflt:&quot;scaled&quot;,editType:&quot;calc+arraydraw&quot;},yanchor:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},y0:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},y1:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},path:{valType:&quot;string&quot;,editType:&quot;calc+arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},line:{color:o({},i.color,{editType:&quot;arraydraw&quot;}),width:o({},i.width,{editType:&quot;calc+arraydraw&quot;}),dash:o({},a,{editType:&quot;arraydraw&quot;}),editType:&quot;calc+arraydraw&quot;},fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},fillrule:{valType:&quot;enumerated&quot;,values:[&quot;evenodd&quot;,&quot;nonzero&quot;],dflt:&quot;evenodd&quot;,editType:&quot;arraydraw&quot;},editable:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc+arraydraw&quot;},editType:&quot;arraydraw&quot;})},{&quot;../../constants/axis_placeable_objects&quot;:746,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../../traces/scatter/attributes&quot;:1187,&quot;../annotations/attributes&quot;:626,&quot;../drawing/attributes&quot;:664}],721:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;./constants&quot;),o=t(&quot;./helpers&quot;);function s(t){return c(t.line.width,t.xsizemode,t.x0,t.x1,t.path,!1)}function l(t){return c(t.line.width,t.ysizemode,t.y0,t.y1,t.path,!0)}function c(t,e,r,i,s,l){var c=t/2,u=l;if(&quot;pixel&quot;===e){var f=s?o.extractPathCoords(s,l?a.paramIsY:a.paramIsX):[r,i],h=n.aggNums(Math.max,null,f),p=n.aggNums(Math.min,null,f),d=p&lt;0?Math.abs(p)+c:c,g=h&gt;0?h+c:c;return{ppad:c,ppadplus:u?d:g,ppadminus:u?g:d}}return{ppad:c}}function u(t,e,r,n,i){var s=&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?t.r2c:t.d2c;if(void 0!==e)return[s(e),s(r)];if(n){var l,c,u,f,h=1/0,p=-1/0,d=n.match(a.segmentRE);for(&quot;date&quot;===t.type&amp;&amp;(s=o.decodeDate(s)),l=0;l&lt;d.length;l++)void 0!==(c=i[d[l].charAt(0)].drawn)&amp;&amp;(!(u=d[l].substr(1).match(a.paramRE))||u.length&lt;c||((f=s(u[c]))&lt;h&amp;&amp;(h=f),f&gt;p&amp;&amp;(p=f)));return p&gt;=h?[h,p]:void 0}}e.exports=function(t){var e=t._fullLayout,r=n.filterVisible(e.shapes);if(r.length&amp;&amp;t._fullData.length)for(var o=0;o&lt;r.length;o++){var c,f,h=r[o];h._extremes={};var p=i.getRefType(h.xref),d=i.getRefType(h.yref);if(&quot;paper&quot;!==h.xref&amp;&amp;&quot;domain&quot;!==p){var g=&quot;pixel&quot;===h.xsizemode?h.xanchor:h.x0,m=&quot;pixel&quot;===h.xsizemode?h.xanchor:h.x1;(f=u(c=i.getFromId(t,h.xref),g,m,h.path,a.paramIsX))&amp;&amp;(h._extremes[c._id]=i.findExtremes(c,f,s(h)))}if(&quot;paper&quot;!==h.yref&amp;&amp;&quot;domain&quot;!==d){var v=&quot;pixel&quot;===h.ysizemode?h.yanchor:h.y0,y=&quot;pixel&quot;===h.ysizemode?h.yanchor:h.y1;(f=u(c=i.getFromId(t,h.yref),v,y,h.path,a.paramIsY))&amp;&amp;(h._extremes[c._id]=i.findExtremes(c,f,l(h)))}}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./constants&quot;:722,&quot;./helpers&quot;:731}],722:[function(t,e,r){&quot;use strict&quot;;e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},{}],723:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;./helpers&quot;);function l(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}if(a(&quot;visible&quot;)){var l=a(&quot;path&quot;),c=a(&quot;type&quot;,l?&quot;path&quot;:&quot;rect&quot;);&quot;path&quot;!==e.type&amp;&amp;delete e.path,a(&quot;editable&quot;),a(&quot;layer&quot;),a(&quot;opacity&quot;),a(&quot;fillcolor&quot;),a(&quot;fillrule&quot;),a(&quot;line.width&quot;)&amp;&amp;(a(&quot;line.color&quot;),a(&quot;line.dash&quot;));for(var u=a(&quot;xsizemode&quot;),f=a(&quot;ysizemode&quot;),h=[&quot;x&quot;,&quot;y&quot;],p=0;p&lt;2;p++){var d,g,m,v=h[p],y=v+&quot;anchor&quot;,x=&quot;x&quot;===v?u:f,b={_fullLayout:r},_=i.coerceRef(t,e,b,v,void 0,&quot;paper&quot;);if(&quot;range&quot;===i.getRefType(_)?((d=i.getFromId(b,_))._shapeIndices.push(e._index),m=s.rangeToShapePosition(d),g=s.shapePositionToRange(d)):g=m=n.identity,&quot;path&quot;!==c){var w=v+&quot;0&quot;,T=v+&quot;1&quot;,k=t[w],M=t[T];t[w]=g(t[w],!0),t[T]=g(t[T],!0),&quot;pixel&quot;===x?(a(w,0),a(T,10)):(i.coercePosition(e,b,a,_,w,.25),i.coercePosition(e,b,a,_,T,.75)),e[w]=m(e[w]),e[T]=m(e[T]),t[w]=k,t[T]=M}if(&quot;pixel&quot;===x){var A=t[y];t[y]=g(t[y],!0),i.coercePosition(e,b,a,_,y,.25),e[y]=m(e[y]),t[y]=A}}&quot;path&quot;===c?a(&quot;path&quot;):n.noneOrAll(t,e,[&quot;x0&quot;,&quot;x1&quot;,&quot;y0&quot;,&quot;y1&quot;])}}e.exports=function(t,e){a(t,e,{name:&quot;shapes&quot;,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:720,&quot;./helpers&quot;:731}],724:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;./draw_newshape/helpers&quot;).readPaths,s=t(&quot;./draw_newshape/display_outlines&quot;),l=t(&quot;../../plots/cartesian/handle_outline&quot;).clearOutlineControllers,c=t(&quot;../color&quot;),u=t(&quot;../drawing&quot;),f=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,h=t(&quot;../dragelement&quot;),p=t(&quot;../../lib/setcursor&quot;),d=t(&quot;./constants&quot;),g=t(&quot;./helpers&quot;);function m(t){var e=t._fullLayout;for(var r in e._shapeUpperLayer.selectAll(&quot;path&quot;).remove(),e._shapeLowerLayer.selectAll(&quot;path&quot;).remove(),e._plots){var n=e._plots[r].shapelayer;n&amp;&amp;n.selectAll(&quot;path&quot;).remove()}for(var i=0;i&lt;e.shapes.length;i++)e.shapes[i].visible&amp;&amp;x(t,i)}function v(t){return!!t._fullLayout._drawing}function y(t){return!t._context.edits.shapePosition}function x(t,e){t._fullLayout._paperdiv.selectAll('.shapelayer [data-index=&quot;'+e+'&quot;]').remove();var r=g.makeOptionsAndPlotinfo(t,e),l=r.options,x=r.plotinfo;if(l._input&amp;&amp;!1!==l.visible)if(&quot;below&quot;!==l.layer)k(t._fullLayout._shapeUpperLayer);else if(&quot;paper&quot;===l.xref||&quot;paper&quot;===l.yref)k(t._fullLayout._shapeLowerLayer);else{if(x._hadPlotinfo)k((x.mainplotinfo||x).shapelayer);else k(t._fullLayout._shapeLowerLayer)}function k(r){var k=_(t,l),M={&quot;data-index&quot;:e,&quot;fill-rule&quot;:l.fillrule,d:k},A=l.opacity,S=l.fillcolor,E=l.line.width?l.line.color:&quot;rgba(0,0,0,0)&quot;,C=l.line.width,L=l.line.dash;C||!0!==l.editable||(C=5,L=&quot;solid&quot;);var I=&quot;Z&quot;!==k[k.length-1],P=y(t)&amp;&amp;l.editable&amp;&amp;t._fullLayout._activeShapeIndex===e;P&amp;&amp;(S=I?&quot;rgba(0,0,0,0)&quot;:t._fullLayout.activeshape.fillcolor,A=t._fullLayout.activeshape.opacity);var z,O=r.append(&quot;path&quot;).attr(M).style(&quot;opacity&quot;,A).call(c.stroke,E).call(c.fill,S).call(u.dashLine,L,C);if(b(O,t,l),(P||t._context.edits.shapePosition)&amp;&amp;(z=f(t.layout,&quot;shapes&quot;,l)),P){O.style({cursor:&quot;move&quot;});var D={element:O.node(),plotinfo:x,gd:t,editHelpers:z,isActiveShape:!0},R=o(k,t);s(R,O,D)}else t._context.edits.shapePosition?function(t,e,r,o,s,l){var c,f,m,y,x,T,k,M,A,S,E,C,L,I,P,z,O=&quot;pixel&quot;===r.xsizemode,D=&quot;pixel&quot;===r.ysizemode,R=&quot;line&quot;===r.type,F=&quot;path&quot;===r.type,B=l.modifyItem,N=a.getFromId(t,r.xref),j=a.getRefType(r.xref),U=a.getFromId(t,r.yref),V=a.getRefType(r.yref),q=g.getDataToPixel(t,N,!1,j),H=g.getDataToPixel(t,U,!0,V),G=g.getPixelToData(t,N,!1,j),Y=g.getPixelToData(t,U,!0,V),W=R?function(){var t=Math.max(r.line.width,10),n=s.append(&quot;g&quot;).attr(&quot;data-index&quot;,o);n.append(&quot;path&quot;).attr(&quot;d&quot;,e.attr(&quot;d&quot;)).style({cursor:&quot;move&quot;,&quot;stroke-width&quot;:t,&quot;stroke-opacity&quot;:&quot;0&quot;});var i={&quot;fill-opacity&quot;:&quot;0&quot;},a=Math.max(t/2,10);return n.append(&quot;circle&quot;).attr({&quot;data-line-point&quot;:&quot;start-point&quot;,cx:O?q(r.xanchor)+r.x0:q(r.x0),cy:D?H(r.yanchor)-r.y0:H(r.y0),r:a}).style(i).classed(&quot;cursor-grab&quot;,!0),n.append(&quot;circle&quot;).attr({&quot;data-line-point&quot;:&quot;end-point&quot;,cx:O?q(r.xanchor)+r.x1:q(r.x1),cy:D?H(r.yanchor)-r.y1:H(r.y1),r:a}).style(i).classed(&quot;cursor-grab&quot;,!0),n}():e,X={element:W.node(),gd:t,prepFn:function(n){if(v(t))return;O&amp;&amp;(x=q(r.xanchor));D&amp;&amp;(T=H(r.yanchor));&quot;path&quot;===r.type?P=r.path:(c=O?r.x0:q(r.x0),f=D?r.y0:H(r.y0),m=O?r.x1:q(r.x1),y=D?r.y1:H(r.y1));c&lt;m?(A=c,L=&quot;x0&quot;,S=m,I=&quot;x1&quot;):(A=m,L=&quot;x1&quot;,S=c,I=&quot;x0&quot;);!D&amp;&amp;f&lt;y||D&amp;&amp;f&gt;y?(k=f,E=&quot;y0&quot;,M=y,C=&quot;y1&quot;):(k=y,E=&quot;y1&quot;,M=f,C=&quot;y0&quot;);Z(n),Q(s,r),function(t,e,r){var n=e.xref,i=e.yref,o=a.getFromId(r,n),s=a.getFromId(r,i),l=&quot;&quot;;&quot;paper&quot;===n||o.autorange||(l+=n);&quot;paper&quot;===i||s.autorange||(l+=i);u.setClipUrl(t,l?&quot;clip&quot;+r._fullLayout._uid+l:null,r)}(e,r,t),X.moveFn=&quot;move&quot;===z?J:K,X.altKey=n.altKey},doneFn:function(){if(v(t))return;p(e),$(s),b(e,t,r),n.call(&quot;_guiRelayout&quot;,t,l.getUpdateObj())},clickFn:function(){if(v(t))return;$(s)}};function Z(r){if(v(t))z=null;else if(R)z=&quot;path&quot;===r.target.tagName?&quot;move&quot;:&quot;start-point&quot;===r.target.attributes[&quot;data-line-point&quot;].value?&quot;resize-over-start-point&quot;:&quot;resize-over-end-point&quot;;else{var n=X.element.getBoundingClientRect(),i=n.right-n.left,a=n.bottom-n.top,o=r.clientX-n.left,s=r.clientY-n.top,l=!F&amp;&amp;i&gt;10&amp;&amp;a&gt;10&amp;&amp;!r.shiftKey?h.getCursor(o/i,1-s/a):&quot;move&quot;;p(e,l),z=l.split(&quot;-&quot;)[0]}}function J(n,i){if(&quot;path&quot;===r.type){var a=function(t){return t},o=a,l=a;O?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(o=function(t){return G(q(t)+n)},N&amp;&amp;&quot;date&quot;===N.type&amp;&amp;(o=g.encodeDate(o))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(l=function(t){return Y(H(t)+i)},U&amp;&amp;&quot;date&quot;===U.type&amp;&amp;(l=g.encodeDate(l))),B(&quot;path&quot;,r.path=w(P,o,l))}else O?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(B(&quot;x0&quot;,r.x0=G(c+n)),B(&quot;x1&quot;,r.x1=G(m+n))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(B(&quot;y0&quot;,r.y0=Y(f+i)),B(&quot;y1&quot;,r.y1=Y(y+i)));e.attr(&quot;d&quot;,_(t,r)),Q(s,r)}function K(n,i){if(F){var a=function(t){return t},o=a,l=a;O?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(o=function(t){return G(q(t)+n)},N&amp;&amp;&quot;date&quot;===N.type&amp;&amp;(o=g.encodeDate(o))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(l=function(t){return Y(H(t)+i)},U&amp;&amp;&quot;date&quot;===U.type&amp;&amp;(l=g.encodeDate(l))),B(&quot;path&quot;,r.path=w(P,o,l))}else if(R){if(&quot;resize-over-start-point&quot;===z){var u=c+n,h=D?f-i:f+i;B(&quot;x0&quot;,r.x0=O?u:G(u)),B(&quot;y0&quot;,r.y0=D?h:Y(h))}else if(&quot;resize-over-end-point&quot;===z){var p=m+n,d=D?y-i:y+i;B(&quot;x1&quot;,r.x1=O?p:G(p)),B(&quot;y1&quot;,r.y1=D?d:Y(d))}}else{var v=function(t){return-1!==z.indexOf(t)},b=v(&quot;n&quot;),j=v(&quot;s&quot;),V=v(&quot;w&quot;),W=v(&quot;e&quot;),X=b?k+i:k,Z=j?M+i:M,J=V?A+n:A,K=W?S+n:S;D&amp;&amp;(b&amp;&amp;(X=k-i),j&amp;&amp;(Z=M-i)),(!D&amp;&amp;Z-X&gt;10||D&amp;&amp;X-Z&gt;10)&amp;&amp;(B(E,r[E]=D?X:Y(X)),B(C,r[C]=D?Z:Y(Z))),K-J&gt;10&amp;&amp;(B(L,r[L]=O?J:G(J)),B(I,r[I]=O?K:G(K)))}e.attr(&quot;d&quot;,_(t,r)),Q(s,r)}function Q(t,e){(O||D)&amp;&amp;function(){var r=&quot;path&quot;!==e.type,n=t.selectAll(&quot;.visual-cue&quot;).data([0]);n.enter().append(&quot;path&quot;).attr({fill:&quot;#fff&quot;,&quot;fill-rule&quot;:&quot;evenodd&quot;,stroke:&quot;#000&quot;,&quot;stroke-width&quot;:1}).classed(&quot;visual-cue&quot;,!0);var a=q(O?e.xanchor:i.midRange(r?[e.x0,e.x1]:g.extractPathCoords(e.path,d.paramIsX))),o=H(D?e.yanchor:i.midRange(r?[e.y0,e.y1]:g.extractPathCoords(e.path,d.paramIsY)));if(a=g.roundPositionForSharpStrokeRendering(a,1),o=g.roundPositionForSharpStrokeRendering(o,1),O&amp;&amp;D){var s=&quot;M&quot;+(a-1-1)+&quot;,&quot;+(o-1-1)+&quot;h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z&quot;;n.attr(&quot;d&quot;,s)}else if(O){var l=&quot;M&quot;+(a-1-1)+&quot;,&quot;+(o-9-1)+&quot;v18 h2 v-18 Z&quot;;n.attr(&quot;d&quot;,l)}else{var c=&quot;M&quot;+(a-9-1)+&quot;,&quot;+(o-1-1)+&quot;h18 v2 h-18 Z&quot;;n.attr(&quot;d&quot;,c)}}()}function $(t){t.selectAll(&quot;.visual-cue&quot;).remove()}h.init(X),W.node().onmousemove=Z}(t,O,l,e,r,z):!0===l.editable&amp;&amp;O.style(&quot;pointer-events&quot;,I||c.opacity(S)*A&lt;=.5?&quot;stroke&quot;:&quot;all&quot;);O.node().addEventListener(&quot;click&quot;,(function(){return function(t,e){if(!y(t))return;var r=+e.node().getAttribute(&quot;data-index&quot;);if(r&gt;=0){if(r===t._fullLayout._activeShapeIndex)return void T(t);t._fullLayout._activeShapeIndex=r,t._fullLayout._deactivateShape=T,m(t)}}(t,O)}))}}function b(t,e,r){var n=(r.xref+r.yref).replace(/paper/g,&quot;&quot;).replace(/[xyz][1-9]* *domain/g,&quot;&quot;);u.setClipUrl(t,n?&quot;clip&quot;+e._fullLayout._uid+n:null,e)}function _(t,e){var r,n,o,s,l,c,u,f,h=e.type,p=a.getRefType(e.xref),m=a.getRefType(e.yref),v=a.getFromId(t,e.xref),y=a.getFromId(t,e.yref),x=t._fullLayout._size;if(v?&quot;domain&quot;===p?n=function(t){return v._offset+v._length*t}:(r=g.shapePositionToRange(v),n=function(t){return v._offset+v.r2p(r(t,!0))}):n=function(t){return x.l+x.w*t},y?&quot;domain&quot;===m?s=function(t){return y._offset+y._length*(1-t)}:(o=g.shapePositionToRange(y),s=function(t){return y._offset+y.r2p(o(t,!0))}):s=function(t){return x.t+x.h*(1-t)},&quot;path&quot;===h)return v&amp;&amp;&quot;date&quot;===v.type&amp;&amp;(n=g.decodeDate(n)),y&amp;&amp;&quot;date&quot;===y.type&amp;&amp;(s=g.decodeDate(s)),function(t,e,r){var n=t.path,a=t.xsizemode,o=t.ysizemode,s=t.xanchor,l=t.yanchor;return n.replace(d.segmentRE,(function(t){var n=0,c=t.charAt(0),u=d.paramIsX[c],f=d.paramIsY[c],h=d.numParams[c],p=t.substr(1).replace(d.paramRE,(function(t){return u[n]?t=&quot;pixel&quot;===a?e(s)+Number(t):e(t):f[n]&amp;&amp;(t=&quot;pixel&quot;===o?r(l)-Number(t):r(t)),++n&gt;h&amp;&amp;(t=&quot;X&quot;),t}));return n&gt;h&amp;&amp;(p=p.replace(/[\s,]*X.*/,&quot;&quot;),i.log(&quot;Ignoring extra params in segment &quot;+t)),c+p}))}(e,n,s);if(&quot;pixel&quot;===e.xsizemode){var b=n(e.xanchor);l=b+e.x0,c=b+e.x1}else l=n(e.x0),c=n(e.x1);if(&quot;pixel&quot;===e.ysizemode){var _=s(e.yanchor);u=_-e.y0,f=_-e.y1}else u=s(e.y0),f=s(e.y1);if(&quot;line&quot;===h)return&quot;M&quot;+l+&quot;,&quot;+u+&quot;L&quot;+c+&quot;,&quot;+f;if(&quot;rect&quot;===h)return&quot;M&quot;+l+&quot;,&quot;+u+&quot;H&quot;+c+&quot;V&quot;+f+&quot;H&quot;+l+&quot;Z&quot;;var w=(l+c)/2,T=(u+f)/2,k=Math.abs(w-l),M=Math.abs(T-u),A=&quot;A&quot;+k+&quot;,&quot;+M,S=w+k+&quot;,&quot;+T;return&quot;M&quot;+S+A+&quot; 0 1,1 &quot;+(w+&quot;,&quot;+(T-M))+A+&quot; 0 0,1 &quot;+S+&quot;Z&quot;}function w(t,e,r){return t.replace(d.segmentRE,(function(t){var n=0,i=t.charAt(0),a=d.paramIsX[i],o=d.paramIsY[i],s=d.numParams[i];return i+t.substr(1).replace(d.paramRE,(function(t){return n&gt;=s||(a[n]?t=e(t):o[n]&amp;&amp;(t=r(t)),n++),t}))}))}function T(t){y(t)&amp;&amp;(t._fullLayout._activeShapeIndex&gt;=0&amp;&amp;(l(t),delete t._fullLayout._activeShapeIndex,m(t)))}e.exports={draw:m,drawOne:x,eraseActiveShape:function(t){if(!y(t))return;l(t);var e=t._fullLayout._activeShapeIndex,r=(t.layout||{}).shapes||[];if(e&lt;r.length){for(var i=[],a=0;a&lt;r.length;a++)a!==e&amp;&amp;i.push(r[a]);delete t._fullLayout._activeShapeIndex,n.call(&quot;_guiRelayout&quot;,t,{shapes:i})}}}},{&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/handle_outline&quot;:838,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;./constants&quot;:722,&quot;./draw_newshape/display_outlines&quot;:728,&quot;./draw_newshape/helpers&quot;:729,&quot;./helpers&quot;:731}],725:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../drawing/attributes&quot;).dash,i=t(&quot;../../../lib/extend&quot;).extendFlat;e.exports={newshape:{line:{color:{valType:&quot;color&quot;,editType:&quot;none&quot;},width:{valType:&quot;number&quot;,min:0,dflt:4,editType:&quot;none&quot;},dash:i({},n,{dflt:&quot;solid&quot;,editType:&quot;none&quot;}),editType:&quot;none&quot;},fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;none&quot;},fillrule:{valType:&quot;enumerated&quot;,values:[&quot;evenodd&quot;,&quot;nonzero&quot;],dflt:&quot;evenodd&quot;,editType:&quot;none&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;none&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;none&quot;},drawdirection:{valType:&quot;enumerated&quot;,values:[&quot;ortho&quot;,&quot;horizontal&quot;,&quot;vertical&quot;,&quot;diagonal&quot;],dflt:&quot;diagonal&quot;,editType:&quot;none&quot;},editType:&quot;none&quot;},activeshape:{fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgb(255,0,255)&quot;,editType:&quot;none&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;none&quot;},editType:&quot;none&quot;}}},{&quot;../../../lib/extend&quot;:768,&quot;../../drawing/attributes&quot;:664}],726:[function(t,e,r){&quot;use strict&quot;;e.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},{}],727:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../color&quot;);e.exports=function(t,e,r){if(r(&quot;newshape.drawdirection&quot;),r(&quot;newshape.layer&quot;),r(&quot;newshape.fillcolor&quot;),r(&quot;newshape.fillrule&quot;),r(&quot;newshape.opacity&quot;),r(&quot;newshape.line.width&quot;)){var i=(t||{}).plot_bgcolor||&quot;#FFF&quot;;r(&quot;newshape.line.color&quot;,n.contrast(i)),r(&quot;newshape.line.dash&quot;)}r(&quot;activeshape.fillcolor&quot;),r(&quot;activeshape.opacity&quot;)}},{&quot;../../color&quot;:643}],728:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../dragelement&quot;),i=t(&quot;../../dragelement/helpers&quot;).drawMode,a=t(&quot;../../../registry&quot;),o=t(&quot;./constants&quot;),s=o.i000,l=o.i090,c=o.i180,u=o.i270,f=t(&quot;../../../plots/cartesian/handle_outline&quot;).clearOutlineControllers,h=t(&quot;./helpers&quot;),p=h.pointsShapeRectangle,d=h.pointsShapeEllipse,g=h.writePaths,m=t(&quot;./newshapes&quot;);e.exports=function t(e,r,o,h){h||(h=0);var v=o.gd;function y(){t(e,r,o,h++),d(e[0])&amp;&amp;x({redrawing:!0})}function x(t){o.isActiveShape=!1;var e=m(r,o);Object.keys(e).length&amp;&amp;a.call((t||{}).redrawing?&quot;relayout&quot;:&quot;_guiRelayout&quot;,v,e)}var b,_,w,T,k,M=o.isActiveShape,A=v._fullLayout._zoomlayer,S=o.dragmode;(i(S)?v._fullLayout._drawing=!0:v._fullLayout._activeShapeIndex&gt;=0&amp;&amp;f(v),r.attr(&quot;d&quot;,g(e)),M&amp;&amp;!h)&amp;&amp;(k=function(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r];t[r]=[];for(var i=0;i&lt;n.length;i++){t[r][i]=[];for(var a=0;a&lt;n[i].length;a++)t[r][i][a]=n[i][a]}}return t}([],e),function(t){b=[];for(var r=0;r&lt;e.length;r++){var i=e[r],a=!p(i)&amp;&amp;d(i);b[r]=[];for(var o=0;o&lt;i.length;o++)if(&quot;Z&quot;!==i[o][0]&amp;&amp;(!a||o===s||o===l||o===c||o===u)){var f=i[o][1],h=i[o][2],g=t.append(&quot;circle&quot;).classed(&quot;cursor-grab&quot;,!0).attr(&quot;data-i&quot;,r).attr(&quot;data-j&quot;,o).attr(&quot;cx&quot;,f).attr(&quot;cy&quot;,h).attr(&quot;r&quot;,4).style({&quot;mix-blend-mode&quot;:&quot;luminosity&quot;,fill:&quot;black&quot;,stroke:&quot;white&quot;,&quot;stroke-width&quot;:1});b[r][o]={element:g.node(),gd:v,prepFn:E,doneFn:L,clickFn:I},n.init(b[r][o])}}}(A.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;outline-controllers&quot;)),function(){if(_=[],!e.length)return;_[0]={element:r[0][0],gd:v,prepFn:z,doneFn:O},n.init(_[0])}());function E(t){w=+t.srcElement.getAttribute(&quot;data-i&quot;),T=+t.srcElement.getAttribute(&quot;data-j&quot;),b[w][T].moveFn=C}function C(t,r){if(e.length){var n=k[w][T][1],i=k[w][T][2],a=e[w],o=a.length;if(p(a)){for(var s=0;s&lt;o;s++)if(s!==T){var l=a[s];l[1]===a[T][1]&amp;&amp;(l[1]=n+t),l[2]===a[T][2]&amp;&amp;(l[2]=i+r)}if(a[T][1]=n+t,a[T][2]=i+r,!p(a))for(var c=0;c&lt;o;c++)for(var u=0;u&lt;a[c].length;u++)a[c][u]=k[w][c][u]}else a[T][1]=n+t,a[T][2]=i+r;y()}}function L(){x()}function I(t,r){if(2===t){w=+r.srcElement.getAttribute(&quot;data-i&quot;),T=+r.srcElement.getAttribute(&quot;data-j&quot;);var n=e[w];p(n)||d(n)||function(){if(e.length&amp;&amp;e[w]&amp;&amp;e[w].length){for(var t=[],r=0;r&lt;e[w].length;r++)r!==T&amp;&amp;t.push(e[w][r]);t.length&gt;1&amp;&amp;(2!==t.length||&quot;Z&quot;!==t[1][0])&amp;&amp;(0===T&amp;&amp;(t[0][0]=&quot;M&quot;),e[w]=t,y(),x())}}()}}function P(t,r){!function(t,r){if(e.length)for(var n=0;n&lt;e.length;n++)for(var i=0;i&lt;e[n].length;i++)for(var a=0;a+2&lt;e[n][i].length;a+=2)e[n][i][a+1]=k[n][i][a+1]+t,e[n][i][a+2]=k[n][i][a+2]+r}(t,r),y()}function z(t){(w=+t.srcElement.getAttribute(&quot;data-i&quot;))||(w=0),_[w].moveFn=P}function O(){x()}}},{&quot;../../../plots/cartesian/handle_outline&quot;:838,&quot;../../../registry&quot;:911,&quot;../../dragelement&quot;:662,&quot;../../dragelement/helpers&quot;:661,&quot;./constants&quot;:726,&quot;./helpers&quot;:729,&quot;./newshapes&quot;:730}],729:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-svg-path&quot;),i=t(&quot;./constants&quot;),a=i.CIRCLE_SIDES,o=i.SQRT2,s=t(&quot;../../../plots/cartesian/helpers&quot;),l=s.p2r,c=s.r2p,u=[0,3,4,5,6,1,2],f=[0,3,4,1,2];function h(t,e){return Math.abs(t-e)&lt;=1e-6}function p(t,e){var r=e[1]-t[1],n=e[2]-t[2];return Math.sqrt(r*r+n*n)}r.writePaths=function(t){var e=t.length;if(!e)return&quot;M0,0Z&quot;;for(var r=&quot;&quot;,n=0;n&lt;e;n++)for(var i=t[n].length,a=0;a&lt;i;a++){var o=t[n][a][0];if(&quot;Z&quot;===o)r+=&quot;Z&quot;;else for(var s=t[n][a].length,l=0;l&lt;s;l++){var c=l;&quot;Q&quot;===o||&quot;S&quot;===o?c=f[l]:&quot;C&quot;===o&amp;&amp;(c=u[l]),r+=t[n][a][c],l&gt;0&amp;&amp;l&lt;s-1&amp;&amp;(r+=&quot;,&quot;)}}return r},r.readPaths=function(t,e,r,i){var o,s,u,f=n(t),h=[],p=-1,d=0,g=0,m=function(){s=d,u=g};m();for(var v=0;v&lt;f.length;v++){var y,x,b,_,w=[],T=f[v][0],k=T;switch(T){case&quot;M&quot;:p++,h[p]=[],d=+f[v][1],g=+f[v][2],w.push([k,d,g]),m();break;case&quot;Q&quot;:case&quot;S&quot;:y=+f[v][1],b=+f[v][2],d=+f[v][3],g=+f[v][4],w.push([k,d,g,y,b]);break;case&quot;C&quot;:y=+f[v][1],b=+f[v][2],x=+f[v][3],_=+f[v][4],d=+f[v][5],g=+f[v][6],w.push([k,d,g,y,b,x,_]);break;case&quot;T&quot;:case&quot;L&quot;:d=+f[v][1],g=+f[v][2],w.push([k,d,g]);break;case&quot;H&quot;:k=&quot;L&quot;,d=+f[v][1],w.push([k,d,g]);break;case&quot;V&quot;:k=&quot;L&quot;,g=+f[v][1],w.push([k,d,g]);break;case&quot;A&quot;:k=&quot;L&quot;;var M=+f[v][1],A=+f[v][2];+f[v][4]||(M=-M,A=-A);var S=d-M,E=g;for(o=1;o&lt;=a/2;o++){var C=2*Math.PI*o/a;w.push([k,S+M*Math.cos(C),E+A*Math.sin(C)])}break;case&quot;Z&quot;:d===s&amp;&amp;g===u||(d=s,g=u,w.push([k,d,g]))}for(var L=(r||{}).domain,I=e._fullLayout._size,P=r&amp;&amp;&quot;pixel&quot;===r.xsizemode,z=r&amp;&amp;&quot;pixel&quot;===r.ysizemode,O=!1===i,D=0;D&lt;w.length;D++){for(o=0;o+2&lt;7;o+=2){var R=w[D][o+1],F=w[D][o+2];void 0!==R&amp;&amp;void 0!==F&amp;&amp;(d=R,g=F,r&amp;&amp;(r.xaxis&amp;&amp;r.xaxis.p2r?(O&amp;&amp;(R-=r.xaxis._offset),R=P?c(r.xaxis,r.xanchor)+R:l(r.xaxis,R)):(O&amp;&amp;(R-=I.l),L?R=L.x[0]+R/I.w:R/=I.w),r.yaxis&amp;&amp;r.yaxis.p2r?(O&amp;&amp;(F-=r.yaxis._offset),F=z?c(r.yaxis,r.yanchor)-F:l(r.yaxis,F)):(O&amp;&amp;(F-=I.t),F=L?L.y[1]-F/I.h:1-F/I.h)),w[D][o+1]=R,w[D][o+2]=F)}h[p].push(w[D].slice())}}return h},r.pointsShapeRectangle=function(t){if(5!==t.length)return!1;for(var e=1;e&lt;3;e++){if(!h(t[0][e]-t[1][e],t[3][e]-t[2][e]))return!1;if(!h(t[0][e]-t[3][e],t[1][e]-t[2][e]))return!1}return!(!h(t[0][1],t[1][1])&amp;&amp;!h(t[0][1],t[3][1]))&amp;&amp;!!(p(t[0],t[1])*p(t[0],t[3]))},r.pointsShapeEllipse=function(t){var e=t.length;if(e!==a+1)return!1;e=a;for(var r=0;r&lt;e;r++){var n=(2*e-r)%e,i=(e/2+n)%e,o=(e/2+r)%e;if(!h(p(t[r],t[o]),p(t[n],t[i])))return!1}return!0},r.handleEllipse=function(t,e,n){if(!t)return[e,n];var i=r.ellipseOver({x0:e[0],y0:e[1],x1:n[0],y1:n[1]}),s=(i.x1+i.x0)/2,l=(i.y1+i.y0)/2,c=(i.x1-i.x0)/2,u=(i.y1-i.y0)/2;c||(c=u/=o),u||(u=c/=o);for(var f=[],h=0;h&lt;a;h++){var p=2*h*Math.PI/a;f.push([s+c*Math.cos(p),l+u*Math.sin(p)])}return f},r.ellipseOver=function(t){var e=t.x0,r=t.y0,n=t.x1,i=t.y1,a=n-e,s=i-r,l=((e-=a)+n)/2,c=((r-=s)+i)/2;return{x0:l-(a*=o),y0:c-(s*=o),x1:l+a,y1:c+s}}},{&quot;../../../plots/cartesian/helpers&quot;:839,&quot;./constants&quot;:726,&quot;parse-svg-path&quot;:505}],730:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../dragelement/helpers&quot;),i=n.drawMode,a=n.openMode,o=t(&quot;./constants&quot;),s=o.i000,l=o.i090,c=o.i180,u=o.i270,f=o.cos45,h=o.sin45,p=t(&quot;../../../plots/cartesian/helpers&quot;),d=p.p2r,g=p.r2p,m=t(&quot;../../../plots/cartesian/handle_outline&quot;).clearSelect,v=t(&quot;./helpers&quot;),y=v.readPaths,x=v.writePaths,b=v.ellipseOver;e.exports=function(t,e){if(t.length){var r=t[0][0];if(r){var n=r.getAttribute(&quot;d&quot;),o=e.gd,p=o._fullLayout.newshape,v=e.plotinfo,_=v.xaxis,w=v.yaxis,T=!!v.domain||!v.xaxis,k=!!v.domain||!v.yaxis,M=e.isActiveShape,A=e.dragmode,S=(o.layout||{}).shapes||[];if(!i(A)&amp;&amp;void 0!==M){var E=o._fullLayout._activeShapeIndex;if(E&lt;S.length)switch(o._fullLayout.shapes[E].type){case&quot;rect&quot;:A=&quot;drawrect&quot;;break;case&quot;circle&quot;:A=&quot;drawcircle&quot;;break;case&quot;line&quot;:A=&quot;drawline&quot;;break;case&quot;path&quot;:var C=S[E].path||&quot;&quot;;A=&quot;Z&quot;===C[C.length-1]?&quot;drawclosedpath&quot;:&quot;drawopenpath&quot;}}var L,I=a(A),P=y(n,o,v,M),z={editable:!0,xref:T?&quot;paper&quot;:_._id,yref:k?&quot;paper&quot;:w._id,layer:p.layer,opacity:p.opacity,line:{color:p.line.color,width:p.line.width,dash:p.line.dash}};if(I||(z.fillcolor=p.fillcolor,z.fillrule=p.fillrule),1===P.length&amp;&amp;(L=P[0]),L&amp;&amp;&quot;drawrect&quot;===A)z.type=&quot;rect&quot;,z.x0=L[0][1],z.y0=L[0][2],z.x1=L[2][1],z.y1=L[2][2];else if(L&amp;&amp;&quot;drawline&quot;===A)z.type=&quot;line&quot;,z.x0=L[0][1],z.y0=L[0][2],z.x1=L[1][1],z.y1=L[1][2];else if(L&amp;&amp;&quot;drawcircle&quot;===A){z.type=&quot;circle&quot;;var O=L[s][1],D=L[l][1],R=L[c][1],F=L[u][1],B=L[s][2],N=L[l][2],j=L[c][2],U=L[u][2],V=v.xaxis&amp;&amp;(&quot;date&quot;===v.xaxis.type||&quot;log&quot;===v.xaxis.type),q=v.yaxis&amp;&amp;(&quot;date&quot;===v.yaxis.type||&quot;log&quot;===v.yaxis.type);V&amp;&amp;(O=g(v.xaxis,O),D=g(v.xaxis,D),R=g(v.xaxis,R),F=g(v.xaxis,F)),q&amp;&amp;(B=g(v.yaxis,B),N=g(v.yaxis,N),j=g(v.yaxis,j),U=g(v.yaxis,U));var H=(D+F)/2,G=(B+j)/2,Y=b({x0:H,y0:G,x1:H+(F-D+R-O)/2*f,y1:G+(U-N+j-B)/2*h});V&amp;&amp;(Y.x0=d(v.xaxis,Y.x0),Y.x1=d(v.xaxis,Y.x1)),q&amp;&amp;(Y.y0=d(v.yaxis,Y.y0),Y.y1=d(v.yaxis,Y.y1)),z.x0=Y.x0,z.y0=Y.y0,z.x1=Y.x1,z.y1=Y.y1}else z.type=&quot;path&quot;,_&amp;&amp;w&amp;&amp;function(t,e,r){var n=&quot;date&quot;===e.type,i=&quot;date&quot;===r.type;if(!n&amp;&amp;!i)return t;for(var a=0;a&lt;t.length;a++)for(var o=0;o&lt;t[a].length;o++)for(var s=0;s+2&lt;t[a][o].length;s+=2)n&amp;&amp;(t[a][o][s+1]=t[a][o][s+1].replace(&quot; &quot;,&quot;_&quot;)),i&amp;&amp;(t[a][o][s+2]=t[a][o][s+2].replace(&quot; &quot;,&quot;_&quot;))}(P,_,w),z.path=x(P),L=null;m(o);for(var W=e.editHelpers,X=(W||{}).modifyItem,Z=[],J=0;J&lt;S.length;J++){var K=o._fullLayout.shapes[J];if(Z[J]=K._input,void 0!==M&amp;&amp;J===o._fullLayout._activeShapeIndex){var Q=z;switch(K.type){case&quot;line&quot;:case&quot;rect&quot;:case&quot;circle&quot;:X(&quot;x0&quot;,Q.x0),X(&quot;x1&quot;,Q.x1),X(&quot;y0&quot;,Q.y0),X(&quot;y1&quot;,Q.y1);break;case&quot;path&quot;:X(&quot;path&quot;,Q.path)}}}return void 0===M?(Z.push(z),Z):W?W.getUpdateObj():{}}}}},{&quot;../../../plots/cartesian/handle_outline&quot;:838,&quot;../../../plots/cartesian/helpers&quot;:839,&quot;../../dragelement/helpers&quot;:661,&quot;./constants&quot;:726,&quot;./helpers&quot;:729}],731:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib&quot;);r.rangeToShapePosition=function(t){return&quot;log&quot;===t.type?t.r2d:function(t){return t}},r.shapePositionToRange=function(t){return&quot;log&quot;===t.type?t.d2r:function(t){return t}},r.decodeDate=function(t){return function(e){return e.replace&amp;&amp;(e=e.replace(&quot;_&quot;,&quot; &quot;)),t(e)}},r.encodeDate=function(t){return function(e){return t(e).replace(&quot; &quot;,&quot;_&quot;)}},r.extractPathCoords=function(t,e){var r=[];return t.match(n.segmentRE).forEach((function(t){var a=e[t.charAt(0)].drawn;if(void 0!==a){var o=t.substr(1).match(n.paramRE);!o||o.length&lt;a||r.push(i.cleanNumber(o[a]))}})),r},r.getDataToPixel=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if(&quot;domain&quot;===i)a=function(t){return e._length*(n?1-t:t)+e._offset};else{var s=r.shapePositionToRange(e);a=function(t){return e._offset+e.r2p(s(t,!0))},&quot;date&quot;===e.type&amp;&amp;(a=r.decodeDate(a))}else a=n?function(t){return o.t+o.h*(1-t)}:function(t){return o.l+o.w*t};return a},r.getPixelToData=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if(&quot;domain&quot;===i)a=function(t){var r=(t-e._offset)/e._length;return n?1-r:r};else{var s=r.rangeToShapePosition(e);a=function(t){return s(e.p2r(t-e._offset))}}else a=n?function(t){return 1-(t-o.t)/o.h}:function(t){return(t-o.l)/o.w};return a},r.roundPositionForSharpStrokeRendering=function(t,e){var r=1===Math.round(e%2),n=Math.round(t);return r?n+.5:n},r.makeOptionsAndPlotinfo=function(t,e){var r=t._fullLayout.shapes[e]||{},n=t._fullLayout._plots[r.xref+r.yref];return!!n?n._hadPlotinfo=!0:(n={},r.xref&amp;&amp;&quot;paper&quot;!==r.xref&amp;&amp;(n.xaxis=t._fullLayout[r.xref+&quot;axis&quot;]),r.yref&amp;&amp;&quot;paper&quot;!==r.yref&amp;&amp;(n.yaxis=t._fullLayout[r.yref+&quot;axis&quot;])),n.xsizemode=r.xsizemode,n.ysizemode=r.ysizemode,n.xanchor=r.xanchor,n.yanchor=r.yanchor,{options:r,plotinfo:n}}},{&quot;../../lib&quot;:778,&quot;./constants&quot;:722}],732:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;shapes&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),supplyDrawNewShapeDefaults:t(&quot;./draw_newshape/defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;shapes&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:n.draw,drawOne:n.drawOne}},{&quot;../../plots/cartesian/include_components&quot;:840,&quot;./attributes&quot;:720,&quot;./calc_autorange&quot;:721,&quot;./defaults&quot;:723,&quot;./draw&quot;:724,&quot;./draw_newshape/defaults&quot;:727}],733:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../plots/pad_attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendDeepAll,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../plots/animation_attributes&quot;),l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=t(&quot;./constants&quot;),u=l(&quot;step&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},method:{valType:&quot;enumerated&quot;,values:[&quot;restyle&quot;,&quot;relayout&quot;,&quot;animate&quot;,&quot;update&quot;,&quot;skip&quot;],dflt:&quot;restyle&quot;},args:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},label:{valType:&quot;string&quot;},value:{valType:&quot;string&quot;},execute:{valType:&quot;boolean&quot;,dflt:!0}});e.exports=o(l(&quot;slider&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},active:{valType:&quot;number&quot;,min:0,dflt:0},steps:u,lenmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;fraction&quot;},len:{valType:&quot;number&quot;,min:0,dflt:1},x:{valType:&quot;number&quot;,min:-2,max:3,dflt:0},pad:a(i({editType:&quot;arraydraw&quot;}),{},{t:{dflt:20}}),xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,dflt:0},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;},transition:{duration:{valType:&quot;number&quot;,min:0,dflt:150},easing:{valType:&quot;enumerated&quot;,values:s.transition.easing.values,dflt:&quot;cubic-in-out&quot;}},currentvalue:{visible:{valType:&quot;boolean&quot;,dflt:!0},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},offset:{valType:&quot;number&quot;,dflt:10},prefix:{valType:&quot;string&quot;},suffix:{valType:&quot;string&quot;},font:n({})},font:n({}),activebgcolor:{valType:&quot;color&quot;,dflt:c.gripBgActiveColor},bgcolor:{valType:&quot;color&quot;,dflt:c.railBgColor},bordercolor:{valType:&quot;color&quot;,dflt:c.railBorderColor},borderwidth:{valType:&quot;number&quot;,min:0,dflt:c.railBorderWidth},ticklen:{valType:&quot;number&quot;,min:0,dflt:c.tickLength},tickcolor:{valType:&quot;color&quot;,dflt:c.tickColor},tickwidth:{valType:&quot;number&quot;,min:0,dflt:1},minorticklen:{valType:&quot;number&quot;,min:0,dflt:c.minorTickLength}}),&quot;arraydraw&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/animation_attributes&quot;:822,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/pad_attributes&quot;:890,&quot;./constants&quot;:734}],734:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;sliders&quot;,containerClassName:&quot;slider-container&quot;,groupClassName:&quot;slider-group&quot;,inputAreaClass:&quot;slider-input-area&quot;,railRectClass:&quot;slider-rail-rect&quot;,railTouchRectClass:&quot;slider-rail-touch-rect&quot;,gripRectClass:&quot;slider-grip-rect&quot;,tickRectClass:&quot;slider-tick-rect&quot;,inputProxyClass:&quot;slider-input-proxy&quot;,labelsClass:&quot;slider-labels&quot;,labelGroupClass:&quot;slider-label-group&quot;,labelClass:&quot;slider-label&quot;,currentValueClass:&quot;slider-current-value&quot;,railHeight:5,menuIndexAttrName:&quot;slider-active-index&quot;,autoMarginIdRoot:&quot;slider-&quot;,minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:&quot;#bec8d9&quot;,railBgColor:&quot;#f8fafc&quot;,railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:&quot;#bec8d9&quot;,gripBgColor:&quot;#f6f8fa&quot;,gripBgActiveColor:&quot;#dbdde0&quot;,labelPadding:8,labelOffset:0,tickWidth:1,tickColor:&quot;#333&quot;,tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:&quot;#333&quot;,minorTickLength:4,currentValuePadding:8,currentValueInset:0}},{}],735:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;).name,s=a.steps;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}for(var s=i(t,e,{name:&quot;steps&quot;,handleItemDefaults:c}),l=0,u=0;u&lt;s.length;u++)s[u].visible&amp;&amp;l++;if(l&lt;2?e.visible=!1:o(&quot;visible&quot;)){e._stepCount=l;var f=e._visibleSteps=n.filterVisible(s);(s[o(&quot;active&quot;)]||{}).visible||(e.active=f[0]._index),o(&quot;x&quot;),o(&quot;y&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),o(&quot;xanchor&quot;),o(&quot;yanchor&quot;),o(&quot;len&quot;),o(&quot;lenmode&quot;),o(&quot;pad.t&quot;),o(&quot;pad.r&quot;),o(&quot;pad.b&quot;),o(&quot;pad.l&quot;),n.coerceFont(o,&quot;font&quot;,r.font),o(&quot;currentvalue.visible&quot;)&amp;&amp;(o(&quot;currentvalue.xanchor&quot;),o(&quot;currentvalue.prefix&quot;),o(&quot;currentvalue.suffix&quot;),o(&quot;currentvalue.offset&quot;),n.coerceFont(o,&quot;currentvalue.font&quot;,e.font)),o(&quot;transition.duration&quot;),o(&quot;transition.easing&quot;),o(&quot;bgcolor&quot;),o(&quot;activebgcolor&quot;),o(&quot;bordercolor&quot;),o(&quot;borderwidth&quot;),o(&quot;ticklen&quot;),o(&quot;tickwidth&quot;),o(&quot;tickcolor&quot;),o(&quot;minorticklen&quot;)}}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}if(&quot;skip&quot;===t.method||Array.isArray(t.args)?r(&quot;visible&quot;):e.visible=!1){r(&quot;method&quot;),r(&quot;args&quot;);var i=r(&quot;label&quot;,&quot;step-&quot;+e._index);r(&quot;value&quot;,i),r(&quot;execute&quot;)}}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;./attributes&quot;:733,&quot;./constants&quot;:734}],736:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../color&quot;),o=t(&quot;../drawing&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,f=t(&quot;./constants&quot;),h=t(&quot;../../constants/alignment&quot;),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR;function m(t){return f.autoMarginIdRoot+t._index}function v(t){return t._index}function y(t,e){var r=o.tester.selectAll(&quot;g.&quot;+f.labelGroupClass).data(e._visibleSteps);r.enter().append(&quot;g&quot;).classed(f.labelGroupClass,!0);var a=0,l=0;r.each((function(t){var r=_(n.select(this),{step:t},e).node();if(r){var i=o.bBox(r);l=Math.max(l,i.height),a=Math.max(a,i.width)}})),r.remove();var u=e._dims={};u.inputAreaWidth=Math.max(f.railWidth,f.gripHeight);var h=t._fullLayout._size;u.lx=h.l+h.w*e.x,u.ly=h.t+h.h*(1-e.y),&quot;fraction&quot;===e.lenmode?u.outerLength=Math.round(h.w*e.len):u.outerLength=e.len,u.inputAreaStart=0,u.inputAreaLength=Math.round(u.outerLength-e.pad.l-e.pad.r);var p=(u.inputAreaLength-2*f.stepInset)/(e._stepCount-1),v=a+f.labelPadding;if(u.labelStride=Math.max(1,Math.ceil(v/p)),u.labelHeight=l,u.currentValueMaxWidth=0,u.currentValueHeight=0,u.currentValueTotalHeight=0,u.currentValueMaxLines=1,e.currentvalue.visible){var y=o.tester.append(&quot;g&quot;);r.each((function(t){var r=x(y,e,t.label),n=r.node()&amp;&amp;o.bBox(r.node())||{width:0,height:0},i=c.lineCount(r);u.currentValueMaxWidth=Math.max(u.currentValueMaxWidth,Math.ceil(n.width)),u.currentValueHeight=Math.max(u.currentValueHeight,Math.ceil(n.height)),u.currentValueMaxLines=Math.max(u.currentValueMaxLines,i)})),u.currentValueTotalHeight=u.currentValueHeight+e.currentvalue.offset,y.remove()}u.height=u.currentValueTotalHeight+f.tickOffset+e.ticklen+f.labelOffset+u.labelHeight+e.pad.t+e.pad.b;var b=&quot;left&quot;;s.isRightAnchor(e)&amp;&amp;(u.lx-=u.outerLength,b=&quot;right&quot;),s.isCenterAnchor(e)&amp;&amp;(u.lx-=u.outerLength/2,b=&quot;center&quot;);var w=&quot;top&quot;;s.isBottomAnchor(e)&amp;&amp;(u.ly-=u.height,w=&quot;bottom&quot;),s.isMiddleAnchor(e)&amp;&amp;(u.ly-=u.height/2,w=&quot;middle&quot;),u.outerLength=Math.ceil(u.outerLength),u.height=Math.ceil(u.height),u.lx=Math.round(u.lx),u.ly=Math.round(u.ly);var T={y:e.y,b:u.height*g[w],t:u.height*d[w]};&quot;fraction&quot;===e.lenmode?(T.l=0,T.xl=e.x-e.len*d[b],T.r=0,T.xr=e.x+e.len*g[b]):(T.x=e.x,T.l=u.outerLength*d[b],T.r=u.outerLength*g[b]),i.autoMargin(t,m(e),T)}function x(t,e,r){if(e.currentvalue.visible){var n,i,a=e._dims;switch(e.currentvalue.xanchor){case&quot;right&quot;:n=a.inputAreaLength-f.currentValueInset-a.currentValueMaxWidth,i=&quot;left&quot;;break;case&quot;center&quot;:n=.5*a.inputAreaLength,i=&quot;middle&quot;;break;default:n=f.currentValueInset,i=&quot;left&quot;}var l=s.ensureSingle(t,&quot;text&quot;,f.labelClass,(function(t){t.attr({&quot;text-anchor&quot;:i,&quot;data-notex&quot;:1})})),u=e.currentvalue.prefix?e.currentvalue.prefix:&quot;&quot;;if(&quot;string&quot;==typeof r)u+=r;else{var h=e.steps[e.active].label,d=e._gd._fullLayout._meta;d&amp;&amp;(h=s.templateString(h,d)),u+=h}e.currentvalue.suffix&amp;&amp;(u+=e.currentvalue.suffix),l.call(o.font,e.currentvalue.font).text(u).call(c.convertToTspans,e._gd);var g=c.lineCount(l),m=(a.currentValueMaxLines+1-g)*e.currentvalue.font.size*p;return c.positionText(l,n,m),l}}function b(t,e,r){s.ensureSingle(t,&quot;rect&quot;,f.gripRectClass,(function(n){n.call(M,e,t,r).style(&quot;pointer-events&quot;,&quot;all&quot;)})).attr({width:f.gripWidth,height:f.gripHeight,rx:f.gripRadius,ry:f.gripRadius}).call(a.stroke,r.bordercolor).call(a.fill,r.bgcolor).style(&quot;stroke-width&quot;,r.borderwidth+&quot;px&quot;)}function _(t,e,r){var n=s.ensureSingle(t,&quot;text&quot;,f.labelClass,(function(t){t.attr({&quot;text-anchor&quot;:&quot;middle&quot;,&quot;data-notex&quot;:1})})),i=e.step.label,a=r._gd._fullLayout._meta;return a&amp;&amp;(i=s.templateString(i,a)),n.call(o.font,r.font).text(i).call(c.convertToTspans,r._gd),n}function w(t,e){var r=s.ensureSingle(t,&quot;g&quot;,f.labelsClass),i=e._dims,a=r.selectAll(&quot;g.&quot;+f.labelGroupClass).data(i.labelSteps);a.enter().append(&quot;g&quot;).classed(f.labelGroupClass,!0),a.exit().remove(),a.each((function(t){var r=n.select(this);r.call(_,t,e),o.setTranslate(r,E(e,t.fraction),f.tickOffset+e.ticklen+e.font.size*p+f.labelOffset+i.currentValueTotalHeight)}))}function T(t,e,r,n,i){var a=Math.round(n*(r._stepCount-1)),o=r._visibleSteps[a]._index;o!==r.active&amp;&amp;k(t,e,r,o,!0,i)}function k(t,e,r,n,a,o){var s=r.active;r.active=n,u(t.layout,f.name,r).applyUpdate(&quot;active&quot;,n);var l=r.steps[r.active];e.call(S,r,o),e.call(x,r),t.emit(&quot;plotly_sliderchange&quot;,{slider:r,step:r.steps[r.active],interaction:a,previousActive:s}),l&amp;&amp;l.method&amp;&amp;a&amp;&amp;(e._nextMethod?(e._nextMethod.step=l,e._nextMethod.doCallback=a,e._nextMethod.doTransition=o):(e._nextMethod={step:l,doCallback:a,doTransition:o},e._nextMethodRaf=window.requestAnimationFrame((function(){var r=e._nextMethod.step;r.method&amp;&amp;(r.execute&amp;&amp;i.executeAPICommand(t,r.method,r.args),e._nextMethod=null,e._nextMethodRaf=null)}))))}function M(t,e,r){var i=r.node(),o=n.select(e);function s(){return r.data()[0]}t.on(&quot;mousedown&quot;,(function(){var t=s();e.emit(&quot;plotly_sliderstart&quot;,{slider:t});var l=r.select(&quot;.&quot;+f.gripRectClass);n.event.stopPropagation(),n.event.preventDefault(),l.call(a.fill,t.activebgcolor);var c=C(t,n.mouse(i)[0]);T(e,r,t,c,!0),t._dragging=!0,o.on(&quot;mousemove&quot;,(function(){var t=s(),a=C(t,n.mouse(i)[0]);T(e,r,t,a,!1)})),o.on(&quot;mouseup&quot;,(function(){var t=s();t._dragging=!1,l.call(a.fill,t.bgcolor),o.on(&quot;mouseup&quot;,null),o.on(&quot;mousemove&quot;,null),e.emit(&quot;plotly_sliderend&quot;,{slider:t,step:t.steps[t.active]})}))}))}function A(t,e){var r=t.selectAll(&quot;rect.&quot;+f.tickRectClass).data(e._visibleSteps),i=e._dims;r.enter().append(&quot;rect&quot;).classed(f.tickRectClass,!0),r.exit().remove(),r.attr({width:e.tickwidth+&quot;px&quot;,&quot;shape-rendering&quot;:&quot;crispEdges&quot;}),r.each((function(t,r){var s=r%i.labelStride==0,l=n.select(this);l.attr({height:s?e.ticklen:e.minorticklen}).call(a.fill,e.tickcolor),o.setTranslate(l,E(e,r/(e._stepCount-1))-.5*e.tickwidth,(s?f.tickOffset:f.minorTickOffset)+i.currentValueTotalHeight)}))}function S(t,e,r){for(var n=t.select(&quot;rect.&quot;+f.gripRectClass),i=0,a=0;a&lt;e._stepCount;a++)if(e._visibleSteps[a]._index===e.active){i=a;break}var o=E(e,i/(e._stepCount-1));if(!e._invokingCommand){var s=n;r&amp;&amp;e.transition.duration&gt;0&amp;&amp;(s=s.transition().duration(e.transition.duration).ease(e.transition.easing)),s.attr(&quot;transform&quot;,l(o-.5*f.gripWidth,e._dims.currentValueTotalHeight))}}function E(t,e){var r=t._dims;return r.inputAreaStart+f.stepInset+(r.inputAreaLength-2*f.stepInset)*Math.min(1,Math.max(0,e))}function C(t,e){var r=t._dims;return Math.min(1,Math.max(0,(e-f.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*f.stepInset-2*r.inputAreaStart)))}function L(t,e,r){var n=r._dims,i=s.ensureSingle(t,&quot;rect&quot;,f.railTouchRectClass,(function(n){n.call(M,e,t,r).style(&quot;pointer-events&quot;,&quot;all&quot;)}));i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,f.tickOffset+r.ticklen+n.labelHeight)}).call(a.fill,r.bgcolor).attr(&quot;opacity&quot;,0),o.setTranslate(i,0,n.currentValueTotalHeight)}function I(t,e){var r=e._dims,n=r.inputAreaLength-2*f.railInset,i=s.ensureSingle(t,&quot;rect&quot;,f.railRectClass);i.attr({width:n,height:f.railWidth,rx:f.railRadius,ry:f.railRadius,&quot;shape-rendering&quot;:&quot;crispEdges&quot;}).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;),o.setTranslate(i,f.railInset,.5*(r.inputAreaWidth-f.railWidth)+r.currentValueTotalHeight)}e.exports=function(t){var e=t._fullLayout,r=function(t,e){for(var r=t[f.name],n=[],i=0;i&lt;r.length;i++){var a=r[i];a.visible&amp;&amp;(a._gd=e,n.push(a))}return n}(e,t),a=e._infolayer.selectAll(&quot;g.&quot;+f.containerClassName).data(r.length&gt;0?[0]:[]);function s(e){e._commandObserver&amp;&amp;(e._commandObserver.remove(),delete e._commandObserver),i.autoMargin(t,m(e))}if(a.enter().append(&quot;g&quot;).classed(f.containerClassName,!0).style(&quot;cursor&quot;,&quot;ew-resize&quot;),a.exit().each((function(){n.select(this).selectAll(&quot;g.&quot;+f.groupClassName).each(s)})).remove(),0!==r.length){var l=a.selectAll(&quot;g.&quot;+f.groupClassName).data(r,v);l.enter().append(&quot;g&quot;).classed(f.groupClassName,!0),l.exit().each(s).remove();for(var c=0;c&lt;r.length;c++){var u=r[c];y(t,u)}l.each((function(e){var r=n.select(this);!function(t){var e=t._dims;e.labelSteps=[];for(var r=t._stepCount,n=0;n&lt;r;n+=e.labelStride)e.labelSteps.push({fraction:n/(r-1),step:t._visibleSteps[n]})}(e),i.manageCommandObserver(t,e,e._visibleSteps,(function(e){var n=r.data()[0];n.active!==e.index&amp;&amp;(n._dragging||k(t,r,n,e.index,!1,!0))})),function(t,e,r){(r.steps[r.active]||{}).visible||(r.active=r._visibleSteps[0]._index);e.call(x,r).call(I,r).call(w,r).call(A,r).call(L,t,r).call(b,t,r);var n=r._dims;o.setTranslate(e,n.lx+r.pad.l,n.ly+r.pad.t),e.call(S,r,!1),e.call(x,r)}(t,n.select(this),e)}))}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/plots&quot;:891,&quot;../color&quot;:643,&quot;../drawing&quot;:665,&quot;./constants&quot;:734,d3:169}],737:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);e.exports={moduleType:&quot;component&quot;,name:n.name,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;)}},{&quot;./attributes&quot;:733,&quot;./constants&quot;:734,&quot;./defaults&quot;:735,&quot;./draw&quot;:736}],738:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../drawing&quot;),u=t(&quot;../color&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../constants/interactions&quot;),p=t(&quot;../../constants/alignment&quot;).OPPOSITE_SIDE,d=/ [XY][0-9]* /;e.exports={draw:function(t,e,r){var g,m=r.propContainer,v=r.propName,y=r.placeholder,x=r.traceIndex,b=r.avoid||{},_=r.attributes,w=r.transform,T=r.containerGroup,k=t._fullLayout,M=1,A=!1,S=m.title,E=(S&amp;&amp;S.text?S.text:&quot;&quot;).trim(),C=S&amp;&amp;S.font?S.font:{},L=C.family,I=C.size,P=C.color;&quot;title.text&quot;===v?g=&quot;titleText&quot;:-1!==v.indexOf(&quot;axis&quot;)?g=&quot;axisTitleText&quot;:v.indexOf(!0)&amp;&amp;(g=&quot;colorbarTitleText&quot;);var z=t._context.edits[g];&quot;&quot;===E?M=0:E.replace(d,&quot; % &quot;)===y.replace(d,&quot; % &quot;)&amp;&amp;(M=.2,A=!0,z||(E=&quot;&quot;)),r._meta?E=s.templateString(E,r._meta):k._meta&amp;&amp;(E=s.templateString(E,k._meta));var O=E||z;T||(T=s.ensureSingle(k._infolayer,&quot;g&quot;,&quot;g-&quot;+e));var D=T.selectAll(&quot;text&quot;).data(O?[0]:[]);if(D.enter().append(&quot;text&quot;),D.text(E).attr(&quot;class&quot;,e),D.exit().remove(),!O)return T;function R(t){s.syncOrAsync([F,B],t)}function F(e){var r;return w?(r=&quot;&quot;,w.rotate&amp;&amp;(r+=&quot;rotate(&quot;+[w.rotate,_.x,_.y]+&quot;)&quot;),w.offset&amp;&amp;(r+=l(0,w.offset))):r=null,e.attr(&quot;transform&quot;,r),e.style({&quot;font-family&quot;:L,&quot;font-size&quot;:n.round(I,2)+&quot;px&quot;,fill:u.rgb(P),opacity:M*u.opacity(P),&quot;font-weight&quot;:a.fontWeight}).attr(_).call(f.convertToTspans,t),a.previousPromises(t)}function B(t){var e=n.select(t.node().parentNode);if(b&amp;&amp;b.selection&amp;&amp;b.side&amp;&amp;E){e.attr(&quot;transform&quot;,null);var r=p[b.side],a=&quot;left&quot;===b.side||&quot;top&quot;===b.side?-1:1,o=i(b.pad)?b.pad:2,u=c.bBox(e.node()),f={left:0,top:0,right:k.width,bottom:k.height},h=b.maxShift||a*(f[b.side]-u[b.side]),d=0;if(h&lt;0)d=h;else{var g=b.offsetLeft||0,m=b.offsetTop||0;u.left-=g,u.right-=g,u.top-=m,u.bottom-=m,b.selection.each((function(){var t=c.bBox(this);s.bBoxIntersect(u,t,o)&amp;&amp;(d=Math.max(d,a*(t[b.side]-u[r])+o))})),d=Math.min(h,d)}if(d&gt;0||h&lt;0){var v={left:[-d,0],right:[d,0],top:[0,-d],bottom:[0,d]}[b.side];e.attr(&quot;transform&quot;,l(v[0],v[1]))}}}return D.call(R),z&amp;&amp;(E?D.on(&quot;.opacity&quot;,null):(M=0,A=!0,D.text(y).on(&quot;mouseover.opacity&quot;,(function(){n.select(this).transition().duration(h.SHOW_PLACEHOLDER).style(&quot;opacity&quot;,1)})).on(&quot;mouseout.opacity&quot;,(function(){n.select(this).transition().duration(h.HIDE_PLACEHOLDER).style(&quot;opacity&quot;,0)}))),D.call(f.makeEditable,{gd:t}).on(&quot;edit&quot;,(function(e){void 0!==x?o.call(&quot;_guiRestyle&quot;,t,v,e,x):o.call(&quot;_guiRelayout&quot;,t,v,e)})).on(&quot;cancel&quot;,(function(){this.text(this.attr(&quot;data-unformatted&quot;)).call(R)})).on(&quot;input&quot;,(function(t){this.text(t||&quot; &quot;).call(f.positionText,_.x,_.y)}))),D.classed(&quot;js-placeholder&quot;,A),T}}},{&quot;../../constants/alignment&quot;:745,&quot;../../constants/interactions&quot;:752,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../drawing&quot;:665,d3:169,&quot;fast-isnumeric&quot;:241}],739:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../plots/pad_attributes&quot;),l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=l(&quot;button&quot;,{visible:{valType:&quot;boolean&quot;},method:{valType:&quot;enumerated&quot;,values:[&quot;restyle&quot;,&quot;relayout&quot;,&quot;animate&quot;,&quot;update&quot;,&quot;skip&quot;],dflt:&quot;restyle&quot;},args:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},args2:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},label:{valType:&quot;string&quot;,dflt:&quot;&quot;},execute:{valType:&quot;boolean&quot;,dflt:!0}});e.exports=o(l(&quot;updatemenu&quot;,{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:&quot;boolean&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;dropdown&quot;,&quot;buttons&quot;],dflt:&quot;dropdown&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;right&quot;,&quot;up&quot;,&quot;down&quot;],dflt:&quot;down&quot;},active:{valType:&quot;integer&quot;,min:-1,dflt:0},showactive:{valType:&quot;boolean&quot;,dflt:!0},buttons:c,x:{valType:&quot;number&quot;,min:-2,max:3,dflt:-.05},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;right&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,dflt:1},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;},pad:a(s({editType:&quot;arraydraw&quot;}),{}),font:n({}),bgcolor:{valType:&quot;color&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.borderLine},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;arraydraw&quot;}}),&quot;arraydraw&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/pad_attributes&quot;:890,&quot;../color/attributes&quot;:642}],740:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;updatemenus&quot;,containerClassName:&quot;updatemenu-container&quot;,headerGroupClassName:&quot;updatemenu-header-group&quot;,headerClassName:&quot;updatemenu-header&quot;,headerArrowClassName:&quot;updatemenu-header-arrow&quot;,dropdownButtonGroupClassName:&quot;updatemenu-dropdown-button-group&quot;,dropdownButtonClassName:&quot;updatemenu-dropdown-button&quot;,buttonClassName:&quot;updatemenu-button&quot;,itemRectClassName:&quot;updatemenu-item-rect&quot;,itemTextClassName:&quot;updatemenu-item-text&quot;,menuIndexAttrName:&quot;updatemenu-active-index&quot;,autoMarginIdRoot:&quot;updatemenu-&quot;,blankHeaderOpts:{label:&quot;  &quot;},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:&quot;#F4FAFF&quot;,hoverColor:&quot;#F4FAFF&quot;,arrowSymbol:{left:&quot;\u25c4&quot;,right:&quot;\u25ba&quot;,up:&quot;\u25b2&quot;,down:&quot;\u25bc&quot;}}},{}],741:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;).name,s=a.buttons;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}o(&quot;visible&quot;,i(t,e,{name:&quot;buttons&quot;,handleItemDefaults:c}).length&gt;0)&amp;&amp;(o(&quot;active&quot;),o(&quot;direction&quot;),o(&quot;type&quot;),o(&quot;showactive&quot;),o(&quot;x&quot;),o(&quot;y&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),o(&quot;xanchor&quot;),o(&quot;yanchor&quot;),o(&quot;pad.t&quot;),o(&quot;pad.r&quot;),o(&quot;pad.b&quot;),o(&quot;pad.l&quot;),n.coerceFont(o,&quot;font&quot;,r.font),o(&quot;bgcolor&quot;,r.paper_bgcolor),o(&quot;bordercolor&quot;),o(&quot;borderwidth&quot;))}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}r(&quot;visible&quot;,&quot;skip&quot;===t.method||Array.isArray(t.args))&amp;&amp;(r(&quot;method&quot;),r(&quot;args&quot;),r(&quot;args2&quot;),r(&quot;label&quot;),r(&quot;execute&quot;))}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;./attributes&quot;:739,&quot;./constants&quot;:740}],742:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../color&quot;),o=t(&quot;../drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,u=t(&quot;../../constants/alignment&quot;).LINE_SPACING,f=t(&quot;./constants&quot;),h=t(&quot;./scrollbox&quot;);function p(t){return t._index}function d(t,e){return+t.attr(f.menuIndexAttrName)===e._index}function g(t,e,r,n,i,a,o,s){e.active=o,c(t.layout,f.name,e).applyUpdate(&quot;active&quot;,o),&quot;buttons&quot;===e.type?v(t,n,null,null,e):&quot;dropdown&quot;===e.type&amp;&amp;(i.attr(f.menuIndexAttrName,&quot;-1&quot;),m(t,n,i,a,e),s||v(t,n,i,a,e))}function m(t,e,r,n,i){var a=s.ensureSingle(e,&quot;g&quot;,f.headerClassName,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)})),l=i._dims,c=i.active,u=i.buttons[c]||f.blankHeaderOpts,h={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},p={width:l.headerWidth,height:l.headerHeight};a.call(y,i,u,t).call(A,i,h,p),s.ensureSingle(e,&quot;text&quot;,f.headerArrowClassName,(function(t){t.attr(&quot;text-anchor&quot;,&quot;end&quot;).call(o.font,i.font).text(f.arrowSymbol[i.direction])})).attr({x:l.headerWidth-f.arrowOffsetX+i.pad.l,y:l.headerHeight/2+f.textOffsetY+i.pad.t}),a.on(&quot;click&quot;,(function(){r.call(S,String(d(r,i)?-1:i._index)),v(t,e,r,n,i)})),a.on(&quot;mouseover&quot;,(function(){a.call(w)})),a.on(&quot;mouseout&quot;,(function(){a.call(T,i)})),o.setTranslate(e,l.lx,l.ly)}function v(t,e,r,a,o){r||(r=e).attr(&quot;pointer-events&quot;,&quot;all&quot;);var l=function(t){return-1==+t.attr(f.menuIndexAttrName)}(r)&amp;&amp;&quot;buttons&quot;!==o.type?[]:o.buttons,c=&quot;dropdown&quot;===o.type?f.dropdownButtonClassName:f.buttonClassName,u=r.selectAll(&quot;g.&quot;+c).data(s.filterVisible(l)),h=u.enter().append(&quot;g&quot;).classed(c,!0),p=u.exit();&quot;dropdown&quot;===o.type?(h.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;),p.transition().attr(&quot;opacity&quot;,&quot;0&quot;).remove()):p.remove();var d=0,m=0,v=o._dims,x=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(o.direction);&quot;dropdown&quot;===o.type&amp;&amp;(x?m=v.headerHeight+f.gapButtonHeader:d=v.headerWidth+f.gapButtonHeader),&quot;dropdown&quot;===o.type&amp;&amp;&quot;up&quot;===o.direction&amp;&amp;(m=-f.gapButtonHeader+f.gapButton-v.openHeight),&quot;dropdown&quot;===o.type&amp;&amp;&quot;left&quot;===o.direction&amp;&amp;(d=-f.gapButtonHeader+f.gapButton-v.openWidth);var b={x:v.lx+d+o.pad.l,y:v.ly+m+o.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},k={l:b.x+o.borderwidth,t:b.y+o.borderwidth};u.each((function(s,l){var c=n.select(this);c.call(y,o,s,t).call(A,o,b),c.on(&quot;click&quot;,(function(){n.event.defaultPrevented||(s.execute&amp;&amp;(s.args2&amp;&amp;o.active===l?(g(t,o,0,e,r,a,-1),i.executeAPICommand(t,s.method,s.args2)):(g(t,o,0,e,r,a,l),i.executeAPICommand(t,s.method,s.args))),t.emit(&quot;plotly_buttonclicked&quot;,{menu:o,button:s,active:o.active}))})),c.on(&quot;mouseover&quot;,(function(){c.call(w)})),c.on(&quot;mouseout&quot;,(function(){c.call(T,o),u.call(_,o)}))})),u.call(_,o),x?(k.w=Math.max(v.openWidth,v.headerWidth),k.h=b.y-k.t):(k.w=b.x-k.l,k.h=Math.max(v.openHeight,v.headerHeight)),k.direction=o.direction,a&amp;&amp;(u.size()?function(t,e,r,n,i,a){var o,s,l,c=i.direction,u=&quot;up&quot;===c||&quot;down&quot;===c,h=i._dims,p=i.active;if(u)for(s=0,l=0;l&lt;p;l++)s+=h.heights[l]+f.gapButton;else for(o=0,l=0;l&lt;p;l++)o+=h.widths[l]+f.gapButton;n.enable(a,o,s),n.hbar&amp;&amp;n.hbar.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;);n.vbar&amp;&amp;n.vbar.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;)}(0,0,0,a,o,k):function(t){var e=!!t.hbar,r=!!t.vbar;e&amp;&amp;t.hbar.transition().attr(&quot;opacity&quot;,&quot;0&quot;).each(&quot;end&quot;,(function(){e=!1,r||t.disable()}));r&amp;&amp;t.vbar.transition().attr(&quot;opacity&quot;,&quot;0&quot;).each(&quot;end&quot;,(function(){r=!1,e||t.disable()}))}(a))}function y(t,e,r,n){t.call(x,e).call(b,e,r,n)}function x(t,e){s.ensureSingle(t,&quot;rect&quot;,f.itemRectClassName,(function(t){t.attr({rx:f.rx,ry:f.ry,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;)}function b(t,e,r,n){var i=s.ensureSingle(t,&quot;text&quot;,f.itemTextClassName,(function(t){t.attr({&quot;text-anchor&quot;:&quot;start&quot;,&quot;data-notex&quot;:1})})),a=r.label,c=n._fullLayout._meta;c&amp;&amp;(a=s.templateString(a,c)),i.call(o.font,e.font).text(a).call(l.convertToTspans,n)}function _(t,e){var r=e.active;t.each((function(t,i){var o=n.select(this);i===r&amp;&amp;e.showactive&amp;&amp;o.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,f.activeColor)}))}function w(t){t.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,f.hoverColor)}function T(t,e){t.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,e.bgcolor)}function k(t,e){var r=e._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},a=o.tester.selectAll(&quot;g.&quot;+f.dropdownButtonClassName).data(s.filterVisible(e.buttons));a.enter().append(&quot;g&quot;).classed(f.dropdownButtonClassName,!0);var c=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(e.direction);a.each((function(i,a){var s=n.select(this);s.call(y,e,i,t);var h=s.select(&quot;.&quot;+f.itemTextClassName),p=h.node()&amp;&amp;o.bBox(h.node()).width,d=Math.max(p+f.textPadX,f.minWidth),g=e.font.size*u,m=l.lineCount(h),v=Math.max(g*m,f.minHeight)+f.textOffsetY;v=Math.ceil(v),d=Math.ceil(d),r.widths[a]=d,r.heights[a]=v,r.height1=Math.max(r.height1,v),r.width1=Math.max(r.width1,d),c?(r.totalWidth=Math.max(r.totalWidth,d),r.openWidth=r.totalWidth,r.totalHeight+=v+f.gapButton,r.openHeight+=v+f.gapButton):(r.totalWidth+=d+f.gapButton,r.openWidth+=d+f.gapButton,r.totalHeight=Math.max(r.totalHeight,v),r.openHeight=r.totalHeight)})),c?r.totalHeight-=f.gapButton:r.totalWidth-=f.gapButton,r.headerWidth=r.width1+f.arrowPadX,r.headerHeight=r.height1,&quot;dropdown&quot;===e.type&amp;&amp;(c?(r.width1+=f.arrowPadX,r.totalHeight=r.height1):r.totalWidth=r.width1,r.totalWidth+=f.arrowPadX),a.remove();var h=r.totalWidth+e.pad.l+e.pad.r,p=r.totalHeight+e.pad.t+e.pad.b,d=t._fullLayout._size;r.lx=d.l+d.w*e.x,r.ly=d.t+d.h*(1-e.y);var g=&quot;left&quot;;s.isRightAnchor(e)&amp;&amp;(r.lx-=h,g=&quot;right&quot;),s.isCenterAnchor(e)&amp;&amp;(r.lx-=h/2,g=&quot;center&quot;);var m=&quot;top&quot;;s.isBottomAnchor(e)&amp;&amp;(r.ly-=p,m=&quot;bottom&quot;),s.isMiddleAnchor(e)&amp;&amp;(r.ly-=p/2,m=&quot;middle&quot;),r.totalWidth=Math.ceil(r.totalWidth),r.totalHeight=Math.ceil(r.totalHeight),r.lx=Math.round(r.lx),r.ly=Math.round(r.ly),i.autoMargin(t,M(e),{x:e.x,y:e.y,l:h*({right:1,center:.5}[g]||0),r:h*({left:1,center:.5}[g]||0),b:p*({top:1,middle:.5}[m]||0),t:p*({bottom:1,middle:.5}[m]||0)})}function M(t){return f.autoMarginIdRoot+t._index}function A(t,e,r,n){n=n||{};var i=t.select(&quot;.&quot;+f.itemRectClassName),a=t.select(&quot;.&quot;+f.itemTextClassName),s=e.borderwidth,c=r.index,h=e._dims;o.setTranslate(t,s+r.x,s+r.y);var p=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(e.direction),d=n.height||(p?h.heights[c]:h.height1);i.attr({x:0,y:0,width:n.width||(p?h.width1:h.widths[c]),height:d});var g=e.font.size*u,m=(l.lineCount(a)-1)*g/2;l.positionText(a,f.textOffsetX,d/2-m+f.textOffsetY),p?r.y+=h.heights[c]+r.yPad:r.x+=h.widths[c]+r.xPad,r.index++}function S(t,e){t.attr(f.menuIndexAttrName,e||&quot;-1&quot;).selectAll(&quot;g.&quot;+f.dropdownButtonClassName).remove()}e.exports=function(t){var e=t._fullLayout,r=s.filterVisible(e[f.name]);function a(e){i.autoMargin(t,M(e))}var o=e._menulayer.selectAll(&quot;g.&quot;+f.containerClassName).data(r.length&gt;0?[0]:[]);if(o.enter().append(&quot;g&quot;).classed(f.containerClassName,!0).style(&quot;cursor&quot;,&quot;pointer&quot;),o.exit().each((function(){n.select(this).selectAll(&quot;g.&quot;+f.headerGroupClassName).each(a)})).remove(),0!==r.length){var l=o.selectAll(&quot;g.&quot;+f.headerGroupClassName).data(r,p);l.enter().append(&quot;g&quot;).classed(f.headerGroupClassName,!0);for(var c=s.ensureSingle(o,&quot;g&quot;,f.dropdownButtonGroupClassName,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)})),u=0;u&lt;r.length;u++){var y=r[u];k(t,y)}var x=&quot;updatemenus&quot;+e._uid,b=new h(t,c,x);l.enter().size()&amp;&amp;(c.node().parentNode.appendChild(c.node()),c.call(S)),l.exit().each((function(t){c.call(S),a(t)})).remove(),l.each((function(e){var r=n.select(this),a=&quot;dropdown&quot;===e.type?c:null;i.manageCommandObserver(t,e,e.buttons,(function(n){g(t,e,e.buttons[n.index],r,a,b,n.index,!0)})),&quot;dropdown&quot;===e.type?(m(t,r,c,b,e),d(c,e)&amp;&amp;v(t,r,c,b,e)):v(t,r,null,null,e)}))}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/plots&quot;:891,&quot;../color&quot;:643,&quot;../drawing&quot;:665,&quot;./constants&quot;:740,&quot;./scrollbox&quot;:744,d3:169}],743:[function(t,e,r){arguments[4][737][0].apply(r,arguments)},{&quot;./attributes&quot;:739,&quot;./constants&quot;:740,&quot;./defaults&quot;:741,&quot;./draw&quot;:742,dup:737}],744:[function(t,e,r){&quot;use strict&quot;;e.exports=s;var n=t(&quot;d3&quot;),i=t(&quot;../color&quot;),a=t(&quot;../drawing&quot;),o=t(&quot;../../lib&quot;);function s(t,e,r){this.gd=t,this.container=e,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll(&quot;rect.scrollbox-bg&quot;).data([0]),this.bg.exit().on(&quot;.drag&quot;,null).on(&quot;wheel&quot;,null).remove(),this.bg.enter().append(&quot;rect&quot;).classed(&quot;scrollbox-bg&quot;,!0).style(&quot;pointer-events&quot;,&quot;all&quot;).attr({opacity:0,x:0,y:0,width:0,height:0})}s.barWidth=2,s.barLength=20,s.barRadius=2,s.barPad=1,s.barColor=&quot;#808BA4&quot;,s.prototype.enable=function(t,e,r){var o=this.gd._fullLayout,l=o.width,c=o.height;this.position=t;var u,f,h,p,d=this.position.l,g=this.position.w,m=this.position.t,v=this.position.h,y=this.position.direction,x=&quot;down&quot;===y,b=&quot;left&quot;===y,_=&quot;up&quot;===y,w=g,T=v;x||b||&quot;right&quot;===y||_||(this.position.direction=&quot;down&quot;,x=!0),x||_?(f=(u=d)+w,x?(h=m,T=(p=Math.min(h+T,c))-h):T=(p=m+T)-(h=Math.max(p-T,0))):(p=(h=m)+T,b?w=(f=d+w)-(u=Math.max(f-w,0)):(u=d,w=(f=Math.min(u+w,l))-u)),this._box={l:u,t:h,w:w,h:T};var k=g&gt;w,M=s.barLength+2*s.barPad,A=s.barWidth+2*s.barPad,S=d,E=m+v;E+A&gt;c&amp;&amp;(E=c-A);var C=this.container.selectAll(&quot;rect.scrollbar-horizontal&quot;).data(k?[0]:[]);C.exit().on(&quot;.drag&quot;,null).remove(),C.enter().append(&quot;rect&quot;).classed(&quot;scrollbar-horizontal&quot;,!0).call(i.fill,s.barColor),k?(this.hbar=C.attr({rx:s.barRadius,ry:s.barRadius,x:S,y:E,width:M,height:A}),this._hbarXMin=S+M/2,this._hbarTranslateMax=w-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var L=v&gt;T,I=s.barWidth+2*s.barPad,P=s.barLength+2*s.barPad,z=d+g,O=m;z+I&gt;l&amp;&amp;(z=l-I);var D=this.container.selectAll(&quot;rect.scrollbar-vertical&quot;).data(L?[0]:[]);D.exit().on(&quot;.drag&quot;,null).remove(),D.enter().append(&quot;rect&quot;).classed(&quot;scrollbar-vertical&quot;,!0).call(i.fill,s.barColor),L?(this.vbar=D.attr({rx:s.barRadius,ry:s.barRadius,x:z,y:O,width:I,height:P}),this._vbarYMin=O+P/2,this._vbarTranslateMax=T-P):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var R=this.id,F=u-.5,B=L?f+I+.5:f+.5,N=h-.5,j=k?p+A+.5:p+.5,U=o._topdefs.selectAll(&quot;#&quot;+R).data(k||L?[0]:[]);if(U.exit().remove(),U.enter().append(&quot;clipPath&quot;).attr(&quot;id&quot;,R).append(&quot;rect&quot;),k||L?(this._clipRect=U.select(&quot;rect&quot;).attr({x:Math.floor(F),y:Math.floor(N),width:Math.ceil(B)-Math.floor(F),height:Math.ceil(j)-Math.floor(N)}),this.container.call(a.setClipUrl,R,this.gd),this.bg.attr({x:d,y:m,width:g,height:v})):(this.bg.attr({width:0,height:0}),this.container.on(&quot;wheel&quot;,null).on(&quot;.drag&quot;,null).call(a.setClipUrl,null),delete this._clipRect),k||L){var V=n.behavior.drag().on(&quot;dragstart&quot;,(function(){n.event.sourceEvent.preventDefault()})).on(&quot;drag&quot;,this._onBoxDrag.bind(this));this.container.on(&quot;wheel&quot;,null).on(&quot;wheel&quot;,this._onBoxWheel.bind(this)).on(&quot;.drag&quot;,null).call(V);var q=n.behavior.drag().on(&quot;dragstart&quot;,(function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()})).on(&quot;drag&quot;,this._onBarDrag.bind(this));k&amp;&amp;this.hbar.on(&quot;.drag&quot;,null).call(q),L&amp;&amp;this.vbar.on(&quot;.drag&quot;,null).call(q)}this.setTranslate(e,r)},s.prototype.disable=function(){(this.hbar||this.vbar)&amp;&amp;(this.bg.attr({width:0,height:0}),this.container.on(&quot;wheel&quot;,null).on(&quot;.drag&quot;,null).call(a.setClipUrl,null),delete this._clipRect),this.hbar&amp;&amp;(this.hbar.on(&quot;.drag&quot;,null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&amp;&amp;(this.vbar.on(&quot;.drag&quot;,null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},s.prototype._onBoxDrag=function(){var t=this.translateX,e=this.translateY;this.hbar&amp;&amp;(t-=n.event.dx),this.vbar&amp;&amp;(e-=n.event.dy),this.setTranslate(t,e)},s.prototype._onBoxWheel=function(){var t=this.translateX,e=this.translateY;this.hbar&amp;&amp;(t+=n.event.deltaY),this.vbar&amp;&amp;(e+=n.event.deltaY),this.setTranslate(t,e)},s.prototype._onBarDrag=function(){var t=this.translateX,e=this.translateY;if(this.hbar){var r=t+this._hbarXMin,i=r+this._hbarTranslateMax;t=(o.constrain(n.event.x,r,i)-r)/(i-r)*(this.position.w-this._box.w)}if(this.vbar){var a=e+this._vbarYMin,s=a+this._vbarTranslateMax;e=(o.constrain(n.event.y,a,s)-a)/(s-a)*(this.position.h-this._box.h)}this.setTranslate(t,e)},s.prototype.setTranslate=function(t,e){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=o.constrain(t||0,0,r),e=o.constrain(e||0,0,n),this.translateX=t,this.translateY=e,this.container.call(a.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-e),this._clipRect&amp;&amp;this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+e-.5)}),this.hbar){var i=t/r;this.hbar.call(a.setTranslate,t+i*this._hbarTranslateMax,e)}if(this.vbar){var s=e/n;this.vbar.call(a.setTranslate,t,e+s*this._vbarTranslateMax)}}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;../drawing&quot;:665,d3:169}],745:[function(t,e,r){&quot;use strict&quot;;e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:&quot;right&quot;,right:&quot;left&quot;,top:&quot;bottom&quot;,bottom:&quot;top&quot;}}},{}],746:[function(t,e,r){&quot;use strict&quot;;e.exports={axisRefDescription:function(t,e,r){return[&quot;If set to a&quot;,t,&quot;axis id (e.g. *&quot;+t+&quot;* or&quot;,&quot;*&quot;+t+&quot;2*), the `&quot;+t+&quot;` position refers to a&quot;,t,&quot;coordinate. If set to *paper*, the `&quot;+t+&quot;`&quot;,&quot;position refers to the distance from the&quot;,e,&quot;of the plotting&quot;,&quot;area in normalized coordinates where *0* (*1*) corresponds to the&quot;,e,&quot;(&quot;+r+&quot;). If set to a&quot;,t,&quot;axis ID followed by&quot;,&quot;*domain* (separated by a space), the position behaves like for&quot;,&quot;*paper*, but refers to the distance in fractions of the domain&quot;,&quot;length from the&quot;,e,&quot;of the domain of that axis: e.g.,&quot;,&quot;*&quot;+t+&quot;2 domain* refers to the domain of the second&quot;,t,&quot; axis and a&quot;,t,&quot;position of 0.5 refers to the&quot;,&quot;point between the&quot;,e,&quot;and the&quot;,r,&quot;of the domain of the&quot;,&quot;second&quot;,t,&quot;axis.&quot;].join(&quot; &quot;)}}},{}],747:[function(t,e,r){&quot;use strict&quot;;e.exports={INCREASING:{COLOR:&quot;#3D9970&quot;,SYMBOL:&quot;\u25b2&quot;},DECREASING:{COLOR:&quot;#FF4136&quot;,SYMBOL:&quot;\u25bc&quot;}}},{}],748:[function(t,e,r){&quot;use strict&quot;;e.exports={FORMAT_LINK:&quot;https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format&quot;,DATE_FORMAT_LINK:&quot;https://github.com/d3/d3-time-format#locale_format&quot;}},{}],749:[function(t,e,r){&quot;use strict&quot;;e.exports={COMPARISON_OPS:[&quot;=&quot;,&quot;!=&quot;,&quot;&lt;&quot;,&quot;&gt;=&quot;,&quot;&gt;&quot;,&quot;&lt;=&quot;],COMPARISON_OPS2:[&quot;=&quot;,&quot;&lt;&quot;,&quot;&gt;=&quot;,&quot;&gt;&quot;,&quot;&lt;=&quot;],INTERVAL_OPS:[&quot;[]&quot;,&quot;()&quot;,&quot;[)&quot;,&quot;(]&quot;,&quot;][&quot;,&quot;)(&quot;,&quot;](&quot;,&quot;)[&quot;],SET_OPS:[&quot;{}&quot;,&quot;}{&quot;],CONSTRAINT_REDUCTION:{&quot;=&quot;:&quot;=&quot;,&quot;&lt;&quot;:&quot;&lt;&quot;,&quot;&lt;=&quot;:&quot;&lt;&quot;,&quot;&gt;&quot;:&quot;&gt;&quot;,&quot;&gt;=&quot;:&quot;&gt;&quot;,&quot;[]&quot;:&quot;[]&quot;,&quot;()&quot;:&quot;[]&quot;,&quot;[)&quot;:&quot;[]&quot;,&quot;(]&quot;:&quot;[]&quot;,&quot;][&quot;:&quot;][&quot;,&quot;)(&quot;:&quot;][&quot;,&quot;](&quot;:&quot;][&quot;,&quot;)[&quot;:&quot;][&quot;}}},{}],750:[function(t,e,r){&quot;use strict&quot;;e.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},{}],751:[function(t,e,r){&quot;use strict&quot;;e.exports={circle:&quot;\u25cf&quot;,&quot;circle-open&quot;:&quot;\u25cb&quot;,square:&quot;\u25a0&quot;,&quot;square-open&quot;:&quot;\u25a1&quot;,diamond:&quot;\u25c6&quot;,&quot;diamond-open&quot;:&quot;\u25c7&quot;,cross:&quot;+&quot;,x:&quot;\u274c&quot;}},{}],752:[function(t,e,r){&quot;use strict&quot;;e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},{}],753:[function(t,e,r){&quot;use strict&quot;;e.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:&quot;\u2212&quot;}},{}],754:[function(t,e,r){&quot;use strict&quot;;r.xmlns=&quot;http://www.w3.org/2000/xmlns/&quot;,r.svg=&quot;http://www.w3.org/2000/svg&quot;,r.xlink=&quot;http://www.w3.org/1999/xlink&quot;,r.svgAttrs={xmlns:r.svg,&quot;xmlns:xlink&quot;:r.xlink}},{}],755:[function(t,e,r){&quot;use strict&quot;;r.version=t(&quot;./version&quot;).version,t(&quot;es6-promise&quot;).polyfill(),t(&quot;../build/plotcss&quot;),t(&quot;./fonts/mathjax_config&quot;)();for(var n=t(&quot;./registry&quot;),i=r.register=n.register,a=t(&quot;./plot_api&quot;),o=Object.keys(a),s=0;s&lt;o.length;s++){var l=o[s];&quot;_&quot;!==l.charAt(0)&amp;&amp;(r[l]=a[l]),i({moduleType:&quot;apiMethod&quot;,name:l,fn:a[l]})}i(t(&quot;./traces/scatter&quot;)),i([t(&quot;./components/legend&quot;),t(&quot;./components/fx&quot;),t(&quot;./components/annotations&quot;),t(&quot;./components/annotations3d&quot;),t(&quot;./components/shapes&quot;),t(&quot;./components/images&quot;),t(&quot;./components/updatemenus&quot;),t(&quot;./components/sliders&quot;),t(&quot;./components/rangeslider&quot;),t(&quot;./components/rangeselector&quot;),t(&quot;./components/grid&quot;),t(&quot;./components/errorbars&quot;),t(&quot;./components/colorscale&quot;),t(&quot;./components/colorbar&quot;)]),i([t(&quot;./locale-en&quot;),t(&quot;./locale-en-us&quot;)]),window.PlotlyLocales&amp;&amp;Array.isArray(window.PlotlyLocales)&amp;&amp;(i(window.PlotlyLocales),delete window.PlotlyLocales),r.Icons=t(&quot;./fonts/ploticon&quot;),r.Plots=t(&quot;./plots/plots&quot;),r.Fx=t(&quot;./components/fx&quot;),r.Snapshot=t(&quot;./snapshot&quot;),r.PlotSchema=t(&quot;./plot_api/plot_schema&quot;),r.Queue=t(&quot;./lib/queue&quot;),r.d3=t(&quot;d3&quot;)},{&quot;../build/plotcss&quot;:1,&quot;./components/annotations&quot;:634,&quot;./components/annotations3d&quot;:639,&quot;./components/colorbar&quot;:649,&quot;./components/colorscale&quot;:655,&quot;./components/errorbars&quot;:671,&quot;./components/fx&quot;:683,&quot;./components/grid&quot;:687,&quot;./components/images&quot;:692,&quot;./components/legend&quot;:700,&quot;./components/rangeselector&quot;:711,&quot;./components/rangeslider&quot;:718,&quot;./components/shapes&quot;:732,&quot;./components/sliders&quot;:737,&quot;./components/updatemenus&quot;:743,&quot;./fonts/mathjax_config&quot;:756,&quot;./fonts/ploticon&quot;:757,&quot;./lib/queue&quot;:794,&quot;./locale-en&quot;:808,&quot;./locale-en-us&quot;:807,&quot;./plot_api&quot;:812,&quot;./plot_api/plot_schema&quot;:816,&quot;./plots/plots&quot;:891,&quot;./registry&quot;:911,&quot;./snapshot&quot;:916,&quot;./traces/scatter&quot;:1199,&quot;./version&quot;:1370,d3:169,&quot;es6-promise&quot;:224}],756:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){&quot;undefined&quot;!=typeof MathJax&amp;&amp;(&quot;local&quot;!==(window.PlotlyConfig||{}).MathJaxConfig&amp;&amp;(MathJax.Hub.Config({messageStyle:&quot;none&quot;,skipStartupTypeset:!0,displayAlign:&quot;left&quot;,tex2jax:{inlineMath:[[&quot;$&quot;,&quot;$&quot;],[&quot;\\(&quot;,&quot;\\)&quot;]]}}),MathJax.Hub.Configured()))}},{}],757:[function(t,e,r){&quot;use strict&quot;;e.exports={undo:{width:857.1,height:1e3,path:&quot;m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},home:{width:928.6,height:1e3,path:&quot;m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;camera-retro&quot;:{width:1e3,height:1e3,path:&quot;m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoombox:{width:1e3,height:1e3,path:&quot;m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},pan:{width:1e3,height:1e3,path:&quot;m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoom_plus:{width:875,height:1e3,path:&quot;m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoom_minus:{width:875,height:1e3,path:&quot;m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},autoscale:{width:1e3,height:1e3,path:&quot;m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},tooltip_basic:{width:1500,height:1e3,path:&quot;m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},tooltip_compare:{width:1125,height:1e3,path:&quot;m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},plotlylogo:{width:1542,height:1e3,path:&quot;m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;z-axis&quot;:{width:1e3,height:1e3,path:&quot;m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;3d_rotate&quot;:{width:1e3,height:1e3,path:&quot;m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},camera:{width:1e3,height:1e3,path:&quot;m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},movie:{width:1e3,height:1e3,path:&quot;m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},question:{width:857.1,height:1e3,path:&quot;m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},disk:{width:857.1,height:1e3,path:&quot;m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},drawopenpath:{width:70,height:70,path:&quot;M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z&quot;,transform:&quot;matrix(1 0 0 1 -15 -15)&quot;},drawclosedpath:{width:90,height:90,path:&quot;M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z&quot;,transform:&quot;matrix(1 0 0 1 -5 -5)&quot;},lasso:{width:1031,height:1e3,path:&quot;m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},selectbox:{width:1e3,height:1e3,path:&quot;m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},drawline:{width:70,height:70,path:&quot;M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z&quot;,transform:&quot;matrix(1 0 0 1 -15 -15)&quot;},drawrect:{width:80,height:80,path:&quot;M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},drawcircle:{width:80,height:80,path:&quot;M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},eraseshape:{width:80,height:80,path:&quot;M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},spikeline:{width:1e3,height:1e3,path:&quot;M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z&quot;,transform:&quot;matrix(1.5 0 0 -1.5 0 850)&quot;},pencil:{width:1792,height:1792,path:&quot;M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z&quot;,transform:&quot;matrix(1 0 0 1 0 1)&quot;},newplotlylogo:{name:&quot;newplotlylogo&quot;,svg:&quot;&lt;svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'&gt;&lt;defs&gt;&lt;style&gt;.cls-1 {fill: #3f4f75;} .cls-2 {fill: #80cfbe;} .cls-3 {fill: #fff;}&lt;/style&gt;&lt;/defs&gt;&lt;title&gt;plotly-logomark&lt;/title&gt;&lt;g id='symbol'&gt;&lt;rect class='cls-1' width='132' height='132' rx='6' ry='6'/&gt;&lt;circle class='cls-2' cx='78' cy='54' r='6'/&gt;&lt;circle class='cls-2' cx='102' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='78' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='54' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='30' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='30' cy='54' r='6'/&gt;&lt;path class='cls-3' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/&gt;&lt;path class='cls-3' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/&gt;&lt;path class='cls-3' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/&gt;&lt;path class='cls-3' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;}}},{}],758:[function(t,e,r){&quot;use strict&quot;;r.isLeftAnchor=function(t){return&quot;left&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&lt;=1/3},r.isCenterAnchor=function(t){return&quot;center&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&gt;1/3&amp;&amp;t.x&lt;2/3},r.isRightAnchor=function(t){return&quot;right&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&gt;=2/3},r.isTopAnchor=function(t){return&quot;top&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&gt;=2/3},r.isMiddleAnchor=function(t){return&quot;middle&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&gt;1/3&amp;&amp;t.y&lt;2/3},r.isBottomAnchor=function(t){return&quot;bottom&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&lt;=1/3}},{}],759:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./mod&quot;),i=n.mod,a=n.modHalf,o=Math.PI,s=2*o;function l(t){return Math.abs(t[1]-t[0])&gt;s-1e-14}function c(t,e){return a(e-t,s)}function u(t,e){if(l(e))return!0;var r,n;e[0]&lt;e[1]?(r=e[0],n=e[1]):(r=e[1],n=e[0]),(r=i(r,s))&gt;(n=i(n,s))&amp;&amp;(n+=s);var a=i(t,s),o=a+s;return a&gt;=r&amp;&amp;a&lt;=n||o&gt;=r&amp;&amp;o&lt;=n}function f(t,e,r,n,i,a,c){i=i||0,a=a||0;var u,f,h,p,d,g=l([r,n]);function m(t,e){return[t*Math.cos(e)+i,a-t*Math.sin(e)]}g?(u=0,f=o,h=s):r&lt;n?(u=r,h=n):(u=n,h=r),t&lt;e?(p=t,d=e):(p=e,d=t);var v,y=Math.abs(h-u)&lt;=o?0:1;function x(t,e,r){return&quot;A&quot;+[t,t]+&quot; &quot;+[0,y,r]+&quot; &quot;+m(t,e)}return g?v=null===p?&quot;M&quot;+m(d,u)+x(d,f,0)+x(d,h,0)+&quot;Z&quot;:&quot;M&quot;+m(p,u)+x(p,f,0)+x(p,h,0)+&quot;ZM&quot;+m(d,u)+x(d,f,1)+x(d,h,1)+&quot;Z&quot;:null===p?(v=&quot;M&quot;+m(d,u)+x(d,h,0),c&amp;&amp;(v+=&quot;L0,0Z&quot;)):v=&quot;M&quot;+m(p,u)+&quot;L&quot;+m(d,u)+x(d,h,0)+&quot;L&quot;+m(p,h)+x(p,u,1)+&quot;Z&quot;,v}e.exports={deg2rad:function(t){return t/180*o},rad2deg:function(t){return t/o*180},angleDelta:c,angleDist:function(t,e){return Math.abs(c(t,e))},isFullCircle:l,isAngleInsideSector:u,isPtInsideSector:function(t,e,r,n){return!!u(e,n)&amp;&amp;(r[0]&lt;r[1]?(i=r[0],a=r[1]):(i=r[1],a=r[0]),t&gt;=i&amp;&amp;t&lt;=a);var i,a},pathArc:function(t,e,r,n,i){return f(null,t,e,r,n,i,0)},pathSector:function(t,e,r,n,i){return f(null,t,e,r,n,i,1)},pathAnnulus:function(t,e,r,n,i,a){return f(t,e,r,n,i,a,1)}}},{&quot;./mod&quot;:785}],760:[function(t,e,r){&quot;use strict&quot;;var n=Array.isArray,i=&quot;undefined&quot;!=typeof ArrayBuffer&amp;&amp;ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}},a=&quot;undefined&quot;==typeof DataView?function(){}:DataView;function o(t){return i.isView(t)&amp;&amp;!(t instanceof a)}function s(t){return n(t)||o(t)}function l(t,e,r){if(s(t)){if(s(t[0])){for(var n=r,i=0;i&lt;t.length;i++)n=e(n,t[i].length);return n}return t.length}return 0}r.isTypedArray=o,r.isArrayOrTypedArray=s,r.isArray1D=function(t){return!s(t[0])},r.ensureArray=function(t,e){return n(t)||(t=[]),t.length=e,t},r.concat=function(){var t,e,r,i,a,o,s,l,c=[],u=!0,f=0;for(r=0;r&lt;arguments.length;r++)(o=(i=arguments[r]).length)&amp;&amp;(e?c.push(i):(e=i,a=o),n(i)?t=!1:(u=!1,f?t!==i.constructor&amp;&amp;(t=!1):t=i.constructor),f+=o);if(!f)return[];if(!c.length)return e;if(u)return e.concat.apply(e,c);if(t){for((s=new t(f)).set(e),r=0;r&lt;c.length;r++)i=c[r],s.set(i,a),a+=i.length;return s}for(s=new Array(f),l=0;l&lt;e.length;l++)s[l]=e[l];for(r=0;r&lt;c.length;r++){for(i=c[r],l=0;l&lt;i.length;l++)s[a+l]=i[l];a+=l}return s},r.maxRowLength=function(t){return l(t,Math.max,0)},r.minRowLength=function(t){return l(t,Math.min,1/0)}},{}],761:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../constants/numerical&quot;).BADNUM,a=/^['&quot;%,$#\s']+|[, ]|['&quot;%,$#\s']+$/g;e.exports=function(t){return&quot;string&quot;==typeof t&amp;&amp;(t=t.replace(a,&quot;&quot;)),n(t)?Number(t):i}},{&quot;../constants/numerical&quot;:753,&quot;fast-isnumeric&quot;:241}],762:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t._fullLayout;e._glcanvas&amp;&amp;e._glcanvas.size()&amp;&amp;e._glcanvas.each((function(t){t.regl&amp;&amp;t.regl.clear({color:!0,depth:!0})}))}},{}],763:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){t._responsiveChartHandler&amp;&amp;(window.removeEventListener(&quot;resize&quot;,t._responsiveChartHandler),delete t._responsiveChartHandler)}},{}],764:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../plots/attributes&quot;),o=t(&quot;../components/colorscale/scales&quot;),s=t(&quot;../constants/interactions&quot;).DESELECTDIM,l=t(&quot;./nested_property&quot;),c=t(&quot;./regex&quot;).counter,u=t(&quot;./mod&quot;).modHalf,f=t(&quot;./array&quot;).isArrayOrTypedArray;function h(t,e){var n=r.valObjectMeta[e.valType];if(e.arrayOk&amp;&amp;f(t))return!0;if(n.validateFunction)return n.validateFunction(t,e);var i={},a=i,o={set:function(t){a=t}};return n.coerceFunction(t,o,i,e),a!==i}r.valObjectMeta={data_array:{coerceFunction:function(t,e,r){f(t)?e.set(t):void 0!==r&amp;&amp;e.set(r)}},enumerated:{coerceFunction:function(t,e,r,n){n.coerceNumber&amp;&amp;(t=+t),-1===n.values.indexOf(t)?e.set(r):e.set(t)},validateFunction:function(t,e){e.coerceNumber&amp;&amp;(t=+t);for(var r=e.values,n=0;n&lt;r.length;n++){var i=String(r[n]);if(&quot;/&quot;===i.charAt(0)&amp;&amp;&quot;/&quot;===i.charAt(i.length-1)){if(new RegExp(i.substr(1,i.length-2)).test(t))return!0}else if(t===r[n])return!0}return!1}},boolean:{coerceFunction:function(t,e,r){!0===t||!1===t?e.set(t):e.set(r)}},number:{coerceFunction:function(t,e,r,i){!n(t)||void 0!==i.min&amp;&amp;t&lt;i.min||void 0!==i.max&amp;&amp;t&gt;i.max?e.set(r):e.set(+t)}},integer:{coerceFunction:function(t,e,r,i){t%1||!n(t)||void 0!==i.min&amp;&amp;t&lt;i.min||void 0!==i.max&amp;&amp;t&gt;i.max?e.set(r):e.set(+t)}},string:{coerceFunction:function(t,e,r,n){if(&quot;string&quot;!=typeof t){var i=&quot;number&quot;==typeof t;!0!==n.strict&amp;&amp;i?e.set(String(t)):e.set(r)}else n.noBlank&amp;&amp;!t?e.set(r):e.set(t)}},color:{coerceFunction:function(t,e,r){i(t).isValid()?e.set(t):e.set(r)}},colorlist:{coerceFunction:function(t,e,r){Array.isArray(t)&amp;&amp;t.length&amp;&amp;t.every((function(t){return i(t).isValid()}))?e.set(t):e.set(r)}},colorscale:{coerceFunction:function(t,e,r){e.set(o.get(t,r))}},angle:{coerceFunction:function(t,e,r){&quot;auto&quot;===t?e.set(&quot;auto&quot;):n(t)?e.set(u(+t,360)):e.set(r)}},subplotid:{coerceFunction:function(t,e,r,n){var i=n.regex||c(r);&quot;string&quot;==typeof t&amp;&amp;i.test(t)?e.set(t):e.set(r)},validateFunction:function(t,e){var r=e.dflt;return t===r||&quot;string&quot;==typeof t&amp;&amp;!!c(r).test(t)}},flaglist:{coerceFunction:function(t,e,r,n){if(&quot;string&quot;==typeof t)if(-1===(n.extras||[]).indexOf(t)){for(var i=t.split(&quot;+&quot;),a=0;a&lt;i.length;){var o=i[a];-1===n.flags.indexOf(o)||i.indexOf(o)&lt;a?i.splice(a,1):a++}i.length?e.set(i.join(&quot;+&quot;)):e.set(r)}else e.set(t);else e.set(r)}},any:{coerceFunction:function(t,e,r){void 0===t?e.set(r):e.set(t)}},info_array:{coerceFunction:function(t,e,n,i){function a(t,e,n){var i,a={set:function(t){i=t}};return void 0===n&amp;&amp;(n=e.dflt),r.valObjectMeta[e.valType].coerceFunction(t,a,n,e),i}var o=2===i.dimensions||&quot;1-2&quot;===i.dimensions&amp;&amp;Array.isArray(t)&amp;&amp;Array.isArray(t[0]);if(Array.isArray(t)){var s,l,c,u,f,h,p=i.items,d=[],g=Array.isArray(p),m=g&amp;&amp;o&amp;&amp;Array.isArray(p[0]),v=o&amp;&amp;g&amp;&amp;!m,y=g&amp;&amp;!v?p.length:t.length;if(n=Array.isArray(n)?n:[],o)for(s=0;s&lt;y;s++)for(d[s]=[],c=Array.isArray(t[s])?t[s]:[],f=v?p.length:g?p[s].length:c.length,l=0;l&lt;f;l++)u=v?p[l]:g?p[s][l]:p,void 0!==(h=a(c[l],u,(n[s]||[])[l]))&amp;&amp;(d[s][l]=h);else for(s=0;s&lt;y;s++)void 0!==(h=a(t[s],g?p[s]:p,n[s]))&amp;&amp;(d[s]=h);e.set(d)}else e.set(n)},validateFunction:function(t,e){if(!Array.isArray(t))return!1;var r=e.items,n=Array.isArray(r),i=2===e.dimensions;if(!e.freeLength&amp;&amp;t.length!==r.length)return!1;for(var a=0;a&lt;t.length;a++)if(i){if(!Array.isArray(t[a])||!e.freeLength&amp;&amp;t[a].length!==r[a].length)return!1;for(var o=0;o&lt;t[a].length;o++)if(!h(t[a][o],n?r[a][o]:r))return!1}else if(!h(t[a],n?r[a]:r))return!1;return!0}}},r.coerce=function(t,e,n,i,a){var o=l(n,i).get(),s=l(t,i),c=l(e,i),u=s.get(),p=e._template;if(void 0===u&amp;&amp;p&amp;&amp;(u=l(p,i).get(),p=0),void 0===a&amp;&amp;(a=o.dflt),o.arrayOk&amp;&amp;f(u))return c.set(u),u;var d=r.valObjectMeta[o.valType].coerceFunction;d(u,c,a,o);var g=c.get();return p&amp;&amp;g===a&amp;&amp;!h(u,o)&amp;&amp;(d(u=l(p,i).get(),c,a,o),g=c.get()),g},r.coerce2=function(t,e,n,i,a){var o=l(t,i),s=r.coerce(t,e,n,i,a),c=o.get();return null!=c&amp;&amp;s},r.coerceFont=function(t,e,r){var n={};return r=r||{},n.family=t(e+&quot;.family&quot;,r.family),n.size=t(e+&quot;.size&quot;,r.size),n.color=t(e+&quot;.color&quot;,r.color),n},r.coerceHoverinfo=function(t,e,n){var i,o=e._module.attributes,s=o.hoverinfo?o:a,l=s.hoverinfo;if(1===n._dataLength){var c=&quot;all&quot;===l.dflt?l.flags.slice():l.dflt.split(&quot;+&quot;);c.splice(c.indexOf(&quot;name&quot;),1),i=c.join(&quot;+&quot;)}return r.coerce(t,e,s,&quot;hoverinfo&quot;,i)},r.coerceSelectionMarkerOpacity=function(t,e){if(t.marker){var r,n,i=t.marker.opacity;if(void 0!==i)f(i)||t.selected||t.unselected||(r=i,n=s*i),e(&quot;selected.marker.opacity&quot;,r),e(&quot;unselected.marker.opacity&quot;,n)}},r.validate=h},{&quot;../components/colorscale/scales&quot;:658,&quot;../constants/interactions&quot;:752,&quot;../plots/attributes&quot;:824,&quot;./array&quot;:760,&quot;./mod&quot;:785,&quot;./nested_property&quot;:786,&quot;./regex&quot;:795,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],765:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;d3-time-format&quot;).timeFormat,o=t(&quot;fast-isnumeric&quot;),s=t(&quot;./loggers&quot;),l=t(&quot;./mod&quot;).mod,c=t(&quot;../constants/numerical&quot;),u=c.BADNUM,f=c.ONEDAY,h=c.ONEHOUR,p=c.ONEMIN,d=c.ONESEC,g=c.EPOCHJD,m=t(&quot;../registry&quot;),v=t(&quot;d3-time-format&quot;).utcFormat,y=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,x=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,b=(new Date).getFullYear()-70;function _(t){return t&amp;&amp;m.componentsRegistry.calendars&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;&quot;gregorian&quot;!==t}function w(t,e){return String(t+Math.pow(10,e)).substr(1)}r.dateTick0=function(t,e){var n=function(t,e){return _(t)?e?m.getComponentMethod(&quot;calendars&quot;,&quot;CANONICAL_SUNDAY&quot;)[t]:m.getComponentMethod(&quot;calendars&quot;,&quot;CANONICAL_TICK&quot;)[t]:e?&quot;2000-01-02&quot;:&quot;2000-01-01&quot;}(t,!!e);if(e&lt;2)return n;var i=r.dateTime2ms(n,t);return i+=f*(e-1),r.ms2DateTime(i,0,t)},r.dfltRange=function(t){return _(t)?m.getComponentMethod(&quot;calendars&quot;,&quot;DFLTRANGE&quot;)[t]:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;]},r.isJSDate=function(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t&amp;&amp;&quot;function&quot;==typeof t.getTime},r.dateTime2ms=function(t,e){if(r.isJSDate(t)){var a=t.getTimezoneOffset()*p,o=(t.getUTCMinutes()-t.getMinutes())*p+(t.getUTCSeconds()-t.getSeconds())*d+(t.getUTCMilliseconds()-t.getMilliseconds());if(o){var s=3*p;a=a-s/2+l(o-a+s/2,s)}return(t=Number(t)-a)&gt;=n&amp;&amp;t&lt;=i?t:u}if(&quot;string&quot;!=typeof t&amp;&amp;&quot;number&quot;!=typeof t)return u;t=String(t);var c=_(e),v=t.charAt(0);!c||&quot;G&quot;!==v&amp;&amp;&quot;g&quot;!==v||(t=t.substr(1),e=&quot;&quot;);var w=c&amp;&amp;&quot;chinese&quot;===e.substr(0,7),T=t.match(w?x:y);if(!T)return u;var k=T[1],M=T[3]||&quot;1&quot;,A=Number(T[5]||1),S=Number(T[7]||0),E=Number(T[9]||0),C=Number(T[11]||0);if(c){if(2===k.length)return u;var L;k=Number(k);try{var I=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(e);if(w){var P=&quot;i&quot;===M.charAt(M.length-1);M=parseInt(M,10),L=I.newDate(k,I.toMonthIndex(k,M,P),A)}else L=I.newDate(k,Number(M),A)}catch(t){return u}return L?(L.toJD()-g)*f+S*h+E*p+C*d:u}k=2===k.length?(Number(k)+2e3-b)%100+b:Number(k),M-=1;var z=new Date(Date.UTC(2e3,M,A,S,E));return z.setUTCFullYear(k),z.getUTCMonth()!==M||z.getUTCDate()!==A?u:z.getTime()+C*d},n=r.MIN_MS=r.dateTime2ms(&quot;-9999&quot;),i=r.MAX_MS=r.dateTime2ms(&quot;9999-12-31 23:59:59.9999&quot;),r.isDateTime=function(t,e){return r.dateTime2ms(t,e)!==u};var T=90*f,k=3*h,M=5*p;function A(t,e,r,n,i){if((e||r||n||i)&amp;&amp;(t+=&quot; &quot;+w(e,2)+&quot;:&quot;+w(r,2),(n||i)&amp;&amp;(t+=&quot;:&quot;+w(n,2),i))){for(var a=4;i%10==0;)a-=1,i/=10;t+=&quot;.&quot;+w(i,a)}return t}r.ms2DateTime=function(t,e,r){if(&quot;number&quot;!=typeof t||!(t&gt;=n&amp;&amp;t&lt;=i))return u;e||(e=0);var a,o,s,c,y,x,b=Math.floor(10*l(t+.05,1)),w=Math.round(t-b/10);if(_(r)){var S=Math.floor(w/f)+g,E=Math.floor(l(t,f));try{a=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(r).fromJD(S).formatDate(&quot;yyyy-mm-dd&quot;)}catch(t){a=v(&quot;G%Y-%m-%d&quot;)(new Date(w))}if(&quot;-&quot;===a.charAt(0))for(;a.length&lt;11;)a=&quot;-0&quot;+a.substr(1);else for(;a.length&lt;10;)a=&quot;0&quot;+a;o=e&lt;T?Math.floor(E/h):0,s=e&lt;T?Math.floor(E%h/p):0,c=e&lt;k?Math.floor(E%p/d):0,y=e&lt;M?E%d*10+b:0}else x=new Date(w),a=v(&quot;%Y-%m-%d&quot;)(x),o=e&lt;T?x.getUTCHours():0,s=e&lt;T?x.getUTCMinutes():0,c=e&lt;k?x.getUTCSeconds():0,y=e&lt;M?10*x.getUTCMilliseconds()+b:0;return A(a,o,s,c,y)},r.ms2DateTimeLocal=function(t){if(!(t&gt;=n+f&amp;&amp;t&lt;=i-f))return u;var e=Math.floor(10*l(t+.05,1)),r=new Date(Math.round(t-e/10));return A(a(&quot;%Y-%m-%d&quot;)(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+e)},r.cleanDate=function(t,e,n){if(t===u)return e;if(r.isJSDate(t)||&quot;number&quot;==typeof t&amp;&amp;isFinite(t)){if(_(n))return s.error(&quot;JS Dates and milliseconds are incompatible with world calendars&quot;,t),e;if(!(t=r.ms2DateTimeLocal(+t))&amp;&amp;void 0!==e)return e}else if(!r.isDateTime(t,n))return s.error(&quot;unrecognized date&quot;,t),e;return t};var S=/%\d?f/g;function E(t,e,r,n){t=t.replace(S,(function(t){var r=Math.min(+t.charAt(1)||6,6);return(e/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,&quot;&quot;)||&quot;0&quot;}));var i=new Date(Math.floor(e+.05));if(_(n))try{t=m.getComponentMethod(&quot;calendars&quot;,&quot;worldCalFmt&quot;)(t,e,n)}catch(t){return&quot;Invalid&quot;}return r(t)(i)}var C=[59,59.9,59.99,59.999,59.9999];r.formatDate=function(t,e,r,n,i,a){if(i=_(i)&amp;&amp;i,!e)if(&quot;y&quot;===r)e=a.year;else if(&quot;m&quot;===r)e=a.month;else{if(&quot;d&quot;!==r)return function(t,e){var r=l(t+.05,f),n=w(Math.floor(r/h),2)+&quot;:&quot;+w(l(Math.floor(r/p),60),2);if(&quot;M&quot;!==e){o(e)||(e=0);var i=(100+Math.min(l(t/d,60),C[e])).toFixed(e).substr(1);e&gt;0&amp;&amp;(i=i.replace(/0+$/,&quot;&quot;).replace(/[\.]$/,&quot;&quot;)),n+=&quot;:&quot;+i}return n}(t,r)+&quot;\n&quot;+E(a.dayMonthYear,t,n,i);e=a.dayMonth+&quot;\n&quot;+a.year}return E(e,t,n,i)};var L=3*f;r.incrementMonth=function(t,e,r){r=_(r)&amp;&amp;r;var n=l(t,f);if(t=Math.round(t-n),r)try{var i=Math.round(t/f)+g,a=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(r),o=a.fromJD(i);return e%12?a.add(o,e,&quot;m&quot;):a.add(o,e/12,&quot;y&quot;),(o.toJD()-g)*f+n}catch(e){s.error(&quot;invalid ms &quot;+t+&quot; in calendar &quot;+r)}var c=new Date(t+L);return c.setUTCMonth(c.getUTCMonth()+e)+n-L},r.findExactDates=function(t,e){for(var r,n,i=0,a=0,s=0,l=0,c=_(e)&amp;&amp;m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(e),u=0;u&lt;t.length;u++)if(n=t[u],o(n)){if(!(n%f))if(c)try{1===(r=c.fromJD(n/f+g)).day()?1===r.month()?i++:a++:s++}catch(t){}else 1===(r=new Date(n)).getUTCDate()?0===r.getUTCMonth()?i++:a++:s++}else l++;s+=a+=i;var h=t.length-l;return{exactYears:i/h,exactMonths:a/h,exactDays:s/h}}},{&quot;../constants/numerical&quot;:753,&quot;../registry&quot;:911,&quot;./loggers&quot;:782,&quot;./mod&quot;:785,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],766:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;./loggers&quot;),a=t(&quot;./matrix&quot;),o=t(&quot;gl-mat4&quot;);function s(t){var e=t&amp;&amp;t.parentNode;e&amp;&amp;e.removeChild(t)}function l(t,e,r){var n=&quot;plotly.js-style-&quot;+t,a=document.getElementById(n);a||((a=document.createElement(&quot;style&quot;)).setAttribute(&quot;id&quot;,n),a.appendChild(document.createTextNode(&quot;&quot;)),document.head.appendChild(a));var o=a.sheet;o.insertRule?o.insertRule(e+&quot;{&quot;+r+&quot;}&quot;,0):o.addRule?o.addRule(e,r,0):i.warn(&quot;addStyleRule failed&quot;)}function c(t){var e=window.getComputedStyle(t,null),r=e.getPropertyValue(&quot;-webkit-transform&quot;)||e.getPropertyValue(&quot;-moz-transform&quot;)||e.getPropertyValue(&quot;-ms-transform&quot;)||e.getPropertyValue(&quot;-o-transform&quot;)||e.getPropertyValue(&quot;transform&quot;);return&quot;none&quot;===r?null:r.replace(&quot;matrix&quot;,&quot;&quot;).replace(&quot;3d&quot;,&quot;&quot;).slice(1,-1).split(&quot;,&quot;).map((function(t){return+t}))}function u(t){for(var e=[];f(t);)e.push(t),t=t.parentNode;return e}function f(t){return t&amp;&amp;(t instanceof Element||t instanceof HTMLElement)}e.exports={getGraphDiv:function(t){var e;if(&quot;string&quot;==typeof t){if(null===(e=document.getElementById(t)))throw new Error(&quot;No DOM element with id '&quot;+t+&quot;' exists on the page.&quot;);return e}if(null==t)throw new Error(&quot;DOM element provided is null or undefined&quot;);return t},isPlotDiv:function(t){var e=n.select(t);return e.node()instanceof HTMLElement&amp;&amp;e.size()&amp;&amp;e.classed(&quot;js-plotly-plot&quot;)},removeElement:s,addStyleRule:function(t,e){l(&quot;global&quot;,t,e)},addRelatedStyleRule:l,deleteRelatedStyleRule:function(t){var e=&quot;plotly.js-style-&quot;+t,r=document.getElementById(e);r&amp;&amp;s(r)},getFullTransformMatrix:function(t){var e=u(t),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach((function(t){var e=c(t);if(e){var n=a.convertCssMatrix(e);r=o.multiply(r,r,n)}})),r},getElementTransformMatrix:c,getElementAndAncestors:u,equalDomRects:function(t,e){return t&amp;&amp;e&amp;&amp;t.x===e.x&amp;&amp;t.y===e.y&amp;&amp;t.top===e.top&amp;&amp;t.left===e.left&amp;&amp;t.right===e.right&amp;&amp;t.bottom===e.bottom}}},{&quot;./loggers&quot;:782,&quot;./matrix&quot;:784,d3:169,&quot;gl-mat4&quot;:292}],767:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;events&quot;).EventEmitter,i={init:function(t){if(t._ev instanceof n)return t;var e=new n,r=new n;return t._ev=e,t._internalEv=r,t.on=e.on.bind(e),t.once=e.once.bind(e),t.removeListener=e.removeListener.bind(e),t.removeAllListeners=e.removeAllListeners.bind(e),t._internalOn=r.on.bind(r),t._internalOnce=r.once.bind(r),t._removeInternalListener=r.removeListener.bind(r),t._removeAllInternalListeners=r.removeAllListeners.bind(r),t.emit=function(n,i){&quot;undefined&quot;!=typeof jQuery&amp;&amp;jQuery(t).trigger(n,i),e.emit(n,i),r.emit(n,i)},t},triggerHandler:function(t,e,r){var n,i;&quot;undefined&quot;!=typeof jQuery&amp;&amp;(n=jQuery(t).triggerHandler(e,r));var a=t._ev;if(!a)return n;var o,s=a._events[e];if(!s)return n;function l(t){return t.listener?(a.removeListener(e,t.listener),t.fired?void 0:(t.fired=!0,t.listener.apply(a,[r]))):t.apply(a,[r])}for(s=Array.isArray(s)?s:[s],o=0;o&lt;s.length-1;o++)l(s[o]);return i=l(s[o]),void 0!==n?n:i},purge:function(t){return delete t._ev,delete t.on,delete t.once,delete t.removeListener,delete t.removeAllListeners,delete t.emit,delete t._ev,delete t._internalEv,delete t._internalOn,delete t._internalOnce,delete t._removeInternalListener,delete t._removeAllInternalListeners,t}};e.exports=i},{events:110}],768:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is_plain_object.js&quot;),i=Array.isArray;function a(t,e,r,o){var s,l,c,u,f,h,p=t[0],d=t.length;if(2===d&amp;&amp;i(p)&amp;&amp;i(t[1])&amp;&amp;0===p.length){if(function(t,e){var r,n;for(r=0;r&lt;t.length;r++){if(null!==(n=t[r])&amp;&amp;&quot;object&quot;==typeof n)return!1;void 0!==n&amp;&amp;(e[r]=n)}return!0}(t[1],p))return p;p.splice(0,p.length)}for(var g=1;g&lt;d;g++)for(l in s=t[g])c=p[l],u=s[l],o&amp;&amp;i(u)?p[l]=u:e&amp;&amp;u&amp;&amp;(n(u)||(f=i(u)))?(f?(f=!1,h=c&amp;&amp;i(c)?c:[]):h=c&amp;&amp;n(c)?c:{},p[l]=a([h,u],e,r,o)):(&quot;undefined&quot;!=typeof u||r)&amp;&amp;(p[l]=u);return p}r.extendFlat=function(){return a(arguments,!1,!1,!1)},r.extendDeep=function(){return a(arguments,!0,!1,!1)},r.extendDeepAll=function(){return a(arguments,!0,!0,!1)},r.extendDeepNoArrays=function(){return a(arguments,!0,!1,!0)}},{&quot;./is_plain_object.js&quot;:779}],769:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e={},r=[],n=0,i=0;i&lt;t.length;i++){var a=t[i];1!==e[a]&amp;&amp;(e[a]=1,r[n++]=a)}return r}},{}],770:[function(t,e,r){&quot;use strict&quot;;function n(t){return!0===t.visible}function i(t){var e=t[0].trace;return!0===e.visible&amp;&amp;0!==e._length}e.exports=function(t){for(var e,r=(e=t,Array.isArray(e)&amp;&amp;Array.isArray(e[0])&amp;&amp;e[0][0]&amp;&amp;e[0][0].trace?i:n),a=[],o=0;o&lt;t.length;o++){var s=t[o];r(s)&amp;&amp;a.push(s)}return a}},{}],771:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;country-regex&quot;),a=t(&quot;@turf/area&quot;),o=t(&quot;@turf/centroid&quot;),s=t(&quot;@turf/bbox&quot;),l=t(&quot;./identity&quot;),c=t(&quot;./loggers&quot;),u=t(&quot;./is_plain_object&quot;),f=t(&quot;./nested_property&quot;),h=t(&quot;./polygon&quot;),p=Object.keys(i),d={&quot;ISO-3&quot;:l,&quot;USA-states&quot;:l,&quot;country names&quot;:function(t){for(var e=0;e&lt;p.length;e++){var r=p[e];if(new RegExp(i[r]).test(t.trim().toLowerCase()))return r}return c.log(&quot;Unrecognized country name: &quot;+t+&quot;.&quot;),!1}};function g(t){var e=t.geojson,r=window.PlotlyGeoAssets||{},n=&quot;string&quot;==typeof e?r[e]:e;return u(n)?n:(c.error(&quot;Oops ... something went wrong when fetching &quot;+e),!1)}e.exports={locationToFeature:function(t,e,r){if(!e||&quot;string&quot;!=typeof e)return!1;var n,i,a,o=d[t](e);if(o){if(&quot;USA-states&quot;===t)for(n=[],a=0;a&lt;r.length;a++)(i=r[a]).properties&amp;&amp;i.properties.gu&amp;&amp;&quot;USA&quot;===i.properties.gu&amp;&amp;n.push(i);else n=r;for(a=0;a&lt;n.length;a++)if((i=n[a]).id===o)return i;c.log([&quot;Location with id&quot;,o,&quot;does not have a matching topojson feature at this resolution.&quot;].join(&quot; &quot;))}return!1},feature2polygons:function(t){var e,r,n,i,a=t.geometry,o=a.coordinates,s=t.id,l=[];function c(t){for(var e=0;e&lt;t.length-1;e++)if(t[e][0]&gt;0&amp;&amp;t[e+1][0]&lt;0)return e;return null}switch(e=&quot;RUS&quot;===s||&quot;FJI&quot;===s?function(t){var e;if(null===c(t))e=t;else for(e=new Array(t.length),i=0;i&lt;t.length;i++)e[i]=[t[i][0]&lt;0?t[i][0]+360:t[i][0],t[i][1]];l.push(h.tester(e))}:&quot;ATA&quot;===s?function(t){var e=c(t);if(null===e)return l.push(h.tester(t));var r=new Array(t.length+1),n=0;for(i=0;i&lt;t.length;i++)i&gt;e?r[n++]=[t[i][0]+360,t[i][1]]:i===e?(r[n++]=t[i],r[n++]=[t[i][0],-90]):r[n++]=t[i];var a=h.tester(r);a.pts.pop(),l.push(a)}:function(t){l.push(h.tester(t))},a.type){case&quot;MultiPolygon&quot;:for(r=0;r&lt;o.length;r++)for(n=0;n&lt;o[r].length;n++)e(o[r][n]);break;case&quot;Polygon&quot;:for(r=0;r&lt;o.length;r++)e(o[r])}return l},getTraceGeojson:g,extractTraceFeature:function(t){var e=t[0].trace,r=g(e);if(!r)return!1;var n,i={},s=[];for(n=0;n&lt;e._length;n++){var l=t[n];(l.loc||0===l.loc)&amp;&amp;(i[l.loc]=l)}function u(t){var r=f(t,e.featureidkey||&quot;id&quot;).get(),n=i[r];if(n){var l=t.geometry;if(&quot;Polygon&quot;===l.type||&quot;MultiPolygon&quot;===l.type){var u={type:&quot;Feature&quot;,id:r,geometry:l,properties:{}};u.properties.ct=function(t){var e,r=t.geometry;if(&quot;MultiPolygon&quot;===r.type)for(var n=r.coordinates,i=0,s=0;s&lt;n.length;s++){var l={type:&quot;Polygon&quot;,coordinates:n[s]},c=a.default(l);c&gt;i&amp;&amp;(i=c,e=l)}else e=r;return o.default(e).geometry.coordinates}(u),n.fIn=t,n.fOut=u,s.push(u)}else c.log([&quot;Location&quot;,n.loc,&quot;does not have a valid GeoJSON geometry.&quot;,&quot;Traces with locationmode *geojson-id* only support&quot;,&quot;*Polygon* and *MultiPolygon* geometries.&quot;].join(&quot; &quot;))}delete i[r]}switch(r.type){case&quot;FeatureCollection&quot;:var h=r.features;for(n=0;n&lt;h.length;n++)u(h[n]);break;case&quot;Feature&quot;:u(r);break;default:return c.warn([&quot;Invalid GeoJSON type&quot;,(r.type||&quot;none&quot;)+&quot;.&quot;,&quot;Traces with locationmode *geojson-id* only support&quot;,&quot;*FeatureCollection* and *Feature* types.&quot;].join(&quot; &quot;)),!1}for(var p in i)c.log([&quot;Location *&quot;+p+&quot;*&quot;,&quot;does not have a matching feature with id-key&quot;,&quot;*&quot;+e.featureidkey+&quot;*.&quot;].join(&quot; &quot;));return s},fetchTraceGeoData:function(t){var e=window.PlotlyGeoAssets||{},r=[];function i(t){return new Promise((function(r,i){n.json(t,(function(n,a){if(n){delete e[t];var o=404===n.status?'GeoJSON at URL &quot;'+t+'&quot; does not exist.':&quot;Unexpected error while fetching from &quot;+t;return i(new Error(o))}return e[t]=a,r(a)}))}))}function a(t){return new Promise((function(r,n){var i=0,a=setInterval((function(){return e[t]&amp;&amp;&quot;pending&quot;!==e[t]?(clearInterval(a),r(e[t])):i&gt;100?(clearInterval(a),n(&quot;Unexpected error while fetching from &quot;+t)):void i++}),50)}))}for(var o=0;o&lt;t.length;o++){var s=t[o][0].trace.geojson;&quot;string&quot;==typeof s&amp;&amp;(e[s]?&quot;pending&quot;===e[s]&amp;&amp;r.push(a(s)):(e[s]=&quot;pending&quot;,r.push(i(s))))}return r},computeBbox:function(t){return s.default(t)}}},{&quot;./identity&quot;:776,&quot;./is_plain_object&quot;:779,&quot;./loggers&quot;:782,&quot;./nested_property&quot;:786,&quot;./polygon&quot;:790,&quot;@turf/area&quot;:59,&quot;@turf/bbox&quot;:60,&quot;@turf/centroid&quot;:61,&quot;country-regex&quot;:139,d3:169}],772:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../constants/numerical&quot;).BADNUM;r.calcTraceToLineCoords=function(t){for(var e=t[0].trace.connectgaps,r=[],i=[],a=0;a&lt;t.length;a++){var o=t[a].lonlat;o[0]!==n?i.push(o):!e&amp;&amp;i.length&gt;0&amp;&amp;(r.push(i),i=[])}return i.length&gt;0&amp;&amp;r.push(i),r},r.makeLine=function(t){return 1===t.length?{type:&quot;LineString&quot;,coordinates:t[0]}:{type:&quot;MultiLineString&quot;,coordinates:t}},r.makePolygon=function(t){if(1===t.length)return{type:&quot;Polygon&quot;,coordinates:t};for(var e=new Array(t.length),r=0;r&lt;t.length;r++)e[r]=[t[r]];return{type:&quot;MultiPolygon&quot;,coordinates:e}},r.makeBlank=function(){return{type:&quot;Point&quot;,coordinates:[]}}},{&quot;../constants/numerical&quot;:753}],773:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o=t(&quot;./mod&quot;).mod;function s(t,e,r,n,i,a,o,s){var l=r-t,c=i-t,u=o-i,f=n-e,h=a-e,p=s-a,d=l*p-u*f;if(0===d)return null;var g=(c*p-u*h)/d,m=(c*f-l*h)/d;return m&lt;0||m&gt;1||g&lt;0||g&gt;1?null:{x:t+l*g,y:e+f*g}}function l(t,e,r,n,i){var a=n*t+i*e;if(a&lt;0)return n*n+i*i;if(a&gt;r){var o=n-t,s=i-e;return o*o+s*s}var l=n*e-i*t;return l*l/r}r.segmentsIntersect=s,r.segmentDistance=function(t,e,r,n,i,a,o,c){if(s(t,e,r,n,i,a,o,c))return 0;var u=r-t,f=n-e,h=o-i,p=c-a,d=u*u+f*f,g=h*h+p*p,m=Math.min(l(u,f,d,i-t,a-e),l(u,f,d,o-t,c-e),l(h,p,g,t-i,e-a),l(h,p,g,r-i,n-a));return Math.sqrt(m)},r.getTextLocation=function(t,e,r,s){if(t===i&amp;&amp;s===a||(n={},i=t,a=s),n[r])return n[r];var l=t.getPointAtLength(o(r-s/2,e)),c=t.getPointAtLength(o(r+s/2,e)),u=Math.atan((c.y-l.y)/(c.x-l.x)),f=t.getPointAtLength(o(r,e)),h={x:(4*f.x+l.x+c.x)/6,y:(4*f.y+l.y+c.y)/6,theta:u};return n[r]=h,h},r.clearLocationCache=function(){i=null},r.getVisibleSegment=function(t,e,r){var n,i,a=e.left,o=e.right,s=e.top,l=e.bottom,c=0,u=t.getTotalLength(),f=u;function h(e){var r=t.getPointAtLength(e);0===e?n=r:e===u&amp;&amp;(i=r);var c=r.x&lt;a?a-r.x:r.x&gt;o?r.x-o:0,f=r.y&lt;s?s-r.y:r.y&gt;l?r.y-l:0;return Math.sqrt(c*c+f*f)}for(var p=h(c);p;){if((c+=p+r)&gt;f)return;p=h(c)}for(p=h(f);p;){if(c&gt;(f-=p+r))return;p=h(f)}return{min:c,max:f,len:f-c,total:u,isClosed:0===c&amp;&amp;f===u&amp;&amp;Math.abs(n.x-i.x)&lt;.1&amp;&amp;Math.abs(n.y-i.y)&lt;.1}},r.findPointOnPath=function(t,e,r,n){for(var i,a,o,s=(n=n||{}).pathLength||t.getTotalLength(),l=n.tolerance||.001,c=n.iterationLimit||30,u=t.getPointAtLength(0)[r]&gt;t.getPointAtLength(s)[r]?-1:1,f=0,h=0,p=s;f&lt;c;){if(i=(h+p)/2,o=(a=t.getPointAtLength(i))[r]-e,Math.abs(o)&lt;l)return a;u*o&gt;0?p=i:h=i,f++}return a}},{&quot;./mod&quot;:785}],774:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;color-normalize&quot;),o=t(&quot;../components/colorscale&quot;),s=t(&quot;../components/color/attributes&quot;).defaultLine,l=t(&quot;./array&quot;).isArrayOrTypedArray,c=a(s);function u(t,e){var r=t;return r[3]*=e,r}function f(t){if(n(t))return c;var e=a(t);return e.length?e:c}function h(t){return n(t)?t:1}e.exports={formatColor:function(t,e,r){var n,i,s,p,d,g=t.color,m=l(g),v=l(e),y=o.extractOpts(t),x=[];if(n=void 0!==y.colorscale?o.makeColorScaleFuncFromTrace(t):f,i=m?function(t,e){return void 0===t[e]?c:a(n(t[e]))}:f,s=v?function(t,e){return void 0===t[e]?1:h(t[e])}:h,m||v)for(var b=0;b&lt;r;b++)p=i(g,b),d=s(e,b),x[b]=u(p,d);else x=u(a(g),e);return x},parseColorScale:function(t){var e=o.extractOpts(t),r=e.colorscale;return e.reversescale&amp;&amp;(r=o.flipScale(e.colorscale)),r.map((function(t){var e=t[0],r=i(t[1]).toRgb();return{index:e,rgb:[r.r,r.g,r.b,r.a]}}))}}},{&quot;../components/color/attributes&quot;:642,&quot;../components/colorscale&quot;:655,&quot;./array&quot;:760,&quot;color-normalize&quot;:125,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],775:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./identity&quot;);function i(t){return[t]}e.exports={keyFun:function(t){return t.key},repeat:i,descend:n,wrap:i,unwrap:function(t){return t[0]}}},{&quot;./identity&quot;:776}],776:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t}},{}],777:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(!e)return t;var r=1/Math.abs(e),n=r&gt;1?(r*t+r*e)/r:t+e,i=String(n).length;if(i&gt;16){var a=String(e).length;if(i&gt;=String(t).length+a){var o=parseFloat(n).toPrecision(12);-1===o.indexOf(&quot;e+&quot;)&amp;&amp;(n=+o)}}return n}},{}],778:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-time-format&quot;).utcFormat,a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../constants/numerical&quot;),s=o.FP_SAFE,l=o.BADNUM,c=e.exports={};c.nestedProperty=t(&quot;./nested_property&quot;),c.keyedContainer=t(&quot;./keyed_container&quot;),c.relativeAttr=t(&quot;./relative_attr&quot;),c.isPlainObject=t(&quot;./is_plain_object&quot;),c.toLogRange=t(&quot;./to_log_range&quot;),c.relinkPrivateKeys=t(&quot;./relink_private&quot;);var u=t(&quot;./array&quot;);c.isTypedArray=u.isTypedArray,c.isArrayOrTypedArray=u.isArrayOrTypedArray,c.isArray1D=u.isArray1D,c.ensureArray=u.ensureArray,c.concat=u.concat,c.maxRowLength=u.maxRowLength,c.minRowLength=u.minRowLength;var f=t(&quot;./mod&quot;);c.mod=f.mod,c.modHalf=f.modHalf;var h=t(&quot;./coerce&quot;);c.valObjectMeta=h.valObjectMeta,c.coerce=h.coerce,c.coerce2=h.coerce2,c.coerceFont=h.coerceFont,c.coerceHoverinfo=h.coerceHoverinfo,c.coerceSelectionMarkerOpacity=h.coerceSelectionMarkerOpacity,c.validate=h.validate;var p=t(&quot;./dates&quot;);c.dateTime2ms=p.dateTime2ms,c.isDateTime=p.isDateTime,c.ms2DateTime=p.ms2DateTime,c.ms2DateTimeLocal=p.ms2DateTimeLocal,c.cleanDate=p.cleanDate,c.isJSDate=p.isJSDate,c.formatDate=p.formatDate,c.incrementMonth=p.incrementMonth,c.dateTick0=p.dateTick0,c.dfltRange=p.dfltRange,c.findExactDates=p.findExactDates,c.MIN_MS=p.MIN_MS,c.MAX_MS=p.MAX_MS;var d=t(&quot;./search&quot;);c.findBin=d.findBin,c.sorterAsc=d.sorterAsc,c.sorterDes=d.sorterDes,c.distinctVals=d.distinctVals,c.roundUp=d.roundUp,c.sort=d.sort,c.findIndexOfMin=d.findIndexOfMin;var g=t(&quot;./stats&quot;);c.aggNums=g.aggNums,c.len=g.len,c.mean=g.mean,c.median=g.median,c.midRange=g.midRange,c.variance=g.variance,c.stdev=g.stdev,c.interp=g.interp;var m=t(&quot;./matrix&quot;);c.init2dArray=m.init2dArray,c.transposeRagged=m.transposeRagged,c.dot=m.dot,c.translationMatrix=m.translationMatrix,c.rotationMatrix=m.rotationMatrix,c.rotationXYMatrix=m.rotationXYMatrix,c.apply3DTransform=m.apply3DTransform,c.apply2DTransform=m.apply2DTransform,c.apply2DTransform2=m.apply2DTransform2,c.convertCssMatrix=m.convertCssMatrix,c.inverseTransformMatrix=m.inverseTransformMatrix;var v=t(&quot;./angles&quot;);c.deg2rad=v.deg2rad,c.rad2deg=v.rad2deg,c.angleDelta=v.angleDelta,c.angleDist=v.angleDist,c.isFullCircle=v.isFullCircle,c.isAngleInsideSector=v.isAngleInsideSector,c.isPtInsideSector=v.isPtInsideSector,c.pathArc=v.pathArc,c.pathSector=v.pathSector,c.pathAnnulus=v.pathAnnulus;var y=t(&quot;./anchor_utils&quot;);c.isLeftAnchor=y.isLeftAnchor,c.isCenterAnchor=y.isCenterAnchor,c.isRightAnchor=y.isRightAnchor,c.isTopAnchor=y.isTopAnchor,c.isMiddleAnchor=y.isMiddleAnchor,c.isBottomAnchor=y.isBottomAnchor;var x=t(&quot;./geometry2d&quot;);c.segmentsIntersect=x.segmentsIntersect,c.segmentDistance=x.segmentDistance,c.getTextLocation=x.getTextLocation,c.clearLocationCache=x.clearLocationCache,c.getVisibleSegment=x.getVisibleSegment,c.findPointOnPath=x.findPointOnPath;var b=t(&quot;./extend&quot;);c.extendFlat=b.extendFlat,c.extendDeep=b.extendDeep,c.extendDeepAll=b.extendDeepAll,c.extendDeepNoArrays=b.extendDeepNoArrays;var _=t(&quot;./loggers&quot;);c.log=_.log,c.warn=_.warn,c.error=_.error;var w=t(&quot;./regex&quot;);c.counterRegex=w.counter;var T=t(&quot;./throttle&quot;);c.throttle=T.throttle,c.throttleDone=T.done,c.clearThrottle=T.clear;var k=t(&quot;./dom&quot;);function M(t){var e={};for(var r in t)for(var n=t[r],i=0;i&lt;n.length;i++)e[n[i]]=+r;return e}c.getGraphDiv=k.getGraphDiv,c.isPlotDiv=k.isPlotDiv,c.removeElement=k.removeElement,c.addStyleRule=k.addStyleRule,c.addRelatedStyleRule=k.addRelatedStyleRule,c.deleteRelatedStyleRule=k.deleteRelatedStyleRule,c.getFullTransformMatrix=k.getFullTransformMatrix,c.getElementTransformMatrix=k.getElementTransformMatrix,c.getElementAndAncestors=k.getElementAndAncestors,c.equalDomRects=k.equalDomRects,c.clearResponsive=t(&quot;./clear_responsive&quot;),c.preserveDrawingBuffer=t(&quot;./preserve_drawing_buffer&quot;),c.makeTraceGroups=t(&quot;./make_trace_groups&quot;),c._=t(&quot;./localize&quot;),c.notifier=t(&quot;./notifier&quot;),c.filterUnique=t(&quot;./filter_unique&quot;),c.filterVisible=t(&quot;./filter_visible&quot;),c.pushUnique=t(&quot;./push_unique&quot;),c.increment=t(&quot;./increment&quot;),c.cleanNumber=t(&quot;./clean_number&quot;),c.ensureNumber=function(t){return a(t)?(t=Number(t))&lt;-s||t&gt;s?l:a(t)?Number(t):l:l},c.isIndex=function(t,e){return!(void 0!==e&amp;&amp;t&gt;=e)&amp;&amp;(a(t)&amp;&amp;t&gt;=0&amp;&amp;t%1==0)},c.noop=t(&quot;./noop&quot;),c.identity=t(&quot;./identity&quot;),c.repeat=function(t,e){for(var r=new Array(e),n=0;n&lt;e;n++)r[n]=t;return r},c.swapAttrs=function(t,e,r,n){r||(r=&quot;x&quot;),n||(n=&quot;y&quot;);for(var i=0;i&lt;e.length;i++){var a=e[i],o=c.nestedProperty(t,a.replace(&quot;?&quot;,r)),s=c.nestedProperty(t,a.replace(&quot;?&quot;,n)),l=o.get();o.set(s.get()),s.set(l)}},c.raiseToTop=function(t){t.parentNode.appendChild(t)},c.cancelTransition=function(t){return t.transition().duration(0)},c.constrain=function(t,e,r){return e&gt;r?Math.max(r,Math.min(e,t)):Math.max(e,Math.min(r,t))},c.bBoxIntersect=function(t,e,r){return r=r||0,t.left&lt;=e.right+r&amp;&amp;e.left&lt;=t.right+r&amp;&amp;t.top&lt;=e.bottom+r&amp;&amp;e.top&lt;=t.bottom+r},c.simpleMap=function(t,e,r,n,i){for(var a=t.length,o=new Array(a),s=0;s&lt;a;s++)o[s]=e(t[s],r,n,i);return o},c.randstr=function t(e,r,n,i){if(n||(n=16),void 0===r&amp;&amp;(r=24),r&lt;=0)return&quot;0&quot;;var a,o,s=Math.log(Math.pow(2,r))/Math.log(n),l=&quot;&quot;;for(a=2;s===1/0;a*=2)s=Math.log(Math.pow(2,r/a))/Math.log(n)*a;var u=s-Math.floor(s);for(a=0;a&lt;Math.floor(s);a++)l=Math.floor(Math.random()*n).toString(n)+l;u&amp;&amp;(o=Math.pow(n,u),l=Math.floor(Math.random()*o).toString(n)+l);var f=parseInt(l,n);return e&amp;&amp;e[l]||f!==1/0&amp;&amp;f&gt;=Math.pow(2,r)?i&gt;10?(c.warn(&quot;randstr failed uniqueness&quot;),l):t(e,r,n,(i||0)+1):l},c.OptionControl=function(t,e){t||(t={}),e||(e=&quot;opt&quot;);var r={optionList:[],_newoption:function(n){n[e]=t,r[n.name]=n,r.optionList.push(n)}};return r[&quot;_&quot;+e]=t,r},c.smooth=function(t,e){if((e=Math.round(e)||0)&lt;2)return t;var r,n,i,a,o=t.length,s=2*o,l=2*e-1,c=new Array(l),u=new Array(o);for(r=0;r&lt;l;r++)c[r]=(1-Math.cos(Math.PI*(r+1)/e))/(2*e);for(r=0;r&lt;o;r++){for(a=0,n=0;n&lt;l;n++)(i=r+n+1-e)&lt;-o?i-=s*Math.round(i/s):i&gt;=s&amp;&amp;(i-=s*Math.floor(i/s)),i&lt;0?i=-1-i:i&gt;=o&amp;&amp;(i=s-1-i),a+=t[i]*c[n];u[r]=a}return u},c.syncOrAsync=function(t,e,r){var n;function i(){return c.syncOrAsync(t,e,r)}for(;t.length;)if((n=(0,t.splice(0,1)[0])(e))&amp;&amp;n.then)return n.then(i).then(void 0,c.promiseError);return r&amp;&amp;r(e)},c.stripTrailingSlash=function(t){return&quot;/&quot;===t.substr(-1)?t.substr(0,t.length-1):t},c.noneOrAll=function(t,e,r){if(t){var n,i=!1,a=!0;for(n=0;n&lt;r.length;n++)null!=t[r[n]]?i=!0:a=!1;if(i&amp;&amp;!a)for(n=0;n&lt;r.length;n++)t[r[n]]=e[r[n]]}},c.mergeArray=function(t,e,r,n){var i=&quot;function&quot;==typeof n;if(c.isArrayOrTypedArray(t))for(var a=Math.min(t.length,e.length),o=0;o&lt;a;o++){var s=t[o];e[o][r]=i?n(s):s}},c.mergeArrayCastPositive=function(t,e,r){return c.mergeArray(t,e,r,(function(t){var e=+t;return isFinite(e)&amp;&amp;e&gt;0?e:0}))},c.fillArray=function(t,e,r,n){if(n=n||c.identity,c.isArrayOrTypedArray(t))for(var i=0;i&lt;e.length;i++)e[i][r]=n(t[i])},c.castOption=function(t,e,r,n){n=n||c.identity;var i=c.nestedProperty(t,r).get();return c.isArrayOrTypedArray(i)?Array.isArray(e)&amp;&amp;c.isArrayOrTypedArray(i[e[0]])?n(i[e[0]][e[1]]):n(i[e]):i},c.extractOption=function(t,e,r,n){if(r in t)return t[r];var i=c.nestedProperty(e,n).get();return Array.isArray(i)?void 0:i},c.tagSelected=function(t,e,r){var n,i,a=e.selectedpoints,o=e._indexToPoints;o&amp;&amp;(n=M(o));for(var s=0;s&lt;a.length;s++){var l=a[s];if(c.isIndex(l)||c.isArrayOrTypedArray(l)&amp;&amp;c.isIndex(l[0])&amp;&amp;c.isIndex(l[1])){var u=n?n[l]:l,f=r?r[u]:u;void 0!==(i=f)&amp;&amp;i&lt;t.length&amp;&amp;(t[f].selected=1)}}},c.selIndices2selPoints=function(t){var e=t.selectedpoints,r=t._indexToPoints;if(r){for(var n=M(r),i=[],a=0;a&lt;e.length;a++){var o=e[a];if(c.isIndex(o)){var s=n[o];c.isIndex(s)&amp;&amp;i.push(s)}}return i}return e},c.getTargetArray=function(t,e){var r=e.target;if(&quot;string&quot;==typeof r&amp;&amp;r){var n=c.nestedProperty(t,r).get();return!!Array.isArray(n)&amp;&amp;n}return!!Array.isArray(r)&amp;&amp;r},c.minExtend=function(t,e){var r={};&quot;object&quot;!=typeof e&amp;&amp;(e={});var n,i,a,o=Object.keys(t);for(n=0;n&lt;o.length;n++)a=t[i=o[n]],&quot;_&quot;!==i.charAt(0)&amp;&amp;&quot;function&quot;!=typeof a&amp;&amp;(&quot;module&quot;===i?r[i]=a:Array.isArray(a)?r[i]=&quot;colorscale&quot;===i?a.slice():a.slice(0,3):c.isTypedArray(a)?r[i]=a.subarray(0,3):r[i]=a&amp;&amp;&quot;object&quot;==typeof a?c.minExtend(t[i],e[i]):a);for(o=Object.keys(e),n=0;n&lt;o.length;n++)&quot;object&quot;==typeof(a=e[i=o[n]])&amp;&amp;i in r&amp;&amp;&quot;object&quot;==typeof r[i]||(r[i]=a);return r},c.titleCase=function(t){return t.charAt(0).toUpperCase()+t.substr(1)},c.containsAny=function(t,e){for(var r=0;r&lt;e.length;r++)if(-1!==t.indexOf(e[r]))return!0;return!1},c.isIE=function(){return&quot;undefined&quot;!=typeof window.navigator.msSaveBlob};var A=/MSIE [1-9]\./;c.isIE9orBelow=function(){return c.isIE()&amp;&amp;A.test(window.navigator.userAgent)};var S=/Version\/[\d\.]+.*Safari/;c.isSafari=function(){return S.test(window.navigator.userAgent)};var E=/iPad|iPhone|iPod/;c.isIOS=function(){return E.test(window.navigator.userAgent)},c.isD3Selection=function(t){return t&amp;&amp;&quot;function&quot;==typeof t.classed},c.ensureSingle=function(t,e,r,n){var i=t.select(e+(r?&quot;.&quot;+r:&quot;&quot;));if(i.size())return i;var a=t.append(e);return r&amp;&amp;a.classed(r,!0),n&amp;&amp;a.call(n),a},c.ensureSingleById=function(t,e,r,n){var i=t.select(e+&quot;#&quot;+r);if(i.size())return i;var a=t.append(e).attr(&quot;id&quot;,r);return n&amp;&amp;a.call(n),a},c.objectFromPath=function(t,e){for(var r,n=t.split(&quot;.&quot;),i=r={},a=0;a&lt;n.length;a++){var o=n[a],s=null,l=n[a].match(/(.*)\[([0-9]+)\]/);l?(o=l[1],s=l[2],r=r[o]=[],a===n.length-1?r[s]=e:r[s]={},r=r[s]):(a===n.length-1?r[o]=e:r[o]={},r=r[o])}return i};var C=/^([^\[\.]+)\.(.+)?/,L=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;c.expandObjectPaths=function(t){var e,r,n,i,a,o,s;if(&quot;object&quot;==typeof t&amp;&amp;!Array.isArray(t))for(r in t)t.hasOwnProperty(r)&amp;&amp;((e=r.match(C))?(i=t[r],n=e[1],delete t[r],t[n]=c.extendDeepNoArrays(t[n]||{},c.objectFromPath(r,c.expandObjectPaths(i))[n])):(e=r.match(L))?(i=t[r],n=e[1],a=parseInt(e[2]),delete t[r],t[n]=t[n]||[],&quot;.&quot;===e[3]?(s=e[4],o=t[n][a]=t[n][a]||{},c.extendDeepNoArrays(o,c.objectFromPath(s,c.expandObjectPaths(i)))):t[n][a]=c.expandObjectPaths(i)):t[r]=c.expandObjectPaths(t[r]));return t},c.numSeparate=function(t,e,r){if(r||(r=!1),&quot;string&quot;!=typeof e||0===e.length)throw new Error(&quot;Separator string required for formatting!&quot;);&quot;number&quot;==typeof t&amp;&amp;(t=String(t));var n=/(\d+)(\d{3})/,i=e.charAt(0),a=e.charAt(1),o=t.split(&quot;.&quot;),s=o[0],l=o.length&gt;1?i+o[1]:&quot;&quot;;if(a&amp;&amp;(o.length&gt;1||s.length&gt;4||r))for(;n.test(s);)s=s.replace(n,&quot;$1&quot;+a+&quot;$2&quot;);return s+l},c.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var I=/^\w*$/;c.templateString=function(t,e){var r={};return t.replace(c.TEMPLATE_STRING_REGEX,(function(t,n){var i;return I.test(n)?i=e[n]:(r[n]=r[n]||c.nestedProperty(e,n).get,i=r[n]()),c.isValidTextValue(i)?i:&quot;&quot;}))};var P={max:10,count:0,name:&quot;hovertemplate&quot;};c.hovertemplateString=function(){return D.apply(P,arguments)};var z={max:10,count:0,name:&quot;texttemplate&quot;};c.texttemplateString=function(){return D.apply(z,arguments)};var O=/^[:|\|]/;function D(t,e,r){var a=this,o=arguments;e||(e={});var s={};return t.replace(c.TEMPLATE_STRING_REGEX,(function(t,l,u){var f,h,p,d;for(p=3;p&lt;o.length;p++)if(f=o[p]){if(f.hasOwnProperty(l)){h=f[l];break}if(I.test(l)||(h=s[l]||c.nestedProperty(f,l).get())&amp;&amp;(s[l]=h),void 0!==h)break}if(void 0===h&amp;&amp;a)return a.count&lt;a.max&amp;&amp;(c.warn(&quot;Variable '&quot;+l+&quot;' in &quot;+a.name+&quot; could not be found!&quot;),h=t),a.count===a.max&amp;&amp;c.warn(&quot;Too many &quot;+a.name+&quot; warnings - additional warnings will be suppressed&quot;),a.count++,t;if(u){if(&quot;:&quot;===u[0]&amp;&amp;(h=(d=r?r.numberFormat:n.format)(u.replace(O,&quot;&quot;))(h)),&quot;|&quot;===u[0]){d=r?r.timeFormat:i;var g=c.dateTime2ms(h);h=c.formatDate(g,u.replace(O,&quot;&quot;),!1,d)}}else e.hasOwnProperty(l+&quot;Label&quot;)&amp;&amp;(h=e[l+&quot;Label&quot;]);return h}))}c.subplotSort=function(t,e){for(var r=Math.min(t.length,e.length)+1,n=0,i=0,a=0;a&lt;r;a++){var o=t.charCodeAt(a)||0,s=e.charCodeAt(a)||0,l=o&gt;=48&amp;&amp;o&lt;=57,c=s&gt;=48&amp;&amp;s&lt;=57;if(l&amp;&amp;(n=10*n+o-48),c&amp;&amp;(i=10*i+s-48),!l||!c){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var R=2e9;c.seedPseudoRandom=function(){R=2e9},c.pseudoRandom=function(){var t=R;return R=(69069*R+1)%4294967296,Math.abs(R-t)&lt;429496729?c.pseudoRandom():R/4294967296},c.fillText=function(t,e,r){var n=Array.isArray(r)?function(t){r.push(t)}:function(t){r.text=t},i=c.extractOption(t,e,&quot;htx&quot;,&quot;hovertext&quot;);if(c.isValidTextValue(i))return n(i);var a=c.extractOption(t,e,&quot;tx&quot;,&quot;text&quot;);return c.isValidTextValue(a)?n(a):void 0},c.isValidTextValue=function(t){return t||0===t},c.formatPercent=function(t,e){e=e||0;for(var r=(Math.round(100*t*Math.pow(10,e))*Math.pow(.1,e)).toFixed(e)+&quot;%&quot;,n=0;n&lt;e;n++)-1!==r.indexOf(&quot;.&quot;)&amp;&amp;(r=(r=r.replace(&quot;0%&quot;,&quot;%&quot;)).replace(&quot;.%&quot;,&quot;%&quot;));return r},c.isHidden=function(t){var e=window.getComputedStyle(t).display;return!e||&quot;none&quot;===e},c.strTranslate=function(t,e){return t||e?&quot;translate(&quot;+t+&quot;,&quot;+e+&quot;)&quot;:&quot;&quot;},c.strRotate=function(t){return t?&quot;rotate(&quot;+t+&quot;)&quot;:&quot;&quot;},c.strScale=function(t){return 1!==t?&quot;scale(&quot;+t+&quot;)&quot;:&quot;&quot;},c.getTextTransform=function(t){var e=t.noCenter,r=t.textX,n=t.textY,i=t.targetX,a=t.targetY,o=t.anchorX||0,s=t.anchorY||0,l=t.rotate,u=t.scale;return u?u&gt;1&amp;&amp;(u=1):u=0,c.strTranslate(i-u*(r+o),a-u*(n+s))+c.strScale(u)+(l?&quot;rotate(&quot;+l+(e?&quot;&quot;:&quot; &quot;+r+&quot; &quot;+n)+&quot;)&quot;:&quot;&quot;)},c.ensureUniformFontSize=function(t,e){var r=c.extendFlat({},e);return r.size=Math.max(e.size,t._fullLayout.uniformtext.minsize||0),r},c.join2=function(t,e,r){var n=t.length;return n&gt;1?t.slice(0,-1).join(e)+r+t[n-1]:t.join(e)}},{&quot;../constants/numerical&quot;:753,&quot;./anchor_utils&quot;:758,&quot;./angles&quot;:759,&quot;./array&quot;:760,&quot;./clean_number&quot;:761,&quot;./clear_responsive&quot;:763,&quot;./coerce&quot;:764,&quot;./dates&quot;:765,&quot;./dom&quot;:766,&quot;./extend&quot;:768,&quot;./filter_unique&quot;:769,&quot;./filter_visible&quot;:770,&quot;./geometry2d&quot;:773,&quot;./identity&quot;:776,&quot;./increment&quot;:777,&quot;./is_plain_object&quot;:779,&quot;./keyed_container&quot;:780,&quot;./localize&quot;:781,&quot;./loggers&quot;:782,&quot;./make_trace_groups&quot;:783,&quot;./matrix&quot;:784,&quot;./mod&quot;:785,&quot;./nested_property&quot;:786,&quot;./noop&quot;:787,&quot;./notifier&quot;:788,&quot;./preserve_drawing_buffer&quot;:792,&quot;./push_unique&quot;:793,&quot;./regex&quot;:795,&quot;./relative_attr&quot;:796,&quot;./relink_private&quot;:797,&quot;./search&quot;:798,&quot;./stats&quot;:801,&quot;./throttle&quot;:804,&quot;./to_log_range&quot;:805,d3:169,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],779:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return window&amp;&amp;window.process&amp;&amp;window.process.versions?&quot;[object Object]&quot;===Object.prototype.toString.call(t):&quot;[object Object]&quot;===Object.prototype.toString.call(t)&amp;&amp;Object.getPrototypeOf(t)===Object.prototype}},{}],780:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./nested_property&quot;),i=/^\w*$/;e.exports=function(t,e,r,a){var o,s,l;r=r||&quot;name&quot;,a=a||&quot;value&quot;;var c={};e&amp;&amp;e.length?(l=n(t,e),s=l.get()):s=t,e=e||&quot;&quot;;var u={};if(s)for(o=0;o&lt;s.length;o++)u[s[o][r]]=o;var f=i.test(a),h={set:function(t,e){var i=null===e?4:0;if(!s){if(!l||4===i)return;s=[],l.set(s)}var o=u[t];if(void 0===o){if(4===i)return;i|=3,o=s.length,u[t]=o}else e!==(f?s[o][a]:n(s[o],a).get())&amp;&amp;(i|=2);var p=s[o]=s[o]||{};return p[r]=t,f?p[a]=e:n(p,a).set(e),null!==e&amp;&amp;(i&amp;=-5),c[o]=c[o]|i,h},get:function(t){if(s){var e=u[t];return void 0===e?void 0:f?s[e][a]:n(s[e],a).get()}},rename:function(t,e){var n=u[t];return void 0===n||(c[n]=1|c[n],u[e]=n,delete u[t],s[n][r]=e),h},remove:function(t){var e=u[t];if(void 0===e)return h;var i=s[e];if(Object.keys(i).length&gt;2)return c[e]=2|c[e],h.set(t,null);if(f){for(o=e;o&lt;s.length;o++)c[o]=3|c[o];for(o=e;o&lt;s.length;o++)u[s[o][r]]--;s.splice(e,1),delete u[t]}else n(i,a).set(null),c[e]=6|c[e];return h},constructUpdate:function(){for(var t,i,o={},l=Object.keys(c),u=0;u&lt;l.length;u++)i=l[u],t=e+&quot;[&quot;+i+&quot;]&quot;,s[i]?(1&amp;c[i]&amp;&amp;(o[t+&quot;.&quot;+r]=s[i][r]),2&amp;c[i]&amp;&amp;(o[t+&quot;.&quot;+a]=f?4&amp;c[i]?null:s[i][a]:4&amp;c[i]?null:n(s[i],a).get())):o[t]=null;return o}};return h}},{&quot;./nested_property&quot;:786}],781:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);e.exports=function(t,e){for(var r=t._context.locale,i=0;i&lt;2;i++){for(var a=t._context.locales,o=0;o&lt;2;o++){var s=(a[r]||{}).dictionary;if(s){var l=s[e];if(l)return l}a=n.localeRegistry}var c=r.split(&quot;-&quot;)[0];if(c===r)break;r=c}return e}},{&quot;../registry&quot;:911}],782:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../plot_api/plot_config&quot;).dfltConfig,i=t(&quot;./notifier&quot;),a=e.exports={};function o(t,e){if(t&amp;&amp;t.apply)try{return void t.apply(console,e)}catch(t){}for(var r=0;r&lt;e.length;r++)try{t(e[r])}catch(t){console.log(e[r])}}a.log=function(){var t;if(n.logging&gt;1){var e=[&quot;LOG:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);o(console.trace||console.log,e)}if(n.notifyOnLogging&gt;1){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;long&quot;)}},a.warn=function(){var t;if(n.logging&gt;0){var e=[&quot;WARN:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);o(console.trace||console.log,e)}if(n.notifyOnLogging&gt;0){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;stick&quot;)}},a.error=function(){var t;if(n.logging&gt;0){var e=[&quot;ERROR:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);o(console.error,e)}if(n.notifyOnLogging&gt;0){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;stick&quot;)}}},{&quot;../plot_api/plot_config&quot;:815,&quot;./notifier&quot;:788}],783:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t,e,r){var i=t.selectAll(&quot;g.&quot;+r.replace(/\s/g,&quot;.&quot;)).data(e,(function(t){return t[0].trace.uid}));i.exit().remove(),i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,r),i.order();var a=t.classed(&quot;rangeplot&quot;)?&quot;nodeRangePlot3&quot;:&quot;node3&quot;;return i.each((function(t){t[0][a]=n.select(this)})),i}},{d3:169}],784:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mat4&quot;);r.init2dArray=function(t,e){for(var r=new Array(t),n=0;n&lt;t;n++)r[n]=new Array(e);return r},r.transposeRagged=function(t){var e,r,n=0,i=t.length;for(e=0;e&lt;i;e++)n=Math.max(n,t[e].length);var a=new Array(n);for(e=0;e&lt;n;e++)for(a[e]=new Array(i),r=0;r&lt;i;r++)a[e][r]=t[r][e];return a},r.dot=function(t,e){if(!t.length||!e.length||t.length!==e.length)return null;var n,i,a=t.length;if(t[0].length)for(n=new Array(a),i=0;i&lt;a;i++)n[i]=r.dot(t[i],e);else if(e[0].length){var o=r.transposeRagged(e);for(n=new Array(o.length),i=0;i&lt;o.length;i++)n[i]=r.dot(t,o[i])}else for(n=0,i=0;i&lt;a;i++)n+=t[i]*e[i];return n},r.translationMatrix=function(t,e){return[[1,0,t],[0,1,e],[0,0,1]]},r.rotationMatrix=function(t){var e=t*Math.PI/180;return[[Math.cos(e),-Math.sin(e),0],[Math.sin(e),Math.cos(e),0],[0,0,1]]},r.rotationXYMatrix=function(t,e,n){return r.dot(r.dot(r.translationMatrix(e,n),r.rotationMatrix(t)),r.translationMatrix(-e,-n))},r.apply3DTransform=function(t){return function(){var e=arguments,n=1===arguments.length?e[0]:[e[0],e[1],e[2]||0];return r.dot(t,[n[0],n[1],n[2],1]).slice(0,3)}},r.apply2DTransform=function(t){return function(){var e=arguments;3===e.length&amp;&amp;(e=e[0]);var n=1===arguments.length?e[0]:[e[0],e[1]];return r.dot(t,[n[0],n[1],1]).slice(0,2)}},r.apply2DTransform2=function(t){var e=r.apply2DTransform(t);return function(t){return e(t.slice(0,2)).concat(e(t.slice(2,4)))}},r.convertCssMatrix=function(t){if(t){var e=t.length;if(16===e)return t;if(6===e)return[t[0],t[1],0,0,t[2],t[3],0,0,0,0,1,0,t[4],t[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},r.inverseTransformMatrix=function(t){var e=[];return n.invert(e,t),[[e[0],e[1],e[2],e[3]],[e[4],e[5],e[6],e[7]],[e[8],e[9],e[10],e[11]],[e[12],e[13],e[14],e[15]]]}},{&quot;gl-mat4&quot;:292}],785:[function(t,e,r){&quot;use strict&quot;;e.exports={mod:function(t,e){var r=t%e;return r&lt;0?r+e:r},modHalf:function(t,e){return Math.abs(t)&gt;e/2?t-Math.round(t/e)*e:t}}},{}],786:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./array&quot;).isArrayOrTypedArray;function a(t,e){return function(){var r,n,o,s,l,c=t;for(s=0;s&lt;e.length-1;s++){if(-1===(r=e[s])){for(n=!0,o=[],l=0;l&lt;c.length;l++)o[l]=a(c[l],e.slice(s+1))(),o[l]!==o[0]&amp;&amp;(n=!1);return n?o[0]:o}if(&quot;number&quot;==typeof r&amp;&amp;!i(c))return;if(&quot;object&quot;!=typeof(c=c[r])||null===c)return}if(&quot;object&quot;==typeof c&amp;&amp;null!==c&amp;&amp;null!==(o=c[e[s]]))return o}}e.exports=function(t,e){if(n(e))e=String(e);else if(&quot;string&quot;!=typeof e||&quot;[-1]&quot;===e.substr(e.length-4))throw&quot;bad property string&quot;;for(var r,i,o,s=0,c=e.split(&quot;.&quot;);s&lt;c.length;){if(r=String(c[s]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(r[1])c[s]=r[1];else{if(0!==s)throw&quot;bad property string&quot;;c.splice(0,1)}for(i=r[2].substr(1,r[2].length-2).split(&quot;][&quot;),o=0;o&lt;i.length;o++)s++,c.splice(s,0,Number(i[o]))}s++}return&quot;object&quot;!=typeof t?function(t,e,r){return{set:function(){throw&quot;bad container&quot;},get:function(){},astr:e,parts:r,obj:t}}(t,e,c):{set:l(t,c,e),get:a(t,c),astr:e,parts:c,obj:t}};var o=/(^|\.)args\[/;function s(t,e){return void 0===t||null===t&amp;&amp;!e.match(o)}function l(t,e,r){return function(n){var a,o,l=t,h=&quot;&quot;,p=[[t,h]],d=s(n,r);for(o=0;o&lt;e.length-1;o++){if(&quot;number&quot;==typeof(a=e[o])&amp;&amp;!i(l))throw&quot;array index but container is not an array&quot;;if(-1===a){if(d=!u(l,e.slice(o+1),n,r))break;return}if(!f(l,a,e[o+1],d))break;if(&quot;object&quot;!=typeof(l=l[a])||null===l)throw&quot;container is not an object&quot;;h=c(h,a),p.push([l,h])}if(d){if(o===e.length-1&amp;&amp;(delete l[e[o]],Array.isArray(l)&amp;&amp;+e[o]==l.length-1))for(;l.length&amp;&amp;void 0===l[l.length-1];)l.pop()}else l[e[o]]=n}}function c(t,e){var r=e;return n(e)?r=&quot;[&quot;+e+&quot;]&quot;:t&amp;&amp;(r=&quot;.&quot;+e),t+r}function u(t,e,r,n){var a,o=i(r),c=!0,u=r,h=n.replace(&quot;-1&quot;,0),p=!o&amp;&amp;s(r,h),d=e[0];for(a=0;a&lt;t.length;a++)h=n.replace(&quot;-1&quot;,a),o&amp;&amp;(p=s(u=r[a%r.length],h)),p&amp;&amp;(c=!1),f(t,a,d,p)&amp;&amp;l(t[a],e,n.replace(&quot;-1&quot;,a))(u);return c}function f(t,e,r,n){if(void 0===t[e]){if(n)return!1;t[e]=&quot;number&quot;==typeof r?[]:{}}return!0}},{&quot;./array&quot;:760,&quot;fast-isnumeric&quot;:241}],787:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){}},{}],788:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=[];e.exports=function(t,e){if(-1===a.indexOf(t)){a.push(t);var r=1e3;i(e)?r=e:&quot;long&quot;===e&amp;&amp;(r=3e3);var o=n.select(&quot;body&quot;).selectAll(&quot;.plotly-notifier&quot;).data([0]);o.enter().append(&quot;div&quot;).classed(&quot;plotly-notifier&quot;,!0),o.selectAll(&quot;.notifier-note&quot;).data(a).enter().append(&quot;div&quot;).classed(&quot;notifier-note&quot;,!0).style(&quot;opacity&quot;,0).each((function(t){var i=n.select(this);i.append(&quot;button&quot;).classed(&quot;notifier-close&quot;,!0).html(&quot;&amp;times;&quot;).on(&quot;click&quot;,(function(){i.transition().call(s)}));for(var a=i.append(&quot;p&quot;),o=t.split(/&lt;br\s*\/?&gt;/g),l=0;l&lt;o.length;l++)l&amp;&amp;a.append(&quot;br&quot;),a.append(&quot;span&quot;).text(o[l]);&quot;stick&quot;===e?i.transition().duration(350).style(&quot;opacity&quot;,1):i.transition().duration(700).style(&quot;opacity&quot;,1).transition().delay(r).call(s)}))}function s(t){t.duration(700).style(&quot;opacity&quot;,0).each(&quot;end&quot;,(function(t){var e=a.indexOf(t);-1!==e&amp;&amp;a.splice(e,1),n.select(this).remove()}))}}},{d3:169,&quot;fast-isnumeric&quot;:241}],789:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./setcursor&quot;),i=&quot;data-savedcursor&quot;;e.exports=function(t,e){var r=t.attr(i);if(e){if(!r){for(var a=(t.attr(&quot;class&quot;)||&quot;&quot;).split(&quot; &quot;),o=0;o&lt;a.length;o++){var s=a[o];0===s.indexOf(&quot;cursor-&quot;)&amp;&amp;t.attr(i,s.substr(7)).classed(s,!1)}t.attr(i)||t.attr(i,&quot;!!&quot;)}n(t,e)}else r&amp;&amp;(t.attr(i,null),&quot;!!&quot;===r?n(t):n(t,r))}},{&quot;./setcursor&quot;:799}],790:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./matrix&quot;).dot,i=t(&quot;../constants/numerical&quot;).BADNUM,a=e.exports={};a.tester=function(t){var e,r=t.slice(),n=r[0][0],a=n,o=r[0][1],s=o;for(r.push(r[0]),e=1;e&lt;r.length;e++)n=Math.min(n,r[e][0]),a=Math.max(a,r[e][0]),o=Math.min(o,r[e][1]),s=Math.max(s,r[e][1]);var l,c=!1;5===r.length&amp;&amp;(r[0][0]===r[1][0]?r[2][0]===r[3][0]&amp;&amp;r[0][1]===r[3][1]&amp;&amp;r[1][1]===r[2][1]&amp;&amp;(c=!0,l=function(t){return t[0]===r[0][0]}):r[0][1]===r[1][1]&amp;&amp;r[2][1]===r[3][1]&amp;&amp;r[0][0]===r[3][0]&amp;&amp;r[1][0]===r[2][0]&amp;&amp;(c=!0,l=function(t){return t[1]===r[0][1]}));var u=!0,f=r[0];for(e=1;e&lt;r.length;e++)if(f[0]!==r[e][0]||f[1]!==r[e][1]){u=!1;break}return{xmin:n,xmax:a,ymin:o,ymax:s,pts:r,contains:c?function(t,e){var r=t[0],c=t[1];return!(r===i||r&lt;n||r&gt;a||c===i||c&lt;o||c&gt;s)&amp;&amp;(!e||!l(t))}:function(t,e){var l=t[0],c=t[1];if(l===i||l&lt;n||l&gt;a||c===i||c&lt;o||c&gt;s)return!1;var u,f,h,p,d,g=r.length,m=r[0][0],v=r[0][1],y=0;for(u=1;u&lt;g;u++)if(f=m,h=v,m=r[u][0],v=r[u][1],!(l&lt;(p=Math.min(f,m))||l&gt;Math.max(f,m)||c&gt;Math.max(h,v)))if(c&lt;Math.min(h,v))l!==p&amp;&amp;y++;else{if(c===(d=m===f?c:h+(l-f)*(v-h)/(m-f)))return 1!==u||!e;c&lt;=d&amp;&amp;l!==p&amp;&amp;y++}return y%2==1},isRect:c,degenerate:u}},a.isSegmentBent=function(t,e,r,i){var a,o,s,l=t[e],c=[t[r][0]-l[0],t[r][1]-l[1]],u=n(c,c),f=Math.sqrt(u),h=[-c[1]/f,c[0]/f];for(a=e+1;a&lt;r;a++)if(o=[t[a][0]-l[0],t[a][1]-l[1]],(s=n(o,c))&lt;0||s&gt;u||Math.abs(n(o,h))&gt;i)return!0;return!1},a.filter=function(t,e){var r=[t[0]],n=0,i=0;function o(o){t.push(o);var s=r.length,l=n;r.splice(i+1);for(var c=l+1;c&lt;t.length;c++)(c===t.length-1||a.isSegmentBent(t,l,c+1,e))&amp;&amp;(r.push(t[c]),r.length&lt;s-2&amp;&amp;(n=c,i=r.length-1),l=c)}t.length&gt;1&amp;&amp;o(t.pop());return{addPt:o,raw:t,filtered:r}}},{&quot;../constants/numerical&quot;:753,&quot;./matrix&quot;:784}],791:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;./show_no_webgl_msg&quot;),i=t(&quot;regl&quot;);e.exports=function(t,e){var a=t._fullLayout,o=!0;return a._glcanvas.each((function(n){if(!n.regl&amp;&amp;(!n.pick||a._has(&quot;parcoords&quot;))){try{n.regl=i({canvas:this,attributes:{antialias:!n.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||r.devicePixelRatio,extensions:e||[]})}catch(t){o=!1}n.regl||(o=!1),o&amp;&amp;this.addEventListener(&quot;webglcontextlost&quot;,(function(e){t&amp;&amp;t.emit&amp;&amp;t.emit(&quot;plotly_webglcontextlost&quot;,{event:e,layer:n.key})}),!1)}})),o||n({container:a._glcontainer.node()}),o}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;./show_no_webgl_msg&quot;:800,regl:540}],792:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;is-mobile&quot;);e.exports=function(t){var e;if(&quot;string&quot;!=typeof(e=t&amp;&amp;t.hasOwnProperty(&quot;userAgent&quot;)?t.userAgent:function(){var t;&quot;undefined&quot;!=typeof navigator&amp;&amp;(t=navigator.userAgent);t&amp;&amp;t.headers&amp;&amp;&quot;string&quot;==typeof t.headers[&quot;user-agent&quot;]&amp;&amp;(t=t.headers[&quot;user-agent&quot;]);return t}()))return!0;var r=i({ua:{headers:{&quot;user-agent&quot;:e}},tablet:!0,featureDetect:!1});if(!r)for(var a=e.split(&quot; &quot;),o=1;o&lt;a.length;o++){if(-1!==a[o].indexOf(&quot;Safari&quot;))for(var s=o-1;s&gt;-1;s--){var l=a[s];if(&quot;Version/&quot;===l.substr(0,8)){var c=l.substr(8).split(&quot;.&quot;)[0];if(n(c)&amp;&amp;(c=+c),c&gt;=13)return!0}}}return r}},{&quot;fast-isnumeric&quot;:241,&quot;is-mobile&quot;:467}],793:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(e instanceof RegExp){for(var r=e.toString(),n=0;n&lt;t.length;n++)if(t[n]instanceof RegExp&amp;&amp;t[n].toString()===r)return t;t.push(e)}else!e&amp;&amp;0!==e||-1!==t.indexOf(e)||t.push(e);return t}},{}],794:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_config&quot;).dfltConfig;var a={add:function(t,e,r,n,a){var o,s;t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},s=t.undoQueue.index,t.autoplay?t.undoQueue.inSequence||(t.autoplay=!1):(!t.undoQueue.sequence||t.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},t.undoQueue.queue.splice(s,t.undoQueue.queue.length-s,o),t.undoQueue.index+=1):o=t.undoQueue.queue[s-1],t.undoQueue.beginSequence=!1,o&amp;&amp;(o.undo.calls.unshift(e),o.undo.args.unshift(r),o.redo.calls.push(n),o.redo.args.push(a)),t.undoQueue.queue.length&gt;i.queueLength&amp;&amp;(t.undoQueue.queue.shift(),t.undoQueue.index--))},startSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!0,t.undoQueue.beginSequence=!0},stopSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!1,t.undoQueue.beginSequence=!1},undo:function(t){var e,r;if(t.framework&amp;&amp;t.framework.isPolar)t.framework.undo();else if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index&lt;=0)){for(t.undoQueue.index--,e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r&lt;e.undo.calls.length;r++)a.plotDo(t,e.undo.calls[r],e.undo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1}},redo:function(t){var e,r;if(t.framework&amp;&amp;t.framework.isPolar)t.framework.redo();else if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index&gt;=t.undoQueue.queue.length)){for(e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r&lt;e.redo.calls.length;r++)a.plotDo(t,e.redo.calls[r],e.redo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1,t.undoQueue.index++}}};a.plotDo=function(t,e,r){t.autoplay=!0,r=function(t,e){for(var r,i=[],a=0;a&lt;e.length;a++)r=e[a],i[a]=r===t?r:&quot;object&quot;==typeof r?Array.isArray(r)?n.extendDeep([],r):n.extendDeepAll({},r):r;return i}(t,r),e.apply(null,r)},e.exports=a},{&quot;../lib&quot;:778,&quot;../plot_api/plot_config&quot;:815}],795:[function(t,e,r){&quot;use strict&quot;;r.counter=function(t,e,r,n){var i=(e||&quot;&quot;)+(r?&quot;&quot;:&quot;$&quot;),a=!1===n?&quot;&quot;:&quot;^&quot;;return&quot;xy&quot;===t?new RegExp(a+&quot;x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?&quot;+i):new RegExp(a+t+&quot;([2-9]|[1-9][0-9]+)?&quot;+i)}},{}],796:[function(t,e,r){&quot;use strict&quot;;var n=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,i=/^[^\.\[\]]+$/;e.exports=function(t,e){for(;e;){var r=t.match(n);if(r)t=r[1];else{if(!t.match(i))throw new Error(&quot;bad relativeAttr call:&quot;+[t,e]);t=&quot;&quot;}if(&quot;^&quot;!==e.charAt(0))break;e=e.slice(1)}return t&amp;&amp;&quot;[&quot;!==e.charAt(0)?t+&quot;.&quot;+e:t+e}},{}],797:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./array&quot;).isArrayOrTypedArray,i=t(&quot;./is_plain_object&quot;);e.exports=function t(e,r){for(var a in r){var o=r[a],s=e[a];if(s!==o)if(&quot;_&quot;===a.charAt(0)||&quot;function&quot;==typeof o){if(a in e)continue;e[a]=o}else if(n(o)&amp;&amp;n(s)&amp;&amp;i(o[0])){if(&quot;customdata&quot;===a||&quot;ids&quot;===a)continue;for(var l=Math.min(o.length,s.length),c=0;c&lt;l;c++)s[c]!==o[c]&amp;&amp;i(o[c])&amp;&amp;i(s[c])&amp;&amp;t(s[c],o[c])}else i(o)&amp;&amp;i(s)&amp;&amp;(t(s,o),Object.keys(s).length||delete e[a])}}},{&quot;./array&quot;:760,&quot;./is_plain_object&quot;:779}],798:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./loggers&quot;),a=t(&quot;./identity&quot;),o=t(&quot;../constants/numerical&quot;).BADNUM;function s(t,e){return t&lt;e}function l(t,e){return t&lt;=e}function c(t,e){return t&gt;e}function u(t,e){return t&gt;=e}r.findBin=function(t,e,r){if(n(e.start))return r?Math.ceil((t-e.start)/e.size-1e-9)-1:Math.floor((t-e.start)/e.size+1e-9);var a,o,f=0,h=e.length,p=0,d=h&gt;1?(e[h-1]-e[0])/(h-1):1;for(o=d&gt;=0?r?s:l:r?u:c,t+=1e-9*d*(r?-1:1)*(d&gt;=0?1:-1);f&lt;h&amp;&amp;p++&lt;100;)o(e[a=Math.floor((f+h)/2)],t)?f=a+1:h=a;return p&gt;90&amp;&amp;i.log(&quot;Long binary search...&quot;),f-1},r.sorterAsc=function(t,e){return t-e},r.sorterDes=function(t,e){return e-t},r.distinctVals=function(t,e){var n,i=(e||{}).unitMinDiff,a=t.slice();for(a.sort(r.sorterAsc),n=a.length-1;n&gt;-1&amp;&amp;a[n]===o;n--);var s=1;i||(s=a[n]-a[0]||1);for(var l,c=s/(n||1)/1e4,u=[],f=0;f&lt;=n;f++){var h=a[f],p=h-l;void 0===l?(u.push(h),l=h):p&gt;c&amp;&amp;(s=Math.min(s,p),u.push(h),l=h)}return{vals:u,minDiff:s}},r.roundUp=function(t,e,r){for(var n,i=0,a=e.length-1,o=0,s=r?0:1,l=r?1:0,c=r?Math.ceil:Math.floor;i&lt;a&amp;&amp;o++&lt;100;)e[n=c((i+a)/2)]&lt;=t?i=n+s:a=n-l;return e[i]},r.sort=function(t,e){for(var r=0,n=0,i=1;i&lt;t.length;i++){var a=e(t[i],t[i-1]);if(a&lt;0?r=1:a&gt;0&amp;&amp;(n=1),r&amp;&amp;n)return t.sort(e)}return n?t:t.reverse()},r.findIndexOfMin=function(t,e){e=e||a;for(var r,n=1/0,i=0;i&lt;t.length;i++){var o=e(t[i]);o&lt;n&amp;&amp;(n=o,r=i)}return r}},{&quot;../constants/numerical&quot;:753,&quot;./identity&quot;:776,&quot;./loggers&quot;:782,&quot;fast-isnumeric&quot;:241}],799:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){(t.attr(&quot;class&quot;)||&quot;&quot;).split(&quot; &quot;).forEach((function(e){0===e.indexOf(&quot;cursor-&quot;)&amp;&amp;t.classed(e,!1)})),e&amp;&amp;t.classed(&quot;cursor-&quot;+e,!0)}},{}],800:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../components/color&quot;),i=function(){};e.exports=function(t){for(var e in t)&quot;function&quot;==typeof t[e]&amp;&amp;(t[e]=i);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var r=document.createElement(&quot;div&quot;);r.className=&quot;no-webgl&quot;,r.style.cursor=&quot;pointer&quot;,r.style.fontSize=&quot;24px&quot;,r.style.color=n.defaults[0],r.style.position=&quot;absolute&quot;,r.style.left=r.style.top=&quot;0px&quot;,r.style.width=r.style.height=&quot;100%&quot;,r.style[&quot;background-color&quot;]=n.lightLine,r.style[&quot;z-index&quot;]=30;var a=document.createElement(&quot;p&quot;);return a.textContent=&quot;WebGL is not supported by your browser - visit https://get.webgl.org for more info&quot;,a.style.position=&quot;relative&quot;,a.style.top=&quot;50%&quot;,a.style.left=&quot;50%&quot;,a.style.height=&quot;30%&quot;,a.style.width=&quot;50%&quot;,a.style.margin=&quot;-15% 0 0 -25%&quot;,r.appendChild(a),t.container.appendChild(r),t.container.style.background=&quot;#FFFFFF&quot;,t.container.onclick=function(){window.open(&quot;https://get.webgl.org&quot;)},!1}},{&quot;../components/color&quot;:643}],801:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./array&quot;).isArrayOrTypedArray;r.aggNums=function(t,e,a,o){var s,l;if((!o||o&gt;a.length)&amp;&amp;(o=a.length),n(e)||(e=!1),i(a[0])){for(l=new Array(o),s=0;s&lt;o;s++)l[s]=r.aggNums(t,e,a[s]);a=l}for(s=0;s&lt;o;s++)n(e)?n(a[s])&amp;&amp;(e=t(+e,+a[s])):e=a[s];return e},r.len=function(t){return r.aggNums((function(t){return t+1}),0,t)},r.mean=function(t,e){return e||(e=r.len(t)),r.aggNums((function(t,e){return t+e}),0,t)/e},r.midRange=function(t){if(void 0!==t&amp;&amp;0!==t.length)return(r.aggNums(Math.max,null,t)+r.aggNums(Math.min,null,t))/2},r.variance=function(t,e,i){return e||(e=r.len(t)),n(i)||(i=r.mean(t,e)),r.aggNums((function(t,e){return t+Math.pow(e-i,2)}),0,t)/e},r.stdev=function(t,e,n){return Math.sqrt(r.variance(t,e,n))},r.median=function(t){var e=t.slice().sort();return r.interp(e,.5)},r.interp=function(t,e){if(!n(e))throw&quot;n should be a finite number&quot;;if((e=e*t.length-.5)&lt;0)return t[0];if(e&gt;t.length-1)return t[t.length-1];var r=e%1;return r*t[Math.ceil(e)]+(1-r)*t[Math.floor(e)]}},{&quot;./array&quot;:760,&quot;fast-isnumeric&quot;:241}],802:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-normalize&quot;);e.exports=function(t){return t?n(t):[0,0,0,1]}},{&quot;color-normalize&quot;:125}],803:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../lib&quot;),a=i.strTranslate,o=t(&quot;../constants/xmlns_namespaces&quot;),s=t(&quot;../constants/alignment&quot;).LINE_SPACING;function l(t,e){return t.node().getBoundingClientRect()[e]}var c=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;r.convertToTspans=function(t,e,A){var S=t.text(),C=!t.attr(&quot;data-notex&quot;)&amp;&amp;&quot;undefined&quot;!=typeof MathJax&amp;&amp;S.match(c),L=n.select(t.node().parentNode);if(!L.empty()){var I=t.attr(&quot;class&quot;)?t.attr(&quot;class&quot;).split(&quot; &quot;)[0]:&quot;text&quot;;return I+=&quot;-math&quot;,L.selectAll(&quot;svg.&quot;+I).remove(),L.selectAll(&quot;g.&quot;+I+&quot;-group&quot;).remove(),t.style(&quot;display&quot;,null).attr({&quot;data-unformatted&quot;:S,&quot;data-math&quot;:&quot;N&quot;}),C?(e&amp;&amp;e._promises||[]).push(new Promise((function(e){t.style(&quot;display&quot;,&quot;none&quot;);var r=parseInt(t.node().style.fontSize,10),o={fontSize:r};!function(t,e,r){var a,o,s,l;MathJax.Hub.Queue((function(){return o=i.extendDeepAll({},MathJax.Hub.config),s=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&amp;&amp;(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:&quot;none&quot;,tex2jax:{inlineMath:[[&quot;$&quot;,&quot;$&quot;],[&quot;\\(&quot;,&quot;\\)&quot;]]},displayAlign:&quot;left&quot;})}),(function(){if(&quot;SVG&quot;!==(a=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer(&quot;SVG&quot;)}),(function(){var r=&quot;math-output-&quot;+i.randstr({},64);return l=n.select(&quot;body&quot;).append(&quot;div&quot;).attr({id:r}).style({visibility:&quot;hidden&quot;,position:&quot;absolute&quot;}).style({&quot;font-size&quot;:e.fontSize+&quot;px&quot;}).text(t.replace(u,&quot;\\lt &quot;).replace(f,&quot;\\gt &quot;)),MathJax.Hub.Typeset(l.node())}),(function(){var e=n.select(&quot;body&quot;).select(&quot;#MathJax_SVG_glyphs&quot;);if(l.select(&quot;.MathJax_SVG&quot;).empty()||!l.select(&quot;svg&quot;).node())i.log(&quot;There was an error in the tex syntax.&quot;,t),r();else{var o=l.select(&quot;svg&quot;).node().getBoundingClientRect();r(l.select(&quot;.MathJax_SVG&quot;),e,o)}if(l.remove(),&quot;SVG&quot;!==a)return MathJax.Hub.setRenderer(a)}),(function(){return void 0!==s&amp;&amp;(MathJax.Hub.processSectionDelay=s),MathJax.Hub.Config(o)}))}(C[2],o,(function(n,i,o){L.selectAll(&quot;svg.&quot;+I).remove(),L.selectAll(&quot;g.&quot;+I+&quot;-group&quot;).remove();var s=n&amp;&amp;n.select(&quot;svg&quot;);if(!s||!s.node())return P(),void e();var c=L.append(&quot;g&quot;).classed(I+&quot;-group&quot;,!0).attr({&quot;pointer-events&quot;:&quot;none&quot;,&quot;data-unformatted&quot;:S,&quot;data-math&quot;:&quot;Y&quot;});c.node().appendChild(s.node()),i&amp;&amp;i.node()&amp;&amp;s.node().insertBefore(i.node().cloneNode(!0),s.node().firstChild),s.attr({class:I,height:o.height,preserveAspectRatio:&quot;xMinYMin meet&quot;}).style({overflow:&quot;visible&quot;,&quot;pointer-events&quot;:&quot;none&quot;});var u=t.node().style.fill||&quot;black&quot;,f=s.select(&quot;g&quot;);f.attr({fill:u,stroke:u});var h=l(f,&quot;width&quot;),p=l(f,&quot;height&quot;),d=+t.attr(&quot;x&quot;)-h*{start:0,middle:.5,end:1}[t.attr(&quot;text-anchor&quot;)||&quot;start&quot;],g=-(r||l(t,&quot;height&quot;))/4;&quot;y&quot;===I[0]?(c.attr({transform:&quot;rotate(&quot;+[-90,+t.attr(&quot;x&quot;),+t.attr(&quot;y&quot;)]+&quot;)&quot;+a(-h/2,g-p/2)}),s.attr({x:+t.attr(&quot;x&quot;),y:+t.attr(&quot;y&quot;)})):&quot;l&quot;===I[0]?s.attr({x:t.attr(&quot;x&quot;),y:g-p/2}):&quot;a&quot;===I[0]&amp;&amp;0!==I.indexOf(&quot;atitle&quot;)?s.attr({x:0,y:g}):s.attr({x:d,y:+t.attr(&quot;y&quot;)+g-p/2}),A&amp;&amp;A.call(t,c),e(c)}))}))):P(),t}function P(){L.empty()||(I=t.attr(&quot;class&quot;)+&quot;-math&quot;,L.select(&quot;svg.&quot;+I).remove()),t.text(&quot;&quot;).style(&quot;white-space&quot;,&quot;pre&quot;),function(t,e){e=e.replace(m,&quot; &quot;);var r,a=!1,l=[],c=-1;function u(){c++;var e=document.createElementNS(o.svg,&quot;tspan&quot;);n.select(e).attr({class:&quot;line&quot;,dy:c*s+&quot;em&quot;}),t.appendChild(e),r=e;var i=l;if(l=[{node:e}],i.length&gt;1)for(var a=1;a&lt;i.length;a++)f(i[a])}function f(t){var e,i=t.type,a={};if(&quot;a&quot;===i){e=&quot;a&quot;;var s=t.target,c=t.href,u=t.popup;c&amp;&amp;(a={&quot;xlink:xlink:show&quot;:&quot;_blank&quot;===s||&quot;_&quot;!==s.charAt(0)?&quot;new&quot;:&quot;replace&quot;,target:s,&quot;xlink:xlink:href&quot;:c},u&amp;&amp;(a.onclick='window.open(this.href.baseVal,this.target.baseVal,&quot;'+u+'&quot;);return false;'))}else e=&quot;tspan&quot;;t.style&amp;&amp;(a.style=t.style);var f=document.createElementNS(o.svg,e);if(&quot;sup&quot;===i||&quot;sub&quot;===i){A(r,&quot;\u200b&quot;),r.appendChild(f);var h=document.createElementNS(o.svg,&quot;tspan&quot;);A(h,&quot;\u200b&quot;),n.select(h).attr(&quot;dy&quot;,d[i]),a.dy=p[i],r.appendChild(f),r.appendChild(h)}else r.appendChild(f);n.select(f).attr(a),r=t.node=f,l.push(t)}function A(t,e){t.appendChild(document.createTextNode(e))}function S(t){if(1!==l.length){var n=l.pop();t!==n.type&amp;&amp;i.log(&quot;Start tag &lt;&quot;+n.type+&quot;&gt; doesnt match end tag &lt;&quot;+t+&quot;&gt;. Pretending it did match.&quot;,e),r=l[l.length-1].node}else i.log(&quot;Ignoring unexpected end tag &lt;/&quot;+t+&quot;&gt;.&quot;,e)}x.test(e)?u():(r=t,l=[{node:t}]);for(var C=e.split(v),L=0;L&lt;C.length;L++){var I=C[L],P=I.match(y),z=P&amp;&amp;P[2].toLowerCase(),O=h[z];if(&quot;br&quot;===z)u();else if(void 0===O)A(r,E(I));else if(P[1])S(z);else{var D=P[4],R={type:z},F=k(D,b);if(F?(F=F.replace(M,&quot;$1 fill:&quot;),O&amp;&amp;(F+=&quot;;&quot;+O)):O&amp;&amp;(F=O),F&amp;&amp;(R.style=F),&quot;a&quot;===z){a=!0;var B=k(D,_);if(B){var N=document.createElement(&quot;a&quot;);N.href=B,-1!==g.indexOf(N.protocol)&amp;&amp;(R.href=encodeURI(decodeURI(B)),R.target=k(D,w)||&quot;_blank&quot;,R.popup=k(D,T))}}f(R)}}return a}(t.node(),S)&amp;&amp;t.style(&quot;pointer-events&quot;,&quot;all&quot;),r.positionText(t),A&amp;&amp;A.call(t)}};var u=/(&lt;|&amp;lt;|&amp;#60;)/g,f=/(&gt;|&amp;gt;|&amp;#62;)/g;var h={sup:&quot;font-size:70%&quot;,sub:&quot;font-size:70%&quot;,b:&quot;font-weight:bold&quot;,i:&quot;font-style:italic&quot;,a:&quot;cursor:pointer&quot;,span:&quot;&quot;,em:&quot;font-style:italic;font-weight:bold&quot;},p={sub:&quot;0.3em&quot;,sup:&quot;-0.6em&quot;},d={sub:&quot;-0.21em&quot;,sup:&quot;0.42em&quot;},g=[&quot;http:&quot;,&quot;https:&quot;,&quot;mailto:&quot;,&quot;&quot;,void 0,&quot;:&quot;],m=r.NEWLINES=/(\r\n?|\n)/g,v=/(&lt;[^&lt;&gt;]*&gt;)/,y=/&lt;(\/?)([^ &gt;]*)(\s+(.*))?&gt;/i,x=/&lt;br(\s+.*)?&gt;/i;r.BR_TAG_ALL=/&lt;br(\s+.*)?&gt;/gi;var b=/(^|[\s&quot;'])style\s*=\s*(&quot;([^&quot;]*);?&quot;|'([^']*);?')/i,_=/(^|[\s&quot;'])href\s*=\s*(&quot;([^&quot;]*)&quot;|'([^']*)')/i,w=/(^|[\s&quot;'])target\s*=\s*(&quot;([^&quot;\s]*)&quot;|'([^'\s]*)')/i,T=/(^|[\s&quot;'])popup\s*=\s*(&quot;([\w=,]*)&quot;|'([\w=,]*)')/i;function k(t,e){if(!t)return null;var r=t.match(e),n=r&amp;&amp;(r[3]||r[4]);return n&amp;&amp;E(n)}var M=/(^|;)\s*color:/;r.plainText=function(t,e){for(var r=void 0!==(e=e||{}).len&amp;&amp;-1!==e.len?e.len:1/0,n=void 0!==e.allowedTags?e.allowedTags:[&quot;br&quot;],i=&quot;...&quot;.length,a=t.split(v),o=[],s=&quot;&quot;,l=0,c=0;c&lt;a.length;c++){var u=a[c],f=u.match(y),h=f&amp;&amp;f[2].toLowerCase();if(h)-1!==n.indexOf(h)&amp;&amp;(o.push(u),s=h);else{var p=u.length;if(l+p&lt;r)o.push(u),l+=p;else if(l&lt;r){var d=r-l;s&amp;&amp;(&quot;br&quot;!==s||d&lt;=i||p&lt;=i)&amp;&amp;o.pop(),r&gt;i?o.push(u.substr(0,d-i)+&quot;...&quot;):o.push(u.substr(0,d));break}s=&quot;&quot;}}return o.join(&quot;&quot;)};var A={mu:&quot;\u03bc&quot;,amp:&quot;&amp;&quot;,lt:&quot;&lt;&quot;,gt:&quot;&gt;&quot;,nbsp:&quot;\xa0&quot;,times:&quot;\xd7&quot;,plusmn:&quot;\xb1&quot;,deg:&quot;\xb0&quot;},S=/&amp;(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function E(t){return t.replace(S,(function(t,e){return(&quot;#&quot;===e.charAt(0)?function(t){if(t&gt;1114111)return;var e=String.fromCodePoint;if(e)return e(t);var r=String.fromCharCode;return t&lt;=65535?r(t):r(55232+(t&gt;&gt;10),t%1024+56320)}(&quot;x&quot;===e.charAt(1)?parseInt(e.substr(2),16):parseInt(e.substr(1),10)):A[e])||t}))}function C(t,e,r){var n,a,o,s=r.horizontalAlign,l=r.verticalAlign||&quot;top&quot;,c=t.node().getBoundingClientRect(),u=e.node().getBoundingClientRect();return a=&quot;bottom&quot;===l?function(){return c.bottom-n.height}:&quot;middle&quot;===l?function(){return c.top+(c.height-n.height)/2}:function(){return c.top},o=&quot;right&quot;===s?function(){return c.right-n.width}:&quot;center&quot;===s?function(){return c.left+(c.width-n.width)/2}:function(){return c.left},function(){n=this.node().getBoundingClientRect();var t=o()-u.left,e=a()-u.top,s=r.gd||{};if(r.gd){s._fullLayout._calcInverseTransform(s);var l=i.apply3DTransform(s._fullLayout._invTransform)(t,e);t=l[0],e=l[1]}return this.style({top:e+&quot;px&quot;,left:t+&quot;px&quot;,&quot;z-index&quot;:1e3}),this}}r.convertEntities=E,r.sanitizeHTML=function(t){t=t.replace(m,&quot; &quot;);for(var e=document.createElement(&quot;p&quot;),r=e,i=[],a=t.split(v),o=0;o&lt;a.length;o++){var s=a[o],l=s.match(y),c=l&amp;&amp;l[2].toLowerCase();if(c in h)if(l[1])i.length&amp;&amp;(r=i.pop());else{var u=l[4],f=k(u,b),p=f?{style:f}:{};if(&quot;a&quot;===c){var d=k(u,_);if(d){var x=document.createElement(&quot;a&quot;);if(x.href=d,-1!==g.indexOf(x.protocol)){p.href=encodeURI(decodeURI(d));var T=k(u,w);T&amp;&amp;(p.target=T)}}}var M=document.createElement(c);r.appendChild(M),n.select(M).attr(p),r=M,i.push(M)}else r.appendChild(document.createTextNode(E(s)))}return e.innerHTML},r.lineCount=function(t){return t.selectAll(&quot;tspan.line&quot;).size()||1},r.positionText=function(t,e,r){return t.each((function(){var t=n.select(this);function i(e,r){return void 0===r?null===(r=t.attr(e))&amp;&amp;(t.attr(e,0),r=0):t.attr(e,r),r}var a=i(&quot;x&quot;,e),o=i(&quot;y&quot;,r);&quot;text&quot;===this.nodeName&amp;&amp;t.selectAll(&quot;tspan.line&quot;).attr({x:a,y:o})}))},r.makeEditable=function(t,e){var r=e.gd,i=e.delegate,a=n.dispatch(&quot;edit&quot;,&quot;input&quot;,&quot;cancel&quot;),o=i||t;if(t.style({&quot;pointer-events&quot;:i?&quot;none&quot;:&quot;all&quot;}),1!==t.size())throw new Error(&quot;boo&quot;);function s(){!function(){var i=n.select(r).select(&quot;.svg-container&quot;),o=i.append(&quot;div&quot;),s=t.node().style,c=parseFloat(s.fontSize||12),u=e.text;void 0===u&amp;&amp;(u=t.attr(&quot;data-unformatted&quot;));o.classed(&quot;plugin-editable editable&quot;,!0).style({position:&quot;absolute&quot;,&quot;font-family&quot;:s.fontFamily||&quot;Arial&quot;,&quot;font-size&quot;:c,color:e.fill||s.fill||&quot;black&quot;,opacity:1,&quot;background-color&quot;:e.background||&quot;transparent&quot;,outline:&quot;#ffffff33 1px solid&quot;,margin:[-c/8+1,0,0,-1].join(&quot;px &quot;)+&quot;px&quot;,padding:&quot;0&quot;,&quot;box-sizing&quot;:&quot;border-box&quot;}).attr({contenteditable:!0}).text(u).call(C(t,i,e)).on(&quot;blur&quot;,(function(){r._editing=!1,t.text(this.textContent).style({opacity:1});var e,i=n.select(this).attr(&quot;class&quot;);(e=i?&quot;.&quot;+i.split(&quot; &quot;)[0]+&quot;-math-group&quot;:&quot;[class*=-math-group]&quot;)&amp;&amp;n.select(t.node().parentNode).select(e).style({opacity:0});var o=this.textContent;n.select(this).transition().duration(0).remove(),n.select(document).on(&quot;mouseup&quot;,null),a.edit.call(t,o)})).on(&quot;focus&quot;,(function(){var t=this;r._editing=!0,n.select(document).on(&quot;mouseup&quot;,(function(){if(n.event.target===t)return!1;document.activeElement===o.node()&amp;&amp;o.node().blur()}))})).on(&quot;keyup&quot;,(function(){27===n.event.which?(r._editing=!1,t.style({opacity:1}),n.select(this).style({opacity:0}).on(&quot;blur&quot;,(function(){return!1})).transition().remove(),a.cancel.call(t,this.textContent)):(a.input.call(t,this.textContent),n.select(this).call(C(t,i,e)))})).on(&quot;keydown&quot;,(function(){13===n.event.which&amp;&amp;this.blur()})).call(l)}(),t.style({opacity:0});var i,s=o.attr(&quot;class&quot;);(i=s?&quot;.&quot;+s.split(&quot; &quot;)[0]+&quot;-math-group&quot;:&quot;[class*=-math-group]&quot;)&amp;&amp;n.select(t.node().parentNode).select(i).style({opacity:0})}function l(t){var e=t.node(),r=document.createRange();r.selectNodeContents(e);var n=window.getSelection();n.removeAllRanges(),n.addRange(r),e.focus()}return e.immediate?s():o.on(&quot;click&quot;,s),n.rebind(t,a,&quot;on&quot;)}},{&quot;../constants/alignment&quot;:745,&quot;../constants/xmlns_namespaces&quot;:754,&quot;../lib&quot;:778,d3:169}],804:[function(t,e,r){&quot;use strict&quot;;var n={};function i(t){t&amp;&amp;null!==t.timer&amp;&amp;(clearTimeout(t.timer),t.timer=null)}r.throttle=function(t,e,r){var a=n[t],o=Date.now();if(!a){for(var s in n)n[s].ts&lt;o-6e4&amp;&amp;delete n[s];a=n[t]={ts:0,timer:null}}function l(){r(),a.ts=Date.now(),a.onDone&amp;&amp;(a.onDone(),a.onDone=null)}i(a),o&gt;a.ts+e?l():a.timer=setTimeout((function(){l(),a.timer=null}),e)},r.done=function(t){var e=n[t];return e&amp;&amp;e.timer?new Promise((function(t){var r=e.onDone;e.onDone=function(){r&amp;&amp;r(),t(),e.onDone=null}})):Promise.resolve()},r.clear=function(t){if(t)i(n[t]),delete n[t];else for(var e in n)r.clear(e)}},{}],805:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports=function(t,e){if(t&gt;0)return Math.log(t)/Math.LN10;var r=Math.log(Math.min(e[0],e[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(e[0],e[1]))/Math.LN10-6),r}},{&quot;fast-isnumeric&quot;:241}],806:[function(t,e,r){&quot;use strict&quot;;var n=e.exports={},i=t(&quot;../plots/geo/constants&quot;).locationmodeToLayer,a=t(&quot;topojson-client&quot;).feature;n.getTopojsonName=function(t){return[t.scope.replace(/ /g,&quot;-&quot;),&quot;_&quot;,t.resolution.toString(),&quot;m&quot;].join(&quot;&quot;)},n.getTopojsonPath=function(t,e){return t+e+&quot;.json&quot;},n.getTopojsonFeatures=function(t,e){var r=i[t.locationmode],n=e.objects[r];return a(e,n).features}},{&quot;../plots/geo/constants&quot;:858,&quot;topojson-client&quot;:579}],807:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;locale&quot;,name:&quot;en-US&quot;,dictionary:{&quot;Click to enter Colorscale title&quot;:&quot;Click to enter Colorscale title&quot;},format:{date:&quot;%m/%d/%Y&quot;}}},{}],808:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;locale&quot;,name:&quot;en&quot;,dictionary:{&quot;Click to enter Colorscale title&quot;:&quot;Click to enter Colourscale title&quot;},format:{days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],periods:[&quot;AM&quot;,&quot;PM&quot;],dateTime:&quot;%a %b %e %X %Y&quot;,date:&quot;%d/%m/%Y&quot;,time:&quot;%H:%M:%S&quot;,decimal:&quot;.&quot;,thousands:&quot;,&quot;,grouping:[3],currency:[&quot;$&quot;,&quot;&quot;],year:&quot;%Y&quot;,month:&quot;%b %Y&quot;,dayMonth:&quot;%b %-d&quot;,dayMonthYear:&quot;%b %-d, %Y&quot;}}},{}],809:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);e.exports=function(t){for(var e,r,i=n.layoutArrayContainers,a=n.layoutArrayRegexes,o=t.split(&quot;[&quot;)[0],s=0;s&lt;a.length;s++)if((r=t.match(a[s]))&amp;&amp;0===r.index){e=r[0];break}if(e||(e=i[i.indexOf(o)]),!e)return!1;var l=t.substr(e.length);return l?!!(r=l.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&amp;&amp;{array:e,index:Number(r[1]),property:r[3]||&quot;&quot;}:{array:e,index:&quot;&quot;,property:&quot;&quot;}}},{&quot;../registry&quot;:911}],810:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=n.extendFlat,a=n.isPlainObject,o={valType:&quot;flaglist&quot;,extras:[&quot;none&quot;],flags:[&quot;calc&quot;,&quot;clearAxisTypes&quot;,&quot;plot&quot;,&quot;style&quot;,&quot;markerSize&quot;,&quot;colorbars&quot;]},s={valType:&quot;flaglist&quot;,extras:[&quot;none&quot;],flags:[&quot;calc&quot;,&quot;plot&quot;,&quot;legend&quot;,&quot;ticks&quot;,&quot;axrange&quot;,&quot;layoutstyle&quot;,&quot;modebar&quot;,&quot;camera&quot;,&quot;arraydraw&quot;,&quot;colorbars&quot;]},l=o.flags.slice().concat([&quot;fullReplot&quot;]),c=s.flags.slice().concat(&quot;layoutReplot&quot;);function u(t){for(var e={},r=0;r&lt;t.length;r++)e[t[r]]=!1;return e}function f(t,e,r){var n=i({},t);for(var o in n){var s=n[o];a(s)&amp;&amp;(n[o]=h(s,e,r,o))}return&quot;from-root&quot;===r&amp;&amp;(n.editType=e),n}function h(t,e,r,n){if(t.valType){var a=i({},t);if(a.editType=e,Array.isArray(t.items)){a.items=new Array(t.items.length);for(var o=0;o&lt;t.items.length;o++)a.items[o]=h(t.items[o],e,&quot;from-root&quot;)}return a}return f(t,e,&quot;_&quot;===n.charAt(0)?&quot;nested&quot;:&quot;from-root&quot;)}e.exports={traces:o,layout:s,traceFlags:function(){return u(l)},layoutFlags:function(){return u(c)},update:function(t,e){var r=e.editType;if(r&amp;&amp;&quot;none&quot;!==r)for(var n=r.split(&quot;+&quot;),i=0;i&lt;n.length;i++)t[n[i]]=!0},overrideAll:f}},{&quot;../lib&quot;:778}],811:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;gl-mat4/fromQuat&quot;),a=t(&quot;../registry&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../plots/plots&quot;),l=t(&quot;../plots/cartesian/axis_ids&quot;),c=t(&quot;../components/color&quot;),u=l.cleanId,f=l.getFromTrace,h=a.traceIs;function p(t,e){var r=t[e],n=e.charAt(0);r&amp;&amp;&quot;paper&quot;!==r&amp;&amp;(t[e]=u(r,n,!0))}function d(t){function e(e,r){var n=t[e],i=t.title&amp;&amp;t.title[r];n&amp;&amp;!i&amp;&amp;(t.title||(t.title={}),t.title[r]=t[e],delete t[e])}t&amp;&amp;(&quot;string&quot;!=typeof t.title&amp;&amp;&quot;number&quot;!=typeof t.title||(t.title={text:t.title}),e(&quot;titlefont&quot;,&quot;font&quot;),e(&quot;titleposition&quot;,&quot;position&quot;),e(&quot;titleside&quot;,&quot;side&quot;),e(&quot;titleoffset&quot;,&quot;offset&quot;))}function g(t){if(!o.isPlainObject(t))return!1;var e=t.name;return delete t.name,delete t.showlegend,(&quot;string&quot;==typeof e||&quot;number&quot;==typeof e)&amp;&amp;String(e)}function m(t,e,r,n){if(r&amp;&amp;!n)return t;if(n&amp;&amp;!r)return e;if(!t.trim())return e;if(!e.trim())return t;var i,a=Math.min(t.length,e.length);for(i=0;i&lt;a&amp;&amp;t.charAt(i)===e.charAt(i);i++);return t.substr(0,i).trim()}function v(t){var e=&quot;middle&quot;,r=&quot;center&quot;;return&quot;string&quot;==typeof t&amp;&amp;(-1!==t.indexOf(&quot;top&quot;)?e=&quot;top&quot;:-1!==t.indexOf(&quot;bottom&quot;)&amp;&amp;(e=&quot;bottom&quot;),-1!==t.indexOf(&quot;left&quot;)?r=&quot;left&quot;:-1!==t.indexOf(&quot;right&quot;)&amp;&amp;(r=&quot;right&quot;)),e+&quot; &quot;+r}function y(t,e){return e in t&amp;&amp;&quot;object&quot;==typeof t[e]&amp;&amp;0===Object.keys(t[e]).length}r.clearPromiseQueue=function(t){Array.isArray(t._promises)&amp;&amp;t._promises.length&gt;0&amp;&amp;o.log(&quot;Clearing previous rejected promises from queue.&quot;),t._promises=[]},r.cleanLayout=function(t){var e,n;t||(t={}),t.xaxis1&amp;&amp;(t.xaxis||(t.xaxis=t.xaxis1),delete t.xaxis1),t.yaxis1&amp;&amp;(t.yaxis||(t.yaxis=t.yaxis1),delete t.yaxis1),t.scene1&amp;&amp;(t.scene||(t.scene=t.scene1),delete t.scene1);var a=(s.subplotsRegistry.cartesian||{}).attrRegex,l=(s.subplotsRegistry.polar||{}).attrRegex,f=(s.subplotsRegistry.ternary||{}).attrRegex,h=(s.subplotsRegistry.gl3d||{}).attrRegex,g=Object.keys(t);for(e=0;e&lt;g.length;e++){var m=g[e];if(a&amp;&amp;a.test(m)){var v=t[m];v.anchor&amp;&amp;&quot;free&quot;!==v.anchor&amp;&amp;(v.anchor=u(v.anchor)),v.overlaying&amp;&amp;(v.overlaying=u(v.overlaying)),v.type||(v.isdate?v.type=&quot;date&quot;:v.islog?v.type=&quot;log&quot;:!1===v.isdate&amp;&amp;!1===v.islog&amp;&amp;(v.type=&quot;linear&quot;)),&quot;withzero&quot;!==v.autorange&amp;&amp;&quot;tozero&quot;!==v.autorange||(v.autorange=!0,v.rangemode=&quot;tozero&quot;),delete v.islog,delete v.isdate,delete v.categories,y(v,&quot;domain&quot;)&amp;&amp;delete v.domain,void 0!==v.autotick&amp;&amp;(void 0===v.tickmode&amp;&amp;(v.tickmode=v.autotick?&quot;auto&quot;:&quot;linear&quot;),delete v.autotick),d(v)}else if(l&amp;&amp;l.test(m)){d(t[m].radialaxis)}else if(f&amp;&amp;f.test(m)){var x=t[m];d(x.aaxis),d(x.baxis),d(x.caxis)}else if(h&amp;&amp;h.test(m)){var b=t[m],_=b.cameraposition;if(Array.isArray(_)&amp;&amp;4===_[0].length){var w=_[0],T=_[1],k=_[2],M=i([],w),A=[];for(n=0;n&lt;3;++n)A[n]=T[n]+k*M[2+4*n];b.camera={eye:{x:A[0],y:A[1],z:A[2]},center:{x:T[0],y:T[1],z:T[2]},up:{x:0,y:0,z:1}},delete b.cameraposition}d(b.xaxis),d(b.yaxis),d(b.zaxis)}}var S=Array.isArray(t.annotations)?t.annotations.length:0;for(e=0;e&lt;S;e++){var E=t.annotations[e];o.isPlainObject(E)&amp;&amp;(E.ref&amp;&amp;(&quot;paper&quot;===E.ref?(E.xref=&quot;paper&quot;,E.yref=&quot;paper&quot;):&quot;data&quot;===E.ref&amp;&amp;(E.xref=&quot;x&quot;,E.yref=&quot;y&quot;),delete E.ref),p(E,&quot;xref&quot;),p(E,&quot;yref&quot;))}var C=Array.isArray(t.shapes)?t.shapes.length:0;for(e=0;e&lt;C;e++){var L=t.shapes[e];o.isPlainObject(L)&amp;&amp;(p(L,&quot;xref&quot;),p(L,&quot;yref&quot;))}var I=Array.isArray(t.images)?t.images.length:0;for(e=0;e&lt;I;e++){var P=t.images[e];o.isPlainObject(P)&amp;&amp;(p(P,&quot;xref&quot;),p(P,&quot;yref&quot;))}var z=t.legend;return z&amp;&amp;(z.x&gt;3?(z.x=1.02,z.xanchor=&quot;left&quot;):z.x&lt;-2&amp;&amp;(z.x=-.02,z.xanchor=&quot;right&quot;),z.y&gt;3?(z.y=1.02,z.yanchor=&quot;bottom&quot;):z.y&lt;-2&amp;&amp;(z.y=-.02,z.yanchor=&quot;top&quot;)),d(t),&quot;rotate&quot;===t.dragmode&amp;&amp;(t.dragmode=&quot;orbit&quot;),c.clean(t),t.template&amp;&amp;t.template.layout&amp;&amp;r.cleanLayout(t.template.layout),t},r.cleanData=function(t){for(var e=0;e&lt;t.length;e++){var n,i=t[e];if(&quot;histogramy&quot;===i.type&amp;&amp;&quot;xbins&quot;in i&amp;&amp;!(&quot;ybins&quot;in i)&amp;&amp;(i.ybins=i.xbins,delete i.xbins),i.error_y&amp;&amp;&quot;opacity&quot;in i.error_y){var l=c.defaults,f=i.error_y.color||(h(i,&quot;bar&quot;)?c.defaultLine:l[e%l.length]);i.error_y.color=c.addOpacity(c.rgb(f),c.opacity(f)*i.error_y.opacity),delete i.error_y.opacity}if(&quot;bardir&quot;in i&amp;&amp;(&quot;h&quot;!==i.bardir||!h(i,&quot;bar&quot;)&amp;&amp;&quot;histogram&quot;!==i.type.substr(0,9)||(i.orientation=&quot;h&quot;,r.swapXYData(i)),delete i.bardir),&quot;histogramy&quot;===i.type&amp;&amp;r.swapXYData(i),&quot;histogramx&quot;!==i.type&amp;&amp;&quot;histogramy&quot;!==i.type||(i.type=&quot;histogram&quot;),&quot;scl&quot;in i&amp;&amp;!(&quot;colorscale&quot;in i)&amp;&amp;(i.colorscale=i.scl,delete i.scl),&quot;reversescl&quot;in i&amp;&amp;!(&quot;reversescale&quot;in i)&amp;&amp;(i.reversescale=i.reversescl,delete i.reversescl),i.xaxis&amp;&amp;(i.xaxis=u(i.xaxis,&quot;x&quot;)),i.yaxis&amp;&amp;(i.yaxis=u(i.yaxis,&quot;y&quot;)),h(i,&quot;gl3d&quot;)&amp;&amp;i.scene&amp;&amp;(i.scene=s.subplotsRegistry.gl3d.cleanId(i.scene)),!h(i,&quot;pie-like&quot;)&amp;&amp;!h(i,&quot;bar-like&quot;))if(Array.isArray(i.textposition))for(n=0;n&lt;i.textposition.length;n++)i.textposition[n]=v(i.textposition[n]);else i.textposition&amp;&amp;(i.textposition=v(i.textposition));var p=a.getModule(i);if(p&amp;&amp;p.colorbar){var x=p.colorbar.container,b=x?i[x]:i;b&amp;&amp;b.colorscale&amp;&amp;(&quot;YIGnBu&quot;===b.colorscale&amp;&amp;(b.colorscale=&quot;YlGnBu&quot;),&quot;YIOrRd&quot;===b.colorscale&amp;&amp;(b.colorscale=&quot;YlOrRd&quot;))}if(&quot;surface&quot;===i.type&amp;&amp;o.isPlainObject(i.contours)){var _=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(n=0;n&lt;_.length;n++){var w=i.contours[_[n]];o.isPlainObject(w)&amp;&amp;(w.highlightColor&amp;&amp;(w.highlightcolor=w.highlightColor,delete w.highlightColor),w.highlightWidth&amp;&amp;(w.highlightwidth=w.highlightWidth,delete w.highlightWidth))}}if(&quot;candlestick&quot;===i.type||&quot;ohlc&quot;===i.type){var T=!1!==(i.increasing||{}).showlegend,k=!1!==(i.decreasing||{}).showlegend,M=g(i.increasing),A=g(i.decreasing);if(!1!==M&amp;&amp;!1!==A){var S=m(M,A,T,k);S&amp;&amp;(i.name=S)}else!M&amp;&amp;!A||i.name||(i.name=M||A)}if(Array.isArray(i.transforms)){var E=i.transforms;for(n=0;n&lt;E.length;n++){var C=E[n];if(o.isPlainObject(C))switch(C.type){case&quot;filter&quot;:C.filtersrc&amp;&amp;(C.target=C.filtersrc,delete C.filtersrc),C.calendar&amp;&amp;(C.valuecalendar||(C.valuecalendar=C.calendar),delete C.calendar);break;case&quot;groupby&quot;:if(C.styles=C.styles||C.style,C.styles&amp;&amp;!Array.isArray(C.styles)){var L=C.styles,I=Object.keys(L);C.styles=[];for(var P=0;P&lt;I.length;P++)C.styles.push({target:I[P],value:L[I[P]]})}}}}y(i,&quot;line&quot;)&amp;&amp;delete i.line,&quot;marker&quot;in i&amp;&amp;(y(i.marker,&quot;line&quot;)&amp;&amp;delete i.marker.line,y(i,&quot;marker&quot;)&amp;&amp;delete i.marker),c.clean(i),i.autobinx&amp;&amp;(delete i.autobinx,delete i.xbins),i.autobiny&amp;&amp;(delete i.autobiny,delete i.ybins),d(i),i.colorbar&amp;&amp;d(i.colorbar),i.marker&amp;&amp;i.marker.colorbar&amp;&amp;d(i.marker.colorbar),i.line&amp;&amp;i.line.colorbar&amp;&amp;d(i.line.colorbar),i.aaxis&amp;&amp;d(i.aaxis),i.baxis&amp;&amp;d(i.baxis)}},r.swapXYData=function(t){var e;if(o.swapAttrs(t,[&quot;?&quot;,&quot;?0&quot;,&quot;d?&quot;,&quot;?bins&quot;,&quot;nbins?&quot;,&quot;autobin?&quot;,&quot;?src&quot;,&quot;error_?&quot;]),Array.isArray(t.z)&amp;&amp;Array.isArray(t.z[0])&amp;&amp;(t.transpose?delete t.transpose:t.transpose=!0),t.error_x&amp;&amp;t.error_y){var r=t.error_y,n=&quot;copy_ystyle&quot;in r?r.copy_ystyle:!(r.color||r.thickness||r.width);o.swapAttrs(t,[&quot;error_?.copy_ystyle&quot;]),n&amp;&amp;o.swapAttrs(t,[&quot;error_?.color&quot;,&quot;error_?.thickness&quot;,&quot;error_?.width&quot;])}if(&quot;string&quot;==typeof t.hoverinfo){var i=t.hoverinfo.split(&quot;+&quot;);for(e=0;e&lt;i.length;e++)&quot;x&quot;===i[e]?i[e]=&quot;y&quot;:&quot;y&quot;===i[e]&amp;&amp;(i[e]=&quot;x&quot;);t.hoverinfo=i.join(&quot;+&quot;)}},r.coerceTraceIndices=function(t,e){if(n(e))return[e];if(!Array.isArray(e)||!e.length)return t.data.map((function(t,e){return e}));if(Array.isArray(e)){for(var r=[],i=0;i&lt;e.length;i++)o.isIndex(e[i],t.data.length)?r.push(e[i]):o.warn(&quot;trace index (&quot;,e[i],&quot;) is not a number or is out of bounds&quot;);return r}return e},r.manageArrayContainers=function(t,e,r){var i=t.obj,a=t.parts,s=a.length,l=a[s-1],c=n(l);if(c&amp;&amp;null===e){var u=a.slice(0,s-1).join(&quot;.&quot;);o.nestedProperty(i,u).get().splice(l,1)}else c&amp;&amp;void 0===t.get()?(void 0===t.get()&amp;&amp;(r[t.astr]=null),t.set(e)):t.set(e)};var x=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function b(t){var e=t.search(x);if(e&gt;0)return t.substr(0,e)}r.hasParent=function(t,e){for(var r=b(e);r;){if(r in t)return!0;r=b(r)}return!1};var _=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];r.clearAxisTypes=function(t,e,r){for(var n=0;n&lt;e.length;n++)for(var i=t._fullData[n],a=0;a&lt;3;a++){var s=f(t,i,_[a]);if(s&amp;&amp;&quot;log&quot;!==s.type){var l=s._name,c=s._id.substr(1);if(&quot;scene&quot;===c.substr(0,5)){if(void 0!==r[c])continue;l=c+&quot;.&quot;+l}var u=l+&quot;.type&quot;;void 0===r[l]&amp;&amp;void 0===r[u]&amp;&amp;o.nestedProperty(t.layout,u).set(null)}}}},{&quot;../components/color&quot;:643,&quot;../lib&quot;:778,&quot;../plots/cartesian/axis_ids&quot;:831,&quot;../plots/plots&quot;:891,&quot;../registry&quot;:911,&quot;fast-isnumeric&quot;:241,&quot;gl-mat4/fromQuat&quot;:282}],812:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./plot_api&quot;);r.plot=n.plot,r.newPlot=n.newPlot,r.restyle=n.restyle,r.relayout=n.relayout,r.redraw=n.redraw,r.update=n.update,r._guiRestyle=n._guiRestyle,r._guiRelayout=n._guiRelayout,r._guiUpdate=n._guiUpdate,r._storeDirectGUIEdit=n._storeDirectGUIEdit,r.react=n.react,r.extendTraces=n.extendTraces,r.prependTraces=n.prependTraces,r.addTraces=n.addTraces,r.deleteTraces=n.deleteTraces,r.moveTraces=n.moveTraces,r.purge=n.purge,r.addFrames=n.addFrames,r.deleteFrames=n.deleteFrames,r.animate=n.animate,r.setPlotConfig=n.setPlotConfig,r.toImage=t(&quot;./to_image&quot;),r.validate=t(&quot;./validate&quot;),r.downloadImage=t(&quot;../snapshot/download&quot;);var i=t(&quot;./template_api&quot;);r.makeTemplate=i.makeTemplate,r.validateTemplate=i.validateTemplate},{&quot;../snapshot/download&quot;:913,&quot;./plot_api&quot;:814,&quot;./template_api&quot;:819,&quot;./to_image&quot;:820,&quot;./validate&quot;:821}],813:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/is_plain_object&quot;),i=t(&quot;../lib/noop&quot;),a=t(&quot;../lib/loggers&quot;),o=t(&quot;../lib/search&quot;).sorterAsc,s=t(&quot;../registry&quot;);r.containerArrayMatch=t(&quot;./container_array_match&quot;);var l=r.isAddVal=function(t){return&quot;add&quot;===t||n(t)},c=r.isRemoveVal=function(t){return null===t||&quot;remove&quot;===t};r.applyContainerArrayChanges=function(t,e,r,n,u){var f=e.astr,h=s.getComponentMethod(f,&quot;supplyLayoutDefaults&quot;),p=s.getComponentMethod(f,&quot;draw&quot;),d=s.getComponentMethod(f,&quot;drawOne&quot;),g=n.replot||n.recalc||h===i||p===i,m=t.layout,v=t._fullLayout;if(r[&quot;&quot;]){Object.keys(r).length&gt;1&amp;&amp;a.warn(&quot;Full array edits are incompatible with other edits&quot;,f);var y=r[&quot;&quot;][&quot;&quot;];if(c(y))e.set(null);else{if(!Array.isArray(y))return a.warn(&quot;Unrecognized full array edit value&quot;,f,y),!0;e.set(y)}return!g&amp;&amp;(h(m,v),p(t),!0)}var x,b,_,w,T,k,M,A,S=Object.keys(r).map(Number).sort(o),E=e.get(),C=E||[],L=u(v,f).get(),I=[],P=-1,z=C.length;for(x=0;x&lt;S.length;x++)if(w=r[_=S[x]],T=Object.keys(w),k=w[&quot;&quot;],M=l(k),_&lt;0||_&gt;C.length-(M?0:1))a.warn(&quot;index out of range&quot;,f,_);else if(void 0!==k)T.length&gt;1&amp;&amp;a.warn(&quot;Insertion &amp; removal are incompatible with edits to the same index.&quot;,f,_),c(k)?I.push(_):M?(&quot;add&quot;===k&amp;&amp;(k={}),C.splice(_,0,k),L&amp;&amp;L.splice(_,0,{})):a.warn(&quot;Unrecognized full object edit value&quot;,f,_,k),-1===P&amp;&amp;(P=_);else for(b=0;b&lt;T.length;b++)A=f+&quot;[&quot;+_+&quot;].&quot;,u(C[_],T[b],A).set(w[T[b]]);for(x=I.length-1;x&gt;=0;x--)C.splice(I[x],1),L&amp;&amp;L.splice(I[x],1);if(C.length?E||e.set(C):e.set(null),g)return!1;if(h(m,v),d!==i){var O;if(-1===P)O=S;else{for(z=Math.max(C.length,z),O=[],x=0;x&lt;S.length&amp;&amp;!((_=S[x])&gt;=P);x++)O.push(_);for(x=P;x&lt;z;x++)O.push(x)}for(x=0;x&lt;O.length;x++)d(t,O[x])}else p(t);return!0}},{&quot;../lib/is_plain_object&quot;:779,&quot;../lib/loggers&quot;:782,&quot;../lib/noop&quot;:787,&quot;../lib/search&quot;:798,&quot;../registry&quot;:911,&quot;./container_array_match&quot;:809}],814:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;has-hover&quot;),o=t(&quot;../lib&quot;),s=o.nestedProperty,l=t(&quot;../lib/events&quot;),c=t(&quot;../lib/queue&quot;),u=t(&quot;../registry&quot;),f=t(&quot;./plot_schema&quot;),h=t(&quot;../plots/plots&quot;),p=t(&quot;../plots/polar/legacy&quot;),d=t(&quot;../plots/cartesian/axes&quot;),g=t(&quot;../components/drawing&quot;),m=t(&quot;../components/color&quot;),v=t(&quot;../plots/cartesian/graph_interact&quot;).initInteractions,y=t(&quot;../constants/xmlns_namespaces&quot;),x=t(&quot;../lib/svg_text_utils&quot;),b=t(&quot;../plots/cartesian/select&quot;).clearSelect,_=t(&quot;./plot_config&quot;).dfltConfig,w=t(&quot;./manage_arrays&quot;),T=t(&quot;./helpers&quot;),k=t(&quot;./subroutines&quot;),M=t(&quot;./edit_types&quot;),A=t(&quot;../plots/cartesian/constants&quot;).AX_NAME_PATTERN,S=0;function E(t){var e=t._fullLayout;e._redrawFromAutoMarginCount?e._redrawFromAutoMarginCount--:t.emit(&quot;plotly_afterplot&quot;)}function C(t,e){try{t._fullLayout._paper.style(&quot;background&quot;,e)}catch(t){o.error(t)}}function L(t,e){C(t,m.combine(e,&quot;white&quot;))}function I(t,e){if(!t._context){t._context=o.extendDeep({},_);var r=n.select(&quot;base&quot;);t._context._baseUrl=r.size()&amp;&amp;r.attr(&quot;href&quot;)?window.location.href.split(&quot;#&quot;)[0]:&quot;&quot;}var i,s,l,c=t._context;if(e){for(s=Object.keys(e),i=0;i&lt;s.length;i++)&quot;editable&quot;!==(l=s[i])&amp;&amp;&quot;edits&quot;!==l&amp;&amp;l in c&amp;&amp;(&quot;setBackground&quot;===l&amp;&amp;&quot;opaque&quot;===e[l]?c[l]=L:c[l]=e[l]);e.plot3dPixelRatio&amp;&amp;!c.plotGlPixelRatio&amp;&amp;(c.plotGlPixelRatio=c.plot3dPixelRatio);var u=e.editable;if(void 0!==u)for(c.editable=u,s=Object.keys(c.edits),i=0;i&lt;s.length;i++)c.edits[s[i]]=u;if(e.edits)for(s=Object.keys(e.edits),i=0;i&lt;s.length;i++)(l=s[i])in c.edits&amp;&amp;(c.edits[l]=e.edits[l]);c._exportedPlot=e._exportedPlot}c.staticPlot&amp;&amp;(c.editable=!1,c.edits={},c.autosizable=!1,c.scrollZoom=!1,c.doubleClick=!1,c.showTips=!1,c.showLink=!1,c.displayModeBar=!1),&quot;hover&quot;!==c.displayModeBar||a||(c.displayModeBar=!0),&quot;transparent&quot;!==c.setBackground&amp;&amp;&quot;function&quot;==typeof c.setBackground||(c.setBackground=C),c._hasZeroHeight=c._hasZeroHeight||0===t.clientHeight,c._hasZeroWidth=c._hasZeroWidth||0===t.clientWidth;var f=c.scrollZoom,h=c._scrollZoom={};if(!0===f)h.cartesian=1,h.gl3d=1,h.geo=1,h.mapbox=1;else if(&quot;string&quot;==typeof f){var p=f.split(&quot;+&quot;);for(i=0;i&lt;p.length;i++)h[p[i]]=1}else!1!==f&amp;&amp;(h.gl3d=1,h.geo=1,h.mapbox=1)}function P(t,e){var r,n,i=e+1,a=[];for(r=0;r&lt;t.length;r++)(n=t[r])&lt;0?a.push(i+n):a.push(n);return a}function z(t,e,r){var n,i;for(n=0;n&lt;e.length;n++){if((i=e[n])!==parseInt(i,10))throw new Error(&quot;all values in &quot;+r+&quot; must be integers&quot;);if(i&gt;=t.data.length||i&lt;-t.data.length)throw new Error(r+&quot; must be valid indices for gd.data.&quot;);if(e.indexOf(i,n+1)&gt;-1||i&gt;=0&amp;&amp;e.indexOf(-t.data.length+i)&gt;-1||i&lt;0&amp;&amp;e.indexOf(t.data.length+i)&gt;-1)throw new Error(&quot;each index in &quot;+r+&quot; must be unique.&quot;)}}function O(t,e,r){if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array.&quot;);if(&quot;undefined&quot;==typeof e)throw new Error(&quot;currentIndices is a required argument.&quot;);if(Array.isArray(e)||(e=[e]),z(t,e,&quot;currentIndices&quot;),&quot;undefined&quot;==typeof r||Array.isArray(r)||(r=[r]),&quot;undefined&quot;!=typeof r&amp;&amp;z(t,r,&quot;newIndices&quot;),&quot;undefined&quot;!=typeof r&amp;&amp;e.length!==r.length)throw new Error(&quot;current and new indices must be of equal length.&quot;)}function D(t,e,r,n,a){!function(t,e,r,n){var i=o.isPlainObject(n);if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array&quot;);if(!o.isPlainObject(e))throw new Error(&quot;update must be a key:value object&quot;);if(&quot;undefined&quot;==typeof r)throw new Error(&quot;indices must be an integer or array of integers&quot;);for(var a in z(t,r,&quot;indices&quot;),e){if(!Array.isArray(e[a])||e[a].length!==r.length)throw new Error(&quot;attribute &quot;+a+&quot; must be an array of length equal to indices array length&quot;);if(i&amp;&amp;(!(a in n)||!Array.isArray(n[a])||n[a].length!==e[a].length))throw new Error(&quot;when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object&quot;)}}(t,e,r,n);for(var l=function(t,e,r,n){var a,l,c,u,f,h=o.isPlainObject(n),p=[];for(var d in Array.isArray(r)||(r=[r]),r=P(r,t.data.length-1),e)for(var g=0;g&lt;r.length;g++){if(a=t.data[r[g]],l=(c=s(a,d)).get(),u=e[d][g],!o.isArrayOrTypedArray(u))throw new Error(&quot;attribute: &quot;+d+&quot; index: &quot;+g+&quot; must be an array&quot;);if(!o.isArrayOrTypedArray(l))throw new Error(&quot;cannot extend missing or non-array attribute: &quot;+d);if(l.constructor!==u.constructor)throw new Error(&quot;cannot extend array with an array of a different type: &quot;+d);f=h?n[d][g]:n,i(f)||(f=-1),p.push({prop:c,target:l,insert:u,maxp:Math.floor(f)})}return p}(t,e,r,n),c={},u={},f=0;f&lt;l.length;f++){var h=l[f].prop,p=l[f].maxp,d=a(l[f].target,l[f].insert,p);h.set(d[0]),Array.isArray(c[h.astr])||(c[h.astr]=[]),c[h.astr].push(d[1]),Array.isArray(u[h.astr])||(u[h.astr]=[]),u[h.astr].push(l[f].target.length)}return{update:c,maxPoints:u}}function R(t,e){var r=new t.constructor(t.length+e.length);return r.set(t),r.set(e,t.length),r}function F(t,e,n,i){t=o.getGraphDiv(t),T.clearPromiseQueue(t);var a={};if(&quot;string&quot;==typeof e)a[e]=n;else{if(!o.isPlainObject(e))return o.warn(&quot;Restyle fail.&quot;,e,n,i),Promise.reject();a=o.extendFlat({},e),void 0===i&amp;&amp;(i=n)}Object.keys(a).length&amp;&amp;(t.changed=!0);var s=T.coerceTraceIndices(t,i),l=U(t,a,s),u=l.flags;u.calc&amp;&amp;(t.calcdata=void 0),u.clearAxisTypes&amp;&amp;T.clearAxisTypes(t,s,{});var f=[];u.fullReplot?f.push(r.plot):(f.push(h.previousPromises),h.supplyDefaults(t),u.markerSize&amp;&amp;(h.doCalcdata(t),G(f)),u.style&amp;&amp;f.push(k.doTraceStyle),u.colorbars&amp;&amp;f.push(k.doColorBars),f.push(E)),f.push(h.rehover,h.redrag),c.add(t,F,[t,l.undoit,l.traces],F,[t,l.redoit,l.traces]);var p=o.syncOrAsync(f,t);return p&amp;&amp;p.then||(p=Promise.resolve()),p.then((function(){return t.emit(&quot;plotly_restyle&quot;,l.eventData),t}))}function B(t){return void 0===t?null:t}function N(t,e){return e?function(e,r,n){var i=s(e,r),a=i.set;return i.set=function(e){j((n||&quot;&quot;)+r,i.get(),e,t),a(e)},i}:s}function j(t,e,r,n){if(Array.isArray(e)||Array.isArray(r))for(var i=Array.isArray(e)?e:[],a=Array.isArray(r)?r:[],s=Math.max(i.length,a.length),l=0;l&lt;s;l++)j(t+&quot;[&quot;+l+&quot;]&quot;,i[l],a[l],n);else if(o.isPlainObject(e)||o.isPlainObject(r)){var c=o.isPlainObject(e)?e:{},u=o.isPlainObject(r)?r:{},f=o.extendFlat({},c,u);for(var h in f)j(t+&quot;.&quot;+h,c[h],u[h],n)}else void 0===n[t]&amp;&amp;(n[t]=B(e))}function U(t,e,r){var n,i=t._fullLayout,a=t._fullData,l=t.data,c=i._guiEditing,p=N(i._preGUI,c),g=o.extendDeepAll({},e);V(e);var m,v=M.traceFlags(),y={},x={};function b(){return r.map((function(){}))}function _(t){var e=d.id2name(t);-1===m.indexOf(e)&amp;&amp;m.push(e)}function w(t){return&quot;LAYOUT&quot;+t+&quot;.autorange&quot;}function k(t){return&quot;LAYOUT&quot;+t+&quot;.range&quot;}function A(t){for(var e=t;e&lt;a.length;e++)if(a[e]._input===l[t])return a[e]}function S(n,a,o){if(Array.isArray(n))n.forEach((function(t){S(t,a,o)}));else if(!(n in e)&amp;&amp;!T.hasParent(e,n)){var s;if(&quot;LAYOUT&quot;===n.substr(0,6))s=p(t.layout,n.replace(&quot;LAYOUT&quot;,&quot;&quot;));else{var u=r[o];s=N(i._tracePreGUI[A(u)._fullInput.uid],c)(l[u],n)}n in x||(x[n]=b()),void 0===x[n][o]&amp;&amp;(x[n][o]=B(s.get())),void 0!==a&amp;&amp;s.set(a)}}function E(t){return function(e){return a[e][t]}}function C(t){return function(e,n){return!1===e?a[r[n]][t]:null}}for(var L in e){if(T.hasParent(e,L))throw new Error(&quot;cannot set &quot;+L+&quot; and a parent attribute simultaneously&quot;);var I,P,z,O,D,R,F=e[L];if(&quot;autobinx&quot;!==L&amp;&amp;&quot;autobiny&quot;!==L||(L=L.charAt(L.length-1)+&quot;bins&quot;,F=Array.isArray(F)?F.map(C(L)):!1===F?r.map(E(L)):null),y[L]=F,&quot;LAYOUT&quot;!==L.substr(0,6)){for(x[L]=b(),n=0;n&lt;r.length;n++){if(I=l[r[n]],P=A(r[n]),O=(z=N(i._tracePreGUI[P._fullInput.uid],c)(I,L)).get(),void 0!==(D=Array.isArray(F)?F[n%F.length]:F)){var j=z.parts[z.parts.length-1],U=L.substr(0,L.length-j.length-1),q=U?U+&quot;.&quot;:&quot;&quot;,H=U?s(P,U).get():P;if((R=f.getTraceValObject(P,z.parts))&amp;&amp;R.impliedEdits&amp;&amp;null!==D)for(var G in R.impliedEdits)S(o.relativeAttr(L,G),R.impliedEdits[G],n);else if(&quot;thicknessmode&quot;!==j&amp;&amp;&quot;lenmode&quot;!==j||O===D||&quot;fraction&quot;!==D&amp;&amp;&quot;pixels&quot;!==D||!H){if(&quot;type&quot;===L&amp;&amp;(&quot;pie&quot;===D!=(&quot;pie&quot;===O)||&quot;funnelarea&quot;===D!=(&quot;funnelarea&quot;===O))){var Y=&quot;x&quot;,W=&quot;y&quot;;&quot;bar&quot;!==D&amp;&amp;&quot;bar&quot;!==O||&quot;h&quot;!==I.orientation||(Y=&quot;y&quot;,W=&quot;x&quot;),o.swapAttrs(I,[&quot;?&quot;,&quot;?src&quot;],&quot;labels&quot;,Y),o.swapAttrs(I,[&quot;d?&quot;,&quot;?0&quot;],&quot;label&quot;,Y),o.swapAttrs(I,[&quot;?&quot;,&quot;?src&quot;],&quot;values&quot;,W),&quot;pie&quot;===O||&quot;funnelarea&quot;===O?(s(I,&quot;marker.color&quot;).set(s(I,&quot;marker.colors&quot;).get()),i._pielayer.selectAll(&quot;g.trace&quot;).remove()):u.traceIs(I,&quot;cartesian&quot;)&amp;&amp;s(I,&quot;marker.colors&quot;).set(s(I,&quot;marker.color&quot;).get())}}else{var X=i._size,Z=H.orient,J=&quot;top&quot;===Z||&quot;bottom&quot;===Z;if(&quot;thicknessmode&quot;===j){var K=J?X.h:X.w;S(q+&quot;thickness&quot;,H.thickness*(&quot;fraction&quot;===D?1/K:K),n)}else{var Q=J?X.w:X.h;S(q+&quot;len&quot;,H.len*(&quot;fraction&quot;===D?1/Q:Q),n)}}x[L][n]=B(O);if(-1!==[&quot;swapxy&quot;,&quot;swapxyaxes&quot;,&quot;orientation&quot;,&quot;orientationaxes&quot;].indexOf(L)){if(&quot;orientation&quot;===L){z.set(D);var $=I.x&amp;&amp;!I.y?&quot;h&quot;:&quot;v&quot;;if((z.get()||$)===P.orientation)continue}else&quot;orientationaxes&quot;===L&amp;&amp;(I.orientation={v:&quot;h&quot;,h:&quot;v&quot;}[P.orientation]);T.swapXYData(I),v.calc=v.clearAxisTypes=!0}else-1!==h.dataArrayContainers.indexOf(z.parts[0])?(T.manageArrayContainers(z,D,x),v.calc=!0):(R?R.arrayOk&amp;&amp;!u.traceIs(P,&quot;regl&quot;)&amp;&amp;(o.isArrayOrTypedArray(D)||o.isArrayOrTypedArray(O))?v.calc=!0:M.update(v,R):v.calc=!0,z.set(D))}}if(-1!==[&quot;swapxyaxes&quot;,&quot;orientationaxes&quot;].indexOf(L)&amp;&amp;d.swap(t,r),&quot;orientationaxes&quot;===L){var tt=s(t.layout,&quot;hovermode&quot;),et=tt.get();&quot;x&quot;===et?tt.set(&quot;y&quot;):&quot;y&quot;===et?tt.set(&quot;x&quot;):&quot;x unified&quot;===et?tt.set(&quot;y unified&quot;):&quot;y unified&quot;===et&amp;&amp;tt.set(&quot;x unified&quot;)}if(-1!==[&quot;orientation&quot;,&quot;type&quot;].indexOf(L)){for(m=[],n=0;n&lt;r.length;n++){var rt=l[r[n]];u.traceIs(rt,&quot;cartesian&quot;)&amp;&amp;(_(rt.xaxis||&quot;x&quot;),_(rt.yaxis||&quot;y&quot;))}S(m.map(w),!0,0),S(m.map(k),[0,1],0)}}else z=p(t.layout,L.replace(&quot;LAYOUT&quot;,&quot;&quot;)),x[L]=[B(z.get())],z.set(Array.isArray(F)?F[0]:F),v.calc=!0}return(v.calc||v.plot)&amp;&amp;(v.fullReplot=!0),{flags:v,undoit:x,redoit:y,traces:r,eventData:o.extendDeepNoArrays([],[g,r])}}function V(t){var e,r,n,i=o.counterRegex(&quot;axis&quot;,&quot;.title&quot;,!1,!1),a=/colorbar\.title$/,s=Object.keys(t);for(e=0;e&lt;s.length;e++)r=s[e],n=t[r],&quot;title&quot;!==r&amp;&amp;!i.test(r)&amp;&amp;!a.test(r)||&quot;string&quot;!=typeof n&amp;&amp;&quot;number&quot;!=typeof n?r.indexOf(&quot;titlefont&quot;)&gt;-1?l(r,r.replace(&quot;titlefont&quot;,&quot;title.font&quot;)):r.indexOf(&quot;titleposition&quot;)&gt;-1?l(r,r.replace(&quot;titleposition&quot;,&quot;title.position&quot;)):r.indexOf(&quot;titleside&quot;)&gt;-1?l(r,r.replace(&quot;titleside&quot;,&quot;title.side&quot;)):r.indexOf(&quot;titleoffset&quot;)&gt;-1&amp;&amp;l(r,r.replace(&quot;titleoffset&quot;,&quot;title.offset&quot;)):l(r,r.replace(&quot;title&quot;,&quot;title.text&quot;));function l(e,r){t[r]=t[e],delete t[e]}}function q(t,e,r){if(t=o.getGraphDiv(t),T.clearPromiseQueue(t),t.framework&amp;&amp;t.framework.isPolar)return Promise.resolve(t);var n={};if(&quot;string&quot;==typeof e)n[e]=r;else{if(!o.isPlainObject(e))return o.warn(&quot;Relayout fail.&quot;,e,r),Promise.reject();n=o.extendFlat({},e)}Object.keys(n).length&amp;&amp;(t.changed=!0);var i=Z(t,n),a=i.flags;a.calc&amp;&amp;(t.calcdata=void 0);var s=[h.previousPromises];a.layoutReplot?s.push(k.layoutReplot):Object.keys(n).length&amp;&amp;(H(t,a,i)||h.supplyDefaults(t),a.legend&amp;&amp;s.push(k.doLegend),a.layoutstyle&amp;&amp;s.push(k.layoutStyles),a.axrange&amp;&amp;G(s,i.rangesAltered),a.ticks&amp;&amp;s.push(k.doTicksRelayout),a.modebar&amp;&amp;s.push(k.doModeBar),a.camera&amp;&amp;s.push(k.doCamera),a.colorbars&amp;&amp;s.push(k.doColorBars),s.push(E)),s.push(h.rehover,h.redrag),c.add(t,q,[t,i.undoit],q,[t,i.redoit]);var l=o.syncOrAsync(s,t);return l&amp;&amp;l.then||(l=Promise.resolve(t)),l.then((function(){return t.emit(&quot;plotly_relayout&quot;,i.eventData),t}))}function H(t,e,r){var n=t._fullLayout;if(!e.axrange)return!1;for(var i in e)if(&quot;axrange&quot;!==i&amp;&amp;e[i])return!1;for(var a in r.rangesAltered){var o=d.id2name(a),s=t.layout[o],l=n[o];if(l.autorange=s.autorange,s.range&amp;&amp;(l.range=s.range.slice()),l.cleanRange(),l._matchGroup)for(var c in l._matchGroup)if(c!==a){var u=n[d.id2name(c)];u.autorange=l.autorange,u.range=l.range.slice(),u._input.range=l.range.slice()}}return!0}function G(t,e){var r=e?function(t){var r=[],n=!0;for(var i in e){var a=d.getFromId(t,i);if(r.push(i),-1!==(a.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;a._anchorAxis&amp;&amp;r.push(a._anchorAxis._id),a._matchGroup)for(var o in a._matchGroup)e[o]||r.push(o);a.automargin&amp;&amp;(n=!1)}return d.draw(t,r,{skipTitle:n})}:function(t){return d.draw(t,&quot;redraw&quot;)};t.push(b,k.doAutoRangeAndConstraints,r,k.drawData,k.finalDraw)}var Y=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,W=/^[xyz]axis[0-9]*\.autorange$/,X=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Z(t,e){var r,n,i,a=t.layout,l=t._fullLayout,c=l._guiEditing,h=N(l._preGUI,c),p=Object.keys(e),g=d.list(t),m=o.extendDeepAll({},e),v={};for(V(e),p=Object.keys(e),n=0;n&lt;p.length;n++)if(0===p[n].indexOf(&quot;allaxes&quot;)){for(i=0;i&lt;g.length;i++){var y=g[i]._id.substr(1),x=-1!==y.indexOf(&quot;scene&quot;)?y+&quot;.&quot;:&quot;&quot;,b=p[n].replace(&quot;allaxes&quot;,x+g[i]._name);e[b]||(e[b]=e[p[n]])}delete e[p[n]]}var _=M.layoutFlags(),k={},S={};function E(t,r){if(Array.isArray(t))t.forEach((function(t){E(t,r)}));else if(!(t in e)&amp;&amp;!T.hasParent(e,t)){var n=h(a,t);t in S||(S[t]=B(n.get())),void 0!==r&amp;&amp;n.set(r)}}var C,L={};function I(t){var e=d.name2id(t.split(&quot;.&quot;)[0]);return L[e]=1,e}for(var P in e){if(T.hasParent(e,P))throw new Error(&quot;cannot set &quot;+P+&quot; and a parent attribute simultaneously&quot;);for(var z=h(a,P),O=e[P],D=z.parts.length-1;D&gt;0&amp;&amp;&quot;string&quot;!=typeof z.parts[D];)D--;var R=z.parts[D],F=z.parts[D-1]+&quot;.&quot;+R,j=z.parts.slice(0,D).join(&quot;.&quot;),U=s(t.layout,j).get(),q=s(l,j).get(),H=z.get();if(void 0!==O){k[P]=O,S[P]=&quot;reverse&quot;===R?O:B(H);var G=f.getLayoutValObject(l,z.parts);if(G&amp;&amp;G.impliedEdits&amp;&amp;null!==O)for(var Z in G.impliedEdits)E(o.relativeAttr(P,Z),G.impliedEdits[Z]);if(-1!==[&quot;width&quot;,&quot;height&quot;].indexOf(P))if(O){E(&quot;autosize&quot;,null);var K=&quot;height&quot;===P?&quot;width&quot;:&quot;height&quot;;E(K,l[K])}else l[P]=t._initialAutoSize[P];else if(&quot;autosize&quot;===P)E(&quot;width&quot;,O?null:l.width),E(&quot;height&quot;,O?null:l.height);else if(F.match(Y))I(F),s(l,j+&quot;._inputRange&quot;).set(null);else if(F.match(W)){I(F),s(l,j+&quot;._inputRange&quot;).set(null);var Q=s(l,j).get();Q._inputDomain&amp;&amp;(Q._input.domain=Q._inputDomain.slice())}else F.match(X)&amp;&amp;s(l,j+&quot;._inputDomain&quot;).set(null);if(&quot;type&quot;===R){C=U;var $=&quot;linear&quot;===q.type&amp;&amp;&quot;log&quot;===O,tt=&quot;log&quot;===q.type&amp;&amp;&quot;linear&quot;===O;if($||tt){if(C&amp;&amp;C.range)if(q.autorange)$&amp;&amp;(C.range=C.range[1]&gt;C.range[0]?[1,2]:[2,1]);else{var et=C.range[0],rt=C.range[1];$?(et&lt;=0&amp;&amp;rt&lt;=0&amp;&amp;E(j+&quot;.autorange&quot;,!0),et&lt;=0?et=rt/1e6:rt&lt;=0&amp;&amp;(rt=et/1e6),E(j+&quot;.range[0]&quot;,Math.log(et)/Math.LN10),E(j+&quot;.range[1]&quot;,Math.log(rt)/Math.LN10)):(E(j+&quot;.range[0]&quot;,Math.pow(10,et)),E(j+&quot;.range[1]&quot;,Math.pow(10,rt)))}else E(j+&quot;.autorange&quot;,!0);Array.isArray(l._subplots.polar)&amp;&amp;l._subplots.polar.length&amp;&amp;l[z.parts[0]]&amp;&amp;&quot;radialaxis&quot;===z.parts[1]&amp;&amp;delete l[z.parts[0]]._subplot.viewInitial[&quot;radialaxis.range&quot;],u.getComponentMethod(&quot;annotations&quot;,&quot;convertCoords&quot;)(t,q,O,E),u.getComponentMethod(&quot;images&quot;,&quot;convertCoords&quot;)(t,q,O,E)}else E(j+&quot;.autorange&quot;,!0),E(j+&quot;.range&quot;,null);s(l,j+&quot;._inputRange&quot;).set(null)}else if(R.match(A)){var nt=s(l,P).get(),it=(O||{}).type;it&amp;&amp;&quot;-&quot;!==it||(it=&quot;linear&quot;),u.getComponentMethod(&quot;annotations&quot;,&quot;convertCoords&quot;)(t,nt,it,E),u.getComponentMethod(&quot;images&quot;,&quot;convertCoords&quot;)(t,nt,it,E)}var at=w.containerArrayMatch(P);if(at){r=at.array,n=at.index;var ot=at.property,st=G||{editType:&quot;calc&quot;};&quot;&quot;!==n&amp;&amp;&quot;&quot;===ot&amp;&amp;(w.isAddVal(O)?S[P]=null:w.isRemoveVal(O)?S[P]=(s(a,r).get()||[])[n]:o.warn(&quot;unrecognized full object value&quot;,e)),M.update(_,st),v[r]||(v[r]={});var lt=v[r][n];lt||(lt=v[r][n]={}),lt[ot]=O,delete e[P]}else&quot;reverse&quot;===R?(U.range?U.range.reverse():(E(j+&quot;.autorange&quot;,!0),U.range=[1,0]),q.autorange?_.calc=!0:_.plot=!0):(l._has(&quot;scatter-like&quot;)&amp;&amp;l._has(&quot;regl&quot;)&amp;&amp;&quot;dragmode&quot;===P&amp;&amp;(&quot;lasso&quot;===O||&quot;select&quot;===O)&amp;&amp;&quot;lasso&quot;!==H&amp;&amp;&quot;select&quot;!==H||l._has(&quot;gl2d&quot;)?_.plot=!0:G?M.update(_,G):_.calc=!0,z.set(O))}}for(r in v){w.applyContainerArrayChanges(t,h(a,r),v[r],_,h)||(_.plot=!0)}for(var ct in L){var ut=(C=d.getFromId(t,ct))&amp;&amp;C._constraintGroup;if(ut)for(var ft in _.calc=!0,ut)L[ft]||(d.getFromId(t,ft)._constraintShrinkable=!0)}return(J(t)||e.height||e.width)&amp;&amp;(_.plot=!0),(_.plot||_.calc)&amp;&amp;(_.layoutReplot=!0),{flags:_,rangesAltered:L,undoit:S,redoit:k,eventData:m}}function J(t){var e=t._fullLayout,r=e.width,n=e.height;return t.layout.autosize&amp;&amp;h.plotAutoSize(t,t.layout,e),e.width!==r||e.height!==n}function K(t,e,n,i){if(t=o.getGraphDiv(t),T.clearPromiseQueue(t),t.framework&amp;&amp;t.framework.isPolar)return Promise.resolve(t);o.isPlainObject(e)||(e={}),o.isPlainObject(n)||(n={}),Object.keys(e).length&amp;&amp;(t.changed=!0),Object.keys(n).length&amp;&amp;(t.changed=!0);var a=T.coerceTraceIndices(t,i),s=U(t,o.extendFlat({},e),a),l=s.flags,u=Z(t,o.extendFlat({},n)),f=u.flags;(l.calc||f.calc)&amp;&amp;(t.calcdata=void 0),l.clearAxisTypes&amp;&amp;T.clearAxisTypes(t,a,n);var p=[];f.layoutReplot?p.push(k.layoutReplot):l.fullReplot?p.push(r.plot):(p.push(h.previousPromises),H(t,f,u)||h.supplyDefaults(t),l.style&amp;&amp;p.push(k.doTraceStyle),(l.colorbars||f.colorbars)&amp;&amp;p.push(k.doColorBars),f.legend&amp;&amp;p.push(k.doLegend),f.layoutstyle&amp;&amp;p.push(k.layoutStyles),f.axrange&amp;&amp;G(p,u.rangesAltered),f.ticks&amp;&amp;p.push(k.doTicksRelayout),f.modebar&amp;&amp;p.push(k.doModeBar),f.camera&amp;&amp;p.push(k.doCamera),p.push(E)),p.push(h.rehover,h.redrag),c.add(t,K,[t,s.undoit,u.undoit,s.traces],K,[t,s.redoit,u.redoit,s.traces]);var d=o.syncOrAsync(p,t);return d&amp;&amp;d.then||(d=Promise.resolve(t)),d.then((function(){return t.emit(&quot;plotly_update&quot;,{data:s.eventData,layout:u.eventData}),t}))}function Q(t){return function(e){e._fullLayout._guiEditing=!0;var r=t.apply(null,arguments);return e._fullLayout._guiEditing=!1,r}}var $=[{pattern:/^hiddenlabels/,attr:&quot;legend.uirevision&quot;},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:&quot;modebar.uirevision&quot;},{pattern:/(hover|drag)mode$/,attr:&quot;modebar.uirevision&quot;},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:&quot;editrevision&quot;},{pattern:/^(shapes|annotations)/,attr:&quot;editrevision&quot;},{pattern:/^title\.text$/,attr:&quot;editrevision&quot;}],tt=[{pattern:/^selectedpoints$/,attr:&quot;selectionrevision&quot;},{pattern:/(^|value\.)visible$/,attr:&quot;legend.uirevision&quot;},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:&quot;editrevision&quot;}];function et(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r],i=t.match(n.pattern);if(i)return{head:i[1],attr:n.attr}}}function rt(t,e){var r=s(e,t).get();if(void 0!==r)return r;var n=t.split(&quot;.&quot;);for(n.pop();n.length&gt;1;)if(n.pop(),void 0!==(r=s(e,n.join(&quot;.&quot;)+&quot;.uirevision&quot;).get()))return r;return e.uirevision}function nt(t,e){for(var r=0;r&lt;e.length;r++)if(e[r]._fullInput.uid===t)return r;return-1}function it(t,e,r){for(var n=0;n&lt;e.length;n++)if(e[n].uid===t)return n;return!e[r]||e[r].uid?-1:r}function at(t,e){var r=o.isPlainObject(t),n=Array.isArray(t);return r||n?(r&amp;&amp;o.isPlainObject(e)||n&amp;&amp;Array.isArray(e))&amp;&amp;JSON.stringify(t)===JSON.stringify(e):t===e}function ot(t,e,r,n){var i,a,l,c=n.getValObject,u=n.flags,f=n.immutable,h=n.inArray,p=n.arrayIndex;function d(){var t=i.editType;h&amp;&amp;-1!==t.indexOf(&quot;arraydraw&quot;)?o.pushUnique(u.arrays[h],p):(M.update(u,i),&quot;none&quot;!==t&amp;&amp;u.nChanges++,n.transition&amp;&amp;i.anim&amp;&amp;u.nChangesAnim++,(Y.test(l)||W.test(l))&amp;&amp;(u.rangesAltered[r[0]]=1),X.test(l)&amp;&amp;s(e,&quot;_inputDomain&quot;).set(null),&quot;datarevision&quot;===a&amp;&amp;(u.newDataRevision=1))}function g(t){return&quot;data_array&quot;===t.valType||t.arrayOk}for(a in t){if(u.calc&amp;&amp;!n.transition)return;var m=t[a],v=e[a],y=r.concat(a);if(l=y.join(&quot;.&quot;),&quot;_&quot;!==a.charAt(0)&amp;&amp;&quot;function&quot;!=typeof m&amp;&amp;m!==v){if((&quot;tick0&quot;===a||&quot;dtick&quot;===a)&amp;&amp;&quot;geo&quot;!==r[0]){var x=e.tickmode;if(&quot;auto&quot;===x||&quot;array&quot;===x||!x)continue}if((&quot;range&quot;!==a||!e.autorange)&amp;&amp;(&quot;zmin&quot;!==a&amp;&amp;&quot;zmax&quot;!==a||&quot;contourcarpet&quot;!==e.type)&amp;&amp;(i=c(y))&amp;&amp;(!i._compareAsJSON||JSON.stringify(m)!==JSON.stringify(v))){var b,_=i.valType,w=g(i),T=Array.isArray(m),k=Array.isArray(v);if(T&amp;&amp;k){var A=&quot;_input_&quot;+a,S=t[A],E=e[A];if(Array.isArray(S)&amp;&amp;S===E)continue}if(void 0===v)w&amp;&amp;T?u.calc=!0:d();else if(i._isLinkedToArray){var C=[],L=!1;h||(u.arrays[a]=C);var I=Math.min(m.length,v.length),P=Math.max(m.length,v.length);if(I!==P){if(&quot;arraydraw&quot;!==i.editType){d();continue}L=!0}for(b=0;b&lt;I;b++)ot(m[b],v[b],y.concat(b),o.extendFlat({inArray:a,arrayIndex:b},n));if(L)for(b=I;b&lt;P;b++)C.push(b)}else!_&amp;&amp;o.isPlainObject(m)?ot(m,v,y,n):w?T&amp;&amp;k?(f&amp;&amp;(u.calc=!0),(f||n.newDataRevision)&amp;&amp;d()):T!==k?u.calc=!0:d():T&amp;&amp;k&amp;&amp;m.length===v.length&amp;&amp;String(m)===String(v)||d()}}}for(a in e)if(!(a in t)&amp;&amp;&quot;_&quot;!==a.charAt(0)&amp;&amp;&quot;function&quot;!=typeof e[a]){if(g(i=c(r.concat(a)))&amp;&amp;Array.isArray(e[a]))return void(u.calc=!0);d()}}function st(t){var e=t._fullLayout,r=t.getBoundingClientRect();if(!o.equalDomRects(r,e._lastBBox)){var n=e._invTransform=o.inverseTransformMatrix(o.getFullTransformMatrix(t));e._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),e._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),e._lastBBox=r}}function lt(t){var e=n.select(t),r=t._fullLayout;if(r._calcInverseTransform=st,r._calcInverseTransform(t),r._container=e.selectAll(&quot;.plot-container&quot;).data([0]),r._container.enter().insert(&quot;div&quot;,&quot;:first-child&quot;).classed(&quot;plot-container&quot;,!0).classed(&quot;plotly&quot;,!0),r._paperdiv=r._container.selectAll(&quot;.svg-container&quot;).data([0]),r._paperdiv.enter().append(&quot;div&quot;).classed(&quot;user-select-none&quot;,!0).classed(&quot;svg-container&quot;,!0).style(&quot;position&quot;,&quot;relative&quot;),r._glcontainer=r._paperdiv.selectAll(&quot;.gl-container&quot;).data([{}]),r._glcontainer.enter().append(&quot;div&quot;).classed(&quot;gl-container&quot;,!0),r._paperdiv.selectAll(&quot;.main-svg&quot;).remove(),r._paperdiv.select(&quot;.modebar-container&quot;).remove(),r._paper=r._paperdiv.insert(&quot;svg&quot;,&quot;:first-child&quot;).classed(&quot;main-svg&quot;,!0),r._toppaper=r._paperdiv.append(&quot;svg&quot;).classed(&quot;main-svg&quot;,!0),r._modebardiv=r._paperdiv.append(&quot;div&quot;),delete r._modeBar,r._hoverpaper=r._paperdiv.append(&quot;svg&quot;).classed(&quot;main-svg&quot;,!0),!r._uid){var i={};n.selectAll(&quot;defs&quot;).each((function(){this.id&amp;&amp;(i[this.id.split(&quot;-&quot;)[1]]=1)})),r._uid=o.randstr(i)}r._paperdiv.selectAll(&quot;.main-svg&quot;).attr(y.svgAttrs),r._defs=r._paper.append(&quot;defs&quot;).attr(&quot;id&quot;,&quot;defs-&quot;+r._uid),r._clips=r._defs.append(&quot;g&quot;).classed(&quot;clips&quot;,!0),r._topdefs=r._toppaper.append(&quot;defs&quot;).attr(&quot;id&quot;,&quot;topdefs-&quot;+r._uid),r._topclips=r._topdefs.append(&quot;g&quot;).classed(&quot;clips&quot;,!0),r._bgLayer=r._paper.append(&quot;g&quot;).classed(&quot;bglayer&quot;,!0),r._draggers=r._paper.append(&quot;g&quot;).classed(&quot;draglayer&quot;,!0);var a=r._paper.append(&quot;g&quot;).classed(&quot;layer-below&quot;,!0);r._imageLowerLayer=a.append(&quot;g&quot;).classed(&quot;imagelayer&quot;,!0),r._shapeLowerLayer=a.append(&quot;g&quot;).classed(&quot;shapelayer&quot;,!0),r._cartesianlayer=r._paper.append(&quot;g&quot;).classed(&quot;cartesianlayer&quot;,!0),r._polarlayer=r._paper.append(&quot;g&quot;).classed(&quot;polarlayer&quot;,!0),r._ternarylayer=r._paper.append(&quot;g&quot;).classed(&quot;ternarylayer&quot;,!0),r._geolayer=r._paper.append(&quot;g&quot;).classed(&quot;geolayer&quot;,!0),r._funnelarealayer=r._paper.append(&quot;g&quot;).classed(&quot;funnelarealayer&quot;,!0),r._pielayer=r._paper.append(&quot;g&quot;).classed(&quot;pielayer&quot;,!0),r._treemaplayer=r._paper.append(&quot;g&quot;).classed(&quot;treemaplayer&quot;,!0),r._sunburstlayer=r._paper.append(&quot;g&quot;).classed(&quot;sunburstlayer&quot;,!0),r._indicatorlayer=r._toppaper.append(&quot;g&quot;).classed(&quot;indicatorlayer&quot;,!0),r._glimages=r._paper.append(&quot;g&quot;).classed(&quot;glimages&quot;,!0);var s=r._toppaper.append(&quot;g&quot;).classed(&quot;layer-above&quot;,!0);r._imageUpperLayer=s.append(&quot;g&quot;).classed(&quot;imagelayer&quot;,!0),r._shapeUpperLayer=s.append(&quot;g&quot;).classed(&quot;shapelayer&quot;,!0),r._infolayer=r._toppaper.append(&quot;g&quot;).classed(&quot;infolayer&quot;,!0),r._menulayer=r._toppaper.append(&quot;g&quot;).classed(&quot;menulayer&quot;,!0),r._zoomlayer=r._toppaper.append(&quot;g&quot;).classed(&quot;zoomlayer&quot;,!0),r._hoverlayer=r._hoverpaper.append(&quot;g&quot;).classed(&quot;hoverlayer&quot;,!0),r._modebardiv.classed(&quot;modebar-container&quot;,!0).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;top&quot;,&quot;0px&quot;).style(&quot;right&quot;,&quot;0px&quot;),t.emit(&quot;plotly_framework&quot;)}r.animate=function(t,e,r){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t+&quot;. It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/&quot;);var n=t._transitionData;n._frameQueue||(n._frameQueue=[]);var i=(r=h.supplyAnimationDefaults(r)).transition,a=r.frame;function s(t){return Array.isArray(i)?t&gt;=i.length?i[0]:i[t]:i}function l(t){return Array.isArray(a)?t&gt;=a.length?a[0]:a[t]:a}function c(t,e){var r=0;return function(){if(t&amp;&amp;++r===e)return t()}}return void 0===n._frameWaitingCnt&amp;&amp;(n._frameWaitingCnt=0),new Promise((function(a,u){function f(){n._currentFrame&amp;&amp;n._currentFrame.onComplete&amp;&amp;n._currentFrame.onComplete();var e=n._currentFrame=n._frameQueue.shift();if(e){var r=e.name?e.name.toString():null;t._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=e.frameOpts.duration,h.transition(t,e.frame.data,e.frame.layout,T.coerceTraceIndices(t,e.frame.traces),e.frameOpts,e.transitionOpts).then((function(){e.onComplete&amp;&amp;e.onComplete()})),t.emit(&quot;plotly_animatingframe&quot;,{name:r,frame:e.frame,animation:{frame:e.frameOpts,transition:e.transitionOpts}})}else t.emit(&quot;plotly_animated&quot;),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function p(){t.emit(&quot;plotly_animating&quot;),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var e=function(){n._animationRaf=window.requestAnimationFrame(e),Date.now()-n._lastFrameAt&gt;n._timeToNext&amp;&amp;f()};e()}var d,g,m=0;function v(t){return Array.isArray(i)?m&gt;=i.length?t.transitionOpts=i[m]:t.transitionOpts=i[0]:t.transitionOpts=i,m++,t}var y=[],x=null==e,b=Array.isArray(e);if(!x&amp;&amp;!b&amp;&amp;o.isPlainObject(e))y.push({type:&quot;object&quot;,data:v(o.extendFlat({},e))});else if(x||-1!==[&quot;string&quot;,&quot;number&quot;].indexOf(typeof e))for(d=0;d&lt;n._frames.length;d++)(g=n._frames[d])&amp;&amp;(x||String(g.group)===String(e))&amp;&amp;y.push({type:&quot;byname&quot;,name:String(g.name),data:v({name:g.name})});else if(b)for(d=0;d&lt;e.length;d++){var _=e[d];-1!==[&quot;number&quot;,&quot;string&quot;].indexOf(typeof _)?(_=String(_),y.push({type:&quot;byname&quot;,name:_,data:v({name:_})})):o.isPlainObject(_)&amp;&amp;y.push({type:&quot;object&quot;,data:v(o.extendFlat({},_))})}for(d=0;d&lt;y.length;d++)if(&quot;byname&quot;===(g=y[d]).type&amp;&amp;!n._frameHash[g.data.name])return o.warn('animate failure: frame not found: &quot;'+g.data.name+'&quot;'),void u();-1!==[&quot;next&quot;,&quot;immediate&quot;].indexOf(r.mode)&amp;&amp;function(){if(0!==n._frameQueue.length){for(;n._frameQueue.length;){var e=n._frameQueue.pop();e.onInterrupt&amp;&amp;e.onInterrupt()}t.emit(&quot;plotly_animationinterrupted&quot;,[])}}(),&quot;reverse&quot;===r.direction&amp;&amp;y.reverse();var w=t._fullLayout._currentFrame;if(w&amp;&amp;r.fromcurrent){var k=-1;for(d=0;d&lt;y.length;d++)if(&quot;byname&quot;===(g=y[d]).type&amp;&amp;g.name===w){k=d;break}if(k&gt;0&amp;&amp;k&lt;y.length-1){var M=[];for(d=0;d&lt;y.length;d++)g=y[d],(&quot;byname&quot;!==y[d].type||d&gt;k)&amp;&amp;M.push(g);y=M}}y.length&gt;0?function(e){if(0!==e.length){for(var i=0;i&lt;e.length;i++){var o;o=&quot;byname&quot;===e[i].type?h.computeFrame(t,e[i].name):e[i].data;var f=l(i),d=s(i);d.duration=Math.min(d.duration,f.duration);var g={frame:o,name:e[i].name,frameOpts:f,transitionOpts:d};i===e.length-1&amp;&amp;(g.onComplete=c(a,2),g.onInterrupt=u),n._frameQueue.push(g)}&quot;immediate&quot;===r.mode&amp;&amp;(n._lastFrameAt=-1/0),n._animationRaf||p()}}(y):(t.emit(&quot;plotly_animated&quot;),a())}))},r.addFrames=function(t,e,r){if(t=o.getGraphDiv(t),null==e)return Promise.resolve();if(!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t+&quot;. It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/&quot;);var n,i,a,s,l=t._transitionData._frames,u=t._transitionData._frameHash;if(!Array.isArray(e))throw new Error(&quot;addFrames failure: frameList must be an Array of frame definitions&quot;+e);var f=l.length+2*e.length,p=[],d={};for(n=e.length-1;n&gt;=0;n--)if(o.isPlainObject(e[n])){var g=e[n].name,m=(u[g]||d[g]||{}).name,v=e[n].name,y=u[m]||d[m];m&amp;&amp;v&amp;&amp;&quot;number&quot;==typeof v&amp;&amp;y&amp;&amp;S&lt;5&amp;&amp;(S++,o.warn('addFrames: overwriting frame &quot;'+(u[m]||d[m]).name+'&quot; with a frame whose name of type &quot;number&quot; also equates to &quot;'+m+'&quot;. This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===S&amp;&amp;o.warn(&quot;addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.&quot;)),d[g]={name:g},p.push({frame:h.supplyFrameDefaults(e[n]),index:r&amp;&amp;void 0!==r[n]&amp;&amp;null!==r[n]?r[n]:f+n})}p.sort((function(t,e){return t.index&gt;e.index?-1:t.index&lt;e.index?1:0}));var x=[],b=[],_=l.length;for(n=p.length-1;n&gt;=0;n--){if(&quot;number&quot;==typeof(i=p[n].frame).name&amp;&amp;o.warn(&quot;Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings&quot;),!i.name)for(;u[i.name=&quot;frame &quot;+t._transitionData._counter++];);if(u[i.name]){for(a=0;a&lt;l.length&amp;&amp;(l[a]||{}).name!==i.name;a++);x.push({type:&quot;replace&quot;,index:a,value:i}),b.unshift({type:&quot;replace&quot;,index:a,value:l[a]})}else s=Math.max(0,Math.min(p[n].index,_)),x.push({type:&quot;insert&quot;,index:s,value:i}),b.unshift({type:&quot;delete&quot;,index:s}),_++}var w=h.modifyFrames,T=h.modifyFrames,k=[t,b],M=[t,x];return c&amp;&amp;c.add(t,w,k,T,M),h.modifyFrames(t,x)},r.deleteFrames=function(t,e){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t);var r,n,i=t._transitionData._frames,a=[],s=[];if(!e)for(e=[],r=0;r&lt;i.length;r++)e.push(r);for((e=e.slice()).sort(),r=e.length-1;r&gt;=0;r--)n=e[r],a.push({type:&quot;delete&quot;,index:n}),s.unshift({type:&quot;insert&quot;,index:n,value:i[n]});var l=h.modifyFrames,u=h.modifyFrames,f=[t,s],p=[t,a];return c&amp;&amp;c.add(t,l,f,u,p),h.modifyFrames(t,a)},r.addTraces=function t(e,n,i){e=o.getGraphDiv(e);var a,s,l=[],u=r.deleteTraces,f=t,h=[e,l],p=[e,n];for(function(t,e,r){var n,i;if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array.&quot;);if(&quot;undefined&quot;==typeof e)throw new Error(&quot;traces must be defined.&quot;);for(Array.isArray(e)||(e=[e]),n=0;n&lt;e.length;n++)if(&quot;object&quot;!=typeof(i=e[n])||Array.isArray(i)||null===i)throw new Error(&quot;all values in traces array must be non-array objects&quot;);if(&quot;undefined&quot;==typeof r||Array.isArray(r)||(r=[r]),&quot;undefined&quot;!=typeof r&amp;&amp;r.length!==e.length)throw new Error(&quot;if indices is specified, traces.length must equal indices.length&quot;)}(e,n,i),Array.isArray(n)||(n=[n]),n=n.map((function(t){return o.extendFlat({},t)})),T.cleanData(n),a=0;a&lt;n.length;a++)e.data.push(n[a]);for(a=0;a&lt;n.length;a++)l.push(-n.length+a);if(&quot;undefined&quot;==typeof i)return s=r.redraw(e),c.add(e,u,h,f,p),s;Array.isArray(i)||(i=[i]);try{O(e,l,i)}catch(t){throw e.data.splice(e.data.length-n.length,n.length),t}return c.startSequence(e),c.add(e,u,h,f,p),s=r.moveTraces(e,l,i),c.stopSequence(e),s},r.deleteTraces=function t(e,n){e=o.getGraphDiv(e);var i,a,s=[],l=r.addTraces,u=t,f=[e,s,n],h=[e,n];if(&quot;undefined&quot;==typeof n)throw new Error(&quot;indices must be an integer or array of integers.&quot;);for(Array.isArray(n)||(n=[n]),z(e,n,&quot;indices&quot;),(n=P(n,e.data.length-1)).sort(o.sorterDes),i=0;i&lt;n.length;i+=1)a=e.data.splice(n[i],1)[0],s.push(a);var p=r.redraw(e);return c.add(e,l,f,u,h),p},r.extendTraces=function t(e,n,i,a){function s(t,e,r){var n,i;if(o.isTypedArray(t))if(r&lt;0){var a=new t.constructor(0),s=R(t,e);r&lt;0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r&lt;e.length){var l=e.length-r;n.set(e.subarray(l)),i.set(t),i.set(e.subarray(0,l),t.length)}else{var c=r-e.length,u=t.length-c;n.set(t.subarray(u)),n.set(e,c),i.set(t.subarray(0,u))}else n=t.concat(e),i=r&gt;=0&amp;&amp;r&lt;n.length?n.splice(0,n.length-r):[];return[n,i]}var l=D(e=o.getGraphDiv(e),n,i,a,s),u=r.redraw(e),f=[e,l.update,i,l.maxPoints];return c.add(e,r.prependTraces,f,t,arguments),u},r.moveTraces=function t(e,n,i){var a,s=[],l=[],u=t,f=t,h=[e=o.getGraphDiv(e),i,n],p=[e,n,i];if(O(e,n,i),n=Array.isArray(n)?n:[n],&quot;undefined&quot;==typeof i)for(i=[],a=0;a&lt;n.length;a++)i.push(-n.length+a);for(i=Array.isArray(i)?i:[i],n=P(n,e.data.length-1),i=P(i,e.data.length-1),a=0;a&lt;e.data.length;a++)-1===n.indexOf(a)&amp;&amp;s.push(e.data[a]);for(a=0;a&lt;n.length;a++)l.push({newIndex:i[a],trace:e.data[n[a]]});for(l.sort((function(t,e){return t.newIndex-e.newIndex})),a=0;a&lt;l.length;a+=1)s.splice(l[a].newIndex,0,l[a].trace);e.data=s;var d=r.redraw(e);return c.add(e,u,h,f,p),d},r.prependTraces=function t(e,n,i,a){function s(t,e,r){var n,i;if(o.isTypedArray(t))if(r&lt;=0){var a=new t.constructor(0),s=R(e,t);r&lt;0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r&lt;e.length){var l=e.length-r;n.set(e.subarray(0,l)),i.set(e.subarray(l)),i.set(t,l)}else{var c=r-e.length;n.set(e),n.set(t.subarray(0,c),e.length),i.set(t.subarray(c))}else n=e.concat(t),i=r&gt;=0&amp;&amp;r&lt;n.length?n.splice(r,n.length):[];return[n,i]}var l=D(e=o.getGraphDiv(e),n,i,a,s),u=r.redraw(e),f=[e,l.update,i,l.maxPoints];return c.add(e,r.extendTraces,f,t,arguments),u},r.newPlot=function(t,e,n,i){return t=o.getGraphDiv(t),h.cleanPlot([],{},t._fullData||[],t._fullLayout||{}),h.purge(t),r.plot(t,e,n,i)},r.plot=function(t,e,i,a){var s;if(t=o.getGraphDiv(t),l.init(t),o.isPlainObject(e)){var c=e;e=c.data,i=c.layout,a=c.config,s=c.frames}if(!1===l.triggerHandler(t,&quot;plotly_beforeplot&quot;,[e,i,a]))return Promise.reject();e||i||o.isPlotDiv(t)||o.warn(&quot;Calling Plotly.plot as if redrawing but this container doesn't yet have a plot.&quot;,t),I(t,a),i||(i={}),n.select(t).classed(&quot;js-plotly-plot&quot;,!0),g.makeTester(),Array.isArray(t._promises)||(t._promises=[]);var f=0===(t.data||[]).length&amp;&amp;Array.isArray(e);Array.isArray(e)&amp;&amp;(T.cleanData(e),f?t.data=e:t.data.push.apply(t.data,e),t.empty=!1),t.layout&amp;&amp;!f||(t.layout=T.cleanLayout(i)),h.supplyDefaults(t);var m=t._fullLayout,y=m._has(&quot;cartesian&quot;);if(!m._has(&quot;polar&quot;)&amp;&amp;e&amp;&amp;e[0]&amp;&amp;e[0].r)return o.log(&quot;Legacy polar charts are deprecated!&quot;),function(t,e,r){var i=n.select(t).selectAll(&quot;.plot-container&quot;).data([0]);i.enter().insert(&quot;div&quot;,&quot;:first-child&quot;).classed(&quot;plot-container plotly&quot;,!0);var a=i.selectAll(&quot;.svg-container&quot;).data([0]);a.enter().append(&quot;div&quot;).classed(&quot;svg-container&quot;,!0).style(&quot;position&quot;,&quot;relative&quot;),a.html(&quot;&quot;),e&amp;&amp;(t.data=e);r&amp;&amp;(t.layout=r);p.manager.fillLayout(t),a.style({width:t._fullLayout.width+&quot;px&quot;,height:t._fullLayout.height+&quot;px&quot;}),t.framework=p.manager.framework(t),t.framework({data:t.data,layout:t.layout},a.node()),t.framework.setUndoPoint();var s=t.framework.svg(),l=1,c=t._fullLayout.title?t._fullLayout.title.text:&quot;&quot;;&quot;&quot;!==c&amp;&amp;c||(l=0);var u=function(){this.call(x.convertToTspans,t)},f=s.select(&quot;.title-group text&quot;).call(u);if(t._context.edits.titleText){var d=o._(t,&quot;Click to enter Plot title&quot;);c&amp;&amp;c!==d||(l=.2,f.attr({&quot;data-unformatted&quot;:d}).text(d).style({opacity:l}).on(&quot;mouseover.opacity&quot;,(function(){n.select(this).transition().duration(100).style(&quot;opacity&quot;,1)})).on(&quot;mouseout.opacity&quot;,(function(){n.select(this).transition().duration(1e3).style(&quot;opacity&quot;,0)})));var g=function(){this.call(x.makeEditable,{gd:t}).on(&quot;edit&quot;,(function(e){t.framework({layout:{title:{text:e}}}),this.text(e).call(u),this.call(g)})).on(&quot;cancel&quot;,(function(){var t=this.attr(&quot;data-unformatted&quot;);this.text(t).call(u)}))};f.call(g)}return t._context.setBackground(t,t._fullLayout.paper_bgcolor),h.addLinks(t),Promise.resolve()}(t,e,i);m._replotting=!0,(f||m._shouldCreateBgLayer)&amp;&amp;(lt(t),m._shouldCreateBgLayer&amp;&amp;delete m._shouldCreateBgLayer),t.framework!==lt&amp;&amp;(t.framework=lt,lt(t)),g.initGradients(t),f&amp;&amp;d.saveShowSpikeInitial(t);var b=!t.calcdata||t.calcdata.length!==(t._fullData||[]).length;b&amp;&amp;h.doCalcdata(t);for(var _=0;_&lt;t.calcdata.length;_++)t.calcdata[_][0].trace=t._fullData[_];t._context.responsive?t._responsiveChartHandler||(t._responsiveChartHandler=function(){o.isHidden(t)||h.resize(t)},window.addEventListener(&quot;resize&quot;,t._responsiveChartHandler)):o.clearResponsive(t);var w=o.extendFlat({},m._size),M=0;function A(){if(h.clearAutoMarginIds(t),k.drawMarginPushers(t),d.allowAutoMargin(t),m._has(&quot;pie&quot;))for(var e=t._fullData,r=0;r&lt;e.length;r++){var n=e[r];&quot;pie&quot;===n.type&amp;&amp;n.automargin&amp;&amp;h.allowAutoMargin(t,&quot;pie.&quot;+n.uid+&quot;.automargin&quot;)}return h.doAutoMargin(t),h.previousPromises(t)}function S(){t._transitioning||(k.doAutoRangeAndConstraints(t),f&amp;&amp;d.saveRangeInitial(t),u.getComponentMethod(&quot;rangeslider&quot;,&quot;calcAutorange&quot;)(t))}var C=[h.previousPromises,function(){if(s)return r.addFrames(t,s)},function e(){for(var r=m._basePlotModules,n=0;n&lt;r.length;n++)r[n].drawFramework&amp;&amp;r[n].drawFramework(t);if(!m._glcanvas&amp;&amp;m._has(&quot;gl&quot;)&amp;&amp;(m._glcanvas=m._glcontainer.selectAll(&quot;.gl-canvas&quot;).data([{key:&quot;contextLayer&quot;,context:!0,pick:!1},{key:&quot;focusLayer&quot;,context:!1,pick:!1},{key:&quot;pickLayer&quot;,context:!1,pick:!0}],(function(t){return t.key})),m._glcanvas.enter().append(&quot;canvas&quot;).attr(&quot;class&quot;,(function(t){return&quot;gl-canvas gl-canvas-&quot;+t.key.replace(&quot;Layer&quot;,&quot;&quot;)})).style({position:&quot;absolute&quot;,top:0,left:0,overflow:&quot;visible&quot;,&quot;pointer-events&quot;:&quot;none&quot;})),m._glcanvas){m._glcanvas.attr(&quot;width&quot;,m.width).attr(&quot;height&quot;,m.height);var i=m._glcanvas.data()[0].regl;if(i&amp;&amp;(Math.floor(m.width)!==i._gl.drawingBufferWidth||Math.floor(m.height)!==i._gl.drawingBufferHeight)){var a=&quot;WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.&quot;;if(!M)return o.log(a+&quot; Clearing graph and plotting again.&quot;),h.cleanPlot([],{},t._fullData,m),h.supplyDefaults(t),m=t._fullLayout,h.doCalcdata(t),M++,e();o.error(a)}}return&quot;h&quot;===m.modebar.orientation?m._modebardiv.style(&quot;height&quot;,null).style(&quot;width&quot;,&quot;100%&quot;):m._modebardiv.style(&quot;width&quot;,null).style(&quot;height&quot;,m.height+&quot;px&quot;),h.previousPromises(t)},A,function(){if(h.didMarginChange(w,m._size))return o.syncOrAsync([A,k.layoutStyles],t)}];y&amp;&amp;C.push((function(){if(b)return o.syncOrAsync([u.getComponentMethod(&quot;shapes&quot;,&quot;calcAutorange&quot;),u.getComponentMethod(&quot;annotations&quot;,&quot;calcAutorange&quot;),S],t);S()})),C.push(k.layoutStyles),y&amp;&amp;C.push((function(){return d.draw(t,f?&quot;&quot;:&quot;redraw&quot;)}),(function(t){t._fullLayout._insideTickLabelsAutorange&amp;&amp;q(t,t._fullLayout._insideTickLabelsAutorange).then((function(){t._fullLayout._insideTickLabelsAutorange=void 0}))})),C.push(k.drawData,k.finalDraw,v,h.addLinks,h.rehover,h.redrag,h.doAutoMargin,(function(t){t._fullLayout._insideTickLabelsAutorange&amp;&amp;f&amp;&amp;d.saveRangeInitial(t,!0)}),h.previousPromises);var L=o.syncOrAsync(C,t);return L&amp;&amp;L.then||(L=Promise.resolve()),L.then((function(){return E(t),t}))},r.purge=function(t){var e=(t=o.getGraphDiv(t))._fullLayout||{},r=t._fullData||[];return h.cleanPlot([],{},r,e),h.purge(t),l.purge(t),e._container&amp;&amp;e._container.remove(),delete t._context,t},r.react=function(t,e,n,i){var a,l;t=o.getGraphDiv(t),T.clearPromiseQueue(t);var c=t._fullData,p=t._fullLayout;if(o.isPlotDiv(t)&amp;&amp;c&amp;&amp;p){if(o.isPlainObject(e)){var d=e;e=d.data,n=d.layout,i=d.config,a=d.frames}var g=!1;if(i){var m=o.extendDeep({},t._context);t._context=void 0,I(t,i),g=function t(e,r){var n;for(n in e)if(&quot;_&quot;!==n.charAt(0)){var i=e[n],a=r[n];if(i!==a)if(o.isPlainObject(i)&amp;&amp;o.isPlainObject(a)){if(t(i,a))return!0}else{if(!Array.isArray(i)||!Array.isArray(a))return!0;if(i.length!==a.length)return!0;for(var s=0;s&lt;i.length;s++)if(i[s]!==a[s]){if(!o.isPlainObject(i[s])||!o.isPlainObject(a[s]))return!0;if(t(i[s],a[s]))return!0}}}}(m,t._context)}t.data=e||[],T.cleanData(t.data),t.layout=n||{},T.cleanLayout(t.layout),function(t,e,r,n){var i,a,l,c,u,f,h,p,d=n._preGUI,g=[],m={};for(i in d){if(u=et(i,$)){if(a=u.attr||u.head+&quot;.uirevision&quot;,(c=(l=s(n,a).get())&amp;&amp;rt(a,e))&amp;&amp;c===l&amp;&amp;(null===(f=d[i])&amp;&amp;(f=void 0),at(p=(h=s(e,i)).get(),f))){void 0===p&amp;&amp;&quot;autorange&quot;===i.substr(i.length-9)&amp;&amp;g.push(i.substr(0,i.length-10)),h.set(B(s(n,i).get()));continue}}else o.warn(&quot;unrecognized GUI edit: &quot;+i);delete d[i],&quot;range[&quot;===i.substr(i.length-8,6)&amp;&amp;(m[i.substr(0,i.length-9)]=1)}for(var v=0;v&lt;g.length;v++){var y=g[v];if(m[y]){var x=s(e,y).get();x&amp;&amp;delete x.autorange}}var b=n._tracePreGUI;for(var _ in b){var w,T=b[_],k=null;for(i in T){if(!k){var M=nt(_,r);if(M&lt;0){delete b[_];break}var A=it(_,t,(w=r[M]._fullInput).index);if(A&lt;0){delete b[_];break}k=t[A]}if(u=et(i,tt)){if(u.attr?c=(l=s(n,u.attr).get())&amp;&amp;rt(u.attr,e):(l=w.uirevision,void 0===(c=k.uirevision)&amp;&amp;(c=e.uirevision)),c&amp;&amp;c===l&amp;&amp;(null===(f=T[i])&amp;&amp;(f=void 0),at(p=(h=s(k,i)).get(),f))){h.set(B(s(w,i).get()));continue}}else o.warn(&quot;unrecognized GUI edit: &quot;+i+&quot; in trace uid &quot;+_);delete T[i]}}}(t.data,t.layout,c,p),h.supplyDefaults(t,{skipUpdateCalc:!0});var v=t._fullData,y=t._fullLayout,x=void 0===y.datarevision,b=y.transition,_=function(t,e,r,n,i){var a=M.layoutFlags();function o(t){return f.getLayoutValObject(r,t)}a.arrays={},a.rangesAltered={},a.nChanges=0,a.nChangesAnim=0,ot(e,r,[],{getValObject:o,flags:a,immutable:n,transition:i,gd:t}),(a.plot||a.calc)&amp;&amp;(a.layoutReplot=!0);i&amp;&amp;a.nChanges&amp;&amp;a.nChangesAnim&amp;&amp;(a.anim=a.nChanges===a.nChangesAnim?&quot;all&quot;:&quot;some&quot;);return a}(t,p,y,x,b),w=_.newDataRevision,A=function(t,e,r,n,i,a){var o=e.length===r.length;if(!i&amp;&amp;!o)return{fullReplot:!0,calc:!0};var s,l,c=M.traceFlags();c.arrays={},c.nChanges=0,c.nChangesAnim=0;var u={getValObject:function(t){var e=f.getTraceValObject(l,t);return!l._module.animatable&amp;&amp;e.anim&amp;&amp;(e.anim=!1),e},flags:c,immutable:n,transition:i,newDataRevision:a,gd:t},p={};for(s=0;s&lt;e.length;s++)if(r[s]){if(l=r[s]._fullInput,h.hasMakesDataTransform(l)&amp;&amp;(l=r[s]),p[l.uid])continue;p[l.uid]=1,ot(e[s]._fullInput,l,[],u)}(c.calc||c.plot)&amp;&amp;(c.fullReplot=!0);i&amp;&amp;c.nChanges&amp;&amp;c.nChangesAnim&amp;&amp;(c.anim=c.nChanges===c.nChangesAnim&amp;&amp;o?&quot;all&quot;:&quot;some&quot;);return c}(t,c,v,x,b,w);if(J(t)&amp;&amp;(_.layoutReplot=!0),A.calc||_.calc){t.calcdata=void 0;for(var S=Object.getOwnPropertyNames(y),C=0;C&lt;S.length;C++){var L=S[C],P=L.substring(0,5);if(&quot;xaxis&quot;===P||&quot;yaxis&quot;===P){var z=y[L]._emptyCategories;z&amp;&amp;z()}}}else h.supplyDefaultsUpdateCalc(t.calcdata,v);var O=[];if(a&amp;&amp;(t._transitionData={},h.createTransitionData(t),O.push((function(){return r.addFrames(t,a)}))),y.transition&amp;&amp;!g&amp;&amp;(A.anim||_.anim))_.ticks&amp;&amp;O.push(k.doTicksRelayout),h.doCalcdata(t),k.doAutoRangeAndConstraints(t),O.push((function(){return h.transitionFromReact(t,A,_,p)}));else if(A.fullReplot||_.layoutReplot||g)t._fullLayout._skipDefaults=!0,O.push(r.plot);else{for(var D in _.arrays){var R=_.arrays[D];if(R.length){var F=u.getComponentMethod(D,&quot;drawOne&quot;);if(F!==o.noop)for(var N=0;N&lt;R.length;N++)F(t,R[N]);else{var j=u.getComponentMethod(D,&quot;draw&quot;);if(j===o.noop)throw new Error(&quot;cannot draw components: &quot;+D);j(t)}}}O.push(h.previousPromises),A.style&amp;&amp;O.push(k.doTraceStyle),(A.colorbars||_.colorbars)&amp;&amp;O.push(k.doColorBars),_.legend&amp;&amp;O.push(k.doLegend),_.layoutstyle&amp;&amp;O.push(k.layoutStyles),_.axrange&amp;&amp;G(O),_.ticks&amp;&amp;O.push(k.doTicksRelayout),_.modebar&amp;&amp;O.push(k.doModeBar),_.camera&amp;&amp;O.push(k.doCamera),O.push(E)}O.push(h.rehover,h.redrag),(l=o.syncOrAsync(O,t))&amp;&amp;l.then||(l=Promise.resolve(t))}else l=r.newPlot(t,e,n,i);return l.then((function(){return t.emit(&quot;plotly_react&quot;,{data:e,layout:n}),t}))},r.redraw=function(t){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t);return T.cleanData(t.data),T.cleanLayout(t.layout),t.calcdata=void 0,r.plot(t).then((function(){return t.emit(&quot;plotly_redraw&quot;),t}))},r.relayout=q,r.restyle=F,r.setPlotConfig=function(t){return o.extendFlat(_,t)},r.update=K,r._guiRelayout=Q(q),r._guiRestyle=Q(F),r._guiUpdate=Q(K),r._storeDirectGUIEdit=function(t,e,r){for(var n in r){j(n,s(t,n).get(),r[n],e)}}},{&quot;../components/color&quot;:643,&quot;../components/drawing&quot;:665,&quot;../constants/xmlns_namespaces&quot;:754,&quot;../lib&quot;:778,&quot;../lib/events&quot;:767,&quot;../lib/queue&quot;:794,&quot;../lib/svg_text_utils&quot;:803,&quot;../plots/cartesian/axes&quot;:828,&quot;../plots/cartesian/constants&quot;:834,&quot;../plots/cartesian/graph_interact&quot;:837,&quot;../plots/cartesian/select&quot;:847,&quot;../plots/plots&quot;:891,&quot;../plots/polar/legacy&quot;:899,&quot;../registry&quot;:911,&quot;./edit_types&quot;:810,&quot;./helpers&quot;:811,&quot;./manage_arrays&quot;:813,&quot;./plot_config&quot;:815,&quot;./plot_schema&quot;:816,&quot;./subroutines&quot;:818,d3:169,&quot;fast-isnumeric&quot;:241,&quot;has-hover&quot;:440}],815:[function(t,e,r){&quot;use strict&quot;;var n={staticPlot:{valType:&quot;boolean&quot;,dflt:!1},plotlyServerURL:{valType:&quot;string&quot;,dflt:&quot;&quot;},editable:{valType:&quot;boolean&quot;,dflt:!1},edits:{annotationPosition:{valType:&quot;boolean&quot;,dflt:!1},annotationTail:{valType:&quot;boolean&quot;,dflt:!1},annotationText:{valType:&quot;boolean&quot;,dflt:!1},axisTitleText:{valType:&quot;boolean&quot;,dflt:!1},colorbarPosition:{valType:&quot;boolean&quot;,dflt:!1},colorbarTitleText:{valType:&quot;boolean&quot;,dflt:!1},legendPosition:{valType:&quot;boolean&quot;,dflt:!1},legendText:{valType:&quot;boolean&quot;,dflt:!1},shapePosition:{valType:&quot;boolean&quot;,dflt:!1},titleText:{valType:&quot;boolean&quot;,dflt:!1}},autosizable:{valType:&quot;boolean&quot;,dflt:!1},responsive:{valType:&quot;boolean&quot;,dflt:!1},fillFrame:{valType:&quot;boolean&quot;,dflt:!1},frameMargins:{valType:&quot;number&quot;,dflt:0,min:0,max:.5},scrollZoom:{valType:&quot;flaglist&quot;,flags:[&quot;cartesian&quot;,&quot;gl3d&quot;,&quot;geo&quot;,&quot;mapbox&quot;],extras:[!0,!1],dflt:&quot;gl3d+geo+mapbox&quot;},doubleClick:{valType:&quot;enumerated&quot;,values:[!1,&quot;reset&quot;,&quot;autosize&quot;,&quot;reset+autosize&quot;],dflt:&quot;reset+autosize&quot;},doubleClickDelay:{valType:&quot;number&quot;,dflt:300,min:0},showAxisDragHandles:{valType:&quot;boolean&quot;,dflt:!0},showAxisRangeEntryBoxes:{valType:&quot;boolean&quot;,dflt:!0},showTips:{valType:&quot;boolean&quot;,dflt:!0},showLink:{valType:&quot;boolean&quot;,dflt:!1},linkText:{valType:&quot;string&quot;,dflt:&quot;Edit chart&quot;,noBlank:!0},sendData:{valType:&quot;boolean&quot;,dflt:!0},showSources:{valType:&quot;any&quot;,dflt:!1},displayModeBar:{valType:&quot;enumerated&quot;,values:[&quot;hover&quot;,!0,!1],dflt:&quot;hover&quot;},showSendToCloud:{valType:&quot;boolean&quot;,dflt:!1},showEditInChartStudio:{valType:&quot;boolean&quot;,dflt:!1},modeBarButtonsToRemove:{valType:&quot;any&quot;,dflt:[]},modeBarButtonsToAdd:{valType:&quot;any&quot;,dflt:[]},modeBarButtons:{valType:&quot;any&quot;,dflt:!1},toImageButtonOptions:{valType:&quot;any&quot;,dflt:{}},displaylogo:{valType:&quot;boolean&quot;,dflt:!0},watermark:{valType:&quot;boolean&quot;,dflt:!1},plotGlPixelRatio:{valType:&quot;number&quot;,dflt:2,min:1,max:4},setBackground:{valType:&quot;any&quot;,dflt:&quot;transparent&quot;},topojsonURL:{valType:&quot;string&quot;,noBlank:!0,dflt:&quot;https://cdn.plot.ly/&quot;},mapboxAccessToken:{valType:&quot;string&quot;,dflt:null},logging:{valType:&quot;integer&quot;,min:0,max:2,dflt:1},notifyOnLogging:{valType:&quot;integer&quot;,min:0,max:2,dflt:0},queueLength:{valType:&quot;integer&quot;,min:0,dflt:0},globalTransforms:{valType:&quot;any&quot;,dflt:[]},locale:{valType:&quot;string&quot;,dflt:&quot;en-US&quot;},locales:{valType:&quot;any&quot;,dflt:{}}},i={};!function t(e,r){for(var n in e){var i=e[n];i.valType?r[n]=i.dflt:(r[n]||(r[n]={}),t(i,r[n]))}}(n,i),e.exports={configAttributes:n,dfltConfig:i}},{}],816:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../plots/attributes&quot;),o=t(&quot;../plots/layout_attributes&quot;),s=t(&quot;../plots/frame_attributes&quot;),l=t(&quot;../plots/animation_attributes&quot;),c=t(&quot;./plot_config&quot;).configAttributes,u=t(&quot;../plots/polar/legacy/area_attributes&quot;),f=t(&quot;../plots/polar/legacy/axis_attributes&quot;),h=t(&quot;./edit_types&quot;),p=i.extendFlat,d=i.extendDeepAll,g=i.isPlainObject,m=i.isArrayOrTypedArray,v=i.nestedProperty,y=i.valObjectMeta,x=[&quot;_isSubplotObj&quot;,&quot;_isLinkedToArray&quot;,&quot;_arrayAttrRegexps&quot;,&quot;_deprecated&quot;];function b(t,e,r){if(!t)return!1;if(t._isLinkedToArray)if(_(e[r]))r++;else if(r&lt;e.length)return!1;for(;r&lt;e.length;r++){var n=t[e[r]];if(!g(n))break;if(t=n,r===e.length-1)break;if(t._isLinkedToArray){if(!_(e[++r]))return!1}else if(&quot;info_array&quot;===t.valType){var i=e[++r];if(!_(i))return!1;var a=t.items;if(Array.isArray(a)){if(i&gt;=a.length)return!1;if(2===t.dimensions){if(r++,e.length===r)return t;var o=e[r];if(!_(o))return!1;t=a[i][o]}else t=a[i]}else t=a}}return t}function _(t){return t===Math.round(t)&amp;&amp;t&gt;=0}function w(){var t,e,r={};for(t in d(r,o),n.subplotsRegistry){if((e=n.subplotsRegistry[t]).layoutAttributes)if(Array.isArray(e.attr))for(var i=0;i&lt;e.attr.length;i++)M(r,e,e.attr[i]);else M(r,e,&quot;subplot&quot;===e.attr?e.name:e.attr)}for(t in r=function(t){return p(t,{radialaxis:f.radialaxis,angularaxis:f.angularaxis}),p(t,f.layout),t}(r),n.componentsRegistry){var a=(e=n.componentsRegistry[t]).schema;if(a&amp;&amp;(a.subplots||a.layout)){var s=a.subplots;if(s&amp;&amp;s.xaxis&amp;&amp;!s.yaxis)for(var l in s.xaxis)delete r.yaxis[l]}else&quot;colorscale&quot;===e.name?d(r,e.layoutAttributes):e.layoutAttributes&amp;&amp;A(r,e.layoutAttributes,e.name)}return{layoutAttributes:k(r)}}function T(){var t={frames:d({},s)};return k(t),t.frames}function k(t){return function(t){r.crawl(t,(function(t,e,n){r.isValObject(t)?&quot;data_array&quot;===t.valType?(t.role=&quot;data&quot;,n[e+&quot;src&quot;]={valType:&quot;string&quot;,editType:&quot;none&quot;}):!0===t.arrayOk&amp;&amp;(n[e+&quot;src&quot;]={valType:&quot;string&quot;,editType:&quot;none&quot;}):g(t)&amp;&amp;(t.role=&quot;object&quot;)}))}(t),function(t){r.crawl(t,(function(t,e,r){if(t){var n=t._isLinkedToArray;n&amp;&amp;(delete t._isLinkedToArray,r[e]={items:{}},r[e].items[n]=t,r[e].role=&quot;object&quot;)}}))}(t),function(t){!function t(e){for(var r in e)if(g(e[r]))t(e[r]);else if(Array.isArray(e[r]))for(var n=0;n&lt;e[r].length;n++)t(e[r][n]);else e[r]instanceof RegExp&amp;&amp;(e[r]=e[r].toString())}(t)}(t),t}function M(t,e,r){var n=v(t,r),i=d({},e.layoutAttributes);i._isSubplotObj=!0,n.set(i)}function A(t,e,r){var n=v(t,r);n.set(d(n.get()||{},e))}r.IS_SUBPLOT_OBJ=&quot;_isSubplotObj&quot;,r.IS_LINKED_TO_ARRAY=&quot;_isLinkedToArray&quot;,r.DEPRECATED=&quot;_deprecated&quot;,r.UNDERSCORE_ATTRS=x,r.get=function(){var t={};n.allTypes.concat(&quot;area&quot;).forEach((function(e){t[e]=function(t){var e,i;&quot;area&quot;===t?(e={attributes:u},i={}):(e=n.modules[t]._module,i=e.basePlotModule);var o={type:null},s=d({},a),l=d({},e.attributes);r.crawl(l,(function(t,e,r,n,i){v(s,i).set(void 0),void 0===t&amp;&amp;v(l,i).set(void 0)})),d(o,s),n.traceIs(t,&quot;noOpacity&quot;)&amp;&amp;delete o.opacity;n.traceIs(t,&quot;showLegend&quot;)||(delete o.showlegend,delete o.legendgroup);n.traceIs(t,&quot;noHover&quot;)&amp;&amp;(delete o.hoverinfo,delete o.hoverlabel);e.selectPoints||delete o.selectedpoints;d(o,l),i.attributes&amp;&amp;d(o,i.attributes);o.type=t;var c={meta:e.meta||{},categories:e.categories||{},animatable:Boolean(e.animatable),type:t,attributes:k(o)};if(e.layoutAttributes){var f={};d(f,e.layoutAttributes),c.layoutAttributes=k(f)}e.animatable||r.crawl(c,(function(t){r.isValObject(t)&amp;&amp;&quot;anim&quot;in t&amp;&amp;delete t.anim}));return c}(e)}));var e={};return Object.keys(n.transformsRegistry).forEach((function(t){e[t]=function(t){var e=n.transformsRegistry[t],r=d({},e.attributes);return Object.keys(n.componentsRegistry).forEach((function(e){var i=n.componentsRegistry[e];i.schema&amp;&amp;i.schema.transforms&amp;&amp;i.schema.transforms[t]&amp;&amp;Object.keys(i.schema.transforms[t]).forEach((function(e){A(r,i.schema.transforms[t][e],e)}))})),{attributes:k(r)}}(t)})),{defs:{valObjects:y,metaKeys:x.concat([&quot;description&quot;,&quot;role&quot;,&quot;editType&quot;,&quot;impliedEdits&quot;]),editType:{traces:h.traces,layout:h.layout},impliedEdits:{}},traces:t,layout:w(),transforms:e,frames:T(),animation:k(l),config:k(c)}},r.crawl=function(t,e,n,i){var a=n||0;i=i||&quot;&quot;,Object.keys(t).forEach((function(n){var o=t[n];if(-1===x.indexOf(n)){var s=(i?i+&quot;.&quot;:&quot;&quot;)+n;e(o,n,t,a,s),r.isValObject(o)||g(o)&amp;&amp;&quot;impliedEdits&quot;!==n&amp;&amp;r.crawl(o,e,a+1,s)}}))},r.isValObject=function(t){return t&amp;&amp;void 0!==t.valType},r.findArrayAttributes=function(t){var e,n,i=[],o=[],s=[];function l(t,r,a,l){o=o.slice(0,l).concat([r]),s=s.slice(0,l).concat([t&amp;&amp;t._isLinkedToArray]),t&amp;&amp;(&quot;data_array&quot;===t.valType||!0===t.arrayOk)&amp;&amp;!(&quot;colorbar&quot;===o[l-1]&amp;&amp;(&quot;ticktext&quot;===r||&quot;tickvals&quot;===r))&amp;&amp;function t(e,r,a){var l=e[o[r]],c=a+o[r];if(r===o.length-1)m(l)&amp;&amp;i.push(n+c);else if(s[r]){if(Array.isArray(l))for(var u=0;u&lt;l.length;u++)g(l[u])&amp;&amp;t(l[u],r+1,c+&quot;[&quot;+u+&quot;].&quot;)}else g(l)&amp;&amp;t(l,r+1,c+&quot;.&quot;)}(e,0,&quot;&quot;)}e=t,n=&quot;&quot;,r.crawl(a,l),t._module&amp;&amp;t._module.attributes&amp;&amp;r.crawl(t._module.attributes,l);var c=t.transforms;if(c)for(var u=0;u&lt;c.length;u++){var f=c[u],h=f._module;h&amp;&amp;(n=&quot;transforms[&quot;+u+&quot;].&quot;,e=f,r.crawl(h.attributes,l))}return i},r.getTraceValObject=function(t,e){var r,i,o=e[0],s=1;if(&quot;transforms&quot;===o){if(1===e.length)return a.transforms;var l=t.transforms;if(!Array.isArray(l)||!l.length)return!1;var c=e[1];if(!_(c)||c&gt;=l.length)return!1;i=(r=(n.transformsRegistry[l[c].type]||{}).attributes)&amp;&amp;r[e[2]],s=3}else if(&quot;area&quot;===t.type)i=u[o];else{var f=t._module;if(f||(f=(n.modules[t.type||a.type.dflt]||{})._module),!f)return!1;if(!(i=(r=f.attributes)&amp;&amp;r[o])){var h=f.basePlotModule;h&amp;&amp;h.attributes&amp;&amp;(i=h.attributes[o])}i||(i=a[o])}return b(i,e,s)},r.getLayoutValObject=function(t,e){return b(function(t,e){var r,i,a,s,l=t._basePlotModules;if(l){var c;for(r=0;r&lt;l.length;r++){if((a=l[r]).attrRegex&amp;&amp;a.attrRegex.test(e)){if(a.layoutAttrOverrides)return a.layoutAttrOverrides;!c&amp;&amp;a.layoutAttributes&amp;&amp;(c=a.layoutAttributes)}var u=a.baseLayoutAttrOverrides;if(u&amp;&amp;e in u)return u[e]}if(c)return c}var h=t._modules;if(h)for(r=0;r&lt;h.length;r++)if((s=h[r].layoutAttributes)&amp;&amp;e in s)return s[e];for(i in n.componentsRegistry){if(&quot;colorscale&quot;===(a=n.componentsRegistry[i]).name&amp;&amp;0===e.indexOf(&quot;coloraxis&quot;))return a.layoutAttributes[e];if(!a.schema&amp;&amp;e===a.name)return a.layoutAttributes}if(e in o)return o[e];if(&quot;radialaxis&quot;===e||&quot;angularaxis&quot;===e)return f[e];return f.layout[e]||!1}(t,e[0]),e,1)}},{&quot;../lib&quot;:778,&quot;../plots/animation_attributes&quot;:822,&quot;../plots/attributes&quot;:824,&quot;../plots/frame_attributes&quot;:857,&quot;../plots/layout_attributes&quot;:882,&quot;../plots/polar/legacy/area_attributes&quot;:897,&quot;../plots/polar/legacy/axis_attributes&quot;:898,&quot;../registry&quot;:911,&quot;./edit_types&quot;:810,&quot;./plot_config&quot;:815}],817:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/attributes&quot;),a={name:{valType:&quot;string&quot;,editType:&quot;none&quot;}};function o(t){return t&amp;&amp;&quot;string&quot;==typeof t}function s(t){var e=t.length-1;return&quot;s&quot;!==t.charAt(e)&amp;&amp;n.warn(&quot;bad argument to arrayDefaultKey: &quot;+t),t.substr(0,t.length-1)+&quot;defaults&quot;}a.templateitemname={valType:&quot;string&quot;,editType:&quot;calc&quot;},r.templatedArray=function(t,e){return e._isLinkedToArray=t,e.name=a.name,e.templateitemname=a.templateitemname,e},r.traceTemplater=function(t){var e,r,a={};for(e in t)r=t[e],Array.isArray(r)&amp;&amp;r.length&amp;&amp;(a[e]=0);return{newTrace:function(o){var s={type:e=n.coerce(o,{},i,&quot;type&quot;),_template:null};if(e in a){r=t[e];var l=a[e]%r.length;a[e]++,s._template=r[l]}return s}}},r.newContainer=function(t,e,r){var i=t._template,a=i&amp;&amp;(i[e]||r&amp;&amp;i[r]);return n.isPlainObject(a)||(a=null),t[e]={_template:a}},r.arrayTemplater=function(t,e,r){var n=t._template,i=n&amp;&amp;n[s(e)],a=n&amp;&amp;n[e];Array.isArray(a)&amp;&amp;a.length||(a=[]);var l={};return{newItem:function(t){var e={name:t.name,_input:t},n=e.templateitemname=t.templateitemname;if(!o(n))return e._template=i,e;for(var s=0;s&lt;a.length;s++){var c=a[s];if(c.name===n)return l[n]=1,e._template=c,e}return e[r]=t[r]||!1,e._template=!1,e},defaultItems:function(){for(var t=[],e=0;e&lt;a.length;e++){var r=a[e],n=r.name;if(o(n)&amp;&amp;!l[n]){var i={_template:r,name:n,_input:{_templateitemname:n}};i.templateitemname=r.templateitemname,t.push(i),l[n]=1}}return t}}},r.arrayDefaultKey=s,r.arrayEditor=function(t,e,r){var i=(n.nestedProperty(t,e).get()||[]).length,a=r._index,o=a&gt;=i&amp;&amp;(r._input||{})._templateitemname;o&amp;&amp;(a=i);var s,l=e+&quot;[&quot;+a+&quot;]&quot;;function c(){s={},o&amp;&amp;(s[l]={},s[l].templateitemname=o)}function u(t,e){o?n.nestedProperty(s[l],t).set(e):s[l+&quot;.&quot;+t]=e}function f(){var t=s;return c(),t}return c(),{modifyBase:function(t,e){s[t]=e},modifyItem:u,getUpdateObj:f,applyUpdate:function(e,r){e&amp;&amp;u(e,r);var i=f();for(var a in i)n.nestedProperty(t,a).set(i[a])}}}},{&quot;../lib&quot;:778,&quot;../plots/attributes&quot;:824}],818:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../registry&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../lib/clear_gl_canvases&quot;),l=t(&quot;../components/color&quot;),c=t(&quot;../components/drawing&quot;),u=t(&quot;../components/titles&quot;),f=t(&quot;../components/modebar&quot;),h=t(&quot;../plots/cartesian/axes&quot;),p=t(&quot;../constants/alignment&quot;),d=t(&quot;../plots/cartesian/constraints&quot;),g=d.enforce,m=d.clean,v=t(&quot;../plots/cartesian/autorange&quot;).doAutoRange;function y(t,e,r){for(var n=0;n&lt;r.length;n++){var i=r[n][0],a=r[n][1];if(!(i[0]&gt;=t[1]||i[1]&lt;=t[0])&amp;&amp;(a[0]&lt;e[1]&amp;&amp;a[1]&gt;e[0]))return!0}return!1}function x(t){var e,i,s,u,d,g,m=t._fullLayout,v=m._size,x=v.p,_=h.list(t,&quot;&quot;,!0);if(m._paperdiv.style({width:t._context.responsive&amp;&amp;m.autosize&amp;&amp;!t._context._hasZeroWidth&amp;&amp;!t.layout.width?&quot;100%&quot;:m.width+&quot;px&quot;,height:t._context.responsive&amp;&amp;m.autosize&amp;&amp;!t._context._hasZeroHeight&amp;&amp;!t.layout.height?&quot;100%&quot;:m.height+&quot;px&quot;}).selectAll(&quot;.main-svg&quot;).call(c.setSize,m.width,m.height),t._context.setBackground(t,m.paper_bgcolor),r.drawMainTitle(t),f.manage(t),!m._has(&quot;cartesian&quot;))return a.previousPromises(t);function T(t,e,r){var n=t._lw/2;return&quot;x&quot;===t._id.charAt(0)?e?&quot;top&quot;===r?e._offset-x-n:e._offset+e._length+x+n:v.t+v.h*(1-(t.position||0))+n%1:e?&quot;right&quot;===r?e._offset+e._length+x+n:e._offset-x-n:v.l+v.w*(t.position||0)+n%1}for(e=0;e&lt;_.length;e++){var k=(u=_[e])._anchorAxis;u._linepositions={},u._lw=c.crispRound(t,u.linewidth,1),u._mainLinePosition=T(u,k,u.side),u._mainMirrorPosition=u.mirror&amp;&amp;k?T(u,k,p.OPPOSITE_SIDE[u.side]):null}var M=[],A=[],S=[],E=1===l.opacity(m.paper_bgcolor)&amp;&amp;1===l.opacity(m.plot_bgcolor)&amp;&amp;m.paper_bgcolor===m.plot_bgcolor;for(i in m._plots)if((s=m._plots[i]).mainplot)s.bg&amp;&amp;s.bg.remove(),s.bg=void 0;else{var C=s.xaxis.domain,L=s.yaxis.domain,I=s.plotgroup;if(y(C,L,S)){var P=I.node(),z=s.bg=o.ensureSingle(I,&quot;rect&quot;,&quot;bg&quot;);P.insertBefore(z.node(),P.childNodes[0]),A.push(i)}else I.select(&quot;rect.bg&quot;).remove(),S.push([C,L]),E||(M.push(i),A.push(i))}var O,D,R,F,B,N,j,U,V,q,H,G,Y,W=m._bgLayer.selectAll(&quot;.bg&quot;).data(M);for(W.enter().append(&quot;rect&quot;).classed(&quot;bg&quot;,!0),W.exit().remove(),W.each((function(t){m._plots[t].bg=n.select(this)})),e=0;e&lt;A.length;e++)s=m._plots[A[e]],d=s.xaxis,g=s.yaxis,s.bg&amp;&amp;void 0!==d._offset&amp;&amp;void 0!==g._offset&amp;&amp;s.bg.call(c.setRect,d._offset-x,g._offset-x,d._length+2*x,g._length+2*x).call(l.fill,m.plot_bgcolor).style(&quot;stroke-width&quot;,0);if(!m._hasOnlyLargeSploms)for(i in m._plots){s=m._plots[i],d=s.xaxis,g=s.yaxis;var X,Z,J=s.clipId=&quot;clip&quot;+m._uid+i+&quot;plot&quot;,K=o.ensureSingleById(m._clips,&quot;clipPath&quot;,J,(function(t){t.classed(&quot;plotclip&quot;,!0).append(&quot;rect&quot;)}));s.clipRect=K.select(&quot;rect&quot;).attr({width:d._length,height:g._length}),c.setTranslate(s.plot,d._offset,g._offset),s._hasClipOnAxisFalse?(X=null,Z=J):(X=J,Z=null),c.setClipUrl(s.plot,X,t),s.layerClipId=Z}function Q(t){return&quot;M&quot;+O+&quot;,&quot;+t+&quot;H&quot;+D}function $(t){return&quot;M&quot;+d._offset+&quot;,&quot;+t+&quot;h&quot;+d._length}function tt(t){return&quot;M&quot;+t+&quot;,&quot;+U+&quot;V&quot;+j}function et(t){return&quot;M&quot;+t+&quot;,&quot;+g._offset+&quot;v&quot;+g._length}function rt(t,e,r){if(!t.showline||i!==t._mainSubplot)return&quot;&quot;;if(!t._anchorAxis)return r(t._mainLinePosition);var n=e(t._mainLinePosition);return t.mirror&amp;&amp;(n+=e(t._mainMirrorPosition)),n}for(i in m._plots){s=m._plots[i],d=s.xaxis,g=s.yaxis;var nt=&quot;M0,0&quot;;b(d,i)&amp;&amp;(B=w(d,&quot;left&quot;,g,_),O=d._offset-(B?x+B:0),N=w(d,&quot;right&quot;,g,_),D=d._offset+d._length+(N?x+N:0),R=T(d,g,&quot;bottom&quot;),F=T(d,g,&quot;top&quot;),!(Y=!d._anchorAxis||i!==d._mainSubplot)||&quot;allticks&quot;!==d.mirror&amp;&amp;&quot;all&quot;!==d.mirror||(d._linepositions[i]=[R,F]),nt=rt(d,Q,$),Y&amp;&amp;d.showline&amp;&amp;(&quot;all&quot;===d.mirror||&quot;allticks&quot;===d.mirror)&amp;&amp;(nt+=Q(R)+Q(F)),s.xlines.style(&quot;stroke-width&quot;,d._lw+&quot;px&quot;).call(l.stroke,d.showline?d.linecolor:&quot;rgba(0,0,0,0)&quot;)),s.xlines.attr(&quot;d&quot;,nt);var it=&quot;M0,0&quot;;b(g,i)&amp;&amp;(H=w(g,&quot;bottom&quot;,d,_),j=g._offset+g._length+(H?x:0),G=w(g,&quot;top&quot;,d,_),U=g._offset-(G?x:0),V=T(g,d,&quot;left&quot;),q=T(g,d,&quot;right&quot;),!(Y=!g._anchorAxis||i!==g._mainSubplot)||&quot;allticks&quot;!==g.mirror&amp;&amp;&quot;all&quot;!==g.mirror||(g._linepositions[i]=[V,q]),it=rt(g,tt,et),Y&amp;&amp;g.showline&amp;&amp;(&quot;all&quot;===g.mirror||&quot;allticks&quot;===g.mirror)&amp;&amp;(it+=tt(V)+tt(q)),s.ylines.style(&quot;stroke-width&quot;,g._lw+&quot;px&quot;).call(l.stroke,g.showline?g.linecolor:&quot;rgba(0,0,0,0)&quot;)),s.ylines.attr(&quot;d&quot;,it)}return h.makeClipPaths(t),a.previousPromises(t)}function b(t,e){return(t.ticks||t.showline)&amp;&amp;(e===t._mainSubplot||&quot;all&quot;===t.mirror||&quot;allticks&quot;===t.mirror)}function _(t,e,r){if(!r.showline||!r._lw)return!1;if(&quot;all&quot;===r.mirror||&quot;allticks&quot;===r.mirror)return!0;var n=r._anchorAxis;if(!n)return!1;var i=p.FROM_BL[e];return r.side===e?n.domain[i]===t.domain[i]:r.mirror&amp;&amp;n.domain[1-i]===t.domain[1-i]}function w(t,e,r,n){if(_(t,e,r))return r._lw;for(var i=0;i&lt;n.length;i++){var a=n[i];if(a._mainAxis===r._mainAxis&amp;&amp;_(t,e,a))return a._lw}return 0}function T(t,e){var r=t.title,n=t._size,i=0;switch(&quot;start&quot;===e?i=r.pad.l:&quot;end&quot;===e&amp;&amp;(i=-r.pad.r),r.xref){case&quot;paper&quot;:return n.l+n.w*r.x+i;case&quot;container&quot;:default:return t.width*r.x+i}}function k(t,e){var r=t.title,n=t._size,i=0;if(&quot;0em&quot;!==e&amp;&amp;e?e===p.CAP_SHIFT+&quot;em&quot;&amp;&amp;(i=r.pad.t):i=-r.pad.b,&quot;auto&quot;===r.y)return n.t/2;switch(r.yref){case&quot;paper&quot;:return n.t+n.h-n.h*r.y+i;case&quot;container&quot;:default:return t.height-t.height*r.y+i}}r.layoutStyles=function(t){return o.syncOrAsync([a.doAutoMargin,x],t)},r.drawMainTitle=function(t){var e=t._fullLayout,r=function(t){var e=t.title,r=&quot;middle&quot;;o.isRightAnchor(e)?r=&quot;end&quot;:o.isLeftAnchor(e)&amp;&amp;(r=&quot;start&quot;);return r}(e),n=function(t){var e=t.title,r=&quot;0em&quot;;o.isTopAnchor(e)?r=p.CAP_SHIFT+&quot;em&quot;:o.isMiddleAnchor(e)&amp;&amp;(r=p.MID_SHIFT+&quot;em&quot;);return r}(e);u.draw(t,&quot;gtitle&quot;,{propContainer:e,propName:&quot;title.text&quot;,placeholder:e._dfltTitle.plot,attributes:{x:T(e,r),y:k(e,n),&quot;text-anchor&quot;:r,dy:n}})},r.doTraceStyle=function(t){var e,n=t.calcdata,o=[];for(e=0;e&lt;n.length;e++){var l=n[e],c=l[0]||{},u=c.trace||{},f=u._module||{},h=f.arraysToCalcdata;h&amp;&amp;h(l,u);var p=f.editStyle;p&amp;&amp;o.push({fn:p,cd0:c})}if(o.length){for(e=0;e&lt;o.length;e++){var d=o[e];d.fn(t,d.cd0)}s(t),r.redrawReglTraces(t)}return a.style(t),i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.doColorBars=function(t){return i.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.layoutReplot=function(t){var e=t.layout;return t.layout=void 0,i.call(&quot;plot&quot;,t,&quot;&quot;,e)},r.doLegend=function(t){return i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.doTicksRelayout=function(t){return h.draw(t,&quot;redraw&quot;),t._fullLayout._hasOnlyLargeSploms&amp;&amp;(i.subplotsRegistry.splom.updateGrid(t),s(t),r.redrawReglTraces(t)),r.drawMainTitle(t),a.previousPromises(t)},r.doModeBar=function(t){var e=t._fullLayout;f.manage(t);for(var r=0;r&lt;e._basePlotModules.length;r++){var n=e._basePlotModules[r].updateFx;n&amp;&amp;n(t)}return a.previousPromises(t)},r.doCamera=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n&lt;r.length;n++){var i=e[r[n]];i._scene.setViewport(i)}},r.drawData=function(t){var e=t._fullLayout;s(t);for(var n=e._basePlotModules,o=0;o&lt;n.length;o++)n[o].plot(t);return r.redrawReglTraces(t),a.style(t),i.getComponentMethod(&quot;shapes&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;annotations&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;images&quot;,&quot;draw&quot;)(t),e._replotting=!1,a.previousPromises(t)},r.redrawReglTraces=function(t){var e=t._fullLayout;if(e._has(&quot;regl&quot;)){var r,n,i=t._fullData,a=[],s=[];for(e._hasOnlyLargeSploms&amp;&amp;e._splomGrid.draw(),r=0;r&lt;i.length;r++){var l=i[r];!0===l.visible&amp;&amp;0!==l._length&amp;&amp;(&quot;splom&quot;===l.type?e._splomScenes[l.uid].draw():&quot;scattergl&quot;===l.type?o.pushUnique(a,l.xaxis+l.yaxis):&quot;scatterpolargl&quot;===l.type&amp;&amp;o.pushUnique(s,l.subplot))}for(r=0;r&lt;a.length;r++)(n=e._plots[a[r]])._scene&amp;&amp;n._scene.draw();for(r=0;r&lt;s.length;r++)(n=e[s[r]]._subplot)._scene&amp;&amp;n._scene.draw()}},r.doAutoRangeAndConstraints=function(t){for(var e,r=h.list(t,&quot;&quot;,!0),n={},i=0;i&lt;r.length;i++)if(!n[(e=r[i])._id]){n[e._id]=1,m(t,e),v(t,e);var a=e._matchGroup;if(a)for(var o in a){var s=h.getFromId(t,o);v(t,s,e.range),n[o]=1}}g(t)},r.finalDraw=function(t){i.getComponentMethod(&quot;rangeslider&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;rangeselector&quot;,&quot;draw&quot;)(t)},r.drawMarginPushers=function(t){i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;rangeselector&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;sliders&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;updatemenus&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t)}},{&quot;../components/color&quot;:643,&quot;../components/drawing&quot;:665,&quot;../components/modebar&quot;:703,&quot;../components/titles&quot;:738,&quot;../constants/alignment&quot;:745,&quot;../lib&quot;:778,&quot;../lib/clear_gl_canvases&quot;:762,&quot;../plots/cartesian/autorange&quot;:827,&quot;../plots/cartesian/axes&quot;:828,&quot;../plots/cartesian/constraints&quot;:835,&quot;../plots/plots&quot;:891,&quot;../registry&quot;:911,d3:169}],819:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=n.isPlainObject,a=t(&quot;./plot_schema&quot;),o=t(&quot;../plots/plots&quot;),s=t(&quot;../plots/attributes&quot;),l=t(&quot;./plot_template&quot;),c=t(&quot;./plot_config&quot;).dfltConfig;function u(t,e){t=n.extendDeep({},t);var r,a,o=Object.keys(t).sort();function s(e,r,n){if(i(r)&amp;&amp;i(e))u(e,r);else if(Array.isArray(r)&amp;&amp;Array.isArray(e)){var o=l.arrayTemplater({_template:t},n);for(a=0;a&lt;r.length;a++){var s=r[a],c=o.newItem(s)._template;c&amp;&amp;u(c,s)}var f=o.defaultItems();for(a=0;a&lt;f.length;a++)r.push(f[a]._template);for(a=0;a&lt;r.length;a++)delete r[a].templateitemname}}for(r=0;r&lt;o.length;r++){var c=o[r],h=t[c];if(c in e?s(h,e[c],c):e[c]=h,f(c)===c)for(var p in e){var d=f(p);p===d||d!==c||p in t||s(h,e[p],c)}}}function f(t){return t.replace(/[0-9]+$/,&quot;&quot;)}function h(t,e,r,a,o){var s=o&amp;&amp;r(o);for(var c in t){var u=t[c],p=g(t,c,a),d=g(t,c,o),m=r(d);if(!m){var v=f(c);v!==c&amp;&amp;(m=r(d=g(t,v,o)))}if((!s||s!==m)&amp;&amp;!(!m||m._noTemplating||&quot;data_array&quot;===m.valType||m.arrayOk&amp;&amp;Array.isArray(u)))if(!m.valType&amp;&amp;i(u))h(u,e,r,p,d);else if(m._isLinkedToArray&amp;&amp;Array.isArray(u))for(var y=!1,x=0,b={},_=0;_&lt;u.length;_++){var w=u[_];if(i(w)){var T=w.name;if(T)b[T]||(h(w,e,r,g(u,x,p),g(u,x,d)),x++,b[T]=1);else if(!y){var k=g(t,l.arrayDefaultKey(c),a),M=g(u,x,p);h(w,e,r,M,g(u,x,d));var A=n.nestedProperty(e,M);n.nestedProperty(e,k).set(A.get()),A.set(null),y=!0}}}else{n.nestedProperty(e,p).set(u)}}}function p(t,e){return a.getLayoutValObject(t,n.nestedProperty({},e).parts)}function d(t,e){return a.getTraceValObject(t,n.nestedProperty({},e).parts)}function g(t,e,r){return r?Array.isArray(t)?r+&quot;[&quot;+e+&quot;]&quot;:r+&quot;.&quot;+e:e}function m(t){for(var e=0;e&lt;t.length;e++)if(i(t[e]))return!0}function v(t){var e;switch(t.code){case&quot;data&quot;:e=&quot;The template has no key data.&quot;;break;case&quot;layout&quot;:e=&quot;The template has no key layout.&quot;;break;case&quot;missing&quot;:e=t.path?&quot;There are no templates for item &quot;+t.path+&quot; with name &quot;+t.templateitemname:&quot;There are no templates for trace &quot;+t.index+&quot;, of type &quot;+t.traceType+&quot;.&quot;;break;case&quot;unused&quot;:e=t.path?&quot;The template item at &quot;+t.path+&quot; was not used in constructing the plot.&quot;:t.dataCount?&quot;Some of the templates of type &quot;+t.traceType+&quot; were not used. The template has &quot;+t.templateCount+&quot; traces, the data only has &quot;+t.dataCount+&quot; of this type.&quot;:&quot;The template has &quot;+t.templateCount+&quot; traces of type &quot;+t.traceType+&quot; but there are none in the data.&quot;;break;case&quot;reused&quot;:e=&quot;Some of the templates of type &quot;+t.traceType+&quot; were used more than once. The template has &quot;+t.templateCount+&quot; traces, the data has &quot;+t.dataCount+&quot; of this type.&quot;}return t.msg=e,t}r.makeTemplate=function(t){t=n.isPlainObject(t)?t:n.getGraphDiv(t),t=n.extendDeep({_context:c},{data:t.data,layout:t.layout}),o.supplyDefaults(t);var e=t.data||[],r=t.layout||{};r._basePlotModules=t._fullLayout._basePlotModules,r._modules=t._fullLayout._modules;var a={data:{},layout:{}};e.forEach((function(t){var e={};h(t,e,d.bind(null,t));var r=n.coerce(t,{},s,&quot;type&quot;),i=a.data[r];i||(i=a.data[r]=[]),i.push(e)})),h(r,a.layout,p.bind(null,r)),delete a.layout.template;var l=r.template;if(i(l)){var f,g,m,v,y,x,b=l.layout;i(b)&amp;&amp;u(b,a.layout);var _=l.data;if(i(_)){for(g in a.data)if(m=_[g],Array.isArray(m)){for(x=(y=a.data[g]).length,v=m.length,f=0;f&lt;x;f++)u(m[f%v],y[f]);for(f=x;f&lt;v;f++)y.push(n.extendDeep({},m[f]))}for(g in _)g in a.data||(a.data[g]=n.extendDeep([],_[g]))}}return a},r.validateTemplate=function(t,e){var r=n.extendDeep({},{_context:c,data:t.data,layout:t.layout}),a=r.layout||{};i(e)||(e=a.template||{});var s=e.layout,l=e.data,u=[];r.layout=a,r.layout.template=e,o.supplyDefaults(r);var h=r._fullLayout,p=r._fullData,d={};if(i(s)?(!function t(e,r){for(var n in e)if(&quot;_&quot;!==n.charAt(0)&amp;&amp;i(e[n])){var a,o=f(n),s=[];for(a=0;a&lt;r.length;a++)s.push(g(e,n,r[a])),o!==n&amp;&amp;s.push(g(e,o,r[a]));for(a=0;a&lt;s.length;a++)d[s[a]]=1;t(e[n],s)}}(h,[&quot;layout&quot;]),function t(e,r){for(var n in e)if(-1===n.indexOf(&quot;defaults&quot;)&amp;&amp;i(e[n])){var a=g(e,n,r);d[a]?t(e[n],a):u.push({code:&quot;unused&quot;,path:a})}}(s,&quot;layout&quot;)):u.push({code:&quot;layout&quot;}),i(l)){for(var y,x={},b=0;b&lt;p.length;b++){var _=p[b];x[y=_.type]=(x[y]||0)+1,_._fullInput._template||u.push({code:&quot;missing&quot;,index:_._fullInput.index,traceType:y})}for(y in l){var w=l[y].length,T=x[y]||0;w&gt;T?u.push({code:&quot;unused&quot;,traceType:y,templateCount:w,dataCount:T}):T&gt;w&amp;&amp;u.push({code:&quot;reused&quot;,traceType:y,templateCount:w,dataCount:T})}}else u.push({code:&quot;data&quot;});if(function t(e,r){for(var n in e)if(&quot;_&quot;!==n.charAt(0)){var a=e[n],o=g(e,n,r);i(a)?(Array.isArray(e)&amp;&amp;!1===a._template&amp;&amp;a.templateitemname&amp;&amp;u.push({code:&quot;missing&quot;,path:o,templateitemname:a.templateitemname}),t(a,o)):Array.isArray(a)&amp;&amp;m(a)&amp;&amp;t(a,o)}}({data:p,layout:h},&quot;&quot;),u.length)return u.map(v)}},{&quot;../lib&quot;:778,&quot;../plots/attributes&quot;:824,&quot;../plots/plots&quot;:891,&quot;./plot_config&quot;:815,&quot;./plot_schema&quot;:816,&quot;./plot_template&quot;:817}],820:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./plot_api&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../snapshot/helpers&quot;),l=t(&quot;../snapshot/tosvg&quot;),c=t(&quot;../snapshot/svgtoimg&quot;),u=t(&quot;../version&quot;).version,f={format:{valType:&quot;enumerated&quot;,values:[&quot;png&quot;,&quot;jpeg&quot;,&quot;webp&quot;,&quot;svg&quot;,&quot;full-json&quot;],dflt:&quot;png&quot;},width:{valType:&quot;number&quot;,min:1},height:{valType:&quot;number&quot;,min:1},scale:{valType:&quot;number&quot;,min:0,dflt:1},setBackground:{valType:&quot;any&quot;,dflt:!1},imageDataOnly:{valType:&quot;boolean&quot;,dflt:!1}};e.exports=function(t,e){var r,h,p,d;function g(t){return!(t in e)||o.validate(e[t],f[t])}if(e=e||{},o.isPlainObject(t)?(r=t.data||[],h=t.layout||{},p=t.config||{},d={}):(t=o.getGraphDiv(t),r=o.extendDeep([],t.data),h=o.extendDeep({},t.layout),p=t._context,d=t._fullLayout||{}),!g(&quot;width&quot;)&amp;&amp;null!==e.width||!g(&quot;height&quot;)&amp;&amp;null!==e.height)throw new Error(&quot;Height and width should be pixel values.&quot;);if(!g(&quot;format&quot;))throw new Error(&quot;Export format is not &quot;+o.join2(f.format.values,&quot;, &quot;,&quot; or &quot;)+&quot;.&quot;);var m={};function v(t,r){return o.coerce(e,m,f,t,r)}var y=v(&quot;format&quot;),x=v(&quot;width&quot;),b=v(&quot;height&quot;),_=v(&quot;scale&quot;),w=v(&quot;setBackground&quot;),T=v(&quot;imageDataOnly&quot;),k=document.createElement(&quot;div&quot;);k.style.position=&quot;absolute&quot;,k.style.left=&quot;-5000px&quot;,document.body.appendChild(k);var M=o.extendFlat({},h);x?M.width=x:null===e.width&amp;&amp;n(d.width)&amp;&amp;(M.width=d.width),b?M.height=b:null===e.height&amp;&amp;n(d.height)&amp;&amp;(M.height=d.height);var A=o.extendFlat({},p,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),S=s.getRedrawFunc(k);function E(){return new Promise((function(t){setTimeout(t,s.getDelay(k._fullLayout))}))}function C(){return new Promise((function(t,e){var r=l(k,y,_),n=k._fullLayout.width,f=k._fullLayout.height;function h(){i.purge(k),document.body.removeChild(k)}if(&quot;full-json&quot;===y){var p=a.graphJson(k,!1,&quot;keepdata&quot;,&quot;object&quot;,!0,!0);return p.version=u,p=JSON.stringify(p),h(),t(T?p:s.encodeJSON(p))}if(h(),&quot;svg&quot;===y)return t(T?r:s.encodeSVG(r));var d=document.createElement(&quot;canvas&quot;);d.id=o.randstr(),c({format:y,width:n,height:f,scale:_,canvas:d,svg:r,promise:!0}).then(t).catch(e)}))}return new Promise((function(t,e){i.plot(k,r,M,A).then(S).then(E).then(C).then((function(e){t(function(t){return T?t.replace(s.IMAGE_URL_PREFIX,&quot;&quot;):t}(e))})).catch((function(t){e(t)}))}))}},{&quot;../lib&quot;:778,&quot;../plots/plots&quot;:891,&quot;../snapshot/helpers&quot;:915,&quot;../snapshot/svgtoimg&quot;:917,&quot;../snapshot/tosvg&quot;:919,&quot;../version&quot;:1370,&quot;./plot_api&quot;:814,&quot;fast-isnumeric&quot;:241}],821:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/plots&quot;),a=t(&quot;./plot_schema&quot;),o=t(&quot;./plot_config&quot;).dfltConfig,s=n.isPlainObject,l=Array.isArray,c=n.isArrayOrTypedArray;function u(t,e,r,i,a,o){o=o||[];for(var f=Object.keys(t),h=0;h&lt;f.length;h++){var p=f[h];if(&quot;transforms&quot;!==p){var v=o.slice();v.push(p);var y=t[p],x=e[p],b=m(r,p),_=(b||{}).valType,w=&quot;info_array&quot;===_,T=&quot;colorscale&quot;===_,k=(b||{}).items;if(g(r,p))if(s(y)&amp;&amp;s(x)&amp;&amp;&quot;any&quot;!==_)u(y,x,b,i,a,v);else if(w&amp;&amp;l(y)){y.length&gt;x.length&amp;&amp;i.push(d(&quot;unused&quot;,a,v.concat(x.length)));var M,A,S,E,C,L=x.length,I=Array.isArray(k);if(I&amp;&amp;(L=Math.min(L,k.length)),2===b.dimensions)for(A=0;A&lt;L;A++)if(l(y[A])){y[A].length&gt;x[A].length&amp;&amp;i.push(d(&quot;unused&quot;,a,v.concat(A,x[A].length)));var P=x[A].length;for(M=0;M&lt;(I?Math.min(P,k[A].length):P);M++)S=I?k[A][M]:k,E=y[A][M],C=x[A][M],n.validate(E,S)?C!==E&amp;&amp;C!==+E&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v.concat(A,M),E,C)):i.push(d(&quot;value&quot;,a,v.concat(A,M),E))}else i.push(d(&quot;array&quot;,a,v.concat(A),y[A]));else for(A=0;A&lt;L;A++)S=I?k[A]:k,E=y[A],C=x[A],n.validate(E,S)?C!==E&amp;&amp;C!==+E&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v.concat(A),E,C)):i.push(d(&quot;value&quot;,a,v.concat(A),E))}else if(b.items&amp;&amp;!w&amp;&amp;l(y)){var z,O,D=k[Object.keys(k)[0]],R=[];for(z=0;z&lt;x.length;z++){var F=x[z]._index||z;if((O=v.slice()).push(F),s(y[F])&amp;&amp;s(x[z])){R.push(F);var B=y[F],N=x[z];s(B)&amp;&amp;!1!==B.visible&amp;&amp;!1===N.visible?i.push(d(&quot;invisible&quot;,a,O)):u(B,N,D,i,a,O)}}for(z=0;z&lt;y.length;z++)(O=v.slice()).push(z),s(y[z])?-1===R.indexOf(z)&amp;&amp;i.push(d(&quot;unused&quot;,a,O)):i.push(d(&quot;object&quot;,a,O,y[z]))}else!s(y)&amp;&amp;s(x)?i.push(d(&quot;object&quot;,a,v,y)):c(y)||!c(x)||w||T?p in e?n.validate(y,b)?&quot;enumerated&quot;===b.valType&amp;&amp;(b.coerceNumber&amp;&amp;y!==+x||y!==x)&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v,y,x)):i.push(d(&quot;value&quot;,a,v,y)):i.push(d(&quot;unused&quot;,a,v,y)):i.push(d(&quot;array&quot;,a,v,y));else i.push(d(&quot;schema&quot;,a,v))}}return i}function f(t,e){for(var r=t.layout.layoutAttributes,i=0;i&lt;e.length;i++){var a=e[i],o=t.traces[a.type],s=o.layoutAttributes;s&amp;&amp;(a.subplot?n.extendFlat(r[o.attributes.subplot.dflt],s):n.extendFlat(r,s))}return r}e.exports=function(t,e){void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e={});var r,c,h=a.get(),p=[],g={_context:n.extendFlat({},o)};l(t)?(g.data=n.extendDeep([],t),r=t):(g.data=[],r=[],p.push(d(&quot;array&quot;,&quot;data&quot;))),s(e)?(g.layout=n.extendDeep({},e),c=e):(g.layout={},c={},arguments.length&gt;1&amp;&amp;p.push(d(&quot;object&quot;,&quot;layout&quot;))),i.supplyDefaults(g);for(var m=g._fullData,v=r.length,y=0;y&lt;v;y++){var x=r[y],b=[&quot;data&quot;,y];if(s(x)){var _=m[y],w=_.type,T=h.traces[w].attributes;T.type={valType:&quot;enumerated&quot;,values:[w]},!1===_.visible&amp;&amp;!1!==x.visible&amp;&amp;p.push(d(&quot;invisible&quot;,b)),u(x,_,T,p,b);var k=x.transforms,M=_.transforms;if(k){l(k)||p.push(d(&quot;array&quot;,b,[&quot;transforms&quot;])),b.push(&quot;transforms&quot;);for(var A=0;A&lt;k.length;A++){var S=[&quot;transforms&quot;,A],E=k[A].type;if(s(k[A])){var C=h.transforms[E]?h.transforms[E].attributes:{};C.type={valType:&quot;enumerated&quot;,values:Object.keys(h.transforms)},u(k[A],M[A],C,p,b,S)}else p.push(d(&quot;object&quot;,b,S))}}}else p.push(d(&quot;object&quot;,b))}var L=g._fullLayout,I=f(h,m);return u(c,L,I,p,&quot;layout&quot;),0===p.length?void 0:p};var h={object:function(t,e){return(&quot;layout&quot;===t&amp;&amp;&quot;&quot;===e?&quot;The layout argument&quot;:&quot;data&quot;===t[0]&amp;&amp;&quot;&quot;===e?&quot;Trace &quot;+t[1]+&quot; in the data argument&quot;:p(t)+&quot;key &quot;+e)+&quot; must be linked to an object container&quot;},array:function(t,e){return(&quot;data&quot;===t?&quot;The data argument&quot;:p(t)+&quot;key &quot;+e)+&quot; must be linked to an array container&quot;},schema:function(t,e){return p(t)+&quot;key &quot;+e+&quot; is not part of the schema&quot;},unused:function(t,e,r){var n=s(r)?&quot;container&quot;:&quot;key&quot;;return p(t)+n+&quot; &quot;+e+&quot; did not get coerced&quot;},dynamic:function(t,e,r,n){return[p(t)+&quot;key&quot;,e,&quot;(set to '&quot;+r+&quot;')&quot;,&quot;got reset to&quot;,&quot;'&quot;+n+&quot;'&quot;,&quot;during defaults.&quot;].join(&quot; &quot;)},invisible:function(t,e){return(e?p(t)+&quot;item &quot;+e:&quot;Trace &quot;+t[1])+&quot; got defaulted to be not visible&quot;},value:function(t,e,r){return[p(t)+&quot;key &quot;+e,&quot;is set to an invalid value (&quot;+r+&quot;)&quot;].join(&quot; &quot;)}};function p(t){return l(t)?&quot;In data trace &quot;+t[1]+&quot;, &quot;:&quot;In &quot;+t+&quot;, &quot;}function d(t,e,r,i,a){var o,s;r=r||&quot;&quot;,l(e)?(o=e[0],s=e[1]):(o=e,s=null);var c=function(t){if(!l(t))return String(t);for(var e=&quot;&quot;,r=0;r&lt;t.length;r++){var n=t[r];&quot;number&quot;==typeof n?e=e.substr(0,e.length-1)+&quot;[&quot;+n+&quot;]&quot;:e+=n,r&lt;t.length-1&amp;&amp;(e+=&quot;.&quot;)}return e}(r),u=h[t](e,c,i,a);return n.log(u),{code:t,container:o,trace:s,path:r,astr:c,msg:u}}function g(t,e){var r=y(e),n=r.keyMinusId,i=r.id;return!!(n in t&amp;&amp;t[n]._isSubplotObj&amp;&amp;i)||e in t}function m(t,e){return e in t?t[e]:t[y(e).keyMinusId]}var v=n.counterRegex(&quot;([a-z]+)&quot;);function y(t){var e=t.match(v);return{keyMinusId:e&amp;&amp;e[1],id:e&amp;&amp;e[2]}}},{&quot;../lib&quot;:778,&quot;../plots/plots&quot;:891,&quot;./plot_config&quot;:815,&quot;./plot_schema&quot;:816}],822:[function(t,e,r){&quot;use strict&quot;;e.exports={mode:{valType:&quot;enumerated&quot;,dflt:&quot;afterall&quot;,values:[&quot;immediate&quot;,&quot;next&quot;,&quot;afterall&quot;]},direction:{valType:&quot;enumerated&quot;,values:[&quot;forward&quot;,&quot;reverse&quot;],dflt:&quot;forward&quot;},fromcurrent:{valType:&quot;boolean&quot;,dflt:!1},frame:{duration:{valType:&quot;number&quot;,min:0,dflt:500},redraw:{valType:&quot;boolean&quot;,dflt:!0}},transition:{duration:{valType:&quot;number&quot;,min:0,dflt:500,editType:&quot;none&quot;},easing:{valType:&quot;enumerated&quot;,dflt:&quot;cubic-in-out&quot;,values:[&quot;linear&quot;,&quot;quad&quot;,&quot;cubic&quot;,&quot;sin&quot;,&quot;exp&quot;,&quot;circle&quot;,&quot;elastic&quot;,&quot;back&quot;,&quot;bounce&quot;,&quot;linear-in&quot;,&quot;quad-in&quot;,&quot;cubic-in&quot;,&quot;sin-in&quot;,&quot;exp-in&quot;,&quot;circle-in&quot;,&quot;elastic-in&quot;,&quot;back-in&quot;,&quot;bounce-in&quot;,&quot;linear-out&quot;,&quot;quad-out&quot;,&quot;cubic-out&quot;,&quot;sin-out&quot;,&quot;exp-out&quot;,&quot;circle-out&quot;,&quot;elastic-out&quot;,&quot;back-out&quot;,&quot;bounce-out&quot;,&quot;linear-in-out&quot;,&quot;quad-in-out&quot;,&quot;cubic-in-out&quot;,&quot;sin-in-out&quot;,&quot;exp-in-out&quot;,&quot;circle-in-out&quot;,&quot;elastic-in-out&quot;,&quot;back-in-out&quot;,&quot;bounce-in-out&quot;],editType:&quot;none&quot;},ordering:{valType:&quot;enumerated&quot;,values:[&quot;layout first&quot;,&quot;traces first&quot;],dflt:&quot;layout first&quot;,editType:&quot;none&quot;}}}},{}],823:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_template&quot;);e.exports=function(t,e,r){var a,o,s=r.name,l=r.inclusionAttr||&quot;visible&quot;,c=e[s],u=n.isArrayOrTypedArray(t[s])?t[s]:[],f=e[s]=[],h=i.arrayTemplater(e,s,l);for(a=0;a&lt;u.length;a++){var p=u[a];n.isPlainObject(p)?o=h.newItem(p):(o=h.newItem({}))[l]=!1,o._index=a,!1!==o[l]&amp;&amp;r.handleItemDefaults(p,o,e,r),f.push(o)}var d=h.defaultItems();for(a=0;a&lt;d.length;a++)(o=d[a])._index=f.length,r.handleItemDefaults({},o,e,r,{}),f.push(o);if(n.isArrayOrTypedArray(c)){var g=Math.min(c.length,f.length);for(a=0;a&lt;g;a++)n.relinkPrivateKeys(f[a],c[a])}return f}},{&quot;../lib&quot;:778,&quot;../plot_api/plot_template&quot;:817}],824:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../components/fx/attributes&quot;);e.exports={type:{valType:&quot;enumerated&quot;,values:[],dflt:&quot;scatter&quot;,editType:&quot;calc+clearAxisTypes&quot;,_noTemplating:!0},visible:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;legendonly&quot;],dflt:!0,editType:&quot;calc&quot;},showlegend:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;style&quot;},legendgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;style&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;style&quot;},name:{valType:&quot;string&quot;,editType:&quot;style&quot;},uid:{valType:&quot;string&quot;,editType:&quot;plot&quot;,anim:!0},ids:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;,anim:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},meta:{valType:&quot;any&quot;,arrayOk:!0,editType:&quot;plot&quot;},selectedpoints:{valType:&quot;any&quot;,editType:&quot;calc&quot;},hoverinfo:{valType:&quot;flaglist&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;],extras:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],arrayOk:!0,dflt:&quot;all&quot;,editType:&quot;none&quot;},hoverlabel:n.hoverlabel,stream:{token:{valType:&quot;string&quot;,noBlank:!0,strict:!0,editType:&quot;calc&quot;},maxpoints:{valType:&quot;number&quot;,min:0,max:1e4,dflt:500,editType:&quot;calc&quot;},editType:&quot;calc&quot;},transforms:{_isLinkedToArray:&quot;transform&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;}}},{&quot;../components/fx/attributes&quot;:674}],825:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=i.dateTime2ms,o=i.incrementMonth,s=t(&quot;../../constants/numerical&quot;).ONEAVGMONTH;e.exports=function(t,e,r,i){if(&quot;date&quot;!==e.type)return i;var l=t[r+&quot;periodalignment&quot;];if(!l)return i;var c,u=t[r+&quot;period&quot;];if(n(u)){if((u=+u)&lt;=0)return i}else if(&quot;string&quot;==typeof u&amp;&amp;&quot;M&quot;===u.charAt(0)){var f=+u.substring(1);if(!(f&gt;0&amp;&amp;Math.round(f)===f))return i;c=f}for(var h=e.calendar,p=&quot;start&quot;===l,d=&quot;end&quot;===l,g=t[r+&quot;period0&quot;],m=a(g,h)||0,v=[],y=i.length,x=0;x&lt;y;x++){var b,_,w,T=i[x];if(c){for(b=Math.round((T-m)/(c*s)),w=o(m,c*b,h);w&gt;T;)w=o(w,-c,h);for(;w&lt;=T;)w=o(w,c,h);_=o(w,-c,h)}else{for(w=m+(b=Math.round((T-m)/u))*u;w&gt;T;)w-=u;for(;w&lt;=T;)w+=u;_=w-u}v[x]=p?_:d?w:(_+w)/2}return v}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],826:[function(t,e,r){&quot;use strict&quot;;e.exports={xaxis:{valType:&quot;subplotid&quot;,dflt:&quot;x&quot;,editType:&quot;calc+clearAxisTypes&quot;},yaxis:{valType:&quot;subplotid&quot;,dflt:&quot;y&quot;,editType:&quot;calc+clearAxisTypes&quot;}}},{}],827:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).FP_SAFE,o=t(&quot;../../registry&quot;),s=t(&quot;./axis_ids&quot;),l=s.getFromId,c=s.isLinked;function u(t,e){var r,n,a=[],o=t._fullLayout,s=h(o,e,0),l=h(o,e,1),c=p(t,e),u=c.min,d=c.max;if(0===u.length||0===d.length)return i.simpleMap(e.range,e.r2l);var g=u[0].val,m=d[0].val;for(r=1;r&lt;u.length&amp;&amp;g===m;r++)g=Math.min(g,u[r].val);for(r=1;r&lt;d.length&amp;&amp;g===m;r++)m=Math.max(m,d[r].val);var v=!1;if(e.range){var y=i.simpleMap(e.range,e.r2l);v=y[1]&lt;y[0]}&quot;reversed&quot;===e.autorange&amp;&amp;(v=!0,e.autorange=!0);var x,b,_,w,T,k,M=e.rangemode,A=&quot;tozero&quot;===M,S=&quot;nonnegative&quot;===M,E=e._length,C=E/10,L=0;for(r=0;r&lt;u.length;r++)for(x=u[r],n=0;n&lt;d.length;n++)(k=(b=d[n]).val-x.val-f(e,x.val,b.val))&gt;0&amp;&amp;((T=E-s(x)-l(b))&gt;C?k/T&gt;L&amp;&amp;(_=x,w=b,L=k/T):k/E&gt;L&amp;&amp;(_={val:x.val,nopad:1},w={val:b.val,nopad:1},L=k/E));if(g===m){var I=g-1,P=g+1;if(A)if(0===g)a=[0,1];else{var z=(g&gt;0?d:u).reduce((function(t,e){return Math.max(t,l(e))}),0),O=g/(1-Math.min(.5,z/E));a=g&gt;0?[0,O]:[O,0]}else a=S?[Math.max(0,I),Math.max(1,P)]:[I,P]}else A?(_.val&gt;=0&amp;&amp;(_={val:0,nopad:1}),w.val&lt;=0&amp;&amp;(w={val:0,nopad:1})):S&amp;&amp;(_.val-L*s(_)&lt;0&amp;&amp;(_={val:0,nopad:1}),w.val&lt;=0&amp;&amp;(w={val:1,nopad:1})),L=(w.val-_.val-f(e,x.val,b.val))/(E-s(_)-l(w)),a=[_.val-L*s(_),w.val+L*l(w)];return v&amp;&amp;a.reverse(),i.simpleMap(a,e.l2r||Number)}function f(t,e,r){var n=0;if(t.rangebreaks)for(var i=t.locateBreaks(e,r),a=0;a&lt;i.length;a++){var o=i[a];n+=o.max-o.min}return n}function h(t,e,r){var n=.05*e._length,a=e._anchorAxis||{};if(-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)||-1!==(a.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)){var o=&quot;reversed&quot;===e.autorange;if(!o){var s=i.simpleMap(e.range,e.r2l);o=s[1]&lt;s[0]}o&amp;&amp;(r=!r)}var l=0;return c(t,e._id)||(l=function(t,e){var r=0,n=t._anchorAxis||{};if(-1!==(n.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;(!e&amp;&amp;(&quot;left&quot;===n.side||&quot;bottom&quot;===n.side)||e&amp;&amp;(&quot;top&quot;===n.side||&quot;right&quot;===n.side))){var a=&quot;x&quot;===t._id.charAt(0);if(n._vals){var o=i.deg2rad(n._tickAngles[n._id+&quot;tick&quot;]||0),s=Math.abs(Math.cos(o)),l=Math.abs(Math.sin(o));n._vals.forEach((function(t){if(t.bb){var e=6+t.bb.width,n=6+t.bb.height;r=Math.max(r,a?Math.max(e*s,n*l):Math.max(n*s,e*l))}}))}&quot;inside&quot;===n.ticks&amp;&amp;&quot;inside&quot;===n.ticklabelposition&amp;&amp;(r+=n.ticklen||0)}return r}(e,r)),n=Math.max(l,n),&quot;domain&quot;===e.constrain&amp;&amp;e._inputDomain&amp;&amp;(n*=(e._inputDomain[1]-e._inputDomain[0])/(e.domain[1]-e.domain[0])),function(t){return t.nopad?0:t.pad+(t.extrapad?n:l)}}e.exports={getAutoRange:u,makePadFn:h,doAutoRange:function(t,e,r){if(e.setScale(),e.autorange){e.range=r?r.slice():u(t,e),e._r=e.range.slice(),e._rl=i.simpleMap(e._r,e.r2l);var n=e._input,a={};a[e._attr+&quot;.range&quot;]=e.range,a[e._attr+&quot;.autorange&quot;]=e.autorange,o.call(&quot;_storeDirectGUIEdit&quot;,t.layout,t._fullLayout._preGUI,a),n.range=e.range.slice(),n.autorange=e.autorange}var s=e._anchorAxis;if(s&amp;&amp;s.rangeslider){var l=s.rangeslider[e._name];l&amp;&amp;&quot;auto&quot;===l.rangemode&amp;&amp;(l.range=u(t,e)),s._input.rangeslider[e._name]=i.extendFlat({},l)}},findExtremes:function(t,e,r){r||(r={});t._m||t.setScale();var i,o,s,l,c,u,f,h,p,m=[],y=[],x=e.length,b=r.padded||!1,_=r.tozero&amp;&amp;(&quot;linear&quot;===t.type||&quot;-&quot;===t.type),w=&quot;log&quot;===t.type,T=!1,k=r.vpadLinearized||!1;function M(t){if(Array.isArray(t))return T=!0,function(e){return Math.max(Number(t[e]||0),0)};var e=Math.max(Number(t||0),0);return function(){return e}}var A=M((t._m&gt;0?r.ppadplus:r.ppadminus)||r.ppad||0),S=M((t._m&gt;0?r.ppadminus:r.ppadplus)||r.ppad||0),E=M(r.vpadplus||r.vpad),C=M(r.vpadminus||r.vpad);if(!T){if(h=1/0,p=-1/0,w)for(i=0;i&lt;x;i++)(o=e[i])&lt;h&amp;&amp;o&gt;0&amp;&amp;(h=o),o&gt;p&amp;&amp;o&lt;a&amp;&amp;(p=o);else for(i=0;i&lt;x;i++)(o=e[i])&lt;h&amp;&amp;o&gt;-a&amp;&amp;(h=o),o&gt;p&amp;&amp;o&lt;a&amp;&amp;(p=o);e=[h,p],x=2}var L={tozero:_,extrapad:b};function I(r){s=e[r],n(s)&amp;&amp;(u=A(r),f=S(r),k?(l=t.c2l(s)-C(r),c=t.c2l(s)+E(r)):(h=s-C(r),p=s+E(r),w&amp;&amp;h&lt;p/10&amp;&amp;(h=p/10),l=t.c2l(h),c=t.c2l(p)),_&amp;&amp;(l=Math.min(0,l),c=Math.max(0,c)),v(l)&amp;&amp;d(m,l,f,L),v(c)&amp;&amp;g(y,c,u,L))}var P=Math.min(6,x);for(i=0;i&lt;P;i++)I(i);for(i=x-1;i&gt;=P;i--)I(i);return{min:m,max:y,opts:r}},concatExtremes:p};function p(t,e,r){var n,i,a,o=e._id,s=t._fullData,c=t._fullLayout,u=[],f=[];function h(t,e){for(n=0;n&lt;e.length;n++){var r=t[e[n]],s=(r._extremes||{})[o];if(!0===r.visible&amp;&amp;s){for(i=0;i&lt;s.min.length;i++)a=s.min[i],d(u,a.val,a.pad,{extrapad:a.extrapad});for(i=0;i&lt;s.max.length;i++)a=s.max[i],g(f,a.val,a.pad,{extrapad:a.extrapad})}}}if(h(s,e._traceIndices),h(c.annotations||[],e._annIndices||[]),h(c.shapes||[],e._shapeIndices||[]),e._matchGroup&amp;&amp;!r)for(var m in e._matchGroup)if(m!==e._id){var v=l(t,m),y=p(t,v,!0),x=e._length/v._length;for(i=0;i&lt;y.min.length;i++)a=y.min[i],d(u,a.val,a.pad*x,{extrapad:a.extrapad});for(i=0;i&lt;y.max.length;i++)a=y.max[i],g(f,a.val,a.pad*x,{extrapad:a.extrapad})}return{min:u,max:f}}function d(t,e,r,n){m(t,e,r,n,y)}function g(t,e,r,n){m(t,e,r,n,x)}function m(t,e,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l&lt;t.length&amp;&amp;s;l++){var c=t[l];if(i(c.val,e)&amp;&amp;c.pad&gt;=r&amp;&amp;(c.extrapad||!o)){s=!1;break}i(e,c.val)&amp;&amp;c.pad&lt;=r&amp;&amp;(o||!c.extrapad)&amp;&amp;(t.splice(l,1),l--)}if(s){var u=a&amp;&amp;0===e;t.push({val:e,pad:u?0:r,extrapad:!u&amp;&amp;o})}}function v(t){return n(t)&amp;&amp;Math.abs(t)&lt;a}function y(t,e){return t&lt;=e}function x(t,e){return t&gt;=e}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./axis_ids&quot;:831,&quot;fast-isnumeric&quot;:241}],828:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/titles&quot;),f=t(&quot;../../components/color&quot;),h=t(&quot;../../components/drawing&quot;),p=t(&quot;./layout_attributes&quot;),d=t(&quot;./clean_ticks&quot;),g=t(&quot;../../constants/numerical&quot;),m=g.ONEMAXYEAR,v=g.ONEAVGYEAR,y=g.ONEMINYEAR,x=g.ONEMAXQUARTER,b=g.ONEAVGQUARTER,_=g.ONEMINQUARTER,w=g.ONEMAXMONTH,T=g.ONEAVGMONTH,k=g.ONEMINMONTH,M=g.ONEWEEK,A=g.ONEDAY,S=A/2,E=g.ONEHOUR,C=g.ONEMIN,L=g.ONESEC,I=g.MINUS_SIGN,P=g.BADNUM,z=t(&quot;../../constants/alignment&quot;),O=z.MID_SHIFT,D=z.CAP_SHIFT,R=z.LINE_SPACING,F=z.OPPOSITE_SIDE,B=e.exports={};B.setConvert=t(&quot;./set_convert&quot;);var N=t(&quot;./axis_autotype&quot;),j=t(&quot;./axis_ids&quot;),U=j.idSort,V=j.isLinked;B.id2name=j.id2name,B.name2id=j.name2id,B.cleanId=j.cleanId,B.list=j.list,B.listIds=j.listIds,B.getFromId=j.getFromId,B.getFromTrace=j.getFromTrace;var q=t(&quot;./autorange&quot;);B.getAutoRange=q.getAutoRange,B.findExtremes=q.findExtremes;function H(t){var e=1e-4*(t[1]-t[0]);return[t[0]-e,t[1]+e]}B.coerceRef=function(t,e,r,n,i,a){var o=n.charAt(n.length-1),l=r._fullLayout._subplots[o+&quot;axis&quot;],c=n+&quot;ref&quot;,u={};return i||(i=l[0]||(&quot;string&quot;==typeof a?a:a[0])),a||(a=i),l=l.concat(l.map((function(t){return t+&quot; domain&quot;}))),u[c]={valType:&quot;enumerated&quot;,values:l.concat(a?&quot;string&quot;==typeof a?[a]:a:[]),dflt:i},s.coerce(t,e,u,c)},B.getRefType=function(t){return void 0===t?t:&quot;paper&quot;===t?&quot;paper&quot;:&quot;pixel&quot;===t?&quot;pixel&quot;:/( domain)$/.test(t)?&quot;domain&quot;:&quot;range&quot;},B.coercePosition=function(t,e,r,n,i,a){var o,l;if(&quot;range&quot;!==B.getRefType(n))o=s.ensureNumber,l=r(i,a);else{var c=B.getFromId(e,n);l=r(i,a=c.fraction2r(a)),o=c.cleanPos}t[i]=o(l)},B.cleanPosition=function(t,e,r){return(&quot;paper&quot;===r||&quot;pixel&quot;===r?s.ensureNumber:B.getFromId(e,r).cleanPos)(t)},B.redrawComponents=function(t,e){e=e||B.listIds(t);var r=t._fullLayout;function n(n,i,a,s){for(var l=o.getComponentMethod(n,i),c={},u=0;u&lt;e.length;u++)for(var f=r[B.id2name(e[u])][a],h=0;h&lt;f.length;h++){var p=f[h];if(!c[p]&amp;&amp;(l(t,p),c[p]=1,s))return}}n(&quot;annotations&quot;,&quot;drawOne&quot;,&quot;_annIndices&quot;),n(&quot;shapes&quot;,&quot;drawOne&quot;,&quot;_shapeIndices&quot;),n(&quot;images&quot;,&quot;draw&quot;,&quot;_imgIndices&quot;,!0)};var G=B.getDataConversions=function(t,e,r,n){var i,a=&quot;x&quot;===r||&quot;y&quot;===r||&quot;z&quot;===r?r:n;if(Array.isArray(a)){if(i={type:N(n,void 0,{autotypenumbers:t._fullLayout.autotypenumbers}),_categories:[]},B.setConvert(i),&quot;category&quot;===i.type)for(var o=0;o&lt;n.length;o++)i.d2c(n[o])}else i=B.getFromTrace(t,e,a);return i?{d2c:i.d2c,c2d:i.c2d}:&quot;ids&quot;===a?{d2c:W,c2d:W}:{d2c:Y,c2d:Y}};function Y(t){return+t}function W(t){return String(t)}function X(t){return+t.substring(1)}B.getDataToCoordFunc=function(t,e,r,n){return G(t,e,r,n).d2c},B.counterLetter=function(t){var e=t.charAt(0);return&quot;x&quot;===e?&quot;y&quot;:&quot;y&quot;===e?&quot;x&quot;:void 0},B.minDtick=function(t,e,r,n){-1===[&quot;log&quot;,&quot;category&quot;,&quot;multicategory&quot;].indexOf(t.type)&amp;&amp;n?void 0===t._minDtick?(t._minDtick=e,t._forceTick0=r):t._minDtick&amp;&amp;((t._minDtick/e+1e-6)%1&lt;2e-6&amp;&amp;((r-t._forceTick0)/e%1+1.000001)%1&lt;2e-6?(t._minDtick=e,t._forceTick0=r):((e/t._minDtick+1e-6)%1&gt;2e-6||((r-t._forceTick0)/t._minDtick%1+1.000001)%1&gt;2e-6)&amp;&amp;(t._minDtick=0)):t._minDtick=0},B.saveRangeInitial=function(t,e){for(var r=B.list(t,&quot;&quot;,!0),n=!1,i=0;i&lt;r.length;i++){var a=r[i],o=void 0===a._rangeInitial,s=o||!(a.range[0]===a._rangeInitial[0]&amp;&amp;a.range[1]===a._rangeInitial[1]);(o&amp;&amp;!1===a.autorange||e&amp;&amp;s)&amp;&amp;(a._rangeInitial=a.range.slice(),n=!0)}return n},B.saveShowSpikeInitial=function(t,e){for(var r=B.list(t,&quot;&quot;,!0),n=!1,i=&quot;on&quot;,a=0;a&lt;r.length;a++){var o=r[a],s=void 0===o._showSpikeInitial,l=s||!(o.showspikes===o._showspikes);(s||e&amp;&amp;l)&amp;&amp;(o._showSpikeInitial=o.showspikes,n=!0),&quot;on&quot;!==i||o.showspikes||(i=&quot;off&quot;)}return t._fullLayout._cartesianSpikesEnabled=i,n},B.autoBin=function(t,e,r,n,a,o){var l,c=s.aggNums(Math.min,null,t),u=s.aggNums(Math.max,null,t);if(&quot;category&quot;===e.type||&quot;multicategory&quot;===e.type)return{start:c-.5,end:u+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:u-c};if(a||(a=e.calendar),l=&quot;log&quot;===e.type?{type:&quot;linear&quot;,range:[c,u]}:{type:e.type,range:s.simpleMap([c,u],e.c2r,0,a),calendar:a},B.setConvert(l),o=o&amp;&amp;d.dtick(o,l.type))l.dtick=o,l.tick0=d.tick0(void 0,l.type,a);else{var f;if(r)f=(u-c)/r;else{var h=s.distinctVals(t),p=Math.pow(10,Math.floor(Math.log(h.minDiff)/Math.LN10)),g=p*s.roundUp(h.minDiff/p,[.9,1.9,4.9,9.9],!0);f=Math.max(g,2*s.stdev(t)/Math.pow(t.length,n?.25:.4)),i(f)||(f=1)}B.autoTicks(l,f)}var m,v=l.dtick,y=B.tickIncrement(B.tickFirst(l),v,&quot;reverse&quot;,a);if(&quot;number&quot;==typeof v)m=(y=function(t,e,r,n,a){var o=0,s=0,l=0,c=0;function u(e){return(1+100*(e-t)/r.dtick)%100&lt;2}for(var f=0;f&lt;e.length;f++)e[f]%1==0?l++:i(e[f])||c++,u(e[f])&amp;&amp;o++,u(e[f]+r.dtick/2)&amp;&amp;s++;var h=e.length-c;if(l===h&amp;&amp;&quot;date&quot;!==r.type)r.dtick&lt;1?t=n-.5*r.dtick:(t-=.5)+r.dtick&lt;n&amp;&amp;(t+=r.dtick);else if(s&lt;.1*h&amp;&amp;(o&gt;.3*h||u(n)||u(a))){var p=r.dtick/2;t+=t+p&lt;n?p:-p}return t}(y,t,l,c,u))+(1+Math.floor((u-y)/v))*v;else for(&quot;M&quot;===l.dtick.charAt(0)&amp;&amp;(y=function(t,e,r,n,i){var a=s.findExactDates(e,i);if(a.exactDays&gt;.8){var o=Number(r.substr(1));a.exactYears&gt;.8&amp;&amp;o%12==0?t=B.tickIncrement(t,&quot;M6&quot;,&quot;reverse&quot;)+1.5*A:a.exactMonths&gt;.8?t=B.tickIncrement(t,&quot;M1&quot;,&quot;reverse&quot;)+15.5*A:t-=S;var l=B.tickIncrement(t,r);if(l&lt;=n)return l}return t}(y,t,v,c,a)),m=y,0;m&lt;=u;)m=B.tickIncrement(m,v,!1,a);return{start:e.c2r(y,0,a),end:e.c2r(m,0,a),size:v,_dataSpan:u-c}},B.prepTicks=function(t,e){var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if(t._dtickInit=t.dtick,t._tick0Init=t.tick0,&quot;auto&quot;===t.tickmode||!t.dtick){var n,a=t.nticks;a||(&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?(n=t.tickfont?1.2*(t.tickfont.size||12):15,a=t._length/n):(n=&quot;y&quot;===t._id.charAt(0)?40:80,a=s.constrain(t._length/n,4,9)+1),&quot;radialaxis&quot;===t._name&amp;&amp;(a*=2)),&quot;array&quot;===t.tickmode&amp;&amp;(a*=100),t._roughDTick=Math.abs(r[1]-r[0])/a,B.autoTicks(t,t._roughDTick),t._minDtick&gt;0&amp;&amp;t.dtick&lt;2*t._minDtick&amp;&amp;(t.dtick=t._minDtick,t.tick0=t.l2r(t._forceTick0))}&quot;period&quot;===t.ticklabelmode&amp;&amp;function(t){var e;function r(){return!(i(t.dtick)||&quot;M&quot;!==t.dtick.charAt(0))}var n=r(),a=B.getTickFormat(t);if(a){var o=t._dtickInit!==t.dtick;/%[fLQsSMX]/.test(a)||(/%[HI]/.test(a)?(e=E,o&amp;&amp;!n&amp;&amp;t.dtick&lt;E&amp;&amp;(t.dtick=E)):/%p/.test(a)?(e=S,o&amp;&amp;!n&amp;&amp;t.dtick&lt;S&amp;&amp;(t.dtick=S)):/%[Aadejuwx]/.test(a)?(e=A,o&amp;&amp;!n&amp;&amp;t.dtick&lt;A&amp;&amp;(t.dtick=A)):/%[UVW]/.test(a)?(e=M,o&amp;&amp;!n&amp;&amp;t.dtick&lt;M&amp;&amp;(t.dtick=M)):/%[Bbm]/.test(a)?(e=T,o&amp;&amp;(n?X(t.dtick)&lt;1:t.dtick&lt;k)&amp;&amp;(t.dtick=&quot;M1&quot;)):/%[q]/.test(a)?(e=b,o&amp;&amp;(n?X(t.dtick)&lt;3:t.dtick&lt;_)&amp;&amp;(t.dtick=&quot;M3&quot;)):/%[Yy]/.test(a)&amp;&amp;(e=v,o&amp;&amp;(n?X(t.dtick)&lt;12:t.dtick&lt;y)&amp;&amp;(t.dtick=&quot;M12&quot;)))}(n=r())&amp;&amp;t.tick0===t._dowTick0&amp;&amp;(t.tick0=t._rawTick0);t._definedDelta=e}(t),t.tick0||(t.tick0=&quot;date&quot;===t.type?&quot;2000-01-01&quot;:0),&quot;date&quot;===t.type&amp;&amp;t.dtick&lt;.1&amp;&amp;(t.dtick=.1),nt(t)},B.calcTicks=function(t,e){B.prepTicks(t,e);var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if(&quot;array&quot;===t.tickmode)return function(t){var e=t.tickvals,r=t.ticktext,n=new Array(e.length),i=H(s.simpleMap(t.range,t.r2l)),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]),l=0;Array.isArray(r)||(r=[]);var c=&quot;category&quot;===t.type?t.d2l_noadd:t.d2l;&quot;log&quot;===t.type&amp;&amp;&quot;L&quot;!==String(t.dtick).charAt(0)&amp;&amp;(t.dtick=&quot;L&quot;+Math.pow(10,Math.floor(Math.min(t.range[0],t.range[1]))-1));for(var u=0;u&lt;e.length;u++){var f=c(e[u]);f&gt;a&amp;&amp;f&lt;o&amp;&amp;(void 0===r[u]?n[l]=B.tickText(t,f):n[l]=it(t,f,String(r[u])),l++)}l&lt;e.length&amp;&amp;n.splice(l,e.length-l);t.rangebreaks&amp;&amp;(n=n.filter((function(e){return t.maskBreaks(e.x)!==P})));return n}(t);var n=H(r),a=n[0],o=n[1],l=r[1]&lt;r[0],c=Math.min(r[0],r[1]),u=Math.max(r[0],r[1]),f=&quot;log&quot;===t.type&amp;&amp;!(i(t.dtick)||&quot;L&quot;===t.dtick.charAt(0)),h=&quot;period&quot;===t.ticklabelmode;if(t._tmin=B.tickFirst(t,e),t._tmin&lt;a!==l)return[];&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(o=l?Math.max(-.5,o):Math.min(t._categories.length-.5,o));var p=t._tmin;t.rangebreaks&amp;&amp;t._tick0Init!==t.tick0&amp;&amp;(p=wt(p,t),l||(p=B.tickIncrement(p,t.dtick,!l,t.calendar))),h&amp;&amp;(p=B.tickIncrement(p,t.dtick,!l,t.calendar));for(var d,g=Math.max(1e3,t._length||0),C=[],L=null;l?p&gt;=o:p&lt;=o;p=B.tickIncrement(p,t.dtick,l,t.calendar)){if(t.rangebreaks&amp;&amp;!l){if(p&lt;a)continue;if(t.maskBreaks(p)===P&amp;&amp;wt(p,t)&gt;=u)break}if(C.length&gt;g||p===L)break;L=p;var I=!1;f&amp;&amp;p!==(0|p)&amp;&amp;(I=!0),C.push({minor:I,value:p})}if(h&amp;&amp;function(t,e,r){for(var n=0;n&lt;t.length;n++){var i=t[n].value,a=n,o=n+1;n&lt;t.length-1?(a=n,o=n+1):n&gt;0?(a=n-1,o=n):(a=n,o=n);var s,l=t[a].value,c=t[o].value,u=Math.abs(c-l),f=r||u,h=0;f&gt;=y?h=u&gt;=y&amp;&amp;u&lt;=m?u:v:r===b&amp;&amp;f&gt;=_?h=u&gt;=_&amp;&amp;u&lt;=x?u:b:f&gt;=k?h=u&gt;=k&amp;&amp;u&lt;=w?u:T:r===M&amp;&amp;f&gt;=M?h=M:f&gt;=A?h=A:r===S&amp;&amp;f&gt;=S?h=S:r===E&amp;&amp;f&gt;=E&amp;&amp;(h=E),h&gt;=u&amp;&amp;(h=u,s=!0);var p=i+h;if(e.rangebreaks&amp;&amp;h&gt;0){for(var d=0,g=0;g&lt;84;g++){var C=(g+.5)/84;e.maskBreaks(i*(1-C)+C*p)!==P&amp;&amp;d++}(h*=d/84)||(t[n].drop=!0),s&amp;&amp;u&gt;M&amp;&amp;(h=u)}(h&gt;0||0===n)&amp;&amp;(t[n].periodX=i+h/2)}}(C,t,t._definedDelta),t.rangebreaks){var z=&quot;y&quot;===t._id.charAt(0),O=1;&quot;auto&quot;===t.tickmode&amp;&amp;(O=t.tickfont?t.tickfont.size:12);var D=NaN;for(d=C.length-1;d&gt;-1;d--)if(C[d].drop)C.splice(d,1);else{C[d].value=wt(C[d].value,t);var R=t.c2p(C[d].value);(z?D&gt;R-O:D&lt;R+O)?C.splice(l?d+1:d,1):D=R}}_t(t)&amp;&amp;360===Math.abs(r[1]-r[0])&amp;&amp;C.pop(),t._tmax=(C[C.length-1]||{}).value,t._prevDateHead=&quot;&quot;,t._inCalcTicks=!0;var F,N,j=[];for(d=0;d&lt;C.length;d++){var U=C[d].minor,V=C[d].value;F=B.tickText(t,V,!1,U),void 0!==(N=C[d].periodX)&amp;&amp;(F.periodX=N,(N&gt;u||N&lt;c)&amp;&amp;(N&gt;u&amp;&amp;(F.periodX=u),N&lt;c&amp;&amp;(F.periodX=c),F.text=&quot; &quot;,t._prevDateHead=&quot;&quot;)),j.push(F)}return t._inCalcTicks=!1,j};var Z=[2,5,10],J=[1,2,3,6,12],K=[1,2,5,10,15,30],Q=[1,2,3,7,14],$=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],tt=[-.301,0,.301,.699,1],et=[15,30,45,90,180];function rt(t,e,r){return e*s.roundUp(t/e,r)}function nt(t){var e=t.dtick;if(t._tickexponent=0,i(e)||&quot;string&quot;==typeof e||(e=1),&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(t._tickround=null),&quot;date&quot;===t.type){var r=t.r2l(t.tick0),n=t.l2r(r).replace(/(^-|i)/g,&quot;&quot;),a=n.length;if(&quot;M&quot;===String(e).charAt(0))a&gt;10||&quot;01-01&quot;!==n.substr(5)?t._tickround=&quot;d&quot;:t._tickround=+e.substr(1)%12==0?&quot;y&quot;:&quot;m&quot;;else if(e&gt;=A&amp;&amp;a&lt;=10||e&gt;=15*A)t._tickround=&quot;d&quot;;else if(e&gt;=C&amp;&amp;a&lt;=16||e&gt;=E)t._tickround=&quot;M&quot;;else if(e&gt;=L&amp;&amp;a&lt;=19||e&gt;=C)t._tickround=&quot;S&quot;;else{var o=t.l2r(r+e).replace(/^-/,&quot;&quot;).length;t._tickround=Math.max(a,o)-20,t._tickround&lt;0&amp;&amp;(t._tickround=4)}}else if(i(e)||&quot;L&quot;===e.charAt(0)){var s=t.range.map(t.r2d||Number);i(e)||(e=Number(e.substr(1))),t._tickround=2-Math.floor(Math.log(e)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),c=Math.floor(Math.log(l)/Math.LN10+.01),u=void 0===t.minexponent?3:t.minexponent;Math.abs(c)&gt;u&amp;&amp;(ot(t.exponentformat)&amp;&amp;!st(c)?t._tickexponent=3*Math.round((c-1)/3):t._tickexponent=c)}else t._tickround=null}function it(t,e,r){var n=t.tickfont||{};return{x:e,dx:0,dy:0,text:r||&quot;&quot;,fontSize:n.size,font:n.family,fontColor:n.color}}B.autoTicks=function(t,e){var r;function n(t){return Math.pow(t,Math.floor(Math.log(e)/Math.LN10))}if(&quot;date&quot;===t.type){t.tick0=s.dateTick0(t.calendar,0);var a=2*e;if(a&gt;v)e/=v,r=n(10),t.dtick=&quot;M&quot;+12*rt(e,r,Z);else if(a&gt;T)e/=T,t.dtick=&quot;M&quot;+rt(e,1,J);else if(a&gt;A){t.dtick=rt(e,A,t._hasDayOfWeekBreaks?[1,2,7,14]:Q);var o=B.getTickFormat(t),l=&quot;period&quot;===t.ticklabelmode;l&amp;&amp;(t._rawTick0=t.tick0),/%[uVW]/.test(o)?t.tick0=s.dateTick0(t.calendar,2):t.tick0=s.dateTick0(t.calendar,1),l&amp;&amp;(t._dowTick0=t.tick0)}else a&gt;E?t.dtick=rt(e,E,J):a&gt;C?t.dtick=rt(e,C,K):a&gt;L?t.dtick=rt(e,L,K):(r=n(10),t.dtick=rt(e,r,Z))}else if(&quot;log&quot;===t.type){t.tick0=0;var c=s.simpleMap(t.range,t.r2l);if(e&gt;.7)t.dtick=Math.ceil(e);else if(Math.abs(c[1]-c[0])&lt;1){var u=1.5*Math.abs((c[1]-c[0])/e);e=Math.abs(Math.pow(10,c[1])-Math.pow(10,c[0]))/u,r=n(10),t.dtick=&quot;L&quot;+rt(e,r,Z)}else t.dtick=e&gt;.3?&quot;D2&quot;:&quot;D1&quot;}else&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?(t.tick0=0,t.dtick=Math.ceil(Math.max(e,1))):_t(t)?(t.tick0=0,r=1,t.dtick=rt(e,r,et)):(t.tick0=0,r=n(10),t.dtick=rt(e,r,Z));if(0===t.dtick&amp;&amp;(t.dtick=1),!i(t.dtick)&amp;&amp;&quot;string&quot;!=typeof t.dtick){var f=t.dtick;throw t.dtick=1,&quot;ax.dtick error: &quot;+String(f)}},B.tickIncrement=function(t,e,r,a){var o=r?-1:1;if(i(e))return s.increment(t,o*e);var l=e.charAt(0),c=o*Number(e.substr(1));if(&quot;M&quot;===l)return s.incrementMonth(t,c,a);if(&quot;L&quot;===l)return Math.log(Math.pow(10,t)+c)/Math.LN10;if(&quot;D&quot;===l){var u=&quot;D2&quot;===e?tt:$,f=t+.01*o,h=s.roundUp(s.mod(f,1),u,r);return Math.floor(f)+Math.log(n.round(Math.pow(10,h),1))/Math.LN10}throw&quot;unrecognized dtick &quot;+String(e)},B.tickFirst=function(t,e){var r=t.r2l||Number,a=s.simpleMap(t.range,r,void 0,void 0,e),o=a[1]&lt;a[0],l=o?Math.floor:Math.ceil,c=H(a)[0],u=t.dtick,f=r(t.tick0);if(i(u)){var h=l((c-f)/u)*u+f;return&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(h=s.constrain(h,0,t._categories.length-1)),h}var p=u.charAt(0),d=Number(u.substr(1));if(&quot;M&quot;===p){for(var g,m,v,y=0,x=f;y&lt;10;){if(((g=B.tickIncrement(x,u,o,t.calendar))-c)*(x-c)&lt;=0)return o?Math.min(x,g):Math.max(x,g);m=(c-(x+g)/2)/(g-x),v=p+(Math.abs(Math.round(m))||1)*d,x=B.tickIncrement(x,v,m&lt;0?!o:o,t.calendar),y++}return s.error(&quot;tickFirst did not converge&quot;,t),x}if(&quot;L&quot;===p)return Math.log(l((Math.pow(10,c)-f)/d)*d+f)/Math.LN10;if(&quot;D&quot;===p){var b=&quot;D2&quot;===u?tt:$,_=s.roundUp(s.mod(c,1),b,o);return Math.floor(c)+Math.log(n.round(Math.pow(10,_),1))/Math.LN10}throw&quot;unrecognized dtick &quot;+String(u)},B.tickText=function(t,e,r,n){var a,o=it(t,e),l=&quot;array&quot;===t.tickmode,c=r||l,u=t.type,f=&quot;category&quot;===u?t.d2l_noadd:t.d2l;if(l&amp;&amp;Array.isArray(t.ticktext)){var h=s.simpleMap(t.range,t.r2l),p=(Math.abs(h[1]-h[0])-(t._lBreaks||0))/1e4;for(a=0;a&lt;t.ticktext.length&amp;&amp;!(Math.abs(e-f(t.tickvals[a]))&lt;p);a++);if(a&lt;t.ticktext.length)return o.text=String(t.ticktext[a]),o}function d(n){if(void 0===n)return!0;if(r)return&quot;none&quot;===n;var i={first:t._tmin,last:t._tmax}[n];return&quot;all&quot;!==n&amp;&amp;e!==i}var g=r?&quot;never&quot;:&quot;none&quot;!==t.exponentformat&amp;&amp;d(t.showexponent)?&quot;hide&quot;:&quot;&quot;;if(&quot;date&quot;===u?function(t,e,r,n){var a=t._tickround,o=r&amp;&amp;t.hoverformat||B.getTickFormat(t);n&amp;&amp;(a=i(a)?4:{y:&quot;m&quot;,m:&quot;d&quot;,d:&quot;M&quot;,M:&quot;S&quot;,S:4}[a]);var l,c=s.formatDate(e.x,o,a,t._dateFormat,t.calendar,t._extraFormat),u=c.indexOf(&quot;\n&quot;);-1!==u&amp;&amp;(l=c.substr(u+1),c=c.substr(0,u));n&amp;&amp;(&quot;00:00:00&quot;===c||&quot;00:00&quot;===c?(c=l,l=&quot;&quot;):8===c.length&amp;&amp;(c=c.replace(/:00$/,&quot;&quot;)));if(l)if(r)&quot;d&quot;===a?c+=&quot;, &quot;+l:c=l+(c?&quot;, &quot;+c:&quot;&quot;);else if(t._inCalcTicks&amp;&amp;t._prevDateHead===l){var f=-1!==(t.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;),h=t._realSide||t.side;(!f&amp;&amp;&quot;top&quot;===h||f&amp;&amp;&quot;bottom&quot;===h)&amp;&amp;(c+=&quot;&lt;br&gt; &quot;)}else t._prevDateHead=l,c+=&quot;&lt;br&gt;&quot;+l;e.text=c}(t,o,r,c):&quot;log&quot;===u?function(t,e,r,n,a){var o=t.dtick,l=e.x,c=t.tickformat,u=&quot;string&quot;==typeof o&amp;&amp;o.charAt(0);&quot;never&quot;===a&amp;&amp;(a=&quot;&quot;);n&amp;&amp;&quot;L&quot;!==u&amp;&amp;(o=&quot;L3&quot;,u=&quot;L&quot;);if(c||&quot;L&quot;===u)e.text=lt(Math.pow(10,l),t,a,n);else if(i(o)||&quot;D&quot;===u&amp;&amp;s.mod(l+.01,1)&lt;.1){var f=Math.round(l),h=Math.abs(f),p=t.exponentformat;&quot;power&quot;===p||ot(p)&amp;&amp;st(f)?(e.text=0===f?1:1===f?&quot;10&quot;:&quot;10&lt;sup&gt;&quot;+(f&gt;1?&quot;&quot;:I)+h+&quot;&lt;/sup&gt;&quot;,e.fontSize*=1.25):(&quot;e&quot;===p||&quot;E&quot;===p)&amp;&amp;h&gt;2?e.text=&quot;1&quot;+p+(f&gt;0?&quot;+&quot;:I)+h:(e.text=lt(Math.pow(10,l),t,&quot;&quot;,&quot;fakehover&quot;),&quot;D1&quot;===o&amp;&amp;&quot;y&quot;===t._id.charAt(0)&amp;&amp;(e.dy-=e.fontSize/6))}else{if(&quot;D&quot;!==u)throw&quot;unrecognized dtick &quot;+String(o);e.text=String(Math.round(Math.pow(10,s.mod(l,1)))),e.fontSize*=.75}if(&quot;D1&quot;===t.dtick){var d=String(e.text).charAt(0);&quot;0&quot;!==d&amp;&amp;&quot;1&quot;!==d||(&quot;y&quot;===t._id.charAt(0)?e.dx-=e.fontSize/4:(e.dy+=e.fontSize/2,e.dx+=(t.range[1]&gt;t.range[0]?1:-1)*e.fontSize*(l&lt;0?.5:.25)))}}(t,o,0,c,g):&quot;category&quot;===u?function(t,e){var r=t._categories[Math.round(e.x)];void 0===r&amp;&amp;(r=&quot;&quot;);e.text=String(r)}(t,o):&quot;multicategory&quot;===u?function(t,e,r){var n=Math.round(e.x),i=t._categories[n]||[],a=void 0===i[1]?&quot;&quot;:String(i[1]),o=void 0===i[0]?&quot;&quot;:String(i[0]);r?e.text=o+&quot; - &quot;+a:(e.text=a,e.text2=o)}(t,o,r):_t(t)?function(t,e,r,n,i){if(&quot;radians&quot;!==t.thetaunit||r)e.text=lt(e.x,t,i,n);else{var a=e.x/180;if(0===a)e.text=&quot;0&quot;;else{var o=function(t){function e(t,e){return Math.abs(t-e)&lt;=1e-6}var r=function(t){for(var r=1;!e(Math.round(t*r)/r,t);)r*=10;return r}(t),n=t*r,i=Math.abs(function t(r,n){return e(n,0)?r:t(n,r%n)}(n,r));return[Math.round(n/i),Math.round(r/i)]}(a);if(o[1]&gt;=100)e.text=lt(s.deg2rad(e.x),t,i,n);else{var l=e.x&lt;0;1===o[1]?1===o[0]?e.text=&quot;\u03c0&quot;:e.text=o[0]+&quot;\u03c0&quot;:e.text=[&quot;&lt;sup&gt;&quot;,o[0],&quot;&lt;/sup&gt;&quot;,&quot;\u2044&quot;,&quot;&lt;sub&gt;&quot;,o[1],&quot;&lt;/sub&gt;&quot;,&quot;\u03c0&quot;].join(&quot;&quot;),l&amp;&amp;(e.text=I+e.text)}}}}(t,o,r,c,g):function(t,e,r,n,i){&quot;never&quot;===i?i=&quot;&quot;:&quot;all&quot;===t.showexponent&amp;&amp;Math.abs(e.x/t.dtick)&lt;1e-6&amp;&amp;(i=&quot;hide&quot;);e.text=lt(e.x,t,i,n)}(t,o,0,c,g),n||(t.tickprefix&amp;&amp;!d(t.showtickprefix)&amp;&amp;(o.text=t.tickprefix+o.text),t.ticksuffix&amp;&amp;!d(t.showticksuffix)&amp;&amp;(o.text+=t.ticksuffix)),&quot;boundaries&quot;===t.tickson||t.showdividers){var m=function(e){var r=t.l2p(e);return r&gt;=0&amp;&amp;r&lt;=t._length?e:null};o.xbnd=[m(o.x-.5),m(o.x+t.dtick-.5)]}return o},B.hoverLabelText=function(t,e,r){if(r!==P&amp;&amp;r!==e)return B.hoverLabelText(t,e)+&quot; - &quot;+B.hoverLabelText(t,r);var n=&quot;log&quot;===t.type&amp;&amp;e&lt;=0,i=B.tickText(t,t.c2l(n?-e:e),&quot;hover&quot;).text;return n?0===e?&quot;0&quot;:I+i:i};var at=[&quot;f&quot;,&quot;p&quot;,&quot;n&quot;,&quot;\u03bc&quot;,&quot;m&quot;,&quot;&quot;,&quot;k&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;];function ot(t){return&quot;SI&quot;===t||&quot;B&quot;===t}function st(t){return t&gt;14||t&lt;-15}function lt(t,e,r,n){var a=t&lt;0,o=e._tickround,l=r||e.exponentformat||&quot;B&quot;,c=e._tickexponent,u=B.getTickFormat(e),f=e.separatethousands;if(n){var h={exponentformat:l,minexponent:e.minexponent,dtick:&quot;none&quot;===e.showexponent?e.dtick:i(t)&amp;&amp;Math.abs(t)||1,range:&quot;none&quot;===e.showexponent?e.range.map(e.r2d):[0,t||1]};nt(h),o=(Number(h._tickround)||0)+4,c=h._tickexponent,e.hoverformat&amp;&amp;(u=e.hoverformat)}if(u)return e._numFormat(u)(t).replace(/-/g,I);var p,d=Math.pow(10,-o)/2;if(&quot;none&quot;===l&amp;&amp;(c=0),(t=Math.abs(t))&lt;d)t=&quot;0&quot;,a=!1;else{if(t+=d,c&amp;&amp;(t*=Math.pow(10,-c),o+=c),0===o)t=String(Math.floor(t));else if(o&lt;0){t=(t=String(Math.round(t))).substr(0,t.length+o);for(var g=o;g&lt;0;g++)t+=&quot;0&quot;}else{var m=(t=String(t)).indexOf(&quot;.&quot;)+1;m&amp;&amp;(t=t.substr(0,m+o).replace(/\.?0+$/,&quot;&quot;))}t=s.numSeparate(t,e._separators,f)}c&amp;&amp;&quot;hide&quot;!==l&amp;&amp;(ot(l)&amp;&amp;st(c)&amp;&amp;(l=&quot;power&quot;),p=c&lt;0?I+-c:&quot;power&quot;!==l?&quot;+&quot;+c:String(c),&quot;e&quot;===l||&quot;E&quot;===l?t+=l+p:&quot;power&quot;===l?t+=&quot;\xd710&lt;sup&gt;&quot;+p+&quot;&lt;/sup&gt;&quot;:&quot;B&quot;===l&amp;&amp;9===c?t+=&quot;B&quot;:ot(l)&amp;&amp;(t+=at[c/3+5]));return a?I+t:t}function ct(t,e){for(var r=[],n={},i=0;i&lt;e.length;i++){var a=e[i];n[a.text2]?n[a.text2].push(a.x):n[a.text2]=[a.x]}for(var o in n)r.push(it(t,s.interp(n[o],.5),o));return r}function ut(t){return void 0!==t.periodX?t.periodX:t.x}function ft(t){return[t.text,t.x,t.axInfo,t.font,t.fontSize,t.fontColor].join(&quot;_&quot;)}function ht(t){var e=t.title.font.size,r=(t.title.text.match(c.BR_TAG_ALL)||[]).length;return t.title.hasOwnProperty(&quot;standoff&quot;)?r?e*(D+r*R):e*D:r?e*(r+1)*R:e}function pt(t,e){var r=t.l2p(e);return r&gt;1&amp;&amp;r&lt;t._length-1}function dt(t){var e=n.select(t),r=e.select(&quot;.text-math-group&quot;);return r.empty()?e.select(&quot;text&quot;):r}function gt(t){return t._id+&quot;.automargin&quot;}function mt(t){return gt(t)+&quot;.mirror&quot;}function vt(t){return t._id+&quot;.rangeslider&quot;}function yt(t,e){for(var r=0;r&lt;e.length;r++)-1===t.indexOf(e[r])&amp;&amp;t.push(e[r])}function xt(t,e,r){var n,i,a=[],o=[],l=t.layout;for(n=0;n&lt;e.length;n++)a.push(B.getFromId(t,e[n]));for(n=0;n&lt;r.length;n++)o.push(B.getFromId(t,r[n]));var c=Object.keys(p),u=[&quot;anchor&quot;,&quot;domain&quot;,&quot;overlaying&quot;,&quot;position&quot;,&quot;side&quot;,&quot;tickangle&quot;,&quot;editType&quot;],f=[&quot;linear&quot;,&quot;log&quot;];for(n=0;n&lt;c.length;n++){var h=c[n],d=a[0][h],g=o[0][h],m=!0,v=!1,y=!1;if(&quot;_&quot;!==h.charAt(0)&amp;&amp;&quot;function&quot;!=typeof d&amp;&amp;-1===u.indexOf(h)){for(i=1;i&lt;a.length&amp;&amp;m;i++){var x=a[i][h];&quot;type&quot;===h&amp;&amp;-1!==f.indexOf(d)&amp;&amp;-1!==f.indexOf(x)&amp;&amp;d!==x?v=!0:x!==d&amp;&amp;(m=!1)}for(i=1;i&lt;o.length&amp;&amp;m;i++){var b=o[i][h];&quot;type&quot;===h&amp;&amp;-1!==f.indexOf(g)&amp;&amp;-1!==f.indexOf(b)&amp;&amp;g!==b?y=!0:o[i][h]!==g&amp;&amp;(m=!1)}m&amp;&amp;(v&amp;&amp;(l[a[0]._name].type=&quot;linear&quot;),y&amp;&amp;(l[o[0]._name].type=&quot;linear&quot;),bt(l,h,a,o,t._fullLayout._dfltTitle))}}for(n=0;n&lt;t._fullLayout.annotations.length;n++){var _=t._fullLayout.annotations[n];-1!==e.indexOf(_.xref)&amp;&amp;-1!==r.indexOf(_.yref)&amp;&amp;s.swapAttrs(l.annotations[n],[&quot;?&quot;])}}function bt(t,e,r,n,i){var a,o=s.nestedProperty,l=o(t[r[0]._name],e).get(),c=o(t[n[0]._name],e).get();for(&quot;title&quot;===e&amp;&amp;(l&amp;&amp;l.text===i.x&amp;&amp;(l.text=i.y),c&amp;&amp;c.text===i.y&amp;&amp;(c.text=i.x)),a=0;a&lt;r.length;a++)o(t,r[a]._name+&quot;.&quot;+e).set(c);for(a=0;a&lt;n.length;a++)o(t,n[a]._name+&quot;.&quot;+e).set(l)}function _t(t){return&quot;angularaxis&quot;===t._id}function wt(t,e){for(var r=e._rangebreaks.length,n=0;n&lt;r;n++){var i=e._rangebreaks[n];if(t&gt;=i.min&amp;&amp;t&lt;i.max)return i.max}return t}B.getTickFormat=function(t){var e,r,n,i,a,o,s,l;function c(t){return&quot;string&quot;!=typeof t?t:Number(t.replace(&quot;M&quot;,&quot;&quot;))*T}function u(t,e){var r=[&quot;L&quot;,&quot;D&quot;];if(typeof t==typeof e){if(&quot;number&quot;==typeof t)return t-e;var n=r.indexOf(t.charAt(0)),i=r.indexOf(e.charAt(0));return n===i?Number(t.replace(/(L|D)/g,&quot;&quot;))-Number(e.replace(/(L|D)/g,&quot;&quot;)):n-i}return&quot;number&quot;==typeof t?1:-1}function f(t,e){var r=null===e[0],n=null===e[1],i=u(t,e[0])&gt;=0,a=u(t,e[1])&lt;=0;return(r||i)&amp;&amp;(n||a)}if(t.tickformatstops&amp;&amp;t.tickformatstops.length&gt;0)switch(t.type){case&quot;date&quot;:case&quot;linear&quot;:for(e=0;e&lt;t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&amp;&amp;(i=t.dtick,a=n.dtickrange,o=void 0,s=void 0,l=void 0,o=c||function(t){return t},s=a[0],l=a[1],(!s&amp;&amp;&quot;number&quot;!=typeof s||o(s)&lt;=o(i))&amp;&amp;(!l&amp;&amp;&quot;number&quot;!=typeof l||o(l)&gt;=o(i)))){r=n;break}break;case&quot;log&quot;:for(e=0;e&lt;t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&amp;&amp;f(t.dtick,n.dtickrange)){r=n;break}}return r?r.value:t.tickformat},B.getSubplots=function(t,e){var r=t._fullLayout._subplots,n=r.cartesian.concat(r.gl2d||[]),i=e?B.findSubplotsWithAxis(n,e):n;return i.sort((function(t,e){var r=t.substr(1).split(&quot;y&quot;),n=e.substr(1).split(&quot;y&quot;);return r[0]===n[0]?+r[1]-+n[1]:+r[0]-+n[0]})),i},B.findSubplotsWithAxis=function(t,e){for(var r=new RegExp(&quot;x&quot;===e._id.charAt(0)?&quot;^&quot;+e._id+&quot;y&quot;:e._id+&quot;$&quot;),n=[],i=0;i&lt;t.length;i++){var a=t[i];r.test(a)&amp;&amp;n.push(a)}return n},B.makeClipPaths=function(t){var e=t._fullLayout;if(!e._hasOnlyLargeSploms){var r,i,a={_offset:0,_length:e.width,_id:&quot;&quot;},o={_offset:0,_length:e.height,_id:&quot;&quot;},s=B.list(t,&quot;x&quot;,!0),l=B.list(t,&quot;y&quot;,!0),c=[];for(r=0;r&lt;s.length;r++)for(c.push({x:s[r],y:o}),i=0;i&lt;l.length;i++)0===r&amp;&amp;c.push({x:a,y:l[i]}),c.push({x:s[r],y:l[i]});var u=e._clips.selectAll(&quot;.axesclip&quot;).data(c,(function(t){return t.x._id+t.y._id}));u.enter().append(&quot;clipPath&quot;).classed(&quot;axesclip&quot;,!0).attr(&quot;id&quot;,(function(t){return&quot;clip&quot;+e._uid+t.x._id+t.y._id})).append(&quot;rect&quot;),u.exit().remove(),u.each((function(t){n.select(this).select(&quot;rect&quot;).attr({x:t.x._offset||0,y:t.y._offset||0,width:t.x._length||1,height:t.y._length||1})}))}},B.draw=function(t,e,r){var n=t._fullLayout;&quot;redraw&quot;===e&amp;&amp;n._paper.selectAll(&quot;g.subplot&quot;).each((function(t){var e=t[0],r=n._plots[e];if(r){var i=r.xaxis,a=r.yaxis;r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;tick&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;tick&quot;).remove(),r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;tick2&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;tick2&quot;).remove(),r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;divider&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;divider&quot;).remove(),r.gridlayer&amp;&amp;r.gridlayer.selectAll(&quot;path&quot;).remove(),r.zerolinelayer&amp;&amp;r.zerolinelayer.selectAll(&quot;path&quot;).remove(),n._infolayer.select(&quot;.g-&quot;+i._id+&quot;title&quot;).remove(),n._infolayer.select(&quot;.g-&quot;+a._id+&quot;title&quot;).remove()}}));var i=e&amp;&amp;&quot;redraw&quot;!==e?e:B.listIds(t);return s.syncOrAsync(i.map((function(e){return function(){if(e){var n=B.getFromId(t,e),i=B.drawOne(t,n,r);return n._r=n.range.slice(),n._rl=s.simpleMap(n._r,n.r2l),i}}})))},B.drawOne=function(t,e,r){var n,i,l;r=r||{},e.setScale();var c=t._fullLayout,p=e._id,d=p.charAt(0),g=B.counterLetter(p),m=c._plots[e._mainSubplot];if(m){var v=m[d+&quot;axislayer&quot;],y=e._mainLinePosition,x=e._mainMirrorPosition,b=e._vals=B.calcTicks(e),_=[e.mirror,y,x].join(&quot;_&quot;);for(n=0;n&lt;b.length;n++)b[n].axInfo=_;e._selections={},e._tickAngles&amp;&amp;(e._prevTickAngles=e._tickAngles),e._tickAngles={},e._depth=null;var w={};if(e.visible){var T,k,M=B.makeTransTickFn(e),A=B.makeTransTickLabelFn(e),S=&quot;inside&quot;===e.ticks,E=&quot;outside&quot;===e.ticks;if(&quot;boundaries&quot;===e.tickson){var C=function(t,e){var r,n=[],i=function(t,e){var r=t.xbnd[e];null!==r&amp;&amp;n.push(s.extendFlat({},t,{x:r}))};if(e.length){for(r=0;r&lt;e.length;r++)i(e[r],0);i(e[r-1],1)}return n}(0,b);k=B.clipEnds(e,C),T=S?k:C}else k=B.clipEnds(e,b),T=S&amp;&amp;&quot;period&quot;!==e.ticklabelmode?k:b;var L=e._gridVals=k,I=function(t,e){var r,n,i=[],a=e.length&amp;&amp;e[e.length-1].x&lt;e[0].x,o=function(t,e){var r=t.xbnd[e];null!==r&amp;&amp;i.push(s.extendFlat({},t,{x:r}))};if(t.showdividers&amp;&amp;e.length){for(r=0;r&lt;e.length;r++){var l=e[r];l.text2!==n&amp;&amp;o(l,a?1:0),n=l.text2}o(e[r-1],a?0:1)}return i}(e,b);if(!c._hasOnlyLargeSploms){var P=e._subplotsWith,z={};for(n=0;n&lt;P.length;n++){i=P[n];var O=(l=c._plots[i])[g+&quot;axis&quot;],D=O._mainAxis._id;if(!z[D]){z[D]=1;var N=&quot;x&quot;===d?&quot;M0,&quot;+O._offset+&quot;v&quot;+O._length:&quot;M&quot;+O._offset+&quot;,0h&quot;+O._length;B.drawGrid(t,e,{vals:L,counterAxis:O,layer:l.gridlayer.select(&quot;.&quot;+p),path:N,transFn:M}),B.drawZeroLine(t,e,{counterAxis:O,layer:l.zerolinelayer,path:N,transFn:M})}}}var j=B.getTickSigns(e),U=[];if(e.ticks){var V,q,H,G=B.makeTickPath(e,y,j[2]);if(e._anchorAxis&amp;&amp;e.mirror&amp;&amp;!0!==e.mirror?(V=B.makeTickPath(e,x,j[3]),q=G+V):(V=&quot;&quot;,q=G),e.showdividers&amp;&amp;E&amp;&amp;&quot;boundaries&quot;===e.tickson){var Y={};for(n=0;n&lt;I.length;n++)Y[I[n].x]=1;H=function(t){return Y[t.x]?V:q}}else H=q;B.drawTicks(t,e,{vals:T,layer:v,path:H,transFn:M}),&quot;allticks&quot;===e.mirror&amp;&amp;(U=Object.keys(e._linepositions||{}))}for(n=0;n&lt;U.length;n++){i=U[n],l=c._plots[i];var W=e._linepositions[i]||[],X=B.makeTickPath(e,W[0],j[0])+B.makeTickPath(e,W[1],j[1]);B.drawTicks(t,e,{vals:T,layer:l[d+&quot;axislayer&quot;],path:X,transFn:M})}var Z=[];if(Z.push((function(){return B.drawLabels(t,e,{vals:b,layer:v,transFn:A,labelFns:B.makeLabelFns(e,y)})})),&quot;multicategory&quot;===e.type){var J={x:2,y:10}[d];Z.push((function(){var r={x:&quot;height&quot;,y:&quot;width&quot;}[d],n=Q()[r]+J+(e._tickAngles[p+&quot;tick&quot;]?e.tickfont.size*R:0);return B.drawLabels(t,e,{vals:ct(e,b),layer:v,cls:p+&quot;tick2&quot;,repositionOnUpdate:!0,secondary:!0,transFn:M,labelFns:B.makeLabelFns(e,y+n*j[4])})})),Z.push((function(){return e._depth=j[4]*(Q(&quot;tick2&quot;)[e.side]-y),function(t,e,r){var n=e._id+&quot;divider&quot;,i=r.vals,a=r.layer.selectAll(&quot;path.&quot;+n).data(i,ft);a.exit().remove(),a.enter().insert(&quot;path&quot;,&quot;:first-child&quot;).classed(n,1).classed(&quot;crisp&quot;,1).call(f.stroke,e.dividercolor).style(&quot;stroke-width&quot;,h.crispRound(t,e.dividerwidth,1)+&quot;px&quot;),a.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path)}(t,e,{vals:I,layer:v,path:B.makeTickPath(e,y,j[4],e._depth),transFn:M})}))}else e.title.hasOwnProperty(&quot;standoff&quot;)&amp;&amp;Z.push((function(){e._depth=j[4]*(Q()[e.side]-y)}));var K=o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(e);return Z.push((function(){var r,n,i,s,l=e.side.charAt(0),u=F[e.side].charAt(0),f=B.getPxPosition(t,e),h=E?e.ticklen:0;if((e.automargin||K)&amp;&amp;(&quot;multicategory&quot;===e.type?r=Q(&quot;tick2&quot;):(r=Q(),&quot;x&quot;===d&amp;&amp;&quot;b&quot;===l&amp;&amp;(e._depth=Math.max(r.width&gt;0?r.bottom-f:0,h)))),e.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var p=[0,1];if(&quot;x&quot;===d){if(&quot;b&quot;===l?n[l]=e._depth:(n[l]=e._depth=Math.max(r.width&gt;0?f-r.top:0,h),p.reverse()),r.width&gt;0){var m=r.right-(e._offset+e._length);m&gt;0&amp;&amp;(n.xr=1,n.r=m);var v=e._offset-r.left;v&gt;0&amp;&amp;(n.xl=0,n.l=v)}}else if(&quot;l&quot;===l?n[l]=e._depth=Math.max(r.height&gt;0?f-r.left:0,h):(n[l]=e._depth=Math.max(r.height&gt;0?r.right-f:0,h),p.reverse()),r.height&gt;0){var y=r.bottom-(e._offset+e._length);y&gt;0&amp;&amp;(n.yb=0,n.b=y);var x=e._offset-r.top;x&gt;0&amp;&amp;(n.yt=1,n.t=x)}n[g]=&quot;free&quot;===e.anchor?e.position:e._anchorAxis.domain[p[0]],e.title.text!==c._dfltTitle[d]&amp;&amp;(n[l]+=ht(e)+(e.title.standoff||0)),e.mirror&amp;&amp;&quot;free&quot;!==e.anchor&amp;&amp;((i={x:0,y:0,r:0,l:0,t:0,b:0})[u]=e.linewidth,e.mirror&amp;&amp;!0!==e.mirror&amp;&amp;(i[u]+=h),!0===e.mirror||&quot;ticks&quot;===e.mirror?i[g]=e._anchorAxis.domain[p[1]]:&quot;all&quot;!==e.mirror&amp;&amp;&quot;allticks&quot;!==e.mirror||(i[g]=[e._counterDomainMin,e._counterDomainMax][p[1]]))}K&amp;&amp;(s=o.getComponentMethod(&quot;rangeslider&quot;,&quot;autoMarginOpts&quot;)(t,e)),a.autoMargin(t,gt(e),n),a.autoMargin(t,mt(e),i),a.autoMargin(t,vt(e),s)})),r.skipTitle||K&amp;&amp;&quot;bottom&quot;===e.side||Z.push((function(){return function(t,e){var r,n=t._fullLayout,i=e._id,a=i.charAt(0),o=e.title.font.size;if(e.title.hasOwnProperty(&quot;standoff&quot;))r=e._depth+e.title.standoff+ht(e);else{var s=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;);if(&quot;multicategory&quot;===e.type)r=e._depth;else{var l=1.5*o;s&amp;&amp;(l=.5*o,&quot;outside&quot;===e.ticks&amp;&amp;(l+=e.ticklen)),r=10+l+(e.linewidth?e.linewidth-1:0)}s||(r+=&quot;x&quot;===a?&quot;top&quot;===e.side?o*(e.showticklabels?1:0):o*(e.showticklabels?1.5:.5):&quot;right&quot;===e.side?o*(e.showticklabels?1:.5):o*(e.showticklabels?.5:0))}var c,f,p,d,g=B.getPxPosition(t,e);&quot;x&quot;===a?(f=e._offset+e._length/2,p=&quot;top&quot;===e.side?g-r:g+r):(p=e._offset+e._length/2,f=&quot;right&quot;===e.side?g+r:g-r,c={rotate:&quot;-90&quot;,offset:0});if(&quot;multicategory&quot;!==e.type){var m=e._selections[e._id+&quot;tick&quot;];if(d={selection:m,side:e.side},m&amp;&amp;m.node()&amp;&amp;m.node().parentNode){var v=h.getTranslate(m.node().parentNode);d.offsetLeft=v.x,d.offsetTop=v.y}e.title.hasOwnProperty(&quot;standoff&quot;)&amp;&amp;(d.pad=0)}return u.draw(t,i+&quot;title&quot;,{propContainer:e,propName:e._name+&quot;.title.text&quot;,placeholder:n._dfltTitle[a],avoid:d,transform:c,attributes:{x:f,y:p,&quot;text-anchor&quot;:&quot;middle&quot;}})}(t,e)})),s.syncOrAsync(Z)}}function Q(t){var r=p+(t||&quot;tick&quot;);return w[r]||(w[r]=function(t,e){var r,n,i,a;t._selections[e].size()?(r=1/0,n=-1/0,i=1/0,a=-1/0,t._selections[e].each((function(){var t=dt(this),e=h.bBox(t.node().parentNode);r=Math.min(r,e.top),n=Math.max(n,e.bottom),i=Math.min(i,e.left),a=Math.max(a,e.right)}))):(r=0,n=0,i=0,a=0);return{top:r,bottom:n,left:i,right:a,height:n-r,width:a-i}}(e,r)),w[r]}},B.getTickSigns=function(t){var e=t._id.charAt(0),r={x:&quot;top&quot;,y:&quot;right&quot;}[e],n=t.side===r?1:-1,i=[-1,1,n,-n];return&quot;inside&quot;!==t.ticks==(&quot;x&quot;===e)&amp;&amp;(i=i.map((function(t){return-t}))),t.side&amp;&amp;i.push({l:-1,t:-1,r:1,b:1}[t.side.charAt(0)]),i},B.makeTransTickFn=function(t){return&quot;x&quot;===t._id.charAt(0)?function(e){return l(t._offset+t.l2p(e.x),0)}:function(e){return l(0,t._offset+t.l2p(e.x))}},B.makeTransTickLabelFn=function(t){var e=function(t){var e=t.ticklabelposition||&quot;&quot;,r=function(t){return-1!==e.indexOf(t)},n=r(&quot;top&quot;),i=r(&quot;left&quot;),a=r(&quot;right&quot;),o=r(&quot;bottom&quot;),s=r(&quot;inside&quot;),l=o||i||n||a;if(!l&amp;&amp;!s)return[0,0];var c=t.side,u=l?(t.tickwidth||0)/2:0,f=3,h=t.tickfont?t.tickfont.size:12;(o||n)&amp;&amp;(u+=h*D,f+=(t.linewidth||0)/2);(i||a)&amp;&amp;(u+=(t.linewidth||0)/2,f+=3);s&amp;&amp;&quot;top&quot;===c&amp;&amp;(f-=h*(1-D));(i||n)&amp;&amp;(u=-u);&quot;bottom&quot;!==c&amp;&amp;&quot;right&quot;!==c||(f=-f);return[l?u:0,s?f:0]}(t),r=e[0],n=e[1];return&quot;x&quot;===t._id.charAt(0)?function(e){return l(r+t._offset+t.l2p(ut(e)),n)}:function(e){return l(n,r+t._offset+t.l2p(ut(e)))}},B.makeTickPath=function(t,e,r,n){n=void 0!==n?n:t.ticklen;var i=t._id.charAt(0),a=(t.linewidth||1)/2;return&quot;x&quot;===i?&quot;M0,&quot;+(e+a*r)+&quot;v&quot;+n*r:&quot;M&quot;+(e+a*r)+&quot;,0h&quot;+n*r},B.makeLabelFns=function(t,e,r){var n=t.ticklabelposition||&quot;&quot;,a=function(t){return-1!==n.indexOf(t)},o=a(&quot;top&quot;),l=a(&quot;left&quot;),c=a(&quot;right&quot;),u=a(&quot;bottom&quot;)||l||o||c,f=a(&quot;inside&quot;),h=&quot;inside&quot;===n&amp;&amp;&quot;inside&quot;===t.ticks||!f&amp;&amp;&quot;outside&quot;===t.ticks&amp;&amp;&quot;boundaries&quot;!==t.tickson,p=0,d=0,g=h?t.ticklen:0;if(f?g*=-1:u&amp;&amp;(g=0),h&amp;&amp;(p+=g,r)){var m=s.deg2rad(r);p=g*Math.cos(m)+1,d=g*Math.sin(m)}t.showticklabels&amp;&amp;(h||t.showline)&amp;&amp;(p+=.2*t.tickfont.size);var v,y,x,b,_,w={labelStandoff:p+=(t.linewidth||1)/2*(f?-1:1),labelShift:d},T=0,k=t.side,M=t._id.charAt(0),A=t.tickangle;if(&quot;x&quot;===M)b=(_=!f&amp;&amp;&quot;bottom&quot;===k||f&amp;&amp;&quot;top&quot;===k)?1:-1,f&amp;&amp;(b*=-1),v=d*b,y=e+p*b,x=_?1:-.2,90===Math.abs(A)&amp;&amp;(f?x+=O:x=-90===A&amp;&amp;&quot;bottom&quot;===k?D:90===A&amp;&amp;&quot;top&quot;===k?O:.5,T=O/2*(A/90)),w.xFn=function(t){return t.dx+v+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*x},w.anchorFn=function(t,e){if(u){if(l)return&quot;end&quot;;if(c)return&quot;start&quot;}return i(e)&amp;&amp;0!==e&amp;&amp;180!==e?e*b&lt;0!==f?&quot;end&quot;:&quot;start&quot;:&quot;middle&quot;},w.heightFn=function(e,r,n){return r&lt;-60||r&gt;60?-.5*n:&quot;top&quot;===t.side!==f?-n:0};else if(&quot;y&quot;===M){if(b=(_=!f&amp;&amp;&quot;left&quot;===k||f&amp;&amp;&quot;right&quot;===k)?1:-1,f&amp;&amp;(b*=-1),v=p,y=d*b,x=0,f||90!==Math.abs(A)||(x=-90===A&amp;&amp;&quot;left&quot;===k||90===A&amp;&amp;&quot;right&quot;===k?D:.5),f){var S=i(A)?+A:0;if(0!==S){var E=s.deg2rad(S);T=Math.abs(Math.sin(E))*D*b,x=0}}w.xFn=function(t){return t.dx+e-(v+t.fontSize*x)*b+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*O},w.anchorFn=function(t,e){return i(e)&amp;&amp;90===Math.abs(e)?&quot;middle&quot;:_?&quot;end&quot;:&quot;start&quot;},w.heightFn=function(e,r,n){return&quot;right&quot;===t.side&amp;&amp;(r*=-1),r&lt;-30?-n:r&lt;30?-.5*n:0}}return w},B.drawTicks=function(t,e,r){r=r||{};var n=e._id+&quot;tick&quot;,i=r.vals;&quot;period&quot;===e.ticklabelmode&amp;&amp;(i=i.slice()).shift();var a=r.layer.selectAll(&quot;path.&quot;+n).data(e.ticks?i:[],ft);a.exit().remove(),a.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;ticks&quot;,1).classed(&quot;crisp&quot;,!1!==r.crisp).call(f.stroke,e.tickcolor).style(&quot;stroke-width&quot;,h.crispRound(t,e.tickwidth,1)+&quot;px&quot;).attr(&quot;d&quot;,r.path),a.attr(&quot;transform&quot;,r.transFn)},B.drawGrid=function(t,e,r){r=r||{};var n=e._id+&quot;grid&quot;,i=r.vals,a=r.counterAxis;if(!1===e.showgrid)i=[];else if(a&amp;&amp;B.shouldShowZeroLine(t,e,a))for(var o=&quot;array&quot;===e.tickmode,s=0;s&lt;i.length;s++){var l=i[s].x;if(o?!l:Math.abs(l)&lt;e.dtick/100){if(i=i.slice(0,s).concat(i.slice(s+1)),!o)break;s--}}var c=r.layer.selectAll(&quot;path.&quot;+n).data(i,ft);c.exit().remove(),c.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;crisp&quot;,!1!==r.crisp),e._gw=h.crispRound(t,e.gridwidth,1),c.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path).call(f.stroke,e.gridcolor||&quot;#ddd&quot;).style(&quot;stroke-width&quot;,e._gw+&quot;px&quot;),&quot;function&quot;==typeof r.path&amp;&amp;c.attr(&quot;d&quot;,r.path)},B.drawZeroLine=function(t,e,r){r=r||r;var n=e._id+&quot;zl&quot;,i=B.shouldShowZeroLine(t,e,r.counterAxis),a=r.layer.selectAll(&quot;path.&quot;+n).data(i?[{x:0,id:e._id}]:[]);a.exit().remove(),a.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;zl&quot;,1).classed(&quot;crisp&quot;,!1!==r.crisp).each((function(){r.layer.selectAll(&quot;path&quot;).sort((function(t,e){return U(t.id,e.id)}))})),a.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path).call(f.stroke,e.zerolinecolor||f.defaultLine).style(&quot;stroke-width&quot;,h.crispRound(t,e.zerolinewidth,e._gw||1)+&quot;px&quot;)},B.drawLabels=function(t,e,r){r=r||{};var a=t._fullLayout,o=e._id,u=o.charAt(0),f=r.cls||o+&quot;tick&quot;,p=r.vals,d=r.labelFns,g=r.secondary?0:e.tickangle,m=(e._prevTickAngles||{})[f],v=r.layer.selectAll(&quot;g.&quot;+f).data(e.showticklabels?p:[],ft),y=[];function x(t,a){var o=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;);t.each((function(t){var s=n.select(this),u=s.select(&quot;.text-math-group&quot;),f=d.anchorFn(t,a),p=r.transFn.call(s.node(),t)+(i(a)&amp;&amp;0!=+a?&quot; rotate(&quot;+a+&quot;,&quot;+d.xFn(t)+&quot;,&quot;+(d.yFn(t)-t.fontSize/2)+&quot;)&quot;:&quot;&quot;),g=c.lineCount(s),m=R*t.fontSize,v=d.heightFn(t,i(a)?+a:0,(g-1)*m);if(v&amp;&amp;(p+=l(0,v)),u.empty()){var y=s.select(&quot;text&quot;);y.attr({transform:p,&quot;text-anchor&quot;:f}),o&amp;&amp;(y.style({opacity:100}),e._hideOutOfRangeInsideTickLabels&amp;&amp;e._hideOutOfRangeInsideTickLabels())}else{var x=h.bBox(u.node()).width*{end:-.5,start:.5}[f];u.attr(&quot;transform&quot;,p+l(x,0))}}))}v.enter().append(&quot;g&quot;).classed(f,1).append(&quot;text&quot;).attr(&quot;text-anchor&quot;,&quot;middle&quot;).each((function(e){var r=n.select(this),i=t._promises.length;r.call(c.positionText,d.xFn(e),d.yFn(e)).call(h.font,e.font,e.fontSize,e.fontColor).text(e.text).call(c.convertToTspans,t),t._promises[i]?y.push(t._promises.pop().then((function(){x(r,g)}))):x(r,g)})),v.exit().remove(),r.repositionOnUpdate&amp;&amp;v.each((function(t){n.select(this).select(&quot;text&quot;).call(c.positionText,d.xFn(t),d.yFn(t))})),e._hideOutOfRangeInsideTickLabels=void 0,-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;(e._hideOutOfRangeInsideTickLabels=function(){var t=s.simpleMap(e.range,e.r2l),r=e.l2p(t[0]),i=e.l2p(t[1]),a=Math.min(r,i)+e._offset,o=Math.max(r,i)+e._offset,l=&quot;x&quot;===e._id.charAt(0);v.each((function(t){var r=n.select(this);if(r.select(&quot;.text-math-group&quot;).empty()){var i=h.bBox(r.node()),s=!1;l?(i.right&gt;o||i.left&lt;a)&amp;&amp;(s=!0):(i.bottom&gt;o||i.top+(e.tickangle?0:t.fontSize/4)&lt;a)&amp;&amp;(s=!0),s&amp;&amp;r.select(&quot;text&quot;).style({opacity:0})}}))}),x(v,m+1?m:g);var b=null;e._selections&amp;&amp;(e._selections[f]=v);var _=[function(){return y.length&amp;&amp;Promise.all(y)}];e.automargin&amp;&amp;a._redrawFromAutoMarginCount&amp;&amp;90===m?(b=90,_.push((function(){x(v,m)}))):_.push((function(){if(x(v,g),p.length&amp;&amp;&quot;x&quot;===u&amp;&amp;!i(g)&amp;&amp;(&quot;log&quot;!==e.type||&quot;D&quot;!==String(e.dtick).charAt(0))){b=0;var t,n=0,a=[];if(v.each((function(t){n=Math.max(n,t.fontSize);var r=e.l2p(t.x),i=dt(this),o=h.bBox(i.node());a.push({top:0,bottom:10,height:10,left:r-o.width/2,right:r+o.width/2+2,width:o.width+2})})),&quot;boundaries&quot;!==e.tickson&amp;&amp;!e.showdividers||r.secondary){var o=p.length,l=Math.abs((p[o-1].x-p[0].x)*e._m)/(o-1),c=e.ticklabelposition||&quot;&quot;,f=function(t){return-1!==c.indexOf(t)},d=f(&quot;top&quot;),m=f(&quot;left&quot;),y=f(&quot;right&quot;),_=f(&quot;bottom&quot;)||m||d||y?(e.tickwidth||0)+6:0,w=l&lt;2.5*n||&quot;multicategory&quot;===e.type;for(t=0;t&lt;a.length-1;t++)if(s.bBoxIntersect(a[t],a[t+1],_)){b=w?90:30;break}}else{var T=2;for(e.ticks&amp;&amp;(T+=e.tickwidth/2),t=0;t&lt;a.length;t++){var k=p[t].xbnd,M=a[t];if(null!==k[0]&amp;&amp;M.left-e.l2p(k[0])&lt;T||null!==k[1]&amp;&amp;e.l2p(k[1])-M.right&lt;T){b=90;break}}}b&amp;&amp;x(v,b)}})),e._tickAngles&amp;&amp;_.push((function(){e._tickAngles[f]=null===b?i(g)?g:0:b}));var w=e._anchorAxis;w&amp;&amp;w.autorange&amp;&amp;-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;!V(a,e._id)&amp;&amp;(a._insideTickLabelsAutorange||(a._insideTickLabelsAutorange={}),a._insideTickLabelsAutorange[w._name+&quot;.autorange&quot;]=w.autorange,_.push((function(){v.each((function(t,r){var n=dt(this);e._vals[r].bb=h.bBox(n.node())}))})));var T=s.syncOrAsync(_);return T&amp;&amp;T.then&amp;&amp;t._promises.push(T),T},B.getPxPosition=function(t,e){var r,n=t._fullLayout._size,i=e._id.charAt(0),a=e.side;return&quot;free&quot;!==e.anchor?r=e._anchorAxis:&quot;x&quot;===i?r={_offset:n.t+(1-(e.position||0))*n.h,_length:0}:&quot;y&quot;===i&amp;&amp;(r={_offset:n.l+(e.position||0)*n.w,_length:0}),&quot;top&quot;===a||&quot;left&quot;===a?r._offset:&quot;bottom&quot;===a||&quot;right&quot;===a?r._offset+r._length:void 0},B.shouldShowZeroLine=function(t,e,r){var n=s.simpleMap(e.range,e.r2l);return n[0]*n[1]&lt;=0&amp;&amp;e.zeroline&amp;&amp;(&quot;linear&quot;===e.type||&quot;-&quot;===e.type)&amp;&amp;!(e.rangebreaks&amp;&amp;e.maskBreaks(0)===P)&amp;&amp;(pt(e,0)||!function(t,e,r,n){var i=r._mainAxis;if(!i)return;var a=t._fullLayout,o=e._id.charAt(0),s=B.counterLetter(e._id),l=e._offset+(Math.abs(n[0])&lt;Math.abs(n[1])==(&quot;x&quot;===o)?0:e._length);function c(t){if(!t.showline||!t.linewidth)return!1;var r=Math.max((t.linewidth+e.zerolinewidth)/2,1);function n(t){return&quot;number&quot;==typeof t&amp;&amp;Math.abs(t-l)&lt;r}if(n(t._mainLinePosition)||n(t._mainMirrorPosition))return!0;var i=t._linepositions||{};for(var a in i)if(n(i[a][0])||n(i[a][1]))return!0}var u=a._plots[r._mainSubplot];if(!(u.mainplotinfo||u).overlays.length)return c(r);for(var f=B.list(t,s),h=0;h&lt;f.length;h++){var p=f[h];if(p._mainAxis===i&amp;&amp;c(p))return!0}}(t,e,r,n)||function(t,e){for(var r=t._fullData,n=e._mainSubplot,i=e._id.charAt(0),a=0;a&lt;r.length;a++){var s=r[a];if(!0===s.visible&amp;&amp;s.xaxis+s.yaxis===n){if(o.traceIs(s,&quot;bar-like&quot;)&amp;&amp;s.orientation==={x:&quot;h&quot;,y:&quot;v&quot;}[i])return!0;if(s.fill&amp;&amp;s.fill.charAt(s.fill.length-1)===i)return!0}}return!1}(t,e))},B.clipEnds=function(t,e){return e.filter((function(e){return pt(t,e.x)}))},B.allowAutoMargin=function(t){for(var e=B.list(t,&quot;&quot;,!0),r=0;r&lt;e.length;r++){var n=e[r];n.automargin&amp;&amp;(a.allowAutoMargin(t,gt(n)),n.mirror&amp;&amp;a.allowAutoMargin(t,mt(n))),o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(n)&amp;&amp;a.allowAutoMargin(t,vt(n))}},B.swap=function(t,e){for(var r=function(t,e){var r,n,i=[];for(r=0;r&lt;e.length;r++){var a=[],o=t._fullData[e[r]].xaxis,s=t._fullData[e[r]].yaxis;if(o&amp;&amp;s){for(n=0;n&lt;i.length;n++)-1===i[n].x.indexOf(o)&amp;&amp;-1===i[n].y.indexOf(s)||a.push(n);if(a.length){var l,c=i[a[0]];if(a.length&gt;1)for(n=1;n&lt;a.length;n++)l=i[a[n]],yt(c.x,l.x),yt(c.y,l.y);yt(c.x,[o]),yt(c.y,[s])}else i.push({x:[o],y:[s]})}}return i}(t,e),n=0;n&lt;r.length;n++)xt(t,r[n].x,r[n].y)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../components/titles&quot;:738,&quot;../../constants/alignment&quot;:745,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;./autorange&quot;:827,&quot;./axis_autotype&quot;:829,&quot;./axis_ids&quot;:831,&quot;./clean_ticks&quot;:833,&quot;./layout_attributes&quot;:842,&quot;./set_convert&quot;:848,d3:169,&quot;fast-isnumeric&quot;:241}],829:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM,o=i.isArrayOrTypedArray,s=i.isDateTime,l=i.cleanNumber,c=Math.round;function u(t,e){return e?n(t):&quot;number&quot;==typeof t}function f(t){return Math.max(1,(t-1)/1e3)}e.exports=function(t,e,r){var i=t,h=r.noMultiCategory;if(o(i)&amp;&amp;!i.length)return&quot;-&quot;;if(!h&amp;&amp;function(t){return o(t[0])&amp;&amp;o(t[1])}(i))return&quot;multicategory&quot;;if(h&amp;&amp;Array.isArray(i[0])){for(var p=[],d=0;d&lt;i.length;d++)if(o(i[d]))for(var g=0;g&lt;i[d].length;g++)p.push(i[d][g]);i=p}if(function(t,e){for(var r=t.length,i=f(r),a=0,o=0,l={},u=0;u&lt;r;u+=i){var h=c(u),p=t[h],d=String(p);l[d]||(l[d]=1,s(p,e)&amp;&amp;a++,n(p)&amp;&amp;o++)}return a&gt;2*o}(i,e))return&quot;date&quot;;var m=&quot;strict&quot;!==r.autotypenumbers;return function(t,e){for(var r=t.length,n=f(r),i=0,o=0,s={},u=0;u&lt;r;u+=n){var h=c(u),p=t[h],d=String(p);if(!s[d]){s[d]=1;var g=typeof p;&quot;boolean&quot;===g?o++:(e?l(p)!==a:&quot;number&quot;===g)?i++:&quot;string&quot;===g&amp;&amp;o++}}return o&gt;2*i}(i,m)?&quot;category&quot;:function(t,e){for(var r=t.length,n=0;n&lt;r;n++)if(u(t[n],e))return!0;return!1}(i,m)?&quot;linear&quot;:&quot;-&quot;}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],830:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../array_container_defaults&quot;),s=t(&quot;./layout_attributes&quot;),l=t(&quot;./tick_value_defaults&quot;),c=t(&quot;./tick_mark_defaults&quot;),u=t(&quot;./tick_label_defaults&quot;),f=t(&quot;./category_order_defaults&quot;),h=t(&quot;./line_grid_defaults&quot;),p=t(&quot;./set_convert&quot;),d=t(&quot;./constants&quot;).WEEKDAY_PATTERN,g=t(&quot;./constants&quot;).HOUR_PATTERN;function m(t,e,r){function i(r,n){return a.coerce(t,e,s.rangebreaks,r,n)}if(i(&quot;enabled&quot;)){var o=i(&quot;bounds&quot;);if(o&amp;&amp;o.length&gt;=2){var l,c,u=&quot;&quot;;if(2===o.length)for(l=0;l&lt;2;l++)if(c=y(o[l])){u=d;break}var f=i(&quot;pattern&quot;,u);if(f===d)for(l=0;l&lt;2;l++)(c=y(o[l]))&amp;&amp;(e.bounds[l]=o[l]=c-1);if(f)for(l=0;l&lt;2;l++)switch(c=o[l],f){case d:if(!n(c))return void(e.enabled=!1);if((c=+c)!==Math.floor(c)||c&lt;0||c&gt;=7)return void(e.enabled=!1);e.bounds[l]=o[l]=c;break;case g:if(!n(c))return void(e.enabled=!1);if((c=+c)&lt;0||c&gt;24)return void(e.enabled=!1);e.bounds[l]=o[l]=c}if(!1===r.autorange){var h=r.range;if(h[0]&lt;h[1]){if(o[0]&lt;h[0]&amp;&amp;o[1]&gt;h[1])return void(e.enabled=!1)}else if(o[0]&gt;h[0]&amp;&amp;o[1]&lt;h[1])return void(e.enabled=!1)}}else{var p=i(&quot;values&quot;);if(!p||!p.length)return void(e.enabled=!1);i(&quot;dvalue&quot;)}}}e.exports=function(t,e,r,n,g){var v,y=n.letter,x=n.font||{},b=n.splomStash||{},_=r(&quot;visible&quot;,!n.visibleDflt),w=e._template||{},T=e.type||w.type||&quot;-&quot;;&quot;date&quot;===T&amp;&amp;(i.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;,n.calendar),n.noTicklabelmode||(v=r(&quot;ticklabelmode&quot;)));n.noTicklabelposition&amp;&amp;&quot;multicategory&quot;!==T||a.coerce(t,e,{ticklabelposition:{valType:&quot;enumerated&quot;,dflt:&quot;outside&quot;,values:&quot;period&quot;===v?[&quot;outside&quot;,&quot;inside&quot;]:&quot;x&quot;===y?[&quot;outside&quot;,&quot;inside&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;]:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;]}},&quot;ticklabelposition&quot;),p(e,g);var k=!e.isValidRange(t.range);k&amp;&amp;n.reverseDflt&amp;&amp;(k=&quot;reversed&quot;),!r(&quot;autorange&quot;,k)||&quot;linear&quot;!==T&amp;&amp;&quot;-&quot;!==T||r(&quot;rangemode&quot;),r(&quot;range&quot;),e.cleanRange(),f(t,e,r,n),&quot;category&quot;===T||n.noHover||r(&quot;hoverformat&quot;);var M=r(&quot;color&quot;),A=M!==s.color.dflt?M:x.color,S=b.label||g._dfltTitle[y];if(u(t,e,r,T,n,{pass:1}),!_)return e;r(&quot;title.text&quot;,S),a.coerceFont(r,&quot;title.font&quot;,{family:x.family,size:Math.round(1.2*x.size),color:A}),l(t,e,r,T),u(t,e,r,T,n,{pass:2}),c(t,e,r,n),h(t,e,r,{dfltColor:M,bgColor:n.bgColor,showGrid:n.showGrid,attributes:s}),(e.showline||e.ticks)&amp;&amp;r(&quot;mirror&quot;),n.automargin&amp;&amp;r(&quot;automargin&quot;);var E,C=&quot;multicategory&quot;===T;n.noTickson||&quot;category&quot;!==T&amp;&amp;!C||!e.ticks&amp;&amp;!e.showgrid||(C&amp;&amp;(E=&quot;boundaries&quot;),&quot;boundaries&quot;===r(&quot;tickson&quot;,E)&amp;&amp;delete e.ticklabelposition);C&amp;&amp;(r(&quot;showdividers&quot;)&amp;&amp;(r(&quot;dividercolor&quot;),r(&quot;dividerwidth&quot;)));if(&quot;date&quot;===T)if(o(t,e,{name:&quot;rangebreaks&quot;,inclusionAttr:&quot;enabled&quot;,handleItemDefaults:m}),e.rangebreaks.length){for(var L=0;L&lt;e.rangebreaks.length;L++)if(e.rangebreaks[L].pattern===d){e._hasDayOfWeekBreaks=!0;break}if(p(e,g),g._has(&quot;scattergl&quot;)||g._has(&quot;splom&quot;))for(var I=0;I&lt;n.data.length;I++){var P=n.data[I];&quot;scattergl&quot;!==P.type&amp;&amp;&quot;splom&quot;!==P.type||(P.visible=!1,a.warn(P.type+&quot; traces do not work on axes with rangebreaks. Setting trace &quot;+P.index+&quot; to `visible: false`.&quot;))}}else delete e.rangebreaks;return e};var v={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function y(t){if(&quot;string&quot;==typeof t)return v[t.substr(0,3).toLowerCase()]}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../array_container_defaults&quot;:823,&quot;./category_order_defaults&quot;:832,&quot;./constants&quot;:834,&quot;./layout_attributes&quot;:842,&quot;./line_grid_defaults&quot;:844,&quot;./set_convert&quot;:848,&quot;./tick_label_defaults&quot;:849,&quot;./tick_mark_defaults&quot;:850,&quot;./tick_value_defaults&quot;:851,&quot;fast-isnumeric&quot;:241}],831:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./constants&quot;);function a(t,e){if(e&amp;&amp;e.length)for(var r=0;r&lt;e.length;r++)if(e[r][t])return!0;return!1}r.id2name=function(t){if(&quot;string&quot;==typeof t&amp;&amp;t.match(i.AX_ID_PATTERN)){var e=t.split(&quot; &quot;)[0].substr(1);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),t.charAt(0)+&quot;axis&quot;+e}},r.name2id=function(t){if(t.match(i.AX_NAME_PATTERN)){var e=t.substr(5);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),t.charAt(0)+e}},r.cleanId=function(t,e,r){var n=/( domain)$/.test(t);if(&quot;string&quot;==typeof t&amp;&amp;t.match(i.AX_ID_PATTERN)&amp;&amp;(!e||t.charAt(0)===e)&amp;&amp;(!n||r)){var a=t.split(&quot; &quot;)[0].substr(1).replace(/^0+/,&quot;&quot;);return&quot;1&quot;===a&amp;&amp;(a=&quot;&quot;),t.charAt(0)+a+(n&amp;&amp;r?&quot; domain&quot;:&quot;&quot;)}},r.list=function(t,e,n){var i=t._fullLayout;if(!i)return[];var a,o=r.listIds(t,e),s=new Array(o.length);for(a=0;a&lt;o.length;a++){var l=o[a];s[a]=i[l.charAt(0)+&quot;axis&quot;+l.substr(1)]}if(!n){var c=i._subplots.gl3d||[];for(a=0;a&lt;c.length;a++){var u=i[c[a]];e?s.push(u[e+&quot;axis&quot;]):s.push(u.xaxis,u.yaxis,u.zaxis)}}return s},r.listIds=function(t,e){var r=t._fullLayout;if(!r)return[];var n=r._subplots;return e?n[e+&quot;axis&quot;]:n.xaxis.concat(n.yaxis)},r.getFromId=function(t,e,n){var i=t._fullLayout;return e=void 0===e||&quot;string&quot;!=typeof e?e:e.replace(&quot; domain&quot;,&quot;&quot;),&quot;x&quot;===n?e=e.replace(/y[0-9]*/,&quot;&quot;):&quot;y&quot;===n&amp;&amp;(e=e.replace(/x[0-9]*/,&quot;&quot;)),i[r.id2name(e)]},r.getFromTrace=function(t,e,i){var a=t._fullLayout,o=null;if(n.traceIs(e,&quot;gl3d&quot;)){var s=e.scene;&quot;scene&quot;===s.substr(0,5)&amp;&amp;(o=a[s][i+&quot;axis&quot;])}else o=r.getFromId(t,e[i+&quot;axis&quot;]||i);return o},r.idSort=function(t,e){var r=t.charAt(0),n=e.charAt(0);return r!==n?r&gt;n?1:-1:+(t.substr(1)||1)-+(e.substr(1)||1)},r.ref2id=function(t){return!!/^[xyz]/.test(t)&amp;&amp;t.split(&quot; &quot;)[0]},r.isLinked=function(t,e){return a(e,t._axisMatchGroups)||a(e,t._axisConstraintGroups)}},{&quot;../../registry&quot;:911,&quot;./constants&quot;:834}],832:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){if(&quot;category&quot;===e.type){var i,a=t.categoryarray,o=Array.isArray(a)&amp;&amp;a.length&gt;0;o&amp;&amp;(i=&quot;array&quot;);var s,l=r(&quot;categoryorder&quot;,i);&quot;array&quot;===l&amp;&amp;(s=r(&quot;categoryarray&quot;)),o||&quot;array&quot;!==l||(l=e.categoryorder=&quot;trace&quot;),&quot;trace&quot;===l?e._initialCategories=[]:&quot;array&quot;===l?e._initialCategories=s.slice():(s=function(t,e){var r,n,i,a=e.dataAttr||t._id.charAt(0),o={};if(e.axData)r=e.axData;else for(r=[],n=0;n&lt;e.data.length;n++){var s=e.data[n];s[a+&quot;axis&quot;]===t._id&amp;&amp;r.push(s)}for(n=0;n&lt;r.length;n++){var l=r[n][a];for(i=0;i&lt;l.length;i++){var c=l[i];null!=c&amp;&amp;(o[c]=1)}}return Object.keys(o)}(e,n).sort(),&quot;category ascending&quot;===l?e._initialCategories=s:&quot;category descending&quot;===l&amp;&amp;(e._initialCategories=s.reverse()))}}},{}],833:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;),o=a.ONEDAY,s=a.ONEWEEK;r.dtick=function(t,e){var r=&quot;log&quot;===e,i=&quot;date&quot;===e,a=&quot;category&quot;===e,s=i?o:1;if(!t)return s;if(n(t))return(t=Number(t))&lt;=0?s:a?Math.max(1,Math.round(t)):i?Math.max(.1,t):t;if(&quot;string&quot;!=typeof t||!i&amp;&amp;!r)return s;var l=t.charAt(0),c=t.substr(1);return(c=n(c)?Number(c):0)&lt;=0||!(i&amp;&amp;&quot;M&quot;===l&amp;&amp;c===Math.round(c)||r&amp;&amp;&quot;L&quot;===l||r&amp;&amp;&quot;D&quot;===l&amp;&amp;(1===c||2===c))?s:t},r.tick0=function(t,e,r,a){return&quot;date&quot;===e?i.cleanDate(t,i.dateTick0(r,a%s==0?1:0)):&quot;D1&quot;!==a&amp;&amp;&quot;D2&quot;!==a?n(t)?Number(t):0:void 0}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],834:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/regex&quot;).counter;e.exports={idRegex:{x:n(&quot;x&quot;,&quot;( domain)?&quot;),y:n(&quot;y&quot;,&quot;( domain)?&quot;)},attrRegex:n(&quot;[xy]axis&quot;),xAxisMatch:n(&quot;xaxis&quot;),yAxisMatch:n(&quot;yaxis&quot;),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:&quot;hour&quot;,WEEKDAY_PATTERN:&quot;day of week&quot;,MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:&quot;-select&quot;,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:[&quot;imagelayer&quot;,&quot;heatmaplayer&quot;,&quot;contourcarpetlayer&quot;,&quot;contourlayer&quot;,&quot;funnellayer&quot;,&quot;waterfalllayer&quot;,&quot;barlayer&quot;,&quot;carpetlayer&quot;,&quot;violinlayer&quot;,&quot;boxlayer&quot;,&quot;ohlclayer&quot;,&quot;scattercarpetlayer&quot;,&quot;scatterlayer&quot;],clipOnAxisFalseQuery:[&quot;.scatterlayer&quot;,&quot;.barlayer&quot;,&quot;.funnellayer&quot;,&quot;.waterfalllayer&quot;],layerValue2layerClass:{&quot;above traces&quot;:&quot;above&quot;,&quot;below traces&quot;:&quot;below&quot;}}},{&quot;../../lib/regex&quot;:795}],835:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./autorange&quot;),a=t(&quot;./axis_ids&quot;).id2name,o=t(&quot;./layout_attributes&quot;),s=t(&quot;./scale_zoom&quot;),l=t(&quot;./set_convert&quot;),c=t(&quot;../../constants/numerical&quot;).ALMOST_EQUAL,u=t(&quot;../../constants/alignment&quot;).FROM_BL;function f(t,e,r){var i=r.axIds,s=r.layoutOut,l=r.hasImage,c=s._axisConstraintGroups,u=s._axisMatchGroups,f=e._id,g=f.charAt(0),m=((s._splomAxes||{})[g]||{})[f]||{},v=e._id,y=&quot;x&quot;===v.charAt(0);function x(r,i){return n.coerce(t,e,o,r,i)}e._matchGroup=null,e._constraintGroup=null,x(&quot;constrain&quot;,l?&quot;domain&quot;:&quot;range&quot;),n.coerce(t,e,{constraintoward:{valType:&quot;enumerated&quot;,values:y?[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;]:[&quot;bottom&quot;,&quot;middle&quot;,&quot;top&quot;],dflt:y?&quot;center&quot;:&quot;middle&quot;}},&quot;constraintoward&quot;);var b,_,w=e.type,T=[];for(b=0;b&lt;i.length;b++){if((_=i[b])!==v)s[a(_)].type===w&amp;&amp;T.push(_)}var k=p(c,v);if(k){var M=[];for(b=0;b&lt;T.length;b++)k[_=T[b]]||M.push(_);T=M}var A,S,E=T.length;E&amp;&amp;(t.matches||m.matches)&amp;&amp;(A=n.coerce(t,e,{matches:{valType:&quot;enumerated&quot;,values:T,dflt:-1!==T.indexOf(m.matches)?m.matches:void 0}},&quot;matches&quot;));var C=l&amp;&amp;!y?e.anchor:void 0;if(E&amp;&amp;!A&amp;&amp;(t.scaleanchor||C)&amp;&amp;(S=n.coerce(t,e,{scaleanchor:{valType:&quot;enumerated&quot;,values:T}},&quot;scaleanchor&quot;,C)),A){e._matchGroup=d(u,v,A,1);var L=s[a(A)],I=h(s,e)/h(s,L);y!==(&quot;x&quot;===A.charAt(0))&amp;&amp;(I=(y?&quot;x&quot;:&quot;y&quot;)+I),d(c,v,A,I)}else t.matches&amp;&amp;-1!==i.indexOf(t.matches)&amp;&amp;n.warn(&quot;ignored &quot;+e._name+'.matches: &quot;'+t.matches+'&quot; to avoid an infinite loop');if(S){var P=x(&quot;scaleratio&quot;);P||(P=e.scaleratio=1),d(c,v,S,P)}else t.scaleanchor&amp;&amp;-1!==i.indexOf(t.scaleanchor)&amp;&amp;n.warn(&quot;ignored &quot;+e._name+'.scaleanchor: &quot;'+t.scaleanchor+'&quot; to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function h(t,e){var r=e.domain;return r||(r=t[a(e.overlaying)].domain),r[1]-r[0]}function p(t,e){for(var r=0;r&lt;t.length;r++)if(t[r][e])return t[r];return null}function d(t,e,r,n){var i,a,o,s,l,c=p(t,e);null===c?((c={})[e]=1,l=t.length,t.push(c)):l=t.indexOf(c);var u=Object.keys(c);for(i=0;i&lt;t.length;i++)if(o=t[i],i!==l&amp;&amp;o[r]){var f=o[r];for(a=0;a&lt;u.length;a++)o[s=u[a]]=g(f,g(n,c[s]));return void t.splice(l,1)}if(1!==n)for(a=0;a&lt;u.length;a++){var h=u[a];c[h]=g(n,c[h])}c[r]=1}function g(t,e){var r,n,i=&quot;&quot;,a=&quot;&quot;;&quot;string&quot;==typeof t&amp;&amp;(r=(i=t.match(/^[xy]*/)[0]).length,t=+t.substr(r)),&quot;string&quot;==typeof e&amp;&amp;(n=(a=e.match(/^[xy]*/)[0]).length,e=+e.substr(n));var o=t*e;return r||n?r&amp;&amp;n&amp;&amp;i.charAt(0)!==a.charAt(0)?r===n?o:(r&gt;n?i.substr(n):a.substr(r))+o:i+a+t*e:o}function m(t,e){for(var r=e._size,n=r.h/r.w,i={},a=Object.keys(t),o=0;o&lt;a.length;o++){var s=a[o],l=t[s];if(&quot;string&quot;==typeof l){var c=l.match(/^[xy]*/)[0],u=c.length;l=+l.substr(u);for(var f=&quot;y&quot;===c.charAt(0)?n:1/n,h=0;h&lt;u;h++)l*=f}i[s]=l}return i}function v(t,e){var r=t._inputDomain,n=u[t.constraintoward],i=r[0]+(r[1]-r[0])*n;t.domain=t._input.domain=[i+(r[0]-i)/e,i+(r[1]-i)/e],t.setScale()}r.handleDefaults=function(t,e,r){var i,o,s,c,u,h,p,d,g=r.axIds,m=r.axHasImage,v=e._axisConstraintGroups=[],y=e._axisMatchGroups=[];for(i=0;i&lt;g.length;i++)f(u=t[c=a(g[i])],h=e[c],{axIds:g,layoutOut:e,hasImage:m[c]});function x(t,r){for(i=0;i&lt;t.length;i++)for(s in o=t[i])e[a(s)][r]=o}for(x(y,&quot;_matchGroup&quot;),i=0;i&lt;v.length;i++)for(s in o=v[i])if((h=e[a(s)]).fixedrange){for(var b in o){var _=a(b);!1===(t[_]||{}).fixedrange&amp;&amp;n.warn(&quot;fixedrange was specified as false for axis &quot;+_+&quot; but was overridden because another axis in its constraint group has fixedrange true&quot;),e[_].fixedrange=!0}break}for(i=0;i&lt;v.length;){for(s in o=v[i]){(h=e[a(s)])._matchGroup&amp;&amp;Object.keys(h._matchGroup).length===Object.keys(o).length&amp;&amp;(v.splice(i,1),i--);break}i++}x(v,&quot;_constraintGroup&quot;);var w=[&quot;constrain&quot;,&quot;range&quot;,&quot;autorange&quot;,&quot;rangemode&quot;,&quot;rangebreaks&quot;,&quot;categoryorder&quot;,&quot;categoryarray&quot;],T=!1,k=!1;function M(){d=h[p],&quot;rangebreaks&quot;===p&amp;&amp;(k=h._hasDayOfWeekBreaks)}for(i=0;i&lt;y.length;i++){o=y[i];for(var A=0;A&lt;w.length;A++){var S;for(s in p=w[A],d=null,o)if(u=t[c=a(s)],h=e[c],p in h){if(!h.matches&amp;&amp;(S=h,p in u)){M();break}null===d&amp;&amp;p in u&amp;&amp;M()}if(&quot;range&quot;===p&amp;&amp;d&amp;&amp;(T=!0),&quot;autorange&quot;===p&amp;&amp;null===d&amp;&amp;T&amp;&amp;(d=!1),null===d&amp;&amp;p in S&amp;&amp;(d=S[p]),null!==d)for(s in o)(h=e[a(s)])[p]=&quot;range&quot;===p?d.slice():d,&quot;rangebreaks&quot;===p&amp;&amp;(h._hasDayOfWeekBreaks=k,l(h,e))}}},r.enforce=function(t){var e,r,n,o,l,u,f,h,p=t._fullLayout,d=p._axisConstraintGroups||[];for(e=0;e&lt;d.length;e++){n=m(d[e],p);var g=Object.keys(n),y=1/0,x=0,b=1/0,_={},w={},T=!1;for(r=0;r&lt;g.length;r++)w[o=g[r]]=l=p[a(o)],l._inputDomain?l.domain=l._inputDomain.slice():l._inputDomain=l.domain.slice(),l._inputRange||(l._inputRange=l.range.slice()),l.setScale(),_[o]=u=Math.abs(l._m)/n[o],y=Math.min(y,u),&quot;domain&quot;!==l.constrain&amp;&amp;l._constraintShrinkable||(b=Math.min(b,u)),delete l._constraintShrinkable,x=Math.max(x,u),&quot;domain&quot;===l.constrain&amp;&amp;(T=!0);if(!(y&gt;c*x)||T)for(r=0;r&lt;g.length;r++)if(u=_[o=g[r]],f=(l=w[o]).constrain,u!==b||&quot;domain&quot;===f)if(h=u/b,&quot;range&quot;===f)s(l,h);else{var k=l._inputDomain,M=(l.domain[1]-l.domain[0])/(k[1]-k[0]),A=(l.r2l(l.range[1])-l.r2l(l.range[0]))/(l.r2l(l._inputRange[1])-l.r2l(l._inputRange[0]));if((h/=M)*A&lt;1){l.domain=l._input.domain=k.slice(),s(l,h);continue}if(A&lt;1&amp;&amp;(l.range=l._input.range=l._inputRange.slice(),h*=A),l.autorange){var S=l.r2l(l.range[0]),E=l.r2l(l.range[1]),C=(S+E)/2,L=C,I=C,P=Math.abs(E-C),z=C-P*h*1.0001,O=C+P*h*1.0001,D=i.makePadFn(p,l,0),R=i.makePadFn(p,l,1);v(l,h);var F,B,N=Math.abs(l._m),j=i.concatExtremes(t,l),U=j.min,V=j.max;for(B=0;B&lt;U.length;B++)(F=U[B].val-D(U[B])/N)&gt;z&amp;&amp;F&lt;L&amp;&amp;(L=F);for(B=0;B&lt;V.length;B++)(F=V[B].val+R(V[B])/N)&lt;O&amp;&amp;F&gt;I&amp;&amp;(I=F);h/=(I-L)/(2*P),L=l.l2r(L),I=l.l2r(I),l.range=l._input.range=S&lt;E?[L,I]:[I,L]}v(l,h)}}},r.getAxisGroup=function(t,e){for(var r=t._axisMatchGroups,n=0;n&lt;r.length;n++){if(r[n][e])return&quot;g&quot;+n}return e},r.clean=function(t,e){if(e._inputDomain){for(var r=!1,n=e._id,i=t._fullLayout._axisConstraintGroups,a=0;a&lt;i.length;a++)if(i[a][n]){r=!0;break}r&amp;&amp;&quot;domain&quot;===e.constrain||(e._input.domain=e.domain=e._inputDomain,delete e._inputDomain)}}},{&quot;../../constants/alignment&quot;:745,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./autorange&quot;:827,&quot;./axis_ids&quot;:831,&quot;./layout_attributes&quot;:842,&quot;./scale_zoom&quot;:846,&quot;./set_convert&quot;:848}],836:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;has-passive-events&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/color&quot;),f=t(&quot;../../components/drawing&quot;),h=t(&quot;../../components/fx&quot;),p=t(&quot;./axes&quot;),d=t(&quot;../../lib/setcursor&quot;),g=t(&quot;../../components/dragelement&quot;),m=t(&quot;../../components/dragelement/helpers&quot;),v=m.selectingOrDrawing,y=m.freeMode,x=t(&quot;../../constants/alignment&quot;).FROM_TL,b=t(&quot;../../lib/clear_gl_canvases&quot;),_=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,w=t(&quot;../plots&quot;),T=t(&quot;./axis_ids&quot;).getFromId,k=t(&quot;./select&quot;).prepSelect,M=t(&quot;./select&quot;).clearSelect,A=t(&quot;./select&quot;).selectOnClick,S=t(&quot;./scale_zoom&quot;),E=t(&quot;./constants&quot;),C=E.MINDRAG,L=E.MINZOOM,I=!0;function P(t,e,r,n){var i=s.ensureSingle(t.draglayer,e,r,(function(e){e.classed(&quot;drag&quot;,!0).style({fill:&quot;transparent&quot;,&quot;stroke-width&quot;:0}).attr(&quot;data-subplot&quot;,t.id)}));return i.call(d,n),i.node()}function z(t,e,r,i,a,o,s){var l=P(t,&quot;rect&quot;,e,r);return n.select(l).call(f.setRect,i,a,o,s),l}function O(t,e){for(var r=0;r&lt;t.length;r++)if(!t[r].fixedrange)return e;return&quot;&quot;}function D(t,e,r,n,i){for(var a=0;a&lt;t.length;a++){var o=t[a];if(!o.fixedrange)if(o.rangebreaks){var s=&quot;y&quot;===o._id.charAt(0),l=s?1-e:e,c=s?1-r:r;n[o._name+&quot;.range[0]&quot;]=o.l2r(o.p2l(l*o._length)),n[o._name+&quot;.range[1]&quot;]=o.l2r(o.p2l(c*o._length))}else{var u=o._rl[0],f=o._rl[1]-u;n[o._name+&quot;.range[0]&quot;]=o.l2r(u+f*e),n[o._name+&quot;.range[1]&quot;]=o.l2r(u+f*r)}}if(i&amp;&amp;i.length){var h=(e+(1-r))/2;D(i,h,1-h,n,[])}}function R(t,e){for(var r=0;r&lt;t.length;r++){var n=t[r];if(!n.fixedrange)if(n.rangebreaks){var i=n._length,a=(n.p2l(0+e)-n.p2l(0)+(n.p2l(i+e)-n.p2l(i)))/2;n.range=[n.l2r(n._rl[0]-a),n.l2r(n._rl[1]-a)]}else n.range=[n.l2r(n._rl[0]-e/n._m),n.l2r(n._rl[1]-e/n._m)]}}function F(t){return 1-(t&gt;=0?Math.min(t,.9):1/(1/Math.max(t,-.3)+3.222))}function B(t,e,r,n,i){return t.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox&quot;).style({fill:e&gt;.2?&quot;rgba(0,0,0,0)&quot;:&quot;rgba(255,255,255,0)&quot;,&quot;stroke-width&quot;:0}).attr(&quot;transform&quot;,l(r,n)).attr(&quot;d&quot;,i+&quot;Z&quot;)}function N(t,e,r){return t.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).style({fill:u.background,stroke:u.defaultLine,&quot;stroke-width&quot;:1,opacity:0}).attr(&quot;transform&quot;,l(e,r)).attr(&quot;d&quot;,&quot;M0,0Z&quot;)}function j(t,e,r,n,i,a){t.attr(&quot;d&quot;,n+&quot;M&quot;+r.l+&quot;,&quot;+r.t+&quot;v&quot;+r.h+&quot;h&quot;+r.w+&quot;v-&quot;+r.h+&quot;h-&quot;+r.w+&quot;Z&quot;),U(t,e,i,a)}function U(t,e,r,n){r||(t.transition().style(&quot;fill&quot;,n&gt;.2?&quot;rgba(0,0,0,0.4)&quot;:&quot;rgba(255,255,255,0.3)&quot;).duration(200),e.transition().style(&quot;opacity&quot;,1).duration(200))}function V(t){n.select(t).selectAll(&quot;.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners&quot;).remove()}function q(t){I&amp;&amp;t.data&amp;&amp;t._context.showTips&amp;&amp;(s.notifier(s._(t,&quot;Double-click to zoom back out&quot;),&quot;long&quot;),I=!1)}function H(t){var e=Math.floor(Math.min(t.b-t.t,t.r-t.l,L)/2);return&quot;M&quot;+(t.l-3.5)+&quot;,&quot;+(t.t-.5+e)+&quot;h3v&quot;+-e+&quot;h&quot;+e+&quot;v-3h-&quot;+(e+3)+&quot;ZM&quot;+(t.r+3.5)+&quot;,&quot;+(t.t-.5+e)+&quot;h-3v&quot;+-e+&quot;h&quot;+-e+&quot;v-3h&quot;+(e+3)+&quot;ZM&quot;+(t.r+3.5)+&quot;,&quot;+(t.b+.5-e)+&quot;h-3v&quot;+e+&quot;h&quot;+-e+&quot;v3h&quot;+(e+3)+&quot;ZM&quot;+(t.l-3.5)+&quot;,&quot;+(t.b+.5-e)+&quot;h3v&quot;+e+&quot;h&quot;+e+&quot;v3h-&quot;+(e+3)+&quot;Z&quot;}function G(t,e,r,n,i){for(var a,o,l,c,u=!1,f={},h={},p=(i||{}).xaHash,d=(i||{}).yaHash,g=0;g&lt;e.length;g++){var m=e[g];for(a in r)if(m[a]){for(l in m)i&amp;&amp;(p[l]||d[l])||(&quot;x&quot;===l.charAt(0)?r:n)[l]||(f[l]=a);for(o in n)i&amp;&amp;(p[o]||d[o])||!m[o]||(u=!0)}for(o in n)if(m[o])for(c in m)i&amp;&amp;(p[c]||d[c])||(&quot;x&quot;===c.charAt(0)?r:n)[c]||(h[c]=o)}u&amp;&amp;(s.extendFlat(f,h),h={});var v={},y=[];for(l in f){var x=T(t,l);y.push(x),v[x._id]=x}var b={},_=[];for(c in h){var w=T(t,c);_.push(w),b[w._id]=w}return{xaHash:v,yaHash:b,xaxes:y,yaxes:_,xLinks:f,yLinks:h,isSubplotConstrained:u}}function Y(t,e){if(a){var r=void 0!==t.onwheel?&quot;wheel&quot;:&quot;mousewheel&quot;;t._onwheel&amp;&amp;t.removeEventListener(r,t._onwheel),t._onwheel=e,t.addEventListener(r,e,{passive:!1})}else void 0!==t.onwheel?t.onwheel=e:void 0!==t.onmousewheel?t.onmousewheel=e:t.isAddedWheelEvent||(t.isAddedWheelEvent=!0,t.addEventListener(&quot;wheel&quot;,e,{passive:!1}))}function W(t){var e=[];for(var r in t)e.push(t[r]);return e}e.exports={makeDragBox:function(t,e,r,a,l,u,d,m){var I,P,U,X,Z,J,K,Q,$,tt,et,rt,nt,it,at,ot,st,lt,ct,ut,ft,ht,pt,dt=t._fullLayout._zoomlayer,gt=d+m===&quot;nsew&quot;,mt=1===(d+m).length;function vt(){if(I=e.xaxis,P=e.yaxis,$=I._length,tt=P._length,K=I._offset,Q=P._offset,(U={})[I._id]=I,(X={})[P._id]=P,d&amp;&amp;m)for(var r=e.overlays,n=0;n&lt;r.length;n++){var i=r[n].xaxis;U[i._id]=i;var a=r[n].yaxis;X[a._id]=a}Z=W(U),J=W(X),nt=O(Z,m),it=O(J,d),at=!it&amp;&amp;!nt,rt=G(t,t._fullLayout._axisMatchGroups,U,X);var o=(et=G(t,t._fullLayout._axisConstraintGroups,U,X,rt)).isSubplotConstrained||rt.isSubplotConstrained;ot=m||o,st=d||o;var s=t._fullLayout;lt=s._has(&quot;scattergl&quot;),ct=s._has(&quot;splom&quot;),ut=s._has(&quot;svg&quot;)}vt();var yt=function(t,e,r){if(!t)return&quot;pointer&quot;;if(&quot;nsew&quot;===t)return r?&quot;&quot;:&quot;pan&quot;===e?&quot;move&quot;:&quot;crosshair&quot;;return t.toLowerCase()+&quot;-resize&quot;}(it+nt,t._fullLayout.dragmode,gt),xt=z(e,d+m+&quot;drag&quot;,yt,r,a,l,u);if(at&amp;&amp;!gt)return xt.onmousedown=null,xt.style.pointerEvents=&quot;none&quot;,xt;var bt,_t,wt,Tt,kt,Mt,At,St,Et,Ct,Lt={element:xt,gd:t,plotinfo:e};function It(){Lt.plotinfo.selection=!1,M(t)}function Pt(t,r){var i=Lt.gd;if(i._fullLayout._activeShapeIndex&gt;=0)i._fullLayout._deactivateShape(i);else{var a=i._fullLayout.clickmode;if(V(i),2!==t||mt||qt(),gt)a.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;A(r,i,Z,J,e.id,Lt),a.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;h.click(i,r,e.id);else if(1===t&amp;&amp;mt){var s=d?P:I,l=&quot;s&quot;===d||&quot;w&quot;===m?0:1,u=s._name+&quot;.range[&quot;+l+&quot;]&quot;,f=function(t,e){var r,i=t.range[e],a=Math.abs(i-t.range[1-e]);return&quot;date&quot;===t.type?i:&quot;log&quot;===t.type?(r=Math.ceil(Math.max(0,-Math.log(a)/Math.LN10))+3,n.format(&quot;.&quot;+r+&quot;g&quot;)(Math.pow(10,i))):(r=Math.floor(Math.log(Math.abs(i))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,n.format(&quot;.&quot;+String(r)+&quot;g&quot;)(i))}(s,l),p=&quot;left&quot;,g=&quot;middle&quot;;if(s.fixedrange)return;d?(g=&quot;n&quot;===d?&quot;top&quot;:&quot;bottom&quot;,&quot;right&quot;===s.side&amp;&amp;(p=&quot;right&quot;)):&quot;e&quot;===m&amp;&amp;(p=&quot;right&quot;),i._context.showAxisRangeEntryBoxes&amp;&amp;n.select(xt).call(c.makeEditable,{gd:i,immediate:!0,background:i._fullLayout.paper_bgcolor,text:String(f),fill:s.tickfont?s.tickfont.color:&quot;#444&quot;,horizontalAlign:p,verticalAlign:g}).on(&quot;edit&quot;,(function(t){var e=s.d2r(t);void 0!==e&amp;&amp;o.call(&quot;_guiRelayout&quot;,i,u,e)}))}}}function zt(e,r){if(t._transitioningWithDuration)return!1;var n=Math.max(0,Math.min($,ht*e+bt)),i=Math.max(0,Math.min(tt,pt*r+_t)),a=Math.abs(n-bt),o=Math.abs(i-_t);function s(){At=&quot;&quot;,wt.r=wt.l,wt.t=wt.b,Et.attr(&quot;d&quot;,&quot;M0,0Z&quot;)}if(wt.l=Math.min(bt,n),wt.r=Math.max(bt,n),wt.t=Math.min(_t,i),wt.b=Math.max(_t,i),et.isSubplotConstrained)a&gt;L||o&gt;L?(At=&quot;xy&quot;,a/$&gt;o/tt?(o=a*tt/$,_t&gt;i?wt.t=_t-o:wt.b=_t+o):(a=o*$/tt,bt&gt;n?wt.l=bt-a:wt.r=bt+a),Et.attr(&quot;d&quot;,H(wt))):s();else if(rt.isSubplotConstrained)if(a&gt;L||o&gt;L){At=&quot;xy&quot;;var l=Math.min(wt.l/$,(tt-wt.b)/tt),c=Math.max(wt.r/$,(tt-wt.t)/tt);wt.l=l*$,wt.r=c*$,wt.b=(1-l)*tt,wt.t=(1-c)*tt,Et.attr(&quot;d&quot;,H(wt))}else s();else!it||o&lt;Math.min(Math.max(.6*a,C),L)?a&lt;C||!nt?s():(wt.t=0,wt.b=tt,At=&quot;x&quot;,Et.attr(&quot;d&quot;,function(t,e){return&quot;M&quot;+(t.l-.5)+&quot;,&quot;+(e-L-.5)+&quot;h-3v&quot;+(2*L+1)+&quot;h3ZM&quot;+(t.r+.5)+&quot;,&quot;+(e-L-.5)+&quot;h3v&quot;+(2*L+1)+&quot;h-3Z&quot;}(wt,_t))):!nt||a&lt;Math.min(.6*o,L)?(wt.l=0,wt.r=$,At=&quot;y&quot;,Et.attr(&quot;d&quot;,function(t,e){return&quot;M&quot;+(e-L-.5)+&quot;,&quot;+(t.t-.5)+&quot;v-3h&quot;+(2*L+1)+&quot;v3ZM&quot;+(e-L-.5)+&quot;,&quot;+(t.b+.5)+&quot;v3h&quot;+(2*L+1)+&quot;v-3Z&quot;}(wt,bt))):(At=&quot;xy&quot;,Et.attr(&quot;d&quot;,H(wt)));wt.w=wt.r-wt.l,wt.h=wt.b-wt.t,At&amp;&amp;(Ct=!0),t._dragged=Ct,j(St,Et,wt,kt,Mt,Tt),Ot(),t.emit(&quot;plotly_relayouting&quot;,ft),Mt=!0}function Ot(){ft={},&quot;xy&quot;!==At&amp;&amp;&quot;x&quot;!==At||(D(Z,wt.l/$,wt.r/$,ft,et.xaxes),Ut(&quot;x&quot;,ft)),&quot;xy&quot;!==At&amp;&amp;&quot;y&quot;!==At||(D(J,(tt-wt.b)/tt,(tt-wt.t)/tt,ft,et.yaxes),Ut(&quot;y&quot;,ft))}function Dt(){Ot(),V(t),Ht(),q(t)}Lt.prepFn=function(e,r,n){var a=Lt.dragmode,o=t._fullLayout.dragmode;o!==a&amp;&amp;(Lt.dragmode=o),vt(),ht=t._fullLayout._invScaleX,pt=t._fullLayout._invScaleY,at||(gt?e.shiftKey?&quot;pan&quot;===o?o=&quot;zoom&quot;:v(o)||(o=&quot;pan&quot;):e.ctrlKey&amp;&amp;(o=&quot;pan&quot;):o=&quot;pan&quot;),y(o)?Lt.minDrag=1:Lt.minDrag=void 0,v(o)?(Lt.xaxes=Z,Lt.yaxes=J,k(e,r,n,Lt,o)):(Lt.clickFn=Pt,v(a)&amp;&amp;It(),at||(&quot;zoom&quot;===o?(Lt.moveFn=zt,Lt.doneFn=Dt,Lt.minDrag=1,function(e,r,n){var a=xt.getBoundingClientRect();bt=r-a.left,_t=n-a.top,t._fullLayout._calcInverseTransform(t);var o=s.apply3DTransform(t._fullLayout._invTransform)(bt,_t);bt=o[0],_t=o[1],wt={l:bt,r:bt,w:0,t:_t,b:_t,h:0},Tt=t._hmpixcount?t._hmlumcount/t._hmpixcount:i(t._fullLayout.plot_bgcolor).getLuminance(),Mt=!1,At=&quot;xy&quot;,Ct=!1,St=B(dt,Tt,K,Q,kt=&quot;M0,0H&quot;+$+&quot;V&quot;+tt+&quot;H0V0&quot;),Et=N(dt,K,Q)}(0,r,n)):&quot;pan&quot;===o&amp;&amp;(Lt.moveFn=jt,Lt.doneFn=Ht))),t._fullLayout._redrag=function(){var e=t._dragdata;if(e&amp;&amp;e.element===xt){var r=t._fullLayout.dragmode;v(r)||(vt(),Gt([0,0,$,tt]),Lt.moveFn(e.dx,e.dy))}}},g.init(Lt);var Rt=[0,0,$,tt],Ft=null,Bt=E.REDRAWDELAY,Nt=e.mainplot?t._fullLayout._plots[e.mainplot]:e;function jt(e,r){if(e*=ht,r*=pt,!t._transitioningWithDuration){if(t._fullLayout._replotting=!0,&quot;ew&quot;===nt||&quot;ns&quot;===it){var n=nt?-e:0,i=it?-r:0;if(rt.isSubplotConstrained){if(nt&amp;&amp;it){var a=(e/$-r/tt)/2;n=-(e=a*$),i=-(r=-a*tt)}it?n=-i*$/tt:i=-n*tt/$}return nt&amp;&amp;(R(Z,e),Ut(&quot;x&quot;)),it&amp;&amp;(R(J,r),Ut(&quot;y&quot;)),Gt([n,i,$,tt]),Vt(),void t.emit(&quot;plotly_relayouting&quot;,ft)}var o,s,l=&quot;w&quot;===nt==(&quot;n&quot;===it)?1:-1;if(nt&amp;&amp;it&amp;&amp;(et.isSubplotConstrained||rt.isSubplotConstrained)){var c=(e/$+l*r/tt)/2;e=c*$,r=l*c*tt}if(&quot;w&quot;===nt?e=p(Z,0,e):&quot;e&quot;===nt?e=p(Z,1,-e):nt||(e=0),&quot;n&quot;===it?r=p(J,1,r):&quot;s&quot;===it?r=p(J,0,-r):it||(r=0),o=&quot;w&quot;===nt?e:0,s=&quot;n&quot;===it?r:0,et.isSubplotConstrained&amp;&amp;!rt.isSubplotConstrained||rt.isSubplotConstrained&amp;&amp;nt&amp;&amp;it&amp;&amp;l&gt;0){var u;if(rt.isSubplotConstrained||!nt&amp;&amp;1===it.length){for(u=0;u&lt;Z.length;u++)Z[u].range=Z[u]._r.slice(),S(Z[u],1-r/tt);o=(e=r*$/tt)/2}if(rt.isSubplotConstrained||!it&amp;&amp;1===nt.length){for(u=0;u&lt;J.length;u++)J[u].range=J[u]._r.slice(),S(J[u],1-e/$);s=(r=e*tt/$)/2}}rt.isSubplotConstrained&amp;&amp;it||Ut(&quot;x&quot;),rt.isSubplotConstrained&amp;&amp;nt||Ut(&quot;y&quot;);var f=$-e,h=tt-r;!rt.isSubplotConstrained||nt&amp;&amp;it||(nt?(s=o?0:e*tt/$,h=f*tt/$):(o=s?0:r*$/tt,f=h*$/tt)),Gt([o,s,f,h]),Vt(),t.emit(&quot;plotly_relayouting&quot;,ft)}function p(t,e,r){for(var n,i,a=1-e,o=0;o&lt;t.length;o++){var s=t[o];if(!s.fixedrange){n=s,i=s._rl[a]+(s._rl[e]-s._rl[a])/F(r/s._length);var l=s.l2r(i);!1!==l&amp;&amp;void 0!==l&amp;&amp;(s.range[e]=l)}}return n._length*(n._rl[e]-i)/(n._rl[e]-n._rl[a])}}function Ut(t,e){for(var r=rt.isSubplotConstrained?{x:J,y:Z}[t]:rt[t+&quot;axes&quot;],n=rt.isSubplotConstrained?{x:Z,y:J}[t]:[],i=0;i&lt;r.length;i++){var a=r[i],o=a._id,s=rt.xLinks[o]||rt.yLinks[o],l=n[0]||U[s]||X[s];l&amp;&amp;(e?(e[a._name+&quot;.range[0]&quot;]=e[l._name+&quot;.range[0]&quot;],e[a._name+&quot;.range[1]&quot;]=e[l._name+&quot;.range[1]&quot;]):a.range=l.range.slice())}}function Vt(){var e,r=[];function n(t){for(e=0;e&lt;t.length;e++)t[e].fixedrange||r.push(t[e]._id)}for(ot&amp;&amp;(n(Z),n(et.xaxes),n(rt.xaxes)),st&amp;&amp;(n(J),n(et.yaxes),n(rt.yaxes)),ft={},e=0;e&lt;r.length;e++){var i=r[e],a=T(t,i);p.drawOne(t,a,{skipTitle:!0}),ft[a._name+&quot;.range[0]&quot;]=a.range[0],ft[a._name+&quot;.range[1]&quot;]=a.range[1]}p.redrawComponents(t,r)}function qt(){if(!t._transitioningWithDuration){var e=t._context.doubleClick,r=[];nt&amp;&amp;(r=r.concat(Z)),it&amp;&amp;(r=r.concat(J)),rt.xaxes&amp;&amp;(r=r.concat(rt.xaxes)),rt.yaxes&amp;&amp;(r=r.concat(rt.yaxes));var n,i,a,s={};if(&quot;reset+autosize&quot;===e)for(e=&quot;autosize&quot;,i=0;i&lt;r.length;i++)if((n=r[i])._rangeInitial&amp;&amp;(n.range[0]!==n._rangeInitial[0]||n.range[1]!==n._rangeInitial[1])||!n._rangeInitial&amp;&amp;!n.autorange){e=&quot;reset&quot;;break}if(&quot;autosize&quot;===e)for(i=0;i&lt;r.length;i++)(n=r[i]).fixedrange||(s[n._name+&quot;.autorange&quot;]=!0);else if(&quot;reset&quot;===e)for((nt||et.isSubplotConstrained)&amp;&amp;(r=r.concat(et.xaxes)),it&amp;&amp;!et.isSubplotConstrained&amp;&amp;(r=r.concat(et.yaxes)),et.isSubplotConstrained&amp;&amp;(nt?it||(r=r.concat(J)):r=r.concat(Z)),i=0;i&lt;r.length;i++)(n=r[i]).fixedrange||(n._rangeInitial?(a=n._rangeInitial,s[n._name+&quot;.range[0]&quot;]=a[0],s[n._name+&quot;.range[1]&quot;]=a[1]):s[n._name+&quot;.autorange&quot;]=!0);t.emit(&quot;plotly_doubleclick&quot;,null),o.call(&quot;_guiRelayout&quot;,t,s)}}function Ht(){Gt([0,0,$,tt]),s.syncOrAsync([w.previousPromises,function(){t._fullLayout._replotting=!1,o.call(&quot;_guiRelayout&quot;,t,ft)}],t)}function Gt(e){var r,n,i,a,l=t._fullLayout,c=l._plots,u=l._subplots.cartesian;if(ct&amp;&amp;o.subplotsRegistry.splom.drag(t),lt)for(r=0;r&lt;u.length;r++)if(i=(n=c[u[r]]).xaxis,a=n.yaxis,n._scene){var h=s.simpleMap(i.range,i.r2l),p=s.simpleMap(a.range,a.r2l);n._scene.update({range:[h[0],p[0],h[1],p[1]]})}if((ct||lt)&amp;&amp;(b(t),_(t)),ut){var g=e[2]/I._length,v=e[3]/P._length;for(r=0;r&lt;u.length;r++){i=(n=c[u[r]]).xaxis,a=n.yaxis;var y,x,w,T,k=(ot||rt.isSubplotConstrained)&amp;&amp;!i.fixedrange&amp;&amp;U[i._id],M=(st||rt.isSubplotConstrained)&amp;&amp;!a.fixedrange&amp;&amp;X[a._id];if(k?(y=g,w=m||rt.isSubplotConstrained?e[0]:Xt(i,y)):rt.xaHash[i._id]?(y=g,w=e[0]*i._length/I._length):rt.yaHash[i._id]?(y=v,w=&quot;ns&quot;===it?-e[1]*i._length/P._length:Xt(i,y,{n:&quot;top&quot;,s:&quot;bottom&quot;}[it])):w=Wt(i,y=Yt(i,g,v)),M?(x=v,T=d||rt.isSubplotConstrained?e[1]:Xt(a,x)):rt.yaHash[a._id]?(x=v,T=e[1]*a._length/P._length):rt.xaHash[a._id]?(x=g,T=&quot;ew&quot;===nt?-e[0]*a._length/I._length:Xt(a,x,{e:&quot;right&quot;,w:&quot;left&quot;}[nt])):T=Wt(a,x=Yt(a,g,v)),y||x){y||(y=1),x||(x=1);var A=i._offset-w/y,S=a._offset-T/x;n.clipRect.call(f.setTranslate,w,T).call(f.setScale,y,x),n.plot.call(f.setTranslate,A,S).call(f.setScale,1/y,1/x),y===n.xScaleFactor&amp;&amp;x===n.yScaleFactor||(f.setPointGroupScale(n.zoomScalePts,y,x),f.setTextPointsScale(n.zoomScaleTxt,y,x)),f.hideOutsideRangePoints(n.clipOnAxisFalseTraces,n),n.xScaleFactor=y,n.yScaleFactor=x}}}}function Yt(t,e,r){return t.fixedrange?0:ot&amp;&amp;et.xaHash[t._id]?e:st&amp;&amp;(et.isSubplotConstrained?et.xaHash:et.yaHash)[t._id]?r:0}function Wt(t,e){return e?(t.range=t._r.slice(),S(t,e),Xt(t,e)):0}function Xt(t,e,r){return t._length*(1-e)*x[r||t.constraintoward||&quot;middle&quot;]}return d.length*m.length!=1&amp;&amp;Y(xt,(function(e){if(t._context._scrollZoom.cartesian||t._fullLayout._enablescrollzoom){if(It(),t._transitioningWithDuration)return e.preventDefault(),void e.stopPropagation();vt(),clearTimeout(Ft);var r=-e.deltaY;if(isFinite(r)||(r=e.wheelDelta/10),isFinite(r)){var n,i=Math.exp(-Math.min(Math.max(r,-20),20)/200),a=Nt.draglayer.select(&quot;.nsewdrag&quot;).node().getBoundingClientRect(),o=(e.clientX-a.left)/a.width,l=(a.bottom-e.clientY)/a.height;if(ot){for(m||(o=.5),n=0;n&lt;Z.length;n++)c(Z[n],o,i);Ut(&quot;x&quot;),Rt[2]*=i,Rt[0]+=Rt[2]*o*(1/i-1)}if(st){for(d||(l=.5),n=0;n&lt;J.length;n++)c(J[n],l,i);Ut(&quot;y&quot;),Rt[3]*=i,Rt[1]+=Rt[3]*(1-l)*(1/i-1)}Gt(Rt),Vt(),t.emit(&quot;plotly_relayouting&quot;,ft),Ft=setTimeout((function(){Rt=[0,0,$,tt],Ht()}),Bt),e.preventDefault()}else s.log(&quot;Did not find wheel motion attributes: &quot;,e)}function c(t,e,r){if(!t.fixedrange){var n=s.simpleMap(t.range,t.r2l),i=n[0]+(n[1]-n[0])*e;t.range=n.map((function(e){return t.l2r(i+(e-i)*r)}))}}})),xt},makeDragger:P,makeRectDragger:z,makeZoombox:B,makeCorners:N,updateZoombox:j,xyCorners:H,transitionZoombox:U,removeZoombox:V,showDoubleClickNotifier:q,attachWheelEventHandler:Y}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/clear_gl_canvases&quot;:762,&quot;../../lib/setcursor&quot;:799,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/subroutines&quot;:818,&quot;../../registry&quot;:911,&quot;../plots&quot;:891,&quot;./axes&quot;:828,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./scale_zoom&quot;:846,&quot;./select&quot;:847,d3:169,&quot;has-passive-events&quot;:441,tinycolor2:576}],837:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/fx&quot;),a=t(&quot;../../components/dragelement&quot;),o=t(&quot;../../lib/setcursor&quot;),s=t(&quot;./dragbox&quot;).makeDragBox,l=t(&quot;./constants&quot;).DRAGGERSIZE;r.initInteractions=function(t){var e=t._fullLayout;if(t._context.staticPlot)n.select(t).selectAll(&quot;.drag&quot;).remove();else if(e._has(&quot;cartesian&quot;)||e._has(&quot;splom&quot;)){Object.keys(e._plots||{}).sort((function(t,r){if((e._plots[t].mainplot&amp;&amp;!0)===(e._plots[r].mainplot&amp;&amp;!0)){var n=t.split(&quot;y&quot;),i=r.split(&quot;y&quot;);return n[0]===i[0]?Number(n[1]||1)-Number(i[1]||1):Number(n[0]||1)-Number(i[0]||1)}return e._plots[t].mainplot?1:-1})).forEach((function(r){var n=e._plots[r],o=n.xaxis,c=n.yaxis;if(!n.mainplot){var u=s(t,n,o._offset,c._offset,o._length,c._length,&quot;ns&quot;,&quot;ew&quot;);u.onmousemove=function(e){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===r&amp;&amp;t._fullLayout._plots[r]&amp;&amp;i.hover(t,e,r)},i.hover(t,e,r),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=r},u.onmouseout=function(e){t._dragging||(t._fullLayout._hoversubplot=null,a.unhover(t,e))},t._context.showAxisDragHandles&amp;&amp;(s(t,n,o._offset-l,c._offset-l,l,l,&quot;n&quot;,&quot;w&quot;),s(t,n,o._offset+o._length,c._offset-l,l,l,&quot;n&quot;,&quot;e&quot;),s(t,n,o._offset-l,c._offset+c._length,l,l,&quot;s&quot;,&quot;w&quot;),s(t,n,o._offset+o._length,c._offset+c._length,l,l,&quot;s&quot;,&quot;e&quot;))}if(t._context.showAxisDragHandles){if(r===o._mainSubplot){var f=o._mainLinePosition;&quot;top&quot;===o.side&amp;&amp;(f-=l),s(t,n,o._offset+.1*o._length,f,.8*o._length,l,&quot;&quot;,&quot;ew&quot;),s(t,n,o._offset,f,.1*o._length,l,&quot;&quot;,&quot;w&quot;),s(t,n,o._offset+.9*o._length,f,.1*o._length,l,&quot;&quot;,&quot;e&quot;)}if(r===c._mainSubplot){var h=c._mainLinePosition;&quot;right&quot;!==c.side&amp;&amp;(h-=l),s(t,n,h,c._offset+.1*c._length,l,.8*c._length,&quot;ns&quot;,&quot;&quot;),s(t,n,h,c._offset+.9*c._length,l,.1*c._length,&quot;s&quot;,&quot;&quot;),s(t,n,h,c._offset,l,.1*c._length,&quot;n&quot;,&quot;&quot;)}}}));var o=e._hoverlayer.node();o.onmousemove=function(r){r.target=t._fullLayout._lasthover,i.hover(t,r,e._hoversubplot)},o.onclick=function(e){e.target=t._fullLayout._lasthover,i.click(t,e)},o.onmousedown=function(e){t._fullLayout._lasthover.onmousedown(e)},r.updateFx(t)}},r.updateFx=function(t){var e=t._fullLayout,r=&quot;pan&quot;===e.dragmode?&quot;move&quot;:&quot;crosshair&quot;;o(e._draggers,r)}},{&quot;../../components/dragelement&quot;:662,&quot;../../components/fx&quot;:683,&quot;../../lib/setcursor&quot;:799,&quot;./constants&quot;:834,&quot;./dragbox&quot;:836,d3:169}],838:[function(t,e,r){&quot;use strict&quot;;e.exports={clearOutlineControllers:function(t){var e=t._fullLayout._zoomlayer;e&amp;&amp;e.selectAll(&quot;.outline-controllers&quot;).remove()},clearSelect:function(t){var e=t._fullLayout._zoomlayer;e&amp;&amp;e.selectAll(&quot;.select-outline&quot;).remove(),t._fullLayout._drawing=!1}}},{}],839:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).strTranslate;function i(t,e){switch(t.type){case&quot;log&quot;:return t.p2d(e);case&quot;date&quot;:return t.p2r(e,0,t.calendar);default:return t.p2r(e)}}e.exports={p2r:i,r2p:function(t,e){switch(t.type){case&quot;log&quot;:return t.d2p(e);case&quot;date&quot;:return t.r2p(e,0,t.calendar);default:return t.r2p(e)}},axValue:function(t){var e=&quot;y&quot;===t._id.charAt(0)?1:0;return function(r){return i(t,r[e])}},getTransform:function(t){return n(t.xaxis._offset,t.yaxis._offset)}}},{&quot;../../lib&quot;:778}],840:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./axis_ids&quot;);e.exports=function(t){return function(e,r){var o=e[t];if(Array.isArray(o))for(var s=n.subplotsRegistry.cartesian,l=s.idRegex,c=r._subplots,u=c.xaxis,f=c.yaxis,h=c.cartesian,p=r._has(&quot;cartesian&quot;)||r._has(&quot;gl2d&quot;),d=0;d&lt;o.length;d++){var g=o[d];if(i.isPlainObject(g)){var m=a.cleanId(g.xref,&quot;x&quot;,!1),v=a.cleanId(g.yref,&quot;y&quot;,!1),y=l.x.test(m),x=l.y.test(v);if(y||x){p||i.pushUnique(r._basePlotModules,s);var b=!1;y&amp;&amp;-1===u.indexOf(m)&amp;&amp;(u.push(m),b=!0),x&amp;&amp;-1===f.indexOf(v)&amp;&amp;(f.push(v),b=!0),b&amp;&amp;y&amp;&amp;x&amp;&amp;h.push(m+v)}}}}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./axis_ids&quot;:831}],841:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../plots&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../get_data&quot;).getModuleCalcData,c=t(&quot;./axis_ids&quot;),u=t(&quot;./constants&quot;),f=t(&quot;../../constants/xmlns_namespaces&quot;),h=a.ensureSingle;function p(t,e,r){return a.ensureSingle(t,e,r,(function(t){t.datum(r)}))}function d(t,e,r,a,o){for(var c,f,h,p=u.traceLayerClasses,d=t._fullLayout,g=d._modules,m=[],v=[],y=0;y&lt;g.length;y++){var x=(c=g[y]).name,b=i.modules[x].categories;if(b.svg){var _=c.layerName||x+&quot;layer&quot;,w=c.plot;h=(f=l(r,w))[0],r=f[1],h.length&amp;&amp;m.push({i:p.indexOf(_),className:_,plotMethod:w,cdModule:h}),b.zoomScale&amp;&amp;v.push(&quot;.&quot;+_)}}m.sort((function(t,e){return t.i-e.i}));var T=e.plot.selectAll(&quot;g.mlayer&quot;).data(m,(function(t){return t.className}));if(T.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return t.className})).classed(&quot;mlayer&quot;,!0).classed(&quot;rangeplot&quot;,e.isRangePlot),T.exit().remove(),T.order(),T.each((function(r){var i=n.select(this),l=r.className;r.plotMethod(t,e,r.cdModule,i,a,o),-1===u.clipOnAxisFalseQuery.indexOf(&quot;.&quot;+l)&amp;&amp;s.setClipUrl(i,e.layerClipId,t)})),d._has(&quot;scattergl&quot;)&amp;&amp;(c=i.getModule(&quot;scattergl&quot;),h=l(r,c)[0],c.plot(t,e,h)),!t._context.staticPlot&amp;&amp;(e._hasClipOnAxisFalse&amp;&amp;(e.clipOnAxisFalseTraces=e.plot.selectAll(u.clipOnAxisFalseQuery.join(&quot;,&quot;)).selectAll(&quot;.trace&quot;)),v.length)){var k=e.plot.selectAll(v.join(&quot;,&quot;)).selectAll(&quot;.trace&quot;);e.zoomScalePts=k.selectAll(&quot;path.point&quot;),e.zoomScaleTxt=k.selectAll(&quot;.textpoint&quot;)}}function g(t,e){var r=e.plotgroup,n=e.id,i=u.layerValue2layerClass[e.xaxis.layer],a=u.layerValue2layerClass[e.yaxis.layer],o=t._fullLayout._hasOnlyLargeSploms;if(e.mainplot){var s=e.mainplotinfo,l=s.plotgroup,f=n+&quot;-x&quot;,d=n+&quot;-y&quot;;e.gridlayer=s.gridlayer,e.zerolinelayer=s.zerolinelayer,h(s.overlinesBelow,&quot;path&quot;,f),h(s.overlinesBelow,&quot;path&quot;,d),h(s.overaxesBelow,&quot;g&quot;,f),h(s.overaxesBelow,&quot;g&quot;,d),e.plot=h(s.overplot,&quot;g&quot;,n),h(s.overlinesAbove,&quot;path&quot;,f),h(s.overlinesAbove,&quot;path&quot;,d),h(s.overaxesAbove,&quot;g&quot;,f),h(s.overaxesAbove,&quot;g&quot;,d),e.xlines=l.select(&quot;.overlines-&quot;+i).select(&quot;.&quot;+f),e.ylines=l.select(&quot;.overlines-&quot;+a).select(&quot;.&quot;+d),e.xaxislayer=l.select(&quot;.overaxes-&quot;+i).select(&quot;.&quot;+f),e.yaxislayer=l.select(&quot;.overaxes-&quot;+a).select(&quot;.&quot;+d)}else if(o)e.xlines=h(r,&quot;path&quot;,&quot;xlines-above&quot;),e.ylines=h(r,&quot;path&quot;,&quot;ylines-above&quot;),e.xaxislayer=h(r,&quot;g&quot;,&quot;xaxislayer-above&quot;),e.yaxislayer=h(r,&quot;g&quot;,&quot;yaxislayer-above&quot;);else{var g=h(r,&quot;g&quot;,&quot;layer-subplot&quot;);e.shapelayer=h(g,&quot;g&quot;,&quot;shapelayer&quot;),e.imagelayer=h(g,&quot;g&quot;,&quot;imagelayer&quot;),e.gridlayer=h(r,&quot;g&quot;,&quot;gridlayer&quot;),e.zerolinelayer=h(r,&quot;g&quot;,&quot;zerolinelayer&quot;),h(r,&quot;path&quot;,&quot;xlines-below&quot;),h(r,&quot;path&quot;,&quot;ylines-below&quot;),e.overlinesBelow=h(r,&quot;g&quot;,&quot;overlines-below&quot;),h(r,&quot;g&quot;,&quot;xaxislayer-below&quot;),h(r,&quot;g&quot;,&quot;yaxislayer-below&quot;),e.overaxesBelow=h(r,&quot;g&quot;,&quot;overaxes-below&quot;),e.plot=h(r,&quot;g&quot;,&quot;plot&quot;),e.overplot=h(r,&quot;g&quot;,&quot;overplot&quot;),e.xlines=h(r,&quot;path&quot;,&quot;xlines-above&quot;),e.ylines=h(r,&quot;path&quot;,&quot;ylines-above&quot;),e.overlinesAbove=h(r,&quot;g&quot;,&quot;overlines-above&quot;),h(r,&quot;g&quot;,&quot;xaxislayer-above&quot;),h(r,&quot;g&quot;,&quot;yaxislayer-above&quot;),e.overaxesAbove=h(r,&quot;g&quot;,&quot;overaxes-above&quot;),e.xlines=r.select(&quot;.xlines-&quot;+i),e.ylines=r.select(&quot;.ylines-&quot;+a),e.xaxislayer=r.select(&quot;.xaxislayer-&quot;+i),e.yaxislayer=r.select(&quot;.yaxislayer-&quot;+a)}o||(p(e.gridlayer,&quot;g&quot;,e.xaxis._id),p(e.gridlayer,&quot;g&quot;,e.yaxis._id),e.gridlayer.selectAll(&quot;g&quot;).map((function(t){return t[0]})).sort(c.idSort)),e.xlines.style(&quot;fill&quot;,&quot;none&quot;).classed(&quot;crisp&quot;,!0),e.ylines.style(&quot;fill&quot;,&quot;none&quot;).classed(&quot;crisp&quot;,!0)}function m(t,e){if(t){var r={};for(var i in t.each((function(t){var i=t[0];n.select(this).remove(),v(i,e),r[i]=!0})),e._plots)for(var a=e._plots[i].overlays||[],o=0;o&lt;a.length;o++){var s=a[o];r[s.id]&amp;&amp;s.plot.selectAll(&quot;.trace&quot;).remove()}}}function v(t,e){e._draggers.selectAll(&quot;g.&quot;+t).remove(),e._defs.select(&quot;#clip&quot;+e._uid+t+&quot;plot&quot;).remove()}r.name=&quot;cartesian&quot;,r.attr=[&quot;xaxis&quot;,&quot;yaxis&quot;],r.idRoot=[&quot;x&quot;,&quot;y&quot;],r.idRegex=u.idRegex,r.attrRegex=u.attrRegex,r.attributes=t(&quot;./attributes&quot;),r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.transitionAxes=t(&quot;./transition_axes&quot;),r.finalizeSubplots=function(t,e){var r,n,i,o=e._subplots,s=o.xaxis,l=o.yaxis,f=o.cartesian,h=f.concat(o.gl2d||[]),p={},d={};for(r=0;r&lt;h.length;r++){var g=h[r].split(&quot;y&quot;);p[g[0]]=1,d[&quot;y&quot;+g[1]]=1}for(r=0;r&lt;s.length;r++)p[n=s[r]]||(i=(t[c.id2name(n)]||{}).anchor,u.idRegex.y.test(i)||(i=&quot;y&quot;),f.push(n+i),h.push(n+i),d[i]||(d[i]=1,a.pushUnique(l,i)));for(r=0;r&lt;l.length;r++)d[i=l[r]]||(n=(t[c.id2name(i)]||{}).anchor,u.idRegex.x.test(n)||(n=&quot;x&quot;),f.push(n+i),h.push(n+i),p[n]||(p[n]=1,a.pushUnique(s,n)));if(!h.length){for(var m in n=&quot;&quot;,i=&quot;&quot;,t){if(u.attrRegex.test(m))&quot;x&quot;===m.charAt(0)?(!n||+m.substr(5)&lt;+n.substr(5))&amp;&amp;(n=m):(!i||+m.substr(5)&lt;+i.substr(5))&amp;&amp;(i=m)}n=n?c.name2id(n):&quot;x&quot;,i=i?c.name2id(i):&quot;y&quot;,s.push(n),l.push(i),f.push(n+i)}},r.plot=function(t,e,r,n){var i,a=t._fullLayout,o=a._subplots.cartesian,s=t.calcdata;if(!Array.isArray(e))for(e=[],i=0;i&lt;s.length;i++)e.push(i);for(i=0;i&lt;o.length;i++){for(var l,c=o[i],u=a._plots[c],f=[],h=0;h&lt;s.length;h++){var p=s[h],g=p[0].trace;g.xaxis+g.yaxis===c&amp;&amp;((-1!==e.indexOf(g.index)||g.carpet)&amp;&amp;(l&amp;&amp;l[0].trace.xaxis+l[0].trace.yaxis===c&amp;&amp;-1!==[&quot;tonextx&quot;,&quot;tonexty&quot;,&quot;tonext&quot;].indexOf(g.fill)&amp;&amp;-1===f.indexOf(l)&amp;&amp;f.push(l),f.push(p)),l=p)}d(t,u,f,r,n)}},r.clean=function(t,e,r,n){var i,a,o,s=n._plots||{},l=e._plots||{},u=n._subplots||{};if(n._hasOnlyLargeSploms&amp;&amp;!e._hasOnlyLargeSploms)for(o in s)(i=s[o]).plotgroup&amp;&amp;i.plotgroup.remove();var f=n._has&amp;&amp;n._has(&quot;gl&quot;),h=e._has&amp;&amp;e._has(&quot;gl&quot;);if(f&amp;&amp;!h)for(o in s)(i=s[o])._scene&amp;&amp;i._scene.destroy();if(u.xaxis&amp;&amp;u.yaxis){var p=c.listIds({_fullLayout:n});for(a=0;a&lt;p.length;a++){var d=p[a];e[c.id2name(d)]||n._infolayer.selectAll(&quot;.g-&quot;+d+&quot;title&quot;).remove()}}var g=n._has&amp;&amp;n._has(&quot;cartesian&quot;),y=e._has&amp;&amp;e._has(&quot;cartesian&quot;);if(g&amp;&amp;!y)m(n._cartesianlayer.selectAll(&quot;.subplot&quot;),n),n._defs.selectAll(&quot;.axesclip&quot;).remove(),delete n._axisConstraintGroups,delete n._axisMatchGroups;else if(u.cartesian)for(a=0;a&lt;u.cartesian.length;a++){var x=u.cartesian[a];if(!l[x]){var b=&quot;.&quot;+x+&quot;,.&quot;+x+&quot;-x,.&quot;+x+&quot;-y&quot;;n._cartesianlayer.selectAll(b).remove(),v(x,n)}}},r.drawFramework=function(t){var e=t._fullLayout,r=function(t){var e,r,n,i,a,o,s=t._fullLayout,l=s._subplots.cartesian,c=l.length,u=[],f=[];for(e=0;e&lt;c;e++){n=l[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var h=a._mainAxis,p=o._mainAxis,d=h._id+p._id,g=s._plots[d];i.overlays=[],d!==n&amp;&amp;g?(i.mainplot=d,i.mainplotinfo=g,f.push(n)):(i.mainplot=void 0,i.mainplotinfo=void 0,u.push(n))}for(e=0;e&lt;f.length;e++)n=f[e],(i=s._plots[n]).mainplotinfo.overlays.push(i);var m=u.concat(f),v=new Array(c);for(e=0;e&lt;c;e++){n=m[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var y=[n,a.layer,o.layer,a.overlaying||&quot;&quot;,o.overlaying||&quot;&quot;];for(r=0;r&lt;i.overlays.length;r++)y.push(i.overlays[r].id);v[e]=y}return v}(t),i=e._cartesianlayer.selectAll(&quot;.subplot&quot;).data(r,String);i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;subplot &quot;+t[0]})),i.order(),i.exit().call(m,e),i.each((function(r){var i=r[0],a=e._plots[i];a.plotgroup=n.select(this),g(t,a),a.draglayer=h(e._draggers,&quot;g&quot;,i)}))},r.rangePlot=function(t,e,r){g(t,e),d(t,e,r),o.style(t)},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(&quot;.svg-container&quot;);r.filter((function(t,e){return e===r.size()-1})).selectAll(&quot;.gl-canvas-context, .gl-canvas-focus&quot;).each((function(){var t=this.toDataURL(&quot;image/png&quot;);e.append(&quot;svg:image&quot;).attr({xmlns:f.svg,&quot;xlink:href&quot;:t,preserveAspectRatio:&quot;none&quot;,x:0,y:0,width:this.width,height:this.height})}))},r.updateFx=t(&quot;./graph_interact&quot;).updateFx},{&quot;../../components/drawing&quot;:665,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../get_data&quot;:865,&quot;../plots&quot;:891,&quot;./attributes&quot;:826,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./graph_interact&quot;:837,&quot;./layout_attributes&quot;:842,&quot;./layout_defaults&quot;:843,&quot;./transition_axes&quot;:852,d3:169}],842:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../font_attributes&quot;),i=t(&quot;../../components/color/attributes&quot;),a=t(&quot;../../components/drawing/attributes&quot;).dash,o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/plot_template&quot;).templatedArray,l=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,t(&quot;../../constants/docs&quot;).DATE_FORMAT_LINK,t(&quot;../../constants/numerical&quot;).ONEDAY),c=t(&quot;./constants&quot;),u=c.HOUR_PATTERN,f=c.WEEKDAY_PATTERN;e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},title:{text:{valType:&quot;string&quot;,editType:&quot;ticks&quot;},font:n({editType:&quot;ticks&quot;}),standoff:{valType:&quot;number&quot;,min:0,editType:&quot;ticks&quot;},editType:&quot;ticks&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;,&quot;multicategory&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;,_noTemplating:!0},autotypenumbers:{valType:&quot;enumerated&quot;,values:[&quot;convert types&quot;,&quot;strict&quot;],dflt:&quot;convert types&quot;,editType:&quot;calc&quot;},autorange:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],dflt:!0,editType:&quot;axrange&quot;,impliedEdits:{&quot;range[0]&quot;:void 0,&quot;range[1]&quot;:void 0}},rangemode:{valType:&quot;enumerated&quot;,values:[&quot;normal&quot;,&quot;tozero&quot;,&quot;nonnegative&quot;],dflt:&quot;normal&quot;,editType:&quot;plot&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;axrange&quot;,impliedEdits:{&quot;^autorange&quot;:!1},anim:!0},{valType:&quot;any&quot;,editType:&quot;axrange&quot;,impliedEdits:{&quot;^autorange&quot;:!1},anim:!0}],editType:&quot;axrange&quot;,impliedEdits:{autorange:!1},anim:!0},fixedrange:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},scaleanchor:{valType:&quot;enumerated&quot;,values:[c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;plot&quot;},scaleratio:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},constrain:{valType:&quot;enumerated&quot;,values:[&quot;range&quot;,&quot;domain&quot;],editType:&quot;plot&quot;},constraintoward:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;plot&quot;},matches:{valType:&quot;enumerated&quot;,values:[c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;calc&quot;},rangebreaks:s(&quot;rangebreak&quot;,{enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},bounds:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},pattern:{valType:&quot;enumerated&quot;,values:[f,u,&quot;&quot;],editType:&quot;calc&quot;},values:{valType:&quot;info_array&quot;,freeLength:!0,editType:&quot;calc&quot;,items:{valType:&quot;any&quot;,editType:&quot;calc&quot;}},dvalue:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0,dflt:l},editType:&quot;calc&quot;}),tickmode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;linear&quot;,&quot;array&quot;],editType:&quot;ticks&quot;,impliedEdits:{tick0:void 0,dtick:void 0}},nticks:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;ticks&quot;},tick0:{valType:&quot;any&quot;,editType:&quot;ticks&quot;,impliedEdits:{tickmode:&quot;linear&quot;}},dtick:{valType:&quot;any&quot;,editType:&quot;ticks&quot;,impliedEdits:{tickmode:&quot;linear&quot;}},tickvals:{valType:&quot;data_array&quot;,editType:&quot;ticks&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;ticks&quot;},ticks:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;&quot;],editType:&quot;ticks&quot;},tickson:{valType:&quot;enumerated&quot;,values:[&quot;labels&quot;,&quot;boundaries&quot;],dflt:&quot;labels&quot;,editType:&quot;ticks&quot;},ticklabelmode:{valType:&quot;enumerated&quot;,values:[&quot;instant&quot;,&quot;period&quot;],dflt:&quot;instant&quot;,editType:&quot;ticks&quot;},ticklabelposition:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;],dflt:&quot;outside&quot;,editType:&quot;calc&quot;},mirror:{valType:&quot;enumerated&quot;,values:[!0,&quot;ticks&quot;,!1,&quot;all&quot;,&quot;allticks&quot;],dflt:!1,editType:&quot;ticks+layoutstyle&quot;},ticklen:{valType:&quot;number&quot;,min:0,dflt:5,editType:&quot;ticks&quot;},tickwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks&quot;},tickcolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},showticklabels:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},automargin:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks&quot;},showspikes:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;modebar&quot;},spikecolor:{valType:&quot;color&quot;,dflt:null,editType:&quot;none&quot;},spikethickness:{valType:&quot;number&quot;,dflt:3,editType:&quot;none&quot;},spikedash:o({},a,{dflt:&quot;dash&quot;,editType:&quot;none&quot;}),spikemode:{valType:&quot;flaglist&quot;,flags:[&quot;toaxis&quot;,&quot;across&quot;,&quot;marker&quot;],dflt:&quot;toaxis&quot;,editType:&quot;none&quot;},spikesnap:{valType:&quot;enumerated&quot;,values:[&quot;data&quot;,&quot;cursor&quot;,&quot;hovered data&quot;],dflt:&quot;data&quot;,editType:&quot;none&quot;},tickfont:n({editType:&quot;ticks&quot;}),tickangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;ticks&quot;},tickprefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},showtickprefix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},ticksuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},showticksuffix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},showexponent:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},exponentformat:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;e&quot;,&quot;E&quot;,&quot;power&quot;,&quot;SI&quot;,&quot;B&quot;],dflt:&quot;B&quot;,editType:&quot;ticks&quot;},minexponent:{valType:&quot;number&quot;,dflt:3,min:0,editType:&quot;ticks&quot;},separatethousands:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks&quot;},tickformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},tickformatstops:s(&quot;tickformatstop&quot;,{enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},dtickrange:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;ticks&quot;},{valType:&quot;any&quot;,editType:&quot;ticks&quot;}],editType:&quot;ticks&quot;},value:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},editType:&quot;ticks&quot;}),hoverformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;none&quot;},showline:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks+layoutstyle&quot;},linecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;layoutstyle&quot;},linewidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks+layoutstyle&quot;},showgrid:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},gridcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;ticks&quot;},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks&quot;},zeroline:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},zerolinecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},zerolinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;ticks&quot;},showdividers:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},dividercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},dividerwidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;ticks&quot;},anchor:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;,c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;right&quot;],editType:&quot;plot&quot;},overlaying:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;,c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;plot&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;above traces&quot;,&quot;below traces&quot;],dflt:&quot;above traces&quot;,editType:&quot;plot&quot;},domain:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;}],dflt:[0,1],editType:&quot;plot&quot;},position:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;plot&quot;},categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;,&quot;total ascending&quot;,&quot;total descending&quot;,&quot;min ascending&quot;,&quot;min descending&quot;,&quot;max ascending&quot;,&quot;max descending&quot;,&quot;sum ascending&quot;,&quot;sum descending&quot;,&quot;mean ascending&quot;,&quot;mean descending&quot;,&quot;median ascending&quot;,&quot;median descending&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;,_deprecated:{autotick:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},title:{valType:&quot;string&quot;,editType:&quot;ticks&quot;},titlefont:n({editType:&quot;ticks&quot;})}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../components/drawing/attributes&quot;:664,&quot;../../constants/docs&quot;:748,&quot;../../constants/numerical&quot;:753,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../font_attributes&quot;:856,&quot;./constants&quot;:834}],843:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/fx/helpers&quot;).isUnifiedHover,o=t(&quot;../../components/fx/hovermode_defaults&quot;),s=t(&quot;../../plot_api/plot_template&quot;),l=t(&quot;../layout_attributes&quot;),c=t(&quot;./layout_attributes&quot;),u=t(&quot;./type_defaults&quot;),f=t(&quot;./axis_defaults&quot;),h=t(&quot;./constraints&quot;),p=t(&quot;./position_defaults&quot;),d=t(&quot;./axis_ids&quot;),g=d.id2name,m=d.name2id,v=t(&quot;./constants&quot;).AX_ID_PATTERN,y=t(&quot;../../registry&quot;),x=y.traceIs,b=y.getComponentMethod;function _(t,e,r){Array.isArray(t[e])?t[e].push(r):t[e]=[r]}e.exports=function(t,e,r){var y,w,T=e.autotypenumbers,k={},M={},A={},S={},E={},C={},L={},I={},P={},z={};for(y=0;y&lt;r.length;y++){var O=r[y];if(x(O,&quot;cartesian&quot;)||x(O,&quot;gl2d&quot;)){var D,R;if(O.xaxis)D=g(O.xaxis),_(k,D,O);else if(O.xaxes)for(w=0;w&lt;O.xaxes.length;w++)_(k,g(O.xaxes[w]),O);if(O.yaxis)R=g(O.yaxis),_(k,R,O);else if(O.yaxes)for(w=0;w&lt;O.yaxes.length;w++)_(k,g(O.yaxes[w]),O);if(&quot;funnel&quot;===O.type?&quot;h&quot;===O.orientation?(D&amp;&amp;(M[D]=!0),R&amp;&amp;(L[R]=!0)):R&amp;&amp;(A[R]=!0):&quot;image&quot;===O.type?(R&amp;&amp;(I[R]=!0),D&amp;&amp;(I[D]=!0)):(R&amp;&amp;(E[R]=!0,C[R]=!0),x(O,&quot;carpet&quot;)&amp;&amp;(&quot;carpet&quot;!==O.type||O._cheater)||D&amp;&amp;(S[D]=!0)),&quot;carpet&quot;===O.type&amp;&amp;O._cheater&amp;&amp;D&amp;&amp;(M[D]=!0),x(O,&quot;2dMap&quot;)&amp;&amp;(P[D]=!0,P[R]=!0),x(O,&quot;oriented&quot;))z[&quot;h&quot;===O.orientation?R:D]=!0}}var F=e._subplots,B=F.xaxis,N=F.yaxis,j=n.simpleMap(B,g),U=n.simpleMap(N,g),V=j.concat(U),q=i.background;B.length&amp;&amp;N.length&amp;&amp;(q=n.coerce(t,e,l,&quot;plot_bgcolor&quot;));var H,G,Y,W,X,Z=i.combine(q,e.paper_bgcolor);function J(){var t=k[H]||[];X._traceIndices=t.map((function(t){return t._expandedIndex})),X._annIndices=[],X._shapeIndices=[],X._imgIndices=[],X._subplotsWith=[],X._counterAxes=[],X._name=X._attr=H,X._id=G}function K(t,e){return n.coerce(W,X,c,t,e)}function Q(t,e){return n.coerce2(W,X,c,t,e)}function $(t){return&quot;x&quot;===t?N:B}function tt(e,r){for(var n=&quot;x&quot;===e?j:U,i=[],a=0;a&lt;n.length;a++){var o=n[a];o===r||(t[o]||{}).overlaying||i.push(m(o))}return i}var et={x:$(&quot;x&quot;),y:$(&quot;y&quot;)},rt=et.x.concat(et.y),nt={},it=[];function at(){var t=W.matches;v.test(t)&amp;&amp;-1===rt.indexOf(t)&amp;&amp;(nt[t]=W.type,it=Object.keys(nt))}var ot=o(t,e,r),st=a(ot);for(y=0;y&lt;V.length;y++){H=V[y],G=m(H),Y=H.charAt(0),n.isPlainObject(t[H])||(t[H]={}),W=t[H],X=s.newContainer(e,H,Y+&quot;axis&quot;),J();var lt=&quot;x&quot;===Y&amp;&amp;!S[H]&amp;&amp;M[H]||&quot;y&quot;===Y&amp;&amp;!E[H]&amp;&amp;A[H],ct=&quot;y&quot;===Y&amp;&amp;(!C[H]&amp;&amp;L[H]||I[H]),ut={letter:Y,font:e.font,outerTicks:P[H],showGrid:!z[H],data:k[H]||[],bgColor:Z,calendar:e.calendar,automargin:!0,visibleDflt:lt,reverseDflt:ct,autotypenumbersDflt:T,splomStash:((e._splomAxes||{})[Y]||{})[G]};K(&quot;uirevision&quot;,e.uirevision),u(W,X,K,ut),f(W,X,K,ut,e);var ft=st&amp;&amp;Y===ot.charAt(0),ht=Q(&quot;spikecolor&quot;,st?X.color:void 0),pt=Q(&quot;spikethickness&quot;,st?1.5:void 0),dt=Q(&quot;spikedash&quot;,st?&quot;dot&quot;:void 0),gt=Q(&quot;spikemode&quot;,st?&quot;across&quot;:void 0),mt=Q(&quot;spikesnap&quot;,st?&quot;hovered data&quot;:void 0);K(&quot;showspikes&quot;,!!(ft||ht||pt||dt||gt||mt))||(delete X.spikecolor,delete X.spikethickness,delete X.spikedash,delete X.spikemode,delete X.spikesnap),p(W,X,K,{letter:Y,counterAxes:et[Y],overlayableAxes:tt(Y,H),grid:e.grid}),K(&quot;title.standoff&quot;),at(),X._input=W}for(y=0;y&lt;it.length;){G=it[y++],Y=(H=g(G)).charAt(0),n.isPlainObject(t[H])||(t[H]={}),W=t[H],X=s.newContainer(e,H,Y+&quot;axis&quot;),J();var vt={letter:Y,font:e.font,outerTicks:P[H],showGrid:!z[H],data:[],bgColor:Z,calendar:e.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:T,splomStash:((e._splomAxes||{})[Y]||{})[G]};K(&quot;uirevision&quot;,e.uirevision),X.type=nt[G]||&quot;linear&quot;,f(W,X,K,vt,e),p(W,X,K,{letter:Y,counterAxes:et[Y],overlayableAxes:tt(Y,H),grid:e.grid}),K(&quot;fixedrange&quot;),at(),X._input=W}var yt=b(&quot;rangeslider&quot;,&quot;handleDefaults&quot;),xt=b(&quot;rangeselector&quot;,&quot;handleDefaults&quot;);for(y=0;y&lt;j.length;y++)H=j[y],W=t[H],X=e[H],yt(t,e,H),&quot;date&quot;===X.type&amp;&amp;xt(W,X,e,U,X.calendar),K(&quot;fixedrange&quot;);for(y=0;y&lt;U.length;y++){H=U[y],W=t[H],X=e[H];var bt=e[g(X.anchor)];K(&quot;fixedrange&quot;,b(&quot;rangeslider&quot;,&quot;isVisible&quot;)(bt))}h.handleDefaults(t,e,{axIds:rt.concat(it).sort(d.idSort),axHasImage:I})}},{&quot;../../components/color&quot;:643,&quot;../../components/fx/helpers&quot;:679,&quot;../../components/fx/hovermode_defaults&quot;:682,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../registry&quot;:911,&quot;../layout_attributes&quot;:882,&quot;./axis_defaults&quot;:830,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./constraints&quot;:835,&quot;./layout_attributes&quot;:842,&quot;./position_defaults&quot;:845,&quot;./type_defaults&quot;:853}],844:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;).mix,i=t(&quot;../../components/color/attributes&quot;).lightFraction,a=t(&quot;../../lib&quot;);e.exports=function(t,e,r,o){var s=(o=o||{}).dfltColor;function l(r,n){return a.coerce2(t,e,o.attributes,r,n)}var c=l(&quot;linecolor&quot;,s),u=l(&quot;linewidth&quot;);r(&quot;showline&quot;,o.showLine||!!c||!!u)||(delete e.linecolor,delete e.linewidth);var f=l(&quot;gridcolor&quot;,n(s,o.bgColor,o.blend||i).toRgbString()),h=l(&quot;gridwidth&quot;);if(r(&quot;showgrid&quot;,o.showGrid||!!f||!!h)||(delete e.gridcolor,delete e.gridwidth),!o.noZeroLine){var p=l(&quot;zerolinecolor&quot;,s),d=l(&quot;zerolinewidth&quot;);r(&quot;zeroline&quot;,o.showGrid||!!p||!!d)||(delete e.zerolinecolor,delete e.zerolinewidth)}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib&quot;:778,tinycolor2:576}],845:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o,s,l,c,u=a.counterAxes||[],f=a.overlayableAxes||[],h=a.letter,p=a.grid;p&amp;&amp;(s=p._domains[h][p._axisMap[e._id]],o=p._anchors[e._id],s&amp;&amp;(l=p[h+&quot;side&quot;].split(&quot; &quot;)[0],c=p.domain[h][&quot;right&quot;===l||&quot;top&quot;===l?1:0])),s=s||[0,1],o=o||(n(t.position)?&quot;free&quot;:u[0]||&quot;free&quot;),l=l||(&quot;x&quot;===h?&quot;bottom&quot;:&quot;left&quot;),c=c||0,&quot;free&quot;===i.coerce(t,e,{anchor:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;].concat(u),dflt:o}},&quot;anchor&quot;)&amp;&amp;r(&quot;position&quot;,c),i.coerce(t,e,{side:{valType:&quot;enumerated&quot;,values:&quot;x&quot;===h?[&quot;bottom&quot;,&quot;top&quot;]:[&quot;left&quot;,&quot;right&quot;],dflt:l}},&quot;side&quot;);var d=!1;if(f.length&amp;&amp;(d=i.coerce(t,e,{overlaying:{valType:&quot;enumerated&quot;,values:[!1].concat(f),dflt:!1}},&quot;overlaying&quot;)),!d){var g=r(&quot;domain&quot;,s);g[0]&gt;g[1]-1/4096&amp;&amp;(e.domain=s),i.noneOrAll(t.domain,e.domain,s)}return r(&quot;layer&quot;),e}},{&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],846:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/alignment&quot;).FROM_BL;e.exports=function(t,e,r){void 0===r&amp;&amp;(r=n[t.constraintoward||&quot;center&quot;]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*r;t.range=t._input.range=[t.l2r(a+(i[0]-a)*e),t.l2r(a+(i[1]-a)*e)],t.setScale()}},{&quot;../../constants/alignment&quot;:745}],847:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;polybooljs&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/drawing&quot;).dashStyle,o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;../../components/fx/helpers&quot;).makeEventData,c=t(&quot;../../components/dragelement/helpers&quot;),u=c.freeMode,f=c.rectMode,h=c.drawMode,p=c.openMode,d=c.selectMode,g=t(&quot;../../components/shapes/draw_newshape/display_outlines&quot;),m=t(&quot;../../components/shapes/draw_newshape/helpers&quot;).handleEllipse,v=t(&quot;../../components/shapes/draw_newshape/newshapes&quot;),y=t(&quot;../../lib&quot;),x=t(&quot;../../lib/polygon&quot;),b=t(&quot;../../lib/throttle&quot;),_=t(&quot;./axis_ids&quot;).getFromId,w=t(&quot;../../lib/clear_gl_canvases&quot;),T=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,k=t(&quot;./constants&quot;),M=k.MINSELECT,A=x.filter,S=x.tester,E=t(&quot;./handle_outline&quot;).clearSelect,C=t(&quot;./helpers&quot;),L=C.p2r,I=C.axValue,P=C.getTransform;function z(t,e,r,n,i,a,o){var s,l,c,u,f,h,d,m,v,y=e._hoverdata,x=e._fullLayout.clickmode.indexOf(&quot;event&quot;)&gt;-1,b=[];if(function(t){return t&amp;&amp;Array.isArray(t)&amp;&amp;!0!==t[0].hoverOnBox}(y)){F(t,e,a);var _=function(t,e){var r,n,i=t[0],a=-1,o=[];for(n=0;n&lt;e.length;n++)if(r=e[n],i.fullData._expandedIndex===r.cd[0].trace._expandedIndex){if(!0===i.hoverOnBox)break;void 0!==i.pointNumber?a=i.pointNumber:void 0!==i.binNumber&amp;&amp;(a=i.binNumber,o=i.pointNumbers);break}return{pointNumber:a,pointNumbers:o,searchInfo:r}}(y,s=N(e,r,n,i));if(_.pointNumbers.length&gt;0?function(t,e){var r,n,i,a=[];for(i=0;i&lt;t.length;i++)(r=t[i]).cd[0].trace.selectedpoints&amp;&amp;r.cd[0].trace.selectedpoints.length&gt;0&amp;&amp;a.push(r);if(1===a.length&amp;&amp;a[0]===e.searchInfo&amp;&amp;(n=e.searchInfo.cd[0].trace).selectedpoints.length===e.pointNumbers.length){for(i=0;i&lt;e.pointNumbers.length;i++)if(n.selectedpoints.indexOf(e.pointNumbers[i])&lt;0)return!1;return!0}return!1}(s,_):function(t){var e,r,n,i=0;for(n=0;n&lt;t.length;n++)if(e=t[n],(r=e.cd[0].trace).selectedpoints){if(r.selectedpoints.length&gt;1)return!1;if((i+=r.selectedpoints.length)&gt;1)return!1}return 1===i}(s)&amp;&amp;(h=j(_))){for(o&amp;&amp;o.remove(),v=0;v&lt;s.length;v++)(l=s[v])._module.selectPoints(l,!1);U(e,s),B(a),x&amp;&amp;e.emit(&quot;plotly_deselect&quot;,null)}else{for(d=t.shiftKey&amp;&amp;(void 0!==h?h:j(_)),c=function(t,e,r){return{pointNumber:t,searchInfo:e,subtract:r}}(_.pointNumber,_.searchInfo,d),u=R(a.selectionDefs.concat([c])),v=0;v&lt;s.length;v++)if(f=V(s[v]._module.selectPoints(s[v],u),s[v]),b.length)for(var w=0;w&lt;f.length;w++)b.push(f[w]);else b=f;if(U(e,s,m={points:b}),c&amp;&amp;a&amp;&amp;a.selectionDefs.push(c),o){var T=a.mergedPolygons,k=p(a.dragmode);g(q(T,k),o,a)}x&amp;&amp;e.emit(&quot;plotly_selected&quot;,m)}}}function O(t){return&quot;pointNumber&quot;in t&amp;&amp;&quot;searchInfo&quot;in t}function D(t){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(e,r,n,i){var a=t.searchInfo.cd[0].trace._expandedIndex;return i.cd[0].trace._expandedIndex===a&amp;&amp;n===t.pointNumber},isRect:!1,degenerate:!1,subtract:t.subtract}}function R(t){for(var e=[],r=O(t[0])?0:t[0][0][0],n=r,i=O(t[0])?0:t[0][0][1],a=i,o=0;o&lt;t.length;o++)if(O(t[o]))e.push(D(t[o]));else{var s=x.tester(t[o]);s.subtract=t[o].subtract,e.push(s),r=Math.min(r,s.xmin),n=Math.max(n,s.xmax),i=Math.min(i,s.ymin),a=Math.max(a,s.ymax)}return{xmin:r,xmax:n,ymin:i,ymax:a,pts:[],contains:function(t,r,n,i){for(var a=!1,o=0;o&lt;e.length;o++)e[o].contains(t,r,n,i)&amp;&amp;(a=!1===e[o].subtract);return a},isRect:!1,degenerate:!1}}function F(t,e,r){e._fullLayout._drawing=!1;var n=e._fullLayout,i=r.plotinfo,a=r.dragmode,o=n._lastSelectedSubplot&amp;&amp;n._lastSelectedSubplot===i.id,s=(t.shiftKey||t.altKey)&amp;&amp;!(h(a)&amp;&amp;p(a));o&amp;&amp;s&amp;&amp;i.selection&amp;&amp;i.selection.selectionDefs&amp;&amp;!r.selectionDefs?(r.selectionDefs=i.selection.selectionDefs,r.mergedPolygons=i.selection.mergedPolygons):s&amp;&amp;i.selection||B(r),o||(E(e),n._lastSelectedSubplot=i.id)}function B(t){var e=t.dragmode,r=t.plotinfo,n=t.gd;if(n._fullLayout._activeShapeIndex&gt;=0&amp;&amp;n._fullLayout._deactivateShape(n),h(e)){var a=n._fullLayout._zoomlayer.selectAll(&quot;.select-outline-&quot;+r.id);if(a&amp;&amp;n._fullLayout._drawing){var o=v(a,t);o&amp;&amp;i.call(&quot;_guiRelayout&quot;,n,{shapes:o}),n._fullLayout._drawing=!1}}r.selection={},r.selection.selectionDefs=t.selectionDefs=[],r.selection.mergedPolygons=t.mergedPolygons=[]}function N(t,e,r,n){var i,a,o,s=[],l=e.map((function(t){return t._id})),c=r.map((function(t){return t._id}));for(o=0;o&lt;t.calcdata.length;o++)if(!0===(a=(i=t.calcdata[o])[0].trace).visible&amp;&amp;a._module&amp;&amp;a._module.selectPoints)if(!n||a.subplot!==n&amp;&amp;a.geo!==n)if(&quot;splom&quot;===a.type&amp;&amp;a._xaxes[l[0]]&amp;&amp;a._yaxes[c[0]]){var u=h(a._module,i,e[0],r[0]);u.scene=t._fullLayout._splomScenes[a.uid],s.push(u)}else if(&quot;sankey&quot;===a.type){var f=h(a._module,i,e[0],r[0]);s.push(f)}else{if(-1===l.indexOf(a.xaxis))continue;if(-1===c.indexOf(a.yaxis))continue;s.push(h(a._module,i,_(t,a.xaxis),_(t,a.yaxis)))}else s.push(h(a._module,i,e[0],r[0]));return s;function h(t,e,r,n){return{_module:t,cd:e,xaxis:r,yaxis:n}}}function j(t){var e=t.searchInfo.cd[0].trace,r=t.pointNumber,n=t.pointNumbers,i=n.length&gt;0?n[0]:r;return!!e.selectedpoints&amp;&amp;e.selectedpoints.indexOf(i)&gt;-1}function U(t,e,r){var n,a,o,s;for(n=0;n&lt;e.length;n++){var l=e[n].cd[0].trace._fullInput,c=t._fullLayout._tracePreGUI[l.uid]||{};void 0===c.selectedpoints&amp;&amp;(c.selectedpoints=l._input.selectedpoints||null)}if(r){var u=r.points||[];for(n=0;n&lt;e.length;n++)(s=e[n].cd[0].trace)._input.selectedpoints=s._fullInput.selectedpoints=[],s._fullInput!==s&amp;&amp;(s.selectedpoints=[]);for(n=0;n&lt;u.length;n++){var f=u[n],h=f.data,p=f.fullData;f.pointIndices?([].push.apply(h.selectedpoints,f.pointIndices),s._fullInput!==s&amp;&amp;[].push.apply(p.selectedpoints,f.pointIndices)):(h.selectedpoints.push(f.pointIndex),s._fullInput!==s&amp;&amp;p.selectedpoints.push(f.pointIndex))}}else for(n=0;n&lt;e.length;n++)delete(s=e[n].cd[0].trace).selectedpoints,delete s._input.selectedpoints,s._fullInput!==s&amp;&amp;delete s._fullInput.selectedpoints;var d=!1;for(n=0;n&lt;e.length;n++){s=(o=(a=e[n]).cd)[0].trace,i.traceIs(s,&quot;regl&quot;)&amp;&amp;(d=!0);var g=a._module,m=g.styleOnSelect||g.style;m&amp;&amp;(m(t,o,o[0].node3),o[0].nodeRangePlot3&amp;&amp;m(t,o,o[0].nodeRangePlot3))}d&amp;&amp;(w(t),T(t))}function V(t,e){if(Array.isArray(t))for(var r=e.cd,n=e.cd[0].trace,i=0;i&lt;t.length;i++)t[i]=l(t[i],n,r);return t}function q(t,e){for(var r=[],n=0;n&lt;t.length;n++){r[n]=[];for(var i=0;i&lt;t[n].length;i++){r[n][i]=[],r[n][i][0]=i?&quot;L&quot;:&quot;M&quot;;for(var a=0;a&lt;t[n][i].length;a++)r[n][i].push(t[n][i][a])}e||r[n].push([&quot;Z&quot;,r[n][0][1],r[n][0][2]])}return r}e.exports={prepSelect:function(t,e,r,i,l){var c=u(l),v=f(l),x=p(l),_=h(l),w=d(l),T=&quot;drawcircle&quot;===l,E=&quot;drawline&quot;===l||T,C=i.gd,O=C._fullLayout,D=O._zoomlayer,j=i.element.getBoundingClientRect(),H=i.plotinfo,G=P(H),Y=e-j.left,W=r-j.top;O._calcInverseTransform(C);var X=y.apply3DTransform(O._invTransform)(Y,W);Y=X[0],W=X[1];var Z,J,K,Q,$,tt,et,rt=O._invScaleX,nt=O._invScaleY,it=Y,at=W,ot=&quot;M&quot;+Y+&quot;,&quot;+W,st=i.xaxes[0]._length,lt=i.yaxes[0]._length,ct=i.xaxes.concat(i.yaxes),ut=t.altKey&amp;&amp;!(h(l)&amp;&amp;x);F(t,C,i),c&amp;&amp;(Z=A([[Y,W]],k.BENDPX));var ft=D.selectAll(&quot;path.select-outline-&quot;+H.id).data(_?[0]:[1,2]),ht=O.newshape;ft.enter().append(&quot;path&quot;).attr(&quot;class&quot;,(function(t){return&quot;select-outline select-outline-&quot;+t+&quot; select-outline-&quot;+H.id})).style(_?{opacity:ht.opacity/2,fill:x?void 0:ht.fillcolor,stroke:ht.line.color,&quot;stroke-dasharray&quot;:a(ht.line.dash,ht.line.width),&quot;stroke-width&quot;:ht.line.width+&quot;px&quot;}:{}).attr(&quot;fill-rule&quot;,ht.fillrule).classed(&quot;cursor-move&quot;,!!_).attr(&quot;transform&quot;,G).attr(&quot;d&quot;,ot+&quot;Z&quot;);var pt,dt=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).style({fill:o.background,stroke:o.defaultLine,&quot;stroke-width&quot;:1}).attr(&quot;transform&quot;,G).attr(&quot;d&quot;,&quot;M0,0Z&quot;),gt=O._uid+k.SELECTID,mt=[],vt=N(C,i.xaxes,i.yaxes,i.subplot);function yt(t,e){return t-e}pt=H.fillRangeItems?H.fillRangeItems:v?function(t,e){var r=t.range={};for($=0;$&lt;ct.length;$++){var n=ct[$],i=n._id.charAt(0);r[n._id]=[L(n,e[i+&quot;min&quot;]),L(n,e[i+&quot;max&quot;])].sort(yt)}}:function(t,e,r){var n=t.lassoPoints={};for($=0;$&lt;ct.length;$++){var i=ct[$];n[i._id]=r.filtered.map(I(i))}},i.moveFn=function(t,e){it=Math.max(0,Math.min(st,rt*t+Y)),at=Math.max(0,Math.min(lt,nt*e+W));var r=Math.abs(it-Y),a=Math.abs(at-W);if(v){var o,s,l;if(w){var u=O.selectdirection;switch(o=&quot;any&quot;===u?a&lt;Math.min(.6*r,M)?&quot;h&quot;:r&lt;Math.min(.6*a,M)?&quot;v&quot;:&quot;d&quot;:u){case&quot;h&quot;:s=T?lt/2:0,l=lt;break;case&quot;v&quot;:s=T?st/2:0,l=st}}if(_)switch(O.newshape.drawdirection){case&quot;vertical&quot;:o=&quot;h&quot;,s=T?lt/2:0,l=lt;break;case&quot;horizontal&quot;:o=&quot;v&quot;,s=T?st/2:0,l=st;break;case&quot;ortho&quot;:r&lt;a?(o=&quot;h&quot;,s=W,l=at):(o=&quot;v&quot;,s=Y,l=it);break;default:o=&quot;d&quot;}&quot;h&quot;===o?((Q=E?m(T,[it,s],[it,l]):[[Y,s],[Y,l],[it,l],[it,s]]).xmin=E?it:Math.min(Y,it),Q.xmax=E?it:Math.max(Y,it),Q.ymin=Math.min(s,l),Q.ymax=Math.max(s,l),dt.attr(&quot;d&quot;,&quot;M&quot;+Q.xmin+&quot;,&quot;+(W-M)+&quot;h-4v&quot;+2*M+&quot;h4ZM&quot;+(Q.xmax-1)+&quot;,&quot;+(W-M)+&quot;h4v&quot;+2*M+&quot;h-4Z&quot;)):&quot;v&quot;===o?((Q=E?m(T,[s,at],[l,at]):[[s,W],[s,at],[l,at],[l,W]]).xmin=Math.min(s,l),Q.xmax=Math.max(s,l),Q.ymin=E?at:Math.min(W,at),Q.ymax=E?at:Math.max(W,at),dt.attr(&quot;d&quot;,&quot;M&quot;+(Y-M)+&quot;,&quot;+Q.ymin+&quot;v-4h&quot;+2*M+&quot;v4ZM&quot;+(Y-M)+&quot;,&quot;+(Q.ymax-1)+&quot;v4h&quot;+2*M+&quot;v-4Z&quot;)):&quot;d&quot;===o&amp;&amp;((Q=E?m(T,[Y,W],[it,at]):[[Y,W],[Y,at],[it,at],[it,W]]).xmin=Math.min(Y,it),Q.xmax=Math.max(Y,it),Q.ymin=Math.min(W,at),Q.ymax=Math.max(W,at),dt.attr(&quot;d&quot;,&quot;M0,0Z&quot;))}else c&amp;&amp;(Z.addPt([it,at]),Q=Z.filtered);i.selectionDefs&amp;&amp;i.selectionDefs.length?(K=function(t,e,r){if(r)return n.difference({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions;return n.union({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions}(i.mergedPolygons,Q,ut),Q.subtract=ut,J=R(i.selectionDefs.concat([Q]))):(K=[Q],J=S(Q)),g(q(K,x),ft,i),w&amp;&amp;b.throttle(gt,k.SELECTDELAY,(function(){var t;mt=[];var e,r=[];for($=0;$&lt;vt.length;$++)if(e=(tt=vt[$])._module.selectPoints(tt,J),r.push(e),t=V(e,tt),mt.length)for(var n=0;n&lt;t.length;n++)mt.push(t[n]);else mt=t;U(C,vt,et={points:mt}),pt(et,Q,Z),i.gd.emit(&quot;plotly_selecting&quot;,et)}))},i.clickFn=function(t,e){if(dt.remove(),C._fullLayout._activeShapeIndex&gt;=0)C._fullLayout._deactivateShape(C);else if(!_){var r=O.clickmode;b.done(gt).then((function(){if(b.clear(gt),2===t){for(ft.remove(),$=0;$&lt;vt.length;$++)(tt=vt[$])._module.selectPoints(tt,!1);U(C,vt),B(i),C.emit(&quot;plotly_deselect&quot;,null)}else r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;z(e,C,i.xaxes,i.yaxes,i.subplot,i,ft),&quot;event&quot;===r&amp;&amp;C.emit(&quot;plotly_selected&quot;,void 0);s.click(C,e)})).catch(y.error)}},i.doneFn=function(){dt.remove(),b.done(gt).then((function(){b.clear(gt),i.gd.emit(&quot;plotly_selected&quot;,et),Q&amp;&amp;i.selectionDefs&amp;&amp;(Q.subtract=ut,i.selectionDefs.push(Q),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,K)),i.doneFnCompleted&amp;&amp;i.doneFnCompleted(mt)})).catch(y.error),_&amp;&amp;B(i)}},clearSelect:E,clearSelectionsCache:B,selectOnClick:z}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../components/fx/helpers&quot;:679,&quot;../../components/shapes/draw_newshape/display_outlines&quot;:728,&quot;../../components/shapes/draw_newshape/helpers&quot;:729,&quot;../../components/shapes/draw_newshape/newshapes&quot;:730,&quot;../../lib&quot;:778,&quot;../../lib/clear_gl_canvases&quot;:762,&quot;../../lib/polygon&quot;:790,&quot;../../lib/throttle&quot;:804,&quot;../../plot_api/subroutines&quot;:818,&quot;../../registry&quot;:911,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./handle_outline&quot;:838,&quot;./helpers&quot;:839,polybooljs:517}],848:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-time-format&quot;).utcFormat,a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../lib&quot;),s=o.cleanNumber,l=o.ms2DateTime,c=o.dateTime2ms,u=o.ensureNumber,f=o.isArrayOrTypedArray,h=t(&quot;../../constants/numerical&quot;),p=h.FP_SAFE,d=h.BADNUM,g=h.LOG_CLIP,m=h.ONEWEEK,v=h.ONEDAY,y=h.ONEHOUR,x=h.ONEMIN,b=h.ONESEC,_=t(&quot;./axis_ids&quot;),w=t(&quot;./constants&quot;),T=w.HOUR_PATTERN,k=w.WEEKDAY_PATTERN;function M(t){return Math.pow(10,t)}function A(t){return null!=t}e.exports=function(t,e){e=e||{};var r=t._id||&quot;x&quot;,h=r.charAt(0);function S(e,r){if(e&gt;0)return Math.log(e)/Math.LN10;if(e&lt;=0&amp;&amp;r&amp;&amp;t.range&amp;&amp;2===t.range.length){var n=t.range[0],i=t.range[1];return.5*(n+i-2*g*Math.abs(n-i))}return d}function E(e,r,n,i){if((i||{}).msUTC&amp;&amp;a(e))return+e;var s=c(e,n||t.calendar);if(s===d){if(!a(e))return d;e=+e;var l=Math.floor(10*o.mod(e+.05,1)),u=Math.round(e-l/10);s=c(new Date(u))+l/10}return s}function C(e,r,n){return l(e,r,n||t.calendar)}function L(e){return t._categories[Math.round(e)]}function I(e){if(A(e)){if(void 0===t._categoriesMap&amp;&amp;(t._categoriesMap={}),void 0!==t._categoriesMap[e])return t._categoriesMap[e];t._categories.push(&quot;number&quot;==typeof e?String(e):e);var r=t._categories.length-1;return t._categoriesMap[e]=r,r}return d}function P(e){if(t._categoriesMap)return t._categoriesMap[e]}function z(t){var e=P(t);return void 0!==e?e:a(t)?+t:void 0}function O(t){return a(t)?+t:P(t)}function D(t,e,r){return n.round(r+e*t,2)}function R(t,e,r){return(t-r)/e}var F=function(e){return a(e)?D(e,t._m,t._b):d},B=function(e){return R(e,t._m,t._b)};if(t.rangebreaks){var N=&quot;y&quot;===h;F=function(e){if(!a(e))return d;var r=t._rangebreaks.length;if(!r)return D(e,t._m,t._b);var n=N;t.range[0]&gt;t.range[1]&amp;&amp;(n=!n);for(var i=n?-1:1,o=i*e,s=0,l=0;l&lt;r;l++){var c=i*t._rangebreaks[l].min,u=i*t._rangebreaks[l].max;if(o&lt;c)break;if(!(o&gt;u)){s=o&lt;(c+u)/2?l:l+1;break}s=l+1}var f=t._B[s]||0;return isFinite(f)?D(e,t._m2,f):0},B=function(e){var r=t._rangebreaks.length;if(!r)return R(e,t._m,t._b);for(var n=0,i=0;i&lt;r&amp;&amp;!(e&lt;t._rangebreaks[i].pmin);i++)e&gt;t._rangebreaks[i].pmax&amp;&amp;(n=i+1);return R(e,t._m2,t._B[n])}}t.c2l=&quot;log&quot;===t.type?S:u,t.l2c=&quot;log&quot;===t.type?M:u,t.l2p=F,t.p2l=B,t.c2p=&quot;log&quot;===t.type?function(t,e){return F(S(t,e))}:F,t.p2c=&quot;log&quot;===t.type?function(t){return M(B(t))}:B,-1!==[&quot;linear&quot;,&quot;-&quot;].indexOf(t.type)?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=s,t.c2d=t.c2r=t.l2d=t.l2r=u,t.d2p=t.r2p=function(e){return t.l2p(s(e))},t.p2d=t.p2r=B,t.cleanPos=u):&quot;log&quot;===t.type?(t.d2r=t.d2l=function(t,e){return S(s(t),e)},t.r2d=t.r2c=function(t){return M(s(t))},t.d2c=t.r2l=s,t.c2d=t.l2r=u,t.c2r=S,t.l2d=M,t.d2p=function(e,r){return t.l2p(t.d2r(e,r))},t.p2d=function(t){return M(B(t))},t.r2p=function(e){return t.l2p(s(e))},t.p2r=B,t.cleanPos=u):&quot;date&quot;===t.type?(t.d2r=t.r2d=o.identity,t.d2c=t.r2c=t.d2l=t.r2l=E,t.c2d=t.c2r=t.l2d=t.l2r=C,t.d2p=t.r2p=function(e,r,n){return t.l2p(E(e,0,n))},t.p2d=t.p2r=function(t,e,r){return C(B(t),e,r)},t.cleanPos=function(e){return o.cleanDate(e,d,t.calendar)}):&quot;category&quot;===t.type?(t.d2c=t.d2l=I,t.r2d=t.c2d=t.l2d=L,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=O(e);return void 0!==r?r:t.fraction2r(.5)},t.l2r=t.c2r=u,t.r2l=O,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return L(B(t))},t.r2p=t.d2p,t.p2r=B,t.cleanPos=function(t){return&quot;string&quot;==typeof t&amp;&amp;&quot;&quot;!==t?t:u(t)}):&quot;multicategory&quot;===t.type&amp;&amp;(t.r2d=t.c2d=t.l2d=L,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=z(e);return void 0!==r?r:t.fraction2r(.5)},t.r2c_just_indices=P,t.l2r=t.c2r=u,t.r2l=z,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return L(B(t))},t.r2p=t.d2p,t.p2r=B,t.cleanPos=function(t){return Array.isArray(t)||&quot;string&quot;==typeof t&amp;&amp;&quot;&quot;!==t?t:u(t)},t.setupMultiCategory=function(n){var i,a,s=t._traceIndices,l=t._matchGroup;if(l&amp;&amp;0===t._categories.length)for(var c in l)if(c!==r){var u=e[_.id2name(c)];s=s.concat(u._traceIndices)}var p=[[0,{}],[0,{}]],d=[];for(i=0;i&lt;s.length;i++){var g=n[s[i]];if(h in g){var m=g[h],v=g._length||o.minRowLength(m);if(f(m[0])&amp;&amp;f(m[1]))for(a=0;a&lt;v;a++){var y=m[0][a],x=m[1][a];A(y)&amp;&amp;A(x)&amp;&amp;(d.push([y,x]),y in p[0][1]||(p[0][1][y]=p[0][0]++),x in p[1][1]||(p[1][1][x]=p[1][0]++))}}}for(d.sort((function(t,e){var r=p[0][1],n=r[t[0]]-r[e[0]];if(n)return n;var i=p[1][1];return i[t[1]]-i[e[1]]})),i=0;i&lt;d.length;i++)I(d[i])}),t.fraction2r=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return t.l2r(r+e*(n-r))},t.r2fraction=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return(t.r2l(e)-r)/(n-r)},t.cleanRange=function(e,r){r||(r={}),e||(e=&quot;range&quot;);var n,i,s=o.nestedProperty(t,e).get();if(i=(i=&quot;date&quot;===t.type?o.dfltRange(t.calendar):&quot;y&quot;===h?w.DFLTRANGEY:r.dfltRange||w.DFLTRANGEX).slice(),&quot;tozero&quot;!==t.rangemode&amp;&amp;&quot;nonnegative&quot;!==t.rangemode||(i[0]=0),s&amp;&amp;2===s.length)for(&quot;date&quot;!==t.type||t.autorange||(s[0]=o.cleanDate(s[0],d,t.calendar),s[1]=o.cleanDate(s[1],d,t.calendar)),n=0;n&lt;2;n++)if(&quot;date&quot;===t.type){if(!o.isDateTime(s[n],t.calendar)){t[e]=i;break}if(t.r2l(s[0])===t.r2l(s[1])){var l=o.constrain(t.r2l(s[0]),o.MIN_MS+1e3,o.MAX_MS-1e3);s[0]=t.l2r(l-1e3),s[1]=t.l2r(l+1e3);break}}else{if(!a(s[n])){if(!a(s[1-n])){t[e]=i;break}s[n]=s[1-n]*(n?10:.1)}if(s[n]&lt;-p?s[n]=-p:s[n]&gt;p&amp;&amp;(s[n]=p),s[0]===s[1]){var c=Math.max(1,Math.abs(1e-6*s[0]));s[0]-=c,s[1]+=c}}else o.nestedProperty(t,e).set(i)},t.setScale=function(r){var n=e._size;if(t.overlaying){var i=_.getFromId({_fullLayout:e},t.overlaying);t.domain=i.domain}var a=r&amp;&amp;t._r?&quot;_r&quot;:&quot;range&quot;,o=t.calendar;t.cleanRange(a);var s,l,c=t.r2l(t[a][0],o),u=t.r2l(t[a][1],o),f=&quot;y&quot;===h;if((f?(t._offset=n.t+(1-t.domain[1])*n.h,t._length=n.h*(t.domain[1]-t.domain[0]),t._m=t._length/(c-u),t._b=-t._m*u):(t._offset=n.l+t.domain[0]*n.w,t._length=n.w*(t.domain[1]-t.domain[0]),t._m=t._length/(u-c),t._b=-t._m*c),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks)&amp;&amp;(t._rangebreaks=t.locateBreaks(Math.min(c,u),Math.max(c,u)),t._rangebreaks.length)){for(s=0;s&lt;t._rangebreaks.length;s++)l=t._rangebreaks[s],t._lBreaks+=Math.abs(l.max-l.min);var p=f;c&gt;u&amp;&amp;(p=!p),p&amp;&amp;t._rangebreaks.reverse();var d=p?-1:1;for(t._m2=d*t._length/(Math.abs(u-c)-t._lBreaks),t._B.push(-t._m2*(f?u:c)),s=0;s&lt;t._rangebreaks.length;s++)l=t._rangebreaks[s],t._B.push(t._B[t._B.length-1]-d*t._m2*(l.max-l.min));for(s=0;s&lt;t._rangebreaks.length;s++)(l=t._rangebreaks[s]).pmin=F(l.min),l.pmax=F(l.max)}if(!isFinite(t._m)||!isFinite(t._b)||t._length&lt;0)throw e._replotting=!1,new Error(&quot;Something went wrong with axis scaling&quot;)},t.maskBreaks=function(e){for(var r,n,i,a,l,c=t.rangebreaks||[],u=0;u&lt;c.length;u++){var f=c[u];if(f.enabled)if(f.bounds){var h=f.pattern;switch(n=(r=o.simpleMap(f.bounds,h?s:t.d2c))[0],i=r[1],h){case k:a=(l=new Date(e)).getUTCDay(),n&gt;i&amp;&amp;(i+=7,a&lt;n&amp;&amp;(a+=7));break;case T:a=(l=new Date(e)).getUTCHours()+(l.getUTCMinutes()/60+l.getUTCSeconds()/3600+l.getUTCMilliseconds()/36e5),n&gt;i&amp;&amp;(i+=24,a&lt;n&amp;&amp;(a+=24));break;case&quot;&quot;:a=e}if(a&gt;=n&amp;&amp;a&lt;i)return d}else for(var p=o.simpleMap(f.values,t.d2c).sort(o.sorterAsc),g=0;g&lt;p.length;g++)if(i=(n=p[g])+f.dvalue,e&gt;=n&amp;&amp;e&lt;i)return d}return e},t.locateBreaks=function(e,r){var n,i,a,l,c=[];if(!t.rangebreaks)return c;var u=t.rangebreaks.slice().sort((function(t,e){return t.pattern===k&amp;&amp;e.pattern===T?-1:e.pattern===k&amp;&amp;t.pattern===T?1:0})),f=function(t,n){if((t=o.constrain(t,e,r))!==(n=o.constrain(n,e,r))){for(var i=!0,a=0;a&lt;c.length;a++){var s=c[a];t&lt;s.max&amp;&amp;n&gt;=s.min&amp;&amp;(t&lt;s.min&amp;&amp;(s.min=t),n&gt;s.max&amp;&amp;(s.max=n),i=!1)}i&amp;&amp;c.push({min:t,max:n})}};for(n=0;n&lt;u.length;n++){var h=u[n];if(h.enabled)if(h.bounds){var p=e,d=r;h.pattern&amp;&amp;(p=Math.floor(p)),a=(i=o.simpleMap(h.bounds,h.pattern?s:t.r2l))[0],l=i[1];var g,_,w=new Date(p);switch(h.pattern){case k:_=m,g=(l-a+(l&lt;a?7:0))*v,p+=a*v-(w.getUTCDay()*v+w.getUTCHours()*y+w.getUTCMinutes()*x+w.getUTCSeconds()*b+w.getUTCMilliseconds());break;case T:_=v,g=(l-a+(l&lt;a?24:0))*y,p+=a*y-(w.getUTCHours()*y+w.getUTCMinutes()*x+w.getUTCSeconds()*b+w.getUTCMilliseconds());break;default:p=Math.min(i[0],i[1]),g=_=(d=Math.max(i[0],i[1]))-p}for(var M=p;M&lt;d;M+=_)f(M,M+g)}else for(var A=o.simpleMap(h.values,t.d2c),S=0;S&lt;A.length;S++)f(a=A[S],l=a+h.dvalue)}return c.sort((function(t,e){return t.min-e.min})),c},t.makeCalcdata=function(e,r,n){var i,a,s,l,c=t.type,u=&quot;date&quot;===c&amp;&amp;e[r+&quot;calendar&quot;];if(r in e){if(i=e[r],l=e._length||o.minRowLength(i),o.isTypedArray(i)&amp;&amp;(&quot;linear&quot;===c||&quot;log&quot;===c)){if(l===i.length)return i;if(i.subarray)return i.subarray(0,l)}if(&quot;multicategory&quot;===c)return function(t,e){for(var r=new Array(e),n=0;n&lt;e;n++){var i=(t[0]||[])[n],a=(t[1]||[])[n];r[n]=P([i,a])}return r}(i,l);for(a=new Array(l),s=0;s&lt;l;s++)a[s]=t.d2c(i[s],0,u,n)}else{var f=r+&quot;0&quot;in e?t.d2c(e[r+&quot;0&quot;],0,u):0,h=e[&quot;d&quot;+r]?Number(e[&quot;d&quot;+r]):1;for(i=e[{x:&quot;y&quot;,y:&quot;x&quot;}[r]],l=e._length||i.length,a=new Array(l),s=0;s&lt;l;s++)a[s]=f+s*h}if(t.rangebreaks)for(s=0;s&lt;l;s++)a[s]=t.maskBreaks(a[s]);return a},t.isValidRange=function(e){return Array.isArray(e)&amp;&amp;2===e.length&amp;&amp;a(t.r2l(e[0]))&amp;&amp;a(t.r2l(e[1]))},t.isPtWithinRange=function(e,r){var n=t.c2l(e[h],null,r),i=t.r2l(t.range[0]),a=t.r2l(t.range[1]);return i&lt;a?i&lt;=n&amp;&amp;n&lt;=a:a&lt;=n&amp;&amp;n&lt;=i},t._emptyCategories=function(){t._categories=[],t._categoriesMap={}},t.clearCalc=function(){var r=t._matchGroup;if(r){var n=null,i=null;for(var a in r){var o=e[_.id2name(a)];if(o._categories){n=o._categories,i=o._categoriesMap;break}}n&amp;&amp;i?(t._categories=n,t._categoriesMap=i):t._emptyCategories()}else t._emptyCategories();if(t._initialCategories)for(var s=0;s&lt;t._initialCategories.length;s++)I(t._initialCategories[s])},t.sortByInitialCategories=function(){var n=[];if(t._emptyCategories(),t._initialCategories)for(var i=0;i&lt;t._initialCategories.length;i++)I(t._initialCategories[i]);n=n.concat(t._traceIndices);var a=t._matchGroup;for(var o in a)if(r!==o){var s=e[_.id2name(o)];s._categories=t._categories,s._categoriesMap=t._categoriesMap,n=n.concat(s._traceIndices)}return n};var j=e._d3locale;&quot;date&quot;===t.type&amp;&amp;(t._dateFormat=j?j.timeFormat:i,t._extraFormat=e._extraFormat),t._separators=e.separators,t._numFormat=j?j.numberFormat:n.format,delete t._minDtick,delete t._forceTick0}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,d3:169,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],849:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;).contrast,a=t(&quot;./layout_attributes&quot;),o=t(&quot;../array_container_defaults&quot;);function s(t){var e=[&quot;showexponent&quot;,&quot;showtickprefix&quot;,&quot;showticksuffix&quot;].filter((function(e){return void 0!==t[e]}));if(e.every((function(r){return t[r]===t[e[0]]}))||1===e.length)return t[e[0]]}function l(t,e){function r(r,i){return n.coerce(t,e,a.tickformatstops,r,i)}r(&quot;enabled&quot;)&amp;&amp;(r(&quot;dtickrange&quot;),r(&quot;value&quot;))}e.exports=function(t,e,r,c,u,f){f&amp;&amp;1!==f.pass||function(t,e,r,n,i){var a=s(t);r(&quot;tickprefix&quot;)&amp;&amp;r(&quot;showtickprefix&quot;,a);r(&quot;ticksuffix&quot;,i.tickSuffixDflt)&amp;&amp;r(&quot;showticksuffix&quot;,a)}(t,0,r,0,u),f&amp;&amp;2!==f.pass||function(t,e,r,c,u){var f=s(t);r(&quot;tickprefix&quot;)&amp;&amp;r(&quot;showtickprefix&quot;,f);r(&quot;ticksuffix&quot;,u.tickSuffixDflt)&amp;&amp;r(&quot;showticksuffix&quot;,f);if(r(&quot;showticklabels&quot;)){var h=u.font||{},p=e.color,d=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)?i(u.bgColor):p&amp;&amp;p!==a.color.dflt?p:h.color;if(n.coerceFont(r,&quot;tickfont&quot;,{family:h.family,size:h.size,color:d}),r(&quot;tickangle&quot;),&quot;category&quot;!==c){var g=r(&quot;tickformat&quot;);o(t,e,{name:&quot;tickformatstops&quot;,inclusionAttr:&quot;enabled&quot;,handleItemDefaults:l}),e.tickformatstops.length||delete e.tickformatstops,g||&quot;date&quot;===c||(r(&quot;showexponent&quot;,f),r(&quot;exponentformat&quot;),r(&quot;minexponent&quot;),r(&quot;separatethousands&quot;))}}}(t,e,r,c,u)}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../array_container_defaults&quot;:823,&quot;./layout_attributes&quot;:842}],850:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r,a){var o=n.coerce2(t,e,i,&quot;ticklen&quot;),s=n.coerce2(t,e,i,&quot;tickwidth&quot;),l=n.coerce2(t,e,i,&quot;tickcolor&quot;,e.color);r(&quot;ticks&quot;,a.outerTicks||o||s||l?&quot;outside&quot;:&quot;&quot;)||(delete e.ticklen,delete e.tickwidth,delete e.tickcolor)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:842}],851:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./clean_ticks&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a){function o(r){var n=t[r];return void 0!==n?n:(e._template||{})[r]}var s=o(&quot;tick0&quot;),l=o(&quot;dtick&quot;),c=o(&quot;tickvals&quot;),u=r(&quot;tickmode&quot;,i(c)?&quot;array&quot;:l?&quot;linear&quot;:&quot;auto&quot;);if(&quot;auto&quot;===u)r(&quot;nticks&quot;);else if(&quot;linear&quot;===u){var f=e.dtick=n.dtick(l,a);e.tick0=n.tick0(s,a,e.calendar,f)}else if(&quot;multicategory&quot;!==a){void 0===r(&quot;tickvals&quot;)?e.tickmode=&quot;auto&quot;:r(&quot;ticktext&quot;)}}},{&quot;../../lib&quot;:778,&quot;./clean_ticks&quot;:833}],852:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;./axes&quot;);e.exports=function(t,e,r,l){var c=t._fullLayout;if(0!==e.length){var u,f,h,p;l&amp;&amp;(u=l());var d=n.ease(r.easing);return t._transitionData._interruptCallbacks.push((function(){return window.cancelAnimationFrame(p),p=null,function(){for(var r={},n=0;n&lt;e.length;n++){var a=e[n],o=a.plotinfo.xaxis,s=a.plotinfo.yaxis;a.xr0&amp;&amp;(r[o._name+&quot;.range&quot;]=a.xr0.slice()),a.yr0&amp;&amp;(r[s._name+&quot;.range&quot;]=a.yr0.slice())}return i.call(&quot;relayout&quot;,t,r).then((function(){for(var t=0;t&lt;e.length;t++)g(e[t].plotinfo)}))}()})),f=Date.now(),p=window.requestAnimationFrame((function n(){h=Date.now();for(var a=Math.min(1,(h-f)/r.duration),o=d(a),s=0;s&lt;e.length;s++)m(e[s],o);h-f&gt;r.duration?(!function(){for(var r={},n=0;n&lt;e.length;n++){var a=e[n],o=a.plotinfo.xaxis,s=a.plotinfo.yaxis;a.xr1&amp;&amp;(r[o._name+&quot;.range&quot;]=a.xr1.slice()),a.yr1&amp;&amp;(r[s._name+&quot;.range&quot;]=a.yr1.slice())}u&amp;&amp;u(),i.call(&quot;relayout&quot;,t,r).then((function(){for(var t=0;t&lt;e.length;t++)g(e[t].plotinfo)}))}(),p=window.cancelAnimationFrame(n)):p=window.requestAnimationFrame(n)})),Promise.resolve()}function g(t){var e=t.xaxis,r=t.yaxis;c._defs.select(&quot;#&quot;+t.clipId+&quot;&gt; rect&quot;).call(o.setTranslate,0,0).call(o.setScale,1,1),t.plot.call(o.setTranslate,e._offset,r._offset).call(o.setScale,1,1);var n=t.plot.selectAll(&quot;.scatterlayer .trace&quot;);n.selectAll(&quot;.point&quot;).call(o.setPointGroupScale,1,1),n.selectAll(&quot;.textpoint&quot;).call(o.setTextPointsScale,1,1),n.call(o.hideOutsideRangePoints,t)}function m(e,r){var n=e.plotinfo,i=n.xaxis,l=n.yaxis,c=i._length,u=l._length,f=!!e.xr1,h=!!e.yr1,p=[];if(f){var d=a.simpleMap(e.xr0,i.r2l),g=a.simpleMap(e.xr1,i.r2l),m=d[1]-d[0],v=g[1]-g[0];p[0]=(d[0]*(1-r)+r*g[0]-d[0])/(d[1]-d[0])*c,p[2]=c*(1-r+r*v/m),i.range[0]=i.l2r(d[0]*(1-r)+r*g[0]),i.range[1]=i.l2r(d[1]*(1-r)+r*g[1])}else p[0]=0,p[2]=c;if(h){var y=a.simpleMap(e.yr0,l.r2l),x=a.simpleMap(e.yr1,l.r2l),b=y[1]-y[0],_=x[1]-x[0];p[1]=(y[1]*(1-r)+r*x[1]-y[1])/(y[0]-y[1])*u,p[3]=u*(1-r+r*_/b),l.range[0]=i.l2r(y[0]*(1-r)+r*x[0]),l.range[1]=l.l2r(y[1]*(1-r)+r*x[1])}else p[1]=0,p[3]=u;s.drawOne(t,i,{skipTitle:!0}),s.drawOne(t,l,{skipTitle:!0}),s.redrawComponents(t,[i._id,l._id]);var w=f?c/p[2]:1,T=h?u/p[3]:1,k=f?p[0]:0,M=h?p[1]:0,A=f?p[0]/p[2]*c:0,S=h?p[1]/p[3]*u:0,E=i._offset-A,C=l._offset-S;n.clipRect.call(o.setTranslate,k,M).call(o.setScale,1/w,1/T),n.plot.call(o.setTranslate,E,C).call(o.setScale,w,T),o.setPointGroupScale(n.zoomScalePts,1/w,1/T),o.setTextPointsScale(n.zoomScaleTxt,1/w,1/T)}s.redrawComponents(t)}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./axes&quot;:828,d3:169}],853:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;).traceIs,i=t(&quot;./axis_autotype&quot;);function a(t){return{v:&quot;x&quot;,h:&quot;y&quot;}[t.orientation||&quot;v&quot;]}function o(t,e){var r=a(t),i=n(t,&quot;box-violin&quot;),o=n(t._fullInput||{},&quot;candlestick&quot;);return i&amp;&amp;!o&amp;&amp;e===r&amp;&amp;void 0===t[r]&amp;&amp;void 0===t[r+&quot;0&quot;]}e.exports=function(t,e,r,s){r(&quot;autotypenumbers&quot;,s.autotypenumbersDflt),&quot;-&quot;===r(&quot;type&quot;,(s.splomStash||{}).type)&amp;&amp;(!function(t,e){if(&quot;-&quot;!==t.type)return;var r,s=t._id,l=s.charAt(0);-1!==s.indexOf(&quot;scene&quot;)&amp;&amp;(s=l);var c=function(t,e,r){for(var n=0;n&lt;t.length;n++){var i=t[n];if(&quot;splom&quot;===i.type&amp;&amp;i._length&gt;0&amp;&amp;(i[&quot;_&quot;+r+&quot;axes&quot;]||{})[e])return i;if((i[r+&quot;axis&quot;]||r)===e){if(o(i,r))return i;if((i[r]||[]).length||i[r+&quot;0&quot;])return i}}}(e,s,l);if(!c)return;if(&quot;histogram&quot;===c.type&amp;&amp;l==={v:&quot;y&quot;,h:&quot;x&quot;}[c.orientation||&quot;v&quot;])return void(t.type=&quot;linear&quot;);var u=l+&quot;calendar&quot;,f=c[u],h={noMultiCategory:!n(c,&quot;cartesian&quot;)||n(c,&quot;noMultiCategory&quot;)};&quot;box&quot;===c.type&amp;&amp;c._hasPreCompStats&amp;&amp;l==={h:&quot;x&quot;,v:&quot;y&quot;}[c.orientation||&quot;v&quot;]&amp;&amp;(h.noMultiCategory=!0);if(h.autotypenumbers=t.autotypenumbers,o(c,l)){var p=a(c),d=[];for(r=0;r&lt;e.length;r++){var g=e[r];n(g,&quot;box-violin&quot;)&amp;&amp;(g[l+&quot;axis&quot;]||l)===s&amp;&amp;(void 0!==g[p]?d.push(g[p][0]):void 0!==g.name?d.push(g.name):d.push(&quot;text&quot;),g[u]!==f&amp;&amp;(f=void 0))}t.type=i(d,f,h)}else if(&quot;splom&quot;===c.type){var m=c.dimensions[c._axesDim[s]];m.visible&amp;&amp;(t.type=i(m.values,f,h))}else t.type=i(c[l]||[c[l+&quot;0&quot;]],f,h)}(e,s.data),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:t.type=e.type)}},{&quot;../../registry&quot;:911,&quot;./axis_autotype&quot;:829}],854:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;);function a(t,e,r){var n,a,o,s=!1;if(&quot;data&quot;===e.type)n=t._fullData[null!==e.traces?e.traces[0]:0];else{if(&quot;layout&quot;!==e.type)return!1;n=t._fullLayout}return a=i.nestedProperty(n,e.prop).get(),(o=r[e.type]=r[e.type]||{}).hasOwnProperty(e.prop)&amp;&amp;o[e.prop]!==a&amp;&amp;(s=!0),o[e.prop]=a,{changed:s,value:a}}function o(t,e){var r=[],n=e[0],a={};if(&quot;string&quot;==typeof n)a[n]=e[1];else{if(!i.isPlainObject(n))return r;a=n}return l(a,(function(t,e,n){r.push({type:&quot;layout&quot;,prop:t,value:n})}),&quot;&quot;,0),r}function s(t,e){var r,n,a,o,s=[];if(n=e[0],a=e[1],r=e[2],o={},&quot;string&quot;==typeof n)o[n]=a;else{if(!i.isPlainObject(n))return s;o=n,void 0===r&amp;&amp;(r=a)}return void 0===r&amp;&amp;(r=null),l(o,(function(e,n,i){var a,o;if(Array.isArray(i)){o=i.slice();var l=Math.min(o.length,t.data.length);r&amp;&amp;(l=Math.min(l,r.length)),a=[];for(var c=0;c&lt;l;c++)a[c]=r?r[c]:c}else o=i,a=r?r.slice():null;if(null===a)Array.isArray(o)&amp;&amp;(o=o[0]);else if(Array.isArray(a)){if(!Array.isArray(o)){var u=o;o=[];for(var f=0;f&lt;a.length;f++)o[f]=u}o.length=Math.min(a.length,o.length)}s.push({type:&quot;data&quot;,prop:e,traces:a,value:o})}),&quot;&quot;,0),s}function l(t,e,r,n){Object.keys(t).forEach((function(a){var o=t[a];if(&quot;_&quot;!==a[0]){var s=r+(n&gt;0?&quot;.&quot;:&quot;&quot;)+a;i.isPlainObject(o)?l(o,e,s,n+1):e(s,a,o)}}))}r.manageCommandObserver=function(t,e,n,o){var s={},l=!0;e&amp;&amp;e._commandObserver&amp;&amp;(s=e._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var c=r.hasSimpleAPICommandBindings(t,n,s.lookupTable);if(e&amp;&amp;e._commandObserver){if(c)return s;if(e._commandObserver.remove)return e._commandObserver.remove(),e._commandObserver=null,s}if(c){a(t,c,s.cache),s.check=function(){if(l){var e=a(t,c,s.cache);return e.changed&amp;&amp;o&amp;&amp;void 0!==s.lookupTable[e.value]&amp;&amp;(s.disable(),Promise.resolve(o({value:e.value,type:c.type,prop:c.prop,traces:c.traces,index:s.lookupTable[e.value]})).then(s.enable,s.enable)),e.changed}};for(var u=[&quot;plotly_relayout&quot;,&quot;plotly_redraw&quot;,&quot;plotly_restyle&quot;,&quot;plotly_update&quot;,&quot;plotly_animatingframe&quot;,&quot;plotly_afterplot&quot;],f=0;f&lt;u.length;f++)t._internalOn(u[f],s.check);s.remove=function(){for(var e=0;e&lt;u.length;e++)t._removeInternalListener(u[e],s.check)}}else i.log(&quot;Unable to automatically bind plot updates to API command&quot;),s.lookupTable={},s.remove=function(){};return s.disable=function(){l=!1},s.enable=function(){l=!0},e&amp;&amp;(e._commandObserver=s),s},r.hasSimpleAPICommandBindings=function(t,e,n){var i,a,o=e.length;for(i=0;i&lt;o;i++){var s,l=e[i],c=l.method,u=l.args;if(Array.isArray(u)||(u=[]),!c)return!1;var f=r.computeAPICommandBindings(t,c,u);if(1!==f.length)return!1;if(a){if((s=f[0]).type!==a.type)return!1;if(s.prop!==a.prop)return!1;if(Array.isArray(a.traces)){if(!Array.isArray(s.traces))return!1;s.traces.sort();for(var h=0;h&lt;a.traces.length;h++)if(a.traces[h]!==s.traces[h])return!1}else if(s.prop!==a.prop)return!1}else a=f[0],Array.isArray(a.traces)&amp;&amp;a.traces.sort();var p=(s=f[0]).value;if(Array.isArray(p)){if(1!==p.length)return!1;p=p[0]}n&amp;&amp;(n[p]=i)}return a},r.executeAPICommand=function(t,e,r){if(&quot;skip&quot;===e)return Promise.resolve();var a=n.apiMethodRegistry[e],o=[t];Array.isArray(r)||(r=[]);for(var s=0;s&lt;r.length;s++)o.push(r[s]);return a.apply(null,o).catch((function(t){return i.warn(&quot;API call to Plotly.&quot;+e+&quot; rejected.&quot;,t),Promise.reject(t)}))},r.computeAPICommandBindings=function(t,e,r){var n;switch(Array.isArray(r)||(r=[]),e){case&quot;restyle&quot;:n=s(t,r);break;case&quot;relayout&quot;:n=o(t,r);break;case&quot;update&quot;:n=s(t,[r[0],r[2]]).concat(o(t,[r[1]]));break;case&quot;animate&quot;:n=function(t,e){return Array.isArray(e[0])&amp;&amp;1===e[0].length&amp;&amp;-1!==[&quot;string&quot;,&quot;number&quot;].indexOf(typeof e[0][0])?[{type:&quot;layout&quot;,prop:&quot;_currentFrame&quot;,value:e[0][0].toString()}]:[]}(0,r);break;default:n=[]}return n}},{&quot;../lib&quot;:778,&quot;../registry&quot;:911}],855:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/extend&quot;).extendFlat;r.attributes=function(t,e){e=e||{};var r={valType:&quot;info_array&quot;,editType:(t=t||{}).editType,items:[{valType:&quot;number&quot;,min:0,max:1,editType:t.editType},{valType:&quot;number&quot;,min:0,max:1,editType:t.editType}],dflt:[0,1]},i=(t.name&amp;&amp;t.name,t.trace,e.description&amp;&amp;e.description,{x:n({},r,{}),y:n({},r,{}),editType:t.editType});return t.noGridCell||(i.row={valType:&quot;integer&quot;,min:0,dflt:0,editType:t.editType},i.column={valType:&quot;integer&quot;,min:0,dflt:0,editType:t.editType}),i},r.defaults=function(t,e,r,n){var i=n&amp;&amp;n.x||[0,1],a=n&amp;&amp;n.y||[0,1],o=e.grid;if(o){var s=r(&quot;domain.column&quot;);void 0!==s&amp;&amp;(s&lt;o.columns?i=o._domains.x[s]:delete t.domain.column);var l=r(&quot;domain.row&quot;);void 0!==l&amp;&amp;(l&lt;o.rows?a=o._domains.y[l]:delete t.domain.row)}var c=r(&quot;domain.x&quot;,i),u=r(&quot;domain.y&quot;,a);c[0]&lt;c[1]||(t.domain.x=i.slice()),u[0]&lt;u[1]||(t.domain.y=a.slice())}},{&quot;../lib/extend&quot;:768}],856:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.editType,r=t.colorEditType;void 0===r&amp;&amp;(r=e);var n={family:{valType:&quot;string&quot;,noBlank:!0,strict:!0,editType:e},size:{valType:&quot;number&quot;,min:1,editType:e},color:{valType:&quot;color&quot;,editType:r},editType:e};return t.arrayOk&amp;&amp;(n.family.arrayOk=!0,n.size.arrayOk=!0,n.color.arrayOk=!0),n}},{}],857:[function(t,e,r){&quot;use strict&quot;;e.exports={_isLinkedToArray:&quot;frames_entry&quot;,group:{valType:&quot;string&quot;},name:{valType:&quot;string&quot;},traces:{valType:&quot;any&quot;},baseframe:{valType:&quot;string&quot;},data:{valType:&quot;any&quot;},layout:{valType:&quot;any&quot;}}},{}],858:[function(t,e,r){&quot;use strict&quot;;r.projNames={equirectangular:&quot;equirectangular&quot;,mercator:&quot;mercator&quot;,orthographic:&quot;orthographic&quot;,&quot;natural earth&quot;:&quot;naturalEarth&quot;,kavrayskiy7:&quot;kavrayskiy7&quot;,miller:&quot;miller&quot;,robinson:&quot;robinson&quot;,eckert4:&quot;eckert4&quot;,&quot;azimuthal equal area&quot;:&quot;azimuthalEqualArea&quot;,&quot;azimuthal equidistant&quot;:&quot;azimuthalEquidistant&quot;,&quot;conic equal area&quot;:&quot;conicEqualArea&quot;,&quot;conic conformal&quot;:&quot;conicConformal&quot;,&quot;conic equidistant&quot;:&quot;conicEquidistant&quot;,gnomonic:&quot;gnomonic&quot;,stereographic:&quot;stereographic&quot;,mollweide:&quot;mollweide&quot;,hammer:&quot;hammer&quot;,&quot;transverse mercator&quot;:&quot;transverseMercator&quot;,&quot;albers usa&quot;:&quot;albersUsa&quot;,&quot;winkel tripel&quot;:&quot;winkel3&quot;,aitoff:&quot;aitoff&quot;,sinusoidal:&quot;sinusoidal&quot;},r.axesNames=[&quot;lonaxis&quot;,&quot;lataxis&quot;],r.lonaxisSpan={orthographic:180,&quot;azimuthal equal area&quot;:360,&quot;azimuthal equidistant&quot;:360,&quot;conic conformal&quot;:180,gnomonic:160,stereographic:180,&quot;transverse mercator&quot;:180,&quot;*&quot;:360},r.lataxisSpan={&quot;conic conformal&quot;:150,stereographic:179.5,&quot;*&quot;:180},r.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:&quot;equirectangular&quot;,projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:&quot;albers usa&quot;},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:&quot;conic conformal&quot;,projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:&quot;mercator&quot;,projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:&quot;mercator&quot;,projRotate:[0,0,0]},&quot;north america&quot;:{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:&quot;conic conformal&quot;,projRotate:[-100,0,0],projParallels:[29.5,45.5]},&quot;south america&quot;:{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:&quot;mercator&quot;,projRotate:[0,0,0]}},r.clipPad=.001,r.precision=.1,r.landColor=&quot;#F0DC82&quot;,r.waterColor=&quot;#3399FF&quot;,r.locationmodeToLayer={&quot;ISO-3&quot;:&quot;countries&quot;,&quot;USA-states&quot;:&quot;subunits&quot;,&quot;country names&quot;:&quot;countries&quot;},r.sphereSVG={type:&quot;Sphere&quot;},r.fillLayers={ocean:1,land:1,lakes:1},r.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},r.layers=[&quot;bg&quot;,&quot;ocean&quot;,&quot;land&quot;,&quot;lakes&quot;,&quot;subunits&quot;,&quot;countries&quot;,&quot;coastlines&quot;,&quot;rivers&quot;,&quot;lataxis&quot;,&quot;lonaxis&quot;,&quot;frame&quot;,&quot;backplot&quot;,&quot;frontplot&quot;],r.layersForChoropleth=[&quot;bg&quot;,&quot;ocean&quot;,&quot;land&quot;,&quot;subunits&quot;,&quot;countries&quot;,&quot;coastlines&quot;,&quot;lataxis&quot;,&quot;lonaxis&quot;,&quot;frame&quot;,&quot;backplot&quot;,&quot;rivers&quot;,&quot;lakes&quot;,&quot;frontplot&quot;],r.layerNameToAdjective={ocean:&quot;ocean&quot;,land:&quot;land&quot;,lakes:&quot;lake&quot;,subunits:&quot;subunit&quot;,countries:&quot;country&quot;,coastlines:&quot;coastline&quot;,rivers:&quot;river&quot;,frame:&quot;frame&quot;}},{}],859:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.strTranslate,s=t(&quot;../../components/color&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../components/fx&quot;),u=t(&quot;../plots&quot;),f=t(&quot;../cartesian/axes&quot;),h=t(&quot;../cartesian/autorange&quot;).getAutoRange,p=t(&quot;../../components/dragelement&quot;),d=t(&quot;../cartesian/select&quot;).prepSelect,g=t(&quot;../cartesian/select&quot;).clearSelect,m=t(&quot;../cartesian/select&quot;).selectOnClick,v=t(&quot;./zoom&quot;),y=t(&quot;./constants&quot;),x=t(&quot;../../lib/geo_location_utils&quot;),b=t(&quot;../../lib/topojson_utils&quot;),_=t(&quot;topojson-client&quot;).feature;function w(t){this.id=t.id,this.graphDiv=t.graphDiv,this.container=t.container,this.topojsonURL=t.topojsonURL,this.isStatic=t.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}t(&quot;./projections&quot;)(n);var T=w.prototype;function k(t,e){var r=y.clipPad,n=t[0]+r,i=t[1]-r,a=e[0]+r,o=e[1]-r;n&gt;0&amp;&amp;i&lt;0&amp;&amp;(i+=360);var s=(i-n)/4;return{type:&quot;Polygon&quot;,coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}e.exports=function(t){return new w(t)},T.plot=function(t,e,r){var n=this,i=e[this.id],a=[],o=!1;for(var s in y.layerNameToAdjective)if(&quot;frame&quot;!==s&amp;&amp;i[&quot;show&quot;+s]){o=!0;break}for(var l=0;l&lt;t.length;l++)if(t[0][0].trace.locationmode){o=!0;break}if(o){var c=b.getTopojsonName(i);null!==n.topojson&amp;&amp;c===n.topojsonName||(n.topojsonName=c,void 0===PlotlyGeoAssets.topojson[n.topojsonName]&amp;&amp;a.push(n.fetchTopojson()))}a=a.concat(x.fetchTraceGeoData(t)),r.push(new Promise((function(r,i){Promise.all(a).then((function(){n.topojson=PlotlyGeoAssets.topojson[n.topojsonName],n.update(t,e),r()})).catch(i)})))},T.fetchTopojson=function(){var t=this,e=b.getTopojsonPath(t.topojsonURL,t.topojsonName);return new Promise((function(r,i){n.json(e,(function(n,a){if(n)return 404===n.status?i(new Error([&quot;plotly.js could not find topojson file at&quot;,e,&quot;.&quot;,&quot;Make sure the *topojsonURL* plot config option&quot;,&quot;is set properly.&quot;].join(&quot; &quot;))):i(new Error([&quot;unexpected error while fetching topojson file at&quot;,e].join(&quot; &quot;)));PlotlyGeoAssets.topojson[t.topojsonName]=a,r()}))}))},T.update=function(t,e){var r=e[this.id];this.hasChoropleth=!1;for(var n=0;n&lt;t.length;n++){var i=t[n],a=i[0].trace;&quot;choropleth&quot;===a.type&amp;&amp;(this.hasChoropleth=!0),!0===a.visible&amp;&amp;a._length&gt;0&amp;&amp;a._module.calcGeoJSON(i,e)}if(!this.updateProjection(t,e)){this.viewInitial&amp;&amp;this.scope===r.scope||this.saveViewInitial(r),this.scope=r.scope,this.updateBaseLayers(e,r),this.updateDims(e,r),this.updateFx(e,r),u.generalUpdatePerTraceModule(this.graphDiv,this,t,r);var o=this.layers.frontplot.select(&quot;.scatterlayer&quot;);this.dataPoints.point=o.selectAll(&quot;.point&quot;),this.dataPoints.text=o.selectAll(&quot;text&quot;),this.dataPaths.line=o.selectAll(&quot;.js-line&quot;);var s=this.layers.backplot.select(&quot;.choroplethlayer&quot;);this.dataPaths.choropleth=s.selectAll(&quot;path&quot;),this.render()}},T.updateProjection=function(t,e){var r=this.graphDiv,o=e[this.id],s=e._size,l=o.domain,c=o.projection,u=o.lonaxis,f=o.lataxis,p=u._ax,d=f._ax,g=this.projection=function(t){for(var e=t.projection.type,r=n.geo[y.projNames[e]](),i=t._isClipped?y.lonaxisSpan[e]/2:null,a=[&quot;center&quot;,&quot;rotate&quot;,&quot;parallels&quot;,&quot;clipExtent&quot;],o=function(t){return t?r:[]},s=0;s&lt;a.length;s++){var l=a[s];&quot;function&quot;!=typeof r[l]&amp;&amp;(r[l]=o)}r.isLonLatOverEdges=function(t){if(null===r(t))return!0;if(i){var e=r.rotate();return n.geo.distance(t,[-e[0],-e[1]])&gt;i*Math.PI/180}return!1},r.getPath=function(){return n.geo.path().projection(r)},r.getBounds=function(t){return r.getPath().bounds(t)},r.fitExtent=function(t,e){var n=t[1][0]-t[0][0],i=t[1][1]-t[0][1],a=r.clipExtent&amp;&amp;r.clipExtent();r.scale(150).translate([0,0]),a&amp;&amp;r.clipExtent(null);var o=r.getBounds(e),s=Math.min(n/(o[1][0]-o[0][0]),i/(o[1][1]-o[0][1])),l=+t[0][0]+(n-s*(o[1][0]+o[0][0]))/2,c=+t[0][1]+(i-s*(o[1][1]+o[0][1]))/2;return a&amp;&amp;r.clipExtent(a),r.scale(150*s).translate([l,c])},r.precision(y.precision),i&amp;&amp;r.clipAngle(i-y.clipPad);return r}(o),m=[[s.l+s.w*l.x[0],s.t+s.h*(1-l.y[1])],[s.l+s.w*l.x[1],s.t+s.h*(1-l.y[0])]],v=o.center||{},x=c.rotation||{},b=u.range||[],_=f.range||[];if(o.fitbounds){p._length=m[1][0]-m[0][0],d._length=m[1][1]-m[0][1],p.range=h(r,p),d.range=h(r,d);var w=(p.range[0]+p.range[1])/2,T=(d.range[0]+d.range[1])/2;if(o._isScoped)v={lon:w,lat:T};else if(o._isClipped){v={lon:w,lat:T},x={lon:w,lat:T,roll:x.roll};var M=c.type,A=y.lonaxisSpan[M]/2||180,S=y.lataxisSpan[M]/2||90;b=[w-A,w+A],_=[T-S,T+S]}else v={lon:w,lat:T},x={lon:w,lat:x.lat,roll:x.roll}}g.center([v.lon-x.lon,v.lat-x.lat]).rotate([-x.lon,-x.lat,x.roll]).parallels(c.parallels);var E=k(b,_);g.fitExtent(m,E);var C=this.bounds=g.getBounds(E),L=this.fitScale=g.scale(),I=g.translate();if(!isFinite(C[0][0])||!isFinite(C[0][1])||!isFinite(C[1][0])||!isFinite(C[1][1])||isNaN(I[0])||isNaN(I[0])){for(var P=[&quot;fitbounds&quot;,&quot;projection.rotation&quot;,&quot;center&quot;,&quot;lonaxis.range&quot;,&quot;lataxis.range&quot;],z=&quot;Invalid geo settings, relayout'ing to default view.&quot;,O={},D=0;D&lt;P.length;D++)O[this.id+&quot;.&quot;+P[D]]=null;return this.viewInitial=null,a.warn(z),r._promises.push(i.call(&quot;relayout&quot;,r,O)),z}if(o.fitbounds){var R=g.getBounds(k(p.range,d.range)),F=Math.min((C[1][0]-C[0][0])/(R[1][0]-R[0][0]),(C[1][1]-C[0][1])/(R[1][1]-R[0][1]));isFinite(F)?g.scale(F*L):a.warn(&quot;Something went wrong during&quot;+this.id+&quot;fitbounds computations.&quot;)}else g.scale(c.scale*L);var B=this.midPt=[(C[0][0]+C[1][0])/2,(C[0][1]+C[1][1])/2];if(g.translate([I[0]+(B[0]-I[0]),I[1]+(B[1]-I[1])]).clipExtent(C),o._isAlbersUsa){var N=g([v.lon,v.lat]),j=g.translate();g.translate([j[0]-(N[0]-j[0]),j[1]-(N[1]-j[1])])}},T.updateBaseLayers=function(t,e){var r=this,i=r.topojson,a=r.layers,o=r.basePaths;function c(t){return&quot;lonaxis&quot;===t||&quot;lataxis&quot;===t}function u(t){return Boolean(y.lineLayers[t])}function h(t){return Boolean(y.fillLayers[t])}var p=(this.hasChoropleth?y.layersForChoropleth:y.layers).filter((function(t){return u(t)||h(t)?e[&quot;show&quot;+t]:!c(t)||e[t].showgrid})),d=r.framework.selectAll(&quot;.layer&quot;).data(p,String);d.exit().each((function(t){delete a[t],delete o[t],n.select(this).remove()})),d.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;layer &quot;+t})).each((function(t){var e=a[t]=n.select(this);&quot;bg&quot;===t?r.bgRect=e.append(&quot;rect&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;):c(t)?o[t]=e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;):&quot;backplot&quot;===t?e.append(&quot;g&quot;).classed(&quot;choroplethlayer&quot;,!0):&quot;frontplot&quot;===t?e.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0):u(t)?o[t]=e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;).style(&quot;stroke-miterlimit&quot;,2):h(t)&amp;&amp;(o[t]=e.append(&quot;path&quot;).style(&quot;stroke&quot;,&quot;none&quot;))})),d.order(),d.each((function(r){var n=o[r],a=y.layerNameToAdjective[r];&quot;frame&quot;===r?n.datum(y.sphereSVG):u(r)||h(r)?n.datum(_(i,i.objects[r])):c(r)&amp;&amp;n.datum(function(t,e,r){var n,i,a,o=e[t],s=y.scopeDefaults[e.scope];&quot;lonaxis&quot;===t?(n=s.lonaxisRange,i=s.lataxisRange,a=function(t,e){return[t,e]}):&quot;lataxis&quot;===t&amp;&amp;(n=s.lataxisRange,i=s.lonaxisRange,a=function(t,e){return[e,t]});var l={type:&quot;linear&quot;,range:[n[0],n[1]-1e-6],tick0:o.tick0,dtick:o.dtick};f.setConvert(l,r);var c=f.calcTicks(l);e.isScoped||&quot;lonaxis&quot;!==t||c.pop();for(var u=c.length,h=new Array(u),p=0;p&lt;u;p++)for(var d=c[p].x,g=h[p]=[],m=i[0];m&lt;i[1]+2.5;m+=2.5)g.push(a(d,m));return{type:&quot;MultiLineString&quot;,coordinates:h}}(r,e,t)).call(s.stroke,e[r].gridcolor).call(l.dashLine,&quot;&quot;,e[r].gridwidth),u(r)?n.call(s.stroke,e[a+&quot;color&quot;]).call(l.dashLine,&quot;&quot;,e[a+&quot;width&quot;]):h(r)&amp;&amp;n.call(s.fill,e[a+&quot;color&quot;])}))},T.updateDims=function(t,e){var r=this.bounds,n=(e.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,c=r[1][1]-a+n;l.setRect(this.clipRect,i,a,o,c),this.bgRect.call(l.setRect,i,a,o,c).call(s.fill,e.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=c},T.updateFx=function(t,e){var r=this,a=r.graphDiv,o=r.bgRect,s=t.dragmode,l=t.clickmode;if(!r.isStatic){var u;&quot;select&quot;===s?u=function(t,e){(t.range={})[r.id]=[h([e.xmin,e.ymin]),h([e.xmax,e.ymax])]}:&quot;lasso&quot;===s&amp;&amp;(u=function(t,e,n){(t.lassoPoints={})[r.id]=n.filtered.map(h)});var f={element:r.bgRect.node(),gd:a,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(t){2===t&amp;&amp;g(a)}};&quot;pan&quot;===s?(o.node().onmousedown=null,o.call(v(r,e)),o.on(&quot;dblclick.zoom&quot;,(function(){var t=r.viewInitial,e={};for(var n in t)e[r.id+&quot;.&quot;+n]=t[n];i.call(&quot;_guiRelayout&quot;,a,e),a.emit(&quot;plotly_doubleclick&quot;,null)})),a._context._scrollZoom.geo||o.on(&quot;wheel.zoom&quot;,null)):&quot;select&quot;!==s&amp;&amp;&quot;lasso&quot;!==s||(o.on(&quot;.zoom&quot;,null),f.prepFn=function(t,e,r){d(t,e,r,f,s)},p.init(f)),o.on(&quot;mousemove&quot;,(function(){var t=r.projection.invert(n.mouse(this));if(!t||isNaN(t[0])||isNaN(t[1]))return p.unhover(a,n.event);r.xaxis.p2c=function(){return t[0]},r.yaxis.p2c=function(){return t[1]},c.hover(a,n.event,r.id)})),o.on(&quot;mouseout&quot;,(function(){a._dragging||p.unhover(a,n.event)})),o.on(&quot;click&quot;,(function(){&quot;select&quot;!==s&amp;&amp;&quot;lasso&quot;!==s&amp;&amp;(l.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;m(n.event,a,[r.xaxis],[r.yaxis],r.id,f),l.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;c.click(a,n.event))}))}function h(t){return r.projection.invert([t[0]+r.xaxis._offset,t[1]+r.yaxis._offset])}},T.makeFramework=function(){var t=this,e=t.graphDiv,r=e._fullLayout,i=&quot;clip&quot;+r._uid+t.id;t.clipDef=r._clips.append(&quot;clipPath&quot;).attr(&quot;id&quot;,i),t.clipRect=t.clipDef.append(&quot;rect&quot;),t.framework=n.select(t.container).append(&quot;g&quot;).attr(&quot;class&quot;,&quot;geo &quot;+t.id).call(l.setClipUrl,i,e),t.project=function(e){var r=t.projection(e);return r?[r[0]-t.xaxis._offset,r[1]-t.yaxis._offset]:[null,null]},t.xaxis={_id:&quot;x&quot;,c2p:function(e){return t.project(e)[0]}},t.yaxis={_id:&quot;y&quot;,c2p:function(e){return t.project(e)[1]}},t.mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},f.setConvert(t.mockAxis,r)},T.saveViewInitial=function(t){var e,r=t.center||{},n=t.projection,i=n.rotation||{};this.viewInitial={fitbounds:t.fitbounds,&quot;projection.scale&quot;:n.scale},e=t._isScoped?{&quot;center.lon&quot;:r.lon,&quot;center.lat&quot;:r.lat}:t._isClipped?{&quot;projection.rotation.lon&quot;:i.lon,&quot;projection.rotation.lat&quot;:i.lat}:{&quot;center.lon&quot;:r.lon,&quot;center.lat&quot;:r.lat,&quot;projection.rotation.lon&quot;:i.lon},a.extendFlat(this.viewInitial,e)},T.render=function(){var t,e=this.projection,r=e.getPath();function n(t){var r=e(t.lonlat);return r?o(r[0],r[1]):null}function i(t){return e.isLonLatOverEdges(t.lonlat)?&quot;none&quot;:null}for(t in this.basePaths)this.basePaths[t].attr(&quot;d&quot;,r);for(t in this.dataPaths)this.dataPaths[t].attr(&quot;d&quot;,(function(t){return r(t.geojson)}));for(t in this.dataPoints)this.dataPoints[t].attr(&quot;display&quot;,i).attr(&quot;transform&quot;,n)}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/topojson_utils&quot;:806,&quot;../../registry&quot;:911,&quot;../cartesian/autorange&quot;:827,&quot;../cartesian/axes&quot;:828,&quot;../cartesian/select&quot;:847,&quot;../plots&quot;:891,&quot;./constants&quot;:858,&quot;./projections&quot;:863,&quot;./zoom&quot;:864,d3:169,&quot;topojson-client&quot;:579}],860:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,i=t(&quot;../../lib&quot;).counterRegex,a=t(&quot;./geo&quot;),o=&quot;geo&quot;,s=i(o),l={};l.geo={valType:&quot;subplotid&quot;,dflt:o,editType:&quot;calc&quot;},e.exports={attr:o,name:o,idRoot:o,idRegex:s,attrRegex:s,attributes:l,layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots.geo,s=0;s&lt;i.length;s++){var l=i[s],c=n(r,o,l),u=e[l]._subplot;u||(u=a({id:l,graphDiv:t,container:e._geolayer.node(),topojsonURL:t._context.topojsonURL,staticPlot:t._context.staticPlot}),e[l]._subplot=u),u.plot(c,e,t._promises)}},updateFx:function(t){for(var e=t._fullLayout,r=e._subplots.geo,n=0;n&lt;r.length;n++){var i=e[r[n]];i._subplot.updateFx(e,i)}},clean:function(t,e,r,n){for(var i=n._subplots.geo||[],a=0;a&lt;i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&amp;&amp;s&amp;&amp;(s.framework.remove(),s.clipDef.remove())}}}},{&quot;../../lib&quot;:778,&quot;../../plots/get_data&quot;:865,&quot;./geo&quot;:859,&quot;./layout_attributes&quot;:861,&quot;./layout_defaults&quot;:862}],861:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../domain&quot;).attributes,a=t(&quot;./constants&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s={range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},showgrid:{valType:&quot;boolean&quot;,dflt:!1},tick0:{valType:&quot;number&quot;,dflt:0},dtick:{valType:&quot;number&quot;},gridcolor:{valType:&quot;color&quot;,dflt:n.lightLine},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1}};(e.exports=o({domain:i({name:&quot;geo&quot;},{}),fitbounds:{valType:&quot;enumerated&quot;,values:[!1,&quot;locations&quot;,&quot;geojson&quot;],dflt:!1,editType:&quot;plot&quot;},resolution:{valType:&quot;enumerated&quot;,values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:&quot;enumerated&quot;,values:Object.keys(a.scopeDefaults),dflt:&quot;world&quot;},projection:{type:{valType:&quot;enumerated&quot;,values:Object.keys(a.projNames)},rotation:{lon:{valType:&quot;number&quot;},lat:{valType:&quot;number&quot;},roll:{valType:&quot;number&quot;}},parallels:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},scale:{valType:&quot;number&quot;,min:0,dflt:1}},center:{lon:{valType:&quot;number&quot;},lat:{valType:&quot;number&quot;}},visible:{valType:&quot;boolean&quot;,dflt:!0},showcoastlines:{valType:&quot;boolean&quot;},coastlinecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},coastlinewidth:{valType:&quot;number&quot;,min:0,dflt:1},showland:{valType:&quot;boolean&quot;,dflt:!1},landcolor:{valType:&quot;color&quot;,dflt:a.landColor},showocean:{valType:&quot;boolean&quot;,dflt:!1},oceancolor:{valType:&quot;color&quot;,dflt:a.waterColor},showlakes:{valType:&quot;boolean&quot;,dflt:!1},lakecolor:{valType:&quot;color&quot;,dflt:a.waterColor},showrivers:{valType:&quot;boolean&quot;,dflt:!1},rivercolor:{valType:&quot;color&quot;,dflt:a.waterColor},riverwidth:{valType:&quot;number&quot;,min:0,dflt:1},showcountries:{valType:&quot;boolean&quot;},countrycolor:{valType:&quot;color&quot;,dflt:n.defaultLine},countrywidth:{valType:&quot;number&quot;,min:0,dflt:1},showsubunits:{valType:&quot;boolean&quot;},subunitcolor:{valType:&quot;color&quot;,dflt:n.defaultLine},subunitwidth:{valType:&quot;number&quot;,min:0,dflt:1},showframe:{valType:&quot;boolean&quot;},framecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},framewidth:{valType:&quot;number&quot;,min:0,dflt:1},bgcolor:{valType:&quot;color&quot;,dflt:n.background},lonaxis:s,lataxis:s},&quot;plot&quot;,&quot;from-root&quot;)).uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../plot_api/edit_types&quot;:810,&quot;../domain&quot;:855,&quot;./constants&quot;:858}],862:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../subplot_defaults&quot;),a=t(&quot;../get_data&quot;).getSubplotData,o=t(&quot;./constants&quot;),s=t(&quot;./layout_attributes&quot;),l=o.axesNames;function c(t,e,r,i){var s=a(i.fullData,&quot;geo&quot;,i.id).map((function(t){return t._expandedIndex})),c=r(&quot;resolution&quot;),u=r(&quot;scope&quot;),f=o.scopeDefaults[u],h=r(&quot;projection.type&quot;,f.projType),p=e._isAlbersUsa=&quot;albers usa&quot;===h;p&amp;&amp;(u=e.scope=&quot;usa&quot;);var d=e._isScoped=&quot;world&quot;!==u,g=e._isConic=-1!==h.indexOf(&quot;conic&quot;),m=e._isClipped=!!o.lonaxisSpan[h];if(!1===t.visible){var v=n.extendDeep({},e._template);v.showcoastlines=!1,v.showcountries=!1,v.showframe=!1,v.showlakes=!1,v.showland=!1,v.showocean=!1,v.showrivers=!1,v.showsubunits=!1,v.lonaxis&amp;&amp;(v.lonaxis.showgrid=!1),v.lataxis&amp;&amp;(v.lataxis.showgrid=!1),e._template=v}for(var y=r(&quot;visible&quot;),x=0;x&lt;l.length;x++){var b,_=l[x],w=[30,10][x];if(d)b=f[_+&quot;Range&quot;];else{var T=o[_+&quot;Span&quot;],k=(T[h]||T[&quot;*&quot;])/2,M=r(&quot;projection.rotation.&quot;+_.substr(0,3),f.projRotate[x]);b=[M-k,M+k]}var A=r(_+&quot;.range&quot;,b);r(_+&quot;.tick0&quot;),r(_+&quot;.dtick&quot;,w),r(_+&quot;.showgrid&quot;,!!y&amp;&amp;void 0)&amp;&amp;(r(_+&quot;.gridcolor&quot;),r(_+&quot;.gridwidth&quot;)),e[_]._ax={type:&quot;linear&quot;,_id:_.slice(0,3),_traceIndices:s,setScale:n.identity,c2l:n.identity,r2l:n.identity,autorange:!0,range:A.slice(),_m:1,_input:{}}}var S=e.lonaxis.range,E=e.lataxis.range,C=S[0],L=S[1];C&gt;0&amp;&amp;L&lt;0&amp;&amp;(L+=360);var I,P,z,O=(C+L)/2;if(!p){var D=d?f.projRotate:[O,0,0];I=r(&quot;projection.rotation.lon&quot;,D[0]),r(&quot;projection.rotation.lat&quot;,D[1]),r(&quot;projection.rotation.roll&quot;,D[2]),r(&quot;showcoastlines&quot;,!d&amp;&amp;y)&amp;&amp;(r(&quot;coastlinecolor&quot;),r(&quot;coastlinewidth&quot;)),r(&quot;showocean&quot;,!!y&amp;&amp;void 0)&amp;&amp;r(&quot;oceancolor&quot;)}(p?(P=-96.6,z=38.7):(P=d?O:I,z=(E[0]+E[1])/2),r(&quot;center.lon&quot;,P),r(&quot;center.lat&quot;,z),g)&amp;&amp;r(&quot;projection.parallels&quot;,f.projParallels||[0,60]);r(&quot;projection.scale&quot;),r(&quot;showland&quot;,!!y&amp;&amp;void 0)&amp;&amp;r(&quot;landcolor&quot;),r(&quot;showlakes&quot;,!!y&amp;&amp;void 0)&amp;&amp;r(&quot;lakecolor&quot;),r(&quot;showrivers&quot;,!!y&amp;&amp;void 0)&amp;&amp;(r(&quot;rivercolor&quot;),r(&quot;riverwidth&quot;)),r(&quot;showcountries&quot;,d&amp;&amp;&quot;usa&quot;!==u&amp;&amp;y)&amp;&amp;(r(&quot;countrycolor&quot;),r(&quot;countrywidth&quot;)),(&quot;usa&quot;===u||&quot;north america&quot;===u&amp;&amp;50===c)&amp;&amp;(r(&quot;showsubunits&quot;,y),r(&quot;subunitcolor&quot;),r(&quot;subunitwidth&quot;)),d||r(&quot;showframe&quot;,y)&amp;&amp;(r(&quot;framecolor&quot;),r(&quot;framewidth&quot;)),r(&quot;bgcolor&quot;),r(&quot;fitbounds&quot;)&amp;&amp;(delete e.projection.scale,d?(delete e.center.lon,delete e.center.lat):m?(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon,delete e.projection.rotation.lat,delete e.lonaxis.range,delete e.lataxis.range):(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon))}e.exports=function(t,e,r){i(t,e,r,{type:&quot;geo&quot;,attributes:s,handleDefaults:c,fullData:r,partition:&quot;y&quot;})}},{&quot;../../lib&quot;:778,&quot;../get_data&quot;:865,&quot;../subplot_defaults&quot;:905,&quot;./constants&quot;:858,&quot;./layout_attributes&quot;:861}],863:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){function e(t,e){return{type:&quot;Feature&quot;,id:t.id,properties:t.properties,geometry:r(t.geometry,e)}}function r(e,n){if(!e)return null;if(&quot;GeometryCollection&quot;===e.type)return{type:&quot;GeometryCollection&quot;,geometries:object.geometries.map((function(t){return r(t,n)}))};if(!c.hasOwnProperty(e.type))return null;var i=c[e.type];return t.geo.stream(e,n(i)),i.result()}t.geo.project=function(t,e){var i=e.stream;if(!i)throw new Error(&quot;not yet supported&quot;);return(t&amp;&amp;n.hasOwnProperty(t.type)?n[t.type]:r)(t,i)};var n={Feature:e,FeatureCollection:function(t,r){return{type:&quot;FeatureCollection&quot;,features:t.features.map((function(t){return e(t,r)}))}}},i=[],a=[],o={point:function(t,e){i.push([t,e])},result:function(){var t=i.length?i.length&lt;2?{type:&quot;Point&quot;,coordinates:i[0]}:{type:&quot;MultiPoint&quot;,coordinates:i}:null;return i=[],t}},s={lineStart:u,point:function(t,e){i.push([t,e])},lineEnd:function(){i.length&amp;&amp;(a.push(i),i=[])},result:function(){var t=a.length?a.length&lt;2?{type:&quot;LineString&quot;,coordinates:a[0]}:{type:&quot;MultiLineString&quot;,coordinates:a}:null;return a=[],t}},l={polygonStart:u,lineStart:u,point:function(t,e){i.push([t,e])},lineEnd:function(){var t=i.length;if(t){do{i.push(i[0].slice())}while(++t&lt;4);a.push(i),i=[]}},polygonEnd:u,result:function(){if(!a.length)return null;var t=[],e=[];return a.forEach((function(r){!function(t){if((e=t.length)&lt;4)return!1;var e,r=0,n=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];for(;++r&lt;e;)n+=t[r-1][1]*t[r][0]-t[r-1][0]*t[r][1];return n&lt;=0}(r)?e.push(r):t.push([r])})),e.forEach((function(e){var r=e[0];t.some((function(t){if(function(t,e){for(var r=e[0],n=e[1],i=!1,a=0,o=t.length,s=o-1;a&lt;o;s=a++){var l=t[a],c=l[0],u=l[1],f=t[s],h=f[0],p=f[1];u&gt;n^p&gt;n&amp;&amp;r&lt;(h-c)*(n-u)/(p-u)+c&amp;&amp;(i=!i)}return i}(t[0],r))return t.push(e),!0}))||t.push([e])})),a=[],t.length?t.length&gt;1?{type:&quot;MultiPolygon&quot;,coordinates:t}:{type:&quot;Polygon&quot;,coordinates:t[0]}:null}},c={Point:o,MultiPoint:o,LineString:s,MultiLineString:s,Polygon:l,MultiPolygon:l,Sphere:l};function u(){}var f=1e-6,h=Math.PI,p=h/2,d=(Math.sqrt(h),h/180),g=180/h;function m(t){return t&gt;1?p:t&lt;-1?-p:Math.asin(t)}function v(t){return t&gt;1?0:t&lt;-1?h:Math.acos(t)}var y=t.geo.projection,x=t.geo.projectionMutator;function b(t,e){var r=(2+p)*Math.sin(e);e/=2;for(var n=0,i=1/0;n&lt;10&amp;&amp;Math.abs(i)&gt;f;n++){var a=Math.cos(e);e-=i=(e+Math.sin(e)*(a+2)-r)/(2*a*(1+a))}return[2/Math.sqrt(h*(4+h))*t*(1+Math.cos(e)),2*Math.sqrt(h/(4+h))*Math.sin(e)]}t.geo.interrupt=function(e){var r,n=[[[[-h,0],[0,p],[h,0]]],[[[-h,0],[0,-p],[h,0]]]];function i(t,r){for(var i=r&lt;0?-1:1,a=n[+(r&lt;0)],o=0,s=a.length-1;o&lt;s&amp;&amp;t&gt;a[o][2][0];++o);var l=e(t-a[o][1][0],r);return l[0]+=e(a[o][1][0],i*r&gt;i*a[o][0][1]?a[o][0][1]:r)[0],l}function a(){r=n.map((function(t){return t.map((function(t){var r,n=e(t[0][0],t[0][1])[0],i=e(t[2][0],t[2][1])[0],a=e(t[1][0],t[0][1])[1],o=e(t[1][0],t[1][1])[1];return a&gt;o&amp;&amp;(r=a,a=o,o=r),[[n,a],[i,o]]}))}))}e.invert&amp;&amp;(i.invert=function(t,a){for(var o=r[+(a&lt;0)],s=n[+(a&lt;0)],l=0,u=o.length;l&lt;u;++l){var f=o[l];if(f[0][0]&lt;=t&amp;&amp;t&lt;f[1][0]&amp;&amp;f[0][1]&lt;=a&amp;&amp;a&lt;f[1][1]){var h=e.invert(t-e(s[l][1][0],0)[0],a);return h[0]+=s[l][1][0],c(i(h[0],h[1]),[t,a])?h:null}}});var o=t.geo.projection(i),s=o.stream;function l(t,e){for(var r,n,i,a=-1,o=t.length,s=t[0],l=[];++a&lt;o;){n=((r=t[a])[0]-s[0])/e,i=(r[1]-s[1])/e;for(var c=0;c&lt;e;++c)l.push([s[0]+c*n,s[1]+c*i]);s=r}return l.push(r),l}function c(t,e){return Math.abs(t[0]-e[0])&lt;f&amp;&amp;Math.abs(t[1]-e[1])&lt;f}return o.stream=function(e){var r=o.rotate(),i=s(e),a=(o.rotate([0,0]),s(e));return o.rotate(r),i.sphere=function(){t.geo.stream(function(){for(var e=1e-6,r=[],i=0,a=n[0].length;i&lt;a;++i){var o=180*(p=n[0][i])[0][0]/h,s=180*p[0][1]/h,c=180*p[1][1]/h,u=180*p[2][0]/h,f=180*p[2][1]/h;r.push(l([[o+e,s+e],[o+e,c-e],[u-e,c-e],[u-e,f+e]],30))}for(i=n[1].length-1;i&gt;=0;--i){var p;o=180*(p=n[1][i])[0][0]/h,s=180*p[0][1]/h,c=180*p[1][1]/h,u=180*p[2][0]/h,f=180*p[2][1]/h;r.push(l([[u-e,f-e],[u-e,c+e],[o+e,c+e],[o+e,s-e]],30))}return{type:&quot;Polygon&quot;,coordinates:[t.merge(r)]}}(),a)},i},o.lobes=function(t){return arguments.length?(n=t.map((function(t){return t.map((function(t){return[[t[0][0]*h/180,t[0][1]*h/180],[t[1][0]*h/180,t[1][1]*h/180],[t[2][0]*h/180,t[2][1]*h/180]]}))})),a(),o):n.map((function(t){return t.map((function(t){return[[180*t[0][0]/h,180*t[0][1]/h],[180*t[1][0]/h,180*t[1][1]/h],[180*t[2][0]/h,180*t[2][1]/h]]}))}))},o},b.invert=function(t,e){var r=.5*e*Math.sqrt((4+h)/h),n=m(r),i=Math.cos(n);return[t/(2/Math.sqrt(h*(4+h))*(1+i)),m((n+r*(i+2))/(2+p))]},(t.geo.eckert4=function(){return y(b)}).raw=b;var _=t.geo.azimuthalEqualArea.raw;function w(t,e){if(arguments.length&lt;2&amp;&amp;(e=t),1===e)return _;if(e===1/0)return T;function r(r,n){var i=_(r/e,n);return i[0]*=t,i}return r.invert=function(r,n){var i=_.invert(r/t,n);return i[0]*=e,i},r}function T(t,e){return[t*Math.cos(e)/Math.cos(e/=2),2*Math.sin(e)]}function k(t,e){return[3*t/(2*h)*Math.sqrt(h*h/3-e*e),e]}function M(t,e){return[t,1.25*Math.log(Math.tan(h/4+.4*e))]}function A(t){return function(e){var r,n=t*Math.sin(e),i=30;do{e-=r=(e+Math.sin(e)-n)/(1+Math.cos(e))}while(Math.abs(r)&gt;f&amp;&amp;--i&gt;0);return e/2}}T.invert=function(t,e){var r=2*m(e/2);return[t*Math.cos(r/2)/Math.cos(r),r]},(t.geo.hammer=function(){var t=2,e=x(w),r=e(t);return r.coefficient=function(r){return arguments.length?e(t=+r):t},r}).raw=w,k.invert=function(t,e){return[2/3*h*t/Math.sqrt(h*h/3-e*e),e]},(t.geo.kavrayskiy7=function(){return y(k)}).raw=k,M.invert=function(t,e){return[t,2.5*Math.atan(Math.exp(.8*e))-.625*h]},(t.geo.miller=function(){return y(M)}).raw=M,A(h);var S=function(t,e,r){var n=A(r);function i(r,i){return[t*r*Math.cos(i=n(i)),e*Math.sin(i)]}return i.invert=function(n,i){var a=m(i/e);return[n/(t*Math.cos(a)),m((2*a+Math.sin(2*a))/r)]},i}(Math.SQRT2/p,Math.SQRT2,h);function E(t,e){var r=e*e,n=r*r;return[t*(.8707-.131979*r+n*(n*(.003971*r-.001529*n)-.013791)),e*(1.007226+r*(.015085+n*(.028874*r-.044475-.005916*n)))]}(t.geo.mollweide=function(){return y(S)}).raw=S,E.invert=function(t,e){var r,n=e,i=25;do{var a=n*n,o=a*a;n-=r=(n*(1.007226+a*(.015085+o*(.028874*a-.044475-.005916*o)))-e)/(1.007226+a*(.045255+o*(.259866*a-.311325-.005916*11*o)))}while(Math.abs(r)&gt;f&amp;&amp;--i&gt;0);return[t/(.8707+(a=n*n)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),n]},(t.geo.naturalEarth=function(){return y(E)}).raw=E;var C=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function L(t,e){var r,n=Math.min(18,36*Math.abs(e)/h),i=Math.floor(n),a=n-i,o=(r=C[i])[0],s=r[1],l=(r=C[++i])[0],c=r[1],u=(r=C[Math.min(19,++i)])[0],f=r[1];return[t*(l+a*(u-o)/2+a*a*(u-2*l+o)/2),(e&gt;0?p:-p)*(c+a*(f-s)/2+a*a*(f-2*c+s)/2)]}function I(t,e){return[t*Math.cos(e),e]}function P(t,e){var r,n=Math.cos(e),i=(r=v(n*Math.cos(t/=2)))?r/Math.sin(r):1;return[2*n*Math.sin(t)*i,Math.sin(e)*i]}function z(t,e){var r=P(t,e);return[(r[0]+t/p)/2,(r[1]+e)/2]}C.forEach((function(t){t[1]*=1.0144})),L.invert=function(t,e){var r=e/p,n=90*r,i=Math.min(18,Math.abs(n/5)),a=Math.max(0,Math.floor(i));do{var o=C[a][1],s=C[a+1][1],l=C[Math.min(19,a+2)][1],c=l-o,u=l-2*s+o,f=2*(Math.abs(r)-s)/c,h=u/c,m=f*(1-h*f*(1-2*h*f));if(m&gt;=0||1===a){n=(e&gt;=0?5:-5)*(m+i);var v,y=50;do{m=(i=Math.min(18,Math.abs(n)/5))-(a=Math.floor(i)),o=C[a][1],s=C[a+1][1],l=C[Math.min(19,a+2)][1],n-=(v=(e&gt;=0?p:-p)*(s+m*(l-o)/2+m*m*(l-2*s+o)/2)-e)*g}while(Math.abs(v)&gt;1e-12&amp;&amp;--y&gt;0);break}}while(--a&gt;=0);var x=C[a][0],b=C[a+1][0],_=C[Math.min(19,a+2)][0];return[t/(b+m*(_-x)/2+m*m*(_-2*b+x)/2),n*d]},(t.geo.robinson=function(){return y(L)}).raw=L,I.invert=function(t,e){return[t/Math.cos(e),e]},(t.geo.sinusoidal=function(){return y(I)}).raw=I,P.invert=function(t,e){if(!(t*t+4*e*e&gt;h*h+f)){var r=t,n=e,i=25;do{var a,o=Math.sin(r),s=Math.sin(r/2),l=Math.cos(r/2),c=Math.sin(n),u=Math.cos(n),p=Math.sin(2*n),d=c*c,g=u*u,m=s*s,y=1-g*l*l,x=y?v(u*l)*Math.sqrt(a=1/y):a=0,b=2*x*u*s-t,_=x*c-e,w=a*(g*m+x*u*l*d),T=a*(.5*o*p-2*x*c*s),k=.25*a*(p*s-x*c*g*o),M=a*(d*l+x*m*u),A=T*k-M*w;if(!A)break;var S=(_*T-b*M)/A,E=(b*k-_*w)/A;r-=S,n-=E}while((Math.abs(S)&gt;f||Math.abs(E)&gt;f)&amp;&amp;--i&gt;0);return[r,n]}},(t.geo.aitoff=function(){return y(P)}).raw=P,z.invert=function(t,e){var r=t,n=e,i=25;do{var a,o=Math.cos(n),s=Math.sin(n),l=Math.sin(2*n),c=s*s,u=o*o,h=Math.sin(r),d=Math.cos(r/2),g=Math.sin(r/2),m=g*g,y=1-u*d*d,x=y?v(o*d)*Math.sqrt(a=1/y):a=0,b=.5*(2*x*o*g+r/p)-t,_=.5*(x*s+n)-e,w=.5*a*(u*m+x*o*d*c)+.5/p,T=a*(h*l/4-x*s*g),k=.125*a*(l*g-x*s*u*h),M=.5*a*(c*d+x*m*o)+.5,A=T*k-M*w,S=(_*T-b*M)/A,E=(b*k-_*w)/A;r-=S,n-=E}while((Math.abs(S)&gt;f||Math.abs(E)&gt;f)&amp;&amp;--i&gt;0);return[r,n]},(t.geo.winkel3=function(){return y(z)}).raw=z}},{}],864:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;),o=Math.PI/180,s=180/Math.PI,l={cursor:&quot;pointer&quot;},c={cursor:&quot;auto&quot;};function u(t,e){return n.behavior.zoom().translate(e.translate()).scale(e.scale())}function f(t,e,r){var n=t.id,o=t.graphDiv,s=o.layout,l=s[n],c=o._fullLayout,u=c[n],f={},h={};function p(t,e){f[n+&quot;.&quot;+t]=i.nestedProperty(l,t).get(),a.call(&quot;_storeDirectGUIEdit&quot;,s,c._preGUI,f);var r=i.nestedProperty(u,t);r.get()!==e&amp;&amp;(r.set(e),i.nestedProperty(l,t).set(e),h[n+&quot;.&quot;+t]=e)}r(p),p(&quot;projection.scale&quot;,e.scale()/t.fitScale),p(&quot;fitbounds&quot;,!1),o.emit(&quot;plotly_relayout&quot;,h)}function h(t,e){var r=u(0,e);function i(r){var n=e.invert(t.midPt);r(&quot;center.lon&quot;,n[0]),r(&quot;center.lat&quot;,n[1])}return r.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l)})).on(&quot;zoom&quot;,(function(){e.scale(n.event.scale).translate(n.event.translate),t.render();var r=e.invert(t.midPt);t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.center.lon&quot;:r[0],&quot;geo.center.lat&quot;:r[1]})})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),f(t,e,i)})),r}function p(t,e){var r,i,a,o,s,h,p,d,g,m=u(0,e);function v(t){return e.invert(t)}function y(r){var n=e.rotate(),i=e.invert(t.midPt);r(&quot;projection.rotation.lon&quot;,-n[0]),r(&quot;center.lon&quot;,i[0]),r(&quot;center.lat&quot;,i[1])}return m.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l),r=n.mouse(this),i=e.rotate(),a=e.translate(),o=i,s=v(r)})).on(&quot;zoom&quot;,(function(){if(h=n.mouse(this),function(t){var r=v(t);if(!r)return!0;var n=e(r);return Math.abs(n[0]-t[0])&gt;2||Math.abs(n[1]-t[1])&gt;2}(r))return m.scale(e.scale()),void m.translate(e.translate());e.scale(n.event.scale),e.translate([a[0],n.event.translate[1]]),s?v(h)&amp;&amp;(d=v(h),p=[o[0]+(d[0]-s[0]),i[1],i[2]],e.rotate(p),o=p):s=v(r=h),g=!0,t.render();var l=e.rotate(),c=e.invert(t.midPt);t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.center.lon&quot;:c[0],&quot;geo.center.lat&quot;:c[1],&quot;geo.projection.rotation.lon&quot;:-l[0]})})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),g&amp;&amp;f(t,e,y)})),m}function d(t,e){var r,i={r:e.rotate(),k:e.scale()},a=u(0,e),o=function(t){var e=0,r=arguments.length,i=[];for(;++e&lt;r;)i.push(arguments[e]);var a=n.dispatch.apply(null,i);return a.of=function(e,r){return function(i){var o;try{o=i.sourceEvent=n.event,i.target=t,n.event=i,a[i.type].apply(e,r)}finally{n.event=o}}},a}(a,&quot;zoomstart&quot;,&quot;zoom&quot;,&quot;zoomend&quot;),s=0,h=a.on;function p(t){s++||t({type:&quot;zoomstart&quot;})}function d(t){t({type:&quot;zoom&quot;})}function b(t){--s||t({type:&quot;zoomend&quot;})}function _(t){var r=e.rotate();t(&quot;projection.rotation.lon&quot;,-r[0]),t(&quot;projection.rotation.lat&quot;,-r[1])}return a.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l);var t=n.mouse(this),s=e.rotate(),c=s,u=e.translate(),f=m(s);r=g(e,t),h.call(a,&quot;zoom&quot;,(function(){var a=n.mouse(this);if(e.scale(i.k=n.event.scale),r){if(g(e,a)){e.rotate(s).translate(u);var l=g(e,a),h=y(r,l),p=T(v(f,h)),m=i.r=x(p,r,c);isFinite(m[0])&amp;&amp;isFinite(m[1])&amp;&amp;isFinite(m[2])||(m=c),e.rotate(m),c=m}}else r=g(e,t=a);d(o.of(this,arguments))})),p(o.of(this,arguments))})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),h.call(a,&quot;zoom&quot;,null),b(o.of(this,arguments)),f(t,e,_)})).on(&quot;zoom.redraw&quot;,(function(){t.render();var r=e.rotate();t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.projection.rotation.lon&quot;:-r[0],&quot;geo.projection.rotation.lat&quot;:-r[1]})})),n.rebind(a,o,&quot;on&quot;)}function g(t,e){var r=t.invert(e);return r&amp;&amp;isFinite(r[0])&amp;&amp;isFinite(r[1])&amp;&amp;function(t){var e=t[0]*o,r=t[1]*o,n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}(r)}function m(t){var e=.5*t[0]*o,r=.5*t[1]*o,n=.5*t[2]*o,i=Math.sin(e),a=Math.cos(e),s=Math.sin(r),l=Math.cos(r),c=Math.sin(n),u=Math.cos(n);return[a*l*u+i*s*c,i*l*u-a*s*c,a*s*u+i*l*c,a*l*c-i*s*u]}function v(t,e){var r=t[0],n=t[1],i=t[2],a=t[3],o=e[0],s=e[1],l=e[2],c=e[3];return[r*o-n*s-i*l-a*c,r*s+n*o+i*c-a*l,r*l-n*c+i*o+a*s,r*c+n*l-i*s+a*o]}function y(t,e){if(t&amp;&amp;e){var r=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(t,e),n=Math.sqrt(k(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,k(t,e)))),a=Math.sin(i)/n;return n&amp;&amp;[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function x(t,e,r){var n=w(e,2,t[0]);n=w(n,1,t[1]),n=w(n,0,t[2]-r[2]);var i,a,o=e[0],l=e[1],c=e[2],u=n[0],f=n[1],h=n[2],p=Math.atan2(l,o)*s,d=Math.sqrt(o*o+l*l);Math.abs(f)&gt;d?(a=(f&gt;0?90:-90)-p,i=0):(a=Math.asin(f/d)*s-p,i=Math.sqrt(d*d-f*f));var g=180-a-2*p,m=(Math.atan2(h,u)-Math.atan2(c,i))*s,v=(Math.atan2(h,u)-Math.atan2(c,-i))*s;return b(r[0],r[1],a,m)&lt;=b(r[0],r[1],g,v)?[a,m,r[2]]:[g,v,r[2]]}function b(t,e,r,n){var i=_(r-t),a=_(n-e);return Math.sqrt(i*i+a*a)}function _(t){return(t%360+540)%360-180}function w(t,e,r){var n=r*o,i=t.slice(),a=0===e?1:0,s=2===e?1:2,l=Math.cos(n),c=Math.sin(n);return i[a]=t[a]*l-t[s]*c,i[s]=t[s]*l+t[a]*c,i}function T(t){return[Math.atan2(2*(t[0]*t[1]+t[2]*t[3]),1-2*(t[1]*t[1]+t[2]*t[2]))*s,Math.asin(Math.max(-1,Math.min(1,2*(t[0]*t[2]-t[3]*t[1]))))*s,Math.atan2(2*(t[0]*t[3]+t[1]*t[2]),1-2*(t[2]*t[2]+t[3]*t[3]))*s]}function k(t,e){for(var r=0,n=0,i=t.length;n&lt;i;++n)r+=t[n]*e[n];return r}e.exports=function(t,e){var r=t.projection;return(e._isScoped?h:e._isClipped?d:p)(t,r)}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,d3:169}],865:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;./cartesian/constants&quot;).SUBPLOT_PATTERN;r.getSubplotCalcData=function(t,e,r){var i=n.subplotsRegistry[e];if(!i)return[];for(var a=i.attr,o=[],s=0;s&lt;t.length;s++){var l=t[s];l[0].trace[a]===r&amp;&amp;o.push(l)}return o},r.getModuleCalcData=function(t,e){var r,i=[],a=[];if(!(r=&quot;string&quot;==typeof e?n.getModule(e).plot:&quot;function&quot;==typeof e?e:e.plot))return[i,t];for(var o=0;o&lt;t.length;o++){var s=t[o],l=s[0].trace;!0===l.visible&amp;&amp;0!==l._length&amp;&amp;(l._module.plot===r?i.push(s):a.push(s))}return[i,a]},r.getSubplotData=function(t,e,r){if(!n.subplotsRegistry[e])return[];var a,o,s,l=n.subplotsRegistry[e].attr,c=[];if(&quot;gl2d&quot;===e){var u=r.match(i);o=&quot;x&quot;+u[1],s=&quot;y&quot;+u[2]}for(var f=0;f&lt;t.length;f++)a=t[f],&quot;gl2d&quot;===e&amp;&amp;n.traceIs(a,&quot;gl2d&quot;)?a[l[0]]===o&amp;&amp;a[l[1]]===s&amp;&amp;c.push(a):a[l]===r&amp;&amp;c.push(a);return c}},{&quot;../registry&quot;:911,&quot;./cartesian/constants&quot;:834}],866:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mouse-change&quot;),i=t(&quot;mouse-wheel&quot;),a=t(&quot;mouse-event-offset&quot;),o=t(&quot;../cartesian/constants&quot;),s=t(&quot;has-passive-events&quot;);function l(t,e){this.element=t,this.plot=e,this.mouseListener=null,this.wheelListener=null,this.lastInputTime=Date.now(),this.lastPos=[0,0],this.boxEnabled=!1,this.boxInited=!1,this.boxStart=[0,0],this.boxEnd=[0,0],this.dragStart=[0,0]}e.exports=function(t){var e=t.mouseContainer,r=t.glplot,c=new l(e,r);function u(){t.xaxis.autorange=!1,t.yaxis.autorange=!1}function f(e,n,i){var a,s,l=t.calcDataBox(),f=r.viewBox,h=c.lastPos[0],p=c.lastPos[1],d=o.MINDRAG*r.pixelRatio,g=o.MINZOOM*r.pixelRatio;function m(e,r,n){var i=Math.min(r,n),a=Math.max(r,n);i!==a?(l[e]=i,l[e+2]=a,c.dataBox=l,t.setRanges(l)):(t.selectBox.selectBox=[0,0,1,1],t.glplot.setDirty())}switch(n*=r.pixelRatio,i*=r.pixelRatio,i=f[3]-f[1]-i,t.fullLayout.dragmode){case&quot;zoom&quot;:if(e){var v=n/(f[2]-f[0])*(l[2]-l[0])+l[0],y=i/(f[3]-f[1])*(l[3]-l[1])+l[1];c.boxInited||(c.boxStart[0]=v,c.boxStart[1]=y,c.dragStart[0]=n,c.dragStart[1]=i),c.boxEnd[0]=v,c.boxEnd[1]=y,c.boxInited=!0,c.boxEnabled||c.boxStart[0]===c.boxEnd[0]&amp;&amp;c.boxStart[1]===c.boxEnd[1]||(c.boxEnabled=!0);var x=Math.abs(c.dragStart[0]-n)&lt;g,b=Math.abs(c.dragStart[1]-i)&lt;g;if(!function(){for(var e=t.graphDiv._fullLayout._axisConstraintGroups,r=t.xaxis._id,n=t.yaxis._id,i=0;i&lt;e.length;i++)if(-1!==e[i][r]){if(-1!==e[i][n])return!0;break}return!1}()||x&amp;&amp;b)x&amp;&amp;(c.boxEnd[0]=c.boxStart[0]),b&amp;&amp;(c.boxEnd[1]=c.boxStart[1]);else{a=c.boxEnd[0]-c.boxStart[0],s=c.boxEnd[1]-c.boxStart[1];var _=(l[3]-l[1])/(l[2]-l[0]);Math.abs(a*_)&gt;Math.abs(s)?(c.boxEnd[1]=c.boxStart[1]+Math.abs(a)*_*(s&gt;=0?1:-1),c.boxEnd[1]&lt;l[1]?(c.boxEnd[1]=l[1],c.boxEnd[0]=c.boxStart[0]+(l[1]-c.boxStart[1])/Math.abs(_)):c.boxEnd[1]&gt;l[3]&amp;&amp;(c.boxEnd[1]=l[3],c.boxEnd[0]=c.boxStart[0]+(l[3]-c.boxStart[1])/Math.abs(_))):(c.boxEnd[0]=c.boxStart[0]+Math.abs(s)/_*(a&gt;=0?1:-1),c.boxEnd[0]&lt;l[0]?(c.boxEnd[0]=l[0],c.boxEnd[1]=c.boxStart[1]+(l[0]-c.boxStart[0])*Math.abs(_)):c.boxEnd[0]&gt;l[2]&amp;&amp;(c.boxEnd[0]=l[2],c.boxEnd[1]=c.boxStart[1]+(l[2]-c.boxStart[0])*Math.abs(_)))}}else c.boxEnabled?(a=c.boxStart[0]!==c.boxEnd[0],s=c.boxStart[1]!==c.boxEnd[1],a||s?(a&amp;&amp;(m(0,c.boxStart[0],c.boxEnd[0]),t.xaxis.autorange=!1),s&amp;&amp;(m(1,c.boxStart[1],c.boxEnd[1]),t.yaxis.autorange=!1),t.relayoutCallback()):t.glplot.setDirty(),c.boxEnabled=!1,c.boxInited=!1):c.boxInited&amp;&amp;(c.boxInited=!1);break;case&quot;pan&quot;:c.boxEnabled=!1,c.boxInited=!1,e?(c.panning||(c.dragStart[0]=n,c.dragStart[1]=i),Math.abs(c.dragStart[0]-n)&lt;d&amp;&amp;(n=c.dragStart[0]),Math.abs(c.dragStart[1]-i)&lt;d&amp;&amp;(i=c.dragStart[1]),a=(h-n)*(l[2]-l[0])/(r.viewBox[2]-r.viewBox[0]),s=(p-i)*(l[3]-l[1])/(r.viewBox[3]-r.viewBox[1]),l[0]+=a,l[2]+=a,l[1]+=s,l[3]+=s,t.setRanges(l),c.panning=!0,c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations()):c.panning&amp;&amp;(c.panning=!1,t.relayoutCallback())}c.lastPos[0]=n,c.lastPos[1]=i}return c.mouseListener=n(e,f),e.addEventListener(&quot;touchstart&quot;,(function(t){var r=a(t.changedTouches[0],e);f(0,r[0],r[1]),f(1,r[0],r[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),e.addEventListener(&quot;touchmove&quot;,(function(t){t.preventDefault();var r=a(t.changedTouches[0],e);f(1,r[0],r[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),e.addEventListener(&quot;touchend&quot;,(function(t){f(0,c.lastPos[0],c.lastPos[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),c.wheelListener=i(e,(function(e,n){if(!t.scrollZoom)return!1;var i=t.calcDataBox(),a=r.viewBox,o=c.lastPos[0],s=c.lastPos[1],l=Math.exp(5*n/(a[3]-a[1])),f=o/(a[2]-a[0])*(i[2]-i[0])+i[0],h=s/(a[3]-a[1])*(i[3]-i[1])+i[1];return i[0]=(i[0]-f)*l+f,i[2]=(i[2]-f)*l+f,i[1]=(i[1]-h)*l+h,i[3]=(i[3]-h)*l+h,t.setRanges(i),c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations(),t.relayoutCallback(),!0}),!0),c}},{&quot;../cartesian/constants&quot;:834,&quot;has-passive-events&quot;:441,&quot;mouse-change&quot;:483,&quot;mouse-event-offset&quot;:484,&quot;mouse-wheel&quot;:486}],867:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../cartesian/axes&quot;),i=t(&quot;../../lib/str2rgbarray&quot;);function a(t){this.scene=t,this.gl=t.gl,this.pixelRatio=t.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=[&quot;x&quot;,&quot;y&quot;],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title=&quot;&quot;,this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont=&quot;sans-serif&quot;,this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}var o=a.prototype,s=[&quot;xaxis&quot;,&quot;yaxis&quot;];o.merge=function(t){var e,r,n,a,o,l,c,u,f,h,p;for(this.titleEnable=!1,this.backgroundColor=i(t.plot_bgcolor),h=0;h&lt;2;++h){var d=(e=s[h]).charAt(0);for(n=(r=t[this.scene[e]._name]).title.text===this.scene.fullLayout._dfltTitle[d]?&quot;&quot;:r.title.text,p=0;p&lt;=2;p+=2)this.labelEnable[h+p]=!1,this.labels[h+p]=n,this.labelColor[h+p]=i(r.title.font.color),this.labelFont[h+p]=r.title.font.family,this.labelSize[h+p]=r.title.font.size,this.labelPad[h+p]=this.getLabelPad(e,r),this.tickEnable[h+p]=!1,this.tickColor[h+p]=i((r.tickfont||{}).color),this.tickAngle[h+p]=&quot;auto&quot;===r.tickangle?0:Math.PI*-r.tickangle/180,this.tickPad[h+p]=this.getTickPad(r),this.tickMarkLength[h+p]=0,this.tickMarkWidth[h+p]=r.tickwidth||0,this.tickMarkColor[h+p]=i(r.tickcolor),this.borderLineEnable[h+p]=!1,this.borderLineColor[h+p]=i(r.linecolor),this.borderLineWidth[h+p]=r.linewidth||0;c=this.hasSharedAxis(r),o=this.hasAxisInDfltPos(e,r)&amp;&amp;!c,l=this.hasAxisInAltrPos(e,r)&amp;&amp;!c,a=r.mirror||!1,u=c?-1!==String(a).indexOf(&quot;all&quot;):!!a,f=c?&quot;allticks&quot;===a:-1!==String(a).indexOf(&quot;ticks&quot;),o?this.labelEnable[h]=!0:l&amp;&amp;(this.labelEnable[h+2]=!0),o?this.tickEnable[h]=r.showticklabels:l&amp;&amp;(this.tickEnable[h+2]=r.showticklabels),(o||u)&amp;&amp;(this.borderLineEnable[h]=r.showline),(l||u)&amp;&amp;(this.borderLineEnable[h+2]=r.showline),(o||f)&amp;&amp;(this.tickMarkLength[h]=this.getTickMarkLength(r)),(l||f)&amp;&amp;(this.tickMarkLength[h+2]=this.getTickMarkLength(r)),this.gridLineEnable[h]=r.showgrid,this.gridLineColor[h]=i(r.gridcolor),this.gridLineWidth[h]=r.gridwidth,this.zeroLineEnable[h]=r.zeroline,this.zeroLineColor[h]=i(r.zerolinecolor),this.zeroLineWidth[h]=r.zerolinewidth}},o.hasSharedAxis=function(t){var e=this.scene,r=e.fullLayout._subplots.gl2d;return 0!==n.findSubplotsWithAxis(r,t).indexOf(e.id)},o.hasAxisInDfltPos=function(t,e){var r=e.side;return&quot;xaxis&quot;===t?&quot;bottom&quot;===r:&quot;yaxis&quot;===t?&quot;left&quot;===r:void 0},o.hasAxisInAltrPos=function(t,e){var r=e.side;return&quot;xaxis&quot;===t?&quot;top&quot;===r:&quot;yaxis&quot;===t?&quot;right&quot;===r:void 0},o.getLabelPad=function(t,e){var r=e.title.font.size,n=e.showticklabels;return&quot;xaxis&quot;===t?&quot;top&quot;===e.side?r*(1.5+(n?1:0))-10:r*(1.5+(n?.5:0))-10:&quot;yaxis&quot;===t?&quot;right&quot;===e.side?10+r*(1.5+(n?1:.5)):10+r*(1.5+(n?.5:0)):void 0},o.getTickPad=function(t){return&quot;outside&quot;===t.ticks?10+t.ticklen:15},o.getTickMarkLength=function(t){if(!t.ticks)return 0;var e=t.ticklen;return&quot;inside&quot;===t.ticks?-e:e},e.exports=function(t){return new a(t)}},{&quot;../../lib/str2rgbarray&quot;:802,&quot;../cartesian/axes&quot;:828}],868:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;./scene2d&quot;),a=t(&quot;../layout_attributes&quot;),o=t(&quot;../../constants/xmlns_namespaces&quot;),s=t(&quot;../cartesian/constants&quot;),l=t(&quot;../cartesian&quot;),c=t(&quot;../../components/fx/layout_attributes&quot;),u=t(&quot;../get_data&quot;).getSubplotData;r.name=&quot;gl2d&quot;,r.attr=[&quot;xaxis&quot;,&quot;yaxis&quot;],r.idRoot=[&quot;x&quot;,&quot;y&quot;],r.idRegex=s.idRegex,r.attrRegex=s.attrRegex,r.attributes=t(&quot;../cartesian/attributes&quot;),r.supplyLayoutDefaults=function(t,e,r){e._has(&quot;cartesian&quot;)||l.supplyLayoutDefaults(t,e,r)},r.layoutAttrOverrides=n(l.layoutAttributes,&quot;plot&quot;,&quot;from-root&quot;),r.baseLayoutAttrOverrides=n({plot_bgcolor:a.plot_bgcolor,hoverlabel:c.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl2d,a=0;a&lt;n.length;a++){var o=n[a],s=e._plots[o],l=u(r,&quot;gl2d&quot;,o),c=s._scene2d;void 0===c&amp;&amp;(c=new i({id:o,graphDiv:t,container:t.querySelector(&quot;.gl-container&quot;),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio},e),s._scene2d=c),c.plot(l,t.calcdata,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl2d||[],a=0;a&lt;i.length;a++){var o=i[a],s=n._plots[o];if(s._scene2d){var c=u(t,&quot;gl2d&quot;,o);0===c.length&amp;&amp;(s._scene2d.destroy(),delete n._plots[o])}}l.clean.apply(this,arguments)},r.drawFramework=function(t){t._context.staticPlot||l.drawFramework(t)},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n&lt;r.length;n++){var i=e._plots[r[n]]._scene2d,a=i.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:o.svg,&quot;xlink:href&quot;:a,x:0,y:0,width:&quot;100%&quot;,height:&quot;100%&quot;,preserveAspectRatio:&quot;none&quot;}),i.destroy()}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n&lt;r.length;n++){e._plots[r[n]]._scene2d.updateFx(e.dragmode)}}},{&quot;../../components/fx/layout_attributes&quot;:684,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../plot_api/edit_types&quot;:810,&quot;../cartesian&quot;:841,&quot;../cartesian/attributes&quot;:826,&quot;../cartesian/constants&quot;:834,&quot;../get_data&quot;:865,&quot;../layout_attributes&quot;:882,&quot;./scene2d&quot;:869}],869:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;../../registry&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;gl-plot2d&quot;),c=t(&quot;gl-spikes2d&quot;),u=t(&quot;gl-select-box&quot;),f=t(&quot;webgl-context&quot;),h=t(&quot;./convert&quot;),p=t(&quot;./camera&quot;),d=t(&quot;../../lib/show_no_webgl_msg&quot;),g=t(&quot;../cartesian/constraints&quot;),m=g.enforce,v=g.clean,y=t(&quot;../cartesian/autorange&quot;).doAutoRange,x=t(&quot;../../components/dragelement/helpers&quot;),b=x.drawMode,_=x.selectMode,w=[&quot;xaxis&quot;,&quot;yaxis&quot;],T=t(&quot;../cartesian/constants&quot;).SUBPLOT_PATTERN;function k(t,e){this.container=t.container,this.graphDiv=t.graphDiv,this.pixelRatio=t.plotGlPixelRatio||window.devicePixelRatio,this.id=t.id,this.staticPlot=!!t.staticPlot,this.scrollZoom=this.graphDiv._context._scrollZoom.cartesian,this.fullData=null,this.updateRefs(e),this.makeFramework(),this.stopped||(this.glplotOptions=h(this),this.glplotOptions.merge(e),this.glplot=l(this.glplotOptions),this.camera=p(this),this.traces={},this.spikes=c(this.glplot),this.selectBox=u(this.glplot,{innerFill:!1,outerFill:!0}),this.lastButtonState=0,this.pickResult=null,this.isMouseOver=!0,this.stopped=!1,this.redraw=this.draw.bind(this),this.redraw())}e.exports=k;var M=k.prototype;M.makeFramework=function(){if(this.staticPlot){if(!(i||(n=document.createElement(&quot;canvas&quot;),i=f({canvas:n,preserveDrawingBuffer:!1,premultipliedAlpha:!0,antialias:!0}))))throw new Error(&quot;Error creating static canvas/context for image server&quot;);this.canvas=n,this.gl=i}else{var t=this.container.querySelector(&quot;.gl-canvas-focus&quot;),e=f({canvas:t,preserveDrawingBuffer:!0,premultipliedAlpha:!0});if(!e)return d(this),void(this.stopped=!0);this.canvas=t,this.gl=e}var r=this.canvas;r.style.width=&quot;100%&quot;,r.style.height=&quot;100%&quot;,r.style.position=&quot;absolute&quot;,r.style.top=&quot;0px&quot;,r.style.left=&quot;0px&quot;,r.style[&quot;pointer-events&quot;]=&quot;none&quot;,this.updateSize(r);var a=this.svgContainer=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);a.style.position=&quot;absolute&quot;,a.style.top=a.style.left=&quot;0px&quot;,a.style.width=a.style.height=&quot;100%&quot;,a.style[&quot;z-index&quot;]=20,a.style[&quot;pointer-events&quot;]=&quot;none&quot;;var o=this.mouseContainer=document.createElement(&quot;div&quot;);o.style.position=&quot;absolute&quot;,o.style[&quot;pointer-events&quot;]=&quot;auto&quot;,this.pickCanvas=this.container.querySelector(&quot;.gl-canvas-pick&quot;);var s=this.container;s.appendChild(a),s.appendChild(o);var l=this;o.addEventListener(&quot;mouseout&quot;,(function(){l.isMouseOver=!1,l.unhover()})),o.addEventListener(&quot;mouseover&quot;,(function(){l.isMouseOver=!0}))},M.toImage=function(t){t||(t=&quot;png&quot;),this.stopped=!0,this.staticPlot&amp;&amp;this.container.appendChild(n),this.updateSize(this.canvas);var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.clearColor(1,1,1,0),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),this.glplot.setDirty(),this.glplot.draw(),e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a);for(var o=0,s=i-1;o&lt;s;++o,--s)for(var l=0;l&lt;r;++l)for(var c=0;c&lt;4;++c){var u=a[4*(r*o+l)+c];a[4*(r*o+l)+c]=a[4*(r*s+l)+c],a[4*(r*s+l)+c]=u}var f=document.createElement(&quot;canvas&quot;);f.width=r,f.height=i;var h,p=f.getContext(&quot;2d&quot;),d=p.createImageData(r,i);switch(d.data.set(a),p.putImageData(d,0,0),t){case&quot;jpeg&quot;:h=f.toDataURL(&quot;image/jpeg&quot;);break;case&quot;webp&quot;:h=f.toDataURL(&quot;image/webp&quot;);break;default:h=f.toDataURL(&quot;image/png&quot;)}return this.staticPlot&amp;&amp;this.container.removeChild(n),h},M.updateSize=function(t){t||(t=this.canvas);var e=this.pixelRatio,r=this.fullLayout,n=r.width,i=r.height,a=0|Math.ceil(e*n),o=0|Math.ceil(e*i);return t.width===a&amp;&amp;t.height===o||(t.width=a,t.height=o),t},M.computeTickMarks=function(){this.xaxis.setScale(),this.yaxis.setScale();for(var t=[o.calcTicks(this.xaxis),o.calcTicks(this.yaxis)],e=0;e&lt;2;++e)for(var r=0;r&lt;t[e].length;++r)t[e][r].text=t[e][r].text+&quot;&quot;;return t},M.updateRefs=function(t){this.fullLayout=t;var e=this.id.match(T),r=&quot;xaxis&quot;+e[1],n=&quot;yaxis&quot;+e[2];this.xaxis=this.fullLayout[r],this.yaxis=this.fullLayout[n]},M.relayoutCallback=function(){var t=this.graphDiv,e=this.xaxis,r=this.yaxis,n=t.layout,i={},o=i[e._name+&quot;.range&quot;]=e.range.slice(),s=i[r._name+&quot;.range&quot;]=r.range.slice();i[e._name+&quot;.autorange&quot;]=e.autorange,i[r._name+&quot;.autorange&quot;]=r.autorange,a.call(&quot;_storeDirectGUIEdit&quot;,t.layout,t._fullLayout._preGUI,i);var l=n[e._name];l.range=o,l.autorange=e.autorange;var c=n[r._name];c.range=s,c.autorange=r.autorange,i.lastInputTime=this.camera.lastInputTime,t.emit(&quot;plotly_relayout&quot;,i)},M.cameraChanged=function(){var t=this.camera;this.glplot.setDataBox(this.calcDataBox());var e=this.computeTickMarks();(function(t,e){for(var r=0;r&lt;2;++r){var n=t[r],i=e[r];if(n.length!==i.length)return!0;for(var a=0;a&lt;n.length;++a)if(n[a].x!==i[a].x)return!0}return!1})(e,this.glplotOptions.ticks)&amp;&amp;(this.glplotOptions.ticks=e,this.glplotOptions.dataBox=t.dataBox,this.glplot.update(this.glplotOptions),this.handleAnnotations())},M.handleAnnotations=function(){for(var t=this.graphDiv,e=this.fullLayout.annotations,r=0;r&lt;e.length;r++){var n=e[r];n.xref===this.xaxis._id&amp;&amp;n.yref===this.yaxis._id&amp;&amp;a.getComponentMethod(&quot;annotations&quot;,&quot;drawOne&quot;)(t,r)}},M.destroy=function(){if(this.glplot){var t=this.traces;t&amp;&amp;Object.keys(t).map((function(e){t[e].dispose(),delete t[e]})),this.glplot.dispose(),this.container.removeChild(this.svgContainer),this.container.removeChild(this.mouseContainer),this.fullData=null,this.glplot=null,this.stopped=!0,this.camera.mouseListener.enabled=!1,this.mouseContainer.removeEventListener(&quot;wheel&quot;,this.camera.wheelListener),this.camera=null}},M.plot=function(t,e,r){var n=this.glplot;this.updateRefs(r),this.xaxis.clearCalc(),this.yaxis.clearCalc(),this.updateTraces(t,e),this.updateFx(r.dragmode);var i=r.width,a=r.height;this.updateSize(this.canvas);var o=this.glplotOptions;o.merge(r),o.screenBox=[0,0,i,a];var s={_fullLayout:{_axisConstraintGroups:this.graphDiv._fullLayout._axisConstraintGroups,xaxis:this.xaxis,yaxis:this.yaxis}};v(s,this.xaxis),v(s,this.yaxis);var l,c,u=r._size,f=this.xaxis.domain,h=this.yaxis.domain;for(o.viewBox=[u.l+f[0]*u.w,u.b+h[0]*u.h,i-u.r-(1-f[1])*u.w,a-u.t-(1-h[1])*u.h],this.mouseContainer.style.width=u.w*(f[1]-f[0])+&quot;px&quot;,this.mouseContainer.style.height=u.h*(h[1]-h[0])+&quot;px&quot;,this.mouseContainer.height=u.h*(h[1]-h[0]),this.mouseContainer.style.left=u.l+f[0]*u.w+&quot;px&quot;,this.mouseContainer.style.top=u.t+(1-h[1])*u.h+&quot;px&quot;,c=0;c&lt;2;++c)(l=this[w[c]])._length=o.viewBox[c+2]-o.viewBox[c],y(this.graphDiv,l),l.setScale();m(s),o.ticks=this.computeTickMarks(),o.dataBox=this.calcDataBox(),o.merge(r),n.update(o),this.glplot.draw()},M.calcDataBox=function(){var t=this.xaxis,e=this.yaxis,r=t.range,n=e.range,i=t.r2l,a=e.r2l;return[i(r[0]),a(n[0]),i(r[1]),a(n[1])]},M.setRanges=function(t){var e=this.xaxis,r=this.yaxis,n=e.l2r,i=r.l2r;e.range=[n(t[0]),n(t[2])],r.range=[i(t[1]),i(t[3])]},M.updateTraces=function(t,e){var r,n,i,a=Object.keys(this.traces);this.fullData=t;t:for(r=0;r&lt;a.length;r++){var o=a[r],s=this.traces[o];for(n=0;n&lt;t.length;n++)if((i=t[n]).uid===o&amp;&amp;i.type===s.type)continue t;s.dispose(),delete this.traces[o]}for(r=0;r&lt;t.length;r++){i=t[r];var l=e[r],c=this.traces[i.uid];c?c.update(i,l):(c=i._module.plot(this,i,l),this.traces[i.uid]=c)}this.glplot.objects.sort((function(t,e){return t._trace.index-e._trace.index}))},M.updateFx=function(t){_(t)||b(t)?(this.pickCanvas.style[&quot;pointer-events&quot;]=&quot;none&quot;,this.mouseContainer.style[&quot;pointer-events&quot;]=&quot;none&quot;):(this.pickCanvas.style[&quot;pointer-events&quot;]=&quot;auto&quot;,this.mouseContainer.style[&quot;pointer-events&quot;]=&quot;auto&quot;),this.mouseContainer.style.cursor=&quot;pan&quot;===t?&quot;move&quot;:&quot;zoom&quot;===t?&quot;crosshair&quot;:null},M.emitPointAction=function(t,e){for(var r,n=t.trace.uid,i=t.pointIndex,a=0;a&lt;this.fullData.length;a++)this.fullData[a].uid===n&amp;&amp;(r=this.fullData[a]);var o={x:t.traceCoord[0],y:t.traceCoord[1],curveNumber:r.index,pointNumber:i,data:r._input,fullData:this.fullData,xaxis:this.xaxis,yaxis:this.yaxis};s.appendArrayPointValue(o,r,i),this.graphDiv.emit(e,{points:[o]})},M.draw=function(){if(!this.stopped){requestAnimationFrame(this.redraw);var t=this.glplot,e=this.camera,r=e.mouseListener,n=1===this.lastButtonState&amp;&amp;0===r.buttons,i=this.fullLayout;this.lastButtonState=r.buttons,this.cameraChanged();var a,o=r.x*t.pixelRatio,l=this.canvas.height-t.pixelRatio*r.y;if(e.boxEnabled&amp;&amp;&quot;zoom&quot;===i.dragmode){this.selectBox.enabled=!0;for(var c=this.selectBox.selectBox=[Math.min(e.boxStart[0],e.boxEnd[0]),Math.min(e.boxStart[1],e.boxEnd[1]),Math.max(e.boxStart[0],e.boxEnd[0]),Math.max(e.boxStart[1],e.boxEnd[1])],u=0;u&lt;2;u++)e.boxStart[u]===e.boxEnd[u]&amp;&amp;(c[u]=t.dataBox[u],c[u+2]=t.dataBox[u+2]);t.setDirty()}else if(!e.panning&amp;&amp;this.isMouseOver){this.selectBox.enabled=!1;var f=i._size,h=this.xaxis.domain,p=this.yaxis.domain,d=(a=t.pick(o/t.pixelRatio+f.l+h[0]*f.w,l/t.pixelRatio-(f.t+(1-p[1])*f.h)))&amp;&amp;a.object._trace.handlePick(a);if(d&amp;&amp;n&amp;&amp;this.emitPointAction(d,&quot;plotly_click&quot;),a&amp;&amp;&quot;skip&quot;!==a.object._trace.hoverinfo&amp;&amp;i.hovermode&amp;&amp;d&amp;&amp;(!this.lastPickResult||this.lastPickResult.traceUid!==d.trace.uid||this.lastPickResult.dataCoord[0]!==d.dataCoord[0]||this.lastPickResult.dataCoord[1]!==d.dataCoord[1])){var g=d;this.lastPickResult={traceUid:d.trace?d.trace.uid:null,dataCoord:d.dataCoord.slice()},this.spikes.update({center:a.dataCoord}),g.screenCoord=[((t.viewBox[2]-t.viewBox[0])*(a.dataCoord[0]-t.dataBox[0])/(t.dataBox[2]-t.dataBox[0])+t.viewBox[0])/t.pixelRatio,(this.canvas.height-(t.viewBox[3]-t.viewBox[1])*(a.dataCoord[1]-t.dataBox[1])/(t.dataBox[3]-t.dataBox[1])-t.viewBox[1])/t.pixelRatio],this.emitPointAction(d,&quot;plotly_hover&quot;);var m=this.fullData[g.trace.index]||{},v=g.pointIndex,y=s.castHoverinfo(m,i,v);if(y&amp;&amp;&quot;all&quot;!==y){var x=y.split(&quot;+&quot;);-1===x.indexOf(&quot;x&quot;)&amp;&amp;(g.traceCoord[0]=void 0),-1===x.indexOf(&quot;y&quot;)&amp;&amp;(g.traceCoord[1]=void 0),-1===x.indexOf(&quot;z&quot;)&amp;&amp;(g.traceCoord[2]=void 0),-1===x.indexOf(&quot;text&quot;)&amp;&amp;(g.textLabel=void 0),-1===x.indexOf(&quot;name&quot;)&amp;&amp;(g.name=void 0)}s.loneHover({x:g.screenCoord[0],y:g.screenCoord[1],xLabel:this.hoverFormatter(&quot;xaxis&quot;,g.traceCoord[0]),yLabel:this.hoverFormatter(&quot;yaxis&quot;,g.traceCoord[1]),zLabel:g.traceCoord[2],text:g.textLabel,name:g.name,color:s.castHoverOption(m,v,&quot;bgcolor&quot;)||g.color,borderColor:s.castHoverOption(m,v,&quot;bordercolor&quot;),fontFamily:s.castHoverOption(m,v,&quot;font.family&quot;),fontSize:s.castHoverOption(m,v,&quot;font.size&quot;),fontColor:s.castHoverOption(m,v,&quot;font.color&quot;),nameLength:s.castHoverOption(m,v,&quot;namelength&quot;),textAlign:s.castHoverOption(m,v,&quot;align&quot;)},{container:this.svgContainer,gd:this.graphDiv})}}a||this.unhover(),t.draw()}},M.unhover=function(){this.lastPickResult&amp;&amp;(this.spikes.update({}),this.lastPickResult=null,this.graphDiv.emit(&quot;plotly_unhover&quot;),s.loneUnhover(this.svgContainer))},M.hoverFormatter=function(t,e){if(void 0!==e){var r=this[t];return o.tickText(r,r.c2l(e),&quot;hover&quot;).text}}},{&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/fx&quot;:683,&quot;../../lib/show_no_webgl_msg&quot;:800,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../cartesian/autorange&quot;:827,&quot;../cartesian/constants&quot;:834,&quot;../cartesian/constraints&quot;:835,&quot;./camera&quot;:866,&quot;./convert&quot;:867,&quot;gl-plot2d&quot;:317,&quot;gl-select-box&quot;:333,&quot;gl-spikes2d&quot;:342,&quot;webgl-context&quot;:606}],870:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;../../components/fx/layout_attributes&quot;),a=t(&quot;./scene&quot;),o=t(&quot;../get_data&quot;).getSubplotData,s=t(&quot;../../lib&quot;),l=t(&quot;../../constants/xmlns_namespaces&quot;);r.name=&quot;gl3d&quot;,r.attr=&quot;scene&quot;,r.idRoot=&quot;scene&quot;,r.idRegex=r.attrRegex=s.counterRegex(&quot;scene&quot;),r.attributes=t(&quot;./layout/attributes&quot;),r.layoutAttributes=t(&quot;./layout/layout_attributes&quot;),r.baseLayoutAttrOverrides=n({hoverlabel:i.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.supplyLayoutDefaults=t(&quot;./layout/defaults&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl3d,i=0;i&lt;n.length;i++){var s=n[i],l=o(r,&quot;gl3d&quot;,s),c=e[s],u=c.camera,f=c._scene;f||(f=new a({id:s,graphDiv:t,container:t.querySelector(&quot;.gl-container&quot;),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio,camera:u},e),c._scene=f),f.viewInitial||(f.viewInitial={up:{x:u.up.x,y:u.up.y,z:u.up.z},eye:{x:u.eye.x,y:u.eye.y,z:u.eye.z},center:{x:u.center.x,y:u.center.y,z:u.center.z}}),f.plot(l,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl3d||[],a=0;a&lt;i.length;a++){var o=i[a];!e[o]&amp;&amp;n[o]._scene&amp;&amp;(n[o]._scene.destroy(),n._infolayer&amp;&amp;n._infolayer.selectAll(&quot;.annotation-&quot;+o).remove())}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=e._size,i=0;i&lt;r.length;i++){var a=e[r[i]],o=a.domain,s=a._scene,c=s.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:l.svg,&quot;xlink:href&quot;:c,x:n.l+n.w*o.x[0],y:n.t+n.h*(1-o.y[1]),width:n.w*(o.x[1]-o.x[0]),height:n.h*(o.y[1]-o.y[0]),preserveAspectRatio:&quot;none&quot;}),s.destroy()}},r.cleanId=function(t){if(t.match(/^scene[0-9]*$/)){var e=t.substr(5);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),&quot;scene&quot;+e}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n&lt;r.length;n++){e[r[n]]._scene.updateFx(e.dragmode,e.hovermode)}}},{&quot;../../components/fx/layout_attributes&quot;:684,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;../get_data&quot;:865,&quot;./layout/attributes&quot;:871,&quot;./layout/defaults&quot;:875,&quot;./layout/layout_attributes&quot;:876,&quot;./scene&quot;:880}],871:[function(t,e,r){&quot;use strict&quot;;e.exports={scene:{valType:&quot;subplotid&quot;,dflt:&quot;scene&quot;,editType:&quot;calc+clearAxisTypes&quot;}}},{}],872:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../components/color&quot;),i=t(&quot;../../cartesian/layout_attributes&quot;),a=t(&quot;../../../lib/extend&quot;).extendFlat,o=t(&quot;../../../plot_api/edit_types&quot;).overrideAll;e.exports=o({visible:i.visible,showspikes:{valType:&quot;boolean&quot;,dflt:!0},spikesides:{valType:&quot;boolean&quot;,dflt:!0},spikethickness:{valType:&quot;number&quot;,min:0,dflt:2},spikecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},showbackground:{valType:&quot;boolean&quot;,dflt:!1},backgroundcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(204, 204, 204, 0.5)&quot;},showaxeslabels:{valType:&quot;boolean&quot;,dflt:!0},color:i.color,categoryorder:i.categoryorder,categoryarray:i.categoryarray,title:{text:i.title.text,font:i.title.font},type:a({},i.type,{values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;]}),autotypenumbers:i.autotypenumbers,autorange:i.autorange,rangemode:i.rangemode,range:a({},i.range,{items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],anim:!1}),tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,mirror:i.mirror,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,tickfont:i.tickfont,tickangle:i.tickangle,tickprefix:i.tickprefix,showtickprefix:i.showtickprefix,ticksuffix:i.ticksuffix,showticksuffix:i.showticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickformat:i.tickformat,tickformatstops:i.tickformatstops,hoverformat:i.hoverformat,showline:i.showline,linecolor:i.linecolor,linewidth:i.linewidth,showgrid:i.showgrid,gridcolor:a({},i.gridcolor,{dflt:&quot;rgb(204, 204, 204)&quot;}),gridwidth:i.gridwidth,zeroline:i.zeroline,zerolinecolor:i.zerolinecolor,zerolinewidth:i.zerolinewidth,_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}},&quot;plot&quot;,&quot;from-root&quot;)},{&quot;../../../components/color&quot;:643,&quot;../../../lib/extend&quot;:768,&quot;../../../plot_api/edit_types&quot;:810,&quot;../../cartesian/layout_attributes&quot;:842}],873:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;).mix,i=t(&quot;../../../lib&quot;),a=t(&quot;../../../plot_api/plot_template&quot;),o=t(&quot;./axis_attributes&quot;),s=t(&quot;../../cartesian/type_defaults&quot;),l=t(&quot;../../cartesian/axis_defaults&quot;),c=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];e.exports=function(t,e,r){var u,f;function h(t,e){return i.coerce(u,f,o,t,e)}for(var p=0;p&lt;c.length;p++){var d=c[p];u=t[d]||{},(f=a.newContainer(e,d))._id=d[0]+r.scene,f._name=d,s(u,f,h,r),l(u,f,h,{font:r.font,letter:d[0],data:r.data,showGrid:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelposition:!0,bgColor:r.bgColor,calendar:r.calendar},r.fullLayout),h(&quot;gridcolor&quot;,n(f.color,r.bgColor,13600/187).toRgbString()),h(&quot;title.text&quot;,d[0]),f.setScale=i.noop,h(&quot;showspikes&quot;)&amp;&amp;(h(&quot;spikesides&quot;),h(&quot;spikethickness&quot;),h(&quot;spikecolor&quot;,f.color)),h(&quot;showaxeslabels&quot;),h(&quot;showbackground&quot;)&amp;&amp;h(&quot;backgroundcolor&quot;)}}},{&quot;../../../lib&quot;:778,&quot;../../../plot_api/plot_template&quot;:817,&quot;../../cartesian/axis_defaults&quot;:830,&quot;../../cartesian/type_defaults&quot;:853,&quot;./axis_attributes&quot;:872,tinycolor2:576}],874:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib/str2rgbarray&quot;),i=t(&quot;../../../lib&quot;),a=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function o(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],this.labelEnable=[!0,!0,!0],this.labelFont=[&quot;Open Sans&quot;,&quot;Open Sans&quot;,&quot;Open Sans&quot;],this.labelSize=[20,20,20],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}o.prototype.merge=function(t,e){for(var r=0;r&lt;3;++r){var o=e[a[r]];o.visible?(this.labels[r]=t._meta?i.templateString(o.title.text,t._meta):o.title.text,&quot;font&quot;in o.title&amp;&amp;(o.title.font.color&amp;&amp;(this.labelColor[r]=n(o.title.font.color)),o.title.font.family&amp;&amp;(this.labelFont[r]=o.title.font.family),o.title.font.size&amp;&amp;(this.labelSize[r]=o.title.font.size)),&quot;showline&quot;in o&amp;&amp;(this.lineEnable[r]=o.showline),&quot;linecolor&quot;in o&amp;&amp;(this.lineColor[r]=n(o.linecolor)),&quot;linewidth&quot;in o&amp;&amp;(this.lineWidth[r]=o.linewidth),&quot;showgrid&quot;in o&amp;&amp;(this.gridEnable[r]=o.showgrid),&quot;gridcolor&quot;in o&amp;&amp;(this.gridColor[r]=n(o.gridcolor)),&quot;gridwidth&quot;in o&amp;&amp;(this.gridWidth[r]=o.gridwidth),&quot;log&quot;===o.type?this.zeroEnable[r]=!1:&quot;zeroline&quot;in o&amp;&amp;(this.zeroEnable[r]=o.zeroline),&quot;zerolinecolor&quot;in o&amp;&amp;(this.zeroLineColor[r]=n(o.zerolinecolor)),&quot;zerolinewidth&quot;in o&amp;&amp;(this.zeroLineWidth[r]=o.zerolinewidth),&quot;ticks&quot;in o&amp;&amp;o.ticks?this.lineTickEnable[r]=!0:this.lineTickEnable[r]=!1,&quot;ticklen&quot;in o&amp;&amp;(this.lineTickLength[r]=this._defaultLineTickLength[r]=o.ticklen),&quot;tickcolor&quot;in o&amp;&amp;(this.lineTickColor[r]=n(o.tickcolor)),&quot;tickwidth&quot;in o&amp;&amp;(this.lineTickWidth[r]=o.tickwidth),&quot;tickangle&quot;in o&amp;&amp;(this.tickAngle[r]=&quot;auto&quot;===o.tickangle?-3600:Math.PI*-o.tickangle/180),&quot;showticklabels&quot;in o&amp;&amp;(this.tickEnable[r]=o.showticklabels),&quot;tickfont&quot;in o&amp;&amp;(o.tickfont.color&amp;&amp;(this.tickColor[r]=n(o.tickfont.color)),o.tickfont.family&amp;&amp;(this.tickFont[r]=o.tickfont.family),o.tickfont.size&amp;&amp;(this.tickSize[r]=o.tickfont.size)),&quot;mirror&quot;in o?-1!==[&quot;ticks&quot;,&quot;all&quot;,&quot;allticks&quot;].indexOf(o.mirror)?(this.lineTickMirror[r]=!0,this.lineMirror[r]=!0):!0===o.mirror?(this.lineTickMirror[r]=!1,this.lineMirror[r]=!0):(this.lineTickMirror[r]=!1,this.lineMirror[r]=!1):this.lineMirror[r]=!1,&quot;showbackground&quot;in o&amp;&amp;!1!==o.showbackground?(this.backgroundEnable[r]=!0,this.backgroundColor[r]=n(o.backgroundcolor)):this.backgroundEnable[r]=!1):(this.tickEnable[r]=!1,this.labelEnable[r]=!1,this.lineEnable[r]=!1,this.lineTickEnable[r]=!1,this.gridEnable[r]=!1,this.zeroEnable[r]=!1,this.backgroundEnable[r]=!1)}},e.exports=function(t,e){var r=new o;return r.merge(t,e),r}},{&quot;../../../lib&quot;:778,&quot;../../../lib/str2rgbarray&quot;:802}],875:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib&quot;),i=t(&quot;../../../components/color&quot;),a=t(&quot;../../../registry&quot;),o=t(&quot;../../subplot_defaults&quot;),s=t(&quot;./axis_defaults&quot;),l=t(&quot;./layout_attributes&quot;),c=t(&quot;../../get_data&quot;).getSubplotData;function u(t,e,r,n){for(var o=r(&quot;bgcolor&quot;),l=i.combine(o,n.paper_bgcolor),u=[&quot;up&quot;,&quot;center&quot;,&quot;eye&quot;],f=0;f&lt;u.length;f++)r(&quot;camera.&quot;+u[f]+&quot;.x&quot;),r(&quot;camera.&quot;+u[f]+&quot;.y&quot;),r(&quot;camera.&quot;+u[f]+&quot;.z&quot;);r(&quot;camera.projection.type&quot;);var h=!!r(&quot;aspectratio.x&quot;)&amp;&amp;!!r(&quot;aspectratio.y&quot;)&amp;&amp;!!r(&quot;aspectratio.z&quot;),p=r(&quot;aspectmode&quot;,h?&quot;manual&quot;:&quot;auto&quot;);h||(t.aspectratio=e.aspectratio={x:1,y:1,z:1},&quot;manual&quot;===p&amp;&amp;(e.aspectmode=&quot;auto&quot;),t.aspectmode=e.aspectmode);var d=c(n.fullData,&quot;gl3d&quot;,n.id);s(t,e,{font:n.font,scene:n.id,data:d,bgColor:l,calendar:n.calendar,autotypenumbersDflt:n.autotypenumbersDflt,fullLayout:n.fullLayout}),a.getComponentMethod(&quot;annotations3d&quot;,&quot;handleDefaults&quot;)(t,e,n);var g=n.getDfltFromLayout(&quot;dragmode&quot;);if(!1!==g&amp;&amp;!g)if(g=&quot;orbit&quot;,t.camera&amp;&amp;t.camera.up){var m=t.camera.up.x,v=t.camera.up.y,y=t.camera.up.z;0!==y&amp;&amp;(m&amp;&amp;v&amp;&amp;y?y/Math.sqrt(m*m+v*v+y*y)&gt;.999&amp;&amp;(g=&quot;turntable&quot;):g=&quot;turntable&quot;)}else g=&quot;turntable&quot;;r(&quot;dragmode&quot;,g),r(&quot;hovermode&quot;,n.getDfltFromLayout(&quot;hovermode&quot;))}e.exports=function(t,e,r){var i=e._basePlotModules.length&gt;1;o(t,e,r,{type:&quot;gl3d&quot;,attributes:l,handleDefaults:u,fullLayout:e,font:e.font,fullData:r,getDfltFromLayout:function(e){if(!i)return n.validate(t[e],l[e])?t[e]:void 0},autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,calendar:e.calendar})}},{&quot;../../../components/color&quot;:643,&quot;../../../lib&quot;:778,&quot;../../../registry&quot;:911,&quot;../../get_data&quot;:865,&quot;../../subplot_defaults&quot;:905,&quot;./axis_defaults&quot;:873,&quot;./layout_attributes&quot;:876}],876:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./axis_attributes&quot;),i=t(&quot;../../domain&quot;).attributes,a=t(&quot;../../../lib/extend&quot;).extendFlat,o=t(&quot;../../../lib&quot;).counterRegex;function s(t,e,r){return{x:{valType:&quot;number&quot;,dflt:t,editType:&quot;camera&quot;},y:{valType:&quot;number&quot;,dflt:e,editType:&quot;camera&quot;},z:{valType:&quot;number&quot;,dflt:r,editType:&quot;camera&quot;},editType:&quot;camera&quot;}}e.exports={_arrayAttrRegexps:[o(&quot;scene&quot;,&quot;.annotations&quot;,!0)],bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;plot&quot;},camera:{up:a(s(0,0,1),{}),center:a(s(0,0,0),{}),eye:a(s(1.25,1.25,1.25),{}),projection:{type:{valType:&quot;enumerated&quot;,values:[&quot;perspective&quot;,&quot;orthographic&quot;],dflt:&quot;perspective&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;camera&quot;},domain:i({name:&quot;scene&quot;,editType:&quot;plot&quot;}),aspectmode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;cube&quot;,&quot;data&quot;,&quot;manual&quot;],dflt:&quot;auto&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;aspectratio.x&quot;:void 0,&quot;aspectratio.y&quot;:void 0,&quot;aspectratio.z&quot;:void 0}},aspectratio:{x:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},y:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},z:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},editType:&quot;plot&quot;,impliedEdits:{aspectmode:&quot;manual&quot;}},xaxis:n,yaxis:n,zaxis:n,dragmode:{valType:&quot;enumerated&quot;,values:[&quot;orbit&quot;,&quot;turntable&quot;,&quot;zoom&quot;,&quot;pan&quot;,!1],editType:&quot;plot&quot;},hovermode:{valType:&quot;enumerated&quot;,values:[&quot;closest&quot;,!1],dflt:&quot;closest&quot;,editType:&quot;modebar&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;plot&quot;,_deprecated:{cameraposition:{valType:&quot;info_array&quot;,editType:&quot;camera&quot;}}}},{&quot;../../../lib&quot;:778,&quot;../../../lib/extend&quot;:768,&quot;../../domain&quot;:855,&quot;./axis_attributes&quot;:872}],877:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib/str2rgbarray&quot;),i=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function a(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}a.prototype.merge=function(t){for(var e=0;e&lt;3;++e){var r=t[i[e]];r.visible?(this.enabled[e]=r.showspikes,this.colors[e]=n(r.spikecolor),this.drawSides[e]=r.spikesides,this.lineWidth[e]=r.spikethickness):(this.enabled[e]=!1,this.drawSides[e]=!1)}},e.exports=function(t){var e=new a;return e.merge(t),e}},{&quot;../../../lib/str2rgbarray&quot;:802}],878:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.axesOptions,r=t.glplot.axesPixels,s=t.fullSceneLayout,l=[[],[],[]],c=0;c&lt;3;++c){var u=s[a[c]];if(u._length=(r[c].hi-r[c].lo)*r[c].pixelsPerDataUnit/t.dataScale[c],Math.abs(u._length)===1/0||isNaN(u._length))l[c]=[];else{u._input_range=u.range.slice(),u.range[0]=r[c].lo/t.dataScale[c],u.range[1]=r[c].hi/t.dataScale[c],u._m=1/(t.dataScale[c]*r[c].pixelsPerDataUnit),u.range[0]===u.range[1]&amp;&amp;(u.range[0]-=1,u.range[1]+=1);var f=u.tickmode;if(&quot;auto&quot;===u.tickmode){u.tickmode=&quot;linear&quot;;var h=u.nticks||i.constrain(u._length/40,4,9);n.autoTicks(u,Math.abs(u.range[1]-u.range[0])/h)}for(var p=n.calcTicks(u,{msUTC:!0}),d=0;d&lt;p.length;++d)p[d].x=p[d].x*t.dataScale[c],&quot;date&quot;===u.type&amp;&amp;(p[d].text=p[d].text.replace(/\&lt;br\&gt;/g,&quot; &quot;));l[c]=p,u.tickmode=f}}e.ticks=l;for(c=0;c&lt;3;++c){o[c]=.5*(t.glplot.bounds[0][c]+t.glplot.bounds[1][c]);for(d=0;d&lt;2;++d)e.bounds[d][c]=t.glplot.bounds[d][c]}t.contourLevels=function(t){for(var e=new Array(3),r=0;r&lt;3;++r){for(var n=t[r],i=new Array(n.length),a=0;a&lt;n.length;++a)i[a]=n[a].x;e[r]=i}return e}(l)};var n=t(&quot;../../cartesian/axes&quot;),i=t(&quot;../../../lib&quot;),a=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;],o=[0,0,0]},{&quot;../../../lib&quot;:778,&quot;../../cartesian/axes&quot;:828}],879:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r,n,i=[0,0,0,0];for(r=0;r&lt;4;++r)for(n=0;n&lt;4;++n)i[n]+=t[4*r+n]*e[r];return i}e.exports=function(t,e){return n(t.projection,n(t.view,n(t.model,[e[0],e[1],e[2],1])))}},{}],880:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;gl-plot3d&quot;),o=a.createCamera,s=a.createScene,l=t(&quot;webgl-context&quot;),c=t(&quot;has-passive-events&quot;),u=t(&quot;../../registry&quot;),f=t(&quot;../../lib&quot;),h=f.preserveDrawingBuffer(),p=t(&quot;../../plots/cartesian/axes&quot;),d=t(&quot;../../components/fx&quot;),g=t(&quot;../../lib/str2rgbarray&quot;),m=t(&quot;../../lib/show_no_webgl_msg&quot;),v=t(&quot;./project&quot;),y=t(&quot;./layout/convert&quot;),x=t(&quot;./layout/spikes&quot;),b=t(&quot;./layout/tick_marks&quot;);function _(t,e){var r=document.createElement(&quot;div&quot;),n=t.container;this.graphDiv=t.graphDiv;var i=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);i.style.position=&quot;absolute&quot;,i.style.top=i.style.left=&quot;0px&quot;,i.style.width=i.style.height=&quot;100%&quot;,i.style[&quot;z-index&quot;]=20,i.style[&quot;pointer-events&quot;]=&quot;none&quot;,r.appendChild(i),this.svgContainer=i,r.id=t.id,r.style.position=&quot;absolute&quot;,r.style.top=r.style.left=&quot;0px&quot;,r.style.width=r.style.height=&quot;100%&quot;,n.appendChild(r),this.fullLayout=e,this.id=t.id||&quot;scene&quot;,this.fullSceneLayout=e[this.id],this.plotArgs=[[],{},{}],this.axesOptions=y(e,e[this.id]),this.spikeOptions=x(e[this.id]),this.container=r,this.staticMode=!!t.staticPlot,this.pixelRatio=this.pixelRatio||t.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=u.getComponentMethod(&quot;annotations3d&quot;,&quot;convert&quot;),this.drawAnnotations=u.getComponentMethod(&quot;annotations3d&quot;,&quot;draw&quot;),this.initializeGLPlot()}var w=_.prototype;w.prepareOptions=function(){var t={canvas:this.canvas,gl:this.gl,glOptions:{preserveDrawingBuffer:h,premultipliedAlpha:!0,antialias:!0},container:this.container,axes:this.axesOptions,spikes:this.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:this.camera,pixelRatio:this.pixelRatio};if(this.staticMode){if(!(i||(n=document.createElement(&quot;canvas&quot;),i=l({canvas:n,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error(&quot;error creating static canvas/context for image server&quot;);t.gl=i,t.canvas=n}return t};var T=!0;w.tryCreatePlot=function(){var t=this.prepareOptions(),e=!0;try{this.glplot=s(t)}catch(r){if(this.staticMode||!T||h)e=!1;else{f.warn([&quot;webgl setup failed possibly due to&quot;,&quot;false preserveDrawingBuffer config.&quot;,&quot;The mobile/tablet device may not be detected by is-mobile module.&quot;,&quot;Enabling preserveDrawingBuffer in second attempt to create webgl scene...&quot;].join(&quot; &quot;));try{h=t.glOptions.preserveDrawingBuffer=!0,this.glplot=s(t)}catch(r){h=t.glOptions.preserveDrawingBuffer=!1,e=!1}}}return T=!1,e},w.initializeGLCamera=function(){var t=this.fullSceneLayout.camera,e=&quot;orthographic&quot;===t.projection.type;this.camera=o(this.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:e,zoomMin:.01,zoomMax:100,mode:&quot;orbit&quot;})},w.initializeGLPlot=function(){var t=this;if(t.initializeGLCamera(),!t.tryCreatePlot())return m(t);t.traces={},t.make4thDimension();var e=t.graphDiv,r=e.layout,n=function(){var e={};return t.isCameraChanged(r)&amp;&amp;(e[t.id+&quot;.camera&quot;]=t.getCamera()),t.isAspectChanged(r)&amp;&amp;(e[t.id+&quot;.aspectratio&quot;]=t.glplot.getAspectratio(),&quot;manual&quot;!==r[t.id].aspectmode&amp;&amp;(t.fullSceneLayout.aspectmode=r[t.id].aspectmode=e[t.id+&quot;.aspectmode&quot;]=&quot;manual&quot;)),e},i=function(t){if(!1!==t.fullSceneLayout.dragmode){var e=n();t.saveLayout(r),t.graphDiv.emit(&quot;plotly_relayout&quot;,e)}};return t.glplot.canvas&amp;&amp;(t.glplot.canvas.addEventListener(&quot;mouseup&quot;,(function(){i(t)})),t.glplot.canvas.addEventListener(&quot;wheel&quot;,(function(r){if(e._context._scrollZoom.gl3d){if(t.camera._ortho){var n=r.deltaX&gt;r.deltaY?1.1:1/1.1,a=t.glplot.getAspectratio();t.glplot.setAspectratio({x:n*a.x,y:n*a.y,z:n*a.z})}i(t)}}),!!c&amp;&amp;{passive:!1}),t.glplot.canvas.addEventListener(&quot;mousemove&quot;,(function(){if(!1!==t.fullSceneLayout.dragmode&amp;&amp;0!==t.camera.mouseListener.buttons){var e=n();t.graphDiv.emit(&quot;plotly_relayouting&quot;,e)}})),t.staticMode||t.glplot.canvas.addEventListener(&quot;webglcontextlost&quot;,(function(r){e&amp;&amp;e.emit&amp;&amp;e.emit(&quot;plotly_webglcontextlost&quot;,{event:r,layer:t.id})}),!1)),t.glplot.oncontextloss=function(){t.recoverContext()},t.glplot.onrender=function(){t.render()},!0},w.render=function(){var t,e=this,r=e.graphDiv,n=e.svgContainer,i=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var a=r._fullLayout._invScaleX,o=r._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,&quot;viewBox&quot;,&quot;0 0 &quot;+s+&quot; &quot;+l),n.setAttributeNS(null,&quot;width&quot;,s),n.setAttributeNS(null,&quot;height&quot;,l),b(e),e.glplot.axes.update(e.axesOptions);for(var c,u=Object.keys(e.traces),h=null,g=e.glplot.selection,m=0;m&lt;u.length;++m)&quot;skip&quot;!==(t=e.traces[u[m]]).data.hoverinfo&amp;&amp;t.handlePick(g)&amp;&amp;(h=t),t.setContourLevels&amp;&amp;t.setContourLevels();function y(t,r){var n=e.fullSceneLayout[t];return p.tickText(n,n.d2l(r),&quot;hover&quot;).text}if(null!==h){var x=v(e.glplot.cameraParams,g.dataCoordinate);t=h.data;var _,w=r._fullData[t.index],T=g.index,k={xLabel:y(&quot;xaxis&quot;,g.traceCoordinate[0]),yLabel:y(&quot;yaxis&quot;,g.traceCoordinate[1]),zLabel:y(&quot;zaxis&quot;,g.traceCoordinate[2])},M=d.castHoverinfo(w,e.fullLayout,T),A=(M||&quot;&quot;).split(&quot;+&quot;),S=M&amp;&amp;&quot;all&quot;===M;w.hovertemplate||S||(-1===A.indexOf(&quot;x&quot;)&amp;&amp;(k.xLabel=void 0),-1===A.indexOf(&quot;y&quot;)&amp;&amp;(k.yLabel=void 0),-1===A.indexOf(&quot;z&quot;)&amp;&amp;(k.zLabel=void 0),-1===A.indexOf(&quot;text&quot;)&amp;&amp;(g.textLabel=void 0),-1===A.indexOf(&quot;name&quot;)&amp;&amp;(h.name=void 0));var E=[];&quot;cone&quot;===t.type||&quot;streamtube&quot;===t.type?(k.uLabel=y(&quot;xaxis&quot;,g.traceCoordinate[3]),(S||-1!==A.indexOf(&quot;u&quot;))&amp;&amp;E.push(&quot;u: &quot;+k.uLabel),k.vLabel=y(&quot;yaxis&quot;,g.traceCoordinate[4]),(S||-1!==A.indexOf(&quot;v&quot;))&amp;&amp;E.push(&quot;v: &quot;+k.vLabel),k.wLabel=y(&quot;zaxis&quot;,g.traceCoordinate[5]),(S||-1!==A.indexOf(&quot;w&quot;))&amp;&amp;E.push(&quot;w: &quot;+k.wLabel),k.normLabel=g.traceCoordinate[6].toPrecision(3),(S||-1!==A.indexOf(&quot;norm&quot;))&amp;&amp;E.push(&quot;norm: &quot;+k.normLabel),&quot;streamtube&quot;===t.type&amp;&amp;(k.divergenceLabel=g.traceCoordinate[7].toPrecision(3),(S||-1!==A.indexOf(&quot;divergence&quot;))&amp;&amp;E.push(&quot;divergence: &quot;+k.divergenceLabel)),g.textLabel&amp;&amp;E.push(g.textLabel),_=E.join(&quot;&lt;br&gt;&quot;)):&quot;isosurface&quot;===t.type||&quot;volume&quot;===t.type?(k.valueLabel=p.tickText(e._mockAxis,e._mockAxis.d2l(g.traceCoordinate[3]),&quot;hover&quot;).text,E.push(&quot;value: &quot;+k.valueLabel),g.textLabel&amp;&amp;E.push(g.textLabel),_=E.join(&quot;&lt;br&gt;&quot;)):_=g.textLabel;var C={x:g.traceCoordinate[0],y:g.traceCoordinate[1],z:g.traceCoordinate[2],data:w._input,fullData:w,curveNumber:w.index,pointNumber:T};d.appendArrayPointValue(C,w,T),t._module.eventData&amp;&amp;(C=w._module.eventData(C,g,w,{},T));var L={points:[C]};e.fullSceneLayout.hovermode&amp;&amp;d.loneHover({trace:w,x:(.5+.5*x[0]/x[3])*s,y:(.5-.5*x[1]/x[3])*l,xLabel:k.xLabel,yLabel:k.yLabel,zLabel:k.zLabel,text:_,name:h.name,color:d.castHoverOption(w,T,&quot;bgcolor&quot;)||h.color,borderColor:d.castHoverOption(w,T,&quot;bordercolor&quot;),fontFamily:d.castHoverOption(w,T,&quot;font.family&quot;),fontSize:d.castHoverOption(w,T,&quot;font.size&quot;),fontColor:d.castHoverOption(w,T,&quot;font.color&quot;),nameLength:d.castHoverOption(w,T,&quot;namelength&quot;),textAlign:d.castHoverOption(w,T,&quot;align&quot;),hovertemplate:f.castOption(w,T,&quot;hovertemplate&quot;),hovertemplateLabels:f.extendFlat({},C,k),eventData:[C]},{container:n,gd:r}),g.buttons&amp;&amp;g.distance&lt;5?r.emit(&quot;plotly_click&quot;,L):r.emit(&quot;plotly_hover&quot;,L),c=L}else d.loneUnhover(n),r.emit(&quot;plotly_unhover&quot;,c);e.drawAnnotations(e)},w.recoverContext=function(){var t=this;t.glplot.dispose();var e=function(){t.glplot.gl.isContextLost()?requestAnimationFrame(e):t.initializeGLPlot()?t.plot.apply(t,t.plotArgs):f.error(&quot;Catastrophic and unrecoverable WebGL error. Context lost.&quot;)};requestAnimationFrame(e)};var k=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function M(t,e,r){for(var n=t.fullSceneLayout,i=0;i&lt;3;i++){var a=k[i],o=a.charAt(0),s=n[a],l=e[o],c=e[o+&quot;calendar&quot;],u=e[&quot;_&quot;+o+&quot;length&quot;];if(f.isArrayOrTypedArray(l))for(var h,p=0;p&lt;(u||l.length);p++)if(f.isArrayOrTypedArray(l[p]))for(var d=0;d&lt;l[p].length;++d)h=s.d2l(l[p][d],0,c),!isNaN(h)&amp;&amp;isFinite(h)&amp;&amp;(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else h=s.d2l(l[p],0,c),!isNaN(h)&amp;&amp;isFinite(h)&amp;&amp;(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],u-1)}}w.plot=function(t,e,r){if(this.plotArgs=[t,e,r],!this.glplot.contextLost){var n,i,a,o,s,l,c=e[this.id],u=r[this.id];this.fullLayout=e,this.fullSceneLayout=c,this.axesOptions.merge(e,c),this.spikeOptions.merge(c),this.setViewport(c),this.updateFx(c.dragmode,c.hovermode),this.camera.enableWheel=this.graphDiv._context._scrollZoom.gl3d,this.glplot.setClearColor(g(c.bgcolor)),this.setConvert(s),t?Array.isArray(t)||(t=[t]):t=[];var f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(a=0;a&lt;t.length;++a)!0===(n=t[a]).visible&amp;&amp;0!==n._length&amp;&amp;M(this,n,f);!function(t,e){for(var r=t.fullSceneLayout,n=r.annotations||[],i=0;i&lt;3;i++)for(var a=k[i],o=a.charAt(0),s=r[a],l=0;l&lt;n.length;l++){var c=n[l];if(c.visible){var u=s.r2l(c[o]);!isNaN(u)&amp;&amp;isFinite(u)&amp;&amp;(e[0][i]=Math.min(e[0][i],u),e[1][i]=Math.max(e[1][i],u))}}}(this,f);var h=[1,1,1];for(o=0;o&lt;3;++o)f[1][o]===f[0][o]?h[o]=1:h[o]=1/(f[1][o]-f[0][o]);for(this.dataScale=h,this.convertAnnotations(this),a=0;a&lt;t.length;++a)!0===(n=t[a]).visible&amp;&amp;0!==n._length&amp;&amp;((i=this.traces[n.uid])?i.data.type===n.type?i.update(n):(i.dispose(),i=n._module.plot(this,n),this.traces[n.uid]=i):(i=n._module.plot(this,n),this.traces[n.uid]=i),i.name=n.name);var p=Object.keys(this.traces);t:for(a=0;a&lt;p.length;++a){for(o=0;o&lt;t.length;++o)if(t[o].uid===p[a]&amp;&amp;!0===t[o].visible&amp;&amp;0!==t[o]._length)continue t;(i=this.traces[p[a]]).dispose(),delete this.traces[p[a]]}this.glplot.objects.sort((function(t,e){return t._trace.data.index-e._trace.data.index}));var d,m=[[0,0,0],[0,0,0]],v=[],y={};for(a=0;a&lt;3;++a){if((l=(s=c[k[a]]).type)in y?(y[l].acc*=h[a],y[l].count+=1):y[l]={acc:h[a],count:1},s.autorange){m[0][a]=1/0,m[1][a]=-1/0;var x=this.glplot.objects,b=this.fullSceneLayout.annotations||[],_=s._name.charAt(0);for(o=0;o&lt;x.length;o++){var w=x[o],T=w.bounds,A=w._trace.data._pad||0;&quot;ErrorBars&quot;===w.constructor.name&amp;&amp;s._lowerLogErrorBound?m[0][a]=Math.min(m[0][a],s._lowerLogErrorBound):m[0][a]=Math.min(m[0][a],T[0][a]/h[a]-A),m[1][a]=Math.max(m[1][a],T[1][a]/h[a]+A)}for(o=0;o&lt;b.length;o++){var S=b[o];if(S.visible){var E=s.r2l(S[_]);m[0][a]=Math.min(m[0][a],E),m[1][a]=Math.max(m[1][a],E)}}if(&quot;rangemode&quot;in s&amp;&amp;&quot;tozero&quot;===s.rangemode&amp;&amp;(m[0][a]=Math.min(m[0][a],0),m[1][a]=Math.max(m[1][a],0)),m[0][a]&gt;m[1][a])m[0][a]=-1,m[1][a]=1;else{var C=m[1][a]-m[0][a];m[0][a]-=C/32,m[1][a]+=C/32}if(&quot;reversed&quot;===s.autorange){var L=m[0][a];m[0][a]=m[1][a],m[1][a]=L}}else{var I=s.range;m[0][a]=s.r2l(I[0]),m[1][a]=s.r2l(I[1])}m[0][a]===m[1][a]&amp;&amp;(m[0][a]-=1,m[1][a]+=1),v[a]=m[1][a]-m[0][a],this.glplot.setBounds(a,{min:m[0][a]*h[a],max:m[1][a]*h[a]})}var P=c.aspectmode;if(&quot;cube&quot;===P)d=[1,1,1];else if(&quot;manual&quot;===P){var z=c.aspectratio;d=[z.x,z.y,z.z]}else{if(&quot;auto&quot;!==P&amp;&amp;&quot;data&quot;!==P)throw new Error(&quot;scene.js aspectRatio was not one of the enumerated types&quot;);var O=[1,1,1];for(a=0;a&lt;3;++a){var D=y[l=(s=c[k[a]]).type];O[a]=Math.pow(D.acc,1/D.count)/h[a]}d=&quot;data&quot;===P||Math.max.apply(null,O)/Math.min.apply(null,O)&lt;=4?O:[1,1,1]}c.aspectratio.x=u.aspectratio.x=d[0],c.aspectratio.y=u.aspectratio.y=d[1],c.aspectratio.z=u.aspectratio.z=d[2],this.glplot.setAspectratio(c.aspectratio),this.viewInitial.aspectratio||(this.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),this.viewInitial.aspectmode||(this.viewInitial.aspectmode=c.aspectmode);var R=c.domain||null,F=e._size||null;if(R&amp;&amp;F){var B=this.container.style;B.position=&quot;absolute&quot;,B.left=F.l+R.x[0]*F.w+&quot;px&quot;,B.top=F.t+(1-R.y[1])*F.h+&quot;px&quot;,B.width=F.w*(R.x[1]-R.x[0])+&quot;px&quot;,B.height=F.h*(R.y[1]-R.y[0])+&quot;px&quot;}this.glplot.redraw()}},w.destroy=function(){this.glplot&amp;&amp;(this.camera.mouseListener.enabled=!1,this.container.removeEventListener(&quot;wheel&quot;,this.camera.wheelListener),this.camera=null,this.glplot.dispose(),this.container.parentNode.removeChild(this.container),this.glplot=null)},w.getCamera=function(){var t;return this.camera.view.recalcMatrix(this.camera.view.lastT()),{up:{x:(t=this.camera).up[0],y:t.up[1],z:t.up[2]},center:{x:t.center[0],y:t.center[1],z:t.center[2]},eye:{x:t.eye[0],y:t.eye[1],z:t.eye[2]},projection:{type:!0===t._ortho?&quot;orthographic&quot;:&quot;perspective&quot;}}},w.setViewport=function(t){var e,r=t.camera;this.camera.lookAt.apply(this,[[(e=r).eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]),this.glplot.setAspectratio(t.aspectratio),&quot;orthographic&quot;===r.projection.type!==this.camera._ortho&amp;&amp;(this.glplot.redraw(),this.glplot.clearRGBA(),this.glplot.dispose(),this.initializeGLPlot())},w.isCameraChanged=function(t){var e=this.getCamera(),r=f.nestedProperty(t,this.id+&quot;.camera&quot;).get();function n(t,e,r,n){var i=[&quot;up&quot;,&quot;center&quot;,&quot;eye&quot;],a=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];return e[i[r]]&amp;&amp;t[i[r]][a[n]]===e[i[r]][a[n]]}var i=!1;if(void 0===r)i=!0;else{for(var a=0;a&lt;3;a++)for(var o=0;o&lt;3;o++)if(!n(e,r,a,o)){i=!0;break}(!r.projection||e.projection&amp;&amp;e.projection.type!==r.projection.type)&amp;&amp;(i=!0)}return i},w.isAspectChanged=function(t){var e=this.glplot.getAspectratio(),r=f.nestedProperty(t,this.id+&quot;.aspectratio&quot;).get();return void 0===r||r.x!==e.x||r.y!==e.y||r.z!==e.z},w.saveLayout=function(t){var e,r,n,i,a,o,s=this.fullLayout,l=this.isCameraChanged(t),c=this.isAspectChanged(t),h=l||c;if(h){var p={};if(l&amp;&amp;(e=this.getCamera(),n=(r=f.nestedProperty(t,this.id+&quot;.camera&quot;)).get(),p[this.id+&quot;.camera&quot;]=n),c&amp;&amp;(i=this.glplot.getAspectratio(),o=(a=f.nestedProperty(t,this.id+&quot;.aspectratio&quot;)).get(),p[this.id+&quot;.aspectratio&quot;]=o),u.call(&quot;_storeDirectGUIEdit&quot;,t,s._preGUI,p),l)r.set(e),f.nestedProperty(s,this.id+&quot;.camera&quot;).set(e);if(c)a.set(i),f.nestedProperty(s,this.id+&quot;.aspectratio&quot;).set(i),this.glplot.redraw()}return h},w.updateFx=function(t,e){var r=this.camera;if(r)if(&quot;orbit&quot;===t)r.mode=&quot;orbit&quot;,r.keyBindingMode=&quot;rotate&quot;;else if(&quot;turntable&quot;===t){r.up=[0,0,1],r.mode=&quot;turntable&quot;,r.keyBindingMode=&quot;rotate&quot;;var n=this.graphDiv,i=n._fullLayout,a=this.fullSceneLayout.camera,o=a.up.x,s=a.up.y,l=a.up.z;if(l/Math.sqrt(o*o+s*s+l*l)&lt;.999){var c=this.id+&quot;.camera.up&quot;,h={x:0,y:0,z:1},p={};p[c]=h;var d=n.layout;u.call(&quot;_storeDirectGUIEdit&quot;,d,i._preGUI,p),a.up=h,f.nestedProperty(d,c).set(h)}}else r.keyBindingMode=t;this.fullSceneLayout.hovermode=e},w.toImage=function(t){t||(t=&quot;png&quot;),this.staticMode&amp;&amp;this.container.appendChild(n),this.glplot.redraw();var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a),function(t,e,r){for(var n=0,i=r-1;n&lt;i;++n,--i)for(var a=0;a&lt;e;++a)for(var o=0;o&lt;4;++o){var s=4*(e*n+a)+o,l=4*(e*i+a)+o,c=t[s];t[s]=t[l],t[l]=c}}(a,r,i),function(t,e,r){for(var n=0;n&lt;r;++n)for(var i=0;i&lt;e;++i){var a=4*(e*n+i),o=t[a+3];if(o&gt;0)for(var s=255/o,l=0;l&lt;3;++l)t[a+l]=Math.min(s*t[a+l],255)}}(a,r,i);var o=document.createElement(&quot;canvas&quot;);o.width=r,o.height=i;var s,l=o.getContext(&quot;2d&quot;),c=l.createImageData(r,i);switch(c.data.set(a),l.putImageData(c,0,0),t){case&quot;jpeg&quot;:s=o.toDataURL(&quot;image/jpeg&quot;);break;case&quot;webp&quot;:s=o.toDataURL(&quot;image/webp&quot;);break;default:s=o.toDataURL(&quot;image/png&quot;)}return this.staticMode&amp;&amp;this.container.removeChild(n),s},w.setConvert=function(){for(var t=0;t&lt;3;t++){var e=this.fullSceneLayout[k[t]];p.setConvert(e,this.fullLayout),e.setScale=f.noop}},w.make4thDimension=function(){var t=this.graphDiv._fullLayout;this._mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},p.setConvert(this._mockAxis,t)},e.exports=_},{&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/show_no_webgl_msg&quot;:800,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./layout/convert&quot;:874,&quot;./layout/spikes&quot;:877,&quot;./layout/tick_marks&quot;:878,&quot;./project&quot;:879,&quot;gl-plot3d&quot;:321,&quot;has-passive-events&quot;:441,&quot;webgl-context&quot;:606}],881:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){n=n||t.length;for(var i=new Array(n),a=0;a&lt;n;a++)i[a]=[t[a],e[a],r[a]];return i}},{}],882:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./font_attributes&quot;),i=t(&quot;./animation_attributes&quot;),a=t(&quot;../components/color/attributes&quot;),o=t(&quot;../components/shapes/draw_newshape/attributes&quot;),s=t(&quot;./pad_attributes&quot;),l=t(&quot;../lib/extend&quot;).extendFlat,c=n({editType:&quot;calc&quot;});c.family.dflt='&quot;Open Sans&quot;, verdana, arial, sans-serif',c.size.dflt=12,c.color.dflt=a.defaultLine,e.exports={font:c,title:{text:{valType:&quot;string&quot;,editType:&quot;layoutstyle&quot;},font:n({editType:&quot;layoutstyle&quot;}),xref:{valType:&quot;enumerated&quot;,dflt:&quot;container&quot;,values:[&quot;container&quot;,&quot;paper&quot;],editType:&quot;layoutstyle&quot;},yref:{valType:&quot;enumerated&quot;,dflt:&quot;container&quot;,values:[&quot;container&quot;,&quot;paper&quot;],editType:&quot;layoutstyle&quot;},x:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;layoutstyle&quot;},y:{valType:&quot;number&quot;,min:0,max:1,dflt:&quot;auto&quot;,editType:&quot;layoutstyle&quot;},xanchor:{valType:&quot;enumerated&quot;,dflt:&quot;auto&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;layoutstyle&quot;},yanchor:{valType:&quot;enumerated&quot;,dflt:&quot;auto&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;layoutstyle&quot;},pad:l(s({editType:&quot;layoutstyle&quot;}),{}),editType:&quot;layoutstyle&quot;},uniformtext:{mode:{valType:&quot;enumerated&quot;,values:[!1,&quot;hide&quot;,&quot;show&quot;],dflt:!1,editType:&quot;plot&quot;},minsize:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},autosize:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;none&quot;},width:{valType:&quot;number&quot;,min:10,dflt:700,editType:&quot;plot&quot;},height:{valType:&quot;number&quot;,min:10,dflt:450,editType:&quot;plot&quot;},margin:{l:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},r:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},t:{valType:&quot;number&quot;,min:0,dflt:100,editType:&quot;plot&quot;},b:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},pad:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},autoexpand:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},computed:{valType:&quot;any&quot;,editType:&quot;none&quot;},paper_bgcolor:{valType:&quot;color&quot;,dflt:a.background,editType:&quot;plot&quot;},plot_bgcolor:{valType:&quot;color&quot;,dflt:a.background,editType:&quot;layoutstyle&quot;},autotypenumbers:{valType:&quot;enumerated&quot;,values:[&quot;convert types&quot;,&quot;strict&quot;],dflt:&quot;convert types&quot;,editType:&quot;calc&quot;},separators:{valType:&quot;string&quot;,editType:&quot;plot&quot;},hidesources:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},showlegend:{valType:&quot;boolean&quot;,editType:&quot;legend&quot;},colorway:{valType:&quot;colorlist&quot;,dflt:a.defaults,editType:&quot;calc&quot;},datarevision:{valType:&quot;any&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editrevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},selectionrevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},template:{valType:&quot;any&quot;,editType:&quot;calc&quot;},modebar:{orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;,editType:&quot;modebar&quot;},bgcolor:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},color:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},activecolor:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;modebar&quot;},newshape:o.newshape,activeshape:o.activeshape,meta:{valType:&quot;any&quot;,arrayOk:!0,editType:&quot;plot&quot;},transition:l({},i.transition,{editType:&quot;none&quot;}),_deprecated:{title:{valType:&quot;string&quot;,editType:&quot;layoutstyle&quot;},titlefont:n({editType:&quot;layoutstyle&quot;})}}},{&quot;../components/color/attributes&quot;:642,&quot;../components/shapes/draw_newshape/attributes&quot;:725,&quot;../lib/extend&quot;:768,&quot;./animation_attributes&quot;:822,&quot;./font_attributes&quot;:856,&quot;./pad_attributes&quot;:890}],883:[function(t,e,r){&quot;use strict&quot;;var n={&quot;open-street-map&quot;:{id:&quot;osm&quot;,version:8,sources:{&quot;plotly-osm-tiles&quot;:{type:&quot;raster&quot;,attribution:'&lt;a href=&quot;http://www.openstreetmap.org/about/&quot; target=&quot;_blank&quot;&gt;\xa9 OpenStreetMap&lt;/a&gt;',tiles:[&quot;https://a.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;,&quot;https://b.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-osm-tiles&quot;,type:&quot;raster&quot;,source:&quot;plotly-osm-tiles&quot;,minzoom:0,maxzoom:22}]},&quot;white-bg&quot;:{id:&quot;white-bg&quot;,version:8,sources:{},layers:[{id:&quot;white-bg&quot;,type:&quot;background&quot;,paint:{&quot;background-color&quot;:&quot;#FFFFFF&quot;},minzoom:0,maxzoom:22}]},&quot;carto-positron&quot;:{id:&quot;carto-positron&quot;,version:8,sources:{&quot;plotly-carto-positron&quot;:{type:&quot;raster&quot;,attribution:'&lt;a href=&quot;https://carto.com/&quot; target=&quot;_blank&quot;&gt;\xa9 CARTO&lt;/a&gt;',tiles:[&quot;https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-carto-positron&quot;,type:&quot;raster&quot;,source:&quot;plotly-carto-positron&quot;,minzoom:0,maxzoom:22}]},&quot;carto-darkmatter&quot;:{id:&quot;carto-darkmatter&quot;,version:8,sources:{&quot;plotly-carto-darkmatter&quot;:{type:&quot;raster&quot;,attribution:'&lt;a href=&quot;https://carto.com/&quot; target=&quot;_blank&quot;&gt;\xa9 CARTO&lt;/a&gt;',tiles:[&quot;https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-carto-darkmatter&quot;,type:&quot;raster&quot;,source:&quot;plotly-carto-darkmatter&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-terrain&quot;:{id:&quot;stamen-terrain&quot;,version:8,sources:{&quot;plotly-stamen-terrain&quot;:{type:&quot;raster&quot;,attribution:'Map tiles by &lt;a href=&quot;http://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt; | Data by &lt;a href=&quot;http://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt;, under &lt;a href=&quot;http://www.openstreetmap.org/copyright&quot;&gt;ODbL&lt;/a&gt;.',tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-terrain&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-terrain&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-toner&quot;:{id:&quot;stamen-toner&quot;,version:8,sources:{&quot;plotly-stamen-toner&quot;:{type:&quot;raster&quot;,attribution:'Map tiles by &lt;a href=&quot;http://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt; | Data by &lt;a href=&quot;http://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt;, under &lt;a href=&quot;http://www.openstreetmap.org/copyright&quot;&gt;ODbL&lt;/a&gt;.',tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-toner&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-toner&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-watercolor&quot;:{id:&quot;stamen-watercolor&quot;,version:8,sources:{&quot;plotly-stamen-watercolor&quot;:{type:&quot;raster&quot;,attribution:'Map tiles by &lt;a href=&quot;http://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt; | Data by &lt;a href=&quot;http://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by-sa/3.0&quot;&gt;CC BY SA&lt;/a&gt;.',tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-watercolor&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-watercolor&quot;,minzoom:0,maxzoom:22}]}},i=Object.keys(n);e.exports={requiredVersion:&quot;1.10.1&quot;,styleUrlPrefix:&quot;mapbox://styles/mapbox/&quot;,styleUrlSuffix:&quot;v9&quot;,styleValuesMapbox:[&quot;basic&quot;,&quot;streets&quot;,&quot;outdoors&quot;,&quot;light&quot;,&quot;dark&quot;,&quot;satellite&quot;,&quot;satellite-streets&quot;],styleValueDflt:&quot;basic&quot;,stylesNonMapbox:n,styleValuesNonMapbox:i,traceLayerPrefix:&quot;plotly-trace-layer-&quot;,layoutLayerPrefix:&quot;plotly-layout-layer-&quot;,wrongVersionErrorMsg:[&quot;Your custom plotly.js bundle is not using the correct mapbox-gl version&quot;,&quot;Please install mapbox-gl@1.10.1.&quot;].join(&quot;\n&quot;),noAccessTokenErrorMsg:[&quot;Missing Mapbox access token.&quot;,&quot;Mapbox trace type require a Mapbox access token to be registered.&quot;,&quot;For example:&quot;,&quot;  Plotly.plot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });&quot;,&quot;More info here: https://www.mapbox.com/help/define-access-token/&quot;].join(&quot;\n&quot;),missingStyleErrorMsg:[&quot;No valid mapbox style found, please set `mapbox.style` to one of:&quot;,i.join(&quot;, &quot;),&quot;or register a Mapbox access token to use a Mapbox-served style.&quot;].join(&quot;\n&quot;),multipleTokensErrorMsg:[&quot;Set multiple mapbox access token across different mapbox subplot,&quot;,&quot;using first token found as mapbox-gl does not allow multipleaccess tokens on the same page.&quot;].join(&quot;\n&quot;),mapOnErrorMsg:&quot;Mapbox error.&quot;,mapboxLogo:{path0:&quot;m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z&quot;,path1:&quot;M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z&quot;,path2:&quot;M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z&quot;,polygon:&quot;11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34&quot;},styleRules:{map:&quot;overflow:hidden;position:relative;&quot;,&quot;missing-css&quot;:&quot;display:none;&quot;,canary:&quot;background-color:salmon;&quot;,&quot;ctrl-bottom-left&quot;:&quot;position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;&quot;,&quot;ctrl-bottom-right&quot;:&quot;position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;&quot;,ctrl:&quot;clear: both; pointer-events: auto; transform: translate(0, 0);&quot;,&quot;ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner&quot;:&quot;display: none;&quot;,&quot;ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner&quot;:&quot;display: block; margin-top:2px&quot;,&quot;ctrl-attrib.mapboxgl-compact:hover&quot;:&quot;padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;&quot;,&quot;ctrl-attrib.mapboxgl-compact::after&quot;:'content: &quot;&quot;; cursor: pointer; position: absolute; background-image: url(\'data:image/svg+xml;charset=utf-8,%3Csvg viewBox=&quot;0 0 20 20&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;%3E %3Cpath fill=&quot;%23333333&quot; fill-rule=&quot;evenodd&quot; d=&quot;M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0&quot;/%3E %3C/svg%3E\'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;',&quot;ctrl-attrib.mapboxgl-compact&quot;:&quot;min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;&quot;,&quot;ctrl-bottom-right &gt; .mapboxgl-ctrl-attrib.mapboxgl-compact::after&quot;:&quot;bottom: 0; right: 0&quot;,&quot;ctrl-bottom-left &gt; .mapboxgl-ctrl-attrib.mapboxgl-compact::after&quot;:&quot;bottom: 0; left: 0&quot;,&quot;ctrl-bottom-left .mapboxgl-ctrl&quot;:&quot;margin: 0 0 10px 10px; float: left;&quot;,&quot;ctrl-bottom-right .mapboxgl-ctrl&quot;:&quot;margin: 0 10px 10px 0; float: right;&quot;,&quot;ctrl-attrib&quot;:&quot;color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px&quot;,&quot;ctrl-attrib a&quot;:&quot;color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px&quot;,&quot;ctrl-attrib a:hover&quot;:&quot;color: inherit; text-decoration: underline;&quot;,&quot;ctrl-attrib .mapbox-improve-map&quot;:&quot;font-weight: bold; margin-left: 2px;&quot;,&quot;attrib-empty&quot;:&quot;display: none;&quot;,&quot;ctrl-logo&quot;:'display:block; width: 21px; height: 21px; background-image: url(\'data:image/svg+xml;charset=utf-8,%3C?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?%3E %3Csvg version=&quot;1.1&quot; id=&quot;Layer_1&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; x=&quot;0px&quot; y=&quot;0px&quot; viewBox=&quot;0 0 21 21&quot; style=&quot;enable-background:new 0 0 21 21;&quot; xml:space=&quot;preserve&quot;%3E%3Cg transform=&quot;translate(0,0.01)&quot;%3E%3Cpath d=&quot;m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z&quot; style=&quot;opacity:0.9;fill:%23ffffff;enable-background:new&quot; class=&quot;st0&quot;/%3E%3Cpath d=&quot;M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z&quot; style=&quot;opacity:0.35;enable-background:new&quot; class=&quot;st1&quot;/%3E%3Cpath d=&quot;M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z&quot; style=&quot;opacity:0.35;enable-background:new&quot; class=&quot;st1&quot;/%3E%3Cpolygon points=&quot;11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 &quot; style=&quot;opacity:0.9;fill:%23ffffff;enable-background:new&quot; class=&quot;st0&quot;/%3E%3C/g%3E%3C/svg%3E\')'}}},{}],884:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=t.split(&quot; &quot;),i=r[0],a=r[1],o=n.isArrayOrTypedArray(e)?n.mean(e):e,s=.5+o/100,l=1.5+o/100,c=[&quot;&quot;,&quot;&quot;],u=[0,0];switch(i){case&quot;top&quot;:c[0]=&quot;top&quot;,u[1]=-l;break;case&quot;bottom&quot;:c[0]=&quot;bottom&quot;,u[1]=l}switch(a){case&quot;left&quot;:c[1]=&quot;right&quot;,u[0]=-s;break;case&quot;right&quot;:c[1]=&quot;left&quot;,u[0]=s}return{anchor:c[0]&amp;&amp;c[1]?c.join(&quot;-&quot;):c[0]?c[0]:c[1]?c[1]:&quot;center&quot;,offset:u}}},{&quot;../../lib&quot;:778}],885:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mapbox-gl&quot;),i=t(&quot;../../lib&quot;),a=i.strTranslate,o=i.strScale,s=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,l=t(&quot;../../constants/xmlns_namespaces&quot;),c=t(&quot;d3&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;./mapbox&quot;),p=r.constants=t(&quot;./constants&quot;);function d(t){return&quot;string&quot;==typeof t&amp;&amp;(-1!==p.styleValuesMapbox.indexOf(t)||0===t.indexOf(&quot;mapbox://&quot;))}r.name=&quot;mapbox&quot;,r.attr=&quot;subplot&quot;,r.idRoot=&quot;mapbox&quot;,r.idRegex=r.attrRegex=i.counterRegex(&quot;mapbox&quot;),r.attributes={subplot:{valType:&quot;subplotid&quot;,dflt:&quot;mapbox&quot;,editType:&quot;calc&quot;}},r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.plot=function(t){var e=t._fullLayout,r=t.calcdata,a=e._subplots.mapbox;if(n.version!==p.requiredVersion)throw new Error(p.wrongVersionErrorMsg);var o=function(t,e){var r=t._fullLayout;if(&quot;&quot;===t._context.mapboxAccessToken)return&quot;&quot;;for(var n=[],a=[],o=!1,s=!1,l=0;l&lt;e.length;l++){var c=r[e[l]],u=c.accesstoken;d(c.style)&amp;&amp;(u?i.pushUnique(n,u):(d(c._input.style)&amp;&amp;(i.error(&quot;Uses Mapbox map style, but did not set an access token.&quot;),o=!0),s=!0)),u&amp;&amp;i.pushUnique(a,u)}if(s){var f=o?p.noAccessTokenErrorMsg:p.missingStyleErrorMsg;throw i.error(f),new Error(f)}return n.length?(n.length&gt;1&amp;&amp;i.warn(p.multipleTokensErrorMsg),n[0]):(a.length&amp;&amp;i.log([&quot;Listed mapbox access token(s)&quot;,a.join(&quot;,&quot;),&quot;but did not use a Mapbox map style, ignoring token(s).&quot;].join(&quot; &quot;)),&quot;&quot;)}(t,a);n.accessToken=o;for(var l=0;l&lt;a.length;l++){var c=a[l],u=s(r,&quot;mapbox&quot;,c),f=e[c],g=f._subplot;g||(g=new h(t,c),e[c]._subplot=g),g.viewInitial||(g.viewInitial={center:i.extendFlat({},f.center),zoom:f.zoom,bearing:f.bearing,pitch:f.pitch}),g.plot(u,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.mapbox||[],a=0;a&lt;i.length;a++){var o=i[a];!e[o]&amp;&amp;n[o]._subplot&amp;&amp;n[o]._subplot.destroy()}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=e._size,i=0;i&lt;r.length;i++){var s=e[r[i]],h=s.domain,d=s._subplot.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:l.svg,&quot;xlink:href&quot;:d,x:n.l+n.w*h.x[0],y:n.t+n.h*(1-h.y[1]),width:n.w*(h.x[1]-h.x[0]),height:n.h*(h.y[1]-h.y[0]),preserveAspectRatio:&quot;none&quot;});var g=c.select(s._subplot.div);if(!(null===g.select(&quot;.mapboxgl-ctrl-logo&quot;).node().offsetParent)){var m=e._glimages.append(&quot;g&quot;);m.attr(&quot;transform&quot;,a(n.l+n.w*h.x[0]+10,n.t+n.h*(1-h.y[0])-31)),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path0).style({opacity:.9,fill:&quot;#ffffff&quot;,&quot;enable-background&quot;:&quot;new&quot;}),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path1).style(&quot;opacity&quot;,.35).style(&quot;enable-background&quot;,&quot;new&quot;),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path2).style(&quot;opacity&quot;,.35).style(&quot;enable-background&quot;,&quot;new&quot;),m.append(&quot;polygon&quot;).attr(&quot;points&quot;,p.mapboxLogo.polygon).style({opacity:.9,fill:&quot;#ffffff&quot;,&quot;enable-background&quot;:&quot;new&quot;})}var v=g.select(&quot;.mapboxgl-ctrl-attrib&quot;).text().replace(&quot;Improve this map&quot;,&quot;&quot;),y=e._glimages.append(&quot;g&quot;),x=y.append(&quot;text&quot;);x.text(v).classed(&quot;static-attribution&quot;,!0).attr({&quot;font-size&quot;:12,&quot;font-family&quot;:&quot;Arial&quot;,color:&quot;rgba(0, 0, 0, 0.75)&quot;,&quot;text-anchor&quot;:&quot;end&quot;,&quot;data-unformatted&quot;:v});var b=u.bBox(x.node()),_=n.w*(h.x[1]-h.x[0]);if(b.width&gt;_/2){var w=v.split(&quot;|&quot;).join(&quot;&lt;br&gt;&quot;);x.text(w).attr(&quot;data-unformatted&quot;,w).call(f.convertToTspans,t),b=u.bBox(x.node())}x.attr(&quot;transform&quot;,a(-3,8-b.height)),y.insert(&quot;rect&quot;,&quot;.static-attribution&quot;).attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:&quot;rgba(255, 255, 255, 0.75)&quot;});var T=1;b.width+6&gt;_&amp;&amp;(T=_/(b.width+6));var k=[n.l+n.w*h.x[1],n.t+n.h*(1-h.y[0])];y.attr(&quot;transform&quot;,a(k[0],k[1])+o(T))}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=0;n&lt;r.length;n++){e[r[n]]._subplot.updateFx(e)}}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/get_data&quot;:865,&quot;./constants&quot;:883,&quot;./layout_attributes&quot;:887,&quot;./layout_defaults&quot;:888,&quot;./mapbox&quot;:889,d3:169,&quot;mapbox-gl&quot;:473}],886:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/svg_text_utils&quot;).sanitizeHTML,a=t(&quot;./convert_text_opts&quot;),o=t(&quot;./constants&quot;);function s(t,e){this.subplot=t,this.uid=t.uid+&quot;-&quot;+e,this.index=e,this.idSource=&quot;source-&quot;+this.uid,this.idLayer=o.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var l=s.prototype;function c(t){if(!t.visible)return!1;var e=t.source;if(Array.isArray(e)&amp;&amp;e.length&gt;0){for(var r=0;r&lt;e.length;r++)if(&quot;string&quot;!=typeof e[r]||0===e[r].length)return!1;return!0}return n.isPlainObject(e)||&quot;string&quot;==typeof e&amp;&amp;e.length&gt;0}function u(t){var e={},r={};switch(t.type){case&quot;circle&quot;:n.extendFlat(r,{&quot;circle-radius&quot;:t.circle.radius,&quot;circle-color&quot;:t.color,&quot;circle-opacity&quot;:t.opacity});break;case&quot;line&quot;:n.extendFlat(r,{&quot;line-width&quot;:t.line.width,&quot;line-color&quot;:t.color,&quot;line-opacity&quot;:t.opacity,&quot;line-dasharray&quot;:t.line.dash});break;case&quot;fill&quot;:n.extendFlat(r,{&quot;fill-color&quot;:t.color,&quot;fill-outline-color&quot;:t.fill.outlinecolor,&quot;fill-opacity&quot;:t.opacity});break;case&quot;symbol&quot;:var i=t.symbol,o=a(i.textposition,i.iconsize);n.extendFlat(e,{&quot;icon-image&quot;:i.icon+&quot;-15&quot;,&quot;icon-size&quot;:i.iconsize/10,&quot;text-field&quot;:i.text,&quot;text-size&quot;:i.textfont.size,&quot;text-anchor&quot;:o.anchor,&quot;text-offset&quot;:o.offset,&quot;symbol-placement&quot;:i.placement}),n.extendFlat(r,{&quot;icon-color&quot;:t.color,&quot;text-color&quot;:i.textfont.color,&quot;text-opacity&quot;:t.opacity});break;case&quot;raster&quot;:n.extendFlat(r,{&quot;raster-fade-duration&quot;:0,&quot;raster-opacity&quot;:t.opacity})}return{layout:e,paint:r}}l.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=c(t)},l.needsNewImage=function(t){return this.subplot.map.getSource(this.idSource)&amp;&amp;&quot;image&quot;===this.sourceType&amp;&amp;&quot;image&quot;===t.sourcetype&amp;&amp;(this.source!==t.source||JSON.stringify(this.coordinates)!==JSON.stringify(t.coordinates))},l.needsNewSource=function(t){return this.sourceType!==t.sourcetype||JSON.stringify(this.source)!==JSON.stringify(t.source)||this.layerType!==t.type},l.needsNewLayer=function(t){return this.layerType!==t.type||this.below!==this.subplot.belowLookup[&quot;layout-&quot;+this.index]},l.lookupBelow=function(){return this.subplot.belowLookup[&quot;layout-&quot;+this.index]},l.updateImage=function(t){this.subplot.map.getSource(this.idSource).updateImage({url:t.source,coordinates:t.coordinates});var e=this.findFollowingMapboxLayerId(this.lookupBelow());null!==e&amp;&amp;this.subplot.map.moveLayer(this.idLayer,e)},l.updateSource=function(t){var e=this.subplot.map;if(e.getSource(this.idSource)&amp;&amp;e.removeSource(this.idSource),this.sourceType=t.sourcetype,this.source=t.source,c(t)){var r=function(t){var e,r=t.sourcetype,n=t.source,a={type:r};&quot;geojson&quot;===r?e=&quot;data&quot;:&quot;vector&quot;===r?e=&quot;string&quot;==typeof n?&quot;url&quot;:&quot;tiles&quot;:&quot;raster&quot;===r?(e=&quot;tiles&quot;,a.tileSize=256):&quot;image&quot;===r&amp;&amp;(e=&quot;url&quot;,a.coordinates=t.coordinates);a[e]=n,t.sourceattribution&amp;&amp;(a.attribution=i(t.sourceattribution));return a}(t);e.addSource(this.idSource,r)}},l.findFollowingMapboxLayerId=function(t){if(&quot;traces&quot;===t)for(var e=this.subplot.getMapLayers(),r=0;r&lt;e.length;r++){var n=e[r].id;if(&quot;string&quot;==typeof n&amp;&amp;0===n.indexOf(o.traceLayerPrefix)){t=n;break}}return t},l.updateLayer=function(t){var e=this.subplot,r=u(t),n=this.lookupBelow(),i=this.findFollowingMapboxLayerId(n);this.removeLayer(),c(t)&amp;&amp;e.addLayer({id:this.idLayer,source:this.idSource,&quot;source-layer&quot;:t.sourcelayer||&quot;&quot;,type:t.type,minzoom:t.minzoom,maxzoom:t.maxzoom,layout:r.layout,paint:r.paint},i),this.layerType=t.type,this.below=n},l.updateStyle=function(t){if(c(t)){var e=u(t);this.subplot.setOptions(this.idLayer,&quot;setLayoutProperty&quot;,e.layout),this.subplot.setOptions(this.idLayer,&quot;setPaintProperty&quot;,e.paint)}},l.removeLayer=function(){var t=this.subplot.map;t.getLayer(this.idLayer)&amp;&amp;t.removeLayer(this.idLayer)},l.dispose=function(){var t=this.subplot.map;t.getLayer(this.idLayer)&amp;&amp;t.removeLayer(this.idLayer),t.getSource(this.idSource)&amp;&amp;t.removeSource(this.idSource)},e.exports=function(t,e,r){var n=new s(t,e);return n.update(r),n}},{&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;./constants&quot;:883,&quot;./convert_text_opts&quot;:884}],887:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;).defaultLine,a=t(&quot;../domain&quot;).attributes,o=t(&quot;../font_attributes&quot;),s=t(&quot;../../traces/scatter/attributes&quot;).textposition,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll,c=t(&quot;../../plot_api/plot_template&quot;).templatedArray,u=t(&quot;./constants&quot;),f=o({});f.family.dflt=&quot;Open Sans Regular, Arial Unicode MS Regular&quot;,(e.exports=l({_arrayAttrRegexps:[n.counterRegex(&quot;mapbox&quot;,&quot;.layers&quot;,!0)],domain:a({name:&quot;mapbox&quot;}),accesstoken:{valType:&quot;string&quot;,noBlank:!0,strict:!0},style:{valType:&quot;any&quot;,values:u.styleValuesMapbox.concat(u.styleValuesNonMapbox),dflt:u.styleValueDflt},center:{lon:{valType:&quot;number&quot;,dflt:0},lat:{valType:&quot;number&quot;,dflt:0}},zoom:{valType:&quot;number&quot;,dflt:1},bearing:{valType:&quot;number&quot;,dflt:0},pitch:{valType:&quot;number&quot;,dflt:0},layers:c(&quot;layer&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},sourcetype:{valType:&quot;enumerated&quot;,values:[&quot;geojson&quot;,&quot;vector&quot;,&quot;raster&quot;,&quot;image&quot;],dflt:&quot;geojson&quot;},source:{valType:&quot;any&quot;},sourcelayer:{valType:&quot;string&quot;,dflt:&quot;&quot;},sourceattribution:{valType:&quot;string&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;circle&quot;,&quot;line&quot;,&quot;fill&quot;,&quot;symbol&quot;,&quot;raster&quot;],dflt:&quot;circle&quot;},coordinates:{valType:&quot;any&quot;},below:{valType:&quot;string&quot;},color:{valType:&quot;color&quot;,dflt:i},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},minzoom:{valType:&quot;number&quot;,min:0,max:24,dflt:0},maxzoom:{valType:&quot;number&quot;,min:0,max:24,dflt:24},circle:{radius:{valType:&quot;number&quot;,dflt:15}},line:{width:{valType:&quot;number&quot;,dflt:2},dash:{valType:&quot;data_array&quot;}},fill:{outlinecolor:{valType:&quot;color&quot;,dflt:i}},symbol:{icon:{valType:&quot;string&quot;,dflt:&quot;marker&quot;},iconsize:{valType:&quot;number&quot;,dflt:10},text:{valType:&quot;string&quot;,dflt:&quot;&quot;},placement:{valType:&quot;enumerated&quot;,values:[&quot;point&quot;,&quot;line&quot;,&quot;line-center&quot;],dflt:&quot;point&quot;},textfont:f,textposition:n.extendFlat({},s,{arrayOk:!1})}})},&quot;plot&quot;,&quot;from-root&quot;)).uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../traces/scatter/attributes&quot;:1187,&quot;../domain&quot;:855,&quot;../font_attributes&quot;:856,&quot;./constants&quot;:883}],888:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../subplot_defaults&quot;),a=t(&quot;../array_container_defaults&quot;),o=t(&quot;./layout_attributes&quot;);function s(t,e,r,n){r(&quot;accesstoken&quot;,n.accessToken),r(&quot;style&quot;),r(&quot;center.lon&quot;),r(&quot;center.lat&quot;),r(&quot;zoom&quot;),r(&quot;bearing&quot;),r(&quot;pitch&quot;),a(t,e,{name:&quot;layers&quot;,handleItemDefaults:l}),e._input=t}function l(t,e){function r(r,i){return n.coerce(t,e,o.layers,r,i)}if(r(&quot;visible&quot;)){var i,a=r(&quot;sourcetype&quot;),s=&quot;raster&quot;===a||&quot;image&quot;===a;r(&quot;source&quot;),r(&quot;sourceattribution&quot;),&quot;vector&quot;===a&amp;&amp;r(&quot;sourcelayer&quot;),&quot;image&quot;===a&amp;&amp;r(&quot;coordinates&quot;),s&amp;&amp;(i=&quot;raster&quot;);var l=r(&quot;type&quot;,i);s&amp;&amp;&quot;raster&quot;!==l&amp;&amp;(l=e.type=&quot;raster&quot;,n.log(&quot;Source types *raster* and *image* must drawn *raster* layer type.&quot;)),r(&quot;below&quot;),r(&quot;color&quot;),r(&quot;opacity&quot;),r(&quot;minzoom&quot;),r(&quot;maxzoom&quot;),&quot;circle&quot;===l&amp;&amp;r(&quot;circle.radius&quot;),&quot;line&quot;===l&amp;&amp;(r(&quot;line.width&quot;),r(&quot;line.dash&quot;)),&quot;fill&quot;===l&amp;&amp;r(&quot;fill.outlinecolor&quot;),&quot;symbol&quot;===l&amp;&amp;(r(&quot;symbol.icon&quot;),r(&quot;symbol.iconsize&quot;),r(&quot;symbol.text&quot;),n.coerceFont(r,&quot;symbol.textfont&quot;),r(&quot;symbol.textposition&quot;),r(&quot;symbol.placement&quot;))}}e.exports=function(t,e,r){i(t,e,r,{type:&quot;mapbox&quot;,attributes:o,handleDefaults:s,partition:&quot;y&quot;,accessToken:e._mapboxAccessToken})}},{&quot;../../lib&quot;:778,&quot;../array_container_defaults&quot;:823,&quot;../subplot_defaults&quot;:905,&quot;./layout_attributes&quot;:887}],889:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mapbox-gl&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/geo_location_utils&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../cartesian/axes&quot;),l=t(&quot;../../components/dragelement&quot;),c=t(&quot;../../components/fx&quot;),u=t(&quot;../../components/dragelement/helpers&quot;),f=u.rectMode,h=u.drawMode,p=u.selectMode,d=t(&quot;../cartesian/select&quot;).prepSelect,g=t(&quot;../cartesian/select&quot;).clearSelect,m=t(&quot;../cartesian/select&quot;).clearSelectionsCache,v=t(&quot;../cartesian/select&quot;).selectOnClick,y=t(&quot;./constants&quot;),x=t(&quot;./layers&quot;);function b(t,e){this.id=e,this.gd=t;var r=t._fullLayout,n=t._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+&quot;-&quot;+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var _=b.prototype;_.plot=function(t,e,r){var n,i=this,a=e[i.id];i.map&amp;&amp;a.accesstoken!==i.accessToken&amp;&amp;(i.map.remove(),i.map=null,i.styleObj=null,i.traceHash={},i.layerList=[]),n=i.map?new Promise((function(r,n){i.updateMap(t,e,r,n)})):new Promise((function(r,n){i.createMap(t,e,r,n)})),r.push(n)},_.createMap=function(t,e,r,i){var o=this,s=e[o.id],l=o.styleObj=T(s.style);o.accessToken=s.accesstoken;var c=o.map=new n.Map({container:o.div,style:l.style,center:M(s.center),zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,interactive:!o.isStatic,preserveDrawingBuffer:o.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new n.AttributionControl({compact:!0}));c._canvas.style.left=&quot;0px&quot;,c._canvas.style.top=&quot;0px&quot;,o.rejectOnError(i),o.isStatic||o.initFx(t,e);var u=[];u.push(new Promise((function(t){c.once(&quot;load&quot;,t)}))),u=u.concat(a.fetchTraceGeoData(t)),Promise.all(u).then((function(){o.fillBelowLookup(t,e),o.updateData(t),o.updateLayout(e),o.resolveOnRender(r)})).catch(i)},_.updateMap=function(t,e,r,n){var i=this,o=i.map,s=e[this.id];i.rejectOnError(n);var l=[],c=T(s.style);JSON.stringify(i.styleObj)!==JSON.stringify(c)&amp;&amp;(i.styleObj=c,o.setStyle(c.style),i.traceHash={},l.push(new Promise((function(t){o.once(&quot;styledata&quot;,t)})))),l=l.concat(a.fetchTraceGeoData(t)),Promise.all(l).then((function(){i.fillBelowLookup(t,e),i.updateData(t),i.updateLayout(e),i.resolveOnRender(r)})).catch(n)},_.fillBelowLookup=function(t,e){var r,n,i=e[this.id].layers,a=this.belowLookup={},o=!1;for(r=0;r&lt;t.length;r++){var s=t[r][0].trace,l=s._module;&quot;string&quot;==typeof s.below?n=s.below:l.getBelow&amp;&amp;(n=l.getBelow(s,this)),&quot;&quot;===n&amp;&amp;(o=!0),a[&quot;trace-&quot;+s.uid]=n||&quot;&quot;}for(r=0;r&lt;i.length;r++){var c=i[r];n=&quot;string&quot;==typeof c.below?c.below:o?&quot;traces&quot;:&quot;&quot;,a[&quot;layout-&quot;+r]=n}var u,f,h={};for(u in a)h[n=a[u]]?h[n].push(u):h[n]=[u];for(n in h){var p=h[n];if(p.length&gt;1)for(r=0;r&lt;p.length;r++)0===(u=p[r]).indexOf(&quot;trace-&quot;)?(f=u.split(&quot;trace-&quot;)[1],this.traceHash[f]&amp;&amp;(this.traceHash[f].below=null)):0===u.indexOf(&quot;layout-&quot;)&amp;&amp;(f=u.split(&quot;layout-&quot;)[1],this.layerList[f]&amp;&amp;(this.layerList[f].below=null))}};var w={choroplethmapbox:0,densitymapbox:1,scattermapbox:2};function T(t){var e={};return i.isPlainObject(t)?(e.id=t.id,e.style=t):&quot;string&quot;==typeof t?(e.id=t,-1!==y.styleValuesMapbox.indexOf(t)?e.style=k(t):y.stylesNonMapbox[t]?e.style=y.stylesNonMapbox[t]:e.style=t):(e.id=y.styleValueDflt,e.style=k(y.styleValueDflt)),e.transition={duration:0,delay:0},e}function k(t){return y.styleUrlPrefix+t+&quot;-&quot;+y.styleUrlSuffix}function M(t){return[t.lon,t.lat]}_.updateData=function(t){var e,r,n,i,a=this.traceHash,o=t.slice().sort((function(t,e){return w[t[0].trace.type]-w[e[0].trace.type]}));for(n=0;n&lt;o.length;n++){var s=o[n],l=!1;(e=a[(r=s[0].trace).uid])&amp;&amp;(e.type===r.type?(e.update(s),l=!0):e.dispose()),!l&amp;&amp;r._module&amp;&amp;(a[r.uid]=r._module.plot(this,s))}var c=Object.keys(a);t:for(n=0;n&lt;c.length;n++){var u=c[n];for(i=0;i&lt;t.length;i++)if(u===(r=t[i][0].trace).uid)continue t;(e=a[u]).dispose(),delete a[u]}},_.updateLayout=function(t){var e=this.map,r=t[this.id];this.dragging||this.wheeling||(e.setCenter(M(r.center)),e.setZoom(r.zoom),e.setBearing(r.bearing),e.setPitch(r.pitch)),this.updateLayers(t),this.updateFramework(t),this.updateFx(t),this.map.resize(),this.gd._context._scrollZoom.mapbox?e.scrollZoom.enable():e.scrollZoom.disable()},_.resolveOnRender=function(t){var e=this.map;e.on(&quot;render&quot;,(function r(){e.loaded()&amp;&amp;(e.off(&quot;render&quot;,r),setTimeout(t,10))}))},_.rejectOnError=function(t){var e=this.map;function r(){t(new Error(y.mapOnErrorMsg))}e.once(&quot;error&quot;,r),e.once(&quot;style.error&quot;,r),e.once(&quot;source.error&quot;,r),e.once(&quot;tile.error&quot;,r),e.once(&quot;layer.error&quot;,r)},_.createFramework=function(t){var e=this,r=e.div=document.createElement(&quot;div&quot;);r.id=e.uid,r.style.position=&quot;absolute&quot;,e.container.appendChild(r),e.xaxis={_id:&quot;x&quot;,c2p:function(t){return e.project(t).x}},e.yaxis={_id:&quot;y&quot;,c2p:function(t){return e.project(t).y}},e.updateFramework(t),e.mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},s.setConvert(e.mockAxis,t)},_.initFx=function(t,e){var r=this,n=r.gd,i=r.map;function a(){c.loneUnhover(e._hoverlayer)}function s(){var t=r.getView();n.emit(&quot;plotly_relayouting&quot;,r.getViewEditsWithDerived(t))}i.on(&quot;moveend&quot;,(function(t){if(r.map){var e=n._fullLayout;if(t.originalEvent||r.wheeling){var i=e[r.id];o.call(&quot;_storeDirectGUIEdit&quot;,n.layout,e._preGUI,r.getViewEdits(i));var a=r.getView();i._input.center=i.center=a.center,i._input.zoom=i.zoom=a.zoom,i._input.bearing=i.bearing=a.bearing,i._input.pitch=i.pitch=a.pitch,n.emit(&quot;plotly_relayout&quot;,r.getViewEditsWithDerived(a))}t.originalEvent&amp;&amp;&quot;mouseup&quot;===t.originalEvent.type?r.dragging=!1:r.wheeling&amp;&amp;(r.wheeling=!1),e._rehover&amp;&amp;e._rehover()}})),i.on(&quot;wheel&quot;,(function(){r.wheeling=!0})),i.on(&quot;mousemove&quot;,(function(t){var e=r.div.getBoundingClientRect(),a=[t.originalEvent.offsetX,t.originalEvent.offsetY];t.target.getBoundingClientRect=function(){return e},r.xaxis.p2c=function(){return i.unproject(a).lng},r.yaxis.p2c=function(){return i.unproject(a).lat},n._fullLayout._rehover=function(){n._fullLayout._hoversubplot===r.id&amp;&amp;n._fullLayout[r.id]&amp;&amp;c.hover(n,t,r.id)},c.hover(n,t,r.id),n._fullLayout._hoversubplot=r.id})),i.on(&quot;dragstart&quot;,(function(){r.dragging=!0,a()})),i.on(&quot;zoomstart&quot;,a),i.on(&quot;mouseout&quot;,(function(){n._fullLayout._hoversubplot=null})),i.on(&quot;drag&quot;,s),i.on(&quot;zoom&quot;,s),i.on(&quot;dblclick&quot;,(function(){var t=n._fullLayout[r.id];o.call(&quot;_storeDirectGUIEdit&quot;,n.layout,n._fullLayout._preGUI,r.getViewEdits(t));var e=r.viewInitial;i.setCenter(M(e.center)),i.setZoom(e.zoom),i.setBearing(e.bearing),i.setPitch(e.pitch);var a=r.getView();t._input.center=t.center=a.center,t._input.zoom=t.zoom=a.zoom,t._input.bearing=t.bearing=a.bearing,t._input.pitch=t.pitch=a.pitch,n.emit(&quot;plotly_doubleclick&quot;,null),n.emit(&quot;plotly_relayout&quot;,r.getViewEditsWithDerived(a))})),r.clearSelect=function(){m(r.dragOptions),g(r.dragOptions.gd)},r.onClickInPanFn=function(t){return function(e){var i=n._fullLayout.clickmode;i.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;v(e.originalEvent,n,[r.xaxis],[r.yaxis],r.id,t),i.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;c.click(n,e.originalEvent)}}},_.updateFx=function(t){var e=this,r=e.map,n=e.gd;if(!e.isStatic){var a,o=t.dragmode;a=f(o)?function(t,r){(t.range={})[e.id]=[c([r.xmin,r.ymin]),c([r.xmax,r.ymax])]}:function(t,r,n){(t.lassoPoints={})[e.id]=n.filtered.map(c)};var s=e.dragOptions;e.dragOptions=i.extendDeep(s||{},{dragmode:t.dragmode,element:e.div,gd:n,plotinfo:{id:e.id,domain:t[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis,fillRangeItems:a},xaxes:[e.xaxis],yaxes:[e.yaxis],subplot:e.id}),r.off(&quot;click&quot;,e.onClickInPanHandler),p(o)||h(o)?(r.dragPan.disable(),r.on(&quot;zoomstart&quot;,e.clearSelect),e.dragOptions.prepFn=function(t,r,n){d(t,r,n,e.dragOptions,o)},l.init(e.dragOptions)):(r.dragPan.enable(),r.off(&quot;zoomstart&quot;,e.clearSelect),e.div.onmousedown=null,e.onClickInPanHandler=e.onClickInPanFn(e.dragOptions),r.on(&quot;click&quot;,e.onClickInPanHandler))}function c(t){var r=e.map.unproject(t);return[r.lng,r.lat]}},_.updateFramework=function(t){var e=t[this.id].domain,r=t._size,n=this.div.style;n.width=r.w*(e.x[1]-e.x[0])+&quot;px&quot;,n.height=r.h*(e.y[1]-e.y[0])+&quot;px&quot;,n.left=r.l+e.x[0]*r.w+&quot;px&quot;,n.top=r.t+(1-e.y[1])*r.h+&quot;px&quot;,this.xaxis._offset=r.l+e.x[0]*r.w,this.xaxis._length=r.w*(e.x[1]-e.x[0]),this.yaxis._offset=r.t+(1-e.y[1])*r.h,this.yaxis._length=r.h*(e.y[1]-e.y[0])},_.updateLayers=function(t){var e,r=t[this.id].layers,n=this.layerList;if(r.length!==n.length){for(e=0;e&lt;n.length;e++)n[e].dispose();for(n=this.layerList=[],e=0;e&lt;r.length;e++)n.push(x(this,e,r[e]))}else for(e=0;e&lt;r.length;e++)n[e].update(r[e])},_.destroy=function(){this.map&amp;&amp;(this.map.remove(),this.map=null,this.container.removeChild(this.div))},_.toImage=function(){return this.map.stop(),this.map.getCanvas().toDataURL()},_.setOptions=function(t,e,r){for(var n in r)this.map[e](t,n,r[n])},_.getMapLayers=function(){return this.map.getStyle().layers},_.addLayer=function(t,e){var r=this.map;if(&quot;string&quot;==typeof e){if(&quot;&quot;===e)return void r.addLayer(t,e);for(var n=this.getMapLayers(),a=0;a&lt;n.length;a++)if(e===n[a].id)return void r.addLayer(t,e);i.warn([&quot;Trying to add layer with *below* value&quot;,e,&quot;referencing a layer that does not exist&quot;,&quot;or that does not yet exist.&quot;].join(&quot; &quot;))}r.addLayer(t)},_.project=function(t){return this.map.project(new n.LngLat(t[0],t[1]))},_.getView=function(){var t=this.map,e=t.getCenter(),r={lon:e.lng,lat:e.lat},n=t.getCanvas(),i=n.width,a=n.height;return{center:r,zoom:t.getZoom(),bearing:t.getBearing(),pitch:t.getPitch(),_derived:{coordinates:[t.unproject([0,0]).toArray(),t.unproject([i,0]).toArray(),t.unproject([i,a]).toArray(),t.unproject([0,a]).toArray()]}}},_.getViewEdits=function(t){for(var e=this.id,r=[&quot;center&quot;,&quot;zoom&quot;,&quot;bearing&quot;,&quot;pitch&quot;],n={},i=0;i&lt;r.length;i++){var a=r[i];n[e+&quot;.&quot;+a]=t[a]}return n},_.getViewEditsWithDerived=function(t){var e=this.id,r=this.getViewEdits(t);return r[e+&quot;._derived&quot;]=t._derived,r},e.exports=b},{&quot;../../components/dragelement&quot;:662,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../registry&quot;:911,&quot;../cartesian/axes&quot;:828,&quot;../cartesian/select&quot;:847,&quot;./constants&quot;:883,&quot;./layers&quot;:886,&quot;mapbox-gl&quot;:473}],890:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.editType;return{t:{valType:&quot;number&quot;,dflt:0,editType:e},r:{valType:&quot;number&quot;,dflt:0,editType:e},b:{valType:&quot;number&quot;,dflt:0,editType:e},l:{valType:&quot;number&quot;,dflt:0,editType:e},editType:e}}},{}],891:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-time-format&quot;).timeFormatLocale,a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../registry&quot;),s=t(&quot;../plot_api/plot_schema&quot;),l=t(&quot;../plot_api/plot_template&quot;),c=t(&quot;../lib&quot;),u=t(&quot;../components/color&quot;),f=t(&quot;../constants/numerical&quot;).BADNUM,h=t(&quot;./cartesian/axis_ids&quot;),p=t(&quot;./cartesian/handle_outline&quot;).clearSelect,d=t(&quot;./animation_attributes&quot;),g=t(&quot;./frame_attributes&quot;),m=t(&quot;../plots/get_data&quot;).getModuleCalcData,v=c.relinkPrivateKeys,y=c._,x=e.exports={};c.extendFlat(x,o),x.attributes=t(&quot;./attributes&quot;),x.attributes.type.values=x.allTypes,x.fontAttrs=t(&quot;./font_attributes&quot;),x.layoutAttributes=t(&quot;./layout_attributes&quot;),x.fontWeight=&quot;normal&quot;;var b=x.transformsRegistry,_=t(&quot;./command&quot;);x.executeAPICommand=_.executeAPICommand,x.computeAPICommandBindings=_.computeAPICommandBindings,x.manageCommandObserver=_.manageCommandObserver,x.hasSimpleAPICommandBindings=_.hasSimpleAPICommandBindings,x.redrawText=function(t){var e=(t=c.getGraphDiv(t))._fullLayout||{};if(!(!(e._has&amp;&amp;e._has(&quot;polar&quot;))&amp;&amp;t.data&amp;&amp;t.data[0]&amp;&amp;t.data[0].r))return new Promise((function(e){setTimeout((function(){o.getComponentMethod(&quot;annotations&quot;,&quot;draw&quot;)(t),o.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),o.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t),e(x.previousPromises(t))}),300)}))},x.resize=function(t){var e;t=c.getGraphDiv(t);var r=new Promise((function(r,n){t&amp;&amp;!c.isHidden(t)||n(new Error(&quot;Resize must be passed a displayed plot div element.&quot;)),t._redrawTimer&amp;&amp;clearTimeout(t._redrawTimer),t._resolveResize&amp;&amp;(e=t._resolveResize),t._resolveResize=r,t._redrawTimer=setTimeout((function(){if(!t.layout||t.layout.width&amp;&amp;t.layout.height||c.isHidden(t))r(t);else{delete t.layout.width,delete t.layout.height;var e=t.changed;t.autoplay=!0,o.call(&quot;relayout&quot;,t,{autosize:!0}).then((function(){t.changed=e,t._resolveResize===r&amp;&amp;(delete t._resolveResize,r(t))}))}}),100)}));return e&amp;&amp;e(r),r},x.previousPromises=function(t){if((t._promises||[]).length)return Promise.all(t._promises).then((function(){t._promises=[]}))},x.addLinks=function(t){if(t._context.showLink||t._context.showSources){var e=t._fullLayout,r=c.ensureSingle(e._paper,&quot;text&quot;,&quot;js-plot-link-container&quot;,(function(t){t.style({&quot;font-family&quot;:'&quot;Open Sans&quot;, Arial, sans-serif',&quot;font-size&quot;:&quot;12px&quot;,fill:u.defaultLine,&quot;pointer-events&quot;:&quot;all&quot;}).each((function(){var t=n.select(this);t.append(&quot;tspan&quot;).classed(&quot;js-link-to-tool&quot;,!0),t.append(&quot;tspan&quot;).classed(&quot;js-link-spacer&quot;,!0),t.append(&quot;tspan&quot;).classed(&quot;js-sourcelinks&quot;,!0)}))})),i=r.node(),a={y:e._paper.attr(&quot;height&quot;)-9};document.body.contains(i)&amp;&amp;i.getComputedTextLength()&gt;=e.width-20?(a[&quot;text-anchor&quot;]=&quot;start&quot;,a.x=5):(a[&quot;text-anchor&quot;]=&quot;end&quot;,a.x=e._paper.attr(&quot;width&quot;)-7),r.attr(a);var o=r.select(&quot;.js-link-to-tool&quot;),s=r.select(&quot;.js-link-spacer&quot;),l=r.select(&quot;.js-sourcelinks&quot;);t._context.showSources&amp;&amp;t._context.showSources(t),t._context.showLink&amp;&amp;function(t,e){e.text(&quot;&quot;);var r=e.append(&quot;a&quot;).attr({&quot;xlink:xlink:href&quot;:&quot;#&quot;,class:&quot;link--impt link--embedview&quot;,&quot;font-weight&quot;:&quot;bold&quot;}).text(t._context.linkText+&quot; &quot;+String.fromCharCode(187));if(t._context.sendData)r.on(&quot;click&quot;,(function(){x.sendDataToCloud(t)}));else{var n=window.location.pathname.split(&quot;/&quot;),i=window.location.search;r.attr({&quot;xlink:xlink:show&quot;:&quot;new&quot;,&quot;xlink:xlink:href&quot;:&quot;/&quot;+n[2].split(&quot;.&quot;)[0]+&quot;/&quot;+n[1]+i})}}(t,o),s.text(o.text()&amp;&amp;l.text()?&quot; - &quot;:&quot;&quot;)}},x.sendDataToCloud=function(t){var e=(window.PLOTLYENV||{}).BASE_URL||t._context.plotlyServerURL;if(e){t.emit(&quot;plotly_beforeexport&quot;);var r=n.select(t).append(&quot;div&quot;).attr(&quot;id&quot;,&quot;hiddenform&quot;).style(&quot;display&quot;,&quot;none&quot;),i=r.append(&quot;form&quot;).attr({action:e+&quot;/external&quot;,method:&quot;post&quot;,target:&quot;_blank&quot;});return i.append(&quot;input&quot;).attr({type:&quot;text&quot;,name:&quot;data&quot;}).node().value=x.graphJson(t,!1,&quot;keepdata&quot;),i.node().submit(),r.remove(),t.emit(&quot;plotly_afterexport&quot;),!1}};var w=[&quot;days&quot;,&quot;shortDays&quot;,&quot;months&quot;,&quot;shortMonths&quot;,&quot;periods&quot;,&quot;dateTime&quot;,&quot;date&quot;,&quot;time&quot;,&quot;decimal&quot;,&quot;thousands&quot;,&quot;grouping&quot;,&quot;currency&quot;],T=[&quot;year&quot;,&quot;month&quot;,&quot;dayMonth&quot;,&quot;dayMonthYear&quot;];function k(t,e){var r=t._context.locale;r||(r=&quot;en-US&quot;);var n=!1,i={};function a(t){for(var r=!0,a=0;a&lt;e.length;a++){var o=e[a];i[o]||(t[o]?i[o]=t[o]:r=!1)}r&amp;&amp;(n=!0)}for(var s=0;s&lt;2;s++){for(var l=t._context.locales,c=0;c&lt;2;c++){var u=(l[r]||{}).format;if(u&amp;&amp;(a(u),n))break;l=o.localeRegistry}var f=r.split(&quot;-&quot;)[0];if(n||f===r)break;r=f}return n||a(o.localeRegistry.en.format),i}function M(t,e){var r={_fullLayout:e},n=&quot;x&quot;===t._id.charAt(0),i=t._mainAxis._anchorAxis,a=&quot;&quot;,o=&quot;&quot;,s=&quot;&quot;;if(i&amp;&amp;(s=i._mainAxis._id,a=n?t._id+s:s+t._id),!a||!e._plots[a]){a=&quot;&quot;;for(var l=t._counterAxes,c=0;c&lt;l.length;c++){var u=l[c],f=n?t._id+u:u+t._id;o||(o=f);var p=h.getFromId(r,u);if(s&amp;&amp;p.overlaying===s){a=f;break}}}return a||o}function A(t){var e=t.transforms;if(Array.isArray(e)&amp;&amp;e.length)for(var r=0;r&lt;e.length;r++){var n=e[r],i=n._module||b[n.type];if(i&amp;&amp;i.makesData)return!0}return!1}function S(t,e,r,n){for(var i=t.transforms,a=[t],o=0;o&lt;i.length;o++){var s=i[o],l=b[s.type];l&amp;&amp;l.transform&amp;&amp;(a=l.transform(a,{transform:s,fullTrace:t,fullData:e,layout:r,fullLayout:n,transformIndex:o}))}return a}function E(t){return&quot;string&quot;==typeof t&amp;&amp;&quot;px&quot;===t.substr(t.length-2)&amp;&amp;parseFloat(t)}function C(t){var e=t.margin;if(!t._size){var r=t._size={l:Math.round(e.l),r:Math.round(e.r),t:Math.round(e.t),b:Math.round(e.b),p:Math.round(e.pad)};r.w=Math.round(t.width)-r.l-r.r,r.h=Math.round(t.height)-r.t-r.b}t._pushmargin||(t._pushmargin={}),t._pushmarginIds||(t._pushmarginIds={})}x.supplyDefaults=function(t,e){var r=e&amp;&amp;e.skipUpdateCalc,a=t._fullLayout||{};if(a._skipDefaults)delete a._skipDefaults;else{var s,l=t._fullLayout={},u=t.layout||{},f=t._fullData||[],h=t._fullData=[],d=t.data||[],g=t.calcdata||[],m=t._context||{};t._transitionData||x.createTransitionData(t),l._dfltTitle={plot:y(t,&quot;Click to enter Plot title&quot;),x:y(t,&quot;Click to enter X axis title&quot;),y:y(t,&quot;Click to enter Y axis title&quot;),colorbar:y(t,&quot;Click to enter Colorscale title&quot;),annotation:y(t,&quot;new text&quot;)},l._traceWord=y(t,&quot;trace&quot;);var b=k(t,w);if(l._mapboxAccessToken=m.mapboxAccessToken,a._initialAutoSizeIsDone){var _=a.width,M=a.height;x.supplyLayoutGlobalDefaults(u,l,b),u.width||(l.width=_),u.height||(l.height=M),x.sanitizeMargins(l)}else{x.supplyLayoutGlobalDefaults(u,l,b);var A=!u.width||!u.height,S=l.autosize,E=m.autosizable;A&amp;&amp;(S||E)?x.plotAutoSize(t,u,l):A&amp;&amp;x.sanitizeMargins(l),!S&amp;&amp;A&amp;&amp;(u.width=l.width,u.height=l.height)}l._d3locale=function(t,e){return t.decimal=e.charAt(0),t.thousands=e.charAt(1),{numberFormat:n.locale(t).numberFormat,timeFormat:i(t).utcFormat}}(b,l.separators),l._extraFormat=k(t,T),l._initialAutoSizeIsDone=!0,l._dataLength=d.length,l._modules=[],l._visibleModules=[],l._basePlotModules=[];var L=l._subplots=function(){var t,e,r=o.collectableSubplotTypes,n={};if(!r){r=[];var i=o.subplotsRegistry;for(var a in i){var s=i[a].attr;if(s&amp;&amp;(r.push(a),Array.isArray(s)))for(e=0;e&lt;s.length;e++)c.pushUnique(r,s[e])}}for(t=0;t&lt;r.length;t++)n[r[t]]=[];return n}(),I=l._splomAxes={x:{},y:{}},P=l._splomSubplots={};l._splomGridDflt={},l._scatterStackOpts={},l._firstScatter={},l._alignmentOpts={},l._colorAxes={},l._requestRangeslider={},l._traceUids=function(t,e){var r,n,i=e.length,a=[];for(r=0;r&lt;t.length;r++){var o=t[r]._fullInput;o!==n&amp;&amp;a.push(o),n=o}var s=a.length,l=new Array(i),u={};function f(t,e){l[e]=t,u[t]=1}function h(t,e){if(t&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;!u[t])return f(t,e),!0}for(r=0;r&lt;i;r++){var p=e[r].uid;&quot;number&quot;==typeof p&amp;&amp;(p=String(p)),h(p,r)||(r&lt;s&amp;&amp;h(a[r].uid,r)||f(c.randstr(u),r))}return l}(f,d),l._globalTransforms=(t._context||{}).globalTransforms,x.supplyDataDefaults(d,h,u,l);var z=Object.keys(I.x),O=Object.keys(I.y);if(z.length&gt;1&amp;&amp;O.length&gt;1){for(o.getComponentMethod(&quot;grid&quot;,&quot;sizeDefaults&quot;)(u,l),s=0;s&lt;z.length;s++)c.pushUnique(L.xaxis,z[s]);for(s=0;s&lt;O.length;s++)c.pushUnique(L.yaxis,O[s]);for(var D in P)c.pushUnique(L.cartesian,D)}if(l._has=x._hasPlotType.bind(l),f.length===h.length)for(s=0;s&lt;h.length;s++)v(h[s],f[s]);x.supplyLayoutModuleDefaults(u,l,h,t._transitionData);var R=l._visibleModules,F=[];for(s=0;s&lt;R.length;s++){var B=R[s].crossTraceDefaults;B&amp;&amp;c.pushUnique(F,B)}for(s=0;s&lt;F.length;s++)F[s](h,l);l._hasOnlyLargeSploms=1===l._basePlotModules.length&amp;&amp;&quot;splom&quot;===l._basePlotModules[0].name&amp;&amp;z.length&gt;15&amp;&amp;O.length&gt;15&amp;&amp;0===l.shapes.length&amp;&amp;0===l.images.length,l._hasCartesian=l._has(&quot;cartesian&quot;),l._hasGeo=l._has(&quot;geo&quot;),l._hasGL3D=l._has(&quot;gl3d&quot;),l._hasGL2D=l._has(&quot;gl2d&quot;),l._hasTernary=l._has(&quot;ternary&quot;),l._hasPie=l._has(&quot;pie&quot;),x.linkSubplots(h,l,f,a),x.cleanPlot(h,l,f,a);var N=!(!a._has||!a._has(&quot;gl2d&quot;)),j=!(!l._has||!l._has(&quot;gl2d&quot;)),U=!(!a._has||!a._has(&quot;cartesian&quot;))||N,V=!(!l._has||!l._has(&quot;cartesian&quot;))||j;U&amp;&amp;!V?a._bgLayer.remove():V&amp;&amp;!U&amp;&amp;(l._shouldCreateBgLayer=!0),a._zoomlayer&amp;&amp;!t._dragging&amp;&amp;p({_fullLayout:a}),function(t,e){var r,n=[];e.meta&amp;&amp;(r=e._meta={meta:e.meta,layout:{meta:e.meta}});for(var i=0;i&lt;t.length;i++){var a=t[i];a.meta?n[a.index]=a._meta={meta:a.meta}:e.meta&amp;&amp;(a._meta={meta:e.meta}),e.meta&amp;&amp;(a._meta.layout={meta:e.meta})}n.length&amp;&amp;(r||(r=e._meta={}),r.data=n)}(h,l),v(l,a),o.getComponentMethod(&quot;colorscale&quot;,&quot;crossTraceDefaults&quot;)(h,l),l._preGUI||(l._preGUI={}),l._tracePreGUI||(l._tracePreGUI={});var q,H=l._tracePreGUI,G={};for(q in H)G[q]=&quot;old&quot;;for(s=0;s&lt;h.length;s++)G[q=h[s]._fullInput.uid]||(H[q]={}),G[q]=&quot;new&quot;;for(q in G)&quot;old&quot;===G[q]&amp;&amp;delete H[q];C(l),o.getComponentMethod(&quot;rangeslider&quot;,&quot;makeData&quot;)(l),r||g.length!==h.length||x.supplyDefaultsUpdateCalc(g,h)}},x.supplyDefaultsUpdateCalc=function(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r],i=(t[r]||[])[0];if(i&amp;&amp;i.trace){var a=i.trace;if(a._hasCalcTransform){var o,s,l,u=a._arrayAttrs;for(o=0;o&lt;u.length;o++)s=u[o],l=c.nestedProperty(a,s).get().slice(),c.nestedProperty(n,s).set(l)}i.trace=n}}},x.createTransitionData=function(t){t._transitionData||(t._transitionData={}),t._transitionData._frames||(t._transitionData._frames=[]),t._transitionData._frameHash||(t._transitionData._frameHash={}),t._transitionData._counter||(t._transitionData._counter=0),t._transitionData._interruptCallbacks||(t._transitionData._interruptCallbacks=[])},x._hasPlotType=function(t){var e,r=this._basePlotModules||[];for(e=0;e&lt;r.length;e++)if(r[e].name===t)return!0;var n=this._modules||[];for(e=0;e&lt;n.length;e++){var i=n[e].name;if(i===t)return!0;var a=o.modules[i];if(a&amp;&amp;a.categories[t])return!0}return!1},x.cleanPlot=function(t,e,r,n){var i,a,o=n._basePlotModules||[];for(i=0;i&lt;o.length;i++){var s=o[i];s.clean&amp;&amp;s.clean(t,e,r,n)}var l=n._has&amp;&amp;n._has(&quot;gl&quot;),c=e._has&amp;&amp;e._has(&quot;gl&quot;);l&amp;&amp;!c&amp;&amp;void 0!==n._glcontainer&amp;&amp;(n._glcontainer.selectAll(&quot;.gl-canvas&quot;).remove(),n._glcontainer.selectAll(&quot;.no-webgl&quot;).remove(),n._glcanvas=null);var u=!!n._infolayer;t:for(i=0;i&lt;r.length;i++){var f=r[i].uid;for(a=0;a&lt;t.length;a++){if(f===t[a].uid)continue t}u&amp;&amp;n._infolayer.select(&quot;.cb&quot;+f).remove()}},x.linkSubplots=function(t,e,r,n){var i,a,s=n._plots||{},l=e._plots={},u=e._subplots,f={_fullData:t,_fullLayout:e},p=u.cartesian.concat(u.gl2d||[]);for(i=0;i&lt;p.length;i++){var d,g=p[i],m=s[g],v=h.getFromId(f,g,&quot;x&quot;),y=h.getFromId(f,g,&quot;y&quot;);for(m?d=l[g]=m:(d=l[g]={}).id=g,v._counterAxes.push(y._id),y._counterAxes.push(v._id),v._subplotsWith.push(g),y._subplotsWith.push(g),d.xaxis=v,d.yaxis=y,d._hasClipOnAxisFalse=!1,a=0;a&lt;t.length;a++){var x=t[a];if(x.xaxis===d.xaxis._id&amp;&amp;x.yaxis===d.yaxis._id&amp;&amp;!1===x.cliponaxis){d._hasClipOnAxisFalse=!0;break}}}var b,_=h.list(f,null,!0);for(i=0;i&lt;_.length;i++){var w=null;(b=_[i]).overlaying&amp;&amp;(w=h.getFromId(f,b.overlaying))&amp;&amp;w.overlaying&amp;&amp;(b.overlaying=!1,w=null),b._mainAxis=w||b,w&amp;&amp;(b.domain=w.domain.slice()),b._anchorAxis=&quot;free&quot;===b.anchor?null:h.getFromId(f,b.anchor)}for(i=0;i&lt;_.length;i++)if((b=_[i])._counterAxes.sort(h.idSort),b._subplotsWith.sort(c.subplotSort),b._mainSubplot=M(b,e),b._counterAxes.length&amp;&amp;(b.spikemode&amp;&amp;-1!==b.spikemode.indexOf(&quot;across&quot;)||b.automargin&amp;&amp;b.mirror&amp;&amp;&quot;free&quot;!==b.anchor||o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(b))){var T=1,k=0;for(a=0;a&lt;b._counterAxes.length;a++){var A=h.getFromId(f,b._counterAxes[a]);T=Math.min(T,A.domain[0]),k=Math.max(k,A.domain[1])}T&lt;k&amp;&amp;(b._counterDomainMin=T,b._counterDomainMax=k)}},x.clearExpandedTraceDefaultColors=function(t){var e,r,n;for(r=[],(e=t._module._colorAttrs)||(t._module._colorAttrs=e=[],s.crawl(t._module.attributes,(function(t,n,i,a){r[a]=n,r.length=a+1,&quot;color&quot;===t.valType&amp;&amp;void 0===t.dflt&amp;&amp;e.push(r.join(&quot;.&quot;))}))),n=0;n&lt;e.length;n++){c.nestedProperty(t,&quot;_input.&quot;+e[n]).get()||c.nestedProperty(t,e[n]).set(null)}},x.supplyDataDefaults=function(t,e,r,n){var i,a,s,u=n._modules,f=n._visibleModules,h=n._basePlotModules,p=0,d=0;function g(t){e.push(t);var r=t._module;r&amp;&amp;(c.pushUnique(u,r),!0===t.visible&amp;&amp;c.pushUnique(f,r),c.pushUnique(h,t._module.basePlotModule),p++,!1!==t._input.visible&amp;&amp;d++)}n._transformModules=[];var m={},y=[],b=(r.template||{}).data||{},_=l.traceTemplater(b);for(i=0;i&lt;t.length;i++){if(s=t[i],(a=_.newTrace(s)).uid=n._traceUids[i],x.supplyTraceDefaults(s,a,d,n,i),a.index=i,a._input=s,a._expandedIndex=p,a.transforms&amp;&amp;a.transforms.length)for(var w=!1!==s.visible&amp;&amp;!1===a.visible,T=S(a,e,r,n),k=0;k&lt;T.length;k++){var M=T[k],A={_template:a._template,type:a.type,uid:a.uid+k};w&amp;&amp;!1===M.visible&amp;&amp;delete M.visible,x.supplyTraceDefaults(M,A,p,n,i),v(A,M),A.index=i,A._input=s,A._fullInput=a,A._expandedIndex=p,A._expandedInput=M,g(A)}else a._fullInput=a,a._expandedInput=a,g(a);o.traceIs(a,&quot;carpetAxis&quot;)&amp;&amp;(m[a.carpet]=a),o.traceIs(a,&quot;carpetDependent&quot;)&amp;&amp;y.push(i)}for(i=0;i&lt;y.length;i++)if((a=e[y[i]]).visible){var E=m[a.carpet];a._carpet=E,E&amp;&amp;E.visible?(a.xaxis=E.xaxis,a.yaxis=E.yaxis):a.visible=!1}},x.supplyAnimationDefaults=function(t){var e;t=t||{};var r={};function n(e,n){return c.coerce(t||{},r,d,e,n)}if(n(&quot;mode&quot;),n(&quot;direction&quot;),n(&quot;fromcurrent&quot;),Array.isArray(t.frame))for(r.frame=[],e=0;e&lt;t.frame.length;e++)r.frame[e]=x.supplyAnimationFrameDefaults(t.frame[e]||{});else r.frame=x.supplyAnimationFrameDefaults(t.frame||{});if(Array.isArray(t.transition))for(r.transition=[],e=0;e&lt;t.transition.length;e++)r.transition[e]=x.supplyAnimationTransitionDefaults(t.transition[e]||{});else r.transition=x.supplyAnimationTransitionDefaults(t.transition||{});return r},x.supplyAnimationFrameDefaults=function(t){var e={};function r(r,n){return c.coerce(t||{},e,d.frame,r,n)}return r(&quot;duration&quot;),r(&quot;redraw&quot;),e},x.supplyAnimationTransitionDefaults=function(t){var e={};function r(r,n){return c.coerce(t||{},e,d.transition,r,n)}return r(&quot;duration&quot;),r(&quot;easing&quot;),e},x.supplyFrameDefaults=function(t){var e={};function r(r,n){return c.coerce(t,e,g,r,n)}return r(&quot;group&quot;),r(&quot;name&quot;),r(&quot;traces&quot;),r(&quot;baseframe&quot;),r(&quot;data&quot;),r(&quot;layout&quot;),e},x.supplyTraceDefaults=function(t,e,r,n,i){var a,s=n.colorway||u.defaults,l=s[r%s.length];function f(r,n){return c.coerce(t,e,x.attributes,r,n)}var h=f(&quot;visible&quot;);f(&quot;type&quot;),f(&quot;name&quot;,n._traceWord+&quot; &quot;+i),f(&quot;uirevision&quot;,n.uirevision);var p=x.getModule(e);if(e._module=p,p){var d=p.basePlotModule,g=d.attr,m=d.attributes;if(g&amp;&amp;m){var v=n._subplots,y=&quot;&quot;;if(h||&quot;gl2d&quot;!==d.name){if(Array.isArray(g))for(a=0;a&lt;g.length;a++){var b=g[a],_=c.coerce(t,e,m,b);v[b]&amp;&amp;c.pushUnique(v[b],_),y+=_}else y=c.coerce(t,e,m,g);v[d.name]&amp;&amp;c.pushUnique(v[d.name],y)}}}return h&amp;&amp;(f(&quot;customdata&quot;),f(&quot;ids&quot;),f(&quot;meta&quot;),o.traceIs(e,&quot;showLegend&quot;)?(c.coerce(t,e,p.attributes.showlegend?p.attributes:x.attributes,&quot;showlegend&quot;),f(&quot;legendgroup&quot;),e._dfltShowLegend=!0):e._dfltShowLegend=!1,p&amp;&amp;p.supplyDefaults(t,e,l,n),o.traceIs(e,&quot;noOpacity&quot;)||f(&quot;opacity&quot;),o.traceIs(e,&quot;notLegendIsolatable&quot;)&amp;&amp;(e.visible=!!e.visible),o.traceIs(e,&quot;noHover&quot;)||(e.hovertemplate||c.coerceHoverinfo(t,e,n),&quot;parcats&quot;!==e.type&amp;&amp;o.getComponentMethod(&quot;fx&quot;,&quot;supplyDefaults&quot;)(t,e,l,n)),p&amp;&amp;p.selectPoints&amp;&amp;f(&quot;selectedpoints&quot;),x.supplyTransformDefaults(t,e,n)),e},x.hasMakesDataTransform=A,x.supplyTransformDefaults=function(t,e,r){if(e._length||A(t)){var n=r._globalTransforms||[],i=r._transformModules||[];if(Array.isArray(t.transforms)||0!==n.length)for(var a=t.transforms||[],o=n.concat(a),s=e.transforms=[],l=0;l&lt;o.length;l++){var u,f=o[l],h=f.type,p=b[h],d=!(f._module&amp;&amp;f._module===p),g=p&amp;&amp;&quot;function&quot;==typeof p.transform;p||c.warn(&quot;Unrecognized transform type &quot;+h+&quot;.&quot;),p&amp;&amp;p.supplyDefaults&amp;&amp;(d||g)?((u=p.supplyDefaults(f,e,r,t)).type=h,u._module=p,c.pushUnique(i,p)):u=c.extendFlat({},f),s.push(u)}}},x.supplyLayoutGlobalDefaults=function(t,e,r){function n(r,n){return c.coerce(t,e,x.layoutAttributes,r,n)}var i=t.template;c.isPlainObject(i)&amp;&amp;(e.template=i,e._template=i.layout,e._dataTemplate=i.data),n(&quot;autotypenumbers&quot;);var a=c.coerceFont(n,&quot;font&quot;);n(&quot;title.text&quot;,e._dfltTitle.plot),c.coerceFont(n,&quot;title.font&quot;,{family:a.family,size:Math.round(1.4*a.size),color:a.color}),n(&quot;title.xref&quot;),n(&quot;title.yref&quot;),n(&quot;title.x&quot;),n(&quot;title.y&quot;),n(&quot;title.xanchor&quot;),n(&quot;title.yanchor&quot;),n(&quot;title.pad.t&quot;),n(&quot;title.pad.r&quot;),n(&quot;title.pad.b&quot;),n(&quot;title.pad.l&quot;),n(&quot;uniformtext.mode&quot;)&amp;&amp;n(&quot;uniformtext.minsize&quot;),n(&quot;autosize&quot;,!(t.width&amp;&amp;t.height)),n(&quot;width&quot;),n(&quot;height&quot;),n(&quot;margin.l&quot;),n(&quot;margin.r&quot;),n(&quot;margin.t&quot;),n(&quot;margin.b&quot;),n(&quot;margin.pad&quot;),n(&quot;margin.autoexpand&quot;),t.width&amp;&amp;t.height&amp;&amp;x.sanitizeMargins(e),o.getComponentMethod(&quot;grid&quot;,&quot;sizeDefaults&quot;)(t,e),n(&quot;paper_bgcolor&quot;),n(&quot;separators&quot;,r.decimal+r.thousands),n(&quot;hidesources&quot;),n(&quot;colorway&quot;),n(&quot;datarevision&quot;);var s=n(&quot;uirevision&quot;);n(&quot;editrevision&quot;,s),n(&quot;selectionrevision&quot;,s),n(&quot;modebar.orientation&quot;),n(&quot;modebar.bgcolor&quot;,u.addOpacity(e.paper_bgcolor,.5));var l=u.contrast(u.rgb(e.modebar.bgcolor));n(&quot;modebar.color&quot;,u.addOpacity(l,.3)),n(&quot;modebar.activecolor&quot;,u.addOpacity(l,.7)),n(&quot;modebar.uirevision&quot;,s),o.getComponentMethod(&quot;shapes&quot;,&quot;supplyDrawNewShapeDefaults&quot;)(t,e,n),n(&quot;meta&quot;),c.isPlainObject(t.transition)&amp;&amp;(n(&quot;transition.duration&quot;),n(&quot;transition.easing&quot;),n(&quot;transition.ordering&quot;)),o.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;),o.getComponentMethod(&quot;fx&quot;,&quot;supplyLayoutGlobalDefaults&quot;)(t,e,n)},x.plotAutoSize=function(t,e,r){var n,i,o=t._context||{},s=o.frameMargins,l=c.isPlotDiv(t);if(l&amp;&amp;t.emit(&quot;plotly_autosize&quot;),o.fillFrame)n=window.innerWidth,i=window.innerHeight,document.body.style.overflow=&quot;hidden&quot;;else{var u=l?window.getComputedStyle(t):{};if(n=E(u.width)||E(u.maxWidth)||r.width,i=E(u.height)||E(u.maxHeight)||r.height,a(s)&amp;&amp;s&gt;0){var f=1-2*s;n=Math.round(f*n),i=Math.round(f*i)}}var h=x.layoutAttributes.width.min,p=x.layoutAttributes.height.min;n&lt;h&amp;&amp;(n=h),i&lt;p&amp;&amp;(i=p);var d=!e.width&amp;&amp;Math.abs(r.width-n)&gt;1,g=!e.height&amp;&amp;Math.abs(r.height-i)&gt;1;(g||d)&amp;&amp;(d&amp;&amp;(r.width=n),g&amp;&amp;(r.height=i)),t._initialAutoSize||(t._initialAutoSize={width:n,height:i}),x.sanitizeMargins(r)},x.supplyLayoutModuleDefaults=function(t,e,r,n){var i,a,s,l=o.componentsRegistry,u=e._basePlotModules,f=o.subplotsRegistry.cartesian;for(i in l)(s=l[i]).includeBasePlot&amp;&amp;s.includeBasePlot(t,e);for(var h in u.length||u.push(f),e._has(&quot;cartesian&quot;)&amp;&amp;(o.getComponentMethod(&quot;grid&quot;,&quot;contentDefaults&quot;)(t,e),f.finalizeSubplots(t,e)),e._subplots)e._subplots[h].sort(c.subplotSort);for(a=0;a&lt;u.length;a++)(s=u[a]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r);var p=e._modules;for(a=0;a&lt;p.length;a++)(s=p[a]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r);var d=e._transformModules;for(a=0;a&lt;d.length;a++)(s=d[a]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r,n);for(i in l)(s=l[i]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r)},x.purge=function(t){var e=t._fullLayout||{};void 0!==e._glcontainer&amp;&amp;(e._glcontainer.selectAll(&quot;.gl-canvas&quot;).remove(),e._glcontainer.remove(),e._glcanvas=null),e._modeBar&amp;&amp;e._modeBar.destroy(),t._transitionData&amp;&amp;(t._transitionData._interruptCallbacks&amp;&amp;(t._transitionData._interruptCallbacks.length=0),t._transitionData._animationRaf&amp;&amp;window.cancelAnimationFrame(t._transitionData._animationRaf)),c.clearThrottle(),c.clearResponsive(t),delete t.data,delete t.layout,delete t._fullData,delete t._fullLayout,delete t.calcdata,delete t.framework,delete t.empty,delete t.fid,delete t.undoqueue,delete t.undonum,delete t.autoplay,delete t.changed,delete t._promises,delete t._redrawTimer,delete t._hmlumcount,delete t._hmpixcount,delete t._transitionData,delete t._transitioning,delete t._initialAutoSize,delete t._transitioningWithDuration,delete t._dragging,delete t._dragged,delete t._dragdata,delete t._hoverdata,delete t._snapshotInProgress,delete t._editing,delete t._mouseDownTime,delete t._legendMouseDownTime,t.removeAllListeners&amp;&amp;t.removeAllListeners()},x.style=function(t){var e,r=t._fullLayout._visibleModules,n=[];for(e=0;e&lt;r.length;e++){var i=r[e];i.style&amp;&amp;c.pushUnique(n,i.style)}for(e=0;e&lt;n.length;e++)n[e](t)},x.sanitizeMargins=function(t){if(t&amp;&amp;t.margin){var e,r=t.width,n=t.height,i=t.margin,a=r-(i.l+i.r),o=n-(i.t+i.b);a&lt;0&amp;&amp;(e=(r-1)/(i.l+i.r),i.l=Math.floor(e*i.l),i.r=Math.floor(e*i.r)),o&lt;0&amp;&amp;(e=(n-1)/(i.t+i.b),i.t=Math.floor(e*i.t),i.b=Math.floor(e*i.b))}},x.clearAutoMarginIds=function(t){t._fullLayout._pushmarginIds={}},x.allowAutoMargin=function(t,e){t._fullLayout._pushmarginIds[e]=1};x.autoMargin=function(t,e,r){var n=t._fullLayout,i=n.width,a=n.height,o=n.margin,s=c.constrain(i-o.l-o.r,2,64),l=c.constrain(a-o.t-o.b,2,64),u=Math.max(0,i-s),f=Math.max(0,a-l),h=n._pushmargin,p=n._pushmarginIds;if(!1!==o.autoexpand){if(r){var d=r.pad;if(void 0===d&amp;&amp;(d=Math.min(12,o.l,o.r,o.t,o.b)),u){var g=(r.l+r.r)/u;g&gt;1&amp;&amp;(r.l/=g,r.r/=g)}if(f){var m=(r.t+r.b)/f;m&gt;1&amp;&amp;(r.t/=m,r.b/=m)}var v=void 0!==r.xl?r.xl:r.x,y=void 0!==r.xr?r.xr:r.x,b=void 0!==r.yt?r.yt:r.y,_=void 0!==r.yb?r.yb:r.y;h[e]={l:{val:v,size:r.l+d},r:{val:y,size:r.r+d},b:{val:_,size:r.b+d},t:{val:b,size:r.t+d}},p[e]=1}else delete h[e],delete p[e];if(!n._replotting)return x.doAutoMargin(t)}},x.doAutoMargin=function(t){var e=t._fullLayout,r=e.width,n=e.height;e._size||(e._size={}),C(e);var i=e._size,s=e.margin,l=c.extendFlat({},i),u=s.l,f=s.r,p=s.t,d=s.b,g=e._pushmargin,m=e._pushmarginIds;if(!1!==e.margin.autoexpand){for(var v in g)m[v]||delete g[v];for(var y in g.base={l:{val:0,size:u},r:{val:1,size:f},t:{val:1,size:p},b:{val:0,size:d}},g){var b=g[y].l||{},_=g[y].b||{},w=b.val,T=b.size,k=_.val,M=_.size;for(var A in g){if(a(T)&amp;&amp;g[A].r){var S=g[A].r.val,E=g[A].r.size;if(S&gt;w){var L=(T*S+(E-r)*w)/(S-w),I=(E*(1-w)+(T-r)*(1-S))/(S-w);L+I&gt;u+f&amp;&amp;(u=L,f=I)}}if(a(M)&amp;&amp;g[A].t){var P=g[A].t.val,z=g[A].t.size;if(P&gt;k){var O=(M*P+(z-n)*k)/(P-k),D=(z*(1-k)+(M-n)*(1-P))/(P-k);O+D&gt;d+p&amp;&amp;(d=O,p=D)}}}}}var R=c.constrain(r-s.l-s.r,2,64),F=c.constrain(n-s.t-s.b,2,64),B=Math.max(0,r-R),N=Math.max(0,n-F);if(B){var j=(u+f)/B;j&gt;1&amp;&amp;(u/=j,f/=j)}if(N){var U=(d+p)/N;U&gt;1&amp;&amp;(d/=U,p/=U)}if(i.l=Math.round(u),i.r=Math.round(f),i.t=Math.round(p),i.b=Math.round(d),i.p=Math.round(s.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!e._replotting&amp;&amp;x.didMarginChange(l,i)){&quot;_redrawFromAutoMarginCount&quot;in e?e._redrawFromAutoMarginCount++:e._redrawFromAutoMarginCount=1;var V=3*(1+Object.keys(m).length);if(e._redrawFromAutoMarginCount&lt;V)return o.call(&quot;plot&quot;,t);e._size=l,c.warn(&quot;Too many auto-margin redraws.&quot;)}!function(t){for(var e=h.list(t,&quot;&quot;,!0),r=0;r&lt;e.length;r++){var n=e[r]._hideOutOfRangeInsideTickLabels;n&amp;&amp;n()}}(t)};var L=[&quot;l&quot;,&quot;r&quot;,&quot;t&quot;,&quot;b&quot;,&quot;p&quot;,&quot;w&quot;,&quot;h&quot;];function I(t,e,r){var n=!1;var i=[x.previousPromises,function(){if(t._transitionData)return t._transitioning=!1,function(t){var e=Promise.resolve();if(!t)return e;for(;t.length;)e=e.then(t.shift());return e}(t._transitionData._interruptCallbacks)},r.prepareFn,x.rehover,function(){return t.emit(&quot;plotly_transitioning&quot;,[]),new Promise((function(i){t._transitioning=!0,e.duration&gt;0&amp;&amp;(t._transitioningWithDuration=!0),t._transitionData._interruptCallbacks.push((function(){n=!0})),r.redraw&amp;&amp;t._transitionData._interruptCallbacks.push((function(){return o.call(&quot;redraw&quot;,t)})),t._transitionData._interruptCallbacks.push((function(){t.emit(&quot;plotly_transitioninterrupted&quot;,[])}));var a=0,s=0;function l(){return a++,function(){s++,n||s!==a||function(e){if(!t._transitionData)return;(function(t){if(t)for(;t.length;)t.shift()})(t._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return o.call(&quot;redraw&quot;,t)})).then((function(){t._transitioning=!1,t._transitioningWithDuration=!1,t.emit(&quot;plotly_transitioned&quot;,[])})).then(e)}(i)}}r.runFn(l),setTimeout(l())}))}],a=c.syncOrAsync(i,t);return a&amp;&amp;a.then||(a=Promise.resolve()),a.then((function(){return t}))}x.didMarginChange=function(t,e){for(var r=0;r&lt;L.length;r++){var n=L[r],i=t[n],o=e[n];if(!a(i)||Math.abs(o-i)&gt;1)return!0}return!1},x.graphJson=function(t,e,r,n,i,a){(i&amp;&amp;e&amp;&amp;!t._fullData||i&amp;&amp;!e&amp;&amp;!t._fullLayout)&amp;&amp;x.supplyDefaults(t);var o=i?t._fullData:t.data,s=i?t._fullLayout:t.layout,l=(t._transitionData||{})._frames;function u(t,e){if(&quot;function&quot;==typeof t)return e?&quot;_function_&quot;:null;if(c.isPlainObject(t)){var n,i={};return Object.keys(t).sort().forEach((function(a){if(-1===[&quot;_&quot;,&quot;[&quot;].indexOf(a.charAt(0)))if(&quot;function&quot;!=typeof t[a]){if(&quot;keepdata&quot;===r){if(&quot;src&quot;===a.substr(a.length-3))return}else if(&quot;keepstream&quot;===r){if(&quot;string&quot;==typeof(n=t[a+&quot;src&quot;])&amp;&amp;n.indexOf(&quot;:&quot;)&gt;0&amp;&amp;!c.isPlainObject(t.stream))return}else if(&quot;keepall&quot;!==r&amp;&amp;&quot;string&quot;==typeof(n=t[a+&quot;src&quot;])&amp;&amp;n.indexOf(&quot;:&quot;)&gt;0)return;i[a]=u(t[a],e)}else e&amp;&amp;(i[a]=&quot;_function&quot;)})),i}return Array.isArray(t)?t.map((function(t){return u(t,e)})):c.isTypedArray(t)?c.simpleMap(t,c.identity):c.isJSDate(t)?c.ms2DateTimeLocal(+t):t}var f={data:(o||[]).map((function(t){var r=u(t);return e&amp;&amp;delete r.fit,r}))};if(!e&amp;&amp;(f.layout=u(s),i)){var h=s._size;f.layout.computed={margin:{b:h.b,l:h.l,r:h.r,t:h.t}}}return t.framework&amp;&amp;t.framework.isPolar&amp;&amp;(f=t.framework.getConfig()),l&amp;&amp;(f.frames=u(l)),a&amp;&amp;(f.config=u(t._context,!0)),&quot;object&quot;===n?f:JSON.stringify(f)},x.modifyFrames=function(t,e){var r,n,i,a=t._transitionData._frames,o=t._transitionData._frameHash;for(r=0;r&lt;e.length;r++)switch((n=e[r]).type){case&quot;replace&quot;:i=n.value;var s=(a[n.index]||{}).name,l=i.name;a[n.index]=o[l]=i,l!==s&amp;&amp;(delete o[s],o[l]=i);break;case&quot;insert&quot;:o[(i=n.value).name]=i,a.splice(n.index,0,i);break;case&quot;delete&quot;:delete o[(i=a[n.index]).name],a.splice(n.index,1)}return Promise.resolve()},x.computeFrame=function(t,e){var r,n,i,a,o=t._transitionData._frameHash;if(!e)throw new Error(&quot;computeFrame must be given a string frame name&quot;);var s=o[e.toString()];if(!s)return!1;for(var l=[s],c=[s.name];s.baseframe&amp;&amp;(s=o[s.baseframe.toString()])&amp;&amp;-1===c.indexOf(s.name);)l.push(s),c.push(s.name);for(var u={};s=l.pop();)if(s.layout&amp;&amp;(u.layout=x.extendLayout(u.layout,s.layout)),s.data){if(u.data||(u.data=[]),!(n=s.traces))for(n=[],r=0;r&lt;s.data.length;r++)n[r]=r;for(u.traces||(u.traces=[]),r=0;r&lt;s.data.length;r++)null!=(i=n[r])&amp;&amp;(-1===(a=u.traces.indexOf(i))&amp;&amp;(a=u.data.length,u.traces[a]=i),u.data[a]=x.extendTrace(u.data[a],s.data[r]))}return u},x.recomputeFrameHash=function(t){for(var e=t._transitionData._frameHash={},r=t._transitionData._frames,n=0;n&lt;r.length;n++){var i=r[n];i&amp;&amp;i.name&amp;&amp;(e[i.name]=i)}},x.extendObjectWithContainers=function(t,e,r){var n,i,a,o,s,l,u,f=c.extendDeepNoArrays({},e||{}),h=c.expandObjectPaths(f),p={};if(r&amp;&amp;r.length)for(a=0;a&lt;r.length;a++)void 0===(i=(n=c.nestedProperty(h,r[a])).get())?c.nestedProperty(p,r[a]).set(null):(n.set(null),c.nestedProperty(p,r[a]).set(i));if(t=c.extendDeepNoArrays(t||{},h),r&amp;&amp;r.length)for(a=0;a&lt;r.length;a++)if(l=c.nestedProperty(p,r[a]).get()){for(u=(s=c.nestedProperty(t,r[a])).get(),Array.isArray(u)||(u=[],s.set(u)),o=0;o&lt;l.length;o++){var d=l[o];u[o]=null===d?null:x.extendObjectWithContainers(u[o],d)}s.set(u)}return t},x.dataArrayContainers=[&quot;transforms&quot;,&quot;dimensions&quot;],x.layoutArrayContainers=o.layoutArrayContainers,x.extendTrace=function(t,e){return x.extendObjectWithContainers(t,e,x.dataArrayContainers)},x.extendLayout=function(t,e){return x.extendObjectWithContainers(t,e,x.layoutArrayContainers)},x.transition=function(t,e,r,n,i,a){var o={redraw:i.redraw},s={},l=[];return o.prepareFn=function(){for(var i=Array.isArray(e)?e.length:0,a=n.slice(0,i),o=0;o&lt;a.length;o++){var u=a[o],f=t._fullData[u]._module;if(f){if(f.animatable){var h=f.basePlotModule.name;s[h]||(s[h]=[]),s[h].push(u)}t.data[a[o]]=x.extendTrace(t.data[a[o]],e[o])}}var p=c.expandObjectPaths(c.extendDeepNoArrays({},r)),d=/^[xy]axis[0-9]*$/;for(var g in p)d.test(g)&amp;&amp;delete p[g].range;x.extendLayout(t.layout,p),delete t.calcdata,x.supplyDefaults(t),x.doCalcdata(t);var m=c.expandObjectPaths(r);if(m){var v=t._fullLayout._plots;for(var y in v){var b=v[y],_=b.xaxis,w=b.yaxis,T=_.range.slice(),k=w.range.slice(),M=null,A=null,S=null,E=null;Array.isArray(m[_._name+&quot;.range&quot;])?M=m[_._name+&quot;.range&quot;].slice():Array.isArray((m[_._name]||{}).range)&amp;&amp;(M=m[_._name].range.slice()),Array.isArray(m[w._name+&quot;.range&quot;])?A=m[w._name+&quot;.range&quot;].slice():Array.isArray((m[w._name]||{}).range)&amp;&amp;(A=m[w._name].range.slice()),T&amp;&amp;M&amp;&amp;(_.r2l(T[0])!==_.r2l(M[0])||_.r2l(T[1])!==_.r2l(M[1]))&amp;&amp;(S={xr0:T,xr1:M}),k&amp;&amp;A&amp;&amp;(w.r2l(k[0])!==w.r2l(A[0])||w.r2l(k[1])!==w.r2l(A[1]))&amp;&amp;(E={yr0:k,yr1:A}),(S||E)&amp;&amp;l.push(c.extendFlat({plotinfo:b},S,E))}}return Promise.resolve()},o.runFn=function(e){var n,i,o=t._fullLayout._basePlotModules,u=l.length;if(r)for(i=0;i&lt;o.length;i++)o[i].transitionAxes&amp;&amp;o[i].transitionAxes(t,l,a,e);for(var f in u?((n=c.extendFlat({},a)).duration=0,delete s.cartesian):n=a,s){var h=s[f];t._fullData[h[0]]._module.basePlotModule.plot(t,h,n,e)}},I(t,a,o)},x.transitionFromReact=function(t,e,r,n){var i=t._fullLayout,a=i.transition,o={},s=[];return o.prepareFn=function(){var t=i._plots;for(var a in o.redraw=!1,&quot;some&quot;===e.anim&amp;&amp;(o.redraw=!0),&quot;some&quot;===r.anim&amp;&amp;(o.redraw=!0),t){var l=t[a],u=l.xaxis,f=l.yaxis,h=n[u._name].range.slice(),p=n[f._name].range.slice(),d=u.range.slice(),g=f.range.slice();u.setScale(),f.setScale();var m=null,v=null;u.r2l(h[0])===u.r2l(d[0])&amp;&amp;u.r2l(h[1])===u.r2l(d[1])||(m={xr0:h,xr1:d}),f.r2l(p[0])===f.r2l(g[0])&amp;&amp;f.r2l(p[1])===f.r2l(g[1])||(v={yr0:p,yr1:g}),(m||v)&amp;&amp;s.push(c.extendFlat({plotinfo:l},m,v))}return Promise.resolve()},o.runFn=function(r){for(var n,i,o,l=t._fullData,u=t._fullLayout._basePlotModules,f=[],h=0;h&lt;l.length;h++)f.push(h);function p(){for(var e=0;e&lt;u.length;e++)u[e].transitionAxes&amp;&amp;u[e].transitionAxes(t,s,n,r)}function d(){for(var e=0;e&lt;u.length;e++)u[e].plot(t,o,i,r)}s.length&amp;&amp;e.anim?&quot;traces first&quot;===a.ordering?(n=c.extendFlat({},a,{duration:0}),o=f,i=a,setTimeout(p,a.duration),d()):(n=a,o=null,i=c.extendFlat({},a,{duration:0}),setTimeout(d,n.duration),p()):s.length?(n=a,p()):e.anim&amp;&amp;(o=f,i=a,d())},I(t,a,o)},x.doCalcdata=function(t,e){var r,n,i,a,l=h.list(t),u=t._fullData,p=t._fullLayout,d=new Array(u.length),g=(t.calcdata||[]).slice();for(t.calcdata=d,p._numBoxes=0,p._numViolins=0,p._violinScaleGroupStats={},t._hmpixcount=0,t._hmlumcount=0,p._piecolormap={},p._sunburstcolormap={},p._treemapcolormap={},p._funnelareacolormap={},i=0;i&lt;u.length;i++)Array.isArray(e)&amp;&amp;-1===e.indexOf(i)&amp;&amp;(d[i]=g[i]);for(i=0;i&lt;u.length;i++)(r=u[i])._arrayAttrs=s.findArrayAttributes(r),r._extremes={};var m=p._subplots.polar||[];for(i=0;i&lt;m.length;i++)l.push(p[m[i]].radialaxis,p[m[i]].angularaxis);for(var v in p._colorAxes){var y=p[v];!1!==y.cauto&amp;&amp;(delete y.cmin,delete y.cmax)}var x=!1;function _(e){if(r=u[e],n=r._module,!0===r.visible&amp;&amp;r.transforms){if(n&amp;&amp;n.calc){var i=n.calc(t,r);i[0]&amp;&amp;i[0].t&amp;&amp;i[0].t._scene&amp;&amp;delete i[0].t._scene.dirty}for(a=0;a&lt;r.transforms.length;a++){var o=r.transforms[a];(n=b[o.type])&amp;&amp;n.calcTransform&amp;&amp;(r._hasCalcTransform=!0,x=!0,n.calcTransform(t,r,o))}}}function w(e,i){if(r=u[e],!!(n=r._module).isContainer===i){var o=[];if(!0===r.visible&amp;&amp;0!==r._length){delete r._indexToPoints;var s=r.transforms||[];for(a=s.length-1;a&gt;=0;a--)if(s[a].enabled){r._indexToPoints=s[a]._indexToPoints;break}n&amp;&amp;n.calc&amp;&amp;(o=n.calc(t,r))}Array.isArray(o)&amp;&amp;o[0]||(o=[{x:f,y:f}]),o[0].t||(o[0].t={}),o[0].trace=r,d[e]=o}}for(z(l,u,p),i=0;i&lt;u.length;i++)w(i,!0);for(i=0;i&lt;u.length;i++)_(i);for(x&amp;&amp;z(l,u,p),i=0;i&lt;u.length;i++)w(i,!0);for(i=0;i&lt;u.length;i++)w(i,!1);O(t);var T=function(t,e){var r,n,i,a,s,l=[];function u(t,r,n){var i=r._id.charAt(0);if(&quot;histogram2dcontour&quot;===t){var a=r._counterAxes[0],o=h.getFromId(e,a),s=&quot;x&quot;===i||&quot;x&quot;===a&amp;&amp;&quot;category&quot;===o.type,l=&quot;y&quot;===i||&quot;y&quot;===a&amp;&amp;&quot;category&quot;===o.type;return function(t,e){return 0===t||0===e||s&amp;&amp;t===n[e].length-1||l&amp;&amp;e===n.length-1?-1:(&quot;y&quot;===i?e:t)-1}}return function(t,e){return&quot;y&quot;===i?e:t}}var f={min:function(t){return c.aggNums(Math.min,null,t)},max:function(t){return c.aggNums(Math.max,null,t)},sum:function(t){return c.aggNums((function(t,e){return t+e}),null,t)},total:function(t){return c.aggNums((function(t,e){return t+e}),null,t)},mean:function(t){return c.mean(t)},median:function(t){return c.median(t)}};for(r=0;r&lt;t.length;r++){var p=t[r];if(&quot;category&quot;===p.type){var d=p.categoryorder.match(P);if(d){var g=d[1],m=d[2],v=p._id.charAt(0),y=&quot;x&quot;===v,x=[];for(n=0;n&lt;p._categories.length;n++)x.push([p._categories[n],[]]);for(n=0;n&lt;p._traceIndices.length;n++){var b=p._traceIndices[n],_=e._fullData[b];if(!0===_.visible){var w=_.type;o.traceIs(_,&quot;histogram&quot;)&amp;&amp;(delete _._xautoBinFinished,delete _._yautoBinFinished);var T=&quot;splom&quot;===w,k=&quot;scattergl&quot;===w,M=e.calcdata[b];for(i=0;i&lt;M.length;i++){var A,S,E=M[i];if(T){var C=_._axesDim[p._id];if(!y){var L=_._diag[C][0];L&amp;&amp;(p=e._fullLayout[h.id2name(L)])}var I=E.trace.dimensions[C].values;for(a=0;a&lt;I.length;a++)for(A=p._categoriesMap[I[a]],s=0;s&lt;E.trace.dimensions.length;s++)if(s!==C){var z=E.trace.dimensions[s];x[A][1].push(z.values[a])}}else if(k){for(a=0;a&lt;E.t.x.length;a++)y?(A=E.t.x[a],S=E.t.y[a]):(A=E.t.y[a],S=E.t.x[a]),x[A][1].push(S);E.t&amp;&amp;E.t._scene&amp;&amp;delete E.t._scene.dirty}else if(E.hasOwnProperty(&quot;z&quot;)){S=E.z;var O=u(_.type,p,S);for(a=0;a&lt;S.length;a++)for(s=0;s&lt;S[a].length;s++)(A=O(s,a))+1&amp;&amp;x[A][1].push(S[a][s])}else for(void 0===(A=E.p)&amp;&amp;(A=E[v]),void 0===(S=E.s)&amp;&amp;(S=E.v),void 0===S&amp;&amp;(S=y?E.y:E.x),Array.isArray(S)||(S=void 0===S?[]:[S]),a=0;a&lt;S.length;a++)x[A][1].push(S[a])}}}p._categoriesValue=x;var D=[];for(n=0;n&lt;x.length;n++)D.push([x[n][0],f[g](x[n][1])]);D.sort((function(t,e){return t[1]-e[1]})),p._categoriesAggregatedValue=D,p._initialCategories=D.map((function(t){return t[0]})),&quot;descending&quot;===m&amp;&amp;p._initialCategories.reverse(),l=l.concat(p.sortByInitialCategories())}}}return l}(l,t);if(T.length){for(p._numBoxes=0,p._numViolins=0,i=0;i&lt;T.length;i++)w(T[i],!0);for(i=0;i&lt;T.length;i++)w(T[i],!1);O(t)}o.getComponentMethod(&quot;fx&quot;,&quot;calc&quot;)(t),o.getComponentMethod(&quot;errorbars&quot;,&quot;calc&quot;)(t)};var P=/(total|sum|min|max|mean|median) (ascending|descending)/;function z(t,e,r){var n={};function i(t){t.clearCalc(),&quot;multicategory&quot;===t.type&amp;&amp;t.setupMultiCategory(e),n[t._id]=1}c.simpleMap(t,i);for(var a=r._axisMatchGroups||[],o=0;o&lt;a.length;o++)for(var s in a[o])n[s]||i(r[h.id2name(s)])}function O(t){var e,r,n,i=t._fullLayout,a=i._visibleModules,o={};for(r=0;r&lt;a.length;r++){var s=a[r],l=s.crossTraceCalc;if(l){var u=s.basePlotModule.name;o[u]?c.pushUnique(o[u],l):o[u]=[l]}}for(n in o){var f=o[n],h=i._subplots[n];if(Array.isArray(h))for(e=0;e&lt;h.length;e++){var p=h[e],d=&quot;cartesian&quot;===n?i._plots[p]:i[p];for(r=0;r&lt;f.length;r++)f[r](t,d,p)}else for(r=0;r&lt;f.length;r++)f[r](t)}}x.rehover=function(t){t._fullLayout._rehover&amp;&amp;t._fullLayout._rehover()},x.redrag=function(t){t._fullLayout._redrag&amp;&amp;t._fullLayout._redrag()},x.generalUpdatePerTraceModule=function(t,e,r,n){var i,a=e.traceHash,o={};for(i=0;i&lt;r.length;i++){var s=r[i],l=s[0].trace;l.visible&amp;&amp;(o[l.type]=o[l.type]||[],o[l.type].push(s))}for(var u in a)if(!o[u]){var f=a[u][0];f[0].trace.visible=!1,o[u]=[f]}for(var h in o){var p=o[h];p[0][0].trace._module.plot(t,e,c.filterVisible(p),n)}e.traceHash=o},x.plotBasePlot=function(t,e,r,n,i){var a=o.getModule(t),s=m(e.calcdata,a)[0];a.plot(e,s,n,i)},x.cleanBasePlot=function(t,e,r,n,i){var a=i._has&amp;&amp;i._has(t),o=r._has&amp;&amp;r._has(t);a&amp;&amp;!o&amp;&amp;i[&quot;_&quot;+t+&quot;layer&quot;].selectAll(&quot;g.trace&quot;).remove()}},{&quot;../components/color&quot;:643,&quot;../constants/numerical&quot;:753,&quot;../lib&quot;:778,&quot;../plot_api/plot_schema&quot;:816,&quot;../plot_api/plot_template&quot;:817,&quot;../plots/get_data&quot;:865,&quot;../registry&quot;:911,&quot;./animation_attributes&quot;:822,&quot;./attributes&quot;:824,&quot;./cartesian/axis_ids&quot;:831,&quot;./cartesian/handle_outline&quot;:838,&quot;./command&quot;:854,&quot;./font_attributes&quot;:856,&quot;./frame_attributes&quot;:857,&quot;./layout_attributes&quot;:882,d3:169,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],892:[function(t,e,r){&quot;use strict&quot;;e.exports={attr:&quot;subplot&quot;,name:&quot;polar&quot;,axisNames:[&quot;angularaxis&quot;,&quot;radialaxis&quot;],axisName2dataArray:{angularaxis:&quot;theta&quot;,radialaxis:&quot;r&quot;},layerNames:[&quot;draglayer&quot;,&quot;plotbg&quot;,&quot;backplot&quot;,&quot;angular-grid&quot;,&quot;radial-grid&quot;,&quot;frontplot&quot;,&quot;angular-line&quot;,&quot;radial-line&quot;,&quot;angular-axis&quot;,&quot;radial-axis&quot;],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}},{}],893:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/polygon&quot;).tester,a=n.findIndexOfMin,o=n.isAngleInsideSector,s=n.angleDelta,l=n.angleDist;function c(t,e,r,n){var i,a,o=n[0],s=n[1],l=f(Math.sin(e)-Math.sin(t)),c=f(Math.cos(e)-Math.cos(t)),u=Math.tan(r),h=f(1/u),p=l/c,d=s-p*o;return h?l&amp;&amp;c?a=u*(i=d/(u-p)):c?(i=s*h,a=s):(i=o,a=o*u):l&amp;&amp;c?(i=0,a=d):c?(i=0,a=s):i=a=NaN,[i,a]}function u(t,e,r,i){return n.isFullCircle([e,r])?function(t,e){var r,n=e.length,i=new Array(n+1);for(r=0;r&lt;n;r++){var a=e[r];i[r]=[t*Math.cos(a),t*Math.sin(a)]}return i[r]=i[0].slice(),i}(t,i):function(t,e,r,i){var s,u,f=i.length,h=[];function p(e){return[t*Math.cos(e),t*Math.sin(e)]}function d(t,e,r){return c(t,e,r,p(t))}function g(t){return n.mod(t,f)}function m(t){return o(t,[e,r])}var v=a(i,(function(t){return m(t)?l(t,e):1/0})),y=d(i[v],i[g(v-1)],e);for(h.push(y),s=v,u=0;u&lt;f;s++,u++){var x=i[g(s)];if(!m(x))break;h.push(p(x))}var b=a(i,(function(t){return m(t)?l(t,r):1/0})),_=d(i[b],i[g(b+1)],r);return h.push(_),h.push([0,0]),h.push(h[0].slice()),h}(t,e,r,i)}function f(t){return Math.abs(t)&gt;1e-10?t:0}function h(t,e,r){e=e||0,r=r||0;for(var n=t.length,i=new Array(n),a=0;a&lt;n;a++){var o=t[a];i[a]=[e+o[0],r-o[1]]}return i}e.exports={isPtInsidePolygon:function(t,e,r,n,a){if(!o(e,n))return!1;var s,l;r[0]&lt;r[1]?(s=r[0],l=r[1]):(s=r[1],l=r[0]);var c=i(u(s,n[0],n[1],a)),f=i(u(l,n[0],n[1],a)),h=[t*Math.cos(e),t*Math.sin(e)];return f.contains(h)&amp;&amp;!c.contains(h)},findPolygonOffset:function(t,e,r,n){for(var i=1/0,a=1/0,o=u(t,e,r,n),s=0;s&lt;o.length;s++){var l=o[s];i=Math.min(i,l[0]),a=Math.min(a,-l[1])}return[i,a]},findEnclosingVertexAngles:function(t,e){var r=a(e,(function(e){var r=s(e,t);return r&gt;0?r:1/0})),i=n.mod(r+1,e.length);return[e[r],e[i]]},findIntersectionXY:c,findXYatLength:function(t,e,r,n){var i=-e*r,a=e*e+1,o=2*(e*i-r),s=i*i+r*r-t*t,l=Math.sqrt(o*o-4*a*s),c=(-o+l)/(2*a),u=(-o-l)/(2*a);return[[c,e*c+i+n],[u,e*u+i+n]]},clampTiny:f,pathPolygon:function(t,e,r,n,i,a){return&quot;M&quot;+h(u(t,e,r,n),i,a).join(&quot;L&quot;)},pathPolygonAnnulus:function(t,e,r,n,i,a,o){var s,l;t&lt;e?(s=t,l=e):(s=e,l=t);var c=h(u(s,r,n,i),a,o);return&quot;M&quot;+h(u(l,r,n,i),a,o).reverse().join(&quot;L&quot;)+&quot;M&quot;+c.join(&quot;L&quot;)}}},{&quot;../../lib&quot;:778,&quot;../../lib/polygon&quot;:790}],894:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../get_data&quot;).getSubplotCalcData,i=t(&quot;../../lib&quot;).counterRegex,a=t(&quot;./polar&quot;),o=t(&quot;./constants&quot;),s=o.attr,l=o.name,c=i(l),u={};u[s]={valType:&quot;subplotid&quot;,dflt:l,editType:&quot;calc&quot;},e.exports={attr:s,name:l,idRoot:l,idRegex:c,attrRegex:c,attributes:u,layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots[l],o=0;o&lt;i.length;o++){var s=i[o],c=n(r,l,s),u=e[s]._subplot;u||(u=a(t,s),e[s]._subplot=u),u.plot(c,e,t._promises)}},clean:function(t,e,r,n){for(var i=n._subplots[l]||[],a=n._has&amp;&amp;n._has(&quot;gl&quot;),o=e._has&amp;&amp;e._has(&quot;gl&quot;),s=a&amp;&amp;!o,c=0;c&lt;i.length;c++){var u=i[c],f=n[u]._subplot;if(!e[u]&amp;&amp;f)for(var h in f.framework.remove(),f.layers[&quot;radial-axis-title&quot;].remove(),f.clipPaths)f.clipPaths[h].remove();s&amp;&amp;f._scene&amp;&amp;(f._scene.destroy(),f._scene=null)}},toSVG:t(&quot;../cartesian&quot;).toSVG}},{&quot;../../lib&quot;:778,&quot;../cartesian&quot;:841,&quot;../get_data&quot;:865,&quot;./constants&quot;:892,&quot;./layout_attributes&quot;:895,&quot;./layout_defaults&quot;:896,&quot;./polar&quot;:903}],895:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../cartesian/layout_attributes&quot;),a=t(&quot;../domain&quot;).attributes,o=t(&quot;../../lib&quot;).extendFlat,s=t(&quot;../../plot_api/edit_types&quot;).overrideAll,l=s({color:i.color,showline:o({},i.showline,{dflt:!0}),linecolor:i.linecolor,linewidth:i.linewidth,showgrid:o({},i.showgrid,{dflt:!0}),gridcolor:i.gridcolor,gridwidth:i.gridwidth},&quot;plot&quot;,&quot;from-root&quot;),c=s({tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,showtickprefix:i.showtickprefix,tickprefix:i.tickprefix,showticksuffix:i.showticksuffix,ticksuffix:i.ticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickfont:i.tickfont,tickangle:i.tickangle,tickformat:i.tickformat,tickformatstops:i.tickformatstops,layer:i.layer},&quot;plot&quot;,&quot;from-root&quot;),u={visible:o({},i.visible,{dflt:!0}),type:o({},i.type,{values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;]}),autotypenumbers:i.autotypenumbers,autorange:o({},i.autorange,{editType:&quot;plot&quot;}),rangemode:{valType:&quot;enumerated&quot;,values:[&quot;tozero&quot;,&quot;nonnegative&quot;,&quot;normal&quot;],dflt:&quot;tozero&quot;,editType:&quot;calc&quot;},range:o({},i.range,{items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],editType:&quot;plot&quot;}),categoryorder:i.categoryorder,categoryarray:i.categoryarray,angle:{valType:&quot;angle&quot;,editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;],dflt:&quot;clockwise&quot;,editType:&quot;plot&quot;},title:{text:o({},i.title.text,{editType:&quot;plot&quot;,dflt:&quot;&quot;}),font:o({},i.title.font,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},hoverformat:i.hoverformat,uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;,_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}};o(u,l,c);var f={visible:o({},i.visible,{dflt:!0}),type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;category&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;,_noTemplating:!0},autotypenumbers:i.autotypenumbers,categoryorder:i.categoryorder,categoryarray:i.categoryarray,thetaunit:{valType:&quot;enumerated&quot;,values:[&quot;radians&quot;,&quot;degrees&quot;],dflt:&quot;degrees&quot;,editType:&quot;calc&quot;},period:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0},direction:{valType:&quot;enumerated&quot;,values:[&quot;counterclockwise&quot;,&quot;clockwise&quot;],dflt:&quot;counterclockwise&quot;,editType:&quot;calc&quot;},rotation:{valType:&quot;angle&quot;,editType:&quot;calc&quot;},hoverformat:i.hoverformat,uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;};o(f,l,c),e.exports={domain:a({name:&quot;polar&quot;,editType:&quot;plot&quot;}),sector:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],dflt:[0,360],editType:&quot;plot&quot;},hole:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;plot&quot;},bgcolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;,dflt:n.background},radialaxis:u,angularaxis:f,gridshape:{valType:&quot;enumerated&quot;,values:[&quot;circular&quot;,&quot;linear&quot;],dflt:&quot;circular&quot;,editType:&quot;plot&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;../cartesian/layout_attributes&quot;:842,&quot;../domain&quot;:855}],896:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;../subplot_defaults&quot;),s=t(&quot;../get_data&quot;).getSubplotData,l=t(&quot;../cartesian/tick_value_defaults&quot;),c=t(&quot;../cartesian/tick_mark_defaults&quot;),u=t(&quot;../cartesian/tick_label_defaults&quot;),f=t(&quot;../cartesian/category_order_defaults&quot;),h=t(&quot;../cartesian/line_grid_defaults&quot;),p=t(&quot;../cartesian/axis_autotype&quot;),d=t(&quot;./layout_attributes&quot;),g=t(&quot;./set_convert&quot;),m=t(&quot;./constants&quot;),v=m.axisNames;function y(t,e,r,o){var p=r(&quot;bgcolor&quot;);o.bgColor=i.combine(p,o.paper_bgcolor);var y=r(&quot;sector&quot;);r(&quot;hole&quot;);var b,_=s(o.fullData,m.name,o.id),w=o.layoutOut;function T(t,e){return r(b+&quot;.&quot;+t,e)}for(var k=0;k&lt;v.length;k++){b=v[k],n.isPlainObject(t[b])||(t[b]={});var M=t[b],A=a.newContainer(e,b);A._id=A._name=b,A._attr=o.id+&quot;.&quot;+b,A._traceIndices=_.map((function(t){return t._expandedIndex}));var S=m.axisName2dataArray[b],E=x(M,A,T,_,S,o);f(M,A,T,{axData:_,dataAttr:S});var C,L,I=T(&quot;visible&quot;);switch(g(A,e,w),T(&quot;uirevision&quot;,e.uirevision),I&amp;&amp;(L=(C=T(&quot;color&quot;))===M.color?C:o.font.color),A._m=1,b){case&quot;radialaxis&quot;:var P=T(&quot;autorange&quot;,!A.isValidRange(M.range));M.autorange=P,!P||&quot;linear&quot;!==E&amp;&amp;&quot;-&quot;!==E||T(&quot;rangemode&quot;),&quot;reversed&quot;===P&amp;&amp;(A._m=-1),T(&quot;range&quot;),A.cleanRange(&quot;range&quot;,{dfltRange:[0,1]}),I&amp;&amp;(T(&quot;side&quot;),T(&quot;angle&quot;,y[0]),T(&quot;title.text&quot;),n.coerceFont(T,&quot;title.font&quot;,{family:o.font.family,size:Math.round(1.2*o.font.size),color:L}));break;case&quot;angularaxis&quot;:if(&quot;date&quot;===E){n.log(&quot;Polar plots do not support date angular axes yet.&quot;);for(var z=0;z&lt;_.length;z++)_[z].visible=!1;E=M.type=A.type=&quot;linear&quot;}T(&quot;linear&quot;===E?&quot;thetaunit&quot;:&quot;period&quot;);var O=T(&quot;direction&quot;);T(&quot;rotation&quot;,{counterclockwise:0,clockwise:90}[O])}if(I)l(M,A,T,A.type),u(M,A,T,A.type,{tickSuffixDflt:&quot;degrees&quot;===A.thetaunit?&quot;\xb0&quot;:void 0}),c(M,A,T,{outerTicks:!0}),T(&quot;showticklabels&quot;)&amp;&amp;(n.coerceFont(T,&quot;tickfont&quot;,{family:o.font.family,size:o.font.size,color:L}),T(&quot;tickangle&quot;),T(&quot;tickformat&quot;)),h(M,A,T,{dfltColor:C,bgColor:o.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:d[b]}),T(&quot;layer&quot;);&quot;category&quot;!==E&amp;&amp;T(&quot;hoverformat&quot;),A._input=M}&quot;category&quot;===e.angularaxis.type&amp;&amp;r(&quot;gridshape&quot;)}function x(t,e,r,n,i,a){var o=r(&quot;autotypenumbers&quot;,a.autotypenumbersDflt);if(&quot;-&quot;===r(&quot;type&quot;)){for(var s,l=0;l&lt;n.length;l++)if(n[l].visible){s=n[l];break}s&amp;&amp;s[i]&amp;&amp;(e.type=p(s[i],&quot;gregorian&quot;,{noMultiCategory:!0,autotypenumbers:o})),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:t.type=e.type}return e.type}e.exports=function(t,e,r){o(t,e,r,{type:m.name,attributes:d,handleDefaults:y,font:e.font,autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,fullData:r,layoutOut:e})}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../cartesian/axis_autotype&quot;:829,&quot;../cartesian/category_order_defaults&quot;:832,&quot;../cartesian/line_grid_defaults&quot;:844,&quot;../cartesian/tick_label_defaults&quot;:849,&quot;../cartesian/tick_mark_defaults&quot;:850,&quot;../cartesian/tick_value_defaults&quot;:851,&quot;../get_data&quot;:865,&quot;../subplot_defaults&quot;:905,&quot;./constants&quot;:892,&quot;./layout_attributes&quot;:895,&quot;./set_convert&quot;:904}],897:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../traces/scatter/attributes&quot;),i=n.marker,a=t(&quot;../../../lib/extend&quot;).extendFlat;[&quot;Area traces are deprecated!&quot;,&quot;Please switch to the *barpolar* trace type.&quot;].join(&quot; &quot;);e.exports={r:a({},n.r,{}),t:a({},n.t,{}),marker:{color:a({},i.color,{}),size:a({},i.size,{}),symbol:a({},i.symbol,{}),opacity:a({},i.opacity,{}),editType:&quot;calc&quot;}}},{&quot;../../../lib/extend&quot;:768,&quot;../../../traces/scatter/attributes&quot;:1187}],898:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../cartesian/layout_attributes&quot;),i=t(&quot;../../../lib/extend&quot;).extendFlat,a=t(&quot;../../../plot_api/edit_types&quot;).overrideAll,o=[&quot;Legacy polar charts are deprecated!&quot;,&quot;Please switch to *polar* subplots.&quot;].join(&quot; &quot;),s=i({},n.domain,{});function l(t,e){return i({},e,{showline:{valType:&quot;boolean&quot;},showticklabels:{valType:&quot;boolean&quot;},tickorientation:{valType:&quot;enumerated&quot;,values:[&quot;horizontal&quot;,&quot;vertical&quot;]},ticklen:{valType:&quot;number&quot;,min:0},tickcolor:{valType:&quot;color&quot;},ticksuffix:{valType:&quot;string&quot;},endpadding:{valType:&quot;number&quot;,description:o},visible:{valType:&quot;boolean&quot;}})}e.exports=a({radialaxis:l(0,{range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},domain:s,orientation:{valType:&quot;number&quot;}}),angularaxis:l(0,{range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,dflt:0},{valType:&quot;number&quot;,dflt:360}]},domain:s}),layout:{direction:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;]},orientation:{valType:&quot;angle&quot;}}},&quot;plot&quot;,&quot;nested&quot;)},{&quot;../../../lib/extend&quot;:768,&quot;../../../plot_api/edit_types&quot;:810,&quot;../../cartesian/layout_attributes&quot;:842}],899:[function(t,e,r){&quot;use strict&quot;;(e.exports=t(&quot;./micropolar&quot;)).manager=t(&quot;./micropolar_manager&quot;)},{&quot;./micropolar&quot;:900,&quot;./micropolar_manager&quot;:901}],900:[function(t,e,r){var n=t(&quot;d3&quot;),i=t(&quot;../../../lib&quot;).extendDeepAll,a=t(&quot;../../../constants/alignment&quot;).MID_SHIFT,o=e.exports={version:&quot;0.2.2&quot;};o.Axis=function(){var t,e,r,s,l={data:[],layout:{}},c={},u={},f=n.dispatch(&quot;hover&quot;),h={};return h.render=function(c){return function(c){e=c||e;var f=l.data,h=l.layout;(&quot;string&quot;==typeof e||e.nodeName)&amp;&amp;(e=n.select(e)),e.datum(f).each((function(e,l){var c=e.slice();u={data:o.util.cloneJson(c),layout:o.util.cloneJson(h)};var f=0;c.forEach((function(t,e){t.color||(t.color=h.defaultColorRange[f],f=(f+1)%h.defaultColorRange.length),t.strokeColor||(t.strokeColor=&quot;LinePlot&quot;===t.geometry?t.color:n.rgb(t.color).darker().toString()),u.data[e].color=t.color,u.data[e].strokeColor=t.strokeColor,u.data[e].strokeDash=t.strokeDash,u.data[e].strokeSize=t.strokeSize}));var p=c.filter((function(t,e){var r=t.visible;return&quot;undefined&quot;==typeof r||!0===r})),d=!1,g=p.map((function(t,e){return d=d||&quot;undefined&quot;!=typeof t.groupId,t}));if(d){var m=n.nest().key((function(t,e){return&quot;undefined&quot;!=typeof t.groupId?t.groupId:&quot;unstacked&quot;})).entries(g),v=[],y=m.map((function(t,e){if(&quot;unstacked&quot;===t.key)return t.values;var r=t.values[0].r.map((function(t,e){return 0}));return t.values.forEach((function(t,e,n){t.yStack=[r],v.push(r),r=o.util.sumArrays(t.r,r)})),t.values}));p=n.merge(y)}p.forEach((function(t,e){t.t=Array.isArray(t.t[0])?t.t:[t.t],t.r=Array.isArray(t.r[0])?t.r:[t.r]}));var x=Math.min(h.width-h.margin.left-h.margin.right,h.height-h.margin.top-h.margin.bottom)/2;x=Math.max(10,x);var b,_=[h.margin.left+x,h.margin.top+x];d?b=[0,n.max(o.util.sumArrays(o.util.arrayLast(p).r[0],o.util.arrayLast(v)))]:b=n.extent(o.util.flattenArray(p.map((function(t,e){return t.r}))));h.radialAxis.domain!=o.DATAEXTENT&amp;&amp;(b[0]=0),r=n.scale.linear().domain(h.radialAxis.domain!=o.DATAEXTENT&amp;&amp;h.radialAxis.domain?h.radialAxis.domain:b).range([0,x]),u.layout.radialAxis.domain=r.domain();var w,T=o.util.flattenArray(p.map((function(t,e){return t.t}))),k=&quot;string&quot;==typeof T[0];k&amp;&amp;(T=o.util.deduplicate(T),w=T.slice(),T=n.range(T.length),p=p.map((function(t,e){var r=t;return t.t=[T],d&amp;&amp;(r.yStack=t.yStack),r})));var M=p.filter((function(t,e){return&quot;LinePlot&quot;===t.geometry||&quot;DotPlot&quot;===t.geometry})).length===p.length,A=null===h.needsEndSpacing?k||!M:h.needsEndSpacing,S=h.angularAxis.domain&amp;&amp;h.angularAxis.domain!=o.DATAEXTENT&amp;&amp;!k&amp;&amp;h.angularAxis.domain[0]&gt;=0?h.angularAxis.domain:n.extent(T),E=Math.abs(T[1]-T[0]);M&amp;&amp;!k&amp;&amp;(E=0);var C=S.slice();A&amp;&amp;k&amp;&amp;(C[1]+=E);var L=h.angularAxis.ticksCount||4;L&gt;8&amp;&amp;(L=L/(L/8)+L%8),h.angularAxis.ticksStep&amp;&amp;(L=(C[1]-C[0])/L);var I=h.angularAxis.ticksStep||(C[1]-C[0])/(L*(h.minorTicks+1));w&amp;&amp;(I=Math.max(Math.round(I),1)),C[2]||(C[2]=I);var P=n.range.apply(this,C);if(P=P.map((function(t,e){return parseFloat(t.toPrecision(12))})),s=n.scale.linear().domain(C.slice(0,2)).range(&quot;clockwise&quot;===h.direction?[0,360]:[360,0]),u.layout.angularAxis.domain=s.domain(),u.layout.angularAxis.endPadding=A?E:0,&quot;undefined&quot;==typeof(t=n.select(this).select(&quot;svg.chart-root&quot;))||t.empty()){var z=(new DOMParser).parseFromString(&quot;&lt;svg xmlns='http://www.w3.org/2000/svg' class='chart-root'&gt;' + '&lt;g class='outer-group'&gt;' + '&lt;g class='chart-group'&gt;' + '&lt;circle class='background-circle'&gt;&lt;/circle&gt;' + '&lt;g class='geometry-group'&gt;&lt;/g&gt;' + '&lt;g class='radial axis-group'&gt;' + '&lt;circle class='outside-circle'&gt;&lt;/circle&gt;' + '&lt;/g&gt;' + '&lt;g class='angular axis-group'&gt;&lt;/g&gt;' + '&lt;g class='guides-group'&gt;&lt;line&gt;&lt;/line&gt;&lt;circle r='0'&gt;&lt;/circle&gt;&lt;/g&gt;' + '&lt;/g&gt;' + '&lt;g class='legend-group'&gt;&lt;/g&gt;' + '&lt;g class='tooltips-group'&gt;&lt;/g&gt;' + '&lt;g class='title-group'&gt;&lt;text&gt;&lt;/text&gt;&lt;/g&gt;' + '&lt;/g&gt;' + '&lt;/svg&gt;&quot;,&quot;application/xml&quot;),O=this.appendChild(this.ownerDocument.importNode(z.documentElement,!0));t=n.select(O)}t.select(&quot;.guides-group&quot;).style({&quot;pointer-events&quot;:&quot;none&quot;}),t.select(&quot;.angular.axis-group&quot;).style({&quot;pointer-events&quot;:&quot;none&quot;}),t.select(&quot;.radial.axis-group&quot;).style({&quot;pointer-events&quot;:&quot;none&quot;});var D,R=t.select(&quot;.chart-group&quot;),F={fill:&quot;none&quot;,stroke:h.tickColor},B={&quot;font-size&quot;:h.font.size,&quot;font-family&quot;:h.font.family,fill:h.font.color,&quot;text-shadow&quot;:[&quot;-1px 0px&quot;,&quot;1px -1px&quot;,&quot;-1px 1px&quot;,&quot;1px 1px&quot;].map((function(t,e){return&quot; &quot;+t+&quot; 0 &quot;+h.font.outlineColor})).join(&quot;,&quot;)};if(h.showLegend){D=t.select(&quot;.legend-group&quot;).attr({transform:&quot;translate(&quot;+[x,h.margin.top]+&quot;)&quot;}).style({display:&quot;block&quot;});var N=p.map((function(t,e){var r=o.util.cloneJson(t);return r.symbol=&quot;DotPlot&quot;===t.geometry?t.dotType||&quot;circle&quot;:&quot;LinePlot&quot;!=t.geometry?&quot;square&quot;:&quot;line&quot;,r.visibleInLegend=&quot;undefined&quot;==typeof t.visibleInLegend||t.visibleInLegend,r.color=&quot;LinePlot&quot;===t.geometry?t.strokeColor:t.color,r}));o.Legend().config({data:p.map((function(t,e){return t.name||&quot;Element&quot;+e})),legendConfig:i({},o.Legend.defaultConfig().legendConfig,{container:D,elements:N,reverseOrder:h.legend.reverseOrder})})();var j=D.node().getBBox();x=Math.min(h.width-j.width-h.margin.left-h.margin.right,h.height-h.margin.top-h.margin.bottom)/2,x=Math.max(10,x),_=[h.margin.left+x,h.margin.top+x],r.range([0,x]),u.layout.radialAxis.domain=r.domain(),D.attr(&quot;transform&quot;,&quot;translate(&quot;+[_[0]+x,_[1]-x]+&quot;)&quot;)}else D=t.select(&quot;.legend-group&quot;).style({display:&quot;none&quot;});t.attr({width:h.width,height:h.height}).style({opacity:h.opacity}),R.attr(&quot;transform&quot;,&quot;translate(&quot;+_+&quot;)&quot;).style({cursor:&quot;crosshair&quot;});var U=[(h.width-(h.margin.left+h.margin.right+2*x+(j?j.width:0)))/2,(h.height-(h.margin.top+h.margin.bottom+2*x))/2];if(U[0]=Math.max(0,U[0]),U[1]=Math.max(0,U[1]),t.select(&quot;.outer-group&quot;).attr(&quot;transform&quot;,&quot;translate(&quot;+U+&quot;)&quot;),h.title&amp;&amp;h.title.text){var V=t.select(&quot;g.title-group text&quot;).style(B).text(h.title.text),q=V.node().getBBox();V.attr({x:_[0]-q.width/2,y:_[1]-x-20})}var H=t.select(&quot;.radial.axis-group&quot;);if(h.radialAxis.gridLinesVisible){var G=H.selectAll(&quot;circle.grid-circle&quot;).data(r.ticks(5));G.enter().append(&quot;circle&quot;).attr({class:&quot;grid-circle&quot;}).style(F),G.attr(&quot;r&quot;,r),G.exit().remove()}H.select(&quot;circle.outside-circle&quot;).attr({r:x}).style(F);var Y=t.select(&quot;circle.background-circle&quot;).attr({r:x}).style({fill:h.backgroundColor,stroke:h.stroke});function W(t,e){return s(t)%360+h.orientation}if(h.radialAxis.visible){var X=n.svg.axis().scale(r).ticks(5).tickSize(5);H.call(X).attr({transform:&quot;rotate(&quot;+h.radialAxis.orientation+&quot;)&quot;}),H.selectAll(&quot;.domain&quot;).style(F),H.selectAll(&quot;g&gt;text&quot;).text((function(t,e){return this.textContent+h.radialAxis.ticksSuffix})).style(B).style({&quot;text-anchor&quot;:&quot;start&quot;}).attr({x:0,y:0,dx:0,dy:0,transform:function(t,e){return&quot;horizontal&quot;===h.radialAxis.tickOrientation?&quot;rotate(&quot;+-h.radialAxis.orientation+&quot;) translate(&quot;+[0,B[&quot;font-size&quot;]]+&quot;)&quot;:&quot;translate(&quot;+[0,B[&quot;font-size&quot;]]+&quot;)&quot;}}),H.selectAll(&quot;g&gt;line&quot;).style({stroke:&quot;black&quot;})}var Z=t.select(&quot;.angular.axis-group&quot;).selectAll(&quot;g.angular-tick&quot;).data(P),J=Z.enter().append(&quot;g&quot;).classed(&quot;angular-tick&quot;,!0);Z.attr({transform:function(t,e){return&quot;rotate(&quot;+W(t)+&quot;)&quot;}}).style({display:h.angularAxis.visible?&quot;block&quot;:&quot;none&quot;}),Z.exit().remove(),J.append(&quot;line&quot;).classed(&quot;grid-line&quot;,!0).classed(&quot;major&quot;,(function(t,e){return e%(h.minorTicks+1)==0})).classed(&quot;minor&quot;,(function(t,e){return!(e%(h.minorTicks+1)==0)})).style(F),J.selectAll(&quot;.minor&quot;).style({stroke:h.minorTickColor}),Z.select(&quot;line.grid-line&quot;).attr({x1:h.tickLength?x-h.tickLength:0,x2:x}).style({display:h.angularAxis.gridLinesVisible?&quot;block&quot;:&quot;none&quot;}),J.append(&quot;text&quot;).classed(&quot;axis-text&quot;,!0).style(B);var K=Z.select(&quot;text.axis-text&quot;).attr({x:x+h.labelOffset,dy:a+&quot;em&quot;,transform:function(t,e){var r=W(t),n=x+h.labelOffset,i=h.angularAxis.tickOrientation;return&quot;horizontal&quot;==i?&quot;rotate(&quot;+-r+&quot; &quot;+n+&quot; 0)&quot;:&quot;radial&quot;==i?r&lt;270&amp;&amp;r&gt;90?&quot;rotate(180 &quot;+n+&quot; 0)&quot;:null:&quot;rotate(&quot;+(r&lt;=180&amp;&amp;r&gt;0?-90:90)+&quot; &quot;+n+&quot; 0)&quot;}}).style({&quot;text-anchor&quot;:&quot;middle&quot;,display:h.angularAxis.labelsVisible?&quot;block&quot;:&quot;none&quot;}).text((function(t,e){return e%(h.minorTicks+1)!=0?&quot;&quot;:w?w[t]+h.angularAxis.ticksSuffix:t+h.angularAxis.ticksSuffix})).style(B);h.angularAxis.rewriteTicks&amp;&amp;K.text((function(t,e){return e%(h.minorTicks+1)!=0?&quot;&quot;:h.angularAxis.rewriteTicks(this.textContent,e)}));var Q=n.max(R.selectAll(&quot;.angular-tick text&quot;)[0].map((function(t,e){return t.getCTM().e+t.getBBox().width})));D.attr({transform:&quot;translate(&quot;+[x+Q,h.margin.top]+&quot;)&quot;});var $=t.select(&quot;g.geometry-group&quot;).selectAll(&quot;g&quot;).size()&gt;0,tt=t.select(&quot;g.geometry-group&quot;).selectAll(&quot;g.geometry&quot;).data(p);if(tt.enter().append(&quot;g&quot;).attr({class:function(t,e){return&quot;geometry geometry&quot;+e}}),tt.exit().remove(),p[0]||$){var et=[];p.forEach((function(t,e){var n={};n.radialScale=r,n.angularScale=s,n.container=tt.filter((function(t,r){return r==e})),n.geometry=t.geometry,n.orientation=h.orientation,n.direction=h.direction,n.index=e,et.push({data:t,geometryConfig:n})}));var rt=n.nest().key((function(t,e){return&quot;undefined&quot;!=typeof t.data.groupId||&quot;unstacked&quot;})).entries(et),nt=[];rt.forEach((function(t,e){&quot;unstacked&quot;===t.key?nt=nt.concat(t.values.map((function(t,e){return[t]}))):nt.push(t.values)})),nt.forEach((function(t,e){var r;r=Array.isArray(t)?t[0].geometryConfig.geometry:t.geometryConfig.geometry;var n=t.map((function(t,e){return i(o[r].defaultConfig(),t)}));o[r]().config(n)()}))}var it,at,ot=t.select(&quot;.guides-group&quot;),st=t.select(&quot;.tooltips-group&quot;),lt=o.tooltipPanel().config({container:st,fontSize:8})(),ct=o.tooltipPanel().config({container:st,fontSize:8})(),ut=o.tooltipPanel().config({container:st,hasTick:!0})();if(!k){var ft=ot.select(&quot;line&quot;).attr({x1:0,y1:0,y2:0}).style({stroke:&quot;grey&quot;,&quot;pointer-events&quot;:&quot;none&quot;});R.on(&quot;mousemove.angular-guide&quot;,(function(t,e){var r=o.util.getMousePos(Y).angle;ft.attr({x2:-x,transform:&quot;rotate(&quot;+r+&quot;)&quot;}).style({opacity:.5});var n=(r+180+360-h.orientation)%360;it=s.invert(n);var i=o.util.convertToCartesian(x+12,r+180);lt.text(o.util.round(it)).move([i[0]+_[0],i[1]+_[1]])})).on(&quot;mouseout.angular-guide&quot;,(function(t,e){ot.select(&quot;line&quot;).style({opacity:0})}))}var ht=ot.select(&quot;circle&quot;).style({stroke:&quot;grey&quot;,fill:&quot;none&quot;});R.on(&quot;mousemove.radial-guide&quot;,(function(t,e){var n=o.util.getMousePos(Y).radius;ht.attr({r:n}).style({opacity:.5}),at=r.invert(o.util.getMousePos(Y).radius);var i=o.util.convertToCartesian(n,h.radialAxis.orientation);ct.text(o.util.round(at)).move([i[0]+_[0],i[1]+_[1]])})).on(&quot;mouseout.radial-guide&quot;,(function(t,e){ht.style({opacity:0}),ut.hide(),lt.hide(),ct.hide()})),t.selectAll(&quot;.geometry-group .mark&quot;).on(&quot;mouseover.tooltip&quot;,(function(e,r){var i=n.select(this),a=this.style.fill,s=&quot;black&quot;,l=this.style.opacity||1;if(i.attr({&quot;data-opacity&quot;:l}),a&amp;&amp;&quot;none&quot;!==a){i.attr({&quot;data-fill&quot;:a}),s=n.hsl(a).darker().toString(),i.style({fill:s,opacity:1});var c={t:o.util.round(e[0]),r:o.util.round(e[1])};k&amp;&amp;(c.t=w[e[0]]);var u=&quot;t: &quot;+c.t+&quot;, r: &quot;+c.r,f=this.getBoundingClientRect(),h=t.node().getBoundingClientRect(),p=[f.left+f.width/2-U[0]-h.left,f.top+f.height/2-U[1]-h.top];ut.config({color:s}).text(u),ut.move(p)}else a=this.style.stroke||&quot;black&quot;,i.attr({&quot;data-stroke&quot;:a}),s=n.hsl(a).darker().toString(),i.style({stroke:s,opacity:1})})).on(&quot;mousemove.tooltip&quot;,(function(t,e){if(0!=n.event.which)return!1;n.select(this).attr(&quot;data-fill&quot;)&amp;&amp;ut.show()})).on(&quot;mouseout.tooltip&quot;,(function(t,e){ut.hide();var r=n.select(this),i=r.attr(&quot;data-fill&quot;);i?r.style({fill:i,opacity:r.attr(&quot;data-opacity&quot;)}):r.style({stroke:r.attr(&quot;data-stroke&quot;),opacity:r.attr(&quot;data-opacity&quot;)})}))}))}(c),this},h.config=function(t){if(!arguments.length)return l;var e=o.util.cloneJson(t);return e.data.forEach((function(t,e){l.data[e]||(l.data[e]={}),i(l.data[e],o.Axis.defaultConfig().data[0]),i(l.data[e],t)})),i(l.layout,o.Axis.defaultConfig().layout),i(l.layout,e.layout),this},h.getLiveConfig=function(){return u},h.getinputConfig=function(){return c},h.radialScale=function(t){return r},h.angularScale=function(t){return s},h.svg=function(){return t},n.rebind(h,f,&quot;on&quot;),h},o.Axis.defaultConfig=function(t,e){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:&quot;Line1&quot;,geometry:&quot;LinePlot&quot;,color:null,strokeDash:&quot;solid&quot;,strokeColor:null,strokeSize:&quot;1&quot;,visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:n.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:&quot;gray&quot;,outlineColor:&quot;white&quot;,family:&quot;Tahoma, sans-serif&quot;},direction:&quot;clockwise&quot;,orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:&quot;&quot;,visible:!0,gridLinesVisible:!0,tickOrientation:&quot;horizontal&quot;,rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:&quot;&quot;,visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:&quot;horizontal&quot;,rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:&quot;silver&quot;,minorTickColor:&quot;#eee&quot;,backgroundColor:&quot;none&quot;,needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},o.util={},o.DATAEXTENT=&quot;dataExtent&quot;,o.AREA=&quot;AreaChart&quot;,o.LINE=&quot;LinePlot&quot;,o.DOT=&quot;DotPlot&quot;,o.BAR=&quot;BarChart&quot;,o.util._override=function(t,e){for(var r in t)r in e&amp;&amp;(e[r]=t[r])},o.util._extend=function(t,e){for(var r in t)e[r]=t[r]},o.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},o.util.dataFromEquation2=function(t,e){var r=e||6;return n.range(0,360+r,r).map((function(e,r){var n=e*Math.PI/180;return[e,t(n)]}))},o.util.dataFromEquation=function(t,e,r){var i=e||6,a=[],o=[];n.range(0,360+i,i).forEach((function(e,r){var n=e*Math.PI/180,i=t(n);a.push(e),o.push(i)}));var s={t:a,r:o};return r&amp;&amp;(s.name=r),s},o.util.ensureArray=function(t,e){if(&quot;undefined&quot;==typeof t)return null;var r=[].concat(t);return n.range(e).map((function(t,e){return r[e]||r[0]}))},o.util.fillArrays=function(t,e,r){return e.forEach((function(e,n){t[e]=o.util.ensureArray(t[e],r)})),t},o.util.cloneJson=function(t){return JSON.parse(JSON.stringify(t))},o.util.validateKeys=function(t,e){&quot;string&quot;==typeof e&amp;&amp;(e=e.split(&quot;.&quot;));var r=e.shift();return t[r]&amp;&amp;(!e.length||objHasKeys(t[r],e))},o.util.sumArrays=function(t,e){return n.zip(t,e).map((function(t,e){return n.sum(t)}))},o.util.arrayLast=function(t){return t[t.length-1]},o.util.arrayEqual=function(t,e){for(var r=Math.max(t.length,e.length,1);r-- &gt;=0&amp;&amp;t[r]===e[r];);return-2===r},o.util.flattenArray=function(t){for(var e=[];!o.util.arrayEqual(e,t);)e=t,t=[].concat.apply([],t);return t},o.util.deduplicate=function(t){return t.filter((function(t,e,r){return r.indexOf(t)==e}))},o.util.convertToCartesian=function(t,e){var r=e*Math.PI/180;return[t*Math.cos(r),t*Math.sin(r)]},o.util.round=function(t,e){var r=e||2,n=Math.pow(10,r);return Math.round(t*n)/n},o.util.getMousePos=function(t){var e=n.mouse(t.node()),r=e[0],i=e[1],a={};return a.x=r,a.y=i,a.pos=e,a.angle=180*(Math.atan2(i,r)+Math.PI)/Math.PI,a.radius=Math.sqrt(r*r+i*i),a},o.util.duplicatesCount=function(t){for(var e,r={},n={},i=0,a=t.length;i&lt;a;i++)(e=t[i])in r?(r[e]++,n[e]=r[e]):r[e]=1;return n},o.util.duplicates=function(t){return Object.keys(o.util.duplicatesCount(t))},o.util.translator=function(t,e,r,n){if(n){var i=r.slice();r=e,e=i}var a=e.reduce((function(t,e){if(&quot;undefined&quot;!=typeof t)return t[e]}),t);&quot;undefined&quot;!=typeof a&amp;&amp;(e.reduce((function(t,r,n){if(&quot;undefined&quot;!=typeof t)return n===e.length-1&amp;&amp;delete t[r],t[r]}),t),r.reduce((function(t,e,n){return&quot;undefined&quot;==typeof t[e]&amp;&amp;(t[e]={}),n===r.length-1&amp;&amp;(t[e]=a),t[e]}),t))},o.PolyChart=function(){var t=[o.PolyChart.defaultConfig()],e=n.dispatch(&quot;hover&quot;),r={solid:&quot;none&quot;,dash:[5,2],dot:[2,5]};function a(){var e=t[0].geometryConfig,i=e.container;&quot;string&quot;==typeof i&amp;&amp;(i=n.select(i)),i.datum(t).each((function(t,i){var a=!!t[0].data.yStack,o=t.map((function(t,e){return a?n.zip(t.data.t[0],t.data.r[0],t.data.yStack[0]):n.zip(t.data.t[0],t.data.r[0])})),s=e.angularScale,l=e.radialScale.domain()[0],c={bar:function(r,i,a){var o=t[a].data,l=e.radialScale(r[1])-e.radialScale(0),c=e.radialScale(r[2]||0),u=o.barWidth;n.select(this).attr({class:&quot;mark bar&quot;,d:&quot;M&quot;+[[l+c,-u/2],[l+c,u/2],[c,u/2],[c,-u/2]].join(&quot;L&quot;)+&quot;Z&quot;,transform:function(t,r){return&quot;rotate(&quot;+(e.orientation+s(t[0]))+&quot;)&quot;}})}};c.dot=function(r,i,a){var o=r[2]?[r[0],r[1]+r[2]]:r,s=n.svg.symbol().size(t[a].data.dotSize).type(t[a].data.dotType)(r,i);n.select(this).attr({class:&quot;mark dot&quot;,d:s,transform:function(t,r){var n,i,a,s=(n=function(t,r){var n=e.radialScale(t[1]),i=(e.angularScale(t[0])+e.orientation)*Math.PI/180;return{r:n,t:i}}(o),i=n.r*Math.cos(n.t),a=n.r*Math.sin(n.t),{x:i,y:a});return&quot;translate(&quot;+[s.x,s.y]+&quot;)&quot;}})};var u=n.svg.line.radial().interpolate(t[0].data.lineInterpolation).radius((function(t){return e.radialScale(t[1])})).angle((function(t){return e.angularScale(t[0])*Math.PI/180}));c.line=function(r,i,a){var s=r[2]?o[a].map((function(t,e){return[t[0],t[1]+t[2]]})):o[a];if(n.select(this).each(c.dot).style({opacity:function(e,r){return+t[a].data.dotVisible},fill:d.stroke(r,i,a)}).attr({class:&quot;mark dot&quot;}),!(i&gt;0)){var l=n.select(this.parentNode).selectAll(&quot;path.line&quot;).data([0]);l.enter().insert(&quot;path&quot;),l.attr({class:&quot;line&quot;,d:u(s),transform:function(t,r){return&quot;rotate(&quot;+(e.orientation+90)+&quot;)&quot;},&quot;pointer-events&quot;:&quot;none&quot;}).style({fill:function(t,e){return d.fill(r,i,a)},&quot;fill-opacity&quot;:0,stroke:function(t,e){return d.stroke(r,i,a)},&quot;stroke-width&quot;:function(t,e){return d[&quot;stroke-width&quot;](r,i,a)},&quot;stroke-dasharray&quot;:function(t,e){return d[&quot;stroke-dasharray&quot;](r,i,a)},opacity:function(t,e){return d.opacity(r,i,a)},display:function(t,e){return d.display(r,i,a)}})}};var f=e.angularScale.range(),h=Math.abs(f[1]-f[0])/o[0].length*Math.PI/180,p=n.svg.arc().startAngle((function(t){return-h/2})).endAngle((function(t){return h/2})).innerRadius((function(t){return e.radialScale(l+(t[2]||0))})).outerRadius((function(t){return e.radialScale(l+(t[2]||0))+e.radialScale(t[1])}));c.arc=function(t,r,i){n.select(this).attr({class:&quot;mark arc&quot;,d:p,transform:function(t,r){return&quot;rotate(&quot;+(e.orientation+s(t[0])+90)+&quot;)&quot;}})};var d={fill:function(e,r,n){return t[n].data.color},stroke:function(e,r,n){return t[n].data.strokeColor},&quot;stroke-width&quot;:function(e,r,n){return t[n].data.strokeSize+&quot;px&quot;},&quot;stroke-dasharray&quot;:function(e,n,i){return r[t[i].data.strokeDash]},opacity:function(e,r,n){return t[n].data.opacity},display:function(e,r,n){return&quot;undefined&quot;==typeof t[n].data.visible||t[n].data.visible?&quot;block&quot;:&quot;none&quot;}},g=n.select(this).selectAll(&quot;g.layer&quot;).data(o);g.enter().append(&quot;g&quot;).attr({class:&quot;layer&quot;});var m=g.selectAll(&quot;path.mark&quot;).data((function(t,e){return t}));m.enter().append(&quot;path&quot;).attr({class:&quot;mark&quot;}),m.style(d).each(c[e.geometryType]),m.exit().remove(),g.exit().remove()}))}return a.config=function(e){return arguments.length?(e.forEach((function(e,r){t[r]||(t[r]={}),i(t[r],o.PolyChart.defaultConfig()),i(t[r],e)})),this):t},a.getColorScale=function(){},n.rebind(a,e,&quot;on&quot;),a},o.PolyChart.defaultConfig=function(){return{data:{name:&quot;geom1&quot;,t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:&quot;circle&quot;,dotSize:64,dotVisible:!1,barWidth:20,color:&quot;#ffa500&quot;,strokeSize:1,strokeColor:&quot;silver&quot;,strokeDash:&quot;solid&quot;,opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:&quot;LinePlot&quot;,geometryType:&quot;arc&quot;,direction:&quot;clockwise&quot;,orientation:0,container:&quot;body&quot;,radialScale:null,angularScale:null,colorScale:n.scale.category20()}}},o.BarChart=function(){return o.PolyChart()},o.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;bar&quot;}}},o.AreaChart=function(){return o.PolyChart()},o.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;arc&quot;}}},o.DotPlot=function(){return o.PolyChart()},o.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;dot&quot;,dotType:&quot;circle&quot;}}},o.LinePlot=function(){return o.PolyChart()},o.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;line&quot;}}},o.Legend=function(){var t=o.Legend.defaultConfig(),e=n.dispatch(&quot;hover&quot;);function r(){var e=t.legendConfig,a=t.data.map((function(t,r){return[].concat(t).map((function(t,n){var a=i({},e.elements[r]);return a.name=t,a.color=[].concat(e.elements[r].color)[n],a}))})),o=n.merge(a);o=o.filter((function(t,r){return e.elements[r]&amp;&amp;(e.elements[r].visibleInLegend||&quot;undefined&quot;==typeof e.elements[r].visibleInLegend)})),e.reverseOrder&amp;&amp;(o=o.reverse());var s=e.container;(&quot;string&quot;==typeof s||s.nodeName)&amp;&amp;(s=n.select(s));var l=o.map((function(t,e){return t.color})),c=e.fontSize,u=null==e.isContinuous?&quot;number&quot;==typeof o[0]:e.isContinuous,f=u?e.height:c*o.length,h=s.classed(&quot;legend-group&quot;,!0).selectAll(&quot;svg&quot;).data([0]),p=h.enter().append(&quot;svg&quot;).attr({width:300,height:f+c,xmlns:&quot;http://www.w3.org/2000/svg&quot;,&quot;xmlns:xlink&quot;:&quot;http://www.w3.org/1999/xlink&quot;,version:&quot;1.1&quot;});p.append(&quot;g&quot;).classed(&quot;legend-axis&quot;,!0),p.append(&quot;g&quot;).classed(&quot;legend-marks&quot;,!0);var d=n.range(o.length),g=n.scale[u?&quot;linear&quot;:&quot;ordinal&quot;]().domain(d).range(l),m=n.scale[u?&quot;linear&quot;:&quot;ordinal&quot;]().domain(d)[u?&quot;range&quot;:&quot;rangePoints&quot;]([0,f]);if(u){var v=h.select(&quot;.legend-marks&quot;).append(&quot;defs&quot;).append(&quot;linearGradient&quot;).attr({id:&quot;grad1&quot;,x1:&quot;0%&quot;,y1:&quot;0%&quot;,x2:&quot;0%&quot;,y2:&quot;100%&quot;}).selectAll(&quot;stop&quot;).data(l);v.enter().append(&quot;stop&quot;),v.attr({offset:function(t,e){return e/(l.length-1)*100+&quot;%&quot;}}).style({&quot;stop-color&quot;:function(t,e){return t}}),h.append(&quot;rect&quot;).classed(&quot;legend-mark&quot;,!0).attr({height:e.height,width:e.colorBandWidth,fill:&quot;url(#grad1)&quot;})}else{var y=h.select(&quot;.legend-marks&quot;).selectAll(&quot;path.legend-mark&quot;).data(o);y.enter().append(&quot;path&quot;).classed(&quot;legend-mark&quot;,!0),y.attr({transform:function(t,e){return&quot;translate(&quot;+[c/2,m(e)+c/2]+&quot;)&quot;},d:function(t,e){var r,i,a,o=t.symbol;return a=3*(i=c),&quot;line&quot;===(r=o)?&quot;M&quot;+[[-i/2,-i/12],[i/2,-i/12],[i/2,i/12],[-i/2,i/12]]+&quot;Z&quot;:-1!=n.svg.symbolTypes.indexOf(r)?n.svg.symbol().type(r).size(a)():n.svg.symbol().type(&quot;square&quot;).size(a)()},fill:function(t,e){return g(e)}}),y.exit().remove()}var x=n.svg.axis().scale(m).orient(&quot;right&quot;),b=h.select(&quot;g.legend-axis&quot;).attr({transform:&quot;translate(&quot;+[u?e.colorBandWidth:c,c/2]+&quot;)&quot;}).call(x);return b.selectAll(&quot;.domain&quot;).style({fill:&quot;none&quot;,stroke:&quot;none&quot;}),b.selectAll(&quot;line&quot;).style({fill:&quot;none&quot;,stroke:u?e.textColor:&quot;none&quot;}),b.selectAll(&quot;text&quot;).style({fill:e.textColor,&quot;font-size&quot;:e.fontSize}).text((function(t,e){return o[e].name})),r}return r.config=function(e){return arguments.length?(i(t,e),this):t},n.rebind(r,e,&quot;on&quot;),r},o.Legend.defaultConfig=function(t,e){return{data:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],legendConfig:{elements:[{symbol:&quot;line&quot;,color:&quot;red&quot;},{symbol:&quot;square&quot;,color:&quot;yellow&quot;},{symbol:&quot;diamond&quot;,color:&quot;limegreen&quot;}],height:150,colorBandWidth:30,fontSize:12,container:&quot;body&quot;,isContinuous:null,textColor:&quot;grey&quot;,reverseOrder:!1}}},o.tooltipPanel=function(){var t,e,r,a={container:null,hasTick:!1,fontSize:12,color:&quot;white&quot;,padding:5},s=&quot;tooltip-&quot;+o.tooltipPanel.uid++,l=10,c=function(){var n=(t=a.container.selectAll(&quot;g.&quot;+s).data([0])).enter().append(&quot;g&quot;).classed(s,!0).style({&quot;pointer-events&quot;:&quot;none&quot;,display:&quot;none&quot;});return r=n.append(&quot;path&quot;).style({fill:&quot;white&quot;,&quot;fill-opacity&quot;:.9}).attr({d:&quot;M0 0&quot;}),e=n.append(&quot;text&quot;).attr({dx:a.padding+l,dy:.3*+a.fontSize}),c};return c.text=function(i){var o=n.hsl(a.color).l,s=o&gt;=.5?&quot;#aaa&quot;:&quot;white&quot;,u=o&gt;=.5?&quot;black&quot;:&quot;white&quot;,f=i||&quot;&quot;;e.style({fill:u,&quot;font-size&quot;:a.fontSize+&quot;px&quot;}).text(f);var h=a.padding,p=e.node().getBBox(),d={fill:a.color,stroke:s,&quot;stroke-width&quot;:&quot;2px&quot;},g=p.width+2*h+l,m=p.height+2*h;return r.attr({d:&quot;M&quot;+[[l,-m/2],[l,-m/4],[a.hasTick?0:l,0],[l,m/4],[l,m/2],[g,m/2],[g,-m/2]].join(&quot;L&quot;)+&quot;Z&quot;}).style(d),t.attr({transform:&quot;translate(&quot;+[l,-m/2+2*h]+&quot;)&quot;}),t.style({display:&quot;block&quot;}),c},c.move=function(e){if(t)return t.attr({transform:&quot;translate(&quot;+[e[0],e[1]]+&quot;)&quot;}).style({display:&quot;block&quot;}),c},c.hide=function(){if(t)return t.style({display:&quot;none&quot;}),c},c.show=function(){if(t)return t.style({display:&quot;block&quot;}),c},c.config=function(t){return i(a,t),c},c},o.tooltipPanel.uid=1,o.adapter={},o.adapter.plotly=function(){var t={convert:function(t,e){var r={};if(t.data&amp;&amp;(r.data=t.data.map((function(t,r){var n=i({},t);return[[n,[&quot;marker&quot;,&quot;color&quot;],[&quot;color&quot;]],[n,[&quot;marker&quot;,&quot;opacity&quot;],[&quot;opacity&quot;]],[n,[&quot;marker&quot;,&quot;line&quot;,&quot;color&quot;],[&quot;strokeColor&quot;]],[n,[&quot;marker&quot;,&quot;line&quot;,&quot;dash&quot;],[&quot;strokeDash&quot;]],[n,[&quot;marker&quot;,&quot;line&quot;,&quot;width&quot;],[&quot;strokeSize&quot;]],[n,[&quot;marker&quot;,&quot;symbol&quot;],[&quot;dotType&quot;]],[n,[&quot;marker&quot;,&quot;size&quot;],[&quot;dotSize&quot;]],[n,[&quot;marker&quot;,&quot;barWidth&quot;],[&quot;barWidth&quot;]],[n,[&quot;line&quot;,&quot;interpolation&quot;],[&quot;lineInterpolation&quot;]],[n,[&quot;showlegend&quot;],[&quot;visibleInLegend&quot;]]].forEach((function(t,r){o.util.translator.apply(null,t.concat(e))})),e||delete n.marker,e&amp;&amp;delete n.groupId,e?(&quot;LinePlot&quot;===n.geometry?(n.type=&quot;scatter&quot;,!0===n.dotVisible?(delete n.dotVisible,n.mode=&quot;lines+markers&quot;):n.mode=&quot;lines&quot;):&quot;DotPlot&quot;===n.geometry?(n.type=&quot;scatter&quot;,n.mode=&quot;markers&quot;):&quot;AreaChart&quot;===n.geometry?n.type=&quot;area&quot;:&quot;BarChart&quot;===n.geometry&amp;&amp;(n.type=&quot;bar&quot;),delete n.geometry):(&quot;scatter&quot;===n.type?&quot;lines&quot;===n.mode?n.geometry=&quot;LinePlot&quot;:&quot;markers&quot;===n.mode?n.geometry=&quot;DotPlot&quot;:&quot;lines+markers&quot;===n.mode&amp;&amp;(n.geometry=&quot;LinePlot&quot;,n.dotVisible=!0):&quot;area&quot;===n.type?n.geometry=&quot;AreaChart&quot;:&quot;bar&quot;===n.type&amp;&amp;(n.geometry=&quot;BarChart&quot;),delete n.mode,delete n.type),n})),!e&amp;&amp;t.layout&amp;&amp;&quot;stack&quot;===t.layout.barmode)){var a=o.util.duplicates(r.data.map((function(t,e){return t.geometry})));r.data.forEach((function(t,e){var n=a.indexOf(t.geometry);-1!=n&amp;&amp;(r.data[e].groupId=n)}))}if(t.layout){var s=i({},t.layout);if([[s,[&quot;plot_bgcolor&quot;],[&quot;backgroundColor&quot;]],[s,[&quot;showlegend&quot;],[&quot;showLegend&quot;]],[s,[&quot;radialaxis&quot;],[&quot;radialAxis&quot;]],[s,[&quot;angularaxis&quot;],[&quot;angularAxis&quot;]],[s.angularaxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.angularaxis,[&quot;showticklabels&quot;],[&quot;labelsVisible&quot;]],[s.angularaxis,[&quot;nticks&quot;],[&quot;ticksCount&quot;]],[s.angularaxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.angularaxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.angularaxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.angularaxis,[&quot;endpadding&quot;],[&quot;endPadding&quot;]],[s.radialaxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.radialaxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.radialaxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.radialaxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.angularAxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.angularAxis,[&quot;showticklabels&quot;],[&quot;labelsVisible&quot;]],[s.angularAxis,[&quot;nticks&quot;],[&quot;ticksCount&quot;]],[s.angularAxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.angularAxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.angularAxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.angularAxis,[&quot;endpadding&quot;],[&quot;endPadding&quot;]],[s.radialAxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.radialAxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.radialAxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.radialAxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.font,[&quot;outlinecolor&quot;],[&quot;outlineColor&quot;]],[s.legend,[&quot;traceorder&quot;],[&quot;reverseOrder&quot;]],[s,[&quot;labeloffset&quot;],[&quot;labelOffset&quot;]],[s,[&quot;defaultcolorrange&quot;],[&quot;defaultColorRange&quot;]]].forEach((function(t,r){o.util.translator.apply(null,t.concat(e))})),e?(&quot;undefined&quot;!=typeof s.tickLength&amp;&amp;(s.angularaxis.ticklen=s.tickLength,delete s.tickLength),s.tickColor&amp;&amp;(s.angularaxis.tickcolor=s.tickColor,delete s.tickColor)):(s.angularAxis&amp;&amp;&quot;undefined&quot;!=typeof s.angularAxis.ticklen&amp;&amp;(s.tickLength=s.angularAxis.ticklen),s.angularAxis&amp;&amp;&quot;undefined&quot;!=typeof s.angularAxis.tickcolor&amp;&amp;(s.tickColor=s.angularAxis.tickcolor)),s.legend&amp;&amp;&quot;boolean&quot;!=typeof s.legend.reverseOrder&amp;&amp;(s.legend.reverseOrder=&quot;normal&quot;!=s.legend.reverseOrder),s.legend&amp;&amp;&quot;boolean&quot;==typeof s.legend.traceorder&amp;&amp;(s.legend.traceorder=s.legend.traceorder?&quot;reversed&quot;:&quot;normal&quot;,delete s.legend.reverseOrder),s.margin&amp;&amp;&quot;undefined&quot;!=typeof s.margin.t){var l=[&quot;t&quot;,&quot;r&quot;,&quot;b&quot;,&quot;l&quot;,&quot;pad&quot;],c=[&quot;top&quot;,&quot;right&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;pad&quot;],u={};n.entries(s.margin).forEach((function(t,e){u[c[l.indexOf(t.key)]]=t.value})),s.margin=u}e&amp;&amp;(delete s.needsEndSpacing,delete s.minorTickColor,delete s.minorTicks,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksStep,delete s.angularaxis.rewriteTicks,delete s.angularaxis.nticks,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksStep,delete s.radialaxis.rewriteTicks,delete s.radialaxis.nticks),r.layout=s}return r}};return t}},{&quot;../../../constants/alignment&quot;:745,&quot;../../../lib&quot;:778,d3:169}],901:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../../lib&quot;),a=t(&quot;../../../components/color&quot;),o=t(&quot;./micropolar&quot;),s=t(&quot;./undo_manager&quot;),l=i.extendDeepAll,c=e.exports={};c.framework=function(t){var e,r,i,a,u,f=new s;function h(r,s){return s&amp;&amp;(u=s),n.select(n.select(u).node().parentNode).selectAll(&quot;.svg-container&gt;*:not(.chart-root)&quot;).remove(),e=e?l(e,r):r,i||(i=o.Axis()),a=o.adapter.plotly().convert(e),i.config(a).render(u),t.data=e.data,t.layout=e.layout,c.fillLayout(t),e}return h.isPolar=!0,h.svg=function(){return i.svg()},h.getConfig=function(){return e},h.getLiveConfig=function(){return o.adapter.plotly().convert(i.getLiveConfig(),!0)},h.getLiveScales=function(){return{t:i.angularScale(),r:i.radialScale()}},h.setUndoPoint=function(){var t,n,i=this,a=o.util.cloneJson(e);t=a,n=r,f.add({undo:function(){n&amp;&amp;i(n)},redo:function(){i(t)}}),r=o.util.cloneJson(a)},h.undo=function(){f.undo()},h.redo=function(){f.redo()},h},c.fillLayout=function(t){var e=n.select(t).selectAll(&quot;.plot-container&quot;),r=e.selectAll(&quot;.svg-container&quot;),i=t.framework&amp;&amp;t.framework.svg&amp;&amp;t.framework.svg(),o={width:800,height:600,paper_bgcolor:a.background,_container:e,_paperdiv:r,_paper:i};t._fullLayout=l(o,t.layout)}},{&quot;../../../components/color&quot;:643,&quot;../../../lib&quot;:778,&quot;./micropolar&quot;:900,&quot;./undo_manager&quot;:902,d3:169}],902:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e=[],r=-1,n=!1;function i(t,e){return t?(n=!0,t[e](),n=!1,this):this}return{add:function(t){return n||(e.splice(r+1,e.length-r),e.push(t),r=e.length-1),this},setCallback:function(e){t=e},undo:function(){var n=e[r];return n?(i(n,&quot;undo&quot;),r-=1,t&amp;&amp;t(n.undo),this):this},redo:function(){var n=e[r+1];return n?(i(n,&quot;redo&quot;),r+=1,t&amp;&amp;t(n.redo),this):this},clear:function(){e=[],r=-1},hasUndo:function(){return-1!==r},hasRedo:function(){return r&lt;e.length-1},getCommands:function(){return e},getPreviousCommand:function(){return e[r-1]},getIndex:function(){return r}}}},{}],903:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=o.strRotate,l=o.strTranslate,c=t(&quot;../../components/color&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../plots&quot;),h=t(&quot;../../plots/cartesian/axes&quot;),p=t(&quot;../cartesian/set_convert&quot;),d=t(&quot;./set_convert&quot;),g=t(&quot;../cartesian/autorange&quot;).doAutoRange,m=t(&quot;../cartesian/dragbox&quot;),v=t(&quot;../../components/dragelement&quot;),y=t(&quot;../../components/fx&quot;),x=t(&quot;../../components/titles&quot;),b=t(&quot;../cartesian/select&quot;).prepSelect,_=t(&quot;../cartesian/select&quot;).selectOnClick,w=t(&quot;../cartesian/select&quot;).clearSelect,T=t(&quot;../../lib/setcursor&quot;),k=t(&quot;../../lib/clear_gl_canvases&quot;),M=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,A=t(&quot;../../constants/alignment&quot;).MID_SHIFT,S=t(&quot;./constants&quot;),E=t(&quot;./helpers&quot;),C=o._,L=o.mod,I=o.deg2rad,P=o.rad2deg;function z(t,e){this.id=e,this.gd=t,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var r=t._fullLayout,n=&quot;clip&quot;+r._uid+e;this.clipIds.forTraces=n+&quot;-for-traces&quot;,this.clipPaths.forTraces=r._clips.append(&quot;clipPath&quot;).attr(&quot;id&quot;,this.clipIds.forTraces),this.clipPaths.forTraces.append(&quot;path&quot;),this.framework=r._polarlayer.append(&quot;g&quot;).attr(&quot;class&quot;,e),this.radialTickLayout=null,this.angularTickLayout=null}var O=z.prototype;function D(t){var e=t.ticks+String(t.ticklen)+String(t.showticklabels);return&quot;side&quot;in t&amp;&amp;(e+=t.side),e}function R(t,e){return e[o.findIndexOfMin(e,(function(e){return o.angleDist(t,e)}))]}function F(t,e,r){return e?(t.attr(&quot;display&quot;,null),t.attr(r)):t&amp;&amp;t.attr(&quot;display&quot;,&quot;none&quot;),t}e.exports=function(t,e){return new z(t,e)},O.plot=function(t,e){var r=e[this.id];this._hasClipOnAxisFalse=!1;for(var n=0;n&lt;t.length;n++){if(!1===t[n][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(e,r),this.updateLayout(e,r),f.generalUpdatePerTraceModule(this.gd,this,t,r),this.updateFx(e,r)},O.updateLayers=function(t,e){var r=this.layers,i=e.radialaxis,a=e.angularaxis,o=S.layerNames,s=o.indexOf(&quot;frontplot&quot;),l=o.slice(0,s),c=&quot;below traces&quot;===a.layer,u=&quot;below traces&quot;===i.layer;c&amp;&amp;l.push(&quot;angular-line&quot;),u&amp;&amp;l.push(&quot;radial-line&quot;),c&amp;&amp;l.push(&quot;angular-axis&quot;),u&amp;&amp;l.push(&quot;radial-axis&quot;),l.push(&quot;frontplot&quot;),c||l.push(&quot;angular-line&quot;),u||l.push(&quot;radial-line&quot;),c||l.push(&quot;angular-axis&quot;),u||l.push(&quot;radial-axis&quot;);var f=this.framework.selectAll(&quot;.polarsublayer&quot;).data(l,String);f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;polarsublayer &quot;+t})).each((function(t){var e=r[t]=n.select(this);switch(t){case&quot;frontplot&quot;:e.append(&quot;g&quot;).classed(&quot;barlayer&quot;,!0),e.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0);break;case&quot;backplot&quot;:e.append(&quot;g&quot;).classed(&quot;maplayer&quot;,!0);break;case&quot;plotbg&quot;:r.bg=e.append(&quot;path&quot;);break;case&quot;radial-grid&quot;:case&quot;angular-grid&quot;:e.style(&quot;fill&quot;,&quot;none&quot;);break;case&quot;radial-line&quot;:e.append(&quot;line&quot;).style(&quot;fill&quot;,&quot;none&quot;);break;case&quot;angular-line&quot;:e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;)}})),f.order()},O.updateLayout=function(t,e){var r=this.layers,n=t._size,i=e.radialaxis,a=e.angularaxis,o=e.domain.x,s=e.domain.y;this.xOffset=n.l+n.w*o[0],this.yOffset=n.t+n.h*(1-s[1]);var f=this.xLength=n.w*(o[1]-o[0]),h=this.yLength=n.h*(s[1]-s[0]),p=e.sector;this.sectorInRad=p.map(I);var d,g,m,v,y,x=this.sectorBBox=function(t){var e,r,n,i,a=t[0],o=t[1]-a,s=L(a,360),l=s+o,c=Math.cos(I(s)),u=Math.sin(I(s)),f=Math.cos(I(l)),h=Math.sin(I(l));i=s&lt;=90&amp;&amp;l&gt;=90||s&gt;90&amp;&amp;l&gt;=450?1:u&lt;=0&amp;&amp;h&lt;=0?0:Math.max(u,h);e=s&lt;=180&amp;&amp;l&gt;=180||s&gt;180&amp;&amp;l&gt;=540?-1:c&gt;=0&amp;&amp;f&gt;=0?0:Math.min(c,f);r=s&lt;=270&amp;&amp;l&gt;=270||s&gt;270&amp;&amp;l&gt;=630?-1:u&gt;=0&amp;&amp;h&gt;=0?0:Math.min(u,h);n=l&gt;=360?1:c&lt;=0&amp;&amp;f&lt;=0?0:Math.max(c,f);return[e,r,n,i]}(p),b=x[2]-x[0],_=x[3]-x[1],w=h/f,T=Math.abs(_/b);w&gt;T?(d=f,y=(h-(g=f*T))/n.h/2,m=[o[0],o[1]],v=[s[0]+y,s[1]-y]):(g=h,y=(f-(d=h/T))/n.w/2,m=[o[0]+y,o[1]-y],v=[s[0],s[1]]),this.xLength2=d,this.yLength2=g,this.xDomain2=m,this.yDomain2=v;var k=this.xOffset2=n.l+n.w*m[0],M=this.yOffset2=n.t+n.h*(1-v[1]),A=this.radius=d/b,S=this.innerRadius=e.hole*A,E=this.cx=k-A*x[0],C=this.cy=M+A*x[3],P=this.cxx=E-k,z=this.cyy=C-M;this.radialAxis=this.mockAxis(t,e,i,{_id:&quot;x&quot;,side:{counterclockwise:&quot;top&quot;,clockwise:&quot;bottom&quot;}[i.side],_realSide:i.side,domain:[S/n.w,A/n.w]}),this.angularAxis=this.mockAxis(t,e,a,{side:&quot;right&quot;,domain:[0,Math.PI],autorange:!1}),this.doAutoRange(t,e),this.updateAngularAxis(t,e),this.updateRadialAxis(t,e),this.updateRadialAxisTitle(t,e),this.xaxis=this.mockCartesianAxis(t,e,{_id:&quot;x&quot;,domain:m}),this.yaxis=this.mockCartesianAxis(t,e,{_id:&quot;y&quot;,domain:v});var O=this.pathSubplot();this.clipPaths.forTraces.select(&quot;path&quot;).attr(&quot;d&quot;,O).attr(&quot;transform&quot;,l(P,z)),r.frontplot.attr(&quot;transform&quot;,l(k,M)).call(u.setClipUrl,this._hasClipOnAxisFalse?null:this.clipIds.forTraces,this.gd),r.bg.attr(&quot;d&quot;,O).attr(&quot;transform&quot;,l(E,C)).call(c.fill,e.bgcolor)},O.mockAxis=function(t,e,r,n){var i=o.extendFlat({},r,n);return d(i,e,t),i},O.mockCartesianAxis=function(t,e,r){var n=this,i=r._id,a=o.extendFlat({type:&quot;linear&quot;},r);p(a,t);var s={x:[0,2],y:[1,3]};return a.setRange=function(){var t=n.sectorBBox,r=s[i],o=n.radialAxis._rl,l=(o[1]-o[0])/(1-e.hole);a.range=[t[r[0]]*l,t[r[1]]*l]},a.isPtWithinRange=&quot;x&quot;===i?function(t){return n.isPtInside(t)}:function(){return!0},a.setRange(),a.setScale(),a},O.doAutoRange=function(t,e){var r=this.gd,n=this.radialAxis,i=e.radialaxis;n.setScale(),g(r,n);var a=n.range;i.range=a.slice(),i._input.range=a.slice(),n._rl=[n.r2l(a[0],null,&quot;gregorian&quot;),n.r2l(a[1],null,&quot;gregorian&quot;)]},O.updateRadialAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=e.radialaxis,g=L(e.sector[0],360),m=r.radialAxis,v=u&lt;a;r.fillViewInitialKey(&quot;radialaxis.angle&quot;,d.angle),r.fillViewInitialKey(&quot;radialaxis.range&quot;,m.range.slice()),m.setGeometry(),&quot;auto&quot;===m.tickangle&amp;&amp;g&gt;90&amp;&amp;g&lt;=270&amp;&amp;(m.tickangle=180);var y=function(t){return l(m.l2p(t.x)+u,0)},x=D(d);if(r.radialTickLayout!==x&amp;&amp;(i[&quot;radial-axis&quot;].selectAll(&quot;.xtick&quot;).remove(),r.radialTickLayout=x),v){m.setScale();var b=h.calcTicks(m),_=h.clipEnds(m,b),w=h.getTickSigns(m)[2];h.drawTicks(n,m,{vals:b,layer:i[&quot;radial-axis&quot;],path:h.makeTickPath(m,0,w),transFn:y,crisp:!1}),h.drawGrid(n,m,{vals:_,layer:i[&quot;radial-grid&quot;],path:function(t){return r.pathArc(m.r2p(t.x)+u)},transFn:o.noop,crisp:!1}),h.drawLabels(n,m,{vals:b,layer:i[&quot;radial-axis&quot;],transFn:y,labelFns:h.makeLabelFns(m,0)})}var T=r.radialAxisAngle=r.vangles?P(R(I(d.angle),r.vangles)):d.angle,k=l(f,p),M=k+s(-T);F(i[&quot;radial-axis&quot;],v&amp;&amp;(d.showticklabels||d.ticks),{transform:M}),F(i[&quot;radial-grid&quot;],v&amp;&amp;d.showgrid,{transform:k}),F(i[&quot;radial-line&quot;].select(&quot;line&quot;),v&amp;&amp;d.showline,{x1:u,y1:0,x2:a,y2:0,transform:M}).attr(&quot;stroke-width&quot;,d.linewidth).call(c.stroke,d.linecolor)},O.updateRadialAxisTitle=function(t,e,r){var n=this.gd,i=this.radius,a=this.cx,o=this.cy,s=e.radialaxis,l=this.id+&quot;title&quot;,c=void 0!==r?r:this.radialAxisAngle,f=I(c),h=Math.cos(f),p=Math.sin(f),d=0;if(s.title){var g=u.bBox(this.layers[&quot;radial-axis&quot;].node()).height,m=s.title.font.size;d=&quot;counterclockwise&quot;===s.side?-g-.4*m:g+.8*m}this.layers[&quot;radial-axis-title&quot;]=x.draw(n,l,{propContainer:s,propName:this.id+&quot;.radialaxis.title&quot;,placeholder:C(n,&quot;Click to enter radial axis title&quot;),attributes:{x:a+i/2*h+d*p,y:o-i/2*p+d*h,&quot;text-anchor&quot;:&quot;middle&quot;},transform:{rotate:-c}})},O.updateAngularAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=e.angularaxis,g=r.angularAxis;r.fillViewInitialKey(&quot;angularaxis.rotation&quot;,d.rotation),g.setGeometry(),g.setScale();var m=function(t){return g.t2g(t.x)};&quot;linear&quot;===g.type&amp;&amp;&quot;radians&quot;===g.thetaunit&amp;&amp;(g.tick0=P(g.tick0),g.dtick=P(g.dtick));var v=function(t){return l(f+a*Math.cos(t),p-a*Math.sin(t))},y=h.makeLabelFns(g,0).labelStandoff,x={xFn:function(t){var e=m(t);return Math.cos(e)*y},yFn:function(t){var e=m(t),r=Math.sin(e)&gt;0?.2:1;return-Math.sin(e)*(y+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*A)},anchorFn:function(t){var e=m(t),r=Math.cos(e);return Math.abs(r)&lt;.1?&quot;middle&quot;:r&gt;0?&quot;start&quot;:&quot;end&quot;},heightFn:function(t,e,r){var n=m(t);return-.5*(1+Math.sin(n))*r}},b=D(d);r.angularTickLayout!==b&amp;&amp;(i[&quot;angular-axis&quot;].selectAll(&quot;.&quot;+g._id+&quot;tick&quot;).remove(),r.angularTickLayout=b);var _,w=h.calcTicks(g);if(&quot;linear&quot;===e.gridshape?(_=w.map(m),o.angleDelta(_[0],_[1])&lt;0&amp;&amp;(_=_.slice().reverse())):_=null,r.vangles=_,&quot;category&quot;===g.type&amp;&amp;(w=w.filter((function(t){return o.isAngleInsideSector(m(t),r.sectorInRad)}))),g.visible){var T=&quot;inside&quot;===g.ticks?-1:1,k=(g.linewidth||1)/2;h.drawTicks(n,g,{vals:w,layer:i[&quot;angular-axis&quot;],path:&quot;M&quot;+T*k+&quot;,0h&quot;+T*g.ticklen,transFn:function(t){var e=m(t);return v(e)+s(-P(e))},crisp:!1}),h.drawGrid(n,g,{vals:w,layer:i[&quot;angular-grid&quot;],path:function(t){var e=m(t),r=Math.cos(e),n=Math.sin(e);return&quot;M&quot;+[f+u*r,p-u*n]+&quot;L&quot;+[f+a*r,p-a*n]},transFn:o.noop,crisp:!1}),h.drawLabels(n,g,{vals:w,layer:i[&quot;angular-axis&quot;],repositionOnUpdate:!0,transFn:function(t){return v(m(t))},labelFns:x})}F(i[&quot;angular-line&quot;].select(&quot;path&quot;),d.showline,{d:r.pathSubplot(),transform:l(f,p)}).attr(&quot;stroke-width&quot;,d.linewidth).call(c.stroke,d.linecolor)},O.updateFx=function(t,e){this.gd._context.staticPlot||(this.updateAngularDrag(t),this.updateRadialDrag(t,e,0),this.updateRadialDrag(t,e,1),this.updateMainDrag(t))},O.updateMainDrag=function(t){var e,r,s=this,c=s.gd,u=s.layers,f=t._zoomlayer,h=S.MINZOOM,p=S.OFFEDGE,d=s.radius,g=s.innerRadius,x=s.cx,T=s.cy,k=s.cxx,M=s.cyy,A=s.sectorInRad,C=s.vangles,L=s.radialAxis,I=E.clampTiny,P=E.findXYatLength,z=E.findEnclosingVertexAngles,O=S.cornerHalfWidth,D=S.cornerLen/2,R=m.makeDragger(u,&quot;path&quot;,&quot;maindrag&quot;,&quot;crosshair&quot;);n.select(R).attr(&quot;d&quot;,s.pathSubplot()).attr(&quot;transform&quot;,l(x,T));var F,B,N,j,U,V,q,H,G,Y={element:R,gd:c,subplot:s.id,plotinfo:{id:s.id,xaxis:s.xaxis,yaxis:s.yaxis},xaxes:[s.xaxis],yaxes:[s.yaxis]};function W(t,e){return Math.sqrt(t*t+e*e)}function X(t,e){return W(t-k,e-M)}function Z(t,e){return Math.atan2(M-e,t-k)}function J(t,e){return[t*Math.cos(e),t*Math.sin(-e)]}function K(t,e){if(0===t)return s.pathSector(2*O);var r=D/t,n=e-r,i=e+r,a=Math.max(0,Math.min(t,d)),o=a-O,l=a+O;return&quot;M&quot;+J(o,n)+&quot;A&quot;+[o,o]+&quot; 0,0,0 &quot;+J(o,i)+&quot;L&quot;+J(l,i)+&quot;A&quot;+[l,l]+&quot; 0,0,1 &quot;+J(l,n)+&quot;Z&quot;}function Q(t,e,r){if(0===t)return s.pathSector(2*O);var n,i,a=J(t,e),o=J(t,r),l=I((a[0]+o[0])/2),c=I((a[1]+o[1])/2);if(l&amp;&amp;c){var u=c/l,f=-1/u,h=P(O,u,l,c);n=P(D,f,h[0][0],h[0][1]),i=P(D,f,h[1][0],h[1][1])}else{var p,d;c?(p=D,d=O):(p=O,d=D),n=[[l-p,c-d],[l+p,c-d]],i=[[l-p,c+d],[l+p,c+d]]}return&quot;M&quot;+n.join(&quot;L&quot;)+&quot;L&quot;+i.reverse().join(&quot;L&quot;)+&quot;Z&quot;}function $(t,e){return e=Math.max(Math.min(e,d),g),t&lt;p?t=0:d-t&lt;p?t=d:e&lt;p?e=0:d-e&lt;p&amp;&amp;(e=d),Math.abs(e-t)&gt;h?(t&lt;e?(N=t,j=e):(N=e,j=t),!0):(N=null,j=null,!1)}function tt(t,e){t=t||U,e=e||&quot;M0,0Z&quot;,H.attr(&quot;d&quot;,t),G.attr(&quot;d&quot;,e),m.transitionZoombox(H,G,V,q),V=!0;var r={};at(r),c.emit(&quot;plotly_relayouting&quot;,r)}function et(t,n){var i,a,o=F+(t*=e),l=B+(n*=r),c=X(F,B),u=Math.min(X(o,l),d),f=Z(F,B);$(c,u)&amp;&amp;(i=U+s.pathSector(j),N&amp;&amp;(i+=s.pathSector(N)),a=K(N,f)+K(j,f)),tt(i,a)}function rt(t,e,r,n){var i=E.findIntersectionXY(r,n,r,[t-k,M-e]);return W(i[0],i[1])}function nt(t,e){var r,n,i=F+t,a=B+e,o=Z(F,B),l=Z(i,a),c=z(o,C),u=z(l,C);$(rt(F,B,c[0],c[1]),Math.min(rt(i,a,u[0],u[1]),d))&amp;&amp;(r=U+s.pathSector(j),N&amp;&amp;(r+=s.pathSector(N)),n=[Q(N,c[0],c[1]),Q(j,c[0],c[1])].join(&quot; &quot;)),tt(r,n)}function it(){if(m.removeZoombox(c),null!==N&amp;&amp;null!==j){var t={};at(t),m.showDoubleClickNotifier(c),a.call(&quot;_guiRelayout&quot;,c,t)}}function at(t){var e=L._rl,r=(e[1]-e[0])/(1-g/d)/d,n=[e[0]+(N-g)*r,e[0]+(j-g)*r];t[s.id+&quot;.radialaxis.range&quot;]=n}function ot(t,e){var r=c._fullLayout.clickmode;if(m.removeZoombox(c),2===t){var n={};for(var i in s.viewInitial)n[s.id+&quot;.&quot;+i]=s.viewInitial[i];c.emit(&quot;plotly_doubleclick&quot;,null),a.call(&quot;_guiRelayout&quot;,c,n)}r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;1===t&amp;&amp;_(e,c,[s.xaxis],[s.yaxis],s.id,Y),r.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;y.click(c,e,s.id)}Y.prepFn=function(t,n,a){var l=c._fullLayout.dragmode,u=R.getBoundingClientRect();c._fullLayout._calcInverseTransform(c);var h=c._fullLayout._invTransform;e=c._fullLayout._invScaleX,r=c._fullLayout._invScaleY;var p=o.apply3DTransform(h)(n-u.left,a-u.top);if(F=p[0],B=p[1],C){var g=E.findPolygonOffset(d,A[0],A[1],C);F+=k+g[0],B+=M+g[1]}switch(l){case&quot;zoom&quot;:Y.moveFn=C?nt:et,Y.clickFn=ot,Y.doneFn=it,function(){N=null,j=null,U=s.pathSubplot(),V=!1;var t=c._fullLayout[s.id];q=i(t.bgcolor).getLuminance(),(H=m.makeZoombox(f,q,x,T,U)).attr(&quot;fill-rule&quot;,&quot;evenodd&quot;),G=m.makeCorners(f,x,T),w(c)}();break;case&quot;select&quot;:case&quot;lasso&quot;:b(t,n,a,Y,l)}},R.onmousemove=function(t){y.hover(c,t,s.id),c._fullLayout._lasthover=R,c._fullLayout._hoversubplot=s.id},R.onmouseout=function(t){c._dragging||v.unhover(c,t)},v.init(Y)},O.updateRadialDrag=function(t,e,r){var i=this,c=i.gd,u=i.layers,f=i.radius,h=i.innerRadius,p=i.cx,d=i.cy,g=i.radialAxis,y=S.radialDragBoxSize,x=y/2;if(g.visible){var b,_,T,A=I(i.radialAxisAngle),E=g._rl,C=E[0],L=E[1],z=E[r],O=.75*(E[1]-E[0])/(1-e.hole)/f;r?(b=p+(f+x)*Math.cos(A),_=d-(f+x)*Math.sin(A),T=&quot;radialdrag&quot;):(b=p+(h-x)*Math.cos(A),_=d-(h-x)*Math.sin(A),T=&quot;radialdrag-inner&quot;);var D,B,N,j=m.makeRectDragger(u,T,&quot;crosshair&quot;,-x,-x,y,y),U={element:j,gd:c};F(n.select(j),g.visible&amp;&amp;h&lt;f,{transform:l(b,_)}),U.prepFn=function(){D=null,B=null,N=null,U.moveFn=V,U.doneFn=q,w(c)},U.clampFn=function(t,e){return Math.sqrt(t*t+e*e)&lt;S.MINDRAG&amp;&amp;(t=0,e=0),[t,e]},v.init(U)}function V(t,e){if(D)D(t,e);else{var n=[t,-e],a=[Math.cos(A),Math.sin(A)],s=Math.abs(o.dot(n,a)/Math.sqrt(o.dot(n,n)));isNaN(s)||(D=s&lt;.5?H:G)}var l={};!function(t){null!==B?t[i.id+&quot;.radialaxis.angle&quot;]=B:null!==N&amp;&amp;(t[i.id+&quot;.radialaxis.range[&quot;+r+&quot;]&quot;]=N)}(l),c.emit(&quot;plotly_relayouting&quot;,l)}function q(){null!==B?a.call(&quot;_guiRelayout&quot;,c,i.id+&quot;.radialaxis.angle&quot;,B):null!==N&amp;&amp;a.call(&quot;_guiRelayout&quot;,c,i.id+&quot;.radialaxis.range[&quot;+r+&quot;]&quot;,N)}function H(t,e){if(0!==r){var n=b+t,a=_+e;B=Math.atan2(d-a,n-p),i.vangles&amp;&amp;(B=R(B,i.vangles)),B=P(B);var o=l(p,d)+s(-B);u[&quot;radial-axis&quot;].attr(&quot;transform&quot;,o),u[&quot;radial-line&quot;].select(&quot;line&quot;).attr(&quot;transform&quot;,o);var c=i.gd._fullLayout,f=c[i.id];i.updateRadialAxisTitle(c,f,B)}}function G(t,e){var n=o.dot([t,-e],[Math.cos(A),Math.sin(A)]);if(N=z-O*n,O&gt;0==(r?N&gt;C:N&lt;L)){var s=c._fullLayout,l=s[i.id];g.range[r]=N,g._rl[r]=N,i.updateRadialAxis(s,l),i.xaxis.setRange(),i.xaxis.setScale(),i.yaxis.setRange(),i.yaxis.setScale();var u=!1;for(var f in i.traceHash){var h=i.traceHash[f],p=o.filterVisible(h);h[0][0].trace._module.plot(c,i,p,l),a.traceIs(f,&quot;gl&quot;)&amp;&amp;p.length&amp;&amp;(u=!0)}u&amp;&amp;(k(c),M(c))}else N=null}},O.updateAngularDrag=function(t){var e=this,r=e.gd,i=e.layers,c=e.radius,f=e.angularAxis,h=e.cx,p=e.cy,d=e.cxx,g=e.cyy,y=S.angularDragBoxSize,x=m.makeDragger(i,&quot;path&quot;,&quot;angulardrag&quot;,&quot;move&quot;),b={element:x,gd:r};function _(t,e){return Math.atan2(g+y-e,t-d-y)}n.select(x).attr(&quot;d&quot;,e.pathAnnulus(c,c+y)).attr(&quot;transform&quot;,l(h,p)).call(T,&quot;move&quot;);var A,E,C,L,I,z,O=i.frontplot.select(&quot;.scatterlayer&quot;).selectAll(&quot;.trace&quot;),D=O.selectAll(&quot;.point&quot;),R=O.selectAll(&quot;.textpoint&quot;);function F(c,m){var v=e.gd._fullLayout,y=v[e.id],x=_(A+c*t._invScaleX,E+m*t._invScaleY),b=P(x-z);if(L=C+b,i.frontplot.attr(&quot;transform&quot;,l(e.xOffset2,e.yOffset2)+s([-b,d,g])),e.vangles){I=e.radialAxisAngle+b;var w=l(h,p)+s(-b),T=l(h,p)+s(-I);i.bg.attr(&quot;transform&quot;,w),i[&quot;radial-grid&quot;].attr(&quot;transform&quot;,w),i[&quot;radial-axis&quot;].attr(&quot;transform&quot;,T),i[&quot;radial-line&quot;].select(&quot;line&quot;).attr(&quot;transform&quot;,T),e.updateRadialAxisTitle(v,y,I)}else e.clipPaths.forTraces.select(&quot;path&quot;).attr(&quot;transform&quot;,l(d,g)+s(b));D.each((function(){var t=n.select(this),e=u.getTranslate(t);t.attr(&quot;transform&quot;,l(e.x,e.y)+s([b]))})),R.each((function(){var t=n.select(this),e=t.select(&quot;text&quot;),r=u.getTranslate(t);t.attr(&quot;transform&quot;,s([b,e.attr(&quot;x&quot;),e.attr(&quot;y&quot;)])+l(r.x,r.y))})),f.rotation=o.modHalf(L,360),e.updateAngularAxis(v,y),e._hasClipOnAxisFalse&amp;&amp;!o.isFullCircle(e.sectorInRad)&amp;&amp;O.call(u.hideOutsideRangePoints,e);var S=!1;for(var F in e.traceHash)if(a.traceIs(F,&quot;gl&quot;)){var N=e.traceHash[F],j=o.filterVisible(N);N[0][0].trace._module.plot(r,e,j,y),j.length&amp;&amp;(S=!0)}S&amp;&amp;(k(r),M(r));var U={};B(U),r.emit(&quot;plotly_relayouting&quot;,U)}function B(t){t[e.id+&quot;.angularaxis.rotation&quot;]=L,e.vangles&amp;&amp;(t[e.id+&quot;.radialaxis.angle&quot;]=I)}function N(){R.select(&quot;text&quot;).attr(&quot;transform&quot;,null);var t={};B(t),a.call(&quot;_guiRelayout&quot;,r,t)}b.prepFn=function(n,i,a){var s=t[e.id];C=s.angularaxis.rotation;var l=x.getBoundingClientRect();A=i-l.left,E=a-l.top,r._fullLayout._calcInverseTransform(r);var c=o.apply3DTransform(t._invTransform)(A,E);A=c[0],E=c[1],z=_(A,E),b.moveFn=F,b.doneFn=N,w(r)},e.vangles&amp;&amp;!o.isFullCircle(e.sectorInRad)&amp;&amp;(b.prepFn=o.noop,T(n.select(x),null)),v.init(b)},O.isPtInside=function(t){var e=this.sectorInRad,r=this.vangles,n=this.angularAxis.c2g(t.theta),i=this.radialAxis,a=i.c2l(t.r),s=i._rl;return(r?E.isPtInsidePolygon:o.isPtInsideSector)(a,n,s,e,r)},O.pathArc=function(t){var e=this.sectorInRad,r=this.vangles;return(r?E.pathPolygon:o.pathArc)(t,e[0],e[1],r)},O.pathSector=function(t){var e=this.sectorInRad,r=this.vangles;return(r?E.pathPolygon:o.pathSector)(t,e[0],e[1],r)},O.pathAnnulus=function(t,e){var r=this.sectorInRad,n=this.vangles;return(n?E.pathPolygonAnnulus:o.pathAnnulus)(t,e,r[0],r[1],n)},O.pathSubplot=function(){var t=this.innerRadius,e=this.radius;return t?this.pathAnnulus(t,e):this.pathSector(e)},O.fillViewInitialKey=function(t,e){t in this.viewInitial||(this.viewInitial[t]=e)}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../components/titles&quot;:738,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/clear_gl_canvases&quot;:762,&quot;../../lib/setcursor&quot;:799,&quot;../../plot_api/subroutines&quot;:818,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../cartesian/autorange&quot;:827,&quot;../cartesian/dragbox&quot;:836,&quot;../cartesian/select&quot;:847,&quot;../cartesian/set_convert&quot;:848,&quot;../plots&quot;:891,&quot;./constants&quot;:892,&quot;./helpers&quot;:893,&quot;./set_convert&quot;:904,d3:169,tinycolor2:576}],904:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../cartesian/set_convert&quot;),a=n.deg2rad,o=n.rad2deg;e.exports=function(t,e,r){switch(i(t,r),t._id){case&quot;x&quot;:case&quot;radialaxis&quot;:!function(t,e){var r=e._subplot;t.setGeometry=function(){var e=t._rl[0],n=t._rl[1],i=r.innerRadius,a=(r.radius-i)/(n-e),o=i/a,s=e&gt;n?function(t){return t&lt;=0}:function(t){return t&gt;=0};t.c2g=function(r){var n=t.c2l(r)-e;return(s(n)?n:0)+o},t.g2c=function(r){return t.l2c(r+e-o)},t.g2p=function(t){return t*a},t.c2p=function(e){return t.g2p(t.c2g(e))}}}(t,e);break;case&quot;angularaxis&quot;:!function(t,e){var r=t.type;if(&quot;linear&quot;===r){var i=t.d2c,s=t.c2d;t.d2c=function(t,e){return function(t,e){return&quot;degrees&quot;===e?a(t):t}(i(t),e)},t.c2d=function(t,e){return s(function(t,e){return&quot;degrees&quot;===e?o(t):t}(t,e))}}t.makeCalcdata=function(e,i){var a,o,s=e[i],l=e._length,c=function(r){return t.d2c(r,e.thetaunit)};if(s){if(n.isTypedArray(s)&amp;&amp;&quot;linear&quot;===r){if(l===s.length)return s;if(s.subarray)return s.subarray(0,l)}for(a=new Array(l),o=0;o&lt;l;o++)a[o]=c(s[o])}else{var u=i+&quot;0&quot;,f=&quot;d&quot;+i,h=u in e?c(e[u]):0,p=e[f]?c(e[f]):(t.period||2*Math.PI)/l;for(a=new Array(l),o=0;o&lt;l;o++)a[o]=h+o*p}return a},t.setGeometry=function(){var i,s,l,c,u=e.sector,f=u.map(a),h={clockwise:-1,counterclockwise:1}[t.direction],p=a(t.rotation),d=function(t){return h*t+p},g=function(t){return(t-p)/h};switch(r){case&quot;linear&quot;:s=i=n.identity,c=a,l=o,t.range=n.isFullCircle(f)?[u[0],u[0]+360]:f.map(g).map(o);break;case&quot;category&quot;:var m=t._categories.length,v=t.period?Math.max(t.period,m):m;0===v&amp;&amp;(v=1),s=c=function(t){return 2*t*Math.PI/v},i=l=function(t){return t*v/Math.PI/2},t.range=[0,v]}t.c2g=function(t){return d(s(t))},t.g2c=function(t){return i(g(t))},t.t2g=function(t){return d(c(t))},t.g2t=function(t){return l(g(t))}}}(t,e)}}},{&quot;../../lib&quot;:778,&quot;../cartesian/set_convert&quot;:848}],905:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_template&quot;),a=t(&quot;./domain&quot;).defaults;e.exports=function(t,e,r,o){var s,l,c=o.type,u=o.attributes,f=o.handleDefaults,h=o.partition||&quot;x&quot;,p=e._subplots[c],d=p.length,g=d&amp;&amp;p[0].replace(/\d+$/,&quot;&quot;);function m(t,e){return n.coerce(s,l,u,t,e)}for(var v=0;v&lt;d;v++){var y=p[v];s=t[y]?t[y]:t[y]={},l=i.newContainer(e,y,g),m(&quot;uirevision&quot;,e.uirevision);var x={};x[h]=[v/d,(v+1)/d],a(l,e,m,x),o.id=y,f(s,l,m,o)}}},{&quot;../lib&quot;:778,&quot;../plot_api/plot_template&quot;:817,&quot;./domain&quot;:855}],906:[function(t,e,r){&quot;use strict&quot;;['Variables are inserted using %{variable}, for example &quot;y: %{y}&quot;.','Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example &quot;Price: %{y:$.2f}&quot;.',t(&quot;../constants/docs&quot;).FORMAT_LINK,&quot;for details on the formatting syntax.&quot;,'Dates are formatted using d3-time-format\'s syntax %{variable|d3-time-format}, for example &quot;Day: %{2019-01-01|%A}&quot;.',t(&quot;../constants/docs&quot;).DATE_FORMAT_LINK,&quot;for details on the date formatting syntax.&quot;].join(&quot; &quot;);function n(t){var e=t.description?&quot; &quot;+t.description:&quot;&quot;,r=t.keys||[];if(r.length&gt;0){for(var n=[],i=0;i&lt;r.length;i++)n[i]=&quot;`&quot;+r[i]+&quot;`&quot;;e+=&quot;Finally, the template string has access to &quot;,e=1===r.length?&quot;variable &quot;+n[0]:&quot;variables &quot;+n.slice(0,-1).join(&quot;, &quot;)+&quot; and &quot;+n.slice(-1)+&quot;.&quot;}return e}r.hovertemplateAttrs=function(t,e){t=t||{};n(e=e||{});var r={valType:&quot;string&quot;,dflt:&quot;&quot;,editType:t.editType||&quot;none&quot;};return!1!==t.arrayOk&amp;&amp;(r.arrayOk=!0),r},r.texttemplateAttrs=function(t,e){t=t||{};n(e=e||{});var r={valType:&quot;string&quot;,dflt:&quot;&quot;,editType:t.editType||&quot;calc&quot;};return!1!==t.arrayOk&amp;&amp;(r.arrayOk=!0),r}},{&quot;../constants/docs&quot;:748}],907:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./ternary&quot;),i=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,a=t(&quot;../../lib&quot;).counterRegex;r.name=&quot;ternary&quot;;var o=r.attr=&quot;subplot&quot;;r.idRoot=&quot;ternary&quot;,r.idRegex=r.attrRegex=a(&quot;ternary&quot;),(r.attributes={})[o]={valType:&quot;subplotid&quot;,dflt:&quot;ternary&quot;,editType:&quot;calc&quot;},r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t.calcdata,a=e._subplots.ternary,o=0;o&lt;a.length;o++){var s=a[o],l=i(r,&quot;ternary&quot;,s),c=e[s]._subplot;c||(c=new n({id:s,graphDiv:t,container:e._ternarylayer.node()},e),e[s]._subplot=c),c.plot(l,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.ternary||[],a=0;a&lt;i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&amp;&amp;s&amp;&amp;(s.plotContainer.remove(),s.clipDef.remove(),s.clipDefRelative.remove(),s.layers[&quot;a-title&quot;].remove(),s.layers[&quot;b-title&quot;].remove(),s.layers[&quot;c-title&quot;].remove())}}},{&quot;../../lib&quot;:778,&quot;../../plots/get_data&quot;:865,&quot;./layout_attributes&quot;:908,&quot;./layout_defaults&quot;:909,&quot;./ternary&quot;:910}],908:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../domain&quot;).attributes,a=t(&quot;../cartesian/layout_attributes&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../lib/extend&quot;).extendFlat,l={title:{text:a.title.text,font:a.title.font},color:a.color,tickmode:a.tickmode,nticks:s({},a.nticks,{dflt:6,min:1}),tick0:a.tick0,dtick:a.dtick,tickvals:a.tickvals,ticktext:a.ticktext,ticks:a.ticks,ticklen:a.ticklen,tickwidth:a.tickwidth,tickcolor:a.tickcolor,showticklabels:a.showticklabels,showtickprefix:a.showtickprefix,tickprefix:a.tickprefix,showticksuffix:a.showticksuffix,ticksuffix:a.ticksuffix,showexponent:a.showexponent,exponentformat:a.exponentformat,minexponent:a.minexponent,separatethousands:a.separatethousands,tickfont:a.tickfont,tickangle:a.tickangle,tickformat:a.tickformat,tickformatstops:a.tickformatstops,hoverformat:a.hoverformat,showline:s({},a.showline,{dflt:!0}),linecolor:a.linecolor,linewidth:a.linewidth,showgrid:s({},a.showgrid,{dflt:!0}),gridcolor:a.gridcolor,gridwidth:a.gridwidth,layer:a.layer,min:{valType:&quot;number&quot;,dflt:0,min:0},_deprecated:{title:a._deprecated.title,titlefont:a._deprecated.titlefont}},c=e.exports=o({domain:i({name:&quot;ternary&quot;}),bgcolor:{valType:&quot;color&quot;,dflt:n.background},sum:{valType:&quot;number&quot;,dflt:1,min:0},aaxis:l,baxis:l,caxis:l},&quot;plot&quot;,&quot;from-root&quot;);c.uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;},c.aaxis.uirevision=c.baxis.uirevision=c.caxis.uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../cartesian/layout_attributes&quot;:842,&quot;../domain&quot;:855}],909:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../subplot_defaults&quot;),s=t(&quot;../cartesian/tick_label_defaults&quot;),l=t(&quot;../cartesian/tick_mark_defaults&quot;),c=t(&quot;../cartesian/tick_value_defaults&quot;),u=t(&quot;../cartesian/line_grid_defaults&quot;),f=t(&quot;./layout_attributes&quot;),h=[&quot;aaxis&quot;,&quot;baxis&quot;,&quot;caxis&quot;];function p(t,e,r,a){var o,s,l,c=r(&quot;bgcolor&quot;),u=r(&quot;sum&quot;);a.bgColor=n.combine(c,a.paper_bgcolor);for(var f=0;f&lt;h.length;f++)s=t[o=h[f]]||{},(l=i.newContainer(e,o))._name=o,d(s,l,a,e);var p=e.aaxis,g=e.baxis,m=e.caxis;p.min+g.min+m.min&gt;=u&amp;&amp;(p.min=0,g.min=0,m.min=0,t.aaxis&amp;&amp;delete t.aaxis.min,t.baxis&amp;&amp;delete t.baxis.min,t.caxis&amp;&amp;delete t.caxis.min)}function d(t,e,r,n){var i=f[e._name];function o(r,n){return a.coerce(t,e,i,r,n)}o(&quot;uirevision&quot;,n.uirevision),e.type=&quot;linear&quot;;var h=o(&quot;color&quot;),p=h!==i.color.dflt?h:r.font.color,d=e._name.charAt(0).toUpperCase(),g=&quot;Component &quot;+d,m=o(&quot;title.text&quot;,g);e._hovertitle=m===g?m:d,a.coerceFont(o,&quot;title.font&quot;,{family:r.font.family,size:Math.round(1.2*r.font.size),color:p}),o(&quot;min&quot;),c(t,e,o,&quot;linear&quot;),s(t,e,o,&quot;linear&quot;,{}),l(t,e,o,{outerTicks:!0}),o(&quot;showticklabels&quot;)&amp;&amp;(a.coerceFont(o,&quot;tickfont&quot;,{family:r.font.family,size:r.font.size,color:p}),o(&quot;tickangle&quot;),o(&quot;tickformat&quot;)),u(t,e,o,{dfltColor:h,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),o(&quot;hoverformat&quot;),o(&quot;layer&quot;)}e.exports=function(t,e,r){o(t,e,r,{type:&quot;ternary&quot;,attributes:f,handleDefaults:p,font:e.font,paper_bgcolor:e.paper_bgcolor})}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../cartesian/line_grid_defaults&quot;:844,&quot;../cartesian/tick_label_defaults&quot;:849,&quot;../cartesian/tick_mark_defaults&quot;:850,&quot;../cartesian/tick_value_defaults&quot;:851,&quot;../subplot_defaults&quot;:905,&quot;./layout_attributes&quot;:908}],910:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=o._,c=t(&quot;../../components/color&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../cartesian/set_convert&quot;),h=t(&quot;../../lib/extend&quot;).extendFlat,p=t(&quot;../plots&quot;),d=t(&quot;../cartesian/axes&quot;),g=t(&quot;../../components/dragelement&quot;),m=t(&quot;../../components/fx&quot;),v=t(&quot;../../components/dragelement/helpers&quot;),y=v.freeMode,x=v.rectMode,b=t(&quot;../../components/titles&quot;),_=t(&quot;../cartesian/select&quot;).prepSelect,w=t(&quot;../cartesian/select&quot;).selectOnClick,T=t(&quot;../cartesian/select&quot;).clearSelect,k=t(&quot;../cartesian/select&quot;).clearSelectionsCache,M=t(&quot;../cartesian/constants&quot;);function A(t,e){this.id=t.id,this.graphDiv=t.graphDiv,this.init(e),this.makeFramework(e),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}e.exports=A;var S=A.prototype;S.init=function(t){this.container=t._ternarylayer,this.defs=t._defs,this.layoutId=t._uid,this.traceHash={},this.layers={}},S.plot=function(t,e){var r=e[this.id],n=e._size;this._hasClipOnAxisFalse=!1;for(var i=0;i&lt;t.length;i++){if(!1===t[i][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(r),this.adjustLayout(r,n),p.generalUpdatePerTraceModule(this.graphDiv,this,t,r),this.layers.plotbg.select(&quot;path&quot;).call(c.fill,r.bgcolor)},S.makeFramework=function(t){var e=this.graphDiv,r=t[this.id],n=this.clipId=&quot;clip&quot;+this.layoutId+this.id,i=this.clipIdRelative=&quot;clip-relative&quot;+this.layoutId+this.id;this.clipDef=o.ensureSingleById(t._clips,&quot;clipPath&quot;,n,(function(t){t.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;)})),this.clipDefRelative=o.ensureSingleById(t._clips,&quot;clipPath&quot;,i,(function(t){t.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;)})),this.plotContainer=o.ensureSingle(this.container,&quot;g&quot;,this.id),this.updateLayers(r),u.setClipUrl(this.layers.backplot,n,e),u.setClipUrl(this.layers.grids,n,e)},S.updateLayers=function(t){var e=this.layers,r=[&quot;draglayer&quot;,&quot;plotbg&quot;,&quot;backplot&quot;,&quot;grids&quot;];&quot;below traces&quot;===t.aaxis.layer&amp;&amp;r.push(&quot;aaxis&quot;,&quot;aline&quot;),&quot;below traces&quot;===t.baxis.layer&amp;&amp;r.push(&quot;baxis&quot;,&quot;bline&quot;),&quot;below traces&quot;===t.caxis.layer&amp;&amp;r.push(&quot;caxis&quot;,&quot;cline&quot;),r.push(&quot;frontplot&quot;),&quot;above traces&quot;===t.aaxis.layer&amp;&amp;r.push(&quot;aaxis&quot;,&quot;aline&quot;),&quot;above traces&quot;===t.baxis.layer&amp;&amp;r.push(&quot;baxis&quot;,&quot;bline&quot;),&quot;above traces&quot;===t.caxis.layer&amp;&amp;r.push(&quot;caxis&quot;,&quot;cline&quot;);var i=this.plotContainer.selectAll(&quot;g.toplevel&quot;).data(r,String),a=[&quot;agrid&quot;,&quot;bgrid&quot;,&quot;cgrid&quot;];i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;toplevel &quot;+t})).each((function(t){var r=n.select(this);e[t]=r,&quot;frontplot&quot;===t?r.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0):&quot;backplot&quot;===t?r.append(&quot;g&quot;).classed(&quot;maplayer&quot;,!0):&quot;plotbg&quot;===t?r.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;):&quot;aline&quot;===t||&quot;bline&quot;===t||&quot;cline&quot;===t?r.append(&quot;path&quot;):&quot;grids&quot;===t&amp;&amp;a.forEach((function(t){e[t]=r.append(&quot;g&quot;).classed(&quot;grid &quot;+t,!0)}))})),i.order()};var E=Math.sqrt(4/3);S.adjustLayout=function(t,e){var r,n,i,a,o,l,p=this,d=t.domain,g=(d.x[0]+d.x[1])/2,m=(d.y[0]+d.y[1])/2,v=d.x[1]-d.x[0],y=d.y[1]-d.y[0],x=v*e.w,b=y*e.h,_=t.sum,w=t.aaxis.min,T=t.baxis.min,k=t.caxis.min;x&gt;E*b?i=(a=b)*E:a=(i=x)/E,o=v*i/x,l=y*a/b,r=e.l+e.w*g-i/2,n=e.t+e.h*(1-m)-a/2,p.x0=r,p.y0=n,p.w=i,p.h=a,p.sum=_,p.xaxis={type:&quot;linear&quot;,range:[w+2*k-_,_-w-2*T],domain:[g-o/2,g+o/2],_id:&quot;x&quot;},f(p.xaxis,p.graphDiv._fullLayout),p.xaxis.setScale(),p.xaxis.isPtWithinRange=function(t){return t.a&gt;=p.aaxis.range[0]&amp;&amp;t.a&lt;=p.aaxis.range[1]&amp;&amp;t.b&gt;=p.baxis.range[1]&amp;&amp;t.b&lt;=p.baxis.range[0]&amp;&amp;t.c&gt;=p.caxis.range[1]&amp;&amp;t.c&lt;=p.caxis.range[0]},p.yaxis={type:&quot;linear&quot;,range:[w,_-T-k],domain:[m-l/2,m+l/2],_id:&quot;y&quot;},f(p.yaxis,p.graphDiv._fullLayout),p.yaxis.setScale(),p.yaxis.isPtWithinRange=function(){return!0};var M=p.yaxis.domain[0],A=p.aaxis=h({},t.aaxis,{range:[w,_-T-k],side:&quot;left&quot;,tickangle:(+t.aaxis.tickangle||0)-30,domain:[M,M+l*E],anchor:&quot;free&quot;,position:0,_id:&quot;y&quot;,_length:i});f(A,p.graphDiv._fullLayout),A.setScale();var S=p.baxis=h({},t.baxis,{range:[_-w-k,T],side:&quot;bottom&quot;,domain:p.xaxis.domain,anchor:&quot;free&quot;,position:0,_id:&quot;x&quot;,_length:i});f(S,p.graphDiv._fullLayout),S.setScale();var C=p.caxis=h({},t.caxis,{range:[_-w-T,k],side:&quot;right&quot;,tickangle:(+t.caxis.tickangle||0)+30,domain:[M,M+l*E],anchor:&quot;free&quot;,position:0,_id:&quot;y&quot;,_length:i});f(C,p.graphDiv._fullLayout),C.setScale();var L=&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;h&quot;+i+&quot;l-&quot;+i/2+&quot;,-&quot;+a+&quot;Z&quot;;p.clipDef.select(&quot;path&quot;).attr(&quot;d&quot;,L),p.layers.plotbg.select(&quot;path&quot;).attr(&quot;d&quot;,L);var I=&quot;M0,&quot;+a+&quot;h&quot;+i+&quot;l-&quot;+i/2+&quot;,-&quot;+a+&quot;Z&quot;;p.clipDefRelative.select(&quot;path&quot;).attr(&quot;d&quot;,I);var P=s(r,n);p.plotContainer.selectAll(&quot;.scatterlayer,.maplayer&quot;).attr(&quot;transform&quot;,P),p.clipDefRelative.select(&quot;path&quot;).attr(&quot;transform&quot;,null);var z=s(r-S._offset,n+a);p.layers.baxis.attr(&quot;transform&quot;,z),p.layers.bgrid.attr(&quot;transform&quot;,z);var O=s(r+i/2,n)+&quot;rotate(30)&quot;+s(0,-A._offset);p.layers.aaxis.attr(&quot;transform&quot;,O),p.layers.agrid.attr(&quot;transform&quot;,O);var D=s(r+i/2,n)+&quot;rotate(-30)&quot;+s(0,-C._offset);p.layers.caxis.attr(&quot;transform&quot;,D),p.layers.cgrid.attr(&quot;transform&quot;,D),p.drawAxes(!0),p.layers.aline.select(&quot;path&quot;).attr(&quot;d&quot;,A.showline?&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;l&quot;+i/2+&quot;,-&quot;+a:&quot;M0,0&quot;).call(c.stroke,A.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(A.linewidth||0)+&quot;px&quot;),p.layers.bline.select(&quot;path&quot;).attr(&quot;d&quot;,S.showline?&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;h&quot;+i:&quot;M0,0&quot;).call(c.stroke,S.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(S.linewidth||0)+&quot;px&quot;),p.layers.cline.select(&quot;path&quot;).attr(&quot;d&quot;,C.showline?&quot;M&quot;+(r+i/2)+&quot;,&quot;+n+&quot;l&quot;+i/2+&quot;,&quot;+a:&quot;M0,0&quot;).call(c.stroke,C.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(C.linewidth||0)+&quot;px&quot;),p.graphDiv._context.staticPlot||p.initInteractions(),u.setClipUrl(p.layers.frontplot,p._hasClipOnAxisFalse?null:p.clipId,p.graphDiv)},S.drawAxes=function(t){var e=this.graphDiv,r=this.id.substr(7)+&quot;title&quot;,n=this.layers,i=this.aaxis,a=this.baxis,o=this.caxis;if(this.drawAx(i),this.drawAx(a),this.drawAx(o),t){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(o.showticklabels?.75*o.tickfont.size:0)+(&quot;outside&quot;===o.ticks?.87*o.ticklen:0)),c=(a.showticklabels?a.tickfont.size:0)+(&quot;outside&quot;===a.ticks?a.ticklen:0)+3;n[&quot;a-title&quot;]=b.draw(e,&quot;a&quot;+r,{propContainer:i,propName:this.id+&quot;.aaxis.title&quot;,placeholder:l(e,&quot;Click to enter Component A title&quot;),attributes:{x:this.x0+this.w/2,y:this.y0-i.title.font.size/3-s,&quot;text-anchor&quot;:&quot;middle&quot;}}),n[&quot;b-title&quot;]=b.draw(e,&quot;b&quot;+r,{propContainer:a,propName:this.id+&quot;.baxis.title&quot;,placeholder:l(e,&quot;Click to enter Component B title&quot;),attributes:{x:this.x0-c,y:this.y0+this.h+.83*a.title.font.size+c,&quot;text-anchor&quot;:&quot;middle&quot;}}),n[&quot;c-title&quot;]=b.draw(e,&quot;c&quot;+r,{propContainer:o,propName:this.id+&quot;.caxis.title&quot;,placeholder:l(e,&quot;Click to enter Component C title&quot;),attributes:{x:this.x0+this.w+c,y:this.y0+this.h+.83*o.title.font.size+c,&quot;text-anchor&quot;:&quot;middle&quot;}})}},S.drawAx=function(t){var e,r=this.graphDiv,n=t._name,i=n.charAt(0),a=t._id,s=this.layers[n],l=i+&quot;tickLayout&quot;,c=(e=t).ticks+String(e.ticklen)+String(e.showticklabels);this[l]!==c&amp;&amp;(s.selectAll(&quot;.&quot;+a+&quot;tick&quot;).remove(),this[l]=c),t.setScale();var u=d.calcTicks(t),f=d.clipEnds(t,u),h=d.makeTransTickFn(t),p=d.getTickSigns(t)[2],g=o.deg2rad(30),m=p*(t.linewidth||1)/2,v=p*t.ticklen,y=this.w,x=this.h,b=&quot;b&quot;===i?&quot;M0,&quot;+m+&quot;l&quot;+Math.sin(g)*v+&quot;,&quot;+Math.cos(g)*v:&quot;M&quot;+m+&quot;,0l&quot;+Math.cos(g)*v+&quot;,&quot;+-Math.sin(g)*v,_={a:&quot;M0,0l&quot;+x+&quot;,-&quot;+y/2,b:&quot;M0,0l-&quot;+y/2+&quot;,-&quot;+x,c:&quot;M0,0l-&quot;+x+&quot;,&quot;+y/2}[i];d.drawTicks(r,t,{vals:&quot;inside&quot;===t.ticks?f:u,layer:s,path:b,transFn:h,crisp:!1}),d.drawGrid(r,t,{vals:f,layer:this.layers[i+&quot;grid&quot;],path:_,transFn:h,crisp:!1}),d.drawLabels(r,t,{vals:u,layer:s,transFn:h,labelFns:d.makeLabelFns(t,0,30)})};var C=M.MINZOOM/2+.87,L=&quot;m-0.87,.5h&quot;+C+&quot;v3h-&quot;+(C+5.2)+&quot;l&quot;+(C/2+2.6)+&quot;,-&quot;+(.87*C+4.5)+&quot;l2.6,1.5l-&quot;+C/2+&quot;,&quot;+.87*C+&quot;Z&quot;,I=&quot;m0.87,.5h-&quot;+C+&quot;v3h&quot;+(C+5.2)+&quot;l-&quot;+(C/2+2.6)+&quot;,-&quot;+(.87*C+4.5)+&quot;l-2.6,1.5l&quot;+C/2+&quot;,&quot;+.87*C+&quot;Z&quot;,P=&quot;m0,1l&quot;+C/2+&quot;,&quot;+.87*C+&quot;l2.6,-1.5l-&quot;+(C/2+2.6)+&quot;,-&quot;+(.87*C+4.5)+&quot;l-&quot;+(C/2+2.6)+&quot;,&quot;+(.87*C+4.5)+&quot;l2.6,1.5l&quot;+C/2+&quot;,-&quot;+.87*C+&quot;Z&quot;,z=!0;function O(t){n.select(t).selectAll(&quot;.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners&quot;).remove()}S.clearSelect=function(){k(this.dragOptions),T(this.dragOptions.gd)},S.initInteractions=function(){var t,e,r,n,f,h,p,d,v,b,T,k,A=this,S=A.layers.plotbg.select(&quot;path&quot;).node(),C=A.graphDiv,D=C._fullLayout._zoomlayer;function R(t){var e={};return e[A.id+&quot;.aaxis.min&quot;]=t.a,e[A.id+&quot;.baxis.min&quot;]=t.b,e[A.id+&quot;.caxis.min&quot;]=t.c,e}function F(t,e){var r=C._fullLayout.clickmode;O(C),2===t&amp;&amp;(C.emit(&quot;plotly_doubleclick&quot;,null),a.call(&quot;_guiRelayout&quot;,C,R({a:0,b:0,c:0}))),r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;1===t&amp;&amp;w(e,C,[A.xaxis],[A.yaxis],A.id,A.dragOptions),r.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;m.click(C,e,A.id)}function B(t,e){return 1-e/A.h}function N(t,e){return 1-(t+(A.h-e)/Math.sqrt(3))/A.w}function j(t,e){return(t-(A.h-e)/Math.sqrt(3))/A.w}function U(i,a){var o=r+i*t,s=n+a*e,l=Math.max(0,Math.min(1,B(0,n),B(0,s))),c=Math.max(0,Math.min(1,N(r,n),N(o,s))),u=Math.max(0,Math.min(1,j(r,n),j(o,s))),g=(l/2+u)*A.w,m=(1-l/2-c)*A.w,y=(g+m)/2,x=m-g,_=(1-l)*A.h,w=_-x/E;x&lt;M.MINZOOM?(p=f,T.attr(&quot;d&quot;,v),k.attr(&quot;d&quot;,&quot;M0,0Z&quot;)):(p={a:f.a+l*h,b:f.b+c*h,c:f.c+u*h},T.attr(&quot;d&quot;,v+&quot;M&quot;+g+&quot;,&quot;+_+&quot;H&quot;+m+&quot;L&quot;+y+&quot;,&quot;+w+&quot;L&quot;+g+&quot;,&quot;+_+&quot;Z&quot;),k.attr(&quot;d&quot;,&quot;M&quot;+r+&quot;,&quot;+n+&quot;m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2ZM&quot;+g+&quot;,&quot;+_+L+&quot;M&quot;+m+&quot;,&quot;+_+I+&quot;M&quot;+y+&quot;,&quot;+w+P)),b||(T.transition().style(&quot;fill&quot;,d&gt;.2?&quot;rgba(0,0,0,0.4)&quot;:&quot;rgba(255,255,255,0.3)&quot;).duration(200),k.transition().style(&quot;opacity&quot;,1).duration(200),b=!0),C.emit(&quot;plotly_relayouting&quot;,R(p))}function V(){O(C),p!==f&amp;&amp;(a.call(&quot;_guiRelayout&quot;,C,R(p)),z&amp;&amp;C.data&amp;&amp;C._context.showTips&amp;&amp;(o.notifier(l(C,&quot;Double-click to zoom back out&quot;),&quot;long&quot;),z=!1))}function q(t,e){var r=t/A.xaxis._m,n=e/A.yaxis._m,i=[(p={a:f.a-n,b:f.b+(r+n)/2,c:f.c-(r-n)/2}).a,p.b,p.c].sort(o.sorterAsc),a=i.indexOf(p.a),l=i.indexOf(p.b),c=i.indexOf(p.c);i[0]&lt;0&amp;&amp;(i[1]+i[0]/2&lt;0?(i[2]+=i[0]+i[1],i[0]=i[1]=0):(i[2]+=i[0]/2,i[1]+=i[0]/2,i[0]=0),p={a:i[a],b:i[l],c:i[c]},e=(f.a-p.a)*A.yaxis._m,t=(f.c-p.c-f.b+p.b)*A.xaxis._m);var h=s(A.x0+t,A.y0+e);A.plotContainer.selectAll(&quot;.scatterlayer,.maplayer&quot;).attr(&quot;transform&quot;,h);var d=s(-t,-e);A.clipDefRelative.select(&quot;path&quot;).attr(&quot;transform&quot;,d),A.aaxis.range=[p.a,A.sum-p.b-p.c],A.baxis.range=[A.sum-p.a-p.c,p.b],A.caxis.range=[A.sum-p.a-p.b,p.c],A.drawAxes(!1),A._hasClipOnAxisFalse&amp;&amp;A.plotContainer.select(&quot;.scatterlayer&quot;).selectAll(&quot;.trace&quot;).call(u.hideOutsideRangePoints,A),C.emit(&quot;plotly_relayouting&quot;,R(p))}function H(){a.call(&quot;_guiRelayout&quot;,C,R(p))}this.dragOptions={element:S,gd:C,plotinfo:{id:A.id,domain:C._fullLayout[A.id].domain,xaxis:A.xaxis,yaxis:A.yaxis},subplot:A.id,prepFn:function(a,l,u){A.dragOptions.xaxes=[A.xaxis],A.dragOptions.yaxes=[A.yaxis],t=C._fullLayout._invScaleX,e=C._fullLayout._invScaleY;var g=A.dragOptions.dragmode=C._fullLayout.dragmode;y(g)?A.dragOptions.minDrag=1:A.dragOptions.minDrag=void 0,&quot;zoom&quot;===g?(A.dragOptions.moveFn=U,A.dragOptions.clickFn=F,A.dragOptions.doneFn=V,function(t,e,a){var l=S.getBoundingClientRect();r=e-l.left,n=a-l.top,C._fullLayout._calcInverseTransform(C);var u=C._fullLayout._invTransform,g=o.apply3DTransform(u)(r,n);r=g[0],n=g[1],f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},p=f,h=A.aaxis.range[1]-f.a,d=i(A.graphDiv._fullLayout[A.id].bgcolor).getLuminance(),v=&quot;M0,&quot;+A.h+&quot;L&quot;+A.w/2+&quot;, 0L&quot;+A.w+&quot;,&quot;+A.h+&quot;Z&quot;,b=!1,T=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox&quot;).attr(&quot;transform&quot;,s(A.x0,A.y0)).style({fill:d&gt;.2?&quot;rgba(0,0,0,0)&quot;:&quot;rgba(255,255,255,0)&quot;,&quot;stroke-width&quot;:0}).attr(&quot;d&quot;,v),k=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).attr(&quot;transform&quot;,s(A.x0,A.y0)).style({fill:c.background,stroke:c.defaultLine,&quot;stroke-width&quot;:1,opacity:0}).attr(&quot;d&quot;,&quot;M0,0Z&quot;),A.clearSelect(C)}(0,l,u)):&quot;pan&quot;===g?(A.dragOptions.moveFn=q,A.dragOptions.clickFn=F,A.dragOptions.doneFn=H,f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},p=f,A.clearSelect(C)):(x(g)||y(g))&amp;&amp;_(a,l,u,A.dragOptions,g)}},S.onmousemove=function(t){m.hover(C,t,A.id),C._fullLayout._lasthover=S,C._fullLayout._hoversubplot=A.id},S.onmouseout=function(t){C._dragging||g.unhover(C,t)},g.init(this.dragOptions)}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../components/titles&quot;:738,&quot;../../lib&quot;:778,&quot;../../lib/extend&quot;:768,&quot;../../registry&quot;:911,&quot;../cartesian/axes&quot;:828,&quot;../cartesian/constants&quot;:834,&quot;../cartesian/select&quot;:847,&quot;../cartesian/set_convert&quot;:848,&quot;../plots&quot;:891,d3:169,tinycolor2:576}],911:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/loggers&quot;),i=t(&quot;./lib/noop&quot;),a=t(&quot;./lib/push_unique&quot;),o=t(&quot;./lib/is_plain_object&quot;),s=t(&quot;./lib/dom&quot;).addStyleRule,l=t(&quot;./lib/extend&quot;),c=t(&quot;./plots/attributes&quot;),u=t(&quot;./plots/layout_attributes&quot;),f=l.extendFlat,h=l.extendDeepAll;function p(t){var e=t.name,i=t.categories,a=t.meta;if(r.modules[e])n.log(&quot;Type &quot;+e+&quot; already registered&quot;);else{r.subplotsRegistry[t.basePlotModule.name]||function(t){var e=t.name;if(r.subplotsRegistry[e])return void n.log(&quot;Plot type &quot;+e+&quot; already registered.&quot;);for(var i in v(t),r.subplotsRegistry[e]=t,r.componentsRegistry)b(i,t.name)}(t.basePlotModule);for(var o={},l=0;l&lt;i.length;l++)o[i[l]]=!0,r.allCategories[i[l]]=!0;for(var c in r.modules[e]={_module:t,categories:o},a&amp;&amp;Object.keys(a).length&amp;&amp;(r.modules[e].meta=a),r.allTypes.push(e),r.componentsRegistry)y(c,e);t.layoutAttributes&amp;&amp;f(r.traceLayoutAttributes,t.layoutAttributes);var u=t.basePlotModule,h=u.name;if(&quot;mapbox&quot;===h){var p=u.constants.styleRules;for(var d in p)s(&quot;.js-plotly-plot .plotly .mapboxgl-&quot;+d,p[d])}&quot;geo&quot;!==h&amp;&amp;&quot;mapbox&quot;!==h||void 0===typeof window||void 0!==window.PlotlyGeoAssets||(window.PlotlyGeoAssets={topojson:{}})}}function d(t){if(&quot;string&quot;!=typeof t.name)throw new Error(&quot;Component module *name* must be a string.&quot;);var e=t.name;for(var n in r.componentsRegistry[e]=t,t.layoutAttributes&amp;&amp;(t.layoutAttributes._isLinkedToArray&amp;&amp;a(r.layoutArrayContainers,e),v(t)),r.modules)y(e,n);for(var i in r.subplotsRegistry)b(e,i);for(var o in r.transformsRegistry)x(e,o);t.schema&amp;&amp;t.schema.layout&amp;&amp;h(u,t.schema.layout)}function g(t){if(&quot;string&quot;!=typeof t.name)throw new Error(&quot;Transform module *name* must be a string.&quot;);var e=&quot;Transform module &quot;+t.name,i=&quot;function&quot;==typeof t.transform,a=&quot;function&quot;==typeof t.calcTransform;if(!i&amp;&amp;!a)throw new Error(e+&quot; is missing a *transform* or *calcTransform* method.&quot;);for(var s in i&amp;&amp;a&amp;&amp;n.log([e+&quot; has both a *transform* and *calcTransform* methods.&quot;,&quot;Please note that all *transform* methods are executed&quot;,&quot;before all *calcTransform* methods.&quot;].join(&quot; &quot;)),o(t.attributes)||n.log(e+&quot; registered without an *attributes* object.&quot;),&quot;function&quot;!=typeof t.supplyDefaults&amp;&amp;n.log(e+&quot; registered without a *supplyDefaults* method.&quot;),r.transformsRegistry[t.name]=t,r.componentsRegistry)x(s,t.name)}function m(t){var e=t.name,n=e.split(&quot;-&quot;)[0],i=t.dictionary,a=t.format,o=i&amp;&amp;Object.keys(i).length,s=a&amp;&amp;Object.keys(a).length,l=r.localeRegistry,c=l[e];if(c||(l[e]=c={}),n!==e){var u=l[n];u||(l[n]=u={}),o&amp;&amp;u.dictionary===c.dictionary&amp;&amp;(u.dictionary=i),s&amp;&amp;u.format===c.format&amp;&amp;(u.format=a)}o&amp;&amp;(c.dictionary=i),s&amp;&amp;(c.format=a)}function v(t){if(t.layoutAttributes){var e=t.layoutAttributes._arrayAttrRegexps;if(e)for(var n=0;n&lt;e.length;n++)a(r.layoutArrayRegexes,e[n])}}function y(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.traces){var i=n.traces[e];i&amp;&amp;h(r.modules[e]._module.attributes,i)}}function x(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.transforms){var i=n.transforms[e];i&amp;&amp;h(r.transformsRegistry[e].attributes,i)}}function b(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.subplots){var i=r.subplotsRegistry[e],a=i.layoutAttributes,o=&quot;subplot&quot;===i.attr?i.name:i.attr;Array.isArray(o)&amp;&amp;(o=o[0]);var s=n.subplots[o];a&amp;&amp;s&amp;&amp;h(a,s)}}function _(t){return&quot;object&quot;==typeof t&amp;&amp;(t=t.type),t}r.modules={},r.allCategories={},r.allTypes=[],r.subplotsRegistry={},r.transformsRegistry={},r.componentsRegistry={},r.layoutArrayContainers=[],r.layoutArrayRegexes=[],r.traceLayoutAttributes={},r.localeRegistry={},r.apiMethodRegistry={},r.collectableSubplotTypes=null,r.register=function(t){if(r.collectableSubplotTypes=null,!t)throw new Error(&quot;No argument passed to Plotly.register.&quot;);t&amp;&amp;!Array.isArray(t)&amp;&amp;(t=[t]);for(var e=0;e&lt;t.length;e++){var n=t[e];if(!n)throw new Error(&quot;Invalid module was attempted to be registered!&quot;);switch(n.moduleType){case&quot;trace&quot;:p(n);break;case&quot;transform&quot;:g(n);break;case&quot;component&quot;:d(n);break;case&quot;locale&quot;:m(n);break;case&quot;apiMethod&quot;:var i=n.name;r.apiMethodRegistry[i]=n.fn;break;default:throw new Error(&quot;Invalid module was attempted to be registered!&quot;)}}},r.getModule=function(t){var e=r.modules[_(t)];return!!e&amp;&amp;e._module},r.traceIs=function(t,e){if(&quot;various&quot;===(t=_(t)))return!1;var i=r.modules[t];return i||(t&amp;&amp;&quot;area&quot;!==t&amp;&amp;n.log(&quot;Unrecognized trace type &quot;+t+&quot;.&quot;),i=r.modules[c.type.dflt]),!!i.categories[e]},r.getTransformIndices=function(t,e){for(var r=[],n=t.transforms||[],i=0;i&lt;n.length;i++)n[i].type===e&amp;&amp;r.push(i);return r},r.hasTransform=function(t,e){for(var r=t.transforms||[],n=0;n&lt;r.length;n++)if(r[n].type===e)return!0;return!1},r.getComponentMethod=function(t,e){var n=r.componentsRegistry[t];return n&amp;&amp;n[e]||i},r.call=function(){var t=arguments[0],e=[].slice.call(arguments,1);return r.apiMethodRegistry[t].apply(null,e)}},{&quot;./lib/dom&quot;:766,&quot;./lib/extend&quot;:768,&quot;./lib/is_plain_object&quot;:779,&quot;./lib/loggers&quot;:782,&quot;./lib/noop&quot;:787,&quot;./lib/push_unique&quot;:793,&quot;./plots/attributes&quot;:824,&quot;./plots/layout_attributes&quot;:882}],912:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;),a=i.extendFlat,o=i.extendDeep;function s(t){var e;switch(t){case&quot;themes__thumb&quot;:e={autosize:!0,width:150,height:150,title:{text:&quot;&quot;},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case&quot;thumbnail&quot;:e={title:{text:&quot;&quot;},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:&quot;&quot;,margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:e={}}return e}e.exports=function(t,e){var r;t.framework&amp;&amp;t.framework.isPolar&amp;&amp;(t=t.framework.getConfig());var i,l=t.data,c=t.layout,u=o([],l),f=o({},c,s(e.tileClass)),h=t._context||{};if(e.width&amp;&amp;(f.width=e.width),e.height&amp;&amp;(f.height=e.height),&quot;thumbnail&quot;===e.tileClass||&quot;themes__thumb&quot;===e.tileClass){f.annotations=[];var p=Object.keys(f);for(r=0;r&lt;p.length;r++)i=p[r],[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;].indexOf(i.slice(0,5))&gt;-1&amp;&amp;(f[p[r]].title={text:&quot;&quot;});for(r=0;r&lt;u.length;r++){var d=u[r];d.showscale=!1,d.marker&amp;&amp;(d.marker.showscale=!1),n.traceIs(d,&quot;pie-like&quot;)&amp;&amp;(d.textposition=&quot;none&quot;)}}if(Array.isArray(e.annotations))for(r=0;r&lt;e.annotations.length;r++)f.annotations.push(e.annotations[r]);var g=Object.keys(f).filter((function(t){return t.match(/^scene\d*$/)}));if(g.length){var m={};for(&quot;thumbnail&quot;===e.tileClass&amp;&amp;(m={title:{text:&quot;&quot;},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),r=0;r&lt;g.length;r++){var v=f[g[r]];v.xaxis||(v.xaxis={}),v.yaxis||(v.yaxis={}),v.zaxis||(v.zaxis={}),a(v.xaxis,m),a(v.yaxis,m),a(v.zaxis,m),v._scene=null}}var y=document.createElement(&quot;div&quot;);e.tileClass&amp;&amp;(y.className=e.tileClass);var x={gd:y,td:y,layout:f,data:u,config:{staticPlot:void 0===e.staticPlot||e.staticPlot,plotGlPixelRatio:void 0===e.plotGlPixelRatio?2:e.plotGlPixelRatio,displaylogo:e.displaylogo||!1,showLink:e.showLink||!1,showTips:e.showTips||!1,mapboxAccessToken:h.mapboxAccessToken}};return&quot;transparent&quot;!==e.setBackground&amp;&amp;(x.config.setBackground=e.setBackground||&quot;opaque&quot;),x.gd.defaultLayout=s(e.tileClass),x}},{&quot;../lib&quot;:778,&quot;../registry&quot;:911}],913:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/to_image&quot;),a=t(&quot;./filesaver&quot;),o=t(&quot;./helpers&quot;);e.exports=function(t,e){var r;return n.isPlainObject(t)||(r=n.getGraphDiv(t)),(e=e||{}).format=e.format||&quot;png&quot;,e.width=e.width||null,e.height=e.height||null,e.imageDataOnly=!0,new Promise((function(s,l){r&amp;&amp;r._snapshotInProgress&amp;&amp;l(new Error(&quot;Snapshotting already in progress.&quot;)),n.isIE()&amp;&amp;&quot;svg&quot;!==e.format&amp;&amp;l(new Error(o.MSG_IE_BAD_FORMAT)),r&amp;&amp;(r._snapshotInProgress=!0);var c=i(t,e),u=e.filename||t.fn||&quot;newplot&quot;;u+=&quot;.&quot;+e.format.replace(&quot;-&quot;,&quot;.&quot;),c.then((function(t){return r&amp;&amp;(r._snapshotInProgress=!1),a(t,u,e.format)})).then((function(t){s(t)})).catch((function(t){r&amp;&amp;(r._snapshotInProgress=!1),l(t)}))}))}},{&quot;../lib&quot;:778,&quot;../plot_api/to_image&quot;:820,&quot;./filesaver&quot;:914,&quot;./helpers&quot;:915}],914:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;./helpers&quot;);e.exports=function(t,e,r){var a=document.createElement(&quot;a&quot;),o=&quot;download&quot;in a;return new Promise((function(s,l){var c,u;if(n.isIE9orBelow()&amp;&amp;l(new Error(&quot;IE &lt; 10 unsupported&quot;)),n.isSafari()){var f=&quot;svg&quot;===r?&quot;,&quot;:&quot;;base64,&quot;;return i.octetStream(f+encodeURIComponent(t)),s(e)}return n.isIE()?(c=i.createBlob(t,&quot;svg&quot;),window.navigator.msSaveBlob(c,e),c=null,s(e)):o?(c=i.createBlob(t,r),u=i.createObjectURL(c),a.href=u,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),i.revokeObjectURL(u),c=null,s(e)):void l(new Error(&quot;download error&quot;))}))}},{&quot;../lib&quot;:778,&quot;./helpers&quot;:915}],915:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);r.getDelay=function(t){return t._has&amp;&amp;(t._has(&quot;gl3d&quot;)||t._has(&quot;gl2d&quot;)||t._has(&quot;mapbox&quot;))?500:0},r.getRedrawFunc=function(t){return function(){var e=t._fullLayout||{};!(e._has&amp;&amp;e._has(&quot;polar&quot;))&amp;&amp;t.data&amp;&amp;t.data[0]&amp;&amp;t.data[0].r||n.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t)}},r.encodeSVG=function(t){return&quot;data:image/svg+xml,&quot;+encodeURIComponent(t)},r.encodeJSON=function(t){return&quot;data:application/json,&quot;+encodeURIComponent(t)};var i=window.URL||window.webkitURL;r.createObjectURL=function(t){return i.createObjectURL(t)},r.revokeObjectURL=function(t){return i.revokeObjectURL(t)},r.createBlob=function(t,e){if(&quot;svg&quot;===e)return new window.Blob([t],{type:&quot;image/svg+xml;charset=utf-8&quot;});if(&quot;full-json&quot;===e)return new window.Blob([t],{type:&quot;application/json;charset=utf-8&quot;});var r=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r),i=0;i&lt;e;i++)n[i]=t.charCodeAt(i);return r}(window.atob(t));return new window.Blob([r],{type:&quot;image/&quot;+e})},r.octetStream=function(t){document.location.href=&quot;data:application/octet-stream&quot;+t},r.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/,r.MSG_IE_BAD_FORMAT=&quot;Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.&quot;},{&quot;../registry&quot;:911}],916:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./helpers&quot;),i={getDelay:n.getDelay,getRedrawFunc:n.getRedrawFunc,clone:t(&quot;./cloneplot&quot;),toSVG:t(&quot;./tosvg&quot;),svgToImg:t(&quot;./svgtoimg&quot;),toImage:t(&quot;./toimage&quot;),downloadImage:t(&quot;./download&quot;)};e.exports=i},{&quot;./cloneplot&quot;:912,&quot;./download&quot;:913,&quot;./helpers&quot;:915,&quot;./svgtoimg&quot;:917,&quot;./toimage&quot;:918,&quot;./tosvg&quot;:919}],917:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;events&quot;).EventEmitter,a=t(&quot;./helpers&quot;);e.exports=function(t){var e=t.emitter||new i,r=new Promise((function(i,o){var s=window.Image,l=t.svg,c=t.format||&quot;png&quot;;if(n.isIE()&amp;&amp;&quot;svg&quot;!==c){var u=new Error(a.MSG_IE_BAD_FORMAT);return o(u),t.promise?r:e.emit(&quot;error&quot;,u)}var f,h,p=t.canvas,d=t.scale||1,g=t.width||300,m=t.height||150,v=d*g,y=d*m,x=p.getContext(&quot;2d&quot;),b=new s;&quot;svg&quot;===c||n.isIE9orBelow()||n.isSafari()?h=a.encodeSVG(l):(f=a.createBlob(l,&quot;svg&quot;),h=a.createObjectURL(f)),p.width=v,p.height=y,b.onload=function(){var r;switch(f=null,a.revokeObjectURL(h),&quot;svg&quot;!==c&amp;&amp;x.drawImage(b,0,0,v,y),c){case&quot;jpeg&quot;:r=p.toDataURL(&quot;image/jpeg&quot;);break;case&quot;png&quot;:r=p.toDataURL(&quot;image/png&quot;);break;case&quot;webp&quot;:r=p.toDataURL(&quot;image/webp&quot;);break;case&quot;svg&quot;:r=h;break;default:var n=&quot;Image format is not jpeg, png, svg or webp.&quot;;if(o(new Error(n)),!t.promise)return e.emit(&quot;error&quot;,n)}i(r),t.promise||e.emit(&quot;success&quot;,r)},b.onerror=function(r){if(f=null,a.revokeObjectURL(h),o(r),!t.promise)return e.emit(&quot;error&quot;,r)},b.src=h}));return t.promise?r:e}},{&quot;../lib&quot;:778,&quot;./helpers&quot;:915,events:110}],918:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;events&quot;).EventEmitter,i=t(&quot;../registry&quot;),a=t(&quot;../lib&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;./cloneplot&quot;),l=t(&quot;./tosvg&quot;),c=t(&quot;./svgtoimg&quot;);e.exports=function(t,e){var r=new n,u=s(t,{format:&quot;png&quot;}),f=u.gd;f.style.position=&quot;absolute&quot;,f.style.left=&quot;-5000px&quot;,document.body.appendChild(f);var h=o.getRedrawFunc(f);return i.call(&quot;plot&quot;,f,u.data,u.layout,u.config).then(h).then((function(){var t=o.getDelay(f._fullLayout);setTimeout((function(){var t=l(f),n=document.createElement(&quot;canvas&quot;);n.id=a.randstr(),(r=c({format:e.format,width:f._fullLayout.width,height:f._fullLayout.height,canvas:n,emitter:r,svg:t})).clean=function(){f&amp;&amp;document.body.removeChild(f)}}),t)})).catch((function(t){r.emit(&quot;error&quot;,t)})),r}},{&quot;../lib&quot;:778,&quot;../registry&quot;:911,&quot;./cloneplot&quot;:912,&quot;./helpers&quot;:915,&quot;./svgtoimg&quot;:917,&quot;./tosvg&quot;:919,events:110}],919:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../components/drawing&quot;),o=t(&quot;../components/color&quot;),s=t(&quot;../constants/xmlns_namespaces&quot;),l=/&quot;/g,c=new RegExp('(&quot;TOBESTRIPPED)|(TOBESTRIPPED&quot;)',&quot;g&quot;);e.exports=function(t,e,r){var u,f=t._fullLayout,h=f._paper,p=f._toppaper,d=f.width,g=f.height;h.insert(&quot;rect&quot;,&quot;:first-child&quot;).call(a.setRect,0,0,d,g).call(o.fill,f.paper_bgcolor);var m=f._basePlotModules||[];for(u=0;u&lt;m.length;u++){var v=m[u];v.toSVG&amp;&amp;v.toSVG(t)}if(p){var y=p.node().childNodes,x=Array.prototype.slice.call(y);for(u=0;u&lt;x.length;u++){var b=x[u];b.childNodes.length&amp;&amp;h.node().appendChild(b)}}if(f._draggers&amp;&amp;f._draggers.remove(),h.node().style.background=&quot;&quot;,h.selectAll(&quot;text&quot;).attr({&quot;data-unformatted&quot;:null,&quot;data-math&quot;:null}).each((function(){var t=n.select(this);if(&quot;hidden&quot;!==this.style.visibility&amp;&amp;&quot;none&quot;!==this.style.display){t.style({visibility:null,display:null});var e=this.style.fontFamily;e&amp;&amp;-1!==e.indexOf('&quot;')&amp;&amp;t.style(&quot;font-family&quot;,e.replace(l,&quot;TOBESTRIPPED&quot;))}else t.remove()})),f._gradientUrlQueryParts){var _=[];for(var w in f._gradientUrlQueryParts)_.push(w);_.length&amp;&amp;h.selectAll(_.join(&quot;,&quot;)).each((function(){var t=n.select(this),e=this.style.fill;e&amp;&amp;-1!==e.indexOf(&quot;url(&quot;)&amp;&amp;t.style(&quot;fill&quot;,e.replace(l,&quot;TOBESTRIPPED&quot;));var r=this.style.stroke;r&amp;&amp;-1!==r.indexOf(&quot;url(&quot;)&amp;&amp;t.style(&quot;stroke&quot;,r.replace(l,&quot;TOBESTRIPPED&quot;))}))}&quot;pdf&quot;!==e&amp;&amp;&quot;eps&quot;!==e||h.selectAll(&quot;#MathJax_SVG_glyphs path&quot;).attr(&quot;stroke-width&quot;,0),h.node().setAttributeNS(s.xmlns,&quot;xmlns&quot;,s.svg),h.node().setAttributeNS(s.xmlns,&quot;xmlns:xlink&quot;,s.xlink),&quot;svg&quot;===e&amp;&amp;r&amp;&amp;(h.attr(&quot;width&quot;,r*d),h.attr(&quot;height&quot;,r*g),h.attr(&quot;viewBox&quot;,&quot;0 0 &quot;+d+&quot; &quot;+g));var T=(new window.XMLSerializer).serializeToString(h.node());return T=function(t){var e=n.select(&quot;body&quot;).append(&quot;div&quot;).style({display:&quot;none&quot;}).html(&quot;&quot;),r=t.replace(/(&amp;[^;]*;)/gi,(function(t){return&quot;&amp;lt;&quot;===t?&quot;&amp;#60;&quot;:&quot;&amp;rt;&quot;===t?&quot;&amp;#62;&quot;:-1!==t.indexOf(&quot;&lt;&quot;)||-1!==t.indexOf(&quot;&gt;&quot;)?&quot;&quot;:e.html(t).text()}));return e.remove(),r}(T),T=(T=T.replace(/&amp;(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,&quot;&amp;amp;&quot;)).replace(c,&quot;'&quot;),i.isIE()&amp;&amp;(T=(T=(T=T.replace(/&quot;/gi,&quot;'&quot;)).replace(/(\('#)([^']*)('\))/gi,'(&quot;#$2&quot;)')).replace(/(\\')/gi,'&quot;')),T}},{&quot;../components/color&quot;:643,&quot;../components/drawing&quot;:665,&quot;../constants/xmlns_namespaces&quot;:754,&quot;../lib&quot;:778,d3:169}],920:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;);var i=e.marker;if(i){n.mergeArray(i.opacity,t,&quot;mo&quot;,!0),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;a&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;))}}},{&quot;../../lib&quot;:778}],921:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/font_attributes&quot;),l=t(&quot;./constants&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat,u=s({editType:&quot;calc&quot;,arrayOk:!0,colorEditType:&quot;style&quot;}),f=c({},n.marker.line.width,{dflt:0}),h=c({width:f,editType:&quot;calc&quot;},o(&quot;marker.line&quot;)),p=c({line:h,editType:&quot;calc&quot;},o(&quot;marker&quot;),{opacity:{valType:&quot;number&quot;,arrayOk:!0,dflt:1,min:0,max:1,editType:&quot;style&quot;}});e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,text:n.text,texttemplate:a({editType:&quot;plot&quot;},{keys:l.eventDataKeys}),hovertext:n.hovertext,hovertemplate:i({},{keys:l.eventDataKeys}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;auto&quot;,&quot;none&quot;],dflt:&quot;none&quot;,arrayOk:!0,editType:&quot;calc&quot;},insidetextanchor:{valType:&quot;enumerated&quot;,values:[&quot;end&quot;,&quot;middle&quot;,&quot;start&quot;],dflt:&quot;end&quot;,editType:&quot;plot&quot;},textangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;plot&quot;},textfont:c({},u,{}),insidetextfont:c({},u,{}),outsidetextfont:c({},u,{}),constraintext:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;both&quot;,&quot;none&quot;],dflt:&quot;both&quot;,editType:&quot;calc&quot;},cliponaxis:c({},n.cliponaxis,{}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc+clearAxisTypes&quot;},base:{valType:&quot;any&quot;,dflt:null,arrayOk:!0,editType:&quot;calc&quot;},offset:{valType:&quot;number&quot;,dflt:null,arrayOk:!0,editType:&quot;calc&quot;},width:{valType:&quot;number&quot;,dflt:null,min:0,arrayOk:!0,editType:&quot;calc&quot;},marker:p,offsetgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},alignmentgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},selected:{marker:{opacity:n.selected.marker.opacity,color:n.selected.marker.color,editType:&quot;style&quot;},textfont:n.selected.textfont,editType:&quot;style&quot;},unselected:{marker:{opacity:n.unselected.marker.opacity,color:n.unselected.marker.color,editType:&quot;style&quot;},textfont:n.unselected.textfont,editType:&quot;style&quot;},r:n.r,t:n.t,_deprecated:{bardir:{valType:&quot;enumerated&quot;,editType:&quot;calc&quot;,values:[&quot;v&quot;,&quot;h&quot;]}}}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:923}],922:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,o=t(&quot;../../components/colorscale/calc&quot;),s=t(&quot;./arrays_to_calcdata&quot;),l=t(&quot;../scatter/calc_selection&quot;);e.exports=function(t,e){var r,c,u,f,h=n.getFromId(t,e.xaxis||&quot;x&quot;),p=n.getFromId(t,e.yaxis||&quot;y&quot;),d={msUTC:!(!e.base&amp;&amp;0!==e.base)};&quot;h&quot;===e.orientation?(r=h.makeCalcdata(e,&quot;x&quot;,d),u=p.makeCalcdata(e,&quot;y&quot;),c=i(e,p,&quot;y&quot;,u),f=!!e.yperiodalignment):(r=p.makeCalcdata(e,&quot;y&quot;,d),u=h.makeCalcdata(e,&quot;x&quot;),c=i(e,h,&quot;x&quot;,u),f=!!e.xperiodalignment);for(var g=Math.min(c.length,r.length),m=new Array(g),v=0;v&lt;g;v++)m[v]={p:c[v],s:r[v]},f&amp;&amp;(m[v].orig_p=u[v]),e.ids&amp;&amp;(m[v].id=String(e.ids[v]));return a(e,&quot;marker&quot;)&amp;&amp;o(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),a(e,&quot;marker.line&quot;)&amp;&amp;o(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}),s(m,e),l(m,e),m}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc_selection&quot;:1189,&quot;./arrays_to_calcdata&quot;:920}],923:[function(t,e,r){&quot;use strict&quot;;e.exports={TEXTPAD:3,eventDataKeys:[&quot;value&quot;,&quot;label&quot;]}},{}],924:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray,a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../registry&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,c=t(&quot;./sieve.js&quot;);function u(t,e,r,o,u){if(o.length){var b,_,w,T;switch(function(t,e){var r,a;for(r=0;r&lt;e.length;r++){var o,s=e[r],l=s[0].trace,c=&quot;funnel&quot;===l.type?l._base:l.base,u=&quot;h&quot;===l.orientation?l.xcalendar:l.ycalendar,f=&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?function(){return null}:t.d2c;if(i(c)){for(a=0;a&lt;Math.min(c.length,s.length);a++)o=f(c[a],0,u),n(o)?(s[a].b=+o,s[a].hasB=1):s[a].b=0;for(;a&lt;s.length;a++)s[a].b=0}else{o=f(c,0,u);var h=n(o);for(o=h?o:0,a=0;a&lt;s.length;a++)s[a].b=o,h&amp;&amp;(s[a].hasB=1)}}}(r,o),u.mode){case&quot;overlay&quot;:f(e,r,o,u);break;case&quot;group&quot;:for(b=[],_=[],w=0;w&lt;o.length;w++)void 0===(T=o[w])[0].trace.offset?_.push(T):b.push(T);_.length&amp;&amp;function(t,e,r,n,i){var o=new c(n,{sepNegVal:!1,overlapNoMerge:!i.norm});(function(t,e,r,n){for(var i=t._fullLayout,a=r.positions,o=r.distinctPositions,s=r.minDiff,c=r.traces,u=c.length,f=a.length!==o.length,h=s*(1-n.gap),m=l(i,e._id)+c[0][0].trace.orientation,v=i._alignmentOpts[m]||{},y=0;y&lt;u;y++){var x,b,_=c[y],w=_[0].trace,T=v[w.alignmentgroup]||{},k=Object.keys(T.offsetGroups||{}).length,M=(x=k?h/k:f?h/u:h)*(1-(n.groupgap||0));b=k?((2*w._offsetIndex+1-k)*x-M)/2:f?((2*y+1-u)*x-M)/2:-M/2;var A=_[0].t;A.barwidth=M,A.poffset=b,A.bargroupwidth=h,A.bardelta=s}r.binWidth=c[0][0].t.barwidth/100,p(r),d(e,r),g(e,r,f)})(t,e,o,i),function(t){for(var e=t.traces,r=0;r&lt;e.length;r++){var n=e[r];if(void 0===n[0].trace.base)for(var i=new c([n],{sepNegVal:!0,overlapNoMerge:!0}),o=0;o&lt;n.length;o++){var s=n[o];if(s.p!==a){var l=i.put(s.p,s.b+s.s);l&amp;&amp;(s.b=l)}}}}(o),i.norm?(v(o),y(r,o,i)):m(r,o)}(t,e,r,_,u),b.length&amp;&amp;f(e,r,b,u);break;case&quot;stack&quot;:case&quot;relative&quot;:for(b=[],_=[],w=0;w&lt;o.length;w++)void 0===(T=o[w])[0].trace.base?_.push(T):b.push(T);_.length&amp;&amp;function(t,e,r,n,i){var o=new c(n,{sepNegVal:&quot;relative&quot;===i.mode,overlapNoMerge:!(i.norm||&quot;stack&quot;===i.mode||&quot;relative&quot;===i.mode)});h(e,o,i),function(t,e,r){var n,i,o,l,c,u,f=x(t),h=e.traces;for(l=0;l&lt;h.length;l++)if(n=h[l],&quot;funnel&quot;===(i=n[0].trace).type)for(c=0;c&lt;n.length;c++)(u=n[c]).s!==a&amp;&amp;e.put(u.p,-.5*u.s);for(l=0;l&lt;h.length;l++){n=h[l],i=n[0].trace,o=&quot;funnel&quot;===i.type;var p=[];for(c=0;c&lt;n.length;c++)if((u=n[c]).s!==a){var d;d=o?u.s:u.s+u.b;var g=e.put(u.p,d),m=g+d;u.b=g,u[f]=m,r.norm||(p.push(m),u.hasB&amp;&amp;p.push(g))}r.norm||(i._extremes[t._id]=s.findExtremes(t,p,{tozero:!0,padded:!0}))}}(r,o,i);for(var l=0;l&lt;n.length;l++)for(var u=n[l],f=0;f&lt;u.length;f++){var p=u[f];if(p.s!==a)p.b+p.s===o.get(p.p,p.s)&amp;&amp;(p._outmost=!0)}i.norm&amp;&amp;y(r,o,i)}(0,e,r,_,u),b.length&amp;&amp;f(e,r,b,u)}!function(t,e){var r,i,a,o=x(e),s={},l=1/0,c=-1/0;for(r=0;r&lt;t.length;r++)for(a=t[r],i=0;i&lt;a.length;i++){var u=a[i].p;n(u)&amp;&amp;(l=Math.min(l,u),c=Math.max(c,u))}var f=1e4/(c-l),h=s.round=function(t){return String(Math.round(f*(t-l)))};for(r=0;r&lt;t.length;r++){(a=t[r])[0].t.extents=s;var p=a[0].t.poffset,d=Array.isArray(p);for(i=0;i&lt;a.length;i++){var g=a[i],m=g[o]-g.w/2;if(n(m)){var v=g[o]+g.w/2,y=h(g.p);s[y]?s[y]=[Math.min(m,s[y][0]),Math.max(v,s[y][1])]:s[y]=[m,v]}g.p0=g.p+(d?p[i]:p),g.p1=g.p0+g.w,g.s0=g.b,g.s1=g.s0+g.s}}}(o,e)}}function f(t,e,r,n){for(var i=0;i&lt;r.length;i++){var a=r[i],o=new c([a],{unitMinDiff:n.xCat||n.yCat,sepNegVal:!1,overlapNoMerge:!n.norm});h(t,o,n),n.norm?(v(o),y(e,o,n)):m(e,o)}}function h(t,e,r){for(var n=e.minDiff,i=e.traces,a=n*(1-r.gap),o=a*(1-(r.groupgap||0)),s=-o/2,l=0;l&lt;i.length;l++){var c=i[l][0].t;c.barwidth=o,c.poffset=s,c.bargroupwidth=a,c.bardelta=n}e.binWidth=i[0][0].t.barwidth/100,p(e),d(t,e),g(t,e)}function p(t){var e,r,a=t.traces;for(e=0;e&lt;a.length;e++){var o,s=a[e],l=s[0],c=l.trace,u=l.t,f=c._offset||c.offset,h=u.poffset;if(i(f)){for(o=Array.prototype.slice.call(f,0,s.length),r=0;r&lt;o.length;r++)n(o[r])||(o[r]=h);for(r=o.length;r&lt;s.length;r++)o.push(h);u.poffset=o}else void 0!==f&amp;&amp;(u.poffset=f);var p=c._width||c.width,d=u.barwidth;if(i(p)){var g=Array.prototype.slice.call(p,0,s.length);for(r=0;r&lt;g.length;r++)n(g[r])||(g[r]=d);for(r=g.length;r&lt;s.length;r++)g.push(d);if(u.barwidth=g,void 0===f){for(o=[],r=0;r&lt;s.length;r++)o.push(h+(d-g[r])/2);u.poffset=o}}else void 0!==p&amp;&amp;(u.barwidth=p,void 0===f&amp;&amp;(u.poffset=h+(d-p)/2))}}function d(t,e){for(var r=e.traces,n=x(t),i=0;i&lt;r.length;i++)for(var a=r[i],o=a[0].t,s=o.poffset,l=Array.isArray(s),c=o.barwidth,u=Array.isArray(c),f=0;f&lt;a.length;f++){var h=a[f],p=h.w=u?c[f]:c;h[n]=h.p+(l?s[f]:s)+p/2}}function g(t,e,r){var n=e.traces,i=e.minDiff/2;s.minDtick(t,e.minDiff,e.distinctPositions[0],r);for(var a=0;a&lt;n.length;a++){var o,l,c,u,f=n[a],h=f[0],p=h.trace,d=[];for(u=0;u&lt;f.length;u++)l=(o=f[u]).p-i,c=o.p+i,d.push(l,c);if(p.width||p.offset){var g=h.t,m=g.poffset,v=g.barwidth,y=Array.isArray(m),x=Array.isArray(v);for(u=0;u&lt;f.length;u++){o=f[u];var b=y?m[u]:m,_=x?v[u]:v;c=(l=o.p+b)+_,d.push(l,c)}}p._extremes[t._id]=s.findExtremes(t,d,{padded:!1})}}function m(t,e){for(var r=e.traces,n=x(t),i=0;i&lt;r.length;i++){for(var a=r[i],o=a[0].trace,l=[],c=!1,u=0;u&lt;a.length;u++){var f=a[u],h=f.b,p=h+f.s;f[n]=p,l.push(p),f.hasB&amp;&amp;l.push(h),f.hasB&amp;&amp;f.b||(c=!0)}o._extremes[t._id]=s.findExtremes(t,l,{tozero:c,padded:!0})}}function v(t){for(var e=t.traces,r=0;r&lt;e.length;r++)for(var n=e[r],i=0;i&lt;n.length;i++){var o=n[i];o.s!==a&amp;&amp;t.put(o.p,o.b+o.s)}}function y(t,e,r){var i=e.traces,o=x(t),l=&quot;fraction&quot;===r.norm?1:100,c=l/1e9,u=t.l2c(t.c2l(0)),f=&quot;stack&quot;===r.mode?l:u;function h(e){return n(t.c2l(e))&amp;&amp;(e&lt;u-c||e&gt;f+c||!n(u))}for(var p=0;p&lt;i.length;p++){for(var d=i[p],g=d[0].trace,m=[],v=!1,y=!1,b=0;b&lt;d.length;b++){var _=d[b];if(_.s!==a){var w=Math.abs(l/e.get(_.p,_.s));_.b*=w,_.s*=w;var T=_.b,k=T+_.s;_[o]=k,m.push(k),y=y||h(k),_.hasB&amp;&amp;(m.push(T),y=y||h(T)),_.hasB&amp;&amp;_.b||(v=!0)}}g._extremes[t._id]=s.findExtremes(t,m,{tozero:v,padded:y})}}function x(t){return t._id.charAt(0)}e.exports={crossTraceCalc:function(t,e){for(var r=e.xaxis,n=e.yaxis,i=t._fullLayout,a=t._fullData,s=t.calcdata,l=[],c=[],f=0;f&lt;a.length;f++){var h=a[f];if(!0===h.visible&amp;&amp;o.traceIs(h,&quot;bar&quot;)&amp;&amp;h.xaxis===r._id&amp;&amp;h.yaxis===n._id&amp;&amp;(&quot;h&quot;===h.orientation?l.push(s[f]):c.push(s[f]),h._computePh))for(var p=t.calcdata[f],d=0;d&lt;p.length;d++)&quot;function&quot;==typeof p[d].ph0&amp;&amp;(p[d].ph0=p[d].ph0()),&quot;function&quot;==typeof p[d].ph1&amp;&amp;(p[d].ph1=p[d].ph1())}var g={xCat:&quot;category&quot;===r.type||&quot;multicategory&quot;===r.type,yCat:&quot;category&quot;===n.type||&quot;multicategory&quot;===n.type,mode:i.barmode,norm:i.barnorm,gap:i.bargap,groupgap:i.bargroupgap};u(t,r,n,c,g),u(t,n,r,l,g)},setGroupPositions:u}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/constraints&quot;:835,&quot;../../registry&quot;:911,&quot;./sieve.js&quot;:934,&quot;fast-isnumeric&quot;:241}],925:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./style_defaults&quot;),c=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,u=t(&quot;./attributes&quot;),f=n.coerceFont;function h(t,e,r,n){var i=e.orientation,a=e[{v:&quot;x&quot;,h:&quot;y&quot;}[i]+&quot;axis&quot;],o=c(r,a)+i,s=r._alignmentOpts||{},l=n(&quot;alignmentgroup&quot;),u=s[o];u||(u=s[o]={});var f=u[l];f?f.traces.push(e):f=u[l]={traces:[e],alignmentIndex:Object.keys(u).length,offsetGroups:{}};var h=n(&quot;offsetgroup&quot;),p=f.offsetGroups,d=p[h];h&amp;&amp;(d||(d=p[h]={offsetIndex:Object.keys(p).length}),e._offsetIndex=d.offsetIndex)}function p(t,e,r,i,a,o){var s=!(!1===(o=o||{}).moduleHasSelected),l=!(!1===o.moduleHasUnselected),c=!(!1===o.moduleHasConstrain),u=!(!1===o.moduleHasCliponaxis),h=!(!1===o.moduleHasTextangle),p=!(!1===o.moduleHasInsideanchor),d=!!o.hasPathbar,g=Array.isArray(a)||&quot;auto&quot;===a,m=g||&quot;inside&quot;===a,v=g||&quot;outside&quot;===a;if(m||v){var y=f(i,&quot;textfont&quot;,r.font),x=n.extendFlat({},y),b=!(t.textfont&amp;&amp;t.textfont.color);if(b&amp;&amp;delete x.color,f(i,&quot;insidetextfont&quot;,x),d){var _=n.extendFlat({},y);b&amp;&amp;delete _.color,f(i,&quot;pathbar.textfont&quot;,_)}v&amp;&amp;f(i,&quot;outsidetextfont&quot;,y),s&amp;&amp;i(&quot;selected.textfont.color&quot;),l&amp;&amp;i(&quot;unselected.textfont.color&quot;),c&amp;&amp;i(&quot;constraintext&quot;),u&amp;&amp;i(&quot;cliponaxis&quot;),h&amp;&amp;i(&quot;textangle&quot;),i(&quot;texttemplate&quot;)}m&amp;&amp;p&amp;&amp;i(&quot;insidetextanchor&quot;)}e.exports={supplyDefaults:function(t,e,r,c){function f(r,i){return n.coerce(t,e,u,r,i)}if(o(t,e,c,f)){s(t,e,c,f),f(&quot;orientation&quot;,e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;),f(&quot;base&quot;),f(&quot;offset&quot;),f(&quot;width&quot;),f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;);var h=f(&quot;textposition&quot;);p(t,e,c,f,h,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),l(t,e,f,r,c);var d=(e.marker.line||{}).color,g=a.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);g(t,e,d||i.defaultLine,{axis:&quot;y&quot;}),g(t,e,d||i.defaultLine,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1},crossTraceDefaults:function(t,e){var r;function i(t){return n.coerce(r._input,r,u,t)}if(&quot;group&quot;===e.barmode)for(var a=0;a&lt;t.length;a++)&quot;bar&quot;===(r=t[a]).type&amp;&amp;(r._input,h(0,r,e,i))},handleGroupingDefaults:h,handleText:p}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/constraints&quot;:835,&quot;../../registry&quot;:911,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:921,&quot;./style_defaults&quot;:936}],926:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),&quot;h&quot;===r.orientation?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}},{}],927:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../lib&quot;).isArrayOrTypedArray;r.coerceString=function(t,e,r){if(&quot;string&quot;==typeof e){if(e||!t.noBlank)return e}else if((&quot;number&quot;==typeof e||!0===e)&amp;&amp;!t.strict)return String(e);return void 0!==r?r:t.dflt},r.coerceNumber=function(t,e,r){if(n(e)){e=+e;var i=t.min,a=t.max;if(!(void 0!==i&amp;&amp;e&lt;i||void 0!==a&amp;&amp;e&gt;a))return e}return void 0!==r?r:t.dflt},r.coerceColor=function(t,e,r){return i(e).isValid()?e:void 0!==r?r:t.dflt},r.coerceEnumerated=function(t,e,r){return t.coerceNumber&amp;&amp;(e=+e),-1!==t.values.indexOf(e)?e:void 0!==r?r:t.dflt},r.getValue=function(t,e){var r;return Array.isArray(t)?e&lt;t.length&amp;&amp;(r=t[e]):r=t,r},r.getLineWidth=function(t,e){return 0&lt;e.mlw?e.mlw:a(t.marker.line.width)?0:t.marker.line.width}},{&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],928:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../lib&quot;).fillText,s=t(&quot;./helpers&quot;).getLineWidth,l=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText,c=t(&quot;../../constants/numerical&quot;).BADNUM;function u(t,e,r,i){var a,s,u,f,h,p,d,g=t.cd,m=g[0].trace,v=g[0].t,y=&quot;closest&quot;===i,x=&quot;waterfall&quot;===m.type,b=t.maxHoverDistance;function _(t){return t[u]-t.w/2}function w(t){return t[u]+t.w/2}var T=y?_:function(t){return Math.min(_(t),t.p-v.bardelta/2)},k=y?w:function(t){return Math.max(w(t),t.p+v.bardelta/2)};function M(t,e){return n.inbox(t-a,e-a,b+Math.min(1,Math.abs(e-t)/d)-1)}function A(t){return M(T(t),k(t))}function S(t){var e=s,r=t.b,i=t[f];if(x){var a=Math.abs(t.rawS)||0;e&gt;0?i+=a:e&lt;0&amp;&amp;(i-=a)}return n.inbox(r-e,i-e,b+(i-e)/(i-r)-1)}&quot;h&quot;===m.orientation?(a=r,s=e,u=&quot;y&quot;,f=&quot;x&quot;,h=S,p=A):(a=e,s=r,u=&quot;x&quot;,f=&quot;y&quot;,p=S,h=A);var E=t[u+&quot;a&quot;],C=t[f+&quot;a&quot;];d=Math.abs(E.r2c(E.range[1])-E.r2c(E.range[0]));var L=n.getDistanceFunction(i,h,p,(function(t){return(h(t)+p(t))/2}));if(n.getClosest(g,L,t),!1!==t.index&amp;&amp;g[t.index].p!==c){y||(T=function(t){return Math.min(_(t),t.p-v.bargroupwidth/2)},k=function(t){return Math.max(w(t),t.p+v.bargroupwidth/2)});var I=g[t.index],P=m.base?I.b+I.s:I.s;t[f+&quot;0&quot;]=t[f+&quot;1&quot;]=C.c2p(I[f],!0),t[f+&quot;LabelVal&quot;]=P;var z=v.extents[v.extents.round(I.p)];t[u+&quot;0&quot;]=E.c2p(y?T(I):z[0],!0),t[u+&quot;1&quot;]=E.c2p(y?k(I):z[1],!0);var O=void 0!==I.orig_p;return t[u+&quot;LabelVal&quot;]=O?I.orig_p:I.p,t.labelLabel=l(E,t[u+&quot;LabelVal&quot;]),t.valueLabel=l(C,t[f+&quot;LabelVal&quot;]),t.baseLabel=l(C,I.b),t.spikeDistance=(S(I)+function(t){return M(_(t),w(t))}(I))/2-b,t[u+&quot;Spike&quot;]=E.c2p(I.p,!0),o(I,m,t),t.hovertemplate=m.hovertemplate,t}}function f(t,e){var r=e.mcc||t.marker.color,n=e.mlcc||t.marker.line.color,i=s(t,e);return a.opacity(r)?r:a.opacity(n)&amp;&amp;i?n:void 0}e.exports={hoverPoints:function(t,e,r,n){var a=u(t,e,r,n);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=f(s,l),i.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(l,s,a),[a]}},hoverOnBars:u,getTraceColor:f}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./helpers&quot;:927}],929:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;).crossTraceCalc,colorbar:t(&quot;../scatter/marker_colorbar&quot;),arraysToCalcdata:t(&quot;./arrays_to_calcdata&quot;),plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;bar&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;bar&quot;,&quot;oriented&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],animatable:!0,meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./arrays_to_calcdata&quot;:920,&quot;./attributes&quot;:921,&quot;./calc&quot;:922,&quot;./cross_trace_calc&quot;:924,&quot;./defaults&quot;:925,&quot;./event_data&quot;:926,&quot;./hover&quot;:928,&quot;./layout_attributes&quot;:930,&quot;./layout_defaults&quot;:931,&quot;./plot&quot;:932,&quot;./select&quot;:933,&quot;./style&quot;:935}],930:[function(t,e,r){&quot;use strict&quot;;e.exports={barmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;group&quot;,&quot;overlay&quot;,&quot;relative&quot;],dflt:&quot;group&quot;,editType:&quot;calc&quot;},barnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;fraction&quot;,&quot;percent&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},bargap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},bargroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],931:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){function s(r,n){return a.coerce(t,e,o,r,n)}for(var l=!1,c=!1,u=!1,f={},h=s(&quot;barmode&quot;),p=0;p&lt;r.length;p++){var d=r[p];if(n.traceIs(d,&quot;bar&quot;)&amp;&amp;d.visible){if(l=!0,&quot;group&quot;===h){var g=d.xaxis+d.yaxis;f[g]&amp;&amp;(u=!0),f[g]=!0}if(d.visible&amp;&amp;&quot;histogram&quot;===d.type)&quot;category&quot;!==i.getFromId({_fullLayout:e},d[&quot;v&quot;===d.orientation?&quot;xaxis&quot;:&quot;yaxis&quot;]).type&amp;&amp;(c=!0)}}l?(&quot;overlay&quot;!==h&amp;&amp;s(&quot;barnorm&quot;),s(&quot;bargap&quot;,c&amp;&amp;!u?0:.2),s(&quot;bargroupgap&quot;)):delete e.barmode}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./layout_attributes&quot;:930}],932:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;../../components/color&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../registry&quot;),u=t(&quot;../../plots/cartesian/axes&quot;).tickText,f=t(&quot;./uniform_text&quot;),h=f.recordMinTextSize,p=f.clearMinTextSize,d=t(&quot;./style&quot;),g=t(&quot;./helpers&quot;),m=t(&quot;./constants&quot;),v=t(&quot;./attributes&quot;),y=v.text,x=v.textposition,b=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,_=m.TEXTPAD;function w(t){return t.id}function T(t){if(t.ids)return w}function k(t,e){return t&lt;e?1:-1}function M(t,e,r,n){var i;return!e.uniformtext.mode&amp;&amp;A(r)?(n&amp;&amp;(i=n()),t.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){i&amp;&amp;i()})).each(&quot;interrupt&quot;,(function(){i&amp;&amp;i()}))):t}function A(t){return t&amp;&amp;t.duration&gt;0}function S(t){return&quot;auto&quot;===t?0:t}function E(t,e){var r=Math.PI/180*e,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:t.width*i+t.height*n,y:t.width*n+t.height*i}}function C(t,e,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,c=a.anchor||&quot;end&quot;,u=&quot;end&quot;===c,f=&quot;start&quot;===c,h=((a.leftToRight||0)+1)/2,p=1-h,d=i.width,g=i.height,m=Math.abs(e-t),v=Math.abs(n-r),y=m&gt;2*_&amp;&amp;v&gt;2*_?_:0;m-=2*y,v-=2*y;var x=S(l);&quot;auto&quot;!==l||d&lt;=m&amp;&amp;g&lt;=v||!(d&gt;m||g&gt;v)||(d&gt;v||g&gt;m)&amp;&amp;d&lt;g==m&lt;v||(x+=90);var b=E(i,x),w=1;s&amp;&amp;(w=Math.min(1,m/b.x,v/b.y));var T=i.left*p+i.right*h,M=(i.top+i.bottom)/2,A=(t+_)*p+(e-_)*h,C=(r+n)/2,L=0,I=0;if(f||u){var P=(o?b.x:b.y)/2,z=o?k(t,e):k(r,n);o?f?(A=t+z*y,L=-z*P):(A=e-z*y,L=z*P):f?(C=r+z*y,I=-z*P):(C=n-z*y,I=z*P)}return{textX:T,textY:M,targetX:A,targetY:C,anchorX:L,anchorY:I,scale:w,rotate:x}}e.exports={plot:function(t,e,r,f,m,v){var w=e.xaxis,L=e.yaxis,I=t._fullLayout;m||(m={mode:I.barmode,norm:I.barmode,gap:I.bargap,groupgap:I.bargroupgap},p(&quot;bar&quot;,I));var P=a.makeTraceGroups(f,r,&quot;trace bars&quot;).each((function(r){var c=n.select(this),f=r[0].trace,p=&quot;waterfall&quot;===f.type,P=&quot;funnel&quot;===f.type,z=&quot;bar&quot;===f.type||P,O=0;p&amp;&amp;f.connector.visible&amp;&amp;&quot;between&quot;===f.connector.mode&amp;&amp;(O=f.connector.line.width/2);var D=&quot;h&quot;===f.orientation,R=A(m),F=a.ensureSingle(c,&quot;g&quot;,&quot;points&quot;),B=T(f),N=F.selectAll(&quot;g.point&quot;).data(a.identity,B);N.enter().append(&quot;g&quot;).classed(&quot;point&quot;,!0),N.exit().remove(),N.each((function(c,p){var T,A,P=n.select(this),F=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),n?[i,a]:[a,i]}(c,w,L,D),B=F[0][0],N=F[0][1],j=F[1][0],U=F[1][1],V=0==(D?N-B:U-j);if(V&amp;&amp;z&amp;&amp;g.getLineWidth(f,c)&amp;&amp;(V=!1),V||(V=!(i(B)&amp;&amp;i(N)&amp;&amp;i(j)&amp;&amp;i(U))),c.isBlank=V,V&amp;&amp;(D?N=B:U=j),O&amp;&amp;!V&amp;&amp;(D?(B-=k(B,N)*O,N+=k(B,N)*O):(j-=k(j,U)*O,U+=k(j,U)*O)),&quot;waterfall&quot;===f.type){if(!V){var q=f[c.dir].marker;T=q.line.width,A=q.color}}else T=g.getLineWidth(f,c),A=c.mc||f.marker.color;function H(t){var e=n.round(T/2%1,2);return 0===m.gap&amp;&amp;0===m.groupgap?n.round(Math.round(t)-e,2):t}if(!t._context.staticPlot){var G=s.opacity(A)&lt;1||T&gt;.01?H:function(t,e,r){return r&amp;&amp;t===e?t:Math.abs(t-e)&gt;=2?H(t):t&gt;e?Math.ceil(t):Math.floor(t)};B=G(B,N,D),N=G(N,B,D),j=G(j,U,!D),U=G(U,j,!D)}var Y=M(a.ensureSingle(P,&quot;path&quot;),I,m,v);if(Y.style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;d&quot;,isNaN((N-B)*(U-j))||V&amp;&amp;t._context.staticPlot?&quot;M0,0Z&quot;:&quot;M&quot;+B+&quot;,&quot;+j+&quot;V&quot;+U+&quot;H&quot;+N+&quot;V&quot;+j+&quot;Z&quot;).call(l.setClipUrl,e.layerClipId,t),!I.uniformtext.mode&amp;&amp;R){var W=l.makePointStyleFns(f);l.singlePointStyle(c,Y,f,W,t)}!function(t,e,r,n,i,s,c,f,p,m,v){var w,T=e.xaxis,A=e.yaxis,L=t._fullLayout;function I(e,r,n){return a.ensureSingle(e,&quot;text&quot;).text(r).attr({class:&quot;bartext bartext-&quot;+w,&quot;text-anchor&quot;:&quot;middle&quot;,&quot;data-notex&quot;:1}).call(l.font,n).call(o.convertToTspans,t)}var P=n[0].trace,z=&quot;h&quot;===P.orientation,O=function(t,e,r,n,i){var o,s=e[0].trace;o=s.texttemplate?function(t,e,r,n,i){var o=e[0].trace,s=a.castOption(o,r,&quot;texttemplate&quot;);if(!s)return&quot;&quot;;var l,c,f,h,p=&quot;waterfall&quot;===o.type,d=&quot;funnel&quot;===o.type;&quot;h&quot;===o.orientation?(l=&quot;y&quot;,c=i,f=&quot;x&quot;,h=n):(l=&quot;x&quot;,c=n,f=&quot;y&quot;,h=i);function g(t){return u(h,+t,!0).text}var m=e[r],v={};v.label=m.p,v.labelLabel=v[l+&quot;Label&quot;]=(y=m.p,u(c,y,!0).text);var y;var x=a.castOption(o,m.i,&quot;text&quot;);(0===x||x)&amp;&amp;(v.text=x);v.value=m.s,v.valueLabel=v[f+&quot;Label&quot;]=g(m.s);var _={};b(_,o,m.i),p&amp;&amp;(v.delta=+m.rawS||m.s,v.deltaLabel=g(v.delta),v.final=m.v,v.finalLabel=g(v.final),v.initial=v.final-v.delta,v.initialLabel=g(v.initial));d&amp;&amp;(v.value=m.s,v.valueLabel=g(v.value),v.percentInitial=m.begR,v.percentInitialLabel=a.formatPercent(m.begR),v.percentPrevious=m.difR,v.percentPreviousLabel=a.formatPercent(m.difR),v.percentTotal=m.sumR,v.percenTotalLabel=a.formatPercent(m.sumR));var w=a.castOption(o,m.i,&quot;customdata&quot;);w&amp;&amp;(v.customdata=w);return a.texttemplateString(s,v,t._d3locale,_,v,o._meta||{})}(t,e,r,n,i):s.textinfo?function(t,e,r,n){var i=t[0].trace,o=&quot;h&quot;===i.orientation,s=&quot;waterfall&quot;===i.type,l=&quot;funnel&quot;===i.type;function c(t){return u(o?r:n,+t,!0).text}var f,h=i.textinfo,p=t[e],d=h.split(&quot;+&quot;),g=[],m=function(t){return-1!==d.indexOf(t)};m(&quot;label&quot;)&amp;&amp;g.push((v=t[e].p,u(o?n:r,v,!0).text));var v;m(&quot;text&quot;)&amp;&amp;(0===(f=a.castOption(i,p.i,&quot;text&quot;))||f)&amp;&amp;g.push(f);if(s){var y=+p.rawS||p.s,x=p.v,b=x-y;m(&quot;initial&quot;)&amp;&amp;g.push(c(b)),m(&quot;delta&quot;)&amp;&amp;g.push(c(y)),m(&quot;final&quot;)&amp;&amp;g.push(c(x))}if(l){m(&quot;value&quot;)&amp;&amp;g.push(c(p.s));var _=0;m(&quot;percent initial&quot;)&amp;&amp;_++,m(&quot;percent previous&quot;)&amp;&amp;_++,m(&quot;percent total&quot;)&amp;&amp;_++;var w=_&gt;1;m(&quot;percent initial&quot;)&amp;&amp;(f=a.formatPercent(p.begR),w&amp;&amp;(f+=&quot; of initial&quot;),g.push(f)),m(&quot;percent previous&quot;)&amp;&amp;(f=a.formatPercent(p.difR),w&amp;&amp;(f+=&quot; of previous&quot;),g.push(f)),m(&quot;percent total&quot;)&amp;&amp;(f=a.formatPercent(p.sumR),w&amp;&amp;(f+=&quot; of total&quot;),g.push(f))}return g.join(&quot;&lt;br&gt;&quot;)}(e,r,n,i):g.getValue(s.text,r);return g.coerceString(y,o)}(L,n,i,T,A);w=function(t,e){var r=g.getValue(t.textposition,e);return g.coerceEnumerated(x,r)}(P,i);var D=&quot;stack&quot;===m.mode||&quot;relative&quot;===m.mode,R=n[i],F=!D||R._outmost;if(!O||&quot;none&quot;===w||(R.isBlank||s===c||f===p)&amp;&amp;(&quot;auto&quot;===w||&quot;inside&quot;===w))return void r.select(&quot;text&quot;).remove();var B=L.font,N=d.getBarColor(n[i],P),j=d.getInsideTextFont(P,i,B,N),U=d.getOutsideTextFont(P,i,B),V=r.datum();z?&quot;log&quot;===T.type&amp;&amp;V.s0&lt;=0&amp;&amp;(s=T.range[0]&lt;T.range[1]?0:T._length):&quot;log&quot;===A.type&amp;&amp;V.s0&lt;=0&amp;&amp;(f=A.range[0]&lt;A.range[1]?A._length:0);var q,H,G,Y,W,X=Math.abs(c-s)-2*_,Z=Math.abs(p-f)-2*_;&quot;outside&quot;===w&amp;&amp;(F||R.hasB||(w=&quot;inside&quot;));if(&quot;auto&quot;===w)if(F){w=&quot;inside&quot;,W=a.ensureUniformFontSize(t,j),q=I(r,O,W),H=l.bBox(q.node()),G=H.width,Y=H.height;var J=G&lt;=X&amp;&amp;Y&lt;=Z,K=G&lt;=Z&amp;&amp;Y&lt;=X,Q=z?X&gt;=G*(Z/Y):Z&gt;=Y*(X/G);G&gt;0&amp;&amp;Y&gt;0&amp;&amp;(J||K||Q)?w=&quot;inside&quot;:(w=&quot;outside&quot;,q.remove(),q=null)}else w=&quot;inside&quot;;if(!q){W=a.ensureUniformFontSize(t,&quot;outside&quot;===w?U:j);var $=(q=I(r,O,W)).attr(&quot;transform&quot;);if(q.attr(&quot;transform&quot;,&quot;&quot;),H=l.bBox(q.node()),G=H.width,Y=H.height,q.attr(&quot;transform&quot;,$),G&lt;=0||Y&lt;=0)return void q.remove()}var tt,et,rt=P.textangle;&quot;outside&quot;===w?(et=&quot;both&quot;===P.constraintext||&quot;outside&quot;===P.constraintext,tt=function(t,e,r,n,i,a){var o,s=!!a.isHorizontal,l=!!a.constrained,c=a.angle||0,u=i.width,f=i.height,h=Math.abs(e-t),p=Math.abs(n-r);o=s?p&gt;2*_?_:0:h&gt;2*_?_:0;var d=1;l&amp;&amp;(d=s?Math.min(1,p/f):Math.min(1,h/u));var g=S(c),m=E(i,g),v=(s?m.x:m.y)/2,y=(i.left+i.right)/2,x=(i.top+i.bottom)/2,b=(t+e)/2,w=(r+n)/2,T=0,M=0,A=s?k(e,t):k(r,n);s?(b=e-A*o,T=A*v):(w=n+A*o,M=-A*v);return{textX:y,textY:x,targetX:b,targetY:w,anchorX:T,anchorY:M,scale:d,rotate:g}}(s,c,f,p,H,{isHorizontal:z,constrained:et,angle:rt})):(et=&quot;both&quot;===P.constraintext||&quot;inside&quot;===P.constraintext,tt=C(s,c,f,p,H,{isHorizontal:z,constrained:et,angle:rt,anchor:P.insidetextanchor}));tt.fontSize=W.size,h(P.type,tt,L),R.transform=tt,M(q,L,m,v).attr(&quot;transform&quot;,a.getTextTransform(tt))}(t,e,P,r,p,B,N,j,U,m,v),e.layerClipId&amp;&amp;l.hideOutsideRangePoint(c,P.select(&quot;text&quot;),w,L,f.xcalendar,f.ycalendar)}));var j=!1===f.cliponaxis;l.setClipUrl(c,j?null:e.layerClipId,t)}));c.getComponentMethod(&quot;errorbars&quot;,&quot;plot&quot;)(t,P,e,m)},toMoveInsideBar:C}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../components/fx/helpers&quot;:679,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./attributes&quot;:921,&quot;./constants&quot;:923,&quot;./helpers&quot;:927,&quot;./style&quot;:935,&quot;./uniform_text&quot;:937,d3:169,&quot;fast-isnumeric&quot;:241}],933:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i){var a=e.c2p(n?t.s0:t.p0,!0),o=e.c2p(n?t.s1:t.p1,!0),s=r.c2p(n?t.p0:t.s0,!0),l=r.c2p(n?t.p1:t.s1,!0);return i?[(a+o)/2,(s+l)/2]:n?[o,(s+l)/2]:[(a+o)/2,l]}e.exports=function(t,e){var r,i=t.cd,a=t.xaxis,o=t.yaxis,s=i[0].trace,l=&quot;funnel&quot;===s.type,c=&quot;h&quot;===s.orientation,u=[];if(!1===e)for(r=0;r&lt;i.length;r++)i[r].selected=0;else for(r=0;r&lt;i.length;r++){var f=i[r],h=&quot;ct&quot;in f?f.ct:n(f,a,o,c,l);e.contains(h,!1,r,t)?(u.push({pointNumber:r,x:a.c2d(f.x),y:o.c2d(f.y)}),f.selected=1):f.selected=0}return u}},{}],934:[function(t,e,r){&quot;use strict&quot;;e.exports=a;var n=t(&quot;../../lib&quot;).distinctVals,i=t(&quot;../../constants/numerical&quot;).BADNUM;function a(t,e){this.traces=t,this.sepNegVal=e.sepNegVal,this.overlapNoMerge=e.overlapNoMerge;for(var r=1/0,a=[],o=0;o&lt;t.length;o++){for(var s=t[o],l=0;l&lt;s.length;l++){var c=s[l];c.p!==i&amp;&amp;a.push(c.p)}s[0]&amp;&amp;s[0].width1&amp;&amp;(r=Math.min(s[0].width1,r))}this.positions=a;var u=n(a,{unitMinDiff:e.unitMinDiff});this.distinctPositions=u.vals,1===u.vals.length&amp;&amp;r!==1/0?this.minDiff=r:this.minDiff=Math.min(u.minDiff,r),this.binWidth=this.minDiff,this.bins={}}a.prototype.put=function(t,e){var r=this.getLabel(t,e),n=this.bins[r]||0;return this.bins[r]=n+e,n},a.prototype.get=function(t,e){var r=this.getLabel(t,e);return this.bins[r]||0},a.prototype.getLabel=function(t,e){return(e&lt;0&amp;&amp;this.sepNegVal?&quot;v&quot;:&quot;^&quot;)+(this.overlapNoMerge?t:Math.round(t/this.binWidth))}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778}],935:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../registry&quot;),l=t(&quot;./uniform_text&quot;).resizeText,c=t(&quot;./attributes&quot;),u=c.textfont,f=c.insidetextfont,h=c.outsidetextfont,p=t(&quot;./helpers&quot;);function d(t,e,r){a.pointStyle(t.selectAll(&quot;path&quot;),e,r),g(t,e,r)}function g(t,e,r){t.selectAll(&quot;text&quot;).each((function(t){var i=n.select(this),s=o.ensureUniformFontSize(r,m(i,t,e,r));a.font(i,s)}))}function m(t,e,r,n){var i=n._fullLayout.font,a=r.textfont;if(t.classed(&quot;bartext-inside&quot;)){var o=_(e,r);a=y(r,e.i,i,o)}else t.classed(&quot;bartext-outside&quot;)&amp;&amp;(a=x(r,e.i,i));return a}function v(t,e,r){return b(u,t.textfont,e,r)}function y(t,e,r,n){var a=v(t,e,r);return(void 0===t._input.textfont||void 0===t._input.textfont.color||Array.isArray(t.textfont.color)&amp;&amp;void 0===t.textfont.color[e])&amp;&amp;(a={color:i.contrast(n),family:a.family,size:a.size}),b(f,t.insidetextfont,e,a)}function x(t,e,r){var n=v(t,e,r);return b(h,t.outsidetextfont,e,n)}function b(t,e,r,n){e=e||{};var i=p.getValue(e.family,r),a=p.getValue(e.size,r),o=p.getValue(e.color,r);return{family:p.coerceString(t.family,i,n.family),size:p.coerceNumber(t.size,a,n.size),color:p.coerceColor(t.color,o,n.color)}}function _(t,e){return&quot;waterfall&quot;===e.type?e[t.dir].marker.color:t.mc||e.marker.color}e.exports={style:function(t){var e=n.select(t).selectAll(&quot;g.barlayer&quot;).selectAll(&quot;g.trace&quot;);l(t,e,&quot;bar&quot;);var r=e.size(),i=t._fullLayout;e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})).each((function(t){(&quot;stack&quot;===i.barmode&amp;&amp;r&gt;1||0===i.bargap&amp;&amp;0===i.bargroupgap&amp;&amp;!t[0].trace.marker.line.width)&amp;&amp;n.select(this).attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)})),e.selectAll(&quot;g.points&quot;).each((function(e){d(n.select(this),e[0].trace,t)})),s.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(e)},styleTextPoints:g,styleOnSelect:function(t,e,r){var i=e[0].trace;i.selectedpoints?function(t,e,r){a.selectedPointStyle(t.selectAll(&quot;path&quot;),e),function(t,e,r){t.each((function(t){var i,s=n.select(this);if(t.selected){i=o.ensureUniformFontSize(r,m(s,t,e,r));var l=e.selected.textfont&amp;&amp;e.selected.textfont.color;l&amp;&amp;(i.color=l),a.font(s,i)}else a.selectedTextStyle(s,e)}))}(t.selectAll(&quot;text&quot;),e,r)}(r,i,t):(d(r,i,t),s.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(r))},getInsideTextFont:y,getOutsideTextFont:x,getBarColor:_,resizeText:l}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:921,&quot;./helpers&quot;:927,&quot;./uniform_text&quot;:937,d3:169}],936:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;);e.exports=function(t,e,r,o,s){r(&quot;marker.color&quot;,o),i(t,&quot;marker&quot;)&amp;&amp;a(t,e,s,r,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),r(&quot;marker.line.color&quot;,n.defaultLine),i(t,&quot;marker.line&quot;)&amp;&amp;a(t,e,s,r,{prefix:&quot;marker.line.&quot;,cLetter:&quot;c&quot;}),r(&quot;marker.line.width&quot;),r(&quot;marker.opacity&quot;),r(&quot;selected.marker.color&quot;),r(&quot;unselected.marker.color&quot;)}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654}],937:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;);function a(t){return&quot;_&quot;+t+&quot;Text_minsize&quot;}e.exports={recordMinTextSize:function(t,e,r){if(r.uniformtext.mode){var n=a(t),i=r.uniformtext.minsize,o=e.scale*e.fontSize;e.hide=o&lt;i,r[n]=r[n]||1/0,e.hide||(r[n]=Math.min(r[n],Math.max(o,i)))}},clearMinTextSize:function(t,e){e[a(t)]=void 0},resizeText:function(t,e,r){var a=t._fullLayout,o=a[&quot;_&quot;+r+&quot;Text_minsize&quot;];if(o){var s,l=&quot;hide&quot;===a.uniformtext.mode;switch(r){case&quot;funnelarea&quot;:case&quot;pie&quot;:case&quot;sunburst&quot;:s=&quot;g.slice&quot;;break;case&quot;treemap&quot;:s=&quot;g.slice, g.pathbar&quot;;break;default:s=&quot;g.points &gt; g.point&quot;}e.selectAll(s).each((function(t){var e=t.transform;e&amp;&amp;(e.scale=l&amp;&amp;e.hide?0:o/e.fontSize,n.select(this).select(&quot;text&quot;).attr(&quot;transform&quot;,i.getTextTransform(e)))}))}}}},{&quot;../../lib&quot;:778,d3:169}],938:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../scatterpolar/attributes&quot;),o=t(&quot;../bar/attributes&quot;);e.exports={r:a.r,theta:a.theta,r0:a.r0,dr:a.dr,theta0:a.theta0,dtheta:a.dtheta,thetaunit:a.thetaunit,base:i({},o.base,{}),offset:i({},o.offset,{}),width:i({},o.width,{}),text:i({},o.text,{}),hovertext:i({},o.hovertext,{}),marker:o.marker,hoverinfo:a.hoverinfo,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatterpolar/attributes&quot;:1261}],939:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,i=t(&quot;../../components/colorscale/calc&quot;),a=t(&quot;../bar/arrays_to_calcdata&quot;),o=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions,s=t(&quot;../scatter/calc_selection&quot;),l=t(&quot;../../registry&quot;).traceIs,c=t(&quot;../../lib&quot;).extendFlat;e.exports={calc:function(t,e){for(var r=t._fullLayout,o=e.subplot,l=r[o].radialaxis,c=r[o].angularaxis,u=l.makeCalcdata(e,&quot;r&quot;),f=c.makeCalcdata(e,&quot;theta&quot;),h=e._length,p=new Array(h),d=u,g=f,m=0;m&lt;h;m++)p[m]={p:g[m],s:d[m]};function v(t){var r=e[t];void 0!==r&amp;&amp;(e[&quot;_&quot;+t]=Array.isArray(r)?c.makeCalcdata(e,t):c.d2c(r,e.thetaunit))}return&quot;linear&quot;===c.type&amp;&amp;(v(&quot;width&quot;),v(&quot;offset&quot;)),n(e,&quot;marker&quot;)&amp;&amp;i(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),n(e,&quot;marker.line&quot;)&amp;&amp;i(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}),a(p,e),s(p,e),p},crossTraceCalc:function(t,e,r){for(var n=t.calcdata,i=[],a=0;a&lt;n.length;a++){var s=n[a],u=s[0].trace;!0===u.visible&amp;&amp;l(u,&quot;bar&quot;)&amp;&amp;u.subplot===r&amp;&amp;i.push(s)}var f=c({},e.radialaxis,{_id:&quot;x&quot;}),h=e.angularaxis;o(t,h,f,i,{mode:e.barmode,norm:e.barnorm,gap:e.bargap,groupgap:e.bargroupgap})}}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../bar/arrays_to_calcdata&quot;:920,&quot;../bar/cross_trace_calc&quot;:924,&quot;../scatter/calc_selection&quot;:1189}],940:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatterpolar/defaults&quot;).handleRThetaDefaults,a=t(&quot;../bar/style_defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,s,l)?(l(&quot;thetaunit&quot;),l(&quot;base&quot;),l(&quot;offset&quot;),l(&quot;width&quot;),l(&quot;text&quot;),l(&quot;hovertext&quot;),l(&quot;hovertemplate&quot;),a(t,e,l,r,s),n.coerceSelectionMarkerOpacity(e,l)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../bar/style_defaults&quot;:936,&quot;../scatterpolar/defaults&quot;:1263,&quot;./attributes&quot;:938}],941:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../bar/hover&quot;).getTraceColor,o=i.fillText,s=t(&quot;../scatterpolar/hover&quot;).makeHoverPointText,l=t(&quot;../../plots/polar/helpers&quot;).isPtInsidePolygon;e.exports=function(t,e,r){var c=t.cd,u=c[0].trace,f=t.subplot,h=f.radialAxis,p=f.angularAxis,d=f.vangles,g=d?l:i.isPtInsideSector,m=t.maxHoverDistance,v=p._period||2*Math.PI,y=Math.abs(h.g2p(Math.sqrt(e*e+r*r))),x=Math.atan2(r,e);h.range[0]&gt;h.range[1]&amp;&amp;(x+=Math.PI);if(n.getClosest(c,(function(t){return g(y,x,[t.rp0,t.rp1],[t.thetag0,t.thetag1],d)?m+Math.min(1,Math.abs(t.thetag1-t.thetag0)/v)-1+(t.rp1-y)/(t.rp1-t.rp0)-1:1/0}),t),!1!==t.index){var b=c[t.index];t.x0=t.x1=b.ct[0],t.y0=t.y1=b.ct[1];var _=i.extendFlat({},b,{r:b.s,theta:b.p});return o(b,u,t),s(_,u,f,t),t.hovertemplate=u.hovertemplate,t.color=a(u,b),t.xLabelVal=t.yLabelVal=void 0,b.s&lt;0&amp;&amp;(t.idealAlign=&quot;left&quot;),[t]}}},{&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../plots/polar/helpers&quot;:893,&quot;../bar/hover&quot;:928,&quot;../scatterpolar/hover&quot;:1265}],942:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;barpolar&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;polar&quot;,&quot;bar&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;../scatterpolar/format_labels&quot;),style:t(&quot;../bar/style&quot;).style,styleOnSelect:t(&quot;../bar/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../bar/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:894,&quot;../bar/select&quot;:933,&quot;../bar/style&quot;:935,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatterpolar/format_labels&quot;:1264,&quot;./attributes&quot;:938,&quot;./calc&quot;:939,&quot;./defaults&quot;:940,&quot;./hover&quot;:941,&quot;./layout_attributes&quot;:943,&quot;./layout_defaults&quot;:944,&quot;./plot&quot;:945}],943:[function(t,e,r){&quot;use strict&quot;;e.exports={barmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;overlay&quot;],dflt:&quot;stack&quot;,editType:&quot;calc&quot;},bargap:{valType:&quot;number&quot;,dflt:.1,min:0,max:1,editType:&quot;calc&quot;}}},{}],944:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a,o={};function s(r,o){return n.coerce(t[a]||{},e[a],i,r,o)}for(var l=0;l&lt;r.length;l++){var c=r[l];&quot;barpolar&quot;===c.type&amp;&amp;!0===c.visible&amp;&amp;(o[a=c.subplot]||(s(&quot;barmode&quot;),s(&quot;bargap&quot;),o[a]=1))}}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:943}],945:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../plots/polar/helpers&quot;);e.exports=function(t,e,r){var l=e.xaxis,c=e.yaxis,u=e.radialAxis,f=e.angularAxis,h=function(t){var e=t.cxx,r=t.cyy;if(t.vangles)return function(n,i,o,l){var c,u;a.angleDelta(o,l)&gt;0?(c=o,u=l):(c=l,u=o);var f=[s.findEnclosingVertexAngles(c,t.vangles)[0],(c+u)/2,s.findEnclosingVertexAngles(u,t.vangles)[1]];return s.pathPolygonAnnulus(n,i,c,u,f,e,r)};return function(t,n,i,o){return a.pathAnnulus(t,n,i,o,e,r)}}(e),p=e.layers.frontplot.select(&quot;g.barlayer&quot;);a.makeTraceGroups(p,r,&quot;trace bars&quot;).each((function(){var r=n.select(this),s=a.ensureSingle(r,&quot;g&quot;,&quot;points&quot;).selectAll(&quot;g.point&quot;).data(a.identity);s.enter().append(&quot;g&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).style(&quot;stroke-miterlimit&quot;,2).classed(&quot;point&quot;,!0),s.exit().remove(),s.each((function(t){var e,r=n.select(this),o=t.rp0=u.c2p(t.s0),s=t.rp1=u.c2p(t.s1),p=t.thetag0=f.c2g(t.p0),d=t.thetag1=f.c2g(t.p1);if(i(o)&amp;&amp;i(s)&amp;&amp;i(p)&amp;&amp;i(d)&amp;&amp;o!==s&amp;&amp;p!==d){var g=u.c2g(t.s1),m=(p+d)/2;t.ct=[l.c2p(g*Math.cos(m)),c.c2p(g*Math.sin(m))],e=h(o,s,p,d)}else e=&quot;M0,0Z&quot;;a.ensureSingle(r,&quot;path&quot;).attr(&quot;d&quot;,e)})),o.setClipUrl(r,e._hasClipOnAxisFalse?e.clipIds.forTraces:null,t)}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../plots/polar/helpers&quot;:893,d3:169,&quot;fast-isnumeric&quot;:241}],946:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../bar/attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../lib/extend&quot;).extendFlat,l=n.marker,c=l.line;e.exports={y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},x0:{valType:&quot;any&quot;,editType:&quot;calc+clearAxisTypes&quot;},y0:{valType:&quot;any&quot;,editType:&quot;calc+clearAxisTypes&quot;},dx:{valType:&quot;number&quot;,editType:&quot;calc&quot;},dy:{valType:&quot;number&quot;,editType:&quot;calc&quot;},xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,name:{valType:&quot;string&quot;,editType:&quot;calc+clearAxisTypes&quot;},q1:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},median:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},q3:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},lowerfence:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},upperfence:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},notched:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},notchwidth:{valType:&quot;number&quot;,min:0,max:.5,dflt:.25,editType:&quot;calc&quot;},notchspan:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},boxpoints:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;outliers&quot;,&quot;suspectedoutliers&quot;,!1],editType:&quot;calc&quot;},jitter:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},pointpos:{valType:&quot;number&quot;,min:-2,max:2,editType:&quot;calc&quot;},boxmean:{valType:&quot;enumerated&quot;,values:[!0,&quot;sd&quot;,!1],editType:&quot;calc&quot;},mean:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sd:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc+clearAxisTypes&quot;},quartilemethod:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;exclusive&quot;,&quot;inclusive&quot;],dflt:&quot;linear&quot;,editType:&quot;calc&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},marker:{outliercolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0, 0, 0, 0)&quot;,editType:&quot;style&quot;},symbol:s({},l.symbol,{arrayOk:!1,editType:&quot;plot&quot;}),opacity:s({},l.opacity,{arrayOk:!1,dflt:1,editType:&quot;style&quot;}),size:s({},l.size,{arrayOk:!1,editType:&quot;calc&quot;}),color:s({},l.color,{arrayOk:!1,editType:&quot;style&quot;}),line:{color:s({},c.color,{arrayOk:!1,dflt:a.defaultLine,editType:&quot;style&quot;}),width:s({},c.width,{arrayOk:!1,dflt:0,editType:&quot;style&quot;}),outliercolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},outlierwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;plot&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},editType:&quot;plot&quot;},fillcolor:n.fillcolor,whiskerwidth:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;calc&quot;},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup,selected:{marker:n.selected.marker,editType:&quot;style&quot;},unselected:{marker:n.unselected.marker,editType:&quot;style&quot;},text:s({},n.text,{}),hovertext:s({},n.hovertext,{}),hovertemplate:o({}),hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;boxes&quot;,&quot;points&quot;],dflt:&quot;boxes+points&quot;,editType:&quot;style&quot;}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib/extend&quot;:768,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatter/attributes&quot;:1187}],947:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/cartesian/align_period&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=o._;e.exports=function(t,e){var r,c,y,x,b,_,w,T=t._fullLayout,k=i.getFromId(t,e.xaxis||&quot;x&quot;),M=i.getFromId(t,e.yaxis||&quot;y&quot;),A=[],S=&quot;violin&quot;===e.type?&quot;_numViolins&quot;:&quot;_numBoxes&quot;;&quot;h&quot;===e.orientation?(y=k,x=&quot;x&quot;,b=M,_=&quot;y&quot;,w=!!e.yperiodalignment):(y=M,x=&quot;y&quot;,b=k,_=&quot;x&quot;,w=!!e.xperiodalignment);var E,C,L,I,P,z,O=function(t,e,r,i){var s,l=e+&quot;0&quot;in t,c=&quot;d&quot;+e in t;if(e in t||l&amp;&amp;c){var u=r.makeCalcdata(t,e);return[a(t,r,e,u),u]}s=l?t[e+&quot;0&quot;]:&quot;name&quot;in t&amp;&amp;(&quot;category&quot;===r.type||n(t.name)&amp;&amp;-1!==[&quot;linear&quot;,&quot;log&quot;].indexOf(r.type)||o.isDateTime(t.name)&amp;&amp;&quot;date&quot;===r.type)?t.name:i;for(var f=&quot;multicategory&quot;===r.type?r.r2c_just_indices(s):r.d2c(s,0,t[e+&quot;calendar&quot;]),h=t._length,p=new Array(h),d=0;d&lt;h;d++)p[d]=f;return[p]}(e,_,b,T[S]),D=O[0],R=O[1],F=o.distinctVals(D),B=F.vals,N=F.minDiff/2,j=&quot;all&quot;===(e.boxpoints||e.points)?o.identity:function(t){return t.v&lt;E.lf||t.v&gt;E.uf};if(e._hasPreCompStats){var U=e[x],V=function(t){return y.d2c((e[t]||[])[r])},q=1/0,H=-1/0;for(r=0;r&lt;e._length;r++){var G=D[r];if(n(G)){if((E={}).pos=E[_]=G,w&amp;&amp;R&amp;&amp;(E.orig_p=R[r]),E.q1=V(&quot;q1&quot;),E.med=V(&quot;median&quot;),E.q3=V(&quot;q3&quot;),C=[],U&amp;&amp;o.isArrayOrTypedArray(U[r]))for(c=0;c&lt;U[r].length;c++)(z=y.d2c(U[r][c]))!==s&amp;&amp;(u(P={v:z,i:[r,c]},e,[r,c]),C.push(P));if(E.pts=C.sort(f),I=(L=E[x]=C.map(h)).length,E.med!==s&amp;&amp;E.q1!==s&amp;&amp;E.q3!==s&amp;&amp;E.med&gt;=E.q1&amp;&amp;E.q3&gt;=E.med){var Y=V(&quot;lowerfence&quot;);E.lf=Y!==s&amp;&amp;Y&lt;=E.q1?Y:p(E,L,I);var W=V(&quot;upperfence&quot;);E.uf=W!==s&amp;&amp;W&gt;=E.q3?W:d(E,L,I);var X=V(&quot;mean&quot;);E.mean=X!==s?X:I?o.mean(L,I):(E.q1+E.q3)/2;var Z=V(&quot;sd&quot;);E.sd=X!==s&amp;&amp;Z&gt;=0?Z:I?o.stdev(L,I,E.mean):E.q3-E.q1,E.lo=g(E),E.uo=m(E);var J=V(&quot;notchspan&quot;);J=J!==s&amp;&amp;J&gt;0?J:v(E,I),E.ln=E.med-J,E.un=E.med+J;var K=E.lf,Q=E.uf;e.boxpoints&amp;&amp;L.length&amp;&amp;(K=Math.min(K,L[0]),Q=Math.max(Q,L[I-1])),e.notched&amp;&amp;(K=Math.min(K,E.ln),Q=Math.max(Q,E.un)),E.min=K,E.max=Q}else{var $;o.warn([&quot;Invalid input - make sure that q1 &lt;= median &lt;= q3&quot;,&quot;q1 = &quot;+E.q1,&quot;median = &quot;+E.med,&quot;q3 = &quot;+E.q3].join(&quot;\n&quot;)),$=E.med!==s?E.med:E.q1!==s?E.q3!==s?(E.q1+E.q3)/2:E.q1:E.q3!==s?E.q3:0,E.med=$,E.q1=E.q3=$,E.lf=E.uf=$,E.mean=E.sd=$,E.ln=E.un=$,E.min=E.max=$}q=Math.min(q,E.min),H=Math.max(H,E.max),E.pts2=C.filter(j),A.push(E)}}e._extremes[y._id]=i.findExtremes(y,[q,H],{padded:!0})}else{var tt=y.makeCalcdata(e,x),et=function(t,e){for(var r=t.length,n=new Array(r+1),i=0;i&lt;r;i++)n[i]=t[i]-e;return n[r]=t[r-1]+e,n}(B,N),rt=B.length,nt=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=[];return e}(rt);for(r=0;r&lt;e._length;r++)if(z=tt[r],n(z)){var it=o.findBin(D[r],et);it&gt;=0&amp;&amp;it&lt;rt&amp;&amp;(u(P={v:z,i:r},e,r),nt[it].push(P))}var at=1/0,ot=-1/0,st=e.quartilemethod,lt=&quot;exclusive&quot;===st,ct=&quot;inclusive&quot;===st;for(r=0;r&lt;rt;r++)if(nt[r].length&gt;0){var ut,ft;if((E={}).pos=E[_]=B[r],C=E.pts=nt[r].sort(f),I=(L=E[x]=C.map(h)).length,E.min=L[0],E.max=L[I-1],E.mean=o.mean(L,I),E.sd=o.stdev(L,I,E.mean),E.med=o.interp(L,.5),I%2&amp;&amp;(lt||ct))lt?(ut=L.slice(0,I/2),ft=L.slice(I/2+1)):ct&amp;&amp;(ut=L.slice(0,I/2+1),ft=L.slice(I/2)),E.q1=o.interp(ut,.5),E.q3=o.interp(ft,.5);else E.q1=o.interp(L,.25),E.q3=o.interp(L,.75);E.lf=p(E,L,I),E.uf=d(E,L,I),E.lo=g(E),E.uo=m(E);var ht=v(E,I);E.ln=E.med-ht,E.un=E.med+ht,at=Math.min(at,E.ln),ot=Math.max(ot,E.un),E.pts2=C.filter(j),A.push(E)}e._extremes[y._id]=i.findExtremes(y,e.notched?tt.concat([at,ot]):tt,{padded:!0})}return function(t,e){if(o.isArrayOrTypedArray(e.selectedpoints))for(var r=0;r&lt;t.length;r++){for(var n=t[r].pts||[],i={},a=0;a&lt;n.length;a++)i[n[a].i]=a;o.tagSelected(n,e,i)}}(A,e),A.length&gt;0?(A[0].t={num:T[S],dPos:N,posLetter:_,valLetter:x,labels:{med:l(t,&quot;median:&quot;),min:l(t,&quot;min:&quot;),q1:l(t,&quot;q1:&quot;),q3:l(t,&quot;q3:&quot;),max:l(t,&quot;max:&quot;),mean:&quot;sd&quot;===e.boxmean?l(t,&quot;mean \xb1 \u03c3:&quot;):l(t,&quot;mean:&quot;),lf:l(t,&quot;lower fence:&quot;),uf:l(t,&quot;upper fence:&quot;)}},T[S]++,A):[{t:{empty:!0}}]};var c={text:&quot;tx&quot;,hovertext:&quot;htx&quot;};function u(t,e,r){for(var n in c)o.isArrayOrTypedArray(e[n])&amp;&amp;(Array.isArray(r)?o.isArrayOrTypedArray(e[n][r[0]])&amp;&amp;(t[c[n]]=e[n][r[0]][r[1]]):t[c[n]]=e[n][r])}function f(t,e){return t.v-e.v}function h(t){return t.v}function p(t,e,r){return 0===r?t.q1:Math.min(t.q1,e[Math.min(o.findBin(2.5*t.q1-1.5*t.q3,e,!0)+1,r-1)])}function d(t,e,r){return 0===r?t.q3:Math.max(t.q3,e[Math.max(o.findBin(2.5*t.q3-1.5*t.q1,e),0)])}function g(t){return 4*t.q1-3*t.q3}function m(t){return 4*t.q3-3*t.q1}function v(t,e){return 0===e?0:1.57*(t.q3-t.q1)/Math.sqrt(e)}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;fast-isnumeric&quot;:241}],948:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,o=[&quot;v&quot;,&quot;h&quot;];function s(t,e,r,o){var s,l,c,u=e.calcdata,f=e._fullLayout,h=o._id,p=h.charAt(0),d=[],g=0;for(s=0;s&lt;r.length;s++)for(c=u[r[s]],l=0;l&lt;c.length;l++)d.push(o.c2l(c[l].pos,!0)),g+=(c[l].pts2||[]).length;if(d.length){var m=i.distinctVals(d,{unitMinDiff:&quot;category&quot;===o.type||&quot;multicategory&quot;===o.type}),v=m.minDiff/2;n.minDtick(o,m.minDiff,m.vals[0],!0);var y=f[&quot;violin&quot;===t?&quot;_numViolins&quot;:&quot;_numBoxes&quot;],x=&quot;group&quot;===f[t+&quot;mode&quot;]&amp;&amp;y&gt;1,b=1-f[t+&quot;gap&quot;],_=1-f[t+&quot;groupgap&quot;];for(s=0;s&lt;r.length;s++){var w,T,k,M,A,S,E=(c=u[r[s]])[0].trace,C=c[0].t,L=E.width,I=E.side;if(L)w=T=M=L/2,k=0;else if(w=v,x){var P=a(f,o._id)+E.orientation,z=(f._alignmentOpts[P]||{})[E.alignmentgroup]||{},O=Object.keys(z.offsetGroups||{}).length,D=O||y;T=w*b*_/D,k=2*w*(((O?E._offsetIndex:C.num)+.5)/D-.5)*b,M=w*b/D}else T=w*b*_,k=0,M=w;C.dPos=w,C.bPos=k,C.bdPos=T,C.wHover=M;var R,F,B,N,j,U,V=k+T,q=Boolean(L);if(&quot;positive&quot;===I?(A=w*(L?1:.5),R=V,S=R=k):&quot;negative&quot;===I?(A=R=k,S=w*(L?1:.5),F=V):(A=S=w,R=F=V),(E.boxpoints||E.points)&amp;&amp;g&gt;0){var H=E.pointpos,G=E.jitter,Y=E.marker.size/2,W=0;H+G&gt;=0&amp;&amp;((W=V*(H+G))&gt;A?(q=!0,j=Y,B=W):W&gt;R&amp;&amp;(j=Y,B=A)),W&lt;=A&amp;&amp;(B=A);var X=0;H-G&lt;=0&amp;&amp;((X=-V*(H-G))&gt;S?(q=!0,U=Y,N=X):X&gt;F&amp;&amp;(U=Y,N=S)),X&lt;=S&amp;&amp;(N=S)}else B=A,N=S;var Z=new Array(c.length);for(l=0;l&lt;c.length;l++)Z[l]=c[l].pos;E._extremes[h]=n.findExtremes(o,Z,{padded:q,vpadminus:N,vpadplus:B,vpadLinearized:!0,ppadminus:{x:U,y:j}[p],ppadplus:{x:j,y:U}[p]})}}}e.exports={crossTraceCalc:function(t,e){for(var r=t.calcdata,n=e.xaxis,i=e.yaxis,a=0;a&lt;o.length;a++){for(var l=o[a],c=&quot;h&quot;===l?i:n,u=[],f=0;f&lt;r.length;f++){var h=r[f],p=h[0].t,d=h[0].trace;!0!==d.visible||&quot;box&quot;!==d.type&amp;&amp;&quot;candlestick&quot;!==d.type||p.empty||(d.orientation||&quot;v&quot;)!==l||d.xaxis!==n._id||d.yaxis!==i._id||u.push(f)}s(&quot;box&quot;,t,u,c)}},setPositionOffset:s}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/constraints&quot;:835}],949:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../scatter/period_defaults&quot;),s=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,l=t(&quot;../../plots/cartesian/axis_autotype&quot;),c=t(&quot;./attributes&quot;);function u(t,e,r,a){function o(t){var e=0;return t&amp;&amp;t.length&amp;&amp;(e+=1,n.isArrayOrTypedArray(t[0])&amp;&amp;t[0].length&amp;&amp;(e+=1)),e}function s(e){return n.validate(t[e],c[e])}var u,f=r(&quot;y&quot;),h=r(&quot;x&quot;);if(&quot;box&quot;===e.type){var p=r(&quot;q1&quot;),d=r(&quot;median&quot;),g=r(&quot;q3&quot;);e._hasPreCompStats=p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length&amp;&amp;g&amp;&amp;g.length,u=Math.min(n.minRowLength(p),n.minRowLength(d),n.minRowLength(g))}var m,v,y=o(f),x=o(h),b=y&amp;&amp;n.minRowLength(f),_=x&amp;&amp;n.minRowLength(h),w=a.calendar,T={autotypenumbers:a.autotypenumbers};if(e._hasPreCompStats)switch(String(x)+String(y)){case&quot;00&quot;:var k=s(&quot;x0&quot;)||s(&quot;dx&quot;);m=(s(&quot;y0&quot;)||s(&quot;dy&quot;))&amp;&amp;!k?&quot;h&quot;:&quot;v&quot;,v=u;break;case&quot;10&quot;:m=&quot;v&quot;,v=Math.min(u,_);break;case&quot;20&quot;:m=&quot;h&quot;,v=Math.min(u,h.length);break;case&quot;01&quot;:m=&quot;h&quot;,v=Math.min(u,b);break;case&quot;02&quot;:m=&quot;v&quot;,v=Math.min(u,f.length);break;case&quot;12&quot;:m=&quot;v&quot;,v=Math.min(u,_,f.length);break;case&quot;21&quot;:m=&quot;h&quot;,v=Math.min(u,h.length,b);break;case&quot;11&quot;:v=0;break;case&quot;22&quot;:var M,A=!1;for(M=0;M&lt;h.length;M++)if(&quot;category&quot;===l(h[M],w,T)){A=!0;break}if(A)m=&quot;v&quot;,v=Math.min(u,_,f.length);else{for(M=0;M&lt;f.length;M++)if(&quot;category&quot;===l(f[M],w,T)){A=!0;break}A?(m=&quot;h&quot;,v=Math.min(u,h.length,b)):(m=&quot;v&quot;,v=Math.min(u,_,f.length))}}else y&gt;0?(m=&quot;v&quot;,v=x&gt;0?Math.min(_,b):Math.min(b)):x&gt;0?(m=&quot;h&quot;,v=Math.min(_)):v=0;if(v){e._length=v;var S=r(&quot;orientation&quot;,m);e._hasPreCompStats?&quot;v&quot;===S&amp;&amp;0===x?(r(&quot;x0&quot;,0),r(&quot;dx&quot;,1)):&quot;h&quot;===S&amp;&amp;0===y&amp;&amp;(r(&quot;y0&quot;,0),r(&quot;dy&quot;,1)):&quot;v&quot;===S&amp;&amp;0===x?r(&quot;x0&quot;):&quot;h&quot;===S&amp;&amp;0===y&amp;&amp;r(&quot;y0&quot;),i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],a)}else e.visible=!1}function f(t,e,r,i){var a=i.prefix,o=n.coerce2(t,e,c,&quot;marker.outliercolor&quot;),s=r(&quot;marker.line.outliercolor&quot;),l=&quot;outliers&quot;;e._hasPreCompStats?l=&quot;all&quot;:(o||s)&amp;&amp;(l=&quot;suspectedoutliers&quot;);var u=r(a+&quot;points&quot;,l);u?(r(&quot;jitter&quot;,&quot;all&quot;===u?.3:0),r(&quot;pointpos&quot;,&quot;all&quot;===u?-1.5:0),r(&quot;marker.symbol&quot;),r(&quot;marker.opacity&quot;),r(&quot;marker.size&quot;),r(&quot;marker.color&quot;,e.line.color),r(&quot;marker.line.color&quot;),r(&quot;marker.line.width&quot;),&quot;suspectedoutliers&quot;===u&amp;&amp;(r(&quot;marker.line.outliercolor&quot;,e.marker.color),r(&quot;marker.line.outlierwidth&quot;)),r(&quot;selected.marker.color&quot;),r(&quot;unselected.marker.color&quot;),r(&quot;selected.marker.size&quot;),r(&quot;unselected.marker.size&quot;),r(&quot;text&quot;),r(&quot;hovertext&quot;)):delete e.marker;var f=r(&quot;hoveron&quot;);&quot;all&quot;!==f&amp;&amp;-1===f.indexOf(&quot;points&quot;)||r(&quot;hovertemplate&quot;),n.coerceSelectionMarkerOpacity(e,r)}e.exports={supplyDefaults:function(t,e,r,i){function s(r,i){return n.coerce(t,e,c,r,i)}if(u(t,e,s,i),!1!==e.visible){o(t,e,i,s);var l=e._hasPreCompStats;l&amp;&amp;(s(&quot;lowerfence&quot;),s(&quot;upperfence&quot;)),s(&quot;line.color&quot;,(t.marker||{}).color||r),s(&quot;line.width&quot;),s(&quot;fillcolor&quot;,a.addOpacity(e.line.color,.5));var h=!1;if(l){var p=s(&quot;mean&quot;),d=s(&quot;sd&quot;);p&amp;&amp;p.length&amp;&amp;(h=!0,d&amp;&amp;d.length&amp;&amp;(h=&quot;sd&quot;))}s(&quot;boxmean&quot;,h),s(&quot;whiskerwidth&quot;),s(&quot;width&quot;),s(&quot;quartilemethod&quot;);var g=!1;if(l){var m=s(&quot;notchspan&quot;);m&amp;&amp;m.length&amp;&amp;(g=!0)}else n.validate(t.notchwidth,c.notchwidth)&amp;&amp;(g=!0);s(&quot;notched&quot;,g)&amp;&amp;s(&quot;notchwidth&quot;),f(t,e,s,{prefix:&quot;box&quot;})}},crossTraceDefaults:function(t,e){var r,i;function a(t){return n.coerce(i._input,i,c,t)}for(var o=0;o&lt;t.length;o++){var l=(i=t[o]).type;&quot;box&quot;!==l&amp;&amp;&quot;violin&quot;!==l||(r=i._input,&quot;group&quot;===e[l+&quot;mode&quot;]&amp;&amp;s(r,i,e,a))}},handleSampleDefaults:u,handlePointsDefaults:f}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_autotype&quot;:829,&quot;../../registry&quot;:911,&quot;../bar/defaults&quot;:925,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:946}],950:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return e.hoverOnBox&amp;&amp;(t.hoverOnBox=e.hoverOnBox),&quot;xVal&quot;in e&amp;&amp;(t.x=e.xVal),&quot;yVal&quot;in e&amp;&amp;(t.y=e.yVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],951:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=i.fillText;function l(t,e,r,s){var l,c,u,f,h,p,d,g,m,v,y,x,b,_,w=t.cd,T=t.xa,k=t.ya,M=w[0].trace,A=w[0].t,S=&quot;violin&quot;===M.type,E=[],C=A.bdPos,L=A.wHover,I=function(t){return u.c2l(t.pos)+A.bPos-u.c2l(p)};S&amp;&amp;&quot;both&quot;!==M.side?(&quot;positive&quot;===M.side&amp;&amp;(m=function(t){var e=I(t);return a.inbox(e,e+L,v)},x=C,b=0),&quot;negative&quot;===M.side&amp;&amp;(m=function(t){var e=I(t);return a.inbox(e-L,e,v)},x=0,b=C)):(m=function(t){var e=I(t);return a.inbox(e-L,e+L,v)},x=b=C),_=S?function(t){return a.inbox(t.span[0]-h,t.span[1]-h,v)}:function(t){return a.inbox(t.min-h,t.max-h,v)},&quot;h&quot;===M.orientation?(h=e,p=r,d=_,g=m,l=&quot;y&quot;,u=k,c=&quot;x&quot;,f=T):(h=r,p=e,d=m,g=_,l=&quot;x&quot;,u=T,c=&quot;y&quot;,f=k);var P=Math.min(1,C/Math.abs(u.r2c(u.range[1])-u.r2c(u.range[0])));function z(t){return(d(t)+g(t))/2}v=t.maxHoverDistance-P,y=t.maxSpikeDistance-P;var O=a.getDistanceFunction(s,d,g,z);if(a.getClosest(w,O,t),!1===t.index)return[];var D=w[t.index],R=M.line.color,F=(M.marker||{}).color;o.opacity(R)&amp;&amp;M.line.width?t.color=R:o.opacity(F)&amp;&amp;M.boxpoints?t.color=F:t.color=M.fillcolor,t[l+&quot;0&quot;]=u.c2p(D.pos+A.bPos-b,!0),t[l+&quot;1&quot;]=u.c2p(D.pos+A.bPos+x,!0),t[l+&quot;LabelVal&quot;]=void 0!==D.orig_p?D.orig_p:D.pos;var B=l+&quot;Spike&quot;;t.spikeDistance=z(D)*y/v,t[B]=u.c2p(D.pos,!0);var N={},j=[&quot;med&quot;,&quot;q1&quot;,&quot;q3&quot;,&quot;min&quot;,&quot;max&quot;];(M.boxmean||(M.meanline||{}).visible)&amp;&amp;j.push(&quot;mean&quot;),(M.boxpoints||M.points)&amp;&amp;j.push(&quot;lf&quot;,&quot;uf&quot;);for(var U=0;U&lt;j.length;U++){var V=j[U];if(V in D&amp;&amp;!(D[V]in N)){N[D[V]]=!0;var q=D[V],H=f.c2p(q,!0),G=i.extendFlat({},t);G.attr=V,G[c+&quot;0&quot;]=G[c+&quot;1&quot;]=H,G[c+&quot;LabelVal&quot;]=q,G[c+&quot;Label&quot;]=(A.labels?A.labels[V]+&quot; &quot;:&quot;&quot;)+n.hoverLabelText(f,q),G.hoverOnBox=!0,&quot;mean&quot;===V&amp;&amp;&quot;sd&quot;in D&amp;&amp;&quot;sd&quot;===M.boxmean&amp;&amp;(G[c+&quot;err&quot;]=D.sd),t.name=&quot;&quot;,t.spikeDistance=void 0,t[B]=void 0,G.hovertemplate=!1,E.push(G)}}return E}function c(t,e,r){for(var n,o,l,c=t.cd,u=t.xa,f=t.ya,h=c[0].trace,p=u.c2p(e),d=f.c2p(r),g=a.quadrature((function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(u.c2p(t.x)-p)-e,1-3/e)}),(function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(f.c2p(t.y)-d)-e,1-3/e)})),m=!1,v=0;v&lt;c.length;v++){o=c[v];for(var y=0;y&lt;(o.pts||[]).length;y++){var x=g(l=o.pts[y]);x&lt;=t.distance&amp;&amp;(t.distance=x,m=[v,y])}}if(!m)return!1;l=(o=c[m[0]]).pts[m[1]];var b=u.c2p(l.x,!0),_=f.c2p(l.y,!0),w=l.mrc||1;n=i.extendFlat({},t,{index:l.i,color:(h.marker||{}).color,name:h.name,x0:b-w,x1:b+w,y0:_-w,y1:_+w,spikeDistance:t.distance,hovertemplate:h.hovertemplate});var T,k=o.orig_p,M=void 0!==k?k:o.pos;return&quot;h&quot;===h.orientation?(T=f,n.xLabelVal=l.x,n.yLabelVal=M):(T=u,n.xLabelVal=M,n.yLabelVal=l.y),n[T._id.charAt(0)+&quot;Spike&quot;]=T.c2p(o.pos,!0),s(l,h,n),n}e.exports={hoverPoints:function(t,e,r,n){var i,a=t.cd[0].trace.hoveron,o=[];return-1!==a.indexOf(&quot;boxes&quot;)&amp;&amp;(o=o.concat(l(t,e,r,n))),-1!==a.indexOf(&quot;points&quot;)&amp;&amp;(i=c(t,e,r)),&quot;closest&quot;===n?i?[i]:o:i?(o.push(i),o):o},hoverOnBoxes:l,hoverOnPoints:c}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],952:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;).supplyLayoutDefaults,calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;box&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;oriented&quot;,&quot;box-violin&quot;,&quot;showLegend&quot;,&quot;boxLayout&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:946,&quot;./calc&quot;:947,&quot;./cross_trace_calc&quot;:948,&quot;./defaults&quot;:949,&quot;./event_data&quot;:950,&quot;./hover&quot;:951,&quot;./layout_attributes&quot;:953,&quot;./layout_defaults&quot;:954,&quot;./plot&quot;:955,&quot;./select&quot;:956,&quot;./style&quot;:957}],953:[function(t,e,r){&quot;use strict&quot;;e.exports={boxmode:{valType:&quot;enumerated&quot;,values:[&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;overlay&quot;,editType:&quot;calc&quot;},boxgap:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,editType:&quot;calc&quot;},boxgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,editType:&quot;calc&quot;}}},{}],954:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./layout_attributes&quot;);function o(t,e,r,i,a){for(var o=a+&quot;Layout&quot;,s=!1,l=0;l&lt;r.length;l++){var c=r[l];if(n.traceIs(c,o)){s=!0;break}}s&amp;&amp;(i(a+&quot;mode&quot;),i(a+&quot;gap&quot;),i(a+&quot;groupgap&quot;))}e.exports={supplyLayoutDefaults:function(t,e,r){o(0,0,r,(function(r,n){return i.coerce(t,e,a,r,n)}),&quot;box&quot;)},_supply:o}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./layout_attributes&quot;:953}],955:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;);function o(t,e,r,a){var o,s,l=&quot;h&quot;===r.orientation,c=e.val,u=e.pos,f=!!u.rangebreaks,h=a.bPos,p=a.wdPos||0,d=a.bPosPxOffset||0,g=r.whiskerwidth||0,m=r.notched||!1,v=m?1-2*r.notchwidth:1;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var y=t.selectAll(&quot;path.box&quot;).data(&quot;violin&quot;!==r.type||r.box.visible?i.identity:[]);y.enter().append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;class&quot;,&quot;box&quot;),y.exit().remove(),y.each((function(t){if(t.empty)return&quot;M0,0Z&quot;;var e=u.c2l(t.pos+h,!0),a=u.l2p(e-o)+d,y=u.l2p(e+s)+d,x=f?(a+y)/2:u.l2p(e)+d,b=r.whiskerwidth,_=f?a*b+(1-b)*x:u.l2p(e-p)+d,w=f?y*b+(1-b)*x:u.l2p(e+p)+d,T=u.l2p(e-o*v)+d,k=u.l2p(e+s*v)+d,M=c.c2p(t.q1,!0),A=c.c2p(t.q3,!0),S=i.constrain(c.c2p(t.med,!0),Math.min(M,A)+1,Math.max(M,A)-1),E=void 0===t.lf||!1===r.boxpoints,C=c.c2p(E?t.min:t.lf,!0),L=c.c2p(E?t.max:t.uf,!0),I=c.c2p(t.ln,!0),P=c.c2p(t.un,!0);l?n.select(this).attr(&quot;d&quot;,&quot;M&quot;+S+&quot;,&quot;+T+&quot;V&quot;+k+&quot;M&quot;+M+&quot;,&quot;+a+&quot;V&quot;+y+(m?&quot;H&quot;+I+&quot;L&quot;+S+&quot;,&quot;+k+&quot;L&quot;+P+&quot;,&quot;+y:&quot;&quot;)+&quot;H&quot;+A+&quot;V&quot;+a+(m?&quot;H&quot;+P+&quot;L&quot;+S+&quot;,&quot;+T+&quot;L&quot;+I+&quot;,&quot;+a:&quot;&quot;)+&quot;ZM&quot;+M+&quot;,&quot;+x+&quot;H&quot;+C+&quot;M&quot;+A+&quot;,&quot;+x+&quot;H&quot;+L+(0===g?&quot;&quot;:&quot;M&quot;+C+&quot;,&quot;+_+&quot;V&quot;+w+&quot;M&quot;+L+&quot;,&quot;+_+&quot;V&quot;+w)):n.select(this).attr(&quot;d&quot;,&quot;M&quot;+T+&quot;,&quot;+S+&quot;H&quot;+k+&quot;M&quot;+a+&quot;,&quot;+M+&quot;H&quot;+y+(m?&quot;V&quot;+I+&quot;L&quot;+k+&quot;,&quot;+S+&quot;L&quot;+y+&quot;,&quot;+P:&quot;&quot;)+&quot;V&quot;+A+&quot;H&quot;+a+(m?&quot;V&quot;+P+&quot;L&quot;+T+&quot;,&quot;+S+&quot;L&quot;+a+&quot;,&quot;+I:&quot;&quot;)+&quot;ZM&quot;+x+&quot;,&quot;+M+&quot;V&quot;+C+&quot;M&quot;+x+&quot;,&quot;+A+&quot;V&quot;+L+(0===g?&quot;&quot;:&quot;M&quot;+_+&quot;,&quot;+C+&quot;H&quot;+w+&quot;M&quot;+_+&quot;,&quot;+L+&quot;H&quot;+w))}))}function s(t,e,r,n){var o=e.x,s=e.y,l=n.bdPos,c=n.bPos,u=r.boxpoints||r.points;i.seedPseudoRandom();var f=t.selectAll(&quot;g.points&quot;).data(u?function(t){return t.forEach((function(t){t.t=n,t.trace=r})),t}:[]);f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;points&quot;),f.exit().remove();var h=f.selectAll(&quot;path&quot;).data((function(t){var e,n,a=t.pts2,o=Math.max((t.max-t.min)/10,t.q3-t.q1),s=1e-9*o,f=.01*o,h=[],p=0;if(r.jitter){if(0===o)for(p=1,h=new Array(a.length),e=0;e&lt;a.length;e++)h[e]=1;else for(e=0;e&lt;a.length;e++){var d=Math.max(0,e-5),g=a[d].v,m=Math.min(a.length-1,e+5),v=a[m].v;&quot;all&quot;!==u&amp;&amp;(a[e].v&lt;t.lf?v=Math.min(v,t.lf):g=Math.max(g,t.uf));var y=Math.sqrt(f*(m-d)/(v-g+s))||0;y=i.constrain(Math.abs(y),0,1),h.push(y),p=Math.max(y,p)}n=2*r.jitter/(p||1)}for(e=0;e&lt;a.length;e++){var x=a[e],b=x.v,_=r.jitter?n*h[e]*(i.pseudoRandom()-.5):0,w=t.pos+c+l*(r.pointpos+_);&quot;h&quot;===r.orientation?(x.y=w,x.x=b):(x.x=w,x.y=b),&quot;suspectedoutliers&quot;===u&amp;&amp;b&lt;t.uo&amp;&amp;b&gt;t.lo&amp;&amp;(x.so=!0)}return a}));h.enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0),h.exit().remove(),h.call(a.translatePoints,o,s)}function l(t,e,r,a){var o,s,l=e.val,c=e.pos,u=!!c.rangebreaks,f=a.bPos,h=a.bPosPxOffset||0,p=r.boxmean||(r.meanline||{}).visible;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var d=t.selectAll(&quot;path.mean&quot;).data(&quot;box&quot;===r.type&amp;&amp;r.boxmean||&quot;violin&quot;===r.type&amp;&amp;r.box.visible&amp;&amp;r.meanline.visible?i.identity:[]);d.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;mean&quot;).style({fill:&quot;none&quot;,&quot;vector-effect&quot;:&quot;non-scaling-stroke&quot;}),d.exit().remove(),d.each((function(t){var e=c.c2l(t.pos+f,!0),i=c.l2p(e-o)+h,a=c.l2p(e+s)+h,d=u?(i+a)/2:c.l2p(e)+h,g=l.c2p(t.mean,!0),m=l.c2p(t.mean-t.sd,!0),v=l.c2p(t.mean+t.sd,!0);&quot;h&quot;===r.orientation?n.select(this).attr(&quot;d&quot;,&quot;M&quot;+g+&quot;,&quot;+i+&quot;V&quot;+a+(&quot;sd&quot;===p?&quot;m0,0L&quot;+m+&quot;,&quot;+d+&quot;L&quot;+g+&quot;,&quot;+i+&quot;L&quot;+v+&quot;,&quot;+d+&quot;Z&quot;:&quot;&quot;)):n.select(this).attr(&quot;d&quot;,&quot;M&quot;+i+&quot;,&quot;+g+&quot;H&quot;+a+(&quot;sd&quot;===p?&quot;m0,0L&quot;+d+&quot;,&quot;+m+&quot;L&quot;+i+&quot;,&quot;+g+&quot;L&quot;+d+&quot;,&quot;+v+&quot;Z&quot;:&quot;&quot;))}))}e.exports={plot:function(t,e,r,a){var c=e.xaxis,u=e.yaxis;i.makeTraceGroups(a,r,&quot;trace boxes&quot;).each((function(t){var e,r,i=n.select(this),a=t[0],f=a.t,h=a.trace;(f.wdPos=f.bdPos*h.whiskerwidth,!0!==h.visible||f.empty)?i.remove():(&quot;h&quot;===h.orientation?(e=u,r=c):(e=c,r=u),o(i,{pos:e,val:r},h,f),s(i,{x:c,y:u},h,f),l(i,{pos:e,val:r},h,f))}))},plotBoxAndWhiskers:o,plotPoints:s,plotBoxMean:l}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,d3:169}],956:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n,i=t.cd,a=t.xaxis,o=t.yaxis,s=[];if(!1===e)for(r=0;r&lt;i.length;r++)for(n=0;n&lt;(i[r].pts||[]).length;n++)i[r].pts[n].selected=0;else for(r=0;r&lt;i.length;r++)for(n=0;n&lt;(i[r].pts||[]).length;n++){var l=i[r].pts[n],c=a.c2p(l.x),u=o.c2p(l.y);e.contains([c,u],null,l.i,t)?(s.push({pointNumber:l.i,x:a.c2d(l.x),y:o.c2d(l.y)}),l.selected=1):l.selected=0}return s}},{}],957:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;);e.exports={style:function(t,e,r){var o=r||n.select(t).selectAll(&quot;g.trace.boxes&quot;);o.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),o.each((function(e){var r=n.select(this),o=e[0].trace,s=o.line.width;function l(t,e,r,n){t.style(&quot;stroke-width&quot;,e+&quot;px&quot;).call(i.stroke,r).call(i.fill,n)}var c=r.selectAll(&quot;path.box&quot;);if(&quot;candlestick&quot;===o.type)c.each((function(t){if(!t.empty){var e=n.select(this),r=o[t.dir];l(e,r.line.width,r.line.color,r.fillcolor),e.style(&quot;opacity&quot;,o.selectedpoints&amp;&amp;!t.selected?.3:1)}}));else{l(c,s,o.line.color,o.fillcolor),r.selectAll(&quot;path.mean&quot;).style({&quot;stroke-width&quot;:s,&quot;stroke-dasharray&quot;:2*s+&quot;px,&quot;+s+&quot;px&quot;}).call(i.stroke,o.line.color);var u=r.selectAll(&quot;path.point&quot;);a.pointStyle(u,o,t)}}))},styleOnSelect:function(t,e,r){var n=e[0].trace,i=r.selectAll(&quot;path.point&quot;);n.selectedpoints?a.selectedPointStyle(i,n):a.pointStyle(i,n,t)}}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,d3:169}],958:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).extendFlat,i=t(&quot;../ohlc/attributes&quot;),a=t(&quot;../box/attributes&quot;);function o(t){return{line:{color:n({},a.line.color,{dflt:t}),width:a.line.width,editType:&quot;style&quot;},fillcolor:a.fillcolor,editType:&quot;style&quot;}}e.exports={xperiod:i.xperiod,xperiod0:i.xperiod0,xperiodalignment:i.xperiodalignment,x:i.x,open:i.open,high:i.high,low:i.low,close:i.close,line:{width:n({},a.line.width,{}),editType:&quot;style&quot;},increasing:o(i.increasing.line.color.dflt),decreasing:o(i.decreasing.line.color.dflt),text:i.text,hovertext:i.hovertext,whiskerwidth:n({},a.whiskerwidth,{dflt:0}),hoverlabel:i.hoverlabel}},{&quot;../../lib&quot;:778,&quot;../box/attributes&quot;:946,&quot;../ohlc/attributes&quot;:1133}],959:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/cartesian/align_period&quot;),o=t(&quot;../ohlc/calc&quot;).calcCommon;function s(t,e,r,n){return{min:r,q1:Math.min(t,n),med:n,q3:Math.max(t,n),max:e}}e.exports=function(t,e){var r=t._fullLayout,l=i.getFromId(t,e.xaxis),c=i.getFromId(t,e.yaxis),u=l.makeCalcdata(e,&quot;x&quot;),f=a(e,l,&quot;x&quot;,u),h=o(t,e,u,f,c,s);return h.length?(n.extendFlat(h[0].t,{num:r._numBoxes,dPos:n.distinctVals(f).minDiff/2,posLetter:&quot;x&quot;,valLetter:&quot;y&quot;}),r._numBoxes++,h):[{t:{empty:!0}}]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../ohlc/calc&quot;:1134}],960:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../ohlc/ohlc_defaults&quot;),o=t(&quot;../scatter/period_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r,n){var a=r(n+&quot;.line.color&quot;);r(n+&quot;.line.width&quot;,e.line.width),r(n+&quot;.fillcolor&quot;,i.addOpacity(a,.5))}e.exports=function(t,e,r,i){function c(r,i){return n.coerce(t,e,s,r,i)}a(t,e,c,i)?(o(t,e,i,c,{x:!0}),c(&quot;line.width&quot;),l(t,e,c,&quot;increasing&quot;),l(t,e,c,&quot;decreasing&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;whiskerwidth&quot;),i._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../ohlc/ohlc_defaults&quot;:1138,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:958}],961:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;candlestick&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;showLegend&quot;,&quot;candlestick&quot;,&quot;boxLayout&quot;],meta:{},attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;../box/layout_attributes&quot;),supplyLayoutDefaults:t(&quot;../box/layout_defaults&quot;).supplyLayoutDefaults,crossTraceCalc:t(&quot;../box/cross_trace_calc&quot;).crossTraceCalc,supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;../box/plot&quot;).plot,layerName:&quot;boxlayer&quot;,style:t(&quot;../box/style&quot;).style,hoverPoints:t(&quot;../ohlc/hover&quot;).hoverPoints,selectPoints:t(&quot;../ohlc/select&quot;)}},{&quot;../../plots/cartesian&quot;:841,&quot;../box/cross_trace_calc&quot;:948,&quot;../box/layout_attributes&quot;:953,&quot;../box/layout_defaults&quot;:954,&quot;../box/plot&quot;:955,&quot;../box/style&quot;:957,&quot;../ohlc/hover&quot;:1136,&quot;../ohlc/select&quot;:1140,&quot;./attributes&quot;:958,&quot;./calc&quot;:959,&quot;./defaults&quot;:960}],962:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./axis_defaults&quot;),i=t(&quot;../../plot_api/plot_template&quot;);e.exports=function(t,e,r,a,o){a(&quot;a&quot;)||(a(&quot;da&quot;),a(&quot;a0&quot;)),a(&quot;b&quot;)||(a(&quot;db&quot;),a(&quot;b0&quot;)),function(t,e,r,a){[&quot;aaxis&quot;,&quot;baxis&quot;].forEach((function(o){var s=o.charAt(0),l=t[o]||{},c=i.newContainer(e,o),u={tickfont:&quot;x&quot;,id:s+&quot;axis&quot;,letter:s,font:e.font,name:o,data:t[s],calendar:e.calendar,dfltColor:a,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};n(l,c,u),c._categories=c._categories||[],t[o]||&quot;-&quot;===l.type||(t[o]={type:l.type})}))}(t,e,r,o)}},{&quot;../../plot_api/plot_template&quot;:817,&quot;./axis_defaults&quot;:967}],963:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t){return function t(e,r){if(!n(e)||r&gt;=10)return null;for(var i=1/0,a=-1/0,o=e.length,s=0;s&lt;o;s++){var l=e[s];if(n(l)){var c=t(l,r+1);c&amp;&amp;(i=Math.min(c[0],i),a=Math.max(c[1],a))}else i=Math.min(l,i),a=Math.max(l,a)}return[i,a]}(t,0)}},{&quot;../../lib&quot;:778}],964:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;./axis_attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=n({editType:&quot;calc&quot;});o.family.dflt='&quot;Open Sans&quot;, verdana, arial, sans-serif',o.size.dflt=12,o.color.dflt=a.defaultLine,e.exports={carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},a0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},da:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},db:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},cheaterslope:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},aaxis:i,baxis:i,font:o,color:{valType:&quot;color&quot;,dflt:a.defaultLine,editType:&quot;plot&quot;},transforms:void 0}},{&quot;../../components/color/attributes&quot;:642,&quot;../../plots/font_attributes&quot;:856,&quot;./axis_attributes&quot;:966}],965:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g,m,v,y=n(r)?&quot;a&quot;:&quot;b&quot;,x=(&quot;a&quot;===y?t.aaxis:t.baxis).smoothing,b=&quot;a&quot;===y?t.a2i:t.b2j,_=&quot;a&quot;===y?r:i,w=&quot;a&quot;===y?i:r,T=&quot;a&quot;===y?e.a.length:e.b.length,k=&quot;a&quot;===y?e.b.length:e.a.length,M=Math.floor(&quot;a&quot;===y?t.b2j(w):t.a2i(w)),A=&quot;a&quot;===y?function(e){return t.evalxy([],e,M)}:function(e){return t.evalxy([],M,e)};x&amp;&amp;(s=Math.max(0,Math.min(k-2,M)),l=M-s,o=&quot;a&quot;===y?function(e,r){return t.dxydi([],e,s,r,l)}:function(e,r){return t.dxydj([],s,e,l,r)});var S=b(_[0]),E=b(_[1]),C=S&lt;E?1:-1,L=1e-8*(E-S),I=C&gt;0?Math.floor:Math.ceil,P=C&gt;0?Math.ceil:Math.floor,z=C&gt;0?Math.min:Math.max,O=C&gt;0?Math.max:Math.min,D=I(S+L),R=P(E-L),F=[[f=A(S)]];for(a=D;a*C&lt;R*C;a+=C)c=[],g=O(S,a),v=(m=z(E,a+C))-g,u=Math.max(0,Math.min(T-2,Math.floor(.5*(g+m)))),h=A(m),x&amp;&amp;(p=o(u,g-u),d=o(u,m-u),c.push([f[0]+p[0]/3*v,f[1]+p[1]/3*v]),c.push([h[0]-d[0]/3*v,h[1]-d[1]/3*v])),c.push(h),F.push(c),f=h;return F}},{&quot;../../lib&quot;:778}],966:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../components/color/attributes&quot;),a=t(&quot;../../plots/cartesian/layout_attributes&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll;t(&quot;../../constants/docs&quot;).FORMAT_LINK,t(&quot;../../constants/docs&quot;).TIME_FORMAT_LINK;e.exports={color:{valType:&quot;color&quot;,editType:&quot;calc&quot;},smoothing:{valType:&quot;number&quot;,dflt:1,min:0,max:1.3,editType:&quot;calc&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},font:n({editType:&quot;calc&quot;}),offset:{valType:&quot;number&quot;,dflt:10,editType:&quot;calc&quot;},editType:&quot;calc&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;date&quot;,&quot;category&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;},autotypenumbers:a.autotypenumbers,autorange:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],dflt:!0,editType:&quot;calc&quot;},rangemode:{valType:&quot;enumerated&quot;,values:[&quot;normal&quot;,&quot;tozero&quot;,&quot;nonnegative&quot;],dflt:&quot;normal&quot;,editType:&quot;calc&quot;},range:{valType:&quot;info_array&quot;,editType:&quot;calc&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}]},fixedrange:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},cheatertype:{valType:&quot;enumerated&quot;,values:[&quot;index&quot;,&quot;value&quot;],dflt:&quot;value&quot;,editType:&quot;calc&quot;},tickmode:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;array&quot;],dflt:&quot;array&quot;,editType:&quot;calc&quot;},nticks:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},tickvals:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},showticklabels:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;end&quot;,&quot;both&quot;,&quot;none&quot;],dflt:&quot;start&quot;,editType:&quot;calc&quot;},tickfont:n({editType:&quot;calc&quot;}),tickangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;calc&quot;},tickprefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showtickprefix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},ticksuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showticksuffix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},showexponent:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},exponentformat:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;e&quot;,&quot;E&quot;,&quot;power&quot;,&quot;SI&quot;,&quot;B&quot;],dflt:&quot;B&quot;,editType:&quot;calc&quot;},minexponent:{valType:&quot;number&quot;,dflt:3,min:0,editType:&quot;calc&quot;},separatethousands:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},tickformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},tickformatstops:o(a.tickformatstops,&quot;calc&quot;,&quot;from-root&quot;),categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},labelpadding:{valType:&quot;integer&quot;,dflt:10,editType:&quot;calc&quot;},labelprefix:{valType:&quot;string&quot;,editType:&quot;calc&quot;},labelsuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showline:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},linecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;calc&quot;},linewidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},gridcolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},showgrid:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},minorgridcount:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},minorgridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},minorgridcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;calc&quot;},startline:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},startlinecolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},startlinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},endline:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},endlinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},endlinecolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},tick0:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},dtick:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},arraytick0:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},arraydtick:{valType:&quot;integer&quot;,min:1,dflt:1,editType:&quot;calc&quot;},_deprecated:{title:{valType:&quot;string&quot;,editType:&quot;calc&quot;},titlefont:n({editType:&quot;calc&quot;}),titleoffset:{valType:&quot;number&quot;,dflt:10,editType:&quot;calc&quot;}},editType:&quot;calc&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../constants/docs&quot;:748,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/font_attributes&quot;:856}],967:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./attributes&quot;),i=t(&quot;../../components/color&quot;).addOpacity,a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),l=t(&quot;../../plots/cartesian/tick_label_defaults&quot;),c=t(&quot;../../plots/cartesian/category_order_defaults&quot;),u=t(&quot;../../plots/cartesian/set_convert&quot;),f=t(&quot;../../plots/cartesian/axis_autotype&quot;);e.exports=function(t,e,r){var h=r.letter,p=r.font||{},d=n[h+&quot;axis&quot;];function g(r,n){return o.coerce(t,e,d,r,n)}function m(r,n){return o.coerce2(t,e,d,r,n)}r.name&amp;&amp;(e._name=r.name,e._id=r.name),g(&quot;autotypenumbers&quot;,r.autotypenumbersDflt);var v=g(&quot;type&quot;);(&quot;-&quot;===v&amp;&amp;(r.data&amp;&amp;function(t,e){if(&quot;-&quot;!==t.type)return;var r=t._id.charAt(0),n=t[r+&quot;calendar&quot;];t.type=f(e,n,{autotypenumbers:t.autotypenumbers})}(e,r.data),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:v=t.type=e.type),g(&quot;smoothing&quot;),g(&quot;cheatertype&quot;),g(&quot;showticklabels&quot;),g(&quot;labelprefix&quot;,h+&quot; = &quot;),g(&quot;labelsuffix&quot;),g(&quot;showtickprefix&quot;),g(&quot;showticksuffix&quot;),g(&quot;separatethousands&quot;),g(&quot;tickformat&quot;),g(&quot;exponentformat&quot;),g(&quot;minexponent&quot;),g(&quot;showexponent&quot;),g(&quot;categoryorder&quot;),g(&quot;tickmode&quot;),g(&quot;tickvals&quot;),g(&quot;ticktext&quot;),g(&quot;tick0&quot;),g(&quot;dtick&quot;),&quot;array&quot;===e.tickmode&amp;&amp;(g(&quot;arraytick0&quot;),g(&quot;arraydtick&quot;)),g(&quot;labelpadding&quot;),e._hovertitle=h,&quot;date&quot;===v)&amp;&amp;a.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;,r.calendar);u(e,r.fullLayout),e.c2p=o.identity;var y=g(&quot;color&quot;,r.dfltColor),x=y===t.color?y:p.color;g(&quot;title.text&quot;)&amp;&amp;(o.coerceFont(g,&quot;title.font&quot;,{family:p.family,size:Math.round(1.2*p.size),color:x}),g(&quot;title.offset&quot;)),g(&quot;tickangle&quot;),g(&quot;autorange&quot;,!e.isValidRange(t.range))&amp;&amp;g(&quot;rangemode&quot;),g(&quot;range&quot;),e.cleanRange(),g(&quot;fixedrange&quot;),s(t,e,g,v),l(t,e,g,v,r),c(t,e,g,{data:r.data,dataAttr:h});var b=m(&quot;gridcolor&quot;,i(y,.3)),_=m(&quot;gridwidth&quot;),w=g(&quot;showgrid&quot;);w||(delete e.gridcolor,delete e.gridwidth);var T=m(&quot;startlinecolor&quot;,y),k=m(&quot;startlinewidth&quot;,_);g(&quot;startline&quot;,e.showgrid||!!T||!!k)||(delete e.startlinecolor,delete e.startlinewidth);var M=m(&quot;endlinecolor&quot;,y),A=m(&quot;endlinewidth&quot;,_);return g(&quot;endline&quot;,e.showgrid||!!M||!!A)||(delete e.endlinecolor,delete e.endlinewidth),w?(g(&quot;minorgridcount&quot;),g(&quot;minorgridwidth&quot;,_),g(&quot;minorgridcolor&quot;,i(b,.06)),e.minorgridcount||(delete e.minorgridwidth,delete e.minorgridcolor)):(delete e.gridcolor,delete e.gridWidth),&quot;none&quot;===e.showticklabels&amp;&amp;(delete e.tickfont,delete e.tickangle,delete e.showexponent,delete e.exponentformat,delete e.minexponent,delete e.tickformat,delete e.showticksuffix,delete e.showtickprefix),e.showticksuffix||delete e.ticksuffix,e.showtickprefix||delete e.tickprefix,g(&quot;tickmode&quot;),e}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_autotype&quot;:829,&quot;../../plots/cartesian/category_order_defaults&quot;:832,&quot;../../plots/cartesian/set_convert&quot;:848,&quot;../../plots/cartesian/tick_label_defaults&quot;:849,&quot;../../plots/cartesian/tick_value_defaults&quot;:851,&quot;../../registry&quot;:911,&quot;./attributes&quot;:964}],968:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;).isArray1D,a=t(&quot;./cheater_basis&quot;),o=t(&quot;./array_minmax&quot;),s=t(&quot;./calc_gridlines&quot;),l=t(&quot;./calc_labels&quot;),c=t(&quot;./calc_clippath&quot;),u=t(&quot;../heatmap/clean_2d_array&quot;),f=t(&quot;./smooth_fill_2d_array&quot;),h=t(&quot;../heatmap/convert_column_xyz&quot;),p=t(&quot;./set_convert&quot;);e.exports=function(t,e){var r=n.getFromId(t,e.xaxis),d=n.getFromId(t,e.yaxis),g=e.aaxis,m=e.baxis,v=e.x,y=e.y,x=[];v&amp;&amp;i(v)&amp;&amp;x.push(&quot;x&quot;),y&amp;&amp;i(y)&amp;&amp;x.push(&quot;y&quot;),x.length&amp;&amp;h(e,g,m,&quot;a&quot;,&quot;b&quot;,x);var b=e._a=e._a||e.a,_=e._b=e._b||e.b;v=e._x||e.x,y=e._y||e.y;var w={};if(e._cheater){var T=&quot;index&quot;===g.cheatertype?b.length:b,k=&quot;index&quot;===m.cheatertype?_.length:_;v=a(T,k,e.cheaterslope)}e._x=v=u(v),e._y=y=u(y),f(v,b,_),f(y,b,_),p(e),e.setScale();var M=o(v),A=o(y),S=.5*(M[1]-M[0]),E=.5*(M[1]+M[0]),C=.5*(A[1]-A[0]),L=.5*(A[1]+A[0]);return M=[E-1.3*S,E+1.3*S],A=[L-1.3*C,L+1.3*C],e._extremes[r._id]=n.findExtremes(r,M,{padded:!0}),e._extremes[d._id]=n.findExtremes(d,A,{padded:!0}),s(e,&quot;a&quot;,&quot;b&quot;),s(e,&quot;b&quot;,&quot;a&quot;),l(e,g),l(e,m),w.clipsegments=c(e._xctrl,e._yctrl,g,m),w.x=v,w.y=y,w.a=b,w.b=_,[w]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../heatmap/clean_2d_array&quot;:1067,&quot;../heatmap/convert_column_xyz&quot;:1069,&quot;./array_minmax&quot;:963,&quot;./calc_clippath&quot;:969,&quot;./calc_gridlines&quot;:970,&quot;./calc_labels&quot;:971,&quot;./cheater_basis&quot;:973,&quot;./set_convert&quot;:986,&quot;./smooth_fill_2d_array&quot;:987}],969:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i,a,o,s=[],l=!!r.smoothing,c=!!n.smoothing,u=t[0].length-1,f=t.length-1;for(i=0,a=[],o=[];i&lt;=u;i++)a[i]=t[0][i],o[i]=e[0][i];for(s.push({x:a,y:o,bicubic:l}),i=0,a=[],o=[];i&lt;=f;i++)a[i]=t[i][u],o[i]=e[i][u];for(s.push({x:a,y:o,bicubic:c}),i=u,a=[],o=[];i&gt;=0;i--)a[u-i]=t[f][i],o[u-i]=e[f][i];for(s.push({x:a,y:o,bicubic:l}),i=f,a=[],o=[];i&gt;=0;i--)a[f-i]=t[i][0],o[f-i]=e[i][0];return s.push({x:a,y:o,bicubic:c}),s}},{}],970:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=function(t,e,r){var a,o,s,l,c,u,f,h,p,d,g,m,v,y,x=t[&quot;_&quot;+e],b=t[e+&quot;axis&quot;],_=b._gridlines=[],w=b._minorgridlines=[],T=b._boundarylines=[],k=t[&quot;_&quot;+r],M=t[r+&quot;axis&quot;];&quot;array&quot;===b.tickmode&amp;&amp;(b.tickvals=x.slice());var A=t._xctrl,S=t._yctrl,E=A[0].length,C=A.length,L=t._a.length,I=t._b.length;n.prepTicks(b),&quot;array&quot;===b.tickmode&amp;&amp;delete b.tickvals;var P=b.smoothing?3:1;function z(n){var i,a,o,s,l,c,u,f,p,d,g,m,v=[],y=[],x={};if(&quot;b&quot;===e)for(a=t.b2j(n),o=Math.floor(Math.max(0,Math.min(I-2,a))),s=a-o,x.length=I,x.crossLength=L,x.xy=function(e){return t.evalxy([],e,a)},x.dxy=function(e,r){return t.dxydi([],e,o,r,s)},i=0;i&lt;L;i++)c=Math.min(L-2,i),u=i-c,f=t.evalxy([],i,a),M.smoothing&amp;&amp;i&gt;0&amp;&amp;(p=t.dxydi([],i-1,o,0,s),v.push(l[0]+p[0]/3),y.push(l[1]+p[1]/3),d=t.dxydi([],i-1,o,1,s),v.push(f[0]-d[0]/3),y.push(f[1]-d[1]/3)),v.push(f[0]),y.push(f[1]),l=f;else for(i=t.a2i(n),c=Math.floor(Math.max(0,Math.min(L-2,i))),u=i-c,x.length=L,x.crossLength=I,x.xy=function(e){return t.evalxy([],i,e)},x.dxy=function(e,r){return t.dxydj([],c,e,u,r)},a=0;a&lt;I;a++)o=Math.min(I-2,a),s=a-o,f=t.evalxy([],i,a),M.smoothing&amp;&amp;a&gt;0&amp;&amp;(g=t.dxydj([],c,a-1,u,0),v.push(l[0]+g[0]/3),y.push(l[1]+g[1]/3),m=t.dxydj([],c,a-1,u,1),v.push(f[0]-m[0]/3),y.push(f[1]-m[1]/3)),v.push(f[0]),y.push(f[1]),l=f;return x.axisLetter=e,x.axis=b,x.crossAxis=M,x.value=n,x.constvar=r,x.index=h,x.x=v,x.y=y,x.smoothing=M.smoothing,x}function O(n){var i,a,o,s,l,c=[],u=[],f={};if(f.length=x.length,f.crossLength=k.length,&quot;b&quot;===e)for(o=Math.max(0,Math.min(I-2,n)),l=Math.min(1,Math.max(0,n-o)),f.xy=function(e){return t.evalxy([],e,n)},f.dxy=function(e,r){return t.dxydi([],e,o,r,l)},i=0;i&lt;E;i++)c[i]=A[n*P][i],u[i]=S[n*P][i];else for(a=Math.max(0,Math.min(L-2,n)),s=Math.min(1,Math.max(0,n-a)),f.xy=function(e){return t.evalxy([],n,e)},f.dxy=function(e,r){return t.dxydj([],a,e,s,r)},i=0;i&lt;C;i++)c[i]=A[i][n*P],u[i]=S[i][n*P];return f.axisLetter=e,f.axis=b,f.crossAxis=M,f.value=x[n],f.constvar=r,f.index=n,f.x=c,f.y=u,f.smoothing=M.smoothing,f}if(&quot;array&quot;===b.tickmode){for(l=5e-15,u=(c=[Math.floor((x.length-1-b.arraytick0)/b.arraydtick*(1+l)),Math.ceil(-b.arraytick0/b.arraydtick/(1+l))].sort((function(t,e){return t-e})))[0]-1,f=c[1]+1,h=u;h&lt;f;h++)(o=b.arraytick0+b.arraydtick*h)&lt;0||o&gt;x.length-1||_.push(i(O(o),{color:b.gridcolor,width:b.gridwidth}));for(h=u;h&lt;f;h++)if(s=b.arraytick0+b.arraydtick*h,g=Math.min(s+b.arraydtick,x.length-1),!(s&lt;0||s&gt;x.length-1||g&lt;0||g&gt;x.length-1))for(m=x[s],v=x[g],a=0;a&lt;b.minorgridcount;a++)(y=g-s)&lt;=0||(d=m+(v-m)*(a+1)/(b.minorgridcount+1)*(b.arraydtick/y))&lt;x[0]||d&gt;x[x.length-1]||w.push(i(z(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&amp;&amp;T.push(i(O(0),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&amp;&amp;T.push(i(O(x.length-1),{color:b.endlinecolor,width:b.endlinewidth}))}else{for(l=5e-15,u=(c=[Math.floor((x[x.length-1]-b.tick0)/b.dtick*(1+l)),Math.ceil((x[0]-b.tick0)/b.dtick/(1+l))].sort((function(t,e){return t-e})))[0],f=c[1],h=u;h&lt;=f;h++)p=b.tick0+b.dtick*h,_.push(i(z(p),{color:b.gridcolor,width:b.gridwidth}));for(h=u-1;h&lt;f+1;h++)for(p=b.tick0+b.dtick*h,a=0;a&lt;b.minorgridcount;a++)(d=p+b.dtick*(a+1)/(b.minorgridcount+1))&lt;x[0]||d&gt;x[x.length-1]||w.push(i(z(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&amp;&amp;T.push(i(z(x[0]),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&amp;&amp;T.push(i(z(x[x.length-1]),{color:b.endlinecolor,width:b.endlinewidth}))}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/cartesian/axes&quot;:828}],971:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=function(t,e){var r,a,o,s=e._labels=[],l=e._gridlines;for(r=0;r&lt;l.length;r++)o=l[r],-1!==[&quot;start&quot;,&quot;both&quot;].indexOf(e.showticklabels)&amp;&amp;(a=n.tickText(e,o.value),i(a,{prefix:void 0,suffix:void 0,endAnchor:!0,xy:o.xy(0),dxy:o.dxy(0,0),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a)),-1!==[&quot;end&quot;,&quot;both&quot;].indexOf(e.showticklabels)&amp;&amp;(a=n.tickText(e,o.value),i(a,{endAnchor:!1,xy:o.xy(o.crossLength-1),dxy:o.dxy(o.crossLength-2,1),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a))}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/cartesian/axes&quot;:828}],972:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i=t[0]-e[0],a=t[1]-e[1],o=r[0]-e[0],s=r[1]-e[1],l=Math.pow(i*i+a*a,.25),c=Math.pow(o*o+s*s,.25),u=(c*c*i-l*l*o)*n,f=(c*c*a-l*l*s)*n,h=c*(l+c)*3,p=l*(l+c)*3;return[[e[0]+(h&amp;&amp;u/h),e[1]+(h&amp;&amp;f/h)],[e[0]-(p&amp;&amp;u/p),e[1]-(p&amp;&amp;f/p)]]}},{}],973:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r){var i,a,o,s,l,c,u=[],f=n(t)?t.length:t,h=n(e)?e.length:e,p=n(t)?t:null,d=n(e)?e:null;p&amp;&amp;(o=(p.length-1)/(p[p.length-1]-p[0])/(f-1)),d&amp;&amp;(s=(d.length-1)/(d[d.length-1]-d[0])/(h-1));var g=1/0,m=-1/0;for(a=0;a&lt;h;a++)for(u[a]=[],l=d?(d[a]-d[0])*s:a/(h-1),i=0;i&lt;f;i++)c=(p?(p[i]-p[0])*o:i/(f-1))-l*r,g=Math.min(c,g),m=Math.max(c,m),u[a][i]=c;var v=1/(m-g),y=-g*v;for(a=0;a&lt;h;a++)for(i=0;i&lt;f;i++)u[a][i]=v*u[a][i]+y;return u}},{&quot;../../lib&quot;:778}],974:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./catmull_rom&quot;),i=t(&quot;../../lib&quot;).ensureArray;function a(t,e,r){var n=-.5*r[0]+1.5*e[0],i=-.5*r[1]+1.5*e[1];return[(2*n+t[0])/3,(2*i+t[1])/3]}e.exports=function(t,e,r,o,s,l){var c,u,f,h,p,d,g,m,v,y,x=r[0].length,b=r.length,_=s?3*x-2:x,w=l?3*b-2:b;for(t=i(t,w),e=i(e,w),f=0;f&lt;w;f++)t[f]=i(t[f],_),e[f]=i(e[f],_);for(u=0,h=0;u&lt;b;u++,h+=l?3:1)for(p=t[h],d=e[h],g=r[u],m=o[u],c=0,f=0;c&lt;x;c++,f+=s?3:1)p[f]=g[c],d[f]=m[c];if(s)for(u=0,h=0;u&lt;b;u++,h+=l?3:1){for(c=1,f=3;c&lt;x-1;c++,f+=3)v=n([r[u][c-1],o[u][c-1]],[r[u][c],o[u][c]],[r[u][c+1],o[u][c+1]],s),t[h][f-1]=v[0][0],e[h][f-1]=v[0][1],t[h][f+1]=v[1][0],e[h][f+1]=v[1][1];y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=y[0],e[h][1]=y[1],y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=y[0],e[h][_-2]=y[1]}if(l)for(f=0;f&lt;_;f++){for(h=3;h&lt;w-3;h+=3)v=n([t[h-3][f],e[h-3][f]],[t[h][f],e[h][f]],[t[h+3][f],e[h+3][f]],l),t[h-1][f]=v[0][0],e[h-1][f]=v[0][1],t[h+1][f]=v[1][0],e[h+1][f]=v[1][1];y=a([t[0][f],e[0][f]],[t[2][f],e[2][f]],[t[3][f],e[3][f]]),t[1][f]=y[0],e[1][f]=y[1],y=a([t[w-1][f],e[w-1][f]],[t[w-3][f],e[w-3][f]],[t[w-4][f],e[w-4][f]]),t[w-2][f]=y[0],e[w-2][f]=y[1]}if(s&amp;&amp;l)for(h=1;h&lt;w;h+=(h+1)%3==0?2:1){for(f=3;f&lt;_-3;f+=3)v=n([t[h][f-3],e[h][f-3]],[t[h][f],e[h][f]],[t[h][f+3],e[h][f+3]],s),t[h][f-1]=.5*(t[h][f-1]+v[0][0]),e[h][f-1]=.5*(e[h][f-1]+v[0][1]),t[h][f+1]=.5*(t[h][f+1]+v[1][0]),e[h][f+1]=.5*(e[h][f+1]+v[1][1]);y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=.5*(t[h][1]+y[0]),e[h][1]=.5*(e[h][1]+y[1]),y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=.5*(t[h][_-2]+y[0]),e[h][_-2]=.5*(e[h][_-2]+y[1])}return[t,e]}},{&quot;../../lib&quot;:778,&quot;./catmull_rom&quot;:972}],975:[function(t,e,r){&quot;use strict&quot;;e.exports={RELATIVE_CULL_TOLERANCE:1e-6}},{}],976:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return e&amp;&amp;r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=1-i,d=p*p,g=p*i*2,m=-3*d,v=3*(d-g),y=3*(g-h),x=3*h,b=a*a,_=b*a,w=1-a,T=w*w,k=T*w;for(f=0;f&lt;t.length;f++)o=m*(u=t[f])[n][r]+v*u[n][r+1]+y*u[n][r+2]+x*u[n][r+3],s=m*u[n+1][r]+v*u[n+1][r+1]+y*u[n+1][r+2]+x*u[n+1][r+3],l=m*u[n+2][r]+v*u[n+2][r+1]+y*u[n+2][r+2]+x*u[n+2][r+3],c=m*u[n+3][r]+v*u[n+3][r+1]+y*u[n+3][r+2]+x*u[n+3][r+3],e[f]=k*o+3*(T*a*s+w*b*l)+_*c;return e}:e?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),r*=3;var u=i*i,f=1-i,h=f*f,p=f*i*2,d=-3*h,g=3*(h-p),m=3*(p-u),v=3*u,y=1-a;for(l=0;l&lt;t.length;l++)o=d*(c=t[l])[n][r]+g*c[n][r+1]+m*c[n][r+2]+v*c[n][r+3],s=d*c[n+1][r]+g*c[n+1][r+1]+m*c[n+1][r+2]+v*c[n+1][r+3],e[l]=y*o+a*s;return e}:r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),n*=3;var h=a*a,p=h*a,d=1-a,g=d*d,m=g*d;for(u=0;u&lt;t.length;u++)o=(f=t[u])[n][r+1]-f[n][r],s=f[n+1][r+1]-f[n+1][r],l=f[n+2][r+1]-f[n+2][r],c=f[n+3][r+1]-f[n+3][r],e[u]=m*o+3*(g*a*s+d*h*l)+p*c;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-a;for(l=0;l&lt;t.length;l++)o=(c=t[l])[n][r+1]-c[n][r],s=c[n+1][r+1]-c[n+1][r],e[l]=u*o+a*s;return e}}},{}],977:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return e&amp;&amp;r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=h*i,d=1-i,g=d*d,m=g*d,v=a*a,y=1-a,x=y*y,b=y*a*2,_=-3*x,w=3*(x-b),T=3*(b-v),k=3*v;for(f=0;f&lt;t.length;f++)o=_*(u=t[f])[n][r]+w*u[n+1][r]+T*u[n+2][r]+k*u[n+3][r],s=_*u[n][r+1]+w*u[n+1][r+1]+T*u[n+2][r+1]+k*u[n+3][r+1],l=_*u[n][r+2]+w*u[n+1][r+2]+T*u[n+2][r+2]+k*u[n+3][r+2],c=_*u[n][r+3]+w*u[n+1][r+3]+T*u[n+2][r+3]+k*u[n+3][r+3],e[f]=m*o+3*(g*i*s+d*h*l)+p*c;return e}:e?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3;var h=a*a,p=h*a,d=1-a,g=d*d,m=g*d;for(u=0;u&lt;t.length;u++)o=(f=t[u])[n+1][r]-f[n][r],s=f[n+1][r+1]-f[n][r+1],l=f[n+1][r+2]-f[n][r+2],c=f[n+1][r+3]-f[n][r+3],e[u]=m*o+3*(g*a*s+d*h*l)+p*c;return e}:r?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),n*=3;var u=1-i,f=a*a,h=1-a,p=h*h,d=h*a*2,g=-3*p,m=3*(p-d),v=3*(d-f),y=3*f;for(l=0;l&lt;t.length;l++)o=g*(c=t[l])[n][r]+m*c[n+1][r]+v*c[n+2][r]+y*c[n+3][r],s=g*c[n][r+1]+m*c[n+1][r+1]+v*c[n+2][r+1]+y*c[n+3][r+1],e[l]=u*o+i*s;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-i;for(l=0;l&lt;t.length;l++)o=(c=t[l])[n+1][r]-c[n][r],s=c[n+1][r+1]-c[n][r+1],e[l]=u*o+i*s;return e}}},{}],978:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=e-2,o=r-2;return n&amp;&amp;i?function(e,r,n){var i,s,l,c,u,f;e||(e=[]);var h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3,p*=3;var m=d*d,v=m*d,y=1-d,x=y*y,b=x*y,_=g*g,w=_*g,T=1-g,k=T*T,M=k*T;for(f=0;f&lt;t.length;f++)i=b*(u=t[f])[p][h]+3*(x*d*u[p][h+1]+y*m*u[p][h+2])+v*u[p][h+3],s=b*u[p+1][h]+3*(x*d*u[p+1][h+1]+y*m*u[p+1][h+2])+v*u[p+1][h+3],l=b*u[p+2][h]+3*(x*d*u[p+2][h+1]+y*m*u[p+2][h+2])+v*u[p+2][h+3],c=b*u[p+3][h]+3*(x*d*u[p+3][h+1]+y*m*u[p+3][h+2])+v*u[p+3][h+3],e[f]=M*i+3*(k*g*s+T*_*l)+w*c;return e}:n?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3;var m=d*d,v=m*d,y=1-d,x=y*y,b=x*y,_=1-g;for(u=0;u&lt;t.length;u++)i=_*(f=t[u])[p][h]+g*f[p+1][h],s=_*f[p][h+1]+g*f[p+1][h+1],l=_*f[p][h+2]+g*f[p+1][h+1],c=_*f[p][h+3]+g*f[p+1][h+1],e[u]=b*i+3*(x*d*s+y*m*l)+v*c;return e}:i?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));p*=3;var m=g*g,v=m*g,y=1-g,x=y*y,b=x*y,_=1-d;for(u=0;u&lt;t.length;u++)i=_*(f=t[u])[p][h]+d*f[p][h+1],s=_*f[p+1][h]+d*f[p+1][h+1],l=_*f[p+2][h]+d*f[p+2][h+1],c=_*f[p+3][h]+d*f[p+3][h+1],e[u]=b*i+3*(x*g*s+y*m*l)+v*c;return e}:function(e,r,n){e||(e=[]);var i,s,l,c,u=Math.max(0,Math.min(Math.floor(r),a)),f=Math.max(0,Math.min(Math.floor(n),o)),h=Math.max(0,Math.min(1,r-u)),p=Math.max(0,Math.min(1,n-f)),d=1-p,g=1-h;for(l=0;l&lt;t.length;l++)i=g*(c=t[l])[f][u]+h*c[f][u+1],s=g*c[f+1][u]+h*c[f+1][u+1],e[l]=d*i+p*s;return e}}},{}],979:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./xy_defaults&quot;),a=t(&quot;./ab_defaults&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../../components/color/attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}e._clipPathId=&quot;clip&quot;+e.uid+&quot;carpet&quot;;var u=c(&quot;color&quot;,s.defaultLine);(n.coerceFont(c,&quot;font&quot;),c(&quot;carpet&quot;),a(t,e,l,c,u),e.a&amp;&amp;e.b)?(e.a.length&lt;3&amp;&amp;(e.aaxis.smoothing=0),e.b.length&lt;3&amp;&amp;(e.baxis.smoothing=0),i(t,e,c)||(e.visible=!1),e._cheater&amp;&amp;c(&quot;cheaterslope&quot;)):e.visible=!1}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib&quot;:778,&quot;./ab_defaults&quot;:962,&quot;./attributes&quot;:964,&quot;./xy_defaults&quot;:988}],980:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),plot:t(&quot;./plot&quot;),calc:t(&quot;./calc&quot;),animatable:!0,isContainer:!0,moduleType:&quot;trace&quot;,name:&quot;carpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;carpet&quot;,&quot;carpetAxis&quot;,&quot;notLegendIsolatable&quot;,&quot;noMultiCategory&quot;,&quot;noHover&quot;,&quot;noSortingByValue&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:964,&quot;./calc&quot;:968,&quot;./defaults&quot;:979,&quot;./plot&quot;:985}],981:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r,n=t._fullData.length,i=0;i&lt;n;i++){var a=t._fullData[i];if(a.index!==e.index&amp;&amp;(&quot;carpet&quot;===a.type&amp;&amp;(r||(r=a),a.carpet===e.carpet)))return a}return r}},{}],982:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(0===t.length)return&quot;&quot;;var n,i=[],a=r?3:1;for(n=0;n&lt;t.length;n+=a)i.push(t[n]+&quot;,&quot;+e[n]),r&amp;&amp;n&lt;t.length-a&amp;&amp;(i.push(&quot;C&quot;),i.push([t[n+1]+&quot;,&quot;+e[n+1],t[n+2]+&quot;,&quot;+e[n+2]+&quot; &quot;].join(&quot; &quot;)));return i.join(r?&quot;&quot;:&quot;L&quot;)}},{}],983:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r){var i;for(n(t)?t.length&gt;e.length&amp;&amp;(t=t.slice(0,e.length)):t=[],i=0;i&lt;e.length;i++)t[i]=r(e[i]);return t}},{&quot;../../lib&quot;:778}],984:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a){var o=i[0]*t.dpdx(e),s=i[1]*t.dpdy(r),l=1,c=1;if(a){var u=Math.sqrt(i[0]*i[0]+i[1]*i[1]),f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=(i[0]*a[0]+i[1]*a[1])/u/f;c=Math.max(0,h)}var p=180*Math.atan2(s,o)/Math.PI;return p&lt;-90?(p+=180,l=-l):p&gt;90&amp;&amp;(p-=180,l=-l),{angle:p,flip:l,p:t.c2p(n,e,r),offsetMultplier:c}}},{}],985:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;./map_1d_array&quot;),o=t(&quot;./makepath&quot;),s=t(&quot;./orient_text&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../lib&quot;),u=c.strRotate,f=c.strTranslate,h=t(&quot;../../constants/alignment&quot;);function p(t,e,r,i,s,l){var c=&quot;const-&quot;+s+&quot;-lines&quot;,u=r.selectAll(&quot;.&quot;+c).data(l);u.enter().append(&quot;path&quot;).classed(c,!0).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;),u.each((function(r){var i=r,s=i.x,l=i.y,c=a([],s,t.c2p),u=a([],l,e.c2p),f=&quot;M&quot;+o(c,u,i.smoothing);n.select(this).attr(&quot;d&quot;,f).style(&quot;stroke-width&quot;,i.width).style(&quot;stroke&quot;,i.color).style(&quot;fill&quot;,&quot;none&quot;)})),u.exit().remove()}function d(t,e,r,a,o,c,h,p){var d=c.selectAll(&quot;text.&quot;+p).data(h);d.enter().append(&quot;text&quot;).classed(p,!0);var g=0,m={};return d.each((function(o,c){var h;if(&quot;auto&quot;===o.axis.tickangle)h=s(a,e,r,o.xy,o.dxy);else{var p=(o.axis.tickangle+180)*Math.PI/180;h=s(a,e,r,o.xy,[Math.cos(p),Math.sin(p)])}c||(m={angle:h.angle,flip:h.flip});var d=(o.endAnchor?-1:1)*h.flip,v=n.select(this).attr({&quot;text-anchor&quot;:d&gt;0?&quot;start&quot;:&quot;end&quot;,&quot;data-notex&quot;:1}).call(i.font,o.font).text(o.text).call(l.convertToTspans,t),y=i.bBox(this);v.attr(&quot;transform&quot;,f(h.p[0],h.p[1])+u(h.angle)+f(o.axis.labelpadding*d,.3*y.height)),g=Math.max(g,y.width+o.axis.labelpadding)})),d.exit().remove(),m.maxExtent=g,m}e.exports=function(t,e,r,i){var l=e.xaxis,u=e.yaxis,f=t._fullLayout._clips;c.makeTraceGroups(i,r,&quot;trace&quot;).each((function(e){var r=n.select(this),i=e[0],h=i.trace,g=h.aaxis,m=h.baxis,y=c.ensureSingle(r,&quot;g&quot;,&quot;minorlayer&quot;),x=c.ensureSingle(r,&quot;g&quot;,&quot;majorlayer&quot;),b=c.ensureSingle(r,&quot;g&quot;,&quot;boundarylayer&quot;),_=c.ensureSingle(r,&quot;g&quot;,&quot;labellayer&quot;);r.style(&quot;opacity&quot;,h.opacity),p(l,u,x,g,&quot;a&quot;,g._gridlines),p(l,u,x,m,&quot;b&quot;,m._gridlines),p(l,u,y,g,&quot;a&quot;,g._minorgridlines),p(l,u,y,m,&quot;b&quot;,m._minorgridlines),p(l,u,b,g,&quot;a-boundary&quot;,g._boundarylines),p(l,u,b,m,&quot;b-boundary&quot;,m._boundarylines);var w=d(t,l,u,h,i,_,g._labels,&quot;a-label&quot;),T=d(t,l,u,h,i,_,m._labels,&quot;b-label&quot;);!function(t,e,r,n,i,a,o,l){var u,f,h,p,d=c.aggNums(Math.min,null,r.a),g=c.aggNums(Math.max,null,r.a),m=c.aggNums(Math.min,null,r.b),y=c.aggNums(Math.max,null,r.b);u=.5*(d+g),f=m,h=r.ab2xy(u,f,!0),p=r.dxyda_rough(u,f),void 0===o.angle&amp;&amp;c.extendFlat(o,s(r,i,a,h,r.dxydb_rough(u,f)));v(t,e,r,n,h,p,r.aaxis,i,a,o,&quot;a-title&quot;),u=d,f=.5*(m+y),h=r.ab2xy(u,f,!0),p=r.dxydb_rough(u,f),void 0===l.angle&amp;&amp;c.extendFlat(l,s(r,i,a,h,r.dxyda_rough(u,f)));v(t,e,r,n,h,p,r.baxis,i,a,l,&quot;b-title&quot;)}(t,_,h,i,l,u,w,T),function(t,e,r,n,i){var s,l,u,f,h=r.select(&quot;#&quot;+t._clipPathId);h.size()||(h=r.append(&quot;clipPath&quot;).classed(&quot;carpetclip&quot;,!0));var p=c.ensureSingle(h,&quot;path&quot;,&quot;carpetboundary&quot;),d=e.clipsegments,g=[];for(f=0;f&lt;d.length;f++)s=d[f],l=a([],s.x,n.c2p),u=a([],s.y,i.c2p),g.push(o(l,u,s.bicubic));var m=&quot;M&quot;+g.join(&quot;L&quot;)+&quot;Z&quot;;h.attr(&quot;id&quot;,t._clipPathId),p.attr(&quot;d&quot;,m)}(h,i,f,l,u)}))};var g=h.LINE_SPACING,m=(1-h.MID_SHIFT)/g+1;function v(t,e,r,a,o,c,h,p,d,v,y){var x=[];h.title.text&amp;&amp;x.push(h.title.text);var b=e.selectAll(&quot;text.&quot;+y).data(x),_=v.maxExtent;b.enter().append(&quot;text&quot;).classed(y,!0),b.each((function(){var e=s(r,p,d,o,c);-1===[&quot;start&quot;,&quot;both&quot;].indexOf(h.showticklabels)&amp;&amp;(_=0);var a=h.title.font.size;_+=a+h.title.offset;var y=(v.angle+(v.flip&lt;0?180:0)-e.angle+450)%360,x=y&gt;90&amp;&amp;y&lt;270,b=n.select(this);b.text(h.title.text).call(l.convertToTspans,t),x&amp;&amp;(_=(-l.lineCount(b)+m)*g*a-_),b.attr(&quot;transform&quot;,f(e.p[0],e.p[1])+u(e.angle)+f(0,_)).attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(i.font,h.title.font)})),b.exit().remove()}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;./makepath&quot;:982,&quot;./map_1d_array&quot;:983,&quot;./orient_text&quot;:984,d3:169}],986:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib/search&quot;).findBin,a=t(&quot;./compute_control_points&quot;),o=t(&quot;./create_spline_evaluator&quot;),s=t(&quot;./create_i_derivative_evaluator&quot;),l=t(&quot;./create_j_derivative_evaluator&quot;);e.exports=function(t){var e=t._a,r=t._b,c=e.length,u=r.length,f=t.aaxis,h=t.baxis,p=e[0],d=e[c-1],g=r[0],m=r[u-1],v=e[e.length-1]-e[0],y=r[r.length-1]-r[0],x=v*n.RELATIVE_CULL_TOLERANCE,b=y*n.RELATIVE_CULL_TOLERANCE;p-=x,d+=x,g-=b,m+=b,t.isVisible=function(t,e){return t&gt;p&amp;&amp;t&lt;d&amp;&amp;e&gt;g&amp;&amp;e&lt;m},t.isOccluded=function(t,e){return t&lt;p||t&gt;d||e&lt;g||e&gt;m},t.setScale=function(){var e=t._x,r=t._y,n=a(t._xctrl,t._yctrl,e,r,f.smoothing,h.smoothing);t._xctrl=n[0],t._yctrl=n[1],t.evalxy=o([t._xctrl,t._yctrl],c,u,f.smoothing,h.smoothing),t.dxydi=s([t._xctrl,t._yctrl],f.smoothing,h.smoothing),t.dxydj=l([t._xctrl,t._yctrl],f.smoothing,h.smoothing)},t.i2a=function(t){var r=Math.max(0,Math.floor(t[0]),c-2),n=t[0]-r;return(1-n)*e[r]+n*e[r+1]},t.j2b=function(t){var e=Math.max(0,Math.floor(t[1]),c-2),n=t[1]-e;return(1-n)*r[e]+n*r[e+1]},t.ij2ab=function(e){return[t.i2a(e[0]),t.j2b(e[1])]},t.a2i=function(t){var r=Math.max(0,Math.min(i(t,e),c-2)),n=e[r],a=e[r+1];return Math.max(0,Math.min(c-1,r+(t-n)/(a-n)))},t.b2j=function(t){var e=Math.max(0,Math.min(i(t,r),u-2)),n=r[e],a=r[e+1];return Math.max(0,Math.min(u-1,e+(t-n)/(a-n)))},t.ab2ij=function(e){return[t.a2i(e[0]),t.b2j(e[1])]},t.i2c=function(e,r){return t.evalxy([],e,r)},t.ab2xy=function(n,i,a){if(!a&amp;&amp;(n&lt;e[0]||n&gt;e[c-1]|i&lt;r[0]||i&gt;r[u-1]))return[!1,!1];var o=t.a2i(n),s=t.b2j(i),l=t.evalxy([],o,s);if(a){var f,h,p,d,g=0,m=0,v=[];n&lt;e[0]?(f=0,h=0,g=(n-e[0])/(e[1]-e[0])):n&gt;e[c-1]?(f=c-2,h=1,g=(n-e[c-1])/(e[c-1]-e[c-2])):h=o-(f=Math.max(0,Math.min(c-2,Math.floor(o)))),i&lt;r[0]?(p=0,d=0,m=(i-r[0])/(r[1]-r[0])):i&gt;r[u-1]?(p=u-2,d=1,m=(i-r[u-1])/(r[u-1]-r[u-2])):d=s-(p=Math.max(0,Math.min(u-2,Math.floor(s)))),g&amp;&amp;(t.dxydi(v,f,p,h,d),l[0]+=v[0]*g,l[1]+=v[1]*g),m&amp;&amp;(t.dxydj(v,f,p,h,d),l[0]+=v[0]*m,l[1]+=v[1]*m)}return l},t.c2p=function(t,e,r){return[e.c2p(t[0]),r.c2p(t[1])]},t.p2x=function(t,e,r){return[e.p2c(t[0]),r.p2c(t[1])]},t.dadi=function(t){var r=Math.max(0,Math.min(e.length-2,t));return e[r+1]-e[r]},t.dbdj=function(t){var e=Math.max(0,Math.min(r.length-2,t));return r[e+1]-r[e]},t.dxyda=function(e,r,n,i){var a=t.dxydi(null,e,r,n,i),o=t.dadi(e,n);return[a[0]/o,a[1]/o]},t.dxydb=function(e,r,n,i){var a=t.dxydj(null,e,r,n,i),o=t.dbdj(r,i);return[a[0]/o,a[1]/o]},t.dxyda_rough=function(e,r,n){var i=v*(n||.1),a=t.ab2xy(e+i,r,!0),o=t.ab2xy(e-i,r,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dxydb_rough=function(e,r,n){var i=y*(n||.1),a=t.ab2xy(e,r+i,!0),o=t.ab2xy(e,r-i,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dpdx=function(t){return t._m},t.dpdy=function(t){return t._m}}},{&quot;../../lib/search&quot;:798,&quot;./compute_control_points&quot;:974,&quot;./constants&quot;:975,&quot;./create_i_derivative_evaluator&quot;:976,&quot;./create_j_derivative_evaluator&quot;:977,&quot;./create_spline_evaluator&quot;:978}],987:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r){var i,a,o,s=[],l=[],c=t[0].length,u=t.length;function f(e,r){var n,i=0,a=0;return e&gt;0&amp;&amp;void 0!==(n=t[r][e-1])&amp;&amp;(a++,i+=n),e&lt;c-1&amp;&amp;void 0!==(n=t[r][e+1])&amp;&amp;(a++,i+=n),r&gt;0&amp;&amp;void 0!==(n=t[r-1][e])&amp;&amp;(a++,i+=n),r&lt;u-1&amp;&amp;void 0!==(n=t[r+1][e])&amp;&amp;(a++,i+=n),i/Math.max(1,a)}var h,p,d,g,m,v,y,x,b,_,w,T=0;for(i=0;i&lt;c;i++)for(a=0;a&lt;u;a++)void 0===t[a][i]&amp;&amp;(s.push(i),l.push(a),t[a][i]=f(i,a)),T=Math.max(T,Math.abs(t[a][i]));if(!s.length)return t;var k=0,M=0,A=s.length;do{for(k=0,o=0;o&lt;A;o++){i=s[o],a=l[o];var S,E,C,L,I,P,z=0,O=0;0===i?(C=e[I=Math.min(c-1,2)],L=e[1],S=t[a][I],O+=(E=t[a][1])+(E-S)*(e[0]-L)/(L-C),z++):i===c-1&amp;&amp;(C=e[I=Math.max(0,c-3)],L=e[c-2],S=t[a][I],O+=(E=t[a][c-2])+(E-S)*(e[c-1]-L)/(L-C),z++),(0===i||i===c-1)&amp;&amp;a&gt;0&amp;&amp;a&lt;u-1&amp;&amp;(h=r[a+1]-r[a],O+=((p=r[a]-r[a-1])*t[a+1][i]+h*t[a-1][i])/(p+h),z++),0===a?(C=r[P=Math.min(u-1,2)],L=r[1],S=t[P][i],O+=(E=t[1][i])+(E-S)*(r[0]-L)/(L-C),z++):a===u-1&amp;&amp;(C=r[P=Math.max(0,u-3)],L=r[u-2],S=t[P][i],O+=(E=t[u-2][i])+(E-S)*(r[u-1]-L)/(L-C),z++),(0===a||a===u-1)&amp;&amp;i&gt;0&amp;&amp;i&lt;c-1&amp;&amp;(h=e[i+1]-e[i],O+=((p=e[i]-e[i-1])*t[a][i+1]+h*t[a][i-1])/(p+h),z++),z?O/=z:(d=e[i+1]-e[i],g=e[i]-e[i-1],x=(m=r[a+1]-r[a])*(v=r[a]-r[a-1])*(m+v),O=((y=d*g*(d+g))*(v*t[a+1][i]+m*t[a-1][i])+x*(g*t[a][i+1]+d*t[a][i-1]))/(x*(g+d)+y*(v+m))),k+=(_=(b=O-t[a][i])/T)*_,w=z?0:.85,t[a][i]+=b*(1+w)}k=Math.sqrt(k)}while(M++&lt;100&amp;&amp;k&gt;1e-5);return n.log(&quot;Smoother converged to&quot;,k,&quot;after&quot;,M,&quot;iterations&quot;),t}},{&quot;../../lib&quot;:778}],988:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArray1D;e.exports=function(t,e,r){var i=r(&quot;x&quot;),a=i&amp;&amp;i.length,o=r(&quot;y&quot;),s=o&amp;&amp;o.length;if(!a&amp;&amp;!s)return!1;if(e._cheater=!i,a&amp;&amp;!n(i)||s&amp;&amp;!n(o))e._length=null;else{var l=a?i.length:1/0;s&amp;&amp;(l=Math.min(l,o.length)),e.a&amp;&amp;e.a.length&amp;&amp;(l=Math.min(l,e.a.length)),e.b&amp;&amp;e.b.length&amp;&amp;(l=Math.min(l,e.b.length)),e._length=l}return!0}},{&quot;../../lib&quot;:778}],989:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../scattergeo/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/color/attributes&quot;).defaultLine,l=t(&quot;../../lib/extend&quot;).extendFlat,c=i.marker.line;e.exports=l({locations:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},locationmode:i.locationmode,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},geojson:l({},i.geojson,{}),featureidkey:i.featureidkey,text:l({},i.text,{}),hovertext:l({},i.hovertext,{}),marker:{line:{color:l({},c.color,{dflt:s}),width:l({},c.width,{dflt:1}),editType:&quot;calc&quot;},opacity:{valType:&quot;number&quot;,arrayOk:!0,min:0,max:1,dflt:1,editType:&quot;style&quot;},editType:&quot;calc&quot;},selected:{marker:{opacity:i.selected.marker.opacity,editType:&quot;plot&quot;},editType:&quot;plot&quot;},unselected:{marker:{opacity:i.unselected.marker.opacity,editType:&quot;plot&quot;},editType:&quot;plot&quot;},hoverinfo:l({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;location&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n(),showlegend:l({},o.showlegend,{dflt:!1})},a(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/color/attributes&quot;:642,&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scattergeo/attributes&quot;:1229}],990:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../components/colorscale/calc&quot;),o=t(&quot;../scatter/arrays_to_calcdata&quot;),s=t(&quot;../scatter/calc_selection&quot;);function l(t){return t&amp;&amp;&quot;string&quot;==typeof t}e.exports=function(t,e){var r,c=e._length,u=new Array(c);r=e.geojson?function(t){return l(t)||n(t)}:l;for(var f=0;f&lt;c;f++){var h=u[f]={},p=e.locations[f],d=e.z[f];r(p)&amp;&amp;n(d)?(h.loc=p,h.z=d):(h.loc=null,h.z=i),h.index=f}return o(u,e),a(t,e,{vals:e.z,containerStr:&quot;&quot;,cLetter:&quot;z&quot;}),s(u,e),u}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../constants/numerical&quot;:753,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc_selection&quot;:1189,&quot;fast-isnumeric&quot;:241}],991:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;locations&quot;),c=s(&quot;z&quot;);if(l&amp;&amp;l.length&amp;&amp;n.isArrayOrTypedArray(c)&amp;&amp;c.length){e._length=Math.min(l.length,c.length);var u,f=s(&quot;geojson&quot;);(&quot;string&quot;==typeof f&amp;&amp;&quot;&quot;!==f||n.isPlainObject(f))&amp;&amp;(u=&quot;geojson-id&quot;),&quot;geojson-id&quot;===s(&quot;locationmode&quot;,u)&amp;&amp;s(&quot;featureidkey&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;marker.line.width&quot;)&amp;&amp;s(&quot;marker.line.color&quot;),s(&quot;marker.opacity&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),n.coerceSelectionMarkerOpacity(e,s)}else e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:989}],992:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){t.location=e.location,t.z=e.z;var a=n[i];return a.fIn&amp;&amp;a.fIn.properties&amp;&amp;(t.properties=a.fIn.properties),t.ct=a.ct,t}},{}],993:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../lib&quot;).fillText;e.exports=function(t,e,r){var o,s,l,c,u=t.cd,f=u[0].trace,h=t.subplot,p=[e,r],d=[e+360,r];for(s=0;s&lt;u.length;s++)if(c=!1,(o=u[s])._polygons){for(l=0;l&lt;o._polygons.length;l++)o._polygons[l].contains(p)&amp;&amp;(c=!c),o._polygons[l].contains(d)&amp;&amp;(c=!c);if(c)break}if(c&amp;&amp;o)return t.x0=t.x1=t.xa.c2p(o.ct),t.y0=t.y1=t.ya.c2p(o.ct),t.index=o.index,t.location=o.loc,t.z=o.z,t.zLabel=n.tickText(h.mockAxis,h.mockAxis.c2l(o.z),&quot;hover&quot;).text,t.hovertemplate=o.hovertemplate,function(t,e,r){if(e.hovertemplate)return;var n=r.hi||e.hoverinfo,o=String(r.loc),s=&quot;all&quot;===n?i.hoverinfo.flags:n.split(&quot;+&quot;),l=-1!==s.indexOf(&quot;name&quot;),c=-1!==s.indexOf(&quot;location&quot;),u=-1!==s.indexOf(&quot;z&quot;),f=-1!==s.indexOf(&quot;text&quot;),h=[];!l&amp;&amp;c?t.nameOverride=o:(l&amp;&amp;(t.nameOverride=e.name),c&amp;&amp;h.push(o));u&amp;&amp;h.push(t.zLabel);f&amp;&amp;a(r,e,h);t.extraText=h.join(&quot;&lt;br&gt;&quot;)}(t,f,o),[t]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:989}],994:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;./calc&quot;),calcGeoJSON:t(&quot;./plot&quot;).calcGeoJSON,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;choropleth&quot;,basePlotModule:t(&quot;../../plots/geo&quot;),categories:[&quot;geo&quot;,&quot;noOpacity&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/geo&quot;:860,&quot;../heatmap/colorbar&quot;:1068,&quot;./attributes&quot;:989,&quot;./calc&quot;:990,&quot;./defaults&quot;:991,&quot;./event_data&quot;:992,&quot;./hover&quot;:993,&quot;./plot&quot;:995,&quot;./select&quot;:996,&quot;./style&quot;:997}],995:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/geo_location_utils&quot;),o=t(&quot;../../lib/topojson_utils&quot;).getTopojsonFeatures,s=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,l=t(&quot;./style&quot;).style;e.exports={calcGeoJSON:function(t,e){for(var r=t[0].trace,n=e[r.geo],i=n._subplot,l=r.locationmode,c=r._length,u=&quot;geojson-id&quot;===l?a.extractTraceFeature(t):o(r,i.topojson),f=[],h=[],p=0;p&lt;c;p++){var d=t[p],g=&quot;geojson-id&quot;===l?d.fOut:a.locationToFeature(l,d.loc,u);if(g){d.geojson=g,d.ct=g.properties.ct,d._polygons=a.feature2polygons(g);var m=a.computeBbox(g);f.push(m[0],m[2]),h.push(m[1],m[3])}else d.geojson=null}if(&quot;geojson&quot;===n.fitbounds&amp;&amp;&quot;geojson-id&quot;===l){var v=a.computeBbox(a.getTraceGeojson(r));f=[v[0],v[2]],h=[v[1],v[3]]}var y={padded:!0};r._extremes.lon=s(n.lonaxis._ax,f,y),r._extremes.lat=s(n.lataxis._ax,h,y)},plot:function(t,e,r){var a=e.layers.backplot.select(&quot;.choroplethlayer&quot;);i.makeTraceGroups(a,r,&quot;trace choropleth&quot;).each((function(e){var r=n.select(this).selectAll(&quot;path.choroplethlocation&quot;).data(i.identity);r.enter().append(&quot;path&quot;).classed(&quot;choroplethlocation&quot;,!0),r.exit().remove(),l(t,e)}))}}},{&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/topojson_utils&quot;:806,&quot;../../plots/cartesian/autorange&quot;:827,&quot;./style&quot;:997,d3:169}],996:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[];if(!1===e)for(r=0;r&lt;s.length;r++)s[r].selected=0;else for(r=0;r&lt;s.length;r++)(i=(n=s[r]).ct)&amp;&amp;(a=l.c2p(i),o=c.c2p(i),e.contains([a,o],null,r,t)?(u.push({pointNumber:r,lon:i[0],lat:i[1]}),n.selected=1):n.selected=0);return u}},{}],997:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../components/colorscale&quot;);function s(t,e){var r=e[0].trace,s=e[0].node3.selectAll(&quot;.choroplethlocation&quot;),l=r.marker||{},c=l.line||{},u=o.makeColorScaleFuncFromTrace(r);s.each((function(t){n.select(this).attr(&quot;fill&quot;,u(t.z)).call(i.stroke,t.mlc||c.color).call(a.dashLine,&quot;&quot;,t.mlw||c.width||0).style(&quot;opacity&quot;,l.opacity)})),a.selectedPointStyle(s,r,t)}e.exports={style:function(t,e){e&amp;&amp;s(t,e)},styleOnSelect:function(t,e){var r=e[0].node3,n=e[0].trace;n.selectedpoints?a.selectedPointStyle(r.selectAll(&quot;.choroplethlocation&quot;),n,t):s(t,e)}}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,d3:169}],998:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../choropleth/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({locations:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},geojson:{valType:&quot;any&quot;,editType:&quot;calc&quot;},featureidkey:s({},n.featureidkey,{}),below:{valType:&quot;string&quot;,editType:&quot;plot&quot;},text:n.text,hovertext:n.hovertext,marker:{line:{color:s({},n.marker.line.color,{editType:&quot;plot&quot;}),width:s({},n.marker.line.width,{editType:&quot;plot&quot;}),editType:&quot;calc&quot;},opacity:s({},n.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;calc&quot;},selected:{marker:{opacity:s({},n.selected.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},editType:&quot;plot&quot;},unselected:{marker:{opacity:s({},n.unselected.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},editType:&quot;plot&quot;},hoverinfo:n.hoverinfo,hovertemplate:a({},{keys:[&quot;properties&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})},i(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../choropleth/attributes&quot;:989}],999:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib/geojson_utils&quot;).makeBlank,l=t(&quot;../../lib/geo_location_utils&quot;);function c(t){var e,r=t[0].trace,n=r._opts;if(r.selectedpoints){for(var a=o.makeSelectedPointStyleFns(r),s=0;s&lt;t.length;s++){var l=t[s];l.fOut&amp;&amp;(l.fOut.properties.mo2=a.selectedOpacityFn(l))}e={type:&quot;identity&quot;,property:&quot;mo2&quot;}}else e=i.isArrayOrTypedArray(r.marker.opacity)?{type:&quot;identity&quot;,property:&quot;mo&quot;}:r.marker.opacity;return i.extendFlat(n.fill.paint,{&quot;fill-opacity&quot;:e}),i.extendFlat(n.line.paint,{&quot;line-opacity&quot;:e}),n}e.exports={convert:function(t){var e=t[0].trace,r=!0===e.visible&amp;&amp;0!==e._length,o={layout:{visibility:&quot;none&quot;},paint:{}},u={layout:{visibility:&quot;none&quot;},paint:{}},f=e._opts={fill:o,line:u,geojson:s()};if(!r)return f;var h=l.extractTraceFeature(t);if(!h)return f;var p,d,g,m=a.makeColorScaleFuncFromTrace(e),v=e.marker,y=v.line||{};i.isArrayOrTypedArray(v.opacity)&amp;&amp;(p=function(t){var e=t.mo;return n(e)?+i.constrain(e,0,1):0}),i.isArrayOrTypedArray(y.color)&amp;&amp;(d=function(t){return t.mlc}),i.isArrayOrTypedArray(y.width)&amp;&amp;(g=function(t){return t.mlw});for(var x=0;x&lt;t.length;x++){var b=t[x],_=b.fOut;if(_){var w=_.properties;w.fc=m(b.z),p&amp;&amp;(w.mo=p(b)),d&amp;&amp;(w.mlc=d(b)),g&amp;&amp;(w.mlw=g(b)),b.ct=w.ct,b._polygons=l.feature2polygons(_)}}var T=p?{type:&quot;identity&quot;,property:&quot;mo&quot;}:v.opacity;return i.extendFlat(o.paint,{&quot;fill-color&quot;:{type:&quot;identity&quot;,property:&quot;fc&quot;},&quot;fill-opacity&quot;:T}),i.extendFlat(u.paint,{&quot;line-color&quot;:d?{type:&quot;identity&quot;,property:&quot;mlc&quot;}:y.color,&quot;line-width&quot;:g?{type:&quot;identity&quot;,property:&quot;mlw&quot;}:y.width,&quot;line-opacity&quot;:T}),o.layout.visibility=&quot;visible&quot;,u.layout.visibility=&quot;visible&quot;,f.geojson={type:&quot;FeatureCollection&quot;,features:h},c(t),f},convertOnSelect:c}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/geojson_utils&quot;:772,&quot;fast-isnumeric&quot;:241}],1e3:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;locations&quot;),c=s(&quot;z&quot;),u=s(&quot;geojson&quot;);n.isArrayOrTypedArray(l)&amp;&amp;l.length&amp;&amp;n.isArrayOrTypedArray(c)&amp;&amp;c.length&amp;&amp;(&quot;string&quot;==typeof u&amp;&amp;&quot;&quot;!==u||n.isPlainObject(u))?(s(&quot;featureidkey&quot;),e._length=Math.min(l.length,c.length),s(&quot;below&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;marker.line.width&quot;)&amp;&amp;s(&quot;marker.line.color&quot;),s(&quot;marker.opacity&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),n.coerceSelectionMarkerOpacity(e,s)):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:998}],1001:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;../choropleth/calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;../choropleth/hover&quot;),eventData:t(&quot;../choropleth/event_data&quot;),selectPoints:t(&quot;../choropleth/select&quot;),styleOnSelect:function(t,e){e&amp;&amp;e[0].trace._glTrace.updateOnSelect(e)},getBelow:function(t,e){for(var r=e.getMapLayers(),n=r.length-2;n&gt;=0;n--){var i=r[n].id;if(&quot;string&quot;==typeof i&amp;&amp;0===i.indexOf(&quot;water&quot;))for(var a=n+1;a&lt;r.length;a++)if(&quot;string&quot;==typeof(i=r[a].id)&amp;&amp;-1===i.indexOf(&quot;plotly-&quot;))return i}},moduleType:&quot;trace&quot;,name:&quot;choroplethmapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;noOpacity&quot;,&quot;showLegend&quot;],meta:{hr_name:&quot;choropleth_mapbox&quot;}}},{&quot;../../plots/mapbox&quot;:885,&quot;../choropleth/calc&quot;:990,&quot;../choropleth/event_data&quot;:992,&quot;../choropleth/hover&quot;:993,&quot;../choropleth/select&quot;:996,&quot;../heatmap/colorbar&quot;:1068,&quot;./attributes&quot;:998,&quot;./defaults&quot;:1e3,&quot;./plot&quot;:1002}],1002:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;).convert,i=t(&quot;./convert&quot;).convertOnSelect,a=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix;function o(t,e){this.type=&quot;choroplethmapbox&quot;,this.subplot=t,this.uid=e,this.sourceId=&quot;source-&quot;+e,this.layerList=[[&quot;fill&quot;,a+e+&quot;-fill&quot;],[&quot;line&quot;,a+e+&quot;-line&quot;]],this.below=null}var s=o.prototype;s.update=function(t){this._update(n(t))},s.updateOnSelect=function(t){this._update(i(t))},s._update=function(t){var e=this.subplot,r=this.layerList,n=e.belowLookup[&quot;trace-&quot;+this.uid];e.map.getSource(this.sourceId).setData(t.geojson),n!==this.below&amp;&amp;(this._removeLayers(),this._addLayers(t,n),this.below=n);for(var i=0;i&lt;r.length;i++){var a=r[i],o=a[0],s=a[1],l=t[o];e.setOptions(s,&quot;setLayoutProperty&quot;,l.layout),&quot;visible&quot;===l.layout.visibility&amp;&amp;e.setOptions(s,&quot;setPaintProperty&quot;,l.paint)}},s._addLayers=function(t,e){for(var r=this.subplot,n=this.layerList,i=this.sourceId,a=0;a&lt;n.length;a++){var o=n[a],s=o[0],l=t[s];r.addLayer({type:s,id:o[1],source:i,layout:l.layout,paint:l.paint},e)}},s._removeLayers=function(){for(var t=this.subplot.map,e=this.layerList,r=e.length-1;r&gt;=0;r--)t.removeLayer(e[r][1])},s.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new o(t,r.uid),a=i.sourceId,s=n(e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid];return t.map.addSource(a,{type:&quot;geojson&quot;,data:s.geojson}),i._addLayers(s,l),e[0].trace._glTrace=i,i}},{&quot;../../plots/mapbox/constants&quot;:883,&quot;./convert&quot;:999}],1003:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../mesh3d/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},u:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},v:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},w:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;absolute&quot;],editType:&quot;calc&quot;,dflt:&quot;scaled&quot;},sizeref:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0},anchor:{valType:&quot;enumerated&quot;,editType:&quot;calc&quot;,values:[&quot;tip&quot;,&quot;tail&quot;,&quot;cm&quot;,&quot;center&quot;],dflt:&quot;cm&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertemplate:i({editType:&quot;calc&quot;},{keys:[&quot;norm&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})};s(l,n(&quot;&quot;,{colorAttr:&quot;u/v/w norm&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}));[&quot;opacity&quot;,&quot;lightposition&quot;,&quot;lighting&quot;].forEach((function(t){l[t]=a[t]})),l.hoverinfo=s({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;norm&quot;,&quot;text&quot;,&quot;name&quot;],dflt:&quot;x+y+z+norm+text+name&quot;}),l.transforms=void 0,e.exports=l},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../mesh3d/attributes&quot;:1128}],1004:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){for(var r=e.u,i=e.v,a=e.w,o=Math.min(e.x.length,e.y.length,e.z.length,r.length,i.length,a.length),s=-1/0,l=1/0,c=0;c&lt;o;c++){var u=r[c],f=i[c],h=a[c],p=Math.sqrt(u*u+f*f+h*h);s=Math.max(s,p),l=Math.min(l,p)}e._len=o,e._normMax=s,n(t,e,{vals:[l,s],containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651}],1005:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-cone3d&quot;),i=t(&quot;gl-cone3d&quot;).createConeMesh,a=t(&quot;../../lib&quot;).simpleMap,o=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,s=t(&quot;../../components/colorscale&quot;).extractOpts,l=t(&quot;../../plots/gl3d/zip3&quot;);function c(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var u=c.prototype;u.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index,r=this.data.x[e],n=this.data.y[e],i=this.data.z[e],a=this.data.u[e],o=this.data.v[e],s=this.data.w[e];t.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return Array.isArray(l)&amp;&amp;void 0!==l[e]?t.textLabel=l[e]:l&amp;&amp;(t.textLabel=l),!0}};var f={xaxis:0,yaxis:1,zaxis:2},h={tip:1,tail:0,cm:.25,center:.5},p={tip:1,tail:1,cm:.75,center:.5};function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,c={};function u(t,e){var n=r[e],o=i[f[e]];return a(t,(function(t){return n.d2l(t)*o}))}c.vectors=l(u(e.u,&quot;xaxis&quot;),u(e.v,&quot;yaxis&quot;),u(e.w,&quot;zaxis&quot;),e._len),c.positions=l(u(e.x,&quot;xaxis&quot;),u(e.y,&quot;yaxis&quot;),u(e.z,&quot;zaxis&quot;),e._len);var d=s(e);c.colormap=o(e),c.vertexIntensityBounds=[d.min/e._normMax,d.max/e._normMax],c.coneOffset=h[e.anchor],&quot;scaled&quot;===e.sizemode?c.coneSize=e.sizeref||.5:c.coneSize=e.sizeref&amp;&amp;e._normMax?e.sizeref/e._normMax:.5;var g=n(c),m=e.lightposition;return g.lightPosition=[m.x,m.y,m.z],g.ambient=e.lighting.ambient,g.diffuse=e.lighting.diffuse,g.specular=e.lighting.specular,g.roughness=e.lighting.roughness,g.fresnel=e.lighting.fresnel,g.opacity=e.opacity,e._pad=p[e.anchor]*g.vectorScale*g.coneScale*e._normMax,g}u.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new c(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../plots/gl3d/zip3&quot;:881,&quot;gl-cone3d&quot;:260}],1006:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;u&quot;),c=s(&quot;v&quot;),u=s(&quot;w&quot;),f=s(&quot;x&quot;),h=s(&quot;y&quot;),p=s(&quot;z&quot;);l&amp;&amp;l.length&amp;&amp;c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length&amp;&amp;p&amp;&amp;p.length?(s(&quot;sizeref&quot;),s(&quot;sizemode&quot;),s(&quot;anchor&quot;),s(&quot;lighting.ambient&quot;),s(&quot;lighting.diffuse&quot;),s(&quot;lighting.specular&quot;),s(&quot;lighting.roughness&quot;),s(&quot;lighting.fresnel&quot;),s(&quot;lightposition.x&quot;),s(&quot;lightposition.y&quot;),s(&quot;lightposition.z&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:1003}],1007:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;cone&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;),plot:t(&quot;./convert&quot;),eventData:function(t,e){return t.norm=e.traceCoordinate[6],t},meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1003,&quot;./calc&quot;:1004,&quot;./convert&quot;:1005,&quot;./defaults&quot;:1006}],1008:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../components/drawing/attributes&quot;).dash,s=t(&quot;../../plots/font_attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=t(&quot;../../constants/filter_ops&quot;),u=c.COMPARISON_OPS2,f=c.INTERVAL_OPS,h=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,i.line);e.exports=l({z:n.z,x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,text:n.text,hovertext:n.hovertext,transpose:n.transpose,xtype:n.xtype,ytype:n.ytype,zhoverformat:n.zhoverformat,hovertemplate:n.hovertemplate,hoverongaps:n.hoverongaps,connectgaps:l({},n.connectgaps,{}),fillcolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},autocontour:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:{&quot;contours.start&quot;:void 0,&quot;contours.end&quot;:void 0,&quot;contours.size&quot;:void 0}},ncontours:{valType:&quot;integer&quot;,dflt:15,min:1,editType:&quot;calc&quot;},contours:{type:{valType:&quot;enumerated&quot;,values:[&quot;levels&quot;,&quot;constraint&quot;],dflt:&quot;levels&quot;,editType:&quot;calc&quot;},start:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},end:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},size:{valType:&quot;number&quot;,dflt:null,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},coloring:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;heatmap&quot;,&quot;lines&quot;,&quot;none&quot;],dflt:&quot;fill&quot;,editType:&quot;calc&quot;},showlines:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},showlabels:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},labelfont:s({editType:&quot;plot&quot;,colorEditType:&quot;style&quot;}),labelformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},operation:{valType:&quot;enumerated&quot;,values:[].concat(u).concat(f),dflt:&quot;=&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},editType:&quot;calc&quot;,impliedEdits:{autocontour:!1}},line:{color:l({},h.color,{editType:&quot;style+colorbars&quot;}),width:{valType:&quot;number&quot;,min:0,editType:&quot;style+colorbars&quot;},dash:o,smoothing:l({},h.smoothing,{}),editType:&quot;plot&quot;}},a(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing/attributes&quot;:664,&quot;../../constants/docs&quot;:748,&quot;../../constants/filter_ops&quot;:749,&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;../heatmap/attributes&quot;:1065,&quot;../scatter/attributes&quot;:1187}],1009:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale&quot;),i=t(&quot;../heatmap/calc&quot;),a=t(&quot;./set_contours&quot;),o=t(&quot;./end_plus&quot;);e.exports=function(t,e){var r=i(t,e),s=r[0].z;a(e,s);var l,c=e.contours,u=n.extractOpts(e);if(&quot;heatmap&quot;===c.coloring&amp;&amp;u.auto&amp;&amp;!1===e.autocontour){var f=c.start,h=o(c),p=c.size||1,d=Math.floor((h-f)/p)+1;isFinite(p)||(p=1,d=1);var g=f-p/2;l=[g,g+d*p]}else l=s;return n.calc(t,e,{vals:l,cLetter:&quot;z&quot;}),r}},{&quot;../../components/colorscale&quot;:655,&quot;../heatmap/calc&quot;:1066,&quot;./end_plus&quot;:1019,&quot;./set_contours&quot;:1027}],1010:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n=t[0],i=n.z;switch(e.type){case&quot;levels&quot;:var a=Math.min(i[0][0],i[0][1]);for(r=0;r&lt;t.length;r++){var o=t[r];o.prefixBoundary=!o.edgepaths.length&amp;&amp;(a&gt;o.level||o.starts.length&amp;&amp;a===o.level)}break;case&quot;constraint&quot;:if(n.prefixBoundary=!1,n.edgepaths.length)return;var s=n.x.length,l=n.y.length,c=-1/0,u=1/0;for(r=0;r&lt;l;r++)u=Math.min(u,i[r][0]),u=Math.min(u,i[r][s-1]),c=Math.max(c,i[r][0]),c=Math.max(c,i[r][s-1]);for(r=1;r&lt;s-1;r++)u=Math.min(u,i[0][r]),u=Math.min(u,i[l-1][r]),c=Math.max(c,i[0][r]),c=Math.max(c,i[l-1][r]);var f,h,p=e.value;switch(e._operation){case&quot;&gt;&quot;:p&gt;c&amp;&amp;(n.prefixBoundary=!0);break;case&quot;&lt;&quot;:(p&lt;u||n.starts.length&amp;&amp;p===u)&amp;&amp;(n.prefixBoundary=!0);break;case&quot;[]&quot;:f=Math.min(p[0],p[1]),((h=Math.max(p[0],p[1]))&lt;u||f&gt;c||n.starts.length&amp;&amp;h===u)&amp;&amp;(n.prefixBoundary=!0);break;case&quot;][&quot;:f=Math.min(p[0],p[1]),h=Math.max(p[0],p[1]),f&lt;u&amp;&amp;h&gt;c&amp;&amp;(n.prefixBoundary=!0)}}}},{}],1011:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale&quot;),i=t(&quot;./make_color_map&quot;),a=t(&quot;./end_plus&quot;);e.exports={min:&quot;zmin&quot;,max:&quot;zmax&quot;,calc:function(t,e,r){var o=e.contours,s=e.line,l=o.size||1,c=o.coloring,u=i(e,{isColorbar:!0});if(&quot;heatmap&quot;===c){var f=n.extractOpts(e);r._fillgradient=f.reversescale?n.flipScale(f.colorscale):f.colorscale,r._zrange=[f.min,f.max]}else&quot;fill&quot;===c&amp;&amp;(r._fillcolor=u);r._line={color:&quot;lines&quot;===c?u:s.color,width:!1!==o.showlines?s.width:0,dash:s.dash},r._levels={start:o.start,end:a(o),size:l}}}},{&quot;../../components/colorscale&quot;:655,&quot;./end_plus&quot;:1019,&quot;./make_color_map&quot;:1024}],1012:[function(t,e,r){&quot;use strict&quot;;e.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],1013:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./label_defaults&quot;),a=t(&quot;../../components/color&quot;),o=a.addOpacity,s=a.opacity,l=t(&quot;../../constants/filter_ops&quot;),c=l.CONSTRAINT_REDUCTION,u=l.COMPARISON_OPS2;e.exports=function(t,e,r,a,l,f){var h,p,d,g=e.contours,m=r(&quot;contours.operation&quot;);(g._operation=c[m],function(t,e){var r;-1===u.indexOf(e.operation)?(t(&quot;contours.value&quot;,[0,1]),Array.isArray(e.value)?e.value.length&gt;2?e.value=e.value.slice(2):0===e.length?e.value=[0,1]:e.length&lt;2?(r=parseFloat(e.value[0]),e.value=[r,r+1]):e.value=[parseFloat(e.value[0]),parseFloat(e.value[1])]:n(e.value)&amp;&amp;(r=parseFloat(e.value),e.value=[r,r+1])):(t(&quot;contours.value&quot;,0),n(e.value)||(Array.isArray(e.value)?e.value=parseFloat(e.value[0]):e.value=0))}(r,g),&quot;=&quot;===m?h=g.showlines=!0:(h=r(&quot;contours.showlines&quot;),d=r(&quot;fillcolor&quot;,o((t.line||{}).color||l,.5))),h)&amp;&amp;(p=r(&quot;line.color&quot;,d&amp;&amp;s(d)?o(e.fillcolor,1):l),r(&quot;line.width&quot;,2),r(&quot;line.dash&quot;));r(&quot;line.smoothing&quot;),i(r,a,p,f)}},{&quot;../../components/color&quot;:643,&quot;../../constants/filter_ops&quot;:749,&quot;./label_defaults&quot;:1023,&quot;fast-isnumeric&quot;:241}],1014:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/filter_ops&quot;),i=t(&quot;fast-isnumeric&quot;);function a(t,e){var r,a=Array.isArray(e);function o(t){return i(t)?+t:null}return-1!==n.COMPARISON_OPS2.indexOf(t)?r=o(a?e[0]:e):-1!==n.INTERVAL_OPS.indexOf(t)?r=a?[o(e[0]),o(e[1])]:[o(e),o(e)]:-1!==n.SET_OPS.indexOf(t)&amp;&amp;(r=a?e.map(o):[o(e)]),r}function o(t){return function(e){e=a(t,e);var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return{start:r,end:n,size:n-r}}}function s(t){return function(e){return{start:e=a(t,e),end:1/0,size:1/0}}}e.exports={&quot;[]&quot;:o(&quot;[]&quot;),&quot;][&quot;:o(&quot;][&quot;),&quot;&gt;&quot;:s(&quot;&gt;&quot;),&quot;&lt;&quot;:s(&quot;&lt;&quot;),&quot;=&quot;:s(&quot;=&quot;)}},{&quot;../../constants/filter_ops&quot;:749,&quot;fast-isnumeric&quot;:241}],1015:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i=n(&quot;contours.start&quot;),a=n(&quot;contours.end&quot;),o=!1===i||!1===a,s=r(&quot;contours.size&quot;);!(o?e.autocontour=!0:r(&quot;autocontour&quot;,!1))&amp;&amp;s||r(&quot;ncontours&quot;)}},{}],1016:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);function i(t){return n.extendFlat({},t,{edgepaths:n.extendDeep([],t.edgepaths),paths:n.extendDeep([],t.paths),starts:n.extendDeep([],t.starts)})}e.exports=function(t,e){var r,a,o,s=function(t){return t.reverse()},l=function(t){return t};switch(e){case&quot;=&quot;:case&quot;&lt;&quot;:return t;case&quot;&gt;&quot;:for(1!==t.length&amp;&amp;n.warn(&quot;Contour data invalid for the specified inequality operation.&quot;),a=t[0],r=0;r&lt;a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r&lt;a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(r=0;r&lt;a.starts.length;r++)a.starts[r]=s(a.starts[r]);return t;case&quot;][&quot;:var c=s;s=l,l=c;case&quot;[]&quot;:for(2!==t.length&amp;&amp;n.warn(&quot;Contour data invalid for the specified inequality range operation.&quot;),a=i(t[0]),o=i(t[1]),r=0;r&lt;a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r&lt;a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(r=0;r&lt;a.starts.length;r++)a.starts[r]=s(a.starts[r]);for(;o.edgepaths.length;)a.edgepaths.push(l(o.edgepaths.shift()));for(;o.paths.length;)a.paths.push(l(o.paths.shift()));for(;o.starts.length;)a.starts.push(l(o.starts.shift()));return[a]}}},{&quot;../../lib&quot;:778}],1017:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./constraint_defaults&quot;),s=t(&quot;./contours_defaults&quot;),l=t(&quot;./style_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}if(i(t,e,f,u)){a(t,e,u,f),f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;hoverongaps&quot;);var h=&quot;constraint&quot;===f(&quot;contours.type&quot;);f(&quot;connectgaps&quot;,n.isArray1D(e.z)),h?o(t,e,f,u,r):(s(t,e,f,(function(r){return n.coerce2(t,e,c,r)})),l(t,e,f,u))}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../heatmap/xyz_defaults&quot;:1079,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:1008,&quot;./constraint_defaults&quot;:1013,&quot;./contours_defaults&quot;:1015,&quot;./style_defaults&quot;:1029}],1018:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constraint_mapping&quot;),a=t(&quot;./end_plus&quot;);e.exports=function(t,e,r){for(var o=&quot;constraint&quot;===t.type?i[t._operation](t.value):t,s=o.size,l=[],c=a(o),u=r.trace._carpetTrace,f=u?{xaxis:u.aaxis,yaxis:u.baxis,x:r.a,y:r.b}:{xaxis:e.xaxis,yaxis:e.yaxis,x:r.x,y:r.y},h=o.start;h&lt;c;h+=s)if(l.push(n.extendFlat({level:h,crossings:{},starts:[],edgepaths:[],paths:[],z:r.z,smoothing:r.trace.line.smoothing},f)),l.length&gt;1e3){n.warn(&quot;Too many contours, clipping at 1000&quot;,t);break}return l}},{&quot;../../lib&quot;:778,&quot;./constraint_mapping&quot;:1014,&quot;./end_plus&quot;:1019}],1019:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t.end+t.size/1e6}},{}],1020:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constants&quot;);function a(t,e,r,n){return Math.abs(t[0]-e[0])&lt;r&amp;&amp;Math.abs(t[1]-e[1])&lt;n}function o(t,e,r,o,l){var c,u=e.join(&quot;,&quot;),f=t.crossings[u],h=function(t,e,r){var n=0,a=0;t&gt;20&amp;&amp;e?208===t||1114===t?n=0===r[0]?1:-1:a=0===r[1]?1:-1:-1!==i.BOTTOMSTART.indexOf(t)?a=1:-1!==i.LEFTSTART.indexOf(t)?n=1:-1!==i.TOPSTART.indexOf(t)?a=-1:n=-1;return[n,a]}(f,r,e),p=[s(t,e,[-h[0],-h[1]])],d=t.z.length,g=t.z[0].length,m=e.slice(),v=h.slice();for(c=0;c&lt;1e4;c++){if(f&gt;20?(f=i.CHOOSESADDLE[f][(h[0]||h[1])&lt;0?0:1],t.crossings[u]=i.SADDLEREMAINDER[f]):delete t.crossings[u],!(h=i.NEWDELTA[f])){n.log(&quot;Found bad marching index:&quot;,f,e,t.level);break}p.push(s(t,e,h)),e[0]+=h[0],e[1]+=h[1],u=e.join(&quot;,&quot;),a(p[p.length-1],p[p.length-2],o,l)&amp;&amp;p.pop();var y=h[0]&amp;&amp;(e[0]&lt;0||e[0]&gt;g-2)||h[1]&amp;&amp;(e[1]&lt;0||e[1]&gt;d-2);if(e[0]===m[0]&amp;&amp;e[1]===m[1]&amp;&amp;h[0]===v[0]&amp;&amp;h[1]===v[1]||r&amp;&amp;y)break;f=t.crossings[u]}1e4===c&amp;&amp;n.log(&quot;Infinite loop in contour?&quot;);var x,b,_,w,T,k,M,A,S,E,C,L,I,P,z,O=a(p[0],p[p.length-1],o,l),D=0,R=.2*t.smoothing,F=[],B=0;for(c=1;c&lt;p.length;c++)L=p[c],I=p[c-1],P=void 0,z=void 0,P=L[2]-I[2],z=L[3]-I[3],D+=M=Math.sqrt(P*P+z*z),F.push(M);var N=D/F.length*R;function j(t){return p[t%p.length]}for(c=p.length-2;c&gt;=B;c--)if((x=F[c])&lt;N){for(_=0,b=c-1;b&gt;=B&amp;&amp;x+F[b]&lt;N;b--)x+=F[b];if(O&amp;&amp;c===p.length-2)for(_=0;_&lt;b&amp;&amp;x+F[_]&lt;N;_++)x+=F[_];T=c-b+_+1,k=Math.floor((c+b+_+2)/2),w=O||c!==p.length-2?O||-1!==b?T%2?j(k):[(j(k)[0]+j(k+1)[0])/2,(j(k)[1]+j(k+1)[1])/2]:p[0]:p[p.length-1],p.splice(b+1,c-b+1,w),c=b+1,_&amp;&amp;(B=_),O&amp;&amp;(c===p.length-2?p[_]=p[p.length-1]:0===c&amp;&amp;(p[p.length-1]=p[0]))}for(p.splice(0,B),c=0;c&lt;p.length;c++)p[c].length=2;if(!(p.length&lt;2))if(O)p.pop(),t.paths.push(p);else{r||n.log(&quot;Unclosed interior contour?&quot;,t.level,m.join(&quot;,&quot;),p.join(&quot;L&quot;));var U=!1;for(A=0;A&lt;t.edgepaths.length;A++)if(E=t.edgepaths[A],!U&amp;&amp;a(E[0],p[p.length-1],o,l)){p.pop(),U=!0;var V=!1;for(S=0;S&lt;t.edgepaths.length;S++)if(a((C=t.edgepaths[S])[C.length-1],p[0],o,l)){V=!0,p.shift(),t.edgepaths.splice(A,1),S===A?t.paths.push(p.concat(C)):(S&gt;A&amp;&amp;S--,t.edgepaths[S]=C.concat(p,E));break}V||(t.edgepaths[A]=p.concat(E))}for(A=0;A&lt;t.edgepaths.length&amp;&amp;!U;A++)a((E=t.edgepaths[A])[E.length-1],p[0],o,l)&amp;&amp;(p.shift(),t.edgepaths[A]=E.concat(p),U=!0);U||t.edgepaths.push(p)}}function s(t,e,r){var n=e[0]+Math.max(r[0],0),i=e[1]+Math.max(r[1],0),a=t.z[i][n],o=t.xaxis,s=t.yaxis;if(r[1]){var l=(t.level-a)/(t.z[i][n+1]-a);return[o.c2p((1-l)*t.x[n]+l*t.x[n+1],!0),s.c2p(t.y[i],!0),n+l,i]}var c=(t.level-a)/(t.z[i+1][n]-a);return[o.c2p(t.x[n],!0),s.c2p((1-c)*t.y[i]+c*t.y[i+1],!0),n,i+c]}e.exports=function(t,e,r){var i,a,s,l;for(e=e||.01,r=r||.01,a=0;a&lt;t.length;a++){for(s=t[a],l=0;l&lt;s.starts.length;l++)o(s,s.starts[l],&quot;edge&quot;,e,r);for(i=0;Object.keys(s.crossings).length&amp;&amp;i&lt;1e4;)i++,o(s,Object.keys(s.crossings)[0].split(&quot;,&quot;).map(Number),void 0,e,r);1e4===i&amp;&amp;n.log(&quot;Infinite loop in contour?&quot;)}}},{&quot;../../lib&quot;:778,&quot;./constants&quot;:1012}],1021:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../heatmap/hover&quot;);e.exports=function(t,e,r,a,o){var s=i(t,e,r,a,o,!0);return s&amp;&amp;s.forEach((function(t){var e=t.trace;&quot;constraint&quot;===e.contours.type&amp;&amp;(e.fillcolor&amp;&amp;n.opacity(e.fillcolor)?t.color=n.addOpacity(e.fillcolor,1):e.contours.showlines&amp;&amp;n.opacity(e.line.color)&amp;&amp;(t.color=n.addOpacity(e.line.color,1)))})),s}},{&quot;../../components/color&quot;:643,&quot;../heatmap/hover&quot;:1072}],1022:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),colorbar:t(&quot;./colorbar&quot;),hoverPoints:t(&quot;./hover&quot;),moduleType:&quot;trace&quot;,name:&quot;contour&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;contour&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1008,&quot;./calc&quot;:1009,&quot;./colorbar&quot;:1011,&quot;./defaults&quot;:1017,&quot;./hover&quot;:1021,&quot;./plot&quot;:1026,&quot;./style&quot;:1028}],1023:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r,i){if(i||(i={}),t(&quot;contours.showlabels&quot;)){var a=e.font;n.coerceFont(t,&quot;contours.labelfont&quot;,{family:a.family,size:a.size,color:r}),t(&quot;contours.labelformat&quot;)}!1!==i.hasHover&amp;&amp;t(&quot;zhoverformat&quot;)}},{&quot;../../lib&quot;:778}],1024:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/colorscale&quot;),a=t(&quot;./end_plus&quot;);e.exports=function(t){var e=t.contours,r=e.start,o=a(e),s=e.size||1,l=Math.floor((o-r)/s)+1,c=&quot;lines&quot;===e.coloring?0:1,u=i.extractOpts(t);isFinite(s)||(s=1,l=1);var f,h,p=u.reversescale?i.flipScale(u.colorscale):u.colorscale,d=p.length,g=new Array(d),m=new Array(d);if(&quot;heatmap&quot;===e.coloring){var v=u.min,y=u.max;for(h=0;h&lt;d;h++)f=p[h],g[h]=f[0]*(y-v)+v,m[h]=f[1];var x=n.extent([v,y,e.start,e.start+s*(l-1)]),b=x[v&lt;y?0:1],_=x[v&lt;y?1:0];b!==v&amp;&amp;(g.splice(0,0,b),m.splice(0,0,m[0])),_!==y&amp;&amp;(g.push(_),m.push(m[m.length-1]))}else for(h=0;h&lt;d;h++)f=p[h],g[h]=(f[0]*(l+c-1)-c/2)*s+r,m[h]=f[1];return i.makeColorScaleFunc({domain:g,range:m},{noNumericCheck:!0})}},{&quot;../../components/colorscale&quot;:655,&quot;./end_plus&quot;:1019,d3:169}],1025:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);function i(t,e){var r=(e[0][0]&gt;t?0:1)+(e[0][1]&gt;t?0:2)+(e[1][1]&gt;t?0:4)+(e[1][0]&gt;t?0:8);return 5===r||10===r?t&gt;(e[0][0]+e[0][1]+e[1][0]+e[1][1])/4?5===r?713:1114:5===r?104:208:15===r?0:r}e.exports=function(t){var e,r,a,o,s,l,c,u,f,h=t[0].z,p=h.length,d=h[0].length,g=2===p||2===d;for(r=0;r&lt;p-1;r++)for(o=[],0===r&amp;&amp;(o=o.concat(n.BOTTOMSTART)),r===p-2&amp;&amp;(o=o.concat(n.TOPSTART)),e=0;e&lt;d-1;e++)for(a=o.slice(),0===e&amp;&amp;(a=a.concat(n.LEFTSTART)),e===d-2&amp;&amp;(a=a.concat(n.RIGHTSTART)),s=e+&quot;,&quot;+r,l=[[h[r][e],h[r][e+1]],[h[r+1][e],h[r+1][e+1]]],f=0;f&lt;t.length;f++)(c=i((u=t[f]).level,l))&amp;&amp;(u.crossings[s]=c,-1!==a.indexOf(c)&amp;&amp;(u.starts.push([e,r]),g&amp;&amp;-1!==a.indexOf(c,a.indexOf(c)+1)&amp;&amp;u.starts.push([e,r])))}},{&quot;./constants&quot;:1012}],1026:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../components/colorscale&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;../../plots/cartesian/set_convert&quot;),u=t(&quot;../heatmap/plot&quot;),f=t(&quot;./make_crossings&quot;),h=t(&quot;./find_all_paths&quot;),p=t(&quot;./empty_pathinfo&quot;),d=t(&quot;./convert_to_constraints&quot;),g=t(&quot;./close_boundaries&quot;),m=t(&quot;./constants&quot;),v=m.LABELOPTIMIZER;function y(t,e){var r,n,o,s,l,c,u,f=&quot;&quot;,h=0,p=t.edgepaths.map((function(t,e){return e})),d=!0;function g(t){return Math.abs(t[1]-e[2][1])&lt;.01}function m(t){return Math.abs(t[0]-e[0][0])&lt;.01}function v(t){return Math.abs(t[0]-e[2][0])&lt;.01}for(;p.length;){for(c=a.smoothopen(t.edgepaths[h],t.smoothing),f+=d?c:c.replace(/^M/,&quot;L&quot;),p.splice(p.indexOf(h),1),r=t.edgepaths[h][t.edgepaths[h].length-1],s=-1,o=0;o&lt;4;o++){if(!r){i.log(&quot;Missing end?&quot;,h,t);break}for(u=r,Math.abs(u[1]-e[0][1])&lt;.01&amp;&amp;!v(r)?n=e[1]:m(r)?n=e[0]:g(r)?n=e[3]:v(r)&amp;&amp;(n=e[2]),l=0;l&lt;t.edgepaths.length;l++){var y=t.edgepaths[l][0];Math.abs(r[0]-n[0])&lt;.01?Math.abs(r[0]-y[0])&lt;.01&amp;&amp;(y[1]-r[1])*(n[1]-y[1])&gt;=0&amp;&amp;(n=y,s=l):Math.abs(r[1]-n[1])&lt;.01?Math.abs(r[1]-y[1])&lt;.01&amp;&amp;(y[0]-r[0])*(n[0]-y[0])&gt;=0&amp;&amp;(n=y,s=l):i.log(&quot;endpt to newendpt is not vert. or horz.&quot;,r,n,y)}if(r=n,s&gt;=0)break;f+=&quot;L&quot;+n}if(s===t.edgepaths.length){i.log(&quot;unclosed perimeter path&quot;);break}h=s,(d=-1===p.indexOf(h))&amp;&amp;(h=p[0],f+=&quot;Z&quot;)}for(h=0;h&lt;t.paths.length;h++)f+=a.smoothclosed(t.paths[h],t.smoothing);return f}function x(t,e,r,n){var a=e.width/2,o=e.height/2,s=t.x,l=t.y,c=t.theta,u=Math.cos(c)*a,f=Math.sin(c)*a,h=(s&gt;n.center?n.right-s:s-n.left)/(u+Math.abs(Math.sin(c)*o)),p=(l&gt;n.middle?n.bottom-l:l-n.top)/(Math.abs(f)+Math.cos(c)*o);if(h&lt;1||p&lt;1)return 1/0;var d=v.EDGECOST*(1/(h-1)+1/(p-1));d+=v.ANGLECOST*c*c;for(var g=s-u,m=l-f,y=s+u,x=l+f,b=0;b&lt;r.length;b++){var _=r[b],w=Math.cos(_.theta)*_.width/2,T=Math.sin(_.theta)*_.width/2,k=2*i.segmentDistance(g,m,y,x,_.x-w,_.y-T,_.x+w,_.y+T)/(e.height+_.height),M=_.level===e.level,A=M?v.SAMELEVELDISTANCE:1;if(k&lt;=A)return 1/0;d+=v.NEIGHBORCOST*(M?v.SAMELEVELFACTOR:1)/(k-A)}return d}function b(t){var e,r,n=t.trace._emptypoints,i=[],a=t.z.length,o=t.z[0].length,s=[];for(e=0;e&lt;o;e++)s.push(1);for(e=0;e&lt;a;e++)i.push(s.slice());for(e=0;e&lt;n.length;e++)i[(r=n[e])[0]][r[1]]=0;return t.zmask=i,i}r.plot=function(t,e,o,s){var l=e.xaxis,c=e.yaxis;i.makeTraceGroups(s,o,&quot;contour&quot;).each((function(o){var s=n.select(this),v=o[0],x=v.trace,_=v.x,w=v.y,T=x.contours,k=p(T,e,v),M=i.ensureSingle(s,&quot;g&quot;,&quot;heatmapcoloring&quot;),A=[];&quot;heatmap&quot;===T.coloring&amp;&amp;(A=[o]),u(t,e,A,M),f(k),h(k);var S=l.c2p(_[0],!0),E=l.c2p(_[_.length-1],!0),C=c.c2p(w[0],!0),L=c.c2p(w[w.length-1],!0),I=[[S,L],[E,L],[E,C],[S,C]],P=k;&quot;constraint&quot;===T.type&amp;&amp;(P=d(k,T._operation)),function(t,e,r){var n=i.ensureSingle(t,&quot;g&quot;,&quot;contourbg&quot;).selectAll(&quot;path&quot;).data(&quot;fill&quot;===r.coloring?[0]:[]);n.enter().append(&quot;path&quot;),n.exit().remove(),n.attr(&quot;d&quot;,&quot;M&quot;+e.join(&quot;L&quot;)+&quot;Z&quot;).style(&quot;stroke&quot;,&quot;none&quot;)}(s,I,T),function(t,e,r,a){var o=&quot;fill&quot;===a.coloring||&quot;constraint&quot;===a.type&amp;&amp;&quot;=&quot;!==a._operation,s=&quot;M&quot;+r.join(&quot;L&quot;)+&quot;Z&quot;;o&amp;&amp;g(e,a);var l=i.ensureSingle(t,&quot;g&quot;,&quot;contourfill&quot;).selectAll(&quot;path&quot;).data(o?e:[]);l.enter().append(&quot;path&quot;),l.exit().remove(),l.each((function(t){var e=(t.prefixBoundary?s:&quot;&quot;)+y(t,r);e?n.select(this).attr(&quot;d&quot;,e).style(&quot;stroke&quot;,&quot;none&quot;):n.select(this).remove()}))}(s,P,I,T),function(t,e,o,s,l){var c=i.ensureSingle(t,&quot;g&quot;,&quot;contourlines&quot;),u=!1!==l.showlines,f=l.showlabels,h=u&amp;&amp;f,p=r.createLines(c,u||f,e),d=r.createLineClip(c,h,o,s.trace.uid),g=t.selectAll(&quot;g.contourlabels&quot;).data(f?[0]:[]);if(g.exit().remove(),g.enter().append(&quot;g&quot;).classed(&quot;contourlabels&quot;,!0),f){var v=[],y=[];i.clearLocationCache();var x=r.labelFormatter(o,s),b=a.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).call(a.font,l.labelfont),_=e[0].xaxis,w=e[0].yaxis,T=_._length,k=w._length,M=_.range,A=w.range,S=i.aggNums(Math.min,null,s.x),E=i.aggNums(Math.max,null,s.x),C=i.aggNums(Math.min,null,s.y),L=i.aggNums(Math.max,null,s.y),I=Math.max(_.c2p(S,!0),0),P=Math.min(_.c2p(E,!0),T),z=Math.max(w.c2p(L,!0),0),O=Math.min(w.c2p(C,!0),k),D={};M[0]&lt;M[1]?(D.left=I,D.right=P):(D.left=P,D.right=I),A[0]&lt;A[1]?(D.top=z,D.bottom=O):(D.top=O,D.bottom=z),D.middle=(D.top+D.bottom)/2,D.center=(D.left+D.right)/2,v.push([[D.left,D.top],[D.right,D.top],[D.right,D.bottom],[D.left,D.bottom]]);var R=Math.sqrt(T*T+k*k),F=m.LABELDISTANCE*R/Math.max(1,e.length/m.LABELINCREASE);p.each((function(t){var e=r.calcTextOpts(t.level,x,b,o);n.select(this).selectAll(&quot;path&quot;).each((function(){var t=i.getVisibleSegment(this,D,e.height/2);if(t&amp;&amp;!(t.len&lt;(e.width+e.height)*m.LABELMIN))for(var n=Math.min(Math.ceil(t.len/F),m.LABELMAX),a=0;a&lt;n;a++){var o=r.findBestTextLocation(this,t,e,y,D);if(!o)break;r.addLabelData(o,e,y,v)}}))})),b.remove(),r.drawLabels(g,y,o,d,h?v:null)}f&amp;&amp;!u&amp;&amp;p.remove()}(s,k,t,v,T),function(t,e,r,n,o){var s=n.trace,l=r._fullLayout._clips,c=&quot;clip&quot;+s.uid,u=l.selectAll(&quot;#&quot;+c).data(s.connectgaps?[]:[0]);if(u.enter().append(&quot;clipPath&quot;).classed(&quot;contourclip&quot;,!0).attr(&quot;id&quot;,c),u.exit().remove(),!1===s.connectgaps){var p={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:e.xaxis,yaxis:e.yaxis,x:n.x,y:n.y,z:b(n),smoothing:0};f([p]),h([p]),g([p],{type:&quot;levels&quot;}),i.ensureSingle(u,&quot;path&quot;,&quot;&quot;).attr(&quot;d&quot;,(p.prefixBoundary?&quot;M&quot;+o.join(&quot;L&quot;)+&quot;Z&quot;:&quot;&quot;)+y(p,o))}else c=null;a.setClipUrl(t,c,r)}(s,e,t,v,I)}))},r.createLines=function(t,e,r){var n=r[0].smoothing,i=t.selectAll(&quot;g.contourlevel&quot;).data(e?r:[]);if(i.exit().remove(),i.enter().append(&quot;g&quot;).classed(&quot;contourlevel&quot;,!0),e){var o=i.selectAll(&quot;path.openline&quot;).data((function(t){return t.pedgepaths||t.edgepaths}));o.exit().remove(),o.enter().append(&quot;path&quot;).classed(&quot;openline&quot;,!0),o.attr(&quot;d&quot;,(function(t){return a.smoothopen(t,n)})).style(&quot;stroke-miterlimit&quot;,1).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;);var s=i.selectAll(&quot;path.closedline&quot;).data((function(t){return t.ppaths||t.paths}));s.exit().remove(),s.enter().append(&quot;path&quot;).classed(&quot;closedline&quot;,!0),s.attr(&quot;d&quot;,(function(t){return a.smoothclosed(t,n)})).style(&quot;stroke-miterlimit&quot;,1).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;)}return i},r.createLineClip=function(t,e,r,n){var i=e?&quot;clipline&quot;+n:null,o=r._fullLayout._clips.selectAll(&quot;#&quot;+i).data(e?[0]:[]);return o.exit().remove(),o.enter().append(&quot;clipPath&quot;).classed(&quot;contourlineclip&quot;,!0).attr(&quot;id&quot;,i),a.setClipUrl(t,i,r),o},r.labelFormatter=function(t,e){var r=t._fullLayout,n=e.trace,i=n.contours,a={type:&quot;linear&quot;,_id:&quot;ycontour&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;};if(i.labelformat)a.tickformat=i.labelformat,c(a,r);else{var s=o.extractOpts(n);if(s&amp;&amp;s.colorbar&amp;&amp;s.colorbar._axis)a=s.colorbar._axis;else{if(&quot;constraint&quot;===i.type){var u=i.value;Array.isArray(u)?a.range=[u[0],u[u.length-1]]:a.range=[u,u]}else a.range=[i.start,i.end],a.nticks=(i.end-i.start)/i.size;a.range[0]===a.range[1]&amp;&amp;(a.range[1]+=a.range[0]||1),a.nticks||(a.nticks=1e3),c(a,r),l.prepTicks(a),a._tmin=null,a._tmax=null}}return function(t){return l.tickText(a,t).text}},r.calcTextOpts=function(t,e,r,n){var i=e(t);r.text(i).call(s.convertToTspans,n);var o=r.node(),l=a.bBox(o,!0);return{text:i,width:l.width,height:l.height,fontSize:+o.style[&quot;font-size&quot;].replace(&quot;px&quot;,&quot;&quot;),level:t,dy:(l.top+l.bottom)/2}},r.findBestTextLocation=function(t,e,r,n,a){var o,s,l,c,u,f=r.width;e.isClosed?(s=e.len/v.INITIALSEARCHPOINTS,o=e.min+s/2,l=e.max):(s=(e.len-f)/(v.INITIALSEARCHPOINTS+1),o=e.min+s+f/2,l=e.max-(s+f)/2);for(var h=1/0,p=0;p&lt;v.ITERATIONS;p++){for(var d=o;d&lt;l;d+=s){var g=i.getTextLocation(t,e.total,d,f),m=x(g,r,n,a);m&lt;h&amp;&amp;(h=m,u=g,c=d)}if(h&gt;2*v.MAXCOST)break;p&amp;&amp;(s/=2),l=(o=c-s/2)+1.5*s}if(h&lt;=v.MAXCOST)return u},r.addLabelData=function(t,e,r,n){var i=e.fontSize,a=e.width+i/3,o=Math.max(0,e.height-i/3),s=t.x,l=t.y,c=t.theta,u=Math.sin(c),f=Math.cos(c),h=function(t,e){return[s+t*f-e*u,l+t*u+e*f]},p=[h(-a/2,-o/2),h(-a/2,o/2),h(a/2,o/2),h(a/2,-o/2)];r.push({text:e.text,x:s,y:l,dy:e.dy,theta:c,level:e.level,width:a,height:o}),n.push(p)},r.drawLabels=function(t,e,r,a,o){var l=t.selectAll(&quot;text&quot;).data(e,(function(t){return t.text+&quot;,&quot;+t.x+&quot;,&quot;+t.y+&quot;,&quot;+t.theta}));if(l.exit().remove(),l.enter().append(&quot;text&quot;).attr({&quot;data-notex&quot;:1,&quot;text-anchor&quot;:&quot;middle&quot;}).each((function(t){var e=t.x+Math.sin(t.theta)*t.dy,i=t.y-Math.cos(t.theta)*t.dy;n.select(this).text(t.text).attr({x:e,y:i,transform:&quot;rotate(&quot;+180*t.theta/Math.PI+&quot; &quot;+e+&quot; &quot;+i+&quot;)&quot;}).call(s.convertToTspans,r)})),o){for(var c=&quot;&quot;,u=0;u&lt;o.length;u++)c+=&quot;M&quot;+o[u].join(&quot;L&quot;)+&quot;Z&quot;;i.ensureSingle(a,&quot;path&quot;,&quot;&quot;).attr(&quot;d&quot;,c)}}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/set_convert&quot;:848,&quot;../heatmap/plot&quot;:1076,&quot;./close_boundaries&quot;:1010,&quot;./constants&quot;:1012,&quot;./convert_to_constraints&quot;:1016,&quot;./empty_pathinfo&quot;:1018,&quot;./find_all_paths&quot;:1020,&quot;./make_crossings&quot;:1025,d3:169}],1027:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;);function a(t,e,r){var i={type:&quot;linear&quot;,range:[t,e]};return n.autoTicks(i,(e-t)/(r||15)),i}e.exports=function(t,e){var r=t.contours;if(t.autocontour){var o=t.zmin,s=t.zmax;(t.zauto||void 0===o)&amp;&amp;(o=i.aggNums(Math.min,null,e)),(t.zauto||void 0===s)&amp;&amp;(s=i.aggNums(Math.max,null,e));var l=a(o,s,t.ncontours);r.size=l.dtick,r.start=n.tickFirst(l),l.range.reverse(),r.end=n.tickFirst(l),r.start===o&amp;&amp;(r.start+=r.size),r.end===s&amp;&amp;(r.end-=r.size),r.start&gt;r.end&amp;&amp;(r.start=r.end=(r.start+r.end)/2),t._input.contours||(t._input.contours={}),i.extendFlat(t._input.contours,{start:r.start,end:r.end,size:r.size}),t._input.autocontour=!0}else if(&quot;constraint&quot;!==r.type){var c,u=r.start,f=r.end,h=t._input.contours;if(u&gt;f&amp;&amp;(r.start=h.start=f,f=r.end=h.end=u,u=r.start),!(r.size&gt;0))c=u===f?1:a(u,f,t.ncontours).dtick,h.size=r.size=c}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1028:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../heatmap/style&quot;),o=t(&quot;./make_color_map&quot;);e.exports=function(t){var e=n.select(t).selectAll(&quot;g.contour&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.each((function(t){var e=n.select(this),r=t[0].trace,a=r.contours,s=r.line,l=a.size||1,c=a.start,u=&quot;constraint&quot;===a.type,f=!u&amp;&amp;&quot;lines&quot;===a.coloring,h=!u&amp;&amp;&quot;fill&quot;===a.coloring,p=f||h?o(r):null;e.selectAll(&quot;g.contourlevel&quot;).each((function(t){n.select(this).selectAll(&quot;path&quot;).call(i.lineGroupStyle,s.width,f?p(t.level):s.color,s.dash)}));var d=a.labelfont;if(e.selectAll(&quot;g.contourlabels text&quot;).each((function(t){i.font(n.select(this),{family:d.family,size:d.size,color:d.color||(f?p(t.level):s.color)})})),u)e.selectAll(&quot;g.contourfill path&quot;).style(&quot;fill&quot;,r.fillcolor);else if(h){var g;e.selectAll(&quot;g.contourfill path&quot;).style(&quot;fill&quot;,(function(t){return void 0===g&amp;&amp;(g=t.level),p(t.level+.5*l)})),void 0===g&amp;&amp;(g=c),e.selectAll(&quot;g.contourbg path&quot;).style(&quot;fill&quot;,p(g-.5*l))}})),a(t)}},{&quot;../../components/drawing&quot;:665,&quot;../heatmap/style&quot;:1077,&quot;./make_color_map&quot;:1024,d3:169}],1029:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/defaults&quot;),i=t(&quot;./label_defaults&quot;);e.exports=function(t,e,r,a,o){var s,l=r(&quot;contours.coloring&quot;),c=&quot;&quot;;&quot;fill&quot;===l&amp;&amp;(s=r(&quot;contours.showlines&quot;)),!1!==s&amp;&amp;(&quot;lines&quot;!==l&amp;&amp;(c=r(&quot;line.color&quot;,&quot;#000&quot;)),r(&quot;line.width&quot;,.5),r(&quot;line.dash&quot;)),&quot;none&quot;!==l&amp;&amp;(!0!==t.showlegend&amp;&amp;(e.showlegend=!1),e._dfltShowLegend=!1,n(t,e,a,r,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})),r(&quot;line.smoothing&quot;),i(r,a,c,o)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;./label_defaults&quot;:1023}],1030:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../contour/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat,s=i.contours;e.exports=o({carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},z:n.z,a:n.x,a0:n.x0,da:n.dx,b:n.y,b0:n.y0,db:n.dy,text:n.text,hovertext:n.hovertext,transpose:n.transpose,atype:n.xtype,btype:n.ytype,fillcolor:i.fillcolor,autocontour:i.autocontour,ncontours:i.ncontours,contours:{type:s.type,start:s.start,end:s.end,size:s.size,coloring:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;lines&quot;,&quot;none&quot;],dflt:&quot;fill&quot;,editType:&quot;calc&quot;},showlines:s.showlines,showlabels:s.showlabels,labelfont:s.labelfont,labelformat:s.labelformat,operation:s.operation,value:s.value,editType:&quot;calc&quot;,impliedEdits:{autocontour:!1}},line:{color:i.line.color,width:i.line.width,dash:i.line.dash,smoothing:i.line.smoothing,editType:&quot;plot&quot;},transforms:void 0},a(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../contour/attributes&quot;:1008,&quot;../heatmap/attributes&quot;:1065}],1031:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../heatmap/convert_column_xyz&quot;),o=t(&quot;../heatmap/clean_2d_array&quot;),s=t(&quot;../heatmap/interp2d&quot;),l=t(&quot;../heatmap/find_empties&quot;),c=t(&quot;../heatmap/make_bound_array&quot;),u=t(&quot;./defaults&quot;),f=t(&quot;../carpet/lookup_carpetid&quot;),h=t(&quot;../contour/set_contours&quot;);e.exports=function(t,e){var r=e._carpetTrace=f(t,e);if(r&amp;&amp;r.visible&amp;&amp;&quot;legendonly&quot;!==r.visible){if(!e.a||!e.b){var p=t.data[r.index],d=t.data[e.index];d.a||(d.a=p.a),d.b||(d.b=p.b),u(d,e,e._defaultColor,t._fullLayout)}var g=function(t,e){var r,u,f,h,p,d,g,m=e._carpetTrace,v=m.aaxis,y=m.baxis;v._minDtick=0,y._minDtick=0,i.isArray1D(e.z)&amp;&amp;a(e,v,y,&quot;a&quot;,&quot;b&quot;,[&quot;z&quot;]);r=e._a=e._a||e.a,h=e._b=e._b||e.b,r=r?v.makeCalcdata(e,&quot;_a&quot;):[],h=h?y.makeCalcdata(e,&quot;_b&quot;):[],u=e.a0||0,f=e.da||1,p=e.b0||0,d=e.db||1,g=e._z=o(e._z||e.z,e.transpose),e._emptypoints=l(g),s(g,e._emptypoints);var x=i.maxRowLength(g),b=&quot;scaled&quot;===e.xtype?&quot;&quot;:r,_=c(e,b,u,f,x,v),w=&quot;scaled&quot;===e.ytype?&quot;&quot;:h,T=c(e,w,p,d,g.length,y),k={a:_,b:T,z:g};&quot;levels&quot;===e.contours.type&amp;&amp;&quot;none&quot;!==e.contours.coloring&amp;&amp;n(t,e,{vals:g,containerStr:&quot;&quot;,cLetter:&quot;z&quot;});return[k]}(t,e);return h(e,e._z),g}}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../lib&quot;:778,&quot;../carpet/lookup_carpetid&quot;:981,&quot;../contour/set_contours&quot;:1027,&quot;../heatmap/clean_2d_array&quot;:1067,&quot;../heatmap/convert_column_xyz&quot;:1069,&quot;../heatmap/find_empties&quot;:1071,&quot;../heatmap/interp2d&quot;:1074,&quot;../heatmap/make_bound_array&quot;:1075,&quot;./defaults&quot;:1032}],1032:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../contour/constraint_defaults&quot;),s=t(&quot;../contour/contours_defaults&quot;),l=t(&quot;../contour/style_defaults&quot;);e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,a,r,i)}if(u(&quot;carpet&quot;),t.a&amp;&amp;t.b){if(!i(t,e,u,c,&quot;a&quot;,&quot;b&quot;))return void(e.visible=!1);u(&quot;text&quot;),&quot;constraint&quot;===u(&quot;contours.type&quot;)?o(t,e,u,c,r,{hasHover:!1}):(s(t,e,u,(function(r){return n.coerce2(t,e,a,r)})),l(t,e,u,c,{hasHover:!1}))}else e._defaultColor=r,e._length=null}},{&quot;../../lib&quot;:778,&quot;../contour/constraint_defaults&quot;:1013,&quot;../contour/contours_defaults&quot;:1015,&quot;../contour/style_defaults&quot;:1029,&quot;../heatmap/xyz_defaults&quot;:1079,&quot;./attributes&quot;:1030}],1033:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../contour/colorbar&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../contour/style&quot;),moduleType:&quot;trace&quot;,name:&quot;contourcarpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;carpet&quot;,&quot;contour&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;hasLines&quot;,&quot;carpetDependent&quot;,&quot;noHover&quot;,&quot;noSortingByValue&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../contour/colorbar&quot;:1011,&quot;../contour/style&quot;:1028,&quot;./attributes&quot;:1030,&quot;./calc&quot;:1031,&quot;./defaults&quot;:1032,&quot;./plot&quot;:1034}],1034:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../carpet/map_1d_array&quot;),a=t(&quot;../carpet/makepath&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../contour/make_crossings&quot;),c=t(&quot;../contour/find_all_paths&quot;),u=t(&quot;../contour/plot&quot;),f=t(&quot;../contour/constants&quot;),h=t(&quot;../contour/convert_to_constraints&quot;),p=t(&quot;../contour/empty_pathinfo&quot;),d=t(&quot;../contour/close_boundaries&quot;),g=t(&quot;../carpet/lookup_carpetid&quot;),m=t(&quot;../carpet/axis_aligned_line&quot;);function v(t,e,r){var n=t.getPointAtLength(e),i=t.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function y(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}function x(t,e){var r=Math.abs(t[0]*e[0]+t[1]*e[1]);return Math.sqrt(1-r*r)/r}e.exports=function(t,e,r,b){var _=e.xaxis,w=e.yaxis;s.makeTraceGroups(b,r,&quot;contour&quot;).each((function(r){var b=n.select(this),T=r[0],k=T.trace,M=k._carpetTrace=g(t,k),A=t.calcdata[M.index][0];if(M.visible&amp;&amp;&quot;legendonly&quot;!==M.visible){var S=T.a,E=T.b,C=k.contours,L=p(C,e,T),I=&quot;constraint&quot;===C.type,P=C._operation,z=I?&quot;=&quot;===P?&quot;lines&quot;:&quot;fill&quot;:C.coloring,O=[[S[0],E[E.length-1]],[S[S.length-1],E[E.length-1]],[S[S.length-1],E[0]],[S[0],E[0]]];l(L);var D=1e-8*(S[S.length-1]-S[0]),R=1e-8*(E[E.length-1]-E[0]);c(L,D,R);var F,B,N,j,U=L;&quot;constraint&quot;===C.type&amp;&amp;(U=h(L,P)),function(t,e){var r,n,i,a,o,s,l,c,u;for(r=0;r&lt;t.length;r++){for(a=t[r],o=a.pedgepaths=[],s=a.ppaths=[],n=0;n&lt;a.edgepaths.length;n++){for(u=a.edgepaths[n],l=[],i=0;i&lt;u.length;i++)l[i]=e(u[i]);o.push(l)}for(n=0;n&lt;a.paths.length;n++){for(u=a.paths[n],c=[],i=0;i&lt;u.length;i++)c[i]=e(u[i]);s.push(c)}}}(L,H);var V=[];for(j=A.clipsegments.length-1;j&gt;=0;j--)F=A.clipsegments[j],B=i([],F.x,_.c2p),N=i([],F.y,w.c2p),B.reverse(),N.reverse(),V.push(a(B,N,F.bicubic));var q=&quot;M&quot;+V.join(&quot;L&quot;)+&quot;Z&quot;;!function(t,e,r,n,o,l){var c,u,f,h,p=s.ensureSingle(t,&quot;g&quot;,&quot;contourbg&quot;).selectAll(&quot;path&quot;).data(&quot;fill&quot;!==l||o?[]:[0]);p.enter().append(&quot;path&quot;),p.exit().remove();var d=[];for(h=0;h&lt;e.length;h++)c=e[h],u=i([],c.x,r.c2p),f=i([],c.y,n.c2p),d.push(a(u,f,c.bicubic));p.attr(&quot;d&quot;,&quot;M&quot;+d.join(&quot;L&quot;)+&quot;Z&quot;).style(&quot;stroke&quot;,&quot;none&quot;)}(b,A.clipsegments,_,w,I,z),function(t,e,r,i,a,l,c,u,f,h,p){var g=&quot;fill&quot;===h;g&amp;&amp;d(a,t.contours);var v=s.ensureSingle(e,&quot;g&quot;,&quot;contourfill&quot;).selectAll(&quot;path&quot;).data(g?a:[]);v.enter().append(&quot;path&quot;),v.exit().remove(),v.each((function(t){var e=(t.prefixBoundary?p:&quot;&quot;)+function(t,e,r,n,i,a,l,c){var u,f,h,p,d,g,v,y=&quot;&quot;,x=e.edgepaths.map((function(t,e){return e})),b=!0,_=1e-4*Math.abs(r[0][0]-r[2][0]),w=1e-4*Math.abs(r[0][1]-r[2][1]);function T(t){return Math.abs(t[1]-r[0][1])&lt;w}function k(t){return Math.abs(t[1]-r[2][1])&lt;w}function M(t){return Math.abs(t[0]-r[0][0])&lt;_}function A(t){return Math.abs(t[0]-r[2][0])&lt;_}function S(t,e){var r,n,o,s,u=&quot;&quot;;for(T(t)&amp;&amp;!A(t)||k(t)&amp;&amp;!M(t)?(s=i.aaxis,o=m(i,a,[t[0],e[0]],.5*(t[1]+e[1]))):(s=i.baxis,o=m(i,a,.5*(t[0]+e[0]),[t[1],e[1]])),r=1;r&lt;o.length;r++)for(u+=s.smoothing?&quot;C&quot;:&quot;L&quot;,n=0;n&lt;o[r].length;n++){var f=o[r][n];u+=[l.c2p(f[0]),c.c2p(f[1])]+&quot; &quot;}return u}u=0,f=null;for(;x.length;){var E=e.edgepaths[u][0];for(f&amp;&amp;(y+=S(f,E)),v=o.smoothopen(e.edgepaths[u].map(n),e.smoothing),y+=b?v:v.replace(/^M/,&quot;L&quot;),x.splice(x.indexOf(u),1),f=e.edgepaths[u][e.edgepaths[u].length-1],d=-1,p=0;p&lt;4;p++){if(!f){s.log(&quot;Missing end?&quot;,u,e);break}for(T(f)&amp;&amp;!A(f)?h=r[1]:M(f)?h=r[0]:k(f)?h=r[3]:A(f)&amp;&amp;(h=r[2]),g=0;g&lt;e.edgepaths.length;g++){var C=e.edgepaths[g][0];Math.abs(f[0]-h[0])&lt;_?Math.abs(f[0]-C[0])&lt;_&amp;&amp;(C[1]-f[1])*(h[1]-C[1])&gt;=0&amp;&amp;(h=C,d=g):Math.abs(f[1]-h[1])&lt;w?Math.abs(f[1]-C[1])&lt;w&amp;&amp;(C[0]-f[0])*(h[0]-C[0])&gt;=0&amp;&amp;(h=C,d=g):s.log(&quot;endpt to newendpt is not vert. or horz.&quot;,f,h,C)}if(d&gt;=0)break;y+=S(f,h),f=h}if(d===e.edgepaths.length){s.log(&quot;unclosed perimeter path&quot;);break}u=d,(b=-1===x.indexOf(u))&amp;&amp;(u=x[0],y+=S(f,h)+&quot;Z&quot;,f=null)}for(u=0;u&lt;e.paths.length;u++)y+=o.smoothclosed(e.paths[u].map(n),e.smoothing);return y}(0,t,l,c,u,f,r,i);e?n.select(this).attr(&quot;d&quot;,e).style(&quot;stroke&quot;,&quot;none&quot;):n.select(this).remove()}))}(k,b,_,w,U,O,H,M,A,z,q),function(t,e,r,i,a,l,c){var h=s.ensureSingle(t,&quot;g&quot;,&quot;contourlines&quot;),p=!1!==a.showlines,d=a.showlabels,g=p&amp;&amp;d,m=u.createLines(h,p||d,e),b=u.createLineClip(h,g,r,i.trace.uid),_=t.selectAll(&quot;g.contourlabels&quot;).data(d?[0]:[]);if(_.exit().remove(),_.enter().append(&quot;g&quot;).classed(&quot;contourlabels&quot;,!0),d){var w=l.xaxis,T=l.yaxis,k=w._length,M=T._length,A=[[[0,0],[k,0],[k,M],[0,M]]],S=[];s.clearLocationCache();var E=u.labelFormatter(r,i),C=o.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).call(o.font,a.labelfont),L={left:0,right:k,center:k/2,top:0,bottom:M,middle:M/2},I=Math.sqrt(k*k+M*M),P=f.LABELDISTANCE*I/Math.max(1,e.length/f.LABELINCREASE);m.each((function(t){var e=u.calcTextOpts(t.level,E,C,r);n.select(this).selectAll(&quot;path&quot;).each((function(r){var n=s.getVisibleSegment(this,L,e.height/2);if(n&amp;&amp;(function(t,e,r,n,i,a){for(var o,s=0;s&lt;r.pedgepaths.length;s++)e===r.pedgepaths[s]&amp;&amp;(o=r.edgepaths[s]);if(!o)return;var l=i.a[0],c=i.a[i.a.length-1],u=i.b[0],f=i.b[i.b.length-1];function h(t,e){var r,n=0;return(Math.abs(t[0]-l)&lt;.1||Math.abs(t[0]-c)&lt;.1)&amp;&amp;(r=y(i.dxydb_rough(t[0],t[1],.1)),n=Math.max(n,a*x(e,r)/2)),(Math.abs(t[1]-u)&lt;.1||Math.abs(t[1]-f)&lt;.1)&amp;&amp;(r=y(i.dxyda_rough(t[0],t[1],.1)),n=Math.max(n,a*x(e,r)/2)),n}var p=v(t,0,1),d=v(t,n.total,n.total-1),g=h(o[0],p),m=n.total-h(o[o.length-1],d);n.min&lt;g&amp;&amp;(n.min=g);n.max&gt;m&amp;&amp;(n.max=m);n.len=n.max-n.min}(this,r,t,n,c,e.height),!(n.len&lt;(e.width+e.height)*f.LABELMIN)))for(var i=Math.min(Math.ceil(n.len/P),f.LABELMAX),a=0;a&lt;i;a++){var o=u.findBestTextLocation(this,n,e,S,L);if(!o)break;u.addLabelData(o,e,S,A)}}))})),C.remove(),u.drawLabels(_,S,r,b,g?A:null)}d&amp;&amp;!p&amp;&amp;m.remove()}(b,L,t,T,C,e,M),o.setClipUrl(b,M._clipPathId,t)}function H(t){var e=M.ab2xy(t[0],t[1],!0);return[_.c2p(e[0]),w.c2p(e[1])]}}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../carpet/axis_aligned_line&quot;:965,&quot;../carpet/lookup_carpetid&quot;:981,&quot;../carpet/makepath&quot;:982,&quot;../carpet/map_1d_array&quot;:983,&quot;../contour/close_boundaries&quot;:1010,&quot;../contour/constants&quot;:1012,&quot;../contour/convert_to_constraints&quot;:1016,&quot;../contour/empty_pathinfo&quot;:1018,&quot;../contour/find_all_paths&quot;:1020,&quot;../contour/make_crossings&quot;:1025,&quot;../contour/plot&quot;:1026,d3:169}],1035:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../scattermapbox/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({lon:o.lon,lat:o.lat,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},radius:{valType:&quot;number&quot;,editType:&quot;plot&quot;,arrayOk:!0,min:1,dflt:30},below:{valType:&quot;string&quot;,editType:&quot;plot&quot;},text:o.text,hovertext:o.hovertext,hoverinfo:s({},a.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:i(),showlegend:s({},a.showlegend,{dflt:!1})},n(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scattermapbox/attributes&quot;:1252}],1036:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray,a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../components/colorscale/calc&quot;),s=t(&quot;../../lib&quot;)._;e.exports=function(t,e){for(var r=e._length,l=new Array(r),c=e.z,u=i(c)&amp;&amp;c.length,f=0;f&lt;r;f++){var h=l[f]={},p=e.lon[f],d=e.lat[f];if(h.lonlat=n(p)&amp;&amp;n(d)?[+p,+d]:[a,a],u){var g=c[f];h.z=n(g)?g:a}}return o(t,e,{vals:u?c:[0,1],containerStr:&quot;&quot;,cLetter:&quot;z&quot;}),r&amp;&amp;(l[0].t={labels:{lat:s(t,&quot;lat:&quot;)+&quot; &quot;,lon:s(t,&quot;lon:&quot;)+&quot; &quot;}}),l}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],1037:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../components/colorscale&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=t(&quot;../../lib/geojson_utils&quot;).makeBlank;e.exports=function(t){var e=t[0].trace,r=!0===e.visible&amp;&amp;0!==e._length,c=e._opts={heatmap:{layout:{visibility:&quot;none&quot;},paint:{}},geojson:l()};if(!r)return c;var u,f=[],h=e.z,p=e.radius,d=i.isArrayOrTypedArray(h)&amp;&amp;h.length,g=i.isArrayOrTypedArray(p);for(u=0;u&lt;t.length;u++){var m=t[u],v=m.lonlat;if(v[0]!==s){var y={};if(d){var x=m.z;y.z=x!==s?x:0}g&amp;&amp;(y.r=n(p[u])&amp;&amp;p[u]&gt;0?+p[u]:0),f.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:v},properties:y})}}var b=o.extractOpts(e),_=b.reversescale?o.flipScale(b.colorscale):b.colorscale,w=_[0][1],T=[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;heatmap-density&quot;],0,a.opacity(w)&lt;1?w:a.addOpacity(w,0)];for(u=1;u&lt;_.length;u++)T.push(_[u][0],_[u][1]);var k=[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;get&quot;,&quot;z&quot;],b.min,0,b.max,1];return i.extendFlat(c.heatmap.paint,{&quot;heatmap-weight&quot;:d?k:1/(b.max-b.min),&quot;heatmap-color&quot;:T,&quot;heatmap-radius&quot;:g?{type:&quot;identity&quot;,property:&quot;r&quot;}:e.radius,&quot;heatmap-opacity&quot;:e.opacity}),c.geojson={type:&quot;FeatureCollection&quot;,features:f},c.heatmap.layout.visibility=&quot;visible&quot;,c}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale&quot;:655,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/geojson_utils&quot;:772,&quot;fast-isnumeric&quot;:241}],1038:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;lon&quot;)||[],c=s(&quot;lat&quot;)||[],u=Math.min(l.length,c.length);u?(e._length=u,s(&quot;z&quot;),s(&quot;radius&quot;),s(&quot;below&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:1035}],1039:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t.z=e.z,t}},{}],1040:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../scattermapbox/hover&quot;);e.exports=function(t,e,r){var o=a(t,e,r);if(o){var s=o[0],l=s.cd,c=l[0].trace,u=l[s.index];if(delete s.color,&quot;z&quot;in u){var f=s.subplot.mockAxis;s.z=u.z,s.zLabel=i.tickText(f,f.c2l(u.z),&quot;hover&quot;).text}return s.extraText=function(t,e,r){if(t.hovertemplate)return;var i=(e.hi||t.hoverinfo).split(&quot;+&quot;),a=-1!==i.indexOf(&quot;all&quot;),o=-1!==i.indexOf(&quot;lon&quot;),s=-1!==i.indexOf(&quot;lat&quot;),l=e.lonlat,c=[];function u(t){return t+&quot;\xb0&quot;}a||o&amp;&amp;s?c.push(&quot;(&quot;+u(l[0])+&quot;, &quot;+u(l[1])+&quot;)&quot;):o?c.push(r.lon+u(l[0])):s&amp;&amp;c.push(r.lat+u(l[1]));(a||-1!==i.indexOf(&quot;text&quot;))&amp;&amp;n.fillText(e,t,c);return c.join(&quot;&lt;br&gt;&quot;)}(c,u,l[0].t.labels),[s]}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scattermapbox/hover&quot;:1257}],1041:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),formatLabels:t(&quot;../scattermapbox/format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),getBelow:function(t,e){for(var r=e.getMapLayers(),n=0;n&lt;r.length;n++){var i=r[n],a=i.id;if(&quot;symbol&quot;===i.type&amp;&amp;&quot;string&quot;==typeof a&amp;&amp;-1===a.indexOf(&quot;plotly-&quot;))return a}},moduleType:&quot;trace&quot;,name:&quot;densitymapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;showLegend&quot;],meta:{hr_name:&quot;density_mapbox&quot;}}},{&quot;../../plots/mapbox&quot;:885,&quot;../heatmap/colorbar&quot;:1068,&quot;../scattermapbox/format_labels&quot;:1256,&quot;./attributes&quot;:1035,&quot;./calc&quot;:1036,&quot;./defaults&quot;:1038,&quot;./event_data&quot;:1039,&quot;./hover&quot;:1040,&quot;./plot&quot;:1042}],1042:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;),i=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix;function a(t,e){this.type=&quot;densitymapbox&quot;,this.subplot=t,this.uid=e,this.sourceId=&quot;source-&quot;+e,this.layerList=[[&quot;heatmap&quot;,i+e+&quot;-heatmap&quot;]],this.below=null}var o=a.prototype;o.update=function(t){var e=this.subplot,r=this.layerList,i=n(t),a=e.belowLookup[&quot;trace-&quot;+this.uid];e.map.getSource(this.sourceId).setData(i.geojson),a!==this.below&amp;&amp;(this._removeLayers(),this._addLayers(i,a),this.below=a);for(var o=0;o&lt;r.length;o++){var s=r[o],l=s[0],c=s[1],u=i[l];e.setOptions(c,&quot;setLayoutProperty&quot;,u.layout),&quot;visible&quot;===u.layout.visibility&amp;&amp;e.setOptions(c,&quot;setPaintProperty&quot;,u.paint)}},o._addLayers=function(t,e){for(var r=this.subplot,n=this.layerList,i=this.sourceId,a=0;a&lt;n.length;a++){var o=n[a],s=o[0],l=t[s];r.addLayer({type:s,id:o[1],source:i,layout:l.layout,paint:l.paint},e)}},o._removeLayers=function(){for(var t=this.subplot.map,e=this.layerList,r=e.length-1;r&gt;=0;r--)t.removeLayer(e[r][1])},o.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new a(t,r.uid),o=i.sourceId,s=n(e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid];return t.map.addSource(o,{type:&quot;geojson&quot;,data:s.geojson}),i._addLayers(s,l),i}},{&quot;../../plots/mapbox/constants&quot;:883,&quot;./convert&quot;:1037}],1043:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;);var i=e.marker;if(i){n.mergeArray(i.opacity,t,&quot;mo&quot;),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;a&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;))}}},{&quot;../../lib&quot;:778}],1044:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../scatter/attributes&quot;).line,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;./constants&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../components/color&quot;);e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,hovertext:n.hovertext,hovertemplate:o({},{keys:l.eventDataKeys}),hoverinfo:c({},a.hoverinfo,{flags:[&quot;name&quot;,&quot;x&quot;,&quot;y&quot;,&quot;text&quot;,&quot;percent initial&quot;,&quot;percent previous&quot;,&quot;percent total&quot;]}),textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;percent initial&quot;,&quot;percent previous&quot;,&quot;percent total&quot;,&quot;value&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;,arrayOk:!1},texttemplate:s({editType:&quot;plot&quot;},{keys:l.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),text:n.text,textposition:c({},n.textposition,{dflt:&quot;auto&quot;}),insidetextanchor:c({},n.insidetextanchor,{dflt:&quot;middle&quot;}),textangle:c({},n.textangle,{dflt:0}),textfont:n.textfont,insidetextfont:n.insidetextfont,outsidetextfont:n.outsidetextfont,constraintext:n.constraintext,cliponaxis:n.cliponaxis,orientation:c({},n.orientation,{}),offset:c({},n.offset,{arrayOk:!1}),width:c({},n.width,{arrayOk:!1}),marker:n.marker,connector:{fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},line:{color:c({},i.color,{dflt:u.defaultLine}),width:c({},i.width,{dflt:0,editType:&quot;plot&quot;}),dash:i.dash,editType:&quot;style&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup}},{&quot;../../components/color&quot;:643,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:1046}],1045:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;./arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t){return t===s?0:t}e.exports=function(t,e){var r,c,u,f,h,p,d=n.getFromId(t,e.xaxis||&quot;x&quot;),g=n.getFromId(t,e.yaxis||&quot;y&quot;);&quot;h&quot;===e.orientation?(r=d.makeCalcdata(e,&quot;x&quot;),u=g.makeCalcdata(e,&quot;y&quot;),c=i(e,g,&quot;y&quot;,u),p=!!e.yperiodalignment):(r=g.makeCalcdata(e,&quot;y&quot;),u=d.makeCalcdata(e,&quot;x&quot;),c=i(e,d,&quot;x&quot;,u),p=!!e.xperiodalignment);var m,v=Math.min(c.length,r.length),y=new Array(v);for(e._base=[],f=0;f&lt;v;f++){r[f]&lt;0&amp;&amp;(r[f]=s);var x=!1;r[f]!==s&amp;&amp;f+1&lt;v&amp;&amp;r[f+1]!==s&amp;&amp;(x=!0),h=y[f]={p:c[f],s:r[f],cNext:x},e._base[f]=-.5*h.s,p&amp;&amp;(y[f].orig_p=u[f]),e.ids&amp;&amp;(h.id=String(e.ids[f])),0===f&amp;&amp;(y[0].vTotal=0),y[0].vTotal+=l(h.s),h.begR=l(h.s)/l(y[0].s)}for(f=0;f&lt;v;f++)(h=y[f]).s!==s&amp;&amp;(h.sumR=h.s/y[0].vTotal,h.difR=void 0!==m?h.s/m:1,m=h.s);return a(y,e),o(y,e),y}},{&quot;../../constants/numerical&quot;:753,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc_selection&quot;:1189,&quot;./arrays_to_calcdata&quot;:1043}],1046:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;percentInitial&quot;,&quot;percentPrevious&quot;,&quot;percentTotal&quot;]}},{}],1047:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions;e.exports=function(t,e){var r,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,c=e.yaxis,u=[],f=[],h=[];for(i=0;i&lt;o.length;i++){var p=o[i],d=&quot;h&quot;===p.orientation;!0===p.visible&amp;&amp;p.xaxis===l._id&amp;&amp;p.yaxis===c._id&amp;&amp;&quot;funnel&quot;===p.type&amp;&amp;(r=s[i],d?h.push(r):f.push(r),u.push(r))}var g={mode:a.funnelmode,norm:a.funnelnorm,gap:a.funnelgap,groupgap:a.funnelgroupgap};for(n(t,l,c,f,g),n(t,c,l,h,g),i=0;i&lt;u.length;i++){r=u[i];for(var m=0;m&lt;r.length;m++)m+1&lt;r.length&amp;&amp;(r[m].nextP0=r[m+1].p0,r[m].nextS0=r[m+1].s0,r[m].nextP1=r[m+1].p1,r[m].nextS1=r[m+1].s1)}}},{&quot;../bar/cross_trace_calc&quot;:924}],1048:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,a=t(&quot;../bar/defaults&quot;).handleText,o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../../components/color&quot;);e.exports={supplyDefaults:function(t,e,r,i){function u(r,i){return n.coerce(t,e,l,r,i)}if(o(t,e,i,u)){s(t,e,i,u),u(&quot;orientation&quot;,e.y&amp;&amp;!e.x?&quot;v&quot;:&quot;h&quot;),u(&quot;offset&quot;),u(&quot;width&quot;);var f=u(&quot;text&quot;);u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;);var h=u(&quot;textposition&quot;);a(t,e,i,u,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),&quot;none&quot;===e.textposition||e.texttemplate||u(&quot;textinfo&quot;,Array.isArray(f)?&quot;text+value&quot;:&quot;value&quot;);var p=u(&quot;marker.color&quot;,r);if(u(&quot;marker.line.color&quot;,c.defaultLine),u(&quot;marker.line.width&quot;),u(&quot;connector.visible&quot;))u(&quot;connector.fillcolor&quot;,function(t){var e=n.isArrayOrTypedArray(t)?&quot;#000&quot;:t;return c.addOpacity(e,.5*c.opacity(e))}(p)),u(&quot;connector.line.width&quot;)&amp;&amp;(u(&quot;connector.line.color&quot;),u(&quot;connector.line.dash&quot;))}else e.visible=!1},crossTraceDefaults:function(t,e){var r,a;function o(t){return n.coerce(a._input,a,l,t)}if(&quot;group&quot;===e.funnelmode)for(var s=0;s&lt;t.length;s++)r=(a=t[s])._input,i(r,a,e,o)}}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/defaults&quot;:925,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:1044}],1049:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;percentInitial&quot;in e&amp;&amp;(t.percentInitial=e.percentInitial),&quot;percentPrevious&quot;in e&amp;&amp;(t.percentPrevious=e.percentPrevious),&quot;percentTotal&quot;in e&amp;&amp;(t.percentTotal=e.percentTotal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],1050:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;).opacity,i=t(&quot;../bar/hover&quot;).hoverOnBars,a=t(&quot;../../lib&quot;).formatPercent;e.exports=function(t,e,r,o){var s=i(t,e,r,o);if(s){var l=s.cd,c=l[0].trace,u=&quot;h&quot;===c.orientation,f=l[s.index];s[(u?&quot;x&quot;:&quot;y&quot;)+&quot;LabelVal&quot;]=f.s,s.percentInitial=f.begR,s.percentInitialLabel=a(f.begR,1),s.percentPrevious=f.difR,s.percentPreviousLabel=a(f.difR,1),s.percentTotal=f.sumR,s.percentTotalLabel=a(f.sumR,1);var h=f.hi||c.hoverinfo,p=[];if(h&amp;&amp;&quot;none&quot;!==h&amp;&amp;&quot;skip&quot;!==h){var d=&quot;all&quot;===h,g=h.split(&quot;+&quot;),m=function(t){return d||-1!==g.indexOf(t)};m(&quot;percent initial&quot;)&amp;&amp;p.push(s.percentInitialLabel+&quot; of initial&quot;),m(&quot;percent previous&quot;)&amp;&amp;p.push(s.percentPreviousLabel+&quot; of previous&quot;),m(&quot;percent total&quot;)&amp;&amp;p.push(s.percentTotalLabel+&quot; of total&quot;)}return s.extraText=p.join(&quot;&lt;br&gt;&quot;),s.color=function(t,e){var r=t.marker,i=e.mc||r.color,a=e.mlc||r.line.color,o=e.mlw||r.line.width;if(n(i))return i;if(n(a)&amp;&amp;o)return a}(c,f),[s]}}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/hover&quot;:928}],1051:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;../bar/select&quot;),moduleType:&quot;trace&quot;,name:&quot;funnel&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;oriented&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../bar/select&quot;:933,&quot;./attributes&quot;:1044,&quot;./calc&quot;:1045,&quot;./cross_trace_calc&quot;:1047,&quot;./defaults&quot;:1048,&quot;./event_data&quot;:1049,&quot;./hover&quot;:1050,&quot;./layout_attributes&quot;:1052,&quot;./layout_defaults&quot;:1053,&quot;./plot&quot;:1054,&quot;./style&quot;:1055}],1052:[function(t,e,r){&quot;use strict&quot;;e.exports={funnelmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;stack&quot;,editType:&quot;calc&quot;},funnelgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},funnelgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],1053:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s&lt;r.length;s++){var l=r[s];if(l.visible&amp;&amp;&quot;funnel&quot;===l.type){a=!0;break}}a&amp;&amp;(o(&quot;funnelmode&quot;),o(&quot;funnelgap&quot;,.2),o(&quot;funnelgroupgap&quot;))}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1052}],1054:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../constants/numerical&quot;).BADNUM,s=t(&quot;../bar/plot&quot;),l=t(&quot;../bar/uniform_text&quot;).clearMinTextSize;function c(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),i[3]=o.c2p(t.nextS1,!0),a[3]=s.c2p(t.nextP1,!0),n?[i,a]:[a,i]}e.exports=function(t,e,r,u){var f=t._fullLayout;l(&quot;funnel&quot;,f),function(t,e,r,s){var l=e.xaxis,u=e.yaxis;i.makeTraceGroups(s,r,&quot;trace bars&quot;).each((function(r){var s=n.select(this),f=r[0].trace,h=i.ensureSingle(s,&quot;g&quot;,&quot;regions&quot;);if(f.connector&amp;&amp;f.connector.visible){var p=&quot;h&quot;===f.orientation,d=h.selectAll(&quot;g.region&quot;).data(i.identity);d.enter().append(&quot;g&quot;).classed(&quot;region&quot;,!0),d.exit().remove();var g=d.size();d.each((function(r,s){if(s===g-1||r.cNext){var f=c(r,l,u,p),h=f[0],d=f[1],m=&quot;&quot;;h[0]!==o&amp;&amp;d[0]!==o&amp;&amp;h[1]!==o&amp;&amp;d[1]!==o&amp;&amp;h[2]!==o&amp;&amp;d[2]!==o&amp;&amp;h[3]!==o&amp;&amp;d[3]!==o&amp;&amp;(m+=p?&quot;M&quot;+h[0]+&quot;,&quot;+d[1]+&quot;L&quot;+h[2]+&quot;,&quot;+d[2]+&quot;H&quot;+h[3]+&quot;L&quot;+h[1]+&quot;,&quot;+d[1]+&quot;Z&quot;:&quot;M&quot;+h[1]+&quot;,&quot;+d[1]+&quot;L&quot;+h[2]+&quot;,&quot;+d[3]+&quot;V&quot;+d[2]+&quot;L&quot;+h[1]+&quot;,&quot;+d[0]+&quot;Z&quot;),&quot;&quot;===m&amp;&amp;(m=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,m).call(a.setClipUrl,e.layerClipId,t)}}))}else h.remove()}))}(t,e,r,u),function(t,e,r,o){var s=e.xaxis,l=e.yaxis;i.makeTraceGroups(o,r,&quot;trace bars&quot;).each((function(r){var o=n.select(this),u=r[0].trace,f=i.ensureSingle(o,&quot;g&quot;,&quot;lines&quot;);if(u.connector&amp;&amp;u.connector.visible&amp;&amp;u.connector.line.width){var h=&quot;h&quot;===u.orientation,p=f.selectAll(&quot;g.line&quot;).data(i.identity);p.enter().append(&quot;g&quot;).classed(&quot;line&quot;,!0),p.exit().remove();var d=p.size();p.each((function(r,o){if(o===d-1||r.cNext){var u=c(r,s,l,h),f=u[0],p=u[1],g=&quot;&quot;;void 0!==f[3]&amp;&amp;void 0!==p[3]&amp;&amp;(h?(g+=&quot;M&quot;+f[0]+&quot;,&quot;+p[1]+&quot;L&quot;+f[2]+&quot;,&quot;+p[2],g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[1]+&quot;L&quot;+f[3]+&quot;,&quot;+p[2]):(g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[1]+&quot;L&quot;+f[2]+&quot;,&quot;+p[3],g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[0]+&quot;L&quot;+f[2]+&quot;,&quot;+p[2])),&quot;&quot;===g&amp;&amp;(g=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,g).call(a.setClipUrl,e.layerClipId,t)}}))}else f.remove()}))}(t,e,r,u),s.plot(t,e,r,u,{mode:f.funnelmode,norm:f.funnelmode,gap:f.funnelgap,groupgap:f.funnelgroupgap})}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../bar/plot&quot;:932,&quot;../bar/uniform_text&quot;:937,d3:169}],1055:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../constants/interactions&quot;).DESELECTDIM,s=t(&quot;../bar/style&quot;),l=t(&quot;../bar/uniform_text&quot;).resizeText,c=s.styleTextPoints;e.exports={style:function(t,e,r){var s=r||n.select(t).selectAll(&quot;g.funnellayer&quot;).selectAll(&quot;g.trace&quot;);l(t,s,&quot;funnel&quot;),s.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),s.each((function(e){var r=n.select(this),s=e[0].trace;r.selectAll(&quot;.point &gt; path&quot;).each((function(t){if(!t.isBlank){var e=s.marker;n.select(this).call(a.fill,t.mc||e.color).call(a.stroke,t.mlc||e.line.color).call(i.dashLine,e.line.dash,t.mlw||e.line.width).style(&quot;opacity&quot;,s.selectedpoints&amp;&amp;!t.selected?o:1)}})),c(r,s,t),r.selectAll(&quot;.regions&quot;).each((function(){n.select(this).selectAll(&quot;path&quot;).style(&quot;stroke-width&quot;,0).call(a.fill,s.connector.fillcolor)})),r.selectAll(&quot;.lines&quot;).each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll(&quot;path&quot;),t.width,t.color,t.dash)}))}))}}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../constants/interactions&quot;:752,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,d3:169}],1056:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/domain&quot;).attributes,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:n.labels,label0:n.label0,dlabel:n.dlabel,values:n.values,marker:{colors:n.marker.colors,line:{color:l({},n.marker.line.color,{dflt:null}),width:l({},n.marker.line.width,{dflt:1}),editType:&quot;calc&quot;},editType:&quot;calc&quot;},text:n.text,hovertext:n.hovertext,scalegroup:l({},n.scalegroup,{}),textinfo:l({},n.textinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;]}),texttemplate:s({editType:&quot;plot&quot;},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;text&quot;,&quot;percent&quot;]}),hoverinfo:l({},i.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;name&quot;]}),hovertemplate:o({},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;text&quot;,&quot;percent&quot;]}),textposition:l({},n.textposition,{values:[&quot;inside&quot;,&quot;none&quot;],dflt:&quot;inside&quot;}),textfont:n.textfont,insidetextfont:n.insidetextfont,title:{text:n.title.text,font:n.title.font,position:l({},n.title.position,{values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;],dflt:&quot;top center&quot;}),editType:&quot;plot&quot;},domain:a({name:&quot;funnelarea&quot;,trace:!0,editType:&quot;calc&quot;}),aspectratio:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},baseratio:{valType:&quot;number&quot;,min:0,max:1,dflt:.333,editType:&quot;plot&quot;}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/template_attributes&quot;:906,&quot;../pie/attributes&quot;:1161}],1057:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;funnelarea&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1058:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/calc&quot;);e.exports={calc:function(t,e){return n.calc(t,e)},crossTraceCalc:function(t){n.crossTraceCalc(t,{type:&quot;funnelarea&quot;})}}},{&quot;../pie/calc&quot;:1163}],1059:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../bar/defaults&quot;).handleText,s=t(&quot;../pie/defaults&quot;).handleLabelsAndValues;e.exports=function(t,e,r,l){function c(r,a){return n.coerce(t,e,i,r,a)}var u=c(&quot;labels&quot;),f=c(&quot;values&quot;),h=s(u,f),p=h.len;if(e._hasLabels=h.hasLabels,e._hasValues=h.hasValues,!e._hasLabels&amp;&amp;e._hasValues&amp;&amp;(c(&quot;label0&quot;),c(&quot;dlabel&quot;)),p){e._length=p,c(&quot;marker.line.width&quot;)&amp;&amp;c(&quot;marker.line.color&quot;,l.paper_bgcolor),c(&quot;marker.colors&quot;),c(&quot;scalegroup&quot;);var d,g=c(&quot;text&quot;),m=c(&quot;texttemplate&quot;);if(m||(d=c(&quot;textinfo&quot;,Array.isArray(g)?&quot;text+percent&quot;:&quot;percent&quot;)),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),m||d&amp;&amp;&quot;none&quot;!==d){var v=c(&quot;textposition&quot;);o(t,e,l,c,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}a(e,l,c),c(&quot;title.text&quot;)&amp;&amp;(c(&quot;title.position&quot;),n.coerceFont(c,&quot;title.font&quot;,l.font)),c(&quot;aspectratio&quot;),c(&quot;baseratio&quot;)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/defaults&quot;:925,&quot;../pie/defaults&quot;:1164,&quot;./attributes&quot;:1056}],1060:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;funnelarea&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;pie-like&quot;,&quot;funnelarea&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),styleOne:t(&quot;../pie/style_one&quot;),meta:{}}},{&quot;../pie/style_one&quot;:1172,&quot;./attributes&quot;:1056,&quot;./base_plot&quot;:1057,&quot;./calc&quot;:1058,&quot;./defaults&quot;:1059,&quot;./layout_attributes&quot;:1061,&quot;./layout_defaults&quot;:1062,&quot;./plot&quot;:1063,&quot;./style&quot;:1064}],1061:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/layout_attributes&quot;).hiddenlabels;e.exports={hiddenlabels:n,funnelareacolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendfunnelareacolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{&quot;../pie/layout_attributes&quot;:1168}],1062:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;hiddenlabels&quot;),r(&quot;funnelareacolorway&quot;,e.colorway),r(&quot;extendfunnelareacolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1061}],1063:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../lib&quot;),o=a.strScale,s=a.strTranslate,l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../bar/plot&quot;).toMoveInsideBar,u=t(&quot;../bar/uniform_text&quot;),f=u.recordMinTextSize,h=u.clearMinTextSize,p=t(&quot;../pie/helpers&quot;),d=t(&quot;../pie/plot&quot;),g=d.attachFxHandlers,m=d.determineInsideTextFont,v=d.layoutAreas,y=d.prerenderTitles,x=d.positionTitleOutside,b=d.formatSliceLabel;function _(t,e){return&quot;l&quot;+(e[0]-t[0])+&quot;,&quot;+(e[1]-t[1])}e.exports=function(t,e){var r=t._fullLayout;h(&quot;funnelarea&quot;,r),y(e,t),v(e,r._size),a.makeTraceGroups(r._funnelarealayer,e,&quot;trace&quot;).each((function(e){var u=n.select(this),h=e[0],d=h.trace;!function(t){if(!t.length)return;var e=t[0],r=e.trace,n=r.aspectratio,i=r.baseratio;i&gt;.999&amp;&amp;(i=.999);var a,o=Math.pow(i,2),s=e.vTotal,l=s,c=s*o/(1-o)/s;function u(){var t,e={x:t=Math.sqrt(c),y:-t};return[e.x,e.y]}var f,h,p=[];for(p.push(u()),f=t.length-1;f&gt;-1;f--)if(!(h=t[f]).hidden){var d=h.v/l;c+=d,p.push(u())}var g=1/0,m=-1/0;for(f=0;f&lt;p.length;f++)a=p[f],g=Math.min(g,a[1]),m=Math.max(m,a[1]);for(f=0;f&lt;p.length;f++)p[f][1]-=(m+g)/2;var v=p[p.length-1][0],y=e.r,x=(m-g)/2,b=y/v,_=y/x*n;for(e.r=_*x,f=0;f&lt;p.length;f++)p[f][0]*=b,p[f][1]*=_;var w=[-(a=p[0])[0],a[1]],T=[a[0],a[1]],k=0;for(f=t.length-1;f&gt;-1;f--)if(!(h=t[f]).hidden){var M=p[k+=1][0],A=p[k][1];h.TL=[-M,A],h.TR=[M,A],h.BL=w,h.BR=T,h.pxmid=(S=h.TR,E=h.BR,[.5*(S[0]+E[0]),.5*(S[1]+E[1])]),w=h.TL,T=h.TR}var S,E}(e),u.each((function(){var u=n.select(this).selectAll(&quot;g.slice&quot;).data(e);u.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),u.exit().remove(),u.each((function(o,s){if(o.hidden)n.select(this).selectAll(&quot;path,g&quot;).remove();else{o.pointNumber=o.i,o.curveNumber=d.index;var u=h.cx,v=h.cy,y=n.select(this),x=y.selectAll(&quot;path.surface&quot;).data([o]);x.enter().append(&quot;path&quot;).classed(&quot;surface&quot;,!0).style({&quot;pointer-events&quot;:&quot;all&quot;}),y.call(g,t,e);var w=&quot;M&quot;+(u+o.TR[0])+&quot;,&quot;+(v+o.TR[1])+_(o.TR,o.BR)+_(o.BR,o.BL)+_(o.BL,o.TL)+&quot;Z&quot;;x.attr(&quot;d&quot;,w),b(t,o,h);var T=p.castOption(d.textposition,o.pts),k=y.selectAll(&quot;g.slicetext&quot;).data(o.text&amp;&amp;&quot;none&quot;!==T?[0]:[]);k.enter().append(&quot;g&quot;).classed(&quot;slicetext&quot;,!0),k.exit().remove(),k.each((function(){var h=a.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),p=a.ensureUniformFontSize(t,m(d,o,r.font));h.text(o.text).attr({class:&quot;slicetext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(i.font,p).call(l.convertToTspans,t);var g,y,x,b=i.bBox(h.node()),_=Math.min(o.BL[1],o.BR[1])+v,w=Math.max(o.TL[1],o.TR[1])+v;y=Math.max(o.TL[0],o.BL[0])+u,x=Math.min(o.TR[0],o.BR[0])+u,(g=c(y,x,_,w,b,{isHorizontal:!0,constrained:!0,angle:0,anchor:&quot;middle&quot;})).fontSize=p.size,f(d.type,g,r),e[s].transform=g,h.attr(&quot;transform&quot;,a.getTextTransform(g))}))}}));var v=n.select(this).selectAll(&quot;g.titletext&quot;).data(d.title.text?[0]:[]);v.enter().append(&quot;g&quot;).classed(&quot;titletext&quot;,!0),v.exit().remove(),v.each((function(){var e=a.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),c=d.title.text;d._meta&amp;&amp;(c=a.templateString(c,d._meta)),e.text(c).attr({class:&quot;titletext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(i.font,d.title.font).call(l.convertToTspans,t);var u=x(h,r._size);e.attr(&quot;transform&quot;,s(u.x,u.y)+o(Math.min(1,u.scale))+s(u.tx,u.ty))}))}))}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../bar/plot&quot;:932,&quot;../bar/uniform_text&quot;:937,&quot;../pie/helpers&quot;:1166,&quot;../pie/plot&quot;:1170,d3:169}],1064:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../pie/style_one&quot;),a=t(&quot;../bar/uniform_text&quot;).resizeText;e.exports=function(t){var e=t._fullLayout._funnelarealayer.selectAll(&quot;.trace&quot;);a(t,e,&quot;funnelarea&quot;),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(i,t,e)}))}))}},{&quot;../bar/uniform_text&quot;:937,&quot;../pie/style_one&quot;:1172,d3:169}],1065:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,t(&quot;../../lib/extend&quot;).extendFlat);e.exports=s({z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},x:s({},n.x,{impliedEdits:{xtype:&quot;array&quot;}}),x0:s({},n.x0,{impliedEdits:{xtype:&quot;scaled&quot;}}),dx:s({},n.dx,{impliedEdits:{xtype:&quot;scaled&quot;}}),y:s({},n.y,{impliedEdits:{ytype:&quot;array&quot;}}),y0:s({},n.y0,{impliedEdits:{ytype:&quot;scaled&quot;}}),dy:s({},n.dy,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiod:s({},n.xperiod,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiod:s({},n.yperiod,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiod0:s({},n.xperiod0,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiod0:s({},n.yperiod0,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiodalignment:s({},n.xperiodalignment,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiodalignment:s({},n.yperiodalignment,{impliedEdits:{ytype:&quot;scaled&quot;}}),text:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},hovertext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},transpose:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},xtype:{valType:&quot;enumerated&quot;,values:[&quot;array&quot;,&quot;scaled&quot;],editType:&quot;calc+clearAxisTypes&quot;},ytype:{valType:&quot;enumerated&quot;,values:[&quot;array&quot;,&quot;scaled&quot;],editType:&quot;calc+clearAxisTypes&quot;},zsmooth:{valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,&quot;best&quot;,!1],dflt:!1,editType:&quot;calc&quot;},hoverongaps:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;none&quot;},connectgaps:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},xgap:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;plot&quot;},ygap:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;plot&quot;},zhoverformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;none&quot;},hovertemplate:a(),showlegend:s({},i.showlegend,{dflt:!1})},{transforms:void 0},o(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1066:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../histogram2d/calc&quot;),l=t(&quot;../../components/colorscale/calc&quot;),c=t(&quot;./convert_column_xyz&quot;),u=t(&quot;./clean_2d_array&quot;),f=t(&quot;./interp2d&quot;),h=t(&quot;./find_empties&quot;),p=t(&quot;./make_bound_array&quot;),d=t(&quot;../../constants/numerical&quot;).BADNUM;function g(t){for(var e=[],r=t.length,n=0;n&lt;r;n++){var i=t[n];i!==d&amp;&amp;e.push(i)}return e}e.exports=function(t,e){var r,m,v,y,x,b,_,w,T,k,M,A=a.getFromId(t,e.xaxis||&quot;x&quot;),S=a.getFromId(t,e.yaxis||&quot;y&quot;),E=n.traceIs(e,&quot;contour&quot;),C=n.traceIs(e,&quot;histogram&quot;),L=n.traceIs(e,&quot;gl2d&quot;),I=E?&quot;best&quot;:e.zsmooth;if(A._minDtick=0,S._minDtick=0,C)y=(M=s(t,e)).orig_x,r=M.x,m=M.x0,v=M.dx,w=M.orig_y,x=M.y,b=M.y0,_=M.dy,T=M.z;else{var P=e.z;i.isArray1D(P)?(c(e,A,S,&quot;x&quot;,&quot;y&quot;,[&quot;z&quot;]),r=e._x,x=e._y,P=e._z):(y=e.x?A.makeCalcdata(e,&quot;x&quot;):[],w=e.y?S.makeCalcdata(e,&quot;y&quot;):[],r=o(e,A,&quot;x&quot;,y),x=o(e,S,&quot;y&quot;,w),e._x=r,e._y=x),m=e.x0,v=e.dx,b=e.y0,_=e.dy,T=u(P,e,A,S)}function z(t){I=e._input.zsmooth=e.zsmooth=!1,i.warn('cannot use zsmooth: &quot;fast&quot;: '+t)}if((A.rangebreaks||S.rangebreaks)&amp;&amp;(T=function(t,e,r){for(var n=[],i=-1,a=0;a&lt;r.length;a++)if(e[a]!==d){i++,n[i]=[];for(var o=0;o&lt;r[a].length;o++)t[o]!==d&amp;&amp;n[i].push(r[a][o])}return n}(r,x,T),C||(r=g(r),x=g(x),e._x=r,e._y=x)),C||!E&amp;&amp;!e.connectgaps||(e._emptypoints=h(T),f(T,e._emptypoints)),&quot;fast&quot;===I)if(&quot;log&quot;===A.type||&quot;log&quot;===S.type)z(&quot;log axis found&quot;);else if(!C){if(r.length){var O=(r[r.length-1]-r[0])/(r.length-1),D=Math.abs(O/100);for(k=0;k&lt;r.length-1;k++)if(Math.abs(r[k+1]-r[k]-O)&gt;D){z(&quot;x scale is not linear&quot;);break}}if(x.length&amp;&amp;&quot;fast&quot;===I){var R=(x[x.length-1]-x[0])/(x.length-1),F=Math.abs(R/100);for(k=0;k&lt;x.length-1;k++)if(Math.abs(x[k+1]-x[k]-R)&gt;F){z(&quot;y scale is not linear&quot;);break}}}var B=i.maxRowLength(T),N=&quot;scaled&quot;===e.xtype?&quot;&quot;:r,j=p(e,N,m,v,B,A),U=&quot;scaled&quot;===e.ytype?&quot;&quot;:x,V=p(e,U,b,_,T.length,S);L||(e._extremes[A._id]=a.findExtremes(A,j),e._extremes[S._id]=a.findExtremes(S,V));var q={x:j,y:V,z:T,text:e._text||e.text,hovertext:e._hovertext||e.hovertext};if(e.xperiodalignment&amp;&amp;y&amp;&amp;(q.orig_x=y),e.yperiodalignment&amp;&amp;w&amp;&amp;(q.orig_y=w),N&amp;&amp;N.length===j.length-1&amp;&amp;(q.xCenter=N),U&amp;&amp;U.length===V.length-1&amp;&amp;(q.yCenter=U),C&amp;&amp;(q.xRanges=M.xRanges,q.yRanges=M.yRanges,q.pts=M.pts),E||l(t,e,{vals:T,cLetter:&quot;z&quot;}),E&amp;&amp;e.contours&amp;&amp;&quot;heatmap&quot;===e.contours.coloring){var H={type:&quot;contour&quot;===e.type?&quot;heatmap&quot;:&quot;histogram2d&quot;,xcalendar:e.xcalendar,ycalendar:e.ycalendar};q.xfill=p(H,N,m,v,B,A),q.yfill=p(H,U,b,_,T.length,S)}return[q]}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../histogram2d/calc&quot;:1098,&quot;./clean_2d_array&quot;:1067,&quot;./convert_column_xyz&quot;:1069,&quot;./find_empties&quot;:1071,&quot;./interp2d&quot;:1074,&quot;./make_bound_array&quot;:1075}],1067:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r,o){var s,l,c,u,f,h;function p(t){if(n(t))return+t}if(e&amp;&amp;e.transpose){for(s=0,f=0;f&lt;t.length;f++)s=Math.max(s,t[f].length);if(0===s)return!1;c=function(t){return t.length},u=function(t,e,r){return(t[r]||[])[e]}}else s=t.length,c=function(t,e){return t[e].length},u=function(t,e,r){return(t[e]||[])[r]};var d=function(t,e,r){return e===a||r===a?a:u(t,e,r)};function g(t){if(e&amp;&amp;&quot;carpet&quot;!==e.type&amp;&amp;&quot;contourcarpet&quot;!==e.type&amp;&amp;t&amp;&amp;&quot;category&quot;===t.type&amp;&amp;e[&quot;_&quot;+t._id.charAt(0)].length){var r=t._id.charAt(0),n={},o=e[&quot;_&quot;+r+&quot;CategoryMap&quot;]||e[r];for(f=0;f&lt;o.length;f++)n[o[f]]=f;return function(e){var r=n[t._categories[e]];return r+1?r:a}}return i.identity}var m=g(r),v=g(o);o&amp;&amp;&quot;category&quot;===o.type&amp;&amp;(s=o._categories.length);var y=new Array(s);for(f=0;f&lt;s;f++)for(l=r&amp;&amp;&quot;category&quot;===r.type?r._categories.length:c(t,f),y[f]=new Array(l),h=0;h&lt;l;h++)y[f][h]=p(d(t,v(f),m(h)));return y}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],1068:[function(t,e,r){&quot;use strict&quot;;e.exports={min:&quot;zmin&quot;,max:&quot;zmax&quot;}},{}],1069:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../plots/cartesian/align_period&quot;);e.exports=function(t,e,r,o,s,l){var c=t._length,u=e.makeCalcdata(t,o),f=r.makeCalcdata(t,s);u=a(t,e,o,u),f=a(t,r,s,f);var h,p,d,g,m=t.text,v=void 0!==m&amp;&amp;n.isArray1D(m),y=t.hovertext,x=void 0!==y&amp;&amp;n.isArray1D(y),b=n.distinctVals(u),_=b.vals,w=n.distinctVals(f),T=w.vals,k=[],M=T.length,A=_.length;for(h=0;h&lt;l.length;h++)k[h]=n.init2dArray(M,A);v&amp;&amp;(d=n.init2dArray(M,A)),x&amp;&amp;(g=n.init2dArray(M,A));var S=n.init2dArray(M,A);for(h=0;h&lt;c;h++)if(u[h]!==i&amp;&amp;f[h]!==i){var E=n.findBin(u[h]+b.minDiff/2,_),C=n.findBin(f[h]+w.minDiff/2,T);for(p=0;p&lt;l.length;p++){var L=t[l[p]];k[p][C][E]=L[h],S[C][E]=h}v&amp;&amp;(d[C][E]=m[h]),x&amp;&amp;(g[C][E]=y[h])}for(t[&quot;_&quot;+o]=_,t[&quot;_&quot;+s]=T,p=0;p&lt;l.length;p++)t[&quot;_&quot;+l[p]]=k[p];v&amp;&amp;(t._text=d),x&amp;&amp;(t._hovertext=g),e&amp;&amp;&quot;category&quot;===e.type&amp;&amp;(t[&quot;_&quot;+o+&quot;CategoryMap&quot;]=_.map((function(t){return e._categories[t]}))),r&amp;&amp;&quot;category&quot;===r.type&amp;&amp;(t[&quot;_&quot;+s+&quot;CategoryMap&quot;]=T.map((function(t){return r._categories[t]}))),t._after2before=S}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825}],1070:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./xyz_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./style_defaults&quot;),s=t(&quot;../../components/colorscale/defaults&quot;),l=t(&quot;./attributes&quot;);e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,l,r,i)}i(t,e,u,c)?(a(t,e,c,u),u(&quot;text&quot;),u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;),o(t,e,u,c),u(&quot;hoverongaps&quot;),u(&quot;connectgaps&quot;,n.isArray1D(e.z)&amp;&amp;!1!==e.zsmooth),s(t,e,c,u,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:1065,&quot;./style_defaults&quot;:1078,&quot;./xyz_defaults&quot;:1079}],1071:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).maxRowLength;e.exports=function(t){var e,r,i,a,o,s,l,c,u=[],f={},h=[],p=t[0],d=[],g=[0,0,0],m=n(t);for(r=0;r&lt;t.length;r++)for(e=d,d=p,p=t[r+1]||[],i=0;i&lt;m;i++)void 0===d[i]&amp;&amp;((s=(void 0!==d[i-1]?1:0)+(void 0!==d[i+1]?1:0)+(void 0!==e[i]?1:0)+(void 0!==p[i]?1:0))?(0===r&amp;&amp;s++,0===i&amp;&amp;s++,r===t.length-1&amp;&amp;s++,i===d.length-1&amp;&amp;s++,s&lt;4&amp;&amp;(f[[r,i]]=[r,i,s]),u.push([r,i,s])):h.push([r,i]));for(;h.length;){for(l={},c=!1,o=h.length-1;o&gt;=0;o--)(s=((f[[(r=(a=h[o])[0])-1,i=a[1]]]||g)[2]+(f[[r+1,i]]||g)[2]+(f[[r,i-1]]||g)[2]+(f[[r,i+1]]||g)[2])/20)&amp;&amp;(l[a]=[r,i,s],h.splice(o,1),c=!0);if(!c)throw&quot;findEmpties iterated with no new neighbors&quot;;for(a in l)f[a]=l[a],u.push(l[a])}return u.sort((function(t,e){return e[2]-t[2]}))}},{&quot;../../lib&quot;:778}],1072:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts;e.exports=function(t,e,r,s,l,c){var u,f,h,p,d=t.cd[0],g=d.trace,m=t.xa,v=t.ya,y=d.x,x=d.y,b=d.z,_=d.xCenter,w=d.yCenter,T=d.zmask,k=g.zhoverformat,M=y,A=x;if(!1!==t.index){try{h=Math.round(t.index[1]),p=Math.round(t.index[0])}catch(e){return void i.error(&quot;Error hovering on heatmap, pointNumber must be [row,col], found:&quot;,t.index)}if(h&lt;0||h&gt;=b[0].length||p&lt;0||p&gt;b.length)return}else{if(n.inbox(e-y[0],e-y[y.length-1],0)&gt;0||n.inbox(r-x[0],r-x[x.length-1],0)&gt;0)return;if(c){var S;for(M=[2*y[0]-y[1]],S=1;S&lt;y.length;S++)M.push((y[S]+y[S-1])/2);for(M.push([2*y[y.length-1]-y[y.length-2]]),A=[2*x[0]-x[1]],S=1;S&lt;x.length;S++)A.push((x[S]+x[S-1])/2);A.push([2*x[x.length-1]-x[x.length-2]])}h=Math.max(0,Math.min(M.length-2,i.findBin(e,M))),p=Math.max(0,Math.min(A.length-2,i.findBin(r,A)))}var E,C,L=m.c2p(y[h]),I=m.c2p(y[h+1]),P=v.c2p(x[p]),z=v.c2p(x[p+1]);c?(E=d.orig_x||y,C=d.orig_y||x,I=L,u=E[h],z=P,f=C[p]):(E=d.orig_x||_||y,C=d.orig_y||w||x,u=_?E[h]:(E[h]+E[h+1])/2,f=w?C[p]:(C[p]+C[p+1])/2,m&amp;&amp;&quot;category&quot;===m.type&amp;&amp;(u=y[h]),v&amp;&amp;&quot;category&quot;===v.type&amp;&amp;(f=x[p]),g.zsmooth&amp;&amp;(L=I=m.c2p(u),P=z=v.c2p(f)));var O=b[p][h];if(T&amp;&amp;!T[p][h]&amp;&amp;(O=void 0),void 0!==O||g.hoverongaps){var D;Array.isArray(d.hovertext)&amp;&amp;Array.isArray(d.hovertext[p])?D=d.hovertext[p][h]:Array.isArray(d.text)&amp;&amp;Array.isArray(d.text[p])&amp;&amp;(D=d.text[p][h]);var R=o(g),F={type:&quot;linear&quot;,range:[R.min,R.max],hoverformat:k,_separators:m._separators,_numFormat:m._numFormat},B=a.tickText(F,O,&quot;hover&quot;).text;return[i.extendFlat(t,{index:g._after2before?g._after2before[p][h]:[p,h],distance:t.maxHoverDistance,spikeDistance:t.maxSpikeDistance,x0:L,x1:I,y0:P,y1:z,xLabelVal:u,yLabelVal:f,zLabelVal:O,zLabel:B,text:D})]}}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1073:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:t(&quot;./colorbar&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;),moduleType:&quot;trace&quot;,name:&quot;heatmap&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1065,&quot;./calc&quot;:1066,&quot;./colorbar&quot;:1068,&quot;./defaults&quot;:1070,&quot;./hover&quot;:1072,&quot;./plot&quot;:1076,&quot;./style&quot;:1077}],1074:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=[[-1,0],[1,0],[0,-1],[0,1]];function a(t){return.5-.25*Math.min(1,.5*t)}function o(t,e,r){var n,a,o,s,l,c,u,f,h,p,d,g,m,v=0;for(s=0;s&lt;e.length;s++){for(a=(n=e[s])[0],o=n[1],d=t[a][o],p=0,h=0,l=0;l&lt;4;l++)(u=t[a+(c=i[l])[0]])&amp;&amp;void 0!==(f=u[o+c[1]])&amp;&amp;(0===p?g=m=f:(g=Math.min(g,f),m=Math.max(m,f)),h++,p+=f);if(0===h)throw&quot;iterateInterp2d order is wrong: no defined neighbors&quot;;t[a][o]=p/h,void 0===d?h&lt;4&amp;&amp;(v=1):(t[a][o]=(1+r)*t[a][o]-r*d,m&gt;g&amp;&amp;(v=Math.max(v,Math.abs(t[a][o]-d)/(m-g))))}return v}e.exports=function(t,e){var r,i=1;for(o(t,e),r=0;r&lt;e.length&amp;&amp;!(e[r][2]&lt;4);r++);for(e=e.slice(r),r=0;r&lt;100&amp;&amp;i&gt;.01;r++)i=o(t,e,a(i));return i&gt;.01&amp;&amp;n.log(&quot;interp2d didn't converge quickly&quot;,i),t}},{&quot;../../lib&quot;:778}],1075:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a,o,s){var l,c,u,f=[],h=n.traceIs(t,&quot;contour&quot;),p=n.traceIs(t,&quot;histogram&quot;),d=n.traceIs(t,&quot;gl2d&quot;);if(i(e)&amp;&amp;e.length&gt;1&amp;&amp;!p&amp;&amp;&quot;category&quot;!==s.type){var g=e.length;if(!(g&lt;=o))return h?e.slice(0,o):e.slice(0,o+1);if(h||d)f=e.slice(0,o);else if(1===o)f=[e[0]-.5,e[0]+.5];else{for(f=[1.5*e[0]-.5*e[1]],u=1;u&lt;g;u++)f.push(.5*(e[u-1]+e[u]));f.push(1.5*e[g-1]-.5*e[g-2])}if(g&lt;o){var m=f[f.length-1],v=m-f[f.length-2];for(u=g;u&lt;o;u++)m+=v,f.push(m)}}else{var y=t[s._id.charAt(0)+&quot;calendar&quot;];if(p)l=s.r2c(r,0,y);else if(i(e)&amp;&amp;1===e.length)l=e[0];else if(void 0===r)l=0;else{l=(&quot;log&quot;===s.type?s.d2c:s.r2c)(r,0,y)}for(c=a||1,u=h||d?0:-.5;u&lt;o;u++)f.push(l+c*u)}return f}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1076:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../components/colorscale&quot;).makeColorScaleFuncFromTrace,l=t(&quot;../../constants/xmlns_namespaces&quot;);function c(t,e){var r=e.length-2,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=e[n+1],s=o.constrain(n+(t-i)/(a-i)-.5,0,r),l=Math.round(s),c=Math.abs(s-l);return s&amp;&amp;s!==r&amp;&amp;c?{bin0:l,frac:c,bin1:Math.round(l+c/(s-l))}:{bin0:l,bin1:l,frac:0}}function u(t,e){var r=e.length-1,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=(t-i)/(e[n+1]-i)||0;return a&lt;=0?{bin0:n,bin1:n,frac:0}:a&lt;.5?{bin0:n,bin1:n+1,frac:a}:{bin0:n+1,bin1:n,frac:1-a}}function f(t,e,r){t[e]=r[0],t[e+1]=r[1],t[e+2]=r[2],t[e+3]=Math.round(255*r[3])}e.exports=function(t,e,r,h){var p=e.xaxis,d=e.yaxis;o.makeTraceGroups(h,r,&quot;hm&quot;).each((function(e){var r,h,g,m,v,y,x=n.select(this),b=e[0],_=b.trace,w=b.z,T=b.x,k=b.y,M=b.xCenter,A=b.yCenter,S=a.traceIs(_,&quot;contour&quot;),E=S?&quot;best&quot;:_.zsmooth,C=w.length,L=o.maxRowLength(w),I=!1,P=!1;for(y=0;void 0===r&amp;&amp;y&lt;T.length-1;)r=p.c2p(T[y]),y++;for(y=T.length-1;void 0===h&amp;&amp;y&gt;0;)h=p.c2p(T[y]),y--;for(h&lt;r&amp;&amp;(g=h,h=r,r=g,I=!0),y=0;void 0===m&amp;&amp;y&lt;k.length-1;)m=d.c2p(k[y]),y++;for(y=k.length-1;void 0===v&amp;&amp;y&gt;0;)v=d.c2p(k[y]),y--;if(v&lt;m&amp;&amp;(g=m,m=v,v=g,P=!0),S&amp;&amp;(M=T,A=k,T=b.xfill,k=b.yfill),&quot;fast&quot;!==E){var z=&quot;best&quot;===E?0:.5;r=Math.max(-z*p._length,r),h=Math.min((1+z)*p._length,h),m=Math.max(-z*d._length,m),v=Math.min((1+z)*d._length,v)}var O=Math.round(h-r),D=Math.round(v-m);if(O&lt;=0||D&lt;=0){x.selectAll(&quot;image&quot;).data([]).exit().remove()}else{var R,F;&quot;fast&quot;===E?(R=L,F=C):(R=O,F=D);var B=document.createElement(&quot;canvas&quot;);B.width=R,B.height=F;var N,j,U=B.getContext(&quot;2d&quot;),V=s(_,{noNumericCheck:!0,returnArray:!0});&quot;fast&quot;===E?(N=I?function(t){return L-1-t}:o.identity,j=P?function(t){return C-1-t}:o.identity):(N=function(t){return o.constrain(Math.round(p.c2p(T[t])-r),0,O)},j=function(t){return o.constrain(Math.round(d.c2p(k[t])-m),0,D)});var q,H,G,Y,W,X=j(0),Z=[X,X],J=I?0:1,K=P?0:1,Q=0,$=0,tt=0,et=0;if(E){var rt,nt=0;try{rt=new Uint8Array(O*D*4)}catch(t){rt=new Array(O*D*4)}if(&quot;best&quot;===E){var it,at,ot,st=M||T,lt=A||k,ct=new Array(st.length),ut=new Array(lt.length),ft=new Array(O),ht=M?u:c,pt=A?u:c;for(y=0;y&lt;st.length;y++)ct[y]=Math.round(p.c2p(st[y])-r);for(y=0;y&lt;lt.length;y++)ut[y]=Math.round(d.c2p(lt[y])-m);for(y=0;y&lt;O;y++)ft[y]=ht(y,ct);for(H=0;H&lt;D;H++)for(at=w[(it=pt(H,ut)).bin0],ot=w[it.bin1],y=0;y&lt;O;y++,nt+=4)f(rt,nt,W=kt(at,ot,ft[y],it))}else for(H=0;H&lt;C;H++)for(Y=w[H],Z=j(H),y=0;y&lt;O;y++)W=Tt(Y[y],1),f(rt,nt=4*(Z*O+N(y)),W);var dt=U.createImageData(O,D);try{dt.data.set(rt)}catch(t){var gt=dt.data,mt=gt.length;for(H=0;H&lt;mt;H++)gt[H]=rt[H]}U.putImageData(dt,0,0)}else{var vt=_.xgap,yt=_.ygap,xt=Math.floor(vt/2),bt=Math.floor(yt/2);for(H=0;H&lt;C;H++)if(Y=w[H],Z.reverse(),Z[K]=j(H+1),Z[0]!==Z[1]&amp;&amp;void 0!==Z[0]&amp;&amp;void 0!==Z[1])for(q=[G=N(0),G],y=0;y&lt;L;y++)q.reverse(),q[J]=N(y+1),q[0]!==q[1]&amp;&amp;void 0!==q[0]&amp;&amp;void 0!==q[1]&amp;&amp;(W=Tt(Y[y],(q[1]-q[0])*(Z[1]-Z[0])),U.fillStyle=&quot;rgba(&quot;+W.join(&quot;,&quot;)+&quot;)&quot;,U.fillRect(q[0]+xt,Z[0]+bt,q[1]-q[0]-vt,Z[1]-Z[0]-yt))}$=Math.round($/Q),tt=Math.round(tt/Q),et=Math.round(et/Q);var _t=i(&quot;rgb(&quot;+$+&quot;,&quot;+tt+&quot;,&quot;+et+&quot;)&quot;);t._hmpixcount=(t._hmpixcount||0)+Q,t._hmlumcount=(t._hmlumcount||0)+Q*_t.getLuminance();var wt=x.selectAll(&quot;image&quot;).data(e);wt.enter().append(&quot;svg:image&quot;).attr({xmlns:l.svg,preserveAspectRatio:&quot;none&quot;}),wt.attr({height:D,width:O,x:r,y:m,&quot;xlink:href&quot;:B.toDataURL(&quot;image/png&quot;)})}function Tt(t,e){if(void 0!==t){var r=V(t);return r[0]=Math.round(r[0]),r[1]=Math.round(r[1]),r[2]=Math.round(r[2]),Q+=e,$+=r[0]*e,tt+=r[1]*e,et+=r[2]*e,r}return[0,0,0,0]}function kt(t,e,r,n){var i=t[r.bin0];if(void 0===i)return Tt(void 0,1);var a,o=t[r.bin1],s=e[r.bin0],l=e[r.bin1],c=o-i||0,u=s-i||0;return a=void 0===o?void 0===l?0:void 0===s?2*(l-i):2*(2*l-s-i)/3:void 0===l?void 0===s?0:2*(2*i-o-s)/3:void 0===s?2*(2*l-o-i)/3:l+i-o-s,Tt(i+r.frac*c+n.frac*(u+r.frac*a))}}))}},{&quot;../../components/colorscale&quot;:655,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,d3:169,tinycolor2:576}],1077:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t){n.select(t).selectAll(&quot;.hm image&quot;).style(&quot;opacity&quot;,(function(t){return t.trace.opacity}))}},{d3:169}],1078:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){!1===r(&quot;zsmooth&quot;)&amp;&amp;(r(&quot;xgap&quot;),r(&quot;ygap&quot;)),r(&quot;zhoverformat&quot;)}},{}],1079:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;);function o(t,e){var r=e(t);return&quot;scaled&quot;===(r?e(t+&quot;type&quot;,&quot;array&quot;):&quot;scaled&quot;)&amp;&amp;(e(t+&quot;0&quot;),e(&quot;d&quot;+t)),r}e.exports=function(t,e,r,s,l,c){var u,f,h=r(&quot;z&quot;);if(l=l||&quot;x&quot;,c=c||&quot;y&quot;,void 0===h||!h.length)return 0;if(i.isArray1D(t.z)){u=r(l),f=r(c);var p=i.minRowLength(u),d=i.minRowLength(f);if(0===p||0===d)return 0;e._length=Math.min(p,d,h.length)}else{if(u=o(l,r),f=o(c,r),!function(t){for(var e,r=!0,a=!1,o=!1,s=0;s&lt;t.length;s++){if(e=t[s],!i.isArrayOrTypedArray(e)){r=!1;break}e.length&gt;0&amp;&amp;(a=!0);for(var l=0;l&lt;e.length;l++)if(n(e[l])){o=!0;break}}return r&amp;&amp;a&amp;&amp;o}(h))return 0;r(&quot;transpose&quot;),e._length=null}return&quot;heatmapgl&quot;===t.type||&quot;contourgl&quot;===t.type||a.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[l,c],s),!0}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;fast-isnumeric&quot;:241}],1080:[function(t,e,r){&quot;use strict&quot;;for(var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=[&quot;z&quot;,&quot;x&quot;,&quot;x0&quot;,&quot;dx&quot;,&quot;y&quot;,&quot;y0&quot;,&quot;dy&quot;,&quot;text&quot;,&quot;transpose&quot;,&quot;xtype&quot;,&quot;ytype&quot;],l={},c=0;c&lt;s.length;c++){var u=s[c];l[u]=n[u]}l.zsmooth={valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,!1],dflt:&quot;fast&quot;,editType:&quot;calc&quot;},a(l,i(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1})),e.exports=o(l,&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../heatmap/attributes&quot;:1065}],1081:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-heatmap2d&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../lib/str2rgbarray&quot;);function o(t,e){this.scene=t,this.uid=e,this.type=&quot;heatmapgl&quot;,this.name=&quot;&quot;,this.hoverinfo=&quot;all&quot;,this.xData=[],this.yData=[],this.zData=[],this.textLabels=[],this.idToIndex=[],this.bounds=[0,0,0,0],this.options={zsmooth:&quot;fast&quot;,z:[],x:[],y:[],shape:[0,0],colorLevels:[0],colorValues:[0,0,0,1]},this.heatmap=n(t.glplot,this.options),this.heatmap._trace=this}var s=o.prototype;s.handlePick=function(t){var e=this.options,r=e.shape,n=t.pointId,i=n%r[0],a=Math.floor(n/r[0]),o=n;return{trace:this,dataCoord:t.dataCoord,traceCoord:[e.x[i],e.y[a],e.z[o]],textLabel:this.textLabels[n],name:this.name,pointIndex:[a,i],hoverinfo:this.hoverinfo}},s.update=function(t,e){var r=e[0];this.index=t.index,this.name=t.name,this.hoverinfo=t.hoverinfo;var n=r.z;this.options.z=[].concat.apply([],n);var o=n[0].length,s=n.length;this.options.shape=[o,s],this.options.x=r.x,this.options.y=r.y,this.options.zsmooth=t.zsmooth;var l=function(t){for(var e=t.colorscale,r=t.zmin,n=t.zmax,i=e.length,o=new Array(i),s=new Array(4*i),l=0;l&lt;i;l++){var c=e[l],u=a(c[1]);o[l]=r+c[0]*(n-r);for(var f=0;f&lt;4;f++)s[4*l+f]=u[f]}return{colorLevels:o,colorValues:s}}(t);this.options.colorLevels=l.colorLevels,this.options.colorValues=l.colorValues,this.textLabels=[].concat.apply([],t.text),this.heatmap.update(this.options);var c,u,f=this.scene.xaxis,h=this.scene.yaxis;!1===t.zsmooth&amp;&amp;(c={ppad:r.x[1]-r.x[0]},u={ppad:r.y[1]-r.y[0]}),t._extremes[f._id]=i.findExtremes(f,r.x,c),t._extremes[h._id]=i.findExtremes(h,r.y,u)},s.dispose=function(){this.heatmap.dispose()},e.exports=function(t,e,r){var n=new o(t,e.uid);return n.update(e,r),n}},{&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/axes&quot;:828,&quot;gl-heatmap2d&quot;:271}],1082:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,l,s)?(l(&quot;text&quot;),l(&quot;zsmooth&quot;),a(t,e,s,l,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../heatmap/xyz_defaults&quot;:1079,&quot;./attributes&quot;:1080}],1083:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;../heatmap/calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;heatmapgl&quot;,basePlotModule:t(&quot;../../plots/gl2d&quot;),categories:[&quot;gl&quot;,&quot;gl2d&quot;,&quot;2dMap&quot;],meta:{}}},{&quot;../../plots/gl2d&quot;:868,&quot;../heatmap/calc&quot;:1066,&quot;../heatmap/colorbar&quot;:1068,&quot;./attributes&quot;:1080,&quot;./convert&quot;:1081,&quot;./defaults&quot;:1082}],1084:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;./bin_attributes&quot;),o=t(&quot;./constants&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},text:s({},n.text,{}),hovertext:s({},n.hovertext,{}),orientation:n.orientation,histfunc:{valType:&quot;enumerated&quot;,values:[&quot;count&quot;,&quot;sum&quot;,&quot;avg&quot;,&quot;min&quot;,&quot;max&quot;],dflt:&quot;count&quot;,editType:&quot;calc&quot;},histnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;percent&quot;,&quot;probability&quot;,&quot;density&quot;,&quot;probability density&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},cumulative:{enabled:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;increasing&quot;,&quot;decreasing&quot;],dflt:&quot;increasing&quot;,editType:&quot;calc&quot;},currentbin:{valType:&quot;enumerated&quot;,values:[&quot;include&quot;,&quot;exclude&quot;,&quot;half&quot;],dflt:&quot;include&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},nbinsx:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},xbins:a(&quot;x&quot;,!0),nbinsy:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},ybins:a(&quot;y&quot;,!0),autobinx:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},autobiny:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},bingroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertemplate:i({},{keys:o.eventDataKeys}),marker:n.marker,offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,_deprecated:{bardir:n._deprecated.bardir}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;./bin_attributes&quot;:1086,&quot;./constants&quot;:1090}],1085:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=t.length,n=0,i=0;i&lt;r;i++)e[i]?(t[i]/=e[i],n+=t[i]):t[i]=null;return n}},{}],1086:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return{start:{valType:&quot;any&quot;,editType:&quot;calc&quot;},end:{valType:&quot;any&quot;,editType:&quot;calc&quot;},size:{valType:&quot;any&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;}}},{}],1087:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports={count:function(t,e,r){return r[t]++,1},sum:function(t,e,r,i){var a=i[e];return n(a)?(a=Number(a),r[t]+=a,a):0},avg:function(t,e,r,i,a){var o=i[e];return n(o)&amp;&amp;(o=Number(o),r[t]+=o,a[t]++),0},min:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]&gt;a){var o=a-r[t];return r[t]=a,o}}return 0},max:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]&lt;a){var o=a-r[t];return r[t]=a,o}}return 0}}},{&quot;fast-isnumeric&quot;:241}],1088:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/numerical&quot;),i=n.ONEAVGYEAR,a=n.ONEAVGMONTH,o=n.ONEDAY,s=n.ONEHOUR,l=n.ONEMIN,c=n.ONESEC,u=t(&quot;../../plots/cartesian/axes&quot;).tickIncrement;function f(t,e,r,n){if(t*e&lt;=0)return 1/0;for(var i=Math.abs(e-t),a=&quot;date&quot;===r.type,o=h(i,a),s=0;s&lt;10;s++){var l=h(80*o,a);if(o===l)break;if(!p(l,t,e,a,r,n))break;o=l}return o}function h(t,e){return e&amp;&amp;t&gt;c?t&gt;o?t&gt;1.1*i?i:t&gt;1.1*a?a:o:t&gt;s?s:t&gt;l?l:c:Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function p(t,e,r,n,a,s){if(n&amp;&amp;t&gt;o){var l=d(e,a,s),c=d(r,a,s),u=t===i?0:1;return l[u]!==c[u]}return Math.floor(r/t)-Math.floor(e/t)&gt;.1}function d(t,e,r){var n=e.c2d(t,i,r).split(&quot;-&quot;);return&quot;&quot;===n[0]&amp;&amp;(n.unshift(),n[0]=&quot;-&quot;+n[0]),n}e.exports=function(t,e,r,n,a){var s,l,c=-1.1*e,h=-.1*e,p=t-h,d=r[0],g=r[1],m=Math.min(f(d+h,d+p,n,a),f(g+h,g+p,n,a)),v=Math.min(f(d+c,d+h,n,a),f(g+c,g+h,n,a));if(m&gt;v&amp;&amp;v&lt;Math.abs(g-d)/4e3?(s=m,l=!1):(s=Math.min(m,v),l=!0),&quot;date&quot;===n.type&amp;&amp;s&gt;o){var y=s===i?1:6,x=s===i?&quot;M12&quot;:&quot;M1&quot;;return function(e,r){var o=n.c2d(e,i,a),s=o.indexOf(&quot;-&quot;,y);s&gt;0&amp;&amp;(o=o.substr(0,s));var c=n.d2c(o,0,a);if(c&lt;e){var f=u(c,x,!1,a);(c+f)/2&lt;e+t&amp;&amp;(c=f)}return r&amp;&amp;l?u(c,x,!0,a):c}}return function(e,r){var n=s*Math.round(e/s);return n+s/10&lt;e&amp;&amp;n+.9*s&lt;e+t&amp;&amp;(n+=s),r&amp;&amp;l&amp;&amp;(n-=s),n}}},{&quot;../../constants/numerical&quot;:753,&quot;../../plots/cartesian/axes&quot;:828}],1089:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../bar/arrays_to_calcdata&quot;),l=t(&quot;./bin_functions&quot;),c=t(&quot;./norm_functions&quot;),u=t(&quot;./average&quot;),f=t(&quot;./bin_label_vals&quot;);function h(t,e,r,s,l){var c,u,f,p,d,g,m,v=s+&quot;bins&quot;,y=t._fullLayout,x=e[&quot;_&quot;+s+&quot;bingroup&quot;],b=y._histogramBinOpts[x],_=&quot;overlay&quot;===y.barmode,w=function(t){return r.r2c(t,0,p)},T=function(t){return r.c2r(t,0,p)},k=&quot;date&quot;===r.type?function(t){return t||0===t?i.cleanDate(t,null,p):null}:function(t){return n(t)?Number(t):null};function M(t,e,r){e[t+&quot;Found&quot;]?(e[t]=k(e[t]),null===e[t]&amp;&amp;(e[t]=r[t])):(g[t]=e[t]=r[t],i.nestedProperty(u[0],v+&quot;.&quot;+t).set(r[t]))}if(e[&quot;_&quot;+s+&quot;autoBinFinished&quot;])delete e[&quot;_&quot;+s+&quot;autoBinFinished&quot;];else{u=b.traces;var A=[],S=!0,E=!1,C=!1;for(c=0;c&lt;u.length;c++)if((f=u[c]).visible){var L=b.dirs[c];d=f[&quot;_&quot;+L+&quot;pos0&quot;]=r.makeCalcdata(f,L),A=i.concat(A,d),delete f[&quot;_&quot;+s+&quot;autoBinFinished&quot;],!0===e.visible&amp;&amp;(S?S=!1:(delete f._autoBin,f[&quot;_&quot;+s+&quot;autoBinFinished&quot;]=1),a.traceIs(f,&quot;2dMap&quot;)&amp;&amp;(E=!0),&quot;histogram2dcontour&quot;===f.type&amp;&amp;(C=!0))}p=u[0][s+&quot;calendar&quot;];var I=o.autoBin(A,r,b.nbins,E,p,b.sizeFound&amp;&amp;b.size),P=u[0]._autoBin={};if(g=P[b.dirs[0]]={},C&amp;&amp;(b.size||(I.start=T(o.tickIncrement(w(I.start),I.size,!0,p))),void 0===b.end&amp;&amp;(I.end=T(o.tickIncrement(w(I.end),I.size,!1,p)))),_&amp;&amp;!a.traceIs(e,&quot;2dMap&quot;)&amp;&amp;0===I._dataSpan&amp;&amp;&quot;category&quot;!==r.type&amp;&amp;&quot;multicategory&quot;!==r.type){if(l)return[I,d,!0];I=function(t,e,r,n,a){var o,s,l,c=t._fullLayout,u=function(t,e){for(var r=e.xaxis,n=e.yaxis,i=e.orientation,a=[],o=t._fullData,s=0;s&lt;o.length;s++){var l=o[s];&quot;histogram&quot;===l.type&amp;&amp;!0===l.visible&amp;&amp;l.orientation===i&amp;&amp;l.xaxis===r&amp;&amp;l.yaxis===n&amp;&amp;a.push(l)}return a}(t,e),f=!1,p=1/0,d=[e];for(o=0;o&lt;u.length;o++)if((s=u[o])===e)f=!0;else if(f){var g=h(t,s,r,n,!0),m=g[0],v=g[2];s[&quot;_&quot;+n+&quot;autoBinFinished&quot;]=1,s[&quot;_&quot;+n+&quot;pos0&quot;]=g[1],v?d.push(s):p=Math.min(p,m.size)}else l=c._histogramBinOpts[s[&quot;_&quot;+n+&quot;bingroup&quot;]],p=Math.min(p,l.size||s[a].size);var y=new Array(d.length);for(o=0;o&lt;d.length;o++)for(var x=d[o][&quot;_&quot;+n+&quot;pos0&quot;],b=0;b&lt;x.length;b++)if(void 0!==x[b]){y[o]=x[b];break}isFinite(p)||(p=i.distinctVals(y).minDiff);for(o=0;o&lt;d.length;o++){var _=(s=d[o])[n+&quot;calendar&quot;],w={start:r.c2r(y[o]-p/2,0,_),end:r.c2r(y[o]+p/2,0,_),size:p};s._input[a]=s[a]=w,(l=c._histogramBinOpts[s[&quot;_&quot;+n+&quot;bingroup&quot;]])&amp;&amp;i.extendFlat(l,w)}return e[a]}(t,e,r,s,v)}(m=f.cumulative||{}).enabled&amp;&amp;&quot;include&quot;!==m.currentbin&amp;&amp;(&quot;decreasing&quot;===m.direction?I.start=T(o.tickIncrement(w(I.start),I.size,!0,p)):I.end=T(o.tickIncrement(w(I.end),I.size,!1,p))),b.size=I.size,b.sizeFound||(g.size=I.size,i.nestedProperty(u[0],v+&quot;.size&quot;).set(I.size)),M(&quot;start&quot;,b,I),M(&quot;end&quot;,b,I)}d=e[&quot;_&quot;+s+&quot;pos0&quot;],delete e[&quot;_&quot;+s+&quot;pos0&quot;];var z=e._input[v]||{},O=i.extendFlat({},b),D=b.start,R=r.r2l(z.start),F=void 0!==R;if((b.startFound||F)&amp;&amp;R!==r.r2l(D)){var B=F?R:i.aggNums(Math.min,null,d),N={type:&quot;category&quot;===r.type||&quot;multicategory&quot;===r.type?&quot;linear&quot;:r.type,r2l:r.r2l,dtick:b.size,tick0:D,calendar:p,range:[B,o.tickIncrement(B,b.size,!1,p)].map(r.l2r)},j=o.tickFirst(N);j&gt;r.r2l(B)&amp;&amp;(j=o.tickIncrement(j,b.size,!0,p)),O.start=r.l2r(j),F||i.nestedProperty(e,v+&quot;.start&quot;).set(O.start)}var U=b.end,V=r.r2l(z.end),q=void 0!==V;if((b.endFound||q)&amp;&amp;V!==r.r2l(U)){var H=q?V:i.aggNums(Math.max,null,d);O.end=r.l2r(H),q||i.nestedProperty(e,v+&quot;.start&quot;).set(O.end)}var G=&quot;autobin&quot;+s;return!1===e._input[G]&amp;&amp;(e._input[v]=i.extendFlat({},e[v]||{}),delete e._input[G],delete e[G]),[O,d]}e.exports={calc:function(t,e){var r,a,p,d,g=[],m=[],v=o.getFromId(t,&quot;h&quot;===e.orientation?e.yaxis:e.xaxis),y=&quot;h&quot;===e.orientation?&quot;y&quot;:&quot;x&quot;,x={x:&quot;y&quot;,y:&quot;x&quot;}[y],b=e[y+&quot;calendar&quot;],_=e.cumulative,w=h(t,e,v,y),T=w[0],k=w[1],M=&quot;string&quot;==typeof T.size,A=[],S=M?A:T,E=[],C=[],L=[],I=0,P=e.histnorm,z=e.histfunc,O=-1!==P.indexOf(&quot;density&quot;);_.enabled&amp;&amp;O&amp;&amp;(P=P.replace(/ ?density$/,&quot;&quot;),O=!1);var D,R=&quot;max&quot;===z||&quot;min&quot;===z?null:0,F=l.count,B=c[P],N=!1,j=function(t){return v.r2c(t,0,b)};for(i.isArrayOrTypedArray(e[x])&amp;&amp;&quot;count&quot;!==z&amp;&amp;(D=e[x],N=&quot;avg&quot;===z,F=l[z]),r=j(T.start),p=j(T.end)+(r-o.tickIncrement(r,T.size,!1,b))/1e6;r&lt;p&amp;&amp;g.length&lt;1e6&amp;&amp;(a=o.tickIncrement(r,T.size,!1,b),g.push((r+a)/2),m.push(R),L.push([]),A.push(r),O&amp;&amp;E.push(1/(a-r)),N&amp;&amp;C.push(0),!(a&lt;=r));)r=a;A.push(r),M||&quot;date&quot;!==v.type||(S={start:j(S.start),end:j(S.end),size:S.size}),t._fullLayout._roundFnOpts||(t._fullLayout._roundFnOpts={});var U=e[&quot;_&quot;+y+&quot;bingroup&quot;],V={leftGap:1/0,rightGap:1/0};U&amp;&amp;(t._fullLayout._roundFnOpts[U]||(t._fullLayout._roundFnOpts[U]=V),V=t._fullLayout._roundFnOpts[U]);var q,H=m.length,G=!0,Y=V.leftGap,W=V.rightGap,X={};for(r=0;r&lt;k.length;r++){var Z=k[r];(d=i.findBin(Z,S))&gt;=0&amp;&amp;d&lt;H&amp;&amp;(I+=F(d,r,m,D,C),G&amp;&amp;L[d].length&amp;&amp;Z!==k[L[d][0]]&amp;&amp;(G=!1),L[d].push(r),X[r]=d,Y=Math.min(Y,Z-A[d]),W=Math.min(W,A[d+1]-Z))}V.leftGap=Y,V.rightGap=W,G||(q=function(e,r){return function(){var n=t._fullLayout._roundFnOpts[U];return f(n.leftGap,n.rightGap,A,v,b)(e,r)}}),N&amp;&amp;(I=u(m,C)),B&amp;&amp;B(m,I,E),_.enabled&amp;&amp;function(t,e,r){var n,i,a;function o(e){a=t[e],t[e]/=2}function s(e){i=t[e],t[e]=a+i/2,a+=i}if(&quot;half&quot;===r)if(&quot;increasing&quot;===e)for(o(0),n=1;n&lt;t.length;n++)s(n);else for(o(t.length-1),n=t.length-2;n&gt;=0;n--)s(n);else if(&quot;increasing&quot;===e){for(n=1;n&lt;t.length;n++)t[n]+=t[n-1];&quot;exclude&quot;===r&amp;&amp;(t.unshift(0),t.pop())}else{for(n=t.length-2;n&gt;=0;n--)t[n]+=t[n+1];&quot;exclude&quot;===r&amp;&amp;(t.push(0),t.shift())}}(m,_.direction,_.currentbin);var J=Math.min(g.length,m.length),K=[],Q=0,$=J-1;for(r=0;r&lt;J;r++)if(m[r]){Q=r;break}for(r=J-1;r&gt;=Q;r--)if(m[r]){$=r;break}for(r=Q;r&lt;=$;r++)if(n(g[r])&amp;&amp;n(m[r])){var tt={p:g[r],s:m[r],b:0};_.enabled||(tt.pts=L[r],G?tt.ph0=tt.ph1=L[r].length?k[L[r][0]]:g[r]:(e._computePh=!0,tt.ph0=q(A[r]),tt.ph1=q(A[r+1],!0))),K.push(tt)}return 1===K.length&amp;&amp;(K[0].width1=o.tickIncrement(K[0].p,T.size,!1,b)-K[0].p),s(K,e),i.isArrayOrTypedArray(e.selectedpoints)&amp;&amp;i.tagSelected(K,e,X),K},calcAllAutoBins:h}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../bar/arrays_to_calcdata&quot;:920,&quot;./average&quot;:1085,&quot;./bin_functions&quot;:1087,&quot;./bin_label_vals&quot;:1088,&quot;./norm_functions&quot;:1096,&quot;fast-isnumeric&quot;:241}],1090:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;binNumber&quot;]}},{}],1091:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axis_ids&quot;),a=t(&quot;../../registry&quot;).traceIs,o=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,s=n.nestedProperty,l=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,c=[{aStr:{x:&quot;xbins.start&quot;,y:&quot;ybins.start&quot;},name:&quot;start&quot;},{aStr:{x:&quot;xbins.end&quot;,y:&quot;ybins.end&quot;},name:&quot;end&quot;},{aStr:{x:&quot;xbins.size&quot;,y:&quot;ybins.size&quot;},name:&quot;size&quot;},{aStr:{x:&quot;nbinsx&quot;,y:&quot;nbinsy&quot;},name:&quot;nbins&quot;}],u=[&quot;x&quot;,&quot;y&quot;];e.exports=function(t,e){var r,f,h,p,d,g,m,v=e._histogramBinOpts={},y=[],x={},b=[];function _(t,e){return n.coerce(r._input,r,r._module.attributes,t,e)}function w(t){return&quot;v&quot;===t.orientation?&quot;x&quot;:&quot;y&quot;}function T(t,r,a){var o=t.uid+&quot;__&quot;+a;r||(r=o);var s=function(t,r){return i.getFromTrace({_fullLayout:e},t,r).type}(t,a),l=t[a+&quot;calendar&quot;]||&quot;&quot;,c=v[r],u=!0;c&amp;&amp;(s===c.axType&amp;&amp;l===c.calendar?(u=!1,c.traces.push(t),c.dirs.push(a)):(r=o,s!==c.axType&amp;&amp;n.warn([&quot;Attempted to group the bins of trace&quot;,t.index,&quot;set on a&quot;,&quot;type:&quot;+s,&quot;axis&quot;,&quot;with bins on&quot;,&quot;type:&quot;+c.axType,&quot;axis.&quot;].join(&quot; &quot;)),l!==c.calendar&amp;&amp;n.warn([&quot;Attempted to group the bins of trace&quot;,t.index,&quot;set with a&quot;,l,&quot;calendar&quot;,&quot;with bins&quot;,c.calendar?&quot;on a &quot;+c.calendar+&quot; calendar&quot;:&quot;w/o a set calendar&quot;].join(&quot; &quot;)))),u&amp;&amp;(v[r]={traces:[t],dirs:[a],axType:s,calendar:t[a+&quot;calendar&quot;]||&quot;&quot;}),t[&quot;_&quot;+a+&quot;bingroup&quot;]=r}for(d=0;d&lt;t.length;d++)r=t[d],a(r,&quot;histogram&quot;)&amp;&amp;(y.push(r),delete r._xautoBinFinished,delete r._yautoBinFinished,a(r,&quot;2dMap&quot;)||o(r._input,r,e,_));var k=e._alignmentOpts||{};for(d=0;d&lt;y.length;d++){if(r=y[d],h=&quot;&quot;,!a(r,&quot;2dMap&quot;)){if(p=w(r),&quot;group&quot;===e.barmode&amp;&amp;r.alignmentgroup){var M=r[p+&quot;axis&quot;],A=l(e,M)+r.orientation;(k[A]||{})[r.alignmentgroup]&amp;&amp;(h=A)}h||&quot;overlay&quot;===e.barmode||(h=l(e,r.xaxis)+l(e,r.yaxis)+w(r))}h?(x[h]||(x[h]=[]),x[h].push(r)):b.push(r)}for(h in x)if(1!==(f=x[h]).length){var S=!1;for(f.length&amp;&amp;(r=f[0],S=_(&quot;bingroup&quot;)),h=S||h,d=0;d&lt;f.length;d++){var E=(r=f[d])._input.bingroup;E&amp;&amp;E!==h&amp;&amp;n.warn([&quot;Trace&quot;,r.index,&quot;must match&quot;,&quot;within bingroup&quot;,h+&quot;.&quot;,&quot;Ignoring its bingroup:&quot;,E,&quot;setting.&quot;].join(&quot; &quot;)),r.bingroup=h,T(r,h,w(r))}}else b.push(f[0]);for(d=0;d&lt;b.length;d++){r=b[d];var C=_(&quot;bingroup&quot;);if(a(r,&quot;2dMap&quot;))for(m=0;m&lt;2;m++){var L=_((p=u[m])+&quot;bingroup&quot;,C?C+&quot;__&quot;+p:null);T(r,L,p)}else T(r,C,w(r))}for(h in v){var I=v[h];for(f=I.traces,g=0;g&lt;c.length;g++){var P,z,O=c[g],D=O.name;if(&quot;nbins&quot;!==D||!I.sizeFound){for(d=0;d&lt;f.length;d++){if(r=f[d],p=I.dirs[d],P=O.aStr[p],void 0!==s(r._input,P).get()){I[D]=_(P),I[D+&quot;Found&quot;]=!0;break}(z=(r._autoBin||{})[p]||{})[D]&amp;&amp;s(r,P).set(z[D])}if(&quot;start&quot;===D||&quot;end&quot;===D)for(;d&lt;f.length;d++)(r=f[d])[&quot;_&quot;+p+&quot;bingroup&quot;]&amp;&amp;_(P,(z=(r._autoBin||{})[p]||{})[D]);&quot;nbins&quot;!==D||I.sizeFound||I.nbinsFound||(r=f[0],I[D]=_(P))}}}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/cartesian/constraints&quot;:835,&quot;../../registry&quot;:911,&quot;../bar/defaults&quot;:925}],1092:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../bar/style_defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,n){return i.coerce(t,e,s,r,n)}var u=c(&quot;x&quot;),f=c(&quot;y&quot;);c(&quot;cumulative.enabled&quot;)&amp;&amp;(c(&quot;cumulative.direction&quot;),c(&quot;cumulative.currentbin&quot;)),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;);var h=c(&quot;orientation&quot;,f&amp;&amp;!u?&quot;h&quot;:&quot;v&quot;),p=&quot;v&quot;===h?&quot;x&quot;:&quot;y&quot;,d=&quot;v&quot;===h?&quot;y&quot;:&quot;x&quot;,g=u&amp;&amp;f?Math.min(i.minRowLength(u)&amp;&amp;i.minRowLength(f)):i.minRowLength(e[p]||[]);if(g){e._length=g,n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],l),e[d]&amp;&amp;c(&quot;histfunc&quot;),c(&quot;histnorm&quot;),c(&quot;autobin&quot;+p),o(t,e,c,r,l),i.coerceSelectionMarkerOpacity(e,c);var m=(e.marker.line||{}).color,v=n.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);v(t,e,m||a.defaultLine,{axis:&quot;y&quot;}),v(t,e,m||a.defaultLine,{axis:&quot;x&quot;,inherit:&quot;y&quot;})}else e.visible=!1}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../bar/style_defaults&quot;:936,&quot;./attributes&quot;:1084}],1093:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){if(t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;zLabelVal&quot;in e&amp;&amp;(t.z=e.zLabelVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),!(r.cumulative||{}).enabled){var a,o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;if(t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex,r._indexToPoints){a=[];for(var s=0;s&lt;o.length;s++)a=a.concat(r._indexToPoints[o[s]])}else a=o;t.pointIndices=a}return t}},{}],1094:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/hover&quot;).hoverPoints,i=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText;e.exports=function(t,e,r,a){var o=n(t,e,r,a);if(o){var s=(t=o[0]).cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var c=&quot;h&quot;===l.orientation?&quot;y&quot;:&quot;x&quot;;t[c+&quot;Label&quot;]=i(t[c+&quot;a&quot;],s.ph0,s.ph1)}return o}}},{&quot;../../plots/cartesian/axes&quot;:828,&quot;../bar/hover&quot;:928}],1095:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;../bar/layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),supplyLayoutDefaults:t(&quot;../bar/layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;../bar/cross_trace_calc&quot;).crossTraceCalc,plot:t(&quot;../bar/plot&quot;).plot,layerName:&quot;barlayer&quot;,style:t(&quot;../bar/style&quot;).style,styleOnSelect:t(&quot;../bar/style&quot;).styleOnSelect,colorbar:t(&quot;../scatter/marker_colorbar&quot;),hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../bar/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;bar&quot;,&quot;histogram&quot;,&quot;oriented&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../bar/cross_trace_calc&quot;:924,&quot;../bar/layout_attributes&quot;:930,&quot;../bar/layout_defaults&quot;:931,&quot;../bar/plot&quot;:932,&quot;../bar/select&quot;:933,&quot;../bar/style&quot;:935,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1084,&quot;./calc&quot;:1089,&quot;./cross_trace_defaults&quot;:1091,&quot;./defaults&quot;:1092,&quot;./event_data&quot;:1093,&quot;./hover&quot;:1094}],1096:[function(t,e,r){&quot;use strict&quot;;e.exports={percent:function(t,e){for(var r=t.length,n=100/e,i=0;i&lt;r;i++)t[i]*=n},probability:function(t,e){for(var r=t.length,n=0;n&lt;r;n++)t[n]/=e},density:function(t,e,r,n){var i=t.length;n=n||1;for(var a=0;a&lt;i;a++)t[a]*=r[a]*n},&quot;probability density&quot;:function(t,e,r,n){var i=t.length;n&amp;&amp;(e/=n);for(var a=0;a&lt;i;a++)t[a]*=r[a]/e}}},{}],1097:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../histogram/attributes&quot;),i=t(&quot;../histogram/bin_attributes&quot;),a=t(&quot;../heatmap/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../components/colorscale/attributes&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=c({x:n.x,y:n.y,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},marker:{color:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:i(&quot;x&quot;),nbinsy:n.nbinsy,ybins:i(&quot;y&quot;),autobinx:n.autobinx,autobiny:n.autobiny,bingroup:c({},n.bingroup,{}),xbingroup:c({},n.bingroup,{}),ybingroup:c({},n.bingroup,{}),xgap:a.xgap,ygap:a.ygap,zsmooth:a.zsmooth,zhoverformat:a.zhoverformat,hovertemplate:s({},{keys:&quot;z&quot;}),showlegend:c({},o.showlegend,{dflt:!1})},l(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../heatmap/attributes&quot;:1065,&quot;../histogram/attributes&quot;:1084,&quot;../histogram/bin_attributes&quot;:1086}],1098:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../histogram/bin_functions&quot;),o=t(&quot;../histogram/norm_functions&quot;),s=t(&quot;../histogram/average&quot;),l=t(&quot;../histogram/bin_label_vals&quot;),c=t(&quot;../histogram/calc&quot;).calcAllAutoBins;function u(t,e,r,n){var i,a=new Array(t);if(n)for(i=0;i&lt;t;i++)a[i]=1/(e[i+1]-e[i]);else{var o=1/r;for(i=0;i&lt;t;i++)a[i]=o}return a}function f(t,e){return{start:t(e.start),end:t(e.end),size:e.size}}function h(t,e,r,n,i,a){var o,s=t.length-1,c=new Array(s),u=l(r,n,t,i,a);for(o=0;o&lt;s;o++){var f=(e||[])[o];c[o]=void 0===f?[u(t[o]),u(t[o+1],!0)]:[f,f]}return c}e.exports=function(t,e){var r,l,p,d,g=i.getFromId(t,e.xaxis),m=i.getFromId(t,e.yaxis),v=e.xcalendar,y=e.ycalendar,x=function(t){return g.r2c(t,0,v)},b=function(t){return m.r2c(t,0,y)},_=c(t,e,g,&quot;x&quot;),w=_[0],T=_[1],k=c(t,e,m,&quot;y&quot;),M=k[0],A=k[1],S=e._length;T.length&gt;S&amp;&amp;T.splice(S,T.length-S),A.length&gt;S&amp;&amp;A.splice(S,A.length-S);var E=[],C=[],L=[],I=&quot;string&quot;==typeof w.size,P=&quot;string&quot;==typeof M.size,z=[],O=[],D=I?z:w,R=P?O:M,F=0,B=[],N=[],j=e.histnorm,U=e.histfunc,V=-1!==j.indexOf(&quot;density&quot;),q=&quot;max&quot;===U||&quot;min&quot;===U?null:0,H=a.count,G=o[j],Y=!1,W=[],X=[],Z=&quot;z&quot;in e?e.z:&quot;marker&quot;in e&amp;&amp;Array.isArray(e.marker.color)?e.marker.color:&quot;&quot;;Z&amp;&amp;&quot;count&quot;!==U&amp;&amp;(Y=&quot;avg&quot;===U,H=a[U]);var J=w.size,K=x(w.start),Q=x(w.end)+(K-i.tickIncrement(K,J,!1,v))/1e6;for(r=K;r&lt;Q;r=i.tickIncrement(r,J,!1,v))C.push(q),z.push(r),Y&amp;&amp;L.push(0);z.push(r);var $,tt=C.length,et=(r-K)/tt,rt=($=K+et/2,g.c2r($,0,v)),nt=M.size,it=b(M.start),at=b(M.end)+(it-i.tickIncrement(it,nt,!1,y))/1e6;for(r=it;r&lt;at;r=i.tickIncrement(r,nt,!1,y)){E.push(C.slice()),O.push(r);var ot=new Array(tt);for(l=0;l&lt;tt;l++)ot[l]=[];N.push(ot),Y&amp;&amp;B.push(L.slice())}O.push(r);var st=E.length,lt=(r-it)/st,ct=function(t){return m.c2r(t,0,y)}(it+lt/2);V&amp;&amp;(W=u(C.length,D,et,I),X=u(E.length,R,lt,P)),I||&quot;date&quot;!==g.type||(D=f(x,D)),P||&quot;date&quot;!==m.type||(R=f(b,R));var ut=!0,ft=!0,ht=new Array(tt),pt=new Array(st),dt=1/0,gt=1/0,mt=1/0,vt=1/0;for(r=0;r&lt;S;r++){var yt=T[r],xt=A[r];p=n.findBin(yt,D),d=n.findBin(xt,R),p&gt;=0&amp;&amp;p&lt;tt&amp;&amp;d&gt;=0&amp;&amp;d&lt;st&amp;&amp;(F+=H(p,r,E[d],Z,B[d]),N[d][p].push(r),ut&amp;&amp;(void 0===ht[p]?ht[p]=yt:ht[p]!==yt&amp;&amp;(ut=!1)),ft&amp;&amp;(void 0===pt[d]?pt[d]=xt:pt[d]!==xt&amp;&amp;(ft=!1)),dt=Math.min(dt,yt-z[p]),gt=Math.min(gt,z[p+1]-yt),mt=Math.min(mt,xt-O[d]),vt=Math.min(vt,O[d+1]-xt))}if(Y)for(d=0;d&lt;st;d++)F+=s(E[d],B[d]);if(G)for(d=0;d&lt;st;d++)G(E[d],F,W,X[d]);return{x:T,xRanges:h(z,ut&amp;&amp;ht,dt,gt,g,v),x0:rt,dx:et,y:A,yRanges:h(O,ft&amp;&amp;pt,mt,vt,m,y),y0:ct,dy:lt,z:E,pts:N}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../histogram/average&quot;:1085,&quot;../histogram/bin_functions&quot;:1087,&quot;../histogram/bin_label_vals&quot;:1088,&quot;../histogram/calc&quot;:1089,&quot;../histogram/norm_functions&quot;:1096}],1099:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./sample_defaults&quot;),a=t(&quot;../heatmap/style_defaults&quot;),o=t(&quot;../../components/colorscale/defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&amp;&amp;(a(t,e,c,l),o(t,e,l,c,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),c(&quot;hovertemplate&quot;))}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../heatmap/style_defaults&quot;:1078,&quot;./attributes&quot;:1097,&quot;./sample_defaults&quot;:1102}],1100:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/hover&quot;),i=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText;e.exports=function(t,e,r,a,o,s){var l=n(t,e,r,a,o,s);if(l){var c=(t=l[0]).index,u=c[0],f=c[1],h=t.cd[0],p=h.xRanges[f],d=h.yRanges[u];return t.xLabel=i(t.xa,p[0],p[1]),t.yLabel=i(t.ya,d[0],d[1]),l}}},{&quot;../../plots/cartesian/axes&quot;:828,&quot;../heatmap/hover&quot;:1072}],1101:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../histogram/cross_trace_defaults&quot;),calc:t(&quot;../heatmap/calc&quot;),plot:t(&quot;../heatmap/plot&quot;),layerName:&quot;heatmaplayer&quot;,colorbar:t(&quot;../heatmap/colorbar&quot;),style:t(&quot;../heatmap/style&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;../histogram/event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram2d&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;histogram&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../heatmap/calc&quot;:1066,&quot;../heatmap/colorbar&quot;:1068,&quot;../heatmap/plot&quot;:1076,&quot;../heatmap/style&quot;:1077,&quot;../histogram/cross_trace_defaults&quot;:1091,&quot;../histogram/event_data&quot;:1093,&quot;./attributes&quot;:1097,&quot;./defaults&quot;:1099,&quot;./hover&quot;:1100}],1102:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=r(&quot;x&quot;),s=r(&quot;y&quot;),l=i.minRowLength(o),c=i.minRowLength(s);l&amp;&amp;c?(e._length=Math.min(l,c),n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],a),(r(&quot;z&quot;)||r(&quot;marker.color&quot;))&amp;&amp;r(&quot;histfunc&quot;),r(&quot;histnorm&quot;),r(&quot;autobinx&quot;),r(&quot;autobiny&quot;)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1103:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../histogram2d/attributes&quot;),i=t(&quot;../contour/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=o({x:n.x,y:n.y,z:n.z,marker:n.marker,histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:n.xbins,nbinsy:n.nbinsy,ybins:n.ybins,autobinx:n.autobinx,autobiny:n.autobiny,bingroup:n.bingroup,xbingroup:n.xbingroup,ybingroup:n.ybingroup,autocontour:i.autocontour,ncontours:i.ncontours,contours:i.contours,line:{color:i.line.color,width:o({},i.line.width,{dflt:.5}),dash:i.line.dash,smoothing:i.line.smoothing,editType:&quot;plot&quot;},zhoverformat:n.zhoverformat,hovertemplate:n.hovertemplate},a(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../contour/attributes&quot;:1008,&quot;../histogram2d/attributes&quot;:1097}],1104:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../histogram2d/sample_defaults&quot;),a=t(&quot;../contour/contours_defaults&quot;),o=t(&quot;../contour/style_defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&amp;&amp;(a(t,e,c,(function(r){return n.coerce2(t,e,s,r)})),o(t,e,c,l),c(&quot;hovertemplate&quot;))}},{&quot;../../lib&quot;:778,&quot;../contour/contours_defaults&quot;:1015,&quot;../contour/style_defaults&quot;:1029,&quot;../histogram2d/sample_defaults&quot;:1102,&quot;./attributes&quot;:1103}],1105:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../histogram/cross_trace_defaults&quot;),calc:t(&quot;../contour/calc&quot;),plot:t(&quot;../contour/plot&quot;).plot,layerName:&quot;contourlayer&quot;,style:t(&quot;../contour/style&quot;),colorbar:t(&quot;../contour/colorbar&quot;),hoverPoints:t(&quot;../contour/hover&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram2dcontour&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;contour&quot;,&quot;histogram&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../contour/calc&quot;:1009,&quot;../contour/colorbar&quot;:1011,&quot;../contour/hover&quot;:1021,&quot;../contour/plot&quot;:1026,&quot;../contour/style&quot;:1028,&quot;../histogram/cross_trace_defaults&quot;:1091,&quot;./attributes&quot;:1103,&quot;./defaults&quot;:1104}],1106:[function(t,e,r){&quot;use strict&quot;;for(var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;./constants&quot;).colormodel,s=[&quot;rgb&quot;,&quot;rgba&quot;,&quot;rgba256&quot;,&quot;hsl&quot;,&quot;hsla&quot;],l=[],c=[],u=0;u&lt;s.length;u++){var f=o[s[u]];l.push(&quot;For the `&quot;+s[u]+&quot;` colormodel, it is [&quot;+(f.zminDflt||f.min).join(&quot;, &quot;)+&quot;].&quot;),c.push(&quot;For the `&quot;+s[u]+&quot;` colormodel, it is [&quot;+(f.zmaxDflt||f.max).join(&quot;, &quot;)+&quot;].&quot;)}e.exports=a({source:{valType:&quot;string&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},colormodel:{valType:&quot;enumerated&quot;,values:s,editType:&quot;calc&quot;},zmin:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},zmax:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},x0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},y0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dx:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},dy:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},text:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hovertext:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hoverinfo:a({},n.hoverinfo,{flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;color&quot;,&quot;name&quot;,&quot;text&quot;],dflt:&quot;x+y+z+text+name&quot;}),hovertemplate:i({},{keys:[&quot;z&quot;,&quot;color&quot;,&quot;colormodel&quot;]}),transforms:void 0})},{&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;./constants&quot;:1108}],1107:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constants&quot;),a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../../lib&quot;).maxRowLength,l=t(&quot;./helpers&quot;).getImageSize;function c(t,e,r,i){return function(a){return n.constrain((a-t)*e,r,i)}}function u(t,e){return function(r){return n.constrain(r,t,e)}}e.exports=function(t,e){var r,n;if(e._hasZ)r=e.z.length,n=s(e.z);else if(e._hasSource){var f=l(e.source);r=f.height,n=f.width}var h,p=o.getFromId(t,e.xaxis||&quot;x&quot;),d=o.getFromId(t,e.yaxis||&quot;y&quot;),g=p.d2c(e.x0)-e.dx/2,m=d.d2c(e.y0)-e.dy/2,v=[g,g+n*e.dx],y=[m,m+r*e.dy];if(p&amp;&amp;&quot;log&quot;===p.type)for(h=0;h&lt;n;h++)v.push(g+h*e.dx);if(d&amp;&amp;&quot;log&quot;===d.type)for(h=0;h&lt;r;h++)y.push(m+h*e.dy);return e._extremes[p._id]=o.findExtremes(p,v),e._extremes[d._id]=o.findExtremes(d,y),e._scaler=function(t){var e=i.colormodel[t.colormodel],r=(e.colormodel||t.colormodel).length;t._sArray=[];for(var n=0;n&lt;r;n++)e.min[n]!==t.zmin[n]||e.max[n]!==t.zmax[n]?t._sArray.push(c(t.zmin[n],(e.max[n]-e.min[n])/(t.zmax[n]-t.zmin[n]),e.min[n],e.max[n])):t._sArray.push(u(e.min[n],e.max[n]));return function(e){for(var n=e.slice(0,r),i=0;i&lt;r;i++){var o=n[i];if(!a(o))return!1;n[i]=t._sArray[i](o)}return n}}(e),[{x0:g,y0:m,z:e.z,w:n,h:r}]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./constants&quot;:1108,&quot;./helpers&quot;:1111,&quot;fast-isnumeric&quot;:241}],1108:[function(t,e,r){&quot;use strict&quot;;e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(t){return t.slice(0,3)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]},rgba256:{colormodel:&quot;rgba&quot;,zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(t){var e=t.slice(0,3);return e[1]=e[1]+&quot;%&quot;,e[2]=e[2]+&quot;%&quot;,e},suffix:[&quot;\xb0&quot;,&quot;%&quot;,&quot;%&quot;]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(t){var e=t.slice(0,4);return e[1]=e[1]+&quot;%&quot;,e[2]=e[2]+&quot;%&quot;,e},suffix:[&quot;\xb0&quot;,&quot;%&quot;,&quot;%&quot;,&quot;&quot;]}}}},{}],1109:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./constants&quot;),o=t(&quot;../../snapshot/helpers&quot;).IMAGE_URL_PREFIX;e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;source&quot;),e.source&amp;&amp;!e.source.match(o)&amp;&amp;delete e.source,e._hasSource=!!e.source;var s,l=r(&quot;z&quot;);(e._hasZ=!(void 0===l||!l.length||!l[0]||!l[0].length),e._hasZ||e._hasSource)?(r(&quot;x0&quot;),r(&quot;y0&quot;),r(&quot;dx&quot;),r(&quot;dy&quot;),e._hasZ?(r(&quot;colormodel&quot;,&quot;rgb&quot;),r(&quot;zmin&quot;,(s=a.colormodel[e.colormodel]).zminDflt||s.min),r(&quot;zmax&quot;,s.zmaxDflt||s.max)):e._hasSource&amp;&amp;(e.colormodel=&quot;rgba256&quot;,s=a.colormodel[e.colormodel],e.zmin=s.zminDflt,e.zmax=s.zmaxDflt),r(&quot;text&quot;),r(&quot;hovertext&quot;),r(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../snapshot/helpers&quot;:915,&quot;./attributes&quot;:1106,&quot;./constants&quot;:1108}],1110:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return&quot;xVal&quot;in e&amp;&amp;(t.x=e.xVal),&quot;yVal&quot;in e&amp;&amp;(t.y=e.yVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t.color=e.color,t.colormodel=e.trace.colormodel,t.z||(t.z=e.color),t}},{}],1111:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;image-size&quot;),i=t(&quot;../../snapshot/helpers&quot;).IMAGE_URL_PREFIX,a=t(&quot;buffer/&quot;).Buffer;r.getImageSize=function(t){var e=t.replace(i,&quot;&quot;),r=new a(e,&quot;base64&quot;);return n(r)}},{&quot;../../snapshot/helpers&quot;:915,&quot;buffer/&quot;:111,&quot;image-size&quot;:444}],1112:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./constants&quot;);e.exports=function(t,e,r){var o=t.cd[0],s=o.trace,l=t.xa,c=t.ya;if(!(n.inbox(e-o.x0,e-(o.x0+o.w*s.dx),0)&gt;0||n.inbox(r-o.y0,r-(o.y0+o.h*s.dy),0)&gt;0)){var u,f=Math.floor((e-o.x0)/s.dx),h=Math.floor(Math.abs(r-o.y0)/s.dy);if(s._hasZ?u=o.z[h][f]:s._hasSource&amp;&amp;(u=s._canvas.el.getContext(&quot;2d&quot;).getImageData(f,h,1,1).data),u){var p,d=o.hi||s.hoverinfo;if(d){var g=d.split(&quot;+&quot;);-1!==g.indexOf(&quot;all&quot;)&amp;&amp;(g=[&quot;color&quot;]),-1!==g.indexOf(&quot;color&quot;)&amp;&amp;(p=!0)}var m,v=a.colormodel[s.colormodel],y=v.colormodel||s.colormodel,x=y.length,b=s._scaler(u),_=v.suffix,w=[];(s.hovertemplate||p)&amp;&amp;(w.push(&quot;[&quot;+[b[0]+_[0],b[1]+_[1],b[2]+_[2]].join(&quot;, &quot;)),4===x&amp;&amp;w.push(&quot;, &quot;+b[3]+_[3]),w.push(&quot;]&quot;),w=w.join(&quot;&quot;),t.extraText=y.toUpperCase()+&quot;: &quot;+w),Array.isArray(s.hovertext)&amp;&amp;Array.isArray(s.hovertext[h])?m=s.hovertext[h][f]:Array.isArray(s.text)&amp;&amp;Array.isArray(s.text[h])&amp;&amp;(m=s.text[h][f]);var T=c.c2p(o.y0+(h+.5)*s.dy),k=o.x0+(f+.5)*s.dx,M=o.y0+(h+.5)*s.dy,A=&quot;[&quot;+u.slice(0,s.colormodel.length).join(&quot;, &quot;)+&quot;]&quot;;return[i.extendFlat(t,{index:[h,f],x0:l.c2p(o.x0+f*s.dx),x1:l.c2p(o.x0+(f+1)*s.dx),y0:T,y1:T,color:b,xVal:k,xLabelVal:k,yVal:M,yLabelVal:M,zLabelVal:A,text:m,hovertemplateLabels:{zLabel:A,colorLabel:w,&quot;color[0]Label&quot;:b[0]+_[0],&quot;color[1]Label&quot;:b[1]+_[1],&quot;color[2]Label&quot;:b[2]+_[2],&quot;color[3]Label&quot;:b[3]+_[3]}})]}}}},{&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;./constants&quot;:1108}],1113:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;image&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;noSortingByValue&quot;],animatable:!1,meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1106,&quot;./calc&quot;:1107,&quot;./defaults&quot;:1109,&quot;./event_data&quot;:1110,&quot;./hover&quot;:1112,&quot;./plot&quot;:1114,&quot;./style&quot;:1115}],1114:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=i.strTranslate,o=t(&quot;../../constants/xmlns_namespaces&quot;),s=t(&quot;./constants&quot;),l=i.isIOS()||i.isSafari()||i.isIE();e.exports=function(t,e,r,c){var u=e.xaxis,f=e.yaxis,h=!(l||t._context._exportedPlot);i.makeTraceGroups(c,r,&quot;im&quot;).each((function(e){var r=n.select(this),l=e[0],c=l.trace,p=h&amp;&amp;!c._hasZ&amp;&amp;c._hasSource&amp;&amp;&quot;linear&quot;===u.type&amp;&amp;&quot;linear&quot;===f.type;c._fastImage=p;var d,g,m,v,y,x,b=l.z,_=l.x0,w=l.y0,T=l.w,k=l.h,M=c.dx,A=c.dy;for(x=0;void 0===d&amp;&amp;x&lt;T;)d=u.c2p(_+x*M),x++;for(x=T;void 0===g&amp;&amp;x&gt;0;)g=u.c2p(_+x*M),x--;for(x=0;void 0===v&amp;&amp;x&lt;k;)v=f.c2p(w+x*A),x++;for(x=k;void 0===y&amp;&amp;x&gt;0;)y=f.c2p(w+x*A),x--;if(g&lt;d&amp;&amp;(m=g,g=d,d=m),y&lt;v&amp;&amp;(m=v,v=y,y=m),!p){d=Math.max(-.5*u._length,d),g=Math.min(1.5*u._length,g),v=Math.max(-.5*f._length,v),y=Math.min(1.5*f._length,y)}var S=Math.round(g-d),E=Math.round(y-v);if(S&lt;=0||E&lt;=0){r.selectAll(&quot;image&quot;).data([]).exit().remove()}else{var C=r.selectAll(&quot;image&quot;).data([e]);C.enter().append(&quot;svg:image&quot;).attr({xmlns:o.svg,preserveAspectRatio:&quot;none&quot;}),C.exit().remove();var L=&quot;image-rendering: optimizeSpeed; image-rendering: -moz-crisp-edges; image-rendering: -o-crisp-edges; image-rendering: -webkit-optimize-contrast; image-rendering: optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;&quot;;if(p){var I=i.simpleMap(u.range,u.r2l),P=i.simpleMap(f.range,f.r2l),z=I[1]&lt;I[0],O=P[1]&gt;P[0];if(z||O){var D=d+S/2,R=v+E/2;L+=&quot;transform:&quot;+a(D+&quot;px&quot;,R+&quot;px&quot;)+&quot;scale(&quot;+(z?-1:1)+&quot;,&quot;+(O?-1:1)+&quot;)&quot;+a(-D+&quot;px&quot;,-R+&quot;px&quot;)+&quot;;&quot;}}C.attr(&quot;style&quot;,L);var F=new Promise((function(t){if(c._hasZ)t();else if(c._hasSource)if(c._canvas&amp;&amp;c._canvas.el.width===T&amp;&amp;c._canvas.el.height===k&amp;&amp;c._canvas.source===c.source)t();else{var e=document.createElement(&quot;canvas&quot;);e.width=T,e.height=k;var r=e.getContext(&quot;2d&quot;);c._image=c._image||new Image;var n=c._image;n.onload=function(){r.drawImage(n,0,0),c._canvas={el:e,source:c.source},t()},n.setAttribute(&quot;src&quot;,c.source)}})).then((function(){var t;if(c._hasZ)t=B((function(t,e){return b[e][t]})).toDataURL(&quot;image/png&quot;);else if(c._hasSource)if(p)t=c.source;else{var e=c._canvas.el.getContext(&quot;2d&quot;).getImageData(0,0,T,k).data;t=B((function(t,r){var n=4*(r*T+t);return[e[n],e[n+1],e[n+2],e[n+3]]})).toDataURL(&quot;image/png&quot;)}C.attr({&quot;xlink:href&quot;:t,height:E,width:S,x:d,y:v})}));t._promises.push(F)}function B(t){var e=document.createElement(&quot;canvas&quot;);e.width=S,e.height=E;var r,n=e.getContext(&quot;2d&quot;),a=function(t){return i.constrain(Math.round(u.c2p(_+t*M)-d),0,S)},o=function(t){return i.constrain(Math.round(f.c2p(w+t*A)-v),0,E)},h=s.colormodel[c.colormodel],p=h.colormodel||c.colormodel,g=h.fmt;for(x=0;x&lt;l.w;x++){var m=a(x),y=a(x+1);if(y!==m&amp;&amp;!isNaN(y)&amp;&amp;!isNaN(m))for(var b=0;b&lt;l.h;b++){var T=o(b),k=o(b+1);k===T||isNaN(k)||isNaN(T)||!t(x,b)||(r=c._scaler(t(x,b)),n.fillStyle=r?p+&quot;(&quot;+g(r).join(&quot;,&quot;)+&quot;)&quot;:&quot;rgba(0,0,0,0)&quot;,n.fillRect(m,T,y-m,k-T))}}return e}}))}},{&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;./constants&quot;:1108,d3:169}],1115:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t){n.select(t).selectAll(&quot;.im image&quot;).style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity}))}},{d3:169}],1116:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;../../lib/extend&quot;).extendDeep,a=t(&quot;../../plot_api/edit_types&quot;).overrideAll,o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../components/color/attributes&quot;),l=t(&quot;../../plots/domain&quot;).attributes,c=t(&quot;../../plots/cartesian/layout_attributes&quot;),u=t(&quot;../../plot_api/plot_template&quot;).templatedArray,f=t(&quot;../../constants/delta.js&quot;),h=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,o({editType:&quot;plot&quot;,colorEditType:&quot;plot&quot;})),p={color:{valType:&quot;color&quot;,editType:&quot;plot&quot;},line:{color:{valType:&quot;color&quot;,dflt:s.defaultLine,editType:&quot;plot&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},thickness:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;plot&quot;},editType:&quot;calc&quot;},d={valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},g=u(&quot;step&quot;,i({},p,{range:d}));e.exports={mode:{valType:&quot;flaglist&quot;,editType:&quot;calc&quot;,flags:[&quot;number&quot;,&quot;delta&quot;,&quot;gauge&quot;],dflt:&quot;number&quot;},value:{valType:&quot;number&quot;,editType:&quot;calc&quot;,anim:!0},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;plot&quot;},domain:l({name:&quot;indicator&quot;,trace:!0,editType:&quot;calc&quot;}),title:{text:{valType:&quot;string&quot;,editType:&quot;plot&quot;},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;plot&quot;},font:n({},h,{}),editType:&quot;plot&quot;},number:{valueformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},font:n({},h,{}),prefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},suffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;},delta:{reference:{valType:&quot;number&quot;,editType:&quot;calc&quot;},position:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;right&quot;],dflt:&quot;bottom&quot;,editType:&quot;plot&quot;},relative:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;,dflt:!1},valueformat:{valType:&quot;string&quot;,editType:&quot;plot&quot;},increasing:{symbol:{valType:&quot;string&quot;,dflt:f.INCREASING.SYMBOL,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:f.INCREASING.COLOR,editType:&quot;plot&quot;},editType:&quot;plot&quot;},decreasing:{symbol:{valType:&quot;string&quot;,dflt:f.DECREASING.SYMBOL,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:f.DECREASING.COLOR,editType:&quot;plot&quot;},editType:&quot;plot&quot;},font:n({},h,{}),editType:&quot;calc&quot;},gauge:{shape:{valType:&quot;enumerated&quot;,editType:&quot;plot&quot;,dflt:&quot;angular&quot;,values:[&quot;angular&quot;,&quot;bullet&quot;]},bar:i({},p,{color:{dflt:&quot;green&quot;}}),bgcolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:s.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},axis:a({range:d,visible:n({},c.visible,{dflt:!0}),tickmode:c.tickmode,nticks:c.nticks,tick0:c.tick0,dtick:c.dtick,tickvals:c.tickvals,ticktext:c.ticktext,ticks:n({},c.ticks,{dflt:&quot;outside&quot;}),ticklen:c.ticklen,tickwidth:c.tickwidth,tickcolor:c.tickcolor,showticklabels:c.showticklabels,tickfont:o({}),tickangle:c.tickangle,tickformat:c.tickformat,tickformatstops:c.tickformatstops,tickprefix:c.tickprefix,showtickprefix:c.showtickprefix,ticksuffix:c.ticksuffix,showticksuffix:c.showticksuffix,separatethousands:c.separatethousands,exponentformat:c.exponentformat,minexponent:c.minexponent,showexponent:c.showexponent,editType:&quot;plot&quot;},&quot;plot&quot;),steps:g,threshold:{line:{color:n({},p.line.color,{}),width:n({},p.line.width,{dflt:1}),editType:&quot;plot&quot;},thickness:n({},p.thickness,{dflt:.85}),value:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:!1},editType:&quot;plot&quot;},editType:&quot;plot&quot;}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../constants/delta.js&quot;:747,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856}],1117:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;indicator&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1118:[function(t,e,r){&quot;use strict&quot;;e.exports={calc:function(t,e){var r=[],n=e.value;&quot;number&quot;!=typeof e._lastValue&amp;&amp;(e._lastValue=e.value);var i=e._lastValue,a=i;return e._hasDelta&amp;&amp;&quot;number&quot;==typeof e.delta.reference&amp;&amp;(a=e.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}}},{}],1119:[function(t,e,r){&quot;use strict&quot;;e.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}},{}],1120:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../../plot_api/plot_template&quot;),s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;./constants.js&quot;),c=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),u=t(&quot;../../plots/cartesian/tick_mark_defaults&quot;),f=t(&quot;../../plots/cartesian/tick_label_defaults&quot;);function h(t,e){function r(r,a){return n.coerce(t,e,i.gauge.steps,r,a)}r(&quot;color&quot;),r(&quot;line.color&quot;),r(&quot;line.width&quot;),r(&quot;range&quot;),r(&quot;thickness&quot;)}e.exports={supplyDefaults:function(t,e,r,p){function d(r,a){return n.coerce(t,e,i,r,a)}a(e,p,d),d(&quot;mode&quot;),e._hasNumber=-1!==e.mode.indexOf(&quot;number&quot;),e._hasDelta=-1!==e.mode.indexOf(&quot;delta&quot;),e._hasGauge=-1!==e.mode.indexOf(&quot;gauge&quot;);var g=d(&quot;value&quot;);e._range=[0,&quot;number&quot;==typeof g?1.5*g:1];var m,v,y,x,b,_,w=new Array(2);function T(t,e){return n.coerce(y,x,i.gauge,t,e)}function k(t,e){return n.coerce(b,_,i.gauge.axis,t,e)}if(e._hasNumber&amp;&amp;(d(&quot;number.valueformat&quot;),d(&quot;number.font.color&quot;,p.font.color),d(&quot;number.font.family&quot;,p.font.family),d(&quot;number.font.size&quot;),void 0===e.number.font.size&amp;&amp;(e.number.font.size=l.defaultNumberFontSize,w[0]=!0),d(&quot;number.prefix&quot;),d(&quot;number.suffix&quot;),m=e.number.font.size),e._hasDelta&amp;&amp;(d(&quot;delta.font.color&quot;,p.font.color),d(&quot;delta.font.family&quot;,p.font.family),d(&quot;delta.font.size&quot;),void 0===e.delta.font.size&amp;&amp;(e.delta.font.size=(e._hasNumber?.5:1)*(m||l.defaultNumberFontSize),w[1]=!0),d(&quot;delta.reference&quot;,e.value),d(&quot;delta.relative&quot;),d(&quot;delta.valueformat&quot;,e.delta.relative?&quot;2%&quot;:&quot;&quot;),d(&quot;delta.increasing.symbol&quot;),d(&quot;delta.increasing.color&quot;),d(&quot;delta.decreasing.symbol&quot;),d(&quot;delta.decreasing.color&quot;),d(&quot;delta.position&quot;),v=e.delta.font.size),e._scaleNumbers=(!e._hasNumber||w[0])&amp;&amp;(!e._hasDelta||w[1])||!1,d(&quot;title.font.color&quot;,p.font.color),d(&quot;title.font.family&quot;,p.font.family),d(&quot;title.font.size&quot;,.25*(m||v||l.defaultNumberFontSize)),d(&quot;title.text&quot;),e._hasGauge){(y=t.gauge)||(y={}),x=o.newContainer(e,&quot;gauge&quot;),T(&quot;shape&quot;),(e._isBullet=&quot;bullet&quot;===e.gauge.shape)||d(&quot;title.align&quot;,&quot;center&quot;),(e._isAngular=&quot;angular&quot;===e.gauge.shape)||d(&quot;align&quot;,&quot;center&quot;),T(&quot;bgcolor&quot;,p.paper_bgcolor),T(&quot;borderwidth&quot;),T(&quot;bordercolor&quot;),T(&quot;bar.color&quot;),T(&quot;bar.line.color&quot;),T(&quot;bar.line.width&quot;),T(&quot;bar.thickness&quot;,l.valueThickness*(&quot;bullet&quot;===e.gauge.shape?.5:1)),s(y,x,{name:&quot;steps&quot;,handleItemDefaults:h}),T(&quot;threshold.value&quot;),T(&quot;threshold.thickness&quot;),T(&quot;threshold.line.width&quot;),T(&quot;threshold.line.color&quot;),b={},y&amp;&amp;(b=y.axis||{}),_=o.newContainer(x,&quot;axis&quot;),k(&quot;visible&quot;),e._range=k(&quot;range&quot;,e._range);var M={outerTicks:!0};c(b,_,k,&quot;linear&quot;),f(b,_,k,&quot;linear&quot;,M),u(b,_,k,M)}else d(&quot;title.align&quot;,&quot;center&quot;),d(&quot;align&quot;,&quot;center&quot;),e._isAngular=e._isBullet=!1;e._length=null}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/tick_label_defaults&quot;:849,&quot;../../plots/cartesian/tick_mark_defaults&quot;:850,&quot;../../plots/cartesian/tick_value_defaults&quot;:851,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1116,&quot;./constants.js&quot;:1119}],1121:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;indicator&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;svg&quot;,&quot;noOpacity&quot;,&quot;noHover&quot;],animatable:!0,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./plot&quot;),meta:{}}},{&quot;./attributes&quot;:1116,&quot;./base_plot&quot;:1117,&quot;./calc&quot;:1118,&quot;./defaults&quot;:1120,&quot;./plot&quot;:1122}],1122:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=i.strScale,o=i.strTranslate,s=i.rad2deg,l=t(&quot;../../constants/alignment&quot;).MID_SHIFT,c=t(&quot;../../components/drawing&quot;),u=t(&quot;./constants&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../plots/cartesian/axes&quot;),p=t(&quot;../../plots/cartesian/axis_defaults&quot;),d=t(&quot;../../plots/cartesian/position_defaults&quot;),g=t(&quot;../../plots/cartesian/layout_attributes&quot;),m=t(&quot;../../components/color&quot;),v={left:&quot;start&quot;,center:&quot;middle&quot;,right:&quot;end&quot;},y={left:0,center:.5,right:1},x=/[yzafpn\xb5mkMGTPEZY]/;function b(t){return t&amp;&amp;t.duration&gt;0}function _(t){t.each((function(t){m.stroke(n.select(this),t.line.color)})).each((function(t){m.fill(n.select(this),t.color)})).style(&quot;stroke-width&quot;,(function(t){return t.line.width}))}function w(t,e,r){var n=t._fullLayout,a=i.extendFlat({type:&quot;linear&quot;,ticks:&quot;outside&quot;,range:r,showline:!0},e),o={type:&quot;linear&quot;,_id:&quot;x&quot;+e._id},s={letter:&quot;x&quot;,font:n.font,noHover:!0,noTickson:!0};function l(t,e){return i.coerce(a,o,g,t,e)}return p(a,o,l,s,n),d(a,o,l,s),o}function T(t,e,r){return[Math.min(e/t.width,r/t.height),t,e+&quot;x&quot;+r]}function k(t,e,r,i){var a=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;text&quot;),o=n.select(a);return o.text(t).attr(&quot;x&quot;,0).attr(&quot;y&quot;,0).attr(&quot;text-anchor&quot;,r).attr(&quot;data-unformatted&quot;,t).call(f.convertToTspans,i).call(c.font,e),c.bBox(o.node())}function M(t,e,r,n,a,o){var s=&quot;_cache&quot;+e;t[s]&amp;&amp;t[s].key===a||(t[s]={key:a,value:r});var l=i.aggNums(o,null,[t[s].value,n],2);return t[s].value=l,l}e.exports=function(t,e,r,p){var d,g=t._fullLayout;b(r)&amp;&amp;p&amp;&amp;(d=p()),i.makeTraceGroups(g._indicatorlayer,e,&quot;trace&quot;).each((function(e){var p,A,S,E,C,L=e[0].trace,I=n.select(this),P=L._hasGauge,z=L._isAngular,O=L._isBullet,D=L.domain,R={w:g._size.w*(D.x[1]-D.x[0]),h:g._size.h*(D.y[1]-D.y[0]),l:g._size.l+g._size.w*D.x[0],r:g._size.r+g._size.w*(1-D.x[1]),t:g._size.t+g._size.h*(1-D.y[1]),b:g._size.b+g._size.h*D.y[0]},F=R.l+R.w/2,B=R.t+R.h/2,N=Math.min(R.w/2,R.h),j=u.innerRadius*N,U=L.align||&quot;center&quot;;if(A=B,P){if(z&amp;&amp;(p=F,A=B+N/2,S=function(t){return function(t,e){var r=Math.sqrt(t.width/2*(t.width/2)+t.height*t.height);return[e/r,t,e]}(t,.9*j)}),O){var V=u.bulletPadding,q=1-u.bulletNumberDomainSize+V;p=R.l+(q+(1-q)*y[U])*R.w,S=function(t){return T(t,(u.bulletNumberDomainSize-V)*R.w,R.h)}}}else p=R.l+y[U]*R.w,S=function(t){return T(t,R.w,R.h)};!function(t,e,r,s){var l,u,p,d=r[0].trace,g=s.numbersX,_=s.numbersY,T=d.align||&quot;center&quot;,A=v[T],S=s.transitionOpts,E=s.onComplete,C=i.ensureSingle(e,&quot;g&quot;,&quot;numbers&quot;),L=[];d._hasNumber&amp;&amp;L.push(&quot;number&quot;);d._hasDelta&amp;&amp;(L.push(&quot;delta&quot;),&quot;left&quot;===d.delta.position&amp;&amp;L.reverse());var I=C.selectAll(&quot;text&quot;).data(L);function P(e,r,n,i){if(!e.match(&quot;s&quot;)||n&gt;=0==i&gt;=0||r(n).slice(-1).match(x)||r(i).slice(-1).match(x))return r;var a=e.slice().replace(&quot;s&quot;,&quot;f&quot;).replace(/\d+/,(function(t){return parseInt(t)-1})),o=w(t,{tickformat:a});return function(t){return Math.abs(t)&lt;1?h.tickText(o,t).text:r(t)}}I.enter().append(&quot;text&quot;),I.attr(&quot;text-anchor&quot;,(function(){return A})).attr(&quot;class&quot;,(function(t){return t})).attr(&quot;x&quot;,null).attr(&quot;y&quot;,null).attr(&quot;dx&quot;,null).attr(&quot;dy&quot;,null),I.exit().remove();var z,O=d.mode+d.align;d._hasDelta&amp;&amp;(z=function(){var e=w(t,{tickformat:d.delta.valueformat},d._range);e.setScale(),h.prepTicks(e);var i=function(t){return h.tickText(e,t).text},a=function(t){return d.delta.relative?t.relativeDelta:t.delta},o=function(t,e){return 0===t||&quot;number&quot;!=typeof t||isNaN(t)?&quot;-&quot;:(t&gt;0?d.delta.increasing.symbol:d.delta.decreasing.symbol)+e(t)},s=function(t){return t.delta&gt;=0?d.delta.increasing.color:d.delta.decreasing.color};void 0===d._deltaLastValue&amp;&amp;(d._deltaLastValue=a(r[0]));var l=C.select(&quot;text.delta&quot;);function p(){l.text(o(a(r[0]),i)).call(m.fill,s(r[0])).call(f.convertToTspans,t)}return l.call(c.font,d.delta.font).call(m.fill,s({delta:d._deltaLastValue})),b(S)?l.transition().duration(S.duration).ease(S.easing).tween(&quot;text&quot;,(function(){var t=n.select(this),e=a(r[0]),l=d._deltaLastValue,c=P(d.delta.valueformat,i,l,e),u=n.interpolateNumber(l,e);return d._deltaLastValue=e,function(e){t.text(o(u(e),c)),t.call(m.fill,s({delta:u(e)}))}})).each(&quot;end&quot;,(function(){p(),E&amp;&amp;E()})).each(&quot;interrupt&quot;,(function(){p(),E&amp;&amp;E()})):p(),u=k(o(a(r[0]),i),d.delta.font,A,t),l}(),O+=d.delta.position+d.delta.font.size+d.delta.font.family+d.delta.valueformat,O+=d.delta.increasing.symbol+d.delta.decreasing.symbol,p=u);d._hasNumber&amp;&amp;(!function(){var e=w(t,{tickformat:d.number.valueformat},d._range);e.setScale(),h.prepTicks(e);var i=function(t){return h.tickText(e,t).text},a=d.number.suffix,o=d.number.prefix,s=C.select(&quot;text.number&quot;);function u(){var e=&quot;number&quot;==typeof r[0].y?o+i(r[0].y)+a:&quot;-&quot;;s.text(e).call(c.font,d.number.font).call(f.convertToTspans,t)}b(S)?s.transition().duration(S.duration).ease(S.easing).each(&quot;end&quot;,(function(){u(),E&amp;&amp;E()})).each(&quot;interrupt&quot;,(function(){u(),E&amp;&amp;E()})).attrTween(&quot;text&quot;,(function(){var t=n.select(this),e=n.interpolateNumber(r[0].lastY,r[0].y);d._lastValue=r[0].y;var s=P(d.number.valueformat,i,r[0].lastY,r[0].y);return function(r){t.text(o+s(e(r))+a)}})):u(),l=k(o+i(r[0].y)+a,d.number.font,A,t)}(),O+=d.number.font.size+d.number.font.family+d.number.valueformat+d.number.suffix+d.number.prefix,p=l);if(d._hasDelta&amp;&amp;d._hasNumber){var D,R,F=[(l.left+l.right)/2,(l.top+l.bottom)/2],B=[(u.left+u.right)/2,(u.top+u.bottom)/2],N=.75*d.delta.font.size;&quot;left&quot;===d.delta.position&amp;&amp;(D=M(d,&quot;deltaPos&quot;,0,-1*(l.width*y[d.align]+u.width*(1-y[d.align])+N),O,Math.min),R=F[1]-B[1],p={width:l.width+u.width+N,height:Math.max(l.height,u.height),left:u.left+D,right:l.right,top:Math.min(l.top,u.top+R),bottom:Math.max(l.bottom,u.bottom+R)}),&quot;right&quot;===d.delta.position&amp;&amp;(D=M(d,&quot;deltaPos&quot;,0,l.width*(1-y[d.align])+u.width*y[d.align]+N,O,Math.max),R=F[1]-B[1],p={width:l.width+u.width+N,height:Math.max(l.height,u.height),left:l.left,right:u.right+D,top:Math.min(l.top,u.top+R),bottom:Math.max(l.bottom,u.bottom+R)}),&quot;bottom&quot;===d.delta.position&amp;&amp;(D=null,R=u.height,p={width:Math.max(l.width,u.width),height:l.height+u.height,left:Math.min(l.left,u.left),right:Math.max(l.right,u.right),top:l.bottom-l.height,bottom:l.bottom+u.height}),&quot;top&quot;===d.delta.position&amp;&amp;(D=null,R=l.top,p={width:Math.max(l.width,u.width),height:l.height+u.height,left:Math.min(l.left,u.left),right:Math.max(l.right,u.right),top:l.bottom-l.height-u.height,bottom:l.bottom}),z.attr({dx:D,dy:R})}(d._hasNumber||d._hasDelta)&amp;&amp;C.attr(&quot;transform&quot;,(function(){var t=s.numbersScaler(p);O+=t[2];var e,r=M(d,&quot;numbersScale&quot;,1,t[0],O,Math.min);d._scaleNumbers||(r=1),e=d._isAngular?_-r*p.bottom:_-r*(p.top+p.bottom)/2,d._numbersTop=r*p.top+e;var n=p[T];&quot;center&quot;===T&amp;&amp;(n=(p.left+p.right)/2);var i=g-r*n;return i=M(d,&quot;numbersTranslate&quot;,0,i,O,Math.max),o(i,e)+a(r)}))}(t,I,e,{numbersX:p,numbersY:A,numbersScaler:S,transitionOpts:r,onComplete:d}),P&amp;&amp;(E={range:L.gauge.axis.range,color:L.gauge.bgcolor,line:{color:L.gauge.bordercolor,width:0},thickness:1},C={range:L.gauge.axis.range,color:&quot;rgba(0, 0, 0, 0)&quot;,line:{color:L.gauge.bordercolor,width:L.gauge.borderwidth},thickness:1});var H=I.selectAll(&quot;g.angular&quot;).data(z?e:[]);H.exit().remove();var G=I.selectAll(&quot;g.angularaxis&quot;).data(z?e:[]);G.exit().remove(),z&amp;&amp;function(t,e,r,i){var a,c,u,f,p=r[0].trace,d=i.size,g=i.radius,m=i.innerRadius,v=i.gaugeBg,y=i.gaugeOutline,x=[d.l+d.w/2,d.t+d.h/2+g/2],T=i.gauge,k=i.layer,M=i.transitionOpts,A=i.onComplete,S=Math.PI/2;function E(t){var e=p.gauge.axis.range[0],r=(t-e)/(p.gauge.axis.range[1]-e)*Math.PI-S;return r&lt;-S?-S:r&gt;S?S:r}function C(t){return n.svg.arc().innerRadius((m+g)/2-t/2*(g-m)).outerRadius((m+g)/2+t/2*(g-m)).startAngle(-S)}function L(t){t.attr(&quot;d&quot;,(function(t){return C(t.thickness).startAngle(E(t.range[0])).endAngle(E(t.range[1]))()}))}T.enter().append(&quot;g&quot;).classed(&quot;angular&quot;,!0),T.attr(&quot;transform&quot;,o(x[0],x[1])),k.enter().append(&quot;g&quot;).classed(&quot;angularaxis&quot;,!0).classed(&quot;crisp&quot;,!0),k.selectAll(&quot;g.xangularaxistick,path,text&quot;).remove(),(a=w(t,p.gauge.axis)).type=&quot;linear&quot;,a.range=p.gauge.axis.range,a._id=&quot;xangularaxis&quot;,a.setScale();var I=function(t){return(a.range[0]-t.x)/(a.range[1]-a.range[0])*Math.PI+Math.PI},P={},z=h.makeLabelFns(a,0).labelStandoff;P.xFn=function(t){var e=I(t);return Math.cos(e)*z},P.yFn=function(t){var e=I(t),r=Math.sin(e)&gt;0?.2:1;return-Math.sin(e)*(z+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*l)},P.anchorFn=function(t){var e=I(t),r=Math.cos(e);return Math.abs(r)&lt;.1?&quot;middle&quot;:r&gt;0?&quot;start&quot;:&quot;end&quot;},P.heightFn=function(t,e,r){var n=I(t);return-.5*(1+Math.sin(n))*r};var O=function(t){return o(x[0]+g*Math.cos(t),x[1]-g*Math.sin(t))};u=function(t){return O(I(t))};if(c=h.calcTicks(a),f=h.getTickSigns(a)[2],a.visible){f=&quot;inside&quot;===a.ticks?-1:1;var D=(a.linewidth||1)/2;h.drawTicks(t,a,{vals:c,layer:k,path:&quot;M&quot;+f*D+&quot;,0h&quot;+f*a.ticklen,transFn:function(t){var e=I(t);return O(e)+&quot;rotate(&quot;+-s(e)+&quot;)&quot;}}),h.drawLabels(t,a,{vals:c,layer:k,transFn:u,labelFns:P})}var R=[v].concat(p.gauge.steps),F=T.selectAll(&quot;g.bg-arc&quot;).data(R);F.enter().append(&quot;g&quot;).classed(&quot;bg-arc&quot;,!0).append(&quot;path&quot;),F.select(&quot;path&quot;).call(L).call(_),F.exit().remove();var B=C(p.gauge.bar.thickness),N=T.selectAll(&quot;g.value-arc&quot;).data([p.gauge.bar]);N.enter().append(&quot;g&quot;).classed(&quot;value-arc&quot;,!0).append(&quot;path&quot;);var j=N.select(&quot;path&quot;);b(M)?(j.transition().duration(M.duration).ease(M.easing).each(&quot;end&quot;,(function(){A&amp;&amp;A()})).each(&quot;interrupt&quot;,(function(){A&amp;&amp;A()})).attrTween(&quot;d&quot;,(U=B,V=E(r[0].lastY),q=E(r[0].y),function(){var t=n.interpolate(V,q);return function(e){return U.endAngle(t(e))()}})),p._lastValue=r[0].y):j.attr(&quot;d&quot;,&quot;number&quot;==typeof r[0].y?B.endAngle(E(r[0].y)):&quot;M0,0Z&quot;);var U,V,q;j.call(_),N.exit().remove(),R=[];var H=p.gauge.threshold.value;H&amp;&amp;R.push({range:[H,H],color:p.gauge.threshold.color,line:{color:p.gauge.threshold.line.color,width:p.gauge.threshold.line.width},thickness:p.gauge.threshold.thickness});var G=T.selectAll(&quot;g.threshold-arc&quot;).data(R);G.enter().append(&quot;g&quot;).classed(&quot;threshold-arc&quot;,!0).append(&quot;path&quot;),G.select(&quot;path&quot;).call(L).call(_),G.exit().remove();var Y=T.selectAll(&quot;g.gauge-outline&quot;).data([y]);Y.enter().append(&quot;g&quot;).classed(&quot;gauge-outline&quot;,!0).append(&quot;path&quot;),Y.select(&quot;path&quot;).call(L).call(_),Y.exit().remove()}(t,0,e,{radius:N,innerRadius:j,gauge:H,layer:G,size:R,gaugeBg:E,gaugeOutline:C,transitionOpts:r,onComplete:d});var Y=I.selectAll(&quot;g.bullet&quot;).data(O?e:[]);Y.exit().remove();var W=I.selectAll(&quot;g.bulletaxis&quot;).data(O?e:[]);W.exit().remove(),O&amp;&amp;function(t,e,r,n){var i,a,s,l,c,f=r[0].trace,p=n.gauge,d=n.layer,g=n.gaugeBg,v=n.gaugeOutline,y=n.size,x=f.domain,T=n.transitionOpts,k=n.onComplete;p.enter().append(&quot;g&quot;).classed(&quot;bullet&quot;,!0),p.attr(&quot;transform&quot;,o(y.l,y.t)),d.enter().append(&quot;g&quot;).classed(&quot;bulletaxis&quot;,!0).classed(&quot;crisp&quot;,!0),d.selectAll(&quot;g.xbulletaxistick,path,text&quot;).remove();var M=y.h,A=f.gauge.bar.thickness*M,S=x.x[0],E=x.x[0]+(x.x[1]-x.x[0])*(f._hasNumber||f._hasDelta?1-u.bulletNumberDomainSize:1);(i=w(t,f.gauge.axis))._id=&quot;xbulletaxis&quot;,i.domain=[S,E],i.setScale(),a=h.calcTicks(i),s=h.makeTransTickFn(i),l=h.getTickSigns(i)[2],c=y.t+y.h,i.visible&amp;&amp;(h.drawTicks(t,i,{vals:&quot;inside&quot;===i.ticks?h.clipEnds(i,a):a,layer:d,path:h.makeTickPath(i,c,l),transFn:s}),h.drawLabels(t,i,{vals:a,layer:d,transFn:s,labelFns:h.makeLabelFns(i,c)}));function C(t){t.attr(&quot;width&quot;,(function(t){return Math.max(0,i.c2p(t.range[1])-i.c2p(t.range[0]))})).attr(&quot;x&quot;,(function(t){return i.c2p(t.range[0])})).attr(&quot;y&quot;,(function(t){return.5*(1-t.thickness)*M})).attr(&quot;height&quot;,(function(t){return t.thickness*M}))}var L=[g].concat(f.gauge.steps),I=p.selectAll(&quot;g.bg-bullet&quot;).data(L);I.enter().append(&quot;g&quot;).classed(&quot;bg-bullet&quot;,!0).append(&quot;rect&quot;),I.select(&quot;rect&quot;).call(C).call(_),I.exit().remove();var P=p.selectAll(&quot;g.value-bullet&quot;).data([f.gauge.bar]);P.enter().append(&quot;g&quot;).classed(&quot;value-bullet&quot;,!0).append(&quot;rect&quot;),P.select(&quot;rect&quot;).attr(&quot;height&quot;,A).attr(&quot;y&quot;,(M-A)/2).call(_),b(T)?P.select(&quot;rect&quot;).transition().duration(T.duration).ease(T.easing).each(&quot;end&quot;,(function(){k&amp;&amp;k()})).each(&quot;interrupt&quot;,(function(){k&amp;&amp;k()})).attr(&quot;width&quot;,Math.max(0,i.c2p(Math.min(f.gauge.axis.range[1],r[0].y)))):P.select(&quot;rect&quot;).attr(&quot;width&quot;,&quot;number&quot;==typeof r[0].y?Math.max(0,i.c2p(Math.min(f.gauge.axis.range[1],r[0].y))):0);P.exit().remove();var z=r.filter((function(){return f.gauge.threshold.value})),O=p.selectAll(&quot;g.threshold-bullet&quot;).data(z);O.enter().append(&quot;g&quot;).classed(&quot;threshold-bullet&quot;,!0).append(&quot;line&quot;),O.select(&quot;line&quot;).attr(&quot;x1&quot;,i.c2p(f.gauge.threshold.value)).attr(&quot;x2&quot;,i.c2p(f.gauge.threshold.value)).attr(&quot;y1&quot;,(1-f.gauge.threshold.thickness)/2*M).attr(&quot;y2&quot;,(1-(1-f.gauge.threshold.thickness)/2)*M).call(m.stroke,f.gauge.threshold.line.color).style(&quot;stroke-width&quot;,f.gauge.threshold.line.width),O.exit().remove();var D=p.selectAll(&quot;g.gauge-outline&quot;).data([v]);D.enter().append(&quot;g&quot;).classed(&quot;gauge-outline&quot;,!0).append(&quot;rect&quot;),D.select(&quot;rect&quot;).call(C).call(_),D.exit().remove()}(t,0,e,{gauge:Y,layer:W,size:R,gaugeBg:E,gaugeOutline:C,transitionOpts:r,onComplete:d});var X=I.selectAll(&quot;text.title&quot;).data(e);X.exit().remove(),X.enter().append(&quot;text&quot;).classed(&quot;title&quot;,!0),X.attr(&quot;text-anchor&quot;,(function(){return O?v.right:v[L.title.align]})).text(L.title.text).call(c.font,L.title.font).call(f.convertToTspans,t),X.attr(&quot;transform&quot;,(function(){var t,e=R.l+R.w*y[L.title.align],r=u.titlePadding,n=c.bBox(X.node());if(P){if(z)if(L.gauge.axis.visible)t=c.bBox(G.node()).top-r-n.bottom;else t=R.t+R.h/2-N/2-n.bottom-r;O&amp;&amp;(t=A-(n.top+n.bottom)/2,e=R.l-u.bulletPadding*R.w)}else t=L._numbersTop-r-n.bottom;return o(e,t)}))}))}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_defaults&quot;:830,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/cartesian/position_defaults&quot;:845,&quot;./constants&quot;:1119,d3:169}],1123:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../mesh3d/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll;var c=e.exports=l(s({x:{valType:&quot;data_array&quot;},y:{valType:&quot;data_array&quot;},z:{valType:&quot;data_array&quot;},value:{valType:&quot;data_array&quot;},isomin:{valType:&quot;number&quot;},isomax:{valType:&quot;number&quot;},surface:{show:{valType:&quot;boolean&quot;,dflt:!0},count:{valType:&quot;integer&quot;,dflt:2,min:1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1},pattern:{valType:&quot;flaglist&quot;,flags:[&quot;A&quot;,&quot;B&quot;,&quot;C&quot;,&quot;D&quot;,&quot;E&quot;],extras:[&quot;all&quot;,&quot;odd&quot;,&quot;even&quot;],dflt:&quot;all&quot;}},spaceframe:{show:{valType:&quot;boolean&quot;,dflt:!1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:.15}},slices:{x:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},y:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},z:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}}},caps:{x:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},y:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},z:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}}},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertemplate:i(),showlegend:s({},o.showlegend,{dflt:!1})},n(&quot;&quot;,{colorAttr:&quot;`value`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{opacity:a.opacity,lightposition:a.lightposition,lighting:a.lighting,flatshading:a.flatshading,contour:a.contour,hoverinfo:s({},o.hoverinfo)}),&quot;calc&quot;,&quot;nested&quot;);c.flatshading.dflt=!0,c.lighting.facenormalsepsilon.dflt=0,c.x.editType=c.y.editType=c.z.editType=c.value.editType=&quot;calc+clearAxisTypes&quot;,c.transforms=void 0},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../mesh3d/attributes&quot;:1128}],1124:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;),i=t(&quot;../streamtube/calc&quot;).processGrid,a=t(&quot;../streamtube/calc&quot;).filter;e.exports=function(t,e){e._len=Math.min(e.x.length,e.y.length,e.z.length,e.value.length),e._x=a(e.x,e._len),e._y=a(e.y,e._len),e._z=a(e.z,e._len),e._value=a(e.value,e._len);var r=i(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;for(var o=1/0,s=-1/0,l=0;l&lt;e._len;l++){var c=e._value[l];o=Math.min(o,c),s=Math.max(s,c)}e._minValues=o,e._maxValues=s,e._vMin=void 0===e.isomin||null===e.isomin?o:e.isomin,e._vMax=void 0===e.isomax||null===e.isomin?s:e.isomax,n(t,e,{vals:[e._vMin,e._vMax],containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../streamtube/calc&quot;:1295}],1125:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,a=t(&quot;../../lib/str2rgbarray&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts,s=t(&quot;../../plots/gl3d/zip3&quot;),l=function(t,e){for(var r=e.length-1;r&gt;0;r--){var n=Math.min(e[r],e[r-1]),i=Math.max(e[r],e[r-1]);if(i&gt;n&amp;&amp;n&lt;t&amp;&amp;t&lt;=i)return{id:r,distRatio:(i-t)/(i-n)}}return{id:0,distRatio:0}};function c(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.data=null,this.showContour=!1}var u=c.prototype;u.handlePick=function(t){if(t.object===this.mesh){var e=t.data.index,r=this.data._meshX[e],n=this.data._meshY[e],i=this.data._meshZ[e],a=this.data._Ys.length,o=this.data._Zs.length,s=l(r,this.data._Xs).id,c=l(n,this.data._Ys).id,u=l(i,this.data._Zs).id,f=t.index=u+o*c+o*a*s;t.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Array.isArray(h)&amp;&amp;void 0!==h[f]?t.textLabel=h[f]:h&amp;&amp;(t.textLabel=h),!0}},u.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map((function(e){return t.d2l(e,0,n)*r}))}this.data=h(t);var l={positions:s(n(r.xaxis,t._meshX,e.dataScale[0],t.xcalendar),n(r.yaxis,t._meshY,e.dataScale[1],t.ycalendar),n(r.zaxis,t._meshZ,e.dataScale[2],t.zcalendar)),cells:s(t._meshI,t._meshJ,t._meshK),lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:a(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading},c=o(t);l.vertexIntensity=t._meshIntensity,l.vertexIntensityBounds=[c.min,c.max],l.colormap=i(t),this.mesh.update(l)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};var f=[&quot;xyz&quot;,&quot;xzy&quot;,&quot;yxz&quot;,&quot;yzx&quot;,&quot;zxy&quot;,&quot;zyx&quot;];function h(t){t._meshI=[],t._meshJ=[],t._meshK=[];var e,r,n,i,a,o,s,c=t.surface.show,u=t.spaceframe.show,h=t.surface.fill,p=t.spaceframe.fill,d=!1,g=!1,m=0,v=t._Xs,y=t._Ys,x=t._Zs,b=v.length,_=y.length,w=x.length,T=f.indexOf(t._gridFill.replace(/-/g,&quot;&quot;).replace(/\+/g,&quot;&quot;)),k=function(t,e,r){switch(T){case 5:return r+w*e+w*_*t;case 4:return r+w*t+w*b*e;case 3:return e+_*r+_*w*t;case 2:return e+_*t+_*b*r;case 1:return t+b*r+b*w*e;default:return t+b*e+b*_*r}},M=t._minValues,A=t._maxValues,S=t._vMin,E=t._vMax;function C(t,e,s){for(var l=o.length,c=r;c&lt;l;c++)if(t===n[c]&amp;&amp;e===i[c]&amp;&amp;s===a[c])return c;return-1}function L(){r=e}function I(){n=[],i=[],a=[],o=[],e=0,L()}function P(t,r,s,l){return n.push(t),i.push(r),a.push(s),o.push(l),++e-1}function z(t,e,r){for(var n=[],i=0;i&lt;t.length;i++)n[i]=t[i]*(1-r)+r*e[i];return n}function O(t){s=t}function D(t,e){return&quot;all&quot;===t||null===t||t.indexOf(e)&gt;-1}function R(t,e){return null===t?e:t}function F(e,r,n){L();var i,a,o,l=[r],c=[n];if(s&gt;=1)l=[r],c=[n];else if(s&gt;0){var u=function(t,e){var r=t[0],n=t[1],i=t[2],a=function(t,e,r){for(var n=[],i=0;i&lt;t.length;i++)n[i]=(t[i]+e[i]+r[i])/3;return n}(r,n,i),o=Math.sqrt(1-s),l=z(a,r,o),c=z(a,n,o),u=z(a,i,o),f=e[0],h=e[1],p=e[2];return{xyzv:[[r,n,c],[c,l,r],[n,i,u],[u,c,n],[i,r,l],[l,u,i]],abc:[[f,h,-1],[-1,-1,f],[h,p,-1],[-1,-1,h],[p,f,-1],[-1,-1,p]]}}(r,n);l=u.xyzv,c=u.abc}for(var f=0;f&lt;l.length;f++){r=l[f],n=c[f];for(var h=[],p=0;p&lt;3;p++){var d=r[p][0],g=r[p][1],v=r[p][2],y=r[p][3],x=n[p]&gt;-1?n[p]:C(d,g,v);h[p]=x&gt;-1?x:P(d,g,v,R(e,y))}i=h[0],a=h[1],o=h[2],t._meshI.push(i),t._meshJ.push(a),t._meshK.push(o),++m}}function B(t,e,r,n){var i=t[3];i&lt;r&amp;&amp;(i=r),i&gt;n&amp;&amp;(i=n);for(var a=(t[3]-i)/(t[3]-e[3]+1e-9),o=[],s=0;s&lt;4;s++)o[s]=(1-a)*t[s]+a*e[s];return o}function N(t,e,r){return t&gt;=e&amp;&amp;t&lt;=r}function j(t){var e=.001*(E-S);return t&gt;=S-e&amp;&amp;t&lt;=E+e}function U(e){for(var r=[],n=0;n&lt;4;n++){var i=e[n];r.push([t._x[i],t._y[i],t._z[i],t._value[i]])}return r}function V(t,e,r,n,i,a){a||(a=1),r=[-1,-1,-1];var o=!1,s=[N(e[0][3],n,i),N(e[1][3],n,i),N(e[2][3],n,i)];if(!s[0]&amp;&amp;!s[1]&amp;&amp;!s[2])return!1;var l=function(t,e,r){return j(e[0][3])&amp;&amp;j(e[1][3])&amp;&amp;j(e[2][3])?(F(t,e,r),!0):a&lt;3&amp;&amp;V(t,e,r,S,E,++a)};if(s[0]&amp;&amp;s[1]&amp;&amp;s[2])return l(t,e,r)||o;var c=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach((function(a){if(s[a[0]]&amp;&amp;s[a[1]]&amp;&amp;!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(h,u,n,i),d=B(h,f,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,o=l(t,[u,f,d],[r[a[0]],r[a[1]],-1])||o,c=!0}})),c||[[0,1,2],[1,2,0],[2,0,1]].forEach((function(a){if(s[a[0]]&amp;&amp;!s[a[1]]&amp;&amp;!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(f,u,n,i),d=B(h,u,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,c=!0}})),o}function q(t,e,r,n){var i=!1,a=U(e),o=[N(a[0][3],r,n),N(a[1][3],r,n),N(a[2][3],r,n),N(a[3][3],r,n)];if(!(o[0]||o[1]||o[2]||o[3]))return i;if(o[0]&amp;&amp;o[1]&amp;&amp;o[2]&amp;&amp;o[3])return g&amp;&amp;(i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(3,0,1),n(2,3,0),n(1,2,3)}(t,a,e)||i),i;var s=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach((function(l){if(o[l[0]]&amp;&amp;o[l[1]]&amp;&amp;o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]];if(g)i=F(t,[c,u,f],[e[l[0]],e[l[1]],e[l[2]]])||i;else{var p=B(h,c,r,n),d=B(h,u,r,n),m=B(h,f,r,n);i=F(null,[p,d,m],[-1,-1,-1])||i}s=!0}})),s?i:([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach((function(l){if(o[l[0]]&amp;&amp;o[l[1]]&amp;&amp;!o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(f,c,r,n),d=B(f,u,r,n),m=B(h,u,r,n),v=B(h,c,r,n);g?(i=F(t,[c,v,p],[e[l[0]],-1,-1])||i,i=F(t,[u,d,m],[e[l[1]],-1,-1])||i):i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(2,3,0)}(null,[p,d,m,v],[-1,-1,-1,-1])||i,s=!0}})),s||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach((function(l){if(o[l[0]]&amp;&amp;!o[l[1]]&amp;&amp;!o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(u,c,r,n),d=B(f,c,r,n),m=B(h,c,r,n);g?(i=F(t,[c,p,d],[e[l[0]],-1,-1])||i,i=F(t,[c,d,m],[e[l[0]],-1,-1])||i,i=F(t,[c,m,p],[e[l[0]],-1,-1])||i):i=F(null,[p,d,m],[-1,-1,-1])||i,s=!0}})),i)}function H(t,e,r,n,i,a,o,s,l,c,u){var f=!1;return d&amp;&amp;(D(t,&quot;A&quot;)&amp;&amp;(f=q(null,[e,r,n,a],c,u)||f),D(t,&quot;B&quot;)&amp;&amp;(f=q(null,[r,n,i,l],c,u)||f),D(t,&quot;C&quot;)&amp;&amp;(f=q(null,[r,a,o,l],c,u)||f),D(t,&quot;D&quot;)&amp;&amp;(f=q(null,[n,a,s,l],c,u)||f),D(t,&quot;E&quot;)&amp;&amp;(f=q(null,[r,n,a,l],c,u)||f)),g&amp;&amp;(f=q(t,[r,n,a,l],c,u)||f),f}function G(t,e,r,n,i,a,o,s){return[!0===s[0]||V(t,U([e,r,n]),[e,r,n],a,o),!0===s[1]||V(t,U([n,i,e]),[n,i,e],a,o)]}function Y(t,e,r,n,i,a,o,s,l){return s?G(t,e,r,i,n,a,o,l):G(t,r,i,n,e,a,o,l)}function W(t,e,r,n,i,a,o){var s,l,c,u,f=!1,h=function(){f=V(t,[s,l,c],[-1,-1,-1],i,a)||f,f=V(t,[c,u,s],[-1,-1,-1],i,a)||f},p=o[0],d=o[1],g=o[2];return p&amp;&amp;(s=z(U([k(e,r-0,n-0)])[0],U([k(e-1,r-0,n-0)])[0],p),l=z(U([k(e,r-0,n-1)])[0],U([k(e-1,r-0,n-1)])[0],p),c=z(U([k(e,r-1,n-1)])[0],U([k(e-1,r-1,n-1)])[0],p),u=z(U([k(e,r-1,n-0)])[0],U([k(e-1,r-1,n-0)])[0],p),h()),d&amp;&amp;(s=z(U([k(e-0,r,n-0)])[0],U([k(e-0,r-1,n-0)])[0],d),l=z(U([k(e-0,r,n-1)])[0],U([k(e-0,r-1,n-1)])[0],d),c=z(U([k(e-1,r,n-1)])[0],U([k(e-1,r-1,n-1)])[0],d),u=z(U([k(e-1,r,n-0)])[0],U([k(e-1,r-1,n-0)])[0],d),h()),g&amp;&amp;(s=z(U([k(e-0,r-0,n)])[0],U([k(e-0,r-0,n-1)])[0],g),l=z(U([k(e-0,r-1,n)])[0],U([k(e-0,r-1,n-1)])[0],g),c=z(U([k(e-1,r-1,n)])[0],U([k(e-1,r-1,n-1)])[0],g),u=z(U([k(e-1,r-0,n)])[0],U([k(e-1,r-0,n-1)])[0],g),h()),f}function X(t,e,r,n,i,a,o,s,l,c,u,f){var h=t;return f?(d&amp;&amp;&quot;even&quot;===t&amp;&amp;(h=null),H(h,e,r,n,i,a,o,s,l,c,u)):(d&amp;&amp;&quot;odd&quot;===t&amp;&amp;(h=null),H(h,l,s,o,a,i,n,r,e,c,u))}function Z(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;w;c++)for(var u=1;u&lt;_;u++)a.push(Y(t,k(l,u-1,c-1),k(l,u-1,c),k(l,u,c-1),k(l,u,c),r,n,(l+u+c)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function J(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;b;c++)for(var u=1;u&lt;w;u++)a.push(Y(t,k(c-1,l,u-1),k(c,l,u-1),k(c-1,l,u),k(c,l,u),r,n,(c+l+u)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function K(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;_;c++)for(var u=1;u&lt;b;u++)a.push(Y(t,k(u-1,c-1,l),k(u-1,c,l),k(u,c-1,l),k(u,c,l),r,n,(u+c+l)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function Q(t,e,r){for(var n=1;n&lt;w;n++)for(var i=1;i&lt;_;i++)for(var a=1;a&lt;b;a++)X(t,k(a-1,i-1,n-1),k(a-1,i-1,n),k(a-1,i,n-1),k(a-1,i,n),k(a,i-1,n-1),k(a,i-1,n),k(a,i,n-1),k(a,i,n),e,r,(a+i+n)%2)}function $(t,e,r){d=!0,Q(t,e,r),d=!1}function tt(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;w;u++)for(var f=1;f&lt;_;f++)o.push(W(t,c,f,u,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function et(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;b;u++)for(var f=1;f&lt;w;f++)o.push(W(t,u,c,f,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function rt(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;_;u++)for(var f=1;f&lt;b;f++)o.push(W(t,f,u,c,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function nt(t,e){for(var r=[],n=t;n&lt;e;n++)r.push(n);return r}return function(){if(I(),function(){for(var e=0;e&lt;b;e++)for(var r=0;r&lt;_;r++)for(var n=0;n&lt;w;n++){var i=k(e,r,n);P(t._x[i],t._y[i],t._z[i],t._value[i])}}(),u&amp;&amp;p&amp;&amp;(O(p),g=!0,Q(null,S,E),g=!1),c&amp;&amp;h){O(h);for(var e=t.surface.pattern,r=t.surface.count,s=0;s&lt;r;s++){var f=1===r?.5:s/(r-1),d=(1-f)*S+f*E,T=Math.abs(d-M)&gt;Math.abs(d-A)?[M,d]:[d,A];$(e,T[0],T[1])}}var C=[[Math.min(S,A),Math.max(S,A)],[Math.min(M,E),Math.max(M,E)]];[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].forEach((function(e){for(var r=[],n=0;n&lt;C.length;n++){var i=0,a=C[n][0],o=C[n][1],s=t.slices[e];if(s.show&amp;&amp;s.fill){O(s.fill);var c=[],u=[],f=[];if(s.locations.length)for(var h=0;h&lt;s.locations.length;h++){var p=l(s.locations[h],&quot;x&quot;===e?v:&quot;y&quot;===e?y:x);0===p.distRatio?c.push(p.id):p.id&gt;0&amp;&amp;(u.push(p.id),&quot;x&quot;===e?f.push([p.distRatio,0,0]):&quot;y&quot;===e?f.push([0,p.distRatio,0]):f.push([0,0,p.distRatio]))}else c=nt(1,&quot;x&quot;===e?b-1:&quot;y&quot;===e?_-1:w-1);u.length&gt;0&amp;&amp;(r[i]=&quot;x&quot;===e?tt(null,u,a,o,f,r[i]):&quot;y&quot;===e?et(null,u,a,o,f,r[i]):rt(null,u,a,o,f,r[i]),i++),c.length&gt;0&amp;&amp;(r[i]=&quot;x&quot;===e?Z(null,c,a,o,r[i]):&quot;y&quot;===e?J(null,c,a,o,r[i]):K(null,c,a,o,r[i]),i++)}var d=t.caps[e];d.show&amp;&amp;d.fill&amp;&amp;(O(d.fill),r[i]=&quot;x&quot;===e?Z(null,[0,b-1],a,o,r[i]):&quot;y&quot;===e?J(null,[0,_-1],a,o,r[i]):K(null,[0,w-1],a,o,r[i]),i++)}})),0===m&amp;&amp;I(),t._meshX=n,t._meshY=i,t._meshZ=a,t._meshIntensity=o,t._Xs=v,t._Ys=y,t._Zs=x}(),t}e.exports={findNearestOnAxis:l,generateIsoMeshes:h,createIsosurfaceTrace:function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new c(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/gl3d/zip3&quot;:881,&quot;gl-mesh3d&quot;:309}],1126:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../../components/colorscale/defaults&quot;);function s(t,e,r,n,a){var s=a(&quot;isomin&quot;),l=a(&quot;isomax&quot;);null!=l&amp;&amp;null!=s&amp;&amp;s&gt;l&amp;&amp;(e.isomin=null,e.isomax=null);var c=a(&quot;x&quot;),u=a(&quot;y&quot;),f=a(&quot;z&quot;),h=a(&quot;value&quot;);c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length?(i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],n),[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].forEach((function(t){var e=&quot;caps.&quot;+t;a(e+&quot;.show&quot;)&amp;&amp;a(e+&quot;.fill&quot;);var r=&quot;slices.&quot;+t;a(r+&quot;.show&quot;)&amp;&amp;(a(r+&quot;.fill&quot;),a(r+&quot;.locations&quot;))})),a(&quot;spaceframe.show&quot;)&amp;&amp;a(&quot;spaceframe.fill&quot;),a(&quot;surface.show&quot;)&amp;&amp;(a(&quot;surface.count&quot;),a(&quot;surface.fill&quot;),a(&quot;surface.pattern&quot;)),a(&quot;contour.show&quot;)&amp;&amp;(a(&quot;contour.color&quot;),a(&quot;contour.width&quot;)),[&quot;text&quot;,&quot;hovertext&quot;,&quot;hovertemplate&quot;,&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lighting.vertexnormalsepsilon&quot;,&quot;lighting.facenormalsepsilon&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;flatshading&quot;,&quot;opacity&quot;].forEach((function(t){a(t)})),o(t,e,n,a,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),e._length=null):e.visible=!1}e.exports={supplyDefaults:function(t,e,r,i){s(t,e,r,i,(function(r,i){return n.coerce(t,e,a,r,i)}))},supplyIsoDefaults:s}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1123}],1127:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,calc:t(&quot;./calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;).createIsosurfaceTrace,moduleType:&quot;trace&quot;,name:&quot;isosurface&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1123,&quot;./calc&quot;:1124,&quot;./convert&quot;:1125,&quot;./defaults&quot;:1126}],1128:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../surface/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},i:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},j:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},k:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertemplate:i({editType:&quot;calc&quot;}),delaunayaxis:{valType:&quot;enumerated&quot;,values:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],dflt:&quot;z&quot;,editType:&quot;calc&quot;},alphahull:{valType:&quot;number&quot;,dflt:-1,editType:&quot;calc&quot;},intensity:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},intensitymode:{valType:&quot;enumerated&quot;,values:[&quot;vertex&quot;,&quot;cell&quot;],dflt:&quot;vertex&quot;,editType:&quot;calc&quot;},color:{valType:&quot;color&quot;,editType:&quot;calc&quot;},vertexcolor:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},facecolor:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},transforms:void 0},n(&quot;&quot;,{colorAttr:&quot;`intensity`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{opacity:a.opacity,flatshading:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},contour:{show:s({},a.contours.x.show,{}),color:a.contours.x.color,width:a.contours.x.width,editType:&quot;calc&quot;},lightposition:{x:s({},a.lightposition.x,{dflt:1e5}),y:s({},a.lightposition.y,{dflt:1e5}),z:s({},a.lightposition.z,{dflt:0}),editType:&quot;calc&quot;},lighting:s({vertexnormalsepsilon:{valType:&quot;number&quot;,min:0,max:1,dflt:1e-12,editType:&quot;calc&quot;},facenormalsepsilon:{valType:&quot;number&quot;,min:0,max:1,dflt:1e-6,editType:&quot;calc&quot;},editType:&quot;calc&quot;},a.lighting),hoverinfo:s({},o.hoverinfo,{editType:&quot;calc&quot;}),showlegend:s({},o.showlegend,{dflt:!1})})},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../surface/attributes&quot;:1311}],1129:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){e.intensity&amp;&amp;n(t,e,{vals:e.intensity,containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651}],1130:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;delaunay-triangulate&quot;),a=t(&quot;alpha-shape&quot;),o=t(&quot;convex-hull&quot;),s=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,l=t(&quot;../../lib/str2rgbarray&quot;),c=t(&quot;../../components/colorscale&quot;).extractOpts,u=t(&quot;../../plots/gl3d/zip3&quot;);function f(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.color=&quot;#fff&quot;,this.data=null,this.showContour=!1}var h=f.prototype;function p(t){for(var e=[],r=t.length,n=0;n&lt;r;n++)e[n]=l(t[n]);return e}function d(t,e,r,n){for(var i=[],a=e.length,o=0;o&lt;a;o++)i[o]=t.d2l(e[o],0,n)*r;return i}function g(t){for(var e=[],r=t.length,n=0;n&lt;r;n++)e[n]=Math.round(t[n]);return e}function m(t,e){for(var r=t.length,n=0;n&lt;r;n++)if(t[n]&lt;=-.5||t[n]&gt;=e-.5)return!1;return!0}h.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index;t.data._cellCenter?t.traceCoordinate=t.data.dataCoordinate:t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]];var r=this.data.hovertext||this.data.text;return Array.isArray(r)&amp;&amp;void 0!==r[e]?t.textLabel=r[e]:r&amp;&amp;(t.textLabel=r),!0}},h.update=function(t){var e=this.scene,r=e.fullSceneLayout;this.data=t;var n,f=t.x.length,h=u(d(r.xaxis,t.x,e.dataScale[0],t.xcalendar),d(r.yaxis,t.y,e.dataScale[1],t.ycalendar),d(r.zaxis,t.z,e.dataScale[2],t.zcalendar));if(t.i&amp;&amp;t.j&amp;&amp;t.k){if(t.i.length!==t.j.length||t.j.length!==t.k.length||!m(t.i,f)||!m(t.j,f)||!m(t.k,f))return;n=u(g(t.i),g(t.j),g(t.k))}else n=0===t.alphahull?o(h):t.alphahull&gt;0?a(t.alphahull,h):function(t,e){for(var r=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].indexOf(t),n=[],a=e.length,o=0;o&lt;a;o++)n[o]=[e[o][(r+1)%3],e[o][(r+2)%3]];return i(n)}(t.delaunayaxis,h);var v={positions:h,cells:n,lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:l(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading};if(t.intensity){var y=c(t);this.color=&quot;#fff&quot;;var x=t.intensitymode;v[x+&quot;Intensity&quot;]=t.intensity,v[x+&quot;IntensityBounds&quot;]=[y.min,y.max],v.colormap=s(t)}else t.vertexcolor?(this.color=t.vertexcolor[0],v.vertexColors=p(t.vertexcolor)):t.facecolor?(this.color=t.facecolor[0],v.cellColors=p(t.facecolor)):(this.color=t.color,v.meshColor=l(t.color));this.mesh.update(v)},h.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new f(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/gl3d/zip3&quot;:881,&quot;alpha-shape&quot;:69,&quot;convex-hull&quot;:135,&quot;delaunay-triangulate&quot;:171,&quot;gl-mesh3d&quot;:309}],1131:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,n){return i.coerce(t,e,o,r,n)}function c(t){var e=t.map((function(t){var e=l(t);return e&amp;&amp;i.isArrayOrTypedArray(e)?e:null}));return e.every((function(t){return t&amp;&amp;t.length===e[0].length}))&amp;&amp;e}c([&quot;x&quot;,&quot;y&quot;,&quot;z&quot;])?(c([&quot;i&quot;,&quot;j&quot;,&quot;k&quot;]),(!e.i||e.j&amp;&amp;e.k)&amp;&amp;(!e.j||e.k&amp;&amp;e.i)&amp;&amp;(!e.k||e.i&amp;&amp;e.j)?(n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],s),[&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lighting.vertexnormalsepsilon&quot;,&quot;lighting.facenormalsepsilon&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;flatshading&quot;,&quot;alphahull&quot;,&quot;delaunayaxis&quot;,&quot;opacity&quot;].forEach((function(t){l(t)})),l(&quot;contour.show&quot;)&amp;&amp;(l(&quot;contour.color&quot;),l(&quot;contour.width&quot;)),&quot;intensity&quot;in t?(l(&quot;intensity&quot;),l(&quot;intensitymode&quot;),a(t,e,s,l,{prefix:&quot;&quot;,cLetter:&quot;c&quot;})):(e.showscale=!1,&quot;facecolor&quot;in t?l(&quot;facecolor&quot;):&quot;vertexcolor&quot;in t?l(&quot;vertexcolor&quot;):l(&quot;color&quot;,r)),l(&quot;text&quot;),l(&quot;hovertext&quot;),l(&quot;hovertemplate&quot;),e._length=null):e.visible=!1):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1128}],1132:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;mesh3d&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1128,&quot;./calc&quot;:1129,&quot;./convert&quot;:1130,&quot;./defaults&quot;:1131}],1133:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).extendFlat,i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../components/drawing/attributes&quot;).dash,o=t(&quot;../../components/fx/attributes&quot;),s=t(&quot;../../constants/delta.js&quot;),l=s.INCREASING.COLOR,c=s.DECREASING.COLOR,u=i.line;function f(t){return{line:{color:n({},u.color,{dflt:t}),width:u.width,dash:a,editType:&quot;style&quot;},editType:&quot;style&quot;}}e.exports={xperiod:i.xperiod,xperiod0:i.xperiod0,xperiodalignment:i.xperiodalignment,x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},open:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},high:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},low:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},close:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{width:n({},u.width,{}),dash:n({},a,{}),editType:&quot;style&quot;},increasing:f(l),decreasing:f(c),text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},tickwidth:{valType:&quot;number&quot;,min:0,max:.5,dflt:.3,editType:&quot;calc&quot;},hoverlabel:n({},o.hoverlabel,{split:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;style&quot;}})}},{&quot;../../components/drawing/attributes&quot;:664,&quot;../../components/fx/attributes&quot;:674,&quot;../../constants/delta.js&quot;:747,&quot;../../lib&quot;:778,&quot;../scatter/attributes&quot;:1187}],1134:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=n._,a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r,n){return{o:t,h:e,l:r,c:n}}function c(t,e,r,o,l,c){for(var u=l.makeCalcdata(e,&quot;open&quot;),f=l.makeCalcdata(e,&quot;high&quot;),h=l.makeCalcdata(e,&quot;low&quot;),p=l.makeCalcdata(e,&quot;close&quot;),d=Array.isArray(e.text),g=Array.isArray(e.hovertext),m=!0,v=null,y=!!e.xperiodalignment,x=[],b=0;b&lt;o.length;b++){var _=o[b],w=u[b],T=f[b],k=h[b],M=p[b];if(_!==s&amp;&amp;w!==s&amp;&amp;T!==s&amp;&amp;k!==s&amp;&amp;M!==s){M===w?null!==v&amp;&amp;M!==v&amp;&amp;(m=M&gt;v):m=M&gt;w,v=M;var A=c(w,T,k,M);A.pos=_,A.yc=(w+M)/2,A.i=b,A.dir=m?&quot;increasing&quot;:&quot;decreasing&quot;,A.x=A.pos,A.y=[k,T],y&amp;&amp;(A.orig_p=r[b]),d&amp;&amp;(A.tx=e.text[b]),g&amp;&amp;(A.htx=e.hovertext[b]),x.push(A)}else x.push({pos:_,empty:!0})}return e._extremes[l._id]=a.findExtremes(l,n.concat(h,f),{padded:!0}),x.length&amp;&amp;(x[0].t={labels:{open:i(t,&quot;open:&quot;)+&quot; &quot;,high:i(t,&quot;high:&quot;)+&quot; &quot;,low:i(t,&quot;low:&quot;)+&quot; &quot;,close:i(t,&quot;close:&quot;)+&quot; &quot;}}),x}e.exports={calc:function(t,e){var r=a.getFromId(t,e.xaxis),i=a.getFromId(t,e.yaxis),s=function(t,e,r){var i=r._minDiff;if(!i){var a,s=t._fullData,l=[];for(i=1/0,a=0;a&lt;s.length;a++){var c=s[a];if(&quot;ohlc&quot;===c.type&amp;&amp;!0===c.visible&amp;&amp;c.xaxis===e._id){l.push(c);var u=e.makeCalcdata(c,&quot;x&quot;);c._origX=u;var f=o(r,e,&quot;x&quot;,u);c._xcalc=f;var h=n.distinctVals(f).minDiff;h&amp;&amp;isFinite(h)&amp;&amp;(i=Math.min(i,h))}}for(i===1/0&amp;&amp;(i=1),a=0;a&lt;l.length;a++)l[a]._minDiff=i}return i*r.tickwidth}(t,r,e),u=e._minDiff;e._minDiff=null;var f=e._origX;e._origX=null;var h=e._xcalc;e._xcalc=null;var p=c(t,e,f,h,i,l);return e._extremes[r._id]=a.findExtremes(r,h,{vpad:u/2}),p.length?(n.extendFlat(p[0].t,{wHover:u/2,tickLen:s}),p):[{t:{empty:!0}}]},calcCommon:c}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828}],1135:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./ohlc_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r,n){r(n+&quot;.line.color&quot;),r(n+&quot;.line.width&quot;,e.line.width),r(n+&quot;.line.dash&quot;,e.line.dash)}e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}i(t,e,c,l)?(a(t,e,l,c,{x:!0}),c(&quot;line.width&quot;),c(&quot;line.dash&quot;),s(t,e,c,&quot;increasing&quot;),s(t,e,c,&quot;decreasing&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;tickwidth&quot;),l._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:1133,&quot;./ohlc_defaults&quot;:1138}],1136:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../lib&quot;).fillText,l=t(&quot;../../constants/delta.js&quot;),c={increasing:l.INCREASING.SYMBOL,decreasing:l.DECREASING.SYMBOL};function u(t,e,r,n){var i,s,l=t.cd,c=t.xa,u=l[0].trace,f=l[0].t,h=u.type,p=&quot;ohlc&quot;===h?&quot;l&quot;:&quot;min&quot;,d=&quot;ohlc&quot;===h?&quot;h&quot;:&quot;max&quot;,g=f.bPos||0,m=f.bdPos||f.tickLen,v=f.wHover,y=Math.min(1,m/Math.abs(c.r2c(c.range[1])-c.r2c(c.range[0])));function x(t){var r=function(t){return t.pos+g-e}(t);return a.inbox(r-v,r+v,i)}function b(t){var e=t[p],n=t[d];return e===n||a.inbox(e-r,n-r,i)}function _(t){return(x(t)+b(t))/2}i=t.maxHoverDistance-y,s=t.maxSpikeDistance-y;var w=a.getDistanceFunction(n,x,b,_);if(a.getClosest(l,w,t),!1===t.index)return null;var T=l[t.index];if(T.empty)return null;var k=u[T.dir],M=k.line.color;return o.opacity(M)&amp;&amp;k.line.width?t.color=M:t.color=k.fillcolor,t.x0=c.c2p(T.pos+g-m,!0),t.x1=c.c2p(T.pos+g+m,!0),t.xLabelVal=void 0!==T.orig_p?T.orig_p:T.pos,t.spikeDistance=_(T)*s/i,t.xSpike=c.c2p(T.pos,!0),t}function f(t,e,r,a){var o=t.cd,s=t.ya,l=o[0].trace,c=o[0].t,f=[],h=u(t,e,r,a);if(!h)return[];var p=o[h.index].hi||l.hoverinfo,d=p.split(&quot;+&quot;);if(!(&quot;all&quot;===p||-1!==d.indexOf(&quot;y&quot;)))return[];for(var g=[&quot;high&quot;,&quot;open&quot;,&quot;close&quot;,&quot;low&quot;],m={},v=0;v&lt;g.length;v++){var y,x=g[v],b=l[x][h.index],_=s.c2p(b,!0);b in m?(y=m[b]).yLabel+=&quot;&lt;br&gt;&quot;+c.labels[x]+n.hoverLabelText(s,b):((y=i.extendFlat({},h)).y0=y.y1=_,y.yLabelVal=b,y.yLabel=c.labels[x]+n.hoverLabelText(s,b),y.name=&quot;&quot;,f.push(y),m[b]=y)}return f}function h(t,e,r,i){var a=t.cd,o=t.ya,l=a[0].trace,f=a[0].t,h=u(t,e,r,i);if(!h)return[];var p=a[h.index],d=h.index=p.i,g=p.dir;function m(t){return f.labels[t]+n.hoverLabelText(o,l[t][d])}var v=p.hi||l.hoverinfo,y=v.split(&quot;+&quot;),x=&quot;all&quot;===v,b=x||-1!==y.indexOf(&quot;y&quot;),_=x||-1!==y.indexOf(&quot;text&quot;),w=b?[m(&quot;open&quot;),m(&quot;high&quot;),m(&quot;low&quot;),m(&quot;close&quot;)+&quot;  &quot;+c[g]]:[];return _&amp;&amp;s(p,l,w),h.extraText=w.join(&quot;&lt;br&gt;&quot;),h.y0=h.y1=o.c2p(p.yc,!0),[h]}e.exports={hoverPoints:function(t,e,r,n){return t.cd[0].trace.hoverlabel.split?f(t,e,r,n):h(t,e,r,n)},hoverSplit:f,hoverOnPoints:h}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../constants/delta.js&quot;:747,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1137:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;ohlc&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;showLegend&quot;],meta:{},attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;./select&quot;)}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1133,&quot;./calc&quot;:1134,&quot;./defaults&quot;:1135,&quot;./hover&quot;:1136,&quot;./plot&quot;:1139,&quot;./select&quot;:1140,&quot;./style&quot;:1141}],1138:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=r(&quot;x&quot;),s=r(&quot;open&quot;),l=r(&quot;high&quot;),c=r(&quot;low&quot;),u=r(&quot;close&quot;);if(r(&quot;hoverlabel.split&quot;),n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;],a),s&amp;&amp;l&amp;&amp;c&amp;&amp;u){var f=Math.min(s.length,l.length,c.length,u.length);return o&amp;&amp;(f=Math.min(f,i.minRowLength(o))),e._length=f,f}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1139:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=e.yaxis,s=e.xaxis,l=!!s.rangebreaks;i.makeTraceGroups(a,r,&quot;trace ohlc&quot;).each((function(t){var e=n.select(this),r=t[0],a=r.t;if(!0!==r.trace.visible||a.empty)e.remove();else{var c=a.tickLen,u=e.selectAll(&quot;path&quot;).data(i.identity);u.enter().append(&quot;path&quot;),u.exit().remove(),u.attr(&quot;d&quot;,(function(t){if(t.empty)return&quot;M0,0Z&quot;;var e=s.c2p(t.pos-c,!0),r=s.c2p(t.pos+c,!0),n=l?(e+r)/2:s.c2p(t.pos,!0);return&quot;M&quot;+e+&quot;,&quot;+o.c2p(t.o,!0)+&quot;H&quot;+n+&quot;M&quot;+n+&quot;,&quot;+o.c2p(t.h,!0)+&quot;V&quot;+o.c2p(t.l,!0)+&quot;M&quot;+r+&quot;,&quot;+o.c2p(t.c,!0)+&quot;H&quot;+n}))}}))}},{&quot;../../lib&quot;:778,d3:169}],1140:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].t.bPos||0;if(!1===e)for(r=0;r&lt;n.length;r++)n[r].selected=0;else for(r=0;r&lt;n.length;r++){var l=n[r];e.contains([i.c2p(l.pos+s),a.c2p(l.yc)],null,l.i,t)?(o.push({pointNumber:l.i,x:i.c2d(l.pos),y:a.c2d(l.yc)}),l.selected=1):l.selected=0}return o}},{}],1141:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;);e.exports=function(t,e,r){var o=r||n.select(t).selectAll(&quot;g.ohlclayer&quot;).selectAll(&quot;g.trace&quot;);o.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),o.each((function(t){var e=t[0].trace;n.select(this).selectAll(&quot;path&quot;).each((function(t){if(!t.empty){var r=e[t.dir].line;n.select(this).style(&quot;fill&quot;,&quot;none&quot;).call(a.stroke,r.color).call(i.dashLine,r.dash,r.width).style(&quot;opacity&quot;,e.selectedpoints&amp;&amp;!t.selected?.3:1)}}))}))}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,d3:169}],1142:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/domain&quot;).attributes,c=n({editType:&quot;calc&quot;},o(&quot;line&quot;,{editTypeOverride:&quot;calc&quot;}),{shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;hspline&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},hovertemplate:s({editType:&quot;plot&quot;,arrayOk:!1},{keys:[&quot;count&quot;,&quot;probability&quot;]})});e.exports={domain:l({name:&quot;parcats&quot;,trace:!0,editType:&quot;calc&quot;}),hoverinfo:n({},i.hoverinfo,{flags:[&quot;count&quot;,&quot;probability&quot;],editType:&quot;plot&quot;,arrayOk:!1}),hoveron:{valType:&quot;enumerated&quot;,values:[&quot;category&quot;,&quot;color&quot;,&quot;dimension&quot;],dflt:&quot;category&quot;,editType:&quot;plot&quot;},hovertemplate:s({editType:&quot;plot&quot;,arrayOk:!1},{keys:[&quot;count&quot;,&quot;probability&quot;,&quot;category&quot;,&quot;categorycount&quot;,&quot;colorcount&quot;,&quot;bandcolorcount&quot;]}),arrangement:{valType:&quot;enumerated&quot;,values:[&quot;perpendicular&quot;,&quot;freeform&quot;,&quot;fixed&quot;],dflt:&quot;perpendicular&quot;,editType:&quot;plot&quot;},bundlecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},sortpaths:{valType:&quot;enumerated&quot;,values:[&quot;forward&quot;,&quot;backward&quot;],dflt:&quot;forward&quot;,editType:&quot;plot&quot;},labelfont:a({editType:&quot;calc&quot;}),tickfont:a({editType:&quot;calc&quot;}),dimensions:{_isLinkedToArray:&quot;dimension&quot;,label:{valType:&quot;string&quot;,editType:&quot;calc&quot;},categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},displayindex:{valType:&quot;integer&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;,visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}},line:c,counts:{valType:&quot;number&quot;,min:0,dflt:1,arrayOk:!0,editType:&quot;calc&quot;},customdata:void 0,hoverlabel:void 0,ids:void 0,legendgroup:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906}],1143:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getModuleCalcData,i=t(&quot;./plot&quot;);r.name=&quot;parcats&quot;,r.plot=function(t,e,r,a){var o=n(t.calcdata,&quot;parcats&quot;);if(o.length){var s=o[0];i(t,s,r,a)}},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;parcats&quot;),a=e._has&amp;&amp;e._has(&quot;parcats&quot;);i&amp;&amp;!a&amp;&amp;n._paperdiv.selectAll(&quot;.parcats&quot;).remove()}},{&quot;../../plots/get_data&quot;:865,&quot;./plot&quot;:1148}],1144:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/gup&quot;).wrap,i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/calc&quot;),o=t(&quot;../../lib/filter_unique.js&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;fast-isnumeric&quot;);function u(t,e,r){t.valueInds.push(e),t.count+=r}function f(t,e,r){return{categoryInds:t,color:e,rawColor:r,valueInds:[],count:0}}function h(t,e,r){t.valueInds.push(e),t.count+=r}e.exports=function(t,e){var r=l.filterVisible(e.dimensions);if(0===r.length)return[];var p,d,g,m=r.map((function(t){var e;if(&quot;trace&quot;===t.categoryorder)e=null;else if(&quot;array&quot;===t.categoryorder)e=t.categoryarray;else{e=o(t.values);for(var r=!0,n=0;n&lt;e.length;n++)if(!c(e[n])){r=!1;break}e.sort(r?l.sorterAsc:void 0),&quot;category descending&quot;===t.categoryorder&amp;&amp;(e=e.reverse())}return function(t,e){e=null==e?[]:e.map((function(t){return t}));var r={},n={},i=[];e.forEach((function(t,e){r[t]=0,n[t]=e}));for(var a=0;a&lt;t.length;a++){var o,s=t[a];void 0===r[s]?(r[s]=1,o=e.push(s)-1,n[s]=o):(r[s]++,o=n[s]),i.push(o)}var l=e.map((function(t){return r[t]}));return{uniqueValues:e,uniqueCounts:l,inds:i}}(t.values,e)}));p=l.isArrayOrTypedArray(e.counts)?e.counts:[e.counts],function(t){var e;if(function(t){for(var e=new Array(t.length),r=0;r&lt;t.length;r++){if(t[r]&lt;0||t[r]&gt;=t.length)return!1;if(void 0!==e[t[r]])return!1;e[t[r]]=!0}return!0}(t.map((function(t){return t.displayindex}))))for(e=0;e&lt;t.length;e++)t[e]._displayindex=t[e].displayindex;else for(e=0;e&lt;t.length;e++)t[e]._displayindex=e}(r),r.forEach((function(t,e){!function(t,e){t._categoryarray=e.uniqueValues,null===t.ticktext||void 0===t.ticktext?t._ticktext=[]:t._ticktext=t.ticktext.slice();for(var r=t._ticktext.length;r&lt;e.uniqueValues.length;r++)t._ticktext.push(e.uniqueValues[r])}(t,m[e])}));var v,y=e.line;y?(i(e,&quot;line&quot;)&amp;&amp;a(t,e,{vals:e.line.color,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;}),v=s.tryColorscale(y)):v=l.identity;var x,b,_,w,T,k=r[0].values.length,M={},A=m.map((function(t){return t.inds}));for(g=0,x=0;x&lt;k;x++){var S=[];for(b=0;b&lt;A.length;b++)S.push(A[b][x]);d=p[x%p.length],g+=d;var E=(_=x,w=void 0,T=void 0,l.isArrayOrTypedArray(y.color)?T=w=y.color[_%y.color.length]:w=y.color,{color:v(w),rawColor:T}),C=S+&quot;-&quot;+E.rawColor;void 0===M[C]&amp;&amp;(M[C]=f(S,E.color,E.rawColor)),h(M[C],x,d)}var L,I=r.map((function(t,e){return function(t,e,r,n,i){return{dimensionInd:t,containerInd:e,displayInd:r,dimensionLabel:n,count:i,categories:[],dragX:null}}(e,t._index,t._displayindex,t.label,g)}));for(x=0;x&lt;k;x++)for(d=p[x%p.length],b=0;b&lt;I.length;b++){var P=I[b].containerInd,z=m[b].inds[x],O=I[b].categories;if(void 0===O[z]){var D=e.dimensions[P]._categoryarray[z],R=e.dimensions[P]._ticktext[z];O[z]={dimensionInd:b,categoryInd:L=z,categoryValue:D,displayInd:L,categoryLabel:R,valueInds:[],count:0,dragY:null}}u(O[z],x,d)}return n(function(t,e,r){var n=t.map((function(t){return t.categories.length})).reduce((function(t,e){return Math.max(t,e)}));return{dimensions:t,paths:e,trace:void 0,maxCats:n,count:r}}(I,M,g))}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/filter_unique.js&quot;:769,&quot;../../lib/gup&quot;:775,&quot;fast-isnumeric&quot;:241}],1145:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../parcoords/merge_length&quot;);function u(t,e){function r(r,i){return n.coerce(t,e,l.dimensions,r,i)}var i=r(&quot;values&quot;),a=r(&quot;visible&quot;);if(i&amp;&amp;i.length||(a=e.visible=!1),a){r(&quot;label&quot;),r(&quot;displayindex&quot;,e._index);var o,s=t.categoryarray,c=Array.isArray(s)&amp;&amp;s.length&gt;0;c&amp;&amp;(o=&quot;array&quot;);var u=r(&quot;categoryorder&quot;,o);&quot;array&quot;===u?(r(&quot;categoryarray&quot;),r(&quot;ticktext&quot;)):(delete t.categoryarray,delete t.ticktext),c||&quot;array&quot;!==u||(e.categoryorder=&quot;trace&quot;)}}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,l,r,i)}var p=s(t,e,{name:&quot;dimensions&quot;,handleItemDefaults:u}),d=function(t,e,r,o,s){s(&quot;line.shape&quot;),s(&quot;line.hovertemplate&quot;);var l=s(&quot;line.color&quot;,o.colorway[0]);if(i(t,&quot;line&quot;)&amp;&amp;n.isArrayOrTypedArray(l)){if(l.length)return s(&quot;line.colorscale&quot;),a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}),l.length;e.line.color=r}return 1/0}(t,e,r,f,h);o(e,f,h),Array.isArray(p)&amp;&amp;p.length||(e.visible=!1),c(e,p,&quot;values&quot;,d),h(&quot;hoveron&quot;),h(&quot;hovertemplate&quot;),h(&quot;arrangement&quot;),h(&quot;bundlecolors&quot;),h(&quot;sortpaths&quot;),h(&quot;counts&quot;);var g={family:f.font.family,size:Math.round(f.font.size),color:f.font.color};n.coerceFont(h,&quot;labelfont&quot;,g);var m={family:f.font.family,size:Math.round(f.font.size/1.2),color:f.font.color};n.coerceFont(h,&quot;tickfont&quot;,m)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/domain&quot;:855,&quot;../parcoords/merge_length&quot;:1158,&quot;./attributes&quot;:1142}],1146:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},moduleType:&quot;trace&quot;,name:&quot;parcats&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1142,&quot;./base_plot&quot;:1143,&quot;./calc&quot;:1144,&quot;./defaults&quot;:1145,&quot;./plot&quot;:1148}],1147:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plot_api/plot_api&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../../components/drawing&quot;),c=t(&quot;tinycolor2&quot;),u=t(&quot;../../lib/svg_text_utils&quot;);function f(t,e,r,i){var a=t.map(R.bind(0,e,r)),c=i.selectAll(&quot;g.parcatslayer&quot;).data([null]);c.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;parcatslayer&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;);var f=c.selectAll(&quot;g.trace.parcats&quot;).data(a,h),v=f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;trace parcats&quot;);f.attr(&quot;transform&quot;,(function(t){return s(t.x,t.y)})),v.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;paths&quot;);var y=f.select(&quot;g.paths&quot;).selectAll(&quot;path.path&quot;).data((function(t){return t.paths}),h);y.attr(&quot;fill&quot;,(function(t){return t.model.color}));var _=y.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;path&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.model.color})).attr(&quot;fill-opacity&quot;,0);b(_),y.attr(&quot;d&quot;,(function(t){return t.svgD})),_.empty()||y.sort(d),y.exit().remove(),y.on(&quot;mouseover&quot;,g).on(&quot;mouseout&quot;,m).on(&quot;click&quot;,x),v.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;dimensions&quot;);var k=f.select(&quot;g.dimensions&quot;).selectAll(&quot;g.dimension&quot;).data((function(t){return t.dimensions}),h);k.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;dimension&quot;),k.attr(&quot;transform&quot;,(function(t){return s(t.x,0)})),k.exit().remove();var M=k.selectAll(&quot;g.category&quot;).data((function(t){return t.categories}),h),A=M.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;category&quot;);M.attr(&quot;transform&quot;,(function(t){return s(0,t.y)})),A.append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;catrect&quot;).attr(&quot;pointer-events&quot;,&quot;none&quot;),M.select(&quot;rect.catrect&quot;).attr(&quot;fill&quot;,&quot;none&quot;).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})),w(A);var S=M.selectAll(&quot;rect.bandrect&quot;).data((function(t){return t.bands}),h);S.each((function(){o.raiseToTop(this)})),S.attr(&quot;fill&quot;,(function(t){return t.color}));var z=S.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bandrect&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;fill-opacity&quot;,0);S.attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})).attr(&quot;y&quot;,(function(t){return t.y})).attr(&quot;cursor&quot;,(function(t){return&quot;fixed&quot;===t.parcatsViewModel.arrangement?&quot;default&quot;:&quot;perpendicular&quot;===t.parcatsViewModel.arrangement?&quot;ns-resize&quot;:&quot;move&quot;})),T(z),S.exit().remove(),A.append(&quot;text&quot;).attr(&quot;class&quot;,&quot;catlabel&quot;).attr(&quot;pointer-events&quot;,&quot;none&quot;);var O=e._fullLayout.paper_bgcolor;M.select(&quot;text.catlabel&quot;).attr(&quot;text-anchor&quot;,(function(t){return p(t)?&quot;start&quot;:&quot;end&quot;})).attr(&quot;alignment-baseline&quot;,&quot;middle&quot;).style(&quot;text-shadow&quot;,O+&quot; -1px  1px 2px, &quot;+O+&quot; 1px  1px 2px, &quot;+O+&quot;  1px -1px 2px, &quot;+O+&quot; -1px -1px 2px&quot;).style(&quot;fill&quot;,&quot;rgb(0, 0, 0)&quot;).attr(&quot;x&quot;,(function(t){return p(t)?t.width+5:-5})).attr(&quot;y&quot;,(function(t){return t.height/2})).text((function(t){return t.model.categoryLabel})).each((function(t){l.font(n.select(this),t.parcatsViewModel.categorylabelfont),u.convertToTspans(n.select(this),e)})),A.append(&quot;text&quot;).attr(&quot;class&quot;,&quot;dimlabel&quot;),M.select(&quot;text.dimlabel&quot;).attr(&quot;text-anchor&quot;,&quot;middle&quot;).attr(&quot;alignment-baseline&quot;,&quot;baseline&quot;).attr(&quot;cursor&quot;,(function(t){return&quot;fixed&quot;===t.parcatsViewModel.arrangement?&quot;default&quot;:&quot;ew-resize&quot;})).attr(&quot;x&quot;,(function(t){return t.width/2})).attr(&quot;y&quot;,-5).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})).each((function(t){l.font(n.select(this),t.parcatsViewModel.labelfont)})),M.selectAll(&quot;rect.bandrect&quot;).on(&quot;mouseover&quot;,E).on(&quot;mouseout&quot;,C),M.exit().remove(),k.call(n.behavior.drag().origin((function(t){return{x:t.x,y:0}})).on(&quot;dragstart&quot;,L).on(&quot;drag&quot;,I).on(&quot;dragend&quot;,P)),f.each((function(t){t.traceSelection=n.select(this),t.pathSelection=n.select(this).selectAll(&quot;g.paths&quot;).selectAll(&quot;path.path&quot;),t.dimensionSelection=n.select(this).selectAll(&quot;g.dimensions&quot;).selectAll(&quot;g.dimension&quot;)})),f.exit().remove()}function h(t){return t.key}function p(t){var e=t.parcatsViewModel.dimensions.length,r=t.parcatsViewModel.dimensions[e-1].model.dimensionInd;return t.model.dimensionInd===r}function d(t,e){return t.model.rawColor&gt;e.model.rawColor?1:t.model.rawColor&lt;e.model.rawColor?-1:0}function g(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){o.raiseToTop(this),_(n.select(this));var e=v(t),r=y(t);if(t.parcatsViewModel.graphDiv.emit(&quot;plotly_hover&quot;,{points:e,event:n.event,constraints:r}),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;none&quot;)){var i,s,l,u=n.mouse(this)[0],f=t.parcatsViewModel.graphDiv,h=t.parcatsViewModel.trace,p=f._fullLayout,d=p._paperdiv.node().getBoundingClientRect(),g=t.parcatsViewModel.graphDiv.getBoundingClientRect();for(l=0;l&lt;t.leftXs.length-1;l++)if(t.leftXs[l]+t.dimWidths[l]-2&lt;=u&amp;&amp;u&lt;=t.leftXs[l+1]+2){var m=t.parcatsViewModel.dimensions[l],x=t.parcatsViewModel.dimensions[l+1];i=(m.x+m.width+x.x)/2,s=(t.topYs[l]+t.topYs[l+1]+t.height)/2;break}var b=t.parcatsViewModel.x+i,w=t.parcatsViewModel.y+s,T=c.mostReadable(t.model.color,[&quot;black&quot;,&quot;white&quot;]),k=t.model.count,M=k/t.parcatsViewModel.model.count,A={countLabel:k,probabilityLabel:M.toFixed(3)},S=[];-1!==t.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;S.push([&quot;Count:&quot;,A.countLabel].join(&quot; &quot;)),-1!==t.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;S.push([&quot;P:&quot;,A.probabilityLabel].join(&quot; &quot;));var E=S.join(&quot;&lt;br&gt;&quot;),C=n.mouse(f)[0];a.loneHover({trace:h,x:b-d.left+g.left,y:w-d.top+g.top,text:E,color:t.model.color,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontSize:10,fontColor:T,idealAlign:C&lt;b?&quot;right&quot;:&quot;left&quot;,hovertemplate:(h.line||{}).hovertemplate,hovertemplateLabels:A,eventData:[{data:h._input,fullData:h,count:k,probability:M}]},{container:p._hoverlayer.node(),outerContainer:p._paper.node(),gd:f})}}}function m(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;(b(n.select(this)),a.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()),t.parcatsViewModel.pathSelection.sort(d),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;))){var e=v(t),r=y(t);t.parcatsViewModel.graphDiv.emit(&quot;plotly_unhover&quot;,{points:e,event:n.event,constraints:r})}}function v(t){for(var e=[],r=z(t.parcatsViewModel),n=0;n&lt;t.model.valueInds.length;n++){var i=t.model.valueInds[n];e.push({curveNumber:r,pointNumber:i})}return e}function y(t){for(var e={},r=t.parcatsViewModel.model.dimensions,n=0;n&lt;r.length;n++){var i=r[n],a=i.categories[t.model.categoryInds[n]];e[i.containerInd]=a.categoryValue}return void 0!==t.model.rawColor&amp;&amp;(e.color=t.model.rawColor),e}function x(t){if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){var e=v(t),r=y(t);t.parcatsViewModel.graphDiv.emit(&quot;plotly_click&quot;,{points:e,event:n.event,constraints:r})}}function b(t){t.attr(&quot;fill&quot;,(function(t){return t.model.color})).attr(&quot;fill-opacity&quot;,.6).attr(&quot;stroke&quot;,&quot;lightgray&quot;).attr(&quot;stroke-width&quot;,.2).attr(&quot;stroke-opacity&quot;,1)}function _(t){t.attr(&quot;fill-opacity&quot;,.8).attr(&quot;stroke&quot;,(function(t){return c.mostReadable(t.model.color,[&quot;black&quot;,&quot;white&quot;])})).attr(&quot;stroke-width&quot;,.3)}function w(t){t.select(&quot;rect.catrect&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,1).attr(&quot;stroke-opacity&quot;,1)}function T(t){t.attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,.2).attr(&quot;stroke-opacity&quot;,1).attr(&quot;fill-opacity&quot;,1)}function k(t){var e=t.parcatsViewModel.pathSelection,r=t.categoryViewModel.model.dimensionInd,n=t.categoryViewModel.model.categoryInd;return e.filter((function(e){return e.model.categoryInds[r]===n&amp;&amp;e.model.color===t.color}))}function M(t,e,r){var i=n.select(t).datum(),a=i.categoryViewModel.model,o=i.parcatsViewModel.graphDiv,s=n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;),l=[];s.each((function(t){k(t).each((function(t){Array.prototype.push.apply(l,v(t))}))}));var c={};c[a.dimensionInd]=a.categoryValue,o.emit(e,{points:l,event:r,constraints:c})}function A(t,e,r){var i=n.select(t).datum(),a=i.categoryViewModel.model,o=i.parcatsViewModel.graphDiv,s=k(i),l=[];s.each((function(t){Array.prototype.push.apply(l,v(t))}));var c={};c[a.dimensionInd]=a.categoryValue,void 0!==i.rawColor&amp;&amp;(c.color=i.rawColor),o.emit(e,{points:l,event:r,constraints:c})}function S(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=n.select(r.parentNode).select(&quot;rect.catrect&quot;),c=l.node().getBoundingClientRect(),u=l.datum(),f=u.parcatsViewModel,h=f.model.dimensions[u.model.dimensionInd],p=f.trace,d=c.top+c.height/2;f.dimensions.length&gt;1&amp;&amp;h.displayInd===f.dimensions.length-1?(i=c.left,a=&quot;left&quot;):(i=c.left+c.width,a=&quot;right&quot;);var g=u.model.count,m=u.model.categoryLabel,v=g/u.parcatsViewModel.model.count,y={countLabel:g,categoryLabel:m,probabilityLabel:v.toFixed(3)},x=[];-1!==u.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;x.push([&quot;Count:&quot;,y.countLabel].join(&quot; &quot;)),-1!==u.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;x.push([&quot;P(&quot;+y.categoryLabel+&quot;):&quot;,y.probabilityLabel].join(&quot; &quot;));var b=x.join(&quot;&lt;br&gt;&quot;);return{trace:p,x:o*(i-e.left),y:s*(d-e.top),text:b,color:&quot;lightgray&quot;,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontSize:12,fontColor:&quot;black&quot;,idealAlign:a,hovertemplate:p.hovertemplate,hovertemplateLabels:y,eventData:[{data:p._input,fullData:p,count:g,category:m,probability:v}]}}function E(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){if(n.mouse(this)[1]&lt;-1)return;var e,r=t.parcatsViewModel.graphDiv,i=r._fullLayout,s=i._paperdiv.node().getBoundingClientRect(),l=t.parcatsViewModel.hoveron;if(&quot;color&quot;===l?(!function(t){var e=n.select(t).datum(),r=k(e);_(r),r.each((function(){o.raiseToTop(this)})),n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;).filter((function(t){return t.color===e.color})).each((function(){o.raiseToTop(this),n.select(this).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,1.5)}))}(this),A(this,&quot;plotly_hover&quot;,n.event)):(!function(t){n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;).each((function(t){var e=k(t);_(e),e.each((function(){o.raiseToTop(this)}))})),n.select(t.parentNode).select(&quot;rect.catrect&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,2.5)}(this),M(this,&quot;plotly_hover&quot;,n.event)),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;none&quot;))&quot;category&quot;===l?e=S(r,s,this):&quot;color&quot;===l?e=function(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=r.getBoundingClientRect(),u=n.select(r).datum(),f=u.categoryViewModel,h=f.parcatsViewModel,p=h.model.dimensions[f.model.dimensionInd],d=h.trace,g=l.y+l.height/2;h.dimensions.length&gt;1&amp;&amp;p.displayInd===h.dimensions.length-1?(i=l.left,a=&quot;left&quot;):(i=l.left+l.width,a=&quot;right&quot;);var m=f.model.categoryLabel,v=u.parcatsViewModel.model.count,y=0;u.categoryViewModel.bands.forEach((function(t){t.color===u.color&amp;&amp;(y+=t.count)}));var x=f.model.count,b=0;h.pathSelection.each((function(t){t.model.color===u.color&amp;&amp;(b+=t.model.count)}));var _=y/v,w=y/b,T=y/x,k={countLabel:v,categoryLabel:m,probabilityLabel:_.toFixed(3)},M=[];-1!==f.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;M.push([&quot;Count:&quot;,k.countLabel].join(&quot; &quot;)),-1!==f.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;(M.push(&quot;P(color \u2229 &quot;+m+&quot;): &quot;+k.probabilityLabel),M.push(&quot;P(&quot;+m+&quot; | color): &quot;+w.toFixed(3)),M.push(&quot;P(color | &quot;+m+&quot;): &quot;+T.toFixed(3)));var A=M.join(&quot;&lt;br&gt;&quot;),S=c.mostReadable(u.color,[&quot;black&quot;,&quot;white&quot;]);return{trace:d,x:o*(i-e.left),y:s*(g-e.top),text:A,color:u.color,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontColor:S,fontSize:10,idealAlign:a,hovertemplate:d.hovertemplate,hovertemplateLabels:k,eventData:[{data:d._input,fullData:d,category:m,count:v,probability:_,categorycount:x,colorcount:b,bandcolorcount:y}]}}(r,s,this):&quot;dimension&quot;===l&amp;&amp;(e=function(t,e,r){var i=[];return n.select(r.parentNode.parentNode).selectAll(&quot;g.category&quot;).select(&quot;rect.catrect&quot;).each((function(){i.push(S(t,e,this))})),i}(r,s,this)),e&amp;&amp;a.loneHover(e,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r})}}function C(t){var e=t.parcatsViewModel;if(!e.dragDimension&amp;&amp;(b(e.pathSelection),w(e.dimensionSelection.selectAll(&quot;g.category&quot;)),T(e.dimensionSelection.selectAll(&quot;g.category&quot;).selectAll(&quot;rect.bandrect&quot;)),a.loneUnhover(e.graphDiv._fullLayout._hoverlayer.node()),e.pathSelection.sort(d),-1===e.hoverinfoItems.indexOf(&quot;skip&quot;))){&quot;color&quot;===t.parcatsViewModel.hoveron?A(this,&quot;plotly_unhover&quot;,n.event):M(this,&quot;plotly_unhover&quot;,n.event)}}function L(t){&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;(t.dragDimensionDisplayInd=t.model.displayInd,t.initialDragDimensionDisplayInds=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),t.dragHasMoved=!1,t.dragCategoryDisplayInd=null,n.select(this).selectAll(&quot;g.category&quot;).select(&quot;rect.catrect&quot;).each((function(e){var r=n.mouse(this)[0],i=n.mouse(this)[1];-2&lt;=r&amp;&amp;r&lt;=e.width+2&amp;&amp;-2&lt;=i&amp;&amp;i&lt;=e.height+2&amp;&amp;(t.dragCategoryDisplayInd=e.model.displayInd,t.initialDragCategoryDisplayInds=t.model.categories.map((function(t){return t.displayInd})),e.model.dragY=e.y,o.raiseToTop(this.parentNode),n.select(this.parentNode).selectAll(&quot;rect.bandrect&quot;).each((function(e){e.y&lt;i&amp;&amp;i&lt;=e.y+e.height&amp;&amp;(t.potentialClickBand=this)})))})),t.parcatsViewModel.dragDimension=t,a.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()))}function I(t){if(&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;(t.dragHasMoved=!0,null!==t.dragDimensionDisplayInd)){var e=t.dragDimensionDisplayInd,r=e-1,i=e+1,a=t.parcatsViewModel.dimensions[e];if(null!==t.dragCategoryDisplayInd){var o=a.categories[t.dragCategoryDisplayInd];o.model.dragY+=n.event.dy;var s=o.model.dragY,l=o.model.displayInd,c=a.categories,u=c[l-1],f=c[l+1];void 0!==u&amp;&amp;s&lt;u.y+u.height/2&amp;&amp;(o.model.displayInd=u.model.displayInd,u.model.displayInd=l),void 0!==f&amp;&amp;s+o.height&gt;f.y+f.height/2&amp;&amp;(o.model.displayInd=f.model.displayInd,f.model.displayInd=l),t.dragCategoryDisplayInd=o.model.displayInd}if(null===t.dragCategoryDisplayInd||&quot;freeform&quot;===t.parcatsViewModel.arrangement){a.model.dragX=n.event.x;var h=t.parcatsViewModel.dimensions[r],p=t.parcatsViewModel.dimensions[i];void 0!==h&amp;&amp;a.model.dragX&lt;h.x+h.width&amp;&amp;(a.model.displayInd=h.model.displayInd,h.model.displayInd=e),void 0!==p&amp;&amp;a.model.dragX+a.width&gt;p.x&amp;&amp;(a.model.displayInd=p.model.displayInd,p.model.displayInd=t.dragDimensionDisplayInd),t.dragDimensionDisplayInd=a.model.displayInd}N(t.parcatsViewModel),B(t.parcatsViewModel),D(t.parcatsViewModel),O(t.parcatsViewModel)}}function P(t){if(&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;null!==t.dragDimensionDisplayInd){n.select(this).selectAll(&quot;text&quot;).attr(&quot;font-weight&quot;,&quot;normal&quot;);var e={},r=z(t.parcatsViewModel),a=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),o=t.initialDragDimensionDisplayInds.some((function(t,e){return t!==a[e]}));o&amp;&amp;a.forEach((function(r,n){var i=t.parcatsViewModel.model.dimensions[n].containerInd;e[&quot;dimensions[&quot;+i+&quot;].displayindex&quot;]=r}));var s=!1;if(null!==t.dragCategoryDisplayInd){var l=t.model.categories.map((function(t){return t.displayInd}));if(s=t.initialDragCategoryDisplayInds.some((function(t,e){return t!==l[e]}))){var c=t.model.categories.slice().sort((function(t,e){return t.displayInd-e.displayInd})),u=c.map((function(t){return t.categoryValue})),f=c.map((function(t){return t.categoryLabel}));e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].categoryarray&quot;]=[u],e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].ticktext&quot;]=[f],e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].categoryorder&quot;]=&quot;array&quot;}}if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)&amp;&amp;!t.dragHasMoved&amp;&amp;t.potentialClickBand&amp;&amp;(&quot;color&quot;===t.parcatsViewModel.hoveron?A(t.potentialClickBand,&quot;plotly_click&quot;,n.event.sourceEvent):M(t.potentialClickBand,&quot;plotly_click&quot;,n.event.sourceEvent)),t.model.dragX=null,null!==t.dragCategoryDisplayInd)t.parcatsViewModel.dimensions[t.dragDimensionDisplayInd].categories[t.dragCategoryDisplayInd].model.dragY=null,t.dragCategoryDisplayInd=null;t.dragDimensionDisplayInd=null,t.parcatsViewModel.dragDimension=null,t.dragHasMoved=null,t.potentialClickBand=null,N(t.parcatsViewModel),B(t.parcatsViewModel),n.transition().duration(300).ease(&quot;cubic-in-out&quot;).each((function(){D(t.parcatsViewModel,!0),O(t.parcatsViewModel,!0)})).each(&quot;end&quot;,(function(){(o||s)&amp;&amp;i.restyle(t.parcatsViewModel.graphDiv,e,[r])}))}}function z(t){for(var e,r=t.graphDiv._fullData,n=0;n&lt;r.length;n++)if(t.key===r[n].uid){e=n;break}return e}function O(t,e){var r;void 0===e&amp;&amp;(e=!1),t.pathSelection.data((function(t){return t.paths}),h),(r=t.pathSelection,e?r.transition():r).attr(&quot;d&quot;,(function(t){return t.svgD}))}function D(t,e){function r(t){return e?t.transition():t}void 0===e&amp;&amp;(e=!1),t.dimensionSelection.data((function(t){return t.dimensions}),h);var i=t.dimensionSelection.selectAll(&quot;g.category&quot;).data((function(t){return t.categories}),h);r(t.dimensionSelection).attr(&quot;transform&quot;,(function(t){return s(t.x,0)})),r(i).attr(&quot;transform&quot;,(function(t){return s(0,t.y)})),i.select(&quot;.dimlabel&quot;).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})),i.select(&quot;.catlabel&quot;).attr(&quot;text-anchor&quot;,(function(t){return p(t)?&quot;start&quot;:&quot;end&quot;})).attr(&quot;x&quot;,(function(t){return p(t)?t.width+5:-5})).each((function(t){var e,r;p(t)?(e=t.width+5,r=&quot;start&quot;):(e=-5,r=&quot;end&quot;),n.select(this).selectAll(&quot;tspan&quot;).attr(&quot;x&quot;,e).attr(&quot;text-anchor&quot;,r)}));var a=i.selectAll(&quot;rect.bandrect&quot;).data((function(t){return t.bands}),h),l=a.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bandrect&quot;).attr(&quot;cursor&quot;,&quot;move&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;fill-opacity&quot;,0);a.attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})).attr(&quot;y&quot;,(function(t){return t.y})),T(l),a.each((function(){o.raiseToTop(this)})),a.exit().remove()}function R(t,e,r){var n,i=r[0],a=e.margin||{l:80,r:80,t:100,b:80},o=i.trace,s=o.domain,l=e.width,c=e.height,u=Math.floor(l*(s.x[1]-s.x[0])),f=Math.floor(c*(s.y[1]-s.y[0])),h=s.x[0]*l+a.l,p=e.height-s.y[1]*e.height+a.t,d=o.line.shape;n=&quot;all&quot;===o.hoverinfo?[&quot;count&quot;,&quot;probability&quot;]:(o.hoverinfo||&quot;&quot;).split(&quot;+&quot;);var g={trace:o,key:o.uid,model:i,x:h,y:p,width:u,height:f,hoveron:o.hoveron,hoverinfoItems:n,arrangement:o.arrangement,bundlecolors:o.bundlecolors,sortpaths:o.sortpaths,labelfont:o.labelfont,categorylabelfont:o.tickfont,pathShape:d,dragDimension:null,margin:a,paths:[],dimensions:[],graphDiv:t,traceSelection:null,pathSelection:null,dimensionSelection:null};return i.dimensions&amp;&amp;(N(g),B(g)),g}function F(t,e,r,i,a){var o,s,l=[],c=[];for(s=0;s&lt;r.length-1;s++)o=n.interpolateNumber(r[s]+t[s],t[s+1]),l.push(o(a)),c.push(o(1-a));var u=&quot;M &quot;+t[0]+&quot;,&quot;+e[0];for(u+=&quot;l&quot;+r[0]+&quot;,0 &quot;,s=1;s&lt;r.length;s++)u+=&quot;C&quot;+l[s-1]+&quot;,&quot;+e[s-1]+&quot; &quot;+c[s-1]+&quot;,&quot;+e[s]+&quot; &quot;+t[s]+&quot;,&quot;+e[s],u+=&quot;l&quot;+r[s]+&quot;,0 &quot;;for(u+=&quot;l0,&quot;+i+&quot; &quot;,u+=&quot;l -&quot;+r[r.length-1]+&quot;,0 &quot;,s=r.length-2;s&gt;=0;s--)u+=&quot;C&quot;+c[s]+&quot;,&quot;+(e[s+1]+i)+&quot; &quot;+l[s]+&quot;,&quot;+(e[s]+i)+&quot; &quot;+(t[s]+r[s])+&quot;,&quot;+(e[s]+i),u+=&quot;l-&quot;+r[s]+&quot;,0 &quot;;return u+=&quot;Z&quot;}function B(t){var e=t.dimensions,r=t.model,n=e.map((function(t){return t.categories.map((function(t){return t.y}))})),i=t.model.dimensions.map((function(t){return t.categories.map((function(t){return t.displayInd}))})),a=t.model.dimensions.map((function(t){return t.displayInd})),o=t.dimensions.map((function(t){return t.model.dimensionInd})),s=e.map((function(t){return t.x})),l=e.map((function(t){return t.width})),c=[];for(var u in r.paths)r.paths.hasOwnProperty(u)&amp;&amp;c.push(r.paths[u]);function f(t){var e=t.categoryInds.map((function(t,e){return i[e][t]}));return o.map((function(t){return e[t]}))}c.sort((function(e,r){var n=f(e),i=f(r);return&quot;backward&quot;===t.sortpaths&amp;&amp;(n.reverse(),i.reverse()),n.push(e.valueInds[0]),i.push(r.valueInds[0]),t.bundlecolors&amp;&amp;(n.unshift(e.rawColor),i.unshift(r.rawColor)),n&lt;i?-1:n&gt;i?1:0}));for(var h=new Array(c.length),p=e[0].model.count,d=e[0].categories.map((function(t){return t.height})).reduce((function(t,e){return t+e})),g=0;g&lt;c.length;g++){var m,v=c[g];m=p&gt;0?d*(v.count/p):0;for(var y,x=new Array(n.length),b=0;b&lt;v.categoryInds.length;b++){var _=v.categoryInds[b],w=i[b][_],T=a[b];x[T]=n[T][w],n[T][w]+=m;var k=t.dimensions[T].categories[w],M=k.bands.length,A=k.bands[M-1];if(void 0===A||v.rawColor!==A.rawColor){var S=void 0===A?0:A.y+A.height;k.bands.push({key:S,color:v.color,rawColor:v.rawColor,height:m,width:k.width,count:v.count,y:S,categoryViewModel:k,parcatsViewModel:t})}else{var E=k.bands[M-1];E.height+=m,E.count+=v.count}}y=&quot;hspline&quot;===t.pathShape?F(s,x,l,m,.5):F(s,x,l,m,0),h[g]={key:v.valueInds[0],model:v,height:m,leftXs:s,topYs:x,dimWidths:l,svgD:y,parcatsViewModel:t}}t.paths=h}function N(t){var e=t.model.dimensions.map((function(t){return{displayInd:t.displayInd,dimensionInd:t.dimensionInd}}));e.sort((function(t,e){return t.displayInd-e.displayInd}));var r=[];for(var n in e){var i=e[n].dimensionInd,a=t.model.dimensions[i];r.push(j(t,a))}t.dimensions=r}function j(t,e){var r,n=t.model.dimensions.length,i=e.displayInd;r=40+(n&gt;1?(t.width-80-16)/(n-1):0)*i;var a,o,s,l,c,u=[],f=t.model.maxCats,h=e.categories.length,p=e.count,d=t.height-8*(f-1),g=8*(f-h)/2,m=e.categories.map((function(t){return{displayInd:t.displayInd,categoryInd:t.categoryInd}}));for(m.sort((function(t,e){return t.displayInd-e.displayInd})),c=0;c&lt;h;c++)l=m[c].categoryInd,o=e.categories[l],a=p&gt;0?o.count/p*d:0,s={key:o.valueInds[0],model:o,width:16,height:a,y:null!==o.dragY?o.dragY:g,bands:[],parcatsViewModel:t},g=g+a+8,u.push(s);return{key:e.dimensionInd,x:null!==e.dragX?e.dragX:r,y:0,width:16,model:e,categories:u,parcatsViewModel:t,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}e.exports=function(t,e,r,n){f(r,t,n,e)}},{&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_api&quot;:814,d3:169,tinycolor2:576}],1148:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./parcats&quot;);e.exports=function(t,e,r,i){var a=t._fullLayout,o=a._paper,s=a._size;n(t,o,e,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},r,i)}},{&quot;./parcats&quot;:1147}],1149:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/layout_attributes&quot;),a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/plot_template&quot;).templatedArray;e.exports={domain:o({name:&quot;parcoords&quot;,trace:!0,editType:&quot;plot&quot;}),labelangle:{valType:&quot;angle&quot;,dflt:0,editType:&quot;plot&quot;},labelside:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;plot&quot;},labelfont:a({editType:&quot;plot&quot;}),tickfont:a({editType:&quot;plot&quot;}),rangefont:a({editType:&quot;plot&quot;}),dimensions:l(&quot;dimension&quot;,{label:{valType:&quot;string&quot;,editType:&quot;plot&quot;},tickvals:s({},i.tickvals,{editType:&quot;plot&quot;}),ticktext:s({},i.ticktext,{editType:&quot;plot&quot;}),tickformat:s({},i.tickformat,{editType:&quot;plot&quot;}),visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},constraintrange:{valType:&quot;info_array&quot;,freeLength:!0,dimensions:&quot;1-2&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},multiselect:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;}),line:s({editType:&quot;calc&quot;},n(&quot;line&quot;,{colorscaleDflt:&quot;Viridis&quot;,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}))}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856}],1150:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;d3&quot;),a=t(&quot;../../lib/gup&quot;).keyFun,o=t(&quot;../../lib/gup&quot;).repeat,s=t(&quot;../../lib&quot;).sorterAsc,l=t(&quot;../../lib&quot;).strTranslate,c=n.bar.snapRatio;function u(t,e){return t*(1-c)+e*c}var f=n.bar.snapClose;function h(t,e){return t*(1-f)+e*f}function p(t,e,r,n){if(function(t,e){for(var r=0;r&lt;e.length;r++)if(t&gt;=e[r][0]&amp;&amp;t&lt;=e[r][1])return!0;return!1}(r,n))return r;var i=t?-1:1,a=0,o=e.length-1;if(i&lt;0){var s=a;a=o,o=s}for(var l=e[a],c=l,f=a;i*f&lt;i*o;f+=i){var p=f+i,d=e[p];if(i*r&lt;i*h(l,d))return u(l,c);if(i*r&lt;i*d||p===o)return u(d,l);c=l,l=d}}function d(t){t.attr(&quot;x&quot;,-n.bar.captureWidth/2).attr(&quot;width&quot;,n.bar.captureWidth)}function g(t){t.attr(&quot;visibility&quot;,&quot;visible&quot;).style(&quot;visibility&quot;,&quot;visible&quot;).attr(&quot;fill&quot;,&quot;yellow&quot;).attr(&quot;opacity&quot;,0)}function m(t){if(!t.brush.filterSpecified)return&quot;0,&quot;+t.height;for(var e,r,n,i=v(t.brush.filter.getConsolidated(),t.height),a=[0],o=i.length?i[0][0]:null,s=0;s&lt;i.length;s++)r=(e=i[s])[1]-e[0],a.push(o),a.push(r),(n=s+1)&lt;i.length&amp;&amp;(o=i[n][0]-e[1]);return a.push(t.height),a}function v(t,e){return t.map((function(t){return t.map((function(t){return Math.max(0,t*e)})).sort(s)}))}function y(){i.select(document.body).style(&quot;cursor&quot;,null)}function x(t){t.attr(&quot;stroke-dasharray&quot;,m)}function b(t,e){var r=i.select(t).selectAll(&quot;.highlight, .highlight-shadow&quot;);x(e?r.transition().duration(n.bar.snapDuration).each(&quot;end&quot;,e):r)}function _(t,e){var r,i=t.brush,a=NaN,o={};if(i.filterSpecified){var s=t.height,l=i.filter.getConsolidated(),c=v(l,s),u=NaN,f=NaN,h=NaN;for(r=0;r&lt;=c.length;r++){var p=c[r];if(p&amp;&amp;p[0]&lt;=e&amp;&amp;e&lt;=p[1]){u=r;break}if(f=r?r-1:NaN,p&amp;&amp;p[0]&gt;e){h=r;break}}if(a=u,isNaN(a)&amp;&amp;(a=isNaN(f)||isNaN(h)?isNaN(f)?h:f:e-c[f][1]&lt;c[h][0]-e?f:h),!isNaN(a)){var d=c[a],g=function(t,e){var r=n.bar.handleHeight;if(!(e&gt;t[1]+r||e&lt;t[0]-r))return e&gt;=.9*t[1]+.1*t[0]?&quot;n&quot;:e&lt;=.9*t[0]+.1*t[1]?&quot;s&quot;:&quot;ns&quot;}(d,e);g&amp;&amp;(o.interval=l[a],o.intervalPix=d,o.region=g)}}if(t.ordinal&amp;&amp;!o.region){var m=t.unitTickvals,y=t.unitToPaddedPx.invert(e);for(r=0;r&lt;m.length;r++){var x=[.25*m[Math.max(r-1,0)]+.75*m[r],.25*m[Math.min(r+1,m.length-1)]+.75*m[r]];if(y&gt;=x[0]&amp;&amp;y&lt;=x[1]){o.clickableOrdinalRange=x;break}}}return o}function w(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[r-a.grabPoint,r+a.barLength-a.grabPoint].map(e.unitToPaddedPx.invert):a.newExtent=[a.startExtent,e.unitToPaddedPx.invert(r)].sort(s),e.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(e),b(t.parentNode)}function T(t,e){var r=_(e,e.height-i.mouse(t)[1]-2*n.verticalPadding),a=&quot;crosshair&quot;;r.clickableOrdinalRange?a=&quot;pointer&quot;:r.region&amp;&amp;(a=r.region+&quot;-resize&quot;),i.select(document.body).style(&quot;cursor&quot;,a)}function k(t){t.on(&quot;mousemove&quot;,(function(t){i.event.preventDefault(),t.parent.inBrushDrag||T(this,t)})).on(&quot;mouseleave&quot;,(function(t){t.parent.inBrushDrag||y()})).call(i.behavior.drag().on(&quot;dragstart&quot;,(function(t){!function(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.unitToPaddedPx.invert(r),o=e.brush,s=_(e,r),l=s.interval,c=o.svgBrush;if(c.wasDragged=!1,c.grabbingBar=&quot;ns&quot;===s.region,c.grabbingBar){var u=l.map(e.unitToPaddedPx);c.grabPoint=r-u[0]-n.verticalPadding,c.barLength=u[1]-u[0]}c.clickableOrdinalRange=s.clickableOrdinalRange,c.stayingIntervals=e.multiselect&amp;&amp;o.filterSpecified?o.filter.getConsolidated():[],l&amp;&amp;(c.stayingIntervals=c.stayingIntervals.filter((function(t){return t[0]!==l[0]&amp;&amp;t[1]!==l[1]}))),c.startExtent=s.region?l[&quot;s&quot;===s.region?1:0]:a,e.parent.inBrushDrag=!0,c.brushStartCallback()}(this,t)})).on(&quot;drag&quot;,(function(t){w(this,t)})).on(&quot;dragend&quot;,(function(t){!function(t,e){var r=e.brush,n=r.filter,a=r.svgBrush;a._dragging||(T(t,e),w(t,e),e.brush.svgBrush.wasDragged=!1),a._dragging=!1,i.event.sourceEvent.stopPropagation();var o=a.grabbingBar;if(a.grabbingBar=!1,a.grabLocation=void 0,e.parent.inBrushDrag=!1,y(),!a.wasDragged)return a.wasDragged=void 0,a.clickableOrdinalRange?r.filterSpecified&amp;&amp;e.multiselect?a.extent.push(a.clickableOrdinalRange):(a.extent=[a.clickableOrdinalRange],r.filterSpecified=!0):o?(a.extent=a.stayingIntervals,0===a.extent.length&amp;&amp;A(r)):A(r),a.brushCallback(e),b(t.parentNode),void a.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);var s=function(){n.set(n.getConsolidated())};if(e.ordinal){var l=e.unitTickvals;l[l.length-1]&lt;l[0]&amp;&amp;l.reverse(),a.newExtent=[p(0,l,a.newExtent[0],a.stayingIntervals),p(1,l,a.newExtent[1],a.stayingIntervals)];var c=a.newExtent[1]&gt;a.newExtent[0];a.extent=a.stayingIntervals.concat(c?[a.newExtent]:[]),a.extent.length||A(r),a.brushCallback(e),c?b(t.parentNode,s):(s(),b(t.parentNode))}else s();a.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}(this,t)})))}function M(t,e){return t[0]-e[0]}function A(t){t.filterSpecified=!1,t.svgBrush.extent=[[-1/0,1/0]]}function S(t){for(var e,r=t.slice(),n=[],i=r.shift();i;){for(e=i.slice();(i=r.shift())&amp;&amp;i[0]&lt;=e[1];)e[1]=Math.max(e[1],i[1]);n.push(e)}return 1===n.length&amp;&amp;n[0][0]&gt;n[0][1]&amp;&amp;(n=[]),n}e.exports={makeBrush:function(t,e,r,n,i,a){var o,l=function(){var t,e,r=[];return{set:function(n){1===(r=n.map((function(t){return t.slice().sort(s)})).sort(M)).length&amp;&amp;r[0][0]===-1/0&amp;&amp;r[0][1]===1/0&amp;&amp;(r=[[0,-1]]),t=S(r),e=r.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0])},get:function(){return r.slice()},getConsolidated:function(){return t},getBounds:function(){return e}}}();return l.set(r),{filter:l,filterSpecified:e,svgBrush:{extent:[],brushStartCallback:n,brushCallback:(o=i,function(t){var e=t.brush,r=function(t){return t.svgBrush.extent.map((function(t){return t.slice()}))}(e).slice();e.filter.set(r),o()}),brushEndCallback:a}}},ensureAxisBrush:function(t){var e=t.selectAll(&quot;.&quot;+n.cn.axisBrush).data(o,a);e.enter().append(&quot;g&quot;).classed(n.cn.axisBrush,!0),function(t){var e=t.selectAll(&quot;.background&quot;).data(o);e.enter().append(&quot;rect&quot;).classed(&quot;background&quot;,!0).call(d).call(g).style(&quot;pointer-events&quot;,&quot;auto&quot;).attr(&quot;transform&quot;,l(0,n.verticalPadding)),e.call(k).attr(&quot;height&quot;,(function(t){return t.height-n.verticalPadding}));var r=t.selectAll(&quot;.highlight-shadow&quot;).data(o);r.enter().append(&quot;line&quot;).classed(&quot;highlight-shadow&quot;,!0).attr(&quot;x&quot;,-n.bar.width/2).attr(&quot;stroke-width&quot;,n.bar.width+n.bar.strokeWidth).attr(&quot;stroke&quot;,n.bar.strokeColor).attr(&quot;opacity&quot;,n.bar.strokeOpacity).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;),r.attr(&quot;y1&quot;,(function(t){return t.height})).call(x);var i=t.selectAll(&quot;.highlight&quot;).data(o);i.enter().append(&quot;line&quot;).classed(&quot;highlight&quot;,!0).attr(&quot;x&quot;,-n.bar.width/2).attr(&quot;stroke-width&quot;,n.bar.width-n.bar.strokeWidth).attr(&quot;stroke&quot;,n.bar.fillColor).attr(&quot;opacity&quot;,n.bar.fillOpacity).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;),i.attr(&quot;y1&quot;,(function(t){return t.height})).call(x)}(e)},cleanRanges:function(t,e){if(Array.isArray(t[0])?(t=t.map((function(t){return t.sort(s)})),t=e.multiselect?S(t.sort(M)):[t[0]]):t=[t.sort(s)],e.tickvals){var r=e.tickvals.slice().sort(s);if(!(t=t.map((function(t){var e=[p(0,r,t[0],[]),p(1,r,t[1],[])];if(e[1]&gt;e[0])return e})).filter((function(t){return t}))).length)return}return t.length&gt;1?t:t[0]}}},{&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;./constants&quot;:1153,d3:169}],1151:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/get_data&quot;).getModuleCalcData,a=t(&quot;./plot&quot;),o=t(&quot;../../constants/xmlns_namespaces&quot;);r.name=&quot;parcoords&quot;,r.plot=function(t){var e=i(t.calcdata,&quot;parcoords&quot;)[0];e.length&amp;&amp;a(t,e)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;parcoords&quot;),a=e._has&amp;&amp;e._has(&quot;parcoords&quot;);i&amp;&amp;!a&amp;&amp;(n._paperdiv.selectAll(&quot;.parcoords&quot;).remove(),n._glimages.selectAll(&quot;*&quot;).remove())},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(&quot;.svg-container&quot;);r.filter((function(t,e){return e===r.size()-1})).selectAll(&quot;.gl-canvas-context, .gl-canvas-focus&quot;).each((function(){var t=this.toDataURL(&quot;image/png&quot;);e.append(&quot;svg:image&quot;).attr({xmlns:o.svg,&quot;xlink:href&quot;:t,preserveAspectRatio:&quot;none&quot;,x:0,y:0,width:this.width,height:this.height})})),window.setTimeout((function(){n.selectAll(&quot;#filterBarPattern&quot;).attr(&quot;id&quot;,&quot;filterBarPattern&quot;)}),60)}},{&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../plots/get_data&quot;:865,&quot;./plot&quot;:1160,d3:169}],1152:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray,i=t(&quot;../../components/colorscale&quot;),a=t(&quot;../../lib/gup&quot;).wrap;e.exports=function(t,e){var r,o;return i.hasColorscale(e,&quot;line&quot;)&amp;&amp;n(e.line.color)?(r=e.line.color,o=i.extractOpts(e.line).colorscale,i.calc(t,e,{vals:r,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;})):(r=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=.5;return e}(e._length),o=[[0,e.line.color],[1,e.line.color]]),a({lineColor:r,cscale:o})}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775}],1153:[function(t,e,r){&quot;use strict&quot;;e.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:[&quot;contextLineLayer&quot;,&quot;focusLineLayer&quot;,&quot;pickLineLayer&quot;],axisTitleOffset:28,axisExtentOffset:10,deselectedLineColor:&quot;#777&quot;,bar:{width:4,captureWidth:10,fillColor:&quot;magenta&quot;,fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeColor:&quot;white&quot;,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:&quot;axis-extent-text&quot;,parcoordsLineLayers:&quot;parcoords-line-layers&quot;,parcoordsLineLayer:&quot;parcoords-lines&quot;,parcoords:&quot;parcoords&quot;,parcoordsControlView:&quot;parcoords-control-view&quot;,yAxis:&quot;y-axis&quot;,axisOverlays:&quot;axis-overlays&quot;,axis:&quot;axis&quot;,axisHeading:&quot;axis-heading&quot;,axisTitle:&quot;axis-title&quot;,axisExtent:&quot;axis-extent&quot;,axisExtentTop:&quot;axis-extent-top&quot;,axisExtentTopText:&quot;axis-extent-top-text&quot;,axisExtentBottom:&quot;axis-extent-bottom&quot;,axisExtentBottomText:&quot;axis-extent-bottom-text&quot;,axisBrush:&quot;axis-brush&quot;},id:{filterBarPattern:&quot;filter-bar-pattern&quot;}}},{}],1154:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;./attributes&quot;),u=t(&quot;./axisbrush&quot;),f=t(&quot;./constants&quot;).maxDimensionCount,h=t(&quot;./merge_length&quot;);function p(t,e,r,i){function a(r,i){return n.coerce(t,e,c.dimensions,r,i)}var o=a(&quot;values&quot;),s=a(&quot;visible&quot;);if(o&amp;&amp;o.length||(s=e.visible=!1),s){a(&quot;label&quot;),a(&quot;tickvals&quot;),a(&quot;ticktext&quot;),a(&quot;tickformat&quot;);var f=a(&quot;range&quot;);e._ax={_id:&quot;y&quot;,type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;,range:f},l.setConvert(e._ax,i.layout),a(&quot;multiselect&quot;);var h=a(&quot;constraintrange&quot;);h&amp;&amp;(e.constraintrange=u.cleanRanges(h,e))}}e.exports=function(t,e,r,l){function u(r,i){return n.coerce(t,e,c,r,i)}var d=t.dimensions;Array.isArray(d)&amp;&amp;d.length&gt;f&amp;&amp;(n.log(&quot;parcoords traces support up to &quot;+f+&quot; dimensions at the moment&quot;),d.splice(f));var g=s(t,e,{name:&quot;dimensions&quot;,layout:l,handleItemDefaults:p}),m=function(t,e,r,o,s){var l=s(&quot;line.color&quot;,r);if(i(t,&quot;line&quot;)&amp;&amp;n.isArrayOrTypedArray(l)){if(l.length)return s(&quot;line.colorscale&quot;),a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}),l.length;e.line.color=r}return 1/0}(t,e,r,l,u);o(e,l,u),Array.isArray(g)&amp;&amp;g.length||(e.visible=!1),h(e,g,&quot;values&quot;,m);var v={family:l.font.family,size:Math.round(l.font.size/1.2),color:l.font.color};n.coerceFont(u,&quot;labelfont&quot;,v),n.coerceFont(u,&quot;tickfont&quot;,v),n.coerceFont(u,&quot;rangefont&quot;,v),u(&quot;labelangle&quot;),u(&quot;labelside&quot;)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1149,&quot;./axisbrush&quot;:1150,&quot;./constants&quot;:1153,&quot;./merge_length&quot;:1158}],1155:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isTypedArray;r.convertTypedArray=function(t){return n(t)?Array.prototype.slice.call(t):t},r.isOrdinal=function(t){return!!t.tickvals},r.isVisible=function(t){return t.visible||!(&quot;visible&quot;in t)}},{&quot;../../lib&quot;:778}],1156:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},moduleType:&quot;trace&quot;,name:&quot;parcoords&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;noOpacity&quot;,&quot;noHover&quot;],meta:{}}},{&quot;./attributes&quot;:1149,&quot;./base_plot&quot;:1151,&quot;./calc&quot;:1152,&quot;./defaults&quot;:1154,&quot;./plot&quot;:1160}],1157:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nattribute vec4 p01_04, p05_08, p09_12, p13_16,\n               p17_20, p21_24, p25_28, p29_32,\n               p33_36, p37_40, p41_44, p45_48,\n               p49_52, p53_56, p57_60, colors;\n\nuniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,\n             loA, hiA, loB, hiB, loC, hiC, loD, hiD;\n\nuniform vec2 resolution, viewBoxPos, viewBoxSize;\nuniform sampler2D mask, palette;\nuniform float maskHeight;\nuniform float drwLayer; // 0: context, 1: focus, 2: pick\nuniform vec4 contextColor;\n\nbool isPick    = (drwLayer &gt; 1.5);\nbool isContext = (drwLayer &lt; 0.5);\n\nconst vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);\nconst vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);\n\nfloat val(mat4 p, mat4 v) {\n    return dot(matrixCompMult(p, v) * UNITS, UNITS);\n}\n\nfloat axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {\n    float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);\n    float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);\n    return y1 * (1.0 - ratio) + y2 * ratio;\n}\n\nint iMod(int a, int b) {\n    return a - b * (a / b);\n}\n\nbool fOutside(float p, float lo, float hi) {\n    return (lo &lt; hi) &amp;&amp; (lo &gt; p || p &gt; hi);\n}\n\nbool vOutside(vec4 p, vec4 lo, vec4 hi) {\n    return (\n        fOutside(p[0], lo[0], hi[0]) ||\n        fOutside(p[1], lo[1], hi[1]) ||\n        fOutside(p[2], lo[2], hi[2]) ||\n        fOutside(p[3], lo[3], hi[3])\n    );\n}\n\nbool mOutside(mat4 p, mat4 lo, mat4 hi) {\n    return (\n        vOutside(p[0], lo[0], hi[0]) ||\n        vOutside(p[1], lo[1], hi[1]) ||\n        vOutside(p[2], lo[2], hi[2]) ||\n        vOutside(p[3], lo[3], hi[3])\n    );\n}\n\nbool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {\n    return mOutside(A, loA, hiA) ||\n           mOutside(B, loB, hiB) ||\n           mOutside(C, loC, hiC) ||\n           mOutside(D, loD, hiD);\n}\n\nbool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {\n    mat4 pnts[4];\n    pnts[0] = A;\n    pnts[1] = B;\n    pnts[2] = C;\n    pnts[3] = D;\n\n    for(int i = 0; i &lt; 4; ++i) {\n        for(int j = 0; j &lt; 4; ++j) {\n            for(int k = 0; k &lt; 4; ++k) {\n                if(0 == iMod(\n                    int(255.0 * texture2D(mask,\n                        vec2(\n                            (float(i * 2 + j / 2) + 0.5) / 8.0,\n                            (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight\n                        ))[3]\n                    ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),\n                    2\n                )) return true;\n            }\n        }\n    }\n    return false;\n}\n\nvec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {\n    float x = 0.5 * sign(v) + 0.5;\n    float y = axisY(x, A, B, C, D);\n    float z = 1.0 - abs(v);\n\n    z += isContext ? 0.0 : 2.0 * float(\n        outsideBoundingBox(A, B, C, D) ||\n        outsideRasterMask(A, B, C, D)\n    );\n\n    return vec4(\n        2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,\n        z,\n        1.0\n    );\n}\n\nvoid main() {\n    mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);\n    mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);\n    mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);\n    mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);\n\n    float v = colors[3];\n\n    gl_Position = position(isContext, v, A, B, C, D);\n\n    fragColor =\n        isContext ? vec4(contextColor) :\n        isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));\n}\n&quot;]),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n    gl_FragColor = fragColor;\n}\n&quot;]),o=t(&quot;./constants&quot;).maxDimensionCount,s=t(&quot;../../lib&quot;),l=new Uint8Array(4),c=new Uint8Array(4),u={shape:[256,1],format:&quot;rgba&quot;,type:&quot;uint8&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;};function f(t,e,r,n,i){var a=t._gl;a.enable(a.SCISSOR_TEST),a.scissor(e,r,n,i),t.clear({color:[0,0,0,0],depth:1})}function h(t,e,r,n,i,a){var o=a.key;r.drawCompleted||(!function(t){t.read({x:0,y:0,width:1,height:1,data:l})}(t),r.drawCompleted=!0),function s(l){var c=Math.min(n,i-l*n);0===l&amp;&amp;(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],f(t,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),r.clearOnly||(a.count=2*c,a.offset=2*l*n,e(a),l*n+c&lt;i&amp;&amp;(r.currentRafs[o]=window.requestAnimationFrame((function(){s(l+1)}))),r.drawCompleted=!1)}(0)}function p(t,e){for(var r=new Array(256),n=0;n&lt;256;n++)r[n]=t(n/255).concat(e);return r}function d(t,e){return(t&gt;&gt;&gt;8*e)%256/255}function g(t,e,r){for(var n=new Array(8*e),i=0,a=0;a&lt;e;a++)for(var o=0;o&lt;2;o++)for(var s=0;s&lt;4;s++){var l=4*t+s,c=r[64*a+l];63===l&amp;&amp;0===o&amp;&amp;(c*=-1),n[i++]=c}return n}function m(t){var e=&quot;0&quot;+t;return e.substr(e.length-2)}function v(t){return t&lt;o?&quot;p&quot;+m(t+1)+&quot;_&quot;+m(t+4):&quot;colors&quot;}function y(t,e,r,n,i,a,o,l,c,u,f,h,p){for(var d=[[],[]],g=0;g&lt;64;g++)d[0][g]=g===i?1:0,d[1][g]=g===a?1:0;var m=t.lines.canvasOverdrag,v=t.domain,y=t.canvasWidth,x=t.canvasHeight,b=t.deselectedLines.color;return s.extendFlat({key:f,resolution:[y,x],viewBoxPos:[o+m,l],viewBoxSize:[c,u],i0:i,i1:a,dim0A:d[0].slice(0,16),dim0B:d[0].slice(16,32),dim0C:d[0].slice(32,48),dim0D:d[0].slice(48,64),dim1A:d[1].slice(0,16),dim1B:d[1].slice(16,32),dim1C:d[1].slice(32,48),dim1D:d[1].slice(48,64),drwLayer:h,contextColor:[b[0]/255,b[1]/255,b[2]/255,b[3]&lt;1?b[3]:Math.max(1/255,Math.pow(1/t.lines.color.length,1/3))],scissorX:(n===e?0:o+m)+(t.pad.l-m)+t.layoutWidth*v.x[0],scissorWidth:(n===r?y-o+m:c+.5)+(n===e?o+m:0),scissorY:l+t.pad.b+t.layoutHeight*v.y[0],scissorHeight:u,viewportX:t.pad.l-m+t.layoutWidth*v.x[0],viewportY:t.pad.b+t.layoutHeight*v.y[0],viewportWidth:y,viewportHeight:x},p)}function x(t){var e=Math.max(0,Math.floor(2047*t[0]),0),r=Math.min(2047,Math.ceil(2047*t[1]),2047);return[Math.min(e,r),Math.max(e,r)]}e.exports=function(t,e){var r,n,l,m,b,_=e.context,w=e.pick,T=e.regl,k={currentRafs:{},drawCompleted:!0,clearOnly:!1},M=function(t){for(var e={},r=0;r&lt;=o;r+=4)e[v(r)]=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)});return e}(T),A=T.texture(u),S=[];C(e);var E=T({profile:!1,blend:{enable:_,func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:1,dstAlpha:1},equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},color:[0,0,0,0]},depth:{enable:!_,mask:!0,func:&quot;less&quot;,range:[0,1]},cull:{enable:!0,face:&quot;back&quot;},scissor:{enable:!0,box:{x:T.prop(&quot;scissorX&quot;),y:T.prop(&quot;scissorY&quot;),width:T.prop(&quot;scissorWidth&quot;),height:T.prop(&quot;scissorHeight&quot;)}},viewport:{x:T.prop(&quot;viewportX&quot;),y:T.prop(&quot;viewportY&quot;),width:T.prop(&quot;viewportWidth&quot;),height:T.prop(&quot;viewportHeight&quot;)},dither:!1,vert:i,frag:a,primitive:&quot;lines&quot;,lineWidth:1,attributes:M,uniforms:{resolution:T.prop(&quot;resolution&quot;),viewBoxPos:T.prop(&quot;viewBoxPos&quot;),viewBoxSize:T.prop(&quot;viewBoxSize&quot;),dim0A:T.prop(&quot;dim0A&quot;),dim1A:T.prop(&quot;dim1A&quot;),dim0B:T.prop(&quot;dim0B&quot;),dim1B:T.prop(&quot;dim1B&quot;),dim0C:T.prop(&quot;dim0C&quot;),dim1C:T.prop(&quot;dim1C&quot;),dim0D:T.prop(&quot;dim0D&quot;),dim1D:T.prop(&quot;dim1D&quot;),loA:T.prop(&quot;loA&quot;),hiA:T.prop(&quot;hiA&quot;),loB:T.prop(&quot;loB&quot;),hiB:T.prop(&quot;hiB&quot;),loC:T.prop(&quot;loC&quot;),hiC:T.prop(&quot;hiC&quot;),loD:T.prop(&quot;loD&quot;),hiD:T.prop(&quot;hiD&quot;),palette:A,contextColor:T.prop(&quot;contextColor&quot;),mask:T.prop(&quot;maskTexture&quot;),drwLayer:T.prop(&quot;drwLayer&quot;),maskHeight:T.prop(&quot;maskHeight&quot;)},offset:T.prop(&quot;offset&quot;),count:T.prop(&quot;count&quot;)});function C(t){r=t.model,n=t.viewModel,l=n.dimensions.slice(),m=l[0]?l[0].values.length:0;var e=r.lines,i=w?e.color.map((function(t,r){return r/e.color.length})):e.color,a=function(t,e,r){for(var n,i=new Array(t*(o+4)),a=0,s=0;s&lt;t;s++){for(var l=0;l&lt;o;l++)i[a++]=l&lt;e.length?e[l].paddedUnitValues[s]:.5;i[a++]=d(s,2),i[a++]=d(s,1),i[a++]=d(s,0),i[a++]=(n=r[s],Math.max(1e-6,Math.min(.999999,n)))}return i}(m,l,i);!function(t,e,r){for(var n=0;n&lt;=o;n+=4)t[v(n)](g(n/4,e,r))}(M,m,a),_||w||(A=T.texture(s.extendFlat({data:p(r.unitToColor,255)},u)))}return{render:function(t,e,n){var i,a,o,s=t.length,c=1/0,u=-1/0;for(i=0;i&lt;s;i++)t[i].dim0.canvasX&lt;c&amp;&amp;(c=t[i].dim0.canvasX,a=i),t[i].dim1.canvasX&gt;u&amp;&amp;(u=t[i].dim1.canvasX,o=i);0===s&amp;&amp;f(T,0,0,r.canvasWidth,r.canvasHeight);var p=function(t){var e,r,n,i=[[],[]];for(n=0;n&lt;64;n++){var a=!t&amp;&amp;n&lt;l.length?l[n].brush.filter.getBounds():[-1/0,1/0];i[0][n]=a[0],i[1][n]=a[1]}var o=new Array(16384);for(e=0;e&lt;16384;e++)o[e]=255;if(!t)for(e=0;e&lt;l.length;e++){var s=e%8,c=(e-s)/8,u=Math.pow(2,s),f=l[e].brush.filter.get();if(!(f.length&lt;2)){var h=x(f[0])[1];for(r=1;r&lt;f.length;r++){var p=x(f[r]);for(n=h+1;n&lt;p[0];n++)o[8*n+c]&amp;=~u;h=Math.max(h,p[1])}}}var d={shape:[8,2048],format:&quot;alpha&quot;,type:&quot;uint8&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;,data:o};return b?b(d):b=T.texture(d),{maskTexture:b,maskHeight:2048,loA:i[0].slice(0,16),loB:i[0].slice(16,32),loC:i[0].slice(32,48),loD:i[0].slice(48,64),hiA:i[1].slice(0,16),hiB:i[1].slice(16,32),hiC:i[1].slice(32,48),hiD:i[1].slice(48,64)}}(_);for(i=0;i&lt;s;i++){var d=t[i],g=d.dim0.crossfilterDimensionIndex,v=d.dim1.crossfilterDimensionIndex,M=d.canvasX,A=d.canvasY,C=M+d.panelSizeX;if(e||!S[g]||S[g][0]!==M||S[g][1]!==C){S[g]=[M,C];var L=y(r,a,o,i,g,v,M,A,d.panelSizeX,d.panelSizeY,d.dim0.crossfilterDimensionIndex,_?0:w?2:1,p);k.clearOnly=n;var I=e?r.lines.blockLineCount:m;h(T,E,k,I,m,L)}}},readPixel:function(t,e){return T.read({x:t,y:e,width:1,height:1,data:c}),c},readPixels:function(t,e,r,n){var i=new Uint8Array(4*r*n);return T.read({x:t,y:e,width:r,height:n,data:i}),i},destroy:function(){for(var e in t.style[&quot;pointer-events&quot;]=&quot;none&quot;,A.destroy(),b&amp;&amp;b.destroy(),M)M[e].destroy()},update:C}}},{&quot;../../lib&quot;:778,&quot;./constants&quot;:1153,glslify:439}],1158:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i,a;for(n||(n=1/0),i=0;i&lt;e.length;i++)(a=e[i]).visible&amp;&amp;(n=Math.min(n,a[r].length));for(n===1/0&amp;&amp;(n=0),t._length=n,i=0;i&lt;e.length;i++)(a=e[i]).visible&amp;&amp;(a._length=n);return n}},{}],1159:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;color-rgba&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../lib&quot;),s=o.strRotate,l=o.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../../components/colorscale&quot;),h=t(&quot;../../lib/gup&quot;),p=h.keyFun,d=h.repeat,g=h.unwrap,m=t(&quot;./helpers&quot;),v=t(&quot;./constants&quot;),y=t(&quot;./axisbrush&quot;),x=t(&quot;./lines&quot;);function b(t,e,r){return o.aggNums(t,null,e,r)}function _(t,e){return T(b(Math.min,t,e),b(Math.max,t,e))}function w(t){var e=t.range;return e?T(e[0],e[1]):_(t.values,t._length)}function T(t,e){return!isNaN(t)&amp;&amp;isFinite(t)||(t=0),!isNaN(e)&amp;&amp;isFinite(e)||(e=0),t===e&amp;&amp;(0===t?(t-=1,e+=1):(t*=.9,e*=1.1)),[t,e]}function k(t,e,r,i,a){var o,s,l=w(r);return i?n.scale.ordinal().domain(i.map((o=n.format(r.tickformat),s=a,s?function(t,e){var r=s[e];return null==r?o(t):r}:o))).range(i.map((function(r){var n=(r-l[0])/(l[1]-l[0]);return t-e+n*(2*e-t)}))):n.scale.linear().domain(l).range([t-e,e])}function M(t){if(t.tickvals){var e=w(t);return n.scale.ordinal().domain(t.tickvals).range(t.tickvals.map((function(t){return(t-e[0])/(e[1]-e[0])})))}}function A(t){var e=t.map((function(t){return t[0]})),r=t.map((function(t){var e=i(t[1]);return n.rgb(&quot;rgb(&quot;+e[0]+&quot;,&quot;+e[1]+&quot;,&quot;+e[2]+&quot;)&quot;)})),a=&quot;rgb&quot;.split(&quot;&quot;).map((function(t){return n.scale.linear().clamp(!0).domain(e).range(r.map((i=t,function(t){return t[i]})));var i}));return function(t){return a.map((function(e){return e(t)}))}}function S(t){return t.dimensions.some((function(t){return t.brush.filterSpecified}))}function E(t,e,r){var a=g(e),s=a.trace,l=m.convertTypedArray(a.lineColor),c=s.line,u={color:i(v.deselectedLineColor)},h=f.extractOpts(c),p=h.reversescale?f.flipScale(a.cscale):a.cscale,d=s.domain,y=s.dimensions,x=t.width,b=s.labelangle,_=s.labelside,T=s.labelfont,k=s.tickfont,M=s.rangefont,S=o.extendDeepNoArrays({},c,{color:l.map(n.scale.linear().domain(w({values:l,range:[h.min,h.max],_length:s._length}))),blockLineCount:v.blockLineCount,canvasOverdrag:v.overdrag*v.canvasPixelRatio}),E=Math.floor(x*(d.x[1]-d.x[0])),C=Math.floor(t.height*(d.y[1]-d.y[0])),L=t.margin||{l:80,r:80,t:100,b:80},I=E,P=C;return{key:r,colCount:y.filter(m.isVisible).length,dimensions:y,tickDistance:v.tickDistance,unitToColor:A(p),lines:S,deselectedLines:u,labelAngle:b,labelSide:_,labelFont:T,tickFont:k,rangeFont:M,layoutWidth:x,layoutHeight:t.height,domain:d,translateX:d.x[0]*x,translateY:t.height-d.y[1]*t.height,pad:L,canvasWidth:I*v.canvasPixelRatio+2*S.canvasOverdrag,canvasHeight:P*v.canvasPixelRatio,width:I,height:P,canvasPixelRatio:v.canvasPixelRatio}}function C(t,e,r){var i=r.width,a=r.height,s=r.dimensions,l=r.canvasPixelRatio,c=function(t){return i*t/Math.max(1,r.colCount-1)},u=v.verticalPadding/a,f=function(t,e){return n.scale.linear().range([e,t-e])}(a,v.verticalPadding),h={key:r.key,xScale:c,model:r,inBrushDrag:!1},p={};return h.dimensions=s.filter(m.isVisible).map((function(i,s){var d=function(t,e){return n.scale.linear().domain(w(t)).range([e,1-e])}(i,u),g=p[i.label];p[i.label]=(g||0)+1;var x=i.label+(g?&quot;__&quot;+g:&quot;&quot;),b=i.constraintrange,_=b&amp;&amp;b.length;_&amp;&amp;!Array.isArray(b[0])&amp;&amp;(b=[b]);var T=_?b.map((function(t){return t.map(d)})):[[-1/0,1/0]],A=i.values;A.length&gt;i._length&amp;&amp;(A=A.slice(0,i._length));var E,C=i.tickvals;function L(t,e){return{val:t,text:E[e]}}function I(t,e){return t.val-e.val}if(Array.isArray(C)&amp;&amp;C.length){E=i.ticktext,Array.isArray(E)&amp;&amp;E.length?E.length&gt;C.length?E=E.slice(0,C.length):C.length&gt;E.length&amp;&amp;(C=C.slice(0,E.length)):E=C.map(n.format(i.tickformat));for(var P=1;P&lt;C.length;P++)if(C[P]&lt;C[P-1]){for(var z=C.map(L).sort(I),O=0;O&lt;C.length;O++)C[O]=z[O].val,E[O]=z[O].text;break}}else C=void 0;return A=m.convertTypedArray(A),{key:x,label:i.label,tickFormat:i.tickformat,tickvals:C,ticktext:E,ordinal:m.isOrdinal(i),multiselect:i.multiselect,xIndex:s,crossfilterDimensionIndex:s,visibleIndex:i._index,height:a,values:A,paddedUnitValues:A.map(d),unitTickvals:C&amp;&amp;C.map(d),xScale:c,x:c(s),canvasX:c(s)*l,unitToPaddedPx:f,domainScale:k(a,v.verticalPadding,i,C,E),ordinalScale:M(i),parent:h,model:r,brush:y.makeBrush(t,_,T,(function(){t.linePickActive(!1)}),(function(){var e=h;e.focusLayer&amp;&amp;e.focusLayer.render(e.panels,!0);var r=S(e);!t.contextShown()&amp;&amp;r?(e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!0),t.contextShown(!0)):t.contextShown()&amp;&amp;!r&amp;&amp;(e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!0,!0),t.contextShown(!1))}),(function(r){if(h.focusLayer.render(h.panels,!0),h.pickLayer&amp;&amp;h.pickLayer.render(h.panels,!0),t.linePickActive(!0),e&amp;&amp;e.filterChanged){var n=d.invert,a=r.map((function(t){return t.map(n).sort(o.sorterAsc)})).sort((function(t,e){return t[0]-e[0]}));e.filterChanged(h.key,i._index,a)}}))}})),h}function L(t){t.classed(v.cn.axisExtentText,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).style(&quot;cursor&quot;,&quot;default&quot;)}function I(t,e){var r=&quot;top&quot;===e?1:-1,n=t*Math.PI/180;return{dir:r,dx:Math.sin(n),dy:Math.cos(n),degrees:t}}function P(t,e){for(var r=e.panels||(e.panels=[]),n=t.data(),i=0;i&lt;n.length-1;i++){var a=r[i]||(r[i]={}),o=n[i],s=n[i+1];a.dim0=o,a.dim1=s,a.canvasX=o.canvasX,a.panelSizeX=s.canvasX-o.canvasX,a.panelSizeY=e.model.canvasHeight,a.y=0,a.canvasY=0}}function z(t,e){return a.tickText(t._ax,e,!1).text}function O(t,e){if(t.ordinal)return&quot;&quot;;var r=t.domainScale.domain(),n=r[e?r.length-1:0];return z(t.model.dimensions[t.visibleIndex],n)}e.exports=function(t,e,r,i){var f=t._fullLayout,h=f._toppaper,b=f._glcontainer;!function(t){for(var e=0;e&lt;t.length;e++)for(var r=0;r&lt;t[e].length;r++)for(var n=t[e][r].trace,i=n.dimensions,o=0;o&lt;i.length;o++){var s=i[o].values,l=i[o]._ax;l&amp;&amp;(l.range?l.range=T(l.range[0],l.range[1]):l.range=_(s,n._length),l.dtick||(l.dtick=.01*(Math.abs(l.range[1]-l.range[0])||1)),l.tickformat=i[o].tickformat,a.calcTicks(l),l.cleanRange())}}(e);var w,k,M=(w=!0,k=!1,{linePickActive:function(t){return arguments.length?w=!!t:w},contextShown:function(t){return arguments.length?k=!!t:k}}),A=e.filter((function(t){return g(t).trace.visible})).map(E.bind(0,r)).map(C.bind(0,M,i));b.each((function(t,e){return o.extendFlat(t,A[e])}));var D=b.selectAll(&quot;.gl-canvas&quot;).each((function(t){t.viewModel=A[0],t.model=t.viewModel?t.viewModel.model:null})),R=null;D.filter((function(t){return t.pick})).style(&quot;pointer-events&quot;,&quot;auto&quot;).on(&quot;mousemove&quot;,(function(t){if(M.linePickActive()&amp;&amp;t.lineLayer&amp;&amp;i&amp;&amp;i.hover){var e=n.event,r=this.width,a=this.height,o=n.mouse(this),s=o[0],l=o[1];if(s&lt;0||l&lt;0||s&gt;=r||l&gt;=a)return;var c=t.lineLayer.readPixel(s,a-1-l),u=0!==c[3],f=u?c[2]+256*(c[1]+256*c[0]):null,h={x:s,y:l,clientX:e.clientX,clientY:e.clientY,dataIndex:t.model.key,curveNumber:f};f!==R&amp;&amp;(u?i.hover(h):i.unhover&amp;&amp;i.unhover(h),R=f)}})),D.style(&quot;opacity&quot;,(function(t){return t.pick?0:1})),h.style(&quot;background&quot;,&quot;rgba(255, 255, 255, 0)&quot;);var F=h.selectAll(&quot;.&quot;+v.cn.parcoords).data(A,p);F.exit().remove(),F.enter().append(&quot;g&quot;).classed(v.cn.parcoords,!0).style(&quot;shape-rendering&quot;,&quot;crispEdges&quot;).style(&quot;pointer-events&quot;,&quot;none&quot;),F.attr(&quot;transform&quot;,(function(t){return l(t.model.translateX,t.model.translateY)}));var B=F.selectAll(&quot;.&quot;+v.cn.parcoordsControlView).data(d,p);B.enter().append(&quot;g&quot;).classed(v.cn.parcoordsControlView,!0),B.attr(&quot;transform&quot;,(function(t){return l(t.model.pad.l,t.model.pad.t)}));var N=B.selectAll(&quot;.&quot;+v.cn.yAxis).data((function(t){return t.dimensions}),p);N.enter().append(&quot;g&quot;).classed(v.cn.yAxis,!0),B.each((function(t){P(N,t)})),D.each((function(t){if(t.viewModel){!t.lineLayer||i?t.lineLayer=x(this,t):t.lineLayer.update(t),(t.key||0===t.key)&amp;&amp;(t.viewModel[t.key]=t.lineLayer);var e=!t.context||i;t.lineLayer.render(t.viewModel.panels,e)}})),N.attr(&quot;transform&quot;,(function(t){return l(t.xScale(t.xIndex),0)})),N.call(n.behavior.drag().origin((function(t){return t})).on(&quot;drag&quot;,(function(t){var e=t.parent;M.linePickActive(!1),t.x=Math.max(-v.overdrag,Math.min(t.model.width+v.overdrag,n.event.x)),t.canvasX=t.x*t.model.canvasPixelRatio,N.sort((function(t,e){return t.x-e.x})).each((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e.xIndex),e.canvasX=e.x*e.model.canvasPixelRatio})),P(N,e),N.filter((function(e){return 0!==Math.abs(t.xIndex-e.xIndex)})).attr(&quot;transform&quot;,(function(t){return l(t.xScale(t.xIndex),0)})),n.select(this).attr(&quot;transform&quot;,l(t.x,0)),N.each((function(r,n,i){i===t.parent.key&amp;&amp;(e.dimensions[n]=r)})),e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!1,!S(e)),e.focusLayer.render&amp;&amp;e.focusLayer.render(e.panels)})).on(&quot;dragend&quot;,(function(t){var e=t.parent;t.x=t.xScale(t.xIndex),t.canvasX=t.x*t.model.canvasPixelRatio,P(N,e),n.select(this).attr(&quot;transform&quot;,(function(t){return l(t.x,0)})),e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!1,!S(e)),e.focusLayer&amp;&amp;e.focusLayer.render(e.panels),e.pickLayer&amp;&amp;e.pickLayer.render(e.panels,!0),M.linePickActive(!0),i&amp;&amp;i.axesMoved&amp;&amp;i.axesMoved(e.key,e.dimensions.map((function(t){return t.crossfilterDimensionIndex})))}))),N.exit().remove();var j=N.selectAll(&quot;.&quot;+v.cn.axisOverlays).data(d,p);j.enter().append(&quot;g&quot;).classed(v.cn.axisOverlays,!0),j.selectAll(&quot;.&quot;+v.cn.axis).remove();var U=j.selectAll(&quot;.&quot;+v.cn.axis).data(d,p);U.enter().append(&quot;g&quot;).classed(v.cn.axis,!0),U.each((function(t){var e=t.model.height/t.model.tickDistance,r=t.domainScale,i=r.domain();n.select(this).call(n.svg.axis().orient(&quot;left&quot;).tickSize(4).outerTickSize(2).ticks(e,t.tickFormat).tickValues(t.ordinal?i:null).tickFormat((function(e){return m.isOrdinal(t)?e:z(t.model.dimensions[t.visibleIndex],e)})).scale(r)),u.font(U.selectAll(&quot;text&quot;),t.model.tickFont)})),U.selectAll(&quot;.domain, .tick&gt;line&quot;).attr(&quot;fill&quot;,&quot;none&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-opacity&quot;,.25).attr(&quot;stroke-width&quot;,&quot;1px&quot;),U.selectAll(&quot;text&quot;).style(&quot;text-shadow&quot;,&quot;1px 1px 1px #fff, -1px -1px 1px #fff, 1px -1px 1px #fff, -1px 1px 1px #fff&quot;).style(&quot;cursor&quot;,&quot;default&quot;);var V=j.selectAll(&quot;.&quot;+v.cn.axisHeading).data(d,p);V.enter().append(&quot;g&quot;).classed(v.cn.axisHeading,!0);var q=V.selectAll(&quot;.&quot;+v.cn.axisTitle).data(d,p);q.enter().append(&quot;text&quot;).classed(v.cn.axisTitle,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).style(&quot;cursor&quot;,&quot;ew-resize&quot;).style(&quot;pointer-events&quot;,&quot;auto&quot;),q.text((function(t){return t.label})).each((function(e){var r=n.select(this);u.font(r,e.model.labelFont),c.convertToTspans(r,t)})).attr(&quot;transform&quot;,(function(t){var e=I(t.model.labelAngle,t.model.labelSide),r=v.axisTitleOffset;return(e.dir&gt;0?&quot;&quot;:l(0,2*r+t.model.height))+s(e.degrees)+l(-r*e.dx,-r*e.dy)})).attr(&quot;text-anchor&quot;,(function(t){var e=I(t.model.labelAngle,t.model.labelSide);return 2*Math.abs(e.dx)&gt;Math.abs(e.dy)?e.dir*e.dx&lt;0?&quot;start&quot;:&quot;end&quot;:&quot;middle&quot;}));var H=j.selectAll(&quot;.&quot;+v.cn.axisExtent).data(d,p);H.enter().append(&quot;g&quot;).classed(v.cn.axisExtent,!0);var G=H.selectAll(&quot;.&quot;+v.cn.axisExtentTop).data(d,p);G.enter().append(&quot;g&quot;).classed(v.cn.axisExtentTop,!0),G.attr(&quot;transform&quot;,l(0,-v.axisExtentOffset));var Y=G.selectAll(&quot;.&quot;+v.cn.axisExtentTopText).data(d,p);Y.enter().append(&quot;text&quot;).classed(v.cn.axisExtentTopText,!0).call(L),Y.text((function(t){return O(t,!0)})).each((function(t){u.font(n.select(this),t.model.rangeFont)}));var W=H.selectAll(&quot;.&quot;+v.cn.axisExtentBottom).data(d,p);W.enter().append(&quot;g&quot;).classed(v.cn.axisExtentBottom,!0),W.attr(&quot;transform&quot;,(function(t){return l(0,t.model.height+v.axisExtentOffset)}));var X=W.selectAll(&quot;.&quot;+v.cn.axisExtentBottomText).data(d,p);X.enter().append(&quot;text&quot;).classed(v.cn.axisExtentBottomText,!0).attr(&quot;dy&quot;,&quot;0.75em&quot;).call(L),X.text((function(t){return O(t,!1)})).each((function(t){u.font(n.select(this),t.model.rangeFont)})),y.ensureAxisBrush(j)}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;./axisbrush&quot;:1150,&quot;./constants&quot;:1153,&quot;./helpers&quot;:1155,&quot;./lines&quot;:1157,&quot;color-rgba&quot;:127,d3:169}],1160:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./parcoords&quot;),i=t(&quot;../../lib/prepare_regl&quot;),a=t(&quot;./helpers&quot;).isVisible;function o(t,e,r){var n=e.indexOf(r),i=t.indexOf(n);return-1===i&amp;&amp;(i+=e.length),i}e.exports=function(t,e){var r=t._fullLayout;if(i(t)){var s={},l={},c={},u={},f=r._size;e.forEach((function(e,r){var n=e[0].trace;c[r]=n.index;var i=u[r]=n._fullInput.index;s[r]=t.data[i].dimensions,l[r]=t.data[i].dimensions.slice()}));n(t,e,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{filterChanged:function(e,n,i){var a=l[e][n],o=i.map((function(t){return t.slice()})),s=&quot;dimensions[&quot;+n+&quot;].constraintrange&quot;,f=r._tracePreGUI[t._fullData[c[e]]._fullInput.uid];if(void 0===f[s]){var h=a.constraintrange;f[s]=h||null}var p=t._fullData[c[e]].dimensions[n];o.length?(1===o.length&amp;&amp;(o=o[0]),a.constraintrange=o,p.constraintrange=o.slice(),o=[o]):(delete a.constraintrange,delete p.constraintrange,o=null);var d={};d[s]=o,t.emit(&quot;plotly_restyle&quot;,[d,[u[e]]])},hover:function(e){t.emit(&quot;plotly_hover&quot;,e)},unhover:function(e){t.emit(&quot;plotly_unhover&quot;,e)},axesMoved:function(e,r){var n=function(t,e){return function(r,n){return o(t,e,r)-o(t,e,n)}}(r,l[e].filter(a));s[e].sort(n),l[e].filter((function(t){return!a(t)})).sort((function(t){return l[e].indexOf(t)})).forEach((function(t){s[e].splice(s[e].indexOf(t),1),s[e].splice(l[e].indexOf(t),0,t)})),t.emit(&quot;plotly_restyle&quot;,[{dimensions:[s[e]]},[u[e]]])}})}}},{&quot;../../lib/prepare_regl&quot;:791,&quot;./helpers&quot;:1155,&quot;./parcoords&quot;:1159}],1161:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/domain&quot;).attributes,a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../components/color/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,c=t(&quot;../../lib/extend&quot;).extendFlat,u=a({editType:&quot;plot&quot;,arrayOk:!0,colorEditType:&quot;plot&quot;});e.exports={labels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},label0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},dlabel:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},marker:{colors:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:o.defaultLine,arrayOk:!0,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,arrayOk:!0,editType:&quot;style&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},text:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},scalegroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;],extras:[&quot;none&quot;],editType:&quot;calc&quot;},hoverinfo:c({},n.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;name&quot;]}),hovertemplate:s({},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;text&quot;]}),texttemplate:l({editType:&quot;plot&quot;},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;text&quot;]}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;auto&quot;,&quot;none&quot;],dflt:&quot;auto&quot;,arrayOk:!0,editType:&quot;plot&quot;},textfont:c({},u,{}),insidetextorientation:{valType:&quot;enumerated&quot;,values:[&quot;horizontal&quot;,&quot;radial&quot;,&quot;tangential&quot;,&quot;auto&quot;],dflt:&quot;auto&quot;,editType:&quot;plot&quot;},insidetextfont:c({},u,{}),outsidetextfont:c({},u,{}),automargin:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},font:c({},u,{}),position:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle center&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},domain:i({name:&quot;pie&quot;,trace:!0,editType:&quot;calc&quot;}),hole:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;},sort:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;],dflt:&quot;counterclockwise&quot;,editType:&quot;calc&quot;},rotation:{valType:&quot;number&quot;,min:-360,max:360,dflt:0,editType:&quot;calc&quot;},pull:{valType:&quot;number&quot;,min:0,max:1,dflt:0,arrayOk:!0,editType:&quot;calc&quot;},_deprecated:{title:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},titlefont:c({},u,{}),titleposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle center&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],editType:&quot;calc&quot;}}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906}],1162:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;pie&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1163:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../components/color&quot;),o={};function s(t){return function(e,r){return!!e&amp;&amp;(!!(e=i(e)).isValid()&amp;&amp;(e=a.addOpacity(e,e.getAlpha()),t[r]||(t[r]=e),e))}}function l(t,e){var r,n=JSON.stringify(t),a=e[n];if(!a){for(a=t.slice(),r=0;r&lt;t.length;r++)a.push(i(t[r]).lighten(20).toHexString());for(r=0;r&lt;t.length;r++)a.push(i(t[r]).darken(20).toHexString());e[n]=a}return a}e.exports={calc:function(t,e){var r,i,a=[],o=t._fullLayout,l=o.hiddenlabels||[],c=e.labels,u=e.marker.colors||[],f=e.values,h=e._length,p=e._hasValues&amp;&amp;h;if(e.dlabel)for(c=new Array(h),r=0;r&lt;h;r++)c[r]=String(e.label0+r*e.dlabel);var d={},g=s(o[&quot;_&quot;+e.type+&quot;colormap&quot;]),m=0,v=!1;for(r=0;r&lt;h;r++){var y,x,b;if(p){if(y=f[r],!n(y))continue;if((y=+y)&lt;0)continue}else y=1;void 0!==(x=c[r])&amp;&amp;&quot;&quot;!==x||(x=r);var _=d[x=String(x)];void 0===_?(d[x]=a.length,(b=-1!==l.indexOf(x))||(m+=y),a.push({v:y,label:x,color:g(u[r],x),i:r,pts:[r],hidden:b})):(v=!0,(i=a[_]).v+=y,i.pts.push(r),i.hidden||(m+=y),!1===i.color&amp;&amp;u[r]&amp;&amp;(i.color=g(u[r],x)))}return(&quot;funnelarea&quot;===e.type?v:e.sort)&amp;&amp;a.sort((function(t,e){return e.v-t.v})),a[0]&amp;&amp;(a[0].vTotal=m),a},crossTraceCalc:function(t,e){var r=(e||{}).type;r||(r=&quot;pie&quot;);var n=t._fullLayout,i=t.calcdata,a=n[r+&quot;colorway&quot;],s=n[&quot;_&quot;+r+&quot;colormap&quot;];n[&quot;extend&quot;+r+&quot;colors&quot;]&amp;&amp;(a=l(a,o));for(var c=0,u=0;u&lt;i.length;u++){var f=i[u];if(f[0].trace.type===r)for(var h=0;h&lt;f.length;h++){var p=f[h];!1===p.color&amp;&amp;(s[p.label]?p.color=s[p.label]:(s[p.label]=p.color=a[c%a.length],c++))}}},makePullColorFn:s,generateExtendedColors:l}},{&quot;../../components/color&quot;:643,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],1164:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText;function l(t,e){var r=Array.isArray(t),a=i.isArrayOrTypedArray(e),o=Math.min(r?t.length:1/0,a?e.length:1/0);if(isFinite(o)||(o=0),o&amp;&amp;a){for(var s,l=0;l&lt;o;l++){var c=e[l];if(n(c)&amp;&amp;c&gt;0){s=!0;break}}s||(o=0)}return{hasLabels:r,hasValues:a,len:o}}e.exports={handleLabelsAndValues:l,supplyDefaults:function(t,e,r,n){function c(r,n){return i.coerce(t,e,a,r,n)}var u=l(c(&quot;labels&quot;),c(&quot;values&quot;)),f=u.len;if(e._hasLabels=u.hasLabels,e._hasValues=u.hasValues,!e._hasLabels&amp;&amp;e._hasValues&amp;&amp;(c(&quot;label0&quot;),c(&quot;dlabel&quot;)),f){e._length=f,c(&quot;marker.line.width&quot;)&amp;&amp;c(&quot;marker.line.color&quot;),c(&quot;marker.colors&quot;),c(&quot;scalegroup&quot;);var h,p=c(&quot;text&quot;),d=c(&quot;texttemplate&quot;);if(d||(h=c(&quot;textinfo&quot;,Array.isArray(p)?&quot;text+percent&quot;:&quot;percent&quot;)),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),d||h&amp;&amp;&quot;none&quot;!==h){var g=c(&quot;textposition&quot;);s(t,e,n,c,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(g)||&quot;auto&quot;===g||&quot;outside&quot;===g)&amp;&amp;c(&quot;automargin&quot;),(&quot;inside&quot;===g||&quot;auto&quot;===g||Array.isArray(g))&amp;&amp;c(&quot;insidetextorientation&quot;)}o(e,n,c);var m=c(&quot;hole&quot;);if(c(&quot;title.text&quot;)){var v=c(&quot;title.position&quot;,m?&quot;middle center&quot;:&quot;top center&quot;);m||&quot;middle center&quot;!==v||(e.title.position=&quot;top center&quot;),i.coerceFont(c,&quot;title.font&quot;,n.font)}c(&quot;sort&quot;),c(&quot;direction&quot;),c(&quot;rotation&quot;),c(&quot;pull&quot;)}else e.visible=!1}}},{&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/defaults&quot;:925,&quot;./attributes&quot;:1161,&quot;fast-isnumeric&quot;:241}],1165:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx/helpers&quot;).appendArrayMultiPointValues;e.exports=function(t,e){var r={curveNumber:e.index,pointNumbers:t.pts,data:e._input,fullData:e,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,v:t.v};return 1===t.pts.length&amp;&amp;(r.pointNumber=r.i=t.pts[0]),n(r,e,t.pts),&quot;funnelarea&quot;===e.type&amp;&amp;(delete r.v,delete r.i),r}},{&quot;../../components/fx/helpers&quot;:679}],1166:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);function i(t){return-1!==t.indexOf(&quot;e&quot;)?t.replace(/[.]?0+e/,&quot;e&quot;):-1!==t.indexOf(&quot;.&quot;)?t.replace(/[.]?0+$/,&quot;&quot;):t}r.formatPiePercent=function(t,e){var r=i((100*t).toPrecision(3));return n.numSeparate(r,e)+&quot;%&quot;},r.formatPieValue=function(t,e){var r=i(t.toPrecision(10));return n.numSeparate(r,e)},r.getFirstFilled=function(t,e){if(Array.isArray(t))for(var r=0;r&lt;e.length;r++){var n=t[e[r]];if(n||0===n||&quot;&quot;===n)return n}},r.castOption=function(t,e){return Array.isArray(t)?r.getFirstFilled(t,e):t||void 0},r.getRotationAngle=function(t){return(&quot;auto&quot;===t?0:t)*Math.PI/180}},{&quot;../../lib&quot;:778}],1167:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),styleOne:t(&quot;./style_one&quot;),moduleType:&quot;trace&quot;,name:&quot;pie&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;pie-like&quot;,&quot;pie&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;./attributes&quot;:1161,&quot;./base_plot&quot;:1162,&quot;./calc&quot;:1163,&quot;./defaults&quot;:1164,&quot;./layout_attributes&quot;:1168,&quot;./layout_defaults&quot;:1169,&quot;./plot&quot;:1170,&quot;./style&quot;:1171,&quot;./style_one&quot;:1172}],1168:[function(t,e,r){&quot;use strict&quot;;e.exports={hiddenlabels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},piecolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendpiecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1169:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;hiddenlabels&quot;),r(&quot;piecolorway&quot;,e.colorway),r(&quot;extendpiecolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1168}],1170:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib&quot;),c=l.strScale,u=l.strTranslate,f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../bar/uniform_text&quot;),p=h.recordMinTextSize,d=h.clearMinTextSize,g=t(&quot;../bar/constants&quot;).TEXTPAD,m=t(&quot;./helpers&quot;),v=t(&quot;./event_data&quot;),y=t(&quot;../../lib&quot;).isValidTextValue;function x(t,e,r){var i=r[0],o=i.trace,s=i.cx,c=i.cy;&quot;_hasHoverLabel&quot;in o||(o._hasHoverLabel=!1),&quot;_hasHoverEvent&quot;in o||(o._hasHoverEvent=!1),t.on(&quot;mouseover&quot;,(function(t){var r=e._fullLayout,u=e._fullData[o.index];if(!e._dragging&amp;&amp;!1!==r.hovermode){var f=u.hoverinfo;if(Array.isArray(f)&amp;&amp;(f=a.castHoverinfo({hoverinfo:[m.castOption(f,t.pts)],_module:o._module},r,0)),&quot;all&quot;===f&amp;&amp;(f=&quot;label+text+value+percent+name&quot;),u.hovertemplate||&quot;none&quot;!==f&amp;&amp;&quot;skip&quot;!==f&amp;&amp;f){var h=t.rInscribed||0,p=s+t.pxmid[0]*(1-h),d=c+t.pxmid[1]*(1-h),g=r.separators,y=[];if(f&amp;&amp;-1!==f.indexOf(&quot;label&quot;)&amp;&amp;y.push(t.label),t.text=m.castOption(u.hovertext||u.text,t.pts),f&amp;&amp;-1!==f.indexOf(&quot;text&quot;)){var x=t.text;l.isValidTextValue(x)&amp;&amp;y.push(x)}t.value=t.v,t.valueLabel=m.formatPieValue(t.v,g),f&amp;&amp;-1!==f.indexOf(&quot;value&quot;)&amp;&amp;y.push(t.valueLabel),t.percent=t.v/i.vTotal,t.percentLabel=m.formatPiePercent(t.percent,g),f&amp;&amp;-1!==f.indexOf(&quot;percent&quot;)&amp;&amp;y.push(t.percentLabel);var b=u.hoverlabel,_=b.font;a.loneHover({trace:o,x0:p-h*i.r,x1:p+h*i.r,y:d,text:y.join(&quot;&lt;br&gt;&quot;),name:u.hovertemplate||-1!==f.indexOf(&quot;name&quot;)?u.name:void 0,idealAlign:t.pxmid[0]&lt;0?&quot;left&quot;:&quot;right&quot;,color:m.castOption(b.bgcolor,t.pts)||t.color,borderColor:m.castOption(b.bordercolor,t.pts),fontFamily:m.castOption(_.family,t.pts),fontSize:m.castOption(_.size,t.pts),fontColor:m.castOption(_.color,t.pts),nameLength:m.castOption(b.namelength,t.pts),textAlign:m.castOption(b.align,t.pts),hovertemplate:m.castOption(u.hovertemplate,t.pts),hovertemplateLabels:t,eventData:[v(t,u)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:e}),o._hasHoverLabel=!0}o._hasHoverEvent=!0,e.emit(&quot;plotly_hover&quot;,{points:[v(t,u)],event:n.event})}})),t.on(&quot;mouseout&quot;,(function(t){var r=e._fullLayout,i=e._fullData[o.index],s=n.select(this).datum();o._hasHoverEvent&amp;&amp;(t.originalEvent=n.event,e.emit(&quot;plotly_unhover&quot;,{points:[v(s,i)],event:n.event}),o._hasHoverEvent=!1),o._hasHoverLabel&amp;&amp;(a.loneUnhover(r._hoverlayer.node()),o._hasHoverLabel=!1)})),t.on(&quot;click&quot;,(function(t){var r=e._fullLayout,i=e._fullData[o.index];e._dragging||!1===r.hovermode||(e._hoverdata=[v(t,i)],a.click(e,n.event))}))}function b(t,e,r){var n=m.castOption(t.insidetextfont.color,e.pts);!n&amp;&amp;t._input.textfont&amp;&amp;(n=m.castOption(t._input.textfont.color,e.pts));var i=m.castOption(t.insidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,a=m.castOption(t.insidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size;return{color:n||o.contrast(e.color),family:i,size:a}}function _(t,e){for(var r,n,i=0;i&lt;t.length;i++)if((n=(r=t[i][0]).trace).title.text){var a=n.title.text;n._meta&amp;&amp;(a=l.templateString(a,n._meta));var o=s.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).text(a).call(s.font,n.title.font).call(f.convertToTspans,e),c=s.bBox(o.node(),!0);r.titleBox={width:c.width,height:c.height},o.remove()}}function w(t,e,r){var n=r.r||e.rpx1,i=e.rInscribed;if(e.startangle===e.stopangle)return{rCenter:1-i,scale:0,rotate:0,textPosAngle:0};var a,o=e.ring,s=1===o&amp;&amp;Math.abs(e.startangle-e.stopangle)===2*Math.PI,l=e.halfangle,c=e.midangle,u=r.trace.insidetextorientation,f=&quot;horizontal&quot;===u,h=&quot;tangential&quot;===u,p=&quot;radial&quot;===u,d=&quot;auto&quot;===u,g=[];if(!d){var m,v=function(r,i){if(function(t,e){var r=t.startangle,n=t.stopangle;return r&gt;e&amp;&amp;e&gt;n||r&lt;e&amp;&amp;e&lt;n}(e,r)){var s=Math.abs(r-e.startangle),l=Math.abs(r-e.stopangle),c=s&lt;l?s:l;(a=&quot;tan&quot;===i?k(t,n,o,c,0):T(t,n,o,c,Math.PI/2)).textPosAngle=r,g.push(a)}};if(f||h){for(m=4;m&gt;=-4;m-=2)v(Math.PI*m,&quot;tan&quot;);for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+1),&quot;tan&quot;)}if(f||p){for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+1.5),&quot;rad&quot;);for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+.5),&quot;rad&quot;)}}if(s||d||f){var y=Math.sqrt(t.width*t.width+t.height*t.height);if((a={scale:i*n*2/y,rCenter:1-i,rotate:0}).textPosAngle=(e.startangle+e.stopangle)/2,a.scale&gt;=1)return a;g.push(a)}(d||p)&amp;&amp;((a=T(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,g.push(a)),(d||h)&amp;&amp;((a=k(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,g.push(a));for(var x=0,b=0,_=0;_&lt;g.length;_++){var w=g[_].scale;if(b&lt;w&amp;&amp;(b=w,x=_),!d&amp;&amp;b&gt;=1)break}return g[x]}function T(t,e,r,n,i){e=Math.max(0,e-2*g);var a=t.width/t.height,o=S(a,n,e,r);return{scale:2*o/t.height,rCenter:M(a,o/e),rotate:A(i)}}function k(t,e,r,n,i){e=Math.max(0,e-2*g);var a=t.height/t.width,o=S(a,n,e,r);return{scale:2*o/t.width,rCenter:M(a,o/e),rotate:A(i+Math.PI/2)}}function M(t,e){return Math.cos(e)-t*e}function A(t){return(180/Math.PI*t+720)%180-90}function S(t,e,r,n){var i=t+1/(2*Math.tan(e));return r*Math.min(1/(Math.sqrt(i*i+.5)+i),n/(Math.sqrt(t*t+n/2)+t))}function E(t,e){return t.v!==e.vTotal||e.trace.hole?Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2):1}function C(t,e){var r=e.pxmid[0],n=e.pxmid[1],i=t.width/2,a=t.height/2;return r&lt;0&amp;&amp;(i*=-1),n&lt;0&amp;&amp;(a*=-1),{scale:1,rCenter:1,rotate:0,x:i+Math.abs(a)*(i&gt;0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function L(t,e){var r,n,i,a=t.trace,o={x:t.cx,y:t.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=P(a),-1!==a.title.position.indexOf(&quot;top&quot;)?(o.y-=(1+i)*t.r,s.ty-=t.titleBox.height):-1!==a.title.position.indexOf(&quot;bottom&quot;)&amp;&amp;(o.y+=(1+i)*t.r);var l,c,u=(l=t.r,c=t.trace.aspectratio,l/(void 0===c?1:c)),f=e.w*(a.domain.x[1]-a.domain.x[0])/2;return-1!==a.title.position.indexOf(&quot;left&quot;)?(f+=u,o.x-=(1+i)*u,s.tx+=t.titleBox.width/2):-1!==a.title.position.indexOf(&quot;center&quot;)?f*=2:-1!==a.title.position.indexOf(&quot;right&quot;)&amp;&amp;(f+=u,o.x+=(1+i)*u,s.tx-=t.titleBox.width/2),r=f/t.titleBox.width,n=I(t,e)/t.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function I(t,e){var r=t.trace,n=e.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(t.titleBox.height,n/2)}function P(t){var e,r=t.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,e=0;e&lt;t.pull.length;e++)t.pull[e]&gt;r&amp;&amp;(r=t.pull[e]);return r}function z(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i=t[n][0],a=i.trace,o=a.domain,s=e.w*(o.x[1]-o.x[0]),l=e.h*(o.y[1]-o.y[0]);a.title.text&amp;&amp;&quot;middle center&quot;!==a.title.position&amp;&amp;(l-=I(i,e));var c=s/2,u=l/2;&quot;funnelarea&quot;!==a.type||a.scalegroup||(u/=a.aspectratio),i.r=Math.min(c,u)/(1+P(a)),i.cx=e.l+e.w*(a.domain.x[1]+a.domain.x[0])/2,i.cy=e.t+e.h*(1-a.domain.y[0])-l/2,a.title.text&amp;&amp;-1!==a.title.position.indexOf(&quot;bottom&quot;)&amp;&amp;(i.cy-=I(i,e)),a.scalegroup&amp;&amp;-1===r.indexOf(a.scalegroup)&amp;&amp;r.push(a.scalegroup)}!function(t,e){for(var r,n,i,a=0;a&lt;e.length;a++){var o=1/0,s=e[a];for(n=0;n&lt;t.length;n++)if(r=t[n][0],(i=r.trace).scalegroup===s){var l;if(&quot;pie&quot;===i.type)l=r.r*r.r;else if(&quot;funnelarea&quot;===i.type){var c,u;i.aspectratio&gt;1?(c=r.r,u=c/i.aspectratio):(u=r.r,c=u*i.aspectratio),c*=(1+i.baseratio)/2,l=c*u}o=Math.min(o,l/r.vTotal)}for(n=0;n&lt;t.length;n++)if(r=t[n][0],(i=r.trace).scalegroup===s){var f=o*r.vTotal;&quot;funnelarea&quot;===i.type&amp;&amp;(f/=(1+i.baseratio)/2,f/=i.aspectratio),r.r=Math.sqrt(f)}}}(t,r)}function O(t,e){return[t*Math.sin(e),-t*Math.cos(e)]}function D(t,e,r){var n=t._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&amp;&amp;o&amp;&amp;&quot;none&quot;!==o){var s,c=o.split(&quot;+&quot;),u=function(t){return-1!==c.indexOf(t)},f=u(&quot;label&quot;),h=u(&quot;text&quot;),p=u(&quot;value&quot;),d=u(&quot;percent&quot;),g=n.separators;if(s=f?[e.label]:[],h){var v=m.getFirstFilled(i.text,e.pts);y(v)&amp;&amp;s.push(v)}p&amp;&amp;s.push(m.formatPieValue(e.v,g)),d&amp;&amp;s.push(m.formatPiePercent(e.v/r.vTotal,g)),e.text=s.join(&quot;&lt;br&gt;&quot;)}if(a){var x=l.castOption(i,e.i,&quot;texttemplate&quot;);if(x){var b=function(t){return{label:t.label,value:t.v,valueLabel:m.formatPieValue(t.v,n.separators),percent:t.v/r.vTotal,percentLabel:m.formatPiePercent(t.v/r.vTotal,n.separators),color:t.color,text:t.text,customdata:l.castOption(i,t.i,&quot;customdata&quot;)}}(e),_=m.getFirstFilled(i.text,e.pts);(y(_)||&quot;&quot;===_)&amp;&amp;(b.text=_),e.text=l.texttemplateString(x,b,t._fullLayout._d3locale,b,i._meta||{})}else e.text=&quot;&quot;}}function R(t,e){var r=t.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(e.left+e.right)/2,o=(e.top+e.bottom)/2;t.textX=a*n-o*i,t.textY=a*i+o*n,t.noCenter=!0}e.exports={plot:function(t,e){var r=t._fullLayout,a=r._size;d(&quot;pie&quot;,r),_(e,t),z(e,a);var h=l.makeTraceGroups(r._pielayer,e,&quot;trace&quot;).each((function(e){var h=n.select(this),d=e[0],g=d.trace;!function(t){var e,r,n,i=t[0],a=i.r,o=i.trace,s=m.getRotationAngle(o.rotation),l=2*Math.PI/i.vTotal,c=&quot;px0&quot;,u=&quot;px1&quot;;if(&quot;counterclockwise&quot;===o.direction){for(e=0;e&lt;t.length&amp;&amp;t[e].hidden;e++);if(e===t.length)return;s+=l*t[e].v,l*=-1,c=&quot;px1&quot;,u=&quot;px0&quot;}for(n=O(a,s),e=0;e&lt;t.length;e++)(r=t[e]).hidden||(r[c]=n,r.startangle=s,s+=l*r.v/2,r.pxmid=O(a,s),r.midangle=s,s+=l*r.v/2,n=O(a,s),r.stopangle=s,r[u]=n,r.largeArc=r.v&gt;i.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/i.vTotal,.5),r.ring=1-o.hole,r.rInscribed=E(r,i))}(e),h.attr(&quot;stroke-linejoin&quot;,&quot;round&quot;),h.each((function(){var v=n.select(this).selectAll(&quot;g.slice&quot;).data(e);v.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),v.exit().remove();var y=[[[],[]],[[],[]]],_=!1;v.each((function(i,a){if(i.hidden)n.select(this).selectAll(&quot;path,g&quot;).remove();else{i.pointNumber=i.i,i.curveNumber=g.index,y[i.pxmid[1]&lt;0?0:1][i.pxmid[0]&lt;0?0:1].push(i);var o=d.cx,c=d.cy,u=n.select(this),h=u.selectAll(&quot;path.surface&quot;).data([i]);if(h.enter().append(&quot;path&quot;).classed(&quot;surface&quot;,!0).style({&quot;pointer-events&quot;:&quot;all&quot;}),u.call(x,t,e),g.pull){var v=+m.castOption(g.pull,i.pts)||0;v&gt;0&amp;&amp;(o+=v*i.pxmid[0],c+=v*i.pxmid[1])}i.cxFinal=o,i.cyFinal=c;var T=g.hole;if(i.v===d.vTotal){var k=&quot;M&quot;+(o+i.px0[0])+&quot;,&quot;+(c+i.px0[1])+L(i.px0,i.pxmid,!0,1)+L(i.pxmid,i.px0,!0,1)+&quot;Z&quot;;T?h.attr(&quot;d&quot;,&quot;M&quot;+(o+T*i.px0[0])+&quot;,&quot;+(c+T*i.px0[1])+L(i.px0,i.pxmid,!1,T)+L(i.pxmid,i.px0,!1,T)+&quot;Z&quot;+k):h.attr(&quot;d&quot;,k)}else{var M=L(i.px0,i.px1,!0,1);if(T){var A=1-T;h.attr(&quot;d&quot;,&quot;M&quot;+(o+T*i.px1[0])+&quot;,&quot;+(c+T*i.px1[1])+L(i.px1,i.px0,!1,T)+&quot;l&quot;+A*i.px0[0]+&quot;,&quot;+A*i.px0[1]+M+&quot;Z&quot;)}else h.attr(&quot;d&quot;,&quot;M&quot;+o+&quot;,&quot;+c+&quot;l&quot;+i.px0[0]+&quot;,&quot;+i.px0[1]+M+&quot;Z&quot;)}D(t,i,d);var S=m.castOption(g.textposition,i.pts),E=u.selectAll(&quot;g.slicetext&quot;).data(i.text&amp;&amp;&quot;none&quot;!==S?[0]:[]);E.enter().append(&quot;g&quot;).classed(&quot;slicetext&quot;,!0),E.exit().remove(),E.each((function(){var u=l.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),h=l.ensureUniformFontSize(t,&quot;outside&quot;===S?function(t,e,r){var n=m.castOption(t.outsidetextfont.color,e.pts)||m.castOption(t.textfont.color,e.pts)||r.color,i=m.castOption(t.outsidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,a=m.castOption(t.outsidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size;return{color:n,family:i,size:a}}(g,i,r.font):b(g,i,r.font));u.text(i.text).attr({class:&quot;slicetext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(s.font,h).call(f.convertToTspans,t);var v,y=s.bBox(u.node());if(&quot;outside&quot;===S)v=C(y,i);else if(v=w(y,i,d),&quot;auto&quot;===S&amp;&amp;v.scale&lt;1){var x=l.ensureUniformFontSize(t,g.outsidetextfont);u.call(s.font,x),v=C(y=s.bBox(u.node()),i)}var T=v.textPosAngle,k=void 0===T?i.pxmid:O(d.r,T);if(v.targetX=o+k[0]*v.rCenter+(v.x||0),v.targetY=c+k[1]*v.rCenter+(v.y||0),R(v,y),v.outside){var M=v.targetY;i.yLabelMin=M-y.height/2,i.yLabelMid=M,i.yLabelMax=M+y.height/2,i.labelExtraX=0,i.labelExtraY=0,_=!0}v.fontSize=h.size,p(g.type,v,r),e[a].transform=v,u.attr(&quot;transform&quot;,l.getTextTransform(v))}))}function L(t,e,r,n){var a=n*(e[0]-t[0]),o=n*(e[1]-t[1]);return&quot;a&quot;+n*d.r+&quot;,&quot;+n*d.r+&quot; 0 &quot;+i.largeArc+(r?&quot; 1 &quot;:&quot; 0 &quot;)+a+&quot;,&quot;+o}}));var T=n.select(this).selectAll(&quot;g.titletext&quot;).data(g.title.text?[0]:[]);if(T.enter().append(&quot;g&quot;).classed(&quot;titletext&quot;,!0),T.exit().remove(),T.each((function(){var e,r=l.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),i=g.title.text;g._meta&amp;&amp;(i=l.templateString(i,g._meta)),r.text(i).attr({class:&quot;titletext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(s.font,g.title.font).call(f.convertToTspans,t),e=&quot;middle center&quot;===g.title.position?function(t){var e=Math.sqrt(t.titleBox.width*t.titleBox.width+t.titleBox.height*t.titleBox.height);return{x:t.cx,y:t.cy,scale:t.trace.hole*t.r*2/e,tx:0,ty:-t.titleBox.height/2+t.trace.title.font.size}}(d):L(d,a),r.attr(&quot;transform&quot;,u(e.x,e.y)+c(Math.min(1,e.scale))+u(e.tx,e.ty))})),_&amp;&amp;function(t,e){var r,n,i,a,o,s,l,c,u,f,h,p,d;function g(t,e){return t.pxmid[1]-e.pxmid[1]}function v(t,e){return e.pxmid[1]-t.pxmid[1]}function y(t,r){r||(r={});var i,c,u,h,p=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),d=n?t.yLabelMin:t.yLabelMax,g=n?t.yLabelMax:t.yLabelMin,v=t.cyFinal+o(t.px0[1],t.px1[1]),y=p-d;if(y*l&gt;0&amp;&amp;(t.labelExtraY=y),Array.isArray(e.pull))for(c=0;c&lt;f.length;c++)(u=f[c])===t||(m.castOption(e.pull,t.pts)||0)&gt;=(m.castOption(e.pull,u.pts)||0)||((t.pxmid[1]-u.pxmid[1])*l&gt;0?(y=u.cyFinal+o(u.px0[1],u.px1[1])-d-t.labelExtraY)*l&gt;0&amp;&amp;(t.labelExtraY+=y):(g+t.labelExtraY-v)*l&gt;0&amp;&amp;(i=3*s*Math.abs(c-f.indexOf(t)),(h=u.cxFinal+a(u.px0[0],u.px1[0])+i-(t.cxFinal+t.pxmid[0])-t.labelExtraX)*s&gt;0&amp;&amp;(t.labelExtraX+=h)))}for(n=0;n&lt;2;n++)for(i=n?g:v,o=n?Math.max:Math.min,l=n?1:-1,r=0;r&lt;2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,(c=t[n][r]).sort(i),u=t[1-n][r],f=u.concat(c),p=[],h=0;h&lt;c.length;h++)void 0!==c[h].yLabelMid&amp;&amp;p.push(c[h]);for(d=!1,h=0;n&amp;&amp;h&lt;u.length;h++)if(void 0!==u[h].yLabelMid){d=u[h];break}for(h=0;h&lt;p.length;h++){var x=h&amp;&amp;p[h-1];d&amp;&amp;!h&amp;&amp;(x=d),y(p[h],x)}}}(y,g),function(t,e){t.each((function(t){var r=n.select(this);if(t.labelExtraX||t.labelExtraY){var i=r.select(&quot;g.slicetext text&quot;);t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,i.attr(&quot;transform&quot;,l.getTextTransform(t.transform));var a=t.cxFinal+t.pxmid[0],s=&quot;M&quot;+a+&quot;,&quot;+(t.cyFinal+t.pxmid[1]),c=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]&lt;0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)&gt;Math.abs(f)?s+=&quot;l&quot;+f*t.pxmid[0]/t.pxmid[1]+&quot;,&quot;+f+&quot;H&quot;+(a+t.labelExtraX+c):s+=&quot;l&quot;+t.labelExtraX+&quot;,&quot;+u+&quot;v&quot;+(f-u)+&quot;h&quot;+c}else s+=&quot;V&quot;+(t.yLabelMid+t.labelExtraY)+&quot;h&quot;+c;l.ensureSingle(r,&quot;path&quot;,&quot;textline&quot;).call(o.stroke,e.outsidetextfont.color).attr({&quot;stroke-width&quot;:Math.min(2,e.outsidetextfont.size/8),d:s,fill:&quot;none&quot;})}else r.select(&quot;path.textline&quot;).remove()}))}(v,g),_&amp;&amp;g.automargin){var k=s.bBox(h.node()),M=g.domain,A=a.w*(M.x[1]-M.x[0]),S=a.h*(M.y[1]-M.y[0]),E=(.5*A-d.r)/a.w,I=(.5*S-d.r)/a.h;i.autoMargin(t,&quot;pie.&quot;+g.uid+&quot;.automargin&quot;,{xl:M.x[0]-E,xr:M.x[1]+E,yb:M.y[0]-I,yt:M.y[1]+I,l:Math.max(d.cx-d.r-k.left,0),r:Math.max(k.right-(d.cx+d.r),0),b:Math.max(k.bottom-(d.cy+d.r),0),t:Math.max(d.cy-d.r-k.top,0),pad:5})}}))}));setTimeout((function(){h.selectAll(&quot;tspan&quot;).each((function(){var t=n.select(this);t.attr(&quot;dy&quot;)&amp;&amp;t.attr(&quot;dy&quot;,t.attr(&quot;dy&quot;))}))}),0)},formatSliceLabel:D,transformInsideText:w,determineInsideTextFont:b,positionTitleOutside:L,prerenderTitles:_,layoutAreas:z,attachFxHandlers:x,computeTransform:R}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../bar/constants&quot;:923,&quot;../bar/uniform_text&quot;:937,&quot;./event_data&quot;:1165,&quot;./helpers&quot;:1166,d3:169}],1171:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;./style_one&quot;),a=t(&quot;../bar/uniform_text&quot;).resizeText;e.exports=function(t){var e=t._fullLayout._pielayer.selectAll(&quot;.trace&quot;);a(t,e,&quot;pie&quot;),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(i,t,e)}))}))}},{&quot;../bar/uniform_text&quot;:937,&quot;./style_one&quot;:1172,d3:169}],1172:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;./helpers&quot;).castOption;e.exports=function(t,e,r){var a=r.marker.line,o=i(a.color,e.pts)||n.defaultLine,s=i(a.width,e.pts)||0;t.style(&quot;stroke-width&quot;,s).call(n.fill,e.color).call(n.stroke,o)}},{&quot;../../components/color&quot;:643,&quot;./helpers&quot;:1166}],1173:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;);e.exports={x:n.x,y:n.y,xy:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},indices:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},xbounds:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ybounds:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},text:n.text,marker:{color:{valType:&quot;color&quot;,arrayOk:!1,editType:&quot;calc&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,arrayOk:!1,editType:&quot;calc&quot;},blend:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},sizemin:{valType:&quot;number&quot;,min:.1,max:2,dflt:.5,editType:&quot;calc&quot;},sizemax:{valType:&quot;number&quot;,min:.1,dflt:20,editType:&quot;calc&quot;},border:{color:{valType:&quot;color&quot;,arrayOk:!1,editType:&quot;calc&quot;},arearatio:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},transforms:void 0}},{&quot;../scatter/attributes&quot;:1187}],1174:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-pointcloud2d&quot;),i=t(&quot;../../lib/str2rgbarray&quot;),a=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,o=t(&quot;../scatter/get_trace_color&quot;);function s(t,e){this.scene=t,this.uid=e,this.type=&quot;pointcloud&quot;,this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color=&quot;rgb(0, 0, 0)&quot;,this.name=&quot;&quot;,this.hoverinfo=&quot;all&quot;,this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=n(t.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var l=s.prototype;l.handlePick=function(t){var e=this.idToIndex[t.pointId];return{trace:this,dataCoord:t.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[2*e],this.pickXYData[2*e+1]]:[this.pickXData[e],this.pickYData[e]],textLabel:Array.isArray(this.textLabels)?this.textLabels[e]:this.textLabels,color:this.color,name:this.name,pointIndex:e,hoverinfo:this.hoverinfo}},l.update=function(t){this.index=t.index,this.textLabels=t.text,this.name=t.name,this.hoverinfo=t.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(t),this.color=o(t,{})},l.updateFast=function(t){var e,r,n,o,s,l,c=this.xData=this.pickXData=t.x,u=this.yData=this.pickYData=t.y,f=this.pickXYData=t.xy,h=t.xbounds&amp;&amp;t.ybounds,p=t.indices,d=this.bounds;if(f){if(n=f,e=f.length&gt;&gt;&gt;1,h)d[0]=t.xbounds[0],d[2]=t.xbounds[1],d[1]=t.ybounds[0],d[3]=t.ybounds[1];else for(l=0;l&lt;e;l++)o=n[2*l],s=n[2*l+1],o&lt;d[0]&amp;&amp;(d[0]=o),o&gt;d[2]&amp;&amp;(d[2]=o),s&lt;d[1]&amp;&amp;(d[1]=s),s&gt;d[3]&amp;&amp;(d[3]=s);if(p)r=p;else for(r=new Int32Array(e),l=0;l&lt;e;l++)r[l]=l}else for(e=c.length,n=new Float32Array(2*e),r=new Int32Array(e),l=0;l&lt;e;l++)o=c[l],s=u[l],r[l]=l,n[2*l]=o,n[2*l+1]=s,o&lt;d[0]&amp;&amp;(d[0]=o),o&gt;d[2]&amp;&amp;(d[2]=o),s&lt;d[1]&amp;&amp;(d[1]=s),s&gt;d[3]&amp;&amp;(d[3]=s);this.idToIndex=r,this.pointcloudOptions.idToIndex=r,this.pointcloudOptions.positions=n;var g=i(t.marker.color),m=i(t.marker.border.color),v=t.opacity*t.marker.opacity;g[3]*=v,this.pointcloudOptions.color=g;var y=t.marker.blend;if(null===y){y=c.length&lt;100||u.length&lt;100}this.pointcloudOptions.blend=y,m[3]*=v,this.pointcloudOptions.borderColor=m;var x=t.marker.sizemin,b=Math.max(t.marker.sizemax,t.marker.sizemin);this.pointcloudOptions.sizeMin=x,this.pointcloudOptions.sizeMax=b,this.pointcloudOptions.areaRatio=t.marker.border.arearatio,this.pointcloud.update(this.pointcloudOptions);var _=this.scene.xaxis,w=this.scene.yaxis,T=b/2||.5;t._extremes[_._id]=a(_,[d[0],d[2]],{ppad:T}),t._extremes[w._id]=a(w,[d[1],d[3]],{ppad:T})},l.dispose=function(){this.pointcloud.dispose()},e.exports=function(t,e){var r=new s(t,e.uid);return r.update(e),r}},{&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/autorange&quot;:827,&quot;../scatter/get_trace_color&quot;:1197,&quot;gl-pointcloud2d&quot;:324}],1175:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;);e.exports=function(t,e,r){function a(r,a){return n.coerce(t,e,i,r,a)}a(&quot;x&quot;),a(&quot;y&quot;),a(&quot;xbounds&quot;),a(&quot;ybounds&quot;),t.xy&amp;&amp;t.xy instanceof Float32Array&amp;&amp;(e.xy=t.xy),t.indices&amp;&amp;t.indices instanceof Int32Array&amp;&amp;(e.indices=t.indices),a(&quot;text&quot;),a(&quot;marker.color&quot;,r),a(&quot;marker.opacity&quot;),a(&quot;marker.blend&quot;),a(&quot;marker.sizemin&quot;),a(&quot;marker.sizemax&quot;),a(&quot;marker.border.color&quot;,r),a(&quot;marker.border.arearatio&quot;),e._length=null}},{&quot;../../lib&quot;:778,&quot;./attributes&quot;:1173}],1176:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;../scatter3d/calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;pointcloud&quot;,basePlotModule:t(&quot;../../plots/gl2d&quot;),categories:[&quot;gl&quot;,&quot;gl2d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl2d&quot;:868,&quot;../scatter3d/calc&quot;:1216,&quot;./attributes&quot;:1173,&quot;./convert&quot;:1174,&quot;./defaults&quot;:1175}],1177:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=t(&quot;../../components/fx/attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../plot_api/plot_template&quot;).templatedArray,f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../plot_api/edit_types&quot;).overrideAll;t(&quot;../../constants/docs&quot;).FORMAT_LINK;(e.exports=h({hoverinfo:f({},i.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:o.hoverlabel,domain:s({name:&quot;sankey&quot;,trace:!0}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;},valueformat:{valType:&quot;string&quot;,dflt:&quot;.3s&quot;},valuesuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;},arrangement:{valType:&quot;enumerated&quot;,values:[&quot;snap&quot;,&quot;perpendicular&quot;,&quot;freeform&quot;,&quot;fixed&quot;],dflt:&quot;snap&quot;},textfont:n({}),customdata:void 0,node:{label:{valType:&quot;data_array&quot;,dflt:[]},groups:{valType:&quot;info_array&quot;,impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:&quot;number&quot;,editType:&quot;calc&quot;}},x:{valType:&quot;data_array&quot;,dflt:[]},y:{valType:&quot;data_array&quot;,dflt:[]},color:{valType:&quot;color&quot;,arrayOk:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:a.defaultLine,arrayOk:!0},width:{valType:&quot;number&quot;,min:0,dflt:.5,arrayOk:!0}},pad:{valType:&quot;number&quot;,arrayOk:!1,min:0,dflt:20},thickness:{valType:&quot;number&quot;,arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],dflt:&quot;all&quot;},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:[&quot;value&quot;,&quot;label&quot;]})},link:{label:{valType:&quot;data_array&quot;,dflt:[]},color:{valType:&quot;color&quot;,arrayOk:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:a.defaultLine,arrayOk:!0},width:{valType:&quot;number&quot;,min:0,dflt:0,arrayOk:!0}},source:{valType:&quot;data_array&quot;,dflt:[]},target:{valType:&quot;data_array&quot;,dflt:[]},value:{valType:&quot;data_array&quot;,dflt:[]},hoverinfo:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],dflt:&quot;all&quot;},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:[&quot;value&quot;,&quot;label&quot;]}),colorscales:u(&quot;concentrationscales&quot;,{editType:&quot;calc&quot;,label:{valType:&quot;string&quot;,editType:&quot;calc&quot;,dflt:&quot;&quot;},cmax:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:1},cmin:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:0},colorscale:f(c().colorscale,{dflt:[[0,&quot;white&quot;],[1,&quot;black&quot;]]})})}},&quot;calc&quot;,&quot;nested&quot;)).transforms=void 0},{&quot;../../components/color/attributes&quot;:642,&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/fx/attributes&quot;:674,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906}],1178:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;../../plots/get_data&quot;).getModuleCalcData,a=t(&quot;./plot&quot;),o=t(&quot;../../components/fx/layout_attributes&quot;),s=t(&quot;../../lib/setcursor&quot;),l=t(&quot;../../components/dragelement&quot;),c=t(&quot;../../plots/cartesian/select&quot;).prepSelect,u=t(&quot;../../lib&quot;),f=t(&quot;../../registry&quot;);function h(t,e){var r=t._fullData[e],n=t._fullLayout,i=n.dragmode,a=&quot;pan&quot;===n.dragmode?&quot;move&quot;:&quot;crosshair&quot;,o=r._bgRect;if(&quot;pan&quot;!==i&amp;&amp;&quot;zoom&quot;!==i){s(o,a);var h={_id:&quot;x&quot;,c2p:u.identity,_offset:r._sankey.translateX,_length:r._sankey.width},p={_id:&quot;y&quot;,c2p:u.identity,_offset:r._sankey.translateY,_length:r._sankey.height},d={gd:t,element:o.node(),plotinfo:{id:e,xaxis:h,yaxis:p,fillRangeItems:u.noop},subplot:e,xaxes:[h],yaxes:[p],doneFnCompleted:function(r){var n,i=t._fullData[e],a=i.node.groups.slice(),o=[];function s(t){for(var e=i._sankey.graph.nodes,r=0;r&lt;e.length;r++)if(e[r].pointNumber===t)return e[r]}for(var l=0;l&lt;r.length;l++){var c=s(r[l].pointNumber);if(c)if(c.group){for(var u=0;u&lt;c.childrenNodes.length;u++)o.push(c.childrenNodes[u].pointNumber);a[c.pointNumber-i.node._count]=!1}else o.push(c.pointNumber)}n=a.filter(Boolean).concat([o]),f.call(&quot;_guiRestyle&quot;,t,{&quot;node.groups&quot;:[n]},e)},prepFn:function(t,e,r){c(t,e,r,d,i)}};l.init(d)}}r.name=&quot;sankey&quot;,r.baseLayoutAttrOverrides=n({hoverlabel:o.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.plot=function(t){var e=i(t.calcdata,&quot;sankey&quot;)[0];a(t,e),r.updateFx(t)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;sankey&quot;),a=e._has&amp;&amp;e._has(&quot;sankey&quot;);i&amp;&amp;!a&amp;&amp;(n._paperdiv.selectAll(&quot;.sankey&quot;).remove(),n._paperdiv.selectAll(&quot;.bgsankey&quot;).remove())},r.updateFx=function(t){for(var e=0;e&lt;t._fullData.length;e++)h(t,e)}},{&quot;../../components/dragelement&quot;:662,&quot;../../components/fx/layout_attributes&quot;:684,&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/cartesian/select&quot;:847,&quot;../../plots/get_data&quot;:865,&quot;../../registry&quot;:911,&quot;./plot&quot;:1183}],1179:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;strongly-connected-components&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/gup&quot;).wrap,o=i.isArrayOrTypedArray,s=i.isIndex,l=t(&quot;../../components/colorscale&quot;);function c(t){var e,r=t.node,a=t.link,c=[],u=o(a.color),f=o(a.customdata),h={},p={},d=a.colorscales.length;for(e=0;e&lt;d;e++){var g=a.colorscales[e],m=l.extractScale(g,{cLetter:&quot;c&quot;}),v=l.makeColorScaleFunc(m);p[g.label]=v}var y=0;for(e=0;e&lt;a.value.length;e++)a.source[e]&gt;y&amp;&amp;(y=a.source[e]),a.target[e]&gt;y&amp;&amp;(y=a.target[e]);var x,b=y+1;t.node._count=b;var _=t.node.groups,w={};for(e=0;e&lt;_.length;e++){var T=_[e];for(x=0;x&lt;T.length;x++){var k=T[x],M=b+e;w.hasOwnProperty(k)?i.warn(&quot;Node &quot;+k+&quot; is already part of a group.&quot;):w[k]=M}}var A={source:[],target:[]};for(e=0;e&lt;a.value.length;e++){var S=a.value[e],E=a.source[e],C=a.target[e];if(S&gt;0&amp;&amp;s(E,b)&amp;&amp;s(C,b)&amp;&amp;(!w.hasOwnProperty(E)||!w.hasOwnProperty(C)||w[E]!==w[C])){w.hasOwnProperty(C)&amp;&amp;(C=w[C]),w.hasOwnProperty(E)&amp;&amp;(E=w[E]),C=+C,h[E=+E]=h[C]=!0;var L=&quot;&quot;;a.label&amp;&amp;a.label[e]&amp;&amp;(L=a.label[e]);var I=null;L&amp;&amp;p.hasOwnProperty(L)&amp;&amp;(I=p[L]),c.push({pointNumber:e,label:L,color:u?a.color[e]:a.color,customdata:f?a.customdata[e]:a.customdata,concentrationscale:I,source:E,target:C,value:+S}),A.source.push(E),A.target.push(C)}}var P=b+_.length,z=o(r.color),O=o(r.customdata),D=[];for(e=0;e&lt;P;e++)if(h[e]){var R=r.label[e];D.push({group:e&gt;b-1,childrenNodes:[],pointNumber:e,label:R,color:z?r.color[e]:r.color,customdata:O?r.customdata[e]:r.customdata})}var F=!1;return function(t,e,r){for(var a=i.init2dArray(t,0),o=0;o&lt;Math.min(e.length,r.length);o++)if(i.isIndex(e[o],t)&amp;&amp;i.isIndex(r[o],t)){if(e[o]===r[o])return!0;a[e[o]].push(r[o])}return n(a).components.some((function(t){return t.length&gt;1}))}(P,A.source,A.target)&amp;&amp;(F=!0),{circular:F,links:c,nodes:D,groups:_,groupLookup:w}}e.exports=function(t,e){var r=c(e);return a({circular:r.circular,_nodes:r.nodes,_links:r.links,_groups:r.groups,_groupLookup:r.groupLookup})}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;strongly-connected-components&quot;:569}],1180:[function(t,e,r){&quot;use strict&quot;;e.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:&quot;linear&quot;,cn:{sankey:&quot;sankey&quot;,sankeyLinks:&quot;sankey-links&quot;,sankeyLink:&quot;sankey-link&quot;,sankeyNodeSet:&quot;sankey-node-set&quot;,sankeyNode:&quot;sankey-node&quot;,nodeRect:&quot;node-rect&quot;,nodeCapture:&quot;node-capture&quot;,nodeCentered:&quot;node-entered&quot;,nodeLabelGuide:&quot;node-label-guide&quot;,nodeLabel:&quot;node-label&quot;,nodeLabelTextPath:&quot;node-label-text-path&quot;}}},{}],1181:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;tinycolor2&quot;),s=t(&quot;../../plots/domain&quot;).defaults,l=t(&quot;../../components/fx/hoverlabel_defaults&quot;),c=t(&quot;../../plot_api/plot_template&quot;),u=t(&quot;../../plots/array_container_defaults&quot;);function f(t,e){function r(r,a){return n.coerce(t,e,i.link.colorscales,r,a)}r(&quot;label&quot;),r(&quot;cmin&quot;),r(&quot;cmax&quot;),r(&quot;colorscale&quot;)}e.exports=function(t,e,r,h){function p(r,a){return n.coerce(t,e,i,r,a)}var d=n.extendDeep(h.hoverlabel,t.hoverlabel),g=t.node,m=c.newContainer(e,&quot;node&quot;);function v(t,e){return n.coerce(g,m,i.node,t,e)}v(&quot;label&quot;),v(&quot;groups&quot;),v(&quot;x&quot;),v(&quot;y&quot;),v(&quot;pad&quot;),v(&quot;thickness&quot;),v(&quot;line.color&quot;),v(&quot;line.width&quot;),v(&quot;hoverinfo&quot;,t.hoverinfo),l(g,m,v,d),v(&quot;hovertemplate&quot;);var y=h.colorway;v(&quot;color&quot;,m.label.map((function(t,e){return a.addOpacity(function(t){return y[t%y.length]}(e),.8)}))),v(&quot;customdata&quot;);var x=t.link||{},b=c.newContainer(e,&quot;link&quot;);function _(t,e){return n.coerce(x,b,i.link,t,e)}_(&quot;label&quot;),_(&quot;source&quot;),_(&quot;target&quot;),_(&quot;value&quot;),_(&quot;line.color&quot;),_(&quot;line.width&quot;),_(&quot;hoverinfo&quot;,t.hoverinfo),l(x,b,_,d),_(&quot;hovertemplate&quot;);var w,T=o(h.paper_bgcolor).getLuminance()&lt;.333?&quot;rgba(255, 255, 255, 0.6)&quot;:&quot;rgba(0, 0, 0, 0.2)&quot;;_(&quot;color&quot;,n.repeat(T,b.value.length)),_(&quot;customdata&quot;),u(x,b,{name:&quot;colorscales&quot;,handleItemDefaults:f}),s(e,h,p),p(&quot;orientation&quot;),p(&quot;valueformat&quot;),p(&quot;valuesuffix&quot;),m.x.length&amp;&amp;m.y.length&amp;&amp;(w=&quot;freeform&quot;),p(&quot;arrangement&quot;,w),n.coerceFont(p,&quot;textfont&quot;,n.extendFlat({},h.font)),e._length=null}},{&quot;../../components/color&quot;:643,&quot;../../components/fx/hoverlabel_defaults&quot;:681,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1177,tinycolor2:576}],1182:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),moduleType:&quot;trace&quot;,name:&quot;sankey&quot;,basePlotModule:t(&quot;./base_plot&quot;),selectPoints:t(&quot;./select.js&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1177,&quot;./base_plot&quot;:1178,&quot;./calc&quot;:1179,&quot;./defaults&quot;:1181,&quot;./plot&quot;:1183,&quot;./select.js&quot;:1185}],1183:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;./render&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;./constants&quot;).cn,c=s._;function u(t){return&quot;&quot;!==t}function f(t,e){return t.filter((function(t){return t.key===e.traceId}))}function h(t,e){n.select(t).select(&quot;path&quot;).style(&quot;fill-opacity&quot;,e),n.select(t).select(&quot;rect&quot;).style(&quot;fill-opacity&quot;,e)}function p(t){n.select(t).select(&quot;text.name&quot;).style(&quot;fill&quot;,&quot;black&quot;)}function d(t){return function(e){return-1!==t.node.sourceLinks.indexOf(e.link)||-1!==t.node.targetLinks.indexOf(e.link)}}function g(t){return function(e){return-1!==e.node.sourceLinks.indexOf(t.link)||-1!==e.node.targetLinks.indexOf(t.link)}}function m(t,e,r){e&amp;&amp;r&amp;&amp;f(r,e).selectAll(&quot;.&quot;+l.sankeyLink).filter(d(e)).call(y.bind(0,e,r,!1))}function v(t,e,r){e&amp;&amp;r&amp;&amp;f(r,e).selectAll(&quot;.&quot;+l.sankeyLink).filter(d(e)).call(x.bind(0,e,r,!1))}function y(t,e,r,n){var i=n.datum().link.label;n.style(&quot;fill-opacity&quot;,(function(t){if(!t.link.concentrationscale)return.4})),i&amp;&amp;f(e,t).selectAll(&quot;.&quot;+l.sankeyLink).filter((function(t){return t.link.label===i})).style(&quot;fill-opacity&quot;,(function(t){if(!t.link.concentrationscale)return.4})),r&amp;&amp;f(e,t).selectAll(&quot;.&quot;+l.sankeyNode).filter(g(t)).call(m)}function x(t,e,r,n){var i=n.datum().link.label;n.style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),i&amp;&amp;f(e,t).selectAll(&quot;.&quot;+l.sankeyLink).filter((function(t){return t.link.label===i})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),r&amp;&amp;f(e,t).selectAll(l.sankeyNode).filter(g(t)).call(v)}function b(t,e){var r=t.hoverlabel||{},n=s.nestedProperty(r,e).get();return!Array.isArray(n)&amp;&amp;n}e.exports=function(t,e){for(var r=t._fullLayout,s=r._paper,f=r._size,d=0;d&lt;t._fullData.length;d++)if(t._fullData[d].visible&amp;&amp;t._fullData[d].type===l.sankey&amp;&amp;!t._fullData[d]._viewInitial){var g=t._fullData[d].node;t._fullData[d]._viewInitial={node:{groups:g.groups.slice(),x:g.x.slice(),y:g.y.slice()}}}var _=c(t,&quot;source:&quot;)+&quot; &quot;,w=c(t,&quot;target:&quot;)+&quot; &quot;,T=c(t,&quot;concentration:&quot;)+&quot; &quot;,k=c(t,&quot;incoming flow count:&quot;)+&quot; &quot;,M=c(t,&quot;outgoing flow count:&quot;)+&quot; &quot;;i(t,s,e,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{linkEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(y.bind(0,r,i,!0)),&quot;skip&quot;!==r.link.trace.link.hoverinfo&amp;&amp;(r.link.fullData=r.link.trace,t.emit(&quot;plotly_hover&quot;,{event:n.event,points:[r.link]})))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var s=i.link.trace.link;if(&quot;none&quot;!==s.hoverinfo&amp;&amp;&quot;skip&quot;!==s.hoverinfo){for(var l=[],c=0,f=0;f&lt;i.flow.links.length;f++){var d=i.flow.links[f];if(&quot;closest&quot;!==t._fullLayout.hovermode||i.link.pointNumber===d.pointNumber){i.link.pointNumber===d.pointNumber&amp;&amp;(c=f),d.fullData=d.trace,s=i.link.trace.link;var g=v(d),m={valueLabel:n.format(i.valueFormat)(d.value)+i.valueSuffix};l.push({x:g[0],y:g[1],name:m.valueLabel,text:[d.label||&quot;&quot;,_+d.source.label,w+d.target.label,d.concentrationscale?T+n.format(&quot;%0.2f&quot;)(d.flow.labelConcentration):&quot;&quot;].filter(u).join(&quot;&lt;br&gt;&quot;),color:b(s,&quot;bgcolor&quot;)||o.addOpacity(d.color,1),borderColor:b(s,&quot;bordercolor&quot;),fontFamily:b(s,&quot;font.family&quot;),fontSize:b(s,&quot;font.size&quot;),fontColor:b(s,&quot;font.color&quot;),nameLength:b(s,&quot;namelength&quot;),textAlign:b(s,&quot;align&quot;),idealAlign:n.event.x&lt;g[0]?&quot;right&quot;:&quot;left&quot;,hovertemplate:s.hovertemplate,hovertemplateLabels:m,eventData:[d]})}}a.loneHover(l,{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t,anchorIndex:c}).each((function(){i.link.concentrationscale||h(this,.65),p(this)}))}}function v(t){var e,r;t.circular?(e=(t.circularPathData.leftInnerExtent+t.circularPathData.rightInnerExtent)/2,r=t.circularPathData.verticalFullExtent):(e=(t.source.x1+t.target.x0)/2,r=(t.y0+t.y1)/2);var n=[e,r];return&quot;v&quot;===t.trace.orientation&amp;&amp;n.reverse(),n[0]+=i.parent.translateX,n[1]+=i.parent.translateY,n}},unhover:function(e,i,o){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(x.bind(0,i,o,!0)),&quot;skip&quot;!==i.link.trace.link.hoverinfo&amp;&amp;(i.link.fullData=i.link.trace,t.emit(&quot;plotly_unhover&quot;,{event:n.event,points:[i.link]})),a.loneUnhover(r._hoverlayer.node()))},select:function(e,r){var i=r.link;i.originalEvent=n.event,t._hoverdata=[i],a.click(t,{target:!0})}},nodeEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(m,r,i),&quot;skip&quot;!==r.node.trace.node.hoverinfo&amp;&amp;(r.node.fullData=r.node.trace,t.emit(&quot;plotly_hover&quot;,{event:n.event,points:[r.node]})))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var o=i.node.trace.node;if(&quot;none&quot;!==o.hoverinfo&amp;&amp;&quot;skip&quot;!==o.hoverinfo){var s=n.select(e).select(&quot;.&quot;+l.nodeRect),c=t._fullLayout._paperdiv.node().getBoundingClientRect(),f=s.node().getBoundingClientRect(),d=f.left-2-c.left,g=f.right+2-c.left,m=f.top+f.height/4-c.top,v={valueLabel:n.format(i.valueFormat)(i.node.value)+i.valueSuffix};i.node.fullData=i.node.trace,t._fullLayout._calcInverseTransform(t);var y=t._fullLayout._invScaleX,x=t._fullLayout._invScaleY,_=a.loneHover({x0:y*d,x1:y*g,y:x*m,name:n.format(i.valueFormat)(i.node.value)+i.valueSuffix,text:[i.node.label,k+i.node.targetLinks.length,M+i.node.sourceLinks.length].filter(u).join(&quot;&lt;br&gt;&quot;),color:b(o,&quot;bgcolor&quot;)||i.tinyColorHue,borderColor:b(o,&quot;bordercolor&quot;),fontFamily:b(o,&quot;font.family&quot;),fontSize:b(o,&quot;font.size&quot;),fontColor:b(o,&quot;font.color&quot;),nameLength:b(o,&quot;namelength&quot;),textAlign:b(o,&quot;align&quot;),idealAlign:&quot;left&quot;,hovertemplate:o.hovertemplate,hovertemplateLabels:v,eventData:[i.node]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t});h(_,.85),p(_)}}},unhover:function(e,i,o){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(v,i,o),&quot;skip&quot;!==i.node.trace.node.hoverinfo&amp;&amp;(i.node.fullData=i.node.trace,t.emit(&quot;plotly_unhover&quot;,{event:n.event,points:[i.node]})),a.loneUnhover(r._hoverlayer.node()))},select:function(e,r,i){var o=r.node;o.originalEvent=n.event,t._hoverdata=[o],n.select(e).call(v,r,i),a.click(t,{target:!0})}}})}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;./constants&quot;:1180,&quot;./render&quot;:1184,d3:169}],1184:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;d3&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;@plotly/d3-sankey&quot;),c=t(&quot;@plotly/d3-sankey-circular&quot;),u=t(&quot;d3-force&quot;),f=t(&quot;../../lib&quot;),h=f.strTranslate,p=t(&quot;../../lib/gup&quot;),d=p.keyFun,g=p.repeat,m=p.unwrap,v=t(&quot;d3-interpolate&quot;).interpolateNumber,y=t(&quot;../../registry&quot;);function x(t,e,r){var i,o=m(e),s=o.trace,u=s.domain,h=&quot;h&quot;===s.orientation,p=s.node.pad,d=s.node.thickness,g=t.width*(u.x[1]-u.x[0]),v=t.height*(u.y[1]-u.y[0]),y=o._nodes,x=o._links,b=o.circular;(i=b?c.sankeyCircular().circularLinkGap(0):l.sankey()).iterations(n.sankeyIterations).size(h?[g,v]:[v,g]).nodeWidth(d).nodePadding(p).nodeId((function(t){return t.pointNumber})).nodes(y).links(x);var _,w,T,k=i();for(var M in i.nodePadding()&lt;p&amp;&amp;f.warn(&quot;node.pad was reduced to &quot;,i.nodePadding(),&quot; to fit within the figure.&quot;),o._groupLookup){var A,S=parseInt(o._groupLookup[M]);for(_=0;_&lt;k.nodes.length;_++)if(k.nodes[_].pointNumber===S){A=k.nodes[_];break}if(A){var E={pointNumber:parseInt(M),x0:A.x0,x1:A.x1,y0:A.y0,y1:A.y1,partOfGroup:!0,sourceLinks:[],targetLinks:[]};k.nodes.unshift(E),A.childrenNodes.unshift(E)}}if(function(){for(_=0;_&lt;k.nodes.length;_++){var t,e,r=k.nodes[_],n={};for(w=0;w&lt;r.targetLinks.length;w++)t=(e=r.targetLinks[w]).source.pointNumber+&quot;:&quot;+e.target.pointNumber,n.hasOwnProperty(t)||(n[t]=[]),n[t].push(e);var i=Object.keys(n);for(w=0;w&lt;i.length;w++){var o=n[t=i[w]],s=0,l={};for(T=0;T&lt;o.length;T++)l[(e=o[T]).label]||(l[e.label]=0),l[e.label]+=e.value,s+=e.value;for(T=0;T&lt;o.length;T++)(e=o[T]).flow={value:s,labelConcentration:l[e.label]/s,concentration:e.value/s,links:o},e.concentrationscale&amp;&amp;(e.color=a(e.concentrationscale(e.flow.labelConcentration)))}var c=0;for(w=0;w&lt;r.sourceLinks.length;w++)c+=r.sourceLinks[w].value;for(w=0;w&lt;r.sourceLinks.length;w++)(e=r.sourceLinks[w]).concentrationOut=e.value/c;var u=0;for(w=0;w&lt;r.targetLinks.length;w++)u+=r.targetLinks[w].value;for(w=0;w&lt;r.targetLinks.length;w++)(e=r.targetLinks[w]).concenrationIn=e.value/u}}(),s.node.x.length&amp;&amp;s.node.y.length){for(_=0;_&lt;Math.min(s.node.x.length,s.node.y.length,k.nodes.length);_++)if(s.node.x[_]&amp;&amp;s.node.y[_]){var C=[s.node.x[_]*g,s.node.y[_]*v];k.nodes[_].x0=C[0]-d/2,k.nodes[_].x1=C[0]+d/2;var L=k.nodes[_].y1-k.nodes[_].y0;k.nodes[_].y0=C[1]-L/2,k.nodes[_].y1=C[1]+L/2}if(&quot;snap&quot;===s.arrangement)!function(t){t.forEach((function(t){var e,r,n,i=0,a=t.length;for(t.sort((function(t,e){return t.y0-e.y0})),n=0;n&lt;a;++n)(e=t[n]).y0&gt;=i||(r=i-e.y0)&gt;1e-6&amp;&amp;(e.y0+=r,e.y1+=r),i=e.y1+p}))}(function(t){var e,r,n=t.map((function(t,e){return{x0:t.x0,index:e}})).sort((function(t,e){return t.x0-e.x0})),i=[],a=-1,o=-1/0;for(_=0;_&lt;n.length;_++){var s=t[n[_].index];s.x0&gt;o+d&amp;&amp;(a+=1,e=s.x0),o=s.x0,i[a]||(i[a]=[]),i[a].push(s),r=e-s.x0,s.x0+=r,s.x1+=r}return i}(y=k.nodes));i.update(k)}return{circular:b,key:r,trace:s,guid:f.randstr(),horizontal:h,width:g,height:v,nodePad:s.node.pad,nodeLineColor:s.node.line.color,nodeLineWidth:s.node.line.width,linkLineColor:s.link.line.color,linkLineWidth:s.link.line.width,valueFormat:s.valueformat,valueSuffix:s.valuesuffix,textFont:s.textfont,translateX:u.x[0]*t.width+t.margin.l,translateY:t.height-u.y[1]*t.height+t.margin.t,dragParallel:h?v:g,dragPerpendicular:h?g:v,arrangement:s.arrangement,sankey:i,graph:k,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}function b(t,e,r){var n=a(e.color),i=e.source.label+&quot;|&quot;+e.target.label+&quot;__&quot;+r;return e.trace=t.trace,e.curveNumber=t.trace.index,{circular:t.circular,key:i,traceId:t.key,pointNumber:e.pointNumber,link:e,tinyColorHue:o.tinyRGB(n),tinyColorAlpha:n.getAlpha(),linkPath:_,linkLineColor:t.linkLineColor,linkLineWidth:t.linkLineWidth,valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,parent:t,interactionState:t.interactionState,flow:e.flow}}function _(){return function(t){if(t.link.circular)return e=t.link,r=e.width/2,n=e.circularPathData,&quot;top&quot;===e.circularLinkType?&quot;M &quot;+n.targetX+&quot; &quot;+(n.targetY+r)+&quot; L&quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY+r)+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightSmallArcRadius+r)+&quot; 0 0 1 &quot;+(n.rightFullExtent-r)+&quot; &quot;+(n.targetY-n.rightSmallArcRadius)+&quot;L&quot;+(n.rightFullExtent-r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightLargeArcRadius+r)+&quot; 0 0 1 &quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftLargeArcRadius+r)+&quot; 0 0 1 &quot;+(n.leftFullExtent+r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;L&quot;+(n.leftFullExtent+r)+&quot; &quot;+(n.sourceY-n.leftSmallArcRadius)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftSmallArcRadius+r)+&quot; 0 0 1 &quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY-r)+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftSmallArcRadius-r)+&quot; 0 0 0 &quot;+(n.leftFullExtent-r)+&quot; &quot;+(n.sourceY-n.leftSmallArcRadius)+&quot;L&quot;+(n.leftFullExtent-r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftLargeArcRadius-r)+&quot; 0 0 0 &quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;L&quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightLargeArcRadius-r)+&quot; 0 0 0 &quot;+(n.rightFullExtent+r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;L&quot;+(n.rightFullExtent+r)+&quot; &quot;+(n.targetY-n.rightSmallArcRadius)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightSmallArcRadius-r)+&quot; 0 0 0 &quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY-r)+&quot;L&quot;+n.targetX+&quot; &quot;+(n.targetY-r)+&quot;Z&quot;:&quot;M &quot;+n.targetX+&quot; &quot;+(n.targetY-r)+&quot; L&quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY-r)+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightSmallArcRadius+r)+&quot; 0 0 0 &quot;+(n.rightFullExtent-r)+&quot; &quot;+(n.targetY+n.rightSmallArcRadius)+&quot;L&quot;+(n.rightFullExtent-r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightLargeArcRadius+r)+&quot; 0 0 0 &quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftLargeArcRadius+r)+&quot; 0 0 0 &quot;+(n.leftFullExtent+r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;L&quot;+(n.leftFullExtent+r)+&quot; &quot;+(n.sourceY+n.leftSmallArcRadius)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftSmallArcRadius+r)+&quot; 0 0 0 &quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY+r)+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftSmallArcRadius-r)+&quot; 0 0 1 &quot;+(n.leftFullExtent-r)+&quot; &quot;+(n.sourceY+n.leftSmallArcRadius)+&quot;L&quot;+(n.leftFullExtent-r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftLargeArcRadius-r)+&quot; 0 0 1 &quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;L&quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightLargeArcRadius-r)+&quot; 0 0 1 &quot;+(n.rightFullExtent+r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;L&quot;+(n.rightFullExtent+r)+&quot; &quot;+(n.targetY+n.rightSmallArcRadius)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightSmallArcRadius-r)+&quot; 0 0 1 &quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY+r)+&quot;L&quot;+n.targetX+&quot; &quot;+(n.targetY+r)+&quot;Z&quot;;var e,r,n,i=t.link.source.x1,a=t.link.target.x0,o=v(i,a),s=o(.5),l=o(.5),c=t.link.y0-t.link.width/2,u=t.link.y0+t.link.width/2,f=t.link.y1-t.link.width/2,h=t.link.y1+t.link.width/2;return&quot;M&quot;+i+&quot;,&quot;+c+&quot;C&quot;+s+&quot;,&quot;+c+&quot; &quot;+l+&quot;,&quot;+f+&quot; &quot;+a+&quot;,&quot;+f+&quot;L&quot;+a+&quot;,&quot;+h+&quot;C&quot;+l+&quot;,&quot;+h+&quot; &quot;+s+&quot;,&quot;+u+&quot; &quot;+i+&quot;,&quot;+u+&quot;Z&quot;}}function w(t,e){var r=a(e.color),i=n.nodePadAcross,s=t.nodePad/2;e.dx=e.x1-e.x0,e.dy=e.y1-e.y0;var l=e.dx,c=Math.max(.5,e.dy),u=&quot;node_&quot;+e.pointNumber;return e.group&amp;&amp;(u=f.randstr()),e.trace=t.trace,e.curveNumber=t.trace.index,{index:e.pointNumber,key:u,partOfGroup:e.partOfGroup||!1,group:e.group,traceId:t.key,trace:t.trace,node:e,nodePad:t.nodePad,nodeLineColor:t.nodeLineColor,nodeLineWidth:t.nodeLineWidth,textFont:t.textFont,size:t.horizontal?t.height:t.width,visibleWidth:Math.ceil(l),visibleHeight:c,zoneX:-i,zoneY:-s,zoneWidth:l+2*i,zoneHeight:c+2*s,labelY:t.horizontal?e.dy/2+1:e.dx/2+1,left:1===e.originalLayer,sizeAcross:t.width,forceLayouts:t.forceLayouts,horizontal:t.horizontal,darkBackground:r.getBrightness()&lt;=128,tinyColorHue:o.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,graph:t.graph,arrangement:t.arrangement,uniqueNodeLabelPathId:[t.guid,t.key,u].join(&quot;_&quot;),interactionState:t.interactionState,figure:t}}function T(t){t.attr(&quot;transform&quot;,(function(t){return h(t.node.x0.toFixed(3),t.node.y0.toFixed(3))}))}function k(t){t.call(T)}function M(t,e){t.call(k),e.attr(&quot;d&quot;,_())}function A(t){t.attr(&quot;width&quot;,(function(t){return t.node.x1-t.node.x0})).attr(&quot;height&quot;,(function(t){return t.visibleHeight}))}function S(t){return t.link.width&gt;1||t.linkLineWidth&gt;0}function E(t){return h(t.translateX,t.translateY)+(t.horizontal?&quot;matrix(1 0 0 1 0 0)&quot;:&quot;matrix(0 1 1 0 0 0)&quot;)}function C(t){return h(t.horizontal?0:t.labelY,t.horizontal?t.labelY:0)}function L(t){return i.svg.line()([[t.horizontal?t.left?-t.sizeAcross:t.visibleWidth+n.nodeTextOffsetHorizontal:n.nodeTextOffsetHorizontal,0],[t.horizontal?t.left?-n.nodeTextOffsetHorizontal:t.sizeAcross:t.visibleHeight-n.nodeTextOffsetHorizontal,0]])}function I(t){return t.horizontal?&quot;matrix(1 0 0 1 0 0)&quot;:&quot;matrix(0 1 1 0 0 0)&quot;}function P(t){return t.horizontal?&quot;scale(1 1)&quot;:&quot;scale(-1 1)&quot;}function z(t){return t.darkBackground&amp;&amp;!t.horizontal?&quot;rgb(255,255,255)&quot;:&quot;rgb(0,0,0)&quot;}function O(t){return t.horizontal&amp;&amp;t.left?&quot;100%&quot;:&quot;0%&quot;}function D(t,e,r){t.on(&quot;.basic&quot;,null).on(&quot;mouseover.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.hover(this,t,e),t.interactionState.hovered=[this,t])})).on(&quot;mousemove.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.follow(this,t),t.interactionState.hovered=[this,t])})).on(&quot;mouseout.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.unhover(this,t,e),t.interactionState.hovered=!1)})).on(&quot;click.basic&quot;,(function(t){t.interactionState.hovered&amp;&amp;(r.unhover(this,t,e),t.interactionState.hovered=!1),t.interactionState.dragInProgress||t.partOfGroup||r.select(this,t,e)}))}function R(t,e,r,a){var o=i.behavior.drag().origin((function(t){return{x:t.node.x0+t.visibleWidth/2,y:t.node.y0+t.visibleHeight/2}})).on(&quot;dragstart&quot;,(function(i){if(&quot;fixed&quot;!==i.arrangement&amp;&amp;(f.ensureSingle(a._fullLayout._infolayer,&quot;g&quot;,&quot;dragcover&quot;,(function(t){a._fullLayout._dragCover=t})),f.raiseToTop(this),i.interactionState.dragInProgress=i.node,B(i.node),i.interactionState.hovered&amp;&amp;(r.nodeEvents.unhover.apply(0,i.interactionState.hovered),i.interactionState.hovered=!1),&quot;snap&quot;===i.arrangement)){var o=i.traceId+&quot;|&quot;+i.key;i.forceLayouts[o]?i.forceLayouts[o].alpha(1):function(t,e,r,i){!function(t){for(var e=0;e&lt;t.length;e++)t[e].y=(t[e].y0+t[e].y1)/2,t[e].x=(t[e].x0+t[e].x1)/2}(r.graph.nodes);var a=r.graph.nodes.filter((function(t){return t.originalX===r.node.originalX})).filter((function(t){return!t.partOfGroup}));r.forceLayouts[e]=u.forceSimulation(a).alphaDecay(0).force(&quot;collide&quot;,u.forceCollide().radius((function(t){return t.dy/2+r.nodePad/2})).strength(1).iterations(n.forceIterations)).force(&quot;constrain&quot;,function(t,e,r,i){return function(){for(var t=0,a=0;a&lt;r.length;a++){var o=r[a];o===i.interactionState.dragInProgress?(o.x=o.lastDraggedX,o.y=o.lastDraggedY):(o.vx=(o.originalX-o.x)/n.forceTicksPerFrame,o.y=Math.min(i.size-o.dy/2,Math.max(o.dy/2,o.y))),t=Math.max(t,Math.abs(o.vx),Math.abs(o.vy))}!i.interactionState.dragInProgress&amp;&amp;t&lt;.1&amp;&amp;i.forceLayouts[e].alpha()&gt;0&amp;&amp;i.forceLayouts[e].alpha(0)}}(0,e,a,r)).stop()}(0,o,i),function(t,e,r,i,a){window.requestAnimationFrame((function o(){var s;for(s=0;s&lt;n.forceTicksPerFrame;s++)r.forceLayouts[i].tick();if(function(t){for(var e=0;e&lt;t.length;e++)t[e].y0=t[e].y-t[e].dy/2,t[e].y1=t[e].y0+t[e].dy,t[e].x0=t[e].x-t[e].dx/2,t[e].x1=t[e].x0+t[e].dx}(r.graph.nodes),r.sankey.update(r.graph),M(t.filter(N(r)),e),r.forceLayouts[i].alpha()&gt;0)window.requestAnimationFrame(o);else{var l=r.node.originalX;r.node.x0=l-r.visibleWidth/2,r.node.x1=l+r.visibleWidth/2,F(r,a)}}))}(t,e,i,o,a)}})).on(&quot;drag&quot;,(function(r){if(&quot;fixed&quot;!==r.arrangement){var n=i.event.x,a=i.event.y;&quot;snap&quot;===r.arrangement?(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2,r.node.y0=a-r.visibleHeight/2,r.node.y1=a+r.visibleHeight/2):(&quot;freeform&quot;===r.arrangement&amp;&amp;(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2),a=Math.max(0,Math.min(r.size-r.visibleHeight/2,a)),r.node.y0=a-r.visibleHeight/2,r.node.y1=a+r.visibleHeight/2),B(r.node),&quot;snap&quot;!==r.arrangement&amp;&amp;(r.sankey.update(r.graph),M(t.filter(N(r)),e))}})).on(&quot;dragend&quot;,(function(t){if(&quot;fixed&quot;!==t.arrangement){t.interactionState.dragInProgress=!1;for(var e=0;e&lt;t.node.childrenNodes.length;e++)t.node.childrenNodes[e].x=t.node.x,t.node.childrenNodes[e].y=t.node.y;&quot;snap&quot;!==t.arrangement&amp;&amp;F(t,a)}}));t.on(&quot;.drag&quot;,null).call(o)}function F(t,e){for(var r=[],n=[],i=0;i&lt;t.graph.nodes.length;i++){var a=(t.graph.nodes[i].x0+t.graph.nodes[i].x1)/2,o=(t.graph.nodes[i].y0+t.graph.nodes[i].y1)/2;r.push(a/t.figure.width),n.push(o/t.figure.height)}y.call(&quot;_guiRestyle&quot;,e,{&quot;node.x&quot;:[r],&quot;node.y&quot;:[n]},t.trace.index).then((function(){e._fullLayout._dragCover&amp;&amp;e._fullLayout._dragCover.remove()}))}function B(t){t.lastDraggedX=t.x0+t.dx/2,t.lastDraggedY=t.y0+t.dy/2}function N(t){return function(e){return e.node.originalX===t.node.originalX}}e.exports=function(t,e,r,l,c){var u=!1;f.ensureSingle(t._fullLayout._infolayer,&quot;g&quot;,&quot;first-render&quot;,(function(){u=!0}));var h=t._fullLayout._dragCover,p=r.filter((function(t){return m(t).trace.visible})).map(x.bind(null,l)),v=e.selectAll(&quot;.&quot;+n.cn.sankey).data(p,d);v.exit().remove(),v.enter().append(&quot;g&quot;).classed(n.cn.sankey,!0).style(&quot;box-sizing&quot;,&quot;content-box&quot;).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;left&quot;,0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;).style(&quot;pointer-events&quot;,&quot;auto&quot;).attr(&quot;transform&quot;,E),v.each((function(e,r){t._fullData[r]._sankey=e;var n=&quot;bgsankey-&quot;+e.trace.uid+&quot;-&quot;+r;f.ensureSingle(t._fullLayout._draggers,&quot;rect&quot;,n),t._fullData[r]._bgRect=i.select(&quot;.&quot;+n),t._fullData[r]._bgRect.style(&quot;pointer-events&quot;,&quot;all&quot;).attr(&quot;width&quot;,e.width).attr(&quot;height&quot;,e.height).attr(&quot;x&quot;,e.translateX).attr(&quot;y&quot;,e.translateY).classed(&quot;bgsankey&quot;,!0).style({fill:&quot;transparent&quot;,&quot;stroke-width&quot;:0})})),v.transition().ease(n.ease).duration(n.duration).attr(&quot;transform&quot;,E);var y=v.selectAll(&quot;.&quot;+n.cn.sankeyLinks).data(g,d);y.enter().append(&quot;g&quot;).classed(n.cn.sankeyLinks,!0).style(&quot;fill&quot;,&quot;none&quot;);var k=y.selectAll(&quot;.&quot;+n.cn.sankeyLink).data((function(t){return t.graph.links.filter((function(t){return t.value})).map(b.bind(null,t))}),d);k.enter().append(&quot;path&quot;).classed(n.cn.sankeyLink,!0).call(D,v,c.linkEvents),k.style(&quot;stroke&quot;,(function(t){return S(t)?o.tinyRGB(a(t.linkLineColor)):t.tinyColorHue})).style(&quot;stroke-opacity&quot;,(function(t){return S(t)?o.opacity(t.linkLineColor):t.tinyColorAlpha})).style(&quot;fill&quot;,(function(t){return t.tinyColorHue})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})).style(&quot;stroke-width&quot;,(function(t){return S(t)?t.linkLineWidth:1})).attr(&quot;d&quot;,_()),k.style(&quot;opacity&quot;,(function(){return t._context.staticPlot||u||h?1:0})).transition().ease(n.ease).duration(n.duration).style(&quot;opacity&quot;,1),k.exit().transition().ease(n.ease).duration(n.duration).style(&quot;opacity&quot;,0).remove();var M=v.selectAll(&quot;.&quot;+n.cn.sankeyNodeSet).data(g,d);M.enter().append(&quot;g&quot;).classed(n.cn.sankeyNodeSet,!0),M.style(&quot;cursor&quot;,(function(t){switch(t.arrangement){case&quot;fixed&quot;:return&quot;default&quot;;case&quot;perpendicular&quot;:return&quot;ns-resize&quot;;default:return&quot;move&quot;}}));var F=M.selectAll(&quot;.&quot;+n.cn.sankeyNode).data((function(t){var e=t.graph.nodes;return function(t){var e,r=[];for(e=0;e&lt;t.length;e++)t[e].originalX=(t[e].x0+t[e].x1)/2,t[e].originalY=(t[e].y0+t[e].y1)/2,-1===r.indexOf(t[e].originalX)&amp;&amp;r.push(t[e].originalX);for(r.sort((function(t,e){return t-e})),e=0;e&lt;t.length;e++)t[e].originalLayerIndex=r.indexOf(t[e].originalX),t[e].originalLayer=t[e].originalLayerIndex/(r.length-1)}(e),e.map(w.bind(null,t))}),d);F.enter().append(&quot;g&quot;).classed(n.cn.sankeyNode,!0).call(T).style(&quot;opacity&quot;,(function(e){return!t._context.staticPlot&amp;&amp;!u||e.partOfGroup?0:1})),F.call(D,v,c.nodeEvents).call(R,k,c,t),F.transition().ease(n.ease).duration(n.duration).call(T).style(&quot;opacity&quot;,(function(t){return t.partOfGroup?0:1})),F.exit().transition().ease(n.ease).duration(n.duration).style(&quot;opacity&quot;,0).remove();var B=F.selectAll(&quot;.&quot;+n.cn.nodeRect).data(g);B.enter().append(&quot;rect&quot;).classed(n.cn.nodeRect,!0).call(A),B.style(&quot;stroke-width&quot;,(function(t){return t.nodeLineWidth})).style(&quot;stroke&quot;,(function(t){return o.tinyRGB(a(t.nodeLineColor))})).style(&quot;stroke-opacity&quot;,(function(t){return o.opacity(t.nodeLineColor)})).style(&quot;fill&quot;,(function(t){return t.tinyColorHue})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),B.transition().ease(n.ease).duration(n.duration).call(A);var N=F.selectAll(&quot;.&quot;+n.cn.nodeCapture).data(g);N.enter().append(&quot;rect&quot;).classed(n.cn.nodeCapture,!0).style(&quot;fill-opacity&quot;,0),N.attr(&quot;x&quot;,(function(t){return t.zoneX})).attr(&quot;y&quot;,(function(t){return t.zoneY})).attr(&quot;width&quot;,(function(t){return t.zoneWidth})).attr(&quot;height&quot;,(function(t){return t.zoneHeight}));var j=F.selectAll(&quot;.&quot;+n.cn.nodeCentered).data(g);j.enter().append(&quot;g&quot;).classed(n.cn.nodeCentered,!0).attr(&quot;transform&quot;,C),j.transition().ease(n.ease).duration(n.duration).attr(&quot;transform&quot;,C);var U=j.selectAll(&quot;.&quot;+n.cn.nodeLabelGuide).data(g);U.enter().append(&quot;path&quot;).classed(n.cn.nodeLabelGuide,!0).attr(&quot;id&quot;,(function(t){return t.uniqueNodeLabelPathId})).attr(&quot;d&quot;,L).attr(&quot;transform&quot;,I),U.transition().ease(n.ease).duration(n.duration).attr(&quot;d&quot;,L).attr(&quot;transform&quot;,I);var V=j.selectAll(&quot;.&quot;+n.cn.nodeLabel).data(g);V.enter().append(&quot;text&quot;).classed(n.cn.nodeLabel,!0).attr(&quot;transform&quot;,P).style(&quot;cursor&quot;,&quot;default&quot;).style(&quot;fill&quot;,&quot;black&quot;),V.style(&quot;text-shadow&quot;,(function(t){return t.horizontal?&quot;-1px 1px 1px #fff, 1px 1px 1px #fff, 1px -1px 1px #fff, -1px -1px 1px #fff&quot;:&quot;none&quot;})).each((function(t){s.font(V,t.textFont)})),V.transition().ease(n.ease).duration(n.duration).attr(&quot;transform&quot;,P);var q=V.selectAll(&quot;.&quot;+n.cn.nodeLabelTextPath).data(g);q.enter().append(&quot;textPath&quot;).classed(n.cn.nodeLabelTextPath,!0).attr(&quot;alignment-baseline&quot;,&quot;middle&quot;).attr(&quot;xlink:href&quot;,(function(t){return&quot;#&quot;+t.uniqueNodeLabelPathId})).attr(&quot;startOffset&quot;,O).style(&quot;fill&quot;,z),q.text((function(t){return t.horizontal||t.node.dy&gt;5?t.node.label:&quot;&quot;})).attr(&quot;text-anchor&quot;,(function(t){return t.horizontal&amp;&amp;t.left?&quot;end&quot;:&quot;start&quot;})),q.transition().ease(n.ease).duration(n.duration).attr(&quot;startOffset&quot;,O).style(&quot;fill&quot;,z)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;../../registry&quot;:911,&quot;./constants&quot;:1180,&quot;@plotly/d3-sankey&quot;:56,&quot;@plotly/d3-sankey-circular&quot;:55,d3:169,&quot;d3-force&quot;:160,&quot;d3-interpolate&quot;:162,tinycolor2:576}],1185:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=[],n=t.cd[0].trace,i=n._sankey.graph.nodes,a=0;a&lt;i.length;a++){var o=i[a];if(!o.partOfGroup){var s=[(o.x0+o.x1)/2,(o.y0+o.y1)/2];&quot;v&quot;===n.orientation&amp;&amp;s.reverse(),e&amp;&amp;e.contains(s,!1,a,t)&amp;&amp;r.push({pointNumber:o.pointNumber})}}return r}},{}],1186:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.texttemplate,t,&quot;txt&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;),n.mergeArray(e.customdata,t,&quot;data&quot;),n.mergeArray(e.textposition,t,&quot;tp&quot;),e.textfont&amp;&amp;(n.mergeArrayCastPositive(e.textfont.size,t,&quot;ts&quot;),n.mergeArray(e.textfont.color,t,&quot;tc&quot;),n.mergeArray(e.textfont.family,t,&quot;tf&quot;));var i=e.marker;if(i){n.mergeArrayCastPositive(i.size,t,&quot;ms&quot;),n.mergeArrayCastPositive(i.opacity,t,&quot;mo&quot;),n.mergeArray(i.symbol,t,&quot;mx&quot;),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;i.line&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;));var o=i.gradient;o&amp;&amp;&quot;none&quot;!==o.type&amp;&amp;(n.mergeArray(o.type,t,&quot;mgt&quot;),n.mergeArray(o.color,t,&quot;mgc&quot;))}}},{&quot;../../lib&quot;:778}],1187:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../components/drawing/attributes&quot;).dash,l=t(&quot;../../components/drawing&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},x0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},dx:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;,anim:!0},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},y0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},dy:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;,anim:!0},xperiod:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},yperiod:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},xperiod0:{valType:&quot;any&quot;,editType:&quot;calc&quot;},yperiod0:{valType:&quot;any&quot;,editType:&quot;calc&quot;},xperiodalignment:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;middle&quot;,&quot;end&quot;],dflt:&quot;middle&quot;,editType:&quot;calc&quot;},yperiodalignment:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;middle&quot;,&quot;end&quot;],dflt:&quot;middle&quot;,editType:&quot;calc&quot;},stackgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc&quot;},groupnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;fraction&quot;,&quot;percent&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},stackgaps:{valType:&quot;enumerated&quot;,values:[&quot;infer zero&quot;,&quot;interpolate&quot;],dflt:&quot;infer zero&quot;,editType:&quot;calc&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},texttemplate:n({},{}),hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},mode:{valType:&quot;flaglist&quot;,flags:[&quot;lines&quot;,&quot;markers&quot;,&quot;text&quot;],extras:[&quot;none&quot;],editType:&quot;calc&quot;},hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;points&quot;,&quot;fills&quot;],editType:&quot;style&quot;},hovertemplate:i({},{keys:c.eventDataKeys}),line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;,anim:!0},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;,anim:!0},shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;spline&quot;,&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},smoothing:{valType:&quot;number&quot;,min:0,max:1.3,dflt:1,editType:&quot;plot&quot;},dash:u({},s,{editType:&quot;style&quot;}),simplify:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},connectgaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},cliponaxis:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},fill:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;tozeroy&quot;,&quot;tozerox&quot;,&quot;tonexty&quot;,&quot;tonextx&quot;,&quot;toself&quot;,&quot;tonext&quot;],editType:&quot;calc&quot;},fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;,anim:!0},marker:u({symbol:{valType:&quot;enumerated&quot;,values:l.symbolList,dflt:&quot;circle&quot;,arrayOk:!0,editType:&quot;style&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,arrayOk:!0,editType:&quot;style&quot;,anim:!0},size:{valType:&quot;number&quot;,min:0,dflt:6,arrayOk:!0,editType:&quot;calc&quot;,anim:!0},maxdisplayed:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},sizeref:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},sizemin:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},sizemode:{valType:&quot;enumerated&quot;,values:[&quot;diameter&quot;,&quot;area&quot;],dflt:&quot;diameter&quot;,editType:&quot;calc&quot;},line:u({width:{valType:&quot;number&quot;,min:0,arrayOk:!0,editType:&quot;style&quot;,anim:!0},editType:&quot;calc&quot;},a(&quot;marker.line&quot;,{anim:!0})),gradient:{type:{valType:&quot;enumerated&quot;,values:[&quot;radial&quot;,&quot;horizontal&quot;,&quot;vertical&quot;,&quot;none&quot;],arrayOk:!0,dflt:&quot;none&quot;,editType:&quot;calc&quot;},color:{valType:&quot;color&quot;,arrayOk:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},a(&quot;marker&quot;,{anim:!0})),selected:{marker:{opacity:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},size:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},textfont:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;},unselected:{marker:{opacity:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},size:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},textfont:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;},textposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle left&quot;,&quot;middle center&quot;,&quot;middle right&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],dflt:&quot;middle center&quot;,arrayOk:!0,editType:&quot;calc&quot;},textfont:o({editType:&quot;calc&quot;,colorEditType:&quot;style&quot;,arrayOk:!0}),r:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},t:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;}}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing&quot;:665,&quot;../../components/drawing/attributes&quot;:664,&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906,&quot;./constants&quot;:1191}],1188:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=t(&quot;./subtypes&quot;),c=t(&quot;./colorscale_calc&quot;),u=t(&quot;./arrays_to_calcdata&quot;),f=t(&quot;./calc_selection&quot;);function h(t,e,r,n,i,o,s){var c=e._length,u=t._fullLayout,f=r._id,h=n._id,p=u._firstScatter[g(e)]===e.uid,d=(m(e,u,r,n)||{}).orientation,v=e.fill;r._minDtick=0,n._minDtick=0;var y={padded:!0},x={padded:!0};s&amp;&amp;(y.ppad=x.ppad=s);var b=c&lt;2||i[0]!==i[c-1]||o[0]!==o[c-1];b&amp;&amp;(&quot;tozerox&quot;===v||&quot;tonextx&quot;===v&amp;&amp;(p||&quot;h&quot;===d))?y.tozero=!0:(e.error_y||{}).visible||&quot;tonexty&quot;!==v&amp;&amp;&quot;tozeroy&quot;!==v&amp;&amp;(l.hasMarkers(e)||l.hasText(e))||(y.padded=!1,y.ppad=0),b&amp;&amp;(&quot;tozeroy&quot;===v||&quot;tonexty&quot;===v&amp;&amp;(p||&quot;v&quot;===d))?x.tozero=!0:&quot;tonextx&quot;!==v&amp;&amp;&quot;tozerox&quot;!==v||(x.padded=!1),f&amp;&amp;(e._extremes[f]=a.findExtremes(r,i,y)),h&amp;&amp;(e._extremes[h]=a.findExtremes(n,o,x))}function p(t,e){if(l.hasMarkers(t)){var r,n=t.marker,o=1.6*(t.marker.sizeref||1);if(r=&quot;area&quot;===t.marker.sizemode?function(t){return Math.max(Math.sqrt((t||0)/o),3)}:function(t){return Math.max((t||0)/o,3)},i.isArrayOrTypedArray(n.size)){var s={type:&quot;linear&quot;};a.setConvert(s);for(var c=s.makeCalcdata(t.marker,&quot;size&quot;),u=new Array(e),f=0;f&lt;e;f++)u[f]=r(c[f]);return u}return r(n.size)}}function d(t,e){var r=g(e),n=t._firstScatter;n[r]||(n[r]=e.uid)}function g(t){var e=t.stackgroup;return t.xaxis+t.yaxis+t.type+(e?&quot;-&quot;+e:&quot;&quot;)}function m(t,e,r,n){var i=t.stackgroup;if(i){var a=e._scatterStackOpts[r._id+n._id][i],o=&quot;v&quot;===a.orientation?n:r;return&quot;linear&quot;===o.type||&quot;log&quot;===o.type?a:void 0}}e.exports={calc:function(t,e){var r,l,g,v,y,x,b=t._fullLayout,_=a.getFromId(t,e.xaxis||&quot;x&quot;),w=a.getFromId(t,e.yaxis||&quot;y&quot;),T=_.makeCalcdata(e,&quot;x&quot;),k=w.makeCalcdata(e,&quot;y&quot;),M=o(e,_,&quot;x&quot;,T),A=o(e,w,&quot;y&quot;,k),S=e._length,E=new Array(S),C=e.ids,L=m(e,b,_,w),I=!1;d(b,e);var P,z=&quot;x&quot;,O=&quot;y&quot;;L?(i.pushUnique(L.traceIndices,e._expandedIndex),(r=&quot;v&quot;===L.orientation)?(O=&quot;s&quot;,P=&quot;x&quot;):(z=&quot;s&quot;,P=&quot;y&quot;),y=&quot;interpolate&quot;===L.stackgaps):h(t,e,_,w,M,A,p(e,S));var D=!!e.xperiodalignment,R=!!e.yperiodalignment;for(l=0;l&lt;S;l++){var F=E[l]={},B=n(M[l]),N=n(A[l]);B&amp;&amp;N?(F[z]=M[l],F[O]=A[l],D&amp;&amp;(F.orig_x=T[l]),R&amp;&amp;(F.orig_y=k[l])):L&amp;&amp;(r?B:N)?(F[P]=r?M[l]:A[l],F.gap=!0,y?(F.s=s,I=!0):F.s=0):F[z]=F[O]=s,C&amp;&amp;(F.id=String(C[l]))}if(u(E,e),c(t,e),f(E,e),L){for(l=0;l&lt;E.length;)E[l][P]===s?E.splice(l,1):l++;if(i.sort(E,(function(t,e){return t[P]-e[P]||t.i-e.i})),I){for(l=0;l&lt;E.length-1&amp;&amp;E[l].gap;)l++;for((x=E[l].s)||(x=E[l].s=0),g=0;g&lt;l;g++)E[g].s=x;for(v=E.length-1;v&gt;l&amp;&amp;E[v].gap;)v--;for(x=E[v].s,g=E.length-1;g&gt;v;g--)E[g].s=x;for(;l&lt;v;)if(E[++l].gap){for(g=l+1;E[g].gap;)g++;for(var j=E[l-1][P],U=E[l-1].s,V=(E[g].s-U)/(E[g][P]-j);l&lt;g;)E[l].s=U+(E[l][P]-j)*V,l++}}}return E},calcMarkerSize:p,calcAxisExpansion:h,setFirstScatter:d,getStackOpts:m}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;./arrays_to_calcdata&quot;:1186,&quot;./calc_selection&quot;:1189,&quot;./colorscale_calc&quot;:1190,&quot;./subtypes&quot;:1212,&quot;fast-isnumeric&quot;:241}],1189:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){n.isArrayOrTypedArray(e.selectedpoints)&amp;&amp;n.tagSelected(t,e)}},{&quot;../../lib&quot;:778}],1190:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,i=t(&quot;../../components/colorscale/calc&quot;),a=t(&quot;./subtypes&quot;);e.exports=function(t,e){a.hasLines(e)&amp;&amp;n(e,&quot;line&quot;)&amp;&amp;i(t,e,{vals:e.line.color,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;}),a.hasMarkers(e)&amp;&amp;(n(e,&quot;marker&quot;)&amp;&amp;i(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),n(e,&quot;marker.line&quot;)&amp;&amp;i(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}))}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;./subtypes&quot;:1212}],1191:[function(t,e,r){&quot;use strict&quot;;e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},{}],1192:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./calc&quot;);function i(t,e,r,n,i,a,o){i[n]=!0;var s={i:null,gap:!0,s:0};if(s[o]=r,t.splice(e,0,s),e&amp;&amp;r===t[e-1][o]){var l=t[e-1];s.s=l.s,s.i=l.i,s.gap=l.gap}else a&amp;&amp;(s.s=function(t,e,r,n){var i=t[e-1],a=t[e+1];return a?i?i.s+(a.s-i.s)*(r-i[n])/(a[n]-i[n]):a.s:i.s}(t,e,r,o));e||(t[0].t=t[1].t,t[0].trace=t[1].trace,delete t[1].t,delete t[1].trace)}e.exports=function(t,e){var r=e.xaxis,a=e.yaxis,o=r._id+a._id,s=t._fullLayout._scatterStackOpts[o];if(s){var l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T=t.calcdata;for(var k in s){var M=(v=s[k]).traceIndices;if(M.length){for(y=&quot;interpolate&quot;===v.stackgaps,x=v.groupnorm,&quot;v&quot;===v.orientation?(b=&quot;x&quot;,_=&quot;y&quot;):(b=&quot;y&quot;,_=&quot;x&quot;),w=new Array(M.length),l=0;l&lt;w.length;l++)w[l]=!1;p=T[M[0]];var A=new Array(p.length);for(l=0;l&lt;p.length;l++)A[l]=p[l][b];for(l=1;l&lt;M.length;l++){for(h=T[M[l]],c=u=0;c&lt;h.length;c++){for(d=h[c][b];d&gt;A[u]&amp;&amp;u&lt;A.length;u++)i(h,c,A[u],l,w,y,b),c++;if(d!==A[u]){for(f=0;f&lt;l;f++)i(T[M[f]],u,d,f,w,y,b);A.splice(u,0,d)}u++}for(;u&lt;A.length;u++)i(h,c,A[u],l,w,y,b),c++}var S=A.length;for(c=0;c&lt;p.length;c++){for(g=p[c][_]=p[c].s,l=1;l&lt;M.length;l++)(h=T[M[l]])[0].trace._rawLength=h[0].trace._length,h[0].trace._length=S,g+=h[c].s,h[c][_]=g;if(x)for(m=(&quot;fraction&quot;===x?g:g/100)||1,l=0;l&lt;M.length;l++){var E=T[M[l]][c];E[_]/=m,E.sNorm=E.s/m}}for(l=0;l&lt;M.length;l++){var C=(h=T[M[l]])[0].trace,L=n.calcMarkerSize(C,C._rawLength),I=Array.isArray(L);if(L&amp;&amp;w[l]||I){var P=L;for(L=new Array(S),c=0;c&lt;S;c++)L[c]=h[c].gap?0:I?P[h[c].i]:P}var z=new Array(S),O=new Array(S);for(c=0;c&lt;S;c++)z[c]=h[c].x,O[c]=h[c].y;n.calcAxisExpansion(t,C,r,a,z,O,L),h[0].t.orientation=v.orientation}}}}}},{&quot;./calc&quot;:1188}],1193:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=0;e&lt;t.length;e++){var r=t[e];if(&quot;scatter&quot;===r.type){var n=r.fill;if(&quot;none&quot;!==n&amp;&amp;&quot;toself&quot;!==n&amp;&amp;(r.opacity=void 0,&quot;tonexty&quot;===n||&quot;tonextx&quot;===n))for(var i=e-1;i&gt;=0;i--){var a=t[i];if(&quot;scatter&quot;===a.type&amp;&amp;a.xaxis===r.xaxis&amp;&amp;a.yaxis===r.yaxis){a.opacity=void 0;break}}}}}},{}],1194:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;),s=t(&quot;./subtypes&quot;),l=t(&quot;./xy_defaults&quot;),c=t(&quot;./period_defaults&quot;),u=t(&quot;./stack_defaults&quot;),f=t(&quot;./marker_defaults&quot;),h=t(&quot;./line_defaults&quot;),p=t(&quot;./line_shape_defaults&quot;),d=t(&quot;./text_defaults&quot;),g=t(&quot;./fillcolor_defaults&quot;);e.exports=function(t,e,r,m){function v(r,i){return n.coerce(t,e,a,r,i)}var y=l(t,e,m,v);if(y||(e.visible=!1),e.visible){c(t,e,m,v);var x=u(t,e,m,v),b=!x&amp;&amp;y&lt;o.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;;v(&quot;text&quot;),v(&quot;hovertext&quot;),v(&quot;mode&quot;,b),s.hasLines(e)&amp;&amp;(h(t,e,r,m,v),p(t,e,v),v(&quot;connectgaps&quot;),v(&quot;line.simplify&quot;)),s.hasMarkers(e)&amp;&amp;f(t,e,r,m,v,{gradient:!0}),s.hasText(e)&amp;&amp;(v(&quot;texttemplate&quot;),d(t,e,m,v));var _=[];(s.hasMarkers(e)||s.hasText(e))&amp;&amp;(v(&quot;cliponaxis&quot;),v(&quot;marker.maxdisplayed&quot;),_.push(&quot;points&quot;)),v(&quot;fill&quot;,x?x.fillDflt:&quot;none&quot;),&quot;none&quot;!==e.fill&amp;&amp;(g(t,e,r,v),s.hasLines(e)||p(t,e,v));var w=(e.line||{}).color,T=(e.marker||{}).color;&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||_.push(&quot;fills&quot;),v(&quot;hoveron&quot;,_.join(&quot;+&quot;)||&quot;points&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;v(&quot;hovertemplate&quot;);var k=i.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);k(t,e,w||T||r,{axis:&quot;y&quot;}),k(t,e,w||T||r,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,v)}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1187,&quot;./constants&quot;:1191,&quot;./fillcolor_defaults&quot;:1195,&quot;./line_defaults&quot;:1200,&quot;./line_shape_defaults&quot;:1202,&quot;./marker_defaults&quot;:1206,&quot;./period_defaults&quot;:1207,&quot;./stack_defaults&quot;:1210,&quot;./subtypes&quot;:1212,&quot;./text_defaults&quot;:1213,&quot;./xy_defaults&quot;:1214}],1195:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a){var o=!1;if(e.marker){var s=e.marker.color,l=(e.marker.line||{}).color;s&amp;&amp;!i(s)?o=s:l&amp;&amp;!i(l)&amp;&amp;(o=l)}a(&quot;fillcolor&quot;,n.addOpacity((e.line||{}).color||o||r,.5))}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778}],1196:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a={_fullLayout:r},o=n.getFromTrace(a,e,&quot;x&quot;),s=n.getFromTrace(a,e,&quot;y&quot;);return i.xLabel=n.tickText(o,t.x,!0).text,i.yLabel=n.tickText(s,t.y,!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1197:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;./subtypes&quot;);e.exports=function(t,e){var r,a;if(&quot;lines&quot;===t.mode)return(r=t.line.color)&amp;&amp;n.opacity(r)?r:t.fillcolor;if(&quot;none&quot;===t.mode)return t.fill?t.fillcolor:&quot;&quot;;var o=e.mcc||(t.marker||{}).color,s=e.mlcc||((t.marker||{}).line||{}).color;return(a=o&amp;&amp;n.opacity(o)?o:s&amp;&amp;n.opacity(s)&amp;&amp;(e.mlw||((t.marker||{}).line||{}).width)?s:&quot;&quot;)?n.opacity(a)&lt;.3?n.addOpacity(a,.3):a:(r=(t.line||{}).color)&amp;&amp;n.opacity(r)&amp;&amp;i.hasLines(t)&amp;&amp;t.line.width?r:t.fillcolor}},{&quot;../../components/color&quot;:643,&quot;./subtypes&quot;:1212}],1198:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/fx&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;./get_trace_color&quot;),s=t(&quot;../../components/color&quot;),l=n.fillText;e.exports=function(t,e,r,c){var u=t.cd,f=u[0].trace,h=t.xa,p=t.ya,d=h.c2p(e),g=p.c2p(r),m=[d,g],v=f.hoveron||&quot;&quot;,y=-1!==f.mode.indexOf(&quot;markers&quot;)?3:.5;if(-1!==v.indexOf(&quot;points&quot;)){var x=function(t){var e=Math.max(y,t.mrc||0),r=h.c2p(t.x)-d,n=p.c2p(t.y)-g;return Math.max(Math.sqrt(r*r+n*n)-e,1-y/e)},b=i.getDistanceFunction(c,(function(t){var e=Math.max(3,t.mrc||0),r=1-1/e,n=Math.abs(h.c2p(t.x)-d);return n&lt;e?r*n/e:n-e+r}),(function(t){var e=Math.max(3,t.mrc||0),r=1-1/e,n=Math.abs(p.c2p(t.y)-g);return n&lt;e?r*n/e:n-e+r}),x);if(i.getClosest(u,b,t),!1!==t.index){var _=u[t.index],w=h.c2p(_.x,!0),T=p.c2p(_.y,!0),k=_.mrc||1;t.index=_.i;var M=u[0].t.orientation,A=M&amp;&amp;(_.sNorm||_.s),S=&quot;h&quot;===M?A:void 0!==_.orig_x?_.orig_x:_.x,E=&quot;v&quot;===M?A:void 0!==_.orig_y?_.orig_y:_.y;return n.extendFlat(t,{color:o(f,_),x0:w-k,x1:w+k,xLabelVal:S,y0:T-k,y1:T+k,yLabelVal:E,spikeDistance:x(_),hovertemplate:f.hovertemplate}),l(_,f,t),a.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(_,f,t),[t]}}if(-1!==v.indexOf(&quot;fills&quot;)&amp;&amp;f._polygons){var C,L,I,P,z,O,D,R,F,B=f._polygons,N=[],j=!1,U=1/0,V=-1/0,q=1/0,H=-1/0;for(C=0;C&lt;B.length;C++)(I=B[C]).contains(m)&amp;&amp;(j=!j,N.push(I),q=Math.min(q,I.ymin),H=Math.max(H,I.ymax));if(j){var G=((q=Math.max(q,0))+(H=Math.min(H,p._length)))/2;for(C=0;C&lt;N.length;C++)for(P=N[C].pts,L=1;L&lt;P.length;L++)(R=P[L-1][1])&gt;G!=(F=P[L][1])&gt;=G&amp;&amp;(O=P[L-1][0],D=P[L][0],F-R&amp;&amp;(z=O+(D-O)*(G-R)/(F-R),U=Math.min(U,z),V=Math.max(V,z)));U=Math.max(U,0),V=Math.min(V,h._length);var Y=s.defaultLine;return s.opacity(f.fillcolor)?Y=f.fillcolor:s.opacity((f.line||{}).color)&amp;&amp;(Y=f.line.color),n.extendFlat(t,{distance:t.maxHoverDistance,x0:U,x1:V,y0:G,y1:G,color:Y,hovertemplate:!1}),delete t.index,f.text&amp;&amp;!Array.isArray(f.text)?t.text=String(f.text):t.text=f.name,[t]}}}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./get_trace_color&quot;:1197}],1199:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./subtypes&quot;);e.exports={hasLines:n.hasLines,hasMarkers:n.hasMarkers,hasText:n.hasText,isBubble:n.isBubble,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./cross_trace_calc&quot;),arraysToCalcdata:t(&quot;./arrays_to_calcdata&quot;),plot:t(&quot;./plot&quot;),colorbar:t(&quot;./marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;./select&quot;),animatable:!0,moduleType:&quot;trace&quot;,name:&quot;scatter&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./arrays_to_calcdata&quot;:1186,&quot;./attributes&quot;:1187,&quot;./calc&quot;:1188,&quot;./cross_trace_calc&quot;:1192,&quot;./cross_trace_defaults&quot;:1193,&quot;./defaults&quot;:1194,&quot;./format_labels&quot;:1196,&quot;./hover&quot;:1198,&quot;./marker_colorbar&quot;:1205,&quot;./plot&quot;:1208,&quot;./select&quot;:1209,&quot;./style&quot;:1211,&quot;./subtypes&quot;:1212}],1200:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray,i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;);e.exports=function(t,e,r,o,s,l){var c=(t.marker||{}).color;(s(&quot;line.color&quot;,r),i(t,&quot;line&quot;))?a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}):s(&quot;line.color&quot;,!n(c)&amp;&amp;c||r);s(&quot;line.width&quot;),(l||{}).noDash||s(&quot;line.dash&quot;)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778}],1201:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/numerical&quot;),i=n.BADNUM,a=n.LOG_CLIP,o=a+.5,s=a-.5,l=t(&quot;../../lib&quot;),c=l.segmentsIntersect,u=l.constrain,f=t(&quot;./constants&quot;);e.exports=function(t,e){var r,n,a,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S=e.xaxis,E=e.yaxis,C=&quot;log&quot;===S.type,L=&quot;log&quot;===E.type,I=S._length,P=E._length,z=e.connectGaps,O=e.baseTolerance,D=e.shape,R=&quot;linear&quot;===D,F=e.fill&amp;&amp;&quot;none&quot;!==e.fill,B=[],N=f.minTolerance,j=t.length,U=new Array(j),V=0;function q(r){var n=t[r];if(!n)return!1;var a=e.linearized?S.l2p(n.x):S.c2p(n.x),l=e.linearized?E.l2p(n.y):E.c2p(n.y);if(a===i){if(C&amp;&amp;(a=S.c2p(n.x,!0)),a===i)return!1;L&amp;&amp;l===i&amp;&amp;(a*=Math.abs(S._m*P*(S._m&gt;0?o:s)/(E._m*I*(E._m&gt;0?o:s)))),a*=1e3}if(l===i){if(L&amp;&amp;(l=E.c2p(n.y,!0)),l===i)return!1;l*=1e3}return[a,l]}function H(t,e,r,n){var i=r-t,a=n-e,o=.5-t,s=.5-e,l=i*i+a*a,c=i*o+a*s;if(c&gt;0&amp;&amp;c&lt;l){var u=o*a-s*i;if(u*u&lt;l)return!0}}function G(t,e){var r=t[0]/I,n=t[1]/P,i=Math.max(0,-r,r-1,-n,n-1);return i&amp;&amp;void 0!==M&amp;&amp;H(r,n,M,A)&amp;&amp;(i=0),i&amp;&amp;e&amp;&amp;H(r,n,e[0]/I,e[1]/P)&amp;&amp;(i=0),(1+f.toleranceGrowth*i)*O}function Y(t,e){var r=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(r*r+n*n)}var W,X,Z,J,K,Q,$,tt=f.maxScreensAway,et=-I*tt,rt=I*(1+tt),nt=-P*tt,it=P*(1+tt),at=[[et,nt,rt,nt],[rt,nt,rt,it],[rt,it,et,it],[et,it,et,nt]];function ot(t){if(t[0]&lt;et||t[0]&gt;rt||t[1]&lt;nt||t[1]&gt;it)return[u(t[0],et,rt),u(t[1],nt,it)]}function st(t,e){return t[0]===e[0]&amp;&amp;(t[0]===et||t[0]===rt)||(t[1]===e[1]&amp;&amp;(t[1]===nt||t[1]===it)||void 0)}function lt(t,e,r){return function(n,i){var a=ot(n),o=ot(i),s=[];if(a&amp;&amp;o&amp;&amp;st(a,o))return s;a&amp;&amp;s.push(a),o&amp;&amp;s.push(o);var c=2*l.constrain((n[t]+i[t])/2,e,r)-((a||n)[t]+(o||i)[t]);c&amp;&amp;((a&amp;&amp;o?c&gt;0==a[t]&gt;o[t]?a:o:a||o)[t]+=c);return s}}function ct(t){var e=t[0],r=t[1],n=e===U[V-1][0],i=r===U[V-1][1];if(!n||!i)if(V&gt;1){var a=e===U[V-2][0],o=r===U[V-2][1];n&amp;&amp;(e===et||e===rt)&amp;&amp;a?o?V--:U[V-1]=t:i&amp;&amp;(r===nt||r===it)&amp;&amp;o?a?V--:U[V-1]=t:U[V++]=t}else U[V++]=t}function ut(t){U[V-1][0]!==t[0]&amp;&amp;U[V-1][1]!==t[1]&amp;&amp;ct([Z,J]),ct(t),K=null,Z=J=0}function ft(t){if(M=t[0]/I,A=t[1]/P,W=t[0]&lt;et?et:t[0]&gt;rt?rt:0,X=t[1]&lt;nt?nt:t[1]&gt;it?it:0,W||X){if(V)if(K){var e=$(K,t);e.length&gt;1&amp;&amp;(ut(e[0]),U[V++]=e[1])}else Q=$(U[V-1],t)[0],U[V++]=Q;else U[V++]=[W||t[0],X||t[1]];var r=U[V-1];W&amp;&amp;X&amp;&amp;(r[0]!==W||r[1]!==X)?(K&amp;&amp;(Z!==W&amp;&amp;J!==X?ct(Z&amp;&amp;J?(n=K,a=(i=t)[0]-n[0],o=(i[1]-n[1])/a,(n[1]*i[0]-i[1]*n[0])/a&gt;0?[o&gt;0?et:rt,it]:[o&gt;0?rt:et,nt]):[Z||W,J||X]):Z&amp;&amp;J&amp;&amp;ct([Z,J])),ct([W,X])):Z-W&amp;&amp;J-X&amp;&amp;ct([W||Z,X||J]),K=t,Z=W,J=X}else K&amp;&amp;ut($(K,t)[0]),U[V++]=t;var n,i,a,o}for(&quot;linear&quot;===D||&quot;spline&quot;===D?$=function(t,e){for(var r=[],n=0,i=0;i&lt;4;i++){var a=at[i],o=c(t[0],t[1],e[0],e[1],a[0],a[1],a[2],a[3]);o&amp;&amp;(!n||Math.abs(o.x-r[0][0])&gt;1||Math.abs(o.y-r[0][1])&gt;1)&amp;&amp;(o=[o.x,o.y],n&amp;&amp;Y(o,t)&lt;Y(r[0],t)?r.unshift(o):r.push(o),n++)}return r}:&quot;hv&quot;===D||&quot;vh&quot;===D?$=function(t,e){var r=[],n=ot(t),i=ot(e);return n&amp;&amp;i&amp;&amp;st(n,i)||(n&amp;&amp;r.push(n),i&amp;&amp;r.push(i)),r}:&quot;hvh&quot;===D?$=lt(0,et,rt):&quot;vhv&quot;===D&amp;&amp;($=lt(1,nt,it)),r=0;r&lt;j;r++)if(n=q(r)){for(V=0,K=null,ft(n),r++;r&lt;j;r++){if(!(h=q(r))){if(z)continue;break}if(R&amp;&amp;e.simplify){var ht=q(r+1);if(y=Y(h,n),F&amp;&amp;(0===V||V===j-1)||!(y&lt;G(h,ht)*N)){for(m=[(h[0]-n[0])/y,(h[1]-n[1])/y],p=n,x=y,b=w=T=0,g=!1,a=h,r++;r&lt;t.length;r++){if(d=ht,ht=q(r+1),!d){if(z)continue;break}if(k=(v=[d[0]-n[0],d[1]-n[1]])[0]*m[1]-v[1]*m[0],w=Math.min(w,k),(T=Math.max(T,k))-w&gt;G(d,ht))break;a=d,(_=v[0]*m[0]+v[1]*m[1])&gt;x?(x=_,h=d,g=!1):_&lt;b&amp;&amp;(b=_,p=d,g=!0)}if(g?(ft(h),a!==p&amp;&amp;ft(p)):(p!==n&amp;&amp;ft(p),a!==h&amp;&amp;ft(h)),ft(a),r&gt;=t.length||!d)break;ft(d),n=d}}else ft(h)}K&amp;&amp;ct([Z||K[0],J||K[1]]),B.push(U.slice(0,V))}return B}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./constants&quot;:1191}],1202:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){&quot;spline&quot;===r(&quot;line.shape&quot;)&amp;&amp;r(&quot;line.smoothing&quot;)}},{}],1203:[function(t,e,r){&quot;use strict&quot;;var n={tonextx:1,tonexty:1,tonext:1};e.exports=function(t,e,r){var i,a,o,s,l,c={},u=!1,f=-1,h=0,p=-1;for(a=0;a&lt;r.length;a++)(o=(i=r[a][0].trace).stackgroup||&quot;&quot;)?o in c?l=c[o]:(l=c[o]=h,h++):i.fill in n&amp;&amp;p&gt;=0?l=p:(l=p=h,h++),l&lt;f&amp;&amp;(u=!0),i._groupIndex=f=l;var d=r.slice();u&amp;&amp;d.sort((function(t,e){var r=t[0].trace,n=e[0].trace;return r._groupIndex-n._groupIndex||r.index-n.index}));var g={};for(a=0;a&lt;d.length;a++)o=(i=d[a][0].trace).stackgroup||&quot;&quot;,!0===i.visible?(i._nexttrace=null,i.fill in n&amp;&amp;(s=g[o],i._prevtrace=s||null,s&amp;&amp;(s._nexttrace=i)),i._ownfill=i.fill&amp;&amp;(&quot;tozero&quot;===i.fill.substr(0,6)||&quot;toself&quot;===i.fill||&quot;to&quot;===i.fill.substr(0,2)&amp;&amp;!i._prevtrace),g[o]=i):i._prevtrace=i._nexttrace=i._ownfill=null;return d}},{}],1204:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports=function(t){var e=t.marker,r=e.sizeref||1,i=e.sizemin||0,a=&quot;area&quot;===e.sizemode?function(t){return Math.sqrt(t/r)}:function(t){return t/r};return function(t){var e=a(t/2);return n(e)&amp;&amp;e&gt;0?Math.max(e,i):0}}},{&quot;fast-isnumeric&quot;:241}],1205:[function(t,e,r){&quot;use strict&quot;;e.exports={container:&quot;marker&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;}},{}],1206:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./subtypes&quot;);e.exports=function(t,e,r,s,l,c){var u=o.isBubble(t),f=(t.line||{}).color;(c=c||{},f&amp;&amp;(r=f),l(&quot;marker.symbol&quot;),l(&quot;marker.opacity&quot;,u?.7:1),l(&quot;marker.size&quot;),l(&quot;marker.color&quot;,r),i(t,&quot;marker&quot;)&amp;&amp;a(t,e,s,l,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),c.noSelect||(l(&quot;selected.marker.color&quot;),l(&quot;unselected.marker.color&quot;),l(&quot;selected.marker.size&quot;),l(&quot;unselected.marker.size&quot;)),c.noLine||(l(&quot;marker.line.color&quot;,f&amp;&amp;!Array.isArray(f)&amp;&amp;e.marker.color!==f?f:u?n.background:n.defaultLine),i(t,&quot;marker.line&quot;)&amp;&amp;a(t,e,s,l,{prefix:&quot;marker.line.&quot;,cLetter:&quot;c&quot;}),l(&quot;marker.line.width&quot;,u?1:0)),u&amp;&amp;(l(&quot;marker.sizeref&quot;),l(&quot;marker.sizemin&quot;),l(&quot;marker.sizemode&quot;)),c.gradient)&amp;&amp;(&quot;none&quot;!==l(&quot;marker.gradient.type&quot;)&amp;&amp;l(&quot;marker.gradient.color&quot;))}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;./subtypes&quot;:1212}],1207:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).dateTick0,i=t(&quot;../../constants/numerical&quot;).ONEWEEK;function a(t,e){return n(e,t%i==0?1:0)}e.exports=function(t,e,r,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n(&quot;xperiod&quot;);o&amp;&amp;(n(&quot;xperiod0&quot;,a(o,e.xcalendar)),n(&quot;xperiodalignment&quot;))}if(i.y){var s=n(&quot;yperiod&quot;);s&amp;&amp;(n(&quot;yperiod0&quot;,a(s,e.ycalendar)),n(&quot;yperiodalignment&quot;))}}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778}],1208:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.ensureSingle,s=a.identity,l=t(&quot;../../components/drawing&quot;),c=t(&quot;./subtypes&quot;),u=t(&quot;./line_points&quot;),f=t(&quot;./link_traces&quot;),h=t(&quot;../../lib/polygon&quot;).tester;function p(t,e,r,f,p,d,g){var m;!function(t,e,r,i,o){var s=r.xaxis,l=r.yaxis,u=n.extent(a.simpleMap(s.range,s.r2c)),f=n.extent(a.simpleMap(l.range,l.r2c)),h=i[0].trace;if(!c.hasMarkers(h))return;var p=h.marker.maxdisplayed;if(0===p)return;var d=i.filter((function(t){return t.x&gt;=u[0]&amp;&amp;t.x&lt;=u[1]&amp;&amp;t.y&gt;=f[0]&amp;&amp;t.y&lt;=f[1]})),g=Math.ceil(d.length/p),m=0;o.forEach((function(t,r){var n=t[0].trace;c.hasMarkers(n)&amp;&amp;n.marker.maxdisplayed&gt;0&amp;&amp;r&lt;e&amp;&amp;m++}));var v=Math.round(m*g/3+Math.floor(m/3)*g/7.1);i.forEach((function(t){delete t.vis})),d.forEach((function(t,e){0===Math.round((e+v)%g)&amp;&amp;(t.vis=!0)}))}(0,e,r,f,p);var v=!!g&amp;&amp;g.duration&gt;0;function y(t){return v?t.transition():t}var x=r.xaxis,b=r.yaxis,_=f[0].trace,w=_.line,T=n.select(d),k=o(T,&quot;g&quot;,&quot;errorbars&quot;),M=o(T,&quot;g&quot;,&quot;lines&quot;),A=o(T,&quot;g&quot;,&quot;points&quot;),S=o(T,&quot;g&quot;,&quot;text&quot;);if(i.getComponentMethod(&quot;errorbars&quot;,&quot;plot&quot;)(t,k,r,g),!0===_.visible){var E,C;y(T).style(&quot;opacity&quot;,_.opacity);var L=_.fill.charAt(_.fill.length-1);&quot;x&quot;!==L&amp;&amp;&quot;y&quot;!==L&amp;&amp;(L=&quot;&quot;),f[0][r.isRangePlot?&quot;nodeRangePlot3&quot;:&quot;node3&quot;]=T;var I,P,z=&quot;&quot;,O=[],D=_._prevtrace;D&amp;&amp;(z=D._prevRevpath||&quot;&quot;,C=D._nextFill,O=D._polygons);var R,F,B,N,j,U,V,q=&quot;&quot;,H=&quot;&quot;,G=[],Y=a.noop;if(E=_._ownFill,c.hasLines(_)||&quot;none&quot;!==_.fill){for(C&amp;&amp;C.datum(f),-1!==[&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;].indexOf(w.shape)?(R=l.steps(w.shape),F=l.steps(w.shape.split(&quot;&quot;).reverse().join(&quot;&quot;))):R=F=&quot;spline&quot;===w.shape?function(t){var e=t[t.length-1];return t.length&gt;1&amp;&amp;t[0][0]===e[0]&amp;&amp;t[0][1]===e[1]?l.smoothclosed(t.slice(1),w.smoothing):l.smoothopen(t,w.smoothing)}:function(t){return&quot;M&quot;+t.join(&quot;L&quot;)},B=function(t){return F(t.reverse())},G=u(f,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify,fill:_.fill}),V=_._polygons=new Array(G.length),m=0;m&lt;G.length;m++)_._polygons[m]=h(G[m]);G.length&amp;&amp;(N=G[0][0],U=(j=G[G.length-1])[j.length-1]),Y=function(t){return function(e){if(I=R(e),P=B(e),q?L?(q+=&quot;L&quot;+I.substr(1),H=P+&quot;L&quot;+H.substr(1)):(q+=&quot;Z&quot;+I,H=P+&quot;Z&quot;+H):(q=I,H=P),c.hasLines(_)&amp;&amp;e.length&gt;1){var r=n.select(this);if(r.datum(f),t)y(r.style(&quot;opacity&quot;,0).attr(&quot;d&quot;,I).call(l.lineGroupStyle)).style(&quot;opacity&quot;,1);else{var i=y(r);i.attr(&quot;d&quot;,I),l.singleLineStyle(f,i)}}}}}var W=M.selectAll(&quot;.js-line&quot;).data(G);y(W.exit()).style(&quot;opacity&quot;,0).remove(),W.each(Y(!1)),W.enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).call(l.lineGroupStyle).each(Y(!0)),l.setClipUrl(W,r.layerClipId,t),G.length?(E?(E.datum(f),N&amp;&amp;U&amp;&amp;(L?(&quot;y&quot;===L?N[1]=U[1]=b.c2p(0,!0):&quot;x&quot;===L&amp;&amp;(N[0]=U[0]=x.c2p(0,!0)),y(E).attr(&quot;d&quot;,&quot;M&quot;+U+&quot;L&quot;+N+&quot;L&quot;+q.substr(1)).call(l.singleFillStyle)):y(E).attr(&quot;d&quot;,q+&quot;Z&quot;).call(l.singleFillStyle))):C&amp;&amp;(&quot;tonext&quot;===_.fill.substr(0,6)&amp;&amp;q&amp;&amp;z?(&quot;tonext&quot;===_.fill?y(C).attr(&quot;d&quot;,q+&quot;Z&quot;+z+&quot;Z&quot;).call(l.singleFillStyle):y(C).attr(&quot;d&quot;,q+&quot;L&quot;+z.substr(1)+&quot;Z&quot;).call(l.singleFillStyle),_._polygons=_._polygons.concat(O)):(Z(C),_._polygons=null)),_._prevRevpath=H,_._prevPolygons=V):(E?Z(E):C&amp;&amp;Z(C),_._polygons=_._prevRevpath=_._prevPolygons=null),A.datum(f),S.datum(f),function(e,i,a){var o,u=a[0].trace,f=c.hasMarkers(u),h=c.hasText(u),p=tt(u),d=et,g=et;if(f||h){var m=s,_=u.stackgroup,w=_&amp;&amp;&quot;infer zero&quot;===t._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;u.marker.maxdisplayed||u._needsCull?m=w?K:J:_&amp;&amp;!w&amp;&amp;(m=Q),f&amp;&amp;(d=m),h&amp;&amp;(g=m)}var T,k=(o=e.selectAll(&quot;path.point&quot;).data(d,p)).enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0);v&amp;&amp;k.call(l.pointStyle,u,t).call(l.translatePoints,x,b).style(&quot;opacity&quot;,0).transition().style(&quot;opacity&quot;,1),o.order(),f&amp;&amp;(T=l.makePointStyleFns(u)),o.each((function(e){var i=n.select(this),a=y(i);l.translatePoint(e,a,x,b)?(l.singlePointStyle(e,a,u,T,t),r.layerClipId&amp;&amp;l.hideOutsideRangePoint(e,a,x,b,u.xcalendar,u.ycalendar),u.customdata&amp;&amp;i.classed(&quot;plotly-customdata&quot;,null!==e.data&amp;&amp;void 0!==e.data)):a.remove()})),v?o.exit().transition().style(&quot;opacity&quot;,0).remove():o.exit().remove(),(o=i.selectAll(&quot;g&quot;).data(g,p)).enter().append(&quot;g&quot;).classed(&quot;textpoint&quot;,!0).append(&quot;text&quot;),o.order(),o.each((function(t){var e=n.select(this),i=y(e.select(&quot;text&quot;));l.translatePoint(t,i,x,b)?r.layerClipId&amp;&amp;l.hideOutsideRangePoint(t,e,x,b,u.xcalendar,u.ycalendar):e.remove()})),o.selectAll(&quot;text&quot;).call(l.textPointStyle,u,t).each((function(t){var e=x.c2p(t.x),r=b.c2p(t.y);n.select(this).selectAll(&quot;tspan.line&quot;).each((function(){y(n.select(this)).attr({x:e,y:r})}))})),o.exit().remove()}(A,S,f);var X=!1===_.cliponaxis?null:r.layerClipId;l.setClipUrl(A,X,t),l.setClipUrl(S,X,t)}function Z(t){y(t).attr(&quot;d&quot;,&quot;M0,0Z&quot;)}function J(t){return t.filter((function(t){return!t.gap&amp;&amp;t.vis}))}function K(t){return t.filter((function(t){return t.vis}))}function Q(t){return t.filter((function(t){return!t.gap}))}function $(t){return t.id}function tt(t){if(t.ids)return $}function et(){return!1}}e.exports=function(t,e,r,i,a,c){var u,h,d=!a,g=!!a&amp;&amp;a.duration&gt;0,m=f(t,e,r);((u=i.selectAll(&quot;g.trace&quot;).data(m,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;trace scatter trace&quot;+t[0].trace.uid})).style(&quot;stroke-miterlimit&quot;,2),u.order(),function(t,e,r){e.each((function(e){var i=o(n.select(this),&quot;g&quot;,&quot;fills&quot;);l.setClipUrl(i,r.layerClipId,t);var a=e[0].trace,c=[];a._ownfill&amp;&amp;c.push(&quot;_ownFill&quot;),a._nexttrace&amp;&amp;c.push(&quot;_nextFill&quot;);var u=i.selectAll(&quot;g&quot;).data(c,s);u.enter().append(&quot;g&quot;),u.exit().each((function(t){a[t]=null})).remove(),u.order().each((function(t){a[t]=o(n.select(this),&quot;path&quot;,&quot;js-fill&quot;)}))}))}(t,u,e),g)?(c&amp;&amp;(h=c()),n.transition().duration(a.duration).ease(a.easing).each(&quot;end&quot;,(function(){h&amp;&amp;h()})).each(&quot;interrupt&quot;,(function(){h&amp;&amp;h()})).each((function(){i.selectAll(&quot;g.trace&quot;).each((function(r,n){p(t,n,e,r,m,this,a)}))}))):u.each((function(r,n){p(t,n,e,r,m,this,a)}));d&amp;&amp;u.exit().remove(),i.selectAll(&quot;path:not([d])&quot;).remove()}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/polygon&quot;:790,&quot;../../registry&quot;:911,&quot;./line_points&quot;:1201,&quot;./link_traces&quot;:1203,&quot;./subtypes&quot;:1212,d3:169}],1209:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./subtypes&quot;);e.exports=function(t,e){var r,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[],f=s[0].trace;if(!n.hasMarkers(f)&amp;&amp;!n.hasText(f))return[];if(!1===e)for(r=0;r&lt;s.length;r++)s[r].selected=0;else for(r=0;r&lt;s.length;r++)i=s[r],a=l.c2p(i.x),o=c.c2p(i.y),null!==i.i&amp;&amp;e.contains([a,o],!1,r,t)?(u.push({pointNumber:i.i,x:l.c2d(i.x),y:c.c2d(i.y)}),i.selected=1):i.selected=0;return u}},{&quot;./subtypes&quot;:1212}],1210:[function(t,e,r){&quot;use strict&quot;;var n=[&quot;orientation&quot;,&quot;groupnorm&quot;,&quot;stackgaps&quot;];e.exports=function(t,e,r,i){var a=r._scatterStackOpts,o=i(&quot;stackgroup&quot;);if(o){var s=e.xaxis+e.yaxis,l=a[s];l||(l=a[s]={});var c=l[o],u=!1;c?c.traces.push(e):(c=l[o]={traceIndices:[],traces:[e]},u=!0);for(var f={orientation:e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;},h=0;h&lt;n.length;h++){var p=n[h],d=p+&quot;Found&quot;;if(!c[d]){var g=void 0!==t[p],m=&quot;orientation&quot;===p;if((g||u)&amp;&amp;(c[p]=i(p,f[p]),m&amp;&amp;(c.fillDflt=&quot;h&quot;===c[p]?&quot;tonextx&quot;:&quot;tonexty&quot;),g&amp;&amp;(c[d]=!0,!u&amp;&amp;(delete c.traces[0][p],m))))for(var v=0;v&lt;c.traces.length-1;v++){var y=c.traces[v];y._input.fill!==y.fill&amp;&amp;(y.fill=c.fillDflt)}}}return c}}},{}],1211:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../registry&quot;);function o(t,e,r){i.pointStyle(t.selectAll(&quot;path.point&quot;),e,r)}function s(t,e,r){i.textPointStyle(t.selectAll(&quot;text&quot;),e,r)}e.exports={style:function(t){var e=n.select(t).selectAll(&quot;g.trace.scatter&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.selectAll(&quot;g.points&quot;).each((function(e){o(n.select(this),e.trace||e[0].trace,t)})),e.selectAll(&quot;g.text&quot;).each((function(e){s(n.select(this),e.trace||e[0].trace,t)})),e.selectAll(&quot;g.trace path.js-line&quot;).call(i.lineGroupStyle),e.selectAll(&quot;g.trace path.js-fill&quot;).call(i.fillGroupStyle),a.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(e)},stylePoints:o,styleText:s,styleOnSelect:function(t,e,r){var n=e[0].trace;n.selectedpoints?(i.selectedPointStyle(r.selectAll(&quot;path.point&quot;),n),i.selectedTextStyle(r.selectAll(&quot;text&quot;),n)):(o(r,n,t),s(r,n,t))}}},{&quot;../../components/drawing&quot;:665,&quot;../../registry&quot;:911,d3:169}],1212:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports={hasLines:function(t){return t.visible&amp;&amp;t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;lines&quot;)},hasMarkers:function(t){return t.visible&amp;&amp;(t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;markers&quot;)||&quot;splom&quot;===t.type)},hasText:function(t){return t.visible&amp;&amp;t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;text&quot;)},isBubble:function(t){return n.isPlainObject(t.marker)&amp;&amp;n.isArrayOrTypedArray(t.marker.size)}}},{&quot;../../lib&quot;:778}],1213:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r,i,a){a=a||{},i(&quot;textposition&quot;),n.coerceFont(i,&quot;textfont&quot;,r.font),a.noSelect||(i(&quot;selected.textfont.color&quot;),i(&quot;unselected.textfont.color&quot;))}},{&quot;../../lib&quot;:778}],1214:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;);e.exports=function(t,e,r,a){var o,s=a(&quot;x&quot;),l=a(&quot;y&quot;);if(i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],r),s){var c=n.minRowLength(s);l?o=Math.min(c,n.minRowLength(l)):(o=c,a(&quot;y0&quot;),a(&quot;dy&quot;))}else{if(!l)return 0;o=n.minRowLength(l),a(&quot;x0&quot;),a(&quot;dx&quot;)}return e._length=o,o}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1215:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../constants/gl3d_dashes&quot;),c=t(&quot;../../constants/gl3d_markers&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat,f=t(&quot;../../plot_api/edit_types&quot;).overrideAll,h=n.line,p=n.marker,d=p.line,g=u({width:h.width,dash:{valType:&quot;enumerated&quot;,values:Object.keys(l),dflt:&quot;solid&quot;}},i(&quot;line&quot;));var m=e.exports=f({x:n.x,y:n.y,z:{valType:&quot;data_array&quot;},text:u({},n.text,{}),texttemplate:o({},{}),hovertext:u({},n.hovertext,{}),hovertemplate:a(),mode:u({},n.mode,{dflt:&quot;lines+markers&quot;}),surfaceaxis:{valType:&quot;enumerated&quot;,values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:&quot;color&quot;},projection:{x:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}},y:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}},z:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}}},connectgaps:n.connectgaps,line:g,marker:u({symbol:{valType:&quot;enumerated&quot;,values:Object.keys(c),dflt:&quot;circle&quot;,arrayOk:!0},size:u({},p.size,{dflt:8}),sizeref:p.sizeref,sizemin:p.sizemin,sizemode:p.sizemode,opacity:u({},p.opacity,{arrayOk:!1}),colorbar:p.colorbar,line:u({width:u({},d.width,{arrayOk:!1})},i(&quot;marker.line&quot;))},i(&quot;marker&quot;)),textposition:u({},n.textposition,{dflt:&quot;top center&quot;}),textfont:{color:n.textfont.color,size:n.textfont.size,family:u({},n.textfont.family,{arrayOk:!1})},hoverinfo:u({},s.hoverinfo)},&quot;calc&quot;,&quot;nested&quot;);m.x.editType=m.y.editType=m.z.editType=&quot;calc+clearAxisTypes&quot;},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../constants/gl3d_dashes&quot;:750,&quot;../../constants/gl3d_markers&quot;:751,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1216:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/arrays_to_calcdata&quot;),i=t(&quot;../scatter/colorscale_calc&quot;);e.exports=function(t,e){var r=[{x:!1,y:!1,trace:e,t:{}}];return n(r,e),i(t,e),r}},{&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/colorscale_calc&quot;:1190}],1217:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;);function i(t,e,r,i){if(!e||!e.visible)return null;for(var a=n.getComponentMethod(&quot;errorbars&quot;,&quot;makeComputeError&quot;)(e),o=new Array(t.length),s=0;s&lt;t.length;s++){var l=a(+t[s],s);if(&quot;log&quot;===i.type){var c=i.c2l(t[s]),u=t[s]-l[0],f=t[s]+l[1];if(o[s]=[(i.c2l(u,!0)-c)*r,(i.c2l(f,!0)-c)*r],u&gt;0){var h=i.c2l(u);i._lowerLogErrorBound||(i._lowerLogErrorBound=h),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,h)}}else o[s]=[-l[0]*r,l[1]*r]}return o}e.exports=function(t,e,r){var n=[i(t.x,t.error_x,e[0],r.xaxis),i(t.y,t.error_y,e[1],r.yaxis),i(t.z,t.error_z,e[2],r.zaxis)],a=function(t){for(var e=0;e&lt;t.length;e++)if(t[e])return t[e].length;return 0}(n);if(0===a)return null;for(var o=new Array(a),s=0;s&lt;a;s++){for(var l=[[0,0,0],[0,0,0]],c=0;c&lt;3;c++)if(n[c])for(var u=0;u&lt;2;u++)l[u][c]=n[c][s][u];o[s]=l}return o}},{&quot;../../registry&quot;:911}],1218:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-line3d&quot;),i=t(&quot;gl-scatter3d&quot;),a=t(&quot;gl-error3d&quot;),o=t(&quot;gl-mesh3d&quot;),s=t(&quot;delaunay-triangulate&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;../../lib/str2rgbarray&quot;),u=t(&quot;../../lib/gl_format_color&quot;).formatColor,f=t(&quot;../scatter/make_bubble_size_func&quot;),h=t(&quot;../../constants/gl3d_dashes&quot;),p=t(&quot;../../constants/gl3d_markers&quot;),d=t(&quot;../../plots/cartesian/axes&quot;),g=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,m=t(&quot;./calc_errors&quot;);function v(t,e){this.scene=t,this.uid=e,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode=&quot;&quot;,this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var y=v.prototype;function x(t){return null==t?0:t.indexOf(&quot;left&quot;)&gt;-1?-1:t.indexOf(&quot;right&quot;)&gt;-1?1:0}function b(t){return null==t?0:t.indexOf(&quot;top&quot;)&gt;-1?-1:t.indexOf(&quot;bottom&quot;)&gt;-1?1:0}function _(t,e){return e(4*t)}function w(t){return p[t]}function T(t,e,r,n,i){var a=null;if(l.isArrayOrTypedArray(t)){a=[];for(var o=0;o&lt;e;o++)void 0===t[o]?a[o]=n:a[o]=r(t[o],i)}else a=r(t,l.identity);return a}function k(t,e){var r,n,i,a,o,s,h=[],p=t.fullSceneLayout,v=t.dataScale,y=p.xaxis,k=p.yaxis,M=p.zaxis,A=e.marker,S=e.line,E=e.x||[],C=e.y||[],L=e.z||[],I=E.length,P=e.xcalendar,z=e.ycalendar,O=e.zcalendar;for(o=0;o&lt;I;o++)r=y.d2l(E[o],0,P)*v[0],n=k.d2l(C[o],0,z)*v[1],i=M.d2l(L[o],0,O)*v[2],h[o]=[r,n,i];if(Array.isArray(e.text))s=e.text;else if(void 0!==e.text)for(s=new Array(I),o=0;o&lt;I;o++)s[o]=e.text;function D(t,e){var r=p[t];return d.tickText(r,r.d2l(e),!0).text}var R=e.texttemplate;if(R){var F=t.fullLayout._d3locale,B=Array.isArray(R),N=B?Math.min(R.length,I):I,j=B?function(t){return R[t]}:function(){return R};for(s=new Array(N),o=0;o&lt;N;o++){var U={x:E[o],y:C[o],z:L[o]},V={xLabel:D(&quot;xaxis&quot;,E[o]),yLabel:D(&quot;yaxis&quot;,C[o]),zLabel:D(&quot;zaxis&quot;,L[o])},q={};g(q,e,o);var H=e._meta||{};s[o]=l.texttemplateString(j(o),V,F,q,U,H)}}if(a={position:h,mode:e.mode,text:s},&quot;line&quot;in e&amp;&amp;(a.lineColor=u(S,1,I),a.lineWidth=S.width,a.lineDashes=S.dash),&quot;marker&quot;in e){var G=f(e);a.scatterColor=u(A,1,I),a.scatterSize=T(A.size,I,_,20,G),a.scatterMarker=T(A.symbol,I,w,&quot;\u25cf&quot;),a.scatterLineWidth=A.line.width,a.scatterLineColor=u(A.line,1,I),a.scatterAngle=0}&quot;textposition&quot;in e&amp;&amp;(a.textOffset=function(t){var e=[0,0];if(Array.isArray(t))for(var r=0;r&lt;t.length;r++)e[r]=[0,0],t[r]&amp;&amp;(e[r][0]=x(t[r]),e[r][1]=b(t[r]));else e[0]=x(t),e[1]=b(t);return e}(e.textposition),a.textColor=u(e.textfont,1,I),a.textSize=T(e.textfont.size,I,l.identity,12),a.textFont=e.textfont.family,a.textAngle=0);var Y=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(a.project=[!1,!1,!1],a.projectScale=[1,1,1],a.projectOpacity=[1,1,1],o=0;o&lt;3;++o){var W=e.projection[Y[o]];(a.project[o]=W.show)&amp;&amp;(a.projectOpacity[o]=W.opacity,a.projectScale[o]=W.scale)}a.errorBounds=m(e,v,p);var X=function(t){for(var e=[0,0,0],r=[[0,0,0],[0,0,0],[0,0,0]],n=[1,1,1],i=0;i&lt;3;i++){var a=t[i];a&amp;&amp;!1!==a.copy_zstyle&amp;&amp;!1!==t[2].visible&amp;&amp;(a=t[2]),a&amp;&amp;a.visible&amp;&amp;(e[i]=a.width/2,r[i]=c(a.color),n[i]=a.thickness)}return{capSize:e,color:r,lineWidth:n}}([e.error_x,e.error_y,e.error_z]);return a.errorColor=X.color,a.errorLineWidth=X.lineWidth,a.errorCapSize=X.capSize,a.delaunayAxis=e.surfaceaxis,a.delaunayColor=c(e.surfacecolor),a}function M(t){if(l.isArrayOrTypedArray(t)){var e=t[0];return l.isArrayOrTypedArray(e)&amp;&amp;(t=e),&quot;rgb(&quot;+t.slice(0,3).map((function(t){return Math.round(255*t)}))+&quot;)&quot;}return null}function A(t){return l.isArrayOrTypedArray(t)?4===t.length&amp;&amp;&quot;number&quot;==typeof t[0]?M(t):t.map(M):null}y.handlePick=function(t){if(t.object&amp;&amp;(t.object===this.linePlot||t.object===this.delaunayMesh||t.object===this.textMarkers||t.object===this.scatterPlot)){var e=t.index=t.data.index;return t.object.highlight&amp;&amp;t.object.highlight(null),this.scatterPlot&amp;&amp;(t.object=this.scatterPlot,this.scatterPlot.highlight(t.data)),t.textLabel=&quot;&quot;,this.textLabels&amp;&amp;(Array.isArray(this.textLabels)?(this.textLabels[e]||0===this.textLabels[e])&amp;&amp;(t.textLabel=this.textLabels[e]):t.textLabel=this.textLabels),t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]],!0}},y.update=function(t){var e,r,l,c,u=this.scene.glplot.gl,f=h.solid;this.data=t;var p=k(this.scene,t);&quot;mode&quot;in p&amp;&amp;(this.mode=p.mode),&quot;lineDashes&quot;in p&amp;&amp;p.lineDashes in h&amp;&amp;(f=h[p.lineDashes]),this.color=A(p.scatterColor)||A(p.lineColor),this.dataPoints=p.position,e={gl:this.scene.glplot.gl,position:p.position,color:p.lineColor,lineWidth:p.lineWidth||1,dashes:f[0],dashScale:f[1],opacity:t.opacity,connectGaps:t.connectgaps},-1!==this.mode.indexOf(&quot;lines&quot;)?this.linePlot?this.linePlot.update(e):(this.linePlot=n(e),this.linePlot._trace=this,this.scene.glplot.add(this.linePlot)):this.linePlot&amp;&amp;(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose(),this.linePlot=null);var d=t.opacity;if(t.marker&amp;&amp;t.marker.opacity&amp;&amp;(d*=t.marker.opacity),r={gl:this.scene.glplot.gl,position:p.position,color:p.scatterColor,size:p.scatterSize,glyph:p.scatterMarker,opacity:d,orthographic:!0,lineWidth:p.scatterLineWidth,lineColor:p.scatterLineColor,project:p.project,projectScale:p.projectScale,projectOpacity:p.projectOpacity},-1!==this.mode.indexOf(&quot;markers&quot;)?this.scatterPlot?this.scatterPlot.update(r):(this.scatterPlot=i(r),this.scatterPlot._trace=this,this.scatterPlot.highlightScale=1,this.scene.glplot.add(this.scatterPlot)):this.scatterPlot&amp;&amp;(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose(),this.scatterPlot=null),c={gl:this.scene.glplot.gl,position:p.position,glyph:p.text,color:p.textColor,size:p.textSize,angle:p.textAngle,alignment:p.textOffset,font:p.textFont,orthographic:!0,lineWidth:0,project:!1,opacity:t.opacity},this.textLabels=t.hovertext||t.text,-1!==this.mode.indexOf(&quot;text&quot;)?this.textMarkers?this.textMarkers.update(c):(this.textMarkers=i(c),this.textMarkers._trace=this,this.textMarkers.highlightScale=1,this.scene.glplot.add(this.textMarkers)):this.textMarkers&amp;&amp;(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose(),this.textMarkers=null),l={gl:this.scene.glplot.gl,position:p.position,color:p.errorColor,error:p.errorBounds,lineWidth:p.errorLineWidth,capSize:p.errorCapSize,opacity:t.opacity},this.errorBars?p.errorBounds?this.errorBars.update(l):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):p.errorBounds&amp;&amp;(this.errorBars=a(l),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),p.delaunayAxis&gt;=0){var g=function(t,e,r){var n,i=(r+1)%3,a=(r+2)%3,o=[],l=[];for(n=0;n&lt;t.length;++n){var c=t[n];!isNaN(c[i])&amp;&amp;isFinite(c[i])&amp;&amp;!isNaN(c[a])&amp;&amp;isFinite(c[a])&amp;&amp;(o.push([c[i],c[a]]),l.push(n))}var u=s(o);for(n=0;n&lt;u.length;++n)for(var f=u[n],h=0;h&lt;f.length;++h)f[h]=l[f[h]];return{positions:t,cells:u,meshColor:e}}(p.position,p.delaunayColor,p.delaunayAxis);g.opacity=t.opacity,this.delaunayMesh?this.delaunayMesh.update(g):(g.gl=u,this.delaunayMesh=o(g),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&amp;&amp;(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},y.dispose=function(){this.linePlot&amp;&amp;(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&amp;&amp;(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&amp;&amp;(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&amp;&amp;(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&amp;&amp;(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())},e.exports=function(t,e){var r=new v(t,e.uid);return r.update(e),r}},{&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/gl3d_dashes&quot;:750,&quot;../../constants/gl3d_markers&quot;:751,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/make_bubble_size_func&quot;:1204,&quot;./calc_errors&quot;:1217,&quot;delaunay-triangulate&quot;:171,&quot;gl-error3d&quot;:266,&quot;gl-line3d&quot;:275,&quot;gl-mesh3d&quot;:309,&quot;gl-scatter3d&quot;:330}],1219:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,n){return i.coerce(t,e,c,r,n)}if(function(t,e,r,i){var a=0,o=r(&quot;x&quot;),s=r(&quot;y&quot;),l=r(&quot;z&quot;);n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],i),o&amp;&amp;s&amp;&amp;l&amp;&amp;(a=Math.min(o.length,s.length,l.length),e._length=e._xlength=e._ylength=e._zlength=a);return a}(t,e,f,u)){f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),a.hasLines(e)&amp;&amp;(f(&quot;connectgaps&quot;),s(t,e,r,u,f)),a.hasMarkers(e)&amp;&amp;o(t,e,r,u,f,{noSelect:!0}),a.hasText(e)&amp;&amp;(f(&quot;texttemplate&quot;),l(t,e,u,f,{noSelect:!0}));var h=(e.line||{}).color,p=(e.marker||{}).color;f(&quot;surfaceaxis&quot;)&gt;=0&amp;&amp;f(&quot;surfacecolor&quot;,h||p);for(var d=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],g=0;g&lt;3;++g){var m=&quot;projection.&quot;+d[g];f(m+&quot;.show&quot;)&amp;&amp;(f(m+&quot;.opacity&quot;),f(m+&quot;.scale&quot;))}var v=n.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);v(t,e,h||p||r,{axis:&quot;z&quot;}),v(t,e,h||p||r,{axis:&quot;y&quot;,inherit:&quot;z&quot;}),v(t,e,h||p||r,{axis:&quot;x&quot;,inherit:&quot;z&quot;})}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1215}],1220:[function(t,e,r){&quot;use strict&quot;;e.exports={plot:t(&quot;./convert&quot;),attributes:t(&quot;./attributes&quot;),markerSymbols:t(&quot;../../constants/gl3d_markers&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:[{container:&quot;marker&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;}],calc:t(&quot;./calc&quot;),moduleType:&quot;trace&quot;,name:&quot;scatter3d&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../constants/gl3d_markers&quot;:751,&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1215,&quot;./calc&quot;:1216,&quot;./convert&quot;:1218,&quot;./defaults&quot;:1219}],1221:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=n.marker,u=n.line,f=c.line;e.exports={carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},mode:l({},n.mode,{dflt:&quot;markers&quot;}),text:l({},n.text,{}),texttemplate:o({editType:&quot;plot&quot;},{keys:[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;]}),hovertext:l({},n.hovertext,{}),line:{color:u.color,width:u.width,dash:u.dash,shape:l({},u.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:u.smoothing,editType:&quot;calc&quot;},connectgaps:n.connectgaps,fill:l({},n.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:n.fillcolor,marker:l({symbol:c.symbol,opacity:c.opacity,maxdisplayed:c.maxdisplayed,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,line:l({width:f.width,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),gradient:c.gradient,editType:&quot;calc&quot;},s(&quot;marker&quot;)),textfont:n.textfont,textposition:n.textposition,selected:n.selected,unselected:n.unselected,hoverinfo:l({},i.hoverinfo,{flags:[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:n.hoveron,hovertemplate:a()}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1222:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scatter/arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../scatter/calc&quot;).calcMarkerSize,l=t(&quot;../carpet/lookup_carpetid&quot;);e.exports=function(t,e){var r=e._carpetTrace=l(t,e);if(r&amp;&amp;r.visible&amp;&amp;&quot;legendonly&quot;!==r.visible){var c;e.xaxis=r.xaxis,e.yaxis=r.yaxis;var u,f,h=e._length,p=new Array(h),d=!1;for(c=0;c&lt;h;c++)if(u=e.a[c],f=e.b[c],n(u)&amp;&amp;n(f)){var g=r.ab2xy(+u,+f,!0),m=r.isVisible(+u,+f);m||(d=!0),p[c]={x:g[0],y:g[1],a:u,b:f,vis:m}}else p[c]={x:!1,y:!1};return e._needsCull=d,p[0].carpet=r,p[0].trace=e,s(e,h),i(t,e),a(p,e),o(p,e),p}}},{&quot;../carpet/lookup_carpetid&quot;:981,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc&quot;:1188,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1223:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/constants&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/line_shape_defaults&quot;),c=t(&quot;../scatter/text_defaults&quot;),u=t(&quot;../scatter/fillcolor_defaults&quot;),f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}p(&quot;carpet&quot;),e.xaxis=&quot;x&quot;,e.yaxis=&quot;y&quot;;var d=p(&quot;a&quot;),g=p(&quot;b&quot;),m=Math.min(d.length,g.length);if(m){e._length=m,p(&quot;text&quot;),p(&quot;texttemplate&quot;),p(&quot;hovertext&quot;),p(&quot;mode&quot;,m&lt;i.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;),a.hasLines(e)&amp;&amp;(s(t,e,r,h,p),l(t,e,p),p(&quot;connectgaps&quot;)),a.hasMarkers(e)&amp;&amp;o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&amp;&amp;c(t,e,h,p);var v=[];(a.hasMarkers(e)||a.hasText(e))&amp;&amp;(p(&quot;marker.maxdisplayed&quot;),v.push(&quot;points&quot;)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||v.push(&quot;fills&quot;),&quot;fills&quot;!==p(&quot;hoveron&quot;,v.join(&quot;+&quot;)||&quot;points&quot;)&amp;&amp;p(&quot;hovertemplate&quot;),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/line_shape_defaults&quot;:1202,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1221}],1224:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=n[i];return t.a=a.a,t.b=a.b,t.y=a.y,t}},{}],1225:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r={},n=e._carpet,i=n.ab2ij([t.a,t.b]),a=Math.floor(i[0]),o=i[0]-a,s=Math.floor(i[1]),l=i[1]-s,c=n.evalxy([],a,s,o,l);return r.yLabel=c[1].toFixed(3),r}},{}],1226:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;),i=t(&quot;../../lib&quot;).fillText;e.exports=function(t,e,r,a){var o=n(t,e,r,a);if(o&amp;&amp;!1!==o[0].index){var s=o[0];if(void 0===s.index){var l=1-s.y0/t.ya._length,c=t.xa._length,u=c*l/2,f=c-u;return s.x0=Math.max(Math.min(s.x0,f),u),s.x1=Math.max(Math.min(s.x1,f),u),o}var h=s.cd[s.index];s.a=h.a,s.b=h.b,s.xLabelVal=void 0,s.yLabelVal=void 0;var p=s.trace,d=p._carpet,g=p._module.formatLabels(h,p);s.yLabel=g.yLabel,delete s.text;var m=[];if(!p.hovertemplate){var v=(h.hi||p.hoverinfo).split(&quot;+&quot;);-1!==v.indexOf(&quot;all&quot;)&amp;&amp;(v=[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;]),-1!==v.indexOf(&quot;a&quot;)&amp;&amp;y(d.aaxis,h.a),-1!==v.indexOf(&quot;b&quot;)&amp;&amp;y(d.baxis,h.b),m.push(&quot;y: &quot;+s.yLabel),-1!==v.indexOf(&quot;text&quot;)&amp;&amp;i(h,p,m),s.extraText=m.join(&quot;&lt;br&gt;&quot;)}return o}function y(t,e){var r;r=t.labelprefix&amp;&amp;t.labelprefix.length&gt;0?t.labelprefix.replace(/ = $/,&quot;&quot;):t._hovertitle,m.push(r+&quot;: &quot;+e.toFixed(3)+t.labelsuffix)}}},{&quot;../../lib&quot;:778,&quot;../scatter/hover&quot;:1198}],1227:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../scatter/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;scattercarpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;svg&quot;,&quot;carpet&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;carpetDependent&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/select&quot;:1209,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1221,&quot;./calc&quot;:1222,&quot;./defaults&quot;:1223,&quot;./event_data&quot;:1224,&quot;./format_labels&quot;:1225,&quot;./hover&quot;:1226,&quot;./plot&quot;:1228}],1228:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../components/drawing&quot;);e.exports=function(t,e,r,o){var s,l,c,u=r[0][0].carpet,f={xaxis:i.getFromId(t,u.xaxis||&quot;x&quot;),yaxis:i.getFromId(t,u.yaxis||&quot;y&quot;),plot:e.plot};for(n(t,f,r,o),s=0;s&lt;r.length;s++)l=r[s][0].trace,c=o.selectAll(&quot;g.trace&quot;+l.uid+&quot; .js-line&quot;),a.setClipUrl(c,r[s][0].carpet._clipPathId,t)}},{&quot;../../components/drawing&quot;:665,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/plot&quot;:1208}],1229:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scatter/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../plot_api/edit_types&quot;).overrideAll,f=a.marker,h=a.line,p=f.line;e.exports=u({lon:{valType:&quot;data_array&quot;},lat:{valType:&quot;data_array&quot;},locations:{valType:&quot;data_array&quot;},locationmode:{valType:&quot;enumerated&quot;,values:[&quot;ISO-3&quot;,&quot;USA-states&quot;,&quot;country names&quot;,&quot;geojson-id&quot;],dflt:&quot;ISO-3&quot;},geojson:{valType:&quot;any&quot;,editType:&quot;calc&quot;},featureidkey:{valType:&quot;string&quot;,editType:&quot;calc&quot;,dflt:&quot;id&quot;},mode:c({},a.mode,{dflt:&quot;markers&quot;}),text:c({},a.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;lat&quot;,&quot;lon&quot;,&quot;location&quot;,&quot;text&quot;]}),hovertext:c({},a.hovertext,{}),textfont:a.textfont,textposition:a.textposition,line:{color:h.color,width:h.width,dash:l},connectgaps:a.connectgaps,marker:c({symbol:f.symbol,opacity:f.opacity,size:f.size,sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,colorbar:f.colorbar,line:c({width:p.width},s(&quot;marker.line&quot;)),gradient:f.gradient},s(&quot;marker&quot;)),fill:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;toself&quot;],dflt:&quot;none&quot;},fillcolor:a.fillcolor,selected:a.selected,unselected:a.unselected,hoverinfo:c({},o.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;location&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n()},&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing/attributes&quot;:664,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1230:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../scatter/colorscale_calc&quot;),o=t(&quot;../scatter/arrays_to_calcdata&quot;),s=t(&quot;../scatter/calc_selection&quot;),l=t(&quot;../../lib&quot;)._;function c(t){return t&amp;&amp;&quot;string&quot;==typeof t}e.exports=function(t,e){var r,u=Array.isArray(e.locations),f=u?e.locations.length:e._length,h=new Array(f);r=e.geojson?function(t){return c(t)||n(t)}:c;for(var p=0;p&lt;f;p++){var d=h[p]={};if(u){var g=e.locations[p];d.loc=r(g)?g:null}else{var m=e.lon[p],v=e.lat[p];n(m)&amp;&amp;n(v)?d.lonlat=[+m,+v]:d.lonlat=[i,i]}}return o(h,e),a(t,e),s(h,e),f&amp;&amp;(h[0].t={labels:{lat:l(t,&quot;lat:&quot;)+&quot; &quot;,lon:l(t,&quot;lon:&quot;)+&quot; &quot;}}),h}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1231:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/text_defaults&quot;),l=t(&quot;../scatter/fillcolor_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}var h,p=f(&quot;locations&quot;);if(p&amp;&amp;p.length){var d,g=f(&quot;geojson&quot;);(&quot;string&quot;==typeof g&amp;&amp;&quot;&quot;!==g||n.isPlainObject(g))&amp;&amp;(d=&quot;geojson-id&quot;),&quot;geojson-id&quot;===f(&quot;locationmode&quot;,d)&amp;&amp;f(&quot;featureidkey&quot;),h=p.length}else{var m=f(&quot;lon&quot;)||[],v=f(&quot;lat&quot;)||[];h=Math.min(m.length,v.length)}h?(e._length=h,f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,u,f),f(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;a(t,e,r,u,f,{gradient:!0}),i.hasText(e)&amp;&amp;(f(&quot;texttemplate&quot;),s(t,e,u,f)),f(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1229}],1232:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){t.lon=e.lon,t.lat=e.lat,t.location=e.loc?e.loc:null;var a=n[i];return a.fIn&amp;&amp;a.fIn.properties&amp;&amp;(t.properties=a.fIn.properties),t}},{}],1233:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.geo]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=n.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=n.tickText(a,a.c2l(o[1]),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1234:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../scatter/get_trace_color&quot;),o=t(&quot;../../lib&quot;).fillText,s=t(&quot;./attributes&quot;);e.exports=function(t,e,r){var l=t.cd,c=l[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=h.projection.isLonLatOverEdges,d=h.project;if(n.getClosest(l,(function(t){var n=t.lonlat;if(n[0]===i)return 1/0;if(p(n))return 1/0;var a=d(n),o=d([e,r]),s=Math.abs(a[0]-o[0]),l=Math.abs(a[1]-o[1]),c=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(s*s+l*l)-c,1-3/c)}),t),!1!==t.index){var g=l[t.index],m=g.lonlat,v=[u.c2p(m),f.c2p(m)],y=g.mrc||1;t.x0=v[0]-y,t.x1=v[0]+y,t.y0=v[1]-y,t.y1=v[1]+y,t.loc=g.loc,t.lon=m[0],t.lat=m[1];var x={};x[c.geo]={_subplot:h};var b=c._module.formatLabels(g,c,x);return t.lonLabel=b.lonLabel,t.latLabel=b.latLabel,t.color=a(c,g),t.extraText=function(t,e,r,n){if(t.hovertemplate)return;var i=e.hi||t.hoverinfo,a=&quot;all&quot;===i?s.hoverinfo.flags:i.split(&quot;+&quot;),l=-1!==a.indexOf(&quot;location&quot;)&amp;&amp;Array.isArray(t.locations),c=-1!==a.indexOf(&quot;lon&quot;),u=-1!==a.indexOf(&quot;lat&quot;),f=-1!==a.indexOf(&quot;text&quot;),h=[];function p(t){return t+&quot;\xb0&quot;}l?h.push(e.loc):c&amp;&amp;u?h.push(&quot;(&quot;+p(r.lonLabel)+&quot;, &quot;+p(r.latLabel)+&quot;)&quot;):c?h.push(n.lon+p(r.lonLabel)):u&amp;&amp;h.push(n.lat+p(r.latLabel));f&amp;&amp;o(e,t,h);return h.join(&quot;&lt;br&gt;&quot;)}(c,g,t,l[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}}},{&quot;../../components/fx&quot;:683,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/get_trace_color&quot;:1197,&quot;./attributes&quot;:1229}],1235:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),calcGeoJSON:t(&quot;./plot&quot;).calcGeoJSON,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;scattergeo&quot;,basePlotModule:t(&quot;../../plots/geo&quot;),categories:[&quot;geo&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/geo&quot;:860,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1229,&quot;./calc&quot;:1230,&quot;./defaults&quot;:1231,&quot;./event_data&quot;:1232,&quot;./format_labels&quot;:1233,&quot;./hover&quot;:1234,&quot;./plot&quot;:1236,&quot;./select&quot;:1237,&quot;./style&quot;:1238}],1236:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/topojson_utils&quot;).getTopojsonFeatures,o=t(&quot;../../lib/geojson_utils&quot;),s=t(&quot;../../lib/geo_location_utils&quot;),l=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,c=t(&quot;../../constants/numerical&quot;).BADNUM,u=t(&quot;../scatter/calc&quot;).calcMarkerSize,f=t(&quot;../scatter/subtypes&quot;),h=t(&quot;./style&quot;);e.exports={calcGeoJSON:function(t,e){var r,n,i=t[0].trace,o=e[i.geo],f=o._subplot,h=i._length;if(Array.isArray(i.locations)){var p=i.locationmode,d=&quot;geojson-id&quot;===p?s.extractTraceFeature(t):a(i,f.topojson);for(r=0;r&lt;h;r++){n=t[r];var g=&quot;geojson-id&quot;===p?n.fOut:s.locationToFeature(p,n.loc,d);n.lonlat=g?g.properties.ct:[c,c]}}var m,v,y={padded:!0};if(&quot;geojson&quot;===o.fitbounds&amp;&amp;&quot;geojson-id&quot;===i.locationmode){var x=s.computeBbox(s.getTraceGeojson(i));m=[x[0],x[2]],v=[x[1],x[3]]}else{for(m=new Array(h),v=new Array(h),r=0;r&lt;h;r++)n=t[r],m[r]=n.lonlat[0],v[r]=n.lonlat[1];y.ppad=u(i,h)}i._extremes.lon=l(o.lonaxis._ax,m,y),i._extremes.lat=l(o.lataxis._ax,v,y)},plot:function(t,e,r){var a=e.layers.frontplot.select(&quot;.scatterlayer&quot;),s=i.makeTraceGroups(a,r,&quot;trace scattergeo&quot;);function l(t,e){t.lonlat[0]===c&amp;&amp;n.select(e).remove()}s.selectAll(&quot;*&quot;).remove(),s.each((function(e){var r=n.select(this),a=e[0].trace;if(f.hasLines(a)||&quot;none&quot;!==a.fill){var s=o.calcTraceToLineCoords(e),c=&quot;none&quot;!==a.fill?o.makePolygon(s):o.makeLine(s);r.selectAll(&quot;path.js-line&quot;).data([{geojson:c,trace:a}]).enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0).style(&quot;stroke-miterlimit&quot;,2)}f.hasMarkers(a)&amp;&amp;r.selectAll(&quot;path.point&quot;).data(i.identity).enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0).each((function(t){l(t,this)})),f.hasText(a)&amp;&amp;r.selectAll(&quot;g&quot;).data(i.identity).enter().append(&quot;g&quot;).append(&quot;text&quot;).each((function(t){l(t,this)})),h(t,e)}))}}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/geojson_utils&quot;:772,&quot;../../lib/topojson_utils&quot;:806,&quot;../../plots/cartesian/autorange&quot;:827,&quot;../scatter/calc&quot;:1188,&quot;../scatter/subtypes&quot;:1212,&quot;./style&quot;:1238,d3:169}],1237:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/subtypes&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e){var r,a,o,s,l,c=t.cd,u=t.xaxis,f=t.yaxis,h=[],p=c[0].trace;if(!n.hasMarkers(p)&amp;&amp;!n.hasText(p))return[];if(!1===e)for(l=0;l&lt;c.length;l++)c[l].selected=0;else for(l=0;l&lt;c.length;l++)(a=(r=c[l]).lonlat)[0]!==i&amp;&amp;(o=u.c2p(a),s=f.c2p(a),e.contains([o,s],null,l,t)?(h.push({pointNumber:l,lon:a[0],lat:a[1]}),r.selected=1):r.selected=0);return h}},{&quot;../../constants/numerical&quot;:753,&quot;../scatter/subtypes&quot;:1212}],1238:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../scatter/style&quot;),s=o.stylePoints,l=o.styleText;e.exports=function(t,e){e&amp;&amp;function(t,e){var r=e[0].trace,o=e[0].node3;o.style(&quot;opacity&quot;,e[0].trace.opacity),s(o,r,t),l(o,r,t),o.selectAll(&quot;path.js-line&quot;).style(&quot;fill&quot;,&quot;none&quot;).each((function(t){var e=n.select(this),r=t.trace,o=r.line||{};e.call(a.stroke,o.color).call(i.dashLine,o.dash||&quot;&quot;,o.width||0),&quot;none&quot;!==r.fill&amp;&amp;e.call(a.fill,r.fillcolor)}))}(t,e)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../scatter/style&quot;:1211,d3:169}],1239:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/edit_types&quot;).overrideAll,l=t(&quot;./constants&quot;).DASHES,c=i.line,u=i.marker,f=u.line,h=e.exports=s({x:i.x,x0:i.x0,dx:i.dx,y:i.y,y0:i.y0,dy:i.dy,xperiod:i.xperiod,yperiod:i.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:i.xperiodalignment,yperiodalignment:i.yperiodalignment,text:i.text,hovertext:i.hovertext,textposition:i.textposition,textfont:i.textfont,mode:{valType:&quot;flaglist&quot;,flags:[&quot;lines&quot;,&quot;markers&quot;,&quot;text&quot;],extras:[&quot;none&quot;]},line:{color:c.color,width:c.width,shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},dash:{valType:&quot;enumerated&quot;,values:Object.keys(l),dflt:&quot;solid&quot;}},marker:o({},a(&quot;marker&quot;),{symbol:u.symbol,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,opacity:u.opacity,colorbar:u.colorbar,line:o({},a(&quot;marker.line&quot;),{width:f.width})}),connectgaps:i.connectgaps,fill:o({},i.fill,{dflt:&quot;none&quot;}),fillcolor:i.fillcolor,selected:{marker:i.selected.marker,textfont:i.selected.textfont},unselected:{marker:i.unselected.marker,textfont:i.unselected.textfont},opacity:n.opacity},&quot;calc&quot;,&quot;nested&quot;);h.x.editType=h.y.editType=h.x0.editType=h.y0.editType=&quot;calc+clearAxisTypes&quot;,h.hovertemplate=i.hovertemplate,h.texttemplate=i.texttemplate},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:1241}],1240:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/point-cluster&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,s=t(&quot;../../plots/cartesian/align_period&quot;),l=t(&quot;../scatter/calc&quot;),c=l.calcMarkerSize,u=l.calcAxisExpansion,f=l.setFirstScatter,h=t(&quot;../scatter/colorscale_calc&quot;),p=t(&quot;./convert&quot;),d=t(&quot;./scene_update&quot;),g=t(&quot;../../constants/numerical&quot;).BADNUM,m=t(&quot;./constants&quot;).TOO_MANY_POINTS;function v(t,e,r){var n=t._extremes[e._id],i=o(e,r._bnds,{padded:!0});n.min=n.min.concat(i.min),n.max=n.max.concat(i.max)}e.exports=function(t,e){var r,o,l,y=t._fullLayout,x=a.getFromId(t,e.xaxis),b=a.getFromId(t,e.yaxis),_=y._plots[e.xaxis+e.yaxis],w=e._length,T=w&gt;=m,k=2*w,M={},A=x.makeCalcdata(e,&quot;x&quot;),S=b.makeCalcdata(e,&quot;y&quot;),E=s(e,x,&quot;x&quot;,A),C=s(e,b,&quot;y&quot;,S);e._x=E,e._y=C,e.xperiodalignment&amp;&amp;(e._origX=A),e.yperiodalignment&amp;&amp;(e._origY=S);var L=new Array(k);for(r=0;r&lt;w;r++)o=E[r],l=C[r],L[2*r]=o===g?NaN:o,L[2*r+1]=l===g?NaN:l;if(&quot;log&quot;===x.type)for(r=0;r&lt;k;r+=2)L[r]=x.c2l(L[r]);if(&quot;log&quot;===b.type)for(r=1;r&lt;k;r+=2)L[r]=b.c2l(L[r]);if(T&amp;&amp;&quot;log&quot;!==x.type&amp;&amp;&quot;log&quot;!==b.type)M.tree=n(L);else{var I=M.ids=new Array(w);for(r=0;r&lt;w;r++)I[r]=r}h(t,e);var P,z=function(t,e,r,n,a,o){var s=p.style(t,r);s.marker&amp;&amp;(s.marker.positions=n);s.line&amp;&amp;n.length&gt;1&amp;&amp;i.extendFlat(s.line,p.linePositions(t,r,n));if(s.errorX||s.errorY){var l=p.errorBarPositions(t,r,n,a,o);s.errorX&amp;&amp;i.extendFlat(s.errorX,l.x),s.errorY&amp;&amp;i.extendFlat(s.errorY,l.y)}s.text&amp;&amp;(i.extendFlat(s.text,{positions:n},p.textPosition(t,r,s.text,s.marker)),i.extendFlat(s.textSel,{positions:n},p.textPosition(t,r,s.text,s.markerSel)),i.extendFlat(s.textUnsel,{positions:n},p.textPosition(t,r,s.text,s.markerUnsel)));return s}(t,0,e,L,E,C),O=d(t,_);return f(y,e),T?z.marker&amp;&amp;(P=2*(z.marker.sizeAvg||Math.max(z.marker.size,3))):P=c(e,w),u(t,e,x,b,E,C,P),z.errorX&amp;&amp;v(e,x,z.errorX),z.errorY&amp;&amp;v(e,b,z.errorY),z.fill&amp;&amp;!O.fill2d&amp;&amp;(O.fill2d=!0),z.marker&amp;&amp;!O.scatter2d&amp;&amp;(O.scatter2d=!0),z.line&amp;&amp;!O.line2d&amp;&amp;(O.line2d=!0),!z.errorX&amp;&amp;!z.errorY||O.error2d||(O.error2d=!0),z.text&amp;&amp;!O.glText&amp;&amp;(O.glText=!0),z.marker&amp;&amp;(z.marker.snap=w),O.lineOptions.push(z.line),O.errorXOptions.push(z.errorX),O.errorYOptions.push(z.errorY),O.fillOptions.push(z.fill),O.markerOptions.push(z.marker),O.markerSelectedOptions.push(z.markerSel),O.markerUnselectedOptions.push(z.markerUnsel),O.textOptions.push(z.text),O.textSelectedOptions.push(z.textSel),O.textUnselectedOptions.push(z.textUnsel),O.selectBatch.push([]),O.unselectBatch.push([]),M._scene=O,M.index=O.count,M.x=E,M.y=C,M.positions=L,O.count++,[{x:!1,y:!1,t:M,trace:e}]}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/autorange&quot;:827,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../scatter/calc&quot;:1188,&quot;../scatter/colorscale_calc&quot;:1190,&quot;./constants&quot;:1241,&quot;./convert&quot;:1242,&quot;./scene_update&quot;:1250,&quot;@plotly/point-cluster&quot;:57}],1241:[function(t,e,r){&quot;use strict&quot;;e.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:20,SYMBOL_STROKE:1,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},{}],1242:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;svg-path-sdf&quot;),a=t(&quot;color-normalize&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../plots/cartesian/axis_ids&quot;),u=t(&quot;../../lib/gl_format_color&quot;).formatColor,f=t(&quot;../scatter/subtypes&quot;),h=t(&quot;../scatter/make_bubble_size_func&quot;),p=t(&quot;./helpers&quot;),d=t(&quot;./constants&quot;),g=t(&quot;../../constants/interactions&quot;).DESELECTDIM,m={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},v=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue;function y(t,e){var r,i=t._fullLayout,a=e._length,o=e.textfont,l=e.textposition,c=Array.isArray(l)?l:[l],u=o.color,f=o.size,h=o.family,p={},d=e.texttemplate;if(d){p.text=[];var g=i._d3locale,m=Array.isArray(d),y=m?Math.min(d.length,a):a,x=m?function(t){return d[t]}:function(){return d};for(r=0;r&lt;y;r++){var b={i:r},_=e._module.formatLabels(b,e,i),w={};v(w,e,r);var T=e._meta||{};p.text.push(s.texttemplateString(x(r),_,g,w,b,T))}}else Array.isArray(e.text)&amp;&amp;e.text.length&lt;a?p.text=e.text.slice():p.text=e.text;if(Array.isArray(p.text))for(r=p.text.length;r&lt;a;r++)p.text[r]=&quot;&quot;;for(p.opacity=e.opacity,p.font={},p.align=[],p.baseline=[],r=0;r&lt;c.length;r++){var k=c[r].split(/\s+/);switch(k[1]){case&quot;left&quot;:p.align.push(&quot;right&quot;);break;case&quot;right&quot;:p.align.push(&quot;left&quot;);break;default:p.align.push(k[1])}switch(k[0]){case&quot;top&quot;:p.baseline.push(&quot;bottom&quot;);break;case&quot;bottom&quot;:p.baseline.push(&quot;top&quot;);break;default:p.baseline.push(k[0])}}if(Array.isArray(u))for(p.color=new Array(a),r=0;r&lt;a;r++)p.color[r]=u[r];else p.color=u;if(s.isArrayOrTypedArray(f)||Array.isArray(h))for(p.font=new Array(a),r=0;r&lt;a;r++){var M=p.font[r]={};M.size=s.isTypedArray(f)?f[r]:Array.isArray(f)?n(f[r])?f[r]:0:f,M.family=Array.isArray(h)?h[r]:h}else p.font={size:f,family:h};return p}function x(t){var e,r,n=t._length,i=t.marker,o={},l=s.isArrayOrTypedArray(i.symbol),c=s.isArrayOrTypedArray(i.color),f=s.isArrayOrTypedArray(i.line.color),d=s.isArrayOrTypedArray(i.opacity),g=s.isArrayOrTypedArray(i.size),m=s.isArrayOrTypedArray(i.line.width);if(l||(r=p.isOpenSymbol(i.symbol)),l||c||f||d){o.colors=new Array(n),o.borderColors=new Array(n);var v=u(i,i.opacity,n),y=u(i.line,i.opacity,n);if(!Array.isArray(y[0])){var x=y;for(y=Array(n),e=0;e&lt;n;e++)y[e]=x}if(!Array.isArray(v[0])){var b=v;for(v=Array(n),e=0;e&lt;n;e++)v[e]=b}for(o.colors=v,o.borderColors=y,e=0;e&lt;n;e++){if(l){var _=i.symbol[e];r=p.isOpenSymbol(_)}r&amp;&amp;(y[e]=v[e].slice(),v[e]=v[e].slice(),v[e][3]=0)}o.opacity=t.opacity}else r?(o.color=a(i.color,&quot;uint8&quot;),o.color[3]=0,o.borderColor=a(i.color,&quot;uint8&quot;)):(o.color=a(i.color,&quot;uint8&quot;),o.borderColor=a(i.line.color,&quot;uint8&quot;)),o.opacity=t.opacity*i.opacity;if(l)for(o.markers=new Array(n),e=0;e&lt;n;e++)o.markers[e]=E(i.symbol[e]);else o.marker=E(i.symbol);var w,T=h(t);if(g||m){var k,M=o.sizes=new Array(n),A=o.borderSizes=new Array(n),S=0;if(g){for(e=0;e&lt;n;e++)M[e]=T(i.size[e]),S+=M[e];k=S/n}else for(w=T(i.size),e=0;e&lt;n;e++)M[e]=w;if(m)for(e=0;e&lt;n;e++)A[e]=i.line.width[e]/2;else for(w=i.line.width/2,e=0;e&lt;n;e++)A[e]=w;o.sizeAvg=k}else o.size=T(i&amp;&amp;i.size||10),o.borderSizes=T(i.line.width);return o}function b(t,e){var r=t.marker,n={};return e?(e.marker&amp;&amp;e.marker.symbol?n=x(s.extendFlat({},r,e.marker)):e.marker&amp;&amp;(e.marker.size&amp;&amp;(n.size=e.marker.size/2),e.marker.color&amp;&amp;(n.colors=e.marker.color),void 0!==e.marker.opacity&amp;&amp;(n.opacity=e.marker.opacity)),n):n}function _(t,e,r){var n={};if(!r)return n;if(r.textfont){var i={opacity:1,text:e.text,texttemplate:e.texttemplate,textposition:e.textposition,textfont:s.extendFlat({},e.textfont)};r.textfont&amp;&amp;s.extendFlat(i.textfont,r.textfont),n=y(t,i)}return n}function w(t,e){var r={capSize:2*e.width,lineWidth:e.thickness,color:e.color};return e.copy_ystyle&amp;&amp;(r=t.error_y),r}var T=d.SYMBOL_SDF_SIZE,k=d.SYMBOL_SIZE,M=d.SYMBOL_STROKE,A={},S=l.symbolFuncs[0](.05*k);function E(t){if(&quot;circle&quot;===t)return null;var e,r,n=l.symbolNumber(t),a=l.symbolFuncs[n%100],o=!!l.symbolNoDot[n%100],s=!!l.symbolNoFill[n%100],c=p.isDotSymbol(t);return A[t]?A[t]:(e=c&amp;&amp;!o?a(1.1*k)+S:a(k),r=i(e,{w:T,h:T,viewBox:[-k,-k,k,k],stroke:s?M:-M}),A[t]=r,r||null)}e.exports={style:function(t,e){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0};if(!0!==e.visible)return n;if(f.hasText(e)&amp;&amp;(n.text=y(t,e),n.textSel=_(t,e,e.selected),n.textUnsel=_(t,e,e.unselected)),f.hasMarkers(e)&amp;&amp;(n.marker=x(e),n.markerSel=b(e,e.selected),n.markerUnsel=b(e,e.unselected),!e.unselected&amp;&amp;s.isArrayOrTypedArray(e.marker.opacity))){var i=e.marker.opacity;for(n.markerUnsel.opacity=new Array(i.length),r=0;r&lt;i.length;r++)n.markerUnsel.opacity[r]=g*i[r]}if(f.hasLines(e)){n.line={overlay:!0,thickness:e.line.width,color:e.line.color,opacity:e.opacity};var a=(d.DASHES[e.line.dash]||[1]).slice();for(r=0;r&lt;a.length;++r)a[r]*=e.line.width;n.line.dashes=a}return e.error_x&amp;&amp;e.error_x.visible&amp;&amp;(n.errorX=w(e,e.error_x)),e.error_y&amp;&amp;e.error_y.visible&amp;&amp;(n.errorY=w(e,e.error_y)),e.fill&amp;&amp;&quot;none&quot;!==e.fill&amp;&amp;(n.fill={closed:!0,fill:e.fillcolor,thickness:0}),n},markerStyle:x,markerSelection:b,linePositions:function(t,e,r){var n,i,a=r.length,o=a/2;if(f.hasLines(e)&amp;&amp;o)if(&quot;hv&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i+2],r[2*i+1]));n.push(r[a-2],r[a-1])}else if(&quot;hvh&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var s=(r[2*i]+r[2*i+2])/2;n.push(r[2*i],r[2*i+1],s,r[2*i+1],s,r[2*i+3])}n.push(r[a-2],r[a-1])}else if(&quot;vhv&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var l=(r[2*i+1]+r[2*i+3])/2;n.push(r[2*i],r[2*i+1],r[2*i],l,r[2*i+2],l)}n.push(r[a-2],r[a-1])}else if(&quot;vh&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+3]));n.push(r[a-2],r[a-1])}else n=r;var c=!1;for(i=0;i&lt;n.length;i++)if(isNaN(n[i])){c=!0;break}var u=c||n.length&gt;d.TOO_MANY_POINTS||f.hasMarkers(e)?&quot;rect&quot;:&quot;round&quot;;if(c&amp;&amp;e.connectgaps){var h=n[0],p=n[1];for(i=0;i&lt;n.length;i+=2)isNaN(n[i])||isNaN(n[i+1])?(n[i]=h,n[i+1]=p):(h=n[i],p=n[i+1])}return{join:u,positions:n}},errorBarPositions:function(t,e,r,i,a){var s=o.getComponentMethod(&quot;errorbars&quot;,&quot;makeComputeError&quot;),l=c.getFromId(t,e.xaxis),u=c.getFromId(t,e.yaxis),f=r.length/2,h={};function p(t,i){var a=i._id.charAt(0),o=e[&quot;error_&quot;+a];if(o&amp;&amp;o.visible&amp;&amp;(&quot;linear&quot;===i.type||&quot;log&quot;===i.type)){for(var l=s(o),c={x:0,y:1}[a],u={x:[0,1,2,3],y:[2,3,0,1]}[a],p=new Float64Array(4*f),d=1/0,g=-1/0,m=0,v=0;m&lt;f;m++,v+=4){var y=t[m];if(n(y)){var x=r[2*m+c],b=l(y,m),_=b[0],w=b[1];if(n(_)&amp;&amp;n(w)){var T=y-_,k=y+w;p[v+u[0]]=x-i.c2l(T),p[v+u[1]]=i.c2l(k)-x,p[v+u[2]]=0,p[v+u[3]]=0,d=Math.min(d,y-_),g=Math.max(g,y+w)}}}h[a]={positions:r,errors:p,_bnds:[d,g]}}}return p(i,l),p(a,u),h},textPosition:function(t,e,r,n){var i,a=e._length,o={};if(f.hasMarkers(e)){var s=r.font,l=r.align,c=r.baseline;for(o.offset=new Array(a),i=0;i&lt;a;i++){var u=n.sizes?n.sizes[i]:n.size,h=Array.isArray(s)?s[i].size:s.size,p=Array.isArray(l)?l.length&gt;1?l[i]:l[0]:l,d=Array.isArray(c)?c.length&gt;1?c[i]:c[0]:c,g=m[p],v=m[d],y=u?u/.8+1:0,x=-v*y-.5*v;o.offset[i]=[g*y/h,x/h]}}return o}}},{&quot;../../components/drawing&quot;:665,&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/interactions&quot;:752,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../registry&quot;:911,&quot;../scatter/make_bubble_size_func&quot;:1204,&quot;../scatter/subtypes&quot;:1212,&quot;./constants&quot;:1241,&quot;./helpers&quot;:1246,&quot;color-normalize&quot;:125,&quot;fast-isnumeric&quot;:241,&quot;svg-path-sdf&quot;:574}],1243:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./helpers&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../scatter/constants&quot;),l=t(&quot;../scatter/subtypes&quot;),c=t(&quot;../scatter/xy_defaults&quot;),u=t(&quot;../scatter/period_defaults&quot;),f=t(&quot;../scatter/marker_defaults&quot;),h=t(&quot;../scatter/line_defaults&quot;),p=t(&quot;../scatter/fillcolor_defaults&quot;),d=t(&quot;../scatter/text_defaults&quot;);e.exports=function(t,e,r,g){function m(r,i){return n.coerce(t,e,o,r,i)}var v=!!t.marker&amp;&amp;a.isOpenSymbol(t.marker.symbol),y=l.isBubble(t),x=c(t,e,g,m);if(x){u(t,e,g,m);var b=x&lt;s.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;;m(&quot;text&quot;),m(&quot;hovertext&quot;),m(&quot;hovertemplate&quot;),m(&quot;mode&quot;,b),l.hasLines(e)&amp;&amp;(m(&quot;connectgaps&quot;),h(t,e,r,g,m),m(&quot;line.shape&quot;)),l.hasMarkers(e)&amp;&amp;(f(t,e,r,g,m),m(&quot;marker.line.width&quot;,v||y?1:0)),l.hasText(e)&amp;&amp;(m(&quot;texttemplate&quot;),d(t,e,g,m));var _=(e.line||{}).color,w=(e.marker||{}).color;m(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;p(t,e,r,m);var T=i.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);T(t,e,_||w||r,{axis:&quot;y&quot;}),T(t,e,_||w||r,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,m)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:1239,&quot;./helpers&quot;:1246}],1244:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../constants/interactions&quot;).DESELECTDIM;e.exports={styleTextSelection:function(t){var e,r,o=t[0],s=o.trace,l=o.t,c=l._scene,u=l.index,f=c.selectBatch[u],h=c.unselectBatch[u],p=c.textOptions[u],d=c.textSelectedOptions[u]||{},g=c.textUnselectedOptions[u]||{},m=n.extendFlat({},p);if(f.length||h.length){var v=d.color,y=g.color,x=p.color,b=Array.isArray(x);for(m.color=new Array(s._length),e=0;e&lt;f.length;e++)r=f[e],m.color[r]=v||(b?x[r]:x);for(e=0;e&lt;h.length;e++){r=h[e];var _=b?x[r]:x;m.color[r]=y||(v?_:i.addOpacity(_,a))}}c.glText[u].update(m)}}},{&quot;../../components/color&quot;:643,&quot;../../constants/interactions&quot;:752,&quot;../../lib&quot;:778}],1245:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/format_labels&quot;);e.exports=function(t,e,r){var i=t.i;return&quot;x&quot;in t||(t.x=e._x[i]),&quot;y&quot;in t||(t.y=e._y[i]),n(t,e,r)}},{&quot;../scatter/format_labels&quot;:1196}],1246:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);r.isOpenSymbol=function(t){return&quot;string&quot;==typeof t?n.OPEN_RE.test(t):t%200&gt;100},r.isDotSymbol=function(t){return&quot;string&quot;==typeof t?n.DOT_RE.test(t):t&gt;200}},{&quot;./constants&quot;:1241}],1247:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/get_trace_color&quot;);function o(t,e,r,o){var s=t.xa,l=t.ya,c=t.distance,u=t.dxy,f=t.index,h={pointNumber:f,x:e[f],y:r[f]};h.tx=Array.isArray(o.text)?o.text[f]:o.text,h.htx=Array.isArray(o.hovertext)?o.hovertext[f]:o.hovertext,h.data=Array.isArray(o.customdata)?o.customdata[f]:o.customdata,h.tp=Array.isArray(o.textposition)?o.textposition[f]:o.textposition;var p=o.textfont;p&amp;&amp;(h.ts=i.isArrayOrTypedArray(p.size)?p.size[f]:p.size,h.tc=Array.isArray(p.color)?p.color[f]:p.color,h.tf=Array.isArray(p.family)?p.family[f]:p.family);var d=o.marker;d&amp;&amp;(h.ms=i.isArrayOrTypedArray(d.size)?d.size[f]:d.size,h.mo=i.isArrayOrTypedArray(d.opacity)?d.opacity[f]:d.opacity,h.mx=i.isArrayOrTypedArray(d.symbol)?d.symbol[f]:d.symbol,h.mc=i.isArrayOrTypedArray(d.color)?d.color[f]:d.color);var g=d&amp;&amp;d.line;g&amp;&amp;(h.mlc=Array.isArray(g.color)?g.color[f]:g.color,h.mlw=i.isArrayOrTypedArray(g.width)?g.width[f]:g.width);var m=d&amp;&amp;d.gradient;m&amp;&amp;&quot;none&quot;!==m.type&amp;&amp;(h.mgt=Array.isArray(m.type)?m.type[f]:m.type,h.mgc=Array.isArray(m.color)?m.color[f]:m.color);var v=s.c2p(h.x,!0),y=l.c2p(h.y,!0),x=h.mrc||1,b=o.hoverlabel;b&amp;&amp;(h.hbg=Array.isArray(b.bgcolor)?b.bgcolor[f]:b.bgcolor,h.hbc=Array.isArray(b.bordercolor)?b.bordercolor[f]:b.bordercolor,h.hts=i.isArrayOrTypedArray(b.font.size)?b.font.size[f]:b.font.size,h.htc=Array.isArray(b.font.color)?b.font.color[f]:b.font.color,h.htf=Array.isArray(b.font.family)?b.font.family[f]:b.font.family,h.hnl=i.isArrayOrTypedArray(b.namelength)?b.namelength[f]:b.namelength);var _=o.hoverinfo;_&amp;&amp;(h.hi=Array.isArray(_)?_[f]:_);var w=o.hovertemplate;w&amp;&amp;(h.ht=Array.isArray(w)?w[f]:w);var T={};T[t.index]=h;var k=o._origX,M=o._origY,A=i.extendFlat({},t,{color:a(o,h),x0:v-x,x1:v+x,xLabelVal:k?k[f]:h.x,y0:y-x,y1:y+x,yLabelVal:M?M[f]:h.y,cd:T,distance:c,spikeDistance:u,hovertemplate:h.ht});return h.htx?A.text=h.htx:h.tx?A.text=h.tx:o.text&amp;&amp;(A.text=o.text),i.fillText(h,o,A),n.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(h,o,A),A}e.exports={hoverPoints:function(t,e,r,n){var i,a,s,l,c,u,f,h,p,d=t.cd,g=d[0].t,m=d[0].trace,v=t.xa,y=t.ya,x=g.x,b=g.y,_=v.c2p(e),w=y.c2p(r),T=t.distance;if(g.tree){var k=v.p2c(_-T),M=v.p2c(_+T),A=y.p2c(w-T),S=y.p2c(w+T);i=&quot;x&quot;===n?g.tree.range(Math.min(k,M),Math.min(y._rl[0],y._rl[1]),Math.max(k,M),Math.max(y._rl[0],y._rl[1])):g.tree.range(Math.min(k,M),Math.min(A,S),Math.max(k,M),Math.max(A,S))}else i=g.ids;var E=T;if(&quot;x&quot;===n)for(c=0;c&lt;i.length;c++)s=x[i[c]],(u=Math.abs(v.c2p(s)-_))&lt;E&amp;&amp;(E=u,f=y.c2p(b[i[c]])-w,p=Math.sqrt(u*u+f*f),a=i[c]);else for(c=i.length-1;c&gt;-1;c--)s=x[i[c]],l=b[i[c]],u=v.c2p(s)-_,f=y.c2p(l)-w,(h=Math.sqrt(u*u+f*f))&lt;E&amp;&amp;(E=p=h,a=i[c]);return t.index=a,t.distance=E,t.dxy=p,void 0===a?[t]:[o(t,x,b,m)]},calcHover:o}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../scatter/get_trace_color&quot;:1197}],1248:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./hover&quot;);e.exports={moduleType:&quot;trace&quot;,name:&quot;scattergl&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;cartesian&quot;,&quot;symbols&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../scatter/cross_trace_defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:n.hoverPoints,selectPoints:t(&quot;./select&quot;),meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../scatter/cross_trace_defaults&quot;:1193,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1239,&quot;./calc&quot;:1240,&quot;./defaults&quot;:1243,&quot;./format_labels&quot;:1245,&quot;./hover&quot;:1247,&quot;./plot&quot;:1249,&quot;./select&quot;:1251}],1249:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-scatter2d&quot;),i=t(&quot;regl-line2d&quot;),a=t(&quot;regl-error2d&quot;),o=t(&quot;gl-text&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../components/dragelement/helpers&quot;).selectMode,c=t(&quot;../../lib/prepare_regl&quot;),u=t(&quot;../scatter/subtypes&quot;),f=t(&quot;../scatter/link_traces&quot;),h=t(&quot;./edit_style&quot;).styleTextSelection;function p(t,e,r){var n=t._size,i=t.width,a=t.height;return[n.l+e.domain[0]*n.w,n.b+r.domain[0]*n.h,i-n.r-(1-e.domain[1])*n.w,a-n.t-(1-r.domain[1])*n.h]}e.exports=function(t,e,r){if(r.length){var d,g,m=t._fullLayout,v=e._scene,y=e.xaxis,x=e.yaxis;if(v)if(c(t,[&quot;ANGLE_instanced_arrays&quot;,&quot;OES_element_index_uint&quot;])){var b=v.count,_=m._glcanvas.data()[0].regl;if(f(t,e,r),v.dirty){if(!0===v.error2d&amp;&amp;(v.error2d=a(_)),!0===v.line2d&amp;&amp;(v.line2d=i(_)),!0===v.scatter2d&amp;&amp;(v.scatter2d=n(_,{constPointSize:!0})),!0===v.fill2d&amp;&amp;(v.fill2d=i(_)),!0===v.glText)for(v.glText=new Array(b),d=0;d&lt;b;d++)v.glText[d]=new o(_);if(v.glText){if(b&gt;v.glText.length){var w=b-v.glText.length;for(d=0;d&lt;w;d++)v.glText.push(new o(_))}else if(b&lt;v.glText.length){var T=v.glText.length-b;v.glText.splice(b,T).forEach((function(t){t.destroy()}))}for(d=0;d&lt;b;d++)v.glText[d].update(v.textOptions[d])}if(v.line2d&amp;&amp;(v.line2d.update(v.lineOptions),v.lineOptions=v.lineOptions.map((function(t){if(t&amp;&amp;t.positions){for(var e=t.positions,r=0;r&lt;e.length&amp;&amp;(isNaN(e[r])||isNaN(e[r+1]));)r+=2;for(var n=e.length-2;n&gt;r&amp;&amp;(isNaN(e[n])||isNaN(e[n+1]));)n-=2;t.positions=e.slice(r,n+2)}return t})),v.line2d.update(v.lineOptions)),v.error2d){var k=(v.errorXOptions||[]).concat(v.errorYOptions||[]);v.error2d.update(k)}v.scatter2d&amp;&amp;v.scatter2d.update(v.markerOptions),v.fillOrder=s.repeat(null,b),v.fill2d&amp;&amp;(v.fillOptions=v.fillOptions.map((function(t,e){var n=r[e];if(t&amp;&amp;n&amp;&amp;n[0]&amp;&amp;n[0].trace){var i,a,o=n[0],s=o.trace,l=o.t,c=v.lineOptions[e],u=[];s._ownfill&amp;&amp;u.push(e),s._nexttrace&amp;&amp;u.push(e+1),u.length&amp;&amp;(v.fillOrder[e]=u);var f,h,p=[],d=c&amp;&amp;c.positions||l.positions;if(&quot;tozeroy&quot;===s.fill){for(f=0;f&lt;d.length&amp;&amp;isNaN(d[f+1]);)f+=2;for(h=d.length-2;h&gt;f&amp;&amp;isNaN(d[h+1]);)h-=2;0!==d[f+1]&amp;&amp;(p=[d[f],0]),p=p.concat(d.slice(f,h+2)),0!==d[h+1]&amp;&amp;(p=p.concat([d[h],0]))}else if(&quot;tozerox&quot;===s.fill){for(f=0;f&lt;d.length&amp;&amp;isNaN(d[f]);)f+=2;for(h=d.length-2;h&gt;f&amp;&amp;isNaN(d[h]);)h-=2;0!==d[f]&amp;&amp;(p=[0,d[f+1]]),p=p.concat(d.slice(f,h+2)),0!==d[h]&amp;&amp;(p=p.concat([0,d[h+1]]))}else if(&quot;toself&quot;===s.fill||&quot;tonext&quot;===s.fill){for(p=[],i=0,a=0;a&lt;d.length;a+=2)(isNaN(d[a])||isNaN(d[a+1]))&amp;&amp;((p=p.concat(d.slice(i,a))).push(d[i],d[i+1]),i=a+2);p=p.concat(d.slice(i)),i&amp;&amp;p.push(d[i],d[i+1])}else{var g=s._nexttrace;if(g){var m=v.lineOptions[e+1];if(m){var y=m.positions;if(&quot;tonexty&quot;===s.fill){for(p=d.slice(),e=Math.floor(y.length/2);e--;){var x=y[2*e],b=y[2*e+1];isNaN(x)||isNaN(b)||p.push(x,b)}t.fill=g.fillcolor}}}}if(s._prevtrace&amp;&amp;&quot;tonext&quot;===s._prevtrace.fill){var _=v.lineOptions[e-1].positions,w=p.length/2,T=[i=w];for(a=0;a&lt;_.length;a+=2)(isNaN(_[a])||isNaN(_[a+1]))&amp;&amp;(T.push(a/2+w+1),i=a+2);p=p.concat(_),t.hole=T}return t.fillmode=s.fill,t.opacity=s.opacity,t.positions=p,t}})),v.fill2d.update(v.fillOptions))}var M=m.dragmode,A=l(M),S=m.clickmode.indexOf(&quot;select&quot;)&gt;-1;for(d=0;d&lt;b;d++){var E=r[d][0],C=E.trace,L=E.t,I=L.index,P=C._length,z=L.x,O=L.y;if(C.selectedpoints||A||S){if(A||(A=!0),C.selectedpoints){var D=v.selectBatch[I]=s.selIndices2selPoints(C),R={};for(g=0;g&lt;D.length;g++)R[D[g]]=1;var F=[];for(g=0;g&lt;P;g++)R[g]||F.push(g);v.unselectBatch[I]=F}var B=L.xpx=new Array(P),N=L.ypx=new Array(P);for(g=0;g&lt;P;g++)B[g]=y.c2p(z[g]),N[g]=x.c2p(O[g])}else L.xpx=L.ypx=null}if(A){if(v.select2d||(v.select2d=n(m._glcanvas.data()[1].regl)),v.scatter2d){var j=new Array(b);for(d=0;d&lt;b;d++)j[d]=v.selectBatch[d].length||v.unselectBatch[d].length?v.markerUnselectedOptions[d]:{};v.scatter2d.update(j)}v.select2d&amp;&amp;(v.select2d.update(v.markerOptions),v.select2d.update(v.markerSelectedOptions)),v.glText&amp;&amp;r.forEach((function(t){var e=((t||[])[0]||{}).trace||{};u.hasText(e)&amp;&amp;h(t)}))}else v.scatter2d&amp;&amp;v.scatter2d.update(v.markerOptions);var U={viewport:p(m,y,x),range:[(y._rl||y.range)[0],(x._rl||x.range)[0],(y._rl||y.range)[1],(x._rl||x.range)[1]]},V=s.repeat(U,v.count);v.fill2d&amp;&amp;v.fill2d.update(V),v.line2d&amp;&amp;v.line2d.update(V),v.error2d&amp;&amp;v.error2d.update(V.concat(V)),v.scatter2d&amp;&amp;v.scatter2d.update(V),v.select2d&amp;&amp;v.select2d.update(V),v.glText&amp;&amp;v.glText.forEach((function(t){t.update(U)}))}else v.init()}}},{&quot;../../components/dragelement/helpers&quot;:661,&quot;../../lib&quot;:778,&quot;../../lib/prepare_regl&quot;:791,&quot;../scatter/link_traces&quot;:1203,&quot;../scatter/subtypes&quot;:1212,&quot;./edit_style&quot;:1244,&quot;gl-text&quot;:352,&quot;regl-error2d&quot;:534,&quot;regl-line2d&quot;:535,&quot;regl-scatter2d&quot;:537}],1250:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=e._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return e._scene||((r=e._scene={}).init=function(){n.extendFlat(r,a,i)},r.init(),r.update=function(t){var e=n.repeat(t,r.count);if(r.fill2d&amp;&amp;r.fill2d.update(e),r.scatter2d&amp;&amp;r.scatter2d.update(e),r.line2d&amp;&amp;r.line2d.update(e),r.error2d&amp;&amp;r.error2d.update(e.concat(e)),r.select2d&amp;&amp;r.select2d.update(e),r.glText)for(var i=0;i&lt;r.count;i++)r.glText[i].update(t)},r.draw=function(){for(var t=r.count,e=r.fill2d,i=r.error2d,a=r.line2d,o=r.scatter2d,s=r.glText,l=r.select2d,c=r.selectBatch,u=r.unselectBatch,f=0;f&lt;t;f++){if(e&amp;&amp;r.fillOrder[f]&amp;&amp;e.draw(r.fillOrder[f]),a&amp;&amp;r.lineOptions[f]&amp;&amp;a.draw(f),i&amp;&amp;(r.errorXOptions[f]&amp;&amp;i.draw(f),r.errorYOptions[f]&amp;&amp;i.draw(f+t)),o&amp;&amp;r.markerOptions[f])if(u[f].length){var h=n.repeat([],r.count);h[f]=u[f],o.draw(h)}else c[f].length||o.draw(f);s[f]&amp;&amp;r.textOptions[f]&amp;&amp;s[f].render()}l&amp;&amp;l.draw(c),r.dirty=!1},r.destroy=function(){r.fill2d&amp;&amp;r.fill2d.destroy&amp;&amp;r.fill2d.destroy(),r.scatter2d&amp;&amp;r.scatter2d.destroy&amp;&amp;r.scatter2d.destroy(),r.error2d&amp;&amp;r.error2d.destroy&amp;&amp;r.error2d.destroy(),r.line2d&amp;&amp;r.line2d.destroy&amp;&amp;r.line2d.destroy(),r.select2d&amp;&amp;r.select2d.destroy&amp;&amp;r.select2d.destroy(),r.glText&amp;&amp;r.glText.forEach((function(t){t.destroy&amp;&amp;t.destroy()})),r.lineOptions=null,r.fillOptions=null,r.markerOptions=null,r.markerSelectedOptions=null,r.markerUnselectedOptions=null,r.errorXOptions=null,r.errorYOptions=null,r.textOptions=null,r.textSelectedOptions=null,r.textUnselectedOptions=null,r.selectBatch=null,r.unselectBatch=null,e._scene=null}),r.dirty||n.extendFlat(r,i),r}},{&quot;../../lib&quot;:778}],1251:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/subtypes&quot;),i=t(&quot;./edit_style&quot;).styleTextSelection;e.exports=function(t,e){var r=t.cd,a=[],o=r[0].trace,s=r[0].t,l=o._length,c=s.x,u=s.y,f=s._scene,h=s.index;if(!f)return a;var p=n.hasText(o),d=n.hasMarkers(o),g=!d&amp;&amp;!p;if(!0!==o.visible||g)return a;var m=[],v=[];if(!1!==e&amp;&amp;!e.degenerate)for(var y=0;y&lt;l;y++)e.contains([s.xpx[y],s.ypx[y]],!1,y,t)?(m.push(y),a.push({pointNumber:y,x:c[y],y:u[y]})):v.push(y);if(d){var x=f.scatter2d;if(m.length||v.length){if(!f.selectBatch[h].length&amp;&amp;!f.unselectBatch[h].length){var b=new Array(f.count);b[h]=f.markerUnselectedOptions[h],x.update.apply(x,b)}}else{var _=new Array(f.count);_[h]=f.markerOptions[h],x.update.apply(x,_)}}return f.selectBatch[h]=m,f.unselectBatch[h]=v,p&amp;&amp;i(r),a}},{&quot;../scatter/subtypes&quot;:1212,&quot;./edit_style&quot;:1244}],1252:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scattergeo/attributes&quot;),o=t(&quot;../scatter/attributes&quot;),s=t(&quot;../../plots/mapbox/layout_attributes&quot;),l=t(&quot;../../plots/attributes&quot;),c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat,f=t(&quot;../../plot_api/edit_types&quot;).overrideAll,h=a.line,p=a.marker;e.exports=f({lon:a.lon,lat:a.lat,mode:u({},o.mode,{dflt:&quot;markers&quot;}),text:u({},o.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;lat&quot;,&quot;lon&quot;,&quot;text&quot;]}),hovertext:u({},o.hovertext,{}),line:{color:h.color,width:h.width},connectgaps:o.connectgaps,marker:u({symbol:{valType:&quot;string&quot;,dflt:&quot;circle&quot;,arrayOk:!0},angle:{valType:&quot;number&quot;,dflt:&quot;auto&quot;,arrayOk:!0},allowoverlap:{valType:&quot;boolean&quot;,dflt:!1},opacity:p.opacity,size:p.size,sizeref:p.sizeref,sizemin:p.sizemin,sizemode:p.sizemode},c(&quot;marker&quot;)),fill:a.fill,fillcolor:o.fillcolor,textfont:s.layers.symbol.textfont,textposition:s.layers.symbol.textposition,below:{valType:&quot;string&quot;},selected:{marker:o.selected.marker},unselected:{marker:o.unselected.marker},hoverinfo:u({},l.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n()},&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/mapbox/layout_attributes&quot;:887,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187,&quot;../scattergeo/attributes&quot;:1229}],1253:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../lib/geojson_utils&quot;),s=t(&quot;../../components/colorscale&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../scatter/make_bubble_size_func&quot;),u=t(&quot;../scatter/subtypes&quot;),f=t(&quot;../../plots/mapbox/convert_text_opts&quot;),h=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,p=t(&quot;../../lib/svg_text_utils&quot;).NEWLINES,d=t(&quot;../../lib/svg_text_utils&quot;).BR_TAG_ALL;function g(){return{geojson:o.makeBlank(),layout:{visibility:&quot;none&quot;},paint:{}}}function m(t,e){return i.isArrayOrTypedArray(t)?e?function(e){return n(t[e])?+t[e]:0}:function(e){return t[e]}:t?function(){return t}:v}function v(){return&quot;&quot;}function y(t){return t[0]===a}e.exports=function(t,e){var r,a=e[0].trace,x=!0===a.visible&amp;&amp;0!==a._length,b=&quot;none&quot;!==a.fill,_=u.hasLines(a),w=u.hasMarkers(a),T=u.hasText(a),k=w&amp;&amp;&quot;circle&quot;===a.marker.symbol,M=w&amp;&amp;&quot;circle&quot;!==a.marker.symbol,A=g(),S=g(),E=g(),C=g(),L={fill:A,line:S,circle:E,symbol:C};if(!x)return L;if((b||_)&amp;&amp;(r=o.calcTraceToLineCoords(e)),b&amp;&amp;(A.geojson=o.makePolygon(r),A.layout.visibility=&quot;visible&quot;,i.extendFlat(A.paint,{&quot;fill-color&quot;:a.fillcolor})),_&amp;&amp;(S.geojson=o.makeLine(r),S.layout.visibility=&quot;visible&quot;,i.extendFlat(S.paint,{&quot;line-width&quot;:a.line.width,&quot;line-color&quot;:a.line.color,&quot;line-opacity&quot;:a.opacity})),k){var I=function(t){var e,r,a,o,u=t[0].trace,f=u.marker,h=u.selectedpoints,p=i.isArrayOrTypedArray(f.color),d=i.isArrayOrTypedArray(f.size),g=i.isArrayOrTypedArray(f.opacity);function m(t){return u.opacity*t}p&amp;&amp;(r=s.hasColorscale(u,&quot;marker&quot;)?s.makeColorScaleFuncFromTrace(f):i.identity);d&amp;&amp;(a=c(u));g&amp;&amp;(o=function(t){return m(n(t)?+i.constrain(t,0,1):0)});var v,x=[];for(e=0;e&lt;t.length;e++){var b=t[e],_=b.lonlat;if(!y(_)){var w={};r&amp;&amp;(w.mcc=b.mcc=r(b.mc)),a&amp;&amp;(w.mrc=b.mrc=a(b.ms)),o&amp;&amp;(w.mo=o(b.mo)),h&amp;&amp;(w.selected=b.selected||0),x.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:_},properties:w})}}if(h)for(v=l.makeSelectedPointStyleFns(u),e=0;e&lt;x.length;e++){var T=x[e].properties;v.selectedOpacityFn&amp;&amp;(T.mo=m(v.selectedOpacityFn(T))),v.selectedColorFn&amp;&amp;(T.mcc=v.selectedColorFn(T)),v.selectedSizeFn&amp;&amp;(T.mrc=v.selectedSizeFn(T))}return{geojson:{type:&quot;FeatureCollection&quot;,features:x},mcc:p||v&amp;&amp;v.selectedColorFn?{type:&quot;identity&quot;,property:&quot;mcc&quot;}:f.color,mrc:d||v&amp;&amp;v.selectedSizeFn?{type:&quot;identity&quot;,property:&quot;mrc&quot;}:(k=f.size,k/2),mo:g||v&amp;&amp;v.selectedOpacityFn?{type:&quot;identity&quot;,property:&quot;mo&quot;}:m(f.opacity)};var k}(e);E.geojson=I.geojson,E.layout.visibility=&quot;visible&quot;,i.extendFlat(E.paint,{&quot;circle-color&quot;:I.mcc,&quot;circle-radius&quot;:I.mrc,&quot;circle-opacity&quot;:I.mo})}if((M||T)&amp;&amp;(C.geojson=function(t,e){for(var r=e._fullLayout,n=t[0].trace,a=n.marker||{},o=a.symbol,s=a.angle,l=&quot;circle&quot;!==o?m(o):v,c=&quot;auto&quot;!==s?m(s,!0):v,f=u.hasText(n)?m(n.text):v,g=[],x=0;x&lt;t.length;x++){var b=t[x];if(!y(b.lonlat)){var _,w=n.texttemplate;if(w){var T=Array.isArray(w)?w[x]||&quot;&quot;:w,k=n._module.formatLabels(b,n,r),M={};h(M,n,b.i);var A=n._meta||{};_=i.texttemplateString(T,k,r._d3locale,M,b,A)}else _=f(x);_&amp;&amp;(_=_.replace(p,&quot;&quot;).replace(d,&quot;\n&quot;)),g.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:b.lonlat},properties:{symbol:l(x),angle:c(x),text:_}})}}return{type:&quot;FeatureCollection&quot;,features:g}}(e,t),i.extendFlat(C.layout,{visibility:&quot;visible&quot;,&quot;icon-image&quot;:&quot;{symbol}-15&quot;,&quot;text-field&quot;:&quot;{text}&quot;}),M&amp;&amp;(i.extendFlat(C.layout,{&quot;icon-size&quot;:a.marker.size/10}),&quot;angle&quot;in a.marker&amp;&amp;&quot;auto&quot;!==a.marker.angle&amp;&amp;i.extendFlat(C.layout,{&quot;icon-rotate&quot;:{type:&quot;identity&quot;,property:&quot;angle&quot;},&quot;icon-rotation-alignment&quot;:&quot;map&quot;}),C.layout[&quot;icon-allow-overlap&quot;]=a.marker.allowoverlap,i.extendFlat(C.paint,{&quot;icon-opacity&quot;:a.opacity*a.marker.opacity,&quot;icon-color&quot;:a.marker.color})),T)){var P=(a.marker||{}).size,z=f(a.textposition,P);i.extendFlat(C.layout,{&quot;text-size&quot;:a.textfont.size,&quot;text-anchor&quot;:z.anchor,&quot;text-offset&quot;:z.offset}),i.extendFlat(C.paint,{&quot;text-color&quot;:a.textfont.color,&quot;text-opacity&quot;:a.opacity})}return L}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/geojson_utils&quot;:772,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/mapbox/convert_text_opts&quot;:884,&quot;../scatter/make_bubble_size_func&quot;:1204,&quot;../scatter/subtypes&quot;:1212,&quot;fast-isnumeric&quot;:241}],1254:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/text_defaults&quot;),l=t(&quot;../scatter/fillcolor_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}if(function(t,e,r){var n=r(&quot;lon&quot;)||[],i=r(&quot;lat&quot;)||[],a=Math.min(n.length,i.length);return e._length=a,a}(0,e,f)){if(f(&quot;text&quot;),f(&quot;texttemplate&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),f(&quot;below&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,u,f,{noDash:!0}),f(&quot;connectgaps&quot;)),i.hasMarkers(e)){a(t,e,r,u,f,{noLine:!0}),f(&quot;marker.allowoverlap&quot;),f(&quot;marker.angle&quot;);var h=e.marker;&quot;circle&quot;!==h.symbol&amp;&amp;(n.isArrayOrTypedArray(h.size)&amp;&amp;(h.size=h.size[0]),n.isArrayOrTypedArray(h.color)&amp;&amp;(h.color=h.color[0]))}i.hasText(e)&amp;&amp;s(t,e,u,f,{noSelect:!0}),f(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1252}],1255:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t}},{}],1256:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.subplot]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=n.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=n.tickText(a,a.c2l(o[1]),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1257:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/get_trace_color&quot;),o=i.fillText,s=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r){var l=t.cd,c=l[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=360*(e&gt;=0?Math.floor((e+180)/360):Math.ceil((e-180)/360)),d=e-p;if(n.getClosest(l,(function(t){var e=t.lonlat;if(e[0]===s)return 1/0;var n=i.modHalf(e[0],360),a=e[1],o=h.project([n,a]),l=o.x-u.c2p([d,a]),c=o.y-f.c2p([n,r]),p=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(l*l+c*c)-p,1-3/p)}),t),!1!==t.index){var g=l[t.index],m=g.lonlat,v=[i.modHalf(m[0],360)+p,m[1]],y=u.c2p(v),x=f.c2p(v),b=g.mrc||1;t.x0=y-b,t.x1=y+b,t.y0=x-b,t.y1=x+b;var _={};_[c.subplot]={_subplot:h};var w=c._module.formatLabels(g,c,_);return t.lonLabel=w.lonLabel,t.latLabel=w.latLabel,t.color=a(c,g),t.extraText=function(t,e,r){if(t.hovertemplate)return;var n=(e.hi||t.hoverinfo).split(&quot;+&quot;),i=-1!==n.indexOf(&quot;all&quot;),a=-1!==n.indexOf(&quot;lon&quot;),s=-1!==n.indexOf(&quot;lat&quot;),l=e.lonlat,c=[];function u(t){return t+&quot;\xb0&quot;}i||a&amp;&amp;s?c.push(&quot;(&quot;+u(l[0])+&quot;, &quot;+u(l[1])+&quot;)&quot;):a?c.push(r.lon+u(l[0])):s&amp;&amp;c.push(r.lat+u(l[1]));(i||-1!==n.indexOf(&quot;text&quot;))&amp;&amp;o(e,t,c);return c.join(&quot;&lt;br&gt;&quot;)}(c,g,l[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}}},{&quot;../../components/fx&quot;:683,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/get_trace_color&quot;:1197}],1258:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;../scattergeo/calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),styleOnSelect:function(t,e){e&amp;&amp;e[0].trace._glTrace.update(e)},moduleType:&quot;trace&quot;,name:&quot;scattermapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/mapbox&quot;:885,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scattergeo/calc&quot;:1230,&quot;./attributes&quot;:1252,&quot;./defaults&quot;:1254,&quot;./event_data&quot;:1255,&quot;./format_labels&quot;:1256,&quot;./hover&quot;:1257,&quot;./plot&quot;:1259,&quot;./select&quot;:1260}],1259:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;),i=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix,a=[&quot;fill&quot;,&quot;line&quot;,&quot;circle&quot;,&quot;symbol&quot;];function o(t,e){this.type=&quot;scattermapbox&quot;,this.subplot=t,this.uid=e,this.sourceIds={fill:&quot;source-&quot;+e+&quot;-fill&quot;,line:&quot;source-&quot;+e+&quot;-line&quot;,circle:&quot;source-&quot;+e+&quot;-circle&quot;,symbol:&quot;source-&quot;+e+&quot;-symbol&quot;},this.layerIds={fill:i+e+&quot;-fill&quot;,line:i+e+&quot;-line&quot;,circle:i+e+&quot;-circle&quot;,symbol:i+e+&quot;-symbol&quot;},this.below=null}var s=o.prototype;s.addSource=function(t,e){this.subplot.map.addSource(this.sourceIds[t],{type:&quot;geojson&quot;,data:e.geojson})},s.setSourceData=function(t,e){this.subplot.map.getSource(this.sourceIds[t]).setData(e.geojson)},s.addLayer=function(t,e,r){this.subplot.addLayer({type:t,id:this.layerIds[t],source:this.sourceIds[t],layout:e.layout,paint:e.paint},r)},s.update=function(t){var e,r,i,o=this.subplot,s=o.map,l=n(o.gd,t),c=o.belowLookup[&quot;trace-&quot;+this.uid];if(c!==this.below){for(e=a.length-1;e&gt;=0;e--)r=a[e],s.removeLayer(this.layerIds[r]);for(e=0;e&lt;a.length;e++)i=l[r=a[e]],this.addLayer(r,i,c);this.below=c}for(e=0;e&lt;a.length;e++)i=l[r=a[e]],o.setOptions(this.layerIds[r],&quot;setLayoutProperty&quot;,i.layout),&quot;visible&quot;===i.layout.visibility&amp;&amp;(this.setSourceData(r,i),o.setOptions(this.layerIds[r],&quot;setPaintProperty&quot;,i.paint));t[0].trace._glTrace=this},s.dispose=function(){for(var t=this.subplot.map,e=a.length-1;e&gt;=0;e--){var r=a[e];t.removeLayer(this.layerIds[r]),t.removeSource(this.sourceIds[r])}},e.exports=function(t,e){for(var r=e[0].trace,i=new o(t,r.uid),s=n(t.gd,e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid],c=0;c&lt;a.length;c++){var u=a[c],f=s[u];i.addSource(u,f),i.addLayer(u,f,l)}return e[0].trace._glTrace=i,i}},{&quot;../../plots/mapbox/constants&quot;:883,&quot;./convert&quot;:1253}],1260:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e){var r,o=t.cd,s=t.xaxis,l=t.yaxis,c=[],u=o[0].trace;if(!i.hasMarkers(u))return[];if(!1===e)for(r=0;r&lt;o.length;r++)o[r].selected=0;else for(r=0;r&lt;o.length;r++){var f=o[r],h=f.lonlat;if(h[0]!==a){var p=[n.modHalf(h[0],360),h[1]],d=[s.c2p(p),l.c2p(p)];e.contains(d,null,r,t)?(c.push({pointNumber:r,lon:h[0],lat:h[1]}),f.selected=1):f.selected=0}}return c}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/subtypes&quot;:1212}],1261:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../scatter/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=o.line;e.exports={mode:o.mode,r:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},theta:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},r0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dr:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},theta0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dtheta:{valType:&quot;number&quot;,editType:&quot;calc&quot;},thetaunit:{valType:&quot;enumerated&quot;,values:[&quot;radians&quot;,&quot;degrees&quot;,&quot;gradians&quot;],dflt:&quot;degrees&quot;,editType:&quot;calc+clearAxisTypes&quot;},text:o.text,texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]}),hovertext:o.hovertext,line:{color:l.color,width:l.width,dash:l.dash,shape:a({},l.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:l.smoothing,editType:&quot;calc&quot;},connectgaps:o.connectgaps,marker:o.marker,cliponaxis:a({},o.cliponaxis,{dflt:!1}),textposition:o.textposition,textfont:o.textfont,fill:a({},o.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:o.fillcolor,hoverinfo:a({},s.hoverinfo,{flags:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:o.hoveron,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1262:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../scatter/colorscale_calc&quot;),s=t(&quot;../scatter/arrays_to_calcdata&quot;),l=t(&quot;../scatter/calc_selection&quot;),c=t(&quot;../scatter/calc&quot;).calcMarkerSize;e.exports=function(t,e){for(var r=t._fullLayout,u=e.subplot,f=r[u].radialaxis,h=r[u].angularaxis,p=f.makeCalcdata(e,&quot;r&quot;),d=h.makeCalcdata(e,&quot;theta&quot;),g=e._length,m=new Array(g),v=0;v&lt;g;v++){var y=p[v],x=d[v],b=m[v]={};n(y)&amp;&amp;n(x)?(b.r=y,b.theta=x):b.r=i}var _=c(e,g);return e._extremes.x=a.findExtremes(f,p,{ppad:_}),o(t,e),s(m,e),l(m,e),m}},{&quot;../../constants/numerical&quot;:753,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc&quot;:1188,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1263:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/line_shape_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;../scatter/fillcolor_defaults&quot;),u=t(&quot;../scatter/constants&quot;).PTS_LINESONLY,f=t(&quot;./attributes&quot;);function h(t,e,r,n){var i,a=n(&quot;r&quot;),o=n(&quot;theta&quot;);if(a)o?i=Math.min(a.length,o.length):(i=a.length,n(&quot;theta0&quot;),n(&quot;dtheta&quot;));else{if(!o)return 0;i=e.theta.length,n(&quot;r0&quot;),n(&quot;dr&quot;)}return e._length=i,i}e.exports={handleRThetaDefaults:h,supplyDefaults:function(t,e,r,p){function d(r,i){return n.coerce(t,e,f,r,i)}var g=h(t,e,p,d);if(g){d(&quot;thetaunit&quot;),d(&quot;mode&quot;,g&lt;u?&quot;lines+markers&quot;:&quot;lines&quot;),d(&quot;text&quot;),d(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;d(&quot;hovertemplate&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,p,d),s(t,e,d),d(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;a(t,e,r,p,d,{gradient:!0}),i.hasText(e)&amp;&amp;(d(&quot;texttemplate&quot;),l(t,e,p,d));var m=[];(i.hasMarkers(e)||i.hasText(e))&amp;&amp;(d(&quot;cliponaxis&quot;),d(&quot;marker.maxdisplayed&quot;),m.push(&quot;points&quot;)),d(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(c(t,e,r,d),i.hasLines(e)||s(t,e,d)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||m.push(&quot;fills&quot;),d(&quot;hoveron&quot;,m.join(&quot;+&quot;)||&quot;points&quot;),n.coerceSelectionMarkerOpacity(e,d)}else e.visible=!1}}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/line_shape_defaults&quot;:1202,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1261}],1264:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var a,o,s={},l=r[e.subplot]._subplot;l?(a=l.radialAxis,o=l.angularAxis):(a=(l=r[e.subplot]).radialaxis,o=l.angularaxis);var c=a.c2l(t.r);s.rLabel=i.tickText(a,c,!0).text;var u=&quot;degrees&quot;===o.thetaunit?n.rad2deg(t.theta):t.theta;return s.thetaLabel=i.tickText(o,u,!0).text,s}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1265:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;);function i(t,e,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle=&quot;r&quot;,a._hovertitle=&quot;\u03b8&quot;;var o={};o[e.subplot]={_subplot:r};var s=e._module.formatLabels(t,e,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var l=t.hi||e.hoverinfo,c=[];function u(t,e){c.push(t._hovertitle+&quot;: &quot;+e)}if(!e.hovertemplate){var f=l.split(&quot;+&quot;);-1!==f.indexOf(&quot;all&quot;)&amp;&amp;(f=[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]),-1!==f.indexOf(&quot;r&quot;)&amp;&amp;u(i,n.rLabel),-1!==f.indexOf(&quot;theta&quot;)&amp;&amp;u(a,n.thetaLabel),-1!==f.indexOf(&quot;text&quot;)&amp;&amp;n.text&amp;&amp;(c.push(n.text),delete n.text),n.extraText=c.join(&quot;&lt;br&gt;&quot;)}}e.exports={hoverPoints:function(t,e,r,a){var o=n(t,e,r,a);if(o&amp;&amp;!1!==o[0].index){var s=o[0];if(void 0===s.index)return o;var l=t.subplot,c=s.cd[s.index],u=s.trace;if(l.isPtInside(c))return s.xLabelVal=void 0,s.yLabelVal=void 0,i(c,u,l,s),s.hovertemplate=u.hovertemplate,o}},makeHoverPointText:i}},{&quot;../scatter/hover&quot;:1198}],1266:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;scatterpolar&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;polar&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;../scatter/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:894,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/select&quot;:1209,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1261,&quot;./calc&quot;:1262,&quot;./defaults&quot;:1263,&quot;./format_labels&quot;:1264,&quot;./hover&quot;:1265,&quot;./plot&quot;:1267}],1267:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r){for(var a=e.layers.frontplot.select(&quot;g.scatterlayer&quot;),o={xaxis:e.xaxis,yaxis:e.yaxis,plot:e.framework,layerClipId:e._hasClipOnAxisFalse?e.clipIds.forTraces:null},s=e.radialAxis,l=e.angularAxis,c=0;c&lt;r.length;c++)for(var u=r[c],f=0;f&lt;u.length;f++){var h=u[f],p=h.r;if(p===i)h.x=h.y=i;else{var d=s.c2g(p),g=l.c2g(h.theta);h.x=d*Math.cos(g),h.y=d*Math.sin(g)}}n(t,o,r,a)}},{&quot;../../constants/numerical&quot;:753,&quot;../scatter/plot&quot;:1208}],1268:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatterpolar/attributes&quot;),i=t(&quot;../scattergl/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs;e.exports={mode:n.mode,r:n.r,theta:n.theta,r0:n.r0,dr:n.dr,theta0:n.theta0,dtheta:n.dtheta,thetaunit:n.thetaunit,text:n.text,texttemplate:a({editType:&quot;plot&quot;},{keys:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]}),hovertext:n.hovertext,hovertemplate:n.hovertemplate,line:i.line,connectgaps:i.connectgaps,marker:i.marker,fill:i.fill,fillcolor:i.fillcolor,textposition:i.textposition,textfont:i.textfont,hoverinfo:n.hoverinfo,selected:n.selected,unselected:n.unselected}},{&quot;../../plots/template_attributes&quot;:906,&quot;../scattergl/attributes&quot;:1239,&quot;../scatterpolar/attributes&quot;:1261}],1269:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/colorscale_calc&quot;),i=t(&quot;../scatter/calc&quot;).calcMarkerSize,a=t(&quot;../scattergl/convert&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e){var r=t._fullLayout,l=e.subplot,c=r[l].radialaxis,u=r[l].angularaxis,f=e._r=c.makeCalcdata(e,&quot;r&quot;),h=e._theta=u.makeCalcdata(e,&quot;theta&quot;),p=e._length,d={};p&lt;f.length&amp;&amp;(f=f.slice(0,p)),p&lt;h.length&amp;&amp;(h=h.slice(0,p)),d.r=f,d.theta=h,n(t,e);var g,m=d.opts=a.style(t,e);return p&lt;s?g=i(e,p):m.marker&amp;&amp;(g=2*(m.marker.sizeAvg||Math.max(m.marker.size,3))),e._extremes.x=o.findExtremes(c,f,{ppad:g}),[{x:!1,y:!1,t:d,trace:e}]}},{&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc&quot;:1188,&quot;../scatter/colorscale_calc&quot;:1190,&quot;../scattergl/constants&quot;:1241,&quot;../scattergl/convert&quot;:1242}],1270:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatterpolar/defaults&quot;).handleRThetaDefaults,o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;../scatter/fillcolor_defaults&quot;),u=t(&quot;../scatter/constants&quot;).PTS_LINESONLY,f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d=a(t,e,h,p);d?(p(&quot;thetaunit&quot;),p(&quot;mode&quot;,d&lt;u?&quot;lines+markers&quot;:&quot;lines&quot;),p(&quot;text&quot;),p(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;p(&quot;hovertemplate&quot;),i.hasLines(e)&amp;&amp;(s(t,e,r,h,p),p(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;o(t,e,r,h,p),i.hasText(e)&amp;&amp;(p(&quot;texttemplate&quot;),l(t,e,h,p)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;c(t,e,r,p),n.coerceSelectionMarkerOpacity(e,p)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;../scatterpolar/defaults&quot;:1263,&quot;./attributes&quot;:1268}],1271:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatterpolar/format_labels&quot;);e.exports=function(t,e,r){var i=t.i;return&quot;r&quot;in t||(t.r=e._r[i]),&quot;theta&quot;in t||(t.theta=e._theta[i]),n(t,e,r)}},{&quot;../scatterpolar/format_labels&quot;:1264}],1272:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scattergl/hover&quot;),i=t(&quot;../scatterpolar/hover&quot;).makeHoverPointText;e.exports={hoverPoints:function(t,e,r,a){var o=t.cd[0].t,s=o.r,l=o.theta,c=n.hoverPoints(t,e,r,a);if(c&amp;&amp;!1!==c[0].index){var u=c[0];if(void 0===u.index)return c;var f=t.subplot,h=u.cd[u.index],p=u.trace;if(h.r=s[u.index],h.theta=l[u.index],f.isPtInside(h))return u.xLabelVal=void 0,u.yLabelVal=void 0,i(h,p,f,u),c}}}},{&quot;../scattergl/hover&quot;:1247,&quot;../scatterpolar/hover&quot;:1265}],1273:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;scatterpolargl&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;polar&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;../scattergl/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:894,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scattergl/select&quot;:1251,&quot;./attributes&quot;:1268,&quot;./calc&quot;:1269,&quot;./defaults&quot;:1270,&quot;./format_labels&quot;:1271,&quot;./hover&quot;:1272,&quot;./plot&quot;:1274}],1274:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/point-cluster&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../scattergl/plot&quot;),o=t(&quot;../scattergl/scene_update&quot;),s=t(&quot;../scattergl/convert&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e,r){if(r.length){var u=e.radialAxis,f=e.angularAxis,h=o(t,e);return r.forEach((function(r){if(r&amp;&amp;r[0]&amp;&amp;r[0].trace){var a,o=r[0],p=o.trace,d=o.t,g=p._length,m=d.r,v=d.theta,y=d.opts,x=m.slice(),b=v.slice();for(a=0;a&lt;m.length;a++)e.isPtInside({r:m[a],theta:v[a]})||(x[a]=NaN,b[a]=NaN);var _=new Array(2*g),w=Array(g),T=Array(g);for(a=0;a&lt;g;a++){var k,M,A=x[a];if(i(A)){var S=u.c2g(A),E=f.c2g(b[a],p.thetaunit);k=S*Math.cos(E),M=S*Math.sin(E)}else k=M=NaN;w[a]=_[2*a]=k,T[a]=_[2*a+1]=M}d.tree=n(_),y.marker&amp;&amp;g&gt;=c&amp;&amp;(y.marker.cluster=d.tree),y.marker&amp;&amp;(y.markerSel.positions=y.markerUnsel.positions=y.marker.positions=_),y.line&amp;&amp;_.length&gt;1&amp;&amp;l.extendFlat(y.line,s.linePositions(t,p,_)),y.text&amp;&amp;(l.extendFlat(y.text,{positions:_},s.textPosition(t,p,y.text,y.marker)),l.extendFlat(y.textSel,{positions:_},s.textPosition(t,p,y.text,y.markerSel)),l.extendFlat(y.textUnsel,{positions:_},s.textPosition(t,p,y.text,y.markerUnsel))),y.fill&amp;&amp;!h.fill2d&amp;&amp;(h.fill2d=!0),y.marker&amp;&amp;!h.scatter2d&amp;&amp;(h.scatter2d=!0),y.line&amp;&amp;!h.line2d&amp;&amp;(h.line2d=!0),y.text&amp;&amp;!h.glText&amp;&amp;(h.glText=!0),h.lineOptions.push(y.line),h.fillOptions.push(y.fill),h.markerOptions.push(y.marker),h.markerSelectedOptions.push(y.markerSel),h.markerUnselectedOptions.push(y.markerUnsel),h.textOptions.push(y.text),h.textSelectedOptions.push(y.textSel),h.textUnselectedOptions.push(y.textUnsel),h.selectBatch.push([]),h.unselectBatch.push([]),d.x=w,d.y=T,d.rawx=w,d.rawy=T,d.r=m,d.theta=v,d.positions=_,d._scene=h,d.index=h.count,h.count++}})),a(t,e,r)}}},{&quot;../../lib&quot;:778,&quot;../scattergl/constants&quot;:1241,&quot;../scattergl/convert&quot;:1242,&quot;../scattergl/plot&quot;:1249,&quot;../scattergl/scene_update&quot;:1250,&quot;@plotly/point-cluster&quot;:57,&quot;fast-isnumeric&quot;:241}],1275:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scatter/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../lib/extend&quot;).extendFlat,u=a.marker,f=a.line,h=u.line;e.exports={a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},c:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sum:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;calc&quot;},mode:c({},a.mode,{dflt:&quot;markers&quot;}),text:c({},a.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;text&quot;]}),hovertext:c({},a.hovertext,{}),line:{color:f.color,width:f.width,dash:l,shape:c({},f.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:f.smoothing,editType:&quot;calc&quot;},connectgaps:a.connectgaps,cliponaxis:a.cliponaxis,fill:c({},a.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:a.fillcolor,marker:c({symbol:u.symbol,opacity:u.opacity,maxdisplayed:u.maxdisplayed,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,line:c({width:h.width,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),gradient:u.gradient,editType:&quot;calc&quot;},s(&quot;marker&quot;)),textfont:a.textfont,textposition:a.textposition,selected:a.selected,unselected:a.unselected,hoverinfo:c({},o.hoverinfo,{flags:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:a.hoveron,hovertemplate:n()}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing/attributes&quot;:664,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1276:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scatter/arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../scatter/calc&quot;).calcMarkerSize,l=[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],c={a:[&quot;b&quot;,&quot;c&quot;],b:[&quot;a&quot;,&quot;c&quot;],c:[&quot;a&quot;,&quot;b&quot;]};e.exports=function(t,e){var r,u,f,h,p,d,g=t._fullLayout[e.subplot].sum,m=e.sum||g,v={a:e.a,b:e.b,c:e.c};for(r=0;r&lt;l.length;r++)if(!v[f=l[r]]){for(p=v[c[f][0]],d=v[c[f][1]],h=new Array(p.length),u=0;u&lt;p.length;u++)h[u]=m-p[u]-d[u];v[f]=h}var y,x,b,_,w,T,k=e._length,M=new Array(k);for(r=0;r&lt;k;r++)y=v.a[r],x=v.b[r],b=v.c[r],n(y)&amp;&amp;n(x)&amp;&amp;n(b)?(1!==(_=g/((y=+y)+(x=+x)+(b=+b)))&amp;&amp;(y*=_,x*=_,b*=_),T=y,w=b-x,M[r]={x:w,y:T,a:y,b:x,c:b}):M[r]={x:!1,y:!1};return s(e,k),i(t,e),a(M,e),o(M,e),M}},{&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc&quot;:1188,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1277:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/constants&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/line_shape_defaults&quot;),c=t(&quot;../scatter/text_defaults&quot;),u=t(&quot;../scatter/fillcolor_defaults&quot;),f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d,g=p(&quot;a&quot;),m=p(&quot;b&quot;),v=p(&quot;c&quot;);if(g?(d=g.length,m?(d=Math.min(d,m.length),v&amp;&amp;(d=Math.min(d,v.length))):d=v?Math.min(d,v.length):0):m&amp;&amp;v&amp;&amp;(d=Math.min(m.length,v.length)),d){e._length=d,p(&quot;sum&quot;),p(&quot;text&quot;),p(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;p(&quot;hovertemplate&quot;),p(&quot;mode&quot;,d&lt;i.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;),a.hasLines(e)&amp;&amp;(s(t,e,r,h,p),l(t,e,p),p(&quot;connectgaps&quot;)),a.hasMarkers(e)&amp;&amp;o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&amp;&amp;(p(&quot;texttemplate&quot;),c(t,e,h,p));var y=[];(a.hasMarkers(e)||a.hasText(e))&amp;&amp;(p(&quot;cliponaxis&quot;),p(&quot;marker.maxdisplayed&quot;),y.push(&quot;points&quot;)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||y.push(&quot;fills&quot;),p(&quot;hoveron&quot;,y.join(&quot;+&quot;)||&quot;points&quot;),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/line_shape_defaults&quot;:1202,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1275}],1278:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){if(e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),n[i]){var a=n[i];t.a=a.a,t.b=a.b,t.c=a.c}else t.a=e.a,t.b=e.b,t.c=e.c;return t}},{}],1279:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.subplot]._subplot;return i.aLabel=n.tickText(a.aaxis,t.a,!0).text,i.bLabel=n.tickText(a.baxis,t.b,!0).text,i.cLabel=n.tickText(a.caxis,t.c,!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1280:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;);e.exports=function(t,e,r,i){var a=n(t,e,r,i);if(a&amp;&amp;!1!==a[0].index){var o=a[0];if(void 0===o.index){var s=1-o.y0/t.ya._length,l=t.xa._length,c=l*s/2,u=l-c;return o.x0=Math.max(Math.min(o.x0,u),c),o.x1=Math.max(Math.min(o.x1,u),c),a}var f=o.cd[o.index],h=o.trace,p=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var d={};d[h.subplot]={_subplot:p};var g=h._module.formatLabels(f,h,d);o.aLabel=g.aLabel,o.bLabel=g.bLabel,o.cLabel=g.cLabel;var m=f.hi||h.hoverinfo,v=[];if(!h.hovertemplate){var y=m.split(&quot;+&quot;);-1!==y.indexOf(&quot;all&quot;)&amp;&amp;(y=[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]),-1!==y.indexOf(&quot;a&quot;)&amp;&amp;x(p.aaxis,o.aLabel),-1!==y.indexOf(&quot;b&quot;)&amp;&amp;x(p.baxis,o.bLabel),-1!==y.indexOf(&quot;c&quot;)&amp;&amp;x(p.caxis,o.cLabel)}return o.extraText=v.join(&quot;&lt;br&gt;&quot;),o.hovertemplate=h.hovertemplate,a}function x(t,e){v.push(t._hovertitle+&quot;: &quot;+e)}}},{&quot;../scatter/hover&quot;:1198}],1281:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../scatter/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;scatterternary&quot;,basePlotModule:t(&quot;../../plots/ternary&quot;),categories:[&quot;ternary&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/ternary&quot;:907,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/select&quot;:1209,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1275,&quot;./calc&quot;:1276,&quot;./defaults&quot;:1277,&quot;./event_data&quot;:1278,&quot;./format_labels&quot;:1279,&quot;./hover&quot;:1280,&quot;./plot&quot;:1282}],1282:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;);e.exports=function(t,e,r){var i=e.plotContainer;i.select(&quot;.scatterlayer&quot;).selectAll(&quot;*&quot;).remove();var a={xaxis:e.xaxis,yaxis:e.yaxis,plot:i,layerClipId:e._hasClipOnAxisFalse?e.clipIdRelative:null},o=e.layers.frontplot.select(&quot;g.scatterlayer&quot;);n(t,a,r,o)}},{&quot;../scatter/plot&quot;:1208}],1283:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../scattergl/attributes&quot;),s=t(&quot;../../plots/cartesian/constants&quot;).idRegex,l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=t(&quot;../../lib/extend&quot;).extendFlat,u=n.marker,f=u.line,h=c(i(&quot;marker.line&quot;,{editTypeOverride:&quot;calc&quot;}),{width:c({},f.width,{editType:&quot;calc&quot;}),editType:&quot;calc&quot;}),p=c(i(&quot;marker&quot;),{symbol:u.symbol,size:c({},u.size,{editType:&quot;markerSize&quot;}),sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,opacity:u.opacity,colorbar:u.colorbar,line:h,editType:&quot;calc&quot;});function d(t){return{valType:&quot;info_array&quot;,freeLength:!0,editType:&quot;calc&quot;,items:{valType:&quot;subplotid&quot;,regex:s[t],editType:&quot;plot&quot;}}}p.color.editType=p.cmin.editType=p.cmax.editType=&quot;style&quot;,e.exports={dimensions:l(&quot;dimension&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},label:{valType:&quot;string&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},axis:{type:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;],editType:&quot;calc+clearAxisTypes&quot;},matches:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},editType:&quot;calc+clearAxisTypes&quot;},editType:&quot;calc+clearAxisTypes&quot;}),text:c({},o.text,{}),hovertext:c({},o.hovertext,{}),hovertemplate:a(),marker:p,xaxes:d(&quot;x&quot;),yaxes:d(&quot;y&quot;),diagonal:{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},showupperhalf:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},showlowerhalf:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},selected:{marker:o.selected.marker,editType:&quot;calc&quot;},unselected:{marker:o.unselected.marker,editType:&quot;calc&quot;},opacity:o.opacity}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187,&quot;../scattergl/attributes&quot;:1239}],1284:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-line2d&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib/prepare_regl&quot;),o=t(&quot;../../plots/get_data&quot;).getModuleCalcData,s=t(&quot;../../plots/cartesian&quot;),l=t(&quot;../../plots/cartesian/axis_ids&quot;).getFromId,c=t(&quot;../../plots/cartesian/axes&quot;).shouldShowZeroLine;function u(t,e,r){for(var n=r.matrixOptions.data.length,i=e._visibleDims,a=r.viewOpts.ranges=new Array(n),o=0;o&lt;i.length;o++){var s=i[o],c=a[o]=new Array(4),u=l(t,e._diag[s][0]);u&amp;&amp;(c[0]=u.r2l(u.range[0]),c[2]=u.r2l(u.range[1]));var f=l(t,e._diag[s][1]);f&amp;&amp;(c[1]=f.r2l(f.range[0]),c[3]=f.r2l(f.range[1]))}r.selectBatch.length||r.unselectBatch.length?r.matrix.update({ranges:a},{ranges:a}):r.matrix.update({ranges:a})}function f(t){var e=t._fullLayout,r=e._glcanvas.data()[0].regl,i=e._splomGrid;i||(i=e._splomGrid=n(r)),i.update(function(t){var e,r=t._fullLayout,n=r._size,i=[0,0,r.width,r.height],a={};function o(t,e,r,n,o,s){var l=e[t+&quot;color&quot;],c=e[t+&quot;width&quot;],u=String(l+c);u in a?a[u].data.push(NaN,NaN,r,n,o,s):a[u]={data:[r,n,o,s],join:&quot;rect&quot;,thickness:c,color:l,viewport:i,range:i,overlay:!1}}for(e in r._splomSubplots){var s,l,u=r._plots[e],f=u.xaxis,h=u.yaxis,p=f._gridVals,d=h._gridVals,g=n.b+h.domain[0]*n.h,m=-h._m,v=-m*h.r2l(h.range[0],h.calendar);if(f.showgrid)for(e=0;e&lt;p.length;e++)s=f._offset+f.l2p(p[e].x),o(&quot;grid&quot;,f,s,g,s,g+h._length);if(h.showgrid)for(e=0;e&lt;d.length;e++)l=g+v+m*d[e].x,o(&quot;grid&quot;,h,f._offset,l,f._offset+f._length,l);c(t,f,h)&amp;&amp;(s=f._offset+f.l2p(0),o(&quot;zeroline&quot;,f,s,g,s,g+h._length)),c(t,h,f)&amp;&amp;(l=g+v+0,o(&quot;zeroline&quot;,h,f._offset,l,f._offset+f._length,l))}var y=[];for(e in a)y.push(a[e]);return y}(t))}e.exports={name:&quot;splom&quot;,attr:s.attr,attrRegex:s.attrRegex,layoutAttributes:s.layoutAttributes,supplyLayoutDefaults:s.supplyLayoutDefaults,drawFramework:s.drawFramework,plot:function(t){var e=t._fullLayout,r=i.getModule(&quot;splom&quot;),n=o(t.calcdata,r)[0];a(t,[&quot;ANGLE_instanced_arrays&quot;,&quot;OES_element_index_uint&quot;])&amp;&amp;(e._hasOnlyLargeSploms&amp;&amp;f(t),r.plot(t,{},n))},drag:function(t){var e=t.calcdata,r=t._fullLayout;r._hasOnlyLargeSploms&amp;&amp;f(t);for(var n=0;n&lt;e.length;n++){var i=e[n][0].trace,a=r._splomScenes[i.uid];&quot;splom&quot;===i.type&amp;&amp;a&amp;&amp;a.matrix&amp;&amp;u(t,i,a)}},updateGrid:f,clean:function(t,e,r,n){var i,a={};if(n._splomScenes){for(i=0;i&lt;t.length;i++){var o=t[i];&quot;splom&quot;===o.type&amp;&amp;(a[o.uid]=1)}for(i=0;i&lt;r.length;i++){var l=r[i];if(!a[l.uid]){var c=n._splomScenes[l.uid];c&amp;&amp;c.destroy&amp;&amp;c.destroy(),n._splomScenes[l.uid]=null,delete n._splomScenes[l.uid]}}}0===Object.keys(n._splomScenes||{}).length&amp;&amp;delete n._splomScenes,n._splomGrid&amp;&amp;!e._hasOnlyLargeSploms&amp;&amp;n._hasOnlyLargeSploms&amp;&amp;(n._splomGrid.destroy(),n._splomGrid=null,delete n._splomGrid),s.clean(t,e,r,n)},updateFx:s.updateFx,toSVG:s.toSVG}},{&quot;../../lib/prepare_regl&quot;:791,&quot;../../plots/cartesian&quot;:841,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/get_data&quot;:865,&quot;../../registry&quot;:911,&quot;regl-line2d&quot;:535}],1285:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axis_ids&quot;),a=t(&quot;../scatter/calc&quot;).calcMarkerSize,o=t(&quot;../scatter/calc&quot;).calcAxisExpansion,s=t(&quot;../scatter/colorscale_calc&quot;),l=t(&quot;../scattergl/convert&quot;).markerSelection,c=t(&quot;../scattergl/convert&quot;).markerStyle,u=t(&quot;./scene_update&quot;),f=t(&quot;../../constants/numerical&quot;).BADNUM,h=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e){var r,p,d,g,m,v,y=e.dimensions,x=e._length,b={},_=b.cdata=[],w=b.data=[],T=e._visibleDims=[];function k(t,r){for(var i=t.makeCalcdata({v:r.values,vcalendar:e.calendar},&quot;v&quot;),a=0;a&lt;i.length;a++)i[a]=i[a]===f?NaN:i[a];_.push(i),w.push(&quot;log&quot;===t.type?n.simpleMap(i,t.c2l):i)}for(r=0;r&lt;y.length;r++)if((d=y[r]).visible){if(g=i.getFromId(t,e._diag[r][0]),m=i.getFromId(t,e._diag[r][1]),g&amp;&amp;m&amp;&amp;g.type!==m.type){n.log(&quot;Skipping splom dimension &quot;+r+&quot; with conflicting axis types&quot;);continue}g?(k(g,d),m&amp;&amp;&quot;category&quot;===m.type&amp;&amp;(m._categories=g._categories.slice())):k(m,d),T.push(r)}for(s(t,e),n.extendFlat(b,c(e)),v=_.length*x&gt;h?2*(b.sizeAvg||Math.max(b.size,3)):a(e,x),p=0;p&lt;T.length;p++)d=y[r=T[p]],g=i.getFromId(t,e._diag[r][0])||{},m=i.getFromId(t,e._diag[r][1])||{},o(t,e,g,m,_[p],_[p],v);var M=u(t,e);return M.matrix||(M.matrix=!0),M.matrixOptions=b,M.selectedOptions=l(e,e.selected),M.unselectedOptions=l(e,e.unselected),[{x:!1,y:!1,t:{},trace:e}]}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../scatter/calc&quot;:1188,&quot;../scatter/colorscale_calc&quot;:1190,&quot;../scattergl/constants&quot;:1241,&quot;../scattergl/convert&quot;:1242,&quot;./scene_update&quot;:1292}],1286:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../scatter/subtypes&quot;),s=t(&quot;../scatter/marker_defaults&quot;),l=t(&quot;../parcoords/merge_length&quot;),c=t(&quot;../scattergl/helpers&quot;).isOpenSymbol;function u(t,e){function r(r,i){return n.coerce(t,e,a.dimensions,r,i)}r(&quot;label&quot;);var i=r(&quot;values&quot;);i&amp;&amp;i.length?r(&quot;visible&quot;):e.visible=!1,r(&quot;axis.type&quot;),r(&quot;axis.matches&quot;)}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,a,r,i)}var p=i(t,e,{name:&quot;dimensions&quot;,handleItemDefaults:u}),d=h(&quot;diagonal.visible&quot;),g=h(&quot;showupperhalf&quot;),m=h(&quot;showlowerhalf&quot;);if(l(e,p,&quot;values&quot;)&amp;&amp;(d||g||m)){h(&quot;text&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;),s(t,e,r,f,h);var v=c(e.marker.symbol),y=o.isBubble(e);h(&quot;marker.line.width&quot;,v||y?1:0),function(t,e,r,n){var i,a,o=e.dimensions,s=o.length,l=e.showupperhalf,c=e.showlowerhalf,u=e.diagonal.visible,f=new Array(s),h=new Array(s);for(i=0;i&lt;s;i++){var p=i?i+1:&quot;&quot;;f[i]=&quot;x&quot;+p,h[i]=&quot;y&quot;+p}var d=n(&quot;xaxes&quot;,f),g=n(&quot;yaxes&quot;,h),m=e._diag=new Array(s);e._xaxes={},e._yaxes={};var v=[],y=[];function x(t,n,i,a){if(t){var o=t.charAt(0),s=r._splomAxes[o];if(e[&quot;_&quot;+o+&quot;axes&quot;][t]=1,a.push(t),!(t in s)){var l=s[t]={};i&amp;&amp;(l.label=i.label||&quot;&quot;,i.visible&amp;&amp;i.axis&amp;&amp;(i.axis.type&amp;&amp;(l.type=i.axis.type),i.axis.matches&amp;&amp;(l.matches=n)))}}}var b=!u&amp;&amp;!c,_=!u&amp;&amp;!l;for(e._axesDim={},i=0;i&lt;s;i++){var w=o[i],T=0===i,k=i===s-1,M=T&amp;&amp;b||k&amp;&amp;_?void 0:d[i],A=T&amp;&amp;_||k&amp;&amp;b?void 0:g[i];x(M,A,w,v),x(A,M,w,y),m[i]=[M,A],e._axesDim[M]=i,e._axesDim[A]=i}for(i=0;i&lt;v.length;i++)for(a=0;a&lt;y.length;a++){var S=v[i]+y[a];i&gt;a&amp;&amp;l||i&lt;a&amp;&amp;c?r._splomSubplots[S]=1:i!==a||!u&amp;&amp;c&amp;&amp;l||(r._splomSubplots[S]=1)}(!c||!u&amp;&amp;l&amp;&amp;c)&amp;&amp;(r._splomGridDflt.xside=&quot;bottom&quot;,r._splomGridDflt.yside=&quot;left&quot;)}(0,e,f,h),n.coerceSelectionMarkerOpacity(e,h)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../parcoords/merge_length&quot;:1158,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scattergl/helpers&quot;:1246,&quot;./attributes&quot;:1283}],1287:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scattergl/convert&quot;).markerStyle;e.exports=function(t,e){var r=e.trace,o=t._fullLayout._splomScenes[r.uid];if(o){i(t,r),n.extendFlat(o.matrixOptions,a(r));var s=n.extendFlat({},o.matrixOptions,o.viewOpts);o.matrix.update(s,null)}}},{&quot;../../lib&quot;:778,&quot;../scatter/colorscale_calc&quot;:1190,&quot;../scattergl/convert&quot;:1242}],1288:[function(t,e,r){&quot;use strict&quot;;r.getDimIndex=function(t,e){for(var r=e._id,n={x:0,y:1}[r.charAt(0)],i=t._visibleDims,a=0;a&lt;i.length;a++){var o=i[a];if(t._diag[o][n]===r)return a}return!1}},{}],1289:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./helpers&quot;),i=t(&quot;../scattergl/hover&quot;).calcHover;e.exports={hoverPoints:function(t,e,r){var a=t.cd[0].trace,o=t.scene.matrixOptions.cdata,s=t.xa,l=t.ya,c=s.c2p(e),u=l.c2p(r),f=t.distance,h=n.getDimIndex(a,s),p=n.getDimIndex(a,l);if(!1===h||!1===p)return[t];for(var d,g,m=o[h],v=o[p],y=f,x=0;x&lt;m.length;x++){var b=m[x],_=v[x],w=s.c2p(b)-c,T=l.c2p(_)-u,k=Math.sqrt(w*w+T*T);k&lt;y&amp;&amp;(y=g=k,d=x)}return t.index=d,t.distance=y,t.dxy=g,void 0===d?[t]:[i(t,m,v,a)]}}},{&quot;../scattergl/hover&quot;:1247,&quot;./helpers&quot;:1288}],1290:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../components/grid&quot;);e.exports={moduleType:&quot;trace&quot;,name:&quot;splom&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;cartesian&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;./select&quot;),editStyle:t(&quot;./edit_style&quot;),meta:{}},n.register(i)},{&quot;../../components/grid&quot;:687,&quot;../../registry&quot;:911,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1283,&quot;./base_plot&quot;:1284,&quot;./calc&quot;:1285,&quot;./defaults&quot;:1286,&quot;./edit_style&quot;:1287,&quot;./hover&quot;:1289,&quot;./plot&quot;:1291,&quot;./select&quot;:1293}],1291:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-splom&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../components/dragelement/helpers&quot;).selectMode;function s(t,e){var r,s,l,c,u,f=t._fullLayout,h=f._size,p=e.trace,d=e.t,g=f._splomScenes[p.uid],m=g.matrixOptions,v=m.cdata,y=f._glcanvas.data()[0].regl,x=f.dragmode;if(0!==v.length){m.lower=p.showupperhalf,m.upper=p.showlowerhalf,m.diagonal=p.diagonal.visible;var b=p._visibleDims,_=v.length,w=g.viewOpts={};for(w.ranges=new Array(_),w.domains=new Array(_),u=0;u&lt;b.length;u++){l=b[u];var T=w.ranges[u]=new Array(4),k=w.domains[u]=new Array(4);(r=a.getFromId(t,p._diag[l][0]))&amp;&amp;(T[0]=r._rl[0],T[2]=r._rl[1],k[0]=r.domain[0],k[2]=r.domain[1]),(s=a.getFromId(t,p._diag[l][1]))&amp;&amp;(T[1]=s._rl[0],T[3]=s._rl[1],k[1]=s.domain[0],k[3]=s.domain[1])}w.viewport=[h.l,h.b,h.w+h.l,h.h+h.b],!0===g.matrix&amp;&amp;(g.matrix=n(y));var M=f.clickmode.indexOf(&quot;select&quot;)&gt;-1,A=!0;if(o(x)||!!p.selectedpoints||M){var S=p._length;if(p.selectedpoints){g.selectBatch=p.selectedpoints;var E=p.selectedpoints,C={};for(l=0;l&lt;E.length;l++)C[E[l]]=!0;var L=[];for(l=0;l&lt;S;l++)C[l]||L.push(l);g.unselectBatch=L}var I=d.xpx=new Array(_),P=d.ypx=new Array(_);for(u=0;u&lt;b.length;u++){if(l=b[u],r=a.getFromId(t,p._diag[l][0]))for(I[u]=new Array(S),c=0;c&lt;S;c++)I[u][c]=r.c2p(v[u][c]);if(s=a.getFromId(t,p._diag[l][1]))for(P[u]=new Array(S),c=0;c&lt;S;c++)P[u][c]=s.c2p(v[u][c])}if(g.selectBatch.length||g.unselectBatch.length){var z=i.extendFlat({},m,g.unselectedOptions,w),O=i.extendFlat({},m,g.selectedOptions,w);g.matrix.update(z,O),A=!1}}else d.xpx=d.ypx=null;if(A){var D=i.extendFlat({},m,w);g.matrix.update(D,null)}}}e.exports=function(t,e,r){if(r.length)for(var n=0;n&lt;r.length;n++)s(t,r[n][0])}},{&quot;../../components/dragelement/helpers&quot;:661,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;regl-splom&quot;:539}],1292:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=t._fullLayout,i=e.uid,a=r._splomScenes;a||(a=r._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s=a[e.uid];return s||((s=a[i]=n.extendFlat({},o,{matrix:!1,selectBatch:[],unselectBatch:[]})).draw=function(){s.matrix&amp;&amp;s.matrix.draw&amp;&amp;(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&amp;&amp;s.matrix.destroy&amp;&amp;s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||n.extendFlat(s,o),s}},{&quot;../../lib&quot;:778}],1293:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;./helpers&quot;);e.exports=function(t,e){var r=t.cd,o=r[0].trace,s=r[0].t,l=t.scene,c=l.matrixOptions.cdata,u=t.xaxis,f=t.yaxis,h=[];if(!l)return h;var p=!i.hasMarkers(o)&amp;&amp;!i.hasText(o);if(!0!==o.visible||p)return h;var d=a.getDimIndex(o,u),g=a.getDimIndex(o,f);if(!1===d||!1===g)return h;var m=s.xpx[d],v=s.ypx[g],y=c[d],x=c[g],b=[],_=[];if(!1!==e&amp;&amp;!e.degenerate)for(var w=0;w&lt;y.length;w++)e.contains([m[w],v[w]],null,w,t)?(b.push(w),h.push({pointNumber:w,x:y[w],y:x[w]})):_.push(w);var T=l.matrixOptions;return b.length||_.length?l.selectBatch.length||l.unselectBatch.length||l.matrix.update(l.unselectedOptions,n.extendFlat({},T,l.selectedOptions,l.viewOpts)):l.matrix.update(T,null),l.selectBatch=b,l.unselectBatch=_,h}},{&quot;../../lib&quot;:778,&quot;../scatter/subtypes&quot;:1212,&quot;./helpers&quot;:1288}],1294:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../mesh3d/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},u:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},v:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},w:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},starts:{x:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},maxdisplayed:{valType:&quot;integer&quot;,min:0,dflt:1e3,editType:&quot;calc&quot;},sizeref:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0,dflt:1},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertemplate:i({editType:&quot;calc&quot;},{keys:[&quot;tubex&quot;,&quot;tubey&quot;,&quot;tubez&quot;,&quot;tubeu&quot;,&quot;tubev&quot;,&quot;tubew&quot;,&quot;norm&quot;,&quot;divergence&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})};s(l,n(&quot;&quot;,{colorAttr:&quot;u/v/w norm&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}));[&quot;opacity&quot;,&quot;lightposition&quot;,&quot;lighting&quot;].forEach((function(t){l[t]=a[t]})),l.hoverinfo=s({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;norm&quot;,&quot;divergence&quot;,&quot;text&quot;,&quot;name&quot;],dflt:&quot;x+y+z+norm+text+name&quot;}),l.transforms=void 0,e.exports=l},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../mesh3d/attributes&quot;:1128}],1295:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/calc&quot;);function a(t){var e,r,i,a,s,l,c,u,f,h,p,d,g=t._x,m=t._y,v=t._z,y=t._len,x=-1/0,b=1/0,_=-1/0,w=1/0,T=-1/0,k=1/0,M=&quot;&quot;;for(y&amp;&amp;(c=g[0],f=m[0],p=v[0]),y&gt;1&amp;&amp;(u=g[y-1],h=m[y-1],d=v[y-1]),e=0;e&lt;y;e++)x=Math.max(x,g[e]),b=Math.min(b,g[e]),_=Math.max(_,m[e]),w=Math.min(w,m[e]),T=Math.max(T,v[e]),k=Math.min(k,v[e]),a||g[e]===c||(a=!0,M+=&quot;x&quot;),s||m[e]===f||(s=!0,M+=&quot;y&quot;),l||v[e]===p||(l=!0,M+=&quot;z&quot;);a||(M+=&quot;x&quot;),s||(M+=&quot;y&quot;),l||(M+=&quot;z&quot;);var A=o(t._x),S=o(t._y),E=o(t._z);M=(M=(M=M.replace(&quot;x&quot;,(c&gt;u?&quot;-&quot;:&quot;+&quot;)+&quot;x&quot;)).replace(&quot;y&quot;,(f&gt;h?&quot;-&quot;:&quot;+&quot;)+&quot;y&quot;)).replace(&quot;z&quot;,(p&gt;d?&quot;-&quot;:&quot;+&quot;)+&quot;z&quot;);var C=function(){y=0,A=[],S=[],E=[]};(!y||y&lt;A.length*S.length*E.length)&amp;&amp;C();var L=function(t){return&quot;x&quot;===t?g:&quot;y&quot;===t?m:v},I=function(t){return&quot;x&quot;===t?A:&quot;y&quot;===t?S:E},P=function(t){return t[y-1]&lt;t[0]?-1:1},z=L(M[1]),O=L(M[3]),D=L(M[5]),R=I(M[1]).length,F=I(M[3]).length,B=I(M[5]).length,N=!1,j=function(t,e,r){return R*(F*t+e)+r},U=P(L(M[1])),V=P(L(M[3])),q=P(L(M[5]));for(e=0;e&lt;B-1;e++){for(r=0;r&lt;F-1;r++){for(i=0;i&lt;R-1;i++){var H=j(e,r,i),G=j(e,r,i+1),Y=j(e,r+1,i),W=j(e+1,r,i);if(z[H]*U&lt;z[G]*U&amp;&amp;O[H]*V&lt;O[Y]*V&amp;&amp;D[H]*q&lt;D[W]*q||(N=!0),N)break}if(N)break}if(N)break}return N&amp;&amp;(n.warn(&quot;Encountered arbitrary coordinates! Unable to input data grid.&quot;),C()),{xMin:b,yMin:w,zMin:k,xMax:x,yMax:_,zMax:T,Xs:A,Ys:S,Zs:E,len:y,fill:M}}function o(t){return n.distinctVals(t).vals}function s(t,e){if(void 0===e&amp;&amp;(e=t.length),n.isTypedArray(t))return t.subarray(0,e);for(var r=[],i=0;i&lt;e;i++)r[i]=+t[i];return r}e.exports={calc:function(t,e){e._len=Math.min(e.u.length,e.v.length,e.w.length,e.x.length,e.y.length,e.z.length),e._u=s(e.u,e._len),e._v=s(e.v,e._len),e._w=s(e.w,e._len),e._x=s(e.x,e._len),e._y=s(e.y,e._len),e._z=s(e.z,e._len);var r=a(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;var n,o,l,c=0;e.starts&amp;&amp;(n=s(e.starts.x||[]),o=s(e.starts.y||[]),l=s(e.starts.z||[]),c=Math.min(n.length,o.length,l.length)),e._startsX=n||[],e._startsY=o||[],e._startsZ=l||[];var u,f=0,h=1/0;for(u=0;u&lt;e._len;u++){var p=e._u[u],d=e._v[u],g=e._w[u],m=Math.sqrt(p*p+d*d+g*g);f=Math.max(f,m),h=Math.min(h,m)}for(i(t,e,{vals:[h,f],containerStr:&quot;&quot;,cLetter:&quot;c&quot;}),u=0;u&lt;c;u++){var v=n[u];r.xMax=Math.max(r.xMax,v),r.xMin=Math.min(r.xMin,v);var y=o[u];r.yMax=Math.max(r.yMax,y),r.yMin=Math.min(r.yMin,y);var x=l[u];r.zMax=Math.max(r.zMax,x),r.zMin=Math.min(r.zMin,x)}e._slen=c,e._normMax=f,e._xbnds=[r.xMin,r.xMax],e._ybnds=[r.yMin,r.yMax],e._zbnds=[r.zMin,r.zMax]},filter:s,processGrid:a}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../lib&quot;:778}],1296:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-streamtube3d&quot;),i=n.createTubeMesh,a=t(&quot;../../lib&quot;),o=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,s=t(&quot;../../components/colorscale&quot;).extractOpts,l=t(&quot;../../plots/gl3d/zip3&quot;),c={xaxis:0,yaxis:1,zaxis:2};function u(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var f=u.prototype;function h(t){var e=t.length;return e&gt;2?t.slice(1,e-1):2===e?[(t[0]+t[1])/2]:t}function p(t){var e=t.length;return 1===e?[.5,.5]:[t[1]-t[0],t[e-1]-t[e-2]]}function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,u=e._len,f={};function d(t,e){var n=r[e],o=i[c[e]];return a.simpleMap(t,(function(t){return n.d2l(t)*o}))}if(f.vectors=l(d(e._u,&quot;xaxis&quot;),d(e._v,&quot;yaxis&quot;),d(e._w,&quot;zaxis&quot;),u),!u)return{positions:[],cells:[]};var g=d(e._Xs,&quot;xaxis&quot;),m=d(e._Ys,&quot;yaxis&quot;),v=d(e._Zs,&quot;zaxis&quot;);if(f.meshgrid=[g,m,v],f.gridFill=e._gridFill,e._slen)f.startingPositions=l(d(e._startsX,&quot;xaxis&quot;),d(e._startsY,&quot;yaxis&quot;),d(e._startsZ,&quot;zaxis&quot;));else{for(var y=m[0],x=h(g),b=h(v),_=new Array(x.length*b.length),w=0,T=0;T&lt;x.length;T++)for(var k=0;k&lt;b.length;k++)_[w++]=[x[T],y,b[k]];f.startingPositions=_}f.colormap=o(e),f.tubeSize=e.sizeref,f.maxLength=e.maxdisplayed;var M=d(e._xbnds,&quot;xaxis&quot;),A=d(e._ybnds,&quot;yaxis&quot;),S=d(e._zbnds,&quot;zaxis&quot;),E=p(g),C=p(m),L=p(v),I=[[M[0]-E[0],A[0]-C[0],S[0]-L[0]],[M[1]+E[1],A[1]+C[1],S[1]+L[1]]],P=n(f,I),z=s(e);P.vertexIntensityBounds=[z.min/e._normMax,z.max/e._normMax];var O=e.lightposition;return P.lightPosition=[O.x,O.y,O.z],P.ambient=e.lighting.ambient,P.diffuse=e.lighting.diffuse,P.specular=e.lighting.specular,P.roughness=e.lighting.roughness,P.fresnel=e.lighting.fresnel,P.opacity=e.opacity,e._pad=P.tubeScale*e.sizeref*2,P}f.handlePick=function(t){var e=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(t,n){var i=e[n],a=r[c[n]];return i.l2c(t)/a}if(t.object===this.mesh){var i=t.data.position,a=t.data.velocity;return t.traceCoordinate=[n(i[0],&quot;xaxis&quot;),n(i[1],&quot;yaxis&quot;),n(i[2],&quot;zaxis&quot;),n(a[0],&quot;xaxis&quot;),n(a[1],&quot;yaxis&quot;),n(a[2],&quot;zaxis&quot;),t.data.intensity*this.data._normMax,t.data.divergence],t.textLabel=this.data.hovertext||this.data.text,!0}},f.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new u(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../plots/gl3d/zip3&quot;:881,&quot;gl-streamtube3d&quot;:348}],1297:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;u&quot;),c=s(&quot;v&quot;),u=s(&quot;w&quot;),f=s(&quot;x&quot;),h=s(&quot;y&quot;),p=s(&quot;z&quot;);l&amp;&amp;l.length&amp;&amp;c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length&amp;&amp;p&amp;&amp;p.length?(s(&quot;starts.x&quot;),s(&quot;starts.y&quot;),s(&quot;starts.z&quot;),s(&quot;maxdisplayed&quot;),s(&quot;sizeref&quot;),s(&quot;lighting.ambient&quot;),s(&quot;lighting.diffuse&quot;),s(&quot;lighting.specular&quot;),s(&quot;lighting.roughness&quot;),s(&quot;lighting.fresnel&quot;),s(&quot;lightposition.x&quot;),s(&quot;lightposition.y&quot;),s(&quot;lightposition.z&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:1294}],1298:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;streamtube&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./convert&quot;),eventData:function(t,e){return t.tubex=t.x,t.tubey=t.y,t.tubez=t.z,t.tubeu=e.traceCoordinate[3],t.tubev=e.traceCoordinate[4],t.tubew=e.traceCoordinate[5],t.norm=e.traceCoordinate[6],t.divergence=e.traceCoordinate[7],delete t.x,delete t.y,delete t.z,t},meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1294,&quot;./calc&quot;:1295,&quot;./convert&quot;:1296,&quot;./defaults&quot;:1297}],1299:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../pie/attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},parents:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},branchvalues:{valType:&quot;enumerated&quot;,values:[&quot;remainder&quot;,&quot;total&quot;],dflt:&quot;remainder&quot;,editType:&quot;calc&quot;},count:{valType:&quot;flaglist&quot;,flags:[&quot;branches&quot;,&quot;leaves&quot;],dflt:&quot;leaves&quot;,editType:&quot;calc&quot;},level:{valType:&quot;any&quot;,editType:&quot;plot&quot;,anim:!0},maxdepth:{valType:&quot;integer&quot;,editType:&quot;plot&quot;,dflt:-1},marker:u({colors:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:u({},l.marker.line.color,{dflt:null}),width:u({},l.marker.line.width,{dflt:1}),editType:&quot;calc&quot;},editType:&quot;calc&quot;},o(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),leaf:{opacity:{valType:&quot;number&quot;,editType:&quot;style&quot;,min:0,max:1},editType:&quot;plot&quot;},text:l.text,textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;current path&quot;,&quot;percent root&quot;,&quot;percent entry&quot;,&quot;percent parent&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;},texttemplate:a({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:l.hovertext,hoverinfo:u({},n.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;name&quot;,&quot;current path&quot;,&quot;percent root&quot;,&quot;percent entry&quot;,&quot;percent parent&quot;],dflt:&quot;label+text+value+name&quot;}),hovertemplate:i({},{keys:c.eventDataKeys}),textfont:l.textfont,insidetextorientation:l.insidetextorientation,insidetextfont:l.insidetextfont,outsidetextfont:u({},l.outsidetextfont,{}),rotation:{valType:&quot;angle&quot;,dflt:0,editType:&quot;plot&quot;},sort:l.sort,root:{color:{valType:&quot;color&quot;,editType:&quot;calc&quot;,dflt:&quot;rgba(0,0,0,0)&quot;},editType:&quot;calc&quot;},domain:s({name:&quot;sunburst&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/template_attributes&quot;:906,&quot;../pie/attributes&quot;:1161,&quot;./constants&quot;:1302}],1300:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;sunburst&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1301:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/colorscale&quot;).makeColorScaleFuncFromTrace,s=t(&quot;../pie/calc&quot;).makePullColorFn,l=t(&quot;../pie/calc&quot;).generateExtendedColors,c=t(&quot;../../components/colorscale&quot;).calc,u=t(&quot;../../constants/numerical&quot;).ALMOST_EQUAL,f={},h={};r.calc=function(t,e){var r,l,f,h,p,d,g=t._fullLayout,m=e.ids,v=a.isArrayOrTypedArray(m),y=e.labels,x=e.parents,b=e.values,_=a.isArrayOrTypedArray(b),w=[],T={},k={},M=function(t){return t||&quot;number&quot;==typeof t},A=function(t){return!_||i(b[t])&amp;&amp;b[t]&gt;=0};v?(r=Math.min(m.length,x.length),l=function(t){return M(m[t])&amp;&amp;A(t)},f=function(t){return String(m[t])}):(r=Math.min(y.length,x.length),l=function(t){return M(y[t])&amp;&amp;A(t)},f=function(t){return String(y[t])}),_&amp;&amp;(r=Math.min(r,b.length));for(var S=0;S&lt;r;S++)if(l(S)){var E=f(S),C=M(x[S])?String(x[S]):&quot;&quot;,L={i:S,id:E,pid:C,label:M(y[S])?String(y[S]):&quot;&quot;};_&amp;&amp;(L.v=+b[S]),w.push(L),p=E,T[h=C]?T[h].push(p):T[h]=[p],k[p]=1}if(T[&quot;&quot;]){if(T[&quot;&quot;].length&gt;1){for(var I=a.randstr(),P=0;P&lt;w.length;P++)&quot;&quot;===w[P].pid&amp;&amp;(w[P].pid=I);w.unshift({hasMultipleRoots:!0,id:I,pid:&quot;&quot;,label:&quot;&quot;})}}else{var z,O=[];for(z in T)k[z]||O.push(z);if(1!==O.length)return a.warn([&quot;Multiple implied roots, cannot build&quot;,e.type,&quot;hierarchy of&quot;,e.name+&quot;.&quot;,&quot;These roots include:&quot;,O.join(&quot;, &quot;)].join(&quot; &quot;));z=O[0],w.unshift({hasImpliedRoot:!0,id:z,pid:&quot;&quot;,label:z})}try{d=n.stratify().id((function(t){return t.id})).parentId((function(t){return t.pid}))(w)}catch(t){return a.warn([&quot;Failed to build&quot;,e.type,&quot;hierarchy of&quot;,e.name+&quot;.&quot;,&quot;Error:&quot;,t.message].join(&quot; &quot;))}var D=n.hierarchy(d),R=!1;if(_)switch(e.branchvalues){case&quot;remainder&quot;:D.sum((function(t){return t.data.v}));break;case&quot;total&quot;:D.each((function(t){var r=t.data.data,n=r.v;if(t.children){var i=t.children.reduce((function(t,e){return t+e.data.data.v}),0);if((r.hasImpliedRoot||r.hasMultipleRoots)&amp;&amp;(n=i),n&lt;i*u)return R=!0,a.warn([&quot;Total value for node&quot;,t.data.data.id,&quot;of&quot;,e.name,&quot;is smaller than the sum of its children.&quot;,&quot;\nparent value =&quot;,n,&quot;\nchildren sum =&quot;,i].join(&quot; &quot;))}t.value=n}))}else!function t(e,r,n){var i=0,a=e.children;if(a){for(var o=a.length,s=0;s&lt;o;s++)i+=t(a[s],r,n);n.branches&amp;&amp;i++}else n.leaves&amp;&amp;i++;e.value=e.data.data.value=i,r._values||(r._values=[]);return r._values[e.data.data.i]=i,i}(D,e,{branches:-1!==e.count.indexOf(&quot;branches&quot;),leaves:-1!==e.count.indexOf(&quot;leaves&quot;)});if(!R){var F,B;e.sort&amp;&amp;D.sort((function(t,e){return e.value-t.value}));var N=e.marker.colors||[],j=!!N.length;return e._hasColorscale?(j||(N=_?e.values:e._values),c(t,e,{vals:N,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),B=o(e.marker)):F=s(g[&quot;_&quot;+e.type+&quot;colormap&quot;]),D.each((function(t){var r=t.data.data;r.color=e._hasColorscale?B(N[r.i]):F(N[r.i],r.id)})),w[0].hierarchy=D,w}},r._runCrossTraceCalc=function(t,e){var r=e._fullLayout,n=e.calcdata,i=r[t+&quot;colorway&quot;],a=r[&quot;_&quot;+t+&quot;colormap&quot;];r[&quot;extend&quot;+t+&quot;colors&quot;]&amp;&amp;(i=l(i,&quot;treemap&quot;===t?h:f));var o,s=0;function c(t){var e=t.data.data,r=e.id;!1===e.color&amp;&amp;(a[r]?e.color=a[r]:t.parent?t.parent.parent?e.color=t.parent.data.data.color:(a[r]=e.color=i[s%i.length],s++):e.color=o)}for(var u=0;u&lt;n.length;u++){var p=n[u][0];p.trace.type===t&amp;&amp;p.hierarchy&amp;&amp;(o=p.trace.root.color,p.hierarchy.each(c))}},r.crossTraceCalc=function(t){return r._runCrossTraceCalc(&quot;sunburst&quot;,t)}},{&quot;../../components/colorscale&quot;:655,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../pie/calc&quot;:1163,&quot;d3-hierarchy&quot;:161,&quot;fast-isnumeric&quot;:241}],1302:[function(t,e,r){&quot;use strict&quot;;e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:&quot;linear&quot;,eventDataKeys:[&quot;currentPath&quot;,&quot;root&quot;,&quot;entry&quot;,&quot;percentRoot&quot;,&quot;percentEntry&quot;,&quot;percentParent&quot;]}},{}],1303:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../bar/defaults&quot;).handleText,s=t(&quot;../../components/colorscale&quot;),l=s.hasColorscale,c=s.handleDefaults;e.exports=function(t,e,r,s){function u(r,a){return n.coerce(t,e,i,r,a)}var f=u(&quot;labels&quot;),h=u(&quot;parents&quot;);if(f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length){var p=u(&quot;values&quot;);p&amp;&amp;p.length?u(&quot;branchvalues&quot;):u(&quot;count&quot;),u(&quot;level&quot;),u(&quot;maxdepth&quot;),u(&quot;marker.line.width&quot;)&amp;&amp;u(&quot;marker.line.color&quot;,s.paper_bgcolor),u(&quot;marker.colors&quot;);var d=e._hasColorscale=l(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis;d&amp;&amp;c(t,e,s,u,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),u(&quot;leaf.opacity&quot;,d?1:.7);var g=u(&quot;text&quot;);u(&quot;texttemplate&quot;),e.texttemplate||u(&quot;textinfo&quot;,Array.isArray(g)?&quot;text+label&quot;:&quot;label&quot;),u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;);o(t,e,s,u,&quot;auto&quot;,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),u(&quot;insidetextorientation&quot;),u(&quot;sort&quot;),u(&quot;rotation&quot;),u(&quot;root.color&quot;),a(e,s,u),e._length=null}else e.visible=!1}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/defaults&quot;:925,&quot;./attributes&quot;:1299}],1304:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,o=t(&quot;../../components/fx&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/events&quot;),c=t(&quot;./helpers&quot;),u=t(&quot;../pie/helpers&quot;).formatPieValue;function f(t,e,r){for(var n=t.data.data,i={curveNumber:e.index,pointNumber:n.i,data:e._input,fullData:e},o=0;o&lt;r.length;o++){var s=r[o];s in t&amp;&amp;(i[s]=t[s])}return&quot;parentString&quot;in t&amp;&amp;!c.isHierarchyRoot(t)&amp;&amp;(i.parent=t.parentString),a(i,e,n.i),i}e.exports=function(t,e,r,a,h){var p=a[0],d=p.trace,g=p.hierarchy,m=&quot;sunburst&quot;===d.type,v=&quot;treemap&quot;===d.type;&quot;_hasHoverLabel&quot;in d||(d._hasHoverLabel=!1),&quot;_hasHoverEvent&quot;in d||(d._hasHoverEvent=!1);t.on(&quot;mouseover&quot;,(function(i){var a=r._fullLayout;if(!r._dragging&amp;&amp;!1!==a.hovermode){var l=r._fullData[d.index],y=i.data.data,x=y.i,b=c.isHierarchyRoot(i),_=c.getParent(g,i),w=c.getValue(i),T=function(t){return s.castOption(l,x,t)},k=T(&quot;hovertemplate&quot;),M=o.castHoverinfo(l,a,x),A=a.separators;if(k||M&amp;&amp;&quot;none&quot;!==M&amp;&amp;&quot;skip&quot;!==M){var S,E;m&amp;&amp;(S=p.cx+i.pxmid[0]*(1-i.rInscribed),E=p.cy+i.pxmid[1]*(1-i.rInscribed)),v&amp;&amp;(S=i._hoverX,E=i._hoverY);var C,L={},I=[],P=[],z=function(t){return-1!==I.indexOf(t)};M&amp;&amp;(I=&quot;all&quot;===M?l._module.attributes.hoverinfo.flags:M.split(&quot;+&quot;)),L.label=y.label,z(&quot;label&quot;)&amp;&amp;L.label&amp;&amp;P.push(L.label),y.hasOwnProperty(&quot;v&quot;)&amp;&amp;(L.value=y.v,L.valueLabel=u(L.value,A),z(&quot;value&quot;)&amp;&amp;P.push(L.valueLabel)),L.currentPath=i.currentPath=c.getPath(i.data),z(&quot;current path&quot;)&amp;&amp;!b&amp;&amp;P.push(L.currentPath);var O=[],D=function(){-1===O.indexOf(C)&amp;&amp;(P.push(C),O.push(C))};L.percentParent=i.percentParent=w/c.getValue(_),L.parent=i.parentString=c.getPtLabel(_),z(&quot;percent parent&quot;)&amp;&amp;(C=c.formatPercent(L.percentParent,A)+&quot; of &quot;+L.parent,D()),L.percentEntry=i.percentEntry=w/c.getValue(e),L.entry=i.entry=c.getPtLabel(e),!z(&quot;percent entry&quot;)||b||i.onPathbar||(C=c.formatPercent(L.percentEntry,A)+&quot; of &quot;+L.entry,D()),L.percentRoot=i.percentRoot=w/c.getValue(g),L.root=i.root=c.getPtLabel(g),z(&quot;percent root&quot;)&amp;&amp;!b&amp;&amp;(C=c.formatPercent(L.percentRoot,A)+&quot; of &quot;+L.root,D()),L.text=T(&quot;hovertext&quot;)||T(&quot;text&quot;),z(&quot;text&quot;)&amp;&amp;(C=L.text,s.isValidTextValue(C)&amp;&amp;P.push(C));var R={trace:l,y:E,text:P.join(&quot;&lt;br&gt;&quot;),name:k||z(&quot;name&quot;)?l.name:void 0,color:T(&quot;hoverlabel.bgcolor&quot;)||y.color,borderColor:T(&quot;hoverlabel.bordercolor&quot;),fontFamily:T(&quot;hoverlabel.font.family&quot;),fontSize:T(&quot;hoverlabel.font.size&quot;),fontColor:T(&quot;hoverlabel.font.color&quot;),nameLength:T(&quot;hoverlabel.namelength&quot;),textAlign:T(&quot;hoverlabel.align&quot;),hovertemplate:k,hovertemplateLabels:L,eventData:[f(i,l,h.eventDataKeys)]};m&amp;&amp;(R.x0=S-i.rInscribed*i.rpx1,R.x1=S+i.rInscribed*i.rpx1,R.idealAlign=i.pxmid[0]&lt;0?&quot;left&quot;:&quot;right&quot;),v&amp;&amp;(R.x=S,R.idealAlign=S&lt;0?&quot;left&quot;:&quot;right&quot;),o.loneHover(R,{container:a._hoverlayer.node(),outerContainer:a._paper.node(),gd:r}),d._hasHoverLabel=!0}if(v){var F=t.select(&quot;path.surface&quot;);h.styleOne(F,i,l,{hovered:!0})}d._hasHoverEvent=!0,r.emit(&quot;plotly_hover&quot;,{points:[f(i,l,h.eventDataKeys)],event:n.event})}})),t.on(&quot;mouseout&quot;,(function(e){var i=r._fullLayout,a=r._fullData[d.index],s=n.select(this).datum();if(d._hasHoverEvent&amp;&amp;(e.originalEvent=n.event,r.emit(&quot;plotly_unhover&quot;,{points:[f(s,a,h.eventDataKeys)],event:n.event}),d._hasHoverEvent=!1),d._hasHoverLabel&amp;&amp;(o.loneUnhover(i._hoverlayer.node()),d._hasHoverLabel=!1),v){var l=t.select(&quot;path.surface&quot;);h.styleOne(l,s,a,{hovered:!1})}})),t.on(&quot;click&quot;,(function(t){var e=r._fullLayout,a=r._fullData[d.index],s=m&amp;&amp;(c.isHierarchyRoot(t)||c.isLeaf(t)),u=c.getPtId(t),p=c.isEntry(t)?c.findEntryWithChild(g,u):c.findEntryWithLevel(g,u),v=c.getPtId(p),y={points:[f(t,a,h.eventDataKeys)],event:n.event};s||(y.nextLevel=v);var x=l.triggerHandler(r,&quot;plotly_&quot;+d.type+&quot;click&quot;,y);if(!1!==x&amp;&amp;e.hovermode&amp;&amp;(r._hoverdata=[f(t,a,h.eventDataKeys)],o.click(r,n.event)),!s&amp;&amp;!1!==x&amp;&amp;!r._dragging&amp;&amp;!r._transitioning){i.call(&quot;_storeDirectGUIEdit&quot;,a,e._tracePreGUI[a.uid],{level:a.level});var b={data:[{level:v}],traces:[d.index]},_={frame:{redraw:!1,duration:h.transitionTime},transition:{duration:h.transitionTime,easing:h.transitionEasing},mode:&quot;immediate&quot;,fromcurrent:!0};o.loneUnhover(e._hoverlayer.node()),i.call(&quot;animate&quot;,r,b,_)}}))}},{&quot;../../components/fx&quot;:683,&quot;../../components/fx/helpers&quot;:679,&quot;../../lib&quot;:778,&quot;../../lib/events&quot;:767,&quot;../../registry&quot;:911,&quot;../pie/helpers&quot;:1166,&quot;./helpers&quot;:1305,d3:169}],1305:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib/setcursor&quot;),o=t(&quot;../pie/helpers&quot;);function s(t){return t.data.data.pid}r.findEntryWithLevel=function(t,e){var n;return e&amp;&amp;t.eachAfter((function(t){if(r.getPtId(t)===e)return n=t.copy()})),n||t},r.findEntryWithChild=function(t,e){var n;return t.eachAfter((function(t){for(var i=t.children||[],a=0;a&lt;i.length;a++){var o=i[a];if(r.getPtId(o)===e)return n=t.copy()}})),n||t},r.isEntry=function(t){return!t.parent},r.isLeaf=function(t){return!t.children},r.getPtId=function(t){return t.data.data.id},r.getPtLabel=function(t){return t.data.data.label},r.getValue=function(t){return t.value},r.isHierarchyRoot=function(t){return&quot;&quot;===s(t)},r.setSliceCursor=function(t,e,n){var i=n.isTransitioning;if(!i){var o=t.datum();i=n.hideOnRoot&amp;&amp;r.isHierarchyRoot(o)||n.hideOnLeaves&amp;&amp;r.isLeaf(o)}a(t,i?null:&quot;pointer&quot;)},r.getInsideTextFontKey=function(t,e,r,i,a){var o=(a||{}).onPathbar?&quot;pathbar.textfont&quot;:&quot;insidetextfont&quot;,s=r.data.data.i;return n.castOption(e,s,o+&quot;.&quot;+t)||n.castOption(e,s,&quot;textfont.&quot;+t)||i.size},r.getOutsideTextFontKey=function(t,e,r,i){var a=r.data.data.i;return n.castOption(e,a,&quot;outsidetextfont.&quot;+t)||n.castOption(e,a,&quot;textfont.&quot;+t)||i.size},r.isOutsideText=function(t,e){return!t._hasColorscale&amp;&amp;r.isHierarchyRoot(e)},r.determineTextFont=function(t,e,a,o){return r.isOutsideText(t,e)?function(t,e,n){return{color:r.getOutsideTextFontKey(&quot;color&quot;,t,e,n),family:r.getOutsideTextFontKey(&quot;family&quot;,t,e,n),size:r.getOutsideTextFontKey(&quot;size&quot;,t,e,n)}}(t,e,a):function(t,e,a,o){var s=(o||{}).onPathbar,l=e.data.data,c=l.i,u=n.castOption(t,c,(s?&quot;pathbar.textfont&quot;:&quot;insidetextfont&quot;)+&quot;.color&quot;);return!u&amp;&amp;t._input.textfont&amp;&amp;(u=n.castOption(t._input,c,&quot;textfont.color&quot;)),{color:u||i.contrast(l.color),family:r.getInsideTextFontKey(&quot;family&quot;,t,e,a,o),size:r.getInsideTextFontKey(&quot;size&quot;,t,e,a,o)}}(t,e,a,o)},r.hasTransition=function(t){return!!(t&amp;&amp;t.duration&gt;0)},r.getMaxDepth=function(t){return t.maxdepth&gt;=0?t.maxdepth:1/0},r.isHeader=function(t,e){return!(r.isLeaf(t)||t.depth===e._maxDepth-1)},r.getParent=function(t,e){return r.findEntryWithLevel(t,s(e))},r.listPath=function(t,e){var n=t.parent;if(!n)return[];var i=e?[n.data[e]]:[n];return r.listPath(n,e).concat(i)},r.getPath=function(t){return r.listPath(t,&quot;label&quot;).join(&quot;/&quot;)+&quot;/&quot;},r.formatValue=o.formatPieValue,r.formatPercent=function(t,e){var r=n.formatPercent(t,0);return&quot;0%&quot;===r&amp;&amp;(r=o.formatPiePercent(t,e)),r}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../pie/helpers&quot;:1166}],1306:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;sunburst&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1299,&quot;./base_plot&quot;:1300,&quot;./calc&quot;:1301,&quot;./defaults&quot;:1303,&quot;./layout_attributes&quot;:1307,&quot;./layout_defaults&quot;:1308,&quot;./plot&quot;:1309,&quot;./style&quot;:1310}],1307:[function(t,e,r){&quot;use strict&quot;;e.exports={sunburstcolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendsunburstcolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1308:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;sunburstcolorway&quot;,e.colorway),r(&quot;extendsunburstcolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1307}],1309:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-hierarchy&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../bar/uniform_text&quot;),c=l.recordMinTextSize,u=l.clearMinTextSize,f=t(&quot;../pie/plot&quot;),h=t(&quot;../pie/helpers&quot;).getRotationAngle,p=f.computeTransform,d=f.transformInsideText,g=t(&quot;./style&quot;).styleOne,m=t(&quot;../bar/style&quot;).resizeText,v=t(&quot;./fx&quot;),y=t(&quot;./constants&quot;),x=t(&quot;./helpers&quot;);function b(t,e,l,u){var f=t._fullLayout,m=!f.uniformtext.mode&amp;&amp;x.hasTransition(u),b=n.select(l).selectAll(&quot;g.slice&quot;),w=e[0],T=w.trace,k=w.hierarchy,M=x.findEntryWithLevel(k,T.level),A=x.getMaxDepth(T),S=f._size,E=T.domain,C=S.w*(E.x[1]-E.x[0]),L=S.h*(E.y[1]-E.y[0]),I=.5*Math.min(C,L),P=w.cx=S.l+S.w*(E.x[1]+E.x[0])/2,z=w.cy=S.t+S.h*(1-E.y[0])-L/2;if(!M)return b.remove();var O=null,D={};m&amp;&amp;b.each((function(t){D[x.getPtId(t)]={rpx0:t.rpx0,rpx1:t.rpx1,x0:t.x0,x1:t.x1,transform:t.transform},!O&amp;&amp;x.isEntry(t)&amp;&amp;(O=t)}));var R=function(t){return i.partition().size([2*Math.PI,t.height+1])(t)}(M).descendants(),F=M.height+1,B=0,N=A;w.hasMultipleRoots&amp;&amp;x.isHierarchyRoot(M)&amp;&amp;(R=R.slice(1),F-=1,B=1,N+=1),R=R.filter((function(t){return t.y1&lt;=N}));var j=h(T.rotation);j&amp;&amp;R.forEach((function(t){t.x0+=j,t.x1+=j}));var U=Math.min(F,A),V=function(t){return(t-B)/U*I},q=function(t,e){return[t*Math.cos(e),-t*Math.sin(e)]},H=function(t){return o.pathAnnulus(t.rpx0,t.rpx1,t.x0,t.x1,P,z)},G=function(t){return P+_(t)[0]*(t.transform.rCenter||0)+(t.transform.x||0)},Y=function(t){return z+_(t)[1]*(t.transform.rCenter||0)+(t.transform.y||0)};(b=b.data(R,x.getPtId)).enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),m?b.exit().transition().each((function(){var t=n.select(this);t.select(&quot;path.surface&quot;).transition().attrTween(&quot;d&quot;,(function(t){var e=function(t){var e,r=x.getPtId(t),i=D[r],a=D[x.getPtId(M)];if(a){var o=(t.x1&gt;a.x1?2*Math.PI:0)+j;e=t.rpx1&lt;a.rpx1?{rpx0:0,rpx1:0}:{x0:o,x1:o}}else{var s,l=x.getPtId(t.parent);b.each((function(t){if(x.getPtId(t)===l)return s=t}));var c,u=s.children;u.forEach((function(t,e){if(x.getPtId(t)===r)return c=e}));var f=u.length,h=n.interpolate(s.x0,s.x1);e={rpx0:I,rpx1:I,x0:h(c/f),x1:h((c+1)/f)}}return n.interpolate(i,e)}(t);return function(t){return H(e(t))}})),t.select(&quot;g.slicetext&quot;).attr(&quot;opacity&quot;,0)})).remove():b.exit().remove(),b.order();var W=null;if(m&amp;&amp;O){var X=x.getPtId(O);b.each((function(t){null===W&amp;&amp;x.getPtId(t)===X&amp;&amp;(W=t.x1)}))}var Z=b;function J(t){var e=t.parent,r=D[x.getPtId(e)],i={};if(r){var a=e.children,o=a.indexOf(t),s=a.length,l=n.interpolate(r.x0,r.x1);i.x0=l(o/s),i.x1=l(o/s)}else i.x0=i.x1=0;return i}m&amp;&amp;(Z=Z.transition().each(&quot;end&quot;,(function(){var e=n.select(this);x.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})}))),Z.each((function(i){var l=n.select(this),u=o.ensureSingle(l,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));i.rpx0=V(i.y0),i.rpx1=V(i.y1),i.xmid=(i.x0+i.x1)/2,i.pxmid=q(i.rpx1,i.xmid),i.midangle=-(i.xmid-Math.PI/2),i.startangle=-(i.x0-Math.PI/2),i.stopangle=-(i.x1-Math.PI/2),i.halfangle=.5*Math.min(o.angleDelta(i.x0,i.x1)||Math.PI,Math.PI),i.ring=1-i.rpx0/i.rpx1,i.rInscribed=function(t){return 0===t.rpx0&amp;&amp;o.isFullCircle([t.x0,t.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2))}(i),m?u.transition().attrTween(&quot;d&quot;,(function(t){var e=function(t){var e,r=D[x.getPtId(t)],i={x0:t.x0,x1:t.x1,rpx0:t.rpx0,rpx1:t.rpx1};if(r)e=r;else if(O)if(t.parent)if(W){var a=(t.x1&gt;W?2*Math.PI:0)+j;e={x0:a,x1:a}}else e={rpx0:I,rpx1:I},o.extendFlat(e,J(t));else e={rpx0:0,rpx1:0};else e={x0:j,x1:j};return n.interpolate(e,i)}(t);return function(t){return H(e(t))}})):u.attr(&quot;d&quot;,H),l.call(v,M,t,e,{eventDataKeys:y.eventDataKeys,transitionTime:y.CLICK_TRANSITION_TIME,transitionEasing:y.CLICK_TRANSITION_EASING}).call(x.setSliceCursor,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:t._transitioning}),u.call(g,i,T);var h=o.ensureSingle(l,&quot;g&quot;,&quot;slicetext&quot;),b=o.ensureSingle(h,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),_=o.ensureUniformFontSize(t,x.determineTextFont(T,i,f.font));b.text(r.formatSliceLabel(i,M,T,e,f)).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(a.font,_).call(s.convertToTspans,t);var k=a.bBox(b.node());i.transform=d(k,i,w),i.transform.targetX=G(i),i.transform.targetY=Y(i);var A=function(t,e){var r=t.transform;return p(r,e),r.fontSize=_.size,c(T.type,r,f),o.getTextTransform(r)};m?b.transition().attrTween(&quot;transform&quot;,(function(t){var e=function(t){var e,r=D[x.getPtId(t)],i=t.transform;if(r)e=r;else if(e={rpx1:t.rpx1,transform:{textPosAngle:i.textPosAngle,scale:0,rotate:i.rotate,rCenter:i.rCenter,x:i.x,y:i.y}},O)if(t.parent)if(W){var a=t.x1&gt;W?2*Math.PI:0;e.x0=e.x1=a}else o.extendFlat(e,J(t));else e.x0=e.x1=j;else e.x0=e.x1=j;var s=n.interpolate(e.transform.textPosAngle,t.transform.textPosAngle),l=n.interpolate(e.rpx1,t.rpx1),u=n.interpolate(e.x0,t.x0),h=n.interpolate(e.x1,t.x1),p=n.interpolate(e.transform.scale,i.scale),d=n.interpolate(e.transform.rotate,i.rotate),g=0===i.rCenter?3:0===e.transform.rCenter?1/3:1,m=n.interpolate(e.transform.rCenter,i.rCenter);return function(t){var e=l(t),r=u(t),n=h(t),a=function(t){return m(Math.pow(t,g))}(t),o={pxmid:q(e,(r+n)/2),rpx1:e,transform:{textPosAngle:s(t),rCenter:a,x:i.x,y:i.y}};return c(T.type,i,f),{transform:{targetX:G(o),targetY:Y(o),scale:p(t),rotate:d(t),rCenter:a}}}}(t);return function(t){return A(e(t),k)}})):b.attr(&quot;transform&quot;,A(i,k))}))}function _(t){return e=t.rpx1,r=t.transform.textPosAngle,[e*Math.sin(r),-e*Math.cos(r)];var e,r}r.plot=function(t,e,r,i){var a,o,s=t._fullLayout,l=s._sunburstlayer,c=!r,f=!s.uniformtext.mode&amp;&amp;x.hasTransition(r);(u(&quot;sunburst&quot;,s),(a=l.selectAll(&quot;g.trace.sunburst&quot;).data(e,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).classed(&quot;trace&quot;,!0).classed(&quot;sunburst&quot;,!0).attr(&quot;stroke-linejoin&quot;,&quot;round&quot;),a.order(),f)?(i&amp;&amp;(o=i()),n.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){o&amp;&amp;o()})).each(&quot;interrupt&quot;,(function(){o&amp;&amp;o()})).each((function(){l.selectAll(&quot;g.trace&quot;).each((function(e){b(t,e,this,r)}))}))):(a.each((function(e){b(t,e,this,r)})),s.uniformtext.mode&amp;&amp;m(t,s._sunburstlayer.selectAll(&quot;.trace&quot;),&quot;sunburst&quot;));c&amp;&amp;a.exit().remove()},r.formatSliceLabel=function(t,e,r,n,i){var a=r.texttemplate,s=r.textinfo;if(!(a||s&amp;&amp;&quot;none&quot;!==s))return&quot;&quot;;var l=i.separators,c=n[0],u=t.data.data,f=c.hierarchy,h=x.isHierarchyRoot(t),p=x.getParent(f,t),d=x.getValue(t);if(!a){var g,m=s.split(&quot;+&quot;),v=function(t){return-1!==m.indexOf(t)},y=[];if(v(&quot;label&quot;)&amp;&amp;u.label&amp;&amp;y.push(u.label),u.hasOwnProperty(&quot;v&quot;)&amp;&amp;v(&quot;value&quot;)&amp;&amp;y.push(x.formatValue(u.v,l)),!h){v(&quot;current path&quot;)&amp;&amp;y.push(x.getPath(t.data));var b=0;v(&quot;percent parent&quot;)&amp;&amp;b++,v(&quot;percent entry&quot;)&amp;&amp;b++,v(&quot;percent root&quot;)&amp;&amp;b++;var _=b&gt;1;if(b){var w,T=function(t){g=x.formatPercent(w,l),_&amp;&amp;(g+=&quot; of &quot;+t),y.push(g)};v(&quot;percent parent&quot;)&amp;&amp;!h&amp;&amp;(w=d/x.getValue(p),T(&quot;parent&quot;)),v(&quot;percent entry&quot;)&amp;&amp;(w=d/x.getValue(e),T(&quot;entry&quot;)),v(&quot;percent root&quot;)&amp;&amp;(w=d/x.getValue(f),T(&quot;root&quot;))}}return v(&quot;text&quot;)&amp;&amp;(g=o.castOption(r,u.i,&quot;text&quot;),o.isValidTextValue(g)&amp;&amp;y.push(g)),y.join(&quot;&lt;br&gt;&quot;)}var k=o.castOption(r,u.i,&quot;texttemplate&quot;);if(!k)return&quot;&quot;;var M={};u.label&amp;&amp;(M.label=u.label),u.hasOwnProperty(&quot;v&quot;)&amp;&amp;(M.value=u.v,M.valueLabel=x.formatValue(u.v,l)),M.currentPath=x.getPath(t.data),h||(M.percentParent=d/x.getValue(p),M.percentParentLabel=x.formatPercent(M.percentParent,l),M.parent=x.getPtLabel(p)),M.percentEntry=d/x.getValue(e),M.percentEntryLabel=x.formatPercent(M.percentEntry,l),M.entry=x.getPtLabel(e),M.percentRoot=d/x.getValue(f),M.percentRootLabel=x.formatPercent(M.percentRoot,l),M.root=x.getPtLabel(f),u.hasOwnProperty(&quot;color&quot;)&amp;&amp;(M.color=u.color);var A=o.castOption(r,u.i,&quot;text&quot;);return(o.isValidTextValue(A)||&quot;&quot;===A)&amp;&amp;(M.text=A),M.customdata=o.castOption(r,u.i,&quot;customdata&quot;),o.texttemplateString(k,M,i._d3locale,M,r._meta||{})}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,&quot;../pie/helpers&quot;:1166,&quot;../pie/plot&quot;:1170,&quot;./constants&quot;:1302,&quot;./fx&quot;:1304,&quot;./helpers&quot;:1305,&quot;./style&quot;:1310,d3:169,&quot;d3-hierarchy&quot;:161}],1310:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../bar/uniform_text&quot;).resizeText;function s(t,e,r){var n=e.data.data,o=!e.children,s=n.i,l=a.castOption(r,s,&quot;marker.line.color&quot;)||i.defaultLine,c=a.castOption(r,s,&quot;marker.line.width&quot;)||0;t.style(&quot;stroke-width&quot;,c).call(i.fill,n.color).call(i.stroke,l).style(&quot;opacity&quot;,o?r.leaf.opacity:null)}e.exports={style:function(t){var e=t._fullLayout._sunburstlayer.selectAll(&quot;.trace&quot;);o(t,e,&quot;sunburst&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(s,t,r)}))}))},styleOne:s}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/uniform_text&quot;:937,d3:169}],1311:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll;function c(t){return{show:{valType:&quot;boolean&quot;,dflt:!1},start:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;},end:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;},size:{valType:&quot;number&quot;,dflt:null,min:0,editType:&quot;plot&quot;},project:{x:{valType:&quot;boolean&quot;,dflt:!1},y:{valType:&quot;boolean&quot;,dflt:!1},z:{valType:&quot;boolean&quot;,dflt:!1}},color:{valType:&quot;color&quot;,dflt:n.defaultLine},usecolormap:{valType:&quot;boolean&quot;,dflt:!1},width:{valType:&quot;number&quot;,min:1,max:16,dflt:2},highlight:{valType:&quot;boolean&quot;,dflt:!0},highlightcolor:{valType:&quot;color&quot;,dflt:n.defaultLine},highlightwidth:{valType:&quot;number&quot;,min:1,max:16,dflt:2}}}var u=e.exports=l(s({z:{valType:&quot;data_array&quot;},x:{valType:&quot;data_array&quot;},y:{valType:&quot;data_array&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertemplate:a(),connectgaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},surfacecolor:{valType:&quot;data_array&quot;}},i(&quot;&quot;,{colorAttr:&quot;z or surfacecolor&quot;,showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}),{contours:{x:c(),y:c(),z:c()},hidesurface:{valType:&quot;boolean&quot;,dflt:!1},lightposition:{x:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:10},y:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:1e4},z:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:&quot;number&quot;,min:0,max:1,dflt:.8},diffuse:{valType:&quot;number&quot;,min:0,max:1,dflt:.8},specular:{valType:&quot;number&quot;,min:0,max:2,dflt:.05},roughness:{valType:&quot;number&quot;,min:0,max:1,dflt:.5},fresnel:{valType:&quot;number&quot;,min:0,max:5,dflt:.2}},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},opacityscale:{valType:&quot;any&quot;,editType:&quot;calc&quot;},_deprecated:{zauto:s({},i.zauto,{}),zmin:s({},i.zmin,{}),zmax:s({},i.zmax,{})},hoverinfo:s({},o.hoverinfo),showlegend:s({},o.showlegend,{dflt:!1})}),&quot;calc&quot;,&quot;nested&quot;);u.x.editType=u.y.editType=u.z.editType=&quot;calc+clearAxisTypes&quot;,u.transforms=void 0},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906}],1312:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){e.surfacecolor?n(t,e,{vals:e.surfacecolor,containerStr:&quot;&quot;,cLetter:&quot;c&quot;}):n(t,e,{vals:e.z,containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651}],1313:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-surface3d&quot;),i=t(&quot;ndarray&quot;),a=t(&quot;ndarray-linear-interpolate&quot;).d2,o=t(&quot;../heatmap/interp2d&quot;),s=t(&quot;../heatmap/find_empties&quot;),l=t(&quot;../../lib&quot;).isArrayOrTypedArray,c=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,u=t(&quot;../../lib/str2rgbarray&quot;),f=t(&quot;../../components/colorscale&quot;).extractOpts;function h(t,e,r){this.scene=t,this.uid=r,this.surface=e,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var p=h.prototype;p.getXat=function(t,e,r,n){var i=l(this.data.x)?l(this.data.x[0])?this.data.x[e][t]:this.data.x[t]:t;return void 0===r?i:n.d2l(i,0,r)},p.getYat=function(t,e,r,n){var i=l(this.data.y)?l(this.data.y[0])?this.data.y[e][t]:this.data.y[e]:e;return void 0===r?i:n.d2l(i,0,r)},p.getZat=function(t,e,r,n){var i=this.data.z[e][t];return null===i&amp;&amp;this.data.connectgaps&amp;&amp;this.data._interpolatedZ&amp;&amp;(i=this.data._interpolatedZ[e][t]),void 0===r?i:n.d2l(i,0,r)},p.handlePick=function(t){if(t.object===this.surface){var e=(t.data.index[0]-1)/this.dataScaleX-1,r=(t.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(e),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);t.index=[n,i],t.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],t.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a&lt;3;a++){var o=t.dataCoordinate[a];null!=o&amp;&amp;(t.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return Array.isArray(s)&amp;&amp;s[i]&amp;&amp;void 0!==s[i][n]?t.textLabel=s[i][n]:t.textLabel=s||&quot;&quot;,t.data.dataCoordinate=t.dataCoordinate.slice(),this.surface.highlight(t.data),this.scene.glplot.spikes.position=t.dataCoordinate,!0}};var d=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function g(t,e){if(t&lt;e)return 0;for(var r=0;0===Math.floor(t%e);)t/=e,r++;return r}function m(t){for(var e=[],r=0;r&lt;d.length;r++){var n=d[r];e.push(g(t,n))}return e}function v(t){for(var e=m(t),r=t,n=0;n&lt;d.length;n++)if(e[n]&gt;0){r=d[n];break}return r}function y(t,e){if(!(t&lt;1||e&lt;1)){for(var r=m(t),n=m(e),i=1,a=0;a&lt;d.length;a++)i*=Math.pow(d[a],Math.max(r[a],n[a]));return i}}p.calcXnums=function(t){var e,r=[];for(e=1;e&lt;t;e++){var n=this.getXat(e-1,0),i=this.getXat(e,0);r[e-1]=i!==n&amp;&amp;null!=n&amp;&amp;null!=i?Math.abs(i-n):0}var a=0;for(e=1;e&lt;t;e++)a+=r[e-1];for(e=1;e&lt;t;e++)0===r[e-1]?r[e-1]=1:r[e-1]=Math.round(a/r[e-1]);return r},p.calcYnums=function(t){var e,r=[];for(e=1;e&lt;t;e++){var n=this.getYat(0,e-1),i=this.getYat(0,e);r[e-1]=i!==n&amp;&amp;null!=n&amp;&amp;null!=i?Math.abs(i-n):0}var a=0;for(e=1;e&lt;t;e++)a+=r[e-1];for(e=1;e&lt;t;e++)0===r[e-1]?r[e-1]=1:r[e-1]=Math.round(a/r[e-1]);return r};var x=[1,2,4,6,12,24,36,48,60,120,180,240,360,720,840,1260],b=x[9],_=x[13];function w(t,e,r){var n=r[8]+r[2]*e[0]+r[5]*e[1];return t[0]=(r[6]+r[0]*e[0]+r[3]*e[1])/n,t[1]=(r[7]+r[1]*e[0]+r[4]*e[1])/n,t}function T(t,e,r){return function(t,e,r,n){for(var i=[0,0],o=t.shape[0],s=t.shape[1],l=0;l&lt;o;l++)for(var c=0;c&lt;s;c++)r(i,[l,c],n),t.set(l,c,a(e,i[0],i[1]))}(t,e,w,r),t}function k(t,e){for(var r=!1,n=0;n&lt;t.length;n++)if(e===t[n]){r=!0;break}!1===r&amp;&amp;t.push(e)}p.estimateScale=function(t,e){for(var r=1+function(t){if(0!==t.length){for(var e=1,r=0;r&lt;t.length;r++)e=y(e,t[r]);return e}}(0===e?this.calcXnums(t):this.calcYnums(t));r&lt;b;)r*=2;for(;r&gt;_;)r--,r/=v(r),++r&lt;b&amp;&amp;(r=_);var n=Math.round(r/t);return n&gt;1?n:1},p.refineCoords=function(t){for(var e=this.dataScaleX,r=this.dataScaleY,n=t[0].shape[0],a=t[0].shape[1],o=0|Math.floor(t[0].shape[0]*e+1),s=0|Math.floor(t[0].shape[1]*r+1),l=1+n+1,c=1+a+1,u=i(new Float32Array(l*c),[l,c]),f=[1/e,0,0,0,1/r,0,0,0,1],h=0;h&lt;t.length;++h){this.surface.padField(u,t[h]);var p=i(new Float32Array(o*s),[o,s]);T(p,u,f),t[h]=p}},p.setContourLevels=function(){var t,e,r,n=[[],[],[]],i=[!1,!1,!1],a=!1;for(t=0;t&lt;3;++t)if(this.showContour[t]&amp;&amp;(a=!0,this.contourSize[t]&gt;0&amp;&amp;null!==this.contourStart[t]&amp;&amp;null!==this.contourEnd[t]&amp;&amp;this.contourEnd[t]&gt;this.contourStart[t]))for(i[t]=!0,e=this.contourStart[t];e&lt;this.contourEnd[t];e+=this.contourSize[t])r=e*this.scene.dataScale[t],k(n[t],r);if(a){var o=[[],[],[]];for(t=0;t&lt;3;++t)this.showContour[t]&amp;&amp;(o[t]=i[t]?n[t]:this.scene.contourLevels[t]);this.surface.update({levels:o})}},p.update=function(t){var e,r,n,a,l=this.scene,h=l.fullSceneLayout,p=this.surface,d=c(t),g=l.dataScale,m=t.z[0].length,v=t._ylength,y=l.contourLevels;this.data=t;var x=[];for(e=0;e&lt;3;e++)for(x[e]=[],r=0;r&lt;m;r++)x[e][r]=[];for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)x[0][r][n]=this.getXat(r,n,t.xcalendar,h.xaxis),x[1][r][n]=this.getYat(r,n,t.ycalendar,h.yaxis),x[2][r][n]=this.getZat(r,n,t.zcalendar,h.zaxis);if(t.connectgaps)for(t._emptypoints=s(x[2]),o(x[2],t._emptypoints),t._interpolatedZ=[],r=0;r&lt;m;r++)for(t._interpolatedZ[r]=[],n=0;n&lt;v;n++)t._interpolatedZ[r][n]=x[2][r][n];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null==(a=x[e][r][n])?x[e][r][n]=NaN:a=x[e][r][n]*=g[e];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null!=(a=x[e][r][n])&amp;&amp;(this.minValues[e]&gt;a&amp;&amp;(this.minValues[e]=a),this.maxValues[e]&lt;a&amp;&amp;(this.maxValues[e]=a));for(e=0;e&lt;3;e++)this.objectOffset[e]=.5*(this.minValues[e]+this.maxValues[e]);for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null!=(a=x[e][r][n])&amp;&amp;(x[e][r][n]-=this.objectOffset[e]);var b=[i(new Float32Array(m*v),[m,v]),i(new Float32Array(m*v),[m,v]),i(new Float32Array(m*v),[m,v])];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)b[e].set(r,n,x[e][r][n]);x=[];var w={colormap:d,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!t.hidesurface,contourProject:[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],contourWidth:[1,1,1],contourColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],contourTint:[1,1,1],dynamicColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],dynamicWidth:[1,1,1],dynamicTint:[1,1,1],opacityscale:t.opacityscale,opacity:t.opacity},T=f(t);if(w.intensityBounds=[T.min,T.max],t.surfacecolor){var k=i(new Float32Array(m*v),[m,v]);for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)k.set(r,n,t.surfacecolor[n][r]);b.push(k)}else w.intensityBounds[0]*=g[2],w.intensityBounds[1]*=g[2];(_&lt;b[0].shape[0]||_&lt;b[0].shape[1])&amp;&amp;(this.refineData=!1),!0===this.refineData&amp;&amp;(this.dataScaleX=this.estimateScale(b[0].shape[0],0),this.dataScaleY=this.estimateScale(b[0].shape[1],1),1===this.dataScaleX&amp;&amp;1===this.dataScaleY||this.refineCoords(b)),t.surfacecolor&amp;&amp;(w.intensity=b.pop());var M=[!0,!0,!0],A=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(e=0;e&lt;3;++e){var S=t.contours[A[e]];M[e]=S.highlight,w.showContour[e]=S.show||S.highlight,w.showContour[e]&amp;&amp;(w.contourProject[e]=[S.project.x,S.project.y,S.project.z],S.show?(this.showContour[e]=!0,w.levels[e]=y[e],p.highlightColor[e]=w.contourColor[e]=u(S.color),S.usecolormap?p.highlightTint[e]=w.contourTint[e]=0:p.highlightTint[e]=w.contourTint[e]=1,w.contourWidth[e]=S.width,this.contourStart[e]=S.start,this.contourEnd[e]=S.end,this.contourSize[e]=S.size):(this.showContour[e]=!1,this.contourStart[e]=null,this.contourEnd[e]=null,this.contourSize[e]=0),S.highlight&amp;&amp;(w.dynamicColor[e]=u(S.highlightcolor),w.dynamicWidth[e]=S.highlightwidth))}(function(t){var e=t[0].rgb,r=t[t.length-1].rgb;return e[0]===r[0]&amp;&amp;e[1]===r[1]&amp;&amp;e[2]===r[2]&amp;&amp;e[3]===r[3]})(d)&amp;&amp;(w.vertexColor=!0),w.objectOffset=this.objectOffset,w.coords=b,p.update(w),p.visible=t.visible,p.enableDynamic=M,p.enableHighlight=M,p.snapToData=!0,&quot;lighting&quot;in t&amp;&amp;(p.ambientLight=t.lighting.ambient,p.diffuseLight=t.lighting.diffuse,p.specularLight=t.lighting.specular,p.roughness=t.lighting.roughness,p.fresnel=t.lighting.fresnel),&quot;lightposition&quot;in t&amp;&amp;(p.lightPosition=[t.lightposition.x,t.lightposition.y,t.lightposition.z])},p.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new h(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../heatmap/find_empties&quot;:1071,&quot;../heatmap/interp2d&quot;:1074,&quot;gl-surface3d&quot;:351,ndarray:495,&quot;ndarray-linear-interpolate&quot;:489}],1314:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r,n){var i=n(&quot;opacityscale&quot;);&quot;max&quot;===i?e.opacityscale=[[0,.1],[1,1]]:&quot;min&quot;===i?e.opacityscale=[[0,1],[1,.1]]:&quot;extremes&quot;===i?e.opacityscale=function(t,e){for(var r=[],n=0;n&lt;32;n++){var i=n/31,a=e+(1-e)*(1-Math.pow(Math.sin(t*i*Math.PI),2));r.push([i,Math.max(0,Math.min(1,a))])}return r}(1,.1):function(t){var e=0;if(!Array.isArray(t)||t.length&lt;2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r&lt;t.length;r++){var n=t[r];if(2!==n.length||+n[0]&lt;e)return!1;e=+n[0]}return!0}(i)||(e.opacityscale=void 0)}function l(t,e,r){e in t&amp;&amp;!(r in t)&amp;&amp;(t[r]=t[e])}e.exports={supplyDefaults:function(t,e,r,c){var u,f;function h(r,n){return i.coerce(t,e,o,r,n)}var p=h(&quot;x&quot;),d=h(&quot;y&quot;),g=h(&quot;z&quot;);if(!g||!g.length||p&amp;&amp;p.length&lt;1||d&amp;&amp;d.length&lt;1)e.visible=!1;else{e._xlength=Array.isArray(p)&amp;&amp;i.isArrayOrTypedArray(p[0])?g.length:g[0].length,e._ylength=g.length,n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],c),h(&quot;text&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;),[&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;hidesurface&quot;,&quot;connectgaps&quot;,&quot;opacity&quot;].forEach((function(t){h(t)}));var m=h(&quot;surfacecolor&quot;),v=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(u=0;u&lt;3;++u){var y=&quot;contours.&quot;+v[u],x=h(y+&quot;.show&quot;),b=h(y+&quot;.highlight&quot;);if(x||b)for(f=0;f&lt;3;++f)h(y+&quot;.project.&quot;+v[f]);x&amp;&amp;(h(y+&quot;.color&quot;),h(y+&quot;.width&quot;),h(y+&quot;.usecolormap&quot;)),b&amp;&amp;(h(y+&quot;.highlightcolor&quot;),h(y+&quot;.highlightwidth&quot;)),h(y+&quot;.start&quot;),h(y+&quot;.end&quot;),h(y+&quot;.size&quot;)}m||(l(t,&quot;zmin&quot;,&quot;cmin&quot;),l(t,&quot;zmax&quot;,&quot;cmax&quot;),l(t,&quot;zauto&quot;,&quot;cauto&quot;)),a(t,e,c,h,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(t,e,c,h),e._length=null}},opacityscaleDefaults:s}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1311}],1315:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;surface&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;2dMap&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1311,&quot;./calc&quot;:1312,&quot;./convert&quot;:1313,&quot;./defaults&quot;:1314}],1316:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/annotations/attributes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../../plot_api/edit_types&quot;).overrideAll,o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes;t(&quot;../../constants/docs&quot;).FORMAT_LINK;(e.exports=a({domain:s({name:&quot;table&quot;,trace:!0}),columnwidth:{valType:&quot;number&quot;,arrayOk:!0,dflt:null},columnorder:{valType:&quot;data_array&quot;},header:{values:{valType:&quot;data_array&quot;,dflt:[]},format:{valType:&quot;data_array&quot;,dflt:[]},prefix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},suffix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},height:{valType:&quot;number&quot;,dflt:28},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:&quot;number&quot;,arrayOk:!0,dflt:1},color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;grey&quot;}},fill:{color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;white&quot;}},font:i({},o({arrayOk:!0}))},cells:{values:{valType:&quot;data_array&quot;,dflt:[]},format:{valType:&quot;data_array&quot;,dflt:[]},prefix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},suffix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},height:{valType:&quot;number&quot;,dflt:20},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:&quot;number&quot;,arrayOk:!0,dflt:1},color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;grey&quot;}},fill:{color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;white&quot;}},font:i({},o({arrayOk:!0}))}},&quot;calc&quot;,&quot;from-root&quot;)).transforms=void 0},{&quot;../../components/annotations/attributes&quot;:626,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856}],1317:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getModuleCalcData,i=t(&quot;./plot&quot;);r.name=&quot;table&quot;,r.plot=function(t){var e=n(t.calcdata,&quot;table&quot;)[0];e.length&amp;&amp;i(t,e)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;table&quot;),a=e._has&amp;&amp;e._has(&quot;table&quot;);i&amp;&amp;!a&amp;&amp;n._paperdiv.selectAll(&quot;.table&quot;).remove()}},{&quot;../../plots/get_data&quot;:865,&quot;./plot&quot;:1324}],1318:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/gup&quot;).wrap;e.exports=function(){return n({})}},{&quot;../../lib/gup&quot;:775}],1319:[function(t,e,r){&quot;use strict&quot;;e.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:&quot;&lt;br&gt;&quot;,maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:&quot;cubic-out&quot;,scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:&quot;cubic-out&quot;,uplift:5,wrapSpacer:&quot; &quot;,wrapSplitCharacter:&quot; &quot;,cn:{table:&quot;table&quot;,tableControlView:&quot;table-control-view&quot;,scrollBackground:&quot;scroll-background&quot;,yColumn:&quot;y-column&quot;,columnBlock:&quot;column-block&quot;,scrollAreaClip:&quot;scroll-area-clip&quot;,scrollAreaClipRect:&quot;scroll-area-clip-rect&quot;,columnBoundary:&quot;column-boundary&quot;,columnBoundaryClippath:&quot;column-boundary-clippath&quot;,columnBoundaryRect:&quot;column-boundary-rect&quot;,columnCells:&quot;column-cells&quot;,columnCell:&quot;column-cell&quot;,cellRect:&quot;cell-rect&quot;,cellText:&quot;cell-text&quot;,cellTextHolder:&quot;cell-text-holder&quot;,scrollbarKit:&quot;scrollbar-kit&quot;,scrollbar:&quot;scrollbar&quot;,scrollbarSlider:&quot;scrollbar-slider&quot;,scrollbarGlyph:&quot;scrollbar-glyph&quot;,scrollbarCaptureZone:&quot;scrollbar-capture-zone&quot;}}},{}],1320:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;fast-isnumeric&quot;);function o(t){if(Array.isArray(t)){for(var e=0,r=0;r&lt;t.length;r++)e=Math.max(e,o(t[r]));return e}return t}function s(t,e){return t+e}function l(t){var e,r=t.slice(),n=1/0,i=0;for(e=0;e&lt;r.length;e++)Array.isArray(r[e])||(r[e]=[r[e]]),n=Math.min(n,r[e].length),i=Math.max(i,r[e].length);if(n!==i)for(e=0;e&lt;r.length;e++){var a=i-r[e].length;a&amp;&amp;(r[e]=r[e].concat(c(a)))}return r}function c(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=&quot;&quot;;return e}function u(t){return t.calcdata.columns.reduce((function(e,r){return r.xIndex&lt;t.xIndex?e+r.columnWidth:e}),0)}function f(t,e){return Object.keys(t).map((function(r){return i({},t[r],{auxiliaryBlocks:e})}))}function h(t,e){for(var r,n={},i=0,a=0,o={firstRowIndex:null,lastRowIndex:null,rows:[]},s=0,l=0,c=0;c&lt;t.length;c++)r=t[c],o.rows.push({rowIndex:c,rowHeight:r}),((a+=r)&gt;=e||c===t.length-1)&amp;&amp;(n[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=c,o={firstRowIndex:null,lastRowIndex:null,rows:[]},i+=a,s=c+1,a=0);return n}e.exports=function(t,e){var r=l(e.cells.values),p=function(t){return t.slice(e.header.values.length,t.length)},d=l(e.header.values);d.length&amp;&amp;!d[0].length&amp;&amp;(d[0]=[&quot;&quot;],d=l(d));var g=d.concat(p(r).map((function(){return c((d[0]||[&quot;&quot;]).length)}))),m=e.domain,v=Math.floor(t._fullLayout._size.w*(m.x[1]-m.x[0])),y=Math.floor(t._fullLayout._size.h*(m.y[1]-m.y[0])),x=e.header.values.length?g[0].map((function(){return e.header.height})):[n.emptyHeaderHeight],b=r.length?r[0].map((function(){return e.cells.height})):[],_=x.reduce(s,0),w=h(b,y-_+n.uplift),T=f(h(x,_),[]),k=f(w,T),M={},A=e._fullInput.columnorder.concat(p(r.map((function(t,e){return e})))),S=g.map((function(t,r){var n=Array.isArray(e.columnwidth)?e.columnwidth[Math.min(r,e.columnwidth.length-1)]:e.columnwidth;return a(n)?Number(n):1})),E=S.reduce(s,0);S=S.map((function(t){return t/E*v}));var C=Math.max(o(e.header.line.width),o(e.cells.line.width)),L={key:e.uid+t._context.staticPlot,translateX:m.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-m.y[1]),size:t._fullLayout._size,width:v,maxLineWidth:C,height:y,columnOrder:A,groupHeight:y,rowBlocks:k,headerRowBlocks:T,scrollY:0,cells:i({},e.cells,{values:r}),headerCells:i({},e.header,{values:g}),gdColumns:g.map((function(t){return t[0]})),gdColumnsOriginalOrder:g.map((function(t){return t[0]})),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:g.map((function(t,e){var r=M[t];return M[t]=(r||0)+1,{key:t+&quot;__&quot;+M[t],label:t,specIndex:e,xIndex:A[e],xScale:u,x:void 0,calcdata:void 0,columnWidth:S[e]}}))};return L.columns.forEach((function(t){t.calcdata=L,t.x=u(t)})),L}},{&quot;../../lib/extend&quot;:768,&quot;./constants&quot;:1319,&quot;fast-isnumeric&quot;:241}],1321:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat;r.splitToPanels=function(t){var e=[0,0],r=n({},t,{key:&quot;header&quot;,type:&quot;header&quot;,page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!0,values:t.calcdata.headerCells.values[t.specIndex],rowBlocks:t.calcdata.headerRowBlocks,calcdata:n({},t.calcdata,{cells:t.calcdata.headerCells})});return[n({},t,{key:&quot;cells1&quot;,type:&quot;cells&quot;,page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),n({},t,{key:&quot;cells2&quot;,type:&quot;cells&quot;,page:1,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),r]},r.splitToCells=function(t){var e=function(t){var e=t.rowBlocks[t.page],r=e?e.rows[0].rowIndex:0,n=e?r+e.rows.length:0;return[r,n]}(t);return(t.values||[]).slice(e[0],e[1]).map((function(r,n){return{keyWithinBlock:n+(&quot;string&quot;==typeof r&amp;&amp;r.match(/[&lt;$&amp;&gt; ]/)?&quot;_keybuster_&quot;+Math.random():&quot;&quot;),key:e[0]+n,column:t,calcdata:t.calcdata,page:t.page,rowBlocks:t.rowBlocks,value:r}}))}},{&quot;../../lib/extend&quot;:768}],1322:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults;e.exports=function(t,e,r,o){function s(r,a){return n.coerce(t,e,i,r,a)}a(e,o,s),s(&quot;columnwidth&quot;),s(&quot;header.values&quot;),s(&quot;header.format&quot;),s(&quot;header.align&quot;),s(&quot;header.prefix&quot;),s(&quot;header.suffix&quot;),s(&quot;header.height&quot;),s(&quot;header.line.width&quot;),s(&quot;header.line.color&quot;),s(&quot;header.fill.color&quot;),n.coerceFont(s,&quot;header.font&quot;,n.extendFlat({},o.font)),function(t,e){for(var r=t.columnorder||[],n=t.header.values.length,i=r.slice(0,n),a=i.slice().sort((function(t,e){return t-e})),o=i.map((function(t){return a.indexOf(t)})),s=o.length;s&lt;n;s++)o.push(s);e(&quot;columnorder&quot;,o)}(e,s),s(&quot;cells.values&quot;),s(&quot;cells.format&quot;),s(&quot;cells.align&quot;),s(&quot;cells.prefix&quot;),s(&quot;cells.suffix&quot;),s(&quot;cells.height&quot;),s(&quot;cells.line.width&quot;),s(&quot;cells.line.color&quot;),s(&quot;cells.fill.color&quot;),n.coerceFont(s,&quot;cells.font&quot;,n.extendFlat({},o.font)),e._length=null}},{&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1316}],1323:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),moduleType:&quot;trace&quot;,name:&quot;table&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1316,&quot;./base_plot&quot;:1317,&quot;./calc&quot;:1318,&quot;./defaults&quot;:1322,&quot;./plot&quot;:1324}],1324:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;d3&quot;),a=t(&quot;../../lib/gup&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../../lib&quot;).raiseToTop,c=t(&quot;../../lib&quot;).strTranslate,u=t(&quot;../../lib&quot;).cancelTransition,f=t(&quot;./data_preparation_helper&quot;),h=t(&quot;./data_split_helpers&quot;),p=t(&quot;../../components/color&quot;);function d(t){return Math.ceil(t.calcdata.maxLineWidth/2)}function g(t,e){return&quot;clip&quot;+t._fullLayout._uid+&quot;_scrollAreaBottomClip_&quot;+e.key}function m(t,e){return&quot;clip&quot;+t._fullLayout._uid+&quot;_columnBoundaryClippath_&quot;+e.calcdata.key+&quot;_&quot;+e.specIndex}function v(t){return[].concat.apply([],t.map((function(t){return t}))).map((function(t){return t.__data__}))}function y(t,e,r){var o=t.selectAll(&quot;.&quot;+n.cn.scrollbarKit).data(a.repeat,a.keyFun);o.enter().append(&quot;g&quot;).classed(n.cn.scrollbarKit,!0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;),o.each((function(t){var e=t.scrollbarState;e.totalHeight=function(t){var e=t.rowBlocks;return O(e,e.length-1)+(e.length?D(e[e.length-1],1/0):1)}(t),e.scrollableAreaHeight=t.groupHeight-A(t),e.currentlyVisibleHeight=Math.min(e.totalHeight,e.scrollableAreaHeight),e.ratio=e.currentlyVisibleHeight/e.totalHeight,e.barLength=Math.max(e.ratio*e.currentlyVisibleHeight,n.goldenRatio*n.scrollbarWidth),e.barWiggleRoom=e.currentlyVisibleHeight-e.barLength,e.wiggleRoom=Math.max(0,e.totalHeight-e.scrollableAreaHeight),e.topY=0===e.barWiggleRoom?0:t.scrollY/e.wiggleRoom*e.barWiggleRoom,e.bottomY=e.topY+e.barLength,e.dragMultiplier=e.wiggleRoom/e.barWiggleRoom})).attr(&quot;transform&quot;,(function(t){var e=t.width+n.scrollbarWidth/2+n.scrollbarOffset;return c(e,A(t))}));var s=o.selectAll(&quot;.&quot;+n.cn.scrollbar).data(a.repeat,a.keyFun);s.enter().append(&quot;g&quot;).classed(n.cn.scrollbar,!0);var l=s.selectAll(&quot;.&quot;+n.cn.scrollbarSlider).data(a.repeat,a.keyFun);l.enter().append(&quot;g&quot;).classed(n.cn.scrollbarSlider,!0),l.attr(&quot;transform&quot;,(function(t){return c(0,t.scrollbarState.topY||0)}));var u=l.selectAll(&quot;.&quot;+n.cn.scrollbarGlyph).data(a.repeat,a.keyFun);u.enter().append(&quot;line&quot;).classed(n.cn.scrollbarGlyph,!0).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,n.scrollbarWidth).attr(&quot;stroke-linecap&quot;,&quot;round&quot;).attr(&quot;y1&quot;,n.scrollbarWidth/2),u.attr(&quot;y2&quot;,(function(t){return t.scrollbarState.barLength-n.scrollbarWidth/2})).attr(&quot;stroke-opacity&quot;,(function(t){return t.columnDragInProgress||!t.scrollbarState.barWiggleRoom||r?0:.4})),u.transition().delay(0).duration(0),u.transition().delay(n.scrollbarHideDelay).duration(n.scrollbarHideDuration).attr(&quot;stroke-opacity&quot;,0);var f=s.selectAll(&quot;.&quot;+n.cn.scrollbarCaptureZone).data(a.repeat,a.keyFun);f.enter().append(&quot;line&quot;).classed(n.cn.scrollbarCaptureZone,!0).attr(&quot;stroke&quot;,&quot;white&quot;).attr(&quot;stroke-opacity&quot;,.01).attr(&quot;stroke-width&quot;,n.scrollbarCaptureWidth).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;).attr(&quot;y1&quot;,0).on(&quot;mousedown&quot;,(function(r){var n=i.event.y,a=this.getBoundingClientRect(),o=r.scrollbarState,s=n-a.top,l=i.scale.linear().domain([0,o.scrollableAreaHeight]).range([0,o.totalHeight]).clamp(!0);o.topY&lt;=s&amp;&amp;s&lt;=o.bottomY||E(e,t,null,l(s-o.barLength/2))(r)})).call(i.behavior.drag().origin((function(t){return i.event.stopPropagation(),t.scrollbarState.scrollbarScrollInProgress=!0,t})).on(&quot;drag&quot;,E(e,t)).on(&quot;dragend&quot;,(function(){}))),f.attr(&quot;y2&quot;,(function(t){return t.scrollbarState.scrollableAreaHeight})),e._context.staticPlot&amp;&amp;(u.remove(),f.remove())}function x(t,e,r,s){var l=function(t){var e=t.selectAll(&quot;.&quot;+n.cn.columnCell).data(h.splitToCells,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;g&quot;).classed(n.cn.columnCell,!0),e.exit().remove(),e}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.columnCells).data(a.repeat,a.keyFun);return e.enter().append(&quot;g&quot;).classed(n.cn.columnCells,!0),e.exit().remove(),e}(r));!function(t){t.each((function(t,e){var r=t.calcdata.cells.font,n=t.column.specIndex,i={size:w(r.size,n,e),color:w(r.color,n,e),family:w(r.family,n,e)};t.rowNumber=t.key,t.align=w(t.calcdata.cells.align,n,e),t.cellBorderWidth=w(t.calcdata.cells.line.width,n,e),t.font=i}))}(l),function(t){t.attr(&quot;width&quot;,(function(t){return t.column.columnWidth})).attr(&quot;stroke-width&quot;,(function(t){return t.cellBorderWidth})).each((function(t){var e=i.select(this);p.stroke(e,w(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),p.fill(e,w(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))}))}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellRect).data(a.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;rect&quot;).classed(n.cn.cellRect,!0),e}(l));var c=function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellText).data(a.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;text&quot;).classed(n.cn.cellText,!0).style(&quot;cursor&quot;,(function(){return&quot;auto&quot;})).on(&quot;mousedown&quot;,(function(){i.event.stopPropagation()})),e}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellTextHolder).data(a.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;g&quot;).classed(n.cn.cellTextHolder,!0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;),e}(l));!function(t){t.each((function(t){o.font(i.select(this),t.font)}))}(c),b(c,e,s,t),z(l)}function b(t,e,r,a){t.text((function(t){var e=t.column.specIndex,r=t.rowNumber,a=t.value,o=&quot;string&quot;==typeof a,s=o&amp;&amp;a.match(/&lt;br&gt;/i),l=!o||s;t.mayHaveMarkup=o&amp;&amp;a.match(/[&lt;&amp;&gt;]/);var c,u=&quot;string&quot;==typeof(c=a)&amp;&amp;c.match(n.latexCheck);t.latex=u;var f,h,p=u?&quot;&quot;:w(t.calcdata.cells.prefix,e,r)||&quot;&quot;,d=u?&quot;&quot;:w(t.calcdata.cells.suffix,e,r)||&quot;&quot;,g=u?null:w(t.calcdata.cells.format,e,r)||null,m=p+(g?i.format(g)(t.value):t.value)+d;if(t.wrappingNeeded=!t.wrapped&amp;&amp;!l&amp;&amp;!u&amp;&amp;(f=_(m)),t.cellHeightMayIncrease=s||u||t.mayHaveMarkup||(void 0===f?_(m):f),t.needsConvertToTspans=t.mayHaveMarkup||t.wrappingNeeded||t.latex,t.wrappingNeeded){var v=(&quot; &quot;===n.wrapSplitCharacter?m.replace(/&lt;a href=/gi,&quot;&lt;a_href=&quot;):m).split(n.wrapSplitCharacter),y=&quot; &quot;===n.wrapSplitCharacter?v.map((function(t){return t.replace(/&lt;a_href=/gi,&quot;&lt;a href=&quot;)})):v;t.fragments=y.map((function(t){return{text:t,width:null}})),t.fragments.push({fragment:n.wrapSpacer,width:null}),h=y.join(n.lineBreaker)+n.lineBreaker+n.wrapSpacer}else delete t.fragments,h=m;return h})).attr(&quot;dy&quot;,(function(t){return t.needsConvertToTspans?0:&quot;0.75em&quot;})).each((function(t){var o=i.select(this),l=t.wrappingNeeded?L:I;t.needsConvertToTspans?s.convertToTspans(o,a,l(r,this,e,a,t)):i.select(this.parentNode).attr(&quot;transform&quot;,(function(t){return c(P(t),n.cellPad)})).attr(&quot;text-anchor&quot;,(function(t){return{left:&quot;start&quot;,center:&quot;middle&quot;,right:&quot;end&quot;}[t.align]}))}))}function _(t){return-1!==t.indexOf(n.wrapSplitCharacter)}function w(t,e,r){if(Array.isArray(t)){var n=t[Math.min(e,t.length-1)];return Array.isArray(n)?n[Math.min(r,n.length-1)]:n}return t}function T(t,e,r){t.transition().ease(n.releaseTransitionEase).duration(n.releaseTransitionDuration).attr(&quot;transform&quot;,c(e.x,r))}function k(t){return&quot;cells&quot;===t.type}function M(t){return&quot;header&quot;===t.type}function A(t){return(t.rowBlocks.length?t.rowBlocks[0].auxiliaryBlocks:[]).reduce((function(t,e){return t+D(e,1/0)}),0)}function S(t,e,r){var n=v(e)[0];if(void 0!==n){var i=n.rowBlocks,a=n.calcdata,o=O(i,i.length),s=n.calcdata.groupHeight-A(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),u=function(t,e,r){for(var n=[],i=0,a=0;a&lt;t.length;a++){for(var o=t[a],s=o.rows,l=0,c=0;c&lt;s.length;c++)l+=s[c].rowHeight;o.allRowsHeight=l;e&lt;i+l&amp;&amp;e+r&gt;i&amp;&amp;n.push(a),i+=l}return n}(i,l,s);1===u.length&amp;&amp;(u[0]===i.length-1?u.unshift(u[0]-1):u.push(u[0]+1)),u[0]%2&amp;&amp;u.reverse(),e.each((function(t,e){t.page=u[e],t.scrollY=l})),e.attr(&quot;transform&quot;,(function(t){var e=O(t.rowBlocks,t.page)-t.scrollY;return c(0,e)})),t&amp;&amp;(C(t,r,e,u,n.prevPages,n,0),C(t,r,e,u,n.prevPages,n,1),y(r,t))}}function E(t,e,r,a){return function(o){var s=o.calcdata?o.calcdata:o,l=e.filter((function(t){return s.key===t.key})),c=r||s.scrollbarState.dragMultiplier,u=s.scrollY;s.scrollY=void 0===a?s.scrollY+c*i.event.dy:a;var f=l.selectAll(&quot;.&quot;+n.cn.yColumn).selectAll(&quot;.&quot;+n.cn.columnBlock).filter(k);return S(t,f,l),s.scrollY===u}}function C(t,e,r,n,i,a,o){n[o]!==i[o]&amp;&amp;(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout((function(){var a=r.filter((function(t,e){return e===o&amp;&amp;n[e]!==i[e]}));x(t,e,a,r),i[o]=n[o]})))}function L(t,e,r,a){return function(){var o=i.select(e.parentNode);o.each((function(t){var e=t.fragments;o.selectAll(&quot;tspan.line&quot;).each((function(t,r){e[r].width=this.getComputedTextLength()}));var r,i,a=e[e.length-1].width,s=e.slice(0,-1),l=[],c=0,u=t.column.columnWidth-2*n.cellPad;for(t.value=&quot;&quot;;s.length;)c+(i=(r=s.shift()).width+a)&gt;u&amp;&amp;(t.value+=l.join(n.wrapSpacer)+n.lineBreaker,l=[],c=0),l.push(r.text),c+=i;c&amp;&amp;(t.value+=l.join(n.wrapSpacer)),t.wrapped=!0})),o.selectAll(&quot;tspan.line&quot;).remove(),b(o.select(&quot;.&quot;+n.cn.cellText),r,t,a),i.select(e.parentNode.parentNode).call(z)}}function I(t,e,r,a,o){return function(){if(!o.settledY){var s=i.select(e.parentNode),l=F(o),u=o.key-l.firstRowIndex,f=l.rows[u].rowHeight,h=o.cellHeightMayIncrease?e.parentNode.getBoundingClientRect().height+2*n.cellPad:f,p=Math.max(h,f);p-l.rows[u].rowHeight&amp;&amp;(l.rows[u].rowHeight=p,t.selectAll(&quot;.&quot;+n.cn.columnCell).call(z),S(null,t.filter(k),0),y(r,a,!0)),s.attr(&quot;transform&quot;,(function(){var t=this.parentNode.getBoundingClientRect(),e=i.select(this.parentNode).select(&quot;.&quot;+n.cn.cellRect).node().getBoundingClientRect(),r=this.transform.baseVal.consolidate(),a=e.top-t.top+(r?r.matrix.f:n.cellPad);return c(P(o,i.select(this.parentNode).select(&quot;.&quot;+n.cn.cellTextHolder).node().getBoundingClientRect().width),a)})),o.settledY=!0}}}function P(t,e){switch(t.align){case&quot;left&quot;:return n.cellPad;case&quot;right&quot;:return t.column.columnWidth-(e||0)-n.cellPad;case&quot;center&quot;:return(t.column.columnWidth-(e||0))/2;default:return n.cellPad}}function z(t){t.attr(&quot;transform&quot;,(function(t){var e=t.rowBlocks[0].auxiliaryBlocks.reduce((function(t,e){return t+D(e,1/0)}),0),r=D(F(t),t.key);return c(0,r+e)})).selectAll(&quot;.&quot;+n.cn.cellRect).attr(&quot;height&quot;,(function(t){return(e=F(t),r=t.key,e.rows[r-e.firstRowIndex]).rowHeight;var e,r}))}function O(t,e){for(var r=0,n=e-1;n&gt;=0;n--)r+=R(t[n]);return r}function D(t,e){for(var r=0,n=0;n&lt;t.rows.length&amp;&amp;t.rows[n].rowIndex&lt;e;n++)r+=t.rows[n].rowHeight;return r}function R(t){var e=t.allRowsHeight;if(void 0!==e)return e;for(var r=0,n=0;n&lt;t.rows.length;n++)r+=t.rows[n].rowHeight;return t.allRowsHeight=r,r}function F(t){return t.rowBlocks[t.page]}e.exports=function(t,e){var r=!t._context.staticPlot,s=t._fullLayout._paper.selectAll(&quot;.&quot;+n.cn.table).data(e.map((function(e){var r=a.unwrap(e).trace;return f(t,r)})),a.keyFun);s.exit().remove(),s.enter().append(&quot;g&quot;).classed(n.cn.table,!0).attr(&quot;overflow&quot;,&quot;visible&quot;).style(&quot;box-sizing&quot;,&quot;content-box&quot;).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;left&quot;,0).style(&quot;overflow&quot;,&quot;visible&quot;).style(&quot;shape-rendering&quot;,&quot;crispEdges&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;),s.attr(&quot;width&quot;,(function(t){return t.width+t.size.l+t.size.r})).attr(&quot;height&quot;,(function(t){return t.height+t.size.t+t.size.b})).attr(&quot;transform&quot;,(function(t){return c(t.translateX,t.translateY)}));var p=s.selectAll(&quot;.&quot;+n.cn.tableControlView).data(a.repeat,a.keyFun),b=p.enter().append(&quot;g&quot;).classed(n.cn.tableControlView,!0).style(&quot;box-sizing&quot;,&quot;content-box&quot;);if(r){var _=&quot;onwheel&quot;in document?&quot;wheel&quot;:&quot;mousewheel&quot;;b.on(&quot;mousemove&quot;,(function(e){p.filter((function(t){return e===t})).call(y,t)})).on(_,(function(e){if(!e.scrollbarState.wheeling){e.scrollbarState.wheeling=!0;var r=e.scrollY+i.event.deltaY;E(t,p,null,r)(e)||(i.event.stopPropagation(),i.event.preventDefault()),e.scrollbarState.wheeling=!1}})).call(y,t,!0)}p.attr(&quot;transform&quot;,(function(t){return c(t.size.l,t.size.t)}));var w=p.selectAll(&quot;.&quot;+n.cn.scrollBackground).data(a.repeat,a.keyFun);w.enter().append(&quot;rect&quot;).classed(n.cn.scrollBackground,!0).attr(&quot;fill&quot;,&quot;none&quot;),w.attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})),p.each((function(e){o.setClipUrl(i.select(this),g(t,e),t)}));var A=p.selectAll(&quot;.&quot;+n.cn.yColumn).data((function(t){return t.columns}),a.keyFun);A.enter().append(&quot;g&quot;).classed(n.cn.yColumn,!0),A.exit().remove(),A.attr(&quot;transform&quot;,(function(t){return c(t.x,0)})),r&amp;&amp;A.call(i.behavior.drag().origin((function(e){return T(i.select(this),e,-n.uplift),l(this),e.calcdata.columnDragInProgress=!0,y(p.filter((function(t){return e.calcdata.key===t.key})),t),e})).on(&quot;drag&quot;,(function(t){var e=i.select(this),r=function(e){return(t===e?i.event.x:e.x)+e.columnWidth/2};t.x=Math.max(-n.overdrag,Math.min(t.calcdata.width+n.overdrag-t.columnWidth,i.event.x)),v(A).filter((function(e){return e.calcdata.key===t.calcdata.key})).sort((function(t,e){return r(t)-r(e)})).forEach((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e)})),A.filter((function(e){return t!==e})).transition().ease(n.transitionEase).duration(n.transitionDuration).attr(&quot;transform&quot;,(function(t){return c(t.x,0)})),e.call(u).attr(&quot;transform&quot;,c(t.x,-n.uplift))})).on(&quot;dragend&quot;,(function(e){var r=i.select(this),n=e.calcdata;e.x=e.xScale(e),e.calcdata.columnDragInProgress=!1,T(r,e,0),function(t,e,r){var n=e.gdColumnsOriginalOrder;e.gdColumns.sort((function(t,e){return r[n.indexOf(t)]-r[n.indexOf(e)]})),e.columnorder=r,t.emit(&quot;plotly_restyle&quot;)}(t,n,n.columns.map((function(t){return t.xIndex})))}))),A.each((function(e){o.setClipUrl(i.select(this),m(t,e),t)}));var C=A.selectAll(&quot;.&quot;+n.cn.columnBlock).data(h.splitToPanels,a.keyFun);C.enter().append(&quot;g&quot;).classed(n.cn.columnBlock,!0).attr(&quot;id&quot;,(function(t){return t.key})),C.style(&quot;cursor&quot;,(function(t){return t.dragHandle?&quot;ew-resize&quot;:t.calcdata.scrollbarState.barWiggleRoom?&quot;ns-resize&quot;:&quot;default&quot;}));var L=C.filter(M),I=C.filter(k);r&amp;&amp;I.call(i.behavior.drag().origin((function(t){return i.event.stopPropagation(),t})).on(&quot;drag&quot;,E(t,p,-1)).on(&quot;dragend&quot;,(function(){}))),x(t,p,L,C),x(t,p,I,C);var P=p.selectAll(&quot;.&quot;+n.cn.scrollAreaClip).data(a.repeat,a.keyFun);P.enter().append(&quot;clipPath&quot;).classed(n.cn.scrollAreaClip,!0).attr(&quot;id&quot;,(function(e){return g(t,e)}));var z=P.selectAll(&quot;.&quot;+n.cn.scrollAreaClipRect).data(a.repeat,a.keyFun);z.enter().append(&quot;rect&quot;).classed(n.cn.scrollAreaClipRect,!0).attr(&quot;x&quot;,-n.overdrag).attr(&quot;y&quot;,-n.uplift).attr(&quot;fill&quot;,&quot;none&quot;),z.attr(&quot;width&quot;,(function(t){return t.width+2*n.overdrag})).attr(&quot;height&quot;,(function(t){return t.height+n.uplift})),A.selectAll(&quot;.&quot;+n.cn.columnBoundary).data(a.repeat,a.keyFun).enter().append(&quot;g&quot;).classed(n.cn.columnBoundary,!0);var O=A.selectAll(&quot;.&quot;+n.cn.columnBoundaryClippath).data(a.repeat,a.keyFun);O.enter().append(&quot;clipPath&quot;).classed(n.cn.columnBoundaryClippath,!0),O.attr(&quot;id&quot;,(function(e){return m(t,e)}));var D=O.selectAll(&quot;.&quot;+n.cn.columnBoundaryRect).data(a.repeat,a.keyFun);D.enter().append(&quot;rect&quot;).classed(n.cn.columnBoundaryRect,!0).attr(&quot;fill&quot;,&quot;none&quot;),D.attr(&quot;width&quot;,(function(t){return t.columnWidth+2*d(t)})).attr(&quot;height&quot;,(function(t){return t.calcdata.height+2*d(t)+n.uplift})).attr(&quot;x&quot;,(function(t){return-d(t)})).attr(&quot;y&quot;,(function(t){return-d(t)})),S(null,I,p)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;../../lib/svg_text_utils&quot;:803,&quot;./constants&quot;:1319,&quot;./data_preparation_helper&quot;:1320,&quot;./data_split_helpers&quot;:1321,d3:169}],1325:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../pie/attributes&quot;),l=t(&quot;../sunburst/attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:l.labels,parents:l.parents,values:l.values,branchvalues:l.branchvalues,count:l.count,level:l.level,maxdepth:l.maxdepth,tiling:{packing:{valType:&quot;enumerated&quot;,values:[&quot;squarify&quot;,&quot;binary&quot;,&quot;dice&quot;,&quot;slice&quot;,&quot;slice-dice&quot;,&quot;dice-slice&quot;],dflt:&quot;squarify&quot;,editType:&quot;plot&quot;},squarifyratio:{valType:&quot;number&quot;,min:1,dflt:1,editType:&quot;plot&quot;},flip:{valType:&quot;flaglist&quot;,flags:[&quot;x&quot;,&quot;y&quot;],dflt:&quot;&quot;,editType:&quot;plot&quot;},pad:{valType:&quot;number&quot;,min:0,dflt:3,editType:&quot;plot&quot;},editType:&quot;calc&quot;},marker:u({pad:{t:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},l:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},r:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},b:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},colors:l.marker.colors,depthfade:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],editType:&quot;style&quot;},line:l.marker.line,editType:&quot;calc&quot;},a(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),pathbar:{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;plot&quot;},edgeshape:{valType:&quot;enumerated&quot;,values:[&quot;&gt;&quot;,&quot;&lt;&quot;,&quot;|&quot;,&quot;/&quot;,&quot;\\&quot;],dflt:&quot;&gt;&quot;,editType:&quot;plot&quot;},thickness:{valType:&quot;number&quot;,min:12,editType:&quot;plot&quot;},textfont:u({},s.textfont,{}),editType:&quot;calc&quot;},text:s.text,textinfo:l.textinfo,texttemplate:i({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:s.hovertext,hoverinfo:l.hoverinfo,hovertemplate:n({},{keys:c.eventDataKeys}),textfont:s.textfont,insidetextfont:s.insidetextfont,outsidetextfont:u({},s.outsidetextfont,{}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle left&quot;,&quot;middle center&quot;,&quot;middle right&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],dflt:&quot;top left&quot;,editType:&quot;plot&quot;},sort:s.sort,root:l.root,domain:o({name:&quot;treemap&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/domain&quot;:855,&quot;../../plots/template_attributes&quot;:906,&quot;../pie/attributes&quot;:1161,&quot;../sunburst/attributes&quot;:1299,&quot;./constants&quot;:1328}],1326:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;treemap&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1327:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../sunburst/calc&quot;);r.calc=function(t,e){return n.calc(t,e)},r.crossTraceCalc=function(t){return n._runCrossTraceCalc(&quot;treemap&quot;,t)}},{&quot;../sunburst/calc&quot;:1301}],1328:[function(t,e,r){&quot;use strict&quot;;e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:&quot;poly&quot;,eventDataKeys:[&quot;currentPath&quot;,&quot;root&quot;,&quot;entry&quot;,&quot;percentRoot&quot;,&quot;percentEntry&quot;,&quot;percentParent&quot;],gapWithPathbar:1}},{}],1329:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText,l=t(&quot;../bar/constants&quot;).TEXTPAD,c=t(&quot;../../components/colorscale&quot;),u=c.hasColorscale,f=c.handleDefaults;e.exports=function(t,e,r,c){function h(r,a){return n.coerce(t,e,i,r,a)}var p=h(&quot;labels&quot;),d=h(&quot;parents&quot;);if(p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length){var g=h(&quot;values&quot;);g&amp;&amp;g.length?h(&quot;branchvalues&quot;):h(&quot;count&quot;),h(&quot;level&quot;),h(&quot;maxdepth&quot;),&quot;squarify&quot;===h(&quot;tiling.packing&quot;)&amp;&amp;h(&quot;tiling.squarifyratio&quot;),h(&quot;tiling.flip&quot;),h(&quot;tiling.pad&quot;);var m=h(&quot;text&quot;);h(&quot;texttemplate&quot;),e.texttemplate||h(&quot;textinfo&quot;,Array.isArray(m)?&quot;text+label&quot;:&quot;label&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;);var v=h(&quot;pathbar.visible&quot;);s(t,e,c,h,&quot;auto&quot;,{hasPathbar:v,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),h(&quot;textposition&quot;);var y=-1!==e.textposition.indexOf(&quot;bottom&quot;);h(&quot;marker.line.width&quot;)&amp;&amp;h(&quot;marker.line.color&quot;,c.paper_bgcolor);var x=h(&quot;marker.colors&quot;),b=e._hasColorscale=u(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis;b?f(t,e,c,h,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}):h(&quot;marker.depthfade&quot;,!(x||[]).length);var _=2*e.textfont.size;h(&quot;marker.pad.t&quot;,y?_/4:_),h(&quot;marker.pad.l&quot;,_/4),h(&quot;marker.pad.r&quot;,_/4),h(&quot;marker.pad.b&quot;,y?_:_/4),b&amp;&amp;f(t,e,c,h,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),e._hovered={marker:{line:{width:2,color:a.contrast(c.paper_bgcolor)}}},v&amp;&amp;(h(&quot;pathbar.thickness&quot;,e.pathbar.textfont.size+2*l),h(&quot;pathbar.side&quot;),h(&quot;pathbar.edgeshape&quot;)),h(&quot;sort&quot;),h(&quot;root.color&quot;),o(e,c,h),e._length=null}else e.visible=!1}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/constants&quot;:923,&quot;../bar/defaults&quot;:925,&quot;./attributes&quot;:1325}],1330:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;./constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;);e.exports=function(t,e,r,h,p){var d=p.barDifY,g=p.width,m=p.height,v=p.viewX,y=p.viewY,x=p.pathSlice,b=p.toMoveInsideSlice,_=p.strTransform,w=p.hasTransition,T=p.handleSlicesExit,k=p.makeUpdateSliceInterpolator,M=p.makeUpdateTextInterpolator,A={},S=t._fullLayout,E=e[0],C=E.trace,L=E.hierarchy,I=g/C._entryDepth,P=u.listPath(r.data,&quot;id&quot;),z=s(L.copy(),[g,m],{packing:&quot;dice&quot;,pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();(z=z.filter((function(t){var e=P.indexOf(t.data.id);return-1!==e&amp;&amp;(t.x0=I*e,t.x1=I*(e+1),t.y0=d,t.y1=d+m,t.onPathbar=!0,!0)}))).reverse(),(h=h.data(z,u.getPtId)).enter().append(&quot;g&quot;).classed(&quot;pathbar&quot;,!0),T(h,!0,A,[g,m],x),h.order();var O=h;w&amp;&amp;(O=O.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})}))),O.each((function(s){s._hoverX=v(s.x1-Math.min(g,m)/2),s._hoverY=y(s.y1-m/2);var h=n.select(this),p=i.ensureSingle(h,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?p.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!0,A,[g,m]);return function(t){return x(e(t))}})):p.attr(&quot;d&quot;,x),h.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),p.call(l,s,C,{hovered:!1}),s._text=(u.getPtLabel(s)||&quot;&quot;).split(&quot;&lt;br&gt;&quot;).join(&quot; &quot;)||&quot;&quot;;var d=i.ensureSingle(h,&quot;g&quot;,&quot;slicetext&quot;),T=i.ensureSingle(d,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),E=i.ensureUniformFontSize(t,u.determineTextFont(C,s,S.font,{onPathbar:!0}));T.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,&quot;start&quot;).call(a.font,E).call(o.convertToTspans,t),s.textBB=a.bBox(T.node()),s.transform=b(s,{fontSize:E.size,onPathbar:!0}),s.transform.fontSize=E.size,w?T.transition().attrTween(&quot;transform&quot;,(function(t){var e=M(t,!0,A,[g,m]);return function(t){return _(e(t))}})):T.attr(&quot;transform&quot;,_(s))}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../sunburst/fx&quot;:1304,&quot;../sunburst/helpers&quot;:1305,&quot;./constants&quot;:1328,&quot;./partition&quot;:1335,&quot;./style&quot;:1337,d3:169}],1331:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;./constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;),h=t(&quot;../sunburst/plot&quot;).formatSliceLabel;e.exports=function(t,e,r,p,d){var g=d.width,m=d.height,v=d.viewX,y=d.viewY,x=d.pathSlice,b=d.toMoveInsideSlice,_=d.strTransform,w=d.hasTransition,T=d.handleSlicesExit,k=d.makeUpdateSliceInterpolator,M=d.makeUpdateTextInterpolator,A=d.prevEntry,S=t._fullLayout,E=e[0].trace,C=-1!==E.textposition.indexOf(&quot;left&quot;),L=-1!==E.textposition.indexOf(&quot;right&quot;),I=-1!==E.textposition.indexOf(&quot;bottom&quot;),P=!I&amp;&amp;!E.marker.pad.t||I&amp;&amp;!E.marker.pad.b,z=s(r,[g,m],{packing:E.tiling.packing,squarifyratio:E.tiling.squarifyratio,flipX:E.tiling.flip.indexOf(&quot;x&quot;)&gt;-1,flipY:E.tiling.flip.indexOf(&quot;y&quot;)&gt;-1,pad:{inner:E.tiling.pad,top:E.marker.pad.t,left:E.marker.pad.l,right:E.marker.pad.r,bottom:E.marker.pad.b}}).descendants(),O=1/0,D=-1/0;z.forEach((function(t){var e=t.depth;e&gt;=E._maxDepth?(t.x0=t.x1=(t.x0+t.x1)/2,t.y0=t.y1=(t.y0+t.y1)/2):(O=Math.min(O,e),D=Math.max(D,e))})),p=p.data(z,u.getPtId),E._maxVisibleLayers=isFinite(D)?D-O+1:0,p.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),T(p,!1,{},[g,m],x),p.order();var R=null;if(w&amp;&amp;A){var F=u.getPtId(A);p.each((function(t){null===R&amp;&amp;u.getPtId(t)===F&amp;&amp;(R={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})}))}var B=function(){return R||{x0:0,x1:g,y0:0,y1:m}},N=p;return w&amp;&amp;(N=N.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),N.each((function(s){var p=u.isHeader(s,E);s._hoverX=v(s.x1-E.marker.pad.r),s._hoverY=y(I?s.y1-E.marker.pad.b/2:s.y0+E.marker.pad.t/2);var d=n.select(this),T=i.ensureSingle(d,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?T.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!1,B(),[g,m]);return function(t){return x(e(t))}})):T.attr(&quot;d&quot;,x),d.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{isTransitioning:t._transitioning}),T.call(l,s,E,{hovered:!1}),s.x0===s.x1||s.y0===s.y1?s._text=&quot;&quot;:s._text=p?P?&quot;&quot;:u.getPtLabel(s)||&quot;&quot;:h(s,r,E,e,S)||&quot;&quot;;var A=i.ensureSingle(d,&quot;g&quot;,&quot;slicetext&quot;),z=i.ensureSingle(A,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),O=i.ensureUniformFontSize(t,u.determineTextFont(E,s,S.font));z.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,L?&quot;end&quot;:C||p?&quot;start&quot;:&quot;middle&quot;).call(a.font,O).call(o.convertToTspans,t),s.textBB=a.bBox(z.node()),s.transform=b(s,{fontSize:O.size,isHeader:p}),s.transform.fontSize=O.size,w?z.transition().attrTween(&quot;transform&quot;,(function(t){var e=M(t,!1,B(),[g,m]);return function(t){return _(e(t))}})):z.attr(&quot;transform&quot;,_(s))})),R}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../sunburst/fx&quot;:1304,&quot;../sunburst/helpers&quot;:1305,&quot;../sunburst/plot&quot;:1309,&quot;./constants&quot;:1328,&quot;./partition&quot;:1335,&quot;./style&quot;:1337,d3:169}],1332:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;treemap&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1325,&quot;./base_plot&quot;:1326,&quot;./calc&quot;:1327,&quot;./defaults&quot;:1329,&quot;./layout_attributes&quot;:1333,&quot;./layout_defaults&quot;:1334,&quot;./plot&quot;:1336,&quot;./style&quot;:1337}],1333:[function(t,e,r){&quot;use strict&quot;;e.exports={treemapcolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendtreemapcolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1334:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;treemapcolorway&quot;,e.colorway),r(&quot;extendtreemapcolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1333}],1335:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;);e.exports=function(t,e,r){var i,a=r.flipX,o=r.flipY,s=&quot;dice-slice&quot;===r.packing,l=r.pad[o?&quot;bottom&quot;:&quot;top&quot;],c=r.pad[a?&quot;right&quot;:&quot;left&quot;],u=r.pad[a?&quot;left&quot;:&quot;right&quot;],f=r.pad[o?&quot;top&quot;:&quot;bottom&quot;];s&amp;&amp;(i=c,c=l,l=i,i=u,u=f,f=i);var h=n.treemap().tile(function(t,e){switch(t){case&quot;squarify&quot;:return n.treemapSquarify.ratio(e);case&quot;binary&quot;:return n.treemapBinary;case&quot;dice&quot;:return n.treemapDice;case&quot;slice&quot;:return n.treemapSlice;default:return n.treemapSliceDice}}(r.packing,r.squarifyratio)).paddingInner(r.pad.inner).paddingLeft(c).paddingRight(u).paddingTop(l).paddingBottom(f).size(s?[e[1],e[0]]:e)(t);return(s||a||o)&amp;&amp;function t(e,r,n){var i;n.swapXY&amp;&amp;(i=e.x0,e.x0=e.y0,e.y0=i,i=e.x1,e.x1=e.y1,e.y1=i);n.flipX&amp;&amp;(i=e.x0,e.x0=r[0]-e.x1,e.x1=r[0]-i);n.flipY&amp;&amp;(i=e.y0,e.y0=r[1]-e.y1,e.y1=r[1]-i);var a=e.children;if(a)for(var o=0;o&lt;a.length;o++)t(a[o],r,n)}(h,e,{swapXY:s,flipX:a,flipY:o}),h}},{&quot;d3-hierarchy&quot;:161}],1336:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../sunburst/helpers&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../bar/constants&quot;).TEXTPAD,s=t(&quot;../bar/plot&quot;).toMoveInsideBar,l=t(&quot;../bar/uniform_text&quot;),c=l.recordMinTextSize,u=l.clearMinTextSize,f=t(&quot;../bar/style&quot;).resizeText,h=t(&quot;./constants&quot;),p=t(&quot;./draw_descendants&quot;),d=t(&quot;./draw_ancestors&quot;);function g(t){return i.isHierarchyRoot(t)?&quot;&quot;:i.getPtId(t)}function m(t,e,r,l){var u=t._fullLayout,f=e[0],m=f.trace,v=f.hierarchy,y=i.findEntryWithLevel(v,m.level),x=n.select(r),b=x.selectAll(&quot;g.pathbar&quot;),_=x.selectAll(&quot;g.slice&quot;);if(!y)return b.remove(),void _.remove();var w=i.isHierarchyRoot(y),T=!u.uniformtext.mode&amp;&amp;i.hasTransition(l),k=i.getMaxDepth(m),M=u._size,A=m.domain,S=M.w*(A.x[1]-A.x[0]),E=M.h*(A.y[1]-A.y[0]),C=S,L=m.pathbar.thickness,I=m.marker.line.width+h.gapWithPathbar,P=m.pathbar.visible?m.pathbar.side.indexOf(&quot;bottom&quot;)&gt;-1?E+I:-(L+I):0,z={x0:C,x1:C,y0:P,y1:P+L},O=function(t,e,r){var n=m.tiling.pad,i=function(t){return t-n&lt;=e.x0},a=function(t){return t+n&gt;=e.x1},o=function(t){return t-n&lt;=e.y0},s=function(t){return t+n&gt;=e.y1};return{x0:i(t.x0-n)?0:a(t.x0-n)?r[0]:t.x0,x1:i(t.x1+n)?0:a(t.x1+n)?r[0]:t.x1,y0:o(t.y0-n)?0:s(t.y0-n)?r[1]:t.y0,y1:o(t.y1+n)?0:s(t.y1+n)?r[1]:t.y1}},D=null,R={},F={},B=null,N=function(t,e){return e?R[g(t)]:F[g(t)]},j=function(t,e,r,n){if(e)return R[g(v)]||z;var i=F[m.level]||r;return function(t){return t.data.depth-y.data.depth&lt;k}(t)?O(t,i,n):{}};f.hasMultipleRoots&amp;&amp;w&amp;&amp;k++,m._maxDepth=k,m._backgroundColor=u.paper_bgcolor,m._entryDepth=y.data.depth,m._atRootLevel=w;var U=-S/2+M.l+M.w*(A.x[1]+A.x[0])/2,V=-E/2+M.t+M.h*(1-(A.y[1]+A.y[0])/2),q=function(t){return U+t},H=function(t){return V+t},G=H(0),Y=q(0),W=function(t){return Y+t},X=function(t){return G+t};function Z(t,e){return t+&quot;,&quot;+e}var J=W(0),K=function(t){t.x=Math.max(J,t.x)},Q=m.pathbar.edgeshape,$=function(t,e){var r=t.x0,n=t.x1,i=t.y0,a=t.y1,l=t.textBB,f=function(t){return-1!==m.textposition.indexOf(t)},h=f(&quot;bottom&quot;),p=f(&quot;top&quot;)||e.isHeader&amp;&amp;!h?&quot;start&quot;:h?&quot;end&quot;:&quot;middle&quot;,d=f(&quot;right&quot;),g=f(&quot;left&quot;)||e.onPathbar?-1:d?1:0,v=m.marker.pad;if(e.isHeader){if((r+=v.l-o)&gt;=(n-=v.r-o)){var y=(r+n)/2;r=y,n=y}var x;h?i&lt;(x=a-v.b)&amp;&amp;x&lt;a&amp;&amp;(i=x):i&lt;(x=i+v.t)&amp;&amp;x&lt;a&amp;&amp;(a=x)}var b=s(r,n,i,a,l,{isHorizontal:!1,constrained:!0,angle:0,anchor:p,leftToRight:g});return b.fontSize=e.fontSize,b.targetX=q(b.targetX),b.targetY=H(b.targetY),isNaN(b.targetX)||isNaN(b.targetY)?{}:(r!==n&amp;&amp;i!==a&amp;&amp;c(m.type,b,u),{scale:b.scale,rotate:b.rotate,textX:b.textX,textY:b.textY,anchorX:b.anchorX,anchorY:b.anchorY,targetX:b.targetX,targetY:b.targetY})},tt=function(t,e){for(var r,n=0,i=t;!r&amp;&amp;n&lt;k;)n++,(i=i.parent)?r=N(i,e):n=k;return r||{}},et=function(t,e,r,i){var o,s=N(t,e);if(s)o=s;else if(e)o=z;else if(D)if(t.parent){var l=B||r;l&amp;&amp;!e?o=O(t,l,i):(o={},a.extendFlat(o,tt(t,e)))}else o=t;else o={};return n.interpolate(o,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})},rt=function(t,e,r,o){var s=N(t,e),l={},f=j(t,e,r,o);a.extendFlat(l,{transform:$({x0:f.x0,x1:f.x1,y0:f.y0,y1:f.y1,textBB:t.textBB,_text:t._text},{isHeader:i.isHeader(t,m)})}),s?l=s:t.parent&amp;&amp;a.extendFlat(l,tt(t,e));var h=t.transform;return t.x0!==t.x1&amp;&amp;t.y0!==t.y1&amp;&amp;c(m.type,h,u),n.interpolate(l,{transform:{scale:h.scale,rotate:h.rotate,textX:h.textX,textY:h.textY,anchorX:h.anchorX,anchorY:h.anchorY,targetX:h.targetX,targetY:h.targetY}})},nt=function(t,e,r,i,a){var o=i[0],s=i[1];T?t.exit().transition().each((function(){var t=n.select(this);t.select(&quot;path.surface&quot;).transition().attrTween(&quot;d&quot;,(function(t){var r=function(t,e,r,i){var a,o=N(t,e);if(e)a=z;else{var s=N(y,e);a=s?O(t,s,i):{}}return n.interpolate(o,a)}(t,e,0,[o,s]);return function(t){return a(r(t))}})),t.select(&quot;g.slicetext&quot;).attr(&quot;opacity&quot;,0)})).remove():t.exit().remove()},it=function(t){var e=t.transform;return t.x0!==t.x1&amp;&amp;t.y0!==t.y1&amp;&amp;c(m.type,e,u),a.getTextTransform({textX:e.textX,textY:e.textY,anchorX:e.anchorX,anchorY:e.anchorY,targetX:e.targetX,targetY:e.targetY,scale:e.scale,rotate:e.rotate})};T&amp;&amp;(b.each((function(t){R[g(t)]={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1},t.transform&amp;&amp;(R[g(t)].transform={textX:t.transform.textX,textY:t.transform.textY,anchorX:t.transform.anchorX,anchorY:t.transform.anchorY,targetX:t.transform.targetX,targetY:t.transform.targetY,scale:t.transform.scale,rotate:t.transform.rotate})})),_.each((function(t){F[g(t)]={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1},t.transform&amp;&amp;(F[g(t)].transform={textX:t.transform.textX,textY:t.transform.textY,anchorX:t.transform.anchorX,anchorY:t.transform.anchorY,targetX:t.transform.targetX,targetY:t.transform.targetY,scale:t.transform.scale,rotate:t.transform.rotate}),!D&amp;&amp;i.isEntry(t)&amp;&amp;(D=t)}))),B=p(t,e,y,_,{width:S,height:E,viewX:q,viewY:H,pathSlice:function(t){var e=q(t.x0),r=q(t.x1),n=H(t.y0),i=H(t.y1),a=r-e,o=i-n;if(!a||!o)return&quot;&quot;;return&quot;M&quot;+Z(e,n+0)+&quot;L&quot;+Z(r-0,n)+&quot;L&quot;+Z(r,i-0)+&quot;L&quot;+Z(e+0,i)+&quot;Z&quot;},toMoveInsideSlice:$,prevEntry:D,makeUpdateSliceInterpolator:et,makeUpdateTextInterpolator:rt,handleSlicesExit:nt,hasTransition:T,strTransform:it}),m.pathbar.visible?d(t,e,y,b,{barDifY:P,width:C,height:L,viewX:W,viewY:X,pathSlice:function(t){var e=W(Math.max(Math.min(t.x0,t.x0),0)),r=W(Math.min(Math.max(t.x1,t.x1),C)),n=X(t.y0),i=X(t.y1),a=L/2,o={},s={};o.x=e,s.x=r,o.y=s.y=(n+i)/2;var l={x:e,y:n},c={x:r,y:n},u={x:r,y:i},f={x:e,y:i};return&quot;&gt;&quot;===Q?(l.x-=a,c.x-=a,u.x-=a,f.x-=a):&quot;/&quot;===Q?(u.x-=a,f.x-=a,o.x-=a/2,s.x-=a/2):&quot;\\&quot;===Q?(l.x-=a,c.x-=a,o.x-=a/2,s.x-=a/2):&quot;&lt;&quot;===Q&amp;&amp;(o.x-=a,s.x-=a),K(l),K(f),K(o),K(c),K(u),K(s),&quot;M&quot;+Z(l.x,l.y)+&quot;L&quot;+Z(c.x,c.y)+&quot;L&quot;+Z(s.x,s.y)+&quot;L&quot;+Z(u.x,u.y)+&quot;L&quot;+Z(f.x,f.y)+&quot;L&quot;+Z(o.x,o.y)+&quot;Z&quot;},toMoveInsideSlice:$,makeUpdateSliceInterpolator:et,makeUpdateTextInterpolator:rt,handleSlicesExit:nt,hasTransition:T,strTransform:it}):b.remove()}e.exports=function(t,e,r,a){var o,s,l=t._fullLayout,c=l._treemaplayer,h=!r;(u(&quot;treemap&quot;,l),(o=c.selectAll(&quot;g.trace.treemap&quot;).data(e,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).classed(&quot;trace&quot;,!0).classed(&quot;treemap&quot;,!0),o.order(),!l.uniformtext.mode&amp;&amp;i.hasTransition(r))?(a&amp;&amp;(s=a()),n.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){s&amp;&amp;s()})).each(&quot;interrupt&quot;,(function(){s&amp;&amp;s()})).each((function(){c.selectAll(&quot;g.trace&quot;).each((function(e){m(t,e,this,r)}))}))):(o.each((function(e){m(t,e,this,r)})),l.uniformtext.mode&amp;&amp;f(t,l._treemaplayer.selectAll(&quot;.trace&quot;),&quot;treemap&quot;));h&amp;&amp;o.exit().remove()}},{&quot;../../lib&quot;:778,&quot;../bar/constants&quot;:923,&quot;../bar/plot&quot;:932,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,&quot;../sunburst/helpers&quot;:1305,&quot;./constants&quot;:1328,&quot;./draw_ancestors&quot;:1330,&quot;./draw_descendants&quot;:1331,d3:169}],1337:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../sunburst/helpers&quot;),s=t(&quot;../bar/uniform_text&quot;).resizeText;function l(t,e,r,n){var s,l,c=(n||{}).hovered,u=e.data.data,f=u.i,h=u.color,p=o.isHierarchyRoot(e),d=1;if(c)s=r._hovered.marker.line.color,l=r._hovered.marker.line.width;else if(p&amp;&amp;h===r.root.color)d=100,s=&quot;rgba(0,0,0,0)&quot;,l=0;else if(s=a.castOption(r,f,&quot;marker.line.color&quot;)||i.defaultLine,l=a.castOption(r,f,&quot;marker.line.width&quot;)||0,!r._hasColorscale&amp;&amp;!e.onPathbar){var g=r.marker.depthfade;if(g){var m,v=i.combine(i.addOpacity(r._backgroundColor,.75),h);if(!0===g){var y=o.getMaxDepth(r);m=isFinite(y)?o.isLeaf(e)?0:r._maxVisibleLayers-(e.data.depth-r._entryDepth):e.data.height+1}else m=e.data.depth-r._entryDepth,r._atRootLevel||m++;if(m&gt;0)for(var x=0;x&lt;m;x++){var b=.5*x/m;h=i.combine(i.addOpacity(v,b),h)}}}t.style(&quot;stroke-width&quot;,l).call(i.fill,h).call(i.stroke,s).style(&quot;opacity&quot;,d)}e.exports={style:function(t){var e=t._fullLayout._treemaplayer.selectAll(&quot;.trace&quot;);s(t,e,&quot;treemap&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(l,t,r,{hovered:!1})}))}))},styleOne:l}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/uniform_text&quot;:937,&quot;../sunburst/helpers&quot;:1305,d3:169}],1338:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/attributes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={y:n.y,x:n.x,x0:n.x0,y0:n.y0,name:i({},n.name,{}),orientation:i({},n.orientation,{}),bandwidth:{valType:&quot;number&quot;,min:0,editType:&quot;calc&quot;},scalegroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},scalemode:{valType:&quot;enumerated&quot;,values:[&quot;width&quot;,&quot;count&quot;],dflt:&quot;width&quot;,editType:&quot;calc&quot;},spanmode:{valType:&quot;enumerated&quot;,values:[&quot;soft&quot;,&quot;hard&quot;,&quot;manual&quot;],dflt:&quot;soft&quot;,editType:&quot;calc&quot;},span:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},editType:&quot;plot&quot;},fillcolor:n.fillcolor,points:i({},n.boxpoints,{}),jitter:i({},n.jitter,{}),pointpos:i({},n.pointpos,{}),width:i({},n.width,{}),marker:n.marker,text:n.text,hovertext:n.hovertext,hovertemplate:n.hovertemplate,box:{visible:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},width:{valType:&quot;number&quot;,min:0,max:1,dflt:.25,editType:&quot;plot&quot;},fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;plot&quot;},meanline:{visible:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;both&quot;,&quot;positive&quot;,&quot;negative&quot;],dflt:&quot;both&quot;,editType:&quot;calc&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;violins&quot;,&quot;points&quot;,&quot;kde&quot;],dflt:&quot;violins+points+kde&quot;,extras:[&quot;all&quot;],editType:&quot;style&quot;}}},{&quot;../../lib/extend&quot;:768,&quot;../box/attributes&quot;:946}],1339:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../box/calc&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r){var i=e.max-e.min;if(!i)return t.bandwidth?t.bandwidth:0;if(t.bandwidth)return Math.max(t.bandwidth,i/1e4);var a=r.length,o=n.stdev(r,a-1,e.mean);return Math.max(function(t,e,r){return 1.059*Math.min(e,r/1.349)*Math.pow(t,-.2)}(a,o,e.q3-e.q1),i/100)}function c(t,e,r,n){var a,o=t.spanmode,l=t.span||[],c=[e.min,e.max],u=[e.min-2*n,e.max+2*n];function f(n){var i=l[n],a=&quot;multicategory&quot;===r.type?r.r2c(i):r.d2c(i,0,t[e.valLetter+&quot;calendar&quot;]);return a===s?u[n]:a}var h={type:&quot;linear&quot;,range:a=&quot;soft&quot;===o?u:&quot;hard&quot;===o?c:[f(0),f(1)]};return i.setConvert(h),h.cleanRange(),a}e.exports=function(t,e){var r=a(t,e);if(r[0].t.empty)return r;for(var s=t._fullLayout,u=i.getFromId(t,e[&quot;h&quot;===e.orientation?&quot;xaxis&quot;:&quot;yaxis&quot;]),f=1/0,h=-1/0,p=0,d=0,g=0;g&lt;r.length;g++){var m=r[g],v=m.pts.map(o.extractVal),y=m.bandwidth=l(e,m,v),x=m.span=c(e,m,u,y);if(m.min===m.max&amp;&amp;0===y)x=m.span=[m.min,m.max],m.density=[{v:1,t:x[0]}],m.bandwidth=y,p=Math.max(p,1);else{var b=x[1]-x[0],_=Math.ceil(b/(y/3)),w=b/_;if(!isFinite(w)||!isFinite(_))return n.error(&quot;Something went wrong with computing the violin span&quot;),r[0].t.empty=!0,r;var T=o.makeKDE(m,e,v);m.density=new Array(_);for(var k=0,M=x[0];M&lt;x[1]+w/2;k++,M+=w){var A=T(M);m.density[k]={v:A,t:M},p=Math.max(p,A)}}d=Math.max(d,v.length),f=Math.min(f,x[0]),h=Math.max(h,x[1])}var S=i.findExtremes(u,[f,h],{padded:!0});if(e._extremes[u._id]=S,e.width)r[0].t.maxKDE=p;else{var E=s._violinScaleGroupStats,C=e.scalegroup,L=E[C];L?(L.maxKDE=Math.max(L.maxKDE,p),L.maxCount=Math.max(L.maxCount,d)):E[C]={maxKDE:p,maxCount:d}}return r[0].t.labels.kde=n._(t,&quot;kde:&quot;),r}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../box/calc&quot;:947,&quot;./helpers&quot;:1342}],1340:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/cross_trace_calc&quot;).setPositionOffset,i=[&quot;v&quot;,&quot;h&quot;];e.exports=function(t,e){for(var r=t.calcdata,a=e.xaxis,o=e.yaxis,s=0;s&lt;i.length;s++){for(var l=i[s],c=&quot;h&quot;===l?o:a,u=[],f=0;f&lt;r.length;f++){var h=r[f],p=h[0].t,d=h[0].trace;!0!==d.visible||&quot;violin&quot;!==d.type||p.empty||d.orientation!==l||d.xaxis!==a._id||d.yaxis!==o._id||u.push(f)}n(&quot;violin&quot;,t,u,c)}}},{&quot;../box/cross_trace_calc&quot;:948}],1341:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../box/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}function c(r,i){return n.coerce2(t,e,o,r,i)}if(a.handleSampleDefaults(t,e,l,s),!1!==e.visible){l(&quot;bandwidth&quot;),l(&quot;side&quot;),l(&quot;width&quot;)||(l(&quot;scalegroup&quot;,e.name),l(&quot;scalemode&quot;));var u,f=l(&quot;span&quot;);Array.isArray(f)&amp;&amp;(u=&quot;manual&quot;),l(&quot;spanmode&quot;,u);var h=l(&quot;line.color&quot;,(t.marker||{}).color||r),p=l(&quot;line.width&quot;),d=l(&quot;fillcolor&quot;,i.addOpacity(e.line.color,.5));a.handlePointsDefaults(t,e,l,{prefix:&quot;&quot;});var g=c(&quot;box.width&quot;),m=c(&quot;box.fillcolor&quot;,d),v=c(&quot;box.line.color&quot;,h),y=c(&quot;box.line.width&quot;,p);l(&quot;box.visible&quot;,Boolean(g||m||v||y))||(e.box={visible:!1});var x=c(&quot;meanline.color&quot;,h),b=c(&quot;meanline.width&quot;,p);l(&quot;meanline.visible&quot;,Boolean(x||b))||(e.meanline={visible:!1})}}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../box/defaults&quot;:949,&quot;./attributes&quot;:1338}],1342:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=function(t){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*t*t)};r.makeKDE=function(t,e,r){var n=r.length,a=i,o=t.bandwidth,s=1/(n*o);return function(t){for(var e=0,i=0;i&lt;n;i++)e+=a((t-r[i])/o);return s*e}},r.getPositionOnKdePath=function(t,e,r){var i,a;&quot;h&quot;===e.orientation?(i=&quot;y&quot;,a=&quot;x&quot;):(i=&quot;x&quot;,a=&quot;y&quot;);var o=n.findPointOnPath(t.path,r,a,{pathLength:t.pathLength}),s=t.posCenterPx,l=o[i];return[l,&quot;both&quot;===e.side?2*s-l:s]},r.getKdeValue=function(t,e,n){var i=t.pts.map(r.extractVal);return r.makeKDE(t,e,i)(n)/t.posDensityScale},r.extractVal=function(t){return t.v}},{&quot;../../lib&quot;:778}],1343:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../box/hover&quot;),o=t(&quot;./helpers&quot;);e.exports=function(t,e,r,s,l){var c,u,f=t.cd,h=f[0].trace,p=h.hoveron,d=-1!==p.indexOf(&quot;violins&quot;),g=-1!==p.indexOf(&quot;kde&quot;),m=[];if(d||g){var v=a.hoverOnBoxes(t,e,r,s);if(g&amp;&amp;v.length&gt;0){var y,x,b,_,w,T=t.xa,k=t.ya;&quot;h&quot;===h.orientation?(w=e,y=&quot;y&quot;,b=k,x=&quot;x&quot;,_=T):(w=r,y=&quot;x&quot;,b=T,x=&quot;y&quot;,_=k);var M=f[t.index];if(w&gt;=M.span[0]&amp;&amp;w&lt;=M.span[1]){var A=n.extendFlat({},t),S=_.c2p(w,!0),E=o.getKdeValue(M,h,w),C=o.getPositionOnKdePath(M,h,S),L=b._offset,I=b._length;A[y+&quot;0&quot;]=C[0],A[y+&quot;1&quot;]=C[1],A[x+&quot;0&quot;]=A[x+&quot;1&quot;]=S,A[x+&quot;Label&quot;]=x+&quot;: &quot;+i.hoverLabelText(_,w)+&quot;, &quot;+f[0].t.labels.kde+&quot; &quot;+E.toFixed(3),A.spikeDistance=v[0].spikeDistance;var P=y+&quot;Spike&quot;;A[P]=v[0][P],v[0].spikeDistance=void 0,v[0][P]=void 0,A.hovertemplate=!1,m.push(A),(u={stroke:t.color})[y+&quot;1&quot;]=n.constrain(L+C[0],L,L+I),u[y+&quot;2&quot;]=n.constrain(L+C[1],L,L+I),u[x+&quot;1&quot;]=u[x+&quot;2&quot;]=_._offset+S}}d&amp;&amp;(m=m.concat(v))}-1!==p.indexOf(&quot;points&quot;)&amp;&amp;(c=a.hoverOnPoints(t,e,r));var z=l.selectAll(&quot;.violinline-&quot;+h.uid).data(u?[0]:[]);return z.enter().append(&quot;line&quot;).classed(&quot;violinline-&quot;+h.uid,!0).attr(&quot;stroke-width&quot;,1.5),z.exit().remove(),z.attr(u),&quot;closest&quot;===s?c?[c]:m:c?(m.push(c),m):m}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../box/hover&quot;:951,&quot;./helpers&quot;:1342}],1344:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../box/defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../box/select&quot;),moduleType:&quot;trace&quot;,name:&quot;violin&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;oriented&quot;,&quot;box-violin&quot;,&quot;showLegend&quot;,&quot;violinLayout&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../box/defaults&quot;:949,&quot;../box/select&quot;:956,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1338,&quot;./calc&quot;:1339,&quot;./cross_trace_calc&quot;:1340,&quot;./defaults&quot;:1341,&quot;./hover&quot;:1343,&quot;./layout_attributes&quot;:1345,&quot;./layout_defaults&quot;:1346,&quot;./plot&quot;:1347,&quot;./style&quot;:1348}],1345:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/layout_attributes&quot;),i=t(&quot;../../lib&quot;).extendFlat;e.exports={violinmode:i({},n.boxmode,{}),violingap:i({},n.boxgap,{}),violingroupgap:i({},n.boxgroupgap,{})}},{&quot;../../lib&quot;:778,&quot;../box/layout_attributes&quot;:953}],1346:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;),a=t(&quot;../box/layout_defaults&quot;);e.exports=function(t,e,r){a._supply(t,e,r,(function(r,a){return n.coerce(t,e,i,r,a)}),&quot;violin&quot;)}},{&quot;../../lib&quot;:778,&quot;../box/layout_defaults&quot;:954,&quot;./layout_attributes&quot;:1345}],1347:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../box/plot&quot;),s=t(&quot;../scatter/line_points&quot;),l=t(&quot;./helpers&quot;);e.exports=function(t,e,r,c){var u=t._fullLayout,f=e.xaxis,h=e.yaxis;function p(t){var e=s(t,{xaxis:f,yaxis:h,connectGaps:!0,baseTolerance:.75,shape:&quot;spline&quot;,simplify:!0,linearized:!0});return a.smoothopen(e[0],1)}i.makeTraceGroups(c,r,&quot;trace violins&quot;).each((function(t){var r=n.select(this),a=t[0],s=a.t,c=a.trace;if(!0!==c.visible||s.empty)r.remove();else{var d=s.bPos,g=s.bdPos,m=e[s.valLetter+&quot;axis&quot;],v=e[s.posLetter+&quot;axis&quot;],y=&quot;both&quot;===c.side,x=y||&quot;positive&quot;===c.side,b=y||&quot;negative&quot;===c.side,_=r.selectAll(&quot;path.violin&quot;).data(i.identity);_.enter().append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;class&quot;,&quot;violin&quot;),_.exit().remove(),_.each((function(t){var e,r,i,a,o,l,f,h,_=n.select(this),w=t.density,T=w.length,k=v.c2l(t.pos+d,!0),M=v.l2p(k);if(c.width)e=s.maxKDE/g;else{var A=u._violinScaleGroupStats[c.scalegroup];e=&quot;count&quot;===c.scalemode?A.maxKDE/g*(A.maxCount/t.pts.length):A.maxKDE/g}if(x){for(f=new Array(T),o=0;o&lt;T;o++)(h=f[o]={})[s.posLetter]=k+w[o].v/e,h[s.valLetter]=m.c2l(w[o].t,!0);r=p(f)}if(b){for(f=new Array(T),l=0,o=T-1;l&lt;T;l++,o--)(h=f[l]={})[s.posLetter]=k-w[o].v/e,h[s.valLetter]=m.c2l(w[o].t,!0);i=p(f)}if(y)a=r+&quot;L&quot;+i.substr(1)+&quot;Z&quot;;else{var S=[M,m.c2p(w[0].t)],E=[M,m.c2p(w[T-1].t)];&quot;h&quot;===c.orientation&amp;&amp;(S.reverse(),E.reverse()),a=x?&quot;M&quot;+S+&quot;L&quot;+r.substr(1)+&quot;L&quot;+E:&quot;M&quot;+E+&quot;L&quot;+i.substr(1)+&quot;L&quot;+S}_.attr(&quot;d&quot;,a),t.posCenterPx=M,t.posDensityScale=e*g,t.path=_.node(),t.pathLength=t.path.getTotalLength()/(y?2:1)}));var w,T,k,M=c.box,A=M.width,S=(M.line||{}).width;y?(w=g*A,T=0):x?(w=[0,g*A/2],T=S*{x:1,y:-1}[s.posLetter]):(w=[g*A/2,0],T=S*{x:-1,y:1}[s.posLetter]),o.plotBoxAndWhiskers(r,{pos:v,val:m},c,{bPos:d,bdPos:w,bPosPxOffset:T}),o.plotBoxMean(r,{pos:v,val:m},c,{bPos:d,bdPos:w,bPosPxOffset:T}),!c.box.visible&amp;&amp;c.meanline.visible&amp;&amp;(k=i.identity);var E=r.selectAll(&quot;path.meanline&quot;).data(k||[]);E.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;meanline&quot;).style(&quot;fill&quot;,&quot;none&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;),E.exit().remove(),E.each((function(t){var e=m.c2p(t.mean,!0),r=l.getPositionOnKdePath(t,c,e);n.select(this).attr(&quot;d&quot;,&quot;h&quot;===c.orientation?&quot;M&quot;+e+&quot;,&quot;+r[0]+&quot;V&quot;+r[1]:&quot;M&quot;+r[0]+&quot;,&quot;+e+&quot;H&quot;+r[1])})),o.plotPoints(r,{x:f,y:h},c,s)}}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../box/plot&quot;:955,&quot;../scatter/line_points&quot;:1201,&quot;./helpers&quot;:1342,d3:169}],1348:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../scatter/style&quot;).stylePoints;e.exports=function(t){var e=n.select(t).selectAll(&quot;g.trace.violins&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.each((function(e){var r=e[0].trace,o=n.select(this),s=r.box||{},l=s.line||{},c=r.meanline||{},u=c.width;o.selectAll(&quot;path.violin&quot;).style(&quot;stroke-width&quot;,r.line.width+&quot;px&quot;).call(i.stroke,r.line.color).call(i.fill,r.fillcolor),o.selectAll(&quot;path.box&quot;).style(&quot;stroke-width&quot;,l.width+&quot;px&quot;).call(i.stroke,l.color).call(i.fill,s.fillcolor);var f={&quot;stroke-width&quot;:u+&quot;px&quot;,&quot;stroke-dasharray&quot;:2*u+&quot;px,&quot;+u+&quot;px&quot;};o.selectAll(&quot;path.mean&quot;).style(f).call(i.stroke,c.color),o.selectAll(&quot;path.meanline&quot;).style(f).call(i.stroke,c.color),a(o,r,t)}))}},{&quot;../../components/color&quot;:643,&quot;../scatter/style&quot;:1211,d3:169}],1349:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../isosurface/attributes&quot;),a=t(&quot;../surface/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll,c=e.exports=l(s({x:i.x,y:i.y,z:i.z,value:i.value,isomin:i.isomin,isomax:i.isomax,surface:i.surface,spaceframe:{show:{valType:&quot;boolean&quot;,dflt:!1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},slices:i.slices,caps:i.caps,text:i.text,hovertext:i.hovertext,hovertemplate:i.hovertemplate},n(&quot;&quot;,{colorAttr:&quot;`value`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{colorbar:i.colorbar,opacity:i.opacity,opacityscale:a.opacityscale,lightposition:i.lightposition,lighting:i.lighting,flatshading:i.flatshading,contour:i.contour,hoverinfo:s({},o.hoverinfo),showlegend:s({},o.showlegend,{dflt:!1})}),&quot;calc&quot;,&quot;nested&quot;);c.x.editType=c.y.editType=c.z.editType=c.value.editType=&quot;calc+clearAxisTypes&quot;,c.transforms=void 0},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../isosurface/attributes&quot;:1123,&quot;../surface/attributes&quot;:1311}],1350:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,a=t(&quot;../../lib/str2rgbarray&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts,s=t(&quot;../../plots/gl3d/zip3&quot;),l=t(&quot;../isosurface/convert&quot;).findNearestOnAxis,c=t(&quot;../isosurface/convert&quot;).generateIsoMeshes;function u(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.data=null,this.showContour=!1}var f=u.prototype;f.handlePick=function(t){if(t.object===this.mesh){var e=t.data.index,r=this.data._meshX[e],n=this.data._meshY[e],i=this.data._meshZ[e],a=this.data._Ys.length,o=this.data._Zs.length,s=l(r,this.data._Xs).id,c=l(n,this.data._Ys).id,u=l(i,this.data._Zs).id,f=t.index=u+o*c+o*a*s;t.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Array.isArray(h)&amp;&amp;void 0!==h[f]?t.textLabel=h[f]:h&amp;&amp;(t.textLabel=h),!0}},f.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map((function(e){return t.d2l(e,0,n)*r}))}this.data=c(t);var l={positions:s(n(r.xaxis,t._meshX,e.dataScale[0],t.xcalendar),n(r.yaxis,t._meshY,e.dataScale[1],t.ycalendar),n(r.zaxis,t._meshZ,e.dataScale[2],t.zcalendar)),cells:s(t._meshI,t._meshJ,t._meshK),lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,opacityscale:t.opacityscale,contourEnable:t.contour.show,contourColor:a(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading},u=o(t);l.vertexIntensity=t._meshIntensity,l.vertexIntensityBounds=[u.min,u.max],l.colormap=i(t),this.mesh.update(l)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new u(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/gl3d/zip3&quot;:881,&quot;../isosurface/convert&quot;:1125,&quot;gl-mesh3d&quot;:309}],1351:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../isosurface/defaults&quot;).supplyIsoDefaults,o=t(&quot;../surface/defaults&quot;).opacityscaleDefaults;e.exports=function(t,e,r,s){function l(r,a){return n.coerce(t,e,i,r,a)}a(t,e,r,s,l),o(t,e,s,l)}},{&quot;../../lib&quot;:778,&quot;../isosurface/defaults&quot;:1126,&quot;../surface/defaults&quot;:1314,&quot;./attributes&quot;:1349}],1352:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;../isosurface/calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;volume&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;../isosurface/calc&quot;:1124,&quot;./attributes&quot;:1349,&quot;./convert&quot;:1350,&quot;./defaults&quot;:1351}],1353:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../scatter/attributes&quot;).line,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;./constants&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../components/color&quot;);function f(t){return{marker:{color:c({},n.marker.color,{arrayOk:!1,editType:&quot;style&quot;}),line:{color:c({},n.marker.line.color,{arrayOk:!1,editType:&quot;style&quot;}),width:c({},n.marker.line.width,{arrayOk:!1,editType:&quot;style&quot;}),editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;}}e.exports={measure:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},base:{valType:&quot;number&quot;,dflt:null,arrayOk:!1,editType:&quot;calc&quot;},x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,hovertext:n.hovertext,hovertemplate:o({},{keys:l.eventDataKeys}),hoverinfo:c({},a.hoverinfo,{flags:[&quot;name&quot;,&quot;x&quot;,&quot;y&quot;,&quot;text&quot;,&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;]}),textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;,arrayOk:!1},texttemplate:s({editType:&quot;plot&quot;},{keys:l.eventDataKeys.concat([&quot;label&quot;])}),text:n.text,textposition:n.textposition,insidetextanchor:n.insidetextanchor,textangle:n.textangle,textfont:n.textfont,insidetextfont:n.insidetextfont,outsidetextfont:n.outsidetextfont,constraintext:n.constraintext,cliponaxis:n.cliponaxis,orientation:n.orientation,offset:n.offset,width:n.width,increasing:f(),decreasing:f(),totals:f(),connector:{line:{color:c({},i.color,{dflt:u.defaultLine}),width:c({},i.width,{editType:&quot;plot&quot;}),dash:i.dash,editType:&quot;plot&quot;},mode:{valType:&quot;enumerated&quot;,values:[&quot;spanning&quot;,&quot;between&quot;],dflt:&quot;between&quot;,editType:&quot;plot&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup}},{&quot;../../components/color&quot;:643,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:1355}],1354:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;../../lib&quot;).mergeArray,o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t){return&quot;a&quot;===t||&quot;absolute&quot;===t}function c(t){return&quot;t&quot;===t||&quot;total&quot;===t}e.exports=function(t,e){var r,u,f,h,p=n.getFromId(t,e.xaxis||&quot;x&quot;),d=n.getFromId(t,e.yaxis||&quot;y&quot;);&quot;h&quot;===e.orientation?(r=p.makeCalcdata(e,&quot;x&quot;),f=d.makeCalcdata(e,&quot;y&quot;),u=i(e,d,&quot;y&quot;,f),h=!!e.yperiodalignment):(r=d.makeCalcdata(e,&quot;y&quot;),f=p.makeCalcdata(e,&quot;x&quot;),u=i(e,p,&quot;x&quot;,f),h=!!e.xperiodalignment);for(var g,m=Math.min(u.length,r.length),v=new Array(m),y=0,x=!1,b=0;b&lt;m;b++){var _=r[b]||0,w=!1;(r[b]!==s||c(e.measure[b])||l(e.measure[b]))&amp;&amp;b+1&lt;m&amp;&amp;(r[b+1]!==s||c(e.measure[b+1])||l(e.measure[b+1]))&amp;&amp;(w=!0);var T=v[b]={i:b,p:u[b],s:_,rawS:_,cNext:w};l(e.measure[b])?(y=T.s,T.isSum=!0,T.dir=&quot;totals&quot;,T.s=y):c(e.measure[b])?(T.isSum=!0,T.dir=&quot;totals&quot;,T.s=y):(T.isSum=!1,T.dir=T.rawS&lt;0?&quot;decreasing&quot;:&quot;increasing&quot;,g=T.s,T.s=y+g,y+=g),&quot;totals&quot;===T.dir&amp;&amp;(x=!0),h&amp;&amp;(v[b].orig_p=f[b]),e.ids&amp;&amp;(T.id=String(e.ids[b])),T.v=(e.base||0)+y}return v.length&amp;&amp;(v[0].hasTotals=x),a(e.text,v,&quot;tx&quot;),a(e.hovertext,v,&quot;htx&quot;),o(v,e),v}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc_selection&quot;:1189}],1355:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;]}},{}],1356:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions;e.exports=function(t,e){var r,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,c=e.yaxis,u=[],f=[],h=[];for(i=0;i&lt;o.length;i++){var p=o[i];!0===p.visible&amp;&amp;p.xaxis===l._id&amp;&amp;p.yaxis===c._id&amp;&amp;&quot;waterfall&quot;===p.type&amp;&amp;(r=s[i],&quot;h&quot;===p.orientation?h.push(r):f.push(r),u.push(r))}var d={mode:a.waterfallmode,norm:a.waterfallnorm,gap:a.waterfallgap,groupgap:a.waterfallgroupgap};for(n(t,l,c,f,d),n(t,c,l,h,d),i=0;i&lt;u.length;i++){r=u[i];for(var g=0;g&lt;r.length;g++){var m=r[g];!1===m.isSum&amp;&amp;(m.s0+=0===g?0:r[g-1].s),g+1&lt;r.length&amp;&amp;(r[g].nextP0=r[g+1].p0,r[g].nextS0=r[g+1].s0)}}}},{&quot;../bar/cross_trace_calc&quot;:924}],1357:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,a=t(&quot;../bar/defaults&quot;).handleText,o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../../components/color&quot;),u=t(&quot;../../constants/delta.js&quot;),f=u.INCREASING.COLOR,h=u.DECREASING.COLOR;function p(t,e,r){t(e+&quot;.marker.color&quot;,r),t(e+&quot;.marker.line.color&quot;,c.defaultLine),t(e+&quot;.marker.line.width&quot;)}e.exports={supplyDefaults:function(t,e,r,i){function c(r,i){return n.coerce(t,e,l,r,i)}if(o(t,e,i,c)){s(t,e,i,c),c(&quot;measure&quot;),c(&quot;orientation&quot;,e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;),c(&quot;base&quot;),c(&quot;offset&quot;),c(&quot;width&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;);var u=c(&quot;textposition&quot;);if(a(t,e,i,c,u,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),&quot;none&quot;!==e.textposition&amp;&amp;(c(&quot;texttemplate&quot;),e.texttemplate||c(&quot;textinfo&quot;)),p(c,&quot;increasing&quot;,f),p(c,&quot;decreasing&quot;,h),p(c,&quot;totals&quot;,&quot;#4499FF&quot;),c(&quot;connector.visible&quot;))c(&quot;connector.mode&quot;),c(&quot;connector.line.width&quot;)&amp;&amp;(c(&quot;connector.line.color&quot;),c(&quot;connector.line.dash&quot;))}else e.visible=!1},crossTraceDefaults:function(t,e){var r,a;function o(t){return n.coerce(a._input,a,l,t)}if(&quot;group&quot;===e.waterfallmode)for(var s=0;s&lt;t.length;s++)r=(a=t[s])._input,i(r,a,e,o)}}},{&quot;../../components/color&quot;:643,&quot;../../constants/delta.js&quot;:747,&quot;../../lib&quot;:778,&quot;../bar/defaults&quot;:925,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:1353}],1358:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;initial&quot;in e&amp;&amp;(t.initial=e.initial),&quot;delta&quot;in e&amp;&amp;(t.delta=e.delta),&quot;final&quot;in e&amp;&amp;(t.final=e.final),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],1359:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText,i=t(&quot;../../components/color&quot;).opacity,a=t(&quot;../bar/hover&quot;).hoverOnBars,o=t(&quot;../../constants/delta.js&quot;),s=o.INCREASING.SYMBOL,l=o.DECREASING.SYMBOL;e.exports=function(t,e,r,o){var c=a(t,e,r,o);if(c){var u=c.cd,f=u[0].trace,h=&quot;h&quot;===f.orientation,p=h?t.xa:t.ya,d=u[c.index],g=d.isSum?d.b+d.s:d.rawS;if(!d.isSum){c.initial=d.b+d.s-g,c.delta=g,c.final=c.initial+c.delta;var m=w(Math.abs(c.delta));c.deltaLabel=g&lt;0?&quot;(&quot;+m+&quot;)&quot;:m,c.finalLabel=w(c.final),c.initialLabel=w(c.initial)}var v=d.hi||f.hoverinfo,y=[];if(v&amp;&amp;&quot;none&quot;!==v&amp;&amp;&quot;skip&quot;!==v){var x=&quot;all&quot;===v,b=v.split(&quot;+&quot;),_=function(t){return x||-1!==b.indexOf(t)};d.isSum||(!_(&quot;final&quot;)||_(h?&quot;x&quot;:&quot;y&quot;)||y.push(c.finalLabel),_(&quot;delta&quot;)&amp;&amp;(g&lt;0?y.push(c.deltaLabel+&quot; &quot;+l):y.push(c.deltaLabel+&quot; &quot;+s)),_(&quot;initial&quot;)&amp;&amp;y.push(&quot;Initial: &quot;+c.initialLabel))}return y.length&amp;&amp;(c.extraText=y.join(&quot;&lt;br&gt;&quot;)),c.color=function(t,e){var r=t[e.dir].marker,n=r.color,a=r.line.color,o=r.line.width;if(i(n))return n;if(i(a)&amp;&amp;o)return a}(f,d),[c]}function w(t){return n(p,t)}}},{&quot;../../components/color&quot;:643,&quot;../../constants/delta.js&quot;:747,&quot;../../plots/cartesian/axes&quot;:828,&quot;../bar/hover&quot;:928}],1360:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;../bar/select&quot;),moduleType:&quot;trace&quot;,name:&quot;waterfall&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;oriented&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../bar/select&quot;:933,&quot;./attributes&quot;:1353,&quot;./calc&quot;:1354,&quot;./cross_trace_calc&quot;:1356,&quot;./defaults&quot;:1357,&quot;./event_data&quot;:1358,&quot;./hover&quot;:1359,&quot;./layout_attributes&quot;:1361,&quot;./layout_defaults&quot;:1362,&quot;./plot&quot;:1363,&quot;./style&quot;:1364}],1361:[function(t,e,r){&quot;use strict&quot;;e.exports={waterfallmode:{valType:&quot;enumerated&quot;,values:[&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;group&quot;,editType:&quot;calc&quot;},waterfallgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},waterfallgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],1362:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s&lt;r.length;s++){var l=r[s];if(l.visible&amp;&amp;&quot;waterfall&quot;===l.type){a=!0;break}}a&amp;&amp;(o(&quot;waterfallmode&quot;),o(&quot;waterfallgap&quot;,.2),o(&quot;waterfallgroupgap&quot;))}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1361}],1363:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../constants/numerical&quot;).BADNUM,s=t(&quot;../bar/plot&quot;),l=t(&quot;../bar/uniform_text&quot;).clearMinTextSize;e.exports=function(t,e,r,c){var u=t._fullLayout;l(&quot;waterfall&quot;,u),s.plot(t,e,r,c,{mode:u.waterfallmode,norm:u.waterfallmode,gap:u.waterfallgap,groupgap:u.waterfallgroupgap}),function(t,e,r,s){var l=e.xaxis,c=e.yaxis;i.makeTraceGroups(s,r,&quot;trace bars&quot;).each((function(r){var s=n.select(this),u=r[0].trace,f=i.ensureSingle(s,&quot;g&quot;,&quot;lines&quot;);if(u.connector&amp;&amp;u.connector.visible){var h=&quot;h&quot;===u.orientation,p=u.connector.mode,d=f.selectAll(&quot;g.line&quot;).data(i.identity);d.enter().append(&quot;g&quot;).classed(&quot;line&quot;,!0),d.exit().remove();var g=d.size();d.each((function(r,s){if(s===g-1||r.cNext){var u=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),n?[i,a]:[a,i]}(r,l,c,h),f=u[0],d=u[1],m=&quot;&quot;;f[0]!==o&amp;&amp;d[0]!==o&amp;&amp;f[1]!==o&amp;&amp;d[1]!==o&amp;&amp;(&quot;spanning&quot;===p&amp;&amp;!r.isSum&amp;&amp;s&gt;0&amp;&amp;(m+=h?&quot;M&quot;+f[0]+&quot;,&quot;+d[1]+&quot;V&quot;+d[0]:&quot;M&quot;+f[1]+&quot;,&quot;+d[0]+&quot;H&quot;+f[0]),&quot;between&quot;!==p&amp;&amp;(r.isSum||s&lt;g-1)&amp;&amp;(m+=h?&quot;M&quot;+f[1]+&quot;,&quot;+d[0]+&quot;V&quot;+d[1]:&quot;M&quot;+f[0]+&quot;,&quot;+d[1]+&quot;H&quot;+f[1]),f[2]!==o&amp;&amp;d[2]!==o&amp;&amp;(m+=h?&quot;M&quot;+f[1]+&quot;,&quot;+d[1]+&quot;V&quot;+d[2]:&quot;M&quot;+f[1]+&quot;,&quot;+d[1]+&quot;H&quot;+f[2])),&quot;&quot;===m&amp;&amp;(m=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,m).call(a.setClipUrl,e.layerClipId,t)}}))}else f.remove()}))}(t,e,r,c)}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../bar/plot&quot;:932,&quot;../bar/uniform_text&quot;:937,d3:169}],1364:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../constants/interactions&quot;).DESELECTDIM,s=t(&quot;../bar/style&quot;),l=t(&quot;../bar/uniform_text&quot;).resizeText,c=s.styleTextPoints;e.exports={style:function(t,e,r){var s=r||n.select(t).selectAll(&quot;g.waterfalllayer&quot;).selectAll(&quot;g.trace&quot;);l(t,s,&quot;waterfall&quot;),s.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),s.each((function(e){var r=n.select(this),s=e[0].trace;r.selectAll(&quot;.point &gt; path&quot;).each((function(t){if(!t.isBlank){var e=s[t.dir].marker;n.select(this).call(a.fill,e.color).call(a.stroke,e.line.color).call(i.dashLine,e.line.dash,e.line.width).style(&quot;opacity&quot;,s.selectedpoints&amp;&amp;!t.selected?o:1)}})),c(r,s,t),r.selectAll(&quot;.lines&quot;).each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll(&quot;path&quot;),t.width,t.color,t.dash)}))}))}}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../constants/interactions&quot;:752,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,d3:169}],1365:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../plots/cartesian/axes&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../plot_api/plot_schema&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction,s=t(&quot;../constants/numerical&quot;).BADNUM;r.moduleType=&quot;transform&quot;,r.name=&quot;aggregate&quot;;var l=r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},groups:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},aggregations:{_isLinkedToArray:&quot;aggregation&quot;,target:{valType:&quot;string&quot;,editType:&quot;calc&quot;},func:{valType:&quot;enumerated&quot;,values:[&quot;count&quot;,&quot;sum&quot;,&quot;avg&quot;,&quot;median&quot;,&quot;mode&quot;,&quot;rms&quot;,&quot;stddev&quot;,&quot;min&quot;,&quot;max&quot;,&quot;first&quot;,&quot;last&quot;,&quot;change&quot;,&quot;range&quot;],dflt:&quot;first&quot;,editType:&quot;calc&quot;},funcmode:{valType:&quot;enumerated&quot;,values:[&quot;sample&quot;,&quot;population&quot;],dflt:&quot;sample&quot;,editType:&quot;calc&quot;},enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},c=l.aggregations;function u(t,e,r,a){if(a.enabled){for(var o=a.target,l=i.nestedProperty(e,o),c=l.get(),u=function(t,e){var r=t.func,n=e.d2c,a=e.c2d;switch(r){case&quot;count&quot;:return f;case&quot;first&quot;:return h;case&quot;last&quot;:return p;case&quot;sum&quot;:return function(t,e){for(var r=0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r+=o)}return a(r)};case&quot;avg&quot;:return function(t,e){for(var r=0,i=0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r+=l,i++)}return i?a(r/i):s};case&quot;min&quot;:return function(t,e){for(var r=1/0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r=Math.min(r,o))}return r===1/0?s:a(r)};case&quot;max&quot;:return function(t,e){for(var r=-1/0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r=Math.max(r,o))}return r===-1/0?s:a(r)};case&quot;range&quot;:return function(t,e){for(var r=1/0,i=-1/0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r=Math.min(r,l),i=Math.max(i,l))}return i===-1/0||r===1/0?s:a(i-r)};case&quot;change&quot;:return function(t,e){var r=n(t[e[0]]),i=n(t[e[e.length-1]]);return r===s||i===s?s:a(i-r)};case&quot;median&quot;:return function(t,e){for(var r=[],o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;r.push(l)}if(!r.length)return s;r.sort(i.sorterAsc);var c=(r.length-1)/2;return a((r[Math.floor(c)]+r[Math.ceil(c)])/2)};case&quot;mode&quot;:return function(t,e){for(var r={},i=0,o=s,l=0;l&lt;e.length;l++){var c=n(t[e[l]]);if(c!==s){var u=r[c]=(r[c]||0)+1;u&gt;i&amp;&amp;(i=u,o=c)}}return i?a(o):s};case&quot;rms&quot;:return function(t,e){for(var r=0,i=0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r+=l*l,i++)}return i?a(Math.sqrt(r/i)):s};case&quot;stddev&quot;:return function(e,r){var i,a=0,o=0,l=1,c=s;for(i=0;i&lt;r.length&amp;&amp;c===s;i++)c=n(e[r[i]]);if(c===s)return s;for(;i&lt;r.length;i++){var u=n(e[r[i]]);if(u!==s){var f=u-c;a+=f,o+=f*f,l++}}var h=&quot;sample&quot;===t.funcmode?l-1:l;return h?Math.sqrt((o-a*a/l)/h):0}}}(a,n.getDataConversions(t,e,o,c)),d=new Array(r.length),g=0;g&lt;r.length;g++)d[g]=u(c,r[g]);l.set(d),&quot;count&quot;===a.func&amp;&amp;i.pushUnique(e._arrayAttrs,o)}}function f(t,e){return e.length}function h(t,e){return t[e[0]]}function p(t,e){return t[e[e.length-1]]}r.supplyDefaults=function(t,e){var r,n={};function o(e,r){return i.coerce(t,n,l,e,r)}if(!o(&quot;enabled&quot;))return n;var s=a.findArrayAttributes(e),u={};for(r=0;r&lt;s.length;r++)u[s[r]]=1;var f=o(&quot;groups&quot;);if(!Array.isArray(f)){if(!u[f])return n.enabled=!1,n;u[f]=0}var h,p=t.aggregations||[],d=n.aggregations=new Array(p.length);function g(t,e){return i.coerce(p[r],h,c,t,e)}for(r=0;r&lt;p.length;r++){h={_index:r};var m=g(&quot;target&quot;),v=g(&quot;func&quot;);g(&quot;enabled&quot;)&amp;&amp;m&amp;&amp;(u[m]||&quot;count&quot;===v&amp;&amp;void 0===u[m])?(&quot;stddev&quot;===v&amp;&amp;g(&quot;funcmode&quot;),u[m]=0,d[r]=h):d[r]={enabled:!1,_index:r}}for(r=0;r&lt;s.length;r++)u[s[r]]&amp;&amp;d.push({target:s[r],func:c.func.dflt,enabled:!0,_index:-1});return n},r.calcTransform=function(t,e,r){if(r.enabled){var n=r.groups,a=i.getTargetArray(e,{target:n});if(a){var s,l,c,f,h={},p={},d=[],g=o(e.transforms,r),m=a.length;for(e._length&amp;&amp;(m=Math.min(m,e._length)),s=0;s&lt;m;s++)void 0===(c=h[l=a[s]])?(h[l]=d.length,f=[s],d.push(f),p[h[l]]=g(s)):(d[c].push(s),p[h[l]]=(p[h[l]]||[]).concat(g(s)));r._indexToPoints=p;var v=r.aggregations;for(s=0;s&lt;v.length;s++)u(t,e,d,v[s]);&quot;string&quot;==typeof n&amp;&amp;u(t,e,d,{target:n,func:&quot;first&quot;,enabled:!0}),e._length=d.length}}}},{&quot;../constants/numerical&quot;:753,&quot;../lib&quot;:778,&quot;../plot_api/plot_schema&quot;:816,&quot;../plots/cartesian/axes&quot;:828,&quot;./helpers&quot;:1368}],1366:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../registry&quot;),a=t(&quot;../plots/cartesian/axes&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction,s=t(&quot;../constants/filter_ops&quot;),l=s.COMPARISON_OPS,c=s.INTERVAL_OPS,u=s.SET_OPS;r.moduleType=&quot;transform&quot;,r.name=&quot;filter&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},target:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},operation:{valType:&quot;enumerated&quot;,values:[].concat(l).concat(c).concat(u),dflt:&quot;=&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},preservegaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t){var e={};function a(i,a){return n.coerce(t,e,r.attributes,i,a)}if(a(&quot;enabled&quot;)){var o=a(&quot;target&quot;);if(n.isArrayOrTypedArray(o)&amp;&amp;0===o.length)return e.enabled=!1,e;a(&quot;preservegaps&quot;),a(&quot;operation&quot;),a(&quot;value&quot;);var s=i.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;);s(t,e,&quot;valuecalendar&quot;,null),s(t,e,&quot;targetcalendar&quot;,null)}return e},r.calcTransform=function(t,e,r){if(r.enabled){var i=n.getTargetArray(e,r);if(i){var s=r.target,f=i.length;e._length&amp;&amp;(f=Math.min(f,e._length));var h=r.targetcalendar,p=e._arrayAttrs,d=r.preservegaps;if(&quot;string&quot;==typeof s){var g=n.nestedProperty(e,s+&quot;calendar&quot;).get();g&amp;&amp;(h=g)}var m,v,y=function(t,e,r){var n=t.operation,i=t.value,a=Array.isArray(i);function o(t){return-1!==t.indexOf(n)}var s,f=function(r){return e(r,0,t.valuecalendar)},h=function(t){return e(t,0,r)};o(l)?s=f(a?i[0]:i):o(c)?s=a?[f(i[0]),f(i[1])]:[f(i),f(i)]:o(u)&amp;&amp;(s=a?i.map(f):[f(i)]);switch(n){case&quot;=&quot;:return function(t){return h(t)===s};case&quot;!=&quot;:return function(t){return h(t)!==s};case&quot;&lt;&quot;:return function(t){return h(t)&lt;s};case&quot;&lt;=&quot;:return function(t){return h(t)&lt;=s};case&quot;&gt;&quot;:return function(t){return h(t)&gt;s};case&quot;&gt;=&quot;:return function(t){return h(t)&gt;=s};case&quot;[]&quot;:return function(t){var e=h(t);return e&gt;=s[0]&amp;&amp;e&lt;=s[1]};case&quot;()&quot;:return function(t){var e=h(t);return e&gt;s[0]&amp;&amp;e&lt;s[1]};case&quot;[)&quot;:return function(t){var e=h(t);return e&gt;=s[0]&amp;&amp;e&lt;s[1]};case&quot;(]&quot;:return function(t){var e=h(t);return e&gt;s[0]&amp;&amp;e&lt;=s[1]};case&quot;][&quot;:return function(t){var e=h(t);return e&lt;=s[0]||e&gt;=s[1]};case&quot;)(&quot;:return function(t){var e=h(t);return e&lt;s[0]||e&gt;s[1]};case&quot;](&quot;:return function(t){var e=h(t);return e&lt;=s[0]||e&gt;s[1]};case&quot;)[&quot;:return function(t){var e=h(t);return e&lt;s[0]||e&gt;=s[1]};case&quot;{}&quot;:return function(t){return-1!==s.indexOf(h(t))};case&quot;}{&quot;:return function(t){return-1===s.indexOf(h(t))}}}(r,a.getDataToCoordFunc(t,e,s,i),h),x={},b={},_=0;d?(m=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set(new Array(f))},v=function(t,e){var r=x[t.astr][e];t.get()[e]=r}):(m=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set([])},v=function(t,e){var r=x[t.astr][e];t.get().push(r)}),k(m);for(var w=o(e.transforms,r),T=0;T&lt;f;T++){y(i[T])?(k(v,T),b[_++]=w(T)):d&amp;&amp;_++}r._indexToPoints=b,e._length=_}}function k(t,r){for(var i=0;i&lt;p.length;i++){t(n.nestedProperty(e,p[i]),r)}}}},{&quot;../constants/filter_ops&quot;:749,&quot;../lib&quot;:778,&quot;../plots/cartesian/axes&quot;:828,&quot;../registry&quot;:911,&quot;./helpers&quot;:1368}],1367:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_schema&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction;function s(t,e){var r,s,l,c,u,f,h,p,d,g,m=e.transform,v=e.transformIndex,y=t.transforms[v].groups,x=o(t.transforms,m);if(!n.isArrayOrTypedArray(y)||0===y.length)return[t];var b=n.filterUnique(y),_=new Array(b.length),w=y.length,T=i.findArrayAttributes(t),k=m.styles||[],M={};for(r=0;r&lt;k.length;r++)M[k[r].target]=k[r].value;m.styles&amp;&amp;(g=n.keyedContainer(m,&quot;styles&quot;,&quot;target&quot;,&quot;value.name&quot;));var A={},S={};for(r=0;r&lt;b.length;r++){A[f=b[r]]=r,S[f]=0,(h=_[r]=n.extendDeepNoArrays({},t))._group=f,h.transforms[v]._indexToPoints={};var E=null;for(g&amp;&amp;(E=g.get(f)),h.name=E||&quot;&quot;===E?E:n.templateString(m.nameformat,{trace:t.name,group:f}),p=h.transforms,h.transforms=[],s=0;s&lt;p.length;s++)h.transforms[s]=n.extendDeepNoArrays({},p[s]);for(s=0;s&lt;T.length;s++)n.nestedProperty(h,T[s]).set([])}for(l=0;l&lt;T.length;l++){for(c=T[l],s=0,d=[];s&lt;b.length;s++)d[s]=n.nestedProperty(_[s],c).get();for(u=n.nestedProperty(t,c).get(),s=0;s&lt;w;s++)d[A[y[s]]].push(u[s])}for(s=0;s&lt;w;s++){(h=_[A[y[s]]]).transforms[v]._indexToPoints[S[y[s]]]=x(s),S[y[s]]++}for(r=0;r&lt;b.length;r++)f=b[r],h=_[r],a.clearExpandedTraceDefaultColors(h),h=n.extendDeepNoArrays(h,M[f]||{});return _}r.moduleType=&quot;transform&quot;,r.name=&quot;groupby&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},groups:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},nameformat:{valType:&quot;string&quot;,editType:&quot;calc&quot;},styles:{_isLinkedToArray:&quot;style&quot;,target:{valType:&quot;string&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:{},editType:&quot;calc&quot;,_compareAsJSON:!0},editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t,e,i){var a,o={};function s(e,i){return n.coerce(t,o,r.attributes,e,i)}if(!s(&quot;enabled&quot;))return o;s(&quot;groups&quot;),s(&quot;nameformat&quot;,i._dataLength&gt;1?&quot;%{group} (%{trace})&quot;:&quot;%{group}&quot;);var l=t.styles,c=o.styles=[];if(l)for(a=0;a&lt;l.length;a++){var u=c[a]={};n.coerce(l[a],c[a],r.attributes.styles,&quot;target&quot;);var f=n.coerce(l[a],c[a],r.attributes.styles,&quot;value&quot;);n.isPlainObject(f)?u.value=n.extendDeep({},f):f&amp;&amp;delete u.value}return o},r.transform=function(t,e){var r,n,i,a=[];for(n=0;n&lt;t.length;n++)for(r=s(t[n],e),i=0;i&lt;r.length;i++)a.push(r[i]);return a}},{&quot;../lib&quot;:778,&quot;../plot_api/plot_schema&quot;:816,&quot;../plots/plots&quot;:891,&quot;./helpers&quot;:1368}],1368:[function(t,e,r){&quot;use strict&quot;;r.pointsAccessorFunction=function(t,e){for(var r,n,i=0;i&lt;t.length&amp;&amp;(r=t[i])!==e;i++)r._indexToPoints&amp;&amp;!1!==r.enabled&amp;&amp;(n=r._indexToPoints);return n?function(t){return n[t]}:function(t){return[t]}}},{}],1369:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/cartesian/axes&quot;),a=t(&quot;./helpers&quot;).pointsAccessorFunction,o=t(&quot;../constants/numerical&quot;).BADNUM;r.moduleType=&quot;transform&quot;,r.name=&quot;sort&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},target:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},order:{valType:&quot;enumerated&quot;,values:[&quot;ascending&quot;,&quot;descending&quot;],dflt:&quot;ascending&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t){var e={};function i(i,a){return n.coerce(t,e,r.attributes,i,a)}return i(&quot;enabled&quot;)&amp;&amp;(i(&quot;target&quot;),i(&quot;order&quot;)),e},r.calcTransform=function(t,e,r){if(r.enabled){var s=n.getTargetArray(e,r);if(s){var l=r.target,c=s.length;e._length&amp;&amp;(c=Math.min(c,e._length));var u,f,h=e._arrayAttrs,p=function(t,e,r,n){var i,a=new Array(n),s=new Array(n);for(i=0;i&lt;n;i++)a[i]={v:e[i],i:i};for(a.sort(function(t,e){switch(t.order){case&quot;ascending&quot;:return function(t,r){var n=e(t.v),i=e(r.v);return n===o?1:i===o?-1:n-i};case&quot;descending&quot;:return function(t,r){var n=e(t.v),i=e(r.v);return n===o?1:i===o?-1:i-n}}}(t,r)),i=0;i&lt;n;i++)s[i]=a[i].i;return s}(r,s,i.getDataToCoordFunc(t,e,l,s),c),d=a(e.transforms,r),g={};for(u=0;u&lt;h.length;u++){var m=n.nestedProperty(e,h[u]),v=m.get(),y=new Array(c);for(f=0;f&lt;c;f++)y[f]=v[p[f]];m.set(y)}for(f=0;f&lt;c;f++)g[f]=d(p[f]);r._indexToPoints=g,e._length=c}}}},{&quot;../constants/numerical&quot;:753,&quot;../lib&quot;:778,&quot;../plots/cartesian/axes&quot;:828,&quot;./helpers&quot;:1368}],1370:[function(t,e,r){&quot;use strict&quot;;r.version=&quot;1.58.4&quot;},{}]},{},[26])(26)}));&lt;/script&gt;                &lt;div id=&quot;52c7a925-95e7-4296-b9dd-15279ef19e5c&quot; class=&quot;plotly-graph-div&quot; style=&quot;height:100%; width:100%;&quot;&gt;&lt;/div&gt;            &lt;script type=&quot;text/javascript&quot;&gt;                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById(&quot;52c7a925-95e7-4296-b9dd-15279ef19e5c&quot;)) {                    Plotly.newPlot(                        &quot;52c7a925-95e7-4296-b9dd-15279ef19e5c&quot;,                        [{&quot;coloraxis&quot;: &quot;coloraxis&quot;, &quot;histfunc&quot;: &quot;avg&quot;, &quot;hovertemplate&quot;: &quot;LONGITUDE=%{x}&lt;br&gt;LATITUDE=%{y}&lt;br&gt;avg of ESTIMATED YEAR INCREASE (C)=%{z}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;name&quot;: &quot;&quot;, &quot;nbinsx&quot;: 72, &quot;nbinsy&quot;: 36, &quot;type&quot;: &quot;histogram2d&quot;, &quot;x&quot;: [-121.3, -121.2167, -121.4, -121.9333, -112.1081, -121.4, -120.6475, 3.8103, 8.8503, 6.095, 6.025, 9.1667, -52.85, 11.9667, 48.228, 116.0, 114.48, 114.95, 91.32, -89.51, 144.283, -101.53, -92.1169, 1.832, -108.7833, -122.3667, 20.85, -112.9667, 31.37, -72.6667, -88.5214, -98.4131, -123.8292, -123.7147, -99.1297, -112.8253, -76.1697, -115.3667, -101.8581, -123.1, -4.567, -4.1, 42.657, -3.93, -3.926, -4.02, -97.2128, -99.7475, -99.85, -99.6822, -81.9647, -106.4278, 18.82, -89.3667, -81.5667, -79.3667, 9.2903, 12.1145, 13.2, -72.97, 43.25, 71.5, -65.85, 18.92, 131.4, 54.47, 54.651, 33.317, 34.133, -99.0631, -66.3667, -68.2592, -110.3167, -89.833, -105.36, -99.933, -40.14, -98.05, -0.2, 90.5, 68.9, 110.375, 27.85, 29.4, -113.4167, -98.0233, 11.0175, 35.08, -118.2, -101.2519, -96.62, -96.685, -96.5161, -84.9333, -176.65, 59.9, -73.1, -76.0667, 57.367, 33.0, 35.4, 35.34, 30.417, 144.6, -115.5833, -96.6692, -127.8667, -87.1814, -77.2344, 38.8, 38.7, 38.75, 25.7, -119.8961, -111.6739, -68.9, 138.5204, 138.6216, 138.6517, 138.6242, 138.6331, 138.5869, 148.0646, 17.52, -83.4269, 45.05, -111.3167, 45.033, -3.3, -3.3, -120.7667, -120.9447, 110.43, 38.283, -66.7978, 39.9, 14.457, -107.9, -88.7, -0.28, -117.0667, -84.0158, -59.367, -84.0794, -89.9161, -81.7, -58.416, -89.65, -54.833, -99.08, -98.9667, -94.2, -89.0644, -110.9297, 30.601, 7.98, 7.967, -9.5667, 56.75, 56.8, 91.25, -121.7667, -121.7667, -95.87, -95.9817, 93.47, -103.7347, -103.7358, 20.17, 0.6, 114.52, 94.883, -124.0578, 17.4697, 78.0333, 43.05, -61.23, 21.38, -87.1667, -102.3, -37.9, -99.38, -112.2667, -113.1875, -66.2222, -66.2167, 138.4, 6.95, 42.5, 72.633, 48.07, 24.017, 24.2206, -104.48, -99.13, 48.762, -66.2642, -157.9333, 14.13, 127.45, 138.233, -81.6958, -82.5667, -41.067, 24.367, -99.8556, 3.533, -0.6, -9.63, 144.0883, -137.4833, -93.6675, -159.7667, 145.9, 34.07, 80.45, 138.15, 139.1, 74.62, -112.86, 68.73, -176.13, 39.6, 39.0, 31.1, 13.25, 17.09, 27.85, 47.7294, 33.88, -89.33, 140.1, 58.183, -14.38, 70.95, 54.117, -135.0, 77.033, 77.067, 77.92, 78.45, 66.833, -6.667, -81.5169, -103.1417, -81.4333, -81.4642, -103.2167, 32.967, 113.267, 76.49, 54.2, 34.1, 31.4, 73.1, 20.767, 57.15, 18.31, 130.199, -18.0794, 92.95, 64.333, 55.6, 74.47, -86.7817, 122.02, -38.42, 24.2642, 24.2817, -122.3167, -115.1667, -105.955, -105.9333, -104.3833, -105.8833, -105.8614, -105.8614, -108.95, -89.1175, -113.5778, -113.4667, 32.0, -83.2167, 81.05, 14.61, 46.583, 154.15, -1.8631, -1.8606, -72.45, 117.8808, -99.3011, -94.3308, -73.7472, -123.1, -123.1167, -84.1489, 117.8022, -73.8092, -84.1167, -84.1944, -80.1994, 8.1167, -124.9333, -124.8167, -124.8833, -124.9833, -103.8667, -88.4811, -80.05, -64.0167, -114.4781, -67.35, -86.1667, -111.1833, -93.3019, 174.77, -92.7867, -92.8667, -104.1017, -88.0569, -98.0083, -84.7736, -113.5833, -104.2647, -78.1664, -85.3333, -79.8333, 150.79, -79.6, -111.95, 8.9792, 9.0381, -106.6167, -106.4878, -106.6156, -106.6939, 146.9534, 146.9509, 146.955, -106.0567, -141.4667, -73.9267, -6.22, 125.0331, -122.4833, -6.216, -123.6167, 13.0519, -80.6592, -112.0575, -112.0856, -122.3167, -123.5903, -117.495, -122.7236, -90.7417, -55.8, 82.767, 38.75, 117.933, 77.8667, 142.1667, 48.55, -106.9328, 0.117, 37.22, -80.45, 37.2167, -62.2833, -126.9333, -62.3333, -62.3333, 8.63, 6.1508, 16.5333, -85.9481, -85.8667, -81.55, 145.7116, -92.4611, -97.7847, -82.6833, -92.4489, -75.9167, -77.0833, -92.2956, 29.949, -92.5586, -95.3942, -77.05, 25.93, -123.2833, -123.1833, -122.0667, 9.8, -76.205, 7.9128, 12.0442, -73.25, -77.7583, -69.943, 51.85, 76.867, 3.25, 3.1, 8.2797, 3.03, 3.04, 3.07, -82.5436, -94.3053, -78.55, -78.2667, -112.1167, -0.558, -0.5, -0.4942, -0.5706, -98.0678, -88.155, -129.5, -0.8481, -98.0247, 133.889, 133.8683, -91.0547, 30.3, 21.2, 26.883, 26.72, -113.1667, 134.4029, -119.9933, -69.025, 81.735, 81.9, -152.6425, -84.8744, -84.73, -78.7497, -85.9, -85.7892, -79.1025, -90.65, -109.1528, -81.3, -81.3167, -100.83, -105.5019, -75.4667, -75.4492, -93.3697, 15.97, -111.7833, -102.8967, -111.7833, -102.8, -111.7833, -115.5181, -92.8022, -119.5944, -120.8333, -120.8667, -62.6, -79.8667, 19.5, -108.9, -99.3667, -84.6492, -64.95, 19.13, 69.6, -92.67, -98.2, 76.9331, -82.5067, -91.9194, 14.67, -2.4544, -2.3567, -72.926, -101.505, -76.2333, -101.65, 13.08, 124.567, 100.4, -122.4833, -122.3167, 41.5, -83.5906, -83.5644, -83.4281, -85.0167, -84.3506, -115.9833, -103.66, -116.7775, -109.1469, -111.7708, -150.9283, -103.7808, -109.1222, -116.7392, -85.3803, -121.7, 74.5, 27.2, -110.0, -109.85, -123.7533, 9.3467, 12.5378, -72.4167, 153.4556, -111.6369, -95.3, 23.2, 96.25, 68.967, -52.2, -92.03, -110.2878, -82.0167, -111.833, -111.7, -110.0167, 88.083, 89.5, -111.0339, -56.1, -122.95, 23.3581, 8.6331, -108.3794, 13.2631, 12.3906, 136.8594, 32.2, 11.3131, -112.4819, -96.0175, -80.0833, -90.1642, -97.55, -98.9714, -91.3045, -90.1464, -78.3694, -78.4667, -78.3203, -78.4833, -67.4, -83.5161, -43.27, -45.93, -57.5, -120.5436, -120.5644, -99.3381, -98.9761, -99.2667, -99.2964, -99.3344, 72.22, 27.033, -92.8417, -112.2667, 18.9, -88.62, -98.6878, -104.3492, -98.7094, 147.4833, 10.8017, 14.04, 14.04, -8.0397, 12.15, -95.2336, -77.9261, -97.7164, 21.07, 20.99, -3.5539, 105.67, 136.4198, -149.1108, 8.1167, 49.485, 55.609, 41.634, 44.117, -3.85, 40.1, 39.7, 47.93, -57.3, 128.883, 12.7, 38.633, 66.88, -50.85, -87.65, 47.17, -116.4619, -101.7089, -88.4539, 43.833, 35.85, -104.43, 76.767, -78.62, 152.7111, -150.5033, 13.28, -157.85, -4.08, 128.17, 128.083, -94.1664, 43.133, 14.52, 61.7, -77.9781, -97.2167, 12.2939, -112.8036, -112.88, -84.2322, -92.3631, -93.65, -93.5656, -93.7742, -93.6217, -89.2122, 131.983, -178.9, -72.5375, -89.2833, -83.1, 32.9167, -103.3222, -22.949, -103.1819, -101.0286, -90.525, -93.4614, -94.36, 35.9833, 16.23, 11.3464, -94.6333, -78.1333, 11.3738, 16.46, 16.4308, 116.07, -125.55, -125.5333, -67.4333, -67.45, 74.797, -74.1333, -104.7333, 38.517, 20.28, 20.283, -112.9569, -122.6136, -98.1989, 177.5667, -117.8425, -94.6342, -94.4383, 47.767, -91.2933, 32.83, 37.3, -117.1333, 22.8, -105.75, -85.5333, -149.905, -149.9847, -150.0278, -149.9664, -149.855, -149.7561, -149.7169, -108.8333, -80.85, -73.8, 125.317, -66.2, -86.5225, -86.3939, 137.1692, 16.1199, 8.6, 144.9281, -82.6606, -87.2747, -94.5167, -94.4386, -94.4853, -82.7097, -115.4522, -149.3397, -108.9408, -85.7164, 83.83, 83.65, 72.333, 128.72, -77.8, -97.9069, -93.2928, -97.9064, -74.7367, 16.1497, -112.2333, -102.5517, -79.5672, -83.8386, -118.6167, -118.55, -112.2833, -83.125, 169.767, -107.3, -109.3292, -7.66, 12.083, -78.0231, -146.228, -105.2853, 13.9931, -75.55, -0.56, -119.4833, -111.9608, -95.4592, -95.4619, -108.1667, -91.5833, -84.9897, -134.5864, -103.4333, -27.23, 70.8, 70.18, -90.8333, -63.98, 136.4333, -79.8667, -96.7, -122.4406, 11.517, -159.5333, -108.7689, 125.65, 109.03, 32.883, 32.98, 32.68, 32.9, -93.5822, 13.6856, 40.417, 7.809, 7.79, 13.0067, -64.8625, -90.7667, -76.4667, -76.5075, -65.5167, -76.4833, -64.7, 9.5067, -89.2344, -131.5786, -134.1003, -134.8333, -85.8333, -85.8556, -83.7444, -83.6933, -83.7108, -64.2, 117.05, 10.5764, -99.8258, -64.2833, -99.89, -81.1178, 36.2, 50.23, 30.8, 47.5, 47.483, -120.7533, -112.1667, -116.7644, -112.5417, -118.4164, -108.5306, -105.8919, -98.0283, -115.5, 1.103, -63.55, -89.1128, -61.9667, -89.15, -112.0, -88.0994, -121.7667, -93.0, -121.7525, 76.9, -95.615, -95.7006, -70.45, -70.4, -64.13, -76.716, 50.32, 49.3, 133.067, -133.3833, -111.3836, 114.4, -129.8, 49.467, -116.673, 68.867, 11.1825, 96.0, 140.767, 7.3, 1.1, -98.3592, -98.2922, -109.2333, -111.55, -111.4814, -110.25, -85.0206, -85.0333, -98.45, 121.633, -81.0833, -78.8369, -171.781, -171.8, -37.81, 143.67, -68.417, 151.9533, -78.65, -88.4378, -76.1167, -121.2811, -94.0281, -82.3389, -78.8275, -78.0833, -76.58, -75.18, -74.72, -75.28, -73.12, 169.67, 169.6, -32.2997, 35.0167, -112.2711, -91.97, -97.95, -37.05, -42.05, 21.35, 44.2, -52.23, -108.5333, -113.0217, 49.4, 49.847, 61.6694, -96.75, -96.8, -96.8047, 102.583, -98.9667, -102.1614, 38.5, 41.138, 142.95, 142.9811, -46.933, 21.4167, -112.5758, -89.4286, -97.0833, -79.8167, -122.8333, -119.25, -78.4167, -81.8739, -92.9186, -90.6264, -124.1086, 6.1958, -103.1667, -81.3508, -104.6575, 153.0078, -98.6117, -109.6192, -113.2989, -77.9822, -37.08, -113.5561, -113.3872, -85.15, -85.0167, 42.7, 48.283, 146.9032, -97.1617, -75.2833, -103.66, -97.0858, -97.2014, -97.0167, -4.1108, -66.6747, -66.7525, -35.41, -77.3, -71.567, -71.6, 13.07, 11.85, 13.16, -54.0, -54.0, -54.0, 20.4831, -96.8253, 128.4517, 40.7331, 130.0831, -70.333, -70.3, -46.1, -109.18, -111.6917, -111.9667, 17.8431, 142.333, -93.0589, 66.833, -91.3444, 139.3357, -81.9167, 13.4367, 17.95, -89.3667, -120.2064, -97.1703, -97.0939, -97.0736, -89.3269, 134.6849, -70.5333, -6.65, -70.6167, 41.1167, -108.8694, 151.6158, 151.6681, 151.6697, 24.63, -98.3486, -97.8, -119.1833, -97.7078, -89.0333, -88.9, -119.2167, -119.1333, -85.1736, 12.0092, -99.7214, -99.9031, 9.9306, 171.5544, -100.1839, -54.0, -76.3667, 8.0719, 9.9125, 9.0831, 36.15, -67.7167, 176.8333, 9.68, 74.9, -101.7333, -101.6333, -120.5333, -93.9, -103.2667, -105.75, -115.9236, -98.8667, -120.3919, -121.4917, 37.983, 93.435, 11.3, -104.3836, -71.95, -94.3833, -101.6914, -80.5667, -67.4667, -115.1853, -96.1542, -109.9, -70.786, -67.928, 41.817, 30.917, -74.6167, 36.683, 36.617, -106.1, 102.783, -94.0667, -94.0667, -71.1667, 19.27, 12.59, 12.64, -97.5, 119.933, 43.783, -0.267, 10.782, 142.367, -71.95, 12.15, -63.1, -14.4, 11.4681, 15.4, 17.37, 17.32, -71.9158, -71.9358, -83.6231, -121.2833, -121.3333, -94.0994, -79.8378, -98.3667, -82.5567, -82.5567, -82.6142, -82.5375, 58.3331, 130.6333, -93.1164, -99.7633, -77.4833, -82.6131, -82.3, -122.7144, -82.35, -90.9161, -85.7789, -90.9678, -77.4344, -90.9189, -96.3811, -99.3742, -80.8, -80.6958, -111.2739, -76.0667, -86.3333, -87.1333, -121.9794, -112.4833, -93.5911, -118.8253, -120.6861, 25.5, 25.5231, 25.5456, 33.9, 10.4367, -1.17, 56.583, 38.917, 38.9, 131.067, -106.8333, 145.1, -106.8381, -106.8683, -100.2333, 14.19, 43.25, -107.2333, 42.717, -75.2128, -75.2014, -112.5556, -105.9667, -105.95, 8.4692, 32.7831, 71.3667, 48.9, 74.9, -123.8333, -96.5319, -123.8825, -123.8167, 132.067, 48.05, 105.18, -6.0442, -57.63, 31.1, -172.5167, 1.12, -13.067, -13.07, 71.633, 33.967, 68.3667, 75.8, -95.1108, -113.2833, -113.5333, -113.3833, -113.2833, 33.4, -95.83, -83.3833, -86.9508, -84.5833, -81.0256, -82.0964, -86.9833, -82.1833, -83.3275, -83.35, -95.7661, 23.7333, 23.7167, 18.317, 18.33, -91.6167, -91.6333, -91.6333, -91.5833, 121.92, -174.2, 151.767, -99.0303, -94.1661, -84.5658, -115.1333, -84.1625, -115.1167, -84.2331, -84.5214, -84.4417, -92.5206, -84.3, -84.3022, -115.2333, -95.0039, -76.7381, -74.4242, -74.5672, -74.5833, -110.95, -111.0, -133.7, -87.5167, -87.4389, -112.8333, -73.8333, -96.14, -96.0667, 14.37, -102.52, -100.43, -100.45, 139.45, -87.1964, 173.1833, -96.2597, -139.03, -139.0, 16.01, -102.2167, -101.0422, 51.9167, -119.5128, -85.5, -121.0839, -76.5447, -85.05, -95.7469, -85.5, -121.0667, -85.4653, -4.5658, 174.8, -75.0833, -94.9222, 12.7156, -2.917, 20.35, 10.8, 10.9431, -112.3964, -81.9633, -82.0386, -91.1358, -69.7972, -91.1342, -107.6211, -89.0, -134.645, 160.73, -119.9833, 9.6681, 70.3, 75.4, 7.4678, -97.9958, -88.3092, -147.7217, -76.7764, -104.75, -76.6592, -122.7686, 8.5389, 7.6833, -97.7333, -90.4333, -77.5333, -112.2656, -117.0675, -98.0847, -118.4914, -97.6983, -97.68, -97.7603, -97.7664, -117.0814, -98.0281, -92.9739, 10.1167, -73.7333, 3.169, 3.55, -93.5, 144.4783, -118.4158, -118.3167, -92.8514, -92.65, -43.41, -115.8, -115.9203, 16.17, 12.6, -3.833, -4.68, -4.6992, -77.7558, -75.7861, -74.9667, -81.5267, 40.17, 38.483, 5.9417, -2.233, 14.57, -74.22, 3.7, 27.85, 131.0583, -64.8667, -80.9833, -103.8, -97.4, 147.3758, -96.65, 26.7, 13.02, -108.0006, -59.883, -59.8, -114.0167, -117.9, -8.4192, -8.3719, 35.9, -79.45, 31.08, 27.817, -91.9533, -91.9167, -113.3719, -126.5333, -125.4667, 14.5, 127.381, 52.65, 105.85, -73.3667, -44.76, -109.28, 26.9167, -65.4667, -65.4667, -99.9, -107.25, -76.9833, 78.567, 15.11, -123.1422, -118.1833, -75.9333, -75.9114, -77.7219, -7.0, -6.8292, 40.98, -60.75, -60.75, 8.2467, 13.1333, 150.7281, 150.7278, -56.0667, -120.4, -113.0167, -106.5008, -113.9497, 115.5394, 68.9, -107.55, -94.7258, 7.0853, -82.9939, 7.9969, 8.3858, 11.2817, 9.7844, 8.5769, 8.1939, 7.6981, 15.9, 10.5714, 9.717, 13.63, 10.083, 11.0817, 10.4467, 11.7267, 7.8725, -108.4167, 10.6581, 11.88, 8.7294, 8.8394, 11.6333, 7.967, 14.7006, 8.7656, 8.1881, 9.5, 12.8756, 8.1828, 8.75, 12.2753, 9.9858, 11.6, 9.1092, 80.767, 11.25, 35.9, -113.1744, -113.2, -113.0833, 113.58, -54.1, -107.6578, 44.43, -71.0, 120.62, 120.72, 120.6, 28.9, 37.417, 73.25, 71.78, -112.1583, -62.167, -80.4, -111.95, -81.2761, -58.167, -114.98, 57.317, 50.65, 23.5, 8.2733, -68.2, -68.1833, -68.15, -68.2, -67.8333, -62.8, -70.5, -56.1833, -105.4767, -96.1833, -105.3394, -116.1667, 110.433, -87.0878, -84.5833, -75.45, -84.6175, 90.017, 89.67, -114.4333, 147.65, 147.5669, 147.6167, 106.6, 10.6056, 23.4, 67.2, 91.467, -72.7394, 74.5, 75.7, 105.53, 19.0167, 96.3667, -76.95, 62.1831, 53.8, 76.267, 82.07, -116.0628, -104.2822, -71.3333, -102.3008, -119.0167, -119.0508, -119.0542, -79.9833, -73.0086, 116.4781, -114.2089, -116.1167, -111.4, -117.8086, -114.2175, -117.8333, -96.0833, -96.0, -104.25, -103.425, 57.417, 32.3, -79.5, 45.39, 103.07, 73.65, 43.15, 86.933, 33.1, -79.55, -58.3, -119.0883, -98.0389, -79.45, -120.6833, -13.05, -99.3, -85.8506, -79.3167, -92.3906, -76.3333, -85.8506, -109.5167, -91.5667, -124.0333, -118.4042, -107.85, -120.6972, 121.57, 7.53, 125.6589, 127.9867, 86.33, 86.6, 75.0831, 19.785, 27.926, 170.97, 68.75, 123.8653, -108.1439, 144.2, 143.7911, -117.2167, 14.12, -124.1667, 141.8114, -106.16, 153.5585, -99.9764, -73.85, -7.31, -6.1534, -8.1789, -83.2667, -72.7836, -71.7, -103.7403, 143.561, 19.9, -64.8167, -76.6167, -76.6833, 9.52, 58.35, -7.97, 20.67, -81.0306, 10.9217, 25.7, -125.1167, -108.48, 169.55, 24.983, 21.0331, -81.85, -94.2167, -77.85, -77.8833, 56.378, 54.8333, -106.2667, 27.97, 107.6, -124.4019, -115.5667, -115.5667, -115.55, -115.45, 77.583, 77.633, 22.83, 100.5, 100.567, -68.8, -62.6833, -102.2833, -121.3861, -68.8186, 18.57, 18.9, 18.519, 100.617, 17.217, -16.45, -16.652, -16.6333, -16.79, -87.3622, -87.3572, -120.2833, 150.9864, -81.8742, -115.2333, 70.6, -78.42, 11.82, 114.383, 108.1167, 115.57, 107.13, 132.18, 99.22, 19.1, 78.3667, -89.7269, 149.0654, -88.4833, -71.1, 149.8117, -134.8333, 26.0, -39.3, -109.3719, 4.017, -158.0667, 31.02, -83.8819, 145.2883, 2.2, 2.1253, 2.0697, -62.92, 42.28, -85.4667, -85.3847, 18.5403, -88.9961, -96.6369, 79.4, 14.3, 109.6331, 109.53, -70.221, -121.4819, 90.367, 16.78, 12.85, 102.233, 102.6, 17.88, -121.5167, -113.1333, -159.7833, -75.3333, -77.8, 27.65, -122.7022, -69.1467, 83.5167, -81.185, -120.2169, -91.5, -101.1578, -96.1664, -106.9167, -81.2422, -112.3, -113.2167, -69.359, -43.16, 150.6096, -79.2333, -74.1833, -76.4667, -74.1, -69.5167, -73.65, -75.9833, -75.1667, -67.9, -73.9333, -79.1, -66.3167, -77.65, -45.267, -40.59, -45.0, -119.9389, -86.1247, -116.6667, -72.0275, -72.5794, -114.45, -79.6833, -120.1167, -77.3333, -67.9333, -76.0667, -71.25, -79.55, -79.6833, -88.1639, -91.8333, -156.6111, 133.8901, -60.25, 115.3931, 115.4056, -156.7814, 78.417, 69.517, 9.4306, -103.4, -117.0219, -117.0333, -116.7858, -143.6333, 12.733, 32.3, -96.0117, -96.0261, -98.5494, -111.6497, -41.302, -106.25, -81.8433, -79.7714, 13.617, 106.067, 94.4, 113.283, -93.9667, -68.25, 69.717, 121.98, 121.967, 7.5831, -62.88, -59.683, 164.1, -34.617, -56.683, -110.4333, -56.983, -58.633, -56.717, -44.733, -67.133, 28.92, 69.85, -108.035, -112.5167, 44.0, -118.9792, 47.88, -112.4667, -112.4667, -112.2, -5.515, -14.22, 8.72, 32.467, 12.04, -91.9144, -97.2564, -64.8667, -64.8333, 121.02, 129.483, 104.117, 99.1, -78.1692, 9.8, 131.0252, -106.3167, 150.1872, -81.5389, -89.9806, -91.7811, -91.6386, -91.7944, -106.3775, -77.3478, -69.8564, -65.65, -65.75, 149.5559, 149.654, 26.82, 149.55, -108.0167, -16.7, -12.43, 41.117, 6.183, 6.3167, -91.2069, -91.1469, -107.75, 14.37, 73.15, -119.5083, 81.7, -94.8981, -108.3333, -85.2667, -85.2511, -122.5286, -55.6, -107.2667, -116.8917, -116.9333, 41.6, 126.5, -94.5869, -94.5667, -94.6, -94.6172, -49.117, 24.217, 122.617, -82.3756, -82.3878, -83.3303, -93.1333, 98.083, 84.15, 112.367, 107.1, 100.683, 104.5, 112.117, 96.4, -79.3683, -76.8161, 40.2, -90.8167, -115.2167, 26.5, 11.6, 90.53, -94.9908, -116.5594, -83.8667, -95.975, -55.8, -55.8167, -87.7853, -89.3333, -89.2889, -89.5989, 106.77, -104.0158, -94.0475, -109.6333, -116.7583, -112.9833, -121.4333, -89.3783, -87.95, -96.7167, -115.55, -109.5667, -107.5167, -116.15, -113.9333, -115.45, -101.4767, -120.3133, -76.4983, -80.0833, -105.65, -111.3922, -104.4275, -86.0508, -116.0833, -94.9519, -118.0517, -104.035, -107.0, -112.2667, -112.2667, -110.8292, -116.9667, -107.0667, -87.2119, -96.75, -79.3833, -96.75, -79.4, -79.4, -121.3833, -116.75, -83.7, -83.7161, -116.7189, -70.7833, -70.7667, -76.6333, -80.7167, -76.6606, -76.9314, 22.583, -80.6956, -116.9814, -116.95, -94.0997, -88.9186, -116.9667, -94.2928, -71.2, -71.1667, -96.2167, -96.4667, 2.1281, 4.95, -100.5308, -112.65, -119.05, -108.1, -119.4, -119.4, -122.8203, -120.325, -112.4814, -99.8278, -106.5167, -111.7831, -111.35, -140.8667, -113.9422, -86.9117, -80.3517, -88.8478, -111.55, -111.0667, -131.4683, -109.2, -62.3333, -114.1833, -121.25, -118.2167, -146.5167, -89.35, -72.4333, -2.27, -111.0461, -111.0467, -81.1231, -81.1939, 17.9164, -100.9333, 8.8331, -79.5233, -86.5, -78.5, -94.7244, -71.25, -71.2833, -110.9, -110.9075, -86.5708, -0.483, -71.2894, -73.7167, 9.6267, 139.4714, -67.6667, -88.8833, 146.7132, -107.3167, -119.1167, -81.8736, -91.0561, 152.9619, 8.9689, 34.783, 34.633, -79.7833, -97.7061, -97.6667, -92.4, 149.8191, 149.838, 78.47, 32.3, 14.8, 105.867, 109.1, 116.283, 116.5, 34.9, 35.47, -113.35, 30.0, 3.1239, 34.98, -7.8667, 90.917, 5.0, 5.1, 69.2, 21.1333, 74.817, 27.95, -92.1833, 138.6147, -72.3483, -99.7508, -48.467, -106.7667, 45.2, -68.9892, 30.03, -103.1833, 74.617, -87.8547, 20.2831, 20.4667, -38.8, -76.5847, -79.9331, -122.0386, -9.5467, 150.9291, -58.92, -126.6833, -126.6, -126.8167, -57.583, -65.8333, -83.7747, -77.7833, 1.179, -111.8214, -74.8431, -78.7, -97.6375, -77.4, -77.35, -89.8467, -90.423, -95.9167, -103.8511, -103.9339, -103.95, -80.6711, -55.3833, -86.8819, -92.2764, 152.8979, -122.4833, -122.4833, -122.5114, -122.5372, -58.883, -112.15, -72.45, -76.7667, 12.2451, -96.2167, -82.9178, -117.5917, -131.5833, -104.0936, -62.6, 8.17, -93.55, -116.8833, -10.0, 30.1, 128.467, -98.1125, -89.0311, 37.783, -43.9333, -43.917, -54.95, -97.4833, -76.9314, -76.9333, -76.9333, -76.9333, -76.95, -76.95, -151.0333, -75.0833, -101.2667, -75.0836, 32.95, 70.0294, -90.4919, -8.0, -94.8297, -94.9281, 145.9703, -67.1133, -98.4161, -97.4439, -112.9, 117.8603, -121.285, 144.3266, 144.2825, 7.5892, -121.2103, -121.5683, 20.08, 117.367, 20.27, 102.33, 102.2, -82.9667, -75.294, -2.167, -6.4, -1.35, 1.4, -70.033, -101.5325, -4.9858, -79.6822, -73.2167, -73.2469, 4.9353, 8.6283, -110.3, -80.55, -95.6167, -102.9833, -110.2403, -76.3833, -149.1542, -81.1, -150.9858, -91.1125, -92.6006, -71.8833, -94.215, -88.9203, -76.3422, -93.6619, -71.9486, -118.4778, -119.5, -86.4267, -83.8167, -51.51, 1.4333, -82.5967, 14.017, 123.783, -120.9336, -7.8833, 34.887, -122.1, -122.0797, -122.17, -111.95, -111.9167, -116.475, -116.5875, 45.03, 15.78, 36.783, -84.2908, -97.0333, -97.0167, 24.95, 28.983, 65.05, 172.7, 14.69, 9.7, 12.7889, 9.933, 5.2264, 5.3331, 5.317, -114.7278, -89.5475, 6.05, 12.4167, 11.4317, 88.28, 179.32, -143.2833, 10.0092, -122.2606, -78.2167, 4.9789, 29.0344, 69.517, -82.9167, -71.1853, 13.5039, 13.3017, 13.7328, -71.1786, 13.4039, -88.9411, -64.85, -111.385, 7.4167, -106.55, -106.8325, 11.7114, -84.93, -85.6572, 7.0681, 7.4639, 145.8126, 140.6, -122.2333, -91.1667, -77.9833, -114.65, -68.6167, -73.1833, -105.7833, -105.7833, 13.733, -65.0667, 14.7475, 6.683, -76.25, -64.7333, -117.75, -117.6833, 5.98, -87.0167, -87.0078, -99.0583, -100.3108, 14.07, -110.5411, 29.45, -72.4333, -94.0269, -161.8292, 28.336, -71.6833, -71.6575, -75.3667, -86.3239, -64.7944, 46.03, -120.35, -151.5089, 34.7994, 142.4202, -118.1522, -101.7906, -86.1311, 116.9247, -70.8372, -118.4122, -70.9175, -81.6283, 31.9, 31.7, 36.7, 49.4, 96.97, 77.35, 85.833, 69.667, 99.0167, 136.117, 136.1, 23.1, 23.167, 0.307, -1.53, -68.7, -68.6667, 148.3036, -108.4, -120.3006, 116.1364, -116.63, -105.4855, -2.9, 121.7803, 8.5278, 19.0, -92.9433, -89.4692, 5.4489, 27.3, -123.35, -114.0331, -93.55, -107.9833, -106.4, -116.3333, -107.8886, -77.2578, 76.98, -123.2078, -123.2333, -87.7503, -116.9169, -116.9744, -115.7167, -103.9583, -101.5667, -89.9333, -79.6667, -115.3167, -123.0667, -119.2419, -117.1167, -115.8, -80.9958, -145.7214, -121.1167, -93.7994, -90.9592, -112.35, -93.9983, -107.2, -123.6358, -95.4728, -107.0089, -106.2006, -109.2783, -101.4625, -119.95, -78.4356, -74.8667, -85.3625, -112.3667, -117.6919, -110.1253, -110.1075, -117.0131, -85.4822, -122.85, -152.297, -122.57, -88.0908, -110.0608, -82.6333, -109.2667, -105.8167, -111.3242, -84.6542, -101.4536, -102.1467, -91.0181, -111.2, -82.7711, -82.7333, -89.5333, -121.785, -121.7803, -109.9503, -89.9, -89.8667, -89.9, -112.8, -111.6639, 15.8606, 105.233, 84.95, 73.3, 134.267, 30.117, -2.8, -2.9056, 30.0, 103.6, 13.6, -122.2833, -97.4472, -118.2333, -93.575, -108.5422, -108.5706, -108.4811, -106.7319, 12.917, 150.5164, -89.0008, -88.9167, 97.705, 110.6, -110.2, 27.333, 150.5715, -75.985, -75.9167, -106.3494, -112.15, -79.4, 40.5, -101.2667, 113.033, 113.0, 22.78, 87.27, 142.9156, -144.3636, -72.1233, -100.9167, -80.8, -91.5, -111.5333, 139.3472, 139.3486, -38.05, -94.9, -61.1333, -98.6289, 38.0, 59.266, -86.8333, -83.1833, -86.745, -86.8333, -106.5125, 5.25, 132.95, -7.8764, 55.533, -101.05, 10.0492, 24.7667, -11.62, -11.617, -109.9167, -109.9289, -109.895, -99.3667, 9.4892, -82.1, 58.85, 42.621, 74.58, -97.8031, -105.7833, -71.5667, -80.2392, -118.3581, 27.28, 5.72, -100.7603, -100.8, -100.7969, -100.7592, -102.465, -99.235, -107.35, 16.55, 16.54, -15.58, -15.654, -95.6333, -95.7, -114.0, 24.5, 11.48, 6.5667, 42.1, 21.37, -108.5086, -104.4042, -79.25, 125.183, -95.8833, 15.7, 9.84, 9.8, 7.4433, 15.74, 18.2667, 18.27, 19.0167, 13.63, 12.94, 7.2762, 13.07, 18.0712, 10.6864, 16.5797, 21.5792, 145.4306, 145.4672, -81.2167, -123.0706, -94.5175, -111.7167, -112.3531, -112.4369, -3.03, -118.2603, -80.4167, -80.4133, -78.8333, -77.95, -110.5622, -81.3278, -81.3292, -109.8, -71.7167, -76.0, -76.1333, -97.2764, -97.3, -97.2544, -111.1167, -107.6869, -107.6872, -112.2394, -125.1333, -89.0342, -121.8844, -58.3667, -111.5833, -104.8017, -109.9506, -124.1031, -105.2842, -107.7375, -82.3594, -113.4333, 132.143, -90.835, -109.7517, -108.7833, -112.9539, -113.7567, -121.8133, 66.967, -82.3, 1.3781, 127.5, 15.75, -82.8333, -122.7928, -96.4025, -96.1406, -91.23, -114.4333, -79.15, -83.9444, 23.933, -84.5553, -93.1947, -101.1333, -120.4, -105.5717, -97.67, -136.7667, -75.3333, -98.4286, -57.2167, -57.1833, -81.1161, -109.4847, -88.9667, 15.92, 7.3056, -121.8667, -85.2733, -120.6833, -120.6667, -110.6, -83.0, -83.8706, -66.55, -115.0131, -119.0667, -71.5667, -71.5833, 4.55, 26.3, 12.05, 12.08, -113.5, -113.05, -91.4864, -77.2167, -71.5833, -92.4394, -107.9603, -104.895, -85.9625, -89.0864, -86.5214, -86.6167, -89.0, -76.4217, -77.3639, -85.05, -112.8639, -81.7025, -84.9886, -109.1667, -81.2264, -83.77, -81.2667, -81.2078, -80.8831, -108.0333, -119.1217, -120.7103, -117.9336, -120.3375, -115.5444, -71.1136, -116.2167, -119.9167, -76.0275, -107.1678, -118.5, -93.6506, -106.7792, -84.3167, -123.1875, -121.7189, -84.2833, -111.1922, -119.2833, -119.2833, -119.2833, -80.1167, -109.5575, -85.1667, -85.1547, -85.1667, -106.9456, -81.3833, -114.5972, -89.9044, -89.95, -89.8308, -114.7142, -3.3667, -121.1, -120.5792, -11.77, -119.6933, -119.2778, -120.6833, -128.5167, -54.85, -40.27, -60.65, -60.7, -116.9333, 9.3842, -4.331, -4.3, 29.183, 32.15, -130.25, -120.0936, -91.52, 13.313, -92.88, 6.6114, 7.2706, 114.2331, -123.0747, 21.64, -119.0142, -75.55, 15.1, 14.4667, 14.3589, -110.1, 14.367, 27.42, 22.22, -98.7353, -78.8, -89.8567, -121.0831, 67.45, 35.3, -101.3833, -0.6758, 12.1, 147.2239, 37.35, 140.47, 106.933, 106.75, -74.07, -74.15, 89.583, 123.97, 89.367, 97.45, 40.567, -116.1, -76.35, 2.067, 13.9, 11.3681, 35.533, -116.2022, -116.2406, -102.4806, -116.0542, -100.05, -100.0833, 10.683, 57.308, -14.25, 9.7356, 17.04, 41.833, 15.82, 72.667, -15.483, 28.617, -78.2064, -93.3911, -61.067, -88.9892, 12.55, 14.05, 147.4803, 44.55, 11.3458, 34.1, -89.82, 84.4, 93.133, 74.633, 156.3, 105.42, 108.58, 56.021, 137.53, 11.2, 31.6, -23.25, 31.1, 11.33, 149.2336, 149.2379, 72.8167, 72.85, 128.8667, -45.36, -50.43, -43.417, -44.11, -109.1833, -114.5667, -91.7667, -64.067, -65.4833, -53.1167, -93.03, -106.6833, -2.783, -110.4358, 147.0, -98.9508, -107.5833, -96.1661, -107.8989, 15.88, -85.6833, -130.6333, -130.6333, -117.0333, -97.6528, -71.05, -71.0167, -116.3103, -116.3361, -82.1167, -94.8958, -121.9519, -102.1192, 7.1475, 7.2, -72.2667, -12.5, -67.5833, -87.8125, -81.6667, -93.8906, -88.5622, -83.7706, -93.9258, -93.9167, -93.9667, -93.895, -81.6442, -77.65, -74.3961, -92.7603, -87.2736, -75.3697, -123.3486, -7.7308, -114.7167, 148.7158, 143.7229, -89.4075, -154.565, 119.9078, -102.9622, 90.0167, 27.8, 12.95, -151.75, -151.75, -0.7, -63.02, -79.9167, -72.9333, -111.0456, -63.2167, 0.95, 4.767, -101.4542, -101.4, -101.395, 13.8, -67.1294, 28.5, 16.2, 6.6728, 15.43, 15.5078, 14.76, 27.2, -2.92, -2.933, -116.4036, -116.35, 136.3041, 13.85, 30.967, 116.5167, 49.18, 9.42, -90.6775, -1.75, 10.0333, 106.5, -106.8908, 17.43, 17.4, 17.63, -120.8833, -114.1833, -78.0981, -121.4333, -71.0667, -71.0106, -116.75, -95.8722, -87.453, 24.833, 26.5, -122.2167, 147.0061, 35.85, 26.67, -100.4525, 145.9667, -55.35, -5.03, 15.633, 18.27, 7.717, -75.5833, -7.5, 3.883, -111.42, -105.2667, -112.1136, -105.5408, -114.8464, -122.0031, -111.3, -109.6903, 139.9039, -1.6, 1.6, -117.3544, -111.8903, 15.58, 2.3667, 6.77, 145.9521, 145.9358, -118.2, -1.843, -114.0242, 16.72, -14.68, 1.463, 4.206, -102.2464, -114.0167, -113.45, 148.2152, 148.25, -2.905, -109.4917, -97.8472, -96.6311, -88.9889, -91.1711, -86.2325, -86.4239, -83.6111, -80.7167, -103.4061, -78.6667, -120.6556, -118.45, 150.4019, 150.4, -121.45, -111.45, -111.3833, -115.0667, -115.0667, 115.767, -102.95, -110.25, -112.0167, -92.7164, -97.5639, -77.3333, -107.7089, -105.0167, -77.2, -84.9139, -84.8, -108.1633, -102.2564, 26.1, -110.8833, -111.155, -111.1608, -111.0453, 34.0, 30.0, -116.69, -100.4144, -100.4519, -111.9333, -82.5014, -82.55, -1.7723, -85.1517, -78.7144, -78.65, -79.6, -78.6403, -79.6167, -120.8031, 130.8092, -105.9483, -99.3492, -111.3333, -135.7833, -3.3958, -46.9333, -6.7331, 30.3, 91.12, 149.7835, 149.799, -94.2086, -94.1833, -94.1308, -94.1272, -122.8167, 17.7397, -79.7667, -79.7, 7.9731, -53.9667, -120.0833, -106.2314, -86.1161, -79.6167, -99.95, -99.9833, 5.1333, 20.48, -79.2333, -103.8833, -93.1969, -80.2667, -80.2333, -86.2667, -104.3828, -74.2453, -47.933, -47.933, -83.71, -69.812, 7.86, 17.2, 129.333, 101.75, -104.7167, -72.5667, 12.88, 10.6, 10.556, 44.03, -103.0072, -110.3517, -5.117, -115.5581, -118.8803, -122.5942, -95.5667, -95.2917, -106.4472, 15.25, -82.2928, -98.9017, -106.0431, -97.6939, 15.27, 18.0597, -105.2992, 11.99, 60.35, -88.3769, 9.73, -3.0, -100.9408, 8.7992, 8.583, -122.6828, 9.167, -78.2886, -83.7397, -96.3972, 11.5, -113.2167, -86.7786, -119.7669, 10.1, -4.16, 23.6831, -114.4833, -114.4333, -82.7358, -50.48, -64.15, 146.8651, -99.8628, -119.8, -101.4467, -87.0486, -87.0517, -87.055, 21.98, -134.14, 151.745, -72.3069, -97.7761, -119.2286, -87.7547, -73.2, -103.1039, -103.3678, -119.2892, -85.8008, -119.2167, -73.1289, -73.08, -108.9092, -75.2, 116.1311, 116.1375, -75.6167, -70.9572, -97.5017, -64.55, -67.8442, -120.8, -70.7467, -0.167, 147.3869, -66.35, 149.8003, -104.3267, -112.0333, -112.5436, -112.0436, 146.9614, -97.3, -111.6167, -104.8361, -77.0069, 145.0254, -81.07, -113.7167, -112.0622, -112.062, -88.0803, 8.6506, -91.8625, -113.3847, 17.9331, -91.2153, -122.1178, 153.0389, 153.1142, 153.1292, 153.0306, -116.25, -82.1667, -71.3, -73.1167, -82.4044, -2.6, -96.3917, -123.2167, -88.18, -93.8014, -97.75, -108.3483, 11.65, 34.2297, 14.5, -94.2833, -105.4072, -108.8833, -102.5667, -102.6833, -102.5333, -149.7667, -102.9014, 153.4333, -97.4667, -101.6833, 10.62, -113.8167, -77.9333, -71.005, -75.7, -75.75, -75.6667, -105.83, -89.3867, 25.15, 154.27, -94.7381, -99.675, -94.7, -99.6333, -94.7372, 141.4694, 141.4676, 141.5333, 141.593, 28.5, 8.9567, -72.5667, -71.95, 12.3, 12.2181, -94.0167, -100.2494, 146.4931, -73.8494, 4.9367, -93.0594, -88.1775, 147.9333, -79.0975, -90.4581, -124.2878, -96.7686, -124.2453, 152.85, -81.673, -106.2333, -78.9517, -88.6531, -111.85, -111.9, -82.3658, -82.4544, -111.9, -111.85, -122.1447, -122.15, -111.7833, 117.0072, -85.0128, -79.0833, -79.1, -79.0833, 122.2353, 122.25, -120.6, 10.4553, 16.3097, -111.4667, -102.2681, -113.0108, -113.0133, -100.6292, -116.8981, -53.1167, -88.9583, -97.5039, -97.4186, -89.2586, -80.4833, -108.9172, -96.8283, -120.2486, -94.3417, -98.9456, -110.5833, -118.6889, -81.55, -83.9167, 7.1156, -110.2944, -117.8667, -88.2167, -91.5919, -106.5333, -116.1333, -115.8017, 114.928, 135.945, -92.5336, -81.5022, -93.1331, -81.4597, -81.4667, -81.3908, -69.9333, -122.8494, -91.2711, -49.0, 4.533, -84.5272, -112.1456, -112.1689, -112.1722, -112.1833, -109.2372, 101.1833, 122.772, 48.367, -79.6817, -56.8667, -56.8333, 7.0631, 7.9989, 9.9367, -109.5967, -112.5828, -80.1336, -122.6553, -80.22, -83.4706, -105.2969, -122.5633, -75.4167, -122.0036, -106.1167, -117.5333, -112.1997, -75.2044, -111.4333, -111.6914, -120.0975, -64.7167, -64.7667, 26.0831, -82.9697, 19.0206, 19.183, -4.5458, 44.1, -90.8467, 106.57, -103.95, -84.5203, -106.1275, -58.483, -111.9167, -78.8833, -78.7369, -106.6992, -103.3017, -99.6411, -93.1067, -93.84, -99.64, -106.8, -103.5464, -109.1675, -119.79, -116.2667, -106.7211, -121.0833, -108.4333, -108.4167, -106.5833, -105.3833, 31.583, 26.7, 27.48, -71.9075, -116.7, 120.7, 121.917, 52.8, 52.45, -111.4167, 64.617, -114.7667, 8.1806, -114.7453, 10.455, 162.3, -173.2333, 106.8, 41.533, 29.32, 28.9, 101.3, 31.817, 28.617, 28.617, 151.4667, 103.55, 91.6, 119.7436, -110.7203, -114.5686, -121.4833, -73.5086, 147.3611, -112.7056, -120.1139, -127.95, -114.4847, 134.3414, -121.3, -121.3333, 115.6447, 115.63, -117.1667, 152.3235, 152.3467, 151.0757, 145.0453, -114.1256, -91.1939, -92.1786, -122.8667, -122.8667, 55.783, 45.58, -89.5158, -118.3575, -118.3481, 147.4075, 30.3, 17.86, 27.4833, -57.6167, -57.6167, -57.6167, 26.33, -107.5217, -107.5333, -107.5347, -80.4333, -84.7167, -98.8, -3.6325, 8.8156, 26.97, -55.1667, -81.3358, -78.8, 139.5356, 139.5475, -115.8, -79.5667, -97.3444, -113.7833, -113.8028, -113.7661, -122.35, -95.7361, -102.2608, -78.9, -74.8667, -72.9319, -88.2544, -79.8, -73.1833, -91.1164, -79.4769, -102.2842, -79.4481, -73.15, -91.1253, -79.8, -79.8333, -122.9333, -122.9167, -98.2339, -88.7, -98.2353, -121.6547, -97.2692, 145.9431, -82.2692, -116.6339, -117.8525, -125.7667, -125.8, -125.9667, -118.9564, -87.2831, -119.05, -77.8667, -121.9167, -123.8428, -109.45, -57.3333, -122.8833, 148.5984, -109.2756, -109.6667, -110.3708, -107.6, -111.5333, -89.3833, -98.3036, 29.067, -80.4067, -83.5919, 136.033, -139.05, -99.1433, -71.4833, 129.033, -106.9597, -113.8833, -113.9167, 50.835, 50.85, -102.0797, -103.8769, -82.0894, 146.8983, -82.1917, 9.9, 115.3194, 115.4008, 115.3456, 151.7642, 69.567, 24.78, -5.0639, 28.25, 31.333, -94.3333, -79.9, 146.2808, -53.3167, -85.55, -79.9164, -94.405, -99.2706, -106.95, -98.8511, -114.8839, -90.5217, -100.5847, -112.5006, -109.2, 18.53, -119.47, -1.9131, 47.12, 26.85, 62.467, 52.217, -97.0031, -104.1275, 7.8, 7.8117, 64.367, -85.1256, -85.15, -119.4, -119.5333, -83.9319, -92.64, -109.0667, 153.6358, 153.6361, -83.7453, 131.3, 113.517, -56.367, -107.3078, 120.95, 12.2, -116.0572, -115.625, -105.7089, -121.05, -92.0064, -9.4, -77.73, -84.57, -68.2833, -42.02, -75.6, -84.95, -70.97, -109.9, 148.3842, 148.3779, -69.8833, -117.2333, -39.333, -82.35, -78.3158, -57.683, -6.3392, -6.3667, -121.4167, -80.6803, -119.9817, -94.1164, -95.9219, -112.46, -100.0, -79.8567, -85.3967, -78.3833, -107.75, -6.2567, -80.9981, -110.5167, -109.73, -82.6256, -82.6333, -42.6167, 124.63, 55.4, 9.05, -66.0333, -90.1942, -90.1572, -92.25, -115.1736, -79.47, -79.27, 145.7, 145.7458, -85.7167, 145.7833, -81.1572, -74.0167, 31.6, -84.2175, -89.1856, -74.0331, -81.1667, 31.4, 31.29, 31.25, -78.52, 103.6, 8.32, -67.417, -1.2931, -1.3044, 121.18, 27.3331, -120.3114, -121.8439, 121.47, 124.6, 88.333, 88.45, -46.38, -132.45, -116.6833, -113.6333, -81.5833, -81.6, -74.2831, -79.95, -91.5028, -86.7456, -115.4644, -114.1, -114.0167, -114.0167, -114.3667, -87.25, -89.3158, -84.9667, -82.5883, -87.2669, -92.3486, -92.1636, -114.5264, -92.5545, -118.6833, -121.5597, -92.4833, 140.2432, -122.6014, -76.383, -76.4, -123.1167, -122.8045, -122.7958, -113.7128, -77.6833, -99.9, -100.075, -103.66, -75.05, -74.9506, -98.3539, -113.1833, -112.6667, -114.7275, -113.8667, 16.8, 153.15, -88.45, -113.3333, -123.7294, 19.767, -3.77, -77.51, -77.85, -82.65, -65.22, -99.3464, -119.0833, -115.35, -50.13, 151.865, -78.2167, -5.3167, -81.5794, -100.1433, -71.1167, -116.6753, -93.1264, -105.1333, -105.1333, -85.1833, -80.3167, -81.5833, -76.0667, -88.0828, -75.1167, -75.8417, -92.7667, -92.8236, -87.3167, -87.3167, -80.6564, 150.689, -88.1686, 28.7, -106.55, 8.669, -93.3333, -96.97, -103.4428, -100.4667, -111.4, -113.9167, -88.35, -88.35, -116.4631, 101.38, -49.5, -84.2036, -84.2364, -121.9667, -72.512, -63.567, 138.1214, -103.85, 147.4258, -90.0667, -96.4092, -78.5, -85.3667, 151.5, -66.6667, -66.6833, 150.8167, -149.7778, -107.9, 169.167, -125.3, -125.2667, -125.3167, -125.2333, -90.55, 143.145, 11.7469, -47.133, -35.883, -35.53, -116.4728, -86.15, 14.65, -41.33, -45.6, -51.2, -40.38, -102.555, -51.05, 8.803, -54.617, -7.0, -52.367, -114.6833, -71.6333, -121.05, -121.05, -120.2342, -118.4217, -81.9833, -94.3, -107.5528, -103.9744, -103.9917, -84.2833, -158.2236, -85.6561, -109.4833, -84.0975, -95.1817, -120.8433, -117.35, -77.9461, -93.2, -76.8667, -74.2, -100.0097, -112.8167, -112.8, -112.8, -89.7333, -79.4167, -79.4406, -99.7008, -100.3883, 26.427, -115.8167, -80.6256, -77.2808, -78.933, -52.27, -124.0333, -104.78, -38.95, 149.2014, 149.1167, 149.1, -79.5833, -96.2697, -120.8678, -86.883, -91.05, -104.6822, -118.0833, 15.5, -161.9167, -82.6986, -108.2667, -99.1831, -78.1833, -110.5294, -76.2, -93.0667, -79.2386, -91.7711, -80.7667, 116.833, 33.617, -86.7072, -147.5147, -123.8853, -102.0333, -104.0658, -51.144, -74.3539, -105.2256, -65.8939, 148.6619, -67.4667, 151.1134, -117.9667, -96.28, -98.59, -76.8464, -96.5917, -76.8667, -82.85, -90.0361, -75.1097, -171.7167, -91.5158, -81.3833, -148.895, -101.9264, -110.5333, -109.8214, -109.7597, -118.95, -115.2469, -122.1667, -98.1967, -121.0886, -109.5394, -111.7, -111.7333, -133.6789, 123.9, -103.75, 106.25, -41.9, 18.5, 20.017, -125.2167, 166.43, -124.5667, 136.5959, 136.5938, 147.1444, 147.1453, 8.167, 151.2333, -75.9269, 147.0167, -70.0253, 17.85, -134.1333, 136.7, 131.7667, -76.5333, -76.5333, -76.5333, -76.5333, -61.3833, -61.6167, 145.3106, -80.1567, -89.5333, -89.5706, 144.69, -58.45, -75.6219, -76.0, 29.55, -146.65, -66.8167, -69.55, 139.7164, -64.1667, 109.75, -80.5667, 139.917, -61.4833, -124.8667, 115.1358, 122.9278, -166.1167, -166.1333, -74.9358, 8.167, -63.5833, 153.4661, -125.2, 115.0189, 141.5437, 141.5419, -162.15, -162.0667, 140.6725, 143.5128, 15.283, -124.7167, -107.8167, -57.7, 169.75, -53.0833, -166.05, -166.0333, 162.967, -65.6167, -164.9333, 144.8858, -128.4333, -128.45, 145.17, -5.9, -136.6333, 22.15, -144.6, 24.833, -131.0167, -131.0167, 32.4, 18.48, 18.602, 155.4, -76.3333, -60.0667, 138.1327, -5.0, -116.92, -49.55, -105.5947, -79.109, -55.083, -80.616, -55.2, -81.254, -65.724, 145.7497, -111.2622, 122.75, -65.6833, -93.8019, -105.11, 9.72, 9.5167, 8.47, 9.6331, -52.95, 14.3, -103.6783, -82.1833, -79.828, -103.9936, -103.95, -103.9667, -97.77, 3.133, 5.933, -66.75, -66.65, -66.7333, 9.35, -64.3167, -64.2, 0.07, -72.5333, -74.574, -65.3167, -65.3167, 9.167, -71.3, -70.5333, 104.75, -66.4, -16.746, -70.7833, 147.8022, 147.7167, -61.133, -66.9, -43.333, 16.5, -85.8333, 22.25, -57.2167, -42.15, -39.25, -99.35, -99.35, -89.1658, -89.2497, -43.0, 2.31, 149.1333, -134.7, 68.0, -3.1873, -3.35, -82.9, -113.25, -113.2833, -111.9519, 146.0197, -111.9019, -59.62, -119.4667, -85.8333, -68.0172, -147.5003, -62.6833, 27.38, -76.2, -89.8703, -116.3175, -77.2167, -2.95, -77.1894, -93.1011, -104.2225, -104.4433, -104.2581, -117.2794, 12.617, -106.5667, -82.9833, -89.3667, -102.2667, -104.3089, -89.3658, -136.3, -136.2, -98.15, -54.2667, -98.0333, -73.6833, -86.0586, -73.655, -121.7244, -119.0833, -88.1805, -42.6, 115.8869, 22.0, 113.67, 113.65, -125.0, 122.9753, -98.5794, -3.6331, -114.65, -81.8, -47.467, 30.12, -80.2742, -105.8667, -83.3919, -82.2194, -104.3789, -121.5825, -109.0469, -0.45, -84.6667, -56.031, -73.063, -99.1294, -99.1211, -66.917, -105.8964, -119.7728, -99.8733, -94.85, -85.0806, -93.4886, -85.1456, -111.2833, -110.28, -91.1181, 66.017, -101.5742, -119.7678, -121.9733, -75.5, -100.6742, -84.7925, -84.8486, -111.2192, -94.3397, -89.5389, -85.945, 10.227, -94.3047, -99.4167, -57.0333, -58.8167, -109.4122, -89.7, -73.3, -91.1256, -113.3833, -78.7878, -7.58, -82.35, -79.18, -111.7117, -111.5367, -110.4147, -107.8, -90.9983, -116.0481, -107.8, -111.5772, -111.71, -121.8736, -111.6, -122.0333, -122.0167, -122.4811, -92.4, -66.2167, -6.451, 110.517, -87.9747, -118.8092, -118.9297, -117.4181, -120.915, 119.5686, -90.7783, 122.12, -61.2, 153.0493, 153.052, -67.606, -106.2667, -106.3461, -106.3167, -106.4636, -106.2925, -97.2328, -129.8333, 149.9856, -96.6036, -86.0167, -93.8578, -83.1805, -94.6147, -94.615, -95.8364, -58.65, 9.7356, -0.0714, -0.0406, 10.3944, -7.483, 141.3339, 141.4133, -114.8661, -117.6667, -117.6333, -117.7667, 144.2, 144.2392, -86.0514, -97.0261, -120.5667, -111.0125, -112.3617, -115.9167, -104.9058, -122.9, -122.4833, -122.9047, -112.7333, -109.3986, -103.515, -50.0, -79.2919, -85.933, -92.4617, -47.95, -110.9303, -83.0956, -96.71, -65.752, -65.8, -65.73, -48.967, 15.05, -76.6167, -54.487, -99.6328, 124.63, -80.0833, -82.85, 124.88, -92.85, -114.4069, 29.23, -127.4667, -64.7606, -120.1106, -120.05, 71.35, -119.495, -77.4831, -73.8667, -114.8142, -67.2333, -67.1667, -97.7014, -72.5989, -111.95, -123.6422, -83.5328, -98.4305, -43.35, -51.2, -43.21, -79.57, -52.4, -66.1658, 105.15, -100.17, -109.25, -92.65, 25.92, -35.417, 123.9, -88.45, -85.9333, -75.8833, -123.1392, -120.2833, -93.2844, 30.283, -107.9333, -107.8922, -85.2339, -128.3167, -120.1803, -99.7231, -101.0094, -113.1439, -112.9919, -113.0944, -113.0833, -113.0333, -97.4786, -81.0731, -117.6747, -118.6561, -86.75, -76.3, -83.05, -121.7561, -112.7764, -123.7719, -120.3, -114.1658, -109.0828, -91.7167, -91.5881, -77.4478, -101.5667, -96.4631, -118.1333, 133.6976, 133.6725, -86.9, -98.96, 132.25, -85.4597, 41.05, -84.5364, 71.4, -119.3833, 15.2, 59.617, 10.0333, -82.1769, 86.0, 38.9, -106.1292, 151.2341, -94.1642, -82.6547, -73.3722, -95.9744, -92.89, -87.4219, -96.9033, -121.6667, -87.4261, -101.2119, -106.1444, -85.8167, -96.3331, -96.3131, -96.1258, -122.9528, -81.5167, 87.65, -144.7653, 133.0861, -98.0283, -89.0, -81.63, -117.3167, -90.15, -85.6847, -87.1333, -76.0667, -76.9, -67.7, -87.2383, -85.7333, -77.6833, 136.8192, -58.88, -58.983, 138.7056, 145.1785, 37.967, -61.95, 19.43, 74.8, 31.3, 25.97, 56.133, -105.5956, -55.43, -75.67, -66.562, -99.4, 40.2, 17.542, 12.307, 14.433, 26.3, 151.3377, 151.349, 151.3661, -1.83, -5.3456, -5.2892, -65.1, 35.8, 40.1, -104.65, -104.6, 117.52, 127.88, 73.28, 63.17, -77.85, -77.8, -107.9106, -68.86, -103.0533, -103.0953, 60.6167, -111.25, 119.85, -108.0333, -63.6333, 102.0167, 72.03, 65.3, 73.099, -144.3411, -111.0667, -111.0667, -79.5861, -77.3667, -114.2397, -114.215, -114.2228, -86.955, -106.5781, 66.45, -99.3333, -99.312, -99.3183, -98.7467, -77.6394, -66.283, -106.65, -70.414, -73.35, -88.3728, -88.2778, -113.35, -87.9858, -90.71, -148.4925, -111.8333, -96.88, -79.2969, -96.8042, -111.6819, 128.3, 125.217, 111.683, 126.92, 127.25, 128.183, 123.97, 113.083, 112.867, 116.37, -82.48, 128.573, 120.717, -93.5644, 24.0331, -88.2819, -59.15, -97.3833, 130.1225, -102.33, 102.117, -95.4842, -95.4472, 76.6, 120.45, -43.35, 51.167, -74.9833, -74.85, -103.2, -114.47, -102.28, -52.617, -79.0794, -79.0642, -98.88, -108.4892, -83.4333, -83.4333, -83.35, -83.35, -106.65, -172.25, 36.233, -97.0119, -97.4547, -102.4717, 118.2667, -69.6, -69.45, -101.12, -81.1833, 63.6, -93.2792, 4.45, -71.3, -71.2667, -90.0681, -89.3536, -88.1653, -53.6667, -115.5289, -81.65, -79.9319, -80.0403, -79.9333, -81.7186, -81.59, -85.7, -65.7833, -92.6717, -82.3569, 146.2558, 146.2381, -85.2672, -70.6333, -82.7464, -84.8258, -74.4233, -78.5167, -78.5225, -78.4656, -78.453, -63.1667, -63.1333, -63.1167, -63.1333, -98.7494, -64.9333, -64.9667, -64.9, -78.6497, -80.9553, -76.75, 148.3327, -80.85, -66.3333, -66.3333, 143.3341, 143.4, -89.4819, -76.4333, 146.2708, 146.2614, 1.5031, 70.0, -119.6833, -78.4756, -93.5833, -93.6311, -74.2167, -1.417, -148.5833, 1.383, 1.7167, 7.15, -71.0333, -92.45, -79.4103, -69.9589, -73.6, -82.2, -65.4833, -86.92, -82.2, -82.2, -86.9333, -86.9242, -176.567, -69.9933, -125.45, -82.2167, 75.8, -88.2503, -74.5333, -80.9, -84.7642, -84.5833, -76.2333, -98.6497, -85.2014, -85.3, -83.5219, -99.11, 6.9878, 5.05, -111.1167, -73.3953, -97.4061, -87.2217, 12.383, -84.4725, 128.18, 30.9, -118.7172, -105.2672, -105.2783, 8.121, -80.5797, -120.0006, 61.533, -84.0133, -72.45, -75.7833, -72.4833, -76.85, -123.75, 12.867, -121.7894, -121.8, -76.6833, -146.0561, -75.0833, -117.5833, -92.2833, 117.917, 104.017, 122.683, 105.75, -88.7108, 113.03, -83.8167, -66.6, -110.0, -110.0747, 71.88, -79.8833, -103.51, -1.6, -1.4667, 56.52, -75.9667, 112.5, 25.9, 23.267, 126.0, 117.0, -95.5378, -98.3628, -98.4244, -85.75, -83.2069, 91.7333, 91.73, -112.0481, -104.8319, -123.25, -76.8833, -74.7386, -119.9161, 161.283, 99.53, -82.5, -119.05, -119.0667, -81.9675, -121.2422, -110.9711, -111.9167, -90.7167, -80.0389, -90.7333, -113.7833, -76.0519, -75.2333, -75.2, -81.1958, -72.9833, -71.15, -61.05, -60.95, -60.95, -88.327, -121.6333, -110.9153, -59.6333, -84.6233, -117.7408, -77.6667, -104.8061, -99.7278, -100.3, -104.8833, -102.3508, -104.8056, 69.783, 98.983, 99.833, -92.75, 140.1, -74.3667, -74.4167, -74.5333, -88.4814, -87.7853, -87.7522, -87.7775, -87.6094, -87.9336, -87.9047, -87.6, -87.8667, -87.6333, -94.82, 139.067, 142.183, 142.2, -148.45, -85.2711, -96.9717, -97.95, -97.9144, -97.9158, -141.9211, -141.9294, -72.5333, -71.0833, -71.05, -121.7789, -121.8211, -153.9325, -119.6483, 12.533, -98.57, 3.83, 118.833, -158.4, -106.083, -118.0303, -86.3431, 152.2781, -100.2183, -100.25, -100.2831, -111.6981, 34.967, -81.6833, -72.0333, -82.9667, -93.1469, -93.5358, -93.5792, -93.485, -83.0036, -82.985, -93.55, -121.9167, -121.8667, -121.7, -121.9667, -113.8289, -121.9953, -121.8667, -121.8936, -84.173, -99.5, -88.1469, -90.4, 69.6, 66.2, 33.467, -87.1333, 81.182, -123.5833, -117.6931, -75.5833, -75.4333, -75.35, 106.767, -108.53, 128.1, -109.5333, -109.2256, -109.0044, -120.1833, -120.2, -117.6361, -112.4567, 26.1331, 32.583, 32.616, -85.5503, -65.8667, -81.9361, -109.35, -109.3572, 25.333, -142.0833, 42.56, 28.9833, -103.3003, -103.3, -144.6647, 113.4831, -144.4408, -144.4397, 76.433, 71.83, 91.83, 98.6, -4.1474, -114.4167, -66.8, 114.55, -104.4833, 108.217, -108.283, 17.55, -98.2525, 147.8831, 102.1667, 77.07, -87.15, 27.07, 128.15, 73.75, 129.817, 126.88, 127.43, 106.467, 106.483, 127.15, 100.983, 19.6, 30.233, 32.7, 25.8, 140.85, -70.3, -112.1919, -76.5667, 172.532, -86.4869, -80.4033, -64.8056, -64.7014, -157.4833, 105.683, -119.0125, -83.8986, -104.8222, -117.0858, -149.9061, 99.183, 116.92, 127.733, 126.883, 128.43, 128.0, -70.72, 9.53, 13.615, -94.0667, -94.0667, -94.0667, -64.1, -64.1, -64.1, -94.1833, -94.0667, -110.0856, -1.2, -71.2, -68.3833, -71.85, -71.25, -71.1667, -71.7, -72.45, -119.5333, -71.8667, -75.25, 151.8333, 101.517, 32.667, -110.4875, 34.4, -87.7667, -23.52, -66.15, 73.967, -104.4833, 32.9, -95.38, 66.75, 109.017, 109.0, -3.3, -100.3456, -107.5592, -104.9456, -101.9003, 59.8167, 42.12, -76.7, -83.8217, -84.5167, -84.4167, -84.7, -84.6961, -84.4189, -84.6717, -84.5167, -91.2333, -106.2333, -122.1067, -93.75, -38.517, -67.98, -105.595, -112.2786, -82.9547, -105.5667, -105.0, -144.6422, 108.267, 62.9, -109.3167, -88.2333, -111.8314, -87.7089, -99.0794, -63.537, -111.7, -105.43, -54.6, -108.52, -103.467, -104.93, -109.933, -109.833, -3.9194, -3.9283, -99.133, 42.2, 130.9, -121.75, -124.25, -90.9808, -86.6522, -86.6114, 18.87, -117.7069, -117.7167, -95.5808, -8.9833, -77.9411, -91.0667, -65.1667, -91.2208, -100.8903, -53.9667, -113.6333, -113.5833, -113.7167, 138.5933, 138.6125, -95.0192, -80.8333, -93.7336, -79.4361, 120.55, -97.7325, -83.5428, -66.6333, -116.2558, -121.5333, -87.845, -80.3522, -80.2289, -90.5572, -97.1256, -79.6167, -117.0833, -93.45, -78.5506, -83.9833, -93.4425, -95.0717, -76.9286, -93.4036, -90.9053, -87.3356, -87.4194, -95.1667, -87.3353, -82.1897, -109.1375, -109.2333, -117.3089, -116.1667, 12.2406, -123.2058, -101.3619, 10.3481, -81.9008, -109.1, -125.9, -80.4667, -85.45, -95.35, -75.1, -103.1997, -83.3967, -103.1, -69.5231, -69.5333, -103.1539, -111.8167, -78.4633, -97.1275, -98.0536, -97.9372, -110.3167, -122.3292, -119.4833, -119.75, -78.45, -78.4256, -78.4117, -122.5672, -122.7167, -106.4472, -82.7667, -124.2922, -120.0333, -115.25, -145.5167, -120.1167, -90.7756, -111.15, -111.2833, -111.2667, -118.1525, -96.6872, -121.7167, -112.6167, -149.1828, -77.9, -97.4061, -65.5667, -82.8864, -82.8236, -81.3483, -78.4878, -85.6667, -78.5333, -81.7233, 3.1, 147.6425, 6.02, 136.4937, -95.0839, -90.7444, -83.7658, -96.4667, -81.86, -96.4667, -81.6667, -90.7128, -96.5369, -109.0667, -81.6836, -84.7981, 136.5026, -80.94, -81.0492, -120.9131, -108.6333, -108.5047, -109.3072, -92.6667, -106.1897, -105.6628, -105.5872, -98.9772, -93.7711, -83.9667, -71.6833, -88.8753, -88.7483, -90.2639, -88.9675, -78.2758, -78.3167, -90.9733, -121.5, -91.0092, -95.3397, -120.8, -99.12, -82.4911, 140.5083, 140.505, 140.5192, -7.2333, -77.15, 8.0631, -92.5253, -105.7353, -105.75, 152.6333, -98.8167, -107.0667, -123.0175, -123.0167, -123.8925, -122.7, -111.85, -114.9697, -103.1992, -103.2161, -103.3167, -123.5333, -109.5167, 23.7, 23.5667, 143.7776, -68.5167, -68.5167, -68.5167, -117.9, -96.2333, -120.3606, -120.35, -85.7014, -117.0, -111.3983, -111.1472, -105.3847, -160.8167, -127.5, -63.133, -75.8333, -75.86, -71.8, -91.1667, -94.417, -114.2333, -90.3, 145.7964, 145.8294, 145.8, -89.25, -68.78, -74.4833, -74.4333, -78.1667, -78.1833, 10.983, -66.18, -106.7611, -106.5833, -109.8908, -109.95, -106.3322, -81.0333, -114.4333, -114.45, 123.5942, -83.3, -80.6, 9.6, 143.0686, 96.833, -79.9, -62.083, -89.5333, -88.2269, -106.3667, 12.0978, -59.6, -109.045, -108.9006, -109.3914, 143.1183, 143.1178, 143.2006, -57.33, -116.7967, -116.8167, -120.62, -95.5664, -95.6356, -132.8333, 153.1187, -91.525, -0.32, -106.6167, -121.7689, -84.6594, -116.4917, 77.05, -8.4167, -8.467, -84.275, 143.5961, 143.7925, 143.5848, -101.05, -101.0689, -72.3667, -78.7111, -78.6831, -95.0867, -95.15, 145.4094, -86.7333, -99.3289, -79.6667, -84.9925, -79.5333, -162.7325, -115.5833, -110.2833, -109.45, -122.1833, -120.13, -76.4667, -71.54, -99.4339, 8.4667, -114.5833, -76.1333, -99.6594, -93.4667, -66.2, -65.8167, -97.1742, -93.2556, -93.0833, -104.4, -109.35, -92.7142, -120.9481, -117.35, -97.6561, -121.6056, -103.577, -44.25, -53.55, 148.5818, -107.9631, -107.9797, -62.0167, -87.15, -94.3919, -147.8803, -147.8483, -76.95, -96.3647, -96.4167, 116.1467, -89.6653, 116.1717, -80.2167, -80.2167, -89.5572, -91.8667, 147.8464, -122.9503, -103.7, -103.7, -3.7642, -93.3189, -86.3333, 79.867, -57.9, -76.9628, -106.417, -69.07, -105.7667, -104.1533, -98.5003, -100.8594, -112.9719, -104.8692, -108.7339, -104.6883, -67.1569, -103.267, -84.7664, -106.6336, 1.35, -89.8361, -81.1186, -76.2667, -76.5, -78.15, -87.0864, -98.3, -76.1269, -85.4897, -85.4833, -114.2, -117.6, -92.1072, -119.3242, -80.9958, -92.2183, -81.0167, -92.32, -92.3333, -92.3667, -106.6, -109.9139, -108.3833, -96.5731, -107.6389, -88.3847, -94.8397, -85.9228, -109.2675, -84.9378, -97.3278, -88.3667, -88.45, -85.9, -108.0167, -84.9833, -91.3611, -84.9422, -82.8833, -83.0781, -83.0167, -82.8808, -82.9333, -83.1167, -83.05, -82.92, -83.0286, -83.0, -122.0269, -122.0, -117.9019, -117.8, -117.8833, -126.0833, -150.4094, 7.1667, -99.13, -77.598, -77.6167, 149.0228, -113.4, 39.733, -116.175, -54.0, -54.8833, 91.18, -92.133, -83.4894, -114.1667, -57.997, -67.5, -124.9, -125.0333, -85.4, -89.1003, -99.2372, -13.62, -58.23, -49.2, -49.28, -43.433, -73.03, -57.417, -62.1, -57.3, -94.6833, -104.1906, -99.7081, -80.8833, -119.7492, -80.5833, -71.3667, -71.535, -103.12, -97.6697, -58.03, -97.6508, -58.0, -122.055, -71.5011, -71.5167, -122.0692, -121.7422, -111.55, -98.1008, -86.3833, 147.2283, 147.2133, 147.1524, 147.15, -120.1817, 153.4333, -113.7172, -106.0333, -79.3664, -89.2414, -0.167, -80.8167, -73.9256, -8.818, -80.3667, -80.2833, -114.2167, -118.8828, -85.6667, -76.1756, -76.1833, -111.9614, -95.4831, -95.4139, -95.4828, -110.7167, -110.7667, 28.63, 6.62, -70.73, -72.42, -109.5167, -109.4833, -114.7528, -107.525, -111.55, -73.22, -110.3667, -93.7, -116.9131, -79.0558, -92.4294, -112.0, -71.1167, 106.6, 134.7564, 134.7222, 130.4136, -85.5033, -109.9819, -71.6333, -79.7, 145.1861, 145.1861, 145.25, -93.0667, -92.5336, -91.4333, 153.5053, 153.5036, 121.17, -102.0, 152.3167, -115.3, 148.9725, 149.1333, 149.1243, -124.4333, 149.2699, 149.2714, 148.3798, 148.3806, 140.8333, 140.8254, -74.9267, -98.0381, -76.85, -79.7719, -95.6039, -149.6661, -149.968, -124.2661, -124.3186, 148.05, 148.0364, 148.0236, -73.5522, -105.5667, -80.1167, -101.2842, -90.3806, -70.33, -84.3758, -115.1167, -113.8333, -112.6, -99.743, -112.7333, -145.3167, -105.4844, -87.8833, -87.8672, -61.9667, -111.4167, -106.1667, -114.2167, -124.2025, -103.81, -71.367, -122.8, -109.9958, -83.3667, -77.3747, -114.65, -84.1333, -119.5817, -42.36, -83.7747, -98.9958, -112.165, -64.217, -4.8458, -64.183, -87.15, -123.3667, -123.3667, -145.4511, -145.7531, 19.9167, -69.2417, -112.1106, -72.3194, -88.6178, -8.491, 27.8, -57.4, -83.5286, -87.3, -87.1589, -86.2325, -57.9167, -57.95, -90.5858, -94.7492, -77.0692, -122.1697, -70.8, -91.0833, -105.47, -73.2106, -74.75, -74.8, 120.2, -117.55, -105.5833, -105.5167, -105.4833, -110.2542, -109.15, -111.45, -111.45, -111.45, -105.6975, -70.276, -74.204, -56.4, -43.26, -61.883, 146.3574, -66.3592, -97.5108, -97.4, -97.4333, -97.2833, -97.5056, -106.595, -121.7978, -115.5333, -105.4647, -121.4667, -44.61, -58.762, 117.8733, -79.6333, 147.8938, 147.8956, -96.4867, -96.3989, -111.1167, -125.0333, -124.95, -108.595, -108.5036, -108.6275, 12.15, -76.1833, -81.2711, 34.95, -57.5, -57.7, -84.0744, -123.2569, -123.3258, -123.19, -123.4575, -31.12, -93.4833, -106.68, -94.7078, -97.03, -81.7908, -81.8711, -101.7833, -74.1667, 7.216, 2.38, 0.67, -78.55, -123.0275, -123.0578, -82.75, 14.3183, 11.1692, -0.65, -92.4533, -116.3333, -101.8606, -116.3919, -155.9361, -108.2778, -110.8167, -96.5483, -109.5811, -111.7869, -93.4569, -70.15, -99.2183, -91.4594, -78.0167, -78.0417, -78.0667, -77.9711, -122.3464, -122.2042, -122.2419, -121.6333, -123.1172, -118.9997, 135.3741, -110.5667, -116.4325, -95.8167, -96.5, -96.5097, -118.5333, -122.4119, -122.6914, -125.0, -124.9833, -125.0333, -97.8956, -87.3461, -82.45, -105.8833, -117.8, -123.2444, -72.35, -117.7903, -112.5833, -81.7333, -117.8667, -83.8436, -89.7, -90.1114, -87.45, -79.9883, -100.65, -77.1567, -83.4314, -123.7, -123.55, -124.1333, -105.6667, -114.1167, -114.0833, 148.6497, 148.6534, 148.7, 148.7071, -116.8833, -107.5819, -57.7833, 91.964, -95.02, -73.1, -72.0333, -97.2128, -114.7583, -101.06, -96.71, -86.926, -115.65, 15.133, -112.0, -84.4375, -89.0028, 145.9444, 25.62, -72.3833, -2.2, -107.55, -133.1408, 149.1496, -116.4833, -112.2833, -112.25, -107.5894, -86.9833, -107.5211, -80.0797, 10.0992, 23.87, -80.2667, 145.2637, -115.7833, -115.7667, -115.7833, -115.7667, -115.5167, -115.75, -109.6436, -109.6114, -88.9, -102.3578, -102.4133, -119.8247, -92.4667, -86.835, -118.4667, -115.85, -74.3231, -116.8414, -0.5, -113.5581, -122.1328, -115.2833, -40.667, -103.4167, -86.8011, -86.8997, -116.8333, -120.9333, -123.6036, -73.3167, -106.9319, -107.63, -107.1333, -97.9047, -117.9167, -81.5161, -124.2147, -124.2367, -102.4167, -102.4378, -102.4372, -120.7, -117.5667, -92.0939, -84.0347, -76.85, 147.0794, 147.0811, -106.9769, -81.2728, -114.1342, -116.5167, -105.6897, -94.3942, -116.5, -116.5333, -86.5225, -118.9833, -86.5833, -85.4186, 143.8789, -96.8719, 14.7, -105.1797, -105.2003, -75.8667, -75.8667, -83.9408, -120.7333, -79.9, -70.08, -84.6019, -88.1919, 21.95, 15.2, -76.8667, -95.4508, -122.2167, -97.4969, 152.87, -119.2167, -81.3333, -102.8031, -158.1, -96.6028, 149.4693, -103.2936, -101.245, -104.0022, -107.05, -98.5547, -91.9481, -81.9333, -103.3403, -85.1344, -84.9972, -85.1314, -85.0814, -83.1053, -83.1053, -113.9167, -98.0333, -85.0142, 17.07, -120.75, -92.3478, -108.15, -112.3453, -112.3333, -60.833, -114.4833, -107.45, -105.3833, -118.95, 142.2447, -78.7, -77.8769, -72.667, -36.58, -53.6, -64.7942, -39.08, -99.8311, -90.3833, -79.8667, -88.2333, -113.16, -109.5, -90.3775, -90.3167, -120.3667, -104.76, -102.07, -106.87, -98.95, -106.9703, -81.6667, -107.5178, 120.2667, 33.0, -104.9214, -72.52, 79.767, 117.8994, -78.65, -2.1381, -103.67, -99.233, -99.25, -97.3433, 133.867, -56.117, -56.1, -96.86, -100.8292, -104.5089, -5.25, -105.2, -107.475, -107.4, -86.7964, -86.7972, -80.85, -83.1747, 124.8667, 50.4, -77.9833, -121.9833, -118.4139, -86.4667, 80.967, -64.2, -83.0, -78.75, -92.0222, -125.0333, -78.7561, -102.3, -78.8308, -106.45, 135.317, -72.9333, -84.1275, -91.5833, 32.8, -131.6, -102.58, 117.2331, 117.2217, 7.54, 145.6808, -98.4056, 24.4331, -104.2667, 21.3667, -103.05, 132.6, -71.233, -49.267, -49.167, -111.1, -115.4128, -114.75, 143.8486, -80.9819, 123.8217, 131.7571, -100.4936, 106.65, -44.45, -96.7758, -95.6667, -123.2197, -123.16, -103.6119, -107.5333, -103.6114, -103.6333, -72.5, -84.7931, -112.0558, 85.933, -112.3753, 8.7067, -119.6167, -116.5872, 121.03, -72.0, -71.95, -3.802, 123.0086, -84.3031, -84.2833, -109.4667, -109.5167, -109.4833, -99.0833, -99.0667, -81.5333, 19.1, -97.3983, -89.9328, 104.579, 90.72, 121.883, 10.8639, -98.55, 122.98, -104.5667, -119.8914, 14.18, 120.35, -105.0333, -77.0333, -83.99, -94.7225, -123.1333, -110.3333, -17.43, -17.5, -15.931, 29.0, -94.1953, -113.95, 28.78, 104.417, 106.25, -13.5831, 151.2634, 151.2639, -77.1133, 7.9977, -111.3794, -78.9353, -5.15, -85.45, -102.6133, -102.5833, -102.55, -66.3667, -74.4667, -74.4667, 100.18, 121.633, -96.8214, -123.2911, -84.7475, -97.0189, -84.74, -96.9667, -96.8556, -96.8681, -96.7833, 133.733, -6.473, 13.12, -84.8872, -102.9661, -89.2028, 84.067, 69.3, 116.6714, 116.6619, -113.85, -122.05, 133.37, 133.3782, 64.4, 72.83, -77.2333, -77.2319, 36.516, 34.337, 116.7483, 108.199, 16.54, -105.7667, -80.1789, -73.4167, -81.8333, -92.3736, -73.4828, 124.333, -20.2167, -96.2319, -67.8614, 69.317, -110.0667, -83.3045, -57.5833, -111.25, -110.1272, 125.028, 44.117, -18.67, -73.7206, -117.3389, -77.7178, -77.7133, -82.2833, -79.3886, -84.7708, -87.6483, -71.9833, -82.3039, -79.3361, 109.58, 100.3, 0.25, -113.95, 85.9, -114.1764, -93.1675, -75.9, -120.1833, 62.283, 39.5, 88.27, -113.5833, -92.5833, 99.65, -79.8767, -76.2167, -90.1064, 8.6775, -1.4106, 148.033, -121.4461, -121.6036, 147.4984, -10.85, 17.23, 143.2, 130.8925, 130.8844, 130.8, -110.1631, 39.2, 39.3, 59.8, 114.4, -81.6167, -94.3039, -113.5333, -113.4981, -107.85, 113.333, 26.617, -100.05, -100.0333, -100.05, -100.05, -88.0775, 106.8, 125.6, -72.2, -90.5808, -118.1614, -90.5667, -90.5667, -105.9833, -97.1328, 77.95, -77.1833, -121.7761, -79.4322, -114.5667, -110.8833, 9.85, -104.7833, -139.4333, -139.1333, -84.0597, -95.7786, -139.1333, -120.2167, -120.1833, 101.12, -112.2833, -107.2658, -114.2833, -81.0083, -81.0483, -87.65, -118.0022, -84.9947, -84.2186, -84.1911, -94.9314, -84.2264, -119.5333, -119.6447, 108.2, 95.367, 107.5, 24.017, -148.4772, -110.6833, -105.7667, -124.4667, -103.7314, -115.6333, -115.5667, -115.5667, -118.9433, -107.3786, -105.9, -122.3167, -117.1678, 147.3153, -83.2378, -83.1736, -130.0167, -130.0333, -116.8669, -108.5931, 38.4, -63.4667, -63.4167, -63.45, 53.82, 21.615, 21.6, 37.667, -97.5769, -86.9667, -84.7833, -84.93, -86.9503, -84.665, -88.8656, -86.9453, -88.9506, -60.57, 66.5, 8.972, -91.7953, 3.483, 5.8878, -113.1139, -94.3872, -117.9803, -93.2044, -103.7858, -103.9, -71.8678, -162.7639, -98.3167, -98.3167, -111.5289, -120.8333, -83.2128, -120.85, -116.7475, -115.1517, -57.4333, -57.4, -112.7333, -112.7975, -117.6103, -114.0553, -79.3333, -108.9, -118.05, -117.4333, -117.4283, -85.6167, -116.1, -112.0833, -115.2711, -84.3847, -84.4289, 98.57, 14.45, 9.4117, -76.8703, 70.2, 78.033, 35.6167, 40.176, -94.6175, 131.9182, -81.3106, -93.7903, 25.28, -88.3167, -83.0739, -91.4167, -75.5833, -113.1833, -104.0167, -74.9128, -80.55, -80.55, -123.4333, -123.4333, 97.37, 3.95, -105.2369, 28.68, -119.6542, -100.5, -100.4, -86.6661, 16.55, 16.54, -108.0783, -112.5858, -122.4333, -108.0278, -145.6136, -145.7511, -90.35, -145.105, -123.0833, -98.3833, -123.1, -112.7886, -112.8167, -121.8667, -106.3083, -100.9094, -100.9269, -100.7833, -100.9, -118.6828, -108.88, -107.7531, -61.1833, -107.7206, 22.25, 69.283, 11.8564, -119.9333, -118.6303, -87.88, -120.7833, 67.9, 95.6, 113.5319, 144.9458, 145.05, 144.952, -118.6336, -119.6358, -95.3289, -96.5667, -121.0333, 29.083, 117.37, -87.812, -81.3436, -81.35, 115.167, -109.9372, -75.8, -97.105, -97.1989, -104.8489, -102.8219, -104.6575, -104.9, -104.8694, -105.0083, -104.9833, -109.5833, 4.7469, 1.7217, -75.4264, 139.6697, 98.883, 99.38, -94.3481, 70.92, 71.08, 48.3, -79.0, 123.6611, -109.8517, 123.6292, -91.385, 22.66, -119.9333, -7.2581, -79.3333, 58.4833, -117.5844, -116.6222, -71.9167, -71.9667, -112.6519, -77.0667, -113.75, -115.36, -115.1439, -116.1594, -119.77, -96.0833, 39.7, -86.4717, -91.4978, -77.7, -103.8333, -93.2856, -93.6531, -93.6056, -93.7236, -83.9014, -122.15, -83.01, -122.2547, -95.6056, -95.8372, -95.8464, -83.3308, -83.5333, 4.4667, 7.05, 22.9, -75.55, 35.5, -81.1292, -120.6714, -93.4, -93.3333, -98.9, -98.8681, -98.9075, -119.0933, -104.7194, -104.7167, -104.7147, -107.3047, 146.3667, 146.4267, 146.3817, -117.4044, -71.1667, -109.2997, -82.7333, -89.9667, 48.3833, 116.37, 24.017, 5.1867, -86.0939, 30.17, -88.7756, 4.7808, -94.4008, -93.4692, -93.2869, -75.8833, -121.6108, -97.5606, 50.15, 87.35, -116.05, -121.1431, -121.2939, -95.2619, -43.64, -56.45, -84.2833, -94.3553, -89.8333, -111.2167, 94.32, -122.1333, -113.3664, -115.85, -109.2428, -76.2, -116.0494, 56.25, 95.017, -102.8111, -102.8414, -87.3958, -114.2167, -114.1333, -70.181, 72.4, 49.18, 119.3031, 8.341, 23.17, -94.0172, 13.4181, 10.6742, 12.627, 9.2081, 12.0864, 11.0431, -65.75, -65.7667, -65.7833, 4.93, 15.99, 16.04, 26.87, 80.4, -105.0569, -111.4667, 8.2631, -99.1833, 10.4994, -105.1175, -158.5167, -112.6447, 125.5667, -79.3564, -113.0058, -106.0353, -112.5545, -4.7, 22.75, -102.312, 88.68, -58.85, 30.2, 122.117, 11.57, 115.517, -119.0394, -109.85, 147.3347, -108.9678, -108.9719, -108.9106, -109.3045, -107.3333, -16.233, 123.35, 13.7144, 41.85, -118.2, -120.1667, -77.2017, -71.3167, -76.9, 70.9167, -108.9133, 19.71, -112.05, -112.7547, -107.1667, -44.87, 43.35, 38.1, 44.98, -115.4606, -107.5333, -75.9, -89.5136, -88.6678, -88.6672, -84.7078, 40.201, 81.0, 14.8, 14.77, 9.47, 3.25, 113.73, 10.6, 10.77, 40.72, 43.15, 11.93, 34.967, -66.1333, 12.217, -121.2011, -121.2, -73.8344, 23.317, 13.583, -91.5511, -90.1161, -90.0, -99.9683, -105.5194, 35.767, -92.5833, 10.35, -86.7142, 44.1, 150.08, -122.25, -120.0478, 51.565, 27.467, 27.75, 31.63, 159.07, 142.8, 12.67, -114.6667, 75.767, -108.4975, -57.733, 9.117, 59.65, 5.65, 123.0, -120.9833, -121.1667, 123.367, 39.7, -107.3, -107.2833, 77.37, 77.02, 11.2556, 142.9709, -117.15, -112.35, -91.0278, 143.0, -84.8911, 8.5056, -79.4058, 37.767, 108.617, 30.483, 109.98, 120.283, 106.6, 104.08, -90.8125, -90.8239, 16.42, -111.4667, -71.75, -71.7333, -91.5639, -120.2331, 115.8247, -79.8694, 140.55, 10.5012, -103.3, 100.6, 126.3114, 26.1, -66.3058, -123.0333, -92.2192, -123.9956, -122.9631, -0.05, -0.033, -88.5167, 152.7187, -80.6667, -73.075, -78.9333, -115.2, 7.5353, 36.2, 3.3, -66.6667, -92.83, -85.4333, -85.4497, 9.72, -105.4017, 153.1906, -87.4167, -76.6167, -109.5394, -82.8206, -105.3603, -109.6061, -105.3667, -105.3856, -120.1031, -120.2, 131.1872, -109.5833, -119.8983, 4.5978, 147.0075, -75.5056, -81.4833, -74.5667, -87.8628, -75.4667, -69.1839, -108.9119, -86.1319, -86.0833, -106.4517, -112.1253, -120.8239, -92.3706, -92.1333, -74.9828, -68.8167, -120.1044, -59.25, -75.1225, -120.0828, -120.1056, 15.97, 22.933, -108.8875, 22.45, 16.0338, -123.3275, -100.3667, -100.31, 10.1237, -111.8997, 13.61, -115.3167, -88.7064, -100.4233, -82.1833, 13.767, 13.8494, 13.6831, 12.0481, -118.3775, -118.3667, -75.1833, -111.1125, -97.9822, 22.6331, 23.517, 71.783, -112.7167, -112.6833, -91.2667, -72.4833, -113.1761, -76.25, -113.2, -134.3833, 33.95, 145.3, -128.1167, -102.1167, -92.8333, -92.75, -101.8333, -92.75, -102.2131, -111.8, -108.3575, -111.5333, -119.1167, -118.5333, -144.6011, -121.9864, -120.5333, -112.1833, -106.7833, -109.8331, -106.7808, -112.24, -82.8736, -70.584, 55.364, 148.5753, 148.6089, -71.3, -82.9036, -98.3047, -6.3192, -109.6553, -112.2167, -112.2006, -78.8989, -86.6983, 18.27, -90.6461, -90.7036, -71.65, -110.395, -115.6361, -89.7167, -80.9072, 10.2625, 18.867, 86.17, -120.1, 15.1, -121.1303, -119.0147, -96.8167, -112.9217, -112.9333, -75.0833, 6.7031, 70.07, 54.6, -87.1667, -79.0917, 135.933, 16.134, 98.1, -107.0, -104.9614, -92.2097, -92.0903, -92.2108, -92.1, -92.1833, 123.3, -91.5317, -101.9725, -3.1, -3.65, 87.25, 140.017, 130.3725, -2.5258, -84.2333, -109.1214, -97.9592, -123.7167, -123.6833, -123.7667, -123.7333, -116.9667, -79.8833, -76.5167, -6.35, -68.8, -83.6489, 20.82, -106.5, 170.1, 170.52, 149.3964, -124.1197, -123.0833, 128.2, 94.683, 16.91, 2.33, -111.4747, -79.2722, -82.4047, -79.6167, -78.6881, -102.5869, -122.2736, -71.5167, -5.4386, -119.85, -118.5833, 124.6, 116.467, -79.2667, -101.605, -101.4672, -110.8667, -112.75, -105.3975, -83.95, -91.9794, -83.9894, -107.8833, -107.8564, -104.6, -104.7, -107.7597, -96.3686, -96.3203, -56.5, 30.951, 144.2078, -78.9625, -70.95, -70.0964, -80.8167, -1.5846, -79.0931, -70.9278, -70.9483, -72.35, -117.4833, 28.6, 107.55, 68.8, -76.4042, 6.77, 68.1, -166.5433, -166.5, -97.7333, -104.8667, -103.9, 57.9, 12.93, 31.2, -78.6333, -89.1931, 42.717, 69.0833, 116.0594, -88.4167, -88.4111, -78.9, -116.3217, -2.198, -118.0106, -89.4089, -89.41, 123.9, 113.97, 134.5, 63.333, 34.4, 141.3, 45.281, 124.0, 95.217, 72.95, 52.567, 72.45, 73.1, 121.77, 67.8, 64.083, -88.53, 67.833, 139.833, 138.733, 70.897, 30.88, -102.7769, -141.2036, -117.8833, -76.5833, -77.2, -141.1619, -141.1483, -119.2167, -110.3667, -122.3311, -106.9167, -88.1667, -115.4508, -97.4497, -105.2628, -100.4792, -122.6569, -89.2564, -149.44, -149.5436, -109.8964, 18.3, -87.5167, -79.85, -79.85, -93.2167, -93.2167, -108.8167, -108.9833, -84.3333, -98.8175, -106.1833, -78.5167, -83.2058, -76.0669, -121.1869, -75.2167, -66.9919, -75.9744, -112.9167, -71.6667, -62.1667, 1.0267, -79.6167, -72.1269, -71.8167, -113.2239, -70.65, -71.8908, -111.9167, -71.5, -70.7539, -84.6892, -74.1433, -85.1322, -84.485, -84.4667, 27.833, 27.8, 151.5833, -111.6444, -71.6261, -122.5178, -61.9833, -105.4167, -110.2, 147.1322, 147.1317, -69.2833, -75.2297, -123.6333, -122.9333, -90.1833, -83.5036, -72.0333, -70.6697, -77.55, -109.5167, -69.9, -84.6336, -83.4, -71.4333, -91.5, -91.5164, -86.243, -91.4878, -119.8, 10.7375, -78.7167, -78.7289, 8.9792, 9.5339, 11.9883, 11.2, 10.5003, -74.5, -105.8992, -105.8461, -119.1833, -114.4256, -111.435, -105.6, -101.6667, -120.0667, -120.0333, 6.45, 144.7642, 1.332, -101.0167, -114.3833, 117.8833, -62.1833, 148.3467, -88.0728, -61.25, 13.55, -99.8494, -79.7433, 141.2657, -76.5517, -72.5572, -117.5883, 12.87, -70.5181, -1.9, -98.7661, -103.8778, -103.9172, -94.6328, -110.4333, -105.0833, -98.1575, -89.3367, -78.5853, 138.6222, -3.35, -98.0633, 26.567, -99.7836, -80.2947, -80.3267, 137.7395, -113.5, -85.65, -113.5167, -113.5167, -113.5167, -113.5833, -113.6, -113.5167, -113.4667, -113.4667, -114.1167, -114.1167, -113.75, -98.4714, -68.1833, -68.3333, -68.3167, -68.3333, -98.8578, -98.8667, 27.0, 15.84, 15.72, -116.4667, -116.4167, -116.4667, -116.4833, -116.4667, -116.45, -90.6167, -87.2333, -94.8333, -117.8667, 32.333, 3.5619, 6.5844, 6.5756, -123.0833, -123.8236, -93.6461, -88.6244, 12.67, -79.7811, -79.7833, -79.7833, 17.57, 10.3167, 13.6833, -127.8333, -14.4, 11.2667, -179.1, 8.9131, -114.5333, -114.4706, 12.8833, 11.2358, -108.9333, 6.8605, 11.2871, 11.2167, -147.1, -147.0833, 6.5045, 145.8423, -118.1167, 7.5967, 9.8881, 5.3767, -69.86, -77.2292, 16.53, 10.9117, 11.5717, -115.183, -101.08, 101.067, -104.5461, 60.6331, 130.9667, -110.6167, 14.76, 16.5797, 57.767, 132.983, 30.0967, 16.75, -149.3333, -149.15, -149.1667, -149.3231, 135.88, 174.167, 41.7667, 34.95, 39.291, -78.1667, -104.55, -111.95, -86.2167, -82.855, 37.2, 19.433, -106.6, -106.55, -106.5833, -121.9, -95.8756, -114.7, -59.38, -92.5808, -93.0972, -100.5994, -100.7, -94.0156, 35.267, 35.239, -135.2167, 38.517, -98.9117, -120.6706, -111.2128, -122.0333, -107.1842, 64.0697, -136.3436, -97.3683, -114.5411, -98.0747, -88.2861, -117.9239, -114.5, -110.5086, 26.567, -103.6572, 44.3, -137.083, -92.7833, -74.2333, -90.2269, -82.2325, -105.2833, -88.3, -73.5986, -78.6481, -85.8761, 27.47, -104.6292, -76.205, -76.175, -105.3381, -91.4536, -114.9167, -101.8867, -109.75, -81.4053, -101.2, -104.0667, -79.4742, -79.8528, -83.5667, -115.1167, -115.7425, -115.7886, -75.8333, -123.5828, -123.5992, -123.6306, -77.7667, -116.1167, -105.7, -115.4611, -99.5064, -95.7769, -105.4167, -117.9711, -112.8667, -106.4136, -111.0667, -106.9667, -93.5842, -116.1797, -123.7183, 5.7625, -98.5261, -120.54, -120.5303, -74.4, -63.9167, -113.55, -119.2306, 145.9347, -98.5667, 27.85, 133.5407, 145.7725, -82.65, -82.5667, -82.65, -99.5647, 134.888, -86.9369, -112.4342, -98.225, -68.4333, -102.2133, -92.4586, -103.1, 10.1317, -94.0353, -78.6333, -123.4008, 29.9, -149.8, -76.8358, -76.8919, -72.5294, -63.3333, -119.6667, -119.75, -98.0167, -99.38, -102.4683, -87.0917, -80.4, -80.4167, -80.4167, -80.4167, -111.5186, 9.017, -108.0333, -135.4833, -90.7847, 6.5653, 6.1831, 18.83, -117.3319, -100.0167, -100.0106, -119.1667, -119.1561, -123.5906, -85.8453, -91.8586, -82.0558, -82.1794, -91.4556, -91.8667, -114.8361, -114.8467, 8.1094, 23.92, -111.05, -109.67, -81.23, -68.1, -68.192, -113.42, 33.836, -99.13, 1.0, -71.532, -93.15, -116.9281, -116.9167, -72.05, -96.2653, -106.28, -116.815, -76.641, -117.4111, -115.5617, -115.6833, -84.22, -91.1, -99.25, -108.0167, -96.8444, -88.6333, -92.8142, -75.766, -81.358, 25.333, -108.62, 2.8667, 8.45, 0.067, 14.3, -98.95, -117.6303, -117.5503, -108.3492, -109.63, 30.233, 30.2, -110.72, 6.12, -97.2, -106.5, -106.3708, -105.9608, -106.3758, -111.12, -110.98, -104.07, -90.5, -104.73, -111.71, -98.9, -97.9553, -98.0364, -106.1878, -99.35, -99.43, -105.37, -103.18, -103.23, -69.03, 32.5497, 46.9, -117.7333, -63.171, -105.36, -106.73, -71.65, -79.59, -92.1958, -111.3833, -108.3906, 6.5, 37.45, 7.2267, 7.2, 41.8, 103.33, 148.1756, 29.95, 148.1617, -97.2, -97.2333, -111.25, -113.9333, -122.2175, -116.3022, -118.45, -111.5667, -90.6167, -91.3589, 31.2, -1.667, 7.8356, -94.6833, -116.4664, -77.35, -77.2914, -75.0106, -93.8, -95.7797, -81.8333, -108.9833, -93.8333, -110.767, -110.6347, -96.1817, -77.5597, -96.2189, -96.1897, -78.2275, -78.2167, -110.0, -80.0833, 115.0414, -106.6167, -55.9, -112.4333, -99.3847, -52.51, -119.15, 166.3, -97.6383, -101.5147, -76.0878, 115.2722, -85.5697, 8.4167, 7.4256, -124.2167, 8.7681, 11.9833, -92.55, -107.0333, -56.1167, -99.9964, -86.4683, -77.2833, -97.8747, -97.9167, 92.15, 162.35, 162.35, -82.6531, 173.33, 14.283, -100.9, -100.8833, -111.7111, -111.7344, 24.7331, 20.783, 20.8578, 23.5803, 23.3392, -72.8083, -72.8136, -116.633, 109.467, 32.45, -113.715, -117.1528, -117.2667, -85.8997, -113.6556, -117.2972, -113.7172, -120.3228, -120.2108, -117.7, -123.8167, -123.8, -114.9833, 7.55, -95.0, 28.433, -111.5992, -87.1536, -76.1667, -119.5667, -119.5153, -71.0839, -103.3667, 8.9175, -91.5667, 35.55, -126.2833, 58.6, 108.0167, 43.4, 34.3, 101.383, 115.367, 104.1, 31.4, 112.0, 9.3169, 10.9631, 39.8, 146.3735, -99.8628, -99.8033, -98.8239, -81.9, -80.1825, -79.9567, -98.2333, 12.42, 12.42, 9.5403, 92.417, 132.1283, 132.1771, -74.781, -108.2, 121.933, -4.4, 146.1089, 102.3, 48.35, -107.35, -82.4261, 95.12, 39.527, 41.17, 140.117, -111.5978, -87.0939, -90.75, 9.2869, 7.6617, 10.065, -117.0833, -117.09, -117.0833, -117.9472, 10.7, 53.6331, 7.6092, 51.6667, 51.862, 31.47, 66.333, -113.9533, -3.2, 16.46, 16.45, 30.53, -96.1058, 8.1569, -106.0589, 121.8925, 121.8275, 121.7828, 121.8833, -42.25, -120.515, -42.8, -88.3, 24.6042, 24.8331, 24.7442, -71.35, -71.15, -123.4333, 21.07, -9.682, -79.8167, 102.37, 144.9066, 6.933, 6.967, -83.845, -74.2858, -73.1153, -73.1156, 6.23, 158.7, -122.3186, -106.0344, 29.87, -74.8289, -148.0256, -105.3611, -147.9242, -105.4858, -105.5108, -105.55, -103.0667, -102.9667, -102.9667, -126.55, -126.55, -94.7472, -94.7461, -110.2, -56.52, -108.7667, -0.621, 175.62, -129.6833, -104.9, -84.5333, -111.05, -84.65, 128.8792, -91.2628, 139.0847, -85.15, -95.5903, -85.09, -123.0833, -123.2206, 145.05, -92.4303, -89.2358, 21.6331, -115.9622, -112.1167, -99.6353, -147.1667, -85.9333, -96.2644, -116.0056, -115.0167, -118.7333, -115.0644, -93.7917, -124.1603, 145.5727, 3.275, -70.4825, -100.0536, -81.6833, 142.7333, -80.35, 10.5878, -94.0833, -92.6314, -75.1, -110.9508, -111.0306, -87.5783, -87.5206, -123.1033, 153.3964, -86.0, -98.1619, -85.2667, -92.5303, 16.6831, -91.6169, -109.7833, 16.5692, 11.143, -78.3653, -122.195, -122.2833, -122.2803, -81.3897, -81.3183, -86.9533, -105.315, -87.0333, -87.0442, -102.0667, -1.5739, 47.15, -7.9, -7.9, 1.2333, -158.0667, -157.9917, -89.1833, -98.3417, -103.37, -81.5, -3.42, -84.2842, -56.6, -106.6833, -115.2, 126.3008, -114.0264, 4.0119, -106.15, -71.45, -111.0, 0.35, 11.8858, 10.53, 24.933, 12.81, 9.233, 17.75, 14.13, 56.483, 6.95, 48.28, -147.51, -147.615, -147.8739, -147.8761, -147.7911, -97.1669, -117.65, -90.9667, -98.8833, -122.0678, -84.5894, -112.0944, -91.9553, -69.5833, -103.2247, -111.9855, -96.2078, -114.75, -76.2231, -88.3264, -114.79, -87.8808, -87.8758, -94.8333, -118.4297, -80.1333, -97.5928, -94.4656, -105.9936, 144.28, -84.1, -98.4833, -104.05, -118.3833, -98.4975, -118.4333, -87.1364, -118.3833, -1.633, -78.15, -102.0367, -102.0192, -65.6631, -25.65, 132.25, 13.37, -99.1372, -111.75, -95.3667, -99.1356, -98.1203, -117.2, 12.48, -119.4, 13.54, -86.8833, -117.1903, -120.05, 20.77, -105.1333, -118.7811, -118.7167, -76.4, -77.2, -123.4308, -123.4525, -95.5919, 147.2755, -78.6528, -73.3667, -85.3586, -119.0333, -71.1333, -121.6333, -96.0781, -121.435, -84.3283, -70.5167, 12.82, 15.6167, 33.95, -65.42, -64.6, 7.0, 5.3533, -119.4658, 110.77, 7.9058, -159.38, -126.0, -64.4, 47.821, 27.983, -154.0767, -153.8833, -153.6206, -82.5633, -82.3606, -96.8111, -93.2661, -87.3833, -92.4075, -88.7075, -73.4333, -73.4169, -90.4103, -111.8, -111.9, -83.3625, -64.6667, -70.1567, -111.9353, -93.17, -108.1667, -108.3086, -90.4, -111.8167, -90.0, -108.2292, -85.1483, -78.3864, -72.9, -111.6833, -105.0, -7.966, 19.16, 89.85, 18.96, -133.3667, -133.3833, -80.5167, -109.4453, 22.75, 48.315, -3.7689, 53.7167, 10.1833, 102.339, -99.1342, -118.0667, 25.32, 15.3038, -116.8989, -116.1, 19.167, 19.17, -91.0667, -87.8214, -92.7, -91.8158, -94.1667, -76.0167, -94.1694, -94.1744, -94.3, -78.8583, -78.8803, -86.5411, -91.05, -86.7167, -107.8639, 125.4, -104.3, 72.22, -81.5389, -38.96, 13.4389, 8.0044, 9.6, 11.9014, -87.9, -88.05, -102.72, 1.3, -80.65, -111.1167, -108.6764, -119.175, 109.5, 116.63, 91.417, -115.5347, -115.5356, -76.1356, -103.0667, 35.3831, 71.75, -96.1172, -80.3833, -80.3333, -5.2, -70.8333, -75.45, -67.0833, -81.4525, -32.417, -91.4947, -115.0667, -119.25, 145.3364, -123.3703, -57.1, 11.6208, -58.4, 170.817, -96.6608, -111.1325, -101.45, -99.6219, -90.3981, -5.0, 27.85, 29.1, 7.2794, 10.35, 13.717, -4.9828, 44.78, 47.112, 12.9553, 11.8392, 27.9, -116.4833, -118.6758, -122.3019, -85.4167, -2.583, -120.0067, 8.1125, -83.0831, 14.17, -112.3278, 17.91, -112.0333, -83.6686, -83.6622, -110.35, -123.3253, 147.9664, 30.15, 134.5667, 15.47, -1.0, 15.6098, 11.25, 11.3742, -121.6658, -120.1075, -71.2906, -97.55, -97.5333, -109.95, -109.5714, -118.6333, -116.0669, -116.0, -119.1783, -115.875, -122.35, -121.0667, -122.4167, -119.6519, -113.3978, 5.5817, -84.2833, -71.75, -71.7558, -96.7178, -83.2517, 125.5619, 125.5644, 146.0033, -133.6167, -110.2658, -117.9183, -113.8333, -120.1561, -110.4667, 47.15, 12.22, 10.1681, -103.0614, -111.7311, -111.675, -117.7289, -111.6664, 14.15, -80.9144, -109.4117, -96.5928, -101.2, -158.0, -97.0644, 12.73, 13.1153, -110.6, -113.85, -108.3725, -156.6139, -81.9136, -81.0925, -114.8989, 13.7833, 6.6498, -81.4167, -83.75, -74.8811, -102.8594, -120.3167, 9.4192, -82.4833, -82.5575, -73.0, 148.0024, -95.35, -89.6833, -83.7694, -83.7494, -112.1833, -101.6833, -101.8833, -101.6833, -92.6, 12.0125, 16.3997, -92.87, -88.4797, -86.3117, -36.81, -88.5758, -111.3881, -87.6833, -96.9242, -105.1333, 11.2, -88.2667, -88.2583, -79.8333, -124.0947, -79.74, -79.7239, 4.6608, -31.131, -44.41, -98.1628, -43.017, -48.567, -107.4833, 21.4, -105.285, 5.0278, 28.8, 12.3506, 12.27, -56.6833, -117.4039, -101.3339, -80.2908, 10.2, -73.8667, 9.849, -103.5333, 113.53, 15.6, 15.72, -54.3, -54.2833, -54.2667, 9.2831, -80.7833, -82.4333, 16.3097, -82.1278, -100.1369, 14.61, 14.43, -103.9167, -121.1833, -121.1667, -88.4533, -107.1667, -88.4669, -88.4864, 9.25, 10.5142, -117.5167, -64.65, -110.0564, -66.167, 147.9205, 148.0081, -103.6833, 5.9333, 5.85, -114.85, -88.1, -92.3989, -79.5144, -111.45, -111.4833, -89.4208, -82.0333, -98.0833, -112.1167, -110.1, -120.7317, -69.0833, -87.3967, -93.6306, -81.9311, -81.9889, -123.3333, -123.1025, -92.9125, -71.15, -71.15, -124.3539, -107.4536, 12.0556, -97.595, -58.228, -47.33, -46.25, 128.1092, 128.1139, -90.8, 16.9897, 13.53, 152.5089, -106.6744, -106.6167, -83.9417, -38.6, 113.5333, 146.265, -72.05, -114.8997, -131.4167, -111.8, 7.7005, -103.8056, 72.83, -81.6667, -114.9167, -114.9167, -126.6167, 26.633, -108.7189, -79.0644, -111.15, -111.1167, -111.1167, 76.233, -87.6258, -61.1, 100.37, -80.7694, -78.9667, -93.4167, -93.4333, -93.4333, -124.5833, -79.0, -128.6333, -128.65, -128.65, -12.7, -87.9667, -106.1614, -110.3442, -121.2417, 32.65, 12.48, -122.55, -104.5167, -123.4667, -123.4667, -146.45, -113.4, -113.3833, -69.05, -111.2167, -111.2167, -111.2167, -134.8833, -134.8667, 4.2, -122.6, -122.6, -100.3014, 30.3, -117.6, -117.6667, -103.8, -98.5333, -109.1667, -109.1667, -113.6667, -113.6833, -120.8417, -94.2, 69.5, -113.1833, 50.25, -98.3833, -121.2333, -121.35, -121.2333, -121.2333, -111.9333, -111.8667, -111.9667, -111.9333, -124.2833, -124.25, -120.7333, -78.4, -116.0333, -116.0333, -5.1, -145.2655, -120.2175, -68.283, -110.7703, -95.7244, -107.5667, -122.6728, -119.2461, -2.067, -85.4167, -93.3, -111.7131, -118.915, -122.2167, -110.2167, -112.0422, -87.3167, 132.4372, 141.7017, -98.8392, -92.2875, -105.1167, -101.5697, -106.15, -147.6261, -116.8167, -63.7833, -119.5681, -54.58, -71.4167, 9.4558, -70.8333, -47.433, -86.8872, 13.57, 13.4, -103.9167, -104.46, -93.341, 27.5, -75.7278, -83.1667, -96.4186, -86.21, -96.3503, -84.9033, -86.5067, -84.8825, 28.5, 8.6756, 14.5378, -96.4889, -83.3928, -86.5061, -84.3189, -98.9667, -79.8306, -71.6667, -90.1619, -90.18, -78.4633, -98.945, -79.3092, -86.0667, -91.5442, -111.6, -73.9, -71.6536, -86.8686, -86.0408, 145.1156, 8.0592, 16.21, -84.4167, -105.8172, -105.8333, 101.73, 21.517, -97.2167, -63.1667, -135.05, -124.85, -106.05, -113.055, -92.4667, -99.02, -77.4167, -98.9089, -77.45, -77.4508, -90.3086, -82.5333, -77.4389, -77.4667, -66.5333, -66.65, -66.6167, -66.6167, -66.6, -112.5258, -95.8328, -79.312, 18.42, 18.37, 14.4, -99.1128, -91.7028, -99.0108, -99.1422, -74.0667, -74.2511, -75.9, -87.3083, -78.7, -89.6167, -95.3808, -89.6039, -98.6175, -13.22, -76.3311, 7.9342, 13.3389, 7.85, 9.2494, 14.5, -72.8667, 115.75, -122.0158, -83.1189, -96.4669, -86.0264, -121.2122, -83.1719, -117.7111, -112.3347, -106.2, -68.3133, -112.9128, -166.2833, -80.0167, -119.7092, -119.7194, 8.41, -119.7072, -123.0231, 11.0406, 9.4417, -121.2667, 148.2794, -89.8308, -79.45, -97.2208, -123.3417, -102.7231, -113.2667, -87.4203, -108.9333, 9.283, -68.6, 148.84, -112.2, 43.7, -108.5667, 12.733, -78.1822, 13.28, 13.07, 14.49, -78.9333, -78.9358, -79.8186, 23.995, -111.2667, -108.7331, -108.3483, -110.85, -89.1667, -48.93, -72.98, -111.85, -103.3, -70.9475, 9.12, 9.27, -109.8014, -88.8589, -108.1514, -85.0, -110.6608, -120.1575, -123.7567, -123.8167, -78.9333, -110.4167, -96.0928, -87.4833, -104.7639, -104.8539, -123.8783, -105.0858, -105.0236, -103.8869, -109.0833, -86.5833, -94.2006, -109.8611, -76.6, -85.05, -85.0494, -76.75, -95.2333, -109.9428, -82.1378, -112.4133, -105.7414, -97.7167, -122.8478, -68.6136, -122.0833, -147.3408, -104.5333, -80.2011, -80.1061, -80.1708, -80.25, -80.1536, -94.9167, -77.3333, -92.105, -108.0514, -111.0939, -104.7833, -91.3339, -100.1103, -111.3833, -99.5167, -103.4775, -88.0167, -103.8156, -81.8614, -81.755, -85.7236, -106.45, -106.4117, -80.3508, -80.3767, -100.6592, -93.1833, -98.0333, -149.6503, -96.7667, -94.3656, -103.4617, -123.2447, -73.8, -94.7086, -98.4, -94.4, -94.3625, -94.15, -105.5167, -115.4667, -81.6167, -81.6289, -102.9153, -102.8833, -102.9167, -100.4333, -104.2319, -104.2503, -99.535, -109.9855, -105.0333, -111.7428, -83.8667, -108.8667, -85.2167, -85.1667, -85.2064, -108.5333, -97.3181, -97.3614, -97.35, -97.45, -97.4761, -97.3333, -97.2975, -100.6667, -145.2342, -175.15, 16.7481, 8.1033, 120.2, -13.8631, 20.155, 131.983, 138.436, 139.933, 128.833, 136.217, 130.383, 130.45, 140.433, 133.25, 9.65, -97.9761, -98.4, -117.9789, -91.9414, -76.3939, -88.4569, -90.1544, -76.3847, 179.2, 179.217, -16.8997, -16.767, -64.95, 5.0442, 11.2667, 13.3544, 21.23, 137.05, 139.35, 127.75, -178.117, 121.65, 115.83, 89.517, 119.283, 119.5, -0.667, 69.867, 10.1, 25.917, 149.9158, -74.1667, -123.7333, -99.1383, 75.633, 14.1594, 14.2239, -86.0, -85.9878, -85.9622, 8.823, -108.0867, -66.15, -66.45, -99.7689, -5.95, -6.0, -68.1333, -101.4539, -85.6553, -97.1447, -83.86, -82.4942, -88.1375, -82.3667, -97.0592, -83.8303, -88.1342, -82.2756, -82.35, 122.15, 54.35, -145.3, 28.02, -80.9139, -80.9183, 47.27, -107.63, -43.244, 127.833, -93.4661, -90.3861, -114.6667, -156.8756, -156.9344, -112.2292, -119.815, -114.7167, -90.3856, -82.8, 135.5648, 36.17, -58.2333, -93.9803, -111.2833, -105.55, 80.2, -90.3072, -82.1822, 20.65, -108.65, -108.7939, -108.703, 67.58, -23.5667, 22.7333, 10.1858, 100.133, -90.035, -94.8, -94.8592, -9.02, -171.75, -54.2167, 15.87, 15.85, -108.7667, 14.32, -109.5661, 46.4167, 23.93, -54.5667, -54.4833, -54.5833, -54.5667, 26.433, 73.917, 100.133, -86.2, -123.5, 128.868, -77.1, 49.267, -77.4, -98.9869, -99.0719, 119.133, 115.0, -0.005, -3.18, 112.47, 129.067, -36.517, -36.31, 11.4, -101.4814, -100.8667, -100.8122, -100.7247, -86.5483, -108.5667, 115.6839, -113.8667, -115.9694, 11.0803, -124.3, -69.7889, -110.7036, -124.1217, -122.75, -113.45, 49.08, 14.39, -112.1975, -72.5333, -113.9333, 62.333, 13.0119, 13.583, 39.633, -105.9167, -112.1517, 69.95, 11.067, 12.16, -78.6608, -116.0, -85.3, -81.2, -95.2178, -55.3667, 13.37, -85.1292, -81.1167, -85.1197, -114.0333, -101.4394, -101.4197, 13.4342, -71.3833, -115.8167, -81.55, -87.3833, -66.7333, 100.0, 53.97, -105.4481, 115.21, -64.4833, -64.4833, -123.9792, -80.7672, 43.767, -81.1433, -81.1558, -111.7792, -107.5133, -100.0569, -100.2667, -97.7019, -76.7167, -122.5167, -108.9722, -79.9542, -83.5369, 152.3289, 91.583, 7.2888, 8.6554, 45.1331, -106.9667, -97.4733, -70.7, 17.17, 17.16, 179.1, 3.45, 84.95, -94.2208, -84.7114, -84.7189, -84.7203, -84.7014, -119.3183, 151.6156, 151.6094, -90.8486, 29.867, 55.517, 37.37, 32.3, 18.4667, 18.6, 27.8, 18.6, -98.3217, 36.83, -88.4333, 35.4, 29.4, 144.3356, 144.3667, 146.9172, 146.9197, 8.2015, 7.95, 148.2625, 11.433, 38.017, -97.45, 143.539, 9.2, -112.1833, 36.05, 29.67, 20.02, 20.6, -119.1403, 12.65, 22.5, -66.844, -62.73, -64.6, -72.031, -99.18, -101.47, -63.794, -111.048, -64.689, -99.75, -100.1, -57.63, -63.758, -98.1611, -90.1486, -85.87, -97.5964, 13.03, -85.8708, -81.0, -77.0, -77.0308, -111.7333, 6.1331, 6.15, 99.4, 22.45, -103.4958, -97.7644, -91.2294, 8.93, 12.167, -92.3606, -57.3, -78.489, 125.183, 22.4, 138.393, -58.25, -58.15, -97.6833, -120.8333, -105.6997, -79.95, -96.7758, -79.2239, -85.0375, -75.45, 143.5306, -79.3228, -14.77, -97.7172, 143.55, 143.5483, -120.8008, -75.3592, -79.8833, -72.2333, 22.383, -144.3503, -97.6167, -74.9333, -98.1167, -91.3333, -110.2669, -110.1667, -86.95, -86.9333, 114.6975, 114.605, 12.13, -121.1314, -121.1333, -121.1389, -119.3514, -124.7, -88.1222, -84.3333, -89.743, 11.1331, 8.5306, 9.9156, 1.0, 130.833, -60.6667, -77.2333, -99.9403, -100.2175, -100.2333, -118.4794, 101.483, -114.6361, 9.715, 21.65, 3.8, 10.143, 1.9, 50.047, 10.268, 35.467, -114.9333, 0.147, -118.7667, -113.9275, -115.2111, 18.075, -5.35, -123.5167, -123.5333, -88.3653, -112.7536, 15.07, 8.6506, 136.767, 41.35, 24.533, -5.6417, -5.6983, -112.7131, -112.7167, -108.2075, -92.7161, -88.3333, -88.2678, -100.4667, -110.3022, 128.28, -110.85, 128.301, 148.6625, -178.6, -94.7, -94.7, -94.7167, -116.9667, -82.05, -105.7167, -105.4919, -105.5419, -83.65, -95.0497, -94.9447, -147.5211, -121.5608, 145.9833, 9.0503, 4.9353, -83.1431, -97.0167, -97.05, -97.05, -96.9833, -97.05, -111.5881, 115.8642, 16.93, -94.8392, -74.8, 152.3, -113.9203, 38.383, 2.8242, 2.7631, 177.983, -111.1667, 42.5, 31.21, 8.45, 7.1703, 25.3667, 20.15, -95.85, -95.85, -95.85, -117.4833, -135.8692, -117.7, -117.5167, -121.9372, -86.4175, -94.96, -109.0528, 16.46, -97.8, 151.2214, -91.0233, 151.2628, -99.0167, -84.4908, -79.7172, -101.81, -81.2, 13.05, 9.06, -85.9, -85.9072, -4.3, -106.6383, -106.6213, -108.2667, -75.0953, 52.583, -112.6681, -56.5, -113.05, -112.9333, 15.7081, -9.7167, -99.3333, -119.9411, -76.5, -71.9, -94.1333, -104.7183, -111.15, -105.0833, -114.5167, -114.5333, -9.5458, -73.9333, -97.1167, -4.1858, 153.0, -145.5328, -83.7022, -115.3231, -118.7006, -81.9522, -118.7333, -76.8042, -122.1383, -123.55, -105.8167, -105.7878, -73.6167, -73.6781, -73.65, -8.2858, -87.8333, -80.8325, -108.8794, -54.85, -54.8667, -121.2633, -95.4392, -95.7736, -155.1414, -107.3172, -112.7006, -80.7167, -149.6936, 26.33, -105.1, -98.315, -74.5333, -78.6014, 151.6936, 151.694, 152.0936, 151.7366, 117.1667, -80.8597, -97.7853, -82.1856, -90.0, -110.7711, -110.7933, -110.6519, -110.7833, 13.9831, 12.36, 19.67, -107.35, -74.3592, 9.4306, 140.1251, 104.3, 1.255, 73.817, 15.05, 18.967, -63.0, -70.167, -110.7078, -67.6167, 43.583, 14.63, 15.17, -81.7, -81.7167, -81.7, -81.7, -76.6333, -85.9667, 13.8, 9.95, -4.0197, 26.97, -49.25, -49.217, -34.59, -50.13, 25.9, 35.7, 36.5, 28.933, -117.4922, -88.4894, 29.833, 12.1, -111.3994, -91.0222, -120.8428, -120.8167, -116.9833, -88.0139, -109.8, -62.6833, -117.2331, -77.9647, -77.9919, -118.4167, 119.5206, -98.5903, -124.4242, -118.2833, 153.4283, -113.8333, -121.5, -148.4622, -118.4636, -126.05, -114.8667, -120.8567, -112.0917, -97.385, 10.1928, 94.9, 94.5, -86.853, 8.9475, 30.95, 31.0, -99.03, 37.417, 27.7, 100.783, -97.4597, -97.45, -53.9667, -119.7667, -114.7167, -101.7, -100.6, -88.3603, -145.2669, -83.5097, -95.8744, -86.05, -101.595, -101.6181, -113.3, -123.8903, -129.2833, -102.6667, 30.48, 138.7989, 116.8269, 150.3256, 150.3075, -111.6833, -60.4167, -94.9667, -113.8958, -116.8458, 43.817, 83.367, 119.217, -76.3333, -91.8047, -78.15, -102.2036, -120.8961, -3.1, 35.533, -85.2667, 35.6, -78.2667, -82.4667, -82.5667, -82.5667, -82.5667, 54.401, 136.8, 108.283, 30.933, 1.72, 14.9531, -79.3833, 41.967, 145.38, 123.05, -92.8828, 15.28, 126.163, 151.3289, -85.8825, -85.7922, 115.9839, 15.3667, 11.3075, 11.9942, -100.1514, 35.8164, 19.2, 19.1975, 12.5403, 0.46, -9.883, 149.8667, 149.7312, 149.7034, -75.45, -112.0667, -106.0056, 1.4, 10.3, -75.5122, -107.3667, -121.7417, -112.6667, -100.5533, 136.8203, 8.1, -78.9333, -59.3, 47.75, 32.3, 24.533, -111.7275, -111.8547, 7.8331, 15.01, 11.2253, -73.4667, -71.95, -97.4247, -80.0, 153.0297, 152.9278, 152.9605, -87.9553, -98.5669, 26.5, -90.5833, -115.2667, -134.1833, 13.6306, -46.27, -58.833, 10.6806, 14.3742, 142.6039, 17.63, -3.6314, -3.617, -3.7892, -97.75, -72.7167, -122.5772, -69.5167, -72.9333, -119.1, -118.8833, -64.5333, -65.15, -102.8222, -81.8311, -82.0439, -98.7444, -81.0678, -55.7667, -93.8, -112.1333, -112.1333, -112.1333, -112.1503, -112.1547, -89.0422, -92.0442, -67.7333, -55.6667, -67.7, -70.1167, -118.4667, -97.4, -97.1839, -118.4667, -97.0981, -86.2244, -98.32, -98.35, -98.35, -98.3136, -89.9914, -108.4664, -108.54, -108.5247, -77.3667, -105.8322, -105.8667, -67.7742, -66.7667, -66.8, -90.3444, -90.3283, -85.95, -92.5644, -123.0333, -89.6908, -85.5447, -99.2667, -98.35, -99.2667, -99.2833, -85.6667, -85.6667, 32.45, -95.05, -89.3, -93.4975, -108.05, -80.3333, -116.1772, -97.3211, -116.1175, -115.9333, -118.5, -149.287, -110.4333, -95.5517, -117.0258, -117.5667, -111.7, -100.15, -94.3333, -105.6786, -59.483, -92.6886, -92.6833, -79.15, -81.0844, -112.5075, -107.8992, -107.8992, -123.3236, -113.3167, -94.4139, -118.9631, -109.3833, -82.5167, -100.8439, 6.805, -106.0931, -83.5167, -95.4833, -122.8667, -97.0553, -143.2833, -115.8833, -115.0667, -120.7844, -103.2072, -110.8333, -111.7333, -117.395, -125.9167, -108.65, -108.8031, -98.9667, -121.0667, -120.7667, -121.0681, -75.4353, -82.2, -122.8647, -106.55, -79.3667, -79.4, -94.4481, -114.7667, -107.2333, -111.3667, -70.2544, -106.5333, -121.0833, -124.0864, -84.6994, -82.9075, -82.9747, -98.1667, -79.9167, -123.5603, -87.9989, -122.5833, -83.95, 15.45, 14.082, 15.4333, -73.35, -73.35, -114.2206, -98.7803, -76.5542, -107.8533, -82.95, -77.25, -96.0, -111.2781, -95.9833, -111.3822, -111.3847, 27.1, -98.1331, -105.5119, -63.6167, -58.967, 9.2631, -104.6833, -98.5331, -104.6992, -84.65, -78.2786, -76.8833, -92.3619, -86.8767, -82.8436, -85.7611, -94.4561, -72.6, -83.4056, -73.8333, -72.5975, -70.8333, -89.1006, -116.8667, -121.7, -72.3731, -87.5814, -83.2167, -79.8167, -87.6225, -79.8047, -90.6667, -85.5022, -99.3022, -85.4892, -79.55, -79.5, -76.8917, -86.6086, -84.735, -91.06, -82.3628, -82.3833, -77.3983, -89.405, -120.9506, -71.5667, -69.5833, -77.3833, -80.3667, -85.2422, -87.2167, -90.45, -90.9853, -82.3461, -87.2028, -96.0983, -69.5953, -96.1639, -82.35, -84.65, -82.3833, -121.6333, -73.5, 0.0, -82.1711, -98.3667, -118.6833, -75.5761, -82.035, -64.9167, -82.1592, -90.0867, -88.1111, -88.0981, -88.1119, 150.0504, 150.0497, -92.9492, -81.0167, 145.9719, -130.7, -121.1667, -115.5333, -92.2, -106.3333, -109.4703, -110.1544, -120.5, -77.9167, -80.8667, -110.9978, -109.4519, -82.2203, -91.9997, -109.45, -99.4339, 13.4075, 13.917, 12.1792, -89.8136, -75.85, -102.9333, 148.1718, 5.33, -96.4483, -103.9333, -103.6192, -96.1922, -97.5667, -108.0411, -108.0822, -108.6667, -130.7, 34.8164, -84.2667, -74.5333, -75.4, 146.0695, 146.0667, -90.7086, 12.39, -79.5667, -79.5667, -79.5833, 8.3331, -18.017, -61.8667, -92.7489, -82.9, -3.02, -120.9389, -123.9089, -105.8667, 24.05, -96.5333, 6.55, -112.45, 136.4631, 18.117, 25.03, 8.2356, 13.1353, 13.2817, 11.072, -83.1667, -82.8892, 16.5592, 12.3256, -105.3503, -110.1333, -72.0389, -71.5833, -72.0494, 14.7833, -121.4167, -116.15, -113.5472, -120.4833, -113.8694, -94.7681, 144.3345, -118.8, -71.0425, -120.2258, -104.4, -110.9167, -92.5931, -95.1461, -62.2, -80.0733, 147.0772, 147.0742, 45.6831, 13.933, 9.1889, 12.86, -82.0894, -92.7594, -101.405, -36.5, -80.2167, -107.7, -99.15, -103.38, -3.1742, -3.1642, -103.38, 160.05, -79.48, -106.97, -104.8253, -54.25, 103.27, -58.613, 144.7961, 144.9167, -105.97, -105.96, -85.92, -101.283, -69.755, 116.33, 111.667, 105.07, 113.483, -75.15, -68.87, -39.0, -39.54, -45.2, -35.29, -7.3, 9.4, -131.8833, -46.46, -70.756, -90.5275, -90.6, -66.0875, -65.349, -110.88, 48.517, 15.56, 35.3, 46.1, 148.9833, 7.467, -80.2167, -80.2333, -80.2167, 6.777, -105.2833, -2.6, -104.7667, -105.3925, -23.933, 137.533, 12.73, 110.3, 100.75, -82.59, -4.419, 110.083, -62.317, -62.3, 106.733, 26.717, 73.55, -89.0808, -89.1228, 149.5329, -145.4589, -136.15, -108.4667, -94.3608, -85.3828, 9.6067, 32.33, 32.3, 73.45, 43.83, 39.467, -92.7672, 77.317, 148.1039, 148.1075, 29.1, -90.8842, 17.7083, 17.7, 16.53, 150.2494, 150.254, 150.2687, -111.8167, -106.9672, -112.5833, -106.3292, -109.8667, -86.3297, -86.3294, -97.1667, 51.85, -65.9922, 37.279, 149.8369, -8.01, 40.65, 68.83, 115.67, 17.4697, -62.85, -113.3, 18.37, 13.8, -135.7089, 8.3553, -100.3369, -97.4797, -97.395, -109.3092, -94.4972, -97.4142, 8.6197, -91.0958, -113.9333, -79.8, -101.4781, -101.5053, 151.6787, 151.6714, 66.267, 9.1831, 9.2017, 9.2014, 136.183, 78.25, 29.75, -5.667, 29.85, -87.4, -113.1833, 152.6414, 17.67, -98.7333, -106.9731, 62.35, 56.28, 38.195, 25.3331, 25.4281, 25.605, 135.1167, 43.52, 141.7, 139.783, 141.517, -108.3247, 35.3, -99.0, -96.117, -93.4019, -80.3822, -112.6167, 98.817, 33.983, 32.5, 125.7, 126.57, -107.3667, 49.6, -119.9333, 10.7717, 7.4903, -104.3333, -114.9239, -77.7333, -77.7297, -80.0667, -80.0833, -121.6306, 131.243, 14.14, -106.4833, 7.2644, 71.3, -132.6983, 34.98, -101.9408, 110.25, -156.3167, 41.683, 119.7, -79.6333, -114.3333, 106.383, 126.967, 24.7314, -155.4667, -135.4494, -136.3614, -135.5094, -136.4667, -137.5833, -135.45, 104.33, -117.9528, 121.17, 106.6833, 10.8645, -155.1333, -155.3306, -156.5711, 43.767, 140.75, 22.9223, 11.3865, -156.3, -156.2469, 78.32, -2.075, -88.0297, -87.6353, -83.7217, 35.6, -117.1094, -122.4433, -78.5333, -78.5833, -63.6, -63.5667, -78.9167, -63.5833, -63.5167, -63.5, 106.9, 108.517, -112.1667, 12.55, 11.9506, -96.9397, -26.217, 15.33, 19.63, 11.22, -96.9406, -89.4333, -94.5889, 127.6636, 127.6625, 13.04, 15.5, -81.25, -81.25, -81.25, 12.92, 12.92, 12.83, -100.3167, 24.4478, 24.1667, 9.4063, 36.75, 132.067, 137.717, 11.0694, 103.6, 11.0978, 81.133, -83.2772, -75.9914, 10.2428, 9.99, 9.8983, -99.6167, 48.533, 48.6833, 24.4944, 24.45, 25.1358, 25.04, 25.0419, 114.1667, 9.4081, -112.2642, 127.55, 93.517, 142.0167, -64.78, -75.5333, -79.9, -114.1642, -63.8, -98.0853, -94.0347, -87.9914, -79.9333, -122.5167, 142.0636, -84.5247, -84.5833, 148.9536, 148.9508, -79.7667, -79.9, -79.8833, -79.9167, 142.0644, -100.6167, -79.6922, -82.1114, 19.135, 23.6769, 14.7831, -90.4731, -87.5, -90.3772, -74.8072, -99.3953, -98.6236, -104.7333, -0.1789, -72.0531, -93.2011, -81.1244, -76.3367, 14.99, -110.6833, 44.43, -169.933, 8.9667, -155.9833, -156.0153, -105.1333, -86.7911, -78.1775, -89.5358, -88.4889, -89.4133, -102.8667, -114.8333, -122.5167, -122.55, -122.5667, -122.5833, -122.5833, -122.55, -119.6369, -119.5833, -119.6289, 11.97, 120.167, 10.6, -96.9, 114.3, 22.9667, 22.9517, 22.9156, 23.2517, -110.7153, -95.8897, -110.7586, -111.85, -109.3, -98.6833, -91.3333, -80.8667, -91.3719, 9.6794, 105.85, -76.9833, -84.2167, -72.2856, -81.0, -77.0325, 14.85, -99.3464, -106.9833, -110.18, 69.1167, 107.033, -140.9611, 24.1439, 24.12, 128.17, -123.3758, -111.4167, -111.4139, 21.63, 68.73, 31.02, 31.133, 38.95, -10.42, 126.767, 126.6, -105.8328, -82.6428, -55.8333, -56.5167, -53.2, 10.7, -65.2667, -107.6092, -86.4622, -86.4228, -119.6833, -111.7167, -111.5667, -65.9167, -91.5056, 6.0022, 44.08, 72.92, -73.5667, -95.2875, -99.2133, -108.7964, -108.6775, -97.6728, -97.6542, -109.8311, -116.8675, -114.3833, -118.9333, 18.0597, 17.9331, -117.6167, -77.7333, 12.5123, -84.55, -101.2567, -118.2519, -63.1667, -74.6333, -59.5, 152.6827, -107.5833, -88.5244, -76.8833, -103.9542, -76.8703, -76.8514, -82.7167, -93.1061, -74.1567, -103.8842, -94.3567, -84.8, -103.7364, -103.9219, -103.7867, -93.1567, -81.0486, -83.3, -83.2808, -112.5833, -99.8033, -82.9, -82.9, -121.383, 18.12, 17.0106, -102.1175, -70.3164, -88.4114, -72.6825, -72.6506, -85.2892, -97.2608, -76.6833, -102.385, -129.25, -119.1111, -80.0486, -86.1808, -120.65, -82.93, -82.8342, 146.7683, -86.4239, -60.9833, -119.6556, 115.8806, -105.4667, -99.8758, -67.0333, -67.0, 153.2533, 11.133, 35.5, 119.554, 9.605, -99.735, -96.9575, 10.8642, 3.283, 2.9, 12.82, 15.57, -80.6667, -85.2875, 0.5717, -98.3836, -81.4697, -121.5517, 146.8731, -92.8689, -98.4272, 102.4667, -107.1958, 123.8, -90.7314, 100.15, -68.96, -75.7167, 13.9833, -89.3392, -89.2531, -118.6525, 24.2331, 175.2, 124.83, -122.25, -121.5433, -121.5833, -104.3167, -100.0833, 100.433, -115.4225, 7.5, 7.825, 5.1978, 24.5831, 13.0683, -64.7667, -82.37, -90.05, -90.0656, -114.5617, -65.35, -71.0603, -109.7617, -61.8, -109.7633, -63.6, -63.5833, -63.6167, -109.6667, 122.97, -155.2561, -96.485, -3.0281, -57.1833, 138.435, -122.9169, -83.4681, -115.95, -117.3, -75.1653, -75.1833, -96.25, -122.835, -109.75, -118.6292, -118.6667, -118.3342, -106.7, -161.155, -107.2547, -110.8833, -83.2167, -83.7667, -101.0344, -152.0758, -115.6289, -123.2122, -123.165, -0.9839, -86.5833, -99.3169, -108.7, -111.8, -121.13, -97.3142, -99.3358, -122.115, -91.4442, -91.5075, -120.9, 144.8545, -115.95, -115.7833, -115.7833, -116.0, -102.6928, -102.6944, -114.1378, -100.3486, -127.7333, -90.3939, -82.5808, -90.4542, 105.767, 104.9833, -79.2, -85.3397, -115.8086, -122.1547, -122.8731, -97.4203, 145.5333, -100.6197, -148.9942, 73.4, 73.717, -121.1683, -53.3833, -101.8075, -108.9558, -79.8333, -0.461, -61.7, -80.6667, -119.9, -98.6775, -110.75, -111.4261, -110.5644, -110.5581, -111.3392, -111.1006, 35.13, -97.5903, -102.0383, -90.13, 108.05, 8.9808, -105.1667, -93.0, 13.52, 13.67, -120.0833, -120.0167, 117.233, -120.1833, -85.6006, -121.4908, -83.7667, 8.65, 10.1331, 7.9956, 9.2342, 11.5208, 6.2589, 26.0528, 6.1044, 17.8372, 103.95, 18.8167, -115.0, 18.71, -83.7261, -86.8336, -90.59, -98.2661, -112.0017, -111.9636, -112.0333, 7.8931, 6.52, 6.8667, 13.9246, 23.75, 4.7106, -121.45, -114.6278, -120.4217, 10.9603, -144.1225, 26.23, 12.69, 12.77, 24.9667, 24.9783, 24.93, 25.0494, 24.9167, 25.0708, 24.95, 24.9167, 24.9642, 25.0481, 25.0831, 25.0331, -110.7833, 31.333, 31.34, -111.2167, 15.0853, -116.8939, -103.0733, 18.53, 18.55, -77.6083, -115.6333, -85.8833, -73.7167, -72.6, -96.0833, -73.6333, -73.6667, 1.683, 18.38, 101.6, -94.7964, -82.4492, -78.4119, -88.7244, -87.6456, -94.8, -118.45, 25.52, -111.5, 120.8, 112.62, 34.8167, -89.3381, -97.835, -98.2003, 20.4, -1.017, -111.4361, -85.7667, -116.7614, -119.5639, 111.15, 25.1831, 62.228, 145.38, 145.3869, -107.2667, -127.6333, -102.4003, -103.1086, -145.0, 8.6875, -96.9494, -125.2, 10.1717, -88.375, -98.371, 10.2692, -119.2636, -119.312, -119.2611, 152.1003, -93.3167, -107.1097, -107.7333, -103.2131, -120.8558, -90.0103, -116.0014, 151.9131, -72.6, 15.22, 10.6917, 14.75, 18.92, -138.9167, 6.5531, -100.9775, 0.333, 7.1556, 152.8817, -72.4667, 5.1453, 10.3717, -86.1056, -114.4833, 9.2881, 13.53, -119.7831, -102.6442, -102.6472, -102.6547, -103.15, -110.4833, -110.4806, -96.2833, 114.733, 141.6316, 115.53, 115.433, 102.9, -80.2858, -111.0167, -92.8389, -92.8347, -92.9667, -109.9667, -107.9333, -89.1667, -81.35, -81.3819, -89.1911, -86.35, -84.7475, -98.0311, -99.43, -105.667, -134.877, -116.7667, -17.8889, -93.7075, -84.75, -83.1983, -83.2178, -86.2503, -86.3131, -86.3114, -121.0, -121.0167, -99.455, -99.4894, -74.5642, -114.4667, -88.8647, -75.65, -75.65, -84.7167, -122.8083, -117.1667, -117.1667, -0.6417, -79.9722, -123.3794, -74.6714, -116.5167, -116.4833, -118.1, -114.1667, -119.0383, -82.5972, -176.167, -115.2236, 136.25, -62.62, 6.3239, 7.6533, -97.6833, -101.8683, -122.8, -81.9333, -109.7167, -97.1094, -107.5656, -89.4919, -83.6092, -90.3333, -90.3339, -122.99, -6.07, -97.0664, -84.6411, -94.89, -113.5167, -112.8881, 25.45, 145.5249, -110.42, -100.55, -103.5594, -99.8278, -115.0733, -93.6042, -99.8297, -81.0167, 110.47, -155.0828, -155.0833, -155.0531, -77.7833, -80.75, -113.4667, -122.6333, 134.667, 126.333, -92.9928, -75.15, 10.57, -82.9833, 138.8177, 67.87, -92.75, -70.9125, -87.905, 41.7, -107.05, -107.1533, 8.1064, -117.5667, -80.8833, -98.4814, -117.5333, 129.55, -81.0133, -70.8, 143.317, 132.467, 75.733, 130.933, -110.4333, -110.3878, 130.75, 60.4, -139.033, -122.7, 6.9325, 7.2107, 9.5423, 111.6167, 147.5, -87.2881, -99.0528, 147.5033, 147.3278, -99.0525, -103.1314, -103.3539, -103.2125, -109.1, 86.18, 85.717, 18.1664, -85.735, -93.3911, -97.4667, -148.6767, 31.03, 4.1217, 11.8775, 9.4794, 10.5167, -77.3031, -77.3219, 11.9092, 6.8625, -155.6667, -84.45, -121.8667, 15.92, 13.75, -82.1836, 15.69, 22.4, 11.0117, -87.5414, 111.683, 9.5392, -106.0003, 31.367, 170.983, 21.31, 13.02, 13.8, 11.6, -128.0, -127.9833, -110.1544, -91.1269, -120.7833, -96.3861, -96.3561, -112.25, -120.7736, -105.5167, -99.3803, 17.57, -115.05, -110.2, -84.15, 17.44, 12.58, -76.7683, -122.5667, -130.3667, -86.0967, -86.205, 12.8658, -70.675, -132.6222, -93.2333, -114.5739, -121.4167, -121.4214, -121.3622, -99.8136, 25.5831, -106.1, -102.1317, -123.1833, -80.1342, -80.2411, -80.4211, -89.4333, -89.4347, -89.4347, 31.183, 16.82, -117.7833, -117.8, 10.6667, 20.7564, 41.667, 20.8692, 142.05, -95.5489, 150.9254, -112.0122, -95.755, -76.3333, -155.9078, -102.3411, -53.1, -53.1333, -159.7667, 13.1681, 11.6975, 9.0042, -1.683, 7.3567, -116.9211, -82.8003, -93.0625, -151.6333, -151.6347, -151.3256, -151.2083, -151.4908, -80.3833, -80.5, -80.55, 104.37, 15.95, 74.45, -99.1383, -99.1742, -77.5136, -124.1069, -73.6833, 148.9833, -79.8667, -70.85, 127.8667, 114.167, 159.967, 160.0, 0.767, 25.9781, -156.6817, -157.9294, -157.9992, -157.8667, -156.1833, -155.15, -115.0333, -163.4081, -121.5175, 6.5731, -101.2103, -135.4278, -135.1333, -123.6667, -123.6714, -87.685, 25.9, 5.3456, -72.9667, -106.0667, -103.2792, 41.4, -104.7386, -121.5, -121.4833, -149.6286, -60.2167, 25.0667, 142.3569, 120.1283, -106.2667, -77.2775, -100.8667, -75.8856, -93.5564, -121.4833, -121.4, -121.4167, -121.2333, -110.2069, -87.5206, -110.88, -123.0806, 7.55, -123.8833, -123.9303, 42.2, -115.2, 13.67, -99.5606, -88.6325, 109.783, 11.6992, -15.227, -79.85, -84.8, 8.2042, 15.87, 142.29, -121.4167, -121.3667, -115.2278, -110.4961, -105.2333, -122.4003, -112.6508, -121.2, -120.5028, -111.45, -110.8617, -115.9092, 142.1731, 142.0687, 150.8567, -28.63, -28.72, 10.4667, -95.52, -114.7561, 17.467, 59.3831, 79.933, 147.15, 16.21, 16.2397, -82.8311, -79.8317, -115.7, -103.4739, -114.6833, -93.0486, -82.8333, -93.06, -114.6694, -106.15, 35.85, -84.7747, -84.8922, -84.6739, -67.8333, -67.8417, -67.7928, -90.8161, -105.6319, -129.1333, -111.9781, -88.9867, -91.9625, -126.6667, -95.2417, -95.1667, -95.2819, -95.5561, -95.36, -95.0833, -95.28, -95.15, -95.6564, -95.3667, 69.95, 91.567, -109.075, 109.6, -96.2714, -97.5242, -85.4833, -122.3814, -85.4167, -113.0033, -97.0031, -113.6167, -83.9325, -123.3, -117.0, -100.4397, 14.2442, -83.7667, -66.5667, -121.4219, -92.1333, 39.2, -121.0833, 15.85, 114.0, 126.75, -97.6, 115.5, 105.0, 15.75, -75.233, 115.05, 121.42, 118.15, -75.75, -77.5, -98.05, 99.95, 121.6, 110.08, -103.3333, -74.6333, -121.5833, 17.1, -98.6592, -81.25, -73.7833, -71.4147, -102.3167, -102.4, -102.3167, -102.5833, -102.3167, -73.8, -121.9, -122.2, -101.1772, 11.43, -91.467, -98.41, -6.9492, -6.9094, -0.3264, -110.9667, 144.2333, 144.1986, -154.2333, -107.9167, -95.5381, -101.34, -103.4897, -99.65, 126.25, 102.25, 117.533, -92.78, -108.36, 22.7831, -99.35, 103.28, 102.767, -96.1, 135.083, -104.6028, 132.97, -0.3667, -122.95, 126.65, -65.8167, -95.4456, -87.8667, -105.1, -105.1167, -94.2, -94.2689, -115.7833, -94.2203, -112.3006, 147.0329, 7.4844, -78.2333, -123.9897, 71.333, 15.1, 15.09, -114.0217, -114.0575, 107.2, 12.94, 7.2667, -98.3933, 147.5394, -106.95, -108.3167, -117.4736, -63.3333, -86.95, -78.0025, -74.1667, -88.4253, -85.4981, -85.5, -117.255, -0.2167, -82.3667, -82.45, -119.2206, -82.5267, -82.555, -76.6167, -109.3167, -108.2444, -107.0889, -95.5422, -93.7333, -79.25, -93.7522, -86.5833, -86.7861, -111.7131, -95.5861, -95.4, -79.1667, -99.505, 116.333, 6.6567, 18.1831, -100.0167, 33.7167, -90.1956, -119.5678, -98.1989, -81.5, -98.2231, -113.2072, 18.84, 14.29, -112.5, 7.15, -88.6006, 9.0572, 102.7, -97.9125, -97.9336, -98.0297, -94.3675, -97.8606, -92.1833, 107.333, 16.45, -19.5667, 34.533, 27.0, -70.3039, -101.75, -70.28, -94.4, -107.5833, 118.8983, -83.3667, -130.0269, 68.417, 128.167, 7.5, 6.3667, -78.7333, -114.1667, -80.05, 28.2367, -107.2278, -107.1375, 24.8064, 107.755, 27.6331, -69.18, 119.97, 3.88, -75.2, -113.9886, -78.12, -73.25, -44.41, -44.05, -53.11, 1.3842, 58.5, 56.433, 136.417, 155.5831, -118.8786, 127.43, -94.8278, -115.8319, -112.0125, -111.7847, -112.6833, -112.9422, -112.0672, -105.5167, -102.2939, -107.6667, -95.515, 15.23, -122.9653, 12.86, 12.3, -120.6667, 92.133, 12.2117, 17.0797, -116.7067, 25.73, -47.8, 86.57, 44.03, -81.8, -81.8167, -91.65, -92.0, -107.6264, -107.5333, -103.98, 122.4, -42.18, -99.52, -99.53, -47.55, -39.3, -54.467, 43.92, 7.6328, 137.817, 130.699, 106.17, 100.083, -43.1667, 32.5, 46.433, -81.4333, -61.7667, -61.7833, 47.283, -70.3833, -64.2, -68.9, 51.0, -3.5017, 40.333, 42.717, -69.55, 31.9, -39.067, -109.81, -154.9089, 168.97, 168.23, -124.0575, -108.3667, -91.0094, -123.6853, 8.42, 8.623, 122.567, 30.9331, 30.9778, 31.0619, 31.0475, 31.25, 4.494, 11.2028, -51.1, -51.05, -51.0667, 142.2164, -71.07, 59.08, -118.1631, -114.1597, -81.4406, 11.7128, -47.5, 8.04, -115.5667, -100.65, -101.655, -105.5333, -117.1167, -115.5786, -101.62, -47.3, 18.067, 18.07, 93.9, 127.28, 126.35, 136.5, 25.7406, 27.4181, 27.27, 28.8992, 28.8475, 27.3831, 28.3039, 28.3031, 28.3053, 27.4489, 27.4175, 27.7608, 28.5975, 28.6331, 27.1228, 27.4964, -118.2167, 126.633, 35.4333, -49.217, -118.2036, -95.7003, -94.3861, -91.9014, -91.8781, -89.8214, -94.3833, -120.2833, -120.2833, -120.3167, -106.6167, -79.1667, -86.2803, -86.2958, -86.1667, -86.1853, -86.0678, -79.1186, -87.0881, -93.6481, -114.1667, -95.2, -53.8833, -110.75, -80.45, -115.55, -110.6833, -83.8083, -103.65, -103.6833, -64.7333, -74.2692, -81.3333, -74.7883, -153.6833, -153.7, -115.6667, -121.5383, 48.77, -116.2153, 75.8, 5.9909, 33.78, -82.5194, 121.65, 101.98, -109.35, 9.6531, 9.705, -90.5, -124.9, 146.1769, 150.9333, 11.5333, -107.2039, -107.3167, -60.4, -60.4, 24.2, 35.383, 35.02, 128.17, 148.5669, 24.0169, -112.1, -113.7333, 146.0345, 11.4, 18.267, -78.12, -157.8667, -121.5333, -108.2833, -81.6667, -101.9414, 7.87, -93.3981, 26.017, -154.4983, -78.0833, -78.0833, -78.0833, -133.4833, -133.4833, -133.5167, -133.5167, 168.333, 151.1114, 151.1121, 151.0819, -116.0333, -4.2231, -82.3125, -78.05, -96.4667, -117.8214, 46.4, 9.6331, 5.767, 2.5, -95.4, -95.4242, -85.0778, -91.505, -91.5431, -93.2536, -120.8406, -98.65, -48.167, 101.1, 26.4, 152.7608, -99.0383, -68.55, -68.55, -68.55, -70.15, -70.1, -73.3, 55.4, -53.233, 137.1, 60.72, -101.35, -111.25, -50.633, 95.467, 35.85, -41.867, 61.2667, 72.633, 35.7, 123.459, -121.95, 104.35, -117.9964, -82.6833, -90.1892, -95.9167, -115.1219, -88.1144, -88.0842, -88.6333, -91.4, -111.0, -112.7333, -112.5019, -80.6667, 138.85, 75.45, 139.4167, -110.2667, -117.7231, -86.2833, -83.4833, -79.7, -83.2389, -111.3, -67.0525, -91.3753, -91.4083, -79.57, -103.5333, -103.55, 68.35, 69.43, 43.66, 7.7653, 69.52, 70.1, 70.6, 13.6331, 124.187, 141.3, -87.65, -87.6894, 89.049, 71.25, 37.583, 27.7, 144.4406, 125.3167, 71.567, 111.673, 68.38, 36.154, -130.0167, 36.6, -80.6364, -71.4667, -81.3667, -102.35, -102.4333, -102.35, -94.65, -111.3833, -111.3714, -111.3833, -71.8903, -109.433, -109.43, -74.75, -78.87, -73.9, -73.53, -110.95, -93.5014, -58.9667, -71.6333, -73.1017, 32.2297, 8.3, 9.83, 9.9, 15.2, 30.55, 41.0, 77.47, 29.0831, 26.65, 29.15, 12.083, 111.52, -37.81, -40.28, -58.481, -55.983, -42.85, -41.883, -95.19, -95.1919, 121.85, -76.2461, -76.4492, -40.11, -21.95, -41.3, -49.52, -49.21, 9.567, -88.1958, -88.9703, 25.35, -50.86, 24.333, 27.4331, -85.1167, -106.55, 144.3088, 144.2995, 40.967, 24.7, 60.45, -48.1167, -53.933, 107.3, -128.4, -140.15, 132.2333, 141.783, 131.783, 141.3167, -98.7, -98.0, -97.82, -92.9, -92.9, -95.1, -103.73, -16.4992, 53.45, 37.3, 28.85, 27.15, 27.167, -78.55, 129.3, 2.9453, 79.95, 132.8939, -68.75, -70.2583, -114.6586, -98.1561, -87.9278, -77.4239, -89.6678, -83.3833, -83.3131, -88.1681, -110.7614, -113.4089, -63.8333, -84.1667, -81.7019, -95.2736, -122.9833, -72.8167, -90.2286, -90.1978, -81.3928, -81.8833, -81.5147, -77.4008, -81.6667, -81.65, -88.7833, -82.7078, -88.8222, -90.2333, -82.2, -83.3178, -88.8456, -90.2214, -90.0778, -88.9167, -115.45, -84.4667, -79.6772, -108.5797, -116.0167, 17.0, -105.8, -116.0167, 68.3, -40.467, -88.4317, -112.2167, 119.1092, -3.8075, -3.7881, 80.0, -72.0036, 82.033, -37.767, 47.667, -108.02, 75.8, 70.917, 17.27, 106.9, 106.833, 106.867, 129.7167, -103.1872, 122.85, -96.917, 21.567, 66.35, 169.65, -71.1239, 103.7, 26.8, -84.9419, -79.25, -86.5983, -80.4681, -99.4778, -79.1592, -98.6692, -98.685, -79.2333, -85.0617, -123.35, -77.25, 24.8181, 24.7892, 25.33, -43.3, 54.9, 115.8794, -89.0167, -78.6333, -80.4167, 28.8, 84.27, 24.667, -7.33, -8.6667, 102.335, 47.92, -115.4333, -115.4328, -121.4889, 90.233, 49.117, 19.68, 115.6658, 105.75, 120.9, 25.0831, -109.1789, 16.18, 57.7667, 45.4, 57.517, -82.9447, -94.0097, -87.3153, -118.15, -118.0667, -84.4461, -83.0167, -117.8167, -118.0333, -118.3833, -142.0833, -51.71, -75.45, -99.37, 69.05, -94.8, 140.717, 140.483, -100.5725, -66.5931, -107.7361, -104.3667, -72.5022, -94.7967, -95.03, -91.7108, -117.1167, 39.2, 39.183, -110.1333, -82.5667, -94.3558, -97.7903, -94.4114, -71.5008, -85.75, -74.9333, -81.4286, -83.4739, -83.5, -92.1558, -92.1825, -88.8042, -107.8292, 131.1, 126.533, 15.8, 23.733, -120.3333, -106.5439, -106.6872, -92.1289, 11.5842, 8.8, -82.0581, -111.2, -92.6642, -109.3464, -113.5167, 152.1833, 141.9878, -6.0556, 35.45, 73.167, -112.1114, -114.5192, -114.4564, 150.9093, -119.8386, -90.3431, -2.1943, -74.0572, 35.2167, 35.2, 150.8, 150.8048, 150.8049, 136.1442, 12.96, -93.0703, 89.161, -120.2947, -81.8333, -81.8628, -102.318, -99.9, -99.9181, -114.2347, 7.8806, -76.6167, -123.5283, -96.15, -108.6333, 18.12, 84.083, 73.717, 114.967, 126.217, 101.82, 112.18, 118.12, 111.917, 42.717, -115.65, -115.6206, 5.874, 5.883, 36.833, -109.9667, 152.4606, -91.3311, -75.75, 117.05, 107.45, 117.2, 108.967, 82.9, 100.8, 113.07, 33.183, 67.161, -85.9833, 121.117, 116.0, 101.5, 98.483, 118.1, 61.805, 130.949, -43.11, -34.867, -46.17, 58.25, -83.0678, 73.017, 29.7267, -102.6803, -111.3228, -119.1333, -105.8833, 28.05, 28.246, -55.188, -101.7508, -118.545, -133.3, -88.0333, -101.5667, -98.4089, -82.3667, -87.75, -112.6114, -103.4342, -116.5378, -81.8467, -169.5167, -78.9167, -78.8339, -6.483, -118.9594, -119.6458, -120.7, -78.3011, -102.9297, -80.3492, -95.75, 27.383, 23.5006, 19.64, 20.1308, -98.81, -88.0833, -109.0097, -73.4333, -73.4333, -88.1028, 121.05, 19.9894, 19.9067, 19.8753, 9.5975, 36.917, -84.3544, -67.6494, -90.6589, -90.6464, -91.8333, -91.8628, -82.36, -105.9, 18.93, 14.0731, -71.15, 12.55, -97.68, -94.5167, -110.7669, -94.5828, -94.5022, -106.9103, -93.6356, -106.4681, -106.9475, 13.4, -77.114, 9.6764, 13.96, -106.7403, 27.8633, 8.89, -117.2247, -69.681, -75.423, -116.2747, 47.9, 23.87, -78.3, 26.0989, -65.289, -66.4986, -122.0056, -76.729, -75.817, -78.87, -67.076, -84.209, 31.6, 136.22, -103.13, -109.7536, -109.48, -85.367, -43.4, -43.35, -65.098, -102.2625, -70.158, -116.5908, -116.5925, -116.65, 141.7214, 141.7458, 6.41, -104.97, -122.1667, -90.7483, -65.9114, -99.8045, -96.8333, -99.7664, -134.4111, -134.4, -134.5694, -134.5639, -134.7658, -134.7467, 147.5714, -122.15, 8.0, -118.4333, -60.931, -67.1667, -120.4725, -119.7772, -111.75, -80.0553, 16.9506, 16.9531, -117.9333, 43.117, -43.66, 112.9, 115.0311, 29.2378, 24.2906, 27.8881, 8.3727, 117.566, 118.83, 145.8667, 142.72, 45.83, 30.9, 25.6, 25.7167, 25.7331, 25.6783, -100.43, -118.4039, -87.993, 3.2203, -156.7, 22.5544, -11.55, 29.983, 106.65, 86.35, -93.0483, 101.7, 69.212, 28.467, 105.9, 127.7667, 127.75, 137.6953, 137.6628, -101.5147, 29.701, -13.508, 126.567, 130.55, 8.49, 8.9942, -91.7333, -156.575, 36.933, -157.9811, -157.9894, -156.4286, 173.7, -156.2739, -156.2128, -156.0489, 133.696, -155.9258, 145.5656, 10.1, 7.7367, 10.7889, 173.267, 173.3, -158.1058, 27.6667, 27.6783, 118.383, 77.367, -89.6167, 34.78, -133.9, -133.66, 82.233, 73.25, 41.1, 74.583, -77.1167, 23.7, 23.4503, 116.77, 22.1, 22.026, -85.5519, -85.6, 116.0594, 66.583, -156.9828, -156.95, 114.165, -124.25, 29.18, 36.71, 121.4533, 121.4667, 28.467, 113.967, 117.432, 20.55, -114.3114, -114.2636, 18.0797, -157.8167, 23.2, 6.2656, -85.1728, -85.0486, 103.32, 12.7, 6.5267, 16.29, 16.29, 151.3047, -158.7417, 10.1467, 36.3697, 126.6453, 126.6431, 33.7, 42.6, -111.2822, 70.52, 22.0, 40.7, 166.2167, 40.3, 81.28, -116.0339, 26.667, 41.22, -120.3333, -120.45, -120.5, -120.45, -120.4333, -120.35, -120.3, -69.85, 32.583, 99.5333, 103.85, 104.2167, -101.9, -155.6667, -155.6667, 33.8, 45.367, 62.717, -112.5367, 141.8031, -159.6586, -115.0333, -115.1167, 22.469, 136.633, 99.533, 65.85, 32.35, 2.93, 2.933, 80.6, -156.5658, -157.8014, -157.7833, -157.8167, 39.67, -78.8036, -109.8936, -114.7075, 37.4, 24.2331, 101.97, 126.6, 126.45, -48.1, 22.22, 69.52, 43.3, 22.4669, -87.9167, -87.9333, -87.8856, -9.3, 125.97, 8.5, -97.9597, -112.4383, 135.25, -94.7725, -94.5833, -94.5969, -94.7306, -94.5603, -94.5833, 95.633, -87.5, -152.17, -16.051, 24.8, -156.6753, 35.1, 154.8, -154.85, 138.9155, -82.4667, -82.4333, -82.45, -22.0, 1.167, 52.917, 32.6, 60.133, 67.0, 66.93, 111.95, 73.15, 79.833, 35.1, 56.83, 56.333, 76.3, 73.55, 63.85, 107.62, 33.2, 84.85, 109.57, 33.6, 25.5031, 25.5019, 78.067, 83.167, 71.75, 64.667, 72.9, 86.42, 22.817, 22.4503, 21.5, 22.45, 80.95, 38.93, 28.883, 21.8483, 31.85, 75.517, 12.914, 14.51, 14.85, 11.2975, 8.365, -96.5167, 13.4667, -94.1781, -97.8756, 116.0744, 15.28, 29.617, 33.88, 139.8972, 116.7742, 43.115, 66.75, 65.717, 18.27, -110.3553, 138.55, 140.8319, -103.5428, 22.8031, 114.317, 19.05, 31.133, 31.2, 25.15, -6.3, 25.85, 51.577, 75.983, 36.017, 120.658, -151.3833, 37.583, 38.15, -89.9492, 21.1939, -116.9167, 47.4, 19.98, 36.4, 71.53, 9.4433, -105.0953, 33.7831, 117.6064, 117.5553, 132.2737, 132.2572, 132.25, 85.367, 85.617, 150.3087, 19.03, 140.317, 66.27, 36.58, 76.733, -154.9333, 10.6167, -103.9, -96.2725, 22.1867, 23.0469, 23.0469, -155.1433, 23.8331, 69.0, 23.0333, 23.0339, -159.0436, 138.767, -116.6333, -106.6375, -110.2833, -11.4, -11.44, 35.4797, 107.62, 62.117, 49.2, 41.15, 74.0, 67.233, -155.0339, -155.9117, -110.1917, -156.1681, -77.8833, -94.3294, -99.0133, -155.3589, -156.45, 38.8, 19.75, -67.35, 158.92, -12.22, -77.7, -2.27, -104.7833, -72.3247, -118.9208, -102.9208, -73.8, -116.7667, 18.13, -22.6, 79.23, -78.7167, -117.8667, -117.6167, 7.8808, -90.0964, 140.3556, 140.3273, -65.2, -65.2, 20.0167, 174.7667, 29.2, 11.08, 117.7217, -110.8, -94.4553, -103.75, -94.455, -116.1222, -6.8467, -92.15, -162.3, -119.4667, -119.3833, -119.3833, -119.3, -119.4167, -119.4, -119.55, -119.4, -119.4833, -119.5667, -117.9858, -96.5167, -96.5333, -122.9, -113.1167, -103.55, 34.65, -127.95, 106.85, 91.667, 86.22, 86.107, 27.7831, 27.7075, 27.1642, 24.6167, 24.5831, 22.7606, 22.5608, 22.1967, 24.5192, 24.1, -110.5328, 152.7717, 152.8235, 10.3364, -75.6333, -75.6333, 34.8164, -150.4483, -151.3228, -149.4, -151.2392, -150.3167, -77.95, -109.9833, -85.25, -110.0167, 122.433, -97.85, -11.233, -6.6, -88.1386, -102.0975, -99.8628, -70.4697, -142.8833, -90.075, -75.7167, -119.1011, -119.3, -121.9022, -71.25, -94.5333, -94.3667, -94.3833, -94.4833, -87.8156, -87.9381, -120.6994, -122.2433, -122.5447, -87.4353, -89.0117, -102.965, -83.6061, -88.8917, -64.4833, -64.4833, -104.1108, -91.9928, -91.3833, -91.3667, -91.375, -113.6333, -91.9683, -173.77, 143.9197, -123.65, 36.4167, -119.8167, -119.8167, 101.367, 65.2, 56.967, 47.117, -103.0889, -118.7833, -118.4389, -109.05, -99.15, -99.1081, -80.5972, -122.3667, -122.4167, 16.98, 125.883, 17.2333, -131.7117, -114.3603, 21.37, -119.96, -120.0569, -120.0878, -118.1333, 15.03, 145.0333, -0.32, -89.8997, -86.5167, -87.505, -122.6167, -79.005, -96.2833, -96.25, -148.2711, -105.6167, -105.6, -105.6, -115.2167, -81.8, -81.7522, -81.6833, 101.083, -156.0589, 49.817, 70.717, 118.617, 45.4, 148.1405, 148.1431, 70.683, 66.8167, 50.267, 30.533, 36.1331, 32.549, 56.233, 44.0, 39.3, 7.083, 32.567, 102.883, 26.983, 102.833, 71.5, 48.283, 44.9667, 69.7331, 89.56, 72.35, 23.45, 66.633, 150.8519, -94.9831, -160.4375, 148.5, 1.35, -94.1, 130.9558, -122.6167, 20.7, -2.5789, 10.1439, 30.5331, -11.4, 30.139, 40.4, 29.633, -155.2364, 23.3167, 23.967, -157.9525, -157.9453, 104.532, 20.4667, 18.786, -114.4667, -159.4044, -159.4, -160.2, -128.4833, -97.7167, 119.3, -111.8833, -100.945, 37.083, 37.1, -7.2667, -77.4167, -111.8667, -99.65, -81.4833, 152.2953, -81.9833, -102.7606, -102.8333, -97.6919, -97.7, -134.5694, -76.39, 51.1, -106.6167, -107.8, 14.8983, 136.4125, -98.95, -103.6344, -94.3056, 24.767, -115.7833, -115.9667, 128.7092, -115.0333, -112.3833, 129.2, -103.2986, -103.3219, -107.0, -81.6167, -109.15, -109.1833, -109.1667, -12.87, 25.92, -109.55, 114.167, 151.8398, 151.8456, -126.2, -97.9294, -97.9544, 28.6, -114.05, -98.1136, -114.0167, -113.9331, 137.6364, 137.5231, -72.0, -101.6706, -82.5275, -76.78, -84.5278, -71.5431, -71.5414, -71.5417, -93.5206, -76.6, -76.6, -76.45, -76.5, -76.4833, -76.5, -87.1153, -79.8283, -97.8497, -82.6667, -97.8167, -102.9714, -110.7, -109.1022, -118.2258, 42.586, -121.1378, -107.0233, -79.6167, 36.259, 143.8831, 42.804, 46.699, 45.528, -123.2, -156.6294, -58.75, 31.133, -79.5167, 27.4, -105.0167, -5.31, -3.561, -78.6333, -84.4667, -111.5167, -99.3656, -77.5433, -77.5722, -115.4167, -119.9167, -155.6167, -98.49, -79.2667, -102.7333, -88.6631, 161.92, -93.9167, -93.8833, -106.9833, 108.0667, 33.5, 29.9, 29.8977, -18.0667, 24.3525, -80.0, -80.0, 27.22, -92.5747, -92.5433, 44.37, -2.905, -101.3369, 49.6331, 32.2, 133.533, 71.59, 52.23, 42.717, 34.167, 18.43, -81.3, 20.23, 20.34, -109.3167, -99.1228, 25.1833, -93.1981, 10.8117, -89.1167, 28.87, 103.97, 42.72, 42.4, -81.4167, -81.4239, 34.75, -9.467, 131.317, 35.0, 142.583, -80.5, -80.3833, -82.5414, 30.1331, 32.883, -128.7, -128.6833, -128.7, -128.6833, -128.65, -128.6333, -152.3722, 24.9167, 24.2433, 24.9056, 24.8625, 24.8569, 24.2442, 24.1667, 25.7867, 24.8417, -111.5972, 10.2, -102.8031, -102.7233, 141.183, -164.5483, 32.7, 70.42, 74.14, 106.45, 11.0383, 8.0681, 12.47, 9.05, 127.4, 22.7131, 14.333, -109.7, 21.0667, -124.0747, -121.75, -121.7814, -121.7333, -121.7242, -121.5819, -144.9281, -133.075, -124.9333, -124.9833, 8.45, 10.4814, 5.4628, 10.3306, 5.6333, 15.0333, 13.8864, 6.0956, 29.333, 14.79, -108.9167, 8.75, 12.9078, 160.8331, 16.6167, -138.2167, 16.3356, 15.25, 15.26, 14.2, 14.16, 103.32, 41.83, 79.183, -78.5167, 13.34, 24.0831, 26.9, -100.6333, -120.65, -72.8667, 8.7564, -66.7, -105.0, -105.0222, -90.2897, -93.1008, -122.4172, -83.9572, -83.9858, -83.9167, -99.8167, -86.6286, 15.8897, 135.217, 34.2, -149.4314, 7.6, -156.8667, 29.9, 33.8, 13.833, 82.183, 14.9, 127.92, 133.55, 80.5, 75.7, 46.55, -111.9883, 77.4667, -152.4, -152.4856, -152.3561, 12.5331, 12.65, -156.9167, 123.57, -89.1833, -113.9653, 138.55, -155.7833, -155.7933, 71.43, 0.0, 127.3, 50.97, 79.0, 128.62, 47.65, 117.159, 70.95, 69.2, 20.3556, 22.2519, 22.3494, 23.1281, 22.9331, -86.1758, 136.433, 82.367, 69.383, 2.65, 23.7717, 23.75, 93.367, -14.967, 49.08, 22.6, 13.84, 16.3097, 7.1583, 6.9717, 18.67, -159.4614, -113.05, 15.58, 31.733, 35.233, 38.7, 25.033, 73.65, 82.8831, 158.73, 82.75, -140.2, -140.1833, 33.9, 89.283, 22.22, 105.45, 28.633, 69.98, 137.033, 29.9, -156.0167, 39.783, 87.283, 11.3, 9.6378, 9.6481, 9.65, 36.417, 9.6533, 8.7258, 10.146, -122.7064, 33.2, 7.3167, 128.0, 9.1908, 32.4, 32.562, 34.07, 39.15, 72.75, 145.5956, -83.6333, 24.07, -111.8842, -115.9833, -115.9336, -116.0167, -116.05, -116.0667, 20.8, -156.15, 16.02, 10.9, -81.5833, 8.8317, 20.7667, 166.0, -5.557, 153.97, 30.2, 86.133, 28.083, 134.4833, 23.06, 142.85, 21.1883, 21.1, 15.54, 13.5, 11.4883, 88.68, -89.5797, 15.081, -91.65, 21.2167, 25.2331, 48.9, -122.1833, 162.9533, 34.25, 15.47, 15.439, 32.667, 40.85, 32.067, 16.15, 116.217, 75.85, 116.051, 43.15, 12.0092, 27.1881, 27.0517, 26.9528, 26.9617, 26.9667, 46.7167, -0.167, -162.8, -162.6333, -65.0, -65.0, 164.283, 10.75, -52.75, -5.467, 26.8133, 26.9442, 32.883, 30.45, 141.7483, 114.1667, 28.7, -157.57, 35.8, 21.83, 57.117, 84.0, 75.783, 46.57, 99.05, 100.05, 100.8025, -113.7667, 20.9331, 4.9859, 20.0, 20.7, 17.77, 16.17, 15.883, 86.8, 31.6, 40.2, 39.15, 35.45, 92.75, 79.233, 37.03, 43.8, 57.7831, 52.98, 45.167, 108.75, 135.3, 13.8539, 33.433, 25.717, -106.3681, 14.1331, 80.033, 134.4, 9.89, -113.8933, 7.982, 14.15, 14.08, 14.11, 7.8156, 21.3208, 21.1731, 14.1, -103.6333, 22.33, 33.4, 17.9897, 11.3219, 27.23, 57.983, 40.567, 12.2, 12.7256, 27.77, 10.4175, 21.35, 23.1425, 14.5, 21.0, 33.22, 14.5056, 8.875, 9.0106, 9.4975, 8.7742, 9.3225, 9.7375, 9.6217, 35.89, 2.317, 118.717, 98.8667, -157.0361, 102.05, 101.7, 101.71, 101.55, 103.47, 103.1333, 124.78, 103.22, 103.2, 16.085, 110.333, 116.83, 54.65, 23.3, 12.17, -89.8, -89.8, 78.667, -115.15, -115.1333, 30.17, 29.4739, 138.6783, 25.2667, 50.45, 10.2369, 20.4167, -155.5667, -155.3011, -156.3211, -156.3561, -156.3667, 133.3027, 12.45, 11.4506, 151.2, 33.1, 69.75, 63.283, 139.383, 130.699, -1.591, -80.0856, 126.8, 49.9, 12.1528, 66.083, 29.0, 20.75, 20.7506, 11.9019, 127.47, -116.4167, 26.533, 58.933, 102.683, 102.9, 126.6222, 128.7353, 128.71, 9.6933, 120.92, 27.8081, 27.6831, 27.9081, 27.6367, 123.667, 123.7, -149.6114, 37.7, 77.283, 82.95, 134.633, 25.383, 132.33, 22.5, 132.567, 65.4, 68.7831, 147.88, 124.5222, 78.067, -103.45, 36.1667, 23.43, 80.367, 23.3767, 27.3, 163.0, 7.4142, 144.433, 55.4, 66.55, 125.25, 63.6167, 21.03, 29.967, 42.6, 140.75, 10.55, 46.05, -68.4167, -77.75, 29.3192, 29.2258, 29.1553, 26.65, 24.733, 47.966, 87.2, 13.9667, 5.9133, 5.6667, 19.9605, 18.02, 17.73, 10.1277, 10.8795, 167.7333, 167.7333, 126.9167, 29.833, 115.7611, 145.0638, 135.5552, 140.9286, -88.0631, -78.1667, -102.1431, -115.6, 13.76, 144.45, 135.733, 111.9667, 33.31, 12.417, 36.333, 76.567, 23.02, 94.5, 65.5, 86.0, 78.35, 69.6994, -73.35, -66.7, -74.8667, -73.4333, -71.2333, 12.2831, 23.817, -13.217, -12.3, -91.5, -63.367, -64.833, -69.55, 115.25, -99.3091, 124.55, -74.3333, -113.75, -113.75, -122.75, -122.7189, -89.4153, -69.12, -99.3, -117.8831, -72.4, -71.1167, -78.2833, -72.1667, -77.3, -63.2833, -67.5667, -75.1167, -111.9667, -112.0167, -112.0167, -117.25, -105.3333, -70.8667, -71.0333, -72.9167, -71.75, -74.3167, -121.2967, -147.5833, -147.6, 21.03, -123.0667, -123.0167, -103.8836, -108.8347, -68.7833, -123.65, 29.75, -91.1236, 152.7161, -113.2167, 27.23, 147.0, -92.065, -86.03, -86.8833, -91.8731, -85.4336, -85.3203, -86.9028, -86.9369, -91.9875, -86.0028, -50.33, -114.6147, 2.89, -43.883, -51.5, -79.2167, 3.4333, -99.1261, -72.3, 7.85, -118.0119, -85.4122, -107.3736, -97.3483, -117.7814, -57.771, -100.38, -110.36, -104.7167, -156.6742, -98.1114, -119.0644, 74.333, 7.8289, 7.8333, 71.5, 71.8667, 25.6342, -121.5833, 20.867, 22.35, 120.7, 130.6358, -67.0722, -27.1, -27.3217, -103.7575, -122.8667, 21.13, -89.3333, -111.3667, -178.8, -78.2333, -95.1519, -110.4333, -110.6167, -74.3167, -81.9219, -82.0136, 0.5667, -122.9167, -71.4667, -71.4647, -122.3833, -92.6208, -120.0333, -109.98, 147.9961, -111.3208, -111.8125, -116.5, -120.3678, -79.5667, -111.8333, -86.2692, -104.3833, -105.1206, -88.4981, -120.6333, -101.0489, -81.7144, -104.25, -117.1883, -92.7681, -104.25, 146.3707, -93.2158, -93.15, -107.3147, -120.2167, -94.7333, -82.5942, -79.7297, -85.205, -121.0667, -71.3833, -100.9167, -124.05, -124.05, -122.5333, -118.6, 145.9124, -105.5833, -119.8833, -63.2833, -95.4322, -95.5275, -88.4347, -73.7167, -105.4706, -105.3553, 118.4647, 118.4625, -69.9167, -114.3667, -114.3603, -81.4667, -105.8167, -121.2, -121.3333, -99.1442, -98.7833, 147.7933, 147.7975, -116.2167, -79.8561, -63.4833, -104.3753, -70.8833, -78.8333, -88.8967, -152.3106, -104.9833, -97.6644, -95.3247, -73.985, -81.3833, -91.173, -118.6136, -99.4603, -122.0047, -120.6392, 146.2167, 146.1772, -146.6789, -95.8864, -82.9508, -78.0667, -114.65, 141.2652, -88.0594, -95.9572, -110.3986, -101.2492, -55.1333, -117.6333, 167.8, -102.6306, -70.35, -94.3147, -102.6881, -110.2342, 10.246, -45.31, -79.9, -104.6167, -95.3153, -74.9447, -74.95, -90.2908, -71.0833, 140.5378, 140.5175, -101.9456, 16.25, -106.6642, 22.4, 25.25, -115.4855, -115.4, -115.4667, -115.5231, -100.0, -93.9508, -94.0, -93.9019, 99.517, -98.1847, 12.6, 99.0333, 40.83, -157.0064, -156.9486, -156.9203, 99.933, 100.12, 99.13, -118.1167, -82.6072, -71.5725, -76.2742, -76.2833, -82.6333, -90.7889, -76.2944, -85.8261, -82.6572, -118.2117, 115.33, -104.6036, -104.7, -84.7283, 10.55, -108.6686, -108.7261, 71.13, -76.4333, -116.6333, -82.1833, 10.9167, -121.9614, 17.87, 12.3, 8.5225, -73.2333, -95.9969, -133.05, -133.0667, 1.35, -98.3447, 18.17, -101.7167, 7.4781, 18.7, -107.0167, 13.06, -76.35, -122.5833, -122.5333, -124.4533, -124.25, 5.31, -98.55, -101.5603, 16.69, 105.97, 104.43, 106.767, 48.817, 13.13, 17.66, 21.98, -87.8833, -87.9333, -84.5789, -74.4653, -13.6003, 103.883, 121.55, 120.533, 3.55, -88.7594, 103.9667, 101.53, -83.3606, -83.2833, -83.3075, 26.1431, -76.4933, -86.7297, 28.4756, 28.5656, 28.1542, 28.2117, -73.4333, -105.8667, 23.0167, -116.8111, -105.5833, -105.5833, -105.6069, -105.5319, -105.6747, 122.967, 7.4833, 7.5167, -116.9667, -99.4983, -99.4667, -99.4667, -66.8833, -97.7106, 22.45, 33.6331, -99.0994, -99.0967, -95.5467, 133.2138, 80.25, -109.2667, 66.32, -61.1, -121.7136, 15.5944, 12.717, 16.8994, -105.25, -101.85, -69.667, -103.2153, -56.3, -105.42, -92.6, -106.7667, -106.7414, -95.36, -99.52, -115.93, -59.1, -117.4389, -93.55, -70.917, -105.11, -70.38, -60.583, -15.3892, -121.4833, -120.9242, -91.6, -122.0669, -115.1333, -105.2667, -115.1958, -115.1633, -105.1419, -115.0333, -115.0333, -115.1847, -105.2131, -78.617, -71.1333, -94.3333, -116.4, 20.27, -147.9, 16.02, 35.77, -79.0167, 9.7153, -120.3533, -114.5806, 22.233, 147.2144, 147.2033, 147.15, 147.2, 147.1222, 9.9094, -117.6989, -89.1236, -77.2139, -76.9003, -116.0333, -79.1883, -123.575, -79.1411, -82.0219, -118.2333, -71.6667, -79.4664, -79.3661, -112.0967, 178.5, 6.1992, -71.1, -73.3167, -73.7, -121.5011, -121.33, -112.0067, -113.0389, -112.1472, 122.4072, 122.4236, 144.7566, -96.4861, 16.826, -89.8, -95.2514, -71.1658, -71.4333, -87.3508, -77.1333, -77.7928, -74.6692, -87.6056, -95.2117, -71.1239, -124.1333, -98.4572, -98.4172, -105.3833, 112.833, 16.41, 73.07, -123.485, -74.85, 20.7, 23.5167, -149.0364, -65.95, -92.42, -70.9167, -110.195, -81.4264, -100.15, -105.4, -101.68, -71.65, -91.97, -78.7333, 6.8, -71.728, -79.367, -91.31, -91.2528, -91.2333, -91.25, -91.1914, -122.65, -98.0, -105.15, -72.7167, -109.55, -57.85, -78.1667, -103.62, -76.6, -89.5, -97.32, -118.0747, -118.1167, -122.3167, -118.0167, -73.6833, -73.6833, -77.7, -98.88, -96.8769, -104.1669, -87.8667, -85.0317, -96.86, -108.72, -62.75, -90.9686, -122.255, -98.3992, -103.5439, -103.8225, -103.4775, -103.5122, -107.96, -74.7667, -74.7833, -70.15, -117.0233, -87.924, -74.9333, -76.95, -93.4, -77.6167, -98.2928, -66.183, -75.93, -97.53, -17.755, -102.75, -120.1875, -71.25, -68.17, -59.8, -110.4167, -110.3, -102.03, -91.77, -57.895, -77.0, -70.0333, -70.0333, -120.9833, -99.8686, -77.17, -112.08, -65.6, -109.55, -66.817, -1.15, 30.17, -68.97, -105.2667, -105.2667, -109.25, -89.1333, -109.2664, -79.2167, -55.6667, -71.2, -71.3, -97.43, -79.37, 166.2222, -92.03, -106.5975, -72.7833, -72.7833, -75.07, -87.8667, -101.78, -93.88, -70.53, -99.3, -113.2686, -57.8667, -103.35, -97.3756, -122.6886, -103.743, -109.55, -109.5333, -109.5, -3.7589, -113.35, -113.3622, -106.3169, -92.9158, -88.555, -82.6333, 114.0967, -94.9189, -120.675, -119.6167, -119.55, 17.5331, -86.3181, -82.0383, -122.9014, -92.6936, -76.4667, -76.4833, -86.2631, -72.3047, -76.9667, -95.8511, 17.75, 18.15, 10.8506, 8.95, -1.4381, -94.2228, -114.4667, -99.4317, -113.3, -1.55, -1.535, -84.1869, -81.8097, -93.2397, -111.6022, -94.3714, -94.3358, 146.4114, 5.7517, -106.5, -119.1194, 123.733, 21.0, 16.2, 9.8803, 11.45, -114.2167, 77.7, 70.95, 12.5133, 103.58, 138.4075, 138.4219, 6.8667, 10.317, 120.7031, 12.4, 12.45, 12.2414, 14.58, 17.9167, -86.2892, -106.2889, 14.4, 11.7022, 36.45, 13.615, 15.02, -92.2047, 28.333, 5.5194, -113.5167, -113.4333, -72.0667, -71.5167, 19.9575, -102.1575, 145.4594, -122.2208, -119.0264, -107.6592, -119.95, -41.383, 16.5, -107.5167, 93.383, 159.383, 132.617, 11.93, -110.6003, 8.0358, 9.5283, -71.8167, -81.5378, -84.2622, -84.3308, -94.5614, 10.8856, 114.88, 138.8071, 11.4878, 8.2317, -92.5947, -98.9439, -76.6667, -76.65, -118.7192, 121.3303, 121.3186, -93.6453, 9.412, -5.6492, -101.3658, -106.8556, -118.9358, 28.7, -103.517, 28.05, 134.3, -103.8667, -104.6333, -103.0822, -1.1831, 14.2, 103.75, 8.3733, 79.5, 22.35, 21.95, 3.089, 15.27, -103.95, 45.767, 16.5331, -68.3833, -74.05, -70.25, -66.6833, 31.58, -78.0333, -53.9, -112.8, -112.85, -112.8, -112.8, -112.7667, -112.75, -70.0, 118.9, -174.45, -2.868, 8.1275, 10.2744, -110.9667, 65.7167, 26.4167, -111.8653, 11.2333, -102.3758, 30.28, 178.87, -104.6833, -119.85, -75.1389, -76.8786, -76.8667, -80.4042, -86.8086, -86.7658, -77.1708, -111.8333, -70.2167, -79.05, -117.0156, -117.0167, -77.5692, -109.2261, -109.4114, -110.2894, -109.4578, -93.5675, -110.6667, -97.0136, -90.0517, -83.1136, -88.3903, -80.2597, -79.4386, -99.75, -93.855, -99.6167, -84.6058, -80.312, -82.5328, -90.4006, -120.25, -61.003, 0.195, -96.1458, 3.9, 2.9, -61.6, -76.7167, 91.133, 92.47, 107.8, 114.48, 112.38, 146.6694, 146.6672, -115.5392, -115.2239, -115.3, -115.3181, -115.5667, 18.63, -100.9294, 15.017, -85.533, -94.795, -82.7167, -94.4167, -74.74, -90.8944, -92.9167, 9.45, 35.233, 3.67, 26.167, 14.217, 12.4342, -91.8831, -110.9667, 25.317, -97.1461, 13.13, 150.05, 30.0492, 12.8, 21.0167, 19.683, -111.3133, -111.4833, 147.9722, 10.345, -159.3683, -159.3405, 100.467, 100.17, -121.5333, 7.6778, 10.4756, 14.09, -78.8208, -121.9333, -121.9333, -121.9167, 16.44, 33.7, 33.781, -110.8, -106.5333, -112.5928, 33.0497, -84.0267, -77.0, -84.1294, -59.95, 8.3989, 8.0614, -106.25, -67.8833, -110.2736, -67.8833, -79.7594, 25.1, 25.2333, 1.3, -83.03, -103.7667, -103.7158, -99.56, 100.217, 172.47, -77.6928, -89.3381, -81.3289, -96.8542, -98.13, -96.565, -96.7667, -96.6167, -121.2683, -86.1833, -112.6353, -96.7475, -132.7667, -112.6547, -68.5125, -96.7333, -96.7025, 168.383, -95.3667, -110.5833, -112.0794, -113.7125, -122.85, 14.1203, 9.8889, 8.7814, -113.65, -83.35, -94.8, -87.8408, -83.8039, 15.24, 7.0481, 39.7, 26.7, 119.4, -103.4986, -107.0542, -119.0545, -78.75, -105.1833, -97.6386, -78.7333, -78.7333, -118.5658, -80.425, -116.2278, 7.317, -136.2833, -104.39, 111.617, -15.15, -71.3667, -40.0667, 107.4, 126.917, 15.5331, -93.1497, -98.0858, -103.2667, -100.2306, -1.25, 118.067, 103.18, 118.35, 14.18, 14.286, -123.2333, 39.517, 29.6144, 29.6142, 29.6717, 8.3953, -100.2675, -103.7667, -103.8833, 32.933, -85.6292, -9.15, -81.7844, -82.5833, -97.6928, 15.3, 111.1, 119.92, -88.0728, 153.2616, 153.2628, 143.3437, 153.3409, 6.5681, -116.45, -80.9667, 8.4125, 100.267, -94.5347, -112.3631, 150.1498, 150.2383, 140.33, -102.3333, -102.3447, -93.7214, -93.5642, -115.8806, -111.8167, -107.4358, -143.3672, -109.0167, -130.2333, -114.9, -108.9444, -74.2261, -94.3694, -74.8686, -74.8667, -94.3444, -118.0333, -113.85, -108.2, -118.51, -122.2167, -81.415, -134.6497, -124.5167, -66.0667, -92.2619, -92.15, -92.2389, -114.2625, -92.2833, -112.3069, -96.0167, -96.0506, -106.9333, -109.0233, -118.3608, -78.8125, -119.8808, -109.75, 30.267, 109.4, -81.15, -148.7217, -148.5497, -121.7692, -121.8136, -70.1594, -121.8144, -64.7167, -64.6667, 150.9128, -130.9167, -64.9333, -64.7667, -82.965, -91.68, -88.1897, -110.5667, 25.817, -110.5589, -94.9256, -110.4408, -85.3364, 17.0008, 37.6, 10.31, 119.48, -107.9333, 7.6167, 31.233, 14.5169, 14.48, 16.3097, 13.95, 13.23, 13.88, 11.93, 16.13, 12.6, -98.6542, -117.8167, -117.75, 0.595, 0.6183, -110.0, -110.0, -110.0667, -109.6667, -110.0667, -111.6433, -119.3667, -87.7958, 13.55, -81.15, 15.1783, 8.7875, 28.3, -86.3667, 143.3047, -78.6814, -78.6333, -93.9489, -77.4167, -77.4336, -118.7325, -102.6361, -102.7969, -102.6586, -115.1872, -102.64, -121.2878, -89.5311, 23.5, 35.617, 19.4, 101.733, 13.28, -103.4167, -81.9947, -82.3939, -95.7883, -114.4833, -114.4833, -94.0003, -93.95, -86.3878, -86.35, -111.8914, -111.8533, 153.1947, -120.8167, -111.4164, -111.8564, -111.8667, -111.8167, -111.8033, -107.915, -2.3308, -52.6667, -121.9031, 24.0525, 8.24, 9.6108, -79.28, -79.2, 9.0631, 6.73, 130.449, -114.5139, -114.5833, 23.25, 8.57, -110.5022, -77.37, -98.08, 1.25, 13.62, 14.73, 20.217, -120.4514, 101.25, -81.15, -84.0769, -81.15, -0.1833, -81.15, -81.3706, -81.2167, -83.5097, -51.183, -51.133, -114.65, -110.2, -108.1833, -111.4333, -121.9667, -90.1814, 142.2991, 120.32, -86.5, -86.5333, -121.812, -121.8167, -105.0736, 144.2769, 144.2769, 144.25, -75.1333, -64.2333, -101.4956, 5.09, -94.7172, -122.9164, -94.7189, -94.7117, -94.65, -78.545, 117.0, 106.75, -2.67, -124.0333, -118.1464, -124.0378, -118.2, -74.0028, -92.5064, -83.2678, -119.1017, -70.1983, -113.4, -53.8167, -116.2175, -89.1389, -80.05, -94.8892, -63.55, -74.7789, -116.0833, -112.5167, 7.7469, -71.25, -115.7, -105.6333, 143.2469, -107.8333, -85.3444, -110.7167, -122.76, -110.1333, -114.8333, -121.3333, -109.1, -109.1333, 21.4528, 100.617, 68.6, 7.8206, -108.6531, 159.079, -111.333, -87.4333, -107.8167, -78.8825, -78.95, 143.9833, 17.66, 89.367, 29.37, 11.3833, 151.4595, -102.4, -102.4, -107.6333, -111.8625, -147.9714, -122.675, -80.4167, -106.7667, -121.1167, -116.1878, -115.9667, -84.7, -78.7981, -104.3333, -114.2667, -118.05, -106.3214, -106.5214, -122.1472, -89.65, -118.2353, -118.3889, -120.8667, -121.0531, -120.9297, -75.826, -121.9592, -121.9428, -99.42, -106.7333, -106.7611, 147.433, -119.7833, -99.63, -80.42, 3.763, -84.3333, -7.9031, -78.0061, -60.0, -78.3039, -73.0167, -91.0667, -89.0711, -85.7667, -82.3914, -85.6636, -82.3528, -85.7392, -85.6444, -111.7667, -98.9681, -0.006, -58.9833, 32.6, -77.3833, 21.32, 24.7006, 9.5167, -88.8314, -95.45, -105.085, -105.9, -108.4042, -118.4767, -118.5692, -110.0, -98.0256, 26.4478, -103.3833, 35.033, -90.92, -87.4178, -71.3636, -115.5964, -111.75, -106.1833, -121.7003, -60.75, -63.2333, -111.7833, -118.5397, -93.2469, -83.0344, -111.9167, 1.7268, -110.7, -115.6186, -75.4825, 146.7856, 146.7883, 145.5592, -80.2667, -80.2161, 140.5978, 140.6, 19.2331, 36.317, -91.1672, -89.8222, -92.4108, 13.233, 102.161, 99.78, 13.567, 13.8819, -101.8136, -101.8219, 10.719, 22.4, 33.0, -113.3167, 27.531, -81.4167, 150.98, 19.65, -116.95, -68.3667, 11.133, -113.9, 140.3664, 146.3861, -92.4853, -81.5, 80.883, -107.15, -115.9925, -118.85, -130.6167, 15.1, 75.8667, 7.4133, -86.3942, -103.3719, -72.4833, 10.705, 7.65, 9.267, 19.9267, -94.8942, -94.7544, -94.8261, 8.9667, 39.25, 167.13, 42.58, -7.4558, 25.5083, -106.5678, 16.953, -109.2269, 44.5, 153.8167, 22.13, 22.11, 22.1192, 27.4, -97.6578, 22.4, -94.1786, -79.025, -79.0592, -82.6792, 124.617, 40.672, -118.95, -118.7667, -84.7753, -104.8667, -104.9667, -104.9333, -108.9417, 145.1517, -124.4667, -113.4333, -115.0167, 13.2, -97.9333, -98.1, -114.1333, -13.2, 18.09, 106.77, 112.5, -111.25, -111.25, -84.0233, 14.4831, -78.3728, 13.25, 28.32, 28.45, -109.4, 111.033, 121.6, -76.05, -104.1167, -104.0669, -104.4811, 7.4278, -105.9333, -85.6833, -76.6333, -110.6833, -90.6656, -96.2022, 6.21, 6.38, 103.77, 32.7, 8.3, 105.43, -42.28, 120.55, 115.98, 23.95, 70.9, 37.25, -107.5472, -79.4, 17.67, 18.65, 18.72, -76.7, -121.25, -120.9167, -98.4583, -86.3631, -79.15, -79.2331, -79.2067, -76.0833, -95.8667, -1.993, 9.5235, 9.1503, 20.2333, 8.1, -87.05, -86.05, -101.0333, -101.0833, -101.0833, -101.0667, 26.317, -91.0986, -106.6667, 4.69, -77.0, -2.9681, -62.8, -123.0736, 18.45, -98.8433, -117.4803, -117.45, -114.0214, -76.0333, -121.5833, -121.5833, -121.5667, -121.6, -121.5833, -88.45, -64.6833, -2.333, 16.22, 4.5, 35.783, 20.7433, 27.3158, 107.483, 138.1786, 5.7617, 5.6831, 146.2711, -61.3833, -63.7, -35.2, 113.6, -51.072, -79.933, -36.633, 113.592, -82.5167, -73.9333, -106.0167, 144.5569, -35.7, -35.783, -35.41, -9.42, 13.4, 117.6, -45.917, 37.283, 114.97, 81.15, -5.7, -85.6667, -113.6667, 149.1794, -113.6317, 149.2169, 149.1833, -123.1333, -84.6167, -84.7333, -109.95, -98.9167, -130.0333, 8.8, -92.4667, 4.8, -88.5333, -88.5586, -83.6528, -83.6333, 158.937, 151.1121, 123.979, -66.9, -92.58, 145.8, 145.8, -77.9833, -114.3167, -79.6, -99.5261, -120.5, -90.7653, -108.1, -120.0378, -78.4, -120.1106, -96.7708, -96.9433, -83.4022, -86.75, -96.14, -97.45, -84.0833, -69.8878, -95.9203, -87.5239, -97.1333, -97.0925, -81.8464, -119.5, -89.3453, -111.1167, -85.3942, -89.3333, -89.4, -96.1661, 98.52, 98.217, -121.0011, -121.1461, 80.183, -101.5428, -3.6781, -3.5556, -3.7892, -3.7225, -3.4503, -3.7, 69.7, -123.5239, 139.067, -109.6642, 97.833, 97.933, 98.55, -101.1, 146.9831, 39.667, 25.548, -64.1, 150.7831, 8.933, 125.817, -64.117, -107.2333, 11.5842, -1.77, -114.3, -99.4833, -79.7833, 59.083, -90.4667, -93.2325, -72.1167, -101.1444, -67.0461, 17.3, 47.55, 46.3167, 25.43, 48.8, -76.1353, 55.5, -95.9675, -92.9833, 4.3, -155.9, 13.083, 91.1, 95.34, 11.98, 11.983, 44.033, 8.2117, -148.093, -56.0167, 11.2978, 137.6733, 151.5683, 135.19, 135.4, 135.333, 13.3667, 119.0, 40.083, 77.283, 171.4, 171.3833, 12.617, -158.1964, -159.7153, -159.45, 39.483, -89.2333, -156.9661, -157.65, 32.18, -159.6278, 22.971, -156.44, 10.4402, 37.83, 39.833, 39.8, 30.0681, -59.1833, 12.87, 15.58, 15.7, 35.9, 104.97, -158.2261, -158.1989, -158.2042, 130.3, 8.614, 67.3, 18.75, 8.709, 102.252, -112.2667, -112.2872, -4.4881, -123.5333, -118.65, 11.5292, 16.37, -69.574, 38.317, 38.08, 125.08, 42.55, 18.6, -115.25, -89.9833, -154.9833, -89.9894, 144.0703, 73.533, 152.8519, 15.24, -2.1617, -117.0247, -118.8447, -118.6333, -123.85, 96.95, 15.9133, 15.8033, -121.4167, 40.102, 38.55, -121.3186, -7.34, 52.73, -103.7625, 31.65, 15.2, 149.7289, 8.525, 12.2544, -75.8667, -121.7789, 20.67, 18.717, 13.08, 12.98, 13.0731, -111.1833, -74.3081, 7.7356, -107.8667, -107.8714, -107.9556, -113.3042, -107.7286, 13.6994, 13.71, -92.8364, -2.3067, 44.7, 112.867, 114.02, 35.0, 9.28, -120.8, -86.1481, -111.3167, -81.5667, -118.9617, -91.535, -12.08, -92.4333, -7.38, -7.5, 124.8, -86.168, 48.367, -105.9392, -77.5, -66.4661, -72.45, -60.017, 31.4, -159.7628, -85.0833, -84.0236, -71.4833, -73.0667, -2.275, -86.0875, -91.4517, -83.8167, -71.4383, -108.1833, -108.3161, 110.13, 96.1, 106.283, 7.4472, -100.9097, -100.8667, 41.867, 41.9, 6.8019, -102.4386, 31.38, 27.4, 120.8436, 115.7119, 115.75, 115.7664, -99.75, -63.77, 28.583, 74.85, 145.1859, 74.883, -134.967, 90.85, 0.37, 130.6834, 0.467, 151.2107, -99.5017, -99.4239, 112.67, 112.7, -96.5814, -96.6097, -96.6, -96.6778, -61.278, -68.4, -161.0167, -52.8667, 120.9833, -109.7258, 121.0, 134.2263, 134.2339, 27.43, -86.2939, -86.2514, -98.4833, -85.8, -87.6522, -75.9833, -76.0, -76.0, 116.145, -98.2039, -94.0211, -144.4792, -107.0167, -150.638, 79.92, -78.4833, -96.4433, 8.514, -80.2003, -117.65, -80.35, -80.4647, -117.45, -108.4786, -111.25, -157.8025, -70.5333, -73.8, 14.55, -71.9833, -93.7053, -92.5789, -82.6167, -97.9167, -72.1856, -82.5178, 1.3667, -121.2, -75.6833, -75.7, -111.6306, 10.79, 25.4914, 21.4831, -70.5333, 163.683, -93.4817, -110.6833, -110.4667, -109.6167, -113.6667, -104.317, -121.5767, -121.5803, 117.42, 31.3, 15.32, -123.8628, -67.2333, -95.7836, -85.8353, -109.4833, -109.4667, -123.9367, -109.4667, -71.5, -71.4, -93.65, -122.5, 32.573, -68.733, -90.7489, -49.138, -4.77, -67.65, -67.7, 7.08, -103.2717, -86.4, -81.0517, -81.05, 48.933, 29.57, -70.8644, 119.7497, 119.7497, 29.28, -89.9664, 163.6833, -93.6522, -117.25, -62.158, -81.7139, -102.3333, -75.4283, 153.9667, 115.9797, 40.73, 145.4283, 145.4253, -86.3397, -88.6078, 10.8483, -104.0722, -61.1, -61.0833, -140.85, 30.333, 0.55, -90.7664, -85.1839, -85.2667, 12.7, 15.32, -45.37, 148.0181, -71.12, 15.7, 144.8767, -42.82, -66.9889, -119.3833, -112.0303, -112.1, 26.35, 15.16, 15.53, 13.15, 13.82, -84.55, -122.6, -97.1642, -84.5167, -82.4833, -81.4667, -81.4328, -73.1333, 5.2267, 87.75, -40.53, 165.117, 16.883, 12.2839, -112.3, -87.6236, -51.91, -79.3875, -81.5167, -81.5167, -88.0667, -85.4, -77.7, -83.1333, -97.2567, -85.6586, -83.1333, -82.0289, -88.8981, -79.0333, -121.9667, -121.9486, 37.867, -87.2314, -89.9225, -83.0636, -97.0753, -54.033, -119.9869, -119.6047, -60.6, 37.6, 28.133, 13.66, -80.7167, -90.4167, -88.9989, -79.25, -84.9667, -85.3, -119.7667, -122.1242, 5.8875, 170.4167, -8.4558, 10.6431, 22.9, 133.6201, -119.9, -119.9167, -80.0914, -96.8581, -97.9786, 73.78, -103.9214, -103.9167, 55.183, 11.9333, 28.22, 153.0903, -109.2333, -87.5483, -87.3794, -97.8, -8.0, 144.7094, 138.0684, 138.0637, 138.2739, -90.1158, 66.8194, -85.5244, 37.983, -88.7533, 5.3967, 151.1176, -94.3508, -82.6658, -92.6394, -93.2225, -87.6967, -95.7908, -92.9244, -92.9175, -83.94, -83.9333, -97.6067, -92.9097, -90.1333, -90.1875, -105.0656, -106.6667, -101.7386, -122.1333, -122.1142, 10.8831, -77.95, -77.9669, -77.9844, -110.3378, -86.453, -79.865, -101.6333, -85.9167, 77.5, -91.2333, -88.8636, 16.82, 5.4167, -107.5556, -107.4336, -110.2333, -55.8333, -55.8333, 143.732, 152.7156, -101.5167, -112.2275, -112.2333, -121.5853, -96.6364, -83.3669, -115.95, -112.3, -121.5678, 151.75, -94.8342, -57.1, -57.583, 31.78, 120.367, 123.62, 0.2, 0.3, -104.82, -104.8, -73.6, -89.8, 27.48, 11.35, 11.33, 59.633, 50.0, -111.65, -111.65, 31.717, 58.9, 84.217, -99.2306, -99.2939, -93.1953, -89.6511, -93.3269, -117.9942, -99.1861, -71.3933, -112.9981, 39.45, -74.8458, -132.1667, -132.1333, -82.0167, -75.4167, 30.867, 115.633, 13.433, -100.825, -100.4167, 115.6, -77.8, -77.8167, -96.8022, -95.9733, -13.25, -74.7172, -98.9716, -13.25, -67.4667, -149.2542, -149.1, -149.0833, -66.9333, 116.267, -75.74, -90.3483, -114.2722, -76.2689, -78.8617, -97.8725, 144.901, -95.03, -98.817, 19.82, -157.7833, 133.067, 137.967, 132.783, -83.1667, 13.71, -88.3544, -88.2803, 153.217, 179.75, -54.91, -63.153, 95.65, 23.417, -65.8989, -157.7667, -155.5761, -155.5767, -96.4667, -102.5833, -102.6125, -90.0597, 13.5781, -85.3333, -109.55, -109.45, 20.35, 62.867, -101.2922, -104.5867, -86.35, -67.1486, -67.1378, -108.0947, 146.5972, 146.6239, 7.2306, -88.65, -69.6833, -88.6333, -122.5939, -88.6406, -105.4667, -71.4833, -71.4425, -123.3167, -83.1819, -72.035, -135.8667, -135.1833, -81.4167, -77.3, -83.7872, 10.65, 10.65, -97.3514, -113.8953, -142.5844, -8.4, -120.4275, 128.82, 67.2, -110.11, -105.0, -89.8192, 97.033, 122.95, 31.15, 34.183, 18.289, 30.65, 33.467, 23.617, -67.3333, -95.7831, -98.2511, -98.2539, -82.4833, 136.076, -120.15, -120.35, -120.25, -116.1017, -102.2217, -112.1931, -142.9961, -103.3644, -79.4667, -79.3636, 132.9791, -107.2847, -79.5683, -97.0167, -90.4708, -98.1236, -100.5914, -109.2658, -106.5333, -99.5333, -119.2, -117.72, -66.0, -84.0678, -94.1167, -68.2608, -108.4447, -108.5167, -95.8675, -114.7733, -66.5667, -155.6103, -66.1167, -97.4011, -123.6011, -74.6, -128.7167, -58.1167, -103.8333, -79.8603, -75.1167, -121.8667, -122.1164, -124.0333, -148.9692, -151.6397, -96.5914, -96.5903, -107.8667, -88.5425, -122.3667, -122.2833, -116.95, -120.2167, -123.1339, 166.7333, -119.2978, -119.2956, -97.6097, -137.5167, -82.9, -80.75, -80.6803, -73.5833, -80.85, -116.1047, -122.1383, -107.2833, -100.4444, -81.8561, -100.6203, -94.9669, -117.8656, -101.3686, -88.2533, -79.3667, -98.6422, -72.0667, -106.0833, -101.2767, -88.5167, -100.8072, -100.5922, -97.2392, -122.2558, -85.7811, -123.1622, -109.8589, -89.6, -98.1817, -93.7747, -76.6089, -118.4247, -118.4333, -100.345, -102.2167, -92.7333, -121.4667, -113.3167, -108.5167, -108.4333, -108.4333, -108.5167, -99.55, -90.2333, -114.0681, -90.8853, -80.1667, -96.4808, -80.5833, -80.6333, -92.1589, -113.35, -116.5169, -116.0767, -76.6992, -65.1667, -0.242, -76.7586, -105.4333, 98.7, 2.733, -75.58, -72.9833, -90.3439, -97.7458, -122.87, -122.8722, -106.2061, -100.2228, -110.7167, -110.7167, -110.7167, -104.4514, -104.4761, -98.58, -98.5528, -98.5694, -99.2497, 115.8075, 3.963, -103.5264, -103.5167, -103.3769, -108.0333, 34.433, 118.5372, 118.72, 118.4883, -107.9058, -107.9167, -96.9772, -107.8853, 9.1414, 9.2764, -70.8667, 27.8294, 14.37, -84.7931, 95.833, 10.3769, 8.16, 107.47, 116.12, 13.93, -5.5333, 144.8321, -80.6439, 144.97, -80.6539, 55.967, -104.6, -104.6, -104.6, -2.9553, -100.9833, -101.0, 35.367, -90.6417, -98.5825, 135.5, -54.183, -54.183, -73.95, -103.625, -94.8022, 10.3481, -107.8722, 9.52, 147.1981, -95.7036, -91.7333, -99.0333, -102.8, -110.05, -61.3, -100.5372, -89.8733, -92.1822, -89.9864, -90.05, -89.8036, -94.2494, 124.917, 2.217, -8.036, -99.7864, -88.4667, 48.15, 7.3167, -122.945, -68.783, -68.85, 27.1, -70.933, 112.433, 101.58, 110.52, 103.383, 142.4173, 139.3375, -97.5714, -87.6, -91.9167, -91.9364, 17.683, 4.2156, 13.0439, 121.0297, -105.48, 11.6992, 11.7604, 140.383, 142.04, -120.5117, -58.067, -58.1, -97.8997, -59.5, -58.02, -120.8825, -120.5128, -80.235, -77.9, -90.0722, -112.4333, -73.7833, -116.0225, -116.0278, -106.7422, 98.6, -71.183, -89.63, -71.2, -72.8278, -116.4167, -88.7442, -88.5667, -0.675, 149.8989, 149.9017, -87.4578, -100.1222, 9.7656, -123.3972, -110.3667, 118.2789, 118.2242, -88.7167, -89.6617, -121.6333, -101.7089, -120.8, -120.7833, -120.8833, -80.7, -80.7308, -120.8, -82.1667, -109.7667, -123.9167, 27.2167, 34.633, 103.833, 23.117, -100.8167, 37.65, 35.58, -111.8183, -116.4333, -108.23, -108.0833, -107.7069, -104.6833, -108.4892, -105.7833, 10.7167, -114.0736, 15.55, 29.9, 9.0, -23.9, 18.889, 37.8, -71.6833, 158.3064, -117.3667, -119.7681, -123.5667, -66.1333, 39.78, 39.9, -111.0231, 21.7, -120.0078, 15.3, -121.1833, -121.6147, -115.0167, 12.9203, -82.0819, -82.0372, 118.5519, 6.1256, -106.75, 96.117, -96.4497, -115.47, -109.8675, -91.8861, -99.183, -79.0411, -120.0181, 44.22, -70.24, -121.9167, -110.87, -100.6392, -104.7667, -94.8833, -80.3, -80.2833, -80.1833, -80.1336, -80.3164, -80.4331, -80.3836, -80.2803, -98.25, -80.2833, 71.52, 104.68, -116.2667, -118.5833, 9.1, -105.9167, -86.8167, 40.483, -103.3, -103.4, -70.9086, -63.5667, -80.9047, -81.8475, -74.3167, -118.0197, -80.0333, -83.7144, -72.6833, -71.0186, -65.0667, -146.3167, -74.4489, -75.6667, -72.7167, -76.7633, -119.8167, -56.0833, -107.0333, -70.9211, -106.0167, -115.015, -121.5833, -63.1, 131.3145, 131.2988, -107.1833, -1.567, -4.73, -79.7667, -101.8333, -112.6333, -84.2011, -101.15, -84.2361, -102.0258, -80.4667, -79.9333, -102.1889, -102.0, -79.8833, 6.9914, -111.9167, -82.2156, -118.7667, -81.4386, -177.3833, -177.3833, -177.35, -112.8333, -106.2772, -115.4114, 146.73, 25.7331, 16.11, 21.8581, -77.4067, 9.8031, 2.0, 76.533, -120.35, 27.3, 27.21, 21.58, -93.6617, -79.6, 9.1892, -71.1167, 8.7331, -75.0642, -95.9269, -83.6186, -88.7267, -83.6769, 27.8, -96.6233, -96.6689, 0.4833, -104.95, -104.9619, -111.5667, 142.0867, 142.2, 13.9314, -101.6192, -105.8167, -81.2967, -105.8825, 150.1819, 150.1844, -147.1667, -113.0161, -84.3, -84.2867, -74.8, -71.6486, -75.425, -95.1842, -79.4833, -83.6844, -96.8983, -113.0167, 167.9, 21.733, 2.233, 134.9078, 134.8919, -112.05, -111.5333, 147.2739, -114.3667, 3.017, -73.67, -73.7422, -83.2497, -83.25, -111.1633, -81.9672, -98.9814, -81.9197, -76.8028, -93.3, -73.5167, -56.35, -99.4006, -123.2711, -117.1667, -79.7197, -79.9667, -77.475, -82.1, -75.87, -83.4792, -68.705, -68.6925, -68.6747, -80.8561, -75.3167, 13.574, 149.1847, -67.3, -75.05, -76.5667, -75.0667, -129.75, -117.0333, -118.0825, -117.0347, -114.4667, -111.6333, -64.6667, -122.6167, -114.1167, -123.7333, 24.48, -118.8689, -85.8889, 9.2267, -71.1, -87.1414, -118.4089, -79.95, -87.9044, -88.0294, -87.9333, -87.9, -108.0142, -118.1056, 153.59, 131.263, 153.9667, 153.967, -117.6, -117.6328, -109.02, -103.4842, 54.017, 58.567, 66.933, -152.2817, -97.9553, -93.2947, -119.7758, -98.9514, -78.7167, -95.4822, -73.6183, -95.3667, -121.6092, -107.7333, 43.1, -80.7833, -93.8, -98.0603, -120.9833, -92.6167, -92.6167, 73.15, 73.0, -113.6667, -113.5003, -112.6167, -58.536, 132.5688, 137.5276, 6.533, 166.65, -97.7047, -93.2167, -93.2289, -93.3, -99.8333, -100.0167, -91.8122, -99.2656, 135.15, 135.1515, -89.7322, -91.8667, -89.0339, -101.35, -101.2964, -101.2733, 103.083, 27.53, -87.0333, -90.2103, -66.0333, -97.3667, -104.5833, 91.7, 104.02, 30.733, -84.1317, -84.1283, -84.1158, -65.4667, -65.4667, 70.12, -122.75, 113.987, 114.0, 93.017, 113.9, -113.05, -149.4075, 128.75, 141.3667, -64.5, 138.933, 152.833, 20.767, -100.6558, -122.3333, -100.6083, -98.4, -100.8042, -122.2667, -83.3833, -113.9678, -114.0911, -114.05, -114.0925, -95.8811, -72.2, -73.8833, -71.7167, 15.05, -81.1833, -98.0356, -120.1156, -98.0244, -120.1833, -103.7008, -115.5469, -73.6, -98.0333, 125.8258, 147.9777, 26.6, 140.467, 150.47, 12.0319, 11.2667, -37.15, -45.4167, -22.65, -49.6667, -52.7, -53.7167, -56.1331, 11.533, -99.2, 139.517, 125.295, 141.967, 125.166, 131.083, 131.417, 12.98, -105.2919, 44.29, 6.9373, 20.35, 13.48, -109.5458, -109.7542, 13.27, -92.4369, -88.2397, -88.0333, -88.0681, -100.4489, -100.4078, -113.1528, -44.01, 12.15, -109.9514, 14.96, -80.4972, -107.92, -101.08, -109.7, 5.9533, -113.9256, 10.9342, -120.9506, -120.3536, -122.8833, 9.9667, -101.15, -122.0481, -100.2294, -9.78, 30.067, 30.32, 119.7331, -108.7833, 112.0, 27.47, -101.5089, 6.62, -113.7667, 122.517, -74.155, 11.0083, 27.783, 73.35, -74.5667, -76.118, -118.1619, -116.0794, 29.1333, 126.383, -122.5667, -122.5064, -107.6833, 9.2881, 83.783, 7.1517, 7.2617, -1.8853, -90.5233, -87.3667, -99.22, 13.07, -159.3375, 45.85, -156.9475, -157.0961, 148.8598, 39.617, 143.35, 38.233, 147.4333, 147.4167, 147.417, -102.9122, -102.8072, -113.1667, -67.9442, 105.52, 32.883, -71.15, -79.9869, -101.433, -64.7833, -64.6833, -79.05, 7.8167, -91.6719, 100.983, -93.9333, -81.6333, -93.9619, -80.3, 18.68, 104.2, 107.0, 108.4, 108.8, 118.6, 115.4, 96.8, 95.0, 99.9, 101.0, 106.9, 23.15, 23.2, 107.9667, -119.6, -90.6381, -90.7197, -119.15, -93.1, -83.3942, -121.9944, -89.6681, -92.1361, -92.1164, -80.5233, -72.0, -80.6206, -92.1167, -91.7231, -92.0319, -92.0406, -10.362, -87.1167, -72.3333, 7.8064, -97.75, -62.6667, -86.4175, 150.2275, -122.4717, 7.48, -71.9233, -79.2667, -85.8417, -118.1053, -74.9333, -74.95, -119.6481, -77.917, -37.06, 4.7381, -89.3169, -114.1706, -99.83, 11.0083, -85.265, -121.9103, -79.5833, -121.8667, -121.8453, -121.8556, -63.25, -100.2, -100.3, -43.867, -56.2, -95.7461, -56.2, -84.0314, -100.4389, -111.8381, -54.083, 11.17, 9.0667, -57.65, 10.7, -111.5, -119.8, -69.78, -39.29, 16.4, 15.95, -106.1869, -86.2181, -86.4075, -87.2847, -80.3861, -118.3167, -74.265, -121.4833, -86.3, -90.1058, -83.6975, -78.4494, -80.4, -62.4667, -83.9858, -109.3075, -84.8275, -83.7833, -122.1167, -91.7556, -70.5833, -103.4667, 151.1247, -84.6139, -72.6006, -111.3, -73.55, -84.4333, -73.55, -73.6167, -73.5667, -73.5833, -74.0333, -73.75, -79.4833, -73.4167, -73.4167, -82.3167, 6.9, -75.8583, -107.8833, -107.6928, -107.8792, -97.2017, -107.8975, 2.43, 3.5831, -71.4167, -78.7333, -0.508, -68.2167, -75.55, -75.5, -65.7333, -72.2333, 5.2, -104.8675, -119.42, -104.9333, -104.8683, -110.2333, -110.12, -110.2167, 11.2733, -111.5792, 30.17, 140.2102, 140.1956, 146.3792, -113.4167, -118.6706, -110.4922, -114.9833, -80.2172, 116.0072, 145.0964, -104.9292, -105.3667, -78.9664, -78.85, -74.9697, -115.6667, -85.1, -81.0872, -90.5097, -96.7478, -105.7517, -96.75, -93.9603, -115.3303, -110.7169, -69.7186, -98.6167, -67.2819, -110.7119, -110.7333, -113.95, -80.5, -105.5667, -105.7, -105.5333, -92.7578, -92.8008, -149.4261, -115.0167, -101.6667, -80.6, -80.6, -80.6, -80.6167, -80.65, -153.95, -4.2, -70.93, -8.16, -93.3147, 14.59, -38.36, -95.1764, -84.8361, 148.0308, -76.1833, -110.5889, 116.0089, 116.0247, 14.51, -93.2697, 16.39, -98.1, -98.0833, -98.0833, 149.8458, 149.8383, 149.9, -108.4133, -96.7667, -76.7358, -101.183, -84.2147, -84.2167, -132.1333, 142.6389, -117.6333, -81.6728, -75.8861, -79.95, -79.9164, -79.9697, -84.6167, -91.1761, -114.2667, -117.2833, -111.6722, -106.045, 9.8358, 141.167, -111.4425, -111.445, -111.5167, -117.5019, 145.0667, 139.1837, -120.7236, -92.45, 37.667, 44.318, -116.5622, 43.25, -111.5872, -5.6156, -5.6, 34.6, 41.867, -1.6858, -92.7672, -112.6833, -97.3667, -75.1833, -104.3333, -89.9744, -89.4614, -89.4, -83.3325, -83.4028, -72.6236, -75.7264, -72.6144, -88.4336, -74.5, -95.8744, -120.8447, -41.9, -41.217, 41.8, -121.4833, 13.65, -81.7833, 142.7744, -102.7586, -108.7833, -138.8, 150.1437, 150.1532, 146.4747, -107.95, -107.8225, -109.8833, -89.4117, 37.6167, -116.85, -116.9558, -119.2, -119.3192, -119.0667, -162.05, 37.333, 13.195, 142.5, 37.5667, 37.5167, -125.0, 18.111, -103.9439, -80.7647, -116.2333, 17.0, -113.35, 8.1792, 40.67, -113.8925, -93.215, -113.9667, -117.6833, 150.4217, 150.3768, 0.117, 129.917, 17.8, 43.15, -102.3164, -119.15, 22.9831, 11.02, 11.057, -119.3333, -119.35, 97.62, -87.2989, -83.7492, 16.067, -80.755, -80.7667, -94.8233, -95.4508, -106.2606, -106.3103, -94.1542, -77.3, -92.4703, -115.87, -80.5378, -109.7058, -115.2333, -119.3711, -115.5167, 138.8509, 117.6361, 146.2747, 147.1633, 150.2741, 146.8189, 146.4394, 140.4197, -66.9333, -123.0, 138.9469, 138.9273, 145.35, 31.583, 31.05, 145.1, 126.1025, -120.2469, -80.75, -80.75, 140.7739, 140.7833, -121.5667, 148.7721, -122.0447, -73.8667, 145.8772, 147.1342, -93.5781, -92.6, 139.4875, 139.4817, 139.4833, -112.8167, 138.7088, -113.1989, 117.8503, 117.8425, -73.75, 147.1428, 148.0908, -58.447, -122.25, 145.5419, -119.2333, -127.05, -122.4353, 144.3183, -119.1783, 151.2167, -63.8333, -73.8333, 150.2544, 147.235, 147.2464, -120.6511, 23.667, -88.0064, 13.95, -89.0158, -121.95, -120.4333, -120.1678, -81.1, 39.033, -76.97, 36.0, 44.667, 29.18, 29.167, 72.733, 14.1542, 14.3014, 85.317, 31.45, 31.85, -93.3508, -93.4706, -81.8167, -81.8033, -83.4128, -115.9653, -111.7222, -92.2617, -115.7119, -92.3939, -115.8667, -92.3833, -81.5992, -105.8225, -115.5436, -92.0978, -110.3306, -155.11, 31.7, 40.183, 72.72, -121.5403, -80.6508, -122.75, -94.2428, -121.6667, -87.7578, -72.9033, -87.7833, -89.9842, -115.645, -82.8183, -103.4833, -121.9142, -121.9303, -105.5997, -80.0636, 152.7717, -76.4333, -121.6425, -84.5667, -74.8417, -121.7167, -89.7667, -117.1667, -93.5878, -80.9925, -119.6833, -116.4194, -116.4203, -80.5333, -80.05, -83.4411, -104.0233, -120.1833, -120.1333, -72.8153, -82.2711, -82.2667, -82.2833, -77.9053, -80.8483, 106.97, -95.0056, -87.2019, -91.5647, -84.7, -76.3667, -84.7697, -75.3667, -75.3794, -89.2833, -119.8833, -103.4578, -103.4583, -122.3081, -122.3328, -122.3156, -117.1167, -83.9333, -72.0792, 153.1952, -95.2236, -84.3369, -87.8956, -82.4667, -88.8533, -93.8667, -122.3867, -93.8972, -93.8789, -71.2994, -77.8883, -118.0711, -121.6278, -123.3258, 114.9, 69.15, 31.317, -0.883, 129.6, -107.4444, 149.6149, 149.5956, 40.283, -124.8, -116.55, -116.5503, -112.4167, -121.9356, -121.7333, -112.2722, 8.867, 11.5442, 11.8092, 7.5914, -105.0, 7.7, 28.367, 58.5, 90.43, 118.687, 12.5, 25.9831, 59.02, 104.717, 79.65, 30.4, -108.75, -85.0756, -102.7328, -102.7739, -102.7783, -110.2708, -112.9667, -113.3944, -115.8114, -115.7667, -115.645, -101.0458, -81.3264, -101.3364, 115.5142, 7.6392, -7.3667, -79.2472, 149.128, 71.419, 24.8108, 25.0539, -3.983, 70.03, -111.9667, 14.125, -125.7667, -85.35, -85.3936, -76.5867, -111.6392, 157.267, -112.3, -99.6158, -88.0769, 120.2442, 148.9899, 120.7578, 120.6997, -98.9167, 11.783, -86.6625, 12.98, 9.4842, -86.65, 14.45, 23.44, 23.6803, 24.0369, 24.1203, 43.8, 115.9561, -1.1692, -1.2294, -0.8031, -127.8, -100.7078, -65.5167, 100.167, 116.6833, -77.0803, -93.7019, -86.3728, 73.967, 116.4261, 20.88, 33.0497, 140.983, 134.183, -116.7506, -83.9683, -115.3597, 147.6167, -88.3083, -115.8667, 139.2592, 139.2273, 73.38, 9.5717, 148.35, 150.7937, 150.8363, 16.2, 3.321, -114.2, 153.3809, 41.517, 23.4, -91.0728, -91.0464, -87.64, -87.5997, 143.5036, -53.9833, -113.7939, -86.2367, -105.6833, -95.3339, -95.3614, -79.3, 33.8, -66.3333, 23.583, 28.4, 21.0681, -79.6586, 33.4, 119.91, 32.217, 141.217, -121.1944, -99.17, -85.6333, 64.717, 32.917, 24.433, -82.3161, -21.6, 97.4, 12.486, 7.2762, -3.07, 90.45, 77.07, -125.6, 7.1167, 20.21, 31.0, -97.7833, 146.7333, -78.8219, -78.9333, -109.7311, 151.35, 175.77, 73.5831, 55.5, 43.9, 142.08, 156.68, 46.667, -179.3669, 140.75, 144.7297, 58.733, -169.8, -175.8, 142.717, 68.55, -110.0617, 33.6, 34.0167, 20.65, 13.12, -8.833, -155.5842, -0.3, 22.0331, 21.9464, 114.7897, -142.9967, 135.496, 178.7, -120.6333, 157.7, 38.75, -120.8833, -110.8, -94.65, -94.6431, 177.45, 72.67, 146.726, -84.1667, 138.2, 129.866, 14.88, 127.967, 8.7192, 124.88, 136.967, 79.05, 92.067, 92.27, 47.417, 16.967, 125.528, 127.683, 34.7167, -81.9197, 21.53, -61.6833, -61.6833, -81.5667, -3.821, 36.75, 36.8, 37.583, 36.817, 36.433, 44.32, 158.967, 108.43, 104.783, 102.083, 100.167, 99.95, -86.7, -115.1833, -156.65, 36.09, 36.067, -117.8, -117.8167, 149.35, 43.633, 10.98, 71.583, 152.9392, 11.2003, 127.87, -107.41, 127.083, -116.5667, -116.5833, -116.5753, 125.383, 39.283, 11.5706, 12.8458, 127.42, 106.1667, 106.67, 100.767, -123.9667, -123.8667, -123.95, 151.9939, 115.917, 116.65, 106.083, 6.21, -86.05, 35.083, 177.5, 12.4, 102.7167, -84.6167, 118.9, 118.8, 108.217, -124.1833, 118.0, -1.6, -1.611, 120.85, -70.0608, 176.133, 112.58, 112.7, 37.067, -76.9667, 81.95, -122.2847, -122.2647, -81.7158, -77.4, -81.7753, 105.95, -84.1167, -84.1144, -99.7692, 14.3, -155.9094, -64.2333, -64.25, 135.833, 140.7402, 140.727, 146.3161, -119.5667, -119.6, 114.15, 113.73, 101.8167, 90.5, 150.8689, -7.283, -103.1, 118.3956, 53.0331, 35.83, 150.1358, 149.8302, 149.7552, -71.4667, 146.5126, 146.5592, 117.1797, -93.7139, -46.05, 28.05, 17.3883, 76.0, -109.5167, -71.45, -71.4736, -93.8583, -77.9667, -89.3586, -86.2294, -83.2392, -83.2167, -86.6781, -86.6892, 46.23, 71.93, -77.33, -77.467, -75.8667, 14.69, -129.0333, 7.8656, -106.6, -35.2, -98.85, -35.25, -114.8333, 34.9, -61.8167, -61.8, -91.3408, -87.2667, -93.0956, -93.0856, -71.3439, 1.48, -76.97, 20.93, 21.05, 20.97, -111.4533, -109.9772, -78.2903, -122.8394, 166.92, 178.559, -65.9, -4.0103, -109.5333, -107.6214, -110.8, -87.1375, -96.6881, 14.89, 13.11, 65.349, -1.1, 68.39, 45.417, 25.38, -35.15, -104.12, 129.5, 129.55, 28.3, 91.017, 71.367, 27.73, 15.03, 15.445, 28.62, 32.32, -93.2583, -86.9653, -95.8833, -95.8867, -90.0814, -90.1736, -105.5, 115.8192, 21.77, 5.7506, -114.6189, -106.5303, -99.5, -99.5667, -99.4667, -77.9167, 39.57, 39.75, 22.55, -78.4, 60.033, -110.7761, 105.05, -90.535, -114.1, 44.419, 134.5, 8.6314, 136.15, -82.1, 79.983, -98.0733, -117.35, -117.2833, 173.2, 152.1612, -117.3, -117.2, -117.4, 30.98, -7.267, -7.27, -1.85, -103.5097, 145.583, -149.0717, 88.82, 125.233, -101.1667, -88.5, -98.5333, -110.0511, -94.36, 89.07, -111.8319, -65.7833, -87.2167, 136.1174, 119.62, 116.533, 150.0847, 9.1217, 9.1333, -74.955, -118.9833, -99.91, 11.65, 13.306, 8.6808, 11.21, 6.95, 9.2731, 11.133, 13.4967, 8.9108, 9.4064, -8.25, 9.9803, 7.3089, 7.2303, -68.133, 12.8083, 10.6014, 11.8653, 8.1414, 13.0517, 7.4281, 9.0167, -121.0008, -112.5, -94.3736, 141.87, -105.95, 41.967, 34.7, -88.7, -122.0325, -82.4625, -74.1694, -75.7514, -82.4128, -85.6333, -89.2667, -81.6236, -85.5033, -112.95, -87.3744, -77.6167, -104.1886, -69.5367, 29.92, 151.7985, 151.707, 133.4, -108.7167, -84.1722, -74.2219, -74.2167, 118.84, -79.9, -103.4275, -83.4289, -115.15, -121.2419, -118.5939, 0.05, -81.4997, -104.2575, -97.0036, -96.9103, 119.7314, -106.3167, -121.0178, 119.7989, -79.4333, -84.8178, -84.8594, -91.2744, -81.2192, -99.3333, -72.1811, -124.0556, -72.1911, -117.0475, -83.2008, -124.0553, -83.28, -117.8803, -76.8769, -76.493, -76.45, -77.1294, -71.35, -71.2833, -97.3431, -88.1828, -74.7592, -93.0297, -71.0333, -80.9, -84.4464, -89.0703, -88.1183, -84.4706, -89.0817, -2.7864, -62.8333, -1.2158, -70.9333, -70.9583, -81.45, -77.0833, -77.0481, -77.1108, -91.0578, -98.1189, -98.0286, -84.3667, -74.45, -74.4364, -74.4333, -88.7667, -78.3, -65.2667, -65.3333, -80.3614, -85.3953, -53.2167, -121.9667, -80.6275, -119.6828, 77.117, 77.2, -117.3667, -102.8692, -91.45, -109.95, -92.7558, -81.6333, -63.35, -95.895, -92.3122, -113.2897, -87.9481, -72.9333, -72.8872, -127.6, -78.9158, -76.2108, -76.0717, -85.8831, -93.3792, -91.8839, -91.8839, -82.2156, -75.25, -79.6667, -72.1, -88.7189, -94.9392, -89.5325, -86.45, -77.2833, -80.85, -116.2933, -120.5333, -120.4864, 147.0833, -90.0167, -90.0333, -90.1303, -90.2511, -90.0289, -90.0833, -90.0833, -92.8, -74.1333, -81.4317, -81.4236, 174.183, -103.8461, -103.8678, -93.5, -84.2833, -65.8, -77.3833, -91.3672, -101.4897, -70.0003, -80.95, -80.9181, -79.6275, -102.5833, -94.4897, -122.9333, -122.9, -86.1, -73.9692, -73.8833, -73.7622, -73.8803, -73.9333, -95.38, -74.0167, -71.42, -116.243, -114.4833, -96.9578, 13.567, 13.3, 135.5726, 109.2, 141.6367, 141.6486, 31.25, 136.7637, -79.0833, -78.9436, -78.9453, -79.05, -79.0833, -79.1333, 2.13, 1.091, 7.2, -86.4928, -128.9667, -56.98, -57.0, 89.667, -120.65, -72.6167, -72.65, 33.35, -67.15, 8.8931, 6.4242, 11.9064, 9.9653, 10.2442, 7.3364, 9.2242, 7.1492, 34.683, 139.05, 22.5, 19.02, 19.03, 139.5, 31.9831, 29.8, 140.7164, 43.383, 45.45, 165.98, 132.0, 34.45, 18.95, -86.2658, 4.4067, 149.2794, -93.1594, -99.6333, -99.65, -81.4928, -106.4833, -114.4022, -71.65, -151.6655, 121.0, -98.0467, -9.35, -104.0167, -104.0, -104.0167, -104.0, 21.9, -70.9, -70.9, -43.05, -124.65, 18.133, -90.85, -169.92, 179.5, -155.75, -159.7406, 24.9667, -97.05, -105.55, -97.7675, -119.35, -113.1522, 109.55, 99.0331, 138.2164, 34.4, 47.783, 60.067, 43.117, 31.9, 44.0, 57.55, 60.8694, -12.1, 40.2, 34.767, 118.333, 9.93, 138.5057, -158.7042, 131.65, -110.9167, -110.9681, -110.8458, 143.13, -104.1333, 105.807, -113.95, 114.5778, 62.75, -105.0, 49.95, -86.2492, -165.44, -75.0833, 102.7167, 136.4926, 29.97, 146.0, 145.9719, -109.7881, -126.6167, 130.017, 151.5766, 151.5759, -82.3214, 8.4, -116.0833, -116.05, -116.05, 7.1525, 14.37, 6.0999, 8.6575, 7.1056, 11.0058, 13.5916, 19.49, 10.5492, 5.9025, 21.8842, 18.02, 12.6445, -97.4167, -71.3167, -73.2208, -97.4855, -76.1922, 167.939, -97.4353, -76.2833, -77.0075, -76.2289, -76.2833, -88.95, -72.55, -72.5333, 141.0733, 141.0672, -97.4647, -97.4378, -76.788, -97.4333, -126.8, -126.8, -126.75, 15.67, -84.0603, -75.3583, -111.65, -111.6325, 16.2397, 16.1497, 16.12, 18.65, 121.7794, 121.7547, 19.48, 19.38, 129.9167, -76.4414, 116.6586, -109.0133, -168.9667, -110.0, -60.9667, -61.0, -85.6997, -86.2167, -72.6567, -72.6167, -102.1703, -105.0133, -0.417, -94.2556, -117.8667, -85.6472, -87.5914, -118.525, -105.7667, -141.9292, -71.15, -93.2253, -73.1708, -108.25, -108.25, -79.4667, -79.4167, -124.2333, -124.2436, -71.3, -70.7167, -64.0, -71.1383, -113.1833, -105.25, -81.9372, -123.7167, -73.8969, -72.1167, -122.0167, -119.5047, -114.4208, -113.7667, -119.5097, -71.7333, -106.3667, -75.7167, -53.6667, -72.3622, -124.0833, -118.3833, 113.5936, -117.2, -105.05, -74.95, -90.5667, 94.117, -115.1164, -83.5667, -109.8389, -107.15, -98.7747, -85.775, -94.0333, -80.2158, -60.6667, -122.0333, -89.2417, -123.2833, -100.7494, -100.6694, -147.3253, -120.5306, 151.9, -81.75, 135.8784, -117.5667, -114.8333, -71.6303, -78.8467, -85.5997, 116.7222, -81.1494, -99.8361, -117.25, -99.9386, -71.1667, -154.3333, 6.6592, -73.45, -73.4167, -82.6167, -111.0519, -97.85, -97.8333, -97.85, -97.8, -97.8486, -75.5197, -72.3, -95.2, -72.0642, 1.283, -108.2864, -77.9667, -71.1736, 66.02, 13.3025, -117.5667, -123.4667, 9.2105, -71.0833, -70.4167, -74.05, -74.9833, -72.3167, -68.8, -75.6333, -70.4, -1.25, -77.9333, -17.033, -17.05, -15.93, -7.5833, -7.583, 166.03, 166.45, 166.4333, 166.45, 3.794, 24.95, -66.3, 12.2917, 49.6, -42.32, 13.65, 33.367, 27.267, 14.5, -52.35, 31.25, 19.85, 90.681, 25.85, 27.633, 86.883, 11.833, 31.633, 37.767, 106.65, 82.9, 48.1, 15.2, 48.8, 72.9494, -95.6436, 79.48, 150.545, 150.5353, 20.7, 54.75, -115.9461, -108.5583, -61.92, -107.95, -60.883, -75.417, 177.15, -151.0017, -175.2, -171.917, 59.617, -158.1022, -71.7017, 120.1103, 130.8976, 150.229, -75.1833, 145.45, -166.2, -104.7833, -104.7553, 65.683, 66.1, 6.9506, 6.8703, 139.0047, 139.0056, -109.38, 24.6567, 11.0567, 11.2553, 9.3269, 41.2, -81.0167, -110.2569, -51.75, 80.767, -85.7881, -85.6753, -159.9833, 24.883, 114.53, 17.7197, 72.9, 36.97, -109.8081, 12.54, 94.47, 21.7333, 16.92, 147.1961, -116.9903, 34.733, 11.9331, -73.9808, -74.1167, -113.2667, -78.7239, -72.5056, -123.05, -123.05, -123.0833, -122.9667, -122.7517, -64.2667, -98.6564, -100.4175, -96.85, -97.9667, -120.8667, -98.0919, 151.7413, -90.75, -122.1667, -95.3844, -85.9833, -79.4, -122.2208, -122.2642, -122.2208, -122.1447, -113.8981, -100.9628, -100.9447, -90.5133, -87.1706, -100.6333, -98.0333, -122.4433, -79.6833, -123.2333, -79.7, -79.6333, -79.6833, -98.7333, -112.3342, -111.7517, -118.2594, -111.7553, -116.795, -81.1508, -122.85, -121.9833, -118.7017, -84.3167, -79.4667, -84.2375, -84.2486, -114.4714, -81.03, -81.0331, 147.3711, -96.717, -103.2, 12.783, 48.53, 11.0272, -100.5342, -82.2167, -92.7739, 8.5742, 150.0227, 149.8374, 11.5539, 10.2767, 9.3533, 12.2775, 12.4381, -74.9333, -55.51, 143.217, 49.65, 131.083, 26.5, 26.0331, 5.5553, -43.1, -114.8333, -74.1, -82.0778, -82.1, -105.0608, -81.6214, -76.0333, -73.6269, -117.395, -117.3494, -75.0833, -75.1239, -127.6833, 169.58, 31.55, 5.955, 142.7, -121.7167, -103.425, -120.3333, -120.4264, -81.2833, -99.7833, 11.8089, 7.1792, 23.9331, -83.3056, -83.7136, -88.5036, -99.7633, -87.955, -86.4667, -116.1689, -93.38, -75.9872, -76.05, -95.3333, -122.05, -121.9639, -122.05, 28.0, 10.33, -93.7667, -93.8061, 30.63, -102.3592, -118.6967, -102.3867, 72.967, -7.57, -7.567, -0.95, 49.4, -103.2372, -91.875, -91.9131, 133.0581, 14.4831, 8.7864, 7.9264, 15.6226, 141.717, -101.7206, -94.05, -75.4442, -111.95, -87.1833, -111.9667, -112.0114, -111.9369, -111.9467, -112.0283, 16.17, -138.3, -102.7458, 129.067, 82.95, 37.479, 55.383, -156.0442, -114.3158, 7.9933, 35.633, 143.2164, 135.5, 20.8, 9.5183, 131.617, -119.2275, -119.2303, 15.2, -88.5467, -104.42, 143.15, -105.22, -74.0667, -119.45, -119.5833, -93.9167, 133.917, 20.967, -80.8653, -80.8667, -98.315, -96.3033, 86.5, 17.87, 127.65, 128.423, -97.5333, -97.6469, -97.3833, -97.6006, -95.85, -96.025, -88.75, -113.9833, -113.9667, 8.0506, 156.2, 45.45, 28.9, 66.05, 52.583, -116.2828, 151.28, -155.0333, -155.0667, -113.8161, -121.4333, 16.44, 17.1, 16.3997, -94.7603, -94.8897, -94.7392, -75.591, -116.2833, 9.52, -91.9, 8.2525, 6.7567, -93.0239, -114.1, -114.0833, -107.9667, -139.8333, -139.8333, -144.9833, -110.8328, -74.9839, -104.5561, -117.9167, 127.7817, -86.5631, -85.4833, -85.5161, -91.6667, -68.65, -68.7006, -68.6667, -78.4517, 120.4167, 112.4331, 93.23, 70.883, -122.8064, -91.1333, -44.81, -119.5667, -60.85, -113.35, -119.55, -113.3667, -84.9167, -89.8297, -89.3506, -83.1036, -94.9297, -92.2422, -111.6539, -98.7664, -114.5739, -88.0817, 151.25, 32.983, 115.583, 10.033, 6.3756, 146.3233, 20.4167, -102.1356, 42.0, -82.4, 16.12, -122.9033, -122.8833, 138.217, -96.0233, -95.8992, -119.5333, -119.5167, -119.5167, 147.6008, 147.598, -83.8333, 91.717, 160.53, -76.85, -76.7833, 73.3831, 155.783, 142.967, 6.55, 140.9, -71.0333, -84.2, -84.2233, -96.1258, 6.5331, 6.5392, -110.4667, 38.1167, -84.5308, -83.65, -86.4692, -75.0667, -75.0, 118.4889, 10.0519, 86.133, -100.1447, -123.615, -110.85, -75.7167, -178.717, 115.1117, 115.1092, -117.65, -117.6003, -116.9717, -117.0128, -89.3167, -89.2075, -90.94, 135.4456, -155.2833, -86.5519, -95.6833, -101.3333, 2.9206, -126.0, -126.0, -158.0378, -117.1756, 48.3, -110.6, -85.4492, -92.0833, -86.5486, -106.4167, -106.38, -106.3153, -118.1, -155.8747, 17.9667, 9.6667, 7.2267, -110.7833, -110.7344, 21.9, -103.2683, -64.329, -93.7417, 4.833, -80.8733, -80.8333, -80.8581, -80.55, -80.05, -80.0833, -93.7394, 149.0828, 149.127, 149.1229, 149.0231, -81.3, -119.3, -72.2911, 149.1, -81.9681, 0.8, -0.65, -0.65, 19.1667, 105.4, 148.4667, 148.4589, 12.7, 150.7069, -116.0, -112.6389, 37.9, -103.7058, -103.7219, 81.95, -98.9517, 15.29, 15.16, 15.05, 15.27, -95.1464, -122.6047, 18.43, 36.0, -111.7369, 55.1, 55.1, 147.8753, -112.8003, -124.0192, -76.7, -117.4964, -79.4, -79.4333, -79.4167, 25.7719, -122.1667, -97.1, -98.61, 9.7887, -3.3, -122.1997, 9.6014, -81.3331, -81.325, -81.2436, -123.5317, 1.75, 1.34, 99.8, 105.83, 2.359, -103.6667, -105.3667, -74.05, 19.0, -116.2667, -106.0925, -66.4667, -78.6167, -68.6744, -117.8389, -121.5531, -121.55, -119.5, -121.4667, -121.6183, 22.1, 148.95, -112.75, -92.7636, -92.8572, -6.5, 30.417, 18.38, 6.1575, 6.0806, 13.25, -81.3045, -67.07, -92.8106, -95.8031, 135.517, 127.0333, -94.9597, 13.98, -89.9833, -93.7036, -93.7503, -97.55, -92.75, 13.1, -83.4, 72.8, -78.8667, -78.8667, -78.8333, 139.383, -102.3464, -88.5581, -88.5569, 18.6331, -92.6467, -95.2725, 12.86, 16.41, -75.2, -106.5, 10.72, 10.7206, 10.7175, 91.867, 25.933, -97.5969, -73.05, -119.4333, -119.4333, -119.45, -77.48, -120.1833, -73.8667, 163.17, 33.117, -96.4833, 11.933, 18.98, 18.99, 7.2781, 10.2219, 12.7, 12.68, 12.65, 18.3, 98.7, 10.8667, 21.57, 164.17, 167.98, 110.8, 162.483, 90.62, 82.2, -174.62, 137.87, 94.2833, 112.933, 57.9667, 40.68, 82.2, 79.7, 75.7667, 76.98, -178.4833, -94.43, -69.238, -78.0072, -95.1039, -76.4933, 75.25, 141.017, 19.8763, -119.0461, -107.8408, -123.9239, 107.983, -95.2808, -75.7167, -88.9106, -75.7167, -75.7167, -75.6667, -75.6667, -75.6167, -83.2, -75.6333, -95.5464, -106.25, -111.2806, -137.05, 26.017, -106.0167, -101.3667, -92.4333, -92.4467, -1.52, -1.512, -2.43, 167.2406, 44.43, 5.413, -6.9, 29.33, 6.14, -5.05, 16.05, -68.2, -1.93, 24.8864, 25.3506, 25.3756, 25.4831, 25.3967, 7.117, -107.6686, -107.6725, -109.6436, -7.8603, -7.8631, -40.04, 146.7106, -104.8333, -107.05, -107.05, 28.9831, 142.3158, -152.5011, -113.1314, -113.2833, -113.0564, 13.07, 19.2803, 22.8, 22.85, -107.6333, -114.4581, -99.59, 23.65, -84.3333, -5.5, -5.8728, 15.3, 8.9595, 28.783, 136.2, -93.2308, -87.1183, -120.245, -86.445, -118.5506, -84.8167, -84.8167, -90.5545, -80.9167, -80.9333, -76.6667, -109.0167, -84.18, -116.1, -117.2467, -117.2333, -102.1167, 17.12, -76.1667, -75.7333, -63.8667, -1.5833, -1.27, -78.6167, -99.6522, -78.6108, -112.1333, -119.1753, -119.2069, -119.1375, -76.9947, -119.3667, -110.35, -110.5167, -110.4667, 8.2043, -125.1333, 10.4325, 44.0, -93.8167, -93.8683, -85.6833, -93.1261, -119.3539, 156.483, 10.3689, -101.2061, -101.0367, -103.75, -100.4933, -57.9, -119.3111, -156.1186, 18.96, -155.4333, -155.3683, -102.33, 89.23, -125.1, -98.75, -122.4717, 150.7342, -120.5031, -121.6744, -103.4819, 100.35, 33.42, 30.22, -88.0903, 9.9267, -98.78, -62.7333, 11.8803, -69.229, -56.06, 140.4864, 140.5212, -100.2989, -88.7719, -88.6167, -100.2981, -88.7, -88.5833, -88.55, 10.1381, 31.85, 68.13, 32.4831, 11.0331, -111.4483, -80.3728, -111.4478, -107.0169, -170.7136, 89.08, -85.3, -85.2667, -155.4778, 22.34, -109.9639, -115.1217, -116.0561, -116.1017, -81.2956, -109.7689, -113.0317, -75.8217, -82.7883, -99.85, -120.5403, -81.3667, -4.4297, 23.3928, 23.3953, -111.1333, 24.033, 18.8667, 105.167, 14.87, -96.2536, 21.1, 18.5, -81.6606, 14.92, 104.68, -4.5353, 13.3514, -100.98, -87.6225, -95.6039, -95.7233, -95.5717, 19.7667, -108.3506, -111.2167, -107.1833, -110.7167, -155.2922, 24.2106, 21.61, 21.62, -132.05, 46.883, 2.7, -48.3, 2.7367, 2.6264, -118.0939, -118.0836, -36.7, -64.1, -106.35, 146.9886, -75.6167, 144.0758, -149.1, -121.8514, -149.0992, -104.9169, -149.0917, -64.083, -86.5833, -117.7667, -68.233, -76.32, 38.3, -78.2644, -80.1489, -81.2061, -116.5097, -116.5053, 109.3, -116.84, -73.185, -107.38, -122.1667, -122.1403, 23.5, 40.0, 119.73, 79.3, -107.4333, 65.7, -100.9736, -100.9667, 57.6, -1.65, -1.6364, -89.0867, -85.7, -85.7, -85.6606, -85.6828, -117.0878, -116.1925, -105.6667, -101.4533, -101.5575, 25.633, -83.9614, 106.13, -65.7333, -65.7167, -65.7167, -112.4386, -101.3897, 64.133, 116.3308, -120.45, -120.7658, 11.97, -103.2061, -103.2092, -103.2, 104.62, -94.8778, -86.4858, -107.5833, -107.6236, -37.43, 71.12, 17.4667, -149.58, 32.41, 81.5, 117.6692, 117.7494, -46.867, 70.083, -109.2186, -121.6239, -121.7167, -110.35, -117.5478, -90.4286, -108.95, -108.9833, -108.9494, 138.6281, -90.4914, -90.4978, -57.133, 21.7028, 21.3708, 2.617, -55.17, -55.2, -51.183, -60.483, 174.983, 138.2864, -68.1333, -114.9161, 119.5811, -74.6167, -111.8219, -111.9, 29.4639, -56.73, -95.5586, -93.7167, -111.4, -80.45, 2.3367, -88.2958, 2.45, -82.4167, 2.5, -117.6833, -87.6672, 22.83, -106.0667, -121.5833, -121.5894, -121.5833, -114.2897, -104.7503, -81.5572, -81.4392, -103.2667, -81.6667, -104.6567, -122.2781, -109.9167, -114.1708, 148.2428, 148.1639, -120.4319, 69.383, -65.0667, -97.8333, -84.65, -104.9333, -76.7, -121.5333, -111.5083, -111.5156, -106.5833, -120.9167, -90.4506, -87.6803, -95.0678, -107.8667, -118.9425, -97.75, -113.35, -111.6167, 10.315, -116.9442, -41.783, -41.75, 137.3333, -112.8292, -81.3181, 151.0181, -102.17, -82.3475, -111.8, -64.3333, -64.35, -80.0, -80.05, -80.05, 11.6908, -102.1333, -79.6339, -95.2892, -95.5042, -88.12, 133.017, -77.7, -113.8858, -118.1447, -103.7408, 44.7, -88.4781, -88.5319, -119.1167, 63.344, -56.98, -105.13, -68.883, -57.152, -56.517, -108.92, -83.18, -120.6856, -120.6283, -101.5333, 13.47, 13.4167, -44.96, -71.2667, -117.65, 8.9, -52.4, 11.0, 11.7808, -77.267, -104.9167, 112.92, 29.2457, -103.9167, -69.5, -73.0014, 24.82, -74.15, 151.5919, -106.8528, 76.467, -66.0333, -120.925, 107.05, 85.1, -37.267, 21.7333, -111.6667, 11.47, 101.1333, -68.4975, -92.1186, -122.8667, -76.4167, -76.4167, -0.42, -124.0833, -124.0833, -84.5919, -119.9972, -41.133, -38.217, -97.2814, -97.2292, -113.7622, -74.2667, 39.25, -78.0319, -108.6942, 21.183, 76.933, 10.8281, -96.3472, -96.1558, -71.3667, -85.9, -88.9781, -145.4983, -145.45, -145.5014, -145.5, -88.1417, 103.92, 6.95, -116.9311, 117.6836, -108.95, -58.033, -72.24, -111.3447, -111.2667, -111.3028, -111.3333, -111.6333, 40.9, -66.92, 77.633, -60.45, -70.9833, -100.05, -117.45, -117.25, -119.7167, -120.0, -119.7333, -79.6, 148.1902, -117.8969, -109.8378, -109.9, 116.0189, -103.3833, -89.6167, -61.8, -99.0897, -93.2833, 151.2443, -114.9167, -121.9333, -85.4333, -82.2986, -121.9833, 20.3, 57.1, -103.5, -105.6886, 18.2, 18.23, 15.729, -105.4739, -80.381, -55.8333, -55.833, -83.4167, -83.4167, 166.5, -8.65, -61.9, -114.4167, 167.217, -89.7994, -61.55, -82.6833, 134.2667, -136.2214, 27.92, -81.2744, 27.2219, -92.9203, 23.9669, -84.7928, -101.8667, -101.9, -89.7167, -135.45, -137.3667, -86.2667, -88.3325, -52.41, -121.2506, 10.883, 40.533, 39.72, 116.0433, -74.6828, -122.7333, -122.8167, -122.55, -122.9333, -97.2417, -77.25, -77.15, 100.277, -123.3, -118.8528, -118.6264, -118.7964, -118.8522, 81.9, 67.6, 138.65, 119.5, 122.067, 108.17, -7.55, -3.2258, -108.2333, -66.7333, -82.9967, -77.0628, -77.1833, -77.0564, -115.8008, -158.05, 150.6783, -87.1986, -87.3167, -87.35, -87.1869, -87.2167, -105.0, -67.1667, -119.5833, -119.6, -102.5897, 45.02, -89.5664, -89.6, -118.3, -89.6, -89.6839, -155.0833, -114.5333, -75.133, 22.95, -113.0833, -64.2, 9.4331, -75.8, 15.7, 50.3, 38.8, 116.92, -60.55, -72.0333, -71.017, -97.0481, 6.3864, 56.3, 2.8731, -96.6667, -80.4361, -117.2333, -83.5742, -97.2897, -94.1106, -79.0031, -87.5067, -100.8239, -77.0858, -92.8167, -88.0333, -89.92, -90.8236, -76.7, -83.5736, -95.4097, -117.4833, 14.24, -103.1736, 115.9, 115.9764, 115.8728, 115.8667, 115.5, 26.3306, -89.1072, 12.5, -73.57, -86.15, 30.85, 86.22, 12.91, 119.6, 14.2, 71.933, 71.515, -87.7355, -36.76, -122.6078, -101.26, -77.3167, -77.3167, -77.25, -77.4333, -78.3167, -78.3667, -78.4, -78.3167, -78.3167, -78.3, -78.3, -71.95, -77.3925, -79.1361, -132.9372, -98.0097, -87.2658, -79.1167, 19.7, -70.5667, -70.05, -84.9767, -84.9511, -57.3, -109.885, -106.7108, -82.1667, -40.483, 158.5833, 69.15, 158.65, 108.867, 34.2667, 60.77, -99.5333, 170.33, 10.8608, 8.7419, 9.2878, 31.12, -112.0947, -105.85, 108.95, 108.1, 100.8658, 99.9, -85.0167, 101.15, 100.0667, -75.7, -89.1303, -75.1833, -75.1833, -75.2311, -74.8178, -75.1667, -75.0111, -75.2, -75.25, -75.1833, -75.1728, 46.352, -80.0411, 25.5, 8.4425, -73.0833, -113.3, -78.2161, -78.0667, -113.3, -113.3, -101.6011, 124.83, -88.308, -104.4936, -75.1833, -99.3186, -99.3106, -75.2042, -108.1667, -110.9167, -105.05, -81.9, -88.1533, -81.9167, -80.0272, 100.267, 104.844, -111.6692, -75.5011, -112.0825, -112.0817, -112.3667, -112.3667, -112.0039, 100.167, 98.4, 98.317, 104.27, 106.633, 103.967, 9.73, 10.5164, 7.7, -61.35, -98.25, -114.0667, -105.1333, -105.14, -111.4017, -78.5167, -89.7083, -79.467, -73.086, -89.9775, -82.7189, -80.2167, -80.1833, -79.05, -111.2667, -105.5164, -111.5833, -90.2167, -90.2167, -98.5325, -41.48, -65.7592, -77.1333, 150.6145, -62.6833, -112.7833, 0.1, -79.0333, -78.1203, -79.9433, -100.535, 26.9831, 30.0167, -115.8006, -109.75, -96.1817, -120.6422, -114.0833, -115.8333, -115.8, -72.8333, -100.3531, -100.2856, -101.2667, 17.833, 22.5267, 22.5831, 30.38, 29.483, -107.8883, 30.9, 30.78, -121.4167, -62.383, 22.4331, 22.55, -76.7167, -85.1936, -82.5167, -121.2025, -113.3333, -80.7014, 16.75, 27.17, -58.317, -109.683, -63.883, -105.15, -121.0086, -98.8833, -98.9, -98.9, -97.0122, -118.8253, 142.167, -75.5, -119.95, 36.4, -81.6, -96.0667, -95.9167, -96.0667, -113.95, -114.0, -114.0, -114.0, -114.0, -113.9667, 151.2448, -110.25, -109.8581, 43.383, -119.0, -79.4667, -82.7, -104.7978, -109.9219, 30.87, -81.5356, -87.4667, -96.0, -92.0189, -104.0667, -104.1583, -91.9347, -112.25, -95.0833, -116.18, -111.2167, -111.2008, -96.8, -96.2167, -121.2561, -116.6339, -104.5797, -127.7333, 150.2167, -113.5, -122.4833, -102.5667, -102.5183, -108.4072, -100.3167, -100.5667, -89.0333, -94.1089, -104.8078, -104.8089, -116.1189, -111.8378, 103.6833, 160.7, 117.0831, 106.667, 119.78, 104.52, 105.42, -104.0556, -71.2525, -121.1472, -121.1822, -102.2042, -111.8606, -79.9833, 26.117, -86.685, -113.5167, -108.4597, -114.45, 8.683, -88.1828, -96.3258, -112.7386, -84.2342, -44.91, -47.333, -48.967, -41.783, 23.6231, 130.4217, 7.5881, 92.267, -118.81, 10.393, -76.22, -76.3, -82.6475, 78.28, 11.72, -112.3167, -120.6831, -130.1, 21.49, -106.5333, 65.933, 21.52, -79.1667, -94.7025, -79.9217, -80.2144, -80.0, -116.4686, -73.25, -90.8058, -73.2892, -69.9647, -85.1667, -90.1333, 151.6333, -122.6833, -122.6833, -122.6167, -80.6, -112.1833, 39.533, 24.5, 43.0, -108.0514, -120.8244, -120.7333, -110.1, -120.6456, -74.4025, -72.4153, -102.8281, -100.6, -103.5189, -114.8667, -114.8794, -84.33, -84.3711, -101.7022, -102.2153, -101.7461, -99.3808, -93.6944, 57.683, 14.1, -82.1422, -149.0833, -67.3833, -161.7833, 25.72, -90.4656, -74.0914, -83.1167, -94.4544, -73.4667, -73.4667, 12.133, 37.23, -98.4772, -94.7, -74.5167, -60.7667, -136.3667, -111.7339, -111.75, -94.2647, -75.4464, -114.9167, -110.9333, -110.9442, -118.3333, -101.3333, -104.5678, 26.13, 23.32, 24.5833, 19.35, -104.5164, 19.73, -3.467, 24.75, -99.0833, -99.0, -116.9544, -97.8, -86.95, -56.8833, -119.9, -86.3358, -83.4333, -87.9714, -71.6833, -71.65, -82.7, -81.5308, -76.6592, -70.6961, -4.1167, -70.7294, -86.3167, 13.267, 16.9333, 15.533, -65.067, -1.15, -158.0892, -94.6614, -90.9683, -112.4086, -112.4444, -112.5711, -63.8333, -75.55, -76.5108, 19.283, 79.47, -14.917, 19.37, 141.63, 143.8, 131.3831, 129.38, 23.5331, 158.2167, -127.95, -74.8, -68.4833, -68.4667, -73.8, -70.1167, -67.3833, -73.9167, -4.733, -3.167, 11.9, -66.4333, -113.9792, -60.3333, -123.7, -123.2667, -133.6264, -96.5553, -69.7167, -124.2833, 149.2747, -163.05, -55.4, -66.45, 144.6142, 153.5456, -150.0819, -79.9131, -119.1167, -123.9833, -4.367, -82.5167, -82.5167, -83.0167, -77.15, -121.2833, -82.1333, -82.1167, -134.95, 144.5361, -119.6333, 128.65, -113.6333, -93.5861, 84.0, 78.03, 129.15, -70.3608, 58.0, 32.2, 135.2928, -114.2842, -114.2803, 26.7, -111.8406, -115.7861, -115.25, -105.4, 15.7, 32.4331, 33.4797, -100.2875, -111.6, -111.7, -92.4667, -121.4464, 29.45, 98.672, 28.767, 149.2, -89.6119, -114.1906, -114.2419, 34.5664, 131.317, 71.75, 68.683, -117.5883, -82.0, 23.53, 11.5156, -93.3169, -117.7658, -95.5661, -80.1406, -80.1083, -45.0, -108.0039, -97.0903, -97.1019, -66.5253, -66.5667, -66.6, -100.931, -77.9833, -77.9667, -77.9667, -77.95, -6.6, -25.698, -55.7, 14.9, -8.6164, -8.6494, -88.6364, -83.4181, -83.2556, 109.33, 109.3, -88.9975, -88.9983, -111.8986, 36.3164, 12.95, -55.5833, 73.85, 142.5696, -155.5583, -120.11, -76.6, -76.6, -79.0089, -120.5667, -89.5453, -105.15, -90.4056, -90.3247, -105.0731, -118.3833, 20.2331, -110.4667, -102.3894, -121.8, -106.6464, -81.2667, -103.15, -102.2711, 46.33, 9.484, 21.7967, 21.7864, 21.3792, -63.967, 143.1, -106.3333, -110.7175, -80.8, 10.9769, -89.4342, -89.6997, -89.6833, -78.04, -71.2167, -148.8389, -98.3, -98.3167, -98.2833, -98.2667, -109.1667, -102.55, -7.4167, -103.3519, -103.4333, -109.2056, -119.02, -135.1167, -116.4992, -91.5058, -70.25, -70.25, -84.9925, 141.6333, -2.45, 141.4705, -122.9486, -122.6003, -70.3003, -122.6894, -122.6667, -86.5258, -122.4089, -122.5381, -8.6, -120.4719, 13.57, 13.6, -80.45, -51.16, 13.75, -52.233, -35.43, -48.72, -48.583, 0.33, -8.7, -16.35, -63.917, 144.6667, -71.2667, -70.7167, -70.8167, -82.8872, -52.8167, -124.8, -124.8333, -124.9333, -124.75, -124.8, -124.9333, -141.0061, -134.6447, -127.45, -78.2872, -154.3164, -154.3197, -154.32, -123.4317, -123.4983, -123.4, -97.0592, -96.8231, 121.2, -89.2167, 147.8333, -94.0206, -93.9333, 137.7144, 137.7667, 137.79, -82.9333, -82.9703, -59.15, 70.25, -74.7, -72.4, -72.2, 92.717, -54.1667, -80.8167, -122.0167, -166.8667, -76.0333, -69.2622, -79.25, -79.25, -122.7833, -79.2667, -64.9833, 145.4643, -80.2167, -89.1667, 25.617, -76.1333, 142.2347, 8.78, -90.9719, 7.02, -127.3667, -61.4, -61.3833, 118.6317, 118.5742, -158.6167, -61.5333, -82.7142, -78.2833, -82.7931, -82.4194, -97.3094, -97.3458, -74.6847, 129.5282, 129.5215, 150.9131, -96.6333, -80.4667, 135.8558, 135.8511, 152.8655, 152.911, -97.4264, -80.215, -123.5, -64.35, -64.3, -122.8833, 147.217, -92.85, 16.87, -96.4278, -107.8331, -124.5167, -124.5011, -78.9667, 138.0104, -118.0333, -124.3333, 32.2297, -80.2628, -148.0672, -57.2, 30.45, -130.4333, -81.2167, 37.217, -89.7, -122.7586, 168.32, -87.8636, -79.2167, -91.3856, 25.6283, 25.6114, 25.6589, 25.6017, -55.971, 10.067, 130.8, 83.383, -118.6333, 42.7, -46.367, 171.2, -98.55, -98.4333, -101.3744, -65.7333, 14.2586, 23.067, 14.2, -91.5581, -103.9333, -121.5, 27.067, -94.6333, -94.6264, -98.5686, 15.8, 29.017, -116.855, -116.9833, -113.5744, -65.75, -90.8411, 116.55, -69.45, -116.6089, -75.0, 13.0639, -113.5744, -123.1286, -119.6333, -75.5572, -120.1333, -73.9333, -73.92, -73.8842, -83.7833, -78.9833, 127.73, -121.7706, -79.25, -117.0292, -105.035, -106.9883, -107.1333, -106.9894, -108.7667, -114.7111, -81.3167, 145.7428, -108.7592, -114.6881, -124.5, -124.55, -124.5, -124.5167, -97.2667, -124.0689, -102.6467, -124.0625, -77.8858, -73.2228, 147.2831, -54.383, 16.633, 34.9, -100.5, -58.783, 101.367, 99.8, 17.233, -99.7908, 14.4192, 14.45, -115.5833, -115.5717, -90.4642, -118.7139, -91.135, -89.7283, -85.1967, -102.9833, 14.99, 12.445, -61.5, -98.7281, -86.4833, -145.03, 11.62, 14.4, -102.65, -130.0167, -90.3017, -85.4278, -113.6, 107.967, 133.9, 145.5517, -100.75, -102.42, -102.43, -102.58, -109.65, -99.31, -116.9, -100.62, -112.4322, -93.3878, -112.4208, -100.1617, -60.483, -55.476, -51.383, -104.3714, -68.0089, -68.05, 11.5383, -111.8825, -80.4167, -92.0747, -2.7031, -75.9167, -111.85, 28.183, 28.217, 28.27, 31.27, -101.8561, 119.067, 15.767, 138.0014, -68.1333, -110.8189, -110.7547, -110.8333, -82.9239, 25.333, 12.3639, 22.73, -116.9636, -119.9061, -116.8353, -120.6953, 18.6, 21.5667, 32.383, 12.683, -75.3333, -95.6292, 38.15, -108.3667, -75.6822, -63.109, -87.8833, -81.0822, -93.5839, -89.4519, -120.5, -87.8672, -87.5906, -120.5167, -120.5167, -89.7564, -159.4828, 38.064, -105.75, -105.6667, -76.5833, -78.555, -122.8, -122.6833, -122.7333, -122.6833, -122.6667, -122.7667, 37.149, -130.45, -130.3833, -130.45, -130.45, 7.42, -122.1667, -120.8081, -43.117, -119.8167, 20.73, 13.42, -98.4942, -101.0, -89.65, -97.66, 76.383, -111.0167, -111.025, -36.867, 148.555, -122.5164, 150.9127, -119.7667, -119.7581, -80.5167, -87.7622, -71.4167, -71.4, -82.2333, -71.4325, -81.4, -70.1833, -70.2167, 100.5, -123.2303, -111.6508, -111.6667, -148.3333, 24.467, -95.3297, -108.4908, 35.333, 22.7667, 78.4, -110.93, 70.367, 28.3331, -155.5453, -155.7078, -155.6272, -155.7022, -1.94, -4.367, -54.6, 126.7, 118.53, 27.0167, 26.9667, 79.43, 36.517, -98.2, -104.6089, -104.65, -104.4983, -104.7169, -96.483, -82.9, -67.5, -72.67, -83.6333, -67.5, -57.9, -57.933, -79.43, -65.904, -83.8, -83.017, -65.0, -73.1, -86.9, -113.55, -70.55, 118.73, 101.4, -63.65, -159.3964, -165.8, -165.9, -86.3, -86.2833, -86.3, -138.8, -99.2333, 13.92, -76.1164, -80.7842, -80.7833, -87.0422, 21.9667, -122.2981, -117.1861, -117.1667, -117.1086, 39.9, 31.02, 128.15, 29.3181, -111.3064, -70.02, -84.833, -71.7, -70.967, -68.363, -72.63, -73.87, -54.95, -74.15, -68.4, -73.7, -88.78, -82.05, -81.9983, -81.9914, -57.283, -75.37, -114.28, -103.48, -71.4, -122.95, -152.735, -124.0833, -124.1333, 27.7, 28.0603, -97.3842, -100.2472, 101.58, 30.17, -88.35, 28.9, 13.483, -84.4167, -99.1925, -71.9167, -98.9603, -79.2825, 79.833, -82.8, -155.8219, -156.6736, 28.1917, 28.0789, -158.1197, -155.8453, -122.3333, -77.9, 126.92, 69.083, 25.7092, 26.4167, 127.283, 125.8, 125.67, -88.71, -118.9361, 24.73, -118.8778, -69.2167, 28.7, 54.083, 46.125, 59.4, 97.167, -46.05, -46.0331, 32.7, -53.5167, -50.6831, 124.867, 85.55, 91.63, -64.0333, -64.0333, -64.0333, 98.42, 120.333, 119.03, 118.95, 124.95, 108.617, 110.467, 123.917, 89.567, 117.85, -103.8833, -103.9833, -124.0333, 7.9553, -75.3333, -109.0833, -124.4333, -124.4, -124.6167, 147.869, -99.7578, 147.7937, 106.5, 108.8, 107.1667, 106.7833, 104.47, -77.3167, -77.3, -69.6333, -89.2667, -114.2272, -164.65, -122.9336, -120.7833, -117.0833, -127.65, -128.0333, -71.2167, -71.3833, -71.3833, -66.9358, 11.1331, -77.4167, 144.6621, 26.867, -112.9833, -112.8, 145.5447, 35.983, 36.883, -108.4922, -106.3833, -100.2772, -100.186, 11.5428, -111.02, -122.4833, -122.5167, -122.5167, -122.5, -122.5, 66.938, 66.95, 67.0, -126.9, 9.883, -83.3492, -122.9136, -124.555, -104.2333, 144.2578, -123.812, -123.8497, -70.67, -120.9475, -91.4, -119.8525, -119.8333, -84.5836, -91.4281, -84.5833, -120.9419, -91.1919, -96.1333, -118.4333, -125.3, -70.683, -100.2389, -71.517, -109.25, 150.6792, -88.7189, -83.5692, -78.5, -39.0, -39.3, 109.2167, 95.783, 95.85, 146.3467, -71.4167, -90.9, 118.867, 11.2, 24.4106, 23.9, 23.5764, -6.83, 152.18, -149.7283, -106.7333, 130.0161, 130.0148, -127.2167, -107.8667, -80.9, -123.5333, -115.7461, -70.5475, 18.2, -87.7861, -87.8136, -84.5833, 13.698, 10.8167, -80.5864, 105.179, -136.15, -107.4167, 9.0017, 13.456, -112.9, -112.8833, -79.2189, -117.3333, -61.55, -75.513, 43.491, 35.488, -113.2594, -99.2903, -79.6833, -103.7492, 109.963, 8.5731, -74.2569, -82.1928, -122.1333, -97.7064, 153.0891, -81.9667, 141.995, -89.5472, -80.7833, -112.0333, -121.9114, -121.7425, -120.7167, 81.667, 11.1058, -89.8667, -61.5, 70.783, 88.7, -161.1, 24.3, -78.6839, -89.5525, -78.7819, -78.6989, -103.0656, -96.7439, -105.2353, -68.38, 79.433, 34.88, 24.37, -116.9158, -116.9081, -116.85, -105.0044, -100.98, -100.95, -150.25, 50.6667, -89.1022, -82.3167, 15.2, 14.43, 7.6, 108.38, -116.4975, -113.88, -76.8333, 10.1, -111.1861, -98.2736, -117.6525, -116.1167, -111.65, -111.7333, 92.2, 13.17, -70.6719, -70.6722, -108.7722, -108.79, -98.7, -147.67, 96.2, 89.233, -101.9461, -99.9167, -92.1167, 45.4, 28.5692, -88.1594, 26.5164, 26.3714, -177.8, -177.917, -144.333, -109.2569, -72.9667, -77.7, -78.3, -67.75, -103.2828, -100.0, -103.0536, -103.2108, -74.6667, 25.5, -159.806, 31.05, 49.6, 70.3, 11.4194, 55.933, -95.1361, 13.7, -92.8925, -98.55, 73.333, -104.4333, -104.4325, -104.4428, -104.5022, -116.1667, -55.3, -90.2333, -102.1, 101.85, -15.95, 21.4667, 21.3681, 21.3058, 12.98, 12.6842, 26.7781, 28.665, 29.3944, 23.633, -120.3164, -98.9214, -79.4, 120.0458, -81.7667, -106.0, -63.7833, 125.3294, -107.2411, -107.1997, -93.7167, -111.2747, 36.0, -112.7, -97.7833, -123.73, -112.6833, -104.575, 151.8877, -104.5833, -110.7333, -110.7456, -92.2667, -103.38, 101.3406, -78.0753, -91.7486, -74.1028, 26.5081, 34.917, 65.67, -81.8203, -115.4603, -121.1172, -71.1264, -75.9319, -75.9667, -75.9667, -105.6667, -72.9333, -105.7167, 30.82, 82.3, -34.917, -34.9233, -34.5, 7.1828, -105.7364, -105.6833, -59.7, -79.2667, -104.2881, 153.0922, 153.1006, -122.6067, -122.2906, -122.4, -122.2986, 144.5203, -98.5253, -98.5333, -80.2167, -103.3675, -117.1894, -121.2167, -121.1392, 119.0131, 144.7489, -108.7281, -104.9428, -86.6, -105.2264, -101.7, -101.7167, -113.1833, -122.2386, -95.0997, -95.0803, -88.1333, -103.9183, -122.2536, -121.9211, -117.3167, -117.8347, -103.7589, -98.5197, -113.8167, -113.8, -113.9, -106.2111, -115.2833, -105.5722, -105.55, -55.0167, -121.7, 148.3667, -120.8, -93.8, -96.2658, -95.0161, -109.2572, -124.3006, -107.7167, -95.2419, -102.5533, -119.0, -111.2667, -114.7931, -105.4164, -115.3375, -105.3333, -115.3444, -93.6381, -97.45, 127.5297, -97.1531, -111.8333, -115.4272, -112.5667, -100.6608, -92.61, -90.0003, -124.1167, -79.8333, -85.5, -76.9153, -102.05, -117.4131, -97.2833, -97.2947, -97.3297, 12.1031, 15.65, 10.6356, -106.95, -104.5667, -104.6, -104.6667, -104.5, -104.6667, -104.5833, 15.83, 7.6967, -79.6333, -79.6947, 6.7433, 10.5078, 4.03, 4.15, -162.665, 13.633, 12.4708, 43.05, 10.4, -42.1, 116.07, -93.915, -79.2333, 13.67, 43.7, 9.4706, 11.4425, 11.367, 134.049, -81.2975, 9.6758, -88.9883, -76.65, -76.7, -76.4333, 102.45, 32.783, 140.7494, 140.6766, -1.7331, 5.6058, -65.8, -112.15, -77.7381, -106.0833, -111.3167, -119.7711, -119.8167, -119.7956, 19.84, -87.1753, -122.2144, 63.183, -121.1611, -97.8333, -118.7314, -86.2167, -98.9, -44.467, -90.5803, -108.7769, -117.6333, -59.05, -94.9667, -94.9833, -64.8833, -64.6333, -101.1, -89.8772, -76.1, 15.97, 15.93, 1.1789, -103.0833, -118.1833, -118.2, -118.1833, -118.1667, -111.7892, -111.8045, -64.8667, -122.9133, -121.6, -99.9106, -67.367, -22.717, -21.9, -21.9, -116.7494, -116.75, 27.267, 7.9956, 7.383, 7.7942, 8.3308, 8.5833, -73.9167, -73.8686, -89.4508, -89.4653, 28.12, 6.7, -6.2867, 145.3101, -66.117, -97.8167, -94.2072, -91.7719, -108.2667, -89.7322, -114.7322, -96.7428, -146.3333, -123.7931, 32.02, -102.3192, -105.0667, -101.7886, -114.1581, -112.0775, -117.1597, -119.2633, -118.5, -77.5114, -81.7936, -90.3889, -84.3, -122.3772, -111.81, -72.1333, 150.7477, -93.97, -82.7958, 143.1167, -77.4167, -61.73, -79.45, -79.4333, -77.3203, -123.1, -123.0833, 143.1425, 150.7794, 150.7761, -84.85, -84.8778, -88.9322, -90.8333, -80.5206, -80.5167, -111.7, -108.0386, 15.56, 83.55, -123.3572, -118.4981, -104.25, -74.0167, -91.8875, -80.9, -75.8833, -81.8833, -81.8833, -81.8833, -100.8, -79.3333, -104.4478, -107.7583, -78.7492, -100.2333, 13.475, 28.72, 24.6, 28.3, -107.7853, -107.7261, -107.7492, -107.7264, 11.4, -74.05, 24.04, -74.3667, -111.9125, -116.315, -114.92, 14.45, 14.58, -134.95, 18.13, 17.92, -119.6917, 12.612, -68.5167, -121.1333, 99.667, -67.2497, -110.5481, -103.3333, 12.1, -97.5881, 134.9555, 11.4844, -78.63, -42.64, -67.8, -64.083, -64.261, -43.167, -43.28, -69.283, -67.749, -52.083, -98.8117, -107.2667, -102.9622, -66.0667, -66.0542, -106.6347, -50.91, -99.983, -121.7, -88.9514, -89.4986, -81.7119, -83.7972, -69.1775, -88.7444, -88.8167, -107.3, 147.3167, 18.23, -98.9658, -92.2019, 22.067, 17.44, 17.4697, -80.6667, -81.7333, -118.3714, -62.9, -85.8333, -55.5433, -110.1, -112.0, -101.375, -72.7158, 21.25, -118.2244, -117.3614, -117.3881, -117.4386, -100.3167, -127.35, -108.3742, -108.4767, 151.1556, -61.2167, -92.6122, -64.35, -124.05, 32.18, -72.9833, -64.4, -64.7833, -72.1667, -69.0333, -73.5, -69.55, -70.4, -78.8667, -58.6333, -64.3167, -71.8333, 19.9, 26.133, 13.049, 46.733, 46.7, 40.5167, 119.53, 39.9, 40.117, -106.05, -108.75, -114.0125, -79.9333, -79.9592, -77.6717, -79.9742, -82.0953, -122.0333, 20.24, -67.1203, -83.7006, -116.9667, -93.3, -55.8167, -81.3667, -81.9667, -87.7017, 19.9, -102.4333, -88.1833, -81.4167, -117.2064, -97.8333, -100.5358, -72.2667, -72.2333, 139.8054, 40.0, 139.756, 40.0, -87.7769, -112.8414, -101.3667, -101.3833, -59.75, -117.7, -111.6314, -97.6619, -100.3833, -101.55, 11.8417, -54.3, -52.367, -99.2, -89.0708, -104.9042, -89.1667, 144.7108, -86.2097, -70.9175, -72.8045, -86.8936, -77.6767, -92.4917, -92.4667, -70.9222, -8.25, -103.7506, -105.4333, -92.8181, -112.25, -89.0833, -86.1758, -89.0931, -105.9833, 150.4775, -123.4694, -79.7833, -79.69, -69.1167, 149.57, -121.2333, -80.6333, -97.0567, -70.6, -97.0464, -97.05, -100.2119, -87.2269, -77.1486, -117.1142, -94.6292, -84.6919, -105.0472, -112.2167, -109.65, -109.7836, -103.6933, -81.7756, 117.0106, -57.8833, -57.8833, -80.3667, -114.9167, -77.7986, -79.8961, -114.9167, -114.9167, -114.9167, -77.6805, -77.8931, -87.15, -80.3075, -118.6672, -110.6833, -118.0625, -119.0167, -119.6564, -76.2333, -81.0575, -83.1, -120.15, -90.5647, -85.6417, -114.0631, -85.2911, -107.2667, -96.1686, -136.2167, -109.2167, -118.85, -106.2453, -106.1333, -109.0528, -109.2394, -114.4375, -75.7222, -56.1167, -104.53, -109.0333, -108.9833, -123.3211, 80.2, 22.37, 63.417, 117.1456, 117.1583, 8.567, 6.2064, -94.1, -82.9839, -83.8158, -83.8333, -112.2906, 15.3667, 9.5167, -91.2778, 2.533, 103.683, -98.0, -115.6667, 6.8238, -99.8069, -99.5861, -91.7758, 148.6261, -90.8853, -111.7, 26.9, 112.8, 148.7778, 18.46, 12.5831, 148.7897, 12.5, 18.46, 122.27, -85.1514, -86.5333, -88.085, -102.9167, -117.6569, -75.4117, -85.1611, -117.8644, -78.7728, 33.45, -76.8333, -4.6331, -115.25, -47.88, 13.48, 108.53, 14.9, 21.57, -78.95, 27.88, 29.37, 77.883, -111.1508, -111.1333, -109.9586, -65.6408, 134.5291, 11.65, 12.82, -99.7333, 11.3833, 11.3517, -117.3625, -112.4333, -60.785, -114.05, -100.5264, -99.3358, -84.6, -95.7675, -95.7, 152.9167, 145.5381, -91.3756, -100.85, -103.5272, -113.5906, -123.3658, -123.3547, -107.4, -91.0167, -121.8, 138.8342, 34.38, -112.05, -98.3667, -93.0975, 12.1292, -93.2789, -108.0167, -107.8833, -107.9167, -113.4133, -80.4667, -65.35, 138.6883, 138.6763, -99.6997, -121.7355, -131.6667, -119.1842, -89.245, -88.4122, 24.9831, 18.17, 32.833, -73.6333, 10.87, -105.8667, 12.2, -100.8167, -117.8, -117.8, -6.333, -15.82, -98.6833, -128.8, -121.0722, -105.6667, -2.5844, -132.4333, 147.4953, 14.55, 16.43, -106.3333, 12.0667, 12.0819, 43.6, 39.417, 39.82, 12.104, -104.4333, -104.5419, -104.5083, -104.5333, -6.3317, -100.4611, 145.2428, -6.35, 9.3406, 123.067, 11.1, -0.3581, 10.1742, -68.117, -96.2869, 176.32, 8.9694, 4.4467, 4.3125, 115.5022, 115.5022, 8.6358, 177.05, -73.1, -106.0833, -86.5044, -108.5397, -108.7403, -120.8894, -55.6667, -153.94, -121.4639, -121.7167, -91.4278, 25.95, -79.0333, -78.8333, 25.25, 26.015, 25.7119, 11.05, 11.78, -80.6167, -79.6697, -79.0333, -105.0703, -78.8858, -74.5667, 136.8772, -104.1981, 28.95, -76.1908, -80.5936, -66.7167, -108.7, -108.8372, -97.4769, 175.3, 81.2167, -120.1333, 145.8547, -111.2833, -115.493, -115.4855, -123.0472, -109.3486, -107.85, 135.9, 44.567, -110.6019, -110.5961, -110.5661, -84.5761, -81.45, -119.05, -84.7, -99.9925, 23.25, 10.2233, 120.65, -105.6611, 97.83, 25.383, -70.55, -70.5372, -70.6564, -70.55, 141.633, 5.65, 5.3667, 151.2763, 19.767, -76.7, -74.3333, 102.72, 102.967, 28.6667, 88.167, 26.3692, 26.4, 26.3667, -113.7575, 7.8842, -80.3069, -67.57, -151.3, 13.0506, 71.52, -91.75, -85.4528, -102.4794, -90.4792, -104.0939, -120.8639, -95.1428, -80.1333, -88.6, -98.85, -75.3667, -101.2833, -93.1, -86.8883, -87.7103, -93.0947, -87.7319, -98.7053, -101.3333, -98.8092, -101.1711, -101.1664, -161.3167, 73.88, 63.567, 96.4, 57.433, 28.2003, 26.6, -105.7106, -92.6889, 40.28, 8.9567, -114.9911, -81.9394, -79.0667, 146.5094, -123.3158, -62.5, -120.9833, -72.0, -72.9781, -119.45, -99.65, -104.9742, 66.967, 14.26, -81.4667, 76.183, 38.7, -118.7833, -104.9333, -109.2561, -109.3442, -104.9483, -123.5356, -118.3047, 10.7881, 34.68, -115.6111, 13.4, 124.883, 22.0331, 34.317, 11.3906, -123.4167, -123.4167, 7.1081, 47.117, -69.3833, -95.9, -99.4653, -0.35, -101.28, -93.4039, -93.8386, -110.8186, -60.0167, -60.0, -73.2, 121.833, 11.6, 57.7167, -66.03, -110.9333, -111.7661, -96.6667, 9.0719, -125.2667, -125.25, -64.3833, -64.3833, -79.27, -70.45, -107.3528, -121.4169, -121.495, -121.3, -121.4, -121.5897, -122.1825, -71.1667, -94.9761, -117.8208, -120.8653, -123.3667, -113.9667, -116.7292, 24.95, -80.1167, 9.35, -76.3947, 12.94, -109.7167, -109.6808, -109.6353, -9.22, 130.3, 78.75, -120.2406, -119.0711, -111.0, -107.25, -119.2925, 46.2667, -83.9561, -83.9667, -84.0797, -92.4617, -62.5833, -55.8, -8.95, -106.1444, -110.8133, 73.1, -109.23, 0.15, 133.333, 106.65, 106.7, 103.9, 64.217, 110.117, -111.6789, -86.8133, -91.1242, -84.1667, 5.091, -101.8067, -82.0333, -80.5833, -51.8, -72.5333, -122.4714, -122.8722, 5.4017, -114.0983, -66.0833, -109.4028, -84.5542, -72.0194, -66.1, -65.8833, -82.26, -16.463, -90.3167, -116.5789, -81.55, -122.1, -86.8094, -70.8833, -98.4608, 3.2, -115.0908, 145.7167, 145.7, 57.633, 22.23, 133.233, 139.85, 104.133, 46.633, 16.66, 14.257, 54.091, -78.7203, -5.4981, -5.6614, -84.8667, 16.69, -146.9767, -146.14, 13.3158, 22.5, -6.752, 66.5294, -91.8036, -91.5364, -86.0856, -88.9461, -73.3167, -91.7225, -97.3081, -82.9464, -70.8667, -123.0011, 13.26, 13.23, -106.0158, -106.05, 28.1, -97.6, -111.8547, -42.28, -80.97, -121.6664, -121.6081, -111.4161, -79.5458, -95.183, -97.65, -97.65, -83.7819, -83.82, -100.12, -80.4822, -75.5892, -92.8106, -73.45, -74.8667, -71.7364, -73.0992, -80.6228, -75.5642, -75.5103, 28.6775, 28.6781, 29.1814, 29.3667, 29.2408, 29.615, -94.8047, 25.18, 25.133, -53.2833, -113.8667, -119.25, -119.2833, -119.35, -119.2333, -119.2833, 121.6239, -64.0333, -113.9333, -113.9008, -119.8333, -141.62, 46.683, -113.5333, 5.0, 23.1158, 23.6525, 23.71, -65.42, -112.1667, -112.1167, -65.483, -102.2667, 15.3145, -108.5364, -81.6833, -101.017, -100.3444, -100.98, -57.967, -54.35, -123.5, -123.4833, -123.55, -123.5667, -81.7667, -81.7711, -122.0667, -120.6661, -105.0806, -104.9, -105.0833, -111.8833, -111.8172, -111.9694, -111.9167, -111.8964, -91.5256, -110.9167, -120.2189, -81.7747, -38.517, 13.0, 10.3067, 9.5531, 11.1442, 56.2, 57.95, -106.48, -69.33, 36.0, 50.2167, -93.27, 66.95, 58.217, 50.175, -89.3028, 129.22, 37.717, 9.8831, 152.8861, 128.3, 26.9167, 27.0, 36.3, 34.0, 42.3667, 150.6578, -94.1011, -4.833, -2.8, -2.35, -107.15, 126.0, 47.009, -79.35, -95.6603, -71.6833, -84.68, -108.2167, -84.6, 127.88, -69.6, -79.45, 118.067, 6.1833, 6.1042, 23.27, 16.29, -118.7242, 10.0042, -109.3222, -102.3917, -82.8045, -109.1667, -81.9833, 153.07, 14.19, 18.92, 88.25, -123.3, -88.6617, -80.87, -106.45, -106.3656, -106.3833, 12.4714, 21.7167, 94.35, -116.5628, 16.6551, -131.8167, -131.8167, -131.8167, -77.2758, -92.9936, -107.1667, -82.7167, -82.8192, 14.7831, -70.5, -81.5658, 153.2089, -63.5667, -74.0056, -74.0167, -100.1, -93.3211, -111.05, -77.4875, -82.7269, -121.9, -108.7272, -103.5183, -108.1833, -106.2833, -85.9681, -119.8, -160.5167, -160.4661, -81.2778, -70.7803, -79.1167, -79.0464, -101.5492, 127.467, 112.633, 120.9167, 69.233, 110.17, 111.62, -5.32, -68.32, 14.13, 7.2028, 38.847, -73.8, -59.68, 108.67, -55.6, -3.8189, -3.7994, -3.8314, -111.7794, -8.7164, -54.717, 78.9, -65.58, -65.435, -89.533, -117.8667, -117.8664, -98.1369, -117.0667, -119.6844, -119.8797, -119.0333, -119.8425, -121.9333, -79.98, -63.2, -63.57, -121.9911, -31.12, -119.7222, 165.8, -68.4, -61.1, -61.117, -98.93, -105.9, -105.7833, -105.9753, -106.0889, -117.9458, -101.78, -105.9333, -105.9322, -110.1, -120.4333, -25.171, 18.35, -42.01, -120.4486, -107.1097, -118.4833, -118.4514, -118.4997, -119.1331, -112.3167, -120.5978, -110.8464, -104.6805, -122.6978, -112.283, -97.8714, -64.266, -122.7119, -88.7833, -120.0778, -117.2306, -112.05, -122.8103, -106.6981, -97.85, -70.7, -105.4611, -70.7, -93.7572, -8.1, -64.3, -8.4106, -75.49, -75.82, -88.4667, -105.21, -70.737, -109.71, -121.9333, -121.9433, -121.8667, -42.16, -69.883, -46.2, 9.45, -116.37, -81.5206, 109.583, 68.0, -114.98, -81.7, -81.717, -100.4922, -100.4833, -100.4, -100.4942, -86.5333, -98.4539, -98.45, -117.6667, -72.44, -98.4839, -98.5833, -121.25, -98.4667, -65.1, -98.7028, -98.4719, -94.1072, -96.66, -109.88, -97.6333, -117.2539, -95.5678, -105.28, -66.87, -66.75, -113.93, -110.45, -110.4569, -71.158, -110.5261, -118.5881, -89.617, -105.6, -72.2, -70.1, -116.9794, -100.87, -117.1831, -117.1333, -117.1394, -117.2258, -117.1667, -56.433, -109.85, -67.42, -98.15, -118.4667, -67.4167, -107.6, 122.52, -70.25, -122.4269, -122.3647, -122.5053, -117.9078, -118.1, -67.1, -122.3617, -100.0333, -112.88, -65.633, -112.33, -60.95, -96.53, -116.9667, -114.6833, -110.03, -116.9583, -62.467, -98.48, -64.667, -103.3283, -56.72, -60.75, -84.0833, -121.9033, -121.9239, -84.1, -109.66, -112.38, -70.93, -100.4, -68.418, -75.167, -99.85, -68.7, -57.15, -56.3, -66.1, -95.81, -71.23, -67.333, -66.0108, -66.1167, -83.5, -67.803, 9.725, -96.38, -66.356, -77.672, -105.4244, -105.4242, -121.0578, -120.7939, -120.6414, -120.6619, -101.0222, -100.4, -110.6339, -97.9494, 12.4464, -68.417, -107.65, -122.3, -58.383, 10.6258, -58.7, -116.9736, -102.4, -120.3833, -119.45, -54.42, -116.9975, -57.083, -6.661, -118.2667, -87.97, -109.73, -110.25, -105.15, -68.403, -122.5372, -64.7, -75.3, -113.93, -98.7167, -98.7589, -89.22, -89.2, -89.117, -2.0392, -67.0119, -1.7869, -109.2256, -109.2667, -109.0833, -44.43, -47.883, -51.9833, -67.083, -38.21, -45.85, -56.71, -45.017, -44.3, -55.01, -39.85, -46.617, -46.65, -46.467, -47.55, -47.11, -55.41, -25.1, -81.2811, -124.1167, 141.333, 45.533, 61.2167, 18.4331, 18.33, -85.2, -74.1333, -74.2067, 45.233, 60.88, 53.73, -82.5333, -82.4667, -82.5586, 29.667, -106.8053, -92.3667, -73.8333, -73.8167, 46.0331, -73.6511, -117.0167, -121.9, -89.7903, 73.483, 72.667, 18.38, 18.4, 5.6505, 42.6, -97.6956, 125.767, 29.1, 36.5, 9.5028, 138.717, 13.13, -82.3667, -82.3167, -82.3, -82.3, -82.4333, -82.4167, 26.7, 11.1144, -107.1, -128.9, 79.6, 95.578, 73.267, -111.5436, -111.45, 129.717, -106.65, -106.6667, -106.7167, -106.6333, -106.7167, -106.6, -106.6333, -106.6833, 114.08, -6.083, -6.08, 8.6, -121.05, 12.5, 31.77, 12.7075, 12.69, 10.25, 18.39, 89.08, 80.833, -81.65, 100.983, 100.0831, -123.1333, -123.1333, -123.05, -120.6669, 22.883, -60.81, -89.055, 6.3631, -118.525, -118.4547, -87.9403, -89.735, -66.1167, -69.25, -84.4089, -84.3333, -84.5167, -84.3572, -84.3667, 131.3, 20.38, -83.7342, -104.3378, -114.6333, -79.14, 145.2083, -88.3214, -80.85, -81.1333, -81.21, -81.0833, -81.2667, 102.37, 104.7667, -90.2, 21.77, 72.9, 2.43, 2.467, 11.8667, -91.2494, 11.92, 28.9344, 28.8433, -170.4808, -81.6836, -81.5906, 28.18, -123.1322, -123.1331, -71.5333, 15.39, -80.0667, -90.4372, 101.733, 103.9, -99.6275, 13.48, 13.6, 148.2644, -0.55, -122.8611, -0.4, -73.8, -102.55, 8.9681, 8.6097, 7.7125, 7.0294, -66.8, -66.8167, -66.8, 9.7708, -73.9167, 142.0869, 11.0406, 9.1542, 10.655, 4.7903, 11.817, 9.5492, 7.7592, 10.6444, 10.2556, 10.7667, 6.8403, 11.7856, 12.737, 10.767, -117.15, 6.4169, 15.47, -158.0819, -157.9933, -107.05, 13.523, -123.9056, 7.8442, 9.1239, -87.2667, -90.8167, -73.7667, -73.7, 10.4325, -110.0833, -110.0833, -118.8167, 9.8033, 9.6881, 12.0883, 10.7192, 11.1944, 10.2169, -116.6333, 169.983, 11.3883, 9.1431, 13.1, 121.017, -112.1067, -105.4167, -105.4758, -111.15, -111.1189, -111.2056, -123.2, 150.8264, 150.8708, 150.9272, 145.2561, -122.6967, -108.0167, -111.3667, -124.1036, -77.3842, -109.4, -91.0833, -84.55, -71.0833, -103.6397, -103.5931, -86.0536, -85.9997, -85.785, -111.8833, 147.5167, -111.9106, 147.4883, -86.2258, -103.7, -122.5247, 146.2722, -108.8333, -100.9175, -75.6667, 0.7667, -75.22, -90.9, -96.1456, -66.8333, -53.0667, -114.9217, -84.0833, -91.7164, -72.9167, -65.7, -123.9236, -122.3008, -122.3333, -122.2667, -122.2553, -122.3139, -122.2833, -122.3, -155.5114, -69.2278, 14.45, 38.4, -81.3689, -115.9667, -123.7167, 14.779, -120.8847, 29.18, -93.1833, -93.2228, -96.1861, -111.7, -111.7, -102.5253, -102.5167, -111.9667, -104.1, -111.7644, -122.2355, 58.284, 11.733, -111.4333, -113.4472, -113.5203, 10.19, 26.8, 130.3, 34.283, 9.7667, -6.15, -4.1269, -4.1153, -97.95, -102.8675, -99.0403, 22.4908, -123.2833, 61.5, 152.4167, 131.017, 114.28, -120.4994, -159.1125, 11.117, -100.0356, -75.2167, 27.4, -122.1914, -151.7017, 133.967, 25.217, -112.8797, -93.9367, -112.9167, -76.8617, -76.8642, -96.8667, -75.3222, -111.8975, -111.885, -87.0144, -78.3, -87.2422, -86.9786, -88.5994, -106.7833, 10.2269, -104.7333, 110.417, 7.8667, 80.3, 32.583, 78.35, -106.9153, -102.6597, -96.6531, 80.25, 159.98, 3.667, 53.495, 81.917, 28.1, -109.7, -89.9592, -68.7, 130.4, 140.9, -118.975, -81.4347, -79.925, -85.9428, -85.95, -85.95, -40.183, 17.9033, 33.617, -77.2667, 29.683, 105.0, -106.8333, -7.95, 140.5, 27.35, 126.967, 126.8, 116.894, -66.25, -66.2667, -66.25, -123.1, -123.0639, 42.75, 106.133, -104.4, 72.433, 30.75, 101.93, 33.45, 45.5, 54.517, -37.08, 51.3, 60.533, -38.96, 100.33, 100.73, 136.233, 140.9833, 10.7683, -73.1047, 3.6917, -44.25, 5.4, 5.324, -7.62, -80.7667, 45.0, -122.1333, 151.8875, -115.4667, 150.9318, -149.855, -116.95, 30.62, -110.9167, -96.0167, 78.35, 93.03, 156.13, 67.65, -83.5833, -83.5983, -112.0, -5.8792, -6.0, 14.9, -132.3, -85.9172, -97.0908, -149.3483, -149.6275, -149.4167, -131.9833, -123.3642, 72.517, 55.517, 31.8, -92.7667, -85.8989, -99.2897, -118.95, 145.1491, 10.75, 10.68, -96.53, 68.133, -88.8514, 28.533, 77.267, -102.2, -118.9556, 63.63, 42.67, -119.1458, 21.88, 68.45, 47.158, 71.8, 50.842, 66.83, 68.583, 55.0333, 91.813, 74.62, -87.2436, 21.85, 47.167, -122.2333, 35.583, 143.2297, -78.3894, -106.5667, -100.2503, 112.77, 121.467, 121.433, -115.75, 127.967, 116.3367, -8.925, 146.75, 116.683, -79.6333, 115.367, 113.6, 117.43, 111.47, 27.467, 55.517, -108.1, 113.5772, -97.9, -101.7514, -74.6, -74.6667, -64.6333, -77.7211, 47.121, -122.4161, -108.4, -108.4167, -119.2561, -88.6183, -2.668, -72.75, -72.7333, -96.9203, -96.9481, -78.6372, -123.6333, -76.4667, -103.35, -103.2922, -63.5, -152.9167, -63.5167, -117.0392, -87.7167, -87.8506, -77.25, -122.25, -105.2353, -111.6833, -147.6833, 146.3278, -101.8272, -1.4899, -64.5, 146.3219, 45.25, -92.0467, -65.25, -72.7333, -80.1833, -111.8553, -85.2, -88.7739, -85.8033, -85.7914, -86.4775, -81.5325, -111.8667, -86.7247, -84.7667, -119.6333, -95.8528, 155.88, -107.7633, -107.4333, -124.0728, -123.1, -123.1408, 174.1, -95.38, -82.5, -111.2189, 33.4333, 122.45, 120.82, 42.9, 123.517, 114.1, 144.1303, -73.3, 27.05, -93.4333, 145.3947, -71.9, -71.6833, -71.6833, -75.5067, -93.7503, -75.5, -94.7744, -92.3914, -106.9689, -106.8383, -106.9694, -106.95, -92.35, -123.9167, -96.6419, -116.3333, 120.25, -99.1167, -97.3161, 114.417, 116.033, -99.65, -75.3, -88.3217, 91.89, 133.017, 77.167, 125.133, 130.933, -137.2167, 31.43, -115.9667, 140.317, 135.75, -77.5214, -108.6917, -71.2167, 121.95, -20.0, -123.7917, -33.0, -51.0, -35.5, -41.0, -48.0, -19.0, -20.0, -16.0, -140.0, -145.0, 164.0, 79.98, 80.083, 67.017, 140.217, 52.533, -106.105, -72.8689, 91.733, -166.0667, 138.4, 19.5331, -86.7944, -85.6344, -100.6, -89.9167, -104.65, 75.9, 139.783, -110.5769, -112.5333, -0.283, -77.25, -111.95, -107.2267, -114.4169, -114.4022, -108.1097, -114.2775, -110.95, -110.0, -110.0075, -116.2128, -93.8411, -93.6667, -93.8186, -93.745, -93.7803, -93.8417, -73.8333, 103.9333, -88.6964, -90.2333, 26.9333, 67.8, 48.05, 69.7, 74.533, -117.625, 23.3167, -110.25, -110.15, 67.88, 13.35, 24.15, -95.7483, 98.9, 98.883, 94.63, 111.985, 111.8, -119.0, -118.9833, -64.73, -87.8767, 26.0, -2.62, -0.617, -10.18, 6.089, -6.0667, -88.7167, -104.1467, -95.6431, -84.1506, -84.1667, -103.0214, -102.9847, 82.3, 17.29, 22.25, 7.9975, 103.85, 11.3, -120.3706, -110.9714, -105.7833, -105.3542, -120.6228, -118.05, -110.2847, 9.1953, 9.7417, -113.6333, -52.6833, -108.1333, -112.0611, -123.7803, -45.595, 14.9167, -92.1975, -9.17, -112.0, 23.5383, 25.0925, 27.8025, 41.95, -122.7167, 15.09, -5.683, -89.6, -89.6231, 92.83, 29.6, -79.4622, 33.93, 14.38, 16.71, -83.0767, -94.5333, 16.95, -117.5658, -101.3006, -107.6633, -122.7739, -121.5667, -122.7333, -111.5, -123.3783, -108.2667, -116.8317, -108.1667, -121.1833, -119.35, -108.7167, -122.6486, -92.7458, -121.0833, -144.1914, -111.5842, -121.062, -118.6833, -57.519, 127.65, 100.983, 29.0, -80.2667, -80.3333, 34.1331, 33.9833, -120.5167, -120.55, 13.12, 7.5969, -81.9667, -92.71, -117.7333, 13.4, 16.13, -74.231, -66.991, -110.2158, 14.36, -122.3733, 151.867, 108.25, 108.5, -115.9667, -79.4131, 33.95, 103.9, 103.994, 13.36, 109.67, 151.1717, 18.74, 126.533, -91.2594, 35.167, 128.18, -97.4972, -9.3, 124.383, 18.0333, -114.1167, 7.3331, -96.3778, -96.3792, -96.1525, -96.7289, -96.6222, -91.8667, -91.9, -95.0653, -56.117, 124.333, -148.783, -107.16, 89.933, 89.75, 6.8485, 16.5797, 16.38, 22.98, -53.6667, -97.0392, -96.9914, -121.5486, -124.4333, 100.7, -135.3267, -135.3647, -135.3333, -154.1333, -123.8331, 92.873, 37.0167, 37.017, 39.3, 31.5, 25.3167, 25.5, -120.1167, 20.0167, -42.25, 10.633, -121.25, -121.1667, 19.0203, -135.3136, -135.3239, 14.17, -113.7667, 12.1833, -122.2175, 13.45, 16.0, 16.75, 11.0409, 0.3489, 21.07, 15.12, 20.3024, 9.5667, 6.95, -150.4606, 14.32, 15.68, -116.1878, 17.31, 10.9964, 6.6833, 11.8731, -121.6, 21.5, 21.65, 21.4, 12.1167, 13.84, 123.9667, 25.133, 14.6506, 5.2667, 31.6, -114.4681, 24.417, -151.2169, -82.9925, -122.185, 24.55, 10.5125, -143.9808, -3.6508, -123.3525, -116.2833, 5.0681, -114.7667, -114.7833, -114.7833, -114.7833, -114.7833, -114.7833, 78.65, 31.017, 18.0, -95.8833, -94.4167, -112.9667, 28.2178, 19.15, -89.7697, -89.8222, -120.2944, -74.4167, -88.2978, -80.06, 7.4177, 26.32, -77.8167, 15.4, 14.6, -111.3, -107.2, 27.7, 27.55, 15.1, 20.95, 133.83, -96.8814, -113.8333, -127.1833, -127.1833, -127.1, -78.3458, -80.6333, -77.6667, -88.4311, -111.1, -77.5828, -76.0, 145.0847, 145.1125, -97.1689, -94.6428, -85.7892, -119.3333, -119.3511, -84.6667, -114.2272, -98.7783, -113.3472, -126.4333, 11.23, -117.1739, -119.7475, -103.1667, -82.1667, -112.5, 8.0631, 32.0667, 13.36, -119.6633, -86.5578, -86.52, -140.4, -111.5042, -110.6658, -116.7369, -110.6667, -116.0, 14.9, -133.7386, -110.5333, 15.7333, -122.0833, -121.8361, -121.4139, -116.1989, -107.3833, -111.65, -110.0839, -98.65, -110.3333, -79.995, -146.6931, -111.65, 138.2133, 138.2182, -112.7167, -77.6842, -75.3789, -77.6667, -119.55, -100.9111, -92.633, 155.93, -40.35, -79.85, -106.2833, -106.8831, -106.8858, 105.9667, 26.6328, 26.5831, 27.7503, 27.1894, -110.15, -122.9772, -105.9864, -120.3833, -111.5833, -108.3967, -85.2414, 19.41, 17.1, 17.63, -77.0128, 106.656, 5.2733, 23.406, 133.9797, 6.2833, 7.1414, 7.9978, 126.57, 93.783, 56.633, 14.4281, 44.1, 128.57, 1.13, 5.23, 5.3, 5.6367, -127.9333, 167.55, -114.8167, -121.5856, -114.8167, -111.0764, -151.0333, -151.1336, 138.1, 41.1, 7.0942, 95.3, 17.28, -110.7117, 108.267, -76.4525, 84.32, -91.8317, 115.75, 9.833, 19.0831, -103.65, -78.2703, -82.0167, -72.95, -98.6167, -71.1333, -84.6167, 152.555, 25.583, -84.615, -79.0833, 18.82, -96.5167, -74.6531, -96.5403, -74.6694, -123.4958, -103.0167, -111.3667, 10.9069, -50.8, 35.583, 68.617, 100.617, 103.567, 126.88, 112.8, 12.95, 12.95, 11.1842, -105.9136, -107.7667, -122.4622, -100.6503, -120.3872, -119.6, 128.3, 103.9, 82.706, 16.6, -56.8833, -73.1167, -2.4831, 20.9553, 10.8167, 10.1535, -47.43, 53.1, 131.117, 33.617, -119.4, 17.55, 30.7167, 22.05, 30.1333, 126.47, 94.52, 158.3, 111.55, 138.333, 62.1, 39.77, 28.3419, -98.2, -89.01, 14.133, 24.1167, 24.15, 7.967, 5.07, -145.5167, -117.3833, -48.51, -62.2167, -100.2667, -100.25, -81.3667, -1.4084, -103.2833, 119.3281, 119.3564, -79.4333, -94.3411, -72.45, 146.97, -78.0078, 153.4054, -81.9808, -66.9, -82.0167, -80.6403, -86.3164, -85.325, -78.8808, -108.7919, -57.6167, -106.5, -77.55, -105.5333, -72.35, -76.9167, -73.45, -122.0333, -123.4761, -115.745, -86.2833, -73.3031, 145.9972, -155.7533, -118.5706, -119.9947, -72.9736, -80.35, -87.8494, -75.4833, -64.6833, -77.4775, -116.9, 32.75, -97.1033, -108.8333, -108.8, -123.2167, -112.07, -82.5936, -79.3833, -107.5286, -117.5167, -65.9, -78.6, -119.2, -69.9833, 153.087, -70.9333, 21.93, 140.3, -119.6331, 6.7, -111.6044, 15.14, -92.8267, -119.7333, -155.55, -90.8164, -117.3333, -81.9139, -81.95, -89.7167, -117.375, -85.475, -114.8833, -114.8833, 34.017, -95.0597, -103.8722, -101.1847, -74.3617, -104.3, 11.8225, -81.3583, -86.7703, -112.1864, -73.55, -104.1667, -95.1467, -97.3414, -76.5, -121.9333, -95.2017, -121.5, -121.3167, -93.5167, -78.2272, -106.4475, -93.7158, -73.75, -116.4, -85.6272, 14.47, -107.5333, -107.55, -95.1394, -122.1667, -122.15, -119.2333, -118.8333, 16.4331, 16.3, -117.4167, -117.5264, -117.3214, -117.5281, -117.6267, -121.6833, -111.6833, -91.8761, -117.9833, -95.6, -121.4892, -119.8167, -119.7761, -121.6714, -114.3667, 17.9, -80.425, -105.75, -56.0833, -114.3, -56.1667, -104.585, -109.275, -93.3, -93.4003, -83.8167, -72.5833, -64.85, -68.1667, -94.9864, -112.6833, -89.625, -89.6, -102.7428, -89.6839, -102.6139, -86.8414, -72.5178, -83.8167, -80.6667, 148.0856, -79.1667, -97.6667, -75.2781, -99.7467, -88.15, -118.6567, 150.5848, -84.8547, 145.722, -110.6667, -114.2028, -88.1667, -127.4167, -122.4364, -114.18, -79.5167, -109.0833, -114.8111, -82.0019, -117.5333, -96.1667, -107.7833, -100.8761, -87.25, -110.6167, -123.1333, -123.1667, -123.15, -123.1667, -123.2833, -68.7, -119.7211, -116.25, -114.4944, -114.3333, -123.0167, -117.5683, -120.2333, -120.25, -68.3333, -117.25, -117.2333, 153.72, 152.32, 117.37, 120.55, 78.2, 19.6331, 117.7, 91.73, 74.833, 18.45, -78.0833, -122.75, -80.7131, -72.2606, -81.4294, -98.5, -115.3928, -114.8667, 14.95, -88.6275, -99.8036, -73.5475, -120.075, -121.3372, -121.3333, -93.4833, -112.9833, 29.22, -83.9533, -110.2167, -110.2239, 14.88, -63.0833, -57.85, -91.8633, -114.9342, -90.9489, -105.9439, -102.5947, -114.9258, 145.2944, -114.9272, -90.9269, -88.23, -88.3, -72.1, 0.23, 151.9339, -112.7333, -97.2222, -83.8969, -97.1747, -112.7333, -121.3667, -100.5986, -100.4667, 31.3, -97.6167, -44.51, 34.93, -82.1, -82.1164, 38.917, -119.0167, 15.8, -121.7175, 37.883, -91.8333, -107.4656, -123.0667, -78.4442, -80.55, -80.8808, -77.8672, -93.1667, -88.4833, -77.45, -107.2667, -106.7597, -106.75, -88.7822, -16.6497, -79.0844, 11.1, 5.73, -113.8833, -122.3667, 5.3831, 42.02, 18.71, 142.8, 142.7908, 142.7412, -122.8142, -122.8667, -16.2553, -96.81, -119.8836, -119.8667, -106.8233, -84.4792, -99.9483, -91.3706, -110.5, -84.8, -98.8, -105.3, 26.354, -91.8872, 13.4, -120.7264, 9.4592, -96.7667, 13.0431, -83.3061, 11.4508, 14.51, -62.65, -87.1631, 136.9392, 17.1664, 14.26, -99.4431, -87.7025, -78.2333, -98.2319, -58.55, -58.5667, 88.9, -98.2078, -103.2083, -100.9828, -81.6106, -77.4869, 56.0, -112.7, -112.6, -112.7167, -80.6283, -78.0183, -114.0911, -76.3381, -121.0833, -121.0914, -89.5856, -123.1833, -114.0911, -94.3425, -129.9833, -129.9833, -129.9833, -136.6833, -74.1, -111.5358, -107.8, -74.2833, -66.4667, -70.9167, -73.9333, -73.9333, -72.2333, -75.3333, -73.6, -71.6167, -70.9333, -71.9167, -73.6833, -73.6833, -71.7833, -73.7833, -71.2833, -71.3167, -71.2833, -71.9333, -73.85, -96.6, -70.4667, -70.0167, -73.1333, -73.85, -69.9333, -68.6333, -70.5333, -73.8833, -95.0, -114.2167, 10.8833, 15.205, -97.5283, -82.2181, -62.0, -92.7975, -92.8522, -97.095, -97.0914, -97.1083, -105.9167, -97.0953, -114.5594, -97.0894, -75.0367, -61.9833, -94.6486, -113.3939, 22.183, 138.7167, -77.6333, -121.5281, 138.7167, 16.27, 9.0164, -73.3333, -88.9044, -120.3333, 18.05, 18.0597, 17.9514, -91.8333, -121.2667, -89.9903, -93.7722, -121.3178, -121.2258, -95.23, -54.42, 10.2833, 15.0292, 26.7, 7.35, -78.1, -90.9108, -97.3333, -80.4744, -153.8958, -79.75, -156.4333, -122.575, -2.5, -73.9, -77.4042, -122.5342, -97.2333, -97.1667, 145.2167, -105.8333, -105.8333, 17.96, 13.56, 18.29, 13.73, 18.95, 16.18, 13.12, 14.2, 19.48, 12.1, 12.12, 12.1253, -107.42, -95.1933, -6.32, -6.3, 23.1, -72.2286, 13.07, -106.9061, 9.8656, -79.25, -89.2133, -117.145, -78.95, 30.7, 16.886, 145.2908, 145.3267, 6.8, 17.0597, 16.2197, -104.95, 7.6331, -102.0775, -81.0, -71.5833, -81.0, 138.8901, 138.8934, 145.7308, -100.4, 146.0461, -113.4167, -113.2833, -113.2167, -81.65, -81.65, -102.6003, -94.05, 12.5603, -121.85, -111.2167, -120.8464, -121.1078, -109.3169, 134.2116, -88.1783, -88.8158, -99.4475, 93.0, 102.7, -113.25, -94.2969, -110.9, 11.2, 15.59, 10.8288, -105.1208, 21.65, -75.1906, 6.5585, -80.2397, -80.2667, -80.2514, -113.9167, -126.0667, -107.6333, 105.97, -87.3356, 13.37, 27.57, -91.5381, 9.2167, 9.1825, -91.4172, 9.2008, -53.35, -22.7275, -2.133, -72.0833, -73.0833, -55.85, -99.55, -73.1667, -73.0911, -75.0667, -73.15, -67.0667, -99.0167, -73.3, -71.3333, -67.0833, -59.3333, -74.35, -74.2833, -55.6, -55.5833, -56.1, 143.2631, -69.3833, 6.0, -71.5, -81.3333, -81.2883, -74.05, -70.8, -89.83, 6.9, -73.3833, 59.617, -73.35, -69.7833, -70.2167, -71.7333, -70.6167, -92.95, -79.25, -79.1667, -79.2333, -79.25, -93.8064, -88.3167, -92.0667, -90.5231, -90.4281, -73.35, -90.5169, -68.05, -61.52, -69.1, -74.25, -81.2667, -94.0514, -94.1333, -71.7167, -73.75, -70.5167, -92.6467, -70.1333, 55.51, 4.9, -74.2, -109.9, -69.2833, -65.35, -70.9667, -74.4833, -72.45, -71.5833, -70.8333, -71.5667, -71.6, -91.3769, -73.5833, -70.8333, -68.15, -73.3833, 9.4, -70.6167, -113.5611, -66.8333, -70.7, -58.5, 148.5942, -169.565, 148.5814, -89.4894, 8.6, -72.7667, -68.8167, -5.667, 148.2792, 148.2489, -70.8667, -70.4, -74.0, -72.95, -72.9167, -84.7333, -84.7228, -76.4292, -71.5167, -73.5833, -85.5464, -94.6122, -73.8833, -71.2167, -67.1167, -70.9167, -74.05, -70.8333, -112.4167, -117.5878, -52.7, -52.7333, -52.75, -52.8, -52.7833, -109.3792, -85.9833, -86.4833, -91.2336, -72.6833, -94.9233, -94.85, -74.55, -73.1, -73.6667, -54.033, 149.5242, -55.3833, -109.1667, 149.5356, -74.2, -67.8333, -67.8333, -71.5167, -111.45, -73.75, -105.8, -90.1797, -90.3833, -90.3736, -90.2706, -90.6558, -90.2333, 32.41, -70.6833, -70.8167, -71.5, -63.9, -106.5144, -84.1667, -84.1333, -91.8694, -113.4294, -53.5667, -81.1833, -163.1711, -113.4331, -113.4305, -72.9333, -73.5333, -80.7897, -4.9989, -162.0167, -109.2, -73.9167, -69.3833, -72.4333, -72.6167, -70.65, -69.7833, -93.03, -73.0167, -170.2119, -111.2667, -93.0556, -60.15, -170.2222, -60.15, -93.9656, -62.5833, -82.6261, 30.3, -82.6261, -82.6875, -90.6106, 8.6, -70.4167, -56.176, -71.2167, 55.483, -74.2, 15.617, 15.617, -72.4167, -70.5, -70.75, -115.1097, -73.6, -67.3833, -70.95, -71.05, -53.5833, -69.8667, -67.25, -70.4833, -81.1667, -81.2, -72.5667, -70.7667, 5.2, -70.55, -109.2167, -72.3333, -80.45, -70.3833, -73.8667, -72.5833, 37.3333, -93.6369, -100.9792, -100.5833, 70.217, -107.4, -65.28, -80.9833, -80.8, -80.8, 19.09, -74.1572, -74.1167, -111.15, -111.1833, -90.9667, -76.6014, -105.3614, -122.6564, -106.3714, -122.4383, -93.0167, -111.7367, -95.6567, -111.5167, 107.133, 118.33, 106.2, 35.3164, 93.283, 41.133, 114.5, 131.15, 105.58, 68.87, 69.68, 132.7, 8.4667, 45.45, 46.25, -113.7394, -113.9269, 8.4667, 6.417, 19.8667, 29.7331, -88.6333, -79.8489, -88.6067, -88.5497, -91.15, -118.6667, -96.9503, -96.9667, -95.6269, 28.2, 101.549, 95.42, 102.293, 104.701, 101.445, 103.644, -122.1167, -84.9842, 117.412, -1.3, 63.317, -81.3, -119.6667, -119.65, -119.6333, -119.65, -63.8333, -63.8333, -63.7833, -91.6272, -80.8939, -85.39, -64.1833, -80.2325, -120.7897, -120.8167, -85.7067, -113.3542, -97.0625, -68.3333, -121.75, -122.1333, -120.2456, -106.1667, -149.1333, -122.25, -104.3811, 134.9, -80.3569, -80.4667, 34.667, 34.78, -108.2667, -111.7275, -76.7892, -111.5767, -104.3567, -104.4364, -73.1244, -122.5, -114.6833, -114.45, 17.27, 17.4408, 17.35, 127.25, -68.64, -118.3, 9.1, 8.5589, 13.12, -76.2667, -110.3667, -120.0103, -53.9333, -115.0225, -110.3853, -77.9581, -101.8667, -115.0833, -109.5631, -118.1667, -121.4117, -115.8167, -111.5436, -112.1417, -108.9547, -109.0833, 117.65, -119.6333, -117.45, 127.35, -2.329, -117.19, -111.7406, -114.35, 23.5317, 23.5342, 23.7667, 29.0167, 28.7503, 109.404, -112.7, -111.0972, -92.0167, -114.8903, -97.9842, -111.4333, 100.133, 124.933, 59.483, 45.6, 113.717, 112.787, 112.717, 149.0703, 72.833, 99.15, 73.5, 125.5, 103.5, -88.3786, -97.3094, -109.9833, -121.75, -82.1969, -122.8333, -122.85, -72.3128, -35.71, 73.983, -120.6631, 14.0217, 111.473, -150.6667, -127.1667, -65.5333, -74.66, -74.6447, -74.6231, 148.17, -119.5986, -106.5833, 20.67, 13.93, -120.8008, -80.7, -72.0481, -72.6833, -72.6167, -148.9089, -72.0233, -1.2496, -72.6333, -80.6969, -79.3, 140.217, 132.1, 178.43, 138.117, 22.95, 15.4667, 13.05, 18.63, 6.95, 21.05, 26.6833, 11.56, 16.7167, 14.1903, 14.41, 9.5833, 19.5056, 60.6, 42.85, 90.8, 25.35, 133.1, 5.2681, 128.116, 14.6692, 16.033, 39.82, -82.3822, -70.9, -120.8, -1.9581, 115.7619, 13.0667, -82.3667, -82.385, -77.25, 148.0731, -150.8722, -116.3783, 143.5416, 143.5533, 148.125, -83.9333, 148.1253, -99.0897, -113.8389, -101.2167, -101.2333, -111.2792, -94.3831, -139.75, -113.9667, 139.5981, -111.9642, -93.4194, -73.0333, -122.1667, -54.2167, -107.6833, -107.75, -107.6833, -107.7333, -107.75, -131.1833, 14.2331, -81.65, 114.763, -105.375, -88.6833, 151.2, -60.2, -60.05, 151.1731, -60.05, 151.2633, 151.205, 151.0646, 151.2, 20.1, 50.8667, -86.2114, 12.28, 91.88, -110.15, -110.0333, 88.367, 39.583, -96.1892, -76.15, -101.7417, -76.1039, 68.683, 71.3, 130.683, 48.4, 14.617, 20.1, 16.3167, 20.2333, 16.6333, 9.1831, -101.55, -110.4333, -49.917, 6.7167, 10.533, 92.867, 8.75, 56.917, 153.2667, -112.1167, -90.4333, -111.5833, -117.6833, -82.6925, -96.0861, 1.5, 32.833, -7.37, 46.28, 36.619, 152.4507, 83.0, 139.4, 125.0, -70.3, -113.9192, -122.4122, -122.4333, -122.4833, -122.5761, -104.0567, -55.983, 133.75, -98.5, -69.7, 126.6, 128.65, 128.75, 127.4, -56.15, 7.4167, -119.43, -170.7167, 38.95, 123.853, -46.433, -46.4, 59.6, 27.5, -149.617, -94.9644, -147.55, -120.1428, -120.15, -101.7981, 5.25, -85.2239, -127.7, 121.517, 120.7, 40.544, 175.8, 123.42, 139.4542, 120.2, 51.8667, 28.1819, 113.55, 100.73, 120.7, 28.25, 28.2481, 112.55, 117.1, 85.62, 160.4, 134.783, -106.3, 98.0, 99.15, 138.25, 134.05, -145.033, 137.25, -135.5667, 5.385, -77.0167, -77.0, -1.775, 114.83, 98.2667, -125.8667, 72.217, -84.5197, 59.55, -117.4858, -122.8, -150.095, -86.135, -86.0572, -86.0811, -84.3289, -84.2833, -84.3556, -85.3, -96.5608, -96.5578, 24.5831, -91.1842, -83.3344, -91.0278, -98.9592, 148.63, -93.5833, -0.863, -0.9, 5.4331, -119.9333, -95.6472, -13.683, 41.4667, 146.2564, 64.6167, -80.8242, 23.7667, -82.45, -82.4006, -82.5403, 23.75, 23.75, 23.7733, 23.7569, -97.85, 117.3, -98.767, -71.3, -71.2597, 150.8467, 150.8362, 28.3167, -143.3483, 23.5331, 140.3, -152.1, -152.1069, -117.7606, -43.969, -59.228, 130.983, 39.067, 39.1, -5.6, 11.9739, -5.9, -5.82, -75.9933, 70.55, 118.15, 101.033, 105.117, 146.2, 107.8, 117.333, 169.224, 12.6703, 10.0231, -157.8167, -98.98, 106.67, 46.95, -105.5864, 121.2167, -92.25, -75.1333, -83.9389, -119.3333, -81.15, 74.3831, -64.95, -68.14, 149.8197, 17.3, -76.367, -70.76, 172.917, 172.9, 71.383, 169.9, -77.5386, 134.5694, 134.5786, 152.512, 152.4834, 106.25, 18.61, -117.3589, 102.0, -5.5975, -64.7, -95.3883, 77.82, 8.5, 15.25, 20.98, 149.7958, -99.2883, -82.7539, 146.4486, 26.7331, 26.45, 13.5831, -78.7, 94.55, 69.2694, -37.6331, 108.25, 148.0025, 111.15, 69.117, 89.917, -132.05, 111.6, -155.9667, -63.2333, -63.3667, 75.97, 140.1167, 139.867, -124.4, -124.4, -124.7333, -103.3611, 145.2672, 42.27, -40.41, -45.567, 24.767, -71.0658, -71.0211, 62.0, 73.283, -80.5211, 70.48, -7.65, 98.3, 29.5, 118.122, 117.9, 121.5833, -97.4092, -104.5, -81.1717, -85.3714, -85.3089, -92.65, -97.4156, -102.4761, -121.4, -115.9833, -117.5333, -106.6086, -106.6017, -114.8508, 21.133, -83.5603, -83.55, 83.667, 78.73, 44.95, 44.767, 2.6, 11.02, -90.2167, -63.406, -111.4167, -115.7375, 8.1197, -103.88, -83.9336, -96.1939, 60.517, -109.09, -64.7, 29.8, 109.15, 17.9164, 130.0, 130.199, 12.3444, -87.217, -118.45, -118.4222, 51.317, -97.417, -15.2275, 90.383, -107.63, -118.7497, -96.2328, -96.1778, -89.3, 27.55, -87.47, 45.383, -107.6, -131.3333, -131.1667, -112.025, 122.2281, 20.183, -153.3567, -126.8333, -166.3595, -84.2997, -107.8736, -86.7747, 105.2, 34.7831, -96.4, -62.617, 14.342, 102.43, -118.7556, 117.157, 57.117, 43.233, 147.5111, 147.5248, -107.817, -111.9333, -111.9333, -111.9217, 9.1, -115.7167, -97.3183, -114.3289, -111.5333, -72.633, -16.3292, -16.5606, 1.333, 98.483, -71.939, -65.105, -78.524, -60.05, -72.106, -95.05, 134.1833, 134.1896, -87.7886, 17.8, 13.499, -116.9167, -107.3653, -107.3819, 152.0172, -80.8503, -107.6, -102.65, -96.97, -41.517, -102.77, -111.7, -113.7383, -105.75, -104.843, -104.9, 142.9166, 40.4, -105.6667, -42.817, -42.817, -42.97, 23.62, -42.49, -42.56, 35.1, -103.595, -103.4061, 67.2694, 13.7, 12.983, 15.0, -120.4333, 136.6, 25.667, 118.67, -128.5833, -128.5833, -87.1, -87.1, -128.6167, -79.5469, -53.9667, -53.9833, -96.2672, 151.2253, -87.3, -87.3089, -87.4081, 133.6377, -105.3022, -90.0342, -105.4953, -1.1167, -132.75, -132.7333, -132.7333, 0.983, 33.583, -97.42, -74.0614, 29.583, 12.5581, -59.3167, -111.1667, -111.2769, -124.2333, -5.33, 72.4, 153.0408, 153.0403, 145.7061, -124.5167, -94.0772, -94.1667, -94.0456, -94.0075, 151.1681, -118.4508, 27.73, -97.35, -98.82, 92.783, 149.1192, 23.2667, 24.533, 27.4, 104.65, 8.683, 150.5709, 105.783, 143.815, 143.8197, 95.8, -111.5333, 103.6833, 100.8, -81.85, -92.1942, -102.7972, -115.817, -108.2036, -108.2167, -108.6964, -108.1436, 28.37, 22.95, 23.0, -71.3167, -71.35, -71.2667, 115.0197, -107.0931, -121.2047, -121.1661, 139.9267, -101.25, -101.1, -101.1, -120.9447, -90.7747, -96.1833, -96.1667, -17.07, -112.4264, 76.95, 76.95, -111.5, -111.5167, 7.05, -84.3367, -89.9167, -87.7347, -87.7367, -83.8611, -122.6097, -109.7167, -95.6314, -97.8667, -115.35, -115.285, -115.3594, -86.9322, -97.8667, -119.5333, 98.62, -108.2333, -108.1472, -95.2475, -162.7167, -80.4833, -118.6, -83.2, -114.05, -113.9, -86.6708, -3.95, 148.2859, 148.304, -115.15, -121.6333, -113.3, -113.2, -122.07, 119.1514, -106.0833, -85.6386, -118.8833, -118.8619, -99.1897, -99.2006, -68.8167, -68.8333, -110.5667, 54.025, -120.9833, -89.3167, -89.3333, -89.2833, -89.3333, -89.2333, -82.45, -95.75, 142.21, 142.2203, -75.2667, -125.4167, 8.22, 117.167, 119.42, 105.75, 78.233, -74.5, -74.4167, -111.0878, 142.0567, 142.0098, -72.7, 148.9422, -123.9022, -66.7667, -66.8167, -11.433, -11.43, 117.2, -106.5536, -121.0, -83.1667, -83.4767, -120.4992, -64.0667, 40.083, -88.17, 33.6, -106.3833, 87.7, 128.9197, -98.5294, -80.5, 1.45, -123.8519, -123.7619, -123.8031, -80.7333, 26.95, -109.3606, -63.75, -121.7, -78.7167, 130.4808, -109.1833, -101.0764, -121.2981, 0.276, 131.9667, 21.25, -42.1331, -81.3333, -81.3833, -81.3833, -81.3833, -121.3583, 142.7164, -111.7075, -111.6167, 132.3826, -8.167, -94.2, -75.95, 87.08, 14.9, 8.2167, -121.4667, -167.9167, -102.9181, -77.1419, -79.4433, -86.625, -91.1269, -118.3667, -89.4833, -84.1108, -99.1375, -86.1086, 19.7831, 19.721, 27.7, -6.869, 107.133, 12.3556, 10.63, 78.717, -96.6789, -96.6442, 9.452, -89.4667, 88.32, 8.3167, -80.8158, -80.6928, -79.6931, -71.2092, 137.05, -111.85, 4.05, 107.02, 113.943, 12.4313, 89.317, 72.2, -98.65, -131.95, -1.3, -125.2333, 49.4, -66.1678, -115.0833, -81.6667, -81.6333, 62.6, 68.25, -82.2333, 23.933, -75.2225, -83.3319, -84.0744, -79.37, 145.6004, -130.0667, -110.22, 8.0003, -112.75, -125.7667, 163.005, 84.4, 85.917, -110.05, -108.7333, 30.3494, 24.1669, -143.0372, 37.73, 36.567, -122.4167, -122.4497, -122.4, 75.283, 131.13, 72.867, 134.567, 139.7667, 139.767, -143.3467, -105.1833, -4.0492, -123.95, -92.5806, -93.5653, -83.5333, -83.4833, -83.8014, -122.8167, -4.0233, -83.4764, -83.4667, 73.783, 43.733, 120.8, 82.08, -121.6908, -99.683, -82.6167, -114.7167, -89.75, 141.55, 35.8, -3.0, -110.0686, 126.3, 109.75, -59.2333, -108.8, 135.87, 84.9167, -74.2167, 14.47, -112.1167, 117.7703, -119.4242, 109.78, 100.93, 100.65, 128.733, 125.9, 122.267, 105.83, 93.9, -109.57, -102.2333, 13.0167, -78.25, -112.86, -117.0903, -117.2355, 9.6333, -145.1703, -111.6333, -112.3217, 145.5014, 152.8608, 145.4, 141.8008, 96.1, 151.9317, 151.9134, -119.5453, -119.51, -95.65, -95.6303, -95.6639, -95.6261, -126.1667, 14.4, -67.7214, 33.62, 59.2167, 10.88, 9.5639, 13.0, 7.733, 7.7, 140.3, 32.92, 19.71, -106.0581, 24.2744, -79.4, -79.2667, -79.2667, -79.3667, -79.4, -79.4833, -79.2667, -79.4, -79.4, -79.55, -95.9333, -79.6333, -79.2333, -79.1833, -79.55, -79.45, -79.4667, -79.4333, 31.63, 34.167, 10.2553, 16.28, -105.5333, -118.3411, -3.45, -103.4333, -103.411, -107.1814, -49.73, -0.7106, -111.2936, 13.1, -104.1564, -104.2236, -104.1528, 13.01, -6.767, 11.78, 19.5006, 0.4914, 41.6, 18.5833, 8.7917, 13.0708, 13.0625, 112.92, 98.2, 98.3, -111.4667, 34.0, -134.89, -102.8, 134.233, 42.75, -0.186, -118.6667, -117.85, 6.13, 3.8, 5.9333, 5.9833, 96.47, 0.7, 20.05, 16.57, -76.4431, -106.6833, -92.2783, -110.4203, -67.2167, -100.3908, -88.5833, -111.5378, -83.7781, -108.9, 146.7661, -94.1819, -94.1833, -115.9167, -88.8825, 39.18, -76.5667, 137.2, 134.82, 8.1, 34.0, 39.72, -61.6833, -64.9167, -95.6308, -121.3467, -121.5828, 21.338, -122.6667, -109.3683, -114.3031, -117.7333, -133.5, -9.6889, 14.99, 10.6, 10.6167, 99.617, 147.9826, 147.9489, -120.5167, -89.5167, -81.3039, 12.488, -107.2333, 2.0167, 12.6292, 10.8914, -85.55, -85.5825, -85.6442, -112.8667, -121.9333, -108.3833, -130.9333, -98.7, -54.383, -65.266, -112.1636, -91.4378, 11.1, -93.6086, -74.7464, -111.9128, -81.8333, -74.7667, -77.5333, -101.0611, -75.1567, -74.8158, -77.5667, -53.1, 140.8925, -60.33, -109.2, -51.7, -105.9725, 15.23, -110.95, -116.5886, -129.0833, -83.4083, 12.7689, -101.6961, -101.7758, -111.4747, 6.6467, 6.6592, 13.75, -119.305, -145.7667, -105.2333, -29.3167, -104.4869, -120.0, -104.5567, -104.3378, -60.883, -68.4833, -122.8045, -115.4333, -122.7947, -130.8833, -110.5833, 35.8, 22.4, -92.2575, 13.15, 13.18, 13.22, -12.32, -51.38, -38.133, 77.0, -150.5333, 9.2481, -113.2, -113.2167, 113.1331, 136.567, 56.2, -69.1167, -72.5167, -72.6, -72.6167, 61.5994, 13.3, 12.32, 12.33, 2.383, 19.0, 18.9281, 18.9131, -117.3908, 10.4533, 10.9333, -112.0811, 17.57, 12.5408, -103.9006, 137.8333, -120.3167, 126.1485, -95.1167, -122.3886, -109.6667, -115.6333, -122.575, -115.6278, -107.8833, -121.2333, -85.0728, -85.9722, -73.7, -115.9061, 82.946, -115.8667, -115.8833, -86.0003, -95.0881, -73.6833, -115.9167, -86.0122, 11.64, 33.7997, -105.8167, -120.2, -120.173, -79.03, -66.0164, 151.85, -93.4136, -63.3, -63.2667, -63.3, 126.3867, -99.8617, -107.2317, -107.2681, -113.6594, -113.7942, -82.2517, -100.9583, 12.2719, 10.6692, 22.45, 101.467, 30.53, 21.883, 30.35, 25.8, 117.0, 23.9, 105.317, 136.517, 136.067, 134.1, 134.017, -64.918, -57.821, 132.75, 39.1, 69.4, -111.2436, -149.483, -129.2167, -83.1333, -74.3386, -111.1697, -111.1961, -110.9442, -110.9553, -110.8333, -111.0053, -110.9536, -65.18, -65.2, -103.7, -103.6867, -103.6031, -49.72, -106.3, 149.0937, 121.731, -118.2833, 57.4, -133.0167, -133.0, -133.0333, -122.3667, 37.617, 160.13, -98.367, -106.0411, -77.72, -77.7, 28.8167, -121.4744, -121.5667, -113.3847, -101.7614, -101.7, 121.7, -125.5667, -86.2089, 147.5659, -110.1333, -110.0833, 17.9125, -76.0333, -76.0803, -72.2244, -95.8872, -95.9844, 100.63, -111.0497, -121.4003, -92.32, 148.0141, -121.4833, -61.45, -61.5, 140.083, 148.2667, 39.6, 115.617, -128.25, -90.3683, 10.17, 10.23, 102.53, 147.4614, 118.28, 92.62, 92.433, -88.7167, -88.7658, -88.7714, -65.72, -74.4383, -119.49, 100.2331, 38.731, 16.694, 63.07, -81.5667, 39.233, 63.5, 25.417, -45.4, 131.983, 7.7, 63.7, 7.65, 23.033, 68.22, -100.8972, 53.0, 22.1817, 22.2831, 22.2775, -120.855, -78.5817, -70.2561, -108.4, -72.55, -108.3894, -114.35, -93.0833, -122.3, 24.8831, 87.167, 89.2, -100.8636, -108.95, -64.9, -100.8883, -100.1167, -100.3167, -98.0956, 87.9331, -112.12, -87.6161, -87.6161, -87.5936, -116.2225, -88.2908, -87.7167, 13.328, -95.2803, -85.7, -85.65, -84.06, -117.7539, -117.8333, -151.4136, 93.78, -100.0, -99.9189, -96.5994, 8.8189, 25.0331, 24.9831, -113.0636, -97.4, -105.3, -93.1333, -112.0264, -112.0333, 18.7, 8.5206, 35.867, -122.6167, -77.2833, -113.7319, 20.617, -114.45, 6.8906, -116.0369, -54.8167, -54.8, -112.3261, -115.1953, -80.5833, -114.4667, -114.4167, -114.3461, -114.4569, -114.4869, 146.9517, -120.0403, -114.5, -106.3514, -116.1758, 8.9142, -120.3211, -102.4, -91.6653, -91.7067, -111.6833, -110.2167, -87.5678, -146.9542, 153.2078, -78.9336, -80.0297, -95.2969, -96.1281, -90.0603, -95.2667, -95.4025, 124.667, -97.8703, -85.5833, -1.417, -63.9333, 25.5831, -78.7333, 65.5, 123.567, 73.8, 30.07, 47.5, 113.617, 6.3545, -67.05, -47.95, -48.217, 9.1569, 79.617, 104.8667, 104.867, 4.35, 62.8, 130.62, 80.9331, -125.5333, -125.5333, 73.883, 11.94, 13.24, 13.1, 102.8, -79.1667, 102.8, 134.4197, -179.983, 14.067, 142.78, 10.53, 136.15, 55.8331, 7.45, 6.35, 142.03, 74.02, -118.6333, 53.817, 15.0, 127.05, 54.6831, -110.8, 128.68, 25.433, 119.55, 94.333, 70.933, 31.17, -123.2103, -118.9339, -123.2008, 106.867, 92.08, 71.067, 107.0, 107.6, 37.0, 129.42, 19.22, 9.2667, 112.467, 89.933, 116.967, 96.85, 139.8, 84.517, 23.45, 6.4333, 150.4827, 18.19, 12.78, 6.6538, 130.9, 9.95, 13.47, 129.32, 17.6664, 30.5, 29.1, 29.2, -117.8, 34.5, 66.33, 17.04, 17.2197, 14.18, 48.333, -101.2908, 30.23, 69.75, -119.35, -119.5667, 34.33, -35.41, 20.28, 20.29, -152.14, 11.183, -124.1667, 28.67, 126.8, -46.88, -160.8, 110.633, 13.38, 18.92, -101.1461, -101.4, -123.4953, 130.4, 15.81, -82.4, -91.0042, -87.5211, -79.7192, -77.1833, -93.0031, -80.5336, -81.6628, -89.0317, -102.6667, -117.8758, -88.0336, -114.3747, -85.7464, -72.2578, -118.1886, -109.2, -87.55, -89.5308, -105.5667, -147.8611, -113.5333, -114.1333, 152.3375, -93.1772, -111.8333, -60.167, -71.483, -59.15, -61.467, 10.2908, 17.34, -130.45, 37.3, 130.157, -56.1667, -100.7264, 21.25, -117.6833, -79.4167, -117.65, 122.05, -155.8833, -83.0667, -121.6931, -125.6333, -1.25, -122.8964, -76.7683, -109.2836, -107.2667, -83.2833, -109.4461, -106.8333, -122.1675, -94.8244, -63.0, -63.05, -79.2833, -120.3667, 17.63, 17.59, -90.4667, -90.4667, -90.5167, -66.4167, 5.7695, 7.0167, -104.6114, 142.783, 151.4906, 51.4, 146.2652, 138.3136, -92.3, -108.4833, -108.4833, -68.93, -108.7422, 68.983, -88.2403, -83.7822, -76.5667, 81.617, 38.77, 60.567, 34.9, 65.55, 120.033, 42.0, 133.233, 45.069, 11.0, 14.8, -57.033, 87.5, 150.5, -49.31, 29.75, 29.4, -82.8186, 130.032, -68.296, 119.867, 77.03, 97.514, -102.3122, 13.183, 71.7, 14.041, 16.422, 16.87, 104.767, 109.02, 136.68, 156.7, 102.75, 57.683, 135.15, 162.467, 118.8, 116.5, 85.62, 53.683, 134.4497, 143.2297, 143.2, 121.48, 159.42, 87.75, 57.617, 52.2667, 133.317, 56.9194, 159.17, 50.42, 115.167, 38.33, -158.1, -77.0167, -111.8972, -112.9367, 25.6, -106.8333, -103.4433, -90.6333, -75.2, -110.0833, -110.3, -75.2333, -75.3839, 15.7, 4.883, 4.8781, 27.0119, 27.9006, 139.867, 100.1, 11.0717, -79.35, -66.6864, 17.35, 162.9742, 99.08, -21.9667, -99.7667, -99.8, -99.8325, 132.55, -79.8667, -79.1333, -79.1, -79.1667, 90.367, 22.2667, 26.7, 89.817, -118.4428, -83.5358, 26.4275, 24.83, 30.78, 21.8, 21.65, 21.6, 21.7678, -106.8, -121.9608, -121.9575, 57.5, 11.03, -93.0958, 29.8353, 10.89, 14.8, 9.0833, 7.3653, -106.3539, -106.3833, 31.98, 19.68, -73.6833, -71.5, 33.233, -146.3517, -83.2736, -83.2333, -83.2, -83.2767, -117.2439, -103.4, -119.25, -119.25, -119.25, -0.3664, -0.482, -0.4731, -80.1333, -10.2219, -104.4914, -108.4983, -100.5517, -100.55, -100.5231, -100.6931, -70.62, -43.71, 26.033, -112.2492, 19.9167, 4.4292, 26.233, 16.37, -4.7667, -88.2, -4.85, -107.5, -107.5811, 1.175, -70.9333, -64.1, -70.75, 9.7333, -4.5331, -74.1, -117.2, -117.2667, -117.0086, -80.4, -98.0203, -120.2822, -95.4861, -75.4197, -85.6064, -85.6172, -90.45, -96.3672, -114.5139, -106.8167, -102.61, -66.0, -116.65, -96.31, 25.0, 15.5892, -104.9244, -81.35, -71.63, -86.5167, -86.6833, -87.0058, -87.0378, -123.6667, 28.8325, 38.1, -71.0667, -117.8511, -117.85, -77.7833, -77.7833, -75.6, -48.476, 0.728, -64.3833, -107.85, -107.5833, 9.0356, -71.0667, -79.1333, 43.32, -124.5833, 102.2667, -67.4333, -67.4303, -83.3333, -122.6511, -123.1833, -123.1167, -123.1833, -123.1833, -122.6572, -123.1167, -123.25, -89.0953, -91.4833, -89.1667, -120.5667, -120.4861, 27.82, -84.4397, -79.5667, -124.0167, -124.0, -124.2667, 12.36, 6.6455, -73.614, 8.5686, 19.7, -107.1, 24.9603, 25.0667, -178.95, 84.08, -76.3, -121.7939, -67.9333, -67.9397, -91.0186, 43.35, -102.35, -104.8372, -118.4892, 29.383, -84.5808, -116.3333, 21.82, 22.05, 82.867, 12.27, 13.3, 31.1, 31.0844, -73.3833, 25.45, 27.8442, 27.9108, 27.825, 14.1942, 9.2019, 17.43, -122.5, 29.8331, -83.5828, -83.55, 18.28, 20.41, 16.55, 16.63, 15.38, 13.35, 16.59, 18.26, 11.4153, -105.2, -112.1, -112.1333, -112.1333, -112.1167, -173.983, -119.7833, 14.83, 14.73, -87.2667, 9.2167, 11.8572, -102.4633, 9.1468, -112.1, -112.0333, 7.9467, 30.6167, 46.3, 16.3, 21.5167, 25.65, -97.7647, 42.067, -100.875, 33.283, 37.383, 12.72, 10.1083, -82.4364, -112.0667, 12.33, 12.4, 10.9227, 21.533, 70.367, -60.2, -73.3667, 12.0, -111.8492, 32.7, 27.92, 54.683, 12.0042, 27.95, 61.1, 164.23, 87.95, 46.7, 60.3, 77.0, 96.97, 45.017, 130.43, 133.4, 60.7994, 132.017, 59.2, -104.95, -110.8333, -110.8333, -110.8833, -93.6333, -92.2, -96.9194, -64.267, -109.5211, -109.5144, -88.1275, -99.3256, -112.435, -72.515, -119.2833, -119.2667, -123.2, -123.1903, -112.4269, -119.2, -119.3167, -119.2, -112.4167, -119.2, -93.1869, -119.2667, -88.7239, 10.8667, -80.4031, -80.2428, -92.8397, -84.7464, -105.5, 26.4281, 135.8, 33.267, 50.9, 8.3167, -20.2831, 17.833, 45.8, -85.0761, -113.6667, -8.8, 16.1, 11.5167, 3.4, -91.7683, -82.9667, -90.8833, -90.8753, -90.8444, -42.86, -107.0333, -105.15, -114.2, -63.4833, -89.2333, -53.2167, 123.07, -71.9667, -96.5667, -97.0106, 25.85, -97.0181, -123.3333, -123.3167, -123.4667, -123.5167, -123.4333, -123.75, -123.2667, 98.583, -96.9214, -96.9303, 131.0145, -123.3667, -96.9217, -123.3833, -123.3, -100.21, -97.0833, -65.42, -117.3058, -117.3833, -96.7864, 138.6217, 138.5997, -105.3686, -120.8333, 22.85, -109.5, 20.13, -75.8211, -77.2664, -91.9811, -114.85, 100.17, 102.5667, -65.4167, 27.2242, 12.2, 145.0972, -133.0667, 120.356, 12.2167, -101.4969, -8.6239, 6.115, 24.4017, 25.8617, -111.7833, -111.7333, -111.7667, 17.75, 36.75, 70.617, 35.313, 35.13, 34.2, 168.3, -7.7333, 26.9, 16.84, -60.098, 25.6, 121.6167, 45.51, 13.667, 2.2, -93.27, -123.4639, -99.48, -59.08, -92.933, -6.07, -56.433, -73.63, -106.517, -15.867, -105.18, -65.146, -100.72, -63.683, -63.47, -65.387, -79.4333, -92.2664, 8.4617, 14.7, -111.9167, 25.1, 21.8153, 15.85, -87.4633, -87.4878, 19.72, 16.71, 17.05, -75.0, -79.4167, -79.3833, -79.4167, -79.4, -79.4, -70.615, 11.61, 15.82, 105.671, -95.1322, 8.991, 34.783, 28.6, 9.7833, -93.5811, -120.1858, -92.0078, -115.1333, 17.6, 124.206, 39.8, -89.7689, -100.95, -79.15, -96.4983, -92.55, 26.87, -119.6483, -111.9481, -105.2186, -119.25, 27.6756, -90.8761, 23.5456, 5.5256, 23.517, -63.135, -119.2994, 8.3119, 18.3331, -105.6333, 83.233, 14.4, 14.41, -117.2269, 30.217, 30.1, 12.05, 112.5831, -71.8, -40.333, -2.6544, -40.863, -2.7331, 21.63, -100.3, 176.9, 83.37, 51.1, 134.817, 34.4, 44.65, 40.35, 131.9331, 114.1072, 4.9206, 3.5956, 19.4833, -98.75, 13.8, 9.0019, 7.6358, 13.9, 80.367, 9.5856, 42.25, 44.346, 5.7067, 6.8617, 24.45, 29.88, 37.35, 94.5, 68.1, 24.317, 39.9167, 26.5, 44.45, -118.8333, -121.8664, -79.6, 64.016, 89.633, 112.9, 39.2167, 39.27, 27.0192, 6.4333, 139.6, 106.867, -49.983, 40.2, 31.333, 21.9, 23.5333, 18.48, 20.4, 21.3167, -113.25, -113.0667, 107.1, -146.7158, 16.35, -119.9167, 28.8, 34.567, 23.383, 36.45, -2.508, 143.72, -113.8333, -113.8333, -85.8258, -87.9833, -98.6333, -66.8667, -119.1189, -97.0667, -97.2169, -97.0667, -97.2283, -0.5239, -95.1494, -80.0772, 45.2, 31.35, -119.29, 33.483, 5.6331, 5.6217, 9.8044, -89.45, 147.3493, 147.4573, 147.3667, 147.3091, 117.3403, -98.2894, -114.9833, -95.3739, -119.8833, -119.8814, -106.8333, 9.1283, -119.7167, -96.6222, -96.6108, -111.4914, -113.4264, -159.45, -158.1203, -158.1828, -158.1553, -159.7314, 9.3239, 8.9, 14.778, -157.8489, 139.9378, -157.8167, -156.5155, -157.7333, -157.7114, -158.0675, -159.6758, -158.0536, 120.333, -159.995, -111.1, -110.8333, -158.0069, 122.237, 136.9, 40.07, 139.917, 135.167, -99.8722, -96.8667, -75.9, -77.0078, -64.6167, 166.65, 141.683, 30.15, 15.117, 151.5942, 8.1567, 9.0667, -80.2833, 8.3608, -106.2792, -74.1628, -74.1667, 13.4656, -76.8806, -94.1942, -112.7833, 8.2394, 116.1386, -78.5878, -168.0992, 14.44, 148.1223, 148.1218, -83.075, 145.4281, -81.15, -77.04, -94.57, -119.4592, -118.0569, -90.6833, -101.5853, -115.9333, -115.9314, -82.4, -76.4386, -77.9831, -101.2094, -123.05, -110.9167, 151.9306, 144.9654, -118.0511, -118.4, -118.2869, -118.3333, -1.1081, -176.3, -75.4631, -117.5314, -148.0872, -89.5989, -111.5097, -112.8097, -122.0333, -90.9333, 142.004, -71.2333, -71.2461, -104.7956, -102.2986, -80.6761, 150.3867, -98.3006, 10.5494, -98.3458, -80.7333, -96.4756, -75.1333, -75.1456, -75.0833, 129.38, 14.65, -96.3703, 138.95, -121.25, -121.453, -107.9786, 69.57, 144.1482, -74.9003, -74.2933, -86.9294, -122.1953, 116.6706, 116.6756, 126.75, -117.5833, 144.7, 146.3, 146.3056, 7.9075, -118.3833, -101.3667, -95.75, -127.25, -111.4078, -73.5053, 108.033, -84.2, -120.4203, -102.1333, -101.9333, -102.05, -91.1922, -109.4256, -90.2836, -73.8667, 145.5258, 9.183, 126.5839, -72.5, 29.07, -78.5811, -115.4667, -120.2333, -114.8167, -125.6333, 12.667, -117.75, -117.7333, 150.5754, 28.33, 128.2175, -113.1667, -121.25, -118.5786, -112.23, -122.9975, -118.2, -86.9064, -83.6164, -83.6, -116.6333, -83.0183, 137.3995, 146.704, 142.405, 145.9487, -79.1494, -115.6789, -122.85, -80.3167, -93.8008, -6.6108, -82.6222, -91.1386, -77.7678, -94.4, -92.0997, -80.8106, -104.4333, 5.73, -2.65, 142.4353, 142.4522, 142.4814, -95.33, 133.3796, -85.8678, -93.3667, -76.7769, -78.0044, -78.2203, -84.9672, -1.115, 9.4431, 9.765, -86.2283, 152.1003, -111.9833, 152.0258, -115.6333, -99.95, -119.3519, -120.7, -121.33, -109.4, -93.5264, -85.4667, -101.0267, -90.9753, -77.0525, -97.055, -91.7078, -87.1989, -82.7058, -80.1889, -78.1833, -97.5208, -83.4239, -77.4636, -82.8161, -86.8911, -117.2583, -77.0342, -96.1594, -77.0722, -122.1833, -95.7133, -149.4, -149.4333, -100.75, -106.0833, -106.0667, -94.3939, -92.5875, 12.2217, 9.9439, -102.4478, -103.7986, -111.1167, 131.5488, -82.1167, -73.0333, -72.75, -73.0333, -105.2103, 29.33, -7.1308, -123.4167, -88.0667, -90.1619, -82.4736, -92.3333, -88.9844, -85.0453, -92.4011, -76.7833, -80.3833, -89.1742, -89.17, -113.8167, -113.8333, -88.7364, -75.8753, -76.0217, -97.1494, -120.08, -83.0981, -64.65, -69.6544, -69.6333, -100.7283, -89.6311, -103.2892, -103.2597, -103.2867, -117.6333, -83.3897, -83.3656, -98.4139, -98.5261, -105.4667, -105.4, -87.7556, 145.0833, -121.7886, -121.7692, -128.8167, -128.8167, -109.1833, 102.563, 0.956, -88.6667, -94.5667, 28.017, -79.7, -97.3269, -81.7994, -93.8833, -87.8828, -88.2492, -97.9, -91.4711, -89.0592, -97.9964, -97.9883, -85.5833, -89.6256, -88.8889, -89.6167, -84.1453, 28.0, -89.3831, -87.8347, -82.9797, -93.5297, -76.525, -92.4667, -106.0317, -77.1167, 131.1166, -84.8, -81.4, -84.75, -117.4, -84.7833, -84.7833, -101.9667, -96.8422, -83.4031, -111.4097, -82.3128, -82.26, -82.4, -97.0108, -83.35, -87.7592, -82.0061, -88.6708, -88.6833, -78.875, -80.1656, -80.2167, -84.6, -84.0667, -82.9683, -92.2319, -92.15, -98.8797, -71.7383, -97.77, -98.6986, -98.775, 158.2, -122.9383, -95.2039, -84.95, -106.9333, -101.5167, -111.9125, -97.5228, -97.55, -93.7972, -99.4192, -112.9, -90.3667, -80.4086, -80.4169, 9.0864, -80.5206, -76.95, 143.5127, -85.1289, -122.4539, -122.3833, -102.8333, -82.5756, -96.1414, 117.75, 12.1856, 10.6094, 119.183, 11.7, 8.2594, 6.7917, 11.3092, 8.117, -90.2167, 104.28, -151.0833, 141.9208, 141.8836, -105.25, -80.6, -116.9697, -116.4267, 6.8125, 11.2378, 10.967, 10.9967, 7.6983, 36.476, -89.1167, -97.4178, -77.6, -90.6828, 26.67, -79.2667, -79.3333, -1.6031, -75.9286, -100.2103, -97.4097, -82.25, 19.0, -110.6861, 174.8, 148.9503, 148.9708, -119.3667, -117.9933, -114.9736, -73.2, -93.7367, -77.3122, -77.3872, -80.6119, -85.9572, -76.95, -77.9475, -77.9919, -121.7833, -114.1333, 30.83, 9.6353, -120.31, -120.3667, -120.35, -120.2014, -2.1, -114.6667, 12.0131, 10.4717, -114.0358, 103.867, -76.6333, -97.0042, 141.9189, 120.667, 27.03, 26.87, 7.883, 10.767, 144.6833, 9.5439, -74.8081, -97.9708, -67.6664, -105.5333, -98.5706, -71.6333, -72.4333, 146.82, -73.6, -104.0503, -73.7075, -105.4661, -93.5, 3.8631, -71.7989, 11.0617, -79.05, -103.9356, -114.0836, -64.6667, -82.9433, -117.7183, -79.5856, -72.8036, -72.7161, -72.6322, -119.9967, -101.0192, 142.9378, -76.9883, -76.9833, -81.2167, -80.4725, -111.9617, -71.3167, -105.3053, -118.4, -96.7775, -63.5167, -66.3667, 171.6, -69.7089, -119.75, -121.0, -120.9, -88.0017, -94.4167, -88.0858, -88.1939, -74.1667, -121.5333, -116.4333, -71.9833, -70.6128, -75.635, -88.2464, -72.9667, -71.3, -68.65, -114.2631, -113.9847, -113.9942, -75.8, -78.6833, -71.2008, -74.7167, -86.9919, -72.3167, -83.3017, -71.4333, -90.1805, -90.2344, -92.1483, 29.367, -88.7725, -80.05, -80.0994, -82.4547, -91.8347, -91.9025, -85.1808, -88.65, -76.75, -73.9608, -96.7142, -76.8, -106.3833, -69.1461, 122.3122, -71.9031, -80.7694, -123.2, 147.1962, -111.1, -111.0975, -113.3333, -113.3833, 0.5, -86.6167, -105.1, -86.2103, -85.2042, 143.669, -96.5389, -79.2833, -103.8333, -103.8, -91.4181, -65.95, -65.9917, -104.6281, -92.6, -122.8333, -87.7097, -87.0578, -121.4333, -104.9492, -96.5042, -88.0728, -77.0333, -105.1169, -158.0333, -80.7283, -80.7333, -80.6472, -80.7, 13.2833, 174.6, 153.3783, -122.6667, -122.5281, -105.1167, -111.15, -112.95, -106.9, -122.95, -122.95, -118.7403, -53.5333, -0.6241, -97.1, -115.7833, -115.6667, -115.7833, -71.545, -114.3594, -89.9167, -84.9789, -73.4011, -111.9667, -112.15, -61.1833, -135.0667, -135.1, -118.2347, -135.0333, -135.0833, -93.55, -109.9839, -103.15, -82.8047, -145.8894, -86.3542, -149.9978, -78.7167, -78.7914, -78.7286, -88.7247, -102.2667, 143.0742, 143.0893, -120.8375, -111.4167, -90.3789, -112.15, -86.6456, -98.7131, -88.7417, -83.4717, -109.9, -71.1406, -163.4, -118.1833, -118.2333, -121.3833, -85.2833, -110.9833, -72.3167, -101.0925, -93.95, -122.7833, -96.565, -122.7833, -121.4833, -106.1758, -108.3667, -80.3083, -110.9042, -110.8853, -110.9, -111.2, -120.7167, -119.65, -87.4833, -87.0231, -87.0167, -111.05, -101.445, -118.4628, -81.6, -121.8994, -83.7831, -97.375, -75.9653, -148.6858, -118.01, -85.4736, 137.5205, 137.5328, -81.1, -104.1567, -103.4914, 101.1, -97.4425, -97.35, -98.4928, -97.2211, -97.2667, -98.7125, -98.7458, -97.4431, -3.083, -110.5433, -112.7403, -121.6875, -14.4, -111.8833, -111.9731, 18.5667, 16.35, 16.4, 16.3883, 16.135, 16.567, -93.7167, 8.3333, 8.1881, 12.467, -89.1214, -104.1833, -66.0, -73.1333, 4.6031, -113.6136, -118.7239, -95.1711, 143.3747, 143.385, -104.3333, -109.5, -72.3081, -88.3667, -112.4833, -103.2131, -117.1853, -94.4456, -115.3167, -105.6, -103.0192, -115.8008, -92.7489, -118.8408, 3.9, 8.1067, -75.8833, -75.7269, -114.75, -123.7164, -123.75, -78.0453, -109.8369, -112.1928, -122.15, -84.15, -66.7167, -91.9978, -84.1667, -76.7039, -76.75, 150.1786, -82.2833, -82.2761, -77.0, -76.9217, -76.9833, -77.0306, -73.2, -84.6106, -112.3375, -88.5333, -106.2039, -122.05, -122.1667, -122.15, 151.8359, -95.55, -123.5333, 167.0, -72.1836, 8.6033, -103.7372, -103.6367, -83.5833, -105.0564, 149.965, -123.3425, -123.3167, -95.0833, -95.0358, 23.5, -122.3058, -114.6611, -100.2911, -110.8167, -109.9167, -109.8167, -118.35, -123.6364, -107.2667, -106.2153, -106.1, -75.15, -105.7333, 26.95, -89.8489, -91.9914, -110.8667, -150.0542, -73.3819, -96.015, -84.9344, -116.2333, -83.85, -77.9206, -77.8789, -75.55, -77.8997, -75.6008, -75.5414, -77.95, -99.0556, -96.8619, -110.6667, -110.51, -90.0333, -75.7, 146.4244, -77.9456, -115.0, -119.1167, -98.4889, -100.7892, 120.225, -113.5833, -86.5867, -89.3142, -78.1514, -90.4528, -123.3536, -116.6233, -86.0925, -116.6167, -78.1167, -84.9208, -83.7261, -74.2011, -71.3333, 17.1, -89.1547, 167.7, -5.35, -95.1167, 142.6564, -109.1244, -109.0614, -93.5242, -88.5961, -93.5314, -82.95, -64.1667, -64.1, -64.1667, -82.9333, -83.0667, 116.0308, -105.5833, -103.4881, -121.9333, -122.65, -119.4167, -114.5833, -87.8469, -96.9408, -81.9153, -97.0369, -97.3489, -100.1069, -109.3758, -110.7167, -103.2017, -94.1661, -117.7514, -117.8081, -99.8403, -99.8422, -92.6561, -94.0586, -97.25, -97.2333, -97.1, -97.1167, -97.1333, -81.0928, -91.7089, -91.7022, -101.2439, -91.6364, -89.6244, -91.6703, -85.8167, -94.0203, -110.7208, -107.6492, -80.2222, -91.07, -55.3333, -55.3, -121.9778, -94.0183, -83.2911, -128.0333, -81.7331, -99.8667, -81.7542, -120.1886, -81.0317, 143.0836, 143.0386, -91.7667, -69.7117, -89.7667, -89.8056, -89.8369, -78.05, -113.4514, -150.1069, -82.5389, -113.0136, -112.9333, -82.5597, -104.1167, -99.56, -126.2167, -94.7039, 115.1042, -107.55, -79.8306, 12.65, 118.3358, -112.5983, 7.667, 12.4964, 9.845, 23.533, -70.8667, 146.9, 4.3417, -118.4989, 115.8808, -118.95, 13.6117, 143.9167, 8.24, -71.2333, -71.2, -76.5333, -65.15, -65.15, -78.5278, 10.76, 7.6242, -64.3667, -106.7469, -118.1333, -85.15, -106.7906, -106.8667, -106.8, -107.1719, -105.6483, -105.1017, -105.2097, -105.5333, -105.5744, -91.2167, 137.9462, 150.8795, -103.2833, -109.65, -84.6167, -118.7033, 136.3358, -150.8714, 116.7186, 116.7267, 127.95, -121.8, 127.433, 145.5965, -100.4794, -122.6447, -81.7072, -79.6, 1.4, -84.8483, -86.0894, -55.55, -123.8833, -119.8, -67.4044, -121.7942, -118.5744, -103.5678, -111.1494, -84.8742, -122.2561, -82.7333, -82.7333, -147.275, -76.8667, -80.7667, -72.5072, -71.6833, -67.55, -78.4678, -75.1644, -70.65, -119.45, 146.2541, -78.9833, -91.2325, -94.4, -99.3817, -99.4167, -93.9167, -99.4, -92.4667, -57.9167, -112.8167, 151.3451, -77.7167, 146.5364, 136.8054, -71.4908, -81.9333, -81.9167, -81.8867, 19.467, -71.8167, -72.5822, -71.8731, -110.9167, -107.9508, -107.9686, 8.3667, 10.2306, 8.9867, -119.0, -86.9833, -72.9211, -95.6, -95.5803, -132.3875, -102.2325, -59.3167, -60.45, -112.1167, -76.05, -117.6386, -105.7331, -92.9542, -94.1583, -84.05, -123.4333, 0.4308, 8.5281, 17.0, 93.08, 93.6, 135.4519, 104.917, 110.63, 114.05, 118.38, 118.583, 11.967, 9.433, -111.3703, 7.1058, 9.9589, 9.9292, 102.867, 12.8731, 113.53, 8.3806, 111.3, 87.65, 104.883, 147.2418, 32.75, 143.2, 0.9481, 7.783, -104.3833, 128.1247, 128.1503, 128.1, -90.7964, -104.2, 145.7292, -104.2, 145.7292, -107.4061, -81.0869, -86.6167, -84.2011, -81.2275, -123.1167, 88.633, 33.633, -89.85, -83.9, 118.083, 108.933, 123.72, 102.35, 102.267, -98.23, 101.12, 107.63, 107.77, 88.883, 114.52, 116.117, 120.7, 105.183, 114.5, 111.13, 101.767, 115.58, 114.05, 110.93, 116.82, 112.333, 114.58, 117.6, -89.5, 20.0, 115.65, 117.15, 103.0, -115.6267, -115.7167, -65.8733, -124.1047, -63.65, -80.5481, 89.0, 31.8, 87.6, -142.5, -120.5414, -120.5428, 130.667, -139.6711, -82.8011, 116.6828, 23.27, 146.3317, 29.3, 34.167, 140.35, 131.45, 123.6556, 153.3633, -5.366, -106.9092, 109.5, -79.3333, -79.2544, 107.383, 146.4328, 112.4, 126.65, 67.2, 111.967, 96.133, 127.5, 129.5, -97.3633, 121.4, 116.85, 109.5, 11.53, 138.1333, 138.0833, -73.807, 67.083, -66.0333, -66.0833, -66.0833, 152.2482, 146.0306, 177.583, 51.583, 148.9113, 28.1, -95.7292, 54.4, 54.277, -90.4, -90.3817, 120.0931, 12.55, 44.32, 52.0694, -10.567, -114.4333, -114.3833, -114.25, -115.4961, -115.5114, -115.2514, -118.3231, -110.4211, -122.4278, -110.0, -110.6964, -107.9383, -83.6961, -104.1833, -108.7561, -108.6636, -113.5417, -111.3508, -92.6667, 96.88, -80.8419, 38.063, 146.1897, 127.75, -2.6415, 150.7506, 44.5, -119.1575, -104.6128, 33.367, 29.983, 104.6, 111.3, 114.38, 128.9, 106.2, 122.2, 81.333, 136.8833, 94.7, 118.15, 23.47, 24.6531, 23.9167, 24.7278, -97.1556, -104.3881, -123.75, -116.5333, -116.5333, -116.3333, -116.35, 136.583, 12.37, 139.65, 139.6667, 12.43, 12.5, -123.065, 133.333, 123.017, 138.7489, 117.35, 128.95, 129.42, 128.52, -121.4833, -117.8189, 116.765, -97.5922, -77.8833, -1.1, -102.4667, -102.4667, -73.7975, -88.45, -97.5997, -76.75, -81.225, -76.8742, -92.3, -71.3331, 116.7581, 128.4, 106.7, -119.5897, -119.8208, -57.633, -79.0103, -80.6739, -112.3014, 148.2475, -86.3425, 148.2967, -109.8167, 108.767, 34.8, -122.6408, -106.3217, 13.83, 11.2, 14.95, 11.2, 4.6817, 101.98, 110.4, 102.28, 101.87, 112.7, 71.6, -72.2, -114.1344, -115.8167, -116.3878, -116.4078, 137.1505, 131.8017, 113.08, 137.6697, 69.6, 44.3, 130.9737, 110.17, 109.7, -102.7217, -114.1883, -114.635, -114.65, -114.6167, -114.3942, -114.7167, -114.6167, -114.6, 97.033, 35.8, 111.05, 100.53, 139.5611, 139.5645, 110.82, -102.28, -123.8575, 112.98, 96.967, 96.6, 46.3, 114.57, 104.15, 68.4, 61.4833, 50.2, -102.567, 15.35, 95.3, 94.72, 15.9781, 16.07, 60.907, 84.9167, 46.667, 20.883, 19.9667, 16.8, -82.385, 23.32, 23.12, 122.067, 42.62, 109.967, -102.28, -5.7333, 23.25, 111.9, -81.8922, 48.359, 39.225, 112.67, -99.2536, 35.02, 35.3, 37.8, -100.92, -1.0333, -1.0081, -132.8486, 129.467, 14.9831, 78.667, 145.3333, 13.3281, -104.4, 12.1442, 127.3, 41.57, 12.8, 14.75, 142.2, -1.45, -102.9956, -76.3833, 12.1008, 41.483, -45.65, 15.0, 49.483, 69.8, 81.217, 114.88, 122.533, 100.43, 110.4, 103.83, 103.75, 80.0667, 72.867, 21.3, 113.65, 67.717, 105.1667, 123.4, 109.683, 27.867, 36.82, 30.033, 69.467, -96.5167, 105.67, 76.367, 112.57, 114.017, 28.733, 15.5333, -16.282, -121.9333, 57.4, 25.917, 35.9, 18.617, 117.483, 102.05, 39.733, -122.3903, 9.0, 15.13, 13.9006, 13.75, -90.05, -112.9814, -106.5833, 19.7167, 59.67, 67.067, 82.2, 28.1, 32.667, -94.6333, 152.833, 138.983, 35.3, 31.8, -55.183, -119.8167, -108.5244, -108.5528, -12.483, 20.35, 12.08, 8.5667, 41.883, 10.9867, 33.75, -92.6661, -108.8389, 106.883, 27.8, 64.867, 28.07, 7.4167, 13.233, 150.9], &quot;xaxis&quot;: &quot;x&quot;, &quot;xbingroup&quot;: &quot;x&quot;, &quot;y&quot;: [51.65, 51.6833, 51.7, 52.1167, 44.3958, 51.3, 49.0017, 55.3992, 47.8419, 50.7839, 50.7992, 60.55, 68.7, 60.6167, 30.371, 43.9, 43.68, 44.017, 53.77, 20.65, 44.017, 20.45, 29.9689, 50.143, 50.7, 49.0333, 13.85, 54.2833, -8.87, 45.0333, 33.83, 45.4558, 46.9658, 47.2614, 45.7114, 42.9536, 39.4717, 49.5, 33.84, 46.35, 52.133, 52.4, 18.24, 5.25, 5.261, 5.32, 38.9267, 32.3403, 32.4333, 32.4106, 36.6686, 36.2403, 68.36, 49.35, 49.8833, 48.7167, 60.9181, 60.1106, 3.97, 22.37, 66.383, 39.4, -22.83, 65.9897, 31.583, 24.43, 24.433, 19.533, 12.733, 43.4892, 45.9833, 44.3739, 51.0667, 13.567, 22.5, 16.833, -2.88, 18.2, 5.55, 56.28, 43.55, -6.973, 42.1, 37.4, 51.5, 34.8083, 44.0089, 32.93, 34.4458, 30.3519, 19.5, 34.7864, 47.2992, 34.3667, 51.8833, 51.5, 42.65, 43.9, 22.5, 37.0, 37.1, 36.98, 40.783, -25.9167, 38.1167, 34.7986, 51.6, 34.2553, 42.1014, 8.98, 9.0, 9.033, -33.57, 42.1761, 47.0092, -67.8, -34.9524, -34.9211, -34.8533, -34.7833, -34.9697, -34.9254, -35.3077, 59.36, 31.1097, 12.75, 49.05, 12.833, 5.28, 5.3, 41.25, 41.1936, -7.78, 37.75, 18.1747, 43.433, 47.572, 33.5667, 19.67, 27.88, 43.7333, 41.9164, -19.533, 41.8678, 37.0956, 12.58, -34.559, 20.983, -25.45, 19.43, 37.0667, 41.0333, 42.6475, 42.7292, 38.726, 16.98, 16.967, 30.3833, -10.433, -10.6, 23.883, 49.25, 49.25, 48.5, 48.3006, 66.8797, 42.4244, 42.425, 30.72, 44.18, 51.1, 55.25, 42.5522, 61.55, 27.1667, 39.733, 13.15, 38.62, 48.7833, 21.8833, -9.28, 21.95, 37.5167, 33.9433, 17.9556, 17.9667, 47.6, 52.083, 38.8, 23.067, 29.1, 62.533, 62.5344, 21.05, 22.95, 31.337, 18.1281, 21.3833, 47.53, 50.25, 38.033, 33.4925, 32.1833, -19.483, 57.867, 42.5522, 36.317, 32.767, 16.73, -38.4583, 61.65, 46.5258, -18.8333, -6.32, 44.47, 47.967, 56.45, 35.05, 26.47, 32.3697, 40.36, -13.28, 41.0, 36.7, 41.1, 58.9, 59.25, 38.92, 41.47, 35.03, 20.26, 39.717, 51.867, 19.75, 52.0, 42.967, 68.2167, 20.7, 20.7, 40.78, 40.93, 38.25, 61.4, 41.0803, 40.155, 40.9167, 41.0375, 40.1667, 34.567, 50.267, 42.07, 54.0, 38.4, 38.4, 42.5, 38.617, 50.2831, 67.15, 32.033, 65.68, 20.47, 43.15, 51.0, 42.48, 33.1783, 14.08, -12.14, 63.0889, 63.0506, 37.7333, 37.3667, 32.9181, 32.8667, 34.6, 37.4667, 37.4417, 37.4389, 27.03, 35.7978, 34.2281, 34.25, 36.6, 31.35, 40.5, 63.87, 54.817, 70.6667, 38.9519, 39.0067, 48.8833, -35.0289, 32.7047, 40.2486, 42.6461, 44.65, 44.6167, 31.5339, -34.9414, 42.7431, 31.5833, 31.5356, 35.3992, 44.05, 49.3667, 49.25, 49.2833, 49.3333, 35.9333, 46.6447, 43.1833, 46.85, 47.0036, 48.3, 34.2333, 53.1167, 43.6064, -36.85, 41.0656, 40.9833, 41.4, 38.3778, 41.6853, 42.2486, 42.4167, 45.2089, 43.2722, 41.4, 43.9167, -34.5638, 9.0, 45.5833, 48.2164, 48.2058, 35.1, 35.1344, 35.0419, 35.0217, -36.0692, -36.069, -36.0817, 36.0908, 62.8167, 42.4697, 39.17, 58.6167, 49.1167, 54.658, 40.1833, 48.6167, 37.7272, 45.0708, 45.0961, 46.8, 40.1867, 46.2733, 39.6514, 41.2019, -29.8, 52.517, 56.4, 50.917, 60.4331, 50.9, 50.15, 32.9308, 48.45, 36.18, 39.8167, 36.3333, 82.5167, 50.5833, 82.5, 82.5, 44.92, 62.4755, -28.5667, 32.9453, 32.9833, 29.05, -37.1916, 31.3206, 43.6514, 40.0833, 31.2489, 44.3333, 38.8, 31.3928, 31.184, 31.3347, 45.8678, 38.8167, 40.85, 52.0833, 52.55, 54.1167, 51.967, -9.879, 52.4864, 44.4931, 10.435, 42.2497, -4.193, -46.433, 46.55, 36.7167, 36.767, 40.67, 36.8, 36.8, 36.78, 42.6158, 43.0683, 45.5833, 45.5333, 33.5167, 38.282, 38.367, 38.3725, 38.2828, 27.7283, 33.1272, 55.6833, 51.1767, 27.7411, -23.7951, -23.71, 35.9308, 40.5, 5.02, -30.8, -30.68, 52.3833, -21.0025, 42.9694, 47.0886, 25.441, 25.5, 66.5653, 36.3806, 34.165, 42.1003, 42.5333, 42.58, 41.4864, 31.75, 40.8997, 33.3833, 33.0167, 28.33, 40.1881, 40.6, 40.6508, 40.7042, 57.07, 52.4333, 42.1103, 52.3167, 42.0572, 52.4167, 39.7369, 42.7536, 43.9247, 49.1333, 49.1167, 46.0667, 44.15, 67.1297, 33.3833, 40.1, 43.3864, 45.6, 59.16, 40.84, 17.25, 49.55, 43.2331, 31.5358, 44.3272, 64.0, 36.8331, 36.8464, 11.526, 46.7253, 45.1833, 46.7167, 55.65, -8.217, 6.2, 49.2833, 49.3667, 38.8, 45.1628, 45.0717, 45.0606, 36.7333, 34.1014, 44.4, 30.3764, 32.8358, 33.8492, 40.4644, 70.3464, 30.3703, 33.8417, 32.8336, 36.7956, 47.7833, 42.6, 41.4, 51.3833, 51.3333, 44.4044, 50.7456, 65.9022, 43.1667, -28.8521, 40.5906, 42.6667, 70.0, 46.4, 60.333, -3.2, 16.73, 40.3561, 35.9, 30.717, 30.7, 49.25, 47.733, 48.3, 43.7728, -9.867, 50.15, 69.9775, 46.8667, 39.5008, 53.6881, 49.7733, -35.3725, 38.7, 48.4067, 37.4403, 42.9981, 43.85, 41.1203, 49.1, 39.4767, 36.63, 38.8664, 40.5228, 40.495, 40.2964, 40.5, -39.01, 34.4417, -22.96, -9.1, -7.4, 41.49, 41.4914, 34.5872, 34.3622, 34.65, 34.8847, 34.5903, 39.18, 57.433, 34.7961, 38.3667, 67.31, 18.3, 36.8014, 44.6522, 36.7081, -19.4569, 62.0277, 61.26, 61.25, 39.46, 58.01, 29.3653, 41.3586, 33.3867, 65.67, 65.69, 53.0608, 38.83, -13.8483, 60.9583, 49.7281, 25.285, 24.262, 20.296, 26.983, 35.18, 29.783, 24.55, 29.28, -7.2, -3.35, 59.05, -5.1, 39.23, 2.067, 13.267, 31.85, 36.5717, 35.2333, 46.235, 40.783, 40.65, 20.86, 30.383, -1.23, -27.6297, 62.1925, 57.42, 67.0833, 14.513, -3.7, -3.7, 43.8836, 42.517, 35.9, 69.75, 37.345, 47.0, 48.0206, 42.7986, 42.8572, 32.0603, 45.3011, 42.0, 41.9519, 42.0208, 41.9922, 35.1131, 60.9, 67.0, 42.3861, 44.4667, 42.1, 34.9331, 46.4819, 16.741, 35.8742, 29.4608, 30.7094, 34.2808, 39.8914, 31.9833, 65.97, 47.9039, 38.25, 48.5667, 61.1351, 60.96, 60.9617, -8.53, 48.9167, 48.9167, 48.4667, 48.5167, 31.71, 42.9167, 49.6167, 47.8, 11.03, 11.033, 46.1314, 48.5119, 35.0619, 64.7831, 33.8647, 29.7878, 29.6692, -14.633, 42.1117, 36.1, 44.9, 46.1333, 39.2167, 33.9333, 38.2667, 61.1747, 61.1561, 61.1689, 61.1781, 61.2169, 61.0883, 61.1025, 43.6667, -2.32, -41.9, 46.383, -27.6, 31.3072, 31.3089, -30.449, 69.3237, 46.6331, 13.5761, 34.5283, 34.9092, 36.65, 36.6519, 36.645, 34.4978, 43.3572, 61.6244, 42.4372, 40.1117, 37.6, 37.93, 40.733, 36.55, 42.15, 45.4136, 45.2533, 45.4136, 41.0089, 69.3, 54.0167, 32.3483, 33.4408, 35.2014, 42.4333, 42.55, 53.9167, 34.8117, -20.233, 49.7167, 37.2558, 33.557, 56.283, 42.3108, 65.02, 36.395, 53.0331, 45.55, 47.5, 35.9833, 38.2486, 29.1572, 29.1097, 51.5667, 30.95, 41.6397, 57.4989, 43.35, 38.65, 41.6, 41.0, 32.9833, -36.5, -13.9833, 44.3167, 48.1, 38.5731, 56.717, 61.5833, 31.9381, 39.617, 32.72, 39.95, 40.12, 39.95, 40.0, 41.6775, 53.8431, 51.483, 36.822, 36.97, 50.5742, 17.7564, 37.3, 38.9833, 38.9936, 44.75, 38.9833, 17.8, 52.25, 37.4814, 55.0389, 58.3183, 60.4667, 33.6667, 33.5872, 42.2228, 42.2417, 42.2947, -54.7, 30.533, 49.2975, 41.5975, 48.9333, 32.7667, 38.1211, 36.2, -14.83, 36.899, -18.867, -18.8, 44.8197, 40.9333, 41.6847, 44.6867, 44.0397, 31.3336, 38.9933, 37.155, 51.2, 43.008, 49.4, 45.1603, 45.6333, 45.15, 38.1167, 42.4811, 38.0167, 32.8833, 37.9833, 69.08, 34.2208, 34.2253, -23.433, -23.5, 10.45, 7.812, -14.999, -12.35, 43.967, 62.3667, 31.9792, 36.05, 55.45, 37.467, 33.555, 39.083, 44.5792, 40.5, 40.817, 45.73, 27.0, 34.8892, 34.9142, 31.7167, 33.4167, 33.4625, 31.9, 29.7258, 29.7333, 19.72, 18.367, 41.1667, 35.7425, -13.8149, -13.8, -5.61, -38.77, -14.733, -28.6217, 43.35, 44.2769, 45.1833, 45.8092, 38.1869, 33.5619, 37.3261, 44.7667, 2.43, -8.7, 7.02, 9.33, 4.17, 60.43, 60.5, 67.7831, 29.6333, 37.5222, 15.78, 19.8, -10.917, -16.83, 46.1331, 40.5, -15.9, 33.8833, 40.5983, 34.09, 34.138, 46.7794, 28.25, 28.2667, 28.3081, 13.7, 35.5833, 38.6842, 39.1, 30.907, -37.2833, -37.2775, -19.567, 38.1667, 42.5031, 43.0411, 50.9333, 38.4333, 40.3983, 45.1833, 42.5333, 27.2181, 32.5511, 37.5981, 40.9781, 51.4969, 34.1128, 27.1819, 41.1517, -27.5717, 33.5947, 38.6164, 43.6356, 36.2911, -8.41, 43.4622, 43.6231, 73.0333, 73.0, 41.1, 38.25, -34.3567, 34.1772, 40.0, 43.03, 34.1922, 34.2281, 34.3, 56.5289, 18.4533, 18.3494, -6.58, 39.9167, -16.332, -16.4, 63.43, 43.47, 63.38, 47.3, 47.3, 47.3, 38.1167, 48.3311, -16.6381, 64.5, 49.4167, -18.35, -18.5, -15.91, 28.93, 32.7306, 33.4833, 66.0522, 60.083, 34.1433, 50.217, 34.025, -30.311, 43.0333, 54.6817, 59.66, 43.3333, 45.7211, 44.3631, 32.6636, 32.7572, 43.3008, -23.4564, 46.75, 54.35, 46.7167, 44.9831, 47.5867, -30.5273, -30.5167, -30.5264, -26.95, 43.3131, 26.9333, 50.45, 26.8339, 50.3, 50.3, 50.5, 50.4667, 34.6953, 52.6781, 36.1669, 36.0719, 54.6306, 7.0725, 41.4225, 47.75, 45.4167, 51.3783, 49.9706, 51.3856, 15.83, 46.7167, -2.6667, 46.78, 40.8, 51.9667, 52.2, 55.7333, 16.233, 39.2833, 39.9167, 43.5936, 47.2667, 35.1792, 36.23, 48.6, 54.361, 51.383, 32.7547, 46.0167, 38.0167, 41.5697, 43.8167, 46.75, 40.7808, 45.3783, 52.7833, -33.393, 10.15, 41.183, 3.017, 45.95, -3.383, -3.333, 44.7, 46.267, 61.1, 61.1, 48.4333, 65.5997, 59.67, 59.67, 47.9167, 47.167, 55.367, 35.817, 59.6605, 43.767, 45.7667, 58.18, -15.717, -7.9, 51.7508, 57.15, 64.16, 64.17, 42.6178, 42.6617, 31.7003, 50.7167, 50.7167, 33.6194, 35.7044, 51.1333, 35.5953, 35.4186, 35.4944, 35.4319, 37.9667, 33.8667, 32.1292, 37.1942, 37.75, 38.4536, 40.8667, 42.2128, 40.8333, 46.5522, 33.2942, 46.5831, 37.7081, 46.5486, 41.0408, 46.0406, 41.85, 41.7781, 44.0425, 45.1667, 33.85, 35.5833, 41.2769, 35.3, 37.2614, 36.4914, 41.0519, 61.2167, 61.265, 61.3006, 46.5, 59.8558, 53.92, 56.083, 15.283, 15.3, 32.883, 39.1833, -38.0333, 39.1853, 39.2231, 33.1525, 59.61, 41.567, 52.1333, 13.067, 38.0722, 38.0667, 37.5167, 49.7333, 49.7333, 50.5808, 23.9667, 51.1331, 38.5, 35.33, 46.1833, 44.5044, 46.1569, 46.15, 44.717, 46.2831, -4.44, 43.5667, -25.27, 27.1833, -8.5333, 7.58, 20.517, 20.52, 48.7, 17.7, 51.8167, 41.2, 39.5756, 54.7167, 54.8167, 54.6333, 54.7167, 35.15, 32.1633, 33.9667, 34.7753, 35.4322, 37.4225, 39.3428, 34.8, 39.3833, 33.9481, 33.9167, 32.2211, 37.7333, 37.9667, 13.217, 13.22, 48.75, 48.7667, 48.7333, 48.8, 14.0, 52.2167, 60.85, 42.5136, 33.1244, 33.3633, 43.8, 44.9933, 43.8, 45.0283, 33.7792, 33.63, 39.8697, 33.8667, 33.875, 43.75, 41.4175, 34.6997, 39.3792, 39.4494, 39.45, 50.8167, 50.8167, 59.5667, 31.0167, 31.1819, 54.7833, 42.2667, 34.3983, 34.45, 59.1, 20.57, 17.2, 17.21, 35.45, 40.2839, 52.8333, 29.6617, -9.8, -9.8, 58.2, 50.8167, 39.7997, 47.1167, 37.0919, 32.6, 38.9072, 42.9328, 41.3333, 40.3706, 32.6, 38.8833, 32.5992, 55.4767, -37.0, 39.8833, 41.7069, 50.5917, 53.55, -28.6, 48.4, 48.4264, 47.4931, 33.3644, 33.4669, 44.6825, 44.3206, 44.6981, 34.075, 16.97, 58.3814, -8.78, 74.1333, 47.9706, 42.483, 19.85, 53.4633, 40.8586, 41.7806, 64.8553, 35.3872, 39.7167, 42.7339, 45.2486, 62.4066, 58.9667, 30.2833, 34.6333, 42.0, 46.6456, 39.4931, 30.6222, 44.5747, 30.1728, 30.1831, 30.3208, 30.4144, 39.5031, 29.7036, 43.6542, 60.9333, 45.65, 45.787, 47.8, 39.6667, -38.0287, 33.405, 33.35, 36.8753, 36.9431, -22.35, 47.25, 47.2533, 60.14, 46.0333, 57.2, 40.6592, 40.6556, 42.9203, 39.8592, 45.1667, 27.5947, 8.98, 7.083, 53.4917, 4.867, 58.57, -13.13, 33.5, 37.85, -25.34, 45.0333, 42.7667, 53.2, 20.08, -19.6169, 18.04, 39.3, 32.53, 36.835, -36.833, -36.8, 50.5167, 34.1333, 43.3669, 43.3067, 59.4, -1.78, -28.38, 11.333, 47.7122, 47.6833, 48.9389, 55.0667, 54.45, 45.6, 0.831, 36.717, 51.72, 40.7167, -4.21, 29.76, 46.5331, 43.4667, 43.45, 51.75, 28.8, 39.6333, 39.8, 60.92, 40.8892, 34.95, 36.6833, 36.6619, 34.5328, 38.9, 38.8831, 30.97, 46.1, 46.1, 48.7278, 47.1106, -33.8969, -33.8683, 48.9667, 44.03, 48.1333, 45.6481, 37.1697, -30.3381, 24.63, 25.37, 46.8608, 50.5356, 43.8081, 49.1081, 51.0467, 50.675, 50.3092, 48.7856, 49.4728, 50.3333, 46.87, 51.9014, 50.867, 47.72, 50.2, 47.6658, 50.2853, 51.1342, 49.8517, 51.3167, 51.1183, 51.3925, 48.7733, 51.7867, 50.4519, 50.667, 51.5675, 50.3694, 51.6344, 47.0167, 47.7244, 52.1053, 52.1, 50.2717, 51.2814, 47.7667, 51.1067, 53.267, 4.73, 41.6, 34.5975, 34.6, 34.65, 54.47, -31.333, 41.0383, 33.32, 48.3333, 16.375, 16.58, 16.4, 28.3331, 11.6, 29.95, 29.4, 24.6361, -38.733, -0.58, 28.82, 24.6589, -20.23, 27.71, 23.0, 26.267, 47.6667, 48.5303, 49.1333, 49.2333, 49.2667, 49.1333, 48.7, 50.2833, 47.4167, 49.9833, 39.4047, 39.8311, 39.3794, 40.4361, 41.7, 41.6317, 30.9167, 42.2833, 30.8228, 31.367, 31.8, 54.35, -37.8333, -37.8817, -37.8167, 23.9, 44.4992, 46.5, 38.2, 46.117, 40.9339, 42.7, 50.8, 53.1, 46.1833, 61.6667, 4.0, 37.6, 55.183, 44.833, 57.0, 35.2761, 46.3661, 42.1, 30.8878, 35.3833, 35.4186, 35.4344, 40.65, 41.8417, -31.7603, 39.0117, 35.3833, 34.45, 44.8428, 39.0019, 44.7667, 64.3, 64.3167, 46.3583, 43.9792, 38.433, 41.2, 45.0, 2.36, 54.0, 34.55, 51.55, 21.517, 39.5, 8.9667, -37.75, 36.9092, 30.5661, 37.6167, 56.2333, -82.767, 49.2833, 43.9006, 44.2667, 44.9633, 43.15, 43.8933, 33.9833, 35.3, 42.7, 43.5556, 44.8, 38.9056, 15.77, 47.59, -31.09, -20.1417, 42.67, 43.02, 46.8, 50.078, 39.619, 70.08, 52.533, -32.4569, 45.9497, -37.6, -37.5127, 55.5833, 58.58, 49.35, -27.4008, 26.95, -28.8353, 31.7414, 42.9333, 54.0508, 55.1806, 54.5, 42.5833, 43.1003, -45.917, 30.9844, -34.6398, 54.65, 45.8833, 39.2833, 39.1667, 47.08, 29.1, 12.65, 5.77, 33.3, 49.8753, 3.45, 48.8333, 26.35, -0.9, 70.067, 45.05, 38.5167, 43.3, 45.05, 45.0667, 27.218, 26.5833, 35.7833, 40.32, -6.92, 43.1497, 51.1833, 51.1833, 51.2, 48.5667, 12.967, 12.95, 4.73, 13.97, 13.733, 44.8, 46.35, 50.9, 39.3975, 44.7978, 4.38, 4.4, 4.398, 13.667, 44.783, 13.45, 13.338, 13.2, 13.35, 34.14, 33.4528, 49.7, -33.9181, 36.1617, 44.3, 33.0, -1.38, 6.78, -8.217, 12.6667, 38.85, 34.35, 46.32, 25.13, 42.1, 55.3331, 43.4583, -30.9469, 46.7833, 18.2, -24.1819, 57.0833, 53.117, -7.317, 46.3108, 48.322, 21.3167, -25.78, 36.8825, -23.5544, 41.4, 41.4192, 41.2928, -0.981, 2.35, 37.8, 37.8194, 69.0589, 36.8831, 32.2631, 28.367, 78.1, 53.6167, 54.33, 8.62, 47.7722, 22.75, 41.13, 56.29, 31.9, 31.92, 59.42, 53.0667, 46.1, 22.0333, 46.5, 45.4167, 46.233, 38.0281, 45.2883, 53.4331, 39.9917, 43.9456, 46.4, 30.9856, 36.5653, 43.7, 33.2564, 49.8, 50.0333, 10.043, -11.08, -30.3781, 47.55, 47.55, 47.3167, 48.35, 47.65, 46.85, 46.7167, 47.2167, 48.3333, 47.45, 46.7167, 18.1667, 48.3667, -5.5, -21.18, -12.15, 41.9111, 36.8978, 32.6833, 42.4281, 44.2033, 54.1, 44.4, 51.1833, 47.8667, 48.3667, 46.7167, 47.1667, 44.4833, 44.3833, 42.1153, 45.5, 71.3214, -21.5317, -38.32, -20.8206, -20.875, 71.2833, 48.167, 49.683, 52.3208, 31.4667, 34.8928, 34.9, 34.8536, 70.1333, 54.367, 41.6, 36.7619, 36.7683, 41.87, 33.8097, -21.698, 35.0833, 27.8986, 38.5311, 52.117, 48.917, 49.65, 46.683, 48.6333, 44.4167, 29.883, 20.451, 20.433, 47.55, -64.88, -62.5, -74.7, -77.867, -63.317, 43.9333, -63.4, -62.233, -64.233, -60.733, -68.117, -32.23, 41.38, 44.38, 45.8, 38.1, 42.2547, 30.52, 50.9, 50.7833, 50.9, 33.879, 13.32, 52.8494, 47.417, 58.9, 32.7314, 30.1742, 47.8, 47.8, 14.12, 63.517, 1.117, 30.0, 43.0303, 1.9, -13.0545, 36.5167, -35.7234, 33.9, 34.3061, 35.82, 35.7597, 35.8306, 42.6339, 42.3489, 43.9317, 47.6167, 47.6333, -33.4289, -33.412, -33.52, -33.4167, 66.8333, 13.4, 9.07, 37.929, 35.55, 35.75, 30.4292, 30.5372, 27.02, 4.47, 34.58, 37.2319, 7.7, 34.385, 52.6833, 42.3667, 42.3075, 45.7717, 52.25, 41.05, 40.6117, 40.65, 41.633, -8.5, 48.7094, 48.4167, 48.7167, 48.6703, -22.317, 56.4, -5.467, 31.8414, 31.7136, 36.8583, 41.8167, 46.833, 43.03, 45.733, 47.9, 46.133, 40.75, 47.783, 49.7, 39.2728, 35.1311, 40.3, 46.8833, 49.2333, 39.8, 49.9, 45.37, 29.9142, 47.9803, 43.6167, 28.9797, 47.9833, 47.9833, 30.8839, 30.3, 31.9694, 30.3758, 31.85, 46.9283, 40.8236, 54.3333, 40.5583, 44.4667, 39.1167, 37.2486, 49.6167, 45.55, 44.385, 44.7833, 37.7167, 44.95, 43.75, 41.8333, 45.0572, 41.295, 40.8208, 46.9833, 40.3167, 41.9583, 44.5972, 44.8019, 48.3, 34.1394, 35.8842, 44.4989, 40.05, 41.3, 41.4667, 40.8844, 44.6, 43.8833, 31.7222, 40.25, 45.1333, 40.2994, 45.1333, 45.1333, 57.3833, 36.9167, 37.6, 37.6336, 36.995, 46.2, 46.2, 34.7, 32.4833, 34.7336, 35.5206, -32.35, 32.3953, 33.9286, 33.9306, 30.0969, 31.2353, 33.9833, 30.0689, 46.8333, 46.6667, 50.1333, 50.0333, 49.4467, 50.7458, 36.8125, 38.3, 49.4833, 33.4286, 55.2, 55.2, 45.4547, 38.4883, 38.2681, 40.1306, 39.6, 34.6417, 44.95, 62.4167, 36.9139, 37.4533, 40.6683, 43.4447, 39.1333, 40.6167, 55.38, 33.7, 44.8167, 49.4667, 48.8667, 45.1333, 66.2667, 19.83, 46.3333, 31.646, 44.1497, 44.15, 37.7836, 37.7647, 59.37, 49.3667, 53.625, 37.3475, 38.85, 40.0167, 40.6742, 42.4667, 42.4833, 42.8667, 42.8733, 38.8883, 52.217, 42.47, 41.2333, 44.5075, -24.3597, 46.5333, 46.1833, -36.3702, 50.8333, 44.5667, 36.1878, 35.4583, -26.9586, 49.5628, 31.233, 31.25, 44.1, 28.4575, 28.3667, 35.45, -36.6722, -36.6884, 17.45, 46.3, 66.9833, 34.567, 21.48, 39.933, 39.8, -19.8, 33.9, 51.3833, -22.217, 50.8989, 31.72, 38.0167, 53.05, 36.8, 36.75, 40.2, 46.7, 47.45, 47.783, 31.6333, -35.0042, 42.2794, 48.8411, -1.45, 34.6667, 4.73, 44.4394, -25.65, 46.8833, 15.85, 43.5136, 44.8167, 44.8, -77.9667, 35.5731, 39.0231, 44.2867, 54.1167, -34.3691, -28.43, 52.3667, 52.3833, 52.3667, -30.267, 47.9, 40.3533, 40.85, 45.863, 35.23, 39.2483, 47.3833, 39.8183, 44.15, 44.1667, 38.52, 42.2611, 41.1167, 44.6714, 44.9906, 45.1, 26.6928, 51.8833, 34.6892, 41.8814, -30.4519, 48.75, 48.7833, 48.7178, 48.7939, -62.183, 54.1333, 43.1333, 44.4833, 46.1644, 30.0317, 29.7956, 33.5417, 55.9167, 35.5297, -32.5, 52.318, 42.8667, 38.6, 54.233, 59.4, 50.917, 39.4575, 42.5039, 60.033, -19.9333, -19.833, -2.633, 31.1, 39.0303, 39.0333, 39.0333, 39.0333, 39.0167, 39.0167, 61.1833, 40.8333, 43.8333, 40.8292, 55.85, 73.33, 33.1772, 12.6, 47.5369, 47.5033, -36.5483, 18.1164, 27.5969, 32.6475, 47.5, -30.8081, 44.0569, -36.7395, -36.7533, 50.4144, 44.1183, 44.03, 32.13, 32.95, 32.08, -3.87, -3.9, 36.95, 2.95, 30.133, 32.3697, 35.3, 35.3, -4.383, 40.0503, 56.0281, 34.6489, 42.9167, 42.8914, 52.0019, 49.68, 31.9667, 39.15, 45.3167, 49.45, 31.8806, 39.5, 61.5633, 39.4667, 61.9358, 40.3444, 34.5675, 44.1, 36.3219, 38.0336, 41.2322, 32.6997, 44.0342, 37.8431, 46.2833, 42.1244, 41.0167, -29.15, 52.1333, 35.5044, 31.733, 41.317, 38.5908, 32.1167, 32.011, 37.0833, 37.0856, 37.1317, 41.3667, 41.3833, 40.5903, 39.9003, 10.37, 4.22, 46.75, 37.5733, 52.35, 52.3667, 49.433, 53.833, 63.93, 63.4, 57.12, 45.6667, 52.6206, 52.817, 60.2892, 60.3831, 60.4, 42.4061, 46.5869, 60.5333, 64.25, 49.3319, 24.1, 63.05, 60.1186, 62.8286, 37.8744, 39.6167, 52.6428, 70.8706, 49.883, 42.9333, 44.4536, 52.6325, 52.4639, 52.4056, 44.5761, 52.4683, 43.99, 32.2667, 42.3353, 46.9331, 35.3167, 34.4219, 51.8231, 40.6683, 37.9161, 49.9183, 46.9906, -35.6577, -34.2833, 38.55, 37.95, 39.15, 39.35, 48.9667, 46.05, 39.8, 39.8, 4.6, 47.75, 50.9006, 49.283, 41.0667, 45.0833, 56.15, 56.15, 47.25, 33.3667, 33.3953, 35.4017, 41.8975, 5.6, 36.6778, -26.467, 45.5, 40.2575, 60.785, -28.248, 44.2833, 44.3064, 40.6, 36.4583, 17.72, -23.18, 34.9167, 66.9161, 32.0, -35.9384, 43.9092, 47.2622, 44.5317, -32.1083, 42.5881, 34.125, 42.5842, 39.5475, 40.2, 37.7, 57.8, 53.0, 24.2, 23.283, 20.25, 23.25, 17.25, -1.183, -1.2, 52.0, 53.1, 46.588, 43.46, 48.3667, 48.4, -41.8739, 51.3, 45.9981, -32.0056, 35.281, 45.0403, 53.4, -18.6844, 50.9208, 49.8, 32.3744, 32.355, 50.6381, 40.23, 42.0833, 47.875, 47.7, 52.0667, 31.8333, 52.3167, 45.0733, 39.9356, 43.07, 40.7406, 40.7333, 46.8325, 34.2431, 34.2414, 41.7667, 29.4372, 37.5333, 30.3167, 44.8833, 45.1333, 51.6667, 37.2064, 39.3, 44.6333, 26.3283, 63.9944, 45.6167, 48.1969, 45.5556, 38.3, 34.4619, 44.5667, 41.0975, 37.2758, 44.6828, 37.0203, 38.2244, 31.2, 39.45, 38.5217, 43.8, 38.9253, 46.7833, 34.3789, 42.5414, 42.5844, 34.3194, 43.7072, 42.05, 60.8142, 38.0394, 36.235, 48.135, 37.75, 42.65, 47.0167, 45.2769, 36.475, 32.2442, 41.0469, 36.975, 51.1667, 36.8628, 36.8833, 45.9167, 36.2356, 36.2472, 45.8328, 53.8167, 53.8333, 53.8167, 52.0, 37.0769, 44.8078, 27.3, 52.68, 28.0, 46.8, 49.75, 43.3, 43.2981, 40.2, 44.1, 45.9, 42.4167, 36.5297, 49.0167, 37.0536, 45.8069, 45.7508, 45.7717, 44.1242, 18.683, -24.3789, 30.3931, 30.4167, 1.166, 48.6, 50.8833, -17.617, -29.8673, 42.1997, 42.1, 33.9114, 40.5333, 46.0833, 38.867, 50.5833, 3.2, 3.2, 10.28, 26.48, -35.9825, 65.5847, 42.6325, 52.5167, 38.4, 36.9833, 39.8667, -25.8975, -25.9003, -54.0, 44.7667, 47.85, 30.2625, 37.0, 32.898, 33.5333, 42.55, 33.5656, 33.4667, 45.3247, 13.8, 48.733, 53.0903, 55.417, 50.4333, 50.5317, 56.2, 25.23, 25.233, 31.4333, 31.4475, 31.4269, 48.6167, 49.8756, 47.3, 58.5167, 19.984, 42.83, 27.5842, 50.0, 45.5833, 34.2169, 37.3711, -32.9, 34.85, 46.7708, 46.8, 46.8339, 46.7717, 45.5286, 38.5636, 39.7667, 63.03, 63.05, 11.87, 11.895, 50.9667, 51.0333, 47.6833, 47.15, 2.08, 49.95, 38.4, 41.05, 41.5894, 33.4594, 39.6167, 1.433, 35.9833, 46.0, 37.33, 37.25, 59.6415, 58.27, 44.0667, 43.72, 74.5167, 55.7, 64.04, 61.6595, 58.52, 68.4323, 60.0508, 61.85, 64.4808, -24.4303, -24.4214, 31.4833, 43.5947, 47.6714, 43.0, 43.1969, 48.0128, 53.77, 36.0931, 37.25, 37.2017, 44.1, 37.0833, 40.2692, 33.355, 33.3631, 44.3833, 43.3167, 38.4167, 38.4333, 36.8047, 36.8, 36.7542, 44.5, 38.5428, 38.5547, 38.9792, 49.85, 30.8489, 37.95, 48.5667, 38.6833, 39.0292, 33.0867, 47.4136, 37.8617, 43.6561, 35.6072, 46.4167, -11.1538, 44.3003, 33.4783, 35.1, 38.7075, 36.7944, 43.5233, 54.367, 40.3, 43.6231, 50.25, 65.05, 38.0333, 48.9775, 39.4989, 41.5536, 44.2906, 49.6167, 40.45, 34.8544, 46.183, 31.2239, 34.5697, 39.8167, 45.6333, 37.4786, 35.1183, 60.0, 45.75, 30.1061, 51.4167, 51.45, 37.0997, 37.6131, 36.9, 57.22, 50.0367, 45.4167, 35.6819, 47.35, 47.35, 42.95, 46.2, 41.8242, 45.6167, 42.9544, 42.6333, 41.1667, 41.1667, 52.417, -29.1, 59.29, 59.22, 45.1667, 49.5667, 45.0908, 43.9833, 44.7833, 40.7597, 36.6669, 47.4694, 42.3842, 40.4864, 39.1742, 39.1333, 40.5167, 41.0733, 40.2636, 30.45, 37.5928, 36.1472, 30.5872, 33.5833, 37.2556, 12.0, 37.2667, 37.2958, 37.6411, 35.25, 40.5017, 39.2775, 44.67, 41.0547, 38.5208, 42.2122, 38.3833, 38.6, 40.3803, 38.4667, 44.25, 35.1161, 37.7978, 34.8667, 41.2694, 45.5075, 34.8833, 34.6108, 52.1333, 52.1333, 52.15, 43.6333, 37.2825, 40.7833, 40.8142, 40.7333, 48.8719, 43.7167, 33.6131, 35.9239, 35.9667, 35.9403, 33.6186, 55.7031, 42.4333, 42.2208, 7.95, 45.8472, 44.5933, 44.6056, 52.65, 47.4333, -18.53, 2.817, 2.833, 50.95, 44.755, 11.16, 11.67, 53.217, 48.067, 56.9667, 39.3886, 17.43, 38.111, 16.98, 51.8392, 51.4803, 57.85, 38.3208, 65.8197, 38.2119, 35.8333, 55.1, 67.2831, 67.2669, 52.1167, 67.267, 37.03, -29.05, 29.7986, 39.65, 30.7808, 40.5981, 39.93, 39.2, 51.5333, 50.7808, 54.9, -36.8056, 51.17, 52.38, -6.7, -6.5, 4.58, 4.701, 56.233, 11.13, 24.85, 58.3831, 49.933, 43.7667, 37.4, 7.167, 46.3, 48.9458, 50.2, 43.7383, 43.5667, 36.7236, 43.5253, 49.2333, 49.2167, 53.4, 37.493, 10.93, 53.865, 12.38, 49.217, 65.68, 56.933, 11.583, 45.667, 42.1225, 37.6167, -36.2, 35.2622, 57.66, 55.49, -28.0336, 41.45, 44.5, 57.9, 20.0, 55.67, 56.9, 56.1, 52.83, 52.03, 53.85, 57.915, 54.83, 54.0, 40.733, 66.15, 38.7, 46.47, -37.0016, -36.9113, 18.9, 19.117, 54.7167, -19.68, -28.66, -13.267, -9.1, 40.0167, 44.375, 40.7667, -64.783, 48.05, 48.6667, 16.95, 39.8833, 8.05, 43.2278, -36.1333, 43.0778, 44.6833, 33.6403, 39.1025, 39.58, 30.7833, 53.5, 53.5, 32.6667, 33.8472, 50.7333, 50.7333, 48.6928, 48.6756, 49.3833, 39.0636, 45.6361, 39.6567, 50.7067, 50.733, 45.4, 7.53, 46.65, 30.2528, 36.2167, 42.0417, 34.6344, 37.3578, 35.0931, 35.15, 35.15, 35.1428, 36.2114, 39.5167, 40.8917, 38.9708, 38.0303, 43.4361, 38.9875, 53.2281, 48.1333, -34.4382, -36.116, 29.3331, 57.2678, -27.7556, 29.1853, 61.6, -25.15, 57.76, -16.4333, -16.45, 44.83, -37.85, 44.2667, 42.1333, 42.2128, 55.3333, 21.333, 36.067, 35.6364, 35.65, 35.695, 58.29, 18.4981, 54.267, 68.7715, 53.5803, 60.48, 60.4292, 55.063, 38.5, 11.73, 11.75, 33.2558, 33.2833, -16.0757, 62.76, 50.333, 50.4, 11.28, 44.5856, 43.1561, 51.17, 44.4389, 23.9, 33.8044, 6.48, 6.5, 5.27, 52.1, 42.1667, 38.5458, 49.8667, 42.35, 42.3606, 49.4833, 34.0211, 40.535, 42.667, -27.4, 47.7667, -42.3883, 46.683, 47.68, 48.8217, -17.5333, 49.15, 7.68, 5.967, 6.5, 36.5, 42.8333, 11.417, 36.383, 37.905, 39.9919, 46.2314, 40.0353, 35.98, 44.7219, 46.5667, 42.7158, -22.9117, 55.417, 50.733, 48.9947, 40.8547, 6.93, 47.0667, 45.62, -30.0362, -30.0917, 44.8167, 50.78, 33.9431, 10.48, 17.53, 35.341, 35.333, 48.7994, 51.9833, 45.75, -20.0151, -20.0167, 55.5408, 32.325, 33.5511, 35.1714, 44.8558, 39.3447, 37.2503, 36.9647, 41.3831, 33.3667, 46.1825, 43.9167, 39.4539, 45.3667, -34.4869, -34.5, 53.2833, 49.7333, 49.8667, 51.0833, 51.0833, 33.883, 42.1333, 45.2833, 38.5, 31.3944, 33.08, 39.2167, 44.9414, 45.2667, 36.5833, 45.1672, 45.2167, 43.4053, 35.5303, 39.8, 45.8167, 45.675, 45.7881, 45.6622, 41.87, 39.9, 42.3497, 29.3167, 29.61, 45.8833, 27.4467, 27.4833, 53.8134, 37.495, 41.8975, 41.95, 44.0333, 41.8031, 44.0333, 35.8644, -14.9408, 45.0553, 31.1444, 47.95, 61.4667, 57.0108, -1.0833, 41.8, 51.817, 23.98, -35.4253, -35.4489, 46.3433, 46.3667, 46.4047, 46.4006, 50.7833, 62.22, 43.7, 43.6667, 52.405, 46.8833, 35.1889, 45.8161, 37.9561, 39.6667, 49.9167, 49.8667, 61.6167, -30.47, 38.6167, 37.0167, 36.5258, 43.1333, 43.1333, 31.5833, 32.5158, 39.5656, -15.783, -15.867, 34.8028, 45.6603, 61.9067, 48.1667, 50.783, 56.28, 50.2, 42.85, 60.64, 51.733, 52.319, 1.11, 35.62, 47.285, 51.883, 32.9544, 38.2611, 41.6853, 29.05, 29.1417, 36.7444, -4.25, 37.2889, 32.75, 39.4861, 36.4119, 56.26, 63.46, 48.5156, 59.22, 52.43, 44.9878, 47.5, 48.85, 46.3797, 53.0464, 53.533, 47.5689, 53.5, 37.7092, 33.0097, 30.1592, 47.0, 44.9667, 35.9903, 44.3231, 45.5, 48.45, 52.1167, 53.1667, 53.0833, 35.2283, -1.68, 63.3333, -29.9614, 41.9375, 48.1, 39.3686, 31.1414, 31.145, 31.0583, 6.53, -83.89, -25.655, 40.9461, 33.2064, 38.2575, 38.7167, 41.2, 41.6681, 41.5639, 38.2719, 34.9786, 38.3167, 41.1583, 41.12, 45.3261, 39.4667, -33.9486, -33.9575, 38.75, 41.9539, 43.5525, 44.4, 46.4283, 51.5, 44.07, 54.1, -41.0025, 44.2833, -24.8353, 40.635, 41.4833, 41.6164, 41.5239, -36.7313, 27.65, 40.6, 39.9436, 39.1911, -37.9252, 27.0436, 52.9833, 36.2047, 36.2147, 44.1614, 51.4156, 47.2472, 38.3083, 40.6331, 34.8822, 37.9442, -27.4808, -27.4178, -27.3917, -27.4778, 50.8167, 36.6, 41.6667, 44.2, 36.4731, 51.467, 35.8292, 49.5833, 17.52, 43.1017, 45.7908, 44.9936, 46.72, 53.33, 46.2, 31.3167, 45.4442, 46.1, 50.3667, 50.3833, 50.25, 60.4833, 41.6111, -29.0167, 50.9833, 57.8833, 51.8, 49.6167, 43.2, 42.0478, 44.6, 44.6333, 44.6, 47.2875, 42.6333, 50.1, 59.65, 34.0497, 41.4083, 34.1333, 41.4333, 34.05, -32.0012, -31.9759, -31.9333, -31.8803, -14.4, 49.7356, 45.1833, 45.4833, 65.6, 65.4567, 31.35, 32.0408, -42.1419, 40.8369, 45.7231, 39.765, 43.0519, -35.8, 33.5214, 31.5447, 42.0464, 44.3253, 42.03, -30.25, 32.375, 41.3667, 37.0678, 37.1275, 50.55, 50.5833, 28.6164, 28.4736, 50.5667, 50.55, 38.7383, 38.7667, 50.6333, -32.3725, 39.4239, 41.1667, 41.15, 41.15, -17.9475, -17.95, 43.8094, 50.8292, 60.1, 52.3167, 33.1908, 48.5594, 48.5617, 42.2872, 44.8364, 48.0333, 38.9544, 25.9008, 25.9156, 35.5894, 39.0, 40.8008, 45.5958, 43.5611, 44.7336, 31.7383, 40.5833, 48.5353, 43.55, 46.3, 49.6314, 39.6097, 53.35, 45.95, 46.5378, 39.0833, 45.05, 42.8819, 4.944, -18.637, 46.3003, 31.1681, 39.4247, 30.8078, 31.25, 31.1522, 43.9, 44.2844, 30.3919, -27.1, 50.9, 41.4619, 37.7064, 37.6411, 37.6417, 37.6333, 39.2933, 15.2667, -1.039, 29.767, 37.5247, 48.8167, 48.85, 50.1739, 47.9631, 53.3567, 41.2469, 33.3761, 38.1872, 43.0361, 38.9803, 37.3417, 40.6158, 42.1197, 45.5833, 47.1694, 39.3, 41.75, 36.9306, 40.5003, 39.1333, 37.9033, 37.8233, 46.5167, 46.4333, 44.5167, 40.8125, 47.5108, 47.433, 50.8281, 44.8, 31.4106, -6.293, 19.21, 32.3178, 38.8247, -34.583, 41.15, 42.8833, 42.9486, 44.3547, 45.5161, 36.8314, 37.6667, 45.1969, 36.8003, 44.3667, 45.6044, 44.5075, 40.5819, 58.05, 44.3814, 51.7, 55.8333, 55.8333, 40.2167, 50.55, -21.017, -31.37, -25.75, 42.1164, 50.75, 42.33, 48.767, 54.583, 53.617, 41.6833, 39.717, 42.6, 48.6753, 42.6006, 64.4014, 69.62, 64.4167, -6.6, 58.483, -3.32, -2.5, 3.25, -1.333, -20.017, -20.15, -24.5333, 48.8, 46.1, -28.4967, 37.53, 35.1411, 55.1333, 41.6764, -43.0903, 42.3653, 40.4808, 50.9167, 42.08, -13.6714, 46.8667, 46.8167, -33.3567, -33.3267, 48.6833, -24.8885, -24.8667, -30.1711, -37.7163, 36.7736, 37.5139, 30.9594, 49.3833, 49.3833, 24.233, 9.5, 29.3414, 34.2006, 34.1867, -19.5775, 37.7, 65.56, 42.4833, 47.6167, 47.6167, 47.6167, -31.0, 44.7742, 44.7833, 44.7853, 40.3833, 37.8, 24.95, 42.3558, 51.0317, 39.5, 47.0, 37.0925, 44.0333, -17.7483, -17.7425, 47.5333, 45.6, 32.5067, 42.5333, 42.5189, 42.5417, 37.5833, 38.1944, 39.3061, 39.3333, 40.0833, 41.7944, 42.6508, 43.35, 44.4833, 40.7747, 36.0467, 39.2447, 36.0603, 44.4683, 40.7833, 43.3, 43.3333, 49.2667, 49.2833, 30.7586, 43.4667, 30.7406, 40.8803, 33.8936, -41.0661, 35.9253, 34.2103, 42.7772, 54.2333, 54.25, 54.3833, 43.595, 36.065, 43.5833, 40.0833, 47.0, 43.2192, 45.2333, 48.1667, 49.25, -34.9997, 43.3656, 43.7, 43.8397, 39.8833, 35.2667, 28.9667, 39.8775, 40.183, 39.6467, 43.0675, 53.05, 61.3667, 41.7769, 45.5167, 35.1, 45.5397, 54.0, 53.9333, 28.945, 28.95, 35.1867, 41.0103, 28.6664, -42.7097, 35.7694, 59.8833, -33.655, -33.6858, -33.6611, -24.0222, 38.683, 2.78, 55.8389, -28.77, 1.833, 38.3, 40.8667, -42.2811, 47.5833, 39.05, 40.8414, 38.2611, 35.5914, 38.9, 42.9131, 32.7397, 46.0544, 47.7947, 45.9647, 53.45, 57.4, 35.4028, 53.2567, 42.82, 45.1331, 41.75, 52.817, 34.8494, 39.7403, 58.6667, 58.6656, 38.467, 36.5803, 36.5667, -80.0, -80.0167, 32.2033, 44.0908, 68.75, -28.6399, -28.6388, 32.6694, 52.367, 75.533, -26.183, 32.8964, 15.467, -5.55, 48.0864, 47.8667, 39.6553, 43.5, 34.9817, 39.35, 19.85, 21.52, 18.6, -22.53, -46.83, 21.867, -53.78, 22.87, -35.9383, -35.9371, 19.6333, 32.6667, -8.517, 37.9833, 39.5064, -16.05, 39.4719, 39.4831, 50.9167, 25.3903, 34.5822, 32.6583, 33.7411, 26.33, 25.6, 33.8083, 44.2656, 48.2167, 49.7167, 36.5008, 40.2686, 52.3333, 23.26, 35.1072, 35.1167, -14.05, 8.48, 40.8, 39.2331, 18.2333, 38.5669, 38.5714, 14.8, 32.9736, 22.52, 22.31, -16.6, -16.8736, 31.2667, -16.9333, 39.2047, 42.3167, 30.1, 30.8697, 37.0422, 42.3167, 39.1667, 30.1333, 30.08, 30.05, -7.15, 50.43, 4.97, 8.925, 40.9258, 40.8653, 13.42, 44.2, 38.2769, 37.5531, 19.27, 12.07, 22.533, 22.65, -21.91, 56.1667, 43.6667, 49.1667, 39.7333, 39.8167, 40.8764, 43.0833, 43.6308, 33.0944, 32.6881, 51.0167, 51.1167, 51.1167, 51.1, 37.5333, 33.8586, 34.4833, 34.0906, 37.5319, 32.5133, 36.1092, 37.6128, 38.6278, 35.8833, 42.6314, 33.3064, -34.6345, 38.5961, 3.55, 3.4, 50.15, 41.3111, 41.3075, 39.8997, 36.8333, 41.3, 41.2519, 18.83, 41.7667, 41.8275, 28.4658, 55.25, 40.6833, 36.1414, 53.2833, 39.6, -26.8017, 47.25, 45.8833, 42.7778, -31.467, 38.7, 21.24, 21.4, 33.45, -20.65, 36.0286, 34.2167, 43.2667, -29.05, -27.7072, 44.05, 50.2167, 40.0111, 40.2847, 42.3833, 44.5733, 45.5506, 69.1, 69.1, 39.8667, 43.3333, 40.0833, 38.5667, 36.0519, 39.9167, 43.3306, 38.2167, 33.59, 32.0333, 32.0289, 34.2428, -34.0391, 36.0661, 48.033, 53.2833, 45.53, 29.75, 30.8458, 34.9039, 49.4667, 35.8833, 49.05, 49.15, 49.15, 32.7214, 4.47, -2.25, 31.1903, 31.2142, 52.4167, 7.928, -20.05, -19.9225, 35.5167, -42.6867, 36.4833, 46.0958, 44.0667, 37.3167, -32.7, 48.0, 48.0, -34.0833, 61.1639, 45.4167, -52.55, 50.0167, 49.95, 50.0667, 50.0167, 19.85, -38.2331, 43.8719, -23.0, -7.217, -7.13, 32.6233, 11.9, 41.567, -21.75, -22.75, -27.38, -7.0, 37.0158, -29.68, 41.924, -20.45, 39.0, -24.05, 54.1333, 43.85, 39.45, 43.78, 48.0181, 34.3617, 29.9833, 35.3, 42.3458, 45.5489, 45.5625, 39.2167, 21.5783, 32.8236, 37.8, 34.63, 48.61, 38.2486, 33.3, 37.0375, 31.0667, 38.8167, 45.8333, 29.6703, 53.0333, 53.0333, 52.95, 68.4333, 39.05, 39.0483, 40.6944, 35.9092, 40.138, 50.15, 26.8639, 42.8453, -2.55, -13.47, 43.9167, 24.53, -15.667, -35.3049, -35.2667, -35.3, 42.9667, 44.7183, 41.4342, 21.033, 18.18, 30.1383, 38.1667, 41.1, 65.9333, 35.5453, 52.4, 48.4878, 42.3833, 31.5589, -13.12, 32.8042, 35.9494, 33.9153, 41.0167, 38.333, 40.6, 37.8994, 61.0183, 44.3489, 49.7167, 46.4847, -29.946, 40.7436, 38.46, 18.3792, -33.572, 45.8833, -33.9057, 35.3, 18.02, 36.0617, 41.6517, 43.3056, 41.6667, 35.5167, 32.6714, 44.5772, -2.7667, 40.1433, 40.8, 63.3953, 34.9806, 44.7167, 38.46, 38.1678, 44.4, 44.2297, 45.9167, 29.8706, 40.1706, 36.1533, 46.6333, 46.65, 58.55, 40.883, 25.28, 22.667, -20.51, -33.9, -34.833, 48.7833, -77.22, 42.8333, -35.7549, -35.7529, -43.4886, -43.4892, 40.567, -23.4833, 37.2908, -19.1833, 41.975, -32.833, 56.0, -36.0667, -11.3167, 64.2333, 64.2333, 64.2333, 64.2333, 66.65, 66.5833, -14.9672, 25.6719, 37.3167, 37.2253, -40.6828, 54.7667, 35.2325, 36.9333, -31.633, 60.2333, 68.4667, 61.0833, -36.9655, 59.9833, 73.65, 28.4833, 73.333, 57.1333, 49.7, -34.3728, -16.3961, 68.8667, 68.8667, 38.9536, 43.95, 64.95, -27.0314, 50.0, -33.5372, -38.4306, -38.4319, 58.6333, 58.65, -38.0573, -38.8556, 40.017, 70.1667, 69.0333, -51.68, -73.517, 46.6667, 61.7667, 61.7833, -76.717, 43.3833, 54.6, -38.4931, 50.7833, 50.8, -42.1986, 35.8, 58.2, -34.18, 59.8, -34.2, 51.9333, 51.9333, -28.5, -33.93, -33.965, 50.017, 44.1333, 50.1667, -35.8426, 58.63, 68.93, -18.71, 33.5311, -8.081, -34.85, -5.206, -26.933, -4.577, -19.543, 15.2136, 38.2917, 11.58, 48.1, 37.7947, 21.85, 39.93, 39.1, 39.75, 39.5, 46.8667, 40.6, 33.3433, 26.5333, -6.787, 36.7386, 36.6667, 36.7833, 19.78, 42.517, 43.083, 49.0833, 49.1167, 49.0833, 43.0, 48.4167, 48.85, 49.51, 46.3667, -8.378, 49.2333, 49.25, 41.367, 46.7667, 48.3667, 10.33, 49.0167, 12.41, 47.0833, -35.65, -35.65, 1.833, 10.5, -9.283, 38.9, 49.2667, 45.42, -25.8, -19.8, -17.733, 49.8667, 49.9, 37.7308, 37.7797, -17.53, 43.2142, -33.6167, 60.1667, 41.367, 51.4878, 51.4, 40.5, 49.1333, 49.2, 45.8608, -18.2553, 33.8161, 13.15, 52.7167, 47.3333, 46.8706, 65.1892, 45.7667, -26.33, 45.15, 39.2883, 40.915, 40.2, 54.933, 40.2258, 45.3028, 32.3478, 32.1783, 32.3336, 33.1281, 50.433, 52.8, 34.0667, 38.6, 49.6333, 46.7447, 38.6308, 62.1, 62.1167, 49.4333, 49.4, 49.5, 41.4333, 39.9614, 41.4725, 36.4806, 49.5, 38.0733, -21.93, -29.6889, -30.97, -24.8878, -24.9, 48.9, -25.7964, 35.1756, 55.7, 53.2333, 35.2833, -7.333, -26.07, 34.6619, 50.45, 43.4839, 39.1469, 41.0844, 40.0686, 38.4594, 49.173, 29.8667, -34.838, -36.773, 47.4494, 47.5089, 9.417, 33.6308, 35.0964, 28.4894, 42.065, 33.5972, 39.3594, 38.6583, 44.9667, 31.445, 37.1806, 37.517, 46.425, 39.1253, 45.8678, 10.5, 29.7908, 34.2042, 34.1231, 47.7919, 32.1614, 32.7506, 36.2456, 36.851, 37.1772, 49.05, 53.7167, 48.2333, 40.8847, 36.1261, 43.6167, 30.1981, 49.0, 35.7192, 33.62, 23.167, -7.68, 32.8878, 32.9947, 32.3222, 37.65, 42.2989, 44.5228, 37.6667, 46.9956, 47.2194, 45.6778, 40.2667, 43.5833, 43.5833, 44.3914, 16.31, 48.7, 53.302, -66.283, 39.2975, 36.4108, 44.9711, 33.445, 40.0017, -28.97, 43.7447, 16.28, -33.0, -28.8755, -28.8775, 5.62, 42.85, 42.7131, 42.7333, 42.8975, 42.8614, 46.8769, 59.2833, -31.9963, 38.0211, 41.9, 36.6728, 43.5861, 47.3847, 47.3778, 42.0633, -34.67, 44.8, 39.95, 39.9892, 44.435, 39.833, -37.583, -37.5909, 42.5503, 49.3333, 49.3, 49.35, -37.1, -37.0809, 39.88, 44.7269, 37.3833, 39.2078, 33.9825, 51.2667, 39.4106, 46.2833, 52.5333, 46.3075, 37.75, 38.6514, 29.1344, -24.783, 36.3856, 14.9, 31.5022, -18.18, 32.4178, 35.6375, 18.28, -28.596, -28.5, -28.48, -21.133, 37.47, 44.3667, -25.596, 28.3392, 12.48, 37.3833, 41.55, 11.78, 29.8667, 37.8044, -28.98, 52.1833, 18.3453, 37.4681, 37.4, 41.9, 41.92, 39.6453, 42.2333, 38.9036, 48.3667, 48.5, 48.8628, 43.3847, 33.8333, 42.1597, 38.1228, 39.5067, -4.86, -29.16, -4.52, -7.07, 4.8, 18.1189, 9.183, 25.95, 29.2, 18.5333, 46.93, -5.65, 10.3, 44.6667, 37.6667, 39.4, 41.1417, 56.3333, 45.3222, -29.533, 38.9, 38.9028, 34.0589, 55.0167, 41.5306, 38.7978, 43.5958, 37.7083, 37.6564, 37.7086, 37.6833, 37.6667, 30.0164, 34.2183, 48.9797, 36.7878, 36.55, 34.9833, 29.1333, 47.4144, 40.3008, 45.2117, 41.5833, 39.7569, 37.7158, 41.8833, 42.05, 41.5217, 35.6667, 37.0347, 48.1333, -32.1297, -32.1267, 15.8, 22.71, 50.8667, 36.5408, 46.55, 40.5694, 51.2, 50.95, 46.2, 47.85, 52.5833, 35.8297, 51.433, 39.1, 41.3136, -33.8959, 31.8075, 40.2914, 40.8839, 31.2581, 40.7325, 35.8317, 43.0431, 39.7833, 35.7553, 47.0644, 37.7067, 36.1, 34.6089, 34.6008, 39.7242, 46.72, 43.3, 55.217, 65.5667, -13.3275, 41.1222, 17.1833, 29.105, 39.3833, 51.5, 34.15, 32.95, 39.05, 44.4, 46.3833, 32.8661, 34.1167, 40.85, -15.7426, -62.42, -62.183, -18.7569, -38.3646, 59.25, -29.883, -32.95, 54.167, 51.4, 48.27, 56.5, 36.7408, -27.65, -10.92, 18.1547, 24.93, 49.4, 49.777, 44.224, 48.95, 38.3, -32.7886, -32.8093, -32.8272, 52.42, 35.89, 35.8919, -26.9, 37.0, 36.9, 49.3833, 49.4667, 23.75, 36.97, 41.08, 41.4, -6.2, -6.2, 36.0286, -32.98, 42.8083, 42.8375, 25.2833, 53.55, 62.283, 47.5167, 44.6333, 15.8, 34.65, 34.5, 33.617, 66.5906, 40.85, 40.9, 39.8447, 46.05, 44.5036, 44.5228, 44.5042, 40.6653, 36.9178, 30.92, 43.8, 43.735, 43.7667, 42.2031, 39.9353, -30.367, 36.95, -27.296, 49.2833, 40.0528, 40.0397, 50.2833, 46.5192, 19.36, 67.5111, 33.3, 35.7061, 41.93, 35.6528, 33.2058, 41.35, 43.9, 29.05, 34.68, 40.367, 38.733, 44.25, 28.2, 28.233, 25.85, 9.48, 35.17, 37.933, 44.8497, 35.5, 41.3978, 47.6167, 52.3, -13.1672, 35.6831, 12.6, 37.6703, 37.6769, 55.283, 41.55, -3.73, 50.2, 49.8167, 49.7833, 20.3, 29.52, 19.98, -27.117, 35.9086, 35.9333, 19.5, 37.1994, 47.8333, 47.8333, 47.8167, 47.65, 50.4667, 64.42, 48.133, 38.9644, 27.5892, 41.0939, 56.9, -17.58, -17.58, 23.13, 41.5833, 39.0831, 41.0164, 50.467, 46.9, 46.8667, 34.0039, 36.9272, 39.4761, 48.3833, 41.6814, 38.35, 32.78, 32.8986, 32.85, 38.3139, 38.3794, 38.65, 43.5833, 43.0603, 40.74, -26.4139, -26.4025, 45.3172, 47.2833, 37.9589, 42.5503, 41.0347, 38.0333, 38.0328, 37.9975, 38.1386, 46.2333, 46.2833, 46.2833, 46.25, 28.9275, 18.35, 18.3331, 18.3333, 37.0522, 35.2236, 38.4667, -36.4335, 35.2333, 47.9833, 47.9833, -36.2847, -36.3, 43.0597, 45.6833, -20.0464, -20.0781, 48.4617, 41.6, 50.8167, 36.7775, 44.8, 44.8131, 44.75, 46.05, 65.0167, 48.067, 46.85, 46.4831, 46.9667, 32.3167, 36.8225, 41.6569, 42.3667, 42.4, 47.05, 46.3344, 42.4, 42.3833, 46.35, 46.3414, -43.95, 41.6875, 50.3333, 42.3833, 40.6, 31.4714, 39.8167, 44.4, 34.7583, 34.77, 45.4667, 34.4225, 35.0311, 35.0667, 34.6403, 18.28, 47.0511, 48.1, 42.1744, 44.8786, 29.3092, 36.3211, 50.067, 45.6528, 37.15, 52.917, 34.1847, 39.1814, 39.2203, 35.432, 25.625, 47.8344, 55.3, 42.3264, 43.9833, 45.5167, 44.0108, 38.7333, 48.9333, 50.8, 43.2292, 43.2167, 45.5833, 65.0528, 45.9, 47.4833, 31.0167, 40.967, 30.667, 37.4, 33.75, 40.7394, 25.8, 35.3333, -31.333, 40.7667, 40.8111, 33.82, 34.7319, 38.115, 49.7, 49.65, 60.4, 37.2833, 63.03, 48.3667, 42.583, 52.78, 52.533, 42.7572, 36.7481, 36.7672, 38.25, 35.6197, 25.25, 25.25, 34.5964, 39.6261, 45.4167, 34.9, 42.8239, 37.9747, 68.75, 57.65, 38.4167, 48.95, 49.0, 35.1108, 40.3033, 48.5153, 42.85, 63.3333, 34.7289, 63.35, 51.0333, 39.2167, 45.1, 45.0167, 34.6847, 42.3, 42.3333, 46.6333, 46.65, 46.65, 18.505, 55.6833, 34.54, 50.4667, 39.1547, 48.2733, 39.65, 41.1519, 35.5461, 45.0167, 41.1833, 38.8219, 41.1522, 25.517, 18.783, 19.883, 16.51, 35.6, 49.9167, 49.8167, 49.7667, 41.77, 42.1397, 41.7861, 41.7372, 41.8558, 41.995, 42.1208, 41.7833, 42.4167, 41.8833, 16.58, 35.983, 27.1, 27.0833, 61.8, 34.9203, 34.5019, 35.0333, 35.0322, 35.0489, 64.0917, 64.06, 42.2, 48.4167, 48.4167, 39.7119, 39.6911, 57.7294, 47.9967, 47.883, 18.52, 50.5728, 42.3, 56.3, 28.633, 34.3317, 33.285, -25.2361, 34.4386, 34.4333, 34.4272, 34.3494, -15.683, 36.7833, -36.5833, 39.3333, 39.8667, 39.775, 39.8233, 39.7683, 39.3744, 39.3858, 39.8, 49.1667, 49.1667, 49.0833, 49.1667, 43.9772, 42.7036, 42.5833, 42.5769, 38.7983, 17.55, 44.0328, 15.6, 42.3, 38.8, -19.117, 12.6333, 8.539, 40.8667, 35.6875, 4.9833, 37.9333, 37.9333, 47.843, 27.4, 35.2, 36.15, 48.5883, 48.1731, 51.25, 51.2667, 33.9753, 34.7569, 38.3331, -13.55, -20.2, 30.7806, 46.1833, 41.0517, 32.0, 32.0061, 42.2, 62.1333, -0.38, 47.0167, 29.2703, 29.2667, 62.5653, 52.0831, 61.5222, 61.5319, 14.233, 35.07, 22.35, 39.8, 51.0887, 43.7667, -39.2, 48.083, 53.5, 46.45, 26.733, 53.7, 28.4675, 70.6167, 14.7333, 42.65, 13.3167, -16.85, 36.62, 42.06, 41.783, 35.57, 36.63, 29.583, 29.517, 35.82, 13.367, 48.983, 51.283, 45.517, 49.017, 35.733, -37.1, 47.8206, 37.6167, -43.489, 35.7047, 37.1278, 17.7028, 17.7469, 1.9833, -10.45, 34.8083, 36.3689, 41.7594, 32.64, 62.8256, 10.483, 64.23, 37.9, 41.783, 34.83, 36.22, -14.78, 46.86, 49.068, 58.7333, 58.7333, 58.7333, 53.55, 53.5667, 53.55, 58.7833, 58.7333, 41.3975, 53.833, 48.65, 49.1333, 48.7833, 48.5167, 49.8333, 48.75, 45.8667, 49.6833, 46.8667, 46.65, 7.45, 25.017, 49.083, 34.0375, 39.6, 41.85, 14.9, 18.1833, 45.1, 58.0833, 38.65, 17.45, 44.167, -7.733, -7.7, 51.633, 37.8131, 38.4442, 36.4661, 37.1408, 42.95, 47.63, 18.1, 39.4203, 39.15, 39.1333, 39.1167, 39.1169, 39.1033, 39.0431, 39.1, 30.4, 41.2333, 43.3208, 16.7, -11.083, -38.95, 47.4122, 38.1706, 39.6106, 47.5167, 33.9, 65.4939, -6.75, 44.067, 38.9667, 31.0833, 40.8397, 43.7186, 20.6817, 8.122, 24.95, 28.2, -25.533, 28.52, 19.717, 27.13, 27.367, 27.393, 38.9892, 38.9892, 23.733, 37.3, 57.767, 45.0833, 48.2667, 46.1694, 32.8203, 32.8517, -32.2, 34.1369, 34.1, 36.3225, 53.7167, 41.0489, 41.8833, 44.9167, 34.68, 34.9325, 48.3667, 50.0, 50.0333, 50.0167, -33.8226, -33.8364, 40.7244, 39.8, 42.72, 41.1922, 15.1833, 44.8817, 34.6158, 50.1833, 47.0111, 38.4167, 46.4992, 39.2683, 39.2956, 34.1864, 41.7239, 43.5167, 46.3833, 35.4833, 36.6214, 39.4333, 35.4564, 33.6164, 39.2553, 35.5328, 39.3731, 36.4975, 36.6239, 33.6189, 36.5472, 33.6631, 44.9367, 44.9, 33.8767, 48.15, 44.3742, 46.1081, 35.11, 51.7917, 32.1678, 49.1333, 49.15, 40.1167, 31.8708, 34.5833, 39.65, 36.4594, 34.8878, 36.3333, 46.6108, 46.6167, 36.4486, 37.9667, 35.6408, 39.3739, 40.5208, 40.5033, 34.3833, 48.9672, 56.3333, 56.3167, 41.0167, 41.0192, 41.0467, 38.9239, 38.9833, 44.5781, 27.9667, 47.5711, 51.65, 51.9833, 64.05, 51.5167, 37.1319, 39.65, 39.8667, 39.8833, 34.2711, 44.7592, 45.2, 39.1, 64.2453, 39.6667, 32.3139, 44.6167, 34.6719, 34.6603, 38.4933, 41.6961, 37.9167, 41.7333, 28.4558, 45.8, -22.8239, 50.05, -33.7011, 30.3636, 33.7367, 34.5858, 36.3, 41.4131, 36.3167, 41.5, 33.7942, 36.2903, 48.3167, 41.5175, 35.2203, -33.7081, 26.7422, 26.7361, 47.1889, 32.9833, 32.8339, 33.0561, 39.45, 39.3672, 35.0028, 34.9319, 35.5014, 38.395, 40.6667, 42.4, 42.5492, 44.6228, 41.7947, 40.1375, 35.0247, 34.9667, 30.8178, 51.15, 30.8544, 38.9408, 69.5833, 35.21, 37.1453, -20.6717, -20.6664, -20.7089, 54.1833, 45.3833, 52.8456, 46.7047, 32.9544, 32.9667, -30.0903, 35.2333, 44.4, 38.8, 38.8167, 45.205, 49.1167, 45.0167, 40.8797, 34.4289, 34.5989, 34.3833, 49.7167, 58.3667, 46.8, 46.7831, -37.3049, 70.4833, 70.4833, 70.4833, 38.05, 34.55, 36.1356, 36.1333, 35.3683, 53.1833, 40.9139, 40.9383, 39.8958, 55.4, 50.6, -4.083, 39.9667, 39.9847, 45.15, 40.0167, 18.133, 45.0833, 15.3, -31.5389, -31.484, -31.5, 37.5, -11.03, 42.6833, 42.6667, 43.95, 43.9667, 50.283, -17.42, 38.4461, 38.15, 32.0589, 31.95, 35.6414, 49.0667, 51.2, 51.2333, -16.09, 45.95, 28.2333, 1.0, -10.0511, -12.183, 9.3667, -3.833, 44.3667, 30.3875, 50.1333, 44.835, 13.13, 44.5147, 44.4139, 44.3367, -13.7606, -13.7642, -13.9447, 3.37, 47.6822, 47.7667, 42.55, 37.0911, 37.0614, 56.0, -30.3107, 42.2792, 45.67, 47.0567, 39.8717, 34.9225, 39.8333, 11.033, 40.2, 40.15, 36.28, -38.3933, -38.2333, -38.3427, 39.4, 39.3925, 41.55, 42.6472, 42.6631, 30.3106, 30.5333, -37.7239, 35.0833, 37.2733, 44.7, 41.9622, 44.6333, 55.2208, 53.6167, 54.4167, 43.2667, 42.5333, 44.35, 40.25, 44.8611, 31.8281, 49.5667, 49.6333, 39.35, 31.5061, 47.2667, 45.15, 45.9167, 28.7156, 38.4844, 38.3333, 44.4833, 45.2, 31.5183, 39.0911, 46.8833, 47.2428, 44.3158, 19.277, -6.03, 47.2167, -29.5407, 39.2425, 39.2367, 45.4833, 40.9167, 45.5794, 64.925, 64.8603, 38.9833, 30.5892, 30.5333, -33.36, 35.0781, -33.3608, 44.4833, 44.5, 31.6419, 32.6667, -20.5534, 41.775, 58.1833, 58.1833, 40.6983, 42.0169, 42.1667, 6.9, -34.5, 38.2506, 23.2, -45.58, 51.9333, 44.8711, 31.0522, 32.3978, 36.9936, 37.9478, 39.1014, 38.81, 18.3808, 22.1, 31.1681, 45.8944, 52.77, 31.2503, 33.9486, 35.9167, 40.0333, 37.7333, 35.6381, 45.725, 35.7108, 41.1453, 41.15, 48.3167, 49.05, 32.1667, 46.8814, 33.9706, 38.8169, 33.9831, 38.9422, 38.95, 38.9667, 40.4, 32.7039, 38.4167, 29.6989, 31.8297, 33.4678, 37.1764, 39.1661, 45.6444, 32.5181, 41.4639, 33.4667, 33.65, 39.2667, 37.4333, 32.45, 41.2864, 32.5161, 39.9833, 40.0781, 40.0, 39.9914, 39.8167, 39.95, 40.0, 39.9047, 40.025, 39.9667, 39.1875, 39.2167, 48.5472, 48.5833, 48.55, 67.05, 70.4322, 45.8667, 19.5, -9.347, 45.3667, -37.3417, 46.4667, 11.117, 39.3814, 47.8, 49.2667, 23.43, 16.25, 34.2625, 46.1167, -31.297, -45.783, 49.7167, 49.6833, 30.6, 41.7061, 41.5569, 9.57, -32.4, -8.25, -8.25, -19.033, -36.83, -23.43, -16.25, -23.4, 40.2394, 35.4072, 31.5514, 24.7833, 48.5558, 35.4111, 42.45, 43.205, 25.78, 39.5592, -31.38, 39.5514, -31.5, 37.9917, 43.1953, 43.2167, 37.9833, 48.5397, 42.7167, 45.1539, 11.9333, -33.0664, -33.0682, -33.0818, -33.0833, 45.2325, -28.3167, 47.5361, 37.1333, 39.7994, 40.6211, 53.083, 46.4667, 43.3203, 53.91, 41.75, 41.7333, 49.6167, 46.6644, 39.6667, 39.6556, 39.65, 48.1794, 30.3303, 30.3567, 30.2364, 51.9333, 51.85, 44.22, 36.3697, 18.9, -35.32, 49.3, 49.3, 41.7706, 48.0803, 51.7667, -38.03, 65.4833, 31.75, 34.1942, 33.8314, 35.0833, 44.9, 44.0, 8.683, -29.004, -29.0347, -30.6143, 36.1075, 45.0108, 45.4167, 44.2, -15.4461, -15.4486, -15.4633, 47.8667, 47.8947, 37.8167, -28.1681, -28.1661, -30.95, 38.0333, -32.2, 46.7667, -36.2939, -36.2167, -36.2318, 49.3, -31.3304, -31.2712, -30.9776, -30.9753, -37.3, -37.2906, 42.7167, 47.405, 18.0667, 39.6772, 33.3192, 60.3925, 60.4875, 40.2569, 43.2717, -34.6333, -34.6299, -34.6411, 42.1131, 40.2, 43.25, 31.5333, 31.9497, -27.35, 34.9939, 67.8333, 43.8, 47.05, 34.1122, 47.0833, 61.9667, 38.3139, 47.4667, 47.4678, 45.3833, 36.6333, 39.4833, 51.0833, 43.1872, 19.2, -29.95, 49.3667, 42.9589, 64.2, 38.2022, 49.5167, 36.9667, 36.0975, -22.02, 31.985, 35.3008, 34.305, -31.317, 37.8442, -31.4, 33.75, 48.5333, 48.5167, 60.4889, 60.5561, 39.6167, 44.9197, 41.5481, 44.0069, 34.8792, 51.841, 41.2, 49.3167, 34.5181, 45.8833, 45.8269, 37.7928, 48.9333, 48.95, 36.4197, 40.9886, 42.1342, 39.9389, 43.8, 46.8667, 31.78, 43.9572, 45.0167, 45.0333, 12.0, 33.8833, 34.25, 49.1167, 49.05, 31.3456, 33.8, 52.0667, 52.0833, 52.0667, 34.1492, -18.053, -13.155, -25.467, -21.55, -37.433, -35.9887, 18.3267, 27.7839, 27.8, 27.7, 27.6833, 27.7792, 35.2489, 36.9911, 40.2833, 39.64, 47.0167, -13.33, -27.446, -32.3292, 41.9167, -36.1828, -36.2003, 32.1225, 32.0311, 32.3333, 50.0833, 50.0667, 37.3444, 37.2553, 37.3031, 46.55, 42.6, 38.4864, 40.55, -19.083, -19.0, 42.9986, 44.5661, 44.4186, 44.6342, 44.5078, 39.67, 40.75, 24.42, 39.8536, 19.06, 40.3708, 40.2403, 51.5167, 45.3167, 43.658, 6.35, 9.67, -0.63, 43.7917, 43.7178, 42.1167, 51.7775, 44.1094, 52.733, 47.17, 46.0167, 43.9611, 46.0336, 65.3458, 38.5731, 42.5167, 38.3703, 39.8358, 40.6242, 32.8869, 19.05, 28.4567, 45.8003, 41.7833, 41.775, 41.8333, 41.7392, 46.0092, 46.0625, 44.1308, 47.25, 47.9167, 47.9544, -34.3749, 44.1667, 44.7442, 41.3167, 38.6667, 38.6758, 45.1833, 39.0189, 48.2072, 49.7667, 49.7167, 49.6833, 39.7811, 34.6603, 42.7667, 50.1833, 45.3, 39.8158, 41.8, 45.2964, 38.6, 45.3333, 34.0667, 33.5972, 35.5497, 30.5272, 40.1167, 37.8106, 52.0333, 41.9903, 35.0592, 48.4167, 48.7167, 48.8167, 35.8167, 49.6833, 49.6333, -33.8449, -33.8451, -33.9, -33.8087, 36.5333, 41.2708, 49.9167, 21.452, 18.43, -45.5833, -45.55, 36.0642, 38.2833, 17.38, 15.78, 20.522, 44.2833, 36.683, 44.4333, 37.4903, 37.6792, -41.6383, -32.16, 44.65, 57.18, 40.5333, 55.4772, -37.1475, 46.2333, 51.7667, 51.7833, 40.4506, 32.3333, 40.4953, 37.5222, 49.0992, 44.23, 38.1833, -38.1348, 49.5, 49.5333, 49.6167, 49.5167, 49.45, 49.4833, 44.8675, 44.8503, 45.5667, 31.4072, 31.6728, 37.7617, 48.2667, 38.8725, 44.1667, 40.4597, 40.6669, 33.7403, 53.033, 43.465, 42.8967, 46.5667, -5.167, 42.7, 40.0028, 40.0489, 49.6833, 42.6333, 41.9919, 41.9, 37.8256, 27.75, 57.35, 42.4603, 47.75, 29.425, 41.7958, 41.7803, 50.9833, 41.7611, 41.7608, 53.6, 49.45, 43.3894, 37.83, 44.1, -41.7256, -41.7219, 38.8739, 38.9628, 48.1889, 49.1, 37.9806, 41.0372, 49.0833, 49.1, 30.7797, 37.745, 30.7667, 38.3636, -37.4172, 40.6092, 45.17, 38.7497, 38.7956, 37.9833, 37.9667, 31.8453, 51.0333, 9.4, -32.83, 38.7692, 45.3575, 44.1167, 45.6, 34.7833, 31.3072, 38.0333, 42.7364, -26.8094, 69.2833, 43.4167, 40.86, 61.8667, 47.8014, -34.4578, 48.9075, 33.6517, 48.9681, 40.1667, 28.5978, 33.1111, 36.0167, 33.5133, 36.0139, 35.9178, 36.0147, 35.9508, 29.6333, 29.6333, 54.6333, 54.5333, 45.6414, 39.0, 41.8833, 30.2408, 35.6833, 34.2097, 34.2083, 11.15, 49.6333, 45.6, 41.2167, 43.8333, -18.2044, 38.0833, 37.6664, -7.633, -6.43, -28.63, 18.3347, -12.66, 28.6794, 38.2333, 46.45, 46.1667, 42.99, 46.7833, 31.9461, 32.0333, 39.3333, 21.06, 26.98, 28.4, 18.79, 35.995, 38.9667, 35.0883, 14.8, 40.2, 37.0969, 7.9, 11.767, -27.4233, -2.88, 40.0667, 24.78, 18.883, 18.92, 29.0892, 44.15, -15.55, -15.65, 18.76, 40.2333, 48.1503, 50.083, 37.2167, 24.765, 24.82, 34.1953, 34.1925, 42.8833, 35.3117, 56.8331, 54.5, 38.4833, 49.0833, 34.005, 41.1667, 55.1, 10.5, 36.9667, 39.65, 45.5333, 49.6167, 39.6419, 53.9667, 39.6394, 37.0167, 54.717, 42.4667, 34.2289, 34.0667, 37.6, 53.0333, 20.27, -31.6494, -31.6219, 44.4, -28.0706, 37.65, 69.3667, 50.85, 43.9331, 20.95, 62.033, -34.967, -25.417, -25.517, 40.3667, 38.7586, 40.2667, -39.9322, 24.7425, -17.5736, -25.3139, 40.6742, -6.23, -18.75, 35.9803, 42.4667, 47.4239, 47.3706, 43.7744, 46.1333, 43.7331, 43.75, 41.0167, 31.7672, 41.8328, 20.467, 48.6033, 53.8731, 34.9333, 32.9897, 10.85, -13.6, -13.52, 52.3582, -16.4514, 38.3769, 38.3833, 49.6667, 49.6333, 49.6667, 49.55, 49.5667, 45.2333, 50.8167, 27.6606, 31.9544, -0.479, 23.77, 28.45, 51.0783, 36.6833, 14.13, 51.9333, 38.9783, 59.66, 16.083, 49.7333, 38.3333, 34.5328, 32.9203, 49.9833, 46.6667, 14.67, 14.733, 23.711, 25.4831, 42.7256, 52.75, 36.7, 43.583, 12.58, 65.2667, -27.1605, -27.1839, 38.9386, 59.4452, 43.0497, 38.4547, 51.7, 36.5333, 36.0072, 36.0167, 36.0167, 48.0667, 45.3167, 45.3, 25.7, 38.9, 32.7744, 44.9464, 33.9881, 32.8978, 33.8333, 32.7333, 32.8519, 32.6808, 32.7667, 45.8667, 6.793, 57.72, 34.77, 41.4086, 43.6561, 24.05, 40.4, -30.2761, -30.2772, 46.1833, 44.6167, -16.253, -16.2636, 28.883, 20.42, 39.2667, 39.2647, 33.412, 11.786, -20.7278, 16.044, 65.54, 52.2833, 36.43, 41.4, 41.5, 46.0086, 41.3714, 40.05, 74.3, 29.0567, 45.6611, 38.1, 42.9167, 34.1175, 50.2333, 40.3, 42.9281, 11.228, 50.367, 76.77, 44.7192, 42.9447, 42.5653, 42.5708, 36.9833, 36.5869, 37.6528, 40.1389, 45.8167, 40.4397, 36.5728, 19.52, 29.05, 10.867, 54.3167, 26.1667, 46.0264, 35.2342, 35.667, 51.3, 40.467, 48.083, 27.05, 45.1667, 39.55, 33.75, 34.3011, 39.6667, 42.6781, 49.8817, 41.1144, 64.167, 48.5406, 48.26, -36.5353, 7.9833, 45.6, -9.083, -12.4239, -12.4227, -12.4, 43.4136, -6.867, -6.5, 41.8, 49.55, 43.3667, 45.0833, 32.8, 32.9711, 34.15, 40.1, 55.867, 51.1, 51.15, 51.1, 51.1, 30.2506, 47.8, 7.07, 46.1833, 41.6117, 47.6575, 41.55, 41.5167, 51.2667, 41.2492, -68.583, 38.7167, 38.535, 39.0981, 35.2, 32.1667, 46.8167, 36.6667, 64.05, 64.05, 34.3761, 40.1378, 64.05, 55.75, 55.75, 30.98, 52.8667, 44.8728, 47.9, 29.1967, 29.1828, 32.3667, 46.3153, 35.4717, 39.9061, 39.7633, 30.105, 39.5936, 44.4667, 44.5564, 16.05, 37.85, 31.2, -30.667, 70.1917, 46.8, 40.8, 61.25, 44.3736, 44.3167, 44.4667, 44.55, 39.2636, 40.0786, 44.1833, 42.2833, 44.3256, -39.4764, 42.3194, 42.3469, 58.4333, 58.4333, 36.4622, 44.8919, 48.4, 45.4167, 45.4167, 45.4167, 57.63, 47.489, 47.6, 10.333, 33.2733, 34.5833, 35.5333, 40.8483, 34.5569, 35.6394, 39.8344, 34.6525, 39.8289, -62.98, 38.4, 39.354, 43.3042, 12.467, 52.0614, 48.3556, 46.8997, 37.3739, 35.8272, 43.9944, 44.0667, 43.0908, 66.0689, 49.4, 49.4, 40.4044, 39.3, 39.6253, 39.3, 43.5764, 43.1744, 49.1667, 49.2167, 46.3833, 46.3911, 48.8019, 46.0278, 39.4333, 43.5833, 49.4167, 47.9667, 47.9742, 46.6167, 43.75, 33.5833, 41.0661, 41.2783, 41.3375, 31.73, 59.23, 47.8017, 40.46, 39.5, 30.317, 32.2167, 35.285, 33.4797, -15.7442, 29.0181, 45.0417, -26.73, 42.6333, 40.3175, 42.4667, 39.5667, 52.1833, 37.6333, 42.2558, 42.8667, 42.8667, 65.2167, 65.2167, 37.37, 36.917, 31.8769, -26.15, 34.0092, 49.1833, 49.1667, 40.615, 61.79, 61.83, 38.7531, 39.3375, 40.95, 38.7539, 64.0839, 64.1172, 29.6, 63.9647, 49.0667, 50.1833, 49.0167, 48.9983, 49.05, 36.6, 37.6908, 29.3842, 29.3783, 29.3667, 29.3667, 34.4311, 39.46, 32.2531, 45.2167, 32.2622, 41.42, 59.6, 52.5083, 55.45, 35.5317, 32.5192, 37.5667, 38.267, 31.417, -25.9261, -35.5575, -35.3667, -35.5269, 41.9897, 41.8483, 42.0364, 33.8167, 55.0, 37.783, -34.9511, 44.3514, 40.4056, 40.4, -8.749, 47.3181, 38.8833, 33.1992, 33.2061, 39.5703, 32.9619, 39.8328, 39.7167, 39.7633, 39.7294, 39.75, 52.3, 52.9614, 46.86, 42.0628, 69.33, 28.45, 28.82, 34.0464, 31.82, 32.0, 42.07, 42.7, -17.3706, 45.5842, -17.3044, 33.5597, 32.76, 44.45, 53.3917, 40.3, 40.1833, 39.3011, 32.8569, 46.6667, 46.6833, 39.2872, 44.1833, 38.6, 36.4381, 36.5792, 33.6267, 39.6725, 41.5333, 11.1, 30.4, 34.9772, 46.1833, 36.75, 41.5561, 41.5339, 41.5783, 41.7367, 45.9983, 44.7333, 42.4092, 44.7242, 46.8572, 46.8372, 46.8489, 42.2314, 42.2333, 51.2, 49.767, 45.8667, 40.0833, 38.4, 26.6033, 41.53, 35.7167, 35.6111, 48.1167, 48.1069, 47.9853, 37.63, 44.5817, 44.5833, 44.5833, 37.2269, -41.1833, -41.1708, -41.18, 34.2211, 68.65, 38.8128, 37.7333, 36.8, 32.4, 37.48, -30.65, 52.1014, 30.7244, -25.17, 41.9342, 52.9267, 34.05, 30.4347, 30.8428, 42.8167, 39.8717, 44.3867, 26.2833, 26.983, 37.9167, 48.7142, 37.3292, 31.8614, -18.23, -14.4, 34.6833, 36.9861, 29.5833, 42.8667, 15.87, 43.1833, 35.2947, 39.5667, 40.6172, 36.9, 39.7086, 25.617, 27.483, 46.8911, 47.1944, 36.075, 52.05, 51.6667, -20.535, -7.3, -12.3, -29.6694, 52.586, -33.95, 34.1267, 51.2414, 49.4169, 13.373, 44.5339, 43.8906, 44.1342, 44.6167, 44.6167, 44.6833, 47.38, 65.2397, 65.3197, 39.05, 73.5, 35.1842, 39.0333, 50.7325, 28.6806, 48.5708, 44.0992, 59.05, 45.2128, -8.5667, 34.4092, 45.1581, 39.6261, 45.2575, 6.65, 43.0167, 34.5858, 25.65, -62.183, 38.1, 30.033, 58.53, 35.083, 37.0664, 36.85, -37.0491, 40.2447, 40.2442, 40.5086, 40.4378, 51.3167, 14.65, 8.6, 50.9181, 9.6, 41.9667, 41.9667, 37.1122, 45.9167, 38.85, 20.7167, 43.2336, 68.7781, 44.8, 45.7511, 41.3, -20.17, 45.917, 39.4, 31.98, 45.5525, 41.0333, 41.5667, 41.835, 37.4389, 37.4361, 37.7858, 37.894, 6.8, -2.7, -2.53, 24.55, 34.683, -8.15, 33.8, 33.8697, 11.5, 11.55, 59.61, 48.6, 46.55, 46.733, 39.3575, 39.3333, 41.0072, 56.617, 51.65, 44.1331, 42.9608, 43.1, 37.7608, 41.9675, -6.167, 32.1, 54.167, 46.2536, 39.6, -10.1, 51.6333, 39.5619, 25.261, -32.517, 54.883, 9.3, 55.12, 47.333, -4.18, 43.6, 41.8, 37.4753, -36.35, 62.083, 50.75, 61.8833, -74.5, 53.7333, 53.75, -75.117, -77.317, 44.5667, 44.5833, -80.37, -76.42, 53.1414, -36.3697, 51.4833, 52.5167, 30.0719, -36.4, 31.0286, 47.9431, 40.1275, 48.067, 19.1, 19.167, 39.83, 32.85, 17.483, 17.67, 36.6206, 36.6269, 61.4, 38.2167, 46.6667, 46.6833, 40.6458, 39.3239, -33.5719, 40.1636, -18.72, 59.9003, 20.517, 13.917, -15.3797, -26.62, 18.4722, 46.0333, 36.79, 43.1639, 43.7822, 14.03, 14.033, 48.8167, -30.3442, 41.6833, 43.2242, 45.2167, 40.8833, 51.5131, 36.85, 13.033, 18.3361, 17.6, 31.2333, 31.3214, 4.02, 42.1794, -25.9319, 34.15, 48.2167, 31.345, 31.4889, 42.7467, 31.4583, 42.75, 42.7972, 48.1156, 50.1667, -13.8345, 31.35, 47.62, 50.0983, -43.3167, 39.1467, 40.5333, 40.8833, 36.4819, 39.1333, 45.1872, 37.7672, 41.9856, 41.9833, 39.6269, 42.4261, 39.5633, 40.4906, 45.05, 42.0772, 44.8, 40.0244, 47.85, 40.33, 39.9717, 40.0222, 57.2, 42.933, 39.9153, 60.1331, 68.0465, 43.6656, 47.9167, 48.0475, 59.7537, 40.4878, 62.09, 41.65, 36.2836, 39.625, 42.5833, 51.133, 51.0233, 51.1167, 61.8869, 43.8081, 43.7833, 39.95, 43.7306, 30.2133, 44.6331, 49.35, 35.567, 51.4667, 51.45, 46.3333, 45.8833, 46.6383, 45.0333, 46.6167, 62.2, 52.05, 68.233, 52.1833, 30.05, 49.7833, 49.8333, 30.2, 49.8333, 30.0481, 45.9, 47.2442, 41.4167, 41.4917, 34.4833, 63.6772, 45.9444, 47.7333, 40.5667, 40.5333, 33.3597, 40.535, 36.45, 24.6278, 9.34, 25.255, -32.2206, -32.2385, 46.8167, 32.5575, 32.0628, 53.3639, 43.5397, 44.1667, 44.2436, 41.1783, 38.4558, 42.57, 42.54, 42.3978, 46.8667, 40.1678, 38.8522, 33.6333, 24.7706, 51.5053, 48.167, 69.4, 37.75, 55.0, 45.4539, 41.8678, 49.8667, 40.1839, 40.1833, 46.0167, 51.3953, 41.15, 44.317, 46.3333, 35.9667, 51.717, 49.096, 36.3, 36.9358, 43.4117, 46.8369, 46.7681, 46.8367, 46.7833, 46.8333, 9.3, 33.8847, 35.8731, 55.1, 55.05, 24.267, -66.667, -12.635, 56.0039, 46.3167, 32.7481, 34.5011, 48.7833, 48.7667, 48.75, 48.7333, 50.2333, 45.6167, 39.2667, 54.0531, 76.5667, 41.9553, -7.4, 51.8, -45.9, -45.9, -32.0159, 43.9578, 47.8667, 43.37, 40.15, 59.19, 51.05, 48.7167, 42.4933, 37.9497, 42.8333, 35.3247, 47.3467, 41.1833, 42.6667, 56.4505, 53.1333, 55.9333, 73.9, 42.183, 48.5167, 45.0469, 44.8658, 54.3667, 48.0667, 34.4692, 42.8833, 44.6197, 42.9269, 37.2833, 37.2911, 24.05, 24.0, 37.1431, 34.0, 33.9208, -33.35, -29.97, -37.8233, 36.0425, 43.1433, 43.9997, 44.1833, 54.7679, 35.9706, 43.1717, 43.1092, 45.6333, 44.6167, 39.6, 25.83, 38.5494, 41.5217, 51.2969, 40.6, 53.895, 53.9167, 30.4167, 51.1833, 32.5333, 55.7, 63.4, 40.8, 41.1, 37.9878, 62.867, 22.3667, -32.7103, 41.1, 41.1072, 45.3833, 46.5022, 57.202, 37.615, 35.9986, 36.0003, 53.5, 70.1297, 55.33, 40.85, 45.717, 52.7, -12.805, 68.73, 56.85, 40.917, 50.25, 37.35, 41.57, 59.02, 40.1, 45.5, 20.85, 40.117, -66.717, -67.4, 31.909, -25.05, 38.4758, 64.7856, 55.8, 41.4, 36.2667, 64.7761, 64.7767, 50.9333, 49.5833, 45.3686, 39.65, 47.4667, 33.8089, 32.8692, 36.5575, 28.7569, 39.9278, 45.9169, 61.2967, 61.3192, 44.4856, 0.05, 37.2667, 47.7, 47.7, 50.6333, 50.6333, 49.5167, 49.4333, 37.75, 32.3989, 50.2833, 52.25, 32.2003, 38.7428, 47.2422, 40.6833, 44.9067, 37.3875, 46.1, 45.4833, 46.4333, 51.9589, 40.9833, 42.1103, 43.0667, 48.4469, 42.6167, 44.6425, 46.5833, 45.0833, 43.8786, 44.3669, 42.2356, 45.1519, 42.6742, 42.7, -33.033, -33.0, -32.7483, 33.4192, 42.8267, 39.3592, 46.4667, 49.0, 43.1333, -38.1156, -38.1072, 45.1333, 42.3328, 48.35, 48.6667, 38.5667, 44.2839, 42.7667, 41.7653, 40.35, 39.3167, 44.3167, 39.7347, 33.3167, 45.2667, 44.8167, 44.7878, 42.0153, 44.8664, 38.55, 51.2817, 40.4833, 40.4681, 49.4558, 48.7208, 48.1008, 2.9, 49.8531, 39.5, 44.4828, 44.4667, 45.75, 36.3092, 40.9656, 39.65, 47.75, 38.85, 38.7833, 49.8, -36.1647, 36.213, 48.65, 52.2833, -35.1833, 44.9833, -40.9928, 37.0486, 45.5167, 60.07, 31.2208, 36.4742, -37.0222, 36.0164, 44.6722, 45.9267, 63.98, 41.3853, 52.5, 46.3694, 43.3728, 43.6242, 39.5075, 52.7833, 39.75, 26.2981, 32.7994, 38.8025, -34.7111, 55.95, 26.5258, 41.667, 40.2764, 32.505, 32.6064, -35.1121, 53.55, 36.9833, 53.5667, 53.5667, 53.5667, 53.3167, 53.3, 53.5667, 53.6667, 53.6667, 53.55, 53.55, 53.4167, 48.4239, 47.35, 47.3667, 47.4167, 47.3667, 47.2653, 47.2667, 39.6, 61.38, 61.36, 53.5833, 53.5833, 53.5833, 53.6, 53.5833, 53.5833, 32.3167, 38.8, 39.1, 34.9, 14.0, 51.1831, 53.1233, 53.1231, 39.8333, 40.1383, 47.7794, 39.1181, 56.89, 44.2325, 44.2333, 44.2333, 60.73, 60.2, 68.3, 51.25, 65.283, 60.0667, 66.3497, 48.6603, 33.6, 33.6133, 48.3425, 48.8789, 31.4833, 60.4672, 59.4981, 60.3333, 64.6667, 64.6833, 58.507, -37.2091, 44.85, 47.6294, 51.8203, 51.4494, -6.66, 39.805, 47.85, 50.4717, 51.5042, 32.4, 26.13, 41.95, 45.8903, 56.8331, 47.7331, 64.7, 56.55, 56.78, 41.033, 53.0831, 70.0784, 59.24, 61.45, 61.4, 61.4667, 61.4494, 48.82, -83.133, 54.95, 29.55, 38.607, 43.0667, 39.2167, 39.95, 44.6167, 34.1408, 38.2, 54.167, 51.1167, 51.1667, 51.1333, 48.6833, 46.0108, 50.9, -26.3, 38.3486, 42.3653, 30.8694, 30.9667, 37.8639, 0.533, 0.404, 58.9667, 52.633, 34.0308, 38.3306, 39.5997, 46.9, 33.1461, 67.05, 58.1917, 30.3492, 37.3475, 41.9872, 42.0628, 45.5669, 37.3167, 31.5908, 42.183, 33.9403, 46.32, -82.617, 30.85, 40.6667, 42.3161, 36.3644, 36.6167, 37.45, 44.2139, 34.6044, 37.6797, -11.65, 39.3811, 36.3097, 36.2606, 32.9161, 42.7753, 50.0167, 37.0058, 43.0, 37.3872, 49.9333, 33.7, 39.0131, 38.8853, 35.65, 49.3, 40.8603, 40.8289, 39.6167, 43.6425, 43.5992, 43.6292, 38.45, 46.85, 35.8, 45.8356, 35.3925, 37.2775, 39.5, 44.7578, 53.6833, 41.6878, 53.8833, 40.85, 45.305, 46.7822, 41.9881, 51.1967, 46.0108, 46.9692, 47.0339, 41.7167, 46.6167, 53.4167, 37.9356, -38.2456, 38.35, -31.333, -17.5521, -41.0828, 46.3833, 46.35, 46.4167, 38.9486, -33.6501, 39.0311, 46.5631, 38.7297, 44.5333, 42.265, 44.7303, 44.15, 48.9903, 38.8681, 42.85, 47.0092, 36.8, 61.25, 42.0997, 42.1594, 44.5431, 46.25, 55.0667, 55.1, 49.7167, 40.6997, 44.3186, 38.87, 43.6833, 43.65, 43.65, 43.65, 32.7819, 54.067, 51.1333, 63.9167, 39.1506, 50.9292, 50.4825, -33.84, 33.6692, 42.1667, 42.1717, 46.4833, 46.3992, 48.0164, 40.2872, 47.9239, 41.3814, 41.3461, 47.9753, 47.8833, 39.2922, 39.2953, 48.2019, 31.85, 24.93, 29.12, -4.25, -16.5, -16.513, 28.0, 31.073, 24.1, 33.667, -41.943, 16.65, 32.8006, 32.7833, -50.267, 29.2, 24.95, 32.8856, 5.691, 33.6472, 32.7669, 32.8167, 9.98, 16.17, 25.73, 37.7833, 37.8183, 43.8, 33.2208, 4.453, 13.357, 13.617, 26.33, 30.5667, 36.9, 34.15, 32.633, 19.85, 34.5892, 34.6344, 35.0381, 28.97, 13.167, 13.2, 29.23, 33.5, 19.2, 31.7833, 31.8117, 31.8347, 31.8111, 24.77, 24.46, 22.58, 16.5, 23.95, 24.76, 22.5, 35.5489, 35.5483, 36.3467, 18.76, 22.6, 23.78, 20.53, 23.18, 18.77, 29.93, 49.1, 33.6667, -17.812, 20.33, 36.5928, 8.633, 22.26, 47.6581, 58.2, 44.4972, 44.567, -0.5, 53.3892, 53.333, 63.483, 29.52, -23.5694, -29.93, -23.5267, 49.0667, 49.0, 38.9167, 48.4333, 43.4675, 40.6497, 45.55, 42.3667, 30.0667, 37.1561, 39.0, 53.617, 48.1383, 43.1025, 43.8544, 39.6833, 39.6811, 42.4694, 48.6333, 32.8711, 36.7667, 46.5333, 48.6833, 27.95, 31.7806, 38.3861, 36.6983, 38.4294, 38.3306, 41.5067, 41.5167, 50.95, 40.5019, -23.0314, 41.1833, -27.3, 50.1833, 27.9775, -30.53, 50.55, -50.483, 46.6167, 40.4181, 42.0858, -29.8183, 46.1281, 46.8167, 50.9894, 54.0333, 47.8525, 61.6667, 31.3167, 33.1833, 50.7167, 37.0458, 38.2789, 41.4333, 36.4194, 36.3333, 58.45, 11.35, 11.35, 35.5406, 66.3797, 37.567, 61.1333, 61.1333, 45.3394, 45.35, 68.5, 69.05, 69.0419, 68.6025, 68.5708, 44.9094, 44.9097, 31.85, 30.283, 0.05, 37.5764, 45.7083, 45.4, 31.2975, 37.7697, 45.4256, 37.5586, 47.6983, 47.6744, 53.3667, 49.2167, 49.2167, 53.6, 6.467, 12.0, 12.7, 39.3583, 45.1708, 40.1667, 47.3167, 47.3078, 43.0303, 48.2833, 49.1317, 32.6167, 0.0, 54.2, 39.317, 61.2667, 39.0, 36.6, 48.533, 45.9, 49.0, 41.3, 43.65, 54.3008, 50.9844, 38.3, -37.9743, 35.2164, 35.205, 41.8036, 42.25, 42.08, 41.6281, 50.8333, 58.64, 58.6, 47.6367, 53.3, -26.2925, -26.2635, 10.89, 40.0458, 53.967, 31.933, -41.4506, 57.12, 51.33, 42.85, 36.1422, 50.27, 39.71, 39.957, 41.867, 37.7686, 45.7181, 18.61, 49.86, 47.8867, 51.1844, 33.1167, 33.1211, 33.1, 47.0378, 3.6, 37.4667, 53.6492, 32.6167, 32.751, -28.88, 51.883, 39.1078, 55.3167, 59.39, 59.38, 39.78, 38.8592, 51.2553, 35.9989, -33.83, -33.6825, -33.6031, -33.85, -3.9, 38.2428, -14.91, 21.01, 60.2206, 60.1831, 60.2075, -42.9, -42.933, 48.4333, 67.89, 31.398, 44.35, 68.47, -37.7276, 51.417, 51.4, 43.6156, 40.8314, 44.5078, 44.5078, 48.692, 55.9, 45.2689, 34.8242, -29.02, 39.3831, 64.8464, 42.4153, 64.9111, 40.3767, 40.3689, 40.3667, 49.2, 49.2167, 49.2167, 49.3833, 49.3833, 43.4036, 43.4075, 51.6667, -30.4, 51.15, 35.624, -41.08, 53.05, 52.7667, 35.3333, 49.55, 37.2667, -31.6797, 33.1144, -34.1754, 31.8667, 35.1931, 32.0111, 44.05, 44.1278, -28.17, 30.4917, 33.5628, 61.2331, 39.5169, 39.95, 45.7644, 61.95, 79.9833, 37.8253, 39.6014, 48.9, 56.4833, 48.8978, 36.4164, 40.8097, -36.7545, 51.9978, 45.2172, 40.6864, 28.85, -34.5833, 33.4, 54.1356, 30.3333, 31.185, -52.4, 41.265, 41.2731, 37.9647, 38.0442, 42.5978, -29.183, 38.0, 31.4625, 43.9167, 47.4581, 68.4908, 36.0717, 44.65, 68.5835, 61.4053, 40.0136, 47.9753, 47.9167, 47.9078, 25.8489, 25.8997, 31.445, 39.6381, 31.4167, 31.4156, 37.0333, 50.7417, 40.617, 38.533, 38.6, 49.0167, 21.3167, 21.3747, 46.5333, 42.2611, 21.65, 43.35, 50.73, 33.2631, 48.7667, 35.0167, 51.0667, -32.2464, 44.8464, 54.1167, 31.5, 44.2667, 52.9667, 12.07, 44.2914, 59.0267, 45.833, 57.2, 60.983, 60.54, 58.65, 22.35, 47.433, 29.47, 64.9736, 64.8367, 64.8172, 64.8039, 64.8342, 40.0739, 47.6333, 44.6, 43.0333, 38.2736, 39.3478, 40.2703, 41.0211, 44.5833, 47.1906, 47.6153, 31.7322, 43.3167, 35.5417, 38.3806, 43.3428, 30.5467, 30.5486, 36.75, 34.705, 39.4667, 40.6422, 43.6447, 39.2219, -15.5, 33.0, 36.2667, 47.85, 56.0667, 36.2633, 56.0833, 35.9689, 56.0667, 59.533, 35.1, 45.0203, 45.0319, 18.3103, 37.77, -2.883, 43.62, 26.5581, 33.4333, 49.6833, 26.5547, 27.1353, 55.7333, 56.9, 50.45, 58.16, 34.3667, 33.4392, 38.9333, 65.11, 46.8333, 39.4572, 39.4167, 39.5167, 38.85, 44.8578, 44.8358, 40.0803, -36.8708, 35.9808, 41.95, 35.6392, 44.2939, 41.7167, 43.7667, 37.6475, 41.0081, 38.6783, 41.65, 55.38, 60.6167, 35.12, -27.05, 49.1, 61.5, 60.26, 36.8839, 32.03, 61.5158, 3.92, 50.45, -65.4, -22.805, 27.05, 63.7233, 62.5167, 62.5422, 30.6908, 30.8264, 46.9253, 44.3092, 39.25, 32.775, 40.2539, 40.75, 40.7342, 37.7922, 40.9667, 40.9833, 42.4669, 44.6333, 44.6889, 41.0222, 44.6697, 36.75, 36.6897, 37.7667, 41.0, 37.7617, 36.7436, 40.2539, 37.3264, 45.3, 38.7667, 33.9, 37.014, 57.9, 23.6, 57.92, 62.2, 62.2, 41.2167, 42.1867, 65.33, -13.312, 56.7181, 28.9, 52.85, -3.864, 45.0364, 49.8667, -29.77, 67.2378, 34.2661, 41.7, 18.0, 18.0, 31.6833, 33.6847, 39.1333, 42.8503, 36.0833, 43.0333, 36.0097, 36.1006, 36.2833, 35.0583, 34.9914, 35.15, 31.6833, 45.6667, 32.6319, -8.7, 24.47, 38.83, 29.755, -12.18, 53.3358, 47.8756, 47.27, 47.9417, 19.7, 19.5667, 23.6, 52.0, 27.6833, 43.8833, 34.6528, 36.9614, 31.05, 41.22, 23.033, 46.1, 46.0931, 36.695, 51.15, 45.0331, 40.3667, 46.2919, 43.7, 43.7333, 9.58, 48.2, 46.7, 52.8, 30.6669, -3.85, 47.9461, 49.4833, 39.6167, -37.8775, 44.0494, 51.0167, 44.8325, -62.1, -77.9, 32.5339, 39.0875, 49.3333, 47.6456, 38.2306, 34.0, 44.367, 36.6, 60.4083, 49.15, 47.817, 33.9328, -21.45, -21.442, 50.4292, 49.9817, -28.817, 51.3833, 42.2642, 43.6806, 44.55, 56.3, 34.7331, 61.1781, 43.9158, 59.72, 38.9664, 60.24, 49.8, 41.0136, 41.0461, 46.6167, 44.4183, -41.6428, 36.3164, -25.5833, 62.04, 53.48, 68.0007, 43.78, 44.1217, 47.4536, 48.6172, 45.09, 51.0833, 51.05, 45.0667, 45.4581, 42.7, 32.9903, 39.2667, 42.4722, 47.1292, 42.3833, 47.5167, 42.3833, 38.9361, 39.84, 62.1031, 42.4667, 42.55, 42.5519, 34.5519, 31.7108, -18.1814, -18.1919, -16.9267, 57.2667, 39.8811, 35.8717, 49.7667, 36.3642, 40.7167, 39.6, 62.58, 50.5058, 39.2814, 35.1611, 35.145, 44.8142, 35.1442, 57.69, 25.1422, 40.9317, 44.0517, 46.4581, 62.45, 29.6339, 62.73, 46.9328, 39.3375, 48.8, 46.8217, 62.8228, 36.2528, 37.5894, 43.6197, 67.175, 58.2842, 31.8833, 38.4167, 40.5739, 40.6483, 40.3667, 54.8103, 35.45, 35.4267, 45.8, -40.0911, 32.2, 48.35, 43.0378, 42.9667, 42.0792, 54.6833, 54.7667, 54.6833, 36.3, 60.6141, 59.06, 46.9728, 38.6786, 31.0425, -6.11, 38.7103, 33.0364, 34.8, 38.2422, 38.3833, 43.8, 45.9, 45.9336, 34.1667, 44.0042, 34.2933, 34.1853, 50.2392, 39.455, -19.88, 29.1333, -6.767, -27.583, 32.4333, 40.7831, 38.9128, 61.5831, 41.0, 49.7328, 61.85, 51.3333, 48.2975, 33.985, 36.9278, 60.7833, 40.7667, 57.093, 51.6333, 23.87, 41.5, 41.53, 49.7167, 49.7167, 49.7167, 62.1167, 43.0167, 48.25, 60.17, 30.74, 36.4328, 63.68, 63.76, 36.8667, 38.6833, 38.7, 43.7953, 59.3333, 43.7667, 43.77, 40.1167, 44.2781, 34.0833, 48.9333, 41.8183, -2.533, -33.3627, -33.3892, 38.55, 61.4648, 61.45, 50.15, 37.4667, 33.8228, 40.7131, 49.4833, 49.4833, 32.36, 43.1667, 44.0686, 52.4667, 34.15, 39.0914, 48.7333, 44.6997, 43.2844, 35.2653, 35.3125, 40.3833, 45.5247, 45.3397, 47.3167, 47.3167, 47.9558, 48.7778, 44.2183, 46.0333, -26.213, -15.54, -14.93, -30.8453, -30.8389, 35.0333, 63.14, 59.96, -32.1756, 46.2719, 46.2667, 33.0161, -3.767, 22.1833, -41.2039, 46.4833, 48.7783, 55.6, 47.5, 61.5, 48.9081, 29.67, 52.2167, 54.3667, 54.3667, 55.3167, -32.783, 48.3042, 35.1397, 58.7167, 58.7667, 58.7667, 9.967, 41.8883, 14.6, -0.3, 27.5139, 42.8833, 48.6167, 48.65, 48.65, 53.8833, 53.8333, 66.25, 66.2333, 66.25, 22.68, 51.55, 45.2969, 31.5883, 36.0117, -13.67, 12.28, 49.15, 42.2167, 60.2333, 60.2333, 61.1, 49.7167, 49.7833, 56.8833, 56.65, 56.65, 56.65, 67.4333, 67.4, 36.63, 58.8333, 58.8333, 44.1153, 0.67, 61.3167, 61.3333, 50.7833, 43.05, 62.7167, 62.7167, 61.1667, 61.1833, 43.425, 72.0167, 31.4, 53.7167, 44.55, 34.6667, 61.7667, 61.8667, 61.7667, 61.7667, 60.0, 60.0, 60.0167, 60.0333, 54.45, 54.4167, 56.2333, 38.8333, 58.3833, 58.3833, 56.8, 66.5664, 44.9983, -71.317, 41.8367, 47.5636, 45.9167, 44.4139, 42.9736, 60.117, 30.4333, 39.7, 33.6028, 35.8922, 42.4, 45.3333, 36.7939, 40.6167, -31.99, -31.0867, 28.5033, 46.4856, 53.4167, 48.4583, 41.0833, 64.9592, 54.4, 67.5333, 41.0061, -25.52, 42.2833, 50.0628, 46.4333, -20.55, 40.9842, -1.63, -1.667, 50.1167, 24.91, 16.77, -21.217, 41.1183, 39.4167, 39.7069, 44.6481, 39.7756, 38.1847, 40.2986, 38.2022, -27.27, 50.1483, 52.3653, 31.0328, 35.1803, 36.6878, 39.5536, 40.1, 41.4003, 43.45, 30.8433, 30.8186, 42.3297, 40.0953, 38.6756, 39.5167, 29.8233, 42.05, 45.0333, 43.4703, 35.9417, 39.4689, -38.1481, 49.2283, 62.52, 48.4667, 39.9425, 39.95, 3.72, -31.917, 50.6333, 45.3333, 59.7167, 54.0833, 48.0667, 35.8456, 45.65, 34.3861, 39.4167, 30.2392, 38.3167, 38.2875, 37.5739, 40.4167, 39.4161, 39.4167, 45.8667, 45.9667, 45.9167, 45.9167, 45.95, 36.9414, 37.5464, 42.4497, 64.08, 64.08, 60.14, 36.7647, 38.4583, 36.9869, 36.7256, 42.3667, 40.3142, 41.0167, 38.8672, 26.55, 42.3, 28.9844, 42.2972, 27.8722, 8.48, 42.5192, 48.2028, 50.9281, 48.0, 53.8292, 48.5, 45.05, -32.055, 37.5422, 41.3331, 41.43, 43.4458, 43.3936, 41.3119, 33.8081, 38.5778, 39.3833, 47.2856, 45.33, 23.8667, 46.1333, 36.7672, 36.78, 48.4544, 36.9969, 48.5222, 51.6894, 47.6853, 45.35, -41.9953, 43.975, 39.6667, 40.6558, 40.505, 34.64, 38.45, 31.3894, 33.7333, 51.117, 63.8, -34.2739, 46.45, 49.8, 49.2, 43.517, 38.9039, 41.63, 56.87, 63.19, 39.65, 39.66, 38.2894, 71.0931, 38.2833, 39.1653, 36.7381, 40.2167, 30.9167, -20.03, -41.12, 35.0667, 46.8667, 43.9906, 56.3, 55.23, 48.4983, 42.905, 32.7939, 32.35, 47.8306, 41.8714, 39.5092, 39.4, 35.1333, 41.4, 41.4453, 36.6667, 38.6803, 38.6586, 46.1358, 40.5764, 40.5756, 30.5997, 35.75, 31.9833, 42.5836, 40.2842, 37.1333, 31.6, 31.615, 39.1, 35.8667, 32.6231, 27.5706, 43.0428, 31.1853, 31.1333, 41.6, 47.2386, 42.6167, 65.0033, 42.3833, 26.1019, 26.1408, 26.1969, 26.0833, 26.0719, 39.3667, 37.2333, 37.7481, 37.2308, 46.6547, 40.0667, 40.6222, 30.8275, 56.7333, 27.5, 44.41, 30.2333, 40.26, 26.585, 26.5361, 34.4406, 48.0, 48.0119, 27.4419, 27.4981, 44.2444, 31.05, 35.5667, 61.2272, 39.05, 46.1806, 42.6656, 38.515, 40.8, 37.8428, 34.65, 35.3667, 35.3331, 35.65, 33.5, 49.5167, 31.8667, 31.8717, 30.9072, 30.8833, 30.9119, 44.6333, 34.4667, 34.3942, 36.5442, 33.0094, 35.9, 35.2681, 32.5667, 42.9833, 41.0167, 41.0833, 40.9706, 35.4667, 32.9733, 32.8192, 32.8167, 32.7667, 32.8472, 32.7333, 32.8339, 46.05, 66.5706, -21.233, 48.1919, 50.66, 27.33, 28.4444, 70.3167, 47.233, 35.216, 40.65, 32.7, 36.05, 33.583, 33.5833, 37.233, 34.45, 50.55, 41.3594, 46.1581, 33.8719, 38.8472, 43.305, 34.2614, 41.8978, 43.3497, -8.5, -8.517, 32.63, 32.683, 45.6, 61.2928, 48.2, 48.5458, 64.91, 36.8, 35.75, 26.2667, -14.317, 42.03, 32.93, 46.983, 26.083, 26.0, 54.367, -70.9, 33.88, -24.667, -37.5679, 44.4333, 49.15, 46.6275, 15.417, 64.5033, 64.5056, 34.0167, 34.0219, 34.285, 34.422, 32.2261, 45.7833, 45.8333, 36.2967, 6.13, 6.1, 51.95, 32.7744, 36.3661, 33.6358, 34.3006, 29.6814, 32.8369, 29.6333, 33.6461, 34.2719, 32.8347, 29.6919, 29.65, 40.17, 60.283, 62.3, 45.5, 36.6633, 36.6542, 6.85, 30.12, -22.809, 1.817, 36.8061, 42.3994, 43.8833, 64.7408, 64.7367, 46.2222, 39.3817, 43.85, 40.9464, 40.7231, -12.028, 12.8, 48.7, 39.9133, 45.2167, 36.1833, 6.0, 29.4631, 38.8203, 67.14, 35.5333, 35.5144, 35.5283, 40.03, 66.1667, 70.7167, 46.9728, 46.7, 41.1739, 29.3, 29.2733, 53.28, 63.7833, 48.7833, -1.87, -1.9, 35.6, 59.68, 35.7164, 40.7167, -6.73, 48.95, 49.2667, 48.95, 48.9333, 52.75, 29.917, 37.333, 42.5833, 48.8667, 37.771, 42.1, 46.6, 42.7, 44.0344, 44.0569, 34.85, 25.867, 16.248, 10.33, 23.05, 52.567, -8.883, -8.53, 52.517, 31.8667, 37.9667, 37.9931, 37.9272, 45.8981, 49.8167, -32.2433, 58.7167, 44.1011, 60.2064, 43.7333, 44.2203, 45.0317, 43.7464, 42.2833, 37.4, 9.52, 58.88, 40.7242, 44.6167, 43.6167, 59.433, 32.1556, 30.383, -0.467, 46.05, 41.7561, 39.0, 47.483, 58.05, 35.6708, 42.9667, 46.1667, 32.6167, 38.28, 47.2333, 9.336, 41.3414, 41.3, 41.3367, 38.9333, 47.6458, 47.6539, 51.1306, 45.8333, 48.9667, 37.3667, 41.6167, 18.15, 31.617, 37.47, 35.8917, -25.0544, 48.8333, 48.7833, 41.8458, 38.665, 26.3, 35.2656, 35.1967, 44.1678, 42.8394, 36.85, 70.6333, 31.4144, 36.4333, 50.5167, 38.6825, 37.9458, 35.6878, -27.5456, 26.1, 61.4063, 59.8507, 40.35, 36.4333, 42.8456, 4.5, 60.65, 60.72, 62.4, 11.883, 24.75, 44.5564, 45.0333, 44.9072, 44.9081, 45.0133, 37.8683, -25.6167, -25.6258, 43.3144, 48.35, 39.25, 37.08, 36.3, 54.3833, 54.4, 58.7, 54.5, 35.6306, 18.95, 41.35, 14.033, 39.1, -38.085, -38.1167, -43.1639, -43.1589, 60.5173, 49.983, -37.22, 48.95, 44.567, 45.25, -38.5304, 50.2039, 50.95, 39.18, -25.75, -25.82, -25.42, 37.7519, 58.16, 13.5, 10.485, -34.92, -37.4, -36.582, 25.8, 25.37, -22.62, 29.096, 10.107, 16.75, 25.767, -27.75, -35.696, 38.5375, 41.4511, 31.0386, 40.5314, 56.57, 31.0383, 41.7667, 42.8833, 42.8767, 40.3, 46.25, 46.2, 23.55, 13.483, 39.2775, 41.4514, 43.5706, 44.42, 52.383, 36.8658, -36.5, -7.139, 6.117, -34.0, -33.359, 6.5, 6.8, 30.6333, 38.9167, 39.7053, 43.65, 47.0792, 33.3619, 31.8967, 38.6333, -18.3039, 33.3169, 13.53, 30.6836, -18.3, -18.2922, 38.9331, 38.6892, 43.6333, 45.1333, -34.017, 63.8375, 52.8167, 40.2167, 28.3667, 38.4, 47.6014, 47.5333, 49.7, 49.7833, -28.7953, -28.7769, 50.8819, 42.205, 42.2, 42.2056, 40.655, 55.7833, 43.2389, 39.6667, 35.0761, 51.7269, 49.7725, 50.2778, 33.68, -3.8, 50.2167, 39.8333, 45.0194, 45.0136, 45.0, 34.0869, 77.617, 38.6683, 30.152, -21.7, 32.4, 25.146, 35.1, 36.24, 45.432, 31.033, 51.3, 35.208, 36.5667, 45.5394, 41.5697, 69.3538, 36.151, 49.4, 49.3833, 40.4731, 47.6017, 65.33, 50.6008, 35.4, 46.52, 29.75, 43.5381, 43.5606, 32.9481, 32.95, 33.1975, 35.9886, 31.8833, 37.0147, 51.1, 48.5653, -25.03, 38.3667, -25.0341, -31.7055, -79.983, 56.35, 56.3667, 56.35, 32.8167, 35.8667, 44.0833, 44.2644, 44.3394, 34.3167, 32.7464, 32.7017, 64.9767, 37.0031, -28.1, 50.9664, 51.565, 38.2186, 50.6333, 50.6333, 50.6333, 50.6333, 50.6333, 46.3292, -31.4628, 40.77, 37.5081, 4.28, -28.9, 46.1928, 40.917, 41.9858, 41.9117, -38.65, 42.4167, 16.9, 30.03, 61.8667, 62.6243, 71.1, 40.0833, 68.6333, 68.6333, 68.6333, 51.2333, 58.4561, 51.2333, 51.3, 48.8878, 36.065, 32.5269, 38.9539, 57.71, 68.6667, -23.8697, 40.8822, -23.8553, 50.1833, 43.9758, 38.8072, 45.4178, 42.8833, 67.8833, 47.03, 36.9833, 37.0014, 55.9, 48.1925, 48.2138, 53.3333, 39.7358, 58.133, 47.8678, -12.2, 50.8833, 50.9333, 47.1156, 54.2389, 49.5667, 39.0753, 44.3333, 43.9833, 44.75, 47.1064, 54.25, 42.45, 53.8, 53.8333, 51.735, 41.5167, 49.65, 55.0989, -27.8333, 62.1086, 44.5358, 42.9403, 35.7269, 31.9881, 35.7, 38.9689, 46.5186, 45.5833, 42.6667, 42.8267, 43.35, 43.3247, 43.3167, 54.79, 42.0833, 38.9339, 33.3217, 48.9833, 49.0, 46.0089, 45.6583, 41.0097, 19.5189, 39.5181, 45.5261, 43.6833, 61.1, -28.95, 38.8833, 39.5039, 45.1667, 41.5631, -29.6953, -29.678, -29.646, -29.7368, -33.8167, 37.3733, 32.2342, 30.2717, 46.14, 33.3767, 33.3947, 33.3503, 33.3833, 66.8167, 56.93, 65.28, 33.5667, 43.0492, 53.7983, -33.7622, 77.72, 6.166, 15.483, -23.567, -22.5, -40.869, -48.783, 38.5778, 49.3167, 5.9, 57.57, 58.79, 43.75, 43.7667, 43.7667, 43.7167, 44.5667, 37.9, 45.8, 51.55, 52.4317, 60.08, -16.667, -16.633, -7.33, -15.91, 40.18, 40.6, 38.0, -18.217, 40.9567, 37.3789, 40.667, 53.6, 48.9761, 40.1064, 45.8081, 45.8167, 51.3, 36.8964, 50.1833, 17.3, 37.7081, 35.3444, 35.4244, 51.6333, -20.3422, 31.4403, 42.4036, 44.7667, -27.939, 40.1667, 48.2, 64.4044, 48.1806, 49.7833, 32.8833, 39.165, 47.2417, 28.6617, 49.5753, 36.417, 36.0, 15.742, 60.7192, 52.4, 52.45, 23.03, 12.55, 40.1, 36.35, 29.5175, 29.5, 47.95, 55.2667, 42.9167, 39.3669, 49.1333, 45.6214, 64.2381, 42.9164, 48.3056, 33.0667, 36.5992, 36.5914, 34.75, 43.9281, 59.3, 51.5, -22.88, -35.5147, -31.2994, -28.5211, -28.5481, 38.8, 53.3167, 29.7333, 42.095, 33.0736, 56.217, 26.75, 53.1, 40.75, 46.245, 38.0667, 42.8947, 40.7586, 57.6, 8.15, 34.45, 8.3, 44.0833, 45.9167, 45.8833, 45.8833, 45.8833, 36.909, 51.2, 52.983, 54.3, 52.58, 51.1631, 43.8667, 46.067, -6.07, 0.52, 31.4358, 52.75, 33.294, -33.3949, 41.5575, 41.5272, -32.0486, 44.55, 49.7667, 57.7158, 40.9394, 50.8, 58.4, 58.3942, 48.6606, 51.08, -40.35, -34.75, -34.8085, -34.7495, 41.25, 33.3833, 40.5092, 44.75, 13.983, 44.3539, 36.6833, 45.3014, 40.05, 38.9581, -12.2741, 44.8, 42.4833, -29.1, 40.65, 38.4, -32.25, 42.5872, 42.5372, 46.2, 60.6, 49.665, 42.7833, 43.5667, 48.4181, 39.35, -29.7583, -29.6823, -29.6224, 43.3081, 33.1203, -33.283, 49.2667, 43.95, 59.6, 48.7903, -5.48, -24.75, 53.5744, 53.3856, -37.295, 62.02, 37.1367, 37.133, 37.1894, 32.45, 45.3833, 43.4158, 48.25, 47.1, 53.9, 55.1833, 48.3833, 49.2, 31.3028, 36.0956, 35.7564, 34.2392, 37.8325, 47.1, 32.1333, 36.05, 36.05, 36.05, 36.0528, 35.9461, 37.2036, 30.4183, 47.05, 48.9333, 47.0333, 47.75, 49.0333, 47.9667, 47.9428, 49.0167, 47.9217, 43.0622, 40.9717, 40.9167, 40.9167, 40.9611, 29.2414, 39.0422, 39.1342, 39.1197, 47.8333, 40.2669, 40.185, 45.1775, 44.7333, 44.7167, 47.7472, 47.7517, 46.6667, 43.7047, 46.7833, 47.9711, 42.8939, 53.1833, 46.4667, 53.1833, 53.15, 42.9, 42.9667, -18.98, 36.4667, 43.7667, 47.2436, 39.45, 43.8833, 43.0175, 30.7189, 45.9414, 45.8333, 44.8, 60.7275, 43.35, 44.8136, 34.5356, 41.65, 33.5167, 27.23, 34.25, 39.4608, 13.067, 45.7728, 45.7833, 39.7, 38.91, 40.6019, 35.1664, 35.1664, 42.4244, 45.0, 40.4861, 36.7394, 33.2, 40.1, 48.2675, 60.5918, 34.2594, 41.9667, 31.4833, 47.3, 32.9506, 67.0333, 42.3833, 49.0833, 40.7817, 47.4011, 44.1333, 49.8667, 42.6261, 53.9167, 43.95, 47.0258, 50.5167, 39.2167, 45.35, 39.2042, 40.2306, 39.9667, 38.4306, 49.8833, 44.9167, 44.9167, 36.4261, 48.9167, 43.4667, 43.05, 43.8925, 37.4667, 45.9917, 46.8008, 44.6542, 38.3353, 38.2922, 49.5, 39.7833, 46.3872, 38.2758, 47.0833, 37.4, 47.0831, 41.061, 47.0, 42.2167, 42.2167, 39.0056, 38.3758, 36.6128, 40.7578, 45.6333, 39.0, 50.4667, 47.4883, 50.5167, 47.4733, 47.4597, -33.53, 36.7425, 37.7333, 45.4167, -62.217, 50.48, 40.4167, 41.5461, 40.4022, 39.65, 37.1756, 39.0, 35.2353, 39.6439, 36.1056, 39.7858, 41.2981, 42.5833, 39.3542, 43.1167, 42.5719, 43.0167, 46.8736, 36.45, 45.6167, 41.1019, 32.7019, 33.5667, 36.0667, 32.7169, 36.0811, 30.8333, 37.2592, 37.6025, 39.3475, 40.2667, 40.2833, 36.0175, 31.79, 33.0286, 33.3592, 34.8231, 34.8667, 35.64, 38.8664, 40.1408, 41.8833, 45.4667, 35.6, 41.4167, 43.2025, 37.1833, 37.2, 33.4825, 34.8461, 37.2672, 33.1678, 45.4622, 33.0353, 34.85, 40.1, 34.7667, 47.1333, 43.1167, 51.5, 34.1997, 42.9, 49.1, 38.8161, 34.2528, 44.9833, 34.2486, 33.4964, 44.4983, 44.5331, 44.4983, -37.2622, -37.2614, 40.3503, 40.7333, -16.7614, 54.5667, 46.55, 40.3833, 36.0333, 39.8789, 41.5167, 38.9906, 37.8331, 39.6333, 37.8167, 31.8931, 34.0219, 34.8831, 35.5206, 34.06, 43.2356, 54.0978, 54.25, 50.6258, 33.7608, 44.4167, 50.4167, -33.9029, 45.37, 37.3589, 48.6167, 36.5939, 41.1586, 49.0333, 44.4908, 44.5169, 40.6167, 54.5833, 65.9, 33.25, 42.1667, 43.2333, -34.2487, -34.3183, 39.7378, 57.11, 43.2, 43.1833, 43.1833, 46.5667, 66.533, 47.3833, 41.7203, 76.4167, 54.3381, 44.5175, 40.4864, 39.65, 53.6, 31.5167, 53.2167, 34.4833, -13.9747, -19.6, -31.48, 52.935, 49.1139, 49.0858, 42.76, 42.1, 42.4078, 48.1997, 54.0731, 39.9364, 43.3833, 41.3511, 42.6, 41.3275, 67.8333, 47.7333, 55.5833, 43.7186, 47.2667, 41.7139, 36.5806, -38.2241, 55.0167, 42.7467, 37.8444, 40.85, 42.75, 37.4078, 31.1964, 16.7, 41.1536, -42.9831, -42.9858, 43.35, 53.317, 50.2675, 61.28, 37.2822, 42.3647, 36.2631, -54.283, 40.4833, 26.82, 20.6756, 20.72, 40.6608, 40.6344, 20.67, -9.4333, -7.25, 26.1, 31.925, -24.083, 41.18, -33.01, 13.4836, 13.5833, 25.93, 25.46, 16.47, 21.0, 9.027, 26.85, 32.383, 24.07, 23.217, 19.9, -16.6, -4.28, -16.73, -22.783, -6.51, 40.5, 41.22, 55.45, -23.43, 7.211, 14.5833, 14.5, 17.9783, -10.817, 27.92, 41.367, 64.22, 48.8, 43.4, -35.75, 36.467, 43.55, 43.5167, 43.55, 33.511, 51.7833, 49.4331, 42.3, 38.6867, 64.9, 52.7, 42.0, 25.333, 35.583, 35.2133, 48.448, 23.4, 10.583, 10.6, 26.583, 57.133, 40.317, 30.4119, 30.3772, -32.3634, 62.1592, 58.2, 49.95, 46.4119, 42.3833, 60.3828, 2.82, 2.8, 40.32, 40.78, 40.467, 31.9, 24.65, -35.0778, -35.0479, 38.2, 48.1603, 65.0072, 65.01, 57.72, -30.9537, -30.9841, -31.0261, 39.15, 38.5253, 36.7044, 40.2092, 43.3833, 34.3344, 34.3347, 50.2833, 47.02, 18.2583, 31.412, -34.0111, 53.03, 55.6, 38.88, 32.17, 58.59, 17.9, 27.72, 59.32, 60.15, 58.4111, 51.8889, 33.6267, 35.8489, 35.8161, 32.8819, 41.6686, 35.8517, 46.65, 42.7858, 37.4833, -2.2, 36.7028, 36.6817, -30.2126, -30.2204, 38.617, 59.3831, 59.3867, 59.3831, 47.667, 26.233, -19.43, 50.033, -19.45, 46.35, 52.95, -26.1831, 47.7, 51.6667, 39.6953, 35.2831, 38.98, 32.539, 63.75, 64.1417, 64.1406, 48.5167, 33.37, 44.367, 33.117, 40.533, 31.9175, 36.8, 22.52, 19.15, 29.8894, 38.6197, 52.1667, 53.95, 50.367, 37.0, 38.033, 34.55, 52.7167, 25.6, 38.85, 49.5364, 51.4142, 33.1167, 42.8114, 39.65, 39.7078, 42.9667, 42.9333, 46.5667, 34.246, 57.29, 52.5, 49.9475, 39.97, 55.3503, 32.8, 40.0136, 20.0, 20.9167, 27.433, 49.25, 47.45, 43.5667, 41.45, 47.433, 65.0192, 20.1, 59.2381, 59.4503, 59.2433, 59.5167, 60.7667, 59.2667, 20.87, 36.1389, 36.77, 20.85, 60.0977, 19.9, 19.8211, 20.5803, 37.567, 41.817, 69.939, 59.1223, 20.85, 20.7603, 63.38, 52.4367, 42.9375, 34.2314, 44.4633, 15.317, 44.8772, 37.4725, 45.0333, 45.0, 44.65, 44.65, 36.7333, 44.65, 44.8833, 44.8833, -6.3, 41.567, 52.2833, 56.45, 51.5144, 29.4706, -75.45, 63.77, 64.27, 58.33, 48.7714, 35.85, 32.5111, -18.2292, -18.2303, 58.32, 63.73, 68.7833, 68.7833, 68.7833, 56.67, 56.68, 56.68, 41.9, 63.4453, 63.4667, 64.173, 35.117, 34.9, 34.717, 60.8181, 51.53, 60.8008, 6.117, 36.2572, 40.5511, 53.4806, 53.635, 53.4792, 32.5, 34.85, 35.2, 60.9992, 61.0, 61.2164, 61.1828, 61.0539, -26.4008, 52.0831, 43.9664, 39.933, 42.817, -37.7333, 32.3, 42.8167, 43.2667, 46.2553, 46.4167, 31.7044, 39.7425, 34.0967, 43.1667, 38.0667, -37.6486, 39.3644, 39.35, -20.3658, -20.3531, 43.25, 43.2333, 43.2833, 43.3, -37.825, 50.1833, 34.8872, 38.2794, 60.3008, 70.6805, 55.3, 30.4839, 41.5667, 30.5031, 39.6442, 35.585, 48.5281, 43.55, 51.5608, 41.7675, 42.7561, 32.8442, 37.0225, 61.66, 42.15, 33.28, -19.083, 50.1667, 20.75, 20.7947, 63.6, 34.0678, 39.6969, 44.1186, 47.1686, 30.6153, 49.8333, 48.3, 49.25, 49.2, 49.2667, 49.3, 49.2833, 49.3, 36.3158, 46.5667, 36.3189, 59.86, 30.233, 52.7214, 46.0667, 30.6, 59.8167, 59.7733, 59.8083, 59.8439, 38.3706, 35.2028, 40.4006, 51.5833, 33.65, 49.0, 39.6833, 39.6667, 39.7233, 52.4656, 21.0333, 39.8, 42.15, 43.7053, 44.1167, 39.7706, 56.01, 48.9989, 44.25, 38.2553, 61.0167, 33.067, -18.0631, 65.8269, 65.8197, 35.57, 41.8042, 34.7167, 34.7433, 65.2397, 38.58, -17.83, -17.917, 8.733, 6.39, 45.75, 45.8, 40.2708, 43.8322, 47.4667, 50.3667, 47.6833, 48.783, 46.5, 45.7317, 37.7822, 39.0, 45.1667, 40.8667, 41.6, 46.1667, 36.2747, 62.3681, 9.48, 33.98, 44.5333, 41.6403, 40.0892, 48.5353, 48.2383, 26.2028, 26.2281, 46.4328, 45.3192, 51.75, 43.5833, 62.62, 62.6331, 43.8667, 39.3167, 64.5867, 35.9333, 43.1647, 47.4828, 46.35, 45.85, 50.5333, -31.8714, 51.7333, 37.7408, 40.2667, 41.6331, 40.2817, 40.2172, 32.8333, 36.1956, 40.7514, 42.6858, 38.6494, 44.0333, 42.4247, 42.7433, 42.8003, 36.2667, 39.2189, 44.65, 44.6819, 37.4833, 44.3628, 42.0333, 42.0333, -83.0, 59.07, 58.2506, 34.3697, 44.3744, 43.3311, 41.9381, 41.7361, 40.4356, 42.6167, 44.4333, 35.8783, 53.4167, 47.6856, 34.395, 36.3756, 48.7167, 34.3519, 34.3389, -43.2006, 43.6747, 45.35, 42.5483, -33.0789, 35.75, 47.8083, 45.6667, 45.7333, -29.4227, 51.65, 32.9667, -5.062, 53.6356, 33.1497, 42.3806, 51.6881, 32.933, 31.7, 56.13, 57.63, 39.55, 42.6422, 50.855, 40.6472, 29.7653, 36.3886, -43.4144, 44.7597, 40.6044, 71.9831, 32.6775, 24.067, 44.4169, 50.433, 12.189, 35.2167, 65.6, 31.2547, 31.2819, 46.7225, 61.0667, 62.05, 63.95, 49.1667, 40.9317, 50.75, 42.9333, 68.3167, 6.917, 47.3889, 60.3, 60.5186, 59.3494, 61.15, 48.8639, 47.75, 23.12, 40.3, 40.3031, 34.7872, 46.0333, 42.7594, 48.5431, 47.4167, 48.5428, 50.2833, 50.25, 50.2833, 48.5667, 10.8, 19.4297, 43.0031, 53.2167, 50.6, -31.8846, 38.7817, 32.2842, 48.9667, 57.2667, 41.4764, 41.4667, 46.8833, 43.7139, 33.9833, 38.5172, 38.55, 33.9228, 47.5667, 65.2017, 40.4925, 40.8, 43.9, 35.0833, 40.5233, 61.9872, 33.7044, 40.5525, 40.55, 50.7839, 32.1833, 38.8669, 48.0, 50.1, 44.4503, 37.5194, 38.8586, 37.6542, 46.0261, 46.0003, 44.95, -34.5194, 60.85, 60.8333, 60.8333, 60.65, 42.6828, 42.5119, 42.5972, 46.5172, 55.2, 31.8583, 31.8878, 31.8328, 20.967, 22.8333, -0.25, 31.3625, 46.6311, 45.4486, 38.6175, 34.2333, -37.6833, 38.6003, 63.8675, -53.017, -53.1, 35.6842, 47.8667, 46.5917, 44.7053, 47.8, 51.478, 49.0833, 34.6, 38.9333, 27.3194, 34.3167, 40.4917, 34.3978, 34.3925, 44.8667, 44.6678, 31.52, 40.175, 46.9075, 20.18, 24.7, 48.3758, 41.15, 35.4333, 62.42, 62.41, 49.35, 49.3667, 31.867, 50.9167, 33.6483, 44.9661, 37.55, 49.4, 48.6731, 50.1703, 49.1456, 49.9678, 52.4342, 61.1994, 51.0425, 69.6006, 22.5, 54.6, 54.0167, -32.82, 34.6997, 33.2725, 34.5211, 36.5381, 46.7186, 46.6056, 46.5833, 54.1764, 59.6863, 62.0833, 67.4257, 37.9, 60.7528, 49.7833, 45.6453, 39.0717, 52.2478, 67.7414, 71.0633, 56.04, 56.03, 60.2667, 60.1044, 59.9481, 60.2, 60.2, 60.1042, 60.1667, 60.1, 60.2028, 60.2531, 60.2, 60.2167, 31.8667, 29.867, 29.86, 51.7833, 65.8078, 33.7381, 42.3208, 63.66, 63.65, 42.7742, 46.4833, 48.7, 45.0667, 49.0667, 30.1, 40.7167, 40.6833, 52.683, 57.24, 34.73, 32.1808, 35.3297, 36.3481, 35.4442, 37.7558, 32.15, 53.8, -30.63, 41.0167, 22.0, 26.9, 46.1667, 41.2647, 36.0942, 33.8128, -9.7, -89.0, 42.9419, 38.5667, 33.2372, 45.3653, 39.38, 35.3331, 34.21, -17.39, -17.5851, 50.4667, 50.9333, 34.8172, 44.3256, -19.9, 52.1278, 38.6656, 50.1, 51.0058, 46.665, 19.158, 48.6106, 45.8289, 45.8619, 45.8258, -28.2061, 37.95, 37.7717, 33.1667, 43.8069, 36.3825, 34.8039, 48.08, -23.4422, 46.6667, 58.39, 50.8456, 51.0167, 57.42, 69.5667, 50.1517, 41.1056, 50.867, 51.5903, -25.322, 46.85, 51.8578, 51.6267, 43.5908, 52.3167, 49.9292, 57.39, 37.9614, 45.9925, 46.0044, 46.0139, 49.75, 40.95, 40.9528, 35.95, 23.8, -38.1355, 35.28, 35.25, 35.0, 25.8175, 39.4833, 47.3864, 47.3919, 47.4333, 40.9, 34.5167, 36.5667, 35.75, 35.7425, 34.6189, 39.2667, 41.3214, 31.9844, 24.25, 26.933, 57.2178, 48.8833, 27.8189, 39.0733, 44.5167, 35.0567, 35.0836, 31.8814, 31.9478, 31.9156, 50.5, 50.4667, 44.5222, 44.8444, 40.265, 53.45, 34.0903, 45.8333, 45.85, 47.9167, 39.2083, 58.6167, 58.6167, 54.105, 35.9672, 43.9064, 41.3061, 55.4333, 55.4, 45.6833, 50.4833, 37.3147, 29.8286, -13.233, 37.5581, 35.283, -39.38, 62.6033, 50.7381, 30.2333, 44.3083, 42.3333, 30.7, 53.45, 32.0161, 32.9203, 39.1611, 39.2333, 43.65, 43.6542, 45.5139, 54.4517, 47.4389, 41.9353, 38.6644, 52.1667, 34.47, -33.41, -33.4915, 33.6183, 49.9167, 43.9325, 39.3617, 43.2994, 47.0375, 39.3756, 41.7333, 51.35, 19.645, 19.7333, 19.7192, 43.2833, 32.2167, 44.0167, 42.0, 34.833, 8.367, 45.9919, 43.3, 50.3683, 37.3333, -35.5194, 30.75, 31.1833, 42.2269, 43.6408, 39.4, 48.4, 48.3478, 47.8992, 53.4167, 37.6667, 35.4842, 53.4, 33.367, 41.3072, 43.85, 42.3, 34.4, 29.167, 33.317, 37.8167, 37.875, 32.217, 41.4, -9.8, 53.5333, 60.5637, 62.6162, 62.2207, 16.55, -42.9, 41.5422, 34.9897, -42.8339, -42.8897, 34.9894, 32.7264, 32.7125, 32.6933, 42.8667, 46.63, 46.783, 56.92, 37.5317, 31.3747, 51.1833, 66.7417, -24.37, 51.9908, 50.3131, 51.535, 50.1364, 34.8358, 34.825, 50.3242, 59.4033, 66.2167, 31.2, 44.4167, 64.5697, 63.08, 38.6844, 59.03, 65.8797, 47.8017, 35.5567, 40.817, 54.3128, 40.9678, 1.433, -42.717, 64.39, 55.5, 66.7333, 55.733, 50.65, 50.65, 34.9094, 45.2236, 48.2, 35.0567, 35.0708, 53.1833, 48.1989, 51.0, 40.4517, 49.321, 40.9667, 40.9167, 41.25, 61.62, 60.91, 36.6831, 43.6667, 54.1667, 42.7461, 42.7989, 49.1289, 43.6478, 55.4908, 36.6167, 42.3528, 36.8333, 36.8483, 36.8422, 34.6808, 60.9167, 32.85, 38.0517, 49.3833, 26.0283, 25.9989, 33.3258, 34.8, 34.8219, 34.8222, 57.15, 58.33, 70.7333, 70.7667, 59.9667, 63.595, 64.217, 63.8081, 47.05, 42.4897, -33.9795, 46.9914, 39.4578, 39.8333, 19.6347, 40.5453, 47.45, 47.3833, 62.1833, 51.7683, 47.8831, 50.7328, 15.333, 49.3292, 43.6058, 31.0767, 32.81, 59.6833, 59.7444, 59.7161, 59.7458, 59.6419, 25.4833, 25.5, 25.5011, 52.47, 29.12, 14.283, 29.3364, 29.36, 42.7919, 43.9281, 41.85, -35.5833, 44.85, 46.6833, 37.7, 22.3, -9.417, -9.9, 52.333, 71.0106, 20.5089, 21.3239, 21.3153, 21.3167, 20.85, 19.85, 46.9833, 65.5858, 45.6847, 52.7489, 36.865, 58.1072, 57.8, 41.05, 41.0478, 40.4664, -27.83, 53.3908, 42.6833, 39.3667, 45.1125, 41.4, 32.8111, 49.3667, 49.3667, 60.8983, 55.45, 76.5, -35.7151, -33.9306, 36.7167, 37.2992, 44.5, 40.1592, 33.7092, 49.3667, 49.3833, 49.3833, 49.2833, 35.8103, 36.8492, 31.6753, 39.0308, 52.3331, 46.9667, 46.9728, 40.1, 52.4, 55.86, 31.8456, 43.4406, 52.167, 50.1519, 64.296, 43.5667, 49.2333, 48.6142, 57.89, -10.5844, 52.3333, 52.3667, 42.4172, 32.9375, 41.45, 44.9406, 38.6667, 51.6, 40.6306, 41.3167, 39.9336, 35.7706, -36.6697, -36.6613, -33.8511, 38.52, 38.52, 59.4167, 39.6678, 43.9481, -22.483, 67.0831, 37.133, -36.9833, 64.12, 64.09, 35.895, 37.9969, 42.8, 43.4378, 47.6, 34.5128, 35.9, 34.29, 47.6156, 40.05, 33.817, 44.3122, 44.3119, 44.3592, 46.1333, 46.2061, 46.1236, 29.6408, 40.5831, 61.1833, 36.5644, 33.8847, 37.3186, 54.4, 29.5189, 29.6167, 29.6381, 30.0675, 29.98, 29.4717, 29.7456, 29.9167, 29.6222, 29.7667, 38.35, 48.017, 37.3858, 43.6, 37.4664, 44.0122, 43.4167, 42.2292, 41.7167, 43.7828, 41.7175, 42.3167, 42.5939, 49.4833, 50.3, 39.3533, 51.4392, 41.2167, 45.6, 42.9764, 47.5833, 39.1, 48.9667, 50.25, 41.9, 42.98, 19.92, 40.417, 35.38, -12.8, -12.067, 30.25, 28.63, 30.13, -9.89, -9.5, 20.18, 12.583, 23.983, 34.48, 51.1, 45.9667, 47.0667, 61.73, 38.1042, 41.25, 42.25, 42.7831, 52.8167, 52.8667, 52.8167, 52.8833, 52.8167, 42.25, 56.0333, 56.0167, 30.005, 58.63, 15.317, 21.15, 37.2594, 37.28, 42.0831, 52.5167, -20.8192, -20.8447, 66.0667, 51.2333, 34.0211, 37.1639, 39.1439, 20.38, 40.167, 26.65, 37.5, 16.75, 26.9, 61.1667, 18.33, 26.42, 46.9, 36.9167, 51.417, 44.6856, 45.77, 53.7667, 39.4167, 51.717, 18.1333, 37.8117, 46.4833, 52.2, 52.2667, 42.7333, 42.7181, 47.5333, 42.7197, 34.1164, -36.1039, 50.5664, 42.2333, 47.2336, 38.283, 62.75, 62.75, 48.3425, 48.3847, 36.767, 56.39, 49.95, 39.2333, -36.2136, 44.3667, 39.7667, 36.5625, 46.35, 38.2667, 40.5153, 45.05, 36.0028, 40.8556, 40.8833, 44.3564, 52.3667, 38.4167, 38.4167, 37.2275, 38.4014, 38.365, 38.6167, 45.9, 45.9228, 38.3319, 30.7064, 36.0833, 45.3167, 36.07, 34.7, 34.6439, 41.2403, 30.7439, 30.45, 45.35, 30.0628, 31.4, 52.0678, 47.8667, 47.35, 27.15, 46.4625, 37.0153, 44.3636, 43.3167, 44.3981, 36.6992, 59.51, 57.79, 51.1833, 62.9667, 43.34, 54.4767, 49.383, 38.09, 38.0381, 37.9311, 44.9089, 38.0653, 33.0333, 53.2, 43.1667, 64.8667, 58.9, -18.633, 41.665, 42.0, 41.6686, 30.5667, 44.25, -32.4419, 37.15, 55.9153, 25.383, 41.4, 59.1, 59.55, 39.8167, 43.7, 26.55, 64.8292, 46.2942, 45.9353, 60.5956, -2.746, 47.1667, 0.61, 15.33, 7.4, 4.4, 40.0378, 0.35, 45.3333, -11.01, -20.01, -28.65, 38.8764, 22.733, 23.233, 35.417, 55.5831, 46.2447, 37.28, 33.9336, 43.8383, 43.5139, 43.3456, 43.8333, 43.5317, 43.5164, 39.75, 39.7033, 37.9333, 42.3942, 60.38, 43.3708, 61.89, 61.87, 36.4167, 54.367, 44.6881, 64.45, 33.7572, 35.0, -20.0, 67.47, 39.93, 69.3833, 69.3667, 49.4167, 49.4833, 37.1364, 37.0856, 24.5, 53.467, -22.83, 18.42, 18.35, -24.7167, -6.367, -25.733, -22.25, 48.0428, 35.517, 33.65, 59.28, 54.183, 60.05, 39.4, 33.633, 43.05, 47.4333, 47.4167, -11.583, 47.3833, 50.2167, 48.4167, -46.5, 47.6531, -22.333, -17.05, 48.0667, 38.3, -14.8, 47.8056, 59.7494, 67.25, 67.33, 42.6286, 49.8833, 41.4256, 42.1039, 26.5, 26.724, 10.7, 62.6667, 62.7692, 63.0319, 63.1417, 62.8667, 8.44, 60.8028, 69.22, 69.2167, 69.2331, 48.0, -15.82, 70.45, 40.6564, 37.9214, 26.4622, 44.3456, -5.533, 43.9, 32.8489, 38.2833, 40.5208, 51.3667, 32.5667, 32.8342, 40.51, -5.32, 1.617, 1.62, 24.667, 35.62, 72.4, 52.4167, 68.9025, 68.6069, 69.1403, 69.5817, 69.5756, 68.4, 68.8489, 68.8483, 68.4775, 68.4319, 68.4142, 69.0478, 69.5072, 69.55, 69.0669, 69.0714, 48.3167, 37.467, 37.0, -26.9, 36.7981, 37.2364, 39.0647, 42.5069, 42.5269, 34.6989, 39.0667, 39.45, 39.4833, 39.4167, 39.0667, 40.6167, 39.7075, 39.825, 39.7667, 39.7825, 39.7164, 40.5972, 41.6317, 41.3656, 45.3833, 49.6167, 49.0333, 39.9, 47.85, 42.9333, 42.3, 35.6236, 50.55, 50.5, 56.2333, 43.755, 27.8, 39.8144, 65.9833, 66.0, 36.5833, 41.7417, 67.7, 33.7086, 22.717, 59.8591, 41.98, 37.8725, 14.75, 52.97, 50.3667, 49.2978, 49.3333, 19.817, 56.8, -18.6494, -28.5, 48.7156, 46.6825, 46.5, 46.6667, 46.6667, 71.1, -23.867, -18.4, 38.05, -25.8428, 59.9308, 36.1, 61.9167, -17.5249, 47.2667, -1.967, 58.45, 21.3333, 40.0, 49.7167, 38.3833, 43.7483, 46.67, 48.5614, 45.683, 59.555, 58.4667, 58.4667, 58.4667, 68.3, 68.3, 68.3167, 68.3167, -46.417, -29.7783, -29.7796, -29.7752, 50.5, 57.4867, 28.8028, 39.3667, 43.3, 35.6514, 53.85, 28.05, 19.567, 27.233, 37.9167, 37.9233, 42.9531, 41.6092, 41.6328, 42.5189, 39.1181, 33.9167, -17.717, 4.5667, 40.9, -27.6117, 45.4478, 63.75, 63.75, 63.75, -20.23, -20.3, -3.783, 64.52, -27.183, 34.633, 27.236, 20.68, 24.86, -25.467, 55.633, 32.55, -11.3, 48.6167, 38.167, -7.783, 24.256, 43.8167, 52.2667, 44.3247, 38.5333, 46.4656, 32.8167, 34.1472, 45.8183, 45.7858, 46.0667, 46.5833, 54.4167, 49.9, 34.5853, 48.75, 34.6, 53.35, 35.8333, 49.9833, 33.72, 37.8833, 40.1167, 40.3333, 32.8294, 43.4, 18.4653, 47.6181, 47.6303, -1.83, 78.7833, 78.8, 38.05, 56.0994, 3.13, 51.3781, 39.83, 40.13, 40.133, 78.0667, 24.345, 38.433, 46.4833, 46.4911, 24.153, 54.9, 0.035, 2.7, -24.2591, 60.8167, 36.7, -2.705, 39.1, 36.573, 57.8667, 37.0, 24.9178, 45.3833, 49.5833, 55.5333, 55.5833, 55.5333, 53.85, 44.4167, 44.4189, 44.4167, 44.8128, -27.167, -67.17, -43.53, -33.62, -38.37, -36.98, 18.717, 46.3197, 47.5833, 48.5833, 40.7939, 30.6, 41.1, 44.03, 42.4, 38.8, 37.75, 40.5, 43.37, 40.9667, 41.03, 40.9, 45.685, -7.62, -11.11, -12.51, -3.127, -4.267, -17.85, -21.2, 47.24, 47.2256, 20.8, 42.44, 42.4492, -13.35, 70.4831, -13.81, -18.95, -18.41, 53.983, 34.7633, 38.4931, 52.717, -25.0, 42.217, 68.6081, 44.5833, 39.2833, -32.8831, -32.8999, 56.95, 48.967, 60.6831, 61.2167, -22.317, 51.75, 52.2667, 69.1667, 34.15, 43.217, 34.683, 24.7833, 18.03, 20.7, 19.62, 16.77, 16.76, 16.467, 19.0, 28.3089, 56.8331, 49.183, 45.3667, 38.267, 38.433, -0.35, 34.2, 53.8242, 23.2, -12.6594, -30.25, 45.6275, 41.9828, 33.2206, 31.5253, 36.3967, 37.3781, 37.55, 37.5908, 43.3194, 43.4867, 45.3681, 45.5833, 39.5, 30.4844, 31.9622, 42.3, 42.8, 39.7133, 39.7347, 30.2875, 30.2167, 30.3361, 34.7967, 30.2333, 30.3333, 35.55, 39.08, 35.7103, 32.3333, 35.3167, 37.5922, 35.6214, 32.3367, 32.3206, 35.5931, 44.05, 42.2667, 35.1858, 38.7533, 41.5, 66.3797, 39.5667, 41.55, 28.4, -11.183, 47.0083, 36.7333, -33.8878, 37.7778, 37.7778, 9.7, 42.805, 19.083, -4.783, 29.317, 25.9, 26.817, 26.9, 44.35, -6.25, -6.183, -6.1, 62.0167, 32.1103, 0.637, 19.55, 29.033, 56.683, 5.9167, 42.3031, -1.6, -31.117, 36.4258, 42.1, 39.9233, 41.4992, 46.7703, 42.11, 46.9258, 46.8844, 42.1167, 37.0056, 48.6, 37.25, 61.8592, 61.8564, 61.8856, -15.783, 56.3, -32.1011, 42.6667, 44.2167, 39.1167, 69.0, 65.98, -32.933, 70.93, 70.9331, -0.353, 57.37, 41.9333, 41.9797, 39.7358, 60.25, 62.167, 63.44, -33.7964, 39.783, 44.567, 60.4667, 40.8992, 61.71, 25.6333, 46.2, 43.883, 30.5228, 30.9153, 33.9047, 52.8833, 52.8833, 34.4758, 30.5333, 53.2333, 52.9333, 52.8667, 62.6, -17.91, -11.73, 23.4, 38.32, 36.4167, -2.367, -2.567, 33.2544, 18.215, 38.8417, 42.4667, 44.9381, 36.4236, 16.43, 29.9592, 55.9167, 21.5, 21.7, 35.7667, 43.1333, 32.7692, 36.7222, 42.0347, 44.4169, 38.2833, 41.7833, 36.4161, 36.1222, 36.1167, 38.5911, 38.5853, 42.9944, 42.4942, -0.9, 33.517, 50.9, 56.65, 49.6667, 35.3886, 35.7783, 31.6783, 50.9267, 36.48, 39.5444, 50.7167, 30.2003, 40.3611, 38.0333, -30.6167, -36.14, 36.7506, 31.85, 51.633, 34.7522, 42.7325, 42.7267, -32.4972, 37.5436, 39.1025, 49.2096, 40.7419, 31.7667, 31.9, -35.083, -35.0936, -35.0936, -22.9494, 51.7967, 34.6578, 23.184, 41.2683, 31.65, 31.5075, 21.705, 38.0833, 38.1964, 47.7669, 53.5319, 38.75, 45.9411, 31.35, 33.9833, -26.53, 21.917, 32.933, 27.117, 41.15, 22.62, 30.33, 27.33, 37.033, 9.333, 40.45, 40.345, 36.795, 36.817, 7.667, 54.9167, -26.6644, 45.0831, 40.8667, 36.6, 28.88, 29.3, 34.433, 44.617, 22.02, 41.03, 0.45, 24.907, 13.0833, 41.133, 29.73, 29.0, 39.767, 25.72, 25.068, 45.283, -19.83, -7.1, -17.73, 20.867, 34.9831, 26.3, 62.6014, 39.6553, 39.3094, 49.85, 40.5333, -26.2, -26.139, 5.453, 37.5669, 35.9717, 60.4833, 36.0, 37.5333, 30.2861, 36.3167, 38.2667, 40.3375, 44.0839, 34.3592, 33.7775, 16.7333, 40.3333, 40.3161, 52.283, 44.4233, 44.5561, 45.7167, 36.6003, 38.0633, 25.1936, 38.2547, 59.333, 60.8139, 66.6297, 66.4989, 18.31, 41.55, 45.4731, 46.0333, 46.0167, 41.5033, 6.05, 60.1781, 60.1244, 60.1542, 58.8653, -1.317, 33.5311, 44.6453, 35.8489, 35.8311, 31.6833, 31.4825, 30.8289, 39.7667, -33.97, 57.7514, 48.4333, 56.93, 20.18, 37.0833, 48.5617, 37.4278, 37.1467, 47.3144, 44.65, 47.4819, 47.3258, 55.41, -12.022, 53.5331, 64.73, 32.6161, 62.1733, 9.87, 45.3456, 11.415, 6.165, 34.1469, 56.6, -33.83, 49.4667, 61.8792, -19.007, 18.0514, 41.7861, -7.169, -33.633, -33.45, -17.963, 9.994, 4.867, 70.77, 21.42, 46.6786, 46.65, 12.1, -21.8, -21.767, -24.393, 40.9931, -15.467, 33.0758, 33.0764, 33.1, -20.6672, -20.6569, 50.9117, 21.57, 44.3833, 45.3497, 18.2264, 30.4453, 39.05, 30.5108, 58.2989, 58.3, 58.4003, 58.3567, 58.3869, 58.4058, -34.8456, 46.1333, 46.6, 40.8833, -34.546, 46.55, 41.3322, 41.0819, 34.9667, 26.86, 63.6842, 63.685, 43.8, 57.333, -16.77, 42.4, -30.3081, 63.2317, 61.8456, 61.8919, 61.6777, 3.327, 35.58, 44.0167, 46.95, 44.35, 48.1, 62.4, 62.2, 62.2331, 62.4019, 48.37, 45.1139, 37.7953, 53.2178, 20.9333, 60.3867, 9.58, -1.25, 52.05, 48.05, 48.4089, 13.9833, 34.566, -14.45, 53.967, 26.35, 26.35, -33.9551, -33.9703, 43.8353, 11.138, 16.16, 37.967, 31.55, 51.1817, 50.0656, 40.4167, 20.5569, 37.6, 21.695, 21.6792, 20.8997, -42.417, 20.8461, 20.8906, 19.7356, -3.645, 19.5336, -17.215, 35.67, 49.4253, 48.7708, -35.1, -35.1, 64.4256, 64.2831, 64.2814, 49.833, 49.2, 48.4, 0.28, 56.9667, 56.9739, 16.95, 34.18, 50.4, 55.033, 44.65, 64.2167, 64.3306, 55.12, 37.0, 37.068, 42.2347, 42.2833, -31.9822, 29.033, 21.19, 21.1833, -27.7119, 54.9667, -5.88, 63.327, -30.7847, -30.75, 43.367, -7.05, 2.155, 54.7167, 48.1892, 48.3042, 51.73, 21.3167, 65.8497, 51.7344, 44.7281, 44.5897, 2.02, 57.23, 50.5028, 56.73, 56.68, -24.6925, 64.3267, 50.6278, 54.57, -14.2964, -14.2961, 39.4, 15.33, 40.6439, 41.1, 49.0667, 51.05, 62.4831, 48.3, 53.8, 46.23, 48.65, 37.05, 50.6667, 50.7, 50.6667, 50.7, 50.7167, 50.6833, 50.8167, 47.5833, 0.317, 16.4833, 1.28, 10.6167, 51.5667, 20.0167, 20.0, -13.8, 50.067, 56.85, 37.0286, -37.1169, 22.1297, 51.0333, 50.7167, -5.9, 36.583, 14.017, 31.5, 67.15, 11.13, 11.133, 7.3, 20.5222, 21.4233, 21.45, 21.4167, 67.1297, 41.6767, 37.5264, 37.2506, 39.2, 61.55, 30.05, 40.967, 37.7, 61.2331, -33.38, 38.25, 68.65, 61.8381, 41.0833, 41.1333, 41.1381, 10.38, 57.65, 12.1, 38.6078, 38.7953, 34.433, 36.2133, 39.1, 39.1208, 39.2972, 38.8439, 39.0333, 56.2, 21.12, 66.0933, 14.147, -14.8, 20.9625, 1.233, 1.0833, 19.5167, -34.3412, 49.4167, 49.4, 49.4, 70.5, 9.55, 48.45, 41.2, 49.95, 24.8, 24.9, 54.2, 49.8, 10.917, 37.3, 44.95, 44.85, 41.9, 39.02, 39.5, 55.15, 37.2, 45.6, -7.57, 37.7, 69.4667, 69.4633, 53.7, 70.083, 41.46, 46.883, 40.6, 50.0, 59.0, 68.4419, 68.45, 68.44, 59.05, 61.5, -16.517, 62.3206, 18.55, 49.383, 50.202, 58.52, 56.18, 48.6775, 49.0392, 48.5833, 59.35, 32.6664, 28.9069, -32.44, 58.85, -16.833, -9.95, -35.09, -20.7097, 40.562, 47.8331, 38.8, 59.66, 31.8353, 36.35, -17.4561, 38.7411, 62.1831, 51.633, 63.33, -10.217, -10.2, -17.817, 32.6167, -13.53, 33.895, 39.467, 66.337, -1.417, 60.3667, 57.35, 54.833, 37.9842, 62.3339, 49.9167, 45.4, 49.23, 15.467, 41.25, 51.2978, 39.49, 41.3667, -33.6856, -33.6886, -14.4437, -14.4589, -14.4833, 27.7, 49.183, -33.7122, 50.23, 35.15, 39.85, 34.58, 59.067, 19.4333, 47.8667, 40.85, 32.5589, 62.4131, 63.12, 63.1203, 19.68, 54.8831, 41.08, 68.9967, 69.0167, 67.1386, 35.5, 54.1167, 43.7144, 36.7333, 14.4, 14.482, 38.78, 56.32, 45.767, 55.7331, 49.8, 41.4, 51.267, 19.6328, 19.4917, 35.8111, 20.8294, 39.3833, 39.3667, 40.7258, 19.4736, 20.7, 38.8, 46.9, 47.65, 64.0, 12.572, 39.4833, 52.9981, 42.7667, 42.9389, 44.6661, 47.8967, 44.1833, 33.6667, -26.58, 63.9667, 43.02, 39.9833, 57.8, 57.75, 48.5583, 35.6872, -36.098, -36.1058, 44.4, 44.4333, 47.8667, -41.2833, 39.9, 36.85, -31.6183, 42.25, 47.9422, 51.25, 47.9425, 47.5339, 53.7358, 31.9167, 67.9333, 49.9, 49.95, 49.95, 49.9, 49.8667, 49.8667, 49.8667, 49.95, 49.8667, 49.85, 43.9014, 56.0333, 56.0333, 46.1333, 41.75, 52.15, 64.95, 53.5667, -6.15, 56.1, 55.25, 55.27, 66.5167, 66.5592, 66.7153, 65.8, 65.7831, 60.1714, 60.1531, 59.8692, 65.6725, 65.385, 41.8172, -31.0711, -31.077, 47.7242, 45.0, 45.0, 64.9831, 60.7236, 60.6692, 60.3667, 60.5797, 60.5917, 34.9667, 43.1667, 41.45, 43.25, -4.1, 28.8167, 12.85, 34.3, 36.76, 48.6692, 43.9072, 43.3606, 61.4833, 36.2253, 39.85, 46.2111, 46.1333, 42.0944, 48.4167, 49.8, 49.7833, 49.7833, 49.7833, 42.5608, 42.595, 45.1967, 47.4172, 37.9567, 40.7592, 36.1947, 36.9031, 40.6489, 46.4864, 45.0667, 45.0667, 31.0158, 34.6033, 40.3833, 40.4, 40.3967, 51.25, 40.7275, -15.95, -35.7236, 42.2167, 45.4, 49.2, 49.2167, -2.767, 37.833, 30.25, 34.267, 31.8408, 35.4667, 35.7831, 51.9667, 30.05, 30.0747, 34.5367, 52.8167, 52.8167, 60.27, 48.05, 46.75, 55.3567, 43.6842, 54.07, 36.0067, 36.0333, 36.0725, 48.5667, 58.72, -37.8167, 51.47, 41.2428, 41.0833, 44.4628, 47.7, 39.4206, 36.1333, 36.15, 64.9156, 57.25, 57.25, 57.25, 37.6167, 24.5667, 24.555, 24.5833, 58.967, 19.7281, 26.45, 38.65, 47.617, 34.3, -36.2304, -36.2254, 28.65, 71.1333, 29.267, 25.45, 49.9667, 15.6, 26.167, 26.3, 25.667, 35.467, 46.633, 11.767, 49.433, 16.433, 37.5, 33.433, 38.55, 40.2167, 22.85, 32.3, 48.183, 27.833, -34.675, 34.7558, 66.9767, -35.8833, 18.433, 39.7833, -16.1176, 46.3667, 50.82, 55.2339, 54.3756, 50.4, 16.63, -1.969, 39.3, -4.883, 19.9697, 62.2, 58.1, 21.6883, 21.6792, 0.923, 45.85, -5.036, 48.1167, 22.2139, 22.2333, 60.32, 53.8333, 31.1333, 60.95, 44.4, 42.9503, -3.433, 36.7, 52.6667, 45.5667, 52.85, 49.1833, 45.9667, -28.3344, 40.5167, 47.3714, 47.4667, 31.0658, 31.1167, 57.4694, 37.7233, 56.9, 39.3167, 46.445, 59.3, -33.1414, 43.75, 41.2453, 45.3533, -28.8, 49.7333, 49.6333, -15.6547, 39.2667, 38.4833, 40.667, 37.115, 37.4536, 49.6667, 44.1667, 51.4667, 51.5167, 51.4667, 10.05, -2.95, 40.7167, 22.333, -26.5737, -26.5544, 50.95, 35.8583, 35.8542, 59.367, 35.1833, 37.6361, 35.2, 35.2578, -35.6569, -35.7114, 45.8333, 41.2097, 36.5194, 17.97, 35.8575, 41.4903, 41.4911, 41.4783, 36.0086, 44.2167, 44.2167, 44.2333, 44.2667, 44.25, 44.25, 36.1033, 33.6775, 27.5311, 42.05, 27.5, 42.7239, 46.8333, 40.8606, 41.7436, 16.901, 36.2069, 47.7981, 43.9, 32.356, -39.88, 18.297, 24.958, 27.901, 42.05, 58.6794, -62.217, -29.617, 44.0167, -32.87, 52.95, 57.6131, 57.649, 44.75, 46.25, 53.0, 37.9283, 35.1967, 35.2975, 55.3333, 45.0333, 19.0667, 37.0175, 47.05, 50.2, 32.7247, -10.42, 30.6167, 30.4333, 45.3167, 57.7667, 39.9, 69.733, 69.7255, 63.7833, 59.92, 48.15, 48.15, 41.73, 40.2058, 40.0972, 35.47, 58.958, 44.6122, 58.6, 48.517, 45.083, 42.63, 59.33, 52.667, 39.15, -33.98, 41.6167, 67.8497, 67.83, 43.8667, 39.6619, 0.5167, 31.495, 60.7806, 42.1333, 47.02, 63.58, 43.9, -0.4, 28.3, 28.2764, -0.1, 13.067, 25.933, 1.016, 44.933, 43.4333, 43.4667, 32.7128, 62.1, 3.333, 54.0, 54.05, 54.0167, 54.05, 53.9833, 54.05, 58.1914, 67.4667, 67.9908, 67.6517, 67.6956, 67.7842, 67.9992, 68.0167, 68.1692, 68.2294, 31.96, 49.75, 38.7658, 38.8867, -6.083, 67.7317, 40.5, 41.22, 40.09, 50.3667, 59.9708, 58.2003, 64.16, 62.1, 70.68, 42.2839, 46.65, 35.55, 55.7331, 41.5786, 42.1333, 42.2008, 42.1667, 42.1469, 42.9533, 62.1472, 55.58, 51.9833, 51.9833, 50.217, 50.8469, 51.1689, 53.9603, 58.8, 67.1667, 51.5567, 51.7625, 53.5, 65.06, 49.6833, 48.1, 51.5203, 56.3167, 50.4333, 64.45, 48.2906, 59.87, 59.87, 62.53, 62.5, 2.02, 43.25, 52.25, 42.0, 56.52, 43.5, -29.78, 31.2667, 37.8, 42.2833, 49.0275, 54.8, 46.3, 46.3117, 40.9025, 41.3247, 38.8619, 35.8819, 35.8181, 35.95, 33.4167, 41.3053, 67.5923, 34.7, 49.15, 64.1942, 50.3381, 66.9, 40.8, 38.4, 49.467, 55.033, 45.6, 35.67, 33.567, 54.3, 42.2, 44.4, 37.5142, 10.2333, 57.8, 57.7511, 57.8047, 55.6831, 55.617, 20.8333, -10.17, 45.3833, 33.2742, 35.667, 20.2333, 20.225, 33.57, -75.0, 34.6, 60.45, 42.2, 34.88, 64.75, -33.83, 40.55, 40.7, 59.5056, 61.2706, 61.2528, 63.8442, 63.8831, 40.4583, -4.717, 48.75, 53.283, 51.0831, 67.2789, 67.3, 55.083, 12.883, 69.53, 57.75, 48.606, 58.69, 50.8658, 50.9628, 52.2, 21.9086, 37.5333, 54.18, 0.333, 49.85, 55.1, 48.533, 56.45, 58.3, 68.73, 55.3, 69.6167, 69.5833, 48.433, 54.333, 67.09, 12.0, 46.3, 38.87, 50.533, 31.2, 19.65, -4.917, 52.867, 62.6667, 59.6244, 59.6631, 59.6631, -6.2, 53.2292, 49.3992, 59.713, 38.9119, 51.233, 58.25, 49.6, 47.6781, 38.3, 37.979, 37.5, 52.15, 42.95, -17.84, 37.7689, -28.2, 38.5086, 46.15, 46.0714, 50.65, 50.8833, 50.6333, 43.2831, 20.8, 59.53, 61.6167, 37.7333, 51.2675, 40.6, 60.35, 9.387, 64.75, 37.1, 41.75, 47.333, 7.3333, 66.8497, 46.633, 62.9344, 62.8831, 64.4597, 63.84, 48.8308, 50.0, 33.0583, 49.574, 36.6, 48.6667, 61.0831, 63.45, 46.5, 5.3544, 26.133, 56.84, 49.159, 13.167, 57.7331, 53.35, 54.2, -3.4, 25.15, 5.937, 47.633, 51.7528, 60.2864, 60.385, 60.4542, 60.3753, 60.5, 61.2331, 5.605, 67.25, 66.8667, 46.7667, 46.7667, -20.567, 5.65, 5.2, 12.383, 60.6964, 60.8903, 66.7, 67.5697, -15.4818, 22.3167, 37.0, 66.0083, 37.5, 40.28, 48.217, 56.25, 11.25, 56.35, 7.5333, 9.467, 13.1625, 47.4333, 44.0331, 62.0346, 50.0, 43.7167, 63.05, 63.16, 46.133, 55.0, 53.0, 43.6, 45.03, 49.383, 56.0331, 53.967, 67.37, 54.4, 56.65, 40.03, 57.133, 50.37, 46.53, 46.3792, 49.033, 50.1, 40.0575, 48.05, 55.85, 62.8, 2.95, 45.3556, 58.164, 56.33, 55.92, 56.02, 63.1092, 62.2575, 62.2031, 59.31, 51.7333, 42.2, 47.9, 64.51, 50.2533, -27.63, 55.0, 45.433, 58.61, 48.4842, -26.1, 48.2517, 43.5667, 63.7169, 46.3, 49.4, 48.03, 51.1617, 53.6956, 53.9717, 51.8553, 50.8503, 49.5192, 48.9364, 47.8069, 33.82, 35.167, 53.55, 3.6333, 21.1539, 4.18, 3.12, 2.746, 3.1167, 3.53, 5.3333, 40.72, 3.62, 3.8, 48.881, 1.483, 6.92, 58.983, 24.22, 47.58, 68.5333, 68.5333, 44.467, 67.8167, 67.8167, 64.2975, 64.1189, -35.1712, 65.5167, 53.25, 53.9031, 42.0333, 20.1333, 19.5494, 20.7583, 20.7008, 20.7, -25.8428, 56.3, 50.1014, -33.2333, 39.1, 37.92, 42.533, 36.15, 32.817, 6.715, 38.6311, 26.333, 58.1, 48.5133, 58.717, 41.3, 60.3, 60.2581, 49.4289, 36.1, 43.4833, 59.517, 43.083, 25.017, 25.1, 35.9242, -15.7828, -15.7814, 49.2806, 28.82, 63.025, 62.9, 62.7983, 62.8919, -10.167, -10.2, 70.3289, 49.633, 54.367, 41.717, 49.933, 41.65, 34.144, 58.233, 34.233, 55.4667, 37.8167, 45.25, -15.4875, 15.8, 52.0, 51.7667, -27.47, 7.467, 61.9489, 37.9, 5.3, 49.5603, 42.95, 55.1, 40.23, 39.983, 53.2167, 60.7219, 39.417, 42.2, 42.9, 60.3833, 32.17, 58.1, 55.2833, 66.3681, 65.995, 66.1653, 60.9, 58.967, 29.222, 53.3, 68.35, 60.3933, 58.55, 69.264, 66.89, 66.9597, 61.4648, 63.4882, 8.7333, 8.7167, 35.1333, -18.933, -32.2258, -36.335, -33.1332, -36.8803, 36.7764, 41.0, 43.4403, 36.2667, 58.08, -37.25, 35.017, 49.5667, 35.34, 52.933, 47.333, 56.6, 36.13, 51.72, 44.85, 51.9, 42.35, 48.2994, 45.3, 48.1333, 46.4167, 45.8167, 47.5667, 53.9167, 58.95, 27.167, 11.32, 14.9, -34.133, -7.25, 49.3, 5.3, 22.7761, -1.617, 45.65, 52.4667, 52.45, 44.5833, 44.6253, 41.0186, -33.73, 38.5333, 46.8167, 46.8667, 51.5333, 48.8, 48.2167, 47.6333, 51.8667, 48.2833, 46.6167, 54.7667, 54.7667, 54.7667, 63.1333, 55.1333, 45.6, 48.9, 46.1833, 48.4167, 45.9333, 40.8072, 64.85, 64.8333, -33.48, 49.0833, 49.0833, 45.7406, 40.7392, 48.25, 48.95, -28.55, 45.465, -24.1116, 68.5, -30.88, -6.73, 30.2192, 36.5192, 40.4, 30.0917, 32.9069, 34.6639, 40.2964, 40.4122, 30.205, 36.5411, -27.81, 40.0633, 33.7997, -19.65, -28.21, 44.55, 6.4583, 21.3567, -50.333, 45.84, 45.5528, 41.6475, 35.0464, 26.2283, 33.5453, -34.456, 27.43, 24.03, 34.6, 20.8789, 36.3842, 39.4689, 31.55, 48.3656, 48.3667, 39.3, 39.2833, 60.9617, 49.35, -33.2, 67.76, 36.93, -18.3325, 18.0331, 38.7667, 38.7303, 29.2694, 50.8333, 66.28, 32.35, 44.7, -18.233, 44.4667, 43.7022, 40.6, 40.75, 40.0333, 28.0206, 27.9914, 52.4, 39.0333, 43.55, 43.5492, 40.8667, 38.2044, 47.8333, 34.16, -37.8692, 41.825, 44.5994, 47.95, 42.2414, 43.5667, 44.5833, 41.5269, 32.6333, 39.7489, 45.3333, 43.2667, 33.0642, 28.1042, 49.0667, 34.2467, 30.0206, 32.4833, -33.2833, 30.125, 30.2167, 38.0247, 41.6333, 42.2667, 30.1853, 33.8642, 44.3089, 47.25, 42.3167, 32.3333, 48.8167, 48.8333, 42.3667, 44.1833, -37.2313, 39.9333, 37.9667, 51.8667, 35.2928, 32.8242, 42.5936, 43.4333, 38.9075, 38.9772, -33.1006, -33.1006, 62.8333, 34.45, 34.5031, 28.5333, 40.4167, 47.2667, 47.3167, 33.7542, 33.6667, -42.0097, -42.0067, 51.4333, 39.7203, 44.7167, 36.9825, 45.6, 36.15, 43.0803, 63.8933, 38.8167, 35.4878, 43.4483, 44.2489, 27.2833, 32.8067, 37.2131, 44.0644, 38.4931, 39.3183, -42.1, -42.1178, 62.4528, 32.8522, 35.0967, 45.95, 38.3167, -34.0398, 42.4308, 43.9981, 44.5619, 37.9411, 46.8667, 41.5167, -16.417, 38.0936, 47.0333, 37.4933, 38.07, 44.8956, -0.704, -21.94, -6.9, 47.6833, 44.2394, 40.3597, 40.3667, 34.2044, 45.8333, -35.3778, -35.3288, 32.7228, 38.9, 45.6258, 38.9, 61.15, 40.7442, 40.6333, 40.6833, 40.7178, 47.25, 40.6233, 40.65, 40.6331, 18.283, 31.0717, 35.5, 18.9167, -2.27, 20.8733, 20.7894, 20.8292, 22.567, 22.8, 23.43, 34.6833, 39.7156, 44.4911, 40.05, 40.05, 39.7333, 42.8278, 40.1203, 36.0828, 39.7556, 34.7411, -31.0164, 43.1828, 43.05, 36.15, 47.13, 42.6753, 42.8153, 34.1, 40.1167, 45.1333, 35.1833, 48.0833, 47.3767, 58.74, 57.67, 58.34, 42.55, 34.3086, 54.25, 54.25, 51.133, 48.7622, -32.97, 50.9, 53.7458, -33.28, 52.3667, 58.22, 37.0833, 49.05, 49.1667, 42.9242, 42.9833, 47.83, 50.4, 29.8097, 65.0997, 31.58, 21.83, 21.833, 38.75, 58.35, 63.17, 68.05, 52.2333, 52.2, 42.7803, 42.4486, 28.9517, 36.05, 22.033, 18.183, 49.6333, 45.5119, 22.5, 22.5, 43.0581, 43.0333, 43.0608, 60.6219, 41.4233, 41.6117, 61.1978, 61.0392, 61.0439, 61.0569, 45.3833, 42.4333, 62.9667, 46.4228, 41.3167, 41.3167, 41.3408, 41.2847, 41.3119, -8.267, 61.1, 61.0617, 50.2, 27.5683, 27.5333, 27.5333, 18.2833, 47.8742, 39.65, 34.8831, 38.1817, 38.1922, 42.8644, -15.5748, 61.1, 38.4833, 26.23, -27.1, 40.3442, 47.0736, -0.833, 42.7667, 51.4167, 20.68, 18.433, 38.0636, -34.7, 28.53, 16.7, 32.3, 32.6136, 16.45, 25.5, 30.55, -36.067, 33.2889, 16.75, 4.55, 20.91, -38.53, -24.7, 27.9225, 39.6833, 35.6564, 16.77, 37.8339, 36.1667, 35.6167, 36.2117, 36.0719, 35.6542, 36.25, 36.2333, 36.0469, 35.5678, -0.9, 48.3, 39.55, 36.65, 67.26, 60.05, 40.08, 35.53, 47.4333, 49.5792, 40.1417, 35.1692, 55.617, -41.5492, -41.5397, -41.4667, -41.5, -41.4194, 48.2181, 35.4783, 31.6756, 40.9017, 39.0847, 41.7833, 40.2003, 44.9231, 40.1692, 34.4989, 49.0, 46.3333, 34.7508, 34.7917, 45.3681, -18.2, 53.4117, 46.8167, 45.9333, 45.5333, 41.7019, 43.93, 42.6194, 37.3917, 33.3369, -28.6306, -28.6133, -37.8565, 33.0353, 52.421, 29.55, 38.9583, 42.6992, 45.4167, 35.2436, 41.9667, 36.7711, 44.7583, 38.7642, 39.0083, 42.7172, 42.4167, 34.6097, 34.5583, 43.7667, -66.733, 64.64, 31.42, 39.7022, 41.25, 41.53, 54.2331, 61.6267, -17.55, 16.42, 48.3, 42.2644, 26.7458, 25.41, 27.55, 21.12, 10.517, 16.32, 46.3667, 47.0831, 10.558, 0.017, 43.8658, 43.8789, 43.8167, 43.8167, 43.8225, 45.85, 44.6833, 20.73, 48.7667, 28.38, -34.45, 48.5833, 22.68, 2.5, 15.0, 19.85, 45.3167, 45.3333, 46.8333, 45.2833, 53.75, 53.75, 53.6333, 19.54, 29.9175, 41.6378, 41.8, 33.0536, 29.9075, 28.97, 17.33, 40.5839, 37.3053, 26.2422, 37.9825, 37.8639, 37.7511, 38.0494, 28.75, 46.3667, 46.4, 47.6667, 32.7675, 15.453, 46.25, -12.08, 38.7833, 48.6167, 46.3547, 11.8, -11.52, 19.85, 28.6331, 20.15, 35.3811, 45.4, -16.5, -30.8, 24.1667, 24.167, 20.37, 16.33, -34.972, 38.5333, 47.35, 47.35, 39.6833, 28.9831, -12.07, 26.18, -22.1, 23.58, -29.383, 46.15, -23.13, 18.42, 55.15, 55.15, 38.3167, 41.3333, 38.3014, 48.7833, 49.9167, -29.917, -29.9, 19.95, -4.0, -22.0172, 16.1, 31.98, 47.4, 47.4167, 4.9, 13.3333, 17.9, 16.75, 19.22, 19.33, 37.2008, -22.2833, 21.67, 33.1728, 44.1014, 44.3544, 50.8833, 50.8833, 50.9167, 55.4167, 44.7, 44.6831, 39.2292, 36.4194, 31.1494, 42.05, -22.2406, 39.3256, 47.5586, 38.2667, 38.3333, 54.75, 36.2292, 36.9028, 44.5328, 37.685, 40.3333, 40.3333, 36.2981, 43.6264, 49.05, 38.4161, 54.55, 40.23, 48.1864, 54.8, 51.1231, 47.2467, 52.55, 48.2881, 37.2833, 53.8, 54.292, 31.7633, 28.8208, 31.1417, 36.8644, 38.9597, 38.8803, -34.567, 53.2231, 35.8333, 37.9567, 13.133, 52.4, 51.2, 54.7433, 50.4831, 39.0, 34.2, 30.97, 48.7664, 28.27, -30.4667, -30.5963, 61.1833, 51.4, -27.8386, 51.4, 51.317, 51.4358, 66.76, 69.55, 37.5108, 44.85, 60.2, 65.0975, 9.083, 68.155, 60.73, 29.7856, 51.783, 52.4569, 41.3, 44.9833, 46.3, 44.9, 59.9592, 45.9397, -36.3608, 43.3597, 36.3817, 37.3789, 36.3333, -12.567, 46.6, 51.8833, 38.833, -69.5, 47.95, 59.3, 46.3619, 51.1344, 48.5406, 45.3667, 35.915, 35.7875, 35.84, 40.8761, 54.2206, 60.72, -34.9482, 53.1025, 47.8606, 34.1742, 45.7192, 38.3167, 38.25, 41.5167, -28.8836, -28.8789, 40.7244, 0.459, 42.5889, 38.4794, 42.1953, 34.0456, 54.883, 25.533, -28.95, 47.1, 51.3, 52.0, 40.4897, 60.1331, 46.4, 29.57, 62.2317, 72.333, 49.4667, 42.9831, 50.562, 56.76, 51.2833, 64.9, 51.8331, 49.1167, 45.3, 47.5, 49.05, -23.85, 42.5833, 48.35, 49.6333, 49.7, 49.6333, 49.6333, 49.7, 49.6833, -4.1, 39.433, -82.517, 56.373, 53.8631, 54.5003, 35.2833, 59.6167, 69.9, 39.5608, 63.7167, 33.55, -23.08, -18.23, 36.0833, 39.2333, 38.7756, 40.9475, 40.9667, 37.8564, 35.4139, 35.3817, 36.1325, 41.9667, 44.1, 43.1833, 46.3747, 46.4167, 40.5864, 47.0111, 46.9056, 46.8847, 47.0492, 33.3614, 44.2, 30.4064, 33.1228, 33.8706, 35.6503, 35.8458, 37.7767, 40.7833, 39.1828, 40.75, 38.0408, 35.7922, 43.2631, 41.5747, 37.2333, 14.591, 47.9467, 42.7817, 45.0, 45.8, 16.27, 41.6833, 29.667, 28.42, 30.68, 24.37, 24.78, -41.8997, -41.8983, 48.4036, 47.9733, 48.4, 48.41, 48.3833, 3.63, 37.0222, 50.767, 10.6, 30.0592, 34.6667, 39.25, 41.8017, 31.1631, 32.3167, 0.38, -13.3, 51.9256, -26.133, 50.933, 50.6892, 37.5544, 45.5, 53.85, 46.0725, 58.53, -33.45, 63.3206, 46.83, 56.4831, 49.367, 42.1231, 41.3667, -29.431, 44.3167, 21.9742, 21.9839, 26.833, 26.88, 52.6, 48.0681, 61.0808, 61.85, 35.4083, 50.6833, 50.7, 50.6667, 66.4897, -13.97, -13.789, 40.8667, 37.3833, 44.6331, 34.6667, 40.7083, -12.1, 40.7247, -75.42, 49.4119, 50.4128, 49.5, 46.96, 34.1789, 46.95, 37.9864, 39.9, 39.9167, 45.8, 10.0, 39.15, 39.1894, 24.86, 23.95, -43.63, 39.0878, 40.1514, 35.4606, 40.6953, 39.0294, 40.8483, 40.85, 40.85, 38.8825, 33.6333, 46.9681, 40.8508, 56.05, 46.9558, 44.3753, 40.8333, 40.8233, -78.467, 32.45, 53.95, 36.2858, 47.4083, 61.1333, 52.2094, 47.5989, 49.7128, 51.6167, 39.9333, 33.0, 35.6047, 42.8133, 59.59, 57.9831, -10.0, -25.48, 43.983, 39.7556, 36.3042, 36.2033, 44.35, 47.2, 34.8261, 44.35, 44.3333, 47.0022, 41.6458, 47.1083, 52.517, 59.4333, 42.1297, 26.233, 15.38, 45.6333, -19.4, 40.77, 41.717, 58.4, 39.8569, 26.535, 52.0833, 46.2667, 54.05, 43.6, 35.58, 35.05, 48.23, 48.297, 49.45, 52.7, 62.6594, 62.6592, 62.5456, 51.6344, 36.2358, 50.85, 51.15, 2.283, 34.4978, 38.7167, 28.8728, 33.95, 46.4444, 46.1, 37.5, 28.45, 41.8128, -28.8343, -28.807, -37.9543, -28.7853, 58.11, 49.0333, 43.75, 55.0125, 30.0, 45.1278, 33.4992, -33.4901, -33.3675, 53.95, 33.9167, 33.9378, 48.3681, 48.3894, 44.0911, 41.4, 45.5697, 66.0914, 47.8139, 67.1833, 44.5, 38.9692, 40.8858, 45.9656, 43.0603, 43.0333, 45.9514, 46.5833, 37.4833, 40.0, 42.7081, 44.6167, 34.1942, 56.3831, 49.35, 47.2833, 34.8364, 34.9167, 34.7272, 46.0378, 34.75, 39.7267, 41.8167, 41.8264, 41.0667, 46.7511, 34.2936, 42.2472, 39.2444, 43.5, 47.85, 24.35, 46.4333, 65.4236, 65.5225, 37.6922, 37.7119, 44.4717, 37.6928, 44.05, 44.0667, -33.9272, 69.6, 44.1333, 44.0833, 30.2889, 16.62, 32.5811, 45.6667, -17.817, 45.4956, 30.7394, 45.6983, 36.3775, 43.7392, 52.433, 43.55, 31.43, 37.8, 61.048, 59.35, 46.0656, 46.22, 62.76, 56.83, 56.08, 56.85, 58.22, 61.83, 62.55, 30.7425, 34.5, 34.4667, 41.6256, 41.6203, 53.2833, 53.3, 53.3167, 53.2833, 53.3167, 38.4058, 38.4333, 35.7522, -12.33, -4.45, 47.0431, 46.1725, -28.17, 31.0167, -12.785, 43.1392, 43.2, 37.3908, 41.1333, 41.1311, 36.6044, 41.1489, 45.7475, 41.2664, 45.3786, 41.1531, 38.1061, 43.3217, -3.5, 3.117, 51.73, 17.45, 62.11, 35.3667, 37.8717, 39.5328, 41.6381, 36.6, 36.6167, 31.9672, 31.9833, 40.7478, 40.75, 41.6661, 41.7872, -27.6839, 50.5, 45.8814, 41.7344, 41.7, 41.7667, 41.7456, 37.3517, 42.4519, 47.6167, 45.51, 60.2439, 50.5633, 50.0114, -4.0, -4.033, 61.1217, 7.8, 54.733, 46.7506, 46.6333, 43.82, 61.8373, 47.9361, -11.32, 19.95, 6.17, 3.15, 57.89, 49.2, 34.6539, 16.7667, 43.0333, 37.0872, 43.0333, 51.15, 43.0333, 38.1947, 42.9833, 39.8972, -23.383, -23.333, 47.7167, 48.25, 37.9, 45.2833, 46.2667, 43.2119, -36.6722, 37.62, 49.75, 49.7667, 46.7492, 46.75, 40.1589, -23.4372, -23.4372, -23.45, 68.9, 50.2667, 43.46, 47.269, 32.4725, 46.1506, 32.5183, 32.3847, 32.35, 34.0103, 25.1, 22.367, 51.43, 46.3833, 33.8117, 46.3675, 33.7667, 40.2578, 39.7506, 34.7975, 44.7136, 45.2219, 37.5167, 47.4167, 41.5386, 45.8883, 42.5667, 45.9647, 46.5, 40.7875, 44.7833, 37.4833, 52.7231, -38.43, 47.45, 41.8333, -37.2822, 33.3667, 35.0097, 40.8333, 43.9144, 43.1667, 44.5667, 51.0667, 54.05, 54.0167, 70.3348, 14.8, 30.4, 50.0364, 32.3094, -31.542, 26.017, 35.0833, 48.95, 34.0347, 44.4833, -38.5333, 62.23, 58.433, -25.4, 61.3667, -32.3322, 48.55, 48.6333, 43.2833, 38.7708, 66.0425, 42.6722, 39.2, 40.8167, 46.35, 34.0178, 47.0833, 33.9333, 38.9453, 53.2833, 43.8333, 33.7833, 35.8644, 35.8583, 37.3581, 13.8833, 34.0511, 33.9381, 37.0564, 37.0547, 36.9897, 8.824, 37.2319, 37.2028, 25.9, 34.8, 34.7675, -2.05, 34.5358, 25.7, 7.95, 45.081, 35.7333, 54.4389, 38.0422, 45.9, 36.1028, 46.2667, 39.4333, 33.1356, 38.2333, 33.0125, 38.2281, 32.975, 38.1811, 38.115, 40.8333, 41.2808, 43.179, 48.65, -26.0, 48.0667, 64.36, 43.1631, 59.2167, 36.9692, 31.1333, 40.435, 39.6667, 44.8375, 40.1906, 40.0681, 51.65, 39.9, 60.2744, 32.9667, 68.0, 41.8553, 41.2647, 42.6408, 46.1442, 40.4333, 44.5, 41.9992, 45.6, 44.9167, 40.7, 46.5642, 44.9783, 29.3731, 45.5, 52.4832, 46.3667, 44.0828, 43.7925, -41.0556, -41.0567, -16.3842, 26.6833, 26.4986, -34.439, -34.4333, 44.55, 48.9, 30.3644, 29.5814, 31.1783, -8.85, 19.897, 19.88, -14.933, 51.9281, 33.6542, 33.6897, 53.805, 51.22, 50.02, 46.8833, -11.591, 43.1833, -34.0517, 48.3167, 34.45, 48.5167, 52.967, 41.35, -36.9731, -18.5203, 45.5733, 43.95, 26.75, 50.95, 43.5875, 45.2833, 54.3, -26.63, 30.9333, 51.7706, 43.9067, 45.785, 42.2, 53.897, 51.25, 51.867, -11.7833, 31.4269, 31.2361, 31.3131, 46.0, 48.5667, -15.52, 3.75, 43.1153, 61.7042, 38.2544, 49.652, 36.4192, 55.0, 5.5167, 65.62, 65.58, 65.5431, 41.4, 29.6756, -5.8, 30.2503, 34.6269, 34.6081, 31.9297, 8.417, -15.033, 50.2333, 50.3667, 32.0306, 50.65, 50.6, 50.6, 33.8225, -41.1492, 51.8167, 38.0, 38.8678, 55.7, 50.75, 50.65, 49.9167, 8.617, 62.64, 25.43, 35.0, 65.7667, 65.75, 44.42, 35.85, 38.6661, 58.79, -15.42, -15.3167, 52.0833, 34.05, 32.07, 45.5333, 42.8333, 42.9367, 42.7506, 61.4407, 48.45, 44.0333, 39.4167, 62.4167, 47.6981, 43.6658, 49.63, 47.8, 24.53, 25.6667, 47.0331, 28.88, -3.41, 15.1833, 29.58, 49.8167, 38.9, -3.233, 36.2303, 40.2333, 59.4, 64.58, 64.55, 40.5667, 45.8333, 48.2, 42.8294, 35.2983, 37.4167, 37.3817, 37.3208, 44.5167, 44.3667, 51.505, 59.9087, 58.6333, 69.5667, 56.05, 35.3333, 39.9667, 56.85, 56.8667, 56.8667, 56.85, 55.05, 43.2117, 40.0833, 45.7, 43.1, 52.2117, 45.6667, 39.1258, 49.55, 29.2358, 34.2339, 34.2, 37.1431, 46.6833, 50.2167, 50.2333, 50.2333, 50.25, 50.2167, 46.7333, 32.3667, 46.7, -2.62, 35.667, 30.167, 62.9781, 63.1431, 47.3, 9.6053, 50.9053, 50.85, -43.6578, 46.0667, -37.1, -5.49, 22.2, 0.051, -4.367, -5.117, 22.15, 27.85, 45.4167, 53.0167, -37.4155, -9.66, -9.517, -9.39, 8.53, 43.3, 59.933, -21.667, -1.517, 31.18, 16.2, 55.433, 68.3, 43.95, -21.1706, 43.9181, -21.1172, -21.15, 55.3, 45.85, 45.7833, 52.3333, 38.0667, 63.25, 40.3, 39.7167, 46.3, 33.1333, 33.1544, 32.6847, 32.8333, -54.499, -33.7791, 10.308, 45.95, 17.77, -5.2, -5.217, 45.5, 51.5, 9.2, 47.9619, 41.0167, 46.7781, 29.2, 36.9539, 40.8, 36.9878, 34.0919, 34.0356, 30.4653, 34.7, 38.1353, 41.8292, 41.85, 44.7983, 30.9392, 37.3475, 44.0, 43.9906, 38.1025, 45.1, 43.1406, 44.5833, 38.7369, 43.1333, 43.0833, 45.0025, 34.4, 34.917, 44.6167, 44.6633, 13.0, 40.8508, 40.4117, 40.4667, 40.3778, 40.3, 40.4831, 40.7, 39.4, 40.4633, 36.4, 40.5603, 19.3, 18.167, 16.667, 52.6667, -37.9664, -7.917, -25.798, -13.4, 59.55, 12.983, 53.467, -13.333, 34.1167, 52.1031, 34.82, 42.1833, 51.3167, 45.6667, 53.35, 31.1, 33.295, 45.2667, 43.3181, 17.9722, 47.9, 42.9667, -15.7167, -23.12, -19.833, 40.8344, -4.6, 47.3172, 47.4667, 39.9, 20.1833, 11.85, 22.86, 5.874, 13.23, 13.233, -18.05, 49.9681, 60.5181, 51.1833, 48.2175, -34.3745, -32.7427, 35.27, 35.5, 35.45, 65.2167, -2.5, 44.617, 57.783, 7.1, 7.0833, -3.483, 21.4783, 22.1306, 21.8667, 13.5, 37.6333, 21.2033, 21.3167, -27.4, 21.9189, 40.52, 20.6419, 59.1578, -2.28, 21.483, 21.5, 70.7006, 55.0833, 0.57, -0.02, 0.0, 57.8, 57.1, 21.5286, 21.5428, 21.5261, 31.267, 7.704, 55.25, 65.19, 3.755, 2.263, 42.2, 42.1492, 36.6667, 48.5667, 51.0, 44.7181, -9.55, -35.494, 38.35, 38.43, 8.15, 39.0, 65.15, 41.3167, 36.6, -4.05, 36.5994, -36.9989, 4.2, -26.7528, 58.07, 54.1, 43.9794, 43.265, 34.0583, 50.1667, 5.227, 57.3917, 57.3844, 42.0167, -3.229, -3.2167, 42.0078, 55.3717, 72.3794, 32.8567, 9.55, 46.0, -37.5976, 12.048, 48.7781, 44.45, 37.8172, 67.17, -33.467, 55.61, 55.6, 55.5714, 47.5167, 44.8419, 47.7828, 48.35, 48.3589, 47.8417, 42.2917, 48.3939, 60.6814, 60.68, 34.3947, 52.1117, 47.933, 58.317, 57.82, -20.97, 5.72, 50.3833, 37.1317, 39.6833, 27.9, 37.6478, 36.4947, 10.37, 30.5667, 7.38, 7.4, 1.5, 12.141, -21.2, 37.1742, 38.7833, 18.4308, 11.77, -3.133, 36.8, 22.03, 44.9, 42.1508, 43.0333, 43.1667, 53.354, 35.5158, 42.4733, 37.15, 42.9333, 37.4167, 37.335, 42.53, 21.983, 45.767, 58.0475, 46.8128, 46.75, 3.933, 4.0, 50.1028, 43.2625, -29.15, -7.3, -19.7419, -32.5219, -32.5211, -32.5031, 47.6667, -31.82, 43.817, 12.867, -36.8886, 12.917, -23.133, 38.25, 10.37, -13.7379, 10.367, -33.2894, 34.8911, 34.8358, 49.7, 49.8, 39.1972, 39.1028, 39.2, 39.1353, -5.811, 49.3, -10.4333, 65.4, 14.55, 40.99, 14.5, -12.0482, -12.0569, 38.6, 44.2114, 45.9511, 49.2667, 49.15, 44.0869, 46.3833, 46.2667, 46.3, -34.2508, 39.7889, 44.1542, 62.9861, 49.1, 64.9989, 8.97, 48.55, 36.1747, 49.473, 33.6989, 56.95, 39.55, 39.5436, 56.9667, 47.7028, 53.45, 21.3331, 50.65, 47.9, 52.55, 46.3333, 32.0389, 37.1089, 40.7667, 30.4, 41.7569, 40.8203, 51.35, 37.8, 35.9167, 35.9172, 39.2583, 45.15, 60.5783, 61.5831, 50.6333, -74.95, 31.5769, 49.3667, 49.1167, 36.3667, 48.8, 19.05, 40.5411, 40.54, 49.6, -26.533, 14.12, 44.0367, 46.1833, 42.1619, 44.855, 49.9, 49.9, 40.7964, 50.0, 45.3333, 45.3333, 45.0, 49.2167, -25.921, -41.25, 42.0494, -5.369, 10.55, 10.25, 10.3, 13.47, 30.1925, 48.7167, 24.7258, 24.7333, 40.533, -23.15, 42.5008, -21.1756, -21.1756, -24.98, 37.3036, -77.4167, 47.6308, 33.9, -32.684, 25.9492, 44.7667, 39.8253, 24.3, -21.1906, 37.3, -17.0672, -16.995, 38.3756, 42.2636, 44.0575, 30.3125, 46.3333, 46.3667, 68.8, -30.85, 52.65, 34.7392, 30.8356, 30.7667, 49.9, 47.77, -22.31, -42.6619, 18.251, 46.5, -37.775, -22.92, 18.1511, 35.0833, 33.1139, 32.9167, -25.5, 58.85, 56.22, 50.65, 58.71, 33.95, 48.8333, 33.8761, 33.9167, 39.4833, 39.4333, 39.4086, 45.4, 43.4417, 56.217, -19.4, -79.95, 40.433, 44.4906, 33.6333, 45.0983, -23.4, 34.1653, 36.8167, 36.85, 37.3333, 37.6667, 39.85, 40.5833, 43.4206, 40.58, 40.6167, 35.7072, 37.7747, 40.75, 44.5833, 44.6125, -46.883, 32.4714, 31.2114, 40.6161, 38.3778, 3.633, 37.5042, 37.5128, -22.017, 47.1, 53.45, 56.46, 44.2667, 35.5333, 43.7028, 43.8667, 38.7833, 40.8333, 38.6833, 38.4917, 52.7017, 64.6831, 54.175, 49.5325, 66.73, -27.3002, 39.15, 39.1667, 38.2175, 31.3336, 34.6367, 15.42, 46.2911, 46.3, 18.133, 53.3242, -23.15, -26.6006, 44.3, 46.5311, 46.5458, 50.0167, 31.7, -40.9089, -29.6587, -29.6481, -30.066, 29.7853, 69.72, 36.8425, 2.317, 41.3286, 43.305, -33.7654, 32.5403, 35.8036, 35.9156, 39.1342, 39.3908, 44.4706, 42.0647, 42.1128, 32.4567, 32.3667, 36.1167, 37.3339, 44.6411, 44.6381, 39.6211, 52.3333, 43.1803, 38.0167, 38.0131, 50.7344, 39.45, 39.4658, 39.4019, 46.5, 39.4039, 36.7056, 43.1833, 32.6667, -37.8, 49.2833, 36.3444, 58.55, 49.45, 40.0214, 40.0239, 53.6, 52.3, 52.3, -37.056, -25.5161, 49.8333, 38.4486, 38.4167, 39.1458, 39.8383, 40.2411, 49.6333, 46.75, 39.1019, -32.9131, 40.3458, -38.0, -37.933, -0.35, -2.55, 12.37, 35.3, 35.6, 20.52, 20.53, 45.75, 38.4833, -29.82, 58.1, 58.09, 36.267, 40.533, 49.1333, 49.1333, 1.683, 20.667, 54.333, 30.7478, 41.2211, 43.1631, 40.1642, 43.1544, 44.6719, 30.7358, 42.9892, 42.6681, 15.617, 44.9358, 54.0, 54.0333, 46.2, 45.5333, -20.067, 47.167, -5.8, 34.0044, 34.1333, 48.9, 49.75, 49.7667, 28.1228, 28.6836, 15.6167, 41.3914, 25.8819, 15.65, 48.85, 61.5664, 61.6167, 61.5333, 47.9667, -8.75, 4.813, 44.1747, 39.0228, 37.4031, 38.8722, 28.0372, -35.8119, 16.88, 21.317, -33.43, 21.3, 35.45, 36.25, 33.85, 49.6, 63.32, 39.4725, 39.4781, 48.067, -19.133, -10.25, 9.749, 16.73, -19.983, 18.0094, 21.3667, 19.5353, 19.5361, 28.9167, 45.0167, 44.8933, 43.79, 48.9367, 39.6167, 33.75, 33.9167, -15.833, -67.6, 47.8214, 36.5697, 32.3833, 18.2539, 18.1875, 40.5158, -42.7636, -42.7567, 50.3258, 36.7333, 45.1333, 36.7, 46.5044, 36.7581, 32.9167, 42.4167, 42.4292, 48.85, 30.1064, 7.565, 63.6167, 60.8833, 30.4, 34.8333, 38.6869, -3.42, -3.417, 47.4989, 44.5664, 61.3208, 33.25, 48.6008, 51.63, 36.7, 29.0, 23.1881, 43.1708, 41.8, 10.48, -26.32, 1.1, 0.023, -0.62, -8.933, -6.167, 45.5833, 34.8822, 26.1917, 26.1839, 39.25, -16.4423, 53.2667, 53.4167, 53.3667, 44.8889, 31.1331, 42.6519, 61.4181, 35.6022, 33.0667, 33.1533, -11.0468, 39.1267, 34.7056, 35.15, 31.1828, 26.565, 40.2064, 39.6339, 39.6, 50.7167, 49.8, 41.9953, 45.7833, 33.4522, 29.7, 44.3769, 35.3364, 35.3667, 34.3097, 39.4136, 46.3667, 62.9575, 46.8167, 31.435, 39.3528, 40.0167, 52.2667, 49.0667, 52.5833, 40.3392, 43.6167, 44.2, 44.1792, 43.1833, 63.7175, 63.6492, 33.1903, 33.1803, 33.0, 38.0844, 52.3833, 52.5333, 55.7167, 51.05, 45.1947, -77.8833, 45.9406, 45.9306, 38.3772, 63.6, 32.0097, 37.9833, 37.99, 45.5, 46.2833, 44.8872, 41.2514, 39.1333, 47.4825, 39.6522, 40.2156, 35.1447, 42.4106, 39.7844, 42.3092, 39.5833, 47.5808, 44.2667, 34.9167, 45.8383, 36.15, 45.8133, 35.2361, 46.3911, 47.1358, 35.6722, 45.2214, 34.1142, 30.8167, 47.7619, 38.3483, 39.2814, 45.5114, 45.5167, 37.285, 45.5333, 46.9833, 47.2667, 44.4333, 54.1333, 54.1333, 54.1333, 54.1333, 51.7167, 44.2333, 36.0183, 31.4664, 41.6333, 41.1431, 44.5833, 44.6167, 48.1197, 54.6167, 34.3906, 33.5714, 38.4617, 45.7, 33.536, 42.4422, 37.8333, 3.8, 36.283, 6.27, 40.8167, 45.1308, 36.7925, 42.2961, 42.3811, 41.8969, 40.3761, 50.0167, 50.0167, 50.0333, 48.4828, 48.49, 37.2767, 37.2839, 34.7292, 29.81, -32.2208, 43.576, 46.9161, 46.9167, 46.8947, 53.35, 62.917, -26.6136, -25.63, -26.5933, 40.0358, 40.0333, 35.505, 40.0489, 52.3425, 47.6992, 45.5833, 71.0331, 6.53, 35.5208, 20.833, 50.5625, 46.73, 27.77, 24.3, 1.02, 33.8833, -37.6655, 28.1011, -37.8075, 28.1136, 52.95, 52.8167, 52.8667, 52.8167, 35.2778, 49.2833, 49.3333, 46.833, 46.3689, 45.155, 45.45, -32.366, -32.35, 45.3167, 34.4278, 45.6775, 59.23, 46.6011, 51.1331, -42.4928, 38.5039, 30.6833, 47.3333, 50.95, 46.1047, 15.5333, 34.7261, 35.3447, 40.4575, 35.0564, 35.15, 35.1297, 34.5731, 1.533, 15.867, 31.607, 30.9044, 44.2, 29.05, 50.3667, 39.8075, -32.833, -32.883, 38.6, 9.817, 34.817, 21.5, 24.2, 23.383, -32.3937, -35.6902, 43.2358, 45.1167, 44.8667, 44.8742, -14.65, 39.8544, 53.1031, -29.6939, 28.27, 63.4431, 63.4229, -8.467, -34.2133, 37.2858, -33.25, -33.3, 26.0619, -34.7, -29.17, 37.2381, 37.2847, 41.2247, 39.8333, 46.1683, 38.3, 45.3167, 36.6239, 36.6206, 39.3619, 12.43, 8.6, 20.97, 8.6, 41.5097, 43.6167, 32.3347, 32.55, 44.8317, -36.9077, -36.9106, 35.3208, 32.3197, 48.5131, 42.4947, 42.95, -31.4756, -31.4994, 30.9833, 45.1786, 42.05, 42.9194, 50.1167, 50.1167, 50.2, 28.35, 28.6408, 50.1167, 33.6333, 49.4667, 49.4667, 31.3331, 36.8, 2.45, 57.35, 31.2667, 0.08, 40.85, 33.4114, 44.6167, 29.63, 39.05, 37.055, 33.9833, 37.1997, 33.15, 61.1, 36.8025, 38.2, -22.27, 48.183, 72.25, 69.3297, 40.5, 48.2667, 6.8456, 48.8667, 37.4094, 48.3667, 44.2667, 8.83, 8.87, 35.0364, 36.8331, 48.1075, 45.6, 44.5833, 44.6275, 41.2833, 48.8556, 32.3972, 32.3911, -34.5961, 49.0731, 44.2167, 4.25, 31.6181, 32.55, 37.1497, 39.1756, 19.4, 39.7808, 38.8489, 65.87, -53.42, 48.8167, 33.4044, 35.6936, 36.35, 36.8833, 25.65, 25.65, 25.7833, 25.8064, 25.7906, 25.6475, 25.7553, 25.9069, 49.45, 25.7167, 32.55, 31.47, 47.15, 52.05, 49.717, 39.4333, 41.7, 52.883, 49.3833, 49.4, 41.8819, 45.7667, 39.4953, 30.0603, 42.6, 39.2931, 43.1167, 36.6086, 44.3, 42.5933, 44.95, 59.4667, 41.4603, 39.45, 41.55, 40.1936, 35.5, 49.6833, 37.6167, 44.7786, 39.7833, 44.7189, 45.5833, 45.0667, -12.5781, -12.605, 43.6333, 51.15, 32.68, 44.45, 31.6333, 41.2167, 43.6089, 44.0667, 43.595, 32.0186, 40.6333, 44.6833, 31.9433, 32.0, 44.75, 59.8339, 40.6, 32.8753, 49.0, 31.7842, 28.2, 28.2167, 28.2167, 37.5667, 43.4131, 35.1231, -41.98, 46.3667, 66.68, 60.6294, 40.5717, 44.7706, 66.0, 53.817, 45.4667, 61.733, 61.6869, 53.78, 45.7533, -2.1167, 45.4717, 45.5833, 45.6167, 41.6725, 45.1219, 42.0664, 35.9328, 42.0811, 37.3, 45.2267, 45.2836, 52.3667, 46.6833, 46.7614, 57.0333, -34.2358, -34.1833, 50.5544, 44.5208, 46.4, 26.2483, 46.4267, -26.6569, -26.6581, 65.2222, 38.4017, 39.1667, 39.1814, 41.3167, 42.8394, 38.8983, 43.3828, 45.1, 42.5794, 39.0744, 38.4167, -44.7, 48.667, 36.3, -12.1239, -12.0931, 49.1333, 49.1667, -20.0464, 50.7167, 44.117, 41.8553, 41.7858, 33.0831, 32.7797, 46.875, 32.8703, 44.5178, 40.5375, 39.7194, 40.8333, 41.95, 49.0, 33.4136, 46.0228, 39.0167, 38.3064, 43.3167, 40.8847, 39.75, 39.2739, 43.2836, 45.6503, 45.6478, 45.6403, 40.7692, 38.5833, 46.808, -33.4455, 45.1667, 39.4, 41.1, 39.3667, 55.0, 34.0833, 34.3903, 34.0836, 44.4667, 40.65, 44.1833, 49.1333, 42.5333, 48.35, 36.74, 36.2314, 32.4419, 49.7131, 42.25, 30.7794, 45.9428, 43.5, 42.955, 43.0719, 43.1167, 43.0333, 32.9325, 38.3844, 24.173, 25.847, 24.3, 24.3, 45.6833, 45.3539, 27.05, 41.9178, 16.933, 23.633, 38.65, 63.9033, 35.2722, 32.6053, 38.9547, 40.5156, 44.9333, 32.635, 40.7328, 32.7167, 40.3458, 37.85, 44.2, 41.15, 36.6833, 32.7817, 48.1667, 48.7667, 48.7667, 8.3, 8.3, 42.7833, 42.6767, 40.4833, -34.822, -11.1456, -34.748, 9.617, -78.55, 39.1247, 44.8833, 44.8831, 44.9833, 50.2667, 37.45, 44.16, 48.0781, -32.8361, -32.8427, 45.8864, 46.0667, 40.9125, 48.4167, 48.1803, 48.2553, 38.633, 53.87, 32.1, 33.7589, 46.0333, 48.3, 49.1667, 53.7167, 34.43, 28.083, 44.6614, 44.6761, 44.6467, 47.0167, 47.0167, 32.98, 45.2667, 4.322, 4.4, -66.55, 62.5, 52.45, 61.4253, 35.48, 40.7, 48.0167, 35.117, -10.683, 48.083, 43.3061, 49.1333, 43.1114, 26.2167, 44.7342, 49.15, 46.4333, 46.8983, 46.9244, 46.85, 46.9208, 41.5736, 48.85, 50.4167, 48.6, 32.4097, 43.4667, 43.7031, 44.5681, 43.7381, 44.5833, 41.9481, 34.9436, 40.7333, 43.7667, -14.7925, -26.4888, 39.06, 36.383, -34.45, 48.1653, 47.4783, 65.5831, 61.1667, 70.75, 62.0167, 70.7331, 66.95, 72.7831, 0.783, 20.23, 34.117, 24.783, 39.65, 24.476, 31.733, 31.933, 31.43, 46.2858, -70.7, 60.7022, 53.1, 63.32, 38.5744, 38.755, -1.53, 39.4194, 30.6794, 30.6833, 30.6264, 45.5656, 45.5464, 42.0431, -15.08, -15.2, 47.0575, 60.51, 35.8439, 25.48, 22.75, 29.8, 60.841, 37.7981, 44.6481, 37.6242, 41.4589, 42.45, 59.9667, 44.5, 37.4058, 46.6706, 31.52, 53.95, 53.9, 53.75, 33.3833, 51.733, -30.15, 48.7603, 36.276, 32.7333, 52.133, 41.7681, 49.6506, 48.45, 47.2, 44.8167, -5.894, 35.0492, 35.0531, -29.2667, 34.817, 45.15, 45.1783, 37.75, 44.9078, 57.583, 62.7369, 62.7442, 40.8442, 41.4653, 30.7, 19.48, 57.94, 22.1833, -67.667, 21.115, 21.1544, -33.0866, -4.033, 44.35, -4.917, -2.5833, -2.0667, -2.05, 31.5414, 31.6219, 49.8167, 18.0908, 21.52, 67.967, 19.4, 33.2425, 26.883, 46.1, 46.1, 35.5833, 44.3831, 44.5647, 51.683, 36.9167, 33.8333, 36.8619, 46.15, 12.18, 47.2, 47.7, 47.7, 46.2, 47.6, 49.2, 44.9, 47.6, 48.2, 43.2, 48.9, -15.25, -15.3, 21.5333, 38.5833, 40.9442, 40.9361, 38.0, 41.5167, 41.9139, 47.8453, 42.5994, 32.5181, 32.8833, 34.9797, 44.3167, 35.0169, 32.55, 39.635, 32.4936, 32.5156, 6.234, 35.6667, 42.0833, 50.4392, 33.6667, 46.2, 43.4614, -36.2519, 41.7806, 46.31, 41.0731, 48.05, 35.2244, 34.0192, 45.7, 45.65, 34.4614, 18.5, -7.88, 44.5817, 43.7806, 41.2781, 25.2, 44.3764, 36.1483, 36.5903, 38.4167, 36.6, 36.5881, 36.5928, -17.33, 25.87, 25.733, -16.717, -34.85, 44.9342, -35.0, 32.2903, 37.5922, 34.6106, -2.0, 42.38, 45.8667, -30.267, 44.2, 41.4667, 50.5333, 18.8, -10.43, 39.333, 41.7, 37.5811, 32.26, 32.2997, 36.1014, 40.6475, 37.9667, 41.5092, 44.6167, 32.3833, 31.5519, 33.3328, 38.0111, 43.9667, 46.4667, 30.4406, 37.8736, 36.8667, 30.4922, 38.5, 33.6361, 46.9667, 50.25, -24.8642, 41.5725, 44.2553, 42.3167, 45.6333, 47.2667, 45.5667, 45.5, 45.5167, 45.5, 45.6667, 45.4667, 47.1167, 45.5167, 45.5167, 35.65, 46.45, 41.8511, 38.4833, 38.5439, 38.4858, 43.8197, 38.505, 41.77, 44.1167, 47.9667, 48.4167, 43.912, 48.6, 46.5667, 46.5667, 49.2333, 45.3167, 44.1, 39.1025, 44.8186, 39.0833, 39.0564, 45.2167, 36.9853, 37.0167, 44.2767, 43.65, -23.57, -28.1125, -28.0997, -38.0992, 44.4167, 42.8597, 40.5617, 53.4667, 40.5319, -30.6417, -37.98, 44.2169, 41.7667, 39.0461, 39.2, 39.9511, 43.9167, 39.1167, 26.84, 33.4517, 46.8875, 45.1758, 46.8667, 32.7053, 39.3572, 43.6536, 45.5853, 51.3, 45.1144, 43.6614, 43.7, 45.6667, 51.2333, 50.3333, 50.3833, 50.3333, 46.4378, 46.4203, 60.5028, 54.2333, 50.1333, 51.2833, 51.2833, 51.2833, 51.3, 51.2667, -16.77, 14.5, -17.18, 38.93, 45.8775, 61.0, -5.11, 37.9158, 45.9903, -21.9947, 17.9167, 43.8567, -29.2103, -29.2039, 60.96, 45.89, 56.53, 49.1833, 49.1833, 49.1833, -29.4914, -29.4819, -29.5, 37.3006, 46.8667, 34.7336, 19.7, 41.7217, 41.75, 52.9333, -12.4536, 41.4558, 35.7297, 40.1581, 39.6333, 39.6428, 39.6203, 31.5333, 29.6833, 44.85, 44.5167, 41.0428, 35.0128, 51.7217, 39.7, 33.5544, 34.9067, 34.9333, 34.3175, -38.2358, -16.664, 45.4825, 33.3167, -6.82, -20.285, 34.0864, -11.68, 39.5267, 37.1581, 37.1833, 2.55, 48.35, 55.215, 35.1581, 51.6667, 49.35, 44.9167, 43.5167, 41.8039, 39.4158, 39.3833, 36.2067, 36.1683, 44.5139, 42.8417, 44.5344, 41.3708, 40.8333, 45.59, 35.3669, -7.85, -11.217, 53.45, 46.9, 63.32, 35.9833, -38.0737, 33.7183, 43.2167, -21.8167, -35.9004, -35.9093, -38.2094, 47.25, 47.0219, 40.6167, 35.0711, 55.8331, 46.8, 46.7281, 47.1167, 47.2078, 48.3667, 64.7, -3.35, 65.8514, 53.57, 55.75, 55.9167, 51.6, 49.696, 35.8022, 41.2986, 48.05, 57.28, 50.6667, 59.8394, -14.95, 35.0336, 30.3392, 47.6833, 45.2667, -34.5253, -34.5444, 35.883, 71.533, 43.35, 36.32, 46.3719, 45.9333, 61.5167, -1.87, -1.845, 76.2333, 76.2333, 16.5, 34.4883, 31.1769, 8.567, 39.9056, 39.9333, 38.1433, 37.1872, 34.5208, 34.6242, 35.6494, 44.05, 36.3689, 43.0283, 37.3553, 33.7011, 45.7, 37.0544, 36.0306, -35.0639, -34.625, -37.8383, -36.745, -33.6185, -36.722, -37.145, -37.5575, 47.4167, 47.75, -34.7122, -34.7253, -37.8306, -16.783, -29.7, -38.2, -16.4181, 38.0631, 43.9833, 43.9833, -37.7473, -37.8333, 47.35, -35.5293, 41.7836, 40.9833, -32.8345, -36.9767, 34.5467, 47.5333, -20.6778, -20.7361, -20.7333, 47.9167, -34.9784, 36.3472, -28.0619, -28.1156, 43.2, -37.7481, -37.6924, -51.823, 45.5667, -41.8444, 53.0167, -73.2, 42.9372, -18.1472, 37.3761, -29.9167, 44.9, 40.9, -33.5917, -42.8967, -42.9319, 38.3894, 42.833, 35.6558, -4.0, 39.5878, 46.9167, 46.5833, 46.5053, 36.3667, 3.533, -6.03, 55.5, 43.733, 52.03, 51.95, 11.117, 66.3067, 66.3642, 23.317, -11.83, -28.3, 45.0619, 44.8322, 36.4667, 36.4739, 34.9047, 41.8375, 40.7497, 37.1542, 43.1261, 36.3458, 43.05, 36.3333, 27.9378, 32.9539, 35.4703, 35.8444, 41.2708, 19.5486, -28.95, -10.267, 24.6, 45.9997, 36.4992, 45.0667, 40.7053, 48.8667, 38.4106, 41.4075, 38.45, 42.0981, 36.26, 42.6083, 43.75, 37.8817, 37.8792, 39.6561, 35.2078, -27.3342, 40.2333, 37.3436, 39.2833, 39.9492, 45.3333, 43.0, 45.2667, 34.5408, 35.3789, 49.1167, 32.8672, 32.8797, 37.3833, 40.3833, 35.655, 30.7053, 50.7833, 50.8, 44.5247, 35.7586, 35.7667, 35.7333, 42.7314, 38.1878, -6.75, 33.1689, 35.5572, 40.9486, 30.6667, 42.45, 43.5858, 41.15, 41.1389, 40.0075, 39.3167, 43.8769, 43.875, 41.3206, 41.3325, 41.3156, 47.9167, 38.0583, 43.3325, -27.9695, 33.1964, 37.3542, 37.9286, 40.3833, 38.3483, 37.0667, 48.4403, 37.0711, 37.0733, 44.2667, 39.0642, 34.2308, 45.03, 43.6389, -0.95, 39.25, 0.583, 60.85, 44.567, 42.3628, -32.5628, -32.5956, 64.849, 49.4667, 42.6, 42.6039, 43.8333, 47.1414, 45.25, 39.7986, 48.967, 48.1642, 48.3581, 51.9506, 52.3333, 52.1353, 37.217, 48.633, 50.37, -8.54, 48.283, 64.815, 43.47, 16.533, 29.4667, -22.92, 28.63, 32.6089, 34.2192, 33.9558, 33.9544, 32.4, 45.4, 44.1625, 47.4661, 47.4667, 47.4569, 42.0425, 37.5794, 42.2506, -28.5367, 47.8069, 53.5333, 34.1944, -33.0934, 30.203, 62.5103, 62.4103, 51.567, 38.12, 33.55, 52.5189, 58.9333, 40.1333, 40.2342, 41.3528, 34.9364, -8.333, 53.5667, 33.4539, 42.2553, -23.7942, -28.9786, -33.5969, -33.5547, 48.5167, 48.35, 46.4122, 56.23, 48.3864, 46.4167, 64.27, 67.94, 67.9681, 68.0617, 67.9728, 39.0, -26.8936, 38.0028, 37.9578, 37.7889, 55.5167, 43.8894, 48.95, 49.633, -31.75, 36.4522, 34.0783, 35.9203, 38.167, -27.3636, 66.48, 68.9667, 42.317, 33.25, 43.2044, 35.0714, 42.0264, -35.5, 36.6122, 47.6333, -35.1234, -35.065, 33.92, 48.9739, -34.55, -31.7416, -31.7651, 46.7, 6.577, 42.5333, -28.3395, 38.733, 42.1, 41.4075, 41.4714, 34.7728, 34.7442, -14.7803, 49.45, 35.6147, 43.1711, 52.3167, 35.7781, 35.6567, 44.9667, -1.5, 45.2, 42.183, 40.0, 63.4353, 38.3311, 36.7, -0.919, -17.417, 41.283, 44.9258, 36.2283, 12.7667, 65.382, -2.467, -11.75, 27.2417, 73.5, 25.367, 66.7628, 61.5245, 56.45, 24.75, 43.08, 49.5833, 60.7333, 65.3, 49.667, 49.4, -36.5667, 33.7544, 33.6833, 45.2436, 58.83, 69.8797, 68.4667, 68.55, 67.15, 45.9, 50.87, 67.8, 68.9, 72.87, 48.65, 43.933, 66.17, 67.83, 54.417, 76.85, 40.1942, -11.9, -11.4333, 8.4, 14.25, 7.733, 19.0614, 33.267, 60.4667, 60.3939, -28.5008, 62.3978, -3.368, -17.0, 46.65, 53.1, -10.333, 35.7667, 51.7167, 31.6, 31.6164, -17.75, 65.47, -6.57, 49.75, 36.667, 32.732, 57.47, 26.6, 48.5675, 55.97, 35.167, 21.1, 31.483, 32.1, 80.817, 46.45, 3.683, 26.2, 31.2667, 31.2739, 68.68, 56.55, 56.55, 43.1, 57.593, -1.3, -1.3, -1.267, -1.317, -0.717, 31.98, 61.95, 62.88, 17.417, 14.967, 15.8, 8.533, 50.1833, 50.95, 58.6833, -0.27, -0.283, 50.25, 50.2667, -37.0667, 43.533, 31.87, 40.983, -26.6431, 64.2506, 34.78, 29.25, -3.25, 43.5833, 43.6167, 43.6039, 38.717, -15.1, 64.4706, 64.7419, 35.42, 20.4167, 20.42, 18.767, 49.1833, 49.05, 49.2167, -26.6756, 28.6, 27.583, 30.8, 48.68, 11.7167, 0.072, -17.8, 4.7, 14.6167, 72.9833, 31.933, 32.1, 22.633, 49.2833, 26.633, 47.3, 47.153, 32.02, 41.2531, -5.667, 33.03, 27.3, 0.017, 44.2333, 59.85, 38.2103, 38.2778, 26.1686, 42.6167, 26.1522, 23.3, 41.3833, 41.3939, 46.5067, 40.85, 19.4689, 45.7667, 45.7667, 34.7, -36.9564, -36.9813, -33.6104, 49.55, 49.6167, 44.62, 44.67, 6.4167, 23.62, -25.6875, 15.167, 35.6167, -32.0656, 67.6331, -1.13, -36.2144, -30.3154, -30.3401, 41.4333, -34.7071, -34.7325, -32.9342, 34.1453, 60.9167, 59.467, 68.4394, 41.4331, 49.2, 42.7667, 42.7914, 33.9294, 35.9667, 38.3431, 39.24, 31.2644, 31.1333, 36.1136, 36.1189, 31.02, 40.68, 25.05, 25.05, 37.4667, 57.64, 55.2333, 50.2, 39.3, -5.767, 29.2, -5.9167, 49.7667, 32.3, 50.1833, 50.1833, 31.5889, 31.7167, 31.7722, 31.8142, 42.2825, 10.32, 38.9133, 66.75, 66.76, 66.77, 34.3219, 37.6094, 34.0483, 45.4981, -0.55, -18.043, 45.4667, 40.7806, 35.1333, 36.8047, 37.0167, 30.3664, 31.9611, 57.44, 58.7, 40.133, 10.9, 26.219, 39.2, 37.1, -7.44, 25.23, 28.383, 28.3833, 37.9, 59.5, 55.567, -31.82, 12.13, -4.386, -12.98, -26.92, 41.5667, 35.7197, 40.6833, 40.6986, 44.0261, 44.0603, 39.9833, -31.9861, 68.05, 59.4839, 34.7675, 38.3894, 50.2333, 50.15, 50.2167, 40.6667, 5.33, 5.28, 44.2331, 18.3, 31.533, 47.0414, 29.58, 44.5378, 51.3667, 17.611, 7.45, 58.6581, 57.65, 40.4167, 14.45, 40.1983, 49.4833, 49.5, -41.3, -32.7103, 49.4833, 49.5833, 49.5167, -25.43, 16.6, 16.62, 35.1, 44.1917, 43.333, 64.55, 54.75, 49.167, 42.65, 39.3536, 35.0167, 40.4178, 36.8639, 53.28, 39.7122, 47.4, 36.3167, -35.3365, 51.32, 52.0, -35.1165, 60.5683, 60.5669, 40.1358, 48.1333, 38.4478, 48.0667, 53.602, 48.6525, 48.7092, 47.0, 49.2942, 50.5, 50.6894, 47.9767, 50.8933, -70.667, 54.0889, 50.8967, 49.3444, -38.95, 52.9053, 49.5739, 49.8183, 49.3581, 53.36, 50.4494, 50.75, 39.2467, 46.8333, 37.8394, 46.67, 40.4, 44.633, 38.617, 45.7833, 37.5147, 40.0228, 40.6825, 39.6694, 40.0875, 43.4833, 36.1167, 34.2978, 46.3286, 54.3167, 37.9325, 40.15, 43.8497, 44.0461, -27.73, -32.9185, -32.8905, -17.3833, 36.3, 36.5522, 43.9708, 43.9667, -33.1131, 40.0833, 44.7158, 35.6108, 49.0167, 48.6758, 34.3933, 50.783, 32.5953, 35.07, 36.9425, 36.8981, -23.3683, 32.0, 37.2811, -23.4169, 44.0667, 33.4544, 30.3653, 35.6042, 39.3933, 42.6008, 43.3772, 44.6431, 44.9489, 48.1842, 35.9833, 44.6833, 41.9497, 33.6025, 34.7764, 37.1319, 37.0167, 40.4783, 41.5, 41.5333, 38.0344, 38.9917, 41.0553, 41.7117, 42.8833, 43.5833, 31.1922, 32.3378, 38.9136, 31.3128, 32.3378, 54.6699, 46.1333, 52.68, 41.6333, 41.6764, 40.9, 35.1333, 35.0678, 35.0967, 41.1925, 29.7192, 29.7044, 40.45, 40.4833, 40.4719, 40.4667, 37.5833, 37.7, 48.0333, 48.0167, 41.0172, 39.8942, 48.0333, 43.4833, 40.5261, 34.9456, 28.567, 28.583, 50.0, 46.5414, 38.9167, 43.1167, 39.0172, 42.5167, 46.4167, 29.2667, 43.0453, 37.4636, 38.1342, 41.3, 41.2639, 55.2333, 35.6808, 35.4486, 40.075, 30.9539, 45.01, 30.0375, 30.0375, 39.7333, 42.5, 47.5, 41.35, 44.3589, 45.305, 36.5869, 34.9167, 39.3833, 39.6833, 44.9714, 37.95, 38.0047, -42.7833, 29.8167, 30.0333, 29.9167, 29.9933, 30.0494, 30.0333, 29.95, 38.85, 41.6833, 40.4878, 40.4719, -39.017, 40.6089, 40.9319, 43.8833, 38.9667, 48.1667, 34.7, 30.7267, 46.8925, 44.6353, 29.05, 29.0361, 40.2033, 47.9833, 44.3006, 49.2167, 49.2167, 39.55, 40.7789, 40.5833, 40.6386, 40.7794, 40.7333, 46.5092, 40.7, 18.47, 46.2325, 45.7333, 42.3803, 7.35, 7.3, -11.9971, 12.2333, -36.3347, -36.3092, -28.18, -12.1939, 43.1333, 43.1003, 43.1072, 43.1333, 43.0833, 43.25, 13.5, 9.767, 43.6333, 30.5317, 69.9333, 5.95, 6.0, -89.0, 50.15, 46.2, 46.2333, 35.1667, 47.2333, 50.2344, 50.6756, 57.3039, 49.3992, 48.5342, 49.7681, 52.6725, 53.1942, 37.967, 37.917, 61.9, 67.8497, 67.8497, 36.733, 46.9667, 58.567, 53.15, 58.35, 59.53, 55.2, 43.8, 47.583, 42.767, 41.8406, 43.8581, -36.5112, 34.9553, 49.4, 49.4167, 35.0317, 43.8167, 47.0708, 41.35, 60.0433, 14.517, 42.7472, 15.233, 53.3333, 53.3333, 53.35, 53.3333, 43.3331, 53.2, 53.33, -22.52, 48.8667, 48.283, 33.0333, -19.03, -10.75, 20.2333, 22.0331, 63.9167, 49.6, 40.0333, 29.2828, 39.8333, 36.39, 55.78, 54.8831, 50.9, 46.85, 66.767, 57.883, 48.333, 51.05, 56.2667, 22.867, 62.43, 8.1, 61.7, -9.333, 63.283, 4.94, -35.1586, 68.0708, 32.583, 31.35, 31.4553, 31.4208, 51.92, 48.0333, 21.221, 48.15, -28.3517, 28.817, 51.5167, 57.55, 37.2792, 64.5111, 46.4, 17.8667, -32.5226, -26.52, -37.9, -37.9039, 32.6678, 49.6, 53.067, -33.2815, -33.2815, 37.0156, 55.45, 52.4667, 52.5, 52.5, 53.7139, 63.15, 61.9282, 53.7644, 52.4408, 58.8925, 64.4619, 63.57, 64.7978, 58.4353, 69.8333, 62.85, 66.3683, 42.0333, 42.1333, 41.9725, 42.0289, 36.9033, -29.042, 41.9856, 36.95, 36.9839, 36.8708, 36.85, 40.5492, 48.85, 48.85, -17.6872, -17.6706, 35.2358, 35.1808, 17.936, 35.2167, 65.2833, 65.2833, 65.2833, 62.28, 36.2131, 40.1197, 45.5833, 45.4856, 58.58, 58.58, 58.61, 59.77, -32.1981, -32.2147, 64.91, 64.93, 52.35, 37.4314, -31.6508, 37.8122, 63.3167, 45.0, 46.3333, 46.35, 41.3589, 40.0667, 44.1647, 44.1, 48.9675, 39.8989, 51.55, 47.8358, 48.8742, 45.1322, 33.2125, 34.2447, 53.5333, 62.9614, 43.2, 43.4386, 42.6958, 52.7667, 52.7667, 46.3167, 46.3667, 43.4167, 43.4133, 42.6, 44.1333, 47.05, 44.0303, 53.4333, 37.0, 35.8167, 48.8167, 43.6611, 44.4667, 45.55, 37.2331, 43.7897, 47.2667, 37.2328, 41.8564, 41.3333, 45.1333, 47.1333, 43.6028, 46.3, 34.1667, -28.3008, 32.7, 37.2167, 43.5333, 48.1333, 27.233, 36.2347, 40.6833, 37.8547, 39.0667, 41.4933, 40.9936, 44.1667, 25.95, 46.8167, 49.2, 45.6358, 48.7667, 41.0569, 41.1214, 64.7581, 45.0375, -23.1833, 41.2167, -34.5993, 56.8333, 45.9167, 44.75, 43.0219, 39.0017, -34.9469, 36.1631, 39.7411, 34.1, 39.8114, 41.9928, 66.8333, 50.8289, 41.1333, 41.1167, 41.2667, 40.6517, 53.9667, 53.9833, 53.95, 54.0, 37.455, 42.5117, 43.7167, 40.75, 41.5269, 52.683, 38.1317, 44.3833, 42.1908, 29.57, 51.0517, 57.0167, 44.0667, 59.5667, 45.4, 47.6667, 46.2333, 45.8, 49.0667, 47.6, 46.1167, 46.8333, 53.005, 63.1167, 20.933, 20.93, 18.12, 33.3667, 33.367, -22.27, -22.267, -22.2667, -22.267, 32.384, -31.183, 48.1, 43.89, 48.95, -22.17, 45.95, 46.783, 48.85, 45.8, -14.7, 58.517, 45.3331, 56.969, 53.6, 50.6, 53.817, -70.767, 48.783, 44.717, 51.1, 55.083, 50.4, 45.8, 47.9, 67.6994, 36.6917, 25.03, -34.9449, -34.9469, 49.6167, 57.083, 47.5083, 38.2297, -20.72, 30.367, -35.45, -0.917, -7.2333, 70.2117, -21.13, -9.2, 42.45, 64.7186, 44.77, -21.8861, -31.4492, -32.7244, 43.8667, -36.1, 60.3833, 40.7064, 40.8067, 40.55, 40.7, 50.3403, 50.3608, -34.4767, -34.4761, 28.03, 60.5083, 49.5042, 49.4267, 48.6331, 37.1, 38.0667, 39.8081, 64.1667, 6.967, 30.3489, 44.8831, 61.0, 12.05, -23.17, 59.3, 66.5997, -0.5, 45.435, 56.25, 29.57, 48.0, 58.78, -31.5495, 43.8764, 45.45, 78.923, 40.5939, 40.6333, 46.8667, 33.8117, 43.3392, 49.3167, 49.3167, 49.3667, 49.4333, 45.2817, 46.7, 42.4594, 44.4419, 49.9333, 42.0644, 37.8667, 46.1458, -27.4034, 38.5167, 37.7833, 41.3044, 39.9, 39.4133, 37.7214, 37.7983, 37.865, 37.7861, 42.2342, 38.87, 39.1131, 32.2061, 32.9572, 50.1, 50.5, 43.7428, 43.4167, 46.8333, 43.4333, 43.4833, 43.5167, 35.9, 39.3758, 34.9417, 36.8425, 34.9589, 33.3933, 37.9714, 41.8386, 41.0064, 36.1753, 35.9333, 43.9667, 36.0236, 36.0028, 41.0333, 25.85, 25.8603, -42.3006, 17.05, 35.55, 26.6, 5.35, 46.8675, 39.8189, 41.2667, 30.6036, 48.3156, -33.8199, -33.6774, 48.2444, 47.3989, 49.1289, 48.2642, 49.4531, 48.6333, -1.91, 42.917, 60.367, 49.0, 5.4, 43.8, 58.6592, -22.53, 44.0333, 4.63, 29.1639, 29.2, 36.1839, 37.6761, 36.8167, 40.6328, 33.2097, 33.2194, 38.3333, 38.3083, 52.35, -0.87, 46.633, 48.583, 47.3, 52.2667, 32.1664, 44.4333, 44.3964, 25.9167, 51.0667, 50.0308, 52.2056, 47.7831, 35.5158, 33.2083, 43.1003, 41.1439, 44.8919, 13.6167, 33.1553, 16.7, 35.1075, 39.8, 42.3167, 43.5833, 43.5492, 43.5833, 38.2, 55.48, 34.6008, 34.6242, 46.48, 31.8797, 47.3328, 31.9206, 54.2, 9.5, 9.5, 51.233, 14.7, 43.1878, 42.68, 42.6467, -12.3263, 63.1831, 50.0892, 48.4603, 68.3272, 39.067, 41.1275, 42.05, 44.7281, 41.2, 41.6167, 41.1167, 41.1961, 41.2458, 41.2439, 41.2319, 57.87, 65.3667, 43.175, 53.967, 54.9, 36.947, 57.717, 20.6617, 43.6008, 48.4339, 58.567, 59.3667, 61.867, 41.12, 49.2081, 33.233, 34.4478, 34.4483, 58.38, 48.1086, 29.57, 63.25, 27.7, 45.5, 50.05, 48.3667, 33.7667, 34.667, 52.166, 27.1508, 27.25, 36.1217, 35.4253, 27.3, -29.6, 26.2, 27.259, 35.4833, 35.5342, 35.4167, 35.3889, 47.8333, 35.6239, 34.0, 50.7167, 50.7333, 58.0667, 52.7, 51.63, 52.6, 62.45, 66.25, 44.1758, 59.57, 19.6333, 19.6, 36.5072, 47.3667, 56.66, 57.37, 56.2, 38.8875, 38.8317, 38.85, 6.22, 44.1333, 40.9, 36.8333, 53.1031, 61.86, 36.9756, 51.7833, 51.7667, 41.15, 67.5667, 67.5667, 61.8, 44.4569, 43.7025, 42.2058, 49.15, -18.2519, 36.2469, 44.95, 44.9214, 31.0, 44.9333, 44.9281, 44.95, 42.0736, 60.4, 68.5, 52.8, 42.167, 48.6117, 42.0, -20.68, 49.1667, -32.55, 53.65, 49.1833, 53.65, 42.4667, 34.9536, 37.1742, 38.3422, 44.7628, 31.8922, 40.3161, 33.3733, 48.5497, 38.7003, -33.1, 60.983, 50.95, 54.667, 49.9325, -38.4861, 53.7667, 34.1797, 40.6, 30.2, 56.62, 46.9733, 47.0667, 34.6, 41.3536, 41.3103, 48.4167, 48.4608, 48.4608, -37.1017, -37.1011, 44.0333, 49.017, 65.23, 44.9667, 45.05, 55.0167, 62.5, 44.583, 62.8667, 36.95, 48.9, 45.1833, 45.4108, 42.0697, 62.8667, 62.8594, 49.1167, 63.9, 36.5028, 37.2669, 33.9478, 42.45, 42.45, -33.9644, 45.0331, 50.75, 44.7317, 42.4544, 46.9, 37.6833, -20.667, -21.6364, -21.6689, 34.0667, 34.0561, 44.0439, 44.0206, 46.8667, 46.8342, 32.725, -27.5553, 20.0167, 38.8894, 36.4333, 53.5, 51.2403, 53.7667, 53.7667, 21.5739, 35.1542, 59.9, 29.9, 32.6592, 30.55, 31.0944, 48.85, 48.9989, 48.6956, 34.25, 19.2706, 50.6333, 62.6043, 61.9333, 32.6, 32.6025, 47.033, 43.4033, -23.153, 30.0858, 44.133, 33.4886, 33.4667, 33.4617, 41.3333, 43.9167, 43.9167, 30.2264, -33.3211, -33.3813, -33.3815, -33.3934, 28.9333, 36.6167, 42.57, -33.2833, 29.4794, 35.77, 35.7297, 35.7, 49.3667, 49.2, -37.6922, -37.6917, 57.48, -33.802, 43.3333, 37.2722, 41.0, 38.53, 38.2222, 54.367, 41.6236, 59.24, 59.28, 59.23, 59.27, 39.9808, 45.3558, 60.33, 52.933, 40.2767, 51.8, 51.6831, -42.5519, 31.9556, 41.3619, 35.0333, 37.2353, 44.6167, 44.6, 44.6167, 60.8064, 37.8667, 18.85, 21.18, 63.205, 59.1, 39.7458, 63.7003, 28.5453, 28.4339, 28.7797, 41.3089, 47.98, 36.17, 52.5, 56.05, 48.725, 44.7333, 49.7167, 45.1167, 63.41, 46.4833, 32.3789, 45.8333, 43.9667, 44.8992, 41.5683, 39.5178, 39.5167, 48.9667, 39.4167, 39.49, 65.95, -35.6333, 40.3, 48.0508, 48.0189, 55.667, 54.5, 60.53, 62.2072, 62.1808, 55.78, 26.7897, -18.04, 43.2794, 38.6361, 34.683, 37.0833, 38.5019, 56.38, 35.7167, 38.0492, 41.0194, 41.1839, 45.3667, 51.3, 44.45, 40.533, 43.9, 43.9333, 43.8667, 34.75, 41.4014, 44.0206, 43.9844, 45.5331, 41.3214, 39.2419, 55.6, 57.27, 48.1167, 52.4167, 59.9419, 59.9428, 59.9128, 24.963, 54.433, 42.3569, -40.6, 49.0333, 49.0333, 49.0333, 1.28, 49.7, 41.15, 59.3, 57.133, 49.8167, 51.083, 57.45, 57.44, 49.5042, 50.455, 60.31, 60.33, 60.35, 49.8, 78.62, 60.7, 53.08, 68.12, 69.93, 76.8, 70.633, 79.55, 77.15, 67.47, 76.0, 76.2667, 74.667, 81.8, 66.48, 77.5, 80.83, 73.5167, 79.5, 70.9831, 16.5, 9.553, 41.9244, 37.175, 43.4622, 43.533, 43.183, 69.256, 46.7886, 36.3339, 45.0333, 39.1, 38.6133, 45.4, 41.3283, 45.3833, 45.3833, 45.3167, 45.3167, 45.45, 41.6, 45.45, 46.4314, 45.1, 41.7533, 61.0333, -26.817, 35.0833, 44.2167, 41.0167, 41.1078, 12.35, 12.353, 13.58, -20.7769, -12.12, 31.917, 30.93, -25.18, 31.673, 48.483, 1.62, 48.3167, 34.78, 64.2306, 64.9283, 64.9375, 65.0331, 65.0056, 35.867, 38.0206, 38.0264, 40.1344, 42.3278, 42.3331, -7.9, -42.4842, 48.9, 51.4833, 51.4833, 62.7167, -35.0694, 57.9256, 47.0189, 47.05, 46.8819, 63.78, 69.0178, 66.34, 66.26, 39.0833, 36.5508, 40.7456, 66.3797, 42.9667, 43.2, 43.3542, 66.9667, 61.8213, 51.317, 34.067, 44.0981, 37.7828, 38.7333, 34.5528, 37.39, 38.5167, 38.5167, 44.98, 44.5667, 44.5833, 38.6833, 43.6667, 43.0161, 41.95, 43.65, 43.5833, 49.3167, 58.68, 38.7, 42.5, 45.7333, 51.75, 51.77, 36.3, 40.3283, 36.3022, 42.2667, 34.1981, 34.2008, 34.2067, 38.7853, 50.1167, 51.3833, 51.1667, 51.35, 59.5742, 49.8833, 47.6392, 38.7, 35.4833, 35.5125, 31.5333, 36.6597, 34.6819, 51.483, 44.2831, 30.7169, 30.4267, 29.85, 31.4539, -63.3, 43.2783, 20.8136, -33.72, 20.0833, 20.0386, 22.18, 24.02, 48.7167, 20.133, 37.5917, -23.0967, 38.7583, 46.6092, 44.0622, -0.883, 63.27, -30.82, 42.5806, 54.0206, 24.0, 67.0333, 45.3983, -12.614, -15.78, -36.5958, -36.6539, 34.0067, 37.0683, 37.1, 33.8083, 37.0833, 37.0667, 37.05, 44.3456, 68.6, 26.85, 34.7167, 46.15, 36.9208, 34.7606, 36.9261, 37.2425, -14.3306, 27.73, 50.05, 50.0333, 19.1986, 66.81, 44.5036, 37.2689, 36.2614, 36.1664, 41.7525, 35.0681, 33.0772, 37.5831, 37.8175, 31.5536, 42.6922, 44.2667, 55.8455, 67.2097, 67.205, 49.2167, 59.383, 46.6167, 15.117, 9.37, 28.7247, 55.967, 40.1, 29.6439, 9.37, -2.88, 42.0081, 38.1103, 29.15, 39.0028, 31.7831, 31.7797, 31.7425, 46.1, 39.1136, 43.35, 37.5333, 32.4167, 19.3175, 61.3378, 66.39, 66.39, 53.05, 50.05, 39.6, -10.19, 39.5606, 39.5556, 34.5883, 34.6294, -9.45, -64.8, 49.8667, -41.79, 40.8, -16.0008, 61.6167, 47.3058, 61.5889, 39.1203, 61.5961, -64.766, 35.4833, 37.4667, 10.3, 3.52, 34.5494, 37.8142, 26.8261, 29.6319, 33.8275, 33.8281, 1.767, 33.3781, 7.127, 24.93, 37.4333, 37.4436, 45.7, 38.9, -0.68, 9.267, 50.0, 56.02, 35.5544, 35.5333, -20.1, 42.7767, 42.8175, 39.3686, 30.1667, 30.1667, 30.2492, 30.2119, 36.1203, 38.3036, 35.8333, 30.2678, 30.2061, -18.533, 40.9461, -2.17, 66.1333, 66.15, 66.15, 37.8156, 35.3514, 26.955, -21.6392, 36.5333, 36.7269, 36.82, 29.3272, 29.3483, 29.3167, 25.78, 38.5911, 38.5556, 38.8667, 38.8522, -9.75, 40.88, 47.35, -17.53, 34.76, 58.7, -23.2028, -23.1725, -17.217, 33.867, 31.9353, 39.7536, 46.8333, 53.1167, 41.5022, 29.7892, 38.3667, 38.3833, 38.3897, -34.7977, 36.0328, 36.0336, -25.633, 60.1117, 59.7842, 9.35, 5.85, 5.8, -19.7, -31.783, -40.9, -35.5695, 48.6333, 47.2697, -20.1078, 47.9167, 36.7278, 37.1047, 61.4442, -2.63, 33.6744, 35.3, 42.2333, 43.1833, 48.8231, 36.2872, 48.9667, 34.95, 48.8, 40.2167, 39.6186, 67.73, 50.4667, 45.5167, 45.535, 45.5, 34.1547, 39.5144, 39.2811, 39.345, 51.4, 36.45, 39.5289, 42.1058, 44.7333, 34.2903, -33.1281, -33.1419, 35.8989, 37.483, 45.8667, 43.4333, 35.1, 35.2667, 39.6333, 46.9167, 40.6703, 40.66, 38.8167, 48.45, 45.9336, 41.4947, 46.9006, 39.0333, 36.7242, 48.4, 41.8, 40.7667, 44.8042, 43.8022, -3.083, -2.917, -35.8, 37.8622, 34.2931, -33.7917, 25.45, 27.6089, 40.9333, 45.4, 45.4167, 45.3333, 45.35, 45.35, 49.1517, 47.95, 39.0736, 37.3678, 37.3278, 35.6083, 43.15, 38.05, 39.6308, 34.1483, 36.2994, 42.35, 30.3961, 30.4636, 46.2667, 25.29, -23.05, 21.83, -43.817, -29.689, -32.8, 29.33, 22.33, 35.6278, 35.6697, 53.7167, 48.58, 48.5817, -22.38, 49.8833, 49.5333, 44.6, -28.21, 44.0167, 46.1489, 1.417, 34.7, -7.63, 69.1648, 51.9833, -46.8, 40.7967, -33.77, 40.9, -32.6296, 42.4717, 30.333, 18.0333, 45.3222, -6.75, 25.6, -7.017, 38.25, 50.6667, 47.22, 6.7833, 46.0258, 46.5372, 40.295, 38.3333, 38.3, 43.38, 69.35, 69.3667, 41.1247, 44.1328, -8.132, -9.4, 34.7253, 34.7156, 42.6283, 44.4333, 53.7831, 42.9294, 43.2458, 56.883, 52.3, 44.3192, 36.6692, 40.1217, 41.8667, 42.2167, 41.6653, 63.0322, 63.05, 62.9453, 62.95, 40.4547, 1.37, 46.82, 44.0764, -29.2708, 53.0167, -32.333, -45.24, 34.2325, 34.4, 34.2431, 34.2333, 39.9333, 41.2, -18.6, 14.583, -26.82, 42.5333, 49.0, 56.2333, 56.25, 49.7833, 49.8667, 49.7, 37.4667, -32.7235, 34.5025, 31.9356, 31.8833, -31.6669, 32.65, 30.25, 12.1, 28.8889, 31.4, -33.3102, 54.0667, 45.05, 54.9833, 38.4197, 44.2333, 42.67, 65.1167, 31.4167, 35.5489, 46.1, 46.0, 50.692, 34.6153, -3.553, -23.6, -22.6, 38.95, 38.9333, -77.95, 38.63, -35.867, 50.3667, -15.517, 32.3161, -22.55, 41.75, 7.0333, 57.9578, -25.8, 33.8017, 67.0214, 41.3761, 66.7722, 45.5644, 52.0833, 51.7333, 68.4333, 69.6333, 62.8167, 33.6, 42.5319, -31.78, 44.7275, 54.083, -12.983, -5.07, -34.4478, 39.9708, 50.3, 50.3167, 50.3333, 50.45, 48.9711, 45.8667, 45.8333, 5.297, 48.7667, 45.6906, 45.7206, 45.6703, 45.6911, 22.767, 39.5, -34.7333, 23.5, 25.633, 29.3, 40.4167, 55.8239, 50.5333, 45.1, 36.7381, 42.6711, 42.6667, 42.6425, 37.6486, -9.02, -33.7195, 30.53, 30.35, 30.4833, 30.4781, 30.4167, 50.4167, 49.7333, 49.4833, 49.4667, 31.7356, 53.13, 40.7039, 40.7, 55.6167, 40.7167, 40.6675, 19.85, 41.0667, 4.422, 62.55, 51.9667, 48.5167, 39.6667, 4.8, -17.1, 51.9, 56.7, 59.0, -33.93, 48.7667, -46.517, 35.9986, 49.5125, 58.0167, 42.7381, 33.7167, 25.5819, 33.7833, 30.0986, 36.2886, 41.8394, 42.4647, 40.0739, 36.3897, 35.0556, 35.0, 35.6333, 37.7342, 39.8058, 42.4833, 30.0719, 39.1172, 49.6667, 59.75, 29.6603, -32.0, -31.9275, -31.9192, -31.95, -31.95, 61.5314, 41.3503, 43.08, 44.5658, 40.65, 48.05, 57.07, 43.87, 23.5, 42.43, 34.033, 33.994, 45.0281, -8.4, 38.2578, 17.53, 45.95, 45.95, 45.8833, 45.9833, 44.2833, 44.2333, 44.3167, 44.2833, 44.2333, 44.35, 44.3667, 42.85, 37.2389, 38.9989, 56.8056, 48.0356, 38.465, 39.0, 64.5697, 47.3167, 48.1833, 45.3725, 45.3614, -63.5, 34.7994, 35.1392, 42.8833, -9.383, 53.0833, 54.8331, 52.9831, 51.317, 61.8167, 66.43, 47.1167, 69.7, 49.1169, 48.9067, 47.9353, -23.98, 36.1067, 40.4, 11.6167, 10.933, 12.9233, 19.1333, 32.5, 16.433, 13.15, 44.1333, 32.7692, 39.95, 39.95, 39.8683, 40.0136, 39.8833, 40.0819, 39.9167, 40.0333, 40.0, 39.9575, -15.667, 39.1461, -30.62, 49.2519, 45.0333, 46.3333, 40.8728, 40.9167, 46.3167, 46.3158, 44.0511, 8.37, 17.539, 41.6264, 40.6833, 39.7394, 39.7533, 40.6972, 48.0667, 43.5167, 36.6167, 39.8667, 40.0064, 39.8386, 36.7764, 16.817, 11.547, 33.2892, 40.12, 33.4489, 33.6883, 33.4333, 33.55, 33.4278, 18.167, 7.883, 8.132, 20.8, 20.8, 10.217, 44.92, 44.2369, 45.933, 10.583, 18.2, 43.3086, 33.35, 33.3503, 32.6464, 39.55, 30.5217, -1.1, -39.65, 32.8864, 34.8814, 38.6667, 38.6167, 43.9, 46.5833, 39.8744, 39.0167, 51.45, 51.45, 43.0689, -7.03, 18.2708, 44.0167, -34.1685, 45.7, 49.8667, 42.9, 39.4833, 38.2322, 36.0969, 28.627, 62.2831, 63.3, 46.4922, 54.35, 29.2353, 40.2461, 35.8833, 46.5, 46.5, 46.0833, 44.0194, 44.3814, 49.1833, 48.617, 63.7508, 63.7331, -29.6, -23.917, 34.4931, -27.23, -27.02, 46.6167, -37.6, 60.4167, 60.3831, 39.3833, 35.5981, 37.4833, 39.475, 48.3, 40.1478, 53.13, -25.33, -26.85, 30.367, -31.667, 52.4167, 38.8325, 49.2, 49.2, 49.1833, 33.3658, 45.4756, 50.05, 41.0333, 50.7167, 38.7, 49.85, 50.1833, 50.2167, 50.1833, 49.5, 49.5167, 49.5167, 49.5167, 49.5167, 49.5167, -29.3899, 34.3, 42.8744, 64.7, 36.6853, 35.2, 27.8333, 31.8944, 34.1239, -29.82, 37.5742, 35.9, 49.0333, 34.2256, 41.1833, 41.1722, 34.175, 38.8833, 34.1167, 44.25, 43.5667, 43.54, 51.6333, 50.5667, 45.1289, 33.0164, 46.7769, 50.9833, -21.6667, 52.1667, 55.5333, 43.0167, 43.0206, 39.2603, 51.7667, 51.8, 44.1833, 46.6694, 31.8903, 31.8311, 40.4369, 41.2578, 22.9833, 6.2167, -32.5336, 35.55, 25.52, 32.42, 32.42, 37.9056, 44.2581, 36.4708, 36.4819, 43.8822, 33.7275, 33.25, 52.117, 33.6906, 37.55, 40.0097, 37.9344, 46.517, 40.7569, 44.0139, 36.8586, 40.1311, -17.35, -21.983, -15.85, -4.267, 61.4206, -11.4022, 49.1919, 57.633, 34.4044, 43.684, -13.745, -13.8, 35.2719, 37.62, 33.12, 32.05, 35.1597, -25.067, 65.3197, 38.6, 65.833, 65.23, 35.7167, 37.39, 40.3547, 40.4847, 40.45, 45.6375, 42.45, 39.6222, 42.4272, 45.8944, 32.1833, 44.4333, -27.7156, 49.2, 49.2167, 49.2833, -5.18, 38.3167, 66.183, 58.3667, 44.09, 38.0178, 38.6956, 38.7333, 45.4167, 47.785, 40.6036, 44.2764, 33.1869, 37.2667, 42.2614, 47.45, 47.4661, 32.0097, 32.0467, 34.1892, 44.5169, 34.1981, 39.245, 32.8919, -20.433, 46.5, 28.0236, 61.5333, 46.9, 59.0167, -31.08, 42.7489, 42.1389, 39.4167, 39.5669, 44.65, 44.65, 50.483, 53.65, 28.9606, 38.1833, 39.4167, 46.8167, 59.45, 40.3675, 40.4311, 38.81, 41.7394, 48.1333, 34.0933, 34.0989, 46.5167, 35.7667, 48.78, -27.98, -34.08, 43.4167, 43.35, 46.4178, 52.58, 48.833, 42.1333, 50.3833, 50.45, 47.3111, 49.05, 45.3167, 51.0667, 42.4167, 41.3392, 42.3833, 43.73, 43.75, 43.7833, 40.9833, 28.7503, 35.8722, 41.9819, 50.35, 41.9097, 41.3333, 49.683, 52.4166, 50.85, -42.733, 11.15, 21.5383, 42.7292, 36.2642, 42.8917, 42.875, 42.9203, 44.7667, 38.0667, 35.7469, 42.433, 43.33, 16.633, -29.13, 52.22, 50.4, 44.4, 36.033, 60.1, 6.9667, 52.0667, 45.65, 48.5, 48.5167, 45.4667, 48.2667, 49.3167, 45.35, 48.033, 47.3, -4.82, 50.1667, 47.0411, 46.3167, 38.9, 49.3333, 56.3511, 28.6575, 48.1333, 47.3, -37.8017, 69.75, 49.3333, 45.0667, -38.2939, -27.4361, 61.4169, 39.7275, 34.1167, 48.4, 54.417, 41.95, 41.95, 34.0, 43.8333, 35.6667, 38.85, 38.9167, 58.4167, -38.0958, 38.5, 49.617, 50.4167, 47.2508, 28.22, 42.35, 61.483, 44.0069, 80.6, 39.6, -33.5085, 48.7647, 48.7825, 52.3, 42.8944, 42.0694, 41.8667, 41.2167, 46.6, 35.0331, 69.2, 45.9042, 51.0833, 51.1333, 31.5, 45.4586, -23.867, 3.558, 55.467, 7.35, 42.0347, 47.675, 47.6775, 49.6, 44.033, 54.367, 66.033, 46.4672, 39.0333, -25.83, 49.5067, 37.905, 34.0817, 38.645, 26.2333, 26.25, -19.21, 46.1972, 36.7231, 36.7367, 18.0258, 18.0167, 18.0, 22.254, 72.6833, 72.6833, 72.6833, 72.7, 42.5639, 37.741, -22.533, 40.6, 42.44, 42.4306, 40.8778, 42.665, 42.6389, -0.02, 0.0, 34.2486, 34.1381, 45.6572, 52.32, 40.917, 47.7, 18.533, -33.3856, 64.105, 42.9269, 2.4667, 2.45, 35.1739, 47.9833, 30.8408, 48.1333, 36.7578, 36.7725, 48.1269, 34.7325, 49.0667, 46.1167, 43.395, 51.0333, 40.0978, 48.4667, 52.65, 43.29, 55.18, 42.553, 61.4656, 61.4789, 61.6303, 10.917, 49.2167, 38.4833, 46.8353, 48.7333, 44.1542, 43.5278, 36.4136, 36.4333, 42.5697, 48.3, 60.785, 49.9667, 49.9833, 49.9, 49.9, 31.9, 49.0, 39.2833, 34.1742, 34.2333, 31.8833, 36.0678, 60.7667, 48.9994, 33.2511, 43.65, 43.6667, 40.4175, -38.3833, 50.517, -38.3148, 45.5406, 45.5908, 43.6497, 45.5181, 45.5333, 36.5878, 45.5511, 45.5606, 41.1331, 39.8053, 45.52, 45.5, -1.033, -30.05, -10.7, -1.733, -9.18, -10.52, -10.717, 6.47, 41.2, 33.073, -8.767, -38.3167, 41.5333, 43.0667, 43.0833, 38.7569, 47.65, 49.2333, 49.25, 49.3167, 49.2, 49.25, 49.3, 62.6211, 56.2472, 50.3833, 41.8158, 60.2036, 60.195, 60.1958, 48.1139, 48.1203, 48.1333, 27.8381, 28.3044, 38.8, 48.4333, -43.1639, 29.9506, 29.8667, -32.5091, -32.5, -32.528, 44.0333, 44.0469, 47.5667, -49.35, 18.57, 18.6, 18.6, 11.667, 48.35, 42.65, 38.0167, 65.25, 40.5833, 43.9186, 42.8833, 42.8667, 49.2667, 43.1833, 48.15, -16.484, 42.7833, 29.0167, -33.985, 44.8833, -38.3906, -0.72, 31.985, 4.85, 50.6833, 45.6333, 45.65, -20.3725, -20.3139, 56.95, 45.9833, 43.9483, 43.95, 44.0219, 42.975, 26.0942, 26.1658, 41.38, -14.2495, -14.2403, -34.4772, 28.6167, 44.25, -34.7225, -34.4906, -31.4336, -31.4399, 26.5578, 41.6264, 49.5333, 49.8167, 49.8333, 49.2833, -9.383, 57.0, -29.23, 28.4342, 48.9978, 42.7333, 42.7519, 44.15, -33.1708, 66.0833, 48.6, 31.28, 27.0997, 60.0503, 50.65, -30.733, 54.5667, 42.6667, 19.583, 29.4833, 48.1161, -17.699, 43.3944, 43.25, 46.7781, 60.2033, 60.3914, 60.4056, 59.985, -27.386, 46.35, 42.65, 54.3, 35.8, 41.5, -14.1, -71.883, 32.85, 32.8667, 33.1986, 51.8833, 48.3297, -28.333, 45.8, 43.09, 32.5, 46.3, -26.733, 35.05, 35.0539, 29.0283, 40.63, -24.183, 46.9603, 46.9833, 46.8814, -19.58, 37.8958, 38.083, -26.5, 32.6058, 44.6667, 52.3833, 43.2261, 39.3619, 39.0833, 40.2383, 55.7167, 41.6833, 41.7267, 41.6267, 31.5167, 48.6833, 36.48, 37.4431, 46.1167, 33.0175, 45.8525, 43.035, 44.1667, 43.0353, 44.75, 46.51, 38.0833, -37.8631, 44.7764, 46.5122, 49.8333, 49.8833, 49.8333, 49.8333, 46.6167, 42.8886, 48.5722, 42.8708, 37.5144, 42.7917, -41.6839, -15.833, 48.667, 37.4, 21.22, -23.5, 14.05, 11.8, 50.067, 29.9167, 50.0906, 50.0, 43.5, 43.5064, 40.5914, 44.4617, 43.0514, 43.31, 41.64, 52.8667, 57.72, 41.659, -22.7, 37.6456, 32.4833, 65.9233, 46.31, 46.3, 51.95, 56.05, 45.5447, 35.1303, 52.4333, 60.067, 42.9, -41.0867, 27.55, 22.1, 22.13, 19.97, 28.98, 19.95, 32.45, 27.52, 34.5706, 33.8203, 34.6517, 43.9919, -26.733, -30.975, -22.117, 29.5711, 46.6539, 46.6833, 58.993, 42.0933, 43.4, 43.6725, 53.7739, 38.7, 42.0667, -25.733, -25.917, -25.75, -25.17, 46.1758, 50.333, 49.583, -34.2971, 48.6, 39.5989, 39.6092, 39.6167, 31.6953, 57.317, 47.8594, -29.67, 48.575, 46.6461, 48.3511, 36.1883, 48.767, 41.3331, 50.583, 49.667, 38.8333, 43.0864, 46.0331, 52.9667, 38.2122, 18.041, 37.1, 37.3842, 40.3986, 41.3661, 49.4333, 37.1244, 38.3567, 49.4667, 49.4667, 40.9275, 22.2181, 26.294, 53.1667, 53.2167, 38.55, 40.6514, 53.8333, 53.8833, 54.05, 53.8833, 53.8833, 53.8833, 32.161, 54.2833, 54.2833, 54.3, 54.2833, 1.65, 45.5833, 44.3022, 60.033, 50.6833, 42.22, 37.72, 31.9633, 27.08, 21.3, 20.28, -69.383, 34.3667, 34.3694, -10.2, -20.4925, 42.7342, -33.8193, 46.2, 46.2014, 44.1667, 37.3997, 41.8333, 41.8333, 45.6667, 41.7219, 13.4, 42.05, 42.0833, 5.37, 42.2897, 40.2458, 40.2167, 70.25, 52.567, 36.3092, 45.3375, 47.267, 49.8, 42.4, 29.08, 41.9, 57.8167, 19.6828, 19.6669, 19.7456, 19.7717, 49.7267, 47.8, -25.6, 35.72, 27.92, 65.3667, 65.3992, 57.57, 61.8, 19.0333, 38.2725, 38.1833, 38.29, 38.2597, 15.683, 8.3, 5.6, -45.4, 14.0667, 6.167, -22.5, -22.283, -7.68, -47.735, 15.217, 9.967, -42.8, -41.433, 20.83, 31.3, 19.75, 9.75, 22.67, 45.85, 21.9656, -10.9, -10.88, 48.5833, 48.6, 48.6, -14.8, 43.7833, 44.9, 43.5697, 37.0556, 37.0833, 35.1842, 51.4167, 37.475, 46.7603, 46.7333, 46.7439, 39.5, -22.68, 40.817, 61.8017, 33.8556, -15.83, 9.967, -33.0, -53.0, 18.567, -35.6, -41.78, -34.97, 20.25, -52.4, -40.0, 16.12, 26.9333, 26.9164, 26.9172, -35.367, 21.04, 28.96, 18.31, -29.9, 53.0, 62.0911, 52.1167, 52.1167, 64.8667, 64.6633, 34.9858, 42.065, 12.57, -23.82, 32.2, 57.0, 54.367, 32.2667, 32.3664, 41.9167, 35.8989, 40.9247, 8.033, 41.65, 20.0256, 20.9286, 61.5356, 61.5667, 21.3814, 19.795, 47.2, -1.5, 36.27, 37.233, 63.7356, 63.9331, 38.417, 39.0, 39.224, 32.0339, 42.8264, -30.0, 42.8081, 77.4667, -30.12, 17.25, 28.335, 22.667, 31.15, 60.7167, 60.7167, 26.2, 69.2331, 63.0831, 45.083, 38.15, 43.48, 67.55, 67.55, 67.55, 38.82, 36.067, 33.6, 40.4, 42.1, 21.95, 19.233, 47.383, 44.017, 27.95, 50.5167, 50.5667, 42.2167, 52.6706, 40.4333, 43.9833, 49.3333, 49.3333, 49.4, -30.9252, 34.2761, -34.0112, 15.1, 15.1167, 16.7667, 20.9333, 20.95, 38.5, 38.5, 61.05, 29.2167, 33.665, 65.4, 41.5992, 42.2667, 47.8667, 50.5333, 50.4333, 46.8, 46.8, 46.8, 18.4719, 51.7967, 44.6, -38.2714, -31.9, 50.6, 50.6, -42.0967, 31.717, -17.883, 34.3447, 35.9167, 20.5933, 20.617, 51.3906, 30.05, 52.9833, 53.0333, 53.0333, 53.0333, 53.0667, 30.251, 30.18, 30.2, 54.6167, 53.733, 37.5339, 47.8092, 47.9375, 52.0667, -26.6125, 47.5139, 47.4747, -13.27, 39.9367, 39.95, 47.2236, 47.25, 30.5497, 39.9058, 30.5833, 39.9733, 39.9369, 32.9167, 41.5667, 50.0167, -33.433, 39.0669, -32.783, 27.52, -31.5086, 32.0706, 30.7836, -0.1, -4.58, -5.2, 13.7667, 34.133, 34.6, -41.2083, 41.5833, 49.4167, 28.967, 62.4, 64.6656, 64.6117, 59.8206, 34.0, -4.22, 61.0844, 40.3667, -20.1883, -20.1824, 61.9667, 53.1, 25.9708, 48.3, 37.6467, 43.3472, 50.05, 42.7022, 42.7611, 46.25, 46.8, 59.3167, 37.2008, -5.242, 57.6, 52.4, 47.7467, 47.383, 54.0833, 54.0, 34.9869, 64.1167, -31.18, 10.442, 29.626, 33.821, 42.5478, 40.3119, 45.0167, 34.78, -1.817, 52.4481, 40.6006, 30.0678, 43.6167, 32.2619, -25.9007, 35.1167, -35.8974, 45.8342, 37.9667, 50.3667, 46.9939, 46.7858, 48.55, 21.217, 47.91, 48.7333, 16.3, 22.3, 24.37, -10.05, 48.05, 35.7294, 32.1433, 35.8922, 35.7944, 45.7842, 36.5044, 39.8297, -34.67, 18.767, 31.88, 45.1, 33.0375, 33.0114, 33.0667, 34.1508, 25.53, 25.53, 65.5, 36.9, 39.1483, 47.4167, 60.33, 57.84, 49.4333, 3.85, 33.2222, 28.28, 39.3833, 56.5, 41.6628, 29.5439, 35.3692, 40.4333, 53.45, 53.4167, 22.63, 57.78, 44.9892, 44.9894, 40.0892, 40.1697, 32.4667, -14.97, 16.77, 25.733, 31.2286, 35.5167, 62.8167, -22.55, 62.0628, 40.3131, 65.9325, 65.9764, -29.2, -29.25, -27.617, 45.9717, 47.8, 46.2, 47.7667, 47.8167, 44.115, 50.0167, 44.0433, 44.0728, 43.8167, 47.5, -21.203, 11.867, 37.25, 39.0, 51.1778, 25.617, 31.395, 46.5, 40.825, 49.6833, 16.983, 36.9, 36.9194, 36.8864, 36.7414, 38.45, 49.0667, 51.2, 47.6, 3.78, 66.45, 61.1167, 61.1392, 61.1444, 47.22, 47.7333, 62.71, 63.3778, 61.4225, 50.25, 40.7308, 41.0319, 44.2167, -33.5803, 38.95, 40.7, 45.05, -31.0119, 41.8036, 41.8056, 49.65, 40.1178, 33.85, 49.45, 26.7069, 46.6533, 49.4833, 48.9975, -32.618, 51.5667, 47.2833, 47.2972, 30.3333, 20.7, 12.6336, 40.3814, 32.4936, 44.2961, 43.5658, 64.566, 66.9, 37.5972, 36.0686, 39.3036, 42.5242, 40.4269, 40.3667, 40.3333, 49.5833, 42.75, 75.3833, 63.82, 53.07, -8.05, -8.1255, -8.01, 51.6256, 44.9086, 44.7833, -29.183, 40.1667, 43.245, -27.2169, -27.245, 40.6508, 40.5158, 40.5833, 40.5175, -37.0194, 44.8656, 44.8667, 44.2333, 45.3767, 34.0528, 44.2667, 44.2558, -21.9931, -40.9272, 32.7047, 48.8197, 34.5833, 40.5708, 49.5833, 49.6, 54.0, 37.4767, 44.5486, 44.5483, 34.4333, 31.895, 40.1519, 45.0275, 39.9833, 43.5361, 43.4258, 40.0978, 52.2833, 52.3167, 52.1833, 38.8272, 56.55, 40.7981, 40.7833, 47.3, 45.4667, -35.1667, 50.9333, 51.0667, 47.8881, 47.8769, 45.1769, 42.1233, 37.9, 41.0036, 44.6978, 53.0, 39.4667, 41.4847, 36.71, 45.7125, 36.7, 45.7075, 32.4219, 29.9667, -32.2028, 36.3558, 44.6833, 36.1353, 52.4167, 40.3575, 44.6103, 43.5231, 43.7, 39.5, 43.8667, 35.1311, 33.6, 39.0633, 28.3, 28.3294, 28.2939, 49.0433, 38.07, 44.7, 36.1833, 50.4, 50.4667, 50.4333, 50.5167, 50.4333, 50.4167, 47.68, 50.9917, 36.35, 36.3825, 60.685, 48.8264, 49.3, 49.217, 61.7161, 66.9, 47.6758, -74.017, 32.32, -9.633, -8.57, 47.0622, 47.7167, 58.45, 46.6, 48.8042, 61.1592, 61.183, -0.892, 36.2275, 54.2892, 38.0406, 45.4333, 45.4833, 45.4833, -0.43, 11.75, -34.1711, -34.1983, 48.0667, 59.1332, 46.8, 45.8167, 41.33, 42.5667, 33.8667, 39.4839, 39.5333, 39.5683, 68.0697, 40.9239, 47.4933, 38.567, 38.6944, 39.9, 48.6469, 66.5167, 21.43, -22.483, 30.0564, 33.7158, 44.3667, -27.45, 74.7167, 74.7167, 61.3, 61.6, 49.55, 46.1222, 41.2, 48.77, 48.75, 41.1494, 45.55, 50.9667, 51.0, 50.9667, 50.95, 43.8083, 43.8339, 46.6667, 45.3033, 47.3333, 35.6256, -14.3, 63.817, 64.133, 64.1331, 43.2064, 43.0667, 56.533, 48.6708, 52.3, 47.5633, 48.9733, 50.0333, 41.9333, 41.8847, 45.5986, 45.6308, 36.4, 29.717, 57.0139, -38.4612, -11.0, 27.4167, 45.7575, 45.4164, 35.2333, 45.5378, 34.0608, 32.9964, 64.2833, 40.0261, -28.78, 46.8886, 47.6333, 37.2633, 43.0528, 38.7619, 44.7656, 46.3119, 50.2167, 34.925, 37.0947, 43.3314, 37.7333, 37.9192, 41.9064, 45.6333, -33.6165, 39.2422, 42.8783, -20.7017, 37.5333, 12.05, 43.8833, 43.8667, 37.505, 49.1667, 49.1833, -20.7289, -33.6022, -33.6004, 39.85, 39.8544, 31.3656, 38.15, 38.2061, 38.2667, 54.5, 37.7131, 59.81, 50.333, 42.9506, 43.1006, 53.05, 40.8333, 45.2142, 32.5333, 38.95, 42.45, 42.45, 42.45, 45.0833, 43.05, 45.5022, 38.15, 41.4197, 50.7167, 48.217, -28.17, -29.12, -25.85, 39.5447, 39.5572, 39.5122, 39.5264, 44.1, 41.85, 56.9625, 45.5, 43.6758, 45.4239, 32.13, 45.3331, 45.22, -23.12, 68.43, 59.18, 43.4711, 44.02, 48.45, 46.65, 51.117, 18.3375, 32.2056, 35.6, 57.25, 34.1936, -23.8289, 47.2489, -1.67, -22.71, -9.967, -39.017, -33.085, -22.917, -22.37, -51.617, -53.778, -32.017, 26.3769, 37.7219, 29.1853, 18.4, 18.3906, 35.2522, -17.8, 21.933, 38.15, 34.7397, 35.7178, 38.8172, 38.7872, 45.8783, 43.8864, 43.85, 40.1167, -42.8333, 60.18, 32.0817, 33.9539, 58.917, 64.7097, 67.73, 26.6833, 40.9667, 47.1175, -24.167, 11.4167, -30.8967, 53.0167, 41.15, 47.4981, 40.9619, -34.083, 43.4508, 33.9669, 33.9511, 33.9519, 50.0167, 51.6667, 43.0308, 43.0661, -33.8258, 45.8, 44.8542, 45.6, 48.4167, -28.45, 57.9167, 49.0167, 50.2833, 47.0, 47.4333, 45.7, 47.8, 48.25, 48.2167, 51.2167, 50.3, 46.9833, -34.15, 50.583, 45.979, 24.7, 24.9, 41.0331, 35.38, 54.6, 53.717, 40.8667, 50.4833, 44.1625, 37.2667, 37.3617, 36.4783, 37.3169, 36.1636, 43.9, 63.81, 45.0853, 35.3736, 53.2333, 31.6833, 49.5, 19.3, 38.65, 30.5653, -33.8, 65.1, 40.6667, 19.25, 45.6817, 31.0667, 31.8836, 48.5167, 48.5333, -37.1776, 7.133, -37.1628, 7.1, 39.0061, 36.4706, 51.1833, 51.2333, -18.317, 49.3333, 32.8117, 27.7894, 32.7333, 50.4667, 44.0531, -34.483, 4.833, 31.2333, 41.9117, 43.6056, 41.95, -36.3613, 41.0664, 41.785, 43.8578, 37.2167, 43.1167, 43.9042, 44.0667, 43.2781, 51.8, 44.1317, 35.85, 29.7286, 46.3667, 42.2833, 32.8711, 42.1928, 49.1667, -23.3753, 44.925, 34.95, 34.96, 44.1, -33.68, 38.8, 44.4667, 28.0286, 42.65, 28.0836, 28.0167, 30.0239, 39.7594, 39.1008, 43.3636, 42.3969, 35.8361, 44.9917, 40.4333, 48.1833, 48.255, 38.0392, 32.6328, -34.5714, 49.5667, 49.5667, 36.85, 52.3833, 35.9731, 36.9769, 52.3833, 52.4333, 52.4167, 35.8936, 35.855, 46.0667, 38.8561, 37.5514, 40.55, 44.9094, 49.0667, 42.5475, 39.1333, 34.9869, 35.0, 47.3833, 41.5181, 35.8092, 42.9717, 33.1581, 51.15, 43.43, 66.9833, 41.5833, 43.9833, 46.8203, 46.7833, 41.5944, 41.5778, 41.6431, 40.5514, 50.8667, 25.18, 31.8333, 31.9333, 39.6681, 52.5, 65.31, -19.683, -20.7767, -20.7594, 55.183, 50.6417, 36.3667, 36.4161, 45.4169, 45.3833, 47.19, 67.0833, 50.3831, 33.8103, 49.017, 16.05, 49.4167, 47.35, 59.8304, 48.6297, 48.8811, 37.9572, -24.4619, 32.8978, 50.2667, 46.9, 53.2, -26.5442, 57.5, 41.7831, -26.5719, 41.95, 57.49, 12.58, 34.2453, 37.9333, 41.6042, 35.7167, 42.8592, 43.2339, 34.3478, 42.5906, 39.3389, 50.767, 42.75, 54.085, 53.8833, -15.93, 45.82, 25.97, 55.1, 65.04, 45.25, -26.13, -24.88, 29.85, 33.6731, 33.655, 40.2878, 18.255, -14.7356, 58.06, 61.13, 51.4333, 62.5669, 62.5769, 47.2325, 52.7833, -32.904, 28.63, 32.4481, 45.4525, 44.5, 48.8486, 48.85, -28.4833, -41.7772, 38.4506, 43.2333, 35.9028, 41.6097, 43.2131, 43.2389, 33.8167, 33.85, 49.1833, -34.5519, 11.85, 50.8333, 40.2667, 44.7178, 47.8758, 30.9461, 51.6167, 51.5167, 51.5667, 41.8186, 43.35, 43.7833, -34.5267, -34.5106, 42.2033, 37.5019, 54.1667, 34.5431, 44.7511, 37.4747, 44.1, 59.42, 53.933, 40.8, 55.75, 43.45, 57.49, 50.6667, 49.0833, 49.0833, 52.25, 16.5, 29.1, 54.85, 48.7272, 43.5833, 51.9108, 61.9667, -42.025, 63.24, 61.39, 52.6667, 54.0667, 54.1817, 51.9, 57.2, 47.25, 67.525, 33.3167, 33.38, 33.3075, 33.4, 36.6389, 32.8556, 14.1717, 36.65, 53.1303, -10.733, 49.218, 51.8067, 49.3856, -67.567, 46.4808, -38.12, 48.4714, 51.9606, 51.8917, -32.0069, -32.0089, 48.1819, -12.5, 45.4333, 39.0333, 37.6178, 46.4414, 46.3256, 42.3414, 49.85, 64.6847, 41.4272, 43.7639, 37.2597, 43.85, 48.25, 48.2167, 66.9167, 66.5789, 66.4981, 45.89, 45.08, 35.7, 39.3419, 69.0833, 39.4286, 36.3464, 42.2833, -30.4829, 35.945, -28.68, 38.7153, 25.3867, 46.05, 47.6167, 47.4869, 45.7189, -37.8, 51.5, 39.0, -37.3389, 31.5, 40.2022, 40.1731, 42.2231, 31.7611, 52.5833, 44.4, 50.833, 48.2783, 48.8542, 48.9375, 46.2964, 47.3, 47.1333, 36.3667, 48.3542, 57.783, 54.095, 27.783, 33.3678, 24.02, 57.9, 44.55, 44.5308, 44.4947, 44.5333, 43.95, 62.4, 60.4167, -23.5293, -17.917, 37.1167, 40.4333, 33.33, 33.583, 61.3667, 39.033, 60.4217, 60.3667, 60.4331, 42.6042, 49.6478, 36.2333, -14.47, -22.5, 48.8775, 37.95, 43.8053, 39.6042, 42.7547, 40.1347, 38.8611, 41.2944, 31.8092, 44.2333, 32.4, 38.9, 45.2667, 50.7667, 35.2833, 36.855, 34.4536, 35.2578, 34.51, 38.8711, 50.9833, 38.8761, 38.9117, 38.9617, 61.7833, 53.78, 76.183, 77.2, 23.417, 70.4003, -29.27, 40.7022, 32.5344, 33.03, 48.8033, 39.2764, 35.4286, 46.25, -36.1047, 40.2506, 44.9333, 51.85, 42.4167, 43.6253, 49.9667, 56.4833, 38.8417, 52.817, 50.101, 38.65, 42.467, 58.1, 55.75, 37.9, 46.2986, 46.5333, 37.9136, 45.2172, 40.4661, 58.3831, 51.57, 40.9583, 55.49, 38.15, 50.1167, 56.267, 50.6575, 48.6167, 48.5167, 49.2142, 58.3, 19.05, 39.9, 29.3283, 42.52, 27.87, 29.8881, 31.2803, 32.3111, 43.9333, 43.9333, 45.2167, -10.5, 58.02, 36.2, -17.38, 45.8667, 33.0722, 35.6667, 48.9578, 72.0, 72.0, 45.85, 45.9, 21.56, 43.5, 48.4661, 38.5556, 38.5069, 38.5667, 38.6667, 38.6956, 39.4172, 46.1333, 42.4194, 34.6847, 39.6375, 45.5333, 45.7, 48.9417, 42.15, 41.7167, 47.25, 39.8958, 59.14, 32.8333, 32.815, 32.8547, 32.3, 33.267, 23.85, 39.4317, 46.3953, 41.8667, 41.4, 43.5097, 36.25, 43.4122, 43.45, 43.5331, 46.8436, 58.3333, 47.3667, 37.0, 38.0858, 32.3167, 30.67, 29.05, 34.867, 36.2, 10.8167, 10.8, 45.45, 60.317, 44.9, 43.9517, 34.1736, 34.3703, 43.3, 45.726, 39.7675, 30.5167, 33.1833, 3.883, 45.8333, 38.5067, 45.8489, 50.0392, 47.315, 45.2833, 34.5172, 43.0114, 44.42, 45.3, 45.3167, 28.3378, 16.051, 38.65, 47.3164, 30.7167, 37.8333, 38.1642, 46.8667, 41.2078, 49.82, 47.3036, 15.1167, 15.1333, 23.067, 67.34, 35.55, 38.9, 17.15, 57.667, 59.9, 10.451, 17.039, 42.1506, 40.9592, 40.9564, 40.3833, 59.91, 64.4942, 64.59, 48.7842, 56.683, 34.051, 66.5294, 36.3561, 37.6331, 38.6158, 38.6453, 43.1667, 37.6344, 43.7447, 34.9444, 42.5333, 44.905, 61.17, 61.09, 38.5328, 38.5333, 38.5, 38.8167, 38.9594, -16.15, -2.2, 36.6594, 36.6636, 38.9139, 40.51, 16.167, 38.8, 38.8, 42.1611, 42.1236, 27.45, 35.6836, 38.365, 39.4247, 41.9833, 43.1667, 43.3544, 43.9256, 35.6967, 38.42, 38.3406, 66.8208, 66.8331, 67.1622, 67.3667, 67.215, 67.7475, 35.4572, 31.55, 31.567, 47.2667, 45.2, 50.7, 50.7, 50.6833, 50.6833, 50.7, -32.9869, 44.9333, 45.15, 45.1875, 48.6667, 66.8125, 29.1, 33.7333, 43.6333, 60.3733, 60.4631, 60.3239, -24.78, 40.7833, 40.7667, -24.85, 50.9667, 66.8483, 37.6511, 43.75, 25.367, 25.4272, 25.45, -31.433, -24.033, 48.85, 48.8167, 48.8833, 48.8833, 36.8833, 36.8894, 43.6, 44.0444, 31.7456, 31.7833, 31.75, 40.7667, 40.7364, 40.7781, 40.7, 40.7708, 29.5622, 42.5167, 38.5006, 33.9978, -13.017, 47.8, 52.0367, 52.0792, 52.8581, 45.4, 23.317, 31.35, 19.2, 36.1, 53.25, 18.02, 39.5667, 57.35, -14.279, 36.4528, 37.37, -4.083, 46.5331, -27.3617, 41.817, 37.7, 37.73, 41.283, 41.33, 42.1831, -22.7433, 31.0619, 13.333, -71.7, -70.3, 24.8, -2.083, 35.247, 35.0667, 43.1792, 43.5, 30.23, 38.1917, 30.0667, 35.42, 19.22, 21.933, 5.9, 61.7881, 61.8292, 41.52, 57.0, 34.7436, 50.3531, 35.2239, 30.1414, 32.9744, 35.1667, 45.6833, -27.3233, 55.39, 59.29, 20.85, 49.1, 30.4528, 34.1419, 35.2167, 35.2106, 35.0667, 65.9606, 50.7, 18.47, 48.2942, 68.9448, 53.25, 53.25, 53.25, 37.5442, 46.1136, 41.1167, 41.45, 43.4194, 55.2831, 41.7667, 38.9817, -24.7298, 44.4667, 40.4633, 40.4667, 50.5, 46.7953, 38.1, 34.6119, 34.6111, 42.85, 47.5775, 46.5456, 42.7667, 41.4667, 34.2878, 40.3167, 55.3167, 55.3472, 28.8147, 43.4569, 35.4833, 35.5347, 35.7047, 63.967, -5.85, 14.5, 38.25, 29.4, 16.53, 35.594, -31.37, 55.64, 49.5033, 37.094, 47.8833, -33.68, 26.97, -30.83, 43.4644, 43.4917, 43.4292, 39.9578, 39.24, -2.433, 42.7, -13.72, -13.762, 13.967, 33.7442, 33.68, 26.0839, 34.1333, 34.4167, 34.4142, 33.4833, 34.4258, 37.35, 22.43, -17.8, -17.77, 36.9906, 39.44, 33.9958, -10.7, -50.2, 4.6, 4.6, 22.53, 35.6833, 35.7667, 35.6194, 35.6169, 34.1208, 20.2, 35.6833, 35.6008, 23.48, 34.95, 36.971, 39.817, -21.96, 34.8994, 37.8225, 34.0167, 34.0158, 34.0075, 34.3119, 48.9833, 36.3478, 31.7625, 34.9358, 38.4381, 27.3, 26.2656, -36.567, 38.4786, 14.7833, 33.9778, 33.5286, 32.3167, 38.5039, 31.8728, 42.8333, 19.45, 25.05, -33.5, 45.5458, 42.8, -27.767, 42.8878, 20.03, 20.05, 13.4833, 21.81, 7.069, 23.45, 44.4333, 44.4356, 44.4167, -21.53, 18.433, -23.56, 44.5456, 31.55, 34.635, 18.217, 39.7, 29.98, 12.6, 12.583, 31.3711, 31.4667, 31.4, 31.3706, 12.1167, 29.5253, 29.35, 34.1667, 7.841, 29.5442, 29.3833, 36.0167, 29.3, -40.783, 29.4508, 29.3389, 31.5069, 18.03, 23.71, 26.1333, 34.1344, 28.8647, 21.53, -14.87, -14.867, 28.78, 33.35, 33.3717, -41.151, 33.1819, 33.0233, -0.917, 36.5833, 7.8, 18.4, 32.5722, 21.47, 32.7336, 32.8667, 32.8158, 32.7672, 32.7167, -24.667, 23.15, 7.68, 24.85, 34.2833, 7.9, 35.1, 13.37, 19.28, 37.7706, 37.6197, 37.7281, 34.1553, 34.1061, 18.0833, 37.3117, 48.8333, 27.3, -14.967, 27.26, -16.367, 15.73, 33.7833, 41.8833, 23.21, 33.7869, -16.267, 19.82, -13.067, 35.1086, -34.35, -17.833, 9.9333, 37.3497, 37.3592, 10.0, 23.05, 26.48, 19.33, 21.0, -31.571, -15.383, 25.55, -31.5, -26.667, -25.8, 18.4667, 17.46, 18.8, 9.917, 18.4325, 18.4667, 22.17, -49.307, 45.035, 18.13, -33.273, 0.862, 37.1953, 37.1953, 37.0533, 37.1822, 35.2372, 35.3056, 22.2075, 17.29, 32.6014, 29.8833, 43.9375, -33.083, 35.3333, 37.5333, -16.333, 44.1944, -34.3, 32.685, 21.05, 34.05, 33.25, -2.25, 33.0956, -24.067, 4.747, 33.7167, 17.92, 29.28, 23.91, 21.98, -34.588, 37.9983, -13.3, -11.1, 28.58, 31.1833, 31.2842, 13.4, 13.7, 13.7, 43.3075, 18.3469, 43.3606, 32.2714, 32.3333, 32.1667, -2.41, -22.017, -6.6333, -0.133, -6.75, -23.217, -13.43, -22.1, -2.533, -28.4, -18.7, -23.5, -23.617, -23.433, -21.483, -20.91, -15.81, 16.9, 31.3972, 48.0667, 43.067, 58.367, 36.5331, 43.8667, 43.82, 42.9, 44.3333, 44.3853, 54.133, 64.28, 56.47, 27.35, 27.3333, 27.4014, 46.017, 41.4528, 43.3667, 43.1, 43.0333, 51.5667, 43.0078, 37.2667, 49.0833, 34.3961, 55.6, 32.05, 9.15, 9.3, 58.7605, 40.3, 27.2169, 38.517, 41.2, 38.4, 45.0839, -1.833, 61.71, 42.9667, 43.0, 43.0, 43.0, 42.95, 43.0, 51.3, 59.2856, 46.1194, 50.8167, 42.92, 51.479, 39.733, 31.4831, 31.6908, 33.167, 52.1167, 52.1167, 52.1667, 52.1333, 52.1667, 52.15, 52.1333, 52.1167, 71.97, 4.95, 4.95, 40.7, 47.3667, 43.9, -24.4, 58.4356, 58.44, 62.6167, 67.5, 22.72, 24.567, 29.55, 12.683, 6.6536, 48.7833, 48.7833, 48.7833, 45.9481, 47.717, -31.7, 30.6264, 59.6483, 34.425, 34.5894, 43.375, 43.2619, 44.2667, 48.55, 46.4867, 46.5333, 46.4833, 46.4794, 46.5, -7.983, -9.67, 34.6647, 47.4536, 46.4667, 39.51, -41.4892, 35.1525, 32.0, 32.0167, 32.13, 32.1, 32.0, 16.53, 16.55, 48.9667, 65.75, 40.7, 7.98, 8.032, 57.7667, 39.6361, 57.83, 61.9458, 61.8406, 63.6936, 33.3622, 33.2106, 67.2853, 41.3003, 41.3011, 45.3667, 64.97, 36.0333, 46.4858, 19.233, 45.4, 35.3061, -14.92, -14.9, -41.4639, 53.3, 45.7728, 54.2, 40.9833, 43.7667, 49.9203, 47.68, 47.9608, 49.4875, 54.8, 54.8, 54.8, 48.2003, 42.8333, -12.6167, 49.9758, 51.9131, 51.7667, 52.3156, 50.567, 54.5289, 49.7969, 49.7458, 53.6631, 51.8831, 49.4231, 50.7294, 47.33, 50.65, 45.0, 50.3, 47.2, 21.495, 21.4994, 39.0167, 52.38, 41.1383, 47.6469, 50.4939, 48.8167, 29.7333, 43.8333, 43.8, 51.8381, 50.3167, 50.3, 38.95, 48.7778, 49.0828, 49.3289, 47.5778, 50.6456, 50.0583, 48.3667, -79.9, 53.6442, 54.5181, 37.5, 14.633, 39.2453, 48.7833, 48.8306, 39.7167, 39.7858, 39.6842, 45.4833, -32.0335, -32.0458, -32.0632, -37.871, 41.1117, 37.65, 51.5833, 40.4831, 36.2094, 52.3833, 33.6, 38.9667, 46.5, 41.8644, 41.8706, 34.6736, 34.6942, 38.6886, 33.4667, -41.15, 33.6228, -41.1708, 36.7458, 41.8167, 44.9469, -43.0425, 52.3667, 38.4747, 41.4167, 52.85, 39.4872, 48.1, 29.7714, 44.65, 47.45, 35.4661, 46.75, 35.2683, 42.8667, 45.7167, 45.9869, 47.5303, 47.7333, 47.6833, 47.6872, 47.4444, 47.65, 47.65, 19.1336, 45.2536, 27.02, 40.3, 27.1525, 45.1833, 49.45, 47.271, 39.1836, -26.5, 38.7042, 38.6753, 37.1317, 52.8833, 52.7833, 40.9383, 40.8592, 42.5333, 50.1167, 34.8956, 48.4958, 23.593, 52.9, 39.3167, 47.1828, 47.2142, 51.9056, 38.2, 64.0, 63.767, 46.4331, 13.4, 40.9478, 40.9478, 29.5833, 39.295, 36.1903, 62.9367, 45.5167, 31.0, 62.9167, 50.433, 66.25, 46.6722, 66.6033, 63.2, 45.51, 38.4667, 38.0, 42.4075, 59.4433, 53.133, 47.867, 35.3322, 36.5419, 35.1333, 40.7831, 40.8206, 50.1667, 40.3589, 31.91, 31.9122, 32.4111, 35.5333, 32.4567, 32.335, 35.1647, 35.9667, 44.4403, 51.4167, -6.967, 49.5, 50.4167, 52.183, 50.867, 42.1569, 32.7131, 35.2317, 50.35, 54.1, 50.933, 35.591, 50.633, -29.83, 49.2667, 34.6314, -9.1, 42.317, 38.267, 44.1383, 39.9222, 38.3333, 46.2403, 46.2833, 46.2833, -10.467, 69.2347, 13.55, 48.3333, 54.817, 16.667, 36.0, 12.534, -2.6, -24.27, 37.567, 37.55, -1.268, 50.2167, 50.2167, 50.2167, 48.0833, 48.085, 49.567, -6.117, 51.1667, 54.633, 47.017, 2.72, 1.517, 55.533, -15.883, -6.46, 53.9, 59.6, -11.63, 32.28, 32.42, -1.867, -36.3667, 44.2319, 40.9586, 43.3981, -19.467, 36.18, 36.178, 33.0, 36.0167, 40.567, 42.6833, -24.1542, 41.7, -33.7704, 65.9383, 34.1833, -29.23, 49.9167, 50.1167, 56.35, 60.38, 50.68, 39.12, 35.8833, 35.9297, 39.35, 37.4167, 37.37, 46.0, 53.7667, 35.2028, 40.8997, 60.3539, 60.1883, 60.1283, 52.8833, 42.6003, 70.167, -4.667, 37.4, 37.15, 38.9822, 33.6325, 51.25, -37.0277, 34.7167, 34.72, 17.88, 37.317, 41.8431, 43.533, 38.433, 45.7667, 36.5672, 56.08, 43.73, 35.4867, 32.7997, 28.284, 34.346, 40.0, 32.297, 39.07, 39.567, 36.4167, 22.25, 37.53, 39.1614, -18.367, 41.217, 50.7333, 23.133, 73.18, 33.9283, 50.1833, 35.215, 21.73, 31.4, 31.167, 46.5667, 45.217, -34.5683, 52.702, -42.05, 23.4, 44.4, 22.783, 24.667, 27.33, 27.23, 55.367, 25.333, 37.5, -25.8925, 47.5983, 38.8961, 42.8, 42.7833, 45.0167, 39.3983, 17.467, 40.7142, 49.65, 49.65, 37.135, 44.7631, 52.798, 46.5667, 46.5667, 35.3553, 35.3647, 40.0328, 48.65, 45.6167, 39.55, 39.5719, 44.6333, 57.35, 44.6333, 43.1211, 43.75, 43.7694, 45.9667, 46.1833, 37.715, 43.2167, 61.8, -41.3831, 30.6886, 53.381, 45.1333, -41.3886, 9.92, 39.6828, 43.7167, 42.6167, 44.0833, 48.5042, 38.2, 39.4078, 39.5781, 39.5283, 35.4922, 35.3253, 48.55, 36.1661, 37.5833, 41.85, 43.1808, 60.72, 44.5478, 44.5, 40.0331, 47.2, 47.2381, 52.7167, 40.7672, 40.9167, 45.4511, 16.7, 30.73, 29.6, 62.1, 41.733, 22.55, -37.9075, 41.7167, 50.17, 68.8167, -36.4289, 45.4, 45.4333, 45.4333, 42.6772, 45.5325, 42.7, 43.6303, 34.3019, 44.7694, 44.8406, 44.76, 44.8167, 34.45, 48.3833, 33.7033, 46.95, 33.77, 47.8333, 46.4658, 38.033, 51.867, 49.7833, 39.4667, 35.155, 25.6, 32.717, 31.1, 24.817, 33.95, 68.95, -23.1, 53.85, 38.75, 33.45, 40.0589, 36.795, 48.45, 29.2, 57.0, 41.7358, 62.0, 56.5, 52.75, 44.0, 35.0, 59.0, 52.5, 45.0, 30.0, 50.0, 34.0, 32.18, 32.5, 37.667, 37.133, 29.533, 42.3703, 40.8217, 43.217, 66.25, 34.983, 42.1, 38.5528, 33.6472, 50.45, 32.6, 36.45, 17.667, 38.8, 47.5319, 53.3333, 50.833, 42.95, 44.9667, 39.5703, 42.9383, 38.9161, 43.2372, 45.3767, 45.4, 34.2667, 34.2639, 42.0181, 32.4506, 32.5, 32.4267, 32.5428, 32.3919, 32.4514, 41.3333, 30.5667, 31.8606, 42.5667, 43.2667, 38.0, 29.3333, 42.317, 32.5, 40.3944, 55.9331, 51.4833, 51.4167, 29.55, -3.68, 45.8, 43.4047, 1.6, 1.55, 26.98, 2.262, 2.3, 50.8, 50.85, -17.38, 39.9811, 31.6, 35.18, 35.2, 29.37, 33.068, 34.2333, 46.5, 47.7283, 40.7361, 40.2706, 40.3167, 41.2294, 41.1014, 66.5997, 62.38, 52.25, 50.8544, 13.37, 43.3, 39.5833, 33.7986, 33.4, 31.1831, 39.5678, 34.1667, 31.5553, 48.0728, 47.5783, 34.4667, 47.5667, 32.9167, 38.6319, 43.0019, -60.7083, 37.4, 41.3328, 11.43, 38.85, 68.7553, 64.6833, 63.0081, 37.917, 57.25, 63.62, 11.35, 36.8667, 36.8775, 24.82, 41.2, 35.7606, 36.3697, 60.88, 62.76, 33.5636, 36.1667, -12.38, 37.7617, 34.4722, 37.8089, 45.0058, 48.0667, 44.9667, 32.3833, 42.8589, 32.7833, 43.0022, 32.6333, 42.95, 50.55, 33.3667, 44.8728, 35.97, 43.15, 61.5175, 40.6008, 43.1244, 42.75, -25.24, 51.983, 22.767, 39.1, 42.85, 42.8667, 44.7, 45.0167, 49.3333, 49.35, 56.72, 50.0017, 35.1167, 17.13, 54.4167, 58.08, 58.78, 11.12, 10.603, 48.9981, 55.54, 41.075, 46.85, 27.95, 28.33, 50.6667, 39.5228, 13.15, 1.3, 1.35, 56.74, 1.08, -32.6133, 60.16, 38.5, 37.5014, 42.033, 40.03, 28.0353, 38.8, 40.1, 46.9167, 53.8833, 46.2167, 42.3964, 42.3914, 43.0558, 43.5878, 43.7347, 50.1333, 50.1167, 42.8931, 2.033, 43.183, -81.65, 27.13, 54.5, 24.45, 58.8875, 31.2, 45.48, -27.78, 66.9167, 45.6656, 45.6689, 44.2842, 49.4833, 4.217, 57.0575, 57.0481, 57.05, 56.55, 43.1533, 20.133, 39.75, 39.75, 37.8, 39.5, 29.2, 29.2, 45.8333, 43.2667, -8.35, 57.733, 48.6833, 49.0833, 63.1883, 59.4547, 59.4556, 62.65, 46.25, 65.8667, 45.6228, 58.4, 58.49, 56.84, 59.9946, 53.1467, 64.62, 60.11, 69.3777, 59.1831, 36.933, 60.4839, 55.49, 59.83, 44.9436, 68.2883, 65.2019, 62.5, 67.4102, 47.6833, 42.0, 41.97, 42.017, 59.9833, 58.39, 54.0, 56.65, 68.1503, 59.15, -24.983, 45.3367, 57.317, 61.9772, 37.0875, 37.3133, 38.9, 59.3117, 62.7089, 50.2917, 41.8586, 45.6333, 59.9081, 55.2833, 55.2833, 55.3, 55.3, 55.3, 55.3, 52.97, 53.45, 45.17, 43.9, 48.7167, 51.5, 71.0839, 48.65, 30.265, 30.3433, 44.4625, 42.0167, 43.3339, 41.0558, 60.6142, 42.67, 34.7833, 46.3, 52.35, 42.5667, 37.9833, 53.0, 53.03, 46.5, 44.3667, 48.62, 37.5339, 43.7167, 54.8333, 54.8167, 54.7333, 35.5164, 39.5333, 44.0833, 37.1644, 40.7833, 39.6633, 44.9, -40.8347, -40.8492, 30.0067, 34.4678, 35.9419, 38.8167, 38.8822, 30.2, 46.4394, 39.7772, 34.1158, 59.9, 58.36, 38.7839, 40.6044, 53.3667, 50.0667, 54.2833, 63.4194, 54.75, 55.34, 46.8367, 35.9106, 36.0089, 62.3667, 40.5453, 44.1333, 45.0997, 44.1333, 63.5167, 58.97, 58.1422, 42.4667, 50.7333, 47.9167, 47.5414, 47.4247, 39.0403, 47.0333, 40.55, 34.5081, 49.0667, 34.5, 38.3989, 62.0303, 35.3333, -33.7844, -33.7676, 41.9667, 35.4519, 38.2364, 35.455, 43.95, 32.71, 16.75, 54.3, -3.7, 34.4167, 31.65, 34.0828, 34.3558, 9.5833, 67.3678, 67.25, 67.8206, 68.0839, 44.8833, 39.425, 39.56, 39.3167, 42.6514, 45.7289, 35.2803, 59.75, 61.27, 59.19, 43.2078, -6.126, 52.1256, 42.695, 52.27, 58.3167, 61.1581, 61.5644, 33.23, 31.883, 24.467, 51.0606, 67.9, 38.25, 8.98, 13.03, 13.0, 58.8842, 50.1167, -13.85, 43.4833, 40.9258, 43.4833, 39.9286, 60.4667, 60.4194, 49.2, 39.0, 51.1408, 56.2, 63.17, 32.4033, 54.033, 38.3197, 51.63, 46.3575, 49.9, 53.0, 45.7831, 23.633, 38.2456, 39.8333, 42.9667, 49.45, 41.7667, 37.1167, -27.1147, -32.732, 37.0556, 40.0167, -34.08, 30.35, 40.6153, 30.3367, 40.6239, 41.39, 52.6167, 42.95, 51.3531, 67.0167, -10.667, 39.383, 7.2, 32.65, 33.38, 42.3, 47.05, 47.05, 50.3756, 45.3242, 52.3167, 38.2994, 30.5831, 37.9672, 38.3167, 36.23, 21.333, 71.875, 47.6833, 49.7667, 46.0333, 41.775, 69.7889, 59.8, 61.887, -23.48, 52.4, -0.933, 1.717, 50.8833, 65.54, 61.7167, 57.917, 69.6833, 36.77, 51.15, 53.1, 52.53, 46.533, 63.65, 43.58, 64.1108, 23.767, 20.6, 2.067, 35.4831, 35.5333, 36.283, 36.712, 62.5333, 46.2333, -0.73, 46.3667, 49.6167, 49.65, 44.5, 50.8982, 56.3333, -31.2319, -31.2353, 35.1667, 30.5403, 40.9, -43.42, 33.9947, -27.9832, 38.7506, 44.6, 45.5833, 26.47, 41.7072, 44.6392, 36.6953, 45.1994, 49.0167, 41.3333, 42.1833, 37.9667, 45.6333, 40.5, 42.15, 45.45, 45.5906, 40.6764, 42.4014, 44.6264, -17.6053, 19.0825, 37.1683, 38.8983, 44.0725, 25.7, 42.9011, 44.9667, 45.0167, 39.8583, 42.7667, 26.2, 26.0814, 42.5667, 42.4667, 48.75, 33.3814, 38.4239, 45.8333, 47.5619, 49.4667, 47.5833, 42.7167, 54.9333, 41.9, -30.9225, 42.15, 55.08, 49.0, 37.5122, 49.9833, 40.0797, 60.38, 33.9153, 39.5558, 61.1, 43.9364, 44.8667, 34.9078, 34.9167, 38.1167, 44.9083, 35.9067, 49.75, 49.75, 54.417, 36.3894, 44.5139, 36.1981, 43.5, 25.52, 49.7867, 38.8008, 39.2836, 44.3606, 42.3333, 43.4333, 43.1653, 35.5419, 42.25, 46.1833, 43.1644, 50.4167, 50.4167, 69.5333, 38.6553, 40.4725, 40.2472, 43.2333, 50.9167, 46.4578, 57.57, 53.3667, 53.3667, 43.4231, 46.2667, 46.2667, 55.7, 55.7833, 43.5167, 43.53, 47.6667, 47.4175, 47.6831, 47.6217, 47.6811, 52.1833, 51.8167, 45.8236, 47.3, 49.0167, 42.4306, 38.6667, 44.8192, 36.6311, 51.1, -29.667, 41.8161, 47.3667, 49.5, 52.8, 49.45, 36.3628, 34.1311, 37.2, 37.2353, 39.9167, 42.1, 44.6667, 45.4, 44.2469, 43.0667, 39.8361, 39.7667, 37.3694, 39.8447, 37.2833, 36.4711, 43.3436, 39.9667, 42.9167, -24.123, 39.7333, 32.9667, 40.5711, 42.8222, 36.2833, 36.1933, -33.7065, 35.6764, -37.0748, 42.5333, 40.5931, 30.7, 50.0, 37.5625, 38.0406, 38.6833, 53.5333, 40.4403, 35.9325, 46.1833, 49.65, 37.7, 33.4792, 38.25, 46.7833, 49.7, 49.7833, 49.7333, 49.7, 49.9, 47.8833, 43.4869, 44.7667, 32.9083, 47.1833, 42.0667, 35.37, 39.2, 39.1833, 46.55, 34.2333, 34.2333, 67.45, 62.45, 55.87, 55.43, 59.2, 44.9667, 52.2331, 24.3, 34.083, 58.97, 42.9833, 45.4167, 37.2714, 41.9983, 30.9172, 38.1669, 41.5178, 48.9167, 59.95, 46.0556, 32.9403, 41.1247, 39.4833, 47.2767, 47.2833, 33.3667, 51.2333, -26.92, 43.9822, 47.15, 47.1547, 59.95, 46.4167, -51.7, 42.6333, 44.2206, 44.9589, 35.1767, 48.4564, 44.1692, -40.7642, 44.1708, 44.9528, 16.97, 17.0, 45.0167, 51.88, -28.6617, 34.1667, 41.9564, 37.8603, 42.0414, 34.1667, 39.7, 41.4581, 41.4167, 58.0, 49.7333, -11.01, 56.5, 29.9333, 29.9381, 49.283, 44.2667, 46.5, 47.8664, 51.3, 33.9333, 35.9247, 42.15, 39.0858, 33.9667, 35.81, 40.7933, 42.0167, 31.4333, 39.7167, 37.2167, 32.2822, 32.2833, 33.4692, 81.6, 38.1692, 60.7333, 58.9569, 50.1833, 49.2333, 52.8967, 45.05, 59.3, -37.1, -37.0717, -37.068, 44.7892, 44.75, 28.4631, 18.25, 39.6253, 39.6667, 40.4883, 36.6736, 46.8947, 38.0053, 40.9167, 48.0667, 51.45, 73.7667, 47.688, 39.9714, 55.9, 48.3508, 50.2892, 49.5333, 54.2503, 29.7236, 64.0225, 65.09, 45.5667, 38.2692, -35.2795, 65.0667, 55.66, 44.2661, 45.3903, 39.0833, 32.2314, 48.5333, 48.5667, 75.42, 38.2144, 40.6278, 31.8347, 31.2569, 38.9764, 53.5994, 52.3, 52.35, 52.3333, 40.3764, 41.4039, 46.5136, 38.9719, 47.7333, 47.7372, 44.5114, 49.1333, 46.5131, 44.7344, 55.95, 55.9333, 55.95, 63.3833, 41.5, 33.5575, 50.6, 46.05, 49.1333, 47.0333, 45.4333, 45.4333, 46.5833, 46.85, 46.2, 46.85, 45.6667, 46.8167, 45.1667, 45.1667, 46.6167, 45.5167, 46.75, 46.7833, 46.7833, 46.4833, 45.5, 49.75, 46.4167, 46.7333, 45.6167, 45.2167, 47.05, 47.5667, 48.4, 45.65, 16.72, 43.8667, 51.6692, 48.62, 31.0372, 32.4414, 45.1833, 45.0417, 45.0456, 36.1175, 36.1181, 36.1347, 40.2333, 36.1208, 48.5394, 36.1625, 43.9, 45.15, 35.8953, 46.8536, 41.75, -35.0333, 44.3167, 39.9042, -35.0, 60.46, 47.86, 42.3, 44.87, 48.3667, 59.35, 59.34, 59.3533, 40.8333, 37.95, 42.3997, 37.6967, 37.9994, 37.8892, 16.33, 4.35, 59.2333, 68.58, 53.5, 60.8333, 46.15, 33.4311, 50.1167, 39.0044, 61.0008, 43.2167, 61.6467, 39.3669, 53.8, 41.5, 36.9742, 39.5861, 50.0667, 50.1167, -38.3833, 59.25, 59.25, 57.29, 57.15, 67.5, 63.97, 65.51, 63.6, 61.17, 66.7667, 64.95, 63.32, 63.28, 63.3028, 39.5625, 42.6469, 58.33, 58.2, 65.7, 41.795, 62.8, 44.5767, 48.6667, 43.9667, 42.9108, 36.6019, 40.1, 59.95, 51.103, -42.155, -42.1558, 62.3, 59.4, 59.05, 51.0667, 48.55, 36.4414, 43.3833, 44.6667, 43.3667, -35.256, -35.2836, -36.8472, 50.4, -42.7681, 51.05, 51.0333, 51.1, 42.95, 42.9833, 39.3047, 48.7833, 48.8283, 42.1, 40.1833, 42.1894, 39.5631, 33.5406, -32.7963, 42.0256, 41.0908, 46.7153, 58.083, 61.7, 42.0167, 35.8683, 46.9167, 58.93, 63.85, 59.1513, 39.4344, 49.217, 41.0125, 61.9157, 27.1897, 36.6333, 36.6364, 47.0, 52.3667, 37.4833, 13.53, 44.8797, 55.54, -32.58, 34.4764, 48.6833, 48.7703, 34.4744, 48.8292, -33.517, 65.0733, 55.917, 46.7167, 44.8167, 47.8667, 49.7, 44.8, 44.8592, 45.2833, 46.5333, 47.9833, 49.45, 45.6667, 48.5667, 45.0833, 47.7667, 45.1333, 45.1167, 51.3667, 51.3667, 51.3833, -36.6189, 47.95, 44.07, 46.7333, 29.8833, 29.8858, 45.5667, 46.05, 29.8722, 45.7, 45.0833, -16.45, 45.55, 47.45, 46.4833, 45.6667, 47.3667, 39.9, 43.2, 43.2, 43.1833, 43.1167, 41.2878, 41.9, 43.95, 38.6856, 38.9286, 46.35, 38.8147, 48.3333, 10.67, 47.9167, 45.3833, 28.25, 45.5433, 45.55, 48.6333, 46.2833, 46.05, 45.4117, 47.2, -20.887, 48.63, 46.3167, 51.9833, 47.4833, 48.1833, 46.0667, 46.1167, 48.65, 46.1, 47.1167, 46.4833, 45.9667, 30.7775, 45.6667, 46.9833, 48.4833, 46.3, 47.4331, 45.8667, 37.1069, 45.1333, 46.15, 48.4167, -28.0489, 56.6, -28.0361, 45.9156, 46.4, 45.8833, 48.05, -15.933, -41.3381, -41.3225, 45.8667, 47.6, 45.9833, 45.6333, 45.5667, 45.8833, 45.8489, 38.1417, 45.2667, 45.95, 45.6911, 43.9903, 45.7333, 46.7167, 48.8833, 46.9167, 45.8, 47.0667, 40.3667, 47.0933, 47.5667, 47.5833, 47.6167, 47.5667, 47.5167, 34.5183, 37.7, 42.1, 31.9497, 46.9167, 39.7736, 39.8167, 46.0833, 46.2667, 45.5167, 5.5, -22.3472, 46.9167, 43.0333, -22.3458, 45.4, 47.15, 47.15, 48.6667, 54.3, 45.85, 52.9167, 38.6289, 38.75, 38.7525, 38.6292, 38.6572, 38.6333, -28.18, 45.75, 46.55, 45.2, 44.7, 48.4089, 30.1, 30.1333, 30.0858, 48.7383, 46.9167, 43.25, 62.0528, 48.7411, 48.7375, 46.5833, 45.35, 33.6525, 50.4367, 63.4833, 35.6667, 46.6833, 47.85, 46.5333, 45.7333, 46.35, 46.9667, 44.9461, 46.4167, 57.1575, 54.0167, 44.9319, 47.2, 57.1553, 47.2333, 44.3222, 46.45, 27.7628, 59.9667, 27.7628, 27.9106, 38.7556, 54.333, 46.6667, 46.763, 46.25, -21.333, 45.55, 48.183, 48.183, 48.6167, 46.2167, 46.8167, 47.3108, 45.2833, 48.6833, 45.7667, 46.3333, 46.6333, 47.85, 45.2167, 45.9333, 42.7833, 42.7667, 46.7333, 47.15, 50.8, 47.5667, 53.6333, 46.1667, 42.7, 46.1167, 46.6167, 46.0667, 19.0833, 35.3028, 37.4414, 30.2667, 52.95, 44.7167, -19.03, 46.4833, 46.6333, 46.6333, 65.9, 41.1128, 41.1167, 50.2167, 50.2667, 31.4667, 36.7297, 40.0181, 43.6728, 39.2494, 40.9167, 30.85, 43.8867, 29.6219, 34.6167, 52.567, 68.62, 50.2, 54.1, 56.5, 42.867, 26.33, 44.383, 30.5, 27.7, 41.17, 32.917, 63.8467, 35.55, 42.4, 45.9111, 45.8478, 63.85, 59.4617, 51.35, 45.1667, 39.6167, 32.76, 39.5608, 42.9675, 38.2339, 40.9, 34.5658, 34.5, 33.1481, 37.9, 3.131, 5.524, 6.167, -2.898, 0.461, -1.638, 49.1167, 30.0175, -8.489, 59.883, 55.233, 39.8167, 49.6, 49.5667, 49.5667, 49.5667, 46.4333, 46.4333, 46.4, 37.1397, 38.22, 34.4547, 45.1167, 33.0367, 42.9592, 42.7, 36.8861, 48.3164, 45.3036, 47.7833, 45.3, 43.45, 42.2322, 39.7167, 63.3333, 47.2, 34.6033, 34.333, 33.9364, 33.9667, 50.85, 50.88, 40.5, 48.8869, 40.8533, 40.3914, 44.4122, 44.5169, 43.0908, 44.95, 51.7833, 51.9667, 62.41, 62.5244, 62.43, 35.07, 44.9031, 34.2667, 62.55, 62.675, 59.86, 37.8833, 39.5667, 46.3236, 47.8667, 38.4231, 39.5517, 34.0028, 35.9667, 36.2, 33.9733, 43.1, 43.8933, 47.55, 35.3694, 34.1953, 44.0761, 43.9833, 62.15, 43.6, 52.45, 49.433, 7.362, 33.7156, 47.4775, 43.7, 69.5881, 69.5794, 60.4, 64.9025, 64.9305, -0.151, 36.2, 33.3003, 46.7, 47.1928, 40.0314, 33.3667, 14.467, 40.45, 22.533, 63.6, -7.217, -7.38, -7.217, -27.159, 21.2, 9.117, 61.25, 9.8, 14.883, 44.9958, 41.1042, 50.3, 46.1, 31.7078, 49.1, 49.1333, 42.9967, -7.83, 42.15, 40.4167, 65.5117, 0.064, 61.3333, 55.2833, 45.7167, 41.2214, 41.325, 41.2003, 62.78, 39.9508, 52.15, -32.38, 59.58, 38.3772, 38.6667, 44.6122, 45.0667, 45.1167, 61.7139, 44.665, 52.8361, 45.15, 38.6611, 44.3167, 42.8, 50.1, -18.13, 36.05, 54.1333, 78.25, 55.93, 59.83, 59.85, 67.65, 70.9627, 58.57, 77.8831, 62.0192, 62.05, 59.7667, 59.4442, 56.8, 45.35, 55.1, 43.617, 44.8, 62.3292, 51.45, 68.2453, 49.735, 68.15, 32.5806, 42.4667, 48.6, 50.6139, -31.9558, 32.7333, 35.6, 35.5733, 34.6833, -42.1236, 60.7278, 43.2436, -35.3766, -35.3406, -40.7292, 17.4, -40.7314, 42.1836, 47.9161, 52.05, 52.1167, 43.4372, 43.4022, 64.1, 43.6167, -17.1142, 48.9972, 38.9664, 43.3333, 46.15, 47.8833, 50.3, 50.3333, 50.3, 50.2667, 50.2833, 60.0, 53.9167, 30.0667, -3.442, 41.7644, 41.9833, -33.9, 46.15, 46.1667, -33.9465, 46.1667, -33.8414, -33.8607, -33.8521, -34.0, 63.38, 61.6667, 33.2053, 63.04, 24.9, 44.4833, 44.4667, 60.35, -69.0, 40.6661, 43.05, 37.9928, 43.1111, 40.817, 61.3, 65.0, 53.183, 53.4, 46.25, 46.9167, 47.1667, 47.2667, 46.4667, 27.07, 46.0833, -28.283, 0.3833, 46.75, 37.067, 36.95, 33.6, -29.2, 49.8, 40.3667, 45.7167, 34.3833, 35.0197, 40.2353, 6.58, -5.083, 4.42, 38.08, 28.365, -28.7551, 46.73, 35.7, 11.3, -18.0, 32.7225, 47.2472, 47.25, 47.15, 47.2675, 38.3422, -31.7, 34.283, 58.7167, 48.15, 36.33, 35.9, 37.68, 36.3, 3.78, 62.2333, 35.1503, -14.3333, 47.2, 9.664, -12.4, -12.3, 42.4, 40.3, -17.55, 35.9369, 61.8167, 39.1678, 39.1667, 33.1714, 14.9, 46.6014, 53.6167, 25.033, 24.2, 21.483, -39.7, 46.4, -35.2546, 23.0, 49.05, 61.3044, 22.15, 4.87, 27.0, 65.5831, 65.5739, 37.783, 36.25, 56.07, 60.68, 35.5, 34.8, 55.95, 16.883, 37.1, 34.317, -14.483, 36.15, 60.95, 61.0267, 38.9833, 38.9833, 4.896, 56.38, 8.85, 53.8667, 42.517, 32.6875, 49.25, 33.4781, 42.25, 62.32, 33.4164, 33.5722, 33.4411, 30.3975, 30.4333, 30.3961, 33.7667, 38.435, 38.4331, 59.3831, 32.3994, 34.9058, 32.35, 36.0381, 59.77, 69.55, 9.557, 9.4, 22.8, 38.6, 46.9589, 13.767, 52.7331, -24.8819, 41.7331, 25.7608, 60.8167, 27.95, 27.7053, 27.9619, 61.4656, 61.4667, 61.4867, 61.5175, 22.2, 47.2, 22.0, 43.9, 43.8583, -31.0867, -31.0742, 70.45, 63.3783, 38.3167, -6.1, 65.1667, 65.1744, 34.2069, -19.634, -37.237, 30.733, -5.083, -5.067, 35.5, 52.5458, 35.7297, 35.78, 37.8283, 39.85, 39.67, 55.383, 51.567, -37.8, -2.8, 2.85, -19.455, 62.4503, 50.6394, 21.3333, 21.82, 10.82, -25.033, 36.3906, 25.05, 14.917, 46.9333, 35.4478, 50.75, 44.5167, 56.9, -19.17, -0.04, -34.4048, 40.5, -6.5, -8.16, 1.35, 1.4, 42.85, -44.517, 35.8847, -30.7111, -30.7051, -31.8896, -31.8986, 3.2, 67.91, 33.3722, 49.567, 36.0153, -21.55, 40.4344, 64.92, 55.9, 65.72, 50.03, -25.6408, 29.6675, 28.1522, -42.3003, 58.3, 58.25, 46.5, 48.6667, 57.2, 41.27, 65.5997, -7.33, -43.2397, 54.85, 44.8, 52.8, 52.7667, 49.0, 62.9, 45.6833, 45.75, 55.2, 36.05, 34.983, 51.6667, 51.6667, 48.3833, 33.2422, -36.4378, 38.52, -6.0, -23.017, -27.55, 41.9003, 41.8756, 48.25, 59.583, 25.0069, 38.7, 37.1167, 14.07, 39.6, 4.313, 4.3, 14.0333, 30.57, 36.3333, 35.9225, 38.0144, 38.0014, 45.4167, 30.5844, 46.9989, 42.7, 41.2333, 45.0333, 38.8183, 38.9078, 45.1017, 25.8, 36.465, 36.4167, 39.0, 67.47, 41.68, 41.75, 8.87, -2.92, 33.1833, -21.255, 38.3, 44.9044, 35.42, 18.91, 42.0028, 40.3544, 37.383, 36.9233, -3.3667, 37.3, -6.85, 63.95, 60.47, 60.167, 50.9789, 14.05, 35.1333, 35.1011, 35.683, 18.5, 64.6831, 23.779, 28.73, 35.0233, 41.7767, 41.7636, 20.2, 40.983, 15.72, 41.933, 47.8, 57.9, 57.9, 37.2, -21.7125, 48.85, 63.44, 54.65, 65.2608, 35.3675, 37.9492, 37.9531, -5.3, 32.1, 18.25, 9.017, 49.198, 3.45, 34.4806, -0.485, 49.15, 54.633, -34.4292, -34.4061, 28.95, 33.4333, 33.3833, 33.4258, 40.9, 37.6833, 31.0781, 36.03, 41.7833, -38.75, 28.4775, 28.0475, 36.5, 25.117, -13.536, -26.841, -9.15, -64.97, -45.594, 35.6, -19.6423, -19.6475, 36.325, 68.7333, 67.302, 47.1667, 43.8111, 44.0647, -29.0479, 25.6097, 43.9833, 21.3667, 19.38, -17.85, 20.82, 44.7833, 45.9347, 25.35, 21.419, 21.52, -38.2362, 39.8, 35.7667, -5.083, -5.05, -22.41, 52.07, -5.05, -22.27, 69.2, 29.3486, 29.4744, 37.2294, 38.0, 42.467, 42.0, 40.8667, 45.0, 49.533, 73.55, 54.5167, 54.4667, 48.8, 48.8167, 54.5, 39.4467, 48.55, 48.55, 32.71, -33.6908, 39.45, 39.4519, 39.4708, -22.4518, 46.7939, 29.91, 47.07, 40.3494, 60.1667, 60.1667, 60.1667, 20.2, -16.183, 19.93, 40.85, 50.7, 53.7625, 50.7, 43.8167, 43.8564, 58.65, 35.58, 57.517, -26.3919, -26.3911, -41.2314, 49.7, 33.4367, 33.3, 33.3739, 33.4536, -28.8544, 41.8017, -29.15, 19.82, 19.87, 26.617, -21.1642, 45.0331, 46.533, -24.62, 17.383, 35.55, -24.4935, 19.75, -27.9867, -27.9978, 17.63, 40.6167, 15.3167, 19.1167, 43.1833, 44.2814, 46.7994, -84.6, 43.6483, 43.65, 43.7231, 43.7536, -25.93, 40.62, 40.5, 46.0667, 46.1, 46.05, -21.4606, 39.3528, 45.6069, 45.6194, -21.8125, 53.8167, 53.9667, 53.9667, 43.2644, 29.7547, 48.0667, 48.1331, 14.8, 41.7197, 8.467, 8.483, 39.9833, 40.0333, 49.483, 32.9028, 46.5167, 31.9172, 31.8814, 30.9139, 39.8644, 38.9667, 29.4822, 55.8, 47.6, 47.5806, 47.5933, 35.7636, 55.75, 73.2333, 14.75, 35.4167, 35.3, 48.2211, 55.2, 44.5667, 38.6, 42.9167, 53.2167, 53.2167, 32.9206, 54.925, -36.4917, -36.5031, 42.0833, 44.15, 51.65, 51.7667, 45.1219, -25.1256, 33.3167, 41.93, 36.4667, 36.465, 33.1806, 33.3144, 76.55, 76.5167, 44.3667, 17.666, 48.5167, 48.3667, 48.3667, 48.4167, 48.3667, 48.4, 38.9333, 40.8167, -10.5853, -10.5831, 45.6, 50.4167, 56.7, 39.1, 30.35, 34.583, 41.883, 4.4, 4.35, 48.31, -29.4448, -29.4345, 8.65, -35.4408, 44.4122, 47.9667, 47.9833, 18.567, 18.57, 39.2, 36.7664, 46.6667, 41.1167, 31.4461, 38.4461, 46.95, 45.85, 20.23, 59.7, 35.0667, 40.633, 71.58, 28.4114, 33.9, 14.22, 45.4539, 45.4294, 45.4569, 42.8667, 58.867, 45.1569, 44.6667, 45.35, 38.65, -15.6614, 44.0333, 45.4283, 41.6294, 29.237, 43.8833, 45.7667, 62.5331, 48.5, 48.5667, 48.55, 48.5667, 43.2433, 50.7, 40.4447, 40.4333, -14.5229, 27.7, 40.85, -9.133, 28.63, 56.54, 62.9, 47.3167, 65.5667, 48.3989, 41.8975, 41.4792, 38.125, 41.7797, 44.6667, 36.3833, 42.0283, 34.4397, 40.2233, 41.3331, 41.415, 38.1, 56.499, 54.5, 49.8589, 56.32, 10.767, 34.3325, 34.1925, 24.293, 41.2667, 55.75, 63.6667, 28.6242, 28.6158, 41.63, 41.6267, 48.6, 46.35, 36.72, -6.75, -2.225, 65.826, 56.533, 55.867, 20.98, 53.5, 34.8, 58.85, -18.117, 18.4356, 49.0167, 45.25, 45.2333, 52.683, 58.15, 40.0833, 32.1, 41.1386, 34.5786, 34.765, 9.05, -35.817, 57.6, 23.43, 47.73, 53.55, 49.0833, 5.3264, 55.233, 53.467, 43.75, 35.85, 62.235, 63.8208, 63.3336, 18.43, 40.3, 43.2333, 43.275, 43.2397, 42.833, 56.28, 41.833, 34.067, 35.55, 35.683, 62.9572, 36.4667, 39.8844, 44.6, 42.0356, 31.175, 41.65, 40.6833, 41.5886, 46.4833, 39.8608, 41.5631, 41.5667, 43.7, -23.383, 1.017, 63.98, 47.7, 19.283, 37.8667, 53.4333, 45.4333, 42.617, 38.5, 16.717, 31.7119, 58.95, 55.117, 47.7833, 50.05, 63.95, 56.5, 39.95, 57.5, 37.8167, -22.6967, 48.7806, 26.17, 34.87, 35.27, 45.967, 41.68, 43.6, 28.13, 46.3, 28.58, 51.2, 66.5147, 39.6667, 33.4203, 38.0511, 38.0694, 60.8667, 61.6511, 41.9, 40.5353, -37.572, -25.9714, -38.1667, -21.0344, 52.47, -27.5836, -27.5425, 38.6944, 38.7456, 39.0667, 39.0722, 38.9503, 39.0725, 54.8167, 46.1, 45.4353, 28.23, 35.2667, 45.88, 51.7656, 51.583, 45.033, 45.0, 30.48, 4.33, 68.22, 31.4028, 65.8881, 43.6667, 43.7833, 43.75, 43.8667, 43.6667, 43.75, 43.7667, 43.6167, 43.6333, 43.65, 37.7417, 43.6833, 43.8, 43.8167, 43.8, 43.6833, 43.7833, 43.7333, 56.48, 0.7, 59.1842, 62.49, 34.35, 33.8017, 40.4833, 21.5167, 25.568, 35.7992, -29.35, 37.9769, 38.3028, 41.2, 42.4881, 42.0803, 42.0647, 60.14, 62.017, 57.72, 70.2456, 40.8206, 40.3, 53.05, 58.3831, 56.9631, 56.9494, -7.9, 48.733, 48.7, 46.1667, 41.0, -23.1, 20.55, 35.483, 59.97, 27.838, 46.0333, 46.1167, 33.12, 33.4, 43.1, 48.7667, 18.92, 47.5, -33.35, 57.64, 41.7511, 40.5333, 47.7817, 44.9167, 45.3167, 48.3706, 45.3333, 46.3308, 35.6031, 42.7, -19.2483, 30.7931, 30.8, 43.9333, 43.4719, -6.17, 39.3833, 36.717, 35.53, 33.92, 12.5, 41.0, 45.6167, 47.5167, 44.2394, 37.6819, 37.7967, 45.81, 42.7833, 33.2667, 42.3161, 49.1333, 68.75, 52.2689, 58.04, 55.85, 55.8331, 7.517, -32.0322, -31.9861, 50.7167, 48.2333, 36.3919, 37.911, 40.0, 48.7667, 47.8781, 53.9642, 44.7167, 44.7408, 44.7608, 50.3, 38.2667, 49.0, 54.8, 49.6333, -33.217, -43.2, 41.7108, 43.9994, 46.1, 40.0825, 40.2269, 41.9153, 33.75, 40.2333, 44.1167, 40.1739, 43.2761, 40.2769, 44.1167, 46.5, -21.84, -38.387, 27.2, -20.783, 36.6511, 41.05, 40.6833, 42.8286, 50.8667, 38.175, 54.0681, 38.655, 38.4661, 45.9469, 49.7517, 49.7492, 45.65, 36.9111, 63.4333, 37.35, -20.5, 37.1786, 47.2167, 37.1503, 37.2622, 14.767, 48.1333, 40.7864, 43.6333, 40.7264, 54.3, 42.7667, 34.45, 37.53, 42.8125, 32.67, 32.9, 32.8697, -37.05, -29.86, -7.85, 8.5, 60.55, 48.3142, 51.7833, 51.8333, 54.6167, 49.45, 62.7, 48.15, 46.35, 46.3667, 46.3833, 54.0994, 53.5833, 58.3, 58.31, -72.017, 69.5, 69.6539, 69.6767, 35.7636, 63.4106, 63.45, 37.6258, 58.9, 48.0317, 47.2842, -35.1167, 47.2333, -13.7542, 32.15, 45.5533, 40.7333, 47.8333, 44.1111, 47.8669, 37.8333, 60.4333, 46.1989, 31.8075, 42.7333, 48.4806, 75.952, 48.3833, 48.7167, 31.79, 39.8283, 42.75, 48.4667, 31.8606, 57.6, 52.6, 36.0333, 39.3, 39.3331, -8.1, 18.3283, 7.4667, 38.2597, 45.35, 45.3667, 45.3667, -14.09, 33.7569, 33.1353, 33.2367, 35.3881, 35.7825, 35.2058, 41.5522, 61.2944, 59.9844, -26.05, 47.45, -22.77, -24.017, -22.97, -25.18, 36.7, -34.03, 44.417, 34.733, 35.65, 33.85, 35.067, -14.819, -18.975, -5.683, 44.1, 40.9, 36.1306, -23.35, 60.9333, 35.2333, 39.6025, 32.2394, 32.2542, 32.2817, 32.1314, 32.25, 32.2581, 32.2292, -26.85, -26.8, 35.1667, 35.2006, 35.1822, -3.786, 50.8833, -35.4184, 17.638, 34.2667, 53.9, 69.4333, 69.45, 69.4333, 69.2, 54.233, -9.08, 20.083, 33.0719, -0.82, 0.8, 45.1831, 41.96, 41.9167, 39.35, 34.5475, 34.6, 50.45, 64.9167, 35.3453, -32.6309, 53.6667, 53.6667, 59.1789, 42.8333, 42.7603, 42.6394, 36.1994, 36.0394, 54.6, 31.5678, 44.0494, 17.3, -35.778, 55.1333, 7.3, 7.3, 49.65, -35.3333, 39.1, 53.533, 61.95, 34.7281, 36.8, 36.83, 51.73, -42.4544, 29.72, 33.95, 34.217, 34.25, 34.265, 34.2622, -21.45, 44.2308, 45.0708, 64.2667, 31.693, 49.151, 25.98, 46.3833, 63.117, 49.63, 58.817, -1.717, 45.217, 45.2, 58.0994, 45.22, 49.117, 43.27, 34.3956, 40.05, 60.4542, 60.45, 60.5153, 37.5006, 34.6831, 44.2822, 48.85, 42.6167, 48.9992, 50.7167, 35.6667, 40.7667, 43.75, 52.267, 42.933, 36.8136, 53.4, 46.0, 47.5214, 49.1333, 49.3, 45.05, 65.7831, 35.99, 33.2119, 33.2119, 33.2097, 41.3144, 39.7947, 34.7167, 50.377, 34.6147, 32.4333, 32.3833, 35.04, 33.7025, 33.7, 59.4356, 64.2, 47.1333, 47.3014, 39.2475, 48.0092, 60.4167, 60.3667, 36.2861, 20.95, 21.95, 16.75, 34.7706, 34.75, 44.55, 59.0269, 56.883, 52.4667, 44.5, 36.5819, -26.467, 46.15, 52.2731, 34.1281, 49.6833, 49.6833, 45.5472, 42.6906, 48.75, 42.5833, 42.5333, 42.5458, 42.5808, 42.4819, -21.95, 38.7086, 46.15, 39.0936, 38.2033, 51.3356, 34.9881, 37.5667, 47.0258, 47.1253, 53.6333, 44.15, 44.1431, 64.8656, -28.36, 37.6364, 39.3136, 32.3067, 44.2781, 31.08, 32.4, 32.3542, 55.183, 42.9919, 30.0667, 55.017, 46.5833, 64.8, 44.0167, 57.15, 71.917, 42.3, -23.77, 44.5, 55.467, 58.547, -0.08, -19.73, -18.883, 47.7719, 55.3, 15.25, 15.25, 50.8, 38.083, 58.73, 46.1667, 48.9667, 48.95, 24.617, 58.37, 46.06, 46.0, 17.3833, 44.2667, 17.383, 54.5, -16.133, 53.75, 60.72, 52.9428, 34.767, 54.7167, 54.1667, 54.1667, 49.07, 60.5, 35.8889, 63.55, -7.58, 37.7333, 49.0667, 40.95, 36.35, -33.7, -5.067, 55.8, 43.783, 65.2, 39.1467, 45.1328, 39.1258, 47.917, 49.8, 44.8, 47.9, 51.8331, 39.4, 36.98, 41.92, 59.2833, 51.35, 48.933, 45.517, 47.75, 10.0333, 49.2, 64.3331, 59.3667, -35.3635, 63.01, 57.11, 60.3185, 37.483, 48.383, 57.77, 35.55, 59.81, 38.1, 40.1, 40.1, 70.7667, 37.6, 39.62, 59.36, 64.76, 61.6, 54.317, 37.5983, 48.77, 25.37, 45.9167, 45.9167, 66.67, -7.42, 63.83, 63.79, 69.3694, 52.167, 43.7, -31.53, 55.033, -16.36, 63.8833, 47.317, 63.33, 60.28, 47.455, 47.4333, 40.7219, 42.3, 56.04, 36.1667, 38.4444, 32.4717, 39.915, 39.45, 40.475, 37.5436, 34.6053, 36.3925, 44.5667, 45.2081, 42.6903, 35.2247, 32.0142, 43.7917, 44.4367, 52.2333, 33.2, 34.3725, 40.0333, 64.8569, 53.5167, 51.0833, -27.5436, 44.9847, 40.7667, -72.2, -74.8, -75.867, -67.017, 52.8514, 60.44, 56.65, 41.1, 32.442, 72.7831, 48.6147, -28.45, 34.1333, 45.8, 34.1333, 6.7, 20.25, 40.0, 48.6525, 49.9, 51.9333, 39.1906, 38.8519, 39.4678, 37.7167, 40.8333, 39.7136, 37.4833, 37.7719, 36.3481, 45.2167, 45.2333, 38.7833, 47.2833, 59.86, 59.9, 49.05, 49.0333, 49.0333, 47.45, 59.8425, 60.7333, 44.0928, 42.167, -30.6437, 51.25, -35.3305, -21.6119, 31.8667, 59.5667, 59.5667, -71.43, 38.3761, 39.9, 40.0839, 40.0986, 37.6333, 47.117, 37.13, 41.567, 38.6, 53.317, 52.75, 50.8, 49.4, 37.668, 58.83, 56.48, -29.783, 43.9, 46.2, -28.51, 38.67, 38.683, 29.4083, 31.717, -54.843, 73.0, 43.08, 60.724, 45.2539, 38.7, 41.6, 50.683, 49.98, 54.58, 52.817, 53.42, 66.8, 57.08, 58.2, 57.717, 59.183, 56.217, 52.7, 54.4, 50.28, 61.683, 60.3831, 66.45, 64.566, 56.58, 66.55, 58.88, 64.266, 65.4331, 51.633, 65.97, 58.5, 62.23, 52.65, -4.92, 21.3, 38.9333, 40.3603, 41.0497, 55.533, 37.6167, 35.36, 32.1, 43.0833, 46.9667, 46.8833, 43.1167, 43.145, 55.95, 59.3, 59.3078, 69.7556, 70.0814, 36.55, 17.617, 49.5942, 45.2, 18.2617, 60.75, 5.2739, 36.78, 70.4167, 29.2167, 29.2333, 29.185, 33.233, 35.3667, 44.0833, 44.1167, 44.1, 53.717, 48.6331, 41.3, 55.3, 34.0697, 33.8722, 64.5008, -27.95, -24.73, 63.1, 63.0831, 63.1, 63.0417, 36.0167, 38.3956, 38.3775, -20.3, 58.55, 45.0483, 70.0653, 63.5, 56.8667, 61.8628, 59.7662, 39.6394, 39.6167, 69.93, 66.51, 42.4333, 46.95, 57.967, 61.1303, 30.8056, 30.85, 30.9667, 30.7825, 43.9814, 44.6167, 52.8167, 52.8333, 52.85, 39.4806, 39.489, 39.4867, 43.3833, 51.9394, 30.5908, 47.3389, 42.8753, 42.8783, 42.4839, 42.5711, 9.35, -8.41, 57.783, 48.3119, 44.2831, 52.1703, 59.133, 59.02, 41.65, 20.683, 41.7, 37.4833, 37.3806, 49.384, 46.3833, -18.467, -28.58, 63.85, 53.25, 45.2833, 55.1, 55.0667, 33.2372, 39.1, 46.9558, 42.4844, 39.3033, 40.0983, 34.5686, 34.5653, 44.0, 41.3197, 36.4303, 51.8833, 21.0, 9.233, 32.38, 17.78, 60.1331, 67.3606, 35.8167, 31.4833, -33.02, 30.4833, 30.4167, 41.4525, 41.5114, 44.8333, 63.6667, 50.2, 19.5667, 34.4456, 34.45, 48.05, 48.05, 45.9, -1.379, 47.432, 48.5167, 49.3667, 49.0667, 44.5, 45.4833, 48.9833, 38.45, 49.75, 60.3331, 45.5667, 45.5608, 38.5833, 45.6778, 49.25, 49.3, 49.2, 49.2, 45.6208, 49.2833, 49.25, 38.9581, 39.3167, 38.9833, 34.7167, 34.7586, -26.67, 45.1703, 40.6031, 54.0333, 54.05, 54.0833, 58.36, 61.1725, 4.168, 61.125, 63.92, 52.0167, 60.3269, 60.2831, -17.233, 60.35, 39.4333, 41.6431, 47.15, 47.1664, 36.9753, 38.4667, 47.95, 31.0417, 34.2097, -28.367, 40.8494, 44.3667, -30.35, -26.88, 25.45, 57.11, 65.8833, 70.367, 70.3669, 45.7167, 45.45, 62.3081, 62.3217, 43.232, 65.8255, 44.8331, 60.3, 47.45, 52.25, 43.3656, 43.3667, 68.43, 64.45, 59.62, 59.59, 58.44, 58.56, 57.79, 63.13, 51.6094, 34.6, 50.0667, 50.05, 50.05, 50.1833, -18.65, 51.5833, 56.85, 56.93, 40.1167, 59.0, 65.702, 35.2775, 60.0435, 53.5, 53.4833, 63.518, 56.35, 60.8, 46.8, 44.75, 43.083, 34.5289, 61.083, 48.0797, 47.317, 50.067, 55.9, 61.6514, 27.1006, 54.6667, 45.5, 45.4, 63.3125, 57.4, 20.9, -29.4, 45.7667, 63.6653, 34.5539, 58.68, -26.68, 58.083, 43.7953, 55.817, 56.7, 64.22, 63.15, 48.2, 56.083, 42.5, 54.22, 62.233, 51.35, 67.5667, 58.9, 63.317, 53.87, 36.8833, 53.3667, 53.35, 53.35, 49.8333, 29.7833, 42.7625, -65.25, 40.4386, 40.4422, 33.7392, 34.1517, 40.1056, 42.7717, 50.2333, 50.25, 45.8667, 45.8653, 40.0989, 50.2167, 50.2667, 50.2333, 39.9333, 50.2333, 31.0167, 50.35, 34.1647, 45.3831, 27.6528, 27.6531, 38.4319, 38.0944, 43.45, 62.9214, 52.283, 49.617, 62.983, 56.7667, 63.4, 47.067, 57.9, 38.7436, 37.3522, 41.7, 38.7, 45.5667, 46.1667, 38.1311, 41.3667, 32.35, 32.385, 32.3567, -20.76, 53.4833, 38.7167, 46.4167, 46.2167, 46.6667, 47.7667, 10.9, 46.05, 50.7, 28.7875, -18.1, 28.8608, 48.0333, 48.4167, 48.5333, 48.5167, 48.65, 48.3667, 48.45, 9.967, 28.8439, 28.8614, -16.403, 48.45, 28.8461, 48.45, 48.45, 21.2, 28.7833, -36.22, 34.535, 34.5833, 45.9231, -35.555, -35.5544, 47.88, 51.3333, 43.983, 49.35, 65.8797, 38.4875, 38.9, 38.2017, 43.8, 17.93, 17.9833, 18.1167, 63.8406, 41.9, -37.7408, 55.0667, 17.555, 42.0828, 34.6522, 42.2392, 62.5617, 60.4183, 63.0817, 53.1, 53.1833, 53.2833, 63.05, 80.167, 56.817, -22.018, -13.3, -19.27, -17.8, 41.3167, 54.483, 64.58, -12.694, 58.367, 63.7831, 2.77, 46.6, 48.767, 16.25, 44.2525, 24.48, -31.85, 17.983, 42.63, -25.767, 4.15, 30.617, 23.7, 28.83, -31.945, 27.62, -29.9, -21.27, -33.73, 47.35, 30.695, 48.0458, 59.28, 54.1333, 54.6331, 58.3831, 57.67, 38.6786, 38.7386, 64.2, 65.8197, 65.77, 39.4833, 43.15, 43.1333, 43.1667, 43.1833, 43.1833, 41.3931, 57.63, 59.08, 18.737, 36.5469, 63.2066, 60.633, 49.2331, 61.5833, 30.1922, 39.8056, 42.1703, 53.15, -28.7, 13.576, 37.2, 39.5061, 49.8333, 43.2, 40.2444, 47.5, -28.1, 39.3128, 45.2925, 40.9656, 38.0833, 60.5269, 43.5594, 62.3275, 49.5742, 58.567, -17.645, 36.3278, 52.8331, 57.6667, 51.95, 17.717, 58.09, 58.1, 33.2294, 55.167, 55.2, 42.43, 59.45, -16.45, -20.317, 42.8506, -14.863, 42.8717, 67.68, 43.9333, -17.15, 17.7, 56.2, 47.55, 55.167, 43.05, 56.117, 43.8, -21.8067, 53.24, 51.4414, 40.4667, 50.9167, 46.3, 44.9831, 48.0917, 46.0, 52.017, 52.1042, 47.73, 48.783, 51.6581, 49.2592, 53.167, -27.37, 47.617, 70.97, 53.317, 50.833, 59.3167, 54.1, 48.67, 43.2833, 40.4583, 42.2667, 67.483, 61.033, 58.85, 51.7, 48.6, 57.8458, 60.6333, 63.22, -78.45, -20.417, 60.467, 47.567, 42.4831, 43.2, -31.67, -27.8, 45.15, 50.4, 50.5333, 10.3667, 66.7981, 66.58, 41.5833, 60.72, 57.55, 52.367, 61.0167, 10.083, -5.48, 56.0333, 55.9667, 40.7917, 50.7833, 54.9167, 52.9333, 39.0747, 31.5333, 31.6003, 31.6333, 31.6189, 53.1658, 46.3939, 34.9603, 20.504, 21.82, 39.6914, 14.4, 51.9667, 51.9814, 54.6667, 65.8833, -35.0517, -35.1583, -35.1333, -35.1311, -33.3075, 43.0833, 55.35, 35.9675, 43.25, 43.34, 37.8, 50.8125, 46.65, 41.2214, 46.3233, 36.9953, 38.4831, 22.0167, 21.575, 21.4331, 21.4806, 21.9944, 48.8289, 49.3, 47.961, 21.4517, -34.1944, 21.2717, 20.8997, 21.35, 21.3356, 21.6261, 21.9592, 21.6369, -9.667, 70.6392, 52.8333, 52.8333, 21.3861, -8.641, 37.4, 1.75, 37.483, 34.233, 39.0147, 42.2647, 45.6, 36.9839, 48.85, 19.2833, 45.417, -27.35, -11.417, -30.9853, 47.9767, 51.2081, 43.8833, 50.2608, 40.7442, 41.5514, 41.5667, 48.9303, 38.6517, 34.8992, 47.9167, 47.6181, -30.665, 42.7392, 65.6239, -22.94, -30.0372, -30.0236, 34.7544, -17.1347, 44.1333, 37.7433, 47.0744, 38.5653, 35.6647, 30.05, 38.9111, 47.4667, 47.4753, 42.5833, 36.5956, 34.7314, 40.8433, 44.9667, 34.5333, -28.9231, -37.3807, 45.99, 46.05, 46.0947, 46.0333, 51.6031, -13.3, 37.9406, 45.5722, 60.7986, 41.5519, 35.1722, 34.9281, 37.8833, 36.1333, -35.1201, 42.1667, 42.1608, 37.6303, 37.3822, 32.8847, -23.6286, 34.3603, 50.8975, 34.3997, 44.5167, 42.1506, 42.1667, 42.1847, 42.2333, -23.27, -22.983, 39.2142, -4.067, 45.2, 45.2406, 41.6717, 32.28, -29.7029, 44.1481, 41.0444, 41.4439, 45.1094, -32.6722, -32.6814, 34.3, 49.0167, -35.17, -36.3667, -36.4206, 53.7883, 55.7833, 54.1833, 48.65, 51.6833, 40.7908, 40.655, 32.067, 40.5667, 46.4353, 50.1833, 50.45, 50.1333, 41.1761, 44.4736, 36.9231, 41.65, -41.4372, 51.5, -26.1317, 45.3833, -27.97, 39.1139, 49.4667, 39.1333, 39.1333, 57.4333, 53.517, 49.1, 49.1167, -29.5416, -24.9, -17.0156, 46.2667, 44.7667, 34.5958, 36.7, 38.7161, 43.5667, 36.0608, 32.6094, 32.6333, 33.2833, 38.4947, -34.9906, -43.0609, -36.2614, -38.1731, 41.8467, 45.2658, 45.8167, 46.4333, 38.7842, 53.5239, 33.4028, 38.835, 38.6811, 30.5833, 33.6044, 41.2019, 44.4, 5.52, 53.3833, -38.2919, -38.2867, -38.3836, 48.8947, -11.6502, 41.2633, 38.25, 37.9881, 35.0128, 42.6856, 38.7744, 53.2231, 50.6281, 48.1258, 35.5392, -28.2061, 53.65, -28.2247, 49.8167, 50.65, 35.5892, 45.5958, 45.61, 53.1333, 44.0708, 41.9333, 47.2844, 38.5417, 38.9053, 39.8089, 41.2825, 38.6489, 33.7264, 40.1789, 38.6667, 34.9819, 39.5353, 38.9408, 33.7806, 45.3581, 39.15, 38.8483, 30.3236, 35.5553, 45.6, 42.5739, 61.6167, 61.5333, 49.0333, 53.9167, 53.9167, 48.2064, 36.8581, 48.0581, 50.4978, 44.0697, 32.3778, 51.7, -24.2914, 36.3333, 41.55, 44.3167, 41.5667, 40.4256, -29.85, 52.2531, 47.9333, 34.9167, 38.3664, 38.7003, 42.5167, 43.1878, 41.4931, 42.5544, 39.1667, 43.45, 46.2778, 46.2689, 49.1333, 49.1167, 43.1742, 43.9761, 43.9922, 44.9047, 47.6497, 35.7742, 45.05, 44.5272, 44.55, 31.6725, 34.1583, 47.8039, 47.6, 47.7803, 55.7167, 33.7836, 33.8967, 35.8578, 35.8417, 51.6667, 51.6667, 40.7928, -37.7, 36.9358, 36.9308, 60.1167, 60.1167, 39.85, 17.988, 52.127, 46.5103, 36.1833, 7.7, 44.7667, 45.4247, 27.5478, 41.6167, 42.3492, 43.0064, 36.2833, 43.2742, 44.3547, 34.1747, 34.1678, 30.6333, 44.9258, 31.5242, 44.95, 41.5183, 7.7, 30.2947, 36.0825, 39.1114, 39.2103, 42.0019, 42.7333, 37.4297, 38.8833, -17.3871, 48.0, 48.35, 48.07, 46.65, 47.9667, 47.9667, 49.9333, 32.4281, 35.1667, 42.9728, 31.2514, 31.11, 31.25, 42.2361, 42.2667, 35.3042, 33.0725, 31.6772, 31.6833, 38.0803, 39.8986, 39.9, 37.4167, 39.5333, 35.4867, 37.8133, 37.75, 36.5758, 43.0847, 32.7483, 35.52, 35.5083, 6.95, 40.7367, 35.4814, 42.95, 41.1667, 32.2167, 41.1092, 45.3331, 45.4833, 42.4686, 39.4031, 37.5833, 38.5667, 38.4739, 38.5358, 54.2194, 33.9, 42.3333, -38.6357, 31.9514, 41.4789, 41.4333, 52.75, 28.5175, 40.8639, 41.93, 49.6669, 49.2256, 36.767, 48.4, 50.4742, 50.7131, 50.9756, 49.383, 37.8833, 26.87, 64.315, -12.6778, -12.6267, 53.45, 40.4, 44.2456, 44.8475, 49.555, 50.0867, 49.017, 51.2131, 48.1892, 26.199, 48.3667, 28.1136, 36.4333, 38.6989, -28.0, 43.0, 42.9667, 52.2058, 44.3564, 34.8422, 37.2778, 41.1667, -33.63, 39.5447, -41.333, -32.5635, -32.5059, 38.75, 47.8964, 41.1006, 43.4167, 43.7467, 41.7417, 41.7003, 40.2753, 44.2294, 40.05, 42.1172, 42.1094, 48.85, 32.6667, -27.47, 48.8794, 47.4289, 47.3667, 47.4333, 47.3978, 7.75, 42.75, 47.7042, 53.2153, 40.7206, 30.75, 35.7167, 44.0083, -34.1065, 28.017, -29.73, -29.9, 51.583, 51.85, -37.9, 49.7678, 40.4528, 26.1781, 44.9511, 35.7667, 44.0761, 42.2667, 41.3, -41.53, 40.7333, 48.8744, 41.0669, 38.1311, 32.1667, 51.2192, 41.3497, 54.5294, 39.4833, 32.535, 46.3286, 43.9833, 40.1264, 43.9903, 42.2956, 42.0931, 42.1578, 40.8436, 36.2272, 48.9097, -37.7067, 39.5736, 39.55, 42.9167, 39.0439, 42.0358, 42.3833, 44.6406, 45.8, 41.2211, 44.6833, 44.25, -41.75, 43.8881, 50.4667, 40.3, 40.3067, 43.0175, 42.95, 43.3681, 43.4106, 42.6167, 39.9333, 45.0667, 44.6464, 43.6878, 39.9708, 41.9144, 42.4833, 45.4, 45.25, 45.8181, 48.5003, 48.5106, 39.8, 45.1, 42.9108, 42.4333, 40.475, 43.6333, 37.9414, 42.1333, 35.1242, 35.135, 32.46, -21.05, 37.0683, 26.7167, 26.6847, 34.6428, 36.7425, 36.8781, 32.8789, 33.6167, 37.5, 41.3906, 41.845, 37.5658, 49.0, 44.1925, -17.8964, 41.9442, 39.2911, 49.35, -33.9382, 44.65, 44.6617, 52.9667, 52.6333, 51.9667, 46.3833, 38.2167, 32.5906, 30.1192, -3.584, 35.1314, 43.7333, 49.65, 49.7, 45.4425, 44.4, 18.4311, 42.2494, 62.2333, 49.1833, 31.6508, 41.1947, 39.0167, 42.1106, 45.8081, 41.8128, 39.0667, 39.775, 21.4833, 40.0567, 40.0697, 40.1764, 40.1, 32.9, -36.7, -28.5988, 48.35, 40.6117, 37.2167, 44.6, 49.0167, 41.0, 50.1333, 50.1333, 34.5686, 47.4167, 54.4807, 36.6, 54.1333, 54.1333, 54.15, 44.3675, 48.4081, 48.2833, 46.7531, 43.5575, 45.8667, 45.8833, 45.2167, 60.7167, 60.7333, 42.3369, 60.7167, 60.7333, 38.7167, 33.8214, 56.2333, 37.1025, 64.1539, 39.9961, 61.7067, 34.3167, 34.4094, 34.3361, 42.8508, 50.35, -30.8517, -30.8506, 39.3167, 44.5333, 39.4411, 35.1333, 36.4511, 43.7292, 45.1453, 42.6981, 45.05, 43.9806, 64.6833, 37.5, 37.5833, 46.6333, 48.6, 39.9667, 43.65, 33.4561, 35.6833, 49.0167, 45.8619, 49.0167, 45.7667, 32.7822, 32.5564, 37.7889, 46.5425, 46.5344, 46.5436, 46.8333, 46.3833, 37.8511, 41.65, 30.7044, 30.7167, 49.8667, 42.0681, 46.0436, 34.6333, 40.6194, 42.4356, 31.8611, 42.3417, 60.7764, 33.9839, 35.2897, -33.0539, -33.0303, 44.75, 46.9878, 43.5608, 15.65, 37.6544, 37.6833, 33.9786, 37.7461, 37.6167, 34.7325, 34.7744, 37.6553, 58.45, 45.2706, 33.9792, 43.6825, -7.967, 37.8333, 37.8747, 51.2167, 48.2331, 48.3, 48.17, 48.1229, 48.117, 31.0167, 50.05, 50.0875, 52.117, 30.8714, 40.15, 45.9167, 41.6667, 52.5053, 34.7061, 47.7681, 34.9611, -31.5631, -31.5194, 50.1667, 33.75, 43.6703, 35.7833, 42.75, 48.6631, 36.2656, 30.5347, 53.5667, 40.2, 38.9031, 41.6358, 45.5231, 34.3717, 51.53, 53.5917, 41.2333, 41.3336, 41.4333, 44.3325, 46.6833, 34.6606, 32.2553, 35.2414, 39.15, 36.7333, 46.3333, 41.665, 36.7333, 37.3017, 37.2833, -22.4703, 37.6667, 37.6731, 41.2333, 41.2433, 41.2486, 35.8528, 42.7167, 38.6586, 35.7553, 42.5833, 40.0375, 52.1833, 52.15, 52.1333, -32.7932, 29.25, 48.3333, -77.85, 41.7419, 51.2953, 48.1375, 48.1739, 42.0833, 38.0039, -16.288, 39.4194, 39.35, 45.1167, 45.1078, -33.283, 39.5231, 35.8686, 48.6061, 42.8167, 49.0167, 49.0833, 53.3833, 40.9467, 40.3, 40.3517, 40.35, 40.2, 40.4333, -31.5, 45.7081, 36.9811, 32.7167, 61.7481, 44.3842, 32.7019, 30.1694, 50.5667, 39.4833, 34.3208, 34.1425, 39.75, 34.2675, 39.6728, 39.7739, 34.2333, 37.1317, 45.4078, 46.0, 46.0289, 35.5667, 45.7167, -39.1297, 35.6939, 42.0167, 47.4167, 38.9667, 47.1603, -26.5914, 51.9333, 41.0267, 34.6203, 39.1881, 39.635, 43.2828, 46.2381, 35.1803, 46.2333, 39.1833, 40.1714, 33.9275, 42.3031, 42.8167, -22.567, 47.9117, -77.7, 36.1, 43.8575, -25.4228, 35.6169, 35.6575, 38.5319, 39.4458, 38.5331, 42.2833, 44.9833, 44.9833, 44.9333, 42.3333, 42.3, -34.8361, 42.2833, 43.5606, 45.8, 51.85, 50.0333, 52.95, 33.9111, 37.2889, 38.5278, 37.1681, 43.9708, 32.0444, 47.5589, 32.9167, 31.78, 43.7639, 40.9386, 40.9017, 43.3686, 43.3906, 31.9622, 47.4306, 49.9167, 49.9167, 49.95, 49.8833, 49.8833, 34.3739, 32.1411, 32.0997, 39.0589, 44.0422, 33.4847, 44.0875, 41.2167, 35.855, 35.0281, 33.3497, 36.1336, 45.8833, 47.1333, 47.1667, 38.5253, 41.315, 33.9664, 50.5167, 28.0153, 28.6333, 28.0622, 48.4742, 34.9381, -22.3617, -22.3908, 47.9333, 43.9636, 43.6089, 44.3881, 44.3592, 42.5167, 45.6178, 67.4192, 36.9986, 45.8031, 45.7833, 36.9681, 51.5667, 46.2608, 53.8333, 34.9417, -34.0281, 53.4833, 33.1597, 51.883, -22.2425, 33.7478, 53.55, 53.1875, 51.3506, 51.55, 45.3833, -36.1167, 51.4478, 35.7217, -33.1336, 55.6167, 53.4631, 7.3833, 48.2958, 43.6, 43.5833, 44.15, 45.6667, 45.6667, 40.0417, 52.4425, 49.5819, 45.1, 35.9478, 45.0667, 36.8667, 37.4744, 37.4833, 37.4833, 45.3131, 48.1, 48.3083, 48.4886, 48.0833, 48.0944, 47.45, -17.2122, -34.403, 50.4333, 44.8, 45.2833, 36.445, -19.8983, 63.4903, -30.8917, -30.8408, 37.33, 56.7333, 39.183, -38.6078, 43.4978, 37.9906, 30.9592, 43.7833, 52.0833, 41.1644, 35.8375, 49.0333, 49.5833, 38.7833, 45.1569, 38.6828, 34.1819, 40.075, 41.525, 30.7219, 37.4286, 42.2167, 42.2167, 64.7803, 39.3333, 43.1333, 43.6303, 43.9833, 46.1667, 38.8969, 39.5461, 41.55, 50.05, -37.5696, 44.4, 31.0931, 30.75, 36.4408, 36.4231, 41.95, 36.4167, 31.1167, 49.5, 47.45, -30.9672, 44.2, -19.4167, -31.1558, 41.9844, 40.7833, 40.7833, 40.8731, -33.617, 42.3, 44.3747, 42.2706, 33.8167, 43.9658, 44.0108, 49.6056, 49.2189, 53.2775, 56.5333, 39.15, 42.3869, 43.6167, 43.645, 56.4733, 40.0714, 47.7167, 46.5333, 49.5, 46.0667, 34.3617, 43.7472, 46.6803, 33.3039, 39.8333, 63.2167, 51.7317, 54.6942, 51.1, 35.22, 35.28, -33.043, 33.4, 26.73, 30.6, 31.33, 31.15, 50.033, 52.467, 35.5247, 51.2258, 49.7714, 49.8006, 37.2, 52.8053, 39.03, 47.6789, 23.483, 43.8, 34.717, -33.9262, -18.283, -36.1, 51.185, 47.25, 42.15, -15.4872, -15.51, -15.4644, 35.2547, 51.7667, -40.9972, 51.7667, -40.9942, 45.1217, 36.9617, 38.5667, 44.2542, 36.1308, 49.35, 30.95, -25.05, 19.72, 39.6167, 24.483, 34.3, 49.2, 31.0, 27.9, 19.32, 19.38, 35.73, 35.98, 29.25, 33.78, 43.95, 40.58, 25.433, 37.07, 38.47, 36.617, 36.03, 32.133, 22.35, 48.67, 16.833, 29.03, 44.583, 20.35, 50.1, 24.95, 34.283, 29.98, 48.9514, 48.8333, 18.0628, 44.3192, -21.95, 36.1306, 27.7, 50.217, 51.8, 60.0833, 46.5897, 46.5683, 30.383, 59.5119, 43.1447, -28.3392, 6.5, -38.1858, 40.7, 44.483, 38.25, 34.167, -28.1664, -29.4333, 6.903, 40.1561, 36.5, 36.4333, 36.3783, 37.8, -34.6223, 35.48, 39.217, 40.4, 21.867, 16.907, 37.48, 42.867, 42.8783, 37.53, 35.567, 36.6, 3.87, 9.5167, 9.4833, 7.024, 57.417, 43.8333, 43.8333, 43.8333, -31.3865, -36.0294, -16.7, 30.667, -34.8313, 37.4, 37.8786, 31.9, 31.905, 32.8667, 32.9028, -27.2842, 32.083, 58.82, 55.77, 15.117, 62.4667, 62.45, 62.6667, 44.9628, 44.8542, 45.545, 44.5264, 44.5444, 44.5922, 45.0, 44.9767, 45.3128, 36.6036, 49.8167, 37.5206, 37.5594, 36.1542, 45.1672, 36.2, 41.58, 32.6803, 24.144, -34.2502, 34.733, 51.0059, -23.1364, 40.2, 38.9992, 34.4031, 45.183, 55.833, 28.8, 30.7, 27.8, 47.72, 38.467, 40.667, 43.95, -12.25, 43.27, 36.18, 66.62, 66.5289, 66.3667, 64.05, 29.2739, 41.9131, 61.25, 51.3833, 51.4333, 51.45, 51.45, 34.933, 5.55, 35.433, 35.2833, 9.258, 9.2, 40.3383, 35.433, 24.467, -33.0287, 25.967, 35.97, 36.53, 36.87, 42.3, 33.89, -31.8997, 40.8678, 42.8833, 53.9, 51.2667, 51.2667, 41.2664, 41.65, 40.9153, 39.9167, 34.9386, 39.9181, 57.0, 44.5003, -31.8836, 27.033, 49.8, 37.75, 37.7592, -32.683, 43.2683, 41.2544, 33.595, -34.2493, 40.5614, -34.3167, 43.9333, 28.833, 39.817, 41.7036, 31.6953, 55.44, 61.6833, 62.18, 63.8, 61.5717, 23.6, 28.47, 25.68, 25.73, 38.75, 40.8, -13.3, 34.8775, 35.4, 34.1294, 34.1233, -32.1232, -22.2562, 29.38, 59.77, 63.667, 37.6, -25.1896, 22.63, 38.233, 40.1236, 32.835, 32.6114, 32.7167, 32.65, 32.8356, 32.7167, 32.7333, 32.6667, 40.267, 36.8, 35.05, 25.1, -32.5819, -32.5707, 32.85, 20.35, 41.2897, 37.07, 33.0, 33.0, 47.117, 39.83, 35.867, 39.96, 31.2167, 46.75, 22.783, 44.1, 32.9, 33.15, 45.8167, 45.73, 29.476, 47.4667, 41.55, 37.783, 49.3, 46.8667, 39.2753, 12.9, -13.53, 6.9, 53.5, 52.767, 20.0, 41.5167, 50.7, 43.733, 39.9444, 36.774, -6.222, 32.15, 26.8706, 47.8, 47.9, 39.9, 28.5, 41.6667, 41.6617, 56.3, 50.117, 44.8167, 54.7, -41.8833, 52.9681, 50.6333, 51.0539, 53.7, 43.87, 47.333, 47.2, 74.88, 35.017, 45.0669, 40.7, 51.9656, 51.833, -3.26, 51.2, 49.667, 51.617, 49.217, 40.78, 42.417, 38.93, 21.22, 25.58, 27.33, 44.1667, 48.85, 54.38, 34.717, 47.8, 54.8, 66.7667, 27.45, 52.217, 65.2, 52.9, 31.35, 49.25, 37.48, -69.367, 31.17, 33.0, 50.233, 51.9333, 12.556, 45.35, 52.2, 56.517, 40.3, 49.233, 53.067, 53.933, 65.467, 42.685, 13.8, 58.81, 54.0817, 50.733, 42.1833, 37.2092, 40.7833, 43.7331, 55.17, 45.25, 51.15, 49.05, 48.717, 34.75, 76.15, 47.3167, -15.38, 41.45, 5.817, 40.9833, 47.9186, 47.9225, 22.75, 45.4, 32.88, 47.3831, 42.5, 47.4219, 53.533, 44.2992, 35.0706, 27.7, -26.3, 54.467, -26.35, 49.2167, 49.033, 65.73], &quot;yaxis&quot;: &quot;y&quot;, &quot;ybingroup&quot;: &quot;y&quot;, &quot;z&quot;: [0.0389, 0.0597, 0.0443, 0.1228, 0.0028, 0.0267, -0.0117, 0.0216, -0.0023, 0.0149, 0.0021, 0.1079, 0.0251, 0.1518, 0.0393, 0.1666, 0.0362, 0.0323, 0.0305, 0.0054, 0.0142, 0.0255, -0.0001, 0.0302, 0.0488, 0.0225, 0.0102, -0.0121, -0.0049, 0.0106, 0.0054, 0.008, 0.0094, 0.0003, -0.1378, 0.0103, 0.0073, -0.0344, 0.0555, -0.0141, 0.0119, 0.0003, 0.051, 0.0218, 0.026, 0.0034, 0.0139, 0.0271, 0.0179, 0.0081, 0.0261, -0.0351, 0.0447, -0.0359, -0.0002, -0.0164, 0.0295, 0.001, 0.0165, 0.0123, 0.0366, 0.0084, -0.051, 0.0456, 0.0169, 0.046, 0.0711, 0.0159, 0.0294, 0.0024, 0.0163, 0.0192, -0.0252, 0.0281, 0.0011, 0.0157, 0.0324, 0.0488, 0.0124, 0.0255, -0.0502, 0.011, -0.0366, -0.0112, -0.0599, -0.0006, 0.0287, -0.0129, 0.0182, -0.1192, -0.0002, -0.0066, 0.0051, 0.0397, 0.0251, 0.0107, -0.0225, -0.1072, -0.0035, 0.0236, 0.0161, 0.0465, 0.0328, -0.0294, -0.0037, 0.0011, 0.0096, -0.0288, -0.0031, 0.0073, 0.0128, 0.0189, 0.0211, -0.1183, 0.0053, 0.2617, 0.0082, 0.0249, 0.0085, 0.0174, 0.0151, 0.0073, 0.0064, 0.0515, 0.0354, 0.0184, -0.0169, 0.0136, 0.0211, 0.0227, 0.0308, -0.0129, 0.0141, 0.0362, 0.0065, 0.0461, 0.0146, 0.0065, 0.0433, 0.033, 0.0111, 0.0149, 0.0154, 0.0159, 0.0263, 0.0233, 0.0141, 0.0171, 0.0757, 0.0746, -0.073, 0.0096, -0.0, 0.0121, 0.0078, 0.007, 0.026, 0.0201, 0.0242, 0.0187, 0.0178, 0.0089, 0.0207, -0.0225, -0.0332, 0.022, 0.0082, -0.0612, 0.0037, 0.0365, 0.0288, 0.0188, 0.0112, 0.0268, 0.0035, 0.0389, 0.035, -0.0069, -0.0485, -0.0026, 0.0248, 0.0094, 0.0358, 0.0178, 0.0416, 0.0043, 0.0112, 0.0161, -0.0046, -0.0055, -0.0989, 0.0301, 0.0395, -0.0106, -0.0027, 0.0388, -0.001, 0.1497, 0.011, 0.0381, 0.0135, -0.0051, -0.0035, 0.0165, 0.0559, 0.0025, -0.0078, 0.0095, 0.0272, 0.0378, -0.0746, 0.0018, 0.0092, 0.0189, 0.0055, -0.038, 0.0196, 0.0157, 0.004, 0.0145, 0.0272, -0.0072, -0.0572, -0.0577, -0.0271, 0.0429, 0.031, 0.0192, 0.0172, 0.0024, -0.0027, 0.015, 0.0232, 0.0299, 0.0407, 0.0269, -0.0049, 0.0069, 0.0085, 0.0163, 0.0236, 0.009, 0.0287, 0.0118, 0.0004, 0.02, -0.0131, 0.0296, 0.0404, 0.0166, 0.0049, 0.0252, 0.0036, 0.01, 0.0189, 0.0173, 0.0235, -0.0266, 0.0151, 0.0153, 0.0047, 0.0205, 0.0261, -0.001, 0.0177, 0.0242, 0.0336, 0.0429, 0.0331, 0.0178, -0.0372, 0.0157, -0.0257, -0.0069, 0.0029, 0.0678, 0.0198, 0.007, 0.0525, 0.0284, 0.0928, 0.0218, -0.0104, 0.0145, 0.0111, 0.045, -0.0172, 0.0143, 0.0342, -0.0061, 0.0103, 0.007, 0.0248, 0.0171, 0.0098, 0.0053, -0.0023, 0.0139, 0.0137, -0.0443, 0.0284, 0.0091, 0.0128, -0.0023, 0.0446, -0.0686, 0.0213, -0.0204, 0.0188, -0.1267, 0.0436, 0.0211, 0.0097, -0.0401, -0.2664, 0.0116, 0.0315, -0.0031, -0.0829, 0.0149, 0.0458, 0.01, -0.0496, -0.1322, 0.0061, 0.009, 0.0067, -0.0211, 0.0538, 0.0257, -0.007, -0.0119, 0.0298, 0.0079, -0.0035, 0.0181, 0.0461, 0.0523, 0.0571, 0.0463, 0.03, -0.142, 0.0128, 0.017, 0.0213, -0.0152, 0.0061, 0.0012, 0.03, -0.0367, 0.0162, 0.0548, 0.0071, 0.0274, -0.0959, 0.0181, 0.0039, 0.0242, 0.0546, -0.1957, 0.0383, 0.0239, 0.0173, 0.0286, 0.0452, 0.0289, 0.0258, -0.0303, 0.0319, 0.0098, 0.0022, 0.02, 0.0197, 0.0209, 0.0061, 0.0181, 0.0177, -0.0733, -0.0007, -0.0141, 0.004, -0.0026, 0.019, 0.0316, -0.0001, 0.0437, 0.0135, 0.02, -0.0123, 0.0193, 0.0402, 0.0269, -0.0225, 0.0597, -0.0102, 0.0152, 0.0288, 0.0224, 0.023, 0.0298, 0.0209, 0.0214, 0.0051, -0.0604, 0.0158, 0.0165, 0.0166, 0.0164, 0.0105, 0.0162, -0.0356, 0.0135, 0.0003, -0.0268, -0.0428, 0.0337, 0.012, 0.0231, 0.0386, 0.0176, 0.0125, 0.1467, 0.0244, 0.0349, 0.0145, 0.0138, 0.0163, -0.0202, 0.0198, 0.0531, -0.006, 0.0241, -0.0546, -0.0399, 0.0299, 0.0151, 0.015, 0.0512, 0.0008, -0.0713, 0.0157, -0.1509, 0.0012, 0.066, 0.0692, 0.0077, 0.0603, -0.0072, 0.0018, 0.0132, -0.0286, 0.0167, -0.0313, -0.001, 0.024, 0.0234, -0.0434, -0.0062, -0.0562, 0.0102, 0.008, -0.0284, -0.0694, -0.0079, 0.0189, 0.0247, 0.0724, -0.1164, 0.0062, 0.0166, 0.0099, 0.047, 0.0161, 0.0087, -0.1218, 0.0173, 0.0126, 0.0184, 0.0428, 0.0222, 0.0517, 0.0108, -0.0253, -0.0079, 0.0261, -0.0273, 0.0137, 0.0126, -0.0645, -0.0784, -0.0337, -0.4049, 0.0214, 0.0184, -0.0915, 0.0424, 0.02, 0.0071, 0.034, 0.0127, 0.022, 0.1432, -0.0383, 0.0207, 0.0517, -0.1044, 0.0037, 0.0174, 0.0091, -0.0223, 0.0154, 0.0756, 0.0425, -0.191, -0.0031, 0.0161, 0.1013, 0.0143, 0.0392, 0.0317, -0.1112, -0.0076, 0.0426, 0.0149, 0.1303, 0.0171, -0.0082, 0.0175, 0.0132, 0.0917, 0.0035, 0.0244, 0.0147, 0.0382, 0.01, 0.0313, 0.1212, 0.0036, 0.1213, -0.0278, 0.0312, 0.0093, -0.0099, 0.0219, -0.0422, -0.0576, 0.0043, 0.1243, 0.0189, -0.0347, 0.0223, 0.0113, 0.0177, -0.0105, 0.0842, 0.0833, 0.0594, 0.0195, 0.0081, 0.029, -0.0398, -0.0143, 0.0094, -0.0123, -0.0124, 0.0037, 0.0288, 0.0047, -0.0285, 0.0675, 0.0455, 0.0025, 0.0388, -0.0375, 0.0259, -0.0107, 0.006, 0.027, 0.034, 0.0284, 0.0275, -0.0708, -0.0364, 0.0655, 0.0604, 0.0176, 0.0108, -0.0163, 0.0676, 0.0271, 0.0659, 0.0071, 0.0469, -0.1326, 0.0327, 0.049, 0.0245, 0.007, -0.0013, 0.0019, 0.0745, 0.0107, -0.0203, -0.0037, 0.013, 0.1314, 0.0242, 0.0124, 0.0522, 0.0099, -0.0277, -0.0153, 0.0098, 0.0428, 0.0207, 0.2502, -0.0107, 0.0086, 0.0188, 0.0043, 0.0178, 0.0672, 0.0345, 0.021, 0.0182, 0.0231, 0.0316, 0.0146, 0.0583, -0.0028, -0.0045, -0.0045, 0.01, -0.0008, 0.0235, 0.011, 0.0179, 0.0947, 0.03, 0.0132, 0.0992, 0.0839, -0.017, 0.0293, 0.0449, 0.0083, 0.0323, 0.0009, 0.0154, -0.0022, 0.0071, 0.0377, 0.01, 0.0858, 0.0123, -0.3472, 0.0189, 0.04, 0.0672, 0.0175, -0.0494, 0.0183, 0.0056, 0.0058, -0.0121, 0.0358, -0.1015, 0.0158, -0.0357, 0.0025, 0.0157, 0.0062, 0.0295, 0.0136, 0.0087, 0.0261, -0.0052, 0.0155, -0.003, 0.0303, 0.003, 0.0097, -0.2313, 0.0084, 0.0354, 0.0127, 0.0295, 0.0217, 0.0201, 0.1213, 0.1653, -0.1775, 0.0364, 0.0208, 0.0254, 0.0531, 0.0126, 0.1075, 0.0246, 0.0181, 0.0322, 0.0154, 0.0025, 0.0401, 0.0229, 0.0018, 0.017, 0.0145, -0.0077, 0.0313, 0.0408, 0.0096, 0.0175, 0.0131, 0.0067, 0.0298, -0.0585, 0.0556, -0.0316, -0.1332, 0.0233, 0.0255, 0.0033, 0.0041, 0.0241, 0.0048, 0.0186, -0.0609, 0.0118, 0.0261, 0.013, 0.0128, 0.0868, 0.0299, 0.0432, 0.0109, 0.1069, 0.0841, 0.0148, 0.0686, 0.0313, 0.0557, 0.0658, 0.0178, -0.0074, -0.003, 0.0259, 0.003, -0.0173, -0.3275, 0.0191, 0.0076, 0.0299, 0.03, 0.0064, 0.025, -0.0281, -0.0005, 0.0041, 0.001, 0.0116, 0.0037, 0.0399, 0.0192, 0.0161, -0.0006, 0.0251, -0.0652, 0.0175, -0.0568, 0.0542, 0.0421, 0.0427, -0.0323, 0.0017, 0.241, 0.033, 0.0122, 0.0211, 0.0294, -0.0, 0.0156, -0.0011, 0.0179, 0.0135, 0.2287, -0.0427, 0.0092, -0.0149, -0.0507, 0.0091, 0.0399, 0.0227, -0.0117, 0.007, -0.0198, 0.0187, 0.0596, -0.0103, 0.0108, 0.01, 0.0169, 0.0333, 0.0174, 0.0304, 0.0033, 0.0281, -0.0588, 0.0393, 0.0269, 0.0077, -0.0188, 0.0341, 0.0122, 0.0073, 0.0375, -0.337, 0.2758, 0.012, 0.0074, 0.2027, 0.0203, 0.0378, 0.0033, 0.0171, 0.0028, 0.0063, 0.0268, 0.027, -0.0141, 0.033, 0.0339, 0.0746, 0.0171, 0.0207, 0.01, 0.0246, 0.0432, 0.0201, 0.0263, -0.0282, 0.0175, 0.0164, 0.0178, 0.0208, -0.0155, -0.0314, -0.0204, 0.009, 0.0113, 0.013, 0.0375, 0.0182, 0.0157, -0.0915, -0.0086, 0.0048, 0.006, 0.0135, 0.1007, -0.0004, 0.0272, -0.0021, 0.0164, 0.0483, -0.0028, 0.0038, 0.0421, 0.0224, -0.023, 0.0086, 0.018, -0.0045, -0.0082, 0.006, 0.0141, 0.032, -0.008, 0.0419, 0.0175, 0.0189, 0.0108, 0.0219, 0.0637, 0.008, 0.0189, 0.0357, -0.0344, 0.0041, 0.0485, 0.0409, 0.0257, -0.0195, -0.0132, 0.0295, 0.0222, -0.0017, 0.0899, -0.0131, 0.0471, 0.0048, 0.0381, 0.0283, 0.0056, 0.0563, 0.0371, 0.0259, 0.106, 0.0586, 0.0154, -0.0004, 0.0073, -0.032, -0.0168, 0.0047, 0.0329, -0.0236, 0.0229, 0.0234, 0.0338, 0.0108, 0.0238, 0.0101, 0.0126, 0.0327, 0.0326, 0.009, -0.0369, 0.0636, -0.0134, 0.023, -0.0424, 0.0407, 0.065, 0.0149, -0.0138, 0.0177, 0.0007, 0.0198, 0.0076, 0.0119, 0.0057, -0.0153, 0.0418, 0.0128, 0.0145, 0.002, 0.046, -0.0648, 0.0019, -0.0019, 0.0293, 0.004, 0.0247, 0.0157, 0.0231, -0.0016, -0.0163, 0.0189, 0.0064, 0.1188, -0.0065, 0.0327, 0.0183, 0.0007, -0.013, 0.032, 0.032, 0.0126, 0.0197, 0.0362, -0.031, 0.0056, 0.0748, 0.0001, -0.0107, 0.0095, 0.0598, -0.005, 0.0087, 0.0295, 0.0187, 0.0135, 0.0622, 0.0001, 0.0611, 0.0186, 0.0044, 0.0053, -0.0081, -0.2172, -0.0407, 0.0128, -0.0422, 0.0765, 0.0449, -0.0703, -0.008, -0.0511, 0.0158, 0.0229, -0.0417, -0.0302, 0.0302, 0.0095, 0.0224, 0.0283, 0.059, 0.0189, 0.0045, 0.0268, 0.0109, -0.0615, 0.0385, 0.127, -0.0984, 0.0368, 0.0238, 0.0027, -0.062, 0.0674, 0.0145, 0.0789, 0.0679, 0.0339, 0.0157, 0.0199, 0.1715, 0.0086, -0.0692, 0.0196, 0.0242, 0.009, -0.009, 0.022, 0.0164, 0.0184, 0.0113, 0.0002, 0.0588, 0.007, 0.0116, 0.0257, 0.1145, -0.0963, -0.0014, 0.0327, 0.0307, 0.0422, -0.0519, 0.0284, 0.056, 0.0111, 0.0082, 0.0158, 0.0414, 0.0681, 0.0447, 0.0121, -0.0276, 0.0386, 0.0374, 0.0827, -0.0405, -0.0163, 0.0175, -0.2568, 0.0453, 0.007, 0.0108, -0.0058, 0.0101, 0.0566, 0.0165, 0.0145, 0.0164, -0.1164, 0.0051, 0.0104, 0.0153, 0.0059, 0.0227, 0.0121, 0.005, 0.0464, 0.0437, 0.0033, 0.0264, -0.009, 0.0011, 0.0249, 0.0062, 0.0314, 0.0034, 0.0638, 0.0411, 0.0015, -0.014, 0.0163, 0.0792, 0.0142, 0.0151, 0.074, 0.0707, 0.0428, 0.0188, 0.0288, 0.0229, -0.0326, 0.0013, 0.0161, 0.0149, -0.0035, 0.0453, 0.0022, -0.0022, 0.0161, -0.0269, 0.0292, 0.1151, 0.0117, 0.0299, 0.0015, 0.0271, -0.1023, 0.0464, 0.0724, 0.0102, 0.0297, 0.0551, 0.0763, 0.0194, 0.0358, 0.0024, -0.0208, 0.0249, 0.017, 0.0064, 0.0383, 0.0184, 0.0162, 0.007, 0.0235, -0.0015, 0.0106, -0.3154, 0.0269, 0.0108, -0.0086, 0.0093, 0.0228, 0.0499, -0.0831, -0.0065, 0.0342, 0.016, -0.0123, 0.0435, 0.0272, 0.0217, -0.1203, 0.0091, -0.0287, 0.0161, -0.0495, 0.0325, 0.0087, 0.0054, 0.0136, 0.0036, 0.0667, -0.0765, 0.0296, -0.1166, 0.0238, 0.0352, -0.019, -0.0021, -0.044, 0.0068, 0.0046, -0.0905, -0.0092, 0.018, 0.0134, -0.0001, -0.0056, 0.008, 0.0026, 0.0424, 0.0023, 0.0891, 0.018, 0.0182, -0.0603, 0.1164, -0.1116, 0.0225, 0.11, 0.0441, 0.0755, 0.0937, 0.0705, 0.0177, 0.0503, 0.0431, 0.0293, -0.0081, -0.0648, -0.0914, 0.018, 0.0038, 0.0105, 0.0291, 0.0324, -0.0135, 0.0048, 0.0284, 0.0022, -0.0098, 0.0023, 0.007, 0.0763, -0.0052, -0.0161, 0.0029, 0.0111, 0.0179, 0.0132, -0.0075, 0.0016, 0.037, 0.0223, 0.0034, -0.02, 0.0171, 0.0207, 0.0174, 0.0313, 0.0138, -0.0023, -0.273, 0.0479, 0.1477, 0.0323, 0.0273, -0.0245, 0.0351, 0.1751, 0.0109, 0.0387, 0.0239, 0.0045, 0.1183, 0.0131, 0.0401, 0.0208, 0.0008, 0.0088, -0.0202, -0.0003, 0.0418, -0.088, 0.0088, 0.0092, -0.0479, -0.0174, -0.0013, 0.0167, 0.0159, 0.0217, 0.0113, 0.0655, 0.0104, -0.1429, 0.1284, 0.0481, 0.0311, 0.0182, 0.0611, 0.0577, 0.0238, -0.0108, -0.0246, 0.0333, -0.0041, 0.1741, 0.0586, -0.0175, 0.0147, 0.0248, 0.0127, -0.0015, 0.0057, 0.0536, 0.0091, -0.0221, 0.0469, 0.2538, -0.0029, -0.0451, 0.0185, -0.2341, 0.0277, 0.017, -0.1155, -0.004, 0.0143, 0.0509, 0.0123, -0.2525, -0.0031, 0.0095, 0.0041, 0.0446, 0.0095, 0.0067, -0.0656, 0.0189, 0.0382, 0.0536, 0.0064, -0.0349, 0.0303, -0.0733, 0.0057, 0.0205, 0.0769, 0.028, 0.0292, 0.0259, 0.0282, 0.0181, -0.1149, 0.0154, 0.0517, 0.0377, -0.031, 0.0669, 0.0651, -0.0009, 0.1256, 0.0248, 0.1086, -0.0351, -0.0111, -0.0415, 0.0051, 0.0201, 0.0041, 0.0145, 0.0519, -0.0144, 0.063, 0.025, 0.0173, -0.0046, 0.0468, -0.0147, 0.0064, 0.0678, -0.0303, 0.011, 0.0375, 0.0025, 0.0019, -0.0742, 0.0254, 0.0122, -0.0209, -0.057, 0.0226, -0.0042, 0.0195, 0.0166, 0.0161, 0.0154, 0.0151, 0.0278, 0.0122, 0.0314, 0.0159, 0.029, 0.0106, 0.0172, -0.0526, -0.2081, 0.0277, -0.0493, 0.0294, 0.0249, 0.0367, 0.0219, 0.0146, -0.0033, 0.0231, 0.0277, 0.0246, 0.0247, -0.0201, 0.0041, 0.0209, 0.0049, 0.015, 0.0267, -0.0409, 0.0026, -0.0477, -0.0677, 0.0151, 0.0139, -0.007, 0.0008, 0.006, 0.0182, 0.0137, 0.0328, 0.0285, 0.0346, -0.0685, -0.0083, -0.0162, 0.0033, 0.0375, 0.0476, 0.0402, 0.0136, 0.016, 0.0236, 0.0217, 0.0157, -0.0329, -0.0526, 0.0638, -0.0334, -0.0023, -0.0988, 0.0022, 0.0571, -0.0374, 0.0046, -0.0843, -0.0833, 0.051, 0.0318, -0.0406, -0.0381, 0.0104, 0.0094, 0.0453, 0.0448, -0.1991, 0.1512, 0.0329, 0.0113, 0.0037, 0.0229, -0.0094, 0.0137, 0.0774, -0.0179, 0.0145, 0.0266, 0.0205, 0.0216, 0.0271, 0.0314, 0.0231, 0.0343, 0.0126, 0.0244, 0.0398, 0.1069, -0.0123, 0.0325, 0.027, 0.0248, 0.0176, -0.0119, 0.0263, 0.0726, 0.0048, -0.0145, 0.0496, 0.0127, -0.1612, 0.0008, 0.0287, 0.0654, -0.0363, -0.021, 0.0825, -0.0623, -0.3134, -0.0465, 0.0342, -0.0788, 0.0206, 0.0167, 0.0401, 0.0407, 0.0216, 0.0241, 0.0374, -0.0948, 0.0197, 0.0574, 0.0333, -0.0361, 0.0163, -0.2577, 0.0975, 0.0296, 0.0327, -0.0786, 0.0254, 0.0261, 0.0366, -0.0044, 0.0223, 0.0443, 0.0159, -0.0002, 0.028, 0.0235, 0.0184, 0.0302, 0.0244, 0.0064, 0.0364, 0.011, 0.0121, 0.0112, 0.0105, 0.0713, 0.0467, -0.0673, 0.0327, -0.0135, 0.0265, 0.0071, 0.021, 0.0222, 0.0217, 0.0204, 0.1112, 0.2117, 0.0002, 0.0147, 0.007, 0.0228, -0.0323, 0.0081, 0.0144, 0.024, 0.0444, 0.0112, 0.0132, 0.0065, 0.0175, 0.0644, 0.0264, 0.0093, -0.0058, 0.052, 0.0466, -0.0913, -0.0028, 0.0048, -0.0165, 0.0267, 0.0371, 0.0158, 0.0094, 0.0141, 0.0117, 0.0021, 0.0913, 0.0126, 0.0268, 0.0104, 0.0005, 0.0158, 0.0087, 0.015, -0.0379, -0.0059, -0.1043, 0.0504, 0.0244, 0.0181, 0.0151, 0.0202, 0.0992, 0.0342, 0.0137, 0.0314, 0.0501, 0.0347, -0.0129, 0.0265, 0.0042, 0.0303, 0.0082, 0.014, 0.0193, -0.0065, 0.0124, 0.0227, 0.011, 0.0134, 0.0125, 0.0218, 0.0236, 0.0656, 0.0162, 0.0056, -0.0018, 0.0449, 0.0076, 0.0154, -0.0196, 0.0417, 0.03, 0.0173, 0.0427, 0.0163, 0.028, 0.0113, 0.0155, -0.0101, 0.0112, 0.0194, 0.0187, 0.0075, -0.0034, 0.0158, 0.0179, 0.0668, -0.0033, 0.012, 0.0222, 0.01, 0.0327, 0.043, 0.0275, 0.0126, 0.0185, 0.0462, 0.0149, -0.0062, -0.0615, 0.0047, 0.0531, 0.0051, 0.0853, 0.0748, 0.0344, 0.0434, 0.0289, 0.0201, -0.0015, 0.0327, -0.2285, -0.021, 0.018, -0.0235, 0.0379, -0.0671, -0.0132, 0.023, 0.015, 0.0226, 0.0072, 0.0139, -0.0159, 0.0134, -0.0258, -0.0096, -0.0035, -0.0139, -0.0146, 0.0284, 0.0092, -0.0158, 0.0808, 0.023, 0.016, 0.0368, 0.0243, 0.0137, -0.0057, 0.0306, 0.0147, 0.0284, 0.0255, -0.0209, -0.4082, -0.0729, -0.2196, -0.167, 0.0247, 0.0838, 0.0254, -0.3518, 0.2147, 0.048, 0.0098, 0.051, 0.0428, 0.0342, 0.0429, -0.0352, 0.0139, -0.0132, 0.0439, -0.0342, 0.0205, 0.0487, 0.0219, -0.0125, -0.0006, 0.0013, 0.0157, 0.0069, 0.0547, -0.2391, -0.0064, 0.0362, 0.0374, 0.0349, 0.0354, 0.0326, 0.0286, 0.0114, 0.0179, 0.0172, 0.0255, 0.0159, 0.0203, 0.0239, -0.0502, 0.0034, 0.0195, 0.0543, 0.0329, 0.0171, 0.0297, 0.018, 0.0502, 0.014, 0.001, 0.0185, 0.0416, 0.0083, 0.0179, 0.0121, -0.0544, 0.1219, 0.0049, 0.0266, 0.0656, 0.0356, 0.0263, 0.0519, -0.007, -0.0329, -0.3334, -0.0025, 0.0174, 0.0724, 0.0378, 0.0178, 0.0132, -0.0002, 0.0266, 0.0883, 0.0616, 0.0516, 0.01, 0.0079, 0.0079, 0.0114, 0.0138, 0.0128, -0.0289, -0.008, 0.0651, 0.007, 0.0768, 0.0246, -0.006, -0.0571, 0.0165, 0.0084, 0.0476, 0.0202, -0.2297, -0.0134, 0.0044, -0.0003, 0.0143, 0.0348, 0.023, 0.0029, 0.04, 0.0329, -0.0021, 0.0676, 0.0108, -0.0242, 0.0168, 0.0075, 0.0149, 0.0285, 0.0233, 0.0204, 0.0443, -0.034, -0.0799, 0.0451, 0.1207, 0.0295, -0.1558, 0.057, 0.0032, 0.0398, 0.0324, 0.0178, 0.0256, 0.0297, 0.0428, 0.0315, 0.0179, 0.0484, -0.0013, 0.0217, -0.0228, 0.0012, 0.0438, -0.0108, 0.0045, 0.0242, 0.0154, 0.0097, 0.0156, 0.0166, 0.0064, -0.1797, 0.0078, -0.0039, -0.0325, 0.0212, -0.0055, 0.0203, 0.0196, 0.0298, 0.0288, 0.034, 0.0139, -0.0556, 0.0965, -0.0085, -0.2114, 0.0512, 0.0424, 0.0209, 0.0437, 0.0365, -0.009, 0.0638, 0.1464, -0.038, 0.0331, 0.1102, -0.0073, -0.0785, 0.0145, 0.0074, 0.0339, -0.0424, 0.0093, -0.03, -0.016, -0.0122, 0.0178, 0.0217, 0.0096, -0.0078, 0.0068, 0.0063, 0.0596, 0.0002, -0.0076, -0.0029, -0.0179, -0.0107, 0.0409, -0.0168, 0.0196, 0.0075, 0.0336, 0.0136, 0.0944, 0.0076, -0.0004, 0.0072, 0.0436, 0.0142, 0.0388, -0.1157, 0.0067, 0.3514, 0.0374, -0.0095, 0.0166, 0.0153, 0.029, 0.002, -0.0029, 0.0473, 0.0247, 0.0032, 0.0447, 0.013, 0.0267, 0.0418, 0.013, -0.0161, 0.0541, 0.0285, 0.0615, 0.014, 0.0006, -0.0201, 0.0178, 0.0348, 0.0374, 0.0142, 0.0206, 0.0419, 0.0101, 0.0321, 0.0278, -0.2494, 0.0368, 0.0035, 0.0287, 0.0797, -0.0004, 0.0182, 0.0067, -0.0344, -0.0828, 0.0256, 0.0287, -0.0059, -0.2616, 0.0074, 0.0391, 0.0147, -0.006, 0.0283, 0.0532, 0.033, 0.0178, 0.0077, 0.0321, 0.0465, -0.0451, 0.0171, 0.0166, 0.0106, -0.001, 0.0541, 0.0205, 0.0441, 0.0225, 0.0266, -0.0104, 0.0145, 0.0196, 0.0428, 0.0062, 0.0489, 0.0053, 0.0122, -0.0296, 0.1211, 0.0711, 0.0129, 0.0077, 0.0364, 0.003, 0.0103, -0.1532, 0.0243, 0.0318, 0.0445, 0.0279, 0.07, 0.0414, 0.0062, 0.0333, 0.0405, 0.1204, 0.0497, -0.0097, -0.0032, -0.0335, 0.0291, 0.02, -0.0506, 0.0081, 0.0044, 0.0052, -0.0006, 0.0238, 0.0009, 0.0211, 0.0162, 0.0076, 0.008, 0.0063, 0.0097, 0.0068, 0.0479, 0.0044, 0.0008, 0.0184, 0.0708, 0.0679, 0.0298, 0.0049, 0.0102, 0.044, 0.0249, 0.0048, 0.0013, 0.0097, 0.021, -0.0122, 0.0082, 0.01, 0.0123, 0.0121, -0.0285, -0.0156, 0.0145, 0.0283, 0.0151, 0.0038, 0.0239, 0.013, 0.0048, 0.0117, 0.0158, 0.0169, 0.239, -0.003, -0.0398, 0.014, -0.1098, -0.0012, 0.0378, 0.0025, 0.0147, -0.0272, -0.0204, 0.0137, 0.2342, 0.0193, 0.0445, 0.0718, 0.0141, 0.0058, 0.046, 0.0228, 0.0769, 0.0296, -0.0263, -0.0016, -0.0814, -0.077, -0.0422, 0.0059, -0.1393, -0.0322, 0.0176, -0.0413, 0.0156, 0.0101, 0.0188, 0.008, 0.0081, -0.0002, -0.0676, 0.0092, 0.0489, 0.0053, 0.0364, 0.0063, 0.0121, 0.02, 0.0469, 0.019, 0.0317, -0.0027, -0.036, 0.0283, 0.0188, 0.0077, 0.0035, 0.0115, -0.0736, 0.036, 0.041, 0.0624, 0.0258, 0.0413, 0.0206, 0.0085, 0.0228, -0.4896, -0.0079, -0.01, -0.0019, 0.0065, -0.0076, -0.0087, 0.0201, -0.0505, -0.0544, 0.0022, 0.0503, -0.0036, -0.0195, -0.0144, 0.0156, -0.1135, 0.0107, -0.0539, 0.0231, -0.0027, 0.0335, 0.0184, 0.0176, 0.0206, 0.0664, 0.012, -0.0127, 0.0013, 0.0373, 0.0288, 0.0367, -0.0276, 0.0186, 0.0037, 0.006, 0.0219, 0.0147, 0.0027, 0.0025, 0.0229, 0.021, 0.0154, -0.0194, -0.0031, 0.0255, 0.0118, 0.0603, -0.0162, 0.0097, -0.0055, 0.0368, 0.0219, 0.0253, -0.0497, 0.0325, 0.0267, 0.0099, -0.0685, 0.0267, -0.0512, 0.1711, 0.1767, 0.0058, 0.0311, -0.2302, -0.0267, 0.0156, 0.0238, -0.0953, 0.0023, 0.0258, -0.1631, 0.0145, 0.0276, 0.0148, -0.0014, -0.0293, 0.0204, -0.1404, -0.02, 0.0048, 0.0209, -0.0223, 0.0298, 0.024, 0.0088, 0.0315, 0.022, 0.015, -0.0015, -0.0031, -0.1202, 0.0641, 0.037, -0.0034, -0.0444, 0.016, -0.0277, 0.0408, -0.0111, 0.0171, -0.0122, 0.0276, -0.0152, 0.1925, 0.001, -0.205, 0.0196, -0.0187, 0.0212, 0.0417, 0.0099, 0.0202, 0.0042, 0.0175, -0.2557, 0.0057, 0.0248, 0.0189, 0.0134, 0.0697, 0.0276, 0.1242, 0.0304, 0.0051, 0.0242, 0.0386, 0.0329, 0.0033, -0.0012, 0.0095, -0.0402, 0.0158, -0.0877, 0.0908, 0.0287, -0.0431, -0.0131, -0.0359, 0.0636, 0.0242, 0.0141, 0.0189, 0.013, 0.0323, 0.017, 0.0179, 0.0124, -0.0261, 0.033, 0.0341, 0.0252, -0.0184, 0.1486, 0.0169, 0.0554, -0.003, 0.0275, 0.0201, 0.0287, 0.0057, 0.0139, 0.0194, 0.0265, 0.0297, 0.0017, 0.0301, 0.0492, 0.032, 0.0086, 0.0835, 0.0031, -0.1181, 0.0287, 0.0241, 0.0212, 0.0109, 0.0001, 0.0281, 0.0295, 0.0403, 0.0455, -0.0079, 0.0761, 0.0903, 0.0359, 0.173, 0.0455, 0.0029, -0.0075, 0.0331, 0.0107, 0.0345, 0.0306, -0.0193, 0.0255, -0.0533, 0.0272, -0.1831, -0.0095, -0.0065, -0.4762, -0.0516, -0.0021, 0.0368, 0.0315, 0.0361, 0.0002, -0.0493, 0.0449, -0.0059, 0.0308, 0.0524, -0.0199, 0.0317, 0.0036, 0.0072, -0.0547, 0.0668, -0.0274, 0.0175, 0.1031, 0.0485, -0.0089, -0.0448, 0.0405, 0.0055, 0.0046, -0.0101, 0.0836, 0.0083, 0.0071, -0.0083, 0.0409, 0.0338, 0.0114, -0.0113, 0.0322, 0.1708, 0.0602, 0.0355, 0.0327, 0.0118, 0.0361, 0.0094, 0.0373, 0.0776, 0.049, 0.0268, 0.0072, -0.0105, 0.0396, 0.0224, 0.0052, 0.0287, 0.0269, 0.0078, -0.0116, 0.0174, 0.0186, 0.0069, 0.0151, -0.0009, 0.0136, 0.0437, 0.0298, 0.0725, 0.0325, -0.0056, 0.0165, 0.0235, 0.0197, -0.0133, 0.0382, 0.0355, 0.0323, 0.0202, 0.0237, 0.0209, 0.0224, -0.0081, -0.1441, 0.0252, 0.1097, -0.2362, -0.0022, 0.0361, 0.0095, 0.0311, 0.0154, 0.0095, -0.0456, 0.0138, -0.0215, 0.0467, 0.021, 0.0319, 0.0102, 0.0894, -0.0037, 0.0208, 0.0394, 0.0169, 0.0148, 0.005, -0.0005, 0.039, 0.0004, 0.0258, 0.0139, 0.0134, 0.0183, -0.0228, 0.0451, 0.032, 0.0084, 0.0284, 0.0225, 0.0551, 0.0169, -0.1272, 0.0154, 0.0127, 0.0227, 0.0342, 0.018, 0.013, 0.0441, -0.01, 0.0039, -0.0009, 0.0364, -0.0273, -0.0791, 0.0124, 0.0294, -0.0978, 0.0283, 0.0631, 0.0229, 0.0175, -0.044, 0.0282, -0.0068, 0.0451, 0.0333, -0.0185, 0.0256, -0.0005, 0.0436, -0.0014, 0.0135, -0.1098, -0.0235, 0.0095, 0.0071, 0.0268, -0.083, -0.0661, 0.0443, 0.0729, -0.041, 0.0442, -0.0044, 0.0402, 0.0117, 0.0251, 0.0029, 0.0185, 0.1291, 0.0816, 0.0141, -0.0092, 0.0165, 0.0178, 0.0413, 0.0085, -0.0625, -0.0512, -0.0531, 0.0791, -0.0038, 0.0615, 0.0092, 0.0804, -0.0372, 0.0023, -0.0034, -0.0736, 0.057, 0.0338, 0.0551, 0.0149, 0.0015, 0.0285, 0.0537, 0.103, 0.0247, -0.1058, 0.0207, 0.0001, 0.0157, 0.0271, 0.0146, 0.0468, 0.0182, -0.1752, 0.0276, -0.0079, 0.0107, 0.0182, 0.0012, 0.0142, 0.0254, 0.0211, 0.0229, 0.0864, -0.0046, 0.0103, 0.0106, 0.013, 0.0014, -0.1506, -0.0122, 0.0072, 0.0921, 0.0016, 0.0013, -0.0104, 0.0696, -0.0035, 0.0074, 0.105, -0.0119, 0.0052, -0.0051, 0.0171, 0.0123, 0.0279, -0.0187, -0.0107, 0.0183, -0.0051, 0.0524, 0.0067, 0.0449, 0.0097, 0.0293, 0.4074, -0.1335, 0.0074, -0.0595, 0.0326, 0.0123, 0.0332, 0.0077, 0.0062, 0.0352, 0.034, -0.1294, 0.0269, 0.0527, 0.0191, 0.0042, 0.0113, 0.0592, 0.0086, 0.0284, -0.0021, 0.0294, 0.0006, -0.0708, 0.019, -0.0113, 0.0183, 0.0196, 0.0569, 0.0175, 0.0286, 0.0068, 0.0273, 0.0228, 0.0058, 0.0042, 0.0152, 0.0206, 0.009, 0.0145, 0.0112, 0.0133, -0.0343, 0.0154, 0.0278, 0.011, 0.0045, 0.0252, 0.0446, 0.0172, 0.0158, -0.0199, -0.0917, 0.0143, 0.0236, -0.0105, 0.0186, 0.023, -0.0047, -0.2849, 0.0328, 0.0313, -0.0181, 0.0176, 0.0282, -0.0071, 0.1694, 0.016, 0.0177, 0.0226, 0.0288, -0.1497, 0.0149, 0.0219, 0.0064, 0.0096, 0.0163, 0.0855, 0.0378, 0.0421, 0.0208, 0.085, 0.0273, 0.0065, 0.0116, -0.0015, 0.0362, 0.0388, 0.0171, 0.0051, 0.0298, 0.0015, 0.024, 0.0135, 0.0268, 0.0662, 0.0372, 0.044, 0.0403, -0.0119, -0.1031, 0.0247, -0.0346, 0.008, -0.0139, 0.0272, 0.0069, -0.2891, -0.0034, 0.0067, 0.0074, -0.0085, -0.0096, 0.0282, 0.0041, 0.014, 0.0184, 0.0185, 0.0354, 0.0792, 0.021, 0.0154, 0.0328, 0.0301, -0.0043, 0.02, 0.0449, -0.0198, -0.0058, 0.0219, 0.0713, 0.0258, 0.0623, 0.0163, 0.007, 0.0067, 0.0187, -0.1843, -0.2661, 0.0289, 0.0623, 0.0084, 0.0275, 0.0289, -0.0934, 0.034, -0.0218, 0.0061, 0.0259, 0.0479, -0.0003, 0.0267, 0.0043, -0.0108, 0.026, 0.0155, -0.0349, 0.0146, 0.0281, 0.0337, 0.024, 0.0649, -0.0398, 0.0436, 0.0209, 0.0261, 0.0318, 0.023, 0.0232, 0.0245, 0.0623, -0.0082, 0.0131, 0.0306, 0.0085, 0.0147, 0.022, 0.0186, 0.0377, 0.0196, 0.0354, 0.0413, 0.0022, 0.0017, 0.0132, -0.0849, 0.0389, 0.0145, 0.0174, -0.091, 0.0297, 0.0092, 0.0674, 0.0071, 0.025, 0.0015, 0.0922, -0.0569, -0.0297, 0.0213, 0.067, -0.0154, -0.0001, 0.0325, 0.0234, 0.0111, -0.0793, 0.0599, -0.0377, 0.0146, 0.0091, 0.0077, 0.0302, 0.0374, 0.0165, 0.0306, 0.0056, -0.0208, 0.0068, 0.0029, 0.0926, 0.012, -0.0425, 0.0086, -0.0533, 0.0231, 0.1185, 0.0224, 0.0087, 0.0361, 0.0172, 0.0256, 0.0341, -0.24, 0.0695, -0.0074, 0.0081, -0.0175, 0.0073, -0.0414, 0.0221, 0.0309, 0.0176, 0.0054, 0.0267, 0.0382, 0.0076, -0.08, -0.0372, 0.0124, -0.0093, 0.0082, 0.0122, -0.0018, -0.1614, 0.0072, 0.0054, 0.0247, -0.0134, 0.0265, 0.0205, -0.0085, 0.0552, 0.0341, 0.0065, 0.0091, 0.0223, 0.0442, 0.0368, 0.0392, 0.013, 0.0205, 0.0208, -0.0105, 0.016, -0.0489, 0.0285, 0.0266, 0.042, 0.0281, 0.0138, 0.0286, 0.0082, -0.1124, -0.0041, 0.0361, -0.1028, 0.0206, 0.0189, 0.0268, 0.0102, 0.0613, 0.0143, 0.0133, -0.0182, 0.2162, 0.0136, 0.0416, 0.0178, 0.0013, -0.0264, 0.0127, 0.0183, 0.0107, 0.0333, 0.0919, 0.0141, 0.0103, 0.0262, 0.014, 0.0224, 0.0421, 0.0002, -0.0105, 0.0439, 0.0244, 0.0241, -0.0016, 0.024, 0.0082, 0.0471, 0.0029, 0.021, 0.0302, 0.0806, -0.0056, 0.003, 0.0197, 0.0216, 0.0135, 0.0264, 0.0129, 0.0044, 0.0112, 0.0075, -0.0135, -0.0021, -0.0038, 0.0261, 0.0015, 0.0285, 0.0057, 0.0097, 0.0089, -0.0326, -0.0031, 0.0106, 0.0638, 0.0127, 0.0124, 0.0077, 0.0032, 0.0164, 0.0021, 0.0284, 0.0184, -0.0936, 0.0322, 0.0041, 0.0281, -0.0301, 0.0469, 0.0035, 0.0332, -0.1033, 0.0043, -0.0325, -0.0701, -0.0094, 0.0244, -0.1824, -0.0014, 0.008, 0.0037, 0.0048, 0.032, 0.0191, 0.0154, -0.0187, 0.0113, 0.0053, 0.0208, -0.2382, 0.0629, 0.0238, -0.0091, 0.0097, 0.0237, -0.0019, 0.0186, 0.0694, 0.0236, -0.0677, 0.0572, 0.0333, -0.0112, 0.0038, 0.0014, 0.0898, 0.0069, 0.033, 0.0188, -0.0227, 0.0061, 0.0559, -0.0039, -0.004, -0.0087, 0.0033, -0.0792, -0.0496, 0.0588, -0.1108, 0.0053, 0.0234, 0.074, 0.0479, 0.0126, -0.0527, -0.0314, 0.0134, 0.0093, -0.0309, 0.0197, -0.0321, -0.1241, -0.0814, 0.0204, 0.0551, -0.0392, 0.0414, 0.0499, 0.0242, 0.0205, 0.0358, 0.0247, 0.02, 0.015, 0.0343, 0.0278, 0.0242, 0.0629, 0.0165, 0.0179, 0.0335, 0.0168, 0.0414, -1.584, -0.1051, 0.0302, -0.0155, 0.0359, -0.0133, -0.0121, -0.024, 0.0054, -0.0491, -0.0044, 0.0028, -0.196, 0.037, 0.0505, 0.0192, 0.0136, 0.024, 0.0145, 0.017, 0.0372, 0.0502, 0.0175, 0.028, 0.0161, 0.0234, 0.0118, -0.006, 0.0056, 0.029, 0.0254, 0.0088, 0.0342, 0.0, 0.0235, 0.0206, 0.0259, 0.0049, 0.0084, 0.055, 0.0377, 0.0072, 0.0328, -0.0713, 0.0095, 0.0193, 0.1307, -0.0151, 0.0213, 0.0149, 0.024, 0.0114, 0.0068, 0.0338, 0.0601, 0.0244, 0.01, -0.0423, 0.0273, 0.0297, -0.0424, 0.0202, 0.0092, 0.0128, 0.0233, 0.0076, 0.0086, 0.0087, -0.1444, 0.0142, 0.0437, 0.0108, 0.0259, 0.0112, 0.0332, 0.0276, -0.036, 0.0258, -0.0051, 0.045, 0.13, 0.023, -0.0309, -0.0113, 0.0177, 0.0161, 0.4201, 0.0307, 0.061, 0.0238, -0.0788, -0.0054, -0.05, 0.0177, -0.114, 0.0207, 0.0257, 0.0004, 0.0324, 0.0336, 0.0206, 0.0216, 0.0096, -0.1252, -0.0121, 0.0074, -0.1899, 0.0036, -0.0094, -0.0175, -0.0011, -0.0062, 0.0022, 0.0116, -0.1178, 0.0142, 0.0282, 0.0476, -0.1077, 0.0046, 0.0422, 0.035, 0.0085, -0.0552, -0.2316, -0.032, -0.0036, -0.021, 0.0073, 0.0153, -0.054, 0.0111, 0.0181, 0.0027, 0.0174, 0.031, 0.0302, 0.0056, 0.0124, 0.016, -0.0693, 0.0111, 0.0, -0.04, -0.0176, 0.018, 0.0109, 0.0168, 0.1036, 0.0322, -0.0016, 0.017, 0.0225, 0.0141, 0.0223, 0.0393, 0.0113, 0.0057, 0.1176, 0.0193, 0.0003, -0.0208, 0.0319, 0.0327, 0.0028, -0.0132, 0.0124, 0.0121, 0.1649, 0.0105, 0.0939, 0.0543, 0.0245, 0.0486, -0.07, -0.0042, 0.0357, -0.1953, 0.0035, 0.0408, -0.0157, -0.1186, 0.023, 0.0055, 0.0194, 0.0326, -0.0045, 0.0175, 0.017, 0.0082, -0.0136, 0.029, 0.0335, 0.0165, 0.0111, 0.0158, -0.0335, 0.0071, -0.0293, 0.0468, 0.0008, 0.0219, -0.0007, 0.0125, 0.032, -0.009, 0.0121, -0.0459, 0.0039, 0.029, 0.0222, 0.0146, -0.1307, 0.0103, 0.0289, 0.0298, -0.0057, -0.0083, 0.0279, 0.02, 0.0193, 0.0285, 0.0042, 0.0391, 0.0043, 0.0071, 0.0826, 0.0011, 0.0182, 0.0047, 0.0184, 0.0383, 0.0197, -0.016, -0.0706, 0.0124, 0.0268, -0.0255, 0.0008, 0.0337, 0.0284, 0.0325, 0.3198, -0.001, 0.0371, -0.0141, -0.0793, 0.0348, 0.036, 0.0102, -0.0064, 0.0238, -0.0248, 0.0067, -0.0318, 0.0126, 0.0122, -0.0303, 0.0005, -0.0022, 0.0124, -0.0053, 0.0417, 0.0235, 0.0035, -0.1706, 0.0167, -0.004, 0.0103, 0.0048, 0.0089, 0.0143, 0.0214, 0.0238, 0.0574, 0.0276, 0.0472, 0.0516, 0.0176, 0.0209, -0.016, 0.0007, 0.0124, 0.0247, 0.0074, -0.1617, 0.0075, 0.0223, -0.0083, -0.0424, -0.0376, 0.007, 0.0252, 0.0597, -0.0174, 0.0457, 0.0551, 0.0386, 0.0599, 0.0508, 0.0221, 0.0182, 0.0125, 0.043, 0.0152, 0.0313, 0.0136, -0.0138, -0.0129, 0.0097, 0.0747, 0.0158, -0.0011, 0.0022, 0.0386, 0.0338, 0.024, 0.0164, 0.0052, 0.0255, 0.0128, 0.0945, 0.01, 0.0277, 0.0039, -0.0383, 0.0363, 0.0745, 0.038, 0.0254, 0.0594, 0.0134, 0.05, 0.0612, 0.0116, 0.0346, -0.0071, 0.0202, 0.0354, 0.0019, 0.0125, 0.0214, 0.0161, 0.0183, 0.0259, 0.0064, -0.0077, 0.0163, 0.0244, -0.0316, -0.0051, -0.027, 0.0546, 0.05, 0.0136, 0.04, 0.0283, 0.0324, -0.0078, -0.0031, 0.0638, -0.0106, -0.0751, 0.0172, 0.0278, 0.0268, 0.0101, 0.0219, -0.0277, -0.0461, 0.0422, 0.0043, 0.0145, 0.0238, 0.0334, 0.0798, 0.0008, 0.0031, 0.0369, 0.0114, 0.04, -0.046, 0.0344, 0.0118, -0.0001, 0.0181, -0.0017, 0.0148, 0.0191, 0.068, -0.0067, 0.0229, 0.0165, -0.0423, 0.0131, 0.0367, 0.0179, -0.0098, 0.024, 0.0153, 0.0079, 0.0759, 0.0086, 0.0284, 0.028, 0.0002, 0.0027, 0.031, 0.0288, 0.0053, 0.0194, -0.0082, 0.0343, 0.0889, 0.0856, -0.07, 0.0412, 0.0199, 0.0046, 0.0129, 0.0194, -0.0037, -0.0173, 0.0104, 0.0105, 0.0464, 0.0141, 0.0245, 0.0559, 0.0245, 0.0461, -0.0101, 0.0064, 0.0095, 0.0176, 0.0881, 0.0558, 0.034, 0.0378, 0.012, -0.0591, 0.013, 0.0233, 0.0852, -0.0761, 0.0428, 0.0218, 0.0531, -0.0087, 0.0285, 0.0178, 0.0997, 0.0204, 0.0082, 0.018, -0.0312, 0.0115, 0.029, -0.0, 0.0229, 0.0447, -0.017, -0.0945, -0.0169, 0.0158, 0.0087, 0.0364, 0.019, 0.0018, -0.085, 0.049, 0.0076, 0.0308, -0.0155, 0.015, 0.0054, 0.0381, 0.032, 0.015, 0.0279, 0.0193, 0.0108, 0.0271, 0.0425, -0.0235, 0.0127, 0.0174, 0.022, 0.068, 0.0296, 0.1242, 0.0273, 0.416, 0.0607, -0.1063, 0.1137, 0.0307, 0.0226, 0.0352, 0.0759, -0.0192, 0.032, 0.0221, 0.0227, -0.0057, 0.0188, -0.0295, 0.0357, -0.004, 0.0136, 0.0298, 0.0096, 0.0171, 0.0107, 0.0229, 0.0107, 0.0313, -0.0053, -0.0372, 0.0302, 0.081, 0.0154, 0.0083, 0.0424, -0.0305, 0.0331, 0.0146, 0.0436, 0.0102, 0.1661, 0.0738, 0.0225, -0.0268, 0.0183, 0.0114, -0.024, -0.0762, 0.0134, -0.0568, -0.0141, 0.0168, 0.0081, -0.1018, -0.0205, 0.0261, -0.0897, 0.032, 0.0059, 0.0992, 0.028, 0.0121, 0.0257, -0.0244, 0.0201, 0.0064, -0.0161, 0.0122, 0.0126, 0.009, 0.0159, 0.0117, 0.0023, -0.0058, -0.017, -0.0276, 0.0011, 0.0305, -0.0007, 0.0132, 0.0158, 0.0179, 0.009, 0.0213, 0.0019, 0.0369, 0.056, -0.0134, 0.0025, 0.0108, -0.0015, 0.0102, -0.0043, 0.0215, 0.0101, 0.0011, 0.0297, 0.0456, 0.0119, 0.0136, 0.0014, 0.0057, 0.0073, -0.0008, 0.0312, 0.0231, 0.0339, -0.027, -0.0012, -0.0204, -0.0953, -0.0346, 0.014, -0.0132, -0.0004, -0.0049, 0.0021, 0.011, 0.0126, -0.0002, 0.0589, -0.0545, 0.0352, 0.0243, 0.053, 0.0039, 0.0161, 0.02, 0.0176, 0.0023, 0.0224, 0.0089, 0.1541, -0.1684, 0.0072, -0.0819, -0.0362, 0.0281, 0.0149, -0.0378, 0.1635, 0.0253, -0.0146, 0.0042, -0.0032, 0.0315, 0.0242, 0.0114, 0.0501, 0.028, 0.0138, -0.0497, -0.0518, 0.0258, 0.0632, 0.056, 0.0147, 0.0018, -0.2092, 0.0297, 0.0261, -0.0034, 0.5872, 0.0001, 0.0006, 0.0288, 0.046, 0.0017, 0.0343, 0.0113, 0.0027, 0.022, 0.0, 0.0329, 0.0286, 0.0019, 0.01, -0.0042, -0.006, 0.0204, 0.0655, 0.0763, 0.0165, -0.0234, 0.0205, 0.0041, -0.0014, -0.1076, 0.0101, 0.0106, 0.0156, -0.068, 0.0513, 0.0003, 0.0212, 0.0126, 0.0565, 0.0198, 0.006, 0.0259, 0.0147, -0.0498, 0.0438, -0.0912, -0.0039, -0.091, 0.005, -0.0101, -0.0505, -0.0321, 0.2287, -0.1058, -0.0428, 0.0162, -0.1157, 0.0226, 0.0328, -0.0035, 0.0254, -0.0106, 0.0139, 0.0245, 0.0194, -0.0193, 0.0215, -0.1043, 0.024, 0.0201, 0.0233, 0.0196, 0.0243, 0.0384, 0.0044, 0.0284, 0.0164, 0.0311, 0.0297, 0.0153, -0.0593, -0.0151, 0.1202, -0.074, 0.0419, -0.0084, -0.1385, 0.0154, 0.0166, -0.0039, 0.0203, 0.0106, -0.0014, -0.0478, 0.0337, -0.0568, 0.0006, 0.0119, 0.0121, 0.0602, 0.017, 0.1599, 0.021, 0.0326, -0.2579, 0.0837, 0.0326, -0.0015, 0.0891, 0.0157, 0.0039, 0.0176, 0.1372, 0.0149, 0.0028, 0.0196, -0.0015, -0.0142, 0.0004, 0.0456, 0.0253, 0.0262, 0.0171, -0.0192, 0.0192, 0.0055, 0.004, -0.0028, 0.0203, -0.8521, -0.0431, 0.0802, 0.0153, -0.0579, 0.0439, -0.3025, 0.0215, 0.1866, 0.0601, 0.0204, -0.0053, 0.0097, 0.0229, 0.0134, -0.0981, 0.0195, -0.0038, -0.1493, 0.0025, 0.0173, 0.0163, 0.005, -0.0565, -0.0276, 0.0509, 0.044, -0.0702, 0.009, 0.0427, 0.0303, 0.0114, -0.0468, -0.0157, 0.0063, 0.0122, -0.0103, 0.0025, -0.0455, 0.0258, 0.0182, 0.0599, 0.0283, 0.0334, -0.1396, 0.0024, 0.0018, 0.0178, 0.0028, 0.0148, 0.0086, -0.0028, -0.0419, 0.0025, 0.0013, -0.0007, 0.026, 0.0135, 0.0243, 0.0204, -0.0803, -0.0014, 0.0222, 0.0191, 0.0159, 0.0152, 0.0336, 0.0104, -0.0083, 0.0091, -0.0453, 0.0236, -0.0287, 0.0173, 0.0223, 0.1117, 0.0553, 0.0366, -0.0732, 0.0345, 0.0113, 0.0268, 0.016, -0.0011, 0.0269, 0.023, 0.0639, 0.0068, -0.1143, 0.0221, -0.0293, 0.0349, 0.0012, 0.0373, 0.0423, -0.0175, -0.0273, 0.0116, 0.0548, -0.0436, 0.0095, 0.0087, -0.0259, -0.0519, 0.0121, 0.0332, 0.0007, 0.0095, 0.0281, 0.0105, 0.0158, 0.011, 0.0567, 0.0487, 0.0111, 0.0082, 0.0215, 0.0401, 0.0281, -0.009, -0.0263, 0.0027, -0.0074, 0.0557, 0.0119, -0.0224, 0.0157, 0.0054, 0.0229, -0.1674, 0.0075, -0.0074, -0.0178, 0.024, -0.0569, 0.0149, 0.0226, 0.0287, 0.0172, 0.0212, 0.0273, 0.0141, 0.0255, 0.014, 0.0211, 0.0021, -0.0971, 0.0262, 0.031, 0.0177, 0.0155, 0.0221, -0.0079, 0.0325, -0.0178, 0.017, 0.0271, 0.0225, -0.0107, -0.0258, 0.0213, 0.0167, 0.0041, 0.0248, -0.0102, -0.0673, -0.0249, 0.0057, 0.0002, 0.0243, 0.0441, 0.0094, -0.0363, 0.0404, 0.0066, 0.047, 0.003, 0.0096, -0.0213, 0.078, 0.025, 0.0628, 0.0205, -0.0348, 0.0208, -0.0064, -0.0203, -0.0123, -0.0062, -0.0752, 0.0003, -0.0854, 0.0176, -0.0355, -0.0047, -0.0126, -0.0053, 0.0173, 0.0284, -0.037, 0.0177, 0.0354, 0.0373, 0.0253, 0.0252, -0.0142, 0.0216, -0.0055, 0.0168, 0.0259, 0.0196, -0.0029, -0.0114, 0.0494, 0.0282, 0.026, -0.0211, -0.007, 0.0223, -0.0187, 0.0081, 0.0319, 0.0428, 0.1361, -0.0195, 0.0163, 0.0391, 0.0045, 0.0221, -0.2446, 0.0046, 0.0122, -0.0117, -0.0062, 0.0522, -0.0571, 0.0143, 0.0222, 0.0237, 0.0464, 0.0535, 0.0602, -0.0544, -0.0329, 0.0025, 0.0116, 0.0103, 0.0062, 0.0559, -0.1716, 0.0111, 0.0029, 0.0305, -0.004, 0.0204, -0.0096, -0.0506, 0.0018, 0.0303, 0.0181, 0.0902, 0.0134, 0.0113, 0.0288, 0.0696, -0.0051, 0.0254, -0.0184, 0.0139, 0.0392, 0.0274, 0.0516, 0.003, 0.0027, 0.0412, 0.0086, 0.0284, 0.0148, 0.031, -0.0088, 0.0269, 0.0192, -0.0004, 0.0515, 0.034, 0.0217, 0.0364, 0.0052, 0.0033, 0.0127, 0.0105, 0.0296, 0.0512, 0.0225, -0.0394, 0.0327, 0.005, 0.0096, 0.018, 0.0136, 0.0553, 0.013, 0.0831, -0.0153, 0.0066, 0.0339, -0.006, 0.0084, 0.0166, -0.109, 0.005, 0.0132, -0.259, 0.006, -0.0465, 0.0126, 0.0195, 0.1213, 0.0138, 0.0168, 0.0341, 0.0212, 0.023, 0.0133, 0.0237, 0.0052, -0.0058, 0.0499, 0.0071, -0.0021, 0.011, 0.0546, -0.0156, -0.0017, 0.0091, 0.0416, 0.0792, 0.0155, 0.0065, -0.2124, -0.0083, -0.0833, 0.0181, 0.028, -0.033, 0.0468, 0.0116, 0.0441, 0.0006, 0.0302, 0.0061, 0.0138, 0.0118, 0.0342, 0.0165, -0.0812, -0.0173, 0.0246, 0.0058, 0.0046, 0.0392, 0.0503, -0.0452, 0.0071, -0.0379, 0.0184, 0.0157, 0.0047, 0.0255, -0.0013, 0.0396, 0.0435, 0.0142, 0.0077, -0.0122, 0.0448, 0.0244, 0.0371, -0.0124, 0.0184, -0.1381, 0.0196, 0.0298, 0.0064, 0.0171, -0.2117, 0.0066, 0.0304, 0.0472, -0.0538, 0.0474, 0.0393, 0.0054, 0.0316, -0.0021, 0.0115, 0.0155, 0.0332, -0.0853, -0.0203, 0.0224, 0.0165, 0.0143, 0.0068, 0.0363, 0.0172, -0.0196, 0.0263, 0.0012, 0.0142, -0.0074, 0.0342, 0.0076, -0.0697, 0.0468, 0.014, 0.0606, 0.0445, 0.0125, -0.0209, 0.0072, 0.0192, 0.0265, -0.0311, 0.0045, 0.0222, 0.0108, 0.016, 0.0028, -0.0764, 0.0337, 0.0013, -0.0561, 0.0115, 0.0139, 0.0151, -0.0273, -0.0017, 0.0251, 0.0216, 0.0152, 0.0283, 0.0094, 0.0358, 0.0529, 0.0039, -0.2043, -0.0443, 0.1015, 0.0031, -0.0559, 0.054, 0.013, 0.0147, -0.0947, 0.0067, 0.1167, 0.0091, 0.0038, 0.0287, 0.0197, 0.0247, 0.0166, 0.0344, 0.0183, 0.0984, 0.0663, -0.0097, -0.0137, -0.0169, 0.0356, -0.0019, 0.0015, 0.0248, -0.0146, 0.0283, 0.022, 0.0233, 0.0106, 0.0086, -0.2353, 0.0274, 0.0119, 0.3081, 0.0177, 0.0188, -0.0185, 0.0035, 0.0243, 0.0632, 0.0134, 0.0267, 0.031, -0.0263, 0.0876, 0.0265, 0.0286, 0.0219, 0.0276, -0.0125, 0.0149, 0.0018, 0.0075, 0.0239, -0.0198, -0.0031, 0.0032, 0.0743, 0.0079, -0.0318, 0.0137, 0.0001, 0.0145, -0.0469, 0.0439, 0.0008, 0.0065, 0.0083, -0.0463, 0.0574, 0.0561, 0.0226, -0.0005, 0.0451, 0.0928, 0.0273, -0.0969, 0.1534, -0.0207, -0.027, 0.0328, 0.0093, 0.0094, 0.012, 0.0128, 0.0266, 0.0136, -0.0038, 0.0887, 0.0368, 0.0419, 0.0155, 0.3664, -0.0409, -0.0253, 0.015, -0.0168, -0.0033, 0.0099, 0.1407, 0.0448, 0.0121, 0.0267, 0.0288, 0.0246, 0.028, -0.0033, 0.0434, 0.023, 0.0054, 0.01, 0.0348, -0.0307, -0.0113, -0.0364, -0.0106, 0.0481, -0.0131, -0.0014, 0.0577, 0.0168, 0.0336, 0.0259, 0.0124, 0.0028, -0.009, -0.0152, -0.0146, 0.0346, -0.0156, 0.0069, -0.0239, -0.0399, 0.0082, -0.0093, 0.0273, 0.013, -0.1354, 0.0323, 0.0248, 0.0477, 0.0326, 0.0044, 0.0183, -0.0036, -0.07, 0.003, -0.0224, -0.0904, 0.0077, -0.0841, -0.0017, 0.0115, 0.0132, 0.0397, -0.0186, -0.0421, 0.0058, -0.0328, -0.0003, 0.0167, 0.0075, 0.0267, -0.0038, -0.0049, 0.0397, 0.1146, 0.0046, 0.0102, 0.0234, 0.0182, 0.0154, 0.0214, 0.029, 0.0213, 0.003, 0.0201, 0.012, 0.0121, 0.0056, 0.0059, 0.0003, 0.0123, -0.0846, -0.0069, -1.8109, 0.0164, 0.0208, 0.0171, 0.0139, 0.0893, 0.0359, 0.0275, 0.0189, 0.1159, 0.0017, 0.03, -0.0004, 0.021, 0.0081, 0.024, 0.0112, -0.0201, 0.0134, 0.0674, -0.0833, 0.0102, -0.0064, 0.0757, 0.0194, -0.0121, 0.0322, 0.0224, 0.0489, -0.0001, 0.0154, 0.019, 0.0048, 0.0116, 0.0073, 0.0176, 0.004, 0.0337, -0.0704, 0.0, 0.0181, 0.0009, 0.0093, 0.1979, 0.3362, 0.0003, 0.0012, 0.0148, 0.0062, 0.0176, 0.0193, 0.0318, 0.072, 0.0097, 0.0117, 0.0343, -0.0122, 0.1133, 0.0127, -0.2007, 0.0179, 0.021, -0.0612, 0.0014, -0.0573, 0.0422, -0.012, 0.0102, 0.0048, 0.0174, 0.0405, 0.1264, 0.0158, -0.0117, -0.0064, 0.0164, -0.1057, -0.0031, 0.0071, 0.0591, -0.0208, 0.064, -0.0092, 0.0146, -0.1025, 0.0049, 0.0056, 0.029, -0.0064, 0.0068, 0.0077, 0.0287, -0.0069, -0.0117, 0.0277, -0.0326, 0.0382, 0.0049, 0.0123, 0.05, -0.0217, 0.0021, 0.0282, -0.011, -0.0102, 0.006, -0.0437, 0.0241, -0.0939, 0.0122, 0.0102, 0.0122, 0.0106, 0.0077, 0.0247, 0.0135, 0.0051, 0.0084, 0.043, -0.0287, 0.0137, -0.0087, -0.0041, 0.0078, 0.0177, 0.1025, -0.3339, 0.0121, -0.1327, -0.0539, 0.013, 0.0289, 0.0263, 0.0291, 0.0133, 0.0174, 0.0682, 0.0658, 0.0231, 0.0078, 0.0303, 0.0621, 0.0053, 0.0383, -0.0655, 0.0099, 0.0112, -0.0366, 0.0234, 0.025, 0.0168, 0.0053, 0.0053, 0.0048, 0.0209, 0.0467, 0.0186, -0.0143, 0.0252, 0.0087, 0.0144, -0.0571, 0.0248, 0.0113, -0.0154, -0.0023, 0.022, -0.0191, -0.0047, 0.0142, -0.0307, 0.0214, 0.0206, 0.0131, -0.0111, 0.0304, 0.0267, 0.0066, 0.0142, 0.0465, 0.0025, -0.1437, -0.0069, 0.0001, -0.0614, 0.0276, 0.0068, 0.0108, 0.0236, 0.0054, 0.0099, 0.0108, 0.0271, 0.0398, 0.0438, -0.0074, -0.0202, -0.005, 0.0418, 0.0137, 0.0242, -0.0082, 0.0098, 0.0187, 0.0387, -0.0828, 0.0127, 0.0816, -0.0174, 0.0045, -0.024, 0.0101, -0.1682, -0.0102, 0.0383, 0.0364, 0.0041, 0.0769, -0.0816, 0.0219, 0.0151, -0.0001, 0.0198, -0.0025, -0.1378, 0.0041, 0.0173, 0.0108, 0.0137, 0.0164, 0.0201, 0.0177, 0.0401, -0.0013, 0.1985, 0.0271, 0.006, 0.0106, 0.0157, 0.0325, -0.0713, 0.0209, -0.013, 0.0036, -0.0003, 0.0124, 0.0091, 0.0201, 0.0159, 0.0272, -0.0009, -0.0005, 0.0066, 0.0093, -0.0415, -0.001, 0.0291, -0.2131, 0.0223, -0.0158, 0.0375, -0.0143, 0.0049, -0.0157, 0.0276, 0.0494, 0.0041, 0.0227, 0.0194, -0.051, 0.0189, 0.0024, 0.0175, -0.006, 0.0196, -0.0473, 0.0101, -0.0, 0.0149, -0.0034, 0.0961, -0.029, -0.0516, -0.0101, -0.022, 0.017, 0.0076, 0.0059, -0.0278, 0.0131, -0.0062, 0.0142, 0.0496, 0.0136, 0.0343, 0.0007, -0.0012, 0.0172, 0.0293, 0.0032, 0.0401, 0.0085, 0.0235, 0.0186, 0.0293, 0.0235, 0.0214, 0.0109, 0.01, -0.0925, -0.0015, 0.0607, 0.0089, 0.0242, 0.0144, 0.0114, -0.0873, 0.0133, 0.1485, 0.0704, 0.0346, 0.0293, 0.0268, 0.0022, 0.0029, -0.0346, -0.0066, 0.0182, 0.0235, 0.3724, -0.0356, 0.0206, -0.0697, 0.0057, 0.0374, 0.0805, 0.0212, 0.0278, 0.0347, 0.0165, 0.0392, 0.0094, 0.007, 0.0085, 0.0147, -0.0214, 0.0245, 0.0485, 0.0402, 0.0247, 0.021, 0.0041, 0.033, 0.0488, 0.0135, 0.0087, 0.0036, 0.0147, 0.0073, 0.0205, 0.0468, 0.0285, 0.0052, -0.0145, 0.015, 0.0214, 0.0076, 0.0435, 0.0432, 0.0329, 0.0137, -0.019, 0.0178, 0.1224, 0.0113, -0.0192, 0.0436, -0.0011, 0.0247, 0.0209, -0.0197, 0.0284, 0.0528, 0.0126, 0.0285, -0.0222, 0.0183, 0.0382, 0.0017, 0.0299, 0.0317, 0.0133, -0.034, 0.0351, 0.0421, 0.006, 0.0305, -0.0929, 0.0634, 0.0441, -0.0528, 0.1665, 0.0502, 0.0323, 0.0281, 0.0648, -0.1175, -0.0069, 0.0382, -0.0274, -0.0706, -0.0249, 0.0532, -0.0359, 0.2408, 0.0145, 0.0271, 0.0323, -0.0292, -0.0176, 0.0153, 0.0101, 0.0072, -0.0945, 0.017, 0.0189, 0.0144, 0.0524, 0.0197, 0.0037, 0.0115, 0.0082, 0.0275, 0.008, 0.0323, 0.0335, 0.0321, 0.0483, -0.0083, 0.0025, -0.0075, -0.055, 0.0468, 0.0187, 0.013, 0.0186, -0.0026, -0.0049, 0.0124, -0.0085, 0.0387, 0.0021, 0.0267, 0.0676, 0.0088, -0.0412, -0.079, -0.004, 0.0242, 0.0417, -0.0472, 0.0418, -0.0607, -0.036, -0.0325, 0.0216, 0.0221, 0.0169, 0.0203, 0.014, 0.0474, 0.0104, 0.0287, 0.0332, 0.0159, 0.016, 0.0258, 0.0199, 0.0413, 0.0231, -0.0121, -0.2327, -0.0105, -0.0018, 0.0007, 0.0587, 0.0208, -0.0021, 0.0144, 0.0593, 0.1062, 0.0015, 0.0224, 0.0115, 0.1047, 0.0255, 0.1347, 0.0214, 0.0436, -0.0119, 0.0038, -0.0302, 0.0003, -0.0005, 0.0161, 0.0041, 0.0668, 0.0441, -0.4632, -0.0196, -0.1152, 0.0021, 0.0112, -0.0065, -0.0012, -0.1643, -0.0278, -0.0072, -0.0148, 0.1473, 0.0481, -0.0029, 0.0461, 0.0188, 0.0382, -0.0717, -0.0095, -0.0008, 0.0045, 0.0256, -0.0002, -0.0003, 0.042, 0.129, 0.0231, 0.0084, 0.0054, 0.0129, -0.0203, 0.0474, -0.0006, 0.0067, 0.0173, 0.1233, -0.0132, 0.0844, 0.0102, 0.0166, 0.0086, 0.0781, 0.0034, 0.0101, 0.0131, 0.0028, 0.0073, -0.0066, 0.0679, 0.0103, 0.02, 0.042, 0.0309, 0.0459, 0.0342, 0.1102, 0.0079, 0.0143, -0.0101, 0.005, 0.1293, 0.232, 0.1367, 0.0122, 0.0165, 0.0039, 0.018, 0.0374, 0.0453, 0.0084, 0.0031, 0.1007, -0.137, -0.0, 0.0086, -0.0364, 0.0616, 0.0113, 0.0265, -0.0193, -0.0109, 0.0458, 0.0134, 0.0451, 0.0183, 0.0261, 0.0153, 0.0242, 0.0091, -0.0131, -0.0644, 0.0092, -0.0189, 0.0374, -0.0376, -0.0752, 0.0594, -0.0161, 0.026, 0.0397, 0.0172, 0.0738, 0.0087, -0.2919, 0.02, 0.012, 0.0327, 0.0258, -0.017, 0.0151, -0.0005, 0.0031, -0.042, 0.0095, -0.1452, 0.0134, -0.0042, 0.0289, 0.0107, -0.0265, 0.0297, -0.0315, -0.004, 0.048, 0.0563, -0.0232, 0.0301, 0.0196, 0.0139, 0.1233, 0.0141, 0.0194, -0.063, 0.0078, 0.0442, 0.0156, 0.0761, 0.0006, 0.041, -0.0039, -0.0039, 0.0103, 0.1163, 0.0242, 0.0687, 0.0092, 0.0156, 0.0121, 0.0388, 0.0537, 0.0134, 0.0108, -0.0168, -0.0094, 0.0388, 0.0762, -0.0006, 0.0198, 0.0228, 0.0435, -0.0143, -0.0171, 0.0273, -0.0427, 0.0228, 0.0904, 0.0211, 0.0111, 0.0136, -0.0053, 0.0159, -0.0801, 0.0237, 0.0657, 0.0356, 0.029, 0.0261, 0.0032, -0.0126, 0.0169, -0.018, 0.0364, 0.0098, 0.0608, 0.0321, 0.0134, 0.0229, 0.0289, -0.003, 0.0974, 0.0384, -0.0022, -0.0702, 0.0383, 0.014, 0.2065, -0.0441, 0.0199, 0.0255, 0.0028, 0.0065, 0.0083, -0.0001, 0.0053, -0.0913, 0.0294, -0.0586, 0.0083, 0.0209, 0.0299, 0.0147, 0.0167, 0.0011, 0.0035, 0.0077, 0.003, 0.0185, -0.0114, -0.0518, 0.0336, 0.0182, -0.1536, 0.0212, 0.0181, 0.0348, 0.0198, 0.0214, 0.0238, 0.015, 0.0216, 0.0173, 0.0341, 0.0405, 0.0069, 0.0143, 0.017, 0.0309, -0.0307, 0.0241, 0.058, -0.0009, 0.0281, 0.0061, 0.0107, 0.0167, 0.0048, 0.0493, 0.024, 0.0526, 0.022, 0.0209, 0.0265, 0.003, -0.0227, 0.0029, -0.0081, 0.024, 0.0036, 0.0114, -0.0121, -0.0173, -0.0055, -0.0263, 0.0055, -0.0313, -0.0087, -0.0143, 0.0577, -0.0379, 0.0077, -0.0091, -0.0141, -0.0022, 0.0376, 0.0363, -0.0094, -0.0065, 0.013, -0.0289, 0.0145, 0.0218, 0.0127, -0.0345, 0.0367, 0.0173, 0.0226, 0.0168, 0.0054, -0.0884, 0.0643, -0.0002, 0.0158, 0.0127, 0.054, 0.0267, 0.0125, 0.0137, 0.0875, 0.0215, 0.0133, 0.0335, 0.0076, 0.0127, -0.0138, 0.0216, 0.0085, 0.0438, 0.0274, 0.0134, 0.0178, 0.0184, 0.0631, 0.0338, 0.0154, 0.0091, 0.0853, 0.0038, 0.0158, 0.0337, 0.0111, 0.0003, 0.0162, -0.119, 0.0002, 0.0138, 0.0138, -0.0515, 0.0241, 0.0029, 0.0328, -0.0317, 0.0203, -0.0199, 0.1018, 0.0085, 0.0054, -0.033, 0.0251, 0.0162, 0.046, 0.0267, 0.0401, 0.0293, 0.0082, 0.0029, 0.0079, -0.0015, 0.0153, -0.0076, 0.0034, -0.0103, 0.0359, 0.156, 0.0288, -0.0348, 0.0019, 0.0087, 0.0112, -0.0044, 0.0169, 0.0068, 0.0214, 0.0209, -0.2291, 0.0032, 0.0262, -0.0836, 0.0167, -0.0158, 0.026, 0.0123, -0.0034, 0.0909, 0.2069, 0.0142, 0.0216, 0.0288, 0.0361, 0.0483, 0.0266, 0.0237, 0.0302, -0.0897, -0.0556, -0.0016, 0.0246, 0.0151, -0.0727, 0.0231, 0.0041, 0.0174, 0.0323, -0.0327, -0.08, 0.0633, 0.0267, 0.0074, 0.0554, 0.0333, 0.0316, 0.0026, 0.0209, 0.0221, 0.0065, 0.0083, 0.0148, 0.0274, 0.0383, 0.0395, 0.0018, 0.0391, 0.0124, -0.0256, 0.0121, 0.009, 0.0074, 0.0226, 0.0431, 0.0109, -0.0104, 0.0089, 0.0157, -0.0543, 0.1628, -0.1574, 0.0299, 0.0665, 0.0035, -0.0048, 0.0065, -0.0068, -0.2203, 0.0523, 0.0047, -0.0056, -0.0013, 0.0004, 0.0261, 0.0088, -0.0423, 0.1388, 0.0342, -0.0193, 0.031, 0.04, -0.2213, 0.0072, 0.0032, 0.0338, 0.0218, -0.0921, 0.012, 0.0313, 0.0292, 0.0387, -0.0218, -0.1389, 0.1523, -0.0265, 0.0214, -0.0437, 0.0106, 0.0803, 0.017, 0.062, -0.0023, 0.008, 0.1102, 0.006, 0.0202, 0.037, 0.0386, 0.0071, 0.0196, 0.0579, 0.0201, 0.009, 0.0354, 0.0002, 0.0075, 0.0839, -0.002, -0.0101, 0.0257, 0.0344, 0.0034, -0.1023, 0.0225, 0.0202, 0.0501, -0.0413, 0.0145, 0.0205, 0.05, 0.014, 0.0548, 0.0037, 0.0139, 0.0103, 0.0032, 0.0058, -0.005, -0.0258, 0.0233, 0.0183, 0.0104, 0.0072, 0.0757, 0.0203, 0.061, 0.0196, -0.1009, 0.0077, -0.0226, 0.0171, -0.0026, -0.0004, -0.0181, 0.0067, -0.0128, 0.0573, -0.0673, 0.0383, 0.0538, 0.0225, -0.0393, 0.0454, -0.0137, -0.0497, 0.0391, -0.0417, 0.0165, 0.0347, 0.0029, -0.0156, -0.1063, 0.0175, 0.0269, 0.0304, 0.1354, 0.0093, 0.0308, 0.0137, -0.0296, 0.007, 0.0105, 0.0296, 0.02, -0.0326, 0.0215, 0.0437, 0.0122, 0.0128, 0.0298, 0.0204, -0.0093, -0.1396, -0.0018, 0.0184, -0.0132, 0.0464, -0.0047, -0.0114, 0.0946, 0.025, 0.0089, 0.0035, -0.0007, 0.0169, 0.0204, 0.0374, 0.002, 0.1148, 0.0398, 0.0155, 0.0205, 0.0108, 0.0159, 0.0247, -0.0076, 0.007, -0.0129, 0.0225, 0.0434, 0.0222, 0.0135, -0.0184, 0.06, 0.0034, 0.0096, 0.0373, 0.0531, 0.0314, 0.0074, 0.0144, 0.0149, 0.0235, -0.7106, 0.0274, 0.0194, 0.0456, 0.0288, 0.0042, -0.0319, 0.0089, 0.0066, 0.0067, 0.0201, 0.0034, -0.0449, 0.0237, 0.012, 0.0062, -0.0166, 0.0161, 0.0407, 0.0051, 0.0584, 0.0364, 0.0126, -0.0054, 0.0134, 0.0134, 0.0315, 0.0291, -0.0458, 0.0069, 0.0967, 0.0107, 0.0231, -0.0023, -0.0377, -0.0023, -0.128, 0.0193, 0.0256, 0.0079, -0.0406, 0.0714, 0.0442, 0.023, -0.0176, -0.0082, 0.0039, 0.0241, -0.0131, 0.015, 0.0246, -0.0174, -0.0018, -0.0075, 0.0038, 0.0451, -0.011, 0.0192, 0.0266, 0.0011, -0.0983, 0.0319, -0.0254, -0.0061, 0.0117, 0.0075, 0.004, -0.0716, -0.0127, -0.0462, -0.0448, 0.014, -0.025, 0.0215, -0.0365, 0.0065, 0.0406, 0.053, 0.0027, -0.0813, -0.0016, 0.0357, 0.0126, 0.0343, 0.0062, 0.0064, -0.0135, -0.015, 0.0283, -0.0198, 0.0517, 0.2213, 0.043, 0.0135, -0.0168, 0.0064, -0.0172, 0.0969, -0.2978, 0.0121, 0.0006, -0.0015, -0.1886, 0.0376, 0.009, 0.0136, 0.0294, -0.0027, -0.001, 0.0011, 0.0288, -0.1158, -0.1079, 0.0264, 0.0328, -0.0033, 0.0247, 0.013, 0.0194, 0.0251, 0.008, 0.0208, 0.1732, 0.0042, -0.0326, 0.0328, 0.0233, -0.1173, -0.0428, 0.0449, 0.023, 0.0315, 0.0154, 0.1185, -0.031, 0.0463, -0.5039, 0.019, -0.0217, 0.013, -0.0171, 0.0061, 0.0199, 0.0235, 0.0196, -0.1444, 0.034, 0.0098, 0.0288, 0.0378, -0.1405, 0.0482, 0.0146, -0.0116, 0.0257, 0.0342, -0.0341, 0.1198, -0.0184, 0.0286, -0.462, 0.021, -0.0052, 0.0383, 0.0011, 0.0175, 0.0073, 0.0234, 0.0259, 0.0524, 0.0272, 0.0206, 0.0153, 0.0194, 0.0275, -0.0288, 0.0097, 0.0003, -0.0115, 0.0614, 0.0148, 0.0153, 0.068, -0.0059, 0.035, 0.0247, 0.0168, 0.0118, 0.005, 0.0163, 0.0233, -0.0998, 0.0062, 0.08, 0.0119, -0.0088, -0.0528, 0.0132, 0.0186, 0.0182, 0.0174, 0.0006, 0.0049, 0.0063, 0.0342, -0.001, 0.0191, 0.0552, 0.0331, 0.0551, -0.0199, -0.0788, 0.0105, 0.0062, 0.008, -0.0683, 0.0348, 0.0105, 0.0079, 0.0069, 0.0151, 0.009, 0.0176, -0.2689, -0.0037, 0.0286, 0.0569, 0.012, 0.0235, 0.0313, 0.0162, 0.0021, 0.0123, 0.0548, -0.1196, -0.0755, 0.0072, -0.022, 0.0157, 0.019, 0.0097, 0.0667, -0.0024, 0.0064, -0.0191, -0.0101, 0.0793, 0.0316, -0.0014, 0.0184, 0.013, 0.0209, 0.0381, 0.0216, 0.0321, 0.0143, 0.016, 0.0163, 0.011, 0.0076, 0.0174, 0.0396, 0.0154, 0.0052, 0.0342, -0.0193, 0.0108, -0.0774, 0.007, 0.0105, 0.0214, 0.0074, 0.0796, 0.0249, 0.0241, -0.291, -0.0065, 0.0087, 0.0221, 0.0415, -0.0007, 0.0092, 0.0234, -0.0049, -0.0247, -0.0146, -0.0041, 0.0133, 0.0575, 0.0397, 0.021, -0.0891, -0.0315, 0.0151, 0.016, 0.0081, 0.0804, 0.0437, 0.0044, 0.0296, -0.0075, 0.0344, 0.0159, 0.0133, 0.0587, 0.0052, 0.0063, 0.0183, 0.0071, 0.0604, 0.0359, -0.0013, -0.001, 0.0159, 0.104, 0.0043, 0.0226, 0.0231, 0.0067, 0.0259, 0.0224, -0.043, 0.0314, 0.0141, -0.0893, -0.0031, 0.0155, 0.003, 0.0071, -0.0138, -0.0087, 0.0496, 0.0043, -0.0123, 0.0127, -0.0272, 0.0245, 0.0432, 0.0145, 0.0207, 0.0321, 0.0122, 0.013, -0.1522, 0.0448, 0.0641, 0.0263, 0.0132, 0.0619, 0.0053, 0.032, 0.0345, 0.0044, 0.0224, -0.0344, 0.0135, 0.0721, 0.0219, 0.0077, 0.0068, 0.0123, 0.0347, -0.0042, -0.0686, -0.008, 0.0201, 0.0035, -0.0173, -0.0565, -0.0327, 0.0339, 0.008, 0.0436, 0.0047, 0.0154, 0.0196, -0.0148, 0.0205, 0.0167, 0.034, 0.002, 0.0276, 0.0033, 0.0129, -0.0256, 0.0768, 0.0098, 0.046, -0.1141, -0.0311, -0.1133, 0.0212, -0.0696, 0.0063, 0.0341, -0.0012, 0.0151, 0.0212, 0.1404, 0.0175, 0.0817, 0.0362, 0.0426, 0.0131, 0.0524, 0.02, 0.0027, 0.023, 0.0317, 0.0316, 0.0067, 0.0217, 0.0548, 0.0016, -0.0054, -0.0027, 0.0019, 0.0325, 0.0186, 0.015, 0.0504, 0.0083, 0.0172, 0.0019, -0.0216, 0.0098, 0.0197, -0.0356, 0.065, -0.0153, 0.0161, -0.1693, 0.0554, 0.0122, 0.0013, 0.0162, 0.1253, 0.0167, 0.0199, 0.0089, -0.0194, -0.0044, 0.0116, 0.0015, -0.001, 0.0291, 0.0306, -0.0049, 0.0095, 0.0245, 0.0203, 0.0016, 0.0306, 0.0063, 0.0158, 0.0457, -0.006, 0.0173, 0.0198, 0.0114, 0.0053, 0.0545, 0.0092, 0.0182, 0.0311, -0.0344, 0.0149, 0.0877, 0.1558, 0.0215, 0.0276, 0.0025, -0.0029, 0.02, 0.0169, -0.134, 0.017, 0.0172, 0.0274, -0.1881, 0.0034, 0.0093, 0.0097, -0.0238, 0.0113, -0.0949, 0.0273, 0.0096, 0.0046, -0.0104, 0.0202, -0.0147, 0.0139, 0.0265, 0.005, 0.0222, 0.028, 0.05, 0.0164, 0.0258, 0.0088, -0.1277, 0.0019, 0.0144, -0.0066, -0.0629, 0.031, 0.0103, 0.0395, 0.0004, 0.0575, 0.0032, 0.0294, 0.0075, 0.0494, -0.0004, 0.017, 0.0186, 0.0014, -0.0028, 0.0208, 0.0371, 0.0229, 0.0432, -0.0035, 0.0135, 0.0145, -0.0022, 0.0245, 0.0131, 0.0097, 0.0268, 0.0458, 0.0483, -0.0478, -0.093, 0.0553, 0.1692, 0.0086, 0.03, 0.0029, 0.0185, 0.0203, 0.0443, 0.0163, 0.0432, 0.0096, 0.04, -0.0284, 0.0129, -0.0002, -0.0007, 0.011, 0.0042, 0.0075, 0.0188, 0.0103, 0.0087, -0.0485, 0.0279, 0.018, 0.0383, 0.0206, 0.1066, 0.0164, 0.2506, 0.0141, 0.1735, 0.0229, 0.018, 0.0348, 0.0855, -0.0258, 0.0099, 0.0078, -0.0405, 0.0073, 0.019, 0.0221, 0.0157, 0.04, 0.0367, -0.0031, 0.0021, 0.002, 0.0285, 0.0017, 0.0396, 0.1072, 0.0396, 0.0211, -0.0183, 0.0309, -0.0079, 0.0153, 0.0397, -0.009, 0.0519, 0.0268, 0.0117, 0.008, 0.0227, 0.0195, 0.0691, 0.0105, 0.0006, 0.0039, 0.0051, 0.0217, 0.0285, 0.0082, -0.0193, 0.0288, 0.0089, 0.0163, 0.0203, -0.0233, 0.0018, 0.0103, 0.1408, -0.0491, 0.0035, 0.029, 0.0397, 0.0045, 0.0457, 0.0317, 0.0347, 0.0101, 0.0079, 0.0242, -0.0262, -0.071, -0.023, 0.0222, -0.0513, -0.0608, -0.0514, 0.1196, -0.0199, 0.0165, 0.0238, 0.026, -0.1653, 0.005, 0.0315, 0.0145, 0.0118, 0.0145, 0.0117, 0.005, -0.0196, -0.047, 0.1035, -0.0069, 0.023, -0.0022, 0.0384, -0.0058, 0.1804, 0.0131, 0.0004, 0.0114, -0.0187, 0.0215, 0.0066, 0.0673, -0.0817, 0.0183, 0.0054, -0.0242, 0.0118, 0.0328, 0.0346, 0.0099, 0.0148, 0.018, 0.0081, 0.0132, 0.0035, 0.0148, -0.0342, -0.0906, 0.0148, -0.011, -0.0222, 0.1403, 0.1156, 0.028, -0.0197, 0.0279, -0.0502, 0.3571, 0.1376, -0.1621, 0.0069, 0.0278, 0.0548, 0.013, 0.0112, 0.0605, 0.0059, 0.0095, -0.0021, 0.0317, -0.0223, 0.0215, 0.022, 0.0026, 0.0311, -0.0658, 0.0535, 0.0118, 0.059, 0.0032, 0.0088, 0.1033, 0.0468, 0.0228, 0.0286, 0.0353, 0.0224, 0.0563, 0.045, 0.024, 0.2654, 0.0251, -0.0018, -0.0049, 0.0087, 0.0324, 0.0065, 0.0464, 0.018, 0.0008, 0.0063, -0.0044, 0.0078, -0.0079, -0.1615, 0.0372, 0.0322, -0.1678, -0.0134, -0.0135, 0.0233, 0.0097, 0.0091, 0.0011, 0.0015, 0.0156, 0.0313, -0.0132, -0.092, 0.0159, -0.0393, 0.0195, 0.0173, 0.007, 0.0163, 0.0587, 0.0182, 0.0248, 0.004, 0.0088, -0.0059, 0.0203, 0.0191, -0.1327, 0.0212, -0.1685, 0.0073, 0.0322, 0.0131, 0.0109, 0.0219, -0.0043, 0.0607, 0.0353, 0.0739, -0.0369, 0.0404, 0.0068, -1.007, 0.0115, 0.0169, -0.0468, 0.0274, 0.0402, -0.0699, 0.0148, 0.0247, 0.0052, -0.0477, -0.0261, 0.0103, 0.0005, -0.034, 0.0239, 0.0203, 0.0085, 0.0239, 0.0165, -0.2426, 0.0157, -0.0494, 0.0124, 0.0067, 0.0291, 0.0297, 0.0373, -0.0243, 0.0123, 0.0164, 0.0241, -0.0446, -0.0051, 0.0171, 0.0184, -0.0153, 0.0718, -0.0247, 0.3007, 0.0324, 0.0151, 0.052, 0.0329, 0.0253, 0.0514, 0.0186, -0.004, -0.0646, 0.049, 0.0191, 0.0135, 0.0172, 0.0177, -0.0019, 0.1036, 0.0159, 0.0266, -0.0002, 0.0217, 0.0102, -0.0129, 0.0131, 0.011, 0.0387, 0.0328, 0.0556, 0.0092, 0.0524, 0.0005, 0.0228, 0.0085, 0.1315, -0.0414, 0.021, -0.0748, -0.0047, 0.0199, 0.0123, 0.0034, 0.0446, 0.0049, -0.0045, -0.0096, 0.0093, 0.0148, -0.0072, 0.0006, 0.0629, -0.0469, 0.0026, 0.0221, 0.0133, -0.0393, 0.0339, 0.0494, -0.0276, 0.023, 0.0488, 0.0194, 0.0345, 0.0226, 0.0336, 0.0041, 0.115, -0.0182, 0.0382, 0.023, 0.0386, 0.0484, 0.0133, 0.017, 0.0443, 0.0229, 0.0174, 0.0197, 0.0137, 0.0043, 0.014, 0.0158, -0.0044, 0.0352, 0.0093, 0.0157, 0.0259, 0.012, 0.0155, 0.0027, 0.0228, -0.0017, 0.0176, 0.0207, 0.0316, 0.0283, -0.0676, 0.081, 0.0464, 0.0295, -0.0022, 0.0371, 0.5219, 0.0286, 0.0126, 0.0336, 0.0218, 0.0388, 0.0266, 0.0876, 0.0222, -0.0556, 0.0018, 0.0136, 0.0228, 0.0813, 0.0045, 0.0472, 0.0009, 0.044, 0.0198, 0.0264, 0.0077, -0.0138, -0.0284, -0.0006, 0.0163, -0.0314, 0.0243, 0.0187, -0.0019, 0.0181, 0.0204, 0.0127, 0.0175, 0.01, 0.0064, 0.0174, 0.0203, 0.0232, 0.0042, 0.043, 0.0033, 0.034, 0.0412, -0.0524, 0.0039, 0.0753, 0.0278, 0.04, 0.0079, -0.2252, 0.008, 0.0297, 0.0169, 0.0545, 0.0269, -0.1359, 0.0174, -0.0107, 0.0295, -0.0711, 0.0422, 0.0166, -0.0086, 0.0136, 0.0313, -0.1125, 0.0142, 0.0269, -0.033, 0.0114, 0.0101, 0.011, 0.0318, -0.0889, 0.0314, -0.0036, 0.0438, 0.0853, 0.1925, 0.0709, 0.0496, -0.2937, -0.1236, -0.0605, 0.0032, -0.7341, 0.0538, -0.0038, -0.0086, -0.0545, 0.0218, 0.0102, 0.034, 0.0185, 0.0397, 0.0342, 0.015, 0.0027, -0.0037, -0.0004, -0.0331, -0.0138, 0.0416, 0.1499, 0.0558, -0.095, 0.0179, 0.0074, -0.0093, -0.0039, 0.0387, 0.027, 0.025, 0.0028, -0.0812, 0.0203, -0.0093, 0.0059, 0.0038, 0.0088, 0.024, 0.0281, -0.014, 0.0445, 0.0171, 0.0022, 0.0689, 0.0369, 0.0497, 0.0026, -0.0081, 0.0189, 0.0242, -0.06, 0.0374, 0.0186, 0.0167, 0.0123, -0.0095, -0.02, 0.0124, 0.004, 0.0243, 0.0187, 0.0079, -0.0697, -0.0643, 0.0654, 0.0237, 0.0248, 0.0352, 0.0325, 0.0232, 0.011, 0.0523, 0.0489, 0.0142, 0.0265, 0.0326, 0.0368, 0.0088, -0.1003, 0.0253, 0.3799, 0.0065, 0.0511, -0.0161, -0.0466, -0.119, 0.0009, 0.0487, 0.0222, 0.0203, -0.0011, 0.0546, 0.0773, -0.0333, -0.0623, -0.139, 0.0162, -0.0717, 0.0209, 0.1057, 0.0177, 0.0283, 0.0224, 0.027, 0.0324, -0.0077, 0.0179, 0.0262, 0.0138, 0.0319, 0.0076, -0.1085, 0.1166, 0.0026, 0.0267, 0.0098, 0.0296, 0.0206, -0.21, 0.0715, 0.0479, 0.0325, 0.0002, 0.0271, -0.018, -0.2422, -0.0417, 0.113, 0.0236, 0.0775, 0.0156, -0.1429, -0.1519, 0.0527, 0.0185, 0.1154, -0.0534, 0.0174, 0.0171, 0.0071, 0.0773, -0.165, -0.0531, -0.0028, 0.0334, 0.0186, 0.0191, 0.0002, 0.0271, 0.019, 0.0681, 0.0643, -0.0068, -0.1497, -0.0129, 0.0068, 0.0098, 0.0075, -0.0832, 0.0128, 0.0298, 0.0149, 0.0277, 0.0093, 0.0087, -0.1156, 0.015, -0.0055, 0.0129, -0.0042, 0.0474, 0.0721, 0.0075, -0.0094, 0.0583, -0.0013, 0.0018, 0.0373, 0.0147, -0.07, 0.1669, 0.027, 0.0187, -0.1969, 0.054, 0.0233, 0.0793, 0.113, 0.0205, 0.0154, 0.019, 0.0224, 0.0254, 0.0256, -0.7178, 0.0011, 0.0175, 0.0028, -0.001, 0.002, 0.0276, 0.0036, 0.0014, 0.0363, 0.0205, 0.0026, 0.015, 0.0046, -0.0495, 0.0058, -0.063, 0.0213, 0.0199, 0.0299, -0.1649, 0.0199, -0.0509, -0.0078, 0.012, -0.009, 0.0259, 0.0079, 0.0247, -0.0163, 0.0079, 0.0299, 0.0143, 0.0474, 0.0291, 0.0114, 0.0048, 0.0178, -0.015, 0.0292, 0.0064, 0.0135, -0.0429, 0.0226, 0.007, 0.0402, -0.0193, 0.0387, -0.2331, 0.007, 0.0086, -0.216, 0.0474, -0.0489, -0.1101, -0.0414, 0.0522, 0.0064, 0.0166, 0.0438, 0.0027, 0.0192, 0.0008, -0.0488, 0.0356, 0.0122, 0.0044, -0.018, 0.0148, 0.0223, 0.0298, 0.0084, -0.0139, 0.0305, 0.0154, -0.1186, -0.0027, -0.019, 0.0024, 0.0223, 0.1103, 0.0291, 0.1069, 0.0207, 0.0159, -0.046, 0.0243, -0.0471, 0.026, 0.0004, -0.0275, -0.0183, 0.0051, -0.0337, 0.0112, 0.0169, 0.0003, 0.0173, 0.0313, 0.0026, 0.0094, 0.0267, 0.0513, 0.0086, 0.0191, 0.0277, 0.0281, -0.0393, -0.0071, 0.0192, 0.0011, 0.0034, 0.0403, 0.0265, 0.0403, 0.0119, 0.0133, 0.0324, 0.0096, 0.0313, 0.0149, 0.0869, 0.0244, 0.0088, -0.0009, -0.0318, 0.0201, 0.0252, -0.1705, -0.0667, -0.0155, -0.049, 0.0029, 0.071, 0.0017, 0.0329, 0.0302, -0.0026, 0.0205, -0.1075, 0.0065, 0.0092, 0.0341, -0.0189, 0.0588, 0.115, -0.1105, 0.0044, 0.0058, 0.0236, -0.0194, 0.006, -0.041, -0.0761, 0.0275, 0.0597, 0.0036, 0.0332, -0.1116, 0.0012, 0.0106, 0.0831, 0.1766, 0.0119, -0.0163, -0.0041, -0.0035, 0.0233, 0.0298, -0.0951, 0.0225, -0.054, -0.0097, -0.0269, -0.0966, -0.0038, -0.016, 0.0204, 0.0411, 0.0297, 0.0197, 0.0107, -0.0222, 0.0164, 0.0198, 0.0034, 0.0306, -0.0461, 0.0071, -0.0472, -0.1758, 0.0148, 0.02, 0.0171, -0.1258, 0.0285, -0.0755, -0.2419, -0.1541, 0.0067, -0.0584, -0.0043, -0.1417, 0.0489, -0.0756, 0.0186, 0.0021, 0.0824, 0.008, -0.0513, 0.0036, 0.0247, 0.0206, 0.0629, -0.0055, 0.0203, 0.0343, 0.0336, 0.0397, 0.0305, 0.0324, 0.0566, 0.065, 0.0114, 0.0045, 0.0666, 0.0155, 0.045, 0.0925, 0.0224, -0.0082, 0.0482, 0.0129, 0.0304, 0.0045, 0.0207, 0.007, -0.006, 0.0196, 0.0019, -0.0072, 0.0163, -0.018, 0.1033, 0.0414, 0.0113, 0.0096, -0.0799, 0.0466, 0.0118, 0.0059, 0.0172, 0.0038, 0.0477, -0.0199, -0.2355, 0.0064, 0.066, 0.0011, -0.0615, 0.0198, 0.0038, 0.0058, 0.0174, 0.0919, 0.0156, 0.0692, 0.0166, 0.008, -0.1681, 0.0588, 0.0211, -0.0391, 0.0263, -0.0462, 0.0406, 0.0376, 0.0464, 0.0329, 0.0633, 0.0329, 0.0094, 0.1502, 0.0227, -0.0526, -0.0204, 0.0602, -0.0509, -0.0192, 0.0113, 0.0592, -0.0382, 0.0007, 0.0149, 0.1825, 0.0123, 0.0494, 0.0035, -0.0396, -0.0242, 0.0052, 0.0226, 0.0137, 0.0205, 0.0265, -0.0109, -0.0043, -0.0822, 0.0069, 0.0185, -0.0276, 0.0019, -0.024, 0.0315, -0.0761, -0.0262, 0.0198, 0.0223, -0.0104, 0.033, -0.0193, -0.0304, 0.0003, -0.0265, 0.0293, 0.0536, 0.0662, -0.0188, 0.053, 0.0514, 0.0086, 0.0061, 0.0613, 0.0159, 0.0375, 0.0176, 0.0268, -0.0348, 0.0083, 0.0159, 0.1339, 0.0321, 0.0064, -0.0092, 0.0212, 0.0097, 0.0257, 0.0188, -0.2774, 0.0047, 0.0364, 0.0261, 0.0185, -0.0199, -0.0021, -0.1103, 0.028, 0.0258, 0.0787, 0.0271, 0.0829, 0.018, 0.0268, 0.011, 0.1966, -0.1139, -0.0041, -0.2743, 0.0254, 0.0139, 0.0239, -0.2328, -0.089, 0.1363, 0.0361, 0.0542, -0.0124, 0.0108, -0.0034, 0.0104, 0.0333, -0.1428, 0.0267, 0.0032, 0.0155, -0.0816, 0.0615, -0.0888, -0.0026, 0.1307, -0.0128, 0.0175, 0.04, 0.0343, 0.0382, -0.029, 0.0055, 0.0426, 0.0101, 0.0306, 0.0577, -0.0254, 0.0104, 0.0325, 0.0227, -0.0082, 0.0088, -0.0195, 0.0198, 0.0045, -0.0555, 0.0007, 0.0799, -0.0512, -0.0374, 0.1071, 0.0113, -0.0132, 0.0332, 0.0034, 0.0554, 0.0066, 0.0291, 0.0761, 0.0721, 0.0452, 0.016, 0.0125, -0.1123, -0.015, 0.0429, 0.0053, 0.0033, -0.0116, -0.0061, 0.0824, 0.0161, 0.0054, 0.0447, -0.0225, 0.0013, 0.0046, -0.0435, -0.0045, 0.0568, 0.0264, 0.016, 0.043, 0.1769, 0.0035, 0.011, -0.0578, 0.0109, 0.012, -0.0192, -0.0956, 0.0043, 0.0986, -0.0604, 0.0051, -0.0686, 0.0148, -0.0057, 0.0299, 0.0753, -0.0651, -0.0266, -0.1173, 0.0307, -0.0204, 0.0079, 0.0057, -0.0099, 0.0214, 0.0143, 0.019, 0.0171, -0.004, -0.0397, -0.0041, 0.0107, 0.0408, -0.012, 0.0203, -0.2503, 0.0038, -0.1363, -0.018, 0.1015, -0.4142, -0.0508, -0.0213, 0.1367, 0.0674, 0.0494, 0.0189, 0.0399, 0.0265, -0.0278, 0.0659, 0.004, 0.0256, 0.0075, 0.0301, 0.034, -0.054, 0.0109, 0.0337, 0.0101, 0.0259, 0.0039, -0.3485, 0.0165, 0.0108, -0.1409, -0.0534, 0.0153, 0.0135, 0.0186, 0.007, 0.0064, 0.0165, -0.0304, -0.0051, 0.008, -0.0114, 0.0314, 0.027, 0.0286, 0.0089, 0.0222, 0.0339, 0.0267, 0.0718, -0.0028, -0.0075, -0.0044, 0.0157, 0.0248, 0.0193, -0.0174, 0.0274, 0.0022, -0.0135, 0.0363, 0.0005, -0.0517, 0.0119, 0.0182, 0.0394, 0.0151, -0.0142, 0.0221, 0.0013, 0.0409, 0.0192, 0.0061, 0.0621, 0.0367, 0.0079, 0.014, 0.0149, 0.0254, 0.0122, 0.0357, -0.0121, 0.0186, 0.0163, 0.066, 0.0178, -0.0249, 0.0082, 0.0168, 0.1104, 0.0003, -0.0232, 0.0318, -0.0054, -0.0395, 0.0232, 0.0247, 0.0311, -0.0122, -0.02, -0.0053, 0.0234, 0.009, 0.0175, 0.0288, 0.0198, 0.0148, 0.0127, 0.006, 0.0297, 0.0512, -0.0595, 0.0133, 0.0246, 0.021, 0.0298, 0.0117, -0.0239, 0.0121, 0.0572, 0.0259, -0.0024, -0.0999, -0.2816, -0.0093, 0.0418, 0.0098, -0.0063, 0.0125, 0.0163, -0.5297, -0.1278, -0.001, -0.0142, 0.0503, 0.02, 0.0004, -0.0207, 0.0245, 0.0115, 0.0049, 0.0096, 0.0234, 0.0138, 0.0741, 0.0004, 0.0193, 0.0183, 0.0251, 0.0539, 0.0149, 0.0194, 0.0322, -0.0752, -0.0684, 0.0334, -0.0003, 0.0137, -0.0485, 0.0343, 0.0106, 0.0124, 0.0289, 0.0189, -0.0006, 0.0746, 0.0105, -0.1302, 0.0131, 0.02, -0.0601, 0.0499, 0.0193, -0.0585, 0.0275, -0.0213, -0.5082, 0.0213, 0.0334, 0.0024, 0.0085, 0.0195, -0.0231, -0.0062, -0.0374, 0.0335, 0.0295, 0.0235, 0.0767, 0.0063, -0.0164, -0.2941, 0.0242, 0.0202, 0.0564, 0.0588, 0.0154, -0.0373, 0.0302, 0.0089, 0.0015, 0.1239, 0.0061, 0.0184, 0.0347, 0.0237, -0.0035, 0.0143, -0.0016, -0.0697, -0.0032, 0.012, 0.0294, -0.0886, 0.0177, -0.0876, 0.0195, 0.0151, -0.2173, 0.0111, -0.0064, 0.016, 0.0249, -0.0396, 0.0241, 0.0484, 0.0285, 0.0265, 0.0219, 0.0191, 0.0066, 0.0069, 0.0467, 0.0267, 0.0201, -0.0103, 0.0232, 0.0264, 0.0159, -0.0832, 0.0409, 0.0059, -0.0315, 0.0047, 0.037, 0.018, -0.2214, -0.0386, -0.0079, 0.024, 0.0107, 0.0482, 0.006, 0.1022, 0.0205, -0.0249, 0.0406, 0.0297, 0.0152, 0.0243, 0.1097, 0.0388, -0.0257, 0.034, 0.0259, 0.012, 0.0147, 0.0122, 0.0164, -0.006, 0.0573, 0.0179, 0.0212, 0.0208, 0.0324, 0.0071, -0.0383, 0.0461, 0.0171, 0.0334, 0.0416, 0.0232, 0.0281, 0.0094, 0.0186, 0.0097, -0.0149, 0.024, 0.0148, 0.011, 0.0163, 0.015, 0.0117, 0.052, 0.0357, 0.0085, 0.0008, -0.0236, 0.0354, 0.0097, 0.0009, -0.112, 0.0324, 0.0447, 0.0045, 0.0126, 0.0757, 0.0238, 0.0037, -0.0188, 0.0136, 0.011, 0.0217, 0.0874, 0.0029, -0.0061, -0.2423, 0.0332, 0.0255, 0.0141, 0.0149, 0.0118, 0.0503, 0.0834, 0.0236, 0.1268, -0.005, 0.0007, -0.0511, 0.286, -0.0759, 0.0062, 0.011, 0.0172, -0.0017, -0.0228, 0.007, 0.0026, -0.0281, 0.0193, 0.0072, -0.0067, 0.363, 0.0729, 0.0067, -0.0624, 0.012, 0.0188, 0.0157, 0.0126, 0.0274, 0.0015, 0.0213, 0.0103, 0.0008, 0.032, 0.0088, 0.0877, 0.0134, -0.0196, 0.0107, 0.1705, 0.0244, 0.0241, 0.0174, -0.0194, 0.0488, 0.0227, -0.0068, 0.0076, 0.0017, 0.0286, 0.0552, -0.0004, 0.0277, 0.0003, 0.007, 0.0151, -0.0016, 0.0258, 0.0017, 0.0344, -0.014, 0.0214, 0.0065, 0.0066, 0.0529, 0.0034, 0.0282, -0.0028, 0.0179, -0.019, 0.016, 0.0659, -0.0079, 0.1101, 0.0195, 0.0128, 0.0546, 0.0212, 0.0081, 0.0557, 0.0058, 0.0248, -0.0823, 0.0201, 0.0013, 0.0328, -0.014, 0.0277, 0.0062, -0.0435, 0.0253, -0.0037, -0.0285, 0.0058, 0.0096, 0.0068, 0.028, -0.0031, 0.0008, 0.0115, 0.0847, 0.0221, 0.0107, 0.2253, 0.088, -0.0556, 0.0242, 0.0116, 0.0176, 0.0158, 0.0268, 0.0179, 0.0275, 0.0419, -0.0248, 0.057, 0.0158, 0.0787, 0.0816, 0.0413, 0.0365, 0.0138, -0.0495, 0.005, 0.0084, 0.0686, 0.009, 0.0225, 0.0217, 0.0239, 0.0101, 0.0653, 0.0081, 0.0274, 0.0116, 0.031, 0.1575, 0.001, 0.0061, 0.0086, 0.0883, 0.0497, 0.0112, -0.0008, -0.0006, 0.0171, -0.0476, 0.0454, -0.0145, 0.0196, -0.0636, 0.0253, -0.0222, -0.1134, -0.0158, 0.1086, 0.0233, -0.1059, 0.0073, -0.0615, 0.0028, -0.0127, 0.0314, 0.0163, 0.029, -0.0154, -0.0138, 0.0142, 0.0181, 0.0234, 0.0757, -0.0192, 0.0257, -0.0004, 0.049, 0.0492, 0.0332, 0.1092, 0.0036, 0.0352, 0.0177, -0.033, 0.0356, 0.0177, 0.0031, 0.0557, 0.0549, 0.0093, 0.0108, 0.0148, 0.0028, 0.1206, 0.0581, -0.0348, -0.0009, 0.0205, 0.0295, 0.0161, -0.0193, 0.0066, -0.0238, -0.0065, 0.0316, 0.0422, 0.0164, -0.0048, -0.0016, 0.0211, 0.053, 0.026, 0.0126, 0.0999, 0.0096, 0.1171, -0.2134, -0.0244, 0.0245, 0.0101, 0.0015, 0.0196, 0.0395, -0.046, 0.0201, 0.0045, 0.0112, -0.0268, 0.0058, 0.0075, 0.0228, 0.0362, 0.0067, 0.0111, 0.0317, -0.043, 0.0669, 0.0066, -0.0028, 0.0231, 0.0076, 0.0207, 0.0371, -0.0591, 0.0314, 0.0216, 0.0032, 0.0564, 0.0176, 0.0161, -0.0054, 0.0142, 0.0316, 0.0277, 0.0205, 0.0398, 0.0171, 0.0192, 0.0131, 0.0119, -0.0273, -0.1375, 0.0346, 0.0186, -0.0014, 0.0177, 0.1258, 0.0205, 0.0004, 0.0084, 0.0026, -0.0154, 0.0067, 0.0063, -0.0036, -0.0014, 0.0149, 0.0246, -0.0237, -0.0034, 0.0276, 0.0059, 0.0105, 0.0138, 0.0023, 0.0486, 0.0081, 0.0225, 0.0146, 0.0125, 0.0305, 0.0346, 0.0103, 0.0058, 0.0239, -0.1402, 0.0358, 0.0024, 0.0162, 0.0272, -0.1195, -0.1937, -0.002, 0.054, 0.0029, 0.0094, 0.0224, 0.0203, 0.0165, 0.0216, 0.0239, -0.063, -0.024, -0.271, 0.0031, 0.0458, -0.0178, 0.011, -0.0206, 0.0826, 0.0019, 0.01, 0.0145, 0.0549, 0.1311, 0.1026, 0.0233, -0.0331, 0.0093, 0.0066, -0.177, -0.0082, 0.0002, 0.0827, 0.0206, 0.0252, 0.019, 0.0122, 0.0492, 0.017, 0.0261, -0.0179, -0.0486, -0.0146, -0.0118, -0.0002, 0.032, 0.0343, 0.1213, 0.0059, -0.0133, -0.0051, 0.0722, -0.0386, 0.0075, 0.0116, 0.0322, 0.0203, 0.0314, 0.0263, 0.0374, 0.068, 0.0177, 0.0198, 0.0094, 0.0296, -0.1311, 0.0288, 0.0169, 0.1123, 0.0266, 0.037, -0.0088, 0.0329, 0.0259, -0.0624, 0.0302, -0.1111, 0.0509, -0.0001, 0.0247, -0.0099, 0.0245, 0.0232, -0.1165, 0.0076, 0.0379, -0.0586, 0.0007, 0.0593, -0.0014, 0.0239, -0.0206, 0.0173, 0.0223, -0.0423, 0.026, 0.0222, 0.0352, 0.015, -0.0187, 0.0179, 0.0183, 0.0215, -0.0133, 0.0137, 0.0213, 0.0145, 0.0192, 0.0096, -0.0513, -0.0151, 0.0143, 0.0686, 0.0205, 0.0448, 0.0354, 0.0163, 0.1273, 0.0193, -0.0019, -0.0294, -0.0244, -0.0418, -0.003, 0.0029, 0.0206, -0.0589, -0.0458, 0.0211, 0.0008, 0.0245, 0.0382, 0.0136, 0.0061, -0.0091, -0.0047, 0.0142, -0.0793, 0.0452, 0.0211, 0.0551, -0.1999, 0.0004, 0.0552, -0.0128, -0.0755, 0.0015, 0.0385, -0.0001, 0.0104, -0.0011, 0.0053, -0.128, 0.009, 0.0591, -0.0421, 0.0006, 0.0018, -0.0033, 0.0011, -0.0073, 0.0243, 0.0307, 0.0155, 0.034, 0.0303, -0.0159, 0.012, 0.048, 0.0344, -0.0039, 0.0306, 0.0203, 0.1186, -0.0201, 0.0141, 0.0061, 0.0284, 0.0036, 0.0236, 0.0096, 0.0142, 0.0165, 0.0143, 0.1192, 0.0334, 0.0411, 0.0112, 0.0194, -0.2422, 0.0401, 0.0118, 0.0124, 0.0499, 0.0841, 0.0409, -0.0009, 0.0147, 0.0123, 0.0564, -0.0805, -0.0101, -0.0144, 0.0131, 0.0119, -0.1593, 0.0324, 0.014, 0.0547, -0.0003, -0.0278, 0.0954, 0.0017, 0.0613, -0.0333, 0.0109, 0.0034, -0.1198, -0.0533, -0.0022, 0.0213, 0.0081, 0.0252, -0.1251, 0.0261, 0.0149, -0.0543, 0.0054, 0.0492, 0.0161, 0.0087, 0.0184, 0.0373, 0.023, -0.143, 0.0072, 0.018, 0.0159, 0.0087, 0.0073, 0.0374, 0.0271, 0.0245, 0.0249, -0.6389, 0.0416, -0.021, 0.0636, 0.0265, 0.022, -0.0029, 0.0332, 0.0173, 0.0201, 0.0346, 0.0087, 0.0198, 0.0561, -0.0054, 0.0412, -0.0178, 0.0837, 0.0173, 0.5613, -0.0909, 0.0617, 0.0209, -0.0161, -0.0133, 0.036, 0.0163, 0.0026, 0.006, 0.003, 0.055, 0.013, 0.0394, 0.0198, 0.0405, -0.0292, 0.0848, 0.0383, 0.0105, 0.0205, -0.0205, -0.0111, -0.0428, 0.0289, 0.0472, 0.017, -0.061, -0.0203, 0.1, 0.0111, 0.0068, -0.0594, 0.1917, 0.0082, -0.0172, 0.3249, 0.0349, 0.0066, 0.0177, 0.0049, 0.1188, 0.0151, 0.021, 0.035, -0.0846, 0.0056, 0.0882, 0.1641, -0.0125, 6.5467, 0.0372, -0.066, -0.2627, 0.0602, 0.0045, -0.5912, 0.0058, 0.0497, 0.0217, 0.0114, 0.022, 0.0187, 0.0242, 0.084, 0.0201, 0.0081, 0.0253, -0.097, 0.0178, -0.1218, 0.0189, 0.0038, -0.0271, 0.0105, -0.1625, 0.0209, 0.023, -0.0119, 0.0075, 0.012, -0.0698, 0.0234, 0.0059, 0.0345, 0.0015, 0.0164, 0.0258, 0.0272, 0.0167, -0.0099, 0.0227, -0.0233, -0.0038, 0.0294, 0.0071, 0.0103, 0.1879, 0.0076, 0.0263, 0.0915, 0.0469, 0.0243, 0.0195, 0.0379, 0.0156, -0.0139, 0.0856, 0.034, -0.0623, 0.0148, 0.0212, 0.0056, 0.0397, 0.0251, 0.0112, 0.0165, 0.0017, 0.0295, 0.0175, 0.0245, 0.0038, 0.0009, 0.0075, 0.0155, 0.0142, 0.003, 0.0206, 0.0244, 0.0469, 0.0336, 0.0058, 0.0067, 0.0091, 0.0415, -0.0071, 0.013, 0.0132, 0.0222, -0.002, 0.004, 0.0063, -0.1032, -0.0123, 0.0081, -0.1029, 0.0522, -0.0153, 0.026, 0.0114, 0.0299, -0.0043, 0.0018, 0.0296, -0.0098, 0.0108, -0.0911, 0.0399, -0.0209, 0.0383, -0.0857, -0.0164, -0.027, 0.0131, -0.0045, 0.014, 0.0225, -0.0149, 0.012, -0.0163, 0.0113, -0.3369, 0.0176, -0.019, 0.0398, 0.0098, -0.0072, 0.0066, 0.0369, 0.034, 0.06, -0.0033, 0.0102, -0.0171, 0.003, -0.0, 0.0163, -0.0047, -0.002, 0.0415, 0.0074, 0.026, 0.0275, 0.0478, 0.0113, -0.2093, 0.0433, -0.0163, 0.0168, 0.0427, 0.0173, 0.0094, 0.0088, 0.0194, 0.0092, 0.007, 0.0973, -0.0337, -0.0637, 0.0605, 0.0148, 0.0438, -0.0037, 0.0689, 0.0097, 0.0175, -0.0333, 0.0097, 0.0169, 0.0186, 0.004, -0.0486, 0.0533, 0.0003, 0.0099, -0.1077, -0.0133, -0.0797, -0.0395, 0.0109, -0.0142, -0.0078, 0.0459, 0.0502, -0.0331, 0.0111, 0.0332, 0.0244, 0.0039, 0.0334, 0.0004, 0.0137, 0.03, 0.0351, -0.0023, 0.0142, 0.042, 0.0229, -0.0865, 0.0109, 0.0037, -0.0535, 0.0185, 0.038, -0.0301, 0.0537, 0.0704, -0.0015, 0.0263, 0.0241, 0.0121, 0.0126, -0.0011, 0.0008, 0.0115, 0.0086, 0.0093, -0.0121, 0.0184, 0.0335, 0.1791, 0.009, -0.0816, -0.0018, 0.0238, 0.0215, 0.0389, 0.0386, 0.2593, 0.0238, 0.0047, 0.0152, -0.3167, -0.01, -0.0045, -0.0226, -0.0561, -0.0457, 0.1335, 0.0191, 0.0773, 0.0476, 0.1184, 0.0187, -0.0229, -0.0306, -0.0196, 0.005, 0.0162, 0.0385, 0.0145, 0.0296, 0.0563, -0.0447, -0.0662, 0.0113, -0.5306, -0.0041, 0.0132, -0.0154, -0.0386, -0.0126, 0.0057, -0.0029, 0.0277, 0.0074, -0.0025, -0.0234, -0.0291, 0.0429, 0.0035, 0.0446, 0.025, 0.0361, 0.012, 0.0565, 0.036, -0.097, -0.0076, 0.0185, 0.0434, 0.0034, -0.013, 0.0021, 0.0074, 0.0073, 0.0019, -0.0315, -0.0508, 0.0318, 0.0133, 0.0181, -0.0013, 0.1246, 0.0104, 0.05, 0.0094, 0.0534, -0.0547, 0.0033, -0.0409, -0.0882, 0.0149, 0.0389, 0.012, -0.007, 0.0154, 0.0306, -0.0785, 0.011, -0.0784, -0.1141, 0.0103, 0.0062, 0.0098, 0.0175, 0.017, -0.0448, 0.011, 0.0144, -0.061, 0.0253, 0.0079, 0.0117, 0.0136, 0.0157, 0.0115, -0.0218, 0.0082, 0.0147, 0.0215, 0.0012, 0.0061, 0.0652, 0.0173, -0.0731, 0.018, 0.0038, -0.0313, 0.0059, 0.013, 0.0207, 0.024, 0.0159, 0.0262, 0.0323, 0.0518, 0.0894, 0.0104, -0.022, 0.0101, 0.0338, 0.0033, 0.0167, 0.0515, 0.011, 0.1079, 0.0295, -0.1791, 0.0225, -0.0086, 0.0072, 0.05, -0.0327, 0.0466, 0.0251, 0.0355, 0.0694, 0.0139, 0.0201, -0.0016, 0.0435, 0.0051, 0.0074, 0.0292, 0.0056, 0.023, 0.0269, -0.0065, 0.0216, 0.0375, -0.0233, 0.0001, 0.0888, -0.0099, 0.0108, 0.0026, 0.0239, -0.0155, 0.0215, 0.0131, 0.01, -0.0159, 0.0261, 0.0346, 0.0251, -0.0325, -0.0129, -0.0133, 0.0467, 0.0294, 0.0445, 0.0136, 0.0299, 0.0012, -0.0135, -0.0685, 0.0234, 0.016, 0.0064, -0.0103, 0.0194, 0.024, 0.1092, -0.0138, -0.0339, 0.0378, 0.002, 0.0215, 0.0, 0.0163, -0.0163, 0.0405, 0.0402, 0.0159, 0.0049, -0.0153, 0.015, 0.0223, 0.0088, 0.0035, 0.0195, 0.0117, 0.0355, 0.0949, 0.0127, 0.0214, -0.0339, -0.0241, 0.0095, 0.0178, 0.0123, 0.0057, -0.3948, 0.0085, 0.0093, 0.0136, -0.0074, 0.0255, -0.0012, 0.0169, 0.0152, -0.0696, 0.0045, -0.0574, -0.2555, 0.0091, 0.0285, 0.0144, 0.0249, 0.0178, 0.0103, -0.002, 0.0066, 0.0299, 0.0237, -0.0013, 0.027, 0.0165, 0.0035, -0.1754, 0.0441, 0.0262, 0.1567, 0.0017, 0.0294, 0.0015, 0.0119, 0.0162, 0.03, -0.1417, 0.0726, 0.0559, 0.0493, 0.0431, -0.1998, 0.0286, -0.0198, 0.0242, -0.0384, 0.0173, 0.0182, -0.0366, 0.0201, 0.0249, 0.0849, 0.16, -0.0482, 0.0737, 0.054, 0.0138, 0.0572, 0.0137, 0.0214, 0.0362, 0.0198, 0.0024, -0.0471, 0.0108, 0.0307, -0.0089, 0.0309, -0.0264, -0.0555, 0.0293, 0.0176, 0.0338, 0.0258, 0.0158, 0.0226, 0.023, -0.1212, 0.0213, 0.0737, 0.0083, 0.0605, 0.0222, 0.0482, 0.0172, -0.2147, 0.0036, -0.0726, 0.0435, 0.0312, 0.0248, 0.015, 0.0268, 0.0083, -0.0511, -0.0168, 0.0424, -0.0195, -0.0064, 0.0232, 0.0062, 0.0583, -0.0106, 0.0216, 0.0052, 0.0186, 0.0123, 0.0292, 0.0161, -0.0412, -0.022, 0.0861, 0.0116, 0.0265, 0.0231, 0.09, 0.0195, -0.0197, -0.1003, 0.0073, 0.0264, 0.0671, 0.0001, 0.0041, 0.0485, 0.0192, 0.0162, 0.0174, -0.0051, -0.0517, 0.0743, 0.0351, 0.0155, 0.0536, 0.046, 0.0379, -0.1068, 0.2037, -0.0045, 0.0462, 0.0024, -0.0259, 0.0422, 0.0964, -0.0499, 0.0467, 0.0307, 0.0088, 0.0107, -0.0184, 0.0291, 0.0315, -0.0119, 0.0292, 0.0313, 0.0061, 0.0057, 0.0522, 0.0264, 0.0194, -0.1184, 0.0123, -0.0166, 0.008, 0.0241, 0.0206, -0.0537, 0.0029, 0.0132, -0.0215, 0.0305, 0.0118, 0.0166, 0.0216, -0.023, 0.0134, 0.0084, 0.0136, 0.0375, -0.0185, -0.0085, 0.044, 0.0197, 0.0261, 0.0061, 0.0252, 0.0141, -0.0394, -0.1152, 0.0018, 0.026, 0.0297, 0.015, 0.0364, 0.0039, 0.0795, 0.0041, 0.0283, 0.0544, -0.0051, -0.0041, -0.0575, 0.0081, 0.0411, 0.056, 0.0341, -0.0474, -0.2034, 0.0125, 0.0127, -0.0579, 0.0128, 0.0127, -0.16, 0.0068, 0.0164, 0.0118, 0.0329, -0.1351, 0.0827, 0.0065, -0.0028, 0.0435, 0.0084, 0.0025, 0.016, 0.0278, 0.0378, -0.069, 0.0073, 0.0312, 0.1671, 0.005, 0.007, 0.0766, 0.1575, 0.1054, -0.0019, 0.0398, 0.0225, -0.0002, 0.0539, -0.0779, 0.0509, 0.0284, 0.0214, -0.0187, 0.0518, 0.0278, -0.018, 0.1999, 0.0201, -0.0225, 0.0148, 0.0404, 0.0308, -0.0145, 0.0193, 0.0776, 0.0142, 0.0136, 0.0304, 0.0162, 0.0271, 0.0253, 0.0354, 0.0057, 0.0251, 0.0225, 0.0284, 0.0386, 0.0264, 0.0125, 0.0084, 0.1873, 0.0174, -0.0136, 0.1228, 0.0054, 0.0499, 0.0499, 0.0068, 0.0092, 0.0018, 0.0094, 0.0212, 0.2345, -0.0011, -0.0212, 0.0501, 0.0067, 0.0514, 0.0282, 0.015, -0.0853, 0.0695, 0.0143, 0.0772, -0.0222, 0.0311, 0.0295, 0.0188, -0.0339, 0.0024, 0.0915, -0.0047, 0.004, 0.0133, 0.0037, 0.0358, 0.0164, 0.0082, 0.0193, -0.0031, -0.1117, -0.0053, 0.0326, 0.0625, -0.2362, 0.0635, 0.0225, -0.0031, 0.0209, 0.0294, 0.0356, 0.0216, 0.0309, -0.0988, -0.0024, 0.0818, 0.1731, 0.0158, 0.0172, 0.0244, 0.0575, 0.0143, -0.0303, 0.0477, -0.0279, -0.0837, 0.0142, -0.0961, 0.0038, 0.0035, 0.009, 0.019, -0.0414, 0.014, 0.0416, -0.064, 0.0435, 0.0054, -0.0957, 0.0217, 0.027, 0.0679, 0.0143, -0.0208, 0.0301, -0.1004, 0.012, -0.3845, -0.1588, 0.2284, -0.1531, 0.1033, -0.0012, 0.0412, 0.0198, 0.0394, 0.0069, -0.0873, 0.0353, 0.0079, 0.0054, 0.0018, 0.0109, 0.0168, -0.062, -0.0028, 0.0281, 0.0195, 0.0178, 0.0209, 0.0238, 0.0079, 0.0089, -0.0014, 0.1294, -0.0114, 0.0251, 0.036, 0.0038, -0.0379, 0.0158, 0.0301, 0.0371, 0.0227, 0.0041, -0.0166, 0.0236, 0.1315, -0.0016, 0.0231, 0.0596, 0.0512, 0.0102, 0.096, -0.0352, -0.0122, 0.0125, -0.3462, 0.0025, -0.0776, 0.0079, 0.0014, 0.0125, 0.0104, 0.0441, 0.0786, 0.0056, 0.0427, 0.0393, 0.0259, 0.0238, 0.0176, -0.0077, 0.1632, 0.0208, 0.0101, 0.4602, -0.0279, 0.0275, -0.0069, -0.0129, 0.0086, 0.0229, 0.0758, 0.0044, -0.0097, 0.0125, 0.0294, 0.0206, 0.0293, 0.0121, 0.0427, -0.0075, 0.0305, 0.0331, -0.0094, 0.0711, -0.0028, 0.0301, -0.0057, 0.0597, 0.0341, 0.0219, 0.0096, 0.0335, 0.0131, 0.0109, 0.0041, -0.0128, 0.0173, 0.0056, 0.0095, 0.0042, 0.1039, 0.0172, 0.0397, 0.0264, 0.0175, 0.0094, 0.032, -0.1004, -0.2737, 0.0163, -0.0327, -0.0012, 0.0234, 0.0402, -0.2678, 0.0184, 0.0254, 0.0241, 0.0013, 0.016, 0.0347, 0.0507, 0.0377, 0.0521, 0.0228, 0.0063, 0.017, 0.024, -0.0638, 0.0103, -0.0186, -0.0147, 0.0161, 0.0427, 0.0495, -0.0636, -0.0515, -0.0035, 0.0009, -0.0449, 0.0145, 0.0278, 0.0039, 0.0927, 0.2549, 0.002, 0.0342, -0.0126, 0.0272, -0.0051, 0.0253, 0.0148, 0.1959, 0.0088, 0.059, 0.0177, 0.0106, -0.1895, 0.0206, 0.0334, -0.095, 0.0057, 0.0304, 0.0047, 0.0237, 0.1333, 0.0323, -0.0679, 0.0098, 0.0446, 0.0022, -0.1695, 0.0271, 0.0805, 0.0218, -0.023, -0.0025, 0.0153, -0.018, 0.0614, -0.0291, 0.005, -0.0591, 0.0279, 0.0055, 0.019, 0.0078, 0.0192, 0.0631, 0.0141, 0.0239, 0.0231, 0.0065, 0.0206, 0.0072, 0.0612, -0.0021, 0.0189, 0.0367, -0.0026, 0.0412, 0.0406, 0.1186, -0.0271, 0.0685, 0.0351, 0.006, 0.0035, -0.0069, 0.0111, -0.013, 0.053, 0.0099, 0.0007, -0.0273, 0.0059, -0.0301, 0.016, 0.0, 0.0101, 0.017, 0.0432, -0.025, 0.0135, -0.0018, 0.0106, 0.0, 0.001, 0.1208, 0.0218, 0.0425, -0.1761, 0.0035, 0.0487, -0.0196, 0.0386, 0.1371, 0.0286, -0.0033, 0.0638, 0.0253, -0.0028, 0.0397, -0.0772, 0.0093, 0.0374, 0.0381, -0.0567, 0.0297, -0.0134, 0.0285, 0.0477, 0.0436, 0.0198, 0.0373, 0.0104, 0.0498, 0.0504, -0.0265, -0.0045, -0.0055, 0.0066, -0.0114, 0.0099, 0.0347, 0.0156, 0.0147, -0.0558, 0.0126, -0.0005, 0.0032, 0.0029, 0.0205, 0.1231, 0.0149, 0.0114, 0.0236, 0.0374, 0.0159, 0.0052, 0.0889, -0.185, -0.0402, -0.0026, -0.0381, 0.0339, 0.0162, 0.0187, -0.0297, 0.018, 0.0208, 0.0337, -0.0093, -0.0157, -0.0646, 0.0074, 0.0095, 0.0111, -0.2624, 0.0007, 0.0284, -0.1693, 0.1376, 0.1511, 0.0316, 0.0292, 0.0222, -0.0089, -0.0017, 0.011, 0.0218, -0.0698, 0.0508, 0.0155, 0.0237, 0.007, 0.0248, 0.0451, -0.1468, 0.0387, -0.0777, 0.0454, 0.0163, -0.0119, 0.0085, -0.0296, 0.0151, 0.0272, 0.0212, 0.0208, 0.0456, 0.0023, 0.0017, 0.0652, 0.0261, 0.0094, -0.0322, -0.0068, 0.0178, -0.1016, 0.0479, 0.0064, -0.004, 0.0507, 0.0794, -0.0204, -0.002, 0.0236, -0.0051, 0.0764, 0.0024, 0.0445, -0.0035, 0.0307, -0.1154, 0.0016, -0.0809, -0.0853, 0.0251, 0.0277, 0.0084, 0.0586, 0.0163, 0.044, 0.115, 0.0105, 0.012, -0.009, -0.184, -0.0024, 0.0288, 0.0468, 0.0162, 0.0119, 0.1539, -0.282, 0.0119, 0.0062, -0.035, -0.0025, 0.02, -0.0392, -0.01, -0.0058, 0.0197, 0.0395, 0.0224, 0.0253, 0.029, 0.0084, 0.0126, 0.0492, 0.0111, -0.0015, 0.0119, 0.0111, 0.0506, 0.0132, 0.0047, -0.0944, 0.0029, 0.0275, 0.0085, 0.0079, 0.027, -0.0123, 0.0207, 0.0105, 0.0153, 0.0021, 0.0083, 0.0576, -0.0816, 0.0922, 0.0139, 0.0083, 0.0053, 0.0073, 0.008, -0.2974, -1.757, 0.0187, -0.0825, 0.0309, -0.0414, -0.0185, 0.01, -0.0213, 0.0122, 0.0129, 0.0221, -0.0014, 0.0187, 0.0782, 0.0006, 0.0063, -0.0027, 0.008, -0.0364, -0.0055, -0.0052, 0.0598, 0.0058, -0.0303, 0.0573, 0.0222, 0.0155, 0.0979, -0.0051, 0.0065, 0.0304, 0.0094, -0.0046, -0.0213, -0.0087, 0.0127, 0.0244, -0.0146, 0.0017, -0.035, -0.0233, 0.0063, 0.0076, -0.2104, -0.0148, 0.0132, 0.0077, -0.0023, -0.0408, 0.0, 0.0069, 0.0963, 0.0224, 0.0594, 0.0124, 0.0155, -0.0015, -0.0703, 0.0511, 0.0272, 0.0015, 0.0021, 0.0048, 0.0069, 0.0247, 0.0327, -0.005, -0.0076, 0.0184, -0.0087, -0.0122, 0.0344, -0.0075, -0.0109, -0.0035, 0.0318, 0.0235, 0.0324, 0.0082, 0.0138, 0.0226, 0.0568, 0.0095, 0.0645, 0.0042, 0.0059, 0.0544, 0.0226, 0.0143, 0.0235, -0.1547, 0.0174, -0.0159, 0.0094, -0.0517, 0.0267, 0.0095, -0.0048, -0.0867, 0.0224, 0.0516, 0.0028, -0.0055, -0.0059, -0.0039, 0.0272, 0.0183, 0.0362, 0.0039, 0.0039, 0.0184, -0.0643, 0.0327, 0.0081, 0.0205, 0.0247, 0.0407, 0.1138, 0.0094, -0.0333, 0.0227, 0.0155, 0.0011, -0.0637, 0.0194, 0.0034, 0.0126, -0.0421, 0.0059, 0.0164, 0.0276, 0.0181, 0.0176, 0.0123, 0.0062, 0.0028, 0.0028, 0.0037, 0.0956, 0.015, 0.0117, 0.0243, -0.0326, 0.0559, 0.0819, 0.0319, 0.0008, 0.0304, 0.0212, 0.0163, 0.0173, 0.021, 0.0302, 0.0158, 0.0156, 0.0182, 0.0199, -0.024, 0.021, 0.0323, -0.0, -0.0115, 0.0023, 0.0176, 0.0087, 0.0008, 0.0318, 0.0289, 0.0237, 0.0006, 0.0032, -0.0013, -0.0056, 0.0179, 0.024, 0.0037, 0.012, 0.0145, 0.0134, -0.001, -0.011, 0.0153, 0.0143, 0.0343, 0.0143, 0.0244, 0.0074, 0.0115, 0.024, 0.1677, 0.017, 0.0151, 0.0607, 0.0021, -0.0058, 0.0206, -0.0056, 0.0372, 0.0301, 0.0017, -0.0263, 0.0127, -0.0029, 0.0019, -0.0294, 0.0398, -0.0578, 0.0202, 0.0552, 0.0158, 0.0354, 0.0087, 0.007, 0.0452, 0.0775, 0.0271, -0.0043, -0.0102, 0.048, -0.0225, -0.034, 0.0079, 0.0225, 0.0944, 0.0249, 0.0139, 0.0122, -0.0056, 0.0092, 0.0564, 0.0405, 0.0268, 0.0034, 0.0417, 0.0227, -0.3359, 0.0435, 0.0514, 0.0189, 0.0457, 0.0002, -0.0009, 0.0267, 0.0084, 0.0155, -0.0008, 0.041, 0.0151, 0.0587, -0.0271, 0.0219, 0.0302, 0.1747, -0.0506, 0.0198, 0.0075, 0.0205, 0.0144, 0.0136, 0.0276, 0.0587, 0.0148, 0.0173, 0.0709, -0.3186, 0.0326, 0.0256, 0.0578, -0.0053, 0.0146, -0.0468, 0.0235, 0.0268, 0.0661, -0.0212, 0.0465, 0.0385, 0.0327, 0.0202, 0.0144, 0.0094, -0.0728, 0.0098, 0.017, 0.0027, 0.012, 0.0177, 0.0163, 0.0302, 0.0324, -0.0023, 0.0072, 0.0397, -0.0038, 0.0145, 0.0103, -0.159, 0.0406, 0.0497, 0.0181, -0.0054, 0.0949, 0.0157, 0.0849, 0.0083, 0.0118, 0.0275, -0.1224, 0.0123, 0.0156, 0.0156, 0.0247, -0.0165, 0.0424, 0.0412, 0.0219, -0.0022, 0.0147, 0.0093, 0.0136, 0.0134, -0.0321, 0.0086, 0.0094, 0.0163, 0.0389, -0.0054, 0.0566, 0.0375, 0.0171, 0.0191, 0.0248, 0.0294, 0.0023, 0.0218, -0.1384, 0.062, -0.2132, 0.0224, -0.0305, 0.0497, 0.0313, 0.0336, 0.0098, 0.0151, 0.0333, 0.0384, 0.0461, 0.0155, -0.2431, -0.0046, -0.092, 0.0219, 0.0092, 0.0311, 0.0177, -0.0057, -0.0012, 0.0281, 0.0245, 0.0293, 0.0001, 0.0131, 0.0193, 0.0118, -0.0969, 0.0373, 0.0003, -0.0351, 0.0015, 0.0134, -0.0468, 0.0435, -0.0044, 0.0144, -0.0056, 0.0306, 0.0167, 0.0586, 0.1336, 0.0503, 0.02, 0.0523, 0.0325, 0.0059, 0.0076, 0.01, 0.028, 0.0106, 0.019, 0.0189, 0.0142, 0.0095, -0.0041, 0.0536, 0.0204, 0.0181, 0.0278, 0.0034, 0.0355, 0.0366, 0.0421, 0.0128, 0.0318, -0.0253, 0.0487, -0.0162, -0.022, 0.0188, -0.0641, 0.0235, 0.0401, 0.015, 0.0712, -0.0414, 0.042, 0.0469, 0.106, 0.0111, 0.0193, 0.0014, -0.0044, 0.0503, 0.0234, 0.0508, 0.0188, 0.0131, 0.0142, 0.1264, 0.0192, 0.1847, 0.0082, 0.0735, 0.0059, 0.0105, 0.016, 0.0218, 0.0314, 0.0183, 0.0967, 0.0293, -0.0051, 0.0009, 0.0287, 0.047, 0.0052, 0.0229, 0.0295, 0.0221, 0.0163, 0.0035, 0.0378, 0.0371, 0.0557, 0.0081, 0.1126, 0.0051, 0.0078, 0.0178, 0.0347, 0.0009, 0.0292, -0.0233, -0.0021, 0.0314, 0.0145, 0.0377, 0.02, 0.0005, 0.0337, 0.0184, 0.0361, 0.0048, 0.0065, 0.0699, 0.0365, 0.0127, -0.0091, -0.0254, -0.0005, 0.0209, -0.0048, -0.1661, -0.0709, 0.0309, 0.0301, 0.0054, 0.002, 0.1537, 0.0373, 0.0328, -0.0399, 0.1595, 0.0275, -0.0089, 0.0178, -0.0539, 0.0377, 0.019, 0.0175, 0.0242, 0.0615, 0.006, 0.0218, -0.0269, 0.0237, 0.0322, -0.0925, 0.038, 0.0252, 0.0067, 0.0815, 0.0638, -0.1856, 0.0138, 0.0334, -0.0028, 0.014, 0.0217, 0.043, 0.0369, 0.0481, 0.0137, 0.0292, 0.0384, -0.0209, 0.0523, -0.001, 0.0056, 0.0233, 0.0115, 0.0179, 0.0023, 0.0, -3.1408, 0.0115, 0.0642, 0.0405, 0.0289, 0.0123, 0.0283, 0.0379, 0.0194, 0.004, 0.0192, 0.0096, -0.0117, 0.0161, 0.0525, 0.0071, -0.0313, -0.0097, 0.0228, 0.0066, 0.0082, 0.0112, -0.0035, 0.0273, 0.0127, 0.0663, 0.0168, 0.0651, 0.4214, -0.1063, 0.0223, 0.0337, 0.0112, 0.0879, -0.0274, -0.0846, 0.0105, 0.0462, 0.0885, 0.0067, 0.0087, -0.0061, 0.0837, 0.0191, 0.0112, 0.0601, 0.0131, -0.1093, 0.0205, 0.016, 0.0091, 0.0048, 0.0072, 0.0074, 0.0384, 0.0164, -0.0056, -0.0629, 0.06, 0.1433, 0.0269, 0.0179, -0.0581, 0.0475, 0.0183, 0.0084, -0.0026, 0.0039, 0.0054, 0.0193, -0.03, 0.0136, 0.1348, 0.0038, 0.0243, 0.0104, -0.0137, -0.0589, -0.0608, -0.1104, -0.0565, 0.0115, 0.0574, 0.0082, 0.0367, 0.0038, 0.0059, 0.0006, -0.014, -0.0045, 0.0474, 0.036, 0.0328, -0.049, 0.0085, 0.0214, 0.019, 0.0232, 0.0044, 0.0341, 0.0174, 0.0166, 0.0018, 0.0428, -0.1317, 0.0144, 0.0014, -0.1048, 0.0193, 0.0196, 0.0658, 0.0202, 0.0958, 0.073, 0.0158, 0.0476, 0.0062, -0.0094, 0.0192, 0.0165, 0.012, 0.007, 0.0095, -0.0499, 0.0346, 0.0359, 0.0636, 0.0701, -0.0246, -0.6131, 0.0102, 0.0277, 0.0034, 0.0299, 0.0237, 0.0224, 0.0235, -0.0257, 0.015, 0.0029, 0.0003, 0.0075, 0.0363, 0.0136, -0.0235, 0.0077, 0.0043, -0.0033, 0.0086, 0.033, 0.0023, 0.0234, -0.0605, 0.0089, -0.0045, 0.0793, -0.0298, 0.025, 0.0039, 0.0115, 0.0011, 0.0635, 0.01, 0.0285, 0.0461, 0.0315, 0.0062, 0.0477, -0.0189, -0.1487, 0.0201, 0.0106, 0.0559, 0.0155, 0.0669, -0.0847, 0.0577, 0.0156, 0.0247, 0.005, 0.0025, 0.0269, 0.1434, -0.0157, 0.0243, 0.0084, 0.0249, -0.1407, 0.0176, -0.2091, -0.0166, -0.0789, 0.0506, 0.0216, 0.0108, 0.0394, 0.0023, 0.007, 0.0167, 0.0063, 0.103, 0.0761, 0.0166, 0.0826, 0.0162, 0.0759, -0.0014, 0.0278, 0.1415, -0.0129, 0.0239, 0.028, 0.0112, -0.0373, 0.0067, 0.0521, -0.0346, -0.0574, -0.0517, 0.0092, 0.0302, 0.0282, 0.0251, 0.0763, 0.0128, 0.0187, 0.0066, 0.0109, 0.0126, -0.0123, -0.0089, 0.0681, 0.1428, -0.0849, 0.0944, -0.0032, 0.004, 0.0121, 0.0136, 0.0137, 0.0104, 0.0118, 0.0452, -0.0356, 0.0073, 0.039, -0.0139, -0.0099, 0.0024, -0.0039, 0.0215, -0.0217, -0.001, 0.0535, 0.0282, 0.032, 0.0123, 0.016, 0.0246, 0.0121, -0.5168, -0.1026, 0.0064, 0.0276, -0.0012, 0.0131, 0.0242, 0.0359, 0.0744, 0.0237, 0.0363, 0.0173, 0.0029, 0.0169, 0.0117, 0.012, -0.0282, 0.0122, 0.0203, 0.0155, 0.0119, 0.0202, 0.0268, 0.0048, 0.0364, 0.0367, 0.0327, -0.0045, 0.0198, 0.0421, 0.0101, 0.0174, 0.0336, 0.0033, 0.0026, 0.0055, 0.0133, 0.0065, 0.0132, -0.0414, 0.1182, 0.02, 0.0188, 0.0062, -0.0161, -0.0706, -0.0058, 0.0373, 0.0827, 0.0177, 0.0238, 0.0709, 0.0038, 0.0423, 0.0169, -0.0036, 0.0367, 0.0353, 0.0386, 0.0067, 0.0691, 0.0425, -0.0094, 0.0056, -0.0819, 0.0135, 0.0122, -0.0442, 0.0478, 0.0629, 0.0184, 0.0267, 0.0714, 0.013, 0.0223, 0.0462, 0.0565, 0.0344, -0.0272, -0.0962, -0.1034, 0.0089, 0.0289, 0.0144, 0.0123, 0.0169, 0.0102, -0.0345, 0.0029, 0.0089, 0.0996, 0.164, -0.1285, 0.0006, 0.0019, 0.0106, 0.0275, -0.0, 0.0075, 0.0057, -0.0283, 0.0309, -0.0218, 0.0286, 0.0138, 0.02, 0.0147, 0.0237, -0.0015, 0.0094, 0.0504, 0.0199, 0.0206, -0.0536, 0.0229, 0.021, 0.0077, -0.0044, 0.0103, 0.0062, 0.0418, 0.0216, 0.0056, -0.0278, -0.0177, 0.0285, -0.041, 0.012, -0.1472, 0.0091, 0.0409, 0.0023, 0.0006, 0.0323, 0.0173, 0.0652, 0.0468, 0.0222, -0.0085, 0.1388, 0.027, 0.0114, 0.004, 0.0525, 0.0518, 0.222, 0.0002, 0.0133, 0.0335, -0.094, 0.0884, 0.0145, 0.0053, 0.0108, -0.082, -0.0496, -0.0334, 0.0114, 0.0128, -0.3005, 0.0207, 0.1065, 0.0241, 0.0029, 0.0291, 0.0155, -0.0031, 0.0183, -0.0786, -0.1678, 0.0014, 0.0169, 0.0062, 0.0003, 0.0132, 0.0128, 0.0386, -0.0014, 0.0084, 0.0436, 0.0162, 0.0506, 0.042, 0.0238, 0.0235, 0.0089, 0.0032, 0.0434, -0.0103, -0.0123, 0.0585, -0.0481, 0.0387, 0.0118, 0.0339, 0.0109, 0.0009, -0.0536, -0.0293, -0.024, 0.2016, -0.0235, 0.0161, 0.0452, 0.032, 0.0165, -0.0172, 0.035, -0.0166, 0.0273, 0.0021, 0.0167, 0.0172, 0.0001, 0.0194, -0.0109, 0.0144, 0.0129, 0.0364, 0.025, -0.1139, 0.0052, -0.0591, 0.0068, 0.0442, 0.0058, 0.015, 0.0131, 0.0119, -0.0134, 0.0356, -0.0021, 0.0187, 0.0165, 0.0061, 0.4097, 0.0179, 0.0012, 0.0041, 0.0189, 0.0586, 0.2629, -0.0072, 0.0132, -0.0024, -0.0894, 0.0085, 0.0256, 0.0224, 0.0259, 0.0003, 0.0261, -0.1155, -0.0213, 0.0277, 0.0243, 0.0136, 0.0169, 0.01, -0.0178, -0.0061, -0.246, 0.0448, -0.0079, -0.0186, 0.0282, -0.0483, -0.0066, 0.0149, -0.0117, 0.0185, -0.0603, 0.0398, -0.0256, 0.1451, 0.0163, 0.0049, 0.0165, 0.0156, 0.0165, 0.0246, 0.022, 0.0772, 0.0085, 0.0172, 0.0749, 0.014, 0.032, -0.0478, 0.0696, -0.0001, 0.0029, 0.0067, 0.0001, -0.0866, 0.0222, 0.0105, 0.0125, 0.017, -0.0848, -0.2016, 0.0387, 0.0364, 0.0268, 0.0211, 0.008, 0.0625, 0.0684, -0.1655, 0.0086, 0.0293, 0.0258, 0.0239, 0.0289, 0.0371, -0.0254, 0.0242, -0.0542, -0.2277, -0.028, 0.0041, -0.0141, 0.0368, -0.0024, 0.0136, -0.0194, 0.0171, 0.0095, 0.0158, 0.0284, 0.0203, -0.003, 0.0079, 0.054, -0.0207, 0.0497, 0.0519, -0.0435, 0.0459, 0.0078, 0.0019, 0.018, 0.0061, 0.0158, 0.001, 0.0047, 0.067, 0.0047, 0.0296, -0.0432, -0.0199, -0.0164, 0.016, 0.0499, 0.0115, 0.0154, 0.0444, -0.0184, 0.0038, 0.0235, 0.0049, 0.0153, 0.0037, 0.0096, 0.0028, -0.0017, 0.0611, -0.0042, 0.039, 0.0102, -0.0032, 0.0004, 0.0681, 0.0296, 0.0091, -0.0007, -0.0061, 0.0089, 0.0499, 0.028, 0.0177, -0.0015, 0.0483, 0.009, -0.168, -0.0171, 0.0415, -0.0236, 0.0232, 0.0074, 0.0094, 0.0081, -0.0079, 0.0031, 0.0302, 0.0567, -0.0199, -0.0802, 0.0338, 0.0174, 0.0279, 0.042, -0.0717, 0.0112, 0.0081, -0.0679, 0.0247, 0.0168, -0.0804, 0.031, 0.0147, 0.016, 0.0231, 0.0283, 0.0066, 0.0227, 0.0053, 0.0375, 0.0422, 0.0158, -0.0187, 0.1039, 0.0755, -0.0117, 0.0965, 0.0106, 0.0214, -0.011, -0.0285, 0.0512, 0.0007, 0.0072, -0.0013, 0.0059, 0.0039, 0.0116, 0.0586, -0.1284, 0.0064, 0.0034, 0.0057, -0.0187, -0.0805, 0.0059, 0.0117, 0.0118, -0.0766, 0.0297, -0.0221, 0.034, -0.1701, -0.0412, -0.0136, 0.0566, 0.0074, 0.0805, 0.0126, 0.0482, 0.0532, 0.0227, 0.0526, 0.019, 0.0066, -0.0099, 0.0028, 0.0068, -0.0384, 0.0039, 0.0098, 0.0221, -0.0018, 0.0667, 0.0616, -0.1088, 0.0123, 0.0158, 0.0644, 0.0083, 0.0638, 0.0144, 0.0169, 0.0031, 0.0153, 0.0187, -0.0288, 0.0283, 0.0263, 0.0588, 0.0262, -0.0086, 0.0285, 0.0065, 0.0271, -0.0484, -0.0073, 0.0217, -0.0467, 0.0306, 0.0312, 0.0599, 0.0384, 0.0595, 0.008, 0.054, 0.0299, -0.0119, 0.0141, 0.0116, -0.0174, 0.0225, 0.0035, 0.0168, -0.0178, -0.0063, 0.0309, 0.0232, 0.0031, -0.0682, 0.0056, 0.0347, 0.0035, 0.0123, 0.0161, 0.0006, -0.0009, 0.0083, -0.043, 0.0098, 0.0297, -0.003, 0.0039, 0.0135, 0.003, 0.0313, 0.1981, 0.0498, 0.0046, 0.0087, 0.038, 0.0143, -0.0139, 0.016, 0.0017, 0.0082, 0.0419, 0.0623, 0.1299, 0.0147, 0.0013, 0.0052, 0.0265, 0.028, 0.0982, 0.013, -0.0056, 0.0669, 0.0259, -0.0178, -0.0096, 0.0106, 0.0046, -0.0559, 0.0086, 0.1679, 0.0068, 0.0064, 0.0102, -0.0575, -0.015, 0.0262, 0.0249, -0.091, -0.1531, 0.0387, 0.0134, 0.0369, 0.0406, 0.0111, -0.0077, 0.0039, -0.0027, -0.0094, 0.0144, 0.0324, -0.0867, 0.0165, 0.0155, 0.0102, 0.0235, 0.0135, -0.0002, 0.0444, 0.0332, 0.0206, 0.0199, 0.0327, 0.0383, 0.0152, 0.0448, -0.0316, -0.032, -0.0041, 0.0047, 0.0447, 0.1262, 0.0277, -0.0321, -0.0095, 0.0604, 0.0167, 0.0152, 0.0155, -0.0204, 0.0116, 0.011, -0.0218, -0.0069, -0.0017, 0.007, 0.0367, 0.0088, 0.0212, 0.0122, 0.0246, 0.004, -0.0134, 0.0188, 0.1009, 0.0196, 0.0355, 0.0044, 0.0154, 0.0143, 0.0265, 0.0226, 0.0269, 0.035, 0.0083, -0.0386, -0.0337, -0.0094, 0.0039, -0.103, 0.0007, 0.0229, -0.3436, 0.0325, 0.0208, 0.036, 0.8996, 0.0018, 0.0242, 0.0365, 0.0588, 0.0228, -0.1947, -0.0875, -0.0179, 0.0386, 0.0031, 0.065, 0.0197, 0.035, 0.0324, 0.05, 0.001, -0.0004, 0.0237, 0.0175, 0.0065, -0.0136, 0.0012, -0.0395, 0.0086, -0.1648, 0.0007, 0.0343, 0.0113, 0.0308, -0.2059, 0.0143, 0.0124, 0.0067, -0.0092, -0.0122, 0.0542, 0.0147, 0.0192, 0.038, 0.0173, 0.0165, 0.0216, 0.0452, 0.0281, 0.0015, 0.0163, 0.0234, 0.0245, 0.0077, 0.0317, 0.0092, -0.0306, 0.0081, 0.0311, 0.0374, -0.0148, -0.06, 0.0232, 0.0454, 0.0143, 0.0337, -0.0622, 0.0015, 0.0136, 0.0304, 0.0134, -0.068, -0.1844, 0.0076, 0.0615, -0.1586, 0.0561, 0.0085, 0.0061, 0.0281, 0.0034, 0.0583, 0.0329, -0.025, 0.0056, 0.0147, 0.0251, 0.028, 0.1792, 0.0309, 0.0028, 0.0193, 0.0921, 0.0279, 0.0333, 0.039, 0.0233, 0.0354, 0.0233, 0.0201, 0.023, 0.0273, 0.0065, -0.0116, 0.0335, 0.0066, 0.0361, 0.0009, 0.0391, -0.0106, -0.0036, 0.0145, 0.0187, 0.008, 0.031, 0.0038, 0.0014, -0.0066, 0.0138, -0.0792, 0.0139, 0.0152, 0.0055, 0.0335, 0.0469, 0.031, 0.0182, 0.0103, 0.0304, 0.0349, 0.0185, 0.0272, 0.0303, 0.1899, 0.0009, -0.0204, 0.006, 0.0223, -0.0046, 0.1642, 0.1843, -0.0165, -0.0313, -0.0033, -0.1152, -0.1599, 0.0227, 0.0235, 0.0163, 0.0119, 0.0201, 0.0232, 0.0219, 0.0042, 0.0465, 0.0112, 0.0151, 0.0211, 0.1041, 0.0144, -0.1409, 0.0039, 0.0107, 0.0269, -0.0278, 0.0314, 0.0393, 0.0216, -0.2027, 0.0142, 0.0187, 0.0103, 0.0227, 0.0083, -0.0239, -0.0221, 0.0465, 0.0358, 0.0246, 0.0176, 0.0042, -0.0249, -0.3042, -0.0007, 0.0716, 0.0096, -0.0002, 0.0145, 0.0382, -0.0054, 0.1849, 0.1268, 0.0251, -0.1866, -0.0237, 0.0126, 0.016, 0.0125, 0.0124, 0.0298, 0.0076, 0.0193, 0.0113, 0.0292, 0.0208, 0.0112, 0.017, -0.0037, 0.0119, 0.0144, 0.015, 0.039, -0.0621, 0.0118, 0.0249, 0.0112, 0.0203, 0.0301, 0.0652, 0.0234, 0.0748, 0.0362, 0.0268, 0.1609, -0.0182, -0.2493, 0.0315, 0.0095, 0.002, 0.1165, 0.0362, 0.0618, 0.0763, 0.0231, -0.0015, 0.0513, 0.005, 0.0207, 0.0128, 0.0132, 0.0088, -0.005, 0.0158, -0.0047, -0.0203, 0.004, 0.0364, 0.0233, 0.0268, 0.086, 0.0443, 0.0134, 0.0317, 0.0026, -0.1408, 0.0485, 0.0258, 0.0205, 0.0071, -0.0011, 0.0156, 0.0151, 0.0878, 0.0493, 0.0071, 0.1555, 0.0035, 0.0089, 0.0144, 0.0362, -0.0444, 0.0117, -0.0219, 0.0091, 0.0688, -0.0365, -0.046, -0.1156, 0.0165, 0.0196, 0.0098, -0.0276, 0.0169, 0.1049, 0.017, 0.0279, 0.0825, 0.0211, 0.0159, 0.0116, 0.1935, 0.0158, 0.02, 0.0644, 0.017, -0.1179, -0.0067, 0.0087, 0.127, 0.0011, -0.0321, 0.0152, 0.0429, 0.0487, -0.0009, 0.0319, 0.0132, 0.0238, 0.0017, 0.0093, -0.0064, 0.0028, -0.0998, -0.0707, 0.0088, 0.0138, 0.0268, 0.02, 0.0315, 0.0256, -0.0537, 0.0298, 0.0672, -0.0023, 0.1562, -0.1268, 0.0117, 0.0044, 0.0531, 0.0239, 0.0073, 0.0254, 0.0043, -0.2157, 0.0011, 0.0036, 0.0274, 0.0309, -0.0108, 0.0478, 0.0119, 0.0148, 0.0199, 0.0099, -0.0359, -0.005, -0.2198, -0.0357, 0.0371, 0.0111, -0.0164, -0.0055, 0.0176, 0.0221, -0.0129, 0.0158, -0.0147, 0.0199, 0.024, 0.0203, 0.018, 0.013, 0.0361, 0.007, -0.0662, 0.0208, 0.0482, 0.0111, 0.0419, 0.0206, 0.0185, -0.0054, 0.0184, 0.0055, 0.0334, 0.0211, 0.0008, 0.0131, 0.0017, 0.0177, 0.0073, 0.0075, -0.027, -0.054, 0.0116, -0.0438, 0.0417, 0.0058, 0.0186, 0.0268, 0.0311, -0.0405, 0.1115, 0.0009, -0.0001, 0.0173, -0.0055, -0.0012, 0.0124, 0.2193, -0.0739, 0.0277, 0.0688, 0.0643, 0.0204, 0.0247, 0.0062, 0.0126, 0.0097, -0.0099, 0.1955, 0.0315, 0.0153, 0.0115, 0.008, -0.1426, 0.0104, 0.0008, -0.0044, -0.0042, 0.0131, 0.0282, 0.0107, 0.0158, 0.0127, 0.0297, 0.0181, -0.0095, 0.0336, -0.0243, 0.0051, 0.0118, -0.1116, -0.165, 0.0406, 0.0383, 0.0084, 0.0442, 0.0497, 0.0214, -0.0126, 0.0107, 0.0039, -0.0197, 0.0052, 0.0182, 0.0294, 0.0392, 0.1066, 0.0155, 0.0215, 0.0029, -0.0051, -0.0079, -0.0132, 0.0178, -0.0135, 0.005, 0.0105, 0.0062, 0.2271, 0.0555, -0.041, 0.0306, 0.0385, 0.0376, 0.0296, 0.0223, 0.0301, -0.0749, 0.0041, 0.0159, 0.1066, 0.0032, 0.0275, 0.0379, 0.0113, 0.033, -0.0201, 0.0307, 0.0313, 0.0191, -0.0035, 0.024, 0.0533, 0.0417, 0.0374, 0.0183, 0.0162, 0.0082, -0.0805, 0.0522, 0.0176, 0.0102, 0.0153, 0.0355, 0.0291, 0.0572, 0.0226, 0.0152, -0.0144, -0.0039, 0.0282, 0.0071, 0.0058, 0.0281, 0.0335, 0.0147, 0.0464, 0.0221, 0.0319, 0.0523, 0.0194, 0.0649, 0.012, 0.0269, 0.0207, 0.1389, 0.0077, 0.0125, 0.0004, 0.0109, -0.0071, 0.0114, 0.0272, 0.0165, 0.0029, 0.0327, 0.0266, 0.1237, 0.0061, 0.0048, 0.0254, -0.162, 0.0129, 0.0188, 0.0086, 0.2813, -0.1095, 0.0025, 0.0101, 0.0128, 0.0351, -0.0076, 0.0154, 0.0089, 0.0223, -0.0028, -0.0331, -0.0366, 0.0314, 0.0193, 0.0032, 0.0086, 0.0146, 0.0098, 0.0079, 0.0004, 0.0236, 0.0264, 0.0163, 0.0239, 0.048, 0.0211, 0.0018, 0.0443, -0.1944, -0.0174, 0.0422, 0.0264, 0.0075, 0.0033, 0.0061, 0.01, 0.0134, 0.0162, -0.0145, 0.013, 0.0413, 0.006, 0.0014, 0.0141, 0.0767, 0.0273, 0.0092, 0.0081, 0.0225, 0.0207, -0.0009, 0.0107, 0.0328, -0.0004, 0.0116, 0.0221, 0.035, -0.0171, -0.0043, 0.0026, 0.0033, 0.0251, 0.0146, 0.0731, 0.0422, 0.0046, -0.0579, 0.0402, 0.046, -0.0017, 0.0433, 0.0223, 0.0297, -0.024, -0.0122, 0.1216, 0.012, 0.0417, 0.0323, 0.0307, 0.0055, 0.0277, 0.0305, -0.0414, -0.0291, 0.042, 0.1224, 0.0184, 0.0542, 0.0198, 0.0253, 0.027, -0.0167, -0.0758, 0.0477, -0.0008, 0.0369, 0.1525, 0.0204, -0.0643, 0.0221, 0.0915, 0.0063, 0.0067, 0.0291, 0.0307, 0.0142, 0.3433, 0.0371, 0.0305, -0.0656, -0.0022, 0.0178, -0.047, 0.0555, 0.0307, 0.028, 0.0104, 0.0109, -0.3004, 0.0417, -0.1969, 0.0112, 0.001, -0.1093, 0.0086, 0.0323, -0.0057, -0.0495, 0.0197, -0.0062, 0.0061, -0.1335, 0.0035, 0.0149, 0.0167, 0.0224, 0.0067, -0.0573, 0.0049, -0.054, -0.0038, 0.0153, 0.0166, 0.0254, 0.1267, 0.0232, -0.0475, 0.0123, 0.035, 0.0188, 0.0258, -0.0272, 0.0051, 0.0006, 0.0206, 0.0204, 0.025, -0.0136, 0.0122, 0.0082, -0.2931, 0.0031, 0.01, 0.0116, 0.0096, 0.005, 0.0011, 0.0106, 0.0004, 0.0135, -0.0699, 0.0061, 0.0123, 0.0601, 0.0501, 0.118, -0.032, 0.0035, 0.0154, 0.0022, 0.0263, 0.0341, 0.0051, 0.0073, 0.0047, 0.0215, -0.3107, 0.1114, -0.0175, -0.0311, 0.0256, 0.0212, 0.0073, 0.0153, 0.0221, 0.0063, 0.0072, 0.0031, 0.0075, 0.029, -0.1064, 0.0125, 0.0246, -0.0096, 0.0215, 0.0414, 0.0445, -0.1191, 0.0246, 0.0223, -0.0059, 0.0157, -0.0302, 0.0309, 0.0145, 0.0334, 0.0011, 0.0075, -0.0103, 0.0276, -0.0018, 0.0197, 0.0019, 0.0053, 0.0185, 0.0243, 0.0255, 0.024, 0.0207, -0.0038, -0.0023, 0.0119, 0.0661, 0.0376, -0.0323, 0.0077, 0.0302, 0.0216, 0.0182, 0.0236, -0.0197, 0.0338, -0.0183, 0.0065, 0.0002, 0.0138, -0.0198, -0.0503, 0.0431, 0.0367, 0.1753, 0.0232, 0.0073, 0.0077, 0.0635, 0.0238, 0.0068, -0.0228, 0.0882, 0.0112, 0.0068, 0.077, -0.0054, -0.0774, 0.0397, 0.0114, 0.0398, 0.0268, 0.0164, 0.0219, 0.0403, 0.0229, 0.0274, 0.001, 0.0457, 0.0472, 0.0676, 0.0198, 0.0275, 0.0023, 0.0005, -0.0167, 0.0107, -0.0259, 0.0376, 0.1174, -0.0077, 0.016, 0.0345, 0.0234, 0.0178, -0.0204, -0.2016, 0.0081, -0.112, 0.0001, 0.05, 0.0075, 0.0527, -0.0288, 0.0085, 0.0078, 0.012, 0.0442, 0.0147, -0.0035, 0.0201, 0.0068, 0.0088, 0.0264, 0.1095, 0.0271, 0.1774, -0.0128, 0.0408, 0.008, 0.0086, 0.0004, 0.0199, -0.0003, -0.0093, 0.0214, 0.034, 0.0262, 0.0138, 0.0145, -0.0062, 0.0242, 0.0069, 0.0188, 0.0301, 0.0201, 0.003, 0.0085, 0.0195, -0.1336, 0.0246, 0.0023, 0.0149, 0.0272, 0.0066, 0.0089, 0.0215, 0.0285, 0.0044, -0.0069, -0.0345, 0.0153, -0.0005, 0.1078, 0.0031, 0.0337, -0.0332, -0.0146, 0.0266, 0.0189, 0.0218, 0.0138, -0.0038, 0.0115, 0.0406, -0.0121, 0.0565, 0.0419, 0.0553, -0.0178, -0.0037, 0.0204, 0.0323, 0.0319, 0.0477, 0.0379, 0.078, 0.0238, 0.0296, 0.0009, 0.0113, 0.0162, 0.0254, -0.0131, 0.045, 0.0046, -0.0351, 0.0351, -0.0459, 0.0041, -0.0149, 0.0161, -0.0037, 0.0341, 0.0249, 0.0012, -0.0397, 0.0248, -0.043, 0.0327, 0.0169, 0.0231, 0.0221, -0.0483, -0.0489, 0.0254, 0.0487, 0.0121, 0.0326, -0.0087, 0.0275, 0.0148, 0.0156, 0.0255, -0.1057, 0.0009, 0.0302, -0.0055, 0.0051, 0.0239, 0.0266, 0.0091, -0.0175, 0.0318, 0.019, 0.0008, 0.014, 0.0155, 0.0165, 0.0165, 0.0078, -0.0093, 0.0712, 0.0098, 0.0414, 0.0523, -0.0216, 0.0117, 0.0089, 0.1814, 0.0293, 0.0162, 0.0005, 0.0357, 0.0042, -0.0204, 0.0897, 0.037, 0.0213, 0.019, 0.0145, 0.0468, 0.0027, 0.0121, 0.0123, 0.0031, 0.0029, 0.0121, 0.1159, 0.0223, -0.1148, 0.0171, 0.0083, 0.1942, 0.0111, 0.0144, 0.0132, 0.0237, 0.0076, 0.0227, 0.0182, -0.0938, 0.0297, 0.0063, -0.1002, 0.0016, 0.1893, 0.0176, 0.0193, 0.0443, 0.0303, -0.0519, 0.0136, -0.0967, 0.0141, 0.018, -0.0191, -0.0047, 0.0142, -0.0128, 0.0172, 0.0226, 0.0186, 0.0296, 0.0311, 0.0257, 0.0326, 0.0329, 0.0175, 0.0121, 0.0324, 0.055, 0.0058, -0.2437, -0.1112, 0.0871, -0.0085, 0.0156, 0.0088, 0.0036, -0.0332, 0.0085, 0.0463, -0.0011, -0.0218, -0.0078, 0.0162, 0.0569, 0.0036, 0.0175, -0.0222, 0.0121, 0.0167, 0.0095, 0.0357, 0.0082, 0.018, 0.0184, 0.005, 0.0159, -0.0127, 0.0045, 0.0299, 0.0203, 0.0067, 0.0127, 0.0252, -0.0229, -0.0597, 0.0032, 0.0237, 0.0131, -0.2781, -0.0126, -0.0134, 0.014, 0.0417, -0.0123, -0.0946, 0.0077, 0.0342, 0.0247, 0.0156, 0.0267, -0.0109, 0.0251, -0.0011, 0.0331, 0.0058, 0.0228, 0.0208, -0.0352, 0.0232, 0.0321, 0.0395, 0.0122, 0.0082, 0.0036, 0.029, -0.0033, -0.0205, 0.0029, 0.011, 0.0123, 0.0128, 0.0042, 0.0162, 0.1868, -0.0062, 0.0566, 0.0126, 0.0047, 0.0211, 0.0317, 0.0036, 0.0077, 0.0278, 0.2385, 0.0031, 0.0305, 0.0725, 0.0237, -0.0192, 0.0366, 0.0183, -0.0103, 0.01, 0.0596, 0.027, -0.2136, 0.0187, -0.0153, -0.0269, 0.0168, 0.1591, 0.0106, 0.0052, 0.0398, 0.0097, 0.0166, 0.0259, 0.1469, 0.0271, -0.0137, 0.0246, 0.0168, 0.0203, 0.0249, 0.0169, 0.1287, 0.0123, -0.0172, 0.0059, 0.0243, -0.2447, 0.0041, 0.0084, 0.0263, 0.0267, 0.0329, 0.0272, 0.0582, 0.0236, 0.1668, 0.0276, 0.0005, 0.0211, 0.0431, 0.0827, -0.0174, 0.0077, 0.019, 0.053, -0.0242, 0.0855, 0.0551, 0.0195, -0.0896, 0.0104, 0.0269, -0.0495, -0.0532, 0.0064, 0.0349, 0.0119, 0.0184, 0.0102, 0.0067, -0.0038, 0.0144, 0.0127, -0.0055, 0.0042, 0.0053, -0.0124, 0.0316, 0.0421, 0.0148, 0.0032, 0.0134, 0.0167, 0.0163, 0.0132, 0.012, 0.0504, -0.0327, 0.0339, 0.0029, 0.0245, 0.0186, 0.0168, 0.0483, -0.0041, 0.0202, 0.0115, 0.0392, 0.0686, 0.0201, 0.017, 0.0435, 0.0238, -0.0264, 0.0273, -0.0007, 0.0151, 0.0221, 0.0197, 0.0208, -0.0677, 0.0334, -0.0632, -0.0243, -0.0824, 0.013, -0.0066, 0.0172, 0.0119, -0.0038, 0.0165, 0.0352, 0.0052, -0.0139, -0.0002, 0.0135, 0.0231, 0.0147, 0.0292, -0.0178, 0.0158, -0.0768, 0.0258, 0.1763, 0.0022, 0.0134, 0.0238, 0.0487, 0.0174, -0.0088, -0.2555, 0.0517, 0.0197, 0.014, 0.0449, 0.0216, 0.0062, 0.0211, 0.0026, -0.0004, 0.0357, 0.0076, 0.0299, 0.1057, 0.0191, -0.0742, 0.0056, 0.0373, 0.1869, -0.0635, 0.0006, 0.0034, 0.0627, -0.0038, 0.0002, 0.0956, 0.0367, -0.1007, 0.0256, -0.0673, 0.0248, -0.0653, 0.2406, -0.0365, 0.006, -0.0924, 0.0145, 0.0295, -0.0019, 0.0322, 0.0307, 0.0577, -0.0122, 0.0262, -0.0081, 0.0674, 0.0363, 0.245, 0.0067, 0.0586, 0.0573, 0.0479, 0.0088, 0.0592, 0.0031, 0.0299, -0.0004, 0.0368, 0.0145, 0.1315, -0.032, -0.2062, 0.0317, -0.0244, 0.0223, 0.0073, -0.0856, 0.0306, 0.0191, -0.0237, 0.0242, 0.0164, -0.0393, 0.0212, 0.0129, 0.0133, 0.0489, 0.0211, 0.2055, 0.008, 0.0136, 0.1023, 0.0065, 0.0456, 0.0216, 0.0012, -0.0296, 0.0138, -0.0079, 0.0162, 0.0067, 0.0073, 0.0049, 0.0242, 0.0087, 0.0116, 0.0957, 0.0091, 0.0174, 0.036, 0.0095, -0.0032, -0.178, 0.0076, -0.137, -0.0018, 0.0144, 0.0109, -0.0356, 0.0137, -0.0079, 0.025, 0.0783, 0.04, 0.0295, 0.0257, -0.0076, -0.0056, 0.012, 0.0015, -0.0271, 0.058, -0.0074, 0.0753, 0.1196, 0.0607, 0.0318, -0.014, 0.0102, 0.0093, 0.0204, 0.0401, 0.0283, 0.0047, 0.008, 0.0708, -0.0043, 0.0054, 0.0029, -0.1868, 0.0215, 0.0709, 0.0188, -0.0274, 0.0029, 0.0444, 0.0074, -0.0964, -0.0074, 0.027, 0.0187, 0.0165, 0.0235, 0.1173, -0.0252, 0.0156, 0.003, 0.0788, 0.0103, 0.0337, 0.0079, 0.0133, 0.0195, 0.1031, 0.0183, 0.0198, 0.0115, -0.0762, 0.074, -0.017, 0.0051, 0.0337, 0.0156, 0.0284, 0.0214, 0.008, 0.0341, 0.0415, 0.0068, 0.0069, -0.0423, 0.0502, 0.0345, -0.0009, -0.0939, -0.054, -0.0027, 0.0058, -0.0401, 0.0495, -0.0082, 0.0213, 0.0287, 0.0225, 0.0188, 0.0265, -0.0002, -0.0151, 0.0179, -0.0112, 0.0036, 0.1997, 0.0213, 0.0077, 0.0386, 0.0182, 0.0192, -0.0954, -0.0001, 0.018, 0.0326, 0.0354, 0.0137, 0.0344, -0.0156, -0.0208, 0.0169, 0.0091, 0.0171, 0.0015, 0.0637, 0.0513, 0.0656, -0.0184, -0.051, -0.1741, -0.4363, 0.0129, 0.0387, -0.0821, 0.0193, 0.0301, 0.046, -0.5091, 0.0585, -0.004, 0.0999, 0.0152, 0.0312, 0.0184, 0.0, 0.0328, 0.0126, -0.0743, 0.0246, 0.0167, 0.0273, 0.0504, 0.0413, 2.0913, -0.2194, -0.0765, 0.0046, 0.0115, 0.0106, 0.0195, 0.0311, 0.0259, 0.023, 0.0919, 0.0073, -0.0314, 0.0479, 0.0082, -0.0036, 0.0095, 0.0249, 0.0049, 0.0408, -0.1566, 0.0108, 0.0018, 0.015, -0.0169, 0.0131, 0.0261, -0.0276, 0.031, -0.0189, -0.0488, 0.0457, -0.0588, 0.008, 0.0018, 0.0483, -0.0107, 0.0194, 0.0151, 0.0315, 0.0062, -0.0155, 0.021, 0.0152, 0.0492, 0.022, 0.0122, -0.1097, 0.0411, 0.0372, 0.0458, 0.0536, 0.0134, 0.0256, 0.0256, 0.0076, 0.0697, 0.0194, 0.094, 0.031, 0.0219, 0.0168, -0.052, -0.0735, 0.0677, 0.0255, 0.0071, 0.0256, 0.0831, -0.0071, -0.0075, 0.0363, 0.1135, 0.0337, -0.0196, 0.0097, -0.001, 0.0565, -0.0775, 0.0139, -0.0233, -0.0166, 0.0345, 0.0347, 0.0849, -0.0101, -0.1292, 0.0082, 0.0063, 0.0162, 0.0091, 0.0187, 0.0271, 0.0209, 0.0339, 0.0298, 0.0263, 0.0372, 0.0558, 0.0102, 0.0266, 0.0064, 0.0247, 0.0492, 0.0567, 0.0844, -0.0004, 0.0064, 0.0393, -0.0876, 0.0165, 0.0467, 0.0115, 0.0029, 0.0003, 0.0325, 0.0053, 0.0093, 0.0288, 0.0189, 0.018, 0.0088, 0.0234, 0.0996, -0.0056, 0.087, -0.0451, 0.0619, 0.0374, 0.0401, -0.0108, 0.0249, 0.035, 0.0262, 0.0897, 0.1019, 0.0151, 0.0973, 0.1102, -0.0083, 0.0509, 0.0634, 0.0423, 0.023, 0.0278, -0.0895, 0.026, 0.1241, -0.0001, 0.0111, 0.0896, 0.0233, -0.0067, 0.0221, 0.0296, 0.0286, 0.0183, 0.0161, 0.0203, 0.0172, 0.0226, 0.0121, -0.0044, 0.019, 0.1952, 0.0441, 0.0765, 0.0022, 0.0035, -0.0282, -0.0031, 0.021, 0.0148, 0.0279, 0.0314, -0.0347, -0.0428, -0.0251, 0.0235, -0.0146, 0.0121, 0.0249, 0.0203, 0.0533, 0.0227, 0.0249, 0.1147, 0.0284, 0.0322, 0.0883, -0.0161, 0.0772, 0.0339, 0.0178, -0.0029, -0.0081, -0.0649, 0.01, 0.0134, 0.0199, -0.0323, 0.0358, 0.0349, 0.0217, -0.0425, 0.0139, 0.0143, 0.0042, 0.0328, 0.0236, 0.0141, -0.032, 0.0515, 0.0531, 0.0874, 0.0158, 0.0317, -0.3884, 0.0087, 0.226, -0.008, -0.0345, 0.0255, 0.1575, 0.0244, 0.0215, 0.0126, 0.025, 0.0156, -0.0096, 0.0125, 0.0077, 0.0097, 0.0039, 0.1247, 0.0149, -0.0031, 0.0111, 0.0138, -0.0434, 0.0146, 0.0133, 0.0137, 0.0024, 0.0039, -0.0607, 0.0303, 0.0329, -0.0047, 0.0236, 0.0152, 0.0399, 0.014, 0.0126, 0.1038, 0.0251, 0.0448, 0.054, 0.0384, 0.004, 0.0174, 0.0096, 0.0226, 0.0186, 0.069, 0.0723, 0.0563, 0.0285, 0.0078, 0.0198, 0.0144, 0.0617, 0.0164, 0.0213, 0.0122, 0.0099, 0.0399, 0.0267, -0.0037, -0.0431, 0.0418, 0.0786, 0.0432, 0.03, 0.0033, 0.0471, 0.0044, 0.0072, 0.0158, 0.0982, -0.0104, 0.1548, 0.0722, 0.0037, 0.0436, 0.017, 0.0794, -0.0049, 0.0772, 0.0066, 0.0256, -0.0022, 0.0375, -0.047, 0.0172, 0.0133, 0.0139, 0.0214, 0.0381, -0.015, 0.0377, 0.0477, -0.0048, 0.0179, -0.0126, 0.021, 0.0396, 0.0158, -0.032, 0.0246, -0.0337, -0.0001, 0.0406, -0.0486, -0.0008, 0.057, 0.0446, -0.0049, -0.0058, -0.1448, 0.0046, 0.015, -0.0355, 0.0004, 0.0394, 0.0138, -0.009, 0.0256, 0.0784, 0.0126, 0.0703, 0.1624, 0.0567, 0.0384, 0.0201, 0.0411, 0.0256, 0.0454, 0.0046, 0.0724, -0.0006, 0.0289, -0.0434, 0.0484, -0.0054, -0.001, 0.0323, 0.0146, 0.0249, 0.0219, 0.0263, 0.0022, 0.0112, 0.0319, 0.024, 0.0145, -0.0342, 0.0219, 0.0445, 0.0471, 0.0353, 0.0409, 0.0321, 0.0186, 0.0375, -0.052, 0.0304, -0.0112, 0.0022, 0.0215, 0.0062, -0.0064, 0.0249, 0.0413, 0.0449, 0.0705, 0.0382, 0.017, -0.113, 0.008, 0.0539, 0.0039, -0.009, 0.0577, 0.1962, 0.027, -0.1219, 0.0164, 0.0325, 0.0055, 0.0323, 0.018, 0.0039, 0.0657, 0.0155, 0.0547, 0.0442, 0.0741, 0.1216, 0.0311, 0.0204, 0.0284, 0.0476, 0.0186, 0.0147, 0.0127, 0.0306, 0.0255, 0.0179, 0.0442, 0.0081, 0.0136, 0.0386, 0.0068, 0.04, 0.0357, 0.0191, 0.0419, 0.047, 0.0062, 0.0359, 0.0016, 0.0134, 0.014, 0.0171, 0.03, 0.0265, 0.0709, 0.0406, -0.0748, -0.0191, 0.06, 0.0384, 0.0294, -0.186, 0.0595, -0.0344, 0.0558, 0.0339, 0.0169, 0.027, 0.019, 0.0429, 0.0432, 0.041, 0.1117, 0.0221, -0.0248, 0.0237, 0.0177, 0.0169, 0.0209, 0.0268, 0.0245, -0.0067, -0.0107, -0.0408, 0.005, -0.0011, 0.0007, 0.0127, 0.0876, 0.0147, 0.0383, 0.0148, 0.0133, 0.0298, 0.0206, 0.085, 0.0223, 0.0155, -0.0009, 0.0207, 0.0208, 0.0505, -0.0777, 0.0305, 0.0378, 0.0362, 0.0348, 0.0384, 0.0325, -0.005, 0.0257, 0.0277, 0.0858, 0.0018, 0.0166, 0.0078, 0.0068, 0.0073, 0.0178, 0.0205, -0.0164, 0.225, 0.0101, 0.025, -0.0012, 0.0228, 0.0139, 0.0103, 0.0203, 0.0194, 0.025, 0.0399, -0.084, -0.0058, 0.0334, 0.0716, -0.0761, 0.0366, -0.006, 0.0342, 0.0355, 0.0133, 0.0122, 0.0134, 0.0176, 0.0072, 0.0232, 0.0019, 0.0009, 0.0182, 0.0764, 0.0771, 0.0157, 0.0083, 0.048, 0.0627, 0.0386, 0.0294, 0.1188, 0.0219, 0.0145, 0.1357, -0.0558, 0.0149, 0.0252, 0.0133, 0.0105, 0.0147, 0.0642, 0.0201, 0.0155, 0.0149, 0.0394, -0.0071, -0.0224, -0.0147, 0.0138, 0.0258, 0.025, 0.0203, 0.0253, 0.0389, 0.0183, 0.0199, 0.0195, 0.003, 0.0081, 0.0106, 0.0169, 0.0489, 0.0402, 0.1455, 0.0079, 0.1722, 0.0335, 0.0299, -0.0168, 0.0176, 0.0292, 0.0471, 0.0219, 0.0043, 0.0735, 0.0807, 0.0113, 0.0089, 0.0113, 0.0073, 0.0139, 0.0273, 0.012, 0.0229, 0.0305, -0.119, 0.0897, 0.0009, -0.018, -0.0046, 0.0163, 0.0298, 0.0035, 0.0243, 0.0432, 0.0289, 0.0112, 0.0431, 0.0233, 0.0283, -0.0247, 0.0215, -0.0089, -0.1309, -0.1143, 0.0212, -0.0082, -0.0929, 0.0655, 0.0337, 0.0076, -0.004, 0.0178, 0.0214, -0.0057, 0.0074, 0.0007, 0.0138, 0.0459, 0.0089, 0.0443, 0.0202, 0.0051, 0.0556, 0.0181, 0.0794, -0.0036, 0.0473, 0.0803, 0.0199, 0.0326, -0.1393, -0.0041, 0.0582, -0.1131, 0.1638, 0.0262, 0.0479, 0.1023, -0.0134, 0.0472, 0.0253, -0.074, 0.0525, -0.0166, -0.0209, 0.1897, 0.0797, 0.1071, 0.0251, 0.0249, -0.1261, -0.0061, -0.0028, -0.0978, -0.0005, 0.0143, 0.0182, -0.0707, 0.0173, 0.013, 0.0221, 0.0173, 0.0542, 0.0266, 0.0166, 0.0053, 0.0128, 0.0268, 0.0022, -0.0481, 0.0244, 0.016, 0.0276, 0.0378, 0.0284, -0.0094, -0.0021, 0.0267, 0.0008, 0.0126, -0.0275, 0.0204, 0.0206, 0.0129, 0.0164, 0.0401, -0.0183, -0.036, -0.0499, 0.0107, 0.0003, 0.0211, 0.009, 0.0338, 0.0386, 0.0984, 0.0186, 0.0397, 0.0298, 0.0531, 0.0544, -0.0089, -0.0056, 0.004, 0.0151, 0.0258, 0.0373, 0.0358, 0.0542, 0.022, 0.0394, 0.0087, 0.0515, -0.0277, 0.0157, 0.0424, -0.0198, 0.0084, 0.0251, -0.0192, -0.0047, -0.044, 0.0029, -0.0002, 0.0095, 0.0257, 0.0602, 0.0193, 0.0186, 0.0209, -0.042, 0.015, 0.0164, 0.0722, 0.0405, -0.0436, 0.0281, 0.0545, -0.0314, -0.0348, 0.011, 0.0246, 0.036, 0.0066, -0.0197, 0.0098, 0.012, -0.0303, 0.0236, -0.0889, -0.0376, 0.0051, 0.0346, 0.0134, 0.0078, 0.0209, -0.001, -0.0033, 0.0275, 0.0402, -0.005, 0.0272, 0.0451, -0.0112, -0.121, 0.0214, 0.0019, 0.0093, -0.1931, 0.0289, -0.0026, 0.0084, 0.0107, -0.0201, 0.1436, -0.0616, -0.0189, 0.0537, -0.0031, 0.0119, 0.0113, -0.2228, 0.0031, 0.0381, -0.003, 0.2813, 0.0155, 0.031, -0.0027, -0.0608, -0.003, -0.0113, 0.0074, -0.0313, 0.0151, 0.0111, -0.0309, -0.0034, -0.0823, -0.0918, 0.0334, -0.0003, 0.0222, 0.0294, -0.0854, -0.0405, 0.0493, -0.015, 0.0759, 0.0109, -0.007, -0.0, -0.0037, 0.0119, -0.0201, 0.0204, 0.0203, 0.0115, -0.0228, -0.014, -0.016, 0.0077, 0.0129, 0.0388, -0.1488, -0.131, 0.0235, -0.0015, 0.0395, -0.0361, -0.0117, 0.0509, 0.0125, 0.0071, 0.0513, 0.0023, 0.0447, 0.037, 0.0497, 0.0153, -0.0601, -0.0122, 0.032, 0.005, 0.005, -0.0248, 0.0271, 0.0054, -0.0066, 0.0209, -0.0105, -0.0086, 0.034, 0.003, 0.027, 0.0158, 0.0128, 0.0316, -0.0176, 0.0232, 0.039, 0.0198, -0.0027, 0.0014, -0.0029, 0.0275, 0.0048, 0.028, 0.0343, 0.0027, -0.1063, -0.0423, 0.0291, -0.0834, 0.012, -0.0446, 0.0214, -0.1057, 0.0012, 0.0261, 0.0086, 0.0181, 0.0541, 0.031, 0.0055, -0.036, 0.0088, 0.0115, 0.0356, 0.0064, 0.0237, 0.0426, -0.0045, 0.0099, -0.0752, 0.0493, -0.0173, -0.0114, -0.019, 0.0461, 0.095, 0.0214, 0.0094, 0.0338, -0.0107, 0.0056, 0.0112, 0.0031, 0.0098, -0.0568, 0.0421, -0.0603, -0.0201, 0.0031, 0.0053, -0.0224, 0.0334, -0.0, -0.0051, 0.0187, -0.0475, 0.0235, 0.0041, 0.0045, -0.0681, 0.0125, 0.0185, 0.0185, 0.0329, 0.0078, 0.1534, 0.1044, 0.044, 0.0417, 0.0336, 0.0388, -0.0048, 0.0857, -0.0022, -0.0589, 0.0047, 0.0062, 0.0142, 0.058, 0.0156, -0.0039, -0.0505, 0.0458, -0.0587, -0.0756, -0.0024, 0.0143, 0.0047, 0.0493, -0.0027, -0.1347, 0.2005, 0.0026, 0.0207, 0.025, -0.0082, 0.0172, -0.002, 0.0307, 0.0058, 0.0202, -0.013, -0.0044, 0.0283, 0.0075, 0.0222, -0.0123, 0.0016, -0.006, -0.0058, -0.0043, -0.0006, 0.0282, 0.0259, -0.003, 0.0058, 0.0106, 0.0253, 0.1121, 0.0316, 0.0175, -0.0038, 0.0266, 0.0184, 0.0286, 0.0324, 0.0135, -0.0121, 0.0301, 0.0182, 0.0218, -0.1113, 0.0681, 0.0074, 0.0185, 0.0326, 0.0958, 0.0481, 0.0445, 0.0852, -0.0247, 0.0145, -0.0002, 0.0264, -0.0143, -0.0068, 0.0347, 0.0208, 0.0197, 0.0003, 0.0055, 0.0224, -0.2139, 0.0462, -0.0011, 0.0311, 0.0089, 0.0125, 0.1246, -0.0005, -0.0082, -0.005, 0.0074, 0.0548, 0.0088, 0.0188, 0.0251, 0.0109, 0.0172, 0.0833, -0.0207, -0.1548, 0.0216, 0.004, -0.0234, -0.0112, 0.002, 0.0091, 0.0044, 0.0254, 0.0387, 0.0305, -0.0079, 0.02, 0.0226, 0.1727, 0.0271, -0.0013, 0.034, 0.0092, -0.0025, -0.0247, -0.0139, -0.1119, 0.0013, 0.0095, -0.0198, 0.2577, 0.0461, -0.0193, 0.01, 0.0193, 0.1074, 0.0186, 0.0383, 0.119, 0.0139, -0.0211, 0.0516, 0.0173, 0.0646, -0.0165, 0.0031, 0.035, 0.024, 0.0546, 0.0156, 0.0303, 0.0394, -0.1763, 0.0076, 0.0195, 0.0155, -0.0333, -0.0004, 0.0206, 0.0306, -0.1886, -0.0318, 0.0038, -0.1492, 0.0079, 0.0337, -0.0402, 0.0517, 0.0102, -0.0257, 0.0129, 0.0311, 0.0082, 0.1169, 0.0407, 0.0129, 0.0466, 0.0111, -0.1519, 0.0079, 0.0556, 0.0206, 0.0041, 0.0054, 0.002, -0.0287, -0.0029, 0.0122, 0.021, 0.0127, -0.0112, 0.0481, -0.101, 0.0269, 0.0296, 0.03, 0.2653, -0.0824, -0.0035, 0.1481, 0.0094, -0.0374, 0.0617, 0.0217, 0.0306, 0.0114, 0.0398, -0.0181, 0.0011, 0.0059, 0.0229, 0.0054, 0.0042, 0.0111, 0.0095, 0.0067, -0.027, 0.0118, -0.0689, -0.011, -0.0549, -0.0094, 0.0182, -0.0054, 0.0085, 0.028, 0.0845, 0.0086, 0.0433, 0.0219, 0.0079, -0.0209, 0.0464, -0.0291, 0.0392, 0.008, 0.0032, 0.0074, 0.0453, 0.0132, 0.0164, 0.016, 0.0099, 0.0205, 0.001, 0.0065, -0.0155, -0.0214, 0.0098, -0.0017, 0.028, -0.0231, 0.0169, -0.0225, 0.0058, 0.0093, -0.0206, 0.0744, 0.0514, 0.0259, 0.0169, -0.0139, 0.0234, 0.0046, 0.011, 0.01, 0.0237, 0.0041, 0.005, 0.0419, 0.0366, 0.0318, 0.0229, 0.0219, -0.0647, -0.0012, 0.0062, 0.0214, 0.0189, 0.0271, -0.0984, 0.0167, 0.0139, -0.0315, -0.1092, 0.0319, 0.0259, 0.0152, -0.1285, 0.0234, -0.0402, -0.0409, 0.0245, -0.012, 0.0155, 0.0048, 0.0152, -0.0136, 0.0093, 0.0019, 0.0293, 0.0094, 0.0247, 0.0157, 0.0034, 0.0136, -0.0015, 0.0186, -0.0044, 0.0151, -0.0424, 0.0308, -0.0187, 0.0615, 0.0463, 0.0032, 0.024, 0.0657, 0.0164, 0.0221, 0.025, 0.0373, -0.0882, -0.0036, 0.0261, 0.1, 0.0122, 0.0337, -0.0177, 0.0355, 0.0092, 0.0271, 0.0024, -0.2234, 0.0339, -0.0036, -0.0308, 0.0393, 0.0136, 0.0182, -0.0025, 0.0084, 0.0041, 0.0342, 0.0422, 0.0372, 0.0918, 0.0316, 0.0102, 0.0869, 0.0024, 0.0243, 0.0304, 0.0129, 0.0168, 0.0164, 0.0302, -0.0084, 0.034, 0.0344, 0.0279, -0.0004, 0.0127, 0.03, 0.0258, 0.0151, 0.0266, -0.0169, 0.011, 0.0096, 0.0191, 0.0238, 0.0152, 0.0084, 0.015, -0.2272, 0.0591, 0.0333, -0.0103, -0.0053, 0.0279, -0.1082, 0.0078, 0.007, 0.0082, 0.0532, -0.01, 0.085, -0.0315, 0.0227, 0.0371, 0.0407, 0.032, -0.0828, 0.0378, 0.0275, -0.1547, 0.0138, -0.0573, 0.1218, 0.0099, -0.0096, 0.027, 0.0207, -0.0789, 0.0148, 0.1163, 0.0142, -0.1216, 0.0237, 0.0339, -0.069, 0.0157, 0.0159, 0.039, 0.0226, 0.0153, 0.1459, 0.0122, 0.0472, 0.0134, 0.0285, 0.0389, 0.1279, -0.0212, 0.0103, -0.0043, 0.0328, 0.016, 0.0016, 0.0678, 0.0098, -0.0532, 0.0189, -0.0099, 0.0146, 0.0086, 0.0153, -0.0149, 0.0911, -0.0141, 0.0071, -0.0271, 0.059, 0.0256, -0.0005, -0.0053, 0.0107, 0.0125, 0.0019, 0.0183, 0.0042, -0.0854, 0.0086, 0.0139, 0.0026, 0.0106, -0.0085, 0.0108, 0.0218, 0.0117, 0.0, -0.0255, 0.017, 0.0159, 0.0183, 0.0311, 0.0073, 0.0099, 0.0001, 0.0451, -0.0091, 0.0079, 0.0141, 0.0487, 0.0135, -0.0198, 0.0157, 0.0142, 0.034, 0.036, 0.0142, 0.0727, 0.1084, 0.0081, 0.0004, -0.0775, 0.0181, 0.0212, 0.0325, 0.0356, 0.0485, -0.0284, 0.0068, 0.0438, 0.0083, -0.0966, 0.0059, -0.0188, 0.0409, 0.0197, 0.0115, 0.0333, 0.011, 0.0273, 0.1184, 0.0216, -0.0091, -0.0085, 0.0099, 0.0068, 0.0759, 0.0204, 0.0001, 0.053, 0.0407, 0.0143, 0.0216, 0.0492, 0.0307, -0.0038, 0.0148, 0.0056, 0.0386, 0.0131, 0.0259, -0.0128, -0.0008, 0.0117, 0.0188, -0.1525, 0.0106, -0.048, 0.0285, 0.0373, -0.0108, 0.0014, 0.0229, 0.0459, -0.0046, 0.0237, 0.0088, 0.0245, -0.0053, 0.0291, 0.0098, 0.0083, 0.0066, 0.0227, -0.069, 0.0025, -0.0545, 0.0009, -0.019, 0.0112, 0.0, -0.0007, 0.0085, 0.0002, 0.0278, 0.0179, -0.1691, 0.007, 0.0824, -0.037, -0.0828, -0.1433, 0.017, 0.0205, 0.0145, -0.0512, 0.0386, -0.1225, 0.0642, -0.0066, 0.0309, -0.0837, -0.0215, 0.0174, -0.0206, 0.0217, 0.026, 0.048, 0.0347, 0.0086, -0.0018, -0.4126, 0.0167, -0.0369, 0.0522, 0.0142, 0.0135, -0.0202, 0.0347, -0.1075, -0.0202, 0.0136, 0.0325, 0.0081, 0.0421, 0.0224, 0.029, 0.0143, 0.0059, 0.0211, -0.0132, 0.0128, 0.0189, 0.0317, -0.0126, -0.0038, 0.0262, 0.0167, 0.0361, 0.0559, 0.0438, 0.0315, 0.0829, 0.0342, 0.0154, -0.0666, 0.0386, 0.0003, 0.023, 0.015, 0.0206, 0.0058, 0.0091, 0.0673, 0.0311, 0.0067, -0.1167, 0.065, 0.008, 0.0136, -0.0047, 0.0285, 0.0263, 0.1208, 0.0237, 0.0269, 0.0154, 0.007, 0.0139, -0.0047, 0.0321, -0.1826, 0.0296, -0.0392, -0.0931, -0.003, 0.0325, -0.0172, 0.08, -0.0162, 0.0274, 0.0104, -0.0232, 0.0037, 0.0025, -0.0025, 0.0023, -0.0721, -0.316, 0.0362, 0.0036, -0.0372, -0.0042, 0.0017, 0.0108, -0.0176, -0.0055, 0.0035, 0.0321, 0.01, 0.0048, 0.0143, -0.0007, 0.0066, 0.0162, -0.0511, -0.055, 0.0643, -0.0058, 0.0191, 0.0593, 0.0546, 0.0034, -0.0224, -0.0032, -0.0938, 0.0162, 0.0204, -0.0691, 0.0518, 0.0138, 0.0509, 0.0355, 0.0941, 0.0177, 0.0283, 0.0297, 0.0067, -0.0096, 0.0207, 0.0069, 0.0163, 0.0006, 0.019, 0.0261, 0.0234, 0.0597, 0.0105, 0.0229, 0.0506, 0.0063, 0.0582, 0.0198, 0.0425, -0.02, 0.0133, 0.0232, 0.0627, -0.0946, 0.1539, 0.0175, 0.0105, 0.0134, -0.0003, 0.0368, 0.0001, -0.2246, -0.0613, -0.0706, -0.0872, -0.0159, 0.0185, 0.0293, -0.0826, 0.0133, -0.0117, 0.0331, 0.02, 0.0018, -0.0867, 0.0141, 0.0097, 0.0179, -0.0003, 0.0318, -0.0424, 0.0221, 0.0127, 0.074, -0.0067, -0.2166, -0.2183, 0.0114, -0.012, -0.0029, 0.0185, 0.0158, 0.0132, 0.0471, 0.0112, 0.0187, 0.0215, 0.0041, 0.0322, -0.0162, -0.0895, -0.0122, 0.0042, 0.0042, 0.0321, -0.0334, 0.0191, 0.0522, 0.0289, 0.0183, -0.0923, 0.0171, 0.0089, -0.1669, 0.02, 0.0446, -0.0025, 0.0405, 0.008, 0.0207, -0.0034, 0.0156, 0.0439, -0.0017, 0.0392, 0.0318, 0.0305, 0.0247, -0.0263, 0.0095, -0.0207, 0.0076, 0.0124, 0.0196, 0.0272, -0.0061, 0.0093, 0.025, 0.0214, 0.0122, 0.0424, 0.0265, 0.016, 0.0063, 0.0212, 0.0056, 0.0324, 0.0314, -0.0024, -0.016, 0.0532, 0.0815, 0.0092, 0.0136, 0.023, 0.0251, 0.0526, -0.2057, 0.006, 0.0031, 0.0071, 0.027, 0.0384, -0.0104, 0.0147, 0.0501, -0.0045, 0.0372, -0.0013, 0.0136, -0.0015, 0.0349, 0.0287, 0.0228, -0.0002, 0.0113, 0.0177, -0.0152, 0.0259, 0.0061, 0.0085, 0.0154, 0.1146, -0.023, 0.01, 0.0253, 0.043, 0.0372, 0.0149, 0.0029, 0.0319, 0.0154, 0.0238, -0.0191, 0.0378, 0.0328, 0.0175, -0.0056, 0.0056, 0.0236, 0.2081, 0.0873, 0.1169, 0.0048, 0.0063, 0.0247, 0.0653, -0.011, 0.0171, -0.2569, 0.0141, 0.02, -0.0592, 0.0178, 0.0254, 0.0145, -0.0004, 0.0031, 0.0548, 0.0072, -0.0263, 0.0287, 0.0373, 0.0474, 0.0174, 0.2157, 0.0071, -0.072, -0.0932, 0.0576, 0.0469, -0.0344, 0.017, 0.0341, 0.0299, 0.0265, 0.0014, -0.0095, 0.0603, 0.2411, 0.01, 0.0191, 0.0097, 0.0164, 0.0606, 0.0393, 0.0141, 0.0251, 0.0314, 0.0081, 0.0338, 0.0304, 0.0188, 0.0137, 0.0205, 0.0012, -0.01, 0.005, -0.0034, 0.0332, -0.0067, 0.0194, 0.0369, -0.0174, 0.0222, 0.008, 0.0309, 0.0222, 0.0469, 0.0049, 0.0098, 0.0026, 0.0025, 0.0262, 0.0534, 0.0171, -0.0068, -0.0008, 0.009, 0.0273, 0.0647, 0.0087, -0.1484, 0.0159, 0.0368, -0.1541, -0.0183, -0.0133, 0.0215, 0.0078, 0.0126, 0.0074, 0.0191, -0.0909, 0.0193, 0.0573, -0.0453, 0.0502, -0.0883, 0.0103, 0.0211, 0.0308, -0.029, 0.0139, 0.002, -0.1417, -0.0184, 0.0611, -0.004, -0.0144, 0.076, 0.0556, 0.0103, -0.0568, -0.0052, 0.0028, 0.0129, 0.0106, 0.0185, 0.0044, 0.0356, 0.045, 0.0658, 0.0287, 0.0386, 0.019, -0.0258, 0.014, 0.0119, 0.0218, -0.004, 0.0774, 0.0299, 0.0202, 0.0076, 0.0186, 0.0003, 0.0248, 0.0421, 0.0159, 0.008, 0.0357, 0.0248, -0.0335, -0.0119, 0.0301, -0.0015, 0.0261, 0.0206, 0.0248, -0.002, 0.0132, 0.0248, 0.0476, -0.0047, -0.0199, 0.013, 0.0063, 0.0265, 0.0041, 0.0065, -0.1397, 0.0147, 0.0499, 0.0602, -0.002, -0.0008, 0.0108, 0.0563, 0.0173, 0.0162, 0.008, -0.0033, 0.0317, 0.0991, 0.0187, 0.0735, 0.0143, 0.0279, -0.0437, 0.006, 0.0253, 0.0357, -0.0054, 0.013, -0.0002, 0.0019, 0.01, 0.0411, -0.0117, 0.0282, 0.0269, 0.01, 0.025, 0.059, -0.0067, -0.1748, -0.0024, 0.0097, -0.0181, -0.0201, -0.0616, 0.0394, 0.033, 0.0088, 0.1783, 0.0216, 0.0188, 0.0239, 0.0118, 0.0094, 0.2063, -0.1488, 0.0185, 0.0111, 0.0196, 0.0502, -0.0025, 0.0103, -0.2674, 0.01, 0.0236, 0.0562, 0.0675, -0.0803, 0.0057, -0.0007, 0.0357, 0.037, -0.0204, 0.0342, 0.1007, 0.0525, 0.0257, 0.0259, 0.0072, 0.0042, 0.0215, -0.0025, -0.0054, 0.0198, 0.0164, 0.0165, 0.02, 0.017, 0.0243, 0.0244, -0.0845, 0.0367, 0.0119, 0.0766, -0.1763, -0.0063, 0.0068, -0.0142, 0.0321, 0.0074, 0.0108, 0.0795, 0.0138, 0.0289, 0.0166, 0.0171, 0.1177, 0.0566, 0.0019, 0.1094, -0.0204, 0.0102, 0.0289, -0.0237, 0.0057, 0.016, 0.0069, 0.0083, -0.8356, 0.0269, -0.0366, -0.0024, 0.039, 0.0196, -0.0399, -0.0249, 0.0173, -0.0922, 0.0288, 0.0729, 0.0259, 0.0398, -0.0062, 0.0489, 0.015, -0.0277, 0.0019, -0.0082, 0.0094, 0.0793, 0.0368, 0.0254, 0.0016, 0.0175, 0.0137, 0.0177, 0.1133, -0.0158, 0.0006, 0.0109, 0.0311, 0.0246, 0.0227, 0.0285, -0.0061, 0.0059, 0.0451, 0.0113, 0.023, 0.0403, 0.0183, 0.0112, -0.0081, 0.1511, 0.0318, 0.0016, 0.0227, 0.0092, 0.0212, 0.1189, 0.0867, 0.0171, 0.0209, 0.0175, 0.0074, 0.0256, 0.0083, 0.0249, -0.2118, -0.0443, -0.0624, -0.0664, 0.0088, 0.0286, -0.0259, 0.0231, 0.005, 0.0444, 0.0111, -0.0531, 0.0269, 0.0617, 0.0033, -0.0008, 0.0068, 0.0138, 0.0373, 0.0466, 0.018, -0.0177, 0.0186, -0.0063, 0.0115, -0.0043, 0.0681, 0.007, -0.0674, 0.0101, 0.0063, -0.0197, 0.0158, 0.0, 0.0095, 0.0114, 0.0072, -0.12, 0.0311, 0.0075, 0.0055, 0.0116, 0.0491, 0.0091, 0.0046, 0.0072, 0.0042, 0.0034, 0.0279, 0.0197, 0.0161, 0.008, 0.0057, 0.0174, 0.0269, 0.0218, 0.0285, 0.0293, 0.0192, 0.0113, 0.045, 0.0164, 0.0227, 0.0331, 0.0304, 0.0194, 0.077, 0.0135, 0.0453, 0.0387, 0.0085, 0.0155, 0.033, 0.05, 0.0084, 0.0273, 0.016, 0.0105, 0.0059, 0.1217, 0.0163, 0.0267, 0.0037, 0.006, 0.0171, -0.017, 0.0161, 0.0112, 0.0164, 0.0236, 0.021, 0.0239, -0.0655, 0.0107, 0.0148, -0.0805, -0.0004, 0.0046, -0.0055, 0.0008, 0.0141, 0.0215, 0.0239, -0.0051, 0.0242, 0.039, 0.1103, 0.0715, 0.0216, 0.0307, 0.0057, -0.1081, 0.0183, -0.0283, 0.0438, -0.0097, 0.0373, -0.0035, 0.0054, 0.0097, -0.0142, 0.0145, -0.0334, 0.0505, -0.0308, 0.0131, 0.0219, -0.032, 0.0078, 0.0147, -0.0061, 0.0625, 0.0079, 0.0709, 0.0638, 0.0185, 0.1033, 0.0227, 0.0125, 0.0112, 0.0348, 0.0202, 0.0085, 0.0293, -0.2089, 0.0165, 0.0179, 0.0309, 0.0424, 0.0149, 0.0115, -0.01, 0.0177, 0.0152, -0.0208, 0.1294, 0.0303, 0.0111, 0.0095, 0.0517, 0.0147, 0.0177, 0.021, 0.0379, -0.0764, 0.233, -0.0506, 0.0323, -0.0224, 0.0147, 0.0366, 0.036, 0.0285, 0.0345, 0.0018, 0.0078, 0.0291, 0.0294, 0.0332, 0.0923, -0.0777, 0.025, 0.027, 0.045, 0.009, 0.0227, 0.003, 0.0137, 0.0437, 0.0526, 0.0074, 0.0195, 0.0091, 0.0667, 0.0176, 0.0188, -0.0049, 0.01, 0.0542, 0.018, 0.0205, 0.0425, -0.0003, 0.0071, 0.0271, 0.0215, 0.0097, 0.0104, 0.122, 0.0035, 0.0331, -0.1777, 0.0689, 0.0319, -0.0015, -0.0033, -0.131, -0.0008, 0.0099, -0.189, 0.0325, 0.0003, 0.006, -0.1496, 0.0156, 0.0113, 0.0157, 0.0313, 0.0169, 0.0168, -0.0143, 0.0225, 0.0037, 0.017, -0.0126, -0.0058, -0.1356, 0.0414, -0.0114, 0.0336, 0.0211, 0.0121, 0.0053, -0.0025, -0.001, 0.0407, 0.0533, 0.0266, 0.0174, 0.0198, 0.0213, -0.0013, -0.2266, 0.0209, 0.0091, 0.0254, -0.092, -0.0083, 0.0038, 0.0393, 0.0377, 0.1522, 0.0112, -0.0007, 0.022, 0.0297, 0.0064, 0.0336, 0.0197, 0.0152, 0.03, 0.0118, -0.001, 0.0194, 0.0515, 0.0032, -0.009, 0.0171, 0.0511, 0.005, 0.0026, -0.0065, -0.0179, 0.0307, -0.0242, 0.0041, 0.0236, 0.0262, 0.0241, 0.0157, 0.0183, 0.035, 0.003, 0.0157, 0.0169, -0.0001, 0.0024, 0.0167, 0.0051, 0.0106, -0.0126, 0.0143, -0.0041, -0.0205, 0.0826, 0.0209, 0.0601, 0.0078, -0.0042, 0.0204, 0.0224, 0.0204, -0.3766, -0.0092, -0.0021, 0.0997, -0.0521, -0.1389, 0.0165, 0.01, -0.0014, 0.0485, -0.094, 0.0151, 0.0027, 0.0104, -0.0399, 0.0204, 0.0221, 0.0142, -0.0991, -0.0174, 0.0283, -0.0017, 0.0117, 0.2594, 0.0161, -0.0014, 0.0281, 0.0313, 0.0495, 0.0096, -0.0094, 0.0159, 0.0091, -0.0013, 0.0608, 0.0222, 0.0561, 0.0196, 0.1484, 0.012, 0.0054, -0.0328, -0.0207, 0.0248, 0.169, 0.025, -0.1866, -0.0959, 0.024, -0.0231, 0.0186, 0.0041, 0.0133, 0.0433, 0.0038, 0.01, 0.0148, 0.0232, 0.009, -0.0334, 0.0154, 0.0536, 0.0498, 0.0049, 0.0261, 0.0066, 0.0031, 0.0037, 0.0028, 0.0045, -0.0045, 0.0295, 0.0113, 0.0576, -0.0406, 0.0026, -0.0271, 0.025, 0.0073, 0.0343, -0.0182, 0.0035, 0.0115, 0.0392, 0.0172, -0.0174, 0.196, -0.0891, 0.0371, 0.0016, 0.0055, 0.0279, -0.016, -0.0346, 0.0612, 0.0168, 0.0376, 0.0189, 0.0605, -0.0077, 0.0288, 0.026, -0.0073, 0.0359, -0.0111, 0.0082, 0.0254, 0.0138, 0.0285, 0.0391, -0.7833, -0.0046, 0.006, -0.108, -0.0814, -0.0001, 0.019, 0.078, 0.0159, 0.043, 0.0212, 0.0199, 0.0291, 0.0131, -0.0254, 0.0136, 0.0298, 0.0011, 0.0498, -0.0491, -0.0197, 0.0029, 0.0588, 0.018, 0.0041, 0.0127, 0.0216, 0.0103, -0.0019, -0.0355, 0.0207, 0.012, 0.0182, 0.0039, 0.0144, 0.0177, 0.0181, 0.0387, 0.0218, -0.0081, 0.0266, 0.0383, -0.0195, 0.0548, 0.0863, -0.05, -0.0575, -0.1036, 0.0092, -0.0379, 0.0079, 0.0194, 0.0125, 0.0217, 0.0221, -0.2932, -0.0026, 0.103, 0.0246, 0.0266, 0.0032, -0.0002, 0.0321, -0.0028, 0.0435, 0.0439, 0.045, 0.0163, -0.0012, 0.0324, 0.0436, 0.0296, 0.0186, 0.0579, 0.021, 0.0172, 0.0218, 0.0214, 0.0058, 0.0241, 0.0199, 2.6781, 0.0098, -0.0479, 0.0193, -0.0407, 0.0072, 0.0119, 0.0123, 0.0105, -0.0367, 0.0087, -0.0003, 0.0113, 0.0169, 0.0263, -0.0273, 0.003, 0.0123, -0.0425, -0.0154, 0.1533, 0.0119, 0.0061, 0.0218, 0.0284, 0.003, 0.0161, 0.0126, 0.0223, 0.0081, 0.0128, 0.0398, 0.0114, 0.0165, 0.0325, 0.0056, 0.0352, -0.0488, -0.0635, 0.04, 0.1597, 0.0841, 0.0948, 0.0085, 0.0123, 0.0179, 0.0125, -0.2709, -0.0016, -0.0079, 0.0049, 0.0605, 0.201, 0.0548, 0.0311, -0.0049, 0.0143, 0.0136, -0.0063, 0.0219, 0.017, -0.2189, 0.0142, -0.0004, -0.0117, 0.0421, 0.0042, 0.0091, 0.0162, 0.0579, 0.0227, 0.0353, 0.0646, -0.1061, 0.0114, 0.033, 0.0203, 0.0063, 0.0436, 0.005, -0.0354, 0.0082, 0.0305, 0.0017, 0.0169, 0.0311, 0.0035, 0.0222, 0.0174, 0.0054, -0.0009, 0.0822, 0.0075, 0.0265, 0.0124, 0.0028, 0.0314, -0.0049, 0.0533, 0.0178, 0.0588, 0.0085, 0.0212, 0.0331, 0.0466, 0.0028, -0.0, 0.0188, -0.0575, -0.1747, 0.0761, 0.0233, 0.0205, -0.0033, 0.0317, 0.0136, 0.0175, 0.0326, 0.0183, -0.005, 0.0281, 0.0051, -0.0851, 0.0122, 0.0172, 0.015, -0.0133, 0.1226, -0.0048, 0.0184, 0.0193, 0.0067, 0.0074, 0.0198, 0.0068, 0.0058, -0.0012, -0.0032, 0.0614, 0.0359, -0.0247, -0.0843, 0.0011, 0.0067, -0.0433, 0.0338, -0.0659, 0.0742, 0.0125, 0.0018, 0.0149, 0.0159, -0.0166, -0.0159, 0.0043, 0.0251, 0.0958, 0.0211, 0.0381, -0.2687, -0.2887, -0.0122, -0.1096, 0.0181, -0.0351, 0.136, 0.0248, -0.0232, 0.0229, -0.0111, 0.0156, 0.0047, 0.0271, -0.0359, -0.0052, 0.0143, 0.016, 0.0181, 0.0105, -0.1354, -0.0032, 0.0113, 0.0224, 0.0043, 0.0175, -0.0082, 0.0156, 0.0319, 0.0131, 0.0268, 0.0092, 0.0026, 0.0118, 0.0082, 0.0341, 0.0134, 0.018, 0.0207, 0.0257, -0.0075, 0.0236, -0.0082, 0.0713, 0.1493, 0.0233, 0.0181, 0.037, 0.1926, 0.0549, 0.0278, 0.0456, 0.0446, 0.0338, -0.0022, 0.187, 0.0216, 0.0136, 0.0162, 0.0404, 0.0274, 0.0182, 0.0073, -0.0277, -0.1001, -0.169, 0.0541, -0.0042, -0.0037, -0.0002, 0.0181, 0.0137, -0.086, 0.0341, -0.0143, 0.0333, 0.0338, 0.0271, 0.0213, -0.1115, -0.0076, -0.0011, 0.1743, 0.0206, 0.0202, 0.0362, 0.02, 0.0445, -0.0048, -0.0385, -0.0508, -0.0041, 0.0396, 0.0231, 0.1681, 0.0387, 0.0084, 0.0538, 0.0066, -0.0333, 0.0092, 0.0396, 0.0523, -0.0381, -0.1405, 0.0209, -0.2006, -0.0036, 0.014, 0.0251, 0.0071, 0.0052, 0.0124, 0.0123, 0.0049, 0.0008, -0.004, 0.0437, 0.0141, 0.012, -0.0231, 0.0118, 0.0696, 0.009, -0.0013, 0.0059, 0.0006, 0.018, 0.0087, 0.0146, -0.0212, -0.0096, 0.0205, 0.0146, 0.0249, 0.0628, 0.0248, 0.0328, -0.007, 0.0266, 0.0198, 0.0227, -0.059, -0.0104, -0.0024, 0.0718, 0.0092, 0.0186, 0.0388, -0.0037, 0.0059, 0.0358, -0.3073, -0.0957, -0.0002, 0.0183, 0.0234, 0.028, -0.0038, 0.0164, -0.0128, 0.042, 0.0278, 0.0184, 0.0116, -0.0314, 0.0156, 0.0028, 0.002, 0.0169, 0.0139, 0.0056, -0.0045, 0.0109, -0.0014, 0.0098, -0.1074, -0.0006, -0.0314, -0.0482, 0.042, 0.0449, 0.0387, 0.0144, -0.1865, -0.0129, -0.0882, 0.0519, 0.0213, 0.0328, -0.0432, 0.0015, 0.0652, 0.0039, -0.0429, 0.0515, -0.1086, -0.009, -0.0205, 0.0004, 0.0648, -0.0164, 0.0168, 0.0264, -0.0159, 0.0113, 0.0028, 0.0195, 0.0254, 0.0255, 0.0141, 0.0077, 0.0083, 0.0588, 0.029, 0.0541, 0.0171, 0.0482, -0.1194, 0.018, 0.0217, 0.0046, 0.0168, 0.0196, 0.0296, -0.1855, 0.0285, 0.0283, 0.0338, 0.0136, 0.0198, 0.0338, 0.0409, 0.0011, -0.0025, -0.0481, 0.0113, 0.0236, 0.0063, -0.0019, 0.0166, -0.0001, -0.0304, -0.0006, 0.0044, 0.0149, 0.0138, 0.0165, 0.0184, 0.0381, -0.0071, 0.0307, 0.0032, 0.0159, 0.0056, -0.0884, 0.0124, 0.0363, 0.0214, -0.0006, 0.0242, -0.0004, 0.0082, 0.0177, -0.0279, -0.0864, 0.0184, -0.014, 0.0251, 0.0267, 0.0087, -0.0266, 0.1136, -0.0751, 0.0102, 0.0063, -0.0024, 0.0048, -0.0072, -0.0005, 0.0034, 0.0118, 0.0255, 0.0058, -0.014, 0.0579, 0.0476, 0.0187, -0.0985, -0.0052, 0.0303, 0.0592, 0.0046, 0.0146, 0.0296, -0.0049, 0.0456, 0.0147, 0.0035, 0.0261, 0.0216, 0.0198, 0.02, 0.2541, 0.0543, 0.0284, 0.0011, -0.0044, 0.0233, 0.0107, -0.0031, 0.0168, -0.1009, 0.0065, -0.0048, 0.0225, -0.2654, 0.0031, 0.035, 0.0368, -0.05, 0.0537, 0.0174, 0.009, 0.0392, 0.0232, 0.0508, -0.3541, 0.0145, 0.0005, -0.0012, 0.1755, 0.0084, 0.0343, 0.0436, 0.133, 0.023, -0.0316, -0.027, -0.0415, 0.0204, 0.0225, 0.0362, -0.0215, 0.212, -0.0276, -0.0997, -0.0017, -0.0252, 0.0774, 0.0201, -0.0214, 0.0076, 0.039, 0.2295, 0.0189, 0.0178, 0.0379, 0.0103, -0.0135, 0.0045, 0.0252, 0.0374, 0.0739, 0.0254, 0.0223, -0.0399, 0.0364, -0.0048, 0.0156, 0.0073, 0.0095, 0.019, 0.1129, -0.1818, 0.0365, 0.0088, 0.0267, 0.0022, -0.0041, -0.0078, -0.0054, -0.0192, 0.0155, -0.0108, 0.0003, 0.0215, 0.0313, 0.0261, 0.0301, -0.0426, -0.007, -0.0447, 0.0115, 0.0106, 0.0193, 0.0402, 0.0204, -0.0904, 0.0525, -0.0276, 0.0056, 0.0274, 0.0018, 0.0057, -0.0031, -0.0968, -0.02, -0.0071, -0.0231, -0.0216, -0.0011, -0.0523, 0.0282, 0.0198, -0.0057, 0.011, 0.0784, 0.0138, -0.0388, 0.0322, -0.0027, 0.0056, 0.0091, 0.0258, 0.0179, 0.0114, 0.014, 0.0301, 0.0363, 0.0537, -0.0005, -0.2117, -0.0028, 0.0167, 0.0169, 0.0085, 0.0052, -0.0668, -0.1046, 0.0169, 0.0381, 0.051, 0.004, 0.0454, 0.0211, 0.0096, 0.0788, 0.0426, -0.0019, 0.0126, 0.0363, -0.0002, 0.0356, 0.0059, 0.0459, 0.0442, 0.0259, -0.0257, 0.0205, 0.0008, -0.0766, 0.0295, 0.0547, 0.0506, 0.0281, -0.0017, 0.0179, 0.0109, 0.0138, 0.03, -0.1952, 0.0021, 0.0857, -0.0097, 0.0291, 0.0309, -0.005, 0.0184, 0.0191, -0.0092, 0.0099, 0.0293, 0.0217, -0.0199, 0.0206, 0.0101, -0.0183, 0.0201, 0.0184, 0.0326, 0.0166, -0.0854, 0.0136, -0.149, -0.0108, 0.0989, -0.0238, 0.012, 0.019, -0.0373, 0.0098, 0.0265, 0.0101, 0.0083, 0.0284, 0.033, 0.0328, 0.0268, 0.0708, -0.097, 0.0243, 0.0548, 0.0282, 0.0183, 0.0203, 0.0034, 0.0084, 0.0065, -0.0014, 0.0181, 0.0048, 0.0142, 0.0162, 0.145, -0.0021, 0.0037, 0.0397, -0.02, -0.0272, 0.0006, 0.0491, 0.008, 0.0065, 0.0153, 0.0179, 0.0171, -0.2978, 0.0056, 0.0139, 0.0137, -0.0218, 0.0385, -0.1962, 0.0207, 0.0261, -0.0025, -0.0334, 0.0493, 0.0448, 0.0229, -0.0077, 0.0115, -0.0339, 0.0159, -0.0114, 0.032, -0.1059, 0.0259, 0.0782, 0.0, 0.0142, 0.0035, -0.0394, 0.022, 0.0394, -0.0024, 0.0087, -0.0028, 0.0089, -0.011, 0.0122, -0.0007, 0.0055, 0.0366, -0.0015, 0.01, 0.0115, 0.0447, -0.0083, -0.0087, 0.0304, -0.0337, 0.0029, 0.024, 0.0071, 0.0384, -0.0262, 0.0164, 0.0331, -0.0093, 0.0296, 0.0275, 0.0006, -1.7492, 0.016, -0.0192, 0.0156, 0.053, 0.0161, 0.0161, 0.0033, 0.0083, 0.0361, 0.0239, 0.019, 0.046, 0.0289, -0.0294, 0.0091, 0.0082, 0.0166, 0.021, 0.014, -0.0126, 0.0381, 0.0406, 0.0135, 0.0265, 0.0201, 0.0352, 0.0022, 0.014, 0.0044, 0.0301, 0.0333, 0.0201, -0.0226, 0.0098, 0.0171, -0.1298, 0.0178, 0.0226, -0.0217, 0.0178, 0.0245, -0.0977, 0.038, 0.0044, 0.0273, -0.0254, -0.0229, 0.014, 0.0197, -0.001, 0.0252, -0.0402, -0.0293, 0.0191, -0.0183, 0.0383, 0.0184, 0.0049, 0.0269, 0.0169, 0.0127, 0.0012, 0.004, 0.0002, 0.0188, 0.0568, 0.0408, 0.0093, -0.0777, 0.004, -0.2224, 0.0123, 0.0174, -0.0495, 0.0202, -0.2452, -0.1118, -0.0325, -0.0089, -0.0061, 0.0106, 0.0039, -0.1507, 0.01, -0.0912, 0.0093, 0.0301, 0.012, -0.0135, 0.0165, 0.0215, 0.1745, 0.0146, -0.0215, 0.0247, -0.0534, 0.0247, 0.0745, 0.0066, 0.0252, 0.0183, 0.0138, 0.0057, 0.0127, 0.0175, 0.0154, -0.0004, 0.0213, 0.2024, -0.2392, 0.0274, -0.6456, 0.0078, -0.0517, 0.0256, 0.007, 0.0053, 0.0142, 0.0322, -0.0006, -0.0628, 0.0084, 0.0454, 0.0033, 0.0103, 0.0367, 0.022, -0.0197, 0.0126, -0.0168, 0.0106, -0.0022, 0.0283, 0.0182, 0.0509, -0.0021, 0.0915, -0.1924, 0.0335, 0.0326, -0.0015, 0.0399, 0.0133, 0.0097, -0.3045, 0.0006, 0.0409, 0.0077, 0.0258, 0.025, -0.0642, 0.0165, 0.0143, 0.0413, -0.0267, 0.0023, 0.0239, 0.0224, 0.0073, 0.0493, 0.0161, 0.0132, 0.0203, 0.0509, 0.018, -0.0653, -0.0515, 0.0431, 0.0276, 0.0091, 0.0799, 0.0253, 0.086, -0.04, 0.0191, 0.0113, 0.0095, -0.0033, 0.0207, 0.0199, 0.0249, 0.0269, 0.0007, 0.0071, 0.0548, -0.0031, 0.0257, -0.0136, 0.0117, 0.0387, 0.019, 0.0499, 0.0127, 0.017, 0.0111, -0.0036, 0.017, 0.0047, -0.0138, -0.0153, -0.0168, 0.0206, -0.0166, 0.0292, -0.0046, 0.0259, -0.0797, -0.1444, 0.0364, -0.2556, 0.0504, 0.0889, 0.1126, 0.0275, 0.0753, 0.0045, 0.0101, -0.0129, 0.0376, 0.0081, -0.0201, -0.0052, 0.0312, -0.0006, 0.0065, -0.0964, 0.0051, 0.0356, 0.0094, -0.0083, 0.0403, -0.1502, -0.0345, 0.0284, -0.0005, 0.025, -0.0369, -0.1704, 0.0241, -0.0389, -0.1023, 0.0103, 0.025, 0.0362, 0.0339, -0.0069, 0.1106, 0.0034, 0.0069, 0.0498, -0.0239, 0.0444, 0.0143, 0.0196, 0.0173, 0.0167, 0.0157, 0.0007, 0.0112, 0.0052, 0.0165, -0.019, 0.0334, 0.0525, 0.0112, 0.074, 0.0126, 0.0259, 0.0284, 0.0378, 0.0043, 0.0065, -0.0413, -0.0293, 0.0324, 0.0284, -0.005, 0.0047, 0.0182, 0.0229, 0.0102, -0.0381, 0.066, 0.0278, 0.0355, 0.0166, 0.0111, 0.0048, 0.0138, -0.0194, 0.0189, -0.095, -0.0235, -0.0725, 0.0238, 0.0036, 0.0055, -0.0186, -0.0056, 0.0244, 0.055, 0.0081, 0.0196, 0.001, -0.0667, 0.0047, 0.0022, -0.2115, 0.0226, 0.0058, 0.0321, 0.0112, -0.0273, 0.1805, 0.0191, -0.0376, 0.0014, 0.0191, 0.0545, 0.0228, 0.0249, -0.1084, 0.0261, 0.0167, 0.0351, 0.0022, 0.0187, 0.0584, 0.0237, -0.219, 0.0357, -0.0058, 0.0187, -0.0317, 0.1482, 0.034, 0.0093, 0.0282, 0.0099, -0.0207, -0.11, -0.0291, 0.0782, 0.0509, 0.0097, -0.1034, 0.0464, 0.0145, -0.0627, 0.0242, -0.149, 0.0377, 0.0538, 0.0412, -0.0619, 0.0351, 0.006, 0.4668, 0.0687, 0.0269, 0.0106, 0.0252, -0.0029, -0.1045, 0.006, -0.018, 0.0068, 0.0157, 0.027, 0.0051, -0.0086, 0.0164, 0.0381, 0.0225, -0.0085, -0.0051, 0.015, 0.0182, 0.0107, -0.0578, -0.0169, -0.0114, 0.0076, -0.0215, 0.0105, 0.0017, -0.0549, -0.0098, -0.1082, 0.0382, -0.03, 0.0007, 0.0174, 0.1761, 0.0447, -0.0175, 0.0167, 0.0063, 0.0232, 0.0432, 0.0286, 0.0072, 0.048, 0.0166, 0.026, -0.0414, 0.0281, 0.057, 0.0061, 0.0065, 0.0478, 0.0445, -0.095, 0.0364, -0.0107, 0.0043, 0.0125, 0.0355, 0.0255, 0.0054, 0.0533, 3.2203, 0.0038, 0.0216, -0.0014, 0.0351, -0.0023, 0.0005, 0.0141, 0.0137, 0.0194, 0.0145, 0.0189, 0.0012, 0.0818, 0.0062, 0.0129, 0.0002, 0.003, -0.0278, 0.0071, 0.0123, -0.0068, 0.036, 0.0085, 0.0156, -0.0001, 0.048, 0.0084, 0.0565, 0.0088, 0.0279, -0.0481, 0.0013, 0.0028, 0.0347, 0.0213, -0.0129, -0.0052, 0.0096, -0.008, -0.0547, 0.044, 0.009, -0.0111, 0.0063, -0.0181, 0.0052, 0.0436, -0.0034, 0.0107, -0.0003, -0.0068, 0.0102, 0.0139, 0.0072, 0.0229, 0.0223, 0.0252, 0.0449, 0.005, 0.0395, -0.0794, 0.0432, 0.0326, -0.0882, -0.0046, 0.0504, 0.0122, 0.0351, 0.0028, 0.0122, 0.0049, -0.0029, 0.0297, -0.0142, -0.0021, -0.0123, 0.0007, 0.0452, -0.05, -0.0056, 0.0012, 0.0167, 0.0245, 0.0548, 0.1308, 0.028, 0.0119, -0.0281, -0.0031, -0.0174, -0.0719, 0.0467, 0.0059, 0.0102, 0.0161, 0.0475, 0.0106, 0.0612, -0.0034, 0.0228, -0.008, 0.0084, 0.005, 0.0307, 0.0116, 0.0149, 0.0136, 0.0143, 0.024, 0.0465, 0.0153, 0.0097, 0.0104, 0.0247, 0.0222, 0.1755, 0.0123, 0.0136, 0.009, -0.0504, 0.0414, 0.0062, 0.0123, -0.0721, -0.1021, 0.0408, 0.0138, 0.0296, 0.0082, 0.0153, 0.0071, 0.0266, 0.0322, 0.037, 0.0066, 0.0512, 0.0949, 0.0357, 0.0021, -0.0778, 0.0289, 0.0069, 0.0259, 0.0166, -0.0003, 0.0601, 0.0061, 0.0191, 0.0137, 0.0162, 0.0072, 0.0333, 0.1812, 0.1637, -0.0073, -0.0117, 0.0537, 0.0182, 0.353, 0.036, 0.034, -0.0014, 0.0301, 0.0294, 0.0345, 0.0032, 0.0837, -0.0124, 0.0387, 0.0355, -0.0023, -0.0197, 0.0246, 0.0599, -0.0306, -0.0102, 0.0019, 0.0736, -0.029, 0.0168, 0.026, 0.0022, 0.0502, -0.0036, 0.0199, 0.1544, 0.0661, 0.0179, 0.0388, 0.0068, 0.0314, 0.0085, 0.0153, 0.0171, 0.0231, 0.0235, 0.048, 0.0205, 0.0572, 0.0176, 0.0082, 0.0851, 0.0291, 0.0073, -0.0073, 0.0033, -0.0649, -0.0115, 0.0435, 0.1341, -0.0085, 0.0314, 0.0041, 0.0224, 0.0067, -0.0102, -0.0108, 0.0098, 0.0184, -0.0093, 0.0241, 0.029, 0.0113, 0.018, 0.0231, 0.0077, 0.0205, 0.0071, -0.0061, -0.0046, -0.008, 0.0348, 0.0162, -0.0064, 0.0058, 0.0223, 0.0196, -0.0444, -0.0267, 0.0194, 0.0509, -0.0071, 0.0397, -0.0785, 0.04, 0.0188, -0.011, -0.0042, -0.2713, -0.0137, -0.0027, 0.0312, -0.0408, 0.029, 0.043, 0.07, -0.0136, 0.008, 0.0122, -0.0152, -0.1659, 0.0221, 0.0176, -0.0394, -0.1239, 0.0481, 0.0106, 0.0151, 0.0051, 0.0214, 0.0121, -0.0181, -0.0321, 0.0098, 0.0134, 0.024, -0.3951, 0.0296, 0.0211, 0.0034, 0.0005, 0.0631, 0.0172, -0.1133, 0.0106, 0.015, 0.0037, 0.0179, 0.014, -0.0068, 0.1133, -0.0032, 0.0161, 0.0096, -0.004, 0.0231, 0.0157, 0.0104, 0.0258, 0.0358, 0.0154, 0.0363, 0.0025, 0.0106, 0.0216, 0.0222, 0.0006, 0.0549, 0.0015, -0.0268, 0.0266, 0.0542, -0.0329, -0.3089, 0.0077, 0.015, 0.0487, 0.0354, 0.0192, 0.0281, 0.0144, 0.0243, 0.0269, 0.0027, 0.0591, 0.0503, 0.0287, 0.0365, 0.0314, 0.0115, 0.0163, 0.0143, -0.003, 0.0425, 0.0291, 0.009, -0.0038, 0.0153, 0.0289, 0.0384, -0.0127, 0.0334, -0.005, 0.0051, -0.0149, 0.0103, 0.034, 0.0164, 0.0184, 0.0138, 0.0317, 0.0398, -0.0035, 0.0855, 0.0697, 0.0249, 0.0165, -0.0433, 0.0181, 0.0337, 0.009, 0.0153, 0.0273, 0.0108, 0.011, -0.1664, 0.0034, -0.0131, -0.0021, 0.0079, 0.0026, 0.0412, 0.0657, 0.0328, 0.0267, 0.0308, 0.0195, -0.0414, 0.0065, 0.0018, 0.0396, 0.1047, 0.1017, -0.022, 0.0627, 0.0191, 0.0168, 0.0208, 0.0681, 0.0049, -0.0092, 0.0365, 0.0049, 0.0037, -0.0057, -0.0039, 0.0042, 0.011, -0.1029, 0.0071, 0.0155, 0.0111, -0.0126, 0.0325, 0.0172, 0.0474, 0.0104, -0.1423, 0.0225, 0.047, 0.0177, 0.02, 0.0508, 0.0728, 0.0114, 0.0409, 0.0567, 0.0513, 0.0243, 0.0276, 0.0061, 0.0055, 0.0444, -0.0087, 0.0103, 0.0027, 0.0558, 0.012, 0.014, 0.0677, -0.0079, -0.0007, 0.0267, 0.0124, -0.013, 0.0857, -0.0032, 0.0591, 0.0611, 0.0032, 0.0125, 0.0103, 0.0157, 0.008, 0.0015, -0.1029, 0.0335, 0.0134, 0.0063, 0.0177, -0.0961, 0.0234, 0.0075, 0.0572, 0.019, 0.0027, 0.0099, 0.011, 0.0186, -0.0178, 0.0649, 0.0266, -0.0114, 0.0362, 0.0001, 0.0132, 0.0204, 0.0291, -0.0058, 0.0545, 0.0413, 0.0236, 0.0247, 0.0262, 0.0247, -0.0471, 0.0184, 0.008, 0.0381, 0.0218, 0.0459, -0.0103, 0.0304, 0.0101, 0.0355, 0.0115, 0.0101, 0.0229, -0.0086, 0.0109, 0.0307, 0.0512, -0.0012, 0.0004, 0.0221, 0.0154, 0.0169, 0.0108, 0.0434, -0.0787, -0.0175, -0.0085, 0.0196, 0.0191, 0.0418, 0.0355, 0.0272, 0.0155, 0.0188, 0.0999, 0.0183, 0.0124, 0.0225, 0.0119, 0.0014, 0.0265, 0.0054, -0.0294, 0.0393, 0.0238, 0.0183, 0.0218, 0.0249, 0.0371, 0.0367, 0.0307, -0.0648, 0.0019, 0.0179, -0.0117, 0.0175, 0.0181, 0.0029, 0.0186, 0.0494, 0.0249, 0.0236, 0.0164, 0.0158, 0.0174, -0.0624, 0.0273, 0.1624, -0.021, 0.0122, 0.0112, 0.0376, 0.0174, 0.061, 0.0167, 0.0242, 0.0185, 0.0574, 0.0365, -0.0004, 0.0171, -0.017, -0.0551, 0.0263, 0.0357, 0.0136, 0.0438, 0.0652, 0.015, 0.0573, 0.0176, 0.0099, 0.0025, 0.0209, -0.0075, -0.0054, 0.0207, 0.0152, 0.0105, 0.0172, 0.0102, 0.0154, 0.008, 0.0455, 0.0871, 0.05, 0.0097, 0.0043, 0.0088, 0.0063, 0.0122, 0.0159, 0.0249, 0.008, 0.0274, -0.0026, 0.0043, 0.0113, 0.0127, 0.0077, 0.0266, 0.0412, 0.0181, 0.0155, -0.0077, 0.0676, 0.0161, 0.0093, 0.0091, 0.026, 0.007, 0.003, 0.0566, 0.0109, 0.0172, 0.0125, 0.0051, 0.0609, -0.0184, -0.0596, 0.0242, 0.0225, 0.0046, 0.0021, 0.0176, 0.0247, -0.1284, 0.0162, 0.0174, 0.0094, 0.0398, 0.0813, 0.0302, -0.02, 0.027, 0.0179, 0.013, -0.0044, 0.0103, -0.085, 0.0043, 0.0178, -0.0122, -0.0059, 0.0142, 0.0063, 0.0028, 0.0075, 0.0254, 0.0538, 0.0616, 0.0888, -0.0051, 0.0189, 0.0204, 0.0256, 0.0077, -0.0108, 0.0348, 0.0118, -0.1157, 0.0454, 0.0227, 0.0119, 0.0284, -0.0027, -0.0076, 0.0199, -0.0538, 0.0044, -0.0122, 0.0037, 0.0104, -0.121, 0.0182, 0.0166, -0.058, 0.0364, 0.0211, -0.009, 0.0308, -0.0088, -0.0816, -0.0087, 0.0327, -0.1056, 0.0151, -0.2896, -0.0409, -0.0153, 0.1233, 0.0192, 0.0073, 0.0499, 0.0067, 0.016, 0.0098, -0.016, 0.0094, 0.0215, 0.0106, 0.0152, 0.0044, 0.02, 0.0905, 0.0151, 0.079, 0.022, 0.0163, 0.0056, 0.037, 0.0216, 0.0415, -0.0038, -0.0065, 0.0141, -0.0044, 0.024, -0.023, -0.0548, 0.0302, 0.0132, 0.0261, 0.1084, 0.0348, 0.0182, -0.2197, 0.031, 0.0183, 0.0197, -0.0188, 0.0715, 0.0248, 0.0009, 0.0036, -0.11, 0.0536, 0.0213, 0.0324, 0.0263, 0.0083, 0.007, 0.0033, 0.0064, 0.0149, 0.0066, 0.0388, -0.0154, 0.0555, -0.0003, 0.0999, 0.0072, 0.0028, 0.0291, -0.0118, 0.0107, 0.0212, 0.0247, 0.0229, -0.0055, -0.0869, -0.0779, 0.0183, 0.0005, 0.0383, 0.0173, 0.0032, -0.2039, 0.0172, 0.0104, 0.0352, 0.0122, 0.0302, 0.0294, 0.0357, 0.062, -0.0017, 0.0196, 0.0363, -0.0147, 0.0244, 0.0144, 0.0226, 0.0539, -0.0285, 0.1223, 0.0216, -0.0105, 0.0166, 0.0222, 0.0547, 0.023, 0.0192, 0.0148, 0.033, 0.0345, 0.0002, 0.0229, -0.0318, 0.0011, 0.0043, 0.0026, 0.0009, 0.1244, -0.0424, 0.026, 0.0456, 0.0252, 0.03, 0.0245, 0.0026, 0.0164, -0.0084, 0.0153, 0.0034, 0.0081, 0.0449, 0.2985, 0.0566, 0.0037, 0.0167, 0.0373, 0.015, 0.0264, -0.0299, 0.002, -0.0153, 0.0594, -0.0653, 0.0559, 0.0209, 0.0129, 0.0096, -0.0286, 0.0135, 0.1089, 0.0549, 0.0093, -0.0468, -0.0033, -0.0092, 0.0409, 0.0015, 0.0018, 0.0433, -0.1117, 0.0353, 0.0426, -0.0017, -0.0066, 0.0119, 0.0075, 0.0276, 0.0203, 0.0093, 0.002, 0.0894, 0.0477, 0.0292, -0.0307, 0.0254, -0.0141, -0.0145, 0.0341, 0.0048, 0.0052, -0.0164, 0.0154, 0.0094, -0.0019, -0.0189, 0.0454, 0.0875, 0.0029, 0.0484, 0.0048, 0.0196, -0.0442, 0.0288, 0.0096, -0.0029, 0.0623, 0.0083, 0.0185, 0.068, -0.0697, 0.0239, -0.1044, 0.0387, 0.1915, 0.0144, 0.0134, 0.0005, 0.0035, 0.0073, -0.03, -0.0017, 0.008, -0.0228, -0.0052, 0.0043, 0.0299, 0.0062, 0.0059, 0.0205, 0.0036, -0.0192, 0.0297, 0.0129, 0.0176, 0.0413, -0.0006, -0.0003, 0.0226, -0.1215, 0.1215, 0.028, 0.0095, 0.1617, 0.0005, 0.0354, -0.0013, 0.0076, -0.0062, 0.0205, 0.0031, 0.044, 0.0269, 0.0209, 0.0133, 0.0065, 0.0186, -0.0048, -0.0198, 0.0041, 0.0075, -0.0087, 0.0561, 0.1103, -0.0003, 0.0189, 0.0037, 0.017, 0.0339, 0.0157, -0.0097, 0.1042, -0.248, 0.0082, -0.0041, 0.0157, 0.0336, -0.0357, -0.0342, 0.1053, -0.014, 0.0163, 0.0044, 0.019, -0.0894, -0.0055, 0.0879, -0.1342, -0.037, 0.0091, 0.0065, -0.0437, -0.0053, 0.0222, -0.0609, 0.0123, 0.0195, -0.004, -0.2158, 0.0155, 0.0165, 0.0014, 0.0397, -0.0101, 0.0146, 0.0157, 0.0418, 0.0148, 0.0032, 0.0182, 0.0168, 0.0633, -0.0046, -0.2581, 0.0092, 0.0538, -0.0033, -0.3265, 0.0183, 0.0197, 0.0376, 0.0119, -0.0658, 0.0061, 0.0101, 0.0621, 0.0382, 0.0227, -0.0342, -0.003, -0.0074, 0.0458, -0.0056, 0.0311, 0.0006, 0.0192, 0.0228, 0.0249, 0.0033, 0.0288, 0.0137, 0.0215, 0.0376, 0.0553, 0.0213, 0.0118, 0.0477, 0.0238, -0.0005, 0.031, 0.0141, 0.0076, 0.031, 0.0608, -0.026, 0.0146, 0.0092, -0.0033, -0.001, -0.0307, 0.0163, -0.0343, -0.0232, -0.0603, -0.1663, 0.0205, 0.0078, 0.0291, 0.0401, -0.0666, -0.0337, 0.0421, 0.0109, -0.0041, -0.0063, 0.0377, 0.0178, 0.0329, 0.0012, 0.0176, 0.0067, -0.0195, 0.0173, 0.0349, -0.0282, 0.028, 0.0116, -0.0012, 0.0199, 0.0191, 0.0257, 0.0251, -0.0492, -0.0284, 0.0119, 0.0404, 0.035, 0.0222, -0.0266, 0.0163, 0.0194, 0.0342, -0.0232, 0.0593, 0.0405, 0.0281, -0.0276, 0.024, 0.0102, 0.0357, 0.0036, 0.0276, 0.0033, 0.0238, 0.0437, -0.0772, 0.0275, 0.0149, 0.0411, 0.0241, 0.0085, 0.0128, 0.0189, 0.0279, 0.0048, 0.0216, 0.0425, -0.0116, 0.0092, 0.1319, 0.0343, 0.0164, 0.1007, 0.0113, 0.0061, 0.0442, -0.0174, 0.0144, 0.0235, -0.0106, 0.0265, 0.0235, 0.041, -0.0169, 0.0102, 0.0367, 0.0161, 0.0366, -0.0432, -0.0028, 0.0248, 0.0704, 0.0098, -0.0489, 0.0108, 0.0109, 0.0253, 0.0116, 0.011, 0.0096, -0.0339, 0.0154, 0.0106, -0.0108, 0.0393, -0.0006, -0.0158, 0.0104, 0.0152, -0.27, 0.0378, 0.0218, -0.0057, 0.0109, 0.0119, 0.026, -0.0112, 0.0214, -0.2437, 0.0462, 0.0209, -0.0738, 0.0102, 0.0506, 0.0645, 0.0812, 0.0252, 0.0971, 0.0172, -0.005, -0.0192, 0.0733, -0.0156, 0.2728, 0.051, 0.1621, 0.0143, 0.0049, -0.0072, -0.0046, -0.0524, -0.007, 0.0147, -0.0322, 0.1106, -0.0012, -0.0453, 0.025, 0.0083, 0.0046, -0.0021, 0.0192, 0.0191, -0.0, 0.0168, 0.0083, 0.0144, -0.4896, 0.0152, 0.0422, 0.0182, -0.1232, 0.057, -0.0358, 0.1311, -0.1037, -0.0695, 0.0276, 0.0447, 0.0222, 0.0654, 0.0576, 0.038, 0.0306, 0.0264, 0.0745, -0.2397, 0.0123, 0.0304, 0.0474, 0.0311, -0.0082, -0.0045, 0.0413, 0.0945, -0.0234, -0.0676, 0.0291, 0.0407, 0.0012, 0.0644, 0.0228, 0.0286, -0.0327, 0.0165, 0.036, 0.0205, 0.0123, 0.0114, 0.0619, 0.0125, -0.004, -0.0135, 0.0352, -0.2338, 0.0058, 0.0493, 0.0279, 0.0085, 0.0362, 0.0265, 0.0068, 0.0351, 0.0284, -0.1646, -0.1732, -0.141, 0.0302, -0.0763, 0.0053, -0.1108, 0.056, -0.011, 0.0249, 0.0427, 0.0042, 0.0096, 0.0354, -0.0302, 0.0333, 0.0364, 0.0065, 0.0187, -0.0193, -0.0588, 0.0189, 0.1214, -0.0237, 0.1396, 0.0139, -0.0491, -0.0987, -0.0023, 0.0237, 0.0329, -0.0027, 0.0036, 0.0276, 0.0039, 0.0099, 0.0246, 0.0337, 0.0133, 0.0247, 0.0085, 0.0833, 0.0114, 0.0125, 0.043, 0.0594, 0.0106, 0.0215, -0.1123, 0.0223, 0.0543, 0.015, 0.0139, 0.0519, -0.0139, 0.0151, 0.0258, 0.0384, 0.0906, 0.0008, -0.0331, 0.0142, 0.023, 0.0003, -0.0223, 0.0377, 0.0253, 0.058, 0.0326, 0.0225, 0.0014, 0.0033, 0.0013, 0.0225, 0.021, 0.0124, 0.0256, -0.0059, -0.0251, 0.0108, 0.0058, 0.0474, -0.0105, 0.1261, 0.0047, 0.0142, 0.033, 0.1465, -0.0749, 0.0178, 0.0388, 0.0632, -0.1222, 0.0069, 0.0272, 0.0195, -0.0004, 0.0225, 0.0868, 0.0096, 0.0351, 0.0205, 0.0214, 0.0026, 0.0479, 0.0187, 0.0385, 0.0154, 0.0127, -0.1817, -0.0507, 0.0065, 0.0136, 0.0256, -0.053, 0.091, 0.014, 0.016, 0.0289, 0.025, 0.0239, 0.0013, 0.0691, 0.0252, 0.0292, -0.0215, 0.0251, 0.013, -0.0588, 0.0817, 0.013, 0.01, 0.0392, 0.012, -0.0051, 0.0127, 0.0411, 0.0027, 0.0361, 0.0298, 0.0134, 0.0119, -0.0034, -0.0026, 0.0013, -0.0374, 0.0224, 0.0424, -0.031, 0.0173, -0.004, -0.0968, 0.0094, 0.0244, 0.0168, 0.0406, 0.0302, 0.0083, -0.0253, 0.0105, 0.0576, 0.0418, 0.0385, 0.0525, -0.0014, -0.0752, -0.0017, 0.0449, 0.0555, 0.0285, 0.0188, -0.0011, 0.0487, 0.0409, 0.0425, 0.0266, 0.01, 0.0286, -0.0712, -0.0201, -0.1794, 0.0079, 0.0369, 0.0192, -0.0447, 0.1032, -0.0004, 0.0608, 0.0185, -0.0361, -0.1231, -0.0125, 0.0145, 0.0083, 0.0024, 0.0092, 0.0322, -0.0076, 0.0472, 0.0317, 0.0195, 0.0252, 0.013, 0.0282, -0.087, 0.0248, 0.0173, -0.1364, 0.0181, 0.0163, 0.0192, 0.0274, 0.0278, 0.0041, 0.0047, 0.01, -0.0387, 0.0212, -0.0086, 0.0121, -0.0506, 0.041, 0.0711, 0.0443, 0.0356, -0.012, 0.0176, -0.0349, 0.046, 0.0205, 0.0222, -0.005, 0.002, 0.0109, 0.0079, 0.0562, 0.0287, 0.0179, 0.0371, 0.031, 0.0211, 0.0182, 0.0263, 0.0161, -0.0557, 0.0728, -0.0023, 0.0397, 0.0162, 0.1698, 0.0608, 0.0012, -0.029, 0.0049, 0.0271, -0.0181, 0.0205, 0.0172, 0.0009, 0.0091, 0.0237, -0.0424, 0.0096, 0.0236, -0.0776, -0.0161, 0.0214, -0.0186, 0.0054, 0.0261, 0.0114, 0.0189, -0.0331, -0.0122, 0.0181, 0.0169, 0.0625, 0.01, 0.0231, -0.0126, 0.0104, -0.0211, -0.046, 0.0054, -0.0148, 0.0378, -0.076, 0.0161, 0.0757, 0.021, 0.0679, -0.0027, 0.0364, 0.009, 0.053, 0.0467, 0.0208, -0.068, 0.0115, 0.0257, 0.0149, 0.02, -0.0413, 0.1023, -0.3759, 0.0391, 0.0284, -0.0107, 0.0128, 0.0131, -0.09, 0.0016, 0.0122, 0.0097, 0.0174, -0.0506, 0.0009, 0.0054, 0.0219, 0.0042, -0.0691, -0.0203, -0.0342, 0.0273, 0.0085, 0.0083, 0.0391, 0.0039, -0.0101, -0.0112, 0.0227, 0.0101, 0.0041, 0.021, 0.0131, 0.0257, 0.0162, 0.0636, 0.0374, 0.0167, 0.2399, 0.0519, 0.0074, -0.022, 0.015, 0.0268, 0.0069, 0.0004, -0.0083, -0.0038, -0.0071, 0.0168, 0.0011, 0.0251, 0.031, -0.018, 0.0054, -0.0188, 0.0356, 0.0681, 0.0957, 0.029, -0.0127, 0.0204, 0.0059, 0.0247, 0.0042, 0.0325, -0.0486, 0.0433, 0.027, 0.0229, 0.0428, -0.062, 0.0102, 0.01, 0.0221, 0.0227, 0.012, 0.0109, 0.0103, 0.0332, 0.0223, 0.0117, -0.0465, 0.0118, 0.0329, -0.0658, -0.0879, -0.0234, -0.0089, 0.0088, 0.0322, 0.0581, 0.0143, -0.0025, 0.0123, 0.0424, 0.0441, 0.0124, 0.0101, 0.0321, 0.0267, 0.0292, 0.0255, 0.0153, 0.1083, 0.0006, 0.002, 0.0093, 0.0122, 0.0194, 0.0104, 0.1779, 0.0236, -0.0101, 0.0222, 0.0136, -0.0341, 0.0392, 0.0238, 0.0023, -0.019, 0.0217, 0.0609, 0.017, 0.011, 0.0177, -0.0686, 0.0321, 0.0086, 0.0039, 0.0344, 0.0341, -0.0252, 0.0155, 0.0123, 0.0339, -0.0019, 0.0104, -0.1342, 0.0228, -0.0027, -0.0114, -0.0021, -0.0315, 0.0277, 0.0294, 0.0179, 0.0133, 0.0204, 0.0336, 0.044, 0.0124, 0.0125, -0.0078, 0.0397, -0.0042, 0.0248, 0.0093, 0.009, 0.0141, -3.9036, 0.0348, 0.0759, 0.0234, 0.0329, 0.0407, 0.0523, 0.005, 0.0236, 0.0472, 0.0663, -0.1737, 0.0246, 0.022, -0.0739, 0.0147, 0.0172, 0.0523, 0.0043, 0.0009, -0.0063, 0.057, 0.0203, 0.039, -0.0087, 0.029, 0.0049, 0.005, 0.0464, -0.3599, -0.0193, 0.0244, 0.0201, 0.0191, 0.0314, 0.0405, 0.1258, 0.1085, -0.0171, 0.0132, 0.0018, -0.0182, 0.0165, 0.0092, 0.0072, 0.0181, 0.0071, 0.0203, 0.0169, 0.0964, 0.0657, -0.0341, 0.0052, -0.0062, 0.0184, 0.0843, 0.0357, -0.0021, -0.0253, 0.0065, 0.0395, -0.3376, 0.0006, 0.0093, -0.0196, 0.0466, 0.0015, 0.014, 0.023, 0.0126, 0.0231, 0.0149, -0.1702, 0.0215, 0.0471, 0.0903, -0.0216, 0.0417, 0.0691, 0.0483, 0.0026, 0.0735, 0.0029, 0.0087, 0.0253, 0.0069, 0.0114, 0.0384, 0.0123, 0.0205, -0.0037, 0.0415, 0.0116, 0.0214, 0.0383, 0.0338, 0.0339, 0.0408, -0.0051, 0.019, -0.0083, 0.0151, 0.009, 0.0265, 0.0118, -0.0058, -0.0011, -0.1063, 0.0502, 0.0384, 0.0353, -0.1703, -0.1502, -0.1292, 0.0525, 0.0056, 0.0372, 0.0056, 0.0362, 0.0865, 0.0224, 0.0277, 0.0042, 0.0054, 0.0154, -0.0285, 0.0671, 0.0318, 0.0386, 0.0193, -0.0011, 0.0126, -0.2008, 0.0251, 0.0307, -0.0085, 0.0045, 0.0483, 0.0302, 0.0179, 0.01, 0.0114, -0.0383, 0.0148, 0.005, 0.0081, 0.0279, 0.036, -0.0681, -0.2505, 0.0094, 0.0152, 0.0081, 0.0164, 0.1073, 0.0018, 0.0076, 0.04, 0.0229, 0.0351, 0.0097, -0.1797, -0.0135, 0.0222, -0.0002, -0.0295, 0.0548, -0.0332, 0.1169, 0.1142, 0.0258, 0.021, 0.0607, -0.1281, 0.018, 0.0187, 0.0372, 0.0336, 0.0313, 0.0331, -0.022, -0.0087, 0.0329, 0.0033, -0.0337, 0.025, -0.0153, -0.029, -0.0205, 0.0158, -0.0305, -0.0559, 0.0141, 0.0518, 0.0357, 0.0229, 0.0123, 0.067, -0.1002, 0.0096, 0.0167, 0.0133, -0.0194, 0.0049, 0.0174, 0.0197, 0.0277, 0.0046, 0.0245, 0.0072, 0.0253, 0.0212, 0.0181, 0.0167, -0.0279, -0.0904, -0.097, 0.0142, 0.0453, -0.0201, 0.0194, 0.0294, 0.0101, 0.0678, 0.0271, 0.0136, -0.0195, 0.0121, 0.0211, 0.0023, 0.0555, 0.0043, 0.028, 0.0367, 0.0234, 0.0294, 0.0227, -0.0592, 0.0195, 0.0484, 0.0444, 0.0805, 0.0328, 0.0407, 0.0092, 0.0112, 0.116, 0.0207, 0.026, -0.0021, 0.0262, 0.0182, -0.0713, -0.002, 0.02, -0.0735, 0.0143, 0.0027, -0.0165, 0.0814, 0.0212, 0.0477, 0.0735, 0.0439, 0.0511, 0.0353, 0.004, -0.0354, 0.0428, 0.8077, -0.0089, 0.0274, -0.152, -0.0635, 0.0564, 0.015, 0.0103, 0.0115, 0.0188, 0.0567, 0.0413, -0.2301, 0.0929, 0.0241, 0.0213, 0.0106, 0.0069, 0.0492, 0.0124, 0.0058, 0.0096, 0.0044, 0.0406, 0.0473, 0.0533, 0.0812, -0.0274, 0.0227, 0.0113, -0.0038, -0.0027, 0.0263, 0.0336, 0.021, 0.0422, 0.0585, 0.0442, 0.0882, -0.1476, 0.0563, 0.0019, 0.1287, 0.0161, 0.006, -0.0239, -0.0007, -0.0058, -0.0161, 0.0132, 0.0481, 0.0072, 0.0158, 0.0177, -0.0355, -0.0407, -0.0059, 0.0164, -0.0176, 0.0091, 0.0279, 0.0117, -0.2497, 0.0108, 0.0097, 0.0112, 0.0592, -0.0368, 0.0001, 0.1473, -0.0138, 0.0095, 0.016, 0.0472, 0.0205, -0.0156, 0.0187, 0.0009, 0.118, 0.0021, 0.0071, 0.0117, -0.0178, 0.009, 0.0154, 0.02, -0.0363, -0.2098, -0.089, -0.084, 0.0401, 0.0323, 0.0455, 0.0001, -0.0051, 0.0282, 0.0108, 0.009, -0.0003, 0.0116, 0.0219, 0.0119, -0.0698, -0.0075, -0.0087, 0.0371, 0.16, -0.011, 0.026, 0.1573, 0.0225, 0.0538, 0.0181, 0.0316, -0.0284, 0.0342, 0.0031, 0.0309, 0.0169, 0.0362, 0.1211, -0.0402, 0.045, 0.0485, 0.0163, 0.0222, 0.01, 0.0441, -0.0523, -0.0035, -0.0185, 0.0082, -0.0118, 0.0146, -0.0288, 0.0069, 0.0121, 0.0151, 0.0308, 0.02, 0.014, 0.0112, -0.0853, 0.1168, 0.0143, 0.0194, 0.0151, 0.0538, 0.0261, -0.0404, 0.017, 0.0399, 0.0176, 0.0235, 0.006, 0.0164, 0.0174, 0.0633, 0.1111, 0.019, -0.0362, 0.0055, 0.0087, 0.0071, 0.0422, -0.0127, 0.0491, 0.0634, 0.0075, -0.0777, 0.0327, 0.0001, 0.0186, 0.0295, 0.0112, 0.0683, 0.0142, 0.0249, 0.0916, 0.0243, 0.0178, -0.008, 0.004, 0.0067, -0.0122, 0.0439, 0.0082, 0.0091, -0.0531, 0.0215, 0.0227, 0.0206, 0.0006, 0.0172, 0.0176, 0.0043, -0.0143, -0.0198, 0.0234, -0.069, 0.0179, 0.0204, 0.0362, 0.0597, 0.0182, 0.0774, 0.01, 0.0202, 0.0368, -0.1112, 0.1493, 0.0011, 0.0151, 0.0031, 0.05, 0.033, 0.0134, 0.0333, 0.012, -0.0116, -0.0059, -0.0083, 0.0142, 0.0049, -0.0497, 0.0256, 0.0358, 0.0207, 0.0426, 0.0005, -0.0074, 0.1134, 0.0507, 0.0719, 0.0414, 0.0023, 0.0194, 0.0153, 0.0144, 0.0221, 0.001, 0.0131, -0.0897, 0.1322, 0.0431, 0.0194, 0.0106, -0.0, 0.0302, 0.0625, 0.0369, 0.0229, 0.0189, 0.005, 0.0306, 0.0196, 0.0093, 0.0239, 0.083, -0.11, 0.0158, 0.0001, 0.0187, -0.0741, 0.0267, 0.0264, -0.0015, 0.0272, 0.2403, 0.0312, 0.0175, -0.0053, 0.0223, -0.2791, 0.0634, 0.0102, 0.0069, 0.0659, 0.063, 0.0041, 0.0244, -0.0465, 0.0176, 0.0856, 0.0048, 0.005, -0.0011, -0.0224, -0.0068, -0.0111, 0.0554, 0.0168, 0.0536, 0.0112, 0.0123, 0.019, -0.0457, 0.0603, 0.0629, -0.0574, -0.0107, 0.0251, 0.144, 0.0238, 0.0226, 0.0099, 0.0201, 0.0113, 0.0174, 0.0806, -0.0282, 0.0186, 0.0016, 0.0091, 0.01, 0.0214, 0.0074, 0.0241, 0.0341, 0.0129, 0.0035, 0.0382, 0.0127, 0.0201, 0.0255, 0.0181, 0.0009, 0.0146, 0.0588, 0.1173, 0.0298, -0.0123, 0.0039, -0.0029, 0.004, -0.0035, 0.0353, 0.0744, 0.0083, 0.033, -0.0011, 0.0501, 0.0035, 0.0245, -0.0046, 0.0047, 0.0031, 0.0133, 0.0273, 0.0099, 0.0124, 0.0011, 0.019, 0.0088, 0.0183, 0.0068, -0.1132, 0.0154, 0.0302, 0.0861, 0.0957, -0.0034, 0.0144, 0.0346, 0.0128, 0.017, 0.0247, 0.0158, -0.0122, 0.0332, 0.0095, 0.0125, 0.1164, 0.0246, 0.0308, 0.0052, 0.0101, 0.0798, 0.0139, 0.0208, 0.009, 0.0298, -0.0323, -0.0184, 0.016, 0.028, 0.0291, -0.1777, -0.0127, 0.0039, 0.0209, 0.0322, 0.0124, 0.0345, 0.0057, 0.0297, 0.0265, 0.0307, 0.0012, -0.0286, 0.0092, -0.1462, 0.029, -0.1453, -0.0009, 0.0512, 0.0367, 0.0308, 0.0035, 0.0002, 0.0235, -0.0049, 0.0161, 0.0896, -0.098, 0.0332, 0.1041, 0.0071, -0.0093, 0.0281, 0.0137, 0.0259, 0.0477, 0.0202, 0.0102, 0.0277, -0.096, 0.0083, 0.0009, 0.0142, -0.0314, -0.0253, 0.0202, 0.0141, 0.009, 0.0819, 0.0355, -0.014, 0.0322, 0.0199, -0.0584, 0.0483, 0.036, 0.0583, -0.0024, -0.0374, 0.041, -0.0092, -0.0026, 0.015, 0.0258, -0.1041, 0.0281, 0.0456, 0.0226, 0.1054, 0.013, -0.0222, 0.0102, 0.0185, 0.0048, 0.0146, 0.0141, 0.0129, 0.0371, 0.0274, 0.0262, 0.0348, 0.0154, -0.0446, 0.0142, -0.0171, 0.0187, 0.0116, 0.0096, 0.0295, 0.0044, 0.0158, 0.0158, 0.1014, 0.0332, 0.0391, 0.0218, 0.1554, -0.0729, 0.0518, 0.0212, 0.0262, -0.0077, 0.1607, 0.0594, 0.0397, 0.0782, -0.0805, 0.0145, 0.0188, 0.0097, 0.0171, 0.019, 0.013, 0.0062, -0.001, 0.0917, 0.0591, -0.0066, 0.0153, 0.0347, -0.0015, 0.0168, 0.0575, 0.0115, 0.004, 0.0197, -0.0439, 0.0191, 0.0147, 0.0287, 0.0007, -0.0216, -0.0144, 0.0239, 0.0212, 0.0018, -0.0193, 0.0006, -0.0103, 0.0051, -0.0056, 0.0355, -0.0005, 0.0188, -0.0043, 0.0099, -0.0076, 0.0087, -0.0807, 0.0092, -0.6092, -0.0261, 0.015, 0.0446, 0.0139, 0.0078, -0.9789, 0.0286, 0.0129, -0.0, 0.0249, 0.06, 0.0294, 0.1276, -0.0273, -0.0658, 0.0157, 0.0302, -0.049, 0.0233, 0.0275, 0.0143, 0.008, 0.0435, 0.02, -0.0164, 0.0312, 0.017, 0.012, -0.0378, 0.0104, -0.048, 0.0212, 0.0048, -0.0005, -0.0439, -0.0007, 0.0108, 0.0593, 0.0119, 0.0182, -0.0004, -0.0213, 0.0946, -0.0419, 0.0593, -0.0102, 0.0774, 0.0322, 0.0085, 0.0133, 0.0196, 0.0107, 0.0362, 0.0452, 0.0209, 0.0024, 0.0097, -0.0373, 0.0079, 0.034, 0.0146, 0.0172, 0.0213, -0.0349, 0.0103, -0.0605, 0.0251, 0.0061, 0.0305, 0.0477, 0.0482, 0.0149, -0.1705, 0.0172, 0.0089, 0.0048, 0.0179, -0.0725, 0.0175, 0.0348, -0.0468, -0.0321, 0.0538, 0.0147, 0.013, 0.0119, -0.0227, 0.0491, -0.0107, 0.0684, 0.0085, -0.2129, 0.2517, 0.0225, 0.0414, 0.0222, 0.0435, 0.0234, 0.0232, 0.0118, 0.0092, 0.019, 0.0211, 0.0148, -0.0019, 0.0461, 0.012, 0.0289, 0.013, 0.0263, 0.0679, 0.0214, 0.0233, 0.0044, 0.0159, 0.2774, 0.0149, 0.0141, 0.021, 0.0047, -0.0395, -0.0342, 0.0235, 0.0546, 0.0207, 0.0669, 0.0067, -0.0003, -0.0095, 0.051, 0.0305, 0.0262, 0.0149, 0.024, 0.0353, 0.0068, -0.0156, -0.0084, 0.0882, 0.0123, 0.0114, 0.0032, 0.0256, 0.0304, 0.0073, 0.0033, -0.4936, -0.0518, -0.202, 0.0045, -0.0376, 0.0053, 0.111, 0.012, 0.0154, 0.0179, 0.0322, 0.1101, 0.012, 0.0059, 0.0158, -0.0523, 0.023, 0.0307, 0.0132, 0.0216, 0.0174, -0.0236, 0.0086, 0.0206, 0.011, 0.0207, 0.0455, 0.0264, 0.0027, 0.0031, 0.0667, 0.0377, 0.0234, -0.0289, 0.0201, 0.0285, 0.0186, -0.0069, 0.0161, 0.0018, 0.0023, 0.0258, 0.0503, -0.014, 0.0378, 0.022, 0.013, 0.0143, 0.0316, 0.0203, -0.013, -0.0037, -1.2267, 0.1477, -0.001, 0.017, 0.0042, 0.0121, 0.0282, 0.0403, 0.0053, -0.0006, -0.1998, 0.0155, -0.1419, 0.0072, -0.2455, -0.0691, 0.0703, -0.0188, 0.0131, -0.0845, 0.0303, 0.0622, 0.0349, 0.0086, 0.0064, 0.0618, -0.039, 0.0125, 0.0384, 0.0045, -0.1931, 0.0061, -0.1605, 0.0143, -0.0309, -0.0071, 0.0431, 0.0066, -0.0243, 0.0005, 0.0298, 0.0123, -0.0049, 0.0283, 0.0257, -0.3467, -0.1391, 0.0066, 0.0232, 0.0175, 0.0231, -0.3411, 0.1114, -0.0141, 0.0397, 0.0278, 0.0162, 0.0394, -0.0623, 0.0237, -0.062, -0.0311, -0.0052, -0.0024, 0.0012, 0.0199, 0.0231, 0.0356, -0.0194, -0.0023, -0.0179, 0.0097, -0.0049, -0.0108, 0.007, 0.1373, 0.0613, 0.0007, 0.018, 0.0178, 0.0056, 0.0273, -0.1562, -0.2234, 0.0083, -0.133, -0.0042, 0.0535, 0.0022, 0.0507, -0.0542, -0.0205, 0.0026, 0.0061, -0.2788, -0.0052, -0.0547, 0.0202, 0.5441, -0.0074, 0.0313, 0.0176, 0.0702, 0.0564, 0.0211, 0.0242, 0.0293, 0.0124, 0.0309, 0.0086, 0.0158, 0.0121, -0.0016, 0.0152, 0.0065, 0.0408, 0.0085, -0.0629, -0.0139, -0.0214, 0.052, 0.0199, -0.0186, 0.0168, 0.0217, 0.0354, 0.0314, 0.0079, 0.0222, -0.0034, 0.019, 0.0328, 0.016, 0.017, 0.0633, 0.0072, 0.0239, 0.041, 0.0399, 0.0151, 0.0203, 0.0033, 0.0099, 0.03, 0.0231, -0.0632, 0.0158, -0.021, 0.0112, 0.0536, -0.0555, 0.1292, 0.1123, -0.1829, 0.0046, 0.0129, -0.0063, -0.034, -0.0173, 0.0032, -0.0048, 0.0286, -0.0285, 0.0099, 0.0002, 0.0248, 0.0459, 0.028, 0.0102, -0.0042, 0.0389, 0.0261, 0.0026, 0.0733, 0.0042, 0.0323, 0.041, 0.0089, 0.0111, 0.0048, 0.0148, 0.1662, 0.0817, 0.0047, 0.0296, 0.0836, 0.0271, 0.0095, 0.029, -0.0502, 0.0056, 0.0024, 0.0198, 0.0305, 0.0131, 0.0193, 0.0128, -0.0763, -0.0688, 0.016, -0.0097, -0.1562, -0.0007, -0.0053, 0.0352, 0.0313, 0.0321, 0.005, 0.0006, 0.0277, -0.0392, 0.0216, 0.0202, -0.0392, -0.0467, 0.0224, -0.0025, 0.005, 0.0321, -0.1507, -0.0674, -0.0678, -0.0035, 0.1134, 0.0161, 0.0468, 0.0026, 0.0045, 0.0083, 0.0267, 0.0643, 0.2061, -0.0217, 0.0302, -0.0099, 0.0239, 0.0029, 0.0057, 0.0597, 0.0211, 0.0158, 0.0112, -0.013, 0.125, 0.0122, 0.0117, 0.0112, -0.0215, -0.0069, 0.1182, 0.011, 0.005, 0.0971, 0.012, 0.0498, 0.0006, 0.0026, 0.0433, 0.0898, 0.023, 0.0211, 0.0133, -0.0335, 0.0334, 0.0154, 0.0243, 0.0282, 0.0264, 0.0294, 0.0113, 0.0286, 0.0187, 0.0223, -0.026, 0.0252, -0.0004, 0.0092, -0.0668, -0.0242, -0.0077, -0.0261, 0.0047, 0.0157, 0.0111, 0.0205, 0.086, 0.0466, 0.0305, 0.0087, 0.0098, 0.0182, -0.0153, -0.0352, 0.0279, 0.0449, 0.0784, 0.0745, 0.0584, 0.002, -0.0257, 0.0442, 0.017, -0.0005, 0.0462, -0.0316, 0.0337, 0.062, 0.0656, -0.0163, 0.0273, -0.1112, -0.0157, -0.0047, 0.0377, 0.0367, 0.0444, 0.0398, 0.0201, 0.0084, 0.0602, -0.0204, 0.1023, 0.0002, 0.0066, 0.0131, -0.019, 0.016, -0.0033, 0.016, 0.023, -0.0138, 0.0231, 0.0378, 0.0043, 0.0102, 0.0239, -0.0464, 0.0057, -0.0076, 0.0291, 0.0137, -0.0239, 0.0126, 0.0107, 0.0104, 0.0137, 0.02, -0.0235, 0.0193, 0.16, -0.0005, -0.1188, 0.0438, 0.0146, 0.0675, 0.0222, 0.0319, 0.0154, 0.0175, 0.0449, -0.0232, -0.0108, 0.0088, 0.0264, 0.0949, 0.0396, 0.0319, 0.083, 0.0548, 0.1042, -0.0871, 0.0253, 0.0275, 0.0128, -0.0345, 0.0117, -0.0199, 0.0065, 0.0069, 0.0195, 0.0092, 0.0079, -0.0078, -0.0036, -0.0055, 0.037, 0.0226, -0.0453, 0.0088, 0.0597, -0.0759, -0.1909, 0.0855, 0.0384, 0.0096, 0.0365, 0.0029, 0.021, 0.0, 0.0188, -0.0019, -0.0331, 0.0274, 0.028, 0.0383, 0.0367, 0.0289, 0.0982, 0.1122, -0.0234, 0.0185, 0.0309, 0.0343, 0.0659, 0.0323, 0.0262, 0.0189, 0.0302, -0.0705, -0.0013, 0.0216, 0.0057, 0.0128, -0.2666, -0.006, 0.0062, 0.0843, -0.0857, -0.0022, 0.0166, -0.0099, -0.0785, -0.0167, 0.0247, 0.0162, -0.1644, 0.03, 0.0015, 0.19, 0.0037, -0.0064, 0.0084, -0.106, -0.0154, 0.0037, 0.0297, 0.0347, -0.0138, 0.0154, 0.0118, 0.0146, 0.0081, 0.0144, 0.0372, 0.0099, 0.0133, 0.013, 0.0624, 0.0494, 0.0248, 0.0113, 0.0009, 0.0156, 0.0228, 0.0298, 0.0317, 0.0129, 0.0392, 0.0033, 0.0017, 0.012, -0.2397, -0.0915, -0.0399, 0.0086, 0.0332, -0.0043, 0.0494, 0.0261, -0.0162, -0.0513, -0.0999, 0.0841, 0.0227, 0.0112, -0.0134, 0.0346, 0.1111, 0.006, 0.0079, 0.0401, 0.0096, 0.0511, -0.0893, 0.0202, -0.0038, 0.0162, 0.0177, -0.0614, 0.0208, 0.0033, 0.0185, 0.0597, -0.3519, 0.0113, 0.0167, -0.0301, 0.0012, 0.0406, 0.0071, 0.137, -0.0712, 0.0302, -0.0112, -0.0275, 0.0315, 0.0283, 0.0872, -0.0076, 0.0123, -0.0026, 0.0027, 0.0074, -0.0263, 0.0092, -0.0058, 0.0132, 0.0167, -0.0009, 0.0192, 0.0162, 0.0069, 0.0727, 0.0271, 0.0257, 0.025, -0.0128, -0.0219, 0.0171, 0.0274, 0.0243, 0.0209, 0.0257, 0.0177, 0.0229, 0.0324, 0.027, -0.0009, -0.0482, 0.0046, 0.0471, 0.0396, 0.0062, 0.0165, -0.0103, 0.0352, -0.0492, 0.008, 0.0294, 0.0085, -0.187, 0.0164, 0.0199, -0.0054, 0.0185, 0.0033, 0.063, 0.0094, 0.0583, 0.023, -0.0032, 0.0783, 0.0411, -0.0887, 0.0075, -0.2513, 0.016, 0.0083, -0.0158, 0.0131, 0.0295, 0.0429, -0.0029, 0.014, 0.067, 0.0607, 0.0267, -0.0067, 0.0072, 0.0277, 0.0181, 0.0944, -0.004, -0.0962, 0.0432, 0.2807, 0.0656, 0.0259, 0.022, 0.0126, 0.0255, 0.1041, 0.0493, 0.0068, -0.0421, -0.0074, 0.0006, -0.0268, -0.0162, 0.0041, 0.009, 0.0187, 0.0007, -0.3314, 0.0258, 0.0285, -0.0985, 0.0168, -0.0161, 0.032, -0.0524, 0.0156, -0.0082, 0.0049, -0.0063, 0.0077, -0.0846, -0.0423, 0.0199, 0.0249, 0.1371, -0.0091, -0.0036, 0.0283, 0.0539, 0.4089, 0.0232, 0.0406, 0.0265, -0.206, 0.0039, 0.0012, -0.0484, 0.0376, 0.0167, -0.3145, 0.1446, 0.0042, 0.0224, 0.0547, -0.1658, 0.011, 0.0085, 0.0105, -0.145, -0.0184, 0.0103, 0.0591, -0.0303, 0.0082, -0.0091, 0.0644, 0.02, 0.0138, -0.0261, 0.0252, 0.0141, 0.041, 0.0237, -0.0059, -0.0245, 0.0216, -0.004, -0.0015, 0.0461, -0.0179, 0.0425, 0.0227, 0.0024, 0.0108, -0.0191, -0.2304, 0.0137, 0.0453, 0.077, -0.0006, 0.0167, 0.0693, -0.1333, 0.0874, 0.0224, 0.0161, 0.0112, 0.0996, 0.0034, 0.0093, 0.0215, 0.0181, 0.0208, 0.0006, 0.0143, -0.0009, 0.0167, 0.0782, 0.0252, 0.0299, 0.0356, -0.0041, 0.0224, -0.0048, 0.0376, 0.037, -0.0036, 0.0183, 0.0239, -0.0378, -0.0036, 0.0125, 0.0213, 0.0134, 0.0154, -0.0013, -0.0095, 0.0435, 0.0079, 0.0105, 0.0097, 0.0048, -0.0094, 0.0555, 0.1502, -0.1149, 0.0109, 0.0274, 0.003, 0.0085, 0.0072, 0.0481, 0.0185, 0.047, 0.0397, -0.0096, 0.0087, 0.0148, -0.0149, 0.01, 0.0193, 0.0376, 0.0384, -0.003, 0.0236, 0.0238, 0.04, 0.0071, 0.0091, 0.0253, 0.0415, -0.0449, 0.0278, 0.0134, 0.0201, -0.0231, -0.0172, 0.006, 0.0084, -0.0594, 0.0219, 0.0821, 0.0284, 0.0571, 0.0115, 0.0094, 0.0122, 0.019, 0.0164, -0.1157, 0.0194, 0.0074, -0.1481, 0.0524, 0.0178, 0.0716, 0.0097, 0.0183, -0.1134, -0.0244, 0.0889, 0.0275, 0.032, 0.0015, 0.0136, 0.0158, -0.0094, 0.0201, 0.0072, -0.0024, -0.143, 0.0848, -0.0027, 0.0214, 0.0162, 0.0146, 0.0086, 0.0086, 0.0408, 0.0269, -0.0954, 0.0577, 0.074, -0.0171, 0.0135, 0.0736, 0.0234, 0.0111, -0.0173, 0.0127, 0.0163, -0.1032, 0.0152, -0.0678, 0.0224, 0.0147, 0.0111, 0.0519, 0.0274, 0.0141, 0.0254, 0.0331, 0.0234, 0.0322, 0.0228, 0.01, 0.0364, 0.0158, -0.0713, 0.0178, -0.0364, 0.0105, -0.0056, 0.0279, 0.0354, 0.0185, 0.053, -0.0035, 0.02, 0.027, 0.0196, 0.0043, 0.0015, -0.0981, 0.0637, 0.0234, 0.0139, 0.0129, 0.0099, 0.0254, -0.0011, -0.0359, -0.127, -0.0127, 0.0488, 0.0108, -0.0154, 0.0142, 0.0131, 0.0358, -0.0362, 0.0228, 0.0155, 0.0199, 0.0132, 0.028, -0.0164, 0.0831, -0.0148, 0.0359, 0.0393, 0.0285, -0.005, 0.0346, -0.0123, -0.0068, 0.0085, -0.0086, 0.0083, 0.0179, 0.0259, -0.0032, -0.0063, -0.0193, -0.0059, 0.0175, 0.0861, 0.0254, 0.0224, 0.03, 0.0018, 0.0049, 0.0221, -0.0033, -0.0254, 0.025, -0.1216, -0.1312, 0.0027, 0.0083, 0.0128, 0.0119, 0.0013, 0.0281, 0.0131, 0.0408, 0.0287, 0.0157, -0.0267, 0.0051, 0.0104, -0.0039, -0.0036, 0.0554, 0.0229, 0.0442, -0.0198, 0.0158, 0.0101, 0.0252, 0.018, 0.016, -0.1612, 0.0394, 0.0666, 0.0222, 0.025, -0.0565, 0.0292, 0.0414, 0.0016, 0.0753, 0.0179, 0.0702, 0.0658, 0.003, 0.0233, 0.0216, 0.0188, 0.0468, -0.2411, 0.0158, 0.0284, 0.0049, 0.015, -0.06, 0.2072, -0.2311, 0.0121, 0.0115, 0.0173, 0.0247, 0.0148, 0.0123, 0.0224, 0.0268, 0.0357, -0.0036, 0.0591, 0.037, -0.0063, 0.0286, 0.0091, -0.022, 0.0403, 0.1425, 0.0215, -0.0086, 0.0004, 0.0169, 0.0074, -0.0206, 0.0113, 0.0115, 0.026, -0.0093, 0.0189, 0.0309, -0.0008, 0.0132, -0.0176, 0.0286, 0.0396, 0.0091, 0.0056, 0.0157, 0.0171, 0.0213, 0.0133, -0.0121, 0.0157, 0.0007, -0.0026, -0.017, 0.0024, -0.0113, 0.0321, 0.0412, 0.0063, 0.019, 0.0566, 0.1037, 0.0276, -0.0034, 0.0362, 0.0072, 0.0188, 0.0229, 0.0186, 0.0324, 0.0194, 0.0241, 0.0994, -0.1223, 0.0299, -0.0061, 0.0025, 0.0239, 0.061, 0.0113, 0.1441, 0.006, -0.0218, 0.013, -0.0079, 0.0074, -0.0944, 0.0131, 0.0123, 0.011, 0.0253, 0.0122, -0.0708, -0.086, 0.0501, 0.0133, -0.0024, 0.0187, -0.0112, 0.0173, 0.0099, -0.007, 0.0096, 0.0022, 0.0212, 0.0125, 0.0299, -0.0106, 0.0371, -0.0163, 0.0085, 0.018, 0.0088, 0.0724, 0.1106, 0.059, 0.0297, -0.0, -0.0038, 0.0453, 0.016, 0.0094, 0.2112, -0.0042, 0.023, -0.0298, 0.0181, -0.0061, 0.0305, 0.0116, -0.0683, -0.1088, 0.014, 0.0246, 0.0201, 0.0227, -0.1149, 0.0454, 0.0343, 0.0165, 0.0822, -0.1703, -0.0437, -0.0511, 0.0185, 0.0175, 0.0393, 0.0315, 0.0052, 0.1454, -0.056, 0.0227, 0.0539, 0.0264, -0.0409, -0.0061, -0.0044, -0.0886, 0.0546, -0.0038, -0.026, 0.0066, 0.012, -0.1184, 0.0737, -0.0036, -0.0011, 0.0069, 0.03, 0.2049, 0.0173, 0.029, 0.0131, 0.0155, 0.0071, 0.0101, 0.0646, 0.0132, 0.0136, 0.0386, 0.0036, -0.0121, -0.0053, 0.0295, 0.0573, 0.0373, 0.0496, 0.0241, -0.0136, 0.0372, 0.0006, -0.0659, 0.1405, 0.0426, -0.028, 0.0845, 0.0388, 0.0375, 0.0122, 0.0031, 0.0171, 0.0135, -0.2907, -0.002, -0.1883, 0.0156, 0.0126, -0.0006, 0.0119, -0.0471, 0.0079, 0.0524, 0.0378, -0.0084, 0.0368, -0.0257, -0.0239, 0.0427, 0.0072, 0.014, -0.0303, 0.0301, 0.0663, 0.0289, 0.0253, 0.0182, 0.0376, 0.0431, 0.0103, 0.0198, -0.0031, 0.0035, 0.0148, -0.032, -0.0359, -0.0016, 0.0086, -0.0417, 0.0008, -0.0123, 0.0322, -0.0044, 0.0095, 0.0192, 0.0051, 0.206, 0.0184, 0.0402, 0.0489, 0.0434, 0.2267, 0.0242, 0.0167, 0.0092, 0.02, 0.0405, 0.0054, -0.0503, 0.0047, -0.0559, -0.0488, 0.0102, 0.0482, 0.0125, 0.0284, 0.0397, 0.0186, 0.0279, 0.0714, 0.0661, 0.0135, 0.0444, -0.0099, 0.0068, -0.0018, 0.0102, -0.0261, 0.0111, 0.0649, 0.0, -0.0187, 0.0187, 0.0414, -0.0332, 0.0782, -0.0237, 0.0145, -0.0011, -0.1438, 0.0259, 0.045, 0.086, 0.0121, 0.0255, -0.0121, -0.0078, 0.0225, 0.024, -0.077, 0.0618, 0.0305, 0.0131, 0.0141, 0.0896, 0.0534, 0.0777, 0.0295, 0.0218, 0.0785, 0.0121, -0.0208, 0.0319, 0.0462, 0.0191, 0.0349, 0.0251, 0.0075, 0.0112, 0.0174, 0.0105, -0.0193, 0.0093, -0.0811, 0.0215, 0.0602, 0.0213, -0.0284, 0.0055, -0.0031, 0.0064, 0.0706, -0.0253, 0.0076, -0.0091, 0.0157, 0.0062, -0.0089, 0.027, 0.0366, 0.017, 0.0224, 0.0159, 0.0145, -0.0599, -0.1329, -0.0659, -0.0903, 0.0207, 0.0189, 0.0123, 0.039, 0.0207, 0.0004, 0.0027, 0.0203, 0.0124, -0.0463, 0.0045, -0.0184, -0.0061, 0.0093, 0.0224, 0.0376, -0.0091, 0.029, 0.083, 0.0194, 0.0221, 0.0248, 0.0347, 0.0083, 0.0158, 0.0118, 0.0412, 0.0534, 0.0167, -0.0051, -0.1107, -0.0003, -0.002, 0.0284, -0.2021, 0.035, -0.0415, 0.0443, 0.025, 0.0503, -0.0328, 0.0086, 0.0066, -0.0251, 0.0225, 0.0167, 0.0208, 0.0132, -0.1905, 0.1148, -0.0105, 0.0005, 0.0121, 0.007, -0.0077, 0.0466, 0.0174, 0.0278, 0.0079, -0.0022, 0.002, 0.0386, 0.0162, 0.0863, 0.0186, -0.0165, 0.0149, 0.0067, 0.0175, 0.0177, 0.0119, 0.0122, 0.0319, 0.0187, 0.0784, -0.0222, 0.0315, 0.2262, 0.0406, 0.0124, 0.0196, -0.0484, 0.0095, 0.0339, 0.0239, -0.0248, 0.0322, 0.0252, 0.0132, 0.0246, 0.0212, 0.3705, 0.0106, -0.0434, 0.0214, 0.0052, 0.0622, 0.0242, 0.0446, 0.0232, 0.0531, -0.0371, -0.0249, 0.0278, 0.0243, -0.0546, 0.0048, 0.0, 0.044, 0.0388, 0.0067, 0.0351, 0.0189, -0.0032, 0.0038, 0.014, 0.056, 0.0192, 0.0258, 0.0017, 0.0177, 0.2208, 0.0191, 0.0343, 0.0351, -0.015, 0.0069, -0.0366, 0.0263, -0.0217, 0.0171, 0.0304, 0.0253, 0.0101, 0.0236, 0.0193, 0.0091, 0.0483, 0.0174, -0.0112, 0.0109, 0.0767, 0.0467, -0.009, 0.0355, -0.0089, 0.0462, 0.013, 0.0143, -0.0016, -0.1057, 0.0346, -0.0204, 0.0325, 0.0171, 0.0168, 0.0011, -0.0028, 0.0098, -0.0949, -0.0027, -0.0859, 0.0141, 0.0425, 0.0223, -0.0606, -0.11, 0.0088, 0.0503, -0.0578, 0.0285, 0.0426, 0.2484, 0.0043, 0.0539, 0.0065, 0.065, 0.0371, 0.0158, 0.0174, 0.0068, 0.0082, -0.1182, 0.08, 0.0122, 0.0036, -0.0283, 0.0248, 0.0132, 0.0162, 0.0019, 0.0408, 0.0617, 0.0453, 0.0171, -0.0138, 0.0197, -0.0411, 0.0109, 0.0191, 0.0147, 0.0151, 0.0154, 0.0418, 0.0156, 0.0386, -0.0018, -0.0428, 0.0198, -0.0231, 0.0021, 0.0013, -0.0888, 0.032, 0.0159, 0.0172, -0.0647, 0.0265, 0.0168, -0.0072, 0.0249, 0.0056, -0.0427, 0.0725, -0.0087, -0.0203, 0.0113, 0.0334, 0.0109, -0.0669, 0.0174, 0.0052, 0.0312, -0.031, 0.0129, -0.1461, 0.0423, 0.0033, -0.0257, 0.0035, 0.0118, 0.0919, -0.1386, 0.0009, 0.0131, 0.0254, -0.1205, -0.0081, 0.0088, -0.0108, -0.0169, 0.0285, 0.0319, 0.0081, 0.059, 0.0187, -0.0091, 0.1797, 0.0071, -0.0522, -0.0283, 0.0048, -0.0118, 0.0079, 0.0178, 0.0099, 0.007, 0.0186, 0.0268, 0.0053, 0.0088, 0.019, 0.026, 0.058, -0.0022, 0.0095, 0.0297, 0.0046, 0.0232, 0.0349, 0.2352, -0.0062, -0.0009, 0.0092, 0.0352, 0.0083, -0.3125, -0.017, 0.0486, 0.009, 0.0408, -0.002, 0.0028, 0.0385, 0.0824, 0.0314, -0.0396, -0.1921, 0.0084, 0.0239, 0.0416, 0.0071, -0.1468, 0.0171, 0.0314, 0.0145, 0.0108, 0.1021, 0.0201, 0.0222, 0.0466, -0.0064, -0.1335, 0.014, -0.0155, 0.0066, 0.0059, 0.015, 0.1079, 0.0102, 0.0191, -0.2892, -0.0072, 0.0324, -0.0547, -0.0105, 0.0631, 0.0264, -0.0574, -0.1102, -0.1879, -0.1481, 0.0654, 0.0322, 0.0322, 0.0757, 0.0408, 0.0617, 0.0164, 0.0147, 0.0259, -0.5856, 0.0342, 0.0004, -0.0017, 0.0035, 0.0393, 0.0244, 0.0209, 0.0851, 0.0034, -0.0362, 0.0279, 0.1671, 0.0437, -0.0053, -0.0935, 0.0114, -0.0077, 0.0098, 0.0187, 0.059, -0.0093, 0.0166, -0.0654, 0.1066, 0.0149, 0.0273, 0.0362, 0.0428, 0.0467, 0.0061, 0.0291, -0.0321, 0.0078, -0.0115, 0.0061, 0.0184, 0.0066, 0.0097, 0.0233, 0.0089, 0.0303, 0.0205, 0.0096, 0.016, 0.064, 0.0514, -0.0058, 0.0319, 0.0114, 0.0029, 0.0145, 0.0206, 0.0695, 0.0135, 0.0023, 0.0089, 0.042, 0.0143, -0.0633, -0.0782, 0.0194, 0.0502, -0.0101, 0.0141, 0.0159, 0.0317, 0.0195, 0.0283, 0.0193, 0.0476, -0.006, 0.0128, -0.0326, 0.047, 0.0283, 0.0125, 0.019, 0.0475, 0.0049, 0.0025, 0.0086, 0.0227, 0.0062, 0.0229, 0.0356, -0.0529, 0.0124, -0.028, 0.015, -0.0763, 0.0245, -0.0891, 0.1294, -0.0197, 0.0848, -0.0372, 0.0109, 0.0226, -0.0253, 0.0352, 0.017, 0.0652, -0.0104, 0.0575, -0.0057, 0.011, 0.0235, 0.0224, 0.0051, 0.0166, 0.0202, 0.0142, 0.0292, -0.0002, -0.0237, -0.0041, -0.0226, 0.0195, 0.0191, 0.1163, -0.0229, 0.0039, 0.0192, -0.0114, 0.0202, -0.0141, 0.0107, 0.0212, -0.0556, 0.0035, 0.0193, -0.0766, -0.0085, 0.0097, 0.0214, 0.0047, 0.0181, 0.0954, 0.013, 0.0155, -0.0038, 0.0081, 0.0373, -0.0151, 0.0331, -0.1307, -0.0086, 0.0057, -0.0148, 0.0169, 0.0914, -0.0257, -4.445, 0.0044, 0.0153, -0.0046, 0.0229, 0.0535, 0.0042, 0.025, 0.0242, 0.0512, 0.0809, 0.0257, 0.0057, -0.0224, 0.0204, 0.014, 0.0038, 0.0035, -0.0153, -0.019, 0.015, -0.1541, 0.0134, -0.0073, 0.0183, 0.0153, -0.0636, 0.0239, -0.0037, -0.0141, -0.0305, 0.0078, 0.0226, -0.0712, 0.0174, 0.0392, -0.0152, 0.0133, 0.0141, 0.0275, 0.0142, 0.0113, 0.0264, 0.0473, 0.0158, 0.0011, 0.0315, 0.041, 0.0037, 0.0854, 0.0157, 0.0185, 0.0168, 0.0167, -0.3429, 0.0071, -0.1049, -0.0043, 0.0065, 0.0242, -0.0108, 0.0338, 0.0088, 0.012, 0.012, -0.0619, -0.0068, -0.0221, 0.0223, 0.0193, -0.0977, -0.0537, 0.027, 0.0316, 0.0181, -0.0611, -0.0264, 0.0123, 0.0191, 0.0502, 0.039, 0.0023, 0.0383, 0.0398, 0.0126, 0.0181, 0.0481, 0.0151, 0.0141, 0.039, 0.0313, 0.0074, -0.0046, 0.0254, 0.006, 0.0407, 0.0449, 0.0126, 0.0169, 0.0202, 0.0296, -0.0368, 0.0564, 0.0148, 0.058, 0.0108, 0.153, 0.0429, 0.034, 0.0479, -0.0008, 0.0073, 0.0226, 0.0307, 0.0111, 0.0275, 0.0492, 0.0209, 0.0266, 0.0164, 0.0366, 0.0205, 0.0284, 0.0214, 0.0217, 0.0215, 0.023, 0.0226, 0.0088, 0.0275, 0.0394, 0.037, 0.0284, 0.0382, 0.03, -0.0619, 0.0202, 0.0088, 0.0246, 0.0124, -0.0215, 0.0038, 0.0201, 0.0156, -0.0223, 0.0332, -0.1789, 0.0165, -0.0132, 0.0187, -0.012, 0.0689, 0.019, 0.0288, -0.0174, 0.0314, 0.0361, 0.019, 0.0154, 0.0147, -0.0018, 0.0246, 0.0127, 0.0358, -0.0013, 0.0441, 0.0004, -0.0467, 0.0098, 0.0187, -0.0266, 0.1225, 0.0153, -0.0517, 0.0138, 0.0298, 0.0374, 0.0145, 0.0936, 0.0179, -0.0462, 0.0228, -0.0141, -0.0419, 0.0157, -0.0913, -0.0092, 0.0896, 0.0496, 0.0082, 0.0234, 0.0182, -0.0035, 0.0218, 0.0519, -0.0646, 0.0272, 0.0169, 0.027, 0.0701, 0.0136, 0.0187, 0.1129, -0.0371, 0.0157, -0.0027, 0.0385, 0.0238, 0.0323, 0.011, 0.0309, 0.0045, 0.0264, 0.0493, 0.0191, 0.0491, 0.0297, -0.0088, 0.0245, 0.0369, 0.1327, 0.0338, 0.0223, -0.0384, 0.0321, 0.0522, 0.0039, 0.0359, 0.0, 0.014, -0.0292, 0.0012, 0.12, -0.0552, 0.2071, 0.0358, 0.0069, -0.006, -0.0207, 0.0533, -0.0177, 0.0217, -0.0462, -0.2742, 0.0216, -0.0002, -0.0511, -0.0354, 0.0194, -0.0368, -0.0304, -0.0128, 0.0248, 0.0222, -0.0301, 0.0017, 0.0074, -0.0075, 0.0165, -0.0477, -0.0109, 0.0148, 0.1109, 0.0646, -0.0203, 0.0722, 0.0098, 0.0102, 0.0311, 0.0167, 0.043, 0.0324, -0.0342, 0.0164, 0.0281, 0.0219, 0.0442, -0.0023, 0.0206, 0.0063, -0.0142, 0.0176, 0.0333, 0.0295, -0.4443, 0.0364, 0.0079, 0.0257, 0.0168, -0.0395, 0.0109, -0.0179, 0.0254, -0.1594, 0.0177, -0.0672, -0.0171, 0.021, 0.0116, 0.041, 0.0542, 0.0076, 0.0152, 0.0327, 0.0601, 0.0382, 0.0438, 0.0404, 0.0205, 0.0134, 0.0072, -0.1401, 0.0211, 0.0501, 0.0766, 0.0376, -0.0141, 0.0314, 0.0081, 0.0376, 0.0113, 0.0334, 0.0031, 0.0162, 0.044, 0.0399, 0.0087, 0.0097, 0.029, -0.0092, 0.0274, 0.048, -0.1714, 0.0005, 0.0107, 0.0175, 0.0436, 0.0432, -0.0131, 0.0116, -0.0054, 0.0116, 0.0164, 0.0122, 0.0253, 0.0754, 0.0033, 0.0108, 0.0171, 0.026, 0.0394, -0.0016, 0.0103, -0.1623, 0.0263, -0.0366, 0.0343, 0.0164, 0.0486, 0.0013, -0.0014, 0.0158, 0.0083, -0.0021, -0.002, 0.0683, 0.0269, 0.0233, 0.0156, 0.01, 0.0118, 0.023, 0.0441, 0.0058, -0.0151, 0.0043, 0.0304, -0.0352, 0.0137, -0.0342, 0.0225, 0.0093, 0.0064, 0.0024, 0.0121, 0.0121, 0.2066, 0.0131, 0.0025, 0.0122, -0.1175, 0.0019, 0.0064, 0.0191, 0.0036, 0.0579, 0.0034, 0.0218, -0.0652, 0.0518, -0.0161, 0.0153, 0.0522, 0.0126, 0.015, 0.0261, 0.0431, 0.0525, 0.0215, 0.0264, -0.0222, 0.0136, 0.0403, -0.0101, 0.0689, -0.0393, -0.0149, 0.0596, 0.027, 0.0328, 0.0173, -0.0361, -0.0021, 0.0091, 0.0079, -0.0185, -0.0535, 0.0162, -0.1197, -0.1664, 0.0108, 0.0464, -0.0286, 0.0066, 0.049, 0.0008, 0.0208, -0.0088, 0.0527, 0.0471, 0.0175, 0.0147, 0.0315, 0.0224, -0.0225, -0.034, 0.0187, 0.0288, 0.0062, 0.0051, 0.0131, 0.0017, 0.0, -0.0251, 0.0081, -0.0275, -0.0093, 0.0231, -0.132, 0.0194, 0.0163, 0.0485, 0.0769, 0.0743, 0.0225, 0.0485, -0.0034, -0.0115, -0.0339, 0.004, -0.0, 0.0034, 0.0141, -0.2434, 0.0151, 0.0145, 0.0144, 0.0146, 0.0042, 0.011, 0.0049, -0.0412, 0.0756, 0.0136, 0.0134, 0.037, -0.1081, 0.0358, 0.0798, -0.0067, -0.0688, 0.006, -0.0374, 0.0377, 0.025, 0.2166, 0.0248, -0.0, 0.0167, 0.0097, 0.0492, 0.003, 0.0249, 0.0234, -0.0553, 0.0161, 0.0136, 0.0138, -0.0042, 0.0141, -0.0091, -0.0074, 0.0146, 0.0666, 0.027, -0.064, -0.0037, -0.0461, 0.0124, 0.0068, 0.012, 0.0163, 0.0201, 0.0234, 0.0449, 0.0094, 0.0423, 0.0608, -0.0149, 0.0058, -0.0051, 0.0321, 0.017, 0.0161, -0.0274, 0.0225, -0.0058, 0.0252, 0.006, 0.018, 0.0249, 0.0305, 0.035, -0.0101, 0.0138, 0.0022, -0.0024, 0.0306, 0.0238, 0.0165, 0.0246, 0.0331, 0.0067, 0.0316, 0.0415, -0.0699, 0.0092, 0.7853, 0.0956, 0.0406, -0.1458, 0.0311, 0.0295, 0.049, 0.0083, -0.014, 0.0604, 0.0225, 0.0368, 0.0071, 0.0311, 0.014, 0.0189, 0.0086, -0.0167, -0.0921, 0.0015, 0.0327, 0.0354, -0.0219, -0.0076, 0.0819, 0.0146, -0.0249, 0.0204, -0.0357, 0.0144, 0.0191, 0.0643, 0.0049, 0.0067, 0.0293, 0.0261, -0.0101, -0.1607, -0.0536, 0.0394, 0.0053, 0.0193, 0.0093, -0.0534, 0.0067, 0.0111, 0.0457, 0.1764, -0.0889, -0.1069, 0.0514, 0.0665, 0.0819, 0.1111, -0.0771, -0.0316, -0.0587, -0.0376, 0.0426, 0.0087, -0.0065, 0.0219, 0.2296, 0.0242, 0.0088, -0.0127, 0.0162, 0.0374, 0.0481, 0.0189, 0.0044, -0.2336, 0.0113, 0.0232, 0.0175, 0.001, 0.0036, 0.064, 0.0284, -0.2626, 0.0052, 0.0075, 0.0142, 0.0173, 0.0196, 0.0338, 0.0136, 0.0229, 0.0323, 0.0221, 0.0169, 0.0078, -0.2187, 0.022, 0.0825, 0.0653, 0.0158, 0.0211, 0.1231, 0.0704, 0.0349, 0.0159, 0.0121, -0.0016, 0.0276, 0.012, 0.0088, -0.0063, -0.021, 0.0078, 0.0216, 0.0304, -0.0078, 0.0001, 0.0585, 0.0316, 0.0138, 0.0344, 0.0241, 0.0173, 0.0158, 0.0054, 0.0199, 0.0148, 0.0149, 0.0313, 0.0184, 0.0983, 0.0976, 0.063, 0.0118, 0.0042, 0.1851, 0.0653, -0.0008, 0.0032, 0.0073, -0.004, 0.0201, -0.0047, 0.0379, 0.0107, 0.0288, 0.0429, 0.0058, 0.0375, 0.0039, 0.0511, -0.0281, 0.0156, 0.0209, 0.02, 0.018, 0.0024, 0.0227, 0.0208, 0.0099, 0.0086, 0.0282, 0.0352, -0.0016, -0.0077, -0.012, 0.0089, 0.0219, 0.0207, 0.0193, 0.0501, 0.0415, 0.0022, 0.0046, 0.015, 0.0278, 0.0098, 0.0242, 0.0021, -0.0265, 0.0359, -0.0326, 0.1043, 0.0306, -0.1781, -0.027, 0.0252, 0.0103, 0.0096, -0.0333, 0.0081, 0.0085, 0.0168, -0.0023, -0.0395, -0.0027, -0.0238, -0.0101, 0.0211, 0.0046, -0.0043, 0.0303, 0.0378, 0.0806, -0.031, 0.0336, -0.0013, 0.0019, 0.0355, 0.0071, -0.1673, 0.021, 0.0717, 0.0923, 0.0037, 0.0224, 0.0301, 0.0761, 0.0829, 0.0194, 0.0227, -0.0077, 0.0127, 0.0097, 0.0143, 0.0159, -0.0101, 0.0105, -0.0049, 0.014, 0.0171, 0.0162, 0.096, 0.0357, 0.0044, 0.0036, -0.0205, 0.0087, 0.0465, -0.01, 0.0157, -0.1603, -0.0106, 0.022, -0.0084, 0.0598, 0.0275, 0.0362, -0.0189, 0.005, 0.0902, 0.056, 0.0183, 0.0172, 0.0161, 0.018, -0.0102, 0.0213, -0.0135, 0.0024, 0.011, 0.0321, 0.0043, 0.0192, 0.0118, -0.0259, 0.0058, -0.0016, 0.0125, 0.0397, 0.0021, 0.02, 0.0224, 0.0104, 0.0306, -0.0299, 0.0032, 0.024, 0.0069, 0.0337, 0.0366, 0.0261, 0.0328, 0.0172, -0.0056, 0.009, 0.0158, 0.0133, 0.0285, 0.0259, -0.0722, -0.0016, 0.027, 0.0179, 0.0019, 0.065, 0.0007, 0.0197, -0.0082, 0.0089, -0.0041, 0.0788, 0.0291, 0.0103, 0.0172, 0.0292, -0.0087, 0.0135, 0.0168, 0.0225, 0.0126, -0.0135, 0.0403, 0.0279, 0.0518, 0.0868, -0.0109, 0.0131, 0.0135, 0.0535, 0.0376, 0.0033, -0.0498, 0.0393, 0.0039, 0.0334, -0.0089, 0.0197, 0.0283, 0.0591, -0.0101, 0.036, 0.0311, 0.0129, 0.0315, 0.0324, 0.0357, 0.1436, 0.0303, 0.0261, -0.0254, 0.0066, 0.0239, -0.0142, 0.0168, -0.0107, 0.0196, 0.0116, 0.0663, 0.0139, -0.112, -0.0388, 0.0558, 0.0121, 0.0254, 0.0207, 0.0256, 0.0192, -0.0355, 0.0091, -0.3026, 0.2517, 0.0137, 0.0288, -0.1536, 0.033, 0.0285, 0.0316, 0.0235, 0.0049, 0.0137, 0.012, -0.028, 0.0045, 0.0257, 0.0224, -0.0157, 0.0055, 0.013, 0.0146, 0.0305, 0.1015, 0.0279, 0.0419, -0.0511, 0.102, -0.2474, -0.1249, 0.0409, 0.0498, 0.0054, 0.0299, 0.0471, 0.0277, 0.0287, 0.0139, 0.0172, 0.0154, -0.0067, 0.0199, -0.1289, 0.0966, 0.1028, 0.0064, 0.0147, 0.0166, 0.0348, 0.0168, 0.0149, 0.0016, 0.0073, -0.0129, 0.0299, -0.0082, 0.0013, 0.0462, 0.0003, 0.0158, -0.1581, 0.0237, 0.0012, 0.0106, 0.0294, 0.0283, 0.0615, 0.1292, 0.0023, 0.0238, 0.0197, 0.0339, -0.2206, -0.0169, -0.0645, -0.0336, -0.3581, 0.0185, 0.0196, 0.0045, 0.0133, -0.0325, 0.0128, 0.0194, 0.0271, 0.0127, 0.0328, 0.0107, 0.0391, 0.0015, 0.0699, -0.0562, 0.003, 0.0647, -0.061, -0.0066, 0.0256, 0.0582, 0.0529, 0.0973, 0.0295, 0.0198, 0.0316, -0.0058, 0.0222, 0.062, 0.0993, 0.0669, 0.0462, 0.052, 0.0569, 0.0346, -0.0011, 0.0456, 0.0906, 0.1592, -0.0008, 0.0159, 0.1571, -0.0195, -0.0442, -0.0316, 0.02, 0.1423, 0.0321, 0.0064, 0.0219, -0.1155, 0.0356, 0.0293, 0.0111, -0.0344, 0.0111, 0.0101, 0.0252, -0.072, -0.0131, 0.0442, 0.0857, 0.0544, 0.0166, 0.0256, 0.134, 0.0268, 0.0168, 0.0228, 0.0395, -0.0264, 0.038, 0.0211, 0.0143, 0.045, 0.0524, 0.0202, 0.0167, 0.0101, -0.0334, 0.0289, 0.0257, 0.0238, 0.0338, 0.0253, -0.0116, -0.0029, -0.1803, -0.0982, -0.0056, -0.0561, -0.0498, -0.0238, 0.0303, 0.0518, 0.0268, 0.0198, 0.0261, 0.0275, 0.0136, 0.0662, 0.0144, 0.0344, -0.0165, 0.022, 0.0046, 0.0272, 0.0084, -0.0687, 0.0064, 0.0451, -0.0758, 0.0341, 0.0133, 0.0206, 0.0259, 0.0229, 0.1107, 0.165, 0.0066, -0.0061, 0.0423, -0.0065, 0.0262, 0.0366, 0.0159, 0.0176, 0.0031, 0.0529, 0.0183, 0.1702, 0.0015, 0.0499, -0.0011, 0.0056, -0.044, 0.0142, 0.0085, 0.0151, 0.0118, -0.0059, -0.1192, 0.025, -0.0533, -0.0022, -0.0702, -0.0205, 0.02, -0.0691, -0.0005, -0.0898, -0.0068, 0.0014, 0.0168, -0.0423, 0.0139, 0.0024, 0.0143, 0.0049, 0.0077, 0.0053, 0.0348, 0.0372, -0.0133, 0.0691, 0.0325, 0.0052, 0.0144, 0.0523, 0.0634, -0.006, 0.0147, 0.001, -0.005, 0.039, 0.026, 0.0089, 0.0231, -0.1123, 0.0189, 0.0107, 0.0326, 0.0048, 0.0288, -0.0643, 0.012, 0.0178, 0.04, 0.02, 0.046, 0.013, 0.021, 0.0155, -0.0003, -0.0051, -0.223, -0.1437, 0.0492, 0.0272, -0.0176, 0.0288, 0.0397, 0.0281, 0.0185, 0.0038, 0.0014, -0.0041, -0.0902, 0.0151, -0.0238, 0.0362, 0.0958, 0.06, 0.0201, -0.015, -0.0599, 0.0068, 0.0089, 0.0607, 0.0102, 0.0264, 0.0175, -0.0034, 0.1334, 0.0104, -0.0371, 0.0122, 0.0434, 0.0364, 0.0021, 0.0071, 0.0341, 0.0255, 0.0533, 0.0303, 0.0251, 0.0145, -0.0042, 0.0307, 0.0093, -0.0055, 0.032, 0.021, 0.0435, 0.0895, 0.0547, 0.0144, 0.0236, 0.019, 0.0055, -0.0189, 0.0467, -0.1066, -0.1394, 0.0672, 0.0273, 0.0697, 0.0318, 0.0487, 0.0357, 0.0154, 0.0098, 0.0062, 0.0149, 0.0259, 0.0182, -0.0134, 0.0132, 0.01, 0.009, 0.0134, 0.0082, 0.0278, 0.0259, 0.0206, -0.0445, -0.0252, -0.0789, 0.0011, -0.0133, 0.042, 0.0227, -0.049, 0.0283, -0.012, 0.0316, 0.0334, 0.0178, 0.0235, -0.0136, 0.0282, 0.0137, 0.0238, 0.0311, 0.0034, 0.0373, 0.0125, 0.0449, 0.0464, 0.0134, 0.022, 0.0021, 0.0141, -0.1451, 0.0319, 0.0153, -0.0211, -0.1178, 0.0246, 0.0377, 0.0345, -0.0024, 0.0198, 0.0227, 0.0241, 0.0187, 0.0118, 0.0401, 0.0266, -0.0002, 0.0093, -0.018, 0.0544, 0.0051, 0.0872, 0.0271, 0.0545, 0.0223, 0.0176, 0.0034, 0.0039, -0.008, 0.0161, 0.0014, -0.0116, 0.0189, 0.024, 0.0001, 0.0054, 0.2144, 0.025, -0.1005, 0.0441, 0.0215, 0.0134, 0.0826, 0.0221, -0.0002, 0.0314, 0.0953, 0.0533, 0.0222, 0.0303, 0.0015, 0.019, 0.0346, -0.0213, 0.0466, -0.0121, 0.039, -0.0493, -0.0055, 0.1221, 0.0376, 0.0109, 0.0124, 0.0126, 0.0196, -0.0058, 0.0292, 0.017, 0.0167, 0.0134, 0.0145, 0.0206, 0.0148, 0.0167, 0.0146, 0.0051, -0.0023, 0.0285, 0.0318, 0.0549, 0.0073, 0.0222, 0.054, 0.1079, 0.0941, 0.0529, 0.042, 0.014, 0.0106, 0.0605, 0.0162, 0.0136, 0.0231, 0.0116, 0.0065, 0.008, 0.0087, 0.0349, 0.0101, 0.0356, 0.0311, 0.0164, 0.0016, -0.0161, -0.0748, 0.0254, 0.0205, -0.0199, 0.0162, 0.0126, 0.0349, 0.003, 0.0425, 0.0134, 0.0251, 0.0091, 0.0193, 0.026, 0.0135, 0.0088, 0.0384, -0.0061, 0.1121, 0.0146, 0.0059, -0.0076, 0.0024, 0.0078, 0.0152, 0.0121, 0.0212, 0.0717, 0.0978, -0.0013, 0.0086, 0.0273, 0.0263, 0.0375, 0.0208, -0.0033, -0.0067, -0.0013, 0.0062, 0.0364, -0.359, 0.0094, 0.0216, 0.0138, 0.016, 0.0292, 0.0157, 0.0436, 0.0147, 0.0217, -0.1221, 0.0535, 0.0343, -0.0386, 0.0188, 0.0387, -0.0208, -0.0546, -0.0861, 0.0166, 0.0187, 0.017, -0.1131, 0.0238, -0.0299, 0.0146, 0.0099, 0.0253, 0.0201, 0.106, -0.0335, 0.0266, 0.0224, -0.1393, -0.0107, 0.0778, 0.0188, 0.0221, 0.0102, 0.0248, 0.0111, -0.0316, 0.002, 0.0317, 0.0189, 0.0169, 0.0167, 0.0259, -0.0044, 0.035, -0.0841, -0.0096, 0.0148, -0.0267, -0.0142, -0.0218, 0.008, 0.004, 0.0033, -0.0483, -0.012, 0.0009, -0.0494, 0.0282, 0.0229, 0.0212, 0.0115, 0.0457, -0.0137, 0.0521, 0.0604, 0.0725, 0.0124, 0.0141, -0.0118, 0.0454, -0.0079, 0.0667, -0.0658, 0.0138, 0.0219, 0.0086, -0.0457, 0.0272, -0.0359, 0.0547, 0.0155, -0.0103, 0.0152, -0.5516, 0.0245, 0.0398, -0.2149, 0.0322, -0.0256, 0.0039, 0.0195, -0.031, -0.006, -0.0183, 0.0421, -0.0733, 0.0715, -0.0091, -0.0363, -0.0059, 0.0233, -0.0012, 0.0789, -0.0017, 0.0104, 0.0291, -0.0083, -0.0547, -0.006, 0.0153, 0.0153, 0.0173, 0.0103, 0.0304, 0.0056, 0.015, 0.0182, -0.0342, 0.1045, 0.0333, -0.0085, -0.0324, 0.0312, 0.0203, -0.0142, 0.0115, -0.082, 0.0544, 0.0284, 0.014, 0.0008, 0.0011, 0.0226, 0.0091, 0.0548, 0.0492, 0.0281, 0.0201, 0.0017, 0.0031, 0.0438, 0.0019, 0.0163, 0.0275, 0.0096, 0.0387, 0.0252, 0.0262, 0.0112, -0.0078, 0.0649, 0.0466, -0.0263, -0.0159, 0.0108, 0.0234, 0.0044, 0.0163, 0.1122, 0.0392, 0.0381, 0.0408, 0.0283, 0.1191, -0.0377, 0.0263, 0.0013, 0.0069, 0.0063, -0.009, 0.0125, 0.0104, 0.0071, 0.0521, 0.0181, -0.0135, 0.0132, 0.0392, 0.009, 0.0124, 0.0248, -0.03, 0.0506, -0.0375, 0.0109, 0.0068, -0.1409, 0.029, 0.0121, 0.0155, 0.0336, 0.0151, -0.0222, -0.0805, 0.1605, 0.0181, 0.0474, 0.0213, 0.0098, 0.0709, 0.0405, 0.0142, 0.0052, -0.0012, 0.0245, 0.009, 0.0087, -0.0046, -0.0213, 0.0208, 0.048, 0.0241, 0.0407, 0.04, 0.0366, 0.0251, 0.0189, 0.0174, 0.0129, -0.0508, 0.007, 0.0065, 0.0019, -0.1212, -0.0057, 0.028, 0.0101, 0.0324, 0.028, 0.0043, -0.0457, 0.0363, 0.0507, -0.012, 0.0128, 0.0333, 0.0258, 0.0027, 0.0197, 0.0171, 0.0037, 0.02, 0.0107, 0.0144, 0.0117, 0.0123, 0.0434, 0.0179, 0.0215, 0.0024, -0.0004, 0.0243, -0.0146, -0.0267, 0.067, 0.0177, 0.0245, 0.0186, -0.0042, 0.0419, -0.0062, 0.0064, -0.0211, 0.0129, 0.0219, 0.0136, 0.0993, 0.0225, 0.0038, -0.0057, 0.0341, 0.0123, -0.0071, 0.0191, -0.011, -0.0034, 0.013, 0.0214, 0.0141, 0.0083, 0.0453, 0.0048, -0.0098, -0.1756, 0.0382, 0.0129, 0.0337, -0.0189, 0.0498, -0.0034, 0.0137, 0.0114, 0.065, 0.0472, -0.1299, 0.0207, 0.0513, 0.017, 0.019, 0.0542, 0.0321, -0.0504, 0.0492, -0.0028, -0.2123, 0.0832, 0.0473, -0.0319, 0.0064, 0.0344, -0.0103, 0.0199, 0.0809, -0.0129, 0.0417, 0.0035, 0.1092, 0.0227, 0.009, 0.0217, -0.0433, 0.1421, 0.0173, -0.0146, 0.156, 0.0144, 0.005, 0.101, 0.0274, 0.0078, -0.2024, 0.0268, 0.0488, 0.0799, 0.0234, 0.0139, 0.1195, -0.0062, 0.0279, -0.0014, 0.014, -0.0707, 0.0631, 0.0935, 0.0254, 0.0259, 0.0136, 0.0029, -0.0247, 0.0468, -0.2665, 0.0215, -0.0008, 0.0196, -0.0003, 0.0455, 0.0288, 0.0219, 0.0398, 0.0475, 0.0187, 0.0441, 0.0197, 0.0344, -0.0109, 0.037, 0.0098, 0.0214, -0.0306, 0.0028, -0.0776, -0.0116, 0.0084, -0.0222, -0.0492, -0.0379, 0.0095, 0.0184, 0.0086, -0.0147, 0.0073, -0.0323, 0.0523, -0.1288, -0.0641, 0.0266, 0.0307, -0.0364, -0.0417, 0.013, -0.0261, 0.0627, -0.0133, 0.0121, 0.0174, 0.0147, -0.0267, 0.0075, 0.145, -0.1137, 0.0003, 0.0232, 0.0108, -0.1085, 0.0293, 0.102, -0.0041, 0.0781, 0.0204, 0.0167, -0.0592, 0.0063, -0.0068, 0.0361, 0.0576, 0.0347, 0.002, 0.0149, 0.0208, 0.0436, 0.1269, 0.0448, 0.0082, 0.0384, 0.0084, 0.0816, 0.0074, -0.1156, 0.0082, -0.0063, 0.0195, 0.0225, 0.0112, -0.0398, -0.0132, 0.0115, -0.0054, -0.0125, 0.0153, 0.014, 0.0345, 0.0375, 0.0928, -0.0183, 0.0264, -0.0657, 0.1323, 0.0065, 0.0514, 0.0347, 0.0235, 0.0447, 0.0188, 0.0296, 0.0222, 0.0245, 0.031, -0.0202, 0.0632, 0.0565, 0.0238, 0.0271, 0.0515, -0.077, 0.0322, 0.0293, 0.0171, 0.0075, 0.0117, 0.0262, 0.0242, 0.0102, -0.0073, 0.0271, 0.0184, 0.0027, 0.0139, 0.0701, 0.0228, 0.0129, 0.0188, 0.0187, -0.0091, 0.0262, 0.0204, 0.008, 0.0205, 0.0043, -0.2223, 0.0257, 0.0223, 0.023, 0.0441, 0.1105, 0.0176, 0.0306, -0.0197, 0.0095, 0.0275, 0.0137, -0.0443, 0.0045, 0.0108, 0.0236, 0.0135, 0.0422, -0.028, 0.0154, 0.055, -0.0002, 0.0168, 0.0156, 0.0246, 0.0137, 0.0214, 0.0158, 0.0027, -0.0922, 0.0193, 0.0777, 0.0269, 0.0221, 0.068, -0.0041, 0.0165, 0.0163, 0.0268, 0.0436, 0.0088, -0.0106, 0.0154, 0.0635, 0.0316, 0.0131, 0.0686, 0.0312, 0.0174, 0.0279, 0.0235, 0.0075, 0.004, 0.1053, -0.0091, 0.0264, 0.0529, 0.0326, 0.0221, 0.0342, 0.0257, 0.0152, 0.0009, 0.0299, 0.0074, 0.1057, 0.0267, 0.0281, 0.0419, 0.0127, 0.0329, 0.013, 0.0445, -0.0321, -0.0196, 0.0223, -0.0543, 0.0018, 0.0639, 0.0036, 0.0119, 0.0164, 0.0115, 0.0327, 0.0273, -0.0029, 0.0617, 0.0217, 0.0045, 0.0209, 0.081, -0.0148, 0.011, 0.0417, 0.0082, -0.0753, -0.0079, 0.0499, 0.0852, 0.0272, -0.0257, 0.0731, -0.0856, -0.193, 0.0389, 0.0616, -0.007, -0.1914, 0.0043, 0.0216, 0.0117, -0.0213, -0.0479, 0.0428, 0.0229, 0.0087, -0.0448, -0.0008, -0.1061, 0.0411, 0.0238, -0.0723, 0.0179, 0.0172, -0.0193, 0.058, 0.0363, 0.0238, -0.0076, -0.005, 0.0248, 0.1257, -0.0491, -0.1183, 0.0172, 0.018, 0.0388, 0.0128, 0.0222, 0.0068, -0.0086, 0.0052, 0.0409, 0.0072, 0.0403, 0.0389, 0.0136, -0.0811, 0.0127, -0.035, 0.0044, -0.0253, 0.012, 0.0152, 0.015, -0.0346, -0.0075, 0.0012, -0.0034, 0.0184, -0.0818, -0.0185, 0.0035, 0.0042, 0.0625, -0.1539, 0.02, 0.0075, -0.1103, -0.0319, 0.0071, -0.014, -0.7902, 0.1098, -0.0972, 0.1098, 0.0133, 0.0067, 0.0044, -0.1356, -0.1046, 0.0208, 0.018, -0.0057, -0.1028, 0.0131, 0.0027, -0.0137, -0.0071, 0.01, -0.0132, 0.0098, 0.0218, 0.0213, 0.0084, 0.0101, 0.0081, -0.0524, 0.0146, -0.0032, 0.0239, 0.0052, 0.028, -0.0168, 0.0387, 0.0122, 0.0421, 0.014, 0.034, -0.0475, 0.0159, 0.2055, 0.0043, 0.0017, 0.0258, 0.0034, -0.0488, 0.0212, 0.0102, 0.0612, 0.0098, -0.0135, -0.1675, 0.0082, -0.0124, 0.0055, -0.0522, 0.0097, -0.0138, 0.0034, -0.1769, 0.0129, 0.0247, -0.1647, 0.0252, 0.0211, 0.0445, -0.0078, 0.0982, 0.0782, 0.051, 0.0242, 0.0024, 0.0496, 0.0039, 0.0615, 0.0721, 0.0117, -0.2672, 0.0327, 0.007, 0.0411, 0.0784, 0.0391, 0.0066, 0.0107, 0.0347, 0.0261, 0.0178, 0.0563, 0.0387, -0.0118, -0.0076, 0.0105, -0.0009, 0.0284, 0.0704, 0.0043, 0.0212, -0.0258, 0.0442, -0.0756, -0.0027, -0.0032, 0.026, 0.0521, 0.0278, 0.0306, 0.0237, 0.0189, 0.0253, -0.0209, 0.0093, 0.0418, -0.0044, 0.0193, 0.0288, 0.0243, 0.062, -0.0623, 0.0023, 0.026, 0.0428, 0.0173, -0.0249, 0.0163, 0.0325, 0.0141, 0.0201, 0.0003, 0.0056, 0.0077, 0.0166, -0.0321, -0.0086, 0.0872, 0.0024, -0.0023, -0.0325, 0.0205, 0.0198, 0.0133, 0.0252, 0.0289, 0.0095, -0.0395, 0.0153, -0.0158, -0.0202, -0.0156, 0.0343, 0.0196, 0.0163, 0.0074, 0.0627, -0.0434, 0.0211, -0.0865, 0.0128, -0.0172, 0.0258, 0.0435, 0.0398, 0.0309, -0.0012, -0.0569, -0.0798, 0.0056, 0.0558, 0.0069, 0.0328, -0.0374, 0.0372, 0.0145, 0.2251, -0.2197, 0.0076, 0.0049, 0.038, 0.042, -0.0147, -0.3187, 0.0138, -0.0047, 0.0019, 0.0358, 0.0076, -0.0011, 0.0176, 0.0188, 0.0158, 0.0069, 0.0236, 0.0538, -0.0016, 0.0151, 0.018, 0.0113, 0.0126, 0.0196, 0.0185, -0.0294, -0.1369, 0.015, 0.0243, 0.0168, 0.0354, 0.0426, 0.0549, 0.0184, -0.1873, 0.0846, 0.0004, 0.0187, 0.0013, 0.0106, 0.0094, -0.0341, 0.0156, 0.0312, 0.033, -0.0104, 0.2063, 0.0349, 0.0184, -0.1235, 0.019, 0.0066, -0.1852, 0.0127, 0.0103, -0.1875, 0.0251, 0.01, 0.0144, 0.0199, 0.0496, 0.0185, 0.029, -0.0132, -0.0911, 0.0227, -0.0017, 0.0253, 0.0174, -0.0293, 0.0235, -0.0397, 0.0027, 0.0103, 0.0321, 0.0212, 0.0199, 0.023, -0.0035, -0.1523, -0.0852, 0.033, 0.002, 0.0101, 0.0196, -0.0548, -0.0444, 0.0268, 0.038, 0.0576, 0.0367, 0.0361, -0.0479, 0.095, -0.0044, 0.003, -0.0415, -0.0213, 0.0891, 0.0266, 0.0259, -0.0287, 0.0242, 0.0115, 0.0291, -0.005, 0.0248, 0.0284, -0.0284, 0.0115, 0.0799, 0.0562, 0.0246, 0.0324, 0.0154, 0.014, 0.0213, 0.0292, 0.0308, 0.0227, 0.0492, 0.0049, -0.03, -0.0226, 0.0437, 0.0248, -0.1669, 0.0077, -0.0066, 0.0083, 0.0206, 0.0118, 0.0343, 0.0017, -0.0205, -0.0797, 0.0613, 0.0548, 0.1328, 0.009, 0.1387, -0.0089, 0.0262, 0.0683, 0.0261, 0.0045, 0.0058, 0.0036, 0.04, 0.0038, 0.0193, 0.0058, 0.0053, 0.0248, -0.0085, 0.0091, 0.0108, 0.0813, -0.0053, 0.0497, 0.0318, -0.059, -0.0115, 0.0436, 0.0346, 0.0045, -0.0656, 0.014, 0.0136, -0.0661, 0.0126, 0.0885, -0.0356, 0.0604, 0.0165, 0.0269, 0.0345, 0.0787, 0.0063, 0.0428, 0.1327, 0.0261, 0.0074, 0.0103, -0.035, 0.0358, -0.0402, 0.0132, 0.0069, 0.0058, 0.0522, 0.0209, 0.0197, -0.0496, 0.0262, -0.0139, 0.0163, -0.0153, 0.0183, 0.0377, 0.0286, 0.0351, 0.0262, 0.0327, 0.0277, 0.0016, -0.0038, 0.0189, 0.0086, 0.0143, -0.3943, 0.0486, 0.0098, 0.0269, 0.0248, 0.0392, 0.0016, 0.0559, -0.0699, 0.0606, 0.0169, 0.0094, 0.0101, -0.022, 0.0339, 0.018, 0.0375, -0.0235, 0.0212, 0.0427, 0.0151, 0.0229, 0.0203, -0.0036, 0.0523, 0.0488, -0.0245, 0.0561, 0.0351, 0.027, 0.1135, 0.0673, 0.013, 0.0184, 0.0259, 0.0286, 0.0183, 0.0255, 0.0252, 0.0677, -0.0026, 0.0628, 0.0081, 0.0071, 0.0472, 0.0007, -0.0, 0.0323, 0.0191, 0.0099, 0.019, 0.0194, 0.0117, -0.0582, 0.0466, -0.1319, -0.0058, 0.0042, -0.0679, 0.0426, 0.0454, 0.0398, -0.0136, 0.0145, 0.0462, 0.0268, -0.0238, -0.045, 0.0649, 0.0047, -0.0371, -0.0508, 0.0078, -0.0004, 0.0187, 0.0259, 0.0425, -0.0046, 0.0365, -0.0144, 0.0037, 0.0136, 0.0059, 0.0206, 0.0305, -0.0077, -0.001, 0.0346, 0.0991, -0.0866, 0.0444, 0.0252, 0.013, 0.0353, 0.0582, -0.0105, -0.0959, -0.0124, 0.0282, -0.0086, 0.055, 0.0025, -0.0274, 0.0496, 0.0097, -0.0335, 0.0098, 0.0192, 0.0094, -0.0051, 0.0411, 0.0162, 0.0121, -0.0779, 0.0218, 0.0287, 0.0185, -0.106, -0.0241, -0.0165, 0.0151, 0.019, -0.0029, 0.0263, 0.0102, 0.0211, -0.0553, -0.0028, -0.1348, -0.0175, -0.277, 0.0224, 0.0213, -0.0029, 0.0053, 0.0076, 0.0328, 0.0072, 0.0318, 0.0448, 0.0021, 0.0214, 0.0137, 0.0777, 0.0031, 0.0077, 0.0396, 0.0209, 0.0152, -0.0095, 0.0606, 0.0093, 0.0306, -0.0045, 0.0435, 0.0816, -0.0286, 0.0468, 0.0028, 0.0016, 0.0415, 0.011, 0.0448, -0.0147, 0.0298, 0.0432, -0.0766, 0.0098, 0.0125, -0.0825, 0.0155, 0.0154, -0.0046, -0.0037, 0.0158, 0.0046, 0.0014, -0.033, 0.0054, 0.0156, -0.0213, -0.0514, -0.0247, 0.0237, 0.0189, 0.0157, 0.0068, 0.023, 0.0261, 0.0313, -0.0333, -0.0097, -0.0172, 0.0438, -0.1117, 0.0076, 0.0017, 0.0091, 0.0397, 0.0327, 0.0065, 0.0194, 0.0442, -0.0436, 0.0194, 0.0202, -0.066, 0.009, 0.0912, 0.07, 0.0365, -0.0095, 0.0, 0.0715, -0.0223, -0.0081, -0.1711, -0.0514, 0.04, 0.0274, 0.0983, -0.0274, 0.0272, -0.0461, 0.0515, 0.0403, 0.0045, -0.017, 0.0194, 0.0212, 0.2787, -0.08, -0.0166, 0.0163, 0.0166, -0.0254, 0.0103, -0.0453, 0.0013, 0.0175, 0.0455, 0.0663, 0.0075, 0.0291, -0.3263, 0.0208, 0.0502, 0.0061, -0.2544, 0.014, 0.0937, 0.0257, 0.014, -0.027, 0.0211, 0.0435, -0.0308, 0.0786, 0.0439, -0.0006, -0.0021, 0.0814, 0.0149, -0.004, 0.0738, 0.0166, -0.056, -0.0781, 0.0186, 0.0255, 0.0119, 0.0248, -0.0228, -0.1839, -0.0572, -0.0126, -0.0042, 0.0192, -0.0172, 0.043, 0.0334, 0.0416, -0.0006, 0.0171, 0.0153, 0.0048, -0.0012, 0.0912, 0.1845, 0.0286, 0.0105, 0.0062, -0.0592, 0.0148, 0.0074, 0.0587, 0.0715, 0.01, 0.0108, 0.0103, 0.0223, 0.02, 0.0421, 0.0323, 0.0433, -0.094, -0.0058, 0.0284, -0.0119, -0.0023, -0.0454, 0.0173, 0.0347, 0.0728, 0.0218, 0.0361, 0.0141, 0.0212, 0.0836, 0.0379, 0.0115, -0.1149, 0.0234, 0.0718, -0.0013, 0.0761, 0.0528, -0.0009, -0.004, 0.0105, 0.0013, 0.0234, 0.0182, 0.0141, 0.0164, 0.0292, 0.0591, 0.0101, 0.0603, 0.0155, 0.0529, 0.008, 0.0208, -0.0431, 0.0062, 0.1273, -0.0096, 0.0153, 0.0029, 0.0076, 0.0179, 0.0607, -0.0015, 0.0082, -0.0077, 0.0137, 0.0327, 0.0021, -0.0232, 0.0211, 0.2144, -0.065, 0.0088, -0.0123, 0.0273, -0.0243, 0.0313, 0.0401, 0.0094, -0.0007, 0.0088, 0.0298, 0.1413, -0.0087, -0.0212, -0.0069, -0.1371, 0.0103, 0.0464, -0.2576, -0.0575, -0.0623, -0.0613, -0.0544, 0.0427, 0.0649, 0.0259, -0.017, 0.0046, -0.0001, 0.0395, 0.0523, -0.0982, -0.0266, 0.01, 0.0252, 0.0142, 0.1045, 0.0218, -0.041, 0.089, 0.0734, 0.1375, -0.0114, 0.0083, 0.0412, 0.0025, 0.0147, -0.1493, 0.025, -0.0218, 0.0183, 0.0354, 0.0022, 0.0158, 0.0179, 0.0203, 0.0552, 0.0841, 0.0378, 0.0334, 0.0923, 0.0191, -0.0281, 0.0324, 0.0201, -0.0021, 0.0179, -0.0816, 0.0158, 0.008, 0.0322, 0.0488, 0.0143, 0.0182, 0.0255, 0.0148, 0.0301, 0.0155, 0.0181, 0.0065, 0.0151, -0.076, 0.0185, 0.2211, 0.0149, 0.0245, 0.0383, 0.0301, 0.0715, 0.0234, 0.0229, -0.0075, 0.0875, 0.0422, 0.0849, 0.043, 0.0125, 0.0218, 0.0163, 0.0327, 0.0319, 0.016, -0.0167, 0.0021, -0.1204, 0.1623, 0.0133, -0.0615, 0.0425, 0.0268, 0.0469, -0.0359, 0.0267, -0.006, 0.0011, -0.5107, 0.0099, 0.0259, 0.0094, 0.0234, 0.0291, 0.1082, 0.0244, 0.0209, 0.0081, -0.047, -0.0136, -0.0005, 0.0774, 0.0205, 0.0744, -0.0234, 0.0349, 0.0169, -0.0019, 0.0333, -0.0566, 0.0223, 0.0246, 0.0654, 0.0161, 0.0407, 0.0191, -0.0003, -0.0029, 0.0104, 0.0302, 0.0226, 0.0338, -0.0591, 0.0139, -0.0388, 0.018, -0.0778, 0.001, 0.0464, 0.0037, 0.0315, 0.0082, 0.0337, 0.0484, 0.0133, -0.0794, -0.0702, 0.0205, 0.0079, 0.0139, 0.0178, 0.0105, 0.0245, 0.0091, -0.1156, 0.1014, 0.1051, 0.01, 0.0206, 0.0118, 0.0143, -0.0822, -0.0725, 0.0256, 0.0336, 0.0116, 0.0219, 0.0076, -0.0006, 0.0114, 0.0113, 0.0246, 0.0144, 0.0448, 0.0089, 0.0107, 0.0179, 0.0522, 0.016, 0.0207, 0.0336, 0.01, 0.0844, 0.0579, 0.0573, 0.0116, 0.0086, -0.0059, 0.0068, 0.0138, 0.0615, 0.045, -0.0118, -0.0538, 0.0141, 0.0162, 0.042, 0.0571, 0.0149, 0.0341, -0.0813, 0.0589, 0.0237, -0.0108, 0.027, -0.0777, 0.0121, 0.0287, -0.0226, -0.0386, -0.123, 0.2046, -0.016, -0.0139, -0.0102, 0.0197, 0.0007, 0.0179, 0.0227, 0.0368, 0.0245, 0.0368, -0.0088, 0.0186, 0.0177, 0.031, 0.0069, -0.014, 0.0011, -0.0046, 0.0069, 0.0306, 0.0149, -0.1535, 0.0155, 0.0185, 0.0144, 0.0316, 0.0352, 0.0051, 0.0269, -0.0144, 0.0215, 0.0167, 0.0195, 0.0349, 0.0382, 0.0793, -0.0382, 0.0183, -0.0083, -0.1191, 0.0059, 0.0625, 0.0009, 0.0177, 0.0246, 0.0349, 0.0171, 0.0194, 0.0442, 0.0178, 0.0276, -0.0256, 0.0201, 0.0363, 0.0408, 0.029, -0.0013, 0.0071, 0.004, 0.036, 0.0129, 0.0101, 0.0263, 0.0192, 0.0181, -0.0122, 0.0251, 0.0235, 0.0136, 0.0179, -0.0013, 0.0131, 0.1078, 0.0275, 0.0214, -0.0587, 0.0265, 0.033, 0.0161, -0.0257, 0.0192, 0.0022, 0.0287, -0.1342, 0.0123, 0.0137, 0.0123, 0.1026, 0.0108, 0.0144, -0.0078, 0.0066, -0.0153, -0.0494, 0.0176, 0.0203, -0.0003, -0.0427, 0.0401, 0.0115, 0.0339, 0.0577, 0.0177, 0.0117, 0.0261, 0.0348, 0.164, 0.028, 0.0207, 0.0109, 0.0144, 0.0088, 0.0007, 0.0019, 0.0225, 0.0115, 0.0924, 0.0316, -0.5066, 0.0891, 0.0169, 0.015, 0.0117, 0.0169, 0.0434, 0.0074, 0.0709, 0.0084, 0.0442, 0.0032, 0.0232, 0.0278, 0.0226, 0.0263, 0.0441, 0.0225, 0.0098, 0.0196, 0.0194, 0.0111, 0.0229, 0.0111, 0.0202, 0.0304, 0.0068, 0.0309, 0.0263, 0.0367, 0.0271, 0.0161, -0.0031, 0.0105, 0.033, 0.0214, -0.0097, 0.0259, 0.0243, 0.018, 0.0492, 0.0114, 0.0078, -0.1537, 0.0167, 0.0227, 0.1055, 0.0198, -0.0272, -0.0076, 0.0202, -0.0411, 0.023, 0.0082, 0.0139, 0.0041, 0.035, 0.0141, 0.007, 0.0101, 0.0355, 0.0435, 0.0125, 0.0183, 0.061, -0.0271, 0.032, 0.0226, 0.0318, 0.0021, 0.0233, 0.0088, 0.0008, 0.0129, 0.018, 0.0237, 0.0067, 0.0047, 0.019, 0.0291, 0.0294, 0.0028, -0.0209, 0.0202, 0.0036, 0.0067, 0.0214, 0.0026, 0.035, 0.0287, 0.0384, 0.0153, 0.0349, 0.0171, -0.0345, 0.025, 0.0145, 0.0286, 0.0024, 0.0069, 0.0052, 0.0238, 0.0251, -0.0245, 0.0284, 0.0262, 0.0568, 0.0209, 0.0169, 0.0188, 0.0073, 0.0142, 0.0223, 0.0011, 0.0007, -0.0089, 0.024, 0.0275, 0.0239, 0.0211, 0.064, 0.0445, 0.0202, -0.0297, 0.0064, 0.0372, -0.0749, 0.0131, 0.0009, -0.0115, 0.0195, 0.0544, 0.0222, 0.0345, 0.0218, -0.0694, -0.0635, 0.0299, 0.0166, 0.021, -0.0003, 0.0185, -0.0538, 0.0445, 0.0082, -0.1305, 0.0252, 0.0203, -0.0113, 0.0039, 0.0182, 0.0422, -0.0088, -0.004, 0.033, -0.0166, 0.0184, 0.054, 0.0208, 0.0264, 0.0034, 0.0195, 0.0314, 0.042, 0.0072, 0.0333, 0.0067, 0.0043, 0.0176, -0.0194, -0.003, 0.026, -0.0009, 0.0573, 0.0606, 0.0253, -0.028, 0.0172, 0.0454, -0.0437, 0.0621, -0.0211, -0.0979, 0.014, 0.0073, 0.0119, 0.0112, 0.0235, 0.0237, 0.0842, 0.024, -0.0021, 0.0326, 0.0207, 0.036, 0.0725, 0.0538, 0.0112, 0.0186, -0.0086, 0.0202, 0.0325, -0.0388, -0.2921, -0.0022, 0.1106, 0.0128, -0.0121, 0.0284, 0.0211, 0.0217, 0.014, 0.031, 0.0228, 0.0562, 0.3593, 0.0665, -0.0208, 0.0045, 0.011, -0.0161, 0.0129, 0.064, -0.0151, -0.0019, 0.0086, 0.0134, -0.0362, 0.1594, -0.0425, 0.0024, 0.0122, 0.0123, 0.0829, -0.0142, -0.0105, 0.0568, -0.0003, -0.0128, 0.0206, 0.0245, 0.0456, 0.0462, 0.0281, 0.0116, 0.0163, 0.0318, 0.0119, 0.1928, -0.0115, 0.0176, 0.1952, 0.021, 0.0199, 0.0074, 0.0154, 0.073, 0.0155, 0.0156, 0.018, 0.0043, 0.0072, 0.0346, 0.0197, -0.0207, -0.0527, -0.0063, 0.0342, 0.0059, -0.0194, 0.0263, 0.0698, 0.0133, -0.0048, 0.0153, 0.0151, 0.0187, 0.0103, 0.0237, 0.0348, 0.0055, 0.0478, 0.0303, 0.052, 0.0176, -0.055, -0.0915, -0.0062, 0.0968, 0.0211, 0.0397, 0.0128, 0.0303, 0.0239, -0.0136, 0.026, -0.0283, 0.0246, 0.0068, 0.0587, 0.0183, -0.0039, 0.0014, 0.0058, 0.0256, 0.0061, 0.0065, 0.136, 0.0078, 0.0655, 0.0496, 0.0354, -0.0026, 0.0339, 0.024, 0.0342, 0.0078, 0.0174, 0.013, 0.042, -0.008, 0.02, 0.0137, 0.0114, -0.0059, 0.0052, 0.0355, 0.0378, -0.0023, 0.0084, 0.0121, 0.0435, 0.013, 0.0832, 0.0368, 0.0126, 0.0158, 0.0477, 0.0088, 0.0208, -0.0712, 0.0233, 0.0031, 0.0245, 0.1351, 0.0254, 0.0091, 0.0305, 0.0267, -0.3438, 0.0821, 0.0462, 0.0133, -0.1044, -0.0055, -0.0072, -0.0107, 0.0475, 0.0142, 0.0252, 0.0125, 0.01, 0.014, 0.0202, 0.0062, -0.1315, 0.0474, 0.0292, 0.0296, 0.1887, 0.0003, -0.1137, 0.0039, 0.0541, 0.0208, -0.0527, -0.3997, 0.0177, 0.0251, 0.0298, 0.0173, -0.0514, -0.0046, -0.0106, -0.0005, 0.0045, -0.0109, 0.0304, -0.0007, 0.0031, 0.004, -0.0088, 0.0602, -0.0024, 0.0283, 0.0538, 0.0364, 0.0165, 0.014, 0.0162, 0.024, -0.0451, 0.0033, 0.0366, 0.0202, 0.0134, 0.0301, 0.0488, -0.0795, 0.0101, 0.0187, 0.0091, -0.0017, 0.0275, 0.0359, -0.0037, 0.0103, 0.0104, -0.0023, 0.0256, 0.0345, 0.0095, 0.0252, -0.1429, 0.0128, 0.0264, 0.034, 0.0476, -0.0233, 0.0089, -0.0042, 0.0022, -0.0233, -0.0233, 0.0219, 0.017, -0.0196, 0.032, 0.0127, 0.0605, -0.0277, 0.0137, 0.0085, 0.0591, 0.0177, -0.109, 0.049, -0.1214, -0.0248, -0.1812, -0.0123, -0.0199, 0.0442, 0.0001, 0.0173, 0.0601, -0.4874, 0.0191, -0.0591, 0.0219, -0.0005, -0.0174, 0.0218, 0.0027, 0.0237, 0.0261, 0.0046, 0.0316, 0.0401, -0.035, 0.0134, 0.0349, 0.1862, -0.0484, 0.0267, 0.094, 0.0124, -0.0349, 0.0101, -0.0332, 0.0024, 0.0155, -0.0182, 0.0342, -0.0238, 0.0396, 0.0007, 0.0338, -0.0086, 0.0039, -0.2547, 0.038, 0.0206, 0.0142, -0.0726, 0.0013, -0.0049, 0.0446, 0.0267, 0.0772, 0.0117, 0.0524, 0.0148, -0.0, 0.0434, 0.0776, 0.003, 0.0068, 0.0364, 0.0304, 0.0277, 0.003, 0.0469, 0.0144, 0.0429, 0.0236, 0.0187, 0.0407, 0.0919, 0.0078, 0.0273, -0.0037, 0.0172, -0.0423, 0.0481, 0.0478, 0.0107, 0.0414, 0.0438, 0.0244, 0.055, -0.0023, 0.0305, 0.0177, 0.0152, 0.0597, 0.0361, 0.059, 0.0668, -0.0448, 0.0475, 0.0946, 0.0483, -0.002, 0.0217, 0.0458, -0.0014, -0.0165, 0.0863, 0.0464, 0.0602, 0.0157, 0.0875, 0.0145, 0.0319, 0.0452, 0.034, 0.0277, 0.0073, 0.0331, 0.0092, 0.0432, 0.0192, 0.01, -0.0063, -0.0221, 0.0026, 0.0629, -0.0003, 0.0315, 0.032, -0.0041, 0.0265, 0.1099, -0.0368, -0.0079, 0.0184, 0.0257, 0.0266, 0.0372, 0.0502, 0.0272, -0.0953, -0.0708, 0.0447, 0.0203, 0.0181, 0.0596, 0.0052, 0.0192, 0.081, 0.0095, 0.004, 0.0097, 0.0271, 0.0169, 0.0291, -0.011, -0.0265, 0.0052, -0.0154, -0.013, -0.0118, 0.0003, 0.0225, -0.0349, 0.0465, 0.0251, 0.0143, 0.026, -0.0027, 0.0036, 0.0193, -0.0166, 0.0397, 0.0114, 0.0555, 0.0224, 0.0585, -0.1377, 0.0197, 0.0108, 0.0106, 0.0434, 0.0641, -0.0027, -0.0028, 0.0337, 0.008, 0.0056, 0.0051, 0.0266, 0.0118, 0.0422, -0.0167, -0.1387, 0.026, 0.0617, 0.0193, 0.0252, -0.1841, -0.0229, 0.0338, -0.0492, 0.0041, 0.04, 0.0108, -0.0004, 0.0029, 0.017, 0.0126, -0.0032, 0.0048, -0.3134, 0.0265, -0.0335, 0.0307, 0.002, 0.0345, 0.0499, 0.002, 0.0294, 0.0362, 0.0165, 0.0291, 0.029, 0.0099, 0.0142, 0.1411, -0.0117, -0.0005, 0.0087, -0.0066, 0.027, 0.0086, 0.0301, 0.0234, 0.015, 0.0067, 0.0281, 0.0109, 0.0422, 0.1129, 0.0136, 0.0558, 0.0544, -0.073, -0.0, -0.0027, -0.0056, 0.0185, 0.0165, 0.07, -0.0298, -0.0011, 0.0387, 0.0153, 0.0222, 0.0268, -0.0312, 0.0253, 0.022, -0.004, 0.0118, 0.0342, 0.0272, 0.0117, -0.4284, 0.0181, -0.1105, -0.0018, 0.0499, 0.0344, 0.0086, 0.0224, -0.1083, -0.051, -0.1665, 0.0053, 0.0221, 0.0181, 0.0108, 0.0247, 0.0156, 0.0065, -0.0177, -0.0446, 0.0188, 0.0998, 0.0227, 0.0285, 0.0453, -0.0109, -0.0048, -0.1661, 0.22, 0.0217, 0.1097, 0.0089, 0.0158, 0.0197, -0.009, 0.0167, 0.0376, 0.062, 0.0112, 0.0303, 0.0452, 0.0282, 0.0201, 0.0274, -0.0031, 0.0276, -0.0076, -0.0276, 0.0162, 0.0164, -0.0047, 0.0153, 0.0103, 0.0084, 0.0859, 0.0098, 0.0083, 0.0097, 0.0192, 0.0131, -0.0152, 0.004, 0.0186, 0.0077, -0.1363, -0.0165, 0.0321, -0.0007, 0.0557, 0.0147, -0.0158, 0.0237, 0.0035, -0.0005, 0.045, -0.0079, -0.1813, 0.047, 0.0312, 0.0493, 0.0098, 0.0135, 0.0081, 0.0164, 0.02, 0.0284, 0.0821, 0.0705, 0.035, 0.0096, 0.007, 0.0264, 0.011, -0.0432, 0.011, -0.0483, 0.0206, 0.0223, 0.0012, 0.0336, 0.0176, -0.0059, 0.014, 0.0102, 0.0189, 0.0024, 0.0168, -0.0414, 0.0388, 0.0064, 0.1899, -0.0465, 0.0694, 0.0155, 0.0099, 0.0181, 0.0119, 0.0019, 0.0088, 0.0226, -0.006, 0.0269, 0.0443, 0.0056, 0.0313, -0.0985, 0.0183, 0.0097, 0.0124, 0.0173, 0.0169, -0.0064, 0.0051, 0.0162, 0.0172, 0.028, 0.0545, 0.0111, 0.0131, -0.0345, 0.0136, 0.0276, -0.0046, -0.0288, -0.0024, 0.0273, -0.1217, 0.0154, -0.007, 0.0722, -0.0353, 0.0507, 0.2297, 0.0143, 0.141, 0.0063, 0.0017, -0.0302, 0.0308, 0.0185, 0.0377, -0.0001, 0.0113, 0.0097, 0.021, 0.0301, 0.0062, 0.0182, -0.0565, 0.0179, 0.0187, 0.0424, 0.0305, 0.0804, 0.0188, -0.0074, 0.0421, 0.005, 0.0115, 0.0431, 0.0246, 0.0168, 0.0327, 0.0554, 0.044, -0.0248, -0.0452, 0.0081, 0.0232, 0.0424, 0.0132, 0.0129, 0.0089, 0.0123, 0.0076, 0.0256, 0.0188, 0.0142, 0.0414, 0.0078, 0.0133, 0.0493, -0.0453, 0.0071, 0.0371, -0.0052, 0.0434, 0.0337, 0.0092, 0.0511, 0.0153, 0.0058, 0.0081, 0.0287, 0.0103, 0.0117, 0.0244, 0.0197, 0.0452, 0.0228, 0.0219, 0.0268, 0.056, 0.1061, -0.0016, -0.1202, -0.0062, 0.0262, 0.0355, -0.0043, -0.0261, 0.0153, 0.0205, 0.0007, -0.0808, 0.0342, 0.0189, 0.2185, 0.0276, 0.021, 0.0027, 0.0315, 0.1136, -0.2185, 0.096, -0.0142, 0.0506, 0.0375, 0.0068, -0.0169, 0.0327, 0.0212, 0.0536, 0.0136, 0.0496, -0.1392, 0.0271, 0.0169, 0.1939, 0.0317, 0.0273, 0.0978, 0.1918, 0.018, -0.0153, 0.0206, 0.0155, 0.0151, -0.0047, 0.0224, 0.0296, -0.05, 0.0096, 0.0222, 0.075, 0.0145, -0.1115, 0.02, 0.0128, 0.0151, -0.0016, 0.0075, 0.0756, 0.0182, 0.0453, 0.0207, -0.011, 0.0367, 0.0229, 0.0161, 0.0801, 0.0127, -0.0075, 0.0223, 0.0503, 0.0144, 0.0367, 0.0287, -0.0091, 0.0159, -0.0276, 0.0113, 0.0089, -0.0049, 0.0125, 0.0309, 0.0077, 0.0252, 0.0337, 0.0472, -0.0206, 0.0373, 0.0141, -0.0628, 0.0248, 0.0547, 0.0147, 0.0406, 0.0025, 0.0055, -0.0112, -0.0058, 0.009, -0.0059, 0.0851, 0.0516, 0.0106, -0.1124, 0.0515, 0.0145, 0.0229, -0.0015, 0.0294, 0.0321, 0.1719, 0.0069, 0.0564, 0.0256, 0.0503, 0.05, 0.0078, 0.0293, -0.0053, 0.0287, -0.0144, 0.0154, 0.0363, 0.0175, 0.0401, -0.0311, 0.0199, 0.0426, 0.0679, 0.0261, 0.028, -0.0495, -0.0011, 0.0171, 0.009, -0.1326, 0.011, 0.019, 0.0242, -0.0014, 0.0002, -0.0313, -0.0224, 0.0459, 0.0131, 0.0214, -0.0619, 0.0116, 0.0061, 0.0125, -0.0303, -0.0718, 0.0237, 0.0128, 0.1949, 0.0343, 0.0313, 0.0327, 0.0166, 0.0245, 0.0014, -0.0228, -0.0138, 0.0432, 0.0174, 0.0273, 0.0302, -0.0424, 0.0764, 0.0221, 0.0188, -0.0431, 0.0104, 0.0638, 0.0145, 0.0001, 0.0011, 0.0098, 0.027, 0.0502, 0.0188, 0.0797, 0.0124, 0.012, 0.0113, 0.0892, 0.0239, 0.0166, 0.026, 0.0166, -0.0821, 0.0177, 0.0138, 0.021, 0.0103, 0.0343, 0.0163, 0.0349, 0.014, 0.029, 0.0446, 0.0272, 0.0145, 0.0132, -0.0102, 0.0116, 0.0241, 0.025, 0.0169, 0.0342, 0.0167, -0.1207, 0.0185, -0.0111, -0.0145, 0.0401, 0.0227, 0.0375, 0.0622, 0.022, 0.001, 0.0065, 0.0273, 0.0235, 0.0423, 0.0129, 0.0123, 0.0232, 0.0415, 0.0249, 0.0094, -0.0017, 0.0183, 0.035, 0.0388, 0.0314, -0.0048, 0.0449, 0.0319, 0.0415, 0.043, 0.0248, 0.0632, 0.017, 0.0132, 0.0173, 0.0174, 0.0197, 0.0347, -0.0348, 0.023, 0.0047, -0.0393, 0.0236, 0.0195, 0.0082, 0.0087, 0.0547, 0.0271, 0.0073, 0.0192, -0.029, -0.0113, -0.0045, 0.0113, 0.0202, 0.0043, 0.0516, 0.0814, 0.0385, -0.037, 0.0285, 0.0382, 0.0494, 0.0381, 0.0376, -0.1366, 0.0147, 0.0095, -0.0158, -0.0355, 0.0172, 0.003, -0.0367, 0.0089, 0.0439, -0.0018, 0.0086, 0.0093, -0.0016, -0.0008, -0.0192, -0.0087, 0.0051, -0.0371, 0.0219, -0.0016, -0.0115, 0.0609, -0.0509, -0.0408, -0.0033, 0.0234, 0.0144, -0.0335, 0.0454, 0.0185, 0.0385, -0.0069, 0.0464, -0.0526, 0.1147, 0.0378, 0.0231, -0.0806, 0.0218, -0.009, 0.0106, 0.0075, 0.0204, -0.0007, 0.1374, -0.07, 0.0129, 0.0081, 0.0204, -0.4272, 0.0177, 0.0583, -0.089, -0.0883, 0.0141, 0.008, 0.0138, 0.007, -0.0015, 0.0398, 0.0121, -0.3531, 0.0075, 0.009, -0.0145, 0.0225, 0.0225, 0.0445, -0.0419, 0.039, -0.147, 0.0568, 0.0236, -0.1191, 0.0237, 0.0125, 0.002, 0.0094, -0.0116, 0.0115, -0.0099, 0.0111, 0.0072, 0.2745, 0.0433, 0.016, 0.0079, 0.0127, -0.021, 0.0356, -0.0005, 0.0436, 0.0111, 0.0437, 0.0838, 0.02, 0.0179, 0.0366, -0.0142, 0.0579, 0.0145, 0.0462, 0.0072, 0.0199, 0.0188, 0.0299, 0.025, 0.0147, -0.0045, 0.1951, 0.0071, -0.4013, 0.0618, 0.0211, 0.0038, 0.035, 0.0107, 0.009, -0.0036, 0.0272, 0.0186, 0.0214, 0.0826, -0.0397, 0.0618, 0.0245, -0.1167, 0.03, 0.027, 0.0605, 0.0151, 0.0277, 0.0095, 0.0222, 0.0175, 0.0227, -0.0533, 0.0148, 0.0121, 0.0181, 0.0182, 0.0363, 0.0055, -0.0226, 0.0054, -0.0088, -0.0056, 0.0009, 0.0486, 0.0711, 0.0373, 0.0073, 0.0029, 0.168, -0.0067, -0.0668, 0.0111, 0.0401, 0.0106, 0.0155, 0.0422, 0.0414, 0.017, 0.0154, 0.0256, -0.2068, 0.0282, 0.06, 0.0117, 0.0104, -0.0197, -0.0153, 0.0017, 0.0819, 0.0139, 0.0724, -0.0087, -0.0023, -0.0054, 0.0375, 0.023, 0.0045, 0.0095, 0.0229, 0.0186, 0.0392, 0.0122, 0.0305, 0.0229, 0.0142, 0.0158, 0.0361, 0.0009, 0.0067, 0.0232, 0.029, 0.0201, 0.0287, 0.0842, 0.0187, 0.0089, 0.0342, 0.043, -0.0269, 0.0334, 0.0135, -0.0151, 0.0149, -0.0267, 0.0991, 0.0156, -0.0224, 0.1073, 0.0102, 0.0131, 0.009, 0.0021, -0.0051, -0.0008, -0.0226, 0.0186, 0.0204, 0.0411, -0.1258, 0.0098, 0.0436, 0.0053, 0.0055, 0.0117, -0.064, 0.0214, 0.0036, -0.0243, 0.0474, 0.0115, 0.0229, 0.0287, 0.0519, 0.0461, 0.0108, 0.0317, 0.0078, 0.044, 0.0142, 0.0405, 0.0401, 0.035, 0.0016, 0.0029, 0.0108, 0.0421, -0.0294, -0.0039, 0.0261, 0.0239, 0.0143, 0.0144, -0.1189, -0.0071, 0.0016, -0.0353, 0.0802, -0.0202, 0.0234, 0.1502, 0.0031, 0.0267, 0.0267, -0.0007, 0.016, 0.0235, 0.0274, 0.1403, -0.0017, 0.0105, 0.0257, 0.0139, 0.0052, 0.0036, 0.0577, 0.0244, 0.0249, 0.0543, 0.0722, 0.0098, 0.0285, -0.029, 0.022, 0.0444, -0.0643, -0.0223, 0.0386, 0.0156, -0.0372, 0.0392, 0.0203, -0.0077, 0.0254, -0.4138, -0.0042, -0.0227, 0.0122, -0.0025, 0.008, 0.0129, 0.0238, 0.054, 0.037, 0.0209, 0.0425, 0.0101, -0.099, 0.0435, 0.0334, 0.0494, 0.0192, 0.0185, 0.0215, 0.0208, 0.0035, 0.0159, 0.0132, 0.0278, -5.5183, 0.0101, 0.0139, 0.019, 0.0161, 0.016, 0.0374, -0.023, 0.0036, 0.005, 0.0417, 0.0169, 0.0572, -0.4509, 0.0233, 0.0472, -0.0353, 0.0077, 0.0269, 0.0218, 0.0433, -0.0085, 0.0335, -0.0341, 0.0135, 0.0152, 0.0492, 0.0059, 0.0337, 0.035, 0.0275, 0.0264, 0.014, 0.1181, 0.0091, 0.0139, 0.0252, 0.0905, 0.0158, 0.051, 0.0086, 0.0271, -0.0284, 0.0187, 0.0062, 0.0516, -0.0191, -0.0323, 0.022, 0.138, 0.0497, -0.04, 0.0119, 0.0102, 0.0945, 0.0137, 0.023, -0.0073, 0.0516, 0.0071, 0.0064, 0.0154, 0.0206, 0.0354, 0.0158, 0.0319, 0.0612, 0.0115, 0.224, -0.0276, 0.0306, -0.0009, 0.015, 0.0138, -0.0285, 0.0298, 0.0318, 0.0323, 0.0152, 0.0116, -0.0373, 0.0278, 0.011, 0.0151, 0.0449, 0.0297, 0.0216, -0.0054, 0.0219, 0.0017, 0.0431, 0.0462, -0.0009, 0.0299, 0.0217, 0.033, 0.0269, 0.0037, 0.0297, 0.0408, 0.0252, 0.0143, 0.0202, 0.2669, 0.008, 0.0334, 0.0503, 0.0102, -0.0428, -0.0775, -0.0255, 0.0089, 0.0418, 0.0264, -0.0132, 0.0089, -0.0098, 0.0512, 0.0146, 0.015, -0.0062, -0.0154, 0.0168, 0.0407, 0.0213, 0.0122, 0.0116, -0.0039, -0.0878, 0.0373, 0.0011, 0.0125, 0.014, 0.0202, 0.0312, 0.0268, -0.0124, 0.0116, 0.0447, 0.043, 0.0515, 0.01, 0.0081, 0.0093, 0.0295, 0.0293, 0.0083, 0.025, 0.038, -0.0151, 0.0188, 0.0369, 0.0147, 0.0313, -0.0052, 0.0317, 0.0394, 0.0383, -0.1632, 0.0324, -0.0444, 0.1378, -0.2233, -0.04, -0.0112, -0.0084, -0.0635, -0.0517, 0.0274, -0.0284, 0.028, 0.0073, -0.0833, -0.0251, 0.0101, 0.0357, 0.0398, 0.0232, 0.0328, 0.0167, 0.0254, -0.0177, 0.0251, -0.0468, 0.0182, 0.0149, -0.0581, 0.1037, 0.0215, 0.0198, 0.0109, 0.0124, 0.0372, 0.012, -0.0345, 0.0344, -0.2412, 0.0601, 0.0007, 0.0645, 0.1442, 0.0175, 0.0032, 0.0019, -0.0663, 0.0416, -0.0132, 0.0307, 0.0723, 0.0102, 0.0156, 0.0026, 0.0289, 0.0265, 0.0421, 0.0507, 0.0232, -0.0029, 0.0344, 0.0078, 0.0019, -0.007, 0.0295, 0.0077, -0.0548, -0.0112, 0.0266, 0.0859, 0.0284, 0.0286, -0.0667, 0.017, 0.0071, 0.0216, 0.0369, 0.0046, -0.0283, 0.0022, 0.0182, 0.0595, 0.0235, 0.0274, 0.0009, 0.0297, 0.0241, -0.0225, 0.0092, -0.0424, 0.0101, 0.0005, 0.022, 0.0126, -0.0205, 0.0247, -0.01, -0.126, 0.0215, 0.0193, 0.014, 0.004, 0.0031, 0.0425, 0.1574, 0.1449, -0.0182, 0.086, 0.4056, 0.0397, 0.0053, 0.0174, 0.048, 0.0333, 0.0432, 0.0058, -0.0261, 0.0106, 0.0529, 0.0227, -0.2007, -0.035, 0.0164, 0.0076, 0.0244, 0.0624, 0.0165, 0.0226, -0.0017, -0.1421, -0.1213, -0.0307, 0.0091, 0.0016, 0.0474, 0.0075, -0.0227, 0.0292, 0.0624, 0.0077, 0.0757, 0.0258, 0.0704, 0.0154, 0.0052, -0.0772, 0.0144, -0.0103, 0.0048, -0.0608, 0.0597, 0.0251, 0.0462, 0.031, 0.0147, 0.0266, 0.0348, 0.0392, 0.0042, 0.0518, 0.0236, 0.0129, 0.0039, 0.024, -0.0002, 0.0365, 0.0468, 0.0024, 0.0194, 0.004, 0.0172, 0.0538, 0.0442, 0.0171, -0.0169, 0.0389, 0.048, 0.0078, 0.026, 0.0411, 0.0242, -0.085, 0.0029, 0.0357, 0.0215, 0.0328, 0.0699, 0.0301, -0.0283, 0.0175, 0.0454, 0.044, 0.0191, 0.0144, 0.0277, -0.1035, -0.0254, 0.0159, 0.0514, 0.0524, 0.034, 0.0281, -0.0897, 0.0266, 0.0052, 0.0257, 0.011, 0.0542, 0.0507, 0.0339, 0.0145, 0.02, 0.0164, 0.0495, 0.0321, 0.112, 0.036, 0.0148, 0.1445, 0.0443, -0.0769, 0.0276, -0.0294, 0.0355, 0.0181, 0.0088, -0.014, 0.027, 0.067, -0.0031, -0.2228, -0.0488, 0.0479, 0.0516, 0.0013, 0.0344, -0.071, 0.0114, 0.0241, 0.0268, 0.0097, 0.1081, 0.0064, 0.0529, 0.0374, 0.0372, 0.0323, 0.0357, -0.1452, -0.0114, 0.0176, -0.0166, 0.0236, 0.0199, -0.0005, -0.0156, -0.0101, 0.0069, -0.0006, -0.0351, -0.0669, 0.0659, 0.0317, 0.0114, 0.0301, 0.0156, -0.0011, 0.0212, -0.0076, -0.0059, -0.0116, -0.0236, 0.0983, 0.0171, 0.0406, 0.0569, 0.0132, 0.0145, 0.0047, 0.006, -0.0225, 0.0589, 0.0058, 0.019, 0.0499, 0.0124, -0.1654, 0.0177, 0.0177, 0.0141, 0.0113, 0.0172, 0.0127, 0.0052, 0.0071, 0.0086, 0.0133, -0.2566, 0.0031, 0.0123, 0.0501, 0.0061, -0.0521, -0.0277, -0.0099, 0.0699, 0.0245, 0.0157, 0.0056, -0.0206, 0.0473, -0.0237, -0.0006, 0.0514, 0.0158, 0.0134, 0.0071, -0.008, -0.0008, 0.063, -0.0023, 0.0014, 0.011, 0.0013, 0.0191, 0.007, 0.0082, 0.0437, -0.7973, 0.0012, -0.0163, 0.0068, -0.0178, 0.0259, 0.0379, 0.0236, 0.0453, -0.156, -0.034, 0.0367, 0.0158, 0.0131, 0.0076, 0.011, 0.0263, 0.0702, 0.0273, 0.0129, -0.118, 0.01, -0.0266, 0.0133, 0.0023, -0.068, 0.0193, -0.0251, 0.0263, 0.0125, 0.0107, 0.0215, -0.0073, 0.0134, 0.0322, -0.0667, 0.1268, -0.0029, 0.0095, -0.0586, 0.0186, 0.0052, 0.092, 0.0069, 0.0112, -0.0807, 0.0137, 0.0036, -0.0287, 0.0632, 0.0167, -0.077, 0.0199, 0.017, 0.0141, 0.0112, 0.0291, 0.0262, 0.0146, 0.0051, 0.0475, 0.0201, -0.0091, -0.0795, 0.172, 0.0287, 0.0377, 0.0584, 0.0104, 0.0245, 0.0071, -0.1377, 0.072, -0.0094, -0.0158, 0.0023, 0.0189, 0.0622, 0.0124, 0.0295, 0.0189, -0.0095, 0.039, 0.0014, 0.0507, 0.0468, 0.0287, 0.1585, 0.0222, 0.0074, 0.0081, -0.0081, 0.0189, -0.0069, 0.0496, 0.0055, 0.0182, 0.0188, -0.0026, 0.1156, 0.0009, 0.0245, 0.0059, 0.0132, 0.0379, 0.0261, 0.0113, 0.0293, -0.0257, 0.0102, 0.0383, -0.0267, -0.1794, 0.0054, 0.0167, 0.0022, 0.0092, 0.0167, 0.0067, -0.0028, 0.0146, -0.1056, -0.0118, 0.0169, 0.04, 0.0146, 0.0002, 0.015, 0.0171, 0.0189, -0.0076, 0.0174, -0.0319, 0.0014, 0.043, 0.0255, 0.0201, 0.0136, -0.026, 0.0287, 0.0904, 0.0383, 0.0337, 0.0209, 0.0069, 0.0023, -0.0047, 0.0158, 0.0093, 0.0576, -0.0021, -0.0822, 0.0125, 0.0086, 0.0048, 0.0043, -0.0034, -0.0373, 0.0529, -0.0158, 0.0176, 0.0305, 0.0087, 0.0079, -0.0329, 0.0155, 0.0187, 0.0322, 0.0565, -0.0426, 0.0896, 0.0438, 0.0581, -0.1911, 0.0668, 0.1024, 0.0001, 0.0197, 0.0223, 0.0073, 0.0099, -0.0115, -0.0748, -0.0548, 0.0144, -0.0067, 0.06, 0.0115, 0.0231, 0.0198, 0.0474, 0.0134, 0.0142, 0.0081, 0.0033, -0.0661, 0.0037, 0.0041, -0.121, 0.0358, 0.0096, -0.1076, 0.0252, -0.0148, 0.0063, 0.008, 0.01, 0.0148, 0.0105, 0.0022, 0.0223, 0.0192, 0.0343, 0.0155, -0.0015, -0.0111, 0.0282, -0.0258, 0.0343, -0.0041, 0.0378, 0.0237, -0.0215, 0.0228, 0.0228, 0.0103, 0.0078, 0.0298, 0.0187, 0.0258, -0.0374, 0.0449, 0.0199, 0.0343, -0.1016, -0.0283, 0.01, 0.0171, 0.0134, 0.0109, 0.0289, 0.0116, 0.0118, 0.0147, 0.0074, 0.0146, 0.0182, 0.0653, 0.0499, 0.0122, 0.052, 0.0016, 0.0081, 0.0226, 0.0029, 0.0555, -0.0027, -0.119, 0.0422, 0.0267, 0.0191, -0.0704, 0.0098, 0.0309, 0.0221, -0.0072, 0.0264, 0.0486, 0.0222, 0.0276, 0.013, 0.0434, 0.1043, 0.0014, 0.0369, -0.0035, 0.0005, 0.016, 0.0031, 0.014, 0.0082, -0.0153, 0.0636, 0.0185, -0.0666, -0.0027, 0.0288, 0.0037, 0.0155, -0.1889, 0.0158, -0.0333, 0.0137, -0.0073, -0.1755, 0.0125, 0.0145, -0.0147, 0.0524, 0.0261, -0.0574, 0.084, 0.0149, -0.0346, 0.0027, 0.0048, 0.0289, -0.042, -0.0134, -0.0041, 0.0147, -0.0184, 0.0522, 0.0235, -0.0733, 0.0213, -0.0098, 0.0389, 0.0277, -0.003, 0.0148, 0.029, 0.0268, 0.021, 0.0236, 0.0179, 0.0242, 0.0191, 0.0362, -0.0186, 0.015, -0.1737, 0.0162, 0.0151, 0.0644, -0.0181, 0.0081, -0.2635, 0.0264, 0.0075, 0.0165, 0.1251, 0.0295, 0.0283, -0.1545, 0.0088, 0.0071, 0.0187, 0.0149, 0.0121, 0.0295, 0.032, 0.0191, -0.0017, 0.0017, -0.0493, 0.0443, -0.1172, 0.0301, 0.0054, 0.0279, -0.021, 0.0265, 0.0062, -0.0316, 0.0233, 0.0241, 0.0087, 0.0013, -0.0315, -0.182, -0.0139, 0.0013, 0.0449, 0.0137, 0.0548, 0.0544, 0.0158, -0.0029, 0.0371, 0.0159, 0.0266, 0.0572, 0.0266, -0.0584, -0.003, -0.0119, 0.0124, 0.0081, -0.0106, 0.005, 0.016, 0.0018, 0.0771, 0.024, 0.005, 0.0157, 0.0108, 0.0183, 0.1019, 0.042, 0.0079, 0.0261, 0.0037, 0.0568, 0.0161, 0.0131, 0.0294, 0.017, -0.0856, 0.0015, 0.0012, 0.0258, -0.0028, 0.1137, 0.0226, 0.029, 0.0127, 0.0171, 0.0051, 0.0687, -0.0066, -0.0193, 0.0787, 0.008, -0.0068, 0.0095, -0.012, 0.008, 0.0079, 0.0433, 0.0339, 0.0445, 0.0105, 0.015, 0.0196, 0.029, 0.0538, 0.2073, 0.0198, -0.1704, -0.0053, 0.0369, 0.0274, 0.0201, -0.1555, -0.0025, -0.0166, 0.0053, 0.0039, 0.014, 0.0253, 0.0367, -0.5262, -0.0067, 0.1532, 0.0215, 0.029, -0.0267, 0.0088, 0.0829, 0.0007, -0.007, 0.0057, 0.0004, 0.0393, 0.0251, 0.0182, -0.0119, -0.0443, 0.0411, 0.0095, 0.0007, 0.0087, 0.0004, 0.0185, 0.0159, -0.0015, -0.1293, -0.099, 0.008, 0.0069, 0.01, 0.0298, 0.035, 0.001, 0.0343, 0.0282, 0.0463, 0.1037, 0.0002, 0.0333, -0.0009, 0.0056, -0.0088, 0.2516, -0.01, 0.0079, 0.0222, 0.0375, -0.0158, -0.0569, 0.01, 0.0459, 0.0217, -0.0321, -0.0196, 0.0196, 0.0823, 0.0394, 0.0156, 0.0033, 0.0266, 0.0052, 0.0066, 0.012, -0.048, 0.0196, 0.0029, -0.0241, 0.0148, 0.0397, -0.0152, -0.0161, 0.0121, -0.0031, 0.0188, 0.0192, 0.0502, 0.0181, 0.033, 0.0135, 0.0184, 0.0233, 0.0541, 0.0362, 0.0228, 0.0358, 0.0105, 0.0369, 0.0314, -0.0203, -0.0334, 0.0254, 0.0093, 0.0443, 0.1521, -0.0355, 0.0201, 0.0259, 0.0311, 0.0206, 0.0132, 0.0211, 0.0067, 0.0168, 0.0224, 0.0178, 0.0295, -0.0015, 0.0368, 0.0205, 0.0167, 0.0503, 0.0177, 0.0125, 0.0288, 0.0248, -0.0373, 0.0219, 0.0059, 0.0762, 0.043, 0.0049, -0.4509, -0.0385, 0.0735, -0.1164, -0.0016, 0.0159, 0.0232, -0.0003, 0.0007, 0.0037, -0.3011, 0.0047, -0.0578, -0.0111, -0.1233, 0.0114, -0.0234, 0.0149, 0.0132, 0.0039, 0.0026, -0.0386, -0.0023, -0.1057, 0.0053, 0.0261, 0.0037, -0.0253, 0.0004, -0.1188, 0.006, 0.0302, 0.0492, 0.0073, 0.0424, 0.0263, -0.0198, -0.0107, 0.0293, -0.0268, 0.014, 0.0311, 0.0072, 0.0136, -0.0114, 0.0181, 0.0164, 0.0074, -0.0037, -0.0091, 0.027, -0.0041, 0.0179, 0.0238, 0.0057, -0.0243, -0.0057, 0.0104, 0.0302, 0.0427, -0.0029, 0.027, 0.0191, 0.0169, 0.0208, 0.0149, 0.0244, -0.0642, -0.0263, 0.0068, 0.0411, 0.0125, -0.3911, -0.014, 0.0194, -0.1197, 0.0157, 0.0131, 0.0083, 0.0006, 0.0128, 0.0675, 0.0786, 0.1831, -0.1171, 0.0028, 0.0118, 0.0316, -0.033, 0.1004, 0.1281, 0.0001, -0.0593, 0.0344, 0.0701, -0.0067, 0.03, -0.0029, 0.0171, -0.0481, -0.0049, -0.0014, 0.0026, 0.0185, 0.0185, 0.0056, -0.0068, -0.095, 0.005, 0.0177, 0.0188, 0.0378, 0.0947, -0.0129, -0.0463, 0.0171, 0.0126, 0.0053, 0.0172, 0.003, 0.0064, 0.0157, 0.0206, 0.0378, 0.0189, -0.0924, 0.0101, 0.0237, -0.0948, 0.011, -0.037, 0.0032, 0.0195, 0.0329, 0.0228, -0.0061, 0.0241, 0.0116, 0.0065, 0.0731, 0.0932, 0.0085, 0.0507, 0.0128, 0.047, 0.0232, 0.0256, -0.0036, -0.0254, -0.0592, 0.1312, -0.0655, 0.0252, 0.0315, 0.0213, 0.0339, 0.0053, 0.0114, 0.007, -0.0565, 0.0927, 0.1671, -0.0006, 0.1036, 0.147, 0.0074, 0.0068, -0.0252, -0.0012, 0.0195, 0.0155, 0.0094, 0.0223, -0.0189, -0.0353, 0.0081, 0.0187, -0.0066, -0.2439, 0.0124, 0.006, 0.0367, -0.0238, 0.0328, -0.0183, 0.0069, 0.1782, -0.0045, -0.0054, 0.025, -0.0573, 0.0446, 0.0119, 0.0388, -0.055, 0.0054, 0.0057, 0.0154, 0.0385, -0.0297, 0.0088, -0.3994, 0.0285, 0.0554, 0.0127, 0.0223, -0.0221, -0.0132, 0.0019, 0.004, -0.0743, 0.0141, 0.0452, 0.0001, -0.0067, -0.017, 0.0245, -0.0046, 0.0118, 0.0075, 0.0509, 0.0169, 0.0194, 0.0452, 0.0342, 0.0037, 0.0001, -0.0201, 0.1079, 0.0267, 0.0223, -0.033, 0.0073, 0.0087, -0.0123, 0.0157, 0.0043, -0.0466, 0.0114, 0.0354, -0.0507, 0.0121, 0.015, 0.0064, 0.0335, -0.0019, -0.2685, 0.0063, 0.0203, 0.0199, 0.0093, 0.0261, 0.0171, -0.1185, 0.0092, 0.0071, 0.0095, 0.0149, 0.1341, 0.0665, 0.0256, -0.0011, 0.0379, 0.0911, -0.0053, -0.0825, 0.0529, 0.0132, 0.0112, 0.0411, 0.0261, 0.017, -0.0098, 0.0098, 0.0103, -0.0243, -0.0771, 0.0103, 0.0239, 0.0061, -0.0178, -0.005, -0.0356, 0.2666, 0.03, 0.0073, -0.0072, 0.0427, -0.0073, 0.0694, 0.0251, 0.0095, -0.0736, -0.0369, -0.0066, 0.0066, 0.029, 0.0292, 0.1219, 0.0396, 0.0553, 0.0327, -0.0385, 0.1792, 0.0136, 0.0274, 0.0425, 0.0634, -0.2314, -0.0533, -0.0514, -0.0213, -0.0084, 0.0654, 0.0189, 0.0089, 0.0317, -0.0946, 0.0124, -0.069, 0.054, -0.0001, 0.0343, -0.0635, -0.0738, -0.0111, 0.0135, -0.0216, 0.0279, 0.0212, -0.193, 0.0645, -0.0218, 0.0096, 0.0311, -0.0303, 0.0136, 0.0136, 0.0311, 0.1514, 0.0198, 0.0207, 0.0001, 0.0324, 0.0598, -0.0232, -0.0233, 0.0448, 0.023, 0.0191, -0.0744, 0.0025, 0.0076, 0.0216, 0.0337, -0.0693, 0.0306, 0.0005, 0.0241, -0.0314, -0.1137, 0.1873, 0.0102, 0.0196, 0.0115, -0.0265, 0.0162, 0.01, -0.0001, -0.0795, 0.0109, -0.0153, -0.0191, 0.0003, -0.0055, 0.0047, -0.0015, -0.0296, -0.0344, -0.0055, -0.034, 0.0405, 0.0333, 0.1618, 0.0476, 0.025, -0.0355, -0.0054, 0.0052, 0.0272, 0.0319, 0.021, -0.0194, 0.0132, 0.0275, 0.0057, 0.0082, 0.0262, 0.0234, 0.0315, 0.1496, -0.1431, -0.0016, 0.0002, 0.015, 0.0228, 0.0152, -0.066, -0.0077, 0.012, 0.0284, -0.1023, 0.0077, 0.0254, 0.0358, 0.0117, -0.0288, 0.0307, 0.0083, 0.0125, 0.0332, 0.0262, 0.0234, 0.019, -0.0018, 0.0195, -0.003, 0.0626, 0.0011, 0.0475, 0.0176, 0.024, 0.0262, 0.0132, 0.0178, -0.0224, -0.0075, 0.0399, 0.0089, 0.0232, -0.0656, 0.025, 0.0047, -0.0208, 0.0304, 0.0171, 0.0102, 0.0013, 0.0463, 0.0068, 0.0042, 0.0479, 0.0149, 0.0539, 0.0239, -0.0057, 0.0096, -0.1793, 0.0148, 0.0208, 0.1221, 0.0237, 0.0111, 0.0173, 0.0111, 0.0153, 0.0089, 0.0082, -0.0059, 0.0077, 0.0236, -0.0016, 0.0026, 0.0069, 0.0256, 0.0142, 0.0324, -0.002, 0.0127, 0.0254, -0.0161, 0.0159, 0.0118, 0.01, 0.0139, 0.027, 0.0181, 0.0125, 0.03, 0.0117, 0.018, 0.0179, 0.0124, 0.0037, -0.0327, 0.0015, 0.0064, 0.1152, 0.041, 0.0245, -0.0507, 0.0363, 0.0224, 0.0025, -0.1267, 0.0151, 0.0173, 0.0041, -0.0988, 0.0101, 0.005, -0.0038, 0.0033, 0.0059, 0.016, 0.0301, -0.0151, 0.0103, 0.0361, 0.0298, 0.0426, -0.027, 0.0667, 0.0294, -0.0029, 0.0129, 0.0418, 0.0891, 0.0127, 0.0222, 0.0502, 0.0159, -0.0035, 0.0036, 0.0244, 0.0315, 0.0077, 0.001, 0.013, 0.0214, 0.0097, 0.0082, 0.0078, 0.0192, 0.0283, 0.0723, 0.0172, -0.0618, 0.0059, -0.0091, 0.0124, 0.045, 0.0223, 0.0181, 0.0051, 0.0163, -0.0159, 0.0204, -0.0139, -0.01, 0.0277, 0.2728, 0.0068, -0.0763, 0.0359, -0.02, -0.0045, -0.0162, -0.0259, 0.1247, 0.0059, 0.0286, -0.0265, 0.0129, 0.0306, -0.0003, 0.0172, 0.0191, -0.0017, -0.0038, 0.0001, 0.0395, 0.0131, 0.0155, 0.0221, 0.0337, 0.0279, 0.0175, 0.0234, 0.0253, 0.0531, 0.0049, 0.0143, 0.0111, 0.037, 0.0291, 0.0254, 0.0343, 0.0617, 0.0127, 0.0183, 0.0636, 0.0448, 0.0114, 0.024, 0.0275, 0.0163, 0.0079, 0.1206, -0.0735, 0.0645, 0.02, 0.0209, 0.0238, 0.0212, 0.0049, 0.0133, 0.0309, -0.0789, 0.0174, 0.0191, 0.0124, 0.0109, 0.0286, 0.0132, 0.0327, -0.0232, 0.0276, 0.0078, 0.0014, -0.0233, 0.0053, 0.0195, 0.0139, 0.0212, -0.062, 0.1287, 0.0098, 0.084, 0.018, 0.222, -0.0205, 0.012, 0.0306, -0.0604, 0.0049, -0.0354, -0.0031, -0.1116, 0.004, 0.0366, 0.0645, -0.0609, -0.0105, 0.0557, 0.0092, 0.028, 0.0077, 0.0544, 0.0032, 0.0551, 0.0501, -0.0097, 0.0831, 0.0159, 0.0001, 0.0006, 0.0241, 0.0385, 0.0689, -0.0838, 0.0052, 0.0242, -0.0716, 0.0197, 0.0532, -0.0097, 0.008, 0.0309, -0.0134, -0.0168, 0.0577, -0.0047, 0.0101, 0.0242, -0.0433, 0.011, 0.0528, 0.0302, 0.0331, 0.0189, 0.0163, 0.0401, 0.0218, -0.0035, 0.0282, 0.0048, 0.018, 0.0058, -0.0186, -0.0157, 0.045, 0.0195, 0.0336, 0.0091, -0.0449, 0.026, 0.0125, 0.0059, 0.0411, 0.0176, 0.0173, 0.0441, 0.0159, 0.0013, 0.0149, 0.0038, 0.0271, 0.0242, 0.0274, 0.0177, 0.0273, 0.0333, -0.0141, 0.0069, -0.0483, 0.0042, 0.0196, 0.0182, 0.0106, 0.0189, 0.0167, 0.0352, 0.0254, 0.0302, 0.0195, 0.0104, 0.0452, 0.0557, -0.0058, -0.0005, -0.0722, 0.0176, 0.0174, 0.0255, 0.0342, 0.0285, 0.0263, -0.001, 0.0171, -0.0953, 0.0261, 0.0441, 0.0206, 0.0157, 0.0609, 0.0005, 0.0232, 0.0214, 0.0603, 0.0268, 0.0612, 0.0259, 0.0259, 0.0556, 0.0375, 0.1293, 0.0181, 0.0264, 0.0067, 0.0143, -0.0064, 0.0159, 0.025, 0.0356, 0.0272, 0.021, 0.0267, 0.0256, 0.0179, 0.0035, 0.0104, 0.0185, -0.0206, 0.0156, 0.0065, 0.0122, 0.0208, 0.0082, 0.0326, 0.0467, 0.0102, 0.0255, 0.1223, 0.0292, 0.2061, -0.0001, 0.0479, 0.0403, 0.0302, 0.0427, 0.0045, 0.0083, 0.0487, 0.0468, 0.0389, -0.2158, 0.0041, 0.023, 0.0219, 0.0188, 0.0363, 0.0256, 0.0678, 0.0224, -0.0181, -0.0143, 0.0243, 0.0121, 0.0125, -0.0046, 0.2102, 0.0225, -0.0121, 0.04, 0.0368, 0.0292, 0.0188, 0.0842, 0.0173, 0.0482, 0.0048, 0.0217, 0.005, 0.0125, -0.0819, -0.0169, -0.0157, 0.0063, 0.0225]}],                        {&quot;coloraxis&quot;: {&quot;cmid&quot;: 0, &quot;colorbar&quot;: {&quot;title&quot;: {&quot;text&quot;: &quot;avg of ESTIMATED YEAR INCREASE (C)&quot;}}, &quot;colorscale&quot;: [[0.0, &quot;rgb(5,48,97)&quot;], [0.1, &quot;rgb(33,102,172)&quot;], [0.2, &quot;rgb(67,147,195)&quot;], [0.3, &quot;rgb(146,197,222)&quot;], [0.4, &quot;rgb(209,229,240)&quot;], [0.5, &quot;rgb(247,247,247)&quot;], [0.6, &quot;rgb(253,219,199)&quot;], [0.7, &quot;rgb(244,165,130)&quot;], [0.8, &quot;rgb(214,96,77)&quot;], [0.9, &quot;rgb(178,24,43)&quot;], [1.0, &quot;rgb(103,0,31)&quot;]]}, &quot;legend&quot;: {&quot;tracegroupgap&quot;: 0}, &quot;template&quot;: {&quot;data&quot;: {&quot;bar&quot;: [{&quot;error_x&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}, &quot;error_y&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}, &quot;marker&quot;: {&quot;line&quot;: {&quot;color&quot;: &quot;#E5ECF6&quot;, &quot;width&quot;: 0.5}}, &quot;type&quot;: &quot;bar&quot;}], &quot;barpolar&quot;: [{&quot;marker&quot;: {&quot;line&quot;: {&quot;color&quot;: &quot;#E5ECF6&quot;, &quot;width&quot;: 0.5}}, &quot;type&quot;: &quot;barpolar&quot;}], &quot;carpet&quot;: [{&quot;aaxis&quot;: {&quot;endlinecolor&quot;: &quot;#2a3f5f&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;minorgridcolor&quot;: &quot;white&quot;, &quot;startlinecolor&quot;: &quot;#2a3f5f&quot;}, &quot;baxis&quot;: {&quot;endlinecolor&quot;: &quot;#2a3f5f&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;minorgridcolor&quot;: &quot;white&quot;, &quot;startlinecolor&quot;: &quot;#2a3f5f&quot;}, &quot;type&quot;: &quot;carpet&quot;}], &quot;choropleth&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;type&quot;: &quot;choropleth&quot;}], &quot;contour&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;contour&quot;}], &quot;contourcarpet&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;type&quot;: &quot;contourcarpet&quot;}], &quot;heatmap&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;heatmap&quot;}], &quot;heatmapgl&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;heatmapgl&quot;}], &quot;histogram&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;histogram&quot;}], &quot;histogram2d&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;histogram2d&quot;}], &quot;histogram2dcontour&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;histogram2dcontour&quot;}], &quot;mesh3d&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;type&quot;: &quot;mesh3d&quot;}], &quot;parcoords&quot;: [{&quot;line&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;parcoords&quot;}], &quot;pie&quot;: [{&quot;automargin&quot;: true, &quot;type&quot;: &quot;pie&quot;}], &quot;scatter&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatter&quot;}], &quot;scatter3d&quot;: [{&quot;line&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatter3d&quot;}], &quot;scattercarpet&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattercarpet&quot;}], &quot;scattergeo&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattergeo&quot;}], &quot;scattergl&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattergl&quot;}], &quot;scattermapbox&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattermapbox&quot;}], &quot;scatterpolar&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatterpolar&quot;}], &quot;scatterpolargl&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatterpolargl&quot;}], &quot;scatterternary&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatterternary&quot;}], &quot;surface&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;surface&quot;}], &quot;table&quot;: [{&quot;cells&quot;: {&quot;fill&quot;: {&quot;color&quot;: &quot;#EBF0F8&quot;}, &quot;line&quot;: {&quot;color&quot;: &quot;white&quot;}}, &quot;header&quot;: {&quot;fill&quot;: {&quot;color&quot;: &quot;#C8D4E3&quot;}, &quot;line&quot;: {&quot;color&quot;: &quot;white&quot;}}, &quot;type&quot;: &quot;table&quot;}]}, &quot;layout&quot;: {&quot;annotationdefaults&quot;: {&quot;arrowcolor&quot;: &quot;#2a3f5f&quot;, &quot;arrowhead&quot;: 0, &quot;arrowwidth&quot;: 1}, &quot;autotypenumbers&quot;: &quot;strict&quot;, &quot;coloraxis&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;colorscale&quot;: {&quot;diverging&quot;: [[0, &quot;#8e0152&quot;], [0.1, &quot;#c51b7d&quot;], [0.2, &quot;#de77ae&quot;], [0.3, &quot;#f1b6da&quot;], [0.4, &quot;#fde0ef&quot;], [0.5, &quot;#f7f7f7&quot;], [0.6, &quot;#e6f5d0&quot;], [0.7, &quot;#b8e186&quot;], [0.8, &quot;#7fbc41&quot;], [0.9, &quot;#4d9221&quot;], [1, &quot;#276419&quot;]], &quot;sequential&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;sequentialminus&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]]}, &quot;colorway&quot;: [&quot;#636efa&quot;, &quot;#EF553B&quot;, &quot;#00cc96&quot;, &quot;#ab63fa&quot;, &quot;#FFA15A&quot;, &quot;#19d3f3&quot;, &quot;#FF6692&quot;, &quot;#B6E880&quot;, &quot;#FF97FF&quot;, &quot;#FECB52&quot;], &quot;font&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}, &quot;geo&quot;: {&quot;bgcolor&quot;: &quot;white&quot;, &quot;lakecolor&quot;: &quot;white&quot;, &quot;landcolor&quot;: &quot;#E5ECF6&quot;, &quot;showlakes&quot;: true, &quot;showland&quot;: true, &quot;subunitcolor&quot;: &quot;white&quot;}, &quot;hoverlabel&quot;: {&quot;align&quot;: &quot;left&quot;}, &quot;hovermode&quot;: &quot;closest&quot;, &quot;mapbox&quot;: {&quot;style&quot;: &quot;light&quot;}, &quot;paper_bgcolor&quot;: &quot;white&quot;, &quot;plot_bgcolor&quot;: &quot;#E5ECF6&quot;, &quot;polar&quot;: {&quot;angularaxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}, &quot;bgcolor&quot;: &quot;#E5ECF6&quot;, &quot;radialaxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}}, &quot;scene&quot;: {&quot;xaxis&quot;: {&quot;backgroundcolor&quot;: &quot;#E5ECF6&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;gridwidth&quot;: 2, &quot;linecolor&quot;: &quot;white&quot;, &quot;showbackground&quot;: true, &quot;ticks&quot;: &quot;&quot;, &quot;zerolinecolor&quot;: &quot;white&quot;}, &quot;yaxis&quot;: {&quot;backgroundcolor&quot;: &quot;#E5ECF6&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;gridwidth&quot;: 2, &quot;linecolor&quot;: &quot;white&quot;, &quot;showbackground&quot;: true, &quot;ticks&quot;: &quot;&quot;, &quot;zerolinecolor&quot;: &quot;white&quot;}, &quot;zaxis&quot;: {&quot;backgroundcolor&quot;: &quot;#E5ECF6&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;gridwidth&quot;: 2, &quot;linecolor&quot;: &quot;white&quot;, &quot;showbackground&quot;: true, &quot;ticks&quot;: &quot;&quot;, &quot;zerolinecolor&quot;: &quot;white&quot;}}, &quot;shapedefaults&quot;: {&quot;line&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}}, &quot;ternary&quot;: {&quot;aaxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}, &quot;baxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}, &quot;bgcolor&quot;: &quot;#E5ECF6&quot;, &quot;caxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}}, &quot;title&quot;: {&quot;x&quot;: 0.05}, &quot;xaxis&quot;: {&quot;automargin&quot;: true, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;, &quot;title&quot;: {&quot;standoff&quot;: 15}, &quot;zerolinecolor&quot;: &quot;white&quot;, &quot;zerolinewidth&quot;: 2}, &quot;yaxis&quot;: {&quot;automargin&quot;: true, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;, &quot;title&quot;: {&quot;standoff&quot;: 15}, &quot;zerolinecolor&quot;: &quot;white&quot;, &quot;zerolinewidth&quot;: 2}}}, &quot;title&quot;: {&quot;text&quot;: &quot;Estimates of Yearly Change in Temperature from -90 to 90 Degrees Latitude&quot;}, &quot;xaxis&quot;: {&quot;anchor&quot;: &quot;y&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;LONGITUDE&quot;}}, &quot;yaxis&quot;: {&quot;anchor&quot;: &quot;x&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;LATITUDE&quot;}}},                        {&quot;responsive&quot;: true}                    )                };                            &lt;/script&gt;        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

&lt;p&gt;It makes a lot more sense once you see it, right? From this plot we can even make out actual landmasses…since that’s where the stations are…it’s basically a Minecraft map for ecological destruction. So what can we glean?&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;The planet overall, is getting hotter on average, every year, for the later half of the 20th century as shown by the tint of the continents&lt;/li&gt;
  &lt;li&gt;Polar latitudes are experiencing the highest average changes in both directions; this is where the most tumultuous temperature change rates are occuring compared to the more uniform, milder heating as one heads toward the equator.&lt;/li&gt;
  &lt;li&gt;The Antartic in particular has seen the worst estimated average yearly increases in temperature.&lt;/li&gt;
  &lt;li&gt;Could spatial shifts in artic air currents as the seas warm explain the spots of avg. temperature decrease seen in this area? I know the jet stream is certainly shifting, so things aren’t exactly stable in the North Atlantic.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So this map certainly indicates that the polar latitudes are experiencing the worst, absolute, average changes in temperature…if this was a four plot assignment I’d probably replot the above as relative to preindustrial baseline, calculation, but you get the idea.&lt;/p&gt;

&lt;h1 id=&quot;graphing-function-25---faceting&quot;&gt;Graphing Function 2.5 - Faceting&lt;/h1&gt;

&lt;p&gt;What would it look like if we broke the above plot down over a variable year range, into a variable number of subdivisions, and then calcuated the average change averages within those temporal subdivisions to better visual this change over time?&lt;/p&gt;

&lt;p&gt;Enter the faceted density heatmap. Below we’ll write a function to plot these subdivisions of a given time frame all within the same plot, with consistent binning and scale between them:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;temperature_heat_map_faceted&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat_start&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;start_year&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;end_year&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                                 &lt;span class=&quot;n&quot;&gt;div_period&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;**&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;kwargs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    &lt;span class=&quot;s&quot;&gt;&quot;&quot;&quot;
    Function to create an interactive, geographic plot of estimated average increase
    in temperature over a provided latitude range, for each of a specificied subdivision
    duration of a specified year span using a faceted heat density map  wherein
    spatial resolution, and by proxy the grouping of temp delta averaging, via the 
    manipulation of bin counts and latitude ranges
    
    Parameters
    ----------
    lat_start - int: the start of the latitude range to query for
    lat_end - int: the end of the latitude range to query for
    start_year: str - start year for the query
    start_year: str - end year for the query
    div_period: int - length in years of each subdivision to plot
    kwargs: variable arguments fed to the plotly graphing function
    
    Returns
    -------
    fig - the plotly fig generated by the function
    &quot;&quot;&quot;&lt;/span&gt;    
    
    
    &lt;span class=&quot;c1&quot;&gt;#query using prior function
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_query&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat_start&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#year range filter
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Year&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;start_year&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Year&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;end_year&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;


    &lt;span class=&quot;c1&quot;&gt;#loop through periods, moving year window
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;start&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;start_year&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;end&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;start_year&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;div_period&lt;/span&gt;


    &lt;span class=&quot;c1&quot;&gt;#build first period in column
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;period_string&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;start&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;-&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'Period'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;period_string&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;year&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;start&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;year&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot; &quot;&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;for&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;year&lt;/span&gt; &lt;span class=&quot;ow&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'Year'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]]&lt;/span&gt;

    &lt;span class=&quot;c1&quot;&gt;#update window
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;start&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;end&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;end&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;end&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;div_period&lt;/span&gt; 

    &lt;span class=&quot;k&quot;&gt;while&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;end&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;end_year&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
        &lt;span class=&quot;c1&quot;&gt;#logical index to fill periods
&lt;/span&gt;        &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;loc&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[((&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Year&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;start&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Year&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'Period'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;start&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;-&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
        &lt;span class=&quot;c1&quot;&gt;#update windows
&lt;/span&gt;        &lt;span class=&quot;n&quot;&gt;start&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;n&quot;&gt;end&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;end&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;div_period&lt;/span&gt;  
    
    &lt;span class=&quot;c1&quot;&gt;#just in case, drop any unfilled vals
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Period&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot; &quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#group our df for a given station, 
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;groupby&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;NAME&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;LATITUDE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;LONGITUDE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Period&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]).&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;apply&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coef&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;reset_index&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#rename new column 
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rename&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;columns&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;ESTIMATED YEAR INCREASE (C)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;})&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#round temp values
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;round&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#make output strings
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;str_start&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;start_year&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;str_end&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;end_year&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;str_div&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;div_period&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;px&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;density_heatmap&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;LONGITUDE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;LATITUDE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                             &lt;span class=&quot;n&quot;&gt;z&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;ESTIMATED YEAR INCREASE (C)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;histfunc&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;avg&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                             &lt;span class=&quot;n&quot;&gt;color_continuous_midpoint&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;facet_row&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Period&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                             &lt;span class=&quot;n&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Estimated Yearly Temp. Increase from &quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;str_start&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt;
                             &lt;span class=&quot;s&quot;&gt;&quot; to &quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;str_end&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot; by &quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;str_div&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot; Year Periods&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                             &lt;span class=&quot;o&quot;&gt;**&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;kwargs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#shorten color bar (it's quite long otherwise)
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;update_layout&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coloraxis_colorbar&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;dict&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;
    &lt;span class=&quot;nb&quot;&gt;len&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mf&quot;&gt;0.5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;))&lt;/span&gt;

    &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;temperature_heat_map_faceted&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;start_year&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1980&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;end_year&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2020&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;div_period&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                                    &lt;span class=&quot;n&quot;&gt;width&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;height&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1500&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;nbinsx&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;72&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;nbinsy&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;36&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                                    &lt;span class=&quot;n&quot;&gt;color_continuous_scale&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;rdbu_r&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;show&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;pio&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;write_html&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;hw1_hd_faceted1&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#comment out if not saving
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;html&gt;
&lt;head&gt;&lt;meta charset=&quot;utf-8&quot; /&gt;&lt;/head&gt;
&lt;body&gt;
    &lt;div&gt;                        &lt;script type=&quot;text/javascript&quot;&gt;window.PlotlyConfig = {MathJaxConfig: 'local'};&lt;/script&gt;
        &lt;script type=&quot;text/javascript&quot;&gt;/**
* plotly.js v1.58.4
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
!function(t){if(&quot;object&quot;==typeof exports&amp;&amp;&quot;undefined&quot;!=typeof module)module.exports=t();else if(&quot;function&quot;==typeof define&amp;&amp;define.amd)define([],t);else{(&quot;undefined&quot;!=typeof window?window:&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:this).Plotly=t()}}((function(){return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var l=&quot;function&quot;==typeof require&amp;&amp;require;if(!s&amp;&amp;l)return l(o,!0);if(a)return a(o,!0);var c=new Error(&quot;Cannot find module '&quot;+o+&quot;'&quot;);throw c.code=&quot;MODULE_NOT_FOUND&quot;,c}var u=r[o]={exports:{}};e[o][0].call(u.exports,(function(t){return i(e[o][1][t]||t)}),u,u.exports,t,e,r,n)}return r[o].exports}for(var a=&quot;function&quot;==typeof require&amp;&amp;require,o=0;o&lt;n.length;o++)i(n[o]);return i}({1:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../src/lib&quot;),i={&quot;X,X div&quot;:&quot;direction:ltr;font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding:0;&quot;,&quot;X input,X button&quot;:&quot;font-family:'Open Sans', verdana, arial, sans-serif;&quot;,&quot;X input:focus,X button:focus&quot;:&quot;outline:none;&quot;,&quot;X a&quot;:&quot;text-decoration:none;&quot;,&quot;X a:hover&quot;:&quot;text-decoration:none;&quot;,&quot;X .crisp&quot;:&quot;shape-rendering:crispEdges;&quot;,&quot;X .user-select-none&quot;:&quot;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;&quot;,&quot;X svg&quot;:&quot;overflow:hidden;&quot;,&quot;X svg a&quot;:&quot;fill:#447adb;&quot;,&quot;X svg a:hover&quot;:&quot;fill:#3c6dc5;&quot;,&quot;X .main-svg&quot;:&quot;position:absolute;top:0;left:0;pointer-events:none;&quot;,&quot;X .main-svg .draglayer&quot;:&quot;pointer-events:all;&quot;,&quot;X .cursor-default&quot;:&quot;cursor:default;&quot;,&quot;X .cursor-pointer&quot;:&quot;cursor:pointer;&quot;,&quot;X .cursor-crosshair&quot;:&quot;cursor:crosshair;&quot;,&quot;X .cursor-move&quot;:&quot;cursor:move;&quot;,&quot;X .cursor-col-resize&quot;:&quot;cursor:col-resize;&quot;,&quot;X .cursor-row-resize&quot;:&quot;cursor:row-resize;&quot;,&quot;X .cursor-ns-resize&quot;:&quot;cursor:ns-resize;&quot;,&quot;X .cursor-ew-resize&quot;:&quot;cursor:ew-resize;&quot;,&quot;X .cursor-sw-resize&quot;:&quot;cursor:sw-resize;&quot;,&quot;X .cursor-s-resize&quot;:&quot;cursor:s-resize;&quot;,&quot;X .cursor-se-resize&quot;:&quot;cursor:se-resize;&quot;,&quot;X .cursor-w-resize&quot;:&quot;cursor:w-resize;&quot;,&quot;X .cursor-e-resize&quot;:&quot;cursor:e-resize;&quot;,&quot;X .cursor-nw-resize&quot;:&quot;cursor:nw-resize;&quot;,&quot;X .cursor-n-resize&quot;:&quot;cursor:n-resize;&quot;,&quot;X .cursor-ne-resize&quot;:&quot;cursor:ne-resize;&quot;,&quot;X .cursor-grab&quot;:&quot;cursor:-webkit-grab;cursor:grab;&quot;,&quot;X .modebar&quot;:&quot;position:absolute;top:2px;right:2px;&quot;,&quot;X .ease-bg&quot;:&quot;-webkit-transition:background-color 0.3s ease 0s;-moz-transition:background-color 0.3s ease 0s;-ms-transition:background-color 0.3s ease 0s;-o-transition:background-color 0.3s ease 0s;transition:background-color 0.3s ease 0s;&quot;,&quot;X .modebar--hover&gt;:not(.watermark)&quot;:&quot;opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;&quot;,&quot;X:hover .modebar--hover .modebar-group&quot;:&quot;opacity:1;&quot;,&quot;X .modebar-group&quot;:&quot;float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;&quot;,&quot;X .modebar-btn&quot;:&quot;position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;&quot;,&quot;X .modebar-btn svg&quot;:&quot;position:relative;top:2px;&quot;,&quot;X .modebar.vertical&quot;:&quot;display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;&quot;,&quot;X .modebar.vertical svg&quot;:&quot;top:-1px;&quot;,&quot;X .modebar.vertical .modebar-group&quot;:&quot;display:block;float:none;padding-left:0px;padding-bottom:8px;&quot;,&quot;X .modebar.vertical .modebar-group .modebar-btn&quot;:&quot;display:block;text-align:center;&quot;,&quot;X [data-title]:before,X [data-title]:after&quot;:&quot;position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;&quot;,&quot;X [data-title]:hover:before,X [data-title]:hover:after&quot;:&quot;display:block;opacity:1;&quot;,&quot;X [data-title]:before&quot;:&quot;content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;&quot;,&quot;X [data-title]:after&quot;:&quot;content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;&quot;,&quot;X .vertical [data-title]:before,X .vertical [data-title]:after&quot;:&quot;top:0%;right:200%;&quot;,&quot;X .vertical [data-title]:before&quot;:&quot;border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;&quot;,&quot;X .select-outline&quot;:&quot;fill:none;stroke-width:1;shape-rendering:crispEdges;&quot;,&quot;X .select-outline-1&quot;:&quot;stroke:white;&quot;,&quot;X .select-outline-2&quot;:&quot;stroke:black;stroke-dasharray:2px 2px;&quot;,Y:&quot;font-family:'Open Sans', verdana, arial, sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;&quot;,&quot;Y p&quot;:&quot;margin:0;&quot;,&quot;Y .notifier-note&quot;:&quot;min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;&quot;,&quot;Y .notifier-close&quot;:&quot;color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;&quot;,&quot;Y .notifier-close:hover&quot;:&quot;color:#444;text-decoration:none;cursor:pointer;&quot;};for(var a in i){var o=a.replace(/^,/,&quot; ,&quot;).replace(/X/g,&quot;.js-plotly-plot .plotly&quot;).replace(/Y/g,&quot;.plotly-notifier&quot;);n.addStyleRule(o,i[a])}},{&quot;../src/lib&quot;:778}],2:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/aggregate&quot;)},{&quot;../src/transforms/aggregate&quot;:1365}],3:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/bar&quot;)},{&quot;../src/traces/bar&quot;:929}],4:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/barpolar&quot;)},{&quot;../src/traces/barpolar&quot;:942}],5:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/box&quot;)},{&quot;../src/traces/box&quot;:952}],6:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/components/calendars&quot;)},{&quot;../src/components/calendars&quot;:641}],7:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/candlestick&quot;)},{&quot;../src/traces/candlestick&quot;:961}],8:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/carpet&quot;)},{&quot;../src/traces/carpet&quot;:980}],9:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/choropleth&quot;)},{&quot;../src/traces/choropleth&quot;:994}],10:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/choroplethmapbox&quot;)},{&quot;../src/traces/choroplethmapbox&quot;:1001}],11:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/cone&quot;)},{&quot;../src/traces/cone&quot;:1007}],12:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/contour&quot;)},{&quot;../src/traces/contour&quot;:1022}],13:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/contourcarpet&quot;)},{&quot;../src/traces/contourcarpet&quot;:1033}],14:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/core&quot;)},{&quot;../src/core&quot;:755}],15:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/densitymapbox&quot;)},{&quot;../src/traces/densitymapbox&quot;:1041}],16:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/filter&quot;)},{&quot;../src/transforms/filter&quot;:1366}],17:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/funnel&quot;)},{&quot;../src/traces/funnel&quot;:1051}],18:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/funnelarea&quot;)},{&quot;../src/traces/funnelarea&quot;:1060}],19:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/groupby&quot;)},{&quot;../src/transforms/groupby&quot;:1367}],20:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/heatmap&quot;)},{&quot;../src/traces/heatmap&quot;:1073}],21:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/heatmapgl&quot;)},{&quot;../src/traces/heatmapgl&quot;:1083}],22:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram&quot;)},{&quot;../src/traces/histogram&quot;:1095}],23:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram2d&quot;)},{&quot;../src/traces/histogram2d&quot;:1101}],24:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram2dcontour&quot;)},{&quot;../src/traces/histogram2dcontour&quot;:1105}],25:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/image&quot;)},{&quot;../src/traces/image&quot;:1113}],26:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./core&quot;);n.register([t(&quot;./bar&quot;),t(&quot;./box&quot;),t(&quot;./heatmap&quot;),t(&quot;./histogram&quot;),t(&quot;./histogram2d&quot;),t(&quot;./histogram2dcontour&quot;),t(&quot;./contour&quot;),t(&quot;./scatterternary&quot;),t(&quot;./violin&quot;),t(&quot;./funnel&quot;),t(&quot;./waterfall&quot;),t(&quot;./image&quot;),t(&quot;./pie&quot;),t(&quot;./sunburst&quot;),t(&quot;./treemap&quot;),t(&quot;./funnelarea&quot;),t(&quot;./scatter3d&quot;),t(&quot;./surface&quot;),t(&quot;./isosurface&quot;),t(&quot;./volume&quot;),t(&quot;./mesh3d&quot;),t(&quot;./cone&quot;),t(&quot;./streamtube&quot;),t(&quot;./scattergeo&quot;),t(&quot;./choropleth&quot;),t(&quot;./scattergl&quot;),t(&quot;./splom&quot;),t(&quot;./pointcloud&quot;),t(&quot;./heatmapgl&quot;),t(&quot;./parcoords&quot;),t(&quot;./parcats&quot;),t(&quot;./scattermapbox&quot;),t(&quot;./choroplethmapbox&quot;),t(&quot;./densitymapbox&quot;),t(&quot;./sankey&quot;),t(&quot;./indicator&quot;),t(&quot;./table&quot;),t(&quot;./carpet&quot;),t(&quot;./scattercarpet&quot;),t(&quot;./contourcarpet&quot;),t(&quot;./ohlc&quot;),t(&quot;./candlestick&quot;),t(&quot;./scatterpolar&quot;),t(&quot;./scatterpolargl&quot;),t(&quot;./barpolar&quot;)]),n.register([t(&quot;./aggregate&quot;),t(&quot;./filter&quot;),t(&quot;./groupby&quot;),t(&quot;./sort&quot;)]),n.register([t(&quot;./calendars&quot;)]),e.exports=n},{&quot;./aggregate&quot;:2,&quot;./bar&quot;:3,&quot;./barpolar&quot;:4,&quot;./box&quot;:5,&quot;./calendars&quot;:6,&quot;./candlestick&quot;:7,&quot;./carpet&quot;:8,&quot;./choropleth&quot;:9,&quot;./choroplethmapbox&quot;:10,&quot;./cone&quot;:11,&quot;./contour&quot;:12,&quot;./contourcarpet&quot;:13,&quot;./core&quot;:14,&quot;./densitymapbox&quot;:15,&quot;./filter&quot;:16,&quot;./funnel&quot;:17,&quot;./funnelarea&quot;:18,&quot;./groupby&quot;:19,&quot;./heatmap&quot;:20,&quot;./heatmapgl&quot;:21,&quot;./histogram&quot;:22,&quot;./histogram2d&quot;:23,&quot;./histogram2dcontour&quot;:24,&quot;./image&quot;:25,&quot;./indicator&quot;:27,&quot;./isosurface&quot;:28,&quot;./mesh3d&quot;:29,&quot;./ohlc&quot;:30,&quot;./parcats&quot;:31,&quot;./parcoords&quot;:32,&quot;./pie&quot;:33,&quot;./pointcloud&quot;:34,&quot;./sankey&quot;:35,&quot;./scatter3d&quot;:36,&quot;./scattercarpet&quot;:37,&quot;./scattergeo&quot;:38,&quot;./scattergl&quot;:39,&quot;./scattermapbox&quot;:40,&quot;./scatterpolar&quot;:41,&quot;./scatterpolargl&quot;:42,&quot;./scatterternary&quot;:43,&quot;./sort&quot;:44,&quot;./splom&quot;:45,&quot;./streamtube&quot;:46,&quot;./sunburst&quot;:47,&quot;./surface&quot;:48,&quot;./table&quot;:49,&quot;./treemap&quot;:50,&quot;./violin&quot;:51,&quot;./volume&quot;:52,&quot;./waterfall&quot;:53}],27:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/indicator&quot;)},{&quot;../src/traces/indicator&quot;:1121}],28:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/isosurface&quot;)},{&quot;../src/traces/isosurface&quot;:1127}],29:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/mesh3d&quot;)},{&quot;../src/traces/mesh3d&quot;:1132}],30:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/ohlc&quot;)},{&quot;../src/traces/ohlc&quot;:1137}],31:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/parcats&quot;)},{&quot;../src/traces/parcats&quot;:1146}],32:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/parcoords&quot;)},{&quot;../src/traces/parcoords&quot;:1156}],33:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/pie&quot;)},{&quot;../src/traces/pie&quot;:1167}],34:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/pointcloud&quot;)},{&quot;../src/traces/pointcloud&quot;:1176}],35:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/sankey&quot;)},{&quot;../src/traces/sankey&quot;:1182}],36:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatter3d&quot;)},{&quot;../src/traces/scatter3d&quot;:1220}],37:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattercarpet&quot;)},{&quot;../src/traces/scattercarpet&quot;:1227}],38:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattergeo&quot;)},{&quot;../src/traces/scattergeo&quot;:1235}],39:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattergl&quot;)},{&quot;../src/traces/scattergl&quot;:1248}],40:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattermapbox&quot;)},{&quot;../src/traces/scattermapbox&quot;:1258}],41:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterpolar&quot;)},{&quot;../src/traces/scatterpolar&quot;:1266}],42:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterpolargl&quot;)},{&quot;../src/traces/scatterpolargl&quot;:1273}],43:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterternary&quot;)},{&quot;../src/traces/scatterternary&quot;:1281}],44:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/sort&quot;)},{&quot;../src/transforms/sort&quot;:1369}],45:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/splom&quot;)},{&quot;../src/traces/splom&quot;:1290}],46:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/streamtube&quot;)},{&quot;../src/traces/streamtube&quot;:1298}],47:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/sunburst&quot;)},{&quot;../src/traces/sunburst&quot;:1306}],48:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/surface&quot;)},{&quot;../src/traces/surface&quot;:1315}],49:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/table&quot;)},{&quot;../src/traces/table&quot;:1323}],50:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/treemap&quot;)},{&quot;../src/traces/treemap&quot;:1332}],51:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/violin&quot;)},{&quot;../src/traces/violin&quot;:1344}],52:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/volume&quot;)},{&quot;../src/traces/volume&quot;:1352}],53:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/waterfall&quot;)},{&quot;../src/traces/waterfall&quot;:1360}],54:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).eye||[0,0,1],r=t.center||[0,0,0],s=t.up||[0,1,0],l=t.distanceLimits||[0,1/0],c=t.mode||&quot;turntable&quot;,u=n(),f=i(),h=a();return u.setDistanceLimits(l[0],l[1]),u.lookAt(0,e,r,s),f.setDistanceLimits(l[0],l[1]),f.lookAt(0,e,r,s),h.setDistanceLimits(l[0],l[1]),h.lookAt(0,e,r,s),new o({turntable:u,orbit:f,matrix:h},c)};var n=t(&quot;turntable-camera-controller&quot;),i=t(&quot;orbit-camera-controller&quot;),a=t(&quot;matrix-camera-controller&quot;);function o(t,e){this._controllerNames=Object.keys(t),this._controllerList=this._controllerNames.map((function(e){return t[e]})),this._mode=e,this._active=t[e],this._active||(this._mode=&quot;turntable&quot;,this._active=t.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var s=o.prototype;[[&quot;flush&quot;,1],[&quot;idle&quot;,1],[&quot;lookAt&quot;,4],[&quot;rotate&quot;,4],[&quot;pan&quot;,4],[&quot;translate&quot;,4],[&quot;setMatrix&quot;,2],[&quot;setDistanceLimits&quot;,2],[&quot;setDistance&quot;,2]].forEach((function(t){for(var e=t[0],r=[],n=0;n&lt;t[1];++n)r.push(&quot;a&quot;+n);var i=&quot;var cc=this._controllerList;for(var i=0;i&lt;cc.length;++i){cc[i].&quot;+t[0]+&quot;(&quot;+r.join()+&quot;)}&quot;;s[e]=Function.apply(null,r.concat(i))})),s.recalcMatrix=function(t){this._active.recalcMatrix(t)},s.getDistance=function(t){return this._active.getDistance(t)},s.getDistanceLimits=function(t){return this._active.getDistanceLimits(t)},s.lastT=function(){return this._active.lastT()},s.setMode=function(t){if(t!==this._mode){var e=this._controllerNames.indexOf(t);if(!(e&lt;0)){var r=this._active,n=this._controllerList[e],i=Math.max(r.lastT(),n.lastT());r.recalcMatrix(i),n.setMatrix(i,r.computedMatrix),this._active=n,this._mode=t,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}}},s.getMode=function(){return this._mode}},{&quot;matrix-camera-controller&quot;:480,&quot;orbit-camera-controller&quot;:501,&quot;turntable-camera-controller&quot;:581}],55:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-array&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-shape&quot;),t(&quot;elementary-circuits-directed-graph&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,null)}(this,(function(t,e,r,n,i){&quot;use strict&quot;;function a(t){return t.target.depth}function o(t,e){return t.sourceLinks.length?t.depth:e-1}function s(t){return function(){return t}}i=i&amp;&amp;i.hasOwnProperty(&quot;default&quot;)?i.default:i;var l=&quot;function&quot;==typeof Symbol&amp;&amp;&quot;symbol&quot;==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;&quot;function&quot;==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?&quot;symbol&quot;:typeof t};function c(t,e){return f(t.source,e.source)||t.index-e.index}function u(t,e){return f(t.target,e.target)||t.index-e.index}function f(t,e){return t.partOfCycle===e.partOfCycle?t.y0-e.y0:&quot;top&quot;===t.circularLinkType||&quot;bottom&quot;===e.circularLinkType?-1:1}function h(t){return t.value}function p(t){return(t.y0+t.y1)/2}function d(t){return p(t.source)}function g(t){return p(t.target)}function m(t){return t.index}function v(t){return t.nodes}function y(t){return t.links}function x(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function b(t,e){return e(t)}function _(t,e,r){var n=0;if(null===r){for(var a=[],o=0;o&lt;t.links.length;o++){var s=t.links[o],l=s.source.index,c=s.target.index;a[l]||(a[l]=[]),a[c]||(a[c]=[]),-1===a[l].indexOf(c)&amp;&amp;a[l].push(c)}var u=i(a);u.sort((function(t,e){return t.length-e.length}));var f={};for(o=0;o&lt;u.length;o++){var h=u[o].slice(-2);f[h[0]]||(f[h[0]]={}),f[h[0]][h[1]]=!0}t.links.forEach((function(t){var e=t.target.index,r=t.source.index;e===r||f[r]&amp;&amp;f[r][e]?(t.circular=!0,t.circularLinkID=n,n+=1):t.circular=!1}))}else t.links.forEach((function(t){t.source[r]&lt;t.target[r]?t.circular=!1:(t.circular=!0,t.circularLinkID=n,n+=1)}))}function w(t,e){var r=0,n=0;t.links.forEach((function(i){i.circular&amp;&amp;(i.source.circularLinkType||i.target.circularLinkType?i.circularLinkType=i.source.circularLinkType?i.source.circularLinkType:i.target.circularLinkType:i.circularLinkType=r&lt;n?&quot;top&quot;:&quot;bottom&quot;,&quot;top&quot;==i.circularLinkType?r+=1:n+=1,t.nodes.forEach((function(t){b(t,e)!=b(i.source,e)&amp;&amp;b(t,e)!=b(i.target,e)||(t.circularLinkType=i.circularLinkType)})))})),t.links.forEach((function(t){t.circular&amp;&amp;(t.source.circularLinkType==t.target.circularLinkType&amp;&amp;(t.circularLinkType=t.source.circularLinkType),H(t,e)&amp;&amp;(t.circularLinkType=t.source.circularLinkType))}))}function T(t){var e=Math.abs(t.y1-t.y0),r=Math.abs(t.target.x0-t.source.x1);return Math.atan(r/e)}function k(t,e){var r=0;t.sourceLinks.forEach((function(t){r=t.circular&amp;&amp;!H(t,e)?r+1:r}));var n=0;return t.targetLinks.forEach((function(t){n=t.circular&amp;&amp;!H(t,e)?n+1:n})),r+n}function M(t){var e=t.source.sourceLinks,r=0;e.forEach((function(t){r=t.circular?r+1:r}));var n=t.target.targetLinks,i=0;return n.forEach((function(t){i=t.circular?i+1:i})),!(r&gt;1||i&gt;1)}function A(t,e,r){return t.sort(E),t.forEach((function(n,i){var a,o,s=0;if(H(n,r)&amp;&amp;M(n))n.circularPathData.verticalBuffer=s+n.width/2;else{for(var l=0;l&lt;i;l++)if(a=t[i],o=t[l],!(a.source.column&lt;o.target.column||a.target.column&gt;o.source.column)){var c=t[l].circularPathData.verticalBuffer+t[l].width/2+e;s=c&gt;s?c:s}n.circularPathData.verticalBuffer=s+n.width/2}})),t}function S(t,r,i,a){var o=e.min(t.links,(function(t){return t.source.y0}));t.links.forEach((function(t){t.circular&amp;&amp;(t.circularPathData={})})),A(t.links.filter((function(t){return&quot;top&quot;==t.circularLinkType})),r,a),A(t.links.filter((function(t){return&quot;bottom&quot;==t.circularLinkType})),r,a),t.links.forEach((function(e){if(e.circular){if(e.circularPathData.arcRadius=e.width+10,e.circularPathData.leftNodeBuffer=5,e.circularPathData.rightNodeBuffer=5,e.circularPathData.sourceWidth=e.source.x1-e.source.x0,e.circularPathData.sourceX=e.source.x0+e.circularPathData.sourceWidth,e.circularPathData.targetX=e.target.x0,e.circularPathData.sourceY=e.y0,e.circularPathData.targetY=e.y1,H(e,a)&amp;&amp;M(e))e.circularPathData.leftSmallArcRadius=10+e.width/2,e.circularPathData.leftLargeArcRadius=10+e.width/2,e.circularPathData.rightSmallArcRadius=10+e.width/2,e.circularPathData.rightLargeArcRadius=10+e.width/2,&quot;bottom&quot;==e.circularLinkType?(e.circularPathData.verticalFullExtent=e.source.y1+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=e.source.y0-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius);else{var s=e.source.column,l=e.circularLinkType,c=t.links.filter((function(t){return t.source.column==s&amp;&amp;t.circularLinkType==l}));&quot;bottom&quot;==e.circularLinkType?c.sort(L):c.sort(C);var u=0;c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&amp;&amp;(e.circularPathData.leftSmallArcRadius=10+e.width/2+u,e.circularPathData.leftLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),s=e.target.column,c=t.links.filter((function(t){return t.target.column==s&amp;&amp;t.circularLinkType==l})),&quot;bottom&quot;==e.circularLinkType?c.sort(P):c.sort(I),u=0,c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&amp;&amp;(e.circularPathData.rightSmallArcRadius=10+e.width/2+u,e.circularPathData.rightLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),&quot;bottom&quot;==e.circularLinkType?(e.circularPathData.verticalFullExtent=Math.max(i,e.source.y1,e.target.y1)+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=o-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius)}e.circularPathData.leftInnerExtent=e.circularPathData.sourceX+e.circularPathData.leftNodeBuffer,e.circularPathData.rightInnerExtent=e.circularPathData.targetX-e.circularPathData.rightNodeBuffer,e.circularPathData.leftFullExtent=e.circularPathData.sourceX+e.circularPathData.leftLargeArcRadius+e.circularPathData.leftNodeBuffer,e.circularPathData.rightFullExtent=e.circularPathData.targetX-e.circularPathData.rightLargeArcRadius-e.circularPathData.rightNodeBuffer}if(e.circular)e.path=function(t){var e=&quot;&quot;;e=&quot;top&quot;==t.circularLinkType?&quot;M&quot;+t.circularPathData.sourceX+&quot; &quot;+t.circularPathData.sourceY+&quot; L&quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.sourceY+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftSmallArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.leftFullExtent+&quot; &quot;+(t.circularPathData.sourceY-t.circularPathData.leftSmallArcRadius)+&quot; L&quot;+t.circularPathData.leftFullExtent+&quot; &quot;+t.circularPathData.verticalLeftInnerExtent+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftLargeArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; L&quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightLargeArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.rightFullExtent+&quot; &quot;+t.circularPathData.verticalRightInnerExtent+&quot; L&quot;+t.circularPathData.rightFullExtent+&quot; &quot;+(t.circularPathData.targetY-t.circularPathData.rightSmallArcRadius)+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightSmallArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.targetY+&quot; L&quot;+t.circularPathData.targetX+&quot; &quot;+t.circularPathData.targetY:&quot;M&quot;+t.circularPathData.sourceX+&quot; &quot;+t.circularPathData.sourceY+&quot; L&quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.sourceY+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftSmallArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.leftFullExtent+&quot; &quot;+(t.circularPathData.sourceY+t.circularPathData.leftSmallArcRadius)+&quot; L&quot;+t.circularPathData.leftFullExtent+&quot; &quot;+t.circularPathData.verticalLeftInnerExtent+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftLargeArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; L&quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightLargeArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.rightFullExtent+&quot; &quot;+t.circularPathData.verticalRightInnerExtent+&quot; L&quot;+t.circularPathData.rightFullExtent+&quot; &quot;+(t.circularPathData.targetY+t.circularPathData.rightSmallArcRadius)+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightSmallArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.targetY+&quot; L&quot;+t.circularPathData.targetX+&quot; &quot;+t.circularPathData.targetY;return e}(e);else{var f=n.linkHorizontal().source((function(t){return[t.source.x0+(t.source.x1-t.source.x0),t.y0]})).target((function(t){return[t.target.x0,t.y1]}));e.path=f(e)}}))}function E(t,e){return z(t)==z(e)?&quot;bottom&quot;==t.circularLinkType?L(t,e):C(t,e):z(e)-z(t)}function C(t,e){return t.y0-e.y0}function L(t,e){return e.y0-t.y0}function I(t,e){return t.y1-e.y1}function P(t,e){return e.y1-t.y1}function z(t){return t.target.column-t.source.column}function O(t){return t.target.x0-t.source.x1}function D(t,e){var r=T(t),n=O(e)/Math.tan(r);return&quot;up&quot;==q(t)?t.y1+n:t.y1-n}function R(t,e){var r=T(t),n=O(e)/Math.tan(r);return&quot;up&quot;==q(t)?t.y1-n:t.y1+n}function F(t,e,r,n){t.links.forEach((function(i){if(!i.circular&amp;&amp;i.target.column-i.source.column&gt;1){var a=i.source.column+1,o=i.target.column-1,s=1,l=o-a+1;for(s=1;a&lt;=o;a++,s++)t.nodes.forEach((function(o){if(o.column==a){var c,u=s/(l+1),f=Math.pow(1-u,3),h=3*u*Math.pow(1-u,2),p=3*Math.pow(u,2)*(1-u),d=Math.pow(u,3),g=f*i.y0+h*i.y0+p*i.y1+d*i.y1,m=g-i.width/2,v=g+i.width/2;m&gt;o.y0&amp;&amp;m&lt;o.y1?(c=o.y1-m+10,c=&quot;bottom&quot;==o.circularLinkType?c:-c,o=N(o,c,e,r),t.nodes.forEach((function(t){b(t,n)!=b(o,n)&amp;&amp;t.column==o.column&amp;&amp;B(o,t)&amp;&amp;N(t,c,e,r)}))):(v&gt;o.y0&amp;&amp;v&lt;o.y1||m&lt;o.y0&amp;&amp;v&gt;o.y1)&amp;&amp;(c=v-o.y0+10,o=N(o,c,e,r),t.nodes.forEach((function(t){b(t,n)!=b(o,n)&amp;&amp;t.column==o.column&amp;&amp;t.y0&lt;o.y1&amp;&amp;t.y1&gt;o.y1&amp;&amp;N(t,c,e,r)})))}}))}}))}function B(t,e){return t.y0&gt;e.y0&amp;&amp;t.y0&lt;e.y1||(t.y1&gt;e.y0&amp;&amp;t.y1&lt;e.y1||t.y0&lt;e.y0&amp;&amp;t.y1&gt;e.y1)}function N(t,e,r,n){return t.y0+e&gt;=r&amp;&amp;t.y1+e&lt;=n&amp;&amp;(t.y0=t.y0+e,t.y1=t.y1+e,t.targetLinks.forEach((function(t){t.y1=t.y1+e})),t.sourceLinks.forEach((function(t){t.y0=t.y0+e}))),t}function j(t,e,r,n){t.nodes.forEach((function(i){n&amp;&amp;i.y+(i.y1-i.y0)&gt;e&amp;&amp;(i.y=i.y-(i.y+(i.y1-i.y0)-e));var a=t.links.filter((function(t){return b(t.source,r)==b(i,r)})),o=a.length;o&gt;1&amp;&amp;a.sort((function(t,e){if(!t.circular&amp;&amp;!e.circular){if(t.target.column==e.target.column)return t.y1-e.y1;if(!V(t,e))return t.y1-e.y1;if(t.target.column&gt;e.target.column){var r=R(e,t);return t.y1-r}if(e.target.column&gt;t.target.column)return R(t,e)-e.y1}return t.circular&amp;&amp;!e.circular?&quot;top&quot;==t.circularLinkType?-1:1:e.circular&amp;&amp;!t.circular?&quot;top&quot;==e.circularLinkType?1:-1:t.circular&amp;&amp;e.circular?t.circularLinkType===e.circularLinkType&amp;&amp;&quot;top&quot;==t.circularLinkType?t.target.column===e.target.column?t.target.y1-e.target.y1:e.target.column-t.target.column:t.circularLinkType===e.circularLinkType&amp;&amp;&quot;bottom&quot;==t.circularLinkType?t.target.column===e.target.column?e.target.y1-t.target.y1:t.target.column-e.target.column:&quot;top&quot;==t.circularLinkType?-1:1:void 0}));var s=i.y0;a.forEach((function(t){t.y0=s+t.width/2,s+=t.width})),a.forEach((function(t,e){if(&quot;bottom&quot;==t.circularLinkType){for(var r=e+1,n=0;r&lt;o;r++)n+=a[r].width;t.y0=i.y1-n-t.width/2}}))}))}function U(t,e,r){t.nodes.forEach((function(e){var n=t.links.filter((function(t){return b(t.target,r)==b(e,r)})),i=n.length;i&gt;1&amp;&amp;n.sort((function(t,e){if(!t.circular&amp;&amp;!e.circular){if(t.source.column==e.source.column)return t.y0-e.y0;if(!V(t,e))return t.y0-e.y0;if(e.source.column&lt;t.source.column){var r=D(e,t);return t.y0-r}if(t.source.column&lt;e.source.column)return D(t,e)-e.y0}return t.circular&amp;&amp;!e.circular?&quot;top&quot;==t.circularLinkType?-1:1:e.circular&amp;&amp;!t.circular?&quot;top&quot;==e.circularLinkType?1:-1:t.circular&amp;&amp;e.circular?t.circularLinkType===e.circularLinkType&amp;&amp;&quot;top&quot;==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:t.source.column-e.source.column:t.circularLinkType===e.circularLinkType&amp;&amp;&quot;bottom&quot;==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:e.source.column-t.source.column:&quot;top&quot;==t.circularLinkType?-1:1:void 0}));var a=e.y0;n.forEach((function(t){t.y1=a+t.width/2,a+=t.width})),n.forEach((function(t,r){if(&quot;bottom&quot;==t.circularLinkType){for(var a=r+1,o=0;a&lt;i;a++)o+=n[a].width;t.y1=e.y1-o-t.width/2}}))}))}function V(t,e){return q(t)==q(e)}function q(t){return t.y0-t.y1&gt;0?&quot;up&quot;:&quot;down&quot;}function H(t,e){return b(t.source,e)==b(t.target,e)}function G(t,r,n){var i=t.nodes,a=t.links,o=!1,s=!1;if(a.forEach((function(t){&quot;top&quot;==t.circularLinkType?o=!0:&quot;bottom&quot;==t.circularLinkType&amp;&amp;(s=!0)})),0==o||0==s){var l=e.min(i,(function(t){return t.y0})),c=(n-r)/(e.max(i,(function(t){return t.y1}))-l);i.forEach((function(t){var e=(t.y1-t.y0)*c;t.y0=(t.y0-l)*c,t.y1=t.y0+e})),a.forEach((function(t){t.y0=(t.y0-l)*c,t.y1=(t.y1-l)*c,t.width=t.width*c}))}}t.sankeyCircular=function(){var t,n,i=0,a=0,b=1,T=1,M=24,A=m,E=o,C=v,L=y,I=32,P=2,z=null;function O(){var t={nodes:C.apply(null,arguments),links:L.apply(null,arguments)};D(t),_(t,A,z),R(t),B(t),w(t,A),N(t,I,A),V(t);for(var e=4,r=0;r&lt;e;r++)j(t,T,A),U(t,T,A),F(t,a,T,A),j(t,T,A),U(t,T,A);return G(t,a,T),S(t,P,T,A),t}function D(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,A);return t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;&quot;object&quot;!==(&quot;undefined&quot;==typeof n?&quot;undefined&quot;:l(n))&amp;&amp;(n=t.source=x(e,n)),&quot;object&quot;!==(&quot;undefined&quot;==typeof i?&quot;undefined&quot;:l(i))&amp;&amp;(i=t.target=x(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)})),t}function R(t){t.nodes.forEach((function(t){t.partOfCycle=!1,t.value=Math.max(e.sum(t.sourceLinks,h),e.sum(t.targetLinks,h)),t.sourceLinks.forEach((function(e){e.circular&amp;&amp;(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)})),t.targetLinks.forEach((function(e){e.circular&amp;&amp;(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)}))}))}function B(t){var e,r,n;for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.depth=n,t.sourceLinks.forEach((function(t){r.indexOf(t.target)&lt;0&amp;&amp;!t.circular&amp;&amp;r.push(t.target)}))}));for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.height=n,t.targetLinks.forEach((function(t){r.indexOf(t.source)&lt;0&amp;&amp;!t.circular&amp;&amp;r.push(t.source)}))}));t.nodes.forEach((function(t){t.column=Math.floor(E.call(null,t,n))}))}function N(o,s,l){var c=r.nest().key((function(t){return t.column})).sortKeys(e.ascending).entries(o.nodes).map((function(t){return t.values}));!function(r){if(n){var s=1/0;c.forEach((function(t){var e=T*n/(t.length+1);s=e&lt;s?e:s})),t=s}var l=e.min(c,(function(r){return(T-a-(r.length-1)*t)/e.sum(r,h)}));l*=.3,o.links.forEach((function(t){t.width=t.value*l}));var u=function(t){var r=0,n=0,i=0,a=0,o=e.max(t.nodes,(function(t){return t.column}));return t.links.forEach((function(t){t.circular&amp;&amp;(&quot;top&quot;==t.circularLinkType?r+=t.width:n+=t.width,0==t.target.column&amp;&amp;(a+=t.width),t.source.column==o&amp;&amp;(i+=t.width))})),{top:r=r&gt;0?r+25+10:r,bottom:n=n&gt;0?n+25+10:n,left:a=a&gt;0?a+25+10:a,right:i=i&gt;0?i+25+10:i}}(o),f=function(t,r){var n=e.max(t.nodes,(function(t){return t.column})),o=b-i,s=T-a,l=o/(o+r.right+r.left),c=s/(s+r.top+r.bottom);return i=i*l+r.left,b=0==r.right?b:b*l,a=a*c+r.top,T*=c,t.nodes.forEach((function(t){t.x0=i+t.column*((b-i-M)/n),t.x1=t.x0+M})),c}(o,u);l*=f,o.links.forEach((function(t){t.width=t.value*l})),c.forEach((function(t){var e=t.length;t.forEach((function(t,n){t.depth==c.length-1&amp;&amp;1==e||0==t.depth&amp;&amp;1==e?(t.y0=T/2-t.value*l,t.y1=t.y0+t.value*l):t.partOfCycle?0==k(t,r)?(t.y0=T/2+n,t.y1=t.y0+t.value*l):&quot;top&quot;==t.circularLinkType?(t.y0=a+n,t.y1=t.y0+t.value*l):(t.y0=T-t.value*l-n,t.y1=t.y0+t.value*l):0==u.top||0==u.bottom?(t.y0=(T-a)/e*n,t.y1=t.y0+t.value*l):(t.y0=(T-a)/2-e/2+n,t.y1=t.y0+t.value*l)}))}))}(l),y();for(var u=1,m=s;m&gt;0;--m)v(u*=.99,l),y();function v(t,r){var n=c.length;c.forEach((function(i){var a=i.length,o=i[0].depth;i.forEach((function(i){var s;if(i.sourceLinks.length||i.targetLinks.length)if(i.partOfCycle&amp;&amp;k(i,r)&gt;0);else if(0==o&amp;&amp;1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else if(o==n-1&amp;&amp;1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else{var l=e.mean(i.sourceLinks,g),c=e.mean(i.targetLinks,d),u=((l&amp;&amp;c?(l+c)/2:l||c)-p(i))*t;i.y0+=u,i.y1+=u}}))}))}function y(){c.forEach((function(e){var r,n,i,o=a,s=e.length;for(e.sort(f),i=0;i&lt;s;++i)(n=o-(r=e[i]).y0)&gt;0&amp;&amp;(r.y0+=n,r.y1+=n),o=r.y1+t;if((n=o-t-T)&gt;0)for(o=r.y0-=n,r.y1-=n,i=s-2;i&gt;=0;--i)(n=(r=e[i]).y1+t-o)&gt;0&amp;&amp;(r.y0-=n,r.y1-=n),o=r.y0}))}}function V(t){t.nodes.forEach((function(t){t.sourceLinks.sort(u),t.targetLinks.sort(c)})),t.nodes.forEach((function(t){var e=t.y0,r=e,n=t.y1,i=n;t.sourceLinks.forEach((function(t){t.circular?(t.y0=n-t.width/2,n-=t.width):(t.y0=e+t.width/2,e+=t.width)})),t.targetLinks.forEach((function(t){t.circular?(t.y1=i-t.width/2,i-=t.width):(t.y1=r+t.width/2,r+=t.width)}))}))}return O.nodeId=function(t){return arguments.length?(A=&quot;function&quot;==typeof t?t:s(t),O):A},O.nodeAlign=function(t){return arguments.length?(E=&quot;function&quot;==typeof t?t:s(t),O):E},O.nodeWidth=function(t){return arguments.length?(M=+t,O):M},O.nodePadding=function(e){return arguments.length?(t=+e,O):t},O.nodes=function(t){return arguments.length?(C=&quot;function&quot;==typeof t?t:s(t),O):C},O.links=function(t){return arguments.length?(L=&quot;function&quot;==typeof t?t:s(t),O):L},O.size=function(t){return arguments.length?(i=a=0,b=+t[0],T=+t[1],O):[b-i,T-a]},O.extent=function(t){return arguments.length?(i=+t[0][0],b=+t[1][0],a=+t[0][1],T=+t[1][1],O):[[i,a],[b,T]]},O.iterations=function(t){return arguments.length?(I=+t,O):I},O.circularLinkGap=function(t){return arguments.length?(P=+t,O):P},O.nodePaddingRatio=function(t){return arguments.length?(n=+t,O):n},O.sortNodes=function(t){return arguments.length?(z=t,O):z},O.update=function(t){return w(t,A),V(t),t.links.forEach((function(t){t.circular&amp;&amp;(t.circularLinkType=t.y0+t.y1&lt;T?&quot;top&quot;:&quot;bottom&quot;,t.source.circularLinkType=t.circularLinkType,t.target.circularLinkType=t.circularLinkType)})),j(t,T,A,!1),U(t,T,A),S(t,P,T,A),t},O},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,a)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=o,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:156,&quot;d3-collection&quot;:157,&quot;d3-shape&quot;:165,&quot;elementary-circuits-directed-graph&quot;:179}],56:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-array&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-shape&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3)}(this,(function(t,e,r,n){&quot;use strict&quot;;function i(t){return t.target.depth}function a(t,e){return t.sourceLinks.length?t.depth:e-1}function o(t){return function(){return t}}function s(t,e){return c(t.source,e.source)||t.index-e.index}function l(t,e){return c(t.target,e.target)||t.index-e.index}function c(t,e){return t.y0-e.y0}function u(t){return t.value}function f(t){return(t.y0+t.y1)/2}function h(t){return f(t.source)*t.value}function p(t){return f(t.target)*t.value}function d(t){return t.index}function g(t){return t.nodes}function m(t){return t.links}function v(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function y(t){return[t.source.x1,t.y0]}function x(t){return[t.target.x0,t.y1]}t.sankey=function(){var t=0,n=0,i=1,y=1,x=24,b=8,_=d,w=a,T=g,k=m,M=32;function A(){var t={nodes:T.apply(null,arguments),links:k.apply(null,arguments)};return S(t),E(t),C(t),L(t),I(t),t}function S(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,_);t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;&quot;object&quot;!=typeof n&amp;&amp;(n=t.source=v(e,n)),&quot;object&quot;!=typeof i&amp;&amp;(i=t.target=v(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)}))}function E(t){t.nodes.forEach((function(t){t.value=Math.max(e.sum(t.sourceLinks,u),e.sum(t.targetLinks,u))}))}function C(e){var r,n,a;for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.depth=a,t.sourceLinks.forEach((function(t){n.indexOf(t.target)&lt;0&amp;&amp;n.push(t.target)}))}));for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.height=a,t.targetLinks.forEach((function(t){n.indexOf(t.source)&lt;0&amp;&amp;n.push(t.source)}))}));var o=(i-t-x)/(a-1);e.nodes.forEach((function(e){e.x1=(e.x0=t+Math.max(0,Math.min(a-1,Math.floor(w.call(null,e,a))))*o)+x}))}function L(t){var i=r.nest().key((function(t){return t.x0})).sortKeys(e.ascending).entries(t.nodes).map((function(t){return t.values}));!function(){var r=e.max(i,(function(t){return t.length})),a=2/3*(y-n)/(r-1);b&gt;a&amp;&amp;(b=a);var o=e.min(i,(function(t){return(y-n-(t.length-1)*b)/e.sum(t,u)}));i.forEach((function(t){t.forEach((function(t,e){t.y1=(t.y0=e)+t.value*o}))})),t.links.forEach((function(t){t.width=t.value*o}))}(),d();for(var a=1,o=M;o&gt;0;--o)l(a*=.99),d(),s(a),d();function s(t){i.forEach((function(r){r.forEach((function(r){if(r.targetLinks.length){var n=(e.sum(r.targetLinks,h)/e.sum(r.targetLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function l(t){i.slice().reverse().forEach((function(r){r.forEach((function(r){if(r.sourceLinks.length){var n=(e.sum(r.sourceLinks,p)/e.sum(r.sourceLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function d(){i.forEach((function(t){var e,r,i,a=n,o=t.length;for(t.sort(c),i=0;i&lt;o;++i)(r=a-(e=t[i]).y0)&gt;0&amp;&amp;(e.y0+=r,e.y1+=r),a=e.y1+b;if((r=a-b-y)&gt;0)for(a=e.y0-=r,e.y1-=r,i=o-2;i&gt;=0;--i)(r=(e=t[i]).y1+b-a)&gt;0&amp;&amp;(e.y0-=r,e.y1-=r),a=e.y0}))}}function I(t){t.nodes.forEach((function(t){t.sourceLinks.sort(l),t.targetLinks.sort(s)})),t.nodes.forEach((function(t){var e=t.y0,r=e;t.sourceLinks.forEach((function(t){t.y0=e+t.width/2,e+=t.width})),t.targetLinks.forEach((function(t){t.y1=r+t.width/2,r+=t.width}))}))}return A.update=function(t){return I(t),t},A.nodeId=function(t){return arguments.length?(_=&quot;function&quot;==typeof t?t:o(t),A):_},A.nodeAlign=function(t){return arguments.length?(w=&quot;function&quot;==typeof t?t:o(t),A):w},A.nodeWidth=function(t){return arguments.length?(x=+t,A):x},A.nodePadding=function(t){return arguments.length?(b=+t,A):b},A.nodes=function(t){return arguments.length?(T=&quot;function&quot;==typeof t?t:o(t),A):T},A.links=function(t){return arguments.length?(k=&quot;function&quot;==typeof t?t:o(t),A):k},A.size=function(e){return arguments.length?(t=n=0,i=+e[0],y=+e[1],A):[i-t,y-n]},A.extent=function(e){return arguments.length?(t=+e[0][0],i=+e[1][0],n=+e[0][1],y=+e[1][1],A):[[t,n],[i,y]]},A.iterations=function(t){return arguments.length?(M=+t,A):M},A},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,i)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=a,t.sankeyLinkHorizontal=function(){return n.linkHorizontal().source(y).target(x)},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:156,&quot;d3-collection&quot;:157,&quot;d3-shape&quot;:165}],57:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./quad&quot;)},{&quot;./quad&quot;:58}],58:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;clamp&quot;),a=t(&quot;parse-rect&quot;),o=t(&quot;array-bounds&quot;),s=t(&quot;pick-by-alias&quot;),l=t(&quot;defined&quot;),c=t(&quot;flatten-vertex-data&quot;),u=t(&quot;is-obj&quot;),f=t(&quot;dtype&quot;),h=t(&quot;math-log2&quot;);function p(t,e){for(var r=e[0],n=e[1],a=1/(e[2]-r),o=1/(e[3]-n),s=new Array(t.length),l=0,c=t.length/2;l&lt;c;l++)s[2*l]=i((t[2*l]-r)*a,0,1),s[2*l+1]=i((t[2*l+1]-n)*o,0,1);return s}e.exports=function(t,e){e||(e={}),t=c(t,&quot;float64&quot;),e=s(e,{bounds:&quot;range bounds dataBox databox&quot;,maxDepth:&quot;depth maxDepth maxdepth level maxLevel maxlevel levels&quot;,dtype:&quot;type dtype format out dst output destination&quot;});var r=l(e.maxDepth,255),i=l(e.bounds,o(t,2));i[0]===i[2]&amp;&amp;i[2]++,i[1]===i[3]&amp;&amp;i[3]++;var d,g=p(t,i),m=t.length&gt;&gt;&gt;1;e.dtype||(e.dtype=&quot;array&quot;),&quot;string&quot;==typeof e.dtype?d=new(f(e.dtype))(m):e.dtype&amp;&amp;(d=e.dtype,Array.isArray(d)&amp;&amp;(d.length=m));for(var v=0;v&lt;m;++v)d[v]=v;var y=[],x=[],b=[],_=[];!function t(e,n,i,a,o,s){if(!a.length)return null;var l=y[o]||(y[o]=[]),c=b[o]||(b[o]=[]),u=x[o]||(x[o]=[]),f=l.length;if(++o&gt;r||s&gt;1073741824){for(var h=0;h&lt;a.length;h++)l.push(a[h]),c.push(s),u.push(null,null,null,null);return f}if(l.push(a[0]),c.push(s),a.length&lt;=1)return u.push(null,null,null,null),f;for(var p=.5*i,d=e+p,m=n+p,v=[],_=[],w=[],T=[],k=1,M=a.length;k&lt;M;k++){var A=a[k],S=g[2*A],E=g[2*A+1];S&lt;d?E&lt;m?v.push(A):_.push(A):E&lt;m?w.push(A):T.push(A)}return s&lt;&lt;=2,u.push(t(e,n,p,v,o,s),t(e,m,p,_,o,s+1),t(d,n,p,w,o,s+2),t(d,m,p,T,o,s+3)),f}(0,0,1,d,0,1);for(var w=0,T=0;T&lt;y.length;T++){var k=y[T];if(d.set)d.set(k,w);else for(var M=0,A=k.length;M&lt;A;M++)d[M+w]=k[M];var S=w+y[T].length;_[T]=[w,S],w=S}return d.range=function(){var e,r=[],n=arguments.length;for(;n--;)r[n]=arguments[n];if(u(r[r.length-1])){var o=r.pop();r.length||null==o.x&amp;&amp;null==o.l&amp;&amp;null==o.left||(r=[o],e={}),e=s(o,{level:&quot;level maxLevel&quot;,d:&quot;d diam diameter r radius px pxSize pixel pixelSize maxD size minSize&quot;,lod:&quot;lod details ranges offsets&quot;})}else e={};r.length||(r=i);var c=a.apply(void 0,r),f=[Math.min(c.x,c.x+c.width),Math.min(c.y,c.y+c.height),Math.max(c.x,c.x+c.width),Math.max(c.y,c.y+c.height)],d=f[0],g=f[1],m=f[2],v=f[3],b=p([d,g,m,v],i),_=b[0],w=b[1],T=b[2],k=b[3],M=l(e.level,y.length);if(null!=e.d){var A;&quot;number&quot;==typeof e.d?A=[e.d,e.d]:e.d.length&amp;&amp;(A=e.d),M=Math.min(Math.max(Math.ceil(-h(Math.abs(A[0])/(i[2]-i[0]))),Math.ceil(-h(Math.abs(A[1])/(i[3]-i[1])))),M)}if(M=Math.min(M,y.length),e.lod)return E(_,w,T,k,M);var S=[];function C(e,r,n,i,a,o){if(null!==a&amp;&amp;null!==o&amp;&amp;!(_&gt;e+n||w&gt;r+n||T&lt;e||k&lt;r||i&gt;=M||a===o)){var s=y[i];void 0===o&amp;&amp;(o=s.length);for(var l=a;l&lt;o;l++){var c=s[l],u=t[2*c],f=t[2*c+1];u&gt;=d&amp;&amp;u&lt;=m&amp;&amp;f&gt;=g&amp;&amp;f&lt;=v&amp;&amp;S.push(c)}var h=x[i],p=h[4*a+0],b=h[4*a+1],A=h[4*a+2],E=h[4*a+3],I=L(h,a+1),P=.5*n,z=i+1;C(e,r,P,z,p,b||A||E||I),C(e,r+P,P,z,b,A||E||I),C(e+P,r,P,z,A,E||I),C(e+P,r+P,P,z,E,I)}}function L(t,e){for(var r=null,n=0;null===r;)if(r=t[4*e+n],++n&gt;t.length)return null;return r}return C(0,0,1,0,0,1),S},d;function E(t,e,r,i,a){for(var o=[],s=0;s&lt;a;s++){var l=b[s],c=_[s][0],u=C(t,e,s),f=C(r,i,s),h=n.ge(l,u),p=n.gt(l,f,h,l.length-1);o[s]=[h+c,p+c]}return o}function C(t,e,r){for(var n=1,i=.5,a=.5,o=.5,s=0;s&lt;r;s++)n&lt;&lt;=2,n+=t&lt;i?e&lt;a?0:1:e&lt;a?2:3,o*=.5,i+=t&lt;i?-o:o,a+=e&lt;a?-o:o;return n}}},{&quot;array-bounds&quot;:70,&quot;binary-search-bounds&quot;:96,clamp:120,defined:170,dtype:175,&quot;flatten-vertex-data&quot;:244,&quot;is-obj&quot;:468,&quot;math-log2&quot;:479,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511}],59:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;);function i(t){var e=0;if(t&amp;&amp;t.length&gt;0){e+=Math.abs(a(t[0]));for(var r=1;r&lt;t.length;r++)e-=Math.abs(a(t[r]))}return e}function a(t){var e,r,n,i,a,s,l=0,c=t.length;if(c&gt;2){for(s=0;s&lt;c;s++)s===c-2?(n=c-2,i=c-1,a=0):s===c-1?(n=c-1,i=0,a=1):(n=s,i=s+1,a=s+2),e=t[n],r=t[i],l+=(o(t[a][0])-o(e[0]))*Math.sin(o(r[1]));l=6378137*l*6378137/2}return l}function o(t){return t*Math.PI/180}r.default=function(t){return n.geomReduce(t,(function(t,e){return t+function(t){var e,r=0;switch(t.type){case&quot;Polygon&quot;:return i(t.coordinates);case&quot;MultiPolygon&quot;:for(e=0;e&lt;t.coordinates.length;e++)r+=i(t.coordinates[e]);return r;case&quot;Point&quot;:case&quot;MultiPoint&quot;:case&quot;LineString&quot;:case&quot;MultiLineString&quot;:return 0}return 0}(e)}),0)}},{&quot;@turf/meta&quot;:63}],60:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;);r.default=function(t){var e=[1/0,1/0,-1/0,-1/0];return n.coordEach(t,(function(t){e[0]&gt;t[0]&amp;&amp;(e[0]=t[0]),e[1]&gt;t[1]&amp;&amp;(e[1]=t[1]),e[2]&lt;t[0]&amp;&amp;(e[2]=t[0]),e[3]&lt;t[1]&amp;&amp;(e[3]=t[1])})),e}},{&quot;@turf/meta&quot;:63}],61:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;),i=t(&quot;@turf/helpers&quot;);r.default=function(t,e){void 0===e&amp;&amp;(e={});var r=0,a=0,o=0;return n.coordEach(t,(function(t){r+=t[0],a+=t[1],o++})),i.point([r/o,a/o],e.properties)}},{&quot;@turf/helpers&quot;:62,&quot;@turf/meta&quot;:63}],62:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){void 0===r&amp;&amp;(r={});var n={type:&quot;Feature&quot;};return(0===r.id||r.id)&amp;&amp;(n.id=r.id),r.bbox&amp;&amp;(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function i(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;Point&quot;,coordinates:t},e,r)}function a(t,e,r){void 0===r&amp;&amp;(r={});for(var i=0,a=t;i&lt;a.length;i++){var o=a[i];if(o.length&lt;4)throw new Error(&quot;Each LinearRing of a Polygon must have 4 or more Positions.&quot;);for(var s=0;s&lt;o[o.length-1].length;s++)if(o[o.length-1][s]!==o[0][s])throw new Error(&quot;First and last Position are not equivalent.&quot;)}return n({type:&quot;Polygon&quot;,coordinates:t},e,r)}function o(t,e,r){if(void 0===r&amp;&amp;(r={}),t.length&lt;2)throw new Error(&quot;coordinates must be an array of two or more positions&quot;);return n({type:&quot;LineString&quot;,coordinates:t},e,r)}function s(t,e){void 0===e&amp;&amp;(e={});var r={type:&quot;FeatureCollection&quot;};return e.id&amp;&amp;(r.id=e.id),e.bbox&amp;&amp;(r.bbox=e.bbox),r.features=t,r}function l(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiLineString&quot;,coordinates:t},e,r)}function c(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPoint&quot;,coordinates:t},e,r)}function u(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPolygon&quot;,coordinates:t},e,r)}function f(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t*n}function h(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t/n}function p(t){return 180*(t%(2*Math.PI))/Math.PI}function d(t){return!isNaN(t)&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)&amp;&amp;!/^\s*$/.test(t)}Object.defineProperty(r,&quot;__esModule&quot;,{value:!0}),r.earthRadius=6371008.8,r.factors={centimeters:100*r.earthRadius,centimetres:100*r.earthRadius,degrees:r.earthRadius/111325,feet:3.28084*r.earthRadius,inches:39.37*r.earthRadius,kilometers:r.earthRadius/1e3,kilometres:r.earthRadius/1e3,meters:r.earthRadius,metres:r.earthRadius,miles:r.earthRadius/1609.344,millimeters:1e3*r.earthRadius,millimetres:1e3*r.earthRadius,nauticalmiles:r.earthRadius/1852,radians:1,yards:r.earthRadius/1.0936},r.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/r.earthRadius,yards:1/1.0936},r.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},r.feature=n,r.geometry=function(t,e,r){switch(void 0===r&amp;&amp;(r={}),t){case&quot;Point&quot;:return i(e).geometry;case&quot;LineString&quot;:return o(e).geometry;case&quot;Polygon&quot;:return a(e).geometry;case&quot;MultiPoint&quot;:return c(e).geometry;case&quot;MultiLineString&quot;:return l(e).geometry;case&quot;MultiPolygon&quot;:return u(e).geometry;default:throw new Error(t+&quot; is invalid&quot;)}},r.point=i,r.points=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return i(t,e)})),r)},r.polygon=a,r.polygons=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return a(t,e)})),r)},r.lineString=o,r.lineStrings=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return o(t,e)})),r)},r.featureCollection=s,r.multiLineString=l,r.multiPoint=c,r.multiPolygon=u,r.geometryCollection=function(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;GeometryCollection&quot;,geometries:t},e,r)},r.round=function(t,e){if(void 0===e&amp;&amp;(e=0),e&amp;&amp;!(e&gt;=0))throw new Error(&quot;precision must be a positive number&quot;);var r=Math.pow(10,e||0);return Math.round(t*r)/r},r.radiansToLength=f,r.lengthToRadians=h,r.lengthToDegrees=function(t,e){return p(h(t,e))},r.bearingToAzimuth=function(t){var e=t%360;return e&lt;0&amp;&amp;(e+=360),e},r.radiansToDegrees=p,r.degreesToRadians=function(t){return t%360*Math.PI/180},r.convertLength=function(t,e,r){if(void 0===e&amp;&amp;(e=&quot;kilometers&quot;),void 0===r&amp;&amp;(r=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;length must be a positive number&quot;);return f(h(t,e),r)},r.convertArea=function(t,e,n){if(void 0===e&amp;&amp;(e=&quot;meters&quot;),void 0===n&amp;&amp;(n=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;area must be a positive number&quot;);var i=r.areaFactors[e];if(!i)throw new Error(&quot;invalid original units&quot;);var a=r.areaFactors[n];if(!a)throw new Error(&quot;invalid final units&quot;);return t/i*a},r.isNumber=d,r.isObject=function(t){return!!t&amp;&amp;t.constructor===Object},r.validateBBox=function(t){if(!t)throw new Error(&quot;bbox is required&quot;);if(!Array.isArray(t))throw new Error(&quot;bbox must be an Array&quot;);if(4!==t.length&amp;&amp;6!==t.length)throw new Error(&quot;bbox must be an Array of 4 or 6 numbers&quot;);t.forEach((function(t){if(!d(t))throw new Error(&quot;bbox must only contain numbers&quot;)}))},r.validateId=function(t){if(!t)throw new Error(&quot;id is required&quot;);if(-1===[&quot;string&quot;,&quot;number&quot;].indexOf(typeof t))throw new Error(&quot;id must be a number or a string&quot;)},r.radians2degrees=function(){throw new Error(&quot;method has been renamed to `radiansToDegrees`&quot;)},r.degrees2radians=function(){throw new Error(&quot;method has been renamed to `degreesToRadians`&quot;)},r.distanceToDegrees=function(){throw new Error(&quot;method has been renamed to `lengthToDegrees`&quot;)},r.distanceToRadians=function(){throw new Error(&quot;method has been renamed to `lengthToRadians`&quot;)},r.radiansToDistance=function(){throw new Error(&quot;method has been renamed to `radiansToLength`&quot;)},r.bearingToAngle=function(){throw new Error(&quot;method has been renamed to `bearingToAzimuth`&quot;)},r.convertDistance=function(){throw new Error(&quot;method has been renamed to `convertLength`&quot;)}},{}],63:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/helpers&quot;);function i(t,e,r){if(null!==t)for(var n,a,o,s,l,c,u,f,h=0,p=0,d=t.type,g=&quot;FeatureCollection&quot;===d,m=&quot;Feature&quot;===d,v=g?t.features.length:1,y=0;y&lt;v;y++){l=(f=!!(u=g?t.features[y].geometry:m?t.geometry:t)&amp;&amp;&quot;GeometryCollection&quot;===u.type)?u.geometries.length:1;for(var x=0;x&lt;l;x++){var b=0,_=0;if(null!==(s=f?u.geometries[x]:u)){c=s.coordinates;var w=s.type;switch(h=!r||&quot;Polygon&quot;!==w&amp;&amp;&quot;MultiPolygon&quot;!==w?0:1,w){case null:break;case&quot;Point&quot;:if(!1===e(c,p,y,b,_))return!1;p++,b++;break;case&quot;LineString&quot;:case&quot;MultiPoint&quot;:for(n=0;n&lt;c.length;n++){if(!1===e(c[n],p,y,b,_))return!1;p++,&quot;MultiPoint&quot;===w&amp;&amp;b++}&quot;LineString&quot;===w&amp;&amp;b++;break;case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:for(n=0;n&lt;c.length;n++){for(a=0;a&lt;c[n].length-h;a++){if(!1===e(c[n][a],p,y,b,_))return!1;p++}&quot;MultiLineString&quot;===w&amp;&amp;b++,&quot;Polygon&quot;===w&amp;&amp;_++}&quot;Polygon&quot;===w&amp;&amp;b++;break;case&quot;MultiPolygon&quot;:for(n=0;n&lt;c.length;n++){for(_=0,a=0;a&lt;c[n].length;a++){for(o=0;o&lt;c[n][a].length-h;o++){if(!1===e(c[n][a][o],p,y,b,_))return!1;p++}_++}b++}break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;s.geometries.length;n++)if(!1===i(s.geometries[n],e,r))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}}}}}function a(t,e){var r;switch(t.type){case&quot;FeatureCollection&quot;:for(r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r].properties,r);r++);break;case&quot;Feature&quot;:e(t.properties,0)}}function o(t,e){if(&quot;Feature&quot;===t.type)e(t,0);else if(&quot;FeatureCollection&quot;===t.type)for(var r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r],r);r++);}function s(t,e){var r,n,i,a,o,s,l,c,u,f,h=0,p=&quot;FeatureCollection&quot;===t.type,d=&quot;Feature&quot;===t.type,g=p?t.features.length:1;for(r=0;r&lt;g;r++){for(s=p?t.features[r].geometry:d?t.geometry:t,c=p?t.features[r].properties:d?t.properties:{},u=p?t.features[r].bbox:d?t.bbox:void 0,f=p?t.features[r].id:d?t.id:void 0,o=(l=!!s&amp;&amp;&quot;GeometryCollection&quot;===s.type)?s.geometries.length:1,i=0;i&lt;o;i++)if(null!==(a=l?s.geometries[i]:s))switch(a.type){case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;MultiPoint&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:if(!1===e(a,h,c,u,f))return!1;break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;a.geometries.length;n++)if(!1===e(a.geometries[n],h,c,u,f))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}else if(!1===e(null,h,c,u,f))return!1;h++}}function l(t,e){s(t,(function(t,r,i,a,o){var s,l=null===t?null:t.type;switch(l){case null:case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;Polygon&quot;:return!1!==e(n.feature(t,i,{bbox:a,id:o}),r,0)&amp;&amp;void 0}switch(l){case&quot;MultiPoint&quot;:s=&quot;Point&quot;;break;case&quot;MultiLineString&quot;:s=&quot;LineString&quot;;break;case&quot;MultiPolygon&quot;:s=&quot;Polygon&quot;}for(var c=0;c&lt;t.coordinates.length;c++){var u={type:s,coordinates:t.coordinates[c]};if(!1===e(n.feature(u,i),r,c))return!1}}))}function c(t,e){l(t,(function(t,r,a){var o=0;if(t.geometry){var s=t.geometry.type;if(&quot;Point&quot;!==s&amp;&amp;&quot;MultiPoint&quot;!==s){var l,c=0,u=0,f=0;return!1!==i(t,(function(i,s,h,p,d){if(void 0===l||r&gt;c||p&gt;u||d&gt;f)return l=i,c=r,u=p,f=d,void(o=0);var g=n.lineString([l,i],t.properties);if(!1===e(g,r,a,d,o))return!1;o++,l=i}))&amp;&amp;void 0}}}))}function u(t,e){if(!t)throw new Error(&quot;geojson is required&quot;);l(t,(function(t,r,i){if(null!==t.geometry){var a=t.geometry.type,o=t.geometry.coordinates;switch(a){case&quot;LineString&quot;:if(!1===e(t,r,i,0,0))return!1;break;case&quot;Polygon&quot;:for(var s=0;s&lt;o.length;s++)if(!1===e(n.lineString(o[s],t.properties),r,i,s))return!1}}}))}r.coordEach=i,r.coordReduce=function(t,e,r,n){var a=r;return i(t,(function(t,n,i,o,s){a=0===n&amp;&amp;void 0===r?t:e(a,t,n,i,o,s)}),n),a},r.propEach=a,r.propReduce=function(t,e,r){var n=r;return a(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.featureEach=o,r.featureReduce=function(t,e,r){var n=r;return o(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.coordAll=function(t){var e=[];return i(t,(function(t){e.push(t)})),e},r.geomEach=s,r.geomReduce=function(t,e,r){var n=r;return s(t,(function(t,i,a,o,s){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o,s)})),n},r.flattenEach=l,r.flattenReduce=function(t,e,r){var n=r;return l(t,(function(t,i,a){n=0===i&amp;&amp;0===a&amp;&amp;void 0===r?t:e(n,t,i,a)})),n},r.segmentEach=c,r.segmentReduce=function(t,e,r){var n=r,i=!1;return c(t,(function(t,a,o,s,l){n=!1===i&amp;&amp;void 0===r?t:e(n,t,a,o,s,l),i=!0})),n},r.lineEach=u,r.lineReduce=function(t,e,r){var n=r;return u(t,(function(t,i,a,o){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o)})),n},r.findSegment=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.segmentIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s-1),n.lineString([c[s],c[s+1]],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s-1),n.lineString([c[o][s],c[o][s+1]],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s-1),n.lineString([c[a][s],c[a][s+1]],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s-1),n.lineString([c[a][o][s],c[a][o][s+1]],l,e)}throw new Error(&quot;geojson is invalid&quot;)},r.findPoint=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.coordIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:return n.point(c,l,e);case&quot;MultiPoint&quot;:return a&lt;0&amp;&amp;(a=c.length+a),n.point(c[a],l,e);case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s),n.point(c[s],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s),n.point(c[o][s],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s),n.point(c[a][s],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s),n.point(c[a][o][s],l,e)}throw new Error(&quot;geojson is invalid&quot;)}},{&quot;@turf/helpers&quot;:62}],64:[function(t,e,r){&quot;use strict&quot;;var n=&quot;undefined&quot;==typeof WeakMap?t(&quot;weak-map&quot;):WeakMap,i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=new n;e.exports=function(t){var e=o.get(t),r=e&amp;&amp;(e._triangleBuffer.handle||e._triangleBuffer.buffer);if(!r||!t.isBuffer(r)){var n=i(t,new Float32Array([-1,-1,-1,4,4,-1]));(e=a(t,[{buffer:n,type:t.FLOAT,size:2}]))._triangleBuffer=n,o.set(t,e)}e.bind(),t.drawArrays(t.TRIANGLES,0,3),e.unbind()}},{&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358,&quot;weak-map&quot;:602}],65:[function(t,e,r){e.exports=function(t){var e=0,r=0,n=0,i=0;return t.map((function(t){var a=(t=t.slice())[0],o=a.toUpperCase();if(a!=o)switch(t[0]=o,a){case&quot;a&quot;:t[6]+=n,t[7]+=i;break;case&quot;v&quot;:t[1]+=i;break;case&quot;h&quot;:t[1]+=n;break;default:for(var s=1;s&lt;t.length;)t[s++]+=n,t[s++]+=i}switch(o){case&quot;Z&quot;:n=e,i=r;break;case&quot;H&quot;:n=t[1];break;case&quot;V&quot;:i=t[1];break;case&quot;M&quot;:n=e=t[1],i=r=t[2];break;default:n=t[t.length-2],i=t[t.length-1]}return t}))}},{}],66:[function(t,e,r){var n=t(&quot;pad-left&quot;);e.exports=function(t,e,r){e=&quot;number&quot;==typeof e?e:1,r=r||&quot;: &quot;;var i=t.split(/\r?\n/),a=String(i.length+e-1).length;return i.map((function(t,i){var o=i+e,s=String(o).length;return n(o,a-s)+r+t})).join(&quot;\n&quot;)}},{&quot;pad-left&quot;:502}],67:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[0];for(var r=t[0].length,n=[t[0]],a=[0],o=1;o&lt;e;++o)if(n.push(t[o]),i(n,r)){if(a.push(o),a.length===r+1)return a}else n.pop();return a};var n=t(&quot;robust-orientation&quot;);function i(t,e){for(var r=new Array(e+1),i=0;i&lt;t.length;++i)r[i]=t[i];for(i=0;i&lt;=t.length;++i){for(var a=t.length;a&lt;=e;++a){for(var o=new Array(e),s=0;s&lt;e;++s)o[s]=Math.pow(a+1-i,s);r[a]=o}if(n.apply(void 0,r))return!0}return!1}},{&quot;robust-orientation&quot;:548}],68:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return n(e).filter((function(r){for(var n=new Array(r.length),a=0;a&lt;r.length;++a)n[a]=e[r[a]];return i(n)*t&lt;1}))};var n=t(&quot;delaunay-triangulate&quot;),i=t(&quot;circumradius&quot;)},{circumradius:119,&quot;delaunay-triangulate&quot;:171}],69:[function(t,e,r){e.exports=function(t,e){return i(n(t,e))};var n=t(&quot;alpha-complex&quot;),i=t(&quot;simplicial-complex-boundary&quot;)},{&quot;alpha-complex&quot;:68,&quot;simplicial-complex-boundary&quot;:555}],70:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(!t||null==t.length)throw Error(&quot;Argument should be an array&quot;);e=null==e?1:Math.floor(e);for(var r=Array(2*e),n=0;n&lt;e;n++){for(var i=-1/0,a=1/0,o=n,s=t.length;o&lt;s;o+=e)t[o]&gt;i&amp;&amp;(i=t[o]),t[o]&lt;a&amp;&amp;(a=t[o]);r[n]=a,r[e+n]=i}return r}},{}],71:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;array-bounds&quot;);e.exports=function(t,e,r){if(!t||null==t.length)throw Error(&quot;Argument should be an array&quot;);null==e&amp;&amp;(e=1);null==r&amp;&amp;(r=n(t,e));for(var i=0;i&lt;e;i++){var a=r[e+i],o=r[i],s=i,l=t.length;if(a===1/0&amp;&amp;o===-1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===a?1:t[s]===o?0:.5;else if(a===1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===a?1:0;else if(o===-1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===o?0:1;else{var c=a-o;for(s=i;s&lt;l;s+=e)isNaN(t[s])||(t[s]=0===c?.5:(t[s]-o)/c)}}return t}},{&quot;array-bounds&quot;:70}],72:[function(t,e,r){e.exports=function(t,e){var r=&quot;number&quot;==typeof t,n=&quot;number&quot;==typeof e;r&amp;&amp;!n?(e=t,t=0):r||n||(t=0,e=0);var i=(e|=0)-(t|=0);if(i&lt;0)throw new Error(&quot;array length must be positive&quot;);for(var a=new Array(i),o=0,s=t;o&lt;i;o++,s++)a[o]=s;return a}},{}],73:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;object-assign&quot;);
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh &lt;feross@feross.org&gt; &lt;http://feross.org&gt;
 * @license  MIT
 */function i(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i&lt;a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r&lt;n?-1:n&lt;r?1:0}function a(t){return r.Buffer&amp;&amp;&quot;function&quot;==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var o=t(&quot;util/&quot;),s=Object.prototype.hasOwnProperty,l=Array.prototype.slice,c=&quot;foo&quot;===function(){}.name;function u(t){return Object.prototype.toString.call(t)}function f(t){return!a(t)&amp;&amp;(&quot;function&quot;==typeof r.ArrayBuffer&amp;&amp;(&quot;function&quot;==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&amp;&amp;(t instanceof DataView||!!(t.buffer&amp;&amp;t.buffer instanceof ArrayBuffer))))}var h=e.exports=y,p=/\s*function\s+([^\(\s]*)\s*/;function d(t){if(o.isFunction(t)){if(c)return t.name;var e=t.toString().match(p);return e&amp;&amp;e[1]}}function g(t,e){return&quot;string&quot;==typeof t?t.length&lt;e?t:t.slice(0,e):t}function m(t){if(c||!o.isFunction(t))return o.inspect(t);var e=d(t);return&quot;[Function&quot;+(e?&quot;: &quot;+e:&quot;&quot;)+&quot;]&quot;}function v(t,e,r,n,i){throw new h.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function y(t,e){t||v(t,!0,e,&quot;==&quot;,h.ok)}function x(t,e,r,n){if(t===e)return!0;if(a(t)&amp;&amp;a(e))return 0===i(t,e);if(o.isDate(t)&amp;&amp;o.isDate(e))return t.getTime()===e.getTime();if(o.isRegExp(t)&amp;&amp;o.isRegExp(e))return t.source===e.source&amp;&amp;t.global===e.global&amp;&amp;t.multiline===e.multiline&amp;&amp;t.lastIndex===e.lastIndex&amp;&amp;t.ignoreCase===e.ignoreCase;if(null!==t&amp;&amp;&quot;object&quot;==typeof t||null!==e&amp;&amp;&quot;object&quot;==typeof e){if(f(t)&amp;&amp;f(e)&amp;&amp;u(t)===u(e)&amp;&amp;!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(a(t)!==a(e))return!1;var s=(n=n||{actual:[],expected:[]}).actual.indexOf(t);return-1!==s&amp;&amp;s===n.expected.indexOf(e)||(n.actual.push(t),n.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(o.isPrimitive(t)||o.isPrimitive(e))return t===e;if(r&amp;&amp;Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=b(t),a=b(e);if(i&amp;&amp;!a||!i&amp;&amp;a)return!1;if(i)return t=l.call(t),e=l.call(e),x(t,e,r);var s,c,u=T(t),f=T(e);if(u.length!==f.length)return!1;for(u.sort(),f.sort(),c=u.length-1;c&gt;=0;c--)if(u[c]!==f[c])return!1;for(c=u.length-1;c&gt;=0;c--)if(s=u[c],!x(t[s],e[s],r,n))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function b(t){return&quot;[object Arguments]&quot;==Object.prototype.toString.call(t)}function _(t,e){if(!t||!e)return!1;if(&quot;[object RegExp]&quot;==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&amp;&amp;!0===e.call({},t)}function w(t,e,r,n){var i;if(&quot;function&quot;!=typeof e)throw new TypeError('&quot;block&quot; argument must be a function');&quot;string&quot;==typeof r&amp;&amp;(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&amp;&amp;r.name?&quot; (&quot;+r.name+&quot;).&quot;:&quot;.&quot;)+(n?&quot; &quot;+n:&quot;.&quot;),t&amp;&amp;!i&amp;&amp;v(i,r,&quot;Missing expected exception&quot;+n);var a=&quot;string&quot;==typeof n,s=!t&amp;&amp;i&amp;&amp;!r;if((!t&amp;&amp;o.isError(i)&amp;&amp;a&amp;&amp;_(i,r)||s)&amp;&amp;v(i,r,&quot;Got unwanted exception&quot;+n),t&amp;&amp;i&amp;&amp;r&amp;&amp;!_(i,r)||!t&amp;&amp;i)throw i}h.AssertionError=function(t){this.name=&quot;AssertionError&quot;,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return g(m(t.actual),128)+&quot; &quot;+t.operator+&quot; &quot;+g(m(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=d(e),a=n.indexOf(&quot;\n&quot;+i);if(a&gt;=0){var o=n.indexOf(&quot;\n&quot;,a+1);n=n.substring(o+1)}this.stack=n}}},o.inherits(h.AssertionError,Error),h.fail=v,h.ok=y,h.equal=function(t,e,r){t!=e&amp;&amp;v(t,e,r,&quot;==&quot;,h.equal)},h.notEqual=function(t,e,r){t==e&amp;&amp;v(t,e,r,&quot;!=&quot;,h.notEqual)},h.deepEqual=function(t,e,r){x(t,e,!1)||v(t,e,r,&quot;deepEqual&quot;,h.deepEqual)},h.deepStrictEqual=function(t,e,r){x(t,e,!0)||v(t,e,r,&quot;deepStrictEqual&quot;,h.deepStrictEqual)},h.notDeepEqual=function(t,e,r){x(t,e,!1)&amp;&amp;v(t,e,r,&quot;notDeepEqual&quot;,h.notDeepEqual)},h.notDeepStrictEqual=function t(e,r,n){x(e,r,!0)&amp;&amp;v(e,r,n,&quot;notDeepStrictEqual&quot;,t)},h.strictEqual=function(t,e,r){t!==e&amp;&amp;v(t,e,r,&quot;===&quot;,h.strictEqual)},h.notStrictEqual=function(t,e,r){t===e&amp;&amp;v(t,e,r,&quot;!==&quot;,h.notStrictEqual)},h.throws=function(t,e,r){w(!0,t,e,r)},h.doesNotThrow=function(t,e,r){w(!1,t,e,r)},h.ifError=function(t){if(t)throw t},h.strict=n((function t(e,r){e||v(e,!0,r,&quot;==&quot;,t)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var T=Object.keys||function(t){var e=[];for(var r in t)s.call(t,r)&amp;&amp;e.push(r);return e}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;object-assign&quot;:499,&quot;util/&quot;:76}],74:[function(t,e,r){&quot;function&quot;==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],75:[function(t,e,r){e.exports=function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;&quot;function&quot;==typeof t.copy&amp;&amp;&quot;function&quot;==typeof t.fill&amp;&amp;&quot;function&quot;==typeof t.readUInt8}},{}],76:[function(t,e,r){(function(e,n){(function(){var i=/%[sdj%]/g;r.format=function(t){if(!v(t)){for(var e=[],r=0;r&lt;arguments.length;r++)e.push(s(arguments[r]));return e.join(&quot; &quot;)}r=1;for(var n=arguments,a=n.length,o=String(t).replace(i,(function(t){if(&quot;%%&quot;===t)return&quot;%&quot;;if(r&gt;=a)return t;switch(t){case&quot;%s&quot;:return String(n[r++]);case&quot;%d&quot;:return Number(n[r++]);case&quot;%j&quot;:try{return JSON.stringify(n[r++])}catch(t){return&quot;[Circular]&quot;}default:return t}})),l=n[r];r&lt;a;l=n[++r])g(l)||!b(l)?o+=&quot; &quot;+l:o+=&quot; &quot;+s(l);return o},r.deprecate=function(t,i){if(y(n.process))return function(){return r.deprecate(t,i).apply(this,arguments)};if(!0===e.noDeprecation)return t;var a=!1;return function(){if(!a){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),a=!0}return t.apply(this,arguments)}};var a,o={};function s(t,e){var n={seen:[],stylize:c};return arguments.length&gt;=3&amp;&amp;(n.depth=arguments[2]),arguments.length&gt;=4&amp;&amp;(n.colors=arguments[3]),d(e)?n.showHidden=e:e&amp;&amp;r._extend(n,e),y(n.showHidden)&amp;&amp;(n.showHidden=!1),y(n.depth)&amp;&amp;(n.depth=2),y(n.colors)&amp;&amp;(n.colors=!1),y(n.customInspect)&amp;&amp;(n.customInspect=!0),n.colors&amp;&amp;(n.stylize=l),u(n,t,n.depth)}function l(t,e){var r=s.styles[e];return r?&quot;\x1b[&quot;+s.colors[r][0]+&quot;m&quot;+t+&quot;\x1b[&quot;+s.colors[r][1]+&quot;m&quot;:t}function c(t,e){return t}function u(t,e,n){if(t.customInspect&amp;&amp;e&amp;&amp;T(e.inspect)&amp;&amp;e.inspect!==r.inspect&amp;&amp;(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return v(i)||(i=u(t,i,n)),i}var a=function(t,e){if(y(e))return t.stylize(&quot;undefined&quot;,&quot;undefined&quot;);if(v(e)){var r=&quot;'&quot;+JSON.stringify(e).replace(/^&quot;|&quot;$/g,&quot;&quot;).replace(/'/g,&quot;\\'&quot;).replace(/\\&quot;/g,'&quot;')+&quot;'&quot;;return t.stylize(r,&quot;string&quot;)}if(m(e))return t.stylize(&quot;&quot;+e,&quot;number&quot;);if(d(e))return t.stylize(&quot;&quot;+e,&quot;boolean&quot;);if(g(e))return t.stylize(&quot;null&quot;,&quot;null&quot;)}(t,e);if(a)return a;var o=Object.keys(e),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&amp;&amp;(o=Object.getOwnPropertyNames(e)),w(e)&amp;&amp;(o.indexOf(&quot;message&quot;)&gt;=0||o.indexOf(&quot;description&quot;)&gt;=0))return f(e);if(0===o.length){if(T(e)){var l=e.name?&quot;: &quot;+e.name:&quot;&quot;;return t.stylize(&quot;[Function&quot;+l+&quot;]&quot;,&quot;special&quot;)}if(x(e))return t.stylize(RegExp.prototype.toString.call(e),&quot;regexp&quot;);if(_(e))return t.stylize(Date.prototype.toString.call(e),&quot;date&quot;);if(w(e))return f(e)}var c,b=&quot;&quot;,k=!1,M=[&quot;{&quot;,&quot;}&quot;];(p(e)&amp;&amp;(k=!0,M=[&quot;[&quot;,&quot;]&quot;]),T(e))&amp;&amp;(b=&quot; [Function&quot;+(e.name?&quot;: &quot;+e.name:&quot;&quot;)+&quot;]&quot;);return x(e)&amp;&amp;(b=&quot; &quot;+RegExp.prototype.toString.call(e)),_(e)&amp;&amp;(b=&quot; &quot;+Date.prototype.toUTCString.call(e)),w(e)&amp;&amp;(b=&quot; &quot;+f(e)),0!==o.length||k&amp;&amp;0!=e.length?n&lt;0?x(e)?t.stylize(RegExp.prototype.toString.call(e),&quot;regexp&quot;):t.stylize(&quot;[Object]&quot;,&quot;special&quot;):(t.seen.push(e),c=k?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o&lt;s;++o)E(e,String(o))?a.push(h(t,e,r,n,String(o),!0)):a.push(&quot;&quot;);return i.forEach((function(i){i.match(/^\d+$/)||a.push(h(t,e,r,n,i,!0))})),a}(t,e,n,s,o):o.map((function(r){return h(t,e,n,s,r,k)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf(&quot;\n&quot;)&gt;=0&amp;&amp;0,t+e.replace(/\u001b\[\d\d?m/g,&quot;&quot;).length+1}),0)&gt;60)return r[0]+(&quot;&quot;===e?&quot;&quot;:e+&quot;\n &quot;)+&quot; &quot;+t.join(&quot;,\n  &quot;)+&quot; &quot;+r[1];return r[0]+e+&quot; &quot;+t.join(&quot;, &quot;)+&quot; &quot;+r[1]}(c,b,M)):M[0]+b+M[1]}function f(t){return&quot;[&quot;+Error.prototype.toString.call(t)+&quot;]&quot;}function h(t,e,r,n,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=l.set?t.stylize(&quot;[Getter/Setter]&quot;,&quot;special&quot;):t.stylize(&quot;[Getter]&quot;,&quot;special&quot;):l.set&amp;&amp;(s=t.stylize(&quot;[Setter]&quot;,&quot;special&quot;)),E(n,i)||(o=&quot;[&quot;+i+&quot;]&quot;),s||(t.seen.indexOf(l.value)&lt;0?(s=g(r)?u(t,l.value,null):u(t,l.value,r-1)).indexOf(&quot;\n&quot;)&gt;-1&amp;&amp;(s=a?s.split(&quot;\n&quot;).map((function(t){return&quot;  &quot;+t})).join(&quot;\n&quot;).substr(2):&quot;\n&quot;+s.split(&quot;\n&quot;).map((function(t){return&quot;   &quot;+t})).join(&quot;\n&quot;)):s=t.stylize(&quot;[Circular]&quot;,&quot;special&quot;)),y(o)){if(a&amp;&amp;i.match(/^\d+$/))return s;(o=JSON.stringify(&quot;&quot;+i)).match(/^&quot;([a-zA-Z_][a-zA-Z_0-9]*)&quot;$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,&quot;name&quot;)):(o=o.replace(/'/g,&quot;\\'&quot;).replace(/\\&quot;/g,'&quot;').replace(/(^&quot;|&quot;$)/g,&quot;'&quot;),o=t.stylize(o,&quot;string&quot;))}return o+&quot;: &quot;+s}function p(t){return Array.isArray(t)}function d(t){return&quot;boolean&quot;==typeof t}function g(t){return null===t}function m(t){return&quot;number&quot;==typeof t}function v(t){return&quot;string&quot;==typeof t}function y(t){return void 0===t}function x(t){return b(t)&amp;&amp;&quot;[object RegExp]&quot;===k(t)}function b(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t}function _(t){return b(t)&amp;&amp;&quot;[object Date]&quot;===k(t)}function w(t){return b(t)&amp;&amp;(&quot;[object Error]&quot;===k(t)||t instanceof Error)}function T(t){return&quot;function&quot;==typeof t}function k(t){return Object.prototype.toString.call(t)}function M(t){return t&lt;10?&quot;0&quot;+t.toString(10):t.toString(10)}r.debuglog=function(t){if(y(a)&amp;&amp;(a=e.env.NODE_DEBUG||&quot;&quot;),t=t.toUpperCase(),!o[t])if(new RegExp(&quot;\\b&quot;+t+&quot;\\b&quot;,&quot;i&quot;).test(a)){var n=e.pid;o[t]=function(){var e=r.format.apply(r,arguments);console.error(&quot;%s %d: %s&quot;,t,n,e)}}else o[t]=function(){};return o[t]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:&quot;cyan&quot;,number:&quot;yellow&quot;,boolean:&quot;yellow&quot;,undefined:&quot;grey&quot;,null:&quot;bold&quot;,string:&quot;green&quot;,date:&quot;magenta&quot;,regexp:&quot;red&quot;},r.isArray=p,r.isBoolean=d,r.isNull=g,r.isNullOrUndefined=function(t){return null==t},r.isNumber=m,r.isString=v,r.isSymbol=function(t){return&quot;symbol&quot;==typeof t},r.isUndefined=y,r.isRegExp=x,r.isObject=b,r.isDate=_,r.isError=w,r.isFunction=T,r.isPrimitive=function(t){return null===t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||&quot;symbol&quot;==typeof t||&quot;undefined&quot;==typeof t},r.isBuffer=t(&quot;./support/isBuffer&quot;);var A=[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;];function S(){var t=new Date,e=[M(t.getHours()),M(t.getMinutes()),M(t.getSeconds())].join(&quot;:&quot;);return[t.getDate(),A[t.getMonth()],e].join(&quot; &quot;)}function E(t,e){return Object.prototype.hasOwnProperty.call(t,e)}r.log=function(){console.log(&quot;%s - %s&quot;,S(),r.format.apply(r,arguments))},r.inherits=t(&quot;inherits&quot;),r._extend=function(t,e){if(!e||!b(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;./support/isBuffer&quot;:75,_process:526,inherits:74}],77:[function(t,e,r){e.exports=function(t){return atob(t)}},{}],78:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=e.length,a=new Array(r+1),o=0;o&lt;r;++o){for(var s=new Array(r+1),l=0;l&lt;=r;++l)s[l]=t[l][o];a[o]=s}a[r]=new Array(r+1);for(o=0;o&lt;=r;++o)a[r][o]=1;var c=new Array(r+1);for(o=0;o&lt;r;++o)c[o]=e[o];c[r]=1;var u=n(a,c),f=i(u[r+1]);0===f&amp;&amp;(f=1);var h=new Array(r+1);for(o=0;o&lt;=r;++o)h[o]=i(u[o])/f;return h};var n=t(&quot;robust-linear-solve&quot;);function i(t){for(var e=0,r=0;r&lt;t.length;++r)e+=t[r];return e}},{&quot;robust-linear-solve&quot;:547}],79:[function(t,e,r){&quot;use strict&quot;;r.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){var e,r,n=c(t),o=n[0],s=n[1],l=new a(function(t,e,r){return 3*(e+r)/4-r}(0,o,s)),u=0,f=s&gt;0?o-4:o;for(r=0;r&lt;f;r+=4)e=i[t.charCodeAt(r)]&lt;&lt;18|i[t.charCodeAt(r+1)]&lt;&lt;12|i[t.charCodeAt(r+2)]&lt;&lt;6|i[t.charCodeAt(r+3)],l[u++]=e&gt;&gt;16&amp;255,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e;2===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;2|i[t.charCodeAt(r+1)]&gt;&gt;4,l[u++]=255&amp;e);1===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;10|i[t.charCodeAt(r+1)]&lt;&lt;4|i[t.charCodeAt(r+2)]&gt;&gt;2,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e);return l},r.fromByteArray=function(t){for(var e,r=t.length,i=r%3,a=[],o=0,s=r-i;o&lt;s;o+=16383)a.push(u(t,o,o+16383&gt;s?s:o+16383));1===i?(e=t[r-1],a.push(n[e&gt;&gt;2]+n[e&lt;&lt;4&amp;63]+&quot;==&quot;)):2===i&amp;&amp;(e=(t[r-2]&lt;&lt;8)+t[r-1],a.push(n[e&gt;&gt;10]+n[e&gt;&gt;4&amp;63]+n[e&lt;&lt;2&amp;63]+&quot;=&quot;));return a.join(&quot;&quot;)};for(var n=[],i=[],a=&quot;undefined&quot;!=typeof Uint8Array?Uint8Array:Array,o=&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/&quot;,s=0,l=o.length;s&lt;l;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4&gt;0)throw new Error(&quot;Invalid string. Length must be a multiple of 4&quot;);var r=t.indexOf(&quot;=&quot;);return-1===r&amp;&amp;(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var i,a,o=[],s=e;s&lt;r;s+=3)i=(t[s]&lt;&lt;16&amp;16711680)+(t[s+1]&lt;&lt;8&amp;65280)+(255&amp;t[s+2]),o.push(n[(a=i)&gt;&gt;18&amp;63]+n[a&gt;&gt;12&amp;63]+n[a&gt;&gt;6&amp;63]+n[63&amp;a]);return o.join(&quot;&quot;)}i[&quot;-&quot;.charCodeAt(0)]=62,i[&quot;_&quot;.charCodeAt(0)]=63},{}],80:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]).add(e[0].mul(t[1])),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:90}],81:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t[0].mul(e[1]).cmp(e[0].mul(t[1]))}},{}],82:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]),t[1].mul(e[0]))}},{&quot;./lib/rationalize&quot;:90}],83:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-rat&quot;),i=t(&quot;./lib/is-bn&quot;),a=t(&quot;./lib/num-to-bn&quot;),o=t(&quot;./lib/str-to-bn&quot;),s=t(&quot;./lib/rationalize&quot;),l=t(&quot;./div&quot;);e.exports=function t(e,r){if(n(e))return r?l(e,t(r)):[e[0].clone(),e[1].clone()];var c,u,f=0;if(i(e))c=e.clone();else if(&quot;string&quot;==typeof e)c=o(e);else{if(0===e)return[a(0),a(1)];if(e===Math.floor(e))c=a(e);else{for(;e!==Math.floor(e);)e*=Math.pow(2,256),f-=256;c=a(e)}}if(n(r))c.mul(r[1]),u=r[0].clone();else if(i(r))u=r.clone();else if(&quot;string&quot;==typeof r)u=o(r);else if(r)if(r===Math.floor(r))u=a(r);else{for(;r!==Math.floor(r);)r*=Math.pow(2,256),f+=256;u=a(r)}else u=a(1);f&gt;0?c=c.ushln(f):f&lt;0&amp;&amp;(u=u.ushln(-f));return s(c,u)}},{&quot;./div&quot;:82,&quot;./is-rat&quot;:84,&quot;./lib/is-bn&quot;:88,&quot;./lib/num-to-bn&quot;:89,&quot;./lib/rationalize&quot;:90,&quot;./lib/str-to-bn&quot;:91}],84:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/is-bn&quot;);e.exports=function(t){return Array.isArray(t)&amp;&amp;2===t.length&amp;&amp;n(t[0])&amp;&amp;n(t[1])}},{&quot;./lib/is-bn&quot;:88}],85:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;);e.exports=function(t){return t.cmp(new n(0))}},{&quot;bn.js&quot;:99}],86:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./bn-sign&quot;);e.exports=function(t){var e=t.length,r=t.words,i=0;if(1===e)i=r[0];else if(2===e)i=r[0]+67108864*r[1];else for(var a=0;a&lt;e;a++){var o=r[a];i+=o*Math.pow(67108864,a)}return n(t)*i}},{&quot;./bn-sign&quot;:85}],87:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;double-bits&quot;),i=t(&quot;bit-twiddle&quot;).countTrailingZeros;e.exports=function(t){var e=i(n.lo(t));if(e&lt;32)return e;var r=i(n.hi(t));if(r&gt;20)return 52;return r+32}},{&quot;bit-twiddle&quot;:97,&quot;double-bits&quot;:173}],88:[function(t,e,r){&quot;use strict&quot;;t(&quot;bn.js&quot;);e.exports=function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;Boolean(t.words)}},{&quot;bn.js&quot;:99}],89:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;),i=t(&quot;double-bits&quot;);e.exports=function(t){var e=i.exponent(t);return e&lt;52?new n(t):new n(t*Math.pow(2,52-e)).ushln(e-52)}},{&quot;bn.js&quot;:99,&quot;double-bits&quot;:173}],90:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./num-to-bn&quot;),i=t(&quot;./bn-sign&quot;);e.exports=function(t,e){var r=i(t),a=i(e);if(0===r)return[n(0),n(1)];if(0===a)return[n(0),n(0)];a&lt;0&amp;&amp;(t=t.neg(),e=e.neg());var o=t.gcd(e);if(o.cmpn(1))return[t.div(o),e.div(o)];return[t,e]}},{&quot;./bn-sign&quot;:85,&quot;./num-to-bn&quot;:89}],91:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;);e.exports=function(t){return new n(t)}},{&quot;bn.js&quot;:99}],92:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[0]),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:90}],93:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/bn-sign&quot;);e.exports=function(t){return n(t[0])*n(t[1])}},{&quot;./lib/bn-sign&quot;:85}],94:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]).sub(t[1].mul(e[0])),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:90}],95:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/bn-to-num&quot;),i=t(&quot;./lib/ctz&quot;);e.exports=function(t){var e=t[0],r=t[1];if(0===e.cmpn(0))return 0;var a=e.abs().divmod(r.abs()),o=a.div,s=n(o),l=a.mod,c=e.negative!==r.negative?-1:1;if(0===l.cmpn(0))return c*s;if(s){var u=i(s)+4,f=n(l.ushln(u).divRound(r));return c*(s+f*Math.pow(2,-u))}var h=r.bitLength()-l.bitLength()+53;f=n(l.ushln(h).divRound(r));return h&lt;1023?c*f*Math.pow(2,-h):(f*=Math.pow(2,-1023),c*f*Math.pow(2,1023-h))}},{&quot;./lib/bn-to-num&quot;:86,&quot;./lib/ctz&quot;:87}],96:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i){var a=[&quot;function &quot;,t,&quot;(a,l,h,&quot;,n.join(&quot;,&quot;),&quot;){&quot;,i?&quot;&quot;:&quot;var i=&quot;,r?&quot;l-1&quot;:&quot;h+1&quot;,&quot;;while(l&lt;=h){var m=(l+h)&gt;&gt;&gt;1,x=a[m]&quot;];return i?e.indexOf(&quot;c&quot;)&lt;0?a.push(&quot;;if(x===y){return m}else if(x&lt;=y){&quot;):a.push(&quot;;var p=c(x,y);if(p===0){return m}else if(p&lt;=0){&quot;):a.push(&quot;;if(&quot;,e,&quot;){i=m;&quot;),r?a.push(&quot;l=m+1}else{h=m-1}&quot;):a.push(&quot;h=m-1}else{l=m+1}&quot;),a.push(&quot;}&quot;),i?a.push(&quot;return -1};&quot;):a.push(&quot;return i};&quot;),a.join(&quot;&quot;)}function i(t,e,r,i){return new Function([n(&quot;A&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],i),n(&quot;P&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],i),&quot;function dispatchBsearch&quot;,r,&quot;(a,y,c,l,h){if(typeof(c)==='function'){return P(a,(l===void 0)?0:l|0,(h===void 0)?a.length-1:h|0,y,c)}else{return A(a,(c===void 0)?0:c|0,(l===void 0)?a.length-1:l|0,y)}}return dispatchBsearch&quot;,r].join(&quot;&quot;))()}e.exports={ge:i(&quot;&gt;=&quot;,!1,&quot;GE&quot;),gt:i(&quot;&gt;&quot;,!1,&quot;GT&quot;),lt:i(&quot;&lt;&quot;,!0,&quot;LT&quot;),le:i(&quot;&lt;=&quot;,!0,&quot;LE&quot;),eq:i(&quot;-&quot;,!0,&quot;EQ&quot;,!0)}},{}],97:[function(t,e,r){&quot;use strict&quot;;function n(t){var e=32;return(t&amp;=-t)&amp;&amp;e--,65535&amp;t&amp;&amp;(e-=16),16711935&amp;t&amp;&amp;(e-=8),252645135&amp;t&amp;&amp;(e-=4),858993459&amp;t&amp;&amp;(e-=2),1431655765&amp;t&amp;&amp;(e-=1),e}r.INT_BITS=32,r.INT_MAX=2147483647,r.INT_MIN=-1&lt;&lt;31,r.sign=function(t){return(t&gt;0)-(t&lt;0)},r.abs=function(t){var e=t&gt;&gt;31;return(t^e)-e},r.min=function(t,e){return e^(t^e)&amp;-(t&lt;e)},r.max=function(t,e){return t^(t^e)&amp;-(t&lt;e)},r.isPow2=function(t){return!(t&amp;t-1||!t)},r.log2=function(t){var e,r;return e=(t&gt;65535)&lt;&lt;4,e|=r=((t&gt;&gt;&gt;=e)&gt;255)&lt;&lt;3,e|=r=((t&gt;&gt;&gt;=r)&gt;15)&lt;&lt;2,(e|=r=((t&gt;&gt;&gt;=r)&gt;3)&lt;&lt;1)|(t&gt;&gt;&gt;=r)&gt;&gt;1},r.log10=function(t){return t&gt;=1e9?9:t&gt;=1e8?8:t&gt;=1e7?7:t&gt;=1e6?6:t&gt;=1e5?5:t&gt;=1e4?4:t&gt;=1e3?3:t&gt;=100?2:t&gt;=10?1:0},r.popCount=function(t){return 16843009*((t=(858993459&amp;(t-=t&gt;&gt;&gt;1&amp;1431655765))+(t&gt;&gt;&gt;2&amp;858993459))+(t&gt;&gt;&gt;4)&amp;252645135)&gt;&gt;&gt;24},r.countTrailingZeros=n,r.nextPow2=function(t){return t+=0===t,--t,t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)+1},r.prevPow2=function(t){return t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)-(t&gt;&gt;&gt;1)},r.parity=function(t){return t^=t&gt;&gt;&gt;16,t^=t&gt;&gt;&gt;8,t^=t&gt;&gt;&gt;4,27030&gt;&gt;&gt;(t&amp;=15)&amp;1};var i=new Array(256);!function(t){for(var e=0;e&lt;256;++e){var r=e,n=e,i=7;for(r&gt;&gt;&gt;=1;r;r&gt;&gt;&gt;=1)n&lt;&lt;=1,n|=1&amp;r,--i;t[e]=n&lt;&lt;i&amp;255}}(i),r.reverse=function(t){return i[255&amp;t]&lt;&lt;24|i[t&gt;&gt;&gt;8&amp;255]&lt;&lt;16|i[t&gt;&gt;&gt;16&amp;255]&lt;&lt;8|i[t&gt;&gt;&gt;24&amp;255]},r.interleave2=function(t,e){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t&amp;=65535)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e&amp;=65535)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1},r.deinterleave2=function(t,e){return(t=65535&amp;((t=16711935&amp;((t=252645135&amp;((t=858993459&amp;((t=t&gt;&gt;&gt;e&amp;1431655765)|t&gt;&gt;&gt;1))|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;16))&lt;&lt;16&gt;&gt;16},r.interleave3=function(t,e,r){return t=1227133513&amp;((t=3272356035&amp;((t=251719695&amp;((t=4278190335&amp;((t&amp;=1023)|t&lt;&lt;16))|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2),(t|=(e=1227133513&amp;((e=3272356035&amp;((e=251719695&amp;((e=4278190335&amp;((e&amp;=1023)|e&lt;&lt;16))|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))&lt;&lt;1)|(r=1227133513&amp;((r=3272356035&amp;((r=251719695&amp;((r=4278190335&amp;((r&amp;=1023)|r&lt;&lt;16))|r&lt;&lt;8))|r&lt;&lt;4))|r&lt;&lt;2))&lt;&lt;2},r.deinterleave3=function(t,e){return(t=1023&amp;((t=4278190335&amp;((t=251719695&amp;((t=3272356035&amp;((t=t&gt;&gt;&gt;e&amp;1227133513)|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;8))|t&gt;&gt;&gt;16))&lt;&lt;22&gt;&gt;22},r.nextCombination=function(t){var e=t|t-1;return e+1|(~e&amp;-~e)-1&gt;&gt;&gt;n(t)+1}},{}],98:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;clamp&quot;);e.exports=function(t,e){e||(e={});var r,o,s,l,c,u,f,h,p,d,g,m=null==e.cutoff?.25:e.cutoff,v=null==e.radius?8:e.radius,y=e.channel||0;if(ArrayBuffer.isView(t)||Array.isArray(t)){if(!e.width||!e.height)throw Error(&quot;For raw data width and height should be provided by options&quot;);r=e.width,o=e.height,l=t,u=e.stride?e.stride:Math.floor(t.length/r/o)}else window.HTMLCanvasElement&amp;&amp;t instanceof window.HTMLCanvasElement?(f=(h=t).getContext(&quot;2d&quot;),r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.CanvasRenderingContext2D&amp;&amp;t instanceof window.CanvasRenderingContext2D?(h=t.canvas,f=t,r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.ImageData&amp;&amp;t instanceof window.ImageData&amp;&amp;(p=t,r=t.width,o=t.height,l=p.data,u=4);if(s=Math.max(r,o),window.Uint8ClampedArray&amp;&amp;l instanceof window.Uint8ClampedArray||window.Uint8Array&amp;&amp;l instanceof window.Uint8Array)for(c=l,l=Array(r*o),d=0,g=c.length;d&lt;g;d++)l[d]=c[d*u+y]/255;else if(1!==u)throw Error(&quot;Raw data can have only 1 value per pixel&quot;);var x=Array(r*o),b=Array(r*o),_=Array(s),w=Array(s),T=Array(s+1),k=Array(s);for(d=0,g=r*o;d&lt;g;d++){var M=l[d];x[d]=1===M?0:0===M?i:Math.pow(Math.max(0,.5-M),2),b[d]=1===M?i:0===M?0:Math.pow(Math.max(0,M-.5),2)}a(x,r,o,_,w,k,T),a(b,r,o,_,w,k,T);var A=window.Float32Array?new Float32Array(r*o):new Array(r*o);for(d=0,g=r*o;d&lt;g;d++)A[d]=n(1-((x[d]-b[d])/v+m),0,1);return A};var i=1e20;function a(t,e,r,n,i,a,s){for(var l=0;l&lt;e;l++){for(var c=0;c&lt;r;c++)n[c]=t[c*e+l];for(o(n,i,a,s,r),c=0;c&lt;r;c++)t[c*e+l]=i[c]}for(c=0;c&lt;r;c++){for(l=0;l&lt;e;l++)n[l]=t[c*e+l];for(o(n,i,a,s,e),l=0;l&lt;e;l++)t[c*e+l]=Math.sqrt(i[l])}}function o(t,e,r,n,a){r[0]=0,n[0]=-i,n[1]=+i;for(var o=1,s=0;o&lt;a;o++){for(var l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);l&lt;=n[s];)s--,l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);r[++s]=o,n[s]=l,n[s+1]=+i}for(o=0,s=0;o&lt;a;o++){for(;n[s+1]&lt;o;)s++;e[o]=(o-r[s])*(o-r[s])+t[r[s]]}}},{clamp:120}],99:[function(t,e,r){!function(e,r){&quot;use strict&quot;;function n(t,e){if(!t)throw new Error(e||&quot;Assertion failed&quot;)}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,e,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&amp;&amp;(&quot;le&quot;!==e&amp;&amp;&quot;be&quot;!==e||(r=e,e=10),this._init(t||0,e||10,r||&quot;be&quot;))}var o;&quot;object&quot;==typeof e?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{o=t(&quot;buffer&quot;).Buffer}catch(t){}function s(t,e,r){for(var n=0,i=Math.min(t.length,r),a=e;a&lt;i;a++){var o=t.charCodeAt(a)-48;n&lt;&lt;=4,n|=o&gt;=49&amp;&amp;o&lt;=54?o-49+10:o&gt;=17&amp;&amp;o&lt;=22?o-17+10:15&amp;o}return n}function l(t,e,r,n){for(var i=0,a=Math.min(t.length,r),o=e;o&lt;a;o++){var s=t.charCodeAt(o)-48;i*=n,i+=s&gt;=49?s-49+10:s&gt;=17?s-17+10:s}return i}a.isBN=function(t){return t instanceof a||null!==t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;t.constructor.wordSize===a.wordSize&amp;&amp;Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)&gt;0?t:e},a.min=function(t,e){return t.cmp(e)&lt;0?t:e},a.prototype._init=function(t,e,r){if(&quot;number&quot;==typeof t)return this._initNumber(t,e,r);if(&quot;object&quot;==typeof t)return this._initArray(t,e,r);&quot;hex&quot;===e&amp;&amp;(e=16),n(e===(0|e)&amp;&amp;e&gt;=2&amp;&amp;e&lt;=36);var i=0;&quot;-&quot;===(t=t.toString().replace(/\s+/g,&quot;&quot;))[0]&amp;&amp;i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),&quot;-&quot;===t[0]&amp;&amp;(this.negative=1),this.strip(),&quot;le&quot;===r&amp;&amp;this._initArray(this.toArray(),e,r)},a.prototype._initNumber=function(t,e,r){t&lt;0&amp;&amp;(this.negative=1,t=-t),t&lt;67108864?(this.words=[67108863&amp;t],this.length=1):t&lt;4503599627370496?(this.words=[67108863&amp;t,t/67108864&amp;67108863],this.length=2):(n(t&lt;9007199254740992),this.words=[67108863&amp;t,t/67108864&amp;67108863,1],this.length=3),&quot;le&quot;===r&amp;&amp;this._initArray(this.toArray(),e,r)},a.prototype._initArray=function(t,e,r){if(n(&quot;number&quot;==typeof t.length),t.length&lt;=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i&lt;this.length;i++)this.words[i]=0;var a,o,s=0;if(&quot;be&quot;===r)for(i=t.length-1,a=0;i&gt;=0;i-=3)o=t[i]|t[i-1]&lt;&lt;8|t[i-2]&lt;&lt;16,this.words[a]|=o&lt;&lt;s&amp;67108863,this.words[a+1]=o&gt;&gt;&gt;26-s&amp;67108863,(s+=24)&gt;=26&amp;&amp;(s-=26,a++);else if(&quot;le&quot;===r)for(i=0,a=0;i&lt;t.length;i+=3)o=t[i]|t[i+1]&lt;&lt;8|t[i+2]&lt;&lt;16,this.words[a]|=o&lt;&lt;s&amp;67108863,this.words[a+1]=o&gt;&gt;&gt;26-s&amp;67108863,(s+=24)&gt;=26&amp;&amp;(s-=26,a++);return this.strip()},a.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r&lt;this.length;r++)this.words[r]=0;var n,i,a=0;for(r=t.length-6,n=0;r&gt;=e;r-=6)i=s(t,r,r+6),this.words[n]|=i&lt;&lt;a&amp;67108863,this.words[n+1]|=i&gt;&gt;&gt;26-a&amp;4194303,(a+=24)&gt;=26&amp;&amp;(a-=26,n++);r+6!==e&amp;&amp;(i=s(t,e,r+6),this.words[n]|=i&lt;&lt;a&amp;67108863,this.words[n+1]|=i&gt;&gt;&gt;26-a&amp;4194303),this.strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i&lt;=67108863;i*=e)n++;n--,i=i/e|0;for(var a=t.length-r,o=a%n,s=Math.min(a,a-o)+r,c=0,u=r;u&lt;s;u+=n)c=l(t,u,u+n,e),this.imuln(i),this.words[0]+c&lt;67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var f=1;for(c=l(t,u,t.length,e),u=0;u&lt;o;u++)f*=e;this.imuln(f),this.words[0]+c&lt;67108864?this.words[0]+=c:this._iaddn(c)}},a.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e&lt;this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length&lt;t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length&gt;1&amp;&amp;0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&amp;&amp;0===this.words[0]&amp;&amp;(this.negative=0),this},a.prototype.inspect=function(){return(this.red?&quot;&lt;BN-R: &quot;:&quot;&lt;BN: &quot;)+this.toString(16)+&quot;&gt;&quot;};var c=[&quot;&quot;,&quot;0&quot;,&quot;00&quot;,&quot;000&quot;,&quot;0000&quot;,&quot;00000&quot;,&quot;000000&quot;,&quot;0000000&quot;,&quot;00000000&quot;,&quot;000000000&quot;,&quot;0000000000&quot;,&quot;00000000000&quot;,&quot;000000000000&quot;,&quot;0000000000000&quot;,&quot;00000000000000&quot;,&quot;000000000000000&quot;,&quot;0000000000000000&quot;,&quot;00000000000000000&quot;,&quot;000000000000000000&quot;,&quot;0000000000000000000&quot;,&quot;00000000000000000000&quot;,&quot;000000000000000000000&quot;,&quot;0000000000000000000000&quot;,&quot;00000000000000000000000&quot;,&quot;000000000000000000000000&quot;,&quot;0000000000000000000000000&quot;],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],a=0|e.words[0],o=i*a,s=67108863&amp;o,l=o/67108864|0;r.words[0]=s;for(var c=1;c&lt;n;c++){for(var u=l&gt;&gt;&gt;26,f=67108863&amp;l,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p&lt;=h;p++){var d=c-p|0;u+=(o=(i=0|t.words[d])*(a=0|e.words[p])+f)/67108864|0,f=67108863&amp;o}r.words[c]=0|f,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||&quot;hex&quot;===t){r=&quot;&quot;;for(var i=0,a=0,o=0;o&lt;this.length;o++){var s=this.words[o],l=(16777215&amp;(s&lt;&lt;i|a)).toString(16);r=0!==(a=s&gt;&gt;&gt;24-i&amp;16777215)||o!==this.length-1?c[6-l.length]+l+r:l+r,(i+=2)&gt;=26&amp;&amp;(i-=26,o--)}for(0!==a&amp;&amp;(r=a.toString(16)+r);r.length%e!=0;)r=&quot;0&quot;+r;return 0!==this.negative&amp;&amp;(r=&quot;-&quot;+r),r}if(t===(0|t)&amp;&amp;t&gt;=2&amp;&amp;t&lt;=36){var h=u[t],p=f[t];r=&quot;&quot;;var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modn(p).toString(t);r=(d=d.idivn(p)).isZero()?g+r:c[h-g.length]+g+r}for(this.isZero()&amp;&amp;(r=&quot;0&quot;+r);r.length%e!=0;)r=&quot;0&quot;+r;return 0!==this.negative&amp;&amp;(r=&quot;-&quot;+r),r}n(!1,&quot;Base should be between 2 and 36&quot;)},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&amp;&amp;1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length&gt;2&amp;&amp;n(!1,&quot;Number can only safely store up to 53 bits&quot;),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return n(&quot;undefined&quot;!=typeof o),this.toArrayLike(o,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i&lt;=a,&quot;byte array longer than desired length&quot;),n(a&gt;0,&quot;Requested array length &lt;= 0&quot;),this.strip();var o,s,l=&quot;le&quot;===e,c=new t(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s&lt;a;s++)c[s]=0}else{for(s=0;s&lt;a-i;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[a-s-1]=o}return c},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var e=t,r=0;return e&gt;=4096&amp;&amp;(r+=13,e&gt;&gt;&gt;=13),e&gt;=64&amp;&amp;(r+=7,e&gt;&gt;&gt;=7),e&gt;=8&amp;&amp;(r+=4,e&gt;&gt;&gt;=4),e&gt;=2&amp;&amp;(r+=2,e&gt;&gt;&gt;=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&amp;e)&amp;&amp;(r+=13,e&gt;&gt;&gt;=13),0==(127&amp;e)&amp;&amp;(r+=7,e&gt;&gt;&gt;=7),0==(15&amp;e)&amp;&amp;(r+=4,e&gt;&gt;&gt;=4),0==(3&amp;e)&amp;&amp;(r+=2,e&gt;&gt;&gt;=2),0==(1&amp;e)&amp;&amp;r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e&lt;this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length&lt;t.length;)this.words[this.length++]=0;for(var e=0;e&lt;t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},a.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length&gt;t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length&gt;t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length&gt;t.length?t:this;for(var r=0;r&lt;e.length;r++)this.words[r]=this.words[r]&amp;t.words[r];return this.length=e.length,this.strip()},a.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length&gt;t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length&gt;t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length&gt;t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n&lt;r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n&lt;e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},a.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length&gt;t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length&gt;t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r&gt;0&amp;&amp;e--;for(var i=0;i&lt;e;i++)this.words[i]=67108863&amp;~this.words[i];return r&gt;0&amp;&amp;(this.words[i]=~this.words[i]&amp;67108863&gt;&gt;26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1&lt;&lt;i:this.words[r]&amp;~(1&lt;&lt;i),this.strip()},a.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&amp;&amp;0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&amp;&amp;0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length&gt;t.length?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a&lt;n.length;a++)e=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&amp;e,i=e&gt;&gt;&gt;26;for(;0!==i&amp;&amp;a&lt;r.length;a++)e=(0|r.words[a])+i,this.words[a]=67108863&amp;e,i=e&gt;&gt;&gt;26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a&lt;r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(t){var e;return 0!==t.negative&amp;&amp;0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&amp;&amp;0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length&gt;t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i&gt;0?(r=this,n=t):(r=t,n=this);for(var a=0,o=0;o&lt;n.length;o++)a=(e=(0|r.words[o])-(0|n.words[o])+a)&gt;&gt;26,this.words[o]=67108863&amp;e;for(;0!==a&amp;&amp;o&lt;r.length;o++)a=(e=(0|r.words[o])+a)&gt;&gt;26,this.words[o]=67108863&amp;e;if(0===a&amp;&amp;o&lt;r.length&amp;&amp;r!==this)for(;o&lt;r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&amp;&amp;(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,a,o=t.words,s=e.words,l=r.words,c=0,u=0|o[0],f=8191&amp;u,h=u&gt;&gt;&gt;13,p=0|o[1],d=8191&amp;p,g=p&gt;&gt;&gt;13,m=0|o[2],v=8191&amp;m,y=m&gt;&gt;&gt;13,x=0|o[3],b=8191&amp;x,_=x&gt;&gt;&gt;13,w=0|o[4],T=8191&amp;w,k=w&gt;&gt;&gt;13,M=0|o[5],A=8191&amp;M,S=M&gt;&gt;&gt;13,E=0|o[6],C=8191&amp;E,L=E&gt;&gt;&gt;13,I=0|o[7],P=8191&amp;I,z=I&gt;&gt;&gt;13,O=0|o[8],D=8191&amp;O,R=O&gt;&gt;&gt;13,F=0|o[9],B=8191&amp;F,N=F&gt;&gt;&gt;13,j=0|s[0],U=8191&amp;j,V=j&gt;&gt;&gt;13,q=0|s[1],H=8191&amp;q,G=q&gt;&gt;&gt;13,Y=0|s[2],W=8191&amp;Y,X=Y&gt;&gt;&gt;13,Z=0|s[3],J=8191&amp;Z,K=Z&gt;&gt;&gt;13,Q=0|s[4],$=8191&amp;Q,tt=Q&gt;&gt;&gt;13,et=0|s[5],rt=8191&amp;et,nt=et&gt;&gt;&gt;13,it=0|s[6],at=8191&amp;it,ot=it&gt;&gt;&gt;13,st=0|s[7],lt=8191&amp;st,ct=st&gt;&gt;&gt;13,ut=0|s[8],ft=8191&amp;ut,ht=ut&gt;&gt;&gt;13,pt=0|s[9],dt=8191&amp;pt,gt=pt&gt;&gt;&gt;13;r.negative=t.negative^e.negative,r.length=19;var mt=(c+(n=Math.imul(f,U))|0)+((8191&amp;(i=(i=Math.imul(f,V))+Math.imul(h,U)|0))&lt;&lt;13)|0;c=((a=Math.imul(h,V))+(i&gt;&gt;&gt;13)|0)+(mt&gt;&gt;&gt;26)|0,mt&amp;=67108863,n=Math.imul(d,U),i=(i=Math.imul(d,V))+Math.imul(g,U)|0,a=Math.imul(g,V);var vt=(c+(n=n+Math.imul(f,H)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,H)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,G)|0)+(i&gt;&gt;&gt;13)|0)+(vt&gt;&gt;&gt;26)|0,vt&amp;=67108863,n=Math.imul(v,U),i=(i=Math.imul(v,V))+Math.imul(y,U)|0,a=Math.imul(y,V),n=n+Math.imul(d,H)|0,i=(i=i+Math.imul(d,G)|0)+Math.imul(g,H)|0,a=a+Math.imul(g,G)|0;var yt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,W)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,X)|0)+(i&gt;&gt;&gt;13)|0)+(yt&gt;&gt;&gt;26)|0,yt&amp;=67108863,n=Math.imul(b,U),i=(i=Math.imul(b,V))+Math.imul(_,U)|0,a=Math.imul(_,V),n=n+Math.imul(v,H)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(d,W)|0,i=(i=i+Math.imul(d,X)|0)+Math.imul(g,W)|0,a=a+Math.imul(g,X)|0;var xt=(c+(n=n+Math.imul(f,J)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,J)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,K)|0)+(i&gt;&gt;&gt;13)|0)+(xt&gt;&gt;&gt;26)|0,xt&amp;=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,V))+Math.imul(k,U)|0,a=Math.imul(k,V),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,G)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(y,W)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(d,J)|0,i=(i=i+Math.imul(d,K)|0)+Math.imul(g,J)|0,a=a+Math.imul(g,K)|0;var bt=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,$)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,tt)|0)+(i&gt;&gt;&gt;13)|0)+(bt&gt;&gt;&gt;26)|0,bt&amp;=67108863,n=Math.imul(A,U),i=(i=Math.imul(A,V))+Math.imul(S,U)|0,a=Math.imul(S,V),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(k,H)|0,a=a+Math.imul(k,G)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(_,W)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(y,J)|0,a=a+Math.imul(y,K)|0,n=n+Math.imul(d,$)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(g,$)|0,a=a+Math.imul(g,tt)|0;var _t=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,nt)|0)+(i&gt;&gt;&gt;13)|0)+(_t&gt;&gt;&gt;26)|0,_t&amp;=67108863,n=Math.imul(C,U),i=(i=Math.imul(C,V))+Math.imul(L,U)|0,a=Math.imul(L,V),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(k,W)|0,a=a+Math.imul(k,X)|0,n=n+Math.imul(b,J)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(_,J)|0,a=a+Math.imul(_,K)|0,n=n+Math.imul(v,$)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,tt)|0,n=n+Math.imul(d,rt)|0,i=(i=i+Math.imul(d,nt)|0)+Math.imul(g,rt)|0,a=a+Math.imul(g,nt)|0;var wt=(c+(n=n+Math.imul(f,at)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ot)|0)+Math.imul(h,at)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ot)|0)+(i&gt;&gt;&gt;13)|0)+(wt&gt;&gt;&gt;26)|0,wt&amp;=67108863,n=Math.imul(P,U),i=(i=Math.imul(P,V))+Math.imul(z,U)|0,a=Math.imul(z,V),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(L,H)|0,a=a+Math.imul(L,G)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,X)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(k,J)|0,a=a+Math.imul(k,K)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(y,rt)|0,a=a+Math.imul(y,nt)|0,n=n+Math.imul(d,at)|0,i=(i=i+Math.imul(d,ot)|0)+Math.imul(g,at)|0,a=a+Math.imul(g,ot)|0;var Tt=(c+(n=n+Math.imul(f,lt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ct)|0)+Math.imul(h,lt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ct)|0)+(i&gt;&gt;&gt;13)|0)+(Tt&gt;&gt;&gt;26)|0,Tt&amp;=67108863,n=Math.imul(D,U),i=(i=Math.imul(D,V))+Math.imul(R,U)|0,a=Math.imul(R,V),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(z,H)|0,a=a+Math.imul(z,G)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(L,W)|0,a=a+Math.imul(L,X)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(S,J)|0,a=a+Math.imul(S,K)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(_,rt)|0,a=a+Math.imul(_,nt)|0,n=n+Math.imul(v,at)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(y,at)|0,a=a+Math.imul(y,ot)|0,n=n+Math.imul(d,lt)|0,i=(i=i+Math.imul(d,ct)|0)+Math.imul(g,lt)|0,a=a+Math.imul(g,ct)|0;var kt=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ht)|0)+(i&gt;&gt;&gt;13)|0)+(kt&gt;&gt;&gt;26)|0,kt&amp;=67108863,n=Math.imul(B,U),i=(i=Math.imul(B,V))+Math.imul(N,U)|0,a=Math.imul(N,V),n=n+Math.imul(D,H)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(R,H)|0,a=a+Math.imul(R,G)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(z,W)|0,a=a+Math.imul(z,X)|0,n=n+Math.imul(C,J)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(L,J)|0,a=a+Math.imul(L,K)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(k,rt)|0,a=a+Math.imul(k,nt)|0,n=n+Math.imul(b,at)|0,i=(i=i+Math.imul(b,ot)|0)+Math.imul(_,at)|0,a=a+Math.imul(_,ot)|0,n=n+Math.imul(v,lt)|0,i=(i=i+Math.imul(v,ct)|0)+Math.imul(y,lt)|0,a=a+Math.imul(y,ct)|0,n=n+Math.imul(d,ft)|0,i=(i=i+Math.imul(d,ht)|0)+Math.imul(g,ft)|0,a=a+Math.imul(g,ht)|0;var Mt=(c+(n=n+Math.imul(f,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,gt)|0)+Math.imul(h,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Mt&gt;&gt;&gt;26)|0,Mt&amp;=67108863,n=Math.imul(B,H),i=(i=Math.imul(B,G))+Math.imul(N,H)|0,a=Math.imul(N,G),n=n+Math.imul(D,W)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(R,W)|0,a=a+Math.imul(R,X)|0,n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(z,J)|0,a=a+Math.imul(z,K)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(L,$)|0,a=a+Math.imul(L,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(S,rt)|0,a=a+Math.imul(S,nt)|0,n=n+Math.imul(T,at)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(k,at)|0,a=a+Math.imul(k,ot)|0,n=n+Math.imul(b,lt)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(_,lt)|0,a=a+Math.imul(_,ct)|0,n=n+Math.imul(v,ft)|0,i=(i=i+Math.imul(v,ht)|0)+Math.imul(y,ft)|0,a=a+Math.imul(y,ht)|0;var At=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(d,gt)|0)+Math.imul(g,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(g,gt)|0)+(i&gt;&gt;&gt;13)|0)+(At&gt;&gt;&gt;26)|0,At&amp;=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,X))+Math.imul(N,W)|0,a=Math.imul(N,X),n=n+Math.imul(D,J)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(R,J)|0,a=a+Math.imul(R,K)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(z,$)|0,a=a+Math.imul(z,tt)|0,n=n+Math.imul(C,rt)|0,i=(i=i+Math.imul(C,nt)|0)+Math.imul(L,rt)|0,a=a+Math.imul(L,nt)|0,n=n+Math.imul(A,at)|0,i=(i=i+Math.imul(A,ot)|0)+Math.imul(S,at)|0,a=a+Math.imul(S,ot)|0,n=n+Math.imul(T,lt)|0,i=(i=i+Math.imul(T,ct)|0)+Math.imul(k,lt)|0,a=a+Math.imul(k,ct)|0,n=n+Math.imul(b,ft)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(_,ft)|0,a=a+Math.imul(_,ht)|0;var St=(c+(n=n+Math.imul(v,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(v,gt)|0)+Math.imul(y,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(y,gt)|0)+(i&gt;&gt;&gt;13)|0)+(St&gt;&gt;&gt;26)|0,St&amp;=67108863,n=Math.imul(B,J),i=(i=Math.imul(B,K))+Math.imul(N,J)|0,a=Math.imul(N,K),n=n+Math.imul(D,$)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(z,rt)|0,a=a+Math.imul(z,nt)|0,n=n+Math.imul(C,at)|0,i=(i=i+Math.imul(C,ot)|0)+Math.imul(L,at)|0,a=a+Math.imul(L,ot)|0,n=n+Math.imul(A,lt)|0,i=(i=i+Math.imul(A,ct)|0)+Math.imul(S,lt)|0,a=a+Math.imul(S,ct)|0,n=n+Math.imul(T,ft)|0,i=(i=i+Math.imul(T,ht)|0)+Math.imul(k,ft)|0,a=a+Math.imul(k,ht)|0;var Et=(c+(n=n+Math.imul(b,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(b,gt)|0)+Math.imul(_,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(_,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Et&gt;&gt;&gt;26)|0,Et&amp;=67108863,n=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(N,$)|0,a=Math.imul(N,tt),n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(R,rt)|0,a=a+Math.imul(R,nt)|0,n=n+Math.imul(P,at)|0,i=(i=i+Math.imul(P,ot)|0)+Math.imul(z,at)|0,a=a+Math.imul(z,ot)|0,n=n+Math.imul(C,lt)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(L,lt)|0,a=a+Math.imul(L,ct)|0,n=n+Math.imul(A,ft)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(S,ft)|0,a=a+Math.imul(S,ht)|0;var Ct=(c+(n=n+Math.imul(T,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(T,gt)|0)+Math.imul(k,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(k,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Ct&gt;&gt;&gt;26)|0,Ct&amp;=67108863,n=Math.imul(B,rt),i=(i=Math.imul(B,nt))+Math.imul(N,rt)|0,a=Math.imul(N,nt),n=n+Math.imul(D,at)|0,i=(i=i+Math.imul(D,ot)|0)+Math.imul(R,at)|0,a=a+Math.imul(R,ot)|0,n=n+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(z,lt)|0,a=a+Math.imul(z,ct)|0,n=n+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,ht)|0)+Math.imul(L,ft)|0,a=a+Math.imul(L,ht)|0;var Lt=(c+(n=n+Math.imul(A,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(A,gt)|0)+Math.imul(S,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(S,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Lt&gt;&gt;&gt;26)|0,Lt&amp;=67108863,n=Math.imul(B,at),i=(i=Math.imul(B,ot))+Math.imul(N,at)|0,a=Math.imul(N,ot),n=n+Math.imul(D,lt)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(R,lt)|0,a=a+Math.imul(R,ct)|0,n=n+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(z,ft)|0,a=a+Math.imul(z,ht)|0;var It=(c+(n=n+Math.imul(C,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(C,gt)|0)+Math.imul(L,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(L,gt)|0)+(i&gt;&gt;&gt;13)|0)+(It&gt;&gt;&gt;26)|0,It&amp;=67108863,n=Math.imul(B,lt),i=(i=Math.imul(B,ct))+Math.imul(N,lt)|0,a=Math.imul(N,ct),n=n+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(R,ft)|0,a=a+Math.imul(R,ht)|0;var Pt=(c+(n=n+Math.imul(P,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(P,gt)|0)+Math.imul(z,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(z,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Pt&gt;&gt;&gt;26)|0,Pt&amp;=67108863,n=Math.imul(B,ft),i=(i=Math.imul(B,ht))+Math.imul(N,ft)|0,a=Math.imul(N,ht);var zt=(c+(n=n+Math.imul(D,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(D,gt)|0)+Math.imul(R,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(R,gt)|0)+(i&gt;&gt;&gt;13)|0)+(zt&gt;&gt;&gt;26)|0,zt&amp;=67108863;var Ot=(c+(n=Math.imul(B,dt))|0)+((8191&amp;(i=(i=Math.imul(B,gt))+Math.imul(N,dt)|0))&lt;&lt;13)|0;return c=((a=Math.imul(N,gt))+(i&gt;&gt;&gt;13)|0)+(Ot&gt;&gt;&gt;26)|0,Ot&amp;=67108863,l[0]=mt,l[1]=vt,l[2]=yt,l[3]=xt,l[4]=bt,l[5]=_t,l[6]=wt,l[7]=Tt,l[8]=kt,l[9]=Mt,l[10]=At,l[11]=St,l[12]=Et,l[13]=Ct,l[14]=Lt,l[15]=It,l[16]=Pt,l[17]=zt,l[18]=Ot,0!==c&amp;&amp;(l[19]=c,r.length++),r};function d(t,e,r){return(new g).mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=h),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&amp;&amp;10===t.length?p(this,t,e):r&lt;63?h(this,t,e):r&lt;1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,a=0;a&lt;r.length-1;a++){var o=i;i=0;for(var s=67108863&amp;n,l=Math.min(a,e.length-1),c=Math.max(0,a-t.length+1);c&lt;=l;c++){var u=a-c,f=(0|t.words[u])*(0|e.words[c]),h=67108863&amp;f;s=67108863&amp;(h=h+s|0),i+=(o=(o=o+(f/67108864|0)|0)+(h&gt;&gt;&gt;26)|0)&gt;&gt;&gt;26,o&amp;=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,t,e):d(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n&lt;t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i&lt;e;i++)n|=(1&amp;t)&lt;&lt;e-i-1,t&gt;&gt;=1;return n},g.prototype.permute=function(t,e,r,n,i,a){for(var o=0;o&lt;a;o++)n[o]=e[t[o]],i[o]=r[t[o]]},g.prototype.transform=function(t,e,r,n,i,a){this.permute(a,t,e,r,n,i);for(var o=1;o&lt;i;o&lt;&lt;=1)for(var s=o&lt;&lt;1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u&lt;i;u+=s)for(var f=l,h=c,p=0;p&lt;o;p++){var d=r[u+p],g=n[u+p],m=r[u+p+o],v=n[u+p+o],y=f*m-h*v;v=f*v+h*m,m=y,r[u+p]=d+m,n[u+p]=g+v,r[u+p+o]=d-m,n[u+p+o]=g-v,p!==s&amp;&amp;(y=l*f-c*h,h=l*h+c*f,f=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&amp;r,i=0;for(r=r/2|0;r;r&gt;&gt;&gt;=1)i++;return 1&lt;&lt;i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r&lt;=1))for(var n=0;n&lt;r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n&lt;e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&amp;i,r=i&lt;67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var a=0,o=0;o&lt;e;o++)a+=0|t[o],r[2*o]=8191&amp;a,a&gt;&gt;&gt;=13,r[2*o+1]=8191&amp;a,a&gt;&gt;&gt;=13;for(o=2*e;o&lt;i;++o)r[o]=0;n(0===a),n(0==(-8192&amp;a))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,c,n),this.transform(o,a,s,l,n,i),this.transform(c,a,u,f,n,i);for(var p=0;p&lt;n;p++){var d=s[p]*u[p]-l[p]*f[p];l[p]=s[p]*f[p]+l[p]*u[p],s[p]=d}return this.conjugate(s,l,n),this.transform(s,l,h,a,n,i),this.conjugate(h,a,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},a.prototype.mul=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},a.prototype.mulf=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),d(this,t,e)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){n(&quot;number&quot;==typeof t),n(t&lt;67108864);for(var e=0,r=0;r&lt;this.length;r++){var i=(0|this.words[r])*t,a=(67108863&amp;i)+(67108863&amp;e);e&gt;&gt;=26,e+=i/67108864|0,e+=a&gt;&gt;&gt;26,this.words[r]=67108863&amp;a}return 0!==e&amp;&amp;(this.words[r]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r&lt;e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&amp;1&lt;&lt;i)&gt;&gt;&gt;i}return e}(t);if(0===e.length)return new a(1);for(var r=this,n=0;n&lt;e.length&amp;&amp;0===e[n];n++,r=r.sqr());if(++n&lt;e.length)for(var i=r.sqr();n&lt;e.length;n++,i=i.sqr())0!==e[n]&amp;&amp;(r=r.mul(i));return r},a.prototype.iushln=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e,r=t%26,i=(t-r)/26,a=67108863&gt;&gt;&gt;26-r&lt;&lt;26-r;if(0!==r){var o=0;for(e=0;e&lt;this.length;e++){var s=this.words[e]&amp;a,l=(0|this.words[e])-s&lt;&lt;r;this.words[e]=l|o,o=s&gt;&gt;&gt;26-r}o&amp;&amp;(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e&gt;=0;e--)this.words[e+i]=this.words[e];for(e=0;e&lt;i;e++)this.words[e]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,e,r){var i;n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0),i=e?(e-e%26)/26:0;var a=t%26,o=Math.min((t-a)/26,this.length),s=67108863^67108863&gt;&gt;&gt;a&lt;&lt;a,l=r;if(i-=o,i=Math.max(0,i),l){for(var c=0;c&lt;o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length&gt;o)for(this.length-=o,c=0;c&lt;this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c&gt;=0&amp;&amp;(0!==u||c&gt;=i);c--){var f=0|this.words[c];this.words[c]=u&lt;&lt;26-a|f&gt;&gt;&gt;a,u=f&amp;s}return l&amp;&amp;0!==u&amp;&amp;(l.words[l.length++]=u),0===this.length&amp;&amp;(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=t%26,r=(t-e)/26,i=1&lt;&lt;e;return!(this.length&lt;=r)&amp;&amp;!!(this.words[r]&amp;i)},a.prototype.imaskn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,&quot;imaskn works only with positive numbers&quot;),this.length&lt;=r)return this;if(0!==e&amp;&amp;r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863&gt;&gt;&gt;e&lt;&lt;e;this.words[this.length-1]&amp;=i}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return n(&quot;number&quot;==typeof t),n(t&lt;67108864),t&lt;0?this.isubn(-t):0!==this.negative?1===this.length&amp;&amp;(0|this.words[0])&lt;t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e&lt;this.length&amp;&amp;this.words[e]&gt;=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(n(&quot;number&quot;==typeof t),n(t&lt;67108864),t&lt;0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&amp;&amp;this.words[0]&lt;0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e&lt;this.length&amp;&amp;this.words[e]&lt;0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,e,r){var i,a,o=t.length+r;this._expand(o);var s=0;for(i=0;i&lt;t.length;i++){a=(0|this.words[i+r])+s;var l=(0|t.words[i])*e;s=((a-=67108863&amp;l)&gt;&gt;26)-(l/67108864|0),this.words[i+r]=67108863&amp;a}for(;i&lt;this.length-r;i++)s=(a=(0|this.words[i+r])+s)&gt;&gt;26,this.words[i+r]=67108863&amp;a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i&lt;this.length;i++)s=(a=-(0|this.words[i])+s)&gt;&gt;26,this.words[i]=67108863&amp;a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&amp;&amp;(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,l=n.length-i.length;if(&quot;mod&quot;!==e){(s=new a(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c&lt;s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(i,1,l);0===u.negative&amp;&amp;(n=u,s&amp;&amp;(s.words[l]=1));for(var f=l-1;f&gt;=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&amp;&amp;(s.words[f]=h)}return s&amp;&amp;s.strip(),n.strip(),&quot;div&quot;!==e&amp;&amp;0!==r&amp;&amp;n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&amp;&amp;0===t.negative?(s=this.neg().divmod(t,e),&quot;mod&quot;!==e&amp;&amp;(i=s.div.neg()),&quot;div&quot;!==e&amp;&amp;(o=s.mod.neg(),r&amp;&amp;0!==o.negative&amp;&amp;o.iadd(t)),{div:i,mod:o}):0===this.negative&amp;&amp;0!==t.negative?(s=this.divmod(t.neg(),e),&quot;mod&quot;!==e&amp;&amp;(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&amp;t.negative)?(s=this.neg().divmod(t.neg(),e),&quot;div&quot;!==e&amp;&amp;(o=s.mod.neg(),r&amp;&amp;0!==o.negative&amp;&amp;o.isub(t)),{div:s.div,mod:o}):t.length&gt;this.length||this.cmp(t)&lt;0?{div:new a(0),mod:this}:1===t.length?&quot;div&quot;===e?{div:this.divn(t.words[0]),mod:null}:&quot;mod&quot;===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,s},a.prototype.div=function(t){return this.divmod(t,&quot;div&quot;,!1).div},a.prototype.mod=function(t){return this.divmod(t,&quot;mod&quot;,!1).mod},a.prototype.umod=function(t){return this.divmod(t,&quot;mod&quot;,!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),a=r.cmp(n);return a&lt;0||1===i&amp;&amp;0===a?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){n(t&lt;=67108863);for(var e=(1&lt;&lt;26)%t,r=0,i=this.length-1;i&gt;=0;i--)r=(e*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){n(t&lt;=67108863);for(var e=0,r=this.length-1;r&gt;=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new a(1),o=new a(0),s=new a(0),l=new a(1),c=0;e.isEven()&amp;&amp;r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),f=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&amp;p)&amp;&amp;h&lt;26;++h,p&lt;&lt;=1);if(h&gt;0)for(e.iushrn(h);h-- &gt;0;)(i.isOdd()||o.isOdd())&amp;&amp;(i.iadd(u),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var d=0,g=1;0==(r.words[0]&amp;g)&amp;&amp;d&lt;26;++d,g&lt;&lt;=1);if(d&gt;0)for(r.iushrn(d);d-- &gt;0;)(s.isOdd()||l.isOdd())&amp;&amp;(s.iadd(u),l.isub(f)),s.iushrn(1),l.iushrn(1);e.cmp(r)&gt;=0?(e.isub(r),i.isub(s),o.isub(l)):(r.isub(e),s.isub(i),l.isub(o))}return{a:s,b:l,gcd:r.iushln(c)}},a.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new a(1),s=new a(0),l=r.clone();e.cmpn(1)&gt;0&amp;&amp;r.cmpn(1)&gt;0;){for(var c=0,u=1;0==(e.words[0]&amp;u)&amp;&amp;c&lt;26;++c,u&lt;&lt;=1);if(c&gt;0)for(e.iushrn(c);c-- &gt;0;)o.isOdd()&amp;&amp;o.iadd(l),o.iushrn(1);for(var f=0,h=1;0==(r.words[0]&amp;h)&amp;&amp;f&lt;26;++f,h&lt;&lt;=1);if(f&gt;0)for(r.iushrn(f);f-- &gt;0;)s.isOdd()&amp;&amp;s.iadd(l),s.iushrn(1);e.cmp(r)&gt;=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(i=0===e.cmpn(1)?o:s).cmpn(0)&lt;0&amp;&amp;i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&amp;&amp;r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i&lt;0){var a=e;e=r,r=a}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&amp;this.words[0])},a.prototype.isOdd=function(){return 1==(1&amp;this.words[0])},a.prototype.andln=function(t){return this.words[0]&amp;t},a.prototype.bincn=function(t){n(&quot;number&quot;==typeof t);var e=t%26,r=(t-e)/26,i=1&lt;&lt;e;if(this.length&lt;=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&amp;&amp;o&lt;this.length;o++){var s=0|this.words[o];a=(s+=a)&gt;&gt;&gt;26,s&amp;=67108863,this.words[o]=s}return 0!==a&amp;&amp;(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&amp;&amp;0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t&lt;0;if(0!==this.negative&amp;&amp;!r)return-1;if(0===this.negative&amp;&amp;r)return 1;if(this.strip(),this.length&gt;1)e=1;else{r&amp;&amp;(t=-t),n(t&lt;=67108863,&quot;Number is too big&quot;);var i=0|this.words[0];e=i===t?0:i&lt;t?-1:1}return 0!==this.negative?0|-e:e},a.prototype.cmp=function(t){if(0!==this.negative&amp;&amp;0===t.negative)return-1;if(0===this.negative&amp;&amp;0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},a.prototype.ucmp=function(t){if(this.length&gt;t.length)return 1;if(this.length&lt;t.length)return-1;for(var e=0,r=this.length-1;r&gt;=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n&lt;i?e=-1:n&gt;i&amp;&amp;(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)&gt;=0},a.prototype.gte=function(t){return this.cmp(t)&gt;=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)&lt;=0},a.prototype.lte=function(t){return this.cmp(t)&lt;=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new w(t)},a.prototype.toRed=function(t){return n(!this.red,&quot;Already a number in reduction context&quot;),n(0===this.negative,&quot;red works only with positives&quot;),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return n(this.red,&quot;fromRed works only with numbers in reduction context&quot;),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return n(!this.red,&quot;Already a number in reduction context&quot;),this._forceRed(t)},a.prototype.redAdd=function(t){return n(this.red,&quot;redAdd works only with red numbers&quot;),this.red.add(this,t)},a.prototype.redIAdd=function(t){return n(this.red,&quot;redIAdd works only with red numbers&quot;),this.red.iadd(this,t)},a.prototype.redSub=function(t){return n(this.red,&quot;redSub works only with red numbers&quot;),this.red.sub(this,t)},a.prototype.redISub=function(t){return n(this.red,&quot;redISub works only with red numbers&quot;),this.red.isub(this,t)},a.prototype.redShl=function(t){return n(this.red,&quot;redShl works only with red numbers&quot;),this.red.shl(this,t)},a.prototype.redMul=function(t){return n(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return n(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return n(this.red,&quot;redSqr works only with red numbers&quot;),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,&quot;redISqr works only with red numbers&quot;),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,&quot;redSqrt works only with red numbers&quot;),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,&quot;redInvm works only with red numbers&quot;),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,&quot;redNeg works only with red numbers&quot;),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return n(this.red&amp;&amp;!t.red,&quot;redPow(normalNum)&quot;),this.red._verify1(this),this.red.pow(this,t)};var m={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,&quot;k256&quot;,&quot;ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f&quot;)}function x(){v.call(this,&quot;p224&quot;,&quot;ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001&quot;)}function b(){v.call(this,&quot;p192&quot;,&quot;ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff&quot;)}function _(){v.call(this,&quot;25519&quot;,&quot;7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed&quot;)}function w(t){if(&quot;string&quot;==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),&quot;modulus must be greater than 1&quot;),this.m=t,this.prime=null}function T(t){w.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&amp;&amp;(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e&gt;this.n);var n=e&lt;this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n&gt;0?r.isub(this.p):r.strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(y,v),y.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n&lt;r;n++)e.words[n]=t.words[n];if(e.length=r,t.length&lt;=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&amp;i,n=10;n&lt;t.length;n++){var a=0|t.words[n];t.words[n-10]=(4194303&amp;a)&lt;&lt;4|i&gt;&gt;&gt;22,i=a}i&gt;&gt;&gt;=22,t.words[n-10]=i,0===i&amp;&amp;t.length&gt;10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r&lt;t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&amp;e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&amp;&amp;(t.length--,0===t.words[t.length-1]&amp;&amp;t.length--),t},i(x,v),i(b,v),i(_,v),_.prototype.imulK=function(t){for(var e=0,r=0;r&lt;t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&amp;n;n&gt;&gt;&gt;=26,t.words[r]=i,e=n}return 0!==e&amp;&amp;(t.words[t.length++]=e),t},a._prime=function(t){if(m[t])return m[t];var e;if(&quot;k256&quot;===t)e=new y;else if(&quot;p224&quot;===t)e=new x;else if(&quot;p192&quot;===t)e=new b;else{if(&quot;p25519&quot;!==t)throw new Error(&quot;Unknown prime &quot;+t);e=new _}return m[t]=e,e},w.prototype._verify1=function(t){n(0===t.negative,&quot;red works only with positives&quot;),n(t.red,&quot;red works only with red numbers&quot;)},w.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),&quot;red works only with positives&quot;),n(t.red&amp;&amp;t.red===e.red,&quot;red works only with red numbers&quot;)},w.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)&gt;=0&amp;&amp;r.isub(this.m),r._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)&gt;=0&amp;&amp;r.isub(this.m),r},w.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)&lt;0&amp;&amp;r.iadd(this.m),r._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)&lt;0&amp;&amp;r.iadd(this.m),r},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&amp;&amp;0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var f=this.pow(u,i),h=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),d=o;0!==p.cmp(s);){for(var g=p,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m&lt;d);var v=this.pow(f,new a(1).iushln(d-m-1));h=h.redMul(v),f=v.redSqr(),p=p.redMul(f),d=m}return h},w.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},w.prototype.pow=function(t,e){if(e.isZero())return new a(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=t;for(var n=2;n&lt;r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,s=0,l=e.bitLength()%26;for(0===l&amp;&amp;(l=26),n=e.length-1;n&gt;=0;n--){for(var c=e.words[n],u=l-1;u&gt;=0;u--){var f=c&gt;&gt;u&amp;1;i!==r[0]&amp;&amp;(i=this.sqr(i)),0!==f||0!==o?(o&lt;&lt;=1,o|=f,(4===++s||0===n&amp;&amp;0===u)&amp;&amp;(i=this.mul(i,r[o]),s=0,o=0)):s=0}l=26}return i},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new T(t)},i(T,w),T.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},T.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},T.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)&gt;=0?a=i.isub(this.m):i.cmpn(0)&lt;0&amp;&amp;(a=i.iadd(this.m)),a._forceRed(this)},T.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)&gt;=0?o=i.isub(this.m):i.cmpn(0)&lt;0&amp;&amp;(o=i.iadd(this.m)),o._forceRed(this)},T.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(&quot;undefined&quot;==typeof e||e,this)},{buffer:108}],100:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e,r,n,i=t.length,a=0;for(e=0;e&lt;i;++e)a+=t[e].length;var o=new Array(a),s=0;for(e=0;e&lt;i;++e){var l=t[e],c=l.length;for(r=0;r&lt;c;++r){var u=o[s++]=new Array(c-1),f=0;for(n=0;n&lt;c;++n)n!==r&amp;&amp;(u[f++]=l[n]);if(1&amp;r){var h=u[1];u[1]=u[0],u[0]=h}}}return o}},{}],101:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){switch(arguments.length){case 1:return f(t);case 2:return&quot;function&quot;==typeof e?c(t,t,e,!0):h(t,e);case 3:return c(t,e,r,!1);default:throw new Error(&quot;box-intersect: Invalid arguments&quot;)}};var n,i=t(&quot;typedarray-pool&quot;),a=t(&quot;./lib/sweep&quot;),o=t(&quot;./lib/intersect&quot;);function s(t,e){for(var r=0;r&lt;t;++r)if(!(e[r]&lt;=e[r+t]))return!0;return!1}function l(t,e,r,n){for(var i=0,a=0,o=0,l=t.length;o&lt;l;++o){var c=t[o];if(!s(e,c)){for(var u=0;u&lt;2*e;++u)r[i++]=c[u];n[a++]=o}}return a}function c(t,e,r,n){var s=t.length,c=e.length;if(!(s&lt;=0||c&lt;=0)){var u=t[0].length&gt;&gt;&gt;1;if(!(u&lt;=0)){var f,h=i.mallocDouble(2*u*s),p=i.mallocInt32(s);if((s=l(t,u,h,p))&gt;0){if(1===u&amp;&amp;n)a.init(s),f=a.sweepComplete(u,r,0,s,h,p,0,s,h,p);else{var d=i.mallocDouble(2*u*c),g=i.mallocInt32(c);(c=l(e,u,d,g))&gt;0&amp;&amp;(a.init(s+c),f=1===u?a.sweepBipartite(u,r,0,s,h,p,0,c,d,g):o(u,r,n,s,h,p,c,d,g),i.free(d),i.free(g))}i.free(h),i.free(p)}return f}}}function u(t,e){n.push([t,e])}function f(t){return n=[],c(t,t,u,!0),n}function h(t,e){return n=[],c(t,e,u,!1),n}},{&quot;./lib/intersect&quot;:103,&quot;./lib/sweep&quot;:107,&quot;typedarray-pool&quot;:595}],102:[function(t,e,r){&quot;use strict&quot;;var n=[&quot;d&quot;,&quot;ax&quot;,&quot;vv&quot;,&quot;rs&quot;,&quot;re&quot;,&quot;rb&quot;,&quot;ri&quot;,&quot;bs&quot;,&quot;be&quot;,&quot;bb&quot;,&quot;bi&quot;];function i(t){var e=&quot;bruteForce&quot;+(t?&quot;Full&quot;:&quot;Partial&quot;),r=[],i=n.slice();t||i.splice(3,0,&quot;fp&quot;);var a=[&quot;function &quot;+e+&quot;(&quot;+i.join()+&quot;){&quot;];function o(e,i){var o=function(t,e,r){var i=&quot;bruteForce&quot;+(t?&quot;Red&quot;:&quot;Blue&quot;)+(e?&quot;Flip&quot;:&quot;&quot;)+(r?&quot;Full&quot;:&quot;&quot;),a=[&quot;function &quot;,i,&quot;(&quot;,n.join(),&quot;){&quot;,&quot;var &quot;,&quot;es&quot;,&quot;=2*&quot;,&quot;d&quot;,&quot;;&quot;],o=&quot;for(var i=rs,rp=es*rs;i&lt;re;++i,rp+=es){var x0=rb[ax+rp],x1=rb[ax+rp+d],xi=ri[i];&quot;,s=&quot;for(var j=bs,bp=es*bs;j&lt;be;++j,bp+=es){var y0=bb[ax+bp],&quot;+(r?&quot;y1=bb[ax+bp+d],&quot;:&quot;&quot;)+&quot;yi=bi[j];&quot;;return t?a.push(o,&quot;Q&quot;,&quot;:&quot;,s):a.push(s,&quot;Q&quot;,&quot;:&quot;,o),r?a.push(&quot;if(y1&lt;x0||x1&lt;y0)continue;&quot;):e?a.push(&quot;if(y0&lt;=x0||x1&lt;y0)continue;&quot;):a.push(&quot;if(y0&lt;x0||x1&lt;y0)continue;&quot;),a.push(&quot;for(var k=ax+1;k&lt;d;++k){var r0=rb[k+rp],r1=rb[k+d+rp],b0=bb[k+bp],b1=bb[k+d+bp];if(r1&lt;b0||b1&lt;r0)continue Q;}var rv=vv(&quot;),e?a.push(&quot;yi,xi&quot;):a.push(&quot;xi,yi&quot;),a.push(&quot;);if(rv!==void 0)return rv;}}}&quot;),{name:i,code:a.join(&quot;&quot;)}}(e,i,t);r.push(o.code),a.push(&quot;return &quot;+o.name+&quot;(&quot;+n.join()+&quot;);&quot;)}a.push(&quot;if(re-rs&gt;be-bs){&quot;),t?(o(!0,!1),a.push(&quot;}else{&quot;),o(!1,!1)):(a.push(&quot;if(fp){&quot;),o(!0,!0),a.push(&quot;}else{&quot;),o(!0,!1),a.push(&quot;}}else{if(fp){&quot;),o(!1,!0),a.push(&quot;}else{&quot;),o(!1,!1),a.push(&quot;}&quot;)),a.push(&quot;}}return &quot;+e);var s=r.join(&quot;&quot;)+a.join(&quot;&quot;);return new Function(s)()}r.partial=i(!1),r.full=i(!0)},{}],103:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,u,w,T,k,M){!function(t,e){var r=8*i.log2(e+1)*(t+1)|0,a=i.nextPow2(6*r);v.length&lt;a&amp;&amp;(n.free(v),v=n.mallocInt32(a));var o=i.nextPow2(2*r);y.length&lt;o&amp;&amp;(n.free(y),y=n.mallocDouble(o))}(t,a+T);var A,S=0,E=2*t;x(S++,0,0,a,0,T,r?16:0,-1/0,1/0),r||x(S++,0,0,T,0,a,1,-1/0,1/0);for(;S&gt;0;){var C=6*(S-=1),L=v[C],I=v[C+1],P=v[C+2],z=v[C+3],O=v[C+4],D=v[C+5],R=2*S,F=y[R],B=y[R+1],N=1&amp;D,j=!!(16&amp;D),U=u,V=w,q=k,H=M;if(N&amp;&amp;(U=k,V=M,q=u,H=w),!(2&amp;D&amp;&amp;(P=p(t,L,I,P,U,V,B),I&gt;=P)||4&amp;D&amp;&amp;(I=d(t,L,I,P,U,V,F))&gt;=P)){var G=P-I,Y=O-z;if(j){if(t*G*(G+Y)&lt;1&lt;&lt;22){if(void 0!==(A=l.scanComplete(t,L,e,I,P,U,V,z,O,q,H)))return A;continue}}else{if(t*Math.min(G,Y)&lt;128){if(void 0!==(A=o(t,L,e,N,I,P,U,V,z,O,q,H)))return A;continue}if(t*G*Y&lt;1&lt;&lt;22){if(void 0!==(A=l.scanBipartite(t,L,e,N,I,P,U,V,z,O,q,H)))return A;continue}}var W=f(t,L,I,P,U,V,F,B);if(I&lt;W)if(t*(W-I)&lt;128){if(void 0!==(A=s(t,L+1,e,I,W,U,V,z,O,q,H)))return A}else if(L===t-2){if(void 0!==(A=N?l.sweepBipartite(t,e,z,O,q,H,I,W,U,V):l.sweepBipartite(t,e,I,W,U,V,z,O,q,H)))return A}else x(S++,L+1,I,W,z,O,N,-1/0,1/0),x(S++,L+1,z,O,I,W,1^N,-1/0,1/0);if(W&lt;P){var X=c(t,L,z,O,q,H),Z=q[E*X+L],J=h(t,L,X,O,q,H,Z);if(J&lt;O&amp;&amp;x(S++,L,W,P,J,O,(4|N)+(j?16:0),Z,B),z&lt;X&amp;&amp;x(S++,L,W,P,z,X,(2|N)+(j?16:0),F,Z),X+1===J){if(void 0!==(A=j?_(t,L,e,W,P,U,V,X,q,H[X]):b(t,L,e,N,W,P,U,V,X,q,H[X])))return A}else if(X&lt;J){var K;if(j){if(K=g(t,L,W,P,U,V,Z),W&lt;K){var Q=h(t,L,W,K,U,V,Z);if(L===t-2){if(W&lt;Q&amp;&amp;void 0!==(A=l.sweepComplete(t,e,W,Q,U,V,X,J,q,H)))return A;if(Q&lt;K&amp;&amp;void 0!==(A=l.sweepBipartite(t,e,Q,K,U,V,X,J,q,H)))return A}else W&lt;Q&amp;&amp;x(S++,L+1,W,Q,X,J,16,-1/0,1/0),Q&lt;K&amp;&amp;(x(S++,L+1,Q,K,X,J,0,-1/0,1/0),x(S++,L+1,X,J,Q,K,1,-1/0,1/0))}}else K=N?m(t,L,W,P,U,V,Z):g(t,L,W,P,U,V,Z),W&lt;K&amp;&amp;(L===t-2?A=N?l.sweepBipartite(t,e,X,J,q,H,W,K,U,V):l.sweepBipartite(t,e,W,K,U,V,X,J,q,H):(x(S++,L+1,W,K,X,J,N,-1/0,1/0),x(S++,L+1,X,J,W,K,1^N,-1/0,1/0)))}}}}};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;bit-twiddle&quot;),a=t(&quot;./brute&quot;),o=a.partial,s=a.full,l=t(&quot;./sweep&quot;),c=t(&quot;./median&quot;),u=t(&quot;./partition&quot;),f=u(&quot;!(lo&gt;=p0)&amp;&amp;!(p1&gt;=hi)&quot;,[&quot;p0&quot;,&quot;p1&quot;]),h=u(&quot;lo===p0&quot;,[&quot;p0&quot;]),p=u(&quot;lo&lt;p0&quot;,[&quot;p0&quot;]),d=u(&quot;hi&lt;=p0&quot;,[&quot;p0&quot;]),g=u(&quot;lo&lt;=p0&amp;&amp;p0&lt;=hi&quot;,[&quot;p0&quot;]),m=u(&quot;lo&lt;p0&amp;&amp;p0&lt;=hi&quot;,[&quot;p0&quot;]),v=n.mallocInt32(1024),y=n.mallocDouble(1024);function x(t,e,r,n,i,a,o,s,l){var c=6*t;v[c]=e,v[c+1]=r,v[c+2]=n,v[c+3]=i,v[c+4]=a,v[c+5]=o;var u=2*t;y[u]=s,y[u+1]=l}function b(t,e,r,n,i,a,o,s,l,c,u){var f=2*t,h=l*f,p=c[h+e];t:for(var d=i,g=i*f;d&lt;a;++d,g+=f){var m=o[g+e],v=o[g+e+t];if(!(p&lt;m||v&lt;p)&amp;&amp;(!n||p!==m)){for(var y,x=s[d],b=e+1;b&lt;t;++b){m=o[g+b],v=o[g+b+t];var _=c[h+b],w=c[h+b+t];if(v&lt;_||w&lt;m)continue t}if(void 0!==(y=n?r(u,x):r(x,u)))return y}}}function _(t,e,r,n,i,a,o,s,l,c){var u=2*t,f=s*u,h=l[f+e];t:for(var p=n,d=n*u;p&lt;i;++p,d+=u){var g=o[p];if(g!==c){var m=a[d+e],v=a[d+e+t];if(!(h&lt;m||v&lt;h)){for(var y=e+1;y&lt;t;++y){m=a[d+y],v=a[d+y+t];var x=l[f+y],b=l[f+y+t];if(v&lt;x||b&lt;m)continue t}var _=r(g,c);if(void 0!==_)return _}}}}},{&quot;./brute&quot;:102,&quot;./median&quot;:104,&quot;./partition&quot;:105,&quot;./sweep&quot;:107,&quot;bit-twiddle&quot;:97,&quot;typedarray-pool&quot;:595}],104:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,o,s){if(a&lt;=r+1)return r;var l=r,c=a,u=a+r&gt;&gt;&gt;1,f=2*t,h=u,p=o[f*u+e];for(;l&lt;c;){if(c-l&lt;8){i(t,e,l,c,o,s),p=o[f*u+e];break}var d=c-l,g=Math.random()*d+l|0,m=o[f*g+e],v=Math.random()*d+l|0,y=o[f*v+e],x=Math.random()*d+l|0,b=o[f*x+e];m&lt;=y?b&gt;=y?(h=v,p=y):m&gt;=b?(h=g,p=m):(h=x,p=b):y&gt;=b?(h=v,p=y):b&gt;=m?(h=g,p=m):(h=x,p=b);for(var _=f*(c-1),w=f*h,T=0;T&lt;f;++T,++_,++w){var k=o[_];o[_]=o[w],o[w]=k}var M=s[c-1];s[c-1]=s[h],s[h]=M,h=n(t,e,l,c-1,o,s,p);for(_=f*(c-1),w=f*h,T=0;T&lt;f;++T,++_,++w){k=o[_];o[_]=o[w],o[w]=k}M=s[c-1];if(s[c-1]=s[h],s[h]=M,u&lt;h){for(c=h-1;l&lt;c&amp;&amp;o[f*(c-1)+e]===p;)c-=1;c+=1}else{if(!(h&lt;u))break;for(l=h+1;l&lt;c&amp;&amp;o[f*l+e]===p;)l+=1}}return n(t,e,r,u,o,s,o[f*u+e])};var n=t(&quot;./partition&quot;)(&quot;lo&lt;p0&quot;,[&quot;p0&quot;]);function i(t,e,r,n,i,a){for(var o=2*t,s=o*(r+1)+e,l=r+1;l&lt;n;++l,s+=o)for(var c=i[s],u=l,f=o*(l-1);u&gt;r&amp;&amp;i[f+e]&gt;c;--u,f-=o){for(var h=f,p=f+o,d=0;d&lt;o;++d,++h,++p){var g=i[h];i[h]=i[p],i[p]=g}var m=a[u];a[u]=a[u-1],a[u-1]=m}}},{&quot;./partition&quot;:105}],105:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=&quot;abcdef&quot;.split(&quot;&quot;).concat(e),n=[];t.indexOf(&quot;lo&quot;)&gt;=0&amp;&amp;n.push(&quot;lo=e[k+n]&quot;);t.indexOf(&quot;hi&quot;)&gt;=0&amp;&amp;n.push(&quot;hi=e[k+o]&quot;);return r.push(&quot;for(var j=2*a,k=j*c,l=k,m=c,n=b,o=a+b,p=c;d&gt;p;++p,k+=j){var _;if($)if(m===p)m+=1,l+=j;else{for(var s=0;j&gt;s;++s){var t=e[k+s];e[k+s]=e[l],e[l++]=t}var u=f[p];f[p]=f[m],f[m++]=u}}return m&quot;.replace(&quot;_&quot;,n.join()).replace(&quot;$&quot;,t)),Function.apply(void 0,r)}},{}],106:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e&lt;=128?n(0,e-1,t):function t(e,r,u){var f=(r-e+1)/6|0,h=e+f,p=r-f,d=e+r&gt;&gt;1,g=d-f,m=d+f,v=h,y=g,x=d,b=m,_=p,w=e+1,T=r-1,k=0;l(v,y,u)&amp;&amp;(k=v,v=y,y=k);l(b,_,u)&amp;&amp;(k=b,b=_,_=k);l(v,x,u)&amp;&amp;(k=v,v=x,x=k);l(y,x,u)&amp;&amp;(k=y,y=x,x=k);l(v,b,u)&amp;&amp;(k=v,v=b,b=k);l(x,b,u)&amp;&amp;(k=x,x=b,b=k);l(y,_,u)&amp;&amp;(k=y,y=_,_=k);l(y,x,u)&amp;&amp;(k=y,y=x,x=k);l(b,_,u)&amp;&amp;(k=b,b=_,_=k);for(var M=u[2*y],A=u[2*y+1],S=u[2*b],E=u[2*b+1],C=2*v,L=2*x,I=2*_,P=2*h,z=2*d,O=2*p,D=0;D&lt;2;++D){var R=u[C+D],F=u[L+D],B=u[I+D];u[P+D]=R,u[z+D]=F,u[O+D]=B}a(g,e,u),a(m,r,u);for(var N=w;N&lt;=T;++N)if(c(N,M,A,u))N!==w&amp;&amp;i(N,w,u),++w;else if(!c(N,S,E,u))for(;;){if(c(T,S,E,u)){c(T,M,A,u)?(o(N,w,T,u),++w,--T):(i(N,T,u),--T);break}if(--T&lt;N)break}s(e,w-1,M,A,u),s(r,T+1,S,E,u),w-2-e&lt;=32?n(e,w-2,u):t(e,w-2,u);r-(T+2)&lt;=32?n(T+2,r,u):t(T+2,r,u);T-w&lt;=32?n(w,T,u):t(w,T,u)}(0,e-1,t)};function n(t,e,r){for(var n=2*(t+1),i=t+1;i&lt;=e;++i){for(var a=r[n++],o=r[n++],s=i,l=n-2;s-- &gt;t;){var c=r[l-2],u=r[l-1];if(c&lt;a)break;if(c===a&amp;&amp;u&lt;o)break;r[l]=c,r[l+1]=u,l-=2}r[l]=a,r[l+1]=o}}function i(t,e,r){e*=2;var n=r[t*=2],i=r[t+1];r[t]=r[e],r[t+1]=r[e+1],r[e]=n,r[e+1]=i}function a(t,e,r){e*=2,r[t*=2]=r[e],r[t+1]=r[e+1]}function o(t,e,r,n){e*=2,r*=2;var i=n[t*=2],a=n[t+1];n[t]=n[e],n[t+1]=n[e+1],n[e]=n[r],n[e+1]=n[r+1],n[r]=i,n[r+1]=a}function s(t,e,r,n,i){e*=2,i[t*=2]=i[e],i[e]=r,i[t+1]=i[e+1],i[e+1]=n}function l(t,e,r){e*=2;var n=r[t*=2],i=r[e];return!(n&lt;i)&amp;&amp;(n!==i||r[t+1]&gt;r[e+1])}function c(t,e,r,n){var i=n[t*=2];return i&lt;e||i===e&amp;&amp;n[t+1]&lt;r}},{}],107:[function(t,e,r){&quot;use strict&quot;;e.exports={init:function(t){var e=i.nextPow2(t);o.length&lt;e&amp;&amp;(n.free(o),o=n.mallocInt32(e));s.length&lt;e&amp;&amp;(n.free(s),s=n.mallocInt32(e));l.length&lt;e&amp;&amp;(n.free(l),l=n.mallocInt32(e));c.length&lt;e&amp;&amp;(n.free(c),c=n.mallocInt32(e));u.length&lt;e&amp;&amp;(n.free(u),u=n.mallocInt32(e));f.length&lt;e&amp;&amp;(n.free(f),f=n.mallocInt32(e));var r=8*e;h.length&lt;r&amp;&amp;(n.free(h),h=n.mallocDouble(r))},sweepBipartite:function(t,e,r,n,i,u,f,g,m,v){for(var y=0,x=2*t,b=t-1,_=x-1,w=r;w&lt;n;++w){var T=u[w],k=x*w;h[y++]=i[k+b],h[y++]=-(T+1),h[y++]=i[k+_],h[y++]=T}for(w=f;w&lt;g;++w){T=v[w]+(1&lt;&lt;28);var M=x*w;h[y++]=m[M+b],h[y++]=-T,h[y++]=m[M+_],h[y++]=T}var A=y&gt;&gt;&gt;1;a(h,A);var S=0,E=0;for(w=0;w&lt;A;++w){var C=0|h[2*w+1];if(C&gt;=1&lt;&lt;28)p(l,c,E--,C=C-(1&lt;&lt;28)|0);else if(C&gt;=0)p(o,s,S--,C);else if(C&lt;=-(1&lt;&lt;28)){C=-C-(1&lt;&lt;28)|0;for(var L=0;L&lt;S;++L){if(void 0!==(I=e(o[L],C)))return I}d(l,c,E++,C)}else{C=-C-1|0;for(L=0;L&lt;E;++L){var I;if(void 0!==(I=e(C,l[L])))return I}d(o,s,S++,C)}}},sweepComplete:function(t,e,r,n,i,g,m,v,y,x){for(var b=0,_=2*t,w=t-1,T=_-1,k=r;k&lt;n;++k){var M=g[k]+1&lt;&lt;1,A=_*k;h[b++]=i[A+w],h[b++]=-M,h[b++]=i[A+T],h[b++]=M}for(k=m;k&lt;v;++k){M=x[k]+1&lt;&lt;1;var S=_*k;h[b++]=y[S+w],h[b++]=1|-M,h[b++]=y[S+T],h[b++]=1|M}var E=b&gt;&gt;&gt;1;a(h,E);var C=0,L=0,I=0;for(k=0;k&lt;E;++k){var P=0|h[2*k+1],z=1&amp;P;if(k&lt;E-1&amp;&amp;P&gt;&gt;1==h[2*k+3]&gt;&gt;1&amp;&amp;(z=2,k+=1),P&lt;0){for(var O=-(P&gt;&gt;1)-1,D=0;D&lt;I;++D){if(void 0!==(R=e(u[D],O)))return R}if(0!==z)for(D=0;D&lt;C;++D){if(void 0!==(R=e(o[D],O)))return R}if(1!==z)for(D=0;D&lt;L;++D){var R;if(void 0!==(R=e(l[D],O)))return R}0===z?d(o,s,C++,O):1===z?d(l,c,L++,O):2===z&amp;&amp;d(u,f,I++,O)}else{O=(P&gt;&gt;1)-1;0===z?p(o,s,C--,O):1===z?p(l,c,L--,O):2===z&amp;&amp;p(u,f,I--,O)}}},scanBipartite:function(t,e,r,n,i,l,c,u,f,g,m,v){var y=0,x=2*t,b=e,_=e+t,w=1,T=1;n?T=1&lt;&lt;28:w=1&lt;&lt;28;for(var k=i;k&lt;l;++k){var M=k+w,A=x*k;h[y++]=c[A+b],h[y++]=-M,h[y++]=c[A+_],h[y++]=M}for(k=f;k&lt;g;++k){M=k+T;var S=x*k;h[y++]=m[S+b],h[y++]=-M}var E=y&gt;&gt;&gt;1;a(h,E);var C=0;for(k=0;k&lt;E;++k){var L=0|h[2*k+1];if(L&lt;0){var I=!1;if((M=-L)&gt;=1&lt;&lt;28?(I=!n,M-=1&lt;&lt;28):(I=!!n,M-=1),I)d(o,s,C++,M);else{var P=v[M],z=x*M,O=m[z+e+1],D=m[z+e+1+t];t:for(var R=0;R&lt;C;++R){var F=o[R],B=x*F;if(!(D&lt;c[B+e+1]||c[B+e+1+t]&lt;O)){for(var N=e+2;N&lt;t;++N)if(m[z+N+t]&lt;c[B+N]||c[B+N+t]&lt;m[z+N])continue t;var j,U=u[F];if(void 0!==(j=n?r(P,U):r(U,P)))return j}}}}else p(o,s,C--,L-w)}},scanComplete:function(t,e,r,n,i,s,l,c,u,f,p){for(var d=0,g=2*t,m=e,v=e+t,y=n;y&lt;i;++y){var x=y+(1&lt;&lt;28),b=g*y;h[d++]=s[b+m],h[d++]=-x,h[d++]=s[b+v],h[d++]=x}for(y=c;y&lt;u;++y){x=y+1;var _=g*y;h[d++]=f[_+m],h[d++]=-x}var w=d&gt;&gt;&gt;1;a(h,w);var T=0;for(y=0;y&lt;w;++y){var k=0|h[2*y+1];if(k&lt;0){if((x=-k)&gt;=1&lt;&lt;28)o[T++]=x-(1&lt;&lt;28);else{var M=p[x-=1],A=g*x,S=f[A+e+1],E=f[A+e+1+t];t:for(var C=0;C&lt;T;++C){var L=o[C],I=l[L];if(I===M)break;var P=g*L;if(!(E&lt;s[P+e+1]||s[P+e+1+t]&lt;S)){for(var z=e+2;z&lt;t;++z)if(f[A+z+t]&lt;s[P+z]||s[P+z+t]&lt;f[A+z])continue t;var O=r(I,M);if(void 0!==O)return O}}}}else{for(x=k-(1&lt;&lt;28),C=T-1;C&gt;=0;--C)if(o[C]===x){for(z=C+1;z&lt;T;++z)o[z-1]=o[z];break}--T}}}};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;bit-twiddle&quot;),a=t(&quot;./sort&quot;),o=n.mallocInt32(1024),s=n.mallocInt32(1024),l=n.mallocInt32(1024),c=n.mallocInt32(1024),u=n.mallocInt32(1024),f=n.mallocInt32(1024),h=n.mallocDouble(8192);function p(t,e,r,n){var i=e[n],a=t[r-1];t[i]=a,e[a]=i}function d(t,e,r,n){t[r]=n,e[n]=r}},{&quot;./sort&quot;:106,&quot;bit-twiddle&quot;:97,&quot;typedarray-pool&quot;:595}],108:[function(t,e,r){},{}],109:[function(t,e,r){arguments[4][108][0].apply(r,arguments)},{dup:108}],110:[function(t,e,r){&quot;use strict&quot;;var n,i=&quot;object&quot;==typeof Reflect?Reflect:null,a=i&amp;&amp;&quot;function&quot;==typeof i.apply?i.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=i&amp;&amp;&quot;function&quot;==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(t,e){return new Promise((function(r,n){function i(){void 0!==a&amp;&amp;t.removeListener(&quot;error&quot;,a),r([].slice.call(arguments))}var a;&quot;error&quot;!==e&amp;&amp;(a=function(r){t.removeListener(e,i),n(r)},t.once(&quot;error&quot;,a)),t.once(e,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(t){if(&quot;function&quot;!=typeof t)throw new TypeError('The &quot;listener&quot; argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function f(t,e,r,n){var i,a,o,s;if(c(r),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&amp;&amp;(t.emit(&quot;newListener&quot;,e,r.listener?r.listener:r),a=t._events),o=a[e]),void 0===o)o=a[e]=r,++t._eventsCount;else if(&quot;function&quot;==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=u(t))&gt;0&amp;&amp;o.length&gt;i&amp;&amp;!o.warned){o.warned=!0;var l=new Error(&quot;Possible EventEmitter memory leak detected. &quot;+o.length+&quot; &quot;+String(e)+&quot; listeners added. Use emitter.setMaxListeners() to increase limit&quot;);l.name=&quot;MaxListenersExceededWarning&quot;,l.emitter=t,l.type=e,l.count=o.length,s=l,console&amp;&amp;console.warn&amp;&amp;console.warn(s)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function d(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:&quot;function&quot;==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r&lt;e.length;++r)e[r]=t[r].listener||t[r];return e}(i):m(i,i.length)}function g(t){var e=this._events;if(void 0!==e){var r=e[t];if(&quot;function&quot;==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(t,e){for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n];return r}Object.defineProperty(s,&quot;defaultMaxListeners&quot;,{enumerable:!0,get:function(){return l},set:function(t){if(&quot;number&quot;!=typeof t||t&lt;0||o(t))throw new RangeError('The value of &quot;defaultMaxListeners&quot; is out of range. It must be a non-negative number. Received '+t+&quot;.&quot;);l=t}}),s.init=function(){void 0!==this._events&amp;&amp;this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(t){if(&quot;number&quot;!=typeof t||t&lt;0||o(t))throw new RangeError('The value of &quot;n&quot; is out of range. It must be a non-negative number. Received '+t+&quot;.&quot;);return this._maxListeners=t,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(t){for(var e=[],r=1;r&lt;arguments.length;r++)e.push(arguments[r]);var n=&quot;error&quot;===t,i=this._events;if(void 0!==i)n=n&amp;&amp;void 0===i.error;else if(!n)return!1;if(n){var o;if(e.length&gt;0&amp;&amp;(o=e[0]),o instanceof Error)throw o;var s=new Error(&quot;Unhandled error.&quot;+(o?&quot; (&quot;+o.message+&quot;)&quot;:&quot;&quot;));throw s.context=o,s}var l=i[t];if(void 0===l)return!1;if(&quot;function&quot;==typeof l)a(l,this,e);else{var c=l.length,u=m(l,c);for(r=0;r&lt;c;++r)a(u[r],this,e)}return!0},s.prototype.addListener=function(t,e){return f(this,t,e,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(t,e){return f(this,t,e,!0)},s.prototype.once=function(t,e){return c(e),this.on(t,p(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,p(this,t,e)),this},s.prototype.removeListener=function(t,e){var r,n,i,a,o;if(c(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,t,r.listener||e));else if(&quot;function&quot;!=typeof r){for(i=-1,a=r.length-1;a&gt;=0;a--)if(r[a]===e||r[a].listener===e){o=r[a].listener,i=a;break}if(i&lt;0)return this;0===i?r.shift():function(t,e){for(;e+1&lt;t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&amp;&amp;(n[t]=r[0]),void 0!==n.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,t,o||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&amp;&amp;(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,a=Object.keys(r);for(n=0;n&lt;a.length;++n)&quot;removeListener&quot;!==(i=a[n])&amp;&amp;this.removeAllListeners(i);return this.removeAllListeners(&quot;removeListener&quot;),this._events=Object.create(null),this._eventsCount=0,this}if(&quot;function&quot;==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n&gt;=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return&quot;function&quot;==typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount&gt;0?n(this._events):[]}},{}],111:[function(t,e,r){(function(e){(function(){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh &lt;https://feross.org&gt;
 * @license  MIT
 */
&quot;use strict&quot;;var e=t(&quot;base64-js&quot;),n=t(&quot;ieee754&quot;);r.Buffer=a,r.SlowBuffer=function(t){+t!=t&amp;&amp;(t=0);return a.alloc(+t)},r.INSPECT_MAX_BYTES=50;function i(t){if(t&gt;2147483647)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;');var e=new Uint8Array(t);return e.__proto__=a.prototype,e}function a(t,e,r){if(&quot;number&quot;==typeof t){if(&quot;string&quot;==typeof e)throw new TypeError('The &quot;string&quot; argument must be of type string. Received type number');return l(t)}return o(t,e,r)}function o(t,e,r){if(&quot;string&quot;==typeof t)return function(t,e){&quot;string&quot;==typeof e&amp;&amp;&quot;&quot;!==e||(e=&quot;utf8&quot;);if(!a.isEncoding(e))throw new TypeError(&quot;Unknown encoding: &quot;+e);var r=0|f(t,e),n=i(r),o=n.write(t,e);o!==r&amp;&amp;(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t);if(B(t,ArrayBuffer)||t&amp;&amp;B(t.buffer,ArrayBuffer))return function(t,e,r){if(e&lt;0||t.byteLength&lt;e)throw new RangeError('&quot;offset&quot; is outside of buffer bounds');if(t.byteLength&lt;e+(r||0))throw new RangeError('&quot;length&quot; is outside of buffer bounds');var n;n=void 0===e&amp;&amp;void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return n.__proto__=a.prototype,n}(t,e,r);if(&quot;number&quot;==typeof t)throw new TypeError('The &quot;value&quot; argument must not be of type number. Received type number');var n=t.valueOf&amp;&amp;t.valueOf();if(null!=n&amp;&amp;n!==t)return a.from(n,e,r);var o=function(t){if(a.isBuffer(t)){var e=0|u(t.length),r=i(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return&quot;number&quot;!=typeof t.length||N(t.length)?i(0):c(t);if(&quot;Buffer&quot;===t.type&amp;&amp;Array.isArray(t.data))return c(t.data)}(t);if(o)return o;if(&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.toPrimitive&amp;&amp;&quot;function&quot;==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive](&quot;string&quot;),e,r);throw new TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t)}function s(t){if(&quot;number&quot;!=typeof t)throw new TypeError('&quot;size&quot; argument must be of type number');if(t&lt;0)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;')}function l(t){return s(t),i(t&lt;0?0:0|u(t))}function c(t){for(var e=t.length&lt;0?0:0|u(t.length),r=i(e),n=0;n&lt;e;n+=1)r[n]=255&amp;t[n];return r}function u(t){if(t&gt;=2147483647)throw new RangeError(&quot;Attempt to allocate Buffer larger than maximum size: 0x&quot;+2147483647..toString(16)+&quot; bytes&quot;);return 0|t}function f(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||B(t,ArrayBuffer))return t.byteLength;if(&quot;string&quot;!=typeof t)throw new TypeError('The &quot;string&quot; argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length&gt;2&amp;&amp;!0===arguments[2];if(!n&amp;&amp;0===r)return 0;for(var i=!1;;)switch(e){case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:return r;case&quot;utf8&quot;:case&quot;utf-8&quot;:return D(t).length;case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return 2*r;case&quot;hex&quot;:return r&gt;&gt;&gt;1;case&quot;base64&quot;:return R(t).length;default:if(i)return n?-1:D(t).length;e=(&quot;&quot;+e).toLowerCase(),i=!0}}function h(t,e,r){var n=!1;if((void 0===e||e&lt;0)&amp;&amp;(e=0),e&gt;this.length)return&quot;&quot;;if((void 0===r||r&gt;this.length)&amp;&amp;(r=this.length),r&lt;=0)return&quot;&quot;;if((r&gt;&gt;&gt;=0)&lt;=(e&gt;&gt;&gt;=0))return&quot;&quot;;for(t||(t=&quot;utf8&quot;);;)switch(t){case&quot;hex&quot;:return A(this,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return T(this,e,r);case&quot;ascii&quot;:return k(this,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return M(this,e,r);case&quot;base64&quot;:return w(this,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return S(this,e,r);default:if(n)throw new TypeError(&quot;Unknown encoding: &quot;+t);t=(t+&quot;&quot;).toLowerCase(),n=!0}}function p(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,i){if(0===t.length)return-1;if(&quot;string&quot;==typeof r?(n=r,r=0):r&gt;2147483647?r=2147483647:r&lt;-2147483648&amp;&amp;(r=-2147483648),N(r=+r)&amp;&amp;(r=i?0:t.length-1),r&lt;0&amp;&amp;(r=t.length+r),r&gt;=t.length){if(i)return-1;r=t.length-1}else if(r&lt;0){if(!i)return-1;r=0}if(&quot;string&quot;==typeof e&amp;&amp;(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:g(t,e,r,n,i);if(&quot;number&quot;==typeof e)return e&amp;=255,&quot;function&quot;==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):g(t,[e],r,n,i);throw new TypeError(&quot;val must be string, number or Buffer&quot;)}function g(t,e,r,n,i){var a,o=1,s=t.length,l=e.length;if(void 0!==n&amp;&amp;(&quot;ucs2&quot;===(n=String(n).toLowerCase())||&quot;ucs-2&quot;===n||&quot;utf16le&quot;===n||&quot;utf-16le&quot;===n)){if(t.length&lt;2||e.length&lt;2)return-1;o=2,s/=2,l/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var u=-1;for(a=r;a&lt;s;a++)if(c(t,a)===c(e,-1===u?0:a-u)){if(-1===u&amp;&amp;(u=a),a-u+1===l)return u*o}else-1!==u&amp;&amp;(a-=a-u),u=-1}else for(r+l&gt;s&amp;&amp;(r=s-l),a=r;a&gt;=0;a--){for(var f=!0,h=0;h&lt;l;h++)if(c(t,a+h)!==c(e,h)){f=!1;break}if(f)return a}return-1}function m(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))&gt;i&amp;&amp;(n=i):n=i;var a=e.length;n&gt;a/2&amp;&amp;(n=a/2);for(var o=0;o&lt;n;++o){var s=parseInt(e.substr(2*o,2),16);if(N(s))return o;t[r+o]=s}return o}function v(t,e,r,n){return F(D(e,t.length-r),t,r,n)}function y(t,e,r,n){return F(function(t){for(var e=[],r=0;r&lt;t.length;++r)e.push(255&amp;t.charCodeAt(r));return e}(e),t,r,n)}function x(t,e,r,n){return y(t,e,r,n)}function b(t,e,r,n){return F(R(e),t,r,n)}function _(t,e,r,n){return F(function(t,e){for(var r,n,i,a=[],o=0;o&lt;t.length&amp;&amp;!((e-=2)&lt;0);++o)r=t.charCodeAt(o),n=r&gt;&gt;8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function w(t,r,n){return 0===r&amp;&amp;n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function T(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i&lt;r;){var a,o,s,l,c=t[i],u=null,f=c&gt;239?4:c&gt;223?3:c&gt;191?2:1;if(i+f&lt;=r)switch(f){case 1:c&lt;128&amp;&amp;(u=c);break;case 2:128==(192&amp;(a=t[i+1]))&amp;&amp;(l=(31&amp;c)&lt;&lt;6|63&amp;a)&gt;127&amp;&amp;(u=l);break;case 3:a=t[i+1],o=t[i+2],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;(l=(15&amp;c)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;o)&gt;2047&amp;&amp;(l&lt;55296||l&gt;57343)&amp;&amp;(u=l);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;128==(192&amp;s)&amp;&amp;(l=(15&amp;c)&lt;&lt;18|(63&amp;a)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;s)&gt;65535&amp;&amp;l&lt;1114112&amp;&amp;(u=l)}null===u?(u=65533,f=1):u&gt;65535&amp;&amp;(u-=65536,n.push(u&gt;&gt;&gt;10&amp;1023|55296),u=56320|1023&amp;u),n.push(u),i+=f}return function(t){var e=t.length;if(e&lt;=4096)return String.fromCharCode.apply(String,t);var r=&quot;&quot;,n=0;for(;n&lt;e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}r.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||&quot;undefined&quot;==typeof console||&quot;function&quot;!=typeof console.error||console.error(&quot;This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.&quot;),Object.defineProperty(a.prototype,&quot;parent&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,&quot;offset&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.species&amp;&amp;a[Symbol.species]===a&amp;&amp;Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(t,e,r){return o(t,e,r)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(t,e,r){return function(t,e,r){return s(t),t&lt;=0?i(t):void 0!==e?&quot;string&quot;==typeof r?i(t).fill(e,r):i(t).fill(e):i(t)}(t,e,r)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&amp;&amp;!0===t._isBuffer&amp;&amp;t!==a.prototype},a.compare=function(t,e){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),B(e,Uint8Array)&amp;&amp;(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError('The &quot;buf1&quot;, &quot;buf2&quot; arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i&lt;o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r&lt;n?-1:n&lt;r?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case&quot;hex&quot;:case&quot;utf8&quot;:case&quot;utf-8&quot;:case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:case&quot;base64&quot;:case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return!0;default:return!1}},a.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);var r;if(void 0===e)for(e=0,r=0;r&lt;t.length;++r)e+=t[r].length;var n=a.allocUnsafe(e),i=0;for(r=0;r&lt;t.length;++r){var o=t[r];if(B(o,Uint8Array)&amp;&amp;(o=a.from(o)),!a.isBuffer(o))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(&quot;Buffer size must be a multiple of 16-bits&quot;);for(var e=0;e&lt;t;e+=2)p(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(&quot;Buffer size must be a multiple of 32-bits&quot;);for(var e=0;e&lt;t;e+=4)p(this,e,e+3),p(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(&quot;Buffer size must be a multiple of 64-bits&quot;);for(var e=0;e&lt;t;e+=8)p(this,e,e+7),p(this,e+1,e+6),p(this,e+2,e+5),p(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?&quot;&quot;:0===arguments.length?T(this,0,t):h.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError(&quot;Argument must be a Buffer&quot;);return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t=&quot;&quot;,e=r.INSPECT_MAX_BYTES;return t=this.toString(&quot;hex&quot;,0,e).replace(/(.{2})/g,&quot;$1 &quot;).trim(),this.length&gt;e&amp;&amp;(t+=&quot; ... &quot;),&quot;&lt;Buffer &quot;+t+&quot;&gt;&quot;},a.prototype.compare=function(t,e,r,n,i){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The &quot;target&quot; argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&amp;&amp;(e=0),void 0===r&amp;&amp;(r=t?t.length:0),void 0===n&amp;&amp;(n=0),void 0===i&amp;&amp;(i=this.length),e&lt;0||r&gt;t.length||n&lt;0||i&gt;this.length)throw new RangeError(&quot;out of range index&quot;);if(n&gt;=i&amp;&amp;e&gt;=r)return 0;if(n&gt;=i)return-1;if(e&gt;=r)return 1;if(this===t)return 0;for(var o=(i&gt;&gt;&gt;=0)-(n&gt;&gt;&gt;=0),s=(r&gt;&gt;&gt;=0)-(e&gt;&gt;&gt;=0),l=Math.min(o,s),c=this.slice(n,i),u=t.slice(e,r),f=0;f&lt;l;++f)if(c[f]!==u[f]){o=c[f],s=u[f];break}return o&lt;s?-1:s&lt;o?1:0},a.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return d(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return d(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){if(void 0===e)n=&quot;utf8&quot;,r=this.length,e=0;else if(void 0===r&amp;&amp;&quot;string&quot;==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error(&quot;Buffer.write(string, encoding, offset[, length]) is no longer supported&quot;);e&gt;&gt;&gt;=0,isFinite(r)?(r&gt;&gt;&gt;=0,void 0===n&amp;&amp;(n=&quot;utf8&quot;)):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r&gt;i)&amp;&amp;(r=i),t.length&gt;0&amp;&amp;(r&lt;0||e&lt;0)||e&gt;this.length)throw new RangeError(&quot;Attempt to write outside buffer bounds&quot;);n||(n=&quot;utf8&quot;);for(var a=!1;;)switch(n){case&quot;hex&quot;:return m(this,t,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return v(this,t,e,r);case&quot;ascii&quot;:return y(this,t,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return x(this,t,e,r);case&quot;base64&quot;:return b(this,t,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return _(this,t,e,r);default:if(a)throw new TypeError(&quot;Unknown encoding: &quot;+n);n=(&quot;&quot;+n).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:&quot;Buffer&quot;,data:Array.prototype.slice.call(this._arr||this,0)}};function k(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(127&amp;t[i]);return n}function M(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(t[i]);return n}function A(t,e,r){var n=t.length;(!e||e&lt;0)&amp;&amp;(e=0),(!r||r&lt;0||r&gt;n)&amp;&amp;(r=n);for(var i=&quot;&quot;,a=e;a&lt;r;++a)i+=O(t[a]);return i}function S(t,e,r){for(var n=t.slice(e,r),i=&quot;&quot;,a=0;a&lt;n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function E(t,e,r){if(t%1!=0||t&lt;0)throw new RangeError(&quot;offset is not uint&quot;);if(t+e&gt;r)throw new RangeError(&quot;Trying to access beyond buffer length&quot;)}function C(t,e,r,n,i,o){if(!a.isBuffer(t))throw new TypeError('&quot;buffer&quot; argument must be a Buffer instance');if(e&gt;i||e&lt;o)throw new RangeError('&quot;value&quot; argument is out of bounds');if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;)}function L(t,e,r,n,i,a){if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;);if(r&lt;0)throw new RangeError(&quot;Index out of range&quot;)}function I(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||L(t,0,r,4),n.write(t,e,r,i,23,4),r+4}function P(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||L(t,0,r,8),n.write(t,e,r,i,52,8),r+8}a.prototype.slice=function(t,e){var r=this.length;(t=~~t)&lt;0?(t+=r)&lt;0&amp;&amp;(t=0):t&gt;r&amp;&amp;(t=r),(e=void 0===e?r:~~e)&lt;0?(e+=r)&lt;0&amp;&amp;(e=0):e&gt;r&amp;&amp;(e=r),e&lt;t&amp;&amp;(e=t);var n=this.subarray(t,e);return n.__proto__=a.prototype,n},a.prototype.readUIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n},a.prototype.readUIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t+--e],i=1;e&gt;0&amp;&amp;(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]|this[t+1]&lt;&lt;8},a.prototype.readUInt16BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]&lt;&lt;8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),(this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),16777216*this[t]+(this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n&gt;=(i*=128)&amp;&amp;(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n&gt;0&amp;&amp;(i*=256);)a+=this[t+--n]*i;return a&gt;=(i*=128)&amp;&amp;(a-=Math.pow(2,8*e)),a},a.prototype.readInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),128&amp;this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t]|this[t+1]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t+1]|this[t]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16|this[t+3]&lt;&lt;24},a.prototype.readInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]&lt;&lt;24|this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||C(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(i*=256);)this[e+a]=t/i&amp;255;return e+r},a.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||C(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&amp;t;--i&gt;=0&amp;&amp;(a*=256);)this[e+i]=t/a&amp;255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,1,255,0),this[e]=255&amp;t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,65535,0),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,65535,0),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,4294967295,0),this[e+3]=t&gt;&gt;&gt;24,this[e+2]=t&gt;&gt;&gt;16,this[e+1]=t&gt;&gt;&gt;8,this[e]=255&amp;t,e+4},a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,4294967295,0),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a-1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&amp;t;--a&gt;=0&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a+1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,1,127,-128),t&lt;0&amp;&amp;(t=255+t+1),this[e]=255&amp;t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,32767,-32768),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,32767,-32768),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,2147483647,-2147483648),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,this[e+2]=t&gt;&gt;&gt;16,this[e+3]=t&gt;&gt;&gt;24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,2147483647,-2147483648),t&lt;0&amp;&amp;(t=4294967295+t+1),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeFloatLE=function(t,e,r){return I(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return I(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return P(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return P(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw new TypeError(&quot;argument should be a Buffer&quot;);if(r||(r=0),n||0===n||(n=this.length),e&gt;=t.length&amp;&amp;(e=t.length),e||(e=0),n&gt;0&amp;&amp;n&lt;r&amp;&amp;(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e&lt;0)throw new RangeError(&quot;targetStart out of bounds&quot;);if(r&lt;0||r&gt;=this.length)throw new RangeError(&quot;Index out of range&quot;);if(n&lt;0)throw new RangeError(&quot;sourceEnd out of bounds&quot;);n&gt;this.length&amp;&amp;(n=this.length),t.length-e&lt;n-r&amp;&amp;(n=t.length-e+r);var i=n-r;if(this===t&amp;&amp;&quot;function&quot;==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&amp;&amp;r&lt;e&amp;&amp;e&lt;n)for(var o=i-1;o&gt;=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},a.prototype.fill=function(t,e,r,n){if(&quot;string&quot;==typeof t){if(&quot;string&quot;==typeof e?(n=e,e=0,r=this.length):&quot;string&quot;==typeof r&amp;&amp;(n=r,r=this.length),void 0!==n&amp;&amp;&quot;string&quot;!=typeof n)throw new TypeError(&quot;encoding must be a string&quot;);if(&quot;string&quot;==typeof n&amp;&amp;!a.isEncoding(n))throw new TypeError(&quot;Unknown encoding: &quot;+n);if(1===t.length){var i=t.charCodeAt(0);(&quot;utf8&quot;===n&amp;&amp;i&lt;128||&quot;latin1&quot;===n)&amp;&amp;(t=i)}}else&quot;number&quot;==typeof t&amp;&amp;(t&amp;=255);if(e&lt;0||this.length&lt;e||this.length&lt;r)throw new RangeError(&quot;Out of range index&quot;);if(r&lt;=e)return this;var o;if(e&gt;&gt;&gt;=0,r=void 0===r?this.length:r&gt;&gt;&gt;0,t||(t=0),&quot;number&quot;==typeof t)for(o=e;o&lt;r;++o)this[o]=t;else{var s=a.isBuffer(t)?t:a.from(t,n),l=s.length;if(0===l)throw new TypeError('The value &quot;'+t+'&quot; is invalid for argument &quot;value&quot;');for(o=0;o&lt;r-e;++o)this[o+e]=s[o%l]}return this};var z=/[^+/0-9A-Za-z-_]/g;function O(t){return t&lt;16?&quot;0&quot;+t.toString(16):t.toString(16)}function D(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o&lt;n;++o){if((r=t.charCodeAt(o))&gt;55295&amp;&amp;r&lt;57344){if(!i){if(r&gt;56319){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}if(o+1===n){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}i=r;continue}if(r&lt;56320){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189),i=r;continue}r=65536+(i-55296&lt;&lt;10|r-56320)}else i&amp;&amp;(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);if(i=null,r&lt;128){if((e-=1)&lt;0)break;a.push(r)}else if(r&lt;2048){if((e-=2)&lt;0)break;a.push(r&gt;&gt;6|192,63&amp;r|128)}else if(r&lt;65536){if((e-=3)&lt;0)break;a.push(r&gt;&gt;12|224,r&gt;&gt;6&amp;63|128,63&amp;r|128)}else{if(!(r&lt;1114112))throw new Error(&quot;Invalid code point&quot;);if((e-=4)&lt;0)break;a.push(r&gt;&gt;18|240,r&gt;&gt;12&amp;63|128,r&gt;&gt;6&amp;63|128,63&amp;r|128)}}return a}function R(t){return e.toByteArray(function(t){if((t=(t=t.split(&quot;=&quot;)[0]).trim().replace(z,&quot;&quot;)).length&lt;2)return&quot;&quot;;for(;t.length%4!=0;)t+=&quot;=&quot;;return t}(t))}function F(t,e,r,n){for(var i=0;i&lt;n&amp;&amp;!(i+r&gt;=e.length||i&gt;=t.length);++i)e[i+r]=t[i];return i}function B(t,e){return t instanceof e||null!=t&amp;&amp;null!=t.constructor&amp;&amp;null!=t.constructor.name&amp;&amp;t.constructor.name===e.name}function N(t){return t!=t}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;base64-js&quot;:79,buffer:111,ieee754:442}],112:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/monotone&quot;),i=t(&quot;./lib/triangulation&quot;),a=t(&quot;./lib/delaunay&quot;),o=t(&quot;./lib/filter&quot;);function s(t){return[Math.min(t[0],t[1]),Math.max(t[0],t[1])]}function l(t,e){return t[0]-e[0]||t[1]-e[1]}function c(t,e,r){return e in t?t[e]:r}e.exports=function(t,e,r){Array.isArray(e)?(r=r||{},e=e||[]):(r=e||{},e=[]);var u=!!c(r,&quot;delaunay&quot;,!0),f=!!c(r,&quot;interior&quot;,!0),h=!!c(r,&quot;exterior&quot;,!0),p=!!c(r,&quot;infinity&quot;,!1);if(!f&amp;&amp;!h||0===t.length)return[];var d=n(t,e);if(u||f!==h||p){for(var g=i(t.length,function(t){return t.map(s).sort(l)}(e)),m=0;m&lt;d.length;++m){var v=d[m];g.addTriangle(v[0],v[1],v[2])}return u&amp;&amp;a(t,g),h?f?p?o(g,0,p):g.cells():o(g,1,p):o(g,-1)}return d}},{&quot;./lib/delaunay&quot;:113,&quot;./lib/filter&quot;:114,&quot;./lib/monotone&quot;:115,&quot;./lib/triangulation&quot;:116}],113:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-in-sphere&quot;)[4];t(&quot;binary-search-bounds&quot;);function i(t,e,r,i,a,o){var s=e.opposite(i,a);if(!(s&lt;0)){if(a&lt;i){var l=i;i=a,a=l,l=o,o=s,s=l}e.isConstraint(i,a)||n(t[i],t[a],t[o],t[s])&lt;0&amp;&amp;r.push(i,a)}}e.exports=function(t,e){for(var r=[],a=t.length,o=e.stars,s=0;s&lt;a;++s)for(var l=o[s],c=1;c&lt;l.length;c+=2){if(!((p=l[c])&lt;s)&amp;&amp;!e.isConstraint(s,p)){for(var u=l[c-1],f=-1,h=1;h&lt;l.length;h+=2)if(l[h-1]===p){f=l[h];break}f&lt;0||n(t[s],t[p],t[u],t[f])&lt;0&amp;&amp;r.push(s,p)}}for(;r.length&gt;0;){for(var p=r.pop(),d=(s=r.pop(),u=-1,f=-1,l=o[s],1);d&lt;l.length;d+=2){var g=l[d-1],m=l[d];g===p?f=m:m===p&amp;&amp;(u=g)}u&lt;0||f&lt;0||(n(t[s],t[p],t[u],t[f])&gt;=0||(e.flip(s,p),i(t,e,r,u,s,f),i(t,e,r,s,f,u),i(t,e,r,f,p,u),i(t,e,r,p,u,f)))}}},{&quot;binary-search-bounds&quot;:96,&quot;robust-in-sphere&quot;:546}],114:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;binary-search-bounds&quot;);function a(t,e,r,n,i,a,o){this.cells=t,this.neighbor=e,this.flags=n,this.constraint=r,this.active=i,this.next=a,this.boundary=o}function o(t,e){return t[0]-e[0]||t[1]-e[1]||t[2]-e[2]}e.exports=function(t,e,r){var n=function(t,e){for(var r=t.cells(),n=r.length,i=0;i&lt;n;++i){var s=(v=r[i])[0],l=v[1],c=v[2];l&lt;c?l&lt;s&amp;&amp;(v[0]=l,v[1]=c,v[2]=s):c&lt;s&amp;&amp;(v[0]=c,v[1]=s,v[2]=l)}r.sort(o);var u=new Array(n);for(i=0;i&lt;u.length;++i)u[i]=0;var f=[],h=[],p=new Array(3*n),d=new Array(3*n),g=null;e&amp;&amp;(g=[]);var m=new a(r,p,d,u,f,h,g);for(i=0;i&lt;n;++i)for(var v=r[i],y=0;y&lt;3;++y){s=v[y],l=v[(y+1)%3];var x=p[3*i+y]=m.locate(l,s,t.opposite(l,s)),b=d[3*i+y]=t.isConstraint(s,l);x&lt;0&amp;&amp;(b?h.push(i):(f.push(i),u[i]=1),e&amp;&amp;g.push([l,s,-1]))}return m}(t,r);if(0===e)return r?n.cells.concat(n.boundary):n.cells;var i=1,s=n.active,l=n.next,c=n.flags,u=n.cells,f=n.constraint,h=n.neighbor;for(;s.length&gt;0||l.length&gt;0;){for(;s.length&gt;0;){var p=s.pop();if(c[p]!==-i){c[p]=i;u[p];for(var d=0;d&lt;3;++d){var g=h[3*p+d];g&gt;=0&amp;&amp;0===c[g]&amp;&amp;(f[3*p+d]?l.push(g):(s.push(g),c[g]=i))}}}var m=l;l=s,s=m,l.length=0,i=-i}var v=function(t,e,r){for(var n=0,i=0;i&lt;t.length;++i)e[i]===r&amp;&amp;(t[n++]=t[i]);return t.length=n,t}(u,c,e);if(r)return v.concat(n.boundary);return v},a.prototype.locate=(n=[0,0,0],function(t,e,r){var a=t,s=e,l=r;return e&lt;r?e&lt;t&amp;&amp;(a=e,s=r,l=t):r&lt;t&amp;&amp;(a=r,s=t,l=e),a&lt;0?-1:(n[0]=a,n[1]=s,n[2]=l,i.eq(this.cells,n,o))})},{&quot;binary-search-bounds&quot;:96}],115:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;robust-orientation&quot;)[3];function a(t,e,r,n,i){this.a=t,this.b=e,this.idx=r,this.lowerIds=n,this.upperIds=i}function o(t,e,r,n){this.a=t,this.b=e,this.type=r,this.idx=n}function s(t,e){var r=t.a[0]-e.a[0]||t.a[1]-e.a[1]||t.type-e.type;return r||(0!==t.type&amp;&amp;(r=i(t.a,t.b,e.b))?r:t.idx-e.idx)}function l(t,e){return i(t.a,t.b,e)}function c(t,e,r,a,o){for(var s=n.lt(e,a,l),c=n.gt(e,a,l),u=s;u&lt;c;++u){for(var f=e[u],h=f.lowerIds,p=h.length;p&gt;1&amp;&amp;i(r[h[p-2]],r[h[p-1]],a)&gt;0;)t.push([h[p-1],h[p-2],o]),p-=1;h.length=p,h.push(o);var d=f.upperIds;for(p=d.length;p&gt;1&amp;&amp;i(r[d[p-2]],r[d[p-1]],a)&lt;0;)t.push([d[p-2],d[p-1],o]),p-=1;d.length=p,d.push(o)}}function u(t,e){var r;return(r=t.a[0]&lt;e.a[0]?i(t.a,t.b,e.a):i(e.b,e.a,t.a))?r:(r=e.b[0]&lt;t.b[0]?i(t.a,t.b,e.b):i(e.b,e.a,t.b))||t.idx-e.idx}function f(t,e,r){var i=n.le(t,r,u),o=t[i],s=o.upperIds,l=s[s.length-1];o.upperIds=[l],t.splice(i+1,0,new a(r.a,r.b,r.idx,[l],s))}function h(t,e,r){var i=r.a;r.a=r.b,r.b=i;var a=n.eq(t,r,u),o=t[a];t[a-1].upperIds=o.upperIds,t.splice(a,1)}e.exports=function(t,e){for(var r=t.length,n=e.length,i=[],l=0;l&lt;r;++l)i.push(new o(t[l],null,0,l));for(l=0;l&lt;n;++l){var u=e[l],p=t[u[0]],d=t[u[1]];p[0]&lt;d[0]?i.push(new o(p,d,2,l),new o(d,p,1,l)):p[0]&gt;d[0]&amp;&amp;i.push(new o(d,p,2,l),new o(p,d,1,l))}i.sort(s);for(var g=i[0].a[0]-(1+Math.abs(i[0].a[0]))*Math.pow(2,-52),m=[new a([g,1],[g,0],-1,[],[],[],[])],v=[],y=(l=0,i.length);l&lt;y;++l){var x=i[l],b=x.type;0===b?c(v,m,t,x.a,x.idx):2===b?f(m,t,x):h(m,t,x)}return v}},{&quot;binary-search-bounds&quot;:96,&quot;robust-orientation&quot;:548}],116:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;);function i(t,e){this.stars=t,this.edges=e}e.exports=function(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=[];return new i(r,e)};var a=i.prototype;function o(t,e,r){for(var n=1,i=t.length;n&lt;i;n+=2)if(t[n-1]===e&amp;&amp;t[n]===r)return t[n-1]=t[i-2],t[n]=t[i-1],void(t.length=i-2)}a.isConstraint=function(){var t=[0,0];function e(t,e){return t[0]-e[0]||t[1]-e[1]}return function(r,i){return t[0]=Math.min(r,i),t[1]=Math.max(r,i),n.eq(this.edges,t,e)&gt;=0}}(),a.removeTriangle=function(t,e,r){var n=this.stars;o(n[t],e,r),o(n[e],r,t),o(n[r],t,e)},a.addTriangle=function(t,e,r){var n=this.stars;n[t].push(e,r),n[e].push(r,t),n[r].push(t,e)},a.opposite=function(t,e){for(var r=this.stars[e],n=1,i=r.length;n&lt;i;n+=2)if(r[n]===t)return r[n-1];return-1},a.flip=function(t,e){var r=this.opposite(t,e),n=this.opposite(e,t);this.removeTriangle(t,e,r),this.removeTriangle(e,t,n),this.addTriangle(t,n,r),this.addTriangle(e,r,n)},a.edges=function(){for(var t=this.stars,e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;a+=2)e.push([i[a],i[a+1]]);return e},a.cells=function(){for(var t=this.stars,e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;a+=2){var s=i[a],l=i[a+1];r&lt;Math.min(s,l)&amp;&amp;e.push([r,s,l])}return e}},{&quot;binary-search-bounds&quot;:96}],117:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=1,r=1;r&lt;t.length;++r)for(var n=0;n&lt;r;++n)if(t[r]&lt;t[n])e=-e;else if(t[n]===t[r])return 0;return e}},{}],118:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;dup&quot;),i=t(&quot;robust-linear-solve&quot;);function a(t,e){for(var r=0,n=t.length,i=0;i&lt;n;++i)r+=t[i]*e[i];return r}function o(t){var e=t.length;if(0===e)return[];t[0].length;var r=n([t.length+1,t.length+1],1),o=n([t.length+1],1);r[e][e]=0;for(var s=0;s&lt;e;++s){for(var l=0;l&lt;=s;++l)r[l][s]=r[s][l]=2*a(t[s],t[l]);o[s]=a(t[s],t[s])}var c=i(r,o),u=0,f=c[e+1];for(s=0;s&lt;f.length;++s)u+=f[s];var h=new Array(e);for(s=0;s&lt;e;++s){f=c[s];var p=0;for(l=0;l&lt;f.length;++l)p+=f[l];h[s]=p/u}return h}function s(t){if(0===t.length)return[];for(var e=t[0].length,r=n([e]),i=o(t),a=0;a&lt;t.length;++a)for(var s=0;s&lt;e;++s)r[s]+=t[a][s]*i[a];return r}s.barycenetric=o,e.exports=s},{dup:176,&quot;robust-linear-solve&quot;:547}],119:[function(t,e,r){e.exports=function(t){for(var e=n(t),r=0,i=0;i&lt;t.length;++i)for(var a=t[i],o=0;o&lt;e.length;++o)r+=Math.pow(a[o]-e[o],2);return Math.sqrt(r/t.length)};var n=t(&quot;circumcenter&quot;)},{circumcenter:118}],120:[function(t,e,r){e.exports=function(t,e,r){return e&lt;r?t&lt;e?e:t&gt;r?r:t:t&lt;r?r:t&gt;e?e:t}},{}],121:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n;if(r){n=e;for(var i=new Array(e.length),a=0;a&lt;e.length;++a){var o=e[a];i[a]=[o[0],o[1],r[a]]}e=i}var s=function(t,e,r){var n=d(t,[],p(t));return v(e,n,r),!!n}(t,e,!!r);for(;y(t,e,!!r);)s=!0;if(r&amp;&amp;s){n.length=0,r.length=0;for(a=0;a&lt;e.length;++a){o=e[a];n.push([o[0],o[1]]),r.push(o[2])}}return s};var n=t(&quot;union-find&quot;),i=t(&quot;box-intersect&quot;),a=t(&quot;robust-segment-intersect&quot;),o=t(&quot;big-rat&quot;),s=t(&quot;big-rat/cmp&quot;),l=t(&quot;big-rat/to-float&quot;),c=t(&quot;rat-vec&quot;),u=t(&quot;nextafter&quot;),f=t(&quot;./lib/rat-seg-intersect&quot;);function h(t){var e=l(t);return[u(e,-1/0),u(e,1/0)]}function p(t){for(var e=new Array(t.length),r=0;r&lt;t.length;++r){var n=t[r];e[r]=[u(n[0],-1/0),u(n[1],-1/0),u(n[0],1/0),u(n[1],1/0)]}return e}function d(t,e,r){for(var a=e.length,o=new n(a),s=[],l=0;l&lt;e.length;++l){var c=e[l],f=h(c[0]),p=h(c[1]);s.push([u(f[0],-1/0),u(p[0],-1/0),u(f[1],1/0),u(p[1],1/0)])}i(s,(function(t,e){o.link(t,e)}));var d=!0,g=new Array(a);for(l=0;l&lt;a;++l){(v=o.find(l))!==l&amp;&amp;(d=!1,t[v]=[Math.min(t[l][0],t[v][0]),Math.min(t[l][1],t[v][1])])}if(d)return null;var m=0;for(l=0;l&lt;a;++l){var v;(v=o.find(l))===l?(g[l]=m,t[m++]=t[l]):g[l]=-1}t.length=m;for(l=0;l&lt;a;++l)g[l]&lt;0&amp;&amp;(g[l]=g[o.find(l)]);return g}function g(t,e){return t[0]-e[0]||t[1]-e[1]}function m(t,e){var r=t[0]-e[0]||t[1]-e[1];return r||(t[2]&lt;e[2]?-1:t[2]&gt;e[2]?1:0)}function v(t,e,r){if(0!==t.length){if(e)for(var n=0;n&lt;t.length;++n){var i=e[(o=t[n])[0]],a=e[o[1]];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}else for(n=0;n&lt;t.length;++n){var o;i=(o=t[n])[0],a=o[1];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}r?t.sort(m):t.sort(g);var s=1;for(n=1;n&lt;t.length;++n){var l=t[n-1],c=t[n];(c[0]!==l[0]||c[1]!==l[1]||r&amp;&amp;c[2]!==l[2])&amp;&amp;(t[s++]=c)}t.length=s}}function y(t,e,r){var n=function(t,e){for(var r=new Array(e.length),n=0;n&lt;e.length;++n){var i=e[n],a=t[i[0]],o=t[i[1]];r[n]=[u(Math.min(a[0],o[0]),-1/0),u(Math.min(a[1],o[1]),-1/0),u(Math.max(a[0],o[0]),1/0),u(Math.max(a[1],o[1]),1/0)]}return r}(t,e),h=function(t,e,r){var n=[];return i(r,(function(r,i){var o=e[r],s=e[i];if(o[0]!==s[0]&amp;&amp;o[0]!==s[1]&amp;&amp;o[1]!==s[0]&amp;&amp;o[1]!==s[1]){var l=t[o[0]],c=t[o[1]],u=t[s[0]],f=t[s[1]];a(l,c,u,f)&amp;&amp;n.push([r,i])}})),n}(t,e,n),g=p(t),m=function(t,e,r,n){var o=[];return i(r,n,(function(r,n){var i=e[r];if(i[0]!==n&amp;&amp;i[1]!==n){var s=t[n],l=t[i[0]],c=t[i[1]];a(l,c,s,s)&amp;&amp;o.push([r,n])}})),o}(t,e,n,g),y=d(t,function(t,e,r,n,i){var a,u,h=t.map((function(t){return[o(t[0]),o(t[1])]}));for(a=0;a&lt;r.length;++a){var p=r[a];u=p[0];var d=p[1],g=e[u],m=e[d],v=f(c(t[g[0]]),c(t[g[1]]),c(t[m[0]]),c(t[m[1]]));if(v){var y=t.length;t.push([l(v[0]),l(v[1])]),h.push(v),n.push([u,y],[d,y])}}for(n.sort((function(t,e){if(t[0]!==e[0])return t[0]-e[0];var r=h[t[1]],n=h[e[1]];return s(r[0],n[0])||s(r[1],n[1])})),a=n.length-1;a&gt;=0;--a){var x=e[u=(S=n[a])[0]],b=x[0],_=x[1],w=t[b],T=t[_];if((w[0]-T[0]||w[1]-T[1])&lt;0){var k=b;b=_,_=k}x[0]=b;var M,A=x[1]=S[1];for(i&amp;&amp;(M=x[2]);a&gt;0&amp;&amp;n[a-1][0]===u;){var S,E=(S=n[--a])[1];i?e.push([A,E,M]):e.push([A,E]),A=E}i?e.push([A,_,M]):e.push([A,_])}return h}(t,e,h,m,r));return v(e,y,r),!!y||(h.length&gt;0||m.length&gt;0)}},{&quot;./lib/rat-seg-intersect&quot;:122,&quot;big-rat&quot;:83,&quot;big-rat/cmp&quot;:81,&quot;big-rat/to-float&quot;:95,&quot;box-intersect&quot;:101,nextafter:496,&quot;rat-vec&quot;:530,&quot;robust-segment-intersect&quot;:551,&quot;union-find&quot;:596}],122:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var a=s(e,t),f=s(n,r),h=u(a,f);if(0===o(h))return null;var p=s(t,r),d=u(f,p),g=i(d,h),m=c(a,g);return l(t,m)};var n=t(&quot;big-rat/mul&quot;),i=t(&quot;big-rat/div&quot;),a=t(&quot;big-rat/sub&quot;),o=t(&quot;big-rat/sign&quot;),s=t(&quot;rat-vec/sub&quot;),l=t(&quot;rat-vec/add&quot;),c=t(&quot;rat-vec/muls&quot;);function u(t,e){return a(n(t[0],e[1]),n(t[1],e[0]))}},{&quot;big-rat/div&quot;:82,&quot;big-rat/mul&quot;:92,&quot;big-rat/sign&quot;:93,&quot;big-rat/sub&quot;:94,&quot;rat-vec/add&quot;:529,&quot;rat-vec/muls&quot;:531,&quot;rat-vec/sub&quot;:532}],123:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;clamp&quot;);function i(t,e){null==e&amp;&amp;(e=!0);var r=t[0],i=t[1],a=t[2],o=t[3];return null==o&amp;&amp;(o=e?1:255),e&amp;&amp;(r*=255,i*=255,a*=255,o*=255),16777216*(r=255&amp;n(r,0,255))+((i=255&amp;n(i,0,255))&lt;&lt;16)+((a=255&amp;n(a,0,255))&lt;&lt;8)+(o=255&amp;n(o,0,255))}e.exports=i,e.exports.to=i,e.exports.from=function(t,e){var r=(t=+t)&gt;&gt;&gt;24,n=(16711680&amp;t)&gt;&gt;&gt;16,i=(65280&amp;t)&gt;&gt;&gt;8,a=255&amp;t;return!1===e?[r,n,i,a]:[r/255,n/255,i/255,a/255]}},{clamp:120}],124:[function(t,e,r){&quot;use strict&quot;;e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],125:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-rgba&quot;),i=t(&quot;clamp&quot;),a=t(&quot;dtype&quot;);e.exports=function(t,e){&quot;float&quot;!==e&amp;&amp;e||(e=&quot;array&quot;),&quot;uint&quot;===e&amp;&amp;(e=&quot;uint8&quot;),&quot;uint_clamped&quot;===e&amp;&amp;(e=&quot;uint8_clamped&quot;);var r=new(a(e))(4),o=&quot;uint8&quot;!==e&amp;&amp;&quot;uint8_clamped&quot;!==e;return t.length&amp;&amp;&quot;string&quot;!=typeof t||((t=n(t))[0]/=255,t[1]/=255,t[2]/=255),function(t){return t instanceof Uint8Array||t instanceof Uint8ClampedArray||!!(Array.isArray(t)&amp;&amp;(t[0]&gt;1||0===t[0])&amp;&amp;(t[1]&gt;1||0===t[1])&amp;&amp;(t[2]&gt;1||0===t[2])&amp;&amp;(!t[3]||t[3]&gt;1))}(t)?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:255,o&amp;&amp;(r[0]/=255,r[1]/=255,r[2]/=255,r[3]/=255),r):(o?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:1):(r[0]=i(Math.floor(255*t[0]),0,255),r[1]=i(Math.floor(255*t[1]),0,255),r[2]=i(Math.floor(255*t[2]),0,255),r[3]=null==t[3]?255:i(Math.floor(255*t[3]),0,255)),r)}},{clamp:120,&quot;color-rgba&quot;:127,dtype:175}],126:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;color-name&quot;),i=t(&quot;is-plain-obj&quot;),a=t(&quot;defined&quot;);e.exports=function(t){var e,s,l=[],c=1;if(&quot;string&quot;==typeof t)if(n[t])l=n[t].slice(),s=&quot;rgb&quot;;else if(&quot;transparent&quot;===t)c=0,s=&quot;rgb&quot;,l=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var u=(p=t.slice(1)).length;c=1,u&lt;=4?(l=[parseInt(p[0]+p[0],16),parseInt(p[1]+p[1],16),parseInt(p[2]+p[2],16)],4===u&amp;&amp;(c=parseInt(p[3]+p[3],16)/255)):(l=[parseInt(p[0]+p[1],16),parseInt(p[2]+p[3],16),parseInt(p[4]+p[5],16)],8===u&amp;&amp;(c=parseInt(p[6]+p[7],16)/255)),l[0]||(l[0]=0),l[1]||(l[1]=0),l[2]||(l[2]=0),s=&quot;rgb&quot;}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(t)){var f=e[1],h=&quot;rgb&quot;===f,p=f.replace(/a$/,&quot;&quot;);s=p;u=&quot;cmyk&quot;===p?4:&quot;gray&quot;===p?1:3;l=e[2].trim().split(/\s*,\s*/).map((function(t,e){if(/%$/.test(t))return e===u?parseFloat(t)/100:&quot;rgb&quot;===p?255*parseFloat(t)/100:parseFloat(t);if(&quot;h&quot;===p[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==o[t])return o[t]}return parseFloat(t)})),f===p&amp;&amp;l.push(1),c=h||void 0===l[u]?1:l[u],l=l.slice(0,u)}else t.length&gt;10&amp;&amp;/[0-9](?:\s|\/)/.test(t)&amp;&amp;(l=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),s=t.match(/([a-z])/gi).join(&quot;&quot;).toLowerCase());else if(isNaN(t))if(i(t)){var d=a(t.r,t.red,t.R,null);null!==d?(s=&quot;rgb&quot;,l=[d,a(t.g,t.green,t.G),a(t.b,t.blue,t.B)]):(s=&quot;hsl&quot;,l=[a(t.h,t.hue,t.H),a(t.s,t.saturation,t.S),a(t.l,t.lightness,t.L,t.b,t.brightness)]),c=a(t.a,t.alpha,t.opacity,1),null!=t.opacity&amp;&amp;(c/=100)}else(Array.isArray(t)||r.ArrayBuffer&amp;&amp;ArrayBuffer.isView&amp;&amp;ArrayBuffer.isView(t))&amp;&amp;(l=[t[0],t[1],t[2]],s=&quot;rgb&quot;,c=4===t.length?t[3]:1);else s=&quot;rgb&quot;,l=[t&gt;&gt;&gt;16,(65280&amp;t)&gt;&gt;&gt;8,255&amp;t];return{space:s,values:l,alpha:c}};var o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;color-name&quot;:124,defined:170,&quot;is-plain-obj&quot;:469}],127:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-parse&quot;),i=t(&quot;color-space/hsl&quot;),a=t(&quot;clamp&quot;);e.exports=function(t){var e,r=n(t);return r.space?((e=Array(3))[0]=a(r.values[0],0,255),e[1]=a(r.values[1],0,255),e[2]=a(r.values[2],0,255),&quot;h&quot;===r.space[0]&amp;&amp;(e=i.rgb(e)),e.push(a(r.alpha,0,1)),e):[]}},{clamp:120,&quot;color-parse&quot;:126,&quot;color-space/hsl&quot;:128}],128:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./rgb&quot;);e.exports={name:&quot;hsl&quot;,min:[0,0,0],max:[360,100,100],channel:[&quot;hue&quot;,&quot;saturation&quot;,&quot;lightness&quot;],alias:[&quot;HSL&quot;],rgb:function(t){var e,r,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[a=255*l,a,a];e=2*l-(r=l&lt;.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c&lt;3;c++)(n=o+1/3*-(c-1))&lt;0?n++:n&gt;1&amp;&amp;n--,a=6*n&lt;1?e+6*(r-e)*n:2*n&lt;1?r:3*n&lt;2?e+(r-e)*(2/3-n)*6:e,i[c]=255*a;return i}},n.hsl=function(t){var e,r,n=t[0]/255,i=t[1]/255,a=t[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o;return s===o?e=0:n===s?e=(i-a)/l:i===s?e=2+(a-n)/l:a===s&amp;&amp;(e=4+(n-i)/l),(e=Math.min(60*e,360))&lt;0&amp;&amp;(e+=360),r=(o+s)/2,[e,100*(s===o?0:r&lt;=.5?l/(s+o):l/(2-s-o)),100*r]}},{&quot;./rgb&quot;:129}],129:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;rgb&quot;,min:[0,0,0],max:[255,255,255],channel:[&quot;red&quot;,&quot;green&quot;,&quot;blue&quot;],alias:[&quot;RGB&quot;]}},{}],130:[function(t,e,r){e.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],cool:[{index:0,rgb:[0,255,255]},{index:1,rgb:[255,0,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],&quot;rainbow-soft&quot;:[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],&quot;freesurface-blue&quot;:[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],&quot;freesurface-red&quot;:[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],&quot;velocity-blue&quot;:[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],&quot;velocity-green&quot;:[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},{}],131:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./colorScale&quot;),i=t(&quot;lerp&quot;);function a(t){return[t[0]/255,t[1]/255,t[2]/255,t[3]]}function o(t){for(var e,r=&quot;#&quot;,n=0;n&lt;3;++n)r+=(&quot;00&quot;+(e=(e=t[n]).toString(16))).substr(e.length);return r}function s(t){return&quot;rgba(&quot;+t.join(&quot;,&quot;)+&quot;)&quot;}e.exports=function(t){var e,r,l,c,u,f,h,p,d,g;t||(t={});p=(t.nshades||72)-1,h=t.format||&quot;hex&quot;,(f=t.colormap)||(f=&quot;jet&quot;);if(&quot;string&quot;==typeof f){if(f=f.toLowerCase(),!n[f])throw Error(f+&quot; not a supported colorscale&quot;);u=n[f]}else{if(!Array.isArray(f))throw Error(&quot;unsupported colormap option&quot;,f);u=f.slice()}if(u.length&gt;p+1)throw new Error(f+&quot; map requires nshades to be at least size &quot;+u.length);d=Array.isArray(t.alpha)?2!==t.alpha.length?[1,1]:t.alpha.slice():&quot;number&quot;==typeof t.alpha?[t.alpha,t.alpha]:[1,1];e=u.map((function(t){return Math.round(t.index*p)})),d[0]=Math.min(Math.max(d[0],0),1),d[1]=Math.min(Math.max(d[1],0),1);var m=u.map((function(t,e){var r=u[e].index,n=u[e].rgb.slice();return 4===n.length&amp;&amp;n[3]&gt;=0&amp;&amp;n[3]&lt;=1||(n[3]=d[0]+(d[1]-d[0])*r),n})),v=[];for(g=0;g&lt;e.length-1;++g){c=e[g+1]-e[g],r=m[g],l=m[g+1];for(var y=0;y&lt;c;y++){var x=y/c;v.push([Math.round(i(r[0],l[0],x)),Math.round(i(r[1],l[1],x)),Math.round(i(r[2],l[2],x)),i(r[3],l[3],x)])}}v.push(u[u.length-1].rgb.concat(d[1])),&quot;hex&quot;===h?v=v.map(o):&quot;rgbaString&quot;===h?v=v.map(s):&quot;float&quot;===h&amp;&amp;(v=v.map(a));return v}},{&quot;./colorScale&quot;:130,lerp:472}],132:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a){var o=n(e,r,a);if(0===o){var s=i(n(t,e,r)),c=i(n(t,e,a));if(s===c){if(0===s){var u=l(t,e,r),f=l(t,e,a);return u===f?0:u?1:-1}return 0}return 0===c?s&gt;0||l(t,e,a)?-1:1:0===s?c&gt;0||l(t,e,r)?1:-1:i(c-s)}var h=n(t,e,r);return h&gt;0?o&gt;0&amp;&amp;n(t,e,a)&gt;0?1:-1:h&lt;0?o&gt;0||n(t,e,a)&gt;0?1:-1:n(t,e,a)&gt;0||l(t,e,r)?1:-1};var n=t(&quot;robust-orientation&quot;),i=t(&quot;signum&quot;),a=t(&quot;two-sum&quot;),o=t(&quot;robust-product&quot;),s=t(&quot;robust-sum&quot;);function l(t,e,r){var n=a(t[0],-e[0]),i=a(t[1],-e[1]),l=a(r[0],-e[0]),c=a(r[1],-e[1]),u=s(o(n,l),o(i,c));return u[u.length-1]&gt;=0}},{&quot;robust-orientation&quot;:548,&quot;robust-product&quot;:549,&quot;robust-sum&quot;:553,signum:554,&quot;two-sum&quot;:583}],133:[function(t,e,r){e.exports=function(t,e){var r=t.length,a=t.length-e.length;if(a)return a;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return t[0]+t[1]-e[0]-e[1]||n(t[0],t[1])-n(e[0],e[1]);case 3:var o=t[0]+t[1],s=e[0]+e[1];if(a=o+t[2]-(s+e[2]))return a;var l=n(t[0],t[1]),c=n(e[0],e[1]);return n(l,t[2])-n(c,e[2])||n(l+t[2],o)-n(c+e[2],s);case 4:var u=t[0],f=t[1],h=t[2],p=t[3],d=e[0],g=e[1],m=e[2],v=e[3];return u+f+h+p-(d+g+m+v)||n(u,f,h,p)-n(d,g,m,v,d)||n(u+f,u+h,u+p,f+h,f+p,h+p)-n(d+g,d+m,d+v,g+m,g+v,m+v)||n(u+f+h,u+f+p,u+h+p,f+h+p)-n(d+g+m,d+g+v,d+m+v,g+m+v);default:for(var y=t.slice().sort(i),x=e.slice().sort(i),b=0;b&lt;r;++b)if(a=y[b]-x[b])return a;return 0}};var n=Math.min;function i(t,e){return t-e}},{}],134:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;compare-cell&quot;),i=t(&quot;cell-orientation&quot;);e.exports=function(t,e){return n(t,e)||i(t)-i(e)}},{&quot;cell-orientation&quot;:117,&quot;compare-cell&quot;:133}],135:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/ch1d&quot;),i=t(&quot;./lib/ch2d&quot;),a=t(&quot;./lib/chnd&quot;);e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[[0]];var r=t[0].length;if(0===r)return[];if(1===r)return n(t);if(2===r)return i(t);return a(t,r)}},{&quot;./lib/ch1d&quot;:136,&quot;./lib/ch2d&quot;:137,&quot;./lib/chnd&quot;:138}],136:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=0,r=0,n=1;n&lt;t.length;++n)t[n][0]&lt;t[e][0]&amp;&amp;(e=n),t[n][0]&gt;t[r][0]&amp;&amp;(r=n);return e&lt;r?[[e],[r]]:e&gt;r?[[r],[e]]:[[e]]}},{}],137:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=n(t),r=e.length;if(r&lt;=2)return[];for(var i=new Array(r),a=e[r-1],o=0;o&lt;r;++o){var s=e[o];i[o]=[a,s],a=s}return i};var n=t(&quot;monotone-convex-hull-2d&quot;)},{&quot;monotone-convex-hull-2d&quot;:482}],138:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){try{return n(t,!0)}catch(o){var r=i(t);if(r.length&lt;=e)return[];var a=function(t,e){for(var r=t.length,n=new Array(r),i=0;i&lt;e.length;++i)n[i]=t[e[i]];var a=e.length;for(i=0;i&lt;r;++i)e.indexOf(i)&lt;0&amp;&amp;(n[a++]=t[i]);return n}(t,r);return function(t,e){for(var r=t.length,n=e.length,i=0;i&lt;r;++i)for(var a=t[i],o=0;o&lt;a.length;++o){var s=a[o];if(s&lt;n)a[o]=e[s];else{s-=n;for(var l=0;l&lt;n;++l)s&gt;=e[l]&amp;&amp;(s+=1);a[o]=s}}return t}(n(a,!0),r)}};var n=t(&quot;incremental-convex-hull&quot;),i=t(&quot;affine-hull&quot;)},{&quot;affine-hull&quot;:67,&quot;incremental-convex-hull&quot;:459}],139:[function(t,e,r){e.exports={AFG:&quot;afghan&quot;,ALA:&quot;\\b\\wland&quot;,ALB:&quot;albania&quot;,DZA:&quot;algeria&quot;,ASM:&quot;^(?=.*americ).*samoa&quot;,AND:&quot;andorra&quot;,AGO:&quot;angola&quot;,AIA:&quot;anguill?a&quot;,ATA:&quot;antarctica&quot;,ATG:&quot;antigua&quot;,ARG:&quot;argentin&quot;,ARM:&quot;armenia&quot;,ABW:&quot;^(?!.*bonaire).*\\baruba&quot;,AUS:&quot;australia&quot;,AUT:&quot;^(?!.*hungary).*austria|\\baustri.*\\bemp&quot;,AZE:&quot;azerbaijan&quot;,BHS:&quot;bahamas&quot;,BHR:&quot;bahrain&quot;,BGD:&quot;bangladesh|^(?=.*east).*paki?stan&quot;,BRB:&quot;barbados&quot;,BLR:&quot;belarus|byelo&quot;,BEL:&quot;^(?!.*luxem).*belgium&quot;,BLZ:&quot;belize|^(?=.*british).*honduras&quot;,BEN:&quot;benin|dahome&quot;,BMU:&quot;bermuda&quot;,BTN:&quot;bhutan&quot;,BOL:&quot;bolivia&quot;,BES:&quot;^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands&quot;,BIH:&quot;herzegovina|bosnia&quot;,BWA:&quot;botswana|bechuana&quot;,BVT:&quot;bouvet&quot;,BRA:&quot;brazil&quot;,IOT:&quot;british.?indian.?ocean&quot;,BRN:&quot;brunei&quot;,BGR:&quot;bulgaria&quot;,BFA:&quot;burkina|\\bfaso|upper.?volta&quot;,BDI:&quot;burundi&quot;,CPV:&quot;verde&quot;,KHM:&quot;cambodia|kampuchea|khmer&quot;,CMR:&quot;cameroon&quot;,CAN:&quot;canada&quot;,CYM:&quot;cayman&quot;,CAF:&quot;\\bcentral.african.republic&quot;,TCD:&quot;\\bchad&quot;,CHL:&quot;\\bchile&quot;,CHN:&quot;^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china&quot;,CXR:&quot;christmas&quot;,CCK:&quot;\\bcocos|keeling&quot;,COL:&quot;colombia&quot;,COM:&quot;comoro&quot;,COG:&quot;^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo&quot;,COK:&quot;\\bcook&quot;,CRI:&quot;costa.?rica&quot;,CIV:&quot;ivoire|ivory&quot;,HRV:&quot;croatia&quot;,CUB:&quot;\\bcuba&quot;,CUW:&quot;^(?!.*bonaire).*\\bcura(c|\xe7)ao&quot;,CYP:&quot;cyprus&quot;,CSK:&quot;czechoslovakia&quot;,CZE:&quot;^(?=.*rep).*czech|czechia|bohemia&quot;,COD:&quot;\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc&quot;,DNK:&quot;denmark&quot;,DJI:&quot;djibouti&quot;,DMA:&quot;dominica(?!n)&quot;,DOM:&quot;dominican.rep&quot;,ECU:&quot;ecuador&quot;,EGY:&quot;egypt&quot;,SLV:&quot;el.?salvador&quot;,GNQ:&quot;guine.*eq|eq.*guine|^(?=.*span).*guinea&quot;,ERI:&quot;eritrea&quot;,EST:&quot;estonia&quot;,ETH:&quot;ethiopia|abyssinia&quot;,FLK:&quot;falkland|malvinas&quot;,FRO:&quot;faroe|faeroe&quot;,FJI:&quot;fiji&quot;,FIN:&quot;finland&quot;,FRA:&quot;^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul&quot;,GUF:&quot;^(?=.*french).*guiana&quot;,PYF:&quot;french.?polynesia|tahiti&quot;,ATF:&quot;french.?southern&quot;,GAB:&quot;gabon&quot;,GMB:&quot;gambia&quot;,GEO:&quot;^(?!.*south).*georgia&quot;,DDR:&quot;german.?democratic.?republic|democratic.?republic.*germany|east.germany&quot;,DEU:&quot;^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german&quot;,GHA:&quot;ghana|gold.?coast&quot;,GIB:&quot;gibraltar&quot;,GRC:&quot;greece|hellenic|hellas&quot;,GRL:&quot;greenland&quot;,GRD:&quot;grenada&quot;,GLP:&quot;guadeloupe&quot;,GUM:&quot;\\bguam&quot;,GTM:&quot;guatemala&quot;,GGY:&quot;guernsey&quot;,GIN:&quot;^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea&quot;,GNB:&quot;bissau|^(?=.*portu).*guinea&quot;,GUY:&quot;guyana|british.?guiana&quot;,HTI:&quot;haiti&quot;,HMD:&quot;heard.*mcdonald&quot;,VAT:&quot;holy.?see|vatican|papal.?st&quot;,HND:&quot;^(?!.*brit).*honduras&quot;,HKG:&quot;hong.?kong&quot;,HUN:&quot;^(?!.*austr).*hungary&quot;,ISL:&quot;iceland&quot;,IND:&quot;india(?!.*ocea)&quot;,IDN:&quot;indonesia&quot;,IRN:&quot;\\biran|persia&quot;,IRQ:&quot;\\biraq|mesopotamia&quot;,IRL:&quot;(^ireland)|(^republic.*ireland)&quot;,IMN:&quot;^(?=.*isle).*\\bman&quot;,ISR:&quot;israel&quot;,ITA:&quot;italy&quot;,JAM:&quot;jamaica&quot;,JPN:&quot;japan&quot;,JEY:&quot;jersey&quot;,JOR:&quot;jordan&quot;,KAZ:&quot;kazak&quot;,KEN:&quot;kenya|british.?east.?africa|east.?africa.?prot&quot;,KIR:&quot;kiribati&quot;,PRK:&quot;^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)&quot;,KWT:&quot;kuwait&quot;,KGZ:&quot;kyrgyz|kirghiz&quot;,LAO:&quot;\\blaos?\\b&quot;,LVA:&quot;latvia&quot;,LBN:&quot;lebanon&quot;,LSO:&quot;lesotho|basuto&quot;,LBR:&quot;liberia&quot;,LBY:&quot;libya&quot;,LIE:&quot;liechtenstein&quot;,LTU:&quot;lithuania&quot;,LUX:&quot;^(?!.*belg).*luxem&quot;,MAC:&quot;maca(o|u)&quot;,MDG:&quot;madagascar|malagasy&quot;,MWI:&quot;malawi|nyasa&quot;,MYS:&quot;malaysia&quot;,MDV:&quot;maldive&quot;,MLI:&quot;\\bmali\\b&quot;,MLT:&quot;\\bmalta&quot;,MHL:&quot;marshall&quot;,MTQ:&quot;martinique&quot;,MRT:&quot;mauritania&quot;,MUS:&quot;mauritius&quot;,MYT:&quot;\\bmayotte&quot;,MEX:&quot;\\bmexic&quot;,FSM:&quot;fed.*micronesia|micronesia.*fed&quot;,MCO:&quot;monaco&quot;,MNG:&quot;mongolia&quot;,MNE:&quot;^(?!.*serbia).*montenegro&quot;,MSR:&quot;montserrat&quot;,MAR:&quot;morocco|\\bmaroc&quot;,MOZ:&quot;mozambique&quot;,MMR:&quot;myanmar|burma&quot;,NAM:&quot;namibia&quot;,NRU:&quot;nauru&quot;,NPL:&quot;nepal&quot;,NLD:&quot;^(?!.*\\bant)(?!.*\\bcarib).*netherlands&quot;,ANT:&quot;^(?=.*\\bant).*(nether|dutch)&quot;,NCL:&quot;new.?caledonia&quot;,NZL:&quot;new.?zealand&quot;,NIC:&quot;nicaragua&quot;,NER:&quot;\\bniger(?!ia)&quot;,NGA:&quot;nigeria&quot;,NIU:&quot;niue&quot;,NFK:&quot;norfolk&quot;,MNP:&quot;mariana&quot;,NOR:&quot;norway&quot;,OMN:&quot;\\boman|trucial&quot;,PAK:&quot;^(?!.*east).*paki?stan&quot;,PLW:&quot;palau&quot;,PSE:&quot;palestin|\\bgaza|west.?bank&quot;,PAN:&quot;panama&quot;,PNG:&quot;papua|new.?guinea&quot;,PRY:&quot;paraguay&quot;,PER:&quot;peru&quot;,PHL:&quot;philippines&quot;,PCN:&quot;pitcairn&quot;,POL:&quot;poland&quot;,PRT:&quot;portugal&quot;,PRI:&quot;puerto.?rico&quot;,QAT:&quot;qatar&quot;,KOR:&quot;^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)&quot;,MDA:&quot;moldov|b(a|e)ssarabia&quot;,REU:&quot;r(e|\xe9)union&quot;,ROU:&quot;r(o|u|ou)mania&quot;,RUS:&quot;\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics&quot;,RWA:&quot;rwanda&quot;,BLM:&quot;barth(e|\xe9)lemy&quot;,SHN:&quot;helena&quot;,KNA:&quot;kitts|\\bnevis&quot;,LCA:&quot;\\blucia&quot;,MAF:&quot;^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)&quot;,SPM:&quot;miquelon&quot;,VCT:&quot;vincent&quot;,WSM:&quot;^(?!.*amer).*samoa&quot;,SMR:&quot;san.?marino&quot;,STP:&quot;\\bs(a|\xe3)o.?tom(e|\xe9)&quot;,SAU:&quot;\\bsa\\w*.?arabia&quot;,SEN:&quot;senegal&quot;,SRB:&quot;^(?!.*monte).*serbia&quot;,SYC:&quot;seychell&quot;,SLE:&quot;sierra&quot;,SGP:&quot;singapore&quot;,SXM:&quot;^(?!.*martin)(?!.*saba).*maarten&quot;,SVK:&quot;^(?!.*cze).*slovak&quot;,SVN:&quot;slovenia&quot;,SLB:&quot;solomon&quot;,SOM:&quot;somali&quot;,ZAF:&quot;south.africa|s\\\\..?africa&quot;,SGS:&quot;south.?georgia|sandwich&quot;,SSD:&quot;\\bs\\w*.?sudan&quot;,ESP:&quot;spain&quot;,LKA:&quot;sri.?lanka|ceylon&quot;,SDN:&quot;^(?!.*\\bs(?!u)).*sudan&quot;,SUR:&quot;surinam|dutch.?guiana&quot;,SJM:&quot;svalbard&quot;,SWZ:&quot;swaziland&quot;,SWE:&quot;sweden&quot;,CHE:&quot;switz|swiss&quot;,SYR:&quot;syria&quot;,TWN:&quot;taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china&quot;,TJK:&quot;tajik&quot;,THA:&quot;thailand|\\bsiam&quot;,MKD:&quot;macedonia|fyrom&quot;,TLS:&quot;^(?=.*leste).*timor|^(?=.*east).*timor&quot;,TGO:&quot;togo&quot;,TKL:&quot;tokelau&quot;,TON:&quot;tonga&quot;,TTO:&quot;trinidad|tobago&quot;,TUN:&quot;tunisia&quot;,TUR:&quot;turkey&quot;,TKM:&quot;turkmen&quot;,TCA:&quot;turks&quot;,TUV:&quot;tuvalu&quot;,UGA:&quot;uganda&quot;,UKR:&quot;ukrain&quot;,ARE:&quot;emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em&quot;,GBR:&quot;united.?kingdom|britain|^u\\.?k\\.?$&quot;,TZA:&quot;tanzania&quot;,USA:&quot;united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)&quot;,UMI:&quot;minor.?outlying.?is&quot;,URY:&quot;uruguay&quot;,UZB:&quot;uzbek&quot;,VUT:&quot;vanuatu|new.?hebrides&quot;,VEN:&quot;venezuela&quot;,VNM:&quot;^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam&quot;,VGB:&quot;^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin&quot;,VIR:&quot;^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin&quot;,WLF:&quot;futuna|wallis&quot;,ESH:&quot;western.sahara&quot;,YEM:&quot;^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen&quot;,YMD:&quot;^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen&quot;,YUG:&quot;yugoslavia&quot;,ZMB:&quot;zambia|northern.?rhodesia&quot;,EAZ:&quot;zanzibar&quot;,ZWE:&quot;zimbabwe|^(?!.*northern).*rhodesia&quot;}},{}],140:[function(t,e,r){e.exports=[&quot;xx-small&quot;,&quot;x-small&quot;,&quot;small&quot;,&quot;medium&quot;,&quot;large&quot;,&quot;x-large&quot;,&quot;xx-large&quot;,&quot;larger&quot;,&quot;smaller&quot;]},{}],141:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;condensed&quot;,&quot;semi-condensed&quot;,&quot;extra-condensed&quot;,&quot;ultra-condensed&quot;,&quot;expanded&quot;,&quot;semi-expanded&quot;,&quot;extra-expanded&quot;,&quot;ultra-expanded&quot;]},{}],142:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;italic&quot;,&quot;oblique&quot;]},{}],143:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;bold&quot;,&quot;bolder&quot;,&quot;lighter&quot;,&quot;100&quot;,&quot;200&quot;,&quot;300&quot;,&quot;400&quot;,&quot;500&quot;,&quot;600&quot;,&quot;700&quot;,&quot;800&quot;,&quot;900&quot;]},{}],144:[function(t,e,r){&quot;use strict&quot;;e.exports={parse:t(&quot;./parse&quot;),stringify:t(&quot;./stringify&quot;)}},{&quot;./parse&quot;:146,&quot;./stringify&quot;:147}],145:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font-size-keywords&quot;);e.exports={isSize:function(t){return/^[\d\.]/.test(t)||-1!==t.indexOf(&quot;/&quot;)||-1!==n.indexOf(t)}}},{&quot;css-font-size-keywords&quot;:140}],146:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;unquote&quot;),i=t(&quot;css-global-keywords&quot;),a=t(&quot;css-system-font-keywords&quot;),o=t(&quot;css-font-weight-keywords&quot;),s=t(&quot;css-font-style-keywords&quot;),l=t(&quot;css-font-stretch-keywords&quot;),c=t(&quot;string-split-by&quot;),u=t(&quot;./lib/util&quot;).isSize;e.exports=h;var f=h.cache={};function h(t){if(&quot;string&quot;!=typeof t)throw new Error(&quot;Font argument must be a string.&quot;);if(f[t])return f[t];if(&quot;&quot;===t)throw new Error(&quot;Cannot parse an empty string.&quot;);if(-1!==a.indexOf(t))return f[t]={system:t};for(var e,r={style:&quot;normal&quot;,variant:&quot;normal&quot;,weight:&quot;normal&quot;,stretch:&quot;normal&quot;,lineHeight:&quot;normal&quot;,size:&quot;1rem&quot;,family:[&quot;serif&quot;]},h=c(t,/\s+/);e=h.shift();){if(-1!==i.indexOf(e))return[&quot;style&quot;,&quot;variant&quot;,&quot;weight&quot;,&quot;stretch&quot;].forEach((function(t){r[t]=e})),f[t]=r;if(-1===s.indexOf(e))if(&quot;normal&quot;!==e&amp;&amp;&quot;small-caps&quot;!==e)if(-1===l.indexOf(e)){if(-1===o.indexOf(e)){if(u(e)){var d=c(e,&quot;/&quot;);if(r.size=d[0],null!=d[1]?r.lineHeight=p(d[1]):&quot;/&quot;===h[0]&amp;&amp;(h.shift(),r.lineHeight=p(h.shift())),!h.length)throw new Error(&quot;Missing required font-family.&quot;);return r.family=c(h.join(&quot; &quot;),/\s*,\s*/).map(n),f[t]=r}throw new Error(&quot;Unknown or unsupported font token: &quot;+e)}r.weight=e}else r.stretch=e;else r.variant=e;else r.style=e}throw new Error(&quot;Missing required font-size.&quot;)}function p(t){var e=parseFloat(t);return e.toString()===t?e:t}},{&quot;./lib/util&quot;:145,&quot;css-font-stretch-keywords&quot;:141,&quot;css-font-style-keywords&quot;:142,&quot;css-font-weight-keywords&quot;:143,&quot;css-global-keywords&quot;:148,&quot;css-system-font-keywords&quot;:149,&quot;string-split-by&quot;:568,unquote:598}],147:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;),i=t(&quot;./lib/util&quot;).isSize,a=g(t(&quot;css-global-keywords&quot;)),o=g(t(&quot;css-system-font-keywords&quot;)),s=g(t(&quot;css-font-weight-keywords&quot;)),l=g(t(&quot;css-font-style-keywords&quot;)),c=g(t(&quot;css-font-stretch-keywords&quot;)),u={normal:1,&quot;small-caps&quot;:1},f={serif:1,&quot;sans-serif&quot;:1,monospace:1,cursive:1,fantasy:1,&quot;system-ui&quot;:1},h=&quot;1rem&quot;,p=&quot;serif&quot;;function d(t,e){if(t&amp;&amp;!e[t]&amp;&amp;!a[t])throw Error(&quot;Unknown keyword `&quot;+t+&quot;`&quot;);return t}function g(t){for(var e={},r=0;r&lt;t.length;r++)e[t[r]]=1;return e}e.exports=function(t){if((t=n(t,{style:&quot;style fontstyle fontStyle font-style slope distinction&quot;,variant:&quot;variant font-variant fontVariant fontvariant var capitalization&quot;,weight:&quot;weight w font-weight fontWeight fontweight&quot;,stretch:&quot;stretch font-stretch fontStretch fontstretch width&quot;,size:&quot;size s font-size fontSize fontsize height em emSize&quot;,lineHeight:&quot;lh line-height lineHeight lineheight leading&quot;,family:&quot;font family fontFamily font-family fontfamily type typeface face&quot;,system:&quot;system reserved default global&quot;})).system)return t.system&amp;&amp;d(t.system,o),t.system;if(d(t.style,l),d(t.variant,u),d(t.weight,s),d(t.stretch,c),null==t.size&amp;&amp;(t.size=h),&quot;number&quot;==typeof t.size&amp;&amp;(t.size+=&quot;px&quot;),!i)throw Error(&quot;Bad size value `&quot;+t.size+&quot;`&quot;);t.family||(t.family=p),Array.isArray(t.family)&amp;&amp;(t.family.length||(t.family=[p]),t.family=t.family.map((function(t){return f[t]?t:'&quot;'+t+'&quot;'})).join(&quot;, &quot;));var e=[];return e.push(t.style),t.variant!==t.style&amp;&amp;e.push(t.variant),t.weight!==t.variant&amp;&amp;t.weight!==t.style&amp;&amp;e.push(t.weight),t.stretch!==t.weight&amp;&amp;t.stretch!==t.variant&amp;&amp;t.stretch!==t.style&amp;&amp;e.push(t.stretch),e.push(t.size+(null==t.lineHeight||&quot;normal&quot;===t.lineHeight||t.lineHeight+&quot;&quot;==&quot;1&quot;?&quot;&quot;:&quot;/&quot;+t.lineHeight)),e.push(t.family),e.filter(Boolean).join(&quot; &quot;)}},{&quot;./lib/util&quot;:145,&quot;css-font-stretch-keywords&quot;:141,&quot;css-font-style-keywords&quot;:142,&quot;css-font-weight-keywords&quot;:143,&quot;css-global-keywords&quot;:148,&quot;css-system-font-keywords&quot;:149,&quot;pick-by-alias&quot;:511}],148:[function(t,e,r){e.exports=[&quot;inherit&quot;,&quot;initial&quot;,&quot;unset&quot;]},{}],149:[function(t,e,r){e.exports=[&quot;caption&quot;,&quot;icon&quot;,&quot;menu&quot;,&quot;message-box&quot;,&quot;small-caption&quot;,&quot;status-bar&quot;]},{}],150:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a){var o=i-1,s=i*i,l=o*o,c=(1+2*i)*l,u=i*l,f=s*(3-2*i),h=s*o;if(t.length){a||(a=new Array(t.length));for(var p=t.length-1;p&gt;=0;--p)a[p]=c*t[p]+u*e[p]+f*r[p]+h*n[p];return a}return c*t+u*e+f*r+h*n},e.exports.derivative=function(t,e,r,n,i,a){var o=6*i*i-6*i,s=3*i*i-4*i+1,l=-6*i*i+6*i,c=3*i*i-2*i;if(t.length){a||(a=new Array(t.length));for(var u=t.length-1;u&gt;=0;--u)a[u]=o*t[u]+s*e[u]+l*r[u]+c*n[u];return a}return o*t+s*e+l*r[u]+c*n}},{}],151:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/thunk.js&quot;);function i(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName=&quot;&quot;,this.pre=null,this.body=null,this.post=null,this.debug=!1}e.exports=function(t){var e=new i;e.pre=t.pre,e.body=t.body,e.post=t.post;var r=t.args.slice(0);e.argTypes=r;for(var a=0;a&lt;r.length;++a){var o=r[a];if(&quot;array&quot;===o||&quot;object&quot;==typeof o&amp;&amp;o.blockIndices){if(e.argTypes[a]=&quot;array&quot;,e.arrayArgs.push(a),e.arrayBlockIndices.push(o.blockIndices?o.blockIndices:0),e.shimArgs.push(&quot;array&quot;+a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].count&gt;0)throw new Error(&quot;cwise: pre() block may not reference array args&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].count&gt;0)throw new Error(&quot;cwise: post() block may not reference array args&quot;)}else if(&quot;scalar&quot;===o)e.scalarArgs.push(a),e.shimArgs.push(&quot;scalar&quot;+a);else if(&quot;index&quot;===o){if(e.indexArgs.push(a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].count&gt;0)throw new Error(&quot;cwise: pre() block may not reference array index&quot;);if(a&lt;e.body.args.length&amp;&amp;e.body.args[a].lvalue)throw new Error(&quot;cwise: body() block may not write to array index&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].count&gt;0)throw new Error(&quot;cwise: post() block may not reference array index&quot;)}else if(&quot;shape&quot;===o){if(e.shapeArgs.push(a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].lvalue)throw new Error(&quot;cwise: pre() block may not write to array shape&quot;);if(a&lt;e.body.args.length&amp;&amp;e.body.args[a].lvalue)throw new Error(&quot;cwise: body() block may not write to array shape&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].lvalue)throw new Error(&quot;cwise: post() block may not write to array shape&quot;)}else{if(&quot;object&quot;!=typeof o||!o.offset)throw new Error(&quot;cwise: Unknown argument type &quot;+r[a]);e.argTypes[a]=&quot;offset&quot;,e.offsetArgs.push({array:o.array,offset:o.offset}),e.offsetArgIndex.push(a)}}if(e.arrayArgs.length&lt;=0)throw new Error(&quot;cwise: No array arguments specified&quot;);if(e.pre.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in pre() block&quot;);if(e.body.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in body() block&quot;);if(e.post.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in post() block&quot;);return e.debug=!!t.printCode||!!t.debug,e.funcName=t.funcName||&quot;cwise&quot;,e.blockSize=t.blockSize||64,n(e)}},{&quot;./lib/thunk.js&quot;:153}],152:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;uniq&quot;);function i(t,e,r){var n,i,a=t.length,o=e.arrayArgs.length,s=e.indexArgs.length&gt;0,l=[],c=[],u=0,f=0;for(n=0;n&lt;a;++n)c.push([&quot;i&quot;,n,&quot;=0&quot;].join(&quot;&quot;));for(i=0;i&lt;o;++i)for(n=0;n&lt;a;++n)f=u,u=t[n],0===n?c.push([&quot;d&quot;,i,&quot;s&quot;,n,&quot;=t&quot;,i,&quot;p&quot;,u].join(&quot;&quot;)):c.push([&quot;d&quot;,i,&quot;s&quot;,n,&quot;=(t&quot;,i,&quot;p&quot;,u,&quot;-s&quot;,f,&quot;*t&quot;,i,&quot;p&quot;,f,&quot;)&quot;].join(&quot;&quot;));for(c.length&gt;0&amp;&amp;l.push(&quot;var &quot;+c.join(&quot;,&quot;)),n=a-1;n&gt;=0;--n)u=t[n],l.push([&quot;for(i&quot;,n,&quot;=0;i&quot;,n,&quot;&lt;s&quot;,u,&quot;;++i&quot;,n,&quot;){&quot;].join(&quot;&quot;));for(l.push(r),n=0;n&lt;a;++n){for(f=u,u=t[n],i=0;i&lt;o;++i)l.push([&quot;p&quot;,i,&quot;+=d&quot;,i,&quot;s&quot;,n].join(&quot;&quot;));s&amp;&amp;(n&gt;0&amp;&amp;l.push([&quot;index[&quot;,f,&quot;]-=s&quot;,f].join(&quot;&quot;)),l.push([&quot;++index[&quot;,u,&quot;]&quot;].join(&quot;&quot;))),l.push(&quot;}&quot;)}return l.join(&quot;\n&quot;)}function a(t,e,r){for(var n=t.body,i=[],a=[],o=0;o&lt;t.args.length;++o){var s=t.args[o];if(!(s.count&lt;=0)){var l=new RegExp(s.name,&quot;g&quot;),c=&quot;&quot;,u=e.arrayArgs.indexOf(o);switch(e.argTypes[o]){case&quot;offset&quot;:var f=e.offsetArgIndex.indexOf(o);u=e.offsetArgs[f].array,c=&quot;+q&quot;+f;case&quot;array&quot;:c=&quot;p&quot;+u+c;var h=&quot;l&quot;+o,p=&quot;a&quot;+u;if(0===e.arrayBlockIndices[u])1===s.count?&quot;generic&quot;===r[u]?s.lvalue?(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)),n=n.replace(l,h),a.push([p,&quot;.set(&quot;,c,&quot;,&quot;,h,&quot;)&quot;].join(&quot;&quot;))):n=n.replace(l,[p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)):n=n.replace(l,[p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;)):&quot;generic&quot;===r[u]?(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)),n=n.replace(l,h),s.lvalue&amp;&amp;a.push([p,&quot;.set(&quot;,c,&quot;,&quot;,h,&quot;)&quot;].join(&quot;&quot;))):(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;)),n=n.replace(l,h),s.lvalue&amp;&amp;a.push([p,&quot;[&quot;,c,&quot;]=&quot;,h].join(&quot;&quot;)));else{for(var d=[s.name],g=[c],m=0;m&lt;Math.abs(e.arrayBlockIndices[u]);m++)d.push(&quot;\\s*\\[([^\\]]+)\\]&quot;),g.push(&quot;$&quot;+(m+1)+&quot;*t&quot;+u+&quot;b&quot;+m);if(l=new RegExp(d.join(&quot;&quot;),&quot;g&quot;),c=g.join(&quot;+&quot;),&quot;generic&quot;===r[u])throw new Error(&quot;cwise: Generic arrays not supported in combination with blocks!&quot;);n=n.replace(l,[p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;))}break;case&quot;scalar&quot;:n=n.replace(l,&quot;Y&quot;+e.scalarArgs.indexOf(o));break;case&quot;index&quot;:n=n.replace(l,&quot;index&quot;);break;case&quot;shape&quot;:n=n.replace(l,&quot;shape&quot;)}}}return[i.join(&quot;\n&quot;),n,a.join(&quot;\n&quot;)].join(&quot;\n&quot;).trim()}function o(t){for(var e=new Array(t.length),r=!0,n=0;n&lt;t.length;++n){var i=t[n],a=i.match(/\d+/);a=a?a[0]:&quot;&quot;,0===i.charAt(0)?e[n]=&quot;u&quot;+i.charAt(1)+a:e[n]=i.charAt(0)+a,n&gt;0&amp;&amp;(r=r&amp;&amp;e[n]===e[n-1])}return r?e[0]:e.join(&quot;&quot;)}e.exports=function(t,e){for(var r=e[1].length-Math.abs(t.arrayBlockIndices[0])|0,s=new Array(t.arrayArgs.length),l=new Array(t.arrayArgs.length),c=0;c&lt;t.arrayArgs.length;++c)l[c]=e[2*c],s[c]=e[2*c+1];var u=[],f=[],h=[],p=[],d=[];for(c=0;c&lt;t.arrayArgs.length;++c){t.arrayBlockIndices[c]&lt;0?(h.push(0),p.push(r),u.push(r),f.push(r+t.arrayBlockIndices[c])):(h.push(t.arrayBlockIndices[c]),p.push(t.arrayBlockIndices[c]+r),u.push(0),f.push(t.arrayBlockIndices[c]));for(var g=[],m=0;m&lt;s[c].length;m++)h[c]&lt;=s[c][m]&amp;&amp;s[c][m]&lt;p[c]&amp;&amp;g.push(s[c][m]-h[c]);d.push(g)}var v=[&quot;SS&quot;],y=[&quot;'use strict'&quot;],x=[];for(m=0;m&lt;r;++m)x.push([&quot;s&quot;,m,&quot;=SS[&quot;,m,&quot;]&quot;].join(&quot;&quot;));for(c=0;c&lt;t.arrayArgs.length;++c){v.push(&quot;a&quot;+c),v.push(&quot;t&quot;+c),v.push(&quot;p&quot;+c);for(m=0;m&lt;r;++m)x.push([&quot;t&quot;,c,&quot;p&quot;,m,&quot;=t&quot;,c,&quot;[&quot;,h[c]+m,&quot;]&quot;].join(&quot;&quot;));for(m=0;m&lt;Math.abs(t.arrayBlockIndices[c]);++m)x.push([&quot;t&quot;,c,&quot;b&quot;,m,&quot;=t&quot;,c,&quot;[&quot;,u[c]+m,&quot;]&quot;].join(&quot;&quot;))}for(c=0;c&lt;t.scalarArgs.length;++c)v.push(&quot;Y&quot;+c);if(t.shapeArgs.length&gt;0&amp;&amp;x.push(&quot;shape=SS.slice(0)&quot;),t.indexArgs.length&gt;0){var b=new Array(r);for(c=0;c&lt;r;++c)b[c]=&quot;0&quot;;x.push([&quot;index=[&quot;,b.join(&quot;,&quot;),&quot;]&quot;].join(&quot;&quot;))}for(c=0;c&lt;t.offsetArgs.length;++c){var _=t.offsetArgs[c],w=[];for(m=0;m&lt;_.offset.length;++m)0!==_.offset[m]&amp;&amp;(1===_.offset[m]?w.push([&quot;t&quot;,_.array,&quot;p&quot;,m].join(&quot;&quot;)):w.push([_.offset[m],&quot;*t&quot;,_.array,&quot;p&quot;,m].join(&quot;&quot;)));0===w.length?x.push(&quot;q&quot;+c+&quot;=0&quot;):x.push([&quot;q&quot;,c,&quot;=&quot;,w.join(&quot;+&quot;)].join(&quot;&quot;))}var T=n([].concat(t.pre.thisVars).concat(t.body.thisVars).concat(t.post.thisVars));for((x=x.concat(T)).length&gt;0&amp;&amp;y.push(&quot;var &quot;+x.join(&quot;,&quot;)),c=0;c&lt;t.arrayArgs.length;++c)y.push(&quot;p&quot;+c+&quot;|=0&quot;);t.pre.body.length&gt;3&amp;&amp;y.push(a(t.pre,t,l));var k=a(t.body,t,l),M=function(t){for(var e=0,r=t[0].length;e&lt;r;){for(var n=1;n&lt;t.length;++n)if(t[n][e]!==t[0][e])return e;++e}return e}(d);M&lt;r?y.push(function(t,e,r,n){for(var a=e.length,o=r.arrayArgs.length,s=r.blockSize,l=r.indexArgs.length&gt;0,c=[],u=0;u&lt;o;++u)c.push([&quot;var offset&quot;,u,&quot;=p&quot;,u].join(&quot;&quot;));for(u=t;u&lt;a;++u)c.push([&quot;for(var j&quot;+u+&quot;=SS[&quot;,e[u],&quot;]|0;j&quot;,u,&quot;&gt;0;){&quot;].join(&quot;&quot;)),c.push([&quot;if(j&quot;,u,&quot;&lt;&quot;,s,&quot;){&quot;].join(&quot;&quot;)),c.push([&quot;s&quot;,e[u],&quot;=j&quot;,u].join(&quot;&quot;)),c.push([&quot;j&quot;,u,&quot;=0&quot;].join(&quot;&quot;)),c.push([&quot;}else{s&quot;,e[u],&quot;=&quot;,s].join(&quot;&quot;)),c.push([&quot;j&quot;,u,&quot;-=&quot;,s,&quot;}&quot;].join(&quot;&quot;)),l&amp;&amp;c.push([&quot;index[&quot;,e[u],&quot;]=j&quot;,u].join(&quot;&quot;));for(u=0;u&lt;o;++u){for(var f=[&quot;offset&quot;+u],h=t;h&lt;a;++h)f.push([&quot;j&quot;,h,&quot;*t&quot;,u,&quot;p&quot;,e[h]].join(&quot;&quot;));c.push([&quot;p&quot;,u,&quot;=(&quot;,f.join(&quot;+&quot;),&quot;)&quot;].join(&quot;&quot;))}for(c.push(i(e,r,n)),u=t;u&lt;a;++u)c.push(&quot;}&quot;);return c.join(&quot;\n&quot;)}(M,d[0],t,k)):y.push(i(d[0],t,k)),t.post.body.length&gt;3&amp;&amp;y.push(a(t.post,t,l)),t.debug&amp;&amp;console.log(&quot;-----Generated cwise routine for &quot;,e,&quot;:\n&quot;+y.join(&quot;\n&quot;)+&quot;\n----------&quot;);var A=[t.funcName||&quot;unnamed&quot;,&quot;_cwise_loop_&quot;,s[0].join(&quot;s&quot;),&quot;m&quot;,M,o(l)].join(&quot;&quot;);return new Function([&quot;function &quot;,A,&quot;(&quot;,v.join(&quot;,&quot;),&quot;){&quot;,y.join(&quot;\n&quot;),&quot;} return &quot;,A].join(&quot;&quot;))()}},{uniq:597}],153:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./compile.js&quot;);e.exports=function(t){var e=[&quot;'use strict'&quot;,&quot;var CACHED={}&quot;],r=[],i=t.funcName+&quot;_cwise_thunk&quot;;e.push([&quot;return function &quot;,i,&quot;(&quot;,t.shimArgs.join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));for(var a=[],o=[],s=[[&quot;array&quot;,t.arrayArgs[0],&quot;.shape.slice(&quot;,Math.max(0,t.arrayBlockIndices[0]),t.arrayBlockIndices[0]&lt;0?&quot;,&quot;+t.arrayBlockIndices[0]+&quot;)&quot;:&quot;)&quot;].join(&quot;&quot;)],l=[],c=[],u=0;u&lt;t.arrayArgs.length;++u){var f=t.arrayArgs[u];r.push([&quot;t&quot;,f,&quot;=array&quot;,f,&quot;.dtype,&quot;,&quot;r&quot;,f,&quot;=array&quot;,f,&quot;.order&quot;].join(&quot;&quot;)),a.push(&quot;t&quot;+f),a.push(&quot;r&quot;+f),o.push(&quot;t&quot;+f),o.push(&quot;r&quot;+f+&quot;.join()&quot;),s.push(&quot;array&quot;+f+&quot;.data&quot;),s.push(&quot;array&quot;+f+&quot;.stride&quot;),s.push(&quot;array&quot;+f+&quot;.offset|0&quot;),u&gt;0&amp;&amp;(l.push(&quot;array&quot;+t.arrayArgs[0]+&quot;.shape.length===array&quot;+f+&quot;.shape.length+&quot;+(Math.abs(t.arrayBlockIndices[0])-Math.abs(t.arrayBlockIndices[u]))),c.push(&quot;array&quot;+t.arrayArgs[0]+&quot;.shape[shapeIndex+&quot;+Math.max(0,t.arrayBlockIndices[0])+&quot;]===array&quot;+f+&quot;.shape[shapeIndex+&quot;+Math.max(0,t.arrayBlockIndices[u])+&quot;]&quot;))}for(t.arrayArgs.length&gt;1&amp;&amp;(e.push(&quot;if (!(&quot;+l.join(&quot; &amp;&amp; &quot;)+&quot;)) throw new Error('cwise: Arrays do not all have the same dimensionality!')&quot;),e.push(&quot;for(var shapeIndex=array&quot;+t.arrayArgs[0]+&quot;.shape.length-&quot;+Math.abs(t.arrayBlockIndices[0])+&quot;; shapeIndex--\x3e0;) {&quot;),e.push(&quot;if (!(&quot;+c.join(&quot; &amp;&amp; &quot;)+&quot;)) throw new Error('cwise: Arrays do not all have the same shape!')&quot;),e.push(&quot;}&quot;)),u=0;u&lt;t.scalarArgs.length;++u)s.push(&quot;scalar&quot;+t.scalarArgs[u]);return r.push([&quot;type=[&quot;,o.join(&quot;,&quot;),&quot;].join()&quot;].join(&quot;&quot;)),r.push(&quot;proc=CACHED[type]&quot;),e.push(&quot;var &quot;+r.join(&quot;,&quot;)),e.push([&quot;if(!proc){&quot;,&quot;CACHED[type]=proc=compile([&quot;,a.join(&quot;,&quot;),&quot;])}&quot;,&quot;return proc(&quot;,s.join(&quot;,&quot;),&quot;)}&quot;].join(&quot;&quot;)),t.debug&amp;&amp;console.log(&quot;-----Generated thunk:\n&quot;+e.join(&quot;\n&quot;)+&quot;\n----------&quot;),new Function(&quot;compile&quot;,e.join(&quot;\n&quot;))(n.bind(void 0,t))}},{&quot;./compile.js&quot;:152}],154:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;type/value/is&quot;),a=t(&quot;type/value/ensure&quot;),o=t(&quot;type/plain-function/ensure&quot;),s=t(&quot;es5-ext/object/copy&quot;),l=t(&quot;es5-ext/object/normalize-options&quot;),c=t(&quot;es5-ext/object/map&quot;),u=Function.prototype.bind,f=Object.defineProperty,h=Object.prototype.hasOwnProperty;n=function(t,e,r){var n,i=a(e)&amp;&amp;o(e.value);return delete(n=s(e)).writable,delete n.value,n.get=function(){return!r.overwriteDefinition&amp;&amp;h.call(this,t)?i:(e.value=u.call(i,r.resolveContext?r.resolveContext(this):this),f(this,t,e),this[t])},n},e.exports=function(t){var e=l(arguments[1]);return i(e.resolveContext)&amp;&amp;o(e.resolveContext),c(t,(function(t,r){return n(r,t,e)}))}},{&quot;es5-ext/object/copy&quot;:196,&quot;es5-ext/object/map&quot;:204,&quot;es5-ext/object/normalize-options&quot;:205,&quot;type/plain-function/ensure&quot;:589,&quot;type/value/ensure&quot;:593,&quot;type/value/is&quot;:594}],155:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;type/value/is&quot;),i=t(&quot;type/plain-function/is&quot;),a=t(&quot;es5-ext/object/assign&quot;),o=t(&quot;es5-ext/object/normalize-options&quot;),s=t(&quot;es5-ext/string/#/contains&quot;);(e.exports=function(t,e){var r,i,l,c,u;return arguments.length&lt;2||&quot;string&quot;!=typeof t?(c=e,e=t,t=null):c=arguments[2],n(t)?(r=s.call(t,&quot;c&quot;),i=s.call(t,&quot;e&quot;),l=s.call(t,&quot;w&quot;)):(r=l=!0,i=!1),u={value:e,configurable:r,enumerable:i,writable:l},c?a(o(c),u):u}).gs=function(t,e,r){var l,c,u,f;return&quot;string&quot;!=typeof t?(u=r,r=e,e=t,t=null):u=arguments[3],n(e)?i(e)?n(r)?i(r)||(u=r,r=void 0):r=void 0:(u=e,e=r=void 0):e=void 0,n(t)?(l=s.call(t,&quot;c&quot;),c=s.call(t,&quot;e&quot;)):(l=!0,c=!1),f={get:e,set:r,configurable:l,enumerable:c},u?a(o(u),f):f}},{&quot;es5-ext/object/assign&quot;:193,&quot;es5-ext/object/normalize-options&quot;:205,&quot;es5-ext/string/#/contains&quot;:212,&quot;type/plain-function/is&quot;:590,&quot;type/value/is&quot;:594}],156:[function(t,e,r){!function(t,n){n(&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?r:t.d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){return t&lt;e?-1:t&gt;e?1:t&gt;=e?0:NaN}function r(t){var r;return 1===t.length&amp;&amp;(r=t,t=function(t,n){return e(r(t),n)}),{left:function(e,r,n,i){for(null==n&amp;&amp;(n=0),null==i&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&lt;0?n=a+1:i=a}return n},right:function(e,r,n,i){for(null==n&amp;&amp;(n=0),null==i&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&gt;0?i=a:n=a+1}return n}}}var n=r(e),i=n.right,a=n.left;function o(t,e){return[t,e]}function s(t){return null===t?NaN:+t}function l(t,e){var r,n,i=t.length,a=0,o=-1,l=0,c=0;if(null==e)for(;++o&lt;i;)isNaN(r=s(t[o]))||(c+=(n=r-l)*(r-(l+=n/++a)));else for(;++o&lt;i;)isNaN(r=s(e(t[o],o,t)))||(c+=(n=r-l)*(r-(l+=n/++a)));if(a&gt;1)return c/(a-1)}function c(t,e){var r=l(t,e);return r?Math.sqrt(r):r}function u(t,e){var r,n,i,a=t.length,o=-1;if(null==e){for(;++o&lt;a;)if(null!=(r=t[o])&amp;&amp;r&gt;=r)for(n=i=r;++o&lt;a;)null!=(r=t[o])&amp;&amp;(n&gt;r&amp;&amp;(n=r),i&lt;r&amp;&amp;(i=r))}else for(;++o&lt;a;)if(null!=(r=e(t[o],o,t))&amp;&amp;r&gt;=r)for(n=i=r;++o&lt;a;)null!=(r=e(t[o],o,t))&amp;&amp;(n&gt;r&amp;&amp;(n=r),i&lt;r&amp;&amp;(i=r));return[n,i]}var f=Array.prototype,h=f.slice,p=f.map;function d(t){return function(){return t}}function g(t){return t}function m(t,e,r){t=+t,e=+e,r=(i=arguments.length)&lt;2?(e=t,t=0,1):i&lt;3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),a=new Array(i);++n&lt;i;)a[n]=t+n*r;return a}var v=Math.sqrt(50),y=Math.sqrt(10),x=Math.sqrt(2);function b(t,e,r){var n=(e-t)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),a=n/Math.pow(10,i);return i&gt;=0?(a&gt;=v?10:a&gt;=y?5:a&gt;=x?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a&gt;=v?10:a&gt;=y?5:a&gt;=x?2:1)}function _(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/i;return a&gt;=v?i*=10:a&gt;=y?i*=5:a&gt;=x&amp;&amp;(i*=2),e&lt;t?-i:i}function w(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function T(t,e,r){if(null==r&amp;&amp;(r=s),n=t.length){if((e=+e)&lt;=0||n&lt;2)return+r(t[0],0,t);if(e&gt;=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t);return o+(+r(t[a+1],a+1,t)-o)*(i-a)}}function k(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a&lt;i;)if(null!=(r=t[a])&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=t[a])&amp;&amp;n&gt;r&amp;&amp;(n=r)}else for(;++a&lt;i;)if(null!=(r=e(t[a],a,t))&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=e(t[a],a,t))&amp;&amp;n&gt;r&amp;&amp;(n=r);return n}function M(t){if(!(i=t.length))return[];for(var e=-1,r=k(t,A),n=new Array(r);++e&lt;r;)for(var i,a=-1,o=n[e]=new Array(i);++a&lt;i;)o[a]=t[a][e];return n}function A(t){return t.length}t.bisect=i,t.bisectRight=i,t.bisectLeft=a,t.ascending=e,t.bisector=r,t.cross=function(t,e,r){var n,i,a,s,l=t.length,c=e.length,u=new Array(l*c);for(null==r&amp;&amp;(r=o),n=a=0;n&lt;l;++n)for(s=t[n],i=0;i&lt;c;++i,++a)u[a]=r(s,e[i]);return u},t.descending=function(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN},t.deviation=c,t.extent=u,t.histogram=function(){var t=g,e=u,r=w;function n(n){var a,o,s=n.length,l=new Array(s);for(a=0;a&lt;s;++a)l[a]=t(n[a],a,n);var c=e(l),u=c[0],f=c[1],h=r(l,u,f);Array.isArray(h)||(h=_(u,f,h),h=m(Math.ceil(u/h)*h,f,h));for(var p=h.length;h[0]&lt;=u;)h.shift(),--p;for(;h[p-1]&gt;f;)h.pop(),--p;var d,g=new Array(p+1);for(a=0;a&lt;=p;++a)(d=g[a]=[]).x0=a&gt;0?h[a-1]:u,d.x1=a&lt;p?h[a]:f;for(a=0;a&lt;s;++a)u&lt;=(o=l[a])&amp;&amp;o&lt;=f&amp;&amp;g[i(h,o,0,p)].push(n[a]);return g}return n.value=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:d(e),n):t},n.domain=function(t){return arguments.length?(e=&quot;function&quot;==typeof t?t:d([t[0],t[1]]),n):e},n.thresholds=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:Array.isArray(t)?d(h.call(t)):d(t),n):r},n},t.thresholdFreedmanDiaconis=function(t,r,n){return t=p.call(t,s).sort(e),Math.ceil((n-r)/(2*(T(t,.75)-T(t,.25))*Math.pow(t.length,-1/3)))},t.thresholdScott=function(t,e,r){return Math.ceil((r-e)/(3.5*c(t)*Math.pow(t.length,-1/3)))},t.thresholdSturges=w,t.max=function(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a&lt;i;)if(null!=(r=t[a])&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=t[a])&amp;&amp;r&gt;n&amp;&amp;(n=r)}else for(;++a&lt;i;)if(null!=(r=e(t[a],a,t))&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=e(t[a],a,t))&amp;&amp;r&gt;n&amp;&amp;(n=r);return n},t.mean=function(t,e){var r,n=t.length,i=n,a=-1,o=0;if(null==e)for(;++a&lt;n;)isNaN(r=s(t[a]))?--i:o+=r;else for(;++a&lt;n;)isNaN(r=s(e(t[a],a,t)))?--i:o+=r;if(i)return o/i},t.median=function(t,r){var n,i=t.length,a=-1,o=[];if(null==r)for(;++a&lt;i;)isNaN(n=s(t[a]))||o.push(n);else for(;++a&lt;i;)isNaN(n=s(r(t[a],a,t)))||o.push(n);return T(o.sort(e),.5)},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a&lt;i;)o+=t[a].length;for(r=new Array(o);--i&gt;=0;)for(e=(n=t[i]).length;--e&gt;=0;)r[--o]=n[e];return r},t.min=k,t.pairs=function(t,e){null==e&amp;&amp;(e=o);for(var r=0,n=t.length-1,i=t[0],a=new Array(n&lt;0?0:n);r&lt;n;)a[r]=e(i,i=t[++r]);return a},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.quantile=T,t.range=m,t.scan=function(t,r){if(n=t.length){var n,i,a=0,o=0,s=t[o];for(null==r&amp;&amp;(r=e);++a&lt;n;)(r(i=t[a],s)&lt;0||0!==r(s,s))&amp;&amp;(s=i,o=a);return 0===r(s,s)?o:void 0}},t.shuffle=function(t,e,r){for(var n,i,a=(null==r?t.length:r)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.sum=function(t,e){var r,n=t.length,i=-1,a=0;if(null==e)for(;++i&lt;n;)(r=+t[i])&amp;&amp;(a+=r);else for(;++i&lt;n;)(r=+e(t[i],i,t))&amp;&amp;(a+=r);return a},t.ticks=function(t,e,r){var n,i,a,o,s=-1;if(r=+r,(t=+t)===(e=+e)&amp;&amp;r&gt;0)return[t];if((n=e&lt;t)&amp;&amp;(i=t,t=e,e=i),0===(o=b(t,e,r))||!isFinite(o))return[];if(o&gt;0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s&lt;i;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++s&lt;i;)a[s]=(t-s)/o;return n&amp;&amp;a.reverse(),a},t.tickIncrement=b,t.tickStep=_,t.transpose=M,t.variance=l,t.zip=function(){return M(arguments)},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],157:[function(t,e,r){!function(t,n){n(&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?r:t.d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(){}function r(t,r){var n=new e;if(t instanceof e)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var i,a=-1,o=t.length;if(null==r)for(;++a&lt;o;)n.set(a,t[a]);else for(;++a&lt;o;)n.set(r(i=t[a],a,t),i)}else if(t)for(var s in t)n.set(s,t[s]);return n}function n(){return{}}function i(t,e,r){t[e]=r}function a(){return r()}function o(t,e,r){t.set(e,r)}function s(){}e.prototype=r.prototype={constructor:e,has:function(t){return&quot;$&quot;+t in this},get:function(t){return this[&quot;$&quot;+t]},set:function(t,e){return this[&quot;$&quot;+t]=e,this},remove:function(t){var e=&quot;$&quot;+t;return e in this&amp;&amp;delete this[e]},clear:function(){for(var t in this)&quot;$&quot;===t[0]&amp;&amp;delete this[t]},keys:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)&quot;$&quot;===e[0]&amp;&amp;++t;return t},empty:function(){for(var t in this)if(&quot;$&quot;===t[0])return!1;return!0},each:function(t){for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t(this[e],e.slice(1),this)}};var l=r.prototype;function c(t,e){var r=new s;if(t instanceof s)t.each((function(t){r.add(t)}));else if(t){var n=-1,i=t.length;if(null==e)for(;++n&lt;i;)r.add(t[n]);else for(;++n&lt;i;)r.add(e(t[n],n,t))}return r}s.prototype=c.prototype={constructor:s,has:l.has,add:function(t){return this[&quot;$&quot;+(t+=&quot;&quot;)]=t,this},remove:l.remove,clear:l.clear,values:l.keys,size:l.size,empty:l.empty,each:l.each},t.nest=function(){var t,e,s,l=[],c=[];function u(n,i,a,o){if(i&gt;=l.length)return null!=t&amp;&amp;n.sort(t),null!=e?e(n):n;for(var s,c,f,h=-1,p=n.length,d=l[i++],g=r(),m=a();++h&lt;p;)(f=g.get(s=d(c=n[h])+&quot;&quot;))?f.push(c):g.set(s,[c]);return g.each((function(t,e){o(m,e,u(t,i,a,o))})),m}return s={object:function(t){return u(t,0,n,i)},map:function(t){return u(t,0,a,o)},entries:function(t){return function t(r,n){if(++n&gt;l.length)return r;var i,a=c[n-1];return null!=e&amp;&amp;n&gt;=l.length?i=r.entries():(i=[],r.each((function(e,r){i.push({key:r,values:t(e,n)})}))),null!=a?i.sort((function(t,e){return a(t.key,e.key)})):i}(u(t,0,a,o),0)},key:function(t){return l.push(t),s},sortKeys:function(t){return c[l.length-1]=t,s},sortValues:function(e){return t=e,s},rollup:function(t){return e=t,s}}},t.set=c,t.map=r,t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],158:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function r(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function n(){}var i=&quot;\\s*([+-]?\\d+)\\s*&quot;,a=&quot;\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*&quot;,o=&quot;\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*&quot;,s=/^#([0-9a-f]{3,8})$/,l=new RegExp(&quot;^rgb\\(&quot;+[i,i,i]+&quot;\\)$&quot;),c=new RegExp(&quot;^rgb\\(&quot;+[o,o,o]+&quot;\\)$&quot;),u=new RegExp(&quot;^rgba\\(&quot;+[i,i,i,a]+&quot;\\)$&quot;),f=new RegExp(&quot;^rgba\\(&quot;+[o,o,o,a]+&quot;\\)$&quot;),h=new RegExp(&quot;^hsl\\(&quot;+[a,o,o]+&quot;\\)$&quot;),p=new RegExp(&quot;^hsla\\(&quot;+[a,o,o,a]+&quot;\\)$&quot;),d={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 g(){return this.rgb().formatHex()}function m(){return this.rgb().formatRgb()}function v(t){var e,r;return t=(t+&quot;&quot;).trim().toLowerCase(),(e=s.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?y(e):3===r?new w(e&gt;&gt;8&amp;15|e&gt;&gt;4&amp;240,e&gt;&gt;4&amp;15|240&amp;e,(15&amp;e)&lt;&lt;4|15&amp;e,1):8===r?x(e&gt;&gt;24&amp;255,e&gt;&gt;16&amp;255,e&gt;&gt;8&amp;255,(255&amp;e)/255):4===r?x(e&gt;&gt;12&amp;15|e&gt;&gt;8&amp;240,e&gt;&gt;8&amp;15|e&gt;&gt;4&amp;240,e&gt;&gt;4&amp;15|240&amp;e,((15&amp;e)&lt;&lt;4|15&amp;e)/255):null):(e=l.exec(t))?new w(e[1],e[2],e[3],1):(e=c.exec(t))?new w(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=u.exec(t))?x(e[1],e[2],e[3],e[4]):(e=f.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=h.exec(t))?A(e[1],e[2]/100,e[3]/100,1):(e=p.exec(t))?A(e[1],e[2]/100,e[3]/100,e[4]):d.hasOwnProperty(t)?y(d[t]):&quot;transparent&quot;===t?new w(NaN,NaN,NaN,0):null}function y(t){return new w(t&gt;&gt;16&amp;255,t&gt;&gt;8&amp;255,255&amp;t,1)}function x(t,e,r,n){return n&lt;=0&amp;&amp;(t=e=r=NaN),new w(t,e,r,n)}function b(t){return t instanceof n||(t=v(t)),t?new w((t=t.rgb()).r,t.g,t.b,t.opacity):new w}function _(t,e,r,n){return 1===arguments.length?b(t):new w(t,e,r,null==n?1:n)}function w(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function T(){return&quot;#&quot;+M(this.r)+M(this.g)+M(this.b)}function k(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?&quot;rgb(&quot;:&quot;rgba(&quot;)+Math.max(0,Math.min(255,Math.round(this.r)||0))+&quot;, &quot;+Math.max(0,Math.min(255,Math.round(this.g)||0))+&quot;, &quot;+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?&quot;)&quot;:&quot;, &quot;+t+&quot;)&quot;)}function M(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))&lt;16?&quot;0&quot;:&quot;&quot;)+t.toString(16)}function A(t,e,r,n){return n&lt;=0?t=e=r=NaN:r&lt;=0||r&gt;=1?t=e=NaN:e&lt;=0&amp;&amp;(t=NaN),new C(t,e,r,n)}function S(t){if(t instanceof C)return new C(t.h,t.s,t.l,t.opacity);if(t instanceof n||(t=v(t)),!t)return new C;if(t instanceof C)return t;var e=(t=t.rgb()).r/255,r=t.g/255,i=t.b/255,a=Math.min(e,r,i),o=Math.max(e,r,i),s=NaN,l=o-a,c=(o+a)/2;return l?(s=e===o?(r-i)/l+6*(r&lt;i):r===o?(i-e)/l+2:(e-r)/l+4,l/=c&lt;.5?o+a:2-o-a,s*=60):l=c&gt;0&amp;&amp;c&lt;1?0:s,new C(s,l,c,t.opacity)}function E(t,e,r,n){return 1===arguments.length?S(t):new C(t,e,r,null==n?1:n)}function C(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function L(t,e,r){return 255*(t&lt;60?e+(r-e)*t/60:t&lt;180?r:t&lt;240?e+(r-e)*(240-t)/60:e)}e(n,v,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:g,formatHex:g,formatHsl:function(){return S(this).formatHsl()},formatRgb:m,toString:m}),e(w,_,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5&lt;=this.r&amp;&amp;this.r&lt;255.5&amp;&amp;-.5&lt;=this.g&amp;&amp;this.g&lt;255.5&amp;&amp;-.5&lt;=this.b&amp;&amp;this.b&lt;255.5&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},hex:T,formatHex:T,formatRgb:k,toString:k})),e(C,E,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new C(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new C(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h&lt;0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r&lt;.5?r:1-r)*e,i=2*r-n;return new w(L(t&gt;=240?t-240:t+120,i,n),L(t,i,n),L(t&lt;120?t+240:t-120,i,n),this.opacity)},displayable:function(){return(0&lt;=this.s&amp;&amp;this.s&lt;=1||isNaN(this.s))&amp;&amp;0&lt;=this.l&amp;&amp;this.l&lt;=1&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?&quot;hsl(&quot;:&quot;hsla(&quot;)+(this.h||0)+&quot;, &quot;+100*(this.s||0)+&quot;%, &quot;+100*(this.l||0)+&quot;%&quot;+(1===t?&quot;)&quot;:&quot;, &quot;+t+&quot;)&quot;)}}));var I=Math.PI/180,P=180/Math.PI,z=6/29,O=3*z*z;function D(t){if(t instanceof F)return new F(t.l,t.a,t.b,t.opacity);if(t instanceof H)return G(t);t instanceof w||(t=b(t));var e,r,n=U(t.r),i=U(t.g),a=U(t.b),o=B((.2225045*n+.7168786*i+.0606169*a)/1);return n===i&amp;&amp;i===a?e=r=o:(e=B((.4360747*n+.3850649*i+.1430804*a)/.96422),r=B((.0139322*n+.0971045*i+.7141733*a)/.82521)),new F(116*o-16,500*(e-o),200*(o-r),t.opacity)}function R(t,e,r,n){return 1===arguments.length?D(t):new F(t,e,r,null==n?1:n)}function F(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function B(t){return t&gt;.008856451679035631?Math.pow(t,1/3):t/O+4/29}function N(t){return t&gt;z?t*t*t:O*(t-4/29)}function j(t){return 255*(t&lt;=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function U(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function V(t){if(t instanceof H)return new H(t.h,t.c,t.l,t.opacity);if(t instanceof F||(t=D(t)),0===t.a&amp;&amp;0===t.b)return new H(NaN,0&lt;t.l&amp;&amp;t.l&lt;100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*P;return new H(e&lt;0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function q(t,e,r,n){return 1===arguments.length?V(t):new H(t,e,r,null==n?1:n)}function H(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function G(t){if(isNaN(t.h))return new F(t.l,0,0,t.opacity);var e=t.h*I;return new F(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}e(F,R,r(n,{brighter:function(t){return new F(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new F(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new w(j(3.1338561*(e=.96422*N(e))-1.6168667*(t=1*N(t))-.4906146*(r=.82521*N(r))),j(-.9787684*e+1.9161415*t+.033454*r),j(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),e(H,q,r(n,{brighter:function(t){return new H(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new H(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return G(this).rgb()}}));var Y=-.14861,W=1.78277,X=-.29227,Z=-.90649,J=1.97294,K=J*Z,Q=J*W,$=W*X-Z*Y;function tt(t){if(t instanceof rt)return new rt(t.h,t.s,t.l,t.opacity);t instanceof w||(t=b(t));var e=t.r/255,r=t.g/255,n=t.b/255,i=($*n+K*e-Q*r)/($+K-Q),a=n-i,o=(J*(r-i)-X*a)/Z,s=Math.sqrt(o*o+a*a)/(J*i*(1-i)),l=s?Math.atan2(o,a)*P-120:NaN;return new rt(l&lt;0?l+360:l,s,i,t.opacity)}function et(t,e,r,n){return 1===arguments.length?tt(t):new rt(t,e,r,null==n?1:n)}function rt(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}e(rt,et,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*I,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),i=Math.sin(t);return new w(255*(e+r*(Y*n+W*i)),255*(e+r*(X*n+Z*i)),255*(e+r*(J*n)),this.opacity)}})),t.color=v,t.cubehelix=et,t.gray=function(t,e){return new F(t,0,0,null==e?1:e)},t.hcl=q,t.hsl=E,t.lab=R,t.lch=function(t,e,r,n){return 1===arguments.length?V(t):new H(r,e,t,null==n?1:n)},t.rgb=_,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],159:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e={value:function(){}};function r(){for(var t,e=0,r=arguments.length,i={};e&lt;r;++e){if(!(t=arguments[e]+&quot;&quot;)||t in i||/[\s.]/.test(t))throw new Error(&quot;illegal type: &quot;+t);i[t]=[]}return new n(i)}function n(t){this._=t}function i(t,e){return t.trim().split(/^|\s+/).map((function(t){var r=&quot;&quot;,n=t.indexOf(&quot;.&quot;);if(n&gt;=0&amp;&amp;(r=t.slice(n+1),t=t.slice(0,n)),t&amp;&amp;!e.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);return{type:t,name:r}}))}function a(t,e){for(var r,n=0,i=t.length;n&lt;i;++n)if((r=t[n]).name===e)return r.value}function o(t,r,n){for(var i=0,a=t.length;i&lt;a;++i)if(t[i].name===r){t[i]=e,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&amp;&amp;t.push({name:r,value:n}),t}n.prototype=r.prototype={constructor:n,on:function(t,e){var r,n=this._,s=i(t+&quot;&quot;,n),l=-1,c=s.length;if(!(arguments.length&lt;2)){if(null!=e&amp;&amp;&quot;function&quot;!=typeof e)throw new Error(&quot;invalid callback: &quot;+e);for(;++l&lt;c;)if(r=(t=s[l]).type)n[r]=o(n[r],t.name,e);else if(null==e)for(r in n)n[r]=o(n[r],t.name,null);return this}for(;++l&lt;c;)if((r=(t=s[l]).type)&amp;&amp;(r=a(n[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new n(t)},call:function(t,e){if((r=arguments.length-2)&gt;0)for(var r,n,i=new Array(r),a=0;a&lt;r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);for(a=0,r=(n=this._[t]).length;a&lt;r;++a)n[a].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);for(var n=this._[t],i=0,a=n.length;i&lt;a;++i)n[i].value.apply(e,r)}},t.dispatch=r,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],160:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-quadtree&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-dispatch&quot;),t(&quot;d3-timer&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,n.d3)}(this,(function(t,e,r,n,i){&quot;use strict&quot;;function a(t){return function(){return t}}function o(){return 1e-6*(Math.random()-.5)}function s(t){return t.x+t.vx}function l(t){return t.y+t.vy}function c(t){return t.index}function u(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function f(t){return t.x}function h(t){return t.y}var p=Math.PI*(3-Math.sqrt(5));t.forceCenter=function(t,e){var r;function n(){var n,i,a=r.length,o=0,s=0;for(n=0;n&lt;a;++n)o+=(i=r[n]).x,s+=i.y;for(o=o/a-t,s=s/a-e,n=0;n&lt;a;++n)(i=r[n]).x-=o,i.y-=s}return null==t&amp;&amp;(t=0),null==e&amp;&amp;(e=0),n.initialize=function(t){r=t},n.x=function(e){return arguments.length?(t=+e,n):t},n.y=function(t){return arguments.length?(e=+t,n):e},n},t.forceCollide=function(t){var r,n,i=1,c=1;function u(){for(var t,a,u,h,p,d,g,m=r.length,v=0;v&lt;c;++v)for(a=e.quadtree(r,s,l).visitAfter(f),t=0;t&lt;m;++t)u=r[t],d=n[u.index],g=d*d,h=u.x+u.vx,p=u.y+u.vy,a.visit(y);function y(t,e,r,n,a){var s=t.data,l=t.r,c=d+l;if(!s)return e&gt;h+c||n&lt;h-c||r&gt;p+c||a&lt;p-c;if(s.index&gt;u.index){var f=h-s.x-s.vx,m=p-s.y-s.vy,v=f*f+m*m;v&lt;c*c&amp;&amp;(0===f&amp;&amp;(v+=(f=o())*f),0===m&amp;&amp;(v+=(m=o())*m),v=(c-(v=Math.sqrt(v)))/v*i,u.vx+=(f*=v)*(c=(l*=l)/(g+l)),u.vy+=(m*=v)*c,s.vx-=f*(c=1-c),s.vy-=m*c)}}}function f(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e&lt;4;++e)t[e]&amp;&amp;t[e].r&gt;t.r&amp;&amp;(t.r=t[e].r)}function h(){if(r){var e,i,a=r.length;for(n=new Array(a),e=0;e&lt;a;++e)i=r[e],n[i.index]=+t(i,e,r)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?1:+t)),u.initialize=function(t){r=t,h()},u.iterations=function(t){return arguments.length?(c=+t,u):c},u.strength=function(t){return arguments.length?(i=+t,u):i},u.radius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),h(),u):t},u},t.forceLink=function(t){var e,n,i,s,l,f=c,h=function(t){return 1/Math.min(s[t.source.index],s[t.target.index])},p=a(30),d=1;function g(r){for(var i=0,a=t.length;i&lt;d;++i)for(var s,c,u,f,h,p,g,m=0;m&lt;a;++m)c=(s=t[m]).source,f=(u=s.target).x+u.vx-c.x-c.vx||o(),h=u.y+u.vy-c.y-c.vy||o(),f*=p=((p=Math.sqrt(f*f+h*h))-n[m])/p*r*e[m],h*=p,u.vx-=f*(g=l[m]),u.vy-=h*g,c.vx+=f*(g=1-g),c.vy+=h*g}function m(){if(i){var a,o,c=i.length,h=t.length,p=r.map(i,f);for(a=0,s=new Array(c);a&lt;h;++a)(o=t[a]).index=a,&quot;object&quot;!=typeof o.source&amp;&amp;(o.source=u(p,o.source)),&quot;object&quot;!=typeof o.target&amp;&amp;(o.target=u(p,o.target)),s[o.source.index]=(s[o.source.index]||0)+1,s[o.target.index]=(s[o.target.index]||0)+1;for(a=0,l=new Array(h);a&lt;h;++a)o=t[a],l[a]=s[o.source.index]/(s[o.source.index]+s[o.target.index]);e=new Array(h),v(),n=new Array(h),y()}}function v(){if(i)for(var r=0,n=t.length;r&lt;n;++r)e[r]=+h(t[r],r,t)}function y(){if(i)for(var e=0,r=t.length;e&lt;r;++e)n[e]=+p(t[e],e,t)}return null==t&amp;&amp;(t=[]),g.initialize=function(t){i=t,m()},g.links=function(e){return arguments.length?(t=e,m(),g):t},g.id=function(t){return arguments.length?(f=t,g):f},g.iterations=function(t){return arguments.length?(d=+t,g):d},g.strength=function(t){return arguments.length?(h=&quot;function&quot;==typeof t?t:a(+t),v(),g):h},g.distance=function(t){return arguments.length?(p=&quot;function&quot;==typeof t?t:a(+t),y(),g):p},g},t.forceManyBody=function(){var t,r,n,i,s=a(-30),l=1,c=1/0,u=.81;function p(i){var a,o=t.length,s=e.quadtree(t,f,h).visitAfter(g);for(n=i,a=0;a&lt;o;++a)r=t[a],s.visit(m)}function d(){if(t){var e,r,n=t.length;for(i=new Array(n),e=0;e&lt;n;++e)r=t[e],i[r.index]=+s(r,e,t)}}function g(t){var e,r,n,a,o,s=0,l=0;if(t.length){for(n=a=o=0;o&lt;4;++o)(e=t[o])&amp;&amp;(r=Math.abs(e.value))&amp;&amp;(s+=e.value,l+=r,n+=r*e.x,a+=r*e.y);t.x=n/l,t.y=a/l}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=i[e.data.index]}while(e=e.next)}t.value=s}function m(t,e,a,s){if(!t.value)return!0;var f=t.x-r.x,h=t.y-r.y,p=s-e,d=f*f+h*h;if(p*p/u&lt;d)return d&lt;c&amp;&amp;(0===f&amp;&amp;(d+=(f=o())*f),0===h&amp;&amp;(d+=(h=o())*h),d&lt;l&amp;&amp;(d=Math.sqrt(l*d)),r.vx+=f*t.value*n/d,r.vy+=h*t.value*n/d),!0;if(!(t.length||d&gt;=c)){(t.data!==r||t.next)&amp;&amp;(0===f&amp;&amp;(d+=(f=o())*f),0===h&amp;&amp;(d+=(h=o())*h),d&lt;l&amp;&amp;(d=Math.sqrt(l*d)));do{t.data!==r&amp;&amp;(p=i[t.data.index]*n/d,r.vx+=f*p,r.vy+=h*p)}while(t=t.next)}}return p.initialize=function(e){t=e,d()},p.strength=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:a(+t),d(),p):s},p.distanceMin=function(t){return arguments.length?(l=t*t,p):Math.sqrt(l)},p.distanceMax=function(t){return arguments.length?(c=t*t,p):Math.sqrt(c)},p.theta=function(t){return arguments.length?(u=t*t,p):Math.sqrt(u)},p},t.forceRadial=function(t,e,r){var n,i,o,s=a(.1);function l(t){for(var a=0,s=n.length;a&lt;s;++a){var l=n[a],c=l.x-e||1e-6,u=l.y-r||1e-6,f=Math.sqrt(c*c+u*u),h=(o[a]-f)*i[a]*t/f;l.vx+=c*h,l.vy+=u*h}}function c(){if(n){var e,r=n.length;for(i=new Array(r),o=new Array(r),e=0;e&lt;r;++e)o[e]=+t(n[e],e,n),i[e]=isNaN(o[e])?0:+s(n[e],e,n)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(+t)),null==e&amp;&amp;(e=0),null==r&amp;&amp;(r=0),l.initialize=function(t){n=t,c()},l.strength=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:a(+t),c(),l):s},l.radius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),c(),l):t},l.x=function(t){return arguments.length?(e=+t,l):e},l.y=function(t){return arguments.length?(r=+t,l):r},l},t.forceSimulation=function(t){var e,a=1,o=.001,s=1-Math.pow(o,1/300),l=0,c=.6,u=r.map(),f=i.timer(d),h=n.dispatch(&quot;tick&quot;,&quot;end&quot;);function d(){g(),h.call(&quot;tick&quot;,e),a&lt;o&amp;&amp;(f.stop(),h.call(&quot;end&quot;,e))}function g(r){var n,i,o=t.length;void 0===r&amp;&amp;(r=1);for(var f=0;f&lt;r;++f)for(a+=(l-a)*s,u.each((function(t){t(a)})),n=0;n&lt;o;++n)null==(i=t[n]).fx?i.x+=i.vx*=c:(i.x=i.fx,i.vx=0),null==i.fy?i.y+=i.vy*=c:(i.y=i.fy,i.vy=0);return e}function m(){for(var e,r=0,n=t.length;r&lt;n;++r){if((e=t[r]).index=r,null!=e.fx&amp;&amp;(e.x=e.fx),null!=e.fy&amp;&amp;(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(r),a=r*p;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&amp;&amp;(e.vx=e.vy=0)}}function v(e){return e.initialize&amp;&amp;e.initialize(t),e}return null==t&amp;&amp;(t=[]),m(),e={tick:g,restart:function(){return f.restart(d),e},stop:function(){return f.stop(),e},nodes:function(r){return arguments.length?(t=r,m(),u.each(v),e):t},alpha:function(t){return arguments.length?(a=+t,e):a},alphaMin:function(t){return arguments.length?(o=+t,e):o},alphaDecay:function(t){return arguments.length?(s=+t,e):+s},alphaTarget:function(t){return arguments.length?(l=+t,e):l},velocityDecay:function(t){return arguments.length?(c=1-t,e):1-c},force:function(t,r){return arguments.length&gt;1?(null==r?u.remove(t):u.set(t,v(r)),e):u.get(t)},find:function(e,r,n){var i,a,o,s,l,c=0,u=t.length;for(null==n?n=1/0:n*=n,c=0;c&lt;u;++c)(o=(i=e-(s=t[c]).x)*i+(a=r-s.y)*a)&lt;n&amp;&amp;(l=s,n=o);return l},on:function(t,r){return arguments.length&gt;1?(h.on(t,r),e):h.on(t)}}},t.forceX=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a&lt;o;++a)(i=e[a]).vx+=(n[a]-i.x)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a&lt;o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:a(+t),s(),o):i},o.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),s(),o):t},o},t.forceY=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a&lt;o;++a)(i=e[a]).vy+=(n[a]-i.y)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a&lt;o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:a(+t),s(),o):i},o.y=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),s(),o):t},o},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-collection&quot;:157,&quot;d3-dispatch&quot;:159,&quot;d3-quadtree&quot;:164,&quot;d3-timer&quot;:168}],161:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){return t.parent===e.parent?1:2}function r(t,e){return t+e.x}function n(t,e){return Math.max(t,e.y)}function i(t){var e=0,r=t.children,n=r&amp;&amp;r.length;if(n)for(;--n&gt;=0;)e+=r[n].value;else e=1;t.value=e}function a(t,e){var r,n,i,a,s,u=new c(t),f=+t.value&amp;&amp;(u.value=t.value),h=[u];for(null==e&amp;&amp;(e=o);r=h.pop();)if(f&amp;&amp;(r.value=+r.data.value),(i=e(r.data))&amp;&amp;(s=i.length))for(r.children=new Array(s),a=s-1;a&gt;=0;--a)h.push(n=r.children[a]=new c(i[a])),n.parent=r,n.depth=r.depth+1;return u.eachBefore(l)}function o(t){return t.children}function s(t){t.data=t.data.data}function l(t){var e=0;do{t.height=e}while((t=t.parent)&amp;&amp;t.height&lt;++e)}function c(t){this.data=t,this.depth=this.height=0,this.parent=null}c.prototype=a.prototype={constructor:c,count:function(){return this.eachAfter(i)},each:function(t){var e,r,n,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),r=a.children)for(n=0,i=r.length;n&lt;i;++n)o.push(r[n])}while(o.length);return this},eachAfter:function(t){for(var e,r,n,i=this,a=[i],o=[];i=a.pop();)if(o.push(i),e=i.children)for(r=0,n=e.length;r&lt;n;++r)a.push(e[r]);for(;i=o.pop();)t(i);return this},eachBefore:function(t){for(var e,r,n=this,i=[n];n=i.pop();)if(t(n),e=n.children)for(r=e.length-1;r&gt;=0;--r)i.push(e[r]);return this},sum:function(t){return this.eachAfter((function(e){for(var r=+t(e.data)||0,n=e.children,i=n&amp;&amp;n.length;--i&gt;=0;)r+=n[i].value;e.value=r}))},sort:function(t){return this.eachBefore((function(e){e.children&amp;&amp;e.children.sort(t)}))},path:function(t){for(var e=this,r=function(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;t=r.pop(),e=n.pop();for(;t===e;)i=t,t=r.pop(),e=n.pop();return i}(e,t),n=[e];e!==r;)e=e.parent,n.push(e);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(r){r!==t&amp;&amp;e.push({source:r.parent,target:r})})),e},copy:function(){return a(this).eachBefore(s)}};var u=Array.prototype.slice;function f(t){for(var e,r,n=0,i=(t=function(t){for(var e,r,n=t.length;n;)r=Math.random()*n--|0,e=t[n],t[n]=t[r],t[r]=e;return t}(u.call(t))).length,a=[];n&lt;i;)e=t[n],r&amp;&amp;d(r,e)?++n:(r=m(a=h(a,e)),n=0);return r}function h(t,e){var r,n;if(g(e,t))return[e];for(r=0;r&lt;t.length;++r)if(p(e,t[r])&amp;&amp;g(v(t[r],e),t))return[t[r],e];for(r=0;r&lt;t.length-1;++r)for(n=r+1;n&lt;t.length;++n)if(p(v(t[r],t[n]),e)&amp;&amp;p(v(t[r],e),t[n])&amp;&amp;p(v(t[n],e),t[r])&amp;&amp;g(y(t[r],t[n],e),t))return[t[r],t[n],e];throw new Error}function p(t,e){var r=t.r-e.r,n=e.x-t.x,i=e.y-t.y;return r&lt;0||r*r&lt;n*n+i*i}function d(t,e){var r=t.r-e.r+1e-6,n=e.x-t.x,i=e.y-t.y;return r&gt;0&amp;&amp;r*r&gt;n*n+i*i}function g(t,e){for(var r=0;r&lt;e.length;++r)if(!d(t,e[r]))return!1;return!0}function m(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return v(t[0],t[1]);case 3:return y(t[0],t[1],t[2])}var e}function v(t,e){var r=t.x,n=t.y,i=t.r,a=e.x,o=e.y,s=e.r,l=a-r,c=o-n,u=s-i,f=Math.sqrt(l*l+c*c);return{x:(r+a+l/f*u)/2,y:(n+o+c/f*u)/2,r:(f+i+s)/2}}function y(t,e,r){var n=t.x,i=t.y,a=t.r,o=e.x,s=e.y,l=e.r,c=r.x,u=r.y,f=r.r,h=n-o,p=n-c,d=i-s,g=i-u,m=l-a,v=f-a,y=n*n+i*i-a*a,x=y-o*o-s*s+l*l,b=y-c*c-u*u+f*f,_=p*d-h*g,w=(d*b-g*x)/(2*_)-n,T=(g*m-d*v)/_,k=(p*x-h*b)/(2*_)-i,M=(h*v-p*m)/_,A=T*T+M*M-1,S=2*(a+w*T+k*M),E=w*w+k*k-a*a,C=-(A?(S+Math.sqrt(S*S-4*A*E))/(2*A):E/S);return{x:n+w+T*C,y:i+k+M*C,r:C}}function x(t,e,r){var n,i,a,o,s=t.x-e.x,l=t.y-e.y,c=s*s+l*l;c?(i=e.r+r.r,i*=i,o=t.r+r.r,i&gt;(o*=o)?(n=(c+o-i)/(2*c),a=Math.sqrt(Math.max(0,o/c-n*n)),r.x=t.x-n*s-a*l,r.y=t.y-n*l+a*s):(n=(c+i-o)/(2*c),a=Math.sqrt(Math.max(0,i/c-n*n)),r.x=e.x+n*s-a*l,r.y=e.y+n*l+a*s)):(r.x=e.x+r.r,r.y=e.y)}function b(t,e){var r=t.r+e.r-1e-6,n=e.x-t.x,i=e.y-t.y;return r&gt;0&amp;&amp;r*r&gt;n*n+i*i}function _(t){var e=t._,r=t.next._,n=e.r+r.r,i=(e.x*r.r+r.x*e.r)/n,a=(e.y*r.r+r.y*e.r)/n;return i*i+a*a}function w(t){this._=t,this.next=null,this.previous=null}function T(t){if(!(i=t.length))return 0;var e,r,n,i,a,o,s,l,c,u,h;if((e=t[0]).x=0,e.y=0,!(i&gt;1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(i&gt;2))return e.r+r.r;x(r,e,n=t[2]),e=new w(e),r=new w(r),n=new w(n),e.next=n.previous=r,r.next=e.previous=n,n.next=r.previous=e;t:for(s=3;s&lt;i;++s){x(e._,r._,n=t[s]),n=new w(n),l=r.next,c=e.previous,u=r._.r,h=e._.r;do{if(u&lt;=h){if(b(l._,n._)){r=l,e.next=r,r.previous=e,--s;continue t}u+=l._.r,l=l.next}else{if(b(c._,n._)){(e=c).next=r,r.previous=e,--s;continue t}h+=c._.r,c=c.previous}}while(l!==c.next);for(n.previous=e,n.next=r,e.next=r.previous=r=n,a=_(e);(n=n.next)!==r;)(o=_(n))&lt;a&amp;&amp;(e=n,a=o);r=e.next}for(e=[r._],n=r;(n=n.next)!==r;)e.push(n._);for(n=f(e),s=0;s&lt;i;++s)(e=t[s]).x-=n.x,e.y-=n.y;return n.r}function k(t){return null==t?null:M(t)}function M(t){if(&quot;function&quot;!=typeof t)throw new Error;return t}function A(){return 0}function S(t){return function(){return t}}function E(t){return Math.sqrt(t.value)}function C(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function L(t,e){return function(r){if(n=r.children){var n,i,a,o=n.length,s=t(r)*e||0;if(s)for(i=0;i&lt;o;++i)n[i].r+=s;if(a=T(n),s)for(i=0;i&lt;o;++i)n[i].r-=s;r.r=a+s}}}function I(t){return function(e){var r=e.parent;e.r*=t,r&amp;&amp;(e.x=r.x+t*e.x,e.y=r.y+t*e.y)}}function P(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function z(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&amp;&amp;(n-e)/t.value;++s&lt;l;)(a=o[s]).y0=r,a.y1=i,a.x0=e,a.x1=e+=a.value*c}var O={depth:-1},D={};function R(t){return t.id}function F(t){return t.parentId}function B(t,e){return t.parent===e.parent?1:2}function N(t){var e=t.children;return e?e[0]:t.t}function j(t){var e=t.children;return e?e[e.length-1]:t.t}function U(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function V(t,e,r){return t.a.parent===e.parent?t.a:r}function q(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function H(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&amp;&amp;(i-r)/t.value;++s&lt;l;)(a=o[s]).x0=e,a.x1=n,a.y0=r,a.y1=r+=a.value*c}q.prototype=Object.create(c.prototype);var G=(1+Math.sqrt(5))/2;function Y(t,e,r,n,i,a){for(var o,s,l,c,u,f,h,p,d,g,m,v=[],y=e.children,x=0,b=0,_=y.length,w=e.value;x&lt;_;){l=i-r,c=a-n;do{u=y[b++].value}while(!u&amp;&amp;b&lt;_);for(f=h=u,m=u*u*(g=Math.max(c/l,l/c)/(w*t)),d=Math.max(h/m,m/f);b&lt;_;++b){if(u+=s=y[b].value,s&lt;f&amp;&amp;(f=s),s&gt;h&amp;&amp;(h=s),m=u*u*g,(p=Math.max(h/m,m/f))&gt;d){u-=s;break}d=p}v.push(o={value:u,dice:l&lt;c,children:y.slice(x,b)}),o.dice?z(o,r,n,i,w?n+=c*u/w:a):H(o,r,n,w?r+=l*u/w:i,a),w-=u,x=b}return v}var W=function t(e){function r(t,r,n,i,a){Y(e,t,r,n,i,a)}return r.ratio=function(e){return t((e=+e)&gt;1?e:1)},r}(G);var X=function t(e){function r(t,r,n,i,a){if((o=t._squarify)&amp;&amp;o.ratio===e)for(var o,s,l,c,u,f=-1,h=o.length,p=t.value;++f&lt;h;){for(l=(s=o[f]).children,c=s.value=0,u=l.length;c&lt;u;++c)s.value+=l[c].value;s.dice?z(s,r,n,i,n+=(a-n)*s.value/p):H(s,r,n,r+=(i-r)*s.value/p,a),p-=s.value}else t._squarify=o=Y(e,t,r,n,i,a),o.ratio=e}return r.ratio=function(e){return t((e=+e)&gt;1?e:1)},r}(G);t.cluster=function(){var t=e,i=1,a=1,o=!1;function s(e){var s,l=0;e.eachAfter((function(e){var i=e.children;i?(e.x=function(t){return t.reduce(r,0)/t.length}(i),e.y=function(t){return 1+t.reduce(n,0)}(i)):(e.x=s?l+=t(e,s):0,e.y=0,s=e)}));var c=function(t){for(var e;e=t.children;)t=e[0];return t}(e),u=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(e),f=c.x-t(c,u)/2,h=u.x+t(u,c)/2;return e.eachAfter(o?function(t){t.x=(t.x-e.x)*i,t.y=(e.y-t.y)*a}:function(t){t.x=(t.x-f)/(h-f)*i,t.y=(1-(e.y?t.y/e.y:1))*a})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(o=!1,i=+t[0],a=+t[1],s):o?null:[i,a]},s.nodeSize=function(t){return arguments.length?(o=!0,i=+t[0],a=+t[1],s):o?[i,a]:null},s},t.hierarchy=a,t.pack=function(){var t=null,e=1,r=1,n=A;function i(i){return i.x=e/2,i.y=r/2,t?i.eachBefore(C(t)).eachAfter(L(n,.5)).eachBefore(I(1)):i.eachBefore(C(E)).eachAfter(L(A,1)).eachAfter(L(n,i.r/Math.min(e,r))).eachBefore(I(Math.min(e,r)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=k(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],r=+t[1],i):[e,r]},i.padding=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:S(+t),i):n},i},t.packEnclose=f,t.packSiblings=function(t){return T(t),t},t.partition=function(){var t=1,e=1,r=0,n=!1;function i(i){var a=i.height+1;return i.x0=i.y0=r,i.x1=t,i.y1=e/a,i.eachBefore(function(t,e){return function(n){n.children&amp;&amp;z(n,n.x0,t*(n.depth+1)/e,n.x1,t*(n.depth+2)/e);var i=n.x0,a=n.y0,o=n.x1-r,s=n.y1-r;o&lt;i&amp;&amp;(i=o=(i+o)/2),s&lt;a&amp;&amp;(a=s=(a+s)/2),n.x0=i,n.y0=a,n.x1=o,n.y1=s}}(e,a)),n&amp;&amp;i.eachBefore(P),i}return i.round=function(t){return arguments.length?(n=!!t,i):n},i.size=function(r){return arguments.length?(t=+r[0],e=+r[1],i):[t,e]},i.padding=function(t){return arguments.length?(r=+t,i):r},i},t.stratify=function(){var t=R,e=F;function r(r){var n,i,a,o,s,u,f,h=r.length,p=new Array(h),d={};for(i=0;i&lt;h;++i)n=r[i],s=p[i]=new c(n),null!=(u=t(n,i,r))&amp;&amp;(u+=&quot;&quot;)&amp;&amp;(d[f=&quot;$&quot;+(s.id=u)]=f in d?D:s);for(i=0;i&lt;h;++i)if(s=p[i],null!=(u=e(r[i],i,r))&amp;&amp;(u+=&quot;&quot;)){if(!(o=d[&quot;$&quot;+u]))throw new Error(&quot;missing: &quot;+u);if(o===D)throw new Error(&quot;ambiguous: &quot;+u);o.children?o.children.push(s):o.children=[s],s.parent=o}else{if(a)throw new Error(&quot;multiple roots&quot;);a=s}if(!a)throw new Error(&quot;no root&quot;);if(a.parent=O,a.eachBefore((function(t){t.depth=t.parent.depth+1,--h})).eachBefore(l),a.parent=null,h&gt;0)throw new Error(&quot;cycle&quot;);return a}return r.id=function(e){return arguments.length?(t=M(e),r):t},r.parentId=function(t){return arguments.length?(e=M(t),r):e},r},t.tree=function(){var t=B,e=1,r=1,n=null;function i(i){var l=function(t){for(var e,r,n,i,a,o=new q(t,0),s=[o];e=s.pop();)if(n=e._.children)for(e.children=new Array(a=n.length),i=a-1;i&gt;=0;--i)s.push(r=e.children[i]=new q(n[i],i)),r.parent=e;return(o.parent=new q(null,0)).children=[o],o}(i);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(o),n)i.eachBefore(s);else{var c=i,u=i,f=i;i.eachBefore((function(t){t.x&lt;c.x&amp;&amp;(c=t),t.x&gt;u.x&amp;&amp;(u=t),t.depth&gt;f.depth&amp;&amp;(f=t)}));var h=c===u?1:t(c,u)/2,p=h-c.x,d=e/(u.x+h+p),g=r/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*g}))}return i}function a(e){var r=e.children,n=e.parent.children,i=e.i?n[e.i-1]:null;if(r){!function(t){for(var e,r=0,n=0,i=t.children,a=i.length;--a&gt;=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(e);var a=(r[0].z+r[r.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&amp;&amp;(e.z=i.z+t(e._,i._));e.parent.A=function(e,r,n){if(r){for(var i,a=e,o=e,s=r,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=j(s),a=N(a),s&amp;&amp;a;)l=N(l),(o=j(o)).a=e,(i=s.z+f-a.z-c+t(s._,a._))&gt;0&amp;&amp;(U(V(s,e,n),e,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&amp;&amp;!j(o)&amp;&amp;(o.t=s,o.m+=f-u),a&amp;&amp;!N(l)&amp;&amp;(l.t=a,l.m+=c-h,n=e)}return n}(e,i,e.parent.A||n[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*r}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(n=!1,e=+t[0],r=+t[1],i):n?null:[e,r]},i.nodeSize=function(t){return arguments.length?(n=!0,e=+t[0],r=+t[1],i):n?[e,r]:null},i},t.treemap=function(){var t=W,e=!1,r=1,n=1,i=[0],a=A,o=A,s=A,l=A,c=A;function u(t){return t.x0=t.y0=0,t.x1=r,t.y1=n,t.eachBefore(f),i=[0],e&amp;&amp;t.eachBefore(P),t}function f(e){var r=i[e.depth],n=e.x0+r,u=e.y0+r,f=e.x1-r,h=e.y1-r;f&lt;n&amp;&amp;(n=f=(n+f)/2),h&lt;u&amp;&amp;(u=h=(u+h)/2),e.x0=n,e.y0=u,e.x1=f,e.y1=h,e.children&amp;&amp;(r=i[e.depth+1]=a(e)/2,n+=c(e)-r,u+=o(e)-r,(f-=s(e)-r)&lt;n&amp;&amp;(n=f=(n+f)/2),(h-=l(e)-r)&lt;u&amp;&amp;(u=h=(u+h)/2),t(e,n,u,f,h))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(r=+t[0],n=+t[1],u):[r,n]},u.tile=function(e){return arguments.length?(t=M(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:S(+t),u):a},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:S(+t),u):o},u.paddingRight=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:S(+t),u):s},u.paddingBottom=function(t){return arguments.length?(l=&quot;function&quot;==typeof t?t:S(+t),u):l},u.paddingLeft=function(t){return arguments.length?(c=&quot;function&quot;==typeof t?t:S(+t),u):c},u},t.treemapBinary=function(t,e,r,n,i){var a,o,s=t.children,l=s.length,c=new Array(l+1);for(c[0]=o=a=0;a&lt;l;++a)c[a+1]=o+=s[a].value;!function t(e,r,n,i,a,o,l){if(e&gt;=r-1){var u=s[e];return u.x0=i,u.y0=a,u.x1=o,void(u.y1=l)}var f=c[e],h=n/2+f,p=e+1,d=r-1;for(;p&lt;d;){var g=p+d&gt;&gt;&gt;1;c[g]&lt;h?p=g+1:d=g}h-c[p-1]&lt;c[p]-h&amp;&amp;e+1&lt;p&amp;&amp;--p;var m=c[p]-f,v=n-m;if(o-i&gt;l-a){var y=(i*v+o*m)/n;t(e,p,m,i,a,y,l),t(p,r,v,y,a,o,l)}else{var x=(a*v+l*m)/n;t(e,p,m,i,a,o,x),t(p,r,v,i,x,o,l)}}(0,l,t.value,e,r,n,i)},t.treemapDice=z,t.treemapResquarify=X,t.treemapSlice=H,t.treemapSliceDice=function(t,e,r,n,i){(1&amp;t.depth?H:z)(t,e,r,n,i)},t.treemapSquarify=W,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],162:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-color&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}function n(t){var e=t.length-1;return function(n){var i=n&lt;=0?n=0:n&gt;=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i&gt;0?t[i-1]:2*a-o,l=i&lt;e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,l)}}function i(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)&lt;0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],l=t[(i+2)%e];return r((n-i/e)*e,a,o,s,l)}}function a(t){return function(){return t}}function o(t,e){return function(r){return t+r*e}}function s(t,e){var r=e-t;return r?o(t,r&gt;180||r&lt;-180?r-360*Math.round(r/360):r):a(isNaN(t)?e:t)}function l(t){return 1==(t=+t)?c:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):a(isNaN(e)?r:e)}}function c(t,e){var r=e-t;return r?o(t,r):a(isNaN(t)?e:t)}var u=function t(r){var n=l(r);function i(t,r){var i=n((t=e.rgb(t)).r,(r=e.rgb(r)).r),a=n(t.g,r.g),o=n(t.b,r.b),s=c(t.opacity,r.opacity);return function(e){return t.r=i(e),t.g=a(e),t.b=o(e),t.opacity=s(e),t+&quot;&quot;}}return i.gamma=t,i}(1);function f(t){return function(r){var n,i,a=r.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;n&lt;a;++n)i=e.rgb(r[n]),o[n]=i.r||0,s[n]=i.g||0,l[n]=i.b||0;return o=t(o),s=t(s),l=t(l),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=l(t),i+&quot;&quot;}}}var h=f(n),p=f(i);function d(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(r=0;r&lt;n;++r)i[r]=t[r]*(1-a)+e[r]*a;return i}}function g(t){return ArrayBuffer.isView(t)&amp;&amp;!(t instanceof DataView)}function m(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,a=new Array(i),o=new Array(n);for(r=0;r&lt;i;++r)a[r]=T(t[r],e[r]);for(;r&lt;n;++r)o[r]=e[r];return function(t){for(r=0;r&lt;i;++r)o[r]=a[r](t);return o}}function v(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function y(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function x(t,e){var r,n={},i={};for(r in null!==t&amp;&amp;&quot;object&quot;==typeof t||(t={}),null!==e&amp;&amp;&quot;object&quot;==typeof e||(e={}),e)r in t?n[r]=T(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var b=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(b.source,&quot;g&quot;);function w(t,e){var r,n,i,a=b.lastIndex=_.lastIndex=0,o=-1,s=[],l=[];for(t+=&quot;&quot;,e+=&quot;&quot;;(r=b.exec(t))&amp;&amp;(n=_.exec(e));)(i=n.index)&gt;a&amp;&amp;(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:y(r,n)})),a=_.lastIndex;return a&lt;e.length&amp;&amp;(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length&lt;2?l[0]?function(t){return function(e){return t(e)+&quot;&quot;}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var r,n=0;n&lt;e;++n)s[(r=l[n]).i]=r.x(t);return s.join(&quot;&quot;)})}function T(t,r){var n,i=typeof r;return null==r||&quot;boolean&quot;===i?a(r):(&quot;number&quot;===i?y:&quot;string&quot;===i?(n=e.color(r))?(r=n,u):w:r instanceof e.color?u:r instanceof Date?v:g(r)?d:Array.isArray(r)?m:&quot;function&quot;!=typeof r.valueOf&amp;&amp;&quot;function&quot;!=typeof r.toString||isNaN(r)?x:y)(t,r)}var k,M,A,S,E=180/Math.PI,C={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function L(t,e,r,n,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&amp;&amp;(t/=o,e/=o),(l=t*r+e*n)&amp;&amp;(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&amp;&amp;(r/=s,n/=s,l/=s),t*n&lt;e*r&amp;&amp;(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*E,skewX:Math.atan(l)*E,scaleX:o,scaleY:s}}function I(t,e,r,n){function i(t){return t.length?t.pop()+&quot; &quot;:&quot;&quot;}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,n,i,a,o,s){if(t!==i||n!==a){var l=o.push(&quot;translate(&quot;,null,e,null,r);s.push({i:l-4,x:y(t,i)},{i:l-2,x:y(n,a)})}else(i||a)&amp;&amp;o.push(&quot;translate(&quot;+i+e+a+r)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,r,a){t!==e?(t-e&gt;180?e+=360:e-t&gt;180&amp;&amp;(t+=360),a.push({i:r.push(i(r)+&quot;rotate(&quot;,null,n)-2,x:y(t,e)})):e&amp;&amp;r.push(i(r)+&quot;rotate(&quot;+e+n)}(a.rotate,o.rotate,s,l),function(t,e,r,a){t!==e?a.push({i:r.push(i(r)+&quot;skewX(&quot;,null,n)-2,x:y(t,e)}):e&amp;&amp;r.push(i(r)+&quot;skewX(&quot;+e+n)}(a.skewX,o.skewX,s,l),function(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+&quot;scale(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);o.push({i:s-4,x:y(t,r)},{i:s-2,x:y(e,n)})}else 1===r&amp;&amp;1===n||a.push(i(a)+&quot;scale(&quot;+r+&quot;,&quot;+n+&quot;)&quot;)}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,r=-1,n=l.length;++r&lt;n;)s[(e=l[r]).i]=e.x(t);return s.join(&quot;&quot;)}}}var P=I((function(t){return&quot;none&quot;===t?C:(k||(k=document.createElement(&quot;DIV&quot;),M=document.documentElement,A=document.defaultView),k.style.transform=t,t=A.getComputedStyle(M.appendChild(k),null).getPropertyValue(&quot;transform&quot;),M.removeChild(k),L(+(t=t.slice(7,-1).split(&quot;,&quot;))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),&quot;px, &quot;,&quot;px)&quot;,&quot;deg)&quot;),z=I((function(t){return null==t?C:(S||(S=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;)),S.setAttribute(&quot;transform&quot;,t),(t=S.transform.baseVal.consolidate())?L((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):C)}),&quot;, &quot;,&quot;)&quot;,&quot;)&quot;),O=Math.SQRT2;function D(t){return((t=Math.exp(t))+1/t)/2}function R(t){return function(r,n){var i=t((r=e.hsl(r)).h,(n=e.hsl(n)).h),a=c(r.s,n.s),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.s=a(t),r.l=o(t),r.opacity=s(t),r+&quot;&quot;}}}var F=R(s),B=R(c);function N(t){return function(r,n){var i=t((r=e.hcl(r)).h,(n=e.hcl(n)).h),a=c(r.c,n.c),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.c=a(t),r.l=o(t),r.opacity=s(t),r+&quot;&quot;}}}var j=N(s),U=N(c);function V(t){return function r(n){function i(r,i){var a=t((r=e.cubehelix(r)).h,(i=e.cubehelix(i)).h),o=c(r.s,i.s),s=c(r.l,i.l),l=c(r.opacity,i.opacity);return function(t){return r.h=a(t),r.s=o(t),r.l=s(Math.pow(t,n)),r.opacity=l(t),r+&quot;&quot;}}return n=+n,i.gamma=r,i}(1)}var q=V(s),H=V(c);t.interpolate=T,t.interpolateArray=function(t,e){return(g(e)?d:m)(t,e)},t.interpolateBasis=n,t.interpolateBasisClosed=i,t.interpolateCubehelix=q,t.interpolateCubehelixLong=H,t.interpolateDate=v,t.interpolateDiscrete=function(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}},t.interpolateHcl=j,t.interpolateHclLong=U,t.interpolateHsl=F,t.interpolateHslLong=B,t.interpolateHue=function(t,e){var r=s(+t,+e);return function(t){var e=r(t);return e-360*Math.floor(e/360)}},t.interpolateLab=function(t,r){var n=c((t=e.lab(t)).l,(r=e.lab(r)).l),i=c(t.a,r.a),a=c(t.b,r.b),o=c(t.opacity,r.opacity);return function(e){return t.l=n(e),t.a=i(e),t.b=a(e),t.opacity=o(e),t+&quot;&quot;}},t.interpolateNumber=y,t.interpolateNumberArray=d,t.interpolateObject=x,t.interpolateRgb=u,t.interpolateRgbBasis=h,t.interpolateRgbBasisClosed=p,t.interpolateRound=function(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}},t.interpolateString=w,t.interpolateTransformCss=P,t.interpolateTransformSvg=z,t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h&lt;1e-12)n=Math.log(c/o)/O,r=function(t){return[i+t*u,a+t*f,o*Math.exp(O*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),g=(c*c-o*o-4*h)/(2*c*2*p),m=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(g*g+1)-g);n=(v-m)/O,r=function(t){var e,r=t*n,s=D(m),l=o/(2*p)*(s*(e=O*r+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[i+l*u,a+l*f,o*s/D(O*r+m)]}}return r.duration=1e3*n,r},t.piecewise=function(t,e){for(var r=0,n=e.length-1,i=e[0],a=new Array(n&lt;0?0:n);r&lt;n;)a[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return a[e](t-e)}},t.quantize=function(t,e){for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=t(n/(e-1));return r},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-color&quot;:158}],163:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e=Math.PI,r=2*e,n=r-1e-6;function i(){this._x0=this._y0=this._x1=this._y1=null,this._=&quot;&quot;}function a(){return new i}i.prototype=a.prototype={constructor:i,moveTo:function(t,e){this._+=&quot;M&quot;+(this._x0=this._x1=+t)+&quot;,&quot;+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&amp;&amp;(this._x1=this._x0,this._y1=this._y0,this._+=&quot;Z&quot;)},lineTo:function(t,e){this._+=&quot;L&quot;+(this._x1=+t)+&quot;,&quot;+(this._y1=+e)},quadraticCurveTo:function(t,e,r,n){this._+=&quot;Q&quot;+ +t+&quot;,&quot;+ +e+&quot;,&quot;+(this._x1=+r)+&quot;,&quot;+(this._y1=+n)},bezierCurveTo:function(t,e,r,n,i,a){this._+=&quot;C&quot;+ +t+&quot;,&quot;+ +e+&quot;,&quot;+ +r+&quot;,&quot;+ +n+&quot;,&quot;+(this._x1=+i)+&quot;,&quot;+(this._y1=+a)},arcTo:function(t,r,n,i,a){t=+t,r=+r,n=+n,i=+i,a=+a;var o=this._x1,s=this._y1,l=n-t,c=i-r,u=o-t,f=s-r,h=u*u+f*f;if(a&lt;0)throw new Error(&quot;negative radius: &quot;+a);if(null===this._x1)this._+=&quot;M&quot;+(this._x1=t)+&quot;,&quot;+(this._y1=r);else if(h&gt;1e-6)if(Math.abs(f*l-c*u)&gt;1e-6&amp;&amp;a){var p=n-o,d=i-s,g=l*l+c*c,m=p*p+d*d,v=Math.sqrt(g),y=Math.sqrt(h),x=a*Math.tan((e-Math.acos((g+h-m)/(2*v*y)))/2),b=x/y,_=x/v;Math.abs(b-1)&gt;1e-6&amp;&amp;(this._+=&quot;L&quot;+(t+b*u)+&quot;,&quot;+(r+b*f)),this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,0,&quot;+ +(f*p&gt;u*d)+&quot;,&quot;+(this._x1=t+_*l)+&quot;,&quot;+(this._y1=r+_*c)}else this._+=&quot;L&quot;+(this._x1=t)+&quot;,&quot;+(this._y1=r);else;},arc:function(t,i,a,o,s,l){t=+t,i=+i,l=!!l;var c=(a=+a)*Math.cos(o),u=a*Math.sin(o),f=t+c,h=i+u,p=1^l,d=l?o-s:s-o;if(a&lt;0)throw new Error(&quot;negative radius: &quot;+a);null===this._x1?this._+=&quot;M&quot;+f+&quot;,&quot;+h:(Math.abs(this._x1-f)&gt;1e-6||Math.abs(this._y1-h)&gt;1e-6)&amp;&amp;(this._+=&quot;L&quot;+f+&quot;,&quot;+h),a&amp;&amp;(d&lt;0&amp;&amp;(d=d%r+r),d&gt;n?this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,1,&quot;+p+&quot;,&quot;+(t-c)+&quot;,&quot;+(i-u)+&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,1,&quot;+p+&quot;,&quot;+(this._x1=f)+&quot;,&quot;+(this._y1=h):d&gt;1e-6&amp;&amp;(this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,&quot;+ +(d&gt;=e)+&quot;,&quot;+p+&quot;,&quot;+(this._x1=t+a*Math.cos(s))+&quot;,&quot;+(this._y1=i+a*Math.sin(s))))},rect:function(t,e,r,n){this._+=&quot;M&quot;+(this._x0=this._x1=+t)+&quot;,&quot;+(this._y0=this._y1=+e)+&quot;h&quot;+ +r+&quot;v&quot;+ +n+&quot;h&quot;+-r+&quot;Z&quot;},toString:function(){return this._}},t.path=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],164:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var i,a,o,s,l,c,u,f,h,p=t._root,d={data:n},g=t._x0,m=t._y0,v=t._x1,y=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((c=e&gt;=(a=(g+v)/2))?g=a:v=a,(u=r&gt;=(o=(m+y)/2))?m=o:y=o,i=p,!(p=p[f=u&lt;&lt;1|c]))return i[f]=d,t;if(s=+t._x.call(null,p.data),l=+t._y.call(null,p.data),e===s&amp;&amp;r===l)return d.next=p,i?i[f]=d:t._root=d,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(c=e&gt;=(a=(g+v)/2))?g=a:v=a,(u=r&gt;=(o=(m+y)/2))?m=o:y=o}while((f=u&lt;&lt;1|c)==(h=(l&gt;=o)&lt;&lt;1|s&gt;=a));return i[h]=p,i[f]=d,t}function r(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i}function n(t){return t[0]}function i(t){return t[1]}function a(t,e,r){var a=new o(null==e?n:e,null==r?i:r,NaN,NaN,NaN,NaN);return null==t?a:a.addAll(t)}function o(t,e,r,n,i,a){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function s(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var l=a.prototype=o.prototype;l.copy=function(){var t,e,r=new o(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=s(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var i=0;i&lt;4;++i)(e=n.source[i])&amp;&amp;(e.length?t.push({source:e,target:n.target[i]=new Array(4)}):n.target[i]=s(e));return r},l.add=function(t){var r=+this._x.call(null,t),n=+this._y.call(null,t);return e(this.cover(r,n),r,n,t)},l.addAll=function(t){var r,n,i,a,o=t.length,s=new Array(o),l=new Array(o),c=1/0,u=1/0,f=-1/0,h=-1/0;for(n=0;n&lt;o;++n)isNaN(i=+this._x.call(null,r=t[n]))||isNaN(a=+this._y.call(null,r))||(s[n]=i,l[n]=a,i&lt;c&amp;&amp;(c=i),i&gt;f&amp;&amp;(f=i),a&lt;u&amp;&amp;(u=a),a&gt;h&amp;&amp;(h=a));if(c&gt;f||u&gt;h)return this;for(this.cover(c,u).cover(f,h),n=0;n&lt;o;++n)e(this,s[n],l[n],t[n]);return this},l.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,n=this._y0,i=this._x1,a=this._y1;if(isNaN(r))i=(r=Math.floor(t))+1,a=(n=Math.floor(e))+1;else{for(var o,s,l=i-r,c=this._root;r&gt;t||t&gt;=i||n&gt;e||e&gt;=a;)switch(s=(e&lt;n)&lt;&lt;1|t&lt;r,(o=new Array(4))[s]=c,c=o,l*=2,s){case 0:i=r+l,a=n+l;break;case 1:r=i-l,a=n+l;break;case 2:i=r+l,n=a-l;break;case 3:r=i-l,n=a-l}this._root&amp;&amp;this._root.length&amp;&amp;(this._root=c)}return this._x0=r,this._y0=n,this._x1=i,this._y1=a,this},l.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},l.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},l.find=function(t,e,n){var i,a,o,s,l,c,u,f=this._x0,h=this._y0,p=this._x1,d=this._y1,g=[],m=this._root;for(m&amp;&amp;g.push(new r(m,f,h,p,d)),null==n?n=1/0:(f=t-n,h=e-n,p=t+n,d=e+n,n*=n);c=g.pop();)if(!(!(m=c.node)||(a=c.x0)&gt;p||(o=c.y0)&gt;d||(s=c.x1)&lt;f||(l=c.y1)&lt;h))if(m.length){var v=(a+s)/2,y=(o+l)/2;g.push(new r(m[3],v,y,s,l),new r(m[2],a,y,v,l),new r(m[1],v,o,s,y),new r(m[0],a,o,v,y)),(u=(e&gt;=y)&lt;&lt;1|t&gt;=v)&amp;&amp;(c=g[g.length-1],g[g.length-1]=g[g.length-1-u],g[g.length-1-u]=c)}else{var x=t-+this._x.call(null,m.data),b=e-+this._y.call(null,m.data),_=x*x+b*b;if(_&lt;n){var w=Math.sqrt(n=_);f=t-w,h=e-w,p=t+w,d=e+w,i=m.data}}return i},l.remove=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,r,n,i,a,o,s,l,c,u,f,h,p=this._root,d=this._x0,g=this._y0,m=this._x1,v=this._y1;if(!p)return this;if(p.length)for(;;){if((c=a&gt;=(s=(d+m)/2))?d=s:m=s,(u=o&gt;=(l=(g+v)/2))?g=l:v=l,e=p,!(p=p[f=u&lt;&lt;1|c]))return this;if(!p.length)break;(e[f+1&amp;3]||e[f+2&amp;3]||e[f+3&amp;3])&amp;&amp;(r=e,h=f)}for(;p.data!==t;)if(n=p,!(p=p.next))return this;return(i=p.next)&amp;&amp;delete p.next,n?(i?n.next=i:delete n.next,this):e?(i?e[f]=i:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&amp;&amp;p===(e[3]||e[2]||e[1]||e[0])&amp;&amp;!p.length&amp;&amp;(r?r[h]=p:this._root=p),this):(this._root=i,this)},l.removeAll=function(t){for(var e=0,r=t.length;e&lt;r;++e)this.remove(t[e]);return this},l.root=function(){return this._root},l.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},l.visit=function(t){var e,n,i,a,o,s,l=[],c=this._root;for(c&amp;&amp;l.push(new r(c,this._x0,this._y0,this._x1,this._y1));e=l.pop();)if(!t(c=e.node,i=e.x0,a=e.y0,o=e.x1,s=e.y1)&amp;&amp;c.length){var u=(i+o)/2,f=(a+s)/2;(n=c[3])&amp;&amp;l.push(new r(n,u,f,o,s)),(n=c[2])&amp;&amp;l.push(new r(n,i,f,u,s)),(n=c[1])&amp;&amp;l.push(new r(n,u,a,o,f)),(n=c[0])&amp;&amp;l.push(new r(n,i,a,u,f))}return this},l.visitAfter=function(t){var e,n=[],i=[];for(this._root&amp;&amp;n.push(new r(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var a=e.node;if(a.length){var o,s=e.x0,l=e.y0,c=e.x1,u=e.y1,f=(s+c)/2,h=(l+u)/2;(o=a[0])&amp;&amp;n.push(new r(o,s,l,f,h)),(o=a[1])&amp;&amp;n.push(new r(o,f,l,c,h)),(o=a[2])&amp;&amp;n.push(new r(o,s,h,f,u)),(o=a[3])&amp;&amp;n.push(new r(o,f,h,c,u))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},l.x=function(t){return arguments.length?(this._x=t,this):this._x},l.y=function(t){return arguments.length?(this._y=t,this):this._y},t.quadtree=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],165:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-path&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t){return function(){return t}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,c=Math.sqrt,u=Math.PI,f=u/2,h=2*u;function p(t){return t&gt;1?0:t&lt;-1?u:Math.acos(t)}function d(t){return t&gt;=1?f:t&lt;=-1?-f:Math.asin(t)}function g(t){return t.innerRadius}function m(t){return t.outerRadius}function v(t){return t.startAngle}function y(t){return t.endAngle}function x(t){return t&amp;&amp;t.padAngle}function b(t,e,r,n,i,a,o,s){var l=r-t,c=n-e,u=o-i,f=s-a,h=f*l-u*c;if(!(h*h&lt;1e-12))return[t+(h=(u*(e-a)-f*(t-i))/h)*l,e+h*c]}function _(t,e,r,n,i,a,s){var l=t-r,u=e-n,f=(s?a:-a)/c(l*l+u*u),h=f*u,p=-f*l,d=t+h,g=e+p,m=r+h,v=n+p,y=(d+m)/2,x=(g+v)/2,b=m-d,_=v-g,w=b*b+_*_,T=i-a,k=d*v-m*g,M=(_&lt;0?-1:1)*c(o(0,T*T*w-k*k)),A=(k*_-b*M)/w,S=(-k*b-_*M)/w,E=(k*_+b*M)/w,C=(-k*b+_*M)/w,L=A-y,I=S-x,P=E-y,z=C-x;return L*L+I*I&gt;P*P+z*z&amp;&amp;(A=E,S=C),{cx:A,cy:S,x01:-h,y01:-p,x11:A*(i/T-1),y11:S*(i/T-1)}}function w(t){this._context=t}function T(t){return new w(t)}function k(t){return t[0]}function M(t){return t[1]}function A(){var t=k,n=M,i=r(!0),a=null,o=T,s=null;function l(r){var l,c,u,f=r.length,h=!1;for(null==a&amp;&amp;(s=o(u=e.path())),l=0;l&lt;=f;++l)!(l&lt;f&amp;&amp;i(c=r[l],l,r))===h&amp;&amp;((h=!h)?s.lineStart():s.lineEnd()),h&amp;&amp;s.point(+t(c,l,r),+n(c,l,r));if(u)return s=null,u+&quot;&quot;||null}return l.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),l):t},l.y=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:r(+t),l):n},l.defined=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(!!t),l):i},l.curve=function(t){return arguments.length?(o=t,null!=a&amp;&amp;(s=o(a)),l):o},l.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),l):a},l}function S(){var t=k,n=null,i=r(0),a=M,o=r(!0),s=null,l=T,c=null;function u(r){var u,f,h,p,d,g=r.length,m=!1,v=new Array(g),y=new Array(g);for(null==s&amp;&amp;(c=l(d=e.path())),u=0;u&lt;=g;++u){if(!(u&lt;g&amp;&amp;o(p=r[u],u,r))===m)if(m=!m)f=u,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),h=u-1;h&gt;=f;--h)c.point(v[h],y[h]);c.lineEnd(),c.areaEnd()}m&amp;&amp;(v[u]=+t(p,u,r),y[u]=+i(p,u,r),c.point(n?+n(p,u,r):v[u],a?+a(p,u,r):y[u]))}if(d)return c=null,d+&quot;&quot;||null}function f(){return A().defined(o).curve(l).context(s)}return u.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),n=null,u):t},u.x0=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),u):t},u.x1=function(t){return arguments.length?(n=null==t?null:&quot;function&quot;==typeof t?t:r(+t),u):n},u.y=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),a=null,u):i},u.y0=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),u):i},u.y1=function(t){return arguments.length?(a=null==t?null:&quot;function&quot;==typeof t?t:r(+t),u):a},u.lineX0=u.lineY0=function(){return f().x(t).y(i)},u.lineY1=function(){return f().x(t).y(a)},u.lineX1=function(){return f().x(n).y(i)},u.defined=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(!!t),u):o},u.curve=function(t){return arguments.length?(l=t,null!=s&amp;&amp;(c=l(s)),u):l},u.context=function(t){return arguments.length?(null==t?s=c=null:c=l(s=t),u):s},u}function E(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN}function C(t){return t}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var L=P(T);function I(t){this._curve=t}function P(t){function e(e){return new I(t(e))}return e._curve=t,e}function z(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(P(t)):e()._curve},t}function O(){return z(A().curve(L))}function D(){var t=S().curve(L),e=t.curve,r=t.lineX0,n=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return z(r())},delete t.lineX0,t.lineEndAngle=function(){return z(n())},delete t.lineX1,t.lineInnerRadius=function(){return z(i())},delete t.lineY0,t.lineOuterRadius=function(){return z(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(P(t)):e()._curve},t}function R(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}I.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var F=Array.prototype.slice;function B(t){return t.source}function N(t){return t.target}function j(t){var n=B,i=N,a=k,o=M,s=null;function l(){var r,l=F.call(arguments),c=n.apply(this,l),u=i.apply(this,l);if(s||(s=r=e.path()),t(s,+a.apply(this,(l[0]=c,l)),+o.apply(this,l),+a.apply(this,(l[0]=u,l)),+o.apply(this,l)),r)return s=null,r+&quot;&quot;||null}return l.source=function(t){return arguments.length?(n=t,l):n},l.target=function(t){return arguments.length?(i=t,l):i},l.x=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:r(+t),l):a},l.y=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),l):o},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function U(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,i,n,i)}function V(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e,r=(r+i)/2,n,r,n,i)}function q(t,e,r,n,i){var a=R(e,r),o=R(e,r=(r+i)/2),s=R(n,r),l=R(n,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}var H={draw:function(t,e){var r=Math.sqrt(e/u);t.moveTo(r,0),t.arc(0,0,r,0,h)}},G={draw:function(t,e){var r=Math.sqrt(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Y=Math.sqrt(1/3),W=2*Y,X={draw:function(t,e){var r=Math.sqrt(e/W),n=r*Y;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Z=Math.sin(u/10)/Math.sin(7*u/10),J=Math.sin(h/10)*Z,K=-Math.cos(h/10)*Z,Q={draw:function(t,e){var r=Math.sqrt(.8908130915292852*e),n=J*r,i=K*r;t.moveTo(0,-r),t.lineTo(n,i);for(var a=1;a&lt;5;++a){var o=h*a/5,s=Math.cos(o),l=Math.sin(o);t.lineTo(l*r,-s*r),t.lineTo(s*n-l*i,l*n+s*i)}t.closePath()}},$={draw:function(t,e){var r=Math.sqrt(e),n=-r/2;t.rect(n,n,r,r)}},tt=Math.sqrt(3),et={draw:function(t,e){var r=-Math.sqrt(e/(3*tt));t.moveTo(0,2*r),t.lineTo(-tt*r,-r),t.lineTo(tt*r,-r),t.closePath()}},rt=-.5,nt=Math.sqrt(3)/2,it=1/Math.sqrt(12),at=3*(it/2+1),ot={draw:function(t,e){var r=Math.sqrt(e/at),n=r/2,i=r*it,a=n,o=r*it+r,s=-a,l=o;t.moveTo(n,i),t.lineTo(a,o),t.lineTo(s,l),t.lineTo(rt*n-nt*i,nt*n+rt*i),t.lineTo(rt*a-nt*o,nt*a+rt*o),t.lineTo(rt*s-nt*l,nt*s+rt*l),t.lineTo(rt*n+nt*i,rt*i-nt*n),t.lineTo(rt*a+nt*o,rt*o-nt*a),t.lineTo(rt*s+nt*l,rt*l-nt*s),t.closePath()}},st=[H,G,X,$,Q,et,ot];function lt(){}function ct(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function ut(t){this._context=t}function ft(t){this._context=t}function ht(t){this._context=t}function pt(t,e){this._basis=new ut(t),this._beta=e}ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ct(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ft.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},pt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r&gt;0)for(var n,i=t[0],a=e[0],o=t[r]-i,s=e[r]-a,l=-1;++l&lt;=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+n*o),this._beta*e[l]+(1-this._beta)*(a+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var dt=function t(e){function r(t){return 1===e?new ut(t):new pt(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function gt(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function mt(t,e){this._context=t,this._k=(1-e)/6}mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:gt(this,this._x1,this._y1)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var vt=function t(e){function r(t){return new mt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function yt(t,e){this._context=t,this._k=(1-e)/6}yt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var xt=function t(e){function r(t){return new yt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function bt(t,e){this._context=t,this._k=(1-e)/6}bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var _t=function t(e){function r(t){return new bt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function wt(t,e,r){var n=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a&gt;1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a&gt;1e-12){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(n,i,a,o,t._x2,t._y2)}function Tt(t,e){this._context=t,this._alpha=e}Tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var kt=function t(e){function r(t){return e?new Tt(t,e):new mt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Mt(t,e){this._context=t,this._alpha=e}Mt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var At=function t(e){function r(t){return e?new Mt(t,e):new yt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function St(t,e){this._context=t,this._alpha=e}St.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Et=function t(e){function r(t){return e?new St(t,e):new bt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Ct(t){this._context=t}function Lt(t){return t&lt;0?-1:1}function It(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i&lt;0&amp;&amp;-0),o=(r-t._y1)/(i||n&lt;0&amp;&amp;-0),s=(a*i+o*n)/(n+i);return(Lt(a)+Lt(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Pt(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function zt(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-n)/3;t._context.bezierCurveTo(n+s,i+s*e,a-s,o-s*r,a,o)}function Ot(t){this._context=t}function Dt(t){this._context=new Rt(t)}function Rt(t){this._context=t}function Ft(t){this._context=t}function Bt(t){var e,r,n=t.length-1,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e&lt;n-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e&lt;n;++e)r=i[e]/a[e-1],a[e]-=r,o[e]-=r*o[e-1];for(i[n-1]=o[n-1]/a[n-1],e=n-2;e&gt;=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[n-1]=(t[n]+i[n-1])/2,e=0;e&lt;n-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function Nt(t,e){this._context=t,this._t=e}function jt(t,e){if((i=t.length)&gt;1)for(var r,n,i,a=1,o=t[e[0]],s=o.length;a&lt;i;++a)for(n=o,o=t[e[a]],r=0;r&lt;s;++r)o[r][1]+=o[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Ut(t){for(var e=t.length,r=new Array(e);--e&gt;=0;)r[e]=e;return r}function Vt(t,e){return t[e]}function qt(t){var e=t.map(Ht);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function Ht(t){for(var e,r=-1,n=0,i=t.length,a=-1/0;++r&lt;i;)(e=+t[r][1])&gt;a&amp;&amp;(a=e,n=r);return n}function Gt(t){var e=t.map(Yt);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function Yt(t){for(var e,r=0,n=-1,i=t.length;++n&lt;i;)(e=+t[n][1])&amp;&amp;(r+=e);return r}Ct.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._point=0},lineEnd:function(){this._point&amp;&amp;this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Ot.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:zt(this,this._t0,Pt(this,this._t0))}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,zt(this,Pt(this,r=It(this,t,e)),r);break;default:zt(this,this._t0,r=It(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Dt.prototype=Object.create(Ot.prototype)).point=function(t,e){Ot.prototype.point.call(this,e,t)},Rt.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}},Ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=Bt(t),i=Bt(e),a=0,o=1;o&lt;r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&amp;&amp;1===r)&amp;&amp;this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Nt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0&lt;this._t&amp;&amp;this._t&lt;1&amp;&amp;2===this._point&amp;&amp;this._context.lineTo(this._x,this._y),(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line&gt;=0&amp;&amp;(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t&lt;=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},t.arc=function(){var t=g,o=m,w=r(0),T=null,k=v,M=y,A=x,S=null;function E(){var r,g,m=+t.apply(this,arguments),v=+o.apply(this,arguments),y=k.apply(this,arguments)-f,x=M.apply(this,arguments)-f,E=n(x-y),C=x&gt;y;if(S||(S=r=e.path()),v&lt;m&amp;&amp;(g=v,v=m,m=g),v&gt;1e-12)if(E&gt;h-1e-12)S.moveTo(v*a(y),v*l(y)),S.arc(0,0,v,y,x,!C),m&gt;1e-12&amp;&amp;(S.moveTo(m*a(x),m*l(x)),S.arc(0,0,m,x,y,C));else{var L,I,P=y,z=x,O=y,D=x,R=E,F=E,B=A.apply(this,arguments)/2,N=B&gt;1e-12&amp;&amp;(T?+T.apply(this,arguments):c(m*m+v*v)),j=s(n(v-m)/2,+w.apply(this,arguments)),U=j,V=j;if(N&gt;1e-12){var q=d(N/m*l(B)),H=d(N/v*l(B));(R-=2*q)&gt;1e-12?(O+=q*=C?1:-1,D-=q):(R=0,O=D=(y+x)/2),(F-=2*H)&gt;1e-12?(P+=H*=C?1:-1,z-=H):(F=0,P=z=(y+x)/2)}var G=v*a(P),Y=v*l(P),W=m*a(D),X=m*l(D);if(j&gt;1e-12){var Z,J=v*a(z),K=v*l(z),Q=m*a(O),$=m*l(O);if(E&lt;u&amp;&amp;(Z=b(G,Y,Q,$,J,K,W,X))){var tt=G-Z[0],et=Y-Z[1],rt=J-Z[0],nt=K-Z[1],it=1/l(p((tt*rt+et*nt)/(c(tt*tt+et*et)*c(rt*rt+nt*nt)))/2),at=c(Z[0]*Z[0]+Z[1]*Z[1]);U=s(j,(m-at)/(it-1)),V=s(j,(v-at)/(it+1))}}F&gt;1e-12?V&gt;1e-12?(L=_(Q,$,G,Y,v,V,C),I=_(J,K,W,X,v,V,C),S.moveTo(L.cx+L.x01,L.cy+L.y01),V&lt;j?S.arc(L.cx,L.cy,V,i(L.y01,L.x01),i(I.y01,I.x01),!C):(S.arc(L.cx,L.cy,V,i(L.y01,L.x01),i(L.y11,L.x11),!C),S.arc(0,0,v,i(L.cy+L.y11,L.cx+L.x11),i(I.cy+I.y11,I.cx+I.x11),!C),S.arc(I.cx,I.cy,V,i(I.y11,I.x11),i(I.y01,I.x01),!C))):(S.moveTo(G,Y),S.arc(0,0,v,P,z,!C)):S.moveTo(G,Y),m&gt;1e-12&amp;&amp;R&gt;1e-12?U&gt;1e-12?(L=_(W,X,J,K,m,-U,C),I=_(G,Y,Q,$,m,-U,C),S.lineTo(L.cx+L.x01,L.cy+L.y01),U&lt;j?S.arc(L.cx,L.cy,U,i(L.y01,L.x01),i(I.y01,I.x01),!C):(S.arc(L.cx,L.cy,U,i(L.y01,L.x01),i(L.y11,L.x11),!C),S.arc(0,0,m,i(L.cy+L.y11,L.cx+L.x11),i(I.cy+I.y11,I.cx+I.x11),C),S.arc(I.cx,I.cy,U,i(I.y11,I.x11),i(I.y01,I.x01),!C))):S.arc(0,0,m,D,O,C):S.lineTo(W,X)}else S.moveTo(0,0);if(S.closePath(),r)return S=null,r+&quot;&quot;||null}return E.centroid=function(){var e=(+t.apply(this,arguments)+ +o.apply(this,arguments))/2,r=(+k.apply(this,arguments)+ +M.apply(this,arguments))/2-u/2;return[a(r)*e,l(r)*e]},E.innerRadius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),E):t},E.outerRadius=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),E):o},E.cornerRadius=function(t){return arguments.length?(w=&quot;function&quot;==typeof t?t:r(+t),E):w},E.padRadius=function(t){return arguments.length?(T=null==t?null:&quot;function&quot;==typeof t?t:r(+t),E):T},E.startAngle=function(t){return arguments.length?(k=&quot;function&quot;==typeof t?t:r(+t),E):k},E.endAngle=function(t){return arguments.length?(M=&quot;function&quot;==typeof t?t:r(+t),E):M},E.padAngle=function(t){return arguments.length?(A=&quot;function&quot;==typeof t?t:r(+t),E):A},E.context=function(t){return arguments.length?(S=null==t?null:t,E):S},E},t.area=S,t.areaRadial=D,t.curveBasis=function(t){return new ut(t)},t.curveBasisClosed=function(t){return new ft(t)},t.curveBasisOpen=function(t){return new ht(t)},t.curveBundle=dt,t.curveCardinal=vt,t.curveCardinalClosed=xt,t.curveCardinalOpen=_t,t.curveCatmullRom=kt,t.curveCatmullRomClosed=At,t.curveCatmullRomOpen=Et,t.curveLinear=T,t.curveLinearClosed=function(t){return new Ct(t)},t.curveMonotoneX=function(t){return new Ot(t)},t.curveMonotoneY=function(t){return new Dt(t)},t.curveNatural=function(t){return new Ft(t)},t.curveStep=function(t){return new Nt(t,.5)},t.curveStepAfter=function(t){return new Nt(t,1)},t.curveStepBefore=function(t){return new Nt(t,0)},t.line=A,t.lineRadial=O,t.linkHorizontal=function(){return j(U)},t.linkRadial=function(){var t=j(q);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},t.linkVertical=function(){return j(V)},t.pie=function(){var t=C,e=E,n=null,i=r(0),a=r(h),o=r(0);function s(r){var s,l,c,u,f,p=r.length,d=0,g=new Array(p),m=new Array(p),v=+i.apply(this,arguments),y=Math.min(h,Math.max(-h,a.apply(this,arguments)-v)),x=Math.min(Math.abs(y)/p,o.apply(this,arguments)),b=x*(y&lt;0?-1:1);for(s=0;s&lt;p;++s)(f=m[g[s]=s]=+t(r[s],s,r))&gt;0&amp;&amp;(d+=f);for(null!=e?g.sort((function(t,r){return e(m[t],m[r])})):null!=n&amp;&amp;g.sort((function(t,e){return n(r[t],r[e])})),s=0,c=d?(y-p*b)/d:0;s&lt;p;++s,v=u)l=g[s],u=v+((f=m[l])&gt;0?f*c:0)+b,m[l]={data:r[l],index:s,value:f,startAngle:v,endAngle:u,padAngle:x};return m}return s.value=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),s):i},s.endAngle=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:r(+t),s):a},s.padAngle=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),s):o},s},t.pointRadial=R,t.radialArea=D,t.radialLine=O,t.stack=function(){var t=r([]),e=Ut,n=jt,i=Vt;function a(r){var a,o,s=t.apply(this,arguments),l=r.length,c=s.length,u=new Array(c);for(a=0;a&lt;c;++a){for(var f,h=s[a],p=u[a]=new Array(l),d=0;d&lt;l;++d)p[d]=f=[0,+i(r[d],h,d,r)],f.data=r[d];p.key=h}for(a=0,o=e(u);a&lt;c;++a)u[o[a]].index=a;return n(u,o),u}return a.keys=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(F.call(e)),a):t},a.value=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),a):i},a.order=function(t){return arguments.length?(e=null==t?Ut:&quot;function&quot;==typeof t?t:r(F.call(t)),a):e},a.offset=function(t){return arguments.length?(n=null==t?jt:t,a):n},a},t.stackOffsetDiverging=function(t,e){if((s=t.length)&gt;0)for(var r,n,i,a,o,s,l=0,c=t[e[0]].length;l&lt;c;++l)for(a=o=0,r=0;r&lt;s;++r)(i=(n=t[e[r]][l])[1]-n[0])&gt;0?(n[0]=a,n[1]=a+=i):i&lt;0?(n[1]=o,n[0]=o+=i):(n[0]=0,n[1]=i)},t.stackOffsetExpand=function(t,e){if((n=t.length)&gt;0){for(var r,n,i,a=0,o=t[0].length;a&lt;o;++a){for(i=r=0;r&lt;n;++r)i+=t[r][a][1]||0;if(i)for(r=0;r&lt;n;++r)t[r][a][1]/=i}jt(t,e)}},t.stackOffsetNone=jt,t.stackOffsetSilhouette=function(t,e){if((r=t.length)&gt;0){for(var r,n=0,i=t[e[0]],a=i.length;n&lt;a;++n){for(var o=0,s=0;o&lt;r;++o)s+=t[o][n][1]||0;i[n][1]+=i[n][0]=-s/2}jt(t,e)}},t.stackOffsetWiggle=function(t,e){if((i=t.length)&gt;0&amp;&amp;(n=(r=t[e[0]]).length)&gt;0){for(var r,n,i,a=0,o=1;o&lt;n;++o){for(var s=0,l=0,c=0;s&lt;i;++s){for(var u=t[e[s]],f=u[o][1]||0,h=(f-(u[o-1][1]||0))/2,p=0;p&lt;s;++p){var d=t[e[p]];h+=(d[o][1]||0)-(d[o-1][1]||0)}l+=f,c+=h*f}r[o-1][1]+=r[o-1][0]=a,l&amp;&amp;(a-=c/l)}r[o-1][1]+=r[o-1][0]=a,jt(t,e)}},t.stackOrderAppearance=qt,t.stackOrderAscending=Gt,t.stackOrderDescending=function(t){return Gt(t).reverse()},t.stackOrderInsideOut=function(t){var e,r,n=t.length,i=t.map(Yt),a=qt(t),o=0,s=0,l=[],c=[];for(e=0;e&lt;n;++e)r=a[e],o&lt;s?(o+=i[r],l.push(r)):(s+=i[r],c.push(r));return c.reverse().concat(l)},t.stackOrderNone=Ut,t.stackOrderReverse=function(t){return Ut(t).reverse()},t.symbol=function(){var t=r(H),n=r(64),i=null;function a(){var r;if(i||(i=r=e.path()),t.apply(this,arguments).draw(i,+n.apply(this,arguments)),r)return i=null,r+&quot;&quot;||null}return a.type=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(e),a):t},a.size=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:r(+t),a):n},a.context=function(t){return arguments.length?(i=null==t?null:t,a):i},a},t.symbolCircle=H,t.symbolCross=G,t.symbolDiamond=X,t.symbolSquare=$,t.symbolStar=Q,t.symbolTriangle=et,t.symbolWye=ot,t.symbols=st,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-path&quot;:163}],166:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-time&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t){if(0&lt;=t.y&amp;&amp;t.y&lt;100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function n(t){if(0&lt;=t.y&amp;&amp;t.y&lt;100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function i(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function a(t){var a=t.dateTime,o=t.date,l=t.time,c=t.periods,u=t.days,f=t.shortDays,h=t.months,yt=t.shortMonths,xt=p(c),bt=d(c),_t=p(u),wt=d(u),Tt=p(f),kt=d(f),Mt=p(h),At=d(h),St=p(yt),Et=d(yt),Ct={a:function(t){return f[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return yt[t.getMonth()]},B:function(t){return h[t.getMonth()]},c:null,d:D,e:D,f:j,H:R,I:F,j:B,L:N,m:U,M:V,p:function(t){return c[+(t.getHours()&gt;=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:mt,s:vt,S:q,u:H,U:G,V:Y,w:W,W:X,x:null,X:null,y:Z,Y:J,Z:K,&quot;%&quot;:gt},Lt={a:function(t){return f[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return yt[t.getUTCMonth()]},B:function(t){return h[t.getUTCMonth()]},c:null,d:Q,e:Q,f:nt,H:$,I:tt,j:et,L:rt,m:it,M:at,p:function(t){return c[+(t.getUTCHours()&gt;=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:mt,s:vt,S:ot,u:st,U:lt,V:ct,w:ut,W:ft,x:null,X:null,y:ht,Y:pt,Z:dt,&quot;%&quot;:gt},It={a:function(t,e,r){var n=Tt.exec(e.slice(r));return n?(t.w=kt[n[0].toLowerCase()],r+n[0].length):-1},A:function(t,e,r){var n=_t.exec(e.slice(r));return n?(t.w=wt[n[0].toLowerCase()],r+n[0].length):-1},b:function(t,e,r){var n=St.exec(e.slice(r));return n?(t.m=Et[n[0].toLowerCase()],r+n[0].length):-1},B:function(t,e,r){var n=Mt.exec(e.slice(r));return n?(t.m=At[n[0].toLowerCase()],r+n[0].length):-1},c:function(t,e,r){return Ot(t,a,e,r)},d:M,e:M,f:I,H:S,I:S,j:A,L:L,m:k,M:E,p:function(t,e,r){var n=xt.exec(e.slice(r));return n?(t.p=bt[n[0].toLowerCase()],r+n[0].length):-1},q:T,Q:z,s:O,S:C,u:m,U:v,V:y,w:g,W:x,x:function(t,e,r){return Ot(t,o,e,r)},X:function(t,e,r){return Ot(t,l,e,r)},y:_,Y:b,Z:w,&quot;%&quot;:P};function Pt(t,e){return function(r){var n,i,a,o=[],l=-1,c=0,u=t.length;for(r instanceof Date||(r=new Date(+r));++l&lt;u;)37===t.charCodeAt(l)&amp;&amp;(o.push(t.slice(c,l)),null!=(i=s[n=t.charAt(++l)])?n=t.charAt(++l):i=&quot;e&quot;===n?&quot; &quot;:&quot;0&quot;,(a=e[n])&amp;&amp;(n=a(r,i)),o.push(n),c=l+1);return o.push(t.slice(c,l)),o.join(&quot;&quot;)}}function zt(t,a){return function(o){var s,l,c=i(1900,void 0,1);if(Ot(c,t,o+=&quot;&quot;,0)!=o.length)return null;if(&quot;Q&quot;in c)return new Date(c.Q);if(&quot;s&quot;in c)return new Date(1e3*c.s+(&quot;L&quot;in c?c.L:0));if(a&amp;&amp;!(&quot;Z&quot;in c)&amp;&amp;(c.Z=0),&quot;p&quot;in c&amp;&amp;(c.H=c.H%12+12*c.p),void 0===c.m&amp;&amp;(c.m=&quot;q&quot;in c?c.q:0),&quot;V&quot;in c){if(c.V&lt;1||c.V&gt;53)return null;&quot;w&quot;in c||(c.w=1),&quot;Z&quot;in c?(l=(s=n(i(c.y,0,1))).getUTCDay(),s=l&gt;4||0===l?e.utcMonday.ceil(s):e.utcMonday(s),s=e.utcDay.offset(s,7*(c.V-1)),c.y=s.getUTCFullYear(),c.m=s.getUTCMonth(),c.d=s.getUTCDate()+(c.w+6)%7):(l=(s=r(i(c.y,0,1))).getDay(),s=l&gt;4||0===l?e.timeMonday.ceil(s):e.timeMonday(s),s=e.timeDay.offset(s,7*(c.V-1)),c.y=s.getFullYear(),c.m=s.getMonth(),c.d=s.getDate()+(c.w+6)%7)}else(&quot;W&quot;in c||&quot;U&quot;in c)&amp;&amp;(&quot;w&quot;in c||(c.w=&quot;u&quot;in c?c.u%7:&quot;W&quot;in c?1:0),l=&quot;Z&quot;in c?n(i(c.y,0,1)).getUTCDay():r(i(c.y,0,1)).getDay(),c.m=0,c.d=&quot;W&quot;in c?(c.w+6)%7+7*c.W-(l+5)%7:c.w+7*c.U-(l+6)%7);return&quot;Z&quot;in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,n(c)):r(c)}}function Ot(t,e,r,n){for(var i,a,o=0,l=e.length,c=r.length;o&lt;l;){if(n&gt;=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=It[i in s?e.charAt(o++):i])||(n=a(t,r,n))&lt;0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return Ct.x=Pt(o,Ct),Ct.X=Pt(l,Ct),Ct.c=Pt(a,Ct),Lt.x=Pt(o,Lt),Lt.X=Pt(l,Lt),Lt.c=Pt(a,Lt),{format:function(t){var e=Pt(t+=&quot;&quot;,Ct);return e.toString=function(){return t},e},parse:function(t){var e=zt(t+=&quot;&quot;,!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=Pt(t+=&quot;&quot;,Lt);return e.toString=function(){return t},e},utcParse:function(t){var e=zt(t+=&quot;&quot;,!0);return e.toString=function(){return t},e}}}var o,s={&quot;-&quot;:&quot;&quot;,_:&quot; &quot;,0:&quot;0&quot;},l=/^\s*\d+/,c=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(t,e,r){var n=t&lt;0?&quot;-&quot;:&quot;&quot;,i=(n?-t:t)+&quot;&quot;,a=i.length;return n+(a&lt;r?new Array(r-a+1).join(e)+i:i)}function h(t){return t.replace(u,&quot;\\$&amp;&quot;)}function p(t){return new RegExp(&quot;^(?:&quot;+t.map(h).join(&quot;|&quot;)+&quot;)&quot;,&quot;i&quot;)}function d(t){for(var e={},r=-1,n=t.length;++r&lt;n;)e[t[r].toLowerCase()]=r;return e}function g(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function m(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function v(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function y(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function x(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function b(t,e,r){var n=l.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function _(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]&gt;68?1900:2e3),r+n[0].length):-1}function w(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||&quot;00&quot;)),r+n[0].length):-1}function T(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function k(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function M(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function A(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function S(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function E(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function C(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function L(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function I(t,e,r){var n=l.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function P(t,e,r){var n=c.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function z(t,e,r){var n=l.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function O(t,e,r){var n=l.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function D(t,e){return f(t.getDate(),e,2)}function R(t,e){return f(t.getHours(),e,2)}function F(t,e){return f(t.getHours()%12||12,e,2)}function B(t,r){return f(1+e.timeDay.count(e.timeYear(t),t),r,3)}function N(t,e){return f(t.getMilliseconds(),e,3)}function j(t,e){return N(t,e)+&quot;000&quot;}function U(t,e){return f(t.getMonth()+1,e,2)}function V(t,e){return f(t.getMinutes(),e,2)}function q(t,e){return f(t.getSeconds(),e,2)}function H(t){var e=t.getDay();return 0===e?7:e}function G(t,r){return f(e.timeSunday.count(e.timeYear(t)-1,t),r,2)}function Y(t,r){var n=t.getDay();return t=n&gt;=4||0===n?e.timeThursday(t):e.timeThursday.ceil(t),f(e.timeThursday.count(e.timeYear(t),t)+(4===e.timeYear(t).getDay()),r,2)}function W(t){return t.getDay()}function X(t,r){return f(e.timeMonday.count(e.timeYear(t)-1,t),r,2)}function Z(t,e){return f(t.getFullYear()%100,e,2)}function J(t,e){return f(t.getFullYear()%1e4,e,4)}function K(t){var e=t.getTimezoneOffset();return(e&gt;0?&quot;-&quot;:(e*=-1,&quot;+&quot;))+f(e/60|0,&quot;0&quot;,2)+f(e%60,&quot;0&quot;,2)}function Q(t,e){return f(t.getUTCDate(),e,2)}function $(t,e){return f(t.getUTCHours(),e,2)}function tt(t,e){return f(t.getUTCHours()%12||12,e,2)}function et(t,r){return f(1+e.utcDay.count(e.utcYear(t),t),r,3)}function rt(t,e){return f(t.getUTCMilliseconds(),e,3)}function nt(t,e){return rt(t,e)+&quot;000&quot;}function it(t,e){return f(t.getUTCMonth()+1,e,2)}function at(t,e){return f(t.getUTCMinutes(),e,2)}function ot(t,e){return f(t.getUTCSeconds(),e,2)}function st(t){var e=t.getUTCDay();return 0===e?7:e}function lt(t,r){return f(e.utcSunday.count(e.utcYear(t)-1,t),r,2)}function ct(t,r){var n=t.getUTCDay();return t=n&gt;=4||0===n?e.utcThursday(t):e.utcThursday.ceil(t),f(e.utcThursday.count(e.utcYear(t),t)+(4===e.utcYear(t).getUTCDay()),r,2)}function ut(t){return t.getUTCDay()}function ft(t,r){return f(e.utcMonday.count(e.utcYear(t)-1,t),r,2)}function ht(t,e){return f(t.getUTCFullYear()%100,e,2)}function pt(t,e){return f(t.getUTCFullYear()%1e4,e,4)}function dt(){return&quot;+0000&quot;}function gt(){return&quot;%&quot;}function mt(t){return+t}function vt(t){return Math.floor(+t/1e3)}function yt(e){return o=a(e),t.timeFormat=o.format,t.timeParse=o.parse,t.utcFormat=o.utcFormat,t.utcParse=o.utcParse,o}yt({dateTime:&quot;%x, %X&quot;,date:&quot;%-m/%-d/%Y&quot;,time:&quot;%-I:%M:%S %p&quot;,periods:[&quot;AM&quot;,&quot;PM&quot;],days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;]});var xt=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);var bt=+new Date(&quot;2000-01-01T00:00:00.000Z&quot;)?function(t){var e=new Date(t);return isNaN(e)?null:e}:t.utcParse(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);t.isoFormat=xt,t.isoParse=bt,t.timeFormatDefaultLocale=yt,t.timeFormatLocale=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-time&quot;:167}],167:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e=new Date,r=new Date;function n(t,i,a,o){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),i(e,1),t(e),e},s.round=function(t){var e=s(t),r=s.ceil(t);return t-e&lt;r-t?e:r},s.offset=function(t,e){return i(t=new Date(+t),null==e?1:Math.floor(e)),t},s.range=function(e,r,n){var a,o=[];if(e=s.ceil(e),n=null==n?1:Math.floor(n),!(e&lt;r&amp;&amp;n&gt;0))return o;do{o.push(a=new Date(+e)),i(e,n),t(e)}while(a&lt;e&amp;&amp;e&lt;r);return o},s.filter=function(e){return n((function(r){if(r&gt;=r)for(;t(r),!e(r);)r.setTime(r-1)}),(function(t,r){if(t&gt;=t)if(r&lt;0)for(;++r&lt;=0;)for(;i(t,-1),!e(t););else for(;--r&gt;=0;)for(;i(t,1),!e(t););}))},a&amp;&amp;(s.count=function(n,i){return e.setTime(+n),r.setTime(+i),t(e),t(r),Math.floor(a(e,r))},s.every=function(t){return t=Math.floor(t),isFinite(t)&amp;&amp;t&gt;0?t&gt;1?s.filter(o?function(e){return o(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}var i=n((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));i.every=function(t){return t=Math.floor(t),isFinite(t)&amp;&amp;t&gt;0?t&gt;1?n((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,r){e.setTime(+e+r*t)}),(function(e,r){return(r-e)/t})):i:null};var a=i.range,o=n((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()})),s=o.range,l=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()})),c=l.range,u=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()})),f=u.range,h=n((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1})),p=h.range;function d(t){return n((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var g=d(0),m=d(1),v=d(2),y=d(3),x=d(4),b=d(5),_=d(6),w=g.range,T=m.range,k=v.range,M=y.range,A=x.range,S=b.range,E=_.range,C=n((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),L=C.range,I=n((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));I.every=function(t){return isFinite(t=Math.floor(t))&amp;&amp;t&gt;0?n((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,r){e.setFullYear(e.getFullYear()+r*t)})):null};var P=I.range,z=n((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getUTCMinutes()})),O=z.range,D=n((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()})),R=D.range,F=n((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1})),B=F.range;function N(t){return n((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}var j=N(0),U=N(1),V=N(2),q=N(3),H=N(4),G=N(5),Y=N(6),W=j.range,X=U.range,Z=V.range,J=q.range,K=H.range,Q=G.range,$=Y.range,tt=n((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),et=tt.range,rt=n((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));rt.every=function(t){return isFinite(t=Math.floor(t))&amp;&amp;t&gt;0?n((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null};var nt=rt.range;t.timeDay=h,t.timeDays=p,t.timeFriday=b,t.timeFridays=S,t.timeHour=u,t.timeHours=f,t.timeInterval=n,t.timeMillisecond=i,t.timeMilliseconds=a,t.timeMinute=l,t.timeMinutes=c,t.timeMonday=m,t.timeMondays=T,t.timeMonth=C,t.timeMonths=L,t.timeSaturday=_,t.timeSaturdays=E,t.timeSecond=o,t.timeSeconds=s,t.timeSunday=g,t.timeSundays=w,t.timeThursday=x,t.timeThursdays=A,t.timeTuesday=v,t.timeTuesdays=k,t.timeWednesday=y,t.timeWednesdays=M,t.timeWeek=g,t.timeWeeks=w,t.timeYear=I,t.timeYears=P,t.utcDay=F,t.utcDays=B,t.utcFriday=G,t.utcFridays=Q,t.utcHour=D,t.utcHours=R,t.utcMillisecond=i,t.utcMilliseconds=a,t.utcMinute=z,t.utcMinutes=O,t.utcMonday=U,t.utcMondays=X,t.utcMonth=tt,t.utcMonths=et,t.utcSaturday=Y,t.utcSaturdays=$,t.utcSecond=o,t.utcSeconds=s,t.utcSunday=j,t.utcSundays=W,t.utcThursday=H,t.utcThursdays=K,t.utcTuesday=V,t.utcTuesdays=Z,t.utcWednesday=q,t.utcWednesdays=J,t.utcWeek=j,t.utcWeeks=W,t.utcYear=rt,t.utcYears=nt,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],168:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e,r,n=0,i=0,a=0,o=0,s=0,l=0,c=&quot;object&quot;==typeof performance&amp;&amp;performance.now?performance:Date,u=&quot;object&quot;==typeof window&amp;&amp;window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function f(){return s||(u(h),s=c.now()+l)}function h(){s=0}function p(){this._call=this._time=this._next=null}function d(t,e,r){var n=new p;return n.restart(t,e,r),n}function g(){f(),++n;for(var t,r=e;r;)(t=s-r._time)&gt;=0&amp;&amp;r._call.call(null,t),r=r._next;--n}function m(){s=(o=c.now())+l,n=i=0;try{g()}finally{n=0,function(){var t,n,i=e,a=1/0;for(;i;)i._call?(a&gt;i._time&amp;&amp;(a=i._time),t=i,i=i._next):(n=i._next,i._next=null,i=t?t._next=n:e=n);r=t,y(a)}(),s=0}}function v(){var t=c.now(),e=t-o;e&gt;1e3&amp;&amp;(l-=e,o=t)}function y(t){n||(i&amp;&amp;(i=clearTimeout(i)),t-s&gt;24?(t&lt;1/0&amp;&amp;(i=setTimeout(m,t-c.now()-l)),a&amp;&amp;(a=clearInterval(a))):(a||(o=c.now(),a=setInterval(v,1e3)),n=1,u(m)))}p.prototype=d.prototype={constructor:p,restart:function(t,n,i){if(&quot;function&quot;!=typeof t)throw new TypeError(&quot;callback is not a function&quot;);i=(null==i?f():+i)+(null==n?0:+n),this._next||r===this||(r?r._next=this:e=this,r=this),this._call=t,this._time=i,y()},stop:function(){this._call&amp;&amp;(this._call=null,this._time=1/0,y())}},t.interval=function(t,e,r){var n=new p,i=e;return null==e?(n.restart(t,e,r),n):(e=+e,r=null==r?f():+r,n.restart((function a(o){o+=i,n.restart(a,i+=e,r),t(o)}),e,r),n)},t.now=f,t.timeout=function(t,e,r){var n=new p;return e=null==e?0:+e,n.restart((function(r){n.stop(),t(r+e)}),e,r),n},t.timer=d,t.timerFlush=g,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],169:[function(t,e,r){!function(){var t={version:&quot;3.5.17&quot;},r=[].slice,n=function(t){return r.call(t)},i=this.document;function a(t){return t&amp;&amp;(t.ownerDocument||t.document||t).documentElement}function o(t){return t&amp;&amp;(t.ownerDocument&amp;&amp;t.ownerDocument.defaultView||t.document&amp;&amp;t||t.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch(t){n=function(t){for(var e=t.length,r=new Array(e);e--;)r[e]=t[e];return r}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement(&quot;DIV&quot;).style.setProperty(&quot;opacity&quot;,0,&quot;&quot;)}catch(t){var s=this.Element.prototype,l=s.setAttribute,c=s.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;s.setAttribute=function(t,e){l.call(this,t,e+&quot;&quot;)},s.setAttributeNS=function(t,e,r){c.call(this,t,e,r+&quot;&quot;)},u.setProperty=function(t,e,r){f.call(this,t,e+&quot;&quot;,r)}}function h(t,e){return t&lt;e?-1:t&gt;e?1:t&gt;=e?0:NaN}function p(t){return null===t?NaN:+t}function d(t){return!isNaN(t)}function g(t){return{left:function(e,r,n,i){for(arguments.length&lt;3&amp;&amp;(n=0),arguments.length&lt;4&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&lt;0?n=a+1:i=a}return n},right:function(e,r,n,i){for(arguments.length&lt;3&amp;&amp;(n=0),arguments.length&lt;4&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&gt;0?i=a:n=a+1}return n}}}t.ascending=h,t.descending=function(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN},t.min=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i&lt;a;)if(null!=(n=t[i])&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=t[i])&amp;&amp;r&gt;n&amp;&amp;(r=n)}else{for(;++i&lt;a;)if(null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=e.call(t,t[i],i))&amp;&amp;r&gt;n&amp;&amp;(r=n)}return r},t.max=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i&lt;a;)if(null!=(n=t[i])&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=t[i])&amp;&amp;n&gt;r&amp;&amp;(r=n)}else{for(;++i&lt;a;)if(null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;r&amp;&amp;(r=n)}return r},t.extent=function(t,e){var r,n,i,a=-1,o=t.length;if(1===arguments.length){for(;++a&lt;o;)if(null!=(n=t[a])&amp;&amp;n&gt;=n){r=i=n;break}for(;++a&lt;o;)null!=(n=t[a])&amp;&amp;(r&gt;n&amp;&amp;(r=n),i&lt;n&amp;&amp;(i=n))}else{for(;++a&lt;o;)if(null!=(n=e.call(t,t[a],a))&amp;&amp;n&gt;=n){r=i=n;break}for(;++a&lt;o;)null!=(n=e.call(t,t[a],a))&amp;&amp;(r&gt;n&amp;&amp;(r=n),i&lt;n&amp;&amp;(i=n))}return[r,i]},t.sum=function(t,e){var r,n=0,i=t.length,a=-1;if(1===arguments.length)for(;++a&lt;i;)d(r=+t[a])&amp;&amp;(n+=r);else for(;++a&lt;i;)d(r=+e.call(t,t[a],a))&amp;&amp;(n+=r);return n},t.mean=function(t,e){var r,n=0,i=t.length,a=-1,o=i;if(1===arguments.length)for(;++a&lt;i;)d(r=p(t[a]))?n+=r:--o;else for(;++a&lt;i;)d(r=p(e.call(t,t[a],a)))?n+=r:--o;if(o)return n/o},t.quantile=function(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i},t.median=function(e,r){var n,i=[],a=e.length,o=-1;if(1===arguments.length)for(;++o&lt;a;)d(n=p(e[o]))&amp;&amp;i.push(n);else for(;++o&lt;a;)d(n=p(r.call(e,e[o],o)))&amp;&amp;i.push(n);if(i.length)return t.quantile(i.sort(h),.5)},t.variance=function(t,e){var r,n,i=t.length,a=0,o=0,s=-1,l=0;if(1===arguments.length)for(;++s&lt;i;)d(r=p(t[s]))&amp;&amp;(o+=(n=r-a)*(r-(a+=n/++l)));else for(;++s&lt;i;)d(r=p(e.call(t,t[s],s)))&amp;&amp;(o+=(n=r-a)*(r-(a+=n/++l)));if(l&gt;1)return o/(l-1)},t.deviation=function(){var e=t.variance.apply(this,arguments);return e?Math.sqrt(e):e};var m=g(h);function v(t){return t.length}t.bisectLeft=m.left,t.bisect=t.bisectRight=m.right,t.bisector=function(t){return g(1===t.length?function(e,r){return h(t(e),r)}:t)},t.shuffle=function(t,e,r){(a=arguments.length)&lt;3&amp;&amp;(r=t.length,a&lt;2&amp;&amp;(e=0));for(var n,i,a=r-e;a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.pairs=function(t){for(var e=0,r=t.length-1,n=t[0],i=new Array(r&lt;0?0:r);e&lt;r;)i[e]=[n,n=t[++e]];return i},t.transpose=function(e){if(!(a=e.length))return[];for(var r=-1,n=t.min(e,v),i=new Array(n);++r&lt;n;)for(var a,o=-1,s=i[r]=new Array(a);++o&lt;a;)s[o]=e[o][r];return i},t.zip=function(){return t.transpose(arguments)},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a&lt;i;)o+=t[a].length;for(r=new Array(o);--i&gt;=0;)for(e=(n=t[i]).length;--e&gt;=0;)r[--o]=n[e];return r};var y=Math.abs;function x(t){for(var e=1;t*e%1;)e*=10;return e}function b(t,e){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],enumerable:!1})}function _(){this._=Object.create(null)}t.range=function(t,e,r){if(arguments.length&lt;3&amp;&amp;(r=1,arguments.length&lt;2&amp;&amp;(e=t,t=0)),(e-t)/r==1/0)throw new Error(&quot;infinite range&quot;);var n,i=[],a=x(y(r)),o=-1;if(t*=a,e*=a,(r*=a)&lt;0)for(;(n=t+r*++o)&gt;e;)i.push(n/a);else for(;(n=t+r*++o)&lt;e;)i.push(n/a);return i},t.map=function(t,e){var r=new _;if(t instanceof _)t.forEach((function(t,e){r.set(t,e)}));else if(Array.isArray(t)){var n,i=-1,a=t.length;if(1===arguments.length)for(;++i&lt;a;)r.set(i,t[i]);else for(;++i&lt;a;)r.set(e.call(t,n=t[i],i),n)}else for(var o in t)r.set(o,t[o]);return r};function w(t){return&quot;__proto__&quot;==(t+=&quot;&quot;)||&quot;\0&quot;===t[0]?&quot;\0&quot;+t:t}function T(t){return&quot;\0&quot;===(t+=&quot;&quot;)[0]?t.slice(1):t}function k(t){return w(t)in this._}function M(t){return(t=w(t))in this._&amp;&amp;delete this._[t]}function A(){var t=[];for(var e in this._)t.push(T(e));return t}function S(){var t=0;for(var e in this._)++t;return t}function E(){for(var t in this._)return!1;return!0}function C(){this._=Object.create(null)}function L(t){return t}function I(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}function P(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var r=0,n=z.length;r&lt;n;++r){var i=z[r]+e;if(i in t)return i}}b(_,{has:k,get:function(t){return this._[w(t)]},set:function(t,e){return this._[w(t)]=e},remove:M,keys:A,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:T(e),value:this._[e]});return t},size:S,empty:E,forEach:function(t){for(var e in this._)t.call(this,T(e),this._[e])}}),t.nest=function(){var e,r,n={},i=[],a=[];function o(t,a,s){if(s&gt;=i.length)return r?r.call(n,a):e?a.sort(e):a;for(var l,c,u,f,h=-1,p=a.length,d=i[s++],g=new _;++h&lt;p;)(f=g.get(l=d(c=a[h])))?f.push(c):g.set(l,[c]);return t?(c=t(),u=function(e,r){c.set(e,o(t,r,s))}):(c={},u=function(e,r){c[e]=o(t,r,s)}),g.forEach(u),c}return n.map=function(t,e){return o(e,t,0)},n.entries=function(e){return function t(e,r){if(r&gt;=i.length)return e;var n=[],o=a[r++];return e.forEach((function(e,i){n.push({key:e,values:t(i,r)})})),o?n.sort((function(t,e){return o(t.key,e.key)})):n}(o(t.map,e,0),0)},n.key=function(t){return i.push(t),n},n.sortKeys=function(t){return a[i.length-1]=t,n},n.sortValues=function(t){return e=t,n},n.rollup=function(t){return r=t,n},n},t.set=function(t){var e=new C;if(t)for(var r=0,n=t.length;r&lt;n;++r)e.add(t[r]);return e},b(C,{has:k,add:function(t){return this._[w(t+=&quot;&quot;)]=!0,t},remove:M,values:A,size:S,empty:E,forEach:function(t){for(var e in this._)t.call(this,T(e))}}),t.behavior={},t.rebind=function(t,e){for(var r,n=1,i=arguments.length;++n&lt;i;)t[r=arguments[n]]=I(t,e,e[r]);return t};var z=[&quot;webkit&quot;,&quot;ms&quot;,&quot;moz&quot;,&quot;Moz&quot;,&quot;o&quot;,&quot;O&quot;];function O(){}function D(){}function R(t){var e=[],r=new _;function n(){for(var r,n=e,i=-1,a=n.length;++i&lt;a;)(r=n[i].on)&amp;&amp;r.apply(this,arguments);return t}return n.on=function(n,i){var a,o=r.get(n);return arguments.length&lt;2?o&amp;&amp;o.on:(o&amp;&amp;(o.on=null,e=e.slice(0,a=e.indexOf(o)).concat(e.slice(a+1)),r.remove(n)),i&amp;&amp;e.push(r.set(n,{on:i})),t)},n}function F(){t.event.preventDefault()}function B(){for(var e,r=t.event;e=r.sourceEvent;)r=e;return r}function N(e){for(var r=new D,n=0,i=arguments.length;++n&lt;i;)r[arguments[n]]=R(r);return r.of=function(n,i){return function(a){try{var o=a.sourceEvent=t.event;a.target=e,t.event=a,r[a.type].apply(n,i)}finally{t.event=o}}},r}t.dispatch=function(){for(var t=new D,e=-1,r=arguments.length;++e&lt;r;)t[arguments[e]]=R(t);return t},D.prototype.on=function(t,e){var r=t.indexOf(&quot;.&quot;),n=&quot;&quot;;if(r&gt;=0&amp;&amp;(n=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length&lt;2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&amp;&amp;this[t].on(n,null);return this}},t.event=null,t.requote=function(t){return t.replace(j,&quot;\\$&amp;&quot;)};var j=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,U={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)t[r]=e[r]};function V(t){return U(t,Y),t}var q=function(t,e){return e.querySelector(t)},H=function(t,e){return e.querySelectorAll(t)},G=function(t,e){var r=t.matches||t[P(t,&quot;matchesSelector&quot;)];return(G=function(t,e){return r.call(t,e)})(t,e)};&quot;function&quot;==typeof Sizzle&amp;&amp;(q=function(t,e){return Sizzle(t,e)[0]||null},H=Sizzle,G=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Y=t.selection.prototype=[];function W(t){return&quot;function&quot;==typeof t?t:function(){return q(t,this)}}function X(t){return&quot;function&quot;==typeof t?t:function(){return H(t,this)}}Y.select=function(t){var e,r,n,i,a=[];t=W(t);for(var o=-1,s=this.length;++o&lt;s;){a.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var l=-1,c=n.length;++l&lt;c;)(i=n[l])?(e.push(r=t.call(i,i.__data__,l,o)),r&amp;&amp;&quot;__data__&quot;in i&amp;&amp;(r.__data__=i.__data__)):e.push(null)}return V(a)},Y.selectAll=function(t){var e,r,i=[];t=X(t);for(var a=-1,o=this.length;++a&lt;o;)for(var s=this[a],l=-1,c=s.length;++l&lt;c;)(r=s[l])&amp;&amp;(i.push(e=n(t.call(r,r.__data__,l,a))),e.parentNode=r);return V(i)};var Z=&quot;http://www.w3.org/1999/xhtml&quot;,J={svg:&quot;http://www.w3.org/2000/svg&quot;,xhtml:Z,xlink:&quot;http://www.w3.org/1999/xlink&quot;,xml:&quot;http://www.w3.org/XML/1998/namespace&quot;,xmlns:&quot;http://www.w3.org/2000/xmlns/&quot;};function K(e,r){return e=t.ns.qualify(e),null==r?e.local?function(){this.removeAttributeNS(e.space,e.local)}:function(){this.removeAttribute(e)}:&quot;function&quot;==typeof r?e.local?function(){var t=r.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}:function(){var t=r.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}:e.local?function(){this.setAttributeNS(e.space,e.local,r)}:function(){this.setAttribute(e,r)}}function Q(t){return t.trim().replace(/\s+/g,&quot; &quot;)}function $(e){return new RegExp(&quot;(?:^|\\s+)&quot;+t.requote(e)+&quot;(?:\\s+|$)&quot;,&quot;g&quot;)}function tt(t){return(t+&quot;&quot;).trim().split(/^|\s+/)}function et(t,e){var r=(t=tt(t).map(rt)).length;return&quot;function&quot;==typeof e?function(){for(var n=-1,i=e.apply(this,arguments);++n&lt;r;)t[n](this,i)}:function(){for(var n=-1;++n&lt;r;)t[n](this,e)}}function rt(t){var e=$(t);return function(r,n){if(i=r.classList)return n?i.add(t):i.remove(t);var i=r.getAttribute(&quot;class&quot;)||&quot;&quot;;n?(e.lastIndex=0,e.test(i)||r.setAttribute(&quot;class&quot;,Q(i+&quot; &quot;+t))):r.setAttribute(&quot;class&quot;,Q(i.replace(e,&quot; &quot;)))}}function nt(t,e,r){return null==e?function(){this.style.removeProperty(t)}:&quot;function&quot;==typeof e?function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}:function(){this.style.setProperty(t,e,r)}}function it(t,e){return null==e?function(){delete this[t]}:&quot;function&quot;==typeof e?function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}:function(){this[t]=e}}function at(e){return&quot;function&quot;==typeof e?e:(e=t.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Z&amp;&amp;t.documentElement.namespaceURI===Z?t.createElement(e):t.createElementNS(r,e)}}function ot(){var t=this.parentNode;t&amp;&amp;t.removeChild(this)}function st(t){return{__data__:t}}function lt(t){return function(){return G(this,t)}}function ct(t){return arguments.length||(t=h),function(e,r){return e&amp;&amp;r?t(e.__data__,r.__data__):!e-!r}}function ut(t,e){for(var r=0,n=t.length;r&lt;n;r++)for(var i,a=t[r],o=0,s=a.length;o&lt;s;o++)(i=a[o])&amp;&amp;e(i,o,r);return t}function ft(t){return U(t,ht),t}t.ns={prefix:J,qualify:function(t){var e=t.indexOf(&quot;:&quot;),r=t;return e&gt;=0&amp;&amp;&quot;xmlns&quot;!==(r=t.slice(0,e))&amp;&amp;(t=t.slice(e+1)),J.hasOwnProperty(r)?{space:J[r],local:t}:t}},Y.attr=function(e,r){if(arguments.length&lt;2){if(&quot;string&quot;==typeof e){var n=this.node();return(e=t.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(r in e)this.each(K(r,e[r]));return this}return this.each(K(e,r))},Y.classed=function(t,e){if(arguments.length&lt;2){if(&quot;string&quot;==typeof t){var r=this.node(),n=(t=tt(t)).length,i=-1;if(e=r.classList){for(;++i&lt;n;)if(!e.contains(t[i]))return!1}else for(e=r.getAttribute(&quot;class&quot;);++i&lt;n;)if(!$(t[i]).test(e))return!1;return!0}for(e in t)this.each(et(e,t[e]));return this}return this.each(et(t,e))},Y.style=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=&quot;&quot;),t)this.each(nt(r,t[r],e));return this}if(n&lt;2){var i=this.node();return o(i).getComputedStyle(i,null).getPropertyValue(t)}r=&quot;&quot;}return this.each(nt(t,e,r))},Y.property=function(t,e){if(arguments.length&lt;2){if(&quot;string&quot;==typeof t)return this.node()[t];for(e in t)this.each(it(e,t[e]));return this}return this.each(it(t,e))},Y.text=function(t){return arguments.length?this.each(&quot;function&quot;==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?&quot;&quot;:e}:null==t?function(){this.textContent=&quot;&quot;}:function(){this.textContent=t}):this.node().textContent},Y.html=function(t){return arguments.length?this.each(&quot;function&quot;==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?&quot;&quot;:e}:null==t?function(){this.innerHTML=&quot;&quot;}:function(){this.innerHTML=t}):this.node().innerHTML},Y.append=function(t){return t=at(t),this.select((function(){return this.appendChild(t.apply(this,arguments))}))},Y.insert=function(t,e){return t=at(t),e=W(e),this.select((function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)}))},Y.remove=function(){return this.each(ot)},Y.data=function(t,e){var r,n,i=-1,a=this.length;if(!arguments.length){for(t=new Array(a=(r=this[0]).length);++i&lt;a;)(n=r[i])&amp;&amp;(t[i]=n.__data__);return t}function o(t,r){var n,i,a,o=t.length,u=r.length,f=Math.min(o,u),h=new Array(u),p=new Array(u),d=new Array(o);if(e){var g,m=new _,v=new Array(o);for(n=-1;++n&lt;o;)(i=t[n])&amp;&amp;(m.has(g=e.call(i,i.__data__,n))?d[n]=i:m.set(g,i),v[n]=g);for(n=-1;++n&lt;u;)(i=m.get(g=e.call(r,a=r[n],n)))?!0!==i&amp;&amp;(h[n]=i,i.__data__=a):p[n]=st(a),m.set(g,!0);for(n=-1;++n&lt;o;)n in v&amp;&amp;!0!==m.get(v[n])&amp;&amp;(d[n]=t[n])}else{for(n=-1;++n&lt;f;)i=t[n],a=r[n],i?(i.__data__=a,h[n]=i):p[n]=st(a);for(;n&lt;u;++n)p[n]=st(r[n]);for(;n&lt;o;++n)d[n]=t[n]}p.update=h,p.parentNode=h.parentNode=d.parentNode=t.parentNode,s.push(p),l.push(h),c.push(d)}var s=ft([]),l=V([]),c=V([]);if(&quot;function&quot;==typeof t)for(;++i&lt;a;)o(r=this[i],t.call(r,r.parentNode.__data__,i));else for(;++i&lt;a;)o(r=this[i],t);return l.enter=function(){return s},l.exit=function(){return c},l},Y.datum=function(t){return arguments.length?this.property(&quot;__data__&quot;,t):this.property(&quot;__data__&quot;)},Y.filter=function(t){var e,r,n,i=[];&quot;function&quot;!=typeof t&amp;&amp;(t=lt(t));for(var a=0,o=this.length;a&lt;o;a++){i.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var s=0,l=r.length;s&lt;l;s++)(n=r[s])&amp;&amp;t.call(n,n.__data__,s,a)&amp;&amp;e.push(n)}return V(i)},Y.order=function(){for(var t=-1,e=this.length;++t&lt;e;)for(var r,n=this[t],i=n.length-1,a=n[i];--i&gt;=0;)(r=n[i])&amp;&amp;(a&amp;&amp;a!==r.nextSibling&amp;&amp;a.parentNode.insertBefore(r,a),a=r);return this},Y.sort=function(t){t=ct.apply(this,arguments);for(var e=-1,r=this.length;++e&lt;r;)this[e].sort(t);return this.order()},Y.each=function(t){return ut(this,(function(e,r,n){t.call(e,e.__data__,r,n)}))},Y.call=function(t){var e=n(arguments);return t.apply(e[0]=this,e),this},Y.empty=function(){return!this.node()},Y.node=function(){for(var t=0,e=this.length;t&lt;e;t++)for(var r=this[t],n=0,i=r.length;n&lt;i;n++){var a=r[n];if(a)return a}return null},Y.size=function(){var t=0;return ut(this,(function(){++t})),t};var ht=[];function pt(t){var e,r;return function(n,i,a){var o,s=t[a].update,l=s.length;for(a!=r&amp;&amp;(r=a,e=0),i&gt;=e&amp;&amp;(e=i+1);!(o=s[e])&amp;&amp;++e&lt;l;);return o}}function dt(e,r,i){var a=&quot;__on&quot;+e,o=e.indexOf(&quot;.&quot;),s=mt;o&gt;0&amp;&amp;(e=e.slice(0,o));var l=gt.get(e);function c(){var t=this[a];t&amp;&amp;(this.removeEventListener(e,t,t.$),delete this[a])}return l&amp;&amp;(e=l,s=vt),o?r?function(){var t=s(r,n(arguments));c.call(this),this.addEventListener(e,this[a]=t,t.$=i),t._=r}:c:r?O:function(){var r,n=new RegExp(&quot;^__on([^.]+)&quot;+t.requote(e)+&quot;$&quot;);for(var i in this)if(r=i.match(n)){var a=this[i];this.removeEventListener(r[1],a,a.$),delete this[i]}}}t.selection.enter=ft,t.selection.enter.prototype=ht,ht.append=Y.append,ht.empty=Y.empty,ht.node=Y.node,ht.call=Y.call,ht.size=Y.size,ht.select=function(t){for(var e,r,n,i,a,o=[],s=-1,l=this.length;++s&lt;l;){n=(i=this[s]).update,o.push(e=[]),e.parentNode=i.parentNode;for(var c=-1,u=i.length;++c&lt;u;)(a=i[c])?(e.push(n[c]=r=t.call(i.parentNode,a.__data__,c,s)),r.__data__=a.__data__):e.push(null)}return V(o)},ht.insert=function(t,e){return arguments.length&lt;2&amp;&amp;(e=pt(this)),Y.insert.call(this,t,e)},t.select=function(t){var e;return&quot;string&quot;==typeof t?(e=[q(t,i)]).parentNode=i.documentElement:(e=[t]).parentNode=a(t),V([e])},t.selectAll=function(t){var e;return&quot;string&quot;==typeof t?(e=n(H(t,i))).parentNode=i.documentElement:(e=n(t)).parentNode=null,V([e])},Y.on=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=!1),t)this.each(dt(r,t[r],e));return this}if(n&lt;2)return(n=this.node()[&quot;__on&quot;+t])&amp;&amp;n._;r=!1}return this.each(dt(t,e,r))};var gt=t.map({mouseenter:&quot;mouseover&quot;,mouseleave:&quot;mouseout&quot;});function mt(e,r){return function(n){var i=t.event;t.event=n,r[0]=this.__data__;try{e.apply(this,r)}finally{t.event=i}}}function vt(t,e){var r=mt(t,e);return function(t){var e=t.relatedTarget;e&amp;&amp;(e===this||8&amp;e.compareDocumentPosition(this))||r.call(this,t)}}i&amp;&amp;gt.forEach((function(t){&quot;on&quot;+t in i&amp;&amp;gt.remove(t)}));var yt,xt=0;function bt(e){var r=&quot;.dragsuppress-&quot;+ ++xt,n=&quot;click&quot;+r,i=t.select(o(e)).on(&quot;touchmove&quot;+r,F).on(&quot;dragstart&quot;+r,F).on(&quot;selectstart&quot;+r,F);if(null==yt&amp;&amp;(yt=!(&quot;onselectstart&quot;in e)&amp;&amp;P(e.style,&quot;userSelect&quot;)),yt){var s=a(e).style,l=s[yt];s[yt]=&quot;none&quot;}return function(t){if(i.on(r,null),yt&amp;&amp;(s[yt]=l),t){var e=function(){i.on(n,null)};i.on(n,(function(){F(),e()}),!0),setTimeout(e,0)}}}t.mouse=function(t){return wt(t,B())};var _t=this.navigator&amp;&amp;/WebKit/.test(this.navigator.userAgent)?-1:0;function wt(e,r){r.changedTouches&amp;&amp;(r=r.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();if(_t&lt;0){var a=o(e);if(a.scrollX||a.scrollY){var s=(n=t.select(&quot;body&quot;).append(&quot;svg&quot;).style({position:&quot;absolute&quot;,top:0,left:0,margin:0,padding:0,border:&quot;none&quot;},&quot;important&quot;))[0][0].getScreenCTM();_t=!(s.f||s.e),n.remove()}}return _t?(i.x=r.pageX,i.y=r.pageY):(i.x=r.clientX,i.y=r.clientY),[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}var l=e.getBoundingClientRect();return[r.clientX-l.left-e.clientLeft,r.clientY-l.top-e.clientTop]}function Tt(){return t.event.changedTouches[0].identifier}t.touch=function(t,e,r){if(arguments.length&lt;3&amp;&amp;(r=e,e=B().changedTouches),e)for(var n,i=0,a=e.length;i&lt;a;++i)if((n=e[i]).identifier===r)return wt(t,n)},t.behavior.drag=function(){var e=N(a,&quot;drag&quot;,&quot;dragstart&quot;,&quot;dragend&quot;),r=null,n=s(O,t.mouse,o,&quot;mousemove&quot;,&quot;mouseup&quot;),i=s(Tt,t.touch,L,&quot;touchmove&quot;,&quot;touchend&quot;);function a(){this.on(&quot;mousedown.drag&quot;,n).on(&quot;touchstart.drag&quot;,i)}function s(n,i,a,o,s){return function(){var l,c=this,u=t.event.target.correspondingElement||t.event.target,f=c.parentNode,h=e.of(c,arguments),p=0,d=n(),g=&quot;.drag&quot;+(null==d?&quot;&quot;:&quot;-&quot;+d),m=t.select(a(u)).on(o+g,x).on(s+g,b),v=bt(u),y=i(f,d);function x(){var t,e,r=i(f,d);r&amp;&amp;(t=r[0]-y[0],e=r[1]-y[1],p|=t|e,y=r,h({type:&quot;drag&quot;,x:r[0]+l[0],y:r[1]+l[1],dx:t,dy:e}))}function b(){i(f,d)&amp;&amp;(m.on(o+g,null).on(s+g,null),v(p),h({type:&quot;dragend&quot;}))}l=r?[(l=r.apply(c,arguments)).x-y[0],l.y-y[1]]:[0,0],h({type:&quot;dragstart&quot;})}}return a.origin=function(t){return arguments.length?(r=t,a):r},t.rebind(a,e,&quot;on&quot;)},t.touches=function(t,e){return arguments.length&lt;2&amp;&amp;(e=B().touches),e?n(e).map((function(e){var r=wt(t,e);return r.identifier=e.identifier,r})):[]};var kt=1e-6,Mt=1e-12,At=Math.PI,St=2*At,Et=St-kt,Ct=At/2,Lt=At/180,It=180/At;function Pt(t){return t&gt;0?1:t&lt;0?-1:0}function zt(t,e,r){return(e[0]-t[0])*(r[1]-t[1])-(e[1]-t[1])*(r[0]-t[0])}function Ot(t){return t&gt;1?0:t&lt;-1?At:Math.acos(t)}function Dt(t){return t&gt;1?Ct:t&lt;-1?-Ct:Math.asin(t)}function Rt(t){return((t=Math.exp(t))+1/t)/2}function Ft(t){return(t=Math.sin(t/2))*t}var Bt=Math.SQRT2;t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h&lt;Mt)n=Math.log(c/o)/Bt,r=function(t){return[i+t*u,a+t*f,o*Math.exp(Bt*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),g=(c*c-o*o-4*h)/(2*c*2*p),m=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(g*g+1)-g);n=(v-m)/Bt,r=function(t){var e,r=t*n,s=Rt(m),l=o/(2*p)*(s*(e=Bt*r+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[i+l*u,a+l*f,o*s/Rt(Bt*r+m)]}}return r.duration=1e3*n,r},t.behavior.zoom=function(){var e,r,n,a,s,l,c,u,f,h={x:0,y:0,k:1},p=[960,500],d=Ut,g=250,m=0,v=&quot;mousedown.zoom&quot;,y=&quot;mousemove.zoom&quot;,x=&quot;mouseup.zoom&quot;,b=&quot;touchstart.zoom&quot;,_=N(w,&quot;zoomstart&quot;,&quot;zoom&quot;,&quot;zoomend&quot;);function w(t){t.on(v,I).on(jt+&quot;.zoom&quot;,z).on(&quot;dblclick.zoom&quot;,O).on(b,P)}function T(t){return[(t[0]-h.x)/h.k,(t[1]-h.y)/h.k]}function k(t){h.k=Math.max(d[0],Math.min(d[1],t))}function M(t,e){e=function(t){return[t[0]*h.k+h.x,t[1]*h.k+h.y]}(e),h.x+=t[0]-e[0],h.y+=t[1]-e[1]}function A(e,n,i,a){e.__chart__={x:h.x,y:h.y,k:h.k},k(Math.pow(2,a)),M(r=n,i),e=t.select(e),g&gt;0&amp;&amp;(e=e.transition().duration(g)),e.call(w.event)}function S(){c&amp;&amp;c.domain(l.range().map((function(t){return(t-h.x)/h.k})).map(l.invert)),f&amp;&amp;f.domain(u.range().map((function(t){return(t-h.y)/h.k})).map(u.invert))}function E(t){m++||t({type:&quot;zoomstart&quot;})}function C(t){S(),t({type:&quot;zoom&quot;,scale:h.k,translate:[h.x,h.y]})}function L(t){--m||(t({type:&quot;zoomend&quot;}),r=null)}function I(){var e=this,r=_.of(e,arguments),n=0,i=t.select(o(e)).on(y,l).on(x,c),a=T(t.mouse(e)),s=bt(e);function l(){n=1,M(t.mouse(e),a),C(r)}function c(){i.on(y,null).on(x,null),s(n),L(r)}vs.call(e),E(r)}function P(){var e,r=this,n=_.of(r,arguments),i={},a=0,o=&quot;.zoom-&quot;+t.event.changedTouches[0].identifier,l=&quot;touchmove&quot;+o,c=&quot;touchend&quot;+o,u=[],f=t.select(r),p=bt(r);function d(){var n=t.touches(r);return e=h.k,n.forEach((function(t){t.identifier in i&amp;&amp;(i[t.identifier]=T(t))})),n}function g(){var e=t.event.target;t.select(e).on(l,m).on(c,y),u.push(e);for(var n=t.event.changedTouches,o=0,f=n.length;o&lt;f;++o)i[n[o].identifier]=null;var p=d(),g=Date.now();if(1===p.length){if(g-s&lt;500){var v=p[0];A(r,v,i[v.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),F()}s=g}else if(p.length&gt;1){v=p[0];var x=p[1],b=v[0]-x[0],_=v[1]-x[1];a=b*b+_*_}}function m(){var o,l,c,u,f=t.touches(r);vs.call(r);for(var h=0,p=f.length;h&lt;p;++h,u=null)if(c=f[h],u=i[c.identifier]){if(l)break;o=c,l=u}if(u){var d=(d=c[0]-o[0])*d+(d=c[1]-o[1])*d,g=a&amp;&amp;Math.sqrt(d/a);o=[(o[0]+c[0])/2,(o[1]+c[1])/2],l=[(l[0]+u[0])/2,(l[1]+u[1])/2],k(g*e)}s=null,M(o,l),C(n)}function y(){if(t.event.touches.length){for(var e=t.event.changedTouches,r=0,a=e.length;r&lt;a;++r)delete i[e[r].identifier];for(var s in i)return void d()}t.selectAll(u).on(o,null),f.on(v,I).on(b,P),p(),L(n)}g(),E(n),f.on(v,null).on(b,g)}function z(){var i=_.of(this,arguments);a?clearTimeout(a):(vs.call(this),e=T(r=n||t.mouse(this)),E(i)),a=setTimeout((function(){a=null,L(i)}),50),F(),k(Math.pow(2,.002*Nt())*h.k),M(r,e),C(i)}function O(){var e=t.mouse(this),r=Math.log(h.k)/Math.LN2;A(this,e,T(e),t.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)}return jt||(jt=&quot;onwheel&quot;in i?(Nt=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},&quot;wheel&quot;):&quot;onmousewheel&quot;in i?(Nt=function(){return t.event.wheelDelta},&quot;mousewheel&quot;):(Nt=function(){return-t.event.detail},&quot;MozMousePixelScroll&quot;)),w.event=function(e){e.each((function(){var e=_.of(this,arguments),n=h;bs?t.select(this).transition().each(&quot;start.zoom&quot;,(function(){h=this.__chart__||{x:0,y:0,k:1},E(e)})).tween(&quot;zoom:zoom&quot;,(function(){var i=p[0],a=p[1],o=r?r[0]:i/2,s=r?r[1]:a/2,l=t.interpolateZoom([(o-h.x)/h.k,(s-h.y)/h.k,i/h.k],[(o-n.x)/n.k,(s-n.y)/n.k,i/n.k]);return function(t){var r=l(t),n=i/r[2];this.__chart__=h={x:o-r[0]*n,y:s-r[1]*n,k:n},C(e)}})).each(&quot;interrupt.zoom&quot;,(function(){L(e)})).each(&quot;end.zoom&quot;,(function(){L(e)})):(this.__chart__=h,E(e),C(e),L(e))}))},w.translate=function(t){return arguments.length?(h={x:+t[0],y:+t[1],k:h.k},S(),w):[h.x,h.y]},w.scale=function(t){return arguments.length?(h={x:h.x,y:h.y,k:null},k(+t),S(),w):h.k},w.scaleExtent=function(t){return arguments.length?(d=null==t?Ut:[+t[0],+t[1]],w):d},w.center=function(t){return arguments.length?(n=t&amp;&amp;[+t[0],+t[1]],w):n},w.size=function(t){return arguments.length?(p=t&amp;&amp;[+t[0],+t[1]],w):p},w.duration=function(t){return arguments.length?(g=+t,w):g},w.x=function(t){return arguments.length?(c=t,l=t.copy(),h={x:0,y:0,k:1},w):c},w.y=function(t){return arguments.length?(f=t,u=t.copy(),h={x:0,y:0,k:1},w):f},t.rebind(w,_,&quot;on&quot;)};var Nt,jt,Ut=[0,1/0];function Vt(){}function qt(t,e,r){return this instanceof qt?(this.h=+t,this.s=+e,void(this.l=+r)):arguments.length&lt;2?t instanceof qt?new qt(t.h,t.s,t.l):le(&quot;&quot;+t,ce,qt):new qt(t,e,r)}t.color=Vt,Vt.prototype.toString=function(){return this.rgb()+&quot;&quot;},t.hsl=qt;var Ht=qt.prototype=new Vt;function Gt(t,e,r){var n,i;function a(t){return Math.round(255*function(t){return t&gt;360?t-=360:t&lt;0&amp;&amp;(t+=360),t&lt;60?n+(i-n)*t/60:t&lt;180?i:t&lt;240?n+(i-n)*(240-t)/60:n}(t))}return t=isNaN(t)?0:(t%=360)&lt;0?t+360:t,e=isNaN(e)||e&lt;0?0:e&gt;1?1:e,n=2*(r=r&lt;0?0:r&gt;1?1:r)-(i=r&lt;=.5?r*(1+e):r+e-r*e),new ne(a(t+120),a(t),a(t-120))}function Yt(e,r,n){return this instanceof Yt?(this.h=+e,this.c=+r,void(this.l=+n)):arguments.length&lt;2?e instanceof Yt?new Yt(e.h,e.c,e.l):$t(e instanceof Zt?e.l:(e=ue((e=t.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Yt(e,r,n)}Ht.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new qt(this.h,this.s,this.l/t)},Ht.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new qt(this.h,this.s,t*this.l)},Ht.rgb=function(){return Gt(this.h,this.s,this.l)},t.hcl=Yt;var Wt=Yt.prototype=new Vt;function Xt(t,e,r){return isNaN(t)&amp;&amp;(t=0),isNaN(e)&amp;&amp;(e=0),new Zt(r,Math.cos(t*=Lt)*e,Math.sin(t)*e)}function Zt(t,e,r){return this instanceof Zt?(this.l=+t,this.a=+e,void(this.b=+r)):arguments.length&lt;2?t instanceof Zt?new Zt(t.l,t.a,t.b):t instanceof Yt?Xt(t.h,t.c,t.l):ue((t=ne(t)).r,t.g,t.b):new Zt(t,e,r)}Wt.brighter=function(t){return new Yt(this.h,this.c,Math.min(100,this.l+Jt*(arguments.length?t:1)))},Wt.darker=function(t){return new Yt(this.h,this.c,Math.max(0,this.l-Jt*(arguments.length?t:1)))},Wt.rgb=function(){return Xt(this.h,this.c,this.l).rgb()},t.lab=Zt;var Jt=18,Kt=Zt.prototype=new Vt;function Qt(t,e,r){var n=(t+16)/116,i=n+e/500,a=n-r/200;return new ne(re(3.2404542*(i=.95047*te(i))-1.5371385*(n=1*te(n))-.4985314*(a=1.08883*te(a))),re(-.969266*i+1.8760108*n+.041556*a),re(.0556434*i-.2040259*n+1.0572252*a))}function $t(t,e,r){return t&gt;0?new Yt(Math.atan2(r,e)*It,Math.sqrt(e*e+r*r),t):new Yt(NaN,NaN,t)}function te(t){return t&gt;.206893034?t*t*t:(t-4/29)/7.787037}function ee(t){return t&gt;.008856?Math.pow(t,1/3):7.787037*t+4/29}function re(t){return Math.round(255*(t&lt;=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function ne(t,e,r){return this instanceof ne?(this.r=~~t,this.g=~~e,void(this.b=~~r)):arguments.length&lt;2?t instanceof ne?new ne(t.r,t.g,t.b):le(&quot;&quot;+t,ne,Gt):new ne(t,e,r)}function ie(t){return new ne(t&gt;&gt;16,t&gt;&gt;8&amp;255,255&amp;t)}function ae(t){return ie(t)+&quot;&quot;}Kt.brighter=function(t){return new Zt(Math.min(100,this.l+Jt*(arguments.length?t:1)),this.a,this.b)},Kt.darker=function(t){return new Zt(Math.max(0,this.l-Jt*(arguments.length?t:1)),this.a,this.b)},Kt.rgb=function(){return Qt(this.l,this.a,this.b)},t.rgb=ne;var oe=ne.prototype=new Vt;function se(t){return t&lt;16?&quot;0&quot;+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function le(t,e,r){var n,i,a,o=0,s=0,l=0;if(n=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=n[2].split(&quot;,&quot;),n[1]){case&quot;hsl&quot;:return r(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case&quot;rgb&quot;:return e(he(i[0]),he(i[1]),he(i[2]))}return(a=pe.get(t))?e(a.r,a.g,a.b):(null==t||&quot;#&quot;!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&amp;a)&gt;&gt;4,o|=o&gt;&gt;4,s=240&amp;a,s|=s&gt;&gt;4,l=15&amp;a,l|=l&lt;&lt;4):7===t.length&amp;&amp;(o=(16711680&amp;a)&gt;&gt;16,s=(65280&amp;a)&gt;&gt;8,l=255&amp;a)),e(o,s,l))}function ce(t,e,r){var n,i,a=Math.min(t/=255,e/=255,r/=255),o=Math.max(t,e,r),s=o-a,l=(o+a)/2;return s?(i=l&lt;.5?s/(o+a):s/(2-o-a),n=t==o?(e-r)/s+(e&lt;r?6:0):e==o?(r-t)/s+2:(t-e)/s+4,n*=60):(n=NaN,i=l&gt;0&amp;&amp;l&lt;1?0:n),new qt(n,i,l)}function ue(t,e,r){var n=ee((.4124564*(t=fe(t))+.3575761*(e=fe(e))+.1804375*(r=fe(r)))/.95047),i=ee((.2126729*t+.7151522*e+.072175*r)/1);return Zt(116*i-16,500*(n-i),200*(i-ee((.0193339*t+.119192*e+.9503041*r)/1.08883)))}function fe(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function he(t){var e=parseFloat(t);return&quot;%&quot;===t.charAt(t.length-1)?Math.round(2.55*e):e}oe.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,r=this.g,n=this.b,i=30;return e||r||n?(e&amp;&amp;e&lt;i&amp;&amp;(e=i),r&amp;&amp;r&lt;i&amp;&amp;(r=i),n&amp;&amp;n&lt;i&amp;&amp;(n=i),new ne(Math.min(255,e/t),Math.min(255,r/t),Math.min(255,n/t))):new ne(i,i,i)},oe.darker=function(t){return new ne((t=Math.pow(.7,arguments.length?t:1))*this.r,t*this.g,t*this.b)},oe.hsl=function(){return ce(this.r,this.g,this.b)},oe.toString=function(){return&quot;#&quot;+se(this.r)+se(this.g)+se(this.b)};var pe=t.map({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 de(t){return&quot;function&quot;==typeof t?t:function(){return t}}function ge(t){return function(e,r,n){return 2===arguments.length&amp;&amp;&quot;function&quot;==typeof r&amp;&amp;(n=r,r=null),me(e,r,t,n)}}function me(e,r,i,a){var o={},s=t.dispatch(&quot;beforesend&quot;,&quot;progress&quot;,&quot;load&quot;,&quot;error&quot;),l={},c=new XMLHttpRequest,u=null;function f(){var t,e=c.status;if(!e&amp;&amp;function(t){var e=t.responseType;return e&amp;&amp;&quot;text&quot;!==e?t.response:t.responseText}(c)||e&gt;=200&amp;&amp;e&lt;300||304===e){try{t=i.call(o,c)}catch(t){return void s.error.call(o,t)}s.load.call(o,t)}else s.error.call(o,c)}return this.XDomainRequest&amp;&amp;!(&quot;withCredentials&quot;in c)&amp;&amp;/^(http(s)?:)?\/\//.test(e)&amp;&amp;(c=new XDomainRequest),&quot;onload&quot;in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState&gt;3&amp;&amp;f()},c.onprogress=function(e){var r=t.event;t.event=e;try{s.progress.call(o,c)}finally{t.event=r}},o.header=function(t,e){return t=(t+&quot;&quot;).toLowerCase(),arguments.length&lt;2?l[t]:(null==e?delete l[t]:l[t]=e+&quot;&quot;,o)},o.mimeType=function(t){return arguments.length?(r=null==t?null:t+&quot;&quot;,o):r},o.responseType=function(t){return arguments.length?(u=t,o):u},o.response=function(t){return i=t,o},[&quot;get&quot;,&quot;post&quot;].forEach((function(t){o[t]=function(){return o.send.apply(o,[t].concat(n(arguments)))}})),o.send=function(t,n,i){if(2===arguments.length&amp;&amp;&quot;function&quot;==typeof n&amp;&amp;(i=n,n=null),c.open(t,e,!0),null==r||&quot;accept&quot;in l||(l.accept=r+&quot;,*/*&quot;),c.setRequestHeader)for(var a in l)c.setRequestHeader(a,l[a]);return null!=r&amp;&amp;c.overrideMimeType&amp;&amp;c.overrideMimeType(r),null!=u&amp;&amp;(c.responseType=u),null!=i&amp;&amp;o.on(&quot;error&quot;,i).on(&quot;load&quot;,(function(t){i(null,t)})),s.beforesend.call(o,c),c.send(null==n?null:n),o},o.abort=function(){return c.abort(),o},t.rebind(o,s,&quot;on&quot;),null==a?o:o.get(function(t){return 1===t.length?function(e,r){t(null==e?r:null)}:t}(a))}pe.forEach((function(t,e){pe.set(t,ie(e))})),t.functor=de,t.xhr=ge(L),t.dsv=function(t,e){var r=new RegExp('[&quot;'+t+&quot;\n]&quot;),n=t.charCodeAt(0);function i(t,r,n){arguments.length&lt;3&amp;&amp;(n=r,r=null);var i=me(t,e,null==r?a:o(r),n);return i.row=function(t){return arguments.length?i.response(null==(r=t)?a:o(t)):r},i}function a(t){return i.parse(t.responseText)}function o(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(l).join(t)}function l(t){return r.test(t)?'&quot;'+t.replace(/\&quot;/g,'&quot;&quot;')+'&quot;':t}return i.parse=function(t,e){var r;return i.parseRows(t,(function(t,n){if(r)return r(t,n-1);var i=new Function(&quot;d&quot;,&quot;return {&quot;+t.map((function(t,e){return JSON.stringify(t)+&quot;: d[&quot;+e+&quot;]&quot;})).join(&quot;,&quot;)+&quot;}&quot;);r=e?function(t,r){return e(i(t),r)}:i}))},i.parseRows=function(t,e){var r,i,a={},o={},s=[],l=t.length,c=0,u=0;function f(){if(c&gt;=l)return o;if(i)return i=!1,a;var e=c;if(34===t.charCodeAt(e)){for(var r=e;r++&lt;l;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return c=r+2,13===(s=t.charCodeAt(r+1))?(i=!0,10===t.charCodeAt(r+2)&amp;&amp;++c):10===s&amp;&amp;(i=!0),t.slice(e+1,r).replace(/&quot;&quot;/g,'&quot;')}for(;c&lt;l;){var s,u=1;if(10===(s=t.charCodeAt(c++)))i=!0;else if(13===s)i=!0,10===t.charCodeAt(c)&amp;&amp;(++c,++u);else if(s!==n)continue;return t.slice(e,c-u)}return t.slice(e)}for(;(r=f())!==o;){for(var h=[];r!==a&amp;&amp;r!==o;)h.push(r),r=f();e&amp;&amp;null==(h=e(h,u++))||s.push(h)}return s},i.format=function(e){if(Array.isArray(e[0]))return i.formatRows(e);var r=new C,n=[];return e.forEach((function(t){for(var e in t)r.has(e)||n.push(r.add(e))})),[n.map(l).join(t)].concat(e.map((function(e){return n.map((function(t){return l(e[t])})).join(t)}))).join(&quot;\n&quot;)},i.formatRows=function(t){return t.map(s).join(&quot;\n&quot;)},i},t.csv=t.dsv(&quot;,&quot;,&quot;text/csv&quot;),t.tsv=t.dsv(&quot;\t&quot;,&quot;text/tab-separated-values&quot;);var ve,ye,xe,be,_e=this[P(this,&quot;requestAnimationFrame&quot;)]||function(t){setTimeout(t,17)};function we(t,e,r){var n=arguments.length;n&lt;2&amp;&amp;(e=0),n&lt;3&amp;&amp;(r=Date.now());var i=r+e,a={c:t,t:i,n:null};return ye?ye.n=a:ve=a,ye=a,xe||(be=clearTimeout(be),xe=1,_e(Te)),a}function Te(){var t=ke(),e=Me()-t;e&gt;24?(isFinite(e)&amp;&amp;(clearTimeout(be),be=setTimeout(Te,e)),xe=0):(xe=1,_e(Te))}function ke(){for(var t=Date.now(),e=ve;e;)t&gt;=e.t&amp;&amp;e.c(t-e.t)&amp;&amp;(e.c=null),e=e.n;return t}function Me(){for(var t,e=ve,r=1/0;e;)e.c?(e.t&lt;r&amp;&amp;(r=e.t),e=(t=e).n):e=t?t.n=e.n:ve=e.n;return ye=t,r}function Ae(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}t.timer=function(){we.apply(this,arguments)},t.timer.flush=function(){ke(),Me()},t.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var Se=[&quot;y&quot;,&quot;z&quot;,&quot;a&quot;,&quot;f&quot;,&quot;p&quot;,&quot;n&quot;,&quot;\xb5&quot;,&quot;m&quot;,&quot;&quot;,&quot;k&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;,&quot;P&quot;,&quot;E&quot;,&quot;Z&quot;,&quot;Y&quot;].map((function(t,e){var r=Math.pow(10,3*y(8-e));return{scale:e&gt;8?function(t){return t/r}:function(t){return t*r},symbol:t}}));function Ee(e){var r=e.decimal,n=e.thousands,i=e.grouping,a=e.currency,o=i&amp;&amp;n?function(t,e){for(var r=t.length,a=[],o=0,s=i[0],l=0;r&gt;0&amp;&amp;s&gt;0&amp;&amp;(l+s+1&gt;e&amp;&amp;(s=Math.max(1,e-l)),a.push(t.substring(r-=s,r+s)),!((l+=s+1)&gt;e));)s=i[o=(o+1)%i.length];return a.reverse().join(n)}:L;return function(e){var n=Ce.exec(e),i=n[1]||&quot; &quot;,s=n[2]||&quot;&gt;&quot;,l=n[3]||&quot;-&quot;,c=n[4]||&quot;&quot;,u=n[5],f=+n[6],h=n[7],p=n[8],d=n[9],g=1,m=&quot;&quot;,v=&quot;&quot;,y=!1,x=!0;switch(p&amp;&amp;(p=+p.substring(1)),(u||&quot;0&quot;===i&amp;&amp;&quot;=&quot;===s)&amp;&amp;(u=i=&quot;0&quot;,s=&quot;=&quot;),d){case&quot;n&quot;:h=!0,d=&quot;g&quot;;break;case&quot;%&quot;:g=100,v=&quot;%&quot;,d=&quot;f&quot;;break;case&quot;p&quot;:g=100,v=&quot;%&quot;,d=&quot;r&quot;;break;case&quot;b&quot;:case&quot;o&quot;:case&quot;x&quot;:case&quot;X&quot;:&quot;#&quot;===c&amp;&amp;(m=&quot;0&quot;+d.toLowerCase());case&quot;c&quot;:x=!1;case&quot;d&quot;:y=!0,p=0;break;case&quot;s&quot;:g=-1,d=&quot;r&quot;}&quot;$&quot;===c&amp;&amp;(m=a[0],v=a[1]),&quot;r&quot;!=d||p||(d=&quot;g&quot;),null!=p&amp;&amp;(&quot;g&quot;==d?p=Math.max(1,Math.min(21,p)):&quot;e&quot;!=d&amp;&amp;&quot;f&quot;!=d||(p=Math.max(0,Math.min(20,p)))),d=Le.get(d)||Ie;var b=u&amp;&amp;h;return function(e){var n=v;if(y&amp;&amp;e%1)return&quot;&quot;;var a=e&lt;0||0===e&amp;&amp;1/e&lt;0?(e=-e,&quot;-&quot;):&quot;-&quot;===l?&quot;&quot;:l;if(g&lt;0){var c=t.formatPrefix(e,p);e=c.scale(e),n=c.symbol+v}else e*=g;var _,w,T=(e=d(e,p)).lastIndexOf(&quot;.&quot;);if(T&lt;0){var k=x?e.lastIndexOf(&quot;e&quot;):-1;k&lt;0?(_=e,w=&quot;&quot;):(_=e.substring(0,k),w=e.substring(k))}else _=e.substring(0,T),w=r+e.substring(T+1);!u&amp;&amp;h&amp;&amp;(_=o(_,1/0));var M=m.length+_.length+w.length+(b?0:a.length),A=M&lt;f?new Array(M=f-M+1).join(i):&quot;&quot;;return b&amp;&amp;(_=o(A+_,A.length?f-w.length:1/0)),a+=m,e=_+w,(&quot;&lt;&quot;===s?a+e+A:&quot;&gt;&quot;===s?A+a+e:&quot;^&quot;===s?A.substring(0,M&gt;&gt;=1)+a+e+A.substring(M):a+(b?e:A+e))+n}}}t.formatPrefix=function(e,r){var n=0;return(e=+e)&amp;&amp;(e&lt;0&amp;&amp;(e*=-1),r&amp;&amp;(e=t.round(e,Ae(e,r))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Se[8+n/3]};var Ce=/(?:([^{])?([&lt;&gt;=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Le=t.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(e,r){return(e=t.round(e,Ae(e,r))).toFixed(Math.max(0,Math.min(20,Ae(e*(1+1e-15),r))))}});function Ie(t){return t+&quot;&quot;}var Pe=t.time={},ze=Date;function Oe(){this._=new Date(arguments.length&gt;1?Date.UTC.apply(this,arguments):arguments[0])}Oe.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){De.setUTCDate.apply(this._,arguments)},setDay:function(){De.setUTCDay.apply(this._,arguments)},setFullYear:function(){De.setUTCFullYear.apply(this._,arguments)},setHours:function(){De.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){De.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){De.setUTCMinutes.apply(this._,arguments)},setMonth:function(){De.setUTCMonth.apply(this._,arguments)},setSeconds:function(){De.setUTCSeconds.apply(this._,arguments)},setTime:function(){De.setTime.apply(this._,arguments)}};var De=Date.prototype;function Re(t,e,r){function n(e){var r=t(e),n=a(r,1);return e-r&lt;n-e?r:n}function i(r){return e(r=t(new ze(r-1)),1),r}function a(t,r){return e(t=new ze(+t),r),t}function o(t,n,a){var o=i(t),s=[];if(a&gt;1)for(;o&lt;n;)r(o)%a||s.push(new Date(+o)),e(o,1);else for(;o&lt;n;)s.push(new Date(+o)),e(o,1);return s}t.floor=t,t.round=n,t.ceil=i,t.offset=a,t.range=o;var s=t.utc=Fe(t);return s.floor=s,s.round=Fe(n),s.ceil=Fe(i),s.offset=Fe(a),s.range=function(t,e,r){try{ze=Oe;var n=new Oe;return n._=t,o(n,e,r)}finally{ze=Date}},t}function Fe(t){return function(e,r){try{ze=Oe;var n=new Oe;return n._=e,t(n,r)._}finally{ze=Date}}}function Be(e){var r=e.dateTime,n=e.date,i=e.time,a=e.periods,o=e.days,s=e.shortDays,l=e.months,c=e.shortMonths;function u(t){var e=t.length;function r(r){for(var n,i,a,o=[],s=-1,l=0;++s&lt;e;)37===t.charCodeAt(s)&amp;&amp;(o.push(t.slice(l,s)),null!=(i=Ne[n=t.charAt(++s)])&amp;&amp;(n=t.charAt(++s)),(a=_[n])&amp;&amp;(n=a(r,null==i?&quot;e&quot;===n?&quot; &quot;:&quot;0&quot;:i)),o.push(n),l=s+1);return o.push(t.slice(l,s)),o.join(&quot;&quot;)}return r.parse=function(e){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(f(r,t,e,0)!=e.length)return null;&quot;p&quot;in r&amp;&amp;(r.H=r.H%12+12*r.p);var n=null!=r.Z&amp;&amp;ze!==Oe,i=new(n?Oe:ze);return&quot;j&quot;in r?i.setFullYear(r.y,0,r.j):&quot;W&quot;in r||&quot;U&quot;in r?(&quot;w&quot;in r||(r.w=&quot;W&quot;in r?1:0),i.setFullYear(r.y,0,1),i.setFullYear(r.y,0,&quot;W&quot;in r?(r.w+6)%7+7*r.W-(i.getDay()+5)%7:r.w+7*r.U-(i.getDay()+6)%7)):i.setFullYear(r.y,r.m,r.d),i.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),n?i._:i},r.toString=function(){return t},r}function f(t,e,r,n){for(var i,a,o,s=0,l=e.length,c=r.length;s&lt;l;){if(n&gt;=c)return-1;if(37===(i=e.charCodeAt(s++))){if(o=e.charAt(s++),!(a=w[o in Ne?e.charAt(s++):o])||(n=a(t,r,n))&lt;0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}u.utc=function(t){var e=u(t);function r(t){try{var r=new(ze=Oe);return r._=t,e(r)}finally{ze=Date}}return r.parse=function(t){try{ze=Oe;var r=e.parse(t);return r&amp;&amp;r._}finally{ze=Date}},r.toString=e.toString,r},u.multi=u.utc.multi=or;var h=t.map(),p=qe(o),d=He(o),g=qe(s),m=He(s),v=qe(l),y=He(l),x=qe(c),b=He(c);a.forEach((function(t,e){h.set(t.toLowerCase(),e)}));var _={a:function(t){return s[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return l[t.getMonth()]},c:u(r),d:function(t,e){return Ve(t.getDate(),e,2)},e:function(t,e){return Ve(t.getDate(),e,2)},H:function(t,e){return Ve(t.getHours(),e,2)},I:function(t,e){return Ve(t.getHours()%12||12,e,2)},j:function(t,e){return Ve(1+Pe.dayOfYear(t),e,3)},L:function(t,e){return Ve(t.getMilliseconds(),e,3)},m:function(t,e){return Ve(t.getMonth()+1,e,2)},M:function(t,e){return Ve(t.getMinutes(),e,2)},p:function(t){return a[+(t.getHours()&gt;=12)]},S:function(t,e){return Ve(t.getSeconds(),e,2)},U:function(t,e){return Ve(Pe.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Ve(Pe.mondayOfYear(t),e,2)},x:u(n),X:u(i),y:function(t,e){return Ve(t.getFullYear()%100,e,2)},Y:function(t,e){return Ve(t.getFullYear()%1e4,e,4)},Z:ir,&quot;%&quot;:function(){return&quot;%&quot;}},w={a:function(t,e,r){g.lastIndex=0;var n=g.exec(e.slice(r));return n?(t.w=m.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){p.lastIndex=0;var n=p.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){x.lastIndex=0;var n=x.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){v.lastIndex=0;var n=v.exec(e.slice(r));return n?(t.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,e,r){return f(t,_.c.toString(),e,r)},d:Qe,e:Qe,H:tr,I:tr,j:$e,L:nr,m:Ke,M:er,p:function(t,e,r){var n=h.get(e.slice(r,r+=2).toLowerCase());return null==n?-1:(t.p=n,r)},S:rr,U:Ye,w:Ge,W:We,x:function(t,e,r){return f(t,_.x.toString(),e,r)},X:function(t,e,r){return f(t,_.X.toString(),e,r)},y:Ze,Y:Xe,Z:Je,&quot;%&quot;:ar};return u}Pe.year=Re((function(t){return(t=Pe.day(t)).setMonth(0,1),t}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t){return t.getFullYear()})),Pe.years=Pe.year.range,Pe.years.utc=Pe.year.utc.range,Pe.day=Re((function(t){var e=new ze(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t){return t.getDate()-1})),Pe.days=Pe.day.range,Pe.days.utc=Pe.day.utc.range,Pe.dayOfYear=function(t){var e=Pe.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},[&quot;sunday&quot;,&quot;monday&quot;,&quot;tuesday&quot;,&quot;wednesday&quot;,&quot;thursday&quot;,&quot;friday&quot;,&quot;saturday&quot;].forEach((function(t,e){e=7-e;var r=Pe[t]=Re((function(t){return(t=Pe.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t}),(function(t,e){t.setDate(t.getDate()+7*Math.floor(e))}),(function(t){var r=Pe.year(t).getDay();return Math.floor((Pe.dayOfYear(t)+(r+e)%7)/7)-(r!==e)}));Pe[t+&quot;s&quot;]=r.range,Pe[t+&quot;s&quot;].utc=r.utc.range,Pe[t+&quot;OfYear&quot;]=function(t){var r=Pe.year(t).getDay();return Math.floor((Pe.dayOfYear(t)+(r+e)%7)/7)}})),Pe.week=Pe.sunday,Pe.weeks=Pe.sunday.range,Pe.weeks.utc=Pe.sunday.utc.range,Pe.weekOfYear=Pe.sundayOfYear;var Ne={&quot;-&quot;:&quot;&quot;,_:&quot; &quot;,0:&quot;0&quot;},je=/^\s*\d+/,Ue=/^%/;function Ve(t,e,r){var n=t&lt;0?&quot;-&quot;:&quot;&quot;,i=(n?-t:t)+&quot;&quot;,a=i.length;return n+(a&lt;r?new Array(r-a+1).join(e)+i:i)}function qe(e){return new RegExp(&quot;^(?:&quot;+e.map(t.requote).join(&quot;|&quot;)+&quot;)&quot;,&quot;i&quot;)}function He(t){for(var e=new _,r=-1,n=t.length;++r&lt;n;)e.set(t[r].toLowerCase(),r);return e}function Ge(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Ye(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r));return n?(t.U=+n[0],r+n[0].length):-1}function We(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r));return n?(t.W=+n[0],r+n[0].length):-1}function Xe(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Ze(t,e,r){je.lastIndex=0;var n,i=je.exec(e.slice(r,r+2));return i?(t.y=(n=+i[0])+(n&gt;68?1900:2e3),r+i[0].length):-1}function Je(t,e,r){return/^[+-]\d{4}$/.test(e=e.slice(r,r+5))?(t.Z=-e,r+5):-1}function Ke(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Qe(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function $e(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+3));return n?(t.j=+n[0],r+n[0].length):-1}function tr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function er(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function rr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function nr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function ir(t){var e=t.getTimezoneOffset(),r=e&gt;0?&quot;-&quot;:&quot;+&quot;,n=y(e)/60|0,i=y(e)%60;return r+Ve(n,&quot;0&quot;,2)+Ve(i,&quot;0&quot;,2)}function ar(t,e,r){Ue.lastIndex=0;var n=Ue.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function or(t){for(var e=t.length,r=-1;++r&lt;e;)t[r][0]=this(t[r][0]);return function(e){for(var r=0,n=t[r];!n[1](e);)n=t[++r];return n[0](e)}}t.locale=function(t){return{numberFormat:Ee(t),timeFormat:Be(t)}};var sr=t.locale({decimal:&quot;.&quot;,thousands:&quot;,&quot;,grouping:[3],currency:[&quot;$&quot;,&quot;&quot;],dateTime:&quot;%a %b %e %X %Y&quot;,date:&quot;%m/%d/%Y&quot;,time:&quot;%H:%M:%S&quot;,periods:[&quot;AM&quot;,&quot;PM&quot;],days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;]});function lr(){}t.format=sr.numberFormat,t.geo={},lr.prototype={s:0,t:0,add:function(t){ur(t,this.t,cr),ur(cr.s,this.s,this),this.s?this.t+=cr.t:this.s=cr.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var cr=new lr;function ur(t,e,r){var n=r.s=t+e,i=n-t,a=n-i;r.t=t-a+(e-i)}function fr(t,e){t&amp;&amp;pr.hasOwnProperty(t.type)&amp;&amp;pr[t.type](t,e)}t.geo.stream=function(t,e){t&amp;&amp;hr.hasOwnProperty(t.type)?hr[t.type](t,e):fr(t,e)};var hr={Feature:function(t,e){fr(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n&lt;i;)fr(r[n].geometry,e)}},pr={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)t=r[n],e.point(t[0],t[1],t[2])},LineString:function(t,e){dr(t.coordinates,e,0)},MultiLineString:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)dr(r[n],e,0)},Polygon:function(t,e){gr(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)gr(r[n],e)},GeometryCollection:function(t,e){for(var r=t.geometries,n=-1,i=r.length;++n&lt;i;)fr(r[n],e)}};function dr(t,e,r){var n,i=-1,a=t.length-r;for(e.lineStart();++i&lt;a;)n=t[i],e.point(n[0],n[1],n[2]);e.lineEnd()}function gr(t,e){var r=-1,n=t.length;for(e.polygonStart();++r&lt;n;)dr(t[r],e,1);e.polygonEnd()}t.geo.area=function(e){return mr=0,t.geo.stream(e,Cr),mr};var mr,vr,yr,xr,br,_r,wr,Tr,kr,Mr,Ar,Sr,Er=new lr,Cr={sphere:function(){mr+=4*At},point:O,lineStart:O,lineEnd:O,polygonStart:function(){Er.reset(),Cr.lineStart=Lr},polygonEnd:function(){var t=2*Er;mr+=t&lt;0?4*At+t:t,Cr.lineStart=Cr.lineEnd=Cr.point=O}};function Lr(){var t,e,r,n,i;function a(t,e){e=e*Lt/2+At/4;var a=(t*=Lt)-r,o=a&gt;=0?1:-1,s=o*a,l=Math.cos(e),c=Math.sin(e),u=i*c,f=n*l+u*Math.cos(s),h=u*o*Math.sin(s);Er.add(Math.atan2(h,f)),r=t,n=l,i=c}Cr.point=function(o,s){Cr.point=a,r=(t=o)*Lt,n=Math.cos(s=(e=s)*Lt/2+At/4),i=Math.sin(s)},Cr.lineEnd=function(){a(t,e)}}function Ir(t){var e=t[0],r=t[1],n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}function Pr(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function zr(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Or(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Dr(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Rr(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Fr(t){return[Math.atan2(t[1],t[0]),Dt(t[2])]}function Br(t,e){return y(t[0]-e[0])&lt;kt&amp;&amp;y(t[1]-e[1])&lt;kt}t.geo.bounds=function(){var e,r,n,i,a,o,s,l,c,u,f,h={point:p,lineStart:g,lineEnd:m,polygonStart:function(){h.point=v,h.lineStart=x,h.lineEnd=b,c=0,Cr.polygonStart()},polygonEnd:function(){Cr.polygonEnd(),h.point=p,h.lineStart=g,h.lineEnd=m,Er&lt;0?(e=-(n=180),r=-(i=90)):c&gt;kt?i=90:c&lt;-kt&amp;&amp;(r=-90),f[0]=e,f[1]=n}};function p(t,a){u.push(f=[e=t,n=t]),a&lt;r&amp;&amp;(r=a),a&gt;i&amp;&amp;(i=a)}function d(t,o){var s=Ir([t*Lt,o*Lt]);if(l){var c=zr(l,s),u=zr([c[1],-c[0],0],c);Rr(u),u=Fr(u);var f=t-a,h=f&gt;0?1:-1,d=u[0]*It*h,g=y(f)&gt;180;if(g^(h*a&lt;d&amp;&amp;d&lt;h*t))(m=u[1]*It)&gt;i&amp;&amp;(i=m);else if(g^(h*a&lt;(d=(d+360)%360-180)&amp;&amp;d&lt;h*t)){var m;(m=-u[1]*It)&lt;r&amp;&amp;(r=m)}else o&lt;r&amp;&amp;(r=o),o&gt;i&amp;&amp;(i=o);g?t&lt;a?_(e,t)&gt;_(e,n)&amp;&amp;(n=t):_(t,n)&gt;_(e,n)&amp;&amp;(e=t):n&gt;=e?(t&lt;e&amp;&amp;(e=t),t&gt;n&amp;&amp;(n=t)):t&gt;a?_(e,t)&gt;_(e,n)&amp;&amp;(n=t):_(t,n)&gt;_(e,n)&amp;&amp;(e=t)}else p(t,o);l=s,a=t}function g(){h.point=d}function m(){f[0]=e,f[1]=n,h.point=p,l=null}function v(t,e){if(l){var r=t-a;c+=y(r)&gt;180?r+(r&gt;0?360:-360):r}else o=t,s=e;Cr.point(t,e),d(t,e)}function x(){Cr.lineStart()}function b(){v(o,s),Cr.lineEnd(),y(c)&gt;kt&amp;&amp;(e=-(n=180)),f[0]=e,f[1]=n,l=null}function _(t,e){return(e-=t)&lt;0?e+360:e}function w(t,e){return t[0]-e[0]}function T(t,e){return e[0]&lt;=e[1]?e[0]&lt;=t&amp;&amp;t&lt;=e[1]:t&lt;e[0]||e[1]&lt;t}return function(a){if(i=n=-(e=r=1/0),u=[],t.geo.stream(a,h),c=u.length){u.sort(w);for(var o=1,s=[g=u[0]];o&lt;c;++o)T((p=u[o])[0],g)||T(p[1],g)?(_(g[0],p[1])&gt;_(g[0],g[1])&amp;&amp;(g[1]=p[1]),_(p[0],g[1])&gt;_(g[0],g[1])&amp;&amp;(g[0]=p[0])):s.push(g=p);for(var l,c,p,d=-1/0,g=(o=0,s[c=s.length-1]);o&lt;=c;g=p,++o)p=s[o],(l=_(g[1],p[0]))&gt;d&amp;&amp;(d=l,e=p[0],n=g[1])}return u=f=null,e===1/0||r===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,r],[n,i]]}}(),t.geo.centroid=function(e){vr=yr=xr=br=_r=wr=Tr=kr=Mr=Ar=Sr=0,t.geo.stream(e,Nr);var r=Mr,n=Ar,i=Sr,a=r*r+n*n+i*i;return a&lt;Mt&amp;&amp;(r=wr,n=Tr,i=kr,yr&lt;kt&amp;&amp;(r=xr,n=br,i=_r),(a=r*r+n*n+i*i)&lt;Mt)?[NaN,NaN]:[Math.atan2(n,r)*It,Dt(i/Math.sqrt(a))*It]};var Nr={sphere:O,point:jr,lineStart:Vr,lineEnd:qr,polygonStart:function(){Nr.lineStart=Hr},polygonEnd:function(){Nr.lineStart=Vr}};function jr(t,e){t*=Lt;var r=Math.cos(e*=Lt);Ur(r*Math.cos(t),r*Math.sin(t),Math.sin(e))}function Ur(t,e,r){++vr,xr+=(t-xr)/vr,br+=(e-br)/vr,_r+=(r-_r)/vr}function Vr(){var t,e,r;function n(n,i){n*=Lt;var a=Math.cos(i*=Lt),o=a*Math.cos(n),s=a*Math.sin(n),l=Math.sin(i),c=Math.atan2(Math.sqrt((c=e*l-r*s)*c+(c=r*o-t*l)*c+(c=t*s-e*o)*c),t*o+e*s+r*l);yr+=c,wr+=c*(t+(t=o)),Tr+=c*(e+(e=s)),kr+=c*(r+(r=l)),Ur(t,e,r)}Nr.point=function(i,a){i*=Lt;var o=Math.cos(a*=Lt);t=o*Math.cos(i),e=o*Math.sin(i),r=Math.sin(a),Nr.point=n,Ur(t,e,r)}}function qr(){Nr.point=jr}function Hr(){var t,e,r,n,i;function a(t,e){t*=Lt;var a=Math.cos(e*=Lt),o=a*Math.cos(t),s=a*Math.sin(t),l=Math.sin(e),c=n*l-i*s,u=i*o-r*l,f=r*s-n*o,h=Math.sqrt(c*c+u*u+f*f),p=r*o+n*s+i*l,d=h&amp;&amp;-Ot(p)/h,g=Math.atan2(h,p);Mr+=d*c,Ar+=d*u,Sr+=d*f,yr+=g,wr+=g*(r+(r=o)),Tr+=g*(n+(n=s)),kr+=g*(i+(i=l)),Ur(r,n,i)}Nr.point=function(o,s){t=o,e=s,Nr.point=a,o*=Lt;var l=Math.cos(s*=Lt);r=l*Math.cos(o),n=l*Math.sin(o),i=Math.sin(s),Ur(r,n,i)},Nr.lineEnd=function(){a(t,e),Nr.lineEnd=qr,Nr.point=jr}}function Gr(t,e){function r(r,n){return r=t(r,n),e(r[0],r[1])}return t.invert&amp;&amp;e.invert&amp;&amp;(r.invert=function(r,n){return(r=e.invert(r,n))&amp;&amp;t.invert(r[0],r[1])}),r}function Yr(){return!0}function Wr(t,e,r,n,i){var a=[],o=[];if(t.forEach((function(t){if(!((e=t.length-1)&lt;=0)){var e,r=t[0],n=t[e];if(Br(r,n)){i.lineStart();for(var s=0;s&lt;e;++s)i.point((r=t[s])[0],r[1]);i.lineEnd()}else{var l=new Zr(r,t,null,!0),c=new Zr(r,null,l,!1);l.o=c,a.push(l),o.push(c),l=new Zr(n,t,null,!1),c=new Zr(n,null,l,!0),l.o=c,a.push(l),o.push(c)}}})),o.sort(e),Xr(a),Xr(o),a.length){for(var s=0,l=r,c=o.length;s&lt;c;++s)o[s].e=l=!l;for(var u,f,h=a[0];;){for(var p=h,d=!0;p.v;)if((p=p.n)===h)return;u=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(s=0,c=u.length;s&lt;c;++s)i.point((f=u[s])[0],f[1]);else n(p.x,p.n.x,1,i);p=p.n}else{if(d)for(s=(u=p.p.z).length-1;s&gt;=0;--s)i.point((f=u[s])[0],f[1]);else n(p.x,p.p.x,-1,i);p=p.p}u=(p=p.o).z,d=!d}while(!p.v);i.lineEnd()}}}function Xr(t){if(e=t.length){for(var e,r,n=0,i=t[0];++n&lt;e;)i.n=r=t[n],r.p=i,i=r;i.n=r=t[0],r.p=i}}function Zr(t,e,r,n){this.x=t,this.z=e,this.o=r,this.e=n,this.v=!1,this.n=this.p=null}function Jr(e,r,n,i){return function(a,o){var s,l=r(o),c=a.invert(i[0],i[1]),u={point:f,lineStart:p,lineEnd:d,polygonStart:function(){u.point=b,u.lineStart=_,u.lineEnd=w,s=[],g=[]},polygonEnd:function(){u.point=f,u.lineStart=p,u.lineEnd=d,s=t.merge(s);var e=function(t,e){var r=t[0],n=t[1],i=[Math.sin(r),-Math.cos(r),0],a=0,o=0;Er.reset();for(var s=0,l=e.length;s&lt;l;++s){var c=e[s],u=c.length;if(u)for(var f=c[0],h=f[0],p=f[1]/2+At/4,d=Math.sin(p),g=Math.cos(p),m=1;;){m===u&amp;&amp;(m=0);var v=(t=c[m])[0],y=t[1]/2+At/4,x=Math.sin(y),b=Math.cos(y),_=v-h,w=_&gt;=0?1:-1,T=w*_,k=T&gt;At,M=d*x;if(Er.add(Math.atan2(M*w*Math.sin(T),g*b+M*Math.cos(T))),a+=k?_+w*St:_,k^h&gt;=r^v&gt;=r){var A=zr(Ir(f),Ir(t));Rr(A);var S=zr(i,A);Rr(S);var E=(k^_&gt;=0?-1:1)*Dt(S[2]);(n&gt;E||n===E&amp;&amp;(A[0]||A[1]))&amp;&amp;(o+=k^_&gt;=0?1:-1)}if(!m++)break;h=v,d=x,g=b,f=t}}return(a&lt;-kt||a&lt;kt&amp;&amp;Er&lt;-kt)^1&amp;o}(c,g);s.length?(x||(o.polygonStart(),x=!0),Wr(s,$r,e,n,o)):e&amp;&amp;(x||(o.polygonStart(),x=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),x&amp;&amp;(o.polygonEnd(),x=!1),s=g=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function f(t,r){var n=a(t,r);e(t=n[0],r=n[1])&amp;&amp;o.point(t,r)}function h(t,e){var r=a(t,e);l.point(r[0],r[1])}function p(){u.point=h,l.lineStart()}function d(){u.point=f,l.lineEnd()}var g,m,v=Qr(),y=r(v),x=!1;function b(t,e){m.push([t,e]);var r=a(t,e);y.point(r[0],r[1])}function _(){y.lineStart(),m=[]}function w(){b(m[0][0],m[0][1]),y.lineEnd();var t,e=y.clean(),r=v.buffer(),n=r.length;if(m.pop(),g.push(m),m=null,n)if(1&amp;e){var i,a=-1;if((n=(t=r[0]).length-1)&gt;0){for(x||(o.polygonStart(),x=!0),o.lineStart();++a&lt;n;)o.point((i=t[a])[0],i[1]);o.lineEnd()}}else n&gt;1&amp;&amp;2&amp;e&amp;&amp;r.push(r.pop().concat(r.shift())),s.push(r.filter(Kr))}return u}}function Kr(t){return t.length&gt;1}function Qr(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,r){t.push([e,r])},lineEnd:O,buffer:function(){var r=e;return e=[],t=null,r},rejoin:function(){e.length&gt;1&amp;&amp;e.push(e.pop().concat(e.shift()))}}}function $r(t,e){return((t=t.x)[0]&lt;0?t[1]-Ct-kt:Ct-t[1])-((e=e.x)[0]&lt;0?e[1]-Ct-kt:Ct-e[1])}var tn=Jr(Yr,(function(t){var e,r=NaN,n=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a&gt;0?At:-At,l=y(a-r);y(l-At)&lt;kt?(t.point(r,n=(n+o)/2&gt;0?Ct:-Ct),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),t.point(a,n),e=0):i!==s&amp;&amp;l&gt;=At&amp;&amp;(y(r-i)&lt;kt&amp;&amp;(r-=i*kt),y(a-s)&lt;kt&amp;&amp;(a-=s*kt),n=function(t,e,r,n){var i,a,o=Math.sin(t-r);return y(o)&gt;kt?Math.atan((Math.sin(e)*(a=Math.cos(n))*Math.sin(r)-Math.sin(n)*(i=Math.cos(e))*Math.sin(t))/(i*a*o)):(e+n)/2}(r,n,a,o),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),e=0),t.point(r=a,n=o),i=s},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}}),(function(t,e,r,n){var i;if(null==t)i=r*Ct,n.point(-At,i),n.point(0,i),n.point(At,i),n.point(At,0),n.point(At,-i),n.point(0,-i),n.point(-At,-i),n.point(-At,0),n.point(-At,i);else if(y(t[0]-e[0])&gt;kt){var a=t[0]&lt;e[0]?At:-At;i=r*a/2,n.point(-a,i),n.point(0,i),n.point(a,i)}else n.point(e[0],e[1])}),[-At,-At/2]);function en(t){var e=Math.cos(t),r=e&gt;0,n=y(e)&gt;kt;return Jr(i,(function(t){var e,s,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(f,h){var p,d=[f,h],g=i(f,h),m=r?g?0:o(f,h):g?o(f+(f&lt;0?At:-At),h):0;if(!e&amp;&amp;(c=l=g)&amp;&amp;t.lineStart(),g!==l&amp;&amp;(p=a(e,d),(Br(e,p)||Br(d,p))&amp;&amp;(d[0]+=kt,d[1]+=kt,g=i(d[0],d[1]))),g!==l)u=0,g?(t.lineStart(),p=a(d,e),t.point(p[0],p[1])):(p=a(e,d),t.point(p[0],p[1]),t.lineEnd()),e=p;else if(n&amp;&amp;e&amp;&amp;r^g){var v;m&amp;s||!(v=a(d,e,!0))||(u=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!g||e&amp;&amp;Br(e,d)||t.point(d[0],d[1]),e=d,l=g,s=m},lineEnd:function(){l&amp;&amp;t.lineEnd(),e=null},clean:function(){return u|(c&amp;&amp;l)&lt;&lt;1}}}),Bn(t,6*Lt),r?[0,-t]:[-At,t-At]);function i(t,r){return Math.cos(t)*Math.cos(r)&gt;e}function a(t,r,n){var i=[1,0,0],a=zr(Ir(t),Ir(r)),o=Pr(a,a),s=a[0],l=o-s*s;if(!l)return!n&amp;&amp;t;var c=e*o/l,u=-e*s/l,f=zr(i,a),h=Dr(i,c);Or(h,Dr(a,u));var p=f,d=Pr(h,p),g=Pr(p,p),m=d*d-g*(Pr(h,h)-1);if(!(m&lt;0)){var v=Math.sqrt(m),x=Dr(p,(-d-v)/g);if(Or(x,h),x=Fr(x),!n)return x;var b,_=t[0],w=r[0],T=t[1],k=r[1];w&lt;_&amp;&amp;(b=_,_=w,w=b);var M=w-_,A=y(M-At)&lt;kt;if(!A&amp;&amp;k&lt;T&amp;&amp;(b=T,T=k,k=b),A||M&lt;kt?A?T+k&gt;0^x[1]&lt;(y(x[0]-_)&lt;kt?T:k):T&lt;=x[1]&amp;&amp;x[1]&lt;=k:M&gt;At^(_&lt;=x[0]&amp;&amp;x[0]&lt;=w)){var S=Dr(p,(-d+v)/g);return Or(S,h),[x,Fr(S)]}}}function o(e,n){var i=r?t:At-t,a=0;return e&lt;-i?a|=1:e&gt;i&amp;&amp;(a|=2),n&lt;-i?a|=4:n&gt;i&amp;&amp;(a|=8),a}}function rn(t,e,r,n){return function(i){var a,o=i.a,s=i.b,l=o.x,c=o.y,u=0,f=1,h=s.x-l,p=s.y-c;if(a=t-l,h||!(a&gt;0)){if(a/=h,h&lt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}else if(h&gt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}if(a=r-l,h||!(a&lt;0)){if(a/=h,h&lt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}else if(h&gt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}if(a=e-c,p||!(a&gt;0)){if(a/=p,p&lt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}else if(p&gt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}if(a=n-c,p||!(a&lt;0)){if(a/=p,p&lt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}else if(p&gt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}return u&gt;0&amp;&amp;(i.a={x:l+u*h,y:c+u*p}),f&lt;1&amp;&amp;(i.b={x:l+f*h,y:c+f*p}),i}}}}}}function nn(e,r,n,i){return function(l){var c,u,f,h,p,d,g,m,v,y,x,b=l,_=Qr(),w=rn(e,r,n,i),T={point:A,lineStart:function(){T.point=S,u&amp;&amp;u.push(f=[]);y=!0,v=!1,g=m=NaN},lineEnd:function(){c&amp;&amp;(S(h,p),d&amp;&amp;v&amp;&amp;_.rejoin(),c.push(_.buffer()));T.point=A,v&amp;&amp;l.lineEnd()},polygonStart:function(){l=_,c=[],u=[],x=!0},polygonEnd:function(){l=b,c=t.merge(c);var r=function(t){for(var e=0,r=u.length,n=t[1],i=0;i&lt;r;++i)for(var a,o=1,s=u[i],l=s.length,c=s[0];o&lt;l;++o)a=s[o],c[1]&lt;=n?a[1]&gt;n&amp;&amp;zt(c,a,t)&gt;0&amp;&amp;++e:a[1]&lt;=n&amp;&amp;zt(c,a,t)&lt;0&amp;&amp;--e,c=a;return 0!==e}([e,i]),n=x&amp;&amp;r,a=c.length;(n||a)&amp;&amp;(l.polygonStart(),n&amp;&amp;(l.lineStart(),k(null,null,1,l),l.lineEnd()),a&amp;&amp;Wr(c,o,r,k,l),l.polygonEnd()),c=u=f=null}};function k(t,o,l,c){var u=0,f=0;if(null==t||(u=a(t,l))!==(f=a(o,l))||s(t,o)&lt;0^l&gt;0)do{c.point(0===u||3===u?e:n,u&gt;1?i:r)}while((u=(u+l+4)%4)!==f);else c.point(o[0],o[1])}function M(t,a){return e&lt;=t&amp;&amp;t&lt;=n&amp;&amp;r&lt;=a&amp;&amp;a&lt;=i}function A(t,e){M(t,e)&amp;&amp;l.point(t,e)}function S(t,e){var r=M(t=Math.max(-1e9,Math.min(1e9,t)),e=Math.max(-1e9,Math.min(1e9,e)));if(u&amp;&amp;f.push([t,e]),y)h=t,p=e,d=r,y=!1,r&amp;&amp;(l.lineStart(),l.point(t,e));else if(r&amp;&amp;v)l.point(t,e);else{var n={a:{x:g,y:m},b:{x:t,y:e}};w(n)?(v||(l.lineStart(),l.point(n.a.x,n.a.y)),l.point(n.b.x,n.b.y),r||l.lineEnd(),x=!1):r&amp;&amp;(l.lineStart(),l.point(t,e),x=!1)}g=t,m=e,v=r}return T};function a(t,i){return y(t[0]-e)&lt;kt?i&gt;0?0:3:y(t[0]-n)&lt;kt?i&gt;0?2:1:y(t[1]-r)&lt;kt?i&gt;0?1:0:i&gt;0?3:2}function o(t,e){return s(t.x,e.x)}function s(t,e){var r=a(t,1),n=a(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}}function an(t){var e=0,r=At/3,n=Ln(t),i=n(e,r);return i.parallels=function(t){return arguments.length?n(e=t[0]*At/180,r=t[1]*At/180):[e/At*180,r/At*180]},i}function on(t,e){var r=Math.sin(t),n=(r+Math.sin(e))/2,i=1+r*(2*n-r),a=Math.sqrt(i)/n;function o(t,e){var r=Math.sqrt(i-2*n*Math.sin(e))/n;return[r*Math.sin(t*=n),a-r*Math.cos(t)]}return o.invert=function(t,e){var r=a-e;return[Math.atan2(t,r)/n,Dt((i-(t*t+r*r)*n*n)/(2*n))]},o}t.geo.clipExtent=function(){var t,e,r,n,i,a,o={stream:function(t){return i&amp;&amp;(i.valid=!1),(i=a(t)).valid=!0,i},extent:function(s){return arguments.length?(a=nn(t=+s[0][0],e=+s[0][1],r=+s[1][0],n=+s[1][1]),i&amp;&amp;(i.valid=!1,i=null),o):[[t,e],[r,n]]}};return o.extent([[0,0],[960,500]])},(t.geo.conicEqualArea=function(){return an(on)}).raw=on,t.geo.albers=function(){return t.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},t.geo.albersUsa=function(){var e,r,n,i,a=t.geo.albers(),o=t.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=t.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,r){e=[t,r]}};function c(t){var a=t[0],o=t[1];return e=null,r(a,o),e||(n(a,o),e)||i(a,o),e}return c.invert=function(t){var e=a.scale(),r=a.translate(),n=(t[0]-r[0])/e,i=(t[1]-r[1])/e;return(i&gt;=.12&amp;&amp;i&lt;.234&amp;&amp;n&gt;=-.425&amp;&amp;n&lt;-.214?o:i&gt;=.166&amp;&amp;i&lt;.234&amp;&amp;n&gt;=-.214&amp;&amp;n&lt;-.115?s:a).invert(t)},c.stream=function(t){var e=a.stream(t),r=o.stream(t),n=s.stream(t);return{point:function(t,i){e.point(t,i),r.point(t,i),n.point(t,i)},sphere:function(){e.sphere(),r.sphere(),n.sphere()},lineStart:function(){e.lineStart(),r.lineStart(),n.lineStart()},lineEnd:function(){e.lineEnd(),r.lineEnd(),n.lineEnd()},polygonStart:function(){e.polygonStart(),r.polygonStart(),n.polygonStart()},polygonEnd:function(){e.polygonEnd(),r.polygonEnd(),n.polygonEnd()}}},c.precision=function(t){return arguments.length?(a.precision(t),o.precision(t),s.precision(t),c):a.precision()},c.scale=function(t){return arguments.length?(a.scale(t),o.scale(.35*t),s.scale(t),c.translate(a.translate())):a.scale()},c.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),u=+t[0],f=+t[1];return r=a.translate(t).clipExtent([[u-.455*e,f-.238*e],[u+.455*e,f+.238*e]]).stream(l).point,n=o.translate([u-.307*e,f+.201*e]).clipExtent([[u-.425*e+kt,f+.12*e+kt],[u-.214*e-kt,f+.234*e-kt]]).stream(l).point,i=s.translate([u-.205*e,f+.212*e]).clipExtent([[u-.214*e+kt,f+.166*e+kt],[u-.115*e-kt,f+.234*e-kt]]).stream(l).point,c},c.scale(1070)};var sn,ln,cn,un,fn,hn,pn={point:O,lineStart:O,lineEnd:O,polygonStart:function(){ln=0,pn.lineStart=dn},polygonEnd:function(){pn.lineStart=pn.lineEnd=pn.point=O,sn+=y(ln/2)}};function dn(){var t,e,r,n;function i(t,e){ln+=n*t-r*e,r=t,n=e}pn.point=function(a,o){pn.point=i,t=r=a,e=n=o},pn.lineEnd=function(){i(t,e)}}var gn={point:function(t,e){t&lt;cn&amp;&amp;(cn=t);t&gt;fn&amp;&amp;(fn=t);e&lt;un&amp;&amp;(un=e);e&gt;hn&amp;&amp;(hn=e)},lineStart:O,lineEnd:O,polygonStart:O,polygonEnd:O};function mn(){var t=vn(4.5),e=[],r={point:n,lineStart:function(){r.point=i},lineEnd:o,polygonStart:function(){r.lineEnd=s},polygonEnd:function(){r.lineEnd=o,r.point=n},pointRadius:function(e){return t=vn(e),r},result:function(){if(e.length){var t=e.join(&quot;&quot;);return e=[],t}}};function n(r,n){e.push(&quot;M&quot;,r,&quot;,&quot;,n,t)}function i(t,n){e.push(&quot;M&quot;,t,&quot;,&quot;,n),r.point=a}function a(t,r){e.push(&quot;L&quot;,t,&quot;,&quot;,r)}function o(){r.point=n}function s(){e.push(&quot;Z&quot;)}return r}function vn(t){return&quot;m0,&quot;+t+&quot;a&quot;+t+&quot;,&quot;+t+&quot; 0 1,1 0,&quot;+-2*t+&quot;a&quot;+t+&quot;,&quot;+t+&quot; 0 1,1 0,&quot;+2*t+&quot;z&quot;}var yn,xn={point:bn,lineStart:_n,lineEnd:wn,polygonStart:function(){xn.lineStart=Tn},polygonEnd:function(){xn.point=bn,xn.lineStart=_n,xn.lineEnd=wn}};function bn(t,e){xr+=t,br+=e,++_r}function _n(){var t,e;function r(r,n){var i=r-t,a=n-e,o=Math.sqrt(i*i+a*a);wr+=o*(t+r)/2,Tr+=o*(e+n)/2,kr+=o,bn(t=r,e=n)}xn.point=function(n,i){xn.point=r,bn(t=n,e=i)}}function wn(){xn.point=bn}function Tn(){var t,e,r,n;function i(t,e){var i=t-r,a=e-n,o=Math.sqrt(i*i+a*a);wr+=o*(r+t)/2,Tr+=o*(n+e)/2,kr+=o,Mr+=(o=n*t-r*e)*(r+t),Ar+=o*(n+e),Sr+=3*o,bn(r=t,n=e)}xn.point=function(a,o){xn.point=i,bn(t=r=a,e=n=o)},xn.lineEnd=function(){i(t,e)}}function kn(t){var e=4.5,r={point:n,lineStart:function(){r.point=i},lineEnd:o,polygonStart:function(){r.lineEnd=s},polygonEnd:function(){r.lineEnd=o,r.point=n},pointRadius:function(t){return e=t,r},result:O};function n(r,n){t.moveTo(r+e,n),t.arc(r,n,e,0,St)}function i(e,n){t.moveTo(e,n),r.point=a}function a(e,r){t.lineTo(e,r)}function o(){r.point=n}function s(){t.closePath()}return r}function Mn(t){var e=.5,r=Math.cos(30*Lt),n=16;function i(t){return(n?o:a)(t)}function a(e){return En(e,(function(r,n){r=t(r,n),e.point(r[0],r[1])}))}function o(e){var r,i,a,o,l,c,u,f,h,p,d,g,m={point:v,lineStart:y,lineEnd:b,polygonStart:function(){e.polygonStart(),m.lineStart=_},polygonEnd:function(){e.polygonEnd(),m.lineStart=y}};function v(r,n){r=t(r,n),e.point(r[0],r[1])}function y(){f=NaN,m.point=x,e.lineStart()}function x(r,i){var a=Ir([r,i]),o=t(r,i);s(f,h,u,p,d,g,f=o[0],h=o[1],u=r,p=a[0],d=a[1],g=a[2],n,e),e.point(f,h)}function b(){m.point=v,e.lineEnd()}function _(){y(),m.point=w,m.lineEnd=T}function w(t,e){x(r=t,e),i=f,a=h,o=p,l=d,c=g,m.point=x}function T(){s(f,h,u,p,d,g,i,a,r,o,l,c,n,e),m.lineEnd=b,b()}return m}function s(n,i,a,o,l,c,u,f,h,p,d,g,m,v){var x=u-n,b=f-i,_=x*x+b*b;if(_&gt;4*e&amp;&amp;m--){var w=o+p,T=l+d,k=c+g,M=Math.sqrt(w*w+T*T+k*k),A=Math.asin(k/=M),S=y(y(k)-1)&lt;kt||y(a-h)&lt;kt?(a+h)/2:Math.atan2(T,w),E=t(S,A),C=E[0],L=E[1],I=C-n,P=L-i,z=b*I-x*P;(z*z/_&gt;e||y((x*I+b*P)/_-.5)&gt;.3||o*p+l*d+c*g&lt;r)&amp;&amp;(s(n,i,a,o,l,c,C,L,S,w/=M,T/=M,k,m,v),v.point(C,L),s(C,L,S,w,T,k,u,f,h,p,d,g,m,v))}}return i.precision=function(t){return arguments.length?(n=(e=t*t)&gt;0&amp;&amp;16,i):Math.sqrt(e)},i}function An(t){var e=Mn((function(e,r){return t([e*It,r*It])}));return function(t){return In(e(t))}}function Sn(t){this.stream=t}function En(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function Cn(t){return Ln((function(){return t}))()}function Ln(e){var r,n,i,a,o,s,l=Mn((function(t,e){return[(t=r(t,e))[0]*c+a,o-t[1]*c]})),c=150,u=480,f=250,h=0,p=0,d=0,g=0,m=0,v=tn,y=L,x=null,b=null;function _(t){return[(t=i(t[0]*Lt,t[1]*Lt))[0]*c+a,o-t[1]*c]}function w(t){return(t=i.invert((t[0]-a)/c,(o-t[1])/c))&amp;&amp;[t[0]*It,t[1]*It]}function T(){i=Gr(n=On(d,g,m),r);var t=r(h,p);return a=u-t[0]*c,o=f+t[1]*c,k()}function k(){return s&amp;&amp;(s.valid=!1,s=null),_}return _.stream=function(t){return s&amp;&amp;(s.valid=!1),(s=In(v(n,l(y(t))))).valid=!0,s},_.clipAngle=function(t){return arguments.length?(v=null==t?(x=t,tn):en((x=+t)*Lt),k()):x},_.clipExtent=function(t){return arguments.length?(b=t,y=t?nn(t[0][0],t[0][1],t[1][0],t[1][1]):L,k()):b},_.scale=function(t){return arguments.length?(c=+t,T()):c},_.translate=function(t){return arguments.length?(u=+t[0],f=+t[1],T()):[u,f]},_.center=function(t){return arguments.length?(h=t[0]%360*Lt,p=t[1]%360*Lt,T()):[h*It,p*It]},_.rotate=function(t){return arguments.length?(d=t[0]%360*Lt,g=t[1]%360*Lt,m=t.length&gt;2?t[2]%360*Lt:0,T()):[d*It,g*It,m*It]},t.rebind(_,l,&quot;precision&quot;),function(){return r=e.apply(this,arguments),_.invert=r.invert&amp;&amp;w,T()}}function In(t){return En(t,(function(e,r){t.point(e*Lt,r*Lt)}))}function Pn(t,e){return[t,e]}function zn(t,e){return[t&gt;At?t-St:t&lt;-At?t+St:t,e]}function On(t,e,r){return t?e||r?Gr(Rn(t),Fn(e,r)):Rn(t):e||r?Fn(e,r):zn}function Dn(t){return function(e,r){return[(e+=t)&gt;At?e-St:e&lt;-At?e+St:e,r]}}function Rn(t){var e=Dn(t);return e.invert=Dn(-t),e}function Fn(t,e){var r=Math.cos(t),n=Math.sin(t),i=Math.cos(e),a=Math.sin(e);function o(t,e){var o=Math.cos(e),s=Math.cos(t)*o,l=Math.sin(t)*o,c=Math.sin(e),u=c*r+s*n;return[Math.atan2(l*i-u*a,s*r-c*n),Dt(u*i+l*a)]}return o.invert=function(t,e){var o=Math.cos(e),s=Math.cos(t)*o,l=Math.sin(t)*o,c=Math.sin(e),u=c*i-l*a;return[Math.atan2(l*i+c*a,s*r+u*n),Dt(u*r-s*n)]},o}function Bn(t,e){var r=Math.cos(t),n=Math.sin(t);return function(i,a,o,s){var l=o*e;null!=i?(i=Nn(r,i),a=Nn(r,a),(o&gt;0?i&lt;a:i&gt;a)&amp;&amp;(i+=o*St)):(i=t+o*St,a=t-.5*l);for(var c,u=i;o&gt;0?u&gt;a:u&lt;a;u-=l)s.point((c=Fr([r,-n*Math.cos(u),-n*Math.sin(u)]))[0],c[1])}}function Nn(t,e){var r=Ir(e);r[0]-=t,Rr(r);var n=Ot(-r[1]);return((-r[2]&lt;0?-n:n)+2*Math.PI-kt)%(2*Math.PI)}function jn(e,r,n){var i=t.range(e,r-kt,n).concat(r);return function(t){return i.map((function(e){return[t,e]}))}}function Un(e,r,n){var i=t.range(e,r-kt,n).concat(r);return function(t){return i.map((function(e){return[e,t]}))}}function Vn(t){return t.source}function qn(t){return t.target}t.geo.path=function(){var e,r,n,i,a,o=4.5;function s(e){return e&amp;&amp;(&quot;function&quot;==typeof o&amp;&amp;i.pointRadius(+o.apply(this,arguments)),a&amp;&amp;a.valid||(a=n(i)),t.geo.stream(e,a)),i.result()}function l(){return a=null,s}return s.area=function(e){return sn=0,t.geo.stream(e,n(pn)),sn},s.centroid=function(e){return xr=br=_r=wr=Tr=kr=Mr=Ar=Sr=0,t.geo.stream(e,n(xn)),Sr?[Mr/Sr,Ar/Sr]:kr?[wr/kr,Tr/kr]:_r?[xr/_r,br/_r]:[NaN,NaN]},s.bounds=function(e){return fn=hn=-(cn=un=1/0),t.geo.stream(e,n(gn)),[[cn,un],[fn,hn]]},s.projection=function(t){return arguments.length?(n=(e=t)?t.stream||An(t):L,l()):e},s.context=function(t){return arguments.length?(i=null==(r=t)?new mn:new kn(t),&quot;function&quot;!=typeof o&amp;&amp;i.pointRadius(o),l()):r},s.pointRadius=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:(i.pointRadius(+t),+t),s):o},s.projection(t.geo.albersUsa()).context(null)},t.geo.transform=function(t){return{stream:function(e){var r=new Sn(e);for(var n in t)r[n]=t[n];return r}}},Sn.prototype={point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},t.geo.projection=Cn,t.geo.projectionMutator=Ln,(t.geo.equirectangular=function(){return Cn(Pn)}).raw=Pn.invert=Pn,t.geo.rotation=function(t){function e(e){return(e=t(e[0]*Lt,e[1]*Lt))[0]*=It,e[1]*=It,e}return t=On(t[0]%360*Lt,t[1]*Lt,t.length&gt;2?t[2]*Lt:0),e.invert=function(e){return(e=t.invert(e[0]*Lt,e[1]*Lt))[0]*=It,e[1]*=It,e},e},zn.invert=Pn,t.geo.circle=function(){var t,e,r=[0,0],n=6;function i(){var t=&quot;function&quot;==typeof r?r.apply(this,arguments):r,n=On(-t[0]*Lt,-t[1]*Lt,0).invert,i=[];return e(null,null,1,{point:function(t,e){i.push(t=n(t,e)),t[0]*=It,t[1]*=It}}),{type:&quot;Polygon&quot;,coordinates:[i]}}return i.origin=function(t){return arguments.length?(r=t,i):r},i.angle=function(r){return arguments.length?(e=Bn((t=+r)*Lt,n*Lt),i):t},i.precision=function(r){return arguments.length?(e=Bn(t*Lt,(n=+r)*Lt),i):n},i.angle(90)},t.geo.distance=function(t,e){var r,n=(e[0]-t[0])*Lt,i=t[1]*Lt,a=e[1]*Lt,o=Math.sin(n),s=Math.cos(n),l=Math.sin(i),c=Math.cos(i),u=Math.sin(a),f=Math.cos(a);return Math.atan2(Math.sqrt((r=f*o)*r+(r=c*u-l*f*s)*r),l*u+c*f*s)},t.geo.graticule=function(){var e,r,n,i,a,o,s,l,c,u,f,h,p=10,d=p,g=90,m=360,v=2.5;function x(){return{type:&quot;MultiLineString&quot;,coordinates:b()}}function b(){return t.range(Math.ceil(i/g)*g,n,g).map(f).concat(t.range(Math.ceil(l/m)*m,s,m).map(h)).concat(t.range(Math.ceil(r/p)*p,e,p).filter((function(t){return y(t%g)&gt;kt})).map(c)).concat(t.range(Math.ceil(o/d)*d,a,d).filter((function(t){return y(t%m)&gt;kt})).map(u))}return x.lines=function(){return b().map((function(t){return{type:&quot;LineString&quot;,coordinates:t}}))},x.outline=function(){return{type:&quot;Polygon&quot;,coordinates:[f(i).concat(h(s).slice(1),f(n).reverse().slice(1),h(l).reverse().slice(1))]}},x.extent=function(t){return arguments.length?x.majorExtent(t).minorExtent(t):x.minorExtent()},x.majorExtent=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],l=+t[0][1],s=+t[1][1],i&gt;n&amp;&amp;(t=i,i=n,n=t),l&gt;s&amp;&amp;(t=l,l=s,s=t),x.precision(v)):[[i,l],[n,s]]},x.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],o=+t[0][1],a=+t[1][1],r&gt;e&amp;&amp;(t=r,r=e,e=t),o&gt;a&amp;&amp;(t=o,o=a,a=t),x.precision(v)):[[r,o],[e,a]]},x.step=function(t){return arguments.length?x.majorStep(t).minorStep(t):x.minorStep()},x.majorStep=function(t){return arguments.length?(g=+t[0],m=+t[1],x):[g,m]},x.minorStep=function(t){return arguments.length?(p=+t[0],d=+t[1],x):[p,d]},x.precision=function(t){return arguments.length?(v=+t,c=jn(o,a,90),u=Un(r,e,v),f=jn(l,s,90),h=Un(i,n,v),x):v},x.majorExtent([[-180,-90+kt],[180,90-kt]]).minorExtent([[-180,-80-kt],[180,80+kt]])},t.geo.greatArc=function(){var e,r,n=Vn,i=qn;function a(){return{type:&quot;LineString&quot;,coordinates:[e||n.apply(this,arguments),r||i.apply(this,arguments)]}}return a.distance=function(){return t.geo.distance(e||n.apply(this,arguments),r||i.apply(this,arguments))},a.source=function(t){return arguments.length?(n=t,e=&quot;function&quot;==typeof t?null:t,a):n},a.target=function(t){return arguments.length?(i=t,r=&quot;function&quot;==typeof t?null:t,a):i},a.precision=function(){return arguments.length?a:0},a},t.geo.interpolate=function(t,e){return r=t[0]*Lt,n=t[1]*Lt,i=e[0]*Lt,a=e[1]*Lt,o=Math.cos(n),s=Math.sin(n),l=Math.cos(a),c=Math.sin(a),u=o*Math.cos(r),f=o*Math.sin(r),h=l*Math.cos(i),p=l*Math.sin(i),d=2*Math.asin(Math.sqrt(Ft(a-n)+o*l*Ft(i-r))),g=1/Math.sin(d),(m=d?function(t){var e=Math.sin(t*=d)*g,r=Math.sin(d-t)*g,n=r*u+e*h,i=r*f+e*p,a=r*s+e*c;return[Math.atan2(i,n)*It,Math.atan2(a,Math.sqrt(n*n+i*i))*It]}:function(){return[r*It,n*It]}).distance=d,m;var r,n,i,a,o,s,l,c,u,f,h,p,d,g,m},t.geo.length=function(e){return yn=0,t.geo.stream(e,Hn),yn};var Hn={sphere:O,point:O,lineStart:function(){var t,e,r;function n(n,i){var a=Math.sin(i*=Lt),o=Math.cos(i),s=y((n*=Lt)-t),l=Math.cos(s);yn+=Math.atan2(Math.sqrt((s=o*Math.sin(s))*s+(s=r*a-e*o*l)*s),e*a+r*o*l),t=n,e=a,r=o}Hn.point=function(i,a){t=i*Lt,e=Math.sin(a*=Lt),r=Math.cos(a),Hn.point=n},Hn.lineEnd=function(){Hn.point=Hn.lineEnd=O}},lineEnd:O,polygonStart:O,polygonEnd:O};function Gn(t,e){function r(e,r){var n=Math.cos(e),i=Math.cos(r),a=t(n*i);return[a*i*Math.sin(e),a*Math.sin(r)]}return r.invert=function(t,r){var n=Math.sqrt(t*t+r*r),i=e(n),a=Math.sin(i),o=Math.cos(i);return[Math.atan2(t*a,n*o),Math.asin(n&amp;&amp;r*a/n)]},r}var Yn=Gn((function(t){return Math.sqrt(2/(1+t))}),(function(t){return 2*Math.asin(t/2)}));(t.geo.azimuthalEqualArea=function(){return Cn(Yn)}).raw=Yn;var Wn=Gn((function(t){var e=Math.acos(t);return e&amp;&amp;e/Math.sin(e)}),L);function Xn(t,e){var r=Math.cos(t),n=function(t){return Math.tan(At/4+t/2)},i=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(n(e)/n(t)),a=r*Math.pow(n(t),i)/i;if(!i)return Kn;function o(t,e){a&gt;0?e&lt;-Ct+kt&amp;&amp;(e=-Ct+kt):e&gt;Ct-kt&amp;&amp;(e=Ct-kt);var r=a/Math.pow(n(e),i);return[r*Math.sin(i*t),a-r*Math.cos(i*t)]}return o.invert=function(t,e){var r=a-e,n=Pt(i)*Math.sqrt(t*t+r*r);return[Math.atan2(t,r)/i,2*Math.atan(Math.pow(a/n,1/i))-Ct]},o}function Zn(t,e){var r=Math.cos(t),n=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),i=r/n+t;if(y(n)&lt;kt)return Pn;function a(t,e){var r=i-e;return[r*Math.sin(n*t),i-r*Math.cos(n*t)]}return a.invert=function(t,e){var r=i-e;return[Math.atan2(t,r)/n,i-Pt(n)*Math.sqrt(t*t+r*r)]},a}(t.geo.azimuthalEquidistant=function(){return Cn(Wn)}).raw=Wn,(t.geo.conicConformal=function(){return an(Xn)}).raw=Xn,(t.geo.conicEquidistant=function(){return an(Zn)}).raw=Zn;var Jn=Gn((function(t){return 1/t}),Math.atan);function Kn(t,e){return[t,Math.log(Math.tan(At/4+e/2))]}function Qn(t){var e,r=Cn(t),n=r.scale,i=r.translate,a=r.clipExtent;return r.scale=function(){var t=n.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.translate=function(){var t=i.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.clipExtent=function(t){var o=a.apply(r,arguments);if(o===r){if(e=null==t){var s=At*n(),l=i();a([[l[0]-s,l[1]-s],[l[0]+s,l[1]+s]])}}else e&amp;&amp;(o=null);return o},r.clipExtent(null)}(t.geo.gnomonic=function(){return Cn(Jn)}).raw=Jn,Kn.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Ct]},(t.geo.mercator=function(){return Qn(Kn)}).raw=Kn;var $n=Gn((function(){return 1}),Math.asin);(t.geo.orthographic=function(){return Cn($n)}).raw=$n;var ti=Gn((function(t){return 1/(1+t)}),(function(t){return 2*Math.atan(t)}));function ei(t,e){return[Math.log(Math.tan(At/4+e/2)),-t]}function ri(t){return t[0]}function ni(t){return t[1]}function ii(t){for(var e=t.length,r=[0,1],n=2,i=2;i&lt;e;i++){for(;n&gt;1&amp;&amp;zt(t[r[n-2]],t[r[n-1]],t[i])&lt;=0;)--n;r[n++]=i}return r.slice(0,n)}function ai(t,e){return t[0]-e[0]||t[1]-e[1]}(t.geo.stereographic=function(){return Cn(ti)}).raw=ti,ei.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Ct]},(t.geo.transverseMercator=function(){var t=Qn(ei),e=t.center,r=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return t?r([t[0],t[1],t.length&gt;2?t[2]+90:90]):[(t=r())[0],t[1],t[2]-90]},r([0,0,90])}).raw=ei,t.geom={},t.geom.hull=function(t){var e=ri,r=ni;if(arguments.length)return n(t);function n(t){if(t.length&lt;3)return[];var n,i=de(e),a=de(r),o=t.length,s=[],l=[];for(n=0;n&lt;o;n++)s.push([+i.call(this,t[n],n),+a.call(this,t[n],n),n]);for(s.sort(ai),n=0;n&lt;o;n++)l.push([s[n][0],-s[n][1]]);var c=ii(s),u=ii(l),f=u[0]===c[0],h=u[u.length-1]===c[c.length-1],p=[];for(n=c.length-1;n&gt;=0;--n)p.push(t[s[c[n]][2]]);for(n=+f;n&lt;u.length-h;++n)p.push(t[s[u[n]][2]]);return p}return n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n},t.geom.polygon=function(t){return U(t,oi),t};var oi=t.geom.polygon.prototype=[];function si(t,e,r){return(r[0]-e[0])*(t[1]-e[1])&lt;(r[1]-e[1])*(t[0]-e[0])}function li(t,e,r,n){var i=t[0],a=r[0],o=e[0]-i,s=n[0]-a,l=t[1],c=r[1],u=e[1]-l,f=n[1]-c,h=(s*(l-c)-f*(i-a))/(f*o-s*u);return[i+h*o,l+h*u]}function ci(t){var e=t[0],r=t[t.length-1];return!(e[0]-r[0]||e[1]-r[1])}oi.area=function(){for(var t,e=-1,r=this.length,n=this[r-1],i=0;++e&lt;r;)t=n,n=this[e],i+=t[1]*n[0]-t[0]*n[1];return.5*i},oi.centroid=function(t){var e,r,n=-1,i=this.length,a=0,o=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++n&lt;i;)e=s,s=this[n],r=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*r,o+=(e[1]+s[1])*r;return[a*t,o*t]},oi.clip=function(t){for(var e,r,n,i,a,o,s=ci(t),l=-1,c=this.length-ci(this),u=this[c-1];++l&lt;c;){for(e=t.slice(),t.length=0,i=this[l],a=e[(n=e.length-s)-1],r=-1;++r&lt;n;)si(o=e[r],u,i)?(si(a,u,i)||t.push(li(a,o,u,i)),t.push(o)):si(a,u,i)&amp;&amp;t.push(li(a,o,u,i)),a=o;s&amp;&amp;t.push(t[0]),u=i}return t};var ui,fi,hi,pi,di,gi=[],mi=[];function vi(){Ri(this),this.edge=this.site=this.circle=null}function yi(t){var e=gi.pop()||new vi;return e.site=t,e}function xi(t){Ei(t),hi.remove(t),gi.push(t),Ri(t)}function bi(t){var e=t.circle,r=e.x,n=e.cy,i={x:r,y:n},a=t.P,o=t.N,s=[t];xi(t);for(var l=a;l.circle&amp;&amp;y(r-l.circle.x)&lt;kt&amp;&amp;y(n-l.circle.cy)&lt;kt;)a=l.P,s.unshift(l),xi(l),l=a;s.unshift(l),Ei(l);for(var c=o;c.circle&amp;&amp;y(r-c.circle.x)&lt;kt&amp;&amp;y(n-c.circle.cy)&lt;kt;)o=c.N,s.push(c),xi(c),c=o;s.push(c),Ei(c);var u,f=s.length;for(u=1;u&lt;f;++u)c=s[u],l=s[u-1],zi(c.edge,l.site,c.site,i);l=s[0],(c=s[f-1]).edge=Ii(l.site,c.site,null,i),Si(l),Si(c)}function _i(t){for(var e,r,n,i,a=t.x,o=t.y,s=hi._;s;)if((n=wi(s,o)-a)&gt;kt)s=s.L;else{if(!((i=a-Ti(s,o))&gt;kt)){n&gt;-kt?(e=s.P,r=s):i&gt;-kt?(e=s,r=s.N):e=r=s;break}if(!s.R){e=s;break}s=s.R}var l=yi(t);if(hi.insert(e,l),e||r){if(e===r)return Ei(e),r=yi(e.site),hi.insert(l,r),l.edge=r.edge=Ii(e.site,l.site),Si(e),void Si(r);if(r){Ei(e),Ei(r);var c=e.site,u=c.x,f=c.y,h=t.x-u,p=t.y-f,d=r.site,g=d.x-u,m=d.y-f,v=2*(h*m-p*g),y=h*h+p*p,x=g*g+m*m,b={x:(m*y-p*x)/v+u,y:(h*x-g*y)/v+f};zi(r.edge,c,d,b),l.edge=Ii(c,t,null,b),r.edge=Ii(t,d,null,b),Si(e),Si(r)}else l.edge=Ii(e.site,l.site)}}function wi(t,e){var r=t.site,n=r.x,i=r.y,a=i-e;if(!a)return n;var o=t.P;if(!o)return-1/0;var s=(r=o.site).x,l=r.y,c=l-e;if(!c)return s;var u=s-n,f=1/a-1/c,h=u/c;return f?(-h+Math.sqrt(h*h-2*f*(u*u/(-2*c)-l+c/2+i-a/2)))/f+n:(n+s)/2}function Ti(t,e){var r=t.N;if(r)return wi(r,e);var n=t.site;return n.y===e?n.x:1/0}function ki(t){this.site=t,this.edges=[]}function Mi(t,e){return e.angle-t.angle}function Ai(){Ri(this),this.x=this.y=this.arc=this.site=this.cy=null}function Si(t){var e=t.P,r=t.N;if(e&amp;&amp;r){var n=e.site,i=t.site,a=r.site;if(n!==a){var o=i.x,s=i.y,l=n.x-o,c=n.y-s,u=a.x-o,f=2*(l*(m=a.y-s)-c*u);if(!(f&gt;=-Mt)){var h=l*l+c*c,p=u*u+m*m,d=(m*h-c*p)/f,g=(l*p-u*h)/f,m=g+s,v=mi.pop()||new Ai;v.arc=t,v.site=i,v.x=d+o,v.y=m+Math.sqrt(d*d+g*g),v.cy=m,t.circle=v;for(var y=null,x=di._;x;)if(v.y&lt;x.y||v.y===x.y&amp;&amp;v.x&lt;=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}di.insert(y,v),y||(pi=v)}}}}function Ei(t){var e=t.circle;e&amp;&amp;(e.P||(pi=e.N),di.remove(e),mi.push(e),Ri(e),t.circle=null)}function Ci(t,e){var r=t.b;if(r)return!0;var n,i,a=t.a,o=e[0][0],s=e[1][0],l=e[0][1],c=e[1][1],u=t.l,f=t.r,h=u.x,p=u.y,d=f.x,g=f.y,m=(h+d)/2,v=(p+g)/2;if(g===p){if(m&lt;o||m&gt;=s)return;if(h&gt;d){if(a){if(a.y&gt;=c)return}else a={x:m,y:l};r={x:m,y:c}}else{if(a){if(a.y&lt;l)return}else a={x:m,y:c};r={x:m,y:l}}}else if(i=v-(n=(h-d)/(g-p))*m,n&lt;-1||n&gt;1)if(h&gt;d){if(a){if(a.y&gt;=c)return}else a={x:(l-i)/n,y:l};r={x:(c-i)/n,y:c}}else{if(a){if(a.y&lt;l)return}else a={x:(c-i)/n,y:c};r={x:(l-i)/n,y:l}}else if(p&lt;g){if(a){if(a.x&gt;=s)return}else a={x:o,y:n*o+i};r={x:s,y:n*s+i}}else{if(a){if(a.x&lt;o)return}else a={x:s,y:n*s+i};r={x:o,y:n*o+i}}return t.a=a,t.b=r,!0}function Li(t,e){this.l=t,this.r=e,this.a=this.b=null}function Ii(t,e,r,n){var i=new Li(t,e);return ui.push(i),r&amp;&amp;zi(i,t,e,r),n&amp;&amp;zi(i,e,t,n),fi[t.i].edges.push(new Oi(i,t,e)),fi[e.i].edges.push(new Oi(i,e,t)),i}function Pi(t,e,r){var n=new Li(t,null);return n.a=e,n.b=r,ui.push(n),n}function zi(t,e,r,n){t.a||t.b?t.l===r?t.b=n:t.a=n:(t.a=n,t.l=e,t.r=r)}function Oi(t,e,r){var n=t.a,i=t.b;this.edge=t,this.site=e,this.angle=r?Math.atan2(r.y-e.y,r.x-e.x):t.l===e?Math.atan2(i.x-n.x,n.y-i.y):Math.atan2(n.x-i.x,i.y-n.y)}function Di(){this._=null}function Ri(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Fi(t,e){var r=e,n=e.R,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.R=n.L,r.R&amp;&amp;(r.R.U=r),n.L=r}function Bi(t,e){var r=e,n=e.L,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.L=n.R,r.L&amp;&amp;(r.L.U=r),n.R=r}function Ni(t){for(;t.L;)t=t.L;return t}function ji(t,e){var r,n,i,a=t.sort(Ui).pop();for(ui=[],fi=new Array(t.length),hi=new Di,di=new Di;;)if(i=pi,a&amp;&amp;(!i||a.y&lt;i.y||a.y===i.y&amp;&amp;a.x&lt;i.x))a.x===r&amp;&amp;a.y===n||(fi[a.i]=new ki(a),_i(a),r=a.x,n=a.y),a=t.pop();else{if(!i)break;bi(i.arc)}e&amp;&amp;(function(t){for(var e,r=ui,n=rn(t[0][0],t[0][1],t[1][0],t[1][1]),i=r.length;i--;)(!Ci(e=r[i],t)||!n(e)||y(e.a.x-e.b.x)&lt;kt&amp;&amp;y(e.a.y-e.b.y)&lt;kt)&amp;&amp;(e.a=e.b=null,r.splice(i,1))}(e),function(t){for(var e,r,n,i,a,o,s,l,c,u,f=t[0][0],h=t[1][0],p=t[0][1],d=t[1][1],g=fi,m=g.length;m--;)if((a=g[m])&amp;&amp;a.prepare())for(l=(s=a.edges).length,o=0;o&lt;l;)n=(u=s[o].end()).x,i=u.y,e=(c=s[++o%l].start()).x,r=c.y,(y(n-e)&gt;kt||y(i-r)&gt;kt)&amp;&amp;(s.splice(o,0,new Oi(Pi(a.site,u,y(n-f)&lt;kt&amp;&amp;d-i&gt;kt?{x:f,y:y(e-f)&lt;kt?r:d}:y(i-d)&lt;kt&amp;&amp;h-n&gt;kt?{x:y(r-d)&lt;kt?e:h,y:d}:y(n-h)&lt;kt&amp;&amp;i-p&gt;kt?{x:h,y:y(e-h)&lt;kt?r:p}:y(i-p)&lt;kt&amp;&amp;n-f&gt;kt?{x:y(r-p)&lt;kt?e:f,y:p}:null),a.site,null)),++l)}(e));var o={cells:fi,edges:ui};return hi=di=ui=fi=null,o}function Ui(t,e){return e.y-t.y||e.x-t.x}ki.prototype.prepare=function(){for(var t,e=this.edges,r=e.length;r--;)(t=e[r].edge).b&amp;&amp;t.a||e.splice(r,1);return e.sort(Mi),e.length},Oi.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Di.prototype={insert:function(t,e){var r,n,i;if(t){if(e.P=t,e.N=t.N,t.N&amp;&amp;(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;r=t}else this._?(t=Ni(this._),e.P=null,e.N=t,t.P=t.L=e,r=t):(e.P=e.N=null,this._=e,r=null);for(e.L=e.R=null,e.U=r,e.C=!0,t=e;r&amp;&amp;r.C;)r===(n=r.U).L?(i=n.R)&amp;&amp;i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.R&amp;&amp;(Fi(this,r),r=(t=r).U),r.C=!1,n.C=!0,Bi(this,n)):(i=n.L)&amp;&amp;i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.L&amp;&amp;(Bi(this,r),r=(t=r).U),r.C=!1,n.C=!0,Fi(this,n)),r=t.U;this._.C=!1},remove:function(t){t.N&amp;&amp;(t.N.P=t.P),t.P&amp;&amp;(t.P.N=t.N),t.N=t.P=null;var e,r,n,i=t.U,a=t.L,o=t.R;if(r=a?o?Ni(o):a:o,i?i.L===t?i.L=r:i.R=r:this._=r,a&amp;&amp;o?(n=r.C,r.C=t.C,r.L=a,a.U=r,r!==o?(i=r.U,r.U=t.U,t=r.R,i.L=t,r.R=o,o.U=r):(r.U=i,i=r,t=r.R)):(n=t.C,t=r),t&amp;&amp;(t.U=i),!n)if(t&amp;&amp;t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&amp;&amp;(e.C=!1,i.C=!0,Fi(this,i),e=i.R),e.L&amp;&amp;e.L.C||e.R&amp;&amp;e.R.C){e.R&amp;&amp;e.R.C||(e.L.C=!1,e.C=!0,Bi(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,Fi(this,i),t=this._;break}}else if((e=i.L).C&amp;&amp;(e.C=!1,i.C=!0,Bi(this,i),e=i.L),e.L&amp;&amp;e.L.C||e.R&amp;&amp;e.R.C){e.L&amp;&amp;e.L.C||(e.R.C=!1,e.C=!0,Fi(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,Bi(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&amp;&amp;(t.C=!1)}}},t.geom.voronoi=function(t){var e=ri,r=ni,n=e,i=r,a=Vi;if(t)return o(t);function o(t){var e=new Array(t.length),r=a[0][0],n=a[0][1],i=a[1][0],o=a[1][1];return ji(s(t),a).cells.forEach((function(a,s){var l=a.edges,c=a.site;(e[s]=l.length?l.map((function(t){var e=t.start();return[e.x,e.y]})):c.x&gt;=r&amp;&amp;c.x&lt;=i&amp;&amp;c.y&gt;=n&amp;&amp;c.y&lt;=o?[[r,o],[i,o],[i,n],[r,n]]:[]).point=t[s]})),e}function s(t){return t.map((function(t,e){return{x:Math.round(n(t,e)/kt)*kt,y:Math.round(i(t,e)/kt)*kt,i:e}}))}return o.links=function(t){return ji(s(t)).edges.filter((function(t){return t.l&amp;&amp;t.r})).map((function(e){return{source:t[e.l.i],target:t[e.r.i]}}))},o.triangles=function(t){var e=[];return ji(s(t)).cells.forEach((function(r,n){for(var i,a,o,s,l=r.site,c=r.edges.sort(Mi),u=-1,f=c.length,h=c[f-1].edge,p=h.l===l?h.r:h.l;++u&lt;f;)h,i=p,p=(h=c[u].edge).l===l?h.r:h.l,n&lt;i.i&amp;&amp;n&lt;p.i&amp;&amp;(o=i,s=p,((a=l).x-s.x)*(o.y-a.y)-(a.x-o.x)*(s.y-a.y)&lt;0)&amp;&amp;e.push([t[n],t[i.i],t[p.i]])})),e},o.x=function(t){return arguments.length?(n=de(e=t),o):e},o.y=function(t){return arguments.length?(i=de(r=t),o):r},o.clipExtent=function(t){return arguments.length?(a=null==t?Vi:t,o):a===Vi?null:a},o.size=function(t){return arguments.length?o.clipExtent(t&amp;&amp;[[0,0],t]):a===Vi?null:a&amp;&amp;a[1]},o};var Vi=[[-1e6,-1e6],[1e6,1e6]];function qi(t){return t.x}function Hi(t){return t.y}function Gi(t,e,r,n,i,a){if(!t(e,r,n,i,a)){var o=.5*(r+i),s=.5*(n+a),l=e.nodes;l[0]&amp;&amp;Gi(t,l[0],r,n,o,s),l[1]&amp;&amp;Gi(t,l[1],o,n,i,s),l[2]&amp;&amp;Gi(t,l[2],r,s,o,a),l[3]&amp;&amp;Gi(t,l[3],o,s,i,a)}}function Yi(t,e,r,n,i,a,o){var s,l=1/0;return function t(c,u,f,h,p){if(!(u&gt;a||f&gt;o||h&lt;n||p&lt;i)){if(d=c.point){var d,g=e-c.x,m=r-c.y,v=g*g+m*m;if(v&lt;l){var y=Math.sqrt(l=v);n=e-y,i=r-y,a=e+y,o=r+y,s=d}}for(var x=c.nodes,b=.5*(u+h),_=.5*(f+p),w=(r&gt;=_)&lt;&lt;1|e&gt;=b,T=w+4;w&lt;T;++w)if(c=x[3&amp;w])switch(3&amp;w){case 0:t(c,u,f,b,_);break;case 1:t(c,b,f,h,_);break;case 2:t(c,u,_,b,p);break;case 3:t(c,b,_,h,p)}}}(t,n,i,a,o),s}function Wi(e,r){e=t.rgb(e),r=t.rgb(r);var n=e.r,i=e.g,a=e.b,o=r.r-n,s=r.g-i,l=r.b-a;return function(t){return&quot;#&quot;+se(Math.round(n+o*t))+se(Math.round(i+s*t))+se(Math.round(a+l*t))}}function Xi(t,e){var r,n={},i={};for(r in t)r in e?n[r]=$i(t[r],e[r]):i[r]=t[r];for(r in e)r in t||(i[r]=e[r]);return function(t){for(r in n)i[r]=n[r](t);return i}}function Zi(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Ji(t,e){var r,n,i,a=Ki.lastIndex=Qi.lastIndex=0,o=-1,s=[],l=[];for(t+=&quot;&quot;,e+=&quot;&quot;;(r=Ki.exec(t))&amp;&amp;(n=Qi.exec(e));)(i=n.index)&gt;a&amp;&amp;(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:Zi(r,n)})),a=Qi.lastIndex;return a&lt;e.length&amp;&amp;(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length&lt;2?l[0]?(e=l[0].x,function(t){return e(t)+&quot;&quot;}):function(){return e}:(e=l.length,function(t){for(var r,n=0;n&lt;e;++n)s[(r=l[n]).i]=r.x(t);return s.join(&quot;&quot;)})}t.geom.delaunay=function(e){return t.geom.voronoi().triangles(e)},t.geom.quadtree=function(t,e,r,n,i){var a,o=ri,s=ni;if(a=arguments.length)return o=qi,s=Hi,3===a&amp;&amp;(i=r,n=e,r=e=0),l(t);function l(t){var l,c,u,f,h,p,d,g,m,v=de(o),x=de(s);if(null!=e)p=e,d=r,g=n,m=i;else if(g=m=-(p=d=1/0),c=[],u=[],h=t.length,a)for(f=0;f&lt;h;++f)(l=t[f]).x&lt;p&amp;&amp;(p=l.x),l.y&lt;d&amp;&amp;(d=l.y),l.x&gt;g&amp;&amp;(g=l.x),l.y&gt;m&amp;&amp;(m=l.y),c.push(l.x),u.push(l.y);else for(f=0;f&lt;h;++f){var b=+v(l=t[f],f),_=+x(l,f);b&lt;p&amp;&amp;(p=b),_&lt;d&amp;&amp;(d=_),b&gt;g&amp;&amp;(g=b),_&gt;m&amp;&amp;(m=_),c.push(b),u.push(_)}var w=g-p,T=m-d;function k(t,e,r,n,i,a,o,s){if(!isNaN(r)&amp;&amp;!isNaN(n))if(t.leaf){var l=t.x,c=t.y;if(null!=l)if(y(l-r)+y(c-n)&lt;.01)M(t,e,r,n,i,a,o,s);else{var u=t.point;t.x=t.y=t.point=null,M(t,u,l,c,i,a,o,s),M(t,e,r,n,i,a,o,s)}else t.x=r,t.y=n,t.point=e}else M(t,e,r,n,i,a,o,s)}function M(t,e,r,n,i,a,o,s){var l=.5*(i+o),c=.5*(a+s),u=r&gt;=l,f=n&gt;=c,h=f&lt;&lt;1|u;t.leaf=!1,u?i=l:o=l,f?a=c:s=c,k(t=t.nodes[h]||(t.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null}),e,r,n,i,a,o,s)}w&gt;T?m=d+w:g=p+T;var A={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){k(A,t,+v(t,++f),+x(t,f),p,d,g,m)},visit:function(t){Gi(t,A,p,d,g,m)},find:function(t){return Yi(A,t[0],t[1],p,d,g,m)}};if(f=-1,null==e){for(;++f&lt;h;)k(A,t[f],c[f],u[f],p,d,g,m);--f}else t.forEach(A.add);return c=u=t=l=null,A}return l.x=function(t){return arguments.length?(o=t,l):o},l.y=function(t){return arguments.length?(s=t,l):s},l.extent=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=+t[0][0],r=+t[0][1],n=+t[1][0],i=+t[1][1]),l):null==e?null:[[e,r],[n,i]]},l.size=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=r=0,n=+t[0],i=+t[1]),l):null==e?null:[n-e,i-r]},l},t.interpolateRgb=Wi,t.interpolateObject=Xi,t.interpolateNumber=Zi,t.interpolateString=Ji;var Ki=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qi=new RegExp(Ki.source,&quot;g&quot;);function $i(e,r){for(var n,i=t.interpolators.length;--i&gt;=0&amp;&amp;!(n=t.interpolators[i](e,r)););return n}function ta(t,e){var r,n=[],i=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(r=0;r&lt;s;++r)n.push($i(t[r],e[r]));for(;r&lt;a;++r)i[r]=t[r];for(;r&lt;o;++r)i[r]=e[r];return function(t){for(r=0;r&lt;s;++r)i[r]=n[r](t);return i}}t.interpolate=$i,t.interpolators=[function(t,e){var r=typeof e;return(&quot;string&quot;===r?pe.has(e.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(e)?Wi:Ji:e instanceof Vt?Wi:Array.isArray(e)?ta:&quot;object&quot;===r&amp;&amp;isNaN(e)?Xi:Zi)(t,e)}],t.interpolateArray=ta;var ea=function(){return L},ra=t.map({linear:ea,poly:function(t){return function(e){return Math.pow(e,t)}},quad:function(){return sa},cubic:function(){return la},sin:function(){return ua},exp:function(){return fa},circle:function(){return ha},elastic:function(t,e){var r;arguments.length&lt;2&amp;&amp;(e=.45);arguments.length?r=e/St*Math.asin(1/t):(t=1,r=e/4);return function(n){return 1+t*Math.pow(2,-10*n)*Math.sin((n-r)*St/e)}},back:function(t){t||(t=1.70158);return function(e){return e*e*((t+1)*e-t)}},bounce:function(){return pa}}),na=t.map({in:L,out:aa,&quot;in-out&quot;:oa,&quot;out-in&quot;:function(t){return oa(aa(t))}});function ia(t){return function(e){return e&lt;=0?0:e&gt;=1?1:t(e)}}function aa(t){return function(e){return 1-t(1-e)}}function oa(t){return function(e){return.5*(e&lt;.5?t(2*e):2-t(2-2*e))}}function sa(t){return t*t}function la(t){return t*t*t}function ca(t){if(t&lt;=0)return 0;if(t&gt;=1)return 1;var e=t*t,r=e*t;return 4*(t&lt;.5?r:3*(t-e)+r-.75)}function ua(t){return 1-Math.cos(t*Ct)}function fa(t){return Math.pow(2,10*(t-1))}function ha(t){return 1-Math.sqrt(1-t*t)}function pa(t){return t&lt;1/2.75?7.5625*t*t:t&lt;2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t&lt;2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function da(t,e){return e-=t,function(r){return Math.round(t+e*r)}}function ga(t){var e,r,n,i=[t.a,t.b],a=[t.c,t.d],o=va(i),s=ma(i,a),l=va(((e=a)[0]+=(n=-s)*(r=i)[0],e[1]+=n*r[1],e))||0;i[0]*a[1]&lt;a[0]*i[1]&amp;&amp;(i[0]*=-1,i[1]*=-1,o*=-1,s*=-1),this.rotate=(o?Math.atan2(i[1],i[0]):Math.atan2(-a[0],a[1]))*It,this.translate=[t.e,t.f],this.scale=[o,l],this.skew=l?Math.atan2(s,l)*It:0}function ma(t,e){return t[0]*e[0]+t[1]*e[1]}function va(t){var e=Math.sqrt(ma(t,t));return e&amp;&amp;(t[0]/=e,t[1]/=e),e}t.ease=function(t){var e=t.indexOf(&quot;-&quot;),n=e&gt;=0?t.slice(0,e):t,i=e&gt;=0?t.slice(e+1):&quot;in&quot;;return n=ra.get(n)||ea,ia((i=na.get(i)||L)(n.apply(null,r.call(arguments,1))))},t.interpolateHcl=function(e,r){e=t.hcl(e),r=t.hcl(r);var n=e.h,i=e.c,a=e.l,o=r.h-n,s=r.c-i,l=r.l-a;isNaN(s)&amp;&amp;(s=0,i=isNaN(i)?r.c:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o&gt;180?o-=360:o&lt;-180&amp;&amp;(o+=360);return function(t){return Xt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateHsl=function(e,r){e=t.hsl(e),r=t.hsl(r);var n=e.h,i=e.s,a=e.l,o=r.h-n,s=r.s-i,l=r.l-a;isNaN(s)&amp;&amp;(s=0,i=isNaN(i)?r.s:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o&gt;180?o-=360:o&lt;-180&amp;&amp;(o+=360);return function(t){return Gt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateLab=function(e,r){e=t.lab(e),r=t.lab(r);var n=e.l,i=e.a,a=e.b,o=r.l-n,s=r.a-i,l=r.b-a;return function(t){return Qt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateRound=da,t.transform=function(e){var r=i.createElementNS(t.ns.prefix.svg,&quot;g&quot;);return(t.transform=function(t){if(null!=t){r.setAttribute(&quot;transform&quot;,t);var e=r.transform.baseVal.consolidate()}return new ga(e?e.matrix:ya)})(e)},ga.prototype.toString=function(){return&quot;translate(&quot;+this.translate+&quot;)rotate(&quot;+this.rotate+&quot;)skewX(&quot;+this.skew+&quot;)scale(&quot;+this.scale+&quot;)&quot;};var ya={a:1,b:0,c:0,d:1,e:0,f:0};function xa(t){return t.length?t.pop()+&quot;,&quot;:&quot;&quot;}function ba(e,r){var n=[],i=[];return e=t.transform(e),r=t.transform(r),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(&quot;translate(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);n.push({i:i-4,x:Zi(t[0],e[0])},{i:i-2,x:Zi(t[1],e[1])})}else(e[0]||e[1])&amp;&amp;r.push(&quot;translate(&quot;+e+&quot;)&quot;)}(e.translate,r.translate,n,i),function(t,e,r,n){t!==e?(t-e&gt;180?e+=360:e-t&gt;180&amp;&amp;(t+=360),n.push({i:r.push(xa(r)+&quot;rotate(&quot;,null,&quot;)&quot;)-2,x:Zi(t,e)})):e&amp;&amp;r.push(xa(r)+&quot;rotate(&quot;+e+&quot;)&quot;)}(e.rotate,r.rotate,n,i),function(t,e,r,n){t!==e?n.push({i:r.push(xa(r)+&quot;skewX(&quot;,null,&quot;)&quot;)-2,x:Zi(t,e)}):e&amp;&amp;r.push(xa(r)+&quot;skewX(&quot;+e+&quot;)&quot;)}(e.skew,r.skew,n,i),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(xa(r)+&quot;scale(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);n.push({i:i-4,x:Zi(t[0],e[0])},{i:i-2,x:Zi(t[1],e[1])})}else 1===e[0]&amp;&amp;1===e[1]||r.push(xa(r)+&quot;scale(&quot;+e+&quot;)&quot;)}(e.scale,r.scale,n,i),e=r=null,function(t){for(var e,r=-1,a=i.length;++r&lt;a;)n[(e=i[r]).i]=e.x(t);return n.join(&quot;&quot;)}}function _a(t,e){return e=(e-=t=+t)||1/e,function(r){return(r-t)/e}}function wa(t,e){return e=(e-=t=+t)||1/e,function(r){return Math.max(0,Math.min(1,(r-t)/e))}}function Ta(t){for(var e=t.source,r=t.target,n=function(t,e){if(t===e)return t;var r=ka(t),n=ka(e),i=r.pop(),a=n.pop(),o=null;for(;i===a;)o=i,i=r.pop(),a=n.pop();return o}(e,r),i=[e];e!==n;)e=e.parent,i.push(e);for(var a=i.length;r!==n;)i.splice(a,0,r),r=r.parent;return i}function ka(t){for(var e=[],r=t.parent;null!=r;)e.push(t),t=r,r=r.parent;return e.push(t),e}function Ma(t){t.fixed|=2}function Aa(t){t.fixed&amp;=-7}function Sa(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Ea(t){t.fixed&amp;=-5}t.interpolateTransform=ba,t.layout={},t.layout.bundle=function(){return function(t){for(var e=[],r=-1,n=t.length;++r&lt;n;)e.push(Ta(t[r]));return e}},t.layout.chord=function(){var e,r,n,i,a,o,s,l={},c=0;function u(){var l,u,h,p,d,g={},m=[],v=t.range(i),y=[];for(e=[],r=[],l=0,p=-1;++p&lt;i;){for(u=0,d=-1;++d&lt;i;)u+=n[p][d];m.push(u),y.push(t.range(i)),l+=u}for(a&amp;&amp;v.sort((function(t,e){return a(m[t],m[e])})),o&amp;&amp;y.forEach((function(t,e){t.sort((function(t,r){return o(n[e][t],n[e][r])}))})),l=(St-c*i)/l,u=0,p=-1;++p&lt;i;){for(h=u,d=-1;++d&lt;i;){var x=v[p],b=y[x][d],_=n[x][b],w=u,T=u+=_*l;g[x+&quot;-&quot;+b]={index:x,subindex:b,startAngle:w,endAngle:T,value:_}}r[x]={index:x,startAngle:h,endAngle:u,value:m[x]},u+=c}for(p=-1;++p&lt;i;)for(d=p-1;++d&lt;i;){var k=g[p+&quot;-&quot;+d],M=g[d+&quot;-&quot;+p];(k.value||M.value)&amp;&amp;e.push(k.value&lt;M.value?{source:M,target:k}:{source:k,target:M})}s&amp;&amp;f()}function f(){e.sort((function(t,e){return s((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)}))}return l.matrix=function(t){return arguments.length?(i=(n=t)&amp;&amp;n.length,e=r=null,l):n},l.padding=function(t){return arguments.length?(c=t,e=r=null,l):c},l.sortGroups=function(t){return arguments.length?(a=t,e=r=null,l):a},l.sortSubgroups=function(t){return arguments.length?(o=t,e=null,l):o},l.sortChords=function(t){return arguments.length?(s=t,e&amp;&amp;f(),l):s},l.chords=function(){return e||u(),e},l.groups=function(){return r||u(),r},l},t.layout.force=function(){var e,r,n,i,a,o,s={},l=t.dispatch(&quot;start&quot;,&quot;tick&quot;,&quot;end&quot;),c=[1,1],u=.9,f=Ca,h=La,p=-30,d=Ia,g=.1,m=.64,v=[],y=[];function x(t){return function(e,r,n,i){if(e.point!==t){var a=e.cx-t.x,o=e.cy-t.y,s=i-r,l=a*a+o*o;if(s*s/m&lt;l){if(l&lt;d){var c=e.charge/l;t.px-=a*c,t.py-=o*c}return!0}if(e.point&amp;&amp;l&amp;&amp;l&lt;d){c=e.pointCharge/l;t.px-=a*c,t.py-=o*c}}return!e.charge}}function b(e){e.px=t.event.x,e.py=t.event.y,s.resume()}return s.tick=function(){if((n*=.99)&lt;.005)return e=null,l.end({type:&quot;end&quot;,alpha:n=0}),!0;var r,s,f,h,d,m,b,_,w,T=v.length,k=y.length;for(s=0;s&lt;k;++s)h=(f=y[s]).source,(m=(_=(d=f.target).x-h.x)*_+(w=d.y-h.y)*w)&amp;&amp;(_*=m=n*a[s]*((m=Math.sqrt(m))-i[s])/m,w*=m,d.x-=_*(b=h.weight+d.weight?h.weight/(h.weight+d.weight):.5),d.y-=w*b,h.x+=_*(b=1-b),h.y+=w*b);if((b=n*g)&amp;&amp;(_=c[0]/2,w=c[1]/2,s=-1,b))for(;++s&lt;T;)(f=v[s]).x+=(_-f.x)*b,f.y+=(w-f.y)*b;if(p)for(!function t(e,r,n){var i=0,a=0;if(e.charge=0,!e.leaf)for(var o,s=e.nodes,l=s.length,c=-1;++c&lt;l;)null!=(o=s[c])&amp;&amp;(t(o,r,n),e.charge+=o.charge,i+=o.charge*o.cx,a+=o.charge*o.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var u=r*n[e.point.index];e.charge+=e.pointCharge=u,i+=u*e.point.x,a+=u*e.point.y}e.cx=i/e.charge,e.cy=a/e.charge}(r=t.geom.quadtree(v),n,o),s=-1;++s&lt;T;)(f=v[s]).fixed||r.visit(x(f));for(s=-1;++s&lt;T;)(f=v[s]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*u,f.y-=(f.py-(f.py=f.y))*u);l.tick({type:&quot;tick&quot;,alpha:n})},s.nodes=function(t){return arguments.length?(v=t,s):v},s.links=function(t){return arguments.length?(y=t,s):y},s.size=function(t){return arguments.length?(c=t,s):c},s.linkDistance=function(t){return arguments.length?(f=&quot;function&quot;==typeof t?t:+t,s):f},s.distance=s.linkDistance,s.linkStrength=function(t){return arguments.length?(h=&quot;function&quot;==typeof t?t:+t,s):h},s.friction=function(t){return arguments.length?(u=+t,s):u},s.charge=function(t){return arguments.length?(p=&quot;function&quot;==typeof t?t:+t,s):p},s.chargeDistance=function(t){return arguments.length?(d=t*t,s):Math.sqrt(d)},s.gravity=function(t){return arguments.length?(g=+t,s):g},s.theta=function(t){return arguments.length?(m=t*t,s):Math.sqrt(m)},s.alpha=function(t){return arguments.length?(t=+t,n?t&gt;0?n=t:(e.c=null,e.t=NaN,e=null,l.end({type:&quot;end&quot;,alpha:n=0})):t&gt;0&amp;&amp;(l.start({type:&quot;start&quot;,alpha:n=t}),e=we(s.tick)),s):n},s.start=function(){var t,e,r,n=v.length,l=y.length,u=c[0],d=c[1];for(t=0;t&lt;n;++t)(r=v[t]).index=t,r.weight=0;for(t=0;t&lt;l;++t)&quot;number&quot;==typeof(r=y[t]).source&amp;&amp;(r.source=v[r.source]),&quot;number&quot;==typeof r.target&amp;&amp;(r.target=v[r.target]),++r.source.weight,++r.target.weight;for(t=0;t&lt;n;++t)r=v[t],isNaN(r.x)&amp;&amp;(r.x=g(&quot;x&quot;,u)),isNaN(r.y)&amp;&amp;(r.y=g(&quot;y&quot;,d)),isNaN(r.px)&amp;&amp;(r.px=r.x),isNaN(r.py)&amp;&amp;(r.py=r.y);if(i=[],&quot;function&quot;==typeof f)for(t=0;t&lt;l;++t)i[t]=+f.call(this,y[t],t);else for(t=0;t&lt;l;++t)i[t]=f;if(a=[],&quot;function&quot;==typeof h)for(t=0;t&lt;l;++t)a[t]=+h.call(this,y[t],t);else for(t=0;t&lt;l;++t)a[t]=h;if(o=[],&quot;function&quot;==typeof p)for(t=0;t&lt;n;++t)o[t]=+p.call(this,v[t],t);else for(t=0;t&lt;n;++t)o[t]=p;function g(r,i){if(!e){for(e=new Array(n),c=0;c&lt;n;++c)e[c]=[];for(c=0;c&lt;l;++c){var a=y[c];e[a.source.index].push(a.target),e[a.target.index].push(a.source)}}for(var o,s=e[t],c=-1,u=s.length;++c&lt;u;)if(!isNaN(o=s[c][r]))return o;return Math.random()*i}return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){if(r||(r=t.behavior.drag().origin(L).on(&quot;dragstart.force&quot;,Ma).on(&quot;drag.force&quot;,b).on(&quot;dragend.force&quot;,Aa)),!arguments.length)return r;this.on(&quot;mouseover.force&quot;,Sa).on(&quot;mouseout.force&quot;,Ea).call(r)},t.rebind(s,l,&quot;on&quot;)};var Ca=20,La=1,Ia=1/0;function Pa(e,r){return t.rebind(e,r,&quot;sort&quot;,&quot;children&quot;,&quot;value&quot;),e.nodes=e,e.links=Ba,e}function za(t,e){for(var r=[t];null!=(t=r.pop());)if(e(t),(i=t.children)&amp;&amp;(n=i.length))for(var n,i;--n&gt;=0;)r.push(i[n])}function Oa(t,e){for(var r=[t],n=[];null!=(t=r.pop());)if(n.push(t),(a=t.children)&amp;&amp;(i=a.length))for(var i,a,o=-1;++o&lt;i;)r.push(a[o]);for(;null!=(t=n.pop());)e(t)}function Da(t){return t.children}function Ra(t){return t.value}function Fa(t,e){return e.value-t.value}function Ba(e){return t.merge(e.map((function(t){return(t.children||[]).map((function(e){return{source:t,target:e}}))})))}t.layout.hierarchy=function(){var t=Fa,e=Da,r=Ra;function n(i){var a,o=[i],s=[];for(i.depth=0;null!=(a=o.pop());)if(s.push(a),(c=e.call(n,a,a.depth))&amp;&amp;(l=c.length)){for(var l,c,u;--l&gt;=0;)o.push(u=c[l]),u.parent=a,u.depth=a.depth+1;r&amp;&amp;(a.value=0),a.children=c}else r&amp;&amp;(a.value=+r.call(n,a,a.depth)||0),delete a.children;return Oa(i,(function(e){var n,i;t&amp;&amp;(n=e.children)&amp;&amp;n.sort(t),r&amp;&amp;(i=e.parent)&amp;&amp;(i.value+=e.value)})),s}return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&amp;&amp;(za(t,(function(t){t.children&amp;&amp;(t.value=0)})),Oa(t,(function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&amp;&amp;(e.value+=t.value)}))),t},n},t.layout.partition=function(){var e=t.layout.hierarchy(),r=[1,1];function n(t,n){var i=e.call(this,t,n);return function t(e,r,n,i){var a=e.children;if(e.x=r,e.y=e.depth*i,e.dx=n,e.dy=i,a&amp;&amp;(o=a.length)){var o,s,l,c=-1;for(n=e.value?n/e.value:0;++c&lt;o;)t(s=a[c],r,l=s.value*n,i),r+=l}}(i[0],0,r[0],r[1]/function t(e){var r=e.children,n=0;if(r&amp;&amp;(i=r.length))for(var i,a=-1;++a&lt;i;)n=Math.max(n,t(r[a]));return 1+n}(i[0])),i}return n.size=function(t){return arguments.length?(r=t,n):r},Pa(n,e)},t.layout.pie=function(){var e=Number,r=Na,n=0,i=St,a=0;function o(s){var l,c=s.length,u=s.map((function(t,r){return+e.call(o,t,r)})),f=+(&quot;function&quot;==typeof n?n.apply(this,arguments):n),h=(&quot;function&quot;==typeof i?i.apply(this,arguments):i)-f,p=Math.min(Math.abs(h)/c,+(&quot;function&quot;==typeof a?a.apply(this,arguments):a)),d=p*(h&lt;0?-1:1),g=t.sum(u),m=g?(h-c*d)/g:0,v=t.range(c),y=[];return null!=r&amp;&amp;v.sort(r===Na?function(t,e){return u[e]-u[t]}:function(t,e){return r(s[t],s[e])}),v.forEach((function(t){y[t]={data:s[t],value:l=u[t],startAngle:f,endAngle:f+=l*m+d,padAngle:p}})),y}return o.value=function(t){return arguments.length?(e=t,o):e},o.sort=function(t){return arguments.length?(r=t,o):r},o.startAngle=function(t){return arguments.length?(n=t,o):n},o.endAngle=function(t){return arguments.length?(i=t,o):i},o.padAngle=function(t){return arguments.length?(a=t,o):a},o};var Na={};function ja(t){return t.x}function Ua(t){return t.y}function Va(t,e,r){t.y0=e,t.y=r}t.layout.stack=function(){var e=L,r=Ga,n=Ya,i=Va,a=ja,o=Ua;function s(l,c){if(!(p=l.length))return l;var u=l.map((function(t,r){return e.call(s,t,r)})),f=u.map((function(t){return t.map((function(t,e){return[a.call(s,t,e),o.call(s,t,e)]}))})),h=r.call(s,f,c);u=t.permute(u,h),f=t.permute(f,h);var p,d,g,m,v=n.call(s,f,c),y=u[0].length;for(g=0;g&lt;y;++g)for(i.call(s,u[0][g],m=v[g],f[0][g][1]),d=1;d&lt;p;++d)i.call(s,u[d][g],m+=f[d-1][g][1],f[d][g][1]);return l}return s.values=function(t){return arguments.length?(e=t,s):e},s.order=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:qa.get(t)||Ga,s):r},s.offset=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:Ha.get(t)||Ya,s):n},s.x=function(t){return arguments.length?(a=t,s):a},s.y=function(t){return arguments.length?(o=t,s):o},s.out=function(t){return arguments.length?(i=t,s):i},s};var qa=t.map({&quot;inside-out&quot;:function(e){var r,n,i=e.length,a=e.map(Wa),o=e.map(Xa),s=t.range(i).sort((function(t,e){return a[t]-a[e]})),l=0,c=0,u=[],f=[];for(r=0;r&lt;i;++r)n=s[r],l&lt;c?(l+=o[n],u.push(n)):(c+=o[n],f.push(n));return f.reverse().concat(u)},reverse:function(e){return t.range(e.length).reverse()},default:Ga}),Ha=t.map({silhouette:function(t){var e,r,n,i=t.length,a=t[0].length,o=[],s=0,l=[];for(r=0;r&lt;a;++r){for(e=0,n=0;e&lt;i;e++)n+=t[e][r][1];n&gt;s&amp;&amp;(s=n),o.push(n)}for(r=0;r&lt;a;++r)l[r]=(s-o[r])/2;return l},wiggle:function(t){var e,r,n,i,a,o,s,l,c,u=t.length,f=t[0],h=f.length,p=[];for(p[0]=l=c=0,r=1;r&lt;h;++r){for(e=0,i=0;e&lt;u;++e)i+=t[e][r][1];for(e=0,a=0,s=f[r][0]-f[r-1][0];e&lt;u;++e){for(n=0,o=(t[e][r][1]-t[e][r-1][1])/(2*s);n&lt;e;++n)o+=(t[n][r][1]-t[n][r-1][1])/s;a+=o*t[e][r][1]}p[r]=l-=i?a/i*s:0,l&lt;c&amp;&amp;(c=l)}for(r=0;r&lt;h;++r)p[r]-=c;return p},expand:function(t){var e,r,n,i=t.length,a=t[0].length,o=1/i,s=[];for(r=0;r&lt;a;++r){for(e=0,n=0;e&lt;i;e++)n+=t[e][r][1];if(n)for(e=0;e&lt;i;e++)t[e][r][1]/=n;else for(e=0;e&lt;i;e++)t[e][r][1]=o}for(r=0;r&lt;a;++r)s[r]=0;return s},zero:Ya});function Ga(e){return t.range(e.length)}function Ya(t){for(var e=-1,r=t[0].length,n=[];++e&lt;r;)n[e]=0;return n}function Wa(t){for(var e,r=1,n=0,i=t[0][1],a=t.length;r&lt;a;++r)(e=t[r][1])&gt;i&amp;&amp;(n=r,i=e);return n}function Xa(t){return t.reduce(Za,0)}function Za(t,e){return t+e[1]}function Ja(t,e){return Ka(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Ka(t,e){for(var r=-1,n=+t[0],i=(t[1]-n)/e,a=[];++r&lt;=e;)a[r]=i*r+n;return a}function Qa(e){return[t.min(e),t.max(e)]}function $a(t,e){return t.value-e.value}function to(t,e){var r=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=r,r._pack_prev=e}function eo(t,e){t._pack_next=e,e._pack_prev=t}function ro(t,e){var r=e.x-t.x,n=e.y-t.y,i=t.r+e.r;return.999*i*i&gt;r*r+n*n}function no(t){if((e=t.children)&amp;&amp;(l=e.length)){var e,r,n,i,a,o,s,l,c=1/0,u=-1/0,f=1/0,h=-1/0;if(e.forEach(io),(r=e[0]).x=-r.r,r.y=0,x(r),l&gt;1&amp;&amp;((n=e[1]).x=n.r,n.y=0,x(n),l&gt;2))for(oo(r,n,i=e[2]),x(i),to(r,i),r._pack_prev=i,to(i,n),n=r._pack_next,a=3;a&lt;l;a++){oo(r,n,i=e[a]);var p=0,d=1,g=1;for(o=n._pack_next;o!==n;o=o._pack_next,d++)if(ro(o,i)){p=1;break}if(1==p)for(s=r._pack_prev;s!==o._pack_prev&amp;&amp;!ro(s,i);s=s._pack_prev,g++);p?(d&lt;g||d==g&amp;&amp;n.r&lt;r.r?eo(r,n=o):eo(r=s,n),a--):(to(r,i),n=i,x(i))}var m=(c+u)/2,v=(f+h)/2,y=0;for(a=0;a&lt;l;a++)(i=e[a]).x-=m,i.y-=v,y=Math.max(y,i.r+Math.sqrt(i.x*i.x+i.y*i.y));t.r=y,e.forEach(ao)}function x(t){c=Math.min(t.x-t.r,c),u=Math.max(t.x+t.r,u),f=Math.min(t.y-t.r,f),h=Math.max(t.y+t.r,h)}}function io(t){t._pack_next=t._pack_prev=t}function ao(t){delete t._pack_next,delete t._pack_prev}function oo(t,e,r){var n=t.r+r.r,i=e.x-t.x,a=e.y-t.y;if(n&amp;&amp;(i||a)){var o=e.r+r.r,s=i*i+a*a,l=.5+((n*=n)-(o*=o))/(2*s),c=Math.sqrt(Math.max(0,2*o*(n+s)-(n-=s)*n-o*o))/(2*s);r.x=t.x+l*i+c*a,r.y=t.y+l*a-c*i}else r.x=t.x+n,r.y=t.y}function so(t,e){return t.parent==e.parent?1:2}function lo(t){var e=t.children;return e.length?e[0]:t.t}function co(t){var e,r=t.children;return(e=r.length)?r[e-1]:t.t}function uo(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function fo(t,e,r){return t.a.parent===e.parent?t.a:r}function ho(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function po(t,e){var r=t.x+e[3],n=t.y+e[0],i=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return i&lt;0&amp;&amp;(r+=i/2,i=0),a&lt;0&amp;&amp;(n+=a/2,a=0),{x:r,y:n,dx:i,dy:a}}function go(t){var e=t[0],r=t[t.length-1];return e&lt;r?[e,r]:[r,e]}function mo(t){return t.rangeExtent?t.rangeExtent():go(t.range())}function vo(t,e,r,n){var i=r(t[0],t[1]),a=n(e[0],e[1]);return function(t){return a(i(t))}}function yo(t,e){var r,n=0,i=t.length-1,a=t[n],o=t[i];return o&lt;a&amp;&amp;(r=n,n=i,i=r,r=a,a=o,o=r),t[n]=e.floor(a),t[i]=e.ceil(o),t}function xo(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:bo}t.layout.histogram=function(){var e=!0,r=Number,n=Qa,i=Ja;function a(a,o){for(var s,l,c=[],u=a.map(r,this),f=n.call(this,u,o),h=i.call(this,f,u,o),p=(o=-1,u.length),d=h.length-1,g=e?1:1/p;++o&lt;d;)(s=c[o]=[]).dx=h[o+1]-(s.x=h[o]),s.y=0;if(d&gt;0)for(o=-1;++o&lt;p;)(l=u[o])&gt;=f[0]&amp;&amp;l&lt;=f[1]&amp;&amp;((s=c[t.bisect(h,l,1,d)-1]).y+=g,s.push(a[o]));return c}return a.value=function(t){return arguments.length?(r=t,a):r},a.range=function(t){return arguments.length?(n=de(t),a):n},a.bins=function(t){return arguments.length?(i=&quot;number&quot;==typeof t?function(e){return Ka(e,t)}:de(t),a):i},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},t.layout.pack=function(){var e,r=t.layout.hierarchy().sort($a),n=0,i=[1,1];function a(t,a){var o=r.call(this,t,a),s=o[0],l=i[0],c=i[1],u=null==e?Math.sqrt:&quot;function&quot;==typeof e?e:function(){return e};if(s.x=s.y=0,Oa(s,(function(t){t.r=+u(t.value)})),Oa(s,no),n){var f=n*(e?1:Math.max(2*s.r/l,2*s.r/c))/2;Oa(s,(function(t){t.r+=f})),Oa(s,no),Oa(s,(function(t){t.r-=f}))}return function t(e,r,n,i){var a=e.children;if(e.x=r+=i*e.x,e.y=n+=i*e.y,e.r*=i,a)for(var o=-1,s=a.length;++o&lt;s;)t(a[o],r,n,i)}(s,l/2,c/2,e?1:1/Math.max(2*s.r/l,2*s.r/c)),o}return a.size=function(t){return arguments.length?(i=t,a):i},a.radius=function(t){return arguments.length?(e=null==t||&quot;function&quot;==typeof t?t:+t,a):e},a.padding=function(t){return arguments.length?(n=+t,a):n},Pa(a,r)},t.layout.tree=function(){var e=t.layout.hierarchy().sort(null).value(null),r=so,n=[1,1],i=null;function a(t,a){var c=e.call(this,t,a),u=c[0],f=function(t){var e,r={A:null,children:[t]},n=[r];for(;null!=(e=n.pop());)for(var i,a=e.children,o=0,s=a.length;o&lt;s;++o)n.push((a[o]=i={_:a[o],parent:e,children:(i=a[o].children)&amp;&amp;i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return r.children[0]}(u);if(Oa(f,o),f.parent.m=-f.z,za(f,s),i)za(u,l);else{var h=u,p=u,d=u;za(u,(function(t){t.x&lt;h.x&amp;&amp;(h=t),t.x&gt;p.x&amp;&amp;(p=t),t.depth&gt;d.depth&amp;&amp;(d=t)}));var g=r(h,p)/2-h.x,m=n[0]/(p.x+r(p,h)/2+g),v=n[1]/(d.depth||1);za(u,(function(t){t.x=(t.x+g)*m,t.y=t.depth*v}))}return c}function o(t){var e=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(e.length){!function(t){var e,r=0,n=0,i=t.children,a=i.length;for(;--a&gt;=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(t);var a=(e[0].z+e[e.length-1].z)/2;i?(t.z=i.z+r(t._,i._),t.m=t.z-a):t.z=a}else i&amp;&amp;(t.z=i.z+r(t._,i._));t.parent.A=function(t,e,n){if(e){for(var i,a=t,o=t,s=e,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=co(s),a=lo(a),s&amp;&amp;a;)l=lo(l),(o=co(o)).a=t,(i=s.z+f-a.z-c+r(s._,a._))&gt;0&amp;&amp;(uo(fo(s,t,n),t,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&amp;&amp;!co(o)&amp;&amp;(o.t=s,o.m+=f-u),a&amp;&amp;!lo(l)&amp;&amp;(l.t=a,l.m+=c-h,n=t)}return n}(t,i,t.parent.A||n[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function l(t){t.x*=n[0],t.y=t.depth*n[1]}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t)?l:null,a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null==(n=t)?null:l,a):i?n:null},Pa(a,e)},t.layout.cluster=function(){var e=t.layout.hierarchy().sort(null).value(null),r=so,n=[1,1],i=!1;function a(a,o){var s,l=e.call(this,a,o),c=l[0],u=0;Oa(c,(function(e){var n=e.children;n&amp;&amp;n.length?(e.x=function(t){return t.reduce((function(t,e){return t+e.x}),0)/t.length}(n),e.y=function(e){return 1+t.max(e,(function(t){return t.y}))}(n)):(e.x=s?u+=r(e,s):0,e.y=0,s=e)}));var f=function t(e){var r=e.children;return r&amp;&amp;r.length?t(r[0]):e}(c),h=function t(e){var r,n=e.children;return n&amp;&amp;(r=n.length)?t(n[r-1]):e}(c),p=f.x-r(f,h)/2,d=h.x+r(h,f)/2;return Oa(c,i?function(t){t.x=(t.x-c.x)*n[0],t.y=(c.y-t.y)*n[1]}:function(t){t.x=(t.x-p)/(d-p)*n[0],t.y=(1-(c.y?t.y/c.y:1))*n[1]}),l}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t),a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null!=(n=t),a):i?n:null},Pa(a,e)},t.layout.treemap=function(){var e,r=t.layout.hierarchy(),n=Math.round,i=[1,1],a=null,o=ho,s=!1,l=&quot;squarify&quot;,c=.5*(1+Math.sqrt(5));function u(t,e){for(var r,n,i=-1,a=t.length;++i&lt;a;)n=(r=t[i]).value*(e&lt;0?0:e),r.area=isNaN(n)||n&lt;=0?0:n}function f(t){var e=t.children;if(e&amp;&amp;e.length){var r,n,i,a=o(t),s=[],c=e.slice(),h=1/0,g=&quot;slice&quot;===l?a.dx:&quot;dice&quot;===l?a.dy:&quot;slice-dice&quot;===l?1&amp;t.depth?a.dy:a.dx:Math.min(a.dx,a.dy);for(u(c,a.dx*a.dy/t.value),s.area=0;(i=c.length)&gt;0;)s.push(r=c[i-1]),s.area+=r.area,&quot;squarify&quot;!==l||(n=p(s,g))&lt;=h?(c.pop(),h=n):(s.area-=s.pop().area,d(s,g,a,!1),g=Math.min(a.dx,a.dy),s.length=s.area=0,h=1/0);s.length&amp;&amp;(d(s,g,a,!0),s.length=s.area=0),e.forEach(f)}}function h(t){var e=t.children;if(e&amp;&amp;e.length){var r,n=o(t),i=e.slice(),a=[];for(u(i,n.dx*n.dy/t.value),a.area=0;r=i.pop();)a.push(r),a.area+=r.area,null!=r.z&amp;&amp;(d(a,r.z?n.dx:n.dy,n,!i.length),a.length=a.area=0);e.forEach(h)}}function p(t,e){for(var r,n=t.area,i=0,a=1/0,o=-1,s=t.length;++o&lt;s;)(r=t[o].area)&amp;&amp;(r&lt;a&amp;&amp;(a=r),r&gt;i&amp;&amp;(i=r));return e*=e,(n*=n)?Math.max(e*i*c/n,n/(e*a*c)):1/0}function d(t,e,r,i){var a,o=-1,s=t.length,l=r.x,c=r.y,u=e?n(t.area/e):0;if(e==r.dx){for((i||u&gt;r.dy)&amp;&amp;(u=r.dy);++o&lt;s;)(a=t[o]).x=l,a.y=c,a.dy=u,l+=a.dx=Math.min(r.x+r.dx-l,u?n(a.area/u):0);a.z=!0,a.dx+=r.x+r.dx-l,r.y+=u,r.dy-=u}else{for((i||u&gt;r.dx)&amp;&amp;(u=r.dx);++o&lt;s;)(a=t[o]).x=l,a.y=c,a.dx=u,c+=a.dy=Math.min(r.y+r.dy-c,u?n(a.area/u):0);a.z=!1,a.dy+=r.y+r.dy-c,r.x+=u,r.dx-=u}}function g(t){var n=e||r(t),a=n[0];return a.x=a.y=0,a.value?(a.dx=i[0],a.dy=i[1]):a.dx=a.dy=0,e&amp;&amp;r.revalue(a),u([a],a.dx*a.dy/a.value),(e?h:f)(a),s&amp;&amp;(e=n),n}return g.size=function(t){return arguments.length?(i=t,g):i},g.padding=function(t){if(!arguments.length)return a;function e(e){var r=t.call(g,e,e.depth);return null==r?ho(e):po(e,&quot;number&quot;==typeof r?[r,r,r,r]:r)}function r(e){return po(e,t)}var n;return o=null==(a=t)?ho:&quot;function&quot;==(n=typeof t)?e:&quot;number&quot;===n?(t=[t,t,t,t],r):r,g},g.round=function(t){return arguments.length?(n=t?Math.round:Number,g):n!=Number},g.sticky=function(t){return arguments.length?(s=t,e=null,g):s},g.ratio=function(t){return arguments.length?(c=t,g):c},g.mode=function(t){return arguments.length?(l=t+&quot;&quot;,g):l},Pa(g,r)},t.random={normal:function(t,e){var r=arguments.length;return r&lt;2&amp;&amp;(e=1),r&lt;1&amp;&amp;(t=0),function(){var r,n,i;do{i=(r=2*Math.random()-1)*r+(n=2*Math.random()-1)*n}while(!i||i&gt;1);return t+e*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=t.random.normal.apply(t,arguments);return function(){return Math.exp(e())}},bates:function(e){var r=t.random.irwinHall(e);return function(){return r()/e}},irwinHall:function(t){return function(){for(var e=0,r=0;r&lt;t;r++)e+=Math.random();return e}}},t.scale={};var bo={floor:L,ceil:L};function _o(e,r,n,i){var a=[],o=[],s=0,l=Math.min(e.length,r.length)-1;for(e[l]&lt;e[0]&amp;&amp;(e=e.slice().reverse(),r=r.slice().reverse());++s&lt;=l;)a.push(n(e[s-1],e[s])),o.push(i(r[s-1],r[s]));return function(r){var n=t.bisect(e,r,1,l)-1;return o[n](a[n](r))}}function wo(e,r){return t.rebind(e,r,&quot;range&quot;,&quot;rangeRound&quot;,&quot;interpolate&quot;,&quot;clamp&quot;)}function To(t,e){return yo(t,xo(ko(t,e)[2])),yo(t,xo(ko(t,e)[2])),t}function ko(t,e){null==e&amp;&amp;(e=10);var r=go(t),n=r[1]-r[0],i=Math.pow(10,Math.floor(Math.log(n/e)/Math.LN10)),a=e/n*i;return a&lt;=.15?i*=10:a&lt;=.35?i*=5:a&lt;=.75&amp;&amp;(i*=2),r[0]=Math.ceil(r[0]/i)*i,r[1]=Math.floor(r[1]/i)*i+.5*i,r[2]=i,r}function Mo(e,r){return t.range.apply(t,ko(e,r))}function Ao(e,r,n){var i=ko(e,r);if(n){var a=Ce.exec(n);if(a.shift(),&quot;s&quot;===a[8]){var o=t.formatPrefix(Math.max(y(i[0]),y(i[1])));return a[7]||(a[7]=&quot;.&quot;+Eo(o.scale(i[2]))),a[8]=&quot;f&quot;,n=t.format(a.join(&quot;&quot;)),function(t){return n(o.scale(t))+o.symbol}}a[7]||(a[7]=&quot;.&quot;+function(t,e){var r=Eo(e[2]);return t in So?Math.abs(r-Eo(Math.max(y(e[0]),y(e[1]))))+ +(&quot;e&quot;!==t):r-2*(&quot;%&quot;===t)}(a[8],i)),n=a.join(&quot;&quot;)}else n=&quot;,.&quot;+Eo(i[2])+&quot;f&quot;;return t.format(n)}t.scale.linear=function(){return function t(e,r,n,i){var a,o;function s(){var t=Math.min(e.length,r.length)&gt;2?_o:vo,s=i?wa:_a;return a=t(e,r,s,n),o=t(r,e,s,$i),l}function l(t){return a(t)}return l.invert=function(t){return o(t)},l.domain=function(t){return arguments.length?(e=t.map(Number),s()):e},l.range=function(t){return arguments.length?(r=t,s()):r},l.rangeRound=function(t){return l.range(t).interpolate(da)},l.clamp=function(t){return arguments.length?(i=t,s()):i},l.interpolate=function(t){return arguments.length?(n=t,s()):n},l.ticks=function(t){return Mo(e,t)},l.tickFormat=function(t,r){return Ao(e,t,r)},l.nice=function(t){return To(e,t),s()},l.copy=function(){return t(e,r,n,i)},s()}([0,1],[0,1],$i,!1)};var So={s:1,g:1,p:1,r:1,e:1};function Eo(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}t.scale.log=function(){return function e(r,n,i,a){function o(t){return(i?Math.log(t&lt;0?0:t):-Math.log(t&gt;0?0:-t))/Math.log(n)}function s(t){return i?Math.pow(n,t):-Math.pow(n,-t)}function l(t){return r(o(t))}return l.invert=function(t){return s(r.invert(t))},l.domain=function(t){return arguments.length?(i=t[0]&gt;=0,r.domain((a=t.map(Number)).map(o)),l):a},l.base=function(t){return arguments.length?(n=+t,r.domain(a.map(o)),l):n},l.nice=function(){var t=yo(a.map(o),i?Math:Lo);return r.domain(t),a=t.map(s),l},l.ticks=function(){var t=go(a),e=[],r=t[0],l=t[1],c=Math.floor(o(r)),u=Math.ceil(o(l)),f=n%1?2:n;if(isFinite(u-c)){if(i){for(;c&lt;u;c++)for(var h=1;h&lt;f;h++)e.push(s(c)*h);e.push(s(c))}else for(e.push(s(c));c++&lt;u;)for(h=f-1;h&gt;0;h--)e.push(s(c)*h);for(c=0;e[c]&lt;r;c++);for(u=e.length;e[u-1]&gt;l;u--);e=e.slice(c,u)}return e},l.tickFormat=function(e,r){if(!arguments.length)return Co;arguments.length&lt;2?r=Co:&quot;function&quot;!=typeof r&amp;&amp;(r=t.format(r));var i=Math.max(1,n*e/l.ticks().length);return function(t){var e=t/s(Math.round(o(t)));return e*n&lt;n-.5&amp;&amp;(e*=n),e&lt;=i?r(t):&quot;&quot;}},l.copy=function(){return e(r.copy(),n,i,a)},wo(l,r)}(t.scale.linear().domain([0,1]),10,!0,[1,10])};var Co=t.format(&quot;.0e&quot;),Lo={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function Io(t){return function(e){return e&lt;0?-Math.pow(-e,t):Math.pow(e,t)}}t.scale.pow=function(){return function t(e,r,n){var i=Io(r),a=Io(1/r);function o(t){return e(i(t))}return o.invert=function(t){return a(e.invert(t))},o.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(i)),o):n},o.ticks=function(t){return Mo(n,t)},o.tickFormat=function(t,e){return Ao(n,t,e)},o.nice=function(t){return o.domain(To(n,t))},o.exponent=function(t){return arguments.length?(i=Io(r=t),a=Io(1/r),e.domain(n.map(i)),o):r},o.copy=function(){return t(e.copy(),r,n)},wo(o,e)}(t.scale.linear(),1,[0,1])},t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return function e(r,n){var i,a,o;function s(t){return a[((i.get(t)||(&quot;range&quot;===n.t?i.set(t,r.push(t)):NaN))-1)%a.length]}function l(e,n){return t.range(r.length).map((function(t){return e+n*t}))}return s.domain=function(t){if(!arguments.length)return r;r=[],i=new _;for(var e,a=-1,o=t.length;++a&lt;o;)i.has(e=t[a])||i.set(e,r.push(e));return s[n.t].apply(s,n.a)},s.range=function(t){return arguments.length?(a=t,o=0,n={t:&quot;range&quot;,a:arguments},s):a},s.rangePoints=function(t,e){arguments.length&lt;2&amp;&amp;(e=0);var i=t[0],c=t[1],u=r.length&lt;2?(i=(i+c)/2,0):(c-i)/(r.length-1+e);return a=l(i+u*e/2,u),o=0,n={t:&quot;rangePoints&quot;,a:arguments},s},s.rangeRoundPoints=function(t,e){arguments.length&lt;2&amp;&amp;(e=0);var i=t[0],c=t[1],u=r.length&lt;2?(i=c=Math.round((i+c)/2),0):(c-i)/(r.length-1+e)|0;return a=l(i+Math.round(u*e/2+(c-i-(r.length-1+e)*u)/2),u),o=0,n={t:&quot;rangeRoundPoints&quot;,a:arguments},s},s.rangeBands=function(t,e,i){arguments.length&lt;2&amp;&amp;(e=0),arguments.length&lt;3&amp;&amp;(i=e);var c=t[1]&lt;t[0],u=t[c-0],f=t[1-c],h=(f-u)/(r.length-e+2*i);return a=l(u+h*i,h),c&amp;&amp;a.reverse(),o=h*(1-e),n={t:&quot;rangeBands&quot;,a:arguments},s},s.rangeRoundBands=function(t,e,i){arguments.length&lt;2&amp;&amp;(e=0),arguments.length&lt;3&amp;&amp;(i=e);var c=t[1]&lt;t[0],u=t[c-0],f=t[1-c],h=Math.floor((f-u)/(r.length-e+2*i));return a=l(u+Math.round((f-u-(r.length-e)*h)/2),h),c&amp;&amp;a.reverse(),o=Math.round(h*(1-e)),n={t:&quot;rangeRoundBands&quot;,a:arguments},s},s.rangeBand=function(){return o},s.rangeExtent=function(){return go(n.a[0])},s.copy=function(){return e(r,n)},s.domain(r)}([],{t:&quot;range&quot;,a:[[]]})},t.scale.category10=function(){return t.scale.ordinal().range(Po)},t.scale.category20=function(){return t.scale.ordinal().range(zo)},t.scale.category20b=function(){return t.scale.ordinal().range(Oo)},t.scale.category20c=function(){return t.scale.ordinal().range(Do)};var Po=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(ae),zo=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(ae),Oo=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(ae),Do=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(ae);function Ro(){return 0}t.scale.quantile=function(){return function e(r,n){var i;function a(){var e=0,a=n.length;for(i=[];++e&lt;a;)i[e-1]=t.quantile(r,e/a);return o}function o(e){if(!isNaN(e=+e))return n[t.bisect(i,e)]}return o.domain=function(t){return arguments.length?(r=t.map(p).filter(d).sort(h),a()):r},o.range=function(t){return arguments.length?(n=t,a()):n},o.quantiles=function(){return i},o.invertExtent=function(t){return(t=n.indexOf(t))&lt;0?[NaN,NaN]:[t&gt;0?i[t-1]:r[0],t&lt;i.length?i[t]:r[r.length-1]]},o.copy=function(){return e(r,n)},a()}([],[])},t.scale.quantize=function(){return function t(e,r,n){var i,a;function o(t){return n[Math.max(0,Math.min(a,Math.floor(i*(t-e))))]}function s(){return i=n.length/(r-e),a=n.length-1,o}return o.domain=function(t){return arguments.length?(e=+t[0],r=+t[t.length-1],s()):[e,r]},o.range=function(t){return arguments.length?(n=t,s()):n},o.invertExtent=function(t){return[t=(t=n.indexOf(t))&lt;0?NaN:t/i+e,t+1/i]},o.copy=function(){return t(e,r,n)},s()}(0,1,[0,1])},t.scale.threshold=function(){return function e(r,n){function i(e){if(e&lt;=e)return n[t.bisect(r,e)]}return i.domain=function(t){return arguments.length?(r=t,i):r},i.range=function(t){return arguments.length?(n=t,i):n},i.invertExtent=function(t){return t=n.indexOf(t),[r[t-1],r[t]]},i.copy=function(){return e(r,n)},i}([.5],[0,1])},t.scale.identity=function(){return function t(e){function r(t){return+t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=t.map(r),r):e},r.ticks=function(t){return Mo(e,t)},r.tickFormat=function(t,r){return Ao(e,t,r)},r.copy=function(){return t(e)},r}([0,1])},t.svg={},t.svg.arc=function(){var t=Bo,e=No,r=Ro,n=Fo,i=jo,a=Uo,o=Vo;function s(){var s=Math.max(0,+t.apply(this,arguments)),c=Math.max(0,+e.apply(this,arguments)),u=i.apply(this,arguments)-Ct,f=a.apply(this,arguments)-Ct,h=Math.abs(f-u),p=u&gt;f?0:1;if(c&lt;s&amp;&amp;(d=c,c=s,s=d),h&gt;=Et)return l(c,p)+(s?l(s,1-p):&quot;&quot;)+&quot;Z&quot;;var d,g,m,v,y,x,b,_,w,T,k,M,A=0,S=0,E=[];if((v=(+o.apply(this,arguments)||0)/2)&amp;&amp;(m=n===Fo?Math.sqrt(s*s+c*c):+n.apply(this,arguments),p||(S*=-1),c&amp;&amp;(S=Dt(m/c*Math.sin(v))),s&amp;&amp;(A=Dt(m/s*Math.sin(v)))),c){y=c*Math.cos(u+S),x=c*Math.sin(u+S),b=c*Math.cos(f-S),_=c*Math.sin(f-S);var C=Math.abs(f-u-2*S)&lt;=At?0:1;if(S&amp;&amp;qo(y,x,b,_)===p^C){var L=(u+f)/2;y=c*Math.cos(L),x=c*Math.sin(L),b=_=null}}else y=x=0;if(s){w=s*Math.cos(f-A),T=s*Math.sin(f-A),k=s*Math.cos(u+A),M=s*Math.sin(u+A);var I=Math.abs(u-f+2*A)&lt;=At?0:1;if(A&amp;&amp;qo(w,T,k,M)===1-p^I){var P=(u+f)/2;w=s*Math.cos(P),T=s*Math.sin(P),k=M=null}}else w=T=0;if(h&gt;kt&amp;&amp;(d=Math.min(Math.abs(c-s)/2,+r.apply(this,arguments)))&gt;.001){g=s&lt;c^p?0:1;var z=d,O=d;if(h&lt;At){var D=null==k?[w,T]:null==b?[y,x]:li([y,x],[k,M],[b,_],[w,T]),R=y-D[0],F=x-D[1],B=b-D[0],N=_-D[1],j=1/Math.sin(Math.acos((R*B+F*N)/(Math.sqrt(R*R+F*F)*Math.sqrt(B*B+N*N)))/2),U=Math.sqrt(D[0]*D[0]+D[1]*D[1]);O=Math.min(d,(s-U)/(j-1)),z=Math.min(d,(c-U)/(j+1))}if(null!=b){var V=Ho(null==k?[w,T]:[k,M],[y,x],c,z,p),q=Ho([b,_],[w,T],c,z,p);d===z?E.push(&quot;M&quot;,V[0],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,g,&quot; &quot;,V[1],&quot;A&quot;,c,&quot;,&quot;,c,&quot; 0 &quot;,1-p^qo(V[1][0],V[1][1],q[1][0],q[1][1]),&quot;,&quot;,p,&quot; &quot;,q[1],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,g,&quot; &quot;,q[0]):E.push(&quot;M&quot;,V[0],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 1,&quot;,g,&quot; &quot;,q[0])}else E.push(&quot;M&quot;,y,&quot;,&quot;,x);if(null!=k){var H=Ho([y,x],[k,M],s,-O,p),G=Ho([w,T],null==b?[y,x]:[b,_],s,-O,p);d===O?E.push(&quot;L&quot;,G[0],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,G[1],&quot;A&quot;,s,&quot;,&quot;,s,&quot; 0 &quot;,p^qo(G[1][0],G[1][1],H[1][0],H[1][1]),&quot;,&quot;,1-p,&quot; &quot;,H[1],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,H[0]):E.push(&quot;L&quot;,G[0],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,H[0])}else E.push(&quot;L&quot;,w,&quot;,&quot;,T)}else E.push(&quot;M&quot;,y,&quot;,&quot;,x),null!=b&amp;&amp;E.push(&quot;A&quot;,c,&quot;,&quot;,c,&quot; 0 &quot;,C,&quot;,&quot;,p,&quot; &quot;,b,&quot;,&quot;,_),E.push(&quot;L&quot;,w,&quot;,&quot;,T),null!=k&amp;&amp;E.push(&quot;A&quot;,s,&quot;,&quot;,s,&quot; 0 &quot;,I,&quot;,&quot;,1-p,&quot; &quot;,k,&quot;,&quot;,M);return E.push(&quot;Z&quot;),E.join(&quot;&quot;)}function l(t,e){return&quot;M0,&quot;+t+&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 1,&quot;+e+&quot; 0,&quot;+-t+&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 1,&quot;+e+&quot; 0,&quot;+t}return s.innerRadius=function(e){return arguments.length?(t=de(e),s):t},s.outerRadius=function(t){return arguments.length?(e=de(t),s):e},s.cornerRadius=function(t){return arguments.length?(r=de(t),s):r},s.padRadius=function(t){return arguments.length?(n=t==Fo?Fo:de(t),s):n},s.startAngle=function(t){return arguments.length?(i=de(t),s):i},s.endAngle=function(t){return arguments.length?(a=de(t),s):a},s.padAngle=function(t){return arguments.length?(o=de(t),s):o},s.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Ct;return[Math.cos(n)*r,Math.sin(n)*r]},s};var Fo=&quot;auto&quot;;function Bo(t){return t.innerRadius}function No(t){return t.outerRadius}function jo(t){return t.startAngle}function Uo(t){return t.endAngle}function Vo(t){return t&amp;&amp;t.padAngle}function qo(t,e,r,n){return(t-r)*e-(e-n)*t&gt;0?0:1}function Ho(t,e,r,n,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?n:-n)/Math.sqrt(a*a+o*o),l=s*o,c=-s*a,u=t[0]+l,f=t[1]+c,h=e[0]+l,p=e[1]+c,d=(u+h)/2,g=(f+p)/2,m=h-u,v=p-f,y=m*m+v*v,x=r-n,b=u*p-h*f,_=(v&lt;0?-1:1)*Math.sqrt(Math.max(0,x*x*y-b*b)),w=(b*v-m*_)/y,T=(-b*m-v*_)/y,k=(b*v+m*_)/y,M=(-b*m+v*_)/y,A=w-d,S=T-g,E=k-d,C=M-g;return A*A+S*S&gt;E*E+C*C&amp;&amp;(w=k,T=M),[[w-l,T-c],[w*r/x,T*r/x]]}function Go(t){var e=ri,r=ni,n=Yr,i=Wo,a=i.key,o=.7;function s(a){var s,l=[],c=[],u=-1,f=a.length,h=de(e),p=de(r);function d(){l.push(&quot;M&quot;,i(t(c),o))}for(;++u&lt;f;)n.call(this,s=a[u],u)?c.push([+h.call(this,s,u),+p.call(this,s,u)]):c.length&amp;&amp;(d(),c=[]);return c.length&amp;&amp;d(),l.length?l.join(&quot;&quot;):null}return s.x=function(t){return arguments.length?(e=t,s):e},s.y=function(t){return arguments.length?(r=t,s):r},s.defined=function(t){return arguments.length?(n=t,s):n},s.interpolate=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?i=t:(i=Yo.get(t)||Wo).key,s):a},s.tension=function(t){return arguments.length?(o=t,s):o},s}t.svg.line=function(){return Go(L)};var Yo=t.map({linear:Wo,&quot;linear-closed&quot;:Xo,step:function(t){var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];for(;++e&lt;r;)i.push(&quot;H&quot;,(n[0]+(n=t[e])[0])/2,&quot;V&quot;,n[1]);r&gt;1&amp;&amp;i.push(&quot;H&quot;,n[0]);return i.join(&quot;&quot;)},&quot;step-before&quot;:Zo,&quot;step-after&quot;:Jo,basis:$o,&quot;basis-open&quot;:function(t){if(t.length&lt;4)return Wo(t);var e,r=[],n=-1,i=t.length,a=[0],o=[0];for(;++n&lt;3;)e=t[n],a.push(e[0]),o.push(e[1]);r.push(ts(ns,a)+&quot;,&quot;+ts(ns,o)),--n;for(;++n&lt;i;)e=t[n],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),is(r,a,o);return r.join(&quot;&quot;)},&quot;basis-closed&quot;:function(t){var e,r,n=-1,i=t.length,a=i+4,o=[],s=[];for(;++n&lt;4;)r=t[n%i],o.push(r[0]),s.push(r[1]);e=[ts(ns,o),&quot;,&quot;,ts(ns,s)],--n;for(;++n&lt;a;)r=t[n%i],o.shift(),o.push(r[0]),s.shift(),s.push(r[1]),is(e,o,s);return e.join(&quot;&quot;)},bundle:function(t,e){var r=t.length-1;if(r)for(var n,i,a=t[0][0],o=t[0][1],s=t[r][0]-a,l=t[r][1]-o,c=-1;++c&lt;=r;)n=t[c],i=c/r,n[0]=e*n[0]+(1-e)*(a+i*s),n[1]=e*n[1]+(1-e)*(o+i*l);return $o(t)},cardinal:function(t,e){return t.length&lt;3?Wo(t):t[0]+Ko(t,Qo(t,e))},&quot;cardinal-open&quot;:function(t,e){return t.length&lt;4?Wo(t):t[1]+Ko(t.slice(1,-1),Qo(t,e))},&quot;cardinal-closed&quot;:function(t,e){return t.length&lt;3?Xo(t):t[0]+Ko((t.push(t[0]),t),Qo([t[t.length-2]].concat(t,[t[1]]),e))},monotone:function(t){return t.length&lt;3?Wo(t):t[0]+Ko(t,function(t){var e,r,n,i,a=[],o=function(t){var e=0,r=t.length-1,n=[],i=t[0],a=t[1],o=n[0]=as(i,a);for(;++e&lt;r;)n[e]=(o+(o=as(i=a,a=t[e+1])))/2;return n[e]=o,n}(t),s=-1,l=t.length-1;for(;++s&lt;l;)e=as(t[s],t[s+1]),y(e)&lt;kt?o[s]=o[s+1]=0:(r=o[s]/e,n=o[s+1]/e,(i=r*r+n*n)&gt;9&amp;&amp;(i=3*e/Math.sqrt(i),o[s]=i*r,o[s+1]=i*n));s=-1;for(;++s&lt;=l;)i=(t[Math.min(l,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}(t))}});function Wo(t){return t.length&gt;1?t.join(&quot;L&quot;):t+&quot;Z&quot;}function Xo(t){return t.join(&quot;L&quot;)+&quot;Z&quot;}function Zo(t){for(var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];++e&lt;r;)i.push(&quot;V&quot;,(n=t[e])[1],&quot;H&quot;,n[0]);return i.join(&quot;&quot;)}function Jo(t){for(var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];++e&lt;r;)i.push(&quot;H&quot;,(n=t[e])[0],&quot;V&quot;,n[1]);return i.join(&quot;&quot;)}function Ko(t,e){if(e.length&lt;1||t.length!=e.length&amp;&amp;t.length!=e.length+2)return Wo(t);var r=t.length!=e.length,n=&quot;&quot;,i=t[0],a=t[1],o=e[0],s=o,l=1;if(r&amp;&amp;(n+=&quot;Q&quot;+(a[0]-2*o[0]/3)+&quot;,&quot;+(a[1]-2*o[1]/3)+&quot;,&quot;+a[0]+&quot;,&quot;+a[1],i=t[1],l=2),e.length&gt;1){s=e[1],a=t[l],l++,n+=&quot;C&quot;+(i[0]+o[0])+&quot;,&quot;+(i[1]+o[1])+&quot;,&quot;+(a[0]-s[0])+&quot;,&quot;+(a[1]-s[1])+&quot;,&quot;+a[0]+&quot;,&quot;+a[1];for(var c=2;c&lt;e.length;c++,l++)a=t[l],s=e[c],n+=&quot;S&quot;+(a[0]-s[0])+&quot;,&quot;+(a[1]-s[1])+&quot;,&quot;+a[0]+&quot;,&quot;+a[1]}if(r){var u=t[l];n+=&quot;Q&quot;+(a[0]+2*s[0]/3)+&quot;,&quot;+(a[1]+2*s[1]/3)+&quot;,&quot;+u[0]+&quot;,&quot;+u[1]}return n}function Qo(t,e){for(var r,n=[],i=(1-e)/2,a=t[0],o=t[1],s=1,l=t.length;++s&lt;l;)r=a,a=o,o=t[s],n.push([i*(o[0]-r[0]),i*(o[1]-r[1])]);return n}function $o(t){if(t.length&lt;3)return Wo(t);var e=1,r=t.length,n=t[0],i=n[0],a=n[1],o=[i,i,i,(n=t[1])[0]],s=[a,a,a,n[1]],l=[i,&quot;,&quot;,a,&quot;L&quot;,ts(ns,o),&quot;,&quot;,ts(ns,s)];for(t.push(t[r-1]);++e&lt;=r;)n=t[e],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),is(l,o,s);return t.pop(),l.push(&quot;L&quot;,n),l.join(&quot;&quot;)}function ts(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}Yo.forEach((function(t,e){e.key=t,e.closed=/-closed$/.test(t)}));var es=[0,2/3,1/3,0],rs=[0,1/3,2/3,0],ns=[0,1/6,2/3,1/6];function is(t,e,r){t.push(&quot;C&quot;,ts(es,e),&quot;,&quot;,ts(es,r),&quot;,&quot;,ts(rs,e),&quot;,&quot;,ts(rs,r),&quot;,&quot;,ts(ns,e),&quot;,&quot;,ts(ns,r))}function as(t,e){return(e[1]-t[1])/(e[0]-t[0])}function os(t){for(var e,r,n,i=-1,a=t.length;++i&lt;a;)r=(e=t[i])[0],n=e[1]-Ct,e[0]=r*Math.cos(n),e[1]=r*Math.sin(n);return t}function ss(t){var e=ri,r=ri,n=0,i=ni,a=Yr,o=Wo,s=o.key,l=o,c=&quot;L&quot;,u=.7;function f(s){var f,h,p,d=[],g=[],m=[],v=-1,y=s.length,x=de(e),b=de(n),_=e===r?function(){return h}:de(r),w=n===i?function(){return p}:de(i);function T(){d.push(&quot;M&quot;,o(t(m),u),c,l(t(g.reverse()),u),&quot;Z&quot;)}for(;++v&lt;y;)a.call(this,f=s[v],v)?(g.push([h=+x.call(this,f,v),p=+b.call(this,f,v)]),m.push([+_.call(this,f,v),+w.call(this,f,v)])):g.length&amp;&amp;(T(),g=[],m=[]);return g.length&amp;&amp;T(),d.length?d.join(&quot;&quot;):null}return f.x=function(t){return arguments.length?(e=r=t,f):r},f.x0=function(t){return arguments.length?(e=t,f):e},f.x1=function(t){return arguments.length?(r=t,f):r},f.y=function(t){return arguments.length?(n=i=t,f):i},f.y0=function(t){return arguments.length?(n=t,f):n},f.y1=function(t){return arguments.length?(i=t,f):i},f.defined=function(t){return arguments.length?(a=t,f):a},f.interpolate=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?o=t:(o=Yo.get(t)||Wo).key,l=o.reverse||o,c=o.closed?&quot;M&quot;:&quot;L&quot;,f):s},f.tension=function(t){return arguments.length?(u=t,f):u},f}function ls(t){return t.radius}function cs(t){return[t.x,t.y]}function us(t){return function(){var e=t.apply(this,arguments),r=e[0],n=e[1]-Ct;return[r*Math.cos(n),r*Math.sin(n)]}}function fs(){return 64}function hs(){return&quot;circle&quot;}function ps(t){var e=Math.sqrt(t/At);return&quot;M0,&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,&quot;+-e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,&quot;+e+&quot;Z&quot;}t.svg.line.radial=function(){var t=Go(os);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},Zo.reverse=Jo,Jo.reverse=Zo,t.svg.area=function(){return ss(L)},t.svg.area.radial=function(){var t=ss(os);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},t.svg.chord=function(){var t=Vn,e=qn,r=ls,n=jo,i=Uo;function a(r,n){var i,a,c=o(this,t,r,n),u=o(this,e,r,n);return&quot;M&quot;+c.p0+s(c.r,c.p1,c.a1-c.a0)+(a=u,((i=c).a0==a.a0&amp;&amp;i.a1==a.a1?l(c.r,c.p1,c.r,c.p0):l(c.r,c.p1,u.r,u.p0)+s(u.r,u.p1,u.a1-u.a0)+l(u.r,u.p1,c.r,c.p0))+&quot;Z&quot;)}function o(t,e,a,o){var s=e.call(t,a,o),l=r.call(t,s,o),c=n.call(t,s,o)-Ct,u=i.call(t,s,o)-Ct;return{r:l,a0:c,a1:u,p0:[l*Math.cos(c),l*Math.sin(c)],p1:[l*Math.cos(u),l*Math.sin(u)]}}function s(t,e,r){return&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 &quot;+ +(r&gt;At)+&quot;,1 &quot;+e}function l(t,e,r,n){return&quot;Q 0,0 &quot;+n}return a.radius=function(t){return arguments.length?(r=de(t),a):r},a.source=function(e){return arguments.length?(t=de(e),a):t},a.target=function(t){return arguments.length?(e=de(t),a):e},a.startAngle=function(t){return arguments.length?(n=de(t),a):n},a.endAngle=function(t){return arguments.length?(i=de(t),a):i},a},t.svg.diagonal=function(){var t=Vn,e=qn,r=cs;function n(n,i){var a=t.call(this,n,i),o=e.call(this,n,i),s=(a.y+o.y)/2,l=[a,{x:a.x,y:s},{x:o.x,y:s},o];return&quot;M&quot;+(l=l.map(r))[0]+&quot;C&quot;+l[1]+&quot; &quot;+l[2]+&quot; &quot;+l[3]}return n.source=function(e){return arguments.length?(t=de(e),n):t},n.target=function(t){return arguments.length?(e=de(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},t.svg.diagonal.radial=function(){var e=t.svg.diagonal(),r=cs,n=e.projection;return e.projection=function(t){return arguments.length?n(us(r=t)):r},e},t.svg.symbol=function(){var t=hs,e=fs;function r(r,n){return(ds.get(t.call(this,r,n))||ps)(e.call(this,r,n))}return r.type=function(e){return arguments.length?(t=de(e),r):t},r.size=function(t){return arguments.length?(e=de(t),r):e},r};var ds=t.map({circle:ps,cross:function(t){var e=Math.sqrt(t/5)/2;return&quot;M&quot;+-3*e+&quot;,&quot;+-e+&quot;H&quot;+-e+&quot;V&quot;+-3*e+&quot;H&quot;+e+&quot;V&quot;+-e+&quot;H&quot;+3*e+&quot;V&quot;+e+&quot;H&quot;+e+&quot;V&quot;+3*e+&quot;H&quot;+-e+&quot;V&quot;+e+&quot;H&quot;+-3*e+&quot;Z&quot;},diamond:function(t){var e=Math.sqrt(t/(2*ms)),r=e*ms;return&quot;M0,&quot;+-e+&quot;L&quot;+r+&quot;,0 0,&quot;+e+&quot; &quot;+-r+&quot;,0Z&quot;},square:function(t){var e=Math.sqrt(t)/2;return&quot;M&quot;+-e+&quot;,&quot;+-e+&quot;L&quot;+e+&quot;,&quot;+-e+&quot; &quot;+e+&quot;,&quot;+e+&quot; &quot;+-e+&quot;,&quot;+e+&quot;Z&quot;},&quot;triangle-down&quot;:function(t){var e=Math.sqrt(t/gs),r=e*gs/2;return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,&quot;+-r+&quot; &quot;+-e+&quot;,&quot;+-r+&quot;Z&quot;},&quot;triangle-up&quot;:function(t){var e=Math.sqrt(t/gs),r=e*gs/2;return&quot;M0,&quot;+-r+&quot;L&quot;+e+&quot;,&quot;+r+&quot; &quot;+-e+&quot;,&quot;+r+&quot;Z&quot;}});t.svg.symbolTypes=ds.keys();var gs=Math.sqrt(3),ms=Math.tan(30*Lt);Y.transition=function(t){for(var e,r,n=bs||++Ts,i=As(t),a=[],o=_s||{time:Date.now(),ease:ca,delay:0,duration:250},s=-1,l=this.length;++s&lt;l;){a.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u&lt;f;)(r=c[u])&amp;&amp;Ss(r,u,i,n,o),e.push(r)}return xs(a,i,n)},Y.interrupt=function(t){return this.each(null==t?vs:ys(As(t)))};var vs=ys(As());function ys(t){return function(){var e,r,n;(e=this[t])&amp;&amp;(n=e[r=e.active])&amp;&amp;(n.timer.c=null,n.timer.t=NaN,--e.count?delete e[r]:delete this[t],e.active+=.5,n.event&amp;&amp;n.event.interrupt.call(this,this.__data__,n.index))}}function xs(t,e,r){return U(t,ws),t.namespace=e,t.id=r,t}var bs,_s,ws=[],Ts=0;function ks(t,e,r,n){var i=t.id,a=t.namespace;return ut(t,&quot;function&quot;==typeof r?function(t,o,s){t[a][i].tween.set(e,n(r.call(t,t.__data__,o,s)))}:(r=n(r),function(t){t[a][i].tween.set(e,r)}))}function Ms(t){return null==t&amp;&amp;(t=&quot;&quot;),function(){this.textContent=t}}function As(t){return null==t?&quot;__transition__&quot;:&quot;__transition_&quot;+t+&quot;__&quot;}function Ss(t,e,r,n,i){var a,o,s,l,c,u=t[r]||(t[r]={active:0,count:0}),f=u[n];function h(r){var i=u.active,h=u[i];for(var d in h&amp;&amp;(h.timer.c=null,h.timer.t=NaN,--u.count,delete u[i],h.event&amp;&amp;h.event.interrupt.call(t,t.__data__,h.index)),u)if(+d&lt;n){var g=u[d];g.timer.c=null,g.timer.t=NaN,--u.count,delete u[d]}o.c=p,we((function(){return o.c&amp;&amp;p(r||1)&amp;&amp;(o.c=null,o.t=NaN),1}),0,a),u.active=n,f.event&amp;&amp;f.event.start.call(t,t.__data__,e),c=[],f.tween.forEach((function(r,n){(n=n.call(t,t.__data__,e))&amp;&amp;c.push(n)})),l=f.ease,s=f.duration}function p(i){for(var a=i/s,o=l(a),h=c.length;h&gt;0;)c[--h].call(t,o);if(a&gt;=1)return f.event&amp;&amp;f.event.end.call(t,t.__data__,e),--u.count?delete u[n]:delete t[r],1}f||(a=i.time,o=we((function(t){var e=f.delay;if(o.t=e+a,e&lt;=t)return h(t-e);o.c=h}),0,a),f=u[n]={tween:new _,time:a,timer:o,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++u.count)}ws.call=Y.call,ws.empty=Y.empty,ws.node=Y.node,ws.size=Y.size,t.transition=function(e,r){return e&amp;&amp;e.transition?bs?e.transition(r):e:t.selection().transition(e)},t.transition.prototype=ws,ws.select=function(t){var e,r,n,i=this.id,a=this.namespace,o=[];t=W(t);for(var s=-1,l=this.length;++s&lt;l;){o.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u&lt;f;)(n=c[u])&amp;&amp;(r=t.call(n,n.__data__,u,s))?(&quot;__data__&quot;in n&amp;&amp;(r.__data__=n.__data__),Ss(r,u,a,i,n[a][i]),e.push(r)):e.push(null)}return xs(o,a,i)},ws.selectAll=function(t){var e,r,n,i,a,o=this.id,s=this.namespace,l=[];t=X(t);for(var c=-1,u=this.length;++c&lt;u;)for(var f=this[c],h=-1,p=f.length;++h&lt;p;)if(n=f[h]){a=n[s][o],r=t.call(n,n.__data__,h,c),l.push(e=[]);for(var d=-1,g=r.length;++d&lt;g;)(i=r[d])&amp;&amp;Ss(i,d,s,o,a),e.push(i)}return xs(l,s,o)},ws.filter=function(t){var e,r,n=[];&quot;function&quot;!=typeof t&amp;&amp;(t=lt(t));for(var i=0,a=this.length;i&lt;a;i++){n.push(e=[]);for(var o,s=0,l=(o=this[i]).length;s&lt;l;s++)(r=o[s])&amp;&amp;t.call(r,r.__data__,s,i)&amp;&amp;e.push(r)}return xs(n,this.namespace,this.id)},ws.tween=function(t,e){var r=this.id,n=this.namespace;return arguments.length&lt;2?this.node()[n][r].tween.get(t):ut(this,null==e?function(e){e[n][r].tween.remove(t)}:function(i){i[n][r].tween.set(t,e)})},ws.attr=function(e,r){if(arguments.length&lt;2){for(r in e)this.attr(r,e[r]);return this}var n=&quot;transform&quot;==e?ba:$i,i=t.ns.qualify(e);function a(){this.removeAttribute(i)}function o(){this.removeAttributeNS(i.space,i.local)}function s(t){return null==t?a:(t+=&quot;&quot;,function(){var e,r=this.getAttribute(i);return r!==t&amp;&amp;(e=n(r,t),function(t){this.setAttribute(i,e(t))})})}function l(t){return null==t?o:(t+=&quot;&quot;,function(){var e,r=this.getAttributeNS(i.space,i.local);return r!==t&amp;&amp;(e=n(r,t),function(t){this.setAttributeNS(i.space,i.local,e(t))})})}return ks(this,&quot;attr.&quot;+e,r,i.local?l:s)},ws.attrTween=function(e,r){var n=t.ns.qualify(e);return this.tween(&quot;attr.&quot;+e,n.local?function(t,e){var i=r.call(this,t,e,this.getAttributeNS(n.space,n.local));return i&amp;&amp;function(t){this.setAttributeNS(n.space,n.local,i(t))}}:function(t,e){var i=r.call(this,t,e,this.getAttribute(n));return i&amp;&amp;function(t){this.setAttribute(n,i(t))}})},ws.style=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=&quot;&quot;),t)this.style(r,t[r],e);return this}r=&quot;&quot;}function i(){this.style.removeProperty(t)}function a(e){return null==e?i:(e+=&quot;&quot;,function(){var n,i=o(this).getComputedStyle(this,null).getPropertyValue(t);return i!==e&amp;&amp;(n=$i(i,e),function(e){this.style.setProperty(t,n(e),r)})})}return ks(this,&quot;style.&quot;+t,e,a)},ws.styleTween=function(t,e,r){function n(n,i){var a=e.call(this,n,i,o(this).getComputedStyle(this,null).getPropertyValue(t));return a&amp;&amp;function(e){this.style.setProperty(t,a(e),r)}}return arguments.length&lt;3&amp;&amp;(r=&quot;&quot;),this.tween(&quot;style.&quot;+t,n)},ws.text=function(t){return ks(this,&quot;text&quot;,t,Ms)},ws.remove=function(){var t=this.namespace;return this.each(&quot;end.transition&quot;,(function(){var e;this[t].count&lt;2&amp;&amp;(e=this.parentNode)&amp;&amp;e.removeChild(this)}))},ws.ease=function(e){var r=this.id,n=this.namespace;return arguments.length&lt;1?this.node()[n][r].ease:(&quot;function&quot;!=typeof e&amp;&amp;(e=t.ease.apply(t,arguments)),ut(this,(function(t){t[n][r].ease=e})))},ws.delay=function(t){var e=this.id,r=this.namespace;return arguments.length&lt;1?this.node()[r][e].delay:ut(this,&quot;function&quot;==typeof t?function(n,i,a){n[r][e].delay=+t.call(n,n.__data__,i,a)}:(t=+t,function(n){n[r][e].delay=t}))},ws.duration=function(t){var e=this.id,r=this.namespace;return arguments.length&lt;1?this.node()[r][e].duration:ut(this,&quot;function&quot;==typeof t?function(n,i,a){n[r][e].duration=Math.max(1,t.call(n,n.__data__,i,a))}:(t=Math.max(1,t),function(n){n[r][e].duration=t}))},ws.each=function(e,r){var n=this.id,i=this.namespace;if(arguments.length&lt;2){var a=_s,o=bs;try{bs=n,ut(this,(function(t,r,a){_s=t[i][n],e.call(t,t.__data__,r,a)}))}finally{_s=a,bs=o}}else ut(this,(function(a){var o=a[i][n];(o.event||(o.event=t.dispatch(&quot;start&quot;,&quot;end&quot;,&quot;interrupt&quot;))).on(e,r)}));return this},ws.transition=function(){for(var t,e,r,n=this.id,i=++Ts,a=this.namespace,o=[],s=0,l=this.length;s&lt;l;s++){o.push(t=[]);for(var c,u=0,f=(c=this[s]).length;u&lt;f;u++)(e=c[u])&amp;&amp;Ss(e,u,a,i,{time:(r=e[a][n]).time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration}),t.push(e)}return xs(o,a,i)},t.svg.axis=function(){var e,r=t.scale.linear(),i=Es,a=6,o=6,s=3,l=[10],c=null;function u(n){n.each((function(){var n,u=t.select(this),f=this.__chart__||r,h=this.__chart__=r.copy(),p=null==c?h.ticks?h.ticks.apply(h,l):h.domain():c,d=null==e?h.tickFormat?h.tickFormat.apply(h,l):L:e,g=u.selectAll(&quot;.tick&quot;).data(p,h),m=g.enter().insert(&quot;g&quot;,&quot;.domain&quot;).attr(&quot;class&quot;,&quot;tick&quot;).style(&quot;opacity&quot;,kt),v=t.transition(g.exit()).style(&quot;opacity&quot;,kt).remove(),y=t.transition(g.order()).style(&quot;opacity&quot;,1),x=Math.max(a,0)+s,b=mo(h),_=u.selectAll(&quot;.domain&quot;).data([0]),w=(_.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;domain&quot;),t.transition(_));m.append(&quot;line&quot;),m.append(&quot;text&quot;);var T,k,M,A,S=m.select(&quot;line&quot;),E=y.select(&quot;line&quot;),C=g.select(&quot;text&quot;).text(d),I=m.select(&quot;text&quot;),P=y.select(&quot;text&quot;),z=&quot;top&quot;===i||&quot;left&quot;===i?-1:1;if(&quot;bottom&quot;===i||&quot;top&quot;===i?(n=Ls,T=&quot;x&quot;,M=&quot;y&quot;,k=&quot;x2&quot;,A=&quot;y2&quot;,C.attr(&quot;dy&quot;,z&lt;0?&quot;0em&quot;:&quot;.71em&quot;).style(&quot;text-anchor&quot;,&quot;middle&quot;),w.attr(&quot;d&quot;,&quot;M&quot;+b[0]+&quot;,&quot;+z*o+&quot;V0H&quot;+b[1]+&quot;V&quot;+z*o)):(n=Is,T=&quot;y&quot;,M=&quot;x&quot;,k=&quot;y2&quot;,A=&quot;x2&quot;,C.attr(&quot;dy&quot;,&quot;.32em&quot;).style(&quot;text-anchor&quot;,z&lt;0?&quot;end&quot;:&quot;start&quot;),w.attr(&quot;d&quot;,&quot;M&quot;+z*o+&quot;,&quot;+b[0]+&quot;H0V&quot;+b[1]+&quot;H&quot;+z*o)),S.attr(A,z*a),I.attr(M,z*x),E.attr(k,0).attr(A,z*a),P.attr(T,0).attr(M,z*x),h.rangeBand){var O=h,D=O.rangeBand()/2;f=h=function(t){return O(t)+D}}else f.rangeBand?f=h:v.call(n,h,f);m.call(n,f,h),y.call(n,h,h)}))}return u.scale=function(t){return arguments.length?(r=t,u):r},u.orient=function(t){return arguments.length?(i=t in Cs?t+&quot;&quot;:Es,u):i},u.ticks=function(){return arguments.length?(l=n(arguments),u):l},u.tickValues=function(t){return arguments.length?(c=t,u):c},u.tickFormat=function(t){return arguments.length?(e=t,u):e},u.tickSize=function(t){var e=arguments.length;return e?(a=+t,o=+arguments[e-1],u):a},u.innerTickSize=function(t){return arguments.length?(a=+t,u):a},u.outerTickSize=function(t){return arguments.length?(o=+t,u):o},u.tickPadding=function(t){return arguments.length?(s=+t,u):s},u.tickSubdivide=function(){return arguments.length&amp;&amp;u},u};var Es=&quot;bottom&quot;,Cs={top:1,right:1,bottom:1,left:1};function Ls(t,e,r){t.attr(&quot;transform&quot;,(function(t){var n=e(t);return&quot;translate(&quot;+(isFinite(n)?n:r(t))+&quot;,0)&quot;}))}function Is(t,e,r){t.attr(&quot;transform&quot;,(function(t){var n=e(t);return&quot;translate(0,&quot;+(isFinite(n)?n:r(t))+&quot;)&quot;}))}t.svg.brush=function(){var e,r,n=N(h,&quot;brushstart&quot;,&quot;brush&quot;,&quot;brushend&quot;),i=null,a=null,s=[0,0],l=[0,0],c=!0,u=!0,f=zs[0];function h(e){e.each((function(){var e=t.select(this).style(&quot;pointer-events&quot;,&quot;all&quot;).style(&quot;-webkit-tap-highlight-color&quot;,&quot;rgba(0,0,0,0)&quot;).on(&quot;mousedown.brush&quot;,m).on(&quot;touchstart.brush&quot;,m),r=e.selectAll(&quot;.background&quot;).data([0]);r.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;background&quot;).style(&quot;visibility&quot;,&quot;hidden&quot;).style(&quot;cursor&quot;,&quot;crosshair&quot;),e.selectAll(&quot;.extent&quot;).data([0]).enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;extent&quot;).style(&quot;cursor&quot;,&quot;move&quot;);var n=e.selectAll(&quot;.resize&quot;).data(f,L);n.exit().remove(),n.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;resize &quot;+t})).style(&quot;cursor&quot;,(function(t){return Ps[t]})).append(&quot;rect&quot;).attr(&quot;x&quot;,(function(t){return/[ew]$/.test(t)?-3:null})).attr(&quot;y&quot;,(function(t){return/^[ns]/.test(t)?-3:null})).attr(&quot;width&quot;,6).attr(&quot;height&quot;,6).style(&quot;visibility&quot;,&quot;hidden&quot;),n.style(&quot;display&quot;,h.empty()?&quot;none&quot;:null);var o,s=t.transition(e),l=t.transition(r);i&amp;&amp;(o=mo(i),l.attr(&quot;x&quot;,o[0]).attr(&quot;width&quot;,o[1]-o[0]),d(s)),a&amp;&amp;(o=mo(a),l.attr(&quot;y&quot;,o[0]).attr(&quot;height&quot;,o[1]-o[0]),g(s)),p(s)}))}function p(t){t.selectAll(&quot;.resize&quot;).attr(&quot;transform&quot;,(function(t){return&quot;translate(&quot;+s[+/e$/.test(t)]+&quot;,&quot;+l[+/^s/.test(t)]+&quot;)&quot;}))}function d(t){t.select(&quot;.extent&quot;).attr(&quot;x&quot;,s[0]),t.selectAll(&quot;.extent,.n&gt;rect,.s&gt;rect&quot;).attr(&quot;width&quot;,s[1]-s[0])}function g(t){t.select(&quot;.extent&quot;).attr(&quot;y&quot;,l[0]),t.selectAll(&quot;.extent,.e&gt;rect,.w&gt;rect&quot;).attr(&quot;height&quot;,l[1]-l[0])}function m(){var f,m,v=this,y=t.select(t.event.target),x=n.of(v,arguments),b=t.select(v),_=y.datum(),w=!/^(n|s)$/.test(_)&amp;&amp;i,T=!/^(e|w)$/.test(_)&amp;&amp;a,k=y.classed(&quot;extent&quot;),M=bt(v),A=t.mouse(v),S=t.select(o(v)).on(&quot;keydown.brush&quot;,L).on(&quot;keyup.brush&quot;,I);if(t.event.changedTouches?S.on(&quot;touchmove.brush&quot;,P).on(&quot;touchend.brush&quot;,O):S.on(&quot;mousemove.brush&quot;,P).on(&quot;mouseup.brush&quot;,O),b.interrupt().selectAll(&quot;*&quot;).interrupt(),k)A[0]=s[0]-A[0],A[1]=l[0]-A[1];else if(_){var E=+/w$/.test(_),C=+/^n/.test(_);m=[s[1-E]-A[0],l[1-C]-A[1]],A[0]=s[E],A[1]=l[C]}else t.event.altKey&amp;&amp;(f=A.slice());function L(){32==t.event.keyCode&amp;&amp;(k||(f=null,A[0]-=s[1],A[1]-=l[1],k=2),F())}function I(){32==t.event.keyCode&amp;&amp;2==k&amp;&amp;(A[0]+=s[1],A[1]+=l[1],k=0,F())}function P(){var e=t.mouse(v),r=!1;m&amp;&amp;(e[0]+=m[0],e[1]+=m[1]),k||(t.event.altKey?(f||(f=[(s[0]+s[1])/2,(l[0]+l[1])/2]),A[0]=s[+(e[0]&lt;f[0])],A[1]=l[+(e[1]&lt;f[1])]):f=null),w&amp;&amp;z(e,i,0)&amp;&amp;(d(b),r=!0),T&amp;&amp;z(e,a,1)&amp;&amp;(g(b),r=!0),r&amp;&amp;(p(b),x({type:&quot;brush&quot;,mode:k?&quot;move&quot;:&quot;resize&quot;}))}function z(t,n,i){var a,o,h=mo(n),p=h[0],d=h[1],g=A[i],m=i?l:s,v=m[1]-m[0];if(k&amp;&amp;(p-=g,d-=v+g),a=(i?u:c)?Math.max(p,Math.min(d,t[i])):t[i],k?o=(a+=g)+v:(f&amp;&amp;(g=Math.max(p,Math.min(d,2*f[i]-a))),g&lt;a?(o=a,a=g):o=g),m[0]!=a||m[1]!=o)return i?r=null:e=null,m[0]=a,m[1]=o,!0}function O(){P(),b.style(&quot;pointer-events&quot;,&quot;all&quot;).selectAll(&quot;.resize&quot;).style(&quot;display&quot;,h.empty()?&quot;none&quot;:null),t.select(&quot;body&quot;).style(&quot;cursor&quot;,null),S.on(&quot;mousemove.brush&quot;,null).on(&quot;mouseup.brush&quot;,null).on(&quot;touchmove.brush&quot;,null).on(&quot;touchend.brush&quot;,null).on(&quot;keydown.brush&quot;,null).on(&quot;keyup.brush&quot;,null),M(),x({type:&quot;brushend&quot;})}b.style(&quot;pointer-events&quot;,&quot;none&quot;).selectAll(&quot;.resize&quot;).style(&quot;display&quot;,null),t.select(&quot;body&quot;).style(&quot;cursor&quot;,y.style(&quot;cursor&quot;)),x({type:&quot;brushstart&quot;}),P()}return h.event=function(i){i.each((function(){var i=n.of(this,arguments),a={x:s,y:l,i:e,j:r},o=this.__chart__||a;this.__chart__=a,bs?t.select(this).transition().each(&quot;start.brush&quot;,(function(){e=o.i,r=o.j,s=o.x,l=o.y,i({type:&quot;brushstart&quot;})})).tween(&quot;brush:brush&quot;,(function(){var t=ta(s,a.x),n=ta(l,a.y);return e=r=null,function(e){s=a.x=t(e),l=a.y=n(e),i({type:&quot;brush&quot;,mode:&quot;resize&quot;})}})).each(&quot;end.brush&quot;,(function(){e=a.i,r=a.j,i({type:&quot;brush&quot;,mode:&quot;resize&quot;}),i({type:&quot;brushend&quot;})})):(i({type:&quot;brushstart&quot;}),i({type:&quot;brush&quot;,mode:&quot;resize&quot;}),i({type:&quot;brushend&quot;}))}))},h.x=function(t){return arguments.length?(f=zs[!(i=t)&lt;&lt;1|!a],h):i},h.y=function(t){return arguments.length?(f=zs[!i&lt;&lt;1|!(a=t)],h):a},h.clamp=function(t){return arguments.length?(i&amp;&amp;a?(c=!!t[0],u=!!t[1]):i?c=!!t:a&amp;&amp;(u=!!t),h):i&amp;&amp;a?[c,u]:i?c:a?u:null},h.extent=function(t){var n,o,c,u,f;return arguments.length?(i&amp;&amp;(n=t[0],o=t[1],a&amp;&amp;(n=n[0],o=o[0]),e=[n,o],i.invert&amp;&amp;(n=i(n),o=i(o)),o&lt;n&amp;&amp;(f=n,n=o,o=f),n==s[0]&amp;&amp;o==s[1]||(s=[n,o])),a&amp;&amp;(c=t[0],u=t[1],i&amp;&amp;(c=c[1],u=u[1]),r=[c,u],a.invert&amp;&amp;(c=a(c),u=a(u)),u&lt;c&amp;&amp;(f=c,c=u,u=f),c==l[0]&amp;&amp;u==l[1]||(l=[c,u])),h):(i&amp;&amp;(e?(n=e[0],o=e[1]):(n=s[0],o=s[1],i.invert&amp;&amp;(n=i.invert(n),o=i.invert(o)),o&lt;n&amp;&amp;(f=n,n=o,o=f))),a&amp;&amp;(r?(c=r[0],u=r[1]):(c=l[0],u=l[1],a.invert&amp;&amp;(c=a.invert(c),u=a.invert(u)),u&lt;c&amp;&amp;(f=c,c=u,u=f))),i&amp;&amp;a?[[n,c],[o,u]]:i?[n,o]:a&amp;&amp;[c,u])},h.clear=function(){return h.empty()||(s=[0,0],l=[0,0],e=r=null),h},h.empty=function(){return!!i&amp;&amp;s[0]==s[1]||!!a&amp;&amp;l[0]==l[1]},t.rebind(h,n,&quot;on&quot;)};var Ps={n:&quot;ns-resize&quot;,e:&quot;ew-resize&quot;,s:&quot;ns-resize&quot;,w:&quot;ew-resize&quot;,nw:&quot;nwse-resize&quot;,ne:&quot;nesw-resize&quot;,se:&quot;nwse-resize&quot;,sw:&quot;nesw-resize&quot;},zs=[[&quot;n&quot;,&quot;e&quot;,&quot;s&quot;,&quot;w&quot;,&quot;nw&quot;,&quot;ne&quot;,&quot;se&quot;,&quot;sw&quot;],[&quot;e&quot;,&quot;w&quot;],[&quot;n&quot;,&quot;s&quot;],[]],Os=Pe.format=sr.timeFormat,Ds=Os.utc,Rs=Ds(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);function Fs(t){return t.toISOString()}function Bs(e,r,n){function i(t){return e(t)}function a(e,n){var i=(e[1]-e[0])/n,a=t.bisect(js,i);return a==js.length?[r.year,ko(e.map((function(t){return t/31536e6})),n)[2]]:a?r[i/js[a-1]&lt;js[a]/i?a-1:a]:[qs,ko(e,n)[2]]}return i.invert=function(t){return Ns(e.invert(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain().map(Ns)},i.nice=function(t,e){var r=i.domain(),n=go(r),o=null==t?a(n,10):&quot;number&quot;==typeof t&amp;&amp;a(n,t);function s(r){return!isNaN(r)&amp;&amp;!t.range(r,Ns(+r+1),e).length}return o&amp;&amp;(t=o[0],e=o[1]),i.domain(yo(r,e&gt;1?{floor:function(e){for(;s(e=t.floor(e));)e=Ns(e-1);return e},ceil:function(e){for(;s(e=t.ceil(e));)e=Ns(+e+1);return e}}:t))},i.ticks=function(t,e){var r=go(i.domain()),n=null==t?a(r,10):&quot;number&quot;==typeof t?a(r,t):!t.range&amp;&amp;[{range:t},e];return n&amp;&amp;(t=n[0],e=n[1]),t.range(r[0],Ns(+r[1]+1),e&lt;1?1:e)},i.tickFormat=function(){return n},i.copy=function(){return Bs(e.copy(),r,n)},wo(i,e)}function Ns(t){return new Date(t)}Os.iso=Date.prototype.toISOString&amp;&amp;+new Date(&quot;2000-01-01T00:00:00.000Z&quot;)?Fs:Rs,Fs.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},Fs.toString=Rs.toString,Pe.second=Re((function(t){return new ze(1e3*Math.floor(t/1e3))}),(function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))}),(function(t){return t.getSeconds()})),Pe.seconds=Pe.second.range,Pe.seconds.utc=Pe.second.utc.range,Pe.minute=Re((function(t){return new ze(6e4*Math.floor(t/6e4))}),(function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))}),(function(t){return t.getMinutes()})),Pe.minutes=Pe.minute.range,Pe.minutes.utc=Pe.minute.utc.range,Pe.hour=Re((function(t){var e=t.getTimezoneOffset()/60;return new ze(36e5*(Math.floor(t/36e5-e)+e))}),(function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))}),(function(t){return t.getHours()})),Pe.hours=Pe.hour.range,Pe.hours.utc=Pe.hour.utc.range,Pe.month=Re((function(t){return(t=Pe.day(t)).setDate(1),t}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t){return t.getMonth()})),Pe.months=Pe.month.range,Pe.months.utc=Pe.month.utc.range;var js=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Us=[[Pe.second,1],[Pe.second,5],[Pe.second,15],[Pe.second,30],[Pe.minute,1],[Pe.minute,5],[Pe.minute,15],[Pe.minute,30],[Pe.hour,1],[Pe.hour,3],[Pe.hour,6],[Pe.hour,12],[Pe.day,1],[Pe.day,2],[Pe.week,1],[Pe.month,1],[Pe.month,3],[Pe.year,1]],Vs=Os.multi([[&quot;.%L&quot;,function(t){return t.getMilliseconds()}],[&quot;:%S&quot;,function(t){return t.getSeconds()}],[&quot;%I:%M&quot;,function(t){return t.getMinutes()}],[&quot;%I %p&quot;,function(t){return t.getHours()}],[&quot;%a %d&quot;,function(t){return t.getDay()&amp;&amp;1!=t.getDate()}],[&quot;%b %d&quot;,function(t){return 1!=t.getDate()}],[&quot;%B&quot;,function(t){return t.getMonth()}],[&quot;%Y&quot;,Yr]]),qs={range:function(e,r,n){return t.range(Math.ceil(e/n)*n,+r,n).map(Ns)},floor:L,ceil:L};Us.year=Pe.year,Pe.scale=function(){return Bs(t.scale.linear(),Us,Vs)};var Hs=Us.map((function(t){return[t[0].utc,t[1]]})),Gs=Ds.multi([[&quot;.%L&quot;,function(t){return t.getUTCMilliseconds()}],[&quot;:%S&quot;,function(t){return t.getUTCSeconds()}],[&quot;%I:%M&quot;,function(t){return t.getUTCMinutes()}],[&quot;%I %p&quot;,function(t){return t.getUTCHours()}],[&quot;%a %d&quot;,function(t){return t.getUTCDay()&amp;&amp;1!=t.getUTCDate()}],[&quot;%b %d&quot;,function(t){return 1!=t.getUTCDate()}],[&quot;%B&quot;,function(t){return t.getUTCMonth()}],[&quot;%Y&quot;,Yr]]);function Ys(t){return JSON.parse(t.responseText)}function Ws(t){var e=i.createRange();return e.selectNode(i.body),e.createContextualFragment(t.responseText)}Hs.year=Pe.year.utc,Pe.scale.utc=function(){return Bs(t.scale.linear(),Hs,Gs)},t.text=ge((function(t){return t.responseText})),t.json=function(t,e){return me(t,&quot;application/json&quot;,Ys,e)},t.html=function(t,e){return me(t,&quot;text/html&quot;,Ws,e)},t.xml=ge((function(t){return t.responseXML})),&quot;object&quot;==typeof e&amp;&amp;e.exports?e.exports=t:this.d3=t}()},{}],170:[function(t,e,r){e.exports=function(){for(var t=0;t&lt;arguments.length;t++)if(void 0!==arguments[t])return arguments[t]}},{}],171:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;incremental-convex-hull&quot;),i=t(&quot;uniq&quot;);function a(t,e){this.point=t,this.index=e}function o(t,e){for(var r=t.point,n=e.point,i=r.length,a=0;a&lt;i;++a){var o=n[a]-r[a];if(o)return o}return 0}e.exports=function(t,e){var r=t.length;if(0===r)return[];var s=t[0].length;if(s&lt;1)return[];if(1===s)return function(t,e,r){if(1===t)return r?[[-1,0]]:[];var n=e.map((function(t,e){return[t[0],e]}));n.sort((function(t,e){return t[0]-e[0]}));for(var i=new Array(t-1),a=1;a&lt;t;++a){var o=n[a-1],s=n[a];i[a-1]=[o[1],s[1]]}r&amp;&amp;i.push([-1,i[0][1]],[i[t-1][1],-1]);return i}(r,t,e);for(var l=new Array(r),c=1,u=0;u&lt;r;++u){for(var f=t[u],h=new Array(s+1),p=0,d=0;d&lt;s;++d){var g=f[d];h[d]=g,p+=g*g}h[s]=p,l[u]=new a(h,u),c=Math.max(p,c)}i(l,o),r=l.length;var m=new Array(r+s+1),v=new Array(r+s+1),y=(s+1)*(s+1)*c,x=new Array(s+1);for(u=0;u&lt;=s;++u)x[u]=0;x[s]=y,m[0]=x.slice(),v[0]=-1;for(u=0;u&lt;=s;++u){(h=x.slice())[u]=1,m[u+1]=h,v[u+1]=-1}for(u=0;u&lt;r;++u){var b=l[u];m[u+s+1]=b.point,v[u+s+1]=b.index}var _=n(m,!1);_=e?_.filter((function(t){for(var e=0,r=0;r&lt;=s;++r){var n=v[t[r]];if(n&lt;0&amp;&amp;++e&gt;=2)return!1;t[r]=n}return!0})):_.filter((function(t){for(var e=0;e&lt;=s;++e){var r=v[t[e]];if(r&lt;0)return!1;t[e]=r}return!0}));if(1&amp;s)for(u=0;u&lt;_.length;++u){h=(b=_[u])[0];b[0]=b[1],b[1]=h}return _}},{&quot;incremental-convex-hull&quot;:459,uniq:597}],172:[function(t,e,r){&quot;use strict&quot;;e.exports=a;var n=(a.canvas=document.createElement(&quot;canvas&quot;)).getContext(&quot;2d&quot;),i=o([32,126]);function a(t,e){Array.isArray(t)&amp;&amp;(t=t.join(&quot;, &quot;));var r,a={},s=16,l=.05;e&amp;&amp;(2===e.length&amp;&amp;&quot;number&quot;==typeof e[0]?r=o(e):Array.isArray(e)?r=e:(e.o?r=o(e.o):e.pairs&amp;&amp;(r=e.pairs),e.fontSize&amp;&amp;(s=e.fontSize),null!=e.threshold&amp;&amp;(l=e.threshold))),r||(r=i),n.font=s+&quot;px &quot;+t;for(var c=0;c&lt;r.length;c++){var u=r[c],f=n.measureText(u[0]).width+n.measureText(u[1]).width,h=n.measureText(u).width;if(Math.abs(f-h)&gt;s*l){var p=(h-f)/s;a[u]=1e3*p}}return a}function o(t){for(var e=[],r=t[0];r&lt;=t[1];r++)for(var n=String.fromCharCode(r),i=t[0];i&lt;t[1];i++){var a=n+String.fromCharCode(i);e.push(a)}return e}a.createPairs=o,a.ascii=i},{}],173:[function(t,e,r){(function(t){(function(){var r=!1;if(&quot;undefined&quot;!=typeof Float64Array){var n=new Float64Array(1),i=new Uint32Array(n.buffer);if(n[0]=1,r=!0,1072693248===i[1]){e.exports=function(t){return n[0]=t,[i[0],i[1]]},e.exports.pack=function(t,e){return i[0]=t,i[1]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[0]},e.exports.hi=function(t){return n[0]=t,i[1]}}else if(1072693248===i[0]){e.exports=function(t){return n[0]=t,[i[1],i[0]]},e.exports.pack=function(t,e){return i[1]=t,i[0]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[1]},e.exports.hi=function(t){return n[0]=t,i[0]}}else r=!1}if(!r){var a=new t(8);e.exports=function(t){return a.writeDoubleLE(t,0,!0),[a.readUInt32LE(0,!0),a.readUInt32LE(4,!0)]},e.exports.pack=function(t,e){return a.writeUInt32LE(t,0,!0),a.writeUInt32LE(e,4,!0),a.readDoubleLE(0,!0)},e.exports.lo=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(0,!0)},e.exports.hi=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(4,!0)}}e.exports.sign=function(t){return e.exports.hi(t)&gt;&gt;&gt;31},e.exports.exponent=function(t){return(e.exports.hi(t)&lt;&lt;1&gt;&gt;&gt;21)-1023},e.exports.fraction=function(t){var r=e.exports.lo(t),n=e.exports.hi(t),i=1048575&amp;n;return 2146435072&amp;n&amp;&amp;(i+=1&lt;&lt;20),[r,i]},e.exports.denormalized=function(t){return!(2146435072&amp;e.exports.hi(t))}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{buffer:111}],174:[function(t,e,r){var n=t(&quot;abs-svg-path&quot;),i=t(&quot;normalize-svg-path&quot;),a={M:&quot;moveTo&quot;,C:&quot;bezierCurveTo&quot;};e.exports=function(t,e){t.beginPath(),i(n(e)).forEach((function(e){var r=e[0],n=e.slice(1);t[a[r]].apply(t,n)})),t.closePath()}},{&quot;abs-svg-path&quot;:65,&quot;normalize-svg-path&quot;:497}],175:[function(t,e,r){e.exports=function(t){switch(t){case&quot;int8&quot;:return Int8Array;case&quot;int16&quot;:return Int16Array;case&quot;int32&quot;:return Int32Array;case&quot;uint8&quot;:return Uint8Array;case&quot;uint16&quot;:return Uint16Array;case&quot;uint32&quot;:return Uint32Array;case&quot;float32&quot;:return Float32Array;case&quot;float64&quot;:return Float64Array;case&quot;array&quot;:return Array;case&quot;uint8_clamped&quot;:return Uint8ClampedArray}}},{}],176:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){switch(&quot;undefined&quot;==typeof e&amp;&amp;(e=0),typeof t){case&quot;number&quot;:if(t&gt;0)return function(t,e){var r,n;for(r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}(0|t,e);break;case&quot;object&quot;:if(&quot;number&quot;==typeof t.length)return function t(e,r,n){var i=0|e[n];if(i&lt;=0)return[];var a,o=new Array(i);if(n===e.length-1)for(a=0;a&lt;i;++a)o[a]=r;else for(a=0;a&lt;i;++a)o[a]=t(e,r,n+1);return o}(t,e,0)}return[]}},{}],177:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){r=r||2;var n,s,l,c,u,p,d,m=e&amp;&amp;e.length,v=m?e[0]*r:t.length,y=i(t,0,v,r,!0),x=[];if(!y||y.next===y.prev)return x;if(m&amp;&amp;(y=function(t,e,r,n){var o,s,l,c,u,p=[];for(o=0,s=e.length;o&lt;s;o++)l=e[o]*n,c=o&lt;s-1?e[o+1]*n:t.length,(u=i(t,l,c,n,!1))===u.next&amp;&amp;(u.steiner=!0),p.push(g(u));for(p.sort(f),o=0;o&lt;p.length;o++)h(p[o],r),r=a(r,r.next);return r}(t,e,y,r)),t.length&gt;80*r){n=l=t[0],s=c=t[1];for(var b=r;b&lt;v;b+=r)(u=t[b])&lt;n&amp;&amp;(n=u),(p=t[b+1])&lt;s&amp;&amp;(s=p),u&gt;l&amp;&amp;(l=u),p&gt;c&amp;&amp;(c=p);d=0!==(d=Math.max(l-n,c-s))?1/d:0}return o(y,x,r,n,s,d),x}function i(t,e,r,n,i){var a,o;if(i===E(t,e,r,n)&gt;0)for(a=e;a&lt;r;a+=n)o=M(a,t[a],t[a+1],o);else for(a=r-n;a&gt;=e;a-=n)o=M(a,t[a],t[a+1],o);return o&amp;&amp;x(o,o.next)&amp;&amp;(A(o),o=o.next),o}function a(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!x(n,n.next)&amp;&amp;0!==y(n.prev,n,n.next))n=n.next;else{if(A(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function o(t,e,r,n,i,f,h){if(t){!h&amp;&amp;f&amp;&amp;function(t,e,r,n){var i=t;do{null===i.z&amp;&amp;(i.z=d(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e&lt;c&amp;&amp;(s++,n=n.nextZ);e++);for(l=c;s&gt;0||l&gt;0&amp;&amp;n;)0!==s&amp;&amp;(0===l||!n||r.z&lt;=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o&gt;1)}(i)}(t,n,i,f);for(var p,g,m=t;t.prev!==t.next;)if(p=t.prev,g=t.next,f?l(t,n,i,f):s(t))e.push(p.i/r),e.push(t.i/r),e.push(g.i/r),A(t),t=g.next,m=g.next;else if((t=g)===m){h?1===h?o(t=c(a(t),e,r),e,r,n,i,f,2):2===h&amp;&amp;u(t,e,r,n,i,f):o(a(t),e,r,n,i,f,1);break}}}function s(t){var e=t.prev,r=t,n=t.next;if(y(e,r,n)&gt;=0)return!1;for(var i=t.next.next;i!==t.prev;){if(m(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&amp;&amp;y(i.prev,i,i.next)&gt;=0)return!1;i=i.next}return!0}function l(t,e,r,n){var i=t.prev,a=t,o=t.next;if(y(i,a,o)&gt;=0)return!1;for(var s=i.x&lt;a.x?i.x&lt;o.x?i.x:o.x:a.x&lt;o.x?a.x:o.x,l=i.y&lt;a.y?i.y&lt;o.y?i.y:o.y:a.y&lt;o.y?a.y:o.y,c=i.x&gt;a.x?i.x&gt;o.x?i.x:o.x:a.x&gt;o.x?a.x:o.x,u=i.y&gt;a.y?i.y&gt;o.y?i.y:o.y:a.y&gt;o.y?a.y:o.y,f=d(s,l,e,r,n),h=d(c,u,e,r,n),p=t.prevZ,g=t.nextZ;p&amp;&amp;p.z&gt;=f&amp;&amp;g&amp;&amp;g.z&lt;=h;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;y(p.prev,p,p.next)&gt;=0)return!1;if(p=p.prevZ,g!==t.prev&amp;&amp;g!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&amp;&amp;y(g.prev,g,g.next)&gt;=0)return!1;g=g.nextZ}for(;p&amp;&amp;p.z&gt;=f;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;y(p.prev,p,p.next)&gt;=0)return!1;p=p.prevZ}for(;g&amp;&amp;g.z&lt;=h;){if(g!==t.prev&amp;&amp;g!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&amp;&amp;y(g.prev,g,g.next)&gt;=0)return!1;g=g.nextZ}return!0}function c(t,e,r){var n=t;do{var i=n.prev,o=n.next.next;!x(i,o)&amp;&amp;b(i,n,n.next,o)&amp;&amp;T(i,o)&amp;&amp;T(o,i)&amp;&amp;(e.push(i.i/r),e.push(n.i/r),e.push(o.i/r),A(n),A(n.next),n=t=o),n=n.next}while(n!==t);return a(n)}function u(t,e,r,n,i,s){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&amp;&amp;v(l,c)){var u=k(l,c);return l=a(l,l.next),u=a(u,u.next),o(l,e,r,n,i,s),void o(u,e,r,n,i,s)}c=c.next}l=l.next}while(l!==t)}function f(t,e){return t.x-e.x}function h(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a&lt;=n.y&amp;&amp;a&gt;=n.next.y&amp;&amp;n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s&lt;=i&amp;&amp;s&gt;o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x&lt;n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,h=1/0;n=r;do{i&gt;=n.x&amp;&amp;n.x&gt;=u&amp;&amp;i!==n.x&amp;&amp;m(a&lt;f?i:o,a,u,f,a&lt;f?o:i,a,n.x,n.y)&amp;&amp;(l=Math.abs(a-n.y)/(i-n.x),T(n,t)&amp;&amp;(l&lt;h||l===h&amp;&amp;(n.x&gt;r.x||n.x===r.x&amp;&amp;p(r,n)))&amp;&amp;(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e)){var r=k(e,t);a(e,e.next),a(r,r.next)}}function p(t,e){return y(t.prev,t,e.prev)&lt;0&amp;&amp;y(e.next,t,t.next)&lt;0}function d(t,e,r,n,i){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t=32767*(t-r)*i)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e=32767*(e-n)*i)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1}function g(t){var e=t,r=t;do{(e.x&lt;r.x||e.x===r.x&amp;&amp;e.y&lt;r.y)&amp;&amp;(r=e),e=e.next}while(e!==t);return r}function m(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)&gt;=0&amp;&amp;(t-o)*(n-s)-(r-o)*(e-s)&gt;=0&amp;&amp;(r-o)*(a-s)-(i-o)*(n-s)&gt;=0}function v(t,e){return t.next.i!==e.i&amp;&amp;t.prev.i!==e.i&amp;&amp;!function(t,e){var r=t;do{if(r.i!==t.i&amp;&amp;r.next.i!==t.i&amp;&amp;r.i!==e.i&amp;&amp;r.next.i!==e.i&amp;&amp;b(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&amp;&amp;(T(t,e)&amp;&amp;T(e,t)&amp;&amp;function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y&gt;a!=r.next.y&gt;a&amp;&amp;r.next.y!==r.y&amp;&amp;i&lt;(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&amp;&amp;(n=!n),r=r.next}while(r!==t);return n}(t,e)&amp;&amp;(y(t.prev,t,e.prev)||y(t,e.prev,e))||x(t,e)&amp;&amp;y(t.prev,t,t.next)&gt;0&amp;&amp;y(e.prev,e,e.next)&gt;0)}function y(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function x(t,e){return t.x===e.x&amp;&amp;t.y===e.y}function b(t,e,r,n){var i=w(y(t,e,r)),a=w(y(t,e,n)),o=w(y(r,n,t)),s=w(y(r,n,e));return i!==a&amp;&amp;o!==s||(!(0!==i||!_(t,r,e))||(!(0!==a||!_(t,n,e))||(!(0!==o||!_(r,t,n))||!(0!==s||!_(r,e,n)))))}function _(t,e,r){return e.x&lt;=Math.max(t.x,r.x)&amp;&amp;e.x&gt;=Math.min(t.x,r.x)&amp;&amp;e.y&lt;=Math.max(t.y,r.y)&amp;&amp;e.y&gt;=Math.min(t.y,r.y)}function w(t){return t&gt;0?1:t&lt;0?-1:0}function T(t,e){return y(t.prev,t,t.next)&lt;0?y(t,e,t.next)&gt;=0&amp;&amp;y(t,t.prev,e)&gt;=0:y(t,e,t.prev)&lt;0||y(t,t.next,e)&lt;0}function k(t,e){var r=new S(t.i,t.x,t.y),n=new S(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function M(t,e,r,n){var i=new S(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function A(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&amp;&amp;(t.prevZ.nextZ=t.nextZ),t.nextZ&amp;&amp;(t.nextZ.prevZ=t.prevZ)}function S(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function E(t,e,r,n){for(var i=0,a=e,o=r-n;a&lt;r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}e.exports=n,e.exports.default=n,n.deviation=function(t,e,r,n){var i=e&amp;&amp;e.length,a=i?e[0]*r:t.length,o=Math.abs(E(t,0,a,r));if(i)for(var s=0,l=e.length;s&lt;l;s++){var c=e[s]*r,u=s&lt;l-1?e[s+1]*r:t.length;o-=Math.abs(E(t,c,u,r))}var f=0;for(s=0;s&lt;n.length;s+=3){var h=n[s]*r,p=n[s+1]*r,d=n[s+2]*r;f+=Math.abs((t[h]-t[d])*(t[p+1]-t[h+1])-(t[h]-t[p])*(t[d+1]-t[h+1]))}return 0===o&amp;&amp;0===f?0:Math.abs((f-o)/o)},n.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i&lt;t.length;i++){for(var a=0;a&lt;t[i].length;a++)for(var o=0;o&lt;e;o++)r.vertices.push(t[i][a][o]);i&gt;0&amp;&amp;(n+=t[i-1].length,r.holes.push(n))}return r}},{}],178:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.length;if(&quot;number&quot;!=typeof e){e=0;for(var i=0;i&lt;r;++i){var a=t[i];e=Math.max(e,a[0],a[1])}e=1+(0|e)}e|=0;var o=new Array(e);for(i=0;i&lt;e;++i)o[i]=[];for(i=0;i&lt;r;++i){a=t[i];o[a[0]].push(a[1]),o[a[1]].push(a[0])}for(var s=0;s&lt;e;++s)n(o[s],(function(t,e){return t-e}));return o};var n=t(&quot;uniq&quot;)},{uniq:597}],179:[function(t,e,r){var n=t(&quot;strongly-connected-components&quot;);e.exports=function(t,e){var r,i=[],a=[],o=[],s={},l=[];function c(t){var e,n,i=!1;for(a.push(t),o[t]=!0,e=0;e&lt;l[t].length;e++)(n=l[t][e])===r?(u(r,a),i=!0):o[n]||(i=c(n));if(i)!function t(e){o[e]=!1,s.hasOwnProperty(e)&amp;&amp;Object.keys(s[e]).forEach((function(r){delete s[e][r],o[r]&amp;&amp;t(r)}))}(t);else for(e=0;e&lt;l[t].length;e++){n=l[t][e];var f=s[n];f||(f={},s[n]=f),f[n]=!0}return a.pop(),i}function u(t,r){var n=[].concat(r).concat(t);e?e(c):i.push(n)}function f(e){!function(e){for(var r=0;r&lt;t.length;r++)r&lt;e&amp;&amp;(t[r]=[]),t[r]=t[r].filter((function(t){return t&gt;=e}))}(e);for(var r,i=n(t).components.filter((function(t){return t.length&gt;1})),a=1/0,o=0;o&lt;i.length;o++)for(var s=0;s&lt;i[o].length;s++)i[o][s]&lt;a&amp;&amp;(a=i[o][s],r=o);var l=i[r];return!!l&amp;&amp;{leastVertex:a,adjList:t.map((function(t,e){return-1===l.indexOf(e)?[]:t.filter((function(t){return-1!==l.indexOf(t)}))}))}}r=0;for(var h=t.length;r&lt;h;){var p=f(r);if(r=p.leastVertex,l=p.adjList){for(var d=0;d&lt;l.length;d++)for(var g=0;g&lt;l[d].length;g++){var m=l[d][g];o[+m]=!1,s[m]={}}c(r),r+=1}else r=h}return e?void 0:i}},{&quot;strongly-connected-components&quot;:569}],180:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../object/valid-value&quot;);e.exports=function(){return n(this).length=0,this}},{&quot;../../object/valid-value&quot;:211}],181:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Array.from:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:182,&quot;./shim&quot;:183}],182:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e,r=Array.from;return&quot;function&quot;==typeof r&amp;&amp;(e=r(t=[&quot;raz&quot;,&quot;dwa&quot;]),Boolean(e&amp;&amp;e!==t&amp;&amp;&quot;dwa&quot;===e[1]))}},{}],183:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es6-symbol&quot;).iterator,i=t(&quot;../../function/is-arguments&quot;),a=t(&quot;../../function/is-function&quot;),o=t(&quot;../../number/to-pos-integer&quot;),s=t(&quot;../../object/valid-callable&quot;),l=t(&quot;../../object/valid-value&quot;),c=t(&quot;../../object/is-value&quot;),u=t(&quot;../../string/is-string&quot;),f=Array.isArray,h=Function.prototype.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},d=Object.defineProperty;e.exports=function(t){var e,r,g,m,v,y,x,b,_,w,T=arguments[1],k=arguments[2];if(t=Object(l(t)),c(T)&amp;&amp;s(T),this&amp;&amp;this!==Array&amp;&amp;a(this))e=this;else{if(!T){if(i(t))return 1!==(v=t.length)?Array.apply(null,t):((m=new Array(1))[0]=t[0],m);if(f(t)){for(m=new Array(v=t.length),r=0;r&lt;v;++r)m[r]=t[r];return m}}m=[]}if(!f(t))if(void 0!==(_=t[n])){for(x=s(_).call(t),e&amp;&amp;(m=new e),b=x.next(),r=0;!b.done;)w=T?h.call(T,k,b.value,r):b.value,e?(p.value=w,d(m,r,p)):m[r]=w,b=x.next(),++r;v=r}else if(u(t)){for(v=t.length,e&amp;&amp;(m=new e),r=0,g=0;r&lt;v;++r)w=t[r],r+1&lt;v&amp;&amp;(y=w.charCodeAt(0))&gt;=55296&amp;&amp;y&lt;=56319&amp;&amp;(w+=t[++r]),w=T?h.call(T,k,w,g):w,e?(p.value=w,d(m,g,p)):m[g]=w,++g;v=g}if(void 0===v)for(v=o(t.length),e&amp;&amp;(m=new e(v)),r=0;r&lt;v;++r)w=T?h.call(T,k,t[r],r):t[r],e?(p.value=w,d(m,r,p)):m[r]=w;return e&amp;&amp;(p.value=null,m.length=v),m}},{&quot;../../function/is-arguments&quot;:184,&quot;../../function/is-function&quot;:185,&quot;../../number/to-pos-integer&quot;:191,&quot;../../object/is-value&quot;:200,&quot;../../object/valid-callable&quot;:209,&quot;../../object/valid-value&quot;:211,&quot;../../string/is-string&quot;:215,&quot;es6-symbol&quot;:225}],184:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=n.call(function(){return arguments}());e.exports=function(t){return n.call(t)===i}},{}],185:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);e.exports=function(t){return&quot;function&quot;==typeof t&amp;&amp;i(n.call(t))}},{}],186:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){}},{}],187:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Math.sign:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:188,&quot;./shim&quot;:189}],188:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t=Math.sign;return&quot;function&quot;==typeof t&amp;&amp;(1===t(10)&amp;&amp;-1===t(-20))}},{}],189:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t=Number(t),isNaN(t)||0===t?t:t&gt;0?1:-1}},{}],190:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../math/sign&quot;),i=Math.abs,a=Math.floor;e.exports=function(t){return isNaN(t)?0:0!==(t=Number(t))&amp;&amp;isFinite(t)?n(t)*a(i(t)):t}},{&quot;../math/sign&quot;:187}],191:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./to-integer&quot;),i=Math.max;e.exports=function(t){return i(0,n(t))}},{&quot;./to-integer&quot;:190}],192:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./valid-callable&quot;),i=t(&quot;./valid-value&quot;),a=Function.prototype.bind,o=Function.prototype.call,s=Object.keys,l=Object.prototype.propertyIsEnumerable;e.exports=function(t,e){return function(r,c){var u,f=arguments[2],h=arguments[3];return r=Object(i(r)),n(c),u=s(r),h&amp;&amp;u.sort(&quot;function&quot;==typeof h?a.call(h,r):void 0),&quot;function&quot;!=typeof t&amp;&amp;(t=u[t]),o.call(t,u,(function(t,n){return l.call(r,t)?o.call(c,f,r[t],t,r,n):e}))}}},{&quot;./valid-callable&quot;:209,&quot;./valid-value&quot;:211}],193:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.assign:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:194,&quot;./shim&quot;:195}],194:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e=Object.assign;return&quot;function&quot;==typeof e&amp;&amp;(e(t={foo:&quot;raz&quot;},{bar:&quot;dwa&quot;},{trzy:&quot;trzy&quot;}),t.foo+t.bar+t.trzy===&quot;razdwatrzy&quot;)}},{}],195:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../keys&quot;),i=t(&quot;../valid-value&quot;),a=Math.max;e.exports=function(t,e){var r,o,s,l=a(arguments.length,2);for(t=Object(i(t)),s=function(n){try{t[n]=e[n]}catch(t){r||(r=t)}},o=1;o&lt;l;++o)n(e=arguments[o]).forEach(s);if(void 0!==r)throw r;return t}},{&quot;../keys&quot;:201,&quot;../valid-value&quot;:211}],196:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../array/from&quot;),i=t(&quot;./assign&quot;),a=t(&quot;./valid-value&quot;);e.exports=function(t){var e=Object(a(t)),r=arguments[1],o=Object(arguments[2]);if(e!==t&amp;&amp;!r)return e;var s={};return r?n(r,(function(e){(o.ensure||e in t)&amp;&amp;(s[e]=t[e])})):i(s,t),s}},{&quot;../array/from&quot;:181,&quot;./assign&quot;:193,&quot;./valid-value&quot;:211}],197:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o,s=Object.create;t(&quot;./set-prototype-of/is-implemented&quot;)()||(n=t(&quot;./set-prototype-of/shim&quot;)),e.exports=n?1!==n.level?s:(i={},a={},o={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach((function(t){a[t]=&quot;__proto__&quot;!==t?o:{configurable:!0,enumerable:!1,writable:!0,value:void 0}})),Object.defineProperties(i,a),Object.defineProperty(n,&quot;nullPolyfill&quot;,{configurable:!1,enumerable:!1,writable:!1,value:i}),function(t,e){return s(null===t?i:t,e)}):s},{&quot;./set-prototype-of/is-implemented&quot;:207,&quot;./set-prototype-of/shim&quot;:208}],198:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./_iterate&quot;)(&quot;forEach&quot;)},{&quot;./_iterate&quot;:192}],199:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;),i={function:!0,object:!0};e.exports=function(t){return n(t)&amp;&amp;i[typeof t]||!1}},{&quot;./is-value&quot;:200}],200:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../function/noop&quot;)();e.exports=function(t){return t!==n&amp;&amp;null!==t}},{&quot;../function/noop&quot;:186}],201:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.keys:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:202,&quot;./shim&quot;:203}],202:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){try{return Object.keys(&quot;primitive&quot;),!0}catch(t){return!1}}},{}],203:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../is-value&quot;),i=Object.keys;e.exports=function(t){return i(n(t)?Object(t):t)}},{&quot;../is-value&quot;:200}],204:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./valid-callable&quot;),i=t(&quot;./for-each&quot;),a=Function.prototype.call;e.exports=function(t,e){var r={},o=arguments[2];return n(e),i(t,(function(t,n,i,s){r[n]=a.call(e,o,t,n,i,s)})),r}},{&quot;./for-each&quot;:198,&quot;./valid-callable&quot;:209}],205:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;),i=Array.prototype.forEach,a=Object.create,o=function(t,e){var r;for(r in t)e[r]=t[r]};e.exports=function(t){var e=a(null);return i.call(arguments,(function(t){n(t)&amp;&amp;o(Object(t),e)})),e}},{&quot;./is-value&quot;:200}],206:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.setPrototypeOf:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:207,&quot;./shim&quot;:208}],207:[function(t,e,r){&quot;use strict&quot;;var n=Object.create,i=Object.getPrototypeOf,a={};e.exports=function(){var t=Object.setPrototypeOf,e=arguments[0]||n;return&quot;function&quot;==typeof t&amp;&amp;i(t(e(null),a))===a}},{}],208:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;../is-object&quot;),a=t(&quot;../valid-value&quot;),o=Object.prototype.isPrototypeOf,s=Object.defineProperty,l={configurable:!0,enumerable:!1,writable:!0,value:void 0};n=function(t,e){if(a(t),null===e||i(e))return t;throw new TypeError(&quot;Prototype must be null or an object&quot;)},e.exports=function(t){var e,r;return t?(2===t.level?t.set?(r=t.set,e=function(t,e){return r.call(n(t,e),e),t}):e=function(t,e){return n(t,e).__proto__=e,t}:e=function t(e,r){var i;return n(e,r),(i=o.call(t.nullPolyfill,e))&amp;&amp;delete t.nullPolyfill.__proto__,null===r&amp;&amp;(r=t.nullPolyfill),e.__proto__=r,i&amp;&amp;s(t.nullPolyfill,&quot;__proto__&quot;,l),e},Object.defineProperty(e,&quot;level&quot;,{configurable:!1,enumerable:!1,writable:!1,value:t.level})):null}(function(){var t,e=Object.create(null),r={},n=Object.getOwnPropertyDescriptor(Object.prototype,&quot;__proto__&quot;);if(n){try{(t=n.set).call(e,r)}catch(t){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:((e={}).__proto__=r,Object.getPrototypeOf(e)===r&amp;&amp;{level:1})}()),t(&quot;../create&quot;)},{&quot;../create&quot;:197,&quot;../is-object&quot;:199,&quot;../valid-value&quot;:211}],209:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){if(&quot;function&quot;!=typeof t)throw new TypeError(t+&quot; is not a function&quot;);return t}},{}],210:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-object&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not an Object&quot;);return t}},{&quot;./is-object&quot;:199}],211:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;);e.exports=function(t){if(!n(t))throw new TypeError(&quot;Cannot use null or undefined&quot;);return t}},{&quot;./is-value&quot;:200}],212:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?String.prototype.contains:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:213,&quot;./shim&quot;:214}],213:[function(t,e,r){&quot;use strict&quot;;var n=&quot;razdwatrzy&quot;;e.exports=function(){return&quot;function&quot;==typeof n.contains&amp;&amp;(!0===n.contains(&quot;dwa&quot;)&amp;&amp;!1===n.contains(&quot;foo&quot;))}},{}],214:[function(t,e,r){&quot;use strict&quot;;var n=String.prototype.indexOf;e.exports=function(t){return n.call(this,t,arguments[1])&gt;-1}},{}],215:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=n.call(&quot;&quot;);e.exports=function(t){return&quot;string&quot;==typeof t||t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;(t instanceof String||n.call(t)===i)||!1}},{}],216:[function(t,e,r){&quot;use strict&quot;;var n=Object.create(null),i=Math.random;e.exports=function(){var t;do{t=i().toString(36).slice(2)}while(n[t]);return t}},{}],217:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/set-prototype-of&quot;),a=t(&quot;es5-ext/string/#/contains&quot;),o=t(&quot;d&quot;),s=t(&quot;es6-symbol&quot;),l=t(&quot;./&quot;),c=Object.defineProperty;n=e.exports=function(t,e){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);l.call(this,t),e=e?a.call(e,&quot;key+value&quot;)?&quot;key+value&quot;:a.call(e,&quot;key&quot;)?&quot;key&quot;:&quot;value&quot;:&quot;value&quot;,c(this,&quot;__kind__&quot;,o(&quot;&quot;,e))},i&amp;&amp;i(n,l),delete n.prototype.constructor,n.prototype=Object.create(l.prototype,{_resolve:o((function(t){return&quot;value&quot;===this.__kind__?this.__list__[t]:&quot;key+value&quot;===this.__kind__?[t,this.__list__[t]]:t}))}),c(n.prototype,s.toStringTag,o(&quot;c&quot;,&quot;Array Iterator&quot;))},{&quot;./&quot;:220,d:155,&quot;es5-ext/object/set-prototype-of&quot;:206,&quot;es5-ext/string/#/contains&quot;:212,&quot;es6-symbol&quot;:225}],218:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/object/valid-callable&quot;),a=t(&quot;es5-ext/string/is-string&quot;),o=t(&quot;./get&quot;),s=Array.isArray,l=Function.prototype.call,c=Array.prototype.some;e.exports=function(t,e){var r,u,f,h,p,d,g,m,v=arguments[2];if(s(t)||n(t)?r=&quot;array&quot;:a(t)?r=&quot;string&quot;:t=o(t),i(e),f=function(){h=!0},&quot;array&quot;!==r)if(&quot;string&quot;!==r)for(u=t.next();!u.done;){if(l.call(e,v,u.value,f),h)return;u=t.next()}else for(d=t.length,p=0;p&lt;d&amp;&amp;(g=t[p],p+1&lt;d&amp;&amp;(m=g.charCodeAt(0))&gt;=55296&amp;&amp;m&lt;=56319&amp;&amp;(g+=t[++p]),l.call(e,v,g,f),!h);++p);else c.call(t,(function(t){return l.call(e,v,t,f),h}))}},{&quot;./get&quot;:219,&quot;es5-ext/function/is-arguments&quot;:184,&quot;es5-ext/object/valid-callable&quot;:209,&quot;es5-ext/string/is-string&quot;:215}],219:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/string/is-string&quot;),a=t(&quot;./array&quot;),o=t(&quot;./string&quot;),s=t(&quot;./valid-iterable&quot;),l=t(&quot;es6-symbol&quot;).iterator;e.exports=function(t){return&quot;function&quot;==typeof s(t)[l]?t[l]():n(t)?new a(t):i(t)?new o(t):new a(t)}},{&quot;./array&quot;:217,&quot;./string&quot;:222,&quot;./valid-iterable&quot;:223,&quot;es5-ext/function/is-arguments&quot;:184,&quot;es5-ext/string/is-string&quot;:215,&quot;es6-symbol&quot;:225}],220:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/array/#/clear&quot;),a=t(&quot;es5-ext/object/assign&quot;),o=t(&quot;es5-ext/object/valid-callable&quot;),s=t(&quot;es5-ext/object/valid-value&quot;),l=t(&quot;d&quot;),c=t(&quot;d/auto-bind&quot;),u=t(&quot;es6-symbol&quot;),f=Object.defineProperty,h=Object.defineProperties;e.exports=n=function(t,e){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);h(this,{__list__:l(&quot;w&quot;,s(t)),__context__:l(&quot;w&quot;,e),__nextIndex__:l(&quot;w&quot;,0)}),e&amp;&amp;(o(e.on),e.on(&quot;_add&quot;,this._onAdd),e.on(&quot;_delete&quot;,this._onDelete),e.on(&quot;_clear&quot;,this._onClear))},delete n.prototype.constructor,h(n.prototype,a({_next:l((function(){var t;if(this.__list__)return this.__redo__&amp;&amp;void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__&lt;this.__list__.length?this.__nextIndex__++:void this._unBind()})),next:l((function(){return this._createResult(this._next())})),_createResult:l((function(t){return void 0===t?{done:!0,value:void 0}:{done:!1,value:this._resolve(t)}})),_resolve:l((function(t){return this.__list__[t]})),_unBind:l((function(){this.__list__=null,delete this.__redo__,this.__context__&amp;&amp;(this.__context__.off(&quot;_add&quot;,this._onAdd),this.__context__.off(&quot;_delete&quot;,this._onDelete),this.__context__.off(&quot;_clear&quot;,this._onClear),this.__context__=null)})),toString:l((function(){return&quot;[object &quot;+(this[u.toStringTag]||&quot;Object&quot;)+&quot;]&quot;}))},c({_onAdd:l((function(t){t&gt;=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach((function(e,r){e&gt;=t&amp;&amp;(this.__redo__[r]=++e)}),this),this.__redo__.push(t)):f(this,&quot;__redo__&quot;,l(&quot;c&quot;,[t])))})),_onDelete:l((function(t){var e;t&gt;=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&amp;&amp;(-1!==(e=this.__redo__.indexOf(t))&amp;&amp;this.__redo__.splice(e,1),this.__redo__.forEach((function(e,r){e&gt;t&amp;&amp;(this.__redo__[r]=--e)}),this)))})),_onClear:l((function(){this.__redo__&amp;&amp;i.call(this.__redo__),this.__nextIndex__=0}))}))),f(n.prototype,u.iterator,l((function(){return this})))},{d:155,&quot;d/auto-bind&quot;:154,&quot;es5-ext/array/#/clear&quot;:180,&quot;es5-ext/object/assign&quot;:193,&quot;es5-ext/object/valid-callable&quot;:209,&quot;es5-ext/object/valid-value&quot;:211,&quot;es6-symbol&quot;:225}],221:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/object/is-value&quot;),a=t(&quot;es5-ext/string/is-string&quot;),o=t(&quot;es6-symbol&quot;).iterator,s=Array.isArray;e.exports=function(t){return!!i(t)&amp;&amp;(!!s(t)||(!!a(t)||(!!n(t)||&quot;function&quot;==typeof t[o])))}},{&quot;es5-ext/function/is-arguments&quot;:184,&quot;es5-ext/object/is-value&quot;:200,&quot;es5-ext/string/is-string&quot;:215,&quot;es6-symbol&quot;:225}],222:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/set-prototype-of&quot;),a=t(&quot;d&quot;),o=t(&quot;es6-symbol&quot;),s=t(&quot;./&quot;),l=Object.defineProperty;n=e.exports=function(t){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);t=String(t),s.call(this,t),l(this,&quot;__length__&quot;,a(&quot;&quot;,t.length))},i&amp;&amp;i(n,s),delete n.prototype.constructor,n.prototype=Object.create(s.prototype,{_next:a((function(){if(this.__list__)return this.__nextIndex__&lt;this.__length__?this.__nextIndex__++:void this._unBind()})),_resolve:a((function(t){var e,r=this.__list__[t];return this.__nextIndex__===this.__length__?r:(e=r.charCodeAt(0))&gt;=55296&amp;&amp;e&lt;=56319?r+this.__list__[this.__nextIndex__++]:r}))}),l(n.prototype,o.toStringTag,a(&quot;c&quot;,&quot;String Iterator&quot;))},{&quot;./&quot;:220,d:155,&quot;es5-ext/object/set-prototype-of&quot;:206,&quot;es6-symbol&quot;:225}],223:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-iterable&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not iterable&quot;);return t}},{&quot;./is-iterable&quot;:221}],224:[function(t,e,r){(function(n,i){(function(){
/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
 * @version   v4.2.8+1e68dce6
 */
!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?e.exports=n():t.ES6Promise=n()}(this,(function(){&quot;use strict&quot;;function e(t){return&quot;function&quot;==typeof t}var r=Array.isArray?Array.isArray:function(t){return&quot;[object Array]&quot;===Object.prototype.toString.call(t)},a=0,o=void 0,s=void 0,l=function(t,e){g[a]=t,g[a+1]=e,2===(a+=2)&amp;&amp;(s?s(m):_())};var c=&quot;undefined&quot;!=typeof window?window:void 0,u=c||{},f=u.MutationObserver||u.WebKitMutationObserver,h=&quot;undefined&quot;==typeof self&amp;&amp;&quot;undefined&quot;!=typeof n&amp;&amp;&quot;[object process]&quot;==={}.toString.call(n),p=&quot;undefined&quot;!=typeof Uint8ClampedArray&amp;&amp;&quot;undefined&quot;!=typeof importScripts&amp;&amp;&quot;undefined&quot;!=typeof MessageChannel;function d(){var t=setTimeout;return function(){return t(m,1)}}var g=new Array(1e3);function m(){for(var t=0;t&lt;a;t+=2){(0,g[t])(g[t+1]),g[t]=void 0,g[t+1]=void 0}a=0}var v,y,x,b,_=void 0;function w(t,e){var r=this,n=new this.constructor(M);void 0===n[k]&amp;&amp;D(n);var i=r._state;if(i){var a=arguments[i-1];l((function(){return z(i,n,a,r._result)}))}else I(r,n,t,e);return n}function T(t){if(t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;t.constructor===this)return t;var e=new this(M);return S(e,t),e}h?_=function(){return n.nextTick(m)}:f?(y=0,x=new f(m),b=document.createTextNode(&quot;&quot;),x.observe(b,{characterData:!0}),_=function(){b.data=y=++y%2}):p?((v=new MessageChannel).port1.onmessage=m,_=function(){return v.port2.postMessage(0)}):_=void 0===c&amp;&amp;&quot;function&quot;==typeof t?function(){try{var t=Function(&quot;return this&quot;)().require(&quot;vertx&quot;);return&quot;undefined&quot;!=typeof(o=t.runOnLoop||t.runOnContext)?function(){o(m)}:d()}catch(t){return d()}}():d();var k=Math.random().toString(36).substring(2);function M(){}function A(t,r,n){r.constructor===t.constructor&amp;&amp;n===w&amp;&amp;r.constructor.resolve===T?function(t,e){1===e._state?C(t,e._result):2===e._state?L(t,e._result):I(e,void 0,(function(e){return S(t,e)}),(function(e){return L(t,e)}))}(t,r):void 0===n?C(t,r):e(n)?function(t,e,r){l((function(t){var n=!1,i=function(t,e,r,n){try{t.call(e,r,n)}catch(t){return t}}(r,e,(function(r){n||(n=!0,e!==r?S(t,r):C(t,r))}),(function(e){n||(n=!0,L(t,e))}),t._label);!n&amp;&amp;i&amp;&amp;(n=!0,L(t,i))}),t)}(t,r,n):C(t,r)}function S(t,e){if(t===e)L(t,new TypeError(&quot;You cannot resolve a promise with itself&quot;));else if(i=typeof(n=e),null===n||&quot;object&quot;!==i&amp;&amp;&quot;function&quot;!==i)C(t,e);else{var r=void 0;try{r=e.then}catch(e){return void L(t,e)}A(t,e,r)}var n,i}function E(t){t._onerror&amp;&amp;t._onerror(t._result),P(t)}function C(t,e){void 0===t._state&amp;&amp;(t._result=e,t._state=1,0!==t._subscribers.length&amp;&amp;l(P,t))}function L(t,e){void 0===t._state&amp;&amp;(t._state=2,t._result=e,l(E,t))}function I(t,e,r,n){var i=t._subscribers,a=i.length;t._onerror=null,i[a]=e,i[a+1]=r,i[a+2]=n,0===a&amp;&amp;t._state&amp;&amp;l(P,t)}function P(t){var e=t._subscribers,r=t._state;if(0!==e.length){for(var n=void 0,i=void 0,a=t._result,o=0;o&lt;e.length;o+=3)n=e[o],i=e[o+r],n?z(r,n,i,a):i(a);t._subscribers.length=0}}function z(t,r,n,i){var a=e(n),o=void 0,s=void 0,l=!0;if(a){try{o=n(i)}catch(t){l=!1,s=t}if(r===o)return void L(r,new TypeError(&quot;A promises callback cannot return that same promise.&quot;))}else o=i;void 0!==r._state||(a&amp;&amp;l?S(r,o):!1===l?L(r,s):1===t?C(r,o):2===t&amp;&amp;L(r,o))}var O=0;function D(t){t[k]=O++,t._state=void 0,t._result=void 0,t._subscribers=[]}var R=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(M),this.promise[k]||D(this.promise),r(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?C(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&amp;&amp;C(this.promise,this._result))):L(this.promise,new Error(&quot;Array Methods must be provided an Array&quot;))}return t.prototype._enumerate=function(t){for(var e=0;void 0===this._state&amp;&amp;e&lt;t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,n=r.resolve;if(n===T){var i=void 0,a=void 0,o=!1;try{i=t.then}catch(t){o=!0,a=t}if(i===w&amp;&amp;void 0!==t._state)this._settledAt(t._state,e,t._result);else if(&quot;function&quot;!=typeof i)this._remaining--,this._result[e]=t;else if(r===F){var s=new r(M);o?L(s,a):A(s,t,i),this._willSettleAt(s,e)}else this._willSettleAt(new r((function(e){return e(t)})),e)}else this._willSettleAt(n(t),e)},t.prototype._settledAt=function(t,e,r){var n=this.promise;void 0===n._state&amp;&amp;(this._remaining--,2===t?L(n,r):this._result[e]=r),0===this._remaining&amp;&amp;C(n,this._result)},t.prototype._willSettleAt=function(t,e){var r=this;I(t,void 0,(function(t){return r._settledAt(1,e,t)}),(function(t){return r._settledAt(2,e,t)}))},t}();var F=function(){function t(e){this[k]=O++,this._result=this._state=void 0,this._subscribers=[],M!==e&amp;&amp;(&quot;function&quot;!=typeof e&amp;&amp;function(){throw new TypeError(&quot;You must pass a resolver function as the first argument to the promise constructor&quot;)}(),this instanceof t?function(t,e){try{e((function(e){S(t,e)}),(function(e){L(t,e)}))}catch(e){L(t,e)}}(this,e):function(){throw new TypeError(&quot;Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.&quot;)}())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var r=this.constructor;return e(t)?this.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){throw e}))})):this.then(t,t)},t}();return F.prototype.then=w,F.all=function(t){return new R(this,t).promise},F.race=function(t){var e=this;return r(t)?new e((function(r,n){for(var i=t.length,a=0;a&lt;i;a++)e.resolve(t[a]).then(r,n)})):new e((function(t,e){return e(new TypeError(&quot;You must pass an array to race.&quot;))}))},F.resolve=T,F.reject=function(t){var e=new this(M);return L(e,t),e},F._setScheduler=function(t){s=t},F._setAsap=function(t){l=t},F._asap=l,F.polyfill=function(){var t=void 0;if(&quot;undefined&quot;!=typeof i)t=i;else if(&quot;undefined&quot;!=typeof self)t=self;else try{t=Function(&quot;return this&quot;)()}catch(t){throw new Error(&quot;polyfill failed because global object is unavailable in this environment&quot;)}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if(&quot;[object Promise]&quot;===r&amp;&amp;!e.cast)return}t.Promise=F},F.Promise=F,F}))}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{_process:526}],225:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?t(&quot;ext/global-this&quot;).Symbol:t(&quot;./polyfill&quot;)},{&quot;./is-implemented&quot;:226,&quot;./polyfill&quot;:231,&quot;ext/global-this&quot;:238}],226:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ext/global-this&quot;),i={object:!0,symbol:!0};e.exports=function(){var t,e=n.Symbol;if(&quot;function&quot;!=typeof e)return!1;t=e(&quot;test symbol&quot;);try{String(t)}catch(t){return!1}return!!i[typeof e.iterator]&amp;&amp;(!!i[typeof e.toPrimitive]&amp;&amp;!!i[typeof e.toStringTag])}},{&quot;ext/global-this&quot;:238}],227:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return!!t&amp;&amp;(&quot;symbol&quot;==typeof t||!!t.constructor&amp;&amp;(&quot;Symbol&quot;===t.constructor.name&amp;&amp;&quot;Symbol&quot;===t[t.constructor.toStringTag]))}},{}],228:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=Object.create,a=Object.defineProperty,o=Object.prototype,s=i(null);e.exports=function(t){for(var e,r,i=0;s[t+(i||&quot;&quot;)];)++i;return s[t+=i||&quot;&quot;]=!0,a(o,e=&quot;@@&quot;+t,n.gs(null,(function(t){r||(r=!0,a(this,e,n(t)),r=!1)}))),e}},{d:155}],229:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=t(&quot;ext/global-this&quot;).Symbol;e.exports=function(t){return Object.defineProperties(t,{hasInstance:n(&quot;&quot;,i&amp;&amp;i.hasInstance||t(&quot;hasInstance&quot;)),isConcatSpreadable:n(&quot;&quot;,i&amp;&amp;i.isConcatSpreadable||t(&quot;isConcatSpreadable&quot;)),iterator:n(&quot;&quot;,i&amp;&amp;i.iterator||t(&quot;iterator&quot;)),match:n(&quot;&quot;,i&amp;&amp;i.match||t(&quot;match&quot;)),replace:n(&quot;&quot;,i&amp;&amp;i.replace||t(&quot;replace&quot;)),search:n(&quot;&quot;,i&amp;&amp;i.search||t(&quot;search&quot;)),species:n(&quot;&quot;,i&amp;&amp;i.species||t(&quot;species&quot;)),split:n(&quot;&quot;,i&amp;&amp;i.split||t(&quot;split&quot;)),toPrimitive:n(&quot;&quot;,i&amp;&amp;i.toPrimitive||t(&quot;toPrimitive&quot;)),toStringTag:n(&quot;&quot;,i&amp;&amp;i.toStringTag||t(&quot;toStringTag&quot;)),unscopables:n(&quot;&quot;,i&amp;&amp;i.unscopables||t(&quot;unscopables&quot;))})}},{d:155,&quot;ext/global-this&quot;:238}],230:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=t(&quot;../../../validate-symbol&quot;),a=Object.create(null);e.exports=function(t){return Object.defineProperties(t,{for:n((function(e){return a[e]?a[e]:a[e]=t(String(e))})),keyFor:n((function(t){var e;for(e in i(t),a)if(a[e]===t)return e}))})}},{&quot;../../../validate-symbol&quot;:232,d:155}],231:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o=t(&quot;d&quot;),s=t(&quot;./validate-symbol&quot;),l=t(&quot;ext/global-this&quot;).Symbol,c=t(&quot;./lib/private/generate-name&quot;),u=t(&quot;./lib/private/setup/standard-symbols&quot;),f=t(&quot;./lib/private/setup/symbol-registry&quot;),h=Object.create,p=Object.defineProperties,d=Object.defineProperty;if(&quot;function&quot;==typeof l)try{String(l()),a=!0}catch(t){}else l=null;i=function(t){if(this instanceof i)throw new TypeError(&quot;Symbol is not a constructor&quot;);return n(t)},e.exports=n=function t(e){var r;if(this instanceof t)throw new TypeError(&quot;Symbol is not a constructor&quot;);return a?l(e):(r=h(i.prototype),e=void 0===e?&quot;&quot;:String(e),p(r,{__description__:o(&quot;&quot;,e),__name__:o(&quot;&quot;,c(e))}))},u(n),f(n),p(i.prototype,{constructor:o(n),toString:o(&quot;&quot;,(function(){return this.__name__}))}),p(n.prototype,{toString:o((function(){return&quot;Symbol (&quot;+s(this).__description__+&quot;)&quot;})),valueOf:o((function(){return s(this)}))}),d(n.prototype,n.toPrimitive,o(&quot;&quot;,(function(){var t=s(this);return&quot;symbol&quot;==typeof t?t:t.toString()}))),d(n.prototype,n.toStringTag,o(&quot;c&quot;,&quot;Symbol&quot;)),d(i.prototype,n.toStringTag,o(&quot;c&quot;,n.prototype[n.toStringTag])),d(i.prototype,n.toPrimitive,o(&quot;c&quot;,n.prototype[n.toPrimitive]))},{&quot;./lib/private/generate-name&quot;:228,&quot;./lib/private/setup/standard-symbols&quot;:229,&quot;./lib/private/setup/symbol-registry&quot;:230,&quot;./validate-symbol&quot;:232,d:155,&quot;ext/global-this&quot;:238}],232:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-symbol&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not a symbol&quot;);return t}},{&quot;./is-symbol&quot;:227}],233:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?WeakMap:t(&quot;./polyfill&quot;)},{&quot;./is-implemented&quot;:234,&quot;./polyfill&quot;:236}],234:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e;if(&quot;function&quot;!=typeof WeakMap)return!1;try{t=new WeakMap([[e={},&quot;one&quot;],[{},&quot;two&quot;],[{},&quot;three&quot;]])}catch(t){return!1}return&quot;[object WeakMap]&quot;===String(t)&amp;&amp;(&quot;function&quot;==typeof t.set&amp;&amp;(t.set({},1)===t&amp;&amp;(&quot;function&quot;==typeof t.delete&amp;&amp;(&quot;function&quot;==typeof t.has&amp;&amp;&quot;one&quot;===t.get(e)))))}},{}],235:[function(t,e,r){&quot;use strict&quot;;e.exports=&quot;function&quot;==typeof WeakMap&amp;&amp;&quot;[object WeakMap]&quot;===Object.prototype.toString.call(new WeakMap)},{}],236:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/is-value&quot;),a=t(&quot;es5-ext/object/set-prototype-of&quot;),o=t(&quot;es5-ext/object/valid-object&quot;),s=t(&quot;es5-ext/object/valid-value&quot;),l=t(&quot;es5-ext/string/random-uniq&quot;),c=t(&quot;d&quot;),u=t(&quot;es6-iterator/get&quot;),f=t(&quot;es6-iterator/for-of&quot;),h=t(&quot;es6-symbol&quot;).toStringTag,p=t(&quot;./is-native-implemented&quot;),d=Array.isArray,g=Object.defineProperty,m=Object.prototype.hasOwnProperty,v=Object.getPrototypeOf;e.exports=n=function(){var t,e=arguments[0];if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);return t=p&amp;&amp;a&amp;&amp;WeakMap!==n?a(new WeakMap,v(this)):this,i(e)&amp;&amp;(d(e)||(e=u(e))),g(t,&quot;__weakMapData__&quot;,c(&quot;c&quot;,&quot;$weakMap$&quot;+l())),e?(f(e,(function(e){s(e),t.set(e[0],e[1])})),t):t},p&amp;&amp;(a&amp;&amp;a(n,WeakMap),n.prototype=Object.create(WeakMap.prototype,{constructor:c(n)})),Object.defineProperties(n.prototype,{delete:c((function(t){return!!m.call(o(t),this.__weakMapData__)&amp;&amp;(delete t[this.__weakMapData__],!0)})),get:c((function(t){if(m.call(o(t),this.__weakMapData__))return t[this.__weakMapData__]})),has:c((function(t){return m.call(o(t),this.__weakMapData__)})),set:c((function(t,e){return g(o(t),this.__weakMapData__,c(&quot;c&quot;,e)),this})),toString:c((function(){return&quot;[object WeakMap]&quot;}))}),g(n.prototype,h,c(&quot;c&quot;,&quot;WeakMap&quot;))},{&quot;./is-native-implemented&quot;:235,d:155,&quot;es5-ext/object/is-value&quot;:200,&quot;es5-ext/object/set-prototype-of&quot;:206,&quot;es5-ext/object/valid-object&quot;:210,&quot;es5-ext/object/valid-value&quot;:211,&quot;es5-ext/string/random-uniq&quot;:216,&quot;es6-iterator/for-of&quot;:218,&quot;es6-iterator/get&quot;:219,&quot;es6-symbol&quot;:225}],237:[function(t,e,r){var n=function(){if(&quot;object&quot;==typeof self&amp;&amp;self)return self;if(&quot;object&quot;==typeof window&amp;&amp;window)return window;throw new Error(&quot;Unable to resolve global `this`&quot;)};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,&quot;__global__&quot;,{get:function(){return this},configurable:!0})}catch(t){return n()}try{return __global__||n()}finally{delete Object.prototype.__global__}}()},{}],238:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?globalThis:t(&quot;./implementation&quot;)},{&quot;./implementation&quot;:237,&quot;./is-implemented&quot;:239}],239:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){return&quot;object&quot;==typeof globalThis&amp;&amp;(!!globalThis&amp;&amp;globalThis.Array===Array)}},{}],240:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n=e||0,i=r||1;return[[t[12]+t[0],t[13]+t[1],t[14]+t[2],t[15]+t[3]],[t[12]-t[0],t[13]-t[1],t[14]-t[2],t[15]-t[3]],[t[12]+t[4],t[13]+t[5],t[14]+t[6],t[15]+t[7]],[t[12]-t[4],t[13]-t[5],t[14]-t[6],t[15]-t[7]],[n*t[12]+t[8],n*t[13]+t[9],n*t[14]+t[10],n*t[15]+t[11]],[i*t[12]-t[8],i*t[13]-t[9],i*t[14]-t[10],i*t[15]-t[11]]]}},{}],241:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-string-blank&quot;);e.exports=function(t){var e=typeof t;if(&quot;string&quot;===e){var r=t;if(0===(t=+t)&amp;&amp;n(r))return!1}else if(&quot;number&quot;!==e)return!1;return t-t&lt;1}},{&quot;is-string-blank&quot;:470}],242:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){switch(arguments.length){case 0:return new o([0],[0],0);case 1:return&quot;number&quot;==typeof t?new o(n=l(t),n,0):new o(t,l(t.length),0);case 2:if(&quot;number&quot;==typeof e){var n=l(t.length);return new o(t,n,+e)}r=0;case 3:if(t.length!==e.length)throw new Error(&quot;state and velocity lengths must match&quot;);return new o(t,e,r)}};var n=t(&quot;cubic-hermite&quot;),i=t(&quot;binary-search-bounds&quot;);function a(t,e,r){return Math.min(e,Math.max(t,r))}function o(t,e,r){this.dimension=t.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var n=0;n&lt;this.dimension;++n)this.bounds[0][n]=-1/0,this.bounds[1][n]=1/0;this._state=t.slice().reverse(),this._velocity=e.slice().reverse(),this._time=[r],this._scratch=[t.slice(),t.slice(),t.slice(),t.slice(),t.slice()]}var s=o.prototype;function l(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=0;return e}s.flush=function(t){var e=i.gt(this._time,t)-1;e&lt;=0||(this._time.splice(0,e),this._state.splice(0,e*this.dimension),this._velocity.splice(0,e*this.dimension))},s.curve=function(t){var e=this._time,r=e.length,o=i.le(e,t),s=this._scratch[0],l=this._state,c=this._velocity,u=this.dimension,f=this.bounds;if(o&lt;0)for(var h=u-1,p=0;p&lt;u;++p,--h)s[p]=l[h];else if(o&gt;=r-1){h=l.length-1;var d=t-e[r-1];for(p=0;p&lt;u;++p,--h)s[p]=l[h]+d*c[h]}else{h=u*(o+1)-1;var g=e[o],m=e[o+1]-g||1,v=this._scratch[1],y=this._scratch[2],x=this._scratch[3],b=this._scratch[4],_=!0;for(p=0;p&lt;u;++p,--h)v[p]=l[h],x[p]=c[h]*m,y[p]=l[h+u],b[p]=c[h+u]*m,_=_&amp;&amp;v[p]===y[p]&amp;&amp;x[p]===b[p]&amp;&amp;0===x[p];if(_)for(p=0;p&lt;u;++p)s[p]=v[p];else n(v,x,y,b,(t-g)/m,s)}var w=f[0],T=f[1];for(p=0;p&lt;u;++p)s[p]=a(w[p],T[p],s[p]);return s},s.dcurve=function(t){var e=this._time,r=e.length,a=i.le(e,t),o=this._scratch[0],s=this._state,l=this._velocity,c=this.dimension;if(a&gt;=r-1)for(var u=s.length-1,f=(e[r-1],0);f&lt;c;++f,--u)o[f]=l[u];else{u=c*(a+1)-1;var h=e[a],p=e[a+1]-h||1,d=this._scratch[1],g=this._scratch[2],m=this._scratch[3],v=this._scratch[4],y=!0;for(f=0;f&lt;c;++f,--u)d[f]=s[u],m[f]=l[u]*p,g[f]=s[u+c],v[f]=l[u+c]*p,y=y&amp;&amp;d[f]===g[f]&amp;&amp;m[f]===v[f]&amp;&amp;0===m[f];if(y)for(f=0;f&lt;c;++f)o[f]=0;else{n.derivative(d,m,g,v,(t-h)/p,o);for(f=0;f&lt;c;++f)o[f]/=p}}return o},s.lastT=function(){var t=this._time;return t[t.length-1]},s.stable=function(){for(var t=this._velocity,e=t.length,r=this.dimension-1;r&gt;=0;--r)if(t[--e])return!1;return!0},s.jump=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1];this._time.push(e,t);for(var u=0;u&lt;2;++u)for(var f=0;f&lt;r;++f)n.push(n[o++]),i.push(0);this._time.push(t);for(f=r;f&gt;0;--f)n.push(a(l[f-1],c[f-1],arguments[f])),i.push(0)}},s.push=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=t-e,l=this.bounds,c=l[0],u=l[1],f=s&gt;1e-6?1/s:0;this._time.push(t);for(var h=r;h&gt;0;--h){var p=a(c[h-1],u[h-1],arguments[h]);n.push(p),i.push((p-n[o++])*f)}}},s.set=function(t){var e=this.dimension;if(!(t&lt;this.lastT()||arguments.length!==e+1)){var r=this._state,n=this._velocity,i=this.bounds,o=i[0],s=i[1];this._time.push(t);for(var l=e;l&gt;0;--l)r.push(a(o[l-1],s[l-1],arguments[l])),n.push(0)}},s.move=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;=e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1],u=t-e,f=u&gt;1e-6?1/u:0;this._time.push(t);for(var h=r;h&gt;0;--h){var p=arguments[h];n.push(a(l[h-1],c[h-1],n[o++]+p)),i.push(p*f)}}},s.idle=function(t){var e=this.lastT();if(!(t&lt;e)){var r=this.dimension,n=this._state,i=this._velocity,o=n.length-r,s=this.bounds,l=s[0],c=s[1],u=t-e;this._time.push(t);for(var f=r-1;f&gt;=0;--f)n.push(a(l[f],c[f],n[o]+u*i[o])),i.push(0),o+=1}}},{&quot;binary-search-bounds&quot;:243,&quot;cubic-hermite&quot;:150}],243:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i,a){var o=[&quot;function &quot;,t,&quot;(a,l,h,&quot;,n.join(&quot;,&quot;),&quot;){&quot;,a?&quot;&quot;:&quot;var i=&quot;,r?&quot;l-1&quot;:&quot;h+1&quot;,&quot;;while(l&lt;=h){var m=(l+h)&gt;&gt;&gt;1,x=a&quot;,i?&quot;.get(m)&quot;:&quot;[m]&quot;];return a?e.indexOf(&quot;c&quot;)&lt;0?o.push(&quot;;if(x===y){return m}else if(x&lt;=y){&quot;):o.push(&quot;;var p=c(x,y);if(p===0){return m}else if(p&lt;=0){&quot;):o.push(&quot;;if(&quot;,e,&quot;){i=m;&quot;),r?o.push(&quot;l=m+1}else{h=m-1}&quot;):o.push(&quot;h=m-1}else{l=m+1}&quot;),o.push(&quot;}&quot;),a?o.push(&quot;return -1};&quot;):o.push(&quot;return i};&quot;),o.join(&quot;&quot;)}function i(t,e,r,i){return new Function([n(&quot;A&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],!1,i),n(&quot;B&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],!0,i),n(&quot;P&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],!1,i),n(&quot;Q&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],!0,i),&quot;function dispatchBsearch&quot;,r,&quot;(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch&quot;,r].join(&quot;&quot;))()}e.exports={ge:i(&quot;&gt;=&quot;,!1,&quot;GE&quot;),gt:i(&quot;&gt;&quot;,!1,&quot;GT&quot;),lt:i(&quot;&lt;&quot;,!0,&quot;LT&quot;),le:i(&quot;&lt;=&quot;,!0,&quot;LE&quot;),eq:i(&quot;-&quot;,!0,&quot;EQ&quot;,!0)}},{}],244:[function(t,e,r){var n=t(&quot;dtype&quot;);e.exports=function(t,e,r){if(!t)throw new TypeError(&quot;must specify data as first parameter&quot;);if(r=0|+(r||0),Array.isArray(t)&amp;&amp;t[0]&amp;&amp;&quot;number&quot;==typeof t[0][0]){var i,a,o,s,l=t[0].length,c=t.length*l;e&amp;&amp;&quot;string&quot;!=typeof e||(e=new(n(e||&quot;float32&quot;))(c+r));var u=e.length-r;if(c!==u)throw new Error(&quot;source length &quot;+c+&quot; (&quot;+l+&quot;x&quot;+t.length+&quot;) does not match destination length &quot;+u);for(i=0,o=r;i&lt;t.length;i++)for(a=0;a&lt;l;a++)e[o++]=null===t[i][a]?NaN:t[i][a]}else if(e&amp;&amp;&quot;string&quot;!=typeof e)e.set(t,r);else{var f=n(e||&quot;float32&quot;);if(Array.isArray(t)||&quot;array&quot;===e)for(e=new f(t.length+r),i=0,o=r,s=e.length;o&lt;s;o++,i++)e[o]=null===t[i]?NaN:t[i];else 0===r?e=new f(t):(e=new f(t.length+r)).set(t,r)}return e}},{dtype:175}],245:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font/stringify&quot;),i=[32,126];e.exports=function(t){var e=(t=t||{}).shape?t.shape:t.canvas?[t.canvas.width,t.canvas.height]:[512,512],r=t.canvas||document.createElement(&quot;canvas&quot;),a=t.font,o=&quot;number&quot;==typeof t.step?[t.step,t.step]:t.step||[32,32],s=t.chars||i;a&amp;&amp;&quot;string&quot;!=typeof a&amp;&amp;(a=n(a));if(Array.isArray(s)){if(2===s.length&amp;&amp;&quot;number&quot;==typeof s[0]&amp;&amp;&quot;number&quot;==typeof s[1]){for(var l=[],c=s[0],u=0;c&lt;=s[1];c++)l[u++]=String.fromCharCode(c);s=l}}else s=String(s).split(&quot;&quot;);e=e.slice(),r.width=e[0],r.height=e[1];var f=r.getContext(&quot;2d&quot;);f.fillStyle=&quot;#000&quot;,f.fillRect(0,0,r.width,r.height),f.font=a,f.textAlign=&quot;center&quot;,f.textBaseline=&quot;middle&quot;,f.fillStyle=&quot;#fff&quot;;var h=o[0]/2,p=o[1]/2;for(c=0;c&lt;s.length;c++)f.fillText(s[c],h,p),(h+=o[0])&gt;e[0]-o[0]/2&amp;&amp;(h=o[0]/2,p+=o[1]);return r}},{&quot;css-font/stringify&quot;:147}],246:[function(t,e,r){&quot;use strict&quot;;function n(t,e){e||(e={}),(&quot;string&quot;==typeof t||Array.isArray(t))&amp;&amp;(e.family=t);var r=Array.isArray(e.family)?e.family.join(&quot;, &quot;):e.family;if(!r)throw Error(&quot;`family` must be defined&quot;);var s=e.size||e.fontSize||e.em||48,l=e.weight||e.fontWeight||&quot;&quot;,c=(t=[e.style||e.fontStyle||&quot;&quot;,l,s].join(&quot; &quot;)+&quot;px &quot;+r,e.origin||&quot;top&quot;);if(n.cache[r]&amp;&amp;s&lt;=n.cache[r].em)return i(n.cache[r],c);var u=e.canvas||n.canvas,f=u.getContext(&quot;2d&quot;),h={upper:void 0!==e.upper?e.upper:&quot;H&quot;,lower:void 0!==e.lower?e.lower:&quot;x&quot;,descent:void 0!==e.descent?e.descent:&quot;p&quot;,ascent:void 0!==e.ascent?e.ascent:&quot;h&quot;,tittle:void 0!==e.tittle?e.tittle:&quot;i&quot;,overshoot:void 0!==e.overshoot?e.overshoot:&quot;O&quot;},p=Math.ceil(1.5*s);u.height=p,u.width=.5*p,f.font=t;var d={top:0};f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillStyle=&quot;black&quot;,f.fillText(&quot;H&quot;,0,0);var g=a(f.getImageData(0,0,p,p));f.clearRect(0,0,p,p),f.textBaseline=&quot;bottom&quot;,f.fillText(&quot;H&quot;,0,p);var m=a(f.getImageData(0,0,p,p));d.lineHeight=d.bottom=p-m+g,f.clearRect(0,0,p,p),f.textBaseline=&quot;alphabetic&quot;,f.fillText(&quot;H&quot;,0,p);var v=p-a(f.getImageData(0,0,p,p))-1+g;d.baseline=d.alphabetic=v,f.clearRect(0,0,p,p),f.textBaseline=&quot;middle&quot;,f.fillText(&quot;H&quot;,0,.5*p);var y=a(f.getImageData(0,0,p,p));d.median=d.middle=p-y-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=&quot;hanging&quot;,f.fillText(&quot;H&quot;,0,.5*p);var x=a(f.getImageData(0,0,p,p));d.hanging=p-x-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=&quot;ideographic&quot;,f.fillText(&quot;H&quot;,0,p);var b=a(f.getImageData(0,0,p,p));if(d.ideographic=p-b-1+g,h.upper&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.upper,0,0),d.upper=a(f.getImageData(0,0,p,p)),d.capHeight=d.baseline-d.upper),h.lower&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.lower,0,0),d.lower=a(f.getImageData(0,0,p,p)),d.xHeight=d.baseline-d.lower),h.tittle&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.tittle,0,0),d.tittle=a(f.getImageData(0,0,p,p))),h.ascent&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.ascent,0,0),d.ascent=a(f.getImageData(0,0,p,p))),h.descent&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.descent,0,0),d.descent=o(f.getImageData(0,0,p,p))),h.overshoot){f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.overshoot,0,0);var _=o(f.getImageData(0,0,p,p));d.overshoot=_-v}for(var w in d)d[w]/=s;return d.em=s,n.cache[r]=d,i(d,c)}function i(t,e){var r={};for(var n in&quot;string&quot;==typeof e&amp;&amp;(e=t[e]),t)&quot;em&quot;!==n&amp;&amp;(r[n]=t[n]-e);return r}function a(t){for(var e=t.height,r=t.data,n=3;n&lt;r.length;n+=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}function o(t){for(var e=t.height,r=t.data,n=r.length-1;n&gt;0;n-=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}e.exports=n,n.canvas=document.createElement(&quot;canvas&quot;),n.cache={}},{}],247:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return new s(t||g,null)};function n(t,e,r,n,i,a){this._color=t,this.key=e,this.value=r,this.left=n,this.right=i,this._count=a}function i(t){return new n(t._color,t.key,t.value,t.left,t.right,t._count)}function a(t,e){return new n(t,e.key,e.value,e.left,e.right,e._count)}function o(t){t._count=1+(t.left?t.left._count:0)+(t.right?t.right._count:0)}function s(t,e){this._compare=t,this.root=e}var l=s.prototype;function c(t,e){var r;if(e.left&amp;&amp;(r=c(t,e.left)))return r;return(r=t(e.key,e.value))||(e.right?c(t,e.right):void 0)}function u(t,e,r,n){if(e(t,n.key)&lt;=0){var i;if(n.left)if(i=u(t,e,r,n.left))return i;if(i=r(n.key,n.value))return i}if(n.right)return u(t,e,r,n.right)}function f(t,e,r,n,i){var a,o=r(t,i.key),s=r(e,i.key);if(o&lt;=0){if(i.left&amp;&amp;(a=f(t,e,r,n,i.left)))return a;if(s&gt;0&amp;&amp;(a=n(i.key,i.value)))return a}if(s&gt;0&amp;&amp;i.right)return f(t,e,r,n,i.right)}function h(t,e){this.tree=t,this._stack=e}Object.defineProperty(l,&quot;keys&quot;,{get:function(){var t=[];return this.forEach((function(e,r){t.push(e)})),t}}),Object.defineProperty(l,&quot;values&quot;,{get:function(){var t=[];return this.forEach((function(e,r){t.push(r)})),t}}),Object.defineProperty(l,&quot;length&quot;,{get:function(){return this.root?this.root._count:0}}),l.insert=function(t,e){for(var r=this._compare,i=this.root,l=[],c=[];i;){var u=r(t,i.key);l.push(i),c.push(u),i=u&lt;=0?i.left:i.right}l.push(new n(0,t,e,null,null,1));for(var f=l.length-2;f&gt;=0;--f){i=l[f];c[f]&lt;=0?l[f]=new n(i._color,i.key,i.value,l[f+1],i.right,i._count+1):l[f]=new n(i._color,i.key,i.value,i.left,l[f+1],i._count+1)}for(f=l.length-1;f&gt;1;--f){var h=l[f-1];i=l[f];if(1===h._color||1===i._color)break;var p=l[f-2];if(p.left===h)if(h.left===i){if(!(d=p.right)||0!==d._color){if(p._color=0,p.left=h.right,h._color=1,h.right=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f&gt;=3)(g=l[f-3]).left===p?g.left=h:g.right=h;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else{if(!(d=p.right)||0!==d._color){if(h.right=i.left,p._color=0,p.left=i.right,i._color=1,i.left=h,i.right=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f&gt;=3)(g=l[f-3]).left===p?g.left=i:g.right=i;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else if(h.right===i){if(!(d=p.left)||0!==d._color){if(p._color=0,p.right=h.left,h._color=1,h.left=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f&gt;=3)(g=l[f-3]).right===p?g.right=h:g.left=h;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}else{var d;if(!(d=p.left)||0!==d._color){var g;if(h.left=i.right,p._color=0,p.right=i.left,i._color=1,i.right=h,i.left=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f&gt;=3)(g=l[f-3]).right===p?g.right=i:g.left=i;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}}return l[0]._color=1,new s(r,l[0])},l.forEach=function(t,e,r){if(this.root)switch(arguments.length){case 1:return c(t,this.root);case 2:return u(e,this._compare,t,this.root);case 3:if(this._compare(e,r)&gt;=0)return;return f(e,r,this._compare,t,this.root)}},Object.defineProperty(l,&quot;begin&quot;,{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.left;return new h(this,t)}}),Object.defineProperty(l,&quot;end&quot;,{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.right;return new h(this,t)}}),l.at=function(t){if(t&lt;0)return new h(this,[]);for(var e=this.root,r=[];;){if(r.push(e),e.left){if(t&lt;e.left._count){e=e.left;continue}t-=e.left._count}if(!t)return new h(this,r);if(t-=1,!e.right)break;if(t&gt;=e.right._count)break;e=e.right}return new h(this,[])},l.ge=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&lt;=0&amp;&amp;(i=n.length),r=a&lt;=0?r.left:r.right}return n.length=i,new h(this,n)},l.gt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&lt;0&amp;&amp;(i=n.length),r=a&lt;0?r.left:r.right}return n.length=i,new h(this,n)},l.lt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&gt;0&amp;&amp;(i=n.length),r=a&lt;=0?r.left:r.right}return n.length=i,new h(this,n)},l.le=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&gt;=0&amp;&amp;(i=n.length),r=a&lt;0?r.left:r.right}return n.length=i,new h(this,n)},l.find=function(t){for(var e=this._compare,r=this.root,n=[];r;){var i=e(t,r.key);if(n.push(r),0===i)return new h(this,n);r=i&lt;=0?r.left:r.right}return new h(this,[])},l.remove=function(t){var e=this.find(t);return e?e.remove():this},l.get=function(t){for(var e=this._compare,r=this.root;r;){var n=e(t,r.key);if(0===n)return r.value;r=n&lt;=0?r.left:r.right}};var p=h.prototype;function d(t,e){t.key=e.key,t.value=e.value,t.left=e.left,t.right=e.right,t._color=e._color,t._count=e._count}function g(t,e){return t&lt;e?-1:t&gt;e?1:0}Object.defineProperty(p,&quot;valid&quot;,{get:function(){return this._stack.length&gt;0}}),Object.defineProperty(p,&quot;node&quot;,{get:function(){return this._stack.length&gt;0?this._stack[this._stack.length-1]:null},enumerable:!0}),p.clone=function(){return new h(this.tree,this._stack.slice())},p.remove=function(){var t=this._stack;if(0===t.length)return this.tree;var e=new Array(t.length),r=t[t.length-1];e[e.length-1]=new n(r._color,r.key,r.value,r.left,r.right,r._count);for(var l=t.length-2;l&gt;=0;--l){(r=t[l]).left===t[l+1]?e[l]=new n(r._color,r.key,r.value,e[l+1],r.right,r._count):e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count)}if((r=e[e.length-1]).left&amp;&amp;r.right){var c=e.length;for(r=r.left;r.right;)e.push(r),r=r.right;var u=e[c-1];e.push(new n(r._color,u.key,u.value,r.left,r.right,r._count)),e[c-1].key=r.key,e[c-1].value=r.value;for(l=e.length-2;l&gt;=c;--l)r=e[l],e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count);e[c-1].left=e[c]}if(0===(r=e[e.length-1])._color){var f=e[e.length-2];f.left===r?f.left=null:f.right===r&amp;&amp;(f.right=null),e.pop();for(l=0;l&lt;e.length;++l)e[l]._count--;return new s(this.tree._compare,e[0])}if(r.left||r.right){r.left?d(r,r.left):r.right&amp;&amp;d(r,r.right),r._color=1;for(l=0;l&lt;e.length-1;++l)e[l]._count--;return new s(this.tree._compare,e[0])}if(1===e.length)return new s(this.tree._compare,null);for(l=0;l&lt;e.length;++l)e[l]._count--;var h=e[e.length-2];return function(t){for(var e,r,n,s,l=t.length-1;l&gt;=0;--l){if(e=t[l],0===l)return void(e._color=1);if((r=t[l-1]).left===e){if((n=r.right).right&amp;&amp;0===n.right._color){if(s=(n=r.right=i(n)).right=i(n.right),r.right=n.left,n.left=r,n.right=s,n._color=r._color,e._color=1,r._color=1,s._color=1,o(r),o(n),l&gt;1)(c=t[l-2]).left===r?c.left=n:c.right=n;return void(t[l-1]=n)}if(n.left&amp;&amp;0===n.left._color){if(s=(n=r.right=i(n)).left=i(n.left),r.right=s.left,n.left=s.right,s.left=r,s.right=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l&gt;1)(c=t[l-2]).left===r?c.left=s:c.right=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.right=a(0,n));r.right=a(0,n);continue}n=i(n),r.right=n.left,n.left=r,n._color=r._color,r._color=0,o(r),o(n),l&gt;1&amp;&amp;((c=t[l-2]).left===r?c.left=n:c.right=n),t[l-1]=n,t[l]=r,l+1&lt;t.length?t[l+1]=e:t.push(e),l+=2}else{if((n=r.left).left&amp;&amp;0===n.left._color){if(s=(n=r.left=i(n)).left=i(n.left),r.left=n.right,n.right=r,n.left=s,n._color=r._color,e._color=1,r._color=1,s._color=1,o(r),o(n),l&gt;1)(c=t[l-2]).right===r?c.right=n:c.left=n;return void(t[l-1]=n)}if(n.right&amp;&amp;0===n.right._color){if(s=(n=r.left=i(n)).right=i(n.right),r.left=s.right,n.right=s.left,s.right=r,s.left=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l&gt;1)(c=t[l-2]).right===r?c.right=s:c.left=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.left=a(0,n));r.left=a(0,n);continue}var c;n=i(n),r.left=n.right,n.right=r,n._color=r._color,r._color=0,o(r),o(n),l&gt;1&amp;&amp;((c=t[l-2]).right===r?c.right=n:c.left=n),t[l-1]=n,t[l]=r,l+1&lt;t.length?t[l+1]=e:t.push(e),l+=2}}}(e),h.left===r?h.left=null:h.right=null,new s(this.tree._compare,e[0])},Object.defineProperty(p,&quot;key&quot;,{get:function(){if(this._stack.length&gt;0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(p,&quot;value&quot;,{get:function(){if(this._stack.length&gt;0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(p,&quot;index&quot;,{get:function(){var t=0,e=this._stack;if(0===e.length){var r=this.tree.root;return r?r._count:0}e[e.length-1].left&amp;&amp;(t=e[e.length-1].left._count);for(var n=e.length-2;n&gt;=0;--n)e[n+1]===e[n].right&amp;&amp;(++t,e[n].left&amp;&amp;(t+=e[n].left._count));return t},enumerable:!0}),p.next=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.right)for(e=e.right;e;)t.push(e),e=e.left;else for(t.pop();t.length&gt;0&amp;&amp;t[t.length-1].right===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,&quot;hasNext&quot;,{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].right)return!0;for(var e=t.length-1;e&gt;0;--e)if(t[e-1].left===t[e])return!0;return!1}}),p.update=function(t){var e=this._stack;if(0===e.length)throw new Error(&quot;Can't update empty node!&quot;);var r=new Array(e.length),i=e[e.length-1];r[r.length-1]=new n(i._color,i.key,t,i.left,i.right,i._count);for(var a=e.length-2;a&gt;=0;--a)(i=e[a]).left===e[a+1]?r[a]=new n(i._color,i.key,i.value,r[a+1],i.right,i._count):r[a]=new n(i._color,i.key,i.value,i.left,r[a+1],i._count);return new s(this.tree._compare,r[0])},p.prev=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.left)for(e=e.left;e;)t.push(e),e=e.right;else for(t.pop();t.length&gt;0&amp;&amp;t[t.length-1].left===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,&quot;hasPrev&quot;,{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].left)return!0;for(var e=t.length-1;e&gt;0;--e)if(t[e-1].right===t[e])return!0;return!1}})},{}],248:[function(t,e,r){var n=[.9999999999998099,676.5203681218851,-1259.1392167224028,771.3234287776531,-176.6150291621406,12.507343278686905,-.13857109526572012,9984369578019572e-21,1.5056327351493116e-7],i=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function a(t){if(t&lt;0)return Number(&quot;0/0&quot;);for(var e=i[0],r=i.length-1;r&gt;0;--r)e+=i[r]/(t+r);var n=t+607/128+.5;return.5*Math.log(2*Math.PI)+(t+.5)*Math.log(n)-n+Math.log(e)-Math.log(t)}e.exports=function t(e){if(e&lt;.5)return Math.PI/(Math.sin(Math.PI*e)*t(1-e));if(e&gt;100)return Math.exp(a(e));e-=1;for(var r=n[0],i=1;i&lt;9;i++)r+=n[i]/(e+i);var o=e+7+.5;return Math.sqrt(2*Math.PI)*Math.pow(o,e+.5)*Math.exp(-o)*r},e.exports.log=a},{}],249:[function(t,e,r){e.exports=function(t,e){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;must specify type string&quot;);if(e=e||{},&quot;undefined&quot;==typeof document&amp;&amp;!e.canvas)return null;var r=e.canvas||document.createElement(&quot;canvas&quot;);&quot;number&quot;==typeof e.width&amp;&amp;(r.width=e.width);&quot;number&quot;==typeof e.height&amp;&amp;(r.height=e.height);var n,i=e;try{var a=[t];0===t.indexOf(&quot;webgl&quot;)&amp;&amp;a.push(&quot;experimental-&quot;+t);for(var o=0;o&lt;a.length;o++)if(n=r.getContext(a[o],i))return n}catch(t){n=null}return n||null}},{}],250:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=new u(t);return r.update(e),r};var n=t(&quot;./lib/text.js&quot;),i=t(&quot;./lib/lines.js&quot;),a=t(&quot;./lib/background.js&quot;),o=t(&quot;./lib/cube.js&quot;),s=t(&quot;./lib/ticks.js&quot;),l=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t){this.gl=t,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=[&quot;auto&quot;,&quot;auto&quot;,&quot;auto&quot;],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],this.labelEnable=[!0,!0,!0],this.labelFont=&quot;sans-serif&quot;,this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=[&quot;auto&quot;,&quot;auto&quot;,&quot;auto&quot;],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=a(t)}var f=u.prototype;function h(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}f.update=function(t){function e(e,r,n){if(n in t){var i,a=t[n],o=this[n];(e?Array.isArray(a)&amp;&amp;Array.isArray(a[0]):Array.isArray(a))?this[n]=i=[r(a[0]),r(a[1]),r(a[2])]:this[n]=i=[r(a),r(a),r(a)];for(var s=0;s&lt;3;++s)if(i[s]!==o[s])return!0}return!1}t=t||{};var r,a=e.bind(this,!1,Number),o=e.bind(this,!1,Boolean),l=e.bind(this,!1,String),c=e.bind(this,!0,(function(t){if(Array.isArray(t)){if(3===t.length)return[+t[0],+t[1],+t[2],1];if(4===t.length)return[+t[0],+t[1],+t[2],+t[3]]}return[0,0,0,1]})),u=!1,f=!1;if(&quot;bounds&quot;in t)for(var h=t.bounds,p=0;p&lt;2;++p)for(var d=0;d&lt;3;++d)h[p][d]!==this.bounds[p][d]&amp;&amp;(f=!0),this.bounds[p][d]=h[p][d];if(&quot;ticks&quot;in t){r=t.ticks,u=!0,this.autoTicks=!1;for(p=0;p&lt;3;++p)this.tickSpacing[p]=0}else a(&quot;tickSpacing&quot;)&amp;&amp;(this.autoTicks=!0,f=!0);if(this._firstInit&amp;&amp;(&quot;ticks&quot;in t||&quot;tickSpacing&quot;in t||(this.autoTicks=!0),f=!0,u=!0,this._firstInit=!1),f&amp;&amp;this.autoTicks&amp;&amp;(r=s.create(this.bounds,this.tickSpacing),u=!0),u){for(p=0;p&lt;3;++p)r[p].sort((function(t,e){return t.x-e.x}));s.equal(r,this.ticks)?u=!1:this.ticks=r}o(&quot;tickEnable&quot;),l(&quot;tickFont&quot;)&amp;&amp;(u=!0),a(&quot;tickSize&quot;),a(&quot;tickAngle&quot;),a(&quot;tickPad&quot;),c(&quot;tickColor&quot;);var g=l(&quot;labels&quot;);l(&quot;labelFont&quot;)&amp;&amp;(g=!0),o(&quot;labelEnable&quot;),a(&quot;labelSize&quot;),a(&quot;labelPad&quot;),c(&quot;labelColor&quot;),o(&quot;lineEnable&quot;),o(&quot;lineMirror&quot;),a(&quot;lineWidth&quot;),c(&quot;lineColor&quot;),o(&quot;lineTickEnable&quot;),o(&quot;lineTickMirror&quot;),a(&quot;lineTickLength&quot;),a(&quot;lineTickWidth&quot;),c(&quot;lineTickColor&quot;),o(&quot;gridEnable&quot;),a(&quot;gridWidth&quot;),c(&quot;gridColor&quot;),o(&quot;zeroEnable&quot;),c(&quot;zeroLineColor&quot;),a(&quot;zeroLineWidth&quot;),o(&quot;backgroundEnable&quot;),c(&quot;backgroundColor&quot;),this._text?this._text&amp;&amp;(g||u)&amp;&amp;this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=n(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&amp;&amp;u&amp;&amp;(this._lines.dispose(),this._lines=null),this._lines||(this._lines=i(this.gl,this.bounds,this.ticks))};var p=[new h,new h,new h];function d(t,e,r,n,i){for(var a=t.primalOffset,o=t.primalMinor,s=t.mirrorOffset,l=t.mirrorMinor,c=n[e],u=0;u&lt;3;++u)if(e!==u){var f=a,h=s,p=o,d=l;c&amp;1&lt;&lt;u&amp;&amp;(f=s,h=a,p=l,d=o),f[u]=r[0][u],h[u]=r[1][u],i[u]&gt;0?(p[u]=-1,d[u]=0):(p[u]=0,d[u]=1)}}var g=[0,0,0],m={model:l,view:l,projection:l,_ortho:!1};f.isOpaque=function(){return!0},f.isTransparent=function(){return!1},f.drawTransparent=function(t){};var v=[0,0,0],y=[0,0,0],x=[0,0,0];f.draw=function(t){t=t||m;for(var e=this.gl,r=t.model||l,n=t.view||l,i=t.projection||l,a=this.bounds,s=t._ortho||!1,u=o(r,n,i,a,s),f=u.cubeEdges,h=u.axis,b=n[12],_=n[13],w=n[14],T=n[15],k=(s?2:1)*this.pixelRatio*(i[3]*b+i[7]*_+i[11]*w+i[15]*T)/e.drawingBufferHeight,M=0;M&lt;3;++M)this.lastCubeProps.cubeEdges[M]=f[M],this.lastCubeProps.axis[M]=h[M];var A=p;for(M=0;M&lt;3;++M)d(p[M],M,this.bounds,f,h);e=this.gl;var S,E=g;for(M=0;M&lt;3;++M)this.backgroundEnable[M]?E[M]=h[M]:E[M]=0;this._background.draw(r,n,i,a,E,this.backgroundColor),this._lines.bind(r,n,i,this);for(M=0;M&lt;3;++M){var C=[0,0,0];h[M]&gt;0?C[M]=a[1][M]:C[M]=a[0][M];for(var L=0;L&lt;2;++L){var I=(M+1+L)%3,P=(M+1+(1^L))%3;this.gridEnable[I]&amp;&amp;this._lines.drawGrid(I,P,this.bounds,C,this.gridColor[I],this.gridWidth[I]*this.pixelRatio)}for(L=0;L&lt;2;++L){I=(M+1+L)%3,P=(M+1+(1^L))%3;this.zeroEnable[P]&amp;&amp;Math.min(a[0][P],a[1][P])&lt;=0&amp;&amp;Math.max(a[0][P],a[1][P])&gt;=0&amp;&amp;this._lines.drawZero(I,P,this.bounds,C,this.zeroLineColor[P],this.zeroLineWidth[P]*this.pixelRatio)}}for(M=0;M&lt;3;++M){this.lineEnable[M]&amp;&amp;this._lines.drawAxisLine(M,this.bounds,A[M].primalOffset,this.lineColor[M],this.lineWidth[M]*this.pixelRatio),this.lineMirror[M]&amp;&amp;this._lines.drawAxisLine(M,this.bounds,A[M].mirrorOffset,this.lineColor[M],this.lineWidth[M]*this.pixelRatio);var z=c(v,A[M].primalMinor),O=c(y,A[M].mirrorMinor),D=this.lineTickLength;for(L=0;L&lt;3;++L){var R=k/r[5*L];z[L]*=D[L]*R,O[L]*=D[L]*R}this.lineTickEnable[M]&amp;&amp;this._lines.drawAxisTicks(M,A[M].primalOffset,z,this.lineTickColor[M],this.lineTickWidth[M]*this.pixelRatio),this.lineTickMirror[M]&amp;&amp;this._lines.drawAxisTicks(M,A[M].mirrorOffset,O,this.lineTickColor[M],this.lineTickWidth[M]*this.pixelRatio)}this._lines.unbind(),this._text.bind(r,n,i,this.pixelRatio);var F,B;function N(t){(B=[0,0,0])[t]=1}function j(t,e,r){var n=(t+1)%3,i=(t+2)%3,a=e[n],o=e[i],s=r[n],l=r[i];a&gt;0&amp;&amp;l&gt;0||a&gt;0&amp;&amp;l&lt;0||a&lt;0&amp;&amp;l&gt;0||a&lt;0&amp;&amp;l&lt;0?N(n):(o&gt;0&amp;&amp;s&gt;0||o&gt;0&amp;&amp;s&lt;0||o&lt;0&amp;&amp;s&gt;0||o&lt;0&amp;&amp;s&lt;0)&amp;&amp;N(i)}for(M=0;M&lt;3;++M){var U=A[M].primalMinor,V=A[M].mirrorMinor,q=c(x,A[M].primalOffset);for(L=0;L&lt;3;++L)this.lineTickEnable[M]&amp;&amp;(q[L]+=k*U[L]*Math.max(this.lineTickLength[L],0)/r[5*L]);var H=[0,0,0];if(H[M]=1,this.tickEnable[M]){-3600===this.tickAngle[M]?(this.tickAngle[M]=0,this.tickAlign[M]=&quot;auto&quot;):this.tickAlign[M]=-1,F=1,&quot;auto&quot;===(S=[this.tickAlign[M],.5,F])[0]?S[0]=0:S[0]=parseInt(&quot;&quot;+S[0]),B=[0,0,0],j(M,U,V);for(L=0;L&lt;3;++L)q[L]+=k*U[L]*this.tickPad[L]/r[5*L];this._text.drawTicks(M,this.tickSize[M],this.tickAngle[M],q,this.tickColor[M],H,B,S)}if(this.labelEnable[M]){F=0,B=[0,0,0],this.labels[M].length&gt;4&amp;&amp;(N(M),F=1),&quot;auto&quot;===(S=[this.labelAlign[M],.5,F])[0]?S[0]=0:S[0]=parseInt(&quot;&quot;+S[0]);for(L=0;L&lt;3;++L)q[L]+=k*U[L]*this.labelPad[L]/r[5*L];q[M]+=.5*(a[0][M]+a[1][M]),this._text.drawLabel(M,this.labelSize[M],this.labelAngle[M],q,this.labelColor[M],[0,0,0],B,S)}}this._text.unbind()},f.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},{&quot;./lib/background.js&quot;:251,&quot;./lib/cube.js&quot;:252,&quot;./lib/lines.js&quot;:253,&quot;./lib/text.js&quot;:255,&quot;./lib/ticks.js&quot;:256}],251:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=[],r=[],s=0,l=0;l&lt;3;++l)for(var c=(l+1)%3,u=(l+2)%3,f=[0,0,0],h=[0,0,0],p=-1;p&lt;=1;p+=2){r.push(s,s+2,s+1,s+1,s+2,s+3),f[l]=p,h[l]=p;for(var d=-1;d&lt;=1;d+=2){f[c]=d;for(var g=-1;g&lt;=1;g+=2)f[u]=g,e.push(f[0],f[1],f[2],h[0],h[1],h[2]),s+=1}var m=c;c=u,u=m}var v=n(t,new Float32Array(e)),y=n(t,new Uint16Array(r),t.ELEMENT_ARRAY_BUFFER),x=i(t,[{buffer:v,type:t.FLOAT,size:3,offset:0,stride:24},{buffer:v,type:t.FLOAT,size:3,offset:12,stride:24}],y),b=a(t);return b.attributes.position.location=0,b.attributes.normal.location=1,new o(t,v,x,b)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders&quot;).bg;function o(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n}var s=o.prototype;s.draw=function(t,e,r,n,i,a){for(var o=!1,s=0;s&lt;3;++s)o=o||i[s];if(o){var l=this.gl;l.enable(l.POLYGON_OFFSET_FILL),l.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:t,view:e,projection:r,bounds:n,enable:i,colors:a},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),l.disable(l.POLYGON_OFFSET_FILL)}},s.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:254,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],252:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,p){i(s,e,t),i(s,r,s);for(var y=0,x=0;x&lt;2;++x){u[2]=a[x][2];for(var b=0;b&lt;2;++b){u[1]=a[b][1];for(var _=0;_&lt;2;++_)u[0]=a[_][0],h(l[y],u,s),y+=1}}var w=-1;for(x=0;x&lt;8;++x){for(var T=l[x][3],k=0;k&lt;3;++k)c[x][k]=l[x][k]/T;p&amp;&amp;(c[x][2]*=-1),T&lt;0&amp;&amp;(w&lt;0||c[x][2]&lt;c[w][2])&amp;&amp;(w=x)}if(w&lt;0){w=0;for(var M=0;M&lt;3;++M){for(var A=(M+2)%3,S=(M+1)%3,E=-1,C=-1,L=0;L&lt;2;++L){var I=(z=L&lt;&lt;M)+(L&lt;&lt;A)+(1-L&lt;&lt;S),P=z+(1-L&lt;&lt;A)+(L&lt;&lt;S);o(c[z],c[I],c[P],f)&lt;0||(L?E=1:C=1)}if(E&lt;0||C&lt;0)C&gt;E&amp;&amp;(w|=1&lt;&lt;M);else{for(L=0;L&lt;2;++L){I=(z=L&lt;&lt;M)+(L&lt;&lt;A)+(1-L&lt;&lt;S),P=z+(1-L&lt;&lt;A)+(L&lt;&lt;S);var z,O=d([l[z],l[I],l[P],l[z+(1&lt;&lt;A)+(1&lt;&lt;S)]]);L?E=O:C=O}C&gt;E&amp;&amp;(w|=1&lt;&lt;M)}}}var D=7^w,R=-1;for(x=0;x&lt;8;++x)x!==w&amp;&amp;x!==D&amp;&amp;(R&lt;0||c[R][1]&gt;c[x][1])&amp;&amp;(R=x);var F=-1;for(x=0;x&lt;3;++x){if((N=R^1&lt;&lt;x)!==w&amp;&amp;N!==D)F&lt;0&amp;&amp;(F=N),(S=c[N])[0]&lt;c[F][0]&amp;&amp;(F=N)}var B=-1;for(x=0;x&lt;3;++x){var N;if((N=R^1&lt;&lt;x)!==w&amp;&amp;N!==D&amp;&amp;N!==F)B&lt;0&amp;&amp;(B=N),(S=c[N])[0]&gt;c[B][0]&amp;&amp;(B=N)}var j=g;j[0]=j[1]=j[2]=0,j[n.log2(F^R)]=R&amp;F,j[n.log2(R^B)]=R&amp;B;var U=7^B;U===w||U===D?(U=7^F,j[n.log2(B^U)]=U&amp;B):j[n.log2(F^U)]=U&amp;F;var V=m,q=w;for(M=0;M&lt;3;++M)V[M]=q&amp;1&lt;&lt;M?-1:1;return v};var n=t(&quot;bit-twiddle&quot;),i=t(&quot;gl-mat4/multiply&quot;),a=t(&quot;split-polygon&quot;),o=t(&quot;robust-orientation&quot;),s=new Array(16),l=new Array(8),c=new Array(8),u=new Array(3),f=[0,0,0];function h(t,e,r){for(var n=0;n&lt;4;++n){t[n]=r[12+n];for(var i=0;i&lt;3;++i)t[n]+=e[i]*r[4*i+n]}}!function(){for(var t=0;t&lt;8;++t)l[t]=[1,1,1,1],c[t]=[1,1,1]}();var p=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function d(t){for(var e=0;e&lt;p.length;++e)if((t=a.positive(t,p[e])).length&lt;3)return 0;var r=t[0],n=r[0]/r[3],i=r[1]/r[3],o=0;for(e=1;e+1&lt;t.length;++e){var s=t[e],l=t[e+1],c=s[0]/s[3]-n,u=s[1]/s[3]-i,f=l[0]/l[3]-n,h=l[1]/l[3]-i;o+=Math.abs(c*h-u*f)}return o}var g=[1,1,1],m=[0,0,0],v={cubeEdges:g,axis:m}},{&quot;bit-twiddle&quot;:97,&quot;gl-mat4/multiply&quot;:295,&quot;robust-orientation&quot;:548,&quot;split-polygon&quot;:566}],253:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var o=[],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[0,0,0];o.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var f=0;f&lt;3;++f){for(var h=o.length/3|0,d=0;d&lt;r[f].length;++d){var g=+r[f][d].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}var m=o.length/3|0;s[f]=h,l[f]=m-h;h=o.length/3|0;for(var v=0;v&lt;r[f].length;++v){g=+r[f][v].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}m=o.length/3|0;c[f]=h,u[f]=m-h}var y=n(t,new Float32Array(o)),x=i(t,[{buffer:y,type:t.FLOAT,size:3,stride:0,offset:0}]),b=a(t);return b.attributes.position.location=0,new p(t,y,x,b,l,s,u,c)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders&quot;).line,o=[0,0,0],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[1,1];function f(t){return t[0]=t[1]=t[2]=0,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function p(t,e,r,n,i,a,o,s){this.gl=t,this.vertBuffer=e,this.vao=r,this.shader=n,this.tickCount=i,this.tickOffset=a,this.gridCount=o,this.gridOffset=s}var d=p.prototype;d.bind=function(t,e,r){this.shader.bind(),this.shader.uniforms.model=t,this.shader.uniforms.view=e,this.shader.uniforms.projection=r,u[0]=this.gl.drawingBufferWidth,u[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=u,this.vao.bind()},d.unbind=function(){this.vao.unbind()},d.drawAxisLine=function(t,e,r,n,i){var a=f(s);this.shader.uniforms.majorAxis=s,a[t]=e[1][t]-e[0][t],this.shader.uniforms.minorAxis=a;var o,u=h(c,r);u[t]+=e[0][t],this.shader.uniforms.offset=u,this.shader.uniforms.lineWidth=i,this.shader.uniforms.color=n,(o=f(l))[(t+2)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6),(o=f(l))[(t+1)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6)},d.drawAxisTicks=function(t,e,r,n,i){if(this.tickCount[t]){var a=f(o);a[t]=1,this.shader.uniforms.majorAxis=a,this.shader.uniforms.offset=e,this.shader.uniforms.minorAxis=r,this.shader.uniforms.color=n,this.shader.uniforms.lineWidth=i;var s=f(l);s[t]=1,this.shader.uniforms.screenAxis=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t])}},d.drawGrid=function(t,e,r,n,i,a){if(this.gridCount[t]){var u=f(s);u[e]=r[1][e]-r[0][e],this.shader.uniforms.minorAxis=u;var p=h(c,n);p[e]+=r[0][e],this.shader.uniforms.offset=p;var d=f(o);d[t]=1,this.shader.uniforms.majorAxis=d;var g=f(l);g[t]=1,this.shader.uniforms.screenAxis=g,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,this.gridCount[t],this.gridOffset[t])}},d.drawZero=function(t,e,r,n,i,a){var o=f(s);this.shader.uniforms.majorAxis=o,o[t]=r[1][t]-r[0][t],this.shader.uniforms.minorAxis=o;var u=h(c,n);u[t]+=r[0][t],this.shader.uniforms.offset=u;var p=f(l);p[e]=1,this.shader.uniforms.screenAxis=p,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,6)},d.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:254,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],254:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, majorAxis, minorAxis, screenAxis;\nuniform float lineWidth;\nuniform vec2 screenShape;\n\nvec3 project(vec3 p) {\n  vec4 pp = projection * view * model * vec4(p, 1.0);\n  return pp.xyz / max(pp.w, 0.0001);\n}\n\nvoid main() {\n  vec3 major = position.x * majorAxis;\n  vec3 minor = position.y * minorAxis;\n\n  vec3 vPosition = major + minor + offset;\n  vec3 pPosition = project(vPosition);\n  vec3 offset = project(vPosition + screenAxis * position.z);\n\n  vec2 screen = normalize((offset - pPosition).xy * screenShape) / screenShape;\n\n  gl_Position = vec4(pPosition + vec3(0.5 * screen * lineWidth, 0), 1.0);\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = color;\n}&quot;]);r.line=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;}])};var s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, axis, alignDir, alignOpt;\nuniform float scale, angle, pixelScale;\nuniform vec2 resolution;\n\nvec3 project(vec3 p) {\n  vec4 pp = projection * view * model * vec4(p, 1.0);\n  return pp.xyz / max(pp.w, 0.0001);\n}\n\nfloat computeViewAngle(vec3 a, vec3 b) {\n  vec3 A = project(a);\n  vec3 B = project(b);\n\n  return atan(\n    (B.y - A.y) * resolution.y,\n    (B.x - A.x) * resolution.x\n  );\n}\n\nconst float PI = 3.141592;\nconst float TWO_PI = 2.0 * PI;\nconst float HALF_PI = 0.5 * PI;\nconst float ONE_AND_HALF_PI = 1.5 * PI;\n\nint option = int(floor(alignOpt.x + 0.001));\nfloat hv_ratio =       alignOpt.y;\nbool enableAlign =    (alignOpt.z != 0.0);\n\nfloat mod_angle(float a) {\n  return mod(a, PI);\n}\n\nfloat positive_angle(float a) {\n  return mod_angle((a &lt; 0.0) ?\n    a + TWO_PI :\n    a\n  );\n}\n\nfloat look_upwards(float a) {\n  float b = positive_angle(a);\n  return ((b &gt; HALF_PI) &amp;&amp; (b &lt;= ONE_AND_HALF_PI)) ?\n    b - PI :\n    b;\n}\n\nfloat look_horizontal_or_vertical(float a, float ratio) {\n  // ratio controls the ratio between being horizontal to (vertical + horizontal)\n  // if ratio is set to 0.5 then it is 50%, 50%.\n  // when using a higher ratio e.g. 0.75 the result would\n  // likely be more horizontal than vertical.\n\n  float b = positive_angle(a);\n\n  return\n    (b &lt; (      ratio) * HALF_PI) ? 0.0 :\n    (b &lt; (2.0 - ratio) * HALF_PI) ? -HALF_PI :\n    (b &lt; (2.0 + ratio) * HALF_PI) ? 0.0 :\n    (b &lt; (4.0 - ratio) * HALF_PI) ? HALF_PI :\n                                    0.0;\n}\n\nfloat roundTo(float a, float b) {\n  return float(b * floor((a + 0.5 * b) / b));\n}\n\nfloat look_round_n_directions(float a, int n) {\n  float b = positive_angle(a);\n  float div = TWO_PI / float(n);\n  float c = roundTo(b, div);\n  return look_upwards(c);\n}\n\nfloat applyAlignOption(float rawAngle, float delta) {\n  return\n    (option &gt;  2) ? look_round_n_directions(rawAngle + delta, option) :       // option 3-n: round to n directions\n    (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\n    (option == 1) ? rawAngle + delta :       // use free angle, and flip to align with one direction of the axis\n    (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\n    (option ==-1) ? 0.0 :                    // useful for backward compatibility, all texts remains horizontal\n                    rawAngle;                // otherwise return back raw input angle\n}\n\nbool isAxisTitle = (axis.x == 0.0) &amp;&amp;\n                   (axis.y == 0.0) &amp;&amp;\n                   (axis.z == 0.0);\n\nvoid main() {\n  //Compute world offset\n  float axisDistance = position.z;\n  vec3 dataPosition = axisDistance * axis + offset;\n\n  float beta = angle; // i.e. user defined attributes for each tick\n\n  float axisAngle;\n  float clipAngle;\n  float flip;\n\n  if (enableAlign) {\n    axisAngle = (isAxisTitle) ? HALF_PI :\n                      computeViewAngle(dataPosition, dataPosition + axis);\n    clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\n\n    axisAngle += (sin(axisAngle) &lt; 0.0) ? PI : 0.0;\n    clipAngle += (sin(clipAngle) &lt; 0.0) ? PI : 0.0;\n\n    flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\n                vec2(sin(clipAngle),-cos(clipAngle))) &gt; 0.0) ? 1.0 : 0.0;\n\n    beta += applyAlignOption(clipAngle, flip * PI);\n  }\n\n  //Compute plane offset\n  vec2 planeCoord = position.xy * pixelScale;\n\n  mat2 planeXform = scale * mat2(\n     cos(beta), sin(beta),\n    -sin(beta), cos(beta)\n  );\n\n  vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\n\n  //Compute clip position\n  vec3 clipPosition = project(dataPosition);\n\n  //Apply text offset in clip coordinates\n  clipPosition += vec3(viewOffset, 0.0);\n\n  //Done\n  gl_Position = vec4(clipPosition, 1.0);\n}&quot;]),l=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = color;\n}&quot;]);r.text=function(t){return i(t,s,l,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;}])};var c=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec3 normal;\n\nuniform mat4 model, view, projection;\nuniform vec3 enable;\nuniform vec3 bounds[2];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n\n  vec3 signAxis = sign(bounds[1] - bounds[0]);\n\n  vec3 realNormal = signAxis * normal;\n\n  if(dot(realNormal, enable) &gt; 0.0) {\n    vec3 minRange = min(bounds[0], bounds[1]);\n    vec3 maxRange = max(bounds[0], bounds[1]);\n    vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\n    gl_Position = projection * view * model * vec4(nPosition, 1.0);\n  } else {\n    gl_Position = vec4(0,0,0,0);\n  }\n\n  colorChannel = abs(realNormal);\n}&quot;]),u=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 colors[3];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n  gl_FragColor = colorChannel.x * colors[0] +\n                 colorChannel.y * colors[1] +\n                 colorChannel.z * colors[2];\n}&quot;]);r.bg=function(t){return i(t,c,u,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}])}},{&quot;gl-shader&quot;:335,glslify:257}],255:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;e.exports=function(t,e,r,a,s,l){var u=n(t),f=i(t,[{buffer:u,size:3}]),h=o(t);h.attributes.position.location=0;var p=new c(t,h,u,f);return p.update(e,r,a,s,l),p};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;vectorize-text&quot;),o=t(&quot;./shaders&quot;).text,s=window||r.global||{},l=s.__TEXT_CACHE||{};s.__TEXT_CACHE={};function c(t,e,r,n){this.gl=t,this.shader=e,this.buffer=r,this.vao=n,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var u=c.prototype,f=[0,0];u.bind=function(t,e,r,n){this.vao.bind(),this.shader.bind();var i=this.shader.uniforms;i.model=t,i.view=e,i.projection=r,i.pixelScale=n,f[0]=this.gl.drawingBufferWidth,f[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=f},u.unbind=function(){this.vao.unbind()},u.update=function(t,e,r,n,i){var o=[];function s(t,e,r,n,i,s){var c=l[r];c||(c=l[r]={});var u=c[e];u||(u=c[e]=function(t,e){try{return a(t,e)}catch(e){return console.warn('error vectorizing text:&quot;'+t+'&quot; error:',e),{cells:[],positions:[]}}}(e,{triangles:!0,font:r,textAlign:&quot;center&quot;,textBaseline:&quot;middle&quot;,lineSpacing:i,styletags:s}));for(var f=(n||12)/12,h=u.positions,p=u.cells,d=0,g=p.length;d&lt;g;++d)for(var m=p[d],v=2;v&gt;=0;--v){var y=h[m[v]];o.push(f*y[0],-f*y[1],t)}}for(var c=[0,0,0],u=[0,0,0],f=[0,0,0],h=[0,0,0],p={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},d=0;d&lt;3;++d){f[d]=o.length/3|0,s(.5*(t[0][d]+t[1][d]),e[d],r[d],12,1.25,p),h[d]=(o.length/3|0)-f[d],c[d]=o.length/3|0;for(var g=0;g&lt;n[d].length;++g)n[d][g].text&amp;&amp;s(n[d][g].x,n[d][g].text,n[d][g].font||i,n[d][g].fontSize||12,1.25,p);u[d]=(o.length/3|0)-c[d]}this.buffer.update(o),this.tickOffset=c,this.tickCount=u,this.labelOffset=f,this.labelCount=h},u.drawTicks=function(t,e,r,n,i,a,o,s){this.tickCount[t]&amp;&amp;(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t]))},u.drawLabel=function(t,e,r,n,i,a,o,s){this.labelCount[t]&amp;&amp;(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.labelCount[t],this.labelOffset[t]))},u.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()}}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./shaders&quot;:254,_process:526,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358,&quot;vectorize-text&quot;:600}],256:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=t+&quot;&quot;,n=r.indexOf(&quot;.&quot;),i=0;n&gt;=0&amp;&amp;(i=r.length-n-1);var a=Math.pow(10,i),o=Math.round(t*e*a),s=o+&quot;&quot;;if(s.indexOf(&quot;e&quot;)&gt;=0)return s;var l=o/a,c=o%a;o&lt;0?(l=0|-Math.ceil(l),c=0|-c):(l=0|Math.floor(l),c|=0);var u=&quot;&quot;+l;if(o&lt;0&amp;&amp;(u=&quot;-&quot;+u),i){for(var f=&quot;&quot;+c;f.length&lt;i;)f=&quot;0&quot;+f;return u+&quot;.&quot;+f}return u}r.create=function(t,e){for(var r=[],i=0;i&lt;3;++i){for(var a=[],o=(t[0][i],t[1][i],0);o*e[i]&lt;=t[1][i];++o)a.push({x:o*e[i],text:n(e[i],o)});for(o=-1;o*e[i]&gt;=t[0][i];--o)a.push({x:o*e[i],text:n(e[i],o)});r.push(a)}return r},r.equal=function(t,e){for(var r=0;r&lt;3;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n&lt;t[r].length;++n){var i=t[r][n],a=e[r][n];if(i.x!==a.x||i.text!==a.text||i.font!==a.font||i.fontColor!==a.fontColor||i.fontSize!==a.fontSize||i.dx!==a.dx||i.dy!==a.dy)return!1}}return!0}},{}],257:[function(t,e,r){e.exports=function(t){&quot;string&quot;==typeof t&amp;&amp;(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n&lt;t.length-1;n++)r.push(t[n],e[n]||&quot;&quot;);return r.push(t[n]),r.join(&quot;&quot;)}},{}],258:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,l,f){var h=e.model||c,p=e.view||c,v=e.projection||c,y=e._ortho||!1,x=t.bounds,b=(f=f||a(h,p,v,x,y)).axis;o(u,p,h),o(u,v,u);for(var _=g,w=0;w&lt;3;++w)_[w].lo=1/0,_[w].hi=-1/0,_[w].pixelsPerDataUnit=1/0;var T=n(s(u,u));s(u,u);for(var k=0;k&lt;3;++k){var M=(k+1)%3,A=(k+2)%3,S=m;t:for(w=0;w&lt;2;++w){var E=[];if(b[k]&lt;0!=!!w){S[k]=x[w][k];for(var C=0;C&lt;2;++C){S[M]=x[C^w][M];for(var L=0;L&lt;2;++L)S[A]=x[L^C^w][A],E.push(S.slice())}var I=y?5:4;for(C=I;C===I;++C){if(0===E.length)continue t;E=i.positive(E,T[C])}for(C=0;C&lt;E.length;++C){A=E[C];var P=d(m,u,A,r,l);for(L=0;L&lt;3;++L)_[L].lo=Math.min(_[L].lo,A[L]),_[L].hi=Math.max(_[L].hi,A[L]),L!==k&amp;&amp;(_[L].pixelsPerDataUnit=Math.min(_[L].pixelsPerDataUnit,Math.abs(P[L])))}}}}return _};var n=t(&quot;extract-frustum-planes&quot;),i=t(&quot;split-polygon&quot;),a=t(&quot;./lib/cube.js&quot;),o=t(&quot;gl-mat4/multiply&quot;),s=t(&quot;gl-mat4/transpose&quot;),l=t(&quot;gl-vec4/transformMat4&quot;),c=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),u=new Float32Array(16);function f(t,e,r){this.lo=t,this.hi=e,this.pixelsPerDataUnit=r}var h=[0,0,0,1],p=[0,0,0,1];function d(t,e,r,n,i){for(var a=0;a&lt;3;++a){for(var o=h,s=p,c=0;c&lt;3;++c)s[c]=o[c]=r[c];s[3]=o[3]=1,s[a]+=1,l(s,s,e),s[3]&lt;0&amp;&amp;(t[a]=1/0),o[a]-=1,l(o,o,e),o[3]&lt;0&amp;&amp;(t[a]=1/0);var u=(o[0]/o[3]-s[0]/s[3])*n,f=(o[1]/o[3]-s[1]/s[3])*i;t[a]=.25*Math.sqrt(u*u+f*f)}return t}var g=[new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0)],m=[0,0,0]},{&quot;./lib/cube.js&quot;:252,&quot;extract-frustum-planes&quot;:240,&quot;gl-mat4/multiply&quot;:295,&quot;gl-mat4/transpose&quot;:306,&quot;gl-vec4/transformMat4&quot;:429,&quot;split-polygon&quot;:566}],259:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=t(&quot;ndarray-ops&quot;),a=t(&quot;ndarray&quot;),o=[&quot;uint8&quot;,&quot;uint8_clamped&quot;,&quot;uint16&quot;,&quot;uint32&quot;,&quot;int8&quot;,&quot;int16&quot;,&quot;int32&quot;,&quot;float32&quot;];function s(t,e,r,n,i){this.gl=t,this.type=e,this.handle=r,this.length=n,this.usage=i}var l=s.prototype;function c(t,e,r,n,i,a){var o=i.length*i.BYTES_PER_ELEMENT;if(a&lt;0)return t.bufferData(e,i,n),o;if(o+a&gt;r)throw new Error(&quot;gl-buffer: If resizing buffer, must not specify offset&quot;);return t.bufferSubData(e,a,i),r}function u(t,e){for(var r=n.malloc(t.length,e),i=t.length,a=0;a&lt;i;++a)r[a]=t[a];return r}l.bind=function(){this.gl.bindBuffer(this.type,this.handle)},l.unbind=function(){this.gl.bindBuffer(this.type,null)},l.dispose=function(){this.gl.deleteBuffer(this.handle)},l.update=function(t,e){if(&quot;number&quot;!=typeof e&amp;&amp;(e=-1),this.bind(),&quot;object&quot;==typeof t&amp;&amp;&quot;undefined&quot;!=typeof t.shape){var r=t.dtype;if(o.indexOf(r)&lt;0&amp;&amp;(r=&quot;float32&quot;),this.type===this.gl.ELEMENT_ARRAY_BUFFER)r=gl.getExtension(&quot;OES_element_index_uint&quot;)&amp;&amp;&quot;uint16&quot;!==r?&quot;uint32&quot;:&quot;uint16&quot;;if(r===t.dtype&amp;&amp;function(t,e){for(var r=1,n=e.length-1;n&gt;=0;--n){if(e[n]!==r)return!1;r*=t[n]}return!0}(t.shape,t.stride))0===t.offset&amp;&amp;t.data.length===t.shape[0]?this.length=c(this.gl,this.type,this.length,this.usage,t.data,e):this.length=c(this.gl,this.type,this.length,this.usage,t.data.subarray(t.offset,t.shape[0]),e);else{var s=n.malloc(t.size,r),l=a(s,t.shape);i.assign(l,t),this.length=c(this.gl,this.type,this.length,this.usage,e&lt;0?s:s.subarray(0,t.size),e),n.free(s)}}else if(Array.isArray(t)){var f;f=this.type===this.gl.ELEMENT_ARRAY_BUFFER?u(t,&quot;uint16&quot;):u(t,&quot;float32&quot;),this.length=c(this.gl,this.type,this.length,this.usage,e&lt;0?f:f.subarray(0,t.length),e),n.free(f)}else if(&quot;object&quot;==typeof t&amp;&amp;&quot;number&quot;==typeof t.length)this.length=c(this.gl,this.type,this.length,this.usage,t,e);else{if(&quot;number&quot;!=typeof t&amp;&amp;void 0!==t)throw new Error(&quot;gl-buffer: Invalid data type&quot;);if(e&gt;=0)throw new Error(&quot;gl-buffer: Cannot specify offset when resizing buffer&quot;);(t|=0)&lt;=0&amp;&amp;(t=1),this.gl.bufferData(this.type,0|t,this.usage),this.length=t}},e.exports=function(t,e,r,n){if(r=r||t.ARRAY_BUFFER,n=n||t.DYNAMIC_DRAW,r!==t.ARRAY_BUFFER&amp;&amp;r!==t.ELEMENT_ARRAY_BUFFER)throw new Error(&quot;gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER&quot;);if(n!==t.DYNAMIC_DRAW&amp;&amp;n!==t.STATIC_DRAW&amp;&amp;n!==t.STREAM_DRAW)throw new Error(&quot;gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW&quot;);var i=t.createBuffer(),a=new s(t,r,i,0,n);return a.update(e),a}},{ndarray:495,&quot;ndarray-ops&quot;:490,&quot;typedarray-pool&quot;:595}],260:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-vec3&quot;);e.exports=function(t,e){var r=t.positions,i=t.vectors,a={positions:[],vertexIntensity:[],vertexIntensityBounds:t.vertexIntensityBounds,vectors:[],cells:[],coneOffset:t.coneOffset,colormap:t.colormap};if(0===t.positions.length)return e&amp;&amp;(e[0]=[0,0,0],e[1]=[0,0,0]),a;for(var o=0,s=1/0,l=-1/0,c=1/0,u=-1/0,f=1/0,h=-1/0,p=null,d=null,g=[],m=1/0,v=!1,y=0;y&lt;r.length;y++){var x=r[y];s=Math.min(x[0],s),l=Math.max(x[0],l),c=Math.min(x[1],c),u=Math.max(x[1],u),f=Math.min(x[2],f),h=Math.max(x[2],h);var b=i[y];if(n.length(b)&gt;o&amp;&amp;(o=n.length(b)),y){var _=2*n.distance(p,x)/(n.length(d)+n.length(b));_?(m=Math.min(m,_),v=!1):v=!0}v||(p=x,d=b),g.push(b)}var w=[s,c,f],T=[l,u,h];e&amp;&amp;(e[0]=w,e[1]=T),0===o&amp;&amp;(o=1);var k=1/o;isFinite(m)||(m=1),a.vectorScale=m;var M=t.coneSize||.5;t.absoluteConeSize&amp;&amp;(M=t.absoluteConeSize*k),a.coneScale=M;y=0;for(var A=0;y&lt;r.length;y++)for(var S=(x=r[y])[0],E=x[1],C=x[2],L=g[y],I=n.length(L)*k,P=0;P&lt;8;P++){a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vertexIntensity.push(I,I,I),a.vertexIntensity.push(I,I,I);var z=a.positions.length;a.cells.push([z-6,z-5,z-4],[z-3,z-2,z-1])}return a};var i=t(&quot;./lib/shaders&quot;);e.exports.createMesh=t(&quot;./create_mesh&quot;),e.exports.createConeMesh=function(t,r){return e.exports.createMesh(t,r,{shaders:i,traceType:&quot;cone&quot;})}},{&quot;./create_mesh&quot;:261,&quot;./lib/shaders&quot;:262,&quot;gl-vec3&quot;:377}],261:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;gl-mat4/multiply&quot;),l=t(&quot;gl-mat4/invert&quot;),c=t(&quot;ndarray&quot;),u=t(&quot;colormap&quot;),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e,r,n,i,a,o,s,l,c,u){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.pickShader=n,this.trianglePositions=i,this.triangleVectors=a,this.triangleColors=s,this.triangleUVs=l,this.triangleIds=o,this.triangleVAO=c,this.triangleCount=0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.traceType=u,this.tubeScale=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=f,this._view=f,this._projection=f,this._resolution=[1,1]}var p=h.prototype;function d(t,e){var r=n(t,e.meshShader.vertex,e.meshShader.fragment,null,e.meshShader.attributes);return r.attributes.position.location=0,r.attributes.color.location=2,r.attributes.uv.location=3,r.attributes.vector.location=4,r}function g(t,e){var r=n(t,e.pickShader.vertex,e.pickShader.fragment,null,e.pickShader.attributes);return r.attributes.position.location=0,r.attributes.id.location=1,r.attributes.vector.location=4,r}p.isOpaque=function(){return this.opacity&gt;=1},p.isTransparent=function(){return this.opacity&lt;1},p.pickSlots=1,p.setPickBase=function(t){this.pickId=t},p.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,&quot;lightPosition&quot;in t&amp;&amp;(this.lightPosition=t.lightPosition),&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity),&quot;ambient&quot;in t&amp;&amp;(this.ambientLight=t.ambient),&quot;diffuse&quot;in t&amp;&amp;(this.diffuseLight=t.diffuse),&quot;specular&quot;in t&amp;&amp;(this.specularLight=t.specular),&quot;roughness&quot;in t&amp;&amp;(this.roughness=t.roughness),&quot;fresnel&quot;in t&amp;&amp;(this.fresnel=t.fresnel),void 0!==t.tubeScale&amp;&amp;(this.tubeScale=t.tubeScale),void 0!==t.vectorScale&amp;&amp;(this.vectorScale=t.vectorScale),void 0!==t.coneScale&amp;&amp;(this.coneScale=t.coneScale),void 0!==t.coneOffset&amp;&amp;(this.coneOffset=t.coneOffset),t.colormap&amp;&amp;(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t){for(var e=u({colormap:t,nshades:256,format:&quot;rgba&quot;}),r=new Uint8Array(1024),n=0;n&lt;256;++n){for(var i=e[n],a=0;a&lt;3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return c(r,[256,256,4],[4,0,1])}(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions,i=t.vectors;if(n&amp;&amp;r&amp;&amp;i){var a=[],o=[],s=[],l=[],f=[];this.cells=r,this.positions=n,this.vectors=i;var h=t.meshColor||[1,1,1,1],p=t.vertexIntensity,d=1/0,g=-1/0;if(p)if(t.vertexIntensityBounds)d=+t.vertexIntensityBounds[0],g=+t.vertexIntensityBounds[1];else for(var m=0;m&lt;p.length;++m){var v=p[m];d=Math.min(d,v),g=Math.max(g,v)}else for(m=0;m&lt;n.length;++m){v=n[m][2];d=Math.min(d,v),g=Math.max(g,v)}this.intensity=p||function(t){for(var e=t.length,r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n][2];return r}(n),this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(m=0;m&lt;n.length;++m)for(var y=n[m],x=0;x&lt;3;++x)!isNaN(y[x])&amp;&amp;isFinite(y[x])&amp;&amp;(this.bounds[0][x]=Math.min(this.bounds[0][x],y[x]),this.bounds[1][x]=Math.max(this.bounds[1][x],y[x]));var b=0;t:for(m=0;m&lt;r.length;++m){var _=r[m];switch(_.length){case 3:for(x=0;x&lt;3;++x){y=n[T=_[x]];for(var w=0;w&lt;3;++w)if(isNaN(y[w])||!isFinite(y[w]))continue t}for(x=0;x&lt;3;++x){var T;y=n[T=_[2-x]];a.push(y[0],y[1],y[2],y[3]);var k=i[T];o.push(k[0],k[1],k[2],k[3]||0);var M,A=h;3===A.length?s.push(A[0],A[1],A[2],1):s.push(A[0],A[1],A[2],A[3]),M=p?[(p[T]-d)/(g-d),0]:[(y[2]-d)/(g-d),0],l.push(M[0],M[1]),f.push(m)}b+=1}}this.triangleCount=b,this.trianglePositions.update(a),this.triangleVectors.update(o),this.triangleColors.update(s),this.triangleUVs.update(l),this.triangleIds.update(new Uint32Array(f))}},p.drawTransparent=p.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var c={model:r,view:n,projection:i,inverseModel:f.slice(),clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,texture:0};c.inverseModel=l(c.inverseModel,c.model),e.disable(e.CULL_FACE),this.texture.bind(0);var u=new Array(16);s(u,c.view,c.model),s(u,c.projection,u),l(u,u);for(o=0;o&lt;3;++o)c.eyePosition[o]=u[12+o]/u[15];var h=u[15];for(o=0;o&lt;3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o&lt;3;++o){for(var p=u[12+o],d=0;d&lt;3;++d)p+=u[4*d+o]*this.lightPosition[d];c.lightPosition[o]=p/h}if(this.triangleCount&gt;0){var g=this.triShader;g.bind(),g.uniforms=c,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}},p.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s={model:r,view:n,projection:i,clipBounds:a,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},l=this.pickShader;l.bind(),l.uniforms=s,this.triangleCount&gt;0&amp;&amp;(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind())},p.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions[r[1]].slice(0,3),i={position:n,dataCoordinate:n,index:Math.floor(r[1]/48)};return&quot;cone&quot;===this.traceType?i.index=Math.floor(r[1]/48):&quot;streamtube&quot;===this.traceType&amp;&amp;(i.intensity=this.intensity[r[1]],i.velocity=this.vectors[r[1]].slice(0,3),i.divergence=this.vectors[r[1]][3],i.index=e),i},p.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()},e.exports=function(t,e,r){var n=r.shaders;1===arguments.length&amp;&amp;(t=(e=t).gl);var s=d(t,n),l=g(t,n),u=o(t,c(new Uint8Array([255,255,255,255]),[1,1,4]));u.generateMipmap(),u.minFilter=t.LINEAR_MIPMAP_LINEAR,u.magFilter=t.LINEAR;var f=i(t),p=i(t),m=i(t),v=i(t),y=i(t),x=a(t,[{buffer:f,type:t.FLOAT,size:4},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:m,type:t.FLOAT,size:4},{buffer:v,type:t.FLOAT,size:2},{buffer:p,type:t.FLOAT,size:4}]),b=new h(t,u,s,l,f,p,y,m,v,x,r.traceType||&quot;cone&quot;);return b.update(e),b}},{colormap:131,&quot;gl-buffer&quot;:259,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/multiply&quot;:295,&quot;gl-shader&quot;:335,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495}],262:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n//   segment + 0 top vertex\n//   segment + 1 perimeter vertex a+1\n//   segment + 2 perimeter vertex a\n//   segment + 3 center base vertex\n//   segment + 4 perimeter vertex a\n//   segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n  const float segmentCount = 8.0;\n\n  float index = rawIndex - floor(rawIndex /\n    (segmentCount * 6.0)) *\n    (segmentCount * 6.0);\n\n  float segment = floor(0.001 + index/6.0);\n  float segmentIndex = index - (segment*6.0);\n\n  normal = -normalize(d);\n\n  if (segmentIndex &gt; 2.99 &amp;&amp; segmentIndex &lt; 3.01) {\n    return mix(vec3(0.0), -d, coneOffset);\n  }\n\n  float nextAngle = (\n    (segmentIndex &gt; 0.99 &amp;&amp;  segmentIndex &lt; 1.01) ||\n    (segmentIndex &gt; 4.99 &amp;&amp;  segmentIndex &lt; 5.01)\n  ) ? 1.0 : 0.0;\n  float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n  vec3 v1 = mix(d, vec3(0.0), coneOffset);\n  vec3 v2 = v1 - d;\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d)*0.25;\n  vec3 y = v * sin(angle) * length(d)*0.25;\n  vec3 v3 = v2 + x + y;\n  if (segmentIndex &lt; 3.0) {\n    vec3 tx = u * sin(angle);\n    vec3 ty = v * -cos(angle);\n    vec3 tangent = tx + ty;\n    normal = normalize(cross(v3 - v1, tangent));\n  }\n\n  if (segmentIndex == 0.0) {\n    return mix(d, vec3(0.0), coneOffset);\n  }\n  return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  // Scale the vector magnitude to stay constant with\n  // model &amp; view changes.\n  vec3 normal;\n  vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n  vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * conePosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  // vec4 m_position  = model * vec4(conePosition, 1.0);\n  vec4 t_position  = view * conePosition;\n  gl_Position      = projection * t_position;\n\n  f_color          = color;\n  f_data           = conePosition.xyz;\n  f_position       = position.xyz;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * opacity;\n}\n&quot;]),o=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n//   segment + 0 top vertex\n//   segment + 1 perimeter vertex a+1\n//   segment + 2 perimeter vertex a\n//   segment + 3 center base vertex\n//   segment + 4 perimeter vertex a\n//   segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n  const float segmentCount = 8.0;\n\n  float index = rawIndex - floor(rawIndex /\n    (segmentCount * 6.0)) *\n    (segmentCount * 6.0);\n\n  float segment = floor(0.001 + index/6.0);\n  float segmentIndex = index - (segment*6.0);\n\n  normal = -normalize(d);\n\n  if (segmentIndex &gt; 2.99 &amp;&amp; segmentIndex &lt; 3.01) {\n    return mix(vec3(0.0), -d, coneOffset);\n  }\n\n  float nextAngle = (\n    (segmentIndex &gt; 0.99 &amp;&amp;  segmentIndex &lt; 1.01) ||\n    (segmentIndex &gt; 4.99 &amp;&amp;  segmentIndex &lt; 5.01)\n  ) ? 1.0 : 0.0;\n  float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n  vec3 v1 = mix(d, vec3(0.0), coneOffset);\n  vec3 v2 = v1 - d;\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d)*0.25;\n  vec3 y = v * sin(angle) * length(d)*0.25;\n  vec3 v3 = v2 + x + y;\n  if (segmentIndex &lt; 3.0) {\n    vec3 tx = u * sin(angle);\n    vec3 ty = v * -cos(angle);\n    vec3 tangent = tx + ty;\n    normal = normalize(cross(v3 - v1, tangent));\n  }\n\n  if (segmentIndex == 0.0) {\n    return mix(d, vec3(0.0), coneOffset);\n  }\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float vectorScale, coneScale, coneOffset;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  vec3 normal;\n  vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);\n  vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n  gl_Position = projection * view * conePosition;\n  f_id        = id;\n  f_position  = position.xyz;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;vector&quot;,type:&quot;vec3&quot;}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;},{name:&quot;vector&quot;,type:&quot;vec3&quot;}]}},{glslify:263}],263:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],264:[function(t,e,r){e.exports={0:&quot;NONE&quot;,1:&quot;ONE&quot;,2:&quot;LINE_LOOP&quot;,3:&quot;LINE_STRIP&quot;,4:&quot;TRIANGLES&quot;,5:&quot;TRIANGLE_STRIP&quot;,6:&quot;TRIANGLE_FAN&quot;,256:&quot;DEPTH_BUFFER_BIT&quot;,512:&quot;NEVER&quot;,513:&quot;LESS&quot;,514:&quot;EQUAL&quot;,515:&quot;LEQUAL&quot;,516:&quot;GREATER&quot;,517:&quot;NOTEQUAL&quot;,518:&quot;GEQUAL&quot;,519:&quot;ALWAYS&quot;,768:&quot;SRC_COLOR&quot;,769:&quot;ONE_MINUS_SRC_COLOR&quot;,770:&quot;SRC_ALPHA&quot;,771:&quot;ONE_MINUS_SRC_ALPHA&quot;,772:&quot;DST_ALPHA&quot;,773:&quot;ONE_MINUS_DST_ALPHA&quot;,774:&quot;DST_COLOR&quot;,775:&quot;ONE_MINUS_DST_COLOR&quot;,776:&quot;SRC_ALPHA_SATURATE&quot;,1024:&quot;STENCIL_BUFFER_BIT&quot;,1028:&quot;FRONT&quot;,1029:&quot;BACK&quot;,1032:&quot;FRONT_AND_BACK&quot;,1280:&quot;INVALID_ENUM&quot;,1281:&quot;INVALID_VALUE&quot;,1282:&quot;INVALID_OPERATION&quot;,1285:&quot;OUT_OF_MEMORY&quot;,1286:&quot;INVALID_FRAMEBUFFER_OPERATION&quot;,2304:&quot;CW&quot;,2305:&quot;CCW&quot;,2849:&quot;LINE_WIDTH&quot;,2884:&quot;CULL_FACE&quot;,2885:&quot;CULL_FACE_MODE&quot;,2886:&quot;FRONT_FACE&quot;,2928:&quot;DEPTH_RANGE&quot;,2929:&quot;DEPTH_TEST&quot;,2930:&quot;DEPTH_WRITEMASK&quot;,2931:&quot;DEPTH_CLEAR_VALUE&quot;,2932:&quot;DEPTH_FUNC&quot;,2960:&quot;STENCIL_TEST&quot;,2961:&quot;STENCIL_CLEAR_VALUE&quot;,2962:&quot;STENCIL_FUNC&quot;,2963:&quot;STENCIL_VALUE_MASK&quot;,2964:&quot;STENCIL_FAIL&quot;,2965:&quot;STENCIL_PASS_DEPTH_FAIL&quot;,2966:&quot;STENCIL_PASS_DEPTH_PASS&quot;,2967:&quot;STENCIL_REF&quot;,2968:&quot;STENCIL_WRITEMASK&quot;,2978:&quot;VIEWPORT&quot;,3024:&quot;DITHER&quot;,3042:&quot;BLEND&quot;,3088:&quot;SCISSOR_BOX&quot;,3089:&quot;SCISSOR_TEST&quot;,3106:&quot;COLOR_CLEAR_VALUE&quot;,3107:&quot;COLOR_WRITEMASK&quot;,3317:&quot;UNPACK_ALIGNMENT&quot;,3333:&quot;PACK_ALIGNMENT&quot;,3379:&quot;MAX_TEXTURE_SIZE&quot;,3386:&quot;MAX_VIEWPORT_DIMS&quot;,3408:&quot;SUBPIXEL_BITS&quot;,3410:&quot;RED_BITS&quot;,3411:&quot;GREEN_BITS&quot;,3412:&quot;BLUE_BITS&quot;,3413:&quot;ALPHA_BITS&quot;,3414:&quot;DEPTH_BITS&quot;,3415:&quot;STENCIL_BITS&quot;,3553:&quot;TEXTURE_2D&quot;,4352:&quot;DONT_CARE&quot;,4353:&quot;FASTEST&quot;,4354:&quot;NICEST&quot;,5120:&quot;BYTE&quot;,5121:&quot;UNSIGNED_BYTE&quot;,5122:&quot;SHORT&quot;,5123:&quot;UNSIGNED_SHORT&quot;,5124:&quot;INT&quot;,5125:&quot;UNSIGNED_INT&quot;,5126:&quot;FLOAT&quot;,5386:&quot;INVERT&quot;,5890:&quot;TEXTURE&quot;,6401:&quot;STENCIL_INDEX&quot;,6402:&quot;DEPTH_COMPONENT&quot;,6406:&quot;ALPHA&quot;,6407:&quot;RGB&quot;,6408:&quot;RGBA&quot;,6409:&quot;LUMINANCE&quot;,6410:&quot;LUMINANCE_ALPHA&quot;,7680:&quot;KEEP&quot;,7681:&quot;REPLACE&quot;,7682:&quot;INCR&quot;,7683:&quot;DECR&quot;,7936:&quot;VENDOR&quot;,7937:&quot;RENDERER&quot;,7938:&quot;VERSION&quot;,9728:&quot;NEAREST&quot;,9729:&quot;LINEAR&quot;,9984:&quot;NEAREST_MIPMAP_NEAREST&quot;,9985:&quot;LINEAR_MIPMAP_NEAREST&quot;,9986:&quot;NEAREST_MIPMAP_LINEAR&quot;,9987:&quot;LINEAR_MIPMAP_LINEAR&quot;,10240:&quot;TEXTURE_MAG_FILTER&quot;,10241:&quot;TEXTURE_MIN_FILTER&quot;,10242:&quot;TEXTURE_WRAP_S&quot;,10243:&quot;TEXTURE_WRAP_T&quot;,10497:&quot;REPEAT&quot;,10752:&quot;POLYGON_OFFSET_UNITS&quot;,16384:&quot;COLOR_BUFFER_BIT&quot;,32769:&quot;CONSTANT_COLOR&quot;,32770:&quot;ONE_MINUS_CONSTANT_COLOR&quot;,32771:&quot;CONSTANT_ALPHA&quot;,32772:&quot;ONE_MINUS_CONSTANT_ALPHA&quot;,32773:&quot;BLEND_COLOR&quot;,32774:&quot;FUNC_ADD&quot;,32777:&quot;BLEND_EQUATION_RGB&quot;,32778:&quot;FUNC_SUBTRACT&quot;,32779:&quot;FUNC_REVERSE_SUBTRACT&quot;,32819:&quot;UNSIGNED_SHORT_4_4_4_4&quot;,32820:&quot;UNSIGNED_SHORT_5_5_5_1&quot;,32823:&quot;POLYGON_OFFSET_FILL&quot;,32824:&quot;POLYGON_OFFSET_FACTOR&quot;,32854:&quot;RGBA4&quot;,32855:&quot;RGB5_A1&quot;,32873:&quot;TEXTURE_BINDING_2D&quot;,32926:&quot;SAMPLE_ALPHA_TO_COVERAGE&quot;,32928:&quot;SAMPLE_COVERAGE&quot;,32936:&quot;SAMPLE_BUFFERS&quot;,32937:&quot;SAMPLES&quot;,32938:&quot;SAMPLE_COVERAGE_VALUE&quot;,32939:&quot;SAMPLE_COVERAGE_INVERT&quot;,32968:&quot;BLEND_DST_RGB&quot;,32969:&quot;BLEND_SRC_RGB&quot;,32970:&quot;BLEND_DST_ALPHA&quot;,32971:&quot;BLEND_SRC_ALPHA&quot;,33071:&quot;CLAMP_TO_EDGE&quot;,33170:&quot;GENERATE_MIPMAP_HINT&quot;,33189:&quot;DEPTH_COMPONENT16&quot;,33306:&quot;DEPTH_STENCIL_ATTACHMENT&quot;,33635:&quot;UNSIGNED_SHORT_5_6_5&quot;,33648:&quot;MIRRORED_REPEAT&quot;,33901:&quot;ALIASED_POINT_SIZE_RANGE&quot;,33902:&quot;ALIASED_LINE_WIDTH_RANGE&quot;,33984:&quot;TEXTURE0&quot;,33985:&quot;TEXTURE1&quot;,33986:&quot;TEXTURE2&quot;,33987:&quot;TEXTURE3&quot;,33988:&quot;TEXTURE4&quot;,33989:&quot;TEXTURE5&quot;,33990:&quot;TEXTURE6&quot;,33991:&quot;TEXTURE7&quot;,33992:&quot;TEXTURE8&quot;,33993:&quot;TEXTURE9&quot;,33994:&quot;TEXTURE10&quot;,33995:&quot;TEXTURE11&quot;,33996:&quot;TEXTURE12&quot;,33997:&quot;TEXTURE13&quot;,33998:&quot;TEXTURE14&quot;,33999:&quot;TEXTURE15&quot;,34e3:&quot;TEXTURE16&quot;,34001:&quot;TEXTURE17&quot;,34002:&quot;TEXTURE18&quot;,34003:&quot;TEXTURE19&quot;,34004:&quot;TEXTURE20&quot;,34005:&quot;TEXTURE21&quot;,34006:&quot;TEXTURE22&quot;,34007:&quot;TEXTURE23&quot;,34008:&quot;TEXTURE24&quot;,34009:&quot;TEXTURE25&quot;,34010:&quot;TEXTURE26&quot;,34011:&quot;TEXTURE27&quot;,34012:&quot;TEXTURE28&quot;,34013:&quot;TEXTURE29&quot;,34014:&quot;TEXTURE30&quot;,34015:&quot;TEXTURE31&quot;,34016:&quot;ACTIVE_TEXTURE&quot;,34024:&quot;MAX_RENDERBUFFER_SIZE&quot;,34041:&quot;DEPTH_STENCIL&quot;,34055:&quot;INCR_WRAP&quot;,34056:&quot;DECR_WRAP&quot;,34067:&quot;TEXTURE_CUBE_MAP&quot;,34068:&quot;TEXTURE_BINDING_CUBE_MAP&quot;,34069:&quot;TEXTURE_CUBE_MAP_POSITIVE_X&quot;,34070:&quot;TEXTURE_CUBE_MAP_NEGATIVE_X&quot;,34071:&quot;TEXTURE_CUBE_MAP_POSITIVE_Y&quot;,34072:&quot;TEXTURE_CUBE_MAP_NEGATIVE_Y&quot;,34073:&quot;TEXTURE_CUBE_MAP_POSITIVE_Z&quot;,34074:&quot;TEXTURE_CUBE_MAP_NEGATIVE_Z&quot;,34076:&quot;MAX_CUBE_MAP_TEXTURE_SIZE&quot;,34338:&quot;VERTEX_ATTRIB_ARRAY_ENABLED&quot;,34339:&quot;VERTEX_ATTRIB_ARRAY_SIZE&quot;,34340:&quot;VERTEX_ATTRIB_ARRAY_STRIDE&quot;,34341:&quot;VERTEX_ATTRIB_ARRAY_TYPE&quot;,34342:&quot;CURRENT_VERTEX_ATTRIB&quot;,34373:&quot;VERTEX_ATTRIB_ARRAY_POINTER&quot;,34466:&quot;NUM_COMPRESSED_TEXTURE_FORMATS&quot;,34467:&quot;COMPRESSED_TEXTURE_FORMATS&quot;,34660:&quot;BUFFER_SIZE&quot;,34661:&quot;BUFFER_USAGE&quot;,34816:&quot;STENCIL_BACK_FUNC&quot;,34817:&quot;STENCIL_BACK_FAIL&quot;,34818:&quot;STENCIL_BACK_PASS_DEPTH_FAIL&quot;,34819:&quot;STENCIL_BACK_PASS_DEPTH_PASS&quot;,34877:&quot;BLEND_EQUATION_ALPHA&quot;,34921:&quot;MAX_VERTEX_ATTRIBS&quot;,34922:&quot;VERTEX_ATTRIB_ARRAY_NORMALIZED&quot;,34930:&quot;MAX_TEXTURE_IMAGE_UNITS&quot;,34962:&quot;ARRAY_BUFFER&quot;,34963:&quot;ELEMENT_ARRAY_BUFFER&quot;,34964:&quot;ARRAY_BUFFER_BINDING&quot;,34965:&quot;ELEMENT_ARRAY_BUFFER_BINDING&quot;,34975:&quot;VERTEX_ATTRIB_ARRAY_BUFFER_BINDING&quot;,35040:&quot;STREAM_DRAW&quot;,35044:&quot;STATIC_DRAW&quot;,35048:&quot;DYNAMIC_DRAW&quot;,35632:&quot;FRAGMENT_SHADER&quot;,35633:&quot;VERTEX_SHADER&quot;,35660:&quot;MAX_VERTEX_TEXTURE_IMAGE_UNITS&quot;,35661:&quot;MAX_COMBINED_TEXTURE_IMAGE_UNITS&quot;,35663:&quot;SHADER_TYPE&quot;,35664:&quot;FLOAT_VEC2&quot;,35665:&quot;FLOAT_VEC3&quot;,35666:&quot;FLOAT_VEC4&quot;,35667:&quot;INT_VEC2&quot;,35668:&quot;INT_VEC3&quot;,35669:&quot;INT_VEC4&quot;,35670:&quot;BOOL&quot;,35671:&quot;BOOL_VEC2&quot;,35672:&quot;BOOL_VEC3&quot;,35673:&quot;BOOL_VEC4&quot;,35674:&quot;FLOAT_MAT2&quot;,35675:&quot;FLOAT_MAT3&quot;,35676:&quot;FLOAT_MAT4&quot;,35678:&quot;SAMPLER_2D&quot;,35680:&quot;SAMPLER_CUBE&quot;,35712:&quot;DELETE_STATUS&quot;,35713:&quot;COMPILE_STATUS&quot;,35714:&quot;LINK_STATUS&quot;,35715:&quot;VALIDATE_STATUS&quot;,35716:&quot;INFO_LOG_LENGTH&quot;,35717:&quot;ATTACHED_SHADERS&quot;,35718:&quot;ACTIVE_UNIFORMS&quot;,35719:&quot;ACTIVE_UNIFORM_MAX_LENGTH&quot;,35720:&quot;SHADER_SOURCE_LENGTH&quot;,35721:&quot;ACTIVE_ATTRIBUTES&quot;,35722:&quot;ACTIVE_ATTRIBUTE_MAX_LENGTH&quot;,35724:&quot;SHADING_LANGUAGE_VERSION&quot;,35725:&quot;CURRENT_PROGRAM&quot;,36003:&quot;STENCIL_BACK_REF&quot;,36004:&quot;STENCIL_BACK_VALUE_MASK&quot;,36005:&quot;STENCIL_BACK_WRITEMASK&quot;,36006:&quot;FRAMEBUFFER_BINDING&quot;,36007:&quot;RENDERBUFFER_BINDING&quot;,36048:&quot;FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE&quot;,36049:&quot;FRAMEBUFFER_ATTACHMENT_OBJECT_NAME&quot;,36050:&quot;FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL&quot;,36051:&quot;FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE&quot;,36053:&quot;FRAMEBUFFER_COMPLETE&quot;,36054:&quot;FRAMEBUFFER_INCOMPLETE_ATTACHMENT&quot;,36055:&quot;FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT&quot;,36057:&quot;FRAMEBUFFER_INCOMPLETE_DIMENSIONS&quot;,36061:&quot;FRAMEBUFFER_UNSUPPORTED&quot;,36064:&quot;COLOR_ATTACHMENT0&quot;,36096:&quot;DEPTH_ATTACHMENT&quot;,36128:&quot;STENCIL_ATTACHMENT&quot;,36160:&quot;FRAMEBUFFER&quot;,36161:&quot;RENDERBUFFER&quot;,36162:&quot;RENDERBUFFER_WIDTH&quot;,36163:&quot;RENDERBUFFER_HEIGHT&quot;,36164:&quot;RENDERBUFFER_INTERNAL_FORMAT&quot;,36168:&quot;STENCIL_INDEX8&quot;,36176:&quot;RENDERBUFFER_RED_SIZE&quot;,36177:&quot;RENDERBUFFER_GREEN_SIZE&quot;,36178:&quot;RENDERBUFFER_BLUE_SIZE&quot;,36179:&quot;RENDERBUFFER_ALPHA_SIZE&quot;,36180:&quot;RENDERBUFFER_DEPTH_SIZE&quot;,36181:&quot;RENDERBUFFER_STENCIL_SIZE&quot;,36194:&quot;RGB565&quot;,36336:&quot;LOW_FLOAT&quot;,36337:&quot;MEDIUM_FLOAT&quot;,36338:&quot;HIGH_FLOAT&quot;,36339:&quot;LOW_INT&quot;,36340:&quot;MEDIUM_INT&quot;,36341:&quot;HIGH_INT&quot;,36346:&quot;SHADER_COMPILER&quot;,36347:&quot;MAX_VERTEX_UNIFORM_VECTORS&quot;,36348:&quot;MAX_VARYING_VECTORS&quot;,36349:&quot;MAX_FRAGMENT_UNIFORM_VECTORS&quot;,37440:&quot;UNPACK_FLIP_Y_WEBGL&quot;,37441:&quot;UNPACK_PREMULTIPLY_ALPHA_WEBGL&quot;,37442:&quot;CONTEXT_LOST_WEBGL&quot;,37443:&quot;UNPACK_COLORSPACE_CONVERSION_WEBGL&quot;,37444:&quot;BROWSER_DEFAULT_WEBGL&quot;}},{}],265:[function(t,e,r){var n=t(&quot;./1.0/numbers&quot;);e.exports=function(t){return n[t]}},{&quot;./1.0/numbers&quot;:264}],266:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),o=i(e,[{buffer:r,type:e.FLOAT,size:3,offset:0,stride:40},{buffer:r,type:e.FLOAT,size:4,offset:12,stride:40},{buffer:r,type:e.FLOAT,size:3,offset:28,stride:40}]),l=a(e);l.attributes.position.location=0,l.attributes.color.location=1,l.attributes.offset.location=2;var c=new s(e,r,o,l);return c.update(t),c};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders/index&quot;),o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.shader=n,this.buffer=e,this.vao=r,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var l=s.prototype;function c(t,e){for(var r=0;r&lt;3;++r)t[0][r]=Math.min(t[0][r],e[r]),t[1][r]=Math.max(t[1][r],e[r])}l.isOpaque=function(){return!this.hasAlpha},l.isTransparent=function(){return this.hasAlpha},l.drawTransparent=l.draw=function(t){var e=this.gl,r=this.shader.uniforms;this.shader.bind();var n=r.view=t.view||o,i=r.projection=t.projection||o;r.model=t.model||o,r.clipBounds=this.clipBounds,r.opacity=this.opacity;var a=n[12],s=n[13],l=n[14],c=n[15],u=(t._ortho||!1?2:1)*this.pixelRatio*(i[3]*a+i[7]*s+i[11]*l+i[15]*c)/e.drawingBufferHeight;this.vao.bind();for(var f=0;f&lt;3;++f)e.lineWidth(this.lineWidth[f]*this.pixelRatio),r.capSize=this.capSize[f]*u,this.lineCount[f]&amp;&amp;e.drawArrays(e.LINES,this.lineOffset[f],this.lineCount[f]);this.vao.unbind()};var u=function(){for(var t=new Array(3),e=0;e&lt;3;++e){for(var r=[],n=1;n&lt;=2;++n)for(var i=-1;i&lt;=1;i+=2){var a=[0,0,0];a[(n+e)%3]=i,r.push(a)}t[e]=r}return t}();function f(t,e,r,n){for(var i=u[n],a=0;a&lt;i.length;++a){var o=i[a];t.push(e[0],e[1],e[2],r[0],r[1],r[2],r[3],o[0],o[1],o[2])}return i.length}l.update=function(t){&quot;lineWidth&quot;in(t=t||{})&amp;&amp;(this.lineWidth=t.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),&quot;capSize&quot;in t&amp;&amp;(this.capSize=t.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=+t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0));var e=t.color||[[0,0,0],[0,0,0],[0,0,0]],r=t.position,n=t.error;if(Array.isArray(e[0])||(e=[e,e,e]),r&amp;&amp;n){var i=[],a=r.length,o=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var s=0;s&lt;3;++s){this.lineOffset[s]=o;t:for(var l=0;l&lt;a;++l){for(var u=r[l],h=0;h&lt;3;++h)if(isNaN(u[h])||!isFinite(u[h]))continue t;var p=n[l],d=e[s];if(Array.isArray(d[0])&amp;&amp;(d=e[l]),3===d.length?d=[d[0],d[1],d[2],1]:4===d.length&amp;&amp;(d=[d[0],d[1],d[2],d[3]],!this.hasAlpha&amp;&amp;d[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),!isNaN(p[0][s])&amp;&amp;!isNaN(p[1][s])){var g;if(p[0][s]&lt;0)(g=u.slice())[s]+=p[0][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s);if(p[1][s]&gt;0)(g=u.slice())[s]+=p[1][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s)}}this.lineCount[s]=o-this.lineOffset[s]}this.buffer.update(i)}},l.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},{&quot;./shaders/index&quot;:268,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],267:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],268:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, offset;\nattribute vec4 color;\nuniform mat4 model, view, projection;\nuniform float capSize;\nvarying vec4 fragColor;\nvarying vec3 fragPosition;\n\nvoid main() {\n  vec4 worldPosition  = model * vec4(position, 1.0);\n  worldPosition       = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\n  gl_Position         = projection * view * worldPosition;\n  fragColor           = color;\n  fragPosition        = position;\n}&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float opacity;\nvarying vec3 fragPosition;\nvarying vec4 fragColor;\n\nvoid main() {\n  if (\n    outOfRange(clipBounds[0], clipBounds[1], fragPosition) ||\n    fragColor.a * opacity == 0.\n  ) discard;\n\n  gl_FragColor = opacity * fragColor;\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;offset&quot;,type:&quot;vec3&quot;}])}},{&quot;gl-shader&quot;:335,glslify:267}],269:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-texture2d&quot;);e.exports=function(t,e,r,n){i||(i=t.FRAMEBUFFER_UNSUPPORTED,a=t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,o=t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,s=t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var c=t.getExtension(&quot;WEBGL_draw_buffers&quot;);!l&amp;&amp;c&amp;&amp;function(t,e){var r=t.getParameter(e.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(r+1);for(var n=0;n&lt;=r;++n){for(var i=new Array(r),a=0;a&lt;n;++a)i[a]=t.COLOR_ATTACHMENT0+a;for(a=n;a&lt;r;++a)i[a]=t.NONE;l[n]=i}}(t,c);Array.isArray(e)&amp;&amp;(n=r,r=0|e[1],e=0|e[0]);if(&quot;number&quot;!=typeof e)throw new Error(&quot;gl-fbo: Missing shape parameter&quot;);var u=t.getParameter(t.MAX_RENDERBUFFER_SIZE);if(e&lt;0||e&gt;u||r&lt;0||r&gt;u)throw new Error(&quot;gl-fbo: Parameters are too large for FBO&quot;);var f=1;if(&quot;color&quot;in(n=n||{})){if((f=Math.max(0|n.color,0))&lt;0)throw new Error(&quot;gl-fbo: Must specify a nonnegative number of colors&quot;);if(f&gt;1){if(!c)throw new Error(&quot;gl-fbo: Multiple draw buffer extension not supported&quot;);if(f&gt;t.getParameter(c.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error(&quot;gl-fbo: Context does not support &quot;+f+&quot; draw buffers&quot;)}}var h=t.UNSIGNED_BYTE,p=t.getExtension(&quot;OES_texture_float&quot;);if(n.float&amp;&amp;f&gt;0){if(!p)throw new Error(&quot;gl-fbo: Context does not support floating point textures&quot;);h=t.FLOAT}else n.preferFloat&amp;&amp;f&gt;0&amp;&amp;p&amp;&amp;(h=t.FLOAT);var g=!0;&quot;depth&quot;in n&amp;&amp;(g=!!n.depth);var m=!1;&quot;stencil&quot;in n&amp;&amp;(m=!!n.stencil);return new d(t,e,r,h,f,g,m,c)};var i,a,o,s,l=null;function c(t){return[t.getParameter(t.FRAMEBUFFER_BINDING),t.getParameter(t.RENDERBUFFER_BINDING),t.getParameter(t.TEXTURE_BINDING_2D)]}function u(t,e){t.bindFramebuffer(t.FRAMEBUFFER,e[0]),t.bindRenderbuffer(t.RENDERBUFFER,e[1]),t.bindTexture(t.TEXTURE_2D,e[2])}function f(t){switch(t){case i:throw new Error(&quot;gl-fbo: Framebuffer unsupported&quot;);case a:throw new Error(&quot;gl-fbo: Framebuffer incomplete attachment&quot;);case o:throw new Error(&quot;gl-fbo: Framebuffer incomplete dimensions&quot;);case s:throw new Error(&quot;gl-fbo: Framebuffer incomplete missing attachment&quot;);default:throw new Error(&quot;gl-fbo: Framebuffer failed for unspecified reason&quot;)}}function h(t,e,r,i,a,o){if(!i)return null;var s=n(t,e,r,a,i);return s.magFilter=t.NEAREST,s.minFilter=t.NEAREST,s.mipSamples=1,s.bind(),t.framebufferTexture2D(t.FRAMEBUFFER,o,t.TEXTURE_2D,s.handle,0),s}function p(t,e,r,n,i){var a=t.createRenderbuffer();return t.bindRenderbuffer(t.RENDERBUFFER,a),t.renderbufferStorage(t.RENDERBUFFER,n,e,r),t.framebufferRenderbuffer(t.FRAMEBUFFER,i,t.RENDERBUFFER,a),a}function d(t,e,r,n,i,a,o,s){this.gl=t,this._shape=[0|e,0|r],this._destroyed=!1,this._ext=s,this.color=new Array(i);for(var d=0;d&lt;i;++d)this.color[d]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=n,this._useDepth=a,this._useStencil=o;var g=this,m=[0|e,0|r];Object.defineProperties(m,{0:{get:function(){return g._shape[0]},set:function(t){return g.width=t}},1:{get:function(){return g._shape[1]},set:function(t){return g.height=t}}}),this._shapeVector=m,function(t){var e=c(t.gl),r=t.gl,n=t.handle=r.createFramebuffer(),i=t._shape[0],a=t._shape[1],o=t.color.length,s=t._ext,d=t._useStencil,g=t._useDepth,m=t._colorType;r.bindFramebuffer(r.FRAMEBUFFER,n);for(var v=0;v&lt;o;++v)t.color[v]=h(r,i,a,m,r.RGBA,r.COLOR_ATTACHMENT0+v);0===o?(t._color_rb=p(r,i,a,r.RGBA4,r.COLOR_ATTACHMENT0),s&amp;&amp;s.drawBuffersWEBGL(l[0])):o&gt;1&amp;&amp;s.drawBuffersWEBGL(l[o]);var y=r.getExtension(&quot;WEBGL_depth_texture&quot;);y?d?t.depth=h(r,i,a,y.UNSIGNED_INT_24_8_WEBGL,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g&amp;&amp;(t.depth=h(r,i,a,r.UNSIGNED_SHORT,r.DEPTH_COMPONENT,r.DEPTH_ATTACHMENT)):g&amp;&amp;d?t._depth_rb=p(r,i,a,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g?t._depth_rb=p(r,i,a,r.DEPTH_COMPONENT16,r.DEPTH_ATTACHMENT):d&amp;&amp;(t._depth_rb=p(r,i,a,r.STENCIL_INDEX,r.STENCIL_ATTACHMENT));var x=r.checkFramebufferStatus(r.FRAMEBUFFER);if(x!==r.FRAMEBUFFER_COMPLETE){t._destroyed=!0,r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(t.handle),t.handle=null,t.depth&amp;&amp;(t.depth.dispose(),t.depth=null),t._depth_rb&amp;&amp;(r.deleteRenderbuffer(t._depth_rb),t._depth_rb=null);for(v=0;v&lt;t.color.length;++v)t.color[v].dispose(),t.color[v]=null;t._color_rb&amp;&amp;(r.deleteRenderbuffer(t._color_rb),t._color_rb=null),u(r,e),f(x)}u(r,e)}(this)}var g=d.prototype;function m(t,e,r){if(t._destroyed)throw new Error(&quot;gl-fbo: Can't resize destroyed FBO&quot;);if(t._shape[0]!==e||t._shape[1]!==r){var n=t.gl,i=n.getParameter(n.MAX_RENDERBUFFER_SIZE);if(e&lt;0||e&gt;i||r&lt;0||r&gt;i)throw new Error(&quot;gl-fbo: Can't resize FBO, invalid dimensions&quot;);t._shape[0]=e,t._shape[1]=r;for(var a=c(n),o=0;o&lt;t.color.length;++o)t.color[o].shape=t._shape;t._color_rb&amp;&amp;(n.bindRenderbuffer(n.RENDERBUFFER,t._color_rb),n.renderbufferStorage(n.RENDERBUFFER,n.RGBA4,t._shape[0],t._shape[1])),t.depth&amp;&amp;(t.depth.shape=t._shape),t._depth_rb&amp;&amp;(n.bindRenderbuffer(n.RENDERBUFFER,t._depth_rb),t._useDepth&amp;&amp;t._useStencil?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t._shape[0],t._shape[1]):t._useDepth?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_COMPONENT16,t._shape[0],t._shape[1]):t._useStencil&amp;&amp;n.renderbufferStorage(n.RENDERBUFFER,n.STENCIL_INDEX,t._shape[0],t._shape[1])),n.bindFramebuffer(n.FRAMEBUFFER,t.handle);var s=n.checkFramebufferStatus(n.FRAMEBUFFER);s!==n.FRAMEBUFFER_COMPLETE&amp;&amp;(t.dispose(),u(n,a),f(s)),u(n,a)}}Object.defineProperties(g,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(t){if(Array.isArray(t)||(t=[0|t,0|t]),2!==t.length)throw new Error(&quot;gl-fbo: Shape vector must be length 2&quot;);var e=0|t[0],r=0|t[1];return m(this,e,r),[e,r]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(t){return m(this,t|=0,this._shape[1]),t},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(t){return t|=0,m(this,this._shape[0],t),t},enumerable:!1}}),g.bind=function(){if(!this._destroyed){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,this.handle),t.viewport(0,0,this._shape[0],this._shape[1])}},g.dispose=function(){if(!this._destroyed){this._destroyed=!0;var t=this.gl;t.deleteFramebuffer(this.handle),this.handle=null,this.depth&amp;&amp;(this.depth.dispose(),this.depth=null),this._depth_rb&amp;&amp;(t.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var e=0;e&lt;this.color.length;++e)this.color[e].dispose(),this.color[e]=null;this._color_rb&amp;&amp;(t.deleteRenderbuffer(this._color_rb),this._color_rb=null)}}},{&quot;gl-texture2d&quot;:353}],270:[function(t,e,r){var n=t(&quot;sprintf-js&quot;).sprintf,i=t(&quot;gl-constants/lookup&quot;),a=t(&quot;glsl-shader-name&quot;),o=t(&quot;add-line-numbers&quot;);e.exports=function(t,e,r){&quot;use strict&quot;;var s=a(e)||&quot;of unknown name (see npm glsl-shader-name)&quot;,l=&quot;unknown type&quot;;void 0!==r&amp;&amp;(l=r===i.FRAGMENT_SHADER?&quot;fragment&quot;:&quot;vertex&quot;);for(var c=n(&quot;Error compiling %s shader %s:\n&quot;,l,s),u=n(&quot;%s%s&quot;,c,t),f=t.split(&quot;\n&quot;),h={},p=0;p&lt;f.length;p++){var d=f[p];if(&quot;&quot;!==d&amp;&amp;&quot;\0&quot;!==d){var g=parseInt(d.split(&quot;:&quot;)[2]);if(isNaN(g))throw new Error(n(&quot;Could not parse error: %s&quot;,d));h[g]=d}}var m=o(e).split(&quot;\n&quot;);for(p=0;p&lt;m.length;p++)if(h[p+3]||h[p+2]||h[p+1]){var v=m[p];if(c+=v+&quot;\n&quot;,h[p+1]){var y=h[p+1];y=y.substr(y.split(&quot;:&quot;,3).join(&quot;:&quot;).length+1).trim(),c+=n(&quot;^^^ %s\n\n&quot;,y)}}return{long:c.trim(),short:u.trim()}}},{&quot;add-line-numbers&quot;:66,&quot;gl-constants/lookup&quot;:265,&quot;glsl-shader-name&quot;:431,&quot;sprintf-js&quot;:567}],271:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.gl,n=o(r,l.vertex,l.fragment),i=o(r,l.pickVertex,l.pickFragment),a=s(r),u=s(r),f=s(r),h=s(r),p=new c(t,n,i,a,u,f,h);return p.update(e),t.addObject(p),p};var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;iota-array&quot;),a=t(&quot;typedarray-pool&quot;),o=t(&quot;gl-shader&quot;),s=t(&quot;gl-buffer&quot;),l=t(&quot;./lib/shaders&quot;);function c(t,e,r,n,i,a,o){this.plot=t,this.shader=e,this.pickShader=r,this.positionBuffer=n,this.weightBuffer=i,this.colorBuffer=a,this.idBuffer=o,this.xData=[],this.yData=[],this.shape=[0,0],this.bounds=[1/0,1/0,-1/0,-1/0],this.pickOffset=0}var u,f=c.prototype,h=[0,0,1,0,0,1,1,0,1,1,0,1];f.draw=(u=[1,0,0,0,1,0,0,0,1],function(){var t=this.plot,e=this.shader,r=this.bounds,n=this.numVertices;if(!(n&lt;=0)){var i=t.gl,a=t.dataBox,o=r[2]-r[0],s=r[3]-r[1],l=a[2]-a[0],c=a[3]-a[1];u[0]=2*o/l,u[4]=2*s/c,u[6]=2*(r[0]-a[0])/l-1,u[7]=2*(r[1]-a[1])/c-1,e.bind();var f=e.uniforms;f.viewTransform=u,f.shape=this.shape;var h=e.attributes;this.positionBuffer.bind(),h.position.pointer(),this.weightBuffer.bind(),h.weight.pointer(i.UNSIGNED_BYTE,!1),this.colorBuffer.bind(),h.color.pointer(i.UNSIGNED_BYTE,!0),i.drawArrays(i.TRIANGLES,0,n)}}),f.drawPick=function(){var t=[1,0,0,0,1,0,0,0,1],e=[0,0,0,0];return function(r){var n=this.plot,i=this.pickShader,a=this.bounds,o=this.numVertices;if(!(o&lt;=0)){var s=n.gl,l=n.dataBox,c=a[2]-a[0],u=a[3]-a[1],f=l[2]-l[0],h=l[3]-l[1];t[0]=2*c/f,t[4]=2*u/h,t[6]=2*(a[0]-l[0])/f-1,t[7]=2*(a[1]-l[1])/h-1;for(var p=0;p&lt;4;++p)e[p]=r&gt;&gt;8*p&amp;255;this.pickOffset=r,i.bind();var d=i.uniforms;d.viewTransform=t,d.pickOffset=e,d.shape=this.shape;var g=i.attributes;return this.positionBuffer.bind(),g.position.pointer(),this.weightBuffer.bind(),g.weight.pointer(s.UNSIGNED_BYTE,!1),this.idBuffer.bind(),g.pickId.pointer(s.UNSIGNED_BYTE,!1),s.drawArrays(s.TRIANGLES,0,o),r+this.shape[0]*this.shape[1]}}}(),f.pick=function(t,e,r){var n=this.pickOffset,i=this.shape[0]*this.shape[1];if(r&lt;n||r&gt;=n+i)return null;var a=r-n,o=this.xData,s=this.yData;return{object:this,pointId:a,dataCoord:[o[a%this.shape[0]],s[a/this.shape[0]|0]]}},f.update=function(t){var e=(t=t||{}).shape||[0,0],r=t.x||i(e[0]),o=t.y||i(e[1]),s=t.z||new Float32Array(e[0]*e[1]),l=!1!==t.zsmooth;this.xData=r,this.yData=o;var c,u,f,p,d=t.colorLevels||[0],g=t.colorValues||[0,0,0,1],m=d.length,v=this.bounds;l?(c=v[0]=r[0],u=v[1]=o[0],f=v[2]=r[r.length-1],p=v[3]=o[o.length-1]):(c=v[0]=r[0]+(r[1]-r[0])/2,u=v[1]=o[0]+(o[1]-o[0])/2,f=v[2]=r[r.length-1]+(r[r.length-1]-r[r.length-2])/2,p=v[3]=o[o.length-1]+(o[o.length-1]-o[o.length-2])/2);var y=1/(f-c),x=1/(p-u),b=e[0],_=e[1];this.shape=[b,_];var w=(l?(b-1)*(_-1):b*_)*(h.length&gt;&gt;&gt;1);this.numVertices=w;for(var T=a.mallocUint8(4*w),k=a.mallocFloat32(2*w),M=a.mallocUint8(2*w),A=a.mallocUint32(w),S=0,E=l?b-1:b,C=l?_-1:_,L=0;L&lt;C;++L){var I,P;l?(I=x*(o[L]-u),P=x*(o[L+1]-u)):(I=L&lt;_-1?x*(o[L]-(o[L+1]-o[L])/2-u):x*(o[L]-(o[L]-o[L-1])/2-u),P=L&lt;_-1?x*(o[L]+(o[L+1]-o[L])/2-u):x*(o[L]+(o[L]-o[L-1])/2-u));for(var z=0;z&lt;E;++z){var O,D;l?(O=y*(r[z]-c),D=y*(r[z+1]-c)):(O=z&lt;b-1?y*(r[z]-(r[z+1]-r[z])/2-c):y*(r[z]-(r[z]-r[z-1])/2-c),D=z&lt;b-1?y*(r[z]+(r[z+1]-r[z])/2-c):y*(r[z]+(r[z]-r[z-1])/2-c));for(var R=0;R&lt;h.length;R+=2){var F,B,N,j,U=h[R],V=h[R+1],q=s[l?(L+V)*b+(z+U):L*b+z],H=n.le(d,q);if(H&lt;0)F=g[0],B=g[1],N=g[2],j=g[3];else if(H===m-1)F=g[4*m-4],B=g[4*m-3],N=g[4*m-2],j=g[4*m-1];else{var G=(q-d[H])/(d[H+1]-d[H]),Y=1-G,W=4*H,X=4*(H+1);F=Y*g[W]+G*g[X],B=Y*g[W+1]+G*g[X+1],N=Y*g[W+2]+G*g[X+2],j=Y*g[W+3]+G*g[X+3]}T[4*S]=255*F,T[4*S+1]=255*B,T[4*S+2]=255*N,T[4*S+3]=255*j,k[2*S]=.5*O+.5*D,k[2*S+1]=.5*I+.5*P,M[2*S]=U,M[2*S+1]=V,A[S]=L*b+z,S+=1}}}this.positionBuffer.update(k),this.weightBuffer.update(M),this.colorBuffer.update(T),this.idBuffer.update(A),a.free(k),a.free(T),a.free(M),a.free(A)},f.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.positionBuffer.dispose(),this.weightBuffer.dispose(),this.colorBuffer.dispose(),this.idBuffer.dispose(),this.plot.removeObject(this)}},{&quot;./lib/shaders&quot;:272,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335,&quot;iota-array&quot;:463,&quot;typedarray-pool&quot;:595}],272:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;);e.exports={fragment:n([&quot;precision lowp float;\n#define GLSLIFY 1\nvarying vec4 fragColor;\nvoid main() {\n  gl_FragColor = vec4(fragColor.rgb * fragColor.a, fragColor.a);\n}\n&quot;]),vertex:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 color;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragColor;\n\nvoid main() {\n  vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n  fragColor = color;\n  gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n&quot;]),pickFragment:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nuniform vec2 shape;\nuniform vec4 pickOffset;\n\nvoid main() {\n  vec2 d = step(.5, vWeight);\n  vec4 id = fragId + pickOffset;\n  id.x += d.x + d.y*shape.x;\n\n  id.y += floor(id.x / 256.0);\n  id.x -= floor(id.x / 256.0) * 256.0;\n\n  id.z += floor(id.y / 256.0);\n  id.y -= floor(id.y / 256.0) * 256.0;\n\n  id.w += floor(id.z / 256.0);\n  id.z -= floor(id.z / 256.0) * 256.0;\n\n  gl_FragColor = id/255.;\n}\n&quot;]),pickVertex:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nvoid main() {\n  vWeight = weight;\n\n  fragId = pickId;\n\n  vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n  gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n&quot;])}},{glslify:273}],273:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],274:[function(t,e,r){var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, nextPosition;\nattribute float arcLength, lineWidth;\nattribute vec4 color;\n\nuniform vec2 screenShape;\nuniform float pixelRatio;\nuniform mat4 model, view, projection;\n\nvarying vec4 fragColor;\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\n\nvec4 project(vec3 p) {\n  return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n  vec4 startPoint = project(position);\n  vec4 endPoint   = project(nextPosition);\n\n  vec2 A = startPoint.xy / startPoint.w;\n  vec2 B =   endPoint.xy /   endPoint.w;\n\n  float clipAngle = atan(\n    (B.y - A.y) * screenShape.y,\n    (B.x - A.x) * screenShape.x\n  );\n\n  vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\n    sin(clipAngle),\n    -cos(clipAngle)\n  ) / screenShape;\n\n  gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\n\n  worldPosition = position;\n  pixelArcLength = arcLength;\n  fragColor = color;\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3      clipBounds[2];\nuniform sampler2D dashTexture;\nuniform float     dashScale;\nuniform float     opacity;\n\nvarying vec3    worldPosition;\nvarying float   pixelArcLength;\nvarying vec4    fragColor;\n\nvoid main() {\n  if (\n    outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||\n    fragColor.a * opacity == 0.\n  ) discard;\n\n  float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\n  if(dashWeight &lt; 0.5) {\n    discard;\n  }\n  gl_FragColor = fragColor * opacity;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\n#define FLOAT_MAX  1.70141184e38\n#define FLOAT_MIN  1.17549435e-38\n\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl\nvec4 packFloat(float v) {\n  float av = abs(v);\n\n  //Handle special cases\n  if(av &lt; FLOAT_MIN) {\n    return vec4(0.0, 0.0, 0.0, 0.0);\n  } else if(v &gt; FLOAT_MAX) {\n    return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\n  } else if(v &lt; -FLOAT_MAX) {\n    return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\n  }\n\n  vec4 c = vec4(0,0,0,0);\n\n  //Compute exponent and mantissa\n  float e = floor(log2(av));\n  float m = av * pow(2.0, -e) - 1.0;\n\n  //Unpack mantissa\n  c[1] = floor(128.0 * m);\n  m -= c[1] / 128.0;\n  c[2] = floor(32768.0 * m);\n  m -= c[2] / 32768.0;\n  c[3] = floor(8388608.0 * m);\n\n  //Unpack exponent\n  float ebias = e + 127.0;\n  c[0] = floor(ebias / 2.0);\n  ebias -= c[0] * 2.0;\n  c[1] += floor(ebias) * 128.0;\n\n  //Unpack sign bit\n  c[0] += 128.0 * step(0.0, -v);\n\n  //Scale back to range\n  return c / 255.0;\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform float pickId;\nuniform vec3 clipBounds[2];\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\n\n  gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);\n}&quot;]),l=[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;nextPosition&quot;,type:&quot;vec3&quot;},{name:&quot;arcLength&quot;,type:&quot;float&quot;},{name:&quot;lineWidth&quot;,type:&quot;float&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;}];r.createShader=function(t){return i(t,a,o,null,l)},r.createPickShader=function(t){return i(t,a,s,null,l)}},{&quot;gl-shader&quot;:335,glslify:276}],275:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl||t.scene&amp;&amp;t.scene.gl,r=f(e);r.attributes.position.location=0,r.attributes.nextPosition.location=1,r.attributes.arcLength.location=2,r.attributes.lineWidth.location=3,r.attributes.color.location=4;var o=h(e);o.attributes.position.location=0,o.attributes.nextPosition.location=1,o.attributes.arcLength.location=2,o.attributes.lineWidth.location=3,o.attributes.color.location=4;for(var s=n(e),l=i(e,[{buffer:s,size:3,offset:0,stride:48},{buffer:s,size:3,offset:12,stride:48},{buffer:s,size:1,offset:24,stride:48},{buffer:s,size:1,offset:28,stride:48},{buffer:s,size:4,offset:32,stride:48}]),u=c(new Array(1024),[256,1,4]),p=0;p&lt;1024;++p)u.data[p]=255;var d=a(e,u);d.wrap=e.REPEAT;var g=new v(e,r,o,s,l,d);return g.update(t),g};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;gl-texture2d&quot;),o=new Uint8Array(4),s=new Float32Array(o.buffer);var l=t(&quot;binary-search-bounds&quot;),c=t(&quot;ndarray&quot;),u=t(&quot;./lib/shaders&quot;),f=u.createShader,h=u.createPickShader,p=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function d(t,e){for(var r=0,n=0;n&lt;3;++n){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)}function g(t){for(var e=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],r=0;r&lt;3;++r)e[0][r]=Math.max(t[0][r],e[0][r]),e[1][r]=Math.min(t[1][r],e[1][r]);return e}function m(t,e,r,n){this.arcLength=t,this.position=e,this.index=r,this.dataCoordinate=n}function v(t,e,r,n,i,a){this.gl=t,this.shader=e,this.pickShader=r,this.buffer=n,this.vao=i,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=a,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var y=v.prototype;y.isTransparent=function(){return this.hasAlpha},y.isOpaque=function(){return!this.hasAlpha},y.pickSlots=1,y.setPickBase=function(t){this.pickId=t},y.drawTransparent=y.draw=function(t){if(this.vertexCount){var e=this.gl,r=this.shader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,clipBounds:g(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.drawPick=function(t){if(this.vertexCount){var e=this.gl,r=this.pickShader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,pickId:this.pickId,clipBounds:g(this.clipBounds),screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.update=function(t){var e,r;this.dirty=!0;var n=!!t.connectGaps;&quot;dashScale&quot;in t&amp;&amp;(this.dashScale=t.dashScale),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=+t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0));var i=[],a=[],o=[],s=0,u=0,f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],h=t.position||t.positions;if(h){var p=t.color||t.colors||[0,0,0,1],g=t.lineWidth||1,m=!1;t:for(e=1;e&lt;h.length;++e){var v,y,x,b=h[e-1],_=h[e];for(a.push(s),o.push(b.slice()),r=0;r&lt;3;++r){if(isNaN(b[r])||isNaN(_[r])||!isFinite(b[r])||!isFinite(_[r])){if(!n&amp;&amp;i.length&gt;0){for(var w=0;w&lt;24;++w)i.push(i[i.length-12]);u+=2,m=!0}continue t}f[0][r]=Math.min(f[0][r],b[r],_[r]),f[1][r]=Math.max(f[1][r],b[r],_[r])}Array.isArray(p[0])?(v=p.length&gt;e-1?p[e-1]:p.length&gt;0?p[p.length-1]:[0,0,0,1],y=p.length&gt;e?p[e]:p.length&gt;0?p[p.length-1]:[0,0,0,1]):v=y=p,3===v.length&amp;&amp;(v=[v[0],v[1],v[2],1]),3===y.length&amp;&amp;(y=[y[0],y[1],y[2],1]),!this.hasAlpha&amp;&amp;v[3]&lt;1&amp;&amp;(this.hasAlpha=!0),x=Array.isArray(g)?g.length&gt;e-1?g[e-1]:g.length&gt;0?g[g.length-1]:[0,0,0,1]:g;var T=s;if(s+=d(b,_),m){for(r=0;r&lt;2;++r)i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3]);u+=2,m=!1}i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3],b[0],b[1],b[2],_[0],_[1],_[2],T,-x,v[0],v[1],v[2],v[3],_[0],_[1],_[2],b[0],b[1],b[2],s,-x,y[0],y[1],y[2],y[3],_[0],_[1],_[2],b[0],b[1],b[2],s,x,y[0],y[1],y[2],y[3]),u+=4}}if(this.buffer.update(i),a.push(s),o.push(h[h.length-1].slice()),this.bounds=f,this.vertexCount=u,this.points=o,this.arcLength=a,&quot;dashes&quot;in t){var k=t.dashes.slice();for(k.unshift(0),e=1;e&lt;k.length;++e)k[e]=k[e-1]+k[e];var M=c(new Array(1024),[256,1,4]);for(e=0;e&lt;256;++e){for(r=0;r&lt;4;++r)M.set(e,0,r,0);1&amp;l.le(k,k[k.length-1]*e/255)?M.set(e,0,0,0):M.set(e,0,0,255)}this.texture.setPixels(M)}},y.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},y.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=function(t,e,r,n){return o[0]=n,o[1]=r,o[2]=e,o[3]=t,s[0]}(t.value[0],t.value[1],t.value[2],0),r=l.le(this.arcLength,e);if(r&lt;0)return null;if(r===this.arcLength.length-1)return new m(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),r);for(var n=this.points[r],i=this.points[Math.min(r+1,this.points.length-1)],a=(e-this.arcLength[r])/(this.arcLength[r+1]-this.arcLength[r]),c=1-a,u=[0,0,0],f=0;f&lt;3;++f)u[f]=c*n[f]+a*i[f];var h=Math.min(a&lt;.5?r:r+1,this.points.length-1);return new m(e,u,h,this.points[h])}},{&quot;./lib/shaders&quot;:274,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495}],276:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],277:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15];return t[0]=s*(h*v-p*m)-f*(l*v-c*m)+g*(l*p-c*h),t[1]=-(n*(h*v-p*m)-f*(i*v-a*m)+g*(i*p-a*h)),t[2]=n*(l*v-c*m)-s*(i*v-a*m)+g*(i*c-a*l),t[3]=-(n*(l*p-c*h)-s*(i*p-a*h)+f*(i*c-a*l)),t[4]=-(o*(h*v-p*m)-u*(l*v-c*m)+d*(l*p-c*h)),t[5]=r*(h*v-p*m)-u*(i*v-a*m)+d*(i*p-a*h),t[6]=-(r*(l*v-c*m)-o*(i*v-a*m)+d*(i*c-a*l)),t[7]=r*(l*p-c*h)-o*(i*p-a*h)+u*(i*c-a*l),t[8]=o*(f*v-p*g)-u*(s*v-c*g)+d*(s*p-c*f),t[9]=-(r*(f*v-p*g)-u*(n*v-a*g)+d*(n*p-a*f)),t[10]=r*(s*v-c*g)-o*(n*v-a*g)+d*(n*c-a*s),t[11]=-(r*(s*p-c*f)-o*(n*p-a*f)+u*(n*c-a*s)),t[12]=-(o*(f*m-h*g)-u*(s*m-l*g)+d*(s*h-l*f)),t[13]=r*(f*m-h*g)-u*(n*m-i*g)+d*(n*h-i*f),t[14]=-(r*(s*m-l*g)-o*(n*m-i*g)+d*(n*l-i*s)),t[15]=r*(s*h-l*f)-o*(n*h-i*f)+u*(n*l-i*s),t}},{}],278:[function(t,e,r){e.exports=function(t){var e=new Float32Array(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},{}],279:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],280:[function(t,e,r){e.exports=function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],281:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],f=t[10],h=t[11],p=t[12],d=t[13],g=t[14],m=t[15];return(e*o-r*a)*(f*m-h*g)-(e*s-n*a)*(u*m-h*d)+(e*l-i*a)*(u*g-f*d)+(r*s-n*o)*(c*m-h*p)-(r*l-i*o)*(c*g-f*p)+(n*l-i*s)*(c*d-u*p)}},{}],282:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,c=r*o,u=n*o,f=n*s,h=i*o,p=i*s,d=i*l,g=a*o,m=a*s,v=a*l;return t[0]=1-f-d,t[1]=u+v,t[2]=h-m,t[3]=0,t[4]=u-v,t[5]=1-c-d,t[6]=p+g,t[7]=0,t[8]=h+m,t[9]=p-g,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],283:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o=r[0],s=r[1],l=r[2],c=Math.sqrt(o*o+s*s+l*l);if(Math.abs(c)&lt;1e-6)return null;return o*=c=1/c,s*=c,l*=c,n=Math.sin(e),i=Math.cos(e),a=1-i,t[0]=o*o*a+i,t[1]=s*o*a+l*n,t[2]=l*o*a-s*n,t[3]=0,t[4]=o*s*a-l*n,t[5]=s*s*a+i,t[6]=l*s*a+o*n,t[7]=0,t[8]=o*l*a+s*n,t[9]=s*l*a-o*n,t[10]=l*l*a+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],284:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=n+n,l=i+i,c=a+a,u=n*s,f=n*l,h=n*c,p=i*l,d=i*c,g=a*c,m=o*s,v=o*l,y=o*c;return t[0]=1-(p+g),t[1]=f+y,t[2]=h-v,t[3]=0,t[4]=f-y,t[5]=1-(u+g),t[6]=d+m,t[7]=0,t[8]=h+v,t[9]=d-m,t[10]=1-(u+p),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}},{}],285:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],286:[function(t,e,r){e.exports=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}},{}],287:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],288:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],289:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],290:[function(t,e,r){e.exports=function(t,e,r,n,i,a,o){var s=1/(r-e),l=1/(i-n),c=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(i+n)*l,t[10]=(o+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*c,t[15]=0,t}},{}],291:[function(t,e,r){e.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],292:[function(t,e,r){e.exports={create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),copy:t(&quot;./copy&quot;),identity:t(&quot;./identity&quot;),transpose:t(&quot;./transpose&quot;),invert:t(&quot;./invert&quot;),adjoint:t(&quot;./adjoint&quot;),determinant:t(&quot;./determinant&quot;),multiply:t(&quot;./multiply&quot;),translate:t(&quot;./translate&quot;),scale:t(&quot;./scale&quot;),rotate:t(&quot;./rotate&quot;),rotateX:t(&quot;./rotateX&quot;),rotateY:t(&quot;./rotateY&quot;),rotateZ:t(&quot;./rotateZ&quot;),fromRotation:t(&quot;./fromRotation&quot;),fromRotationTranslation:t(&quot;./fromRotationTranslation&quot;),fromScaling:t(&quot;./fromScaling&quot;),fromTranslation:t(&quot;./fromTranslation&quot;),fromXRotation:t(&quot;./fromXRotation&quot;),fromYRotation:t(&quot;./fromYRotation&quot;),fromZRotation:t(&quot;./fromZRotation&quot;),fromQuat:t(&quot;./fromQuat&quot;),frustum:t(&quot;./frustum&quot;),perspective:t(&quot;./perspective&quot;),perspectiveFromFieldOfView:t(&quot;./perspectiveFromFieldOfView&quot;),ortho:t(&quot;./ortho&quot;),lookAt:t(&quot;./lookAt&quot;),str:t(&quot;./str&quot;)}},{&quot;./adjoint&quot;:277,&quot;./clone&quot;:278,&quot;./copy&quot;:279,&quot;./create&quot;:280,&quot;./determinant&quot;:281,&quot;./fromQuat&quot;:282,&quot;./fromRotation&quot;:283,&quot;./fromRotationTranslation&quot;:284,&quot;./fromScaling&quot;:285,&quot;./fromTranslation&quot;:286,&quot;./fromXRotation&quot;:287,&quot;./fromYRotation&quot;:288,&quot;./fromZRotation&quot;:289,&quot;./frustum&quot;:290,&quot;./identity&quot;:291,&quot;./invert&quot;:293,&quot;./lookAt&quot;:294,&quot;./multiply&quot;:295,&quot;./ortho&quot;:296,&quot;./perspective&quot;:297,&quot;./perspectiveFromFieldOfView&quot;:298,&quot;./rotate&quot;:299,&quot;./rotateX&quot;:300,&quot;./rotateY&quot;:301,&quot;./rotateZ&quot;:302,&quot;./scale&quot;:303,&quot;./str&quot;:304,&quot;./translate&quot;:305,&quot;./transpose&quot;:306}],293:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*g-f*d,M=u*m-h*d,A=u*v-p*d,S=f*m-h*g,E=f*v-p*g,C=h*v-p*m,L=y*C-x*E+b*S+_*A-w*M+T*k;if(!L)return null;return L=1/L,t[0]=(s*C-l*E+c*S)*L,t[1]=(i*E-n*C-a*S)*L,t[2]=(g*T-m*w+v*_)*L,t[3]=(h*w-f*T-p*_)*L,t[4]=(l*A-o*C-c*M)*L,t[5]=(r*C-i*A+a*M)*L,t[6]=(m*b-d*T-v*x)*L,t[7]=(u*T-h*b+p*x)*L,t[8]=(o*E-s*A+c*k)*L,t[9]=(n*A-r*E-a*k)*L,t[10]=(d*w-g*b+v*y)*L,t[11]=(f*b-u*w-p*y)*L,t[12]=(s*M-o*S-l*k)*L,t[13]=(r*S-n*M+i*k)*L,t[14]=(g*x-d*_-m*y)*L,t[15]=(u*_-f*x+h*y)*L,t}},{}],294:[function(t,e,r){var n=t(&quot;./identity&quot;);e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g=e[0],m=e[1],v=e[2],y=i[0],x=i[1],b=i[2],_=r[0],w=r[1],T=r[2];if(Math.abs(g-_)&lt;1e-6&amp;&amp;Math.abs(m-w)&lt;1e-6&amp;&amp;Math.abs(v-T)&lt;1e-6)return n(t);f=g-_,h=m-w,p=v-T,d=1/Math.sqrt(f*f+h*h+p*p),a=x*(p*=d)-b*(h*=d),o=b*(f*=d)-y*p,s=y*h-x*f,(d=Math.sqrt(a*a+o*o+s*s))?(a*=d=1/d,o*=d,s*=d):(a=0,o=0,s=0);l=h*s-p*o,c=p*a-f*s,u=f*o-h*a,(d=Math.sqrt(l*l+c*c+u*u))?(l*=d=1/d,c*=d,u*=d):(l=0,c=0,u=0);return t[0]=a,t[1]=l,t[2]=f,t[3]=0,t[4]=o,t[5]=c,t[6]=h,t[7]=0,t[8]=s,t[9]=u,t[10]=p,t[11]=0,t[12]=-(a*g+o*m+s*v),t[13]=-(l*g+c*m+u*v),t[14]=-(f*g+h*m+p*v),t[15]=1,t}},{&quot;./identity&quot;:291}],295:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],m=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*m,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,x=r[4],b=r[5],_=r[6],w=r[7],t[4]=x*n+b*s+_*f+w*g,t[5]=x*i+b*l+_*h+w*m,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,x=r[8],b=r[9],_=r[10],w=r[11],t[8]=x*n+b*s+_*f+w*g,t[9]=x*i+b*l+_*h+w*m,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,x=r[12],b=r[13],_=r[14],w=r[15],t[12]=x*n+b*s+_*f+w*g,t[13]=x*i+b*l+_*h+w*m,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}},{}],296:[function(t,e,r){e.exports=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t}},{}],297:[function(t,e,r){e.exports=function(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t}},{}],298:[function(t,e,r){e.exports=function(t,e,r,n){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),c=2/(i+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(i-a)*c*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t}},{}],299:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S,E=n[0],C=n[1],L=n[2],I=Math.sqrt(E*E+C*C+L*L);if(Math.abs(I)&lt;1e-6)return null;E*=I=1/I,C*=I,L*=I,i=Math.sin(r),a=Math.cos(r),o=1-a,s=e[0],l=e[1],c=e[2],u=e[3],f=e[4],h=e[5],p=e[6],d=e[7],g=e[8],m=e[9],v=e[10],y=e[11],x=E*E*o+a,b=C*E*o+L*i,_=L*E*o-C*i,w=E*C*o-L*i,T=C*C*o+a,k=L*C*o+E*i,M=E*L*o+C*i,A=C*L*o-E*i,S=L*L*o+a,t[0]=s*x+f*b+g*_,t[1]=l*x+h*b+m*_,t[2]=c*x+p*b+v*_,t[3]=u*x+d*b+y*_,t[4]=s*w+f*T+g*k,t[5]=l*w+h*T+m*k,t[6]=c*w+p*T+v*k,t[7]=u*w+d*T+y*k,t[8]=s*M+f*A+g*S,t[9]=l*M+h*A+m*S,t[10]=c*M+p*A+v*S,t[11]=u*M+d*A+y*S,e!==t&amp;&amp;(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t}},{}],300:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t}},{}],301:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i-c*n,t[1]=o*i-u*n,t[2]=s*i-f*n,t[3]=l*i-h*n,t[8]=a*n+c*i,t[9]=o*n+u*i,t[10]=s*n+f*i,t[11]=l*n+h*i,t}},{}],302:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t}},{}],303:[function(t,e,r){e.exports=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],304:[function(t,e,r){e.exports=function(t){return&quot;mat4(&quot;+t[0]+&quot;, &quot;+t[1]+&quot;, &quot;+t[2]+&quot;, &quot;+t[3]+&quot;, &quot;+t[4]+&quot;, &quot;+t[5]+&quot;, &quot;+t[6]+&quot;, &quot;+t[7]+&quot;, &quot;+t[8]+&quot;, &quot;+t[9]+&quot;, &quot;+t[10]+&quot;, &quot;+t[11]+&quot;, &quot;+t[12]+&quot;, &quot;+t[13]+&quot;, &quot;+t[14]+&quot;, &quot;+t[15]+&quot;)&quot;}},{}],305:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],m=r[1],v=r[2];e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*m+f*v+e[12],t[13]=i*g+l*m+h*v+e[13],t[14]=a*g+c*m+p*v+e[14],t[15]=o*g+u*m+d*v+e[15]);return t}},{}],306:[function(t,e,r){e.exports=function(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}},{}],307:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;barycentric&quot;),i=t(&quot;polytope-closest-point/lib/closest_point_2d.js&quot;);function a(t,e){for(var r=[0,0,0,0],n=0;n&lt;4;++n)for(var i=0;i&lt;4;++i)r[i]+=t[4*n+i]*e[n];return r}function o(t,e,r,n,i){for(var o=a(n,a(r,a(e,[t[0],t[1],t[2],1]))),s=0;s&lt;3;++s)o[s]/=o[3];return[.5*i[0]*(1+o[0]),.5*i[1]*(1-o[1])]}function s(t,e){for(var r=[0,0,0],n=0;n&lt;t.length;++n)for(var i=t[n],a=e[n],o=0;o&lt;3;++o)r[o]+=a*i[o];return r}e.exports=function(t,e,r,a,l,c){if(1===t.length)return[0,t[0].slice()];for(var u=new Array(t.length),f=0;f&lt;t.length;++f)u[f]=o(t[f],r,a,l,c);var h=0,p=1/0;for(f=0;f&lt;u.length;++f){for(var d=0,g=0;g&lt;2;++g)d+=Math.pow(u[f][g]-e[g],2);d&lt;p&amp;&amp;(p=d,h=f)}var m=function(t,e){if(2===t.length){for(var r=0,a=0,o=0;o&lt;2;++o)r+=Math.pow(e[o]-t[0][o],2),a+=Math.pow(e[o]-t[1][o],2);return r=Math.sqrt(r),a=Math.sqrt(a),r+a&lt;1e-6?[1,0]:[a/(r+a),r/(a+r)]}if(3===t.length){var s=[0,0];return i(t[0],t[1],t[2],e,s),n(t,s)}return[]}(u,e),v=0;for(f=0;f&lt;3;++f){if(m[f]&lt;-.001||m[f]&gt;1.0001)return null;v+=m[f]}if(Math.abs(v-1)&gt;.001)return null;return[h,s(t,m),m]}},{barycentric:78,&quot;polytope-closest-point/lib/closest_point_2d.js&quot;:525}],308:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n           , view\n           , projection\n           , inverseModel;\nuniform vec3 eyePosition\n           , lightPosition;\n\nvarying vec3 f_normal\n           , f_lightDirection\n           , f_eyeDirection\n           , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvec4 project(vec3 p) {\n  return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n  gl_Position      = project(position);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * vec4(position , 1.0);\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal  = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  f_color          = color;\n  f_data           = position;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n            , fresnel\n            , kambient\n            , kdiffuse\n            , kspecular;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n           , f_lightDirection\n           , f_eyeDirection\n           , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (f_color.a == 0.0 ||\n    outOfRange(clipBounds[0], clipBounds[1], f_data)\n  ) discard;\n\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\n\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * f_color.a;\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model, view, projection;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n  f_color = color;\n  f_data  = position;\n  f_uv    = uv;\n}&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\n\n  gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}&quot;]),l=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\nattribute float pointSize;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0);\n  } else {\n    gl_Position = projection * view * model * vec4(position, 1.0);\n  }\n  gl_PointSize = pointSize;\n  f_color = color;\n  f_uv = uv;\n}&quot;]),c=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5);\n  if(dot(pointR, pointR) &gt; 0.25) {\n    discard;\n  }\n  gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}&quot;]),u=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n  f_id        = id;\n  f_position  = position;\n}&quot;]),f=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]),h=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3  position;\nattribute float pointSize;\nattribute vec4  id;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0.0, 0.0, 0.0, 0.0);\n  } else {\n    gl_Position  = projection * view * model * vec4(position, 1.0);\n    gl_PointSize = pointSize;\n  }\n  f_id         = id;\n  f_position   = position;\n}&quot;]),p=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n}&quot;]),d=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec3 contourColor;\n\nvoid main() {\n  gl_FragColor = vec4(contourColor, 1.0);\n}\n&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;}]},r.wireShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;}]},r.pointShader={vertex:l,fragment:c,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;pointSize&quot;,type:&quot;float&quot;}]},r.pickShader={vertex:u,fragment:f,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}]},r.pointPickShader={vertex:h,fragment:f,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;pointSize&quot;,type:&quot;float&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}]},r.contourShader={vertex:p,fragment:d,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;}]}},{glslify:310}],309:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;normals&quot;),l=t(&quot;gl-mat4/multiply&quot;),c=t(&quot;gl-mat4/invert&quot;),u=t(&quot;ndarray&quot;),f=t(&quot;colormap&quot;),h=t(&quot;simplicial-complex-contour&quot;),p=t(&quot;typedarray-pool&quot;),d=t(&quot;./lib/shaders&quot;),g=t(&quot;./lib/closest-point&quot;),m=d.meshShader,v=d.wireShader,y=d.pointShader,x=d.pickShader,b=d.pointPickShader,_=d.contourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function T(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,T,k,M,A,S){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleColors=u,this.triangleNormals=h,this.triangleUVs=f,this.triangleIds=c,this.triangleVAO=p,this.triangleCount=0,this.lineWidth=1,this.edgePositions=d,this.edgeColors=m,this.edgeUVs=v,this.edgeIds=g,this.edgeVAO=y,this.edgeCount=0,this.pointPositions=x,this.pointColors=_,this.pointUVs=T,this.pointSizes=k,this.pointIds=b,this.pointVAO=M,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=A,this.contourVAO=S,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=w,this._view=w,this._projection=w,this._resolution=[1,1]}var k=T.prototype;function M(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;r&lt;e.length;++r){if(e.length&lt;2)return 1;if(e[r][0]===t)return e[r][1];if(e[r][0]&gt;t&amp;&amp;r&gt;0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}function A(t){var e=n(t,m.vertex,m.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.normal.location=4,e}function S(t){var e=n(t,v.vertex,v.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e}function E(t){var e=n(t,y.vertex,y.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.pointSize.location=4,e}function C(t){var e=n(t,x.vertex,x.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e}function L(t){var e=n(t,b.vertex,b.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e.attributes.pointSize.location=4,e}function I(t){var e=n(t,_.vertex,_.fragment);return e.attributes.position.location=0,e}k.isOpaque=function(){return!this.hasAlpha},k.isTransparent=function(){return this.hasAlpha},k.pickSlots=1,k.setPickBase=function(t){this.pickId=t},k.highlight=function(t){if(t&amp;&amp;this.contourEnable){for(var e=h(this.cells,this.intensity,t.intensity),r=e.cells,n=e.vertexIds,i=e.vertexWeights,a=r.length,o=p.mallocFloat32(6*a),s=0,l=0;l&lt;a;++l)for(var c=r[l],u=0;u&lt;2;++u){var f=c[0];2===c.length&amp;&amp;(f=c[u]);for(var d=n[f][0],g=n[f][1],m=i[f],v=1-m,y=this.positions[d],x=this.positions[g],b=0;b&lt;3;++b)o[s++]=m*y[b]+v*x[b]}this.contourCount=s/3|0,this.contourPositions.update(o.subarray(0,s)),p.free(o)}else this.contourCount=0},k.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,&quot;contourEnable&quot;in t&amp;&amp;(this.contourEnable=t.contourEnable),&quot;contourColor&quot;in t&amp;&amp;(this.contourColor=t.contourColor),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;lightPosition&quot;in t&amp;&amp;(this.lightPosition=t.lightPosition),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0)),&quot;opacityscale&quot;in t&amp;&amp;(this.opacityscale=t.opacityscale,this.hasAlpha=!0),&quot;ambient&quot;in t&amp;&amp;(this.ambientLight=t.ambient),&quot;diffuse&quot;in t&amp;&amp;(this.diffuseLight=t.diffuse),&quot;specular&quot;in t&amp;&amp;(this.specularLight=t.specular),&quot;roughness&quot;in t&amp;&amp;(this.roughness=t.roughness),&quot;fresnel&quot;in t&amp;&amp;(this.fresnel=t.fresnel),t.texture?(this.texture.dispose(),this.texture=o(e,t.texture)):t.colormap&amp;&amp;(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t,e){for(var r=f({colormap:t,nshades:256,format:&quot;rgba&quot;}),n=new Uint8Array(1024),i=0;i&lt;256;++i){for(var a=r[i],o=0;o&lt;3;++o)n[4*i+o]=a[o];n[4*i+3]=e?255*M(i/255,e):255*a[3]}return u(n,[256,256,4],[4,0,1])}(t.colormap,this.opacityscale)),this.texture.generateMipmap());var r=t.cells,n=t.positions;if(n&amp;&amp;r){var i=[],a=[],l=[],c=[],h=[],p=[],d=[],g=[],m=[],v=[],y=[],x=[],b=[],_=[];this.cells=r,this.positions=n;var w=t.vertexNormals,T=t.cellNormals,k=void 0===t.vertexNormalsEpsilon?1e-6:t.vertexNormalsEpsilon,A=void 0===t.faceNormalsEpsilon?1e-6:t.faceNormalsEpsilon;t.useFacetNormals&amp;&amp;!T&amp;&amp;(T=s.faceNormals(r,n,A)),T||w||(w=s.vertexNormals(r,n,k));var S=t.vertexColors,E=t.cellColors,C=t.meshColor||[1,1,1,1],L=t.vertexUVs,I=t.vertexIntensity,P=t.cellUVs,z=t.cellIntensity,O=1/0,D=-1/0;if(!L&amp;&amp;!P)if(I)if(t.vertexIntensityBounds)O=+t.vertexIntensityBounds[0],D=+t.vertexIntensityBounds[1];else for(var R=0;R&lt;I.length;++R){var F=I[R];O=Math.min(O,F),D=Math.max(D,F)}else if(z)if(t.cellIntensityBounds)O=+t.cellIntensityBounds[0],D=+t.cellIntensityBounds[1];else for(R=0;R&lt;z.length;++R){F=z[R];O=Math.min(O,F),D=Math.max(D,F)}else for(R=0;R&lt;n.length;++R){F=n[R][2];O=Math.min(O,F),D=Math.max(D,F)}this.intensity=I||(z||function(t){for(var e=t.length,r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n][2];return r}(n)),this.pickVertex=!(z||E);var B=t.pointSizes,N=t.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(R=0;R&lt;n.length;++R)for(var j=n[R],U=0;U&lt;3;++U)!isNaN(j[U])&amp;&amp;isFinite(j[U])&amp;&amp;(this.bounds[0][U]=Math.min(this.bounds[0][U],j[U]),this.bounds[1][U]=Math.max(this.bounds[1][U],j[U]));var V=0,q=0,H=0;t:for(R=0;R&lt;r.length;++R){var G=r[R];switch(G.length){case 1:for(j=n[W=G[0]],U=0;U&lt;3;++U)if(isNaN(j[U])||!isFinite(j[U]))continue t;v.push(j[0],j[1],j[2]),X=S?S[W]:E?E[R]:C,this.opacityscale&amp;&amp;I?a.push(X[0],X[1],X[2],this.opacity*M((I[W]-O)/(D-O),this.opacityscale)):3===X.length?y.push(X[0],X[1],X[2],this.opacity):(y.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),Z=L?L[W]:I?[(I[W]-O)/(D-O),0]:P?P[R]:z?[(z[R]-O)/(D-O),0]:[(j[2]-O)/(D-O),0],x.push(Z[0],Z[1]),B?b.push(B[W]):b.push(N),_.push(R),H+=1;break;case 2:for(U=0;U&lt;2;++U){j=n[W=G[U]];for(var Y=0;Y&lt;3;++Y)if(isNaN(j[Y])||!isFinite(j[Y]))continue t}for(U=0;U&lt;2;++U){j=n[W=G[U]];p.push(j[0],j[1],j[2]),X=S?S[W]:E?E[R]:C,this.opacityscale&amp;&amp;I?a.push(X[0],X[1],X[2],this.opacity*M((I[W]-O)/(D-O),this.opacityscale)):3===X.length?d.push(X[0],X[1],X[2],this.opacity):(d.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),Z=L?L[W]:I?[(I[W]-O)/(D-O),0]:P?P[R]:z?[(z[R]-O)/(D-O),0]:[(j[2]-O)/(D-O),0],g.push(Z[0],Z[1]),m.push(R)}q+=1;break;case 3:for(U=0;U&lt;3;++U)for(j=n[W=G[U]],Y=0;Y&lt;3;++Y)if(isNaN(j[Y])||!isFinite(j[Y]))continue t;for(U=0;U&lt;3;++U){var W,X,Z,J;j=n[W=G[2-U]];i.push(j[0],j[1],j[2]),(X=S?S[W]:E?E[R]:C)?this.opacityscale&amp;&amp;I?a.push(X[0],X[1],X[2],this.opacity*M((I[W]-O)/(D-O),this.opacityscale)):3===X.length?a.push(X[0],X[1],X[2],this.opacity):(a.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)):a.push(.5,.5,.5,1),Z=L?L[W]:I?[(I[W]-O)/(D-O),0]:P?P[R]:z?[(z[R]-O)/(D-O),0]:[(j[2]-O)/(D-O),0],c.push(Z[0],Z[1]),J=w?w[W]:T[R],l.push(J[0],J[1],J[2]),h.push(R)}V+=1}}this.pointCount=H,this.edgeCount=q,this.triangleCount=V,this.pointPositions.update(v),this.pointColors.update(y),this.pointUVs.update(x),this.pointSizes.update(b),this.pointIds.update(new Uint32Array(_)),this.edgePositions.update(p),this.edgeColors.update(d),this.edgeUVs.update(g),this.edgeIds.update(new Uint32Array(m)),this.trianglePositions.update(i),this.triangleColors.update(a),this.triangleUVs.update(c),this.triangleNormals.update(l),this.triangleIds.update(new Uint32Array(h))}},k.drawTransparent=k.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var s={model:r,view:n,projection:i,inverseModel:w.slice(),clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],contourColor:this.contourColor,texture:0};s.inverseModel=c(s.inverseModel,s.model),e.disable(e.CULL_FACE),this.texture.bind(0);var u=new Array(16);l(u,s.view,s.model),l(u,s.projection,u),c(u,u);for(o=0;o&lt;3;++o)s.eyePosition[o]=u[12+o]/u[15];var f,h=u[15];for(o=0;o&lt;3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o&lt;3;++o){for(var p=u[12+o],d=0;d&lt;3;++d)p+=u[4*d+o]*this.lightPosition[d];s.lightPosition[o]=p/h}this.triangleCount&gt;0&amp;&amp;((f=this.triShader).bind(),f.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind());this.edgeCount&gt;0&amp;&amp;this.lineWidth&gt;0&amp;&amp;((f=this.lineShader).bind(),f.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind());this.pointCount&gt;0&amp;&amp;((f=this.pointShader).bind(),f.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind());this.contourEnable&amp;&amp;this.contourCount&gt;0&amp;&amp;this.contourLineWidth&gt;0&amp;&amp;((f=this.contourShader).bind(),f.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind())},k.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s,l={model:r,view:n,projection:i,clipBounds:a,pickId:this.pickId/255};((s=this.pickShader).bind(),s.uniforms=l,this.triangleCount&gt;0&amp;&amp;(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount&gt;0&amp;&amp;(this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount&gt;0)&amp;&amp;((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind())},k.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;for(var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions,i=new Array(r.length),a=0;a&lt;r.length;++a)i[a]=n[r[a]];var o=t.coord[0],s=t.coord[1];if(!this.pickVertex){var l=this.positions[r[0]],c=this.positions[r[1]],u=this.positions[r[2]],f=[(l[0]+c[0]+u[0])/3,(l[1]+c[1]+u[1])/3,(l[2]+c[2]+u[2])/3];return{_cellCenter:!0,position:[o,s],index:e,cell:r,cellId:e,intensity:this.intensity[e],dataCoordinate:f}}var h=g(i,[o*this.pixelRatio,this._resolution[1]-s*this.pixelRatio],this._model,this._view,this._projection,this._resolution);if(!h)return null;var p=h[2],d=0;for(a=0;a&lt;r.length;++a)d+=p[a]*this.intensity[r[a]];return{position:h[1],index:r[h[0]],cell:r,cellId:e,intensity:d,dataCoordinate:this.positions[r[h[0]]]}},k.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.lineShader.dispose(),this.pointShader.dispose(),this.pickShader.dispose(),this.pointPickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose(),this.contourShader.dispose()},e.exports=function(t,e){1===arguments.length&amp;&amp;(t=(e=t).gl);var r=t.getExtension(&quot;OES_standard_derivatives&quot;)||t.getExtension(&quot;MOZ_OES_standard_derivatives&quot;)||t.getExtension(&quot;WEBKIT_OES_standard_derivatives&quot;);if(!r)throw new Error(&quot;derivatives not supported&quot;);var n=A(t),s=S(t),l=E(t),c=C(t),f=L(t),h=I(t),p=o(t,u(new Uint8Array([255,255,255,255]),[1,1,4]));p.generateMipmap(),p.minFilter=t.LINEAR_MIPMAP_LINEAR,p.magFilter=t.LINEAR;var d=i(t),g=i(t),m=i(t),v=i(t),y=i(t),x=a(t,[{buffer:d,type:t.FLOAT,size:3},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:g,type:t.FLOAT,size:4},{buffer:m,type:t.FLOAT,size:2},{buffer:v,type:t.FLOAT,size:3}]),b=i(t),_=i(t),w=i(t),k=i(t),M=a(t,[{buffer:b,type:t.FLOAT,size:3},{buffer:k,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:_,type:t.FLOAT,size:4},{buffer:w,type:t.FLOAT,size:2}]),P=i(t),z=i(t),O=i(t),D=i(t),R=i(t),F=a(t,[{buffer:P,type:t.FLOAT,size:3},{buffer:R,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:z,type:t.FLOAT,size:4},{buffer:O,type:t.FLOAT,size:2},{buffer:D,type:t.FLOAT,size:1}]),B=i(t),N=a(t,[{buffer:B,type:t.FLOAT,size:3}]),j=new T(t,p,n,s,l,c,f,h,d,y,g,m,v,x,b,k,_,w,M,P,R,z,O,D,F,B,N);return j.update(e),j}},{&quot;./lib/closest-point&quot;:307,&quot;./lib/shaders&quot;:308,colormap:131,&quot;gl-buffer&quot;:259,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/multiply&quot;:295,&quot;gl-shader&quot;:335,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495,normals:498,&quot;simplicial-complex-contour&quot;:556,&quot;typedarray-pool&quot;:595}],310:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],311:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[0,0,0,1,1,0,1,1]),s=i(e,a.boxVert,a.lineFrag);return new o(t,r,s)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;./shaders&quot;);function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawBox=(s=[0,0],l=[0,0],function(t,e,r,n,i){var a=this.plot,o=this.shader,c=a.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,o.uniforms.lo=s,o.uniforms.hi=l,o.uniforms.color=i,c.drawArrays(c.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:314,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],312:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),a=i(e,o.gridVert,o.gridFrag),l=i(e,o.tickVert,o.gridFrag);return new s(t,r,a,l)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;binary-search-bounds&quot;),o=t(&quot;./shaders&quot;);function s(t,e,r,n){this.plot=t,this.vbo=e,this.shader=r,this.tickShader=n,this.ticks=[[],[]]}function l(t,e){return t-e}var c,u,f,h,p,d=s.prototype;d.draw=(c=[0,0],u=[0,0],f=[0,0],function(){for(var t=this.plot,e=this.vbo,r=this.shader,n=this.ticks,i=t.gl,a=t._tickBounds,o=t.dataBox,s=t.viewBox,l=t.gridLineWidth,h=t.gridLineColor,p=t.gridLineEnable,d=t.pixelRatio,g=0;g&lt;2;++g){var m=a[g],v=a[g+2]-m,y=.5*(o[g+2]+o[g]),x=o[g+2]-o[g];u[g]=2*v/x,c[g]=2*(m-y)/x}r.bind(),e.bind(),r.attributes.dataCoord.pointer(),r.uniforms.dataShift=c,r.uniforms.dataScale=u;var b=0;for(g=0;g&lt;2;++g){f[0]=f[1]=0,f[g]=1,r.uniforms.dataAxis=f,r.uniforms.lineWidth=l[g]/(s[g+2]-s[g])*d,r.uniforms.color=h[g];var _=6*n[g].length;p[g]&amp;&amp;_&amp;&amp;i.drawArrays(i.TRIANGLES,b,_),b+=_}}),d.drawTickMarks=function(){var t=[0,0],e=[0,0],r=[1,0],n=[0,1],i=[0,0],o=[0,0];return function(){for(var s=this.plot,c=this.vbo,u=this.tickShader,f=this.ticks,h=s.gl,p=s._tickBounds,d=s.dataBox,g=s.viewBox,m=s.pixelRatio,v=s.screenBox,y=v[2]-v[0],x=v[3]-v[1],b=g[2]-g[0],_=g[3]-g[1],w=0;w&lt;2;++w){var T=p[w],k=p[w+2]-T,M=.5*(d[w+2]+d[w]),A=d[w+2]-d[w];e[w]=2*k/A,t[w]=2*(T-M)/A}e[0]*=b/y,t[0]*=b/y,e[1]*=_/x,t[1]*=_/x,u.bind(),c.bind(),u.attributes.dataCoord.pointer();var S=u.uniforms;S.dataShift=t,S.dataScale=e;var E=s.tickMarkLength,C=s.tickMarkWidth,L=s.tickMarkColor,I=6*f[0].length,P=Math.min(a.ge(f[0],(d[0]-p[0])/(p[2]-p[0]),l),f[0].length),z=Math.min(a.gt(f[0],(d[2]-p[0])/(p[2]-p[0]),l),f[0].length),O=0+6*P,D=6*Math.max(0,z-P),R=Math.min(a.ge(f[1],(d[1]-p[1])/(p[3]-p[1]),l),f[1].length),F=Math.min(a.gt(f[1],(d[3]-p[1])/(p[3]-p[1]),l),f[1].length),B=I+6*R,N=6*Math.max(0,F-R);i[0]=2*(g[0]-E[1])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[1]*m/y,o[1]=C[1]*m/x,N&amp;&amp;(S.color=L[1],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,B,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[1]-E[0])/x-1,o[0]=C[0]*m/y,o[1]=E[0]*m/x,D&amp;&amp;(S.color=L[0],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,O,D)),i[0]=2*(g[2]+E[3])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[3]*m/y,o[1]=C[3]*m/x,N&amp;&amp;(S.color=L[3],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,B,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[3]+E[2])/x-1,o[0]=C[2]*m/y,o[1]=E[2]*m/x,D&amp;&amp;(S.color=L[2],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,O,D))}}(),d.update=(h=[1,1,-1,-1,1,-1],p=[1,-1,1,1,-1,-1],function(t){for(var e=t.ticks,r=t.bounds,n=new Float32Array(18*(e[0].length+e[1].length)),i=(this.plot.zeroLineEnable,0),a=[[],[]],o=0;o&lt;2;++o)for(var s=a[o],l=e[o],c=r[o],u=r[o+2],f=0;f&lt;l.length;++f){var d=(l[f].x-c)/(u-c);s.push(d);for(var g=0;g&lt;6;++g)n[i++]=d,n[i++]=h[g],n[i++]=p[g]}this.ticks=a,this.vbo.update(n)}),d.dispose=function(){this.vbo.dispose(),this.shader.dispose(),this.tickShader.dispose()}},{&quot;./shaders&quot;:314,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],313:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[-1,-1,-1,1,1,-1,1,1]),s=i(e,a.lineVert,a.lineFrag);return new o(t,r,s)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;./shaders&quot;);function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawLine=(s=[0,0],l=[0,0],function(t,e,r,n,i,a){var o=this.plot,c=this.shader,u=o.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,c.uniforms.start=s,c.uniforms.end=l,c.uniforms.width=i*o.pixelRatio,c.uniforms.color=a,u.drawArrays(u.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:314,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],314:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=n([&quot;precision lowp float;\n#define GLSLIFY 1\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = vec4(color.xyz * color.w, color.w);\n}\n&quot;]);e.exports={lineVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 start, end;\nuniform float width;\n\nvec2 perp(vec2 v) {\n  return vec2(v.y, -v.x);\n}\n\nvec2 screen(vec2 v) {\n  return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n  vec2 delta = normalize(perp(start - end));\n  vec2 offset = mix(start, end, 0.5 * (coord.y+1.0));\n  gl_Position = vec4(screen(offset + 0.5 * width * delta * coord.x), 0, 1);\n}\n&quot;]),lineFrag:i,textVert:n([&quot;#define GLSLIFY 1\nattribute vec3 textCoordinate;\n\nuniform vec2 dataScale, dataShift, dataAxis, screenOffset, textScale;\nuniform float angle;\n\nvoid main() {\n  float dataOffset  = textCoordinate.z;\n  vec2 glyphOffset  = textCoordinate.xy;\n  mat2 glyphMatrix = mat2(cos(angle), sin(angle), -sin(angle), cos(angle));\n  vec2 screenCoordinate = dataAxis * (dataScale * dataOffset + dataShift) +\n    glyphMatrix * glyphOffset * textScale + screenOffset;\n  gl_Position = vec4(screenCoordinate, 0, 1);\n}\n&quot;]),textFrag:i,gridVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale;\nuniform float lineWidth;\n\nvoid main() {\n  vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n  pos += 10.0 * dataCoord.y * vec2(dataAxis.y, -dataAxis.x) + dataCoord.z * lineWidth;\n  gl_Position = vec4(pos, 0, 1);\n}\n&quot;]),gridFrag:i,boxVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 lo, hi;\n\nvec2 screen(vec2 v) {\n  return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n  gl_Position = vec4(screen(mix(lo, hi, coord)), 0, 1);\n}\n&quot;]),tickVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale, screenOffset, tickScale;\n\nvoid main() {\n  vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n  gl_Position = vec4(pos + tickScale*dataCoord.yz + screenOffset, 0, 1);\n}\n&quot;])}},{glslify:316}],315:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),a=i(e,s.textVert,s.textFrag);return new l(t,r,a)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;text-cache&quot;),o=t(&quot;binary-search-bounds&quot;),s=t(&quot;./shaders&quot;);function l(t,e,r){this.plot=t,this.vbo=e,this.shader=r,this.tickOffset=[[],[]],this.tickX=[[],[]],this.labelOffset=[0,0],this.labelCount=[0,0]}var c,u,f,h,p,d,g=l.prototype;g.drawTicks=(c=[0,0],u=[0,0],f=[0,0],function(t){var e=this.plot,r=this.shader,n=this.tickX[t],i=this.tickOffset[t],a=e.gl,s=e.viewBox,l=e.dataBox,h=e.screenBox,p=e.pixelRatio,d=e.tickEnable,g=e.tickPad,m=e.tickColor,v=e.tickAngle,y=e.labelEnable,x=e.labelPad,b=e.labelColor,_=e.labelAngle,w=this.labelOffset[t],T=this.labelCount[t],k=o.lt(n,l[t]),M=o.le(n,l[t+2]);c[0]=c[1]=0,c[t]=1,u[t]=(s[2+t]+s[t])/(h[2+t]-h[t])-1;var A=2/h[2+(1^t)]-h[1^t];u[1^t]=A*s[1^t]-1,d[t]&amp;&amp;(u[1^t]-=A*p*g[t],k&lt;M&amp;&amp;i[M]&gt;i[k]&amp;&amp;(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=m[t],r.uniforms.angle=v[t],a.drawArrays(a.TRIANGLES,i[k],i[M]-i[k]))),y[t]&amp;&amp;T&amp;&amp;(u[1^t]-=A*p*x[t],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t],r.uniforms.angle=_[t],a.drawArrays(a.TRIANGLES,w,T)),u[1^t]=A*s[2+(1^t)]-1,d[t+2]&amp;&amp;(u[1^t]+=A*p*g[t+2],k&lt;M&amp;&amp;i[M]&gt;i[k]&amp;&amp;(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=m[t+2],r.uniforms.angle=v[t+2],a.drawArrays(a.TRIANGLES,i[k],i[M]-i[k]))),y[t+2]&amp;&amp;T&amp;&amp;(u[1^t]+=A*p*x[t+2],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t+2],r.uniforms.angle=_[t+2],a.drawArrays(a.TRIANGLES,w,T))}),g.drawTitle=function(){var t=[0,0],e=[0,0];return function(){var r=this.plot,n=this.shader,i=r.gl,a=r.screenBox,o=r.titleCenter,s=r.titleAngle,l=r.titleColor,c=r.pixelRatio;if(this.titleCount){for(var u=0;u&lt;2;++u)e[u]=2*(o[u]*c-a[u])/(a[2+u]-a[u])-1;n.bind(),n.uniforms.dataAxis=t,n.uniforms.screenOffset=e,n.uniforms.angle=s,n.uniforms.color=l,i.drawArrays(i.TRIANGLES,this.titleOffset,this.titleCount)}}}(),g.bind=(h=[0,0],p=[0,0],d=[0,0],function(){var t=this.plot,e=this.shader,r=t._tickBounds,n=t.dataBox,i=t.screenBox,a=t.viewBox;e.bind();for(var o=0;o&lt;2;++o){var s=r[o],l=r[o+2]-s,c=.5*(n[o+2]+n[o]),u=n[o+2]-n[o],f=a[o],g=a[o+2]-f,m=i[o],v=i[o+2]-m;p[o]=2*l/u*g/v,h[o]=2*(s-c)/u*g/v}d[1]=2*t.pixelRatio/(i[3]-i[1]),d[0]=d[1]*(i[3]-i[1])/(i[2]-i[0]),e.uniforms.dataScale=p,e.uniforms.dataShift=h,e.uniforms.textScale=d,this.vbo.bind(),e.attributes.textCoordinate.pointer()}),g.update=function(t){var e,r,n,i,o,s=[],l=t.ticks,c=t.bounds;for(o=0;o&lt;2;++o){var u=[Math.floor(s.length/3)],f=[-1/0],h=l[o];for(e=0;e&lt;h.length;++e){var p=h[e],d=p.x,g=p.text,m=p.font||&quot;sans-serif&quot;;i=p.fontSize||12;for(var v=1/(c[o+2]-c[o]),y=c[o],x=g.split(&quot;\n&quot;),b=0;b&lt;x.length;b++)for(n=a(m,x[b]).data,r=0;r&lt;n.length;r+=2)s.push(n[r]*i,-n[r+1]*i-b*i*1.2,(d-y)*v);u.push(Math.floor(s.length/3)),f.push(d)}this.tickOffset[o]=u,this.tickX[o]=f}for(o=0;o&lt;2;++o){for(this.labelOffset[o]=Math.floor(s.length/3),n=a(t.labelFont[o],t.labels[o],{textAlign:&quot;center&quot;}).data,i=t.labelSize[o],e=0;e&lt;n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.labelCount[o]=Math.floor(s.length/3)-this.labelOffset[o]}for(this.titleOffset=Math.floor(s.length/3),n=a(t.titleFont,t.title).data,i=t.titleSize,e=0;e&lt;n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.titleCount=Math.floor(s.length/3)-this.titleOffset,this.vbo.update(s)},g.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:314,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335,&quot;text-cache&quot;:575}],316:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],317:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[e.drawingBufferWidth,e.drawingBufferHeight]),c=new l(e,r);return c.grid=i(c),c.text=a(c),c.line=o(c),c.box=s(c),c.update(t),c};var n=t(&quot;gl-select-static&quot;),i=t(&quot;./lib/grid&quot;),a=t(&quot;./lib/text&quot;),o=t(&quot;./lib/line&quot;),s=t(&quot;./lib/box&quot;);function l(t,e){this.gl=t,this.pickBuffer=e,this.screenBox=[0,0,t.drawingBufferWidth,t.drawingBufferHeight],this.viewBox=[0,0,0,0],this.dataBox=[-10,-10,10,10],this.gridLineEnable=[!0,!0],this.gridLineWidth=[1,1],this.gridLineColor=[[0,0,0,1],[0,0,0,1]],this.pixelRatio=1,this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickEnable=[!0,!0,!0,!0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[15,15,15,15],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelEnable=[!0,!0,!0,!0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.titleCenter=[0,0],this.titleEnable=!0,this.titleAngle=0,this.titleColor=[0,0,0,1],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[4,4],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderLineEnable=[!0,!0,!0,!0],this.borderLineWidth=[2,2,2,2],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.grid=null,this.text=null,this.line=null,this.box=null,this.objects=[],this.overlays=[],this._tickBounds=[1/0,1/0,-1/0,-1/0],this.static=!1,this.dirty=!1,this.pickDirty=!1,this.pickDelay=120,this.pickRadius=10,this._pickTimeout=null,this._drawPick=this.drawPick.bind(this),this._depthCounter=0}var c=l.prototype;function u(t){for(var e=t.slice(),r=0;r&lt;e.length;++r)e[r]=e[r].slice();return e}function f(t,e){return t.x-e.x}c.setDirty=function(){this.dirty=this.pickDirty=!0},c.setOverlayDirty=function(){this.dirty=!0},c.nextDepthValue=function(){return this._depthCounter++/65536},c.draw=function(){var t=this.gl,e=this.screenBox,r=this.viewBox,n=this.dataBox,i=this.pixelRatio,a=this.grid,o=this.line,s=this.text,l=this.objects;if(this._depthCounter=0,this.pickDirty&amp;&amp;(this._pickTimeout&amp;&amp;clearTimeout(this._pickTimeout),this.pickDirty=!1,this._pickTimeout=setTimeout(this._drawPick,this.pickDelay)),this.dirty){if(this.dirty=!1,t.bindFramebuffer(t.FRAMEBUFFER,null),t.enable(t.SCISSOR_TEST),t.disable(t.DEPTH_TEST),t.depthFunc(t.LESS),t.depthMask(!1),t.enable(t.BLEND),t.blendEquation(t.FUNC_ADD,t.FUNC_ADD),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),this.borderColor){t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]);var c=this.borderColor;t.clearColor(c[0]*c[3],c[1]*c[3],c[2]*c[3],c[3]),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}t.scissor(r[0],r[1],r[2]-r[0],r[3]-r[1]),t.viewport(r[0],r[1],r[2]-r[0],r[3]-r[1]);var u=this.backgroundColor;t.clearColor(u[0]*u[3],u[1]*u[3],u[2]*u[3],u[3]),t.clear(t.COLOR_BUFFER_BIT),a.draw();var f=this.zeroLineEnable,h=this.zeroLineColor,p=this.zeroLineWidth;if(f[0]||f[1]){o.bind();for(var d=0;d&lt;2;++d)if(f[d]&amp;&amp;n[d]&lt;=0&amp;&amp;n[d+2]&gt;=0){var g=e[d]-n[d]*(e[d+2]-e[d])/(n[d+2]-n[d]);0===d?o.drawLine(g,e[1],g,e[3],p[d],h[d]):o.drawLine(e[0],g,e[2],g,p[d],h[d])}}for(d=0;d&lt;l.length;++d)l[d].draw();t.viewport(e[0],e[1],e[2]-e[0],e[3]-e[1]),t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]),this.grid.drawTickMarks(),o.bind();var m=this.borderLineEnable,v=this.borderLineWidth,y=this.borderLineColor;for(m[1]&amp;&amp;o.drawLine(r[0],r[1]-.5*v[1]*i,r[0],r[3]+.5*v[3]*i,v[1],y[1]),m[0]&amp;&amp;o.drawLine(r[0]-.5*v[0]*i,r[1],r[2]+.5*v[2]*i,r[1],v[0],y[0]),m[3]&amp;&amp;o.drawLine(r[2],r[1]-.5*v[1]*i,r[2],r[3]+.5*v[3]*i,v[3],y[3]),m[2]&amp;&amp;o.drawLine(r[0]-.5*v[0]*i,r[3],r[2]+.5*v[2]*i,r[3],v[2],y[2]),s.bind(),d=0;d&lt;2;++d)s.drawTicks(d);this.titleEnable&amp;&amp;s.drawTitle();var x=this.overlays;for(d=0;d&lt;x.length;++d)x[d].draw();t.disable(t.SCISSOR_TEST),t.disable(t.BLEND),t.depthMask(!0)}},c.drawPick=function(){if(!this.static){var t=this.pickBuffer;this.gl,this._pickTimeout=null,t.begin();for(var e=1,r=this.objects,n=0;n&lt;r.length;++n)e=r[n].drawPick(e);t.end()}},c.pick=function(t,e){if(!this.static){var r=this.pixelRatio,n=this.pickPixelRatio,i=this.viewBox,a=0|Math.round((t-i[0]/r)*n),o=0|Math.round((e-i[1]/r)*n),s=this.pickBuffer.query(a,o,this.pickRadius);if(!s)return null;for(var l=s.id+(s.value[0]&lt;&lt;8)+(s.value[1]&lt;&lt;16)+(s.value[2]&lt;&lt;24),c=this.objects,u=0;u&lt;c.length;++u){var f=c[u].pick(a,o,l);if(f)return f}return null}},c.setScreenBox=function(t){var e=this.screenBox,r=this.pixelRatio;e[0]=0|Math.round(t[0]*r),e[1]=0|Math.round(t[1]*r),e[2]=0|Math.round(t[2]*r),e[3]=0|Math.round(t[3]*r),this.setDirty()},c.setDataBox=function(t){var e=this.dataBox;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3])&amp;&amp;(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],this.setDirty())},c.setViewBox=function(t){var e=this.pixelRatio,r=this.viewBox;r[0]=0|Math.round(t[0]*e),r[1]=0|Math.round(t[1]*e),r[2]=0|Math.round(t[2]*e),r[3]=0|Math.round(t[3]*e);var n=this.pickPixelRatio;this.pickBuffer.shape=[0|Math.round((t[2]-t[0])*n),0|Math.round((t[3]-t[1])*n)],this.setDirty()},c.update=function(t){t=t||{};var e=this.gl;this.pixelRatio=t.pixelRatio||1;var r=this.pixelRatio;this.pickPixelRatio=Math.max(r,1),this.setScreenBox(t.screenBox||[0,0,e.drawingBufferWidth/r,e.drawingBufferHeight/r]);this.screenBox;this.setViewBox(t.viewBox||[.125*(this.screenBox[2]-this.screenBox[0])/r,.125*(this.screenBox[3]-this.screenBox[1])/r,.875*(this.screenBox[2]-this.screenBox[0])/r,.875*(this.screenBox[3]-this.screenBox[1])/r]);var n=this.viewBox,i=(n[2]-n[0])/(n[3]-n[1]);this.setDataBox(t.dataBox||[-10,-10/i,10,10/i]),this.borderColor=!1!==t.borderColor&amp;&amp;(t.borderColor||[0,0,0,0]).slice(),this.backgroundColor=(t.backgroundColor||[0,0,0,0]).slice(),this.gridLineEnable=(t.gridLineEnable||[!0,!0]).slice(),this.gridLineWidth=(t.gridLineWidth||[1,1]).slice(),this.gridLineColor=u(t.gridLineColor||[[.5,.5,.5,1],[.5,.5,.5,1]]),this.zeroLineEnable=(t.zeroLineEnable||[!0,!0]).slice(),this.zeroLineWidth=(t.zeroLineWidth||[4,4]).slice(),this.zeroLineColor=u(t.zeroLineColor||[[0,0,0,1],[0,0,0,1]]),this.tickMarkLength=(t.tickMarkLength||[0,0,0,0]).slice(),this.tickMarkWidth=(t.tickMarkWidth||[0,0,0,0]).slice(),this.tickMarkColor=u(t.tickMarkColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.titleCenter=(t.titleCenter||[.5*(n[0]+n[2])/r,(n[3]+120)/r]).slice(),this.titleEnable=!(&quot;titleEnable&quot;in t)||!!t.titleEnable,this.titleAngle=t.titleAngle||0,this.titleColor=(t.titleColor||[0,0,0,1]).slice(),this.labelPad=(t.labelPad||[15,15,15,15]).slice(),this.labelAngle=(t.labelAngle||[0,Math.PI/2,0,3*Math.PI/2]).slice(),this.labelEnable=(t.labelEnable||[!0,!0,!0,!0]).slice(),this.labelColor=u(t.labelColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.tickPad=(t.tickPad||[15,15,15,15]).slice(),this.tickAngle=(t.tickAngle||[0,0,0,0]).slice(),this.tickEnable=(t.tickEnable||[!0,!0,!0,!0]).slice(),this.tickColor=u(t.tickColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.borderLineEnable=(t.borderLineEnable||[!0,!0,!0,!0]).slice(),this.borderLineWidth=(t.borderLineWidth||[2,2,2,2]).slice(),this.borderLineColor=u(t.borderLineColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]);var a=t.ticks||[[],[]],o=this._tickBounds;o[0]=o[1]=1/0,o[2]=o[3]=-1/0;for(var s=0;s&lt;2;++s){var l=a[s].slice(0);0!==l.length&amp;&amp;(l.sort(f),o[s]=Math.min(o[s],l[0].x),o[s+2]=Math.max(o[s+2],l[l.length-1].x))}this.grid.update({bounds:o,ticks:a}),this.text.update({bounds:o,ticks:a,labels:t.labels||[&quot;x&quot;,&quot;y&quot;],labelSize:t.labelSize||[12,12],labelFont:t.labelFont||[&quot;sans-serif&quot;,&quot;sans-serif&quot;],title:t.title||&quot;&quot;,titleSize:t.titleSize||18,titleFont:t.titleFont||&quot;sans-serif&quot;}),this.static=!!t.static,this.setDirty()},c.dispose=function(){this.box.dispose(),this.grid.dispose(),this.text.dispose(),this.line.dispose();for(var t=this.objects.length-1;t&gt;=0;--t)this.objects[t].dispose();this.objects.length=0;for(t=this.overlays.length-1;t&gt;=0;--t)this.overlays[t].dispose();this.overlays.length=0,this.gl=null},c.addObject=function(t){this.objects.indexOf(t)&lt;0&amp;&amp;(this.objects.push(t),this.setDirty())},c.removeObject=function(t){for(var e=this.objects,r=0;r&lt;e.length;++r)if(e[r]===t){e.splice(r,1),this.setDirty();break}},c.addOverlay=function(t){this.overlays.indexOf(t)&lt;0&amp;&amp;(this.overlays.push(t),this.setOverlayDirty())},c.removeOverlay=function(t){for(var e=this.overlays,r=0;r&lt;e.length;++r)if(e[r]===t){e.splice(r,1),this.setOverlayDirty();break}}},{&quot;./lib/box&quot;:311,&quot;./lib/grid&quot;:312,&quot;./lib/line&quot;:313,&quot;./lib/text&quot;:315,&quot;gl-select-static&quot;:334}],318:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){t=t||document.body,e=e||{};var r=[.01,1/0];&quot;distanceLimits&quot;in e&amp;&amp;(r[0]=e.distanceLimits[0],r[1]=e.distanceLimits[1]);&quot;zoomMin&quot;in e&amp;&amp;(r[0]=e.zoomMin);&quot;zoomMax&quot;in e&amp;&amp;(r[1]=e.zoomMax);var c=i({center:e.center||[0,0,0],up:e.up||[0,1,0],eye:e.eye||[0,0,10],mode:e.mode||&quot;orbit&quot;,distanceLimits:r}),u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],f=0,h=t.clientWidth,p=t.clientHeight,d={keyBindingMode:&quot;rotate&quot;,enableWheel:!0,view:c,element:t,delay:e.delay||16,rotateSpeed:e.rotateSpeed||1,zoomSpeed:e.zoomSpeed||1,translateSpeed:e.translateSpeed||1,flipX:!!e.flipX,flipY:!!e.flipY,modes:c.modes,_ortho:e._ortho||e.projection&amp;&amp;&quot;orthographic&quot;===e.projection.type||!1,tick:function(){var e=n(),r=this.delay,i=e-2*r;c.idle(e-r),c.recalcMatrix(i),c.flush(e-(100+2*r));for(var a=!0,o=c.computedMatrix,s=0;s&lt;16;++s)a=a&amp;&amp;u[s]===o[s],u[s]=o[s];var l=t.clientWidth===h&amp;&amp;t.clientHeight===p;return h=t.clientWidth,p=t.clientHeight,a?!l:(f=Math.exp(c.computedRadius[0]),!0)},lookAt:function(t,e,r){c.lookAt(c.lastT(),t,e,r)},rotate:function(t,e,r){c.rotate(c.lastT(),t,e,r)},pan:function(t,e,r){c.pan(c.lastT(),t,e,r)},translate:function(t,e,r){c.translate(c.lastT(),t,e,r)}};return Object.defineProperties(d,{matrix:{get:function(){return c.computedMatrix},set:function(t){return c.setMatrix(c.lastT(),t),c.computedMatrix},enumerable:!0},mode:{get:function(){return c.getMode()},set:function(t){var e=c.computedUp.slice(),r=c.computedEye.slice(),i=c.computedCenter.slice();if(c.setMode(t),&quot;turntable&quot;===t){var a=n();c._active.lookAt(a,r,i,e),c._active.lookAt(a+500,r,i,[0,0,1]),c._active.flush(a)}return c.getMode()},enumerable:!0},center:{get:function(){return c.computedCenter},set:function(t){return c.lookAt(c.lastT(),null,t),c.computedCenter},enumerable:!0},eye:{get:function(){return c.computedEye},set:function(t){return c.lookAt(c.lastT(),t),c.computedEye},enumerable:!0},up:{get:function(){return c.computedUp},set:function(t){return c.lookAt(c.lastT(),null,null,t),c.computedUp},enumerable:!0},distance:{get:function(){return f},set:function(t){return c.setDistance(c.lastT(),t),t},enumerable:!0},distanceLimits:{get:function(){return c.getDistanceLimits(r)},set:function(t){return c.setDistanceLimits(t),t},enumerable:!0}}),t.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault(),!1})),d._lastX=-1,d._lastY=-1,d._lastMods={shift:!1,control:!1,alt:!1,meta:!1},d.enableMouseListeners=function(){function e(e,r,i,a){var o=d.keyBindingMode;if(!1!==o){var s=&quot;rotate&quot;===o,l=&quot;pan&quot;===o,u=&quot;zoom&quot;===o,h=!!a.control,p=!!a.alt,g=!!a.shift,m=!!(1&amp;e),v=!!(2&amp;e),y=!!(4&amp;e),x=1/t.clientHeight,b=x*(r-d._lastX),_=x*(i-d._lastY),w=d.flipX?1:-1,T=d.flipY?1:-1,k=Math.PI*d.rotateSpeed,M=n();if(-1!==d._lastX&amp;&amp;-1!==d._lastY&amp;&amp;((s&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||m&amp;&amp;!h&amp;&amp;!p&amp;&amp;g)&amp;&amp;c.rotate(M,w*k*b,-T*k*_,0),(l&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||v||m&amp;&amp;h&amp;&amp;!p&amp;&amp;!g)&amp;&amp;c.pan(M,-d.translateSpeed*b*f,d.translateSpeed*_*f,0),u&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||y||m&amp;&amp;!h&amp;&amp;p&amp;&amp;!g)){var A=-d.zoomSpeed*_/window.innerHeight*(M-c.lastT())*100;c.pan(M,0,0,f*(Math.exp(A)-1))}return d._lastX=r,d._lastY=i,d._lastMods=a,!0}}d.mouseListener=a(t,e),t.addEventListener(&quot;touchstart&quot;,(function(r){var n=s(r.changedTouches[0],t);e(0,n[0],n[1],d._lastMods),e(1,n[0],n[1],d._lastMods)}),!!l&amp;&amp;{passive:!0}),t.addEventListener(&quot;touchmove&quot;,(function(r){var n=s(r.changedTouches[0],t);e(1,n[0],n[1],d._lastMods),r.preventDefault()}),!!l&amp;&amp;{passive:!1}),t.addEventListener(&quot;touchend&quot;,(function(t){e(0,d._lastX,d._lastY,d._lastMods)}),!!l&amp;&amp;{passive:!0}),d.wheelListener=o(t,(function(t,e){if(!1!==d.keyBindingMode&amp;&amp;d.enableWheel){var r=d.flipX?1:-1,i=d.flipY?1:-1,a=n();if(Math.abs(t)&gt;Math.abs(e))c.rotate(a,0,0,-t*r*Math.PI*d.rotateSpeed/window.innerWidth);else if(!d._ortho){var o=-d.zoomSpeed*i*e/window.innerHeight*(a-c.lastT())/20;c.pan(a,0,0,f*(Math.exp(o)-1))}}}),!0)},d.enableMouseListeners(),d};var n=t(&quot;right-now&quot;),i=t(&quot;3d-view&quot;),a=t(&quot;mouse-change&quot;),o=t(&quot;mouse-wheel&quot;),s=t(&quot;mouse-event-offset&quot;),l=t(&quot;has-passive-events&quot;)},{&quot;3d-view&quot;:54,&quot;has-passive-events&quot;:441,&quot;mouse-change&quot;:483,&quot;mouse-event-offset&quot;:484,&quot;mouse-wheel&quot;:486,&quot;right-now&quot;:542}],319:[function(t,e,r){var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision mediump float;\n#define GLSLIFY 1\nattribute vec2 position;\nvarying vec2 uv;\nvoid main() {\n  uv = position;\n  gl_Position = vec4(position, 0, 1);\n}&quot;]),o=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform sampler2D accumBuffer;\nvarying vec2 uv;\n\nvoid main() {\n  vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\n  gl_FragColor = min(vec4(1,1,1,1), accum);\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec2&quot;}])}},{&quot;gl-shader&quot;:335,glslify:320}],320:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],321:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./camera.js&quot;),i=t(&quot;gl-axes3d&quot;),a=t(&quot;gl-axes3d/properties&quot;),o=t(&quot;gl-spikes3d&quot;),s=t(&quot;gl-select-static&quot;),l=t(&quot;gl-fbo&quot;),c=t(&quot;a-big-triangle&quot;),u=t(&quot;mouse-change&quot;),f=t(&quot;gl-mat4/perspective&quot;),h=t(&quot;gl-mat4/ortho&quot;),p=t(&quot;./lib/shader&quot;),d=t(&quot;is-mobile&quot;)({tablet:!0,featureDetect:!0});function g(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function m(t){var e=Math.round(Math.log(Math.abs(t))/Math.log(10));if(e&lt;0){var r=Math.round(Math.pow(10,-e));return Math.ceil(t*r)/r}if(e&gt;0){r=Math.round(Math.pow(10,e));return Math.ceil(t/r)*r}return Math.ceil(t)}function v(t){return&quot;boolean&quot;!=typeof t||t}e.exports={createScene:function(t){(t=t||{}).camera=t.camera||{};var e=t.canvas;if(!e){if(e=document.createElement(&quot;canvas&quot;),t.container)t.container.appendChild(e);else document.body.appendChild(e)}var r=t.gl;r||(t.glOptions&amp;&amp;(d=!!t.glOptions.preserveDrawingBuffer),r=function(t,e){var r=null;try{(r=t.getContext(&quot;webgl&quot;,e))||(r=t.getContext(&quot;experimental-webgl&quot;,e))}catch(t){return null}return r}(e,t.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:d}));if(!r)throw new Error(&quot;webgl not supported&quot;);var y=t.bounds||[[-10,-10,-10],[10,10,10]],x=new g,b=l(r,r.drawingBufferWidth,r.drawingBufferHeight,{preferFloat:!d}),_=p(r),w=t.cameraObject&amp;&amp;!0===t.cameraObject._ortho||t.camera.projection&amp;&amp;&quot;orthographic&quot;===t.camera.projection.type||!1,T={eye:t.camera.eye||[2,0,0],center:t.camera.center||[0,0,0],up:t.camera.up||[0,1,0],zoomMin:t.camera.zoomMax||.1,zoomMax:t.camera.zoomMin||100,mode:t.camera.mode||&quot;turntable&quot;,_ortho:w},k=t.axes||{},M=i(r,k);M.enable=!k.disable;var A=t.spikes||{},S=o(r,A),E=[],C=[],L=[],I=[],P=!0,z=!0,O=new Array(16),D=new Array(16),R={view:null,projection:O,model:D,_ortho:!1},F=(z=!0,[r.drawingBufferWidth,r.drawingBufferHeight]),B=t.cameraObject||n(e,T),N={gl:r,contextLost:!1,pixelRatio:t.pixelRatio||1,canvas:e,selection:x,camera:B,axes:M,axesPixels:null,spikes:S,bounds:y,objects:E,shape:F,aspect:t.aspectRatio||[1,1,1],pickRadius:t.pickRadius||10,zNear:t.zNear||.01,zFar:t.zFar||1e3,fovy:t.fovy||Math.PI/4,clearColor:t.clearColor||[0,0,0,0],autoResize:v(t.autoResize),autoBounds:v(t.autoBounds),autoScale:!!t.autoScale,autoCenter:v(t.autoCenter),clipToBounds:v(t.clipToBounds),snapToData:!!t.snapToData,onselect:t.onselect||null,onrender:t.onrender||null,onclick:t.onclick||null,cameraParams:R,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(t){this.aspect[0]=t.x,this.aspect[1]=t.y,this.aspect[2]=t.z,z=!0},setBounds:function(t,e){this.bounds[0][t]=e.min,this.bounds[1][t]=e.max},setClearColor:function(t){this.clearColor=t},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},j=[r.drawingBufferWidth/N.pixelRatio|0,r.drawingBufferHeight/N.pixelRatio|0];function U(){if(!N._stopped&amp;&amp;N.autoResize){var t=e.parentNode,r=1,n=1;t&amp;&amp;t!==document.body?(r=t.clientWidth,n=t.clientHeight):(r=window.innerWidth,n=window.innerHeight);var i=0|Math.ceil(r*N.pixelRatio),a=0|Math.ceil(n*N.pixelRatio);if(i!==e.width||a!==e.height){e.width=i,e.height=a;var o=e.style;o.position=o.position||&quot;absolute&quot;,o.left=&quot;0px&quot;,o.top=&quot;0px&quot;,o.width=r+&quot;px&quot;,o.height=n+&quot;px&quot;,P=!0}}}N.autoResize&amp;&amp;U();function V(){for(var t=E.length,e=I.length,n=0;n&lt;e;++n)L[n]=0;t:for(n=0;n&lt;t;++n){var i=E[n],a=i.pickSlots;if(a){for(var o=0;o&lt;e;++o)if(L[o]+a&lt;255){C[n]=o,i.setPickBase(L[o]+1),L[o]+=a;continue t}var l=s(r,F);C[n]=e,I.push(l),L.push(a),i.setPickBase(1),e+=1}else C[n]=-1}for(;e&gt;0&amp;&amp;0===L[e-1];)L.pop(),I.pop().dispose()}function q(){if(N.contextLost)return!0;r.isContextLost()&amp;&amp;(N.contextLost=!0,N.mouseListener.enabled=!1,N.selection.object=null,N.oncontextloss&amp;&amp;N.oncontextloss())}window.addEventListener(&quot;resize&quot;,U),N.update=function(t){N._stopped||(t=t||{},P=!0,z=!0)},N.add=function(t){N._stopped||(t.axes=M,E.push(t),C.push(-1),P=!0,z=!0,V())},N.remove=function(t){if(!N._stopped){var e=E.indexOf(t);e&lt;0||(E.splice(e,1),C.pop(),P=!0,z=!0,V())}},N.dispose=function(){if(!N._stopped&amp;&amp;(N._stopped=!0,window.removeEventListener(&quot;resize&quot;,U),e.removeEventListener(&quot;webglcontextlost&quot;,q),N.mouseListener.enabled=!1,!N.contextLost)){M.dispose(),S.dispose();for(var t=0;t&lt;E.length;++t)E[t].dispose();b.dispose();for(t=0;t&lt;I.length;++t)I[t].dispose();_.dispose(),r=null,M=null,S=null,E=[]}},N._mouseRotating=!1,N._prevButtons=0,N.enableMouseListeners=function(){N.mouseListener=u(e,(function(t,e,r){if(!N._stopped){var n=I.length,i=E.length,a=x.object;x.distance=1/0,x.mouse[0]=e,x.mouse[1]=r,x.object=null,x.screen=null,x.dataCoordinate=x.dataPosition=null;var o=!1;if(t&amp;&amp;N._prevButtons)N._mouseRotating=!0;else{N._mouseRotating&amp;&amp;(z=!0),N._mouseRotating=!1;for(var s=0;s&lt;n;++s){var l=I[s].query(e,j[1]-r-1,N.pickRadius);if(l){if(l.distance&gt;x.distance)continue;for(var c=0;c&lt;i;++c){var u=E[c];if(C[c]===s){var f=u.pick(l);f&amp;&amp;(x.buttons=t,x.screen=l.coord,x.distance=l.distance,x.object=u,x.index=f.distance,x.dataPosition=f.position,x.dataCoordinate=f.dataCoordinate,x.data=f,o=!0)}}}}}a&amp;&amp;a!==x.object&amp;&amp;(a.highlight&amp;&amp;a.highlight(null),P=!0),x.object&amp;&amp;(x.object.highlight&amp;&amp;x.object.highlight(x.data),P=!0),(o=o||x.object!==a)&amp;&amp;N.onselect&amp;&amp;N.onselect(x),1&amp;t&amp;&amp;!(1&amp;N._prevButtons)&amp;&amp;N.onclick&amp;&amp;N.onclick(x),N._prevButtons=t}}))},e.addEventListener(&quot;webglcontextlost&quot;,q);var H=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],G=[H[0].slice(),H[1].slice()];function Y(){if(!q()){U();var t=N.camera.tick();R.view=N.camera.matrix,P=P||t,z=z||t,M.pixelRatio=N.pixelRatio,S.pixelRatio=N.pixelRatio;var e=E.length,n=H[0],i=H[1];n[0]=n[1]=n[2]=1/0,i[0]=i[1]=i[2]=-1/0;for(var o=0;o&lt;e;++o){(L=E[o]).pixelRatio=N.pixelRatio,L.axes=N.axes,P=P||!!L.dirty,z=z||!!L.dirty;var s=L.bounds;if(s)for(var l=s[0],u=s[1],p=0;p&lt;3;++p)n[p]=Math.min(n[p],l[p]),i[p]=Math.max(i[p],u[p])}var d=N.bounds;if(N.autoBounds)for(p=0;p&lt;3;++p){if(i[p]&lt;n[p])n[p]=-1,i[p]=1;else{n[p]===i[p]&amp;&amp;(n[p]-=1,i[p]+=1);var g=.05*(i[p]-n[p]);n[p]=n[p]-g,i[p]=i[p]+g}d[0][p]=n[p],d[1][p]=i[p]}var v=!1;for(p=0;p&lt;3;++p)v=v||G[0][p]!==d[0][p]||G[1][p]!==d[1][p],G[0][p]=d[0][p],G[1][p]=d[1][p];if(z=z||v,P=P||v){if(v){var y=[0,0,0];for(o=0;o&lt;3;++o)y[o]=m((d[1][o]-d[0][o])/10);M.autoTicks?M.update({bounds:d,tickSpacing:y}):M.update({bounds:d})}var T=r.drawingBufferWidth,k=r.drawingBufferHeight;F[0]=T,F[1]=k,j[0]=0|Math.max(T/N.pixelRatio,1),j[1]=0|Math.max(k/N.pixelRatio,1),function(t,e){var r=t.bounds,n=t.cameraParams,i=n.projection,a=n.model,o=t.gl.drawingBufferWidth,s=t.gl.drawingBufferHeight,l=t.zNear,c=t.zFar,u=t.fovy,p=o/s;e?(h(i,-p,p,-1,1,l,c),n._ortho=!0):(f(i,u,p,l,c),n._ortho=!1);for(var d=0;d&lt;16;++d)a[d]=0;a[15]=1;var g=0;for(d=0;d&lt;3;++d)g=Math.max(g,r[1][d]-r[0][d]);for(d=0;d&lt;3;++d)t.autoScale?a[5*d]=t.aspect[d]/(r[1][d]-r[0][d]):a[5*d]=1/g,t.autoCenter&amp;&amp;(a[12+d]=.5*-a[5*d]*(r[0][d]+r[1][d]))}(N,w);for(o=0;o&lt;e;++o){(L=E[o]).axesBounds=d,N.clipToBounds&amp;&amp;(L.clipBounds=d)}x.object&amp;&amp;(N.snapToData?S.position=x.dataCoordinate:S.position=x.dataPosition,S.bounds=d),z&amp;&amp;(z=!1,function(){if(!q()){r.colorMask(!0,!0,!0,!0),r.depthMask(!0),r.disable(r.BLEND),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL);for(var t=E.length,e=I.length,n=0;n&lt;e;++n){var i=I[n];i.shape=j,i.begin();for(var a=0;a&lt;t;++a)if(C[a]===n){var o=E[a];o.drawPick&amp;&amp;(o.pixelRatio=1,o.drawPick(R))}i.end()}}}()),N.axesPixels=a(N.axes,R,T,k),N.onrender&amp;&amp;N.onrender(),r.bindFramebuffer(r.FRAMEBUFFER,null),r.viewport(0,0,T,k),N.clearRGBA(),r.depthMask(!0),r.colorMask(!0,!0,!0,!0),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL),r.disable(r.BLEND),r.disable(r.CULL_FACE);var A=!1;M.enable&amp;&amp;(A=A||M.isTransparent(),M.draw(R)),S.axes=M,x.object&amp;&amp;S.draw(R),r.disable(r.CULL_FACE);for(o=0;o&lt;e;++o){(L=E[o]).axes=M,L.pixelRatio=N.pixelRatio,L.isOpaque&amp;&amp;L.isOpaque()&amp;&amp;L.draw(R),L.isTransparent&amp;&amp;L.isTransparent()&amp;&amp;(A=!0)}if(A){b.shape=F,b.bind(),r.clear(r.DEPTH_BUFFER_BIT),r.colorMask(!1,!1,!1,!1),r.depthMask(!0),r.depthFunc(r.LESS),M.enable&amp;&amp;M.isTransparent()&amp;&amp;M.drawTransparent(R);for(o=0;o&lt;e;++o){(L=E[o]).isOpaque&amp;&amp;L.isOpaque()&amp;&amp;L.draw(R)}r.enable(r.BLEND),r.blendEquation(r.FUNC_ADD),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.colorMask(!0,!0,!0,!0),r.depthMask(!1),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),M.isTransparent()&amp;&amp;M.drawTransparent(R);for(o=0;o&lt;e;++o){var L;(L=E[o]).isTransparent&amp;&amp;L.isTransparent()&amp;&amp;L.drawTransparent(R)}r.bindFramebuffer(r.FRAMEBUFFER,null),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.disable(r.DEPTH_TEST),_.bind(),b.color[0].bind(0),_.uniforms.accumBuffer=0,c(r),r.disable(r.BLEND)}P=!1;for(o=0;o&lt;e;++o)E[o].dirty=!1}}}return N.enableMouseListeners(),function t(){if(N._stopped||N.contextLost)return;Y(),requestAnimationFrame(t)}(),N.redraw=function(){N._stopped||(P=!0,Y())},N},createCamera:n}},{&quot;./camera.js&quot;:318,&quot;./lib/shader&quot;:319,&quot;a-big-triangle&quot;:64,&quot;gl-axes3d&quot;:250,&quot;gl-axes3d/properties&quot;:258,&quot;gl-fbo&quot;:269,&quot;gl-mat4/ortho&quot;:296,&quot;gl-mat4/perspective&quot;:297,&quot;gl-select-static&quot;:334,&quot;gl-spikes3d&quot;:345,&quot;is-mobile&quot;:467,&quot;mouse-change&quot;:483}],322:[function(t,e,r){var n=t(&quot;glslify&quot;);r.pointVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform float pointCloud;\n\nhighp float rand(vec2 co) {\n  highp float a = 12.9898;\n  highp float b = 78.233;\n  highp float c = 43758.5453;\n  highp float d = dot(co.xy, vec2(a, b));\n  highp float e = mod(d, 3.14);\n  return fract(sin(e) * c);\n}\n\nvoid main() {\n  vec3 hgPosition = matrix * vec3(position, 1);\n  gl_Position  = vec4(hgPosition.xy, 0, hgPosition.z);\n    // if we don't jitter the point size a bit, overall point cloud\n    // saturation 'jumps' on zooming, which is disturbing and confusing\n  gl_PointSize = pointSize * ((19.5 + rand(position)) / 20.0);\n  if(pointCloud != 0.0) { // pointCloud is truthy\n    // get the same square surface as circle would be\n    gl_PointSize *= 0.886;\n  }\n}&quot;]),r.pointFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color, borderColor;\nuniform float centerFraction;\nuniform float pointCloud;\n\nvoid main() {\n  float radius;\n  vec4 baseColor;\n  if(pointCloud != 0.0) { // pointCloud is truthy\n    if(centerFraction == 1.0) {\n      gl_FragColor = color;\n    } else {\n      gl_FragColor = mix(borderColor, color, centerFraction);\n    }\n  } else {\n    radius = length(2.0 * gl_PointCoord.xy - 1.0);\n    if(radius &gt; 1.0) {\n      discard;\n    }\n    baseColor = mix(borderColor, color, step(radius, centerFraction));\n    gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\n  }\n}\n&quot;]),r.pickVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform vec4 pickOffset;\n\nvarying vec4 fragId;\n\nvoid main() {\n  vec3 hgPosition = matrix * vec3(position, 1);\n  gl_Position  = vec4(hgPosition.xy, 0, hgPosition.z);\n  gl_PointSize = pointSize;\n\n  vec4 id = pickId + pickOffset;\n  id.y += floor(id.x / 256.0);\n  id.x -= floor(id.x / 256.0) * 256.0;\n\n  id.z += floor(id.y / 256.0);\n  id.y -= floor(id.y / 256.0) * 256.0;\n\n  id.w += floor(id.z / 256.0);\n  id.z -= floor(id.z / 256.0) * 256.0;\n\n  fragId = id;\n}\n&quot;]),r.pickFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\n\nvoid main() {\n  float radius = length(2.0 * gl_PointCoord.xy - 1.0);\n  if(radius &gt; 1.0) {\n    discard;\n  }\n  gl_FragColor = fragId / 255.0;\n}\n&quot;])},{glslify:323}],323:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],324:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;typedarray-pool&quot;),o=t(&quot;./lib/shader&quot;);function s(t,e,r,n,i){this.plot=t,this.offsetBuffer=e,this.pickBuffer=r,this.shader=n,this.pickShader=i,this.sizeMin=.5,this.sizeMinCap=2,this.sizeMax=20,this.areaRatio=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.blend=!1,this.pickOffset=0,this.points=null}e.exports=function(t,e){var r=t.gl,a=i(r),l=i(r),c=n(r,o.pointVertex,o.pointFragment),u=n(r,o.pickVertex,o.pickFragment),f=new s(t,a,l,c,u);return f.update(e),t.addObject(f),f};var l,c,u=s.prototype;u.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.plot.removeObject(this)},u.update=function(t){var e;function r(e,r){return e in t?t[e]:r}t=t||{},this.sizeMin=r(&quot;sizeMin&quot;,.5),this.sizeMax=r(&quot;sizeMax&quot;,20),this.color=r(&quot;color&quot;,[1,0,0,1]).slice(),this.areaRatio=r(&quot;areaRatio&quot;,1),this.borderColor=r(&quot;borderColor&quot;,[0,0,0,1]).slice(),this.blend=r(&quot;blend&quot;,!1);var n=t.positions.length&gt;&gt;&gt;1,i=t.positions instanceof Float32Array,o=t.idToIndex instanceof Int32Array&amp;&amp;t.idToIndex.length&gt;=n,s=t.positions,l=i?s:a.mallocFloat32(s.length),c=o?t.idToIndex:a.mallocInt32(n);if(i||l.set(s),!o)for(l.set(s),e=0;e&lt;n;e++)c[e]=e;this.points=s,this.offsetBuffer.update(l),this.pickBuffer.update(c),i||a.free(l),o||a.free(c),this.pointCount=n,this.pickOffset=0},u.unifiedDraw=(l=[1,0,0,0,1,0,0,0,1],c=[0,0,0,0],function(t){var e=void 0!==t,r=e?this.pickShader:this.shader,n=this.plot.gl,i=this.plot.dataBox;if(0===this.pointCount)return t;var a=i[2]-i[0],o=i[3]-i[1],s=function(t,e){var r,n=0,i=t.length&gt;&gt;&gt;1;for(r=0;r&lt;i;r++){var a=t[2*r],o=t[2*r+1];a&gt;=e[0]&amp;&amp;a&lt;=e[2]&amp;&amp;o&gt;=e[1]&amp;&amp;o&lt;=e[3]&amp;&amp;n++}return n}(this.points,i),u=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(s,.33333)));l[0]=2/a,l[4]=2/o,l[6]=-2*i[0]/a-1,l[7]=-2*i[1]/o-1,this.offsetBuffer.bind(),r.bind(),r.attributes.position.pointer(),r.uniforms.matrix=l,r.uniforms.color=this.color,r.uniforms.borderColor=this.borderColor,r.uniforms.pointCloud=u&lt;5,r.uniforms.pointSize=u,r.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),e&amp;&amp;(c[0]=255&amp;t,c[1]=t&gt;&gt;8&amp;255,c[2]=t&gt;&gt;16&amp;255,c[3]=t&gt;&gt;24&amp;255,this.pickBuffer.bind(),r.attributes.pickId.pointer(n.UNSIGNED_BYTE),r.uniforms.pickOffset=c,this.pickOffset=t);var f=n.getParameter(n.BLEND),h=n.getParameter(n.DITHER);return f&amp;&amp;!this.blend&amp;&amp;n.disable(n.BLEND),h&amp;&amp;n.disable(n.DITHER),n.drawArrays(n.POINTS,0,this.pointCount),f&amp;&amp;!this.blend&amp;&amp;n.enable(n.BLEND),h&amp;&amp;n.enable(n.DITHER),t+this.pointCount}),u.draw=u.unifiedDraw,u.drawPick=u.unifiedDraw,u.pick=function(t,e,r){var n=this.pickOffset,i=this.pointCount;if(r&lt;n||r&gt;=n+i)return null;var a=r-n,o=this.points;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}}},{&quot;./lib/shader&quot;:322,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335,&quot;typedarray-pool&quot;:595}],325:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c=e[0],u=e[1],f=e[2],h=e[3],p=r[0],d=r[1],g=r[2],m=r[3];(a=c*p+u*d+f*g+h*m)&lt;0&amp;&amp;(a=-a,p=-p,d=-d,g=-g,m=-m);1-a&gt;1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n);return t[0]=s*c+l*p,t[1]=s*u+l*d,t[2]=s*f+l*g,t[3]=s*h+l*m,t}},{}],326:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t||0===t?t.toString():&quot;&quot;}},{}],327:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;vectorize-text&quot;);e.exports=function(t,e,r){var a=i[e];a||(a=i[e]={});if(t in a)return a[t];var o={textAlign:&quot;center&quot;,textBaseline:&quot;middle&quot;,lineHeight:1,font:e,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},triangles:!0},s=n(t,o);o.triangles=!1;var l,c,u=n(t,o);if(r&amp;&amp;1!==r){for(l=0;l&lt;s.positions.length;++l)for(c=0;c&lt;s.positions[l].length;++c)s.positions[l][c]/=r;for(l=0;l&lt;u.positions.length;++l)for(c=0;c&lt;u.positions[l].length;++c)u.positions[l][c]/=r}var f=[[1/0,1/0],[-1/0,-1/0]],h=u.positions.length;for(l=0;l&lt;h;++l){var p=u.positions[l];for(c=0;c&lt;2;++c)f[0][c]=Math.min(f[0][c],p[c]),f[1][c]=Math.max(f[1][c],p[c])}return a[t]=[s,u,f]};var i={}},{&quot;vectorize-text&quot;:600}],328:[function(t,e,r){var n=t(&quot;gl-shader&quot;),i=t(&quot;glslify&quot;),a=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform vec4 highlightId;\nuniform float highlightScale;\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float scale = 1.0;\n    if(distance(highlightId, id) &lt; 0.0001) {\n      scale = highlightScale;\n    }\n\n    vec4 worldPosition = model * vec4(position, 1);\n    vec4 viewPosition = view * worldPosition;\n    viewPosition = viewPosition / viewPosition.w;\n    vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\n\n    gl_Position = clipPosition;\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = position;\n  }\n}&quot;]),o=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float highlightScale, pixelRatio;\nuniform vec4 highlightId;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float scale = pixelRatio;\n    if(distance(highlightId.bgr, id.bgr) &lt; 0.001) {\n      scale *= highlightScale;\n    }\n\n    vec4 worldPosition = model * vec4(position, 1.0);\n    vec4 viewPosition = view * worldPosition;\n    vec4 clipPosition = projection * viewPosition;\n    clipPosition /= clipPosition.w;\n\n    gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = position;\n  }\n}&quot;]),s=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform float highlightScale;\nuniform vec4 highlightId;\nuniform vec3 axes[2];\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float scale, pixelRatio;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float lscale = pixelRatio * scale;\n    if(distance(highlightId, id) &lt; 0.0001) {\n      lscale *= highlightScale;\n    }\n\n    vec4 clipCenter   = projection * view * model * vec4(position, 1);\n    vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\n    vec4 clipPosition = projection * view * model * vec4(dataPosition, 1);\n\n    gl_Position = clipPosition;\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = dataPosition;\n  }\n}\n&quot;]),l=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float opacity;\n\nvarying vec4 interpColor;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (\n    outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) ||\n    interpColor.a * opacity == 0.\n  ) discard;\n  gl_FragColor = interpColor * opacity;\n}\n&quot;]),c=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float pickGroup;\n\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\n\n  gl_FragColor = vec4(pickGroup, pickId.bgr);\n}&quot;]),u=[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;glyph&quot;,type:&quot;vec2&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}],f={vertex:a,fragment:l,attributes:u},h={vertex:o,fragment:l,attributes:u},p={vertex:s,fragment:l,attributes:u},d={vertex:a,fragment:c,attributes:u},g={vertex:o,fragment:c,attributes:u},m={vertex:s,fragment:c,attributes:u};function v(t,e){var r=n(t,e),i=r.attributes;return i.position.location=0,i.color.location=1,i.glyph.location=2,i.id.location=3,r}r.createPerspective=function(t){return v(t,f)},r.createOrtho=function(t){return v(t,h)},r.createProject=function(t){return v(t,p)},r.createPickPerspective=function(t){return v(t,d)},r.createPickOrtho=function(t){return v(t,g)},r.createPickProject=function(t){return v(t,m)}},{&quot;gl-shader&quot;:335,glslify:329}],329:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],330:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-string-blank&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;typedarray-pool&quot;),s=t(&quot;gl-mat4/multiply&quot;),l=t(&quot;./lib/shaders&quot;),c=t(&quot;./lib/glyphs&quot;),u=t(&quot;./lib/get-simple-string&quot;),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];return t[0]=e[0]*r+e[4]*n+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*n+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*n+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*n+e[11]*i+e[15]*a,t}function p(t,e,r,n){return h(n,n),h(n,n),h(n,n)}function d(t,e){this.index=t,this.dataCoordinate=this.position=e}function g(t){return!0===t||t&gt;1?1:t}function m(t,e,r,n,i,a,o,s,l,c,u,f){this.gl=t,this.pixelRatio=1,this.shader=e,this.orthoShader=r,this.projectShader=n,this.pointBuffer=i,this.colorBuffer=a,this.glyphBuffer=o,this.idBuffer=s,this.vao=l,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[2/3,2/3,2/3],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=c,this.pickOrthoShader=u,this.pickProjectShader=f,this.points=[],this._selectResult=new d(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}e.exports=function(t){var e=t.gl,r=l.createPerspective(e),n=l.createOrtho(e),o=l.createProject(e),s=l.createPickPerspective(e),c=l.createPickOrtho(e),u=l.createPickProject(e),f=i(e),h=i(e),p=i(e),d=i(e),g=a(e,[{buffer:f,size:3,type:e.FLOAT},{buffer:h,size:4,type:e.FLOAT},{buffer:p,size:2,type:e.FLOAT},{buffer:d,size:4,type:e.UNSIGNED_BYTE,normalized:!0}]),v=new m(e,r,n,o,f,h,p,d,g,s,c,u);return v.update(t),v};var v=m.prototype;v.pickSlots=1,v.setPickBase=function(t){this.pickId=t},v.isTransparent=function(){if(this.hasAlpha)return!0;for(var t=0;t&lt;3;++t)if(this.axesProject[t]&amp;&amp;this.projectHasAlpha)return!0;return!1},v.isOpaque=function(){if(!this.hasAlpha)return!0;for(var t=0;t&lt;3;++t)if(this.axesProject[t]&amp;&amp;!this.projectHasAlpha)return!0;return!1};var y=[0,0],x=[0,0,0],b=[0,0,0],_=[0,0,0,1],w=[0,0,0,1],T=f.slice(),k=[0,0,0],M=[[0,0,0],[0,0,0]];function A(t){return t[0]=t[1]=t[2]=0,t}function S(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=1,t}function E(t,e,r,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[r]=n,t}function C(t,e,r,n){var i,a=e.axesProject,o=e.gl,l=t.uniforms,c=r.model||f,u=r.view||f,h=r.projection||f,d=e.axesBounds,g=function(t){for(var e=M,r=0;r&lt;2;++r)for(var n=0;n&lt;3;++n)e[r][n]=Math.max(Math.min(t[r][n],1e8),-1e8);return e}(e.clipBounds);i=e.axes&amp;&amp;e.axes.lastCubeProps?e.axes.lastCubeProps.axis:[1,1,1],y[0]=2/o.drawingBufferWidth,y[1]=2/o.drawingBufferHeight,t.bind(),l.view=u,l.projection=h,l.screenSize=y,l.highlightId=e.highlightId,l.highlightScale=e.highlightScale,l.clipBounds=g,l.pickGroup=e.pickId/255,l.pixelRatio=n;for(var m=0;m&lt;3;++m)if(a[m]){l.scale=e.projectScale[m],l.opacity=e.projectOpacity[m];for(var v=T,C=0;C&lt;16;++C)v[C]=0;for(C=0;C&lt;4;++C)v[5*C]=1;v[5*m]=0,i[m]&lt;0?v[12+m]=d[0][m]:v[12+m]=d[1][m],s(v,c,v),l.model=v;var L=(m+1)%3,I=(m+2)%3,P=A(x),z=A(b);P[L]=1,z[I]=1;var O=p(0,0,0,S(_,P)),D=p(0,0,0,S(w,z));if(Math.abs(O[1])&gt;Math.abs(D[1])){var R=O;O=D,D=R,R=P,P=z,z=R;var F=L;L=I,I=F}O[0]&lt;0&amp;&amp;(P[L]=-1),D[1]&gt;0&amp;&amp;(z[I]=-1);var B=0,N=0;for(C=0;C&lt;4;++C)B+=Math.pow(c[4*L+C],2),N+=Math.pow(c[4*I+C],2);P[L]/=Math.sqrt(B),z[I]/=Math.sqrt(N),l.axes[0]=P,l.axes[1]=z,l.fragClipBounds[0]=E(k,g[0],m,-1e8),l.fragClipBounds[1]=E(k,g[1],m,1e8),e.vao.bind(),e.vao.draw(o.TRIANGLES,e.vertexCount),e.lineWidth&gt;0&amp;&amp;(o.lineWidth(e.lineWidth*n),e.vao.draw(o.LINES,e.lineVertexCount,e.vertexCount)),e.vao.unbind()}}var L=[[-1e8,-1e8,-1e8],[1e8,1e8,1e8]];function I(t,e,r,n,i,a,o){var s=r.gl;if((a===r.projectHasAlpha||o)&amp;&amp;C(e,r,n,i),a===r.hasAlpha||o){t.bind();var l=t.uniforms;l.model=n.model||f,l.view=n.view||f,l.projection=n.projection||f,y[0]=2/s.drawingBufferWidth,y[1]=2/s.drawingBufferHeight,l.screenSize=y,l.highlightId=r.highlightId,l.highlightScale=r.highlightScale,l.fragClipBounds=L,l.clipBounds=r.axes.bounds,l.opacity=r.opacity,l.pickGroup=r.pickId/255,l.pixelRatio=i,r.vao.bind(),r.vao.draw(s.TRIANGLES,r.vertexCount),r.lineWidth&gt;0&amp;&amp;(s.lineWidth(r.lineWidth*i),r.vao.draw(s.LINES,r.lineVertexCount,r.vertexCount)),r.vao.unbind()}}function P(t,e,r,i){var a;a=Array.isArray(t)?e&lt;t.length?t[e]:void 0:t,a=u(a);var o=!0;n(a)&amp;&amp;(a=&quot;\u25bc&quot;,o=!1);var s=c(a,r,i);return{mesh:s[0],lines:s[1],bounds:s[2],visible:o}}v.draw=function(t){I(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,this.pixelRatio,!1,!1)},v.drawTransparent=function(t){I(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,this.pixelRatio,!0,!1)},v.drawPick=function(t){I(this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader,this.pickProjectShader,this,t,1,!0,!0)},v.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[2]+(t.value[1]&lt;&lt;8)+(t.value[0]&lt;&lt;16);if(e&gt;=this.pointCount||e&lt;0)return null;var r=this.points[e],n=this._selectResult;n.index=e;for(var i=0;i&lt;3;++i)n.position[i]=n.dataCoordinate[i]=r[i];return n},v.highlight=function(t){if(t){var e=t.index,r=255&amp;e,n=e&gt;&gt;8&amp;255,i=e&gt;&gt;16&amp;255;this.highlightId=[r/255,n/255,i/255,0]}else this.highlightId=[1,1,1,1]},v.update=function(t){if(&quot;perspective&quot;in(t=t||{})&amp;&amp;(this.useOrtho=!t.perspective),&quot;orthographic&quot;in t&amp;&amp;(this.useOrtho=!!t.orthographic),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;project&quot;in t)if(Array.isArray(t.project))this.axesProject=t.project;else{var e=!!t.project;this.axesProject=[e,e,e]}if(&quot;projectScale&quot;in t)if(Array.isArray(t.projectScale))this.projectScale=t.projectScale.slice();else{var r=+t.projectScale;this.projectScale=[r,r,r]}if(this.projectHasAlpha=!1,&quot;projectOpacity&quot;in t){if(Array.isArray(t.projectOpacity))this.projectOpacity=t.projectOpacity.slice();else{r=+t.projectOpacity;this.projectOpacity=[r,r,r]}for(var n=0;n&lt;3;++n)this.projectOpacity[n]=g(this.projectOpacity[n]),this.projectOpacity[n]&lt;1&amp;&amp;(this.projectHasAlpha=!0)}this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=g(t.opacity),this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0)),this.dirty=!0;var i,a,s=t.position,l=t.font||&quot;normal&quot;,c=t.alignment||[0,0];if(2===c.length)i=c[0],a=c[1];else{i=[],a=[];for(n=0;n&lt;c.length;++n)i[n]=c[n][0],a[n]=c[n][1]}var u=[1/0,1/0,1/0],f=[-1/0,-1/0,-1/0],h=t.glyph,p=t.color,d=t.size,m=t.angle,v=t.lineColor,y=-1,x=0,b=0,_=0;if(s.length){_=s.length;t:for(n=0;n&lt;_;++n){for(var w=s[n],T=0;T&lt;3;++T)if(isNaN(w[T])||!isFinite(w[T]))continue t;var k=(N=P(h,n,l,this.pixelRatio)).mesh,M=N.lines,A=N.bounds;x+=3*k.cells.length,b+=2*M.edges.length}}var S=x+b,E=o.mallocFloat(3*S),C=o.mallocFloat(4*S),L=o.mallocFloat(2*S),I=o.mallocUint32(S);if(S&gt;0){var z=0,O=x,D=[0,0,0,1],R=[0,0,0,1],F=Array.isArray(p)&amp;&amp;Array.isArray(p[0]),B=Array.isArray(v)&amp;&amp;Array.isArray(v[0]);t:for(n=0;n&lt;_;++n){y+=1;for(w=s[n],T=0;T&lt;3;++T){if(isNaN(w[T])||!isFinite(w[T]))continue t;f[T]=Math.max(f[T],w[T]),u[T]=Math.min(u[T],w[T])}k=(N=P(h,n,l,this.pixelRatio)).mesh,M=N.lines,A=N.bounds;var N,j=N.visible;if(j)if(Array.isArray(p)){if(3===(U=F?n&lt;p.length?p[n]:[0,0,0,0]:p).length){for(T=0;T&lt;3;++T)D[T]=U[T];D[3]=1}else if(4===U.length){for(T=0;T&lt;4;++T)D[T]=U[T];!this.hasAlpha&amp;&amp;U[3]&lt;1&amp;&amp;(this.hasAlpha=!0)}}else D[0]=D[1]=D[2]=0,D[3]=1;else D=[1,1,1,0];if(j)if(Array.isArray(v)){var U;if(3===(U=B?n&lt;v.length?v[n]:[0,0,0,0]:v).length){for(T=0;T&lt;3;++T)R[T]=U[T];R[T]=1}else if(4===U.length){for(T=0;T&lt;4;++T)R[T]=U[T];!this.hasAlpha&amp;&amp;U[3]&lt;1&amp;&amp;(this.hasAlpha=!0)}}else R[0]=R[1]=R[2]=0,R[3]=1;else R=[1,1,1,0];var V=.5;j?Array.isArray(d)?V=n&lt;d.length?+d[n]:12:d?V=+d:this.useOrtho&amp;&amp;(V=12):V=0;var q=0;Array.isArray(m)?q=n&lt;m.length?+m[n]:0:m&amp;&amp;(q=+m);var H=Math.cos(q),G=Math.sin(q);for(w=s[n],T=0;T&lt;3;++T)f[T]=Math.max(f[T],w[T]),u[T]=Math.min(u[T],w[T]);var Y=i,W=a;Y=0;Array.isArray(i)?Y=n&lt;i.length?i[n]:0:i&amp;&amp;(Y=i);W=0;Array.isArray(a)?W=n&lt;a.length?a[n]:0:a&amp;&amp;(W=a);var X=[Y*=Y&gt;0?1-A[0][0]:Y&lt;0?1+A[1][0]:1,W*=W&gt;0?1-A[0][1]:W&lt;0?1+A[1][1]:1],Z=k.cells||[],J=k.positions||[];for(T=0;T&lt;Z.length;++T)for(var K=Z[T],Q=0;Q&lt;3;++Q){for(var $=0;$&lt;3;++$)E[3*z+$]=w[$];for($=0;$&lt;4;++$)C[4*z+$]=D[$];I[z]=y;var tt=J[K[Q]];L[2*z]=V*(H*tt[0]-G*tt[1]+X[0]),L[2*z+1]=V*(G*tt[0]+H*tt[1]+X[1]),z+=1}for(Z=M.edges,J=M.positions,T=0;T&lt;Z.length;++T)for(K=Z[T],Q=0;Q&lt;2;++Q){for($=0;$&lt;3;++$)E[3*O+$]=w[$];for($=0;$&lt;4;++$)C[4*O+$]=R[$];I[O]=y;tt=J[K[Q]];L[2*O]=V*(H*tt[0]-G*tt[1]+X[0]),L[2*O+1]=V*(G*tt[0]+H*tt[1]+X[1]),O+=1}}}this.bounds=[u,f],this.points=s,this.pointCount=s.length,this.vertexCount=x,this.lineVertexCount=b,this.pointBuffer.update(E),this.colorBuffer.update(C),this.glyphBuffer.update(L),this.idBuffer.update(I),o.free(E),o.free(C),o.free(L),o.free(I)},v.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()}},{&quot;./lib/get-simple-string&quot;:326,&quot;./lib/glyphs&quot;:327,&quot;./lib/shaders&quot;:328,&quot;gl-buffer&quot;:259,&quot;gl-mat4/multiply&quot;:295,&quot;gl-vao&quot;:358,&quot;is-string-blank&quot;:470,&quot;typedarray-pool&quot;:595}],331:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;);r.boxVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 vertex;\n\nuniform vec2 cornerA, cornerB;\n\nvoid main() {\n  gl_Position = vec4(mix(cornerA, cornerB, vertex), 0, 1);\n}\n&quot;]),r.boxFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color;\n\nvoid main() {\n  gl_FragColor = color;\n}\n&quot;])},{glslify:332}],332:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],333:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;./lib/shaders&quot;);function o(t,e,r){this.plot=t,this.boxBuffer=e,this.boxShader=r,this.enabled=!0,this.selectBox=[1/0,1/0,-1/0,-1/0],this.borderColor=[0,0,0,1],this.innerFill=!1,this.innerColor=[0,0,0,.25],this.outerFill=!0,this.outerColor=[0,0,0,.5],this.borderWidth=10}e.exports=function(t,e){var r=t.gl,s=i(r,[0,0,0,1,1,0,1,1]),l=n(r,a.boxVertex,a.boxFragment),c=new o(t,s,l);return c.update(e),t.addOverlay(c),c};var s=o.prototype;s.draw=function(){if(this.enabled){var t=this.plot,e=this.selectBox,r=this.borderWidth,n=(this.innerFill,this.innerColor),i=(this.outerFill,this.outerColor),a=this.borderColor,o=t.box,s=t.screenBox,l=t.dataBox,c=t.viewBox,u=t.pixelRatio,f=(e[0]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],h=(e[1]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1],p=(e[2]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],d=(e[3]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1];if(f=Math.max(f,c[0]),h=Math.max(h,c[1]),p=Math.min(p,c[2]),d=Math.min(d,c[3]),!(p&lt;f||d&lt;h)){o.bind();var g=s[2]-s[0],m=s[3]-s[1];if(this.outerFill&amp;&amp;(o.drawBox(0,0,g,h,i),o.drawBox(0,h,f,d,i),o.drawBox(0,d,g,m,i),o.drawBox(p,h,g,d,i)),this.innerFill&amp;&amp;o.drawBox(f,h,p,d,n),r&gt;0){var v=r*u;o.drawBox(f-v,h-v,p+v,h+v,a),o.drawBox(f-v,d-v,p+v,d+v,a),o.drawBox(f-v,h-v,f+v,d+v,a),o.drawBox(p-v,h-v,p+v,d+v,a)}}}},s.update=function(t){t=t||{},this.innerFill=!!t.innerFill,this.outerFill=!!t.outerFill,this.innerColor=(t.innerColor||[0,0,0,.5]).slice(),this.outerColor=(t.outerColor||[0,0,0,.5]).slice(),this.borderColor=(t.borderColor||[0,0,0,1]).slice(),this.borderWidth=t.borderWidth||0,this.selectBox=(t.selectBox||this.selectBox).slice()},s.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)}},{&quot;./lib/shaders&quot;:331,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],334:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=e[0],a=e[1],o=n(t,r,a,{}),s=i.mallocUint8(r*a*4);return new l(t,o,s)};var n=t(&quot;gl-fbo&quot;),i=t(&quot;typedarray-pool&quot;),a=t(&quot;ndarray&quot;),o=t(&quot;bit-twiddle&quot;).nextPow2;function s(t,e,r,n,i){this.coord=[t,e],this.id=r,this.value=n,this.distance=i}function l(t,e,r){this.gl=t,this.fbo=e,this.buffer=r,this._readTimeout=null;var n=this;this._readCallback=function(){n.gl&amp;&amp;(e.bind(),t.readPixels(0,0,e.shape[0],e.shape[1],t.RGBA,t.UNSIGNED_BYTE,n.buffer),n._readTimeout=null)}}var c=l.prototype;Object.defineProperty(c,&quot;shape&quot;,{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(t){if(this.gl){this.fbo.shape=t;var e=this.fbo.shape[0],r=this.fbo.shape[1];if(r*e*4&gt;this.buffer.length){i.free(this.buffer);for(var n=this.buffer=i.mallocUint8(o(r*e*4)),a=0;a&lt;r*e*4;++a)n[a]=255}return t}}}),c.begin=function(){var t=this.gl;this.shape;t&amp;&amp;(this.fbo.bind(),t.clearColor(1,1,1,1),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT))},c.end=function(){var t=this.gl;t&amp;&amp;(t.bindFramebuffer(t.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},c.query=function(t,e,r){if(!this.gl)return null;var n=this.fbo.shape.slice();t|=0,e|=0,&quot;number&quot;!=typeof r&amp;&amp;(r=1);var i=0|Math.min(Math.max(t-r,0),n[0]),o=0|Math.min(Math.max(t+r,0),n[0]),l=0|Math.min(Math.max(e-r,0),n[1]),c=0|Math.min(Math.max(e+r,0),n[1]);if(o&lt;=i||c&lt;=l)return null;var u=[o-i,c-l],f=a(this.buffer,[u[0],u[1],4],[4,4*n[0],1],4*(i+n[0]*l)),h=function(t,e,r){for(var n=1e8,i=-1,a=-1,o=t.shape[0],s=t.shape[1],l=0;l&lt;o;l++)for(var c=0;c&lt;s;c++){var u=t.get(l,c,0),f=t.get(l,c,1),h=t.get(l,c,2),p=t.get(l,c,3);if(u&lt;255||f&lt;255||h&lt;255||p&lt;255){var d=e-l,g=r-c,m=d*d+g*g;m&lt;n&amp;&amp;(n=m,i=l,a=c)}}return[i,a,n]}(f.hi(u[0],u[1],1),r,r),p=h[0],d=h[1];return p&lt;0||Math.pow(this.radius,2)&lt;h[2]?null:new s(p+i|0,d+l|0,f.get(p,d,0),[f.get(p,d,1),f.get(p,d,2),f.get(p,d,3)],Math.sqrt(h[2]))},c.dispose=function(){this.gl&amp;&amp;(this.fbo.dispose(),i.free(this.buffer),this.gl=null,this._readTimeout&amp;&amp;clearTimeout(this._readTimeout))}},{&quot;bit-twiddle&quot;:97,&quot;gl-fbo&quot;:269,ndarray:495,&quot;typedarray-pool&quot;:595}],335:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/create-uniforms&quot;),i=t(&quot;./lib/create-attributes&quot;),a=t(&quot;./lib/reflect&quot;),o=t(&quot;./lib/shader-cache&quot;),s=t(&quot;./lib/runtime-reflect&quot;),l=t(&quot;./lib/GLError&quot;);function c(t){this.gl=t,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}var u=c.prototype;function f(t,e){return t.name&lt;e.name?-1:1}u.bind=function(){var t;this.program||this._relink();var e=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),r=this.gl.lastAttribCount;if(e&gt;r)for(t=r;t&lt;e;t++)this.gl.enableVertexAttribArray(t);else if(r&gt;e)for(t=e;t&lt;r;t++)this.gl.disableVertexAttribArray(t);this.gl.lastAttribCount=e,this.gl.useProgram(this.program)},u.dispose=function(){for(var t=this.gl.lastAttribCount,e=0;e&lt;t;e++)this.gl.disableVertexAttribArray(e);this.gl.lastAttribCount=0,this._fref&amp;&amp;this._fref.dispose(),this._vref&amp;&amp;this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null},u.update=function(t,e,r,c){if(!e||1===arguments.length){var u=t;t=u.vertex,e=u.fragment,r=u.uniforms,c=u.attributes}var h=this,p=h.gl,d=h._vref;h._vref=o.shader(p,p.VERTEX_SHADER,t),d&amp;&amp;d.dispose(),h.vertShader=h._vref.shader;var g=this._fref;if(h._fref=o.shader(p,p.FRAGMENT_SHADER,e),g&amp;&amp;g.dispose(),h.fragShader=h._fref.shader,!r||!c){var m=p.createProgram();if(p.attachShader(m,h.fragShader),p.attachShader(m,h.vertShader),p.linkProgram(m),!p.getProgramParameter(m,p.LINK_STATUS)){var v=p.getProgramInfoLog(m);throw new l(v,&quot;Error linking program:&quot;+v)}r=r||s.uniforms(p,m),c=c||s.attributes(p,m),p.deleteProgram(m)}(c=c.slice()).sort(f);var y,x=[],b=[],_=[];for(y=0;y&lt;c.length;++y){var w=c[y];if(w.type.indexOf(&quot;mat&quot;)&gt;=0){for(var T=0|w.type.charAt(w.type.length-1),k=new Array(T),M=0;M&lt;T;++M)k[M]=_.length,b.push(w.name+&quot;[&quot;+M+&quot;]&quot;),&quot;number&quot;==typeof w.location?_.push(w.location+M):Array.isArray(w.location)&amp;&amp;w.location.length===T&amp;&amp;&quot;number&quot;==typeof w.location[M]?_.push(0|w.location[M]):_.push(-1);x.push({name:w.name,type:w.type,locations:k})}else x.push({name:w.name,type:w.type,locations:[_.length]}),b.push(w.name),&quot;number&quot;==typeof w.location?_.push(0|w.location):_.push(-1)}var A=0;for(y=0;y&lt;_.length;++y)if(_[y]&lt;0){for(;_.indexOf(A)&gt;=0;)A+=1;_[y]=A}var S=new Array(r.length);function E(){h.program=o.program(p,h._vref,h._fref,b,_);for(var t=0;t&lt;r.length;++t)S[t]=p.getUniformLocation(h.program,r[t].name)}E(),h._relink=E,h.types={uniforms:a(r),attributes:a(c)},h.attributes=i(p,h,x,_),Object.defineProperty(h,&quot;uniforms&quot;,n(p,h,r,S))},e.exports=function(t,e,r,n,i){var a=new c(t);return a.update(e,r,n,i),a}},{&quot;./lib/GLError&quot;:336,&quot;./lib/create-attributes&quot;:337,&quot;./lib/create-uniforms&quot;:338,&quot;./lib/reflect&quot;:339,&quot;./lib/runtime-reflect&quot;:340,&quot;./lib/shader-cache&quot;:341}],336:[function(t,e,r){function n(t,e,r){this.shortMessage=e||&quot;&quot;,this.longMessage=r||&quot;&quot;,this.rawError=t||&quot;&quot;,this.message=&quot;gl-shader: &quot;+(e||t||&quot;&quot;)+(r?&quot;\n&quot;+r:&quot;&quot;),this.stack=(new Error).stack}n.prototype=new Error,n.prototype.name=&quot;GLError&quot;,n.prototype.constructor=n,e.exports=n},{}],337:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,i){for(var a={},l=0,c=r.length;l&lt;c;++l){var u=r[l],f=u.name,h=u.type,p=u.locations;switch(h){case&quot;bool&quot;:case&quot;int&quot;:case&quot;float&quot;:o(t,e,p[0],i,1,a,f);break;default:if(h.indexOf(&quot;vec&quot;)&gt;=0){if((d=h.charCodeAt(h.length-1)-48)&lt;2||d&gt;4)throw new n(&quot;&quot;,&quot;Invalid data type for attribute &quot;+f+&quot;: &quot;+h);o(t,e,p[0],i,d,a,f)}else{if(!(h.indexOf(&quot;mat&quot;)&gt;=0))throw new n(&quot;&quot;,&quot;Unknown data type for attribute &quot;+f+&quot;: &quot;+h);var d;if((d=h.charCodeAt(h.length-1)-48)&lt;2||d&gt;4)throw new n(&quot;&quot;,&quot;Invalid data type for attribute &quot;+f+&quot;: &quot;+h);s(t,e,p,i,d,a,f)}}}return a};var n=t(&quot;./GLError&quot;);function i(t,e,r,n,i,a){this._gl=t,this._wrapper=e,this._index=r,this._locations=n,this._dimension=i,this._constFunc=a}var a=i.prototype;function o(t,e,r,n,a,o,s){for(var l=[&quot;gl&quot;,&quot;v&quot;],c=[],u=0;u&lt;a;++u)l.push(&quot;x&quot;+u),c.push(&quot;x&quot;+u);l.push(&quot;if(x0.length===void 0){return gl.vertexAttrib&quot;+a+&quot;f(v,&quot;+c.join()+&quot;)}else{return gl.vertexAttrib&quot;+a+&quot;fv(v,x0)}&quot;);var f=Function.apply(null,l),h=new i(t,e,r,n,a,f);Object.defineProperty(o,s,{set:function(e){return t.disableVertexAttribArray(n[r]),f(t,n[r],e),e},get:function(){return h},enumerable:!0})}function s(t,e,r,n,i,a,s){for(var l=new Array(i),c=new Array(i),u=0;u&lt;i;++u)o(t,e,r[u],n,i,l,u),c[u]=l[u];Object.defineProperty(l,&quot;location&quot;,{set:function(t){if(Array.isArray(t))for(var e=0;e&lt;i;++e)c[e].location=t[e];else for(e=0;e&lt;i;++e)c[e].location=t+e;return t},get:function(){for(var t=new Array(i),e=0;e&lt;i;++e)t[e]=n[r[e]];return t},enumerable:!0}),l.pointer=function(e,a,o,s){e=e||t.FLOAT,a=!!a,o=o||i*i,s=s||0;for(var l=0;l&lt;i;++l){var c=n[r[l]];t.vertexAttribPointer(c,i,e,a,o,s+l*i),t.enableVertexAttribArray(c)}};var f=new Array(i),h=t[&quot;vertexAttrib&quot;+i+&quot;fv&quot;];Object.defineProperty(a,s,{set:function(e){for(var a=0;a&lt;i;++a){var o=n[r[a]];if(t.disableVertexAttribArray(o),Array.isArray(e[0]))h.call(t,o,e[a]);else{for(var s=0;s&lt;i;++s)f[s]=e[i*a+s];h.call(t,o,f)}}return e},get:function(){return l},enumerable:!0})}a.pointer=function(t,e,r,n){var i=this._gl,a=this._locations[this._index];i.vertexAttribPointer(a,this._dimension,t||i.FLOAT,!!e,r||0,n||0),i.enableVertexAttribArray(a)},a.set=function(t,e,r,n){return this._constFunc(this._locations[this._index],t,e,r,n)},Object.defineProperty(a,&quot;location&quot;,{get:function(){return this._locations[this._index]},set:function(t){return t!==this._locations[this._index]&amp;&amp;(this._locations[this._index]=0|t,this._wrapper.program=null),0|t}})},{&quot;./GLError&quot;:336}],338:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./reflect&quot;),i=t(&quot;./GLError&quot;);function a(t){return new Function(&quot;y&quot;,&quot;return function(){return y}&quot;)(t)}function o(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}e.exports=function(t,e,r,s){function l(t,e,r){switch(r){case&quot;bool&quot;:case&quot;int&quot;:case&quot;sampler2D&quot;:case&quot;samplerCube&quot;:return&quot;gl.uniform1i(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;case&quot;float&quot;:return&quot;gl.uniform1f(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;default:var n=r.indexOf(&quot;vec&quot;);if(!(0&lt;=n&amp;&amp;n&lt;=1&amp;&amp;r.length===4+n)){if(0===r.indexOf(&quot;mat&quot;)&amp;&amp;4===r.length){var a;if((a=r.charCodeAt(r.length-1)-48)&lt;2||a&gt;4)throw new i(&quot;&quot;,&quot;Invalid uniform dimension type for matrix &quot;+name+&quot;: &quot;+r);return&quot;gl.uniformMatrix&quot;+a+&quot;fv(locations[&quot;+e+&quot;],false,obj&quot;+t+&quot;)&quot;}throw new i(&quot;&quot;,&quot;Unknown uniform data type for &quot;+name+&quot;: &quot;+r)}if((a=r.charCodeAt(r.length-1)-48)&lt;2||a&gt;4)throw new i(&quot;&quot;,&quot;Invalid data type&quot;);switch(r.charAt(0)){case&quot;b&quot;:case&quot;i&quot;:return&quot;gl.uniform&quot;+a+&quot;iv(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;case&quot;v&quot;:return&quot;gl.uniform&quot;+a+&quot;fv(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;default:throw new i(&quot;&quot;,&quot;Unrecognized data type for vector &quot;+name+&quot;: &quot;+r)}}}function c(e){for(var n=[&quot;return function updateProperty(obj){&quot;],i=function t(e,r){if(&quot;object&quot;!=typeof r)return[[e,r]];var n=[];for(var i in r){var a=r[i],o=e;parseInt(i)+&quot;&quot;===i?o+=&quot;[&quot;+i+&quot;]&quot;:o+=&quot;.&quot;+i,&quot;object&quot;==typeof a?n.push.apply(n,t(o,a)):n.push([o,a])}return n}(&quot;&quot;,e),a=0;a&lt;i.length;++a){var o=i[a],c=o[0],u=o[1];s[u]&amp;&amp;n.push(l(c,u,r[u].type))}return n.push(&quot;return obj}&quot;),new Function(&quot;gl&quot;,&quot;locations&quot;,n.join(&quot;\n&quot;))(t,s)}function u(n,l,u){if(&quot;object&quot;==typeof u){var h=f(u);Object.defineProperty(n,l,{get:a(h),set:c(u),enumerable:!0,configurable:!1})}else s[u]?Object.defineProperty(n,l,{get:(p=u,new Function(&quot;gl&quot;,&quot;wrapper&quot;,&quot;locations&quot;,&quot;return function(){return gl.getUniform(wrapper.program,locations[&quot;+p+&quot;])}&quot;)(t,e,s)),set:c(u),enumerable:!0,configurable:!1}):n[l]=function(t){switch(t){case&quot;bool&quot;:return!1;case&quot;int&quot;:case&quot;sampler2D&quot;:case&quot;samplerCube&quot;:case&quot;float&quot;:return 0;default:var e=t.indexOf(&quot;vec&quot;);if(0&lt;=e&amp;&amp;e&lt;=1&amp;&amp;t.length===4+e){if((r=t.charCodeAt(t.length-1)-48)&lt;2||r&gt;4)throw new i(&quot;&quot;,&quot;Invalid data type&quot;);return&quot;b&quot;===t.charAt(0)?o(r,!1):o(r,0)}if(0===t.indexOf(&quot;mat&quot;)&amp;&amp;4===t.length){var r;if((r=t.charCodeAt(t.length-1)-48)&lt;2||r&gt;4)throw new i(&quot;&quot;,&quot;Invalid uniform dimension type for matrix &quot;+name+&quot;: &quot;+t);return o(r*r,0)}throw new i(&quot;&quot;,&quot;Unknown uniform data type for &quot;+name+&quot;: &quot;+t)}}(r[u].type);var p}function f(t){var e;if(Array.isArray(t)){e=new Array(t.length);for(var r=0;r&lt;t.length;++r)u(e,r,t[r])}else for(var n in e={},t)u(e,n,t[n]);return e}var h=n(r,!0);return{get:a(f(h)),set:c(h),enumerable:!0,configurable:!0}}},{&quot;./GLError&quot;:336,&quot;./reflect&quot;:339}],339:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r={},n=0;n&lt;t.length;++n)for(var i=t[n].name.split(&quot;.&quot;),a=r,o=0;o&lt;i.length;++o){var s=i[o].split(&quot;[&quot;);if(s.length&gt;1){s[0]in a||(a[s[0]]=[]),a=a[s[0]];for(var l=1;l&lt;s.length;++l){var c=parseInt(s[l]);l&lt;s.length-1||o&lt;i.length-1?(c in a||(l&lt;s.length-1?a[c]=[]:a[c]={}),a=a[c]):a[c]=e?n:t[n].type}}else o&lt;i.length-1?(s[0]in a||(a[s[0]]={}),a=a[s[0]]):a[s[0]]=e?n:t[n].type}return r}},{}],340:[function(t,e,r){&quot;use strict&quot;;r.uniforms=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),n=[],i=0;i&lt;r;++i){var o=t.getActiveUniform(e,i);if(o){var s=a(t,o.type);if(o.size&gt;1)for(var l=0;l&lt;o.size;++l)n.push({name:o.name.replace(&quot;[0]&quot;,&quot;[&quot;+l+&quot;]&quot;),type:s});else n.push({name:o.name,type:s})}}return n},r.attributes=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),n=[],i=0;i&lt;r;++i){var o=t.getActiveAttrib(e,i);o&amp;&amp;n.push({name:o.name,type:a(t,o.type)})}return n};var n={FLOAT:&quot;float&quot;,FLOAT_VEC2:&quot;vec2&quot;,FLOAT_VEC3:&quot;vec3&quot;,FLOAT_VEC4:&quot;vec4&quot;,INT:&quot;int&quot;,INT_VEC2:&quot;ivec2&quot;,INT_VEC3:&quot;ivec3&quot;,INT_VEC4:&quot;ivec4&quot;,BOOL:&quot;bool&quot;,BOOL_VEC2:&quot;bvec2&quot;,BOOL_VEC3:&quot;bvec3&quot;,BOOL_VEC4:&quot;bvec4&quot;,FLOAT_MAT2:&quot;mat2&quot;,FLOAT_MAT3:&quot;mat3&quot;,FLOAT_MAT4:&quot;mat4&quot;,SAMPLER_2D:&quot;sampler2D&quot;,SAMPLER_CUBE:&quot;samplerCube&quot;},i=null;function a(t,e){if(!i){var r=Object.keys(n);i={};for(var a=0;a&lt;r.length;++a){var o=r[a];i[t[o]]=n[o]}}return i[e]}},{}],341:[function(t,e,r){&quot;use strict&quot;;r.shader=function(t,e,r){return u(t).getShaderReference(e,r)},r.program=function(t,e,r,n,i){return u(t).getProgram(e,r,n,i)};var n=t(&quot;./GLError&quot;),i=t(&quot;gl-format-compiler-error&quot;),a=new(&quot;undefined&quot;==typeof WeakMap?t(&quot;weakmap-shim&quot;):WeakMap),o=0;function s(t,e,r,n,i,a,o){this.id=t,this.src=e,this.type=r,this.shader=n,this.count=a,this.programs=[],this.cache=o}function l(t){this.gl=t,this.shaders=[{},{}],this.programs={}}s.prototype.dispose=function(){if(0==--this.count){for(var t=this.cache,e=t.gl,r=this.programs,n=0,i=r.length;n&lt;i;++n){var a=t.programs[r[n]];a&amp;&amp;(delete t.programs[n],e.deleteProgram(a))}e.deleteShader(this.shader),delete t.shaders[this.type===e.FRAGMENT_SHADER|0][this.src]}};var c=l.prototype;function u(t){var e=a.get(t);return e||(e=new l(t),a.set(t,e)),e}c.getShaderReference=function(t,e){var r=this.gl,a=this.shaders[t===r.FRAGMENT_SHADER|0],l=a[e];if(l&amp;&amp;r.isShader(l.shader))l.count+=1;else{var c=function(t,e,r){var a=t.createShader(e);if(t.shaderSource(a,r),t.compileShader(a),!t.getShaderParameter(a,t.COMPILE_STATUS)){var o=t.getShaderInfoLog(a);try{var s=i(o,r,e)}catch(t){throw console.warn(&quot;Failed to format compiler error: &quot;+t),new n(o,&quot;Error compiling shader:\n&quot;+o)}throw new n(o,s.short,s.long)}return a}(r,t,e);l=a[e]=new s(o++,e,t,c,[],1,this)}return l},c.getProgram=function(t,e,r,i){var a=[t.id,e.id,r.join(&quot;:&quot;),i.join(&quot;:&quot;)].join(&quot;@&quot;),o=this.programs[a];return o&amp;&amp;this.gl.isProgram(o)||(this.programs[a]=o=function(t,e,r,i,a){var o=t.createProgram();t.attachShader(o,e),t.attachShader(o,r);for(var s=0;s&lt;i.length;++s)t.bindAttribLocation(o,a[s],i[s]);if(t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS)){var l=t.getProgramInfoLog(o);throw new n(l,&quot;Error linking program: &quot;+l)}return o}(this.gl,t.shader,e.shader,r,i),t.programs.push(a),e.programs.push(a)),o}},{&quot;./GLError&quot;:336,&quot;gl-format-compiler-error&quot;:270,&quot;weakmap-shim&quot;:605}],342:[function(t,e,r){&quot;use strict&quot;;function n(t){this.plot=t,this.enable=[!0,!0,!1,!1],this.width=[1,1,1,1],this.color=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.center=[1/0,1/0]}e.exports=function(t,e){var r=new n(t);return r.update(e),t.addOverlay(r),r};var i=n.prototype;i.update=function(t){t=t||{},this.enable=(t.enable||[!0,!0,!1,!1]).slice(),this.width=(t.width||[1,1,1,1]).slice(),this.color=(t.color||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]).map((function(t){return t.slice()})),this.center=(t.center||[1/0,1/0]).slice(),this.plot.setOverlayDirty()},i.draw=function(){var t=this.enable,e=this.width,r=this.color,n=this.center,i=this.plot,a=i.line,o=i.dataBox,s=i.viewBox;if(a.bind(),o[0]&lt;=n[0]&amp;&amp;n[0]&lt;=o[2]&amp;&amp;o[1]&lt;=n[1]&amp;&amp;n[1]&lt;=o[3]){var l=s[0]+(n[0]-o[0])/(o[2]-o[0])*(s[2]-s[0]),c=s[1]+(n[1]-o[1])/(o[3]-o[1])*(s[3]-s[1]);t[0]&amp;&amp;a.drawLine(l,c,s[0],c,e[0],r[0]),t[1]&amp;&amp;a.drawLine(l,c,l,s[1],e[1],r[1]),t[2]&amp;&amp;a.drawLine(l,c,s[2],c,e[2],r[2]),t[3]&amp;&amp;a.drawLine(l,c,l,s[3],e[3],r[3])}},i.dispose=function(){this.plot.removeOverlay(this)}},{}],343:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],344:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position, color;\nattribute float weight;\n\nuniform mat4 model, view, projection;\nuniform vec3 coordinates[3];\nuniform vec4 colors[3];\nuniform vec2 screenShape;\nuniform float lineWidth;\n\nvarying vec4 fragColor;\n\nvoid main() {\n  vec3 vertexPosition = mix(coordinates[0],\n    mix(coordinates[2], coordinates[1], 0.5 * (position + 1.0)), abs(position));\n\n  vec4 clipPos = projection * view * model * vec4(vertexPosition, 1.0);\n  vec2 clipOffset = (projection * view * model * vec4(color, 0.0)).xy;\n  vec2 delta = weight * clipOffset * screenShape;\n  vec2 lineOffset = normalize(vec2(delta.y, -delta.x)) / screenShape;\n\n  gl_Position   = vec4(clipPos.xy + clipPos.w * 0.5 * lineWidth * lineOffset, clipPos.z, clipPos.w);\n  fragColor     = color.x * colors[0] + color.y * colors[1] + color.z * colors[2];\n}\n&quot;]),o=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n  gl_FragColor = fragColor;\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec3&quot;},{name:&quot;weight&quot;,type:&quot;float&quot;}])}},{&quot;gl-shader&quot;:335,glslify:343}],345:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders/index&quot;);e.exports=function(t,e){var r=[];function o(t,e,n,i,a,o){var s=[t,e,n,0,0,0,1];s[i+3]=1,s[i]=a,r.push.apply(r,s),s[6]=-1,r.push.apply(r,s),s[i]=o,r.push.apply(r,s),r.push.apply(r,s),s[6]=1,r.push.apply(r,s),s[i]=a,r.push.apply(r,s)}o(0,0,0,0,0,1),o(0,0,0,1,0,1),o(0,0,0,2,0,1),o(1,0,0,1,-1,1),o(1,0,0,2,-1,1),o(0,1,0,0,-1,1),o(0,1,0,2,-1,1),o(0,0,1,0,-1,1),o(0,0,1,1,-1,1);var l=n(t,r),c=i(t,[{type:t.FLOAT,buffer:l,size:3,offset:0,stride:28},{type:t.FLOAT,buffer:l,size:3,offset:12,stride:28},{type:t.FLOAT,buffer:l,size:1,offset:24,stride:28}]),u=a(t);u.attributes.position.location=0,u.attributes.color.location=1,u.attributes.weight.location=2;var f=new s(t,l,c,u);return f.update(e),f};var o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n,this.pixelRatio=1,this.bounds=[[-1e3,-1e3,-1e3],[1e3,1e3,1e3]],this.position=[0,0,0],this.lineWidth=[2,2,2],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.enabled=[!0,!0,!0],this.drawSides=[!0,!0,!0],this.axes=null}var l=s.prototype,c=[0,0,0],u=[0,0,0],f=[0,0];l.isTransparent=function(){return!1},l.drawTransparent=function(t){},l.draw=function(t){var e=this.gl,r=this.vao,n=this.shader;r.bind(),n.bind();var i,a=t.model||o,s=t.view||o,l=t.projection||o;this.axes&amp;&amp;(i=this.axes.lastCubeProps.axis);for(var h=c,p=u,d=0;d&lt;3;++d)i&amp;&amp;i[d]&lt;0?(h[d]=this.bounds[0][d],p[d]=this.bounds[1][d]):(h[d]=this.bounds[1][d],p[d]=this.bounds[0][d]);f[0]=e.drawingBufferWidth,f[1]=e.drawingBufferHeight,n.uniforms.model=a,n.uniforms.view=s,n.uniforms.projection=l,n.uniforms.coordinates=[this.position,h,p],n.uniforms.colors=this.colors,n.uniforms.screenShape=f;for(d=0;d&lt;3;++d)n.uniforms.lineWidth=this.lineWidth[d]*this.pixelRatio,this.enabled[d]&amp;&amp;(r.draw(e.TRIANGLES,6,6*d),this.drawSides[d]&amp;&amp;r.draw(e.TRIANGLES,12,18+12*d));r.unbind()},l.update=function(t){t&amp;&amp;(&quot;bounds&quot;in t&amp;&amp;(this.bounds=t.bounds),&quot;position&quot;in t&amp;&amp;(this.position=t.position),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;colors&quot;in t&amp;&amp;(this.colors=t.colors),&quot;enabled&quot;in t&amp;&amp;(this.enabled=t.enabled),&quot;drawSides&quot;in t&amp;&amp;(this.drawSides=t.drawSides))},l.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{&quot;./shaders/index&quot;:344,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],346:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n  float segmentCount = 8.0;\n\n  float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d);\n  vec3 y = v * sin(angle) * length(d);\n  vec3 v3 = x + y;\n\n  normal = normalize(v3);\n\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, tubeScale;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  // Scale the vector magnitude to stay constant with\n  // model &amp; view changes.\n  vec3 normal;\n  vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n  vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * tubePosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  // vec4 m_position  = model * vec4(tubePosition, 1.0);\n  vec4 t_position  = view * tubePosition;\n  gl_Position      = projection * t_position;\n\n  f_color          = color;\n  f_data           = tubePosition.xyz;\n  f_position       = position.xyz;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * opacity;\n}\n&quot;]),o=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n  float segmentCount = 8.0;\n\n  float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d);\n  vec3 y = v * sin(angle) * length(d);\n  vec3 v3 = x + y;\n\n  normal = normalize(v3);\n\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float tubeScale;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  vec3 normal;\n  vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n  vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  gl_Position = projection * view * tubePosition;\n  f_id        = id;\n  f_position  = position.xyz;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;vector&quot;,type:&quot;vec4&quot;}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;},{name:&quot;vector&quot;,type:&quot;vec4&quot;}]}},{glslify:347}],347:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],348:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-vec3&quot;),i=t(&quot;gl-vec4&quot;),a=[&quot;xyz&quot;,&quot;xzy&quot;,&quot;yxz&quot;,&quot;yzx&quot;,&quot;zxy&quot;,&quot;zyx&quot;],o=function(t,e,r,a){for(var o=0,s=0;s&lt;t.length;s++)for(var l=t[s].velocities,c=0;c&lt;l.length;c++)o=Math.max(o,n.length(l[c]));var u=t.map((function(t){return function(t,e,r,a){for(var o=t.points,s=t.velocities,l=t.divergences,c=[],u=[],f=[],h=[],p=[],d=[],g=0,m=0,v=i.create(),y=i.create(),x=0;x&lt;o.length;x++){var b=o[x],_=s[x],w=l[x];0===e&amp;&amp;(w=.05*r),m=n.length(_)/a,v=i.create(),n.copy(v,_),v[3]=w;for(var T=0;T&lt;8;T++)p[T]=[b[0],b[1],b[2],T];if(h.length&gt;0)for(T=0;T&lt;8;T++){var k=(T+1)%8;c.push(h[T],p[T],p[k],p[k],h[k],h[T]),f.push(y,v,v,v,y,y),d.push(g,m,m,m,g,g);var M=c.length;u.push([M-6,M-5,M-4],[M-3,M-2,M-1])}var A=h;h=p,p=A;var S=y;y=v,v=S;var E=g;g=m,m=E}return{positions:c,cells:u,vectors:f,vertexIntensity:d}}(t,r,a,o)})),f=[],h=[],p=[],d=[];for(s=0;s&lt;u.length;s++){var g=u[s],m=f.length;f=f.concat(g.positions),p=p.concat(g.vectors),d=d.concat(g.vertexIntensity);for(c=0;c&lt;g.cells.length;c++){var v=g.cells[c],y=[];h.push(y);for(var x=0;x&lt;v.length;x++)y.push(v[x]+m)}}return{positions:f,cells:h,vectors:p,vertexIntensity:d,colormap:e}},s=function(t,e){var r,n=t.length;for(r=0;r&lt;n;r++){var i=t[r];if(i===e)return r;if(i&gt;e)return r-1}return r},l=function(t,e,r){return t&lt;e?e:t&gt;r?r:t},c=function(t){var e=1/0;t.sort((function(t,e){return t-e}));for(var r=t.length,n=1;n&lt;r;n++){var i=Math.abs(t[n]-t[n-1]);i&lt;e&amp;&amp;(e=i)}return e};e.exports=function(t,e){var r=t.startingPositions,i=t.maxLength||1e3,u=t.tubeSize||1,f=t.absoluteTubeSize,h=t.gridFill||&quot;+x+y+z&quot;,p={};-1!==h.indexOf(&quot;-x&quot;)&amp;&amp;(p.reversedX=!0),-1!==h.indexOf(&quot;-y&quot;)&amp;&amp;(p.reversedY=!0),-1!==h.indexOf(&quot;-z&quot;)&amp;&amp;(p.reversedZ=!0),p.filled=a.indexOf(h.replace(/-/g,&quot;&quot;).replace(/\+/g,&quot;&quot;));var d=t.getVelocity||function(e){return function(t,e,r){var i=e.vectors,a=e.meshgrid,o=t[0],c=t[1],u=t[2],f=a[0].length,h=a[1].length,p=a[2].length,d=s(a[0],o),g=s(a[1],c),m=s(a[2],u),v=d+1,y=g+1,x=m+1;if(d=l(d,0,f-1),v=l(v,0,f-1),g=l(g,0,h-1),y=l(y,0,h-1),m=l(m,0,p-1),x=l(x,0,p-1),d&lt;0||g&lt;0||m&lt;0||v&gt;f-1||y&gt;h-1||x&gt;p-1)return n.create();var b,_,w,T,k,M,A=a[0][d],S=a[0][v],E=a[1][g],C=a[1][y],L=a[2][m],I=(o-A)/(S-A),P=(c-E)/(C-E),z=(u-L)/(a[2][x]-L);switch(isFinite(I)||(I=.5),isFinite(P)||(P=.5),isFinite(z)||(z=.5),r.reversedX&amp;&amp;(d=f-1-d,v=f-1-v),r.reversedY&amp;&amp;(g=h-1-g,y=h-1-y),r.reversedZ&amp;&amp;(m=p-1-m,x=p-1-x),r.filled){case 5:k=m,M=x,w=g*p,T=y*p,b=d*p*h,_=v*p*h;break;case 4:k=m,M=x,b=d*p,_=v*p,w=g*p*f,T=y*p*f;break;case 3:w=g,T=y,k=m*h,M=x*h,b=d*h*p,_=v*h*p;break;case 2:w=g,T=y,b=d*h,_=v*h,k=m*h*f,M=x*h*f;break;case 1:b=d,_=v,k=m*f,M=x*f,w=g*f*p,T=y*f*p;break;default:b=d,_=v,w=g*f,T=y*f,k=m*f*h,M=x*f*h}var O=i[b+w+k],D=i[b+w+M],R=i[b+T+k],F=i[b+T+M],B=i[_+w+k],N=i[_+w+M],j=i[_+T+k],U=i[_+T+M],V=n.create(),q=n.create(),H=n.create(),G=n.create();n.lerp(V,O,B,I),n.lerp(q,D,N,I),n.lerp(H,R,j,I),n.lerp(G,F,U,I);var Y=n.create(),W=n.create();n.lerp(Y,V,H,P),n.lerp(W,q,G,P);var X=n.create();return n.lerp(X,Y,W,z),X}(e,t,p)},g=t.getDivergence||function(t,e){var r=n.create(),i=1e-4;n.add(r,t,[i,0,0]);var a=d(r);n.subtract(a,a,e),n.scale(a,a,1/i),n.add(r,t,[0,i,0]);var o=d(r);n.subtract(o,o,e),n.scale(o,o,1/i),n.add(r,t,[0,0,i]);var s=d(r);return n.subtract(s,s,e),n.scale(s,s,1/i),n.add(r,a,o),n.add(r,r,s),r},m=[],v=e[0][0],y=e[0][1],x=e[0][2],b=e[1][0],_=e[1][1],w=e[1][2],T=function(t){var e=t[0],r=t[1],n=t[2];return!(e&lt;v||e&gt;b||r&lt;y||r&gt;_||n&lt;x||n&gt;w)},k=10*n.distance(e[0],e[1])/i,M=k*k,A=1,S=0,E=r.length;E&gt;1&amp;&amp;(A=function(t){for(var e=[],r=[],n=[],i={},a={},o={},s=t.length,l=0;l&lt;s;l++){var u=t[l],f=u[0],h=u[1],p=u[2];i[f]||(e.push(f),i[f]=!0),a[h]||(r.push(h),a[h]=!0),o[p]||(n.push(p),o[p]=!0)}var d=c(e),g=c(r),m=c(n),v=Math.min(d,g,m);return isFinite(v)?v:1}(r));for(var C=0;C&lt;E;C++){var L=n.create();n.copy(L,r[C]);var I=[L],P=[],z=d(L),O=L;P.push(z);var D=[],R=g(L,z),F=n.length(R);isFinite(F)&amp;&amp;F&gt;S&amp;&amp;(S=F),D.push(F),m.push({points:I,velocities:P,divergences:D});for(var B=0;B&lt;100*i&amp;&amp;I.length&lt;i&amp;&amp;T(L);){B++;var N=n.clone(z),j=n.squaredLength(N);if(0===j)break;if(j&gt;M&amp;&amp;n.scale(N,N,k/Math.sqrt(j)),n.add(N,N,L),z=d(N),n.squaredDistance(O,N)-M&gt;-1e-4*M){I.push(N),O=N,P.push(z);R=g(N,z),F=n.length(R);isFinite(F)&amp;&amp;F&gt;S&amp;&amp;(S=F),D.push(F)}L=N}}var U=o(m,t.colormap,S,A);return f?U.tubeScale=f:(0===S&amp;&amp;(S=1),U.tubeScale=.5*u*A/S),U};var u=t(&quot;./lib/shaders&quot;),f=t(&quot;gl-cone3d&quot;).createMesh;e.exports.createTubeMesh=function(t,e){return f(t,e,{shaders:u,traceType:&quot;streamtube&quot;})}},{&quot;./lib/shaders&quot;:346,&quot;gl-cone3d&quot;:260,&quot;gl-vec3&quot;:377,&quot;gl-vec4&quot;:413}],349:[function(t,e,r){var n=t(&quot;gl-shader&quot;),i=t(&quot;glslify&quot;),a=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute vec3 f;\nattribute vec3 normal;\n\nuniform vec3 objectOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 lightPosition, eyePosition;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  vec3 localCoordinate = vec3(uv.zw, f.x);\n  worldCoordinate = objectOffset + localCoordinate;\n  vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n  vec4 clipPosition = projection * view * worldPosition;\n  gl_Position = clipPosition;\n  kill = f.y;\n  value = f.z;\n  planeCoordinate = uv.xy;\n\n  vColor = texture2D(colormap, vec2(value, value));\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * worldPosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  lightDirection = lightPosition - cameraCoordinate.xyz;\n  eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  surfaceNormal  = normalize((vec4(normal,0) * inverseModel).xyz);\n}\n&quot;]),o=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat beckmannSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness) {\n  return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 lowerBound, upperBound;\nuniform float contourTint;\nuniform vec4 contourColor;\nuniform sampler2D colormap;\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform float vertexColor;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  if (\n    kill &gt; 0.0 ||\n    vColor.a == 0.0 ||\n    outOfRange(clipBounds[0], clipBounds[1], worldCoordinate)\n  ) discard;\n\n  vec3 N = normalize(surfaceNormal);\n  vec3 V = normalize(eyeDirection);\n  vec3 L = normalize(lightDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = max(beckmannSpecular(L, V, N, roughness), 0.);\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  //decide how to interpolate color \u2014 in vertex or in fragment\n  vec4 surfaceColor =\n    step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) +\n    step(.5, vertexColor) * vColor;\n\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\n}\n&quot;]),s=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute float f;\n\nuniform vec3 objectOffset;\nuniform mat3 permutation;\nuniform mat4 model, view, projection;\nuniform float height, zOffset;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  vec3 dataCoordinate = permutation * vec3(uv.xy, height);\n  worldCoordinate = objectOffset + dataCoordinate;\n  vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n\n  vec4 clipPosition = projection * view * worldPosition;\n  clipPosition.z += zOffset;\n\n  gl_Position = clipPosition;\n  value = f + objectOffset.z;\n  kill = -1.0;\n  planeCoordinate = uv.zw;\n\n  vColor = texture2D(colormap, vec2(value, value));\n\n  //Don't do lighting for contours\n  surfaceNormal   = vec3(1,0,0);\n  eyeDirection    = vec3(0,1,0);\n  lightDirection  = vec3(0,0,1);\n}\n&quot;]),l=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec2 shape;\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 surfaceNormal;\n\nvec2 splitFloat(float v) {\n  float vh = 255.0 * v;\n  float upper = floor(vh);\n  float lower = fract(vh);\n  return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\n}\n\nvoid main() {\n  if ((kill &gt; 0.0) ||\n      (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\n\n  vec2 ux = splitFloat(planeCoordinate.x / shape.x);\n  vec2 uy = splitFloat(planeCoordinate.y / shape.y);\n  gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\n}\n&quot;]);r.createShader=function(t){var e=n(t,a,o,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createPickShader=function(t){var e=n(t,a,l,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createContourShader=function(t){var e=n(t,s,o,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;float&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e},r.createPickContourShader=function(t){var e=n(t,s,l,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;float&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e}},{&quot;gl-shader&quot;:335,glslify:350}],350:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],351:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=y(e),n=b(e),s=x(e),l=_(e),c=i(e),u=a(e,[{buffer:c,size:4,stride:40,offset:0},{buffer:c,size:3,stride:40,offset:16},{buffer:c,size:3,stride:40,offset:28}]),f=i(e),h=a(e,[{buffer:f,size:4,stride:20,offset:0},{buffer:f,size:1,stride:20,offset:16}]),p=i(e),d=a(e,[{buffer:p,size:2,type:e.FLOAT}]),g=o(e,1,256,e.RGBA,e.UNSIGNED_BYTE);g.minFilter=e.LINEAR,g.magFilter=e.LINEAR;var m=new A(e,[0,0],[[0,0,0],[0,0,0]],r,n,c,u,g,s,l,f,h,p,d,[0,0,0]),v={levels:[[],[],[]]};for(var w in t)v[w]=t[w];return v.colormap=v.colormap||&quot;jet&quot;,m.update(v),m};var n=t(&quot;bit-twiddle&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;typedarray-pool&quot;),l=t(&quot;colormap&quot;),c=t(&quot;ndarray-ops&quot;),u=t(&quot;ndarray-pack&quot;),f=t(&quot;ndarray&quot;),h=t(&quot;surface-nets&quot;),p=t(&quot;gl-mat4/multiply&quot;),d=t(&quot;gl-mat4/invert&quot;),g=t(&quot;binary-search-bounds&quot;),m=t(&quot;ndarray-gradient&quot;),v=t(&quot;./lib/shaders&quot;),y=v.createShader,x=v.createContourShader,b=v.createPickShader,_=v.createPickContourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],k=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];function M(t,e,r,n,i){this.position=t,this.index=e,this.uv=r,this.level=n,this.dataCoordinate=i}!function(){for(var t=0;t&lt;3;++t){var e=k[t],r=(t+2)%3;e[(t+1)%3+0]=1,e[r+3]=1,e[t+6]=1}}();function A(t,e,r,n,i,a,o,l,c,u,h,p,d,g,m){this.gl=t,this.shape=e,this.bounds=r,this.objectOffset=m,this.intensityBounds=[],this._shader=n,this._pickShader=i,this._coordinateBuffer=a,this._vao=o,this._colorMap=l,this._contourShader=c,this._contourPickShader=u,this._contourBuffer=h,this._contourVAO=p,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new M([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=d,this._dynamicVAO=g,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var S=A.prototype;S.genColormap=function(t,e){var r=!1,n=u([l({colormap:t,nshades:256,format:&quot;rgba&quot;}).map((function(t,n){var i=e?function(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;r&lt;e.length;++r){if(e.length&lt;2)return 1;if(e[r][0]===t)return e[r][1];if(e[r][0]&gt;t&amp;&amp;r&gt;0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}(n/255,e):t[3];return i&lt;1&amp;&amp;(r=!0),[t[0],t[1],t[2],255*i]}))]);return c.divseq(n,255),this.hasAlphaScale=r,n},S.isTransparent=function(){return this.opacity&lt;1||this.hasAlphaScale},S.isOpaque=function(){return!this.isTransparent()},S.pickSlots=1,S.setPickBase=function(t){this.pickId=t};var E=[0,0,0],C={showSurface:!1,showContour:!1,projections:[w.slice(),w.slice(),w.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function L(t,e){var r,n,i,a=e.axes&amp;&amp;e.axes.lastCubeProps.axis||E,o=e.showSurface,s=e.showContour;for(r=0;r&lt;3;++r)for(o=o||e.surfaceProject[r],n=0;n&lt;3;++n)s=s||e.contourProject[r][n];for(r=0;r&lt;3;++r){var l=C.projections[r];for(n=0;n&lt;16;++n)l[n]=0;for(n=0;n&lt;4;++n)l[5*n]=1;l[5*r]=0,l[12+r]=e.axesBounds[+(a[r]&gt;0)][r],p(l,t.model,l);var c=C.clipBounds[r];for(i=0;i&lt;2;++i)for(n=0;n&lt;3;++n)c[i][n]=t.clipBounds[i][n];c[0][r]=-1e8,c[1][r]=1e8}return C.showSurface=o,C.showContour=s,C}var I={model:w,view:w,projection:w,inverseModel:w.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},P=w.slice(),z=[1,0,0,0,1,0,0,0,1];function O(t,e){t=t||{};var r=this.gl;r.disable(r.CULL_FACE),this._colorMap.bind(0);var n=I;n.model=t.model||w,n.view=t.view||w,n.projection=t.projection||w,n.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],n.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],n.objectOffset=this.objectOffset,n.contourColor=this.contourColor[0],n.inverseModel=d(n.inverseModel,n.model);for(var i=0;i&lt;2;++i)for(var a=n.clipBounds[i],o=0;o&lt;3;++o)a[o]=Math.min(Math.max(this.clipBounds[i][o],-1e8),1e8);n.kambient=this.ambientLight,n.kdiffuse=this.diffuseLight,n.kspecular=this.specularLight,n.roughness=this.roughness,n.fresnel=this.fresnel,n.opacity=this.opacity,n.height=0,n.permutation=z,n.vertexColor=this.vertexColor;var s=P;for(p(s,n.view,n.model),p(s,n.projection,s),d(s,s),i=0;i&lt;3;++i)n.eyePosition[i]=s[12+i]/s[15];var l=s[15];for(i=0;i&lt;3;++i)l+=this.lightPosition[i]*s[4*i+3];for(i=0;i&lt;3;++i){var c=s[12+i];for(o=0;o&lt;3;++o)c+=s[4*o+i]*this.lightPosition[o];n.lightPosition[i]=c/l}var u=L(n,this);if(u.showSurface){for(this._shader.bind(),this._shader.uniforms=n,this._vao.bind(),this.showSurface&amp;&amp;this._vertexCount&amp;&amp;this._vao.draw(r.TRIANGLES,this._vertexCount),i=0;i&lt;3;++i)this.surfaceProject[i]&amp;&amp;this.vertexCount&amp;&amp;(this._shader.uniforms.model=u.projections[i],this._shader.uniforms.clipBounds=u.clipBounds[i],this._vao.draw(r.TRIANGLES,this._vertexCount));this._vao.unbind()}if(u.showContour){var f=this._contourShader;n.kambient=1,n.kdiffuse=0,n.kspecular=0,n.opacity=1,f.bind(),f.uniforms=n;var h=this._contourVAO;for(h.bind(),i=0;i&lt;3;++i)for(f.uniforms.permutation=k[i],r.lineWidth(this.contourWidth[i]*this.pixelRatio),o=0;o&lt;this.contourLevels[i].length;++o)o===this.highlightLevel[i]?(f.uniforms.contourColor=this.highlightColor[i],f.uniforms.contourTint=this.highlightTint[i]):0!==o&amp;&amp;o-1!==this.highlightLevel[i]||(f.uniforms.contourColor=this.contourColor[i],f.uniforms.contourTint=this.contourTint[i]),this._contourCounts[i][o]&amp;&amp;(f.uniforms.height=this.contourLevels[i][o],h.draw(r.LINES,this._contourCounts[i][o],this._contourOffsets[i][o]));for(i=0;i&lt;3;++i)for(f.uniforms.model=u.projections[i],f.uniforms.clipBounds=u.clipBounds[i],o=0;o&lt;3;++o)if(this.contourProject[i][o]){f.uniforms.permutation=k[o],r.lineWidth(this.contourWidth[o]*this.pixelRatio);for(var g=0;g&lt;this.contourLevels[o].length;++g)g===this.highlightLevel[o]?(f.uniforms.contourColor=this.highlightColor[o],f.uniforms.contourTint=this.highlightTint[o]):0!==g&amp;&amp;g-1!==this.highlightLevel[o]||(f.uniforms.contourColor=this.contourColor[o],f.uniforms.contourTint=this.contourTint[o]),this._contourCounts[o][g]&amp;&amp;(f.uniforms.height=this.contourLevels[o][g],h.draw(r.LINES,this._contourCounts[o][g],this._contourOffsets[o][g]))}for(h.unbind(),(h=this._dynamicVAO).bind(),i=0;i&lt;3;++i)if(0!==this._dynamicCounts[i])for(f.uniforms.model=n.model,f.uniforms.clipBounds=n.clipBounds,f.uniforms.permutation=k[i],r.lineWidth(this.dynamicWidth[i]*this.pixelRatio),f.uniforms.contourColor=this.dynamicColor[i],f.uniforms.contourTint=this.dynamicTint[i],f.uniforms.height=this.dynamicLevel[i],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]),o=0;o&lt;3;++o)this.contourProject[o][i]&amp;&amp;(f.uniforms.model=u.projections[o],f.uniforms.clipBounds=u.clipBounds[o],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]));h.unbind()}}S.draw=function(t){return O.call(this,t,!1)},S.drawTransparent=function(t){return O.call(this,t,!0)};var D={model:w,view:w,projection:w,inverseModel:w,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,objectOffset:[0,0,0],permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};function R(t,e){return Array.isArray(t)?[e(t[0]),e(t[1]),e(t[2])]:[e(t),e(t),e(t)]}function F(t){return Array.isArray(t)?3===t.length?[t[0],t[1],t[2],1]:[t[0],t[1],t[2],t[3]]:[0,0,0,1]}function B(t){if(Array.isArray(t)){if(Array.isArray(t))return[F(t[0]),F(t[1]),F(t[2])];var e=F(t);return[e.slice(),e.slice(),e.slice()]}}S.drawPick=function(t){t=t||{};var e=this.gl;e.disable(e.CULL_FACE);var r=D;r.model=t.model||w,r.view=t.view||w,r.projection=t.projection||w,r.shape=this._field[2].shape,r.pickId=this.pickId/255,r.lowerBound=this.bounds[0],r.upperBound=this.bounds[1],r.objectOffset=this.objectOffset,r.permutation=z;for(var n=0;n&lt;2;++n)for(var i=r.clipBounds[n],a=0;a&lt;3;++a)i[a]=Math.min(Math.max(this.clipBounds[n][a],-1e8),1e8);var o=L(r,this);if(o.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=r,this._vao.bind(),this._vao.draw(e.TRIANGLES,this._vertexCount),n=0;n&lt;3;++n)this.surfaceProject[n]&amp;&amp;(this._pickShader.uniforms.model=o.projections[n],this._pickShader.uniforms.clipBounds=o.clipBounds[n],this._vao.draw(e.TRIANGLES,this._vertexCount));this._vao.unbind()}if(o.showContour){var s=this._contourPickShader;s.bind(),s.uniforms=r;var l=this._contourVAO;for(l.bind(),a=0;a&lt;3;++a)for(e.lineWidth(this.contourWidth[a]*this.pixelRatio),s.uniforms.permutation=k[a],n=0;n&lt;this.contourLevels[a].length;++n)this._contourCounts[a][n]&amp;&amp;(s.uniforms.height=this.contourLevels[a][n],l.draw(e.LINES,this._contourCounts[a][n],this._contourOffsets[a][n]));for(n=0;n&lt;3;++n)for(s.uniforms.model=o.projections[n],s.uniforms.clipBounds=o.clipBounds[n],a=0;a&lt;3;++a)if(this.contourProject[n][a]){s.uniforms.permutation=k[a],e.lineWidth(this.contourWidth[a]*this.pixelRatio);for(var c=0;c&lt;this.contourLevels[a].length;++c)this._contourCounts[a][c]&amp;&amp;(s.uniforms.height=this.contourLevels[a][c],l.draw(e.LINES,this._contourCounts[a][c],this._contourOffsets[a][c]))}l.unbind()}},S.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=this._field[2].shape,r=this._pickResult,n=e[0]*(t.value[0]+(t.value[2]&gt;&gt;4)/16)/255,i=Math.floor(n),a=n-i,o=e[1]*(t.value[1]+(15&amp;t.value[2])/16)/255,s=Math.floor(o),l=o-s;i+=1,s+=1;var c=r.position;c[0]=c[1]=c[2]=0;for(var u=0;u&lt;2;++u)for(var f=u?a:1-a,h=0;h&lt;2;++h)for(var p=i+u,d=s+h,m=f*(h?l:1-l),v=0;v&lt;3;++v)c[v]+=this._field[v].get(p,d)*m;for(var y=this._pickResult.level,x=0;x&lt;3;++x)if(y[x]=g.le(this.contourLevels[x],c[x]),y[x]&lt;0)this.contourLevels[x].length&gt;0&amp;&amp;(y[x]=0);else if(y[x]&lt;this.contourLevels[x].length-1){var b=this.contourLevels[x][y[x]],_=this.contourLevels[x][y[x]+1];Math.abs(b-c[x])&gt;Math.abs(_-c[x])&amp;&amp;(y[x]+=1)}for(r.index[0]=a&lt;.5?i:i+1,r.index[1]=l&lt;.5?s:s+1,r.uv[0]=n/e[0],r.uv[1]=o/e[1],v=0;v&lt;3;++v)r.dataCoordinate[v]=this._field[v].get(r.index[0],r.index[1]);return r},S.padField=function(t,e){var r=e.shape.slice(),n=t.shape.slice();c.assign(t.lo(1,1).hi(r[0],r[1]),e),c.assign(t.lo(1).hi(r[0],1),e.hi(r[0],1)),c.assign(t.lo(1,n[1]-1).hi(r[0],1),e.lo(0,r[1]-1).hi(r[0],1)),c.assign(t.lo(0,1).hi(1,r[1]),e.hi(1)),c.assign(t.lo(n[0]-1,1).hi(1,r[1]),e.lo(r[0]-1)),t.set(0,0,e.get(0,0)),t.set(0,n[1]-1,e.get(0,r[1]-1)),t.set(n[0]-1,0,e.get(r[0]-1,0)),t.set(n[0]-1,n[1]-1,e.get(r[0]-1,r[1]-1))},S.update=function(t){t=t||{},this.objectOffset=t.objectOffset||this.objectOffset,this.dirty=!0,&quot;contourWidth&quot;in t&amp;&amp;(this.contourWidth=R(t.contourWidth,Number)),&quot;showContour&quot;in t&amp;&amp;(this.showContour=R(t.showContour,Boolean)),&quot;showSurface&quot;in t&amp;&amp;(this.showSurface=!!t.showSurface),&quot;contourTint&quot;in t&amp;&amp;(this.contourTint=R(t.contourTint,Boolean)),&quot;contourColor&quot;in t&amp;&amp;(this.contourColor=B(t.contourColor)),&quot;contourProject&quot;in t&amp;&amp;(this.contourProject=R(t.contourProject,(function(t){return R(t,Boolean)}))),&quot;surfaceProject&quot;in t&amp;&amp;(this.surfaceProject=t.surfaceProject),&quot;dynamicColor&quot;in t&amp;&amp;(this.dynamicColor=B(t.dynamicColor)),&quot;dynamicTint&quot;in t&amp;&amp;(this.dynamicTint=R(t.dynamicTint,Number)),&quot;dynamicWidth&quot;in t&amp;&amp;(this.dynamicWidth=R(t.dynamicWidth,Number)),&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity),&quot;opacityscale&quot;in t&amp;&amp;(this.opacityscale=t.opacityscale),&quot;colorBounds&quot;in t&amp;&amp;(this.colorBounds=t.colorBounds),&quot;vertexColor&quot;in t&amp;&amp;(this.vertexColor=t.vertexColor?1:0),&quot;colormap&quot;in t&amp;&amp;this._colorMap.setPixels(this.genColormap(t.colormap,this.opacityscale));var e=t.field||t.coords&amp;&amp;t.coords[2]||null,r=!1;if(e||(e=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),&quot;field&quot;in t||&quot;coords&quot;in t){var i=(e.shape[0]+2)*(e.shape[1]+2);i&gt;this._field[2].data.length&amp;&amp;(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(n.nextPow2(i))),this._field[2]=f(this._field[2].data,[e.shape[0]+2,e.shape[1]+2]),this.padField(this._field[2],e),this.shape=e.shape.slice();for(var a=this.shape,o=0;o&lt;2;++o)this._field[2].size&gt;this._field[o].data.length&amp;&amp;(s.freeFloat(this._field[o].data),this._field[o].data=s.mallocFloat(this._field[2].size)),this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2]);if(t.coords){var l=t.coords;if(!Array.isArray(l)||3!==l.length)throw new Error(&quot;gl-surface: invalid coordinates for x/y&quot;);for(o=0;o&lt;2;++o){var c=l[o];for(v=0;v&lt;2;++v)if(c.shape[v]!==a[v])throw new Error(&quot;gl-surface: coords have incorrect shape&quot;);this.padField(this._field[o],c)}}else if(t.ticks){var u=t.ticks;if(!Array.isArray(u)||2!==u.length)throw new Error(&quot;gl-surface: invalid ticks&quot;);for(o=0;o&lt;2;++o){var p=u[o];if((Array.isArray(p)||p.length)&amp;&amp;(p=f(p)),p.shape[0]!==a[o])throw new Error(&quot;gl-surface: invalid tick length&quot;);var d=f(p.data,a);d.stride[o]=p.stride[0],d.stride[1^o]=0,this.padField(this._field[o],d)}}else{for(o=0;o&lt;2;++o){var g=[0,0];g[o]=1,this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2],g,0)}this._field[0].set(0,0,0);for(var v=0;v&lt;a[0];++v)this._field[0].set(v+1,0,v);for(this._field[0].set(a[0]+1,0,a[0]-1),this._field[1].set(0,0,0),v=0;v&lt;a[1];++v)this._field[1].set(0,v+1,v);this._field[1].set(0,a[1]+1,a[1]-1)}var y=this._field,x=f(s.mallocFloat(3*y[2].size*2),[3,a[0]+2,a[1]+2,2]);for(o=0;o&lt;3;++o)m(x.pick(o),y[o],&quot;mirror&quot;);var b=f(s.mallocFloat(3*y[2].size),[a[0]+2,a[1]+2,3]);for(o=0;o&lt;a[0]+2;++o)for(v=0;v&lt;a[1]+2;++v){var _=x.get(0,o,v,0),w=x.get(0,o,v,1),k=x.get(1,o,v,0),M=x.get(1,o,v,1),A=x.get(2,o,v,0),S=x.get(2,o,v,1),E=k*S-M*A,C=A*w-S*_,L=_*M-w*k,I=Math.sqrt(E*E+C*C+L*L);I&lt;1e-8?(I=Math.max(Math.abs(E),Math.abs(C),Math.abs(L)))&lt;1e-8?(L=1,C=E=0,I=1):I=1/I:I=1/Math.sqrt(I),b.set(o,v,0,E*I),b.set(o,v,1,C*I),b.set(o,v,2,L*I)}s.free(x.data);var P=[1/0,1/0,1/0],z=[-1/0,-1/0,-1/0],O=1/0,D=-1/0,F=(a[0]-1)*(a[1]-1)*6,N=s.mallocFloat(n.nextPow2(10*F)),j=0,U=0;for(o=0;o&lt;a[0]-1;++o)t:for(v=0;v&lt;a[1]-1;++v){for(var V=0;V&lt;2;++V)for(var q=0;q&lt;2;++q)for(var H=0;H&lt;3;++H){var G=this._field[H].get(1+o+V,1+v+q);if(isNaN(G)||!isFinite(G))continue t}for(H=0;H&lt;6;++H){var Y=o+T[H][0],W=v+T[H][1],X=this._field[0].get(Y+1,W+1),Z=this._field[1].get(Y+1,W+1);G=this._field[2].get(Y+1,W+1),E=b.get(Y+1,W+1,0),C=b.get(Y+1,W+1,1),L=b.get(Y+1,W+1,2),t.intensity&amp;&amp;(J=t.intensity.get(Y,W));var J=t.intensity?t.intensity.get(Y,W):G+this.objectOffset[2];N[j++]=Y,N[j++]=W,N[j++]=X,N[j++]=Z,N[j++]=G,N[j++]=0,N[j++]=J,N[j++]=E,N[j++]=C,N[j++]=L,P[0]=Math.min(P[0],X+this.objectOffset[0]),P[1]=Math.min(P[1],Z+this.objectOffset[1]),P[2]=Math.min(P[2],G+this.objectOffset[2]),O=Math.min(O,J),z[0]=Math.max(z[0],X+this.objectOffset[0]),z[1]=Math.max(z[1],Z+this.objectOffset[1]),z[2]=Math.max(z[2],G+this.objectOffset[2]),D=Math.max(D,J),U+=1}}for(t.intensityBounds&amp;&amp;(O=+t.intensityBounds[0],D=+t.intensityBounds[1]),o=6;o&lt;j;o+=10)N[o]=(N[o]-O)/(D-O);this._vertexCount=U,this._coordinateBuffer.update(N.subarray(0,j)),s.freeFloat(N),s.free(b.data),this.bounds=[P,z],this.intensity=t.intensity||this._field[2],this.intensityBounds[0]===O&amp;&amp;this.intensityBounds[1]===D||(r=!0),this.intensityBounds=[O,D]}if(&quot;levels&quot;in t){var K=t.levels;for(K=Array.isArray(K[0])?K.slice():[[],[],K],o=0;o&lt;3;++o)K[o]=K[o].slice(),K[o].sort((function(t,e){return t-e}));for(o=0;o&lt;3;++o)for(v=0;v&lt;K[o].length;++v)K[o][v]-=this.objectOffset[o];t:for(o=0;o&lt;3;++o){if(K[o].length!==this.contourLevels[o].length){r=!0;break}for(v=0;v&lt;K[o].length;++v)if(K[o][v]!==this.contourLevels[o][v]){r=!0;break t}}this.contourLevels=K}if(r){y=this._field,a=this.shape;for(var Q=[],$=0;$&lt;3;++$){var tt=this.contourLevels[$],et=[],rt=[],nt=[0,0,0];for(o=0;o&lt;tt.length;++o){var it=h(this._field[$],tt[o]);et.push(Q.length/5|0),U=0;t:for(v=0;v&lt;it.cells.length;++v){var at=it.cells[v];for(H=0;H&lt;2;++H){var ot=it.positions[at[H]],st=ot[0],lt=0|Math.floor(st),ct=st-lt,ut=ot[1],ft=0|Math.floor(ut),ht=ut-ft,pt=!1;e:for(var dt=0;dt&lt;3;++dt){nt[dt]=0;var gt=($+dt+1)%3;for(V=0;V&lt;2;++V){var mt=V?ct:1-ct;for(Y=0|Math.min(Math.max(lt+V,0),a[0]),q=0;q&lt;2;++q){var vt=q?ht:1-ht;if(W=0|Math.min(Math.max(ft+q,0),a[1]),G=dt&lt;2?this._field[gt].get(Y,W):(this.intensity.get(Y,W)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(G)||isNaN(G)){pt=!0;break e}var yt=mt*vt;nt[dt]+=yt*G}}}if(pt){if(H&gt;0){for(var xt=0;xt&lt;5;++xt)Q.pop();U-=1}continue t}Q.push(nt[0],nt[1],ot[0],ot[1],nt[2]),U+=1}}rt.push(U)}this._contourOffsets[$]=et,this._contourCounts[$]=rt}var bt=s.mallocFloat(Q.length);for(o=0;o&lt;Q.length;++o)bt[o]=Q[o];this._contourBuffer.update(bt),s.freeFloat(bt)}},S.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var t=0;t&lt;3;++t)s.freeFloat(this._field[t].data)},S.highlight=function(t){var e,r;if(!t)return this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],void(this.highlightLevel=[-1,-1,-1]);for(e=0;e&lt;3;++e)this.enableHighlight[e]?this.highlightLevel[e]=t.level[e]:this.highlightLevel[e]=-1;for(r=this.snapToData?t.dataCoordinate:t.position,e=0;e&lt;3;++e)r[e]-=this.objectOffset[e];if(this.enableDynamic[0]&amp;&amp;r[0]!==this.dynamicLevel[0]||this.enableDynamic[1]&amp;&amp;r[1]!==this.dynamicLevel[1]||this.enableDynamic[2]&amp;&amp;r[2]!==this.dynamicLevel[2]){for(var n=0,i=this.shape,a=s.mallocFloat(12*i[0]*i[1]),o=0;o&lt;3;++o)if(this.enableDynamic[o]){this.dynamicLevel[o]=r[o];var l=(o+1)%3,c=(o+2)%3,u=this._field[o],f=this._field[l],p=this._field[c],d=h(u,r[o]),g=d.cells,m=d.positions;for(this._dynamicOffsets[o]=n,e=0;e&lt;g.length;++e)for(var v=g[e],y=0;y&lt;2;++y){var x=m[v[y]],b=+x[0],_=0|b,w=0|Math.min(_+1,i[0]),T=b-_,k=1-T,M=+x[1],A=0|M,S=0|Math.min(A+1,i[1]),E=M-A,C=1-E,L=k*C,I=k*E,P=T*C,z=T*E,O=L*f.get(_,A)+I*f.get(_,S)+P*f.get(w,A)+z*f.get(w,S),D=L*p.get(_,A)+I*p.get(_,S)+P*p.get(w,A)+z*p.get(w,S);if(isNaN(O)||isNaN(D)){y&amp;&amp;(n-=1);break}a[2*n+0]=O,a[2*n+1]=D,n+=1}this._dynamicCounts[o]=n-this._dynamicOffsets[o]}else this.dynamicLevel[o]=NaN,this._dynamicCounts[o]=0;this._dynamicBuffer.update(a.subarray(0,2*n)),s.freeFloat(a)}}},{&quot;./lib/shaders&quot;:349,&quot;binary-search-bounds&quot;:96,&quot;bit-twiddle&quot;:97,colormap:131,&quot;gl-buffer&quot;:259,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/multiply&quot;:295,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495,&quot;ndarray-gradient&quot;:488,&quot;ndarray-ops&quot;:490,&quot;ndarray-pack&quot;:491,&quot;surface-nets&quot;:570,&quot;typedarray-pool&quot;:595}],352:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font&quot;),i=t(&quot;pick-by-alias&quot;),a=t(&quot;regl&quot;),o=t(&quot;gl-util/context&quot;),s=t(&quot;es6-weak-map&quot;),l=t(&quot;color-normalize&quot;),c=t(&quot;font-atlas&quot;),u=t(&quot;typedarray-pool&quot;),f=t(&quot;parse-rect&quot;),h=t(&quot;is-plain-obj&quot;),p=t(&quot;parse-unit&quot;),d=t(&quot;to-px&quot;),g=t(&quot;detect-kerning&quot;),m=t(&quot;object-assign&quot;),v=t(&quot;font-measure&quot;),y=t(&quot;flatten-vertex-data&quot;),x=t(&quot;bit-twiddle&quot;).nextPow2,b=new s,_=!1;if(document.body){var w=document.body.appendChild(document.createElement(&quot;div&quot;));w.style.font=&quot;italic small-caps bold condensed 16px/2 cursive&quot;,getComputedStyle(w).fontStretch&amp;&amp;(_=!0),document.body.removeChild(w)}var T=function(t){!function(t){return&quot;function&quot;==typeof t&amp;&amp;t._gl&amp;&amp;t.prop&amp;&amp;t.texture&amp;&amp;t.buffer}(t)?this.gl=o(t):(t={regl:t},this.gl=t.regl._gl),this.shader=b.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||a({gl:this.gl}),this.charBuffer=this.regl.buffer({type:&quot;uint8&quot;,usage:&quot;stream&quot;}),this.sizeBuffer=this.regl.buffer({type:&quot;float&quot;,usage:&quot;stream&quot;}),this.shader||(this.shader=this.createShader(),b.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(t)?t:{})};T.prototype.createShader=function(){var t=this.regl,e=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},stencil:{enable:!1},depth:{enable:!1},count:t.prop(&quot;count&quot;),offset:t.prop(&quot;offset&quot;),attributes:{charOffset:{offset:4,stride:8,buffer:t.this(&quot;sizeBuffer&quot;)},width:{offset:0,stride:8,buffer:t.this(&quot;sizeBuffer&quot;)},char:t.this(&quot;charBuffer&quot;),position:t.this(&quot;position&quot;)},uniforms:{atlasSize:function(t,e){return[e.atlas.width,e.atlas.height]},atlasDim:function(t,e){return[e.atlas.cols,e.atlas.rows]},atlas:function(t,e){return e.atlas.texture},charStep:function(t,e){return e.atlas.step},em:function(t,e){return e.atlas.em},color:t.prop(&quot;color&quot;),opacity:t.prop(&quot;opacity&quot;),viewport:t.this(&quot;viewportArray&quot;),scale:t.this(&quot;scale&quot;),align:t.prop(&quot;align&quot;),baseline:t.prop(&quot;baseline&quot;),translate:t.this(&quot;translate&quot;),positionOffset:t.prop(&quot;positionOffset&quot;)},primitive:&quot;points&quot;,viewport:t.this(&quot;viewport&quot;),vert:&quot;\n\t\t\tprecision highp float;\n\t\t\tattribute float width, charOffset, char;\n\t\t\tattribute vec2 position;\n\t\t\tuniform float fontSize, charStep, em, align, baseline;\n\t\t\tuniform vec4 viewport;\n\t\t\tuniform vec4 color;\n\t\t\tuniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvoid main () {\n\t\t\t\t&quot;+(T.normalViewport?&quot;&quot;:&quot;vec2 positionOffset = vec2(positionOffset.x,- positionOffset.y);&quot;)+&quot;\n\n\t\t\t\tvec2 offset = floor(em * (vec2(align + charOffset, baseline)\n\t\t\t\t\t+ positionOffset))\n\t\t\t\t\t/ (viewport.zw * scale.xy);\n\n\t\t\t\tvec2 position = (position + translate) * scale;\n\t\t\t\tposition += offset * scale;\n\n\t\t\t\t&quot;+(T.normalViewport?&quot;position.y = 1. - position.y;&quot;:&quot;&quot;)+&quot;\n\n\t\t\t\tcharCoord = position * viewport.zw + viewport.xy;\n\n\t\t\t\tgl_Position = vec4(position * 2. - 1., 0, 1);\n\n\t\t\t\tgl_PointSize = charStep;\n\n\t\t\t\tcharId.x = mod(char, atlasDim.x);\n\t\t\t\tcharId.y = floor(char / atlasDim.x);\n\n\t\t\t\tcharWidth = width * em;\n\n\t\t\t\tfontColor = color / 255.;\n\t\t\t}&quot;,frag:&quot;\n\t\t\tprecision highp float;\n\t\t\tuniform sampler2D atlas;\n\t\t\tuniform float fontSize, charStep, opacity;\n\t\t\tuniform vec2 atlasSize;\n\t\t\tuniform vec4 viewport;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\n\t\t\tfloat lightness(vec4 color) {\n\t\t\t\treturn color.r * 0.299 + color.g * 0.587 + color.b * 0.114;\n\t\t\t}\n\n\t\t\tvoid main () {\n\t\t\t\tvec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;\n\t\t\t\tfloat halfCharStep = floor(charStep * .5 + .5);\n\n\t\t\t\t// invert y and shift by 1px (FF expecially needs that)\n\t\t\t\tuv.y = charStep - uv.y;\n\n\t\t\t\t// ignore points outside of character bounding box\n\t\t\t\tfloat halfCharWidth = ceil(charWidth * .5);\n\t\t\t\tif (floor(uv.x) &gt; halfCharStep + halfCharWidth ||\n\t\t\t\t\tfloor(uv.x) &lt; halfCharStep - halfCharWidth) return;\n\n\t\t\t\tuv += charId * charStep;\n\t\t\t\tuv = uv / atlasSize;\n\n\t\t\t\tvec4 color = fontColor;\n\t\t\t\tvec4 mask = texture2D(atlas, uv);\n\n\t\t\t\tfloat maskY = lightness(mask);\n\t\t\t\t// float colorY = lightness(color);\n\t\t\t\tcolor.a *= maskY;\n\t\t\t\tcolor.a *= opacity;\n\n\t\t\t\t// color.a += .1;\n\n\t\t\t\t// antialiasing, see yiq color space y-channel formula\n\t\t\t\t// color.rgb += (1. - color.rgb) * (1. - mask.rgb);\n\n\t\t\t\tgl_FragColor = color;\n\t\t\t}&quot;});return{regl:t,draw:e,atlas:{}}},T.prototype.update=function(t){var e=this;if(&quot;string&quot;==typeof t)t={text:t};else if(!t)return;null!=(t=i(t,{position:&quot;position positions coord coords coordinates&quot;,font:&quot;font fontFace fontface typeface cssFont css-font family fontFamily&quot;,fontSize:&quot;fontSize fontsize size font-size&quot;,text:&quot;text texts chars characters value values symbols&quot;,align:&quot;align alignment textAlign textbaseline&quot;,baseline:&quot;baseline textBaseline textbaseline&quot;,direction:&quot;dir direction textDirection&quot;,color:&quot;color colour fill fill-color fillColor textColor textcolor&quot;,kerning:&quot;kerning kern&quot;,range:&quot;range dataBox&quot;,viewport:&quot;vp viewport viewBox viewbox viewPort&quot;,opacity:&quot;opacity alpha transparency visible visibility opaque&quot;,offset:&quot;offset positionOffset padding shift indent indentation&quot;},!0)).opacity&amp;&amp;(Array.isArray(t.opacity)?this.opacity=t.opacity.map((function(t){return parseFloat(t)})):this.opacity=parseFloat(t.opacity)),null!=t.viewport&amp;&amp;(this.viewport=f(t.viewport),T.normalViewport&amp;&amp;(this.viewport.y=this.canvas.height-this.viewport.y-this.viewport.height),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null==this.viewport&amp;&amp;(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null!=t.kerning&amp;&amp;(this.kerning=t.kerning),null!=t.offset&amp;&amp;(&quot;number&quot;==typeof t.offset&amp;&amp;(t.offset=[t.offset,0]),this.positionOffset=y(t.offset)),t.direction&amp;&amp;(this.direction=t.direction),t.range&amp;&amp;(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&amp;&amp;(this.scale=t.scale),t.translate&amp;&amp;(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),this.font.length||t.font||(t.font=T.baseFontSize+&quot;px sans-serif&quot;);var r,a=!1,o=!1;if(t.font&amp;&amp;(Array.isArray(t.font)?t.font:[t.font]).forEach((function(t,r){if(&quot;string&quot;==typeof t)try{t=n.parse(t)}catch(e){t=n.parse(T.baseFontSize+&quot;px &quot;+t)}else t=n.parse(n.stringify(t));var i=n.stringify({size:T.baseFontSize,family:t.family,stretch:_?t.stretch:void 0,variant:t.variant,weight:t.weight,style:t.style}),s=p(t.size),l=Math.round(s[0]*d(s[1]));if(l!==e.fontSize[r]&amp;&amp;(o=!0,e.fontSize[r]=l),!(e.font[r]&amp;&amp;i==e.font[r].baseString||(a=!0,e.font[r]=T.fonts[i],e.font[r]))){var c=t.family.join(&quot;, &quot;),u=[t.style];t.style!=t.variant&amp;&amp;u.push(t.variant),t.variant!=t.weight&amp;&amp;u.push(t.weight),_&amp;&amp;t.weight!=t.stretch&amp;&amp;u.push(t.stretch),e.font[r]={baseString:i,family:c,weight:t.weight,stretch:t.stretch,style:t.style,variant:t.variant,width:{},kerning:{},metrics:v(c,{origin:&quot;top&quot;,fontSize:T.baseFontSize,fontStyle:u.join(&quot; &quot;)})},T.fonts[i]=e.font[r]}})),(a||o)&amp;&amp;this.font.forEach((function(r,i){var a=n.stringify({size:e.fontSize[i],family:r.family,stretch:_?r.stretch:void 0,variant:r.variant,weight:r.weight,style:r.style});if(e.fontAtlas[i]=e.shader.atlas[a],!e.fontAtlas[i]){var o=r.metrics;e.shader.atlas[a]=e.fontAtlas[i]={fontString:a,step:2*Math.ceil(e.fontSize[i]*o.bottom*.5),em:e.fontSize[i],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:e.regl.texture()}}null==t.text&amp;&amp;(t.text=e.text)})),&quot;string&quot;==typeof t.text&amp;&amp;t.position&amp;&amp;t.position.length&gt;2){for(var s=Array(.5*t.position.length),h=0;h&lt;s.length;h++)s[h]=t.text;t.text=s}if(null!=t.text||a){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var b=1;b&lt;t.text.length;b++)this.textOffsets[b]=this.textOffsets[b-1]+t.text[b-1].length,this.count+=t.text[b].length,this.counts.push(t.text[b].length);this.text=t.text.join(&quot;&quot;)}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];r=[],this.font.forEach((function(t,n){T.atlasContext.font=t.baseString;for(var i=e.fontAtlas[n],a=0;a&lt;e.text.length;a++){var o=e.text.charAt(a);if(null==i.ids[o]&amp;&amp;(i.ids[o]=i.chars.length,i.chars.push(o),r.push(o)),null==t.width[o]&amp;&amp;(t.width[o]=T.atlasContext.measureText(o).width/T.baseFontSize,e.kerning)){var s=[];for(var l in t.width)s.push(l+o,o+l);m(t.kerning,g(t.family,{pairs:s}))}}}))}if(t.position)if(t.position.length&gt;2){for(var w=!t.position[0].length,k=u.mallocFloat(2*this.count),M=0,A=0;M&lt;this.counts.length;M++){var S=this.counts[M];if(w)for(var E=0;E&lt;S;E++)k[A++]=t.position[2*M],k[A++]=t.position[2*M+1];else for(var C=0;C&lt;S;C++)k[A++]=t.position[M][0],k[A++]=t.position[M][1]}this.position.call?this.position({type:&quot;float&quot;,data:k}):this.position=this.regl.buffer({type:&quot;float&quot;,data:k}),u.freeFloat(k)}else this.position.destroy&amp;&amp;this.position.destroy(),this.position={constant:t.position};if(t.text||a){var L=u.mallocUint8(this.count),I=u.mallocFloat(2*this.count);this.textWidth=[];for(var P=0,z=0;P&lt;this.counts.length;P++){for(var O=this.counts[P],D=this.font[P]||this.font[0],R=this.fontAtlas[P]||this.fontAtlas[0],F=0;F&lt;O;F++){var B=this.text.charAt(z),N=this.text.charAt(z-1);if(L[z]=R.ids[B],I[2*z]=D.width[B],F){var j=I[2*z-2],U=I[2*z],V=I[2*z-1]+.5*j+.5*U;if(this.kerning){var q=D.kerning[N+B];q&amp;&amp;(V+=.001*q)}I[2*z+1]=V}else I[2*z+1]=.5*I[2*z];z++}this.textWidth.push(I.length?.5*I[2*z-2]+I[2*z-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:L,type:&quot;uint8&quot;,usage:&quot;stream&quot;}),this.sizeBuffer({data:I,type:&quot;float&quot;,usage:&quot;stream&quot;}),u.freeUint8(L),u.freeFloat(I),r.length&amp;&amp;this.font.forEach((function(t,r){var n=e.fontAtlas[r],i=n.step,a=Math.floor(T.maxAtlasSize/i),o=Math.min(a,n.chars.length),s=Math.ceil(n.chars.length/o),l=x(o*i),u=x(s*i);n.width=l,n.height=u,n.rows=s,n.cols=o,n.em&amp;&amp;n.texture({data:c({canvas:T.atlasCanvas,font:n.fontString,chars:n.chars,shape:[l,u],step:[i,i]})})}))}if(t.align&amp;&amp;(this.align=t.align,this.alignOffset=this.textWidth.map((function(t,r){var n=Array.isArray(e.align)?e.align.length&gt;1?e.align[r]:e.align[0]:e.align;if(&quot;number&quot;==typeof n)return n;switch(n){case&quot;right&quot;:case&quot;end&quot;:return-t;case&quot;center&quot;:case&quot;centre&quot;:case&quot;middle&quot;:return.5*-t}return 0}))),null==this.baseline&amp;&amp;null==t.baseline&amp;&amp;(t.baseline=0),null!=t.baseline&amp;&amp;(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map((function(t,r){var n=(e.font[r]||e.font[0]).metrics,i=0;return i+=.5*n.bottom,i+=&quot;number&quot;==typeof t?t-n.baseline:-n[t],T.normalViewport||(i*=-1),i}))),null!=t.color)if(t.color||(t.color=&quot;transparent&quot;),&quot;string&quot;!=typeof t.color&amp;&amp;isNaN(t.color)){var H;if(&quot;number&quot;==typeof t.color[0]&amp;&amp;t.color.length&gt;this.counts.length){var G=t.color.length;H=u.mallocUint8(G);for(var Y=(t.color.subarray||t.color.slice).bind(t.color),W=0;W&lt;G;W+=4)H.set(l(Y(W,W+4),&quot;uint8&quot;),W)}else{var X=t.color.length;H=u.mallocUint8(4*X);for(var Z=0;Z&lt;X;Z++)H.set(l(t.color[Z]||0,&quot;uint8&quot;),4*Z)}this.color=H}else this.color=l(t.color,&quot;uint8&quot;);if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity)if(this.color.length&gt;4||this.baselineOffset.length&gt;1||this.align&amp;&amp;this.align.length&gt;1||this.fontAtlas.length&gt;1||this.positionOffset.length&gt;2){var J=Math.max(.5*this.position.length||0,.25*this.color.length||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,.5*this.positionOffset.length||0);this.batch=Array(J);for(var K=0;K&lt;this.batch.length;K++)this.batch[K]={count:this.counts.length&gt;1?this.counts[K]:this.counts[0],offset:this.textOffsets.length&gt;1?this.textOffsets[K]:this.textOffsets[0],color:this.color?this.color.length&lt;=4?this.color:this.color.subarray(4*K,4*K+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[K]:this.opacity,baseline:null!=this.baselineOffset[K]?this.baselineOffset[K]:this.baselineOffset[0],align:this.align?null!=this.alignOffset[K]?this.alignOffset[K]:this.alignOffset[0]:0,atlas:this.fontAtlas[K]||this.fontAtlas[0],positionOffset:this.positionOffset.length&gt;2?this.positionOffset.subarray(2*K,2*K+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]},T.prototype.destroy=function(){},T.prototype.kerning=!0,T.prototype.position={constant:new Float32Array(2)},T.prototype.translate=null,T.prototype.scale=null,T.prototype.font=null,T.prototype.text=&quot;&quot;,T.prototype.positionOffset=[0,0],T.prototype.opacity=1,T.prototype.color=new Uint8Array([0,0,0,255]),T.prototype.alignOffset=[0,0],T.normalViewport=!1,T.maxAtlasSize=1024,T.atlasCanvas=document.createElement(&quot;canvas&quot;),T.atlasContext=T.atlasCanvas.getContext(&quot;2d&quot;,{alpha:!1}),T.baseFontSize=64,T.fonts={},e.exports=T},{&quot;bit-twiddle&quot;:97,&quot;color-normalize&quot;:125,&quot;css-font&quot;:144,&quot;detect-kerning&quot;:172,&quot;es6-weak-map&quot;:233,&quot;flatten-vertex-data&quot;:244,&quot;font-atlas&quot;:245,&quot;font-measure&quot;:246,&quot;gl-util/context&quot;:354,&quot;is-plain-obj&quot;:469,&quot;object-assign&quot;:499,&quot;parse-rect&quot;:504,&quot;parse-unit&quot;:506,&quot;pick-by-alias&quot;:511,regl:540,&quot;to-px&quot;:578,&quot;typedarray-pool&quot;:595}],353:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ndarray&quot;),i=t(&quot;ndarray-ops&quot;),a=t(&quot;typedarray-pool&quot;);e.exports=function(t){if(arguments.length&lt;=1)throw new Error(&quot;gl-texture2d: Missing arguments for texture2d constructor&quot;);o||c(t);if(&quot;number&quot;==typeof arguments[1])return v(t,arguments[1],arguments[2],arguments[3]||t.RGBA,arguments[4]||t.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return v(t,0|arguments[1][0],0|arguments[1][1],arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(&quot;object&quot;==typeof arguments[1]){var e=arguments[1],r=u(e)?e:e.raw;if(r)return y(t,r,0|e.width,0|e.height,arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(e.shape&amp;&amp;e.data&amp;&amp;e.stride)return x(t,e)}throw new Error(&quot;gl-texture2d: Invalid arguments for texture2d constructor&quot;)};var o=null,s=null,l=null;function c(t){o=[t.LINEAR,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_NEAREST],s=[t.NEAREST,t.LINEAR,t.NEAREST_MIPMAP_NEAREST,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_LINEAR],l=[t.REPEAT,t.CLAMP_TO_EDGE,t.MIRRORED_REPEAT]}function u(t){return&quot;undefined&quot;!=typeof HTMLCanvasElement&amp;&amp;t instanceof HTMLCanvasElement||&quot;undefined&quot;!=typeof HTMLImageElement&amp;&amp;t instanceof HTMLImageElement||&quot;undefined&quot;!=typeof HTMLVideoElement&amp;&amp;t instanceof HTMLVideoElement||&quot;undefined&quot;!=typeof ImageData&amp;&amp;t instanceof ImageData}var f=function(t,e){i.muls(t,e,255)};function h(t,e,r){var n=t.gl,i=n.getParameter(n.MAX_TEXTURE_SIZE);if(e&lt;0||e&gt;i||r&lt;0||r&gt;i)throw new Error(&quot;gl-texture2d: Invalid texture size&quot;);return t._shape=[e,r],t.bind(),n.texImage2D(n.TEXTURE_2D,0,t.format,e,r,0,t.format,t.type,null),t._mipLevels=[0],t}function p(t,e,r,n,i,a){this.gl=t,this.handle=e,this.format=i,this.type=a,this._shape=[r,n],this._mipLevels=[0],this._magFilter=t.NEAREST,this._minFilter=t.NEAREST,this._wrapS=t.CLAMP_TO_EDGE,this._wrapT=t.CLAMP_TO_EDGE,this._anisoSamples=1;var o=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return o._wrapS},set:function(t){return o.wrapS=t}},{get:function(){return o._wrapT},set:function(t){return o.wrapT=t}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return o._shape[0]},set:function(t){return o.width=t}},{get:function(){return o._shape[1]},set:function(t){return o.height=t}}]),this._shapeVector=l}var d=p.prototype;function g(t,e){return 3===t.length?1===e[2]&amp;&amp;e[1]===t[0]*t[2]&amp;&amp;e[0]===t[2]:1===e[0]&amp;&amp;e[1]===t[0]}function m(t){var e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),e}function v(t,e,r,n,i){var a=t.getParameter(t.MAX_TEXTURE_SIZE);if(e&lt;0||e&gt;a||r&lt;0||r&gt;a)throw new Error(&quot;gl-texture2d: Invalid texture shape&quot;);if(i===t.FLOAT&amp;&amp;!t.getExtension(&quot;OES_texture_float&quot;))throw new Error(&quot;gl-texture2d: Floating point textures not supported on this platform&quot;);var o=m(t);return t.texImage2D(t.TEXTURE_2D,0,n,e,r,0,n,i,null),new p(t,o,e,r,n,i)}function y(t,e,r,n,i,a){var o=m(t);return t.texImage2D(t.TEXTURE_2D,0,i,i,a,e),new p(t,o,r,n,i,a)}function x(t,e){var r=e.dtype,o=e.shape.slice(),s=t.getParameter(t.MAX_TEXTURE_SIZE);if(o[0]&lt;0||o[0]&gt;s||o[1]&lt;0||o[1]&gt;s)throw new Error(&quot;gl-texture2d: Invalid texture size&quot;);var l=g(o,e.stride.slice()),c=0;&quot;float32&quot;===r?c=t.FLOAT:&quot;float64&quot;===r?(c=t.FLOAT,l=!1,r=&quot;float32&quot;):&quot;uint8&quot;===r?c=t.UNSIGNED_BYTE:(c=t.UNSIGNED_BYTE,l=!1,r=&quot;uint8&quot;);var u,h,d=0;if(2===o.length)d=t.LUMINANCE,o=[o[0],o[1],1],e=n(e.data,o,[e.stride[0],e.stride[1],1],e.offset);else{if(3!==o.length)throw new Error(&quot;gl-texture2d: Invalid shape for texture&quot;);if(1===o[2])d=t.ALPHA;else if(2===o[2])d=t.LUMINANCE_ALPHA;else if(3===o[2])d=t.RGB;else{if(4!==o[2])throw new Error(&quot;gl-texture2d: Invalid shape for pixel coords&quot;);d=t.RGBA}}c!==t.FLOAT||t.getExtension(&quot;OES_texture_float&quot;)||(c=t.UNSIGNED_BYTE,l=!1);var v=e.size;if(l)u=0===e.offset&amp;&amp;e.data.length===v?e.data:e.data.subarray(e.offset,e.offset+v);else{var y=[o[2],o[2]*o[0],1];h=a.malloc(v,r);var x=n(h,o,y,0);&quot;float32&quot;!==r&amp;&amp;&quot;float64&quot;!==r||c!==t.UNSIGNED_BYTE?i.assign(x,e):f(x,e),u=h.subarray(0,v)}var b=m(t);return t.texImage2D(t.TEXTURE_2D,0,d,o[0],o[1],0,d,c,u),l||a.free(h),new p(t,b,o[0],o[1],d,c)}Object.defineProperties(d,{minFilter:{get:function(){return this._minFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&amp;&amp;o.indexOf(t)&gt;=0&amp;&amp;(e.getExtension(&quot;OES_texture_float_linear&quot;)||(t=e.NEAREST)),s.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown filter mode &quot;+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t),this._minFilter=t}},magFilter:{get:function(){return this._magFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&amp;&amp;o.indexOf(t)&gt;=0&amp;&amp;(e.getExtension(&quot;OES_texture_float_linear&quot;)||(t=e.NEAREST)),s.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown filter mode &quot;+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t),this._magFilter=t}},mipSamples:{get:function(){return this._anisoSamples},set:function(t){var e=this._anisoSamples;if(this._anisoSamples=0|Math.max(t,1),e!==this._anisoSamples){var r=this.gl.getExtension(&quot;EXT_texture_filter_anisotropic&quot;);r&amp;&amp;this.gl.texParameterf(this.gl.TEXTURE_2D,r.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(t){if(this.bind(),l.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,t),this._wrapS=t}},wrapT:{get:function(){return this._wrapT},set:function(t){if(this.bind(),l.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,t),this._wrapT=t}},wrap:{get:function(){return this._wrapVector},set:function(t){if(Array.isArray(t)||(t=[t,t]),2!==t.length)throw new Error(&quot;gl-texture2d: Must specify wrap mode for rows and columns&quot;);for(var e=0;e&lt;2;++e)if(l.indexOf(t[e])&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);this._wrapS=t[0],this._wrapT=t[1];var r=this.gl;return this.bind(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,this._wrapS),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,this._wrapT),t}},shape:{get:function(){return this._shapeVector},set:function(t){if(Array.isArray(t)){if(2!==t.length)throw new Error(&quot;gl-texture2d: Invalid texture shape&quot;)}else t=[0|t,0|t];return h(this,0|t[0],0|t[1]),[0|t[0],0|t[1]]}},width:{get:function(){return this._shape[0]},set:function(t){return h(this,t|=0,this._shape[1]),t}},height:{get:function(){return this._shape[1]},set:function(t){return t|=0,h(this,this._shape[0],t),t}}}),d.bind=function(t){var e=this.gl;return void 0!==t&amp;&amp;e.activeTexture(e.TEXTURE0+(0|t)),e.bindTexture(e.TEXTURE_2D,this.handle),void 0!==t?0|t:e.getParameter(e.ACTIVE_TEXTURE)-e.TEXTURE0},d.dispose=function(){this.gl.deleteTexture(this.handle)},d.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var t=Math.min(this._shape[0],this._shape[1]),e=0;t&gt;0;++e,t&gt;&gt;&gt;=1)this._mipLevels.indexOf(e)&lt;0&amp;&amp;this._mipLevels.push(e)},d.setPixels=function(t,e,r,o){var s=this.gl;this.bind(),Array.isArray(e)?(o=r,r=0|e[1],e=0|e[0]):(e=e||0,r=r||0),o=o||0;var l=u(t)?t:t.raw;if(l){this._mipLevels.indexOf(o)&lt;0?(s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,this.type,l),this._mipLevels.push(o)):s.texSubImage2D(s.TEXTURE_2D,o,e,r,this.format,this.type,l)}else{if(!(t.shape&amp;&amp;t.stride&amp;&amp;t.data))throw new Error(&quot;gl-texture2d: Unsupported data type&quot;);if(t.shape.length&lt;2||e+t.shape[1]&gt;this._shape[1]&gt;&gt;&gt;o||r+t.shape[0]&gt;this._shape[0]&gt;&gt;&gt;o||e&lt;0||r&lt;0)throw new Error(&quot;gl-texture2d: Texture dimensions are out of bounds&quot;);!function(t,e,r,o,s,l,c,u){var h=u.dtype,p=u.shape.slice();if(p.length&lt;2||p.length&gt;3)throw new Error(&quot;gl-texture2d: Invalid ndarray, must be 2d or 3d&quot;);var d=0,m=0,v=g(p,u.stride.slice());&quot;float32&quot;===h?d=t.FLOAT:&quot;float64&quot;===h?(d=t.FLOAT,v=!1,h=&quot;float32&quot;):&quot;uint8&quot;===h?d=t.UNSIGNED_BYTE:(d=t.UNSIGNED_BYTE,v=!1,h=&quot;uint8&quot;);if(2===p.length)m=t.LUMINANCE,p=[p[0],p[1],1],u=n(u.data,p,[u.stride[0],u.stride[1],1],u.offset);else{if(3!==p.length)throw new Error(&quot;gl-texture2d: Invalid shape for texture&quot;);if(1===p[2])m=t.ALPHA;else if(2===p[2])m=t.LUMINANCE_ALPHA;else if(3===p[2])m=t.RGB;else{if(4!==p[2])throw new Error(&quot;gl-texture2d: Invalid shape for pixel coords&quot;);m=t.RGBA}p[2]}m!==t.LUMINANCE&amp;&amp;m!==t.ALPHA||s!==t.LUMINANCE&amp;&amp;s!==t.ALPHA||(m=s);if(m!==s)throw new Error(&quot;gl-texture2d: Incompatible texture format for setPixels&quot;);var y=u.size,x=c.indexOf(o)&lt;0;x&amp;&amp;c.push(o);if(d===l&amp;&amp;v)0===u.offset&amp;&amp;u.data.length===y?x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data):x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data.subarray(u.offset,u.offset+y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data.subarray(u.offset,u.offset+y));else{var b;b=l===t.FLOAT?a.mallocFloat32(y):a.mallocUint8(y);var _=n(b,p,[p[2],p[2]*p[0],1]);d===t.FLOAT&amp;&amp;l===t.UNSIGNED_BYTE?f(_,u):i.assign(_,u),x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,b.subarray(0,y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,b.subarray(0,y)),l===t.FLOAT?a.freeFloat32(b):a.freeUint8(b)}}(s,e,r,o,this.format,this.type,this._mipLevels,t)}}},{ndarray:495,&quot;ndarray-ops&quot;:490,&quot;typedarray-pool&quot;:595}],354:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;);function i(t){if(t.container)if(t.container==document.body)document.body.style.width||(t.canvas.width=t.width||t.pixelRatio*r.innerWidth),document.body.style.height||(t.canvas.height=t.height||t.pixelRatio*r.innerHeight);else{var e=t.container.getBoundingClientRect();t.canvas.width=t.width||e.right-e.left,t.canvas.height=t.height||e.bottom-e.top}}function a(t){return&quot;function&quot;==typeof t.getContext&amp;&amp;&quot;width&quot;in t&amp;&amp;&quot;height&quot;in t}function o(){var t=document.createElement(&quot;canvas&quot;);return t.style.position=&quot;absolute&quot;,t.style.top=0,t.style.left=0,t}e.exports=function(t){var e;if(t?&quot;string&quot;==typeof t&amp;&amp;(t={container:t}):t={},a(t)?t={container:t}:t=&quot;string&quot;==typeof(e=t).nodeName&amp;&amp;&quot;function&quot;==typeof e.appendChild&amp;&amp;&quot;function&quot;==typeof e.getBoundingClientRect?{container:t}:function(t){return&quot;function&quot;==typeof t.drawArrays||&quot;function&quot;==typeof t.drawElements}(t)?{gl:t}:n(t,{container:&quot;container target element el canvas holder parent parentNode wrapper use ref root node&quot;,gl:&quot;gl context webgl glContext&quot;,attrs:&quot;attributes attrs contextAttributes&quot;,pixelRatio:&quot;pixelRatio pxRatio px ratio pxratio pixelratio&quot;,width:&quot;w width&quot;,height:&quot;h height&quot;},!0),t.pixelRatio||(t.pixelRatio=r.pixelRatio||1),t.gl)return t.gl;if(t.canvas&amp;&amp;(t.container=t.canvas.parentNode),t.container){if(&quot;string&quot;==typeof t.container){var s=document.querySelector(t.container);if(!s)throw Error(&quot;Element &quot;+t.container+&quot; is not found&quot;);t.container=s}a(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=o(),t.container.appendChild(t.canvas),i(t))}else if(!t.canvas){if(&quot;undefined&quot;==typeof document)throw Error(&quot;Not DOM environment. Use headless-gl.&quot;);t.container=document.body||document.documentElement,t.canvas=o(),t.container.appendChild(t.canvas),i(t)}if(!t.gl)try{t.gl=t.canvas.getContext(&quot;webgl&quot;,t.attrs)}catch(e){try{t.gl=t.canvas.getContext(&quot;experimental-webgl&quot;,t.attrs)}catch(e){t.gl=t.canvas.getContext(&quot;webgl-experimental&quot;,t.attrs)}}return t.gl}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;pick-by-alias&quot;:511}],355:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){e?e.bind():t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null);var n=0|t.getParameter(t.MAX_VERTEX_ATTRIBS);if(r){if(r.length&gt;n)throw new Error(&quot;gl-vao: Too many vertex attributes&quot;);for(var i=0;i&lt;r.length;++i){var a=r[i];if(a.buffer){var o=a.buffer,s=a.size||4,l=a.type||t.FLOAT,c=!!a.normalized,u=a.stride||0,f=a.offset||0;o.bind(),t.enableVertexAttribArray(i),t.vertexAttribPointer(i,s,l,c,u,f)}else{if(&quot;number&quot;==typeof a)t.vertexAttrib1f(i,a);else if(1===a.length)t.vertexAttrib1f(i,a[0]);else if(2===a.length)t.vertexAttrib2f(i,a[0],a[1]);else if(3===a.length)t.vertexAttrib3f(i,a[0],a[1],a[2]);else{if(4!==a.length)throw new Error(&quot;gl-vao: Invalid vertex attribute&quot;);t.vertexAttrib4f(i,a[0],a[1],a[2],a[3])}t.disableVertexAttribArray(i)}}for(;i&lt;n;++i)t.disableVertexAttribArray(i)}else{t.bindBuffer(t.ARRAY_BUFFER,null);for(i=0;i&lt;n;++i)t.disableVertexAttribArray(i)}}},{}],356:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./do-bind.js&quot;);function i(t){this.gl=t,this._elements=null,this._attributes=null,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(){n(this.gl,this._elements,this._attributes)},i.prototype.update=function(t,e,r){this._elements=e,this._attributes=t,this._elementsType=r||this.gl.UNSIGNED_SHORT},i.prototype.dispose=function(){},i.prototype.unbind=function(){},i.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._elements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t){return new i(t)}},{&quot;./do-bind.js&quot;:355}],357:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./do-bind.js&quot;);function i(t,e,r,n,i,a){this.location=t,this.dimension=e,this.a=r,this.b=n,this.c=i,this.d=a}function a(t,e,r){this.gl=t,this._ext=e,this.handle=r,this._attribs=[],this._useElements=!1,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(t){switch(this.dimension){case 1:t.vertexAttrib1f(this.location,this.a);break;case 2:t.vertexAttrib2f(this.location,this.a,this.b);break;case 3:t.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:t.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d)}},a.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var t=0;t&lt;this._attribs.length;++t)this._attribs[t].bind(this.gl)},a.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},a.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},a.prototype.update=function(t,e,r){if(this.bind(),n(this.gl,e,t),this.unbind(),this._attribs.length=0,t)for(var a=0;a&lt;t.length;++a){var o=t[a];&quot;number&quot;==typeof o?this._attribs.push(new i(a,1,o)):Array.isArray(o)&amp;&amp;this._attribs.push(new i(a,o.length,o[0],o[1],o[2],o[3]))}this._useElements=!!e,this._elementsType=r||this.gl.UNSIGNED_SHORT},a.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._useElements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t,e){return new a(t,e,e.createVertexArrayOES())}},{&quot;./do-bind.js&quot;:355}],358:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/vao-native.js&quot;),i=t(&quot;./lib/vao-emulated.js&quot;);function a(t){this.bindVertexArrayOES=t.bindVertexArray.bind(t),this.createVertexArrayOES=t.createVertexArray.bind(t),this.deleteVertexArrayOES=t.deleteVertexArray.bind(t)}e.exports=function(t,e,r,o){var s,l=t.createVertexArray?new a(t):t.getExtension(&quot;OES_vertex_array_object&quot;);return(s=l?n(t,l):i(t)).update(e,r,o),s}},{&quot;./lib/vao-emulated.js&quot;:356,&quot;./lib/vao-native.js&quot;:357}],359:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}},{}],360:[function(t,e,r){e.exports=function(t,e){var r=n(t[0],t[1],t[2]),o=n(e[0],e[1],e[2]);i(r,r),i(o,o);var s=a(r,o);return s&gt;1?0:Math.acos(s)};var n=t(&quot;./fromValues&quot;),i=t(&quot;./normalize&quot;),a=t(&quot;./dot&quot;)},{&quot;./dot&quot;:370,&quot;./fromValues&quot;:376,&quot;./normalize&quot;:387}],361:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}},{}],362:[function(t,e,r){e.exports=function(t){var e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}},{}],363:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},{}],364:[function(t,e,r){e.exports=function(){var t=new Float32Array(3);return t[0]=0,t[1]=0,t[2]=0,t}},{}],365:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t}},{}],366:[function(t,e,r){e.exports=t(&quot;./distance&quot;)},{&quot;./distance&quot;:367}],367:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}},{}],368:[function(t,e,r){e.exports=t(&quot;./divide&quot;)},{&quot;./divide&quot;:369}],369:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}},{}],370:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}},{}],371:[function(t,e,r){e.exports=1e-6},{}],372:[function(t,e,r){e.exports=function(t,e){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(r-o)&lt;=n*Math.max(1,Math.abs(r),Math.abs(o))&amp;&amp;Math.abs(i-s)&lt;=n*Math.max(1,Math.abs(i),Math.abs(s))&amp;&amp;Math.abs(a-l)&lt;=n*Math.max(1,Math.abs(a),Math.abs(l))};var n=t(&quot;./epsilon&quot;)},{&quot;./epsilon&quot;:371}],373:[function(t,e,r){e.exports=function(t,e){return t[0]===e[0]&amp;&amp;t[1]===e[1]&amp;&amp;t[2]===e[2]}},{}],374:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}},{}],375:[function(t,e,r){e.exports=function(t,e,r,i,a,o){var s,l;e||(e=3);r||(r=0);l=i?Math.min(i*e+r,t.length):t.length;for(s=r;s&lt;l;s+=e)n[0]=t[s],n[1]=t[s+1],n[2]=t[s+2],a(n,n,o),t[s]=n[0],t[s+1]=n[1],t[s+2]=n[2];return t};var n=t(&quot;./create&quot;)()},{&quot;./create&quot;:364}],376:[function(t,e,r){e.exports=function(t,e,r){var n=new Float32Array(3);return n[0]=t,n[1]=e,n[2]=r,n}},{}],377:[function(t,e,r){e.exports={EPSILON:t(&quot;./epsilon&quot;),create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),angle:t(&quot;./angle&quot;),fromValues:t(&quot;./fromValues&quot;),copy:t(&quot;./copy&quot;),set:t(&quot;./set&quot;),equals:t(&quot;./equals&quot;),exactEquals:t(&quot;./exactEquals&quot;),add:t(&quot;./add&quot;),subtract:t(&quot;./subtract&quot;),sub:t(&quot;./sub&quot;),multiply:t(&quot;./multiply&quot;),mul:t(&quot;./mul&quot;),divide:t(&quot;./divide&quot;),div:t(&quot;./div&quot;),min:t(&quot;./min&quot;),max:t(&quot;./max&quot;),floor:t(&quot;./floor&quot;),ceil:t(&quot;./ceil&quot;),round:t(&quot;./round&quot;),scale:t(&quot;./scale&quot;),scaleAndAdd:t(&quot;./scaleAndAdd&quot;),distance:t(&quot;./distance&quot;),dist:t(&quot;./dist&quot;),squaredDistance:t(&quot;./squaredDistance&quot;),sqrDist:t(&quot;./sqrDist&quot;),length:t(&quot;./length&quot;),len:t(&quot;./len&quot;),squaredLength:t(&quot;./squaredLength&quot;),sqrLen:t(&quot;./sqrLen&quot;),negate:t(&quot;./negate&quot;),inverse:t(&quot;./inverse&quot;),normalize:t(&quot;./normalize&quot;),dot:t(&quot;./dot&quot;),cross:t(&quot;./cross&quot;),lerp:t(&quot;./lerp&quot;),random:t(&quot;./random&quot;),transformMat4:t(&quot;./transformMat4&quot;),transformMat3:t(&quot;./transformMat3&quot;),transformQuat:t(&quot;./transformQuat&quot;),rotateX:t(&quot;./rotateX&quot;),rotateY:t(&quot;./rotateY&quot;),rotateZ:t(&quot;./rotateZ&quot;),forEach:t(&quot;./forEach&quot;)}},{&quot;./add&quot;:359,&quot;./angle&quot;:360,&quot;./ceil&quot;:361,&quot;./clone&quot;:362,&quot;./copy&quot;:363,&quot;./create&quot;:364,&quot;./cross&quot;:365,&quot;./dist&quot;:366,&quot;./distance&quot;:367,&quot;./div&quot;:368,&quot;./divide&quot;:369,&quot;./dot&quot;:370,&quot;./epsilon&quot;:371,&quot;./equals&quot;:372,&quot;./exactEquals&quot;:373,&quot;./floor&quot;:374,&quot;./forEach&quot;:375,&quot;./fromValues&quot;:376,&quot;./inverse&quot;:378,&quot;./len&quot;:379,&quot;./length&quot;:380,&quot;./lerp&quot;:381,&quot;./max&quot;:382,&quot;./min&quot;:383,&quot;./mul&quot;:384,&quot;./multiply&quot;:385,&quot;./negate&quot;:386,&quot;./normalize&quot;:387,&quot;./random&quot;:388,&quot;./rotateX&quot;:389,&quot;./rotateY&quot;:390,&quot;./rotateZ&quot;:391,&quot;./round&quot;:392,&quot;./scale&quot;:393,&quot;./scaleAndAdd&quot;:394,&quot;./set&quot;:395,&quot;./sqrDist&quot;:396,&quot;./sqrLen&quot;:397,&quot;./squaredDistance&quot;:398,&quot;./squaredLength&quot;:399,&quot;./sub&quot;:400,&quot;./subtract&quot;:401,&quot;./transformMat3&quot;:402,&quot;./transformMat4&quot;:403,&quot;./transformQuat&quot;:404}],378:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}},{}],379:[function(t,e,r){e.exports=t(&quot;./length&quot;)},{&quot;./length&quot;:380}],380:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}},{}],381:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t}},{}],382:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}},{}],383:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}},{}],384:[function(t,e,r){e.exports=t(&quot;./multiply&quot;)},{&quot;./multiply&quot;:385}],385:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}},{}],386:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}},{}],387:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;a&gt;0&amp;&amp;(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a);return t}},{}],388:[function(t,e,r){e.exports=function(t,e){e=e||1;var r=2*Math.random()*Math.PI,n=2*Math.random()-1,i=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=n*e,t}},{}],389:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[1],a=r[2],o=e[1]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=e[0],t[1]=i+o*c-s*l,t[2]=a+o*l+s*c,t}},{}],390:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[2],o=e[0]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+s*l+o*c,t[1]=e[1],t[2]=a+s*c-o*l,t}},{}],391:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[1],o=e[0]-i,s=e[1]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+o*c-s*l,t[1]=a+o*l+s*c,t[2]=e[2],t}},{}],392:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}},{}],393:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}},{}],394:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}},{}],395:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}},{}],396:[function(t,e,r){e.exports=t(&quot;./squaredDistance&quot;)},{&quot;./squaredDistance&quot;:398}],397:[function(t,e,r){e.exports=t(&quot;./squaredLength&quot;)},{&quot;./squaredLength&quot;:399}],398:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}},{}],399:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}},{}],400:[function(t,e,r){e.exports=t(&quot;./subtract&quot;)},{&quot;./subtract&quot;:401}],401:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}},{}],402:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t}},{}],403:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,t[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,t[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,t}},{}],404:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t}},{}],405:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}},{}],406:[function(t,e,r){e.exports=function(t){var e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}},{}],407:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},{}],408:[function(t,e,r){e.exports=function(){var t=new Float32Array(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}},{}],409:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(r*r+n*n+i*i+a*a)}},{}],410:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}},{}],411:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}},{}],412:[function(t,e,r){e.exports=function(t,e,r,n){var i=new Float32Array(4);return i[0]=t,i[1]=e,i[2]=r,i[3]=n,i}},{}],413:[function(t,e,r){e.exports={create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),fromValues:t(&quot;./fromValues&quot;),copy:t(&quot;./copy&quot;),set:t(&quot;./set&quot;),add:t(&quot;./add&quot;),subtract:t(&quot;./subtract&quot;),multiply:t(&quot;./multiply&quot;),divide:t(&quot;./divide&quot;),min:t(&quot;./min&quot;),max:t(&quot;./max&quot;),scale:t(&quot;./scale&quot;),scaleAndAdd:t(&quot;./scaleAndAdd&quot;),distance:t(&quot;./distance&quot;),squaredDistance:t(&quot;./squaredDistance&quot;),length:t(&quot;./length&quot;),squaredLength:t(&quot;./squaredLength&quot;),negate:t(&quot;./negate&quot;),inverse:t(&quot;./inverse&quot;),normalize:t(&quot;./normalize&quot;),dot:t(&quot;./dot&quot;),lerp:t(&quot;./lerp&quot;),random:t(&quot;./random&quot;),transformMat4:t(&quot;./transformMat4&quot;),transformQuat:t(&quot;./transformQuat&quot;)}},{&quot;./add&quot;:405,&quot;./clone&quot;:406,&quot;./copy&quot;:407,&quot;./create&quot;:408,&quot;./distance&quot;:409,&quot;./divide&quot;:410,&quot;./dot&quot;:411,&quot;./fromValues&quot;:412,&quot;./inverse&quot;:414,&quot;./length&quot;:415,&quot;./lerp&quot;:416,&quot;./max&quot;:417,&quot;./min&quot;:418,&quot;./multiply&quot;:419,&quot;./negate&quot;:420,&quot;./normalize&quot;:421,&quot;./random&quot;:422,&quot;./scale&quot;:423,&quot;./scaleAndAdd&quot;:424,&quot;./set&quot;:425,&quot;./squaredDistance&quot;:426,&quot;./squaredLength&quot;:427,&quot;./subtract&quot;:428,&quot;./transformMat4&quot;:429,&quot;./transformQuat&quot;:430}],414:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}},{}],415:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return Math.sqrt(e*e+r*r+n*n+i*i)}},{}],416:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t}},{}],417:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}},{}],418:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}},{}],419:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}},{}],420:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}},{}],421:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a;o&gt;0&amp;&amp;(o=1/Math.sqrt(o),t[0]=r*o,t[1]=n*o,t[2]=i*o,t[3]=a*o);return t}},{}],422:[function(t,e,r){var n=t(&quot;./normalize&quot;),i=t(&quot;./scale&quot;);e.exports=function(t,e){return e=e||1,t[0]=Math.random(),t[1]=Math.random(),t[2]=Math.random(),t[3]=Math.random(),n(t,t),i(t,t,e),t}},{&quot;./normalize&quot;:421,&quot;./scale&quot;:423}],423:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}},{}],424:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t}},{}],425:[function(t,e,r){e.exports=function(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}},{}],426:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return r*r+n*n+i*i+a*a}},{}],427:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+i*i}},{}],428:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}},{}],429:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}},{}],430:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t[3]=e[3],t}},{}],431:[function(t,e,r){var n=t(&quot;glsl-tokenizer&quot;),i=t(&quot;atob-lite&quot;);e.exports=function(t){for(var e=Array.isArray(t)?t:n(t),r=0;r&lt;e.length;r++){var a=e[r];if(&quot;preprocessor&quot;===a.type){var o=a.data.match(/\#define\s+SHADER_NAME(_B64)?\s+(.+)$/);if(o&amp;&amp;o[2]){var s=o[1],l=o[2];return(s?i(l):l).trim()}}}}},{&quot;atob-lite&quot;:77,&quot;glsl-tokenizer&quot;:438}],432:[function(t,e,r){e.exports=function(t){var e,r,c,u=0,f=0,h=999,p=[],d=[],g=1,m=0,v=0,y=!1,x=!1,b=&quot;&quot;,_=a,w=n;&quot;300 es&quot;===(t=t||{}).version&amp;&amp;(_=s,w=o);var T={},k={};for(u=0;u&lt;_.length;u++)T[_[u]]=!0;for(u=0;u&lt;w.length;u++)k[w[u]]=!0;return function(t){return d=[],null!==t?function(t){u=0,t.toString&amp;&amp;(t=t.toString());var r;b+=t.replace(/\r\n/g,&quot;\n&quot;),c=b.length;for(;e=b[u],u&lt;c;){switch(r=u,h){case 0:u=C();break;case 1:case 2:u=E();break;case 3:u=L();break;case 4:u=z();break;case 11:u=P();break;case 5:u=O();break;case 9999:u=D();break;case 9:u=S();break;case 999:u=A()}if(r!==u)switch(b[r]){case&quot;\n&quot;:m=0,++g;break;default:++m}}return f+=u,b=b.slice(u),d}(t):function(t){p.length&amp;&amp;M(p.join(&quot;&quot;));return h=10,M(&quot;(eof)&quot;),d}()};function M(t){t.length&amp;&amp;d.push({type:l[h],data:t,position:v,line:g,column:m})}function A(){return p=p.length?[]:p,&quot;/&quot;===r&amp;&amp;&quot;*&quot;===e?(v=f+u-1,h=0,r=e,u+1):&quot;/&quot;===r&amp;&amp;&quot;/&quot;===e?(v=f+u-1,h=1,r=e,u+1):&quot;#&quot;===e?(h=2,v=f+u,u):/\s/.test(e)?(h=9,v=f+u,u):(y=/\d/.test(e),x=/[^\w_]/.test(e),v=f+u,h=y?4:x?3:9999,u)}function S(){return/[^\s]/g.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function E(){return&quot;\r&quot;!==e&amp;&amp;&quot;\n&quot;!==e||&quot;\\&quot;===r?(p.push(e),r=e,u+1):(M(p.join(&quot;&quot;)),h=999,u)}function C(){return&quot;/&quot;===e&amp;&amp;&quot;*&quot;===r?(p.push(e),M(p.join(&quot;&quot;)),h=999,u+1):(p.push(e),r=e,u+1)}function L(){if(&quot;.&quot;===r&amp;&amp;/\d/.test(e))return h=5,u;if(&quot;/&quot;===r&amp;&amp;&quot;*&quot;===e)return h=0,u;if(&quot;/&quot;===r&amp;&amp;&quot;/&quot;===e)return h=1,u;if(&quot;.&quot;===e&amp;&amp;p.length){for(;I(p););return h=5,u}if(&quot;;&quot;===e||&quot;)&quot;===e||&quot;(&quot;===e){if(p.length)for(;I(p););return M(e),h=999,u+1}var t=2===p.length&amp;&amp;&quot;=&quot;!==e;if(/[\w_\d\s]/.test(e)||t){for(;I(p););return h=999,u}return p.push(e),r=e,u+1}function I(t){for(var e,r,n=0;;){if(e=i.indexOf(t.slice(0,t.length+n).join(&quot;&quot;)),r=i[e],-1===e){if(n--+t.length&gt;0)continue;r=t.slice(0,1).join(&quot;&quot;)}return M(r),v+=r.length,(p=p.slice(r.length)).length}}function P(){return/[^a-fA-F0-9]/.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function z(){return&quot;.&quot;===e||/[eE]/.test(e)?(p.push(e),h=5,r=e,u+1):&quot;x&quot;===e&amp;&amp;1===p.length&amp;&amp;&quot;0&quot;===p[0]?(h=11,p.push(e),r=e,u+1):/[^\d]/.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function O(){return&quot;f&quot;===e&amp;&amp;(p.push(e),r=e,u+=1),/[eE]/.test(e)?(p.push(e),r=e,u+1):(&quot;-&quot;!==e&amp;&amp;&quot;+&quot;!==e||!/[eE]/.test(r))&amp;&amp;/[^\d]/.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function D(){if(/[^\d\w_]/.test(e)){var t=p.join(&quot;&quot;);return h=k[t]?8:T[t]?7:6,M(p.join(&quot;&quot;)),h=999,u}return p.push(e),r=e,u+1}};var n=t(&quot;./lib/literals&quot;),i=t(&quot;./lib/operators&quot;),a=t(&quot;./lib/builtins&quot;),o=t(&quot;./lib/literals-300es&quot;),s=t(&quot;./lib/builtins-300es&quot;),l=[&quot;block-comment&quot;,&quot;line-comment&quot;,&quot;preprocessor&quot;,&quot;operator&quot;,&quot;integer&quot;,&quot;float&quot;,&quot;ident&quot;,&quot;builtin&quot;,&quot;keyword&quot;,&quot;whitespace&quot;,&quot;eof&quot;,&quot;integer&quot;]},{&quot;./lib/builtins&quot;:434,&quot;./lib/builtins-300es&quot;:433,&quot;./lib/literals&quot;:436,&quot;./lib/literals-300es&quot;:435,&quot;./lib/operators&quot;:437}],433:[function(t,e,r){var n=t(&quot;./builtins&quot;);n=n.slice().filter((function(t){return!/^(gl\_|texture)/.test(t)})),e.exports=n.concat([&quot;gl_VertexID&quot;,&quot;gl_InstanceID&quot;,&quot;gl_Position&quot;,&quot;gl_PointSize&quot;,&quot;gl_FragCoord&quot;,&quot;gl_FrontFacing&quot;,&quot;gl_FragDepth&quot;,&quot;gl_PointCoord&quot;,&quot;gl_MaxVertexAttribs&quot;,&quot;gl_MaxVertexUniformVectors&quot;,&quot;gl_MaxVertexOutputVectors&quot;,&quot;gl_MaxFragmentInputVectors&quot;,&quot;gl_MaxVertexTextureImageUnits&quot;,&quot;gl_MaxCombinedTextureImageUnits&quot;,&quot;gl_MaxTextureImageUnits&quot;,&quot;gl_MaxFragmentUniformVectors&quot;,&quot;gl_MaxDrawBuffers&quot;,&quot;gl_MinProgramTexelOffset&quot;,&quot;gl_MaxProgramTexelOffset&quot;,&quot;gl_DepthRangeParameters&quot;,&quot;gl_DepthRange&quot;,&quot;trunc&quot;,&quot;round&quot;,&quot;roundEven&quot;,&quot;isnan&quot;,&quot;isinf&quot;,&quot;floatBitsToInt&quot;,&quot;floatBitsToUint&quot;,&quot;intBitsToFloat&quot;,&quot;uintBitsToFloat&quot;,&quot;packSnorm2x16&quot;,&quot;unpackSnorm2x16&quot;,&quot;packUnorm2x16&quot;,&quot;unpackUnorm2x16&quot;,&quot;packHalf2x16&quot;,&quot;unpackHalf2x16&quot;,&quot;outerProduct&quot;,&quot;transpose&quot;,&quot;determinant&quot;,&quot;inverse&quot;,&quot;texture&quot;,&quot;textureSize&quot;,&quot;textureProj&quot;,&quot;textureLod&quot;,&quot;textureOffset&quot;,&quot;texelFetch&quot;,&quot;texelFetchOffset&quot;,&quot;textureProjOffset&quot;,&quot;textureLodOffset&quot;,&quot;textureProjLod&quot;,&quot;textureProjLodOffset&quot;,&quot;textureGrad&quot;,&quot;textureGradOffset&quot;,&quot;textureProjGrad&quot;,&quot;textureProjGradOffset&quot;])},{&quot;./builtins&quot;:434}],434:[function(t,e,r){e.exports=[&quot;abs&quot;,&quot;acos&quot;,&quot;all&quot;,&quot;any&quot;,&quot;asin&quot;,&quot;atan&quot;,&quot;ceil&quot;,&quot;clamp&quot;,&quot;cos&quot;,&quot;cross&quot;,&quot;dFdx&quot;,&quot;dFdy&quot;,&quot;degrees&quot;,&quot;distance&quot;,&quot;dot&quot;,&quot;equal&quot;,&quot;exp&quot;,&quot;exp2&quot;,&quot;faceforward&quot;,&quot;floor&quot;,&quot;fract&quot;,&quot;gl_BackColor&quot;,&quot;gl_BackLightModelProduct&quot;,&quot;gl_BackLightProduct&quot;,&quot;gl_BackMaterial&quot;,&quot;gl_BackSecondaryColor&quot;,&quot;gl_ClipPlane&quot;,&quot;gl_ClipVertex&quot;,&quot;gl_Color&quot;,&quot;gl_DepthRange&quot;,&quot;gl_DepthRangeParameters&quot;,&quot;gl_EyePlaneQ&quot;,&quot;gl_EyePlaneR&quot;,&quot;gl_EyePlaneS&quot;,&quot;gl_EyePlaneT&quot;,&quot;gl_Fog&quot;,&quot;gl_FogCoord&quot;,&quot;gl_FogFragCoord&quot;,&quot;gl_FogParameters&quot;,&quot;gl_FragColor&quot;,&quot;gl_FragCoord&quot;,&quot;gl_FragData&quot;,&quot;gl_FragDepth&quot;,&quot;gl_FragDepthEXT&quot;,&quot;gl_FrontColor&quot;,&quot;gl_FrontFacing&quot;,&quot;gl_FrontLightModelProduct&quot;,&quot;gl_FrontLightProduct&quot;,&quot;gl_FrontMaterial&quot;,&quot;gl_FrontSecondaryColor&quot;,&quot;gl_LightModel&quot;,&quot;gl_LightModelParameters&quot;,&quot;gl_LightModelProducts&quot;,&quot;gl_LightProducts&quot;,&quot;gl_LightSource&quot;,&quot;gl_LightSourceParameters&quot;,&quot;gl_MaterialParameters&quot;,&quot;gl_MaxClipPlanes&quot;,&quot;gl_MaxCombinedTextureImageUnits&quot;,&quot;gl_MaxDrawBuffers&quot;,&quot;gl_MaxFragmentUniformComponents&quot;,&quot;gl_MaxLights&quot;,&quot;gl_MaxTextureCoords&quot;,&quot;gl_MaxTextureImageUnits&quot;,&quot;gl_MaxTextureUnits&quot;,&quot;gl_MaxVaryingFloats&quot;,&quot;gl_MaxVertexAttribs&quot;,&quot;gl_MaxVertexTextureImageUnits&quot;,&quot;gl_MaxVertexUniformComponents&quot;,&quot;gl_ModelViewMatrix&quot;,&quot;gl_ModelViewMatrixInverse&quot;,&quot;gl_ModelViewMatrixInverseTranspose&quot;,&quot;gl_ModelViewMatrixTranspose&quot;,&quot;gl_ModelViewProjectionMatrix&quot;,&quot;gl_ModelViewProjectionMatrixInverse&quot;,&quot;gl_ModelViewProjectionMatrixInverseTranspose&quot;,&quot;gl_ModelViewProjectionMatrixTranspose&quot;,&quot;gl_MultiTexCoord0&quot;,&quot;gl_MultiTexCoord1&quot;,&quot;gl_MultiTexCoord2&quot;,&quot;gl_MultiTexCoord3&quot;,&quot;gl_MultiTexCoord4&quot;,&quot;gl_MultiTexCoord5&quot;,&quot;gl_MultiTexCoord6&quot;,&quot;gl_MultiTexCoord7&quot;,&quot;gl_Normal&quot;,&quot;gl_NormalMatrix&quot;,&quot;gl_NormalScale&quot;,&quot;gl_ObjectPlaneQ&quot;,&quot;gl_ObjectPlaneR&quot;,&quot;gl_ObjectPlaneS&quot;,&quot;gl_ObjectPlaneT&quot;,&quot;gl_Point&quot;,&quot;gl_PointCoord&quot;,&quot;gl_PointParameters&quot;,&quot;gl_PointSize&quot;,&quot;gl_Position&quot;,&quot;gl_ProjectionMatrix&quot;,&quot;gl_ProjectionMatrixInverse&quot;,&quot;gl_ProjectionMatrixInverseTranspose&quot;,&quot;gl_ProjectionMatrixTranspose&quot;,&quot;gl_SecondaryColor&quot;,&quot;gl_TexCoord&quot;,&quot;gl_TextureEnvColor&quot;,&quot;gl_TextureMatrix&quot;,&quot;gl_TextureMatrixInverse&quot;,&quot;gl_TextureMatrixInverseTranspose&quot;,&quot;gl_TextureMatrixTranspose&quot;,&quot;gl_Vertex&quot;,&quot;greaterThan&quot;,&quot;greaterThanEqual&quot;,&quot;inversesqrt&quot;,&quot;length&quot;,&quot;lessThan&quot;,&quot;lessThanEqual&quot;,&quot;log&quot;,&quot;log2&quot;,&quot;matrixCompMult&quot;,&quot;max&quot;,&quot;min&quot;,&quot;mix&quot;,&quot;mod&quot;,&quot;normalize&quot;,&quot;not&quot;,&quot;notEqual&quot;,&quot;pow&quot;,&quot;radians&quot;,&quot;reflect&quot;,&quot;refract&quot;,&quot;sign&quot;,&quot;sin&quot;,&quot;smoothstep&quot;,&quot;sqrt&quot;,&quot;step&quot;,&quot;tan&quot;,&quot;texture2D&quot;,&quot;texture2DLod&quot;,&quot;texture2DProj&quot;,&quot;texture2DProjLod&quot;,&quot;textureCube&quot;,&quot;textureCubeLod&quot;,&quot;texture2DLodEXT&quot;,&quot;texture2DProjLodEXT&quot;,&quot;textureCubeLodEXT&quot;,&quot;texture2DGradEXT&quot;,&quot;texture2DProjGradEXT&quot;,&quot;textureCubeGradEXT&quot;]},{}],435:[function(t,e,r){var n=t(&quot;./literals&quot;);e.exports=n.slice().concat([&quot;layout&quot;,&quot;centroid&quot;,&quot;smooth&quot;,&quot;case&quot;,&quot;mat2x2&quot;,&quot;mat2x3&quot;,&quot;mat2x4&quot;,&quot;mat3x2&quot;,&quot;mat3x3&quot;,&quot;mat3x4&quot;,&quot;mat4x2&quot;,&quot;mat4x3&quot;,&quot;mat4x4&quot;,&quot;uvec2&quot;,&quot;uvec3&quot;,&quot;uvec4&quot;,&quot;samplerCubeShadow&quot;,&quot;sampler2DArray&quot;,&quot;sampler2DArrayShadow&quot;,&quot;isampler2D&quot;,&quot;isampler3D&quot;,&quot;isamplerCube&quot;,&quot;isampler2DArray&quot;,&quot;usampler2D&quot;,&quot;usampler3D&quot;,&quot;usamplerCube&quot;,&quot;usampler2DArray&quot;,&quot;coherent&quot;,&quot;restrict&quot;,&quot;readonly&quot;,&quot;writeonly&quot;,&quot;resource&quot;,&quot;atomic_uint&quot;,&quot;noperspective&quot;,&quot;patch&quot;,&quot;sample&quot;,&quot;subroutine&quot;,&quot;common&quot;,&quot;partition&quot;,&quot;active&quot;,&quot;filter&quot;,&quot;image1D&quot;,&quot;image2D&quot;,&quot;image3D&quot;,&quot;imageCube&quot;,&quot;iimage1D&quot;,&quot;iimage2D&quot;,&quot;iimage3D&quot;,&quot;iimageCube&quot;,&quot;uimage1D&quot;,&quot;uimage2D&quot;,&quot;uimage3D&quot;,&quot;uimageCube&quot;,&quot;image1DArray&quot;,&quot;image2DArray&quot;,&quot;iimage1DArray&quot;,&quot;iimage2DArray&quot;,&quot;uimage1DArray&quot;,&quot;uimage2DArray&quot;,&quot;image1DShadow&quot;,&quot;image2DShadow&quot;,&quot;image1DArrayShadow&quot;,&quot;image2DArrayShadow&quot;,&quot;imageBuffer&quot;,&quot;iimageBuffer&quot;,&quot;uimageBuffer&quot;,&quot;sampler1DArray&quot;,&quot;sampler1DArrayShadow&quot;,&quot;isampler1D&quot;,&quot;isampler1DArray&quot;,&quot;usampler1D&quot;,&quot;usampler1DArray&quot;,&quot;isampler2DRect&quot;,&quot;usampler2DRect&quot;,&quot;samplerBuffer&quot;,&quot;isamplerBuffer&quot;,&quot;usamplerBuffer&quot;,&quot;sampler2DMS&quot;,&quot;isampler2DMS&quot;,&quot;usampler2DMS&quot;,&quot;sampler2DMSArray&quot;,&quot;isampler2DMSArray&quot;,&quot;usampler2DMSArray&quot;])},{&quot;./literals&quot;:436}],436:[function(t,e,r){e.exports=[&quot;precision&quot;,&quot;highp&quot;,&quot;mediump&quot;,&quot;lowp&quot;,&quot;attribute&quot;,&quot;const&quot;,&quot;uniform&quot;,&quot;varying&quot;,&quot;break&quot;,&quot;continue&quot;,&quot;do&quot;,&quot;for&quot;,&quot;while&quot;,&quot;if&quot;,&quot;else&quot;,&quot;in&quot;,&quot;out&quot;,&quot;inout&quot;,&quot;float&quot;,&quot;int&quot;,&quot;uint&quot;,&quot;void&quot;,&quot;bool&quot;,&quot;true&quot;,&quot;false&quot;,&quot;discard&quot;,&quot;return&quot;,&quot;mat2&quot;,&quot;mat3&quot;,&quot;mat4&quot;,&quot;vec2&quot;,&quot;vec3&quot;,&quot;vec4&quot;,&quot;ivec2&quot;,&quot;ivec3&quot;,&quot;ivec4&quot;,&quot;bvec2&quot;,&quot;bvec3&quot;,&quot;bvec4&quot;,&quot;sampler1D&quot;,&quot;sampler2D&quot;,&quot;sampler3D&quot;,&quot;samplerCube&quot;,&quot;sampler1DShadow&quot;,&quot;sampler2DShadow&quot;,&quot;struct&quot;,&quot;asm&quot;,&quot;class&quot;,&quot;union&quot;,&quot;enum&quot;,&quot;typedef&quot;,&quot;template&quot;,&quot;this&quot;,&quot;packed&quot;,&quot;goto&quot;,&quot;switch&quot;,&quot;default&quot;,&quot;inline&quot;,&quot;noinline&quot;,&quot;volatile&quot;,&quot;public&quot;,&quot;static&quot;,&quot;extern&quot;,&quot;external&quot;,&quot;interface&quot;,&quot;long&quot;,&quot;short&quot;,&quot;double&quot;,&quot;half&quot;,&quot;fixed&quot;,&quot;unsigned&quot;,&quot;input&quot;,&quot;output&quot;,&quot;hvec2&quot;,&quot;hvec3&quot;,&quot;hvec4&quot;,&quot;dvec2&quot;,&quot;dvec3&quot;,&quot;dvec4&quot;,&quot;fvec2&quot;,&quot;fvec3&quot;,&quot;fvec4&quot;,&quot;sampler2DRect&quot;,&quot;sampler3DRect&quot;,&quot;sampler2DRectShadow&quot;,&quot;sizeof&quot;,&quot;cast&quot;,&quot;namespace&quot;,&quot;using&quot;]},{}],437:[function(t,e,r){e.exports=[&quot;&lt;&lt;=&quot;,&quot;&gt;&gt;=&quot;,&quot;++&quot;,&quot;--&quot;,&quot;&lt;&lt;&quot;,&quot;&gt;&gt;&quot;,&quot;&lt;=&quot;,&quot;&gt;=&quot;,&quot;==&quot;,&quot;!=&quot;,&quot;&amp;&amp;&quot;,&quot;||&quot;,&quot;+=&quot;,&quot;-=&quot;,&quot;*=&quot;,&quot;/=&quot;,&quot;%=&quot;,&quot;&amp;=&quot;,&quot;^^&quot;,&quot;^=&quot;,&quot;|=&quot;,&quot;(&quot;,&quot;)&quot;,&quot;[&quot;,&quot;]&quot;,&quot;.&quot;,&quot;!&quot;,&quot;~&quot;,&quot;*&quot;,&quot;/&quot;,&quot;%&quot;,&quot;+&quot;,&quot;-&quot;,&quot;&lt;&quot;,&quot;&gt;&quot;,&quot;&amp;&quot;,&quot;^&quot;,&quot;|&quot;,&quot;?&quot;,&quot;:&quot;,&quot;=&quot;,&quot;,&quot;,&quot;;&quot;,&quot;{&quot;,&quot;}&quot;]},{}],438:[function(t,e,r){var n=t(&quot;./index&quot;);e.exports=function(t,e){var r=n(e),i=[];return i=(i=i.concat(r(t))).concat(r(null))}},{&quot;./index&quot;:432}],439:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],440:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n,i=t(&quot;is-browser&quot;);n=&quot;function&quot;==typeof r.matchMedia?!r.matchMedia(&quot;(hover: none)&quot;).matches:i,e.exports=n}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;is-browser&quot;:464}],441:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-browser&quot;);e.exports=n&amp;&amp;function(){var t=!1;try{var e=Object.defineProperty({},&quot;passive&quot;,{get:function(){t=!0}});window.addEventListener(&quot;test&quot;,null,e),window.removeEventListener(&quot;test&quot;,null,e)}catch(e){t=!1}return t}()},{&quot;is-browser&quot;:464}],442:[function(t,e,r){r.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1&lt;&lt;s)-1,c=l&gt;&gt;1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&amp;(1&lt;&lt;-u)-1,p&gt;&gt;=-u,u+=s;u&gt;0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&amp;(1&lt;&lt;-u)-1,a&gt;&gt;=-u,u+=n;u&gt;0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1&lt;&lt;c)-1,f=u&gt;&gt;1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e&lt;0||0===e&amp;&amp;1/e&lt;0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))&lt;1&amp;&amp;(o--,l*=2),(e+=o+f&gt;=1?h/l:h*Math.pow(2,1-f))*l&gt;=2&amp;&amp;(o++,l/=2),o+f&gt;=u?(s=0,o=u):o+f&gt;=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i&gt;=8;t[r+p]=255&amp;s,p+=d,s/=256,i-=8);for(o=o&lt;&lt;i|s,c+=i;c&gt;0;t[r+p]=255&amp;o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g}},{}],443:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./types&quot;);e.exports=function(t,e){var r;for(r in n)if(n[r].detect(t,e))return r}},{&quot;./types&quot;:446}],444:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;fs&quot;),i=t(&quot;path&quot;),a=t(&quot;./types&quot;),o=t(&quot;./detector&quot;);function s(t,e){var r=o(t,e);if(r in a){var n=a[r].calculate(t,e);if(!1!==n)return n.type=r,n}throw new TypeError(&quot;unsupported file type: &quot;+r+&quot; (file: &quot;+e+&quot;)&quot;)}e.exports=function(t,e){if(r.isBuffer(t))return s(t);if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;invalid invocation&quot;);var a=i.resolve(t);if(&quot;function&quot;!=typeof e)return s(function(t){var e=n.openSync(t,&quot;r&quot;),i=n.fstatSync(e).size,a=Math.min(i,524288),o=r.alloc(a);return n.readSync(e,o,0,a,0),n.closeSync(e),o}(a),a);!function(t,e){n.open(t,&quot;r&quot;,(function(i,a){if(i)return e(i);n.fstat(a,(function(i,o){if(i)return e(i);var s=o.size;if(s&lt;=0)return e(new Error(&quot;File size is not greater than 0 \u2014\u2014 &quot;+t));var l=Math.min(s,524288),c=r.alloc(l);n.read(a,c,0,l,0,(function(t){if(t)return e(t);n.close(a,(function(t){e(t,c)}))}))}))}))}(a,(function(t,r){if(t)return e(t);var n;try{n=s(r,a)}catch(e){t=e}e(t,n)}))},e.exports.types=Object.keys(a)}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;./detector&quot;:443,&quot;./types&quot;:446,buffer:111,fs:109,path:507}],445:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){return r=r||0,t[&quot;readUInt&quot;+e+(n?&quot;BE&quot;:&quot;LE&quot;)].call(t,r)}},{}],446:[function(t,e,r){&quot;use strict&quot;;var n={bmp:t(&quot;./types/bmp&quot;),cur:t(&quot;./types/cur&quot;),dds:t(&quot;./types/dds&quot;),gif:t(&quot;./types/gif&quot;),icns:t(&quot;./types/icns&quot;),ico:t(&quot;./types/ico&quot;),jpg:t(&quot;./types/jpg&quot;),png:t(&quot;./types/png&quot;),psd:t(&quot;./types/psd&quot;),svg:t(&quot;./types/svg&quot;),tiff:t(&quot;./types/tiff&quot;),webp:t(&quot;./types/webp&quot;)};e.exports=n},{&quot;./types/bmp&quot;:447,&quot;./types/cur&quot;:448,&quot;./types/dds&quot;:449,&quot;./types/gif&quot;:450,&quot;./types/icns&quot;:451,&quot;./types/ico&quot;:452,&quot;./types/jpg&quot;:453,&quot;./types/png&quot;:454,&quot;./types/psd&quot;:455,&quot;./types/svg&quot;:456,&quot;./types/tiff&quot;:457,&quot;./types/webp&quot;:458}],447:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return&quot;BM&quot;===t.toString(&quot;ascii&quot;,0,2)},calculate:function(t){return{width:t.readUInt32LE(18),height:Math.abs(t.readInt32LE(22))}}}},{}],448:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return 0===t.readUInt16LE(0)&amp;&amp;2===t.readUInt16LE(2)},calculate:t(&quot;./ico&quot;).calculate}},{&quot;./ico&quot;:452}],449:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return 542327876===t.readUInt32LE(0)},calculate:function(t){return{height:t.readUInt32LE(12),width:t.readUInt32LE(16)}}}},{}],450:[function(t,e,r){&quot;use strict&quot;;var n=/^GIF8[79]a/;e.exports={detect:function(t){var e=t.toString(&quot;ascii&quot;,0,6);return n.test(e)},calculate:function(t){return{width:t.readUInt16LE(6),height:t.readUInt16LE(8)}}}},{}],451:[function(t,e,r){&quot;use strict&quot;;var n={ICON:32,&quot;ICN#&quot;:32,&quot;icm#&quot;:16,icm4:16,icm8:16,&quot;ics#&quot;:16,ics4:16,ics8:16,is32:16,s8mk:16,icp4:16,icl4:32,icl8:32,il32:32,l8mk:32,icp5:32,ic11:32,ich4:48,ich8:48,ih32:48,h8mk:48,icp6:64,ic12:32,it32:128,t8mk:128,ic07:128,ic08:256,ic13:256,ic09:512,ic14:512,ic10:1024};function i(t,e){var r=e+4;return[t.toString(&quot;ascii&quot;,e,r),t.readUInt32BE(r)]}function a(t){var e=n[t];return{width:e,height:e,type:t}}e.exports={detect:function(t){return&quot;icns&quot;===t.toString(&quot;ascii&quot;,0,4)},calculate:function(t){var e,r,n,o=t.length,s=8,l=t.readUInt32BE(4);if(r=a((e=i(t,s))[0]),(s+=e[1])===l)return r;for(n={width:r.width,height:r.height,images:[r]};s&lt;l&amp;&amp;s&lt;o;)r=a((e=i(t,s))[0]),s+=e[1],n.images.push(r);return n}}},{}],452:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=t.readUInt8(e);return 0===r?256:r}function i(t,e){var r=6+16*e;return{width:n(t,r),height:n(t,r+1)}}e.exports={detect:function(t){return 0===t.readUInt16LE(0)&amp;&amp;1===t.readUInt16LE(2)},calculate:function(t){var e,r=t.readUInt16LE(4),n=i(t,0);if(1===r)return n;for(n.images=[{width:n.width,height:n.height}],e=1;e&lt;r;e+=1)n.images.push(i(t,e));return n}}},{}],453:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../readUInt&quot;);function i(t){return&quot;45786966&quot;===t.toString(&quot;hex&quot;,2,6)}function a(t,e){return{height:t.readUInt16BE(e),width:t.readUInt16BE(e+2)}}function o(t,e){var r=t.slice(2,e),i=r.toString(&quot;hex&quot;,6,8),a=&quot;4d4d&quot;===i;if(a||&quot;4949&quot;===i)return function(t,e){for(var r,i,a=n(t,16,14,e),o=0;o&lt;a;o++){if(i=(r=16+12*o)+12,r&gt;t.length)return;var s=t.slice(r,i);if(274===n(s,16,0,e)){if(3!==n(s,16,2,e))return;if(1!==n(s,32,4,e))return;return n(s,16,8,e)}}}(r,a)}function s(t,e){if(e&gt;t.length)throw new TypeError(&quot;Corrupt JPG, exceeded buffer limits&quot;);if(255!==t[e])throw new TypeError(&quot;Invalid JPG, marker table corrupted&quot;)}e.exports={detect:function(t){return&quot;ffd8&quot;===t.toString(&quot;hex&quot;,0,2)},calculate:function(t){var e,r,n;for(t=t.slice(4);t.length;){if(r=t.readUInt16BE(0),i(t)&amp;&amp;(e=o(t,r)),s(t,r),192===(n=t[r+1])||193===n||194===n){var l=a(t,r+5);return e?{width:l.width,height:l.height,orientation:e}:l}t=t.slice(r+2)}throw new TypeError(&quot;Invalid JPG, no size found&quot;)}}},{&quot;../readUInt&quot;:445}],454:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){if(&quot;PNG\r\n\x1a\n&quot;===t.toString(&quot;ascii&quot;,1,8)){var e=t.toString(&quot;ascii&quot;,12,16);if(&quot;CgBI&quot;===e&amp;&amp;(e=t.toString(&quot;ascii&quot;,28,32)),&quot;IHDR&quot;!==e)throw new TypeError(&quot;invalid png&quot;);return!0}},calculate:function(t){return&quot;CgBI&quot;===t.toString(&quot;ascii&quot;,12,16)?{width:t.readUInt32BE(32),height:t.readUInt32BE(36)}:{width:t.readUInt32BE(16),height:t.readUInt32BE(20)}}}},{}],455:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return&quot;8BPS&quot;===t.toString(&quot;ascii&quot;,0,4)},calculate:function(t){return{width:t.readUInt32BE(18),height:t.readUInt32BE(14)}}}},{}],456:[function(t,e,r){&quot;use strict&quot;;var n=/&lt;svg\s([^&gt;&quot;']|&quot;[^&quot;]*&quot;|'[^']*')*&gt;/;var i={root:n,width:/\swidth=(['&quot;])([^%]+?)\1/,height:/\sheight=(['&quot;])([^%]+?)\1/,viewbox:/\sviewBox=(['&quot;])(.+?)\1/},a={cm:96/2.54,mm:96/2.54/10,m:96/2.54*100,pt:96/72,pc:96/72/12,em:16,ex:8};function o(t){var e=/([0-9.]+)([a-z]*)/.exec(t);if(e)return Math.round(parseFloat(e[1])*(a[e[2]]||1))}function s(t){var e=t.split(&quot; &quot;);return{width:o(e[2]),height:o(e[3])}}e.exports={detect:function(t){return n.test(t)},calculate:function(t){var e=t.toString(&quot;utf8&quot;).match(i.root);if(e){var r=function(t){var e=t.match(i.width),r=t.match(i.height),n=t.match(i.viewbox);return{width:e&amp;&amp;o(e[2]),height:r&amp;&amp;o(r[2]),viewbox:n&amp;&amp;s(n[2])}}(e[0]);if(r.width&amp;&amp;r.height)return function(t){return{width:t.width,height:t.height}}(r);if(r.viewbox)return function(t){var e=t.viewbox.width/t.viewbox.height;return t.width?{width:t.width,height:Math.floor(t.width/e)}:t.height?{width:Math.floor(t.height*e),height:t.height}:{width:t.viewbox.width,height:t.viewbox.height}}(r)}throw new TypeError(&quot;invalid svg&quot;)}}},{}],457:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;fs&quot;),i=t(&quot;../readUInt&quot;);function a(t,e){var r=i(t,16,8,e);return(i(t,16,10,e)&lt;&lt;16)+r}function o(t){if(t.length&gt;24)return t.slice(12)}e.exports={detect:function(t){var e=t.toString(&quot;hex&quot;,0,4);return&quot;49492a00&quot;===e||&quot;4d4d002a&quot;===e},calculate:function(t,e){if(!e)throw new TypeError(&quot;Tiff doesn't support buffer&quot;);var s=&quot;BE&quot;===function(t){var e=t.toString(&quot;ascii&quot;,0,2);return&quot;II&quot;===e?&quot;LE&quot;:&quot;MM&quot;===e?&quot;BE&quot;:void 0}(t),l=function(t,e){for(var r,n,s,l={};t&amp;&amp;t.length&amp;&amp;(r=i(t,16,0,e),n=i(t,16,2,e),s=i(t,32,4,e),0!==r);)1!==s||3!==n&amp;&amp;4!==n||(l[r]=a(t,e)),t=o(t);return l}(function(t,e,a){var o=i(t,32,4,a),s=1024,l=n.statSync(e).size;o+s&gt;l&amp;&amp;(s=l-o-10);var c=r.alloc(s),u=n.openSync(e,&quot;r&quot;);return n.readSync(u,c,0,s,o),c.slice(2)}(t,e,s),s),c=l[256],u=l[257];if(!c||!u)throw new TypeError(&quot;Invalid Tiff, missing tags&quot;);return{width:c,height:u}}}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;../readUInt&quot;:445,buffer:111,fs:109}],458:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){var e=&quot;RIFF&quot;===t.toString(&quot;ascii&quot;,0,4),r=&quot;WEBP&quot;===t.toString(&quot;ascii&quot;,8,12),n=&quot;VP8&quot;===t.toString(&quot;ascii&quot;,12,15);return e&amp;&amp;r&amp;&amp;n},calculate:function(t){var e=t.toString(&quot;ascii&quot;,12,16);if(t=t.slice(20,30),&quot;VP8X&quot;===e){var r=t[0];return!(!(0==(192&amp;r))||!(0==(1&amp;r)))&amp;&amp;function(t){return{width:1+t.readUIntLE(4,3),height:1+t.readUIntLE(7,3)}}(t)}if(&quot;VP8 &quot;===e&amp;&amp;47!==t[0])return function(t){return{width:16383&amp;t.readInt16LE(6),height:16383&amp;t.readInt16LE(8)}}(t);var n=t.toString(&quot;hex&quot;,3,6);return&quot;VP8L&quot;===e&amp;&amp;&quot;9d012a&quot;!==n&amp;&amp;function(t){return{width:1+((63&amp;t[2])&lt;&lt;8|t[1]),height:1+((15&amp;t[4])&lt;&lt;10|t[3]&lt;&lt;2|(192&amp;t[2])&gt;&gt;6)}}(t)}}},{}],459:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.length;if(0===r)throw new Error(&quot;Must have at least d+1 points&quot;);var i=t[0].length;if(r&lt;=i)throw new Error(&quot;Must input at least d+1 points&quot;);var o=t.slice(0,i+1),s=n.apply(void 0,o);if(0===s)throw new Error(&quot;Input not in general position&quot;);for(var l=new Array(i+1),u=0;u&lt;=i;++u)l[u]=u;s&lt;0&amp;&amp;(l[0]=1,l[1]=0);var f=new a(l,new Array(i+1),!1),h=f.adjacent,p=new Array(i+2);for(u=0;u&lt;=i;++u){for(var d=l.slice(),g=0;g&lt;=i;++g)g===u&amp;&amp;(d[g]=-1);var m=d[0];d[0]=d[1],d[1]=m;var v=new a(d,new Array(i+1),!0);h[u]=v,p[u]=v}p[i+1]=f;for(u=0;u&lt;=i;++u){d=h[u].vertices;var y=h[u].adjacent;for(g=0;g&lt;=i;++g){var x=d[g];if(x&lt;0)y[g]=f;else for(var b=0;b&lt;=i;++b)h[b].vertices.indexOf(x)&lt;0&amp;&amp;(y[g]=h[b])}}var _=new c(i,o,p),w=!!e;for(u=i+1;u&lt;r;++u)_.insert(t[u],w);return _.boundary()};var n=t(&quot;robust-orientation&quot;),i=t(&quot;simplicial-complex&quot;).compareCells;function a(t,e,r){this.vertices=t,this.adjacent=e,this.boundary=r,this.lastVisited=-1}function o(t,e,r){this.vertices=t,this.cell=e,this.index=r}function s(t,e){return i(t.vertices,e.vertices)}a.prototype.flip=function(){var t=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=t;var e=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=e};var l=[];function c(t,e,r){this.dimension=t,this.vertices=e,this.simplices=r,this.interior=r.filter((function(t){return!t.boundary})),this.tuple=new Array(t+1);for(var i=0;i&lt;=t;++i)this.tuple[i]=this.vertices[i];var a=l[t];a||(a=l[t]=function(t){for(var e=[&quot;function orient(){var tuple=this.tuple;return test(&quot;],r=0;r&lt;=t;++r)r&gt;0&amp;&amp;e.push(&quot;,&quot;),e.push(&quot;tuple[&quot;,r,&quot;]&quot;);e.push(&quot;)}return orient&quot;);var i=new Function(&quot;test&quot;,e.join(&quot;&quot;)),a=n[t+1];return a||(a=n),i(a)}(t)),this.orient=a}var u=c.prototype;u.handleBoundaryDegeneracy=function(t,e){var r=this.dimension,n=this.vertices.length-1,i=this.tuple,a=this.vertices,o=[t];for(t.lastVisited=-n;o.length&gt;0;){(t=o.pop()).vertices;for(var s=t.adjacent,l=0;l&lt;=r;++l){var c=s[l];if(c.boundary&amp;&amp;!(c.lastVisited&lt;=-n)){for(var u=c.vertices,f=0;f&lt;=r;++f){var h=u[f];i[f]=h&lt;0?e:a[h]}var p=this.orient();if(p&gt;0)return c;c.lastVisited=-n,0===p&amp;&amp;o.push(c)}}}return null},u.walk=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,a=this.tuple,o=e?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[o];t:for(;!s.boundary;){for(var l=s.vertices,c=s.adjacent,u=0;u&lt;=n;++u)a[u]=i[l[u]];s.lastVisited=r;for(u=0;u&lt;=n;++u){var f=c[u];if(!(f.lastVisited&gt;=r)){var h=a[u];a[u]=t;var p=this.orient();if(a[u]=h,p&lt;0){s=f;continue t}f.boundary?f.lastVisited=-r:f.lastVisited=r}}return}return s},u.addPeaks=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,l=this.tuple,c=this.interior,u=this.simplices,f=[e];e.lastVisited=r,e.vertices[e.vertices.indexOf(-1)]=r,e.boundary=!1,c.push(e);for(var h=[];f.length&gt;0;){var p=(e=f.pop()).vertices,d=e.adjacent,g=p.indexOf(r);if(!(g&lt;0))for(var m=0;m&lt;=n;++m)if(m!==g){var v=d[m];if(v.boundary&amp;&amp;!(v.lastVisited&gt;=r)){var y=v.vertices;if(v.lastVisited!==-r){for(var x=0,b=0;b&lt;=n;++b)y[b]&lt;0?(x=b,l[b]=t):l[b]=i[y[b]];if(this.orient()&gt;0){y[x]=r,v.boundary=!1,c.push(v),f.push(v),v.lastVisited=r;continue}v.lastVisited=-r}var _=v.adjacent,w=p.slice(),T=d.slice(),k=new a(w,T,!0);u.push(k);var M=_.indexOf(e);if(!(M&lt;0)){_[M]=k,T[g]=v,w[m]=-1,T[m]=e,d[m]=k,k.flip();for(b=0;b&lt;=n;++b){var A=w[b];if(!(A&lt;0||A===r)){for(var S=new Array(n-1),E=0,C=0;C&lt;=n;++C){var L=w[C];L&lt;0||C===b||(S[E++]=L)}h.push(new o(S,k,b))}}}}}}h.sort(s);for(m=0;m+1&lt;h.length;m+=2){var I=h[m],P=h[m+1],z=I.index,O=P.index;z&lt;0||O&lt;0||(I.cell.adjacent[I.index]=P.cell,P.cell.adjacent[P.index]=I.cell)}},u.insert=function(t,e){var r=this.vertices;r.push(t);var n=this.walk(t,e);if(n){for(var i=this.dimension,a=this.tuple,o=0;o&lt;=i;++o){var s=n.vertices[o];a[o]=s&lt;0?t:r[s]}var l=this.orient(a);l&lt;0||(0!==l||(n=this.handleBoundaryDegeneracy(n,t)))&amp;&amp;this.addPeaks(t,n)}},u.boundary=function(){for(var t=this.dimension,e=[],r=this.simplices,n=r.length,i=0;i&lt;n;++i){var a=r[i];if(a.boundary){for(var o=new Array(t),s=a.vertices,l=0,c=0,u=0;u&lt;=t;++u)s[u]&gt;=0?o[l++]=s[u]:c=1&amp;u;if(c===(1&amp;t)){var f=o[0];o[0]=o[1],o[1]=f}e.push(o)}}return e}},{&quot;robust-orientation&quot;:548,&quot;simplicial-complex&quot;:558}],460:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;);function i(t,e,r,n,i){this.mid=t,this.left=e,this.right=r,this.leftPoints=n,this.rightPoints=i,this.count=(e?e.count:0)+(r?r.count:0)+n.length}e.exports=function(t){if(!t||0===t.length)return new v(null);return new v(m(t))};var a=i.prototype;function o(t,e){t.mid=e.mid,t.left=e.left,t.right=e.right,t.leftPoints=e.leftPoints,t.rightPoints=e.rightPoints,t.count=e.count}function s(t,e){var r=m(e);t.mid=r.mid,t.left=r.left,t.right=r.right,t.leftPoints=r.leftPoints,t.rightPoints=r.rightPoints,t.count=r.count}function l(t,e){var r=t.intervals([]);r.push(e),s(t,r)}function c(t,e){var r=t.intervals([]),n=r.indexOf(e);return n&lt;0?0:(r.splice(n,1),s(t,r),1)}function u(t,e,r){for(var n=0;n&lt;t.length&amp;&amp;t[n][0]&lt;=e;++n){var i=r(t[n]);if(i)return i}}function f(t,e,r){for(var n=t.length-1;n&gt;=0&amp;&amp;t[n][1]&gt;=e;--n){var i=r(t[n]);if(i)return i}}function h(t,e){for(var r=0;r&lt;t.length;++r){var n=e(t[r]);if(n)return n}}function p(t,e){return t-e}function d(t,e){var r=t[0]-e[0];return r||t[1]-e[1]}function g(t,e){var r=t[1]-e[1];return r||t[0]-e[0]}function m(t){if(0===t.length)return null;for(var e=[],r=0;r&lt;t.length;++r)e.push(t[r][0],t[r][1]);e.sort(p);var n=e[e.length&gt;&gt;1],a=[],o=[],s=[];for(r=0;r&lt;t.length;++r){var l=t[r];l[1]&lt;n?a.push(l):n&lt;l[0]?o.push(l):s.push(l)}var c=s,u=s.slice();return c.sort(d),u.sort(g),new i(n,m(a),m(o),c,u)}function v(t){this.root=t}a.intervals=function(t){return t.push.apply(t,this.leftPoints),this.left&amp;&amp;this.left.intervals(t),this.right&amp;&amp;this.right.intervals(t),t},a.insert=function(t){var e=this.count-this.leftPoints.length;if(this.count+=1,t[1]&lt;this.mid)this.left?4*(this.left.count+1)&gt;3*(e+1)?l(this,t):this.left.insert(t):this.left=m([t]);else if(t[0]&gt;this.mid)this.right?4*(this.right.count+1)&gt;3*(e+1)?l(this,t):this.right.insert(t):this.right=m([t]);else{var r=n.ge(this.leftPoints,t,d),i=n.ge(this.rightPoints,t,g);this.leftPoints.splice(r,0,t),this.rightPoints.splice(i,0,t)}},a.remove=function(t){var e=this.count-this.leftPoints;if(t[1]&lt;this.mid)return this.left?4*(this.right?this.right.count:0)&gt;3*(e-1)?c(this,t):2===(s=this.left.remove(t))?(this.left=null,this.count-=1,1):(1===s&amp;&amp;(this.count-=1),s):0;if(t[0]&gt;this.mid)return this.right?4*(this.left?this.left.count:0)&gt;3*(e-1)?c(this,t):2===(s=this.right.remove(t))?(this.right=null,this.count-=1,1):(1===s&amp;&amp;(this.count-=1),s):0;if(1===this.count)return this.leftPoints[0]===t?2:0;if(1===this.leftPoints.length&amp;&amp;this.leftPoints[0]===t){if(this.left&amp;&amp;this.right){for(var r=this,i=this.left;i.right;)r=i,i=i.right;if(r===this)i.right=this.right;else{var a=this.left,s=this.right;r.count-=i.count,r.right=i.left,i.left=a,i.right=s}o(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?o(this,this.left):o(this,this.right);return 1}for(a=n.ge(this.leftPoints,t,d);a&lt;this.leftPoints.length&amp;&amp;this.leftPoints[a][0]===t[0];++a)if(this.leftPoints[a]===t){this.count-=1,this.leftPoints.splice(a,1);for(s=n.ge(this.rightPoints,t,g);s&lt;this.rightPoints.length&amp;&amp;this.rightPoints[s][1]===t[1];++s)if(this.rightPoints[s]===t)return this.rightPoints.splice(s,1),1}return 0},a.queryPoint=function(t,e){if(t&lt;this.mid){if(this.left)if(r=this.left.queryPoint(t,e))return r;return u(this.leftPoints,t,e)}if(t&gt;this.mid){var r;if(this.right)if(r=this.right.queryPoint(t,e))return r;return f(this.rightPoints,t,e)}return h(this.leftPoints,e)},a.queryInterval=function(t,e,r){var n;if(t&lt;this.mid&amp;&amp;this.left&amp;&amp;(n=this.left.queryInterval(t,e,r)))return n;if(e&gt;this.mid&amp;&amp;this.right&amp;&amp;(n=this.right.queryInterval(t,e,r)))return n;return e&lt;this.mid?u(this.leftPoints,e,r):t&gt;this.mid?f(this.rightPoints,t,r):h(this.leftPoints,r)};var y=v.prototype;y.insert=function(t){this.root?this.root.insert(t):this.root=new i(t[0],null,null,[t],[t])},y.remove=function(t){if(this.root){var e=this.root.remove(t);return 2===e&amp;&amp;(this.root=null),0!==e}return!1},y.queryPoint=function(t,e){if(this.root)return this.root.queryPoint(t,e)},y.queryInterval=function(t,e,r){if(t&lt;=e&amp;&amp;this.root)return this.root.queryInterval(t,e,r)},Object.defineProperty(y,&quot;count&quot;,{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(y,&quot;intervals&quot;,{get:function(){return this.root?this.root.intervals([]):[]}})},{&quot;binary-search-bounds&quot;:461}],461:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],462:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e=e||new Array(t.length);for(var r=0;r&lt;t.length;++r)e[t[r]]=r;return e}},{}],463:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=r;return e}},{}],464:[function(t,e,r){e.exports=!0},{}],465:[function(t,e,r){function n(t){return!!t.constructor&amp;&amp;&quot;function&quot;==typeof t.constructor.isBuffer&amp;&amp;t.constructor.isBuffer(t)}
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh &lt;https://feross.org&gt;
 * @license  MIT
 */
e.exports=function(t){return null!=t&amp;&amp;(n(t)||function(t){return&quot;function&quot;==typeof t.readFloatLE&amp;&amp;&quot;function&quot;==typeof t.slice&amp;&amp;n(t.slice(0,0))}(t)||!!t._isBuffer)}},{}],466:[function(t,e,r){&quot;use strict&quot;;e.exports=&quot;undefined&quot;!=typeof navigator&amp;&amp;(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))},{}],467:[function(t,e,r){&quot;use strict&quot;;e.exports=a,e.exports.isMobile=a,e.exports.default=a;var n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function a(t){t||(t={});var e=t.ua;if(e||&quot;undefined&quot;==typeof navigator||(e=navigator.userAgent),e&amp;&amp;e.headers&amp;&amp;&quot;string&quot;==typeof e.headers[&quot;user-agent&quot;]&amp;&amp;(e=e.headers[&quot;user-agent&quot;]),&quot;string&quot;!=typeof e)return!1;var r=t.tablet?i.test(e):n.test(e);return!r&amp;&amp;t.tablet&amp;&amp;t.featureDetect&amp;&amp;navigator&amp;&amp;navigator.maxTouchPoints&gt;1&amp;&amp;-1!==e.indexOf(&quot;Macintosh&quot;)&amp;&amp;-1!==e.indexOf(&quot;Safari&quot;)&amp;&amp;(r=!0),r}},{}],468:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=typeof t;return null!==t&amp;&amp;(&quot;object&quot;===e||&quot;function&quot;===e)}},{}],469:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString;e.exports=function(t){var e;return&quot;[object Object]&quot;===n.call(t)&amp;&amp;(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))}},{}],470:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e,r=t.length,n=0;n&lt;r;n++)if(((e=t.charCodeAt(n))&lt;9||e&gt;13)&amp;&amp;32!==e&amp;&amp;133!==e&amp;&amp;160!==e&amp;&amp;5760!==e&amp;&amp;6158!==e&amp;&amp;(e&lt;8192||e&gt;8205)&amp;&amp;8232!==e&amp;&amp;8233!==e&amp;&amp;8239!==e&amp;&amp;8287!==e&amp;&amp;8288!==e&amp;&amp;12288!==e&amp;&amp;65279!==e)return!1;return!0}},{}],471:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return&quot;string&quot;==typeof t&amp;&amp;(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&amp;&amp;/[\dz]$/i.test(t)&amp;&amp;t.length&gt;4))}},{}],472:[function(t,e,r){e.exports=function(t,e,r){return t*(1-r)+e*r}},{}],473:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?e.exports=n():(t=t||self).mapboxgl=n()}(this,(function(){&quot;use strict&quot;;var t,e,r;function n(n,i){if(t)if(e){var a=&quot;var sharedChunk = {}; (&quot;+t+&quot;)(sharedChunk); (&quot;+e+&quot;)(sharedChunk);&quot;,o={};t(o),(r=i(o)).workerUrl=window.URL.createObjectURL(new Blob([a],{type:&quot;text/javascript&quot;}))}else e=i;else t=i}return n(0,(function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r=n;function n(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}n.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},n.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},n.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},n.prototype.solveCurveX=function(t,e){var r,n,i,a,o;for(void 0===e&amp;&amp;(e=1e-6),i=t,o=0;o&lt;8;o++){if(a=this.sampleCurveX(i)-t,Math.abs(a)&lt;e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)&lt;1e-6)break;i-=a/s}if((i=t)&lt;(r=0))return r;if(i&gt;(n=1))return n;for(;r&lt;n;){if(a=this.sampleCurveX(i),Math.abs(a-t)&lt;e)return i;t&gt;a?r=i:n=i,i=.5*(n-r)+r}return i},n.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var i=a;function a(t,e){this.x=t,this.y=e}function o(t,e,n,i){var a=new r(t,e,n,i);return function(t){return a.solve(t)}}a.prototype={clone:function(){return new a(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&amp;&amp;this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=r*this.x+e*this.y;return this.x=e*this.x-r*this.y,this.y=n,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),i=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=e.x+r*(this.x-e.x)-n*(this.y-e.y),this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},a.convert=function(t){return t instanceof a?t:Array.isArray(t)?new a(t[0],t[1]):t};var s=o(.25,.1,.25,1);function l(t,e,r){return Math.min(r,Math.max(e,t))}function c(t,e,r){var n=r-e,i=((t-e)%n+n)%n+e;return i===e?r:i}function u(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}var f=1;function h(){return f++}function p(){return function t(e){return e?(e^16*Math.random()&gt;&gt;e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function d(t){return!!t&amp;&amp;/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function g(t,e){t.forEach((function(t){e[t]&amp;&amp;(e[t]=e[t].bind(e))}))}function m(t,e){return-1!==t.indexOf(e,t.length-e.length)}function v(t,e,r){var n={};for(var i in t)n[i]=e.call(r||this,t[i],i,t);return n}function y(t,e,r){var n={};for(var i in t)e.call(r||this,t[i],i,t)&amp;&amp;(n[i]=t[i]);return n}function x(t){return Array.isArray(t)?t.map(x):&quot;object&quot;==typeof t&amp;&amp;t?v(t,x):t}var b={};function _(t){b[t]||(&quot;undefined&quot;!=typeof console&amp;&amp;console.warn(t),b[t]=!0)}function w(t,e,r){return(r.y-t.y)*(e.x-t.x)&gt;(e.y-t.y)*(r.x-t.x)}function T(t){for(var e=0,r=0,n=t.length,i=n-1,a=void 0,o=void 0;r&lt;n;i=r++)e+=((o=t[i]).x-(a=t[r]).x)*(a.y+o.y);return e}function k(){return&quot;undefined&quot;!=typeof WorkerGlobalScope&amp;&amp;&quot;undefined&quot;!=typeof self&amp;&amp;self instanceof WorkerGlobalScope}function M(t){var e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)&lt;&gt;@\,;\:\\&quot;\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)&lt;&gt;@\,;\:\\&quot;\/\[\]\?\=\{\}\x7F]+)|(?:\&quot;((?:[^&quot;\\]|\\.)*)\&quot;)))?/g,(function(t,r,n,i){var a=n||i;return e[r]=!a||a.toLowerCase(),&quot;&quot;})),e[&quot;max-age&quot;]){var r=parseInt(e[&quot;max-age&quot;],10);isNaN(r)?delete e[&quot;max-age&quot;]:e[&quot;max-age&quot;]=r}return e}var A=null;function S(t){if(null==A){var e=t.navigator?t.navigator.userAgent:null;A=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match(&quot;Safari&quot;)&amp;&amp;!e.match(&quot;Chrome&quot;)))}return A}function E(t){try{var e=self[t];return e.setItem(&quot;_mapbox_test_&quot;,1),e.removeItem(&quot;_mapbox_test_&quot;),!0}catch(t){return!1}}var C,L,I,P,z=self.performance&amp;&amp;self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),O=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,D=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,R={now:z,frame:function(t){var e=O(t);return{cancel:function(){return D(e)}}},getImageData:function(t,e){void 0===e&amp;&amp;(e=0);var r=self.document.createElement(&quot;canvas&quot;),n=r.getContext(&quot;2d&quot;);if(!n)throw new Error(&quot;failed to create canvas 2d context&quot;);return r.width=t.width,r.height=t.height,n.drawImage(t,0,0,t.width,t.height),n.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return C||(C=self.document.createElement(&quot;a&quot;)),C.href=t,C.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&amp;&amp;(null==L&amp;&amp;(L=self.matchMedia(&quot;(prefers-reduced-motion: reduce)&quot;)),L.matches)}},F={API_URL:&quot;https://api.mapbox.com&quot;,get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf(&quot;https://api.mapbox.cn&quot;)?&quot;https://events.mapbox.cn/events/v2&quot;:0===this.API_URL.indexOf(&quot;https://api.mapbox.com&quot;)?&quot;https://events.mapbox.com/events/v2&quot;:null:null},FEEDBACK_URL:&quot;https://apps.mapbox.com/feedback&quot;,REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},B={supported:!1,testSupport:function(t){!N&amp;&amp;P&amp;&amp;(j?U(t):I=t)}},N=!1,j=!1;function U(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,P),t.isContextLost())return;B.supported=!0}catch(t){}t.deleteTexture(e),N=!0}self.document&amp;&amp;((P=self.document.createElement(&quot;img&quot;)).onload=function(){I&amp;&amp;U(I),I=null,j=!0},P.onerror=function(){N=!0,I=null},P.src=&quot;data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=&quot;);var V=&quot;01&quot;,q=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function H(t){return 0===t.indexOf(&quot;mapbox:&quot;)}q.prototype._createSkuToken=function(){var t=function(){for(var t=&quot;&quot;,e=0;e&lt;10;e++)t+=&quot;0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ&quot;[Math.floor(62*Math.random())];return{token:[&quot;1&quot;,V,t].join(&quot;&quot;),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},q.prototype._isSkuTokenExpired=function(){return Date.now()&gt;this._skuTokenExpiresAt},q.prototype.transformRequest=function(t,e){return this._transformRequestFn&amp;&amp;this._transformRequestFn(t,e)||{url:t}},q.prototype.normalizeStyleURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/styles/v1&quot;+r.path,this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeGlyphsURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/fonts/v1&quot;+r.path,this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeSourceURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/v4/&quot;+r.authority+&quot;.json&quot;,r.params.push(&quot;secure&quot;),this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeSpriteURL=function(t,e,r,n){var i=X(t);return H(t)?(i.path=&quot;/styles/v1&quot;+i.path+&quot;/sprite&quot;+e+r,this._makeAPIURL(i,this._customAccessToken||n)):(i.path+=&quot;&quot;+e+r,Z(i))},q.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&amp;&amp;this._createSkuToken(),t&amp;&amp;!H(t))return t;var r=X(t);r.path=r.path.replace(/(\.(png|jpg)\d*)(?=$)/,(R.devicePixelRatio&gt;=2||512===e?&quot;@2x&quot;:&quot;&quot;)+(B.supported?&quot;.webp&quot;:&quot;$1&quot;)),r.path=r.path.replace(/^.+\/v4\//,&quot;/&quot;),r.path=&quot;/v4&quot;+r.path;var n=this._customAccessToken||function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var n=r[e].match(/^access_token=(.*)$/);if(n)return n[1]}return null}(r.params)||F.ACCESS_TOKEN;return F.REQUIRE_ACCESS_TOKEN&amp;&amp;n&amp;&amp;this._skuToken&amp;&amp;r.params.push(&quot;sku=&quot;+this._skuToken),this._makeAPIURL(r,n)},q.prototype.canonicalizeTileURL=function(t,e){var r=X(t);if(!r.path.match(/(^\/v4\/)/)||!r.path.match(/\.[\w]+$/))return t;var n=&quot;mapbox://tiles/&quot;;n+=r.path.replace(&quot;/v4/&quot;,&quot;&quot;);var i=r.params;return e&amp;&amp;(i=i.filter((function(t){return!t.match(/^access_token=/)}))),i.length&amp;&amp;(n+=&quot;?&quot;+i.join(&quot;&amp;&quot;)),n},q.prototype.canonicalizeTileset=function(t,e){for(var r=!!e&amp;&amp;H(e),n=[],i=0,a=t.tiles||[];i&lt;a.length;i+=1){var o=a[i];Y(o)?n.push(this.canonicalizeTileURL(o,r)):n.push(o)}return n},q.prototype._makeAPIURL=function(t,e){var r=&quot;See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes&quot;,n=X(F.API_URL);if(t.protocol=n.protocol,t.authority=n.authority,&quot;/&quot;!==n.path&amp;&amp;(t.path=&quot;&quot;+n.path+t.path),!F.REQUIRE_ACCESS_TOKEN)return Z(t);if(!(e=e||F.ACCESS_TOKEN))throw new Error(&quot;An API access token is required to use Mapbox GL. &quot;+r);if(&quot;s&quot;===e[0])throw new Error(&quot;Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). &quot;+r);return t.params=t.params.filter((function(t){return-1===t.indexOf(&quot;access_token&quot;)})),t.params.push(&quot;access_token=&quot;+e),Z(t)};var G=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Y(t){return G.test(t)}var W=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function X(t){var e=t.match(W);if(!e)throw new Error(&quot;Unable to parse URL object&quot;);return{protocol:e[1],authority:e[2],path:e[3]||&quot;/&quot;,params:e[4]?e[4].split(&quot;&amp;&quot;):[]}}function Z(t){var e=t.params.length?&quot;?&quot;+t.params.join(&quot;&amp;&quot;):&quot;&quot;;return t.protocol+&quot;://&quot;+t.authority+t.path+e}function J(t){if(!t)return null;var e=t.split(&quot;.&quot;);if(!e||3!==e.length)return null;try{return JSON.parse(decodeURIComponent(self.atob(e[1]).split(&quot;&quot;).map((function(t){return&quot;%&quot;+(&quot;00&quot;+t.charCodeAt(0).toString(16)).slice(-2)})).join(&quot;&quot;)))}catch(t){return null}}var K=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};K.prototype.getStorageKey=function(t){var e,r=J(F.ACCESS_TOKEN);return e=r&amp;&amp;r.u?self.btoa(encodeURIComponent(r.u).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(Number(&quot;0x&quot;+e))}))):F.ACCESS_TOKEN||&quot;&quot;,t?&quot;mapbox.eventData.&quot;+t+&quot;:&quot;+e:&quot;mapbox.eventData:&quot;+e},K.prototype.fetchEventData=function(){var t=E(&quot;localStorage&quot;),e=this.getStorageKey(),r=this.getStorageKey(&quot;uuid&quot;);if(t)try{var n=self.localStorage.getItem(e);n&amp;&amp;(this.eventData=JSON.parse(n));var i=self.localStorage.getItem(r);i&amp;&amp;(this.anonId=i)}catch(t){_(&quot;Unable to read from LocalStorage&quot;)}},K.prototype.saveEventData=function(){var t=E(&quot;localStorage&quot;),e=this.getStorageKey(),r=this.getStorageKey(&quot;uuid&quot;);if(t)try{self.localStorage.setItem(r,this.anonId),Object.keys(this.eventData).length&gt;=1&amp;&amp;self.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){_(&quot;Unable to write to LocalStorage&quot;)}},K.prototype.processRequests=function(t){},K.prototype.postEvent=function(t,e,r,n){var i=this;if(F.EVENTS_URL){var a=X(F.EVENTS_URL);a.params.push(&quot;access_token=&quot;+(n||F.ACCESS_TOKEN||&quot;&quot;));var o={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:&quot;mapbox-gl-js&quot;,sdkVersion:&quot;1.10.1&quot;,skuId:V,userId:this.anonId},s=e?u(o,e):o,l={url:Z(a),headers:{&quot;Content-Type&quot;:&quot;text/plain&quot;},body:JSON.stringify([s])};this.pendingRequest=xt(l,(function(t){i.pendingRequest=null,r(t),i.saveEventData(),i.processRequests(n)}))}},K.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var Q,$,tt=function(t){function e(){t.call(this,&quot;map.load&quot;),this.success={},this.skuToken=&quot;&quot;}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.postMapLoadEvent=function(t,e,r,n){this.skuToken=r,(F.EVENTS_URL&amp;&amp;n||F.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return H(t)||Y(t)})))&amp;&amp;this.queueRequest({id:e,timestamp:Date.now()},n)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){var r=this.queue.shift(),n=r.id,i=r.timestamp;n&amp;&amp;this.success[n]||(this.anonId||this.fetchEventData(),d(this.anonId)||(this.anonId=p()),this.postEvent(i,{skuToken:this.skuToken},(function(t){t||n&amp;&amp;(e.success[n]=!0)}),t))}},e}(K),et=new(function(t){function e(e){t.call(this,&quot;appUserTurnstile&quot;),this._customAccessToken=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.postTurnstileEvent=function(t,e){F.EVENTS_URL&amp;&amp;F.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return H(t)||Y(t)}))&amp;&amp;this.queueRequest(Date.now(),e)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){this.anonId&amp;&amp;this.eventData.lastSuccess&amp;&amp;this.eventData.tokenU||this.fetchEventData();var r=J(F.ACCESS_TOKEN),n=r?r.u:F.ACCESS_TOKEN,i=n!==this.eventData.tokenU;d(this.anonId)||(this.anonId=p(),i=!0);var a=this.queue.shift();if(this.eventData.lastSuccess){var o=new Date(this.eventData.lastSuccess),s=new Date(a),l=(a-this.eventData.lastSuccess)/864e5;i=i||l&gt;=1||l&lt;-1||o.getDate()!==s.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(a,{&quot;enabled.telemetry&quot;:!1},(function(t){t||(e.eventData.lastSuccess=a,e.eventData.tokenU=n)}),t)}},e}(K)),rt=et.postTurnstileEvent.bind(et),nt=new tt,it=nt.postMapLoadEvent.bind(nt),at=500,ot=50;function st(){self.caches&amp;&amp;!Q&amp;&amp;(Q=self.caches.open(&quot;mapbox-tiles&quot;))}function lt(t){var e=t.indexOf(&quot;?&quot;);return e&lt;0?t:t.slice(0,e)}var ct,ut=1/0;function ft(){return null==ct&amp;&amp;(ct=self.OffscreenCanvas&amp;&amp;new self.OffscreenCanvas(1,1).getContext(&quot;2d&quot;)&amp;&amp;&quot;function&quot;==typeof self.createImageBitmap),ct}var ht={Unknown:&quot;Unknown&quot;,Style:&quot;Style&quot;,Source:&quot;Source&quot;,Tile:&quot;Tile&quot;,Glyphs:&quot;Glyphs&quot;,SpriteImage:&quot;SpriteImage&quot;,SpriteJSON:&quot;SpriteJSON&quot;,Image:&quot;Image&quot;};&quot;function&quot;==typeof Object.freeze&amp;&amp;Object.freeze(ht);var pt,dt,gt=function(t){function e(e,r,n){401===r&amp;&amp;Y(n)&amp;&amp;(e+=&quot;: you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes&quot;),t.call(this,e),this.status=r,this.url=n,this.name=this.constructor.name,this.message=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.toString=function(){return this.name+&quot;: &quot;+this.message+&quot; (&quot;+this.status+&quot;): &quot;+this.url},e}(Error),mt=k()?function(){return self.worker&amp;&amp;self.worker.referrer}:function(){return(&quot;blob:&quot;===self.location.protocol?self.parent:self).location.href},vt=function(t,e){if(!(/^file:/.test(r=t.url)||/^file:/.test(mt())&amp;&amp;!/^\w+:/.test(r))){if(self.fetch&amp;&amp;self.Request&amp;&amp;self.AbortController&amp;&amp;self.Request.prototype.hasOwnProperty(&quot;signal&quot;))return function(t,e){var r,n=new self.AbortController,i=new self.Request(t.url,{method:t.method||&quot;GET&quot;,body:t.body,credentials:t.credentials,headers:t.headers,referrer:mt(),signal:n.signal}),a=!1,o=!1,s=(r=i.url).indexOf(&quot;sku=&quot;)&gt;0&amp;&amp;Y(r);&quot;json&quot;===t.type&amp;&amp;i.headers.set(&quot;Accept&quot;,&quot;application/json&quot;);var l=function(r,n,a){if(!o){if(r&amp;&amp;&quot;SecurityError&quot;!==r.message&amp;&amp;_(r),n&amp;&amp;a)return c(n);var l=Date.now();self.fetch(i).then((function(r){if(r.ok){var n=s?r.clone():null;return c(r,n,l)}return e(new gt(r.statusText,r.status,t.url))})).catch((function(t){20!==t.code&amp;&amp;e(new Error(t.message))}))}},c=function(r,n,s){(&quot;arrayBuffer&quot;===t.type?r.arrayBuffer():&quot;json&quot;===t.type?r.json():r.text()).then((function(t){o||(n&amp;&amp;s&amp;&amp;function(t,e,r){if(st(),Q){var n={status:e.status,statusText:e.statusText,headers:new self.Headers};e.headers.forEach((function(t,e){return n.headers.set(e,t)}));var i=M(e.headers.get(&quot;Cache-Control&quot;)||&quot;&quot;);i[&quot;no-store&quot;]||(i[&quot;max-age&quot;]&amp;&amp;n.headers.set(&quot;Expires&quot;,new Date(r+1e3*i[&quot;max-age&quot;]).toUTCString()),new Date(n.headers.get(&quot;Expires&quot;)).getTime()-r&lt;42e4||function(t,e){if(void 0===$)try{new Response(new ReadableStream),$=!0}catch(t){$=!1}$?e(t.body):t.blob().then(e)}(e,(function(e){var r=new self.Response(e,n);st(),Q&amp;&amp;Q.then((function(e){return e.put(lt(t.url),r)})).catch((function(t){return _(t.message)}))})))}}(i,n,s),a=!0,e(null,t,r.headers.get(&quot;Cache-Control&quot;),r.headers.get(&quot;Expires&quot;)))})).catch((function(t){o||e(new Error(t.message))}))};return s?function(t,e){if(st(),!Q)return e(null);var r=lt(t.url);Q.then((function(t){t.match(r).then((function(n){var i=function(t){if(!t)return!1;var e=new Date(t.headers.get(&quot;Expires&quot;)||0),r=M(t.headers.get(&quot;Cache-Control&quot;)||&quot;&quot;);return e&gt;Date.now()&amp;&amp;!r[&quot;no-cache&quot;]}(n);t.delete(r),i&amp;&amp;t.put(r,n.clone()),e(null,n,i)})).catch(e)})).catch(e)}(i,l):l(null,null),{cancel:function(){o=!0,a||n.abort()}}}(t,e);if(k()&amp;&amp;self.worker&amp;&amp;self.worker.actor)return self.worker.actor.send(&quot;getResource&quot;,t,e,void 0,!0)}var r;return function(t,e){var r=new self.XMLHttpRequest;for(var n in r.open(t.method||&quot;GET&quot;,t.url,!0),&quot;arrayBuffer&quot;===t.type&amp;&amp;(r.responseType=&quot;arraybuffer&quot;),t.headers)r.setRequestHeader(n,t.headers[n]);return&quot;json&quot;===t.type&amp;&amp;(r.responseType=&quot;text&quot;,r.setRequestHeader(&quot;Accept&quot;,&quot;application/json&quot;)),r.withCredentials=&quot;include&quot;===t.credentials,r.onerror=function(){e(new Error(r.statusText))},r.onload=function(){if((r.status&gt;=200&amp;&amp;r.status&lt;300||0===r.status)&amp;&amp;null!==r.response){var n=r.response;if(&quot;json&quot;===t.type)try{n=JSON.parse(r.response)}catch(t){return e(t)}e(null,n,r.getResponseHeader(&quot;Cache-Control&quot;),r.getResponseHeader(&quot;Expires&quot;))}else e(new gt(r.statusText,r.status,t.url))},r.send(t.body),{cancel:function(){return r.abort()}}}(t,e)},yt=function(t,e){return vt(u(t,{type:&quot;arrayBuffer&quot;}),e)},xt=function(t,e){return vt(u(t,{method:&quot;POST&quot;}),e)};pt=[],dt=0;var bt=function(t,e){if(B.supported&amp;&amp;(t.headers||(t.headers={}),t.headers.accept=&quot;image/webp,*/*&quot;),dt&gt;=F.MAX_PARALLEL_IMAGE_REQUESTS){var r={requestParameters:t,callback:e,cancelled:!1,cancel:function(){this.cancelled=!0}};return pt.push(r),r}dt++;var n=!1,i=function(){if(!n)for(n=!0,dt--;pt.length&amp;&amp;dt&lt;F.MAX_PARALLEL_IMAGE_REQUESTS;){var t=pt.shift();t.cancelled||(t.cancel=bt(t.requestParameters,t.callback).cancel)}},a=yt(t,(function(t,r,n,a){i(),t?e(t):r&amp;&amp;(ft()?function(t,e){var r=new self.Blob([new Uint8Array(t)],{type:&quot;image/png&quot;});self.createImageBitmap(r).then((function(t){e(null,t)})).catch((function(t){e(new Error(&quot;Could not load image because of &quot;+t.message+&quot;. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.&quot;))}))}(r,e):function(t,e,r,n){var i=new self.Image,a=self.URL;i.onload=function(){e(null,i),a.revokeObjectURL(i.src)},i.onerror=function(){return e(new Error(&quot;Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.&quot;))};var o=new self.Blob([new Uint8Array(t)],{type:&quot;image/png&quot;});i.cacheControl=r,i.expires=n,i.src=t.byteLength?a.createObjectURL(o):&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=&quot;}(r,e,n,a))}));return{cancel:function(){a.cancel(),i()}}};function _t(t,e,r){r[t]&amp;&amp;-1!==r[t].indexOf(e)||(r[t]=r[t]||[],r[t].push(e))}function wt(t,e,r){if(r&amp;&amp;r[t]){var n=r[t].indexOf(e);-1!==n&amp;&amp;r[t].splice(n,1)}}var Tt=function(t,e){void 0===e&amp;&amp;(e={}),u(this,e),this.type=t},kt=function(t){function e(e,r){void 0===r&amp;&amp;(r={}),t.call(this,&quot;error&quot;,u({error:e},r))}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(Tt),Mt=function(){};Mt.prototype.on=function(t,e){return this._listeners=this._listeners||{},_t(t,e,this._listeners),this},Mt.prototype.off=function(t,e){return wt(t,e,this._listeners),wt(t,e,this._oneTimeListeners),this},Mt.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},_t(t,e,this._oneTimeListeners),this},Mt.prototype.fire=function(t,e){&quot;string&quot;==typeof t&amp;&amp;(t=new Tt(t,e||{}));var r=t.type;if(this.listens(r)){t.target=this;for(var n=0,i=this._listeners&amp;&amp;this._listeners[r]?this._listeners[r].slice():[];n&lt;i.length;n+=1)i[n].call(this,t);for(var a=0,o=this._oneTimeListeners&amp;&amp;this._oneTimeListeners[r]?this._oneTimeListeners[r].slice():[];a&lt;o.length;a+=1){var s=o[a];wt(r,s,this._oneTimeListeners),s.call(this,t)}var l=this._eventedParent;l&amp;&amp;(u(t,&quot;function&quot;==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),l.fire(t))}else t instanceof kt&amp;&amp;console.error(t.error);return this},Mt.prototype.listens=function(t){return this._listeners&amp;&amp;this._listeners[t]&amp;&amp;this._listeners[t].length&gt;0||this._oneTimeListeners&amp;&amp;this._oneTimeListeners[t]&amp;&amp;this._oneTimeListeners[t].length&gt;0||this._eventedParent&amp;&amp;this._eventedParent.listens(t)},Mt.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var At={$version:8,$root:{version:{required:!0,type:&quot;enum&quot;,values:[8]},name:{type:&quot;string&quot;},metadata:{type:&quot;*&quot;},center:{type:&quot;array&quot;,value:&quot;number&quot;},zoom:{type:&quot;number&quot;},bearing:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;},pitch:{type:&quot;number&quot;,default:0,units:&quot;degrees&quot;},light:{type:&quot;light&quot;},sources:{required:!0,type:&quot;sources&quot;},sprite:{type:&quot;string&quot;},glyphs:{type:&quot;string&quot;},transition:{type:&quot;transition&quot;},layers:{required:!0,type:&quot;array&quot;,value:&quot;layer&quot;}},sources:{&quot;*&quot;:{type:&quot;source&quot;}},source:[&quot;source_vector&quot;,&quot;source_raster&quot;,&quot;source_raster_dem&quot;,&quot;source_geojson&quot;,&quot;source_video&quot;,&quot;source_image&quot;],source_vector:{type:{required:!0,type:&quot;enum&quot;,values:{vector:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:&quot;enum&quot;,values:{xyz:{},tms:{}},default:&quot;xyz&quot;},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},attribution:{type:&quot;string&quot;},promoteId:{type:&quot;promoteId&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_raster:{type:{required:!0,type:&quot;enum&quot;,values:{raster:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},tileSize:{type:&quot;number&quot;,default:512,units:&quot;pixels&quot;},scheme:{type:&quot;enum&quot;,values:{xyz:{},tms:{}},default:&quot;xyz&quot;},attribution:{type:&quot;string&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_raster_dem:{type:{required:!0,type:&quot;enum&quot;,values:{&quot;raster-dem&quot;:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},tileSize:{type:&quot;number&quot;,default:512,units:&quot;pixels&quot;},attribution:{type:&quot;string&quot;},encoding:{type:&quot;enum&quot;,values:{terrarium:{},mapbox:{}},default:&quot;mapbox&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_geojson:{type:{required:!0,type:&quot;enum&quot;,values:{geojson:{}}},data:{type:&quot;*&quot;},maxzoom:{type:&quot;number&quot;,default:18},attribution:{type:&quot;string&quot;},buffer:{type:&quot;number&quot;,default:128,maximum:512,minimum:0},tolerance:{type:&quot;number&quot;,default:.375},cluster:{type:&quot;boolean&quot;,default:!1},clusterRadius:{type:&quot;number&quot;,default:50,minimum:0},clusterMaxZoom:{type:&quot;number&quot;},clusterProperties:{type:&quot;*&quot;},lineMetrics:{type:&quot;boolean&quot;,default:!1},generateId:{type:&quot;boolean&quot;,default:!1},promoteId:{type:&quot;promoteId&quot;}},source_video:{type:{required:!0,type:&quot;enum&quot;,values:{video:{}}},urls:{required:!0,type:&quot;array&quot;,value:&quot;string&quot;},coordinates:{required:!0,type:&quot;array&quot;,length:4,value:{type:&quot;array&quot;,length:2,value:&quot;number&quot;}}},source_image:{type:{required:!0,type:&quot;enum&quot;,values:{image:{}}},url:{required:!0,type:&quot;string&quot;},coordinates:{required:!0,type:&quot;array&quot;,length:4,value:{type:&quot;array&quot;,length:2,value:&quot;number&quot;}}},layer:{id:{type:&quot;string&quot;,required:!0},type:{type:&quot;enum&quot;,values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},&quot;fill-extrusion&quot;:{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:&quot;*&quot;},source:{type:&quot;string&quot;},&quot;source-layer&quot;:{type:&quot;string&quot;},minzoom:{type:&quot;number&quot;,minimum:0,maximum:24},maxzoom:{type:&quot;number&quot;,minimum:0,maximum:24},filter:{type:&quot;filter&quot;},layout:{type:&quot;layout&quot;},paint:{type:&quot;paint&quot;}},layout:[&quot;layout_fill&quot;,&quot;layout_line&quot;,&quot;layout_circle&quot;,&quot;layout_heatmap&quot;,&quot;layout_fill-extrusion&quot;,&quot;layout_symbol&quot;,&quot;layout_raster&quot;,&quot;layout_hillshade&quot;,&quot;layout_background&quot;],layout_background:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_fill:{&quot;fill-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_circle:{&quot;circle-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_heatmap:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},&quot;layout_fill-extrusion&quot;:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_line:{&quot;line-cap&quot;:{type:&quot;enum&quot;,values:{butt:{},round:{},square:{}},default:&quot;butt&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-join&quot;:{type:&quot;enum&quot;,values:{bevel:{},round:{},miter:{}},default:&quot;miter&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-miter-limit&quot;:{type:&quot;number&quot;,default:2,requires:[{&quot;line-join&quot;:&quot;miter&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-round-limit&quot;:{type:&quot;number&quot;,default:1.05,requires:[{&quot;line-join&quot;:&quot;round&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_symbol:{&quot;symbol-placement&quot;:{type:&quot;enum&quot;,values:{point:{},line:{},&quot;line-center&quot;:{}},default:&quot;point&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-spacing&quot;:{type:&quot;number&quot;,default:250,minimum:1,units:&quot;pixels&quot;,requires:[{&quot;symbol-placement&quot;:&quot;line&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-avoid-edges&quot;:{type:&quot;boolean&quot;,default:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;symbol-z-order&quot;:{type:&quot;enum&quot;,values:{auto:{},&quot;viewport-y&quot;:{},source:{}},default:&quot;auto&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-allow-overlap&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-ignore-placement&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-optional&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;,&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-rotation-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-size&quot;:{type:&quot;number&quot;,default:1,minimum:0,units:&quot;factor of the original icon size&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-text-fit&quot;:{type:&quot;enum&quot;,values:{none:{},width:{},height:{},both:{}},default:&quot;none&quot;,requires:[&quot;icon-image&quot;,&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-text-fit-padding&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[0,0,0,0],units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;,&quot;text-field&quot;,{&quot;icon-text-fit&quot;:[&quot;both&quot;,&quot;width&quot;,&quot;height&quot;]}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-image&quot;:{type:&quot;resolvedImage&quot;,tokens:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-padding&quot;:{type:&quot;number&quot;,default:2,minimum:0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-keep-upright&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;,{&quot;icon-rotation-alignment&quot;:&quot;map&quot;},{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-offset&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-anchor&quot;:{type:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},default:&quot;center&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-rotation-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-field&quot;:{type:&quot;formatted&quot;,default:&quot;&quot;,tokens:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-font&quot;:{type:&quot;array&quot;,value:&quot;string&quot;,default:[&quot;Open Sans Regular&quot;,&quot;Arial Unicode MS Regular&quot;],requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-size&quot;:{type:&quot;number&quot;,default:16,minimum:0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-max-width&quot;:{type:&quot;number&quot;,default:10,minimum:0,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-line-height&quot;:{type:&quot;number&quot;,default:1.2,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-letter-spacing&quot;:{type:&quot;number&quot;,default:0,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-justify&quot;:{type:&quot;enum&quot;,values:{auto:{},left:{},center:{},right:{}},default:&quot;center&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-radial-offset&quot;:{type:&quot;number&quot;,units:&quot;ems&quot;,default:0,requires:[&quot;text-field&quot;],&quot;property-type&quot;:&quot;data-driven&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]}},&quot;text-variable-anchor&quot;:{type:&quot;array&quot;,value:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;point&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-anchor&quot;:{type:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},default:&quot;center&quot;,requires:[&quot;text-field&quot;,{&quot;!&quot;:&quot;text-variable-anchor&quot;}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-max-angle&quot;:{type:&quot;number&quot;,default:45,units:&quot;degrees&quot;,requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-writing-mode&quot;:{type:&quot;array&quot;,value:&quot;enum&quot;,values:{horizontal:{},vertical:{}},requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;point&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-padding&quot;:{type:&quot;number&quot;,default:2,minimum:0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-keep-upright&quot;:{type:&quot;boolean&quot;,default:!0,requires:[&quot;text-field&quot;,{&quot;text-rotation-alignment&quot;:&quot;map&quot;},{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-transform&quot;:{type:&quot;enum&quot;,values:{none:{},uppercase:{},lowercase:{}},default:&quot;none&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-offset&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,units:&quot;ems&quot;,length:2,default:[0,0],requires:[&quot;text-field&quot;,{&quot;!&quot;:&quot;text-radial-offset&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-allow-overlap&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-ignore-placement&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-optional&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;,&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_raster:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_hillshade:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},filter:{type:&quot;array&quot;,value:&quot;*&quot;},filter_operator:{type:&quot;enum&quot;,values:{&quot;==&quot;:{},&quot;!=&quot;:{},&quot;&gt;&quot;:{},&quot;&gt;=&quot;:{},&quot;&lt;&quot;:{},&quot;&lt;=&quot;:{},in:{},&quot;!in&quot;:{},all:{},any:{},none:{},has:{},&quot;!has&quot;:{},within:{}}},geometry_type:{type:&quot;enum&quot;,values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:&quot;expression&quot;},stops:{type:&quot;array&quot;,value:&quot;function_stop&quot;},base:{type:&quot;number&quot;,default:1,minimum:0},property:{type:&quot;string&quot;,default:&quot;$zoom&quot;},type:{type:&quot;enum&quot;,values:{identity:{},exponential:{},interval:{},categorical:{}},default:&quot;exponential&quot;},colorSpace:{type:&quot;enum&quot;,values:{rgb:{},lab:{},hcl:{}},default:&quot;rgb&quot;},default:{type:&quot;*&quot;,required:!1}},function_stop:{type:&quot;array&quot;,minimum:0,maximum:24,value:[&quot;number&quot;,&quot;color&quot;],length:2},expression:{type:&quot;array&quot;,value:&quot;*&quot;,minimum:1},expression_name:{type:&quot;enum&quot;,values:{let:{group:&quot;Variable binding&quot;},var:{group:&quot;Variable binding&quot;},literal:{group:&quot;Types&quot;},array:{group:&quot;Types&quot;},at:{group:&quot;Lookup&quot;},in:{group:&quot;Lookup&quot;},&quot;index-of&quot;:{group:&quot;Lookup&quot;},slice:{group:&quot;Lookup&quot;},case:{group:&quot;Decision&quot;},match:{group:&quot;Decision&quot;},coalesce:{group:&quot;Decision&quot;},step:{group:&quot;Ramps, scales, curves&quot;},interpolate:{group:&quot;Ramps, scales, curves&quot;},&quot;interpolate-hcl&quot;:{group:&quot;Ramps, scales, curves&quot;},&quot;interpolate-lab&quot;:{group:&quot;Ramps, scales, curves&quot;},ln2:{group:&quot;Math&quot;},pi:{group:&quot;Math&quot;},e:{group:&quot;Math&quot;},typeof:{group:&quot;Types&quot;},string:{group:&quot;Types&quot;},number:{group:&quot;Types&quot;},boolean:{group:&quot;Types&quot;},object:{group:&quot;Types&quot;},collator:{group:&quot;Types&quot;},format:{group:&quot;Types&quot;},image:{group:&quot;Types&quot;},&quot;number-format&quot;:{group:&quot;Types&quot;},&quot;to-string&quot;:{group:&quot;Types&quot;},&quot;to-number&quot;:{group:&quot;Types&quot;},&quot;to-boolean&quot;:{group:&quot;Types&quot;},&quot;to-rgba&quot;:{group:&quot;Color&quot;},&quot;to-color&quot;:{group:&quot;Types&quot;},rgb:{group:&quot;Color&quot;},rgba:{group:&quot;Color&quot;},get:{group:&quot;Lookup&quot;},has:{group:&quot;Lookup&quot;},length:{group:&quot;Lookup&quot;},properties:{group:&quot;Feature data&quot;},&quot;feature-state&quot;:{group:&quot;Feature data&quot;},&quot;geometry-type&quot;:{group:&quot;Feature data&quot;},id:{group:&quot;Feature data&quot;},zoom:{group:&quot;Zoom&quot;},&quot;heatmap-density&quot;:{group:&quot;Heatmap&quot;},&quot;line-progress&quot;:{group:&quot;Feature data&quot;},accumulated:{group:&quot;Feature data&quot;},&quot;+&quot;:{group:&quot;Math&quot;},&quot;*&quot;:{group:&quot;Math&quot;},&quot;-&quot;:{group:&quot;Math&quot;},&quot;/&quot;:{group:&quot;Math&quot;},&quot;%&quot;:{group:&quot;Math&quot;},&quot;^&quot;:{group:&quot;Math&quot;},sqrt:{group:&quot;Math&quot;},log10:{group:&quot;Math&quot;},ln:{group:&quot;Math&quot;},log2:{group:&quot;Math&quot;},sin:{group:&quot;Math&quot;},cos:{group:&quot;Math&quot;},tan:{group:&quot;Math&quot;},asin:{group:&quot;Math&quot;},acos:{group:&quot;Math&quot;},atan:{group:&quot;Math&quot;},min:{group:&quot;Math&quot;},max:{group:&quot;Math&quot;},round:{group:&quot;Math&quot;},abs:{group:&quot;Math&quot;},ceil:{group:&quot;Math&quot;},floor:{group:&quot;Math&quot;},distance:{group:&quot;Math&quot;},&quot;==&quot;:{group:&quot;Decision&quot;},&quot;!=&quot;:{group:&quot;Decision&quot;},&quot;&gt;&quot;:{group:&quot;Decision&quot;},&quot;&lt;&quot;:{group:&quot;Decision&quot;},&quot;&gt;=&quot;:{group:&quot;Decision&quot;},&quot;&lt;=&quot;:{group:&quot;Decision&quot;},all:{group:&quot;Decision&quot;},any:{group:&quot;Decision&quot;},&quot;!&quot;:{group:&quot;Decision&quot;},within:{group:&quot;Decision&quot;},&quot;is-supported-script&quot;:{group:&quot;String&quot;},upcase:{group:&quot;String&quot;},downcase:{group:&quot;String&quot;},concat:{group:&quot;String&quot;},&quot;resolved-locale&quot;:{group:&quot;String&quot;}}},light:{anchor:{type:&quot;enum&quot;,default:&quot;viewport&quot;,values:{map:{},viewport:{}},&quot;property-type&quot;:&quot;data-constant&quot;,transition:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]}},position:{type:&quot;array&quot;,default:[1.15,210,30],length:3,value:&quot;number&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]}},color:{type:&quot;color&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,default:&quot;#ffffff&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},transition:!0},intensity:{type:&quot;number&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},transition:!0}},paint:[&quot;paint_fill&quot;,&quot;paint_line&quot;,&quot;paint_circle&quot;,&quot;paint_heatmap&quot;,&quot;paint_fill-extrusion&quot;,&quot;paint_symbol&quot;,&quot;paint_raster&quot;,&quot;paint_hillshade&quot;,&quot;paint_background&quot;],paint_fill:{&quot;fill-antialias&quot;:{type:&quot;boolean&quot;,default:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-outline-color&quot;:{type:&quot;color&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-pattern&quot;},{&quot;fill-antialias&quot;:!0}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;fill-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;}},&quot;paint_fill-extrusion&quot;:{&quot;fill-extrusion-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-extrusion-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;fill-extrusion-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;},&quot;fill-extrusion-height&quot;:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;meters&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-base&quot;:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;meters&quot;,transition:!0,requires:[&quot;fill-extrusion-height&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-vertical-gradient&quot;:{type:&quot;boolean&quot;,default:!0,transition:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_line:{&quot;line-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;line-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;line-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-width&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-gap-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-offset&quot;:{type:&quot;number&quot;,default:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-dasharray&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,minimum:0,transition:!0,units:&quot;line widths&quot;,requires:[{&quot;!&quot;:&quot;line-pattern&quot;}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;cross-faded&quot;},&quot;line-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;},&quot;line-gradient&quot;:{type:&quot;color&quot;,transition:!1,requires:[{&quot;!&quot;:&quot;line-dasharray&quot;},{&quot;!&quot;:&quot;line-pattern&quot;},{source:&quot;geojson&quot;,has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:[&quot;line-progress&quot;]},&quot;property-type&quot;:&quot;color-ramp&quot;}},paint_circle:{&quot;circle-radius&quot;:{type:&quot;number&quot;,default:5,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-blur&quot;:{type:&quot;number&quot;,default:0,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;circle-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-pitch-scale&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;viewport&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-stroke-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-stroke-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-stroke-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;}},paint_heatmap:{&quot;heatmap-radius&quot;:{type:&quot;number&quot;,default:30,minimum:1,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;heatmap-weight&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;heatmap-intensity&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;heatmap-color&quot;:{type:&quot;color&quot;,default:[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;heatmap-density&quot;],0,&quot;rgba(0, 0, 255, 0)&quot;,.1,&quot;royalblue&quot;,.3,&quot;cyan&quot;,.5,&quot;lime&quot;,.7,&quot;yellow&quot;,1,&quot;red&quot;],transition:!1,expression:{interpolated:!0,parameters:[&quot;heatmap-density&quot;]},&quot;property-type&quot;:&quot;color-ramp&quot;},&quot;heatmap-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_symbol:{&quot;icon-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-color&quot;:{type:&quot;color&quot;,default:&quot;rgba(0, 0, 0, 0)&quot;,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;icon-image&quot;,&quot;icon-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,overridable:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-color&quot;:{type:&quot;color&quot;,default:&quot;rgba(0, 0, 0, 0)&quot;,transition:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;text-field&quot;,&quot;text-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_raster:{&quot;raster-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-hue-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,transition:!0,units:&quot;degrees&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-brightness-min&quot;:{type:&quot;number&quot;,default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-brightness-max&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-saturation&quot;:{type:&quot;number&quot;,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-contrast&quot;:{type:&quot;number&quot;,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-resampling&quot;:{type:&quot;enum&quot;,values:{linear:{},nearest:{}},default:&quot;linear&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-fade-duration&quot;:{type:&quot;number&quot;,default:300,minimum:0,transition:!1,units:&quot;milliseconds&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_hillshade:{&quot;hillshade-illumination-direction&quot;:{type:&quot;number&quot;,default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-illumination-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;viewport&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-exaggeration&quot;:{type:&quot;number&quot;,default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-shadow-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-highlight-color&quot;:{type:&quot;color&quot;,default:&quot;#FFFFFF&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-accent-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_background:{&quot;background-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;background-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;background-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;cross-faded&quot;},&quot;background-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},transition:{duration:{type:&quot;number&quot;,default:300,minimum:0,units:&quot;milliseconds&quot;},delay:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;milliseconds&quot;}},&quot;property-type&quot;:{&quot;data-driven&quot;:{type:&quot;property-type&quot;},&quot;cross-faded&quot;:{type:&quot;property-type&quot;},&quot;cross-faded-data-driven&quot;:{type:&quot;property-type&quot;},&quot;color-ramp&quot;:{type:&quot;property-type&quot;},&quot;data-constant&quot;:{type:&quot;property-type&quot;},constant:{type:&quot;property-type&quot;}},promoteId:{&quot;*&quot;:{type:&quot;string&quot;}}},St=function(t,e,r,n){this.message=(t?t+&quot;: &quot;:&quot;&quot;)+r,n&amp;&amp;(this.identifier=n),null!=e&amp;&amp;e.__line__&amp;&amp;(this.line=e.__line__)};function Et(t){var e=t.value;return e?[new St(t.key,e,&quot;constants have been deprecated as of v8&quot;)]:[]}function Ct(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}function Lt(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function It(t){if(Array.isArray(t))return t.map(It);if(t instanceof Object&amp;&amp;!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var r in t)e[r]=It(t[r]);return e}return Lt(t)}var Pt=function(t){function e(e,r){t.call(this,r),this.message=r,this.key=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(Error),zt=function(t,e){void 0===e&amp;&amp;(e=[]),this.parent=t,this.bindings={};for(var r=0,n=e;r&lt;n.length;r+=1){var i=n[r];this.bindings[i[0]]=i[1]}};zt.prototype.concat=function(t){return new zt(this,t)},zt.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+&quot; not found in scope.&quot;)},zt.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&amp;&amp;this.parent.has(t)};var Ot={kind:&quot;null&quot;},Dt={kind:&quot;number&quot;},Rt={kind:&quot;string&quot;},Ft={kind:&quot;boolean&quot;},Bt={kind:&quot;color&quot;},Nt={kind:&quot;object&quot;},jt={kind:&quot;value&quot;},Ut={kind:&quot;collator&quot;},Vt={kind:&quot;formatted&quot;},qt={kind:&quot;resolvedImage&quot;};function Ht(t,e){return{kind:&quot;array&quot;,itemType:t,N:e}}function Gt(t){if(&quot;array&quot;===t.kind){var e=Gt(t.itemType);return&quot;number&quot;==typeof t.N?&quot;array&lt;&quot;+e+&quot;, &quot;+t.N+&quot;&gt;&quot;:&quot;value&quot;===t.itemType.kind?&quot;array&quot;:&quot;array&lt;&quot;+e+&quot;&gt;&quot;}return t.kind}var Yt=[Ot,Dt,Rt,Ft,Bt,Vt,Nt,Ht(jt),qt];function Wt(t,e){if(&quot;error&quot;===e.kind)return null;if(&quot;array&quot;===t.kind){if(&quot;array&quot;===e.kind&amp;&amp;(0===e.N&amp;&amp;&quot;value&quot;===e.itemType.kind||!Wt(t.itemType,e.itemType))&amp;&amp;(&quot;number&quot;!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(&quot;value&quot;===t.kind)for(var r=0,n=Yt;r&lt;n.length;r+=1)if(!Wt(n[r],e))return null}return&quot;Expected &quot;+Gt(t)+&quot; but found &quot;+Gt(e)+&quot; instead.&quot;}function Xt(t,e){return e.some((function(e){return e.kind===t.kind}))}function Zt(t,e){return e.some((function(e){return&quot;null&quot;===e?null===t:&quot;array&quot;===e?Array.isArray(t):&quot;object&quot;===e?t&amp;&amp;!Array.isArray(t)&amp;&amp;&quot;object&quot;==typeof t:e===typeof t}))}var Jt=e((function(t,e){var r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function n(t){return(t=Math.round(t))&lt;0?0:t&gt;255?255:t}function i(t){return n(&quot;%&quot;===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function a(t){return(e=&quot;%&quot;===t[t.length-1]?parseFloat(t)/100:parseFloat(t))&lt;0?0:e&gt;1?1:e;var e}function o(t,e,r){return r&lt;0?r+=1:r&gt;1&amp;&amp;(r-=1),6*r&lt;1?t+(e-t)*r*6:2*r&lt;1?e:3*r&lt;2?t+(e-t)*(2/3-r)*6:t}try{e.parseCSSColor=function(t){var e,s=t.replace(/ /g,&quot;&quot;).toLowerCase();if(s in r)return r[s].slice();if(&quot;#&quot;===s[0])return 4===s.length?(e=parseInt(s.substr(1),16))&gt;=0&amp;&amp;e&lt;=4095?[(3840&amp;e)&gt;&gt;4|(3840&amp;e)&gt;&gt;8,240&amp;e|(240&amp;e)&gt;&gt;4,15&amp;e|(15&amp;e)&lt;&lt;4,1]:null:7===s.length&amp;&amp;(e=parseInt(s.substr(1),16))&gt;=0&amp;&amp;e&lt;=16777215?[(16711680&amp;e)&gt;&gt;16,(65280&amp;e)&gt;&gt;8,255&amp;e,1]:null;var l=s.indexOf(&quot;(&quot;),c=s.indexOf(&quot;)&quot;);if(-1!==l&amp;&amp;c+1===s.length){var u=s.substr(0,l),f=s.substr(l+1,c-(l+1)).split(&quot;,&quot;),h=1;switch(u){case&quot;rgba&quot;:if(4!==f.length)return null;h=a(f.pop());case&quot;rgb&quot;:return 3!==f.length?null:[i(f[0]),i(f[1]),i(f[2]),h];case&quot;hsla&quot;:if(4!==f.length)return null;h=a(f.pop());case&quot;hsl&quot;:if(3!==f.length)return null;var p=(parseFloat(f[0])%360+360)%360/360,d=a(f[1]),g=a(f[2]),m=g&lt;=.5?g*(d+1):g+d-g*d,v=2*g-m;return[n(255*o(v,m,p+1/3)),n(255*o(v,m,p)),n(255*o(v,m,p-1/3)),h];default:return null}}return null}}catch(t){}})).parseCSSColor,Kt=function(t,e,r,n){void 0===n&amp;&amp;(n=1),this.r=t,this.g=e,this.b=r,this.a=n};Kt.parse=function(t){if(t){if(t instanceof Kt)return t;if(&quot;string&quot;==typeof t){var e=Jt(t);if(e)return new Kt(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},Kt.prototype.toString=function(){var t=this.toArray(),e=t[1],r=t[2],n=t[3];return&quot;rgba(&quot;+Math.round(t[0])+&quot;,&quot;+Math.round(e)+&quot;,&quot;+Math.round(r)+&quot;,&quot;+n+&quot;)&quot;},Kt.prototype.toArray=function(){var t=this.a;return 0===t?[0,0,0,0]:[255*this.r/t,255*this.g/t,255*this.b/t,t]},Kt.black=new Kt(0,0,0,1),Kt.white=new Kt(1,1,1,1),Kt.transparent=new Kt(0,0,0,0),Kt.red=new Kt(1,0,0,1);var Qt=function(t,e,r){this.sensitivity=t?e?&quot;variant&quot;:&quot;case&quot;:e?&quot;accent&quot;:&quot;base&quot;,this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:&quot;search&quot;})};Qt.prototype.compare=function(t,e){return this.collator.compare(t,e)},Qt.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var $t=function(t,e,r,n,i){this.text=t,this.image=e,this.scale=r,this.fontStack=n,this.textColor=i},te=function(t){this.sections=t};te.fromString=function(t){return new te([new $t(t,null,null,null,null)])},te.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&amp;&amp;0!==t.image.name.length}))},te.factory=function(t){return t instanceof te?t:te.fromString(t)},te.prototype.toString=function(){return 0===this.sections.length?&quot;&quot;:this.sections.map((function(t){return t.text})).join(&quot;&quot;)},te.prototype.serialize=function(){for(var t=[&quot;format&quot;],e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];if(n.image)t.push([&quot;image&quot;,n.image.name]);else{t.push(n.text);var i={};n.fontStack&amp;&amp;(i[&quot;text-font&quot;]=[&quot;literal&quot;,n.fontStack.split(&quot;,&quot;)]),n.scale&amp;&amp;(i[&quot;font-scale&quot;]=n.scale),n.textColor&amp;&amp;(i[&quot;text-color&quot;]=[&quot;rgba&quot;].concat(n.textColor.toArray())),t.push(i)}}return t};var ee=function(t){this.name=t.name,this.available=t.available};function re(t,e,r,n){return&quot;number&quot;==typeof t&amp;&amp;t&gt;=0&amp;&amp;t&lt;=255&amp;&amp;&quot;number&quot;==typeof e&amp;&amp;e&gt;=0&amp;&amp;e&lt;=255&amp;&amp;&quot;number&quot;==typeof r&amp;&amp;r&gt;=0&amp;&amp;r&lt;=255?void 0===n||&quot;number&quot;==typeof n&amp;&amp;n&gt;=0&amp;&amp;n&lt;=1?null:&quot;Invalid rgba value [&quot;+[t,e,r,n].join(&quot;, &quot;)+&quot;]: 'a' must be between 0 and 1.&quot;:&quot;Invalid rgba value [&quot;+(&quot;number&quot;==typeof n?[t,e,r,n]:[t,e,r]).join(&quot;, &quot;)+&quot;]: 'r', 'g', and 'b' must be between 0 and 255.&quot;}function ne(t){if(null===t)return!0;if(&quot;string&quot;==typeof t)return!0;if(&quot;boolean&quot;==typeof t)return!0;if(&quot;number&quot;==typeof t)return!0;if(t instanceof Kt)return!0;if(t instanceof Qt)return!0;if(t instanceof te)return!0;if(t instanceof ee)return!0;if(Array.isArray(t)){for(var e=0,r=t;e&lt;r.length;e+=1)if(!ne(r[e]))return!1;return!0}if(&quot;object&quot;==typeof t){for(var n in t)if(!ne(t[n]))return!1;return!0}return!1}function ie(t){if(null===t)return Ot;if(&quot;string&quot;==typeof t)return Rt;if(&quot;boolean&quot;==typeof t)return Ft;if(&quot;number&quot;==typeof t)return Dt;if(t instanceof Kt)return Bt;if(t instanceof Qt)return Ut;if(t instanceof te)return Vt;if(t instanceof ee)return qt;if(Array.isArray(t)){for(var e,r=t.length,n=0,i=t;n&lt;i.length;n+=1){var a=ie(i[n]);if(e){if(e===a)continue;e=jt;break}e=a}return Ht(e||jt,r)}return Nt}function ae(t){var e=typeof t;return null===t?&quot;&quot;:&quot;string&quot;===e||&quot;number&quot;===e||&quot;boolean&quot;===e?String(t):t instanceof Kt||t instanceof te||t instanceof ee?t.toString():JSON.stringify(t)}ee.prototype.toString=function(){return this.name},ee.fromString=function(t){return t?new ee({name:t,available:!1}):null},ee.prototype.serialize=function(){return[&quot;image&quot;,this.name]};var oe=function(t,e){this.type=t,this.value=e};oe.parse=function(t,e){if(2!==t.length)return e.error(&quot;'literal' expression requires exactly one argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);if(!ne(t[1]))return e.error(&quot;invalid value&quot;);var r=t[1],n=ie(r),i=e.expectedType;return&quot;array&quot;!==n.kind||0!==n.N||!i||&quot;array&quot;!==i.kind||&quot;number&quot;==typeof i.N&amp;&amp;0!==i.N||(n=i),new oe(n,r)},oe.prototype.evaluate=function(){return this.value},oe.prototype.eachChild=function(){},oe.prototype.outputDefined=function(){return!0},oe.prototype.serialize=function(){return&quot;array&quot;===this.type.kind||&quot;object&quot;===this.type.kind?[&quot;literal&quot;,this.value]:this.value instanceof Kt?[&quot;rgba&quot;].concat(this.value.toArray()):this.value instanceof te?this.value.serialize():this.value};var se=function(t){this.name=&quot;ExpressionEvaluationError&quot;,this.message=t};se.prototype.toJSON=function(){return this.message};var le={string:Rt,number:Dt,boolean:Ft,object:Nt},ce=function(t,e){this.type=t,this.args=e};ce.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r,n=1,i=t[0];if(&quot;array&quot;===i){var a,o;if(t.length&gt;2){var s=t[1];if(&quot;string&quot;!=typeof s||!(s in le)||&quot;object&quot;===s)return e.error('The item type argument of &quot;array&quot; must be one of string, number, boolean',1);a=le[s],n++}else a=jt;if(t.length&gt;3){if(null!==t[2]&amp;&amp;(&quot;number&quot;!=typeof t[2]||t[2]&lt;0||t[2]!==Math.floor(t[2])))return e.error('The length argument to &quot;array&quot; must be a positive integer literal',2);o=t[2],n++}r=Ht(a,o)}else r=le[i];for(var l=[];n&lt;t.length;n++){var c=e.parse(t[n],n,jt);if(!c)return null;l.push(c)}return new ce(r,l)},ce.prototype.evaluate=function(t){for(var e=0;e&lt;this.args.length;e++){var r=this.args[e].evaluate(t);if(!Wt(this.type,ie(r)))return r;if(e===this.args.length-1)throw new se(&quot;Expected value to be of type &quot;+Gt(this.type)+&quot;, but found &quot;+Gt(ie(r))+&quot; instead.&quot;)}return null},ce.prototype.eachChild=function(t){this.args.forEach(t)},ce.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ce.prototype.serialize=function(){var t=this.type,e=[t.kind];if(&quot;array&quot;===t.kind){var r=t.itemType;if(&quot;string&quot;===r.kind||&quot;number&quot;===r.kind||&quot;boolean&quot;===r.kind){e.push(r.kind);var n=t.N;(&quot;number&quot;==typeof n||this.args.length&gt;1)&amp;&amp;e.push(n)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var ue=function(t){this.type=Vt,this.sections=t};ue.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r=t[1];if(!Array.isArray(r)&amp;&amp;&quot;object&quot;==typeof r)return e.error(&quot;First argument must be an image or text section.&quot;);for(var n=[],i=!1,a=1;a&lt;=t.length-1;++a){var o=t[a];if(i&amp;&amp;&quot;object&quot;==typeof o&amp;&amp;!Array.isArray(o)){i=!1;var s=null;if(o[&quot;font-scale&quot;]&amp;&amp;!(s=e.parse(o[&quot;font-scale&quot;],1,Dt)))return null;var l=null;if(o[&quot;text-font&quot;]&amp;&amp;!(l=e.parse(o[&quot;text-font&quot;],1,Ht(Rt))))return null;var c=null;if(o[&quot;text-color&quot;]&amp;&amp;!(c=e.parse(o[&quot;text-color&quot;],1,Bt)))return null;var u=n[n.length-1];u.scale=s,u.font=l,u.textColor=c}else{var f=e.parse(t[a],1,jt);if(!f)return null;var h=f.type.kind;if(&quot;string&quot;!==h&amp;&amp;&quot;value&quot;!==h&amp;&amp;&quot;null&quot;!==h&amp;&amp;&quot;resolvedImage&quot;!==h)return e.error(&quot;Formatted text type must be 'string', 'value', 'image' or 'null'.&quot;);i=!0,n.push({content:f,scale:null,font:null,textColor:null})}}return new ue(n)},ue.prototype.evaluate=function(t){return new te(this.sections.map((function(e){var r=e.content.evaluate(t);return ie(r)===qt?new $t(&quot;&quot;,r,null,null,null):new $t(ae(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(&quot;,&quot;):null,e.textColor?e.textColor.evaluate(t):null)})))},ue.prototype.eachChild=function(t){for(var e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];t(n.content),n.scale&amp;&amp;t(n.scale),n.font&amp;&amp;t(n.font),n.textColor&amp;&amp;t(n.textColor)}},ue.prototype.outputDefined=function(){return!1},ue.prototype.serialize=function(){for(var t=[&quot;format&quot;],e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];t.push(n.content.serialize());var i={};n.scale&amp;&amp;(i[&quot;font-scale&quot;]=n.scale.serialize()),n.font&amp;&amp;(i[&quot;text-font&quot;]=n.font.serialize()),n.textColor&amp;&amp;(i[&quot;text-color&quot;]=n.textColor.serialize()),t.push(i)}return t};var fe=function(t){this.type=qt,this.input=t};fe.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected two arguments.&quot;);var r=e.parse(t[1],1,Rt);return r?new fe(r):e.error(&quot;No image name provided.&quot;)},fe.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=ee.fromString(e);return r&amp;&amp;t.availableImages&amp;&amp;(r.available=t.availableImages.indexOf(e)&gt;-1),r},fe.prototype.eachChild=function(t){t(this.input)},fe.prototype.outputDefined=function(){return!1},fe.prototype.serialize=function(){return[&quot;image&quot;,this.input.serialize()]};var he={&quot;to-boolean&quot;:Ft,&quot;to-color&quot;:Bt,&quot;to-number&quot;:Dt,&quot;to-string&quot;:Rt},pe=function(t,e){this.type=t,this.args=e};pe.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r=t[0];if((&quot;to-boolean&quot;===r||&quot;to-string&quot;===r)&amp;&amp;2!==t.length)return e.error(&quot;Expected one argument.&quot;);for(var n=he[r],i=[],a=1;a&lt;t.length;a++){var o=e.parse(t[a],a,jt);if(!o)return null;i.push(o)}return new pe(n,i)},pe.prototype.evaluate=function(t){if(&quot;boolean&quot;===this.type.kind)return Boolean(this.args[0].evaluate(t));if(&quot;color&quot;===this.type.kind){for(var e,r,n=0,i=this.args;n&lt;i.length;n+=1){if(r=null,(e=i[n].evaluate(t))instanceof Kt)return e;if(&quot;string&quot;==typeof e){var a=t.parseColor(e);if(a)return a}else if(Array.isArray(e)&amp;&amp;!(r=e.length&lt;3||e.length&gt;4?&quot;Invalid rbga value &quot;+JSON.stringify(e)+&quot;: expected an array containing either three or four numeric values.&quot;:re(e[0],e[1],e[2],e[3])))return new Kt(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new se(r||&quot;Could not parse color from value '&quot;+(&quot;string&quot;==typeof e?e:String(JSON.stringify(e)))+&quot;'&quot;)}if(&quot;number&quot;===this.type.kind){for(var o=null,s=0,l=this.args;s&lt;l.length;s+=1){if(null===(o=l[s].evaluate(t)))return 0;var c=Number(o);if(!isNaN(c))return c}throw new se(&quot;Could not convert &quot;+JSON.stringify(o)+&quot; to number.&quot;)}return&quot;formatted&quot;===this.type.kind?te.fromString(ae(this.args[0].evaluate(t))):&quot;resolvedImage&quot;===this.type.kind?ee.fromString(ae(this.args[0].evaluate(t))):ae(this.args[0].evaluate(t))},pe.prototype.eachChild=function(t){this.args.forEach(t)},pe.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},pe.prototype.serialize=function(){if(&quot;formatted&quot;===this.type.kind)return new ue([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(&quot;resolvedImage&quot;===this.type.kind)return new fe(this.args[0]).serialize();var t=[&quot;to-&quot;+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};var de=[&quot;Unknown&quot;,&quot;Point&quot;,&quot;LineString&quot;,&quot;Polygon&quot;],ge=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};ge.prototype.id=function(){return this.feature&amp;&amp;&quot;id&quot;in this.feature?this.feature.id:null},ge.prototype.geometryType=function(){return this.feature?&quot;number&quot;==typeof this.feature.type?de[this.feature.type]:this.feature.type:null},ge.prototype.geometry=function(){return this.feature&amp;&amp;&quot;geometry&quot;in this.feature?this.feature.geometry:null},ge.prototype.canonicalID=function(){return this.canonical},ge.prototype.properties=function(){return this.feature&amp;&amp;this.feature.properties||{}},ge.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=Kt.parse(t)),e};var me=function(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n};me.prototype.evaluate=function(t){return this._evaluate(t,this.args)},me.prototype.eachChild=function(t){this.args.forEach(t)},me.prototype.outputDefined=function(){return!1},me.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},me.parse=function(t,e){var r,n=t[0],i=me.definitions[n];if(!i)return e.error('Unknown expression &quot;'+n+'&quot;. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0);for(var a=Array.isArray(i)?i[0]:i.type,o=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=o.filter((function(e){var r=e[0];return!Array.isArray(r)||r.length===t.length-1})),l=null,c=0,u=s;c&lt;u.length;c+=1){var f=u[c],h=f[0],p=f[1];l=new Be(e.registry,e.path,null,e.scope);for(var d=[],g=!1,m=1;m&lt;t.length;m++){var v=t[m],y=Array.isArray(h)?h[m-1]:h.type,x=l.parse(v,1+d.length,y);if(!x){g=!0;break}d.push(x)}if(!g)if(Array.isArray(h)&amp;&amp;h.length!==d.length)l.error(&quot;Expected &quot;+h.length+&quot; arguments, but found &quot;+d.length+&quot; instead.&quot;);else{for(var b=0;b&lt;d.length;b++){var _=Array.isArray(h)?h[b]:h.type,w=d[b];l.concat(b+1).checkSubtype(_,w.type)}if(0===l.errors.length)return new me(n,a,p,d)}}if(1===s.length)(r=e.errors).push.apply(r,l.errors);else{for(var T=(s.length?s:o).map((function(t){var e;return e=t[0],Array.isArray(e)?&quot;(&quot;+e.map(Gt).join(&quot;, &quot;)+&quot;)&quot;:&quot;(&quot;+Gt(e.type)+&quot;...)&quot;})).join(&quot; | &quot;),k=[],M=1;M&lt;t.length;M++){var A=e.parse(t[M],1+k.length);if(!A)return null;k.push(Gt(A.type))}e.error(&quot;Expected arguments of type &quot;+T+&quot;, but found (&quot;+k.join(&quot;, &quot;)+&quot;) instead.&quot;)}return null},me.register=function(t,e){for(var r in me.definitions=e,e)t[r]=me};var ve=function(t,e,r){this.type=Ut,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};function ye(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function xe(t,e){return!(t[0]&lt;=e[0]||t[2]&gt;=e[2]||t[1]&lt;=e[1]||t[3]&gt;=e[3])}function be(t,e){var r=(180+t[0])/360,n=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,i=Math.pow(2,e.z);return[Math.round(r*i*8192),Math.round(n*i*8192)]}function _e(t,e,r){return e[1]&gt;t[1]!=r[1]&gt;t[1]&amp;&amp;t[0]&lt;(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function we(t,e){for(var r,n,i,a,o,s,l,c=!1,u=0,f=e.length;u&lt;f;u++)for(var h=e[u],p=0,d=h.length;p&lt;d-1;p++){if((a=(r=t)[0]-(n=h[p])[0])*(l=r[1]-(i=h[p+1])[1])-(s=r[0]-i[0])*(o=r[1]-n[1])==0&amp;&amp;a*s&lt;=0&amp;&amp;o*l&lt;=0)return!1;_e(t,h[p],h[p+1])&amp;&amp;(c=!c)}return c}function Te(t,e){for(var r=0;r&lt;e.length;r++)if(we(t,e[r]))return!0;return!1}function ke(t,e,r,n){var i=n[0]-r[0],a=n[1]-r[1],o=(t[0]-r[0])*a-i*(t[1]-r[1]),s=(e[0]-r[0])*a-i*(e[1]-r[1]);return o&gt;0&amp;&amp;s&lt;0||o&lt;0&amp;&amp;s&gt;0}function Me(t,e,r){for(var n=0,i=r;n&lt;i.length;n+=1)for(var a=i[n],o=0;o&lt;a.length-1;++o)if(0!=(f=[(u=a[o+1])[0]-(c=a[o])[0],u[1]-c[1]])[0]*(h=[(l=e)[0]-(s=t)[0],l[1]-s[1]])[1]-f[1]*h[0]&amp;&amp;ke(s,l,c,u)&amp;&amp;ke(c,u,s,l))return!0;var s,l,c,u,f,h;return!1}function Ae(t,e){for(var r=0;r&lt;t.length;++r)if(!we(t[r],e))return!1;for(var n=0;n&lt;t.length-1;++n)if(Me(t[n],t[n+1],e))return!1;return!0}function Se(t,e){for(var r=0;r&lt;e.length;r++)if(Ae(t,e[r]))return!0;return!1}function Ee(t,e,r){for(var n=[],i=0;i&lt;t.length;i++){for(var a=[],o=0;o&lt;t[i].length;o++){var s=be(t[i][o],r);ye(e,s),a.push(s)}n.push(a)}return n}function Ce(t,e,r){for(var n=[],i=0;i&lt;t.length;i++){var a=Ee(t[i],e,r);n.push(a)}return n}function Le(t,e,r,n){if(t[0]&lt;r[0]||t[0]&gt;r[2]){var i=.5*n,a=t[0]-r[0]&gt;i?-n:r[0]-t[0]&gt;i?n:0;0===a&amp;&amp;(a=t[0]-r[2]&gt;i?-n:r[2]-t[0]&gt;i?n:0),t[0]+=a}ye(e,t)}function Ie(t,e,r,n){for(var i=8192*Math.pow(2,n.z),a=[8192*n.x,8192*n.y],o=[],s=0,l=t;s&lt;l.length;s+=1)for(var c=0,u=l[s];c&lt;u.length;c+=1){var f=u[c],h=[f.x+a[0],f.y+a[1]];Le(h,e,r,i),o.push(h)}return o}function Pe(t,e,r,n){for(var i,a=8192*Math.pow(2,n.z),o=[8192*n.x,8192*n.y],s=[],l=0,c=t;l&lt;c.length;l+=1){for(var u=[],f=0,h=c[l];f&lt;h.length;f+=1){var p=h[f],d=[p.x+o[0],p.y+o[1]];ye(e,d),u.push(d)}s.push(u)}if(e[2]-e[0]&lt;=a/2){(i=e)[0]=i[1]=1/0,i[2]=i[3]=-1/0;for(var g=0,m=s;g&lt;m.length;g+=1)for(var v=0,y=m[g];v&lt;y.length;v+=1)Le(y[v],e,r,a)}return s}ve.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected one argument.&quot;);var r=t[1];if(&quot;object&quot;!=typeof r||Array.isArray(r))return e.error(&quot;Collator options argument must be an object.&quot;);var n=e.parse(void 0!==r[&quot;case-sensitive&quot;]&amp;&amp;r[&quot;case-sensitive&quot;],1,Ft);if(!n)return null;var i=e.parse(void 0!==r[&quot;diacritic-sensitive&quot;]&amp;&amp;r[&quot;diacritic-sensitive&quot;],1,Ft);if(!i)return null;var a=null;return r.locale&amp;&amp;!(a=e.parse(r.locale,1,Rt))?null:new ve(n,i,a)},ve.prototype.evaluate=function(t){return new Qt(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},ve.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&amp;&amp;t(this.locale)},ve.prototype.outputDefined=function(){return!1},ve.prototype.serialize=function(){var t={};return t[&quot;case-sensitive&quot;]=this.caseSensitive.serialize(),t[&quot;diacritic-sensitive&quot;]=this.diacriticSensitive.serialize(),this.locale&amp;&amp;(t.locale=this.locale.serialize()),[&quot;collator&quot;,t]};var ze=function(t,e){this.type=Ft,this.geojson=t,this.geometries=e};function Oe(t){if(t instanceof me){if(&quot;get&quot;===t.name&amp;&amp;1===t.args.length)return!1;if(&quot;feature-state&quot;===t.name)return!1;if(&quot;has&quot;===t.name&amp;&amp;1===t.args.length)return!1;if(&quot;properties&quot;===t.name||&quot;geometry-type&quot;===t.name||&quot;id&quot;===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof ze)return!1;var e=!0;return t.eachChild((function(t){e&amp;&amp;!Oe(t)&amp;&amp;(e=!1)})),e}function De(t){if(t instanceof me&amp;&amp;&quot;feature-state&quot;===t.name)return!1;var e=!0;return t.eachChild((function(t){e&amp;&amp;!De(t)&amp;&amp;(e=!1)})),e}function Re(t,e){if(t instanceof me&amp;&amp;e.indexOf(t.name)&gt;=0)return!1;var r=!0;return t.eachChild((function(t){r&amp;&amp;!Re(t,e)&amp;&amp;(r=!1)})),r}ze.parse=function(t,e){if(2!==t.length)return e.error(&quot;'within' expression requires exactly one argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);if(ne(t[1])){var r=t[1];if(&quot;FeatureCollection&quot;===r.type)for(var n=0;n&lt;r.features.length;++n){var i=r.features[n].geometry.type;if(&quot;Polygon&quot;===i||&quot;MultiPolygon&quot;===i)return new ze(r,r.features[n].geometry)}else if(&quot;Feature&quot;===r.type){var a=r.geometry.type;if(&quot;Polygon&quot;===a||&quot;MultiPolygon&quot;===a)return new ze(r,r.geometry)}else if(&quot;Polygon&quot;===r.type||&quot;MultiPolygon&quot;===r.type)return new ze(r,r)}return e.error(&quot;'within' expression requires valid geojson object that contains polygon geometry type.&quot;)},ze.prototype.evaluate=function(t){if(null!=t.geometry()&amp;&amp;null!=t.canonicalID()){if(&quot;Point&quot;===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(&quot;Polygon&quot;===e.type){var a=Ee(e.coordinates,n,i),o=Ie(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var s=0,l=o;s&lt;l.length;s+=1)if(!we(l[s],a))return!1}if(&quot;MultiPolygon&quot;===e.type){var c=Ce(e.coordinates,n,i),u=Ie(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var f=0,h=u;f&lt;h.length;f+=1)if(!Te(h[f],c))return!1}return!0}(t,this.geometries);if(&quot;LineString&quot;===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(&quot;Polygon&quot;===e.type){var a=Ee(e.coordinates,n,i),o=Pe(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var s=0,l=o;s&lt;l.length;s+=1)if(!Ae(l[s],a))return!1}if(&quot;MultiPolygon&quot;===e.type){var c=Ce(e.coordinates,n,i),u=Pe(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var f=0,h=u;f&lt;h.length;f+=1)if(!Se(h[f],c))return!1}return!0}(t,this.geometries)}return!1},ze.prototype.eachChild=function(){},ze.prototype.outputDefined=function(){return!0},ze.prototype.serialize=function(){return[&quot;within&quot;,this.geojson]};var Fe=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};Fe.parse=function(t,e){if(2!==t.length||&quot;string&quot;!=typeof t[1])return e.error(&quot;'var' expression requires exactly one string literal argument.&quot;);var r=t[1];return e.scope.has(r)?new Fe(r,e.scope.get(r)):e.error('Unknown variable &quot;'+r+'&quot;. Make sure &quot;'+r+'&quot; has been bound in an enclosing &quot;let&quot; expression before using it.',1)},Fe.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},Fe.prototype.eachChild=function(){},Fe.prototype.outputDefined=function(){return!1},Fe.prototype.serialize=function(){return[&quot;var&quot;,this.name]};var Be=function(t,e,r,n,i){void 0===e&amp;&amp;(e=[]),void 0===n&amp;&amp;(n=new zt),void 0===i&amp;&amp;(i=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return&quot;[&quot;+t+&quot;]&quot;})).join(&quot;&quot;),this.scope=n,this.errors=i,this.expectedType=r};function Ne(t,e){for(var r,n=t.length-1,i=0,a=n,o=0;i&lt;=a;)if((r=t[o=Math.floor((i+a)/2)])&lt;=e){if(o===n||e&lt;t[o+1])return o;i=o+1}else{if(!(r&gt;e))throw new se(&quot;Input is not a number.&quot;);a=o-1}return 0}Be.prototype.parse=function(t,e,r,n,i){return void 0===i&amp;&amp;(i={}),e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)},Be.prototype._parse=function(t,e){function r(t,e,r){return&quot;assert&quot;===r?new ce(e,[t]):&quot;coerce&quot;===r?new pe(e,[t]):t}if(null!==t&amp;&amp;&quot;string&quot;!=typeof t&amp;&amp;&quot;boolean&quot;!=typeof t&amp;&amp;&quot;number&quot;!=typeof t||(t=[&quot;literal&quot;,t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use [&quot;literal&quot;, []].');var n=t[0];if(&quot;string&quot;!=typeof n)return this.error(&quot;Expression name must be a string, but found &quot;+typeof n+' instead. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0),null;var i=this.registry[n];if(i){var a=i.parse(t,this);if(!a)return null;if(this.expectedType){var o=this.expectedType,s=a.type;if(&quot;string&quot;!==o.kind&amp;&amp;&quot;number&quot;!==o.kind&amp;&amp;&quot;boolean&quot;!==o.kind&amp;&amp;&quot;object&quot;!==o.kind&amp;&amp;&quot;array&quot;!==o.kind||&quot;value&quot;!==s.kind)if(&quot;color&quot;!==o.kind&amp;&amp;&quot;formatted&quot;!==o.kind&amp;&amp;&quot;resolvedImage&quot;!==o.kind||&quot;value&quot;!==s.kind&amp;&amp;&quot;string&quot;!==s.kind){if(this.checkSubtype(o,s))return null}else a=r(a,o,e.typeAnnotation||&quot;coerce&quot;);else a=r(a,o,e.typeAnnotation||&quot;assert&quot;)}if(!(a instanceof oe)&amp;&amp;&quot;resolvedImage&quot;!==a.type.kind&amp;&amp;function t(e){if(e instanceof Fe)return t(e.boundExpression);if(e instanceof me&amp;&amp;&quot;error&quot;===e.name)return!1;if(e instanceof ve)return!1;if(e instanceof ze)return!1;var r=e instanceof pe||e instanceof ce,n=!0;return e.eachChild((function(e){n=r?n&amp;&amp;t(e):n&amp;&amp;e instanceof oe})),!!n&amp;&amp;Oe(e)&amp;&amp;Re(e,[&quot;zoom&quot;,&quot;heatmap-density&quot;,&quot;line-progress&quot;,&quot;accumulated&quot;,&quot;is-supported-script&quot;])}(a)){var l=new ge;try{a=new oe(a.type,a.evaluate(l))}catch(t){return this.error(t.message),null}}return a}return this.error('Unknown expression &quot;'+n+'&quot;. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0)}return this.error(void 0===t?&quot;'undefined' value invalid. Use null instead.&quot;:&quot;object&quot;==typeof t?'Bare objects invalid. Use [&quot;literal&quot;, {...}] instead.':&quot;Expected an array, but found &quot;+typeof t+&quot; instead.&quot;)},Be.prototype.concat=function(t,e,r){var n=&quot;number&quot;==typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new Be(this.registry,n,e||null,i,this.errors)},Be.prototype.error=function(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];var n=&quot;&quot;+this.key+e.map((function(t){return&quot;[&quot;+t+&quot;]&quot;})).join(&quot;&quot;);this.errors.push(new Pt(n,t))},Be.prototype.checkSubtype=function(t,e){var r=Wt(t,e);return r&amp;&amp;this.error(r),r};var je=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,i=r;n&lt;i.length;n+=1){var a=i[n],o=a[1];this.labels.push(a[0]),this.outputs.push(o)}};function Ue(t,e,r){return t*(1-r)+e*r}je.parse=function(t,e){if(t.length-1&lt;4)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if((t.length-1)%2!=0)return e.error(&quot;Expected an even number of arguments.&quot;);var r=e.parse(t[1],1,Dt);if(!r)return null;var n=[],i=null;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(i=e.expectedType);for(var a=1;a&lt;t.length;a+=2){var o=1===a?-1/0:t[a],s=t[a+1],l=a,c=a+1;if(&quot;number&quot;!=typeof o)return e.error('Input/output pairs for &quot;step&quot; expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(n.length&amp;&amp;n[n.length-1][0]&gt;=o)return e.error('Input/output pairs for &quot;step&quot; expressions must be arranged with input values in strictly ascending order.',l);var u=e.parse(s,c,i);if(!u)return null;i=i||u.type,n.push([o,u])}return new je(i,r,n)},je.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n&lt;=e[0])return r[0].evaluate(t);var i=e.length;return n&gt;=e[i-1]?r[i-1].evaluate(t):r[Ne(e,n)].evaluate(t)},je.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1)t(r[e])},je.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},je.prototype.serialize=function(){for(var t=[&quot;step&quot;,this.input.serialize()],e=0;e&lt;this.labels.length;e++)e&gt;0&amp;&amp;t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var Ve=Object.freeze({__proto__:null,number:Ue,color:function(t,e,r){return new Kt(Ue(t.r,e.r,r),Ue(t.g,e.g,r),Ue(t.b,e.b,r),Ue(t.a,e.a,r))},array:function(t,e,r){return t.map((function(t,n){return Ue(t,e[n],r)}))}}),qe=6/29*3*(6/29),He=Math.PI/180,Ge=180/Math.PI;function Ye(t){return t&gt;.008856451679035631?Math.pow(t,1/3):t/qe+4/29}function We(t){return t&gt;6/29?t*t*t:qe*(t-4/29)}function Xe(t){return 255*(t&lt;=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ze(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Je(t){var e=Ze(t.r),r=Ze(t.g),n=Ze(t.b),i=Ye((.4124564*e+.3575761*r+.1804375*n)/.95047),a=Ye((.2126729*e+.7151522*r+.072175*n)/1);return{l:116*a-16,a:500*(i-a),b:200*(a-Ye((.0193339*e+.119192*r+.9503041*n)/1.08883)),alpha:t.a}}function Ke(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=1*We(e),r=.95047*We(r),n=1.08883*We(n),new Kt(Xe(3.2404542*r-1.5371385*e-.4985314*n),Xe(-.969266*r+1.8760108*e+.041556*n),Xe(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function Qe(t,e,r){var n=e-t;return t+r*(n&gt;180||n&lt;-180?n-360*Math.round(n/360):n)}var $e={forward:Je,reverse:Ke,interpolate:function(t,e,r){return{l:Ue(t.l,e.l,r),a:Ue(t.a,e.a,r),b:Ue(t.b,e.b,r),alpha:Ue(t.alpha,e.alpha,r)}}},tr={forward:function(t){var e=Je(t),r=e.l,n=e.a,i=e.b,a=Math.atan2(i,n)*Ge;return{h:a&lt;0?a+360:a,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}},reverse:function(t){var e=t.h*He,r=t.c;return Ke({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:Qe(t.h,e.h,r),c:Ue(t.c,e.c,r),l:Ue(t.l,e.l,r),alpha:Ue(t.alpha,e.alpha,r)}}},er=Object.freeze({__proto__:null,lab:$e,hcl:tr}),rr=function(t,e,r,n,i){this.type=t,this.operator=e,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var a=0,o=i;a&lt;o.length;a+=1){var s=o[a],l=s[1];this.labels.push(s[0]),this.outputs.push(l)}};function nr(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}rr.interpolationFactor=function(t,e,n,i){var a=0;if(&quot;exponential&quot;===t.name)a=nr(e,t.base,n,i);else if(&quot;linear&quot;===t.name)a=nr(e,1,n,i);else if(&quot;cubic-bezier&quot;===t.name){var o=t.controlPoints;a=new r(o[0],o[1],o[2],o[3]).solve(nr(e,1,n,i))}return a},rr.parse=function(t,e){var r=t[0],n=t[1],i=t[2],a=t.slice(3);if(!Array.isArray(n)||0===n.length)return e.error(&quot;Expected an interpolation type expression.&quot;,1);if(&quot;linear&quot;===n[0])n={name:&quot;linear&quot;};else if(&quot;exponential&quot;===n[0]){var o=n[1];if(&quot;number&quot;!=typeof o)return e.error(&quot;Exponential interpolation requires a numeric base.&quot;,1,1);n={name:&quot;exponential&quot;,base:o}}else{if(&quot;cubic-bezier&quot;!==n[0])return e.error(&quot;Unknown interpolation type &quot;+String(n[0]),1,0);var s=n.slice(1);if(4!==s.length||s.some((function(t){return&quot;number&quot;!=typeof t||t&lt;0||t&gt;1})))return e.error(&quot;Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.&quot;,1);n={name:&quot;cubic-bezier&quot;,controlPoints:s}}if(t.length-1&lt;4)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if((t.length-1)%2!=0)return e.error(&quot;Expected an even number of arguments.&quot;);if(!(i=e.parse(i,2,Dt)))return null;var l=[],c=null;&quot;interpolate-hcl&quot;===r||&quot;interpolate-lab&quot;===r?c=Bt:e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(c=e.expectedType);for(var u=0;u&lt;a.length;u+=2){var f=a[u],h=a[u+1],p=u+3,d=u+4;if(&quot;number&quot;!=typeof f)return e.error('Input/output pairs for &quot;interpolate&quot; expressions must be defined using literal numeric values (not computed expressions) for the input values.',p);if(l.length&amp;&amp;l[l.length-1][0]&gt;=f)return e.error('Input/output pairs for &quot;interpolate&quot; expressions must be arranged with input values in strictly ascending order.',p);var g=e.parse(h,d,c);if(!g)return null;c=c||g.type,l.push([f,g])}return&quot;number&quot;===c.kind||&quot;color&quot;===c.kind||&quot;array&quot;===c.kind&amp;&amp;&quot;number&quot;===c.itemType.kind&amp;&amp;&quot;number&quot;==typeof c.N?new rr(c,r,n,i,l):e.error(&quot;Type &quot;+Gt(c)+&quot; is not interpolatable.&quot;)},rr.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n&lt;=e[0])return r[0].evaluate(t);var i=e.length;if(n&gt;=e[i-1])return r[i-1].evaluate(t);var a=Ne(e,n),o=rr.interpolationFactor(this.interpolation,n,e[a],e[a+1]),s=r[a].evaluate(t),l=r[a+1].evaluate(t);return&quot;interpolate&quot;===this.operator?Ve[this.type.kind.toLowerCase()](s,l,o):&quot;interpolate-hcl&quot;===this.operator?tr.reverse(tr.interpolate(tr.forward(s),tr.forward(l),o)):$e.reverse($e.interpolate($e.forward(s),$e.forward(l),o))},rr.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1)t(r[e])},rr.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},rr.prototype.serialize=function(){var t;t=&quot;linear&quot;===this.interpolation.name?[&quot;linear&quot;]:&quot;exponential&quot;===this.interpolation.name?1===this.interpolation.base?[&quot;linear&quot;]:[&quot;exponential&quot;,this.interpolation.base]:[&quot;cubic-bezier&quot;].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],r=0;r&lt;this.labels.length;r++)e.push(this.labels[r],this.outputs[r].serialize());return e};var ir=function(t,e){this.type=t,this.args=e};ir.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expectected at least one argument.&quot;);var r=null,n=e.expectedType;n&amp;&amp;&quot;value&quot;!==n.kind&amp;&amp;(r=n);for(var i=[],a=0,o=t.slice(1);a&lt;o.length;a+=1){var s=e.parse(o[a],1+i.length,r,void 0,{typeAnnotation:&quot;omit&quot;});if(!s)return null;r=r||s.type,i.push(s)}var l=n&amp;&amp;i.some((function(t){return Wt(n,t.type)}));return new ir(l?jt:r,i)},ir.prototype.evaluate=function(t){for(var e,r=null,n=0,i=0,a=this.args;i&lt;a.length&amp;&amp;(n++,(r=a[i].evaluate(t))&amp;&amp;r instanceof ee&amp;&amp;!r.available&amp;&amp;(e||(e=r.name),r=null,n===this.args.length&amp;&amp;(r=e)),null===r);i+=1);return r},ir.prototype.eachChild=function(t){this.args.forEach(t)},ir.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ir.prototype.serialize=function(){var t=[&quot;coalesce&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var ar=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};ar.prototype.evaluate=function(t){return this.result.evaluate(t)},ar.prototype.eachChild=function(t){for(var e=0,r=this.bindings;e&lt;r.length;e+=1)t(r[e][1]);t(this.result)},ar.parse=function(t,e){if(t.length&lt;4)return e.error(&quot;Expected at least 3 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);for(var r=[],n=1;n&lt;t.length-1;n+=2){var i=t[n];if(&quot;string&quot;!=typeof i)return e.error(&quot;Expected string, but found &quot;+typeof i+&quot; instead.&quot;,n);if(/[^a-zA-Z0-9_]/.test(i))return e.error(&quot;Variable names must contain only alphanumeric characters or '_'.&quot;,n);var a=e.parse(t[n+1],n+1);if(!a)return null;r.push([i,a])}var o=e.parse(t[t.length-1],t.length-1,e.expectedType,r);return o?new ar(r,o):null},ar.prototype.outputDefined=function(){return this.result.outputDefined()},ar.prototype.serialize=function(){for(var t=[&quot;let&quot;],e=0,r=this.bindings;e&lt;r.length;e+=1){var n=r[e];t.push(n[0],n[1].serialize())}return t.push(this.result.serialize()),t};var or=function(t,e,r){this.type=t,this.index=e,this.input=r};or.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected 2 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,Dt),n=e.parse(t[2],2,Ht(e.expectedType||jt));return r&amp;&amp;n?new or(n.type.itemType,r,n):null},or.prototype.evaluate=function(t){var e=this.index.evaluate(t),r=this.input.evaluate(t);if(e&lt;0)throw new se(&quot;Array index out of bounds: &quot;+e+&quot; &lt; 0.&quot;);if(e&gt;=r.length)throw new se(&quot;Array index out of bounds: &quot;+e+&quot; &gt; &quot;+(r.length-1)+&quot;.&quot;);if(e!==Math.floor(e))throw new se(&quot;Array index must be an integer, but found &quot;+e+&quot; instead.&quot;);return r[e]},or.prototype.eachChild=function(t){t(this.index),t(this.input)},or.prototype.outputDefined=function(){return!1},or.prototype.serialize=function(){return[&quot;at&quot;,this.index.serialize(),this.input.serialize()]};var sr=function(t,e){this.type=Ft,this.needle=t,this.haystack=e};sr.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected 2 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,jt),n=e.parse(t[2],2,jt);return r&amp;&amp;n?Xt(r.type,[Ft,Rt,Dt,Ot,jt])?new sr(r,n):e.error(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(r.type)+&quot; instead&quot;):null},sr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!r)return!1;if(!Zt(e,[&quot;boolean&quot;,&quot;string&quot;,&quot;number&quot;,&quot;null&quot;]))throw new se(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(ie(e))+&quot; instead.&quot;);if(!Zt(r,[&quot;string&quot;,&quot;array&quot;]))throw new se(&quot;Expected second argument to be of type array or string, but found &quot;+Gt(ie(r))+&quot; instead.&quot;);return r.indexOf(e)&gt;=0},sr.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},sr.prototype.outputDefined=function(){return!0},sr.prototype.serialize=function(){return[&quot;in&quot;,this.needle.serialize(),this.haystack.serialize()]};var lr=function(t,e,r){this.type=Dt,this.needle=t,this.haystack=e,this.fromIndex=r};lr.parse=function(t,e){if(t.length&lt;=2||t.length&gt;=5)return e.error(&quot;Expected 3 or 4 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,jt),n=e.parse(t[2],2,jt);if(!r||!n)return null;if(!Xt(r.type,[Ft,Rt,Dt,Ot,jt]))return e.error(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(r.type)+&quot; instead&quot;);if(4===t.length){var i=e.parse(t[3],3,Dt);return i?new lr(r,n,i):null}return new lr(r,n)},lr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!Zt(e,[&quot;boolean&quot;,&quot;string&quot;,&quot;number&quot;,&quot;null&quot;]))throw new se(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(ie(e))+&quot; instead.&quot;);if(!Zt(r,[&quot;string&quot;,&quot;array&quot;]))throw new se(&quot;Expected second argument to be of type array or string, but found &quot;+Gt(ie(r))+&quot; instead.&quot;);if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},lr.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&amp;&amp;t(this.fromIndex)},lr.prototype.outputDefined=function(){return!1},lr.prototype.serialize=function(){if(null!=this.fromIndex&amp;&amp;void 0!==this.fromIndex){var t=this.fromIndex.serialize();return[&quot;index-of&quot;,this.needle.serialize(),this.haystack.serialize(),t]}return[&quot;index-of&quot;,this.needle.serialize(),this.haystack.serialize()]};var cr=function(t,e,r,n,i,a){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=a};cr.parse=function(t,e){if(t.length&lt;5)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if(t.length%2!=1)return e.error(&quot;Expected an even number of arguments.&quot;);var r,n;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(n=e.expectedType);for(var i={},a=[],o=2;o&lt;t.length-1;o+=2){var s=t[o],l=t[o+1];Array.isArray(s)||(s=[s]);var c=e.concat(o);if(0===s.length)return c.error(&quot;Expected at least one branch label.&quot;);for(var u=0,f=s;u&lt;f.length;u+=1){var h=f[u];if(&quot;number&quot;!=typeof h&amp;&amp;&quot;string&quot;!=typeof h)return c.error(&quot;Branch labels must be numbers or strings.&quot;);if(&quot;number&quot;==typeof h&amp;&amp;Math.abs(h)&gt;Number.MAX_SAFE_INTEGER)return c.error(&quot;Branch labels must be integers no larger than &quot;+Number.MAX_SAFE_INTEGER+&quot;.&quot;);if(&quot;number&quot;==typeof h&amp;&amp;Math.floor(h)!==h)return c.error(&quot;Numeric branch labels must be integer values.&quot;);if(r){if(c.checkSubtype(r,ie(h)))return null}else r=ie(h);if(void 0!==i[String(h)])return c.error(&quot;Branch labels must be unique.&quot;);i[String(h)]=a.length}var p=e.parse(l,o,n);if(!p)return null;n=n||p.type,a.push(p)}var d=e.parse(t[1],1,jt);if(!d)return null;var g=e.parse(t[t.length-1],t.length-1,n);return g?&quot;value&quot;!==d.type.kind&amp;&amp;e.concat(1).checkSubtype(r,d.type)?null:new cr(r,n,d,i,a,g):null},cr.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(ie(e)===this.inputType&amp;&amp;this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},cr.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},cr.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&amp;&amp;this.otherwise.outputDefined()},cr.prototype.serialize=function(){for(var t=this,e=[&quot;match&quot;,this.input.serialize()],r=[],n={},i=0,a=Object.keys(this.cases).sort();i&lt;a.length;i+=1){var o=a[i];void 0===(f=n[this.cases[o]])?(n[this.cases[o]]=r.length,r.push([this.cases[o],[o]])):r[f][1].push(o)}for(var s=function(e){return&quot;number&quot;===t.inputType.kind?Number(e):e},l=0,c=r;l&lt;c.length;l+=1){var u=c[l],f=u[0],h=u[1];e.push(1===h.length?s(h[0]):h.map(s)),e.push(this.outputs[outputIndex$1].serialize())}return e.push(this.otherwise.serialize()),e};var ur=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};ur.parse=function(t,e){if(t.length&lt;4)return e.error(&quot;Expected at least 3 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if(t.length%2!=0)return e.error(&quot;Expected an odd number of arguments.&quot;);var r;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(r=e.expectedType);for(var n=[],i=1;i&lt;t.length-1;i+=2){var a=e.parse(t[i],i,Ft);if(!a)return null;var o=e.parse(t[i+1],i+1,r);if(!o)return null;n.push([a,o]),r=r||o.type}var s=e.parse(t[t.length-1],t.length-1,r);return s?new ur(r,n,s):null},ur.prototype.evaluate=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var n=r[e],i=n[1];if(n[0].evaluate(t))return i.evaluate(t)}return this.otherwise.evaluate(t)},ur.prototype.eachChild=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var n=r[e],i=n[1];t(n[0]),t(i)}t(this.otherwise)},ur.prototype.outputDefined=function(){return this.branches.every((function(t){return t[1].outputDefined()}))&amp;&amp;this.otherwise.outputDefined()},ur.prototype.serialize=function(){var t=[&quot;case&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var fr=function(t,e,r,n){this.type=t,this.input=e,this.beginIndex=r,this.endIndex=n};function hr(t,e){return&quot;==&quot;===t||&quot;!=&quot;===t?&quot;boolean&quot;===e.kind||&quot;string&quot;===e.kind||&quot;number&quot;===e.kind||&quot;null&quot;===e.kind||&quot;value&quot;===e.kind:&quot;string&quot;===e.kind||&quot;number&quot;===e.kind||&quot;value&quot;===e.kind}function pr(t,e,r,n){return 0===n.compare(e,r)}function dr(t,e,r){var n=&quot;==&quot;!==t&amp;&amp;&quot;!=&quot;!==t;return function(){function i(t,e,r){this.type=Ft,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument=&quot;value&quot;===t.type.kind||&quot;value&quot;===e.type.kind}return i.parse=function(t,e){if(3!==t.length&amp;&amp;4!==t.length)return e.error(&quot;Expected two or three arguments.&quot;);var r=t[0],a=e.parse(t[1],1,jt);if(!a)return null;if(!hr(r,a.type))return e.concat(1).error('&quot;'+r+&quot;\&quot; comparisons are not supported for type '&quot;+Gt(a.type)+&quot;'.&quot;);var o=e.parse(t[2],2,jt);if(!o)return null;if(!hr(r,o.type))return e.concat(2).error('&quot;'+r+&quot;\&quot; comparisons are not supported for type '&quot;+Gt(o.type)+&quot;'.&quot;);if(a.type.kind!==o.type.kind&amp;&amp;&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind)return e.error(&quot;Cannot compare types '&quot;+Gt(a.type)+&quot;' and '&quot;+Gt(o.type)+&quot;'.&quot;);n&amp;&amp;(&quot;value&quot;===a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind?a=new ce(o.type,[a]):&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;===o.type.kind&amp;&amp;(o=new ce(a.type,[o])));var s=null;if(4===t.length){if(&quot;string&quot;!==a.type.kind&amp;&amp;&quot;string&quot;!==o.type.kind&amp;&amp;&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind)return e.error(&quot;Cannot use collator to compare non-string types.&quot;);if(!(s=e.parse(t[3],3,Ut)))return null}return new i(a,o,s)},i.prototype.evaluate=function(i){var a=this.lhs.evaluate(i),o=this.rhs.evaluate(i);if(n&amp;&amp;this.hasUntypedArgument){var s=ie(a),l=ie(o);if(s.kind!==l.kind||&quot;string&quot;!==s.kind&amp;&amp;&quot;number&quot;!==s.kind)throw new se('Expected arguments for &quot;'+t+'&quot; to be (string, string) or (number, number), but found ('+s.kind+&quot;, &quot;+l.kind+&quot;) instead.&quot;)}if(this.collator&amp;&amp;!n&amp;&amp;this.hasUntypedArgument){var c=ie(a),u=ie(o);if(&quot;string&quot;!==c.kind||&quot;string&quot;!==u.kind)return e(i,a,o)}return this.collator?r(i,a,o,this.collator.evaluate(i)):e(i,a,o)},i.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&amp;&amp;t(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},i}()}fr.parse=function(t,e){if(t.length&lt;=2||t.length&gt;=5)return e.error(&quot;Expected 3 or 4 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,jt),n=e.parse(t[2],2,Dt);if(!r||!n)return null;if(!Xt(r.type,[Ht(jt),Rt,jt]))return e.error(&quot;Expected first argument to be of type array or string, but found &quot;+Gt(r.type)+&quot; instead&quot;);if(4===t.length){var i=e.parse(t[3],3,Dt);return i?new fr(r.type,r,n,i):null}return new fr(r.type,r,n)},fr.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!Zt(e,[&quot;string&quot;,&quot;array&quot;]))throw new se(&quot;Expected first argument to be of type array or string, but found &quot;+Gt(ie(e))+&quot; instead.&quot;);if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},fr.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&amp;&amp;t(this.endIndex)},fr.prototype.outputDefined=function(){return!1},fr.prototype.serialize=function(){if(null!=this.endIndex&amp;&amp;void 0!==this.endIndex){var t=this.endIndex.serialize();return[&quot;slice&quot;,this.input.serialize(),this.beginIndex.serialize(),t]}return[&quot;slice&quot;,this.input.serialize(),this.beginIndex.serialize()]};var gr=dr(&quot;==&quot;,(function(t,e,r){return e===r}),pr),mr=dr(&quot;!=&quot;,(function(t,e,r){return e!==r}),(function(t,e,r,n){return!pr(0,e,r,n)})),vr=dr(&quot;&lt;&quot;,(function(t,e,r){return e&lt;r}),(function(t,e,r,n){return n.compare(e,r)&lt;0})),yr=dr(&quot;&gt;&quot;,(function(t,e,r){return e&gt;r}),(function(t,e,r,n){return n.compare(e,r)&gt;0})),xr=dr(&quot;&lt;=&quot;,(function(t,e,r){return e&lt;=r}),(function(t,e,r,n){return n.compare(e,r)&lt;=0})),br=dr(&quot;&gt;=&quot;,(function(t,e,r){return e&gt;=r}),(function(t,e,r,n){return n.compare(e,r)&gt;=0})),_r=function(t,e,r,n,i){this.type=Rt,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};_r.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected two arguments.&quot;);var r=e.parse(t[1],1,Dt);if(!r)return null;var n=t[2];if(&quot;object&quot;!=typeof n||Array.isArray(n))return e.error(&quot;NumberFormat options argument must be an object.&quot;);var i=null;if(n.locale&amp;&amp;!(i=e.parse(n.locale,1,Rt)))return null;var a=null;if(n.currency&amp;&amp;!(a=e.parse(n.currency,1,Rt)))return null;var o=null;if(n[&quot;min-fraction-digits&quot;]&amp;&amp;!(o=e.parse(n[&quot;min-fraction-digits&quot;],1,Dt)))return null;var s=null;return n[&quot;max-fraction-digits&quot;]&amp;&amp;!(s=e.parse(n[&quot;max-fraction-digits&quot;],1,Dt))?null:new _r(r,i,a,o,s)},_r.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?&quot;currency&quot;:&quot;decimal&quot;,currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},_r.prototype.eachChild=function(t){t(this.number),this.locale&amp;&amp;t(this.locale),this.currency&amp;&amp;t(this.currency),this.minFractionDigits&amp;&amp;t(this.minFractionDigits),this.maxFractionDigits&amp;&amp;t(this.maxFractionDigits)},_r.prototype.outputDefined=function(){return!1},_r.prototype.serialize=function(){var t={};return this.locale&amp;&amp;(t.locale=this.locale.serialize()),this.currency&amp;&amp;(t.currency=this.currency.serialize()),this.minFractionDigits&amp;&amp;(t[&quot;min-fraction-digits&quot;]=this.minFractionDigits.serialize()),this.maxFractionDigits&amp;&amp;(t[&quot;max-fraction-digits&quot;]=this.maxFractionDigits.serialize()),[&quot;number-format&quot;,this.number.serialize(),t]};var wr=function(t){this.type=Dt,this.input=t};wr.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected 1 argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1);return r?&quot;array&quot;!==r.type.kind&amp;&amp;&quot;string&quot;!==r.type.kind&amp;&amp;&quot;value&quot;!==r.type.kind?e.error(&quot;Expected argument of type string or array, but found &quot;+Gt(r.type)+&quot; instead.&quot;):new wr(r):null},wr.prototype.evaluate=function(t){var e=this.input.evaluate(t);if(&quot;string&quot;==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new se(&quot;Expected value to be of type string or array, but found &quot;+Gt(ie(e))+&quot; instead.&quot;)},wr.prototype.eachChild=function(t){t(this.input)},wr.prototype.outputDefined=function(){return!1},wr.prototype.serialize=function(){var t=[&quot;length&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var Tr={&quot;==&quot;:gr,&quot;!=&quot;:mr,&quot;&gt;&quot;:yr,&quot;&lt;&quot;:vr,&quot;&gt;=&quot;:br,&quot;&lt;=&quot;:xr,array:ce,at:or,boolean:ce,case:ur,coalesce:ir,collator:ve,format:ue,image:fe,in:sr,&quot;index-of&quot;:lr,interpolate:rr,&quot;interpolate-hcl&quot;:rr,&quot;interpolate-lab&quot;:rr,length:wr,let:ar,literal:oe,match:cr,number:ce,&quot;number-format&quot;:_r,object:ce,slice:fr,step:je,string:ce,&quot;to-boolean&quot;:pe,&quot;to-color&quot;:pe,&quot;to-number&quot;:pe,&quot;to-string&quot;:pe,var:Fe,within:ze};function kr(t,e){var r=e[0],n=e[1],i=e[2],a=e[3];r=r.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);var o=a?a.evaluate(t):1,s=re(r,n,i,o);if(s)throw new se(s);return new Kt(r/255*o,n/255*o,i/255*o,o)}function Mr(t,e){return t in e}function Ar(t,e){var r=e[t];return void 0===r?null:r}function Sr(t){return{type:t}}function Er(t){return{result:&quot;success&quot;,value:t}}function Cr(t){return{result:&quot;error&quot;,value:t}}function Lr(t){return&quot;data-driven&quot;===t[&quot;property-type&quot;]||&quot;cross-faded-data-driven&quot;===t[&quot;property-type&quot;]}function Ir(t){return!!t.expression&amp;&amp;t.expression.parameters.indexOf(&quot;zoom&quot;)&gt;-1}function Pr(t){return!!t.expression&amp;&amp;t.expression.interpolated}function zr(t){return t instanceof Number?&quot;number&quot;:t instanceof String?&quot;string&quot;:t instanceof Boolean?&quot;boolean&quot;:Array.isArray(t)?&quot;array&quot;:null===t?&quot;null&quot;:typeof t}function Or(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)}function Dr(t){return t}function Rr(t,e,r){return void 0!==t?t:void 0!==e?e:void 0!==r?r:void 0}function Fr(t,e,r,n,i){return Rr(typeof r===i?n[r]:void 0,t.default,e.default)}function Br(t,e,r){if(&quot;number&quot;!==zr(r))return Rr(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[n-1][0])return t.stops[n-1][1];var i=Ne(t.stops.map((function(t){return t[0]})),r);return t.stops[i][1]}function Nr(t,e,r){var n=void 0!==t.base?t.base:1;if(&quot;number&quot;!==zr(r))return Rr(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[i-1][0])return t.stops[i-1][1];var a=Ne(t.stops.map((function(t){return t[0]})),r),o=function(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}(r,n,t.stops[a][0],t.stops[a+1][0]),s=t.stops[a][1],l=t.stops[a+1][1],c=Ve[e.type]||Dr;if(t.colorSpace&amp;&amp;&quot;rgb&quot;!==t.colorSpace){var u=er[t.colorSpace];c=function(t,e){return u.reverse(u.interpolate(u.forward(t),u.forward(e),o))}}return&quot;function&quot;==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=s.evaluate.apply(void 0,t),n=l.evaluate.apply(void 0,t);if(void 0!==r&amp;&amp;void 0!==n)return c(r,n,o)}}:c(s,l,o)}function jr(t,e,r){return&quot;color&quot;===e.type?r=Kt.parse(r):&quot;formatted&quot;===e.type?r=te.fromString(r.toString()):&quot;resolvedImage&quot;===e.type?r=ee.fromString(r.toString()):zr(r)===e.type||&quot;enum&quot;===e.type&amp;&amp;e.values[r]||(r=void 0),Rr(r,t.default,e.default)}me.register(Tr,{error:[{kind:&quot;error&quot;},[Rt],function(t,e){throw new se(e[0].evaluate(t))}],typeof:[Rt,[jt],function(t,e){return Gt(ie(e[0].evaluate(t)))}],&quot;to-rgba&quot;:[Ht(Dt,4),[Bt],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Bt,[Dt,Dt,Dt],kr],rgba:[Bt,[Dt,Dt,Dt,Dt],kr],has:{type:Ft,overloads:[[[Rt],function(t,e){return Mr(e[0].evaluate(t),t.properties())}],[[Rt,Nt],function(t,e){var r=e[1];return Mr(e[0].evaluate(t),r.evaluate(t))}]]},get:{type:jt,overloads:[[[Rt],function(t,e){return Ar(e[0].evaluate(t),t.properties())}],[[Rt,Nt],function(t,e){var r=e[1];return Ar(e[0].evaluate(t),r.evaluate(t))}]]},&quot;feature-state&quot;:[jt,[Rt],function(t,e){return Ar(e[0].evaluate(t),t.featureState||{})}],properties:[Nt,[],function(t){return t.properties()}],&quot;geometry-type&quot;:[Rt,[],function(t){return t.geometryType()}],id:[jt,[],function(t){return t.id()}],zoom:[Dt,[],function(t){return t.globals.zoom}],&quot;heatmap-density&quot;:[Dt,[],function(t){return t.globals.heatmapDensity||0}],&quot;line-progress&quot;:[Dt,[],function(t){return t.globals.lineProgress||0}],accumulated:[jt,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],&quot;+&quot;:[Dt,Sr(Dt),function(t,e){for(var r=0,n=0,i=e;n&lt;i.length;n+=1)r+=i[n].evaluate(t);return r}],&quot;*&quot;:[Dt,Sr(Dt),function(t,e){for(var r=1,n=0,i=e;n&lt;i.length;n+=1)r*=i[n].evaluate(t);return r}],&quot;-&quot;:{type:Dt,overloads:[[[Dt,Dt],function(t,e){var r=e[1];return e[0].evaluate(t)-r.evaluate(t)}],[[Dt],function(t,e){return-e[0].evaluate(t)}]]},&quot;/&quot;:[Dt,[Dt,Dt],function(t,e){var r=e[1];return e[0].evaluate(t)/r.evaluate(t)}],&quot;%&quot;:[Dt,[Dt,Dt],function(t,e){var r=e[1];return e[0].evaluate(t)%r.evaluate(t)}],ln2:[Dt,[],function(){return Math.LN2}],pi:[Dt,[],function(){return Math.PI}],e:[Dt,[],function(){return Math.E}],&quot;^&quot;:[Dt,[Dt,Dt],function(t,e){var r=e[1];return Math.pow(e[0].evaluate(t),r.evaluate(t))}],sqrt:[Dt,[Dt],function(t,e){return Math.sqrt(e[0].evaluate(t))}],log10:[Dt,[Dt],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN10}],ln:[Dt,[Dt],function(t,e){return Math.log(e[0].evaluate(t))}],log2:[Dt,[Dt],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN2}],sin:[Dt,[Dt],function(t,e){return Math.sin(e[0].evaluate(t))}],cos:[Dt,[Dt],function(t,e){return Math.cos(e[0].evaluate(t))}],tan:[Dt,[Dt],function(t,e){return Math.tan(e[0].evaluate(t))}],asin:[Dt,[Dt],function(t,e){return Math.asin(e[0].evaluate(t))}],acos:[Dt,[Dt],function(t,e){return Math.acos(e[0].evaluate(t))}],atan:[Dt,[Dt],function(t,e){return Math.atan(e[0].evaluate(t))}],min:[Dt,Sr(Dt),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[Dt,Sr(Dt),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[Dt,[Dt],function(t,e){return Math.abs(e[0].evaluate(t))}],round:[Dt,[Dt],function(t,e){var r=e[0].evaluate(t);return r&lt;0?-Math.round(-r):Math.round(r)}],floor:[Dt,[Dt],function(t,e){return Math.floor(e[0].evaluate(t))}],ceil:[Dt,[Dt],function(t,e){return Math.ceil(e[0].evaluate(t))}],&quot;filter-==&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1];return t.properties()[r.value]===n.value}],&quot;filter-id-==&quot;:[Ft,[jt],function(t,e){var r=e[0];return t.id()===r.value}],&quot;filter-type-==&quot;:[Ft,[Rt],function(t,e){var r=e[0];return t.geometryType()===r.value}],&quot;filter-&lt;&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&lt;a}],&quot;filter-id-&lt;&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&lt;i}],&quot;filter-&gt;&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&gt;a}],&quot;filter-id-&gt;&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&gt;i}],&quot;filter-&lt;=&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&lt;=a}],&quot;filter-id-&lt;=&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&lt;=i}],&quot;filter-&gt;=&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&gt;=a}],&quot;filter-id-&gt;=&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&gt;=i}],&quot;filter-has&quot;:[Ft,[jt],function(t,e){return e[0].value in t.properties()}],&quot;filter-has-id&quot;:[Ft,[],function(t){return null!==t.id()&amp;&amp;void 0!==t.id()}],&quot;filter-type-in&quot;:[Ft,[Ht(Rt)],function(t,e){return e[0].value.indexOf(t.geometryType())&gt;=0}],&quot;filter-id-in&quot;:[Ft,[Ht(jt)],function(t,e){return e[0].value.indexOf(t.id())&gt;=0}],&quot;filter-in-small&quot;:[Ft,[Rt,Ht(jt)],function(t,e){var r=e[0];return e[1].value.indexOf(t.properties()[r.value])&gt;=0}],&quot;filter-in-large&quot;:[Ft,[Rt,Ht(jt)],function(t,e){var r=e[0],n=e[1];return function(t,e,r,n){for(;r&lt;=n;){var i=r+n&gt;&gt;1;if(e[i]===t)return!0;e[i]&gt;t?n=i-1:r=i+1}return!1}(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:Ft,overloads:[[[Ft,Ft],function(t,e){var r=e[1];return e[0].evaluate(t)&amp;&amp;r.evaluate(t)}],[Sr(Ft),function(t,e){for(var r=0,n=e;r&lt;n.length;r+=1)if(!n[r].evaluate(t))return!1;return!0}]]},any:{type:Ft,overloads:[[[Ft,Ft],function(t,e){var r=e[1];return e[0].evaluate(t)||r.evaluate(t)}],[Sr(Ft),function(t,e){for(var r=0,n=e;r&lt;n.length;r+=1)if(n[r].evaluate(t))return!0;return!1}]]},&quot;!&quot;:[Ft,[Ft],function(t,e){return!e[0].evaluate(t)}],&quot;is-supported-script&quot;:[Ft,[Rt],function(t,e){var r=t.globals&amp;&amp;t.globals.isSupportedScript;return!r||r(e[0].evaluate(t))}],upcase:[Rt,[Rt],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[Rt,[Rt],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[Rt,Sr(jt),function(t,e){return e.map((function(e){return ae(e.evaluate(t))})).join(&quot;&quot;)}],&quot;resolved-locale&quot;:[Rt,[Ut],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var Ur=function(t,e){this.expression=t,this._warningHistory={},this._evaluator=new ge,this._defaultValue=e?function(t){return&quot;color&quot;===t.type&amp;&amp;Or(t.default)?new Kt(0,0,0,0):&quot;color&quot;===t.type?Kt.parse(t.default)||null:void 0===t.default?null:t.default}(e):null,this._enumValues=e&amp;&amp;&quot;enum&quot;===e.type?e.values:null};function Vr(t){return Array.isArray(t)&amp;&amp;t.length&gt;0&amp;&amp;&quot;string&quot;==typeof t[0]&amp;&amp;t[0]in Tr}function qr(t,e){var r=new Be(Tr,[],e?function(t){var e={color:Bt,string:Rt,number:Dt,enum:Rt,boolean:Ft,formatted:Vt,resolvedImage:qt};return&quot;array&quot;===t.type?Ht(e[t.value]||jt,t.length):e[t.type]}(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&amp;&amp;&quot;string&quot;===e.type?{typeAnnotation:&quot;coerce&quot;}:void 0);return n?Er(new Ur(n,e)):Cr(r.errors)}Ur.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)},Ur.prototype.evaluate=function(t,e,r,n,i,a){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a||null;try{var o=this.expression.evaluate(this._evaluator);if(null==o||&quot;number&quot;==typeof o&amp;&amp;o!=o)return this._defaultValue;if(this._enumValues&amp;&amp;!(o in this._enumValues))throw new se(&quot;Expected value to be one of &quot;+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(&quot;, &quot;)+&quot;, but found &quot;+JSON.stringify(o)+&quot; instead.&quot;);return o}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,&quot;undefined&quot;!=typeof console&amp;&amp;console.warn(t.message)),this._defaultValue}};var Hr=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent=&quot;constant&quot;!==t&amp;&amp;!De(e.expression)};Hr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},Hr.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)};var Gr=function(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent=&quot;camera&quot;!==t&amp;&amp;!De(e.expression),this.interpolationType=n};function Yr(t,e){if(&quot;error&quot;===(t=qr(t,e)).result)return t;var r=t.value.expression,n=Oe(r);if(!n&amp;&amp;!Lr(e))return Cr([new Pt(&quot;&quot;,&quot;data expressions not supported&quot;)]);var i=Re(r,[&quot;zoom&quot;]);if(!i&amp;&amp;!Ir(e))return Cr([new Pt(&quot;&quot;,&quot;zoom expressions not supported&quot;)]);var a=function t(e){var r=null;if(e instanceof ar)r=t(e.result);else if(e instanceof ir)for(var n=0,i=e.args;n&lt;i.length&amp;&amp;!(r=t(i[n]));n+=1);else(e instanceof je||e instanceof rr)&amp;&amp;e.input instanceof me&amp;&amp;&quot;zoom&quot;===e.input.name&amp;&amp;(r=e);return r instanceof Pt||e.eachChild((function(e){var n=t(e);n instanceof Pt?r=n:!r&amp;&amp;n?r=new Pt(&quot;&quot;,'&quot;zoom&quot; expression may only be used as input to a top-level &quot;step&quot; or &quot;interpolate&quot; expression.'):r&amp;&amp;n&amp;&amp;r!==n&amp;&amp;(r=new Pt(&quot;&quot;,'Only one zoom-based &quot;step&quot; or &quot;interpolate&quot; subexpression may be used in an expression.'))})),r}(r);return a||i?a instanceof Pt?Cr([a]):a instanceof rr&amp;&amp;!Pr(e)?Cr([new Pt(&quot;&quot;,'&quot;interpolate&quot; expressions cannot be used with this property')]):Er(a?new Gr(n?&quot;camera&quot;:&quot;composite&quot;,t.value,a.labels,a instanceof rr?a.interpolation:void 0):new Hr(n?&quot;constant&quot;:&quot;source&quot;,t.value)):Cr([new Pt(&quot;&quot;,'&quot;zoom&quot; expression may only be used as input to a top-level &quot;step&quot; or &quot;interpolate&quot; expression.')])}Gr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},Gr.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)},Gr.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?rr.interpolationFactor(this.interpolationType,t,e,r):0};var Wr=function(t,e){this._parameters=t,this._specification=e,Ct(this,function t(e,r){var n,i,a,o=&quot;color&quot;===r.type,s=e.stops&amp;&amp;&quot;object&quot;==typeof e.stops[0][0],l=s||!(s||void 0!==e.property),c=e.type||(Pr(r)?&quot;exponential&quot;:&quot;interval&quot;);if(o&amp;&amp;((e=Ct({},e)).stops&amp;&amp;(e.stops=e.stops.map((function(t){return[t[0],Kt.parse(t[1])]}))),e.default=Kt.parse(e.default?e.default:r.default)),e.colorSpace&amp;&amp;&quot;rgb&quot;!==e.colorSpace&amp;&amp;!er[e.colorSpace])throw new Error(&quot;Unknown color space: &quot;+e.colorSpace);if(&quot;exponential&quot;===c)n=Nr;else if(&quot;interval&quot;===c)n=Br;else if(&quot;categorical&quot;===c){n=Fr,i=Object.create(null);for(var u=0,f=e.stops;u&lt;f.length;u+=1){var h=f[u];i[h[0]]=h[1]}a=typeof e.stops[0][0]}else{if(&quot;identity&quot;!==c)throw new Error('Unknown function type &quot;'+c+'&quot;');n=jr}if(s){for(var p={},d=[],g=0;g&lt;e.stops.length;g++){var m=e.stops[g],v=m[0].zoom;void 0===p[v]&amp;&amp;(p[v]={zoom:v,type:e.type,property:e.property,default:e.default,stops:[]},d.push(v)),p[v].stops.push([m[0].value,m[1]])}for(var y=[],x=0,b=d;x&lt;b.length;x+=1){var _=b[x];y.push([p[_].zoom,t(p[_],r)])}var w={name:&quot;linear&quot;};return{kind:&quot;composite&quot;,interpolationType:w,interpolationFactor:rr.interpolationFactor.bind(void 0,w),zoomStops:y.map((function(t){return t[0]})),evaluate:function(t,n){var i=t.zoom;return Nr({stops:y,base:e.base},r,i).evaluate(i,n)}}}if(l){var T=&quot;exponential&quot;===c?{name:&quot;exponential&quot;,base:void 0!==e.base?e.base:1}:null;return{kind:&quot;camera&quot;,interpolationType:T,interpolationFactor:rr.interpolationFactor.bind(void 0,T),zoomStops:e.stops.map((function(t){return t[0]})),evaluate:function(t){return n(e,r,t.zoom,i,a)}}}return{kind:&quot;source&quot;,evaluate:function(t,o){var s=o&amp;&amp;o.properties?o.properties[e.property]:void 0;return void 0===s?Rr(e.default,r.default):n(e,r,s,i,a)}}}(this._parameters,this._specification))};function Xr(t){var e=t.key,r=t.value,n=t.valueSpec||{},i=t.objectElementValidators||{},a=t.style,o=t.styleSpec,s=[],l=zr(r);if(&quot;object&quot;!==l)return[new St(e,r,&quot;object expected, &quot;+l+&quot; found&quot;)];for(var c in r){var u=c.split(&quot;.&quot;)[0],f=n[u]||n[&quot;*&quot;],h=void 0;if(i[u])h=i[u];else if(n[u])h=bn;else if(i[&quot;*&quot;])h=i[&quot;*&quot;];else{if(!n[&quot;*&quot;]){s.push(new St(e,r[c],'unknown property &quot;'+c+'&quot;'));continue}h=bn}s=s.concat(h({key:(e?e+&quot;.&quot;:e)+c,value:r[c],valueSpec:f,style:a,styleSpec:o,object:r,objectKey:c},r))}for(var p in n)i[p]||n[p].required&amp;&amp;void 0===n[p].default&amp;&amp;void 0===r[p]&amp;&amp;s.push(new St(e,r,'missing required property &quot;'+p+'&quot;'));return s}function Zr(t){var e=t.value,r=t.valueSpec,n=t.style,i=t.styleSpec,a=t.key,o=t.arrayElementValidator||bn;if(&quot;array&quot;!==zr(e))return[new St(a,e,&quot;array expected, &quot;+zr(e)+&quot; found&quot;)];if(r.length&amp;&amp;e.length!==r.length)return[new St(a,e,&quot;array length &quot;+r.length+&quot; expected, length &quot;+e.length+&quot; found&quot;)];if(r[&quot;min-length&quot;]&amp;&amp;e.length&lt;r[&quot;min-length&quot;])return[new St(a,e,&quot;array length at least &quot;+r[&quot;min-length&quot;]+&quot; expected, length &quot;+e.length+&quot; found&quot;)];var s={type:r.value,values:r.values};i.$version&lt;7&amp;&amp;(s.function=r.function),&quot;object&quot;===zr(r.value)&amp;&amp;(s=r.value);for(var l=[],c=0;c&lt;e.length;c++)l=l.concat(o({array:e,arrayIndex:c,value:e[c],valueSpec:s,style:n,styleSpec:i,key:a+&quot;[&quot;+c+&quot;]&quot;}));return l}function Jr(t){var e=t.key,r=t.value,n=t.valueSpec,i=zr(r);return&quot;number&quot;===i&amp;&amp;r!=r&amp;&amp;(i=&quot;NaN&quot;),&quot;number&quot;!==i?[new St(e,r,&quot;number expected, &quot;+i+&quot; found&quot;)]:&quot;minimum&quot;in n&amp;&amp;r&lt;n.minimum?[new St(e,r,r+&quot; is less than the minimum value &quot;+n.minimum)]:&quot;maximum&quot;in n&amp;&amp;r&gt;n.maximum?[new St(e,r,r+&quot; is greater than the maximum value &quot;+n.maximum)]:[]}function Kr(t){var e,r,n,i=t.valueSpec,a=Lt(t.value.type),o={},s=&quot;categorical&quot;!==a&amp;&amp;void 0===t.value.property,l=!s,c=&quot;array&quot;===zr(t.value.stops)&amp;&amp;&quot;array&quot;===zr(t.value.stops[0])&amp;&amp;&quot;object&quot;===zr(t.value.stops[0][0]),u=Xr({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if(&quot;identity&quot;===a)return[new St(t.key,t.value,'identity function may not have a &quot;stops&quot; property')];var e=[],r=t.value;return e=e.concat(Zr({key:t.key,value:r,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:f})),&quot;array&quot;===zr(r)&amp;&amp;0===r.length&amp;&amp;e.push(new St(t.key,r,&quot;array must have at least one stop&quot;)),e},default:function(t){return bn({key:t.key,value:t.value,valueSpec:i,style:t.style,styleSpec:t.styleSpec})}}});return&quot;identity&quot;===a&amp;&amp;s&amp;&amp;u.push(new St(t.key,t.value,'missing required property &quot;property&quot;')),&quot;identity&quot;===a||t.value.stops||u.push(new St(t.key,t.value,'missing required property &quot;stops&quot;')),&quot;exponential&quot;===a&amp;&amp;t.valueSpec.expression&amp;&amp;!Pr(t.valueSpec)&amp;&amp;u.push(new St(t.key,t.value,&quot;exponential functions not supported&quot;)),t.styleSpec.$version&gt;=8&amp;&amp;(l&amp;&amp;!Lr(t.valueSpec)?u.push(new St(t.key,t.value,&quot;property functions not supported&quot;)):s&amp;&amp;!Ir(t.valueSpec)&amp;&amp;u.push(new St(t.key,t.value,&quot;zoom functions not supported&quot;))),&quot;categorical&quot;!==a&amp;&amp;!c||void 0!==t.value.property||u.push(new St(t.key,t.value,'&quot;property&quot; property is required')),u;function f(t){var e=[],a=t.value,s=t.key;if(&quot;array&quot;!==zr(a))return[new St(s,a,&quot;array expected, &quot;+zr(a)+&quot; found&quot;)];if(2!==a.length)return[new St(s,a,&quot;array length 2 expected, length &quot;+a.length+&quot; found&quot;)];if(c){if(&quot;object&quot;!==zr(a[0]))return[new St(s,a,&quot;object expected, &quot;+zr(a[0])+&quot; found&quot;)];if(void 0===a[0].zoom)return[new St(s,a,&quot;object stop key must have zoom&quot;)];if(void 0===a[0].value)return[new St(s,a,&quot;object stop key must have value&quot;)];if(n&amp;&amp;n&gt;Lt(a[0].zoom))return[new St(s,a[0].zoom,&quot;stop zoom values must appear in ascending order&quot;)];Lt(a[0].zoom)!==n&amp;&amp;(n=Lt(a[0].zoom),r=void 0,o={}),e=e.concat(Xr({key:s+&quot;[0]&quot;,value:a[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:Jr,value:h}}))}else e=e.concat(h({key:s+&quot;[0]&quot;,value:a[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},a));return Vr(It(a[1]))?e.concat([new St(s+&quot;[1]&quot;,a[1],&quot;expressions are not allowed in function stops.&quot;)]):e.concat(bn({key:s+&quot;[1]&quot;,value:a[1],valueSpec:i,style:t.style,styleSpec:t.styleSpec}))}function h(t,n){var s=zr(t.value),l=Lt(t.value),c=null!==t.value?t.value:n;if(e){if(s!==e)return[new St(t.key,c,s+&quot; stop domain type must match previous stop domain type &quot;+e)]}else e=s;if(&quot;number&quot;!==s&amp;&amp;&quot;string&quot;!==s&amp;&amp;&quot;boolean&quot;!==s)return[new St(t.key,c,&quot;stop domain value must be a number, string, or boolean&quot;)];if(&quot;number&quot;!==s&amp;&amp;&quot;categorical&quot;!==a){var u=&quot;number expected, &quot;+s+&quot; found&quot;;return Lr(i)&amp;&amp;void 0===a&amp;&amp;(u+='\nIf you intended to use a categorical function, specify `&quot;type&quot;: &quot;categorical&quot;`.'),[new St(t.key,c,u)]}return&quot;categorical&quot;!==a||&quot;number&quot;!==s||isFinite(l)&amp;&amp;Math.floor(l)===l?&quot;categorical&quot;!==a&amp;&amp;&quot;number&quot;===s&amp;&amp;void 0!==r&amp;&amp;l&lt;r?[new St(t.key,c,&quot;stop domain values must appear in ascending order&quot;)]:(r=l,&quot;categorical&quot;===a&amp;&amp;l in o?[new St(t.key,c,&quot;stop domain values must be unique&quot;)]:(o[l]=!0,[])):[new St(t.key,c,&quot;integer expected, found &quot;+l)]}}function Qr(t){var e=(&quot;property&quot;===t.expressionContext?Yr:qr)(It(t.value),t.valueSpec);if(&quot;error&quot;===e.result)return e.value.map((function(e){return new St(&quot;&quot;+t.key+e.key,t.value,e.message)}));var r=e.value.expression||e.value._styleExpression.expression;if(&quot;property&quot;===t.expressionContext&amp;&amp;&quot;text-font&quot;===t.propertyKey&amp;&amp;!r.outputDefined())return[new St(t.key,t.value,'Invalid data expression for &quot;'+t.propertyKey+'&quot;. Output values must be contained as literals within the expression.')];if(&quot;property&quot;===t.expressionContext&amp;&amp;&quot;layout&quot;===t.propertyType&amp;&amp;!De(r))return[new St(t.key,t.value,'&quot;feature-state&quot; data expressions are not supported with layout properties.')];if(&quot;filter&quot;===t.expressionContext&amp;&amp;!De(r))return[new St(t.key,t.value,'&quot;feature-state&quot; data expressions are not supported with filters.')];if(t.expressionContext&amp;&amp;0===t.expressionContext.indexOf(&quot;cluster&quot;)){if(!Re(r,[&quot;zoom&quot;,&quot;feature-state&quot;]))return[new St(t.key,t.value,'&quot;zoom&quot; and &quot;feature-state&quot; expressions are not supported with cluster properties.')];if(&quot;cluster-initial&quot;===t.expressionContext&amp;&amp;!Oe(r))return[new St(t.key,t.value,&quot;Feature data expressions are not supported with initial expression part of cluster properties.&quot;)]}return[]}function $r(t){var e=t.key,r=t.value,n=t.valueSpec,i=[];return Array.isArray(n.values)?-1===n.values.indexOf(Lt(r))&amp;&amp;i.push(new St(e,r,&quot;expected one of [&quot;+n.values.join(&quot;, &quot;)+&quot;], &quot;+JSON.stringify(r)+&quot; found&quot;)):-1===Object.keys(n.values).indexOf(Lt(r))&amp;&amp;i.push(new St(e,r,&quot;expected one of [&quot;+Object.keys(n.values).join(&quot;, &quot;)+&quot;], &quot;+JSON.stringify(r)+&quot; found&quot;)),i}function tn(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case&quot;has&quot;:return t.length&gt;=2&amp;&amp;&quot;$id&quot;!==t[1]&amp;&amp;&quot;$type&quot;!==t[1];case&quot;in&quot;:return t.length&gt;=3&amp;&amp;(&quot;string&quot;!=typeof t[1]||Array.isArray(t[2]));case&quot;!in&quot;:case&quot;!has&quot;:case&quot;none&quot;:return!1;case&quot;==&quot;:case&quot;!=&quot;:case&quot;&gt;&quot;:case&quot;&gt;=&quot;:case&quot;&lt;&quot;:case&quot;&lt;=&quot;:return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case&quot;any&quot;:case&quot;all&quot;:for(var e=0,r=t.slice(1);e&lt;r.length;e+=1){var n=r[e];if(!tn(n)&amp;&amp;&quot;boolean&quot;!=typeof n)return!1}return!0;default:return!0}}Wr.deserialize=function(t){return new Wr(t._parameters,t._specification)},Wr.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var en={type:&quot;boolean&quot;,default:!1,transition:!1,&quot;property-type&quot;:&quot;data-driven&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]}};function rn(t){if(null==t)return{filter:function(){return!0},needGeometry:!1};tn(t)||(t=an(t));var e=qr(t,en);if(&quot;error&quot;===e.result)throw new Error(e.value.map((function(t){return t.key+&quot;: &quot;+t.message})).join(&quot;, &quot;));return{filter:function(t,r,n){return e.value.evaluate(t,r,{},n)},needGeometry:function t(e){if(!Array.isArray(e))return!1;if(&quot;within&quot;===e[0])return!0;for(var r=1;r&lt;e.length;r++)if(t(e[r]))return!0;return!1}(t)}}function nn(t,e){return t&lt;e?-1:t&gt;e?1:0}function an(t){if(!t)return!0;var e,r=t[0];return t.length&lt;=1?&quot;any&quot;!==r:&quot;==&quot;===r?on(t[1],t[2],&quot;==&quot;):&quot;!=&quot;===r?cn(on(t[1],t[2],&quot;==&quot;)):&quot;&lt;&quot;===r||&quot;&gt;&quot;===r||&quot;&lt;=&quot;===r||&quot;&gt;=&quot;===r?on(t[1],t[2],r):&quot;any&quot;===r?(e=t.slice(1),[&quot;any&quot;].concat(e.map(an))):&quot;all&quot;===r?[&quot;all&quot;].concat(t.slice(1).map(an)):&quot;none&quot;===r?[&quot;all&quot;].concat(t.slice(1).map(an).map(cn)):&quot;in&quot;===r?sn(t[1],t.slice(2)):&quot;!in&quot;===r?cn(sn(t[1],t.slice(2))):&quot;has&quot;===r?ln(t[1]):&quot;!has&quot;===r?cn(ln(t[1])):&quot;within&quot;!==r||t}function on(t,e,r){switch(t){case&quot;$type&quot;:return[&quot;filter-type-&quot;+r,e];case&quot;$id&quot;:return[&quot;filter-id-&quot;+r,e];default:return[&quot;filter-&quot;+r,t,e]}}function sn(t,e){if(0===e.length)return!1;switch(t){case&quot;$type&quot;:return[&quot;filter-type-in&quot;,[&quot;literal&quot;,e]];case&quot;$id&quot;:return[&quot;filter-id-in&quot;,[&quot;literal&quot;,e]];default:return e.length&gt;200&amp;&amp;!e.some((function(t){return typeof t!=typeof e[0]}))?[&quot;filter-in-large&quot;,t,[&quot;literal&quot;,e.sort(nn)]]:[&quot;filter-in-small&quot;,t,[&quot;literal&quot;,e]]}}function ln(t){switch(t){case&quot;$type&quot;:return!0;case&quot;$id&quot;:return[&quot;filter-has-id&quot;];default:return[&quot;filter-has&quot;,t]}}function cn(t){return[&quot;!&quot;,t]}function un(t){return tn(It(t.value))?Qr(Ct({},t,{expressionContext:&quot;filter&quot;,valueSpec:{value:&quot;boolean&quot;}})):function t(e){var r=e.value,n=e.key;if(&quot;array&quot;!==zr(r))return[new St(n,r,&quot;array expected, &quot;+zr(r)+&quot; found&quot;)];var i,a=e.styleSpec,o=[];if(r.length&lt;1)return[new St(n,r,&quot;filter array must have at least 1 element&quot;)];switch(o=o.concat($r({key:n+&quot;[0]&quot;,value:r[0],valueSpec:a.filter_operator,style:e.style,styleSpec:e.styleSpec})),Lt(r[0])){case&quot;&lt;&quot;:case&quot;&lt;=&quot;:case&quot;&gt;&quot;:case&quot;&gt;=&quot;:r.length&gt;=2&amp;&amp;&quot;$type&quot;===Lt(r[1])&amp;&amp;o.push(new St(n,r,'&quot;$type&quot; cannot be use with operator &quot;'+r[0]+'&quot;'));case&quot;==&quot;:case&quot;!=&quot;:3!==r.length&amp;&amp;o.push(new St(n,r,'filter array for operator &quot;'+r[0]+'&quot; must have 3 elements'));case&quot;in&quot;:case&quot;!in&quot;:r.length&gt;=2&amp;&amp;&quot;string&quot;!==(i=zr(r[1]))&amp;&amp;o.push(new St(n+&quot;[1]&quot;,r[1],&quot;string expected, &quot;+i+&quot; found&quot;));for(var s=2;s&lt;r.length;s++)i=zr(r[s]),&quot;$type&quot;===Lt(r[1])?o=o.concat($r({key:n+&quot;[&quot;+s+&quot;]&quot;,value:r[s],valueSpec:a.geometry_type,style:e.style,styleSpec:e.styleSpec})):&quot;string&quot;!==i&amp;&amp;&quot;number&quot;!==i&amp;&amp;&quot;boolean&quot;!==i&amp;&amp;o.push(new St(n+&quot;[&quot;+s+&quot;]&quot;,r[s],&quot;string, number, or boolean expected, &quot;+i+&quot; found&quot;));break;case&quot;any&quot;:case&quot;all&quot;:case&quot;none&quot;:for(var l=1;l&lt;r.length;l++)o=o.concat(t({key:n+&quot;[&quot;+l+&quot;]&quot;,value:r[l],style:e.style,styleSpec:e.styleSpec}));break;case&quot;has&quot;:case&quot;!has&quot;:i=zr(r[1]),2!==r.length?o.push(new St(n,r,'filter array for &quot;'+r[0]+'&quot; operator must have 2 elements')):&quot;string&quot;!==i&amp;&amp;o.push(new St(n+&quot;[1]&quot;,r[1],&quot;string expected, &quot;+i+&quot; found&quot;));break;case&quot;within&quot;:i=zr(r[1]),2!==r.length?o.push(new St(n,r,'filter array for &quot;'+r[0]+'&quot; operator must have 2 elements')):&quot;object&quot;!==i&amp;&amp;o.push(new St(n+&quot;[1]&quot;,r[1],&quot;object expected, &quot;+i+&quot; found&quot;))}return o}(t)}function fn(t,e){var r=t.key,n=t.style,i=t.styleSpec,a=t.value,o=t.objectKey,s=i[e+&quot;_&quot;+t.layerType];if(!s)return[];var l=o.match(/^(.*)-transition$/);if(&quot;paint&quot;===e&amp;&amp;l&amp;&amp;s[l[1]]&amp;&amp;s[l[1]].transition)return bn({key:r,value:a,valueSpec:i.transition,style:n,styleSpec:i});var c,u=t.valueSpec||s[o];if(!u)return[new St(r,a,'unknown property &quot;'+o+'&quot;')];if(&quot;string&quot;===zr(a)&amp;&amp;Lr(u)&amp;&amp;!u.tokens&amp;&amp;(c=/^{([^}]+)}$/.exec(a)))return[new St(r,a,'&quot;'+o+'&quot; does not support interpolation syntax\nUse an identity property function instead: `{ &quot;type&quot;: &quot;identity&quot;, &quot;property&quot;: '+JSON.stringify(c[1])+&quot; }`.&quot;)];var f=[];return&quot;symbol&quot;===t.layerType&amp;&amp;(&quot;text-field&quot;===o&amp;&amp;n&amp;&amp;!n.glyphs&amp;&amp;f.push(new St(r,a,'use of &quot;text-field&quot; requires a style &quot;glyphs&quot; property')),&quot;text-font&quot;===o&amp;&amp;Or(It(a))&amp;&amp;&quot;identity&quot;===Lt(a.type)&amp;&amp;f.push(new St(r,a,'&quot;text-font&quot; does not support identity functions'))),f.concat(bn({key:t.key,value:a,valueSpec:u,style:n,styleSpec:i,expressionContext:&quot;property&quot;,propertyType:e,propertyKey:o}))}function hn(t){return fn(t,&quot;paint&quot;)}function pn(t){return fn(t,&quot;layout&quot;)}function dn(t){var e=[],r=t.value,n=t.key,i=t.style,a=t.styleSpec;r.type||r.ref||e.push(new St(n,r,'either &quot;type&quot; or &quot;ref&quot; is required'));var o,s=Lt(r.type),l=Lt(r.ref);if(r.id)for(var c=Lt(r.id),u=0;u&lt;t.arrayIndex;u++){var f=i.layers[u];Lt(f.id)===c&amp;&amp;e.push(new St(n,r.id,'duplicate layer id &quot;'+r.id+'&quot;, previously used at line '+f.id.__line__))}if(&quot;ref&quot;in r)[&quot;type&quot;,&quot;source&quot;,&quot;source-layer&quot;,&quot;filter&quot;,&quot;layout&quot;].forEach((function(t){t in r&amp;&amp;e.push(new St(n,r[t],'&quot;'+t+'&quot; is prohibited for ref layers'))})),i.layers.forEach((function(t){Lt(t.id)===l&amp;&amp;(o=t)})),o?o.ref?e.push(new St(n,r.ref,&quot;ref cannot reference another ref layer&quot;)):s=Lt(o.type):e.push(new St(n,r.ref,'ref layer &quot;'+l+'&quot; not found'));else if(&quot;background&quot;!==s)if(r.source){var h=i.sources&amp;&amp;i.sources[r.source],p=h&amp;&amp;Lt(h.type);h?&quot;vector&quot;===p&amp;&amp;&quot;raster&quot;===s?e.push(new St(n,r.source,'layer &quot;'+r.id+'&quot; requires a raster source')):&quot;raster&quot;===p&amp;&amp;&quot;raster&quot;!==s?e.push(new St(n,r.source,'layer &quot;'+r.id+'&quot; requires a vector source')):&quot;vector&quot;!==p||r[&quot;source-layer&quot;]?&quot;raster-dem&quot;===p&amp;&amp;&quot;hillshade&quot;!==s?e.push(new St(n,r.source,&quot;raster-dem source can only be used with layer type 'hillshade'.&quot;)):&quot;line&quot;!==s||!r.paint||!r.paint[&quot;line-gradient&quot;]||&quot;geojson&quot;===p&amp;&amp;h.lineMetrics||e.push(new St(n,r,'layer &quot;'+r.id+'&quot; specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new St(n,r,'layer &quot;'+r.id+'&quot; must specify a &quot;source-layer&quot;')):e.push(new St(n,r.source,'source &quot;'+r.source+'&quot; not found'))}else e.push(new St(n,r,'missing required property &quot;source&quot;'));return e=e.concat(Xr({key:n,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(){return[]},type:function(){return bn({key:n+&quot;.type&quot;,value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,object:r,objectKey:&quot;type&quot;})},filter:un,layout:function(t){return Xr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(t){return pn(Ct({layerType:s},t))}}})},paint:function(t){return Xr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(t){return hn(Ct({layerType:s},t))}}})}}}))}function gn(t){var e=t.value,r=t.key,n=zr(e);return&quot;string&quot;!==n?[new St(r,e,&quot;string expected, &quot;+n+&quot; found&quot;)]:[]}var mn={promoteId:function(t){var e=t.key,r=t.value;if(&quot;string&quot;===zr(r))return gn({key:e,value:r});var n=[];for(var i in r)n.push.apply(n,gn({key:e+&quot;.&quot;+i,value:r[i]}));return n}};function vn(t){var e=t.value,r=t.key,n=t.styleSpec,i=t.style;if(!e.type)return[new St(r,e,'&quot;type&quot; is required')];var a,o=Lt(e.type);switch(o){case&quot;vector&quot;:case&quot;raster&quot;:case&quot;raster-dem&quot;:return Xr({key:r,value:e,valueSpec:n[&quot;source_&quot;+o.replace(&quot;-&quot;,&quot;_&quot;)],style:t.style,styleSpec:n,objectElementValidators:mn});case&quot;geojson&quot;:if(a=Xr({key:r,value:e,valueSpec:n.source_geojson,style:i,styleSpec:n,objectElementValidators:mn}),e.cluster)for(var s in e.clusterProperties){var l=e.clusterProperties[s],c=l[0],u=&quot;string&quot;==typeof c?[c,[&quot;accumulated&quot;],[&quot;get&quot;,s]]:c;a.push.apply(a,Qr({key:r+&quot;.&quot;+s+&quot;.map&quot;,value:l[1],expressionContext:&quot;cluster-map&quot;})),a.push.apply(a,Qr({key:r+&quot;.&quot;+s+&quot;.reduce&quot;,value:u,expressionContext:&quot;cluster-reduce&quot;}))}return a;case&quot;video&quot;:return Xr({key:r,value:e,valueSpec:n.source_video,style:i,styleSpec:n});case&quot;image&quot;:return Xr({key:r,value:e,valueSpec:n.source_image,style:i,styleSpec:n});case&quot;canvas&quot;:return[new St(r,null,&quot;Please use runtime APIs to add canvas sources, rather than including them in stylesheets.&quot;,&quot;source.canvas&quot;)];default:return $r({key:r+&quot;.type&quot;,value:e.type,valueSpec:{values:[&quot;vector&quot;,&quot;raster&quot;,&quot;raster-dem&quot;,&quot;geojson&quot;,&quot;video&quot;,&quot;image&quot;]},style:i,styleSpec:n})}}function yn(t){var e=t.value,r=t.styleSpec,n=r.light,i=t.style,a=[],o=zr(e);if(void 0===e)return a;if(&quot;object&quot;!==o)return a.concat([new St(&quot;light&quot;,e,&quot;object expected, &quot;+o+&quot; found&quot;)]);for(var s in e){var l=s.match(/^(.*)-transition$/);a=a.concat(l&amp;&amp;n[l[1]]&amp;&amp;n[l[1]].transition?bn({key:s,value:e[s],valueSpec:r.transition,style:i,styleSpec:r}):n[s]?bn({key:s,value:e[s],valueSpec:n[s],style:i,styleSpec:r}):[new St(s,e[s],'unknown property &quot;'+s+'&quot;')])}return a}var xn={&quot;*&quot;:function(){return[]},array:Zr,boolean:function(t){var e=t.value,r=t.key,n=zr(e);return&quot;boolean&quot;!==n?[new St(r,e,&quot;boolean expected, &quot;+n+&quot; found&quot;)]:[]},number:Jr,color:function(t){var e=t.key,r=t.value,n=zr(r);return&quot;string&quot;!==n?[new St(e,r,&quot;color expected, &quot;+n+&quot; found&quot;)]:null===Jt(r)?[new St(e,r,'color expected, &quot;'+r+'&quot; found')]:[]},constants:Et,enum:$r,filter:un,function:Kr,layer:dn,object:Xr,source:vn,light:yn,string:gn,formatted:function(t){return 0===gn(t).length?[]:Qr(t)},resolvedImage:function(t){return 0===gn(t).length?[]:Qr(t)}};function bn(t){var e=t.value,r=t.valueSpec,n=t.styleSpec;return r.expression&amp;&amp;Or(Lt(e))?Kr(t):r.expression&amp;&amp;Vr(It(e))?Qr(t):r.type&amp;&amp;xn[r.type]?xn[r.type](t):Xr(Ct({},t,{valueSpec:r.type?n[r.type]:r}))}function _n(t){var e=t.value,r=t.key,n=gn(t);return n.length||(-1===e.indexOf(&quot;{fontstack}&quot;)&amp;&amp;n.push(new St(r,e,'&quot;glyphs&quot; url must include a &quot;{fontstack}&quot; token')),-1===e.indexOf(&quot;{range}&quot;)&amp;&amp;n.push(new St(r,e,'&quot;glyphs&quot; url must include a &quot;{range}&quot; token'))),n}function wn(t,e){void 0===e&amp;&amp;(e=At);var r=[];return r=r.concat(bn({key:&quot;&quot;,value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:_n,&quot;*&quot;:function(){return[]}}})),t.constants&amp;&amp;(r=r.concat(Et({key:&quot;constants&quot;,value:t.constants,style:t,styleSpec:e}))),Tn(r)}function Tn(t){return[].concat(t).sort((function(t,e){return t.line-e.line}))}function kn(t){return function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return Tn(t.apply(this,e))}}wn.source=kn(vn),wn.light=kn(yn),wn.layer=kn(dn),wn.filter=kn(un),wn.paintProperty=kn(hn),wn.layoutProperty=kn(pn);var Mn=wn,An=Mn.light,Sn=Mn.paintProperty,En=Mn.layoutProperty;function Cn(t,e){var r=!1;if(e&amp;&amp;e.length)for(var n=0,i=e;n&lt;i.length;n+=1)t.fire(new kt(new Error(i[n].message))),r=!0;return r}var Ln=In;function In(t,e,r){var n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var i=new Int32Array(this.arrayBuffer);t=i[0],this.d=(e=i[1])+2*(r=i[2]);for(var a=0;a&lt;this.d*this.d;a++){var o=i[3+a],s=i[3+a+1];n.push(o===s?null:i.subarray(o,s))}var l=i[3+n.length+1];this.keys=i.subarray(i[3+n.length],l),this.bboxes=i.subarray(l),this.insert=this._insertReadonly}else{this.d=e+2*r;for(var c=0;c&lt;this.d*this.d;c++)n.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=r,this.scale=e/t,this.uid=0;var u=r/e*t;this.min=-u,this.max=t+u}In.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},In.prototype._insertReadonly=function(){throw&quot;Cannot insert into a GridIndex created from an ArrayBuffer.&quot;},In.prototype._insertCell=function(t,e,r,n,i,a){this.cells[i].push(a)},In.prototype.query=function(t,e,r,n,i){var a=this.min,o=this.max;if(t&lt;=a&amp;&amp;e&lt;=a&amp;&amp;o&lt;=r&amp;&amp;o&lt;=n&amp;&amp;!i)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(t,e,r,n,this._queryCell,s,{},i),s},In.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=this.cells[i];if(null!==l)for(var c=this.keys,u=this.bboxes,f=0;f&lt;l.length;f++){var h=l[f];if(void 0===o[h]){var p=4*h;(s?s(u[p+0],u[p+1],u[p+2],u[p+3]):t&lt;=u[p+2]&amp;&amp;e&lt;=u[p+3]&amp;&amp;r&gt;=u[p+0]&amp;&amp;n&gt;=u[p+1])?(o[h]=!0,a.push(c[h])):o[h]=!1}}},In.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToCellCoord(t),c=this._convertToCellCoord(e),u=this._convertToCellCoord(r),f=this._convertToCellCoord(n),h=l;h&lt;=u;h++)for(var p=c;p&lt;=f;p++){var d=this.d*p+h;if((!s||s(this._convertFromCellCoord(h),this._convertFromCellCoord(p),this._convertFromCellCoord(h+1),this._convertFromCellCoord(p+1)))&amp;&amp;i.call(this,t,e,r,n,d,a,o,s))return}},In.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},In.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},In.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,r=0,n=0;n&lt;this.cells.length;n++)r+=this.cells[n].length;var i=new Int32Array(e+r+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var a=e,o=0;o&lt;t.length;o++){var s=t[o];i[3+o]=a,i.set(s,a),a+=s.length}return i[3+t.length]=a,i.set(this.keys,a),i[3+t.length+1]=a+=this.keys.length,i.set(this.bboxes,a),a+=this.bboxes.length,i.buffer};var Pn=self.ImageData,zn=self.ImageBitmap,On={};function Dn(t,e,r){void 0===r&amp;&amp;(r={}),Object.defineProperty(e,&quot;_classRegistryKey&quot;,{value:t,writeable:!1}),On[t]={klass:e,omit:r.omit||[],shallow:r.shallow||[]}}for(var Rn in Dn(&quot;Object&quot;,Object),Ln.serialize=function(t,e){var r=t.toArrayBuffer();return e&amp;&amp;e.push(r),{buffer:r}},Ln.deserialize=function(t){return new Ln(t.buffer)},Dn(&quot;Grid&quot;,Ln),Dn(&quot;Color&quot;,Kt),Dn(&quot;Error&quot;,Error),Dn(&quot;ResolvedImage&quot;,ee),Dn(&quot;StylePropertyFunction&quot;,Wr),Dn(&quot;StyleExpression&quot;,Ur,{omit:[&quot;_evaluator&quot;]}),Dn(&quot;ZoomDependentExpression&quot;,Gr),Dn(&quot;ZoomConstantExpression&quot;,Hr),Dn(&quot;CompoundExpression&quot;,me,{omit:[&quot;_evaluate&quot;]}),Tr)Tr[Rn]._classRegistryKey||Dn(&quot;Expression_&quot;+Rn,Tr[Rn]);function Fn(t){return t&amp;&amp;&quot;undefined&quot;!=typeof ArrayBuffer&amp;&amp;(t instanceof ArrayBuffer||t.constructor&amp;&amp;&quot;ArrayBuffer&quot;===t.constructor.name)}function Bn(t){return zn&amp;&amp;t instanceof zn}function Nn(t,e){if(null==t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(Fn(t)||Bn(t))return e&amp;&amp;e.push(t),t;if(ArrayBuffer.isView(t)){var r=t;return e&amp;&amp;e.push(r.buffer),r}if(t instanceof Pn)return e&amp;&amp;e.push(t.data.buffer),t;if(Array.isArray(t)){for(var n=[],i=0,a=t;i&lt;a.length;i+=1)n.push(Nn(a[i],e));return n}if(&quot;object&quot;==typeof t){var o=t.constructor,s=o._classRegistryKey;if(!s)throw new Error(&quot;can't serialize object of unregistered class&quot;);var l=o.serialize?o.serialize(t,e):{};if(!o.serialize){for(var c in t)if(t.hasOwnProperty(c)&amp;&amp;!(On[s].omit.indexOf(c)&gt;=0)){var u=t[c];l[c]=On[s].shallow.indexOf(c)&gt;=0?u:Nn(u,e)}t instanceof Error&amp;&amp;(l.message=t.message)}if(l.$name)throw new Error(&quot;$name property is reserved for worker serialization logic.&quot;);return&quot;Object&quot;!==s&amp;&amp;(l.$name=s),l}throw new Error(&quot;can't serialize object of type &quot;+typeof t)}function jn(t){if(null==t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||Fn(t)||Bn(t)||ArrayBuffer.isView(t)||t instanceof Pn)return t;if(Array.isArray(t))return t.map(jn);if(&quot;object&quot;==typeof t){var e=t.$name||&quot;Object&quot;,r=On[e].klass;if(!r)throw new Error(&quot;can't deserialize unregistered class &quot;+e);if(r.deserialize)return r.deserialize(t);for(var n=Object.create(r.prototype),i=0,a=Object.keys(t);i&lt;a.length;i+=1){var o=a[i];if(&quot;$name&quot;!==o){var s=t[o];n[o]=On[e].shallow.indexOf(o)&gt;=0?s:jn(s)}}return n}throw new Error(&quot;can't deserialize object of type &quot;+typeof t)}var Un=function(){this.first=!0};Un.prototype.update=function(t,e){var r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom&gt;r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoom&lt;r&amp;&amp;(this.lastIntegerZoom=r,this.lastIntegerZoomTime=e),t!==this.lastZoom&amp;&amp;(this.lastZoom=t,this.lastFloorZoom=r,!0))};var Vn={&quot;Latin-1 Supplement&quot;:function(t){return t&gt;=128&amp;&amp;t&lt;=255},Arabic:function(t){return t&gt;=1536&amp;&amp;t&lt;=1791},&quot;Arabic Supplement&quot;:function(t){return t&gt;=1872&amp;&amp;t&lt;=1919},&quot;Arabic Extended-A&quot;:function(t){return t&gt;=2208&amp;&amp;t&lt;=2303},&quot;Hangul Jamo&quot;:function(t){return t&gt;=4352&amp;&amp;t&lt;=4607},&quot;Unified Canadian Aboriginal Syllabics&quot;:function(t){return t&gt;=5120&amp;&amp;t&lt;=5759},Khmer:function(t){return t&gt;=6016&amp;&amp;t&lt;=6143},&quot;Unified Canadian Aboriginal Syllabics Extended&quot;:function(t){return t&gt;=6320&amp;&amp;t&lt;=6399},&quot;General Punctuation&quot;:function(t){return t&gt;=8192&amp;&amp;t&lt;=8303},&quot;Letterlike Symbols&quot;:function(t){return t&gt;=8448&amp;&amp;t&lt;=8527},&quot;Number Forms&quot;:function(t){return t&gt;=8528&amp;&amp;t&lt;=8591},&quot;Miscellaneous Technical&quot;:function(t){return t&gt;=8960&amp;&amp;t&lt;=9215},&quot;Control Pictures&quot;:function(t){return t&gt;=9216&amp;&amp;t&lt;=9279},&quot;Optical Character Recognition&quot;:function(t){return t&gt;=9280&amp;&amp;t&lt;=9311},&quot;Enclosed Alphanumerics&quot;:function(t){return t&gt;=9312&amp;&amp;t&lt;=9471},&quot;Geometric Shapes&quot;:function(t){return t&gt;=9632&amp;&amp;t&lt;=9727},&quot;Miscellaneous Symbols&quot;:function(t){return t&gt;=9728&amp;&amp;t&lt;=9983},&quot;Miscellaneous Symbols and Arrows&quot;:function(t){return t&gt;=11008&amp;&amp;t&lt;=11263},&quot;CJK Radicals Supplement&quot;:function(t){return t&gt;=11904&amp;&amp;t&lt;=12031},&quot;Kangxi Radicals&quot;:function(t){return t&gt;=12032&amp;&amp;t&lt;=12255},&quot;Ideographic Description Characters&quot;:function(t){return t&gt;=12272&amp;&amp;t&lt;=12287},&quot;CJK Symbols and Punctuation&quot;:function(t){return t&gt;=12288&amp;&amp;t&lt;=12351},Hiragana:function(t){return t&gt;=12352&amp;&amp;t&lt;=12447},Katakana:function(t){return t&gt;=12448&amp;&amp;t&lt;=12543},Bopomofo:function(t){return t&gt;=12544&amp;&amp;t&lt;=12591},&quot;Hangul Compatibility Jamo&quot;:function(t){return t&gt;=12592&amp;&amp;t&lt;=12687},Kanbun:function(t){return t&gt;=12688&amp;&amp;t&lt;=12703},&quot;Bopomofo Extended&quot;:function(t){return t&gt;=12704&amp;&amp;t&lt;=12735},&quot;CJK Strokes&quot;:function(t){return t&gt;=12736&amp;&amp;t&lt;=12783},&quot;Katakana Phonetic Extensions&quot;:function(t){return t&gt;=12784&amp;&amp;t&lt;=12799},&quot;Enclosed CJK Letters and Months&quot;:function(t){return t&gt;=12800&amp;&amp;t&lt;=13055},&quot;CJK Compatibility&quot;:function(t){return t&gt;=13056&amp;&amp;t&lt;=13311},&quot;CJK Unified Ideographs Extension A&quot;:function(t){return t&gt;=13312&amp;&amp;t&lt;=19903},&quot;Yijing Hexagram Symbols&quot;:function(t){return t&gt;=19904&amp;&amp;t&lt;=19967},&quot;CJK Unified Ideographs&quot;:function(t){return t&gt;=19968&amp;&amp;t&lt;=40959},&quot;Yi Syllables&quot;:function(t){return t&gt;=40960&amp;&amp;t&lt;=42127},&quot;Yi Radicals&quot;:function(t){return t&gt;=42128&amp;&amp;t&lt;=42191},&quot;Hangul Jamo Extended-A&quot;:function(t){return t&gt;=43360&amp;&amp;t&lt;=43391},&quot;Hangul Syllables&quot;:function(t){return t&gt;=44032&amp;&amp;t&lt;=55215},&quot;Hangul Jamo Extended-B&quot;:function(t){return t&gt;=55216&amp;&amp;t&lt;=55295},&quot;Private Use Area&quot;:function(t){return t&gt;=57344&amp;&amp;t&lt;=63743},&quot;CJK Compatibility Ideographs&quot;:function(t){return t&gt;=63744&amp;&amp;t&lt;=64255},&quot;Arabic Presentation Forms-A&quot;:function(t){return t&gt;=64336&amp;&amp;t&lt;=65023},&quot;Vertical Forms&quot;:function(t){return t&gt;=65040&amp;&amp;t&lt;=65055},&quot;CJK Compatibility Forms&quot;:function(t){return t&gt;=65072&amp;&amp;t&lt;=65103},&quot;Small Form Variants&quot;:function(t){return t&gt;=65104&amp;&amp;t&lt;=65135},&quot;Arabic Presentation Forms-B&quot;:function(t){return t&gt;=65136&amp;&amp;t&lt;=65279},&quot;Halfwidth and Fullwidth Forms&quot;:function(t){return t&gt;=65280&amp;&amp;t&lt;=65519}};function qn(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(Hn(r[e].charCodeAt(0)))return!0;return!1}function Hn(t){return!(746!==t&amp;&amp;747!==t&amp;&amp;(t&lt;4352||!(Vn[&quot;Bopomofo Extended&quot;](t)||Vn.Bopomofo(t)||Vn[&quot;CJK Compatibility Forms&quot;](t)&amp;&amp;!(t&gt;=65097&amp;&amp;t&lt;=65103)||Vn[&quot;CJK Compatibility Ideographs&quot;](t)||Vn[&quot;CJK Compatibility&quot;](t)||Vn[&quot;CJK Radicals Supplement&quot;](t)||Vn[&quot;CJK Strokes&quot;](t)||!(!Vn[&quot;CJK Symbols and Punctuation&quot;](t)||t&gt;=12296&amp;&amp;t&lt;=12305||t&gt;=12308&amp;&amp;t&lt;=12319||12336===t)||Vn[&quot;CJK Unified Ideographs Extension A&quot;](t)||Vn[&quot;CJK Unified Ideographs&quot;](t)||Vn[&quot;Enclosed CJK Letters and Months&quot;](t)||Vn[&quot;Hangul Compatibility Jamo&quot;](t)||Vn[&quot;Hangul Jamo Extended-A&quot;](t)||Vn[&quot;Hangul Jamo Extended-B&quot;](t)||Vn[&quot;Hangul Jamo&quot;](t)||Vn[&quot;Hangul Syllables&quot;](t)||Vn.Hiragana(t)||Vn[&quot;Ideographic Description Characters&quot;](t)||Vn.Kanbun(t)||Vn[&quot;Kangxi Radicals&quot;](t)||Vn[&quot;Katakana Phonetic Extensions&quot;](t)||Vn.Katakana(t)&amp;&amp;12540!==t||!(!Vn[&quot;Halfwidth and Fullwidth Forms&quot;](t)||65288===t||65289===t||65293===t||t&gt;=65306&amp;&amp;t&lt;=65310||65339===t||65341===t||65343===t||t&gt;=65371&amp;&amp;t&lt;=65503||65507===t||t&gt;=65512&amp;&amp;t&lt;=65519)||!(!Vn[&quot;Small Form Variants&quot;](t)||t&gt;=65112&amp;&amp;t&lt;=65118||t&gt;=65123&amp;&amp;t&lt;=65126)||Vn[&quot;Unified Canadian Aboriginal Syllabics&quot;](t)||Vn[&quot;Unified Canadian Aboriginal Syllabics Extended&quot;](t)||Vn[&quot;Vertical Forms&quot;](t)||Vn[&quot;Yijing Hexagram Symbols&quot;](t)||Vn[&quot;Yi Syllables&quot;](t)||Vn[&quot;Yi Radicals&quot;](t))))}function Gn(t){return!(Hn(t)||function(t){return!!(Vn[&quot;Latin-1 Supplement&quot;](t)&amp;&amp;(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||Vn[&quot;General Punctuation&quot;](t)&amp;&amp;(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||Vn[&quot;Letterlike Symbols&quot;](t)||Vn[&quot;Number Forms&quot;](t)||Vn[&quot;Miscellaneous Technical&quot;](t)&amp;&amp;(t&gt;=8960&amp;&amp;t&lt;=8967||t&gt;=8972&amp;&amp;t&lt;=8991||t&gt;=8996&amp;&amp;t&lt;=9e3||9003===t||t&gt;=9085&amp;&amp;t&lt;=9114||t&gt;=9150&amp;&amp;t&lt;=9165||9167===t||t&gt;=9169&amp;&amp;t&lt;=9179||t&gt;=9186&amp;&amp;t&lt;=9215)||Vn[&quot;Control Pictures&quot;](t)&amp;&amp;9251!==t||Vn[&quot;Optical Character Recognition&quot;](t)||Vn[&quot;Enclosed Alphanumerics&quot;](t)||Vn[&quot;Geometric Shapes&quot;](t)||Vn[&quot;Miscellaneous Symbols&quot;](t)&amp;&amp;!(t&gt;=9754&amp;&amp;t&lt;=9759)||Vn[&quot;Miscellaneous Symbols and Arrows&quot;](t)&amp;&amp;(t&gt;=11026&amp;&amp;t&lt;=11055||t&gt;=11088&amp;&amp;t&lt;=11097||t&gt;=11192&amp;&amp;t&lt;=11243)||Vn[&quot;CJK Symbols and Punctuation&quot;](t)||Vn.Katakana(t)||Vn[&quot;Private Use Area&quot;](t)||Vn[&quot;CJK Compatibility Forms&quot;](t)||Vn[&quot;Small Form Variants&quot;](t)||Vn[&quot;Halfwidth and Fullwidth Forms&quot;](t)||8734===t||8756===t||8757===t||t&gt;=9984&amp;&amp;t&lt;=10087||t&gt;=10102&amp;&amp;t&lt;=10131||65532===t||65533===t)}(t))}function Yn(t){return t&gt;=1424&amp;&amp;t&lt;=2303||Vn[&quot;Arabic Presentation Forms-A&quot;](t)||Vn[&quot;Arabic Presentation Forms-B&quot;](t)}function Wn(t,e){return!(!e&amp;&amp;Yn(t)||t&gt;=2304&amp;&amp;t&lt;=3583||t&gt;=3840&amp;&amp;t&lt;=4255||Vn.Khmer(t))}function Xn(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(Yn(r[e].charCodeAt(0)))return!0;return!1}var Zn=null,Jn=&quot;unavailable&quot;,Kn=null,Qn=function(t){t&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;t.indexOf(&quot;NetworkError&quot;)&gt;-1&amp;&amp;(Jn=&quot;error&quot;),Zn&amp;&amp;Zn(t)};function $n(){ti.fire(new Tt(&quot;pluginStateChange&quot;,{pluginStatus:Jn,pluginURL:Kn}))}var ti=new Mt,ei=function(){return Jn},ri=function(){if(&quot;deferred&quot;!==Jn||!Kn)throw new Error(&quot;rtl-text-plugin cannot be downloaded unless a pluginURL is specified&quot;);Jn=&quot;loading&quot;,$n(),Kn&amp;&amp;yt({url:Kn},(function(t){t?Qn(t):(Jn=&quot;loaded&quot;,$n())}))},ni={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return&quot;loaded&quot;===Jn||null!=ni.applyArabicShaping},isLoading:function(){return&quot;loading&quot;===Jn},setState:function(t){Jn=t.pluginStatus,Kn=t.pluginURL},isParsed:function(){return null!=ni.applyArabicShaping&amp;&amp;null!=ni.processBidirectionalText&amp;&amp;null!=ni.processStyledBidirectionalText},getPluginURL:function(){return Kn}},ii=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Un,this.transition={})};ii.prototype.isSupportedScript=function(t){return function(t,e){for(var r=0,n=t;r&lt;n.length;r+=1)if(!Wn(n[r].charCodeAt(0),e))return!1;return!0}(t,ni.isLoaded())},ii.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},ii.prototype.getCrossfadeParameters=function(){var t=this.zoom,e=t-Math.floor(t),r=this.crossFadingFactor();return t&gt;this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}};var ai=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(Or(t))return new Wr(t,e);if(Vr(t)){var r=Yr(t,e);if(&quot;error&quot;===r.result)throw new Error(r.value.map((function(t){return t.key+&quot;: &quot;+t.message})).join(&quot;, &quot;));return r.value}var n=t;return&quot;string&quot;==typeof t&amp;&amp;&quot;color&quot;===e.type&amp;&amp;(n=Kt.parse(t)),{kind:&quot;constant&quot;,evaluate:function(){return n}}}(void 0===e?t.specification.default:e,t.specification)};ai.prototype.isDataDriven=function(){return&quot;source&quot;===this.expression.kind||&quot;composite&quot;===this.expression.kind},ai.prototype.possiblyEvaluate=function(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)};var oi=function(t){this.property=t,this.value=new ai(t,void 0)};oi.prototype.transitioned=function(t,e){return new li(this.property,this.value,e,u({},t.transition,this.transition),t.now)},oi.prototype.untransitioned=function(){return new li(this.property,this.value,null,{},0)};var si=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};si.prototype.getValue=function(t){return x(this._values[t].value.value)},si.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new oi(this._values[t].property)),this._values[t].value=new ai(this._values[t].property,null===e?void 0:x(e))},si.prototype.getTransition=function(t){return x(this._values[t].transition)},si.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new oi(this._values[t].property)),this._values[t].transition=x(e)||void 0},si.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&amp;&amp;(t[n]=i);var a=this.getTransition(n);void 0!==a&amp;&amp;(t[n+&quot;-transition&quot;]=a)}return t},si.prototype.transitioned=function(t,e){for(var r=new ci(this._properties),n=0,i=Object.keys(this._values);n&lt;i.length;n+=1){var a=i[n];r._values[a]=this._values[a].transitioned(t,e._values[a])}return r},si.prototype.untransitioned=function(){for(var t=new ci(this._properties),e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e];t._values[n]=this._values[n].untransitioned()}return t};var li=function(t,e,r,n,i){this.property=t,this.value=e,this.begin=i+n.delay||0,this.end=this.begin+n.duration||0,t.specification.transition&amp;&amp;(n.delay||n.duration)&amp;&amp;(this.prior=r)};li.prototype.possiblyEvaluate=function(t,e,r){var n=t.now||0,i=this.value.possiblyEvaluate(t,e,r),a=this.prior;if(a){if(n&gt;this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(n&lt;this.begin)return a.possiblyEvaluate(t,e,r);var o=(n-this.begin)/(this.end-this.begin);return this.property.interpolate(a.possiblyEvaluate(t,e,r),i,function(t){if(t&lt;=0)return 0;if(t&gt;=1)return 1;var e=t*t,r=e*t;return 4*(t&lt;.5?r:3*(t-e)+r-.75)}(o))}return i};var ci=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};ci.prototype.possiblyEvaluate=function(t,e,r){for(var n=new hi(this._properties),i=0,a=Object.keys(this._values);i&lt;a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n},ci.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t&lt;e.length;t+=1)if(this._values[e[t]].prior)return!0;return!1};var ui=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};ui.prototype.getValue=function(t){return x(this._values[t].value)},ui.prototype.setValue=function(t,e){this._values[t]=new ai(this._values[t].property,null===e?void 0:x(e))},ui.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&amp;&amp;(t[n]=i)}return t},ui.prototype.possiblyEvaluate=function(t,e,r){for(var n=new hi(this._properties),i=0,a=Object.keys(this._values);i&lt;a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n};var fi=function(t,e,r){this.property=t,this.value=e,this.parameters=r};fi.prototype.isConstant=function(){return&quot;constant&quot;===this.value.kind},fi.prototype.constantOr=function(t){return&quot;constant&quot;===this.value.kind?this.value.value:t},fi.prototype.evaluate=function(t,e,r,n){return this.property.evaluate(this.value,this.parameters,t,e,r,n)};var hi=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};hi.prototype.get=function(t){return this._values[t]};var pi=function(t){this.specification=t};pi.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},pi.prototype.interpolate=function(t,e,r){var n=Ve[this.specification.type];return n?n(t,e,r):t};var di=function(t,e){this.specification=t,this.overrides=e};di.prototype.possiblyEvaluate=function(t,e,r,n){return new fi(this,&quot;constant&quot;===t.expression.kind||&quot;camera&quot;===t.expression.kind?{kind:&quot;constant&quot;,value:t.expression.evaluate(e,null,{},r,n)}:t.expression,e)},di.prototype.interpolate=function(t,e,r){if(&quot;constant&quot;!==t.value.kind||&quot;constant&quot;!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new fi(this,{kind:&quot;constant&quot;,value:void 0},t.parameters);var n=Ve[this.specification.type];return n?new fi(this,{kind:&quot;constant&quot;,value:n(t.value.value,e.value.value,r)},t.parameters):t},di.prototype.evaluate=function(t,e,r,n,i,a){return&quot;constant&quot;===t.kind?t.value:t.evaluate(e,r,n,i,a)};var gi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0===t.value)return new fi(this,{kind:&quot;constant&quot;,value:void 0},e);if(&quot;constant&quot;===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n),a=&quot;resolvedImage&quot;===t.property.specification.type&amp;&amp;&quot;string&quot;!=typeof i?i.name:i,o=this._calculate(a,a,a,e);return new fi(this,{kind:&quot;constant&quot;,value:o},e)}if(&quot;camera&quot;===t.expression.kind){var s=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new fi(this,{kind:&quot;constant&quot;,value:s},e)}return new fi(this,t.expression,e)},e.prototype.evaluate=function(t,e,r,n,i,a){if(&quot;source&quot;===t.kind){var o=t.evaluate(e,r,n,i,a);return this._calculate(o,o,o,e)}return&quot;composite&quot;===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},r,n),t.evaluate({zoom:Math.floor(e.zoom)},r,n),t.evaluate({zoom:Math.floor(e.zoom)+1},r,n),e):t.value},e.prototype._calculate=function(t,e,r,n){return n.zoom&gt;n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},e.prototype.interpolate=function(t){return t},e}(di),mi=function(t){this.specification=t};mi.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0!==t.value){if(&quot;constant&quot;===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n);return this._calculate(i,i,i,e)}return this._calculate(t.expression.evaluate(new ii(Math.floor(e.zoom-1),e)),t.expression.evaluate(new ii(Math.floor(e.zoom),e)),t.expression.evaluate(new ii(Math.floor(e.zoom+1),e)),e)}},mi.prototype._calculate=function(t,e,r,n){return n.zoom&gt;n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},mi.prototype.interpolate=function(t){return t};var vi=function(t){this.specification=t};vi.prototype.possiblyEvaluate=function(t,e,r,n){return!!t.expression.evaluate(e,null,{},r,n)},vi.prototype.interpolate=function(){return!1};var yi=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var r=t[e];r.specification.overridable&amp;&amp;this.overridableProperties.push(e);var n=this.defaultPropertyValues[e]=new ai(r,void 0),i=this.defaultTransitionablePropertyValues[e]=new oi(r);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=n.possiblyEvaluate({})}};Dn(&quot;DataDrivenProperty&quot;,di),Dn(&quot;DataConstantProperty&quot;,pi),Dn(&quot;CrossFadedDataDrivenProperty&quot;,gi),Dn(&quot;CrossFadedProperty&quot;,mi),Dn(&quot;ColorRampProperty&quot;,vi);var xi=function(t){function e(e,r){if(t.call(this),this.id=e.id,this.type=e.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},&quot;custom&quot;!==e.type&amp;&amp;(this.metadata=(e=e).metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,&quot;background&quot;!==e.type&amp;&amp;(this.source=e.source,this.sourceLayer=e[&quot;source-layer&quot;],this.filter=e.filter),r.layout&amp;&amp;(this._unevaluatedLayout=new ui(r.layout)),r.paint)){for(var n in this._transitionablePaint=new si(r.paint),e.paint)this.setPaintProperty(n,e.paint[n],{validate:!1});for(var i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new hi(r.paint)}}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return&quot;visibility&quot;===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,r){void 0===r&amp;&amp;(r={}),null!=e&amp;&amp;this._validate(En,&quot;layers.&quot;+this.id+&quot;.layout.&quot;+t,t,e,r)||(&quot;visibility&quot;!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e)},e.prototype.getPaintProperty=function(t){return m(t,&quot;-transition&quot;)?this._transitionablePaint.getTransition(t.slice(0,-&quot;-transition&quot;.length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,r){if(void 0===r&amp;&amp;(r={}),null!=e&amp;&amp;this._validate(Sn,&quot;layers.&quot;+this.id+&quot;.paint.&quot;+t,t,e,r))return!1;if(m(t,&quot;-transition&quot;))return this._transitionablePaint.setTransition(t.slice(0,-&quot;-transition&quot;.length),e||void 0),!1;var n=this._transitionablePaint._values[t],i=&quot;cross-faded-data-driven&quot;===n.property.specification[&quot;property-type&quot;],a=n.value.isDataDriven(),o=n.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var s=this._transitionablePaint._values[t].value;return s.isDataDriven()||a||i||this._handleOverridablePaintPropertyUpdate(t,o,s)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype._handleOverridablePaintPropertyUpdate=function(t,e,r){return!1},e.prototype.isHidden=function(t){return!!(this.minzoom&amp;&amp;t&lt;this.minzoom)||!!(this.maxzoom&amp;&amp;t&gt;=this.maxzoom)||&quot;none&quot;===this.visibility},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t,e){t.getCrossfadeParameters&amp;&amp;(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&amp;&amp;(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,&quot;source-layer&quot;:this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&amp;&amp;this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&amp;&amp;this._transitionablePaint.serialize()};return this.visibility&amp;&amp;(t.layout=t.layout||{},t.layout.visibility=this.visibility),y(t,(function(t,e){return!(void 0===t||&quot;layout&quot;===e&amp;&amp;!Object.keys(t).length||&quot;paint&quot;===e&amp;&amp;!Object.keys(t).length)}))},e.prototype._validate=function(t,e,r,n,i){return void 0===i&amp;&amp;(i={}),(!i||!1!==i.validate)&amp;&amp;Cn(this,t.call(Mn,{key:e,layerType:this.type,objectKey:r,value:n,styleSpec:At,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof fi&amp;&amp;Lr(e.property.specification)&amp;&amp;(&quot;source&quot;===e.value.kind||&quot;composite&quot;===e.value.kind)&amp;&amp;e.value.isStateDependent)return!0}return!1},e}(Mt),bi={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},_i=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},wi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Ti(t,e){void 0===e&amp;&amp;(e=1);var r=0,n=0;return{members:t.map((function(t){var i=bi[t.type].BYTES_PER_ELEMENT,a=r=ki(r,Math.max(e,i)),o=t.components||1;return n=Math.max(n,i),r+=i*o,{name:t.name,type:t.type,components:o,offset:a}})),size:ki(r,Math.max(n,e)),alignment:e}}function ki(t,e){return Math.ceil(t/e)*e}wi.serialize=function(t,e){return t._trim(),e&amp;&amp;(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},wi.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},wi.prototype._trim=function(){this.length!==this.capacity&amp;&amp;(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},wi.prototype.clear=function(){this.length=0},wi.prototype.resize=function(t){this.reserve(t),this.length=t},wi.prototype.reserve=function(t){if(t&gt;this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&amp;&amp;this.uint8.set(e)}},wi.prototype._refreshViews=function(){throw new Error(&quot;_refreshViews() must be implemented by each concrete StructArray layout&quot;)};var Mi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.int16[n+0]=e,this.int16[n+1]=r,t},e}(wi);Mi.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout2i4&quot;,Mi);var Ai=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.int16[a+0]=e,this.int16[a+1]=r,this.int16[a+2]=n,this.int16[a+3]=i,t},e}(wi);Ai.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout4i8&quot;,Ai);var Si=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(wi);Si.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout2i4i12&quot;,Si);var Ei=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=4*t,l=8*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.uint8[l+4]=n,this.uint8[l+5]=i,this.uint8[l+6]=a,this.uint8[l+7]=o,t},e}(wi);Ei.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout2i4ub8&quot;,Ei);var Ci=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,n,i,a,o,s,l,c)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u){var f=9*t,h=18*t;return this.uint16[f+0]=e,this.uint16[f+1]=r,this.uint16[f+2]=n,this.uint16[f+3]=i,this.uint16[f+4]=a,this.uint16[f+5]=o,this.uint16[f+6]=s,this.uint16[f+7]=l,this.uint8[h+16]=c,this.uint8[h+17]=u,t},e}(wi);Ci.prototype.bytesPerElement=18,Dn(&quot;StructArrayLayout8ui2ub18&quot;,Ci);var Li=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f){var h=this.length;return this.resize(h+1),this.emplace(h,t,e,r,n,i,a,o,s,l,c,u,f)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=12*t;return this.int16[p+0]=e,this.int16[p+1]=r,this.int16[p+2]=n,this.int16[p+3]=i,this.uint16[p+4]=a,this.uint16[p+5]=o,this.uint16[p+6]=s,this.uint16[p+7]=l,this.int16[p+8]=c,this.int16[p+9]=u,this.int16[p+10]=f,this.int16[p+11]=h,t},e}(wi);Li.prototype.bytesPerElement=24,Dn(&quot;StructArrayLayout4i4ui4i24&quot;,Li);var Ii=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.float32[i+0]=e,this.float32[i+1]=r,this.float32[i+2]=n,t},e}(wi);Ii.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout3f12&quot;,Ii);var Pi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint32[1*t+0]=e,t},e}(wi);Pi.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout1ul4&quot;,Pi);var zi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,r,n,i,a,o,s,l)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c){var u=10*t,f=5*t;return this.int16[u+0]=e,this.int16[u+1]=r,this.int16[u+2]=n,this.int16[u+3]=i,this.int16[u+4]=a,this.int16[u+5]=o,this.uint32[f+3]=s,this.uint16[u+8]=l,this.uint16[u+9]=c,t},e}(wi);zi.prototype.bytesPerElement=20,Dn(&quot;StructArrayLayout6i1ul2ui20&quot;,zi);var Oi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(wi);Oi.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout2i2i2i12&quot;,Oi);var Di=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,n,i)},e.prototype.emplace=function(t,e,r,n,i,a){var o=4*t,s=8*t;return this.float32[o+0]=e,this.float32[o+1]=r,this.float32[o+2]=n,this.int16[s+6]=i,this.int16[s+7]=a,t},e}(wi);Di.prototype.bytesPerElement=16,Dn(&quot;StructArrayLayout2f1f2i16&quot;,Di);var Ri=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=12*t,o=3*t;return this.uint8[a+0]=e,this.uint8[a+1]=r,this.float32[o+1]=n,this.float32[o+2]=i,t},e}(wi);Ri.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout2ub2f12&quot;,Ri);var Fi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.uint16[i+0]=e,this.uint16[i+1]=r,this.uint16[i+2]=n,t},e}(wi);Fi.prototype.bytesPerElement=6,Dn(&quot;StructArrayLayout3ui6&quot;,Fi);var Bi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m){var v=this.length;return this.resize(v+1),this.emplace(v,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v){var y=24*t,x=12*t,b=48*t;return this.int16[y+0]=e,this.int16[y+1]=r,this.uint16[y+2]=n,this.uint16[y+3]=i,this.uint32[x+2]=a,this.uint32[x+3]=o,this.uint32[x+4]=s,this.uint16[y+10]=l,this.uint16[y+11]=c,this.uint16[y+12]=u,this.float32[x+7]=f,this.float32[x+8]=h,this.uint8[b+36]=p,this.uint8[b+37]=d,this.uint8[b+38]=g,this.uint32[x+10]=m,this.int16[y+22]=v,t},e}(wi);Bi.prototype.bytesPerElement=48,Dn(&quot;StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48&quot;,Bi);var Ni=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S){var E=this.length;return this.resize(E+1),this.emplace(E,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S,E){var C=34*t,L=17*t;return this.int16[C+0]=e,this.int16[C+1]=r,this.int16[C+2]=n,this.int16[C+3]=i,this.int16[C+4]=a,this.int16[C+5]=o,this.int16[C+6]=s,this.int16[C+7]=l,this.uint16[C+8]=c,this.uint16[C+9]=u,this.uint16[C+10]=f,this.uint16[C+11]=h,this.uint16[C+12]=p,this.uint16[C+13]=d,this.uint16[C+14]=g,this.uint16[C+15]=m,this.uint16[C+16]=v,this.uint16[C+17]=y,this.uint16[C+18]=x,this.uint16[C+19]=b,this.uint16[C+20]=_,this.uint16[C+21]=w,this.uint16[C+22]=T,this.uint32[L+12]=k,this.float32[L+13]=M,this.float32[L+14]=A,this.float32[L+15]=S,this.float32[L+16]=E,t},e}(wi);Ni.prototype.bytesPerElement=68,Dn(&quot;StructArrayLayout8i15ui1ul4f68&quot;,Ni);var ji=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.float32[1*t+0]=e,t},e}(wi);ji.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout1f4&quot;,ji);var Ui=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.int16[i+0]=e,this.int16[i+1]=r,this.int16[i+2]=n,t},e}(wi);Ui.prototype.bytesPerElement=6,Dn(&quot;StructArrayLayout3i6&quot;,Ui);var Vi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=4*t;return this.uint32[2*t+0]=e,this.uint16[i+2]=r,this.uint16[i+3]=n,t},e}(wi);Vi.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout1ul2ui8&quot;,Vi);var qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.uint16[n+0]=e,this.uint16[n+1]=r,t},e}(wi);qi.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout2ui4&quot;,qi);var Hi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint16[1*t+0]=e,t},e}(wi);Hi.prototype.bytesPerElement=2,Dn(&quot;StructArrayLayout1ui2&quot;,Hi);var Gi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.float32[n+0]=e,this.float32[n+1]=r,t},e}(wi);Gi.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout2f8&quot;,Gi);var Yi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=n,this.float32[a+3]=i,t},e}(wi);Yi.prototype.bytesPerElement=16,Dn(&quot;StructArrayLayout4f16&quot;,Yi);var Wi=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return r.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},r.x1.get=function(){return this._structArray.int16[this._pos2+2]},r.y1.get=function(){return this._structArray.int16[this._pos2+3]},r.x2.get=function(){return this._structArray.int16[this._pos2+4]},r.y2.get=function(){return this._structArray.int16[this._pos2+5]},r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.anchorPoint.get=function(){return new i(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,r),e}(_i);Wi.prototype.size=20;var Xi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new Wi(this,t)},e}(zi);Dn(&quot;CollisionBoxArray&quot;,Xi);var Zi=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},r.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},r.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},r.segment.get=function(){return this._structArray.uint16[this._pos2+10]},r.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},r.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},r.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},r.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},r.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},r.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},r.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},r.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},r.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},r.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(e.prototype,r),e}(_i);Zi.prototype.size=48;var Ji=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new Zi(this,t)},e}(Bi);Dn(&quot;PlacedSymbolArray&quot;,Ji);var Ki=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},r.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},r.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},r.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},r.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},r.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},r.key.get=function(){return this._structArray.uint16[this._pos2+8]},r.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},r.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},r.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},r.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},r.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},r.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},r.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},r.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},r.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},r.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},r.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},r.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},r.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+12]=t},r.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},r.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},r.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},r.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(e.prototype,r),e}(_i);Ki.prototype.size=68;var Qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new Ki(this,t)},e}(Ni);Dn(&quot;SymbolInstanceArray&quot;,Qi);var $i=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e}(ji);Dn(&quot;GlyphOffsetArray&quot;,$i);var ta=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e}(Ui);Dn(&quot;SymbolLineVertexArray&quot;,ta);var ea=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(e.prototype,r),e}(_i);ea.prototype.size=8;var ra=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new ea(this,t)},e}(Vi);Dn(&quot;FeatureIndexArray&quot;,ra);var na=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;}],4).members,ia=function(t){void 0===t&amp;&amp;(t=[]),this.segments=t};function aa(t,e){return 256*(t=l(Math.floor(t),0,255))+l(Math.floor(e),0,255)}ia.prototype.prepareSegment=function(t,e,r,n){var i=this.segments[this.segments.length-1];return t&gt;ia.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;_(&quot;Max vertices per segment is &quot;+ia.MAX_VERTEX_ARRAY_LENGTH+&quot;: bucket requested &quot;+t),(!i||i.vertexLength+t&gt;ia.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==n)&amp;&amp;(i={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},void 0!==n&amp;&amp;(i.sortKey=n),this.segments.push(i)),i},ia.prototype.get=function(){return this.segments},ia.prototype.destroy=function(){for(var t=0,e=this.segments;t&lt;e.length;t+=1){var r=e[t];for(var n in r.vaos)r.vaos[n].destroy()}},ia.simpleSegment=function(t,e,r,n){return new ia([{vertexOffset:t,primitiveOffset:e,vertexLength:r,primitiveLength:n,vaos:{},sortKey:0}])},ia.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Dn(&quot;SegmentVector&quot;,ia);var oa=Ti([{name:&quot;a_pattern_from&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pattern_to&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pixel_ratio_from&quot;,components:1,type:&quot;Uint8&quot;},{name:&quot;a_pixel_ratio_to&quot;,components:1,type:&quot;Uint8&quot;}]),sa=e((function(t){t.exports=function(t,e){var r,n,i,a,o,s,l,c;for(n=t.length-(r=3&amp;t.length),i=e,o=3432918353,s=461845907,c=0;c&lt;n;)l=255&amp;t.charCodeAt(c)|(255&amp;t.charCodeAt(++c))&lt;&lt;8|(255&amp;t.charCodeAt(++c))&lt;&lt;16|(255&amp;t.charCodeAt(++c))&lt;&lt;24,++c,i=27492+(65535&amp;(a=5*(65535&amp;(i=(i^=l=(65535&amp;(l=(l=(65535&amp;l)*o+(((l&gt;&gt;&gt;16)*o&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;13|i&gt;&gt;&gt;19))+((5*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295))+((58964+(a&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16);switch(l=0,r){case 3:l^=(255&amp;t.charCodeAt(c+2))&lt;&lt;16;case 2:l^=(255&amp;t.charCodeAt(c+1))&lt;&lt;8;case 1:i^=l=(65535&amp;(l=(l=(65535&amp;(l^=255&amp;t.charCodeAt(c)))*o+(((l&gt;&gt;&gt;16)*o&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295}return i^=t.length,i=2246822507*(65535&amp;(i^=i&gt;&gt;&gt;16))+((2246822507*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,i=3266489909*(65535&amp;(i^=i&gt;&gt;&gt;13))+((3266489909*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,(i^=i&gt;&gt;&gt;16)&gt;&gt;&gt;0}})),la=e((function(t){t.exports=function(t,e){for(var r,n=t.length,i=e^n,a=0;n&gt;=4;)r=1540483477*(65535&amp;(r=255&amp;t.charCodeAt(a)|(255&amp;t.charCodeAt(++a))&lt;&lt;8|(255&amp;t.charCodeAt(++a))&lt;&lt;16|(255&amp;t.charCodeAt(++a))&lt;&lt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),i=1540483477*(65535&amp;i)+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)^(r=1540483477*(65535&amp;(r^=r&gt;&gt;&gt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)),n-=4,++a;switch(n){case 3:i^=(255&amp;t.charCodeAt(a+2))&lt;&lt;16;case 2:i^=(255&amp;t.charCodeAt(a+1))&lt;&lt;8;case 1:i=1540483477*(65535&amp;(i^=255&amp;t.charCodeAt(a)))+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)}return i=1540483477*(65535&amp;(i^=i&gt;&gt;&gt;13))+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),(i^=i&gt;&gt;&gt;15)&gt;&gt;&gt;0}})),ca=sa,ua=la;ca.murmur3=sa,ca.murmur2=ua;var fa=function(){this.ids=[],this.positions=[],this.indexed=!1};fa.prototype.add=function(t,e,r,n){this.ids.push(pa(t)),this.positions.push(e,r,n)},fa.prototype.getPositions=function(t){for(var e=pa(t),r=0,n=this.ids.length-1;r&lt;n;){var i=r+n&gt;&gt;1;this.ids[i]&gt;=e?n=i:r=i+1}for(var a=[];this.ids[r]===e;)a.push({index:this.positions[3*r],start:this.positions[3*r+1],end:this.positions[3*r+2]}),r++;return a},fa.serialize=function(t,e){var r=new Float64Array(t.ids),n=new Uint32Array(t.positions);return function t(e,r,n,i){for(;n&lt;i;){for(var a=e[n+i&gt;&gt;1],o=n-1,s=i+1;;){do{o++}while(e[o]&lt;a);do{s--}while(e[s]&gt;a);if(o&gt;=s)break;da(e,o,s),da(r,3*o,3*s),da(r,3*o+1,3*s+1),da(r,3*o+2,3*s+2)}s-n&lt;i-s?(t(e,r,n,s),n=s+1):(t(e,r,s+1,i),i=s)}}(r,n,0,r.length-1),e&amp;&amp;e.push(r.buffer,n.buffer),{ids:r,positions:n}},fa.deserialize=function(t){var e=new fa;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e};var ha=Math.pow(2,53)-1;function pa(t){var e=+t;return!isNaN(e)&amp;&amp;e&lt;=ha?e:ca(String(t))}function da(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}Dn(&quot;FeaturePositionMap&quot;,fa);var ga=function(t,e){this.gl=t.gl,this.location=e},ma=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1i(this.location,t))},e}(ga),va=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1f(this.location,t))},e}(ga),ya=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0]}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))},e}(ga),xa=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0]}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))},e}(ga),ba=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0,0]}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]&amp;&amp;t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))},e}(ga),_a=function(t){function e(e,r){t.call(this,e,r),this.current=Kt.transparent}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t.r===this.current.r&amp;&amp;t.g===this.current.g&amp;&amp;t.b===this.current.b&amp;&amp;t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))},e}(ga),wa=new Float32Array(16),Ta=function(t){function e(e,r){t.call(this,e,r),this.current=wa}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(var e=1;e&lt;16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}},e}(ga);function ka(t){return[aa(255*t.r,255*t.g),aa(255*t.b,255*t.a)]}var Ma=function(t,e,r){this.value=t,this.uniformNames=e.map((function(t){return&quot;u_&quot;+t})),this.type=r};Ma.prototype.setUniform=function(t,e,r){t.set(r.constantOr(this.value))},Ma.prototype.getBinding=function(t,e,r){return&quot;color&quot;===this.type?new _a(t,e):new va(t,e)};var Aa=function(t,e){this.uniformNames=e.map((function(t){return&quot;u_&quot;+t})),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1};Aa.prototype.setConstantPatternPositions=function(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr},Aa.prototype.setUniform=function(t,e,r,n){var i=&quot;u_pattern_to&quot;===n?this.patternTo:&quot;u_pattern_from&quot;===n?this.patternFrom:&quot;u_pixel_ratio_to&quot;===n?this.pixelRatioTo:&quot;u_pixel_ratio_from&quot;===n?this.pixelRatioFrom:null;i&amp;&amp;t.set(i)},Aa.prototype.getBinding=function(t,e,r){return&quot;u_pattern&quot;===r.substr(0,9)?new ba(t,e):new va(t,e)};var Sa=function(t,e,r,n){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:&quot;a_&quot;+t,type:&quot;Float32&quot;,components:&quot;color&quot;===r?2:1,offset:0}})),this.paintVertexArray=new n};Sa.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.paintVertexArray.length,o=this.expression.evaluate(new ii(0),e,{},n,[],i);this.paintVertexArray.resize(t),this._setPaintValue(a,t,o)},Sa.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:0},r,n);this._setPaintValue(t,e,i)},Sa.prototype._setPaintValue=function(t,e,r){if(&quot;color&quot;===this.type)for(var n=ka(r),i=t;i&lt;e;i++)this.paintVertexArray.emplace(i,n[0],n[1]);else{for(var a=t;a&lt;e;a++)this.paintVertexArray.emplace(a,r);this.maxValue=Math.max(this.maxValue,Math.abs(r))}},Sa.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Sa.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()};var Ea=function(t,e,r,n,i,a){this.expression=t,this.uniformNames=e.map((function(t){return&quot;u_&quot;+t+&quot;_t&quot;})),this.type=r,this.useIntegerZoom=n,this.zoom=i,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:&quot;a_&quot;+t,type:&quot;Float32&quot;,components:&quot;color&quot;===r?4:2,offset:0}})),this.paintVertexArray=new a};Ea.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.expression.evaluate(new ii(this.zoom),e,{},n,[],i),o=this.expression.evaluate(new ii(this.zoom+1),e,{},n,[],i),s=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(s,t,a,o)},Ea.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:this.zoom},r,n),a=this.expression.evaluate({zoom:this.zoom+1},r,n);this._setPaintValue(t,e,i,a)},Ea.prototype._setPaintValue=function(t,e,r,n){if(&quot;color&quot;===this.type)for(var i=ka(r),a=ka(n),o=t;o&lt;e;o++)this.paintVertexArray.emplace(o,i[0],i[1],a[0],a[1]);else{for(var s=t;s&lt;e;s++)this.paintVertexArray.emplace(s,r,n);this.maxValue=Math.max(this.maxValue,Math.abs(r),Math.abs(n))}},Ea.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Ea.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()},Ea.prototype.setUniform=function(t,e){var r=this.useIntegerZoom?Math.floor(e.zoom):e.zoom,n=l(this.expression.interpolationFactor(r,this.zoom,this.zoom+1),0,1);t.set(n)},Ea.prototype.getBinding=function(t,e,r){return new va(t,e)};var Ca=function(t,e,r,n,i,a){this.expression=t,this.type=e,this.useIntegerZoom=r,this.zoom=n,this.layerId=a,this.zoomInPaintVertexArray=new i,this.zoomOutPaintVertexArray=new i};Ca.prototype.populatePaintArray=function(t,e,r){var n=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(n,t,e.patterns&amp;&amp;e.patterns[this.layerId],r)},Ca.prototype.updatePaintArray=function(t,e,r,n,i){this._setPaintValues(t,e,r.patterns&amp;&amp;r.patterns[this.layerId],i)},Ca.prototype._setPaintValues=function(t,e,r,n){if(n&amp;&amp;r){var i=n[r.min],a=n[r.mid],o=n[r.max];if(i&amp;&amp;a&amp;&amp;o)for(var s=t;s&lt;e;s++)this.zoomInPaintVertexArray.emplace(s,a.tl[0],a.tl[1],a.br[0],a.br[1],i.tl[0],i.tl[1],i.br[0],i.br[1],a.pixelRatio,i.pixelRatio),this.zoomOutPaintVertexArray.emplace(s,a.tl[0],a.tl[1],a.br[0],a.br[1],o.tl[0],o.tl[1],o.br[0],o.br[1],a.pixelRatio,o.pixelRatio)}},Ca.prototype.upload=function(t){this.zoomInPaintVertexArray&amp;&amp;this.zoomInPaintVertexArray.arrayBuffer&amp;&amp;this.zoomOutPaintVertexArray&amp;&amp;this.zoomOutPaintVertexArray.arrayBuffer&amp;&amp;(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,oa.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,oa.members,this.expression.isStateDependent))},Ca.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&amp;&amp;this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&amp;&amp;this.zoomInPaintVertexBuffer.destroy()};var La=function(t,e,r,n){this.binders={},this.layoutAttributes=n,this._buffers=[];var i=[];for(var a in t.paint._values)if(r(a)){var o=t.paint.get(a);if(o instanceof fi&amp;&amp;Lr(o.property.specification)){var s=Pa(a,t.type),l=o.value,c=o.property.specification.type,u=o.property.useIntegerZoom,f=o.property.specification[&quot;property-type&quot;],h=&quot;cross-faded&quot;===f||&quot;cross-faded-data-driven&quot;===f;if(&quot;constant&quot;===l.kind)this.binders[a]=h?new Aa(l.value,s):new Ma(l.value,s,c),i.push(&quot;/u_&quot;+a);else if(&quot;source&quot;===l.kind||h){var p=za(a,c,&quot;source&quot;);this.binders[a]=h?new Ca(l,c,u,e,p,t.id):new Sa(l,s,c,p),i.push(&quot;/a_&quot;+a)}else{var d=za(a,c,&quot;composite&quot;);this.binders[a]=new Ea(l,s,c,u,e,d),i.push(&quot;/z_&quot;+a)}}}this.cacheKey=i.sort().join(&quot;&quot;)};La.prototype.getMaxValue=function(t){var e=this.binders[t];return e instanceof Sa||e instanceof Ea?e.maxValue:0},La.prototype.populatePaintArrays=function(t,e,r,n,i){for(var a in this.binders){var o=this.binders[a];(o instanceof Sa||o instanceof Ea||o instanceof Ca)&amp;&amp;o.populatePaintArray(t,e,r,n,i)}},La.prototype.setConstantPatternPositions=function(t,e){for(var r in this.binders){var n=this.binders[r];n instanceof Aa&amp;&amp;n.setConstantPatternPositions(t,e)}},La.prototype.updatePaintArrays=function(t,e,r,n,i){var a=!1;for(var o in t)for(var s=0,l=e.getPositions(o);s&lt;l.length;s+=1){var c=l[s],u=r.feature(c.index);for(var f in this.binders){var h=this.binders[f];if((h instanceof Sa||h instanceof Ea||h instanceof Ca)&amp;&amp;!0===h.expression.isStateDependent){var p=n.paint.get(f);h.expression=p.value,h.updatePaintArray(c.start,c.end,u,t[o],i),a=!0}}}return a},La.prototype.defines=function(){var t=[];for(var e in this.binders){var r=this.binders[e];(r instanceof Ma||r instanceof Aa)&amp;&amp;t.push.apply(t,r.uniformNames.map((function(t){return&quot;#define HAS_UNIFORM_&quot;+t})))}return t},La.prototype.getPaintVertexBuffers=function(){return this._buffers},La.prototype.getUniforms=function(t,e){var r=[];for(var n in this.binders){var i=this.binders[n];if(i instanceof Ma||i instanceof Aa||i instanceof Ea)for(var a=0,o=i.uniformNames;a&lt;o.length;a+=1){var s=o[a];if(e[s]){var l=i.getBinding(t,e[s],s);r.push({name:s,property:n,binding:l})}}}return r},La.prototype.setUniforms=function(t,e,r,n){for(var i=0,a=e;i&lt;a.length;i+=1){var o=a[i],s=o.name,l=o.property;this.binders[l].setUniform(o.binding,n,r.get(l),s)}},La.prototype.updatePaintBuffers=function(t){for(var e in this._buffers=[],this.binders){var r=this.binders[e];if(t&amp;&amp;r instanceof Ca){var n=2===t.fromScale?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;n&amp;&amp;this._buffers.push(n)}else(r instanceof Sa||r instanceof Ea)&amp;&amp;r.paintVertexBuffer&amp;&amp;this._buffers.push(r.paintVertexBuffer)}},La.prototype.upload=function(t){for(var e in this.binders){var r=this.binders[e];(r instanceof Sa||r instanceof Ea||r instanceof Ca)&amp;&amp;r.upload(t)}this.updatePaintBuffers()},La.prototype.destroy=function(){for(var t in this.binders){var e=this.binders[t];(e instanceof Sa||e instanceof Ea||e instanceof Ca)&amp;&amp;e.destroy()}};var Ia=function(t,e,r,n){void 0===n&amp;&amp;(n=function(){return!0}),this.programConfigurations={};for(var i=0,a=e;i&lt;a.length;i+=1){var o=a[i];this.programConfigurations[o.id]=new La(o,r,n,t)}this.needsUpload=!1,this._featureMap=new fa,this._bufferOffset=0};function Pa(t,e){return{&quot;text-opacity&quot;:[&quot;opacity&quot;],&quot;icon-opacity&quot;:[&quot;opacity&quot;],&quot;text-color&quot;:[&quot;fill_color&quot;],&quot;icon-color&quot;:[&quot;fill_color&quot;],&quot;text-halo-color&quot;:[&quot;halo_color&quot;],&quot;icon-halo-color&quot;:[&quot;halo_color&quot;],&quot;text-halo-blur&quot;:[&quot;halo_blur&quot;],&quot;icon-halo-blur&quot;:[&quot;halo_blur&quot;],&quot;text-halo-width&quot;:[&quot;halo_width&quot;],&quot;icon-halo-width&quot;:[&quot;halo_width&quot;],&quot;line-gap-width&quot;:[&quot;gapwidth&quot;],&quot;line-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;],&quot;fill-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;],&quot;fill-extrusion-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;]}[t]||[t.replace(e+&quot;-&quot;,&quot;&quot;).replace(/-/g,&quot;_&quot;)]}function za(t,e,r){var n={color:{source:Gi,composite:Yi},number:{source:ji,composite:Gi}},i=function(t){return{&quot;line-pattern&quot;:{source:Ci,composite:Ci},&quot;fill-pattern&quot;:{source:Ci,composite:Ci},&quot;fill-extrusion-pattern&quot;:{source:Ci,composite:Ci}}[t]}(t);return i&amp;&amp;i[r]||n[e][r]}Ia.prototype.populatePaintArrays=function(t,e,r,n,i,a){for(var o in this.programConfigurations)this.programConfigurations[o].populatePaintArrays(t,e,n,i,a);void 0!==e.id&amp;&amp;this._featureMap.add(e.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0},Ia.prototype.updatePaintArrays=function(t,e,r,n){for(var i=0,a=r;i&lt;a.length;i+=1){var o=a[i];this.needsUpload=this.programConfigurations[o.id].updatePaintArrays(t,this._featureMap,e,o,n)||this.needsUpload}},Ia.prototype.get=function(t){return this.programConfigurations[t]},Ia.prototype.upload=function(t){if(this.needsUpload){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}},Ia.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},Dn(&quot;ConstantBinder&quot;,Ma),Dn(&quot;CrossFadedConstantBinder&quot;,Aa),Dn(&quot;SourceExpressionBinder&quot;,Sa),Dn(&quot;CrossFadedCompositeBinder&quot;,Ca),Dn(&quot;CompositeExpressionBinder&quot;,Ea),Dn(&quot;ProgramConfiguration&quot;,La,{omit:[&quot;_buffers&quot;]}),Dn(&quot;ProgramConfigurationSet&quot;,Ia);var Oa={min:-1*Math.pow(2,14),max:Math.pow(2,14)-1};function Da(t){for(var e=8192/t.extent,r=t.loadGeometry(),n=0;n&lt;r.length;n++)for(var i=r[n],a=0;a&lt;i.length;a++){var o=i[a];o.x=Math.round(o.x*e),o.y=Math.round(o.y*e),(o.x&lt;Oa.min||o.x&gt;Oa.max||o.y&lt;Oa.min||o.y&gt;Oa.max)&amp;&amp;(_(&quot;Geometry exceeds allowed extent, reduce your vector tile buffer size&quot;),o.x=l(o.x,Oa.min,Oa.max),o.y=l(o.y,Oa.min,Oa.max))}return r}function Ra(t,e,r,n,i){t.emplaceBack(2*e+(n+1)/2,2*r+(i+1)/2)}var Fa=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Mi,this.indexArray=new Fi,this.segments=new ia,this.programConfigurations=new Ia(na,t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Ba(t,e){for(var r=0;r&lt;t.length;r++)if(Wa(e,t[r]))return!0;for(var n=0;n&lt;e.length;n++)if(Wa(t,e[n]))return!0;return!!Va(t,e)}function Na(t,e,r){return!!Wa(t,e)||!!Ha(e,t,r)}function ja(t,e){if(1===t.length)return Ya(e,t[0]);for(var r=0;r&lt;e.length;r++)for(var n=e[r],i=0;i&lt;n.length;i++)if(Wa(t,n[i]))return!0;for(var a=0;a&lt;t.length;a++)if(Ya(e,t[a]))return!0;for(var o=0;o&lt;e.length;o++)if(Va(t,e[o]))return!0;return!1}function Ua(t,e,r){if(t.length&gt;1){if(Va(t,e))return!0;for(var n=0;n&lt;e.length;n++)if(Ha(e[n],t,r))return!0}for(var i=0;i&lt;t.length;i++)if(Ha(t[i],e,r))return!0;return!1}function Va(t,e){if(0===t.length||0===e.length)return!1;for(var r=0;r&lt;t.length-1;r++)for(var n=t[r],i=t[r+1],a=0;a&lt;e.length-1;a++)if(qa(n,i,e[a],e[a+1]))return!0;return!1}function qa(t,e,r,n){return w(t,r,n)!==w(e,r,n)&amp;&amp;w(t,e,r)!==w(t,e,n)}function Ha(t,e,r){var n=r*r;if(1===e.length)return t.distSqr(e[0])&lt;n;for(var i=1;i&lt;e.length;i++)if(Ga(t,e[i-1],e[i])&lt;n)return!0;return!1}function Ga(t,e,r){var n=e.distSqr(r);if(0===n)return t.distSqr(e);var i=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;return t.distSqr(i&lt;0?e:i&gt;1?r:r.sub(e)._mult(i)._add(e))}function Ya(t,e){for(var r,n,i,a=!1,o=0;o&lt;t.length;o++)for(var s=0,l=(r=t[o]).length-1;s&lt;r.length;l=s++)(n=r[s]).y&gt;e.y!=(i=r[l]).y&gt;e.y&amp;&amp;e.x&lt;(i.x-n.x)*(e.y-n.y)/(i.y-n.y)+n.x&amp;&amp;(a=!a);return a}function Wa(t,e){for(var r=!1,n=0,i=t.length-1;n&lt;t.length;i=n++){var a=t[n],o=t[i];a.y&gt;e.y!=o.y&gt;e.y&amp;&amp;e.x&lt;(o.x-a.x)*(e.y-a.y)/(o.y-a.y)+a.x&amp;&amp;(r=!r)}return r}function Xa(t,e,r){var n=r[0],i=r[2];if(t.x&lt;n.x&amp;&amp;e.x&lt;n.x||t.x&gt;i.x&amp;&amp;e.x&gt;i.x||t.y&lt;n.y&amp;&amp;e.y&lt;n.y||t.y&gt;i.y&amp;&amp;e.y&gt;i.y)return!1;var a=w(t,e,r[0]);return a!==w(t,e,r[1])||a!==w(t,e,r[2])||a!==w(t,e,r[3])}function Za(t,e,r){var n=e.paint.get(t).value;return&quot;constant&quot;===n.kind?n.value:r.programConfigurations.get(e.id).getMaxValue(t)}function Ja(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ka(t,e,r,n,a){if(!e[0]&amp;&amp;!e[1])return t;var o=i.convert(e)._mult(a);&quot;viewport&quot;===r&amp;&amp;o._rotate(-n);for(var s=[],l=0;l&lt;t.length;l++)s.push(t[l].sub(o));return s}Fa.prototype.populate=function(t,e,r){var n=this.layers[0],i=[],a=null;&quot;circle&quot;===n.type&amp;&amp;(a=n.layout.get(&quot;circle-sort-key&quot;));for(var o=0,s=t;o&lt;s.length;o+=1){var l=s[o],c=l.feature,u=l.id,f=l.index,h=l.sourceLayerIndex,p=this.layers[0]._featureFilter.needGeometry,d={type:c.type,id:u,properties:c.properties,geometry:p?Da(c):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),d,r)){p||(d.geometry=Da(c));var g=a?a.evaluate(d,{},r):void 0;i.push({id:u,properties:c.properties,type:c.type,sourceLayerIndex:h,index:f,geometry:d.geometry,patterns:{},sortKey:g})}}a&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var m=0,v=i;m&lt;v.length;m+=1){var y=v[m],x=y.geometry,b=y.index,_=y.sourceLayerIndex,w=t[b].feature;this.addFeature(y,x,b,r),e.featureIndex.insert(w,x,b,_,this.index)}},Fa.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Fa.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Fa.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Fa.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,na),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Fa.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Fa.prototype.addFeature=function(t,e,r,n){for(var i=0,a=e;i&lt;a.length;i+=1)for(var o=0,s=a[i];o&lt;s.length;o+=1){var l=s[o],c=l.x,u=l.y;if(!(c&lt;0||c&gt;=8192||u&lt;0||u&gt;=8192)){var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),h=f.vertexLength;Ra(this.layoutVertexArray,c,u,-1,-1),Ra(this.layoutVertexArray,c,u,1,-1),Ra(this.layoutVertexArray,c,u,1,1),Ra(this.layoutVertexArray,c,u,-1,1),this.indexArray.emplaceBack(h,h+1,h+2),this.indexArray.emplaceBack(h,h+3,h+2),f.vertexLength+=4,f.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{},n)},Dn(&quot;CircleBucket&quot;,Fa,{omit:[&quot;layers&quot;]});var Qa=new yi({&quot;circle-sort-key&quot;:new di(At.layout_circle[&quot;circle-sort-key&quot;])}),$a={paint:new yi({&quot;circle-radius&quot;:new di(At.paint_circle[&quot;circle-radius&quot;]),&quot;circle-color&quot;:new di(At.paint_circle[&quot;circle-color&quot;]),&quot;circle-blur&quot;:new di(At.paint_circle[&quot;circle-blur&quot;]),&quot;circle-opacity&quot;:new di(At.paint_circle[&quot;circle-opacity&quot;]),&quot;circle-translate&quot;:new pi(At.paint_circle[&quot;circle-translate&quot;]),&quot;circle-translate-anchor&quot;:new pi(At.paint_circle[&quot;circle-translate-anchor&quot;]),&quot;circle-pitch-scale&quot;:new pi(At.paint_circle[&quot;circle-pitch-scale&quot;]),&quot;circle-pitch-alignment&quot;:new pi(At.paint_circle[&quot;circle-pitch-alignment&quot;]),&quot;circle-stroke-width&quot;:new di(At.paint_circle[&quot;circle-stroke-width&quot;]),&quot;circle-stroke-color&quot;:new di(At.paint_circle[&quot;circle-stroke-color&quot;]),&quot;circle-stroke-opacity&quot;:new di(At.paint_circle[&quot;circle-stroke-opacity&quot;])}),layout:Qa},to=&quot;undefined&quot;!=typeof Float32Array?Float32Array:Array;function eo(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ro(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],m=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*m,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,t[4]=(x=r[4])*n+(b=r[5])*s+(_=r[6])*f+(w=r[7])*g,t[5]=x*i+b*l+_*h+w*m,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,t[8]=(x=r[8])*n+(b=r[9])*s+(_=r[10])*f+(w=r[11])*g,t[9]=x*i+b*l+_*h+w*m,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,t[12]=(x=r[12])*n+(b=r[13])*s+(_=r[14])*f+(w=r[15])*g,t[13]=x*i+b*l+_*h+w*m,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,r=arguments.length;r--;)e+=t[r]*t[r];return Math.sqrt(e)});var no,io=ro;function ao(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}no=new to(3),to!=Float32Array&amp;&amp;(no[0]=0,no[1]=0,no[2]=0),function(){var t=new to(4);to!=Float32Array&amp;&amp;(t[0]=0,t[1]=0,t[2]=0,t[3]=0)}();var oo=(function(){var t=new to(2);to!=Float32Array&amp;&amp;(t[0]=0,t[1]=0)}(),function(t){function e(e){t.call(this,e,$a)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new Fa(t)},e.prototype.queryRadius=function(t){var e=t;return Za(&quot;circle-radius&quot;,this,e)+Za(&quot;circle-stroke-width&quot;,this,e)+Ja(this.paint.get(&quot;circle-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o,s){for(var l=Ka(t,this.paint.get(&quot;circle-translate&quot;),this.paint.get(&quot;circle-translate-anchor&quot;),a.angle,o),c=this.paint.get(&quot;circle-radius&quot;).evaluate(e,r)+this.paint.get(&quot;circle-stroke-width&quot;).evaluate(e,r),u=&quot;map&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;),f=u?l:function(t,e){return t.map((function(t){return so(t,e)}))}(l,s),h=u?c*o:c,p=0,d=n;p&lt;d.length;p+=1)for(var g=0,m=d[p];g&lt;m.length;g+=1){var v=m[g],y=u?v:so(v,s),x=h,b=ao([],[v.x,v.y,0,1],s);if(&quot;viewport&quot;===this.paint.get(&quot;circle-pitch-scale&quot;)&amp;&amp;&quot;map&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;)?x*=b[3]/a.cameraToCenterDistance:&quot;map&quot;===this.paint.get(&quot;circle-pitch-scale&quot;)&amp;&amp;&quot;viewport&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;)&amp;&amp;(x*=a.cameraToCenterDistance/b[3]),Na(f,y,x))return!0}return!1},e}(xi));function so(t,e){var r=ao([],[t.x,t.y,0,1],e);return new i(r[0]/r[3],r[1]/r[3])}var lo=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(Fa);function co(t,e,r,n){var i=e.width,a=e.height;if(n){if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==i*a*r)throw new RangeError(&quot;mismatched image size&quot;)}else n=new Uint8Array(i*a*r);return t.width=i,t.height=a,t.data=n,t}function uo(t,e,r){var n=e.width,i=e.height;if(n!==t.width||i!==t.height){var a=co({},{width:n,height:i},r);fo(t,a,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,n),height:Math.min(t.height,i)},r),t.width=n,t.height=i,t.data=a.data}}function fo(t,e,r,n,i,a){if(0===i.width||0===i.height)return e;if(i.width&gt;t.width||i.height&gt;t.height||r.x&gt;t.width-i.width||r.y&gt;t.height-i.height)throw new RangeError(&quot;out of range source coordinates for image copy&quot;);if(i.width&gt;e.width||i.height&gt;e.height||n.x&gt;e.width-i.width||n.y&gt;e.height-i.height)throw new RangeError(&quot;out of range destination coordinates for image copy&quot;);for(var o=t.data,s=e.data,l=0;l&lt;i.height;l++)for(var c=((r.y+l)*t.width+r.x)*a,u=((n.y+l)*e.width+n.x)*a,f=0;f&lt;i.width*a;f++)s[u+f]=o[c+f];return e}Dn(&quot;HeatmapBucket&quot;,lo,{omit:[&quot;layers&quot;]});var ho=function(t,e){co(this,t,1,e)};ho.prototype.resize=function(t){uo(this,t,1)},ho.prototype.clone=function(){return new ho({width:this.width,height:this.height},new Uint8Array(this.data))},ho.copy=function(t,e,r,n,i){fo(t,e,r,n,i,1)};var po=function(t,e){co(this,t,4,e)};po.prototype.resize=function(t){uo(this,t,4)},po.prototype.replace=function(t,e){e?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t},po.prototype.clone=function(){return new po({width:this.width,height:this.height},new Uint8Array(this.data))},po.copy=function(t,e,r,n,i){fo(t,e,r,n,i,4)},Dn(&quot;AlphaImage&quot;,ho),Dn(&quot;RGBAImage&quot;,po);var go={paint:new yi({&quot;heatmap-radius&quot;:new di(At.paint_heatmap[&quot;heatmap-radius&quot;]),&quot;heatmap-weight&quot;:new di(At.paint_heatmap[&quot;heatmap-weight&quot;]),&quot;heatmap-intensity&quot;:new pi(At.paint_heatmap[&quot;heatmap-intensity&quot;]),&quot;heatmap-color&quot;:new vi(At.paint_heatmap[&quot;heatmap-color&quot;]),&quot;heatmap-opacity&quot;:new pi(At.paint_heatmap[&quot;heatmap-opacity&quot;])})};function mo(t,e){for(var r=new Uint8Array(1024),n={},i=0,a=0;i&lt;256;i++,a+=4){n[e]=i/255;var o=t.evaluate(n);r[a+0]=Math.floor(255*o.r/o.a),r[a+1]=Math.floor(255*o.g/o.a),r[a+2]=Math.floor(255*o.b/o.a),r[a+3]=Math.floor(255*o.a)}return new po({width:256,height:1},r)}var vo=function(t){function e(e){t.call(this,e,go),this._updateColorRamp()}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new lo(t)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){&quot;heatmap-color&quot;===t&amp;&amp;this._updateColorRamp()},e.prototype._updateColorRamp=function(){this.colorRamp=mo(this._transitionablePaint._values[&quot;heatmap-color&quot;].value.expression,&quot;heatmapDensity&quot;),this.colorRampTexture=null},e.prototype.resize=function(){this.heatmapFbo&amp;&amp;(this.heatmapFbo.destroy(),this.heatmapFbo=null)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(&quot;heatmap-opacity&quot;)&amp;&amp;&quot;none&quot;!==this.visibility},e}(xi),yo={paint:new yi({&quot;hillshade-illumination-direction&quot;:new pi(At.paint_hillshade[&quot;hillshade-illumination-direction&quot;]),&quot;hillshade-illumination-anchor&quot;:new pi(At.paint_hillshade[&quot;hillshade-illumination-anchor&quot;]),&quot;hillshade-exaggeration&quot;:new pi(At.paint_hillshade[&quot;hillshade-exaggeration&quot;]),&quot;hillshade-shadow-color&quot;:new pi(At.paint_hillshade[&quot;hillshade-shadow-color&quot;]),&quot;hillshade-highlight-color&quot;:new pi(At.paint_hillshade[&quot;hillshade-highlight-color&quot;]),&quot;hillshade-accent-color&quot;:new pi(At.paint_hillshade[&quot;hillshade-accent-color&quot;])})},xo=function(t){function e(e){t.call(this,e,yo)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(&quot;hillshade-exaggeration&quot;)&amp;&amp;&quot;none&quot;!==this.visibility},e}(xi),bo=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;}],4).members,_o=To,wo=To;function To(t,e,r){r=r||2;var n,i,a,o,s,l,c,u=e&amp;&amp;e.length,f=u?e[0]*r:t.length,h=ko(t,0,f,r,!0),p=[];if(!h||h.next===h.prev)return p;if(u&amp;&amp;(h=function(t,e,r,n){var i,a,o,s=[];for(i=0,a=e.length;i&lt;a;i++)(o=ko(t,e[i]*n,i&lt;a-1?e[i+1]*n:t.length,n,!1))===o.next&amp;&amp;(o.steiner=!0),s.push(Do(o));for(s.sort(Io),i=0;i&lt;s.length;i++)Po(s[i],r),r=Mo(r,r.next);return r}(t,e,h,r)),t.length&gt;80*r){n=a=t[0],i=o=t[1];for(var d=r;d&lt;f;d+=r)(s=t[d])&lt;n&amp;&amp;(n=s),(l=t[d+1])&lt;i&amp;&amp;(i=l),s&gt;a&amp;&amp;(a=s),l&gt;o&amp;&amp;(o=l);c=0!==(c=Math.max(a-n,o-i))?1/c:0}return Ao(h,p,r,n,i,c),p}function ko(t,e,r,n,i){var a,o;if(i===Xo(t,e,r,n)&gt;0)for(a=e;a&lt;r;a+=n)o=Go(a,t[a],t[a+1],o);else for(a=r-n;a&gt;=e;a-=n)o=Go(a,t[a],t[a+1],o);return o&amp;&amp;No(o,o.next)&amp;&amp;(Yo(o),o=o.next),o}function Mo(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!No(n,n.next)&amp;&amp;0!==Bo(n.prev,n,n.next))n=n.next;else{if(Yo(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function Ao(t,e,r,n,i,a,o){if(t){!o&amp;&amp;a&amp;&amp;function(t,e,r,n){var i=t;do{null===i.z&amp;&amp;(i.z=Oo(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e&lt;c&amp;&amp;(s++,n=n.nextZ);e++);for(l=c;s&gt;0||l&gt;0&amp;&amp;n;)0!==s&amp;&amp;(0===l||!n||r.z&lt;=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o&gt;1)}(i)}(t,n,i,a);for(var s,l,c=t;t.prev!==t.next;)if(s=t.prev,l=t.next,a?Eo(t,n,i,a):So(t))e.push(s.i/r),e.push(t.i/r),e.push(l.i/r),Yo(t),t=l.next,c=l.next;else if((t=l)===c){o?1===o?Ao(t=Co(Mo(t),e,r),e,r,n,i,a,2):2===o&amp;&amp;Lo(t,e,r,n,i,a):Ao(Mo(t),e,r,n,i,a,1);break}}}function So(t){var e=t.prev,r=t,n=t.next;if(Bo(e,r,n)&gt;=0)return!1;for(var i=t.next.next;i!==t.prev;){if(Ro(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&amp;&amp;Bo(i.prev,i,i.next)&gt;=0)return!1;i=i.next}return!0}function Eo(t,e,r,n){var i=t.prev,a=t,o=t.next;if(Bo(i,a,o)&gt;=0)return!1;for(var s=i.x&gt;a.x?i.x&gt;o.x?i.x:o.x:a.x&gt;o.x?a.x:o.x,l=i.y&gt;a.y?i.y&gt;o.y?i.y:o.y:a.y&gt;o.y?a.y:o.y,c=Oo(i.x&lt;a.x?i.x&lt;o.x?i.x:o.x:a.x&lt;o.x?a.x:o.x,i.y&lt;a.y?i.y&lt;o.y?i.y:o.y:a.y&lt;o.y?a.y:o.y,e,r,n),u=Oo(s,l,e,r,n),f=t.prevZ,h=t.nextZ;f&amp;&amp;f.z&gt;=c&amp;&amp;h&amp;&amp;h.z&lt;=u;){if(f!==t.prev&amp;&amp;f!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,f.x,f.y)&amp;&amp;Bo(f.prev,f,f.next)&gt;=0)return!1;if(f=f.prevZ,h!==t.prev&amp;&amp;h!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&amp;&amp;Bo(h.prev,h,h.next)&gt;=0)return!1;h=h.nextZ}for(;f&amp;&amp;f.z&gt;=c;){if(f!==t.prev&amp;&amp;f!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,f.x,f.y)&amp;&amp;Bo(f.prev,f,f.next)&gt;=0)return!1;f=f.prevZ}for(;h&amp;&amp;h.z&lt;=u;){if(h!==t.prev&amp;&amp;h!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&amp;&amp;Bo(h.prev,h,h.next)&gt;=0)return!1;h=h.nextZ}return!0}function Co(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!No(i,a)&amp;&amp;jo(i,n,n.next,a)&amp;&amp;qo(i,a)&amp;&amp;qo(a,i)&amp;&amp;(e.push(i.i/r),e.push(n.i/r),e.push(a.i/r),Yo(n),Yo(n.next),n=t=a),n=n.next}while(n!==t);return Mo(n)}function Lo(t,e,r,n,i,a){var o=t;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&amp;&amp;Fo(o,s)){var l=Ho(o,s);return o=Mo(o,o.next),l=Mo(l,l.next),Ao(o,e,r,n,i,a),void Ao(l,e,r,n,i,a)}s=s.next}o=o.next}while(o!==t)}function Io(t,e){return t.x-e.x}function Po(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a&lt;=n.y&amp;&amp;a&gt;=n.next.y&amp;&amp;n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s&lt;=i&amp;&amp;s&gt;o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x&lt;n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,h=1/0;n=r;do{i&gt;=n.x&amp;&amp;n.x&gt;=u&amp;&amp;i!==n.x&amp;&amp;Ro(a&lt;f?i:o,a,u,f,a&lt;f?o:i,a,n.x,n.y)&amp;&amp;(l=Math.abs(a-n.y)/(i-n.x),qo(n,t)&amp;&amp;(l&lt;h||l===h&amp;&amp;(n.x&gt;r.x||n.x===r.x&amp;&amp;zo(r,n)))&amp;&amp;(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e)){var r=Ho(e,t);Mo(e,e.next),Mo(r,r.next)}}function zo(t,e){return Bo(t.prev,t,e.prev)&lt;0&amp;&amp;Bo(e.next,t,t.next)&lt;0}function Oo(t,e,r,n,i){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t=32767*(t-r)*i)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e=32767*(e-n)*i)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1}function Do(t){var e=t,r=t;do{(e.x&lt;r.x||e.x===r.x&amp;&amp;e.y&lt;r.y)&amp;&amp;(r=e),e=e.next}while(e!==t);return r}function Ro(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)&gt;=0&amp;&amp;(t-o)*(n-s)-(r-o)*(e-s)&gt;=0&amp;&amp;(r-o)*(a-s)-(i-o)*(n-s)&gt;=0}function Fo(t,e){return t.next.i!==e.i&amp;&amp;t.prev.i!==e.i&amp;&amp;!function(t,e){var r=t;do{if(r.i!==t.i&amp;&amp;r.next.i!==t.i&amp;&amp;r.i!==e.i&amp;&amp;r.next.i!==e.i&amp;&amp;jo(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&amp;&amp;(qo(t,e)&amp;&amp;qo(e,t)&amp;&amp;function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y&gt;a!=r.next.y&gt;a&amp;&amp;r.next.y!==r.y&amp;&amp;i&lt;(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&amp;&amp;(n=!n),r=r.next}while(r!==t);return n}(t,e)&amp;&amp;(Bo(t.prev,t,e.prev)||Bo(t,e.prev,e))||No(t,e)&amp;&amp;Bo(t.prev,t,t.next)&gt;0&amp;&amp;Bo(e.prev,e,e.next)&gt;0)}function Bo(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function No(t,e){return t.x===e.x&amp;&amp;t.y===e.y}function jo(t,e,r,n){var i=Vo(Bo(t,e,r)),a=Vo(Bo(t,e,n)),o=Vo(Bo(r,n,t)),s=Vo(Bo(r,n,e));return i!==a&amp;&amp;o!==s||!(0!==i||!Uo(t,r,e))||!(0!==a||!Uo(t,n,e))||!(0!==o||!Uo(r,t,n))||!(0!==s||!Uo(r,e,n))}function Uo(t,e,r){return e.x&lt;=Math.max(t.x,r.x)&amp;&amp;e.x&gt;=Math.min(t.x,r.x)&amp;&amp;e.y&lt;=Math.max(t.y,r.y)&amp;&amp;e.y&gt;=Math.min(t.y,r.y)}function Vo(t){return t&gt;0?1:t&lt;0?-1:0}function qo(t,e){return Bo(t.prev,t,t.next)&lt;0?Bo(t,e,t.next)&gt;=0&amp;&amp;Bo(t,t.prev,e)&gt;=0:Bo(t,e,t.prev)&lt;0||Bo(t,t.next,e)&lt;0}function Ho(t,e){var r=new Wo(t.i,t.x,t.y),n=new Wo(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function Go(t,e,r,n){var i=new Wo(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Yo(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&amp;&amp;(t.prevZ.nextZ=t.nextZ),t.nextZ&amp;&amp;(t.nextZ.prevZ=t.prevZ)}function Wo(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Xo(t,e,r,n){for(var i=0,a=e,o=r-n;a&lt;r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}function Zo(t,e,r,n,i){!function t(e,r,n,i,a){for(;i&gt;n;){if(i-n&gt;600){var o=i-n+1,s=r-n+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2&lt;0?-1:1);t(e,r,Math.max(n,Math.floor(r-s*c/o+u)),Math.min(i,Math.floor(r+(o-s)*c/o+u)),a)}var f=e[r],h=n,p=i;for(Jo(e,n,r),a(e[i],f)&gt;0&amp;&amp;Jo(e,n,i);h&lt;p;){for(Jo(e,h,p),h++,p--;a(e[h],f)&lt;0;)h++;for(;a(e[p],f)&gt;0;)p--}0===a(e[n],f)?Jo(e,n,p):Jo(e,++p,i),p&lt;=r&amp;&amp;(n=p+1),r&lt;=p&amp;&amp;(i=p-1)}}(t,e,r||0,n||t.length-1,i||Ko)}function Jo(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Ko(t,e){return t&lt;e?-1:t&gt;e?1:0}function Qo(t,e){var r=t.length;if(r&lt;=1)return[t];for(var n,i,a=[],o=0;o&lt;r;o++){var s=T(t[o]);0!==s&amp;&amp;(t[o].area=Math.abs(s),void 0===i&amp;&amp;(i=s&lt;0),i===s&lt;0?(n&amp;&amp;a.push(n),n=[t[o]]):n.push(t[o]))}if(n&amp;&amp;a.push(n),e&gt;1)for(var l=0;l&lt;a.length;l++)a[l].length&lt;=e||(Zo(a[l],e,1,a[l].length-1,$o),a[l]=a[l].slice(0,e));return a}function $o(t,e){return e.area-t.area}function ts(t,e,r){for(var n=r.patternDependencies,i=!1,a=0,o=e;a&lt;o.length;a+=1){var s=o[a].paint.get(t+&quot;-pattern&quot;);s.isConstant()||(i=!0);var l=s.constantOr(null);l&amp;&amp;(i=!0,n[l.to]=!0,n[l.from]=!0)}return i}function es(t,e,r,n,i){for(var a=i.patternDependencies,o=0,s=e;o&lt;s.length;o+=1){var l=s[o],c=l.paint.get(t+&quot;-pattern&quot;).value;if(&quot;constant&quot;!==c.kind){var u=c.evaluate({zoom:n-1},r,{},i.availableImages),f=c.evaluate({zoom:n},r,{},i.availableImages),h=c.evaluate({zoom:n+1},r,{},i.availableImages);f=f&amp;&amp;f.name?f.name:f,h=h&amp;&amp;h.name?h.name:h,a[u=u&amp;&amp;u.name?u.name:u]=!0,a[f]=!0,a[h]=!0,r.patterns[l.id]={min:u,mid:f,max:h}}}return r}To.deviation=function(t,e,r,n){var i=e&amp;&amp;e.length,a=Math.abs(Xo(t,0,i?e[0]*r:t.length,r));if(i)for(var o=0,s=e.length;o&lt;s;o++)a-=Math.abs(Xo(t,e[o]*r,o&lt;s-1?e[o+1]*r:t.length,r));var l=0;for(o=0;o&lt;n.length;o+=3){var c=n[o]*r,u=n[o+1]*r,f=n[o+2]*r;l+=Math.abs((t[c]-t[f])*(t[u+1]-t[c+1])-(t[c]-t[u])*(t[f+1]-t[c+1]))}return 0===a&amp;&amp;0===l?0:Math.abs((l-a)/a)},To.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i&lt;t.length;i++){for(var a=0;a&lt;t[i].length;a++)for(var o=0;o&lt;e;o++)r.vertices.push(t[i][a][o]);i&gt;0&amp;&amp;r.holes.push(n+=t[i-1].length)}return r},_o.default=wo;var rs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Mi,this.indexArray=new Fi,this.indexArray2=new qi,this.programConfigurations=new Ia(bo,t.layers,t.zoom),this.segments=new ia,this.segments2=new ia,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};rs.prototype.populate=function(t,e,r){this.hasPattern=ts(&quot;fill&quot;,this.layers,e);for(var n=this.layers[0].layout.get(&quot;fill-sort-key&quot;),i=[],a=0,o=t;a&lt;o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,p={type:l.type,id:c,properties:l.properties,geometry:h?Da(l):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),p,r)){h||(p.geometry=Da(l));var d=n?n.evaluate(p,{},r,e.availableImages):void 0;i.push({id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:p.geometry,patterns:{},sortKey:d})}}n&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var g=0,m=i;g&lt;m.length;g+=1){var v=m[g],y=v.geometry,x=v.index,b=v.sourceLayerIndex;if(this.hasPattern){var _=es(&quot;fill&quot;,this.layers,v,this.zoom,e);this.patternFeatures.push(_)}else this.addFeature(v,y,x,r,{});e.featureIndex.insert(t[x].feature,y,x,b,this.index)}},rs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},rs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},rs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},rs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},rs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,bo),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0},rs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},rs.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=Qo(e,500);a&lt;o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c&lt;u.length;c+=1)l+=u[c].length;for(var f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray),h=f.vertexLength,p=[],d=[],g=0,m=s;g&lt;m.length;g+=1){var v=m[g];if(0!==v.length){v!==s[0]&amp;&amp;d.push(p.length/2);var y=this.segments2.prepareSegment(v.length,this.layoutVertexArray,this.indexArray2),x=y.vertexLength;this.layoutVertexArray.emplaceBack(v[0].x,v[0].y),this.indexArray2.emplaceBack(x+v.length-1,x),p.push(v[0].x),p.push(v[0].y);for(var b=1;b&lt;v.length;b++)this.layoutVertexArray.emplaceBack(v[b].x,v[b].y),this.indexArray2.emplaceBack(x+b-1,x+b),p.push(v[b].x),p.push(v[b].y);y.vertexLength+=v.length,y.primitiveLength+=v.length}}for(var _=_o(p,d),w=0;w&lt;_.length;w+=3)this.indexArray.emplaceBack(h+_[w],h+_[w+1],h+_[w+2]);f.vertexLength+=l,f.primitiveLength+=_.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Dn(&quot;FillBucket&quot;,rs,{omit:[&quot;layers&quot;,&quot;patternFeatures&quot;]});var ns=new yi({&quot;fill-sort-key&quot;:new di(At.layout_fill[&quot;fill-sort-key&quot;])}),is={paint:new yi({&quot;fill-antialias&quot;:new pi(At.paint_fill[&quot;fill-antialias&quot;]),&quot;fill-opacity&quot;:new di(At.paint_fill[&quot;fill-opacity&quot;]),&quot;fill-color&quot;:new di(At.paint_fill[&quot;fill-color&quot;]),&quot;fill-outline-color&quot;:new di(At.paint_fill[&quot;fill-outline-color&quot;]),&quot;fill-translate&quot;:new pi(At.paint_fill[&quot;fill-translate&quot;]),&quot;fill-translate-anchor&quot;:new pi(At.paint_fill[&quot;fill-translate-anchor&quot;]),&quot;fill-pattern&quot;:new gi(At.paint_fill[&quot;fill-pattern&quot;])}),layout:ns},as=function(t){function e(e){t.call(this,e,is)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r);var n=this.paint._values[&quot;fill-outline-color&quot;];&quot;constant&quot;===n.value.kind&amp;&amp;void 0===n.value.value&amp;&amp;(this.paint._values[&quot;fill-outline-color&quot;]=this.paint._values[&quot;fill-color&quot;])},e.prototype.createBucket=function(t){return new rs(t)},e.prototype.queryRadius=function(){return Ja(this.paint.get(&quot;fill-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o){return ja(Ka(t,this.paint.get(&quot;fill-translate&quot;),this.paint.get(&quot;fill-translate-anchor&quot;),a.angle,o),n)},e.prototype.isTileClipped=function(){return!0},e}(xi),os=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_normal_ed&quot;,components:4,type:&quot;Int16&quot;}],4).members,ss=ls;function ls(t,e,r,n,i){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=i,t.readFields(cs,this,e)}function cs(t,e,r){1==t?e.id=r.readVarint():2==t?function(t,e){for(var r=t.readVarint()+t.pos;t.pos&lt;r;){var n=e._keys[t.readVarint()],i=e._values[t.readVarint()];e.properties[n]=i}}(r,e):3==t?e.type=r.readVarint():4==t&amp;&amp;(e._geometry=r.pos)}function us(t){for(var e,r,n=0,i=0,a=t.length,o=a-1;i&lt;a;o=i++)n+=((r=t[o]).x-(e=t[i]).x)*(e.y+r.y);return n}ls.types=[&quot;Unknown&quot;,&quot;Point&quot;,&quot;LineString&quot;,&quot;Polygon&quot;],ls.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,r=t.readVarint()+t.pos,n=1,a=0,o=0,s=0,l=[];t.pos&lt;r;){if(a&lt;=0){var c=t.readVarint();n=7&amp;c,a=c&gt;&gt;3}if(a--,1===n||2===n)o+=t.readSVarint(),s+=t.readSVarint(),1===n&amp;&amp;(e&amp;&amp;l.push(e),e=[]),e.push(new i(o,s));else{if(7!==n)throw new Error(&quot;unknown command &quot;+n);e&amp;&amp;e.push(e[0].clone())}}return e&amp;&amp;l.push(e),l},ls.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,i=0,a=0,o=1/0,s=-1/0,l=1/0,c=-1/0;t.pos&lt;e;){if(n&lt;=0){var u=t.readVarint();r=7&amp;u,n=u&gt;&gt;3}if(n--,1===r||2===r)(i+=t.readSVarint())&lt;o&amp;&amp;(o=i),i&gt;s&amp;&amp;(s=i),(a+=t.readSVarint())&lt;l&amp;&amp;(l=a),a&gt;c&amp;&amp;(c=a);else if(7!==r)throw new Error(&quot;unknown command &quot;+r)}return[o,l,s,c]},ls.prototype.toGeoJSON=function(t,e,r){var n,i,a=this.extent*Math.pow(2,r),o=this.extent*t,s=this.extent*e,l=this.loadGeometry(),c=ls.types[this.type];function u(t){for(var e=0;e&lt;t.length;e++){var r=t[e];t[e]=[360*(r.x+o)/a-180,360/Math.PI*Math.atan(Math.exp((180-360*(r.y+s)/a)*Math.PI/180))-90]}}switch(this.type){case 1:var f=[];for(n=0;n&lt;l.length;n++)f[n]=l[n][0];u(l=f);break;case 2:for(n=0;n&lt;l.length;n++)u(l[n]);break;case 3:for(l=function(t){var e=t.length;if(e&lt;=1)return[t];for(var r,n,i=[],a=0;a&lt;e;a++){var o=us(t[a]);0!==o&amp;&amp;(void 0===n&amp;&amp;(n=o&lt;0),n===o&lt;0?(r&amp;&amp;i.push(r),r=[t[a]]):r.push(t[a]))}return r&amp;&amp;i.push(r),i}(l),n=0;n&lt;l.length;n++)for(i=0;i&lt;l[n].length;i++)u(l[n][i])}1===l.length?l=l[0]:c=&quot;Multi&quot;+c;var h={type:&quot;Feature&quot;,geometry:{type:c,coordinates:l},properties:this.properties};return&quot;id&quot;in this&amp;&amp;(h.id=this.id),h};var fs=hs;function hs(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(ps,this,e),this.length=this._features.length}function ps(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():5===t?e.extent=r.readVarint():2===t?e._features.push(r.pos):3===t?e._keys.push(r.readString()):4===t&amp;&amp;e._values.push(function(t){for(var e=null,r=t.readVarint()+t.pos;t.pos&lt;r;){var n=t.readVarint()&gt;&gt;3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}(r))}function ds(t,e,r){if(3===t){var n=new fs(r,r.readVarint()+r.pos);n.length&amp;&amp;(e[n.name]=n)}}hs.prototype.feature=function(t){if(t&lt;0||t&gt;=this._features.length)throw new Error(&quot;feature index out of bounds&quot;);this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new ss(this._pbf,e,this.extent,this._keys,this._values)};var gs={VectorTile:function(t,e){this.layers=t.readFields(ds,{},e)},VectorTileFeature:ss,VectorTileLayer:fs},ms=gs.VectorTileFeature.types,vs=Math.pow(2,13);function ys(t,e,r,n,i,a,o,s){t.emplaceBack(e,r,2*Math.floor(n*vs)+o,i*vs*2,a*vs*2,Math.round(s))}var xs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Si,this.indexArray=new Fi,this.programConfigurations=new Ia(os,t.layers,t.zoom),this.segments=new ia,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function bs(t,e){return t.x===e.x&amp;&amp;(t.x&lt;0||t.x&gt;8192)||t.y===e.y&amp;&amp;(t.y&lt;0||t.y&gt;8192)}xs.prototype.populate=function(t,e,r){this.features=[],this.hasPattern=ts(&quot;fill-extrusion&quot;,this.layers,e);for(var n=0,i=t;n&lt;i.length;n+=1){var a=i[n],o=a.feature,s=a.id,l=a.index,c=a.sourceLayerIndex,u=this.layers[0]._featureFilter.needGeometry,f={type:o.type,id:s,properties:o.properties,geometry:u?Da(o):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),f,r)){var h={id:s,sourceLayerIndex:c,index:l,geometry:u?f.geometry:Da(o),properties:o.properties,type:o.type,patterns:{}};void 0!==o.id&amp;&amp;(h.id=o.id),this.hasPattern?this.features.push(es(&quot;fill-extrusion&quot;,this.layers,h,this.zoom,e)):this.addFeature(h,h.geometry,l,r,{}),e.featureIndex.insert(o,h.geometry,l,c,this.index,!0)}}},xs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.features;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},xs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},xs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},xs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},xs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,os),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},xs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},xs.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=Qo(e,500);a&lt;o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c&lt;u.length;c+=1)l+=u[c].length;for(var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),h=0,p=s;h&lt;p.length;h+=1){var d=p[h];if(0!==d.length&amp;&amp;!((P=d).every((function(t){return t.x&lt;0}))||P.every((function(t){return t.x&gt;8192}))||P.every((function(t){return t.y&lt;0}))||P.every((function(t){return t.y&gt;8192}))))for(var g=0,m=0;m&lt;d.length;m++){var v=d[m];if(m&gt;=1){var y=d[m-1];if(!bs(v,y)){f.vertexLength+4&gt;ia.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var x=v.sub(y)._perp()._unit(),b=y.dist(v);g+b&gt;32768&amp;&amp;(g=0),ys(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,0,g),ys(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,1,g),ys(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,0,g+=b),ys(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,1,g);var _=f.vertexLength;this.indexArray.emplaceBack(_,_+2,_+1),this.indexArray.emplaceBack(_+1,_+2,_+3),f.vertexLength+=4,f.primitiveLength+=2}}}}if(f.vertexLength+l&gt;ia.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray)),&quot;Polygon&quot;===ms[t.type]){for(var w=[],T=[],k=f.vertexLength,M=0,A=s;M&lt;A.length;M+=1){var S=A[M];if(0!==S.length){S!==s[0]&amp;&amp;T.push(w.length/2);for(var E=0;E&lt;S.length;E++){var C=S[E];ys(this.layoutVertexArray,C.x,C.y,0,0,1,1,0),w.push(C.x),w.push(C.y)}}}for(var L=_o(w,T),I=0;I&lt;L.length;I+=3)this.indexArray.emplaceBack(k+L[I],k+L[I+2],k+L[I+1]);f.primitiveLength+=L.length/3,f.vertexLength+=l}}var P;this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Dn(&quot;FillExtrusionBucket&quot;,xs,{omit:[&quot;layers&quot;,&quot;features&quot;]});var _s={paint:new yi({&quot;fill-extrusion-opacity&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-opacity&quot;]),&quot;fill-extrusion-color&quot;:new di(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-color&quot;]),&quot;fill-extrusion-translate&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-translate&quot;]),&quot;fill-extrusion-translate-anchor&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-translate-anchor&quot;]),&quot;fill-extrusion-pattern&quot;:new gi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-pattern&quot;]),&quot;fill-extrusion-height&quot;:new di(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-height&quot;]),&quot;fill-extrusion-base&quot;:new di(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-base&quot;]),&quot;fill-extrusion-vertical-gradient&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-vertical-gradient&quot;])})},ws=function(t){function e(e){t.call(this,e,_s)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new xs(t)},e.prototype.queryRadius=function(){return Ja(this.paint.get(&quot;fill-extrusion-translate&quot;))},e.prototype.is3D=function(){return!0},e.prototype.queryIntersectsFeature=function(t,e,r,n,a,o,s,l){var c=Ka(t,this.paint.get(&quot;fill-extrusion-translate&quot;),this.paint.get(&quot;fill-extrusion-translate-anchor&quot;),o.angle,s),u=this.paint.get(&quot;fill-extrusion-height&quot;).evaluate(e,r),f=this.paint.get(&quot;fill-extrusion-base&quot;).evaluate(e,r),h=function(t,e,r,n){for(var a=[],o=0,s=t;o&lt;s.length;o+=1){var l=s[o],c=[l.x,l.y,0,1];ao(c,c,e),a.push(new i(c[0]/c[3],c[1]/c[3]))}return a}(c,l),p=function(t,e,r,n){for(var a=[],o=[],s=n[8]*e,l=n[9]*e,c=n[10]*e,u=n[11]*e,f=n[8]*r,h=n[9]*r,p=n[10]*r,d=n[11]*r,g=0,m=t;g&lt;m.length;g+=1){for(var v=[],y=[],x=0,b=m[g];x&lt;b.length;x+=1){var _=b[x],w=_.x,T=_.y,k=n[0]*w+n[4]*T+n[12],M=n[1]*w+n[5]*T+n[13],A=n[2]*w+n[6]*T+n[14],S=n[3]*w+n[7]*T+n[15],E=A+c,C=S+u,L=k+f,I=M+h,P=A+p,z=S+d,O=new i((k+s)/C,(M+l)/C);O.z=E/C,v.push(O);var D=new i(L/z,I/z);D.z=P/z,y.push(D)}a.push(v),o.push(y)}return[a,o]}(n,f,u,l);return function(t,e,r){var n=1/0;ja(r,e)&amp;&amp;(n=ks(r,e[0]));for(var i=0;i&lt;e.length;i++)for(var a=e[i],o=t[i],s=0;s&lt;a.length-1;s++){var l=a[s],c=[l,a[s+1],o[s+1],o[s],l];Ba(r,c)&amp;&amp;(n=Math.min(n,ks(r,c)))}return n!==1/0&amp;&amp;n}(p[0],p[1],h)},e}(xi);function Ts(t,e){return t.x*e.x+t.y*e.y}function ks(t,e){if(1===t.length){for(var r,n=0,i=e[n++];!r||i.equals(r);)if(!(r=e[n++]))return 1/0;for(;n&lt;e.length;n++){var a=e[n],o=t[0],s=r.sub(i),l=a.sub(i),c=o.sub(i),u=Ts(s,s),f=Ts(s,l),h=Ts(l,l),p=Ts(c,s),d=Ts(c,l),g=u*h-f*f,m=(h*p-f*d)/g,v=(u*d-f*p)/g,y=i.z*(1-m-v)+r.z*m+a.z*v;if(isFinite(y))return y}return 1/0}for(var x=1/0,b=0,_=e;b&lt;_.length;b+=1)x=Math.min(x,_[b].z);return x}var Ms=Ti([{name:&quot;a_pos_normal&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_data&quot;,components:4,type:&quot;Uint8&quot;}],4).members,As=gs.VectorTileFeature.types,Ss=Math.cos(Math.PI/180*37.5),Es=Math.pow(2,14)/.5,Cs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Ei,this.indexArray=new Fi,this.programConfigurations=new Ia(Ms,t.layers,t.zoom),this.segments=new ia,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};Cs.prototype.populate=function(t,e,r){this.hasPattern=ts(&quot;line&quot;,this.layers,e);for(var n=this.layers[0].layout.get(&quot;line-sort-key&quot;),i=[],a=0,o=t;a&lt;o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,p={type:l.type,id:c,properties:l.properties,geometry:h?Da(l):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),p,r)){h||(p.geometry=Da(l));var d=n?n.evaluate(p,{},r):void 0;i.push({id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:p.geometry,patterns:{},sortKey:d})}}n&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var g=0,m=i;g&lt;m.length;g+=1){var v=m[g],y=v.geometry,x=v.index,b=v.sourceLayerIndex;if(this.hasPattern){var _=es(&quot;line&quot;,this.layers,v,this.zoom,e);this.patternFeatures.push(_)}else this.addFeature(v,y,x,r,{});e.featureIndex.insert(t[x].feature,y,x,b,this.index)}},Cs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Cs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},Cs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Cs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Cs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ms),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Cs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Cs.prototype.addFeature=function(t,e,r,n,i){for(var a=this.layers[0].layout,o=a.get(&quot;line-join&quot;).evaluate(t,{}),s=a.get(&quot;line-cap&quot;),l=a.get(&quot;line-miter-limit&quot;),c=a.get(&quot;line-round-limit&quot;),u=0,f=e;u&lt;f.length;u+=1)this.addLine(f[u],t,o,s,l,c);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Cs.prototype.addLine=function(t,e,r,n,i,a){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,e.properties&amp;&amp;e.properties.hasOwnProperty(&quot;mapbox_clip_start&quot;)&amp;&amp;e.properties.hasOwnProperty(&quot;mapbox_clip_end&quot;)){this.clipStart=+e.properties.mapbox_clip_start,this.clipEnd=+e.properties.mapbox_clip_end;for(var o=0;o&lt;t.length-1;o++)this.totalDistance+=t[o].dist(t[o+1]);this.updateScaledDistance()}for(var s=&quot;Polygon&quot;===As[e.type],l=t.length;l&gt;=2&amp;&amp;t[l-1].equals(t[l-2]);)l--;for(var c=0;c&lt;l-1&amp;&amp;t[c].equals(t[c+1]);)c++;if(!(l&lt;(s?3:2))){&quot;bevel&quot;===r&amp;&amp;(i=1.05);var u,f=this.overscaling&lt;=16?122880/(512*this.overscaling):0,h=this.segments.prepareSegment(10*l,this.layoutVertexArray,this.indexArray),p=void 0,d=void 0,g=void 0,m=void 0;this.e1=this.e2=-1,s&amp;&amp;(m=t[c].sub(u=t[l-2])._unit()._perp());for(var v=c;v&lt;l;v++)if(!(d=v===l-1?s?t[c+1]:void 0:t[v+1])||!t[v].equals(d)){m&amp;&amp;(g=m),u&amp;&amp;(p=u),u=t[v],m=d?d.sub(u)._unit()._perp():g;var y=(g=g||m).add(m);0===y.x&amp;&amp;0===y.y||y._unit();var x=g.x*m.x+g.y*m.y,b=y.x*m.x+y.y*m.y,_=0!==b?1/b:1/0,w=2*Math.sqrt(2-2*b),T=b&lt;Ss&amp;&amp;p&amp;&amp;d,k=g.x*m.y-g.y*m.x&gt;0;if(T&amp;&amp;v&gt;c){var M=u.dist(p);if(M&gt;2*f){var A=u.sub(u.sub(p)._mult(f/M)._round());this.updateDistance(p,A),this.addCurrentVertex(A,g,0,0,h),p=A}}var S=p&amp;&amp;d,E=S?r:s?&quot;butt&quot;:n;if(S&amp;&amp;&quot;round&quot;===E&amp;&amp;(_&lt;a?E=&quot;miter&quot;:_&lt;=2&amp;&amp;(E=&quot;fakeround&quot;)),&quot;miter&quot;===E&amp;&amp;_&gt;i&amp;&amp;(E=&quot;bevel&quot;),&quot;bevel&quot;===E&amp;&amp;(_&gt;2&amp;&amp;(E=&quot;flipbevel&quot;),_&lt;i&amp;&amp;(E=&quot;miter&quot;)),p&amp;&amp;this.updateDistance(p,u),&quot;miter&quot;===E)y._mult(_),this.addCurrentVertex(u,y,0,0,h);else if(&quot;flipbevel&quot;===E){if(_&gt;100)y=m.mult(-1);else{var C=_*g.add(m).mag()/g.sub(m).mag();y._perp()._mult(C*(k?-1:1))}this.addCurrentVertex(u,y,0,0,h),this.addCurrentVertex(u,y.mult(-1),0,0,h)}else if(&quot;bevel&quot;===E||&quot;fakeround&quot;===E){var L=-Math.sqrt(_*_-1),I=k?L:0,P=k?0:L;if(p&amp;&amp;this.addCurrentVertex(u,g,I,P,h),&quot;fakeround&quot;===E)for(var z=Math.round(180*w/Math.PI/20),O=1;O&lt;z;O++){var D=O/z;if(.5!==D){var R=D-.5;D+=D*R*(D-1)*((1.0904+x*(x*(3.55645-1.43519*x)-3.2452))*R*R+(.848013+x*(.215638*x-1.06021)))}var F=m.sub(g)._mult(D)._add(g)._unit()._mult(k?-1:1);this.addHalfVertex(u,F.x,F.y,!1,k,0,h)}d&amp;&amp;this.addCurrentVertex(u,m,-I,-P,h)}else if(&quot;butt&quot;===E)this.addCurrentVertex(u,y,0,0,h);else if(&quot;square&quot;===E){var B=p?1:-1;this.addCurrentVertex(u,y,B,B,h)}else&quot;round&quot;===E&amp;&amp;(p&amp;&amp;(this.addCurrentVertex(u,g,0,0,h),this.addCurrentVertex(u,g,1,1,h,!0)),d&amp;&amp;(this.addCurrentVertex(u,m,-1,-1,h,!0),this.addCurrentVertex(u,m,0,0,h)));if(T&amp;&amp;v&lt;l-1){var N=u.dist(d);if(N&gt;2*f){var j=u.add(d.sub(u)._mult(f/N)._round());this.updateDistance(u,j),this.addCurrentVertex(j,m,0,0,h),u=j}}}}},Cs.prototype.addCurrentVertex=function(t,e,r,n,i,a){void 0===a&amp;&amp;(a=!1);var o=e.y*n-e.x,s=-e.y-e.x*n;this.addHalfVertex(t,e.x+e.y*r,e.y-e.x*r,a,!1,r,i),this.addHalfVertex(t,o,s,a,!0,-n,i),this.distance&gt;Es/2&amp;&amp;0===this.totalDistance&amp;&amp;(this.distance=0,this.addCurrentVertex(t,e,r,n,i,a))},Cs.prototype.addHalfVertex=function(t,e,r,n,i,a,o){var s=.5*this.scaledDistance;this.layoutVertexArray.emplaceBack((t.x&lt;&lt;1)+(n?1:0),(t.y&lt;&lt;1)+(i?1:0),Math.round(63*e)+128,Math.round(63*r)+128,1+(0===a?0:a&lt;0?-1:1)|(63&amp;s)&lt;&lt;2,s&gt;&gt;6);var l=o.vertexLength++;this.e1&gt;=0&amp;&amp;this.e2&gt;=0&amp;&amp;(this.indexArray.emplaceBack(this.e1,this.e2,l),o.primitiveLength++),i?this.e2=l:this.e1=l},Cs.prototype.updateScaledDistance=function(){this.scaledDistance=this.totalDistance&gt;0?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(Es-1):this.distance},Cs.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},Dn(&quot;LineBucket&quot;,Cs,{omit:[&quot;layers&quot;,&quot;patternFeatures&quot;]});var Ls=new yi({&quot;line-cap&quot;:new pi(At.layout_line[&quot;line-cap&quot;]),&quot;line-join&quot;:new di(At.layout_line[&quot;line-join&quot;]),&quot;line-miter-limit&quot;:new pi(At.layout_line[&quot;line-miter-limit&quot;]),&quot;line-round-limit&quot;:new pi(At.layout_line[&quot;line-round-limit&quot;]),&quot;line-sort-key&quot;:new di(At.layout_line[&quot;line-sort-key&quot;])}),Is={paint:new yi({&quot;line-opacity&quot;:new di(At.paint_line[&quot;line-opacity&quot;]),&quot;line-color&quot;:new di(At.paint_line[&quot;line-color&quot;]),&quot;line-translate&quot;:new pi(At.paint_line[&quot;line-translate&quot;]),&quot;line-translate-anchor&quot;:new pi(At.paint_line[&quot;line-translate-anchor&quot;]),&quot;line-width&quot;:new di(At.paint_line[&quot;line-width&quot;]),&quot;line-gap-width&quot;:new di(At.paint_line[&quot;line-gap-width&quot;]),&quot;line-offset&quot;:new di(At.paint_line[&quot;line-offset&quot;]),&quot;line-blur&quot;:new di(At.paint_line[&quot;line-blur&quot;]),&quot;line-dasharray&quot;:new mi(At.paint_line[&quot;line-dasharray&quot;]),&quot;line-pattern&quot;:new gi(At.paint_line[&quot;line-pattern&quot;]),&quot;line-gradient&quot;:new vi(At.paint_line[&quot;line-gradient&quot;])}),layout:Ls},Ps=new(function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(e,r){return r=new ii(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),t.prototype.possiblyEvaluate.call(this,e,r)},e.prototype.evaluate=function(e,r,n,i){return r=u({},r,{zoom:Math.floor(r.zoom)}),t.prototype.evaluate.call(this,e,r,n,i)},e}(di))(Is.paint.properties[&quot;line-width&quot;].specification);Ps.useIntegerZoom=!0;var zs=function(t){function e(e){t.call(this,e,Is)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){&quot;line-gradient&quot;===t&amp;&amp;this._updateGradient()},e.prototype._updateGradient=function(){this.gradient=mo(this._transitionablePaint._values[&quot;line-gradient&quot;].value.expression,&quot;lineProgress&quot;),this.gradientTexture=null},e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r),this.paint._values[&quot;line-floorwidth&quot;]=Ps.possiblyEvaluate(this._transitioningPaint._values[&quot;line-width&quot;].value,e)},e.prototype.createBucket=function(t){return new Cs(t)},e.prototype.queryRadius=function(t){var e=t,r=Os(Za(&quot;line-width&quot;,this,e),Za(&quot;line-gap-width&quot;,this,e)),n=Za(&quot;line-offset&quot;,this,e);return r/2+Math.abs(n)+Ja(this.paint.get(&quot;line-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,a,o,s){var l=Ka(t,this.paint.get(&quot;line-translate&quot;),this.paint.get(&quot;line-translate-anchor&quot;),o.angle,s),c=s/2*Os(this.paint.get(&quot;line-width&quot;).evaluate(e,r),this.paint.get(&quot;line-gap-width&quot;).evaluate(e,r)),u=this.paint.get(&quot;line-offset&quot;).evaluate(e,r);return u&amp;&amp;(n=function(t,e){for(var r=[],n=new i(0,0),a=0;a&lt;t.length;a++){for(var o=t[a],s=[],l=0;l&lt;o.length;l++){var c=o[l],u=o[l+1],f=0===l?n:c.sub(o[l-1])._unit()._perp(),h=l===o.length-1?n:u.sub(c)._unit()._perp(),p=f._add(h)._unit();p._mult(1/(p.x*h.x+p.y*h.y)),s.push(p._mult(e)._add(c))}r.push(s)}return r}(n,u*s)),function(t,e,r){for(var n=0;n&lt;e.length;n++){var i=e[n];if(t.length&gt;=3)for(var a=0;a&lt;i.length;a++)if(Wa(t,i[a]))return!0;if(Ua(t,i,r))return!0}return!1}(l,n,c)},e.prototype.isTileClipped=function(){return!0},e}(xi);function Os(t,e){return e&gt;0?e+2*t:t}var Ds=Ti([{name:&quot;a_pos_offset&quot;,components:4,type:&quot;Int16&quot;},{name:&quot;a_data&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pixeloffset&quot;,components:4,type:&quot;Int16&quot;}],4),Rs=Ti([{name:&quot;a_projected_pos&quot;,components:3,type:&quot;Float32&quot;}],4),Fs=(Ti([{name:&quot;a_fade_opacity&quot;,components:1,type:&quot;Uint32&quot;}],4),Ti([{name:&quot;a_placed&quot;,components:2,type:&quot;Uint8&quot;},{name:&quot;a_shift&quot;,components:2,type:&quot;Float32&quot;}])),Bs=(Ti([{type:&quot;Int16&quot;,name:&quot;anchorPointX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorPointY&quot;},{type:&quot;Int16&quot;,name:&quot;x1&quot;},{type:&quot;Int16&quot;,name:&quot;y1&quot;},{type:&quot;Int16&quot;,name:&quot;x2&quot;},{type:&quot;Int16&quot;,name:&quot;y2&quot;},{type:&quot;Uint32&quot;,name:&quot;featureIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;sourceLayerIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;bucketIndex&quot;}]),Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_anchor_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_extrude&quot;,components:2,type:&quot;Int16&quot;}],4)),Ns=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Float32&quot;},{name:&quot;a_radius&quot;,components:1,type:&quot;Float32&quot;},{name:&quot;a_flags&quot;,components:2,type:&quot;Int16&quot;}],4);function js(t,e,r){return t.sections.forEach((function(t){t.text=function(t,e,r){var n=e.layout.get(&quot;text-transform&quot;).evaluate(r,{});return&quot;uppercase&quot;===n?t=t.toLocaleUpperCase():&quot;lowercase&quot;===n&amp;&amp;(t=t.toLocaleLowerCase()),ni.applyArabicShaping&amp;&amp;(t=ni.applyArabicShaping(t)),t}(t.text,e,r)})),t}Ti([{name:&quot;triangle&quot;,components:3,type:&quot;Uint16&quot;}]),Ti([{type:&quot;Int16&quot;,name:&quot;anchorX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorY&quot;},{type:&quot;Uint16&quot;,name:&quot;glyphStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;numGlyphs&quot;},{type:&quot;Uint32&quot;,name:&quot;vertexStartIndex&quot;},{type:&quot;Uint32&quot;,name:&quot;lineStartIndex&quot;},{type:&quot;Uint32&quot;,name:&quot;lineLength&quot;},{type:&quot;Uint16&quot;,name:&quot;segment&quot;},{type:&quot;Uint16&quot;,name:&quot;lowerSize&quot;},{type:&quot;Uint16&quot;,name:&quot;upperSize&quot;},{type:&quot;Float32&quot;,name:&quot;lineOffsetX&quot;},{type:&quot;Float32&quot;,name:&quot;lineOffsetY&quot;},{type:&quot;Uint8&quot;,name:&quot;writingMode&quot;},{type:&quot;Uint8&quot;,name:&quot;placedOrientation&quot;},{type:&quot;Uint8&quot;,name:&quot;hidden&quot;},{type:&quot;Uint32&quot;,name:&quot;crossTileID&quot;},{type:&quot;Int16&quot;,name:&quot;associatedIconIndex&quot;}]),Ti([{type:&quot;Int16&quot;,name:&quot;anchorX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorY&quot;},{type:&quot;Int16&quot;,name:&quot;rightJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;centerJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;leftJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;verticalPlacedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;placedIconSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;verticalPlacedIconSymbolIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;key&quot;},{type:&quot;Uint16&quot;,name:&quot;textBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;textBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalTextBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalTextBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;iconBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;iconBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalIconBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalIconBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;featureIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;numHorizontalGlyphVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numVerticalGlyphVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numIconVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numVerticalIconVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;useRuntimeCollisionCircles&quot;},{type:&quot;Uint32&quot;,name:&quot;crossTileID&quot;},{type:&quot;Float32&quot;,name:&quot;textBoxScale&quot;},{type:&quot;Float32&quot;,components:2,name:&quot;textOffset&quot;},{type:&quot;Float32&quot;,name:&quot;collisionCircleDiameter&quot;}]),Ti([{type:&quot;Float32&quot;,name:&quot;offsetX&quot;}]),Ti([{type:&quot;Int16&quot;,name:&quot;x&quot;},{type:&quot;Int16&quot;,name:&quot;y&quot;},{type:&quot;Int16&quot;,name:&quot;tileUnitDistanceFromAnchor&quot;}]);var Us={&quot;!&quot;:&quot;\ufe15&quot;,&quot;#&quot;:&quot;\uff03&quot;,$:&quot;\uff04&quot;,&quot;%&quot;:&quot;\uff05&quot;,&quot;&amp;&quot;:&quot;\uff06&quot;,&quot;(&quot;:&quot;\ufe35&quot;,&quot;)&quot;:&quot;\ufe36&quot;,&quot;*&quot;:&quot;\uff0a&quot;,&quot;+&quot;:&quot;\uff0b&quot;,&quot;,&quot;:&quot;\ufe10&quot;,&quot;-&quot;:&quot;\ufe32&quot;,&quot;.&quot;:&quot;\u30fb&quot;,&quot;/&quot;:&quot;\uff0f&quot;,&quot;:&quot;:&quot;\ufe13&quot;,&quot;;&quot;:&quot;\ufe14&quot;,&quot;&lt;&quot;:&quot;\ufe3f&quot;,&quot;=&quot;:&quot;\uff1d&quot;,&quot;&gt;&quot;:&quot;\ufe40&quot;,&quot;?&quot;:&quot;\ufe16&quot;,&quot;@&quot;:&quot;\uff20&quot;,&quot;[&quot;:&quot;\ufe47&quot;,&quot;\\&quot;:&quot;\uff3c&quot;,&quot;]&quot;:&quot;\ufe48&quot;,&quot;^&quot;:&quot;\uff3e&quot;,_:&quot;\ufe33&quot;,&quot;`&quot;:&quot;\uff40&quot;,&quot;{&quot;:&quot;\ufe37&quot;,&quot;|&quot;:&quot;\u2015&quot;,&quot;}&quot;:&quot;\ufe38&quot;,&quot;~&quot;:&quot;\uff5e&quot;,&quot;\xa2&quot;:&quot;\uffe0&quot;,&quot;\xa3&quot;:&quot;\uffe1&quot;,&quot;\xa5&quot;:&quot;\uffe5&quot;,&quot;\xa6&quot;:&quot;\uffe4&quot;,&quot;\xac&quot;:&quot;\uffe2&quot;,&quot;\xaf&quot;:&quot;\uffe3&quot;,&quot;\u2013&quot;:&quot;\ufe32&quot;,&quot;\u2014&quot;:&quot;\ufe31&quot;,&quot;\u2018&quot;:&quot;\ufe43&quot;,&quot;\u2019&quot;:&quot;\ufe44&quot;,&quot;\u201c&quot;:&quot;\ufe41&quot;,&quot;\u201d&quot;:&quot;\ufe42&quot;,&quot;\u2026&quot;:&quot;\ufe19&quot;,&quot;\u2027&quot;:&quot;\u30fb&quot;,&quot;\u20a9&quot;:&quot;\uffe6&quot;,&quot;\u3001&quot;:&quot;\ufe11&quot;,&quot;\u3002&quot;:&quot;\ufe12&quot;,&quot;\u3008&quot;:&quot;\ufe3f&quot;,&quot;\u3009&quot;:&quot;\ufe40&quot;,&quot;\u300a&quot;:&quot;\ufe3d&quot;,&quot;\u300b&quot;:&quot;\ufe3e&quot;,&quot;\u300c&quot;:&quot;\ufe41&quot;,&quot;\u300d&quot;:&quot;\ufe42&quot;,&quot;\u300e&quot;:&quot;\ufe43&quot;,&quot;\u300f&quot;:&quot;\ufe44&quot;,&quot;\u3010&quot;:&quot;\ufe3b&quot;,&quot;\u3011&quot;:&quot;\ufe3c&quot;,&quot;\u3014&quot;:&quot;\ufe39&quot;,&quot;\u3015&quot;:&quot;\ufe3a&quot;,&quot;\u3016&quot;:&quot;\ufe17&quot;,&quot;\u3017&quot;:&quot;\ufe18&quot;,&quot;\uff01&quot;:&quot;\ufe15&quot;,&quot;\uff08&quot;:&quot;\ufe35&quot;,&quot;\uff09&quot;:&quot;\ufe36&quot;,&quot;\uff0c&quot;:&quot;\ufe10&quot;,&quot;\uff0d&quot;:&quot;\ufe32&quot;,&quot;\uff0e&quot;:&quot;\u30fb&quot;,&quot;\uff1a&quot;:&quot;\ufe13&quot;,&quot;\uff1b&quot;:&quot;\ufe14&quot;,&quot;\uff1c&quot;:&quot;\ufe3f&quot;,&quot;\uff1e&quot;:&quot;\ufe40&quot;,&quot;\uff1f&quot;:&quot;\ufe16&quot;,&quot;\uff3b&quot;:&quot;\ufe47&quot;,&quot;\uff3d&quot;:&quot;\ufe48&quot;,&quot;\uff3f&quot;:&quot;\ufe33&quot;,&quot;\uff5b&quot;:&quot;\ufe37&quot;,&quot;\uff5c&quot;:&quot;\u2015&quot;,&quot;\uff5d&quot;:&quot;\ufe38&quot;,&quot;\uff5f&quot;:&quot;\ufe35&quot;,&quot;\uff60&quot;:&quot;\ufe36&quot;,&quot;\uff61&quot;:&quot;\ufe12&quot;,&quot;\uff62&quot;:&quot;\ufe41&quot;,&quot;\uff63&quot;:&quot;\ufe42&quot;},Vs=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1&lt;&lt;s)-1,c=l&gt;&gt;1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&amp;(1&lt;&lt;-u)-1,p&gt;&gt;=-u,u+=s;u&gt;0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&amp;(1&lt;&lt;-u)-1,a&gt;&gt;=-u,u+=n;u&gt;0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},qs=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1&lt;&lt;c)-1,f=u&gt;&gt;1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e&lt;0||0===e&amp;&amp;1/e&lt;0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))&lt;1&amp;&amp;(o--,l*=2),(e+=o+f&gt;=1?h/l:h*Math.pow(2,1-f))*l&gt;=2&amp;&amp;(o++,l/=2),o+f&gt;=u?(s=0,o=u):o+f&gt;=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i&gt;=8;t[r+p]=255&amp;s,p+=d,s/=256,i-=8);for(o=o&lt;&lt;i|s,c+=i;c&gt;0;t[r+p]=255&amp;o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g},Hs=Gs;function Gs(t){this.buf=ArrayBuffer.isView&amp;&amp;ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Gs.Varint=0,Gs.Fixed64=1,Gs.Bytes=2,Gs.Fixed32=5;var Ys=&quot;undefined&quot;==typeof TextDecoder?null:new TextDecoder(&quot;utf8&quot;);function Ws(t){return t.type===Gs.Bytes?t.readVarint()+t.pos:t.pos+1}function Xs(t,e,r){return r?4294967296*e+(t&gt;&gt;&gt;0):4294967296*(e&gt;&gt;&gt;0)+(t&gt;&gt;&gt;0)}function Zs(t,e,r){var n=e&lt;=16383?1:e&lt;=2097151?2:e&lt;=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i&gt;=t;i--)r.buf[i+n]=r.buf[i]}function Js(t,e){for(var r=0;r&lt;t.length;r++)e.writeVarint(t[r])}function Ks(t,e){for(var r=0;r&lt;t.length;r++)e.writeSVarint(t[r])}function Qs(t,e){for(var r=0;r&lt;t.length;r++)e.writeFloat(t[r])}function $s(t,e){for(var r=0;r&lt;t.length;r++)e.writeDouble(t[r])}function tl(t,e){for(var r=0;r&lt;t.length;r++)e.writeBoolean(t[r])}function el(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed32(t[r])}function rl(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed32(t[r])}function nl(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed64(t[r])}function il(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed64(t[r])}function al(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+16777216*t[e+3]}function ol(t,e,r){t[r]=e,t[r+1]=e&gt;&gt;&gt;8,t[r+2]=e&gt;&gt;&gt;16,t[r+3]=e&gt;&gt;&gt;24}function sl(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+(t[e+3]&lt;&lt;24)}function ll(t,e,r){1===t&amp;&amp;r.readMessage(cl,e)}function cl(t,e,r){if(3===t){var n=r.readMessage(ul,{}),i=n.width,a=n.height,o=n.left,s=n.top,l=n.advance;e.push({id:n.id,bitmap:new ho({width:i+6,height:a+6},n.bitmap),metrics:{width:i,height:a,left:o,top:s,advance:l}})}}function ul(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&amp;&amp;(e.advance=r.readVarint())}function fl(t){for(var e=0,r=0,n=0,i=t;n&lt;i.length;n+=1){var a=i[n];e+=a.w*a.h,r=Math.max(r,a.w)}t.sort((function(t,e){return e.h-t.h}));for(var o=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}],s=0,l=0,c=0,u=t;c&lt;u.length;c+=1)for(var f=u[c],h=o.length-1;h&gt;=0;h--){var p=o[h];if(!(f.w&gt;p.w||f.h&gt;p.h)){if(f.x=p.x,f.y=p.y,l=Math.max(l,f.y+f.h),s=Math.max(s,f.x+f.w),f.w===p.w&amp;&amp;f.h===p.h){var d=o.pop();h&lt;o.length&amp;&amp;(o[h]=d)}else f.h===p.h?(p.x+=f.w,p.w-=f.w):f.w===p.w?(p.y+=f.h,p.h-=f.h):(o.push({x:p.x+f.w,y:p.y,w:p.w-f.w,h:f.h}),p.y+=f.h,p.h-=f.h);break}}return{w:s,h:l,fill:e/(s*l)||0}}Gs.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos&lt;r;){var n=this.readVarint(),i=n&gt;&gt;3,a=this.pos;this.type=7&amp;n,t(i,e,this),this.pos===a&amp;&amp;this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=al(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=sl(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=al(this.buf,this.pos)+4294967296*al(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=al(this.buf,this.pos)+4294967296*sl(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=Vs(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Vs(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return e=127&amp;(r=n[this.pos++]),r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;7,r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;14,r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;21,r&lt;128?e:function(t,e,r){var n,i,a=r.buf;if(n=(112&amp;(i=a[r.pos++]))&gt;&gt;4,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;3,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;10,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;17,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;24,i&lt;128)return Xs(t,n,e);if(n|=(1&amp;(i=a[r.pos++]))&lt;&lt;31,i&lt;128)return Xs(t,n,e);throw new Error(&quot;Expected varint not more than 10 bytes&quot;)}(e|=(15&amp;(r=n[this.pos]))&lt;&lt;28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e&gt;=12&amp;&amp;Ys?function(t,e,r){return Ys.decode(t.subarray(e,r))}(this.buf,e,t):function(t,e,r){for(var n=&quot;&quot;,i=e;i&lt;r;){var a,o,s,l=t[i],c=null,u=l&gt;239?4:l&gt;223?3:l&gt;191?2:1;if(i+u&gt;r)break;1===u?l&lt;128&amp;&amp;(c=l):2===u?128==(192&amp;(a=t[i+1]))&amp;&amp;(c=(31&amp;l)&lt;&lt;6|63&amp;a)&lt;=127&amp;&amp;(c=null):3===u?(o=t[i+2],128==(192&amp;(a=t[i+1]))&amp;&amp;128==(192&amp;o)&amp;&amp;((c=(15&amp;l)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;o)&lt;=2047||c&gt;=55296&amp;&amp;c&lt;=57343)&amp;&amp;(c=null)):4===u&amp;&amp;(o=t[i+2],s=t[i+3],128==(192&amp;(a=t[i+1]))&amp;&amp;128==(192&amp;o)&amp;&amp;128==(192&amp;s)&amp;&amp;((c=(15&amp;l)&lt;&lt;18|(63&amp;a)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;s)&lt;=65535||c&gt;=1114112)&amp;&amp;(c=null)),null===c?(c=65533,u=1):c&gt;65535&amp;&amp;(c-=65536,n+=String.fromCharCode(c&gt;&gt;&gt;10&amp;1023|55296),c=56320|1023&amp;c),n+=String.fromCharCode(c),i+=u}return n}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Gs.Bytes)return t.push(this.readVarint(e));var r=Ws(this);for(t=t||[];this.pos&lt;r;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==Gs.Bytes)return t.push(this.readSVarint());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==Gs.Bytes)return t.push(this.readBoolean());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==Gs.Bytes)return t.push(this.readFloat());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==Gs.Bytes)return t.push(this.readDouble());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==Gs.Bytes)return t.push(this.readFixed32());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==Gs.Bytes)return t.push(this.readSFixed32());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==Gs.Bytes)return t.push(this.readFixed64());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==Gs.Bytes)return t.push(this.readSFixed64());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&amp;t;if(e===Gs.Varint)for(;this.buf[this.pos++]&gt;127;);else if(e===Gs.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Gs.Fixed32)this.pos+=4;else{if(e!==Gs.Fixed64)throw new Error(&quot;Unimplemented type: &quot;+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t&lt;&lt;3|e)},realloc:function(t){for(var e=this.length||16;e&lt;this.pos+t;)e*=2;if(e!==this.length){var r=new Uint8Array(e);r.set(this.buf),this.buf=r,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),ol(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),ol(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),ol(this.buf,-1&amp;t,this.pos),ol(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),ol(this.buf,-1&amp;t,this.pos),ol(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)&gt;268435455||t&lt;0?function(t,e){var r,n;if(t&gt;=0?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,n=n+1|0)),t&gt;=0x10000000000000000||t&lt;-0x10000000000000000)throw new Error(&quot;Given varint doesn't fit into 10 bytes&quot;);e.realloc(10),function(t,e,r){r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,r.buf[r.pos]=127&amp;(t&gt;&gt;&gt;=7)}(r,0,e),function(t,e){var r=(7&amp;t)&lt;&lt;4;e.buf[e.pos++]|=r|((t&gt;&gt;&gt;=3)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t)))))}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&amp;t|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=t&gt;&gt;&gt;7&amp;127))))},writeSVarint:function(t){this.writeVarint(t&lt;0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,r){for(var n,i,a=0;a&lt;e.length;a++){if((n=e.charCodeAt(a))&gt;55295&amp;&amp;n&lt;57344){if(!i){n&gt;56319||a+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n&lt;56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296&lt;&lt;10|n-56320|65536,i=null}else i&amp;&amp;(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n&lt;128?t[r++]=n:(n&lt;2048?t[r++]=n&gt;&gt;6|192:(n&lt;65536?t[r++]=n&gt;&gt;12|224:(t[r++]=n&gt;&gt;18|240,t[r++]=n&gt;&gt;12&amp;63|128),t[r++]=n&gt;&gt;6&amp;63|128),t[r++]=63&amp;n|128)}return r}(this.buf,t,this.pos);var r=this.pos-e;r&gt;=128&amp;&amp;Zs(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),qs(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),qs(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r&lt;e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var n=this.pos-r;n&gt;=128&amp;&amp;Zs(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,Gs.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,Js,e)},writePackedSVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,Ks,e)},writePackedBoolean:function(t,e){e.length&amp;&amp;this.writeMessage(t,tl,e)},writePackedFloat:function(t,e){e.length&amp;&amp;this.writeMessage(t,Qs,e)},writePackedDouble:function(t,e){e.length&amp;&amp;this.writeMessage(t,$s,e)},writePackedFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,el,e)},writePackedSFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,rl,e)},writePackedFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,nl,e)},writePackedSFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,il,e)},writeBytesField:function(t,e){this.writeTag(t,Gs.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Gs.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Gs.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Gs.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Gs.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Gs.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Gs.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Gs.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Gs.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Gs.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var hl=function(t,e){var r=e.pixelRatio,n=e.version,i=e.stretchX,a=e.stretchY,o=e.content;this.paddedRect=t,this.pixelRatio=r,this.stretchX=i,this.stretchY=a,this.content=o,this.version=n},pl={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};pl.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},pl.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},pl.tlbr.get=function(){return this.tl.concat(this.br)},pl.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(hl.prototype,pl);var dl=function(t,e){var r={},n={};this.haveRenderCallbacks=[];var i=[];this.addImages(t,r,i),this.addImages(e,n,i);var a=fl(i),o=new po({width:a.w||1,height:a.h||1});for(var s in t){var l=t[s],c=r[s].paddedRect;po.copy(l.data,o,{x:0,y:0},{x:c.x+1,y:c.y+1},l.data)}for(var u in e){var f=e[u],h=n[u].paddedRect,p=h.x+1,d=h.y+1,g=f.data.width,m=f.data.height;po.copy(f.data,o,{x:0,y:0},{x:p,y:d},f.data),po.copy(f.data,o,{x:0,y:m-1},{x:p,y:d-1},{width:g,height:1}),po.copy(f.data,o,{x:0,y:0},{x:p,y:d+m},{width:g,height:1}),po.copy(f.data,o,{x:g-1,y:0},{x:p-1,y:d},{width:1,height:m}),po.copy(f.data,o,{x:0,y:0},{x:p+g,y:d},{width:1,height:m})}this.image=o,this.iconPositions=r,this.patternPositions=n};dl.prototype.addImages=function(t,e,r){for(var n in t){var i=t[n],a={x:0,y:0,w:i.data.width+2,h:i.data.height+2};r.push(a),e[n]=new hl(a,i),i.hasRenderCallback&amp;&amp;this.haveRenderCallbacks.push(n)}},dl.prototype.patchUpdatedImages=function(t,e){for(var r in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[r],t.getImage(r),e),this.patchUpdatedImage(this.patternPositions[r],t.getImage(r),e)},dl.prototype.patchUpdatedImage=function(t,e,r){if(t&amp;&amp;e&amp;&amp;t.version!==e.version){t.version=e.version;var n=t.tl;r.update(e.data,void 0,{x:n[0],y:n[1]})}},Dn(&quot;ImagePosition&quot;,hl),Dn(&quot;ImageAtlas&quot;,dl);var gl={horizontal:1,vertical:2,horizontalOnly:3},ml=function(){this.scale=1,this.fontStack=&quot;&quot;,this.imageName=null};ml.forText=function(t,e){var r=new ml;return r.scale=t||1,r.fontStack=e,r},ml.forImage=function(t){var e=new ml;return e.imageName=t,e};var vl=function(){this.text=&quot;&quot;,this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function yl(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g){var m,v=vl.fromFeature(t,i);f===gl.vertical&amp;&amp;v.verticalizePunctuation();var y=ni.processBidirectionalText,x=ni.processStyledBidirectionalText;if(y&amp;&amp;1===v.sections.length){m=[];for(var b=0,_=y(v.toString(),Ml(v,c,a,e,n,p,d));b&lt;_.length;b+=1){var w=_[b],T=new vl;T.text=w,T.sections=v.sections;for(var k=0;k&lt;w.length;k++)T.sectionIndex.push(0);m.push(T)}}else if(x){m=[];for(var M=0,A=x(v.text,v.sectionIndex,Ml(v,c,a,e,n,p,d));M&lt;A.length;M+=1){var S=A[M],E=new vl;E.text=S[0],E.sectionIndex=S[1],E.sections=v.sections,m.push(E)}}else m=function(t,e){for(var r=[],n=t.text,i=0,a=0,o=e;a&lt;o.length;a+=1){var s=o[a];r.push(t.substring(i,s)),i=s}return i&lt;n.length&amp;&amp;r.push(t.substring(i,n.length)),r}(v,Ml(v,c,a,e,n,p,d));var C=[],L={positionedLines:C,text:v.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:f,iconsInText:!1,verticalizable:!1};return function(t,e,r,n,i,a,o,s,l,c,u,f){for(var h=0,p=-17,d=0,g=0,m=&quot;right&quot;===s?1:&quot;left&quot;===s?0:.5,v=0,y=0,x=i;y&lt;x.length;y+=1){var b=x[y];b.trim();var _=b.getMaxScale(),w=24*(_-1),T={positionedGlyphs:[],lineOffset:0};t.positionedLines[v]=T;var k=T.positionedGlyphs,M=0;if(b.length()){for(var A=0;A&lt;b.length();A++){var S=b.getSection(A),E=b.getSectionIndex(A),C=b.getCharCode(A),L=0,I=null,P=null,z=null,O=24,D=!(l===gl.horizontal||!u&amp;&amp;!Hn(C)||u&amp;&amp;(xl[C]||(H=C,Vn.Arabic(H)||Vn[&quot;Arabic Supplement&quot;](H)||Vn[&quot;Arabic Extended-A&quot;](H)||Vn[&quot;Arabic Presentation Forms-A&quot;](H)||Vn[&quot;Arabic Presentation Forms-B&quot;](H))));if(S.imageName){var R=n[S.imageName];if(!R)continue;z=S.imageName,t.iconsInText=t.iconsInText||!0,P=R.paddedRect;var F=R.displaySize;S.scale=24*S.scale/f,L=w+(24-F[1]*S.scale),O=(I={width:F[0],height:F[1],left:1,top:-3,advance:D?F[1]:F[0]}).advance;var B=D?F[0]*S.scale-24*_:F[1]*S.scale-24*_;B&gt;0&amp;&amp;B&gt;M&amp;&amp;(M=B)}else{var N=r[S.fontStack],j=N&amp;&amp;N[C];if(j&amp;&amp;j.rect)P=j.rect,I=j.metrics;else{var U=e[S.fontStack],V=U&amp;&amp;U[C];if(!V)continue;I=V.metrics}L=24*(_-S.scale)}D?(t.verticalizable=!0,k.push({glyph:C,imageName:z,x:h,y:p+L,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:I,rect:P}),h+=O*S.scale+c):(k.push({glyph:C,imageName:z,x:h,y:p+L,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:I,rect:P}),h+=I.advance*S.scale+c)}0!==k.length&amp;&amp;(d=Math.max(h-c,d),Sl(k,0,k.length-1,m,M)),h=0;var q=a*_+M;T.lineOffset=Math.max(M,w),p+=q,g=Math.max(q,g),++v}else p+=a,++v}var H,G=p- -17,Y=Al(o),W=Y.horizontalAlign,X=Y.verticalAlign;(function(t,e,r,n,i,a,o,s,l){var c,u=(e-r)*i;c=a!==o?-s*n- -17:(-n*l+.5)*o;for(var f=0,h=t;f&lt;h.length;f+=1)for(var p=0,d=h[f].positionedGlyphs;p&lt;d.length;p+=1){var g=d[p];g.x+=u,g.y+=c}})(t.positionedLines,m,W,X,d,g,a,G,i.length),t.top+=-X*G,t.bottom=t.top+G,t.left+=-W*d,t.right=t.left+d}(L,e,r,n,m,o,s,l,f,c,h,g),!function(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(0!==r[e].positionedGlyphs.length)return!1;return!0}(C)&amp;&amp;L}vl.fromFeature=function(t,e){for(var r=new vl,n=0;n&lt;t.sections.length;n++){var i=t.sections[n];i.image?r.addImageSection(i):r.addTextSection(i,e)}return r},vl.prototype.length=function(){return this.text.length},vl.prototype.getSection=function(t){return this.sections[this.sectionIndex[t]]},vl.prototype.getSectionIndex=function(t){return this.sectionIndex[t]},vl.prototype.getCharCode=function(t){return this.text.charCodeAt(t)},vl.prototype.verticalizePunctuation=function(){this.text=function(t){for(var e=&quot;&quot;,r=0;r&lt;t.length;r++){var n=t.charCodeAt(r+1)||null,i=t.charCodeAt(r-1)||null;e+=n&amp;&amp;Gn(n)&amp;&amp;!Us[t[r+1]]||i&amp;&amp;Gn(i)&amp;&amp;!Us[t[r-1]]||!Us[t[r]]?t[r]:Us[t[r]]}return e}(this.text)},vl.prototype.trim=function(){for(var t=0,e=0;e&lt;this.text.length&amp;&amp;xl[this.text.charCodeAt(e)];e++)t++;for(var r=this.text.length,n=this.text.length-1;n&gt;=0&amp;&amp;n&gt;=t&amp;&amp;xl[this.text.charCodeAt(n)];n--)r--;this.text=this.text.substring(t,r),this.sectionIndex=this.sectionIndex.slice(t,r)},vl.prototype.substring=function(t,e){var r=new vl;return r.text=this.text.substring(t,e),r.sectionIndex=this.sectionIndex.slice(t,e),r.sections=this.sections,r},vl.prototype.toString=function(){return this.text},vl.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,r){return Math.max(e,t.sections[r].scale)}),0)},vl.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(ml.forText(t.scale,t.fontStack||e));for(var r=this.sections.length-1,n=0;n&lt;t.text.length;++n)this.sectionIndex.push(r)},vl.prototype.addImageSection=function(t){var e=t.image?t.image.name:&quot;&quot;;if(0!==e.length){var r=this.getNextImageSectionCharCode();r?(this.text+=String.fromCharCode(r),this.sections.push(ml.forImage(e)),this.sectionIndex.push(this.sections.length-1)):_(&quot;Reached maximum number of images 6401&quot;)}else _(&quot;Can't add FormattedSection with an empty image.&quot;)},vl.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID&gt;=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var xl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},bl={};function _l(t,e,r,n,i,a){if(e.imageName){var o=n[e.imageName];return o?o.displaySize[0]*e.scale*24/a+i:0}var s=r[e.fontStack],l=s&amp;&amp;s[t];return l?l.metrics.advance*e.scale+i:0}function wl(t,e,r,n){var i=Math.pow(t-e,2);return n?t&lt;e?i/2:2*i:i+Math.abs(r)*r}function Tl(t,e,r){var n=0;return 10===t&amp;&amp;(n-=1e4),r&amp;&amp;(n+=150),40!==t&amp;&amp;65288!==t||(n+=50),41!==e&amp;&amp;65289!==e||(n+=50),n}function kl(t,e,r,n,i,a){for(var o=null,s=wl(e,r,i,a),l=0,c=n;l&lt;c.length;l+=1){var u=c[l],f=wl(e-u.x,r,i,a)+u.badness;f&lt;=s&amp;&amp;(o=u,s=f)}return{index:t,x:e,priorBreak:o,badness:s}}function Ml(t,e,r,n,i,a,o){if(&quot;point&quot;!==a)return[];if(!t)return[];for(var s,l=[],c=function(t,e,r,n,i,a){for(var o=0,s=0;s&lt;t.length();s++){var l=t.getSection(s);o+=_l(t.getCharCode(s),l,n,i,e,a)}return o/Math.max(1,Math.ceil(o/r))}(t,e,r,n,i,o),u=t.text.indexOf(&quot;\u200b&quot;)&gt;=0,f=0,h=0;h&lt;t.length();h++){var p=t.getSection(h),d=t.getCharCode(h);if(xl[d]||(f+=_l(d,p,n,i,e,o)),h&lt;t.length()-1){var g=!((s=d)&lt;11904||!(Vn[&quot;Bopomofo Extended&quot;](s)||Vn.Bopomofo(s)||Vn[&quot;CJK Compatibility Forms&quot;](s)||Vn[&quot;CJK Compatibility Ideographs&quot;](s)||Vn[&quot;CJK Compatibility&quot;](s)||Vn[&quot;CJK Radicals Supplement&quot;](s)||Vn[&quot;CJK Strokes&quot;](s)||Vn[&quot;CJK Symbols and Punctuation&quot;](s)||Vn[&quot;CJK Unified Ideographs Extension A&quot;](s)||Vn[&quot;CJK Unified Ideographs&quot;](s)||Vn[&quot;Enclosed CJK Letters and Months&quot;](s)||Vn[&quot;Halfwidth and Fullwidth Forms&quot;](s)||Vn.Hiragana(s)||Vn[&quot;Ideographic Description Characters&quot;](s)||Vn[&quot;Kangxi Radicals&quot;](s)||Vn[&quot;Katakana Phonetic Extensions&quot;](s)||Vn.Katakana(s)||Vn[&quot;Vertical Forms&quot;](s)||Vn[&quot;Yi Radicals&quot;](s)||Vn[&quot;Yi Syllables&quot;](s)));(bl[d]||g||p.imageName)&amp;&amp;l.push(kl(h+1,f,c,l,Tl(d,t.getCharCode(h+1),g&amp;&amp;u),!1))}}return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(kl(t.length(),f,c,l,0,!0))}function Al(t){var e=.5,r=.5;switch(t){case&quot;right&quot;:case&quot;top-right&quot;:case&quot;bottom-right&quot;:e=1;break;case&quot;left&quot;:case&quot;top-left&quot;:case&quot;bottom-left&quot;:e=0}switch(t){case&quot;bottom&quot;:case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:r=1;break;case&quot;top&quot;:case&quot;top-right&quot;:case&quot;top-left&quot;:r=0}return{horizontalAlign:e,verticalAlign:r}}function Sl(t,e,r,n,i){if(n||i)for(var a=t[r],o=(t[r].x+a.metrics.advance*a.scale)*n,s=e;s&lt;=r;s++)t[s].x-=o,t[s].y+=i}function El(t,e,r,n,i,a){var o,s=t.image;if(s.content){var l=s.content,c=s.pixelRatio||1;o=[l[0]/c,l[1]/c,s.displaySize[0]-l[2]/c,s.displaySize[1]-l[3]/c]}var u,f,h,p,d=e.left*a,g=e.right*a;&quot;width&quot;===r||&quot;both&quot;===r?(p=i[0]+d-n[3],f=i[0]+g+n[1]):f=(p=i[0]+(d+g-s.displaySize[0])/2)+s.displaySize[0];var m=e.top*a,v=e.bottom*a;return&quot;height&quot;===r||&quot;both&quot;===r?(u=i[1]+m-n[0],h=i[1]+v+n[2]):h=(u=i[1]+(m+v-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:u,right:f,bottom:h,left:p,collisionPadding:o}}bl[10]=!0,bl[32]=!0,bl[38]=!0,bl[40]=!0,bl[41]=!0,bl[43]=!0,bl[45]=!0,bl[47]=!0,bl[173]=!0,bl[183]=!0,bl[8203]=!0,bl[8208]=!0,bl[8211]=!0,bl[8231]=!0;var Cl=function(t){function e(e,r,n,i){t.call(this,e,r),this.angle=n,void 0!==i&amp;&amp;(this.segment=i)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.clone=function(){return new e(this.x,this.y,this.angle,this.segment)},e}(i);function Ll(t,e){var r=e.expression;if(&quot;constant&quot;===r.kind)return{kind:&quot;constant&quot;,layoutSize:r.evaluate(new ii(t+1))};if(&quot;source&quot;===r.kind)return{kind:&quot;source&quot;};for(var n=r.zoomStops,i=r.interpolationType,a=0;a&lt;n.length&amp;&amp;n[a]&lt;=t;)a++;for(var o=a=Math.max(0,a-1);o&lt;n.length&amp;&amp;n[o]&lt;t+1;)o++;o=Math.min(n.length-1,o);var s=n[a],l=n[o];return&quot;composite&quot;===r.kind?{kind:&quot;composite&quot;,minZoom:s,maxZoom:l,interpolationType:i}:{kind:&quot;camera&quot;,minZoom:s,maxZoom:l,minSize:r.evaluate(new ii(s)),maxSize:r.evaluate(new ii(l)),interpolationType:i}}function Il(t,e,r){var n=e.uSize,i=r.lowerSize;return&quot;source&quot;===t.kind?i/128:&quot;composite&quot;===t.kind?Ue(i/128,r.upperSize/128,e.uSizeT):n}function Pl(t,e){var r=0,n=0;if(&quot;constant&quot;===t.kind)n=t.layoutSize;else if(&quot;source&quot;!==t.kind){var i=t.interpolationType,a=i?l(rr.interpolationFactor(i,e,t.minZoom,t.maxZoom),0,1):0;&quot;camera&quot;===t.kind?n=Ue(t.minSize,t.maxSize,a):r=a}return{uSizeT:r,uSize:n}}Dn(&quot;Anchor&quot;,Cl);var zl=Object.freeze({__proto__:null,getSizeData:Ll,evaluateSizeForFeature:Il,evaluateSizeForZoom:Pl,SIZE_PACK_FACTOR:128});function Ol(t,e,r,n,i){if(void 0===e.segment)return!0;for(var a=e,o=e.segment+1,s=0;s&gt;-r/2;){if(--o&lt;0)return!1;s-=t[o].dist(a),a=t[o]}s+=t[o].dist(t[o+1]),o++;for(var l=[],c=0;s&lt;r/2;){var u=t[o],f=t[o+1];if(!f)return!1;var h=t[o-1].angleTo(u)-u.angleTo(f);for(h=Math.abs((h+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:h}),c+=h;s-l[0].distance&gt;n;)c-=l.shift().angleDelta;if(c&gt;i)return!1;o++,s+=u.dist(f)}return!0}function Dl(t){for(var e=0,r=0;r&lt;t.length-1;r++)e+=t[r].dist(t[r+1]);return e}function Rl(t,e,r){return t?.6*e*r:0}function Fl(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function Bl(t,e,r,n,i,a){for(var o=Rl(r,i,a),s=Fl(r,n)*a,l=0,c=Dl(t)/2,u=0;u&lt;t.length-1;u++){var f=t[u],h=t[u+1],p=f.dist(h);if(l+p&gt;c){var d=(c-l)/p,g=Ue(f.x,h.x,d),m=Ue(f.y,h.y,d),v=new Cl(g,m,h.angleTo(f),u);return v._round(),!o||Ol(t,v,s,o,e)?v:void 0}l+=p}}function Nl(t,e,r,n,i,a,o,s,l){var c=Rl(n,a,o),u=Fl(n,i),f=u*o,h=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-f&lt;e/4&amp;&amp;(e=f+e/4),function t(e,r,n,i,a,o,s,l,c){for(var u=o/2,f=Dl(e),h=0,p=r-n,d=[],g=0;g&lt;e.length-1;g++){for(var m=e[g],v=e[g+1],y=m.dist(v),x=v.angleTo(m);p+n&lt;h+y;){var b=((p+=n)-h)/y,_=Ue(m.x,v.x,b),w=Ue(m.y,v.y,b);if(_&gt;=0&amp;&amp;_&lt;c&amp;&amp;w&gt;=0&amp;&amp;w&lt;c&amp;&amp;p-u&gt;=0&amp;&amp;p+u&lt;=f){var T=new Cl(_,w,x,g);T._round(),i&amp;&amp;!Ol(e,T,o,i,a)||d.push(T)}}h+=y}return l||d.length||s||(d=t(e,h/2,n,i,a,o,s,!0,c)),d}(t,h?e/2*s%e:(u/2+2*a)*o*s%e,e,c,r,f,h,!1,l)}function jl(t,e,r,n,a){for(var o=[],s=0;s&lt;t.length;s++)for(var l=t[s],c=void 0,u=0;u&lt;l.length-1;u++){var f=l[u],h=l[u+1];f.x&lt;e&amp;&amp;h.x&lt;e||(f.x&lt;e?f=new i(e,f.y+(e-f.x)/(h.x-f.x)*(h.y-f.y))._round():h.x&lt;e&amp;&amp;(h=new i(e,f.y+(e-f.x)/(h.x-f.x)*(h.y-f.y))._round()),f.y&lt;r&amp;&amp;h.y&lt;r||(f.y&lt;r?f=new i(f.x+(r-f.y)/(h.y-f.y)*(h.x-f.x),r)._round():h.y&lt;r&amp;&amp;(h=new i(f.x+(r-f.y)/(h.y-f.y)*(h.x-f.x),r)._round()),f.x&gt;=n&amp;&amp;h.x&gt;=n||(f.x&gt;=n?f=new i(n,f.y+(n-f.x)/(h.x-f.x)*(h.y-f.y))._round():h.x&gt;=n&amp;&amp;(h=new i(n,f.y+(n-f.x)/(h.x-f.x)*(h.y-f.y))._round()),f.y&gt;=a&amp;&amp;h.y&gt;=a||(f.y&gt;=a?f=new i(f.x+(a-f.y)/(h.y-f.y)*(h.x-f.x),a)._round():h.y&gt;=a&amp;&amp;(h=new i(f.x+(a-f.y)/(h.y-f.y)*(h.x-f.x),a)._round()),c&amp;&amp;f.equals(c[c.length-1])||o.push(c=[f]),c.push(h)))))}return o}function Ul(t,e,r,n){var a=[],o=t.image,s=o.pixelRatio,l=o.paddedRect.w-2,c=o.paddedRect.h-2,u=t.right-t.left,f=t.bottom-t.top,h=o.stretchX||[[0,l]],p=o.stretchY||[[0,c]],d=function(t,e){return t+e[1]-e[0]},g=h.reduce(d,0),m=p.reduce(d,0),v=l-g,y=c-m,x=0,b=g,_=0,w=m,T=0,k=v,M=0,A=y;if(o.content&amp;&amp;n){var S=o.content;x=Vl(h,0,S[0]),_=Vl(p,0,S[1]),b=Vl(h,S[0],S[2]),w=Vl(p,S[1],S[3]),T=S[0]-x,M=S[1]-_,k=S[2]-S[0]-b,A=S[3]-S[1]-w}var E=function(n,a,l,c){var h=Hl(n.stretch-x,b,u,t.left),p=Gl(n.fixed-T,k,n.stretch,g),d=Hl(a.stretch-_,w,f,t.top),v=Gl(a.fixed-M,A,a.stretch,m),y=Hl(l.stretch-x,b,u,t.left),S=Gl(l.fixed-T,k,l.stretch,g),E=Hl(c.stretch-_,w,f,t.top),C=Gl(c.fixed-M,A,c.stretch,m),L=new i(h,d),I=new i(y,d),P=new i(y,E),z=new i(h,E),O=new i(p/s,v/s),D=new i(S/s,C/s),R=e*Math.PI/180;if(R){var F=Math.sin(R),B=Math.cos(R),N=[B,-F,F,B];L._matMult(N),I._matMult(N),z._matMult(N),P._matMult(N)}var j=n.stretch+n.fixed,U=a.stretch+a.fixed;return{tl:L,tr:I,bl:z,br:P,tex:{x:o.paddedRect.x+1+j,y:o.paddedRect.y+1+U,w:l.stretch+l.fixed-j,h:c.stretch+c.fixed-U},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:O,pixelOffsetBR:D,minFontScaleX:k/s/u,minFontScaleY:A/s/f,isSDF:r}};if(n&amp;&amp;(o.stretchX||o.stretchY))for(var C=ql(h,v,g),L=ql(p,y,m),I=0;I&lt;C.length-1;I++)for(var P=C[I],z=C[I+1],O=0;O&lt;L.length-1;O++)a.push(E(P,L[O],z,L[O+1]));else a.push(E({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return a}function Vl(t,e,r){for(var n=0,i=0,a=t;i&lt;a.length;i+=1){var o=a[i];n+=Math.max(e,Math.min(r,o[1]))-Math.max(e,Math.min(r,o[0]))}return n}function ql(t,e,r){for(var n=[{fixed:-1,stretch:0}],i=0,a=t;i&lt;a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=n[n.length-1];n.push({fixed:s-c.stretch,stretch:c.stretch}),n.push({fixed:s-c.stretch,stretch:c.stretch+(l-s)})}return n.push({fixed:e+1,stretch:r}),n}function Hl(t,e,r,n){return t/e*r+n}function Gl(t,e,r,n){return t-e*r/n}var Yl=function(t,e,r,n,a,o,s,l,c,u){if(this.boxStartIndex=t.length,c){var f=o.top,h=o.bottom,p=o.collisionPadding;p&amp;&amp;(f-=p[1],h+=p[3]);var d=h-f;d&gt;0&amp;&amp;(d=Math.max(10,d),this.circleDiameter=d)}else{var g=o.top*s-l,m=o.bottom*s+l,v=o.left*s-l,y=o.right*s+l,x=o.collisionPadding;if(x&amp;&amp;(v-=x[0]*s,g-=x[1]*s,y+=x[2]*s,m+=x[3]*s),u){var b=new i(v,g),_=new i(y,g),w=new i(v,m),T=new i(y,m),k=u*Math.PI/180;b._rotate(k),_._rotate(k),w._rotate(k),T._rotate(k),v=Math.min(b.x,_.x,w.x,T.x),y=Math.max(b.x,_.x,w.x,T.x),g=Math.min(b.y,_.y,w.y,T.y),m=Math.max(b.y,_.y,w.y,T.y)}t.emplaceBack(e.x,e.y,v,g,y,m,r,n,a)}this.boxEndIndex=t.length},Wl=function(t,e){if(void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e=Xl),this.data=t,this.length=this.data.length,this.compare=e,this.length&gt;0)for(var r=(this.length&gt;&gt;1)-1;r&gt;=0;r--)this._down(r)};function Xl(t,e){return t&lt;e?-1:t&gt;e?1:0}function Zl(t,e,r){void 0===e&amp;&amp;(e=1),void 0===r&amp;&amp;(r=!1);for(var n=1/0,a=1/0,o=-1/0,s=-1/0,l=t[0],c=0;c&lt;l.length;c++){var u=l[c];(!c||u.x&lt;n)&amp;&amp;(n=u.x),(!c||u.y&lt;a)&amp;&amp;(a=u.y),(!c||u.x&gt;o)&amp;&amp;(o=u.x),(!c||u.y&gt;s)&amp;&amp;(s=u.y)}var f=Math.min(o-n,s-a),h=f/2,p=new Wl([],Jl);if(0===f)return new i(n,a);for(var d=n;d&lt;o;d+=f)for(var g=a;g&lt;s;g+=f)p.push(new Kl(d+h,g+h,h,t));for(var m=function(t){for(var e=0,r=0,n=0,i=t[0],a=0,o=i.length,s=o-1;a&lt;o;s=a++){var l=i[a],c=i[s],u=l.x*c.y-c.x*l.y;r+=(l.x+c.x)*u,n+=(l.y+c.y)*u,e+=3*u}return new Kl(r/e,n/e,0,t)}(t),v=p.length;p.length;){var y=p.pop();(y.d&gt;m.d||!m.d)&amp;&amp;(m=y,r&amp;&amp;console.log(&quot;found best %d after %d probes&quot;,Math.round(1e4*y.d)/1e4,v)),y.max-m.d&lt;=e||(p.push(new Kl(y.p.x-(h=y.h/2),y.p.y-h,h,t)),p.push(new Kl(y.p.x+h,y.p.y-h,h,t)),p.push(new Kl(y.p.x-h,y.p.y+h,h,t)),p.push(new Kl(y.p.x+h,y.p.y+h,h,t)),v+=4)}return r&amp;&amp;(console.log(&quot;num probes: &quot;+v),console.log(&quot;best distance: &quot;+m.d)),m.p}function Jl(t,e){return e.max-t.max}function Kl(t,e,r,n){this.p=new i(t,e),this.h=r,this.d=function(t,e){for(var r=!1,n=1/0,i=0;i&lt;e.length;i++)for(var a=e[i],o=0,s=a.length,l=s-1;o&lt;s;l=o++){var c=a[o],u=a[l];c.y&gt;t.y!=u.y&gt;t.y&amp;&amp;t.x&lt;(u.x-c.x)*(t.y-c.y)/(u.y-c.y)+c.x&amp;&amp;(r=!r),n=Math.min(n,Ga(t,c,u))}return(r?1:-1)*Math.sqrt(n)}(this.p,n),this.max=this.d+this.h*Math.SQRT2}Wl.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},Wl.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length&gt;0&amp;&amp;(this.data[0]=e,this._down(0)),t}},Wl.prototype.peek=function(){return this.data[0]},Wl.prototype._up=function(t){for(var e=this.data,r=this.compare,n=e[t];t&gt;0;){var i=t-1&gt;&gt;1,a=e[i];if(r(n,a)&gt;=0)break;e[t]=a,t=i}e[t]=n},Wl.prototype._down=function(t){for(var e=this.data,r=this.compare,n=this.length&gt;&gt;1,i=e[t];t&lt;n;){var a=1+(t&lt;&lt;1),o=e[a],s=a+1;if(s&lt;this.length&amp;&amp;r(e[s],o)&lt;0&amp;&amp;(a=s,o=e[s]),r(o,i)&gt;=0)break;e[t]=o,t=a}e[t]=i};var Ql=Number.POSITIVE_INFINITY;function $l(t,e){return e[1]!==Ql?function(t,e,r){var n=0,i=0;switch(e=Math.abs(e),r=Math.abs(r),t){case&quot;top-right&quot;:case&quot;top-left&quot;:case&quot;top&quot;:i=r-7;break;case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:case&quot;bottom&quot;:i=7-r}switch(t){case&quot;top-right&quot;:case&quot;bottom-right&quot;:case&quot;right&quot;:n=-e;break;case&quot;top-left&quot;:case&quot;bottom-left&quot;:case&quot;left&quot;:n=e}return[n,i]}(t,e[0],e[1]):function(t,e){var r=0,n=0;e&lt;0&amp;&amp;(e=0);var i=e/Math.sqrt(2);switch(t){case&quot;top-right&quot;:case&quot;top-left&quot;:n=i-7;break;case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:n=7-i;break;case&quot;bottom&quot;:n=7-e;break;case&quot;top&quot;:n=e-7}switch(t){case&quot;top-right&quot;:case&quot;bottom-right&quot;:r=-i;break;case&quot;top-left&quot;:case&quot;bottom-left&quot;:r=i;break;case&quot;left&quot;:r=e;break;case&quot;right&quot;:r=-e}return[r,n]}(t,e[0])}function tc(t){switch(t){case&quot;right&quot;:case&quot;top-right&quot;:case&quot;bottom-right&quot;:return&quot;right&quot;;case&quot;left&quot;:case&quot;top-left&quot;:case&quot;bottom-left&quot;:return&quot;left&quot;}return&quot;center&quot;}function ec(t,e,r,n,a,o,s,l,c,u,f,h,p,d,g){var m=function(t,e,r,n,a,o,s,l){for(var c=n.layout.get(&quot;text-rotate&quot;).evaluate(o,{})*Math.PI/180,u=[],f=0,h=e.positionedLines;f&lt;h.length;f+=1)for(var p=h[f],d=0,g=p.positionedGlyphs;d&lt;g.length;d+=1){var m=g[d];if(m.rect){var v=m.rect||{},y=4,x=!0,b=1,_=0,w=(a||l)&amp;&amp;m.vertical,T=m.metrics.advance*m.scale/2;if(l&amp;&amp;e.verticalizable&amp;&amp;(_=p.lineOffset/2-(m.imageName?-(24-m.metrics.width*m.scale)/2:24*(m.scale-1))),m.imageName){var k=s[m.imageName];x=k.sdf,y=1/(b=k.pixelRatio)}var M=a?[m.x+T,m.y]:[0,0],A=a?[0,0]:[m.x+T+r[0],m.y+r[1]-_],S=[0,0];w&amp;&amp;(S=A,A=[0,0]);var E=(m.metrics.left-y)*m.scale-T+A[0],C=(-m.metrics.top-y)*m.scale+A[1],L=E+v.w*m.scale/b,I=C+v.h*m.scale/b,P=new i(E,C),z=new i(L,C),O=new i(E,I),D=new i(L,I);if(w){var R=new i(-T,T- -17),F=-Math.PI/2,B=12-T,N=new i(22-B,-(m.imageName?B:0)),j=new(Function.prototype.bind.apply(i,[null].concat(S)));P._rotateAround(F,R)._add(N)._add(j),z._rotateAround(F,R)._add(N)._add(j),O._rotateAround(F,R)._add(N)._add(j),D._rotateAround(F,R)._add(N)._add(j)}if(c){var U=Math.sin(c),V=Math.cos(c),q=[V,-U,U,V];P._matMult(q),z._matMult(q),O._matMult(q),D._matMult(q)}var H=new i(0,0),G=new i(0,0);u.push({tl:P,tr:z,bl:O,br:D,tex:v,writingMode:e.writingMode,glyphOffset:M,sectionIndex:m.sectionIndex,isSDF:x,pixelOffsetTL:H,pixelOffsetBR:G,minFontScaleX:0,minFontScaleY:0})}}return u}(0,r,l,a,o,s,n,t.allowVerticalPlacement),v=t.textSizeData,y=null;&quot;source&quot;===v.kind?(y=[128*a.layout.get(&quot;text-size&quot;).evaluate(s,{})])[0]&gt;32640&amp;&amp;_(t.layerIds[0]+': Value for &quot;text-size&quot; is &gt;= 255. Reduce your &quot;text-size&quot;.'):&quot;composite&quot;===v.kind&amp;&amp;((y=[128*d.compositeTextSizes[0].evaluate(s,{},g),128*d.compositeTextSizes[1].evaluate(s,{},g)])[0]&gt;32640||y[1]&gt;32640)&amp;&amp;_(t.layerIds[0]+': Value for &quot;text-size&quot; is &gt;= 255. Reduce your &quot;text-size&quot;.'),t.addSymbols(t.text,m,y,l,o,s,u,e,c.lineStartIndex,c.lineLength,p,g);for(var x=0,b=f;x&lt;b.length;x+=1)h[b[x]]=t.text.placedSymbolArray.length-1;return 4*m.length}function rc(t){for(var e in t)return t[e];return null}function nc(t,e,r,n){var i=t.compareText;if(e in i){for(var a=i[e],o=a.length-1;o&gt;=0;o--)if(n.dist(a[o])&lt;r)return!0}else i[e]=[];return i[e].push(n),!1}var ic=gs.VectorTileFeature.types,ac=[{name:&quot;a_fade_opacity&quot;,components:1,type:&quot;Uint8&quot;,offset:0}];function oc(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=s?Math.min(32640,Math.round(s[0])):0,d=s?Math.min(32640,Math.round(s[1])):0;t.emplaceBack(e,r,Math.round(32*n),Math.round(32*i),a,o,(p&lt;&lt;1)+(l?1:0),d,16*c,16*u,256*f,256*h)}function sc(t,e,r){t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r)}function lc(t){for(var e=0,r=t.sections;e&lt;r.length;e+=1)if(Xn(r[e].text))return!0;return!1}var cc=function(t){this.layoutVertexArray=new Li,this.indexArray=new Fi,this.programConfigurations=t,this.segments=new ia,this.dynamicLayoutVertexArray=new Ii,this.opacityVertexArray=new Pi,this.placedSymbolArray=new Ji};cc.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&amp;&amp;0===this.indexArray.length&amp;&amp;0===this.dynamicLayoutVertexArray.length&amp;&amp;0===this.opacityVertexArray.length},cc.prototype.upload=function(t,e,r,n){this.isEmpty()||(r&amp;&amp;(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ds.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,Rs.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,ac,!0),this.opacityVertexBuffer.itemSize=1),(r||n)&amp;&amp;this.programConfigurations.upload(t))},cc.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},Dn(&quot;SymbolBuffers&quot;,cc);var uc=function(t,e,r){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new r,this.segments=new ia,this.collisionVertexArray=new Ri};uc.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,Fs.members,!0)},uc.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},Dn(&quot;CollisionBuffers&quot;,uc);var fc=function(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=eo([]),this.placementViewportMatrix=eo([]);var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Ll(this.zoom,e[&quot;text-size&quot;]),this.iconSizeData=Ll(this.zoom,e[&quot;icon-size&quot;]);var r=this.layers[0].layout,n=r.get(&quot;symbol-sort-key&quot;),i=r.get(&quot;symbol-z-order&quot;);this.sortFeaturesByKey=&quot;viewport-y&quot;!==i&amp;&amp;void 0!==n.constantOr(1),this.sortFeaturesByY=(&quot;viewport-y&quot;===i||&quot;auto&quot;===i&amp;&amp;!this.sortFeaturesByKey)&amp;&amp;(r.get(&quot;text-allow-overlap&quot;)||r.get(&quot;icon-allow-overlap&quot;)||r.get(&quot;text-ignore-placement&quot;)||r.get(&quot;icon-ignore-placement&quot;)),&quot;point&quot;===r.get(&quot;symbol-placement&quot;)&amp;&amp;(this.writingModes=r.get(&quot;text-writing-mode&quot;).map((function(t){return gl[t]}))),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id})),this.sourceID=t.sourceID};fc.prototype.createArrays=function(){this.text=new cc(new Ia(Ds.members,this.layers,this.zoom,(function(t){return/^text/.test(t)}))),this.icon=new cc(new Ia(Ds.members,this.layers,this.zoom,(function(t){return/^icon/.test(t)}))),this.glyphOffsetArray=new $i,this.lineVertexArray=new ta,this.symbolInstances=new Qi},fc.prototype.calculateGlyphDependencies=function(t,e,r,n,i){for(var a=0;a&lt;t.length;a++)if(e[t.charCodeAt(a)]=!0,(r||n)&amp;&amp;i){var o=Us[t.charAt(a)];o&amp;&amp;(e[o.charCodeAt(0)]=!0)}},fc.prototype.populate=function(t,e,r){var n=this.layers[0],i=n.layout,a=i.get(&quot;text-font&quot;),o=i.get(&quot;text-field&quot;),s=i.get(&quot;icon-image&quot;),l=(&quot;constant&quot;!==o.value.kind||o.value.value instanceof te&amp;&amp;!o.value.value.isEmpty()||o.value.value.toString().length&gt;0)&amp;&amp;(&quot;constant&quot;!==a.value.kind||a.value.value.length&gt;0),c=&quot;constant&quot;!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length&gt;0,u=i.get(&quot;symbol-sort-key&quot;);if(this.features=[],l||c){for(var f=e.iconDependencies,h=e.glyphDependencies,p=e.availableImages,d=new ii(this.zoom),g=0,m=t;g&lt;m.length;g+=1){var v=m[g],y=v.feature,x=v.id,b=v.index,_=v.sourceLayerIndex,w=n._featureFilter.needGeometry,T={type:y.type,id:x,properties:y.properties,geometry:w?Da(y):[]};if(n._featureFilter.filter(d,T,r)){w||(T.geometry=Da(y));var k=void 0;if(l){var M=n.getValueAndResolveTokens(&quot;text-field&quot;,T,r,p),A=te.factory(M);lc(A)&amp;&amp;(this.hasRTLText=!0),(!this.hasRTLText||&quot;unavailable&quot;===ei()||this.hasRTLText&amp;&amp;ni.isParsed())&amp;&amp;(k=js(A,n,T))}var S=void 0;if(c){var E=n.getValueAndResolveTokens(&quot;icon-image&quot;,T,r,p);S=E instanceof ee?E:ee.fromString(E)}if(k||S){var C=this.sortFeaturesByKey?u.evaluate(T,{},r):void 0,L={id:x,text:k,icon:S,index:b,sourceLayerIndex:_,geometry:Da(y),properties:y.properties,type:ic[y.type],sortKey:C};if(this.features.push(L),S&amp;&amp;(f[S.name]=!0),k){var I=a.evaluate(T,{},r).join(&quot;,&quot;),P=&quot;map&quot;===i.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==i.get(&quot;symbol-placement&quot;);this.allowVerticalPlacement=this.writingModes&amp;&amp;this.writingModes.indexOf(gl.vertical)&gt;=0;for(var z=0,O=k.sections;z&lt;O.length;z+=1){var D=O[z];if(D.image)f[D.image.name]=!0;else{var R=qn(k.toString()),F=D.fontStack||I,B=h[F]=h[F]||{};this.calculateGlyphDependencies(D.text,B,P,this.allowVerticalPlacement,R)}}}}}}&quot;line&quot;===i.get(&quot;symbol-placement&quot;)&amp;&amp;(this.features=function(t){var e={},r={},n=[],i=0;function a(e){n.push(t[e]),i++}function o(t,e,i){var a=r[t];return delete r[t],r[e]=a,n[a].geometry[0].pop(),n[a].geometry[0]=n[a].geometry[0].concat(i[0]),a}function s(t,r,i){var a=e[r];return delete e[r],e[t]=a,n[a].geometry[0].shift(),n[a].geometry[0]=i[0].concat(n[a].geometry[0]),a}function l(t,e,r){var n=r?e[0][e[0].length-1]:e[0][0];return t+&quot;:&quot;+n.x+&quot;:&quot;+n.y}for(var c=0;c&lt;t.length;c++){var u=t[c],f=u.geometry,h=u.text?u.text.toString():null;if(h){var p=l(h,f),d=l(h,f,!0);if(p in r&amp;&amp;d in e&amp;&amp;r[p]!==e[d]){var g=s(p,d,f),m=o(p,d,n[g].geometry);delete e[p],delete r[d],r[l(h,n[m].geometry,!0)]=m,n[g].geometry=null}else p in r?o(p,d,f):d in e?s(p,d,f):(a(c),e[p]=i-1,r[d]=i-1)}else a(c)}return n.filter((function(t){return t.geometry}))}(this.features)),this.sortFeaturesByKey&amp;&amp;this.features.sort((function(t,e){return t.sortKey-e.sortKey}))}},fc.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,r),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,r))},fc.prototype.isEmpty=function(){return 0===this.symbolInstances.length&amp;&amp;!this.hasRTLText},fc.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},fc.prototype.upload=function(t){!this.uploaded&amp;&amp;this.hasDebugData()&amp;&amp;(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},fc.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},fc.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&amp;&amp;this.destroyDebugData()},fc.prototype.addToLineVertexArray=function(t,e){var r=this.lineVertexArray.length;if(void 0!==t.segment){for(var n=t.dist(e[t.segment+1]),i=t.dist(e[t.segment]),a={},o=t.segment+1;o&lt;e.length;o++)a[o]={x:e[o].x,y:e[o].y,tileUnitDistanceFromAnchor:n},o&lt;e.length-1&amp;&amp;(n+=e[o+1].dist(e[o]));for(var s=t.segment||0;s&gt;=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s&gt;0&amp;&amp;(i+=e[s-1].dist(e[s]));for(var l=0;l&lt;e.length;l++){var c=a[l];this.lineVertexArray.emplaceBack(c.x,c.y,c.tileUnitDistanceFromAnchor)}}return{lineStartIndex:r,lineLength:this.lineVertexArray.length-r}},fc.prototype.addSymbols=function(t,e,r,n,i,a,o,s,l,c,u,f){for(var h=t.indexArray,p=t.layoutVertexArray,d=t.segments.prepareSegment(4*e.length,p,h,a.sortKey),g=this.glyphOffsetArray.length,m=d.vertexLength,v=this.allowVerticalPlacement&amp;&amp;o===gl.vertical?Math.PI/2:0,y=a.text&amp;&amp;a.text.sections,x=0;x&lt;e.length;x++){var b=e[x],_=b.tl,w=b.tr,T=b.bl,k=b.br,M=b.tex,A=b.pixelOffsetTL,S=b.pixelOffsetBR,E=b.minFontScaleX,C=b.minFontScaleY,L=b.glyphOffset,I=b.isSDF,P=b.sectionIndex,z=d.vertexLength,O=L[1];oc(p,s.x,s.y,_.x,O+_.y,M.x,M.y,r,I,A.x,A.y,E,C),oc(p,s.x,s.y,w.x,O+w.y,M.x+M.w,M.y,r,I,S.x,A.y,E,C),oc(p,s.x,s.y,T.x,O+T.y,M.x,M.y+M.h,r,I,A.x,S.y,E,C),oc(p,s.x,s.y,k.x,O+k.y,M.x+M.w,M.y+M.h,r,I,S.x,S.y,E,C),sc(t.dynamicLayoutVertexArray,s,v),h.emplaceBack(z,z+1,z+2),h.emplaceBack(z+1,z+2,z+3),d.vertexLength+=4,d.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(L[0]),x!==e.length-1&amp;&amp;P===e[x+1].sectionIndex||t.programConfigurations.populatePaintArrays(p.length,a,a.index,{},f,y&amp;&amp;y[P])}t.placedSymbolArray.emplaceBack(s.x,s.y,g,this.glyphOffsetArray.length-g,m,l,c,s.segment,r?r[0]:0,r?r[1]:0,n[0],n[1],o,0,!1,0,u)},fc.prototype._addCollisionDebugVertex=function(t,e,r,n,i,a){return e.emplaceBack(0,0),t.emplaceBack(r.x,r.y,n,i,Math.round(a.x),Math.round(a.y))},fc.prototype.addCollisionDebugVertices=function(t,e,r,n,a,o,s){var l=a.segments.prepareSegment(4,a.layoutVertexArray,a.indexArray),c=l.vertexLength,u=a.layoutVertexArray,f=a.collisionVertexArray,h=s.anchorX,p=s.anchorY;this._addCollisionDebugVertex(u,f,o,h,p,new i(t,e)),this._addCollisionDebugVertex(u,f,o,h,p,new i(r,e)),this._addCollisionDebugVertex(u,f,o,h,p,new i(r,n)),this._addCollisionDebugVertex(u,f,o,h,p,new i(t,n)),l.vertexLength+=4;var d=a.indexArray;d.emplaceBack(c,c+1),d.emplaceBack(c+1,c+2),d.emplaceBack(c+2,c+3),d.emplaceBack(c+3,c),l.primitiveLength+=4},fc.prototype.addDebugCollisionBoxes=function(t,e,r,n){for(var i=t;i&lt;e;i++){var a=this.collisionBoxArray.get(i);this.addCollisionDebugVertices(a.x1,a.y1,a.x2,a.y2,n?this.textCollisionBox:this.iconCollisionBox,a.anchorPoint,r)}},fc.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&amp;&amp;this.destroyDebugData(),this.textCollisionBox=new uc(Oi,Bs.members,qi),this.iconCollisionBox=new uc(Oi,Bs.members,qi);for(var t=0;t&lt;this.symbolInstances.length;t++){var e=this.symbolInstances.get(t);this.addDebugCollisionBoxes(e.textBoxStartIndex,e.textBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.verticalTextBoxStartIndex,e.verticalTextBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.iconBoxStartIndex,e.iconBoxEndIndex,e,!1),this.addDebugCollisionBoxes(e.verticalIconBoxStartIndex,e.verticalIconBoxEndIndex,e,!1)}},fc.prototype._deserializeCollisionBoxesForSymbol=function(t,e,r,n,i,a,o,s,l){for(var c={},u=e;u&lt;r;u++){var f=t.get(u);c.textBox={x1:f.x1,y1:f.y1,x2:f.x2,y2:f.y2,anchorPointX:f.anchorPointX,anchorPointY:f.anchorPointY},c.textFeatureIndex=f.featureIndex;break}for(var h=n;h&lt;i;h++){var p=t.get(h);c.verticalTextBox={x1:p.x1,y1:p.y1,x2:p.x2,y2:p.y2,anchorPointX:p.anchorPointX,anchorPointY:p.anchorPointY},c.verticalTextFeatureIndex=p.featureIndex;break}for(var d=a;d&lt;o;d++){var g=t.get(d);c.iconBox={x1:g.x1,y1:g.y1,x2:g.x2,y2:g.y2,anchorPointX:g.anchorPointX,anchorPointY:g.anchorPointY},c.iconFeatureIndex=g.featureIndex;break}for(var m=s;m&lt;l;m++){var v=t.get(m);c.verticalIconBox={x1:v.x1,y1:v.y1,x2:v.x2,y2:v.y2,anchorPointX:v.anchorPointX,anchorPointY:v.anchorPointY},c.verticalIconFeatureIndex=v.featureIndex;break}return c},fc.prototype.deserializeCollisionBoxes=function(t){this.collisionArrays=[];for(var e=0;e&lt;this.symbolInstances.length;e++){var r=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,r.textBoxStartIndex,r.textBoxEndIndex,r.verticalTextBoxStartIndex,r.verticalTextBoxEndIndex,r.iconBoxStartIndex,r.iconBoxEndIndex,r.verticalIconBoxStartIndex,r.verticalIconBoxEndIndex))}},fc.prototype.hasTextData=function(){return this.text.segments.get().length&gt;0},fc.prototype.hasIconData=function(){return this.icon.segments.get().length&gt;0},fc.prototype.hasDebugData=function(){return this.textCollisionBox&amp;&amp;this.iconCollisionBox},fc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&amp;&amp;this.textCollisionBox.segments.get().length&gt;0},fc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&amp;&amp;this.iconCollisionBox.segments.get().length&gt;0},fc.prototype.addIndicesForPlacedSymbol=function(t,e){for(var r=t.placedSymbolArray.get(e),n=r.vertexStartIndex+4*r.numGlyphs,i=r.vertexStartIndex;i&lt;n;i+=4)t.indexArray.emplaceBack(i,i+1,i+2),t.indexArray.emplaceBack(i+1,i+2,i+3)},fc.prototype.getSortedSymbolIndexes=function(t){if(this.sortedAngle===t&amp;&amp;void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var e=Math.sin(t),r=Math.cos(t),n=[],i=[],a=[],o=0;o&lt;this.symbolInstances.length;++o){a.push(o);var s=this.symbolInstances.get(o);n.push(0|Math.round(e*s.anchorX+r*s.anchorY)),i.push(s.featureIndex)}return a.sort((function(t,e){return n[t]-n[e]||i[e]-i[t]})),a},fc.prototype.addToSortKeyRanges=function(t,e){var r=this.sortKeyRanges[this.sortKeyRanges.length-1];r&amp;&amp;r.sortKey===e?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})},fc.prototype.sortFeatures=function(t){var e=this;if(this.sortFeaturesByY&amp;&amp;this.sortedAngle!==t&amp;&amp;!(this.text.segments.get().length&gt;1||this.icon.segments.get().length&gt;1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var r=0,n=this.symbolInstanceIndexes;r&lt;n.length;r+=1){var i=this.symbolInstances.get(n[r]);this.featureSortOrder.push(i.featureIndex),[i.rightJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.leftJustifiedTextSymbolIndex].forEach((function(t,r,n){t&gt;=0&amp;&amp;n.indexOf(t)===r&amp;&amp;e.addIndicesForPlacedSymbol(e.text,t)})),i.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.text,i.verticalPlacedTextSymbolIndex),i.placedIconSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.icon,i.placedIconSymbolIndex),i.verticalPlacedIconSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.icon,i.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&amp;&amp;this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&amp;&amp;this.icon.indexBuffer.updateData(this.icon.indexArray)}},Dn(&quot;SymbolBucket&quot;,fc,{omit:[&quot;layers&quot;,&quot;collisionBoxArray&quot;,&quot;features&quot;,&quot;compareText&quot;]}),fc.MAX_GLYPHS=65535,fc.addDynamicAttributes=sc;var hc=new yi({&quot;symbol-placement&quot;:new pi(At.layout_symbol[&quot;symbol-placement&quot;]),&quot;symbol-spacing&quot;:new pi(At.layout_symbol[&quot;symbol-spacing&quot;]),&quot;symbol-avoid-edges&quot;:new pi(At.layout_symbol[&quot;symbol-avoid-edges&quot;]),&quot;symbol-sort-key&quot;:new di(At.layout_symbol[&quot;symbol-sort-key&quot;]),&quot;symbol-z-order&quot;:new pi(At.layout_symbol[&quot;symbol-z-order&quot;]),&quot;icon-allow-overlap&quot;:new pi(At.layout_symbol[&quot;icon-allow-overlap&quot;]),&quot;icon-ignore-placement&quot;:new pi(At.layout_symbol[&quot;icon-ignore-placement&quot;]),&quot;icon-optional&quot;:new pi(At.layout_symbol[&quot;icon-optional&quot;]),&quot;icon-rotation-alignment&quot;:new pi(At.layout_symbol[&quot;icon-rotation-alignment&quot;]),&quot;icon-size&quot;:new di(At.layout_symbol[&quot;icon-size&quot;]),&quot;icon-text-fit&quot;:new pi(At.layout_symbol[&quot;icon-text-fit&quot;]),&quot;icon-text-fit-padding&quot;:new pi(At.layout_symbol[&quot;icon-text-fit-padding&quot;]),&quot;icon-image&quot;:new di(At.layout_symbol[&quot;icon-image&quot;]),&quot;icon-rotate&quot;:new di(At.layout_symbol[&quot;icon-rotate&quot;]),&quot;icon-padding&quot;:new pi(At.layout_symbol[&quot;icon-padding&quot;]),&quot;icon-keep-upright&quot;:new pi(At.layout_symbol[&quot;icon-keep-upright&quot;]),&quot;icon-offset&quot;:new di(At.layout_symbol[&quot;icon-offset&quot;]),&quot;icon-anchor&quot;:new di(At.layout_symbol[&quot;icon-anchor&quot;]),&quot;icon-pitch-alignment&quot;:new pi(At.layout_symbol[&quot;icon-pitch-alignment&quot;]),&quot;text-pitch-alignment&quot;:new pi(At.layout_symbol[&quot;text-pitch-alignment&quot;]),&quot;text-rotation-alignment&quot;:new pi(At.layout_symbol[&quot;text-rotation-alignment&quot;]),&quot;text-field&quot;:new di(At.layout_symbol[&quot;text-field&quot;]),&quot;text-font&quot;:new di(At.layout_symbol[&quot;text-font&quot;]),&quot;text-size&quot;:new di(At.layout_symbol[&quot;text-size&quot;]),&quot;text-max-width&quot;:new di(At.layout_symbol[&quot;text-max-width&quot;]),&quot;text-line-height&quot;:new pi(At.layout_symbol[&quot;text-line-height&quot;]),&quot;text-letter-spacing&quot;:new di(At.layout_symbol[&quot;text-letter-spacing&quot;]),&quot;text-justify&quot;:new di(At.layout_symbol[&quot;text-justify&quot;]),&quot;text-radial-offset&quot;:new di(At.layout_symbol[&quot;text-radial-offset&quot;]),&quot;text-variable-anchor&quot;:new pi(At.layout_symbol[&quot;text-variable-anchor&quot;]),&quot;text-anchor&quot;:new di(At.layout_symbol[&quot;text-anchor&quot;]),&quot;text-max-angle&quot;:new pi(At.layout_symbol[&quot;text-max-angle&quot;]),&quot;text-writing-mode&quot;:new pi(At.layout_symbol[&quot;text-writing-mode&quot;]),&quot;text-rotate&quot;:new di(At.layout_symbol[&quot;text-rotate&quot;]),&quot;text-padding&quot;:new pi(At.layout_symbol[&quot;text-padding&quot;]),&quot;text-keep-upright&quot;:new pi(At.layout_symbol[&quot;text-keep-upright&quot;]),&quot;text-transform&quot;:new di(At.layout_symbol[&quot;text-transform&quot;]),&quot;text-offset&quot;:new di(At.layout_symbol[&quot;text-offset&quot;]),&quot;text-allow-overlap&quot;:new pi(At.layout_symbol[&quot;text-allow-overlap&quot;]),&quot;text-ignore-placement&quot;:new pi(At.layout_symbol[&quot;text-ignore-placement&quot;]),&quot;text-optional&quot;:new pi(At.layout_symbol[&quot;text-optional&quot;])}),pc={paint:new yi({&quot;icon-opacity&quot;:new di(At.paint_symbol[&quot;icon-opacity&quot;]),&quot;icon-color&quot;:new di(At.paint_symbol[&quot;icon-color&quot;]),&quot;icon-halo-color&quot;:new di(At.paint_symbol[&quot;icon-halo-color&quot;]),&quot;icon-halo-width&quot;:new di(At.paint_symbol[&quot;icon-halo-width&quot;]),&quot;icon-halo-blur&quot;:new di(At.paint_symbol[&quot;icon-halo-blur&quot;]),&quot;icon-translate&quot;:new pi(At.paint_symbol[&quot;icon-translate&quot;]),&quot;icon-translate-anchor&quot;:new pi(At.paint_symbol[&quot;icon-translate-anchor&quot;]),&quot;text-opacity&quot;:new di(At.paint_symbol[&quot;text-opacity&quot;]),&quot;text-color&quot;:new di(At.paint_symbol[&quot;text-color&quot;],{runtimeType:Bt,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),&quot;text-halo-color&quot;:new di(At.paint_symbol[&quot;text-halo-color&quot;]),&quot;text-halo-width&quot;:new di(At.paint_symbol[&quot;text-halo-width&quot;]),&quot;text-halo-blur&quot;:new di(At.paint_symbol[&quot;text-halo-blur&quot;]),&quot;text-translate&quot;:new pi(At.paint_symbol[&quot;text-translate&quot;]),&quot;text-translate-anchor&quot;:new pi(At.paint_symbol[&quot;text-translate-anchor&quot;])}),layout:hc},dc=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Ot,this.defaultValue=t};dc.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&amp;&amp;e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&amp;&amp;t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},dc.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},dc.prototype.outputDefined=function(){return!1},dc.prototype.serialize=function(){return null},Dn(&quot;FormatSectionOverride&quot;,dc,{omit:[&quot;defaultValue&quot;]});var gc=function(t){function e(e){t.call(this,e,pc)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.recalculate=function(e,r){if(t.prototype.recalculate.call(this,e,r),&quot;auto&quot;===this.layout.get(&quot;icon-rotation-alignment&quot;)&amp;&amp;(this.layout._values[&quot;icon-rotation-alignment&quot;]=&quot;point&quot;!==this.layout.get(&quot;symbol-placement&quot;)?&quot;map&quot;:&quot;viewport&quot;),&quot;auto&quot;===this.layout.get(&quot;text-rotation-alignment&quot;)&amp;&amp;(this.layout._values[&quot;text-rotation-alignment&quot;]=&quot;point&quot;!==this.layout.get(&quot;symbol-placement&quot;)?&quot;map&quot;:&quot;viewport&quot;),&quot;auto&quot;===this.layout.get(&quot;text-pitch-alignment&quot;)&amp;&amp;(this.layout._values[&quot;text-pitch-alignment&quot;]=this.layout.get(&quot;text-rotation-alignment&quot;)),&quot;auto&quot;===this.layout.get(&quot;icon-pitch-alignment&quot;)&amp;&amp;(this.layout._values[&quot;icon-pitch-alignment&quot;]=this.layout.get(&quot;icon-rotation-alignment&quot;)),&quot;point&quot;===this.layout.get(&quot;symbol-placement&quot;)){var n=this.layout.get(&quot;text-writing-mode&quot;);if(n){for(var i=[],a=0,o=n;a&lt;o.length;a+=1){var s=o[a];i.indexOf(s)&lt;0&amp;&amp;i.push(s)}this.layout._values[&quot;text-writing-mode&quot;]=i}else this.layout._values[&quot;text-writing-mode&quot;]=[&quot;horizontal&quot;]}this._setPaintOverrides()},e.prototype.getValueAndResolveTokens=function(t,e,r,n){var i=this.layout.get(t).evaluate(e,{},r,n),a=this._unevaluatedLayout._values[t];return a.isDataDriven()||Vr(a.value)||!i?i:function(t,e){return e.replace(/{([^{}]+)}/g,(function(e,r){return r in t?String(t[r]):&quot;&quot;}))}(e.properties,i)},e.prototype.createBucket=function(t){return new fc(t)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype._setPaintOverrides=function(){for(var t=0,r=pc.paint.overridableProperties;t&lt;r.length;t+=1){var n=r[t];if(e.hasPaintOverride(this.layout,n)){var i,a=this.paint.get(n),o=new dc(a),s=new Ur(o,a.property.specification);i=&quot;constant&quot;===a.value.kind||&quot;source&quot;===a.value.kind?new Hr(&quot;source&quot;,s):new Gr(&quot;composite&quot;,s,a.value.zoomStops,a.value._interpolationType),this.paint._values[n]=new fi(a.property,i,a.parameters)}}},e.prototype._handleOverridablePaintPropertyUpdate=function(t,r,n){return!(!this.layout||r.isDataDriven()||n.isDataDriven())&amp;&amp;e.hasPaintOverride(this.layout,t)},e.hasPaintOverride=function(t,e){var r=t.get(&quot;text-field&quot;),n=pc.paint.properties[e],i=!1,a=function(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(n.overrides&amp;&amp;n.overrides.hasOverride(r[e]))return void(i=!0)};if(&quot;constant&quot;===r.value.kind&amp;&amp;r.value.value instanceof te)a(r.value.value.sections);else if(&quot;source&quot;===r.value.kind){var o=function(t){i||(t instanceof oe&amp;&amp;ie(t.value)===Vt?a(t.value.sections):t instanceof ue?a(t.sections):t.eachChild(o))},s=r.value;s._styleExpression&amp;&amp;o(s._styleExpression.expression)}return i},e}(xi),mc={paint:new yi({&quot;background-color&quot;:new pi(At.paint_background[&quot;background-color&quot;]),&quot;background-pattern&quot;:new mi(At.paint_background[&quot;background-pattern&quot;]),&quot;background-opacity&quot;:new pi(At.paint_background[&quot;background-opacity&quot;])})},vc=function(t){function e(e){t.call(this,e,mc)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(xi),yc={paint:new yi({&quot;raster-opacity&quot;:new pi(At.paint_raster[&quot;raster-opacity&quot;]),&quot;raster-hue-rotate&quot;:new pi(At.paint_raster[&quot;raster-hue-rotate&quot;]),&quot;raster-brightness-min&quot;:new pi(At.paint_raster[&quot;raster-brightness-min&quot;]),&quot;raster-brightness-max&quot;:new pi(At.paint_raster[&quot;raster-brightness-max&quot;]),&quot;raster-saturation&quot;:new pi(At.paint_raster[&quot;raster-saturation&quot;]),&quot;raster-contrast&quot;:new pi(At.paint_raster[&quot;raster-contrast&quot;]),&quot;raster-resampling&quot;:new pi(At.paint_raster[&quot;raster-resampling&quot;]),&quot;raster-fade-duration&quot;:new pi(At.paint_raster[&quot;raster-fade-duration&quot;])})},xc=function(t){function e(e){t.call(this,e,yc)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(xi),bc=function(t){function e(e){t.call(this,e,{}),this.implementation=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.is3D=function(){return&quot;3d&quot;===this.implementation.renderingMode},e.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},e.prototype.recalculate=function(){},e.prototype.updateTransitions=function(){},e.prototype.hasTransition=function(){},e.prototype.serialize=function(){},e.prototype.onAdd=function(t){this.implementation.onAdd&amp;&amp;this.implementation.onAdd(t,t.painter.context.gl)},e.prototype.onRemove=function(t){this.implementation.onRemove&amp;&amp;this.implementation.onRemove(t,t.painter.context.gl)},e}(xi),_c={circle:oo,heatmap:vo,hillshade:xo,fill:as,&quot;fill-extrusion&quot;:ws,line:zs,symbol:gc,background:vc,raster:xc},wc=self.HTMLImageElement,Tc=self.HTMLCanvasElement,kc=self.HTMLVideoElement,Mc=self.ImageData,Ac=self.ImageBitmap,Sc=function(t,e,r,n){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this.update(e,n)};Sc.prototype.update=function(t,e,r){var n=t.width,i=t.height,a=!(this.size&amp;&amp;this.size[0]===n&amp;&amp;this.size[1]===i||r),o=this.context,s=o.gl;if(this.useMipmap=Boolean(e&amp;&amp;e.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1),o.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&amp;&amp;(!e||!1!==e.premultiply)),a)this.size=[n,i],t instanceof wc||t instanceof Tc||t instanceof kc||t instanceof Mc||Ac&amp;&amp;t instanceof Ac?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,t):s.texImage2D(s.TEXTURE_2D,0,this.format,n,i,0,this.format,s.UNSIGNED_BYTE,t.data);else{var l=r||{x:0,y:0},c=l.x,u=l.y;t instanceof wc||t instanceof Tc||t instanceof kc||t instanceof Mc||Ac&amp;&amp;t instanceof Ac?s.texSubImage2D(s.TEXTURE_2D,0,c,u,s.RGBA,s.UNSIGNED_BYTE,t):s.texSubImage2D(s.TEXTURE_2D,0,c,u,n,i,s.RGBA,s.UNSIGNED_BYTE,t.data)}this.useMipmap&amp;&amp;this.isSizePowerOfTwo()&amp;&amp;s.generateMipmap(s.TEXTURE_2D)},Sc.prototype.bind=function(t,e,r){var n=this.context.gl;n.bindTexture(n.TEXTURE_2D,this.texture),r!==n.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(r=n.LINEAR),t!==this.filter&amp;&amp;(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,r||t),this.filter=t),e!==this.wrap&amp;&amp;(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)},Sc.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&amp;&amp;Math.log(this.size[0])/Math.LN2%1==0},Sc.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var Ec=function(t){var e=this;this._callback=t,this._triggered=!1,&quot;undefined&quot;!=typeof MessageChannel&amp;&amp;(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){e._triggered=!1,e._callback()})};Ec.prototype.trigger=function(){var t=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((function(){t._triggered=!1,t._callback()}),0))},Ec.prototype.remove=function(){delete this._channel,this._callback=function(){}};var Cc=function(t,e,r){this.target=t,this.parent=e,this.mapId=r,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},g([&quot;receive&quot;,&quot;process&quot;],this),this.invoker=new Ec(this.process),this.target.addEventListener(&quot;message&quot;,this.receive,!1),this.globalScope=k()?t:self};function Lc(t,e,r){var n=2*Math.PI*6378137/256/Math.pow(2,r);return[t*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}Cc.prototype.send=function(t,e,r,n,i){var a=this;void 0===i&amp;&amp;(i=!1);var o=Math.round(1e18*Math.random()).toString(36).substring(0,10);r&amp;&amp;(this.callbacks[o]=r);var s=S(this.globalScope)?void 0:[];return this.target.postMessage({id:o,type:t,hasCallback:!!r,targetMapId:n,mustQueue:i,sourceMapId:this.mapId,data:Nn(e,s)},s),{cancel:function(){r&amp;&amp;delete a.callbacks[o],a.target.postMessage({id:o,type:&quot;&lt;cancel&gt;&quot;,targetMapId:n,sourceMapId:a.mapId})}}},Cc.prototype.receive=function(t){var e=t.data,r=e.id;if(r&amp;&amp;(!e.targetMapId||this.mapId===e.targetMapId))if(&quot;&lt;cancel&gt;&quot;===e.type){delete this.tasks[r];var n=this.cancelCallbacks[r];delete this.cancelCallbacks[r],n&amp;&amp;n()}else k()||e.mustQueue?(this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger()):this.processTask(r,e)},Cc.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&amp;&amp;this.invoker.trigger(),e&amp;&amp;this.processTask(t,e)}},Cc.prototype.processTask=function(t,e){var r=this;if(&quot;&lt;response&gt;&quot;===e.type){var n=this.callbacks[t];delete this.callbacks[t],n&amp;&amp;(e.error?n(jn(e.error)):n(null,jn(e.data)))}else{var i=!1,a=S(this.globalScope)?void 0:[],o=e.hasCallback?function(e,n){i=!0,delete r.cancelCallbacks[t],r.target.postMessage({id:t,type:&quot;&lt;response&gt;&quot;,sourceMapId:r.mapId,error:e?Nn(e):null,data:Nn(n,a)},a)}:function(t){i=!0},s=null,l=jn(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,l,o);else if(this.parent.getWorkerSource){var c=e.type.split(&quot;.&quot;);s=this.parent.getWorkerSource(e.sourceMapId,c[0],l.source)[c[1]](l,o)}else o(new Error(&quot;Could not find function &quot;+e.type));!i&amp;&amp;s&amp;&amp;s.cancel&amp;&amp;(this.cancelCallbacks[t]=s.cancel)}},Cc.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener(&quot;message&quot;,this.receive,!1)};var Ic=function(t,e){t&amp;&amp;(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};Ic.prototype.setNorthEast=function(t){return this._ne=t instanceof Pc?new Pc(t.lng,t.lat):Pc.convert(t),this},Ic.prototype.setSouthWest=function(t){return this._sw=t instanceof Pc?new Pc(t.lng,t.lat):Pc.convert(t),this},Ic.prototype.extend=function(t){var e,r,n=this._sw,i=this._ne;if(t instanceof Pc)e=t,r=t;else{if(!(t instanceof Ic))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(Ic.convert(t)):this.extend(Pc.convert(t)):this;if(r=t._ne,!(e=t._sw)||!r)return this}return n||i?(n.lng=Math.min(e.lng,n.lng),n.lat=Math.min(e.lat,n.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this._sw=new Pc(e.lng,e.lat),this._ne=new Pc(r.lng,r.lat)),this},Ic.prototype.getCenter=function(){return new Pc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Ic.prototype.getSouthWest=function(){return this._sw},Ic.prototype.getNorthEast=function(){return this._ne},Ic.prototype.getNorthWest=function(){return new Pc(this.getWest(),this.getNorth())},Ic.prototype.getSouthEast=function(){return new Pc(this.getEast(),this.getSouth())},Ic.prototype.getWest=function(){return this._sw.lng},Ic.prototype.getSouth=function(){return this._sw.lat},Ic.prototype.getEast=function(){return this._ne.lng},Ic.prototype.getNorth=function(){return this._ne.lat},Ic.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Ic.prototype.toString=function(){return&quot;LngLatBounds(&quot;+this._sw.toString()+&quot;, &quot;+this._ne.toString()+&quot;)&quot;},Ic.prototype.isEmpty=function(){return!(this._sw&amp;&amp;this._ne)},Ic.prototype.contains=function(t){var e=Pc.convert(t),r=e.lng,n=e.lat,i=this._sw.lng&lt;=r&amp;&amp;r&lt;=this._ne.lng;return this._sw.lng&gt;this._ne.lng&amp;&amp;(i=this._sw.lng&gt;=r&amp;&amp;r&gt;=this._ne.lng),this._sw.lat&lt;=n&amp;&amp;n&lt;=this._ne.lat&amp;&amp;i},Ic.convert=function(t){return!t||t instanceof Ic?t:new Ic(t)};var Pc=function(t,e){if(isNaN(t)||isNaN(e))throw new Error(&quot;Invalid LngLat object: (&quot;+t+&quot;, &quot;+e+&quot;)&quot;);if(this.lng=+t,this.lat=+e,this.lat&gt;90||this.lat&lt;-90)throw new Error(&quot;Invalid LngLat latitude value: must be between -90 and 90&quot;)};Pc.prototype.wrap=function(){return new Pc(c(this.lng,-180,180),this.lat)},Pc.prototype.toArray=function(){return[this.lng,this.lat]},Pc.prototype.toString=function(){return&quot;LngLat(&quot;+this.lng+&quot;, &quot;+this.lat+&quot;)&quot;},Pc.prototype.distanceTo=function(t){var e=Math.PI/180,r=this.lat*e,n=t.lat*e,i=Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos((t.lng-this.lng)*e);return 6371008.8*Math.acos(Math.min(i,1))},Pc.prototype.toBounds=function(t){void 0===t&amp;&amp;(t=0);var e=360*t/40075017,r=e/Math.cos(Math.PI/180*this.lat);return new Ic(new Pc(this.lng-r,this.lat-e),new Pc(this.lng+r,this.lat+e))},Pc.convert=function(t){if(t instanceof Pc)return t;if(Array.isArray(t)&amp;&amp;(2===t.length||3===t.length))return new Pc(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;null!==t)return new Pc(Number(&quot;lng&quot;in t?t.lng:t.lon),Number(t.lat));throw new Error(&quot;`LngLatLike` argument must be specified as a LngLat instance, an object {lng: &lt;lng&gt;, lat: &lt;lat&gt;}, an object {lon: &lt;lng&gt;, lat: &lt;lat&gt;}, or an array of [&lt;lng&gt;, &lt;lat&gt;]&quot;)};var zc=2*Math.PI*6371008.8;function Oc(t){return zc*Math.cos(t*Math.PI/180)}function Dc(t){return(180+t)/360}function Rc(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Fc(t,e){return t/Oc(e)}function Bc(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}var Nc=function(t,e,r){void 0===r&amp;&amp;(r=0),this.x=+t,this.y=+e,this.z=+r};Nc.fromLngLat=function(t,e){void 0===e&amp;&amp;(e=0);var r=Pc.convert(t);return new Nc(Dc(r.lng),Rc(r.lat),Fc(e,r.lat))},Nc.prototype.toLngLat=function(){return new Pc(360*this.x-180,Bc(this.y))},Nc.prototype.toAltitude=function(){return this.z*Oc(Bc(this.y))},Nc.prototype.meterInMercatorCoordinateUnits=function(){return 1/zc*(t=Bc(this.y),1/Math.cos(t*Math.PI/180));var t};var jc=function(t,e,r){this.z=t,this.x=e,this.y=r,this.key=qc(0,t,t,e,r)};jc.prototype.equals=function(t){return this.z===t.z&amp;&amp;this.x===t.x&amp;&amp;this.y===t.y},jc.prototype.url=function(t,e){var r,n,i,a,o,s=(n=this.y,i=this.z,a=Lc(256*(r=this.x),256*(n=Math.pow(2,i)-n-1),i),o=Lc(256*(r+1),256*(n+1),i),a[0]+&quot;,&quot;+a[1]+&quot;,&quot;+o[0]+&quot;,&quot;+o[1]),l=function(t,e,r){for(var n,i=&quot;&quot;,a=t;a&gt;0;a--)i+=(e&amp;(n=1&lt;&lt;a-1)?1:0)+(r&amp;n?2:0);return i}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(&quot;{prefix}&quot;,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(&quot;{z}&quot;,String(this.z)).replace(&quot;{x}&quot;,String(this.x)).replace(&quot;{y}&quot;,String(&quot;tms&quot;===e?Math.pow(2,this.z)-this.y-1:this.y)).replace(&quot;{quadkey}&quot;,l).replace(&quot;{bbox-epsg-3857}&quot;,s)},jc.prototype.getTilePoint=function(t){var e=Math.pow(2,this.z);return new i(8192*(t.x*e-this.x),8192*(t.y*e-this.y))},jc.prototype.toString=function(){return this.z+&quot;/&quot;+this.x+&quot;/&quot;+this.y};var Uc=function(t,e){this.wrap=t,this.canonical=e,this.key=qc(t,e.z,e.z,e.x,e.y)},Vc=function(t,e,r,n,i){this.overscaledZ=t,this.wrap=e,this.canonical=new jc(r,+n,+i),this.key=qc(e,t,r,n,i)};function qc(t,e,r,n,i){(t*=2)&lt;0&amp;&amp;(t=-1*t-1);var a=1&lt;&lt;r;return(a*a*t+a*i+n).toString(36)+r.toString(36)+e.toString(36)}Vc.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&amp;&amp;this.wrap===t.wrap&amp;&amp;this.canonical.equals(t.canonical)},Vc.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t&gt;this.canonical.z?new Vc(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Vc(t,this.wrap,t,this.canonical.x&gt;&gt;e,this.canonical.y&gt;&gt;e)},Vc.prototype.calculateScaledKey=function(t,e){var r=this.canonical.z-t;return t&gt;this.canonical.z?qc(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):qc(this.wrap*+e,t,t,this.canonical.x&gt;&gt;r,this.canonical.y&gt;&gt;r)},Vc.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ&lt;this.overscaledZ&amp;&amp;t.canonical.x===this.canonical.x&gt;&gt;e&amp;&amp;t.canonical.y===this.canonical.y&gt;&gt;e},Vc.prototype.children=function(t){if(this.overscaledZ&gt;=t)return[new Vc(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,r=2*this.canonical.x,n=2*this.canonical.y;return[new Vc(e,this.wrap,e,r,n),new Vc(e,this.wrap,e,r+1,n),new Vc(e,this.wrap,e,r,n+1),new Vc(e,this.wrap,e,r+1,n+1)]},Vc.prototype.isLessThan=function(t){return this.wrap&lt;t.wrap||!(this.wrap&gt;t.wrap)&amp;&amp;(this.overscaledZ&lt;t.overscaledZ||!(this.overscaledZ&gt;t.overscaledZ)&amp;&amp;(this.canonical.x&lt;t.canonical.x||!(this.canonical.x&gt;t.canonical.x)&amp;&amp;this.canonical.y&lt;t.canonical.y))},Vc.prototype.wrapped=function(){return new Vc(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},Vc.prototype.unwrapTo=function(t){return new Vc(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},Vc.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},Vc.prototype.toUnwrapped=function(){return new Uc(this.wrap,this.canonical)},Vc.prototype.toString=function(){return this.overscaledZ+&quot;/&quot;+this.canonical.x+&quot;/&quot;+this.canonical.y},Vc.prototype.getTilePoint=function(t){return this.canonical.getTilePoint(new Nc(t.x-this.wrap,t.y))},Dn(&quot;CanonicalTileID&quot;,jc),Dn(&quot;OverscaledTileID&quot;,Vc,{omit:[&quot;posMatrix&quot;]});var Hc=function(t,e,r){if(this.uid=t,e.height!==e.width)throw new RangeError(&quot;DEM tiles must be square&quot;);if(r&amp;&amp;&quot;mapbox&quot;!==r&amp;&amp;&quot;terrarium&quot;!==r)return _('&quot;'+r+'&quot; is not a valid encoding type. Valid types include &quot;mapbox&quot; and &quot;terrarium&quot;.');this.stride=e.height;var n=this.dim=e.height-2;this.data=new Uint32Array(e.data.buffer),this.encoding=r||&quot;mapbox&quot;;for(var i=0;i&lt;n;i++)this.data[this._idx(-1,i)]=this.data[this._idx(0,i)],this.data[this._idx(n,i)]=this.data[this._idx(n-1,i)],this.data[this._idx(i,-1)]=this.data[this._idx(i,0)],this.data[this._idx(i,n)]=this.data[this._idx(i,n-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(n,-1)]=this.data[this._idx(n-1,0)],this.data[this._idx(-1,n)]=this.data[this._idx(0,n-1)],this.data[this._idx(n,n)]=this.data[this._idx(n-1,n-1)]};Hc.prototype.get=function(t,e){var r=new Uint8Array(this.data.buffer),n=4*this._idx(t,e);return(&quot;terrarium&quot;===this.encoding?this._unpackTerrarium:this._unpackMapbox)(r[n],r[n+1],r[n+2])},Hc.prototype.getUnpackVector=function(){return&quot;terrarium&quot;===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},Hc.prototype._idx=function(t,e){if(t&lt;-1||t&gt;=this.dim+1||e&lt;-1||e&gt;=this.dim+1)throw new RangeError(&quot;out of range source coordinates for DEM data&quot;);return(e+1)*this.stride+(t+1)},Hc.prototype._unpackMapbox=function(t,e,r){return(256*t*256+256*e+r)/10-1e4},Hc.prototype._unpackTerrarium=function(t,e,r){return 256*t+e+r/256-32768},Hc.prototype.getPixels=function(){return new po({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Hc.prototype.backfillBorder=function(t,e,r){if(this.dim!==t.dim)throw new Error(&quot;dem dimension mismatch&quot;);var n=e*this.dim,i=e*this.dim+this.dim,a=r*this.dim,o=r*this.dim+this.dim;switch(e){case-1:n=i-1;break;case 1:i=n+1}switch(r){case-1:a=o-1;break;case 1:o=a+1}for(var s=-e*this.dim,l=-r*this.dim,c=a;c&lt;o;c++)for(var u=n;u&lt;i;u++)this.data[this._idx(u,c)]=t.data[this._idx(u+s,c+l)]},Dn(&quot;DEMData&quot;,Hc);var Gc=function(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e&lt;t.length;e++){var r=t[e];this._stringToNumber[r]=e,this._numberToString[e]=r}};Gc.prototype.encode=function(t){return this._stringToNumber[t]},Gc.prototype.decode=function(t){return this._numberToString[t]};var Yc=function(t,e,r,n,i){this.type=&quot;Feature&quot;,this._vectorTileFeature=t,t._z=e,t._x=r,t._y=n,this.properties=t.properties,this.id=i},Wc={geometry:{configurable:!0}};Wc.geometry.get=function(){return void 0===this._geometry&amp;&amp;(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},Wc.geometry.set=function(t){this._geometry=t},Yc.prototype.toJSON=function(){var t={geometry:this.geometry};for(var e in this)&quot;_geometry&quot;!==e&amp;&amp;&quot;_vectorTileFeature&quot;!==e&amp;&amp;(t[e]=this[e]);return t},Object.defineProperties(Yc.prototype,Wc);var Xc=function(){this.state={},this.stateChanges={},this.deletedStates={}};Xc.prototype.updateState=function(t,e,r){var n=String(e);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][n]=this.stateChanges[t][n]||{},u(this.stateChanges[t][n],r),null===this.deletedStates[t])for(var i in this.deletedStates[t]={},this.state[t])i!==n&amp;&amp;(this.deletedStates[t][i]=null);else if(this.deletedStates[t]&amp;&amp;null===this.deletedStates[t][n])for(var a in this.deletedStates[t][n]={},this.state[t][n])r[a]||(this.deletedStates[t][n][a]=null);else for(var o in r)this.deletedStates[t]&amp;&amp;this.deletedStates[t][n]&amp;&amp;null===this.deletedStates[t][n][o]&amp;&amp;delete this.deletedStates[t][n][o]},Xc.prototype.removeFeatureState=function(t,e,r){if(null!==this.deletedStates[t]){var n=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},r&amp;&amp;void 0!==e)null!==this.deletedStates[t][n]&amp;&amp;(this.deletedStates[t][n]=this.deletedStates[t][n]||{},this.deletedStates[t][n][r]=null);else if(void 0!==e)if(this.stateChanges[t]&amp;&amp;this.stateChanges[t][n])for(r in this.deletedStates[t][n]={},this.stateChanges[t][n])this.deletedStates[t][n][r]=null;else this.deletedStates[t][n]=null;else this.deletedStates[t]=null}},Xc.prototype.getState=function(t,e){var r=String(e),n=u({},(this.state[t]||{})[r],(this.stateChanges[t]||{})[r]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){var i=this.deletedStates[t][e];if(null===i)return{};for(var a in i)delete n[a]}return n},Xc.prototype.initializeTileState=function(t,e){t.setFeatureState(this.state,e)},Xc.prototype.coalesceChanges=function(t,e){var r={};for(var n in this.stateChanges){this.state[n]=this.state[n]||{};var i={};for(var a in this.stateChanges[n])this.state[n][a]||(this.state[n][a]={}),u(this.state[n][a],this.stateChanges[n][a]),i[a]=this.state[n][a];r[n]=i}for(var o in this.deletedStates){this.state[o]=this.state[o]||{};var s={};if(null===this.deletedStates[o])for(var l in this.state[o])s[l]={},this.state[o][l]={};else for(var c in this.deletedStates[o]){if(null===this.deletedStates[o][c])this.state[o][c]={};else for(var f=0,h=Object.keys(this.deletedStates[o][c]);f&lt;h.length;f+=1)delete this.state[o][c][h[f]];s[c]=this.state[o][c]}r[o]=r[o]||{},u(r[o],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(r).length)for(var p in t)t[p].setFeatureState(r,e)};var Zc=function(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new Ln(8192,16,0),this.grid3D=new Ln(8192,16,0),this.featureIndexArray=new ra,this.promoteId=e};function Jc(t,e,r,n,i){return v(t,(function(t,a){var o=e instanceof hi?e.get(a):null;return o&amp;&amp;o.evaluate?o.evaluate(r,n,i):o}))}function Kc(t){for(var e=1/0,r=1/0,n=-1/0,i=-1/0,a=0,o=t;a&lt;o.length;a+=1){var s=o[a];e=Math.min(e,s.x),r=Math.min(r,s.y),n=Math.max(n,s.x),i=Math.max(i,s.y)}return{minX:e,minY:r,maxX:n,maxY:i}}function Qc(t,e){return e-t}Zc.prototype.insert=function(t,e,r,n,i,a){var o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,n,i);for(var s=a?this.grid3D:this.grid,l=0;l&lt;e.length;l++){for(var c=e[l],u=[1/0,1/0,-1/0,-1/0],f=0;f&lt;c.length;f++){var h=c[f];u[0]=Math.min(u[0],h.x),u[1]=Math.min(u[1],h.y),u[2]=Math.max(u[2],h.x),u[3]=Math.max(u[3],h.y)}u[0]&lt;8192&amp;&amp;u[1]&lt;8192&amp;&amp;u[2]&gt;=0&amp;&amp;u[3]&gt;=0&amp;&amp;s.insert(o,u[0],u[1],u[2],u[3])}},Zc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new gs.VectorTile(new Hs(this.rawTileData)).layers,this.sourceLayerCoder=new Gc(this.vtLayers?Object.keys(this.vtLayers).sort():[&quot;_geojsonTileLayer&quot;])),this.vtLayers},Zc.prototype.query=function(t,e,r,n){var a=this;this.loadVTLayers();for(var o=t.params||{},s=8192/t.tileSize/t.scale,l=rn(o.filter),c=t.queryGeometry,u=t.queryPadding*s,f=Kc(c),h=this.grid.query(f.minX-u,f.minY-u,f.maxX+u,f.maxY+u),p=Kc(t.cameraQueryGeometry),d=0,g=this.grid3D.query(p.minX-u,p.minY-u,p.maxX+u,p.maxY+u,(function(e,r,n,a){return function(t,e,r,n,a){for(var o=0,s=t;o&lt;s.length;o+=1){var l=s[o];if(e&lt;=l.x&amp;&amp;r&lt;=l.y&amp;&amp;n&gt;=l.x&amp;&amp;a&gt;=l.y)return!0}var c=[new i(e,r),new i(e,a),new i(n,a),new i(n,r)];if(t.length&gt;2)for(var u=0,f=c;u&lt;f.length;u+=1)if(Wa(t,f[u]))return!0;for(var h=0;h&lt;t.length-1;h++)if(Xa(t[h],t[h+1],c))return!0;return!1}(t.cameraQueryGeometry,e-u,r-u,n+u,a+u)}));d&lt;g.length;d+=1)h.push(g[d]);h.sort(Qc);for(var m,v={},y=function(i){var u=h[i];if(u!==m){m=u;var f=a.featureIndexArray.get(u),p=null;a.loadMatchingFeature(v,f.bucketIndex,f.sourceLayerIndex,f.featureIndex,l,o.layers,o.availableImages,e,r,n,(function(e,r,n){return p||(p=Da(e)),r.queryIntersectsFeature(c,e,n,p,a.z,t.transform,s,t.pixelPosMatrix)}))}},x=0;x&lt;h.length;x++)y(x);return v},Zc.prototype.loadMatchingFeature=function(t,e,r,n,i,a,o,s,l,c,u){var f=this.bucketLayerIDs[e];if(!a||function(t,e){for(var r=0;r&lt;t.length;r++)if(e.indexOf(t[r])&gt;=0)return!0;return!1}(a,f)){var h=this.sourceLayerCoder.decode(r),p=this.vtLayers[h].feature(n);if(i.filter(new ii(this.tileID.overscaledZ),p))for(var d=this.getId(p,h),g=0;g&lt;f.length;g++){var m=f[g];if(!(a&amp;&amp;a.indexOf(m)&lt;0)){var v=s[m];if(v){var y={};void 0!==d&amp;&amp;c&amp;&amp;(y=c.getState(v.sourceLayer||&quot;_geojsonTileLayer&quot;,d));var x=l[m];x.paint=Jc(x.paint,v.paint,p,y,o),x.layout=Jc(x.layout,v.layout,p,y,o);var b=!u||u(p,v,y);if(b){var _=new Yc(p,this.z,this.x,this.y,d);_.layer=x;var w=t[m];void 0===w&amp;&amp;(w=t[m]=[]),w.push({featureIndex:n,feature:_,intersectionZ:b})}}}}}},Zc.prototype.lookupSymbolFeatures=function(t,e,r,n,i,a,o,s){var l={};this.loadVTLayers();for(var c=rn(i),u=0,f=t;u&lt;f.length;u+=1)this.loadMatchingFeature(l,r,n,f[u],c,a,o,s,e);return l},Zc.prototype.hasLayer=function(t){for(var e=0,r=this.bucketLayerIDs;e&lt;r.length;e+=1)for(var n=0,i=r[e];n&lt;i.length;n+=1)if(t===i[n])return!0;return!1},Zc.prototype.getId=function(t,e){var r=t.id;return this.promoteId&amp;&amp;&quot;boolean&quot;==typeof(r=t.properties[&quot;string&quot;==typeof this.promoteId?this.promoteId:this.promoteId[e]])&amp;&amp;(r=Number(r)),r},Dn(&quot;FeatureIndex&quot;,Zc,{omit:[&quot;rawTileData&quot;,&quot;sourceLayerCoder&quot;]});var $c=function(t,e){this.tileID=t,this.uid=h(),this.uses=0,this.tileSize=e,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state=&quot;loading&quot;};$c.prototype.registerFadeDuration=function(t){var e=t+this.timeAdded;e&lt;R.now()||this.fadeEndTime&amp;&amp;e&lt;this.fadeEndTime||(this.fadeEndTime=e)},$c.prototype.wasRequested=function(){return&quot;errored&quot;===this.state||&quot;loaded&quot;===this.state||&quot;reloading&quot;===this.state},$c.prototype.loadVectorData=function(t,e,r){if(this.hasData()&amp;&amp;this.unloadVectorData(),this.state=&quot;loaded&quot;,t){for(var n in t.featureIndex&amp;&amp;(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&amp;&amp;(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,e){var r={};if(!e)return r;for(var n=function(){var t=a[i],n=t.layerIds.map((function(t){return e.getLayer(t)})).filter(Boolean);if(0!==n.length){t.layers=n,t.stateDependentLayerIds&amp;&amp;(t.stateDependentLayers=t.stateDependentLayerIds.map((function(t){return n.filter((function(e){return e.id===t}))[0]})));for(var o=0,s=n;o&lt;s.length;o+=1)r[s[o].id]=t}},i=0,a=t;i&lt;a.length;i+=1)n();return r}(t.buckets,e.style),this.hasSymbolBuckets=!1,this.buckets){var i=this.buckets[n];if(i instanceof fc){if(this.hasSymbolBuckets=!0,!r)break;i.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(var a in this.buckets){var o=this.buckets[a];if(o instanceof fc&amp;&amp;o.hasRTLText){this.hasRTLText=!0,ni.isLoading()||ni.isLoaded()||&quot;deferred&quot;!==ei()||ri();break}}for(var s in this.queryPadding=0,this.buckets){var l=this.buckets[s];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(s).queryRadius(l))}t.imageAtlas&amp;&amp;(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&amp;&amp;(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new Xi},$c.prototype.unloadVectorData=function(){for(var t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&amp;&amp;this.imageAtlasTexture.destroy(),this.imageAtlas&amp;&amp;(this.imageAtlas=null),this.glyphAtlasTexture&amp;&amp;this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state=&quot;unloaded&quot;},$c.prototype.getBucket=function(t){return this.buckets[t.id]},$c.prototype.upload=function(t){for(var e in this.buckets){var r=this.buckets[e];r.uploadPending()&amp;&amp;r.upload(t)}var n=t.gl;this.imageAtlas&amp;&amp;!this.imageAtlas.uploaded&amp;&amp;(this.imageAtlasTexture=new Sc(t,this.imageAtlas.image,n.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&amp;&amp;(this.glyphAtlasTexture=new Sc(t,this.glyphAtlasImage,n.ALPHA),this.glyphAtlasImage=null)},$c.prototype.prepare=function(t){this.imageAtlas&amp;&amp;this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)},$c.prototype.queryRenderedFeatures=function(t,e,r,n,i,a,o,s,l,c){return this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:n,cameraQueryGeometry:i,scale:a,tileSize:this.tileSize,pixelPosMatrix:c,transform:s,params:o,queryPadding:this.queryPadding*l},t,e,r):{}},$c.prototype.querySourceFeatures=function(t,e){var r=this.latestFeatureIndex;if(r&amp;&amp;r.rawTileData){var n=r.loadVTLayers(),i=e?e.sourceLayer:&quot;&quot;,a=n._geojsonTileLayer||n[i];if(a)for(var o=rn(e&amp;&amp;e.filter),s=this.tileID.canonical,l=s.z,c=s.x,u=s.y,f={z:l,x:c,y:u},h=0;h&lt;a.length;h++){var p=a.feature(h);if(o.filter(new ii(this.tileID.overscaledZ),p)){var d=r.getId(p,i),g=new Yc(p,l,c,u,d);g.tile=f,t.push(g)}}}},$c.prototype.hasData=function(){return&quot;loaded&quot;===this.state||&quot;reloading&quot;===this.state||&quot;expired&quot;===this.state},$c.prototype.patternsLoaded=function(){return this.imageAtlas&amp;&amp;!!Object.keys(this.imageAtlas.patternPositions).length},$c.prototype.setExpiryData=function(t){var e=this.expirationTime;if(t.cacheControl){var r=M(t.cacheControl);r[&quot;max-age&quot;]&amp;&amp;(this.expirationTime=Date.now()+1e3*r[&quot;max-age&quot;])}else t.expires&amp;&amp;(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){var n=Date.now(),i=!1;if(this.expirationTime&gt;n)i=!1;else if(e)if(this.expirationTime&lt;e)i=!0;else{var a=this.expirationTime-e;a?this.expirationTime=n+Math.max(a,3e4):i=!0}else i=!0;i?(this.expiredRequestCount++,this.state=&quot;expired&quot;):this.expiredRequestCount=0}},$c.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1&lt;&lt;Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},$c.prototype.setFeatureState=function(t,e){if(this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData&amp;&amp;0!==Object.keys(t).length){var r=this.latestFeatureIndex.loadVTLayers();for(var n in this.buckets)if(e.style.hasLayer(n)){var i=this.buckets[n],a=i.layers[0].sourceLayer||&quot;_geojsonTileLayer&quot;,o=r[a],s=t[a];if(o&amp;&amp;s&amp;&amp;0!==Object.keys(s).length){i.update(s,o,this.imageAtlas&amp;&amp;this.imageAtlas.patternPositions||{});var l=e&amp;&amp;e.style&amp;&amp;e.style.getLayer(n);l&amp;&amp;(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(i)))}}}},$c.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},$c.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil&lt;R.now()},$c.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},$c.prototype.setHoldDuration=function(t){this.symbolFadeHoldUntil=R.now()+t},$c.prototype.setDependencies=function(t,e){for(var r={},n=0,i=e;n&lt;i.length;n+=1)r[i[n]]=!0;this.dependencies[t]=r},$c.prototype.hasDependency=function(t,e){for(var r=0,n=t;r&lt;n.length;r+=1){var i=this.dependencies[n[r]];if(i)for(var a=0,o=e;a&lt;o.length;a+=1)if(i[o[a]])return!0}return!1};var tu=self.performance,eu=function(t){this._marks={start:[t.url,&quot;start&quot;].join(&quot;#&quot;),end:[t.url,&quot;end&quot;].join(&quot;#&quot;),measure:t.url.toString()},tu.mark(this._marks.start)};eu.prototype.finish=function(){tu.mark(this._marks.end);var t=tu.getEntriesByName(this._marks.measure);return 0===t.length&amp;&amp;(tu.measure(this._marks.measure,this._marks.start,this._marks.end),t=tu.getEntriesByName(this._marks.measure),tu.clearMarks(this._marks.start),tu.clearMarks(this._marks.end),tu.clearMeasures(this._marks.measure)),t},t.Actor=Cc,t.AlphaImage=ho,t.CanonicalTileID=jc,t.CollisionBoxArray=Xi,t.Color=Kt,t.DEMData=Hc,t.DataConstantProperty=pi,t.DictionaryCoder=Gc,t.EXTENT=8192,t.ErrorEvent=kt,t.EvaluationParameters=ii,t.Event=Tt,t.Evented=Mt,t.FeatureIndex=Zc,t.FillBucket=rs,t.FillExtrusionBucket=xs,t.ImageAtlas=dl,t.ImagePosition=hl,t.LineBucket=Cs,t.LngLat=Pc,t.LngLatBounds=Ic,t.MercatorCoordinate=Nc,t.ONE_EM=24,t.OverscaledTileID=Vc,t.Point=i,t.Point$1=i,t.Properties=yi,t.Protobuf=Hs,t.RGBAImage=po,t.RequestManager=q,t.RequestPerformance=eu,t.ResourceType=ht,t.SegmentVector=ia,t.SourceFeatureState=Xc,t.StructArrayLayout1ui2=Hi,t.StructArrayLayout2f1f2i16=Di,t.StructArrayLayout2i4=Mi,t.StructArrayLayout3ui6=Fi,t.StructArrayLayout4i8=Ai,t.SymbolBucket=fc,t.Texture=Sc,t.Tile=$c,t.Transitionable=si,t.Uniform1f=va,t.Uniform1i=ma,t.Uniform2f=ya,t.Uniform3f=xa,t.Uniform4f=ba,t.UniformColor=_a,t.UniformMatrix4f=Ta,t.UnwrappedTileID=Uc,t.ValidationError=St,t.WritingMode=gl,t.ZoomHistory=Un,t.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},t.addDynamicAttributes=sc,t.asyncAll=function(t,e,r){if(!t.length)return r(null,[]);var n=t.length,i=new Array(t.length),a=null;t.forEach((function(t,o){e(t,(function(t,e){t&amp;&amp;(a=t),i[o]=e,0==--n&amp;&amp;r(a,i)}))}))},t.bezier=o,t.bindAll=g,t.browser=R,t.cacheEntryPossiblyAdded=function(t){++ut&gt;ot&amp;&amp;(t.getActor().send(&quot;enforceCacheSizeLimit&quot;,at),ut=0)},t.clamp=l,t.clearTileCache=function(t){var e=self.caches.delete(&quot;mapbox-tiles&quot;);t&amp;&amp;e.catch(t).then((function(){return t()}))},t.clipLine=jl,t.clone=function(t){var e=new to(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=x,t.clone$2=function(t){var e=new to(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.collisionCircleLayout=Ns,t.config=F,t.create=function(){var t=new to(16);return to!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=function(){var t=new to(9);return to!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},t.create$2=function(){var t=new to(4);return to!=Float32Array&amp;&amp;(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=qr,t.createLayout=Ti,t.createStyleLayer=function(t){return&quot;custom&quot;===t.type?new bc(t):new _c[t.type](t)},t.cross=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t},t.deepEqual=function t(e,r){if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(var n=0;n&lt;e.length;n++)if(!t(e[n],r[n]))return!1;return!0}if(&quot;object&quot;==typeof e&amp;&amp;null!==e&amp;&amp;null!==r){if(&quot;object&quot;!=typeof r)return!1;if(Object.keys(e).length!==Object.keys(r).length)return!1;for(var i in e)if(!t(e[i],r[i]))return!1;return!0}return e===r},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},t.dot$1=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},t.ease=s,t.emitValidationErrors=Cn,t.endsWith=m,t.enforceCacheSizeLimit=function(t){st(),Q&amp;&amp;Q.then((function(e){e.keys().then((function(r){for(var n=0;n&lt;r.length-t;n++)e.delete(r[n])}))}))},t.evaluateSizeForFeature=Il,t.evaluateSizeForZoom=Pl,t.evaluateVariableOffset=$l,t.evented=ti,t.extend=u,t.featureFilter=rn,t.filterObject=y,t.fromRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},t.getAnchorAlignment=Al,t.getAnchorJustification=tc,t.getArrayBuffer=yt,t.getImage=bt,t.getJSON=function(t,e){return vt(u(t,{type:&quot;json&quot;}),e)},t.getRTLTextPluginStatus=ei,t.getReferrer=mt,t.getVideo=function(t,e){var r,n,i=self.document.createElement(&quot;video&quot;);i.muted=!0,i.onloadstart=function(){e(null,i)};for(var a=0;a&lt;t.length;a++){var o=self.document.createElement(&quot;source&quot;);r=t[a],n=void 0,(n=self.document.createElement(&quot;a&quot;)).href=r,(n.protocol!==self.document.location.protocol||n.host!==self.document.location.host)&amp;&amp;(i.crossOrigin=&quot;Anonymous&quot;),o.src=t[a],i.appendChild(o)}return{cancel:function(){}}},t.identity=eo,t.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*g-f*d,M=u*m-h*d,A=u*v-p*d,S=f*m-h*g,E=f*v-p*g,C=h*v-p*m,L=y*C-x*E+b*S+_*A-w*M+T*k;return L?(t[0]=(s*C-l*E+c*S)*(L=1/L),t[1]=(i*E-n*C-a*S)*L,t[2]=(g*T-m*w+v*_)*L,t[3]=(h*w-f*T-p*_)*L,t[4]=(l*A-o*C-c*M)*L,t[5]=(r*C-i*A+a*M)*L,t[6]=(m*b-d*T-v*x)*L,t[7]=(u*T-h*b+p*x)*L,t[8]=(o*E-s*A+c*k)*L,t[9]=(n*A-r*E-a*k)*L,t[10]=(d*w-g*b+v*y)*L,t[11]=(f*b-u*w-p*y)*L,t[12]=(s*M-o*S-l*k)*L,t[13]=(r*S-n*M+i*k)*L,t[14]=(g*x-d*_-m*y)*L,t[15]=(u*_-f*x+h*y)*L,t):null},t.isChar=Vn,t.isMapboxURL=H,t.keysDifference=function(t,e){var r=[];for(var n in t)n in e||r.push(n);return r},t.makeRequest=vt,t.mapObject=v,t.mercatorXfromLng=Dc,t.mercatorYfromLat=Rc,t.mercatorZfromAltitude=Fc,t.mul=io,t.multiply=ro,t.mvt=gs,t.normalize=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;return a&gt;0&amp;&amp;(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t},t.number=Ue,t.offscreenCanvasSupported=ft,t.ortho=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t},t.parseGlyphPBF=function(t){return new Hs(t).readFields(ll,[])},t.pbf=Hs,t.performSymbolLayout=function(t,e,r,n,i,a,o){t.createArrays(),t.tilePixelRatio=8192/(512*t.overscaling),t.compareText={},t.iconsNeedLinear=!1;var s=t.layers[0].layout,l=t.layers[0]._unevaluatedLayout._values,c={};if(&quot;composite&quot;===t.textSizeData.kind){var u=t.textSizeData,f=u.maxZoom;c.compositeTextSizes=[l[&quot;text-size&quot;].possiblyEvaluate(new ii(u.minZoom),o),l[&quot;text-size&quot;].possiblyEvaluate(new ii(f),o)]}if(&quot;composite&quot;===t.iconSizeData.kind){var h=t.iconSizeData,p=h.maxZoom;c.compositeIconSizes=[l[&quot;icon-size&quot;].possiblyEvaluate(new ii(h.minZoom),o),l[&quot;icon-size&quot;].possiblyEvaluate(new ii(p),o)]}c.layoutTextSize=l[&quot;text-size&quot;].possiblyEvaluate(new ii(t.zoom+1),o),c.layoutIconSize=l[&quot;icon-size&quot;].possiblyEvaluate(new ii(t.zoom+1),o),c.textMaxSize=l[&quot;text-size&quot;].possiblyEvaluate(new ii(18));for(var d=24*s.get(&quot;text-line-height&quot;),g=&quot;map&quot;===s.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==s.get(&quot;symbol-placement&quot;),m=s.get(&quot;text-keep-upright&quot;),v=s.get(&quot;text-size&quot;),y=function(){var a=b[x],l=s.get(&quot;text-font&quot;).evaluate(a,{},o).join(&quot;,&quot;),u=v.evaluate(a,{},o),f=c.layoutTextSize.evaluate(a,{},o),h=c.layoutIconSize.evaluate(a,{},o),p={horizontal:{},vertical:void 0},y=a.text,w=[0,0];if(y){var T=y.toString(),k=24*s.get(&quot;text-letter-spacing&quot;).evaluate(a,{},o),M=function(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(n=r[e].charCodeAt(0),Vn.Arabic(n)||Vn[&quot;Arabic Supplement&quot;](n)||Vn[&quot;Arabic Extended-A&quot;](n)||Vn[&quot;Arabic Presentation Forms-A&quot;](n)||Vn[&quot;Arabic Presentation Forms-B&quot;](n))return!1;var n;return!0}(T)?k:0,A=s.get(&quot;text-anchor&quot;).evaluate(a,{},o),S=s.get(&quot;text-variable-anchor&quot;);if(!S){var E=s.get(&quot;text-radial-offset&quot;).evaluate(a,{},o);w=E?$l(A,[24*E,Ql]):s.get(&quot;text-offset&quot;).evaluate(a,{},o).map((function(t){return 24*t}))}var C=g?&quot;center&quot;:s.get(&quot;text-justify&quot;).evaluate(a,{},o),L=s.get(&quot;symbol-placement&quot;),I=&quot;point&quot;===L?24*s.get(&quot;text-max-width&quot;).evaluate(a,{},o):0,P=function(){t.allowVerticalPlacement&amp;&amp;qn(T)&amp;&amp;(p.vertical=yl(y,e,r,i,l,I,d,A,&quot;left&quot;,M,w,gl.vertical,!0,L,f,u))};if(!g&amp;&amp;S){for(var z=&quot;auto&quot;===C?S.map((function(t){return tc(t)})):[C],O=!1,D=0;D&lt;z.length;D++){var R=z[D];if(!p.horizontal[R])if(O)p.horizontal[R]=p.horizontal[0];else{var F=yl(y,e,r,i,l,I,d,&quot;center&quot;,R,M,w,gl.horizontal,!1,L,f,u);F&amp;&amp;(p.horizontal[R]=F,O=1===F.positionedLines.length)}}P()}else{&quot;auto&quot;===C&amp;&amp;(C=tc(A));var B=yl(y,e,r,i,l,I,d,A,C,M,w,gl.horizontal,!1,L,f,u);B&amp;&amp;(p.horizontal[C]=B),P(),qn(T)&amp;&amp;g&amp;&amp;m&amp;&amp;(p.vertical=yl(y,e,r,i,l,I,d,A,C,M,w,gl.vertical,!1,L,f,u))}}var N=void 0,j=!1;if(a.icon&amp;&amp;a.icon.name){var U=n[a.icon.name];U&amp;&amp;(N=function(t,e,r){var n=Al(r),i=e[0]-t.displaySize[0]*n.horizontalAlign,a=e[1]-t.displaySize[1]*n.verticalAlign;return{image:t,top:a,bottom:a+t.displaySize[1],left:i,right:i+t.displaySize[0]}}(i[a.icon.name],s.get(&quot;icon-offset&quot;).evaluate(a,{},o),s.get(&quot;icon-anchor&quot;).evaluate(a,{},o)),j=U.sdf,void 0===t.sdfIcons?t.sdfIcons=U.sdf:t.sdfIcons!==U.sdf&amp;&amp;_(&quot;Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer&quot;),(U.pixelRatio!==t.pixelRatio||0!==s.get(&quot;icon-rotate&quot;).constantOr(1))&amp;&amp;(t.iconsNeedLinear=!0))}var V=rc(p.horizontal)||p.vertical;t.iconsInText=!!V&amp;&amp;V.iconsInText,(V||N)&amp;&amp;function(t,e,r,n,i,a,o,s,l,c,u){var f=a.textMaxSize.evaluate(e,{});void 0===f&amp;&amp;(f=o);var h,p=t.layers[0].layout,d=p.get(&quot;icon-offset&quot;).evaluate(e,{},u),g=rc(r.horizontal),m=o/24,v=t.tilePixelRatio*m,y=t.tilePixelRatio*f/24,x=t.tilePixelRatio*s,b=t.tilePixelRatio*p.get(&quot;symbol-spacing&quot;),w=p.get(&quot;text-padding&quot;)*t.tilePixelRatio,T=p.get(&quot;icon-padding&quot;)*t.tilePixelRatio,k=p.get(&quot;text-max-angle&quot;)/180*Math.PI,M=&quot;map&quot;===p.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==p.get(&quot;symbol-placement&quot;),A=&quot;map&quot;===p.get(&quot;icon-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==p.get(&quot;symbol-placement&quot;),S=p.get(&quot;symbol-placement&quot;),E=b/2,C=p.get(&quot;icon-text-fit&quot;);n&amp;&amp;&quot;none&quot;!==C&amp;&amp;(t.allowVerticalPlacement&amp;&amp;r.vertical&amp;&amp;(h=El(n,r.vertical,C,p.get(&quot;icon-text-fit-padding&quot;),d,m)),g&amp;&amp;(n=El(n,g,C,p.get(&quot;icon-text-fit-padding&quot;),d,m)));var L=function(s,f){f.x&lt;0||f.x&gt;=8192||f.y&lt;0||f.y&gt;=8192||function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,w,T,k,M){var A,S,E,C,L,I=t.addToLineVertexArray(e,r),P=0,z=0,O=0,D=0,R=-1,F=-1,B={},N=ca(&quot;&quot;),j=0,U=0;if(void 0===s._unevaluatedLayout.getValue(&quot;text-radial-offset&quot;)?(j=(A=s.layout.get(&quot;text-offset&quot;).evaluate(b,{},k).map((function(t){return 24*t})))[0],U=A[1]):(j=24*s.layout.get(&quot;text-radial-offset&quot;).evaluate(b,{},k),U=Ql),t.allowVerticalPlacement&amp;&amp;n.vertical){var V=s.layout.get(&quot;text-rotate&quot;).evaluate(b,{},k)+90;C=new Yl(l,e,c,u,f,n.vertical,h,p,d,V),o&amp;&amp;(L=new Yl(l,e,c,u,f,o,m,v,d,V))}if(i){var q=s.layout.get(&quot;icon-rotate&quot;).evaluate(b,{}),H=&quot;none&quot;!==s.layout.get(&quot;icon-text-fit&quot;),G=Ul(i,q,T,H),Y=o?Ul(o,q,T,H):void 0;E=new Yl(l,e,c,u,f,i,m,v,!1,q),P=4*G.length;var W=t.iconSizeData,X=null;&quot;source&quot;===W.kind?(X=[128*s.layout.get(&quot;icon-size&quot;).evaluate(b,{})])[0]&gt;32640&amp;&amp;_(t.layerIds[0]+': Value for &quot;icon-size&quot; is &gt;= 255. Reduce your &quot;icon-size&quot;.'):&quot;composite&quot;===W.kind&amp;&amp;((X=[128*w.compositeIconSizes[0].evaluate(b,{},k),128*w.compositeIconSizes[1].evaluate(b,{},k)])[0]&gt;32640||X[1]&gt;32640)&amp;&amp;_(t.layerIds[0]+': Value for &quot;icon-size&quot; is &gt;= 255. Reduce your &quot;icon-size&quot;.'),t.addSymbols(t.icon,G,X,x,y,b,!1,e,I.lineStartIndex,I.lineLength,-1,k),R=t.icon.placedSymbolArray.length-1,Y&amp;&amp;(z=4*Y.length,t.addSymbols(t.icon,Y,X,x,y,b,gl.vertical,e,I.lineStartIndex,I.lineLength,-1,k),F=t.icon.placedSymbolArray.length-1)}for(var Z in n.horizontal){var J=n.horizontal[Z];if(!S){N=ca(J.text);var K=s.layout.get(&quot;text-rotate&quot;).evaluate(b,{},k);S=new Yl(l,e,c,u,f,J,h,p,d,K)}var Q=1===J.positionedLines.length;if(O+=ec(t,e,J,a,s,d,b,g,I,n.vertical?gl.horizontal:gl.horizontalOnly,Q?Object.keys(n.horizontal):[Z],B,R,w,k),Q)break}n.vertical&amp;&amp;(D+=ec(t,e,n.vertical,a,s,d,b,g,I,gl.vertical,[&quot;vertical&quot;],B,F,w,k));var $=S?S.boxStartIndex:t.collisionBoxArray.length,tt=S?S.boxEndIndex:t.collisionBoxArray.length,et=C?C.boxStartIndex:t.collisionBoxArray.length,rt=C?C.boxEndIndex:t.collisionBoxArray.length,nt=E?E.boxStartIndex:t.collisionBoxArray.length,it=E?E.boxEndIndex:t.collisionBoxArray.length,at=L?L.boxStartIndex:t.collisionBoxArray.length,ot=L?L.boxEndIndex:t.collisionBoxArray.length,st=-1,lt=function(t,e){return t&amp;&amp;t.circleDiameter?Math.max(t.circleDiameter,e):e};st=lt(S,st),st=lt(C,st),st=lt(E,st);var ct=(st=lt(L,st))&gt;-1?1:0;ct&amp;&amp;(st*=M/24),t.glyphOffsetArray.length&gt;=fc.MAX_GLYPHS&amp;&amp;_(&quot;Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907&quot;),void 0!==b.sortKey&amp;&amp;t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey),t.symbolInstances.emplaceBack(e.x,e.y,B.right&gt;=0?B.right:-1,B.center&gt;=0?B.center:-1,B.left&gt;=0?B.left:-1,B.vertical||-1,R,F,N,$,tt,et,rt,nt,it,at,ot,c,O,D,P,z,ct,0,h,j,U,st)}(t,f,s,r,n,i,h,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,v,w,M,l,x,T,A,d,e,a,c,u,o)};if(&quot;line&quot;===S)for(var I=0,P=jl(e.geometry,0,0,8192,8192);I&lt;P.length;I+=1)for(var z=P[I],O=0,D=Nl(z,b,k,r.vertical||g,n,24,y,t.overscaling,8192);O&lt;D.length;O+=1){var R=D[O];g&amp;&amp;nc(t,g.text,E,R)||L(z,R)}else if(&quot;line-center&quot;===S)for(var F=0,B=e.geometry;F&lt;B.length;F+=1){var N=B[F];if(N.length&gt;1){var j=Bl(N,k,r.vertical||g,n,24,y);j&amp;&amp;L(N,j)}}else if(&quot;Polygon&quot;===e.type)for(var U=0,V=Qo(e.geometry,0);U&lt;V.length;U+=1){var q=V[U],H=Zl(q,16);L(q[0],new Cl(H.x,H.y,0))}else if(&quot;LineString&quot;===e.type)for(var G=0,Y=e.geometry;G&lt;Y.length;G+=1){var W=Y[G];L(W,new Cl(W[0].x,W[0].y,0))}else if(&quot;Point&quot;===e.type)for(var X=0,Z=e.geometry;X&lt;Z.length;X+=1)for(var J=0,K=Z[X];J&lt;K.length;J+=1){var Q=K[J];L([Q],new Cl(Q.x,Q.y,0))}}(t,a,p,N,n,c,f,h,w,j,o)},x=0,b=t.features;x&lt;b.length;x+=1)y();a&amp;&amp;t.generateCollisionDebugBuffers()},t.perspective=function(t,e,r,n,i){var a,o=1/Math.tan(e/2);return t[0]=o/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&amp;&amp;i!==1/0?(t[10]=(i+n)*(a=1/(n-i)),t[14]=2*i*n*a):(t[10]=-1,t[14]=-2*n),t},t.pick=function(t,e){for(var r={},n=0;n&lt;e.length;n++){var i=e[n];i in t&amp;&amp;(r[i]=t[i])}return r},t.plugin=ni,t.polygonIntersectsPolygon=Ba,t.postMapLoadEvent=it,t.postTurnstileEvent=rt,t.potpack=fl,t.refProperties=[&quot;type&quot;,&quot;source&quot;,&quot;source-layer&quot;,&quot;minzoom&quot;,&quot;maxzoom&quot;,&quot;filter&quot;,&quot;layout&quot;],t.register=Dn,t.registerForPluginStateChange=function(t){return t({pluginStatus:Jn,pluginURL:Kn}),ti.on(&quot;pluginStateChange&quot;,t),t},t.rotate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l+a*s,t[1]=i*l+o*s,t[2]=n*-s+a*l,t[3]=i*-s+o*l,t},t.rotateX=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];return e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t},t.rotateZ=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];return e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t},t.scale=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.scale$1=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t},t.scale$2=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t},t.setCacheLimits=function(t,e){at=t,ot=e},t.setRTLTextPlugin=function(t,e,r){if(void 0===r&amp;&amp;(r=!1),&quot;deferred&quot;===Jn||&quot;loading&quot;===Jn||&quot;loaded&quot;===Jn)throw new Error(&quot;setRTLTextPlugin cannot be called multiple times.&quot;);Kn=R.resolveURL(t),Jn=&quot;deferred&quot;,Zn=e,$n(),r||ri()},t.sphericalToCartesian=function(t){var e=t[0],r=t[1],n=t[2];return r+=90,r*=Math.PI/180,n*=Math.PI/180,{x:e*Math.cos(r)*Math.sin(n),y:e*Math.sin(r)*Math.sin(n),z:e*Math.cos(n)}},t.sqrLen=function(t){var e=t[0],r=t[1];return e*e+r*r},t.styleSpec=At,t.sub=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t},t.symbolSize=zl,t.transformMat3=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t},t.transformMat4=ao,t.translate=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],m=r[1],v=r[2];return e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n=e[0],t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*m+f*v+e[12],t[13]=i*g+l*m+h*v+e[13],t[14]=a*g+c*m+p*v+e[14],t[15]=o*g+u*m+d*v+e[15]),t},t.triggerPluginCompletionEvent=Qn,t.uniqueId=h,t.validateCustomStyleLayer=function(t){var e=[],r=t.id;return void 0===r&amp;&amp;e.push({message:&quot;layers.&quot;+r+': missing required property &quot;id&quot;'}),void 0===t.render&amp;&amp;e.push({message:&quot;layers.&quot;+r+': missing required method &quot;render&quot;'}),t.renderingMode&amp;&amp;&quot;2d&quot;!==t.renderingMode&amp;&amp;&quot;3d&quot;!==t.renderingMode&amp;&amp;e.push({message:&quot;layers.&quot;+r+': property &quot;renderingMode&quot; must be either &quot;2d&quot; or &quot;3d&quot;'}),e},t.validateLight=An,t.validateStyle=Mn,t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.vectorTile=gs,t.version=&quot;1.10.1&quot;,t.warnOnce=_,t.webpSupported=B,t.window=self,t.wrap=c})),n(0,(function(t){function e(t){var r=typeof t;if(&quot;number&quot;===r||&quot;boolean&quot;===r||&quot;string&quot;===r||null==t)return JSON.stringify(t);if(Array.isArray(t)){for(var n=&quot;[&quot;,i=0,a=t;i&lt;a.length;i+=1)n+=e(a[i])+&quot;,&quot;;return n+&quot;]&quot;}for(var o=Object.keys(t).sort(),s=&quot;{&quot;,l=0;l&lt;o.length;l++)s+=JSON.stringify(o[l])+&quot;:&quot;+e(t[o[l]])+&quot;,&quot;;return s+&quot;}&quot;}function r(r){for(var n=&quot;&quot;,i=0,a=t.refProperties;i&lt;a.length;i+=1)n+=&quot;/&quot;+e(r[a[i]]);return n}var n=function(t){this.keyCache={},t&amp;&amp;this.replace(t)};n.prototype.replace=function(t){this._layerConfigs={},this._layers={},this.update(t,[])},n.prototype.update=function(e,n){for(var i=this,a=0,o=e;a&lt;o.length;a+=1){var s=o[a];this._layerConfigs[s.id]=s;var l=this._layers[s.id]=t.createStyleLayer(s);l._featureFilter=t.featureFilter(l.filter),this.keyCache[s.id]&amp;&amp;delete this.keyCache[s.id]}for(var c=0,u=n;c&lt;u.length;c+=1){var f=u[c];delete this.keyCache[f],delete this._layerConfigs[f],delete this._layers[f]}this.familiesBySource={};for(var h=0,p=function(t,e){for(var n={},i=0;i&lt;t.length;i++){var a=e&amp;&amp;e[t[i].id]||r(t[i]);e&amp;&amp;(e[t[i].id]=a);var o=n[a];o||(o=n[a]=[]),o.push(t[i])}var s=[];for(var l in n)s.push(n[l]);return s}(t.values(this._layerConfigs),this.keyCache);h&lt;p.length;h+=1){var d=p[h].map((function(t){return i._layers[t.id]})),g=d[0];if(&quot;none&quot;!==g.visibility){var m=g.source||&quot;&quot;,v=this.familiesBySource[m];v||(v=this.familiesBySource[m]={});var y=g.sourceLayer||&quot;_geojsonTileLayer&quot;,x=v[y];x||(x=v[y]=[]),x.push(d)}}};var i=function(e){var r={},n=[];for(var i in e){var a=e[i],o=r[i]={};for(var s in a){var l=a[+s];if(l&amp;&amp;0!==l.bitmap.width&amp;&amp;0!==l.bitmap.height){var c={x:0,y:0,w:l.bitmap.width+2,h:l.bitmap.height+2};n.push(c),o[s]={rect:c,metrics:l.metrics}}}}var u=t.potpack(n),f=new t.AlphaImage({width:u.w||1,height:u.h||1});for(var h in e){var p=e[h];for(var d in p){var g=p[+d];if(g&amp;&amp;0!==g.bitmap.width&amp;&amp;0!==g.bitmap.height){var m=r[h][d].rect;t.AlphaImage.copy(g.bitmap,f,{x:0,y:0},{x:m.x+1,y:m.y+1},g.bitmap)}}}this.image=f,this.positions=r};t.register(&quot;GlyphAtlas&quot;,i);var a=function(e){this.tileID=new t.OverscaledTileID(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId};function o(e,r,n){for(var i=new t.EvaluationParameters(r),a=0,o=e;a&lt;o.length;a+=1)o[a].recalculate(i,n)}function s(e,r){var n=t.getArrayBuffer(e.request,(function(e,n,i,a){e?r(e):n&amp;&amp;r(null,{vectorTile:new t.vectorTile.VectorTile(new t.pbf(n)),rawData:n,cacheControl:i,expires:a})}));return function(){n.cancel(),r()}}a.prototype.parse=function(e,r,n,a,s){var l=this;this.status=&quot;parsing&quot;,this.data=e,this.collisionBoxArray=new t.CollisionBoxArray;var c=new t.DictionaryCoder(Object.keys(e.layers).sort()),u=new t.FeatureIndex(this.tileID,this.promoteId);u.bucketLayerIDs=[];var f,h,p,d,g={},m={featureIndex:u,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:n},v=r.familiesBySource[this.source];for(var y in v){var x=e.layers[y];if(x){1===x.version&amp;&amp;t.warnOnce('Vector tile source &quot;'+this.source+'&quot; layer &quot;'+y+'&quot; does not use vector tile spec v2 and therefore may have some rendering errors.');for(var b=c.encode(y),_=[],w=0;w&lt;x.length;w++){var T=x.feature(w),k=u.getId(T,y);_.push({feature:T,id:k,index:w,sourceLayerIndex:b})}for(var M=0,A=v[y];M&lt;A.length;M+=1){var S=A[M],E=S[0];E.minzoom&amp;&amp;this.zoom&lt;Math.floor(E.minzoom)||E.maxzoom&amp;&amp;this.zoom&gt;=E.maxzoom||&quot;none&quot;!==E.visibility&amp;&amp;(o(S,this.zoom,n),(g[E.id]=E.createBucket({index:u.bucketLayerIDs.length,layers:S,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:b,sourceID:this.source})).populate(_,m,this.tileID.canonical),u.bucketLayerIDs.push(S.map((function(t){return t.id}))))}}}var C=t.mapObject(m.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(C).length?a.send(&quot;getGlyphs&quot;,{uid:this.uid,stacks:C},(function(t,e){f||(f=t,h=e,P.call(l))})):h={};var L=Object.keys(m.iconDependencies);L.length?a.send(&quot;getImages&quot;,{icons:L,source:this.source,tileID:this.tileID,type:&quot;icons&quot;},(function(t,e){f||(f=t,p=e,P.call(l))})):p={};var I=Object.keys(m.patternDependencies);function P(){if(f)return s(f);if(h&amp;&amp;p&amp;&amp;d){var e=new i(h),r=new t.ImageAtlas(p,d);for(var a in g){var l=g[a];l instanceof t.SymbolBucket?(o(l.layers,this.zoom,n),t.performSymbolLayout(l,h,e.positions,p,r.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):l.hasPattern&amp;&amp;(l instanceof t.LineBucket||l instanceof t.FillBucket||l instanceof t.FillExtrusionBucket)&amp;&amp;(o(l.layers,this.zoom,n),l.addFeatures(m,this.tileID.canonical,r.patternPositions))}this.status=&quot;done&quot;,s(null,{buckets:t.values(g).filter((function(t){return!t.isEmpty()})),featureIndex:u,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:r,glyphMap:this.returnDependencies?h:null,iconMap:this.returnDependencies?p:null,glyphPositions:this.returnDependencies?e.positions:null})}}I.length?a.send(&quot;getImages&quot;,{icons:I,source:this.source,tileID:this.tileID,type:&quot;patterns&quot;},(function(t,e){f||(f=t,d=e,P.call(l))})):d={},P.call(this)};var l=function(t,e,r,n){this.actor=t,this.layerIndex=e,this.availableImages=r,this.loadVectorData=n||s,this.loading={},this.loaded={}};l.prototype.loadTile=function(e,r){var n=this,i=e.uid;this.loading||(this.loading={});var o=!!(e&amp;&amp;e.request&amp;&amp;e.request.collectResourceTiming)&amp;&amp;new t.RequestPerformance(e.request),s=this.loading[i]=new a(e);s.abort=this.loadVectorData(e,(function(e,a){if(delete n.loading[i],e||!a)return s.status=&quot;done&quot;,n.loaded[i]=s,r(e);var l=a.rawData,c={};a.expires&amp;&amp;(c.expires=a.expires),a.cacheControl&amp;&amp;(c.cacheControl=a.cacheControl);var u={};if(o){var f=o.finish();f&amp;&amp;(u.resourceTiming=JSON.parse(JSON.stringify(f)))}s.vectorTile=a.vectorTile,s.parse(a.vectorTile,n.layerIndex,n.availableImages,n.actor,(function(e,n){if(e||!n)return r(e);r(null,t.extend({rawTileData:l.slice(0)},n,c,u))})),n.loaded=n.loaded||{},n.loaded[i]=s}))},l.prototype.reloadTile=function(t,e){var r=this,n=this.loaded,i=t.uid,a=this;if(n&amp;&amp;n[i]){var o=n[i];o.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,n){var i=o.reloadCallback;i&amp;&amp;(delete o.reloadCallback,o.parse(o.vectorTile,a.layerIndex,r.availableImages,a.actor,i)),e(t,n)};&quot;parsing&quot;===o.status?o.reloadCallback=s:&quot;done&quot;===o.status&amp;&amp;(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},l.prototype.abortTile=function(t,e){var r=this.loading,n=t.uid;r&amp;&amp;r[n]&amp;&amp;r[n].abort&amp;&amp;(r[n].abort(),delete r[n]),e()},l.prototype.removeTile=function(t,e){var r=this.loaded,n=t.uid;r&amp;&amp;r[n]&amp;&amp;delete r[n],e()};var c=t.window.ImageBitmap,u=function(){this.loaded={}};function f(t,e){if(0!==t.length){h(t[0],e);for(var r=1;r&lt;t.length;r++)h(t[r],!e)}}function h(t,e){for(var r=0,n=0,i=t.length,a=i-1;n&lt;i;a=n++)r+=(t[n][0]-t[a][0])*(t[a][1]+t[n][1]);r&gt;=0!=!!e&amp;&amp;t.reverse()}u.prototype.loadTile=function(e,r){var n=e.uid,i=e.encoding,a=e.rawImageData,o=c&amp;&amp;a instanceof c?this.getImageData(a):a,s=new t.DEMData(n,o,i);this.loaded=this.loaded||{},this.loaded[n]=s,r(null,s)},u.prototype.getImageData=function(e){this.offscreenCanvas&amp;&amp;this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext(&quot;2d&quot;)),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);var r=this.offscreenCanvasContext.getImageData(-1,-1,e.width+2,e.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new t.RGBAImage({width:r.width,height:r.height},r.data)},u.prototype.removeTile=function(t){var e=this.loaded,r=t.uid;e&amp;&amp;e[r]&amp;&amp;delete e[r]};var p=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,d=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,&quot;id&quot;in e&amp;&amp;!isNaN(e.id)&amp;&amp;(this.id=parseInt(e.id,10))};d.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],r=0,n=this._feature.geometry;r&lt;n.length;r+=1){var i=n[r];e.push([new t.Point$1(i[0],i[1])])}return e}for(var a=[],o=0,s=this._feature.geometry;o&lt;s.length;o+=1){for(var l=[],c=0,u=s[o];c&lt;u.length;c+=1){var f=u[c];l.push(new t.Point$1(f[0],f[1]))}a.push(l)}return a},d.prototype.toGeoJSON=function(t,e,r){return p.call(this,t,e,r)};var g=function(e){this.layers={_geojsonTileLayer:this},this.name=&quot;_geojsonTileLayer&quot;,this.extent=t.EXTENT,this.length=e.length,this._features=e};g.prototype.feature=function(t){return new d(this._features[t])};var m=t.vectorTile.VectorTileFeature,v=y;function y(t,e){this.options=e||{},this.features=t,this.length=t.length}function x(t,e){this.id=&quot;number&quot;==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}y.prototype.feature=function(t){return new x(this.features[t],this.options.extent)},x.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var r=0;r&lt;e.length;r++){for(var n=e[r],i=[],a=0;a&lt;n.length;a++)i.push(new t.Point$1(n[a][0],n[a][1]));this.geometry.push(i)}return this.geometry},x.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,r=-1/0,n=1/0,i=-1/0,a=0;a&lt;t.length;a++)for(var o=t[a],s=0;s&lt;o.length;s++){var l=o[s];e=Math.min(e,l.x),r=Math.max(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.y)}return[e,n,r,i]},x.prototype.toGeoJSON=m.prototype.toGeoJSON;var b=w,_=v;function w(e){var r=new t.pbf;return function(t,e){for(var r in t.layers)e.writeMessage(3,T,t.layers[r])}(e,r),r.finish()}function T(t,e){var r;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||&quot;&quot;),e.writeVarintField(5,t.extent||4096);var n={keys:[],values:[],keycache:{},valuecache:{}};for(r=0;r&lt;t.length;r++)n.feature=t.feature(r),e.writeMessage(2,k,n);var i=n.keys;for(r=0;r&lt;i.length;r++)e.writeStringField(3,i[r]);var a=n.values;for(r=0;r&lt;a.length;r++)e.writeMessage(4,C,a[r])}function k(t,e){var r=t.feature;void 0!==r.id&amp;&amp;e.writeVarintField(1,r.id),e.writeMessage(2,M,t),e.writeVarintField(3,r.type),e.writeMessage(4,E,r)}function M(t,e){var r=t.feature,n=t.keys,i=t.values,a=t.keycache,o=t.valuecache;for(var s in r.properties){var l=a[s];void 0===l&amp;&amp;(n.push(s),a[s]=l=n.length-1),e.writeVarint(l);var c=r.properties[s],u=typeof c;&quot;string&quot;!==u&amp;&amp;&quot;boolean&quot;!==u&amp;&amp;&quot;number&quot;!==u&amp;&amp;(c=JSON.stringify(c));var f=u+&quot;:&quot;+c,h=o[f];void 0===h&amp;&amp;(i.push(c),o[f]=h=i.length-1),e.writeVarint(h)}}function A(t,e){return(e&lt;&lt;3)+(7&amp;t)}function S(t){return t&lt;&lt;1^t&gt;&gt;31}function E(t,e){for(var r=t.loadGeometry(),n=t.type,i=0,a=0,o=r.length,s=0;s&lt;o;s++){var l=r[s],c=1;1===n&amp;&amp;(c=l.length),e.writeVarint(A(1,c));for(var u=3===n?l.length-1:l.length,f=0;f&lt;u;f++){1===f&amp;&amp;1!==n&amp;&amp;e.writeVarint(A(2,u-1));var h=l[f].x-i,p=l[f].y-a;e.writeVarint(S(h)),e.writeVarint(S(p)),i+=h,a+=p}3===n&amp;&amp;e.writeVarint(A(7,1))}}function C(t,e){var r=typeof t;&quot;string&quot;===r?e.writeStringField(1,t):&quot;boolean&quot;===r?e.writeBooleanField(7,t):&quot;number&quot;===r&amp;&amp;(t%1!=0?e.writeDoubleField(3,t):t&lt;0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}function L(t,e,r,n){I(t,r,n),I(e,2*r,2*n),I(e,2*r+1,2*n+1)}function I(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function P(t,e,r,n){var i=t-r,a=e-n;return i*i+a*a}b.fromVectorTileJs=w,b.fromGeojsonVt=function(t,e){e=e||{};var r={};for(var n in t)r[n]=new v(t[n].features,e),r[n].name=n,r[n].version=e.version,r[n].extent=e.extent;return w({layers:r})},b.GeoJSONWrapper=_;var z=function(t){return t[0]},O=function(t){return t[1]},D=function(t,e,r,n,i){void 0===e&amp;&amp;(e=z),void 0===r&amp;&amp;(r=O),void 0===n&amp;&amp;(n=64),void 0===i&amp;&amp;(i=Float64Array),this.nodeSize=n,this.points=t;for(var a=t.length&lt;65536?Uint16Array:Uint32Array,o=this.ids=new a(t.length),s=this.coords=new i(2*t.length),l=0;l&lt;t.length;l++)o[l]=l,s[2*l]=e(t[l]),s[2*l+1]=r(t[l]);!function t(e,r,n,i,a,o){if(!(a-i&lt;=n)){var s=i+a&gt;&gt;1;!function t(e,r,n,i,a,o){for(;a&gt;i;){if(a-i&gt;600){var s=a-i+1,l=n-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2&lt;0?-1:1);t(e,r,n,Math.max(i,Math.floor(n-l*u/s+f)),Math.min(a,Math.floor(n+(s-l)*u/s+f)),o)}var h=r[2*n+o],p=i,d=a;for(L(e,r,i,n),r[2*a+o]&gt;h&amp;&amp;L(e,r,i,a);p&lt;d;){for(L(e,r,p,d),p++,d--;r[2*p+o]&lt;h;)p++;for(;r[2*d+o]&gt;h;)d--}r[2*i+o]===h?L(e,r,i,d):L(e,r,++d,a),d&lt;=n&amp;&amp;(i=d+1),n&lt;=d&amp;&amp;(a=d-1)}}(e,r,s,i,a,o%2),t(e,r,n,i,s-1,o+1),t(e,r,n,s+1,a,o+1)}}(o,s,n,0,o.length-1,0)};D.prototype.range=function(t,e,r,n){return function(t,e,r,n,i,a,o){for(var s,l,c=[0,t.length-1,0],u=[];c.length;){var f=c.pop(),h=c.pop(),p=c.pop();if(h-p&lt;=o)for(var d=p;d&lt;=h;d++)l=e[2*d+1],(s=e[2*d])&gt;=r&amp;&amp;s&lt;=i&amp;&amp;l&gt;=n&amp;&amp;l&lt;=a&amp;&amp;u.push(t[d]);else{var g=Math.floor((p+h)/2);l=e[2*g+1],(s=e[2*g])&gt;=r&amp;&amp;s&lt;=i&amp;&amp;l&gt;=n&amp;&amp;l&lt;=a&amp;&amp;u.push(t[g]);var m=(f+1)%2;(0===f?r&lt;=s:n&lt;=l)&amp;&amp;(c.push(p),c.push(g-1),c.push(m)),(0===f?i&gt;=s:a&gt;=l)&amp;&amp;(c.push(g+1),c.push(h),c.push(m))}}return u}(this.ids,this.coords,t,e,r,n,this.nodeSize)},D.prototype.within=function(t,e,r){return function(t,e,r,n,i,a){for(var o=[0,t.length-1,0],s=[],l=i*i;o.length;){var c=o.pop(),u=o.pop(),f=o.pop();if(u-f&lt;=a)for(var h=f;h&lt;=u;h++)P(e[2*h],e[2*h+1],r,n)&lt;=l&amp;&amp;s.push(t[h]);else{var p=Math.floor((f+u)/2),d=e[2*p],g=e[2*p+1];P(d,g,r,n)&lt;=l&amp;&amp;s.push(t[p]);var m=(c+1)%2;(0===c?r-i&lt;=d:n-i&lt;=g)&amp;&amp;(o.push(f),o.push(p-1),o.push(m)),(0===c?r+i&gt;=d:n+i&gt;=g)&amp;&amp;(o.push(p+1),o.push(u),o.push(m))}}return s}(this.ids,this.coords,t,e,r,this.nodeSize)};var R={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},F=function(t){this.options=H(Object.create(R),t),this.trees=new Array(this.options.maxZoom+1)};function B(t,e,r,n,i){return{x:t,y:e,zoom:1/0,id:r,parentId:-1,numPoints:n,properties:i}}function N(t,e){var r=t.geometry.coordinates,n=r[1];return{x:V(r[0]),y:q(n),zoom:1/0,index:e,parentId:-1}}function j(t){return{type:&quot;Feature&quot;,id:t.id,properties:U(t),geometry:{type:&quot;Point&quot;,coordinates:[(n=t.x,360*(n-.5)),(e=t.y,r=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(r))/Math.PI-90)]}};var e,r,n}function U(t){var e=t.numPoints,r=e&gt;=1e4?Math.round(e/1e3)+&quot;k&quot;:e&gt;=1e3?Math.round(e/100)/10+&quot;k&quot;:e;return H(H({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function V(t){return t/360+.5}function q(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function H(t,e){for(var r in e)t[r]=e[r];return t}function G(t){return t.x}function Y(t){return t.y}function W(t,e,r,n,i,a){var o=i-r,s=a-n;if(0!==o||0!==s){var l=((t-r)*o+(e-n)*s)/(o*o+s*s);l&gt;1?(r=i,n=a):l&gt;0&amp;&amp;(r+=o*l,n+=s*l)}return(o=t-r)*o+(s=e-n)*s}function X(t,e,r,n){var i={id:void 0===t?null:t,type:e,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,r=t.type;if(&quot;Point&quot;===r||&quot;MultiPoint&quot;===r||&quot;LineString&quot;===r)Z(t,e);else if(&quot;Polygon&quot;===r||&quot;MultiLineString&quot;===r)for(var n=0;n&lt;e.length;n++)Z(t,e[n]);else if(&quot;MultiPolygon&quot;===r)for(n=0;n&lt;e.length;n++)for(var i=0;i&lt;e[n].length;i++)Z(t,e[n][i])}(i),i}function Z(t,e){for(var r=0;r&lt;e.length;r+=3)t.minX=Math.min(t.minX,e[r]),t.minY=Math.min(t.minY,e[r+1]),t.maxX=Math.max(t.maxX,e[r]),t.maxY=Math.max(t.maxY,e[r+1])}function J(t,e,r,n){if(e.geometry){var i=e.geometry.coordinates,a=e.geometry.type,o=Math.pow(r.tolerance/((1&lt;&lt;r.maxZoom)*r.extent),2),s=[],l=e.id;if(r.promoteId?l=e.properties[r.promoteId]:r.generateId&amp;&amp;(l=n||0),&quot;Point&quot;===a)K(i,s);else if(&quot;MultiPoint&quot;===a)for(var c=0;c&lt;i.length;c++)K(i[c],s);else if(&quot;LineString&quot;===a)Q(i,s,o,!1);else if(&quot;MultiLineString&quot;===a){if(r.lineMetrics){for(c=0;c&lt;i.length;c++)Q(i[c],s=[],o,!1),t.push(X(l,&quot;LineString&quot;,s,e.properties));return}$(i,s,o,!1)}else if(&quot;Polygon&quot;===a)$(i,s,o,!0);else{if(&quot;MultiPolygon&quot;!==a){if(&quot;GeometryCollection&quot;===a){for(c=0;c&lt;e.geometry.geometries.length;c++)J(t,{id:l,geometry:e.geometry.geometries[c],properties:e.properties},r,n);return}throw new Error(&quot;Input data is not a valid GeoJSON object.&quot;)}for(c=0;c&lt;i.length;c++){var u=[];$(i[c],u,o,!0),s.push(u)}}t.push(X(l,a,s,e.properties))}}function K(t,e){e.push(tt(t[0])),e.push(et(t[1])),e.push(0)}function Q(t,e,r,n){for(var i,a,o=0,s=0;s&lt;t.length;s++){var l=tt(t[s][0]),c=et(t[s][1]);e.push(l),e.push(c),e.push(0),s&gt;0&amp;&amp;(o+=n?(i*c-l*a)/2:Math.sqrt(Math.pow(l-i,2)+Math.pow(c-a,2))),i=l,a=c}var u=e.length-3;e[2]=1,function t(e,r,n,i){for(var a,o=i,s=n-r&gt;&gt;1,l=n-r,c=e[r],u=e[r+1],f=e[n],h=e[n+1],p=r+3;p&lt;n;p+=3){var d=W(e[p],e[p+1],c,u,f,h);if(d&gt;o)a=p,o=d;else if(d===o){var g=Math.abs(p-s);g&lt;l&amp;&amp;(a=p,l=g)}}o&gt;i&amp;&amp;(a-r&gt;3&amp;&amp;t(e,r,a,i),e[a+2]=o,n-a&gt;3&amp;&amp;t(e,a,n,i))}(e,0,u,r),e[u+2]=1,e.size=Math.abs(o),e.start=0,e.end=e.size}function $(t,e,r,n){for(var i=0;i&lt;t.length;i++){var a=[];Q(t[i],a,r,n),e.push(a)}}function tt(t){return t/360+.5}function et(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function rt(t,e,r,n,i,a,o,s){if(n/=e,a&gt;=(r/=e)&amp;&amp;o&lt;n)return t;if(o&lt;r||a&gt;=n)return null;for(var l=[],c=0;c&lt;t.length;c++){var u=t[c],f=u.geometry,h=u.type,p=0===i?u.minX:u.minY,d=0===i?u.maxX:u.maxY;if(p&gt;=r&amp;&amp;d&lt;n)l.push(u);else if(!(d&lt;r||p&gt;=n)){var g=[];if(&quot;Point&quot;===h||&quot;MultiPoint&quot;===h)nt(f,g,r,n,i);else if(&quot;LineString&quot;===h)it(f,g,r,n,i,!1,s.lineMetrics);else if(&quot;MultiLineString&quot;===h)ot(f,g,r,n,i,!1);else if(&quot;Polygon&quot;===h)ot(f,g,r,n,i,!0);else if(&quot;MultiPolygon&quot;===h)for(var m=0;m&lt;f.length;m++){var v=[];ot(f[m],v,r,n,i,!0),v.length&amp;&amp;g.push(v)}if(g.length){if(s.lineMetrics&amp;&amp;&quot;LineString&quot;===h){for(m=0;m&lt;g.length;m++)l.push(X(u.id,h,g[m],u.tags));continue}&quot;LineString&quot;!==h&amp;&amp;&quot;MultiLineString&quot;!==h||(1===g.length?(h=&quot;LineString&quot;,g=g[0]):h=&quot;MultiLineString&quot;),&quot;Point&quot;!==h&amp;&amp;&quot;MultiPoint&quot;!==h||(h=3===g.length?&quot;Point&quot;:&quot;MultiPoint&quot;),l.push(X(u.id,h,g,u.tags))}}}return l.length?l:null}function nt(t,e,r,n,i){for(var a=0;a&lt;t.length;a+=3){var o=t[a+i];o&gt;=r&amp;&amp;o&lt;=n&amp;&amp;(e.push(t[a]),e.push(t[a+1]),e.push(t[a+2]))}}function it(t,e,r,n,i,a,o){for(var s,l,c=at(t),u=0===i?lt:ct,f=t.start,h=0;h&lt;t.length-3;h+=3){var p=t[h],d=t[h+1],g=t[h+2],m=t[h+3],v=t[h+4],y=0===i?p:d,x=0===i?m:v,b=!1;o&amp;&amp;(s=Math.sqrt(Math.pow(p-m,2)+Math.pow(d-v,2))),y&lt;r?x&gt;r&amp;&amp;(l=u(c,p,d,m,v,r),o&amp;&amp;(c.start=f+s*l)):y&gt;n?x&lt;n&amp;&amp;(l=u(c,p,d,m,v,n),o&amp;&amp;(c.start=f+s*l)):st(c,p,d,g),x&lt;r&amp;&amp;y&gt;=r&amp;&amp;(l=u(c,p,d,m,v,r),b=!0),x&gt;n&amp;&amp;y&lt;=n&amp;&amp;(l=u(c,p,d,m,v,n),b=!0),!a&amp;&amp;b&amp;&amp;(o&amp;&amp;(c.end=f+s*l),e.push(c),c=at(t)),o&amp;&amp;(f+=s)}var _=t.length-3;p=t[_],d=t[_+1],g=t[_+2],(y=0===i?p:d)&gt;=r&amp;&amp;y&lt;=n&amp;&amp;st(c,p,d,g),_=c.length-3,a&amp;&amp;_&gt;=3&amp;&amp;(c[_]!==c[0]||c[_+1]!==c[1])&amp;&amp;st(c,c[0],c[1],c[2]),c.length&amp;&amp;e.push(c)}function at(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function ot(t,e,r,n,i,a){for(var o=0;o&lt;t.length;o++)it(t[o],e,r,n,i,a,!1)}function st(t,e,r,n){t.push(e),t.push(r),t.push(n)}function lt(t,e,r,n,i,a){var o=(a-e)/(n-e);return t.push(a),t.push(r+(i-r)*o),t.push(1),o}function ct(t,e,r,n,i,a){var o=(a-r)/(i-r);return t.push(e+(n-e)*o),t.push(a),t.push(1),o}function ut(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i,a=t[n],o=a.type;if(&quot;Point&quot;===o||&quot;MultiPoint&quot;===o||&quot;LineString&quot;===o)i=ft(a.geometry,e);else if(&quot;MultiLineString&quot;===o||&quot;Polygon&quot;===o){i=[];for(var s=0;s&lt;a.geometry.length;s++)i.push(ft(a.geometry[s],e))}else if(&quot;MultiPolygon&quot;===o)for(i=[],s=0;s&lt;a.geometry.length;s++){for(var l=[],c=0;c&lt;a.geometry[s].length;c++)l.push(ft(a.geometry[s][c],e));i.push(l)}r.push(X(a.id,o,i,a.tags))}return r}function ft(t,e){var r=[];r.size=t.size,void 0!==t.start&amp;&amp;(r.start=t.start,r.end=t.end);for(var n=0;n&lt;t.length;n+=3)r.push(t[n]+e,t[n+1],t[n+2]);return r}function ht(t,e){if(t.transformed)return t;var r,n,i,a=1&lt;&lt;t.z,o=t.x,s=t.y;for(r=0;r&lt;t.features.length;r++){var l=t.features[r],c=l.geometry,u=l.type;if(l.geometry=[],1===u)for(n=0;n&lt;c.length;n+=2)l.geometry.push(pt(c[n],c[n+1],e,a,o,s));else for(n=0;n&lt;c.length;n++){var f=[];for(i=0;i&lt;c[n].length;i+=2)f.push(pt(c[n][i],c[n][i+1],e,a,o,s));l.geometry.push(f)}}return t.transformed=!0,t}function pt(t,e,r,n,i,a){return[Math.round(r*(t*n-i)),Math.round(r*(e*n-a))]}function dt(t,e,r,n,i){for(var a=e===i.maxZoom?0:i.tolerance/((1&lt;&lt;e)*i.extent),o={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:r,y:n,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s&lt;t.length;s++){o.numFeatures++,gt(o,t[s],a,i);var l=t[s].minX,c=t[s].minY,u=t[s].maxX,f=t[s].maxY;l&lt;o.minX&amp;&amp;(o.minX=l),c&lt;o.minY&amp;&amp;(o.minY=c),u&gt;o.maxX&amp;&amp;(o.maxX=u),f&gt;o.maxY&amp;&amp;(o.maxY=f)}return o}function gt(t,e,r,n){var i=e.geometry,a=e.type,o=[];if(&quot;Point&quot;===a||&quot;MultiPoint&quot;===a)for(var s=0;s&lt;i.length;s+=3)o.push(i[s]),o.push(i[s+1]),t.numPoints++,t.numSimplified++;else if(&quot;LineString&quot;===a)mt(o,i,t,r,!1,!1);else if(&quot;MultiLineString&quot;===a||&quot;Polygon&quot;===a)for(s=0;s&lt;i.length;s++)mt(o,i[s],t,r,&quot;Polygon&quot;===a,0===s);else if(&quot;MultiPolygon&quot;===a)for(var l=0;l&lt;i.length;l++){var c=i[l];for(s=0;s&lt;c.length;s++)mt(o,c[s],t,r,!0,0===s)}if(o.length){var u=e.tags||null;if(&quot;LineString&quot;===a&amp;&amp;n.lineMetrics){for(var f in u={},e.tags)u[f]=e.tags[f];u.mapbox_clip_start=i.start/i.size,u.mapbox_clip_end=i.end/i.size}var h={geometry:o,type:&quot;Polygon&quot;===a||&quot;MultiPolygon&quot;===a?3:&quot;LineString&quot;===a||&quot;MultiLineString&quot;===a?2:1,tags:u};null!==e.id&amp;&amp;(h.id=e.id),t.features.push(h)}}function mt(t,e,r,n,i,a){var o=n*n;if(n&gt;0&amp;&amp;e.size&lt;(i?o:n))r.numPoints+=e.length/3;else{for(var s=[],l=0;l&lt;e.length;l+=3)(0===n||e[l+2]&gt;o)&amp;&amp;(r.numSimplified++,s.push(e[l]),s.push(e[l+1])),r.numPoints++;i&amp;&amp;function(t,e){for(var r=0,n=0,i=t.length,a=i-2;n&lt;i;a=n,n+=2)r+=(t[n]-t[a])*(t[n+1]+t[a+1]);if(r&gt;0===e)for(n=0,i=t.length;n&lt;i/2;n+=2){var o=t[n],s=t[n+1];t[n]=t[i-2-n],t[n+1]=t[i-1-n],t[i-2-n]=o,t[i-1-n]=s}}(s,a),t.push(s)}}function vt(t,e){var r=(e=this.options=function(t,e){for(var r in e)t[r]=e[r];return t}(Object.create(this.options),e)).debug;if(r&amp;&amp;console.time(&quot;preprocess data&quot;),e.maxZoom&lt;0||e.maxZoom&gt;24)throw new Error(&quot;maxZoom should be in the 0-24 range&quot;);if(e.promoteId&amp;&amp;e.generateId)throw new Error(&quot;promoteId and generateId cannot be used together.&quot;);var n=function(t,e){var r=[];if(&quot;FeatureCollection&quot;===t.type)for(var n=0;n&lt;t.features.length;n++)J(r,t.features[n],e,n);else J(r,&quot;Feature&quot;===t.type?t:{geometry:t},e);return r}(t,e);this.tiles={},this.tileCoords=[],r&amp;&amp;(console.timeEnd(&quot;preprocess data&quot;),console.log(&quot;index: maxZoom: %d, maxPoints: %d&quot;,e.indexMaxZoom,e.indexMaxPoints),console.time(&quot;generate tiles&quot;),this.stats={},this.total=0),(n=function(t,e){var r=e.buffer/e.extent,n=t,i=rt(t,1,-1-r,r,0,-1,2,e),a=rt(t,1,1-r,2+r,0,-1,2,e);return(i||a)&amp;&amp;(n=rt(t,1,-r,1+r,0,-1,2,e)||[],i&amp;&amp;(n=ut(i,1).concat(n)),a&amp;&amp;(n=n.concat(ut(a,-1)))),n}(n,e)).length&amp;&amp;this.splitTile(n,0,0,0),r&amp;&amp;(n.length&amp;&amp;console.log(&quot;features: %d, points: %d&quot;,this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd(&quot;generate tiles&quot;),console.log(&quot;tiles generated:&quot;,this.total,JSON.stringify(this.stats)))}function yt(t,e,r){return 32*((1&lt;&lt;t)*r+e)+t}function xt(t,e){var r=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);var n=this._geoJSONIndex.getTile(r.z,r.x,r.y);if(!n)return e(null,null);var i=new g(n.features),a=b(i);0===a.byteOffset&amp;&amp;a.byteLength===a.buffer.byteLength||(a=new Uint8Array(a)),e(null,{vectorTile:i,rawData:a.buffer})}F.prototype.load=function(t){var e=this.options,r=e.log,n=e.minZoom,i=e.maxZoom,a=e.nodeSize;r&amp;&amp;console.time(&quot;total time&quot;);var o=&quot;prepare &quot;+t.length+&quot; points&quot;;r&amp;&amp;console.time(o),this.points=t;for(var s=[],l=0;l&lt;t.length;l++)t[l].geometry&amp;&amp;s.push(N(t[l],l));this.trees[i+1]=new D(s,G,Y,a,Float32Array),r&amp;&amp;console.timeEnd(o);for(var c=i;c&gt;=n;c--){var u=+Date.now();s=this._cluster(s,c),this.trees[c]=new D(s,G,Y,a,Float32Array),r&amp;&amp;console.log(&quot;z%d: %d clusters in %dms&quot;,c,s.length,+Date.now()-u)}return r&amp;&amp;console.timeEnd(&quot;total time&quot;),this},F.prototype.getClusters=function(t,e){var r=((t[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]&gt;=360)r=-180,i=180;else if(r&gt;i){var o=this.getClusters([r,n,180,a],e),s=this.getClusters([-180,n,i,a],e);return o.concat(s)}for(var l=this.trees[this._limitZoom(e)],c=[],u=0,f=l.range(V(r),q(a),V(i),q(n));u&lt;f.length;u+=1){var h=l.points[f[u]];c.push(h.numPoints?j(h):this.points[h.index])}return c},F.prototype.getChildren=function(t){var e=this._getOriginId(t),r=this._getOriginZoom(t),n=&quot;No cluster with the specified id.&quot;,i=this.trees[r];if(!i)throw new Error(n);var a=i.points[e];if(!a)throw new Error(n);for(var o=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=[],l=0,c=i.within(a.x,a.y,o);l&lt;c.length;l+=1){var u=i.points[c[l]];u.parentId===t&amp;&amp;s.push(u.numPoints?j(u):this.points[u.index])}if(0===s.length)throw new Error(n);return s},F.prototype.getLeaves=function(t,e,r){var n=[];return this._appendLeaves(n,t,e=e||10,r=r||0,0),n},F.prototype.getTile=function(t,e,r){var n=this.trees[this._limitZoom(t)],i=Math.pow(2,t),a=this.options,o=a.radius/a.extent,s=(r-o)/i,l=(r+1+o)/i,c={features:[]};return this._addTileFeatures(n.range((e-o)/i,s,(e+1+o)/i,l),n.points,e,r,i,c),0===e&amp;&amp;this._addTileFeatures(n.range(1-o/i,s,1,l),n.points,i,r,i,c),e===i-1&amp;&amp;this._addTileFeatures(n.range(0,s,o/i,l),n.points,-1,r,i,c),c.features.length?c:null},F.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e&lt;=this.options.maxZoom;){var r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e},F.prototype._appendLeaves=function(t,e,r,n,i){for(var a=0,o=this.getChildren(e);a&lt;o.length;a+=1){var s=o[a],l=s.properties;if(l&amp;&amp;l.cluster?i+l.point_count&lt;=n?i+=l.point_count:i=this._appendLeaves(t,l.cluster_id,r,n,i):i&lt;n?i++:t.push(s),t.length===r)break}return i},F.prototype._addTileFeatures=function(t,e,r,n,i,a){for(var o=0,s=t;o&lt;s.length;o+=1){var l=e[s[o]],c=l.numPoints,u={type:1,geometry:[[Math.round(this.options.extent*(l.x*i-r)),Math.round(this.options.extent*(l.y*i-n))]],tags:c?U(l):this.points[l.index].properties},f=void 0;c?f=l.id:this.options.generateId?f=l.index:this.points[l.index].id&amp;&amp;(f=this.points[l.index].id),void 0!==f&amp;&amp;(u.id=f),a.features.push(u)}},F.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},F.prototype._cluster=function(t,e){for(var r=[],n=this.options,i=n.reduce,a=n.radius/(n.extent*Math.pow(2,e)),o=0;o&lt;t.length;o++){var s=t[o];if(!(s.zoom&lt;=e)){s.zoom=e;for(var l=this.trees[e+1],c=l.within(s.x,s.y,a),u=s.numPoints||1,f=s.x*u,h=s.y*u,p=i&amp;&amp;u&gt;1?this._map(s,!0):null,d=(o&lt;&lt;5)+(e+1)+this.points.length,g=0,m=c;g&lt;m.length;g+=1){var v=l.points[m[g]];if(!(v.zoom&lt;=e)){v.zoom=e;var y=v.numPoints||1;f+=v.x*y,h+=v.y*y,u+=y,v.parentId=d,i&amp;&amp;(p||(p=this._map(s,!0)),i(p,this._map(v)))}}1===u?r.push(s):(s.parentId=d,r.push(B(f/u,h/u,d,u,p)))}}return r},F.prototype._getOriginId=function(t){return t-this.points.length&gt;&gt;5},F.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},F.prototype._map=function(t,e){if(t.numPoints)return e?H({},t.properties):t.properties;var r=this.points[t.index].properties,n=this.options.map(r);return e&amp;&amp;n===r?H({},n):n},vt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},vt.prototype.splitTile=function(t,e,r,n,i,a,o){for(var s=[t,e,r,n],l=this.options,c=l.debug;s.length;){n=s.pop(),r=s.pop(),e=s.pop(),t=s.pop();var u=1&lt;&lt;e,f=yt(e,r,n),h=this.tiles[f];if(!h&amp;&amp;(c&gt;1&amp;&amp;console.time(&quot;creation&quot;),h=this.tiles[f]=dt(t,e,r,n,l),this.tileCoords.push({z:e,x:r,y:n}),c)){c&gt;1&amp;&amp;(console.log(&quot;tile z%d-%d-%d (features: %d, points: %d, simplified: %d)&quot;,e,r,n,h.numFeatures,h.numPoints,h.numSimplified),console.timeEnd(&quot;creation&quot;));var p=&quot;z&quot;+e;this.stats[p]=(this.stats[p]||0)+1,this.total++}if(h.source=t,i){if(e===l.maxZoom||e===i)continue;var d=1&lt;&lt;i-e;if(r!==Math.floor(a/d)||n!==Math.floor(o/d))continue}else if(e===l.indexMaxZoom||h.numPoints&lt;=l.indexMaxPoints)continue;if(h.source=null,0!==t.length){c&gt;1&amp;&amp;console.time(&quot;clipping&quot;);var g,m,v,y,x,b,_=.5*l.buffer/l.extent,w=.5-_,T=.5+_,k=1+_;g=m=v=y=null,x=rt(t,u,r-_,r+T,0,h.minX,h.maxX,l),b=rt(t,u,r+w,r+k,0,h.minX,h.maxX,l),t=null,x&amp;&amp;(g=rt(x,u,n-_,n+T,1,h.minY,h.maxY,l),m=rt(x,u,n+w,n+k,1,h.minY,h.maxY,l),x=null),b&amp;&amp;(v=rt(b,u,n-_,n+T,1,h.minY,h.maxY,l),y=rt(b,u,n+w,n+k,1,h.minY,h.maxY,l),b=null),c&gt;1&amp;&amp;console.timeEnd(&quot;clipping&quot;),s.push(g||[],e+1,2*r,2*n),s.push(m||[],e+1,2*r,2*n+1),s.push(v||[],e+1,2*r+1,2*n),s.push(y||[],e+1,2*r+1,2*n+1)}}},vt.prototype.getTile=function(t,e,r){var n=this.options,i=n.extent,a=n.debug;if(t&lt;0||t&gt;24)return null;var o=1&lt;&lt;t,s=yt(t,e=(e%o+o)%o,r);if(this.tiles[s])return ht(this.tiles[s],i);a&gt;1&amp;&amp;console.log(&quot;drilling down to z%d-%d-%d&quot;,t,e,r);for(var l,c=t,u=e,f=r;!l&amp;&amp;c&gt;0;)c--,u=Math.floor(u/2),f=Math.floor(f/2),l=this.tiles[yt(c,u,f)];return l&amp;&amp;l.source?(a&gt;1&amp;&amp;console.log(&quot;found parent tile z%d-%d-%d&quot;,c,u,f),a&gt;1&amp;&amp;console.time(&quot;drilling down&quot;),this.splitTile(l.source,c,u,f,t,e,r),a&gt;1&amp;&amp;console.timeEnd(&quot;drilling down&quot;),this.tiles[s]?ht(this.tiles[s],i):null):null};var bt=function(e){function r(t,r,n,i){e.call(this,t,r,n,xt),i&amp;&amp;(this.loadGeoJSON=i)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.loadData=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&amp;&amp;&quot;Idle&quot;!==this._state?this._state=&quot;NeedsLoadData&quot;:(this._state=&quot;Coalescing&quot;,this._loadData())},r.prototype._loadData=function(){var e=this;if(this._pendingCallback&amp;&amp;this._pendingLoadDataParams){var r=this._pendingCallback,n=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var i=!!(n&amp;&amp;n.request&amp;&amp;n.request.collectResourceTiming)&amp;&amp;new t.RequestPerformance(n.request);this.loadGeoJSON(n,(function(a,o){if(a||!o)return r(a);if(&quot;object&quot;!=typeof o)return r(new Error(&quot;Input data given to '&quot;+n.source+&quot;' is not a valid GeoJSON object.&quot;));!function t(e,r){var n,i=e&amp;&amp;e.type;if(&quot;FeatureCollection&quot;===i)for(n=0;n&lt;e.features.length;n++)t(e.features[n],r);else if(&quot;GeometryCollection&quot;===i)for(n=0;n&lt;e.geometries.length;n++)t(e.geometries[n],r);else if(&quot;Feature&quot;===i)t(e.geometry,r);else if(&quot;Polygon&quot;===i)f(e.coordinates,r);else if(&quot;MultiPolygon&quot;===i)for(n=0;n&lt;e.coordinates.length;n++)f(e.coordinates[n],r);return e}(o,!0);try{e._geoJSONIndex=n.cluster?new F(function(e){var r=e.superclusterOptions,n=e.clusterProperties;if(!n||!r)return r;for(var i={},a={},o={accumulated:null,zoom:0},s={properties:null},l=Object.keys(n),c=0,u=l;c&lt;u.length;c+=1){var f=u[c],h=n[f],p=h[0],d=t.createExpression(h[1]),g=t.createExpression(&quot;string&quot;==typeof p?[p,[&quot;accumulated&quot;],[&quot;get&quot;,f]]:p);i[f]=d.value,a[f]=g.value}return r.map=function(t){s.properties=t;for(var e={},r=0,n=l;r&lt;n.length;r+=1){var a=n[r];e[a]=i[a].evaluate(o,s)}return e},r.reduce=function(t,e){s.properties=e;for(var r=0,n=l;r&lt;n.length;r+=1){var i=n[r];o.accumulated=t[i],t[i]=a[i].evaluate(o,s)}},r}(n)).load(o.features):function(t,e){return new vt(t,e)}(o,n.geojsonVtOptions)}catch(a){return r(a)}e.loaded={};var s={};if(i){var l=i.finish();l&amp;&amp;(s.resourceTiming={},s.resourceTiming[n.source]=JSON.parse(JSON.stringify(l)))}r(null,s)}))}},r.prototype.coalesce=function(){&quot;Coalescing&quot;===this._state?this._state=&quot;Idle&quot;:&quot;NeedsLoadData&quot;===this._state&amp;&amp;(this._state=&quot;Coalescing&quot;,this._loadData())},r.prototype.reloadTile=function(t,r){var n=this.loaded;return n&amp;&amp;n[t.uid]?e.prototype.reloadTile.call(this,t,r):this.loadTile(t,r)},r.prototype.loadGeoJSON=function(e,r){if(e.request)t.getJSON(e.request,r);else{if(&quot;string&quot;!=typeof e.data)return r(new Error(&quot;Input data given to '&quot;+e.source+&quot;' is not a valid GeoJSON object.&quot;));try{return r(null,JSON.parse(e.data))}catch(t){return r(new Error(&quot;Input data given to '&quot;+e.source+&quot;' is not a valid GeoJSON object.&quot;))}}},r.prototype.removeSource=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),e()},r.prototype.getClusterExpansionZoom=function(t,e){try{e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterChildren=function(t,e){try{e(null,this._geoJSONIndex.getChildren(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterLeaves=function(t,e){try{e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))}catch(t){e(t)}},r}(l),_t=function(e){var r=this;this.self=e,this.actor=new t.Actor(e,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:l,geojson:bt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(r.workerSourceTypes[t])throw new Error('Worker source with name &quot;'+t+'&quot; already registered.');r.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(e){if(t.plugin.isParsed())throw new Error(&quot;RTL text plugin already registered.&quot;);t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText,t.plugin.processStyledBidirectionalText=e.processStyledBidirectionalText}};return _t.prototype.setReferrer=function(t,e){this.referrer=e},_t.prototype.setImages=function(t,e,r){for(var n in this.availableImages[t]=e,this.workerSources[t]){var i=this.workerSources[t][n];for(var a in i)i[a].availableImages=e}r()},_t.prototype.setLayers=function(t,e,r){this.getLayerIndex(t).replace(e),r()},_t.prototype.updateLayers=function(t,e,r){this.getLayerIndex(t).update(e.layers,e.removedIds),r()},_t.prototype.loadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).loadTile(e,r)},_t.prototype.loadDEMTile=function(t,e,r){this.getDEMWorkerSource(t,e.source).loadTile(e,r)},_t.prototype.reloadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).reloadTile(e,r)},_t.prototype.abortTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).abortTile(e,r)},_t.prototype.removeTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).removeTile(e,r)},_t.prototype.removeDEMTile=function(t,e){this.getDEMWorkerSource(t,e.source).removeTile(e)},_t.prototype.removeSource=function(t,e,r){if(this.workerSources[t]&amp;&amp;this.workerSources[t][e.type]&amp;&amp;this.workerSources[t][e.type][e.source]){var n=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==n.removeSource?n.removeSource(e,r):r()}},_t.prototype.loadWorkerSource=function(t,e,r){try{this.self.importScripts(e.url),r()}catch(t){r(t.toString())}},_t.prototype.syncRTLPluginState=function(e,r,n){try{t.plugin.setState(r);var i=t.plugin.getPluginURL();if(t.plugin.isLoaded()&amp;&amp;!t.plugin.isParsed()&amp;&amp;null!=i){this.self.importScripts(i);var a=t.plugin.isParsed();n(a?void 0:new Error(&quot;RTL Text Plugin failed to import scripts from &quot;+i),a)}}catch(t){n(t.toString())}},_t.prototype.getAvailableImages=function(t){var e=this.availableImages[t];return e||(e=[]),e},_t.prototype.getLayerIndex=function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new n),e},_t.prototype.getWorkerSource=function(t,e,r){var n=this;return this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),this.workerSources[t][e][r]||(this.workerSources[t][e][r]=new this.workerSourceTypes[e]({send:function(e,r,i){n.actor.send(e,r,i,t)}},this.getLayerIndex(t),this.getAvailableImages(t))),this.workerSources[t][e][r]},_t.prototype.getDEMWorkerSource=function(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new u),this.demWorkerSources[t][e]},_t.prototype.enforceCacheSizeLimit=function(e,r){t.enforceCacheSizeLimit(r)},&quot;undefined&quot;!=typeof WorkerGlobalScope&amp;&amp;void 0!==t.window&amp;&amp;t.window instanceof WorkerGlobalScope&amp;&amp;(t.window.worker=new _t(t.window)),_t})),n(0,(function(t){var e=t.createCommonjsModule((function(t){function e(t){return!r(t)}function r(t){return&quot;undefined&quot;==typeof window||&quot;undefined&quot;==typeof document?&quot;not a browser&quot;:Array.prototype&amp;&amp;Array.prototype.every&amp;&amp;Array.prototype.filter&amp;&amp;Array.prototype.forEach&amp;&amp;Array.prototype.indexOf&amp;&amp;Array.prototype.lastIndexOf&amp;&amp;Array.prototype.map&amp;&amp;Array.prototype.some&amp;&amp;Array.prototype.reduce&amp;&amp;Array.prototype.reduceRight&amp;&amp;Array.isArray?Function.prototype&amp;&amp;Function.prototype.bind?Object.keys&amp;&amp;Object.create&amp;&amp;Object.getPrototypeOf&amp;&amp;Object.getOwnPropertyNames&amp;&amp;Object.isSealed&amp;&amp;Object.isFrozen&amp;&amp;Object.isExtensible&amp;&amp;Object.getOwnPropertyDescriptor&amp;&amp;Object.defineProperty&amp;&amp;Object.defineProperties&amp;&amp;Object.seal&amp;&amp;Object.freeze&amp;&amp;Object.preventExtensions?&quot;JSON&quot;in window&amp;&amp;&quot;parse&quot;in JSON&amp;&amp;&quot;stringify&quot;in JSON?function(){if(!(&quot;Worker&quot;in window&amp;&amp;&quot;Blob&quot;in window&amp;&amp;&quot;URL&quot;in window))return!1;var t,e,r=new Blob([&quot;&quot;],{type:&quot;text/javascript&quot;}),n=URL.createObjectURL(r);try{e=new Worker(n),t=!0}catch(e){t=!1}return e&amp;&amp;e.terminate(),URL.revokeObjectURL(n),t}()?&quot;Uint8ClampedArray&quot;in window?ArrayBuffer.isView?function(){var t=document.createElement(&quot;canvas&quot;);t.width=t.height=1;var e=t.getContext(&quot;2d&quot;);if(!e)return!1;var r=e.getImageData(0,0,1,1);return r&amp;&amp;r.width===t.width}()?(void 0===n[r=t&amp;&amp;t.failIfMajorPerformanceCaveat]&amp;&amp;(n[r]=function(t){var r=function(t){var r=document.createElement(&quot;canvas&quot;),n=Object.create(e.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=t,r.probablySupportsContext?r.probablySupportsContext(&quot;webgl&quot;,n)||r.probablySupportsContext(&quot;experimental-webgl&quot;,n):r.supportsContext?r.supportsContext(&quot;webgl&quot;,n)||r.supportsContext(&quot;experimental-webgl&quot;,n):r.getContext(&quot;webgl&quot;,n)||r.getContext(&quot;experimental-webgl&quot;,n)}(t);if(!r)return!1;var n=r.createShader(r.VERTEX_SHADER);return!(!n||r.isContextLost())&amp;&amp;(r.shaderSource(n,&quot;void main() {}&quot;),r.compileShader(n),!0===r.getShaderParameter(n,r.COMPILE_STATUS))}(r)),n[r]?void 0:&quot;insufficient WebGL support&quot;):&quot;insufficient Canvas/getImageData support&quot;:&quot;insufficient ArrayBuffer support&quot;:&quot;insufficient Uint8ClampedArray support&quot;:&quot;insufficient worker support&quot;:&quot;insufficient JSON support&quot;:&quot;insufficient Object support&quot;:&quot;insufficient Function support&quot;:&quot;insufficent Array support&quot;;var r}t.exports?t.exports=e:window&amp;&amp;(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=e,window.mapboxgl.notSupportedReason=r);var n={};e.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}})),r={create:function(e,r,n){var i=t.window.document.createElement(e);return void 0!==r&amp;&amp;(i.className=r),n&amp;&amp;n.appendChild(i),i},createNS:function(e,r){return t.window.document.createElementNS(e,r)}},n=t.window.document.documentElement.style;function i(t){if(!n)return t[0];for(var e=0;e&lt;t.length;e++)if(t[e]in n)return t[e];return t[0]}var a,o=i([&quot;userSelect&quot;,&quot;MozUserSelect&quot;,&quot;WebkitUserSelect&quot;,&quot;msUserSelect&quot;]);r.disableDrag=function(){n&amp;&amp;o&amp;&amp;(a=n[o],n[o]=&quot;none&quot;)},r.enableDrag=function(){n&amp;&amp;o&amp;&amp;(n[o]=a)};var s=i([&quot;transform&quot;,&quot;WebkitTransform&quot;]);r.setTransform=function(t,e){t.style[s]=e};var l=!1;try{var c=Object.defineProperty({},&quot;passive&quot;,{get:function(){l=!0}});t.window.addEventListener(&quot;test&quot;,c,c),t.window.removeEventListener(&quot;test&quot;,c,c)}catch(t){l=!1}r.addEventListener=function(t,e,r,n){void 0===n&amp;&amp;(n={}),t.addEventListener(e,r,&quot;passive&quot;in n&amp;&amp;l?n:n.capture)},r.removeEventListener=function(t,e,r,n){void 0===n&amp;&amp;(n={}),t.removeEventListener(e,r,&quot;passive&quot;in n&amp;&amp;l?n:n.capture)};var u=function(e){e.preventDefault(),e.stopPropagation(),t.window.removeEventListener(&quot;click&quot;,u,!0)};function f(t){var e=t.userImage;return!!(e&amp;&amp;e.render&amp;&amp;e.render())&amp;&amp;(t.data.replace(new Uint8Array(e.data.buffer)),!0)}r.suppressClick=function(){t.window.addEventListener(&quot;click&quot;,u,!0),t.window.setTimeout((function(){t.window.removeEventListener(&quot;click&quot;,u,!0)}),0)},r.mousePos=function(e,r){var n=e.getBoundingClientRect();return new t.Point(r.clientX-n.left-e.clientLeft,r.clientY-n.top-e.clientTop)},r.touchPos=function(e,r){for(var n=e.getBoundingClientRect(),i=[],a=0;a&lt;r.length;a++)i.push(new t.Point(r[a].clientX-n.left-e.clientLeft,r[a].clientY-n.top-e.clientTop));return i},r.mouseButton=function(e){return void 0!==t.window.InstallTrigger&amp;&amp;2===e.button&amp;&amp;e.ctrlKey&amp;&amp;t.window.navigator.platform.toUpperCase().indexOf(&quot;MAC&quot;)&gt;=0?0:e.button},r.remove=function(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)};var h=function(e){function r(){e.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.isLoaded=function(){return this.loaded},r.prototype.setLoaded=function(t){if(this.loaded!==t&amp;&amp;(this.loaded=t,t)){for(var e=0,r=this.requestors;e&lt;r.length;e+=1){var n=r[e];this._notify(n.ids,n.callback)}this.requestors=[]}},r.prototype.getImage=function(t){return this.images[t]},r.prototype.addImage=function(t,e){this._validate(t,e)&amp;&amp;(this.images[t]=e)},r.prototype._validate=function(e,r){var n=!0;return this._validateStretch(r.stretchX,r.data&amp;&amp;r.data.width)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;stretchX&quot; value'))),n=!1),this._validateStretch(r.stretchY,r.data&amp;&amp;r.data.height)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;stretchY&quot; value'))),n=!1),this._validateContent(r.content,r)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;content&quot; value'))),n=!1),n},r.prototype._validateStretch=function(t,e){if(!t)return!0;for(var r=0,n=0,i=t;n&lt;i.length;n+=1){var a=i[n];if(a[0]&lt;r||a[1]&lt;a[0]||e&lt;a[1])return!1;r=a[1]}return!0},r.prototype._validateContent=function(t,e){return!(t&amp;&amp;(4!==t.length||t[0]&lt;0||e.data.width&lt;t[0]||t[1]&lt;0||e.data.height&lt;t[1]||t[2]&lt;0||e.data.width&lt;t[2]||t[3]&lt;0||e.data.height&lt;t[3]||t[2]&lt;t[0]||t[3]&lt;t[1]))},r.prototype.updateImage=function(t,e){e.version=this.images[t].version+1,this.images[t]=e,this.updatedImages[t]=!0},r.prototype.removeImage=function(t){var e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&amp;&amp;e.userImage.onRemove&amp;&amp;e.userImage.onRemove()},r.prototype.listImages=function(){return Object.keys(this.images)},r.prototype.getImages=function(t,e){var r=!0;if(!this.isLoaded())for(var n=0,i=t;n&lt;i.length;n+=1)this.images[i[n]]||(r=!1);this.isLoaded()||r?this._notify(t,e):this.requestors.push({ids:t,callback:e})},r.prototype._notify=function(e,r){for(var n={},i=0,a=e;i&lt;a.length;i+=1){var o=a[i];this.images[o]||this.fire(new t.Event(&quot;styleimagemissing&quot;,{id:o}));var s=this.images[o];s?n[o]={data:s.data.clone(),pixelRatio:s.pixelRatio,sdf:s.sdf,version:s.version,stretchX:s.stretchX,stretchY:s.stretchY,content:s.content,hasRenderCallback:Boolean(s.userImage&amp;&amp;s.userImage.render)}:t.warnOnce('Image &quot;'+o+'&quot; could not be loaded. Please make sure you have added the image with map.addImage() or a &quot;sprite&quot; property in your style. You can provide missing images by listening for the &quot;styleimagemissing&quot; map event.')}r(null,n)},r.prototype.getPixelSize=function(){var t=this.atlasImage;return{width:t.width,height:t.height}},r.prototype.getPattern=function(e){var r=this.patterns[e],n=this.getImage(e);if(!n)return null;if(r&amp;&amp;r.position.version===n.version)return r.position;if(r)r.position.version=n.version;else{var i={w:n.data.width+2,h:n.data.height+2,x:0,y:0},a=new t.ImagePosition(i,n);this.patterns[e]={bin:i,position:a}}return this._updatePatternAtlas(),this.patterns[e].position},r.prototype.bind=function(e){var r=e.gl;this.atlasTexture?this.dirty&amp;&amp;(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new t.Texture(e,this.atlasImage,r.RGBA),this.atlasTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)},r.prototype._updatePatternAtlas=function(){var e=[];for(var r in this.patterns)e.push(this.patterns[r].bin);var n=t.potpack(e),i=n.w,a=n.h,o=this.atlasImage;for(var s in o.resize({width:i||1,height:a||1}),this.patterns){var l=this.patterns[s].bin,c=l.x+1,u=l.y+1,f=this.images[s].data,h=f.width,p=f.height;t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u},{width:h,height:p}),t.RGBAImage.copy(f,o,{x:0,y:p-1},{x:c,y:u-1},{width:h,height:1}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u+p},{width:h,height:1}),t.RGBAImage.copy(f,o,{x:h-1,y:0},{x:c-1,y:u},{width:1,height:p}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c+h,y:u},{width:1,height:p})}this.dirty=!0},r.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},r.prototype.dispatchRenderCallbacks=function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var n=r[e];if(!this.callbackDispatchedThisFrame[n]){this.callbackDispatchedThisFrame[n]=!0;var i=this.images[n];f(i)&amp;&amp;this.updateImage(n,i)}}},r}(t.Evented),p=m,d=m,g=1e20;function m(t,e,r,n,i,a){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=n||.25,this.fontFamily=i||&quot;sans-serif&quot;,this.fontWeight=a||&quot;normal&quot;,this.radius=r||8;var o=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement(&quot;canvas&quot;),this.canvas.width=this.canvas.height=o,this.ctx=this.canvas.getContext(&quot;2d&quot;),this.ctx.font=this.fontWeight+&quot; &quot;+this.fontSize+&quot;px &quot;+this.fontFamily,this.ctx.textBaseline=&quot;middle&quot;,this.ctx.fillStyle=&quot;black&quot;,this.gridOuter=new Float64Array(o*o),this.gridInner=new Float64Array(o*o),this.f=new Float64Array(o),this.d=new Float64Array(o),this.z=new Float64Array(o+1),this.v=new Int16Array(o),this.middle=Math.round(o/2*(navigator.userAgent.indexOf(&quot;Gecko/&quot;)&gt;=0?1.2:1))}function v(t,e,r,n,i,a,o){for(var s=0;s&lt;e;s++){for(var l=0;l&lt;r;l++)n[l]=t[l*e+s];for(y(n,i,a,o,r),l=0;l&lt;r;l++)t[l*e+s]=i[l]}for(l=0;l&lt;r;l++){for(s=0;s&lt;e;s++)n[s]=t[l*e+s];for(y(n,i,a,o,e),s=0;s&lt;e;s++)t[l*e+s]=Math.sqrt(i[s])}}function y(t,e,r,n,i){r[0]=0,n[0]=-g,n[1]=+g;for(var a=1,o=0;a&lt;i;a++){for(var s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);s&lt;=n[o];)o--,s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);r[++o]=a,n[o]=s,n[o+1]=+g}for(a=0,o=0;a&lt;i;a++){for(;n[o+1]&lt;a;)o++;e[a]=(a-r[o])*(a-r[o])+t[r[o]]}}m.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),r=new Uint8ClampedArray(this.size*this.size),n=0;n&lt;this.size*this.size;n++){var i=e.data[4*n+3]/255;this.gridOuter[n]=1===i?0:0===i?g:Math.pow(Math.max(0,.5-i),2),this.gridInner[n]=1===i?g:0===i?0:Math.pow(Math.max(0,i-.5),2)}for(v(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),v(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),n=0;n&lt;this.size*this.size;n++)r[n]=Math.max(0,Math.min(255,Math.round(255-255*((this.gridOuter[n]-this.gridInner[n])/this.radius+this.cutoff))));return r},p.default=d;var x=function(t,e){this.requestManager=t,this.localIdeographFontFamily=e,this.entries={}};x.prototype.setURL=function(t){this.url=t},x.prototype.getGlyphs=function(e,r){var n=this,i=[];for(var a in e)for(var o=0,s=e[a];o&lt;s.length;o+=1)i.push({stack:a,id:s[o]});t.asyncAll(i,(function(t,e){var r=t.stack,i=t.id,a=n.entries[r];a||(a=n.entries[r]={glyphs:{},requests:{},ranges:{}});var o=a.glyphs[i];if(void 0===o){if(o=n._tinySDF(a,r,i))return a.glyphs[i]=o,void e(null,{stack:r,id:i,glyph:o});var s=Math.floor(i/256);if(256*s&gt;65535)e(new Error(&quot;glyphs &gt; 65535 not supported&quot;));else if(a.ranges[s])e(null,{stack:r,id:i,glyph:o});else{var l=a.requests[s];l||(l=a.requests[s]=[],x.loadGlyphRange(r,s,n.url,n.requestManager,(function(t,e){if(e){for(var r in e)n._doesCharSupportLocalGlyph(+r)||(a.glyphs[+r]=e[+r]);a.ranges[s]=!0}for(var i=0,o=l;i&lt;o.length;i+=1)(0,o[i])(t,e);delete a.requests[s]}))),l.push((function(t,n){t?e(t):n&amp;&amp;e(null,{stack:r,id:i,glyph:n[i]||null})}))}}else e(null,{stack:r,id:i,glyph:o})}),(function(t,e){if(t)r(t);else if(e){for(var n={},i=0,a=e;i&lt;a.length;i+=1){var o=a[i],s=o.stack,l=o.id,c=o.glyph;(n[s]||(n[s]={}))[l]=c&amp;&amp;{id:c.id,bitmap:c.bitmap.clone(),metrics:c.metrics}}r(null,n)}}))},x.prototype._doesCharSupportLocalGlyph=function(e){return!!this.localIdeographFontFamily&amp;&amp;(t.isChar[&quot;CJK Unified Ideographs&quot;](e)||t.isChar[&quot;Hangul Syllables&quot;](e)||t.isChar.Hiragana(e)||t.isChar.Katakana(e))},x.prototype._tinySDF=function(e,r,n){var i=this.localIdeographFontFamily;if(i&amp;&amp;this._doesCharSupportLocalGlyph(n)){var a=e.tinySDF;if(!a){var o=&quot;400&quot;;/bold/i.test(r)?o=&quot;900&quot;:/medium/i.test(r)?o=&quot;500&quot;:/light/i.test(r)&amp;&amp;(o=&quot;200&quot;),a=e.tinySDF=new x.TinySDF(24,3,8,.25,i,o)}return{id:n,bitmap:new t.AlphaImage({width:30,height:30},a.draw(String.fromCharCode(n))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},x.loadGlyphRange=function(e,r,n,i,a){var o=256*r,s=o+255,l=i.transformRequest(i.normalizeGlyphsURL(n).replace(&quot;{fontstack}&quot;,e).replace(&quot;{range}&quot;,o+&quot;-&quot;+s),t.ResourceType.Glyphs);t.getArrayBuffer(l,(function(e,r){if(e)a(e);else if(r){for(var n={},i=0,o=t.parseGlyphPBF(r);i&lt;o.length;i+=1){var s=o[i];n[s.id]=s}a(null,n)}}))},x.TinySDF=p;var b=function(){this.specification=t.styleSpec.light.position};b.prototype.possiblyEvaluate=function(e,r){return t.sphericalToCartesian(e.expression.evaluate(r))},b.prototype.interpolate=function(e,r,n){return{x:t.number(e.x,r.x,n),y:t.number(e.y,r.y,n),z:t.number(e.z,r.z,n)}};var _=new t.Properties({anchor:new t.DataConstantProperty(t.styleSpec.light.anchor),position:new b,color:new t.DataConstantProperty(t.styleSpec.light.color),intensity:new t.DataConstantProperty(t.styleSpec.light.intensity)}),w=function(e){function r(r){e.call(this),this._transitionable=new t.Transitionable(_),this.setLight(r),this._transitioning=this._transitionable.untransitioned()}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getLight=function(){return this._transitionable.serialize()},r.prototype.setLight=function(e,r){if(void 0===r&amp;&amp;(r={}),!this._validate(t.validateLight,e,r))for(var n in e){var i=e[n];t.endsWith(n,&quot;-transition&quot;)?this._transitionable.setTransition(n.slice(0,-&quot;-transition&quot;.length),i):this._transitionable.setValue(n,i)}},r.prototype.updateTransitions=function(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)},r.prototype.hasTransition=function(){return this._transitioning.hasTransition()},r.prototype.recalculate=function(t){this.properties=this._transitioning.possiblyEvaluate(t)},r.prototype._validate=function(e,r,n){return(!n||!1!==n.validate)&amp;&amp;t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:r,style:{glyphs:!0,sprite:!0},styleSpec:t.styleSpec})))},r}(t.Evented),T=function(t,e){this.width=t,this.height=e,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}};T.prototype.getDash=function(t,e){var r=t.join(&quot;,&quot;)+String(e);return this.dashEntry[r]||(this.dashEntry[r]=this.addDash(t,e)),this.dashEntry[r]},T.prototype.getDashRanges=function(t,e,r){var n=[],i=t.length%2==1?-t[t.length-1]*r:0,a=t[0]*r,o=!0;n.push({left:i,right:a,isDash:o,zeroLength:0===t[0]});for(var s=t[0],l=1;l&lt;t.length;l++){var c=t[l];n.push({left:i=s*r,right:a=(s+=c)*r,isDash:o=!o,zeroLength:0===c})}return n},T.prototype.addRoundDash=function(t,e,r){for(var n=e/2,i=-r;i&lt;=r;i++)for(var a=this.width*(this.nextRow+r+i),o=0,s=t[o],l=0;l&lt;this.width;l++){l/s.right&gt;1&amp;&amp;(s=t[++o]);var c=Math.abs(l-s.left),u=Math.abs(l-s.right),f=Math.min(c,u),h=void 0,p=i/r*(n+1);if(s.isDash){var d=n-Math.abs(p);h=Math.sqrt(f*f+d*d)}else h=n-Math.sqrt(f*f+p*p);this.data[a+l]=Math.max(0,Math.min(255,h+128))}},T.prototype.addRegularDash=function(t){for(var e=t.length-1;e&gt;=0;--e){var r=t[e],n=t[e+1];r.zeroLength?t.splice(e,1):n&amp;&amp;n.isDash===r.isDash&amp;&amp;(n.left=r.left,t.splice(e,1))}var i=t[0],a=t[t.length-1];i.isDash===a.isDash&amp;&amp;(i.left=a.left-this.width,a.right=i.right+this.width);for(var o=this.width*this.nextRow,s=0,l=t[s],c=0;c&lt;this.width;c++){c/l.right&gt;1&amp;&amp;(l=t[++s]);var u=Math.abs(c-l.left),f=Math.abs(c-l.right),h=Math.min(u,f);this.data[o+c]=Math.max(0,Math.min(255,(l.isDash?h:-h)+128))}},T.prototype.addDash=function(e,r){var n=r?7:0,i=2*n+1;if(this.nextRow+i&gt;this.height)return t.warnOnce(&quot;LineAtlas out of space&quot;),null;for(var a=0,o=0;o&lt;e.length;o++)a+=e[o];if(0!==a){var s=this.width/a,l=this.getDashRanges(e,this.width,s);r?this.addRoundDash(l,s,n):this.addRegularDash(l)}var c={y:(this.nextRow+n+.5)/this.height,height:2*n/this.height,width:a};return this.nextRow+=i,this.dirty=!0,c},T.prototype.bind=function(t){var e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&amp;&amp;(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.ALPHA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.ALPHA,this.width,this.height,0,e.ALPHA,e.UNSIGNED_BYTE,this.data))};var k=function e(r,n){this.workerPool=r,this.actors=[],this.currentActor=0,this.id=t.uniqueId();for(var i=this.workerPool.acquire(this.id),a=0;a&lt;i.length;a++){var o=new e.Actor(i[a],n,this.id);o.name=&quot;Worker &quot;+a,this.actors.push(o)}};function M(e,r,n){var i=function(i,a){if(i)return n(i);if(a){var o=t.pick(t.extend(a,e),[&quot;tiles&quot;,&quot;minzoom&quot;,&quot;maxzoom&quot;,&quot;attribution&quot;,&quot;mapbox_logo&quot;,&quot;bounds&quot;,&quot;scheme&quot;,&quot;tileSize&quot;,&quot;encoding&quot;]);a.vector_layers&amp;&amp;(o.vectorLayers=a.vector_layers,o.vectorLayerIds=o.vectorLayers.map((function(t){return t.id}))),o.tiles=r.canonicalizeTileset(o,e.url),n(null,o)}};return e.url?t.getJSON(r.transformRequest(r.normalizeSourceURL(e.url),t.ResourceType.Source),i):t.browser.frame((function(){return i(null,e)}))}k.prototype.broadcast=function(e,r,n){t.asyncAll(this.actors,(function(t,n){t.send(e,r,n)}),n=n||function(){})},k.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},k.prototype.remove=function(){this.actors.forEach((function(t){t.remove()})),this.actors=[],this.workerPool.release(this.id)},k.Actor=t.Actor;var A=function(e,r,n){this.bounds=t.LngLatBounds.convert(this.validateBounds(e)),this.minzoom=r||0,this.maxzoom=n||24};A.prototype.validateBounds=function(t){return Array.isArray(t)&amp;&amp;4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]},A.prototype.contains=function(e){var r=Math.pow(2,e.z),n=Math.floor(t.mercatorXfromLng(this.bounds.getWest())*r),i=Math.floor(t.mercatorYfromLat(this.bounds.getNorth())*r),a=Math.ceil(t.mercatorXfromLng(this.bounds.getEast())*r),o=Math.ceil(t.mercatorYfromLat(this.bounds.getSouth())*r);return e.x&gt;=n&amp;&amp;e.x&lt;a&amp;&amp;e.y&gt;=i&amp;&amp;e.y&lt;o};var S=function(e){function r(r,n,i,a){if(e.call(this),this.id=r,this.dispatcher=i,this.type=&quot;vector&quot;,this.minzoom=0,this.maxzoom=22,this.scheme=&quot;xyz&quot;,this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,t.extend(this,t.pick(n,[&quot;url&quot;,&quot;scheme&quot;,&quot;tileSize&quot;,&quot;promoteId&quot;])),this._options=t.extend({type:&quot;vector&quot;},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error(&quot;vector tile sources must have a tileSize of 512&quot;);this.setEventedParent(a)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._tileJSONRequest=M(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(t.extend(e,n),n.bounds&amp;&amp;(e.tileBounds=new A(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles,e.map._requestManager._customAccessToken),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken,e.map._requestManager._customAccessToken),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme)),i={request:this.map._requestManager.transformRequest(n,t.ResourceType.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function a(n,i){return delete e.request,e.aborted?r(null):n&amp;&amp;404!==n.status?r(n):(i&amp;&amp;i.resourceTiming&amp;&amp;(e.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&amp;&amp;i&amp;&amp;e.setExpiryData(i),e.loadVectorData(i,this.map.painter),t.cacheEntryPossiblyAdded(this.dispatcher),r(null),void(e.reloadCallback&amp;&amp;(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}i.request.collectResourceTiming=this._collectResourceTiming,e.actor&amp;&amp;&quot;expired&quot;!==e.state?&quot;loading&quot;===e.state?e.reloadCallback=r:e.request=e.actor.send(&quot;reloadTile&quot;,i,a.bind(this)):(e.actor=this.dispatcher.getActor(),e.request=e.actor.send(&quot;loadTile&quot;,i,a.bind(this)))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.actor&amp;&amp;t.actor.send(&quot;abortTile&quot;,{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.unloadTile=function(t){t.unloadVectorData(),t.actor&amp;&amp;t.actor.send(&quot;removeTile&quot;,{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.hasTransition=function(){return!1},r}(t.Evented),E=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.dispatcher=i,this.setEventedParent(a),this.type=&quot;raster&quot;,this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme=&quot;xyz&quot;,this.tileSize=512,this._loaded=!1,this._options=t.extend({type:&quot;raster&quot;},n),t.extend(this,t.pick(n,[&quot;url&quot;,&quot;scheme&quot;,&quot;tileSize&quot;]))}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._tileJSONRequest=M(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(t.extend(e,n),n.bounds&amp;&amp;(e.tileBounds=new A(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.loadTile=function(e,r){var n=this,i=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);e.request=t.getImage(this.map._requestManager.transformRequest(i,t.ResourceType.Tile),(function(i,a){if(delete e.request,e.aborted)e.state=&quot;unloaded&quot;,r(null);else if(i)e.state=&quot;errored&quot;,r(i);else if(a){n.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(a),delete a.cacheControl,delete a.expires;var o=n.map.painter.context,s=o.gl;e.texture=n.map.painter.getTileTexture(a.width),e.texture?e.texture.update(a,{useMipmap:!0}):(e.texture=new t.Texture(o,a,s.RGBA,{useMipmap:!0}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),o.extTextureFilterAnisotropic&amp;&amp;s.texParameterf(s.TEXTURE_2D,o.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,o.extTextureFilterAnisotropicMax)),e.state=&quot;loaded&quot;,t.cacheEntryPossiblyAdded(n.dispatcher),r(null)}}))},r.prototype.abortTile=function(t,e){t.request&amp;&amp;(t.request.cancel(),delete t.request),e()},r.prototype.unloadTile=function(t,e){t.texture&amp;&amp;this.map.painter.saveTileTexture(t.texture),e()},r.prototype.hasTransition=function(){return!1},r}(t.Evented),C=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),this.type=&quot;raster-dem&quot;,this.maxzoom=22,this._options=t.extend({type:&quot;raster-dem&quot;},n),this.encoding=n.encoding||&quot;mapbox&quot;}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.serialize=function(){return{type:&quot;raster-dem&quot;,url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);function i(t,n){t&amp;&amp;(e.state=&quot;errored&quot;,r(t)),n&amp;&amp;(e.dem=n,e.needsHillshadePrepare=!0,e.state=&quot;loaded&quot;,r(null))}e.request=t.getImage(this.map._requestManager.transformRequest(n,t.ResourceType.Tile),function(n,a){if(delete e.request,e.aborted)e.state=&quot;unloaded&quot;,r(null);else if(n)e.state=&quot;errored&quot;,r(n);else if(a){this.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(a),delete a.cacheControl,delete a.expires;var o=t.window.ImageBitmap&amp;&amp;a instanceof t.window.ImageBitmap&amp;&amp;t.offscreenCanvasSupported()?a:t.browser.getImageData(a,1),s={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:o,encoding:this.encoding};e.actor&amp;&amp;&quot;expired&quot;!==e.state||(e.actor=this.dispatcher.getActor(),e.actor.send(&quot;loadDEMTile&quot;,s,i.bind(this)))}}.bind(this)),e.neighboringTiles=this._getNeighboringTiles(e.tileID)},r.prototype._getNeighboringTiles=function(e){var r=e.canonical,n=Math.pow(2,r.z),i=(r.x-1+n)%n,a=0===r.x?e.wrap-1:e.wrap,o=(r.x+1+n)%n,s=r.x+1===n?e.wrap+1:e.wrap,l={};return l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y).key]={backfilled:!1},r.y&gt;0&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y-1).key]={backfilled:!1}),r.y+1&lt;n&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y+1).key]={backfilled:!1}),l},r.prototype.unloadTile=function(t){t.demTexture&amp;&amp;this.map.painter.saveTileTexture(t.demTexture),t.fbo&amp;&amp;(t.fbo.destroy(),delete t.fbo),t.dem&amp;&amp;delete t.dem,delete t.neighboringTiles,t.state=&quot;unloaded&quot;,t.actor&amp;&amp;t.actor.send(&quot;removeDEMTile&quot;,{uid:t.uid,source:this.id})},r}(E),L=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.type=&quot;geojson&quot;,this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=i.getActor(),this.setEventedParent(a),this._data=n.data,this._options=t.extend({},n),this._collectResourceTiming=n.collectResourceTiming,this._resourceTiming=[],void 0!==n.maxzoom&amp;&amp;(this.maxzoom=n.maxzoom),n.type&amp;&amp;(this.type=n.type),n.attribution&amp;&amp;(this.attribution=n.attribution),this.promoteId=n.promoteId;var o=t.EXTENT/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*o,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*o,extent:t.EXTENT,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?Math.min(n.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,extent:t.EXTENT,radius:(n.clusterRadius||50)*o,log:!1,generateId:n.generateId||!1},clusterProperties:n.clusterProperties},n.workerOptions)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._updateWorkerData((function(r){if(r)e.fire(new t.ErrorEvent(r));else{var n={dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;};e._collectResourceTiming&amp;&amp;e._resourceTiming&amp;&amp;e._resourceTiming.length&gt;0&amp;&amp;(n.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event(&quot;data&quot;,n))}}))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setData=function(e){var r=this;return this._data=e,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._updateWorkerData((function(e){if(e)r.fire(new t.ErrorEvent(e));else{var n={dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;};r._collectResourceTiming&amp;&amp;r._resourceTiming&amp;&amp;r._resourceTiming.length&gt;0&amp;&amp;(n.resourceTiming=r._resourceTiming,r._resourceTiming=[]),r.fire(new t.Event(&quot;data&quot;,n))}})),this},r.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send(&quot;geojson.getClusterExpansionZoom&quot;,{clusterId:t,source:this.id},e),this},r.prototype.getClusterChildren=function(t,e){return this.actor.send(&quot;geojson.getClusterChildren&quot;,{clusterId:t,source:this.id},e),this},r.prototype.getClusterLeaves=function(t,e,r,n){return this.actor.send(&quot;geojson.getClusterLeaves&quot;,{source:this.id,clusterId:t,limit:e,offset:r},n),this},r.prototype._updateWorkerData=function(e){var r=this;this._loaded=!1;var n=t.extend({},this.workerOptions),i=this._data;&quot;string&quot;==typeof i?(n.request=this.map._requestManager.transformRequest(t.browser.resolveURL(i),t.ResourceType.Source),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(i),this.actor.send(this.type+&quot;.loadData&quot;,n,(function(t,i){r._removed||i&amp;&amp;i.abandoned||(r._loaded=!0,i&amp;&amp;i.resourceTiming&amp;&amp;i.resourceTiming[r.id]&amp;&amp;(r._resourceTiming=i.resourceTiming[r.id].slice(0)),r.actor.send(r.type+&quot;.coalesce&quot;,{source:n.source},null),e(t))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.loadTile=function(e,r){var n=this,i=e.actor?&quot;reloadTile&quot;:&quot;loadTile&quot;;e.actor=this.actor,e.request=this.actor.send(i,{type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(function(t,a){return delete e.request,e.unloadVectorData(),e.aborted?r(null):t?r(t):(e.loadVectorData(a,n.map.painter,&quot;reloadTile&quot;===i),r(null))}))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.aborted=!0},r.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send(&quot;removeTile&quot;,{uid:t.uid,type:this.type,source:this.id})},r.prototype.onRemove=function(){this._removed=!0,this.actor.send(&quot;removeSource&quot;,{type:this.type,source:this.id})},r.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},r.prototype.hasTransition=function(){return!1},r}(t.Evented),I=t.createLayout([{name:&quot;a_pos&quot;,type:&quot;Int16&quot;,components:2},{name:&quot;a_texture_pos&quot;,type:&quot;Int16&quot;,components:2}]),P=function(e){function r(t,r,n,i){e.call(this),this.id=t,this.dispatcher=n,this.coordinates=r.coordinates,this.type=&quot;image&quot;,this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=r}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(e,r){var n=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(function(i,a){n._loaded=!0,i?n.fire(new t.ErrorEvent(i)):a&amp;&amp;(n.image=a,e&amp;&amp;(n.coordinates=e),r&amp;&amp;r(),n._finishLoading())}))},r.prototype.loaded=function(){return this._loaded},r.prototype.updateImage=function(t){var e=this;return this.image&amp;&amp;t.url?(this.options.url=t.url,this.load(t.coordinates,(function(){e.texture=null})),this):this},r.prototype._finishLoading=function(){this.map&amp;&amp;(this.setCoordinates(this.coordinates),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setCoordinates=function(e){var r=this;this.coordinates=e;var n=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){for(var r=1/0,n=1/0,i=-1/0,a=-1/0,o=0,s=e;o&lt;s.length;o+=1){var l=s[o];r=Math.min(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.x),a=Math.max(a,l.y)}var c=Math.max(i-r,a-n),u=Math.max(0,Math.floor(-Math.log(c)/Math.LN2)),f=Math.pow(2,u);return new t.CanonicalTileID(u,Math.floor((r+i)/2*f),Math.floor((n+a)/2*f))}(n),this.minzoom=this.maxzoom=this.tileID.z;var i=n.map((function(t){return r.tileID.getTilePoint(t)._round()}));return this._boundsArray=new t.StructArrayLayout4i8,this._boundsArray.emplaceBack(i[0].x,i[0].y,0,0),this._boundsArray.emplaceBack(i[1].x,i[1].y,t.EXTENT,0),this._boundsArray.emplaceBack(i[3].x,i[3].y,0,t.EXTENT),this._boundsArray.emplaceBack(i[2].x,i[2].y,t.EXTENT,t.EXTENT),this.boundsBuffer&amp;&amp;(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})),this},r.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&amp;&amp;this.image){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new t.Texture(e,this.image,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];&quot;loaded&quot;!==i.state&amp;&amp;(i.state=&quot;loaded&quot;,i.texture=this.texture)}}},r.prototype.loadTile=function(t,e){this.tileID&amp;&amp;this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state=&quot;errored&quot;,e(null))},r.prototype.serialize=function(){return{type:&quot;image&quot;,url:this.options.url,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return!1},r}(t.Evented),z=function(e){function r(t,r,n,i){e.call(this,t,r,n,i),this.roundZoom=!0,this.type=&quot;video&quot;,this.options=r}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1;var r=this.options;this.urls=[];for(var n=0,i=r.urls;n&lt;i.length;n+=1)this.urls.push(this.map._requestManager.transformRequest(i[n],t.ResourceType.Source).url);t.getVideo(this.urls,(function(r,n){e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(e.video=n,e.video.loop=!0,e.video.addEventListener(&quot;playing&quot;,(function(){e.map.triggerRepaint()})),e.map&amp;&amp;e.video.play(),e._finishLoading())}))},r.prototype.pause=function(){this.video&amp;&amp;this.video.pause()},r.prototype.play=function(){this.video&amp;&amp;this.video.play()},r.prototype.seek=function(e){if(this.video){var r=this.video.seekable;e&lt;r.start(0)||e&gt;r.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+this.id,null,&quot;Playback for this video can be set only between the &quot;+r.start(0)+&quot; and &quot;+r.end(0)+&quot;-second mark.&quot;))):this.video.currentTime=e}},r.prototype.getVideo=function(){return this.video},r.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&amp;&amp;(this.video.play(),this.setCoordinates(this.coordinates)))},r.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState&lt;2)){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];&quot;loaded&quot;!==i.state&amp;&amp;(i.state=&quot;loaded&quot;,i.texture=this.texture)}}},r.prototype.serialize=function(){return{type:&quot;video&quot;,urls:this.urls,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this.video&amp;&amp;!this.video.paused},r}(P),O=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),n.coordinates?Array.isArray(n.coordinates)&amp;&amp;4===n.coordinates.length&amp;&amp;!n.coordinates.some((function(t){return!Array.isArray(t)||2!==t.length||t.some((function(t){return&quot;number&quot;!=typeof t}))}))||this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'&quot;coordinates&quot; property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'missing required property &quot;coordinates&quot;'))),n.animate&amp;&amp;&quot;boolean&quot;!=typeof n.animate&amp;&amp;this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'optional &quot;animate&quot; property must be a boolean value'))),n.canvas?&quot;string&quot;==typeof n.canvas||n.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'&quot;canvas&quot; must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'missing required property &quot;canvas&quot;'))),this.options=n,this.animate=void 0===n.animate||n.animate}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error(&quot;Canvas dimensions cannot be less than or equal to zero.&quot;))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&amp;&amp;(this.prepare(),this._playing=!1)},this._finishLoading())},r.prototype.getCanvas=function(){return this.canvas},r.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&amp;&amp;this.animate&amp;&amp;this.play()},r.prototype.onRemove=function(){this.pause()},r.prototype.prepare=function(){var e=!1;if(this.canvas.width!==this.width&amp;&amp;(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&amp;&amp;(this.height=this.canvas.height,e=!0),!this._hasInvalidDimensions()&amp;&amp;0!==Object.keys(this.tiles).length){var r=this.map.painter.context,n=r.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=r.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&amp;&amp;this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(r,this.canvas,n.RGBA,{premultiply:!0}),this.tiles){var a=this.tiles[i];&quot;loaded&quot;!==a.state&amp;&amp;(a.state=&quot;loaded&quot;,a.texture=this.texture)}}},r.prototype.serialize=function(){return{type:&quot;canvas&quot;,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this._playing},r.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];t&lt;e.length;t+=1){var r=e[t];if(isNaN(r)||r&lt;=0)return!0}return!1},r}(P),D={vector:S,raster:E,&quot;raster-dem&quot;:C,geojson:L,video:z,image:P,canvas:O};function R(e,r){var n=t.identity([]);return t.translate(n,n,[1,1,0]),t.scale(n,n,[.5*e.width,.5*e.height,1]),t.multiply(n,n,e.calculatePosMatrix(r.toUnwrapped()))}function F(t,e,r,n,i,a){var o=function(t,e,r){if(t)for(var n=0,i=t;n&lt;i.length;n+=1){var a=e[i[n]];if(a&amp;&amp;a.source===r&amp;&amp;&quot;fill-extrusion&quot;===a.type)return!0}else for(var o in e){var s=e[o];if(s.source===r&amp;&amp;&quot;fill-extrusion&quot;===s.type)return!0}return!1}(i&amp;&amp;i.layers,e,t.id),s=a.maxPitchScaleFactor(),l=t.tilesIn(n,s,o);l.sort(B);for(var c=[],u=0,f=l;u&lt;f.length;u+=1){var h=f[u];c.push({wrappedTileID:h.tileID.wrapped().key,queryResults:h.tile.queryRenderedFeatures(e,r,t._state,h.queryGeometry,h.cameraQueryGeometry,h.scale,i,a,s,R(t.transform,h.tileID))})}var p=function(t){for(var e={},r={},n=0,i=t;n&lt;i.length;n+=1){var a=i[n],o=a.queryResults,s=a.wrappedTileID,l=r[s]=r[s]||{};for(var c in o)for(var u=o[c],f=l[c]=l[c]||{},h=e[c]=e[c]||[],p=0,d=u;p&lt;d.length;p+=1){var g=d[p];f[g.featureIndex]||(f[g.featureIndex]=!0,h.push(g))}}return e}(c);for(var d in p)p[d].forEach((function(e){var r=e.feature,n=t.getFeatureState(r.layer[&quot;source-layer&quot;],r.id);r.source=r.layer.source,r.layer[&quot;source-layer&quot;]&amp;&amp;(r.sourceLayer=r.layer[&quot;source-layer&quot;]),r.state=n}));return p}function B(t,e){var r=t.tileID,n=e.tileID;return r.overscaledZ-n.overscaledZ||r.canonical.y-n.canonical.y||r.wrap-n.wrap||r.canonical.x-n.canonical.x}var N=function(t,e){this.max=t,this.onRemove=e,this.reset()};N.prototype.reset=function(){for(var t in this.data)for(var e=0,r=this.data[t];e&lt;r.length;e+=1){var n=r[e];n.timeout&amp;&amp;clearTimeout(n.timeout),this.onRemove(n.value)}return this.data={},this.order=[],this},N.prototype.add=function(t,e,r){var n=this,i=t.wrapped().key;void 0===this.data[i]&amp;&amp;(this.data[i]=[]);var a={value:e,timeout:void 0};if(void 0!==r&amp;&amp;(a.timeout=setTimeout((function(){n.remove(t,a)}),r)),this.data[i].push(a),this.order.push(i),this.order.length&gt;this.max){var o=this._getAndRemoveByKey(this.order[0]);o&amp;&amp;this.onRemove(o)}return this},N.prototype.has=function(t){return t.wrapped().key in this.data},N.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},N.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&amp;&amp;clearTimeout(e.timeout),0===this.data[t].length&amp;&amp;delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},N.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},N.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},N.prototype.remove=function(t,e){if(!this.has(t))return this;var r=t.wrapped().key,n=void 0===e?0:this.data[r].indexOf(e),i=this.data[r][n];return this.data[r].splice(n,1),i.timeout&amp;&amp;clearTimeout(i.timeout),0===this.data[r].length&amp;&amp;delete this.data[r],this.onRemove(i.value),this.order.splice(this.order.indexOf(r),1),this},N.prototype.setMaxSize=function(t){for(this.max=t;this.order.length&gt;this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&amp;&amp;this.onRemove(e)}return this},N.prototype.filter=function(t){var e=[];for(var r in this.data)for(var n=0,i=this.data[r];n&lt;i.length;n+=1){var a=i[n];t(a.value)||e.push(a)}for(var o=0,s=e;o&lt;s.length;o+=1){var l=s[o];this.remove(l.value.tileID,l)}};var j=function(t,e,r){this.context=t;var n=t.gl;this.buffer=n.createBuffer(),this.dynamicDraw=Boolean(r),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),n.bufferData(n.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};j.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},j.prototype.updateData=function(t){var e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)},j.prototype.destroy=function(){this.buffer&amp;&amp;(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var U={Int8:&quot;BYTE&quot;,Uint8:&quot;UNSIGNED_BYTE&quot;,Int16:&quot;SHORT&quot;,Uint16:&quot;UNSIGNED_SHORT&quot;,Int32:&quot;INT&quot;,Uint32:&quot;UNSIGNED_INT&quot;,Float32:&quot;FLOAT&quot;},V=function(t,e,r,n){this.length=e.length,this.attributes=r,this.itemSize=e.bytesPerElement,this.dynamicDraw=n,this.context=t;var i=t.gl;this.buffer=i.createBuffer(),t.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};V.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},V.prototype.updateData=function(t){var e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)},V.prototype.enableAttributes=function(t,e){for(var r=0;r&lt;this.attributes.length;r++){var n=e.attributes[this.attributes[r].name];void 0!==n&amp;&amp;t.enableVertexAttribArray(n)}},V.prototype.setVertexAttribPointers=function(t,e,r){for(var n=0;n&lt;this.attributes.length;n++){var i=this.attributes[n],a=e.attributes[i.name];void 0!==a&amp;&amp;t.vertexAttribPointer(a,i.components,t[U[i.type]],!1,this.itemSize,i.offset+this.itemSize*(r||0))}},V.prototype.destroy=function(){this.buffer&amp;&amp;(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var q=function(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};q.prototype.get=function(){return this.current},q.prototype.set=function(t){},q.prototype.getDefault=function(){return this.default},q.prototype.setDefault=function(){this.set(this.default)};var H=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),G=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 1},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearDepth(t),this.current=t,this.dirty=!1)},e}(q),Y=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearStencil(t),this.current=t,this.dirty=!1)},e}(q),W=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return[!0,!0,!0,!0]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),X=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthMask(t),this.current=t,this.dirty=!1)},e}(q),Z=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 255},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.stencilMask(t),this.current=t,this.dirty=!1)},e}(q),J=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},e.prototype.set=function(t){var e=this.current;(t.func!==e.func||t.ref!==e.ref||t.mask!==e.mask||this.dirty)&amp;&amp;(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)},e}(q),K=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||this.dirty)&amp;&amp;(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)},e}(q),Q=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}},e}(q),$=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return[0,1]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),tt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}},e}(q),et=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.LESS},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthFunc(t),this.current=t,this.dirty=!1)},e}(q),rt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}},e}(q),nt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.ONE,t.ZERO]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),it=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),at=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.FUNC_ADD},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.blendEquation(t),this.current=t,this.dirty=!1)},e}(q),ot=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}},e}(q),st=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.BACK},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.cullFace(t),this.current=t,this.dirty=!1)},e}(q),lt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.CCW},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.frontFace(t),this.current=t,this.dirty=!1)},e}(q),ct=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.useProgram(t),this.current=t,this.dirty=!1)},e}(q),ut=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.TEXTURE0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.activeTexture(t),this.current=t,this.dirty=!1)},e}(q),ft=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),ht=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}},e}(q),pt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(q),dt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}},e}(q),gt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}},e}(q),mt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1},e}(q),vt=function(t){function e(e){t.call(this,e),this.vao=e.extVertexArrayObject}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){this.vao&amp;&amp;(t!==this.current||this.dirty)&amp;&amp;(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1)},e}(q),yt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 4},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}},e}(q),xt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),bt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),_t=function(t){function e(e,r){t.call(this,e),this.context=e,this.parent=r}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e}(q),wt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.setDirty=function(){this.dirty=!0},e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},e}(_t),Tt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(_t),kt=function(t,e,r,n){this.context=t,this.width=e,this.height=r;var i=this.framebuffer=t.gl.createFramebuffer();this.colorAttachment=new wt(t,i),n&amp;&amp;(this.depthAttachment=new Tt(t,i))};kt.prototype.destroy=function(){var t=this.context.gl,e=this.colorAttachment.get();if(e&amp;&amp;t.deleteTexture(e),this.depthAttachment){var r=this.depthAttachment.get();r&amp;&amp;t.deleteRenderbuffer(r)}t.deleteFramebuffer(this.framebuffer)};var Mt=function(t,e,r){this.func=t,this.mask=e,this.range=r};Mt.ReadOnly=!1,Mt.ReadWrite=!0,Mt.disabled=new Mt(519,Mt.ReadOnly,[0,1]);var At=function(t,e,r,n,i,a){this.test=t,this.ref=e,this.mask=r,this.fail=n,this.depthFail=i,this.pass=a};At.disabled=new At({func:519,mask:0},0,0,7680,7680,7680);var St=function(t,e,r){this.blendFunction=t,this.blendColor=e,this.mask=r};St.disabled=new St(St.Replace=[1,0],t.Color.transparent,[!1,!1,!1,!1]),St.unblended=new St(St.Replace,t.Color.transparent,[!0,!0,!0,!0]),St.alphaBlended=new St([1,771],t.Color.transparent,[!0,!0,!0,!0]);var Et=function(t,e,r){this.enable=t,this.mode=e,this.frontFace=r};Et.disabled=new Et(!1,1029,2305),Et.backCCW=new Et(!0,1029,2305);var Ct=function(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension(&quot;OES_vertex_array_object&quot;),this.clearColor=new H(this),this.clearDepth=new G(this),this.clearStencil=new Y(this),this.colorMask=new W(this),this.depthMask=new X(this),this.stencilMask=new Z(this),this.stencilFunc=new J(this),this.stencilOp=new K(this),this.stencilTest=new Q(this),this.depthRange=new $(this),this.depthTest=new tt(this),this.depthFunc=new et(this),this.blend=new rt(this),this.blendFunc=new nt(this),this.blendColor=new it(this),this.blendEquation=new at(this),this.cullFace=new ot(this),this.cullFaceSide=new st(this),this.frontFace=new lt(this),this.program=new ct(this),this.activeTexture=new ut(this),this.viewport=new ft(this),this.bindFramebuffer=new ht(this),this.bindRenderbuffer=new pt(this),this.bindTexture=new dt(this),this.bindVertexBuffer=new gt(this),this.bindElementBuffer=new mt(this),this.bindVertexArrayOES=this.extVertexArrayObject&amp;&amp;new vt(this),this.pixelStoreUnpack=new yt(this),this.pixelStoreUnpackPremultiplyAlpha=new xt(this),this.pixelStoreUnpackFlipY=new bt(this),this.extTextureFilterAnisotropic=t.getExtension(&quot;EXT_texture_filter_anisotropic&quot;)||t.getExtension(&quot;MOZ_EXT_texture_filter_anisotropic&quot;)||t.getExtension(&quot;WEBKIT_EXT_texture_filter_anisotropic&quot;),this.extTextureFilterAnisotropic&amp;&amp;(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension(&quot;OES_texture_half_float&quot;),this.extTextureHalfFloat&amp;&amp;(t.getExtension(&quot;OES_texture_half_float_linear&quot;),this.extRenderToTextureHalfFloat=t.getExtension(&quot;EXT_color_buffer_half_float&quot;)),this.extTimerQuery=t.getExtension(&quot;EXT_disjoint_timer_query&quot;)};Ct.prototype.setDefault=function(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()},Ct.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&amp;&amp;(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},Ct.prototype.createIndexBuffer=function(t,e){return new j(this,t,e)},Ct.prototype.createVertexBuffer=function(t,e,r){return new V(this,t,e,r)},Ct.prototype.createRenderbuffer=function(t,e,r){var n=this.gl,i=n.createRenderbuffer();return this.bindRenderbuffer.set(i),n.renderbufferStorage(n.RENDERBUFFER,t,e,r),this.bindRenderbuffer.set(null),i},Ct.prototype.createFramebuffer=function(t,e,r){return new kt(this,t,e,r)},Ct.prototype.clear=function(t){var e=t.color,r=t.depth,n=this.gl,i=0;e&amp;&amp;(i|=n.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==r&amp;&amp;(i|=n.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(r),this.depthMask.set(!0)),n.clear(i)},Ct.prototype.setCullFace=function(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))},Ct.prototype.setDepthMode=function(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)},Ct.prototype.setStencilMode=function(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)},Ct.prototype.setColorMode=function(e){t.deepEqual(e.blendFunction,St.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)},Ct.prototype.unbindVAO=function(){this.extVertexArrayObject&amp;&amp;this.bindVertexArrayOES.set(null)};var Lt=function(e){function r(r,n,i){var a=this;e.call(this),this.id=r,this.dispatcher=i,this.on(&quot;data&quot;,(function(t){&quot;source&quot;===t.dataType&amp;&amp;&quot;metadata&quot;===t.sourceDataType&amp;&amp;(a._sourceLoaded=!0),a._sourceLoaded&amp;&amp;!a._paused&amp;&amp;&quot;source&quot;===t.dataType&amp;&amp;&quot;content&quot;===t.sourceDataType&amp;&amp;(a.reload(),a.transform&amp;&amp;a.update(a.transform))})),this.on(&quot;error&quot;,(function(){a._sourceErrored=!0})),this._source=function(e,r,n,i){var a=new D[r.type](e,r,n,i);if(a.id!==e)throw new Error(&quot;Expected Source id to be &quot;+e+&quot; instead of &quot;+a.id);return t.bindAll([&quot;load&quot;,&quot;abort&quot;,&quot;unload&quot;,&quot;serialize&quot;,&quot;prepare&quot;],a),a}(r,n,i,this),this._tiles={},this._cache=new N(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new t.SourceFeatureState}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.onAdd=function(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&amp;&amp;this._source.onAdd&amp;&amp;this._source.onAdd(t)},r.prototype.onRemove=function(t){this._source&amp;&amp;this._source.onRemove&amp;&amp;this._source.onRemove(t)},r.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var t in this._tiles){var e=this._tiles[t];if(&quot;loaded&quot;!==e.state&amp;&amp;&quot;errored&quot;!==e.state)return!1}return!0},r.prototype.getSource=function(){return this._source},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){if(this._paused){var t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&amp;&amp;this.reload(),this.transform&amp;&amp;this.update(this.transform)}},r.prototype._loadTile=function(t,e){return this._source.loadTile(t,e)},r.prototype._unloadTile=function(t){if(this._source.unloadTile)return this._source.unloadTile(t,(function(){}))},r.prototype._abortTile=function(t){if(this._source.abortTile)return this._source.abortTile(t,(function(){}))},r.prototype.serialize=function(){return this._source.serialize()},r.prototype.prepare=function(t){for(var e in this._source.prepare&amp;&amp;this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var r=this._tiles[e];r.upload(t),r.prepare(this.map.style.imageManager)}},r.prototype.getIds=function(){return t.values(this._tiles).map((function(t){return t.tileID})).sort(It).map((function(t){return t.key}))},r.prototype.getRenderableIds=function(e){var r=this,n=[];for(var i in this._tiles)this._isIdRenderable(i,e)&amp;&amp;n.push(this._tiles[i]);return e?n.sort((function(e,n){var i=e.tileID,a=n.tileID,o=new t.Point(i.canonical.x,i.canonical.y)._rotate(r.transform.angle),s=new t.Point(a.canonical.x,a.canonical.y)._rotate(r.transform.angle);return i.overscaledZ-a.overscaledZ||s.y-o.y||s.x-o.x})).map((function(t){return t.tileID.key})):n.map((function(t){return t.tileID})).sort(It).map((function(t){return t.key}))},r.prototype.hasRenderableParent=function(t){var e=this.findLoadedParent(t,0);return!!e&amp;&amp;this._isIdRenderable(e.tileID.key)},r.prototype._isIdRenderable=function(t,e){return this._tiles[t]&amp;&amp;this._tiles[t].hasData()&amp;&amp;!this._coveredTiles[t]&amp;&amp;(e||!this._tiles[t].holdingForFade())},r.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var t in this._cache.reset(),this._tiles)&quot;errored&quot;!==this._tiles[t].state&amp;&amp;this._reloadTile(t,&quot;reloading&quot;)},r.prototype._reloadTile=function(t,e){var r=this._tiles[t];r&amp;&amp;(&quot;loading&quot;!==r.state&amp;&amp;(r.state=e),this._loadTile(r,this._tileLoaded.bind(this,r,t,e)))},r.prototype._tileLoaded=function(e,r,n,i){if(i)return e.state=&quot;errored&quot;,void(404!==i.status?this._source.fire(new t.ErrorEvent(i,{tile:e})):this.update(this.transform));e.timeAdded=t.browser.now(),&quot;expired&quot;===n&amp;&amp;(e.refreshedUponExpiration=!0),this._setTileReloadTimer(r,e),&quot;raster-dem&quot;===this.getSource().type&amp;&amp;e.dem&amp;&amp;this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,tile:e,coord:e.tileID}))},r.prototype._backfillDEM=function(t){for(var e=this.getRenderableIds(),r=0;r&lt;e.length;r++){var n=e[r];if(t.neighboringTiles&amp;&amp;t.neighboringTiles[n]){var i=this.getTileByID(n);a(t,i),a(i,t)}}function a(t,e){t.needsHillshadePrepare=!0;var r=e.tileID.canonical.x-t.tileID.canonical.x,n=e.tileID.canonical.y-t.tileID.canonical.y,i=Math.pow(2,t.tileID.canonical.z),a=e.tileID.key;0===r&amp;&amp;0===n||Math.abs(n)&gt;1||(Math.abs(r)&gt;1&amp;&amp;(1===Math.abs(r+i)?r+=i:1===Math.abs(r-i)&amp;&amp;(r-=i)),e.dem&amp;&amp;t.dem&amp;&amp;(t.dem.backfillBorder(e.dem,r,n),t.neighboringTiles&amp;&amp;t.neighboringTiles[a]&amp;&amp;(t.neighboringTiles[a].backfilled=!0)))}},r.prototype.getTile=function(t){return this.getTileByID(t.key)},r.prototype.getTileByID=function(t){return this._tiles[t]},r.prototype._retainLoadedChildren=function(t,e,r,n){for(var i in this._tiles){var a=this._tiles[i];if(!(n[i]||!a.hasData()||a.tileID.overscaledZ&lt;=e||a.tileID.overscaledZ&gt;r)){for(var o=a.tileID;a&amp;&amp;a.tileID.overscaledZ&gt;e+1;){var s=a.tileID.scaledTo(a.tileID.overscaledZ-1);(a=this._tiles[s.key])&amp;&amp;a.hasData()&amp;&amp;(o=s)}for(var l=o;l.overscaledZ&gt;e;)if(t[(l=l.scaledTo(l.overscaledZ-1)).key]){n[o.key]=o;break}}}},r.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var r=this._loadedParentTiles[t.key];return r&amp;&amp;r.tileID.overscaledZ&gt;=e?r:null}for(var n=t.overscaledZ-1;n&gt;=e;n--){var i=t.scaledTo(n),a=this._getLoadedTile(i);if(a)return a}},r.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&amp;&amp;e.hasData()?e:this._cache.getByKey(t.wrapped().key)},r.prototype.updateCacheSize=function(t){var e=Math.ceil(t.width/this._source.tileSize)+1,r=Math.ceil(t.height/this._source.tileSize)+1,n=Math.floor(e*r*5),i=&quot;number&quot;==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,n):n;this._cache.setMaxSize(i)},r.prototype.handleWrapJump=function(t){var e=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);if(this._prevLng=t,e){var r={};for(var n in this._tiles){var i=this._tiles[n];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+e),r[i.tileID.key]=i}for(var a in this._tiles=r,this._timers)clearTimeout(this._timers[a]),delete this._timers[a];for(var o in this._tiles)this._setTileReloadTimer(o,this._tiles[o])}},r.prototype.update=function(e){var n=this;if(this.transform=e,this._sourceLoaded&amp;&amp;!this._paused){var i;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)})):(i=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&amp;&amp;(i=i.filter((function(t){return n._source.hasTile(t)})))):i=[];var a=e.coveringZoomLevel(this._source),o=Math.max(a-r.maxOverzooming,this._source.minzoom),s=Math.max(a+r.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(i,a);if(Pt(this._source.type)){for(var c={},u={},f=0,h=Object.keys(l);f&lt;h.length;f+=1){var p=h[f],d=l[p],g=this._tiles[p];if(g&amp;&amp;!(g.fadeEndTime&amp;&amp;g.fadeEndTime&lt;=t.browser.now())){var m=this.findLoadedParent(d,o);m&amp;&amp;(this._addTile(m.tileID),c[m.tileID.key]=m.tileID),u[p]=d}}for(var v in this._retainLoadedChildren(u,a,s,l),c)l[v]||(this._coveredTiles[v]=!0,l[v]=c[v])}for(var y in l)this._tiles[y].clearFadeHold();for(var x=0,b=t.keysDifference(this._tiles,l);x&lt;b.length;x+=1){var _=b[x],w=this._tiles[_];w.hasSymbolBuckets&amp;&amp;!w.holdingForFade()?w.setHoldDuration(this.map._fadeDuration):w.hasSymbolBuckets&amp;&amp;!w.symbolFadeFinished()||this._removeTile(_)}this._updateLoadedParentTileCache()}},r.prototype.releaseSymbolFadeTiles=function(){for(var t in this._tiles)this._tiles[t].holdingForFade()&amp;&amp;this._removeTile(t)},r.prototype._updateRetainedTiles=function(t,e){for(var n={},i={},a=Math.max(e-r.maxOverzooming,this._source.minzoom),o=Math.max(e+r.maxUnderzooming,this._source.minzoom),s={},l=0,c=t;l&lt;c.length;l+=1){var u=c[l],f=this._addTile(u);n[u.key]=u,f.hasData()||e&lt;this._source.maxzoom&amp;&amp;(s[u.key]=u)}this._retainLoadedChildren(s,e,o,n);for(var h=0,p=t;h&lt;p.length;h+=1){var d=p[h],g=this._tiles[d.key];if(!g.hasData()){if(e+1&gt;this._source.maxzoom){var m=d.children(this._source.maxzoom)[0],v=this.getTile(m);if(v&amp;&amp;v.hasData()){n[m.key]=m;continue}}else{var y=d.children(this._source.maxzoom);if(n[y[0].key]&amp;&amp;n[y[1].key]&amp;&amp;n[y[2].key]&amp;&amp;n[y[3].key])continue}for(var x=g.wasRequested(),b=d.overscaledZ-1;b&gt;=a;--b){var _=d.scaledTo(b);if(i[_.key])break;if(i[_.key]=!0,!(g=this.getTile(_))&amp;&amp;x&amp;&amp;(g=this._addTile(_)),g&amp;&amp;(n[_.key]=_,x=g.wasRequested(),g.hasData()))break}}}return n},r.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],r=void 0,n=this._tiles[t].tileID;n.overscaledZ&gt;0;){if(n.key in this._loadedParentTiles){r=this._loadedParentTiles[n.key];break}e.push(n.key);var i=n.scaledTo(n.overscaledZ-1);if(r=this._getLoadedTile(i))break;n=i}for(var a=0,o=e;a&lt;o.length;a+=1)this._loadedParentTiles[o[a]]=r}},r.prototype._addTile=function(e){var r=this._tiles[e.key];if(r)return r;(r=this._cache.getAndRemove(e))&amp;&amp;(this._setTileReloadTimer(e.key,r),r.tileID=e,this._state.initializeTileState(r,this.map?this.map.painter:null),this._cacheTimers[e.key]&amp;&amp;(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,r)));var n=Boolean(r);return n||(r=new t.Tile(e,this._source.tileSize*e.overscaleFactor()),this._loadTile(r,this._tileLoaded.bind(this,r,e.key,r.state))),r?(r.uses++,this._tiles[e.key]=r,n||this._source.fire(new t.Event(&quot;dataloading&quot;,{tile:r,coord:r.tileID,dataType:&quot;source&quot;})),r):null},r.prototype._setTileReloadTimer=function(t,e){var r=this;t in this._timers&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]);var n=e.getExpiryTimeout();n&amp;&amp;(this._timers[t]=setTimeout((function(){r._reloadTile(t,&quot;expired&quot;),delete r._timers[t]}),n))},r.prototype._removeTile=function(t){var e=this._tiles[t];e&amp;&amp;(e.uses--,delete this._tiles[t],this._timers[t]&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses&gt;0||(e.hasData()&amp;&amp;&quot;reloading&quot;!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},r.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},r.prototype.tilesIn=function(e,r,n){var i=this,a=[],o=this.transform;if(!o)return a;for(var s=n?o.getCameraQueryGeometry(e):e,l=e.map((function(t){return o.pointCoordinate(t)})),c=s.map((function(t){return o.pointCoordinate(t)})),u=this.getIds(),f=1/0,h=1/0,p=-1/0,d=-1/0,g=0,m=c;g&lt;m.length;g+=1){var v=m[g];f=Math.min(f,v.x),h=Math.min(h,v.y),p=Math.max(p,v.x),d=Math.max(d,v.y)}for(var y=function(e){var n=i._tiles[u[e]];if(!n.holdingForFade()){var s=n.tileID,g=Math.pow(2,o.zoom-n.tileID.overscaledZ),m=r*n.queryPadding*t.EXTENT/n.tileSize/g,v=[s.getTilePoint(new t.MercatorCoordinate(f,h)),s.getTilePoint(new t.MercatorCoordinate(p,d))];if(v[0].x-m&lt;t.EXTENT&amp;&amp;v[0].y-m&lt;t.EXTENT&amp;&amp;v[1].x+m&gt;=0&amp;&amp;v[1].y+m&gt;=0){var y=l.map((function(t){return s.getTilePoint(t)})),x=c.map((function(t){return s.getTilePoint(t)}));a.push({tile:n,tileID:s,queryGeometry:y,cameraQueryGeometry:x,scale:g})}}},x=0;x&lt;u.length;x++)y(x);return a},r.prototype.getVisibleCoordinates=function(t){for(var e=this,r=this.getRenderableIds(t).map((function(t){return e._tiles[t].tileID})),n=0,i=r;n&lt;i.length;n+=1){var a=i[n];a.posMatrix=this.transform.calculatePosMatrix(a.toUnwrapped())}return r},r.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(Pt(this._source.type))for(var e in this._tiles){var r=this._tiles[e];if(void 0!==r.fadeEndTime&amp;&amp;r.fadeEndTime&gt;=t.browser.now())return!0}return!1},r.prototype.setFeatureState=function(t,e,r){this._state.updateState(t=t||&quot;_geojsonTileLayer&quot;,e,r)},r.prototype.removeFeatureState=function(t,e,r){this._state.removeFeatureState(t=t||&quot;_geojsonTileLayer&quot;,e,r)},r.prototype.getFeatureState=function(t,e){return this._state.getState(t=t||&quot;_geojsonTileLayer&quot;,e)},r.prototype.setDependencies=function(t,e,r){var n=this._tiles[t];n&amp;&amp;n.setDependencies(e,r)},r.prototype.reloadTilesForDependencies=function(t,e){for(var r in this._tiles)this._tiles[r].hasDependency(t,e)&amp;&amp;this._reloadTile(r,&quot;reloading&quot;);this._cache.filter((function(r){return!r.hasDependency(t,e)}))},r}(t.Evented);function It(t,e){var r=Math.abs(2*t.wrap)-+(t.wrap&lt;0),n=Math.abs(2*e.wrap)-+(e.wrap&lt;0);return t.overscaledZ-e.overscaledZ||n-r||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function Pt(t){return&quot;raster&quot;===t||&quot;image&quot;===t||&quot;video&quot;===t}function zt(){return new t.window.Worker(Yi.workerUrl)}Lt.maxOverzooming=10,Lt.maxUnderzooming=3;var Ot=&quot;mapboxgl_preloaded_worker_pool&quot;,Dt=function(){this.active={}};Dt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length&lt;Dt.workerCount;)this.workers.push(new zt);return this.active[t]=!0,this.workers.slice()},Dt.prototype.release=function(t){delete this.active[t],0===this.numActive()&amp;&amp;(this.workers.forEach((function(t){t.terminate()})),this.workers=null)},Dt.prototype.isPreloaded=function(){return!!this.active[Ot]},Dt.prototype.numActive=function(){return Object.keys(this.active).length};var Rt,Ft=Math.floor(t.browser.hardwareConcurrency/2);function Bt(){return Rt||(Rt=new Dt),Rt}function Nt(e,r){var n={};for(var i in e)&quot;ref&quot;!==i&amp;&amp;(n[i]=e[i]);return t.refProperties.forEach((function(t){t in r&amp;&amp;(n[t]=r[t])})),n}function jt(t){t=t.slice();for(var e=Object.create(null),r=0;r&lt;t.length;r++)e[t[r].id]=t[r];for(var n=0;n&lt;t.length;n++)&quot;ref&quot;in t[n]&amp;&amp;(t[n]=Nt(t[n],e[t[n].ref]));return t}Dt.workerCount=Math.max(Math.min(Ft,6),1);var Ut={setStyle:&quot;setStyle&quot;,addLayer:&quot;addLayer&quot;,removeLayer:&quot;removeLayer&quot;,setPaintProperty:&quot;setPaintProperty&quot;,setLayoutProperty:&quot;setLayoutProperty&quot;,setFilter:&quot;setFilter&quot;,addSource:&quot;addSource&quot;,removeSource:&quot;removeSource&quot;,setGeoJSONSourceData:&quot;setGeoJSONSourceData&quot;,setLayerZoomRange:&quot;setLayerZoomRange&quot;,setLayerProperty:&quot;setLayerProperty&quot;,setCenter:&quot;setCenter&quot;,setZoom:&quot;setZoom&quot;,setBearing:&quot;setBearing&quot;,setPitch:&quot;setPitch&quot;,setSprite:&quot;setSprite&quot;,setGlyphs:&quot;setGlyphs&quot;,setTransition:&quot;setTransition&quot;,setLight:&quot;setLight&quot;};function Vt(t,e,r){r.push({command:Ut.addSource,args:[t,e[t]]})}function qt(t,e,r){e.push({command:Ut.removeSource,args:[t]}),r[t]=!0}function Ht(t,e,r,n){qt(t,r,n),Vt(t,e,r)}function Gt(e,r,n){var i;for(i in e[n])if(e[n].hasOwnProperty(i)&amp;&amp;&quot;data&quot;!==i&amp;&amp;!t.deepEqual(e[n][i],r[n][i]))return!1;for(i in r[n])if(r[n].hasOwnProperty(i)&amp;&amp;&quot;data&quot;!==i&amp;&amp;!t.deepEqual(e[n][i],r[n][i]))return!1;return!0}function Yt(e,r,n,i,a,o){var s;for(s in r=r||{},e=e||{})e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}));for(s in r)r.hasOwnProperty(s)&amp;&amp;!e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}))}function Wt(t){return t.id}function Xt(t,e){return t[e.id]=e,t}var Zt=function(t,e){this.reset(t,e)};Zt.prototype.reset=function(t,e){this.points=t||[],this._distances=[0];for(var r=1;r&lt;this.points.length;r++)this._distances[r]=this._distances[r-1]+this.points[r].dist(this.points[r-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(e||0,.5*this.length),this.paddedLength=this.length-2*this.padding},Zt.prototype.lerp=function(e){if(1===this.points.length)return this.points[0];e=t.clamp(e,0,1);for(var r=1,n=this._distances[r],i=e*this.paddedLength+this.padding;n&lt;i&amp;&amp;r&lt;this._distances.length;)n=this._distances[++r];var a=r-1,o=this._distances[a],s=n-o,l=s&gt;0?(i-o)/s:0;return this.points[a].mult(1-l).add(this.points[r].mult(l))};var Jt=function(t,e,r){var n=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(e/r);for(var a=0;a&lt;this.xCellCount*this.yCellCount;a++)n.push([]),i.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0};function Kt(e,r,n,i,a){var o=t.create();return r?(t.scale(o,o,[1/a,1/a,1]),n||t.rotateZ(o,o,i.angle)):t.multiply(o,i.labelPlaneMatrix,e),o}function Qt(e,r,n,i,a){if(r){var o=t.clone(e);return t.scale(o,o,[a,a,1]),n||t.rotateZ(o,o,-i.angle),o}return i.glCoordMatrix}function $t(e,r){var n=[e.x,e.y,0,1];ue(n,n,r);var i=n[3];return{point:new t.Point(n[0]/i,n[1]/i),signedDistanceFromCamera:i}}function te(t,e){return.5+t/e*.5}function ee(t,e){var r=t[0]/t[3],n=t[1]/t[3];return r&gt;=-e[0]&amp;&amp;r&lt;=e[0]&amp;&amp;n&gt;=-e[1]&amp;&amp;n&lt;=e[1]}function re(e,r,n,i,a,o,s,l){var c=i?e.textSizeData:e.iconSizeData,u=t.evaluateSizeForZoom(c,n.transform.zoom),f=[256/n.width*2+1,256/n.height*2+1],h=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;h.clear();for(var p=e.lineVertexArray,d=i?e.text.placedSymbolArray:e.icon.placedSymbolArray,g=n.transform.width/n.transform.height,m=!1,v=0;v&lt;d.length;v++){var y=d.get(v);if(y.hidden||y.writingMode===t.WritingMode.vertical&amp;&amp;!m)ce(y.numGlyphs,h);else{m=!1;var x=[y.anchorX,y.anchorY,0,1];if(t.transformMat4(x,x,r),ee(x,f)){var b=te(n.transform.cameraToCenterDistance,x[3]),_=t.evaluateSizeForFeature(c,u,y),w=s?_/b:_*b,T=new t.Point(y.anchorX,y.anchorY),k=$t(T,a).point,M={},A=ae(y,w,!1,l,r,a,o,e.glyphOffsetArray,p,h,k,T,M,g);m=A.useVertical,(A.notEnoughRoom||m||A.needsFlipping&amp;&amp;ae(y,w,!0,l,r,a,o,e.glyphOffsetArray,p,h,k,T,M,g).notEnoughRoom)&amp;&amp;ce(y.numGlyphs,h)}else ce(y.numGlyphs,h)}}i?e.text.dynamicLayoutVertexBuffer.updateData(h):e.icon.dynamicLayoutVertexBuffer.updateData(h)}function ne(t,e,r,n,i,a,o,s,l,c,u){var f=s.glyphStartIndex+s.numGlyphs,h=s.lineStartIndex,p=s.lineStartIndex+s.lineLength,d=e.getoffsetX(s.glyphStartIndex),g=e.getoffsetX(f-1),m=se(t*d,r,n,i,a,o,s.segment,h,p,l,c,u);if(!m)return null;var v=se(t*g,r,n,i,a,o,s.segment,h,p,l,c,u);return v?{first:m,last:v}:null}function ie(e,r,n,i){return e===t.WritingMode.horizontal&amp;&amp;Math.abs(n.y-r.y)&gt;Math.abs(n.x-r.x)*i?{useVertical:!0}:(e===t.WritingMode.vertical?r.y&lt;n.y:r.x&gt;n.x)?{needsFlipping:!0}:null}function ae(e,r,n,i,a,o,s,l,c,u,f,h,p,d){var g,m=r/24,v=e.lineOffsetX*m,y=e.lineOffsetY*m;if(e.numGlyphs&gt;1){var x=e.glyphStartIndex+e.numGlyphs,b=e.lineStartIndex,_=e.lineStartIndex+e.lineLength,w=ne(m,l,v,y,n,f,h,e,c,o,p);if(!w)return{notEnoughRoom:!0};var T=$t(w.first.point,s).point,k=$t(w.last.point,s).point;if(i&amp;&amp;!n){var M=ie(e.writingMode,T,k,d);if(M)return M}g=[w.first];for(var A=e.glyphStartIndex+1;A&lt;x-1;A++)g.push(se(m*l.getoffsetX(A),v,y,n,f,h,e.segment,b,_,c,o,p));g.push(w.last)}else{if(i&amp;&amp;!n){var S=$t(h,a).point,E=e.lineStartIndex+e.segment+1,C=new t.Point(c.getx(E),c.gety(E)),L=$t(C,a),I=L.signedDistanceFromCamera&gt;0?L.point:oe(h,C,S,1,a),P=ie(e.writingMode,S,I,d);if(P)return P}var z=se(m*l.getoffsetX(e.glyphStartIndex),v,y,n,f,h,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,c,o,p);if(!z)return{notEnoughRoom:!0};g=[z]}for(var O=0,D=g;O&lt;D.length;O+=1){var R=D[O];t.addDynamicAttributes(u,R.point,R.angle)}return{}}function oe(t,e,r,n,i){var a=$t(t.add(t.sub(e)._unit()),i).point,o=r.sub(a);return r.add(o._mult(n/o.mag()))}function se(e,r,n,i,a,o,s,l,c,u,f,h){var p=i?e-r:e+r,d=p&gt;0?1:-1,g=0;i&amp;&amp;(d*=-1,g=Math.PI),d&lt;0&amp;&amp;(g+=Math.PI);for(var m=d&gt;0?l+s:l+s+1,v=a,y=a,x=0,b=0,_=Math.abs(p),w=[];x+b&lt;=_;){if((m+=d)&lt;l||m&gt;=c)return null;if(y=v,w.push(v),void 0===(v=h[m])){var T=new t.Point(u.getx(m),u.gety(m)),k=$t(T,f);if(k.signedDistanceFromCamera&gt;0)v=h[m]=k.point;else{var M=m-d;v=oe(0===x?o:new t.Point(u.getx(M),u.gety(M)),T,y,_-x+1,f)}}x+=b,b=y.dist(v)}var A=(_-x)/b,S=v.sub(y),E=S.mult(A)._add(y);E._add(S._unit()._perp()._mult(n*d));var C=g+Math.atan2(v.y-y.y,v.x-y.x);return w.push(E),{point:E,angle:C,path:w}}Jt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Jt.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},Jt.prototype.insertCircle=function(t,e,r,n){this._forEachCell(e-n,r-n,e+n,r+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(r),this.circles.push(n)},Jt.prototype._insertBoxCell=function(t,e,r,n,i,a){this.boxCells[i].push(a)},Jt.prototype._insertCircleCell=function(t,e,r,n,i,a){this.circleCells[i].push(a)},Jt.prototype._query=function(t,e,r,n,i,a){if(r&lt;0||t&gt;this.width||n&lt;0||e&gt;this.height)return!i&amp;&amp;[];var o=[];if(t&lt;=0&amp;&amp;e&lt;=0&amp;&amp;this.width&lt;=r&amp;&amp;this.height&lt;=n){if(i)return!0;for(var s=0;s&lt;this.boxKeys.length;s++)o.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var l=0;l&lt;this.circleKeys.length;l++){var c=this.circles[3*l],u=this.circles[3*l+1],f=this.circles[3*l+2];o.push({key:this.circleKeys[l],x1:c-f,y1:u-f,x2:c+f,y2:u+f})}return a?o.filter(a):o}return this._forEachCell(t,e,r,n,this._queryCell,o,{hitTest:i,seenUids:{box:{},circle:{}}},a),i?o.length&gt;0:o},Jt.prototype._queryCircle=function(t,e,r,n,i){var a=t-r,o=t+r,s=e-r,l=e+r;if(o&lt;0||a&gt;this.width||l&lt;0||s&gt;this.height)return!n&amp;&amp;[];var c=[];return this._forEachCell(a,s,o,l,this._queryCellCircle,c,{hitTest:n,circle:{x:t,y:e,radius:r},seenUids:{box:{},circle:{}}},i),n?c.length&gt;0:c},Jt.prototype.query=function(t,e,r,n,i){return this._query(t,e,r,n,!1,i)},Jt.prototype.hitTest=function(t,e,r,n,i){return this._query(t,e,r,n,!0,i)},Jt.prototype.hitTestCircle=function(t,e,r,n){return this._queryCircle(t,e,r,!0,n)},Jt.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=o.seenUids,c=this.boxCells[i];if(null!==c)for(var u=this.bboxes,f=0,h=c;f&lt;h.length;f+=1){var p=h[f];if(!l.box[p]){l.box[p]=!0;var d=4*p;if(t&lt;=u[d+2]&amp;&amp;e&lt;=u[d+3]&amp;&amp;r&gt;=u[d+0]&amp;&amp;n&gt;=u[d+1]&amp;&amp;(!s||s(this.boxKeys[p]))){if(o.hitTest)return a.push(!0),!0;a.push({key:this.boxKeys[p],x1:u[d],y1:u[d+1],x2:u[d+2],y2:u[d+3]})}}}var g=this.circleCells[i];if(null!==g)for(var m=this.circles,v=0,y=g;v&lt;y.length;v+=1){var x=y[v];if(!l.circle[x]){l.circle[x]=!0;var b=3*x;if(this._circleAndRectCollide(m[b],m[b+1],m[b+2],t,e,r,n)&amp;&amp;(!s||s(this.circleKeys[x]))){if(o.hitTest)return a.push(!0),!0;var _=m[b],w=m[b+1],T=m[b+2];a.push({key:this.circleKeys[x],x1:_-T,y1:w-T,x2:_+T,y2:w+T})}}}},Jt.prototype._queryCellCircle=function(t,e,r,n,i,a,o,s){var l=o.circle,c=o.seenUids,u=this.boxCells[i];if(null!==u)for(var f=this.bboxes,h=0,p=u;h&lt;p.length;h+=1){var d=p[h];if(!c.box[d]){c.box[d]=!0;var g=4*d;if(this._circleAndRectCollide(l.x,l.y,l.radius,f[g+0],f[g+1],f[g+2],f[g+3])&amp;&amp;(!s||s(this.boxKeys[d])))return a.push(!0),!0}}var m=this.circleCells[i];if(null!==m)for(var v=this.circles,y=0,x=m;y&lt;x.length;y+=1){var b=x[y];if(!c.circle[b]){c.circle[b]=!0;var _=3*b;if(this._circlesCollide(v[_],v[_+1],v[_+2],l.x,l.y,l.radius)&amp;&amp;(!s||s(this.circleKeys[b])))return a.push(!0),!0}}},Jt.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToXCellCoord(t),c=this._convertToYCellCoord(e),u=this._convertToXCellCoord(r),f=this._convertToYCellCoord(n),h=l;h&lt;=u;h++)for(var p=c;p&lt;=f;p++)if(i.call(this,t,e,r,n,this.xCellCount*p+h,a,o,s))return},Jt.prototype._convertToXCellCoord=function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))},Jt.prototype._convertToYCellCoord=function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))},Jt.prototype._circlesCollide=function(t,e,r,n,i,a){var o=n-t,s=i-e,l=r+a;return l*l&gt;o*o+s*s},Jt.prototype._circleAndRectCollide=function(t,e,r,n,i,a,o){var s=(a-n)/2,l=Math.abs(t-(n+s));if(l&gt;s+r)return!1;var c=(o-i)/2,u=Math.abs(e-(i+c));if(u&gt;c+r)return!1;if(l&lt;=s||u&lt;=c)return!0;var f=l-s,h=u-c;return f*f+h*h&lt;=r*r};var le=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ce(t,e){for(var r=0;r&lt;t;r++){var n=e.length;e.resize(n+4),e.float32.set(le,3*n)}}function ue(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[4]*i+r[12],t[1]=r[1]*n+r[5]*i+r[13],t[3]=r[3]*n+r[7]*i+r[15],t}var fe=function(t,e,r){void 0===e&amp;&amp;(e=new Jt(t.width+200,t.height+200,25)),void 0===r&amp;&amp;(r=new Jt(t.width+200,t.height+200,25)),this.transform=t,this.grid=e,this.ignoredGrid=r,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200};function he(e,r,n){return r*(t.EXTENT/(e.tileSize*Math.pow(2,n-e.tileID.overscaledZ)))}fe.prototype.placeCollisionBox=function(t,e,r,n,i){var a=this.projectAndGetPerspectiveRatio(n,t.anchorPointX,t.anchorPointY),o=r*a.perspectiveRatio,s=t.x1*o+a.point.x,l=t.y1*o+a.point.y,c=t.x2*o+a.point.x,u=t.y2*o+a.point.y;return!this.isInsideGrid(s,l,c,u)||!e&amp;&amp;this.grid.hitTest(s,l,c,u,i)?{box:[],offscreen:!1}:{box:[s,l,c,u],offscreen:this.isOffscreen(s,l,c,u)}},fe.prototype.placeCollisionCircles=function(e,r,n,i,a,o,s,l,c,u,f,h,p){var d=[],g=new t.Point(r.anchorX,r.anchorY),m=$t(g,o),v=te(this.transform.cameraToCenterDistance,m.signedDistanceFromCamera),y=(u?a/v:a*v)/t.ONE_EM,x=$t(g,s).point,b=ne(y,i,r.lineOffsetX*y,r.lineOffsetY*y,!1,x,g,r,n,s,{}),_=!1,w=!1,T=!0;if(b){for(var k=.5*h*v+p,M=new t.Point(-100,-100),A=new t.Point(this.screenRightBoundary,this.screenBottomBoundary),S=new Zt,E=b.first,C=b.last,L=[],I=E.path.length-1;I&gt;=1;I--)L.push(E.path[I]);for(var P=1;P&lt;C.path.length;P++)L.push(C.path[P]);var z=2.5*k;if(l){var O=L.map((function(t){return $t(t,l)}));L=O.some((function(t){return t.signedDistanceFromCamera&lt;=0}))?[]:O.map((function(t){return t.point}))}var D=[];if(L.length&gt;0){for(var R=L[0].clone(),F=L[0].clone(),B=1;B&lt;L.length;B++)R.x=Math.min(R.x,L[B].x),R.y=Math.min(R.y,L[B].y),F.x=Math.max(F.x,L[B].x),F.y=Math.max(F.y,L[B].y);D=R.x&gt;=M.x&amp;&amp;F.x&lt;=A.x&amp;&amp;R.y&gt;=M.y&amp;&amp;F.y&lt;=A.y?[L]:F.x&lt;M.x||R.x&gt;A.x||F.y&lt;M.y||R.y&gt;A.y?[]:t.clipLine([L],M.x,M.y,A.x,A.y)}for(var N=0,j=D;N&lt;j.length;N+=1){var U;S.reset(j[N],.25*k),U=S.length&lt;=.5*k?1:Math.ceil(S.paddedLength/z)+1;for(var V=0;V&lt;U;V++){var q=V/Math.max(U-1,1),H=S.lerp(q),G=H.x+100,Y=H.y+100;d.push(G,Y,k,0);var W=G-k,X=Y-k,Z=G+k,J=Y+k;if(T=T&amp;&amp;this.isOffscreen(W,X,Z,J),w=w||this.isInsideGrid(W,X,Z,J),!e&amp;&amp;this.grid.hitTestCircle(G,Y,k,f)&amp;&amp;(_=!0,!c))return{circles:[],offscreen:!1,collisionDetected:_}}}}return{circles:!c&amp;&amp;_||!w?[]:d,offscreen:T,collisionDetected:_}},fe.prototype.queryRenderedSymbols=function(e){if(0===e.length||0===this.grid.keysLength()&amp;&amp;0===this.ignoredGrid.keysLength())return{};for(var r=[],n=1/0,i=1/0,a=-1/0,o=-1/0,s=0,l=e;s&lt;l.length;s+=1){var c=l[s],u=new t.Point(c.x+100,c.y+100);n=Math.min(n,u.x),i=Math.min(i,u.y),a=Math.max(a,u.x),o=Math.max(o,u.y),r.push(u)}for(var f={},h={},p=0,d=this.grid.query(n,i,a,o).concat(this.ignoredGrid.query(n,i,a,o));p&lt;d.length;p+=1){var g=d[p],m=g.key;if(void 0===f[m.bucketInstanceId]&amp;&amp;(f[m.bucketInstanceId]={}),!f[m.bucketInstanceId][m.featureIndex]){var v=[new t.Point(g.x1,g.y1),new t.Point(g.x2,g.y1),new t.Point(g.x2,g.y2),new t.Point(g.x1,g.y2)];t.polygonIntersectsPolygon(r,v)&amp;&amp;(f[m.bucketInstanceId][m.featureIndex]=!0,void 0===h[m.bucketInstanceId]&amp;&amp;(h[m.bucketInstanceId]=[]),h[m.bucketInstanceId].push(m.featureIndex))}}return h},fe.prototype.insertCollisionBox=function(t,e,r,n,i){(e?this.ignoredGrid:this.grid).insert({bucketInstanceId:r,featureIndex:n,collisionGroupID:i},t[0],t[1],t[2],t[3])},fe.prototype.insertCollisionCircles=function(t,e,r,n,i){for(var a=e?this.ignoredGrid:this.grid,o={bucketInstanceId:r,featureIndex:n,collisionGroupID:i},s=0;s&lt;t.length;s+=4)a.insertCircle(o,t[s],t[s+1],t[s+2])},fe.prototype.projectAndGetPerspectiveRatio=function(e,r,n){var i=[r,n,0,1];return ue(i,i,e),{point:new t.Point((i[0]/i[3]+1)/2*this.transform.width+100,(-i[1]/i[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/i[3]*.5}},fe.prototype.isOffscreen=function(t,e,r,n){return r&lt;100||t&gt;=this.screenRightBoundary||n&lt;100||e&gt;this.screenBottomBoundary},fe.prototype.isInsideGrid=function(t,e,r,n){return r&gt;=0&amp;&amp;t&lt;this.gridRightBoundary&amp;&amp;n&gt;=0&amp;&amp;e&lt;this.gridBottomBoundary},fe.prototype.getViewportMatrix=function(){var e=t.identity([]);return t.translate(e,e,[-100,-100,0]),e};var pe=function(t,e,r,n){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):n&amp;&amp;r?1:0,this.placed=r};pe.prototype.isHidden=function(){return 0===this.opacity&amp;&amp;!this.placed};var de=function(t,e,r,n,i){this.text=new pe(t?t.text:null,e,r,i),this.icon=new pe(t?t.icon:null,e,n,i)};de.prototype.isHidden=function(){return this.text.isHidden()&amp;&amp;this.icon.isHidden()};var ge=function(t,e,r){this.text=t,this.icon=e,this.skipFade=r},me=function(){this.invProjMatrix=t.create(),this.viewportMatrix=t.create(),this.circles=[]},ve=function(t,e,r,n,i){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=r,this.bucketIndex=n,this.tileID=i},ye=function(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}};function xe(e,r,n,i,a){var o=t.getAnchorAlignment(e),s=-(o.horizontalAlign-.5)*r,l=-(o.verticalAlign-.5)*n,c=t.evaluateVariableOffset(e,i);return new t.Point(s+c[0]*a,l+c[1]*a)}function be(e,r,n,i,a,o){var s=e.x1,l=e.x2,c=e.y1,u=e.y2,f=e.anchorPointX,h=e.anchorPointY,p=new t.Point(r,n);return i&amp;&amp;p._rotate(a?o:-o),{x1:s+p.x,y1:c+p.y,x2:l+p.x,y2:u+p.y,anchorPointX:f,anchorPointY:h}}ye.prototype.get=function(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){var e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:function(t){return t.collisionGroupID===e}}}return this.collisionGroups[t]};var _e=function(t,e,r,n){this.transform=t.clone(),this.collisionIndex=new fe(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new ye(r),this.collisionCircleArrays={},this.prevPlacement=n,n&amp;&amp;(n.prevPlacement=void 0),this.placedOrientations={}};function we(t,e,r,n,i){t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0)}_e.prototype.getBucketParts=function(e,r,n,i){var a=n.getBucket(r),o=n.latestFeatureIndex;if(a&amp;&amp;o&amp;&amp;r.id===a.layerIds[0]){var s=n.collisionBoxArray,l=a.layers[0].layout,c=Math.pow(2,this.transform.zoom-n.tileID.overscaledZ),u=n.tileSize/t.EXTENT,f=this.transform.calculatePosMatrix(n.tileID.toUnwrapped()),h=&quot;map&quot;===l.get(&quot;text-pitch-alignment&quot;),p=&quot;map&quot;===l.get(&quot;text-rotation-alignment&quot;),d=he(n,1,this.transform.zoom),g=Kt(f,h,p,this.transform,d),m=null;if(h){var v=Qt(f,h,p,this.transform,d);m=t.multiply([],this.transform.labelPlaneMatrix,v)}this.retainedQueryData[a.bucketInstanceId]=new ve(a.bucketInstanceId,o,a.sourceLayerIndex,a.index,n.tileID);var y={bucket:a,layout:l,posMatrix:f,textLabelPlaneMatrix:g,labelToScreenMatrix:m,scale:c,textPixelRatio:u,holdingForFade:n.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:t.evaluateSizeForZoom(a.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(a.sourceID)};if(i)for(var x=0,b=a.sortKeyRanges;x&lt;b.length;x+=1){var _=b[x];e.push({sortKey:_.sortKey,symbolInstanceStart:_.symbolInstanceStart,symbolInstanceEnd:_.symbolInstanceEnd,parameters:y})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:a.symbolInstances.length,parameters:y})}},_e.prototype.attemptAnchorPlacement=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d){var g,m=[f.textOffset0,f.textOffset1],v=xe(t,r,n,m,i),y=this.collisionIndex.placeCollisionBox(be(e,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate);if(!d||0!==this.collisionIndex.placeCollisionBox(be(d,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate).box.length)return y.box.length&gt;0?(this.prevPlacement&amp;&amp;this.prevPlacement.variableOffsets[f.crossTileID]&amp;&amp;this.prevPlacement.placements[f.crossTileID]&amp;&amp;this.prevPlacement.placements[f.crossTileID].text&amp;&amp;(g=this.prevPlacement.variableOffsets[f.crossTileID].anchor),this.variableOffsets[f.crossTileID]={textOffset:m,width:r,height:n,anchor:t,textBoxScale:i,prevAnchor:g},this.markUsedJustification(h,t,f,p),h.allowVerticalPlacement&amp;&amp;(this.markUsedOrientation(h,p,f),this.placedOrientations[f.crossTileID]=p),{shift:v,placedGlyphBoxes:y}):void 0},_e.prototype.placeLayerBucketPart=function(e,r,n){var i=this,a=e.parameters,o=a.bucket,s=a.layout,l=a.posMatrix,c=a.textLabelPlaneMatrix,u=a.labelToScreenMatrix,f=a.textPixelRatio,h=a.holdingForFade,p=a.collisionBoxArray,d=a.partiallyEvaluatedTextSize,g=a.collisionGroup,m=s.get(&quot;text-optional&quot;),v=s.get(&quot;icon-optional&quot;),y=s.get(&quot;text-allow-overlap&quot;),x=s.get(&quot;icon-allow-overlap&quot;),b=&quot;map&quot;===s.get(&quot;text-rotation-alignment&quot;),_=&quot;map&quot;===s.get(&quot;text-pitch-alignment&quot;),w=&quot;none&quot;!==s.get(&quot;icon-text-fit&quot;),T=&quot;viewport-y&quot;===s.get(&quot;symbol-z-order&quot;),k=y&amp;&amp;(x||!o.hasIconData()||v),M=x&amp;&amp;(y||!o.hasTextData()||m);!o.collisionArrays&amp;&amp;p&amp;&amp;o.deserializeCollisionBoxes(p);var A=function(e,a){if(!r[e.crossTileID])if(h)i.placements[e.crossTileID]=new ge(!1,!1,!1);else{var p,T=!1,A=!1,S=!0,E=null,C={box:null,offscreen:null},L={box:null,offscreen:null},I=null,P=null,z=0,O=0,D=0;a.textFeatureIndex?z=a.textFeatureIndex:e.useRuntimeCollisionCircles&amp;&amp;(z=e.featureIndex),a.verticalTextFeatureIndex&amp;&amp;(O=a.verticalTextFeatureIndex);var R=a.textBox;if(R){var F=function(r){var n=t.WritingMode.horizontal;if(o.allowVerticalPlacement&amp;&amp;!r&amp;&amp;i.prevPlacement){var a=i.prevPlacement.placedOrientations[e.crossTileID];a&amp;&amp;(i.placedOrientations[e.crossTileID]=a,i.markUsedOrientation(o,n=a,e))}return n},B=function(r,n){if(o.allowVerticalPlacement&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;a.verticalTextBox)for(var i=0,s=o.writingModes;i&lt;s.length&amp;&amp;(s[i]===t.WritingMode.vertical?(C=n(),L=C):C=r(),!(C&amp;&amp;C.box&amp;&amp;C.box.length));i+=1);else C=r()};if(s.get(&quot;text-variable-anchor&quot;)){var N=s.get(&quot;text-variable-anchor&quot;);if(i.prevPlacement&amp;&amp;i.prevPlacement.variableOffsets[e.crossTileID]){var j=i.prevPlacement.variableOffsets[e.crossTileID];N.indexOf(j.anchor)&gt;0&amp;&amp;(N=N.filter((function(t){return t!==j.anchor}))).unshift(j.anchor)}var U=function(t,r,n){for(var a=t.x2-t.x1,s=t.y2-t.y1,c=e.textBoxScale,u=w&amp;&amp;!x?r:null,h={box:[],offscreen:!1},p=y?2*N.length:N.length,d=0;d&lt;p;++d){var m=i.attemptAnchorPlacement(N[d%N.length],t,a,s,c,b,_,f,l,g,d&gt;=N.length,e,o,n,u);if(m&amp;&amp;(h=m.placedGlyphBoxes)&amp;&amp;h.box&amp;&amp;h.box.length){T=!0,E=m.shift;break}}return h};B((function(){return U(R,a.iconBox,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox;return o.allowVerticalPlacement&amp;&amp;!(C&amp;&amp;C.box&amp;&amp;C.box.length)&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;r?U(r,a.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),C&amp;&amp;(T=C.box,S=C.offscreen);var V=F(C&amp;&amp;C.box);if(!T&amp;&amp;i.prevPlacement){var q=i.prevPlacement.variableOffsets[e.crossTileID];q&amp;&amp;(i.variableOffsets[e.crossTileID]=q,i.markUsedJustification(o,q.anchor,e,V))}}else{var H=function(t,r){var n=i.collisionIndex.placeCollisionBox(t,y,f,l,g.predicate);return n&amp;&amp;n.box&amp;&amp;n.box.length&amp;&amp;(i.markUsedOrientation(o,r,e),i.placedOrientations[e.crossTileID]=r),n};B((function(){return H(R,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox;return o.allowVerticalPlacement&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;r?H(r,t.WritingMode.vertical):{box:null,offscreen:null}})),F(C&amp;&amp;C.box&amp;&amp;C.box.length)}}if(T=(p=C)&amp;&amp;p.box&amp;&amp;p.box.length&gt;0,S=p&amp;&amp;p.offscreen,e.useRuntimeCollisionCircles){var G=o.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),Y=t.evaluateSizeForFeature(o.textSizeData,d,G),W=s.get(&quot;text-padding&quot;);I=i.collisionIndex.placeCollisionCircles(y,G,o.lineVertexArray,o.glyphOffsetArray,Y,l,c,u,n,_,g.predicate,e.collisionCircleDiameter,W),T=y||I.circles.length&gt;0&amp;&amp;!I.collisionDetected,S=S&amp;&amp;I.offscreen}if(a.iconFeatureIndex&amp;&amp;(D=a.iconFeatureIndex),a.iconBox){var X=function(t){var e=w&amp;&amp;E?be(t,E.x,E.y,b,_,i.transform.angle):t;return i.collisionIndex.placeCollisionBox(e,x,f,l,g.predicate)};A=L&amp;&amp;L.box&amp;&amp;L.box.length&amp;&amp;a.verticalIconBox?(P=X(a.verticalIconBox)).box.length&gt;0:(P=X(a.iconBox)).box.length&gt;0,S=S&amp;&amp;P.offscreen}var Z=m||0===e.numHorizontalGlyphVertices&amp;&amp;0===e.numVerticalGlyphVertices,J=v||0===e.numIconVertices;if(Z||J?J?Z||(A=A&amp;&amp;T):T=A&amp;&amp;T:A=T=A&amp;&amp;T,T&amp;&amp;p&amp;&amp;p.box&amp;&amp;i.collisionIndex.insertCollisionBox(p.box,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,L&amp;&amp;L.box&amp;&amp;O?O:z,g.ID),A&amp;&amp;P&amp;&amp;i.collisionIndex.insertCollisionBox(P.box,s.get(&quot;icon-ignore-placement&quot;),o.bucketInstanceId,D,g.ID),I&amp;&amp;(T&amp;&amp;i.collisionIndex.insertCollisionCircles(I.circles,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,z,g.ID),n)){var K=o.bucketInstanceId,Q=i.collisionCircleArrays[K];void 0===Q&amp;&amp;(Q=i.collisionCircleArrays[K]=new me);for(var $=0;$&lt;I.circles.length;$+=4)Q.circles.push(I.circles[$+0]),Q.circles.push(I.circles[$+1]),Q.circles.push(I.circles[$+2]),Q.circles.push(I.collisionDetected?1:0)}i.placements[e.crossTileID]=new ge(T||k,A||M,S||o.justReloaded),r[e.crossTileID]=!0}};if(T)for(var S=o.getSortedSymbolIndexes(this.transform.angle),E=S.length-1;E&gt;=0;--E){var C=S[E];A(o.symbolInstances.get(C),o.collisionArrays[C])}else for(var L=e.symbolInstanceStart;L&lt;e.symbolInstanceEnd;L++)A(o.symbolInstances.get(L),o.collisionArrays[L]);if(n&amp;&amp;o.bucketInstanceId in this.collisionCircleArrays){var I=this.collisionCircleArrays[o.bucketInstanceId];t.invert(I.invProjMatrix,l),I.viewportMatrix=this.collisionIndex.getViewportMatrix()}o.justReloaded=!1},_e.prototype.markUsedJustification=function(e,r,n,i){var a;a=i===t.WritingMode.vertical?n.verticalPlacedTextSymbolIndex:{left:n.leftJustifiedTextSymbolIndex,center:n.centerJustifiedTextSymbolIndex,right:n.rightJustifiedTextSymbolIndex}[t.getAnchorJustification(r)];for(var o=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex,n.verticalPlacedTextSymbolIndex];o&lt;s.length;o+=1){var l=s[o];l&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(l).crossTileID=a&gt;=0&amp;&amp;l!==a?0:n.crossTileID)}},_e.prototype.markUsedOrientation=function(e,r,n){for(var i=r===t.WritingMode.horizontal||r===t.WritingMode.horizontalOnly?r:0,a=r===t.WritingMode.vertical?r:0,o=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex];o&lt;s.length;o+=1)e.text.placedSymbolArray.get(s[o]).placedOrientation=i;n.verticalPlacedTextSymbolIndex&amp;&amp;(e.text.placedSymbolArray.get(n.verticalPlacedTextSymbolIndex).placedOrientation=a)},_e.prototype.commit=function(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;var e=this.prevPlacement,r=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;var n=e?e.symbolFadeChange(t):1,i=e?e.opacities:{},a=e?e.variableOffsets:{},o=e?e.placedOrientations:{};for(var s in this.placements){var l=this.placements[s],c=i[s];c?(this.opacities[s]=new de(c,n,l.text,l.icon),r=r||l.text!==c.text.placed||l.icon!==c.icon.placed):(this.opacities[s]=new de(null,n,l.text,l.icon,l.skipFade),r=r||l.text||l.icon)}for(var u in i){var f=i[u];if(!this.opacities[u]){var h=new de(f,n,!1,!1);h.isHidden()||(this.opacities[u]=h,r=r||f.text.placed||f.icon.placed)}}for(var p in a)this.variableOffsets[p]||!this.opacities[p]||this.opacities[p].isHidden()||(this.variableOffsets[p]=a[p]);for(var d in o)this.placedOrientations[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.placedOrientations[d]=o[d]);r?this.lastPlacementChangeTime=t:&quot;number&quot;!=typeof this.lastPlacementChangeTime&amp;&amp;(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)},_e.prototype.updateLayerOpacities=function(t,e){for(var r={},n=0,i=e;n&lt;i.length;n+=1){var a=i[n],o=a.getBucket(t);o&amp;&amp;a.latestFeatureIndex&amp;&amp;t.id===o.layerIds[0]&amp;&amp;this.updateBucketOpacities(o,r,a.collisionBoxArray)}},_e.prototype.updateBucketOpacities=function(e,r,n){var i=this;e.hasTextData()&amp;&amp;e.text.opacityVertexArray.clear(),e.hasIconData()&amp;&amp;e.icon.opacityVertexArray.clear(),e.hasIconCollisionBoxData()&amp;&amp;e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&amp;&amp;e.textCollisionBox.collisionVertexArray.clear();var a=e.layers[0].layout,o=new de(null,0,!1,!1,!0),s=a.get(&quot;text-allow-overlap&quot;),l=a.get(&quot;icon-allow-overlap&quot;),c=a.get(&quot;text-variable-anchor&quot;),u=&quot;map&quot;===a.get(&quot;text-rotation-alignment&quot;),f=&quot;map&quot;===a.get(&quot;text-pitch-alignment&quot;),h=&quot;none&quot;!==a.get(&quot;icon-text-fit&quot;),p=new de(null,0,s&amp;&amp;(l||!e.hasIconData()||a.get(&quot;icon-optional&quot;)),l&amp;&amp;(s||!e.hasTextData()||a.get(&quot;text-optional&quot;)),!0);!e.collisionArrays&amp;&amp;n&amp;&amp;(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&amp;&amp;e.deserializeCollisionBoxes(n);for(var d=function(t,e,r){for(var n=0;n&lt;e/4;n++)t.opacityVertexArray.emplaceBack(r)},g=function(n){var a=e.symbolInstances.get(n),s=a.numHorizontalGlyphVertices,l=a.numVerticalGlyphVertices,g=a.crossTileID,m=i.opacities[g];r[g]?m=o:m||(i.opacities[g]=m=p),r[g]=!0;var v=a.numIconVertices&gt;0,y=i.placedOrientations[a.crossTileID],x=y===t.WritingMode.vertical,b=y===t.WritingMode.horizontal||y===t.WritingMode.horizontalOnly;if(s&gt;0||l&gt;0){var _=Le(m.text);d(e.text,s,x?Ie:_),d(e.text,l,b?Ie:_);var w=m.text.isHidden();[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((function(t){t&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(t).hidden=w||x?1:0)})),a.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).hidden=w||b?1:0);var T=i.variableOffsets[a.crossTileID];T&amp;&amp;i.markUsedJustification(e,T.anchor,a,y);var k=i.placedOrientations[a.crossTileID];k&amp;&amp;(i.markUsedJustification(e,&quot;left&quot;,a,k),i.markUsedOrientation(e,k,a))}if(v){var M=Le(m.icon),A=!(h&amp;&amp;a.verticalPlacedIconSymbolIndex&amp;&amp;x);a.placedIconSymbolIndex&gt;=0&amp;&amp;(d(e.icon,a.numIconVertices,A?M:Ie),e.icon.placedSymbolArray.get(a.placedIconSymbolIndex).hidden=m.icon.isHidden()),a.verticalPlacedIconSymbolIndex&gt;=0&amp;&amp;(d(e.icon,a.numVerticalIconVertices,A?Ie:M),e.icon.placedSymbolArray.get(a.verticalPlacedIconSymbolIndex).hidden=m.icon.isHidden())}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){var S=e.collisionArrays[n];if(S){var E=new t.Point(0,0);if(S.textBox||S.verticalTextBox){var C=!0;if(c){var L=i.variableOffsets[g];L?(E=xe(L.anchor,L.width,L.height,L.textOffset,L.textBoxScale),u&amp;&amp;E._rotate(f?i.transform.angle:-i.transform.angle)):C=!1}S.textBox&amp;&amp;we(e.textCollisionBox.collisionVertexArray,m.text.placed,!C||x,E.x,E.y),S.verticalTextBox&amp;&amp;we(e.textCollisionBox.collisionVertexArray,m.text.placed,!C||b,E.x,E.y)}var I=Boolean(!b&amp;&amp;S.verticalIconBox);S.iconBox&amp;&amp;we(e.iconCollisionBox.collisionVertexArray,m.icon.placed,I,h?E.x:0,h?E.y:0),S.verticalIconBox&amp;&amp;we(e.iconCollisionBox.collisionVertexArray,m.icon.placed,!I,h?E.x:0,h?E.y:0)}}},m=0;m&lt;e.symbolInstances.length;m++)g(m);if(e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&amp;&amp;(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&amp;&amp;e.text.opacityVertexBuffer&amp;&amp;e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&amp;&amp;e.icon.opacityVertexBuffer&amp;&amp;e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&amp;&amp;e.iconCollisionBox.collisionVertexBuffer&amp;&amp;e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&amp;&amp;e.textCollisionBox.collisionVertexBuffer&amp;&amp;e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.bucketInstanceId in this.collisionCircleArrays){var v=this.collisionCircleArrays[e.bucketInstanceId];e.placementInvProjMatrix=v.invProjMatrix,e.placementViewportMatrix=v.viewportMatrix,e.collisionCircleArray=v.circles,delete this.collisionCircleArrays[e.bucketInstanceId]}},_e.prototype.symbolFadeChange=function(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},_e.prototype.zoomAdjustment=function(t){return Math.max(0,(this.transform.zoom-t)/1.5)},_e.prototype.hasTransitions=function(t){return this.stale||t-this.lastPlacementChangeTime&lt;this.fadeDuration},_e.prototype.stillRecent=function(t,e){var r=this.zoomAtLastRecencyCheck===e?1-this.zoomAdjustment(e):1;return this.zoomAtLastRecencyCheck=e,this.commitTime+this.fadeDuration*r&gt;t},_e.prototype.setStale=function(){this.stale=!0};var Te=Math.pow(2,25),ke=Math.pow(2,24),Me=Math.pow(2,17),Ae=Math.pow(2,16),Se=Math.pow(2,9),Ee=Math.pow(2,8),Ce=Math.pow(2,1);function Le(t){if(0===t.opacity&amp;&amp;!t.placed)return 0;if(1===t.opacity&amp;&amp;t.placed)return 4294967295;var e=t.placed?1:0,r=Math.floor(127*t.opacity);return r*Te+e*ke+r*Me+e*Ae+r*Se+e*Ee+r*Ce+e}var Ie=0,Pe=function(t){this._sortAcrossTiles=&quot;viewport-y&quot;!==t.layout.get(&quot;symbol-z-order&quot;)&amp;&amp;void 0!==t.layout.get(&quot;symbol-sort-key&quot;).constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Pe.prototype.continuePlacement=function(t,e,r,n,i){for(var a=this._bucketParts;this._currentTileIndex&lt;t.length;)if(e.getBucketParts(a,n,t[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,i())return!0;for(this._sortAcrossTiles&amp;&amp;(this._sortAcrossTiles=!1,a.sort((function(t,e){return t.sortKey-e.sortKey})));this._currentPartIndex&lt;a.length;)if(e.placeLayerBucketPart(a[this._currentPartIndex],this._seenCrossTileIDs,r),this._currentPartIndex++,i())return!0;return!1};var ze=function(t,e,r,n,i,a,o){this.placement=new _e(t,i,a,o),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=n,this._done=!1};ze.prototype.isDone=function(){return this._done},ze.prototype.continuePlacement=function(e,r,n){for(var i=this,a=t.browser.now(),o=function(){var e=t.browser.now()-a;return!i._forceFullPlacement&amp;&amp;e&gt;2};this._currentPlacementIndex&gt;=0;){var s=r[e[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if(&quot;symbol&quot;===s.type&amp;&amp;(!s.minzoom||s.minzoom&lt;=l)&amp;&amp;(!s.maxzoom||s.maxzoom&gt;l)){if(this._inProgressLayer||(this._inProgressLayer=new Pe(s)),this._inProgressLayer.continuePlacement(n[s.source],this.placement,this._showCollisionBoxes,s,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},ze.prototype.commit=function(t){return this.placement.commit(t),this.placement};var Oe=512/t.EXTENT/2,De=function(t,e,r){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=r;for(var n=0;n&lt;e.length;n++){var i=e.get(n),a=i.key;this.indexedSymbolInstances[a]||(this.indexedSymbolInstances[a]=[]),this.indexedSymbolInstances[a].push({crossTileID:i.crossTileID,coord:this.getScaledCoordinates(i,t)})}};De.prototype.getScaledCoordinates=function(e,r){var n=Oe/Math.pow(2,r.canonical.z-this.tileID.canonical.z);return{x:Math.floor((r.canonical.x*t.EXTENT+e.anchorX)*n),y:Math.floor((r.canonical.y*t.EXTENT+e.anchorY)*n)}},De.prototype.findMatches=function(t,e,r){for(var n=this.tileID.canonical.z&lt;e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z),i=0;i&lt;t.length;i++){var a=t.get(i);if(!a.crossTileID){var o=this.indexedSymbolInstances[a.key];if(o)for(var s=this.getScaledCoordinates(a,e),l=0,c=o;l&lt;c.length;l+=1){var u=c[l];if(Math.abs(u.coord.x-s.x)&lt;=n&amp;&amp;Math.abs(u.coord.y-s.y)&lt;=n&amp;&amp;!r[u.crossTileID]){r[u.crossTileID]=!0,a.crossTileID=u.crossTileID;break}}}}};var Re=function(){this.maxCrossTileID=0};Re.prototype.generate=function(){return++this.maxCrossTileID};var Fe=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};Fe.prototype.handleWrapJump=function(t){var e=Math.round((t-this.lng)/360);if(0!==e)for(var r in this.indexes){var n=this.indexes[r],i={};for(var a in n){var o=n[a];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+e),i[o.tileID.key]=o}this.indexes[r]=i}this.lng=t},Fe.prototype.addBucket=function(t,e,r){if(this.indexes[t.overscaledZ]&amp;&amp;this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(var n=0;n&lt;e.symbolInstances.length;n++)e.symbolInstances.get(n).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});var i=this.usedCrossTileIDs[t.overscaledZ];for(var a in this.indexes){var o=this.indexes[a];if(Number(a)&gt;t.overscaledZ)for(var s in o){var l=o[s];l.tileID.isChildOf(t)&amp;&amp;l.findMatches(e.symbolInstances,t,i)}else{var c=o[t.scaledTo(Number(a)).key];c&amp;&amp;c.findMatches(e.symbolInstances,t,i)}}for(var u=0;u&lt;e.symbolInstances.length;u++){var f=e.symbolInstances.get(u);f.crossTileID||(f.crossTileID=r.generate(),i[f.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&amp;&amp;(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new De(t,e.symbolInstances,e.bucketInstanceId),!0},Fe.prototype.removeBucketCrossTileIDs=function(t,e){for(var r in e.indexedSymbolInstances)for(var n=0,i=e.indexedSymbolInstances[r];n&lt;i.length;n+=1)delete this.usedCrossTileIDs[t][i[n].crossTileID]},Fe.prototype.removeStaleBuckets=function(t){var e=!1;for(var r in this.indexes){var n=this.indexes[r];for(var i in n)t[n[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(r,n[i]),delete n[i],e=!0)}return e};var Be=function(){this.layerIndexes={},this.crossTileIDs=new Re,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};Be.prototype.addLayer=function(t,e,r){var n=this.layerIndexes[t.id];void 0===n&amp;&amp;(n=this.layerIndexes[t.id]=new Fe);var i=!1,a={};n.handleWrapJump(r);for(var o=0,s=e;o&lt;s.length;o+=1){var l=s[o],c=l.getBucket(t);c&amp;&amp;t.id===c.layerIds[0]&amp;&amp;(c.bucketInstanceId||(c.bucketInstanceId=++this.maxBucketInstanceId),n.addBucket(l.tileID,c,this.crossTileIDs)&amp;&amp;(i=!0),a[c.bucketInstanceId]=!0)}return n.removeStaleBuckets(a)&amp;&amp;(i=!0),i},Be.prototype.pruneUnusedLayers=function(t){var e={};for(var r in t.forEach((function(t){e[t]=!0})),this.layerIndexes)e[r]||delete this.layerIndexes[r]};var Ne=function(e,r){return t.emitValidationErrors(e,r&amp;&amp;r.filter((function(t){return&quot;source.canvas&quot;!==t.identifier})))},je=t.pick(Ut,[&quot;addLayer&quot;,&quot;removeLayer&quot;,&quot;setPaintProperty&quot;,&quot;setLayoutProperty&quot;,&quot;setFilter&quot;,&quot;addSource&quot;,&quot;removeSource&quot;,&quot;setLayerZoomRange&quot;,&quot;setLight&quot;,&quot;setTransition&quot;,&quot;setGeoJSONSourceData&quot;]),Ue=t.pick(Ut,[&quot;setCenter&quot;,&quot;setZoom&quot;,&quot;setBearing&quot;,&quot;setPitch&quot;]),Ve=function(){var e={},r=t.styleSpec.$version;for(var n in t.styleSpec.$root){var i,a=t.styleSpec.$root[n];a.required&amp;&amp;null!=(i=&quot;version&quot;===n?r:&quot;array&quot;===a.type?[]:{})&amp;&amp;(e[n]=i)}return e}(),qe=function(e){function r(n,i){var a=this;void 0===i&amp;&amp;(i={}),e.call(this),this.map=n,this.dispatcher=new k(Bt(),this),this.imageManager=new h,this.imageManager.setEventedParent(this),this.glyphManager=new x(n._requestManager,i.localIdeographFontFamily),this.lineAtlas=new T(256,512),this.crossTileSymbolIndex=new Be,this._layers={},this._serializedLayers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast(&quot;setReferrer&quot;,t.getReferrer());var o=this;this._rtlTextPluginCallback=r.registerForPluginStateChange((function(e){o.dispatcher.broadcast(&quot;syncRTLPluginState&quot;,{pluginStatus:e.pluginStatus,pluginURL:e.pluginURL},(function(e,r){if(t.triggerPluginCompletionEvent(e),r&amp;&amp;r.every((function(t){return t})))for(var n in o.sourceCaches)o.sourceCaches[n].reload()}))})),this.on(&quot;data&quot;,(function(t){if(&quot;source&quot;===t.dataType&amp;&amp;&quot;metadata&quot;===t.sourceDataType){var e=a.sourceCaches[t.sourceId];if(e){var r=e.getSource();if(r&amp;&amp;r.vectorLayerIds)for(var n in a._layers){var i=a._layers[n];i.source===r.id&amp;&amp;a._validateLayer(i)}}}}))}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.loadURL=function(e,r){var n=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;}));var i=&quot;boolean&quot;==typeof r.validate?r.validate:!t.isMapboxURL(e);e=this.map._requestManager.normalizeStyleURL(e,r.accessToken);var a=this.map._requestManager.transformRequest(e,t.ResourceType.Style);this._request=t.getJSON(a,(function(e,r){n._request=null,e?n.fire(new t.ErrorEvent(e)):r&amp;&amp;n._load(r,i)}))},r.prototype.loadJSON=function(e,r){var n=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;})),this._request=t.browser.frame((function(){n._request=null,n._load(e,!1!==r.validate)}))},r.prototype.loadEmpty=function(){this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;})),this._load(Ve,!1)},r.prototype._load=function(e,r){if(!r||!Ne(this,t.validateStyle(e))){for(var n in this._loaded=!0,this.stylesheet=e,e.sources)this.addSource(n,e.sources[n],{validate:!1});e.sprite?this._loadSprite(e.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(e.glyphs);var i=jt(this.stylesheet.layers);this._order=i.map((function(t){return t.id})),this._layers={},this._serializedLayers={};for(var a=0,o=i;a&lt;o.length;a+=1){var s=o[a];(s=t.createStyleLayer(s)).setEventedParent(this,{layer:{id:s.id}}),this._layers[s.id]=s,this._serializedLayers[s.id]=s.serialize()}this.dispatcher.broadcast(&quot;setLayers&quot;,this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;})),this.fire(new t.Event(&quot;style.load&quot;))}},r.prototype._loadSprite=function(e){var r=this;this._spriteRequest=function(e,r,n){var i,a,o,s=t.browser.devicePixelRatio&gt;1?&quot;@2x&quot;:&quot;&quot;,l=t.getJSON(r.transformRequest(r.normalizeSpriteURL(e,s,&quot;.json&quot;),t.ResourceType.SpriteJSON),(function(t,e){l=null,o||(o=t,i=e,u())})),c=t.getImage(r.transformRequest(r.normalizeSpriteURL(e,s,&quot;.png&quot;),t.ResourceType.SpriteImage),(function(t,e){c=null,o||(o=t,a=e,u())}));function u(){if(o)n(o);else if(i&amp;&amp;a){var e=t.browser.getImageData(a),r={};for(var s in i){var l=i[s],c=l.width,u=l.height,f=l.x,h=l.y,p=l.sdf,d=l.pixelRatio,g=l.stretchX,m=l.stretchY,v=l.content,y=new t.RGBAImage({width:c,height:u});t.RGBAImage.copy(e,y,{x:f,y:h},{x:0,y:0},{width:c,height:u}),r[s]={data:y,pixelRatio:d,sdf:p,stretchX:g,stretchY:m,content:v}}n(null,r)}}return{cancel:function(){l&amp;&amp;(l.cancel(),l=null),c&amp;&amp;(c.cancel(),c=null)}}}(e,this.map._requestManager,(function(e,n){if(r._spriteRequest=null,e)r.fire(new t.ErrorEvent(e));else if(n)for(var i in n)r.imageManager.addImage(i,n[i]);r.imageManager.setLoaded(!0),r._availableImages=r.imageManager.listImages(),r.dispatcher.broadcast(&quot;setImages&quot;,r._availableImages),r.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))}))},r.prototype._validateLayer=function(e){var r=this.sourceCaches[e.source];if(r){var n=e.sourceLayer;if(n){var i=r.getSource();(&quot;geojson&quot;===i.type||i.vectorLayerIds&amp;&amp;-1===i.vectorLayerIds.indexOf(n))&amp;&amp;this.fire(new t.ErrorEvent(new Error('Source layer &quot;'+n+'&quot; does not exist on source &quot;'+i.id+'&quot; as specified by style layer &quot;'+e.id+'&quot;')))}}},r.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},r.prototype._serializeLayers=function(t){for(var e=[],r=0,n=t;r&lt;n.length;r+=1){var i=this._layers[n[r]];&quot;custom&quot;!==i.type&amp;&amp;e.push(i.serialize())}return e},r.prototype.hasTransitions=function(){if(this.light&amp;&amp;this.light.hasTransition())return!0;for(var t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(var e in this._layers)if(this._layers[e].hasTransition())return!0;return!1},r.prototype._checkLoaded=function(){if(!this._loaded)throw new Error(&quot;Style is not done loading&quot;)},r.prototype.update=function(e){if(this._loaded){var r=this._changed;if(this._changed){var n=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);for(var a in(n.length||i.length)&amp;&amp;this._updateWorkerLayers(n,i),this._updatedSources){var o=this._updatedSources[a];&quot;reload&quot;===o?this._reloadSource(a):&quot;clear&quot;===o&amp;&amp;this._clearSource(a)}for(var s in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[s].updateTransitions(e);this.light.updateTransitions(e),this._resetUpdates()}for(var l in this.sourceCaches)this.sourceCaches[l].used=!1;for(var c=0,u=this._order;c&lt;u.length;c+=1){var f=this._layers[u[c]];f.recalculate(e,this._availableImages),!f.isHidden(e.zoom)&amp;&amp;f.source&amp;&amp;(this.sourceCaches[f.source].used=!0)}this.light.recalculate(e),this.z=e.zoom,r&amp;&amp;this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))}},r.prototype._updateTilesForChangedImages=function(){var t=Object.keys(this._changedImages);if(t.length){for(var e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies([&quot;icons&quot;,&quot;patterns&quot;],t);this._changedImages={}}},r.prototype._updateWorkerLayers=function(t,e){this.dispatcher.broadcast(&quot;updateLayers&quot;,{layers:this._serializeLayers(t),removedIds:e})},r.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}},r.prototype.setState=function(e){var r=this;if(this._checkLoaded(),Ne(this,t.validateStyle(e)))return!1;(e=t.clone$1(e)).layers=jt(e.layers);var n=function(e,r){if(!e)return[{command:Ut.setStyle,args:[r]}];var n=[];try{if(!t.deepEqual(e.version,r.version))return[{command:Ut.setStyle,args:[r]}];t.deepEqual(e.center,r.center)||n.push({command:Ut.setCenter,args:[r.center]}),t.deepEqual(e.zoom,r.zoom)||n.push({command:Ut.setZoom,args:[r.zoom]}),t.deepEqual(e.bearing,r.bearing)||n.push({command:Ut.setBearing,args:[r.bearing]}),t.deepEqual(e.pitch,r.pitch)||n.push({command:Ut.setPitch,args:[r.pitch]}),t.deepEqual(e.sprite,r.sprite)||n.push({command:Ut.setSprite,args:[r.sprite]}),t.deepEqual(e.glyphs,r.glyphs)||n.push({command:Ut.setGlyphs,args:[r.glyphs]}),t.deepEqual(e.transition,r.transition)||n.push({command:Ut.setTransition,args:[r.transition]}),t.deepEqual(e.light,r.light)||n.push({command:Ut.setLight,args:[r.light]});var i={},a=[];!function(e,r,n,i){var a;for(a in r=r||{},e=e||{})e.hasOwnProperty(a)&amp;&amp;(r.hasOwnProperty(a)||qt(a,n,i));for(a in r)r.hasOwnProperty(a)&amp;&amp;(e.hasOwnProperty(a)?t.deepEqual(e[a],r[a])||(&quot;geojson&quot;===e[a].type&amp;&amp;&quot;geojson&quot;===r[a].type&amp;&amp;Gt(e,r,a)?n.push({command:Ut.setGeoJSONSourceData,args:[a,r[a].data]}):Ht(a,r,n,i)):Vt(a,r,n))}(e.sources,r.sources,a,i);var o=[];e.layers&amp;&amp;e.layers.forEach((function(t){i[t.source]?n.push({command:Ut.removeLayer,args:[t.id]}):o.push(t)})),n=n.concat(a),function(e,r,n){r=r||[];var i,a,o,s,l,c,u,f=(e=e||[]).map(Wt),h=r.map(Wt),p=e.reduce(Xt,{}),d=r.reduce(Xt,{}),g=f.slice(),m=Object.create(null);for(i=0,a=0;i&lt;f.length;i++)d.hasOwnProperty(o=f[i])?a++:(n.push({command:Ut.removeLayer,args:[o]}),g.splice(g.indexOf(o,a),1));for(i=0,a=0;i&lt;h.length;i++)g[g.length-1-i]!==(o=h[h.length-1-i])&amp;&amp;(p.hasOwnProperty(o)?(n.push({command:Ut.removeLayer,args:[o]}),g.splice(g.lastIndexOf(o,g.length-a),1)):a++,n.push({command:Ut.addLayer,args:[d[o],c=g[g.length-i]]}),g.splice(g.length-i,0,o),m[o]=!0);for(i=0;i&lt;h.length;i++)if(s=p[o=h[i]],l=d[o],!m[o]&amp;&amp;!t.deepEqual(s,l))if(t.deepEqual(s.source,l.source)&amp;&amp;t.deepEqual(s[&quot;source-layer&quot;],l[&quot;source-layer&quot;])&amp;&amp;t.deepEqual(s.type,l.type)){for(u in Yt(s.layout,l.layout,n,o,null,Ut.setLayoutProperty),Yt(s.paint,l.paint,n,o,null,Ut.setPaintProperty),t.deepEqual(s.filter,l.filter)||n.push({command:Ut.setFilter,args:[o,l.filter]}),t.deepEqual(s.minzoom,l.minzoom)&amp;&amp;t.deepEqual(s.maxzoom,l.maxzoom)||n.push({command:Ut.setLayerZoomRange,args:[o,l.minzoom,l.maxzoom]}),s)s.hasOwnProperty(u)&amp;&amp;&quot;layout&quot;!==u&amp;&amp;&quot;paint&quot;!==u&amp;&amp;&quot;filter&quot;!==u&amp;&amp;&quot;metadata&quot;!==u&amp;&amp;&quot;minzoom&quot;!==u&amp;&amp;&quot;maxzoom&quot;!==u&amp;&amp;(0===u.indexOf(&quot;paint.&quot;)?Yt(s[u],l[u],n,o,u.slice(6),Ut.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:Ut.setLayerProperty,args:[o,u,l[u]]}));for(u in l)l.hasOwnProperty(u)&amp;&amp;!s.hasOwnProperty(u)&amp;&amp;&quot;layout&quot;!==u&amp;&amp;&quot;paint&quot;!==u&amp;&amp;&quot;filter&quot;!==u&amp;&amp;&quot;metadata&quot;!==u&amp;&amp;&quot;minzoom&quot;!==u&amp;&amp;&quot;maxzoom&quot;!==u&amp;&amp;(0===u.indexOf(&quot;paint.&quot;)?Yt(s[u],l[u],n,o,u.slice(6),Ut.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:Ut.setLayerProperty,args:[o,u,l[u]]}))}else n.push({command:Ut.removeLayer,args:[o]}),c=g[g.lastIndexOf(o)+1],n.push({command:Ut.addLayer,args:[l,c]})}(o,r.layers,n)}catch(t){console.warn(&quot;Unable to compute style diff:&quot;,t),n=[{command:Ut.setStyle,args:[r]}]}return n}(this.serialize(),e).filter((function(t){return!(t.command in Ue)}));if(0===n.length)return!1;var i=n.filter((function(t){return!(t.command in je)}));if(i.length&gt;0)throw new Error(&quot;Unimplemented: &quot;+i.map((function(t){return t.command})).join(&quot;, &quot;)+&quot;.&quot;);return n.forEach((function(t){&quot;setTransition&quot;!==t.command&amp;&amp;r[t.command].apply(r,t.args)})),this.stylesheet=e,!0},r.prototype.addImage=function(e,r){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error(&quot;An image with this name already exists.&quot;)));this.imageManager.addImage(e,r),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))},r.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},r.prototype.getImage=function(t){return this.imageManager.getImage(t)},r.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error(&quot;No image with this name exists.&quot;)));this.imageManager.removeImage(e),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))},r.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},r.prototype.addSource=function(e,r,n){var i=this;if(void 0===n&amp;&amp;(n={}),this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error(&quot;There is already a source with this ID&quot;);if(!r.type)throw new Error(&quot;The type property must be defined, but the only the following properties were given: &quot;+Object.keys(r).join(&quot;, &quot;)+&quot;.&quot;);if(!([&quot;vector&quot;,&quot;raster&quot;,&quot;geojson&quot;,&quot;video&quot;,&quot;image&quot;].indexOf(r.type)&gt;=0&amp;&amp;this._validate(t.validateStyle.source,&quot;sources.&quot;+e,r,null,n))){this.map&amp;&amp;this.map._collectResourceTiming&amp;&amp;(r.collectResourceTiming=!0);var a=this.sourceCaches[e]=new Lt(e,r,this.dispatcher);a.style=this,a.setEventedParent(this,(function(){return{isSourceLoaded:i.loaded(),source:a.serialize(),sourceId:e}})),a.onAdd(this.map),this._changed=!0}},r.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error(&quot;There is no source with this ID&quot;);for(var r in this._layers)if(this._layers[r].source===e)return this.fire(new t.ErrorEvent(new Error('Source &quot;'+e+'&quot; cannot be removed while layer &quot;'+r+'&quot; is using it.')));var n=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],n.fire(new t.Event(&quot;data&quot;,{sourceDataType:&quot;metadata&quot;,dataType:&quot;source&quot;,sourceId:e})),n.setEventedParent(null),n.clearTiles(),n.onRemove&amp;&amp;n.onRemove(this.map),this._changed=!0},r.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},r.prototype.getSource=function(t){return this.sourceCaches[t]&amp;&amp;this.sourceCaches[t].getSource()},r.prototype.addLayer=function(e,r,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var i=e.id;if(this.getLayer(i))this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+i+'&quot; already exists on this map')));else{var a;if(&quot;custom&quot;===e.type){if(Ne(this,t.validateCustomStyleLayer(e)))return;a=t.createStyleLayer(e)}else{if(&quot;object&quot;==typeof e.source&amp;&amp;(this.addSource(i,e.source),e=t.clone$1(e),e=t.extend(e,{source:i})),this._validate(t.validateStyle.layer,&quot;layers.&quot;+i,e,{arrayIndex:-1},n))return;a=t.createStyleLayer(e),this._validateLayer(a),a.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[a.id]=a.serialize()}var o=r?this._order.indexOf(r):this._order.length;if(r&amp;&amp;-1===o)this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+r+'&quot; does not exist on this map.')));else{if(this._order.splice(o,0,i),this._layerOrderChanged=!0,this._layers[i]=a,this._removedLayers[i]&amp;&amp;a.source&amp;&amp;&quot;custom&quot;!==a.type){var s=this._removedLayers[i];delete this._removedLayers[i],s.type!==a.type?this._updatedSources[a.source]=&quot;clear&quot;:(this._updatedSources[a.source]=&quot;reload&quot;,this.sourceCaches[a.source].pause())}this._updateLayer(a),a.onAdd&amp;&amp;a.onAdd(this.map)}}},r.prototype.moveLayer=function(e,r){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==r){var n=this._order.indexOf(e);this._order.splice(n,1);var i=r?this._order.indexOf(r):this._order.length;r&amp;&amp;-1===i?this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+r+'&quot; does not exist on this map.'))):(this._order.splice(i,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be moved.&quot;)))},r.prototype.removeLayer=function(e){this._checkLoaded();var r=this._layers[e];if(r){r.setEventedParent(null);var n=this._order.indexOf(e);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=r,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],r.onRemove&amp;&amp;r.onRemove(this.map)}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be removed.&quot;)))},r.prototype.getLayer=function(t){return this._layers[t]},r.prototype.hasLayer=function(t){return t in this._layers},r.prototype.setLayerZoomRange=function(e,r,n){this._checkLoaded();var i=this.getLayer(e);i?i.minzoom===r&amp;&amp;i.maxzoom===n||(null!=r&amp;&amp;(i.minzoom=r),null!=n&amp;&amp;(i.maxzoom=n),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot have zoom extent.&quot;)))},r.prototype.setFilter=function(e,r,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var i=this.getLayer(e);if(i){if(!t.deepEqual(i.filter,r))return null==r?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(t.validateStyle.filter,&quot;layers.&quot;+i.id+&quot;.filter&quot;,r,null,n)||(i.filter=t.clone$1(r),this._updateLayer(i)))}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be filtered.&quot;)))},r.prototype.getFilter=function(e){return t.clone$1(this.getLayer(e).filter)},r.prototype.setLayoutProperty=function(e,r,n,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getLayoutProperty(r),n)||(a.setLayoutProperty(r,n,i),this._updateLayer(a)):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be styled.&quot;)))},r.prototype.getLayoutProperty=function(e,r){var n=this.getLayer(e);if(n)return n.getLayoutProperty(r);this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style.&quot;)))},r.prototype.setPaintProperty=function(e,r,n,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getPaintProperty(r),n)||(a.setPaintProperty(r,n,i)&amp;&amp;this._updateLayer(a),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be styled.&quot;)))},r.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},r.prototype.setFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=e.sourceLayer,a=this.sourceCaches[n];if(void 0!==a){var o=a.getSource().type;&quot;geojson&quot;===o&amp;&amp;i?this.fire(new t.ErrorEvent(new Error(&quot;GeoJSON sources cannot have a sourceLayer parameter.&quot;))):&quot;vector&quot;!==o||i?(void 0===e.id&amp;&amp;this.fire(new t.ErrorEvent(new Error(&quot;The feature id parameter must be provided.&quot;))),a.setFeatureState(i,e.id,r)):this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+n+&quot;' does not exist in the map's style.&quot;)))},r.prototype.removeFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=this.sourceCaches[n];if(void 0!==i){var a=i.getSource().type,o=&quot;vector&quot;===a?e.sourceLayer:void 0;&quot;vector&quot;!==a||o?r&amp;&amp;&quot;string&quot;!=typeof e.id&amp;&amp;&quot;number&quot;!=typeof e.id?this.fire(new t.ErrorEvent(new Error(&quot;A feature id is requred to remove its specific state property.&quot;))):i.removeFeatureState(o,e.id,r):this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+n+&quot;' does not exist in the map's style.&quot;)))},r.prototype.getFeatureState=function(e){this._checkLoaded();var r=e.source,n=e.sourceLayer,i=this.sourceCaches[r];if(void 0!==i){if(&quot;vector&quot;!==i.getSource().type||n)return void 0===e.id&amp;&amp;this.fire(new t.ErrorEvent(new Error(&quot;The feature id parameter must be provided.&quot;))),i.getFeatureState(n,e.id);this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+r+&quot;' does not exist in the map's style.&quot;)))},r.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&amp;&amp;this.stylesheet.transition)},r.prototype.serialize=function(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,(function(t){return t.serialize()})),layers:this._serializeLayers(this._order)},(function(t){return void 0!==t}))},r.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&amp;&amp;!this._updatedSources[t.source]&amp;&amp;&quot;raster&quot;!==this.sourceCaches[t.source].getSource().type&amp;&amp;(this._updatedSources[t.source]=&quot;reload&quot;,this.sourceCaches[t.source].pause()),this._changed=!0},r.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,r=function(t){return&quot;fill-extrusion&quot;===e._layers[t].type},n={},i=[],a=this._order.length-1;a&gt;=0;a--){var o=this._order[a];if(r(o)){n[o]=a;for(var s=0,l=t;s&lt;l.length;s+=1){var c=l[s][o];if(c)for(var u=0,f=c;u&lt;f.length;u+=1)i.push(f[u])}}}i.sort((function(t,e){return e.intersectionZ-t.intersectionZ}));for(var h=[],p=this._order.length-1;p&gt;=0;p--){var d=this._order[p];if(r(d))for(var g=i.length-1;g&gt;=0;g--){var m=i[g].feature;if(n[m.layer.id]&lt;p)break;h.push(m),i.pop()}else for(var v=0,y=t;v&lt;y.length;v+=1){var x=y[v][d];if(x)for(var b=0,_=x;b&lt;_.length;b+=1)h.push(_[b].feature)}}return h},r.prototype.queryRenderedFeatures=function(e,r,n){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,&quot;queryRenderedFeatures.filter&quot;,r.filter,null,r);var i={};if(r&amp;&amp;r.layers){if(!Array.isArray(r.layers))return this.fire(new t.ErrorEvent(new Error(&quot;parameters.layers must be an Array.&quot;))),[];for(var a=0,o=r.layers;a&lt;o.length;a+=1){var s=o[a],l=this._layers[s];if(!l)return this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+s+&quot;' does not exist in the map's style and cannot be queried for features.&quot;))),[];i[l.source]=!0}}var c=[];for(var u in r.availableImages=this._availableImages,this.sourceCaches)r.layers&amp;&amp;!i[u]||c.push(F(this.sourceCaches[u],this._layers,this._serializedLayers,e,r,n));return this.placement&amp;&amp;c.push(function(t,e,r,n,i,a,o){for(var s={},l=a.queryRenderedSymbols(n),c=[],u=0,f=Object.keys(l).map(Number);u&lt;f.length;u+=1)c.push(o[f[u]]);c.sort(B);for(var h=function(){var r=d[p],n=r.featureIndex.lookupSymbolFeatures(l[r.bucketInstanceId],e,r.bucketIndex,r.sourceLayerIndex,i.filter,i.layers,i.availableImages,t);for(var a in n){var o=s[a]=s[a]||[],c=n[a];c.sort((function(t,e){var n=r.featureSortOrder;if(n){var i=n.indexOf(t.featureIndex);return n.indexOf(e.featureIndex)-i}return e.featureIndex-t.featureIndex}));for(var u=0,f=c;u&lt;f.length;u+=1)o.push(f[u])}},p=0,d=c;p&lt;d.length;p+=1)h();var g=function(e){s[e].forEach((function(n){var i=n.feature,a=r[t[e].source].getFeatureState(i.layer[&quot;source-layer&quot;],i.id);i.source=i.layer.source,i.layer[&quot;source-layer&quot;]&amp;&amp;(i.sourceLayer=i.layer[&quot;source-layer&quot;]),i.state=a}))};for(var m in s)g(m);return s}(this._layers,this._serializedLayers,this.sourceCaches,e,r,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(c)},r.prototype.querySourceFeatures=function(e,r){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,&quot;querySourceFeatures.filter&quot;,r.filter,null,r);var n=this.sourceCaches[e];return n?function(t,e){for(var r=t.getRenderableIds().map((function(e){return t.getTileByID(e)})),n=[],i={},a=0;a&lt;r.length;a++){var o=r[a],s=o.tileID.canonical.key;i[s]||(i[s]=!0,o.querySourceFeatures(n,e))}return n}(n,r):[]},r.prototype.addSourceType=function(t,e,n){return r.getSourceType(t)?n(new Error('A source type called &quot;'+t+'&quot; already exists.')):(r.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast(&quot;loadWorkerSource&quot;,{name:t,url:e.workerSourceURL},n):n(null,null))},r.prototype.getLight=function(){return this.light.getLight()},r.prototype.setLight=function(e,r){void 0===r&amp;&amp;(r={}),this._checkLoaded();var n=this.light.getLight(),i=!1;for(var a in e)if(!t.deepEqual(e[a],n[a])){i=!0;break}if(i){var o={now:t.browser.now(),transition:t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,r),this.light.updateTransitions(o)}},r.prototype._validate=function(e,r,n,i,a){return void 0===a&amp;&amp;(a={}),(!a||!1!==a.validate)&amp;&amp;Ne(this,e.call(t.validateStyle,t.extend({key:r,style:this.serialize(),value:n,styleSpec:t.styleSpec},i)))},r.prototype._remove=function(){for(var e in this._request&amp;&amp;(this._request.cancel(),this._request=null),this._spriteRequest&amp;&amp;(this._spriteRequest.cancel(),this._spriteRequest=null),t.evented.off(&quot;pluginStateChange&quot;,this._rtlTextPluginCallback),this._layers)this._layers[e].setEventedParent(null);for(var r in this.sourceCaches)this.sourceCaches[r].clearTiles(),this.sourceCaches[r].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()},r.prototype._clearSource=function(t){this.sourceCaches[t].clearTiles()},r.prototype._reloadSource=function(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()},r.prototype._updateSources=function(t){for(var e in this.sourceCaches)this.sourceCaches[e].update(t)},r.prototype._generateCollisionBoxes=function(){for(var t in this.sourceCaches)this._reloadSource(t)},r.prototype._updatePlacement=function(e,r,n,i,a){void 0===a&amp;&amp;(a=!1);for(var o=!1,s=!1,l={},c=0,u=this._order;c&lt;u.length;c+=1){var f=this._layers[u[c]];if(&quot;symbol&quot;===f.type){if(!l[f.source]){var h=this.sourceCaches[f.source];l[f.source]=h.getRenderableIds(!0).map((function(t){return h.getTileByID(t)})).sort((function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)}))}var p=this.crossTileSymbolIndex.addLayer(f,l[f.source],e.center.lng);o=o||p}}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((a=a||this._layerOrderChanged||0===n)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&amp;&amp;!this.placement.stillRecent(t.browser.now(),e.zoom))&amp;&amp;(this.pauseablePlacement=new ze(e,this._order,a,r,n,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&amp;&amp;(this.placement=this.pauseablePlacement.commit(t.browser.now()),s=!0),o&amp;&amp;this.pauseablePlacement.placement.setStale()),s||o)for(var d=0,g=this._order;d&lt;g.length;d+=1){var m=this._layers[g[d]];&quot;symbol&quot;===m.type&amp;&amp;this.placement.updateLayerOpacities(m,l[m.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(t.browser.now())},r.prototype._releaseSymbolFadeTiles=function(){for(var t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()},r.prototype.getImages=function(t,e,r){this.imageManager.getImages(e.icons,r),this._updateTilesForChangedImages();var n=this.sourceCaches[e.source];n&amp;&amp;n.setDependencies(e.tileID.key,e.type,e.icons)},r.prototype.getGlyphs=function(t,e,r){this.glyphManager.getGlyphs(e.stacks,r)},r.prototype.getResource=function(e,r,n){return t.makeRequest(r,n)},r}(t.Evented);qe.getSourceType=function(t){return D[t]},qe.setSourceType=function(t,e){D[t]=e},qe.registerForPluginStateChange=t.registerForPluginStateChange;var He=t.createLayout([{name:&quot;a_pos&quot;,type:&quot;Int16&quot;,components:2}]),Ge=vr(&quot;#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif&quot;,&quot;#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}&quot;),Ye=vr(&quot;uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),We=vr(&quot;uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}&quot;),Xe=vr(&quot;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width &lt; 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}&quot;),Ze=vr(&quot;void main() {gl_FragColor=vec4(1.0);}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),Je=vr(&quot;uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}&quot;),Ke=vr(&quot;uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}&quot;),Qe=vr(&quot;varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed &gt; 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed &gt; 0.5) {gl_FragColor*=.1;}}&quot;,&quot;attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}&quot;),$e=vr(&quot;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}&quot;,&quot;attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd  =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz  /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx &gt;=2.0)),mix(-1.0,1.0,float(vertexIdx &gt;=1.0 &amp;&amp; vertexIdx &lt;=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}&quot;),tr=vr(&quot;uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}&quot;,&quot;attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}&quot;),er=vr(&quot;#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),rr=vr(&quot;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}&quot;),nr=vr(&quot;uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}&quot;),ir=vr(&quot;uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}&quot;),ar=vr(&quot;varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t &gt; 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}&quot;),or=vr(&quot;uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t &gt; 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 &amp;&amp; normal.y==0.0 &amp;&amp; normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}&quot;),sr=vr(&quot;#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform float u_maxzoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom &lt; 2.0 ? 0.4 : u_zoom &lt; 4.5 ? 0.35 : 0.3;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}&quot;),lr=vr(&quot;uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y &gt; 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}&quot;),cr=vr(&quot;uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}&quot;),ur=vr(&quot;uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define MAX_LINE_DISTANCE 32767.0\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}&quot;),fr=vr(&quot;uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}&quot;),hr=vr(&quot;uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}&quot;),pr=vr(&quot;uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a &gt; 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a &gt; 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}&quot;),dr=vr(&quot;uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}&quot;),gr=vr(&quot;#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}&quot;),mr=vr(&quot;#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}&quot;);function vr(t,e){var r=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,n={};return{fragmentSource:t=t.replace(r,(function(t,e,r,i,a){return n[a]=!0,&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nvarying &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifdef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;})),vertexSource:e=e.replace(r,(function(t,e,r,i,a){var o=&quot;float&quot;===i?&quot;vec2&quot;:&quot;vec4&quot;,s=a.match(/color/)?&quot;color&quot;:o;return n[a]?&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nuniform lowp float u_&quot;+a+&quot;_t;\nattribute &quot;+r+&quot; &quot;+o+&quot; a_&quot;+a+&quot;;\nvarying &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;vec4&quot;===s?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+a+&quot; = a_&quot;+a+&quot;;\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+a+&quot; = unpack_mix_&quot;+s+&quot;(a_&quot;+a+&quot;, u_&quot;+a+&quot;_t);\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nuniform lowp float u_&quot;+a+&quot;_t;\nattribute &quot;+r+&quot; &quot;+o+&quot; a_&quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;vec4&quot;===s?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = a_&quot;+a+&quot;;\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = unpack_mix_&quot;+s+&quot;(a_&quot;+a+&quot;, u_&quot;+a+&quot;_t);\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;}))}}var yr=Object.freeze({__proto__:null,prelude:Ge,background:Ye,backgroundPattern:We,circle:Xe,clippingMask:Ze,heatmap:Je,heatmapTexture:Ke,collisionBox:Qe,collisionCircle:$e,debug:tr,fill:er,fillOutline:rr,fillOutlinePattern:nr,fillPattern:ir,fillExtrusion:ar,fillExtrusionPattern:or,hillshadePrepare:sr,hillshade:lr,line:cr,lineGradient:ur,linePattern:fr,lineSDF:hr,raster:pr,symbolIcon:dr,symbolSDF:gr,symbolTextAndIcon:mr}),xr=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};xr.prototype.bind=function(t,e,r,n,i,a,o,s){this.context=t;for(var l=this.boundPaintVertexBuffers.length!==n.length,c=0;!l&amp;&amp;c&lt;n.length;c++)this.boundPaintVertexBuffers[c]!==n[c]&amp;&amp;(l=!0);t.extVertexArrayObject&amp;&amp;this.vao&amp;&amp;this.boundProgram===e&amp;&amp;this.boundLayoutVertexBuffer===r&amp;&amp;!l&amp;&amp;this.boundIndexBuffer===i&amp;&amp;this.boundVertexOffset===a&amp;&amp;this.boundDynamicVertexBuffer===o&amp;&amp;this.boundDynamicVertexBuffer2===s?(t.bindVertexArrayOES.set(this.vao),o&amp;&amp;o.bind(),i&amp;&amp;i.dynamicDraw&amp;&amp;i.bind(),s&amp;&amp;s.bind()):this.freshBind(e,r,n,i,a,o,s)},xr.prototype.freshBind=function(t,e,r,n,i,a,o){var s,l=t.numAttributes,c=this.context,u=c.gl;if(c.extVertexArrayObject)this.vao&amp;&amp;this.destroy(),this.vao=c.extVertexArrayObject.createVertexArrayOES(),c.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=r,this.boundIndexBuffer=n,this.boundVertexOffset=i,this.boundDynamicVertexBuffer=a,this.boundDynamicVertexBuffer2=o;else{s=c.currentNumAttributes||0;for(var f=l;f&lt;s;f++)u.disableVertexAttribArray(f)}e.enableAttributes(u,t);for(var h=0,p=r;h&lt;p.length;h+=1)p[h].enableAttributes(u,t);a&amp;&amp;a.enableAttributes(u,t),o&amp;&amp;o.enableAttributes(u,t),e.bind(),e.setVertexAttribPointers(u,t,i);for(var d=0,g=r;d&lt;g.length;d+=1){var m=g[d];m.bind(),m.setVertexAttribPointers(u,t,i)}a&amp;&amp;(a.bind(),a.setVertexAttribPointers(u,t,i)),n&amp;&amp;n.bind(),o&amp;&amp;(o.bind(),o.setVertexAttribPointers(u,t,i)),c.currentNumAttributes=l},xr.prototype.destroy=function(){this.vao&amp;&amp;(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var br=function(t,e,r,n,i){var a=t.gl;this.program=a.createProgram();var o=r?r.defines():[];i&amp;&amp;o.push(&quot;#define OVERDRAW_INSPECTOR;&quot;);var s=o.concat(Ge.fragmentSource,e.fragmentSource).join(&quot;\n&quot;),l=o.concat(Ge.vertexSource,e.vertexSource).join(&quot;\n&quot;),c=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(c,s),a.compileShader(c),a.attachShader(this.program,c);var u=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(u,l),a.compileShader(u),a.attachShader(this.program,u);for(var f=r?r.layoutAttributes:[],h=0;h&lt;f.length;h++)a.bindAttribLocation(this.program,h,f[h].name);a.linkProgram(this.program),a.deleteShader(u),a.deleteShader(c),this.numAttributes=a.getProgramParameter(this.program,a.ACTIVE_ATTRIBUTES),this.attributes={};for(var p={},d=0;d&lt;this.numAttributes;d++){var g=a.getActiveAttrib(this.program,d);g&amp;&amp;(this.attributes[g.name]=a.getAttribLocation(this.program,g.name))}for(var m=a.getProgramParameter(this.program,a.ACTIVE_UNIFORMS),v=0;v&lt;m;v++){var y=a.getActiveUniform(this.program,v);y&amp;&amp;(p[y.name]=a.getUniformLocation(this.program,y.name))}this.fixedUniforms=n(t,p),this.binderUniforms=r?r.getUniforms(t,p):[]}}};function _r(t,e,r){var n=1/he(r,1,e.transform.tileZoom),i=Math.pow(2,r.tileID.overscaledZ),a=r.tileSize*Math.pow(2,e.transform.tileZoom)/i,o=a*(r.tileID.canonical.x+r.tileID.wrap*i),s=a*r.tileID.canonical.y;return{u_image:0,u_texsize:r.imageAtlasTexture.size,u_scale:[n,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[o&gt;&gt;16,s&gt;&gt;16],u_pixel_coord_lower:[65535&amp;o,65535&amp;s]}}br.prototype.draw=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g){var m,v=t.gl;if(!this.failedToCreate){for(var y in t.program.set(this.program),t.setDepthMode(r),t.setStencilMode(n),t.setColorMode(i),t.setCullFace(a),this.fixedUniforms)this.fixedUniforms[y].set(o[y]);p&amp;&amp;p.setUniforms(t,this.binderUniforms,f,{zoom:h});for(var x=(m={},m[v.LINES]=2,m[v.TRIANGLES]=3,m[v.LINE_STRIP]=1,m)[e],b=0,_=u.get();b&lt;_.length;b+=1){var w=_[b],T=w.vaos||(w.vaos={});(T[s]||(T[s]=new xr)).bind(t,this,l,p?p.getPaintVertexBuffers():[],c,w.vertexOffset,d,g),v.drawElements(e,w.primitiveLength*x,v.UNSIGNED_SHORT,w.primitiveOffset*x*2)}}};var wr=function(e,r,n,i){var a=r.style.light,o=a.properties.get(&quot;position&quot;),s=[o.x,o.y,o.z],l=t.create$1();&quot;viewport&quot;===a.properties.get(&quot;anchor&quot;)&amp;&amp;t.fromRotation(l,-r.transform.angle),t.transformMat3(s,s,l);var c=a.properties.get(&quot;color&quot;);return{u_matrix:e,u_lightpos:s,u_lightintensity:a.properties.get(&quot;intensity&quot;),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+n,u_opacity:i}},Tr=function(e,r,n,i,a,o,s){return t.extend(wr(e,r,n,i),_r(o,r,s),{u_height_factor:-Math.pow(2,a.overscaledZ)/s.tileSize/8})},kr=function(t){return{u_matrix:t}},Mr=function(e,r,n,i){return t.extend(kr(e),_r(n,r,i))},Ar=function(t,e){return{u_matrix:t,u_world:e}},Sr=function(e,r,n,i,a){return t.extend(Mr(e,r,n,i),{u_world:a})},Er=function(e,r,n,i){var a,o,s=e.transform;if(&quot;map&quot;===i.paint.get(&quot;circle-pitch-alignment&quot;)){var l=he(n,1,s.zoom);a=!0,o=[l,l]}else a=!1,o=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+(&quot;map&quot;===i.paint.get(&quot;circle-pitch-scale&quot;)),u_matrix:e.translatePosMatrix(r.posMatrix,n,i.paint.get(&quot;circle-translate&quot;),i.paint.get(&quot;circle-translate-anchor&quot;)),u_pitch_with_map:+a,u_device_pixel_ratio:t.browser.devicePixelRatio,u_extrude_scale:o}},Cr=function(t,e,r){var n=he(r,1,e.zoom),i=Math.pow(2,e.zoom-r.tileID.overscaledZ),a=r.tileID.overscaleFactor();return{u_matrix:t,u_camera_to_center_distance:e.cameraToCenterDistance,u_pixels_to_tile_units:n,u_extrude_scale:[e.pixelsToGLUnits[0]/(n*i),e.pixelsToGLUnits[1]/(n*i)],u_overscale_factor:a}},Lr=function(t,e,r){return{u_matrix:t,u_inv_matrix:e,u_camera_to_center_distance:r.cameraToCenterDistance,u_viewport_size:[r.width,r.height]}},Ir=function(t,e,r){return void 0===r&amp;&amp;(r=1),{u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:r}},Pr=function(t){return{u_matrix:t}},zr=function(t,e,r,n){return{u_matrix:t,u_extrude_scale:he(e,1,r),u_intensity:n}},Or=function(e,r,n){var i=e.transform;return{u_matrix:Nr(e,r,n),u_ratio:1/he(r,1,i.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},Dr=function(e,r,n){return t.extend(Or(e,r,n),{u_image:0})},Rr=function(e,r,n,i){var a=e.transform,o=Br(r,a);return{u_matrix:Nr(e,r,n),u_texsize:r.imageAtlasTexture.size,u_ratio:1/he(r,1,a.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_image:0,u_scale:[o,i.fromScale,i.toScale],u_fade:i.t,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]]}},Fr=function(e,r,n,i,a){var o=e.lineAtlas,s=Br(r,e.transform),l=&quot;round&quot;===n.layout.get(&quot;line-cap&quot;),c=o.getDash(i.from,l),u=o.getDash(i.to,l),f=c.width*a.fromScale,h=u.width*a.toScale;return t.extend(Or(e,r,n),{u_patternscale_a:[s/f,-c.height/2],u_patternscale_b:[s/h,-u.height/2],u_sdfgamma:o.width/(256*Math.min(f,h)*t.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:c.y,u_tex_y_b:u.y,u_mix:a.t})};function Br(t,e){return 1/he(t,1,e.tileZoom)}function Nr(t,e,r){return t.translatePosMatrix(e.tileID.posMatrix,e,r.paint.get(&quot;line-translate&quot;),r.paint.get(&quot;line-translate-anchor&quot;))}var jr=function(t,e,r,n,i){return{u_matrix:t,u_tl_parent:e,u_scale_parent:r,u_buffer_scale:1,u_fade_t:n.mix,u_opacity:n.opacity*i.paint.get(&quot;raster-opacity&quot;),u_image0:0,u_image1:1,u_brightness_low:i.paint.get(&quot;raster-brightness-min&quot;),u_brightness_high:i.paint.get(&quot;raster-brightness-max&quot;),u_saturation_factor:(o=i.paint.get(&quot;raster-saturation&quot;),o&gt;0?1-1/(1.001-o):-o),u_contrast_factor:(a=i.paint.get(&quot;raster-contrast&quot;),a&gt;0?1/(1-a):1+a),u_spin_weights:Ur(i.paint.get(&quot;raster-hue-rotate&quot;))};var a,o};function Ur(t){t*=Math.PI/180;var e=Math.sin(t),r=Math.cos(t);return[(2*r+1)/3,(-Math.sqrt(3)*e-r+1)/3,(Math.sqrt(3)*e-r+1)/3]}var Vr,qr=function(t,e,r,n,i,a,o,s,l,c){var u=i.transform;return{u_is_size_zoom_constant:+(&quot;constant&quot;===t||&quot;source&quot;===t),u_is_size_feature_constant:+(&quot;constant&quot;===t||&quot;camera&quot;===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:u.cameraToCenterDistance,u_pitch:u.pitch/360*2*Math.PI,u_rotate_symbol:+r,u_aspect_ratio:u.width/u.height,u_fade_change:i.options.fadeDuration?i.symbolFadeChange:1,u_matrix:a,u_label_plane_matrix:o,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+n,u_texsize:c,u_texture:0}},Hr=function(e,r,n,i,a,o,s,l,c,u,f){var h=a.transform;return t.extend(qr(e,r,n,i,a,o,s,l,c,u),{u_gamma_scale:i?Math.cos(h._pitch)*h.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+f})},Gr=function(e,r,n,i,a,o,s,l,c,u){return t.extend(Hr(e,r,n,i,a,o,s,l,!0,c,!0),{u_texsize_icon:u,u_texture_icon:1})},Yr=function(t,e,r){return{u_matrix:t,u_opacity:e,u_color:r}},Wr=function(e,r,n,i,a,o){return t.extend(function(t,e,r,n){var i=r.imageManager.getPattern(t.from.toString()),a=r.imageManager.getPattern(t.to.toString()),o=r.imageManager.getPixelSize(),s=o.width,l=o.height,c=Math.pow(2,n.tileID.overscaledZ),u=n.tileSize*Math.pow(2,r.transform.tileZoom)/c,f=u*(n.tileID.canonical.x+n.tileID.wrap*c),h=u*n.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[s,l],u_mix:e.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/he(n,1,r.transform.tileZoom),u_pixel_coord_upper:[f&gt;&gt;16,h&gt;&gt;16],u_pixel_coord_lower:[65535&amp;f,65535&amp;h]}}(i,o,n,a),{u_matrix:e,u_opacity:r})},Xr={fillExtrusion:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fillExtrusionPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,r.u_height_factor),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fill:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},fillPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},fillOutline:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world)}},fillOutlinePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},circle:function(e,r){return{u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,r.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},collisionBox:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,r.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,r.u_overscale_factor)}},collisionCircle:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,r.u_inv_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,r.u_viewport_size)}},debug:function(e,r){return{u_color:new t.UniformColor(e,r.u_color),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_overlay:new t.Uniform1i(e,r.u_overlay),u_overlay_scale:new t.Uniform1f(e,r.u_overlay_scale)}},clippingMask:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmap:function(e,r){return{u_extrude_scale:new t.Uniform1f(e,r.u_extrude_scale),u_intensity:new t.Uniform1f(e,r.u_intensity),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmapTexture:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_color_ramp:new t.Uniform1i(e,r.u_color_ramp),u_opacity:new t.Uniform1f(e,r.u_opacity)}},hillshade:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_latrange:new t.Uniform2f(e,r.u_latrange),u_light:new t.Uniform2f(e,r.u_light),u_shadow:new t.UniformColor(e,r.u_shadow),u_highlight:new t.UniformColor(e,r.u_highlight),u_accent:new t.UniformColor(e,r.u_accent)}},hillshadePrepare:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_dimension:new t.Uniform2f(e,r.u_dimension),u_zoom:new t.Uniform1f(e,r.u_zoom),u_maxzoom:new t.Uniform1f(e,r.u_maxzoom),u_unpack:new t.Uniform4f(e,r.u_unpack)}},line:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels)}},lineGradient:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_image:new t.Uniform1i(e,r.u_image)}},linePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_texsize:new t.Uniform2f(e,r.u_texsize),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_image:new t.Uniform1i(e,r.u_image),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},lineSDF:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,r.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,r.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,r.u_sdfgamma),u_image:new t.Uniform1i(e,r.u_image),u_tex_y_a:new t.Uniform1f(e,r.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,r.u_tex_y_b),u_mix:new t.Uniform1f(e,r.u_mix)}},raster:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_tl_parent:new t.Uniform2f(e,r.u_tl_parent),u_scale_parent:new t.Uniform1f(e,r.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,r.u_buffer_scale),u_fade_t:new t.Uniform1f(e,r.u_fade_t),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image0:new t.Uniform1i(e,r.u_image0),u_image1:new t.Uniform1i(e,r.u_image1),u_brightness_low:new t.Uniform1f(e,r.u_brightness_low),u_brightness_high:new t.Uniform1f(e,r.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,r.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,r.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,r.u_spin_weights)}},symbolIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture)}},symbolSDF:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},symbolTextAndIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texsize_icon:new t.Uniform2f(e,r.u_texsize_icon),u_texture:new t.Uniform1i(e,r.u_texture),u_texture_icon:new t.Uniform1i(e,r.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},background:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_color:new t.UniformColor(e,r.u_color)}},backgroundPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image:new t.Uniform1i(e,r.u_image),u_pattern_tl_a:new t.Uniform2f(e,r.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,r.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,r.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,r.u_pattern_br_b),u_texsize:new t.Uniform2f(e,r.u_texsize),u_mix:new t.Uniform1f(e,r.u_mix),u_pattern_size_a:new t.Uniform2f(e,r.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,r.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,r.u_scale_a),u_scale_b:new t.Uniform1f(e,r.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,r.u_tile_units_to_pixels)}}};function Zr(e,r,n,i,a,o,s){for(var l=e.context,c=l.gl,u=e.useProgram(&quot;collisionBox&quot;),f=[],h=0,p=0,d=0;d&lt;i.length;d++){var g=i[d],m=r.getTile(g),v=m.getBucket(n);if(v){var y=g.posMatrix;0===a[0]&amp;&amp;0===a[1]||(y=e.translatePosMatrix(g.posMatrix,m,a,o));var x=s?v.textCollisionBox:v.iconCollisionBox,b=v.collisionCircleArray;if(b.length&gt;0){var _=t.create(),w=y;t.mul(_,v.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul(_,_,v.placementViewportMatrix),f.push({circleArray:b,circleOffset:p,transform:w,invTransform:_}),p=h+=b.length/4}x&amp;&amp;u.draw(l,c.LINES,Mt.disabled,At.disabled,e.colorModeForRenderPass(),Et.disabled,Cr(y,e.transform,m),n.id,x.layoutVertexBuffer,x.indexBuffer,x.segments,null,e.transform.zoom,null,null,x.collisionVertexBuffer)}}if(s&amp;&amp;f.length){var T=e.useProgram(&quot;collisionCircle&quot;),k=new t.StructArrayLayout2f1f2i16;k.resize(4*h),k._trim();for(var M=0,A=0,S=f;A&lt;S.length;A+=1)for(var E=S[A],C=0;C&lt;E.circleArray.length/4;C++){var L=4*C,I=E.circleArray[L+0],P=E.circleArray[L+1],z=E.circleArray[L+2],O=E.circleArray[L+3];k.emplace(M++,I,P,z,O,0),k.emplace(M++,I,P,z,O,1),k.emplace(M++,I,P,z,O,2),k.emplace(M++,I,P,z,O,3)}(!Vr||Vr.length&lt;2*h)&amp;&amp;(Vr=function(e){var r=2*e,n=new t.StructArrayLayout3ui6;n.resize(r),n._trim();for(var i=0;i&lt;r;i++){var a=6*i;n.uint16[a+0]=4*i+0,n.uint16[a+1]=4*i+1,n.uint16[a+2]=4*i+2,n.uint16[a+3]=4*i+2,n.uint16[a+4]=4*i+3,n.uint16[a+5]=4*i+0}return n}(h));for(var D=l.createIndexBuffer(Vr,!0),R=l.createVertexBuffer(k,t.collisionCircleLayout.members,!0),F=0,B=f;F&lt;B.length;F+=1){var N=B[F],j=Lr(N.transform,N.invTransform,e.transform);T.draw(l,c.TRIANGLES,Mt.disabled,At.disabled,e.colorModeForRenderPass(),Et.disabled,j,n.id,R,D,t.SegmentVector.simpleSegment(0,2*N.circleOffset,N.circleArray.length,N.circleArray.length/2),null,e.transform.zoom,null,null,null)}R.destroy(),D.destroy()}}var Jr=t.identity(new Float32Array(16));function Kr(e,r,n,i,a,o){var s=t.getAnchorAlignment(e),l=-(s.horizontalAlign-.5)*r,c=-(s.verticalAlign-.5)*n,u=t.evaluateVariableOffset(e,i);return new t.Point((l/a+u[0])*o,(c/a+u[1])*o)}function Qr(e,r,n,i,a,o,s,l,c,u,f){var h=e.text.placedSymbolArray,p=e.text.dynamicLayoutVertexArray,d=e.icon.dynamicLayoutVertexArray,g={};p.clear();for(var m=0;m&lt;h.length;m++){var v=h.get(m),y=v.hidden||!v.crossTileID||e.allowVerticalPlacement&amp;&amp;!v.placedOrientation?null:i[v.crossTileID];if(y){var x=new t.Point(v.anchorX,v.anchorY),b=$t(x,n?l:s),_=te(o.cameraToCenterDistance,b.signedDistanceFromCamera),w=a.evaluateSizeForFeature(e.textSizeData,u,v)*_/t.ONE_EM;n&amp;&amp;(w*=e.tilePixelRatio/c);for(var T=Kr(y.anchor,y.width,y.height,y.textOffset,y.textBoxScale,w),k=n?$t(x.add(T),s).point:b.point.add(r?T.rotate(-o.angle):T),M=e.allowVerticalPlacement&amp;&amp;v.placedOrientation===t.WritingMode.vertical?Math.PI/2:0,A=0;A&lt;v.numGlyphs;A++)t.addDynamicAttributes(p,k,M);f&amp;&amp;v.associatedIconIndex&gt;=0&amp;&amp;(g[v.associatedIconIndex]={shiftedAnchor:k,angle:M})}else ce(v.numGlyphs,p)}if(f){d.clear();for(var S=e.icon.placedSymbolArray,E=0;E&lt;S.length;E++){var C=S.get(E);if(C.hidden)ce(C.numGlyphs,d);else{var L=g[E];if(L)for(var I=0;I&lt;C.numGlyphs;I++)t.addDynamicAttributes(d,L.shiftedAnchor,L.angle);else ce(C.numGlyphs,d)}}e.icon.dynamicLayoutVertexBuffer.updateData(d)}e.text.dynamicLayoutVertexBuffer.updateData(p)}function $r(t,e,r){return r.iconsInText&amp;&amp;e?&quot;symbolTextAndIcon&quot;:t?&quot;symbolSDF&quot;:&quot;symbolIcon&quot;}function tn(e,r,n,i,a,o,s,l,c,u,f,h){for(var p=e.context,d=p.gl,g=e.transform,m=&quot;map&quot;===l,v=&quot;map&quot;===c,y=m&amp;&amp;&quot;point&quot;!==n.layout.get(&quot;symbol-placement&quot;),x=m&amp;&amp;!v&amp;&amp;!y,b=void 0!==n.layout.get(&quot;symbol-sort-key&quot;).constantOr(1),_=e.depthModeForSublayer(0,Mt.ReadOnly),w=n.layout.get(&quot;text-variable-anchor&quot;),T=[],k=0,M=i;k&lt;M.length;k+=1){var A=M[k],S=r.getTile(A),E=S.getBucket(n);if(E){var C=a?E.text:E.icon;if(C&amp;&amp;C.segments.get().length){var L=C.programConfigurations.get(n.id),I=a||E.sdfIcons,P=a?E.textSizeData:E.iconSizeData,z=v||0!==g.pitch,O=e.useProgram($r(I,a,E),L),D=t.evaluateSizeForZoom(P,g.zoom),R=void 0,F=[0,0],B=void 0,N=void 0,j=null,U=void 0;if(a)B=S.glyphAtlasTexture,N=d.LINEAR,R=S.glyphAtlasTexture.size,E.iconsInText&amp;&amp;(F=S.imageAtlasTexture.size,j=S.imageAtlasTexture,U=z||e.options.rotating||e.options.zooming||&quot;composite&quot;===P.kind||&quot;camera&quot;===P.kind?d.LINEAR:d.NEAREST);else{var V=1!==n.layout.get(&quot;icon-size&quot;).constantOr(0)||E.iconsNeedLinear;B=S.imageAtlasTexture,N=I||e.options.rotating||e.options.zooming||V||z?d.LINEAR:d.NEAREST,R=S.imageAtlasTexture.size}var q=he(S,1,e.transform.zoom),H=Kt(A.posMatrix,v,m,e.transform,q),G=Qt(A.posMatrix,v,m,e.transform,q),Y=w&amp;&amp;E.hasTextData(),W=&quot;none&quot;!==n.layout.get(&quot;icon-text-fit&quot;)&amp;&amp;Y&amp;&amp;E.hasIconData();y&amp;&amp;re(E,A.posMatrix,e,a,H,G,v,u);var X=e.translatePosMatrix(A.posMatrix,S,o,s),Z=y||a&amp;&amp;w||W?Jr:H,J=e.translatePosMatrix(G,S,o,s,!0),K=I&amp;&amp;0!==n.paint.get(a?&quot;text-halo-width&quot;:&quot;icon-halo-width&quot;).constantOr(1),Q={program:O,buffers:C,uniformValues:I?E.iconsInText?Gr(P.kind,D,x,v,e,X,Z,J,R,F):Hr(P.kind,D,x,v,e,X,Z,J,a,R,!0):qr(P.kind,D,x,v,e,X,Z,J,a,R),atlasTexture:B,atlasTextureIcon:j,atlasInterpolation:N,atlasInterpolationIcon:U,isSDF:I,hasHalo:K};if(b)for(var $=0,tt=C.segments.get();$&lt;tt.length;$+=1){var et=tt[$];T.push({segments:new t.SegmentVector([et]),sortKey:et.sortKey,state:Q})}else T.push({segments:C.segments,sortKey:0,state:Q})}}}b&amp;&amp;T.sort((function(t,e){return t.sortKey-e.sortKey}));for(var rt=0,nt=T;rt&lt;nt.length;rt+=1){var it=nt[rt],at=it.state;if(p.activeTexture.set(d.TEXTURE0),at.atlasTexture.bind(at.atlasInterpolation,d.CLAMP_TO_EDGE),at.atlasTextureIcon&amp;&amp;(p.activeTexture.set(d.TEXTURE1),at.atlasTextureIcon&amp;&amp;at.atlasTextureIcon.bind(at.atlasInterpolationIcon,d.CLAMP_TO_EDGE)),at.isSDF){var ot=at.uniformValues;at.hasHalo&amp;&amp;(ot.u_is_halo=1,en(at.buffers,it.segments,n,e,at.program,_,f,h,ot)),ot.u_is_halo=0}en(at.buffers,it.segments,n,e,at.program,_,f,h,at.uniformValues)}}function en(t,e,r,n,i,a,o,s,l){var c=n.context;i.draw(c,c.gl.TRIANGLES,a,o,s,Et.disabled,l,r.id,t.layoutVertexBuffer,t.indexBuffer,e,r.paint,n.transform.zoom,t.programConfigurations.get(r.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function rn(t,e,r,n,i,a,o){var s,l,c,u,f,h=t.context.gl,p=r.paint.get(&quot;fill-pattern&quot;),d=p&amp;&amp;p.constantOr(1),g=r.getCrossfadeParameters();o?(l=d&amp;&amp;!r.getPaintProperty(&quot;fill-outline-color&quot;)?&quot;fillOutlinePattern&quot;:&quot;fillOutline&quot;,s=h.LINES):(l=d?&quot;fillPattern&quot;:&quot;fill&quot;,s=h.TRIANGLES);for(var m=0,v=n;m&lt;v.length;m+=1){var y=v[m],x=e.getTile(y);if(!d||x.patternsLoaded()){var b=x.getBucket(r);if(b){var _=b.programConfigurations.get(r.id),w=t.useProgram(l,_);d&amp;&amp;(t.context.activeTexture.set(h.TEXTURE0),x.imageAtlasTexture.bind(h.LINEAR,h.CLAMP_TO_EDGE),_.updatePaintBuffers(g));var T=p.constantOr(null);if(T&amp;&amp;x.imageAtlas){var k=x.imageAtlas,M=k.patternPositions[T.to.toString()],A=k.patternPositions[T.from.toString()];M&amp;&amp;A&amp;&amp;_.setConstantPatternPositions(M,A)}var S=t.translatePosMatrix(y.posMatrix,x,r.paint.get(&quot;fill-translate&quot;),r.paint.get(&quot;fill-translate-anchor&quot;));if(o){u=b.indexBuffer2,f=b.segments2;var E=[h.drawingBufferWidth,h.drawingBufferHeight];c=&quot;fillOutlinePattern&quot;===l&amp;&amp;d?Sr(S,t,g,x,E):Ar(S,E)}else u=b.indexBuffer,f=b.segments,c=d?Mr(S,t,g,x):kr(S);w.draw(t.context,s,i,t.stencilModeForClipping(y),a,Et.disabled,c,r.id,b.layoutVertexBuffer,u,f,r.paint,t.transform.zoom,_)}}}}function nn(t,e,r,n,i,a,o){for(var s=t.context,l=s.gl,c=r.paint.get(&quot;fill-extrusion-pattern&quot;),u=c.constantOr(1),f=r.getCrossfadeParameters(),h=r.paint.get(&quot;fill-extrusion-opacity&quot;),p=0,d=n;p&lt;d.length;p+=1){var g=d[p],m=e.getTile(g),v=m.getBucket(r);if(v){var y=v.programConfigurations.get(r.id),x=t.useProgram(u?&quot;fillExtrusionPattern&quot;:&quot;fillExtrusion&quot;,y);u&amp;&amp;(t.context.activeTexture.set(l.TEXTURE0),m.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),y.updatePaintBuffers(f));var b=c.constantOr(null);if(b&amp;&amp;m.imageAtlas){var _=m.imageAtlas,w=_.patternPositions[b.to.toString()],T=_.patternPositions[b.from.toString()];w&amp;&amp;T&amp;&amp;y.setConstantPatternPositions(w,T)}var k=t.translatePosMatrix(g.posMatrix,m,r.paint.get(&quot;fill-extrusion-translate&quot;),r.paint.get(&quot;fill-extrusion-translate-anchor&quot;)),M=r.paint.get(&quot;fill-extrusion-vertical-gradient&quot;),A=u?Tr(k,t,M,h,g,f,m):wr(k,t,M,h);x.draw(s,s.gl.TRIANGLES,i,a,o,Et.backCCW,A,r.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,r.paint,t.transform.zoom,y)}}}function an(e,r,n,i,a,o){var s=e.context,l=s.gl,c=r.fbo;if(c){var u=e.useProgram(&quot;hillshade&quot;);s.activeTexture.set(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,c.colorAttachment.get());var f=function(e,r,n){var i=n.paint.get(&quot;hillshade-shadow-color&quot;),a=n.paint.get(&quot;hillshade-highlight-color&quot;),o=n.paint.get(&quot;hillshade-accent-color&quot;),s=n.paint.get(&quot;hillshade-illumination-direction&quot;)*(Math.PI/180);&quot;viewport&quot;===n.paint.get(&quot;hillshade-illumination-anchor&quot;)&amp;&amp;(s-=e.transform.angle);var l,c,u,f=!e.options.moving;return{u_matrix:e.transform.calculatePosMatrix(r.tileID.toUnwrapped(),f),u_image:0,u_latrange:(l=r.tileID,c=Math.pow(2,l.canonical.z),u=l.canonical.y,[new t.MercatorCoordinate(0,u/c).toLngLat().lat,new t.MercatorCoordinate(0,(u+1)/c).toLngLat().lat]),u_light:[n.paint.get(&quot;hillshade-exaggeration&quot;),s],u_shadow:i,u_highlight:a,u_accent:o}}(e,r,n);u.draw(s,l.TRIANGLES,i,a,o,Et.disabled,f,n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}}function on(e,r,n,i,a,o,s){var l=e.context,c=l.gl,u=r.dem;if(u&amp;&amp;u.data){var f=u.dim,h=u.stride,p=u.getPixels();if(l.activeTexture.set(c.TEXTURE1),l.pixelStoreUnpackPremultiplyAlpha.set(!1),r.demTexture=r.demTexture||e.getTileTexture(h),r.demTexture){var d=r.demTexture;d.update(p,{premultiply:!1}),d.bind(c.NEAREST,c.CLAMP_TO_EDGE)}else r.demTexture=new t.Texture(l,p,c.RGBA,{premultiply:!1}),r.demTexture.bind(c.NEAREST,c.CLAMP_TO_EDGE);l.activeTexture.set(c.TEXTURE0);var g=r.fbo;if(!g){var m=new t.Texture(l,{width:f,height:f,data:null},c.RGBA);m.bind(c.LINEAR,c.CLAMP_TO_EDGE),(g=r.fbo=l.createFramebuffer(f,f,!0)).colorAttachment.set(m.texture)}l.bindFramebuffer.set(g.framebuffer),l.viewport.set([0,0,f,f]),e.useProgram(&quot;hillshadePrepare&quot;).draw(l,c.TRIANGLES,a,o,s,Et.disabled,function(e,r,n){var i=r.stride,a=t.create();return t.ortho(a,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(a,a,[0,-t.EXTENT,0]),{u_matrix:a,u_image:1,u_dimension:[i,i],u_zoom:e.overscaledZ,u_maxzoom:n,u_unpack:r.getUnpackVector()}}(r.tileID,u,i),n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),r.needsHillshadePrepare=!1}}function sn(e,r,n,i,a){var o=i.paint.get(&quot;raster-fade-duration&quot;);if(o&gt;0){var s=t.browser.now(),l=(s-e.timeAdded)/o,c=r?(s-r.timeAdded)/o:-1,u=n.getSource(),f=a.coveringZoomLevel({tileSize:u.tileSize,roundZoom:u.roundZoom}),h=!r||Math.abs(r.tileID.overscaledZ-f)&gt;Math.abs(e.tileID.overscaledZ-f),p=h&amp;&amp;e.refreshedUponExpiration?1:t.clamp(h?l:1-c,0,1);return e.refreshedUponExpiration&amp;&amp;l&gt;=1&amp;&amp;(e.refreshedUponExpiration=!1),r?{opacity:1,mix:1-p}:{opacity:p,mix:0}}return{opacity:1,mix:0}}var ln=new t.Color(1,0,0,1),cn=new t.Color(0,1,0,1),un=new t.Color(0,0,1,1),fn=new t.Color(1,0,1,1),hn=new t.Color(0,1,1,1);function pn(t,e,r,n){gn(t,0,e+r/2,t.transform.width,r,n)}function dn(t,e,r,n){gn(t,e-r/2,0,r,t.transform.height,n)}function gn(e,r,n,i,a,o){var s=e.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(r*t.browser.devicePixelRatio,n*t.browser.devicePixelRatio,i*t.browser.devicePixelRatio,a*t.browser.devicePixelRatio),s.clear({color:o}),l.disable(l.SCISSOR_TEST)}function mn(e,r,n){var i=e.context,a=i.gl,o=n.posMatrix,s=e.useProgram(&quot;debug&quot;),l=Mt.disabled,c=At.disabled,u=e.colorModeForRenderPass();i.activeTexture.set(a.TEXTURE0),e.emptyTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE),s.draw(i,a.LINE_STRIP,l,c,u,Et.disabled,Ir(o,t.Color.red),&quot;$debug&quot;,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);var f=r.getTileByID(n.key).latestRawTileData,h=Math.floor((f&amp;&amp;f.byteLength||0)/1024),p=r.getTile(n).tileSize,d=512/Math.min(p,512)*(n.overscaledZ/e.transform.zoom)*.5,g=n.canonical.toString();n.overscaledZ!==n.canonical.z&amp;&amp;(g+=&quot; =&gt; &quot;+n.overscaledZ),function(t,e){t.initDebugOverlayCanvas();var r=t.debugOverlayCanvas,n=t.context.gl,i=t.debugOverlayCanvas.getContext(&quot;2d&quot;);i.clearRect(0,0,r.width,r.height),i.shadowColor=&quot;white&quot;,i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle=&quot;white&quot;,i.textBaseline=&quot;top&quot;,i.font=&quot;bold 36px Open Sans, sans-serif&quot;,i.fillText(e,5,5),i.strokeText(e,5,5),t.debugOverlayTexture.update(r),t.debugOverlayTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}(e,g+&quot; &quot;+h+&quot;kb&quot;),s.draw(i,a.TRIANGLES,l,c,St.alphaBlended,Et.disabled,Ir(o,t.Color.transparent,d),&quot;$debug&quot;,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments)}var vn={symbol:function(e,r,n,i,a){if(&quot;translucent&quot;===e.renderPass){var o=At.disabled,s=e.colorModeForRenderPass();n.layout.get(&quot;text-variable-anchor&quot;)&amp;&amp;function(e,r,n,i,a,o,s){for(var l=r.transform,c=&quot;map&quot;===a,u=&quot;map&quot;===o,f=0,h=e;f&lt;h.length;f+=1){var p=h[f],d=i.getTile(p),g=d.getBucket(n);if(g&amp;&amp;g.text&amp;&amp;g.text.segments.get().length){var m=t.evaluateSizeForZoom(g.textSizeData,l.zoom),v=he(d,1,r.transform.zoom),y=Kt(p.posMatrix,u,c,r.transform,v),x=&quot;none&quot;!==n.layout.get(&quot;icon-text-fit&quot;)&amp;&amp;g.hasIconData();if(m){var b=Math.pow(2,l.zoom-d.tileID.overscaledZ);Qr(g,c,u,s,t.symbolSize,l,y,p.posMatrix,b,m,x)}}}}(i,e,n,r,n.layout.get(&quot;text-rotation-alignment&quot;),n.layout.get(&quot;text-pitch-alignment&quot;),a),0!==n.paint.get(&quot;icon-opacity&quot;).constantOr(1)&amp;&amp;tn(e,r,n,i,!1,n.paint.get(&quot;icon-translate&quot;),n.paint.get(&quot;icon-translate-anchor&quot;),n.layout.get(&quot;icon-rotation-alignment&quot;),n.layout.get(&quot;icon-pitch-alignment&quot;),n.layout.get(&quot;icon-keep-upright&quot;),o,s),0!==n.paint.get(&quot;text-opacity&quot;).constantOr(1)&amp;&amp;tn(e,r,n,i,!0,n.paint.get(&quot;text-translate&quot;),n.paint.get(&quot;text-translate-anchor&quot;),n.layout.get(&quot;text-rotation-alignment&quot;),n.layout.get(&quot;text-pitch-alignment&quot;),n.layout.get(&quot;text-keep-upright&quot;),o,s),r.map.showCollisionBoxes&amp;&amp;(Zr(e,r,n,i,n.paint.get(&quot;text-translate&quot;),n.paint.get(&quot;text-translate-anchor&quot;),!0),Zr(e,r,n,i,n.paint.get(&quot;icon-translate&quot;),n.paint.get(&quot;icon-translate-anchor&quot;),!1))}},circle:function(e,r,n,i){if(&quot;translucent&quot;===e.renderPass){var a=n.paint.get(&quot;circle-opacity&quot;),o=n.paint.get(&quot;circle-stroke-width&quot;),s=n.paint.get(&quot;circle-stroke-opacity&quot;),l=void 0!==n.layout.get(&quot;circle-sort-key&quot;).constantOr(1);if(0!==a.constantOr(1)||0!==o.constantOr(1)&amp;&amp;0!==s.constantOr(1)){for(var c=e.context,u=c.gl,f=e.depthModeForSublayer(0,Mt.ReadOnly),h=At.disabled,p=e.colorModeForRenderPass(),d=[],g=0;g&lt;i.length;g++){var m=i[g],v=r.getTile(m),y=v.getBucket(n);if(y){var x=y.programConfigurations.get(n.id),b={programConfiguration:x,program:e.useProgram(&quot;circle&quot;,x),layoutVertexBuffer:y.layoutVertexBuffer,indexBuffer:y.indexBuffer,uniformValues:Er(e,m,v,n)};if(l)for(var _=0,w=y.segments.get();_&lt;w.length;_+=1){var T=w[_];d.push({segments:new t.SegmentVector([T]),sortKey:T.sortKey,state:b})}else d.push({segments:y.segments,sortKey:0,state:b})}}l&amp;&amp;d.sort((function(t,e){return t.sortKey-e.sortKey}));for(var k=0,M=d;k&lt;M.length;k+=1){var A=M[k],S=A.state;S.program.draw(c,u.TRIANGLES,f,h,p,Et.disabled,S.uniformValues,n.id,S.layoutVertexBuffer,S.indexBuffer,A.segments,n.paint,e.transform.zoom,S.programConfiguration)}}}},heatmap:function(e,r,n,i){if(0!==n.paint.get(&quot;heatmap-opacity&quot;))if(&quot;offscreen&quot;===e.renderPass){var a=e.context,o=a.gl,s=At.disabled,l=new St([o.ONE,o.ONE],t.Color.transparent,[!0,!0,!0,!0]);!function(t,e,r){var n=t.gl;t.activeTexture.set(n.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);var i=r.heatmapFbo;if(i)n.bindTexture(n.TEXTURE_2D,i.colorAttachment.get()),t.bindFramebuffer.set(i.framebuffer);else{var a=n.createTexture();n.bindTexture(n.TEXTURE_2D,a),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),i=r.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4,!1),function(t,e,r,n){var i=t.gl;i.texImage2D(i.TEXTURE_2D,0,i.RGBA,e.width/4,e.height/4,0,i.RGBA,t.extRenderToTextureHalfFloat?t.extTextureHalfFloat.HALF_FLOAT_OES:i.UNSIGNED_BYTE,null),n.colorAttachment.set(r)}(t,e,a,i)}}(a,e,n),a.clear({color:t.Color.transparent});for(var c=0;c&lt;i.length;c++){var u=i[c];if(!r.hasRenderableParent(u)){var f=r.getTile(u),h=f.getBucket(n);if(h){var p=h.programConfigurations.get(n.id);e.useProgram(&quot;heatmap&quot;,p).draw(a,o.TRIANGLES,Mt.disabled,s,l,Et.disabled,zr(u.posMatrix,f,e.transform.zoom,n.paint.get(&quot;heatmap-intensity&quot;)),n.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,n.paint,e.transform.zoom,p)}}}a.viewport.set([0,0,e.width,e.height])}else&quot;translucent&quot;===e.renderPass&amp;&amp;(e.context.setColorMode(e.colorModeForRenderPass()),function(e,r){var n=e.context,i=n.gl,a=r.heatmapFbo;if(a){n.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),n.activeTexture.set(i.TEXTURE1);var o=r.colorRampTexture;o||(o=r.colorRampTexture=new t.Texture(n,r.colorRamp,i.RGBA)),o.bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram(&quot;heatmapTexture&quot;).draw(n,i.TRIANGLES,Mt.disabled,At.disabled,e.colorModeForRenderPass(),Et.disabled,function(e,r,n,i){var a=t.create();t.ortho(a,0,e.width,e.height,0,0,1);var o=e.context.gl;return{u_matrix:a,u_world:[o.drawingBufferWidth,o.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:r.paint.get(&quot;heatmap-opacity&quot;)}}(e,r),r.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,r.paint,e.transform.zoom)}}(e,n))},line:function(e,r,n,i){if(&quot;translucent&quot;===e.renderPass){var a=n.paint.get(&quot;line-opacity&quot;),o=n.paint.get(&quot;line-width&quot;);if(0!==a.constantOr(1)&amp;&amp;0!==o.constantOr(1)){var s=e.depthModeForSublayer(0,Mt.ReadOnly),l=e.colorModeForRenderPass(),c=n.paint.get(&quot;line-dasharray&quot;),u=n.paint.get(&quot;line-pattern&quot;),f=u.constantOr(1),h=n.paint.get(&quot;line-gradient&quot;),p=n.getCrossfadeParameters(),d=f?&quot;linePattern&quot;:c?&quot;lineSDF&quot;:h?&quot;lineGradient&quot;:&quot;line&quot;,g=e.context,m=g.gl,v=!0;if(h){g.activeTexture.set(m.TEXTURE0);var y=n.gradientTexture;if(!n.gradient)return;y||(y=n.gradientTexture=new t.Texture(g,n.gradient,m.RGBA)),y.bind(m.LINEAR,m.CLAMP_TO_EDGE)}for(var x=0,b=i;x&lt;b.length;x+=1){var _=b[x],w=r.getTile(_);if(!f||w.patternsLoaded()){var T=w.getBucket(n);if(T){var k=T.programConfigurations.get(n.id),M=e.context.program.get(),A=e.useProgram(d,k),S=v||A.program!==M,E=u.constantOr(null);if(E&amp;&amp;w.imageAtlas){var C=w.imageAtlas,L=C.patternPositions[E.to.toString()],I=C.patternPositions[E.from.toString()];L&amp;&amp;I&amp;&amp;k.setConstantPatternPositions(L,I)}var P=f?Rr(e,w,n,p):c?Fr(e,w,n,c,p):h?Dr(e,w,n):Or(e,w,n);f?(g.activeTexture.set(m.TEXTURE0),w.imageAtlasTexture.bind(m.LINEAR,m.CLAMP_TO_EDGE),k.updatePaintBuffers(p)):c&amp;&amp;(S||e.lineAtlas.dirty)&amp;&amp;(g.activeTexture.set(m.TEXTURE0),e.lineAtlas.bind(g)),A.draw(g,m.TRIANGLES,s,e.stencilModeForClipping(_),l,Et.disabled,P,n.id,T.layoutVertexBuffer,T.indexBuffer,T.segments,n.paint,e.transform.zoom,k),v=!1}}}}}},fill:function(e,r,n,i){var a=n.paint.get(&quot;fill-color&quot;),o=n.paint.get(&quot;fill-opacity&quot;);if(0!==o.constantOr(1)){var s=e.colorModeForRenderPass(),l=n.paint.get(&quot;fill-pattern&quot;),c=e.opaquePassEnabledForLayer()&amp;&amp;!l.constantOr(1)&amp;&amp;1===a.constantOr(t.Color.transparent).a&amp;&amp;1===o.constantOr(0)?&quot;opaque&quot;:&quot;translucent&quot;;if(e.renderPass===c){var u=e.depthModeForSublayer(1,&quot;opaque&quot;===e.renderPass?Mt.ReadWrite:Mt.ReadOnly);rn(e,r,n,i,u,s,!1)}if(&quot;translucent&quot;===e.renderPass&amp;&amp;n.paint.get(&quot;fill-antialias&quot;)){var f=e.depthModeForSublayer(n.getPaintProperty(&quot;fill-outline-color&quot;)?2:0,Mt.ReadOnly);rn(e,r,n,i,f,s,!0)}}},&quot;fill-extrusion&quot;:function(t,e,r,n){var i=r.paint.get(&quot;fill-extrusion-opacity&quot;);if(0!==i&amp;&amp;&quot;translucent&quot;===t.renderPass){var a=new Mt(t.context.gl.LEQUAL,Mt.ReadWrite,t.depthRangeFor3D);if(1!==i||r.paint.get(&quot;fill-extrusion-pattern&quot;).constantOr(1))nn(t,e,r,n,a,At.disabled,St.disabled),nn(t,e,r,n,a,t.stencilModeFor3D(),t.colorModeForRenderPass());else{var o=t.colorModeForRenderPass();nn(t,e,r,n,a,At.disabled,o)}}},hillshade:function(t,e,r,n){if(&quot;offscreen&quot;===t.renderPass||&quot;translucent&quot;===t.renderPass){for(var i=t.context,a=e.getSource().maxzoom,o=t.depthModeForSublayer(0,Mt.ReadOnly),s=t.colorModeForRenderPass(),l=&quot;translucent&quot;===t.renderPass?t.stencilConfigForOverlap(n):[{},n],c=l[0],u=0,f=l[1];u&lt;f.length;u+=1){var h=f[u],p=e.getTile(h);p.needsHillshadePrepare&amp;&amp;&quot;offscreen&quot;===t.renderPass?on(t,p,r,a,o,At.disabled,s):&quot;translucent&quot;===t.renderPass&amp;&amp;an(t,p,r,o,c[h.overscaledZ],s)}i.viewport.set([0,0,t.width,t.height])}},raster:function(t,e,r,n){if(&quot;translucent&quot;===t.renderPass&amp;&amp;0!==r.paint.get(&quot;raster-opacity&quot;)&amp;&amp;n.length)for(var i=t.context,a=i.gl,o=e.getSource(),s=t.useProgram(&quot;raster&quot;),l=t.colorModeForRenderPass(),c=o instanceof P?[{},n]:t.stencilConfigForOverlap(n),u=c[0],f=c[1],h=f[f.length-1].overscaledZ,p=!t.options.moving,d=0,g=f;d&lt;g.length;d+=1){var m=g[d],v=t.depthModeForSublayer(m.overscaledZ-h,1===r.paint.get(&quot;raster-opacity&quot;)?Mt.ReadWrite:Mt.ReadOnly,a.LESS),y=e.getTile(m),x=t.transform.calculatePosMatrix(m.toUnwrapped(),p);y.registerFadeDuration(r.paint.get(&quot;raster-fade-duration&quot;));var b=e.findLoadedParent(m,0),_=sn(y,b,e,r,t.transform),w=void 0,T=void 0,k=&quot;nearest&quot;===r.paint.get(&quot;raster-resampling&quot;)?a.NEAREST:a.LINEAR;i.activeTexture.set(a.TEXTURE0),y.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),i.activeTexture.set(a.TEXTURE1),b?(b.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),w=Math.pow(2,b.tileID.overscaledZ-y.tileID.overscaledZ),T=[y.tileID.canonical.x*w%1,y.tileID.canonical.y*w%1]):y.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST);var M=jr(x,T||[0,0],w||1,_,r);o instanceof P?s.draw(i,a.TRIANGLES,v,At.disabled,l,Et.disabled,M,r.id,o.boundsBuffer,t.quadTriangleIndexBuffer,o.boundsSegments):s.draw(i,a.TRIANGLES,v,u[m.overscaledZ],l,Et.disabled,M,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}},background:function(t,e,r){var n=r.paint.get(&quot;background-color&quot;),i=r.paint.get(&quot;background-opacity&quot;);if(0!==i){var a=t.context,o=a.gl,s=t.transform,l=s.tileSize,c=r.paint.get(&quot;background-pattern&quot;);if(!t.isPatternMissing(c)){var u=!c&amp;&amp;1===n.a&amp;&amp;1===i&amp;&amp;t.opaquePassEnabledForLayer()?&quot;opaque&quot;:&quot;translucent&quot;;if(t.renderPass===u){var f=At.disabled,h=t.depthModeForSublayer(0,&quot;opaque&quot;===u?Mt.ReadWrite:Mt.ReadOnly),p=t.colorModeForRenderPass(),d=t.useProgram(c?&quot;backgroundPattern&quot;:&quot;background&quot;),g=s.coveringTiles({tileSize:l});c&amp;&amp;(a.activeTexture.set(o.TEXTURE0),t.imageManager.bind(t.context));for(var m=r.getCrossfadeParameters(),v=0,y=g;v&lt;y.length;v+=1){var x=y[v],b=t.transform.calculatePosMatrix(x.toUnwrapped()),_=c?Wr(b,i,t,c,{tileID:x,tileSize:l},m):Yr(b,i,n);d.draw(a,o.TRIANGLES,h,f,p,Et.disabled,_,r.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments)}}}}},debug:function(t,e,r){for(var n=0;n&lt;r.length;n++)mn(t,e,r[n])},custom:function(t,e,r){var n=t.context,i=r.implementation;if(&quot;offscreen&quot;===t.renderPass){var a=i.prerender;a&amp;&amp;(t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),a.call(i,n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState())}else if(&quot;translucent&quot;===t.renderPass){t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),n.setStencilMode(At.disabled);var o=&quot;3d&quot;===i.renderingMode?new Mt(t.context.gl.LEQUAL,Mt.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,Mt.ReadOnly);n.setDepthMode(o),i.render(n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState(),n.bindFramebuffer.set(null)}}},yn=function(t,e){this.context=new Ct(t),this.transform=e,this._tileTextures={},this.setup(),this.numSublayers=Lt.maxUnderzooming+Lt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Be,this.gpuTimers={}};yn.prototype.resize=function(e,r){if(this.width=e*t.browser.devicePixelRatio,this.height=r*t.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var n=0,i=this.style._order;n&lt;i.length;n+=1)this.style._layers[i[n]].resize()},yn.prototype.setup=function(){var e=this.context,r=new t.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(t.EXTENT,0),r.emplaceBack(0,t.EXTENT),r.emplaceBack(t.EXTENT,t.EXTENT),this.tileExtentBuffer=e.createVertexBuffer(r,He.members),this.tileExtentSegments=t.SegmentVector.simpleSegment(0,0,4,2);var n=new t.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(t.EXTENT,0),n.emplaceBack(0,t.EXTENT),n.emplaceBack(t.EXTENT,t.EXTENT),this.debugBuffer=e.createVertexBuffer(n,He.members),this.debugSegments=t.SegmentVector.simpleSegment(0,0,4,5);var i=new t.StructArrayLayout4i8;i.emplaceBack(0,0,0,0),i.emplaceBack(t.EXTENT,0,t.EXTENT,0),i.emplaceBack(0,t.EXTENT,0,t.EXTENT),i.emplaceBack(t.EXTENT,t.EXTENT,t.EXTENT,t.EXTENT),this.rasterBoundsBuffer=e.createVertexBuffer(i,I.members),this.rasterBoundsSegments=t.SegmentVector.simpleSegment(0,0,4,2);var a=new t.StructArrayLayout2i4;a.emplaceBack(0,0),a.emplaceBack(1,0),a.emplaceBack(0,1),a.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(a,He.members),this.viewportSegments=t.SegmentVector.simpleSegment(0,0,4,2);var o=new t.StructArrayLayout1ui2;o.emplaceBack(0),o.emplaceBack(1),o.emplaceBack(3),o.emplaceBack(2),o.emplaceBack(0),this.tileBorderIndexBuffer=e.createIndexBuffer(o);var s=new t.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(s),this.emptyTexture=new t.Texture(e,{width:1,height:1,data:new Uint8Array([0,0,0,0])},e.gl.RGBA);var l=this.context.gl;this.stencilClearMode=new At({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)},yn.prototype.clearStencil=function(){var e=this.context,r=e.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var n=t.create();t.ortho(n,0,this.width,this.height,0,0,1),t.scale(n,n,[r.drawingBufferWidth,r.drawingBufferHeight,0]),this.useProgram(&quot;clippingMask&quot;).draw(e,r.TRIANGLES,Mt.disabled,this.stencilClearMode,St.disabled,Et.disabled,Pr(n),&quot;$clipping&quot;,this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},yn.prototype._renderTileClippingMasks=function(t,e){if(this.currentStencilSource!==t.source&amp;&amp;t.isTileClipped()&amp;&amp;e&amp;&amp;e.length){this.currentStencilSource=t.source;var r=this.context,n=r.gl;this.nextStencilID+e.length&gt;256&amp;&amp;this.clearStencil(),r.setColorMode(St.disabled),r.setDepthMode(Mt.disabled);var i=this.useProgram(&quot;clippingMask&quot;);this._tileClippingMaskIDs={};for(var a=0,o=e;a&lt;o.length;a+=1){var s=o[a],l=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;i.draw(r,n.TRIANGLES,Mt.disabled,new At({func:n.ALWAYS,mask:0},l,255,n.KEEP,n.KEEP,n.REPLACE),St.disabled,Et.disabled,Pr(s.posMatrix),&quot;$clipping&quot;,this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},yn.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1&gt;256&amp;&amp;this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new At({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},yn.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new At({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},yn.prototype.stencilConfigForOverlap=function(t){var e,r=this.context.gl,n=t.sort((function(t,e){return e.overscaledZ-t.overscaledZ})),i=n[n.length-1].overscaledZ,a=n[0].overscaledZ-i+1;if(a&gt;1){this.currentStencilSource=void 0,this.nextStencilID+a&gt;256&amp;&amp;this.clearStencil();for(var o={},s=0;s&lt;a;s++)o[s+i]=new At({func:r.GEQUAL,mask:255},s+this.nextStencilID,255,r.KEEP,r.KEEP,r.REPLACE);return this.nextStencilID+=a,[o,n]}return[(e={},e[i]=At.disabled,e),n]},yn.prototype.colorModeForRenderPass=function(){var e=this.context.gl;return this._showOverdrawInspector?new St([e.CONSTANT_COLOR,e.ONE],new t.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):&quot;opaque&quot;===this.renderPass?St.unblended:St.alphaBlended},yn.prototype.depthModeForSublayer=function(t,e,r){if(!this.opaquePassEnabledForLayer())return Mt.disabled;var n=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new Mt(r||this.context.gl.LEQUAL,e,[n,n])},yn.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer&lt;this.opaquePassCutoff},yn.prototype.render=function(e,r){var n=this;this.style=e,this.options=r,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(t.browser.now()),this.imageManager.beginFrame();var i=this.style._order,a=this.style.sourceCaches;for(var o in a){var s=a[o];s.used&amp;&amp;s.prepare(this.context)}var l,c,u={},f={},h={};for(var p in a){var d=a[p];u[p]=d.getVisibleCoordinates(),f[p]=u[p].slice().reverse(),h[p]=d.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(var g=0;g&lt;i.length;g++)if(this.style._layers[i[g]].is3D()){this.opaquePassCutoff=g;break}this.renderPass=&quot;offscreen&quot;;for(var m=0,v=i;m&lt;v.length;m+=1){var y=this.style._layers[v[m]];if(y.hasOffscreenPass()&amp;&amp;!y.isHidden(this.transform.zoom)){var x=f[y.source];(&quot;custom&quot;===y.type||x.length)&amp;&amp;this.renderLayer(this,a[y.source],y,x)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:r.showOverdrawInspector?t.Color.black:t.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=r.showOverdrawInspector,this.depthRangeFor3D=[0,1-(e._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass=&quot;opaque&quot;,this.currentLayer=i.length-1;this.currentLayer&gt;=0;this.currentLayer--){var b=this.style._layers[i[this.currentLayer]],_=a[b.source],w=u[b.source];this._renderTileClippingMasks(b,w),this.renderLayer(this,_,b,w)}for(this.renderPass=&quot;translucent&quot;,this.currentLayer=0;this.currentLayer&lt;i.length;this.currentLayer++){var T=this.style._layers[i[this.currentLayer]],k=a[T.source],M=(&quot;symbol&quot;===T.type?h:f)[T.source];this._renderTileClippingMasks(T,u[T.source]),this.renderLayer(this,k,T,M)}this.options.showTileBoundaries&amp;&amp;(t.values(this.style._layers).forEach((function(t){t.source&amp;&amp;!t.isHidden(n.transform.zoom)&amp;&amp;(t.source!==(c&amp;&amp;c.id)&amp;&amp;(c=n.style.sourceCaches[t.source]),(!l||l.getSource().maxzoom&lt;c.getSource().maxzoom)&amp;&amp;(l=c))})),l&amp;&amp;vn.debug(this,l,l.getVisibleCoordinates())),this.options.showPadding&amp;&amp;function(t){var e=t.transform.padding;pn(t,t.transform.height-(e.top||0),3,ln),pn(t,e.bottom||0,3,cn),dn(t,e.left||0,3,un),dn(t,t.transform.width-(e.right||0),3,fn);var r=t.transform.centerPoint;!function(t,e,r,n){gn(t,e-1,r-10,2,20,n),gn(t,e-10,r-1,20,2,n)}(t,r.x,t.transform.height-r.y,hn)}(this),this.context.setDefault()},yn.prototype.renderLayer=function(t,e,r,n){r.isHidden(this.transform.zoom)||(&quot;background&quot;===r.type||&quot;custom&quot;===r.type||n.length)&amp;&amp;(this.id=r.id,this.gpuTimingStart(r),vn[r.type](t,e,r,n,this.style.placement.variableOffsets),this.gpuTimingEnd())},yn.prototype.gpuTimingStart=function(t){if(this.options.gpuTiming){var e=this.context.extTimerQuery,r=this.gpuTimers[t.id];r||(r=this.gpuTimers[t.id]={calls:0,cpuTime:0,query:e.createQueryEXT()}),r.calls++,e.beginQueryEXT(e.TIME_ELAPSED_EXT,r.query)}},yn.prototype.gpuTimingEnd=function(){if(this.options.gpuTiming){var t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}},yn.prototype.collectGpuTimers=function(){var t=this.gpuTimers;return this.gpuTimers={},t},yn.prototype.queryGpuTimers=function(t){var e={};for(var r in t){var n=t[r],i=this.context.extTimerQuery,a=i.getQueryObjectEXT(n.query,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(n.query),e[r]=a}return e},yn.prototype.translatePosMatrix=function(e,r,n,i,a){if(!n[0]&amp;&amp;!n[1])return e;var o=a?&quot;map&quot;===i?this.transform.angle:0:&quot;viewport&quot;===i?-this.transform.angle:0;if(o){var s=Math.sin(o),l=Math.cos(o);n=[n[0]*l-n[1]*s,n[0]*s+n[1]*l]}var c=[a?n[0]:he(r,n[0],this.transform.zoom),a?n[1]:he(r,n[1],this.transform.zoom),0],u=new Float32Array(16);return t.translate(u,e,c),u},yn.prototype.saveTileTexture=function(t){var e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]},yn.prototype.getTileTexture=function(t){var e=this._tileTextures[t];return e&amp;&amp;e.length&gt;0?e.pop():null},yn.prototype.isPatternMissing=function(t){if(!t)return!1;if(!t.from||!t.to)return!0;var e=this.imageManager.getPattern(t.from.toString()),r=this.imageManager.getPattern(t.to.toString());return!e||!r},yn.prototype.useProgram=function(t,e){this.cache=this.cache||{};var r=&quot;&quot;+t+(e?e.cacheKey:&quot;&quot;)+(this._showOverdrawInspector?&quot;/overdraw&quot;:&quot;&quot;);return this.cache[r]||(this.cache[r]=new br(this.context,yr[t],e,Xr[t],this._showOverdrawInspector)),this.cache[r]},yn.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},yn.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)},yn.prototype.initDebugOverlayCanvas=function(){null==this.debugOverlayCanvas&amp;&amp;(this.debugOverlayCanvas=t.window.document.createElement(&quot;canvas&quot;),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},yn.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&amp;&amp;this.debugOverlayTexture.destroy()};var xn=function(t,e){this.points=t,this.planes=e};xn.fromInvProjectionMatrix=function(e,r,n){var i=Math.pow(2,n),a=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((function(r){return t.transformMat4([],r,e)})).map((function(e){return t.scale$1([],e,1/e[3]/r*i)})),o=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(e){var r=t.sub([],a[e[0]],a[e[1]]),n=t.sub([],a[e[2]],a[e[1]]),i=t.normalize([],t.cross([],r,n)),o=-t.dot(i,a[e[1]]);return i.concat(o)}));return new xn(a,o)};var bn=function(e,r){this.min=e,this.max=r,this.center=t.scale$2([],t.add([],this.min,this.max),.5)};bn.prototype.quadrant=function(e){for(var r=[e%2==0,e&lt;2],n=t.clone$2(this.min),i=t.clone$2(this.max),a=0;a&lt;r.length;a++)n[a]=r[a]?this.min[a]:this.center[a],i[a]=r[a]?this.center[a]:this.max[a];return i[2]=this.max[2],new bn(n,i)},bn.prototype.distanceX=function(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]},bn.prototype.distanceY=function(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]},bn.prototype.intersects=function(e){for(var r=[[this.min[0],this.min[1],0,1],[this.max[0],this.min[1],0,1],[this.max[0],this.max[1],0,1],[this.min[0],this.max[1],0,1]],n=!0,i=0;i&lt;e.planes.length;i++){for(var a=e.planes[i],o=0,s=0;s&lt;r.length;s++)o+=t.dot$1(a,r[s])&gt;=0;if(0===o)return 0;o!==r.length&amp;&amp;(n=!1)}if(n)return 2;for(var l=0;l&lt;3;l++){for(var c=Number.MAX_VALUE,u=-Number.MAX_VALUE,f=0;f&lt;e.points.length;f++){var h=e.points[f][l]-this.min[l];c=Math.min(c,h),u=Math.max(u,h)}if(u&lt;0||c&gt;this.max[l]-this.min[l])return 0}return 1};var _n=function(t,e,r,n){if(void 0===t&amp;&amp;(t=0),void 0===e&amp;&amp;(e=0),void 0===r&amp;&amp;(r=0),void 0===n&amp;&amp;(n=0),isNaN(t)||t&lt;0||isNaN(e)||e&lt;0||isNaN(r)||r&lt;0||isNaN(n)||n&lt;0)throw new Error(&quot;Invalid value for edge-insets, top, bottom, left and right must all be numbers&quot;);this.top=t,this.bottom=e,this.left=r,this.right=n};_n.prototype.interpolate=function(e,r,n){return null!=r.top&amp;&amp;null!=e.top&amp;&amp;(this.top=t.number(e.top,r.top,n)),null!=r.bottom&amp;&amp;null!=e.bottom&amp;&amp;(this.bottom=t.number(e.bottom,r.bottom,n)),null!=r.left&amp;&amp;null!=e.left&amp;&amp;(this.left=t.number(e.left,r.left,n)),null!=r.right&amp;&amp;null!=e.right&amp;&amp;(this.right=t.number(e.right,r.right,n)),this},_n.prototype.getCenter=function(e,r){var n=t.clamp((this.left+e-this.right)/2,0,e),i=t.clamp((this.top+r-this.bottom)/2,0,r);return new t.Point(n,i)},_n.prototype.equals=function(t){return this.top===t.top&amp;&amp;this.bottom===t.bottom&amp;&amp;this.left===t.left&amp;&amp;this.right===t.right},_n.prototype.clone=function(){return new _n(this.top,this.bottom,this.left,this.right)},_n.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var wn=function(e,r,n,i,a){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===a||a,this._minZoom=e||0,this._maxZoom=r||22,this._minPitch=null==n?0:n,this._maxPitch=null==i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new _n,this._posMatrixCache={},this._alignedPosMatrixCache={}},Tn={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};wn.prototype.clone=function(){var t=new wn(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._calcMatrices(),t},Tn.minZoom.get=function(){return this._minZoom},Tn.minZoom.set=function(t){this._minZoom!==t&amp;&amp;(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Tn.maxZoom.get=function(){return this._maxZoom},Tn.maxZoom.set=function(t){this._maxZoom!==t&amp;&amp;(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Tn.minPitch.get=function(){return this._minPitch},Tn.minPitch.set=function(t){this._minPitch!==t&amp;&amp;(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},Tn.maxPitch.get=function(){return this._maxPitch},Tn.maxPitch.set=function(t){this._maxPitch!==t&amp;&amp;(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},Tn.renderWorldCopies.get=function(){return this._renderWorldCopies},Tn.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&amp;&amp;(t=!1),this._renderWorldCopies=t},Tn.worldSize.get=function(){return this.tileSize*this.scale},Tn.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Tn.size.get=function(){return new t.Point(this.width,this.height)},Tn.bearing.get=function(){return-this.angle/Math.PI*180},Tn.bearing.set=function(e){var r=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==r&amp;&amp;(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Tn.pitch.get=function(){return this._pitch/Math.PI*180},Tn.pitch.set=function(e){var r=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==r&amp;&amp;(this._unmodified=!1,this._pitch=r,this._calcMatrices())},Tn.fov.get=function(){return this._fov/Math.PI*180},Tn.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&amp;&amp;(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Tn.zoom.get=function(){return this._zoom},Tn.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&amp;&amp;(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Tn.center.get=function(){return this._center},Tn.center.set=function(t){t.lat===this._center.lat&amp;&amp;t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Tn.padding.get=function(){return this._edgeInsets.toJSON()},Tn.padding.set=function(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())},Tn.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},wn.prototype.isPaddingEqual=function(t){return this._edgeInsets.equals(t)},wn.prototype.interpolatePadding=function(t,e,r){this._unmodified=!1,this._edgeInsets.interpolate(t,e,r),this._constrain(),this._calcMatrices()},wn.prototype.coveringZoomLevel=function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)},wn.prototype.getVisibleUnwrappedCoordinates=function(e){var r=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var n=this.pointCoordinate(new t.Point(0,0)),i=this.pointCoordinate(new t.Point(this.width,0)),a=this.pointCoordinate(new t.Point(this.width,this.height)),o=this.pointCoordinate(new t.Point(0,this.height)),s=Math.floor(Math.min(n.x,i.x,a.x,o.x)),l=Math.floor(Math.max(n.x,i.x,a.x,o.x)),c=s-1;c&lt;=l+1;c++)0!==c&amp;&amp;r.push(new t.UnwrappedTileID(c,e));return r},wn.prototype.coveringTiles=function(e){var r=this.coveringZoomLevel(e),n=r;if(void 0!==e.minzoom&amp;&amp;r&lt;e.minzoom)return[];void 0!==e.maxzoom&amp;&amp;r&gt;e.maxzoom&amp;&amp;(r=e.maxzoom);var i=t.MercatorCoordinate.fromLngLat(this.center),a=Math.pow(2,r),o=[a*i.x,a*i.y,0],s=xn.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,r),l=e.minzoom||0;this.pitch&lt;=60&amp;&amp;this._edgeInsets.top&lt;.1&amp;&amp;(l=r);var c=function(t){return{aabb:new bn([t*a,0,0],[(t+1)*a,a,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}},u=[],f=[],h=r,p=e.reparseOverscaled?n:r;if(this._renderWorldCopies)for(var d=1;d&lt;=3;d++)u.push(c(-d)),u.push(c(d));for(u.push(c(0));u.length&gt;0;){var g=u.pop(),m=g.x,v=g.y,y=g.fullyVisible;if(!y){var x=g.aabb.intersects(s);if(0===x)continue;y=2===x}var b=g.aabb.distanceX(o),_=g.aabb.distanceY(o),w=Math.max(Math.abs(b),Math.abs(_));if(g.zoom===h||w&gt;3+(1&lt;&lt;h-g.zoom)-2&amp;&amp;g.zoom&gt;=l)f.push({tileID:new t.OverscaledTileID(g.zoom===h?p:g.zoom,g.wrap,g.zoom,m,v),distanceSq:t.sqrLen([o[0]-.5-m,o[1]-.5-v])});else for(var T=0;T&lt;4;T++){var k=(m&lt;&lt;1)+T%2,M=(v&lt;&lt;1)+(T&gt;&gt;1);u.push({aabb:g.aabb.quadrant(T),zoom:g.zoom+1,x:k,y:M,wrap:g.wrap,fullyVisible:y})}}return f.sort((function(t,e){return t.distanceSq-e.distanceSq})).map((function(t){return t.tileID}))},wn.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Tn.unmodified.get=function(){return this._unmodified},wn.prototype.zoomScale=function(t){return Math.pow(2,t)},wn.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},wn.prototype.project=function(e){var r=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(r)*this.worldSize)},wn.prototype.unproject=function(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()},Tn.point.get=function(){return this.project(this.center)},wn.prototype.setLocationAtPoint=function(e,r){var n=this.pointCoordinate(r),i=this.pointCoordinate(this.centerPoint),a=this.locationCoordinate(e),o=new t.MercatorCoordinate(a.x-(n.x-i.x),a.y-(n.y-i.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&amp;&amp;(this.center=this.center.wrap())},wn.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},wn.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},wn.prototype.locationCoordinate=function(e){return t.MercatorCoordinate.fromLngLat(e)},wn.prototype.coordinateLocation=function(t){return t.toLngLat()},wn.prototype.pointCoordinate=function(e){var r=[e.x,e.y,0,1],n=[e.x,e.y,1,1];t.transformMat4(r,r,this.pixelMatrixInverse),t.transformMat4(n,n,this.pixelMatrixInverse);var i=r[3],a=n[3],o=r[1]/i,s=n[1]/a,l=r[2]/i,c=n[2]/a,u=l===c?0:(0-l)/(c-l);return new t.MercatorCoordinate(t.number(r[0]/i,n[0]/a,u)/this.worldSize,t.number(o,s,u)/this.worldSize)},wn.prototype.coordinatePoint=function(e){var r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix),new t.Point(r[0]/r[3],r[1]/r[3])},wn.prototype.getBounds=function(){return(new t.LngLatBounds).extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},wn.prototype.getMaxBounds=function(){return this.latRange&amp;&amp;2===this.latRange.length&amp;&amp;this.lngRange&amp;&amp;2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},wn.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},wn.prototype.calculatePosMatrix=function(e,r){void 0===r&amp;&amp;(r=!1);var n=e.key,i=r?this._alignedPosMatrixCache:this._posMatrixCache;if(i[n])return i[n];var a=e.canonical,o=this.worldSize/this.zoomScale(a.z),s=a.x+Math.pow(2,a.z)*e.wrap,l=t.identity(new Float64Array(16));return t.translate(l,l,[s*o,a.y*o,0]),t.scale(l,l,[o/t.EXTENT,o/t.EXTENT,1]),t.multiply(l,r?this.alignedProjMatrix:this.projMatrix,l),i[n]=new Float32Array(l),i[n]},wn.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},wn.prototype._constrain=function(){if(this.center&amp;&amp;this.width&amp;&amp;this.height&amp;&amp;!this._constraining){this._constraining=!0;var e,r,n,i,a=-90,o=90,s=-180,l=180,c=this.size,u=this._unmodified;if(this.latRange){var f=this.latRange;a=t.mercatorYfromLat(f[1])*this.worldSize,e=(o=t.mercatorYfromLat(f[0])*this.worldSize)-a&lt;c.y?c.y/(o-a):0}if(this.lngRange){var h=this.lngRange;s=t.mercatorXfromLng(h[0])*this.worldSize,r=(l=t.mercatorXfromLng(h[1])*this.worldSize)-s&lt;c.x?c.x/(l-s):0}var p=this.point,d=Math.max(r||0,e||0);if(d)return this.center=this.unproject(new t.Point(r?(l+s)/2:p.x,e?(o+a)/2:p.y)),this.zoom+=this.scaleZoom(d),this._unmodified=u,void(this._constraining=!1);if(this.latRange){var g=p.y,m=c.y/2;g-m&lt;a&amp;&amp;(i=a+m),g+m&gt;o&amp;&amp;(i=o-m)}if(this.lngRange){var v=p.x,y=c.x/2;v-y&lt;s&amp;&amp;(n=s+y),v+y&gt;l&amp;&amp;(n=l-y)}void 0===n&amp;&amp;void 0===i||(this.center=this.unproject(new t.Point(void 0!==n?n:p.x,void 0!==i?i:p.y))),this._unmodified=u,this._constraining=!1}},wn.prototype._calcMatrices=function(){if(this.height){var e=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var r=Math.PI/2+this._pitch,n=this._fov*(.5+e.y/this.height),i=Math.sin(n)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-r-n,.01,Math.PI-.01)),a=this.point,o=a.x,s=a.y,l=1.01*(Math.cos(Math.PI/2-this._pitch)*i+this.cameraToCenterDistance),c=this.height/50,u=new Float64Array(16);t.perspective(u,this._fov,this.width/this.height,c,l),u[8]=2*-e.x/this.width,u[9]=2*e.y/this.height,t.scale(u,u,[1,-1,1]),t.translate(u,u,[0,0,-this.cameraToCenterDistance]),t.rotateX(u,u,this._pitch),t.rotateZ(u,u,this.angle),t.translate(u,u,[-o,-s,0]),this.mercatorMatrix=t.scale([],u,[this.worldSize,this.worldSize,this.worldSize]),t.scale(u,u,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=u,this.invProjMatrix=t.invert([],this.projMatrix);var f=this.width%2/2,h=this.height%2/2,p=Math.cos(this.angle),d=Math.sin(this.angle),g=o-Math.round(o)+p*f+d*h,m=s-Math.round(s)+p*h+d*f,v=new Float64Array(u);if(t.translate(v,v,[g&gt;.5?g-1:g,m&gt;.5?m-1:m,0]),this.alignedProjMatrix=v,u=t.create(),t.scale(u,u,[this.width/2,-this.height/2,1]),t.translate(u,u,[1,-1,0]),this.labelPlaneMatrix=u,u=t.create(),t.scale(u,u,[1,-1,1]),t.translate(u,u,[-1,-1,0]),t.scale(u,u,[2/this.width,2/this.height,1]),this.glCoordMatrix=u,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(u=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error(&quot;failed to invert matrix&quot;);this.pixelMatrixInverse=u,this._posMatrixCache={},this._alignedPosMatrixCache={}}},wn.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)),r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance},wn.prototype.getCameraPoint=function(){var e=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,e))},wn.prototype.getCameraQueryGeometry=function(e){var r=this.getCameraPoint();if(1===e.length)return[e[0],r];for(var n=r.x,i=r.y,a=r.x,o=r.y,s=0,l=e;s&lt;l.length;s+=1){var c=l[s];n=Math.min(n,c.x),i=Math.min(i,c.y),a=Math.max(a,c.x),o=Math.max(o,c.y)}return[new t.Point(n,i),new t.Point(a,i),new t.Point(a,o),new t.Point(n,o),new t.Point(n,i)]},Object.defineProperties(wn.prototype,Tn);var kn=function(e){var r,n,i,a;this._hashName=e&amp;&amp;encodeURIComponent(e),t.bindAll([&quot;_getCurrentHash&quot;,&quot;_onHashChange&quot;,&quot;_updateHash&quot;],this),this._updateHash=(r=this._updateHashUnthrottled.bind(this),n=!1,i=null,a=function(){i=null,n&amp;&amp;(r(),i=setTimeout(a,300),n=!1)},function(){return n=!0,i||a(),i})};kn.prototype.addTo=function(e){return this._map=e,t.window.addEventListener(&quot;hashchange&quot;,this._onHashChange,!1),this._map.on(&quot;moveend&quot;,this._updateHash),this},kn.prototype.remove=function(){return t.window.removeEventListener(&quot;hashchange&quot;,this._onHashChange,!1),this._map.off(&quot;moveend&quot;,this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},kn.prototype.getHashString=function(e){var r=this._map.getCenter(),n=Math.round(100*this._map.getZoom())/100,i=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),a=Math.pow(10,i),o=Math.round(r.lng*a)/a,s=Math.round(r.lat*a)/a,l=this._map.getBearing(),c=this._map.getPitch(),u=&quot;&quot;;if(u+=e?&quot;/&quot;+o+&quot;/&quot;+s+&quot;/&quot;+n:n+&quot;/&quot;+s+&quot;/&quot;+o,(l||c)&amp;&amp;(u+=&quot;/&quot;+Math.round(10*l)/10),c&amp;&amp;(u+=&quot;/&quot;+Math.round(c)),this._hashName){var f=this._hashName,h=!1,p=t.window.location.hash.slice(1).split(&quot;&amp;&quot;).map((function(t){var e=t.split(&quot;=&quot;)[0];return e===f?(h=!0,e+&quot;=&quot;+u):t})).filter((function(t){return t}));return h||p.push(f+&quot;=&quot;+u),&quot;#&quot;+p.join(&quot;&amp;&quot;)}return&quot;#&quot;+u},kn.prototype._getCurrentHash=function(){var e,r=this,n=t.window.location.hash.replace(&quot;#&quot;,&quot;&quot;);return this._hashName?(n.split(&quot;&amp;&quot;).map((function(t){return t.split(&quot;=&quot;)})).forEach((function(t){t[0]===r._hashName&amp;&amp;(e=t)})),(e&amp;&amp;e[1]||&quot;&quot;).split(&quot;/&quot;)):n.split(&quot;/&quot;)},kn.prototype._onHashChange=function(){var t=this._getCurrentHash();if(t.length&gt;=3&amp;&amp;!t.some((function(t){return isNaN(t)}))){var e=this._map.dragRotate.isEnabled()&amp;&amp;this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},kn.prototype._updateHashUnthrottled=function(){var e=this.getHashString();try{t.window.history.replaceState(t.window.history.state,&quot;&quot;,e)}catch(t){}};var Mn={linearity:.3,easing:t.bezier(0,0,.3,1)},An=t.extend({deceleration:2500,maxSpeed:1400},Mn),Sn=t.extend({deceleration:20,maxSpeed:1400},Mn),En=t.extend({deceleration:1e3,maxSpeed:360},Mn),Cn=t.extend({deceleration:1e3,maxSpeed:90},Mn),Ln=function(t){this._map=t,this.clear()};function In(t,e){(!t.duration||t.duration&lt;e.duration)&amp;&amp;(t.duration=e.duration,t.easing=e.easing)}function Pn(e,r,n){var i=n.maxSpeed,a=n.linearity,o=n.deceleration,s=t.clamp(e*a/(r/1e3),-i,i),l=Math.abs(s)/(o*a);return{easing:n.easing,duration:1e3*l,amount:s*(l/2)}}Ln.prototype.clear=function(){this._inertiaBuffer=[]},Ln.prototype.record=function(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:t.browser.now(),settings:e})},Ln.prototype._drainInertiaBuffer=function(){for(var e=this._inertiaBuffer,r=t.browser.now();e.length&gt;0&amp;&amp;r-e[0].time&gt;160;)e.shift()},Ln.prototype._onMoveEnd=function(e){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length&lt;2)){for(var r={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0},n=0,i=this._inertiaBuffer;n&lt;i.length;n+=1){var a=i[n].settings;r.zoom+=a.zoomDelta||0,r.bearing+=a.bearingDelta||0,r.pitch+=a.pitchDelta||0,a.panDelta&amp;&amp;r.pan._add(a.panDelta),a.around&amp;&amp;(r.around=a.around),a.pinchAround&amp;&amp;(r.pinchAround=a.pinchAround)}var o=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,s={};if(r.pan.mag()){var l=Pn(r.pan.mag(),o,t.extend({},An,e||{}));s.offset=r.pan.mult(l.amount/r.pan.mag()),s.center=this._map.transform.center,In(s,l)}if(r.zoom){var c=Pn(r.zoom,o,Sn);s.zoom=this._map.transform.zoom+c.amount,In(s,c)}if(r.bearing){var u=Pn(r.bearing,o,En);s.bearing=this._map.transform.bearing+t.clamp(u.amount,-179,179),In(s,u)}if(r.pitch){var f=Pn(r.pitch,o,Cn);s.pitch=this._map.transform.pitch+f.amount,In(s,f)}if(s.zoom||s.bearing){var h=void 0===r.pinchAround?r.around:r.pinchAround;s.around=h?this._map.unproject(h):this._map.getCenter()}return this.clear(),t.extend(s,{noMoveStart:!0})}};var zn=function(e){function n(n,i,a,o){void 0===o&amp;&amp;(o={});var s=r.mousePos(i.getCanvasContainer(),a),l=i.unproject(s);e.call(this,n,t.extend({point:s,lngLat:l,originalEvent:a},o)),this._defaultPrevented=!1,this.target=i}e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),On=function(e){function n(n,i,a){var o=&quot;touchend&quot;===n?a.changedTouches:a.touches,s=r.touchPos(i.getCanvasContainer(),o),l=s.map((function(t){return i.unproject(t)})),c=s.reduce((function(t,e,r,n){return t.add(e.div(n.length))}),new t.Point(0,0)),u=i.unproject(c);e.call(this,n,{points:s,point:c,lngLats:l,lngLat:u,originalEvent:a}),this._defaultPrevented=!1}e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),Dn=function(t){function e(e,r,n){t.call(this,e,{originalEvent:n}),this._defaultPrevented=!1}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={defaultPrevented:{configurable:!0}};return e.prototype.preventDefault=function(){this._defaultPrevented=!0},r.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(e.prototype,r),e}(t.Event),Rn=function(t,e){this._map=t,this._clickTolerance=e.clickTolerance};Rn.prototype.reset=function(){delete this._mousedownPos},Rn.prototype.wheel=function(t){return this._firePreventable(new Dn(t.type,this._map,t))},Rn.prototype.mousedown=function(t,e){return this._mousedownPos=e,this._firePreventable(new zn(t.type,this._map,t))},Rn.prototype.mouseup=function(t){this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.click=function(t,e){this._mousedownPos&amp;&amp;this._mousedownPos.dist(e)&gt;=this._clickTolerance||this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.dblclick=function(t){return this._firePreventable(new zn(t.type,this._map,t))},Rn.prototype.mouseover=function(t){this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.mouseout=function(t){this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.touchstart=function(t){return this._firePreventable(new On(t.type,this._map,t))},Rn.prototype.touchmove=function(t){this._map.fire(new On(t.type,this._map,t))},Rn.prototype.touchend=function(t){this._map.fire(new On(t.type,this._map,t))},Rn.prototype.touchcancel=function(t){this._map.fire(new On(t.type,this._map,t))},Rn.prototype._firePreventable=function(t){if(this._map.fire(t),t.defaultPrevented)return{}},Rn.prototype.isEnabled=function(){return!0},Rn.prototype.isActive=function(){return!1},Rn.prototype.enable=function(){},Rn.prototype.disable=function(){};var Fn=function(t){this._map=t};Fn.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Fn.prototype.mousemove=function(t){this._map.fire(new zn(t.type,this._map,t))},Fn.prototype.mousedown=function(){this._delayContextMenu=!0},Fn.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&amp;&amp;(this._map.fire(new zn(&quot;contextmenu&quot;,this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Fn.prototype.contextmenu=function(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new zn(t.type,this._map,t)),this._map.listens(&quot;contextmenu&quot;)&amp;&amp;t.preventDefault()},Fn.prototype.isEnabled=function(){return!0},Fn.prototype.isActive=function(){return!1},Fn.prototype.enable=function(){},Fn.prototype.disable=function(){};var Bn=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1};function Nn(t,e){for(var r={},n=0;n&lt;t.length;n++)r[t[n].identifier]=e[n];return r}Bn.prototype.isEnabled=function(){return!!this._enabled},Bn.prototype.isActive=function(){return!!this._active},Bn.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Bn.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},Bn.prototype.mousedown=function(t,e){this.isEnabled()&amp;&amp;t.shiftKey&amp;&amp;0===t.button&amp;&amp;(r.disableDrag(),this._startPos=this._lastPos=e,this._active=!0)},Bn.prototype.mousemoveWindow=function(t,e){if(this._active){var n=e;if(!(this._lastPos.equals(n)||!this._box&amp;&amp;n.dist(this._startPos)&lt;this._clickTolerance)){var i=this._startPos;this._lastPos=n,this._box||(this._box=r.create(&quot;div&quot;,&quot;mapboxgl-boxzoom&quot;,this._container),this._container.classList.add(&quot;mapboxgl-crosshair&quot;),this._fireEvent(&quot;boxzoomstart&quot;,t));var a=Math.min(i.x,n.x),o=Math.max(i.x,n.x),s=Math.min(i.y,n.y),l=Math.max(i.y,n.y);r.setTransform(this._box,&quot;translate(&quot;+a+&quot;px,&quot;+s+&quot;px)&quot;),this._box.style.width=o-a+&quot;px&quot;,this._box.style.height=l-s+&quot;px&quot;}}},Bn.prototype.mouseupWindow=function(e,n){var i=this;if(this._active&amp;&amp;0===e.button){var a=this._startPos,o=n;if(this.reset(),r.suppressClick(),a.x!==o.x||a.y!==o.y)return this._map.fire(new t.Event(&quot;boxzoomend&quot;,{originalEvent:e})),{cameraAnimation:function(t){return t.fitScreenCoordinates(a,o,i._map.getBearing(),{linear:!0})}};this._fireEvent(&quot;boxzoomcancel&quot;,e)}},Bn.prototype.keydown=function(t){this._active&amp;&amp;27===t.keyCode&amp;&amp;(this.reset(),this._fireEvent(&quot;boxzoomcancel&quot;,t))},Bn.prototype.reset=function(){this._active=!1,this._container.classList.remove(&quot;mapboxgl-crosshair&quot;),this._box&amp;&amp;(r.remove(this._box),this._box=null),r.enableDrag(),delete this._startPos,delete this._lastPos},Bn.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,{originalEvent:r}))};var jn=function(t){this.reset(),this.numTouches=t.numTouches};jn.prototype.reset=function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1},jn.prototype.touchstart=function(e,r,n){(this.centroid||n.length&gt;this.numTouches)&amp;&amp;(this.aborted=!0),this.aborted||(void 0===this.startTime&amp;&amp;(this.startTime=e.timeStamp),n.length===this.numTouches&amp;&amp;(this.centroid=function(e){for(var r=new t.Point(0,0),n=0,i=e;n&lt;i.length;n+=1)r._add(i[n]);return r.div(e.length)}(r),this.touches=Nn(n,r)))},jn.prototype.touchmove=function(t,e,r){if(!this.aborted&amp;&amp;this.centroid){var n=Nn(r,e);for(var i in this.touches){var a=n[i];(!a||a.dist(this.touches[i])&gt;30)&amp;&amp;(this.aborted=!0)}}},jn.prototype.touchend=function(t,e,r){if((!this.centroid||t.timeStamp-this.startTime&gt;500)&amp;&amp;(this.aborted=!0),0===r.length){var n=!this.aborted&amp;&amp;this.centroid;if(this.reset(),n)return n}};var Un=function(t){this.singleTap=new jn(t),this.numTaps=t.numTaps,this.reset()};Un.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Un.prototype.touchstart=function(t,e,r){this.singleTap.touchstart(t,e,r)},Un.prototype.touchmove=function(t,e,r){this.singleTap.touchmove(t,e,r)},Un.prototype.touchend=function(t,e,r){var n=this.singleTap.touchend(t,e,r);if(n){var i=t.timeStamp-this.lastTime&lt;500,a=!this.lastTap||this.lastTap.dist(n)&lt;30;if(i&amp;&amp;a||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=n,this.count===this.numTaps)return this.reset(),n}};var Vn=function(){this._zoomIn=new Un({numTouches:1,numTaps:2}),this._zoomOut=new Un({numTouches:2,numTaps:1}),this.reset()};Vn.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Vn.prototype.touchstart=function(t,e,r){this._zoomIn.touchstart(t,e,r),this._zoomOut.touchstart(t,e,r)},Vn.prototype.touchmove=function(t,e,r){this._zoomIn.touchmove(t,e,r),this._zoomOut.touchmove(t,e,r)},Vn.prototype.touchend=function(t,e,r){var n=this,i=this._zoomIn.touchend(t,e,r),a=this._zoomOut.touchend(t,e,r);return i?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(i)},{originalEvent:t})}}):a?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(a)},{originalEvent:t})}}):void 0},Vn.prototype.touchcancel=function(){this.reset()},Vn.prototype.enable=function(){this._enabled=!0},Vn.prototype.disable=function(){this._enabled=!1,this.reset()},Vn.prototype.isEnabled=function(){return this._enabled},Vn.prototype.isActive=function(){return this._active};var qn=function(t){this.reset(),this._clickTolerance=t.clickTolerance||1};qn.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},qn.prototype._correctButton=function(t,e){return!1},qn.prototype._move=function(t,e){return{}},qn.prototype.mousedown=function(t,e){if(!this._lastPoint){var n=r.mouseButton(t);this._correctButton(t,n)&amp;&amp;(this._lastPoint=e,this._eventButton=n)}},qn.prototype.mousemoveWindow=function(t,e){var r=this._lastPoint;if(r&amp;&amp;(t.preventDefault(),this._moved||!(e.dist(r)&lt;this._clickTolerance)))return this._moved=!0,this._lastPoint=e,this._move(r,e)},qn.prototype.mouseupWindow=function(t){r.mouseButton(t)===this._eventButton&amp;&amp;(this._moved&amp;&amp;r.suppressClick(),this.reset())},qn.prototype.enable=function(){this._enabled=!0},qn.prototype.disable=function(){this._enabled=!1,this.reset()},qn.prototype.isEnabled=function(){return this._enabled},qn.prototype.isActive=function(){return this._active};var Hn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.mousedown=function(e,r){t.prototype.mousedown.call(this,e,r),this._lastPoint&amp;&amp;(this._active=!0)},e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;!t.ctrlKey},e.prototype._move=function(t,e){return{around:e,panDelta:e.sub(t)}},e}(qn),Gn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=.8*(e.x-t.x);if(r)return this._active=!0,{bearingDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(qn),Yn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=-.5*(e.y-t.y);if(r)return this._active=!0,{pitchDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(qn),Wn=function(t){this._minTouches=1,this._clickTolerance=t.clickTolerance||1,this.reset()};Wn.prototype.reset=function(){this._active=!1,this._touches={},this._sum=new t.Point(0,0)},Wn.prototype.touchstart=function(t,e,r){return this._calculateTransform(t,e,r)},Wn.prototype.touchmove=function(t,e,r){if(this._active)return t.preventDefault(),this._calculateTransform(t,e,r)},Wn.prototype.touchend=function(t,e,r){this._calculateTransform(t,e,r),this._active&amp;&amp;r.length&lt;this._minTouches&amp;&amp;this.reset()},Wn.prototype.touchcancel=function(){this.reset()},Wn.prototype._calculateTransform=function(e,r,n){n.length&gt;0&amp;&amp;(this._active=!0);var i=Nn(n,r),a=new t.Point(0,0),o=new t.Point(0,0),s=0;for(var l in i){var c=i[l],u=this._touches[l];u&amp;&amp;(a._add(c),o._add(c.sub(u)),s++,i[l]=c)}if(this._touches=i,!(s&lt;this._minTouches)&amp;&amp;o.mag()){var f=o.div(s);if(this._sum._add(f),!(this._sum.mag()&lt;this._clickTolerance))return{around:a.div(s),panDelta:f}}},Wn.prototype.enable=function(){this._enabled=!0},Wn.prototype.disable=function(){this._enabled=!1,this.reset()},Wn.prototype.isEnabled=function(){return this._enabled},Wn.prototype.isActive=function(){return this._active};var Xn=function(){this.reset()};function Zn(t,e,r){for(var n=0;n&lt;t.length;n++)if(t[n].identifier===r)return e[n]}function Jn(t,e){return Math.log(t/e)/Math.LN2}Xn.prototype.reset=function(){this._active=!1,delete this._firstTwoTouches},Xn.prototype._start=function(t){},Xn.prototype._move=function(t,e,r){return{}},Xn.prototype.touchstart=function(t,e,r){this._firstTwoTouches||r.length&lt;2||(this._firstTwoTouches=[r[0].identifier,r[1].identifier],this._start([e[0],e[1]]))},Xn.prototype.touchmove=function(t,e,r){if(this._firstTwoTouches){t.preventDefault();var n=this._firstTwoTouches,i=n[1],a=Zn(r,e,n[0]),o=Zn(r,e,i);if(a&amp;&amp;o){var s=this._aroundCenter?null:a.add(o).div(2);return this._move([a,o],s,t)}}},Xn.prototype.touchend=function(t,e,n){if(this._firstTwoTouches){var i=this._firstTwoTouches,a=i[1],o=Zn(n,e,i[0]),s=Zn(n,e,a);o&amp;&amp;s||(this._active&amp;&amp;r.suppressClick(),this.reset())}},Xn.prototype.touchcancel=function(){this.reset()},Xn.prototype.enable=function(t){this._enabled=!0,this._aroundCenter=!!t&amp;&amp;&quot;center&quot;===t.around},Xn.prototype.disable=function(){this._enabled=!1,this.reset()},Xn.prototype.isEnabled=function(){return this._enabled},Xn.prototype.isActive=function(){return this._active};var Kn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._distance,delete this._startDistance},e.prototype._start=function(t){this._startDistance=this._distance=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._distance;if(this._distance=t[0].dist(t[1]),this._active||!(Math.abs(Jn(this._distance,this._startDistance))&lt;.1))return this._active=!0,{zoomDelta:Jn(this._distance,r),pinchAround:e}},e}(Xn);function Qn(t,e){return 180*t.angleWith(e)/Math.PI}var $n=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._minDiameter,delete this._startVector,delete this._vector},e.prototype._start=function(t){this._startVector=this._vector=t[0].sub(t[1]),this._minDiameter=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._vector;if(this._vector=t[0].sub(t[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:Qn(this._vector,r),pinchAround:e}},e.prototype._isBelowThreshold=function(t){this._minDiameter=Math.min(this._minDiameter,t.mag());var e=25/(Math.PI*this._minDiameter)*360,r=Qn(t,this._startVector);return Math.abs(r)&lt;e},e}(Xn);function ti(t){return Math.abs(t.y)&gt;Math.abs(t.x)}var ei=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},e.prototype._start=function(t){this._lastPoints=t,ti(t[0].sub(t[1]))&amp;&amp;(this._valid=!1)},e.prototype._move=function(t,e,r){var n=t[0].sub(this._lastPoints[0]),i=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(n,i,r.timeStamp),this._valid)return this._lastPoints=t,this._active=!0,{pitchDelta:(n.y+i.y)/2*-.5}},e.prototype.gestureBeginsVertically=function(t,e,r){if(void 0!==this._valid)return this._valid;var n=t.mag()&gt;=2,i=e.mag()&gt;=2;if(n||i){if(!n||!i)return void 0===this._firstMove&amp;&amp;(this._firstMove=r),r-this._firstMove&lt;100&amp;&amp;void 0;var a=t.y&gt;0==e.y&gt;0;return ti(t)&amp;&amp;ti(e)&amp;&amp;a}},e}(Xn),ri={panStep:100,bearingStep:15,pitchStep:10},ni=function(){var t=ri;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep};function ii(t){return t*(2-t)}ni.prototype.reset=function(){this._active=!1},ni.prototype.keydown=function(t){var e=this;if(!(t.altKey||t.ctrlKey||t.metaKey)){var r=0,n=0,i=0,a=0,o=0;switch(t.keyCode){case 61:case 107:case 171:case 187:r=1;break;case 189:case 109:case 173:r=-1;break;case 37:t.shiftKey?n=-1:(t.preventDefault(),a=-1);break;case 39:t.shiftKey?n=1:(t.preventDefault(),a=1);break;case 38:t.shiftKey?i=1:(t.preventDefault(),o=-1);break;case 40:t.shiftKey?i=-1:(t.preventDefault(),o=1);break;default:return}return{cameraAnimation:function(s){var l=s.getZoom();s.easeTo({duration:300,easeId:&quot;keyboardHandler&quot;,easing:ii,zoom:r?Math.round(l)+r*(t.shiftKey?2:1):l,bearing:s.getBearing()+n*e._bearingStep,pitch:s.getPitch()+i*e._pitchStep,offset:[-a*e._panStep,-o*e._panStep],center:s.getCenter()},{originalEvent:t})}}}},ni.prototype.enable=function(){this._enabled=!0},ni.prototype.disable=function(){this._enabled=!1,this.reset()},ni.prototype.isEnabled=function(){return this._enabled},ni.prototype.isActive=function(){return this._active};var ai=function(e,r){this._map=e,this._el=e.getCanvasContainer(),this._handler=r,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,t.bindAll([&quot;_onWheel&quot;,&quot;_onTimeout&quot;,&quot;_onScrollFrame&quot;,&quot;_onScrollFinished&quot;],this)};ai.prototype.setZoomRate=function(t){this._defaultZoomRate=t},ai.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},ai.prototype.isEnabled=function(){return!!this._enabled},ai.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},ai.prototype.isZooming=function(){return!!this._zooming},ai.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&amp;&amp;&quot;center&quot;===t.around)},ai.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},ai.prototype.wheel=function(e){if(this.isEnabled()){var r=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,n=t.browser.now(),i=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==r&amp;&amp;r%4.000244140625==0?this._type=&quot;wheel&quot;:0!==r&amp;&amp;Math.abs(r)&lt;4?this._type=&quot;trackpad&quot;:i&gt;400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*r)&lt;200?&quot;trackpad&quot;:&quot;wheel&quot;,this._timeout&amp;&amp;(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),e.shiftKey&amp;&amp;r&amp;&amp;(r/=4),this._type&amp;&amp;(this._lastWheelEvent=e,this._delta-=r,this._active||this._start(e)),e.preventDefault()}},ai.prototype._onTimeout=function(t){this._type=&quot;wheel&quot;,this._delta-=this._lastValue,this._active||this._start(t)},ai.prototype._start=function(e){if(this._delta){this._frameId&amp;&amp;(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&amp;&amp;(clearTimeout(this._finishTimeout),delete this._finishTimeout);var n=r.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(n)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},ai.prototype.renderFrame=function(){return this._onScrollFrame()},ai.prototype._onScrollFrame=function(){var e=this;if(this._frameId&amp;&amp;(this._frameId=null,this.isActive())){var r=this._map.transform;if(0!==this._delta){var n=&quot;wheel&quot;===this._type&amp;&amp;Math.abs(this._delta)&gt;4.000244140625?this._wheelZoomRate:this._defaultZoomRate,i=2/(1+Math.exp(-Math.abs(this._delta*n)));this._delta&lt;0&amp;&amp;0!==i&amp;&amp;(i=1/i);var a=&quot;number&quot;==typeof this._targetZoom?r.zoomScale(this._targetZoom):r.scale;this._targetZoom=Math.min(r.maxZoom,Math.max(r.minZoom,r.scaleZoom(a*i))),&quot;wheel&quot;===this._type&amp;&amp;(this._startZoom=r.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var o,s=&quot;number&quot;==typeof this._targetZoom?this._targetZoom:r.zoom,l=this._startZoom,c=this._easing,u=!1;if(&quot;wheel&quot;===this._type&amp;&amp;l&amp;&amp;c){var f=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),h=c(f);o=t.number(l,s,h),f&lt;1?this._frameId||(this._frameId=!0):u=!0}else o=s,u=!0;return this._active=!0,u&amp;&amp;(this._active=!1,this._finishTimeout=setTimeout((function(){e._zooming=!1,e._handler._triggerRenderFrame(),delete e._targetZoom,delete e._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!u,zoomDelta:o-r.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},ai.prototype._smoothOutEasing=function(e){var r=t.ease;if(this._prevEase){var n=this._prevEase,i=(t.browser.now()-n.start)/n.duration,a=n.easing(i+.01)-n.easing(i),o=.27/Math.sqrt(a*a+1e-4)*.01,s=Math.sqrt(.0729-o*o);r=t.bezier(o,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:r},r},ai.prototype.reset=function(){this._active=!1};var oi=function(t,e){this._clickZoom=t,this._tapZoom=e};oi.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},oi.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},oi.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&amp;&amp;this._tapZoom.isEnabled()},oi.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var si=function(){this.reset()};si.prototype.reset=function(){this._active=!1},si.prototype.dblclick=function(t,e){return t.preventDefault(),{cameraAnimation:function(r){r.easeTo({duration:300,zoom:r.getZoom()+(t.shiftKey?-1:1),around:r.unproject(e)},{originalEvent:t})}}},si.prototype.enable=function(){this._enabled=!0},si.prototype.disable=function(){this._enabled=!1,this.reset()},si.prototype.isEnabled=function(){return this._enabled},si.prototype.isActive=function(){return this._active};var li=function(){this._tap=new Un({numTouches:1,numTaps:1}),this.reset()};li.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},li.prototype.touchstart=function(t,e,r){this._swipePoint||(this._tapTime&amp;&amp;t.timeStamp-this._tapTime&gt;500&amp;&amp;this.reset(),this._tapTime?r.length&gt;0&amp;&amp;(this._swipePoint=e[0],this._swipeTouch=r[0].identifier):this._tap.touchstart(t,e,r))},li.prototype.touchmove=function(t,e,r){if(this._tapTime){if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;var n=e[0],i=n.y-this._swipePoint.y;return this._swipePoint=n,t.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(t,e,r)},li.prototype.touchend=function(t,e,r){this._tapTime?this._swipePoint&amp;&amp;0===r.length&amp;&amp;this.reset():this._tap.touchend(t,e,r)&amp;&amp;(this._tapTime=t.timeStamp)},li.prototype.touchcancel=function(){this.reset()},li.prototype.enable=function(){this._enabled=!0},li.prototype.disable=function(){this._enabled=!1,this.reset()},li.prototype.isEnabled=function(){return this._enabled},li.prototype.isActive=function(){return this._active};var ci=function(t,e,r){this._el=t,this._mousePan=e,this._touchPan=r};ci.prototype.enable=function(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add(&quot;mapboxgl-touch-drag-pan&quot;)},ci.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove(&quot;mapboxgl-touch-drag-pan&quot;)},ci.prototype.isEnabled=function(){return this._mousePan.isEnabled()&amp;&amp;this._touchPan.isEnabled()},ci.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var ui=function(t,e,r){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=r};ui.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&amp;&amp;this._mousePitch.enable()},ui.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},ui.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&amp;&amp;(!this._pitchWithRotate||this._mousePitch.isEnabled())},ui.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var fi=function(t,e,r,n){this._el=t,this._touchZoom=e,this._touchRotate=r,this._tapDragZoom=n,this._rotationDisabled=!1,this._enabled=!0};fi.prototype.enable=function(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add(&quot;mapboxgl-touch-zoom-rotate&quot;)},fi.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove(&quot;mapboxgl-touch-zoom-rotate&quot;)},fi.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&amp;&amp;(this._rotationDisabled||this._touchRotate.isEnabled())&amp;&amp;this._tapDragZoom.isEnabled()},fi.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},fi.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},fi.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&amp;&amp;this._touchRotate.enable()};var hi=function(t){return t.zoom||t.drag||t.pitch||t.rotate},pi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(t.Event);function di(t){return t.panDelta&amp;&amp;t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var gi=function(e,n){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Ln(e),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(n),t.bindAll([&quot;handleEvent&quot;,&quot;handleWindowEvent&quot;],this);var i=this._el;this._listeners=[[i,&quot;touchstart&quot;,{passive:!1}],[i,&quot;touchmove&quot;,{passive:!1}],[i,&quot;touchend&quot;,void 0],[i,&quot;touchcancel&quot;,void 0],[i,&quot;mousedown&quot;,void 0],[i,&quot;mousemove&quot;,void 0],[i,&quot;mouseup&quot;,void 0],[t.window.document,&quot;mousemove&quot;,{capture:!0}],[t.window.document,&quot;mouseup&quot;,void 0],[i,&quot;mouseover&quot;,void 0],[i,&quot;mouseout&quot;,void 0],[i,&quot;dblclick&quot;,void 0],[i,&quot;click&quot;,void 0],[i,&quot;keydown&quot;,{capture:!1}],[i,&quot;keyup&quot;,void 0],[i,&quot;wheel&quot;,{passive:!1}],[i,&quot;contextmenu&quot;,void 0],[t.window,&quot;blur&quot;,void 0]];for(var a=0,o=this._listeners;a&lt;o.length;a+=1){var s=o[a],l=s[0];r.addEventListener(l,s[1],l===t.window.document?this.handleWindowEvent:this.handleEvent,s[2])}};gi.prototype.destroy=function(){for(var e=0,n=this._listeners;e&lt;n.length;e+=1){var i=n[e],a=i[0];r.removeEventListener(a,i[1],a===t.window.document?this.handleWindowEvent:this.handleEvent,i[2])}},gi.prototype._addDefaultHandlers=function(t){var e=this._map,r=e.getCanvasContainer();this._add(&quot;mapEvent&quot;,new Rn(e,t));var n=e.boxZoom=new Bn(e,t);this._add(&quot;boxZoom&quot;,n);var i=new Vn,a=new si;e.doubleClickZoom=new oi(a,i),this._add(&quot;tapZoom&quot;,i),this._add(&quot;clickZoom&quot;,a);var o=new li;this._add(&quot;tapDragZoom&quot;,o);var s=e.touchPitch=new ei;this._add(&quot;touchPitch&quot;,s);var l=new Gn(t),c=new Yn(t);e.dragRotate=new ui(t,l,c),this._add(&quot;mouseRotate&quot;,l,[&quot;mousePitch&quot;]),this._add(&quot;mousePitch&quot;,c,[&quot;mouseRotate&quot;]);var u=new Hn(t),f=new Wn(t);e.dragPan=new ci(r,u,f),this._add(&quot;mousePan&quot;,u),this._add(&quot;touchPan&quot;,f,[&quot;touchZoom&quot;,&quot;touchRotate&quot;]);var h=new $n,p=new Kn;e.touchZoomRotate=new fi(r,p,h,o),this._add(&quot;touchRotate&quot;,h,[&quot;touchPan&quot;,&quot;touchZoom&quot;]),this._add(&quot;touchZoom&quot;,p,[&quot;touchPan&quot;,&quot;touchRotate&quot;]);var d=e.scrollZoom=new ai(e,this);this._add(&quot;scrollZoom&quot;,d,[&quot;mousePan&quot;]);var g=e.keyboard=new ni;this._add(&quot;keyboard&quot;,g),this._add(&quot;blockableMapEvent&quot;,new Fn(e));for(var m=0,v=[&quot;boxZoom&quot;,&quot;doubleClickZoom&quot;,&quot;tapDragZoom&quot;,&quot;touchPitch&quot;,&quot;dragRotate&quot;,&quot;dragPan&quot;,&quot;touchZoomRotate&quot;,&quot;scrollZoom&quot;,&quot;keyboard&quot;];m&lt;v.length;m+=1){var y=v[m];t.interactive&amp;&amp;t[y]&amp;&amp;e[y].enable(t[y])}},gi.prototype._add=function(t,e,r){this._handlers.push({handlerName:t,handler:e,allowed:r}),this._handlersById[t]=e},gi.prototype.stop=function(){if(!this._updatingCamera){for(var t=0,e=this._handlers;t&lt;e.length;t+=1)e[t].handler.reset();this._inertia.clear(),this._fireEvents({},{}),this._changes=[]}},gi.prototype.isActive=function(){for(var t=0,e=this._handlers;t&lt;e.length;t+=1)if(e[t].handler.isActive())return!0;return!1},gi.prototype.isZooming=function(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()},gi.prototype.isRotating=function(){return!!this._eventsInProgress.rotate},gi.prototype.isMoving=function(){return Boolean(hi(this._eventsInProgress))||this.isZooming()},gi.prototype._blockedByActive=function(t,e,r){for(var n in t)if(n!==r&amp;&amp;(!e||e.indexOf(n)&lt;0))return!0;return!1},gi.prototype.handleWindowEvent=function(t){this.handleEvent(t,t.type+&quot;Window&quot;)},gi.prototype._getMapTouches=function(t){for(var e=[],r=0,n=t;r&lt;n.length;r+=1){var i=n[r];this._el.contains(i.target)&amp;&amp;e.push(i)}return e},gi.prototype.handleEvent=function(t,e){if(&quot;blur&quot;!==t.type){this._updatingCamera=!0;for(var n=&quot;renderFrame&quot;===t.type?void 0:t,i={needsRenderFrame:!1},a={},o={},s=t.touches?this._getMapTouches(t.touches):void 0,l=s?r.touchPos(this._el,s):r.mousePos(this._el,t),c=0,u=this._handlers;c&lt;u.length;c+=1){var f=u[c],h=f.handlerName,p=f.handler,d=f.allowed;if(p.isEnabled()){var g=void 0;this._blockedByActive(o,d,h)?p.reset():p[e||t.type]&amp;&amp;(g=p[e||t.type](t,l,s),this.mergeHandlerResult(i,a,g,h,n),g&amp;&amp;g.needsRenderFrame&amp;&amp;this._triggerRenderFrame()),(g||p.isActive())&amp;&amp;(o[h]=p)}}var m={};for(var v in this._previousActiveHandlers)o[v]||(m[v]=n);this._previousActiveHandlers=o,(Object.keys(m).length||di(i))&amp;&amp;(this._changes.push([i,a,m]),this._triggerRenderFrame()),(Object.keys(o).length||di(i))&amp;&amp;this._map._stop(!0),this._updatingCamera=!1;var y=i.cameraAnimation;y&amp;&amp;(this._inertia.clear(),this._fireEvents({},{}),this._changes=[],y(this._map))}else this.stop()},gi.prototype.mergeHandlerResult=function(e,r,n,i,a){if(n){t.extend(e,n);var o={handlerName:i,originalEvent:n.originalEvent||a};void 0!==n.zoomDelta&amp;&amp;(r.zoom=o),void 0!==n.panDelta&amp;&amp;(r.drag=o),void 0!==n.pitchDelta&amp;&amp;(r.pitch=o),void 0!==n.bearingDelta&amp;&amp;(r.rotate=o)}},gi.prototype._applyChanges=function(){for(var e={},r={},n={},i=0,a=this._changes;i&lt;a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=o[2];s.panDelta&amp;&amp;(e.panDelta=(e.panDelta||new t.Point(0,0))._add(s.panDelta)),s.zoomDelta&amp;&amp;(e.zoomDelta=(e.zoomDelta||0)+s.zoomDelta),s.bearingDelta&amp;&amp;(e.bearingDelta=(e.bearingDelta||0)+s.bearingDelta),s.pitchDelta&amp;&amp;(e.pitchDelta=(e.pitchDelta||0)+s.pitchDelta),void 0!==s.around&amp;&amp;(e.around=s.around),void 0!==s.pinchAround&amp;&amp;(e.pinchAround=s.pinchAround),s.noInertia&amp;&amp;(e.noInertia=s.noInertia),t.extend(r,l),t.extend(n,c)}this._updateMapTransform(e,r,n),this._changes=[]},gi.prototype._updateMapTransform=function(t,e,r){var n=this._map,i=n.transform;if(!di(t))return this._fireEvents(e,r);var a=t.panDelta,o=t.zoomDelta,s=t.bearingDelta,l=t.pitchDelta,c=t.around,u=t.pinchAround;void 0!==u&amp;&amp;(c=u),n._stop(!0),c=c||n.transform.centerPoint;var f=i.pointLocation(a?c.sub(a):c);s&amp;&amp;(i.bearing+=s),l&amp;&amp;(i.pitch+=l),o&amp;&amp;(i.zoom+=o),i.setLocationAtPoint(f,c),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(e,r)},gi.prototype._fireEvents=function(e,r){var n=this,i=hi(this._eventsInProgress),a=hi(e),o={};for(var s in e)this._eventsInProgress[s]||(o[s+&quot;start&quot;]=e[s].originalEvent),this._eventsInProgress[s]=e[s];for(var l in!i&amp;&amp;a&amp;&amp;this._fireEvent(&quot;movestart&quot;,a.originalEvent),o)this._fireEvent(l,o[l]);for(var c in e.rotate&amp;&amp;(this._bearingChanged=!0),a&amp;&amp;this._fireEvent(&quot;move&quot;,a.originalEvent),e)this._fireEvent(c,e[c].originalEvent);var u,f={};for(var h in this._eventsInProgress){var p=this._eventsInProgress[h],d=p.handlerName,g=p.originalEvent;this._handlersById[d].isActive()||(delete this._eventsInProgress[h],f[h+&quot;end&quot;]=u=r[d]||g)}for(var m in f)this._fireEvent(m,f[m]);var v=hi(this._eventsInProgress);if((i||a)&amp;&amp;!v){this._updatingCamera=!0;var y=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),x=function(t){return 0!==t&amp;&amp;-n._bearingSnap&lt;t&amp;&amp;t&lt;n._bearingSnap};y?(x(y.bearing||this._map.getBearing())&amp;&amp;(y.bearing=0),this._map.easeTo(y,{originalEvent:u})):(this._map.fire(new t.Event(&quot;moveend&quot;,{originalEvent:u})),x(this._map.getBearing())&amp;&amp;this._map.resetNorth()),this._bearingChanged=!1,this._updatingCamera=!1}},gi.prototype._fireEvent=function(e,r){this._map.fire(new t.Event(e,r?{originalEvent:r}:{}))},gi.prototype._triggerRenderFrame=function(){var t=this;void 0===this._frameId&amp;&amp;(this._frameId=this._map._requestRenderFrame((function(e){delete t._frameId,t.handleEvent(new pi(&quot;renderFrame&quot;,{timeStamp:e})),t._applyChanges()})))};var mi=function(e){function r(r,n){e.call(this),this._moving=!1,this._zooming=!1,this.transform=r,this._bearingSnap=n.bearingSnap,t.bindAll([&quot;_renderFrameCallback&quot;],this)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getCenter=function(){return new t.LngLat(this.transform.center.lng,this.transform.center.lat)},r.prototype.setCenter=function(t,e){return this.jumpTo({center:t},e)},r.prototype.panBy=function(e,r,n){return e=t.Point.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},r),n)},r.prototype.panTo=function(e,r,n){return this.easeTo(t.extend({center:e},r),n)},r.prototype.getZoom=function(){return this.transform.zoom},r.prototype.setZoom=function(t,e){return this.jumpTo({zoom:t},e),this},r.prototype.zoomTo=function(e,r,n){return this.easeTo(t.extend({zoom:e},r),n)},r.prototype.zoomIn=function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},r.prototype.zoomOut=function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},r.prototype.getBearing=function(){return this.transform.bearing},r.prototype.setBearing=function(t,e){return this.jumpTo({bearing:t},e),this},r.prototype.getPadding=function(){return this.transform.padding},r.prototype.setPadding=function(t,e){return this.jumpTo({padding:t},e),this},r.prototype.rotateTo=function(e,r,n){return this.easeTo(t.extend({bearing:e},r),n)},r.prototype.resetNorth=function(e,r){return this.rotateTo(0,t.extend({duration:1e3},e),r),this},r.prototype.resetNorthPitch=function(e,r){return this.easeTo(t.extend({bearing:0,pitch:0,duration:1e3},e),r),this},r.prototype.snapToNorth=function(t,e){return Math.abs(this.getBearing())&lt;this._bearingSnap?this.resetNorth(t,e):this},r.prototype.getPitch=function(){return this.transform.pitch},r.prototype.setPitch=function(t,e){return this.jumpTo({pitch:t},e),this},r.prototype.cameraForBounds=function(e,r){return e=t.LngLatBounds.convert(e),this._cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),0,r)},r.prototype._cameraForBoxAndBearing=function(e,r,n,i){var a={top:0,bottom:0,right:0,left:0};if(&quot;number&quot;==typeof(i=t.extend({padding:a,offset:[0,0],maxZoom:this.transform.maxZoom},i)).padding){var o=i.padding;i.padding={top:o,bottom:o,right:o,left:o}}i.padding=t.extend(a,i.padding);var s=this.transform,l=s.padding,c=s.project(t.LngLat.convert(e)),u=s.project(t.LngLat.convert(r)),f=c.rotate(-n*Math.PI/180),h=u.rotate(-n*Math.PI/180),p=new t.Point(Math.max(f.x,h.x),Math.max(f.y,h.y)),d=new t.Point(Math.min(f.x,h.x),Math.min(f.y,h.y)),g=p.sub(d),m=(s.width-(l.left+l.right+i.padding.left+i.padding.right))/g.x,v=(s.height-(l.top+l.bottom+i.padding.top+i.padding.bottom))/g.y;if(!(v&lt;0||m&lt;0)){var y=Math.min(s.scaleZoom(s.scale*Math.min(m,v)),i.maxZoom),x=t.Point.convert(i.offset),b=new t.Point(x.x+(i.padding.left-i.padding.right)/2,x.y+(i.padding.top-i.padding.bottom)/2).mult(s.scale/s.zoomScale(y));return{center:s.unproject(c.add(u).div(2).sub(b)),zoom:y,bearing:n}}t.warnOnce(&quot;Map cannot fit within canvas with the given bounds, padding, and/or offset.&quot;)},r.prototype.fitBounds=function(t,e,r){return this._fitInternal(this.cameraForBounds(t,e),e,r)},r.prototype.fitScreenCoordinates=function(e,r,n,i,a){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(t.Point.convert(e)),this.transform.pointLocation(t.Point.convert(r)),n,i),i,a)},r.prototype._fitInternal=function(e,r,n){return e?(delete(r=t.extend(e,r)).padding,r.linear?this.easeTo(r,n):this.flyTo(r,n)):this},r.prototype.jumpTo=function(e,r){this.stop();var n=this.transform,i=!1,a=!1,o=!1;return&quot;zoom&quot;in e&amp;&amp;n.zoom!==+e.zoom&amp;&amp;(i=!0,n.zoom=+e.zoom),void 0!==e.center&amp;&amp;(n.center=t.LngLat.convert(e.center)),&quot;bearing&quot;in e&amp;&amp;n.bearing!==+e.bearing&amp;&amp;(a=!0,n.bearing=+e.bearing),&quot;pitch&quot;in e&amp;&amp;n.pitch!==+e.pitch&amp;&amp;(o=!0,n.pitch=+e.pitch),null==e.padding||n.isPaddingEqual(e.padding)||(n.padding=e.padding),this.fire(new t.Event(&quot;movestart&quot;,r)).fire(new t.Event(&quot;move&quot;,r)),i&amp;&amp;this.fire(new t.Event(&quot;zoomstart&quot;,r)).fire(new t.Event(&quot;zoom&quot;,r)).fire(new t.Event(&quot;zoomend&quot;,r)),a&amp;&amp;this.fire(new t.Event(&quot;rotatestart&quot;,r)).fire(new t.Event(&quot;rotate&quot;,r)).fire(new t.Event(&quot;rotateend&quot;,r)),o&amp;&amp;this.fire(new t.Event(&quot;pitchstart&quot;,r)).fire(new t.Event(&quot;pitch&quot;,r)).fire(new t.Event(&quot;pitchend&quot;,r)),this.fire(new t.Event(&quot;moveend&quot;,r))},r.prototype.easeTo=function(e,r){var n=this;this._stop(!1,e.easeId),(!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate||!e.essential&amp;&amp;t.browser.prefersReducedMotion)&amp;&amp;(e.duration=0);var i=this.transform,a=this.getZoom(),o=this.getBearing(),s=this.getPitch(),l=this.getPadding(),c=&quot;zoom&quot;in e?+e.zoom:a,u=&quot;bearing&quot;in e?this._normalizeBearing(e.bearing,o):o,f=&quot;pitch&quot;in e?+e.pitch:s,h=&quot;padding&quot;in e?e.padding:i.padding,p=t.Point.convert(e.offset),d=i.centerPoint.add(p),g=i.pointLocation(d),m=t.LngLat.convert(e.center||g);this._normalizeCenter(m);var v,y,x=i.project(g),b=i.project(m).sub(x),_=i.zoomScale(c-a);e.around&amp;&amp;(v=t.LngLat.convert(e.around),y=i.locationPoint(v));var w={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||c!==a,this._rotating=this._rotating||o!==u,this._pitching=this._pitching||f!==s,this._padding=!i.isPaddingEqual(h),this._easeId=e.easeId,this._prepareEase(r,e.noMoveStart,w),clearTimeout(this._easeEndTimeoutID),this._ease((function(e){if(n._zooming&amp;&amp;(i.zoom=t.number(a,c,e)),n._rotating&amp;&amp;(i.bearing=t.number(o,u,e)),n._pitching&amp;&amp;(i.pitch=t.number(s,f,e)),n._padding&amp;&amp;(i.interpolatePadding(l,h,e),d=i.centerPoint.add(p)),v)i.setLocationAtPoint(v,y);else{var g=i.zoomScale(i.zoom-a),m=c&gt;a?Math.min(2,_):Math.max(.5,_),w=Math.pow(m,1-e),T=i.unproject(x.add(b.mult(e*w)).mult(g));i.setLocationAtPoint(i.renderWorldCopies?T.wrap():T,d)}n._fireMoveEvents(r)}),(function(t){n._afterEase(r,t)}),e),this},r.prototype._prepareEase=function(e,r,n){void 0===n&amp;&amp;(n={}),this._moving=!0,r||n.moving||this.fire(new t.Event(&quot;movestart&quot;,e)),this._zooming&amp;&amp;!n.zooming&amp;&amp;this.fire(new t.Event(&quot;zoomstart&quot;,e)),this._rotating&amp;&amp;!n.rotating&amp;&amp;this.fire(new t.Event(&quot;rotatestart&quot;,e)),this._pitching&amp;&amp;!n.pitching&amp;&amp;this.fire(new t.Event(&quot;pitchstart&quot;,e))},r.prototype._fireMoveEvents=function(e){this.fire(new t.Event(&quot;move&quot;,e)),this._zooming&amp;&amp;this.fire(new t.Event(&quot;zoom&quot;,e)),this._rotating&amp;&amp;this.fire(new t.Event(&quot;rotate&quot;,e)),this._pitching&amp;&amp;this.fire(new t.Event(&quot;pitch&quot;,e))},r.prototype._afterEase=function(e,r){if(!this._easeId||!r||this._easeId!==r){delete this._easeId;var n=this._zooming,i=this._rotating,a=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&amp;&amp;this.fire(new t.Event(&quot;zoomend&quot;,e)),i&amp;&amp;this.fire(new t.Event(&quot;rotateend&quot;,e)),a&amp;&amp;this.fire(new t.Event(&quot;pitchend&quot;,e)),this.fire(new t.Event(&quot;moveend&quot;,e))}},r.prototype.flyTo=function(e,r){var n=this;if(!e.essential&amp;&amp;t.browser.prefersReducedMotion){var i=t.pick(e,[&quot;center&quot;,&quot;zoom&quot;,&quot;bearing&quot;,&quot;pitch&quot;,&quot;around&quot;]);return this.jumpTo(i,r)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var a=this.transform,o=this.getZoom(),s=this.getBearing(),l=this.getPitch(),c=this.getPadding(),u=&quot;zoom&quot;in e?t.clamp(+e.zoom,a.minZoom,a.maxZoom):o,f=&quot;bearing&quot;in e?this._normalizeBearing(e.bearing,s):s,h=&quot;pitch&quot;in e?+e.pitch:l,p=&quot;padding&quot;in e?e.padding:a.padding,d=a.zoomScale(u-o),g=t.Point.convert(e.offset),m=a.centerPoint.add(g),v=a.pointLocation(m),y=t.LngLat.convert(e.center||v);this._normalizeCenter(y);var x=a.project(v),b=a.project(y).sub(x),_=e.curve,w=Math.max(a.width,a.height),T=w/d,k=b.mag();if(&quot;minZoom&quot;in e){var M=t.clamp(Math.min(e.minZoom,o,u),a.minZoom,a.maxZoom),A=w/a.zoomScale(M-o);_=Math.sqrt(A/k*2)}var S=_*_;function E(t){var e=(T*T-w*w+(t?-1:1)*S*S*k*k)/(2*(t?T:w)*S*k);return Math.log(Math.sqrt(e*e+1)-e)}function C(t){return(Math.exp(t)-Math.exp(-t))/2}function L(t){return(Math.exp(t)+Math.exp(-t))/2}var I=E(0),P=function(t){return L(I)/L(I+_*t)},z=function(t){return w*((L(I)*(C(e=I+_*t)/L(e))-C(I))/S)/k;var e},O=(E(1)-I)/_;if(Math.abs(k)&lt;1e-6||!isFinite(O)){if(Math.abs(w-T)&lt;1e-6)return this.easeTo(e,r);var D=T&lt;w?-1:1;O=Math.abs(Math.log(T/w))/_,z=function(){return 0},P=function(t){return Math.exp(D*_*t)}}return e.duration=&quot;duration&quot;in e?+e.duration:1e3*O/(&quot;screenSpeed&quot;in e?+e.screenSpeed/_:+e.speed),e.maxDuration&amp;&amp;e.duration&gt;e.maxDuration&amp;&amp;(e.duration=0),this._zooming=!0,this._rotating=s!==f,this._pitching=h!==l,this._padding=!a.isPaddingEqual(p),this._prepareEase(r,!1),this._ease((function(e){var i=e*O,d=1/P(i);a.zoom=1===e?u:o+a.scaleZoom(d),n._rotating&amp;&amp;(a.bearing=t.number(s,f,e)),n._pitching&amp;&amp;(a.pitch=t.number(l,h,e)),n._padding&amp;&amp;(a.interpolatePadding(c,p,e),m=a.centerPoint.add(g));var v=1===e?y:a.unproject(x.add(b.mult(z(i))).mult(d));a.setLocationAtPoint(a.renderWorldCopies?v.wrap():v,m),n._fireMoveEvents(r)}),(function(){return n._afterEase(r)}),e),this},r.prototype.isEasing=function(){return!!this._easeFrameId},r.prototype.stop=function(){return this._stop()},r.prototype._stop=function(t,e){if(this._easeFrameId&amp;&amp;(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,e)}if(!t){var n=this.handlers;n&amp;&amp;n.stop()}return this},r.prototype._ease=function(e,r,n){!1===n.animate||0===n.duration?(e(1),r()):(this._easeStart=t.browser.now(),this._easeOptions=n,this._onEaseFrame=e,this._onEaseEnd=r,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},r.prototype._renderFrameCallback=function(){var e=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e&lt;1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},r.prototype._normalizeBearing=function(e,r){e=t.wrap(e,-180,180);var n=Math.abs(e-r);return Math.abs(e-360-r)&lt;n&amp;&amp;(e-=360),Math.abs(e+360-r)&lt;n&amp;&amp;(e+=360),e},r.prototype._normalizeCenter=function(t){var e=this.transform;if(e.renderWorldCopies&amp;&amp;!e.lngRange){var r=t.lng-e.center.lng;t.lng+=r&gt;180?-360:r&lt;-180?360:0}},r}(t.Evented),vi=function(e){void 0===e&amp;&amp;(e={}),this.options=e,t.bindAll([&quot;_updateEditLink&quot;,&quot;_updateData&quot;,&quot;_updateCompact&quot;],this)};vi.prototype.getDefaultPosition=function(){return&quot;bottom-right&quot;},vi.prototype.onAdd=function(t){var e=this.options&amp;&amp;this.options.compact;return this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-attrib&quot;),this._innerContainer=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl-attrib-inner&quot;,this._container),e&amp;&amp;this._container.classList.add(&quot;mapboxgl-compact&quot;),this._updateAttributions(),this._updateEditLink(),this._map.on(&quot;styledata&quot;,this._updateData),this._map.on(&quot;sourcedata&quot;,this._updateData),this._map.on(&quot;moveend&quot;,this._updateEditLink),void 0===e&amp;&amp;(this._map.on(&quot;resize&quot;,this._updateCompact),this._updateCompact()),this._container},vi.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;styledata&quot;,this._updateData),this._map.off(&quot;sourcedata&quot;,this._updateData),this._map.off(&quot;moveend&quot;,this._updateEditLink),this._map.off(&quot;resize&quot;,this._updateCompact),this._map=void 0,this._attribHTML=void 0},vi.prototype._updateEditLink=function(){var e=this._editLink;e||(e=this._editLink=this._container.querySelector(&quot;.mapbox-improve-map&quot;));var r=[{key:&quot;owner&quot;,value:this.styleOwner},{key:&quot;id&quot;,value:this.styleId},{key:&quot;access_token&quot;,value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if(e){var n=r.reduce((function(t,e,n){return e.value&amp;&amp;(t+=e.key+&quot;=&quot;+e.value+(n&lt;r.length-1?&quot;&amp;&quot;:&quot;&quot;)),t}),&quot;?&quot;);e.href=t.config.FEEDBACK_URL+&quot;/&quot;+n+(this._map._hash?this._map._hash.getHashString(!0):&quot;&quot;),e.rel=&quot;noopener nofollow&quot;}},vi.prototype._updateData=function(t){!t||&quot;metadata&quot;!==t.sourceDataType&amp;&amp;&quot;style&quot;!==t.dataType||(this._updateAttributions(),this._updateEditLink())},vi.prototype._updateAttributions=function(){if(this._map.style){var t=[];if(this.options.customAttribution&amp;&amp;(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map((function(t){return&quot;string&quot;!=typeof t?&quot;&quot;:t}))):&quot;string&quot;==typeof this.options.customAttribution&amp;&amp;t.push(this.options.customAttribution)),this._map.style.stylesheet){var e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}var r=this._map.style.sourceCaches;for(var n in r){var i=r[n];if(i.used){var a=i.getSource();a.attribution&amp;&amp;t.indexOf(a.attribution)&lt;0&amp;&amp;t.push(a.attribution)}}t.sort((function(t,e){return t.length-e.length}));var o=(t=t.filter((function(e,r){for(var n=r+1;n&lt;t.length;n++)if(t[n].indexOf(e)&gt;=0)return!1;return!0}))).join(&quot; | &quot;);o!==this._attribHTML&amp;&amp;(this._attribHTML=o,t.length?(this._innerContainer.innerHTML=o,this._container.classList.remove(&quot;mapboxgl-attrib-empty&quot;)):this._container.classList.add(&quot;mapboxgl-attrib-empty&quot;),this._editLink=null)}},vi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth&lt;=640?this._container.classList.add(&quot;mapboxgl-compact&quot;):this._container.classList.remove(&quot;mapboxgl-compact&quot;)};var yi=function(){t.bindAll([&quot;_updateLogo&quot;],this),t.bindAll([&quot;_updateCompact&quot;],this)};yi.prototype.onAdd=function(t){this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl&quot;);var e=r.create(&quot;a&quot;,&quot;mapboxgl-ctrl-logo&quot;);return e.target=&quot;_blank&quot;,e.rel=&quot;noopener nofollow&quot;,e.href=&quot;https://www.mapbox.com/&quot;,e.setAttribute(&quot;aria-label&quot;,this._map._getUIString(&quot;LogoControl.Title&quot;)),e.setAttribute(&quot;rel&quot;,&quot;noopener nofollow&quot;),this._container.appendChild(e),this._container.style.display=&quot;none&quot;,this._map.on(&quot;sourcedata&quot;,this._updateLogo),this._updateLogo(),this._map.on(&quot;resize&quot;,this._updateCompact),this._updateCompact(),this._container},yi.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;sourcedata&quot;,this._updateLogo),this._map.off(&quot;resize&quot;,this._updateCompact)},yi.prototype.getDefaultPosition=function(){return&quot;bottom-left&quot;},yi.prototype._updateLogo=function(t){t&amp;&amp;&quot;metadata&quot;!==t.sourceDataType||(this._container.style.display=this._logoRequired()?&quot;block&quot;:&quot;none&quot;)},yi.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}},yi.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth&lt;250?e.classList.add(&quot;mapboxgl-compact&quot;):e.classList.remove(&quot;mapboxgl-compact&quot;)}};var xi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};xi.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},xi.prototype.remove=function(t){for(var e=this._currentlyRunning,r=0,n=e?this._queue.concat(e):this._queue;r&lt;n.length;r+=1){var i=n[r];if(i.id===t)return void(i.cancelled=!0)}},xi.prototype.run=function(t){void 0===t&amp;&amp;(t=0);var e=this._currentlyRunning=this._queue;this._queue=[];for(var r=0,n=e;r&lt;n.length;r+=1){var i=n[r];if(!i.cancelled&amp;&amp;(i.callback(t),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},xi.prototype.clear=function(){this._currentlyRunning&amp;&amp;(this._cleared=!0),this._queue=[]};var bi={&quot;FullscreenControl.Enter&quot;:&quot;Enter fullscreen&quot;,&quot;FullscreenControl.Exit&quot;:&quot;Exit fullscreen&quot;,&quot;GeolocateControl.FindMyLocation&quot;:&quot;Find my location&quot;,&quot;GeolocateControl.LocationNotAvailable&quot;:&quot;Location not available&quot;,&quot;LogoControl.Title&quot;:&quot;Mapbox logo&quot;,&quot;NavigationControl.ResetBearing&quot;:&quot;Reset bearing to north&quot;,&quot;NavigationControl.ZoomIn&quot;:&quot;Zoom in&quot;,&quot;NavigationControl.ZoomOut&quot;:&quot;Zoom out&quot;,&quot;ScaleControl.Feet&quot;:&quot;ft&quot;,&quot;ScaleControl.Meters&quot;:&quot;m&quot;,&quot;ScaleControl.Kilometers&quot;:&quot;km&quot;,&quot;ScaleControl.Miles&quot;:&quot;mi&quot;,&quot;ScaleControl.NauticalMiles&quot;:&quot;nm&quot;},_i=t.window.HTMLImageElement,wi=t.window.HTMLElement,Ti=t.window.ImageBitmap,ki={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:&quot;sans-serif&quot;,transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Mi=function(n){function i(e){var r=this;if(null!=(e=t.extend({},ki,e)).minZoom&amp;&amp;null!=e.maxZoom&amp;&amp;e.minZoom&gt;e.maxZoom)throw new Error(&quot;maxZoom must be greater than or equal to minZoom&quot;);if(null!=e.minPitch&amp;&amp;null!=e.maxPitch&amp;&amp;e.minPitch&gt;e.maxPitch)throw new Error(&quot;maxPitch must be greater than or equal to minPitch&quot;);if(null!=e.minPitch&amp;&amp;e.minPitch&lt;0)throw new Error(&quot;minPitch must be greater than or equal to 0&quot;);if(null!=e.maxPitch&amp;&amp;e.maxPitch&gt;60)throw new Error(&quot;maxPitch must be less than or equal to 60&quot;);var i=new wn(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies);if(n.call(this,i,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new xi,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},bi,e.locale),this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken),&quot;string&quot;==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error(&quot;Container '&quot;+e.container+&quot;' not found.&quot;)}else{if(!(e.container instanceof wi))throw new Error(&quot;Invalid type: 'container' must be a String or HTMLElement.&quot;);this._container=e.container}if(e.maxBounds&amp;&amp;this.setMaxBounds(e.maxBounds),t.bindAll([&quot;_onWindowOnline&quot;,&quot;_onWindowResize&quot;,&quot;_contextLost&quot;,&quot;_contextRestored&quot;],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error(&quot;Failed to initialize WebGL.&quot;);this.on(&quot;move&quot;,(function(){return r._update(!1)})),this.on(&quot;moveend&quot;,(function(){return r._update(!1)})),this.on(&quot;zoom&quot;,(function(){return r._update(!0)})),void 0!==t.window&amp;&amp;(t.window.addEventListener(&quot;online&quot;,this._onWindowOnline,!1),t.window.addEventListener(&quot;resize&quot;,this._onWindowResize,!1)),this.handlers=new gi(this,e),this._hash=e.hash&amp;&amp;new kn(&quot;string&quot;==typeof e.hash&amp;&amp;e.hash||void 0).addTo(this),this._hash&amp;&amp;this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&amp;&amp;(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&amp;&amp;this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&amp;&amp;this.addControl(new vi({customAttribution:e.customAttribution})),this.addControl(new yi,e.logoPosition),this.on(&quot;style.load&quot;,(function(){r.transform.unmodified&amp;&amp;r.jumpTo(r.style.stylesheet)})),this.on(&quot;data&quot;,(function(e){r._update(&quot;style&quot;===e.dataType),r.fire(new t.Event(e.dataType+&quot;data&quot;,e))})),this.on(&quot;dataloading&quot;,(function(e){r.fire(new t.Event(e.dataType+&quot;dataloading&quot;,e))}))}n&amp;&amp;(i.__proto__=n),(i.prototype=Object.create(n&amp;&amp;n.prototype)).constructor=i;var a={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return i.prototype._getMapId=function(){return this._mapId},i.prototype.addControl=function(e,r){if(void 0===r&amp;&amp;e.getDefaultPosition&amp;&amp;(r=e.getDefaultPosition()),void 0===r&amp;&amp;(r=&quot;top-right&quot;),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.&quot;)));var n=e.onAdd(this);this._controls.push(e);var i=this._controlPositions[r];return-1!==r.indexOf(&quot;bottom&quot;)?i.insertBefore(n,i.firstChild):i.appendChild(n),this},i.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.&quot;)));var r=this._controls.indexOf(e);return r&gt;-1&amp;&amp;this._controls.splice(r,1),e.onRemove(this),this},i.prototype.resize=function(e){var r=this._containerDimensions(),n=r[0],i=r[1];this._resizeCanvas(n,i),this.transform.resize(n,i),this.painter.resize(n,i);var a=!this._moving;return a&amp;&amp;(this.stop(),this.fire(new t.Event(&quot;movestart&quot;,e)).fire(new t.Event(&quot;move&quot;,e))),this.fire(new t.Event(&quot;resize&quot;,e)),a&amp;&amp;this.fire(new t.Event(&quot;moveend&quot;,e)),this},i.prototype.getBounds=function(){return this.transform.getBounds()},i.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},i.prototype.setMaxBounds=function(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()},i.prototype.setMinZoom=function(t){if((t=null==t?-2:t)&gt;=-2&amp;&amp;t&lt;=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()&lt;t&amp;&amp;this.setZoom(t),this;throw new Error(&quot;minZoom must be between -2 and the current maxZoom, inclusive&quot;)},i.prototype.getMinZoom=function(){return this.transform.minZoom},i.prototype.setMaxZoom=function(t){if((t=null==t?22:t)&gt;=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()&gt;t&amp;&amp;this.setZoom(t),this;throw new Error(&quot;maxZoom must be greater than the current minZoom&quot;)},i.prototype.getMaxZoom=function(){return this.transform.maxZoom},i.prototype.setMinPitch=function(t){if((t=null==t?0:t)&lt;0)throw new Error(&quot;minPitch must be greater than or equal to 0&quot;);if(t&gt;=0&amp;&amp;t&lt;=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()&lt;t&amp;&amp;this.setPitch(t),this;throw new Error(&quot;minPitch must be between 0 and the current maxPitch, inclusive&quot;)},i.prototype.getMinPitch=function(){return this.transform.minPitch},i.prototype.setMaxPitch=function(t){if((t=null==t?60:t)&gt;60)throw new Error(&quot;maxPitch must be less than or equal to 60&quot;);if(t&gt;=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()&gt;t&amp;&amp;this.setPitch(t),this;throw new Error(&quot;maxPitch must be greater than the current minPitch&quot;)},i.prototype.getMaxPitch=function(){return this.transform.maxPitch},i.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},i.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},i.prototype.project=function(e){return this.transform.locationPoint(t.LngLat.convert(e))},i.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},i.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},i.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},i.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},i.prototype._createDelegatedListener=function(t,e,r){var n,i=this;if(&quot;mouseenter&quot;===t||&quot;mouseover&quot;===t){var a=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){var o=i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[];o.length?a||(a=!0,r.call(i,new zn(t,i,n.originalEvent,{features:o}))):a=!1},mouseout:function(){a=!1}}}}if(&quot;mouseleave&quot;===t||&quot;mouseout&quot;===t){var o=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){(i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[]).length?o=!0:o&amp;&amp;(o=!1,r.call(i,new zn(t,i,n.originalEvent)))},mouseout:function(e){o&amp;&amp;(o=!1,r.call(i,new zn(t,i,e.originalEvent)))}}}}return{layer:e,listener:r,delegates:(n={},n[t]=function(t){var n=i.getLayer(e)?i.queryRenderedFeatures(t.point,{layers:[e]}):[];n.length&amp;&amp;(t.features=n,r.call(i,t),delete t.features)},n)}},i.prototype.on=function(t,e,r){if(void 0===r)return n.prototype.on.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(i),i.delegates)this.on(a,i.delegates[a]);return this},i.prototype.once=function(t,e,r){if(void 0===r)return n.prototype.once.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in i.delegates)this.once(a,i.delegates[a]);return this},i.prototype.off=function(t,e,r){var i=this;return void 0===r?n.prototype.off.call(this,t,e):(this._delegatedListeners&amp;&amp;this._delegatedListeners[t]&amp;&amp;function(n){for(var a=n[t],o=0;o&lt;a.length;o++){var s=a[o];if(s.layer===e&amp;&amp;s.listener===r){for(var l in s.delegates)i.off(l,s.delegates[l]);return a.splice(o,1),i}}}(this._delegatedListeners),this)},i.prototype.queryRenderedFeatures=function(e,r){if(!this.style)return[];var n;if(void 0!==r||void 0===e||e instanceof t.Point||Array.isArray(e)||(r=e,e=void 0),r=r||{},(e=e||[[0,0],[this.transform.width,this.transform.height]])instanceof t.Point||&quot;number&quot;==typeof e[0])n=[t.Point.convert(e)];else{var i=t.Point.convert(e[0]),a=t.Point.convert(e[1]);n=[i,new t.Point(a.x,i.y),a,new t.Point(i.x,a.y),i]}return this.style.queryRenderedFeatures(n,r,this.transform)},i.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},i.prototype.setStyle=function(e,r){return!1!==(r=t.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},r)).diff&amp;&amp;r.localIdeographFontFamily===this._localIdeographFontFamily&amp;&amp;this.style&amp;&amp;e?(this._diffStyle(e,r),this):(this._localIdeographFontFamily=r.localIdeographFontFamily,this._updateStyle(e,r))},i.prototype._getUIString=function(t){var e=this._locale[t];if(null==e)throw new Error(&quot;Missing UI string '&quot;+t+&quot;'&quot;);return e},i.prototype._updateStyle=function(t,e){return this.style&amp;&amp;(this.style.setEventedParent(null),this.style._remove()),t?(this.style=new qe(this,e||{}),this.style.setEventedParent(this,{style:this.style}),&quot;string&quot;==typeof t?this.style.loadURL(t):this.style.loadJSON(t),this):(delete this.style,this)},i.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new qe(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},i.prototype._diffStyle=function(e,r){var n=this;if(&quot;string&quot;==typeof e){var i=this._requestManager.normalizeStyleURL(e),a=this._requestManager.transformRequest(i,t.ResourceType.Style);t.getJSON(a,(function(e,i){e?n.fire(new t.ErrorEvent(e)):i&amp;&amp;n._updateDiff(i,r)}))}else&quot;object&quot;==typeof e&amp;&amp;this._updateDiff(e,r)},i.prototype._updateDiff=function(e,r){try{this.style.setState(e)&amp;&amp;this._update(!0)}catch(n){t.warnOnce(&quot;Unable to perform style diff: &quot;+(n.message||n.error||n)+&quot;.  Rebuilding the style from scratch.&quot;),this._updateStyle(e,r)}},i.prototype.getStyle=function(){if(this.style)return this.style.serialize()},i.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():t.warnOnce(&quot;There is no style added to the map.&quot;)},i.prototype.addSource=function(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)},i.prototype.isSourceLoaded=function(e){var r=this.style&amp;&amp;this.style.sourceCaches[e];if(void 0!==r)return r.loaded();this.fire(new t.ErrorEvent(new Error(&quot;There is no source with ID '&quot;+e+&quot;'&quot;)))},i.prototype.areTilesLoaded=function(){var t=this.style&amp;&amp;this.style.sourceCaches;for(var e in t){var r=t[e]._tiles;for(var n in r){var i=r[n];if(&quot;loaded&quot;!==i.state&amp;&amp;&quot;errored&quot;!==i.state)return!1}}return!0},i.prototype.addSourceType=function(t,e,r){return this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,r)},i.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0)},i.prototype.getSource=function(t){return this.style.getSource(t)},i.prototype.addImage=function(e,r,n){void 0===n&amp;&amp;(n={});var i=n.pixelRatio;void 0===i&amp;&amp;(i=1);var a=n.sdf;void 0===a&amp;&amp;(a=!1);var o=n.stretchX,s=n.stretchY,l=n.content;if(this._lazyInitEmptyStyle(),r instanceof _i||Ti&amp;&amp;r instanceof Ti){var c=t.browser.getImageData(r);this.style.addImage(e,{data:new t.RGBAImage({width:c.width,height:c.height},c.data),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:0})}else{if(void 0===r.width||void 0===r.height)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`&quot;)));var u=r;this.style.addImage(e,{data:new t.RGBAImage({width:r.width,height:r.height},new Uint8Array(r.data)),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:0,userImage:u}),u.onAdd&amp;&amp;u.onAdd(this,e)}},i.prototype.updateImage=function(e,r){var n=this.style.getImage(e);if(!n)return this.fire(new t.ErrorEvent(new Error(&quot;The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.&quot;)));var i=r instanceof _i||Ti&amp;&amp;r instanceof Ti?t.browser.getImageData(r):r,a=i.width,o=i.height,s=i.data;return void 0===a||void 0===o?this.fire(new t.ErrorEvent(new Error(&quot;Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`&quot;))):a!==n.data.width||o!==n.data.height?this.fire(new t.ErrorEvent(new Error(&quot;The width and height of the updated image must be that same as the previous version of the image&quot;))):(n.data.replace(s,!(r instanceof _i||Ti&amp;&amp;r instanceof Ti)),void this.style.updateImage(e,n))},i.prototype.hasImage=function(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error(&quot;Missing required image id&quot;))),!1)},i.prototype.removeImage=function(t){this.style.removeImage(t)},i.prototype.loadImage=function(e,r){t.getImage(this._requestManager.transformRequest(e,t.ResourceType.Image),r)},i.prototype.listImages=function(){return this.style.listImages()},i.prototype.addLayer=function(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)},i.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0)},i.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0)},i.prototype.getLayer=function(t){return this.style.getLayer(t)},i.prototype.setLayerZoomRange=function(t,e,r){return this.style.setLayerZoomRange(t,e,r),this._update(!0)},i.prototype.setFilter=function(t,e,r){return void 0===r&amp;&amp;(r={}),this.style.setFilter(t,e,r),this._update(!0)},i.prototype.getFilter=function(t){return this.style.getFilter(t)},i.prototype.setPaintProperty=function(t,e,r,n){return void 0===n&amp;&amp;(n={}),this.style.setPaintProperty(t,e,r,n),this._update(!0)},i.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},i.prototype.setLayoutProperty=function(t,e,r,n){return void 0===n&amp;&amp;(n={}),this.style.setLayoutProperty(t,e,r,n),this._update(!0)},i.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},i.prototype.setLight=function(t,e){return void 0===e&amp;&amp;(e={}),this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)},i.prototype.getLight=function(){return this.style.getLight()},i.prototype.setFeatureState=function(t,e){return this.style.setFeatureState(t,e),this._update()},i.prototype.removeFeatureState=function(t,e){return this.style.removeFeatureState(t,e),this._update()},i.prototype.getFeatureState=function(t){return this.style.getFeatureState(t)},i.prototype.getContainer=function(){return this._container},i.prototype.getCanvasContainer=function(){return this._canvasContainer},i.prototype.getCanvas=function(){return this._canvas},i.prototype._containerDimensions=function(){var t=0,e=0;return this._container&amp;&amp;(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]},i.prototype._detectMissingCSS=function(){&quot;rgb(250, 128, 114)&quot;!==t.window.getComputedStyle(this._missingCSSCanary).getPropertyValue(&quot;background-color&quot;)&amp;&amp;t.warnOnce(&quot;This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.&quot;)},i.prototype._setupContainer=function(){var t=this._container;t.classList.add(&quot;mapboxgl-map&quot;),(this._missingCSSCanary=r.create(&quot;div&quot;,&quot;mapboxgl-canary&quot;,t)).style.visibility=&quot;hidden&quot;,this._detectMissingCSS();var e=this._canvasContainer=r.create(&quot;div&quot;,&quot;mapboxgl-canvas-container&quot;,t);this._interactive&amp;&amp;e.classList.add(&quot;mapboxgl-interactive&quot;),this._canvas=r.create(&quot;canvas&quot;,&quot;mapboxgl-canvas&quot;,e),this._canvas.addEventListener(&quot;webglcontextlost&quot;,this._contextLost,!1),this._canvas.addEventListener(&quot;webglcontextrestored&quot;,this._contextRestored,!1),this._canvas.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),this._canvas.setAttribute(&quot;aria-label&quot;,&quot;Map&quot;);var n=this._containerDimensions();this._resizeCanvas(n[0],n[1]);var i=this._controlContainer=r.create(&quot;div&quot;,&quot;mapboxgl-control-container&quot;,t),a=this._controlPositions={};[&quot;top-left&quot;,&quot;top-right&quot;,&quot;bottom-left&quot;,&quot;bottom-right&quot;].forEach((function(t){a[t]=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl-&quot;+t,i)}))},i.prototype._resizeCanvas=function(e,r){var n=t.browser.devicePixelRatio||1;this._canvas.width=n*e,this._canvas.height=n*r,this._canvas.style.width=e+&quot;px&quot;,this._canvas.style.height=r+&quot;px&quot;},i.prototype._setupPainter=function(){var r=t.extend({},e.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),n=this._canvas.getContext(&quot;webgl&quot;,r)||this._canvas.getContext(&quot;experimental-webgl&quot;,r);n?(this.painter=new yn(n,this.transform),t.webpSupported.testSupport(n)):this.fire(new t.ErrorEvent(new Error(&quot;Failed to initialize WebGL&quot;)))},i.prototype._contextLost=function(e){e.preventDefault(),this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this.fire(new t.Event(&quot;webglcontextlost&quot;,{originalEvent:e}))},i.prototype._contextRestored=function(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event(&quot;webglcontextrestored&quot;,{originalEvent:e}))},i.prototype.loaded=function(){return!this._styleDirty&amp;&amp;!this._sourcesDirty&amp;&amp;!!this.style&amp;&amp;this.style.loaded()},i.prototype._update=function(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this},i.prototype._requestRenderFrame=function(t){return this._update(),this._renderTaskQueue.add(t)},i.prototype._cancelRenderFrame=function(t){this._renderTaskQueue.remove(t)},i.prototype._render=function(e){var r,n=this,i=0,a=this.painter.context.extTimerQuery;if(this.listens(&quot;gpu-timing-frame&quot;)&amp;&amp;(r=a.createQueryEXT(),a.beginQueryEXT(a.TIME_ELAPSED_EXT,r),i=t.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),!this._removed){var o=!1;if(this.style&amp;&amp;this._styleDirty){this._styleDirty=!1;var s=this.transform.zoom,l=t.browser.now();this.style.zoomHistory.update(s,l);var c=new t.EvaluationParameters(s,{now:l,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),u=c.crossFadingFactor();1===u&amp;&amp;u===this._crossFadingFactor||(o=!0,this._crossFadingFactor=u),this.style.update(c)}if(this.style&amp;&amp;this._sourcesDirty&amp;&amp;(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&amp;&amp;this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens(&quot;gpu-timing-layer&quot;)}),this.fire(new t.Event(&quot;render&quot;)),this.loaded()&amp;&amp;!this._loaded&amp;&amp;(this._loaded=!0,this.fire(new t.Event(&quot;load&quot;))),this.style&amp;&amp;(this.style.hasTransitions()||o)&amp;&amp;(this._styleDirty=!0),this.style&amp;&amp;!this._placementDirty&amp;&amp;this.style._releaseSymbolFadeTiles(),this.listens(&quot;gpu-timing-frame&quot;)){var f=t.browser.now()-i;a.endQueryEXT(a.TIME_ELAPSED_EXT,r),setTimeout((function(){var e=a.getQueryObjectEXT(r,a.QUERY_RESULT_EXT)/1e6;a.deleteQueryEXT(r),n.fire(new t.Event(&quot;gpu-timing-frame&quot;,{cpuTime:f,gpuTime:e}))}),50)}if(this.listens(&quot;gpu-timing-layer&quot;)){var h=this.painter.collectGpuTimers();setTimeout((function(){var e=n.painter.queryGpuTimers(h);n.fire(new t.Event(&quot;gpu-timing-layer&quot;,{layerTimes:e}))}),50)}return this._sourcesDirty||this._styleDirty||this._placementDirty||this._repaint?this.triggerRepaint():!this.isMoving()&amp;&amp;this.loaded()&amp;&amp;(this._fullyLoaded||(this._fullyLoaded=!0),this.fire(new t.Event(&quot;idle&quot;))),this}},i.prototype.remove=function(){this._hash&amp;&amp;this._hash.remove();for(var e=0,r=this._controls;e&lt;r.length;e+=1)r[e].onRemove(this);this._controls=[],this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),void 0!==t.window&amp;&amp;(t.window.removeEventListener(&quot;resize&quot;,this._onWindowResize,!1),t.window.removeEventListener(&quot;online&quot;,this._onWindowOnline,!1));var n=this.painter.context.gl.getExtension(&quot;WEBGL_lose_context&quot;);n&amp;&amp;n.loseContext(),Ai(this._canvasContainer),Ai(this._controlContainer),Ai(this._missingCSSCanary),this._container.classList.remove(&quot;mapboxgl-map&quot;),this._removed=!0,this.fire(new t.Event(&quot;remove&quot;))},i.prototype.triggerRepaint=function(){var e=this;this.style&amp;&amp;!this._frame&amp;&amp;(this._frame=t.browser.frame((function(t){e._frame=null,e._render(t)})))},i.prototype._onWindowOnline=function(){this._update()},i.prototype._onWindowResize=function(t){this._trackResize&amp;&amp;this.resize({originalEvent:t})._update()},a.showTileBoundaries.get=function(){return!!this._showTileBoundaries},a.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&amp;&amp;(this._showTileBoundaries=t,this._update())},a.showPadding.get=function(){return!!this._showPadding},a.showPadding.set=function(t){this._showPadding!==t&amp;&amp;(this._showPadding=t,this._update())},a.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},a.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&amp;&amp;(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())},a.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},a.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&amp;&amp;(this._showOverdrawInspector=t,this._update())},a.repaint.get=function(){return!!this._repaint},a.repaint.set=function(t){this._repaint!==t&amp;&amp;(this._repaint=t,this.triggerRepaint())},a.vertices.get=function(){return!!this._vertices},a.vertices.set=function(t){this._vertices=t,this._update()},i.prototype._setCacheLimits=function(e,r){t.setCacheLimits(e,r)},a.version.get=function(){return t.version},Object.defineProperties(i.prototype,a),i}(mi);function Ai(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)}var Si={showCompass:!0,showZoom:!0,visualizePitch:!1},Ei=function(e){var n=this;this.options=t.extend({},Si,e),this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),this._container.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault()})),this.options.showZoom&amp;&amp;(t.bindAll([&quot;_setButtonTitle&quot;,&quot;_updateZoomButtons&quot;],this),this._zoomInButton=this._createButton(&quot;mapboxgl-ctrl-zoom-in&quot;,(function(t){return n._map.zoomIn({},{originalEvent:t})})),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._zoomInButton).setAttribute(&quot;aria-hidden&quot;,!0),this._zoomOutButton=this._createButton(&quot;mapboxgl-ctrl-zoom-out&quot;,(function(t){return n._map.zoomOut({},{originalEvent:t})})),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._zoomOutButton).setAttribute(&quot;aria-hidden&quot;,!0)),this.options.showCompass&amp;&amp;(t.bindAll([&quot;_rotateCompassArrow&quot;],this),this._compass=this._createButton(&quot;mapboxgl-ctrl-compass&quot;,(function(t){n.options.visualizePitch?n._map.resetNorthPitch({},{originalEvent:t}):n._map.resetNorth({},{originalEvent:t})})),this._compassIcon=r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._compass),this._compassIcon.setAttribute(&quot;aria-hidden&quot;,!0))};Ei.prototype._updateZoomButtons=function(){var t=this._map.getZoom();this._zoomInButton.disabled=t===this._map.getMaxZoom(),this._zoomOutButton.disabled=t===this._map.getMinZoom()},Ei.prototype._rotateCompassArrow=function(){var t=this.options.visualizePitch?&quot;scale(&quot;+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+&quot;) rotateX(&quot;+this._map.transform.pitch+&quot;deg) rotateZ(&quot;+this._map.transform.angle*(180/Math.PI)+&quot;deg)&quot;:&quot;rotate(&quot;+this._map.transform.angle*(180/Math.PI)+&quot;deg)&quot;;this._compassIcon.style.transform=t},Ei.prototype.onAdd=function(t){return this._map=t,this.options.showZoom&amp;&amp;(this._setButtonTitle(this._zoomInButton,&quot;ZoomIn&quot;),this._setButtonTitle(this._zoomOutButton,&quot;ZoomOut&quot;),this._map.on(&quot;zoom&quot;,this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&amp;&amp;(this._setButtonTitle(this._compass,&quot;ResetBearing&quot;),this.options.visualizePitch&amp;&amp;this._map.on(&quot;pitch&quot;,this._rotateCompassArrow),this._map.on(&quot;rotate&quot;,this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Ci(this._map,this._compass,this.options.visualizePitch)),this._container},Ei.prototype.onRemove=function(){r.remove(this._container),this.options.showZoom&amp;&amp;this._map.off(&quot;zoom&quot;,this._updateZoomButtons),this.options.showCompass&amp;&amp;(this.options.visualizePitch&amp;&amp;this._map.off(&quot;pitch&quot;,this._rotateCompassArrow),this._map.off(&quot;rotate&quot;,this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map},Ei.prototype._createButton=function(t,e){var n=r.create(&quot;button&quot;,t,this._container);return n.type=&quot;button&quot;,n.addEventListener(&quot;click&quot;,e),n},Ei.prototype._setButtonTitle=function(t,e){var r=this._map._getUIString(&quot;NavigationControl.&quot;+e);t.title=r,t.setAttribute(&quot;aria-label&quot;,r)};var Ci=function(e,n,i){void 0===i&amp;&amp;(i=!1),this._clickTolerance=10,this.element=n,this.mouseRotate=new Gn({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,i&amp;&amp;(this.mousePitch=new Yn({clickTolerance:e.dragRotate._mousePitch._clickTolerance})),t.bindAll([&quot;mousedown&quot;,&quot;mousemove&quot;,&quot;mouseup&quot;,&quot;touchstart&quot;,&quot;touchmove&quot;,&quot;touchend&quot;,&quot;reset&quot;],this),r.addEventListener(n,&quot;mousedown&quot;,this.mousedown),r.addEventListener(n,&quot;touchstart&quot;,this.touchstart,{passive:!1}),r.addEventListener(n,&quot;touchmove&quot;,this.touchmove),r.addEventListener(n,&quot;touchend&quot;,this.touchend),r.addEventListener(n,&quot;touchcancel&quot;,this.reset)};function Li(e,r,n){if(e=new t.LngLat(e.lng,e.lat),r){var i=new t.LngLat(e.lng-360,e.lat),a=new t.LngLat(e.lng+360,e.lat),o=n.locationPoint(e).distSqr(r);n.locationPoint(i).distSqr(r)&lt;o?e=i:n.locationPoint(a).distSqr(r)&lt;o&amp;&amp;(e=a)}for(;Math.abs(e.lng-n.center.lng)&gt;180;){var s=n.locationPoint(e);if(s.x&gt;=0&amp;&amp;s.y&gt;=0&amp;&amp;s.x&lt;=n.width&amp;&amp;s.y&lt;=n.height)break;e.lng&gt;n.center.lng?e.lng-=360:e.lng+=360}return e}Ci.prototype.down=function(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&amp;&amp;this.mousePitch.mousedown(t,e),r.disableDrag()},Ci.prototype.move=function(t,e){var r=this.map,n=this.mouseRotate.mousemoveWindow(t,e);if(n&amp;&amp;n.bearingDelta&amp;&amp;r.setBearing(r.getBearing()+n.bearingDelta),this.mousePitch){var i=this.mousePitch.mousemoveWindow(t,e);i&amp;&amp;i.pitchDelta&amp;&amp;r.setPitch(r.getPitch()+i.pitchDelta)}},Ci.prototype.off=function(){var t=this.element;r.removeEventListener(t,&quot;mousedown&quot;,this.mousedown),r.removeEventListener(t,&quot;touchstart&quot;,this.touchstart,{passive:!1}),r.removeEventListener(t,&quot;touchmove&quot;,this.touchmove),r.removeEventListener(t,&quot;touchend&quot;,this.touchend),r.removeEventListener(t,&quot;touchcancel&quot;,this.reset),this.offTemp()},Ci.prototype.offTemp=function(){r.enableDrag(),r.removeEventListener(t.window,&quot;mousemove&quot;,this.mousemove),r.removeEventListener(t.window,&quot;mouseup&quot;,this.mouseup)},Ci.prototype.mousedown=function(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:function(){return e.preventDefault()}}),r.mousePos(this.element,e)),r.addEventListener(t.window,&quot;mousemove&quot;,this.mousemove),r.addEventListener(t.window,&quot;mouseup&quot;,this.mouseup)},Ci.prototype.mousemove=function(t){this.move(t,r.mousePos(this.element,t))},Ci.prototype.mouseup=function(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&amp;&amp;this.mousePitch.mouseupWindow(t),this.offTemp()},Ci.prototype.touchstart=function(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.down({type:&quot;mousedown&quot;,button:0,ctrlKey:!0,preventDefault:function(){return t.preventDefault()}},this._startPos))},Ci.prototype.touchmove=function(t){1!==t.targetTouches.length?this.reset():(this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:function(){return t.preventDefault()}},this._lastPos))},Ci.prototype.touchend=function(t){0===t.targetTouches.length&amp;&amp;this._startPos&amp;&amp;this._lastPos&amp;&amp;this._startPos.dist(this._lastPos)&lt;this._clickTolerance&amp;&amp;this.element.click(),this.reset()},Ci.prototype.reset=function(){this.mouseRotate.reset(),this.mousePitch&amp;&amp;this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()};var Ii={center:&quot;translate(-50%,-50%)&quot;,top:&quot;translate(-50%,0)&quot;,&quot;top-left&quot;:&quot;translate(0,0)&quot;,&quot;top-right&quot;:&quot;translate(-100%,0)&quot;,bottom:&quot;translate(-50%,-100%)&quot;,&quot;bottom-left&quot;:&quot;translate(0,-100%)&quot;,&quot;bottom-right&quot;:&quot;translate(-100%,-100%)&quot;,left:&quot;translate(0,-50%)&quot;,right:&quot;translate(-100%,-50%)&quot;};function Pi(t,e,r){var n=t.classList;for(var i in Ii)n.remove(&quot;mapboxgl-&quot;+r+&quot;-anchor-&quot;+i);n.add(&quot;mapboxgl-&quot;+r+&quot;-anchor-&quot;+e)}var zi,Oi=function(e){function n(n,i){var a=this;if(e.call(this),(n instanceof t.window.HTMLElement||i)&amp;&amp;(n=t.extend({element:n},i)),t.bindAll([&quot;_update&quot;,&quot;_onMove&quot;,&quot;_onUp&quot;,&quot;_addDragHandler&quot;,&quot;_onMapClick&quot;,&quot;_onKeyPress&quot;],this),this._anchor=n&amp;&amp;n.anchor||&quot;center&quot;,this._color=n&amp;&amp;n.color||&quot;#3FB1CE&quot;,this._draggable=n&amp;&amp;n.draggable||!1,this._state=&quot;inactive&quot;,this._rotation=n&amp;&amp;n.rotation||0,this._rotationAlignment=n&amp;&amp;n.rotationAlignment||&quot;auto&quot;,this._pitchAlignment=n&amp;&amp;n.pitchAlignment&amp;&amp;&quot;auto&quot;!==n.pitchAlignment?n.pitchAlignment:this._rotationAlignment,n&amp;&amp;n.element)this._element=n.element,this._offset=t.Point.convert(n&amp;&amp;n.offset||[0,0]);else{this._defaultMarker=!0,this._element=r.create(&quot;div&quot;),this._element.setAttribute(&quot;aria-label&quot;,&quot;Map marker&quot;);var o=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);o.setAttributeNS(null,&quot;display&quot;,&quot;block&quot;),o.setAttributeNS(null,&quot;height&quot;,&quot;41px&quot;),o.setAttributeNS(null,&quot;width&quot;,&quot;27px&quot;),o.setAttributeNS(null,&quot;viewBox&quot;,&quot;0 0 27 41&quot;);var s=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);s.setAttributeNS(null,&quot;stroke&quot;,&quot;none&quot;),s.setAttributeNS(null,&quot;stroke-width&quot;,&quot;1&quot;),s.setAttributeNS(null,&quot;fill&quot;,&quot;none&quot;),s.setAttributeNS(null,&quot;fill-rule&quot;,&quot;evenodd&quot;);var l=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);l.setAttributeNS(null,&quot;fill-rule&quot;,&quot;nonzero&quot;);var c=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);c.setAttributeNS(null,&quot;transform&quot;,&quot;translate(3.0, 29.0)&quot;),c.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;);for(var u=0,f=[{rx:&quot;10.5&quot;,ry:&quot;5.25002273&quot;},{rx:&quot;10.5&quot;,ry:&quot;5.25002273&quot;},{rx:&quot;9.5&quot;,ry:&quot;4.77275007&quot;},{rx:&quot;8.5&quot;,ry:&quot;4.29549936&quot;},{rx:&quot;7.5&quot;,ry:&quot;3.81822308&quot;},{rx:&quot;6.5&quot;,ry:&quot;3.34094679&quot;},{rx:&quot;5.5&quot;,ry:&quot;2.86367051&quot;},{rx:&quot;4.5&quot;,ry:&quot;2.38636864&quot;}];u&lt;f.length;u+=1){var h=f[u],p=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;ellipse&quot;);p.setAttributeNS(null,&quot;opacity&quot;,&quot;0.04&quot;),p.setAttributeNS(null,&quot;cx&quot;,&quot;10.5&quot;),p.setAttributeNS(null,&quot;cy&quot;,&quot;5.80029008&quot;),p.setAttributeNS(null,&quot;rx&quot;,h.rx),p.setAttributeNS(null,&quot;ry&quot;,h.ry),c.appendChild(p)}var d=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);d.setAttributeNS(null,&quot;fill&quot;,this._color);var g=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;path&quot;);g.setAttributeNS(null,&quot;d&quot;,&quot;M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z&quot;),d.appendChild(g);var m=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);m.setAttributeNS(null,&quot;opacity&quot;,&quot;0.25&quot;),m.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;);var v=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;path&quot;);v.setAttributeNS(null,&quot;d&quot;,&quot;M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z&quot;),m.appendChild(v);var y=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);y.setAttributeNS(null,&quot;transform&quot;,&quot;translate(6.0, 7.0)&quot;),y.setAttributeNS(null,&quot;fill&quot;,&quot;#FFFFFF&quot;);var x=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);x.setAttributeNS(null,&quot;transform&quot;,&quot;translate(8.0, 8.0)&quot;);var b=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;circle&quot;);b.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;),b.setAttributeNS(null,&quot;opacity&quot;,&quot;0.25&quot;),b.setAttributeNS(null,&quot;cx&quot;,&quot;5.5&quot;),b.setAttributeNS(null,&quot;cy&quot;,&quot;5.5&quot;),b.setAttributeNS(null,&quot;r&quot;,&quot;5.4999962&quot;);var _=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;circle&quot;);_.setAttributeNS(null,&quot;fill&quot;,&quot;#FFFFFF&quot;),_.setAttributeNS(null,&quot;cx&quot;,&quot;5.5&quot;),_.setAttributeNS(null,&quot;cy&quot;,&quot;5.5&quot;),_.setAttributeNS(null,&quot;r&quot;,&quot;5.4999962&quot;),x.appendChild(b),x.appendChild(_),l.appendChild(c),l.appendChild(d),l.appendChild(m),l.appendChild(y),l.appendChild(x),o.appendChild(l),this._element.appendChild(o),this._offset=t.Point.convert(n&amp;&amp;n.offset||[0,-14])}this._element.classList.add(&quot;mapboxgl-marker&quot;),this._element.addEventListener(&quot;dragstart&quot;,(function(t){t.preventDefault()})),this._element.addEventListener(&quot;mousedown&quot;,(function(t){t.preventDefault()})),this._element.addEventListener(&quot;focus&quot;,(function(){var t=a._map.getContainer();t.scrollTop=0,t.scrollLeft=0})),Pi(this._element,this._anchor,&quot;marker&quot;),this._popup=null}return e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n,n.prototype.addTo=function(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on(&quot;move&quot;,this._update),t.on(&quot;moveend&quot;,this._update),this.setDraggable(this._draggable),this._update(),this._map.on(&quot;click&quot;,this._onMapClick),this},n.prototype.remove=function(){return this._map&amp;&amp;(this._map.off(&quot;click&quot;,this._onMapClick),this._map.off(&quot;move&quot;,this._update),this._map.off(&quot;moveend&quot;,this._update),this._map.off(&quot;mousedown&quot;,this._addDragHandler),this._map.off(&quot;touchstart&quot;,this._addDragHandler),this._map.off(&quot;mouseup&quot;,this._onUp),this._map.off(&quot;touchend&quot;,this._onUp),this._map.off(&quot;mousemove&quot;,this._onMove),this._map.off(&quot;touchmove&quot;,this._onMove),delete this._map),r.remove(this._element),this._popup&amp;&amp;this._popup.remove(),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._popup&amp;&amp;this._popup.setLngLat(this._lngLat),this._update(),this},n.prototype.getElement=function(){return this._element},n.prototype.setPopup=function(t){if(this._popup&amp;&amp;(this._popup.remove(),this._popup=null,this._element.removeEventListener(&quot;keypress&quot;,this._onKeyPress),this._originalTabIndex||this._element.removeAttribute(&quot;tabindex&quot;)),t){if(!(&quot;offset&quot;in t.options)){var e=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],&quot;top-left&quot;:[0,0],&quot;top-right&quot;:[0,0],bottom:[0,-38.1],&quot;bottom-left&quot;:[e,-1*(24.6+e)],&quot;bottom-right&quot;:[-e,-1*(24.6+e)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._lngLat&amp;&amp;this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute(&quot;tabindex&quot;),this._originalTabIndex||this._element.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),this._element.addEventListener(&quot;keypress&quot;,this._onKeyPress)}return this},n.prototype._onKeyPress=function(t){var e=t.code,r=t.charCode||t.keyCode;&quot;Space&quot;!==e&amp;&amp;&quot;Enter&quot;!==e&amp;&amp;32!==r&amp;&amp;13!==r||this.togglePopup()},n.prototype._onMapClick=function(t){var e=t.originalEvent.target,r=this._element;this._popup&amp;&amp;(e===r||r.contains(e))&amp;&amp;this.togglePopup()},n.prototype.getPopup=function(){return this._popup},n.prototype.togglePopup=function(){var t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this},n.prototype._update=function(t){if(this._map){this._map.transform.renderWorldCopies&amp;&amp;(this._lngLat=Li(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);var e=&quot;&quot;;&quot;viewport&quot;===this._rotationAlignment||&quot;auto&quot;===this._rotationAlignment?e=&quot;rotateZ(&quot;+this._rotation+&quot;deg)&quot;:&quot;map&quot;===this._rotationAlignment&amp;&amp;(e=&quot;rotateZ(&quot;+(this._rotation-this._map.getBearing())+&quot;deg)&quot;);var n=&quot;&quot;;&quot;viewport&quot;===this._pitchAlignment||&quot;auto&quot;===this._pitchAlignment?n=&quot;rotateX(0deg)&quot;:&quot;map&quot;===this._pitchAlignment&amp;&amp;(n=&quot;rotateX(&quot;+this._map.getPitch()+&quot;deg)&quot;),t&amp;&amp;&quot;moveend&quot;!==t.type||(this._pos=this._pos.round()),r.setTransform(this._element,Ii[this._anchor]+&quot; translate(&quot;+this._pos.x+&quot;px, &quot;+this._pos.y+&quot;px) &quot;+n+&quot; &quot;+e)}},n.prototype.getOffset=function(){return this._offset},n.prototype.setOffset=function(e){return this._offset=t.Point.convert(e),this._update(),this},n.prototype._onMove=function(e){this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents=&quot;none&quot;,&quot;pending&quot;===this._state&amp;&amp;(this._state=&quot;active&quot;,this.fire(new t.Event(&quot;dragstart&quot;))),this.fire(new t.Event(&quot;drag&quot;))},n.prototype._onUp=function(){this._element.style.pointerEvents=&quot;auto&quot;,this._positionDelta=null,this._map.off(&quot;mousemove&quot;,this._onMove),this._map.off(&quot;touchmove&quot;,this._onMove),&quot;active&quot;===this._state&amp;&amp;this.fire(new t.Event(&quot;dragend&quot;)),this._state=&quot;inactive&quot;},n.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&amp;&amp;(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._state=&quot;pending&quot;,this._map.on(&quot;mousemove&quot;,this._onMove),this._map.on(&quot;touchmove&quot;,this._onMove),this._map.once(&quot;mouseup&quot;,this._onUp),this._map.once(&quot;touchend&quot;,this._onUp))},n.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&amp;&amp;(t?(this._map.on(&quot;mousedown&quot;,this._addDragHandler),this._map.on(&quot;touchstart&quot;,this._addDragHandler)):(this._map.off(&quot;mousedown&quot;,this._addDragHandler),this._map.off(&quot;touchstart&quot;,this._addDragHandler))),this},n.prototype.isDraggable=function(){return this._draggable},n.prototype.setRotation=function(t){return this._rotation=t||0,this._update(),this},n.prototype.getRotation=function(){return this._rotation},n.prototype.setRotationAlignment=function(t){return this._rotationAlignment=t||&quot;auto&quot;,this._update(),this},n.prototype.getRotationAlignment=function(){return this._rotationAlignment},n.prototype.setPitchAlignment=function(t){return this._pitchAlignment=t&amp;&amp;&quot;auto&quot;!==t?t:this._rotationAlignment,this._update(),this},n.prototype.getPitchAlignment=function(){return this._pitchAlignment},n}(t.Evented),Di={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Ri=0,Fi=!1,Bi=function(e){function n(r){e.call(this),this.options=t.extend({},Di,r),t.bindAll([&quot;_onSuccess&quot;,&quot;_onError&quot;,&quot;_onZoom&quot;,&quot;_finish&quot;,&quot;_setupUI&quot;,&quot;_updateCamera&quot;,&quot;_updateMarker&quot;],this)}return e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n,n.prototype.onAdd=function(e){var n;return this._map=e,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),n=this._setupUI,void 0!==zi?n(zi):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:&quot;geolocation&quot;}).then((function(t){n(zi=&quot;denied&quot;!==t.state)})):n(zi=!!t.window.navigator.geolocation),this._container},n.prototype.onRemove=function(){void 0!==this._geolocationWatchID&amp;&amp;(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&amp;&amp;this._userLocationDotMarker&amp;&amp;this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&amp;&amp;this._accuracyCircleMarker&amp;&amp;this._accuracyCircleMarker.remove(),r.remove(this._container),this._map.off(&quot;zoom&quot;,this._onZoom),this._map=void 0,Ri=0,Fi=!1},n.prototype._isOutOfMapMaxBounds=function(t){var e=this._map.getMaxBounds(),r=t.coords;return e&amp;&amp;(r.longitude&lt;e.getWest()||r.longitude&gt;e.getEast()||r.latitude&lt;e.getSouth()||r.latitude&gt;e.getNorth())},n.prototype._setErrorState=function(){switch(this._watchState){case&quot;WAITING_ACTIVE&quot;:this._watchState=&quot;ACTIVE_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;);break;case&quot;ACTIVE_LOCK&quot;:this._watchState=&quot;ACTIVE_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;);break;case&quot;BACKGROUND&quot;:this._watchState=&quot;BACKGROUND_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;)}},n.prototype._onSuccess=function(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event(&quot;outofmaxbounds&quot;,e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case&quot;WAITING_ACTIVE&quot;:case&quot;ACTIVE_LOCK&quot;:case&quot;ACTIVE_ERROR&quot;:this._watchState=&quot;ACTIVE_LOCK&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;BACKGROUND&quot;:case&quot;BACKGROUND_ERROR&quot;:this._watchState=&quot;BACKGROUND&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;)}this.options.showUserLocation&amp;&amp;&quot;OFF&quot;!==this._watchState&amp;&amp;this._updateMarker(e),this.options.trackUserLocation&amp;&amp;&quot;ACTIVE_LOCK&quot;!==this._watchState||this._updateCamera(e),this.options.showUserLocation&amp;&amp;this._dotElement.classList.remove(&quot;mapboxgl-user-location-dot-stale&quot;),this.fire(new t.Event(&quot;geolocate&quot;,e)),this._finish()}},n.prototype._updateCamera=function(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude),n=e.coords.accuracy,i=this._map.getBearing(),a=t.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(r.toBounds(n),a,{geolocateSource:!0})},n.prototype._updateMarker=function(e){if(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&amp;&amp;this.options.showAccuracyCircle&amp;&amp;this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},n.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),r=this._map.unproject([1,t]),n=e.distanceTo(r),i=Math.ceil(2*this._accuracy/n);this._circleElement.style.width=i+&quot;px&quot;,this._circleElement.style.height=i+&quot;px&quot;},n.prototype._onZoom=function(){this.options.showUserLocation&amp;&amp;this.options.showAccuracyCircle&amp;&amp;this._updateCircleRadius()},n.prototype._onError=function(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState=&quot;OFF&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.disabled=!0;var r=this._map._getUIString(&quot;GeolocateControl.LocationNotAvailable&quot;);this._geolocateButton.title=r,this._geolocateButton.setAttribute(&quot;aria-label&quot;,r),void 0!==this._geolocationWatchID&amp;&amp;this._clearWatch()}else{if(3===e.code&amp;&amp;Fi)return;this._setErrorState()}&quot;OFF&quot;!==this._watchState&amp;&amp;this.options.showUserLocation&amp;&amp;this._dotElement.classList.add(&quot;mapboxgl-user-location-dot-stale&quot;),this.fire(new t.Event(&quot;error&quot;,e)),this._finish()}},n.prototype._finish=function(){this._timeoutId&amp;&amp;clearTimeout(this._timeoutId),this._timeoutId=void 0},n.prototype._setupUI=function(e){var n=this;if(this._container.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault()})),this._geolocateButton=r.create(&quot;button&quot;,&quot;mapboxgl-ctrl-geolocate&quot;,this._container),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._geolocateButton).setAttribute(&quot;aria-hidden&quot;,!0),this._geolocateButton.type=&quot;button&quot;,!1===e){t.warnOnce(&quot;Geolocation support is not available so the GeolocateControl will be disabled.&quot;);var i=this._map._getUIString(&quot;GeolocateControl.LocationNotAvailable&quot;);this._geolocateButton.disabled=!0,this._geolocateButton.title=i,this._geolocateButton.setAttribute(&quot;aria-label&quot;,i)}else{var a=this._map._getUIString(&quot;GeolocateControl.FindMyLocation&quot;);this._geolocateButton.title=a,this._geolocateButton.setAttribute(&quot;aria-label&quot;,a)}this.options.trackUserLocation&amp;&amp;(this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;false&quot;),this._watchState=&quot;OFF&quot;),this.options.showUserLocation&amp;&amp;(this._dotElement=r.create(&quot;div&quot;,&quot;mapboxgl-user-location-dot&quot;),this._userLocationDotMarker=new Oi(this._dotElement),this._circleElement=r.create(&quot;div&quot;,&quot;mapboxgl-user-location-accuracy-circle&quot;),this._accuracyCircleMarker=new Oi({element:this._circleElement,pitchAlignment:&quot;map&quot;}),this.options.trackUserLocation&amp;&amp;(this._watchState=&quot;OFF&quot;),this._map.on(&quot;zoom&quot;,this._onZoom)),this._geolocateButton.addEventListener(&quot;click&quot;,this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&amp;&amp;this._map.on(&quot;movestart&quot;,(function(e){e.geolocateSource||&quot;ACTIVE_LOCK&quot;!==n._watchState||e.originalEvent&amp;&amp;&quot;resize&quot;===e.originalEvent.type||(n._watchState=&quot;BACKGROUND&quot;,n._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;),n._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),n.fire(new t.Event(&quot;trackuserlocationend&quot;)))}))},n.prototype.trigger=function(){if(!this._setup)return t.warnOnce(&quot;Geolocate control triggered before added to a map&quot;),!1;if(this.options.trackUserLocation){switch(this._watchState){case&quot;OFF&quot;:this._watchState=&quot;WAITING_ACTIVE&quot;,this.fire(new t.Event(&quot;trackuserlocationstart&quot;));break;case&quot;WAITING_ACTIVE&quot;:case&quot;ACTIVE_LOCK&quot;:case&quot;ACTIVE_ERROR&quot;:case&quot;BACKGROUND_ERROR&quot;:Ri--,Fi=!1,this._watchState=&quot;OFF&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this.fire(new t.Event(&quot;trackuserlocationend&quot;));break;case&quot;BACKGROUND&quot;:this._watchState=&quot;ACTIVE_LOCK&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._lastKnownPosition&amp;&amp;this._updateCamera(this._lastKnownPosition),this.fire(new t.Event(&quot;trackuserlocationstart&quot;))}switch(this._watchState){case&quot;WAITING_ACTIVE&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;ACTIVE_LOCK&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;ACTIVE_ERROR&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;);break;case&quot;BACKGROUND&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;);break;case&quot;BACKGROUND_ERROR&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background-error&quot;)}if(&quot;OFF&quot;===this._watchState&amp;&amp;void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var e;this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;true&quot;),++Ri&gt;1?(e={maximumAge:6e5,timeout:0},Fi=!0):(e=this.options.positionOptions,Fi=!1),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},n.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;false&quot;),this.options.showUserLocation&amp;&amp;this._updateMarker(null)},n}(t.Evented),Ni={maxWidth:100,unit:&quot;metric&quot;},ji=function(e){this.options=t.extend({},Ni,e),t.bindAll([&quot;_onMove&quot;,&quot;setUnit&quot;],this)};function Ui(t,e,r){var n=r&amp;&amp;r.maxWidth||100,i=t._container.clientHeight/2,a=t.unproject([0,i]),o=t.unproject([n,i]),s=a.distanceTo(o);if(r&amp;&amp;&quot;imperial&quot;===r.unit){var l=3.2808*s;l&gt;5280?Vi(e,n,l/5280,t._getUIString(&quot;ScaleControl.Miles&quot;)):Vi(e,n,l,t._getUIString(&quot;ScaleControl.Feet&quot;))}else r&amp;&amp;&quot;nautical&quot;===r.unit?Vi(e,n,s/1852,t._getUIString(&quot;ScaleControl.NauticalMiles&quot;)):s&gt;=1e3?Vi(e,n,s/1e3,t._getUIString(&quot;ScaleControl.Kilometers&quot;)):Vi(e,n,s,t._getUIString(&quot;ScaleControl.Meters&quot;))}function Vi(t,e,r,n){var i,a,o,s=(i=r,(a=Math.pow(10,(&quot;&quot;+Math.floor(i)).length-1))*(o=(o=i/a)&gt;=10?10:o&gt;=5?5:o&gt;=3?3:o&gt;=2?2:o&gt;=1?1:function(t){var e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(o)));t.style.width=e*(s/r)+&quot;px&quot;,t.innerHTML=s+&quot;&amp;nbsp;&quot;+n}ji.prototype.getDefaultPosition=function(){return&quot;bottom-left&quot;},ji.prototype._onMove=function(){Ui(this._map,this._container,this.options)},ji.prototype.onAdd=function(t){return this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-scale&quot;,t.getContainer()),this._map.on(&quot;move&quot;,this._onMove),this._onMove(),this._container},ji.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;move&quot;,this._onMove),this._map=void 0},ji.prototype.setUnit=function(t){this.options.unit=t,Ui(this._map,this._container,this.options)};var qi=function(e){this._fullscreen=!1,e&amp;&amp;e.container&amp;&amp;(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce(&quot;Full screen control 'container' must be a DOM element.&quot;)),t.bindAll([&quot;_onClickFullscreen&quot;,&quot;_changeIcon&quot;],this),&quot;onfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;fullscreenchange&quot;:&quot;onmozfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;mozfullscreenchange&quot;:&quot;onwebkitfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;webkitfullscreenchange&quot;:&quot;onmsfullscreenchange&quot;in t.window.document&amp;&amp;(this._fullscreenchange=&quot;MSFullscreenChange&quot;)};qi.prototype.onAdd=function(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display=&quot;none&quot;,t.warnOnce(&quot;This device does not support fullscreen mode.&quot;)),this._controlContainer},qi.prototype.onRemove=function(){r.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},qi.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},qi.prototype._setupUI=function(){var e=this._fullscreenButton=r.create(&quot;button&quot;,&quot;mapboxgl-ctrl-fullscreen&quot;,this._controlContainer);r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,e).setAttribute(&quot;aria-hidden&quot;,!0),e.type=&quot;button&quot;,this._updateTitle(),this._fullscreenButton.addEventListener(&quot;click&quot;,this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},qi.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute(&quot;aria-label&quot;,t),this._fullscreenButton.title=t},qi.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?&quot;FullscreenControl.Exit&quot;:&quot;FullscreenControl.Enter&quot;)},qi.prototype._isFullscreen=function(){return this._fullscreen},qi.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._container!==this._fullscreen&amp;&amp;(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle(&quot;mapboxgl-ctrl-shrink&quot;),this._fullscreenButton.classList.toggle(&quot;mapboxgl-ctrl-fullscreen&quot;),this._updateTitle())},qi.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&amp;&amp;t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&amp;&amp;this._container.webkitRequestFullscreen()};var Hi={closeButton:!0,closeOnClick:!0,className:&quot;&quot;,maxWidth:&quot;240px&quot;},Gi=function(e){function n(r){e.call(this),this.options=t.extend(Object.create(Hi),r),t.bindAll([&quot;_update&quot;,&quot;_onClose&quot;,&quot;remove&quot;,&quot;_onMouseMove&quot;,&quot;_onMouseUp&quot;,&quot;_onDrag&quot;],this)}return e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n,n.prototype.addTo=function(e){return this._map&amp;&amp;this.remove(),this._map=e,this.options.closeOnClick&amp;&amp;this._map.on(&quot;click&quot;,this._onClose),this.options.closeOnMove&amp;&amp;this._map.on(&quot;move&quot;,this._onClose),this._map.on(&quot;remove&quot;,this.remove),this._update(),this._trackPointer?(this._map.on(&quot;mousemove&quot;,this._onMouseMove),this._map.on(&quot;mouseup&quot;,this._onMouseUp),this._container&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.add(&quot;mapboxgl-track-pointer&quot;)):this._map.on(&quot;move&quot;,this._update),this.fire(new t.Event(&quot;open&quot;)),this},n.prototype.isOpen=function(){return!!this._map},n.prototype.remove=function(){return this._content&amp;&amp;r.remove(this._content),this._container&amp;&amp;(r.remove(this._container),delete this._container),this._map&amp;&amp;(this._map.off(&quot;move&quot;,this._update),this._map.off(&quot;move&quot;,this._onClose),this._map.off(&quot;click&quot;,this._onClose),this._map.off(&quot;remove&quot;,this.remove),this._map.off(&quot;mousemove&quot;,this._onMouseMove),this._map.off(&quot;mouseup&quot;,this._onMouseUp),this._map.off(&quot;drag&quot;,this._onDrag),delete this._map),this.fire(new t.Event(&quot;close&quot;)),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&amp;&amp;(this._map.on(&quot;move&quot;,this._update),this._map.off(&quot;mousemove&quot;,this._onMouseMove),this._container&amp;&amp;this._container.classList.remove(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.remove(&quot;mapboxgl-track-pointer&quot;)),this},n.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&amp;&amp;(this._map.off(&quot;move&quot;,this._update),this._map.on(&quot;mousemove&quot;,this._onMouseMove),this._map.on(&quot;drag&quot;,this._onDrag),this._container&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.add(&quot;mapboxgl-track-pointer&quot;)),this},n.prototype.getElement=function(){return this._container},n.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},n.prototype.setHTML=function(e){var r,n=t.window.document.createDocumentFragment(),i=t.window.document.createElement(&quot;body&quot;);for(i.innerHTML=e;r=i.firstChild;)n.appendChild(r);return this.setDOMContent(n)},n.prototype.getMaxWidth=function(){return this._container&amp;&amp;this._container.style.maxWidth},n.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},n.prototype.setDOMContent=function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},n.prototype.addClassName=function(t){this._container&amp;&amp;this._container.classList.add(t)},n.prototype.removeClassName=function(t){this._container&amp;&amp;this._container.classList.remove(t)},n.prototype.toggleClassName=function(t){if(this._container)return this._container.classList.toggle(t)},n.prototype._createContent=function(){this._content&amp;&amp;r.remove(this._content),this._content=r.create(&quot;div&quot;,&quot;mapboxgl-popup-content&quot;,this._container),this.options.closeButton&amp;&amp;(this._closeButton=r.create(&quot;button&quot;,&quot;mapboxgl-popup-close-button&quot;,this._content),this._closeButton.type=&quot;button&quot;,this._closeButton.setAttribute(&quot;aria-label&quot;,&quot;Close popup&quot;),this._closeButton.innerHTML=&quot;&amp;#215;&quot;,this._closeButton.addEventListener(&quot;click&quot;,this._onClose))},n.prototype._onMouseUp=function(t){this._update(t.point)},n.prototype._onMouseMove=function(t){this._update(t.point)},n.prototype._onDrag=function(t){this._update(t.point)},n.prototype._update=function(e){var n=this;if(this._map&amp;&amp;(this._lngLat||this._trackPointer)&amp;&amp;this._content&amp;&amp;(this._container||(this._container=r.create(&quot;div&quot;,&quot;mapboxgl-popup&quot;,this._map.getContainer()),this._tip=r.create(&quot;div&quot;,&quot;mapboxgl-popup-tip&quot;,this._container),this._container.appendChild(this._content),this.options.className&amp;&amp;this.options.className.split(&quot; &quot;).forEach((function(t){return n._container.classList.add(t)})),this._trackPointer&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;)),this.options.maxWidth&amp;&amp;this._container.style.maxWidth!==this.options.maxWidth&amp;&amp;(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&amp;&amp;!this._trackPointer&amp;&amp;(this._lngLat=Li(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||e)){var i=this._pos=this._trackPointer&amp;&amp;e?e:this._map.project(this._lngLat),a=this.options.anchor,o=function e(r){if(r){if(&quot;number&quot;==typeof r){var n=Math.round(Math.sqrt(.5*Math.pow(r,2)));return{center:new t.Point(0,0),top:new t.Point(0,r),&quot;top-left&quot;:new t.Point(n,n),&quot;top-right&quot;:new t.Point(-n,n),bottom:new t.Point(0,-r),&quot;bottom-left&quot;:new t.Point(n,-n),&quot;bottom-right&quot;:new t.Point(-n,-n),left:new t.Point(r,0),right:new t.Point(-r,0)}}if(r instanceof t.Point||Array.isArray(r)){var i=t.Point.convert(r);return{center:i,top:i,&quot;top-left&quot;:i,&quot;top-right&quot;:i,bottom:i,&quot;bottom-left&quot;:i,&quot;bottom-right&quot;:i,left:i,right:i}}return{center:t.Point.convert(r.center||[0,0]),top:t.Point.convert(r.top||[0,0]),&quot;top-left&quot;:t.Point.convert(r[&quot;top-left&quot;]||[0,0]),&quot;top-right&quot;:t.Point.convert(r[&quot;top-right&quot;]||[0,0]),bottom:t.Point.convert(r.bottom||[0,0]),&quot;bottom-left&quot;:t.Point.convert(r[&quot;bottom-left&quot;]||[0,0]),&quot;bottom-right&quot;:t.Point.convert(r[&quot;bottom-right&quot;]||[0,0]),left:t.Point.convert(r.left||[0,0]),right:t.Point.convert(r.right||[0,0])}}return e(new t.Point(0,0))}(this.options.offset);if(!a){var s,l=this._container.offsetWidth,c=this._container.offsetHeight;s=i.y+o.bottom.y&lt;c?[&quot;top&quot;]:i.y&gt;this._map.transform.height-c?[&quot;bottom&quot;]:[],i.x&lt;l/2?s.push(&quot;left&quot;):i.x&gt;this._map.transform.width-l/2&amp;&amp;s.push(&quot;right&quot;),a=0===s.length?&quot;bottom&quot;:s.join(&quot;-&quot;)}var u=i.add(o[a]).round();r.setTransform(this._container,Ii[a]+&quot; translate(&quot;+u.x+&quot;px,&quot;+u.y+&quot;px)&quot;),Pi(this._container,a,&quot;popup&quot;)}},n.prototype._onClose=function(){this.remove()},n}(t.Evented),Yi={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:Mi,NavigationControl:Ei,GeolocateControl:Bi,AttributionControl:vi,ScaleControl:ji,FullscreenControl:qi,Popup:Gi,Marker:Oi,Style:qe,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,config:t.config,prewarm:function(){Bt().acquire(Ot)},clearPrewarmedResources:function(){var t=Rt;t&amp;&amp;(t.isPreloaded()&amp;&amp;1===t.numActive()?(t.release(Ot),Rt=null):console.warn(&quot;Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()&quot;))},get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return Dt.workerCount},set workerCount(t){Dt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage:function(e){t.clearTileCache(e)},workerUrl:&quot;&quot;};return Yi})),r}))},{}],474:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=1&lt;&lt;t+1,r=new Array(e),n=0;n&lt;e;++n)r[n]=a(t,n);return r};var n=t(&quot;convex-hull&quot;);function i(t,e,r){for(var n=new Array(t),i=0;i&lt;t;++i)n[i]=0,i===e&amp;&amp;(n[i]+=.5),i===r&amp;&amp;(n[i]+=.5);return n}function a(t,e){if(0===e||e===(1&lt;&lt;t+1)-1)return[];for(var r=[],a=[],o=0;o&lt;=t;++o)if(e&amp;1&lt;&lt;o){r.push(i(t,o-1,o-1)),a.push(null);for(var s=0;s&lt;=t;++s)~e&amp;1&lt;&lt;s&amp;&amp;(r.push(i(t,o-1,s-1)),a.push([o,s]))}var l=n(r),c=[];t:for(o=0;o&lt;l.length;++o){var u=l[o],f=[];for(s=0;s&lt;u.length;++s){if(!a[u[s]])continue t;f.push(a[u[s]].slice())}c.push(f)}return c}},{&quot;convex-hull&quot;:135}],475:[function(t,e,r){var n=t(&quot;./normalize&quot;),i=t(&quot;gl-mat4/create&quot;),a=t(&quot;gl-mat4/clone&quot;),o=t(&quot;gl-mat4/determinant&quot;),s=t(&quot;gl-mat4/invert&quot;),l=t(&quot;gl-mat4/transpose&quot;),c={length:t(&quot;gl-vec3/length&quot;),normalize:t(&quot;gl-vec3/normalize&quot;),dot:t(&quot;gl-vec3/dot&quot;),cross:t(&quot;gl-vec3/cross&quot;)},u=i(),f=i(),h=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],d=[0,0,0];function g(t,e,r,n,i){t[0]=e[0]*n+r[0]*i,t[1]=e[1]*n+r[1]*i,t[2]=e[2]*n+r[2]*i}e.exports=function(t,e,r,i,m,v){if(e||(e=[0,0,0]),r||(r=[0,0,0]),i||(i=[0,0,0]),m||(m=[0,0,0,1]),v||(v=[0,0,0,1]),!n(u,t))return!1;if(a(f,u),f[3]=0,f[7]=0,f[11]=0,f[15]=1,Math.abs(o(f)&lt;1e-8))return!1;var y,x,b,_,w,T,k,M=u[3],A=u[7],S=u[11],E=u[12],C=u[13],L=u[14],I=u[15];if(0!==M||0!==A||0!==S){if(h[0]=M,h[1]=A,h[2]=S,h[3]=I,!s(f,f))return!1;l(f,f),y=m,b=f,_=(x=h)[0],w=x[1],T=x[2],k=x[3],y[0]=b[0]*_+b[4]*w+b[8]*T+b[12]*k,y[1]=b[1]*_+b[5]*w+b[9]*T+b[13]*k,y[2]=b[2]*_+b[6]*w+b[10]*T+b[14]*k,y[3]=b[3]*_+b[7]*w+b[11]*T+b[15]*k}else m[0]=m[1]=m[2]=0,m[3]=1;if(e[0]=E,e[1]=C,e[2]=L,function(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}(p,u),r[0]=c.length(p[0]),c.normalize(p[0],p[0]),i[0]=c.dot(p[0],p[1]),g(p[1],p[1],p[0],1,-i[0]),r[1]=c.length(p[1]),c.normalize(p[1],p[1]),i[0]/=r[1],i[1]=c.dot(p[0],p[2]),g(p[2],p[2],p[0],1,-i[1]),i[2]=c.dot(p[1],p[2]),g(p[2],p[2],p[1],1,-i[2]),r[2]=c.length(p[2]),c.normalize(p[2],p[2]),i[1]/=r[2],i[2]/=r[2],c.cross(d,p[1],p[2]),c.dot(p[0],d)&lt;0)for(var P=0;P&lt;3;P++)r[P]*=-1,p[P][0]*=-1,p[P][1]*=-1,p[P][2]*=-1;return v[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),v[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),v[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),v[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]&gt;p[1][2]&amp;&amp;(v[0]=-v[0]),p[0][2]&gt;p[2][0]&amp;&amp;(v[1]=-v[1]),p[1][0]&gt;p[0][1]&amp;&amp;(v[2]=-v[2]),!0}},{&quot;./normalize&quot;:476,&quot;gl-mat4/clone&quot;:278,&quot;gl-mat4/create&quot;:280,&quot;gl-mat4/determinant&quot;:281,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/transpose&quot;:306,&quot;gl-vec3/cross&quot;:365,&quot;gl-vec3/dot&quot;:370,&quot;gl-vec3/length&quot;:380,&quot;gl-vec3/normalize&quot;:387}],476:[function(t,e,r){e.exports=function(t,e){var r=e[15];if(0===r)return!1;for(var n=1/r,i=0;i&lt;16;i++)t[i]=e[i]*n;return!0}},{}],477:[function(t,e,r){var n=t(&quot;gl-vec3/lerp&quot;),i=t(&quot;mat4-recompose&quot;),a=t(&quot;mat4-decompose&quot;),o=t(&quot;gl-mat4/determinant&quot;),s=t(&quot;quat-slerp&quot;),l=f(),c=f(),u=f();function f(){return{translate:h(),scale:h(1),skew:h(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function h(t){return[t||0,t||0,t||0]}e.exports=function(t,e,r,f){if(0===o(e)||0===o(r))return!1;var h=a(e,l.translate,l.scale,l.skew,l.perspective,l.quaternion),p=a(r,c.translate,c.scale,c.skew,c.perspective,c.quaternion);return!(!h||!p)&amp;&amp;(n(u.translate,l.translate,c.translate,f),n(u.skew,l.skew,c.skew,f),n(u.scale,l.scale,c.scale,f),n(u.perspective,l.perspective,c.perspective,f),s(u.quaternion,l.quaternion,c.quaternion,f),i(t,u.translate,u.scale,u.skew,u.perspective,u.quaternion),!0)}},{&quot;gl-mat4/determinant&quot;:281,&quot;gl-vec3/lerp&quot;:381,&quot;mat4-decompose&quot;:475,&quot;mat4-recompose&quot;:478,&quot;quat-slerp&quot;:527}],478:[function(t,e,r){var n={identity:t(&quot;gl-mat4/identity&quot;),translate:t(&quot;gl-mat4/translate&quot;),multiply:t(&quot;gl-mat4/multiply&quot;),create:t(&quot;gl-mat4/create&quot;),scale:t(&quot;gl-mat4/scale&quot;),fromRotationTranslation:t(&quot;gl-mat4/fromRotationTranslation&quot;)},i=(n.create(),n.create());e.exports=function(t,e,r,a,o,s){return n.identity(t),n.fromRotationTranslation(t,s,e),t[3]=o[0],t[7]=o[1],t[11]=o[2],t[15]=o[3],n.identity(i),0!==a[2]&amp;&amp;(i[9]=a[2],n.multiply(t,t,i)),0!==a[1]&amp;&amp;(i[9]=0,i[8]=a[1],n.multiply(t,t,i)),0!==a[0]&amp;&amp;(i[8]=0,i[4]=a[0],n.multiply(t,t,i)),n.scale(t,t,r),t}},{&quot;gl-mat4/create&quot;:280,&quot;gl-mat4/fromRotationTranslation&quot;:284,&quot;gl-mat4/identity&quot;:291,&quot;gl-mat4/multiply&quot;:295,&quot;gl-mat4/scale&quot;:303,&quot;gl-mat4/translate&quot;:305}],479:[function(t,e,r){&quot;use strict&quot;;e.exports=Math.log2||function(t){return Math.log(t)*Math.LOG2E}},{}],480:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;mat4-interpolate&quot;),a=t(&quot;gl-mat4/invert&quot;),o=t(&quot;gl-mat4/rotateX&quot;),s=t(&quot;gl-mat4/rotateY&quot;),l=t(&quot;gl-mat4/rotateZ&quot;),c=t(&quot;gl-mat4/lookAt&quot;),u=t(&quot;gl-mat4/translate&quot;),f=(t(&quot;gl-mat4/scale&quot;),t(&quot;gl-vec3/normalize&quot;)),h=[0,0,0];function p(t){this._components=t.slice(),this._time=[0],this.prevMatrix=t.slice(),this.nextMatrix=t.slice(),this.computedMatrix=t.slice(),this.computedInverse=t.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}e.exports=function(t){return new p((t=t||{}).matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};var d=p.prototype;d.recalcMatrix=function(t){var e=this._time,r=n.le(e,t),o=this.computedMatrix;if(!(r&lt;0)){var s=this._components;if(r===e.length-1)for(var l=16*r,c=0;c&lt;16;++c)o[c]=s[l++];else{var u=e[r+1]-e[r],h=(l=16*r,this.prevMatrix),p=!0;for(c=0;c&lt;16;++c)h[c]=s[l++];var d=this.nextMatrix;for(c=0;c&lt;16;++c)d[c]=s[l++],p=p&amp;&amp;h[c]===d[c];if(u&lt;1e-6||p)for(c=0;c&lt;16;++c)o[c]=h[c];else i(o,h,d,(t-e[r])/u)}var g=this.computedUp;g[0]=o[1],g[1]=o[5],g[2]=o[9],f(g,g);var m=this.computedInverse;a(m,o);var v=this.computedEye,y=m[15];v[0]=m[12]/y,v[1]=m[13]/y,v[2]=m[14]/y;var x=this.computedCenter,b=Math.exp(this.computedRadius[0]);for(c=0;c&lt;3;++c)x[c]=v[c]-o[2+4*c]*b}},d.idle=function(t){if(!(t&lt;this.lastT())){for(var e=this._components,r=e.length-16,n=0;n&lt;16;++n)e.push(e[r++]);this._time.push(t)}},d.flush=function(t){var e=n.gt(this._time,t)-2;e&lt;0||(this._time.splice(0,e),this._components.splice(0,16*e))},d.lastT=function(){return this._time[this._time.length-1]},d.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||h,n=n||this.computedUp,this.setMatrix(t,c(this.computedMatrix,e,r,n));for(var i=0,a=0;a&lt;3;++a)i+=Math.pow(r[a]-e[a],2);i=Math.log(Math.sqrt(i)),this.computedRadius[0]=i},d.rotate=function(t,e,r,n){this.recalcMatrix(t);var i=this.computedInverse;e&amp;&amp;s(i,i,e),r&amp;&amp;o(i,i,r),n&amp;&amp;l(i,i,n),this.setMatrix(t,a(this.computedMatrix,i))};var g=[0,0,0];d.pan=function(t,e,r,n){g[0]=-(e||0),g[1]=-(r||0),g[2]=-(n||0),this.recalcMatrix(t);var i=this.computedInverse;u(i,i,g),this.setMatrix(t,a(i,i))},d.translate=function(t,e,r,n){g[0]=e||0,g[1]=r||0,g[2]=n||0,this.recalcMatrix(t);var i=this.computedMatrix;u(i,i,g),this.setMatrix(t,i)},d.setMatrix=function(t,e){if(!(t&lt;this.lastT())){this._time.push(t);for(var r=0;r&lt;16;++r)this._components.push(e[r])}},d.setDistance=function(t,e){this.computedRadius[0]=e},d.setDistanceLimits=function(t,e){var r=this._limits;r[0]=t,r[1]=e},d.getDistanceLimits=function(t){var e=this._limits;return t?(t[0]=e[0],t[1]=e[1],t):e}},{&quot;binary-search-bounds&quot;:481,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/lookAt&quot;:294,&quot;gl-mat4/rotateX&quot;:300,&quot;gl-mat4/rotateY&quot;:301,&quot;gl-mat4/rotateZ&quot;:302,&quot;gl-mat4/scale&quot;:303,&quot;gl-mat4/translate&quot;:305,&quot;gl-vec3/normalize&quot;:387,&quot;mat4-interpolate&quot;:477}],481:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],482:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(e&lt;3){for(var r=new Array(e),i=0;i&lt;e;++i)r[i]=i;return 2===e&amp;&amp;t[0][0]===t[1][0]&amp;&amp;t[0][1]===t[1][1]?[0]:r}var a=new Array(e);for(i=0;i&lt;e;++i)a[i]=i;a.sort((function(e,r){var n=t[e][0]-t[r][0];return n||t[e][1]-t[r][1]}));var o=[a[0],a[1]],s=[a[0],a[1]];for(i=2;i&lt;e;++i){for(var l=a[i],c=t[l],u=o.length;u&gt;1&amp;&amp;n(t[o[u-2]],t[o[u-1]],c)&lt;=0;)u-=1,o.pop();for(o.push(l),u=s.length;u&gt;1&amp;&amp;n(t[s[u-2]],t[s[u-1]],c)&gt;=0;)u-=1,s.pop();s.push(l)}r=new Array(s.length+o.length-2);for(var f=0,h=(i=0,o.length);i&lt;h;++i)r[f++]=o[i];for(var p=s.length-2;p&gt;0;--p)r[f++]=s[p];return r};var n=t(&quot;robust-orientation&quot;)[3]},{&quot;robust-orientation&quot;:548}],483:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e||(e=t,t=window);var r=0,i=0,a=0,o={shift:!1,alt:!1,control:!1,meta:!1},s=!1;function l(t){var e=!1;return&quot;altKey&quot;in t&amp;&amp;(e=e||t.altKey!==o.alt,o.alt=!!t.altKey),&quot;shiftKey&quot;in t&amp;&amp;(e=e||t.shiftKey!==o.shift,o.shift=!!t.shiftKey),&quot;ctrlKey&quot;in t&amp;&amp;(e=e||t.ctrlKey!==o.control,o.control=!!t.ctrlKey),&quot;metaKey&quot;in t&amp;&amp;(e=e||t.metaKey!==o.meta,o.meta=!!t.metaKey),e}function c(t,s){var c=n.x(s),u=n.y(s);&quot;buttons&quot;in s&amp;&amp;(t=0|s.buttons),(t!==r||c!==i||u!==a||l(s))&amp;&amp;(r=0|t,i=c||0,a=u||0,e&amp;&amp;e(r,i,a,o))}function u(t){c(0,t)}function f(){(r||i||a||o.shift||o.alt||o.meta||o.control)&amp;&amp;(i=a=0,r=0,o.shift=o.alt=o.control=o.meta=!1,e&amp;&amp;e(0,0,0,o))}function h(t){l(t)&amp;&amp;e&amp;&amp;e(r,i,a,o)}function p(t){0===n.buttons(t)?c(0,t):c(r,t)}function d(t){c(r|n.buttons(t),t)}function g(t){c(r&amp;~n.buttons(t),t)}function m(){s||(s=!0,t.addEventListener(&quot;mousemove&quot;,p),t.addEventListener(&quot;mousedown&quot;,d),t.addEventListener(&quot;mouseup&quot;,g),t.addEventListener(&quot;mouseleave&quot;,u),t.addEventListener(&quot;mouseenter&quot;,u),t.addEventListener(&quot;mouseout&quot;,u),t.addEventListener(&quot;mouseover&quot;,u),t.addEventListener(&quot;blur&quot;,f),t.addEventListener(&quot;keyup&quot;,h),t.addEventListener(&quot;keydown&quot;,h),t.addEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.addEventListener(&quot;blur&quot;,f),window.addEventListener(&quot;keyup&quot;,h),window.addEventListener(&quot;keydown&quot;,h),window.addEventListener(&quot;keypress&quot;,h)))}m();var v={element:t};return Object.defineProperties(v,{enabled:{get:function(){return s},set:function(e){e?m():function(){if(!s)return;s=!1,t.removeEventListener(&quot;mousemove&quot;,p),t.removeEventListener(&quot;mousedown&quot;,d),t.removeEventListener(&quot;mouseup&quot;,g),t.removeEventListener(&quot;mouseleave&quot;,u),t.removeEventListener(&quot;mouseenter&quot;,u),t.removeEventListener(&quot;mouseout&quot;,u),t.removeEventListener(&quot;mouseover&quot;,u),t.removeEventListener(&quot;blur&quot;,f),t.removeEventListener(&quot;keyup&quot;,h),t.removeEventListener(&quot;keydown&quot;,h),t.removeEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.removeEventListener(&quot;blur&quot;,f),window.removeEventListener(&quot;keyup&quot;,h),window.removeEventListener(&quot;keydown&quot;,h),window.removeEventListener(&quot;keypress&quot;,h))}()},enumerable:!0},buttons:{get:function(){return r},enumerable:!0},x:{get:function(){return i},enumerable:!0},y:{get:function(){return a},enumerable:!0},mods:{get:function(){return o},enumerable:!0}}),v};var n=t(&quot;mouse-event&quot;)},{&quot;mouse-event&quot;:485}],484:[function(t,e,r){var n={left:0,top:0};e.exports=function(t,e,r){e=e||t.currentTarget||t.srcElement,Array.isArray(r)||(r=[0,0]);var i=t.clientX||0,a=t.clientY||0,o=(s=e,s===window||s===document||s===document.body?n:s.getBoundingClientRect());var s;return r[0]=i-o.left,r[1]=a-o.top,r}},{}],485:[function(t,e,r){&quot;use strict&quot;;function n(t){return t.target||t.srcElement||window}r.buttons=function(t){if(&quot;object&quot;==typeof t){if(&quot;buttons&quot;in t)return t.buttons;if(&quot;which&quot;in t){if(2===(e=t.which))return 4;if(3===e)return 2;if(e&gt;0)return 1&lt;&lt;e-1}else if(&quot;button&quot;in t){var e;if(1===(e=t.button))return 4;if(2===e)return 2;if(e&gt;=0)return 1&lt;&lt;e}}return 0},r.element=n,r.x=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetX&quot;in t)return t.offsetX;var e=n(t).getBoundingClientRect();return t.clientX-e.left}return 0},r.y=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetY&quot;in t)return t.offsetY;var e=n(t).getBoundingClientRect();return t.clientY-e.top}return 0}},{}],486:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;to-px&quot;);e.exports=function(t,e,r){&quot;function&quot;==typeof t&amp;&amp;(r=!!e,e=t,t=window);var i=n(&quot;ex&quot;,t),a=function(t){r&amp;&amp;t.preventDefault();var n=t.deltaX||0,a=t.deltaY||0,o=t.deltaZ||0,s=1;switch(t.deltaMode){case 1:s=i;break;case 2:s=window.innerHeight}if(a*=s,o*=s,(n*=s)||a||o)return e(n,a,o,t)};return t.addEventListener(&quot;wheel&quot;,a),a}},{&quot;to-px&quot;:578}],487:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;);function i(t){return&quot;a&quot;+t}function a(t){return&quot;d&quot;+t}function o(t,e){return&quot;c&quot;+t+&quot;_&quot;+e}function s(t){return&quot;s&quot;+t}function l(t,e){return&quot;t&quot;+t+&quot;_&quot;+e}function c(t){return&quot;o&quot;+t}function u(t){return&quot;x&quot;+t}function f(t){return&quot;p&quot;+t}function h(t,e){return&quot;d&quot;+t+&quot;_&quot;+e}function p(t){return&quot;i&quot;+t}function d(t,e){return&quot;u&quot;+t+&quot;_&quot;+e}function g(t){return&quot;b&quot;+t}function m(t){return&quot;y&quot;+t}function v(t){return&quot;e&quot;+t}function y(t){return&quot;v&quot;+t}e.exports=function(t){function e(t){throw new Error(&quot;ndarray-extract-contour: &quot;+t)}&quot;object&quot;!=typeof t&amp;&amp;e(&quot;Must specify arguments&quot;);var r=t.order;Array.isArray(r)||e(&quot;Must specify order&quot;);var b=t.arrayArguments||1;b&lt;1&amp;&amp;e(&quot;Must have at least one array argument&quot;);var _=t.scalarArguments||0;_&lt;0&amp;&amp;e(&quot;Scalar arg count must be &gt; 0&quot;);&quot;function&quot;!=typeof t.vertex&amp;&amp;e(&quot;Must specify vertex creation function&quot;);&quot;function&quot;!=typeof t.cell&amp;&amp;e(&quot;Must specify cell creation function&quot;);&quot;function&quot;!=typeof t.phase&amp;&amp;e(&quot;Must specify phase function&quot;);for(var w=t.getters||[],T=new Array(b),k=0;k&lt;b;++k)w.indexOf(k)&gt;=0?T[k]=!0:T[k]=!1;return function(t,e,r,b,_,w){var T=w.length,k=_.length;if(k&lt;2)throw new Error(&quot;ndarray-extract-contour: Dimension must be at least 2&quot;);for(var M=&quot;extractContour&quot;+_.join(&quot;_&quot;),A=[],S=[],E=[],C=0;C&lt;T;++C)E.push(i(C));for(C=0;C&lt;b;++C)E.push(u(C));for(C=0;C&lt;k;++C)S.push(s(C)+&quot;=&quot;+i(0)+&quot;.shape[&quot;+C+&quot;]|0&quot;);for(C=0;C&lt;T;++C){S.push(a(C)+&quot;=&quot;+i(C)+&quot;.data&quot;,c(C)+&quot;=&quot;+i(C)+&quot;.offset|0&quot;);for(var L=0;L&lt;k;++L)S.push(l(C,L)+&quot;=&quot;+i(C)+&quot;.stride[&quot;+L+&quot;]|0&quot;)}for(C=0;C&lt;T;++C){S.push(f(C)+&quot;=&quot;+c(C)),S.push(o(C,0));for(L=1;L&lt;1&lt;&lt;k;++L){for(var I=[],P=0;P&lt;k;++P)L&amp;1&lt;&lt;P&amp;&amp;I.push(&quot;-&quot;+l(C,P));S.push(h(C,L)+&quot;=(&quot;+I.join(&quot;&quot;)+&quot;)|0&quot;),S.push(o(C,L)+&quot;=0&quot;)}}for(C=0;C&lt;T;++C)for(L=0;L&lt;k;++L){var z=[l(C,_[L])];L&gt;0&amp;&amp;z.push(l(C,_[L-1])+&quot;*&quot;+s(_[L-1])),S.push(d(C,_[L])+&quot;=(&quot;+z.join(&quot;-&quot;)+&quot;)|0&quot;)}for(C=0;C&lt;k;++C)S.push(p(C)+&quot;=0&quot;);S.push(&quot;N=0&quot;);var O=[&quot;2&quot;];for(C=k-2;C&gt;=0;--C)O.push(s(_[C]));S.push(&quot;Q=(&quot;+O.join(&quot;*&quot;)+&quot;)|0&quot;,&quot;P=mallocUint32(Q)&quot;,&quot;V=mallocUint32(Q)&quot;,&quot;X=0&quot;),S.push(g(0)+&quot;=0&quot;);for(L=1;L&lt;1&lt;&lt;k;++L){var D=[],R=[];for(P=0;P&lt;k;++P)L&amp;1&lt;&lt;P&amp;&amp;(0===R.length?D.push(&quot;1&quot;):D.unshift(R.join(&quot;*&quot;))),R.push(s(_[P]));var F=&quot;&quot;;D[0].indexOf(s(_[k-2]))&lt;0&amp;&amp;(F=&quot;-&quot;);var B=x(k,L,_);S.push(v(B)+&quot;=(-&quot;+D.join(&quot;-&quot;)+&quot;)|0&quot;,m(B)+&quot;=(&quot;+F+D.join(&quot;-&quot;)+&quot;)|0&quot;,g(B)+&quot;=0&quot;)}function N(t,e){A.push(&quot;for(&quot;,p(_[t]),&quot;=&quot;,e,&quot;;&quot;,p(_[t]),&quot;&lt;&quot;,s(_[t]),&quot;;&quot;,&quot;++&quot;,p(_[t]),&quot;){&quot;)}function j(t){for(var e=0;e&lt;T;++e)A.push(f(e),&quot;+=&quot;,d(e,_[t]),&quot;;&quot;);A.push(&quot;}&quot;)}function U(){for(var t=1;t&lt;1&lt;&lt;k;++t)A.push(&quot;T&quot;,&quot;=&quot;,v(t),&quot;;&quot;,v(t),&quot;=&quot;,m(t),&quot;;&quot;,m(t),&quot;=&quot;,&quot;T&quot;,&quot;;&quot;)}S.push(y(0)+&quot;=0&quot;,&quot;T=0&quot;),function t(e,r){if(e&lt;0)!function(t){for(var e=0;e&lt;T;++e)w[e]?A.push(o(e,0),&quot;=&quot;,a(e),&quot;.get(&quot;,f(e),&quot;);&quot;):A.push(o(e,0),&quot;=&quot;,a(e),&quot;[&quot;,f(e),&quot;];&quot;);var r=[];for(e=0;e&lt;T;++e)r.push(o(e,0));for(e=0;e&lt;b;++e)r.push(u(e));A.push(g(0),&quot;=&quot;,&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;]=phase(&quot;,r.join(),&quot;);&quot;);for(var n=1;n&lt;1&lt;&lt;k;++n)A.push(g(n),&quot;=&quot;,&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;+&quot;,v(n),&quot;];&quot;);var i=[];for(n=1;n&lt;1&lt;&lt;k;++n)i.push(&quot;(&quot;+g(0)+&quot;!==&quot;+g(n)+&quot;)&quot;);A.push(&quot;if(&quot;,i.join(&quot;||&quot;),&quot;){&quot;);var s=[];for(e=0;e&lt;k;++e)s.push(p(e));for(e=0;e&lt;T;++e){s.push(o(e,0));for(n=1;n&lt;1&lt;&lt;k;++n)w[e]?A.push(o(e,n),&quot;=&quot;,a(e),&quot;.get(&quot;,f(e),&quot;+&quot;,h(e,n),&quot;);&quot;):A.push(o(e,n),&quot;=&quot;,a(e),&quot;[&quot;,f(e),&quot;+&quot;,h(e,n),&quot;];&quot;),s.push(o(e,n))}for(e=0;e&lt;1&lt;&lt;k;++e)s.push(g(e));for(e=0;e&lt;b;++e)s.push(u(e));A.push(&quot;vertex(&quot;,s.join(),&quot;);&quot;,y(0),&quot;=&quot;,&quot;V&quot;,&quot;[&quot;,&quot;X&quot;,&quot;]=&quot;,&quot;N&quot;,&quot;++;&quot;);var l=(1&lt;&lt;k)-1,c=g(l);for(n=0;n&lt;k;++n)if(0==(t&amp;~(1&lt;&lt;n))){for(var d=l^1&lt;&lt;n,m=g(d),x=[],_=d;_&gt;0;_=_-1&amp;d)x.push(&quot;V[X+&quot;+v(_)+&quot;]&quot;);x.push(y(0));for(_=0;_&lt;T;++_)1&amp;n?x.push(o(_,l),o(_,d)):x.push(o(_,d),o(_,l));1&amp;n?x.push(c,m):x.push(m,c);for(_=0;_&lt;b;++_)x.push(u(_));A.push(&quot;if(&quot;,c,&quot;!==&quot;,m,&quot;){&quot;,&quot;face(&quot;,x.join(),&quot;)}&quot;)}A.push(&quot;}&quot;,&quot;X&quot;,&quot;+=1;&quot;)}(r);else{!function(t){for(var e=t-1;e&gt;=0;--e)N(e,0);var r=[];for(e=0;e&lt;T;++e)w[e]?r.push(a(e)+&quot;.get(&quot;+f(e)+&quot;)&quot;):r.push(a(e)+&quot;[&quot;+f(e)+&quot;]&quot;);for(e=0;e&lt;b;++e)r.push(u(e));for(A.push(&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;++]=phase(&quot;,r.join(),&quot;);&quot;),e=0;e&lt;t;++e)j(e);for(var n=0;n&lt;T;++n)A.push(f(n),&quot;+=&quot;,d(n,_[t]),&quot;;&quot;)}(e),A.push(&quot;if(&quot;,s(_[e]),&quot;&gt;0){&quot;,p(_[e]),&quot;=1;&quot;),t(e-1,r|1&lt;&lt;_[e]);for(var n=0;n&lt;T;++n)A.push(f(n),&quot;+=&quot;,d(n,_[e]),&quot;;&quot;);e===k-1&amp;&amp;(A.push(&quot;X&quot;,&quot;=0;&quot;),U()),N(e,2),t(e-1,r),e===k-1&amp;&amp;(A.push(&quot;if(&quot;,p(_[k-1]),&quot;&amp;1){&quot;,&quot;X&quot;,&quot;=0;}&quot;),U()),j(e),A.push(&quot;}&quot;)}}(k-1,0),A.push(&quot;freeUint32(&quot;,&quot;V&quot;,&quot;);freeUint32(&quot;,&quot;P&quot;,&quot;);&quot;);var V=[&quot;'use strict';&quot;,&quot;function &quot;,M,&quot;(&quot;,E.join(),&quot;){&quot;,&quot;var &quot;,S.join(),&quot;;&quot;,A.join(&quot;&quot;),&quot;}&quot;,&quot;return &quot;,M].join(&quot;&quot;);return new Function(&quot;vertex&quot;,&quot;face&quot;,&quot;phase&quot;,&quot;mallocUint32&quot;,&quot;freeUint32&quot;,V)(t,e,r,n.mallocUint32,n.freeUint32)}(t.vertex,t.cell,t.phase,_,r,T)};function x(t,e,r){for(var n=0,i=0;i&lt;t;++i)e&amp;1&lt;&lt;i&amp;&amp;(n|=1&lt;&lt;r[i]);return n}},{&quot;typedarray-pool&quot;:595}],488:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(Array.isArray(r)){if(r.length!==e.dimension)throw new Error(&quot;ndarray-gradient: invalid boundary conditions&quot;)}else r=n(e.dimension,&quot;string&quot;==typeof r?r:&quot;clamp&quot;);if(t.dimension!==e.dimension+1)throw new Error(&quot;ndarray-gradient: output dimension must be +1 input dimension&quot;);if(t.shape[e.dimension]!==e.dimension)throw new Error(&quot;ndarray-gradient: output shape must match input shape&quot;);for(var i=0;i&lt;e.dimension;++i)if(t.shape[i]!==e.shape[i])throw new Error(&quot;ndarray-gradient: shape mismatch&quot;);if(0===e.size)return t;if(e.dimension&lt;=0)return t.set(0),t;return function(t){var e=t.join();if(v=o[e])return v;var r=t.length,n=[&quot;function gradient(dst,src){var s=src.shape.slice();&quot;];function i(e){for(var i=r-e.length,a=[],o=[],s=[],l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0?s.push(&quot;0&quot;):e.indexOf(-(l+1))&gt;=0?s.push(&quot;s[&quot;+l+&quot;]-1&quot;):(s.push(&quot;-1&quot;),a.push(&quot;1&quot;),o.push(&quot;s[&quot;+l+&quot;]-2&quot;));var c=&quot;.lo(&quot;+a.join()+&quot;).hi(&quot;+o.join()+&quot;)&quot;;if(0===a.length&amp;&amp;(c=&quot;&quot;),i&gt;0){n.push(&quot;if(1&quot;);for(l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0||e.indexOf(-(l+1))&gt;=0||n.push(&quot;&amp;&amp;s[&quot;,l,&quot;]&gt;2&quot;);n.push(&quot;){grad&quot;,i,&quot;(src.pick(&quot;,s.join(),&quot;)&quot;,c);for(l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0||e.indexOf(-(l+1))&gt;=0||n.push(&quot;,dst.pick(&quot;,s.join(),&quot;,&quot;,l,&quot;)&quot;,c);n.push(&quot;);&quot;)}for(l=0;l&lt;e.length;++l){var u=Math.abs(e[l])-1,f=&quot;dst.pick(&quot;+s.join()+&quot;,&quot;+u+&quot;)&quot;+c;switch(t[u]){case&quot;clamp&quot;:var h=s.slice(),p=s.slice();e[l]&lt;0?h[u]=&quot;s[&quot;+u+&quot;]-2&quot;:p[u]=&quot;1&quot;,0===i?n.push(&quot;if(s[&quot;,u,&quot;]&gt;1){dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0.5*(src.get(&quot;,h.join(),&quot;)-src.get(&quot;,p.join(),&quot;)))}else{dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0)};&quot;):n.push(&quot;if(s[&quot;,u,&quot;]&gt;1){diff(&quot;,f,&quot;,src.pick(&quot;,h.join(),&quot;)&quot;,c,&quot;,src.pick(&quot;,p.join(),&quot;)&quot;,c,&quot;);}else{zero(&quot;,f,&quot;);};&quot;);break;case&quot;mirror&quot;:0===i?n.push(&quot;dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0);&quot;):n.push(&quot;zero(&quot;,f,&quot;);&quot;);break;case&quot;wrap&quot;:var d=s.slice(),g=s.slice();e[l]&lt;0?(d[u]=&quot;s[&quot;+u+&quot;]-2&quot;,g[u]=&quot;0&quot;):(d[u]=&quot;s[&quot;+u+&quot;]-1&quot;,g[u]=&quot;1&quot;),0===i?n.push(&quot;if(s[&quot;,u,&quot;]&gt;2){dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0.5*(src.get(&quot;,d.join(),&quot;)-src.get(&quot;,g.join(),&quot;)))}else{dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0)};&quot;):n.push(&quot;if(s[&quot;,u,&quot;]&gt;2){diff(&quot;,f,&quot;,src.pick(&quot;,d.join(),&quot;)&quot;,c,&quot;,src.pick(&quot;,g.join(),&quot;)&quot;,c,&quot;);}else{zero(&quot;,f,&quot;);};&quot;);break;default:throw new Error(&quot;ndarray-gradient: Invalid boundary condition&quot;)}}i&gt;0&amp;&amp;n.push(&quot;};&quot;)}for(var s=0;s&lt;1&lt;&lt;r;++s){for(var f=[],h=0;h&lt;r;++h)s&amp;1&lt;&lt;h&amp;&amp;f.push(h+1);for(var p=0;p&lt;1&lt;&lt;f.length;++p){var d=f.slice();for(h=0;h&lt;f.length;++h)p&amp;1&lt;&lt;h&amp;&amp;(d[h]=-d[h]);i(d)}}n.push(&quot;return dst;};return gradient&quot;);var g=[&quot;diff&quot;,&quot;zero&quot;],m=[l,c];for(s=1;s&lt;=r;++s)g.push(&quot;grad&quot;+s),m.push(u(s));g.push(n.join(&quot;&quot;));var v=Function.apply(void 0,g).apply(void 0,m);return a[e]=v,v}(r)(t,e)};var n=t(&quot;dup&quot;),i=t(&quot;cwise-compiler&quot;),a={},o={},s={body:&quot;&quot;,args:[],thisVars:[],localVars:[]},l=i({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:s,post:s,body:{args:[{name:&quot;out&quot;,lvalue:!0,rvalue:!1,count:1},{name:&quot;left&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;right&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;out=0.5*(left-right)&quot;,thisVars:[],localVars:[]},funcName:&quot;cdiff&quot;}),c=i({args:[&quot;array&quot;],pre:s,post:s,body:{args:[{name:&quot;out&quot;,lvalue:!0,rvalue:!1,count:1}],body:&quot;out=0&quot;,thisVars:[],localVars:[]},funcName:&quot;zero&quot;});function u(t){if(t in a)return a[t];for(var e=[],r=0;r&lt;t;++r)e.push(&quot;out&quot;,r,&quot;s=0.5*(inp&quot;,r,&quot;l-inp&quot;,r,&quot;r);&quot;);var o=[&quot;array&quot;],l=[&quot;junk&quot;];for(r=0;r&lt;t;++r){o.push(&quot;array&quot;),l.push(&quot;out&quot;+r+&quot;s&quot;);var c=n(t);c[r]=-1,o.push({array:0,offset:c.slice()}),c[r]=1,o.push({array:0,offset:c.slice()}),l.push(&quot;inp&quot;+r+&quot;l&quot;,&quot;inp&quot;+r+&quot;r&quot;)}return a[t]=i({args:o,pre:s,post:s,body:{body:e.join(&quot;&quot;),args:l.map((function(t){return{name:t,lvalue:0===t.indexOf(&quot;out&quot;),rvalue:0===t.indexOf(&quot;inp&quot;),count:&quot;junk&quot;!==t|0}})),thisVars:[],localVars:[]},funcName:&quot;fdTemplate&quot;+t})}},{&quot;cwise-compiler&quot;:151,dup:176}],489:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=Math.floor(e),n=e-r,i=0&lt;=r&amp;&amp;r&lt;t.shape[0],a=0&lt;=r+1&amp;&amp;r+1&lt;t.shape[0];return(1-n)*(i?+t.get(r):0)+n*(a?+t.get(r+1):0)}function i(t,e,r){var n=Math.floor(e),i=e-n,a=0&lt;=n&amp;&amp;n&lt;t.shape[0],o=0&lt;=n+1&amp;&amp;n+1&lt;t.shape[0],s=Math.floor(r),l=r-s,c=0&lt;=s&amp;&amp;s&lt;t.shape[1],u=0&lt;=s+1&amp;&amp;s+1&lt;t.shape[1],f=a&amp;&amp;c?t.get(n,s):0,h=a&amp;&amp;u?t.get(n,s+1):0;return(1-l)*((1-i)*f+i*(o&amp;&amp;c?t.get(n+1,s):0))+l*((1-i)*h+i*(o&amp;&amp;u?t.get(n+1,s+1):0))}function a(t,e,r,n){var i=Math.floor(e),a=e-i,o=0&lt;=i&amp;&amp;i&lt;t.shape[0],s=0&lt;=i+1&amp;&amp;i+1&lt;t.shape[0],l=Math.floor(r),c=r-l,u=0&lt;=l&amp;&amp;l&lt;t.shape[1],f=0&lt;=l+1&amp;&amp;l+1&lt;t.shape[1],h=Math.floor(n),p=n-h,d=0&lt;=h&amp;&amp;h&lt;t.shape[2],g=0&lt;=h+1&amp;&amp;h+1&lt;t.shape[2],m=o&amp;&amp;u&amp;&amp;d?t.get(i,l,h):0,v=o&amp;&amp;f&amp;&amp;d?t.get(i,l+1,h):0,y=s&amp;&amp;u&amp;&amp;d?t.get(i+1,l,h):0,x=s&amp;&amp;f&amp;&amp;d?t.get(i+1,l+1,h):0,b=o&amp;&amp;u&amp;&amp;g?t.get(i,l,h+1):0,_=o&amp;&amp;f&amp;&amp;g?t.get(i,l+1,h+1):0;return(1-p)*((1-c)*((1-a)*m+a*y)+c*((1-a)*v+a*x))+p*((1-c)*((1-a)*b+a*(s&amp;&amp;u&amp;&amp;g?t.get(i+1,l,h+1):0))+c*((1-a)*_+a*(s&amp;&amp;f&amp;&amp;g?t.get(i+1,l+1,h+1):0)))}function o(t){var e,r,n=0|t.shape.length,i=new Array(n),a=new Array(n),o=new Array(n),s=new Array(n);for(e=0;e&lt;n;++e)r=+arguments[e+1],i[e]=Math.floor(r),a[e]=r-i[e],o[e]=0&lt;=i[e]&amp;&amp;i[e]&lt;t.shape[e],s[e]=0&lt;=i[e]+1&amp;&amp;i[e]+1&lt;t.shape[e];var l,c,u,f=0;t:for(e=0;e&lt;1&lt;&lt;n;++e){for(c=1,u=t.offset,l=0;l&lt;n;++l)if(e&amp;1&lt;&lt;l){if(!s[l])continue t;c*=a[l],u+=t.stride[l]*(i[l]+1)}else{if(!o[l])continue t;c*=1-a[l],u+=t.stride[l]*i[l]}f+=c*t.data[u]}return f}e.exports=function(t,e,r,s){switch(t.shape.length){case 0:return 0;case 1:return n(t,e);case 2:return i(t,e,r);case 3:return a(t,e,r,s);default:return o.apply(void 0,arguments)}},e.exports.d1=n,e.exports.d2=i,e.exports.d3=a},{}],490:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;cwise-compiler&quot;),i={body:&quot;&quot;,args:[],thisVars:[],localVars:[]};function a(t){if(!t)return i;for(var e=0;e&lt;t.args.length;++e){var r=t.args[e];t.args[e]=0===e?{name:r,lvalue:!0,rvalue:!!t.rvalue,count:t.count||1}:{name:r,lvalue:!1,rvalue:!0,count:1}}return t.thisVars||(t.thisVars=[]),t.localVars||(t.localVars=[]),t}function o(t){for(var e=[],r=0;r&lt;t.args.length;++r)e.push(&quot;a&quot;+r);return new Function(&quot;P&quot;,[&quot;return function &quot;,t.funcName,&quot;_ndarrayops(&quot;,e.join(&quot;,&quot;),&quot;) {P(&quot;,e.join(&quot;,&quot;),&quot;);return a0}&quot;].join(&quot;&quot;))(function(t){return n({args:t.args,pre:a(t.pre),body:a(t.body),post:a(t.proc),funcName:t.funcName})}(t))}var s={add:&quot;+&quot;,sub:&quot;-&quot;,mul:&quot;*&quot;,div:&quot;/&quot;,mod:&quot;%&quot;,band:&quot;&amp;&quot;,bor:&quot;|&quot;,bxor:&quot;^&quot;,lshift:&quot;&lt;&lt;&quot;,rshift:&quot;&gt;&gt;&quot;,rrshift:&quot;&gt;&gt;&gt;&quot;};!function(){for(var t in s){var e=s[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=b&quot;+e+&quot;c&quot;},funcName:t}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a&quot;+e+&quot;=b&quot;},rvalue:!0,funcName:t+&quot;eq&quot;}),r[t+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;s&quot;],body:&quot;a=b&quot;+e+&quot;s&quot;},funcName:t+&quot;s&quot;}),r[t+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;s&quot;],body:&quot;a&quot;+e+&quot;=s&quot;},rvalue:!0,funcName:t+&quot;seq&quot;})}}();var l={not:&quot;!&quot;,bnot:&quot;~&quot;,neg:&quot;-&quot;,recip:&quot;1.0/&quot;};!function(){for(var t in l){var e=l[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=&quot;+e+&quot;b&quot;},funcName:t}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;],body:{args:[&quot;a&quot;],body:&quot;a=&quot;+e+&quot;a&quot;},rvalue:!0,count:2,funcName:t+&quot;eq&quot;})}}();var c={and:&quot;&amp;&amp;&quot;,or:&quot;||&quot;,eq:&quot;===&quot;,neq:&quot;!==&quot;,lt:&quot;&lt;&quot;,gt:&quot;&gt;&quot;,leq:&quot;&lt;=&quot;,geq:&quot;&gt;=&quot;};!function(){for(var t in c){var e=c[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=b&quot;+e+&quot;c&quot;},funcName:t}),r[t+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;s&quot;],body:&quot;a=b&quot;+e+&quot;s&quot;},funcName:t+&quot;s&quot;}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=a&quot;+e+&quot;b&quot;},rvalue:!0,count:2,funcName:t+&quot;eq&quot;}),r[t+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;s&quot;],body:&quot;a=a&quot;+e+&quot;s&quot;},rvalue:!0,count:2,funcName:t+&quot;seq&quot;})}}();var u=[&quot;abs&quot;,&quot;acos&quot;,&quot;asin&quot;,&quot;atan&quot;,&quot;ceil&quot;,&quot;cos&quot;,&quot;exp&quot;,&quot;floor&quot;,&quot;log&quot;,&quot;round&quot;,&quot;sin&quot;,&quot;sqrt&quot;,&quot;tan&quot;];!function(){for(var t=0;t&lt;u.length;++t){var e=u[t];r[e]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e}),r[e+&quot;eq&quot;]=o({args:[&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;],body:&quot;a=this_f(a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;eq&quot;})}}();var f=[&quot;max&quot;,&quot;min&quot;,&quot;atan2&quot;,&quot;pow&quot;];!function(){for(var t=0;t&lt;f.length;++t){var e=f[t];r[e]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(b,c)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e}),r[e+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(b,c)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;s&quot;}),r[e+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(a,b)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;eq&quot;}),r[e+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(a,b)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;seq&quot;})}}();var h=[&quot;atan2&quot;,&quot;pow&quot;];!function(){for(var t=0;t&lt;h.length;++t){var e=h[t];r[e+&quot;op&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(c,b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;op&quot;}),r[e+&quot;ops&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(c,b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;ops&quot;}),r[e+&quot;opeq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b,a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;opeq&quot;}),r[e+&quot;opseq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b,a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;opseq&quot;})}}(),r.any=n({args:[&quot;array&quot;],pre:i,body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(a){return true}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return false&quot;},funcName:&quot;any&quot;}),r.all=n({args:[&quot;array&quot;],pre:i,body:{args:[{name:&quot;x&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(!x){return false}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return true&quot;},funcName:&quot;all&quot;}),r.sum=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;this_s+=a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;sum&quot;}),r.prod=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=1&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;this_s*=a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;prod&quot;}),r.norm2squared=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:2}],body:&quot;this_s+=a*a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norm2squared&quot;}),r.norm2=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:2}],body:&quot;this_s+=a*a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return Math.sqrt(this_s)&quot;},funcName:&quot;norm2&quot;}),r.norminf=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:4}],body:&quot;if(-a&gt;this_s){this_s=-a}else if(a&gt;this_s){this_s=a}&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norminf&quot;}),r.norm1=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:3}],body:&quot;this_s+=a&lt;0?-a:a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norm1&quot;}),r.sup=n({args:[&quot;array&quot;],pre:{body:&quot;this_h=-Infinity&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]},body:{body:&quot;if(_inline_1_arg0_&gt;this_h)this_h=_inline_1_arg0_&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_h&quot;],localVars:[]},post:{body:&quot;return this_h&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]}}),r.inf=n({args:[&quot;array&quot;],pre:{body:&quot;this_h=Infinity&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]},body:{body:&quot;if(_inline_1_arg0_&lt;this_h)this_h=_inline_1_arg0_&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_h&quot;],localVars:[]},post:{body:&quot;return this_h&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]}}),r.argmin=n({args:[&quot;index&quot;,&quot;array&quot;,&quot;shape&quot;],pre:{body:&quot;{this_v=Infinity;this_i=_inline_0_arg2_.slice(0)}&quot;,args:[{name:&quot;_inline_0_arg0_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg1_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg2_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[]},body:{body:&quot;{if(_inline_1_arg1_&lt;this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k&lt;_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[&quot;_inline_1_k&quot;]},post:{body:&quot;{return this_i}&quot;,args:[],thisVars:[&quot;this_i&quot;],localVars:[]}}),r.argmax=n({args:[&quot;index&quot;,&quot;array&quot;,&quot;shape&quot;],pre:{body:&quot;{this_v=-Infinity;this_i=_inline_0_arg2_.slice(0)}&quot;,args:[{name:&quot;_inline_0_arg0_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg1_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg2_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[]},body:{body:&quot;{if(_inline_1_arg1_&gt;this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k&lt;_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[&quot;_inline_1_k&quot;]},post:{body:&quot;{return this_i}&quot;,args:[],thisVars:[&quot;this_i&quot;],localVars:[]}}),r.random=o({args:[&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.random&quot;,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;],body:&quot;a=this_f()&quot;,thisVars:[&quot;this_f&quot;]},funcName:&quot;random&quot;}),r.assign=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=b&quot;},funcName:&quot;assign&quot;}),r.assigns=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=b&quot;},funcName:&quot;assigns&quot;}),r.equals=n({args:[&quot;array&quot;,&quot;array&quot;],pre:i,body:{args:[{name:&quot;x&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;y&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(x!==y){return false}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return true&quot;},funcName:&quot;equals&quot;})},{&quot;cwise-compiler&quot;:151}],491:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ndarray&quot;),i=t(&quot;./doConvert.js&quot;);e.exports=function(t,e){for(var r=[],a=t,o=1;Array.isArray(a);)r.push(a.length),o*=a.length,a=a[0];return 0===r.length?n():(e||(e=n(new Float64Array(o),r)),i(e,t),e)}},{&quot;./doConvert.js&quot;:492,ndarray:495}],492:[function(t,e,r){e.exports=t(&quot;cwise-compiler&quot;)({args:[&quot;array&quot;,&quot;scalar&quot;,&quot;index&quot;],pre:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},body:{body:&quot;{\nvar _inline_1_v=_inline_1_arg1_,_inline_1_i\nfor(_inline_1_i=0;_inline_1_i&lt;_inline_1_arg2_.length-1;++_inline_1_i) {\n_inline_1_v=_inline_1_v[_inline_1_arg2_[_inline_1_i]]\n}\n_inline_1_arg0_=_inline_1_v[_inline_1_arg2_[_inline_1_arg2_.length-1]]\n}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!0,rvalue:!1,count:1},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg2_&quot;,lvalue:!1,rvalue:!0,count:4}],thisVars:[],localVars:[&quot;_inline_1_i&quot;,&quot;_inline_1_v&quot;]},post:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},funcName:&quot;convert&quot;,blockSize:64})},{&quot;cwise-compiler&quot;:151}],493:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=32;function a(t){switch(t){case&quot;uint8&quot;:return[n.mallocUint8,n.freeUint8];case&quot;uint16&quot;:return[n.mallocUint16,n.freeUint16];case&quot;uint32&quot;:return[n.mallocUint32,n.freeUint32];case&quot;int8&quot;:return[n.mallocInt8,n.freeInt8];case&quot;int16&quot;:return[n.mallocInt16,n.freeInt16];case&quot;int32&quot;:return[n.mallocInt32,n.freeInt32];case&quot;float32&quot;:return[n.mallocFloat,n.freeFloat];case&quot;float64&quot;:return[n.mallocDouble,n.freeDouble];default:return null}}function o(t){for(var e=[],r=0;r&lt;t;++r)e.push(&quot;s&quot;+r);for(r=0;r&lt;t;++r)e.push(&quot;n&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;d&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;e&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;f&quot;+r);return e}e.exports=function(t,e){var r=[&quot;'use strict'&quot;],n=[&quot;ndarraySortWrapper&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;);r.push([&quot;function &quot;,n,&quot;(&quot;,[&quot;array&quot;].join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));for(var s=[&quot;data=array.data,offset=array.offset|0,shape=array.shape,stride=array.stride&quot;],l=0;l&lt;t.length;++l)s.push([&quot;s&quot;,l,&quot;=stride[&quot;,l,&quot;]|0,n&quot;,l,&quot;=shape[&quot;,l,&quot;]|0&quot;].join(&quot;&quot;));var c=new Array(t.length),u=[];for(l=0;l&lt;t.length;++l){0!==(p=t[l])&amp;&amp;(0===u.length?c[p]=&quot;1&quot;:c[p]=u.join(&quot;*&quot;),u.push(&quot;n&quot;+p))}var f=-1,h=-1;for(l=0;l&lt;t.length;++l){var p,d=t[l];0!==d&amp;&amp;(f&gt;0?s.push([&quot;d&quot;,d,&quot;=s&quot;,d,&quot;-d&quot;,f,&quot;*n&quot;,f].join(&quot;&quot;)):s.push([&quot;d&quot;,d,&quot;=s&quot;,d].join(&quot;&quot;)),f=d),0!==(p=t.length-1-l)&amp;&amp;(h&gt;0?s.push([&quot;e&quot;,p,&quot;=s&quot;,p,&quot;-e&quot;,h,&quot;*n&quot;,h,&quot;,f&quot;,p,&quot;=&quot;,c[p],&quot;-f&quot;,h,&quot;*n&quot;,h].join(&quot;&quot;)):s.push([&quot;e&quot;,p,&quot;=s&quot;,p,&quot;,f&quot;,p,&quot;=&quot;,c[p]].join(&quot;&quot;)),h=p)}r.push(&quot;var &quot;+s.join(&quot;,&quot;));var g=[&quot;0&quot;,&quot;n0-1&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length));r.push([&quot;if(n0&lt;=&quot;,i,&quot;){&quot;,&quot;insertionSort(&quot;,g.join(&quot;,&quot;),&quot;)}else{&quot;,&quot;quickSort(&quot;,g.join(&quot;,&quot;),&quot;)}&quot;].join(&quot;&quot;)),r.push(&quot;}return &quot;+n);var m=new Function(&quot;insertionSort&quot;,&quot;quickSort&quot;,r.join(&quot;\n&quot;)),v=function(t,e){var r=[&quot;'use strict'&quot;],n=[&quot;ndarrayInsertionSort&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;),i=[&quot;left&quot;,&quot;right&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length)),s=a(e),l=[&quot;i,j,cptr,ptr=left*s0+offset&quot;];if(t.length&gt;1){for(var c=[],u=1;u&lt;t.length;++u)l.push(&quot;i&quot;+u),c.push(&quot;n&quot;+u);s?l.push(&quot;scratch=malloc(&quot;+c.join(&quot;*&quot;)+&quot;)&quot;):l.push(&quot;scratch=new Array(&quot;+c.join(&quot;*&quot;)+&quot;)&quot;),l.push(&quot;dptr&quot;,&quot;sptr&quot;,&quot;a&quot;,&quot;b&quot;)}else l.push(&quot;scratch&quot;);function f(t){return&quot;generic&quot;===e?[&quot;data.get(&quot;,t,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]&quot;].join(&quot;&quot;)}function h(t,r){return&quot;generic&quot;===e?[&quot;data.set(&quot;,t,&quot;,&quot;,r,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]=&quot;,r].join(&quot;&quot;)}if(r.push([&quot;function &quot;,n,&quot;(&quot;,i.join(&quot;,&quot;),&quot;){var &quot;,l.join(&quot;,&quot;)].join(&quot;&quot;),&quot;for(i=left+1;i&lt;=right;++i){&quot;,&quot;j=i;ptr+=s0&quot;,&quot;cptr=ptr&quot;),t.length&gt;1){r.push(&quot;dptr=0;sptr=ptr&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(&quot;scratch[dptr++]=&quot;,f(&quot;sptr&quot;));for(u=0;u&lt;t.length;++u){0!==(p=t[u])&amp;&amp;r.push(&quot;sptr+=d&quot;+p,&quot;}&quot;)}r.push(&quot;__g:while(j--\x3eleft){&quot;,&quot;dptr=0&quot;,&quot;sptr=cptr-s0&quot;);for(u=1;u&lt;t.length;++u)1===u&amp;&amp;r.push(&quot;__l:&quot;),r.push([&quot;for(i&quot;,u,&quot;=0;i&quot;,u,&quot;&lt;n&quot;,u,&quot;;++i&quot;,u,&quot;){&quot;].join(&quot;&quot;));r.push([&quot;a=&quot;,f(&quot;sptr&quot;),&quot;\nb=scratch[dptr]\nif(a&lt;b){break __g}\nif(a&gt;b){break __l}&quot;].join(&quot;&quot;));for(u=t.length-1;u&gt;=1;--u)r.push(&quot;sptr+=e&quot;+u,&quot;dptr+=f&quot;+u,&quot;}&quot;);r.push(&quot;dptr=cptr;sptr=cptr-s0&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(h(&quot;dptr&quot;,f(&quot;sptr&quot;)));for(u=0;u&lt;t.length;++u){0!==(p=t[u])&amp;&amp;r.push([&quot;dptr+=d&quot;,p,&quot;;sptr+=d&quot;,p].join(&quot;&quot;),&quot;}&quot;)}r.push(&quot;cptr-=s0\n}&quot;),r.push(&quot;dptr=cptr;sptr=0&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(h(&quot;dptr&quot;,&quot;scratch[sptr++]&quot;));for(u=0;u&lt;t.length;++u){var p;0!==(p=t[u])&amp;&amp;r.push(&quot;dptr+=d&quot;+p,&quot;}&quot;)}}else r.push(&quot;scratch=&quot;+f(&quot;ptr&quot;),&quot;while((j--\x3eleft)&amp;&amp;(&quot;+f(&quot;cptr-s0&quot;)+&quot;&gt;scratch)){&quot;,h(&quot;cptr&quot;,f(&quot;cptr-s0&quot;)),&quot;cptr-=s0&quot;,&quot;}&quot;,h(&quot;cptr&quot;,&quot;scratch&quot;));return r.push(&quot;}&quot;),t.length&gt;1&amp;&amp;s&amp;&amp;r.push(&quot;free(scratch)&quot;),r.push(&quot;} return &quot;+n),s?new Function(&quot;malloc&quot;,&quot;free&quot;,r.join(&quot;\n&quot;))(s[0],s[1]):new Function(r.join(&quot;\n&quot;))()}(t,e),y=function(t,e,r){var n=[&quot;'use strict'&quot;],s=[&quot;ndarrayQuickSort&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;),l=[&quot;left&quot;,&quot;right&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length)),c=a(e),u=0;n.push([&quot;function &quot;,s,&quot;(&quot;,l.join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));var f=[&quot;sixth=((right-left+1)/6)|0&quot;,&quot;index1=left+sixth&quot;,&quot;index5=right-sixth&quot;,&quot;index3=(left+right)&gt;&gt;1&quot;,&quot;index2=index3-sixth&quot;,&quot;index4=index3+sixth&quot;,&quot;el1=index1&quot;,&quot;el2=index2&quot;,&quot;el3=index3&quot;,&quot;el4=index4&quot;,&quot;el5=index5&quot;,&quot;less=left+1&quot;,&quot;great=right-1&quot;,&quot;pivots_are_equal=true&quot;,&quot;tmp&quot;,&quot;tmp0&quot;,&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;k&quot;,&quot;ptr0&quot;,&quot;ptr1&quot;,&quot;ptr2&quot;,&quot;comp_pivot1=0&quot;,&quot;comp_pivot2=0&quot;,&quot;comp=0&quot;];if(t.length&gt;1){for(var h=[],p=1;p&lt;t.length;++p)h.push(&quot;n&quot;+p),f.push(&quot;i&quot;+p);for(p=0;p&lt;8;++p)f.push(&quot;b_ptr&quot;+p);f.push(&quot;ptr3&quot;,&quot;ptr4&quot;,&quot;ptr5&quot;,&quot;ptr6&quot;,&quot;ptr7&quot;,&quot;pivot_ptr&quot;,&quot;ptr_shift&quot;,&quot;elementSize=&quot;+h.join(&quot;*&quot;)),c?f.push(&quot;pivot1=malloc(elementSize)&quot;,&quot;pivot2=malloc(elementSize)&quot;):f.push(&quot;pivot1=new Array(elementSize),pivot2=new Array(elementSize)&quot;)}else f.push(&quot;pivot1&quot;,&quot;pivot2&quot;);function d(t){return[&quot;(offset+&quot;,t,&quot;*s0)&quot;].join(&quot;&quot;)}function g(t){return&quot;generic&quot;===e?[&quot;data.get(&quot;,t,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]&quot;].join(&quot;&quot;)}function m(t,r){return&quot;generic&quot;===e?[&quot;data.set(&quot;,t,&quot;,&quot;,r,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]=&quot;,r].join(&quot;&quot;)}function v(e,r,i){if(1===e.length)n.push(&quot;ptr0=&quot;+d(e[0]));else for(var a=0;a&lt;e.length;++a)n.push([&quot;b_ptr&quot;,a,&quot;=s0*&quot;,e[a]].join(&quot;&quot;));r&amp;&amp;n.push(&quot;pivot_ptr=0&quot;),n.push(&quot;ptr_shift=offset&quot;);for(a=t.length-1;a&gt;=0;--a){0!==(o=t[a])&amp;&amp;n.push([&quot;for(i&quot;,o,&quot;=0;i&quot;,o,&quot;&lt;n&quot;,o,&quot;;++i&quot;,o,&quot;){&quot;].join(&quot;&quot;))}if(e.length&gt;1)for(a=0;a&lt;e.length;++a)n.push([&quot;ptr&quot;,a,&quot;=b_ptr&quot;,a,&quot;+ptr_shift&quot;].join(&quot;&quot;));n.push(i),r&amp;&amp;n.push(&quot;++pivot_ptr&quot;);for(a=0;a&lt;t.length;++a){var o;0!==(o=t[a])&amp;&amp;(e.length&gt;1?n.push(&quot;ptr_shift+=d&quot;+o):n.push(&quot;ptr0+=d&quot;+o),n.push(&quot;}&quot;))}}function y(e,r,i,a){if(1===r.length)n.push(&quot;ptr0=&quot;+d(r[0]));else{for(var o=0;o&lt;r.length;++o)n.push([&quot;b_ptr&quot;,o,&quot;=s0*&quot;,r[o]].join(&quot;&quot;));n.push(&quot;ptr_shift=offset&quot;)}i&amp;&amp;n.push(&quot;pivot_ptr=0&quot;),e&amp;&amp;n.push(e+&quot;:&quot;);for(o=1;o&lt;t.length;++o)n.push([&quot;for(i&quot;,o,&quot;=0;i&quot;,o,&quot;&lt;n&quot;,o,&quot;;++i&quot;,o,&quot;){&quot;].join(&quot;&quot;));if(r.length&gt;1)for(o=0;o&lt;r.length;++o)n.push([&quot;ptr&quot;,o,&quot;=b_ptr&quot;,o,&quot;+ptr_shift&quot;].join(&quot;&quot;));n.push(a);for(o=t.length-1;o&gt;=1;--o)i&amp;&amp;n.push(&quot;pivot_ptr+=f&quot;+o),r.length&gt;1?n.push(&quot;ptr_shift+=e&quot;+o):n.push(&quot;ptr0+=e&quot;+o),n.push(&quot;}&quot;)}function x(){t.length&gt;1&amp;&amp;c&amp;&amp;n.push(&quot;free(pivot1)&quot;,&quot;free(pivot2)&quot;)}function b(e,r){var i=&quot;el&quot;+e,a=&quot;el&quot;+r;if(t.length&gt;1){var o=&quot;__l&quot;+ ++u;y(o,[i,a],!1,[&quot;comp=&quot;,g(&quot;ptr0&quot;),&quot;-&quot;,g(&quot;ptr1&quot;),&quot;\n&quot;,&quot;if(comp&gt;0){tmp0=&quot;,i,&quot;;&quot;,i,&quot;=&quot;,a,&quot;;&quot;,a,&quot;=tmp0;break &quot;,o,&quot;}\n&quot;,&quot;if(comp&lt;0){break &quot;,o,&quot;}&quot;].join(&quot;&quot;))}else n.push([&quot;if(&quot;,g(d(i)),&quot;&gt;&quot;,g(d(a)),&quot;){tmp0=&quot;,i,&quot;;&quot;,i,&quot;=&quot;,a,&quot;;&quot;,a,&quot;=tmp0}&quot;].join(&quot;&quot;))}function _(e,r){t.length&gt;1?v([e,r],!1,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;))):n.push(m(d(e),g(d(r))))}function w(e,r,i){if(t.length&gt;1){var a=&quot;__l&quot;+ ++u;y(a,[r],!0,[e,&quot;=&quot;,g(&quot;ptr0&quot;),&quot;-pivot&quot;,i,&quot;[pivot_ptr]\n&quot;,&quot;if(&quot;,e,&quot;!==0){break &quot;,a,&quot;}&quot;].join(&quot;&quot;))}else n.push([e,&quot;=&quot;,g(d(r)),&quot;-pivot&quot;,i].join(&quot;&quot;))}function T(e,r){t.length&gt;1?v([e,r],!1,[&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,&quot;tmp&quot;)].join(&quot;&quot;)):n.push([&quot;ptr0=&quot;,d(e),&quot;\n&quot;,&quot;ptr1=&quot;,d(r),&quot;\n&quot;,&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,&quot;tmp&quot;)].join(&quot;&quot;))}function k(e,r,i){t.length&gt;1?(v([e,r,i],!1,[&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,g(&quot;ptr2&quot;)),&quot;\n&quot;,m(&quot;ptr2&quot;,&quot;tmp&quot;)].join(&quot;&quot;)),n.push(&quot;++&quot;+r,&quot;--&quot;+i)):n.push([&quot;ptr0=&quot;,d(e),&quot;\n&quot;,&quot;ptr1=&quot;,d(r),&quot;\n&quot;,&quot;ptr2=&quot;,d(i),&quot;\n&quot;,&quot;++&quot;,r,&quot;\n&quot;,&quot;--&quot;,i,&quot;\n&quot;,&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,g(&quot;ptr2&quot;)),&quot;\n&quot;,m(&quot;ptr2&quot;,&quot;tmp&quot;)].join(&quot;&quot;))}function M(t,e){T(t,e),n.push(&quot;--&quot;+e)}function A(e,r,i){t.length&gt;1?v([e,r],!0,[m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,[&quot;pivot&quot;,i,&quot;[pivot_ptr]&quot;].join(&quot;&quot;))].join(&quot;&quot;)):n.push(m(d(e),g(d(r))),m(d(r),&quot;pivot&quot;+i))}function S(e,r){n.push([&quot;if((&quot;,r,&quot;-&quot;,e,&quot;)&lt;=&quot;,i,&quot;){\n&quot;,&quot;insertionSort(&quot;,e,&quot;,&quot;,r,&quot;,data,offset,&quot;,o(t.length).join(&quot;,&quot;),&quot;)\n&quot;,&quot;}else{\n&quot;,s,&quot;(&quot;,e,&quot;,&quot;,r,&quot;,data,offset,&quot;,o(t.length).join(&quot;,&quot;),&quot;)\n&quot;,&quot;}&quot;].join(&quot;&quot;))}function E(e,r,i){t.length&gt;1?(n.push([&quot;__l&quot;,++u,&quot;:while(true){&quot;].join(&quot;&quot;)),v([e],!0,[&quot;if(&quot;,g(&quot;ptr0&quot;),&quot;!==pivot&quot;,r,&quot;[pivot_ptr]){break __l&quot;,u,&quot;}&quot;].join(&quot;&quot;)),n.push(i,&quot;}&quot;)):n.push([&quot;while(&quot;,g(d(e)),&quot;===pivot&quot;,r,&quot;){&quot;,i,&quot;}&quot;].join(&quot;&quot;))}return n.push(&quot;var &quot;+f.join(&quot;,&quot;)),b(1,2),b(4,5),b(1,3),b(2,3),b(1,4),b(3,4),b(2,5),b(2,3),b(4,5),t.length&gt;1?v([&quot;el1&quot;,&quot;el2&quot;,&quot;el3&quot;,&quot;el4&quot;,&quot;el5&quot;,&quot;index1&quot;,&quot;index3&quot;,&quot;index5&quot;],!0,[&quot;pivot1[pivot_ptr]=&quot;,g(&quot;ptr1&quot;),&quot;\n&quot;,&quot;pivot2[pivot_ptr]=&quot;,g(&quot;ptr3&quot;),&quot;\n&quot;,&quot;pivots_are_equal=pivots_are_equal&amp;&amp;(pivot1[pivot_ptr]===pivot2[pivot_ptr])\n&quot;,&quot;x=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,&quot;y=&quot;,g(&quot;ptr2&quot;),&quot;\n&quot;,&quot;z=&quot;,g(&quot;ptr4&quot;),&quot;\n&quot;,m(&quot;ptr5&quot;,&quot;x&quot;),&quot;\n&quot;,m(&quot;ptr6&quot;,&quot;y&quot;),&quot;\n&quot;,m(&quot;ptr7&quot;,&quot;z&quot;)].join(&quot;&quot;)):n.push([&quot;pivot1=&quot;,g(d(&quot;el2&quot;)),&quot;\n&quot;,&quot;pivot2=&quot;,g(d(&quot;el4&quot;)),&quot;\n&quot;,&quot;pivots_are_equal=pivot1===pivot2\n&quot;,&quot;x=&quot;,g(d(&quot;el1&quot;)),&quot;\n&quot;,&quot;y=&quot;,g(d(&quot;el3&quot;)),&quot;\n&quot;,&quot;z=&quot;,g(d(&quot;el5&quot;)),&quot;\n&quot;,m(d(&quot;index1&quot;),&quot;x&quot;),&quot;\n&quot;,m(d(&quot;index3&quot;),&quot;y&quot;),&quot;\n&quot;,m(d(&quot;index5&quot;),&quot;z&quot;)].join(&quot;&quot;)),_(&quot;index2&quot;,&quot;left&quot;),_(&quot;index4&quot;,&quot;right&quot;),n.push(&quot;if(pivots_are_equal){&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp&quot;,&quot;k&quot;,1),n.push(&quot;if(comp===0){continue}&quot;),n.push(&quot;if(comp&lt;0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&gt;0){&quot;),n.push(&quot;great--&quot;),n.push(&quot;}else if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;break&quot;),n.push(&quot;}else{&quot;),M(&quot;k&quot;,&quot;great&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}else{&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp_pivot1&quot;,&quot;k&quot;,1),n.push(&quot;if(comp_pivot1&lt;0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),w(&quot;comp_pivot2&quot;,&quot;k&quot;,2),n.push(&quot;if(comp_pivot2&gt;0){&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,2),n.push(&quot;if(comp&gt;0){&quot;),n.push(&quot;if(--great&lt;k){break}&quot;),n.push(&quot;continue&quot;),n.push(&quot;}else{&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;}else{&quot;),M(&quot;k&quot;,&quot;great&quot;),n.push(&quot;}&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),A(&quot;left&quot;,&quot;(less-1)&quot;,1),A(&quot;right&quot;,&quot;(great+1)&quot;,2),S(&quot;left&quot;,&quot;(less-2)&quot;),S(&quot;(great+2)&quot;,&quot;right&quot;),n.push(&quot;if(pivots_are_equal){&quot;),x(),n.push(&quot;return&quot;),n.push(&quot;}&quot;),n.push(&quot;if(less&lt;index1&amp;&amp;great&gt;index5){&quot;),E(&quot;less&quot;,1,&quot;++less&quot;),E(&quot;great&quot;,2,&quot;--great&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp_pivot1&quot;,&quot;k&quot;,1),n.push(&quot;if(comp_pivot1===0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),w(&quot;comp_pivot2&quot;,&quot;k&quot;,2),n.push(&quot;if(comp_pivot2===0){&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,2),n.push(&quot;if(comp===0){&quot;),n.push(&quot;if(--great&lt;k){break}&quot;),n.push(&quot;continue&quot;),n.push(&quot;}else{&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;}else{&quot;),M(&quot;k&quot;,&quot;great&quot;),n.push(&quot;}&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),x(),S(&quot;less&quot;,&quot;great&quot;),n.push(&quot;}return &quot;+s),t.length&gt;1&amp;&amp;c?new Function(&quot;insertionSort&quot;,&quot;malloc&quot;,&quot;free&quot;,n.join(&quot;\n&quot;))(r,c[0],c[1]):new Function(&quot;insertionSort&quot;,n.join(&quot;\n&quot;))(r)}(t,e,v);return m(v,y)}},{&quot;typedarray-pool&quot;:595}],494:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/compile_sort.js&quot;),i={};e.exports=function(t){var e=t.order,r=t.dtype,a=[e,r].join(&quot;:&quot;),o=i[a];return o||(i[a]=o=n(e,r)),o(t),t}},{&quot;./lib/compile_sort.js&quot;:493}],495:[function(t,e,r){var n=t(&quot;iota-array&quot;),i=t(&quot;is-buffer&quot;),a=&quot;undefined&quot;!=typeof Float64Array;function o(t,e){return t[0]-e[0]}function s(){var t,e=this.stride,r=new Array(e.length);for(t=0;t&lt;r.length;++t)r[t]=[Math.abs(e[t]),t];r.sort(o);var n=new Array(r.length);for(t=0;t&lt;n.length;++t)n[t]=r[t][1];return n}function l(t,e){var r=[&quot;View&quot;,e,&quot;d&quot;,t].join(&quot;&quot;);e&lt;0&amp;&amp;(r=&quot;View_Nil&quot;+t);var i=&quot;generic&quot;===t;if(-1===e){var a=&quot;function &quot;+r+&quot;(a){this.data=a;};var proto=&quot;+r+&quot;.prototype;proto.dtype='&quot;+t+&quot;';proto.index=function(){return -1};proto.size=0;proto.dimension=-1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function(){return new &quot;+r+&quot;(this.data);};proto.get=proto.set=function(){};proto.pick=function(){return null};return function construct_&quot;+r+&quot;(a){return new &quot;+r+&quot;(a);}&quot;;return new Function(a)()}if(0===e){a=&quot;function &quot;+r+&quot;(a,d) {this.data = a;this.offset = d};var proto=&quot;+r+&quot;.prototype;proto.dtype='&quot;+t+&quot;';proto.index=function(){return this.offset};proto.dimension=0;proto.size=1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function &quot;+r+&quot;_copy() {return new &quot;+r+&quot;(this.data,this.offset)};proto.pick=function &quot;+r+&quot;_pick(){return TrivialArray(this.data);};proto.valueOf=proto.get=function &quot;+r+&quot;_get(){return &quot;+(i?&quot;this.data.get(this.offset)&quot;:&quot;this.data[this.offset]&quot;)+&quot;};proto.set=function &quot;+r+&quot;_set(v){return &quot;+(i?&quot;this.data.set(this.offset,v)&quot;:&quot;this.data[this.offset]=v&quot;)+&quot;};return function construct_&quot;+r+&quot;(a,b,c,d){return new &quot;+r+&quot;(a,d)}&quot;;return new Function(&quot;TrivialArray&quot;,a)(c[t][0])}a=[&quot;'use strict'&quot;];var o=n(e),l=o.map((function(t){return&quot;i&quot;+t})),u=&quot;this.offset+&quot;+o.map((function(t){return&quot;this.stride[&quot;+t+&quot;]*i&quot;+t})).join(&quot;+&quot;),f=o.map((function(t){return&quot;b&quot;+t})).join(&quot;,&quot;),h=o.map((function(t){return&quot;c&quot;+t})).join(&quot;,&quot;);a.push(&quot;function &quot;+r+&quot;(a,&quot;+f+&quot;,&quot;+h+&quot;,d){this.data=a&quot;,&quot;this.shape=[&quot;+f+&quot;]&quot;,&quot;this.stride=[&quot;+h+&quot;]&quot;,&quot;this.offset=d|0}&quot;,&quot;var proto=&quot;+r+&quot;.prototype&quot;,&quot;proto.dtype='&quot;+t+&quot;'&quot;,&quot;proto.dimension=&quot;+e),a.push(&quot;Object.defineProperty(proto,'size',{get:function &quot;+r+&quot;_size(){return &quot;+o.map((function(t){return&quot;this.shape[&quot;+t+&quot;]&quot;})).join(&quot;*&quot;),&quot;}})&quot;),1===e?a.push(&quot;proto.order=[0]&quot;):(a.push(&quot;Object.defineProperty(proto,'order',{get:&quot;),e&lt;4?(a.push(&quot;function &quot;+r+&quot;_order(){&quot;),2===e?a.push(&quot;return (Math.abs(this.stride[0])&gt;Math.abs(this.stride[1]))?[1,0]:[0,1]}})&quot;):3===e&amp;&amp;a.push(&quot;var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0&gt;s1){if(s1&gt;s2){return [2,1,0];}else if(s0&gt;s2){return [1,2,0];}else{return [1,0,2];}}else if(s0&gt;s2){return [2,0,1];}else if(s2&gt;s1){return [0,1,2];}else{return [0,2,1];}}})&quot;)):a.push(&quot;ORDER})&quot;)),a.push(&quot;proto.set=function &quot;+r+&quot;_set(&quot;+l.join(&quot;,&quot;)+&quot;,v){&quot;),i?a.push(&quot;return this.data.set(&quot;+u+&quot;,v)}&quot;):a.push(&quot;return this.data[&quot;+u+&quot;]=v}&quot;),a.push(&quot;proto.get=function &quot;+r+&quot;_get(&quot;+l.join(&quot;,&quot;)+&quot;){&quot;),i?a.push(&quot;return this.data.get(&quot;+u+&quot;)}&quot;):a.push(&quot;return this.data[&quot;+u+&quot;]}&quot;),a.push(&quot;proto.index=function &quot;+r+&quot;_index(&quot;,l.join(),&quot;){return &quot;+u+&quot;}&quot;),a.push(&quot;proto.hi=function &quot;+r+&quot;_hi(&quot;+l.join(&quot;,&quot;)+&quot;){return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return[&quot;(typeof i&quot;,t,&quot;!=='number'||i&quot;,t,&quot;&lt;0)?this.shape[&quot;,t,&quot;]:i&quot;,t,&quot;|0&quot;].join(&quot;&quot;)})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;this.stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,this.offset)}&quot;);var p=o.map((function(t){return&quot;a&quot;+t+&quot;=this.shape[&quot;+t+&quot;]&quot;})),d=o.map((function(t){return&quot;c&quot;+t+&quot;=this.stride[&quot;+t+&quot;]&quot;}));a.push(&quot;proto.lo=function &quot;+r+&quot;_lo(&quot;+l.join(&quot;,&quot;)+&quot;){var b=this.offset,d=0,&quot;+p.join(&quot;,&quot;)+&quot;,&quot;+d.join(&quot;,&quot;));for(var g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'&amp;&amp;i&quot;+g+&quot;&gt;=0){d=i&quot;+g+&quot;|0;b+=c&quot;+g+&quot;*d;a&quot;+g+&quot;-=d}&quot;);a.push(&quot;return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return&quot;a&quot;+t})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;c&quot;+t})).join(&quot;,&quot;)+&quot;,b)}&quot;),a.push(&quot;proto.step=function &quot;+r+&quot;_step(&quot;+l.join(&quot;,&quot;)+&quot;){var &quot;+o.map((function(t){return&quot;a&quot;+t+&quot;=this.shape[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;b&quot;+t+&quot;=this.stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,c=this.offset,d=0,ceil=Math.ceil&quot;);for(g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'){d=i&quot;+g+&quot;|0;if(d&lt;0){c+=b&quot;+g+&quot;*(a&quot;+g+&quot;-1);a&quot;+g+&quot;=ceil(-a&quot;+g+&quot;/d)}else{a&quot;+g+&quot;=ceil(a&quot;+g+&quot;/d)}b&quot;+g+&quot;*=d}&quot;);a.push(&quot;return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return&quot;a&quot;+t})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;b&quot;+t})).join(&quot;,&quot;)+&quot;,c)}&quot;);var m=new Array(e),v=new Array(e);for(g=0;g&lt;e;++g)m[g]=&quot;a[i&quot;+g+&quot;]&quot;,v[g]=&quot;b[i&quot;+g+&quot;]&quot;;a.push(&quot;proto.transpose=function &quot;+r+&quot;_transpose(&quot;+l+&quot;){&quot;+l.map((function(t,e){return t+&quot;=(&quot;+t+&quot;===undefined?&quot;+e+&quot;:&quot;+t+&quot;|0)&quot;})).join(&quot;;&quot;),&quot;var a=this.shape,b=this.stride;return new &quot;+r+&quot;(this.data,&quot;+m.join(&quot;,&quot;)+&quot;,&quot;+v.join(&quot;,&quot;)+&quot;,this.offset)}&quot;),a.push(&quot;proto.pick=function &quot;+r+&quot;_pick(&quot;+l+&quot;){var a=[],b=[],c=this.offset&quot;);for(g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'&amp;&amp;i&quot;+g+&quot;&gt;=0){c=(c+this.stride[&quot;+g+&quot;]*i&quot;+g+&quot;)|0}else{a.push(this.shape[&quot;+g+&quot;]);b.push(this.stride[&quot;+g+&quot;])}&quot;);return a.push(&quot;var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}&quot;),a.push(&quot;return function construct_&quot;+r+&quot;(data,shape,stride,offset){return new &quot;+r+&quot;(data,&quot;+o.map((function(t){return&quot;shape[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,offset)}&quot;),new Function(&quot;CTOR_LIST&quot;,&quot;ORDER&quot;,a.join(&quot;\n&quot;))(c[t],s)}var c={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],bigint64:[],biguint64:[],buffer:[],generic:[]};e.exports=function(t,e,r,n){if(void 0===t)return(0,c.array[0])([]);&quot;number&quot;==typeof t&amp;&amp;(t=[t]),void 0===e&amp;&amp;(e=[t.length]);var o=e.length;if(void 0===r){r=new Array(o);for(var s=o-1,u=1;s&gt;=0;--s)r[s]=u,u*=e[s]}if(void 0===n){n=0;for(s=0;s&lt;o;++s)r[s]&lt;0&amp;&amp;(n-=(e[s]-1)*r[s])}for(var f=function(t){if(i(t))return&quot;buffer&quot;;if(a)switch(Object.prototype.toString.call(t)){case&quot;[object Float64Array]&quot;:return&quot;float64&quot;;case&quot;[object Float32Array]&quot;:return&quot;float32&quot;;case&quot;[object Int8Array]&quot;:return&quot;int8&quot;;case&quot;[object Int16Array]&quot;:return&quot;int16&quot;;case&quot;[object Int32Array]&quot;:return&quot;int32&quot;;case&quot;[object Uint8Array]&quot;:return&quot;uint8&quot;;case&quot;[object Uint16Array]&quot;:return&quot;uint16&quot;;case&quot;[object Uint32Array]&quot;:return&quot;uint32&quot;;case&quot;[object Uint8ClampedArray]&quot;:return&quot;uint8_clamped&quot;;case&quot;[object BigInt64Array]&quot;:return&quot;bigint64&quot;;case&quot;[object BigUint64Array]&quot;:return&quot;biguint64&quot;}return Array.isArray(t)?&quot;array&quot;:&quot;generic&quot;}(t),h=c[f];h.length&lt;=o+1;)h.push(l(f,h.length-1));return(0,h[o+1])(t,e,r,n)}},{&quot;iota-array&quot;:463,&quot;is-buffer&quot;:465}],496:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;double-bits&quot;),i=Math.pow(2,-1074);e.exports=function(t,e){if(isNaN(t)||isNaN(e))return NaN;if(t===e)return t;if(0===t)return e&lt;0?-i:i;var r=n.hi(t),a=n.lo(t);e&gt;t==t&gt;0?a===-1&gt;&gt;&gt;0?(r+=1,a=0):a+=1:0===a?(a=-1&gt;&gt;&gt;0,r-=1):a-=1;return n.pack(a,r)}},{&quot;double-bits&quot;:173}],497:[function(t,e,r){var n=Math.PI,i=c(120);function a(t,e,r,n){return[&quot;C&quot;,t,e,r,n,r,n]}function o(t,e,r,n,i,a){return[&quot;C&quot;,t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function s(t,e,r,a,o,c,u,f,h,p){if(p)T=p[0],k=p[1],_=p[2],w=p[3];else{var d=l(t,e,-o);t=d.x,e=d.y;var g=(t-(f=(d=l(f,h,-o)).x))/2,m=(e-(h=d.y))/2,v=g*g/(r*r)+m*m/(a*a);v&gt;1&amp;&amp;(r*=v=Math.sqrt(v),a*=v);var y=r*r,x=a*a,b=(c==u?-1:1)*Math.sqrt(Math.abs((y*x-y*m*m-x*g*g)/(y*m*m+x*g*g)));b==1/0&amp;&amp;(b=1);var _=b*r*m/a+(t+f)/2,w=b*-a*g/r+(e+h)/2,T=Math.asin(((e-w)/a).toFixed(9)),k=Math.asin(((h-w)/a).toFixed(9));(T=t&lt;_?n-T:T)&lt;0&amp;&amp;(T=2*n+T),(k=f&lt;_?n-k:k)&lt;0&amp;&amp;(k=2*n+k),u&amp;&amp;T&gt;k&amp;&amp;(T-=2*n),!u&amp;&amp;k&gt;T&amp;&amp;(k-=2*n)}if(Math.abs(k-T)&gt;i){var M=k,A=f,S=h;k=T+i*(u&amp;&amp;k&gt;T?1:-1);var E=s(f=_+r*Math.cos(k),h=w+a*Math.sin(k),r,a,o,0,u,A,S,[k,M,_,w])}var C=Math.tan((k-T)/4),L=4/3*r*C,I=4/3*a*C,P=[2*t-(t+L*Math.sin(T)),2*e-(e-I*Math.cos(T)),f+L*Math.sin(k),h-I*Math.cos(k),f,h];if(p)return P;E&amp;&amp;(P=P.concat(E));for(var z=0;z&lt;P.length;){var O=l(P[z],P[z+1],o);P[z++]=O.x,P[z++]=O.y}return P}function l(t,e,r){return{x:t*Math.cos(r)-e*Math.sin(r),y:t*Math.sin(r)+e*Math.cos(r)}}function c(t){return t*(n/180)}e.exports=function(t){for(var e,r=[],n=0,i=0,l=0,u=0,f=null,h=null,p=0,d=0,g=0,m=t.length;g&lt;m;g++){var v=t[g],y=v[0];switch(y){case&quot;M&quot;:l=v[1],u=v[2];break;case&quot;A&quot;:(v=s(p,d,v[1],v[2],c(v[3]),v[4],v[5],v[6],v[7])).unshift(&quot;C&quot;),v.length&gt;7&amp;&amp;(r.push(v.splice(0,7)),v.unshift(&quot;C&quot;));break;case&quot;S&quot;:var x=p,b=d;&quot;C&quot;!=e&amp;&amp;&quot;S&quot;!=e||(x+=x-n,b+=b-i),v=[&quot;C&quot;,x,b,v[1],v[2],v[3],v[4]];break;case&quot;T&quot;:&quot;Q&quot;==e||&quot;T&quot;==e?(f=2*p-f,h=2*d-h):(f=p,h=d),v=o(p,d,f,h,v[1],v[2]);break;case&quot;Q&quot;:f=v[1],h=v[2],v=o(p,d,v[1],v[2],v[3],v[4]);break;case&quot;L&quot;:v=a(p,d,v[1],v[2]);break;case&quot;H&quot;:v=a(p,d,v[1],d);break;case&quot;V&quot;:v=a(p,d,p,v[1]);break;case&quot;Z&quot;:v=a(p,d,l,u)}e=y,p=v[v.length-2],d=v[v.length-1],v.length&gt;4?(n=v[v.length-4],i=v[v.length-3]):(n=p,i=d),r.push(v)}return r}},{}],498:[function(t,e,r){r.vertexNormals=function(t,e,r){for(var n=e.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o&lt;n;++o)i[o]=[0,0,0];for(o=0;o&lt;t.length;++o)for(var s=t[o],l=0,c=s[s.length-1],u=s[0],f=0;f&lt;s.length;++f){l=c,c=u,u=s[(f+1)%s.length];for(var h=e[l],p=e[c],d=e[u],g=new Array(3),m=0,v=new Array(3),y=0,x=0;x&lt;3;++x)g[x]=h[x]-p[x],m+=g[x]*g[x],v[x]=d[x]-p[x],y+=v[x]*v[x];if(m*y&gt;a){var b=i[c],_=1/Math.sqrt(m*y);for(x=0;x&lt;3;++x){var w=(x+1)%3,T=(x+2)%3;b[x]+=_*(v[w]*g[T]-v[T]*g[w])}}}for(o=0;o&lt;n;++o){b=i[o];var k=0;for(x=0;x&lt;3;++x)k+=b[x]*b[x];if(k&gt;a)for(_=1/Math.sqrt(k),x=0;x&lt;3;++x)b[x]*=_;else for(x=0;x&lt;3;++x)b[x]=0}return i},r.faceNormals=function(t,e,r){for(var n=t.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o&lt;n;++o){for(var s=t[o],l=new Array(3),c=0;c&lt;3;++c)l[c]=e[s[c]];var u=new Array(3),f=new Array(3);for(c=0;c&lt;3;++c)u[c]=l[1][c]-l[0][c],f[c]=l[2][c]-l[0][c];var h=new Array(3),p=0;for(c=0;c&lt;3;++c){var d=(c+1)%3,g=(c+2)%3;h[c]=u[d]*f[g]-u[g]*f[d],p+=h[c]*h[c]}p=p&gt;a?1/Math.sqrt(p):0;for(c=0;c&lt;3;++c)h[c]*=p;i[o]=h}return i}},{}],499:[function(t,e,r){
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
&quot;use strict&quot;;var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError(&quot;Object.assign cannot be called with null or undefined&quot;);return Object(t)}e.exports=function(){try{if(!Object.assign)return!1;var t=new String(&quot;abc&quot;);if(t[5]=&quot;de&quot;,&quot;5&quot;===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r&lt;10;r++)e[&quot;_&quot;+String.fromCharCode(r)]=r;if(&quot;0123456789&quot;!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(&quot;&quot;))return!1;var n={};return&quot;abcdefghijklmnopqrst&quot;.split(&quot;&quot;).forEach((function(t){n[t]=t})),&quot;abcdefghijklmnopqrst&quot;===Object.keys(Object.assign({},n)).join(&quot;&quot;)}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,l=o(t),c=1;c&lt;arguments.length;c++){for(var u in r=Object(arguments[c]))i.call(r,u)&amp;&amp;(l[u]=r[u]);if(n){s=n(r);for(var f=0;f&lt;s.length;f++)a.call(r,s[f])&amp;&amp;(l[s[f]]=r[s[f]])}}return l}},{}],500:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a,o,s,l,c){var u=e+a+c;if(f&gt;0){var f=Math.sqrt(u+1);t[0]=.5*(o-l)/f,t[1]=.5*(s-n)/f,t[2]=.5*(r-a)/f,t[3]=.5*f}else{var h=Math.max(e,a,c);f=Math.sqrt(2*h-u+1);e&gt;=h?(t[0]=.5*f,t[1]=.5*(i+r)/f,t[2]=.5*(s+n)/f,t[3]=.5*(o-l)/f):a&gt;=h?(t[0]=.5*(r+i)/f,t[1]=.5*f,t[2]=.5*(l+o)/f,t[3]=.5*(s-n)/f):(t[0]=.5*(n+s)/f,t[1]=.5*(o+l)/f,t[2]=.5*f,t[3]=.5*(r-i)/f)}return t}},{}],501:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.rotation||[0,0,0,1],n=t.radius||1;e=[].slice.call(e,0,3),u(r=[].slice.call(r,0,4),r);var i=new f(r,e,Math.log(n));i.setDistanceLimits(t.zoomMin,t.zoomMax),(&quot;eye&quot;in t||&quot;up&quot;in t)&amp;&amp;i.lookAt(0,t.eye,t.center,t.up);return i};var n=t(&quot;filtered-vector&quot;),i=t(&quot;gl-mat4/lookAt&quot;),a=t(&quot;gl-mat4/fromQuat&quot;),o=t(&quot;gl-mat4/invert&quot;),s=t(&quot;./lib/quatFromFrame&quot;);function l(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function c(t,e,r,n){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2)+Math.pow(n,2))}function u(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=c(r,n,i,a);o&gt;1e-6?(t[0]=r/o,t[1]=n/o,t[2]=i/o,t[3]=a/o):(t[0]=t[1]=t[2]=0,t[3]=1)}function f(t,e,r){this.radius=n([r]),this.center=n(e),this.rotation=n(t),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var h=f.prototype;h.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},h.recalcMatrix=function(t){this.radius.curve(t),this.center.curve(t),this.rotation.curve(t);var e=this.computedRotation;u(e,e);var r=this.computedMatrix;a(r,e);var n=this.computedCenter,i=this.computedEye,o=this.computedUp,s=Math.exp(this.computedRadius[0]);i[0]=n[0]+s*r[2],i[1]=n[1]+s*r[6],i[2]=n[2]+s*r[10],o[0]=r[1],o[1]=r[5],o[2]=r[9];for(var l=0;l&lt;3;++l){for(var c=0,f=0;f&lt;3;++f)c+=r[l+4*f]*i[f];r[12+l]=-c}},h.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n&lt;16;++n)e[n]=r[n];return e}return r},h.idle=function(t){this.center.idle(t),this.radius.idle(t),this.rotation.idle(t)},h.flush=function(t){this.center.flush(t),this.radius.flush(t),this.rotation.flush(t)},h.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=i[1],o=i[5],s=i[9],c=l(a,o,s);a/=c,o/=c,s/=c;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=l(u-=a*p,f-=o*p,h-=s*p);u/=d,f/=d,h/=d;var g=i[2],m=i[6],v=i[10],y=g*a+m*o+v*s,x=g*u+m*f+v*h,b=l(g-=y*a+x*u,m-=y*o+x*f,v-=y*s+x*h);g/=b,m/=b,v/=b;var _=u*e+a*r,w=f*e+o*r,T=h*e+s*r;this.center.move(t,_,w,T);var k=Math.exp(this.computedRadius[0]);k=Math.max(1e-4,k+n),this.radius.set(t,Math.log(k))},h.rotate=function(t,e,r,n){this.recalcMatrix(t),e=e||0,r=r||0;var i=this.computedMatrix,a=i[0],o=i[4],s=i[8],u=i[1],f=i[5],h=i[9],p=i[2],d=i[6],g=i[10],m=e*a+r*u,v=e*o+r*f,y=e*s+r*h,x=-(d*y-g*v),b=-(g*m-p*y),_=-(p*v-d*m),w=Math.sqrt(Math.max(0,1-Math.pow(x,2)-Math.pow(b,2)-Math.pow(_,2))),T=c(x,b,_,w);T&gt;1e-6?(x/=T,b/=T,_/=T,w/=T):(x=b=_=0,w=1);var k=this.computedRotation,M=k[0],A=k[1],S=k[2],E=k[3],C=M*w+E*x+A*_-S*b,L=A*w+E*b+S*x-M*_,I=S*w+E*_+M*b-A*x,P=E*w-M*x-A*b-S*_;if(n){x=p,b=d,_=g;var z=Math.sin(n)/l(x,b,_);x*=z,b*=z,_*=z,P=P*(w=Math.cos(e))-(C=C*w+P*x+L*_-I*b)*x-(L=L*w+P*b+I*x-C*_)*b-(I=I*w+P*_+C*b-L*x)*_}var O=c(C,L,I,P);O&gt;1e-6?(C/=O,L/=O,I/=O,P/=O):(C=L=I=0,P=1),this.rotation.set(t,C,L,I,P)},h.lookAt=function(t,e,r,n){this.recalcMatrix(t),r=r||this.computedCenter,e=e||this.computedEye,n=n||this.computedUp;var a=this.computedMatrix;i(a,e,r,n);var o=this.computedRotation;s(o,a[0],a[1],a[2],a[4],a[5],a[6],a[8],a[9],a[10]),u(o,o),this.rotation.set(t,o[0],o[1],o[2],o[3]);for(var l=0,c=0;c&lt;3;++c)l+=Math.pow(r[c]-e[c],2);this.radius.set(t,.5*Math.log(Math.max(l,1e-6))),this.center.set(t,r[0],r[1],r[2])},h.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},h.setMatrix=function(t,e){var r=this.computedRotation;s(r,e[0],e[1],e[2],e[4],e[5],e[6],e[8],e[9],e[10]),u(r,r),this.rotation.set(t,r[0],r[1],r[2],r[3]);var n=this.computedMatrix;o(n,e);var i=n[15];if(Math.abs(i)&gt;1e-6){var a=n[12]/i,l=n[13]/i,c=n[14]/i;this.recalcMatrix(t);var f=Math.exp(this.computedRadius[0]);this.center.set(t,a-n[2]*f,l-n[6]*f,c-n[10]*f),this.radius.idle(t)}else this.center.idle(t),this.radius.idle(t)},h.setDistance=function(t,e){e&gt;0&amp;&amp;this.radius.set(t,Math.log(e))},h.setDistanceLimits=function(t,e){t=t&gt;0?Math.log(t):-1/0,e=e&gt;0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},h.getDistanceLimits=function(t){var e=this.radius.bounds;return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},h.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},h.fromJSON=function(t){var e=this.lastT(),r=t.center;r&amp;&amp;this.center.set(e,r[0],r[1],r[2]);var n=t.rotation;n&amp;&amp;this.rotation.set(e,n[0],n[1],n[2],n[3]);var i=t.distance;i&amp;&amp;i&gt;0&amp;&amp;this.radius.set(e,Math.log(i)),this.setDistanceLimits(t.zoomMin,t.zoomMax)}},{&quot;./lib/quatFromFrame&quot;:500,&quot;filtered-vector&quot;:242,&quot;gl-mat4/fromQuat&quot;:282,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/lookAt&quot;:294}],502:[function(t,e,r){
/*!
 * pad-left &lt;https://github.com/jonschlinkert/pad-left&gt;
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT license.
 */
&quot;use strict&quot;;var n=t(&quot;repeat-string&quot;);e.exports=function(t,e,r){return n(r=&quot;undefined&quot;!=typeof r?r+&quot;&quot;:&quot; &quot;,e)+t}},{&quot;repeat-string&quot;:541}],503:[function(t,e,r){&quot;use strict&quot;;function n(t,e){if(&quot;string&quot;!=typeof t)return[t];var r=[t];&quot;string&quot;==typeof e||Array.isArray(e)?e={brackets:e}:e||(e={});var n=e.brackets?Array.isArray(e.brackets)?e.brackets:[e.brackets]:[&quot;{}&quot;,&quot;[]&quot;,&quot;()&quot;],i=e.escape||&quot;___&quot;,a=!!e.flat;n.forEach((function(t){var e=new RegExp([&quot;\\&quot;,t[0],&quot;[^\\&quot;,t[0],&quot;\\&quot;,t[1],&quot;]*\\&quot;,t[1]].join(&quot;&quot;)),n=[];function a(e,a,o){var s=r.push(e.slice(t[0].length,-t[1].length))-1;return n.push(s),i+s+i}r.forEach((function(t,n){for(var i,o=0;t!=i;)if(i=t,t=t.replace(e,a),o++&gt;1e4)throw Error(&quot;References have circular dependency. Please, check them.&quot;);r[n]=t})),n=n.reverse(),r=r.map((function(e){return n.forEach((function(r){e=e.replace(new RegExp(&quot;(\\&quot;+i+r+&quot;\\&quot;+i+&quot;)&quot;,&quot;g&quot;),t[0]+&quot;$1&quot;+t[1])})),e}))}));var o=new RegExp(&quot;\\&quot;+i+&quot;([0-9]+)\\&quot;+i);return a?r:function t(e,r,n){for(var i,a=[],s=0;i=o.exec(e);){if(s++&gt;1e4)throw Error(&quot;Circular references in parenthesis&quot;);a.push(e.slice(0,i.index)),a.push(t(r[i[1]],r)),e=e.slice(i.index+i[0].length)}return a.push(e),a}(r[0],r)}function i(t,e){if(e&amp;&amp;e.flat){var r,n=e&amp;&amp;e.escape||&quot;___&quot;,i=t[0];if(!i)return&quot;&quot;;for(var a=new RegExp(&quot;\\&quot;+n+&quot;([0-9]+)\\&quot;+n),o=0;i!=r;){if(o++&gt;1e4)throw Error(&quot;Circular references in &quot;+t);r=i,i=i.replace(a,s)}return i}return t.reduce((function t(e,r){return Array.isArray(r)&amp;&amp;(r=r.reduce(t,&quot;&quot;)),e+r}),&quot;&quot;);function s(e,r){if(null==t[r])throw Error(&quot;Reference &quot;+r+&quot;is undefined&quot;);return t[r]}}function a(t,e){return Array.isArray(t)?i(t,e):n(t,e)}a.parse=n,a.stringify=i,e.exports=a},{}],504:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;);e.exports=function(t){var e;arguments.length&gt;1&amp;&amp;(t=arguments);&quot;string&quot;==typeof t?t=t.split(/\s/).map(parseFloat):&quot;number&quot;==typeof t&amp;&amp;(t=[t]);t.length&amp;&amp;&quot;number&quot;==typeof t[0]?e=1===t.length?{width:t[0],height:t[0],x:0,y:0}:2===t.length?{width:t[0],height:t[1],x:0,y:0}:{x:t[0],y:t[1],width:t[2]-t[0]||0,height:t[3]-t[1]||0}:t&amp;&amp;(t=n(t,{left:&quot;x l left Left&quot;,top:&quot;y t top Top&quot;,width:&quot;w width W Width&quot;,height:&quot;h height W Width&quot;,bottom:&quot;b bottom Bottom&quot;,right:&quot;r right Right&quot;}),e={x:t.left||0,y:t.top||0},null==t.width?t.right?e.width=t.right-e.x:e.width=0:e.width=t.width,null==t.height?t.bottom?e.height=t.bottom-e.y:e.height=0:e.height=t.height);return e}},{&quot;pick-by-alias&quot;:511}],505:[function(t,e,r){e.exports=function(t){var e=[];return t.replace(i,(function(t,r,i){var o=r.toLowerCase();for(i=function(t){var e=t.match(a);return e?e.map(Number):[]}(i),&quot;m&quot;==o&amp;&amp;i.length&gt;2&amp;&amp;(e.push([r].concat(i.splice(0,2))),o=&quot;l&quot;,r=&quot;m&quot;==r?&quot;l&quot;:&quot;L&quot;);;){if(i.length==n[o])return i.unshift(r),e.push(i);if(i.length&lt;n[o])throw new Error(&quot;malformed path data&quot;);e.push([r].concat(i.splice(0,n[o])))}})),e};var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var a=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},{}],506:[function(t,e,r){e.exports=function(t,e){e||(e=[0,&quot;&quot;]),t=String(t);var r=parseFloat(t,10);return e[0]=r,e[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||&quot;&quot;,e}},{}],507:[function(t,e,r){(function(t){(function(){&quot;use strict&quot;;function r(t){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;Path must be a string. Received &quot;+JSON.stringify(t))}function n(t,e){for(var r,n=&quot;&quot;,i=0,a=-1,o=0,s=0;s&lt;=t.length;++s){if(s&lt;t.length)r=t.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(a===s-1||1===o);else if(a!==s-1&amp;&amp;2===o){if(n.length&lt;2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length&gt;2){var l=n.lastIndexOf(&quot;/&quot;);if(l!==n.length-1){-1===l?(n=&quot;&quot;,i=0):i=(n=n.slice(0,l)).length-1-n.lastIndexOf(&quot;/&quot;),a=s,o=0;continue}}else if(2===n.length||1===n.length){n=&quot;&quot;,i=0,a=s,o=0;continue}e&amp;&amp;(n.length&gt;0?n+=&quot;/..&quot;:n=&quot;..&quot;,i=2)}else n.length&gt;0?n+=&quot;/&quot;+t.slice(a+1,s):n=t.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===r&amp;&amp;-1!==o?++o:o=-1}return n}var i={resolve:function(){for(var e,i=&quot;&quot;,a=!1,o=arguments.length-1;o&gt;=-1&amp;&amp;!a;o--){var s;o&gt;=0?s=arguments[o]:(void 0===e&amp;&amp;(e=t.cwd()),s=e),r(s),0!==s.length&amp;&amp;(i=s+&quot;/&quot;+i,a=47===s.charCodeAt(0))}return i=n(i,!a),a?i.length&gt;0?&quot;/&quot;+i:&quot;/&quot;:i.length&gt;0?i:&quot;.&quot;},normalize:function(t){if(r(t),0===t.length)return&quot;.&quot;;var e=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1);return 0!==(t=n(t,!e)).length||e||(t=&quot;.&quot;),t.length&gt;0&amp;&amp;i&amp;&amp;(t+=&quot;/&quot;),e?&quot;/&quot;+t:t},isAbsolute:function(t){return r(t),t.length&gt;0&amp;&amp;47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return&quot;.&quot;;for(var t,e=0;e&lt;arguments.length;++e){var n=arguments[e];r(n),n.length&gt;0&amp;&amp;(void 0===t?t=n:t+=&quot;/&quot;+n)}return void 0===t?&quot;.&quot;:i.normalize(t)},relative:function(t,e){if(r(t),r(e),t===e)return&quot;&quot;;if((t=i.resolve(t))===(e=i.resolve(e)))return&quot;&quot;;for(var n=1;n&lt;t.length&amp;&amp;47===t.charCodeAt(n);++n);for(var a=t.length,o=a-n,s=1;s&lt;e.length&amp;&amp;47===e.charCodeAt(s);++s);for(var l=e.length-s,c=o&lt;l?o:l,u=-1,f=0;f&lt;=c;++f){if(f===c){if(l&gt;c){if(47===e.charCodeAt(s+f))return e.slice(s+f+1);if(0===f)return e.slice(s+f)}else o&gt;c&amp;&amp;(47===t.charCodeAt(n+f)?u=f:0===f&amp;&amp;(u=0));break}var h=t.charCodeAt(n+f);if(h!==e.charCodeAt(s+f))break;47===h&amp;&amp;(u=f)}var p=&quot;&quot;;for(f=n+u+1;f&lt;=a;++f)f!==a&amp;&amp;47!==t.charCodeAt(f)||(0===p.length?p+=&quot;..&quot;:p+=&quot;/..&quot;);return p.length&gt;0?p+e.slice(s+u):(s+=u,47===e.charCodeAt(s)&amp;&amp;++s,e.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(r(t),0===t.length)return&quot;.&quot;;for(var e=t.charCodeAt(0),n=47===e,i=-1,a=!0,o=t.length-1;o&gt;=1;--o)if(47===(e=t.charCodeAt(o))){if(!a){i=o;break}}else a=!1;return-1===i?n?&quot;/&quot;:&quot;.&quot;:n&amp;&amp;1===i?&quot;//&quot;:t.slice(0,i)},basename:function(t,e){if(void 0!==e&amp;&amp;&quot;string&quot;!=typeof e)throw new TypeError('&quot;ext&quot; argument must be a string');r(t);var n,i=0,a=-1,o=!0;if(void 0!==e&amp;&amp;e.length&gt;0&amp;&amp;e.length&lt;=t.length){if(e.length===t.length&amp;&amp;e===t)return&quot;&quot;;var s=e.length-1,l=-1;for(n=t.length-1;n&gt;=0;--n){var c=t.charCodeAt(n);if(47===c){if(!o){i=n+1;break}}else-1===l&amp;&amp;(o=!1,l=n+1),s&gt;=0&amp;&amp;(c===e.charCodeAt(s)?-1==--s&amp;&amp;(a=n):(s=-1,a=l))}return i===a?a=l:-1===a&amp;&amp;(a=t.length),t.slice(i,a)}for(n=t.length-1;n&gt;=0;--n)if(47===t.charCodeAt(n)){if(!o){i=n+1;break}}else-1===a&amp;&amp;(o=!1,a=n+1);return-1===a?&quot;&quot;:t.slice(i,a)},extname:function(t){r(t);for(var e=-1,n=0,i=-1,a=!0,o=0,s=t.length-1;s&gt;=0;--s){var l=t.charCodeAt(s);if(47!==l)-1===i&amp;&amp;(a=!1,i=s+1),46===l?-1===e?e=s:1!==o&amp;&amp;(o=1):-1!==e&amp;&amp;(o=-1);else if(!a){n=s+1;break}}return-1===e||-1===i||0===o||1===o&amp;&amp;e===i-1&amp;&amp;e===n+1?&quot;&quot;:t.slice(e,i)},format:function(t){if(null===t||&quot;object&quot;!=typeof t)throw new TypeError('The &quot;pathObject&quot; argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||&quot;&quot;)+(e.ext||&quot;&quot;);return r?r===e.root?r+n:r+t+n:n}(&quot;/&quot;,t)},parse:function(t){r(t);var e={root:&quot;&quot;,dir:&quot;&quot;,base:&quot;&quot;,ext:&quot;&quot;,name:&quot;&quot;};if(0===t.length)return e;var n,i=t.charCodeAt(0),a=47===i;a?(e.root=&quot;/&quot;,n=1):n=0;for(var o=-1,s=0,l=-1,c=!0,u=t.length-1,f=0;u&gt;=n;--u)if(47!==(i=t.charCodeAt(u)))-1===l&amp;&amp;(c=!1,l=u+1),46===i?-1===o?o=u:1!==f&amp;&amp;(f=1):-1!==o&amp;&amp;(f=-1);else if(!c){s=u+1;break}return-1===o||-1===l||0===f||1===f&amp;&amp;o===l-1&amp;&amp;o===s+1?-1!==l&amp;&amp;(e.base=e.name=0===s&amp;&amp;a?t.slice(1,l):t.slice(s,l)):(0===s&amp;&amp;a?(e.name=t.slice(1,o),e.base=t.slice(1,l)):(e.name=t.slice(s,o),e.base=t.slice(s,l)),e.ext=t.slice(o,l)),s&gt;0?e.dir=t.slice(0,s-1):a&amp;&amp;(e.dir=&quot;/&quot;),e},sep:&quot;/&quot;,delimiter:&quot;:&quot;,win32:null,posix:null};i.posix=i,e.exports=i}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:526}],508:[function(t,e,r){(function(t){(function(){(function(){var r,n,i,a,o,s;&quot;undefined&quot;!=typeof performance&amp;&amp;null!==performance&amp;&amp;performance.now?e.exports=function(){return performance.now()}:&quot;undefined&quot;!=typeof t&amp;&amp;null!==t&amp;&amp;t.hrtime?(e.exports=function(){return(r()-o)/1e6},n=t.hrtime,a=(r=function(){var t;return 1e9*(t=n())[0]+t[1]})(),s=1e9*t.uptime(),o=a-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:526}],509:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(e&lt;32){for(var r=1,i=0;i&lt;e;++i)for(var a=0;a&lt;i;++a)if(t[i]&lt;t[a])r=-r;else if(t[i]===t[a])return 0;return r}var o=n.mallocUint8(e);for(i=0;i&lt;e;++i)o[i]=0;for(r=1,i=0;i&lt;e;++i)if(!o[i]){var s=1;o[i]=1;for(a=t[i];a!==i;a=t[a]){if(o[a])return n.freeUint8(o),0;s+=1,o[a]=1}1&amp;s||(r=-r)}return n.freeUint8(o),r};var n=t(&quot;typedarray-pool&quot;)},{&quot;typedarray-pool&quot;:595}],510:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=t(&quot;invert-permutation&quot;);r.rank=function(t){var e=t.length;switch(e){case 0:case 1:return 0;case 2:return t[1]}var r,a,o,s=n.mallocUint32(e),l=n.mallocUint32(e),c=0;for(i(t,l),o=0;o&lt;e;++o)s[o]=t[o];for(o=e-1;o&gt;0;--o)a=l[o],r=s[o],s[o]=s[a],s[a]=r,l[o]=l[r],l[r]=a,c=(c+r)*o;return n.freeUint32(l),n.freeUint32(s),c},r.unrank=function(t,e,r){switch(t){case 0:return r||[];case 1:return r?(r[0]=0,r):[0];case 2:return r?(e?(r[0]=0,r[1]=1):(r[0]=1,r[1]=0),r):e?[0,1]:[1,0]}var n,i,a,o=1;for((r=r||new Array(t))[0]=0,a=1;a&lt;t;++a)r[a]=a,o=o*a|0;for(a=t-1;a&gt;0;--a)e=e-(n=e/o|0)*o|0,o=o/a|0,i=0|r[a],r[a]=0|r[n],r[n]=0|i;return r}},{&quot;invert-permutation&quot;:462,&quot;typedarray-pool&quot;:595}],511:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n,a,o={};if(&quot;string&quot;==typeof e&amp;&amp;(e=i(e)),Array.isArray(e)){var s={};for(a=0;a&lt;e.length;a++)s[e[a]]=!0;e=s}for(n in e)e[n]=i(e[n]);var l={};for(n in e){var c=e[n];if(Array.isArray(c))for(a=0;a&lt;c.length;a++){var u=c[a];if(r&amp;&amp;(l[u]=!0),u in t){if(o[n]=t[u],r)for(var f=a;f&lt;c.length;f++)l[c[f]]=!0;break}}else n in t&amp;&amp;(e[n]&amp;&amp;(o[n]=t[n]),r&amp;&amp;(l[n]=!0))}if(r)for(n in t)l[n]||(o[n]=t[n]);return o};var n={};function i(t){return n[t]?n[t]:(&quot;string&quot;==typeof t&amp;&amp;(t=n[t]=t.split(/\s*,\s*|\s+/)),t)}},{}],512:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=0|e.length,i=t.length,a=[new Array(r),new Array(r)],o=0;o&lt;r;++o)a[0][o]=[],a[1][o]=[];for(o=0;o&lt;i;++o){var s=t[o];a[0][s[0]].push(s),a[1][s[1]].push(s)}var l=[];for(o=0;o&lt;r;++o)a[0][o].length+a[1][o].length===0&amp;&amp;l.push([o]);function c(t,e){var r=a[e][t[e]];r.splice(r.indexOf(t),1)}function u(t,r,i){for(var o,s,l,u=0;u&lt;2;++u)if(a[u][r].length&gt;0){o=a[u][r][0],l=u;break}s=o[1^l];for(var f=0;f&lt;2;++f)for(var h=a[f][r],p=0;p&lt;h.length;++p){var d=h[p],g=d[1^f];n(e[t],e[r],e[s],e[g])&gt;0&amp;&amp;(o=d,s=g,l=f)}return i||o&amp;&amp;c(o,l),s}function f(t,r){var i=a[r][t][0],o=[t];c(i,r);for(var s=i[1^r];;){for(;s!==t;)o.push(s),s=u(o[o.length-2],s,!1);if(a[0][t].length+a[1][t].length===0)break;var l=o[o.length-1],f=t,h=o[1],p=u(l,f,!0);if(n(e[l],e[f],e[h],e[p])&lt;0)break;o.push(t),s=u(l,f)}return o}function h(t,e){return e[1]===e[e.length-1]}for(o=0;o&lt;r;++o)for(var p=0;p&lt;2;++p){for(var d=[];a[p][o].length&gt;0;){a[0][o].length;var g=f(o,p);h(0,g)?d.push.apply(d,g):(d.length&gt;0&amp;&amp;l.push(d),d=g)}d.length&gt;0&amp;&amp;l.push(d)}return l};var n=t(&quot;compare-angle&quot;)},{&quot;compare-angle&quot;:132}],513:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=n(t,e.length),i=new Array(e.length),a=new Array(e.length),o=[],s=0;s&lt;e.length;++s){var l=r[s].length;a[s]=l,i[s]=!0,l&lt;=1&amp;&amp;o.push(s)}for(;o.length&gt;0;){var c=o.pop();i[c]=!1;var u=r[c];for(s=0;s&lt;u.length;++s){var f=u[s];0==--a[f]&amp;&amp;o.push(f)}}var h=new Array(e.length),p=[];for(s=0;s&lt;e.length;++s)if(i[s]){c=p.length;h[s]=c,p.push(e[s])}else h[s]=-1;var d=[];for(s=0;s&lt;t.length;++s){var g=t[s];i[g[0]]&amp;&amp;i[g[1]]&amp;&amp;d.push([h[g[0]],h[g[1]]])}return[d,p]};var n=t(&quot;edges-to-adjacency-list&quot;)},{&quot;edges-to-adjacency-list&quot;:178}],514:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=c(t,e);t=r[0];for(var f=(e=r[1]).length,h=(t.length,n(t,e.length)),p=0;p&lt;f;++p)if(h[p].length%2==1)throw new Error(&quot;planar-graph-to-polyline: graph must be manifold&quot;);var d=i(t,e);var g=(d=d.filter((function(t){for(var r=t.length,n=[0],i=0;i&lt;r;++i){var a=e[t[i]],l=e[t[(i+1)%r]],c=o(-a[0],a[1]),u=o(-a[0],l[1]),f=o(l[0],a[1]),h=o(l[0],l[1]);n=s(n,s(s(c,u),s(f,h)))}return n[n.length-1]&gt;0}))).length,m=new Array(g),v=new Array(g);for(p=0;p&lt;g;++p){m[p]=p;var y=new Array(g),x=d[p].map((function(t){return e[t]})),b=a([x]),_=0;t:for(var w=0;w&lt;g;++w)if(y[w]=0,p!==w){for(var T=(q=d[w]).length,k=0;k&lt;T;++k){var M=b(e[q[k]]);if(0!==M){M&lt;0&amp;&amp;(y[w]=1,_+=1);continue t}}y[w]=1,_+=1}v[p]=[_,p,y]}v.sort((function(t,e){return e[0]-t[0]}));for(p=0;p&lt;g;++p){var A=(y=v[p])[1],S=y[2];for(w=0;w&lt;g;++w)S[w]&amp;&amp;(m[w]=A)}var E=function(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=[];return e}(g);for(p=0;p&lt;g;++p)E[p].push(m[p]),E[m[p]].push(p);var C={},L=u(f,!1);for(p=0;p&lt;g;++p)for(T=(q=d[p]).length,w=0;w&lt;T;++w){var I=q[w],P=q[(w+1)%T],z=Math.min(I,P)+&quot;:&quot;+Math.max(I,P);if(z in C){var O=C[z];E[O].push(p),E[p].push(O),L[I]=L[P]=!0}else C[z]=p}function D(t){for(var e=t.length,r=0;r&lt;e;++r)if(!L[t[r]])return!1;return!0}var R=[],F=u(g,-1);for(p=0;p&lt;g;++p)m[p]!==p||D(d[p])?F[p]=-1:(R.push(p),F[p]=0);r=[];for(;R.length&gt;0;){var B=R.pop(),N=E[B];l(N,(function(t,e){return t-e}));var j,U=N.length,V=F[B];if(0===V){var q=d[B];j=[q]}for(p=0;p&lt;U;++p){var H=N[p];if(!(F[H]&gt;=0))if(F[H]=1^V,R.push(H),0===V)D(q=d[H])||(q.reverse(),j.push(q))}0===V&amp;&amp;r.push(j)}return r};var n=t(&quot;edges-to-adjacency-list&quot;),i=t(&quot;planar-dual&quot;),a=t(&quot;point-in-big-polygon&quot;),o=t(&quot;two-product&quot;),s=t(&quot;robust-sum&quot;),l=t(&quot;uniq&quot;),c=t(&quot;./lib/trim-leaves&quot;);function u(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}},{&quot;./lib/trim-leaves&quot;:513,&quot;edges-to-adjacency-list&quot;:178,&quot;planar-dual&quot;:512,&quot;point-in-big-polygon&quot;:516,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582,uniq:597}],515:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],516:[function(t,e,r){e.exports=function(t){for(var e=t.length,r=[],a=[],s=0;s&lt;e;++s)for(var u=t[s],f=u.length,h=f-1,p=0;p&lt;f;h=p++){var d=u[h],g=u[p];d[0]===g[0]?a.push([d,g]):r.push([d,g])}if(0===r.length)return 0===a.length?c:(m=l(a),function(t){return m(t[0],t[1])?0:1});var m;var v=i(r),y=function(t,e){return function(r){var i=o.le(e,r[0]);if(i&lt;0)return 1;var a=t[i];if(!a){if(!(i&gt;0&amp;&amp;e[i]===r[0]))return 1;a=t[i-1]}for(var s=1;a;){var l=a.key,c=n(r,l[0],l[1]);if(l[0][0]&lt;l[1][0])if(c&lt;0)a=a.left;else{if(!(c&gt;0))return 0;s=-1,a=a.right}else if(c&gt;0)a=a.left;else{if(!(c&lt;0))return 0;s=1,a=a.right}}return s}}(v.slabs,v.coordinates);return 0===a.length?y:function(t,e){return function(r){return t(r[0],r[1])?0:e(r)}}(l(a),y)};var n=t(&quot;robust-orientation&quot;)[3],i=t(&quot;slab-decomposition&quot;),a=t(&quot;interval-tree-1d&quot;),o=t(&quot;binary-search-bounds&quot;);function s(){return!0}function l(t){for(var e={},r=0;r&lt;t.length;++r){var n=t[r],i=n[0][0],o=n[0][1],l=n[1][1],c=[Math.min(o,l),Math.max(o,l)];i in e?e[i].push(c):e[i]=[c]}var u={},f=Object.keys(e);for(r=0;r&lt;f.length;++r){var h=e[f[r]];u[f[r]]=a(h)}return function(t){return function(e,r){var n=t[e];return!!n&amp;&amp;!!n.queryPoint(r,s)}}(u)}function c(t){return 1}},{&quot;binary-search-bounds&quot;:515,&quot;interval-tree-1d&quot;:460,&quot;robust-orientation&quot;:548,&quot;slab-decomposition&quot;:565}],517:[function(t,e,r){
/*
 * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
 * @license MIT
 * @preserve Project Home: https://github.com/voidqk/polybooljs
 */
var n,i=t(&quot;./lib/build-log&quot;),a=t(&quot;./lib/epsilon&quot;),o=t(&quot;./lib/intersecter&quot;),s=t(&quot;./lib/segment-chainer&quot;),l=t(&quot;./lib/segment-selector&quot;),c=t(&quot;./lib/geojson&quot;),u=!1,f=a();function h(t,e,r){var i=n.segments(t),a=n.segments(e),o=r(n.combine(i,a));return n.polygon(o)}n={buildLog:function(t){return!0===t?u=i():!1===t&amp;&amp;(u=!1),!1!==u&amp;&amp;u.list},epsilon:function(t){return f.epsilon(t)},segments:function(t){var e=o(!0,f,u);return t.regions.forEach(e.addRegion),{segments:e.calculate(t.inverted),inverted:t.inverted}},combine:function(t,e){return{combined:o(!1,f,u).calculate(t.segments,t.inverted,e.segments,e.inverted),inverted1:t.inverted,inverted2:e.inverted}},selectUnion:function(t){return{segments:l.union(t.combined,u),inverted:t.inverted1||t.inverted2}},selectIntersect:function(t){return{segments:l.intersect(t.combined,u),inverted:t.inverted1&amp;&amp;t.inverted2}},selectDifference:function(t){return{segments:l.difference(t.combined,u),inverted:t.inverted1&amp;&amp;!t.inverted2}},selectDifferenceRev:function(t){return{segments:l.differenceRev(t.combined,u),inverted:!t.inverted1&amp;&amp;t.inverted2}},selectXor:function(t){return{segments:l.xor(t.combined,u),inverted:t.inverted1!==t.inverted2}},polygon:function(t){return{regions:s(t.segments,f,u),inverted:t.inverted}},polygonFromGeoJSON:function(t){return c.toPolygon(n,t)},polygonToGeoJSON:function(t){return c.fromPolygon(n,f,t)},union:function(t,e){return h(t,e,n.selectUnion)},intersect:function(t,e){return h(t,e,n.selectIntersect)},difference:function(t,e){return h(t,e,n.selectDifference)},differenceRev:function(t,e){return h(t,e,n.selectDifferenceRev)},xor:function(t,e){return h(t,e,n.selectXor)}},&quot;object&quot;==typeof window&amp;&amp;(window.PolyBool=n),e.exports=n},{&quot;./lib/build-log&quot;:518,&quot;./lib/epsilon&quot;:519,&quot;./lib/geojson&quot;:520,&quot;./lib/intersecter&quot;:521,&quot;./lib/segment-chainer&quot;:523,&quot;./lib/segment-selector&quot;:524}],518:[function(t,e,r){e.exports=function(){var t,e=0,r=!1;function n(e,r){return t.list.push({type:e,data:r?JSON.parse(JSON.stringify(r)):void 0}),t}return t={list:[],segmentId:function(){return e++},checkIntersection:function(t,e){return n(&quot;check&quot;,{seg1:t,seg2:e})},segmentChop:function(t,e){return n(&quot;div_seg&quot;,{seg:t,pt:e}),n(&quot;chop&quot;,{seg:t,pt:e})},statusRemove:function(t){return n(&quot;pop_seg&quot;,{seg:t})},segmentUpdate:function(t){return n(&quot;seg_update&quot;,{seg:t})},segmentNew:function(t,e){return n(&quot;new_seg&quot;,{seg:t,primary:e})},segmentRemove:function(t){return n(&quot;rem_seg&quot;,{seg:t})},tempStatus:function(t,e,r){return n(&quot;temp_status&quot;,{seg:t,above:e,below:r})},rewind:function(t){return n(&quot;rewind&quot;,{seg:t})},status:function(t,e,r){return n(&quot;status&quot;,{seg:t,above:e,below:r})},vert:function(e){return e===r?t:(r=e,n(&quot;vert&quot;,{x:e}))},log:function(t){return&quot;string&quot;!=typeof t&amp;&amp;(t=JSON.stringify(t,!1,&quot;  &quot;)),n(&quot;log&quot;,{txt:t})},reset:function(){return n(&quot;reset&quot;)},selected:function(t){return n(&quot;selected&quot;,{segs:t})},chainStart:function(t){return n(&quot;chain_start&quot;,{seg:t})},chainRemoveHead:function(t,e){return n(&quot;chain_rem_head&quot;,{index:t,pt:e})},chainRemoveTail:function(t,e){return n(&quot;chain_rem_tail&quot;,{index:t,pt:e})},chainNew:function(t,e){return n(&quot;chain_new&quot;,{pt1:t,pt2:e})},chainMatch:function(t){return n(&quot;chain_match&quot;,{index:t})},chainClose:function(t){return n(&quot;chain_close&quot;,{index:t})},chainAddHead:function(t,e){return n(&quot;chain_add_head&quot;,{index:t,pt:e})},chainAddTail:function(t,e){return n(&quot;chain_add_tail&quot;,{index:t,pt:e})},chainConnect:function(t,e){return n(&quot;chain_con&quot;,{index1:t,index2:e})},chainReverse:function(t){return n(&quot;chain_rev&quot;,{index:t})},chainJoin:function(t,e){return n(&quot;chain_join&quot;,{index1:t,index2:e})},done:function(){return n(&quot;done&quot;)}}}},{}],519:[function(t,e,r){e.exports=function(t){&quot;number&quot;!=typeof t&amp;&amp;(t=1e-10);var e={epsilon:function(e){return&quot;number&quot;==typeof e&amp;&amp;(t=e),t},pointAboveOrOnLine:function(e,r,n){var i=r[0],a=r[1],o=n[0],s=n[1],l=e[0];return(o-i)*(e[1]-a)-(s-a)*(l-i)&gt;=-t},pointBetween:function(e,r,n){var i=e[1]-r[1],a=n[0]-r[0],o=e[0]-r[0],s=n[1]-r[1],l=o*a+i*s;return!(l&lt;t)&amp;&amp;!(l-(a*a+s*s)&gt;-t)},pointsSameX:function(e,r){return Math.abs(e[0]-r[0])&lt;t},pointsSameY:function(e,r){return Math.abs(e[1]-r[1])&lt;t},pointsSame:function(t,r){return e.pointsSameX(t,r)&amp;&amp;e.pointsSameY(t,r)},pointsCompare:function(t,r){return e.pointsSameX(t,r)?e.pointsSameY(t,r)?0:t[1]&lt;r[1]?-1:1:t[0]&lt;r[0]?-1:1},pointsCollinear:function(e,r,n){var i=e[0]-r[0],a=e[1]-r[1],o=r[0]-n[0],s=r[1]-n[1];return Math.abs(i*s-o*a)&lt;t},linesIntersect:function(e,r,n,i){var a=r[0]-e[0],o=r[1]-e[1],s=i[0]-n[0],l=i[1]-n[1],c=a*l-o*s;if(Math.abs(c)&lt;t)return!1;var u=e[0]-n[0],f=e[1]-n[1],h=(s*f-l*u)/c,p=(a*f-o*u)/c,d={alongA:0,alongB:0,pt:[e[0]+h*a,e[1]+h*o]};return d.alongA=h&lt;=-t?-2:h&lt;t?-1:h-1&lt;=-t?0:h-1&lt;t?1:2,d.alongB=p&lt;=-t?-2:p&lt;t?-1:p-1&lt;=-t?0:p-1&lt;t?1:2,d},pointInsideRegion:function(e,r){for(var n=e[0],i=e[1],a=r[r.length-1][0],o=r[r.length-1][1],s=!1,l=0;l&lt;r.length;l++){var c=r[l][0],u=r[l][1];u-i&gt;t!=o-i&gt;t&amp;&amp;(a-c)*(i-u)/(o-u)+c-n&gt;t&amp;&amp;(s=!s),a=c,o=u}return s}};return e}},{}],520:[function(t,e,r){var n={toPolygon:function(t,e){function r(e){if(e.length&lt;=0)return t.segments({inverted:!1,regions:[]});function r(e){var r=e.slice(0,e.length-1);return t.segments({inverted:!1,regions:[r]})}for(var n=r(e[0]),i=1;i&lt;e.length;i++)n=t.selectDifference(t.combine(n,r(e[i])));return n}if(&quot;Polygon&quot;===e.type)return t.polygon(r(e.coordinates));if(&quot;MultiPolygon&quot;===e.type){for(var n=t.segments({inverted:!1,regions:[]}),i=0;i&lt;e.coordinates.length;i++)n=t.selectUnion(t.combine(n,r(e.coordinates[i])));return t.polygon(n)}throw new Error(&quot;PolyBool: Cannot convert GeoJSON object to PolyBool polygon&quot;)},fromPolygon:function(t,e,r){function n(t,r){return e.pointInsideRegion([.5*(t[0][0]+t[1][0]),.5*(t[0][1]+t[1][1])],r)}function i(t){return{region:t,children:[]}}r=t.polygon(t.segments(r));var a=i(null);function o(t,e){for(var r=0;r&lt;t.children.length;r++){if(n(e,(s=t.children[r]).region))return void o(s,e)}var a=i(e);for(r=0;r&lt;t.children.length;r++){var s;n((s=t.children[r]).region,e)&amp;&amp;(a.children.push(s),t.children.splice(r,1),r--)}t.children.push(a)}for(var s=0;s&lt;r.regions.length;s++){var l=r.regions[s];l.length&lt;3||o(a,l)}function c(t,e){for(var r=0,n=t[t.length-1][0],i=t[t.length-1][1],a=[],o=0;o&lt;t.length;o++){var s=t[o][0],l=t[o][1];a.push([s,l]),r+=l*n-s*i,n=s,i=l}return r&lt;0!==e&amp;&amp;a.reverse(),a.push([a[0][0],a[0][1]]),a}var u=[];function f(t){var e=[c(t.region,!1)];u.push(e);for(var r=0;r&lt;t.children.length;r++)e.push(h(t.children[r]))}function h(t){for(var e=0;e&lt;t.children.length;e++)f(t.children[e]);return c(t.region,!0)}for(s=0;s&lt;a.children.length;s++)f(a.children[s]);return u.length&lt;=0?{type:&quot;Polygon&quot;,coordinates:[]}:1==u.length?{type:&quot;Polygon&quot;,coordinates:u[0]}:{type:&quot;MultiPolygon&quot;,coordinates:u}}};e.exports=n},{}],521:[function(t,e,r){var n=t(&quot;./linked-list&quot;);e.exports=function(t,e,r){function i(t,e,n){return{id:r?r.segmentId():-1,start:t,end:e,myFill:{above:n.myFill.above,below:n.myFill.below},otherFill:null}}var a=n.create();function o(t,r){a.insertBefore(t,(function(n){return function(t,r,n,i,a,o){var s=e.pointsCompare(r,a);return 0!==s?s:e.pointsSame(n,o)?0:t!==i?t?1:-1:e.pointAboveOrOnLine(n,i?a:o,i?o:a)?1:-1}(t.isStart,t.pt,r,n.isStart,n.pt,n.other.pt)&lt;0}))}function s(t,e){var r=function(t,e){var r=n.node({isStart:!0,pt:t.start,seg:t,primary:e,other:null,status:null});return o(r,t.end),r}(t,e);return function(t,e,r){var i=n.node({isStart:!1,pt:e.end,seg:e,primary:r,other:t,status:null});t.other=i,o(i,t.pt)}(r,t,e),r}function l(t,e){var n=i(e,t.seg.end,t.seg);return function(t,e){r&amp;&amp;r.segmentChop(t.seg,e),t.other.remove(),t.seg.end=e,t.other.pt=e,o(t.other,t.pt)}(t,e),s(n,t.primary)}function c(i,o){var s=n.create();function c(t){return s.findTransition((function(r){var n,i,a,o,s,l;return(n=t,i=r.ev,a=n.seg.start,o=n.seg.end,s=i.seg.start,l=i.seg.end,e.pointsCollinear(a,s,l)?e.pointsCollinear(o,s,l)||e.pointAboveOrOnLine(o,s,l)?1:-1:e.pointAboveOrOnLine(a,s,l)?1:-1)&gt;0}))}function u(t,n){var i=t.seg,a=n.seg,o=i.start,s=i.end,c=a.start,u=a.end;r&amp;&amp;r.checkIntersection(i,a);var f=e.linesIntersect(o,s,c,u);if(!1===f){if(!e.pointsCollinear(o,s,c))return!1;if(e.pointsSame(o,u)||e.pointsSame(s,c))return!1;var h=e.pointsSame(o,c),p=e.pointsSame(s,u);if(h&amp;&amp;p)return n;var d=!h&amp;&amp;e.pointBetween(o,c,u),g=!p&amp;&amp;e.pointBetween(s,c,u);if(h)return g?l(n,s):l(t,u),n;d&amp;&amp;(p||(g?l(n,s):l(t,u)),l(n,o))}else 0===f.alongA&amp;&amp;(-1===f.alongB?l(t,c):0===f.alongB?l(t,f.pt):1===f.alongB&amp;&amp;l(t,u)),0===f.alongB&amp;&amp;(-1===f.alongA?l(n,o):0===f.alongA?l(n,f.pt):1===f.alongA&amp;&amp;l(n,s));return!1}for(var f=[];!a.isEmpty();){var h=a.getHead();if(r&amp;&amp;r.vert(h.pt[0]),h.isStart){r&amp;&amp;r.segmentNew(h.seg,h.primary);var p=c(h),d=p.before?p.before.ev:null,g=p.after?p.after.ev:null;function m(){if(d){var t=u(h,d);if(t)return t}return!!g&amp;&amp;u(h,g)}r&amp;&amp;r.tempStatus(h.seg,!!d&amp;&amp;d.seg,!!g&amp;&amp;g.seg);var v,y=m();if(y){var x;if(t)(x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below)&amp;&amp;(y.seg.myFill.above=!y.seg.myFill.above);else y.seg.otherFill=h.seg.myFill;r&amp;&amp;r.segmentUpdate(y.seg),h.other.remove(),h.remove()}if(a.getHead()!==h){r&amp;&amp;r.rewind(h.seg);continue}if(t)x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below,h.seg.myFill.below=g?g.seg.myFill.above:i,h.seg.myFill.above=x?!h.seg.myFill.below:h.seg.myFill.below;else if(null===h.seg.otherFill)v=g?h.primary===g.primary?g.seg.otherFill.above:g.seg.myFill.above:h.primary?o:i,h.seg.otherFill={above:v,below:v};r&amp;&amp;r.status(h.seg,!!d&amp;&amp;d.seg,!!g&amp;&amp;g.seg),h.other.status=p.insert(n.node({ev:h}))}else{var b=h.status;if(null===b)throw new Error(&quot;PolyBool: Zero-length segment detected; your epsilon is probably too small or too large&quot;);if(s.exists(b.prev)&amp;&amp;s.exists(b.next)&amp;&amp;u(b.prev.ev,b.next.ev),r&amp;&amp;r.statusRemove(b.ev.seg),b.remove(),!h.primary){var _=h.seg.myFill;h.seg.myFill=h.seg.otherFill,h.seg.otherFill=_}f.push(h.seg)}a.getHead().remove()}return r&amp;&amp;r.done(),f}return t?{addRegion:function(t){for(var n,i,a,o=t[t.length-1],l=0;l&lt;t.length;l++){n=o,o=t[l];var c=e.pointsCompare(n,o);0!==c&amp;&amp;s((i=c&lt;0?n:o,a=c&lt;0?o:n,{id:r?r.segmentId():-1,start:i,end:a,myFill:{above:null,below:null},otherFill:null}),!0)}},calculate:function(t){return c(t,!1)}}:{calculate:function(t,e,r,n){return t.forEach((function(t){s(i(t.start,t.end,t),!0)})),r.forEach((function(t){s(i(t.start,t.end,t),!1)})),c(e,n)}}}},{&quot;./linked-list&quot;:522}],522:[function(t,e,r){e.exports={create:function(){var t={root:{root:!0,next:null},exists:function(e){return null!==e&amp;&amp;e!==t.root},isEmpty:function(){return null===t.root.next},getHead:function(){return t.root.next},insertBefore:function(e,r){for(var n=t.root,i=t.root.next;null!==i;){if(r(i))return e.prev=i.prev,e.next=i,i.prev.next=e,void(i.prev=e);n=i,i=i.next}n.next=e,e.prev=n,e.next=null},findTransition:function(e){for(var r=t.root,n=t.root.next;null!==n&amp;&amp;!e(n);)r=n,n=n.next;return{before:r===t.root?null:r,after:n,insert:function(t){return t.prev=r,t.next=n,r.next=t,null!==n&amp;&amp;(n.prev=t),t}}}};return t},node:function(t){return t.prev=null,t.next=null,t.remove=function(){t.prev.next=t.next,t.next&amp;&amp;(t.next.prev=t.prev),t.prev=null,t.next=null},t}}},{}],523:[function(t,e,r){e.exports=function(t,e,r){var n=[],i=[];return t.forEach((function(t){var a=t.start,o=t.end;if(e.pointsSame(a,o))console.warn(&quot;PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large&quot;);else{r&amp;&amp;r.chainStart(t);for(var s={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},c=s,u=0;u&lt;n.length;u++){var f=(m=n[u])[0],h=(m[1],m[m.length-1]);m[m.length-2];if(e.pointsSame(f,a)){if(k(u,!0,!0))break}else if(e.pointsSame(f,o)){if(k(u,!0,!1))break}else if(e.pointsSame(h,a)){if(k(u,!1,!0))break}else if(e.pointsSame(h,o)&amp;&amp;k(u,!1,!1))break}if(c===s)return n.push([a,o]),void(r&amp;&amp;r.chainNew(a,o));if(c===l){r&amp;&amp;r.chainMatch(s.index);var p=s.index,d=s.matches_pt1?o:a,g=s.matches_head,m=n[p],v=g?m[0]:m[m.length-1],y=g?m[1]:m[m.length-2],x=g?m[m.length-1]:m[0],b=g?m[m.length-2]:m[1];return e.pointsCollinear(y,v,d)&amp;&amp;(g?(r&amp;&amp;r.chainRemoveHead(s.index,d),m.shift()):(r&amp;&amp;r.chainRemoveTail(s.index,d),m.pop()),v=y),e.pointsSame(x,d)?(n.splice(p,1),e.pointsCollinear(b,x,v)&amp;&amp;(g?(r&amp;&amp;r.chainRemoveTail(s.index,v),m.pop()):(r&amp;&amp;r.chainRemoveHead(s.index,v),m.shift())),r&amp;&amp;r.chainClose(s.index),void i.push(m)):void(g?(r&amp;&amp;r.chainAddHead(s.index,d),m.unshift(d)):(r&amp;&amp;r.chainAddTail(s.index,d),m.push(d)))}var _=s.index,w=l.index;r&amp;&amp;r.chainConnect(_,w);var T=n[_].length&lt;n[w].length;s.matches_head?l.matches_head?T?(M(_),A(_,w)):(M(w),A(w,_)):A(w,_):l.matches_head?A(_,w):T?(M(_),A(w,_)):(M(w),A(_,w))}function k(t,e,r){return c.index=t,c.matches_head=e,c.matches_pt1=r,c===s?(c=l,!1):(c=null,!0)}function M(t){r&amp;&amp;r.chainReverse(t),n[t].reverse()}function A(t,i){var a=n[t],o=n[i],s=a[a.length-1],l=a[a.length-2],c=o[0],u=o[1];e.pointsCollinear(l,s,c)&amp;&amp;(r&amp;&amp;r.chainRemoveTail(t,s),a.pop(),s=l),e.pointsCollinear(s,c,u)&amp;&amp;(r&amp;&amp;r.chainRemoveHead(i,c),o.shift()),r&amp;&amp;r.chainJoin(t,i),n[t]=a.concat(o),n.splice(i,1)}})),i}},{}],524:[function(t,e,r){function n(t,e,r){var n=[];return t.forEach((function(t){var i=(t.myFill.above?8:0)+(t.myFill.below?4:0)+(t.otherFill&amp;&amp;t.otherFill.above?2:0)+(t.otherFill&amp;&amp;t.otherFill.below?1:0);0!==e[i]&amp;&amp;n.push({id:r?r.segmentId():-1,start:t.start,end:t.end,myFill:{above:1===e[i],below:2===e[i]},otherFill:null})})),r&amp;&amp;r.selected(n),n}var i={union:function(t,e){return n(t,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],e)},intersect:function(t,e){return n(t,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],e)},difference:function(t,e){return n(t,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],e)},differenceRev:function(t,e){return n(t,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],e)},xor:function(t,e){return n(t,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],e)}};e.exports=i},{}],525:[function(t,e,r){&quot;use strict&quot;;var n=new Float64Array(4),i=new Float64Array(4),a=new Float64Array(4);e.exports=function(t,e,r,o,s){n.length&lt;o.length&amp;&amp;(n=new Float64Array(o.length),i=new Float64Array(o.length),a=new Float64Array(o.length));for(var l=0;l&lt;o.length;++l)n[l]=t[l]-o[l],i[l]=e[l]-t[l],a[l]=r[l]-t[l];var c=0,u=0,f=0,h=0,p=0,d=0;for(l=0;l&lt;o.length;++l){var g=i[l],m=a[l],v=n[l];c+=g*g,u+=g*m,f+=m*m,h+=v*g,p+=v*m,d+=v*v}var y,x,b,_,w,T=Math.abs(c*f-u*u),k=u*p-f*h,M=u*h-c*p;if(k+M&lt;=T)if(k&lt;0)M&lt;0&amp;&amp;h&lt;0?(M=0,-h&gt;=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d):(k=0,p&gt;=0?(M=0,y=d):-p&gt;=f?(M=1,y=f+2*p+d):y=p*(M=-p/f)+d);else if(M&lt;0)M=0,h&gt;=0?(k=0,y=d):-h&gt;=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d;else{var A=1/T;y=(k*=A)*(c*k+u*(M*=A)+2*h)+M*(u*k+f*M+2*p)+d}else k&lt;0?(b=f+p)&gt;(x=u+h)?(_=b-x)&gt;=(w=c-2*u+f)?(k=1,M=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(M=1-k)+2*h)+M*(u*k+f*M+2*p)+d:(k=0,b&lt;=0?(M=1,y=f+2*p+d):p&gt;=0?(M=0,y=d):y=p*(M=-p/f)+d):M&lt;0?(b=c+h)&gt;(x=u+p)?(_=b-x)&gt;=(w=c-2*u+f)?(M=1,k=0,y=f+2*p+d):y=(k=1-(M=_/w))*(c*k+u*M+2*h)+M*(u*k+f*M+2*p)+d:(M=0,b&lt;=0?(k=1,y=c+2*h+d):h&gt;=0?(k=0,y=d):y=h*(k=-h/c)+d):(_=f+p-u-h)&lt;=0?(k=0,M=1,y=f+2*p+d):_&gt;=(w=c-2*u+f)?(k=1,M=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(M=1-k)+2*h)+M*(u*k+f*M+2*p)+d;var S=1-k-M;for(l=0;l&lt;o.length;++l)s[l]=S*t[l]+k*e[l]+M*r[l];return y&lt;0?0:y}},{}],526:[function(t,e,r){var n,i,a=e.exports={};function o(){throw new Error(&quot;setTimeout has not been defined&quot;)}function s(){throw new Error(&quot;clearTimeout has not been defined&quot;)}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&amp;&amp;setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n=&quot;function&quot;==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i=&quot;function&quot;==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,u=[],f=!1,h=-1;function p(){f&amp;&amp;c&amp;&amp;(f=!1,c.length?u=c.concat(u):h=-1,u.length&amp;&amp;d())}function d(){if(!f){var t=l(p);f=!0;for(var e=u.length;e;){for(c=u,u=[];++h&lt;e;)c&amp;&amp;c[h].run();h=-1,e=u.length}c=null,f=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&amp;&amp;clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function m(){}a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length&gt;1)for(var r=1;r&lt;arguments.length;r++)e[r-1]=arguments[r];u.push(new g(t,e)),1!==u.length||f||l(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},a.title=&quot;browser&quot;,a.browser=!0,a.env={},a.argv=[],a.version=&quot;&quot;,a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(t){return[]},a.binding=function(t){throw new Error(&quot;process.binding is not supported&quot;)},a.cwd=function(){return&quot;/&quot;},a.chdir=function(t){throw new Error(&quot;process.chdir is not supported&quot;)},a.umask=function(){return 0}},{}],527:[function(t,e,r){e.exports=t(&quot;gl-quat/slerp&quot;)},{&quot;gl-quat/slerp&quot;:325}],528:[function(t,e,r){(function(r){(function(){for(var n=t(&quot;performance-now&quot;),i=&quot;undefined&quot;==typeof window?r:window,a=[&quot;moz&quot;,&quot;webkit&quot;],o=&quot;AnimationFrame&quot;,s=i[&quot;request&quot;+o],l=i[&quot;cancel&quot;+o]||i[&quot;cancelRequest&quot;+o],c=0;!s&amp;&amp;c&lt;a.length;c++)s=i[a[c]+&quot;Request&quot;+o],l=i[a[c]+&quot;Cancel&quot;+o]||i[a[c]+&quot;CancelRequest&quot;+o];if(!s||!l){var u=0,f=0,h=[];s=function(t){if(0===h.length){var e=n(),r=Math.max(0,1e3/60-(e-u));u=r+e,setTimeout((function(){var t=h.slice(0);h.length=0;for(var e=0;e&lt;t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(r))}return h.push({handle:++f,callback:t,cancelled:!1}),f},l=function(t){for(var e=0;e&lt;h.length;e++)h[e].handle===t&amp;&amp;(h[e].cancelled=!0)}}e.exports=function(t){return s.call(i,t)},e.exports.cancel=function(){l.apply(i,arguments)},e.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=s,t.cancelAnimationFrame=l}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;performance-now&quot;:508}],529:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat/add&quot;);e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a&lt;r;++a)i[a]=n(t[a],e[a]);return i}},{&quot;big-rat/add&quot;:80}],530:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=new Array(t.length),r=0;r&lt;t.length;++r)e[r]=n(t[r]);return e};var n=t(&quot;big-rat&quot;)},{&quot;big-rat&quot;:83}],531:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat&quot;),i=t(&quot;big-rat/mul&quot;);e.exports=function(t,e){for(var r=n(e),a=t.length,o=new Array(a),s=0;s&lt;a;++s)o[s]=i(t[s],r);return o}},{&quot;big-rat&quot;:83,&quot;big-rat/mul&quot;:92}],532:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat/sub&quot;);e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a&lt;r;++a)i[a]=n(t[a],e[a]);return i}},{&quot;big-rat/sub&quot;:94}],533:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;compare-cell&quot;),i=t(&quot;compare-oriented-cell&quot;),a=t(&quot;cell-orientation&quot;);e.exports=function(t){t.sort(i);for(var e=t.length,r=0,o=0;o&lt;e;++o){var s=t[o],l=a(s);if(0!==l){if(r&gt;0){var c=t[r-1];if(0===n(s,c)&amp;&amp;a(c)!==l){r-=1;continue}}t[r++]=s}}return t.length=r,t}},{&quot;cell-orientation&quot;:117,&quot;compare-cell&quot;:133,&quot;compare-oriented-cell&quot;:134}],534:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;array-bounds&quot;),i=t(&quot;color-normalize&quot;),a=t(&quot;update-diff&quot;),o=t(&quot;pick-by-alias&quot;),s=t(&quot;object-assign&quot;),l=t(&quot;flatten-vertex-data&quot;),c=t(&quot;to-float32&quot;),u=c.float32,f=c.fract32;e.exports=function(t,e){&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):e=t;e.length&amp;&amp;(e.positions=e);if(!(t=e.regl).hasExtension(&quot;ANGLE_instanced_arrays&quot;))throw Error(&quot;regl-error2d: `ANGLE_instanced_arrays` extension should be enabled&quot;);var r,c,p,d,g,m,v=t._gl,y={color:&quot;black&quot;,capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},x=[];return d=t.buffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:new Uint8Array(0)}),c=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),p=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),g=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),m=t.buffer({usage:&quot;static&quot;,type:&quot;float&quot;,data:h}),T(e),r=t({vert:&quot;\n\t\tprecision highp float;\n\n\t\tattribute vec2 position, positionFract;\n\t\tattribute vec4 error;\n\t\tattribute vec4 color;\n\n\t\tattribute vec2 direction, lineOffset, capOffset;\n\n\t\tuniform vec4 viewport;\n\t\tuniform float lineWidth, capSize;\n\t\tuniform vec2 scale, scaleFract, translate, translateFract;\n\n\t\tvarying vec4 fragColor;\n\n\t\tvoid main() {\n\t\t\tfragColor = color / 255.;\n\n\t\t\tvec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;\n\n\t\t\tvec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;\n\n\t\t\tvec2 position = position + dxy;\n\n\t\t\tvec2 pos = (position + translate) * scale\n\t\t\t\t+ (positionFract + translateFract) * scale\n\t\t\t\t+ (position + translate) * scaleFract\n\t\t\t\t+ (positionFract + translateFract) * scaleFract;\n\n\t\t\tpos += pixelOffset / viewport.zw;\n\n\t\t\tgl_Position = vec4(pos * 2. - 1., 0, 1);\n\t\t}\n\t\t&quot;,frag:&quot;\n\t\tprecision highp float;\n\n\t\tvarying vec4 fragColor;\n\n\t\tuniform float opacity;\n\n\t\tvoid main() {\n\t\t\tgl_FragColor = fragColor;\n\t\t\tgl_FragColor.a *= opacity;\n\t\t}\n\t\t&quot;,uniforms:{range:t.prop(&quot;range&quot;),lineWidth:t.prop(&quot;lineWidth&quot;),capSize:t.prop(&quot;capSize&quot;),opacity:t.prop(&quot;opacity&quot;),scale:t.prop(&quot;scale&quot;),translate:t.prop(&quot;translate&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{color:{buffer:d,offset:function(t,e){return 4*e.offset},divisor:1},position:{buffer:c,offset:function(t,e){return 8*e.offset},divisor:1},positionFract:{buffer:p,offset:function(t,e){return 8*e.offset},divisor:1},error:{buffer:g,offset:function(t,e){return 16*e.offset},divisor:1},direction:{buffer:m,stride:24,offset:0},lineOffset:{buffer:m,stride:24,offset:8},capOffset:{buffer:m,stride:24,offset:16}},primitive:&quot;triangles&quot;,blend:{enable:!0,color:[0,0,0,0],equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},depth:{enable:!1},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;),stencil:!1,instances:t.prop(&quot;count&quot;),count:h.length}),s(b,{update:T,draw:_,destroy:k,regl:t,gl:v,canvas:v.canvas,groups:x}),b;function b(t){t?T(t):null===t&amp;&amp;k(),_()}function _(e){if(&quot;number&quot;==typeof e)return w(e);e&amp;&amp;!Array.isArray(e)&amp;&amp;(e=[e]),t._refresh(),x.forEach((function(t,r){t&amp;&amp;(e&amp;&amp;(e[r]?t.draw=!0:t.draw=!1),t.draw?w(r):t.draw=!0)}))}function w(t){&quot;number&quot;==typeof t&amp;&amp;(t=x[t]),null!=t&amp;&amp;t&amp;&amp;t.count&amp;&amp;t.color&amp;&amp;t.opacity&amp;&amp;t.positions&amp;&amp;t.positions.length&gt;1&amp;&amp;(t.scaleRatio=[t.scale[0]*t.viewport.width,t.scale[1]*t.viewport.height],r(t),t.after&amp;&amp;t.after(t))}function T(t){if(t){null!=t.length?&quot;number&quot;==typeof t[0]&amp;&amp;(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var e=0,r=0;if(b.groups=x=t.map((function(t,c){var u=x[c];return t?(&quot;function&quot;==typeof t?t={after:t}:&quot;number&quot;==typeof t[0]&amp;&amp;(t={positions:t}),t=o(t,{color:&quot;color colors fill&quot;,capSize:&quot;capSize cap capsize cap-size&quot;,lineWidth:&quot;lineWidth line-width width line thickness&quot;,opacity:&quot;opacity alpha&quot;,range:&quot;range dataBox&quot;,viewport:&quot;viewport viewBox&quot;,errors:&quot;errors error&quot;,positions:&quot;positions position data points&quot;}),u||(x[c]=u={id:c,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},t=s({},y,t)),a(u,t,[{lineWidth:function(t){return.5*+t},capSize:function(t){return.5*+t},opacity:parseFloat,errors:function(t){return t=l(t),r+=t.length,t},positions:function(t,r){return t=l(t,&quot;float64&quot;),r.count=Math.floor(t.length/2),r.bounds=n(t,2),r.offset=e,e+=r.count,t}},{color:function(t,e){var r=e.count;if(t||(t=&quot;transparent&quot;),!Array.isArray(t)||&quot;number&quot;==typeof t[0]){var n=t;t=Array(r);for(var a=0;a&lt;r;a++)t[a]=n}if(t.length&lt;r)throw Error(&quot;Not enough colors&quot;);for(var o=new Uint8Array(4*r),s=0;s&lt;r;s++){var l=i(t[s],&quot;uint8&quot;);o.set(l,4*s)}return o},range:function(t,e,r){var n=e.bounds;return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=f(e.scale),e.translateFract=f(e.translate),t},viewport:function(t){var e;return Array.isArray(t)?e={x:t[0],y:t[1],width:t[2]-t[0],height:t[3]-t[1]}:t?(e={x:t.x||t.left||0,y:t.y||t.top||0},t.right?e.width=t.right-e.x:e.width=t.w||t.width||0,t.bottom?e.height=t.bottom-e.y:e.height=t.h||t.height||0):e={x:0,y:0,width:v.drawingBufferWidth,height:v.drawingBufferHeight},e}}]),u):u})),e||r){var h=x.reduce((function(t,e,r){return t+(e?e.count:0)}),0),m=new Float64Array(2*h),_=new Uint8Array(4*h),w=new Float32Array(4*h);x.forEach((function(t,e){if(t){var r=t.positions,n=t.count,i=t.offset,a=t.color,o=t.errors;n&amp;&amp;(_.set(a,4*i),w.set(o,4*i),m.set(r,2*i))}})),c(u(m)),p(f(m)),d(_),g(w)}}}function k(){c.destroy(),p.destroy(),d.destroy(),g.destroy(),m.destroy()}};var h=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]]},{&quot;array-bounds&quot;:70,&quot;color-normalize&quot;:125,&quot;flatten-vertex-data&quot;:244,&quot;object-assign&quot;:499,&quot;pick-by-alias&quot;:511,&quot;to-float32&quot;:577,&quot;update-diff&quot;:599}],535:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-normalize&quot;),i=t(&quot;array-bounds&quot;),a=t(&quot;object-assign&quot;),o=t(&quot;glslify&quot;),s=t(&quot;pick-by-alias&quot;),l=t(&quot;flatten-vertex-data&quot;),c=t(&quot;earcut&quot;),u=t(&quot;array-normalize&quot;),f=t(&quot;to-float32&quot;),h=f.float32,p=f.fract32,d=t(&quot;es6-weak-map&quot;),g=t(&quot;parse-rect&quot;);function m(t,e){if(!(this instanceof m))return new m(t,e);if(&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):e=t,e.length&amp;&amp;(e.positions=e),!(t=e.regl).hasExtension(&quot;ANGLE_instanced_arrays&quot;))throw Error(&quot;regl-error2d: `ANGLE_instanced_arrays` extension should be enabled&quot;);this.gl=t._gl,this.regl=t,this.passes=[],this.shaders=m.shaders.has(t)?m.shaders.get(t):m.shaders.set(t,m.createShaders(t)).get(t),this.update(e)}e.exports=m,m.dashMult=2,m.maxPatternLength=256,m.precisionThreshold=3e6,m.maxPoints=1e4,m.maxLines=2048,m.shaders=new d,m.createShaders=function(t){var e,r=t.buffer({usage:&quot;static&quot;,type:&quot;float&quot;,data:[0,1,0,0,1,1,1,0]}),n={primitive:&quot;triangle strip&quot;,instances:t.prop(&quot;count&quot;),count:4,offset:0,uniforms:{miterMode:function(t,e){return&quot;round&quot;===e.join?2:1},miterLimit:t.prop(&quot;miterLimit&quot;),scale:t.prop(&quot;scale&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),translate:t.prop(&quot;translate&quot;),thickness:t.prop(&quot;thickness&quot;),dashPattern:t.prop(&quot;dashTexture&quot;),opacity:t.prop(&quot;opacity&quot;),pixelRatio:t.context(&quot;pixelRatio&quot;),id:t.prop(&quot;id&quot;),dashSize:t.prop(&quot;dashLength&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]},depth:t.prop(&quot;depth&quot;)},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},depth:{enable:function(t,e){return!e.overlay}},stencil:{enable:!1},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;)},i=t(a({vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;\nattribute vec4 color;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvec2 project(vec2 position, vec2 positionFract, vec2 scale, vec2 scaleFract, vec2 translate, vec2 translateFract) {\n\t// the order is important\n\treturn position * scale + translate\n       + positionFract * scale + translateFract\n       + position * scaleFract\n       + positionFract * scaleFract;\n}\n\nvoid main() {\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineOffset = lineTop * 2. - 1.;\n\n\tvec2 diff = (bCoord + bCoordFract - aCoord - aCoordFract);\n\ttangent = normalize(diff * scale * viewport.zw);\n\tvec2 normal = vec2(-tangent.y, tangent.x);\n\n\tvec2 position = project(aCoord, aCoordFract, scale, scaleFract, translate, translateFract) * lineStart\n\t\t+ project(bCoord, bCoordFract, scale, scaleFract, translate, translateFract) * lineEnd\n\n\t\t+ thickness * normal * .5 * lineOffset / viewport.zw;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\n\nuniform float dashSize, pixelRatio, thickness, opacity, id;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvoid main() {\n\tfloat alpha = 1.;\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n&quot;]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:16,divisor:1},aCoordFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:8,divisor:1},bCoordFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:16,divisor:1},color:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:0,divisor:1}}},n));try{e=t(a({cull:{enable:!0,face:&quot;back&quot;},vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, nextCoord, prevCoord;\nattribute vec4 aColor, bColor;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, translate;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\nuniform float miterLimit, miterMode;\n\nvarying vec4 fragColor;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 tangent;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nconst float REVERSE_THRESHOLD = -.875;\nconst float MIN_DIFF = 1e-6;\n\n// TODO: possible optimizations: avoid overcalculating all for vertices and calc just one instead\n// TODO: precalculate dot products, normalize things beforehead etc.\n// TODO: refactor to rectangular algorithm\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nbool isNaN( float val ){\n  return ( val &lt; 0.0 || 0.0 &lt; val || val == 0.0 ) ? false : true;\n}\n\nvoid main() {\n\tvec2 aCoord = aCoord, bCoord = bCoord, prevCoord = prevCoord, nextCoord = nextCoord;\n\n  vec2 adjustedScale;\n  adjustedScale.x = (abs(scale.x) &lt; MIN_DIFF) ? MIN_DIFF : scale.x;\n  adjustedScale.y = (abs(scale.y) &lt; MIN_DIFF) ? MIN_DIFF : scale.y;\n\n  vec2 scaleRatio = adjustedScale * viewport.zw;\n\tvec2 normalWidth = thickness / scaleRatio;\n\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineBot = 1. - lineTop;\n\n\tfragColor = (lineStart * aColor + lineEnd * bColor) / 255.;\n\n\tif (isNaN(aCoord.x) || isNaN(aCoord.y) || isNaN(bCoord.x) || isNaN(bCoord.y)) return;\n\n\tif (aCoord == prevCoord) prevCoord = aCoord + normalize(bCoord - aCoord);\n\tif (bCoord == nextCoord) nextCoord = bCoord - normalize(bCoord - aCoord);\n\n\tvec2 prevDiff = aCoord - prevCoord;\n\tvec2 currDiff = bCoord - aCoord;\n\tvec2 nextDiff = nextCoord - bCoord;\n\n\tvec2 prevTangent = normalize(prevDiff * scaleRatio);\n\tvec2 currTangent = normalize(currDiff * scaleRatio);\n\tvec2 nextTangent = normalize(nextDiff * scaleRatio);\n\n\tvec2 prevNormal = vec2(-prevTangent.y, prevTangent.x);\n\tvec2 currNormal = vec2(-currTangent.y, currTangent.x);\n\tvec2 nextNormal = vec2(-nextTangent.y, nextTangent.x);\n\n\tvec2 startJoinDirection = normalize(prevTangent - currTangent);\n\tvec2 endJoinDirection = normalize(currTangent - nextTangent);\n\n\t// collapsed/unidirectional segment cases\n\t// FIXME: there should be more elegant solution\n\tvec2 prevTanDiff = abs(prevTangent - currTangent);\n\tvec2 nextTanDiff = abs(nextTangent - currTangent);\n\tif (max(prevTanDiff.x, prevTanDiff.y) &lt; MIN_DIFF) {\n\t\tstartJoinDirection = currNormal;\n\t}\n\tif (max(nextTanDiff.x, nextTanDiff.y) &lt; MIN_DIFF) {\n\t\tendJoinDirection = currNormal;\n\t}\n\tif (aCoord == bCoord) {\n\t\tendJoinDirection = startJoinDirection;\n\t\tcurrNormal = prevNormal;\n\t\tcurrTangent = prevTangent;\n\t}\n\n\ttangent = currTangent;\n\n\t//calculate join shifts relative to normals\n\tfloat startJoinShift = dot(currNormal, startJoinDirection);\n\tfloat endJoinShift = dot(currNormal, endJoinDirection);\n\n\tfloat startMiterRatio = abs(1. / startJoinShift);\n\tfloat endMiterRatio = abs(1. / endJoinShift);\n\n\tvec2 startJoin = startJoinDirection * startMiterRatio;\n\tvec2 endJoin = endJoinDirection * endMiterRatio;\n\n\tvec2 startTopJoin, startBotJoin, endTopJoin, endBotJoin;\n\tstartTopJoin = sign(startJoinShift) * startJoin * .5;\n\tstartBotJoin = -startTopJoin;\n\n\tendTopJoin = sign(endJoinShift) * endJoin * .5;\n\tendBotJoin = -endTopJoin;\n\n\tvec2 aTopCoord = aCoord + normalWidth * startTopJoin;\n\tvec2 bTopCoord = bCoord + normalWidth * endTopJoin;\n\tvec2 aBotCoord = aCoord + normalWidth * startBotJoin;\n\tvec2 bBotCoord = bCoord + normalWidth * endBotJoin;\n\n\t//miter anti-clipping\n\tfloat baClipping = distToLine(bCoord, aCoord, aBotCoord) / dot(normalize(normalWidth * endBotJoin), normalize(normalWidth.yx * vec2(-startBotJoin.y, startBotJoin.x)));\n\tfloat abClipping = distToLine(aCoord, bCoord, bTopCoord) / dot(normalize(normalWidth * startBotJoin), normalize(normalWidth.yx * vec2(-endBotJoin.y, endBotJoin.x)));\n\n\t//prevent close to reverse direction switch\n\tbool prevReverse = dot(currTangent, prevTangent) &lt;= REVERSE_THRESHOLD &amp;&amp; abs(dot(currTangent, prevNormal)) * min(length(prevDiff), length(currDiff)) &lt;  length(normalWidth * currNormal);\n\tbool nextReverse = dot(currTangent, nextTangent) &lt;= REVERSE_THRESHOLD &amp;&amp; abs(dot(currTangent, nextNormal)) * min(length(nextDiff), length(currDiff)) &lt;  length(normalWidth * currNormal);\n\n\tif (prevReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * startJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / startMiterRatio, 1.);\n\t\taBotCoord = aCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\taTopCoord = aCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!nextReverse &amp;&amp; baClipping &gt; 0. &amp;&amp; baClipping &lt; length(normalWidth * endBotJoin)) {\n\t\t//handle miter clipping\n\t\tbTopCoord -= normalWidth * endTopJoin;\n\t\tbTopCoord += normalize(endTopJoin * normalWidth) * baClipping;\n\t}\n\n\tif (nextReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);\n\t\tbBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\tbTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!prevReverse &amp;&amp; abClipping &gt; 0. &amp;&amp; abClipping &lt; length(normalWidth * startBotJoin)) {\n\t\t//handle miter clipping\n\t\taBotCoord -= normalWidth * startBotJoin;\n\t\taBotCoord += normalize(startBotJoin * normalWidth) * abClipping;\n\t}\n\n\tvec2 aTopPosition = (aTopCoord) * adjustedScale + translate;\n\tvec2 aBotPosition = (aBotCoord) * adjustedScale + translate;\n\n\tvec2 bTopPosition = (bTopCoord) * adjustedScale + translate;\n\tvec2 bBotPosition = (bBotCoord) * adjustedScale + translate;\n\n\t//position is normalized 0..1 coord on the screen\n\tvec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;\n\n\tstartCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\tendCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\n\tgl_Position = vec4(position  * 2.0 - 1.0, depth, 1);\n\n\tenableStartMiter = step(dot(currTangent, prevTangent), .5);\n\tenableEndMiter = step(dot(currTangent, nextTangent), .5);\n\n\t//bevel miter cutoffs\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n\n\t//round miter cutoffs\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\nuniform float dashSize, pixelRatio, thickness, opacity, id, miterMode;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nvoid main() {\n\tfloat alpha = 1., distToStart, distToEnd;\n\tfloat cutoff = thickness * .5;\n\n\t//bevel miter\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart &lt; -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToStart + 1., 0.), 1.);\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd &lt; -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToEnd + 1., 0.), 1.);\n\t\t}\n\t}\n\n\t// round miter\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart &lt; 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - startCoord);\n\n\t\t\t\tif(radius &gt; cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd &lt; 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - endCoord);\n\n\t\t\t\tif(radius &gt; cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\t}\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n&quot;]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:0,divisor:1},bColor:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:4,divisor:1},prevCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:0,divisor:1},aCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:16,divisor:1},nextCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:24,divisor:1}}},n))}catch(t){e=i}return{fill:t({primitive:&quot;triangle&quot;,elements:function(t,e){return e.triangles},offset:0,vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 position, positionFract;\n\nuniform vec4 color;\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio, id;\nuniform vec4 viewport;\nuniform float opacity;\n\nvarying vec4 fragColor;\n\nconst float MAX_LINES = 256.;\n\nvoid main() {\n\tfloat depth = (MAX_LINES - 4. - id) / (MAX_LINES);\n\n\tvec2 position = position * scale + translate\n       + positionFract * scale + translateFract\n       + position * scaleFract\n       + positionFract * scaleFract;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n\tfragColor.a *= opacity;\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n\tgl_FragColor = fragColor;\n}\n&quot;]),uniforms:{scale:t.prop(&quot;scale&quot;),color:t.prop(&quot;fill&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),translate:t.prop(&quot;translate&quot;),opacity:t.prop(&quot;opacity&quot;),pixelRatio:t.context(&quot;pixelRatio&quot;),id:t.prop(&quot;id&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{position:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8},positionFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:8}},blend:n.blend,depth:{enable:!1},scissor:n.scissor,stencil:n.stencil,viewport:n.viewport}),rect:i,miter:e}},m.defaults={dashes:null,join:&quot;miter&quot;,miterLimit:1,thickness:10,cap:&quot;square&quot;,color:&quot;black&quot;,opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},m.prototype.render=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];e.length&amp;&amp;(t=this).update.apply(t,e),this.draw()},m.prototype.draw=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];return(e.length?e:this.passes).forEach((function(e,r){var n;if(e&amp;&amp;Array.isArray(e))return(n=t).draw.apply(n,e);&quot;number&quot;==typeof e&amp;&amp;(e=t.passes[e]),e&amp;&amp;e.count&gt;1&amp;&amp;e.opacity&amp;&amp;(t.regl._refresh(),e.fill&amp;&amp;e.triangles&amp;&amp;e.triangles.length&gt;2&amp;&amp;t.shaders.fill(e),e.thickness&amp;&amp;(e.scale[0]*e.viewport.width&gt;m.precisionThreshold||e.scale[1]*e.viewport.height&gt;m.precisionThreshold||&quot;rect&quot;===e.join||!e.join&amp;&amp;(e.thickness&lt;=2||e.count&gt;=m.maxPoints)?t.shaders.rect(e):t.shaders.miter(e)))})),this},m.prototype.update=function(t){var e=this;if(t){null!=t.length?&quot;number&quot;==typeof t[0]&amp;&amp;(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var r=this.regl,o=this.gl;if(t.forEach((function(t,f){var d=e.passes[f];if(void 0!==t)if(null!==t){if(&quot;number&quot;==typeof t[0]&amp;&amp;(t={positions:t}),t=s(t,{positions:&quot;positions points data coords&quot;,thickness:&quot;thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth&quot;,join:&quot;lineJoin linejoin join type mode&quot;,miterLimit:&quot;miterlimit miterLimit&quot;,dashes:&quot;dash dashes dasharray dash-array dashArray&quot;,color:&quot;color colour stroke colors colours stroke-color strokeColor&quot;,fill:&quot;fill fill-color fillColor&quot;,opacity:&quot;alpha opacity&quot;,overlay:&quot;overlay crease overlap intersect&quot;,close:&quot;closed close closed-path closePath&quot;,range:&quot;range dataBox&quot;,viewport:&quot;viewport viewBox&quot;,hole:&quot;holes hole hollow&quot;}),d||(e.passes[f]=d={id:f,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:&quot;linear&quot;,min:&quot;linear&quot;}),colorBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:new Uint8Array}),positionBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array}),positionFractBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array})},t=a({},m.defaults,t)),null!=t.thickness&amp;&amp;(d.thickness=parseFloat(t.thickness)),null!=t.opacity&amp;&amp;(d.opacity=parseFloat(t.opacity)),null!=t.miterLimit&amp;&amp;(d.miterLimit=parseFloat(t.miterLimit)),null!=t.overlay&amp;&amp;(d.overlay=!!t.overlay,f&lt;m.maxLines&amp;&amp;(d.depth=2*(m.maxLines-1-f%m.maxLines)/m.maxLines-1)),null!=t.join&amp;&amp;(d.join=t.join),null!=t.hole&amp;&amp;(d.hole=t.hole),null!=t.fill&amp;&amp;(d.fill=t.fill?n(t.fill,&quot;uint8&quot;):null),null!=t.viewport&amp;&amp;(d.viewport=g(t.viewport)),d.viewport||(d.viewport=g([o.drawingBufferWidth,o.drawingBufferHeight])),null!=t.close&amp;&amp;(d.close=t.close),null===t.positions&amp;&amp;(t.positions=[]),t.positions){var v,y;if(t.positions.x&amp;&amp;t.positions.y){var x=t.positions.x,b=t.positions.y;y=d.count=Math.max(x.length,b.length),v=new Float64Array(2*y);for(var _=0;_&lt;y;_++)v[2*_]=x[_],v[2*_+1]=b[_]}else v=l(t.positions,&quot;float64&quot;),y=d.count=Math.floor(v.length/2);var w=d.bounds=i(v,2);if(d.fill){for(var T=[],k={},M=0,A=0,S=0,E=d.count;A&lt;E;A++){var C=v[2*A],L=v[2*A+1];isNaN(C)||isNaN(L)||null==C||null==L?(C=v[2*M],L=v[2*M+1],k[A]=M):M=A,T[S++]=C,T[S++]=L}for(var I=c(T,d.hole||[]),P=0,z=I.length;P&lt;z;P++)null!=k[I[P]]&amp;&amp;(I[P]=k[I[P]]);d.triangles=I}var O=new Float64Array(v);u(O,2,w);var D=new Float64Array(2*y+6);d.close?v[0]===v[2*y-2]&amp;&amp;v[1]===v[2*y-1]?(D[0]=O[2*y-4],D[1]=O[2*y-3]):(D[0]=O[2*y-2],D[1]=O[2*y-1]):(D[0]=O[0],D[1]=O[1]),D.set(O,2),d.close?v[0]===v[2*y-2]&amp;&amp;v[1]===v[2*y-1]?(D[2*y+2]=O[2],D[2*y+3]=O[3],d.count-=1):(D[2*y+2]=O[0],D[2*y+3]=O[1],D[2*y+4]=O[2],D[2*y+5]=O[3]):(D[2*y+2]=O[2*y-2],D[2*y+3]=O[2*y-1],D[2*y+4]=O[2*y-2],D[2*y+5]=O[2*y-1]),d.positionBuffer(h(D)),d.positionFractBuffer(p(D))}if(t.range?d.range=t.range:d.range||(d.range=d.bounds),(t.range||t.positions)&amp;&amp;d.count){var R=d.bounds,F=R[2]-R[0],B=R[3]-R[1],N=d.range[2]-d.range[0],j=d.range[3]-d.range[1];d.scale=[F/N,B/j],d.translate=[-d.range[0]/N+R[0]/N||0,-d.range[1]/j+R[1]/j||0],d.scaleFract=p(d.scale),d.translateFract=p(d.translate)}if(t.dashes){var U,V=0;if(!t.dashes||t.dashes.length&lt;2)V=1,U=new Uint8Array([255,255,255,255,255,255,255,255]);else{V=0;for(var q=0;q&lt;t.dashes.length;++q)V+=t.dashes[q];U=new Uint8Array(V*m.dashMult);for(var H=0,G=255,Y=0;Y&lt;2;Y++)for(var W=0;W&lt;t.dashes.length;++W){for(var X=0,Z=t.dashes[W]*m.dashMult*.5;X&lt;Z;++X)U[H++]=G;G^=255}}d.dashLength=V,d.dashTexture({channels:1,data:U,width:U.length,height:1,mag:&quot;linear&quot;,min:&quot;linear&quot;},0,0)}if(t.color){var J=d.count,K=t.color;K||(K=&quot;transparent&quot;);var Q=new Uint8Array(4*J+4);if(Array.isArray(K)&amp;&amp;&quot;number&quot;!=typeof K[0]){for(var $=0;$&lt;J;$++){var tt=n(K[$],&quot;uint8&quot;);Q.set(tt,4*$)}Q.set(n(K[0],&quot;uint8&quot;),4*J)}else for(var et=n(K,&quot;uint8&quot;),rt=0;rt&lt;J+1;rt++)Q.set(et,4*rt);d.colorBuffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:Q})}}else e.passes[f]=null})),t.length&lt;this.passes.length){for(var f=t.length;f&lt;this.passes.length;f++){var d=this.passes[f];d&amp;&amp;(d.colorBuffer.destroy(),d.positionBuffer.destroy(),d.dashTexture.destroy())}this.passes.length=t.length}for(var v=[],y=0;y&lt;this.passes.length;y++)null!==this.passes[y]&amp;&amp;v.push(this.passes[y]);return this.passes=v,this}},m.prototype.destroy=function(){return this.passes.forEach((function(t){t.colorBuffer.destroy(),t.positionBuffer.destroy(),t.dashTexture.destroy()})),this.passes.length=0,this}},{&quot;array-bounds&quot;:70,&quot;array-normalize&quot;:71,&quot;color-normalize&quot;:125,earcut:177,&quot;es6-weak-map&quot;:233,&quot;flatten-vertex-data&quot;:244,glslify:536,&quot;object-assign&quot;:499,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511,&quot;to-float32&quot;:577}],536:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],537:[function(t,e,r){&quot;use strict&quot;;function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(&quot;undefined&quot;==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&amp;&amp;(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}(t,e)||a(t,e)||function(){throw new TypeError(&quot;Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.&quot;)}()}function i(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if(&quot;undefined&quot;!=typeof Symbol&amp;&amp;Symbol.iterator in Object(t))return Array.from(t)}(t)||a(t)||function(){throw new TypeError(&quot;Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.&quot;)}()}function a(t,e){if(t){if(&quot;string&quot;==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return&quot;Object&quot;===r&amp;&amp;t.constructor&amp;&amp;(r=t.constructor.name),&quot;Map&quot;===r||&quot;Set&quot;===r?Array.from(t):&quot;Arguments&quot;===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e&gt;t.length)&amp;&amp;(e=t.length);for(var r=0,n=new Array(e);r&lt;e;r++)n[r]=t[r];return n}var s=t(&quot;color-normalize&quot;),l=t(&quot;array-bounds&quot;),c=t(&quot;color-id&quot;),u=t(&quot;@plotly/point-cluster&quot;),f=t(&quot;object-assign&quot;),h=t(&quot;glslify&quot;),p=t(&quot;pick-by-alias&quot;),d=t(&quot;update-diff&quot;),g=t(&quot;flatten-vertex-data&quot;),m=t(&quot;is-iexplorer&quot;),v=t(&quot;to-float32&quot;),y=t(&quot;parse-rect&quot;),x=b;function b(t,e){var r=this;if(!(this instanceof b))return new b(t,e);&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):(e=t,t=null),e&amp;&amp;e.length&amp;&amp;(e.positions=e);var n,i=(t=e.regl)._gl,a=[];this.tooManyColors=m,n=t.texture({data:new Uint8Array(1020),width:255,height:1,type:&quot;uint8&quot;,format:&quot;rgba&quot;,wrapS:&quot;clamp&quot;,wrapT:&quot;clamp&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;}),f(this,{regl:t,gl:i,groups:[],markerCache:[null],markerTextures:[null],palette:a,paletteIds:{},paletteTexture:n,maxColors:255,maxSize:100,canvas:i.canvas}),this.update(e);var o={uniforms:{constPointSize:!!e.constPointSize,pixelRatio:t.context(&quot;pixelRatio&quot;),palette:n,paletteSize:function(t,e){return[r.tooManyColors?0:255,n.height]},scale:t.prop(&quot;scale&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translate:t.prop(&quot;translate&quot;),translateFract:t.prop(&quot;translateFract&quot;),opacity:t.prop(&quot;opacity&quot;),marker:t.prop(&quot;markerTexture&quot;)},attributes:{x:function(t,e){return e.xAttr||{buffer:e.positionBuffer,stride:8,offset:0}},y:function(t,e){return e.yAttr||{buffer:e.positionBuffer,stride:8,offset:4}},xFract:function(t,e){return e.xAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:0}},yFract:function(t,e){return e.yAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:4}},size:function(t,e){return e.size.length?{buffer:e.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(255*e.size/r.maxSize)]}},borderSize:function(t,e){return e.borderSize.length?{buffer:e.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(255*e.borderSize/r.maxSize)]}},colorId:function(t,e){return e.color.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(4*e.color,4*e.color+4):[e.color]}},borderColorId:function(t,e){return e.borderColor.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(4*e.borderColor,4*e.borderColor+4):[e.borderColor]}},isActive:function(t,e){return!0===e.activation?{constant:[1]}:e.activation?e.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;),stencil:{enable:!1},depth:{enable:!1},elements:t.prop(&quot;elements&quot;),count:t.prop(&quot;count&quot;),offset:t.prop(&quot;offset&quot;),primitive:&quot;points&quot;},s=f({},o);s.frag=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragWidth, fragBorderColorLevel, fragColorLevel;\n\nuniform sampler2D marker;\nuniform float opacity;\n\nfloat smoothStep(float x, float y) {\n  return 1.0 / (1.0 + exp(50.0*(x - y)));\n}\n\nvoid main() {\n  float dist = texture2D(marker, gl_PointCoord).r, delta = fragWidth;\n\n  // max-distance alpha\n  if (dist &lt; 0.003) discard;\n\n  // null-border case\n  if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {\n    float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);\n    gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);\n  }\n  else {\n    float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);\n    float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);\n\n    vec4 color = fragBorderColor;\n    color.a *= borderColorAmt;\n    color = mix(color, fragColor, colorAmt);\n    color.a *= opacity;\n\n    gl_FragColor = color;\n  }\n\n}\n&quot;]),s.vert=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform vec2 scale, scaleFract, translate, translateFract, paletteSize;\nuniform float pixelRatio;\nuniform bool constPointSize;\nuniform sampler2D palette;\n\nconst float maxSize = 100.;\nconst float borderLevel = .5;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x &lt; 1.);\n\nvec4 getColor(vec4 id) {\n  return isDirect ? id / 255. : texture2D(palette,\n    vec2(\n      (id.x + .5) / paletteSize.x,\n      (id.y + .5) / paletteSize.y\n    )\n  );\n}\n\nvoid main() {\n  // ignore inactive points\n  if (isActive == 0.) return;\n\n  vec2 position = vec2(x, y);\n  vec2 positionFract = vec2(xFract, yFract);\n\n  vec4 color = getColor(colorId);\n  vec4 borderColor = getColor(borderColorId);\n\n  float size = size * maxSize / 255.;\n  float borderSize = borderSize * maxSize / 255.;\n\n  gl_PointSize = 2. * size * pointSizeScale;\n  fragPointSize = size * pixelRatio;\n\n  vec2 pos = (position + translate) * scale\n      + (positionFract + translateFract) * scale\n      + (position + translate) * scaleFract\n      + (positionFract + translateFract) * scaleFract;\n\n  gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n  fragColor = color;\n  fragBorderColor = borderColor;\n  fragWidth = 1. / gl_PointSize;\n\n  fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);\n  fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);\n}&quot;]),this.drawMarker=t(s);var l=f({},o);l.frag=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\n\nuniform float opacity;\nvarying float fragBorderRadius, fragWidth;\n\nfloat smoothStep(float edge0, float edge1, float x) {\n\tfloat t;\n\tt = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\n\treturn t * t * (3.0 - 2.0 * t);\n}\n\nvoid main() {\n\tfloat radius, alpha = 1.0, delta = fragWidth;\n\n\tradius = length(2.0 * gl_PointCoord.xy - 1.0);\n\n\tif (radius &gt; 1.0 + delta) {\n\t\tdiscard;\n\t}\n\n\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\n\n\tfloat borderRadius = fragBorderRadius;\n\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\n\tvec4 color = mix(fragColor, fragBorderColor, ratio);\n\tcolor.a *= alpha * opacity;\n\tgl_FragColor = color;\n}\n&quot;]),l.vert=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio;\nuniform bool constPointSize;\nuniform sampler2D palette;\nuniform vec2 paletteSize;\n\nconst float maxSize = 100.;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x &lt; 1.);\n\nvec4 getColor(vec4 id) {\n  return isDirect ? id / 255. : texture2D(palette,\n    vec2(\n      (id.x + .5) / paletteSize.x,\n      (id.y + .5) / paletteSize.y\n    )\n  );\n}\n\nvoid main() {\n  // ignore inactive points\n  if (isActive == 0.) return;\n\n  vec2 position = vec2(x, y);\n  vec2 positionFract = vec2(xFract, yFract);\n\n  vec4 color = getColor(colorId);\n  vec4 borderColor = getColor(borderColorId);\n\n  float size = size * maxSize / 255.;\n  float borderSize = borderSize * maxSize / 255.;\n\n  gl_PointSize = (size + borderSize) * pointSizeScale;\n\n  vec2 pos = (position + translate) * scale\n      + (positionFract + translateFract) * scale\n      + (position + translate) * scaleFract\n      + (positionFract + translateFract) * scaleFract;\n\n  gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n  fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\n  fragColor = color;\n  fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\n  fragWidth = 1. / gl_PointSize;\n}\n&quot;]),m&amp;&amp;(l.frag=l.frag.replace(&quot;smoothstep&quot;,&quot;smoothStep&quot;),s.frag=s.frag.replace(&quot;smoothstep&quot;,&quot;smoothStep&quot;)),this.drawCircle=t(l)}b.defaults={color:&quot;black&quot;,borderColor:&quot;transparent&quot;,borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},b.prototype.render=function(){return arguments.length&amp;&amp;this.update.apply(this,arguments),this.draw(),this},b.prototype.draw=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n&lt;e;n++)r[n]=arguments[n];var i=this.groups;if(1===r.length&amp;&amp;Array.isArray(r[0])&amp;&amp;(null===r[0][0]||Array.isArray(r[0][0]))&amp;&amp;(r=r[0]),this.regl._refresh(),r.length)for(var a=0;a&lt;r.length;a++)this.drawItem(a,r[a]);else i.forEach((function(e,r){t.drawItem(r)}));return this},b.prototype.drawItem=function(t,e){var r=this.groups,n=r[t];if(&quot;number&quot;==typeof e&amp;&amp;(t=e,n=r[e],e=null),n&amp;&amp;n.count&amp;&amp;n.opacity){n.activation[0]&amp;&amp;this.drawCircle(this.getMarkerDrawOptions(0,n,e));for(var a=[],o=1;o&lt;n.activation.length;o++)n.activation[o]&amp;&amp;(!0===n.activation[o]||n.activation[o].data.length)&amp;&amp;a.push.apply(a,i(this.getMarkerDrawOptions(o,n,e)));a.length&amp;&amp;this.drawMarker(a)}},b.prototype.getMarkerDrawOptions=function(t,e,r){var i=e.range,a=e.tree,o=e.viewport,s=e.activation,l=e.selectionBuffer,c=e.count;this.regl;if(!a)return r?[f({},e,{markerTexture:this.markerTextures[t],activation:s[t],count:r.length,elements:r,offset:0})]:[f({},e,{markerTexture:this.markerTextures[t],activation:s[t],offset:0})];var u=[],h=a.range(i,{lod:!0,px:[(i[2]-i[0])/o.width,(i[3]-i[1])/o.height]});if(r){for(var p=s[t].data,d=new Uint8Array(c),g=0;g&lt;r.length;g++){var m=r[g];d[m]=p?p[m]:1}l.subdata(d)}for(var v=h.length;v--;){var y=n(h[v],2),x=y[0],b=y[1];u.push(f({},e,{markerTexture:this.markerTextures[t],activation:r?l:s[t],offset:x,count:b-x}))}return u},b.prototype.update=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n&lt;e;n++)r[n]=arguments[n];if(r.length){1===r.length&amp;&amp;Array.isArray(r[0])&amp;&amp;(r=r[0]);var i=this.groups,a=this.gl,o=this.regl,s=this.maxSize,c=this.maxColors,h=this.palette;this.groups=i=r.map((function(e,r){var n=i[r];if(void 0===e)return n;null===e?e={positions:null}:&quot;function&quot;==typeof e?e={ondraw:e}:&quot;number&quot;==typeof e[0]&amp;&amp;(e={positions:e}),null===(e=p(e,{positions:&quot;positions data points&quot;,snap:&quot;snap cluster lod tree&quot;,size:&quot;sizes size radius&quot;,borderSize:&quot;borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline&quot;,color:&quot;colors color fill fill-color fillColor&quot;,borderColor:&quot;borderColors borderColor stroke stroke-color strokeColor&quot;,marker:&quot;markers marker shape&quot;,range:&quot;range dataBox databox&quot;,viewport:&quot;viewport viewPort viewBox viewbox&quot;,opacity:&quot;opacity alpha transparency&quot;,bounds:&quot;bound bounds boundaries limits&quot;,tooManyColors:&quot;tooManyColors palette paletteMode optimizePalette enablePalette&quot;})).positions&amp;&amp;(e.positions=[]),null!=e.tooManyColors&amp;&amp;(t.tooManyColors=e.tooManyColors),n||(i[r]=n={id:r,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;stream&quot;,type:&quot;uint8&quot;}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;uint8&quot;}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;uint8&quot;}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;float&quot;}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;float&quot;})},e=f({},b.defaults,e)),e.positions&amp;&amp;!(&quot;marker&quot;in e)&amp;&amp;(e.marker=n.marker,delete n.marker),e.marker&amp;&amp;!(&quot;positions&quot;in e)&amp;&amp;(e.positions=n.positions,delete n.positions);var m=0,x=0;if(d(n,e,[{snap:!0,size:function(t,e){return null==t&amp;&amp;(t=b.defaults.size),m+=t&amp;&amp;t.length?1:0,t},borderSize:function(t,e){return null==t&amp;&amp;(t=b.defaults.borderSize),m+=t&amp;&amp;t.length?1:0,t},opacity:parseFloat,color:function(e,r){return null==e&amp;&amp;(e=b.defaults.color),e=t.updateColor(e),x++,e},borderColor:function(e,r){return null==e&amp;&amp;(e=b.defaults.borderColor),e=t.updateColor(e),x++,e},bounds:function(t,e,r){return&quot;range&quot;in r||(r.range=null),t},positions:function(t,e,r){var n=e.snap,i=e.positionBuffer,a=e.positionFractBuffer,s=e.selectionBuffer;if(t.x||t.y)return t.x.length?e.xAttr={buffer:o.buffer(t.x),offset:0,stride:4,count:t.x.length}:e.xAttr={buffer:t.x.buffer,offset:4*t.x.offset||0,stride:4*(t.x.stride||1),count:t.x.count},t.y.length?e.yAttr={buffer:o.buffer(t.y),offset:0,stride:4,count:t.y.length}:e.yAttr={buffer:t.y.buffer,offset:4*t.y.offset||0,stride:4*(t.y.stride||1),count:t.y.count},e.count=Math.max(e.xAttr.count,e.yAttr.count),t;t=g(t,&quot;float64&quot;);var c=e.count=Math.floor(t.length/2),f=e.bounds=c?l(t,2):null;if(r.range||e.range||(delete e.range,r.range=f),r.marker||e.marker||(delete e.marker,r.marker=null),n&amp;&amp;(!0===n||c&gt;n)?e.tree=u(t,{bounds:f}):n&amp;&amp;n.length&amp;&amp;(e.tree=n),e.tree){var h={primitive:&quot;points&quot;,usage:&quot;static&quot;,data:e.tree,type:&quot;uint32&quot;};e.elements?e.elements(h):e.elements=o.elements(h)}return i({data:v.float(t),usage:&quot;dynamic&quot;}),a({data:v.fract(t),usage:&quot;dynamic&quot;}),s({data:new Uint8Array(c),type:&quot;uint8&quot;,usage:&quot;stream&quot;}),t}},{marker:function(e,r,n){var i=r.activation;if(i.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),i.length=0,e&amp;&amp;&quot;number&quot;!=typeof e[0]){for(var a=[],s=0,l=Math.min(e.length,r.count);s&lt;l;s++){var c=t.addMarker(e[s]);a[c]||(a[c]=new Uint8Array(r.count)),a[c][s]=1}for(var u=0;u&lt;a.length;u++)if(a[u]){var f={data:a[u],type:&quot;uint8&quot;,usage:&quot;static&quot;};i[u]?i[u](f):i[u]=o.buffer(f),i[u].data=a[u]}}else{i[t.addMarker(e)]=!0}return e},range:function(t,e,r){var n=e.bounds;if(n)return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=v.fract(e.scale),e.translateFract=v.fract(e.translate),t},viewport:function(t){return y(t||[a.drawingBufferWidth,a.drawingBufferHeight])}}]),m){var _=n,w=_.count,T=_.size,k=_.borderSize,M=_.sizeBuffer,A=new Uint8Array(2*w);if(T.length||k.length)for(var S=0;S&lt;w;S++)A[2*S]=Math.round(255*(null==T[S]?T:T[S])/s),A[2*S+1]=Math.round(255*(null==k[S]?k:k[S])/s);M({data:A,usage:&quot;dynamic&quot;})}if(x){var E,C=n,L=C.count,I=C.color,P=C.borderColor,z=C.colorBuffer;if(t.tooManyColors){if(I.length||P.length){E=new Uint8Array(8*L);for(var O=0;O&lt;L;O++){var D=I[O];E[8*O]=h[4*D],E[8*O+1]=h[4*D+1],E[8*O+2]=h[4*D+2],E[8*O+3]=h[4*D+3];var R=P[O];E[8*O+4]=h[4*R],E[8*O+5]=h[4*R+1],E[8*O+6]=h[4*R+2],E[8*O+7]=h[4*R+3]}}}else if(I.length||P.length){E=new Uint8Array(4*L+2);for(var F=0;F&lt;L;F++)null!=I[F]&amp;&amp;(E[4*F]=I[F]%c,E[4*F+1]=Math.floor(I[F]/c)),null!=P[F]&amp;&amp;(E[4*F+2]=P[F]%c,E[4*F+3]=Math.floor(P[F]/c))}z({data:E||new Uint8Array(0),type:&quot;uint8&quot;,usage:&quot;dynamic&quot;})}return n}))}},b.prototype.addMarker=function(t){var e,r=this.markerTextures,n=this.regl,i=this.markerCache,a=null==t?0:i.indexOf(t);if(a&gt;=0)return a;if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)e=t;else{e=new Uint8Array(t.length);for(var o=0,s=t.length;o&lt;s;o++)e[o]=255*t[o]}var l=Math.floor(Math.sqrt(e.length));return a=r.length,i.push(t),r.push(n.texture({channels:1,data:e,radius:l,mag:&quot;linear&quot;,min:&quot;linear&quot;})),a},b.prototype.updateColor=function(t){var e=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(t)||(t=[t]);var i=[];if(&quot;number&quot;==typeof t[0]){var a=[];if(Array.isArray(t))for(var o=0;o&lt;t.length;o+=4)a.push(t.slice(o,o+4));else for(var l=0;l&lt;t.length;l+=4)a.push(t.subarray(l,l+4));t=a}for(var u=0;u&lt;t.length;u++){var f=t[u];f=s(f,&quot;uint8&quot;);var h=c(f,!1);if(null==e[h]){var p=r.length;e[h]=Math.floor(p/4),r[p]=f[0],r[p+1]=f[1],r[p+2]=f[2],r[p+3]=f[3]}i[u]=e[h]}return!this.tooManyColors&amp;&amp;r.length&gt;4*n&amp;&amp;(this.tooManyColors=!0),this.updatePalette(r),1===i.length?i[0]:i},b.prototype.updatePalette=function(t){if(!this.tooManyColors){var e=this.maxColors,r=this.paletteTexture,n=Math.ceil(.25*t.length/e);if(n&gt;1)for(var i=.25*(t=t.slice()).length%e;i&lt;n*e;i++)t.push(0,0,0,0);r.height&lt;n&amp;&amp;r.resize(e,n),r.subimage({width:Math.min(.25*t.length,e),height:n,data:t},0,0)}},b.prototype.destroy=function(){return this.groups.forEach((function(t){t.sizeBuffer.destroy(),t.positionBuffer.destroy(),t.positionFractBuffer.destroy(),t.colorBuffer.destroy(),t.activation.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),t.selectionBuffer.destroy(),t.elements&amp;&amp;t.elements.destroy()})),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),this};var _=t(&quot;object-assign&quot;);e.exports=function(t,e){var r=new x(t,e),n=r.render.bind(r);return _(n,{render:n,update:r.update.bind(r),draw:r.draw.bind(r),destroy:r.destroy.bind(r),regl:r.regl,gl:r.gl,canvas:r.gl.canvas,groups:r.groups,markers:r.markerCache,palette:r.palette}),n}},{&quot;@plotly/point-cluster&quot;:57,&quot;array-bounds&quot;:70,&quot;color-id&quot;:123,&quot;color-normalize&quot;:125,&quot;flatten-vertex-data&quot;:244,glslify:538,&quot;is-iexplorer&quot;:466,&quot;object-assign&quot;:499,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511,&quot;to-float32&quot;:577,&quot;update-diff&quot;:599}],538:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],539:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-scatter2d&quot;),i=t(&quot;pick-by-alias&quot;),a=t(&quot;array-bounds&quot;),o=t(&quot;raf&quot;),s=t(&quot;array-range&quot;),l=t(&quot;parse-rect&quot;),c=t(&quot;flatten-vertex-data&quot;);function u(t,e){if(!(this instanceof u))return new u(t,e);this.traces=[],this.passes={},this.regl=t,this.scatter=n(t),this.canvas=this.scatter.canvas}function f(t,e,r){return(null!=t.id?t.id:t)&lt;&lt;16|(255&amp;e)&lt;&lt;8|255&amp;r}function h(t,e,r){var n,i,a,o,s=t[e],l=t[r];return s.length&gt;2?(s[0],s[2],n=s[1],i=s[3]):s.length?(n=s[0],i=s[1]):(s.x,n=s.y,s.x+s.width,i=s.y+s.height),l.length&gt;2?(a=l[0],o=l[2],l[1],l[3]):l.length?(a=l[0],o=l[1]):(a=l.x,l.y,o=l.x+l.width,l.y+l.height),[a,n,o,i]}function p(t){if(&quot;number&quot;==typeof t)return[t,t,t,t];if(2===t.length)return[t[0],t[1],t[0],t[1]];var e=l(t);return[e.x,e.y,e.x+e.width,e.y+e.height]}e.exports=u,u.prototype.render=function(){for(var t,e=this,r=[],n=arguments.length;n--;)r[n]=arguments[n];return r.length&amp;&amp;(t=this).update.apply(t,r),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?null==this.planned&amp;&amp;(this.planned=o((function(){e.draw(),e.dirty=!0,e.planned=null}))):(this.draw(),this.dirty=!0,o((function(){e.dirty=!1}))),this)},u.prototype.update=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=0;n&lt;e.length;n++)this.updateItem(n,e[n]);this.traces=this.traces.filter(Boolean);for(var i=[],a=0,o=0;o&lt;this.traces.length;o++){for(var s=this.traces[o],l=this.traces[o].passes,c=0;c&lt;l.length;c++)i.push(this.passes[l[c]]);s.passOffset=a,a+=s.passes.length}return(t=this.scatter).update.apply(t,i),this}},u.prototype.updateItem=function(t,e){var r=this.regl;if(null===e)return this.traces[t]=null,this;if(!e)return this;var n,o=i(e,{data:&quot;data items columns rows values dimensions samples x&quot;,snap:&quot;snap cluster&quot;,size:&quot;sizes size radius&quot;,color:&quot;colors color fill fill-color fillColor&quot;,opacity:&quot;opacity alpha transparency opaque&quot;,borderSize:&quot;borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline&quot;,borderColor:&quot;borderColors borderColor bordercolor stroke stroke-color strokeColor&quot;,marker:&quot;markers marker shape&quot;,range:&quot;range ranges databox dataBox&quot;,viewport:&quot;viewport viewBox viewbox&quot;,domain:&quot;domain domains area areas&quot;,padding:&quot;pad padding paddings pads margin margins&quot;,transpose:&quot;transpose transposed&quot;,diagonal:&quot;diagonal diag showDiagonal&quot;,upper:&quot;upper up top upperhalf upperHalf showupperhalf showUpper showUpperHalf&quot;,lower:&quot;lower low bottom lowerhalf lowerHalf showlowerhalf showLowerHalf showLower&quot;}),s=this.traces[t]||(this.traces[t]={id:t,buffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array}),color:&quot;black&quot;,marker:null,size:12,borderColor:&quot;transparent&quot;,borderSize:1,viewport:l([r._gl.drawingBufferWidth,r._gl.drawingBufferHeight]),padding:[0,0,0,0],opacity:1,diagonal:!0,upper:!0,lower:!0});if(null!=o.color&amp;&amp;(s.color=o.color),null!=o.size&amp;&amp;(s.size=o.size),null!=o.marker&amp;&amp;(s.marker=o.marker),null!=o.borderColor&amp;&amp;(s.borderColor=o.borderColor),null!=o.borderSize&amp;&amp;(s.borderSize=o.borderSize),null!=o.opacity&amp;&amp;(s.opacity=o.opacity),o.viewport&amp;&amp;(s.viewport=l(o.viewport)),null!=o.diagonal&amp;&amp;(s.diagonal=o.diagonal),null!=o.upper&amp;&amp;(s.upper=o.upper),null!=o.lower&amp;&amp;(s.lower=o.lower),o.data){s.buffer(c(o.data)),s.columns=o.data.length,s.count=o.data[0].length,s.bounds=[];for(var u=0;u&lt;s.columns;u++)s.bounds[u]=a(o.data[u],1)}o.range&amp;&amp;(s.range=o.range,n=s.range&amp;&amp;&quot;number&quot;!=typeof s.range[0]),o.domain&amp;&amp;(s.domain=o.domain);var d=!1;null!=o.padding&amp;&amp;(Array.isArray(o.padding)&amp;&amp;o.padding.length===s.columns&amp;&amp;&quot;number&quot;==typeof o.padding[o.padding.length-1]?(s.padding=o.padding.map(p),d=!0):s.padding=p(o.padding));var g=s.columns,m=s.count,v=s.viewport.width,y=s.viewport.height,x=s.viewport.x,b=s.viewport.y,_=v/g,w=y/g;s.passes=[];for(var T=0;T&lt;g;T++)for(var k=0;k&lt;g;k++)if((s.diagonal||k!==T)&amp;&amp;(s.upper||!(T&gt;k))&amp;&amp;(s.lower||!(T&lt;k))){var M=f(s.id,T,k),A=this.passes[M]||(this.passes[M]={});if(o.data&amp;&amp;(o.transpose?A.positions={x:{buffer:s.buffer,offset:k,count:m,stride:g},y:{buffer:s.buffer,offset:T,count:m,stride:g}}:A.positions={x:{buffer:s.buffer,offset:k*m,count:m},y:{buffer:s.buffer,offset:T*m,count:m}},A.bounds=h(s.bounds,T,k)),o.domain||o.viewport||o.data){var S=d?h(s.padding,T,k):s.padding;if(s.domain){var E=h(s.domain,T,k),C=E[0],L=E[1],I=E[2],P=E[3];A.viewport=[x+C*v+S[0],b+L*y+S[1],x+I*v-S[2],b+P*y-S[3]]}else A.viewport=[x+k*_+_*S[0],b+T*w+w*S[1],x+(k+1)*_-_*S[2],b+(T+1)*w-w*S[3]]}o.color&amp;&amp;(A.color=s.color),o.size&amp;&amp;(A.size=s.size),o.marker&amp;&amp;(A.marker=s.marker),o.borderSize&amp;&amp;(A.borderSize=s.borderSize),o.borderColor&amp;&amp;(A.borderColor=s.borderColor),o.opacity&amp;&amp;(A.opacity=s.opacity),o.range&amp;&amp;(A.range=n?h(s.range,T,k):s.range||A.bounds),s.passes.push(M)}return this},u.prototype.draw=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=[],i=0;i&lt;e.length;i++)if(&quot;number&quot;==typeof e[i]){var a=this.traces[e[i]],o=a.passes,l=a.passOffset;n.push.apply(n,s(l,l+o.length))}else if(e[i].length){var c=e[i],u=this.traces[i],f=u.passes,h=u.passOffset;f=f.map((function(t,e){n[h+e]=c}))}(t=this.scatter).draw.apply(t,n)}else this.scatter.draw();return this},u.prototype.destroy=function(){return this.traces.forEach((function(t){t.buffer&amp;&amp;t.buffer.destroy&amp;&amp;t.buffer.destroy()})),this.traces=null,this.passes=null,this.scatter.destroy(),this}},{&quot;array-bounds&quot;:70,&quot;array-range&quot;:72,&quot;flatten-vertex-data&quot;:244,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511,raf:528,&quot;regl-scatter2d&quot;:537}],540:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?e.exports=n():t.createREGL=n()}(this,(function(){function t(t,e){this.id=V++,this.type=t,this.data=e}function e(t){return&quot;[&quot;+function t(e){if(0===e.length)return[];var r=e.charAt(0),n=e.charAt(e.length-1);if(1&lt;e.length&amp;&amp;r===n&amp;&amp;('&quot;'===r||&quot;'&quot;===r))return['&quot;'+e.substr(1,e.length-2).replace(/\\/g,&quot;\\\\&quot;).replace(/&quot;/g,'\\&quot;')+'&quot;'];if(r=/\[(false|true|null|\d+|'[^']*'|&quot;[^&quot;]*&quot;)\]/.exec(e))return t(e.substr(0,r.index)).concat(t(r[1])).concat(t(e.substr(r.index+r[0].length)));if(1===(r=e.split(&quot;.&quot;)).length)return['&quot;'+e.replace(/\\/g,&quot;\\\\&quot;).replace(/&quot;/g,'\\&quot;')+'&quot;'];for(e=[],n=0;n&lt;r.length;++n)e=e.concat(t(r[n]));return e}(t).join(&quot;][&quot;)+&quot;]&quot;}function r(t){return&quot;string&quot;==typeof t?t.split():t}function n(t){return&quot;string&quot;==typeof t?document.querySelector(t):t}function i(t){var e,i,a,o,s=t||{};t={};var l=[],c=[],u=&quot;undefined&quot;==typeof window?1:window.devicePixelRatio,f=!1,h=function(t){},p=function(){};if(&quot;string&quot;==typeof s?e=document.querySelector(s):&quot;object&quot;==typeof s&amp;&amp;(&quot;string&quot;==typeof s.nodeName&amp;&amp;&quot;function&quot;==typeof s.appendChild&amp;&amp;&quot;function&quot;==typeof s.getBoundingClientRect?e=s:&quot;function&quot;==typeof s.drawArrays||&quot;function&quot;==typeof s.drawElements?a=(o=s).canvas:(&quot;gl&quot;in s?o=s.gl:&quot;canvas&quot;in s?a=n(s.canvas):&quot;container&quot;in s&amp;&amp;(i=n(s.container)),&quot;attributes&quot;in s&amp;&amp;(t=s.attributes),&quot;extensions&quot;in s&amp;&amp;(l=r(s.extensions)),&quot;optionalExtensions&quot;in s&amp;&amp;(c=r(s.optionalExtensions)),&quot;onDone&quot;in s&amp;&amp;(h=s.onDone),&quot;profile&quot;in s&amp;&amp;(f=!!s.profile),&quot;pixelRatio&quot;in s&amp;&amp;(u=+s.pixelRatio))),e&amp;&amp;(&quot;canvas&quot;===e.nodeName.toLowerCase()?a=e:i=e),!o){if(!a){if(!(e=function(t,e,r){function n(){var e=window.innerWidth,n=window.innerHeight;t!==document.body&amp;&amp;(e=(n=t.getBoundingClientRect()).right-n.left,n=n.bottom-n.top),a.width=r*e,a.height=r*n,U(a.style,{width:e+&quot;px&quot;,height:n+&quot;px&quot;})}var i,a=document.createElement(&quot;canvas&quot;);return U(a.style,{border:0,margin:0,padding:0,top:0,left:0}),t.appendChild(a),t===document.body&amp;&amp;(a.style.position=&quot;absolute&quot;,U(t.style,{margin:0,padding:0})),t!==document.body&amp;&amp;&quot;function&quot;==typeof ResizeObserver?(i=new ResizeObserver((function(){setTimeout(n)}))).observe(t):window.addEventListener(&quot;resize&quot;,n,!1),n(),{canvas:a,onDestroy:function(){i?i.disconnect():window.removeEventListener(&quot;resize&quot;,n),t.removeChild(a)}}}(i||document.body,0,u)))return null;a=e.canvas,p=e.onDestroy}void 0===t.premultipliedAlpha&amp;&amp;(t.premultipliedAlpha=!0),o=function(t,e){function r(r){try{return t.getContext(r,e)}catch(t){return null}}return r(&quot;webgl&quot;)||r(&quot;experimental-webgl&quot;)||r(&quot;webgl-experimental&quot;)}(a,t)}return o?{gl:o,canvas:a,container:i,extensions:l,optionalExtensions:c,pixelRatio:u,profile:f,onDone:h,onDestroy:p}:(p(),h(&quot;webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org&quot;),null)}function a(t,e){for(var r=Array(t),n=0;n&lt;t;++n)r[n]=e(n);return r}function o(t){var e,r;return e=(65535&lt;t)&lt;&lt;4,e|=r=(255&lt;(t&gt;&gt;&gt;=e))&lt;&lt;3,(e|=r=(15&lt;(t&gt;&gt;&gt;=r))&lt;&lt;2)|(r=(3&lt;(t&gt;&gt;&gt;=r))&lt;&lt;1)|t&gt;&gt;&gt;r&gt;&gt;1}function s(){function t(t){t:{for(var e=16;268435456&gt;=e;e*=16)if(t&lt;=e){t=e;break t}t=0}return 0&lt;(e=r[o(t)&gt;&gt;2]).length?e.pop():new ArrayBuffer(t)}function e(t){r[o(t.byteLength)&gt;&gt;2].push(t)}var r=a(8,(function(){return[]}));return{alloc:t,free:e,allocType:function(e,r){var n=null;switch(e){case 5120:n=new Int8Array(t(r),0,r);break;case 5121:n=new Uint8Array(t(r),0,r);break;case 5122:n=new Int16Array(t(2*r),0,r);break;case 5123:n=new Uint16Array(t(2*r),0,r);break;case 5124:n=new Int32Array(t(4*r),0,r);break;case 5125:n=new Uint32Array(t(4*r),0,r);break;case 5126:n=new Float32Array(t(4*r),0,r);break;default:return null}return n.length!==r?n.subarray(0,r):n},freeType:function(t){e(t.buffer)}}}function l(t){return!!t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;Array.isArray(t.shape)&amp;&amp;Array.isArray(t.stride)&amp;&amp;&quot;number&quot;==typeof t.offset&amp;&amp;t.shape.length===t.stride.length&amp;&amp;(Array.isArray(t.data)||X(t.data))}function c(t,e,r,n,i,a){for(var o=0;o&lt;e;++o)for(var s=t[o],l=0;l&lt;r;++l)for(var c=s[l],u=0;u&lt;n;++u)i[a++]=c[u]}function u(t){return 0|K[Object.prototype.toString.call(t)]}function f(t,e){for(var r=0;r&lt;e.length;++r)t[r]=e[r]}function h(t,e,r,n,i,a,o){for(var s=0,l=0;l&lt;r;++l)for(var c=0;c&lt;n;++c)t[s++]=e[i*l+a*c+o]}function p(t,e,r,n){function i(e){this.id=c++,this.buffer=t.createBuffer(),this.type=e,this.usage=35044,this.byteLength=0,this.dimension=1,this.dtype=5121,this.persistentData=null,r.profile&amp;&amp;(this.stats={size:0})}function a(e,r,n){e.byteLength=r.byteLength,t.bufferData(e.type,r,n)}function o(t,e,r,n,i,o){if(t.usage=r,Array.isArray(e)){if(t.dtype=n||5126,0&lt;e.length)if(Array.isArray(e[0])){i=et(e);for(var s=n=1;s&lt;i.length;++s)n*=i[s];t.dimension=n,a(t,e=tt(e,i,t.dtype),r),o?t.persistentData=e:Y.freeType(e)}else&quot;number&quot;==typeof e[0]?(t.dimension=i,f(i=Y.allocType(t.dtype,e.length),e),a(t,i,r),o?t.persistentData=i:Y.freeType(i)):X(e[0])&amp;&amp;(t.dimension=e[0].length,t.dtype=n||u(e[0])||5126,a(t,e=tt(e,[e.length,e[0].length],t.dtype),r),o?t.persistentData=e:Y.freeType(e))}else if(X(e))t.dtype=n||u(e),t.dimension=i,a(t,e,r),o&amp;&amp;(t.persistentData=new Uint8Array(new Uint8Array(e.buffer)));else if(l(e)){i=e.shape;var c=e.stride,p=(s=e.offset,0),d=0,g=0,m=0;1===i.length?(p=i[0],d=1,g=c[0],m=0):2===i.length&amp;&amp;(p=i[0],d=i[1],g=c[0],m=c[1]),t.dtype=n||u(e.data)||5126,t.dimension=d,h(i=Y.allocType(t.dtype,p*d),e.data,p,d,g,m,s),a(t,i,r),o?t.persistentData=i:Y.freeType(i)}else e instanceof ArrayBuffer&amp;&amp;(t.dtype=5121,t.dimension=i,a(t,e,r),o&amp;&amp;(t.persistentData=new Uint8Array(new Uint8Array(e))))}function s(r){e.bufferCount--,n(r),t.deleteBuffer(r.buffer),r.buffer=null,delete p[r.id]}var c=0,p={};i.prototype.bind=function(){t.bindBuffer(this.type,this.buffer)},i.prototype.destroy=function(){s(this)};var d=[];return r.profile&amp;&amp;(e.getTotalBufferSize=function(){var t=0;return Object.keys(p).forEach((function(e){t+=p[e].stats.size})),t}),{create:function(n,a,c,d){function g(e){var n=35044,i=null,a=0,s=0,c=1;return Array.isArray(e)||X(e)||l(e)||e instanceof ArrayBuffer?i=e:&quot;number&quot;==typeof e?a=0|e:e&amp;&amp;(&quot;data&quot;in e&amp;&amp;(i=e.data),&quot;usage&quot;in e&amp;&amp;(n=$[e.usage]),&quot;type&quot;in e&amp;&amp;(s=Q[e.type]),&quot;dimension&quot;in e&amp;&amp;(c=0|e.dimension),&quot;length&quot;in e&amp;&amp;(a=0|e.length)),m.bind(),i?o(m,i,n,s,c,d):(a&amp;&amp;t.bufferData(m.type,a,n),m.dtype=s||5121,m.usage=n,m.dimension=c,m.byteLength=a),r.profile&amp;&amp;(m.stats.size=m.byteLength*rt[m.dtype]),g}e.bufferCount++;var m=new i(a);return p[m.id]=m,c||g(n),g._reglType=&quot;buffer&quot;,g._buffer=m,g.subdata=function(e,r){var n,i=0|(r||0);if(m.bind(),X(e)||e instanceof ArrayBuffer)t.bufferSubData(m.type,i,e);else if(Array.isArray(e)){if(0&lt;e.length)if(&quot;number&quot;==typeof e[0]){var a=Y.allocType(m.dtype,e.length);f(a,e),t.bufferSubData(m.type,i,a),Y.freeType(a)}else(Array.isArray(e[0])||X(e[0]))&amp;&amp;(n=et(e),a=tt(e,n,m.dtype),t.bufferSubData(m.type,i,a),Y.freeType(a))}else if(l(e)){n=e.shape;var o=e.stride,s=a=0,c=0,p=0;1===n.length?(a=n[0],s=1,c=o[0],p=0):2===n.length&amp;&amp;(a=n[0],s=n[1],c=o[0],p=o[1]),n=Array.isArray(e.data)?m.dtype:u(e.data),h(n=Y.allocType(n,a*s),e.data,a,s,c,p,e.offset),t.bufferSubData(m.type,i,n),Y.freeType(n)}return g},r.profile&amp;&amp;(g.stats=m.stats),g.destroy=function(){s(m)},g},createStream:function(t,e){var r=d.pop();return r||(r=new i(t)),r.bind(),o(r,e,35040,0,1,!1),r},destroyStream:function(t){d.push(t)},clear:function(){Z(p).forEach(s),d.forEach(s)},getBuffer:function(t){return t&amp;&amp;t._buffer instanceof i?t._buffer:null},restore:function(){Z(p).forEach((function(e){e.buffer=t.createBuffer(),t.bindBuffer(e.type,e.buffer),t.bufferData(e.type,e.persistentData||e.byteLength,e.usage)}))},_initBuffer:o}}function d(t,e,r,n){function i(t){this.id=c++,s[this.id]=this,this.buffer=t,this.primType=4,this.type=this.vertCount=0}function a(n,i,a,o,s,c,u){var f;if(n.buffer.bind(),i?((f=u)||X(i)&amp;&amp;(!l(i)||X(i.data))||(f=e.oes_element_index_uint?5125:5123),r._initBuffer(n.buffer,i,a,f,3)):(t.bufferData(34963,c,a),n.buffer.dtype=f||5121,n.buffer.usage=a,n.buffer.dimension=3,n.buffer.byteLength=c),f=u,!u){switch(n.buffer.dtype){case 5121:case 5120:f=5121;break;case 5123:case 5122:f=5123;break;case 5125:case 5124:f=5125}n.buffer.dtype=f}n.type=f,0&gt;(i=s)&amp;&amp;(i=n.buffer.byteLength,5123===f?i&gt;&gt;=1:5125===f&amp;&amp;(i&gt;&gt;=2)),n.vertCount=i,i=o,0&gt;o&amp;&amp;(i=4,1===(o=n.buffer.dimension)&amp;&amp;(i=0),2===o&amp;&amp;(i=1),3===o&amp;&amp;(i=4)),n.primType=i}function o(t){n.elementsCount--,delete s[t.id],t.buffer.destroy(),t.buffer=null}var s={},c=0,u={uint8:5121,uint16:5123};e.oes_element_index_uint&amp;&amp;(u.uint32=5125),i.prototype.bind=function(){this.buffer.bind()};var f=[];return{create:function(t,e){function s(t){if(t)if(&quot;number&quot;==typeof t)c(t),f.primType=4,f.vertCount=0|t,f.type=5121;else{var e=null,r=35044,n=-1,i=-1,o=0,h=0;Array.isArray(t)||X(t)||l(t)?e=t:(&quot;data&quot;in t&amp;&amp;(e=t.data),&quot;usage&quot;in t&amp;&amp;(r=$[t.usage]),&quot;primitive&quot;in t&amp;&amp;(n=nt[t.primitive]),&quot;count&quot;in t&amp;&amp;(i=0|t.count),&quot;type&quot;in t&amp;&amp;(h=u[t.type]),&quot;length&quot;in t?o=0|t.length:(o=i,5123===h||5122===h?o*=2:5125!==h&amp;&amp;5124!==h||(o*=4))),a(f,e,r,n,i,o,h)}else c(),f.primType=4,f.vertCount=0,f.type=5121;return s}var c=r.create(null,34963,!0),f=new i(c._buffer);return n.elementsCount++,s(t),s._reglType=&quot;elements&quot;,s._elements=f,s.subdata=function(t,e){return c.subdata(t,e),s},s.destroy=function(){o(f)},s},createStream:function(t){var e=f.pop();return e||(e=new i(r.create(null,34963,!0,!1)._buffer)),a(e,t,35040,-1,-1,0,0),e},destroyStream:function(t){f.push(t)},getElements:function(t){return&quot;function&quot;==typeof t&amp;&amp;t._elements instanceof i?t._elements:null},clear:function(){Z(s).forEach(o)}}}function g(t){for(var e=Y.allocType(5123,t.length),r=0;r&lt;t.length;++r)if(isNaN(t[r]))e[r]=65535;else if(1/0===t[r])e[r]=31744;else if(-1/0===t[r])e[r]=64512;else{it[0]=t[r];var n=(a=at[0])&gt;&gt;&gt;31&lt;&lt;15,i=(a&lt;&lt;1&gt;&gt;&gt;24)-127,a=a&gt;&gt;13&amp;1023;e[r]=-24&gt;i?n:-14&gt;i?n+(a+1024&gt;&gt;-14-i):15&lt;i?n+31744:n+(i+15&lt;&lt;10)+a}return e}function m(t){return Array.isArray(t)||X(t)}function v(t){return&quot;[object &quot;+t+&quot;]&quot;}function y(t){return Array.isArray(t)&amp;&amp;(0===t.length||&quot;number&quot;==typeof t[0])}function x(t){return!(!Array.isArray(t)||0===t.length||!m(t[0]))}function b(t){return Object.prototype.toString.call(t)}function _(t){if(!t)return!1;var e=b(t);return 0&lt;=gt.indexOf(e)||(y(t)||x(t)||l(t))}function w(t,e){36193===t.type?(t.data=g(e),Y.freeType(e)):t.data=e}function T(t,e,r,n,i,a){if(t=&quot;undefined&quot;!=typeof vt[t]?vt[t]:lt[t]*mt[e],a&amp;&amp;(t*=6),i){for(n=0;1&lt;=r;)n+=t*r*r,r/=2;return n}return t*r*n}function k(t,e,r,n,i,a,o){function s(){this.format=this.internalformat=6408,this.type=5121,this.flipY=this.premultiplyAlpha=this.compressed=!1,this.unpackAlignment=1,this.colorSpace=37444,this.channels=this.height=this.width=0}function c(t,e){t.internalformat=e.internalformat,t.format=e.format,t.type=e.type,t.compressed=e.compressed,t.premultiplyAlpha=e.premultiplyAlpha,t.flipY=e.flipY,t.unpackAlignment=e.unpackAlignment,t.colorSpace=e.colorSpace,t.width=e.width,t.height=e.height,t.channels=e.channels}function u(t,e){if(&quot;object&quot;==typeof e&amp;&amp;e){&quot;premultiplyAlpha&quot;in e&amp;&amp;(t.premultiplyAlpha=e.premultiplyAlpha),&quot;flipY&quot;in e&amp;&amp;(t.flipY=e.flipY),&quot;alignment&quot;in e&amp;&amp;(t.unpackAlignment=e.alignment),&quot;colorSpace&quot;in e&amp;&amp;(t.colorSpace=q[e.colorSpace]),&quot;type&quot;in e&amp;&amp;(t.type=H[e.type]);var r=t.width,n=t.height,i=t.channels,a=!1;&quot;shape&quot;in e?(r=e.shape[0],n=e.shape[1],3===e.shape.length&amp;&amp;(i=e.shape[2],a=!0)):(&quot;radius&quot;in e&amp;&amp;(r=n=e.radius),&quot;width&quot;in e&amp;&amp;(r=e.width),&quot;height&quot;in e&amp;&amp;(n=e.height),&quot;channels&quot;in e&amp;&amp;(i=e.channels,a=!0)),t.width=0|r,t.height=0|n,t.channels=0|i,r=!1,&quot;format&quot;in e&amp;&amp;(r=e.format,n=t.internalformat=G[r],t.format=at[n],r in H&amp;&amp;!(&quot;type&quot;in e)&amp;&amp;(t.type=H[r]),r in W&amp;&amp;(t.compressed=!0),r=!0),!a&amp;&amp;r?t.channels=lt[t.format]:a&amp;&amp;!r&amp;&amp;t.channels!==st[t.format]&amp;&amp;(t.format=t.internalformat=st[t.channels])}}function f(e){t.pixelStorei(37440,e.flipY),t.pixelStorei(37441,e.premultiplyAlpha),t.pixelStorei(37443,e.colorSpace),t.pixelStorei(3317,e.unpackAlignment)}function h(){s.call(this),this.yOffset=this.xOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function p(t,e){var r=null;if(_(e)?r=e:e&amp;&amp;(u(t,e),&quot;x&quot;in e&amp;&amp;(t.xOffset=0|e.x),&quot;y&quot;in e&amp;&amp;(t.yOffset=0|e.y),_(e.data)&amp;&amp;(r=e.data)),e.copy){var n=i.viewportWidth,a=i.viewportHeight;t.width=t.width||n-t.xOffset,t.height=t.height||a-t.yOffset,t.needsCopy=!0}else if(r){if(X(r))t.channels=t.channels||4,t.data=r,&quot;type&quot;in e||5121!==t.type||(t.type=0|K[Object.prototype.toString.call(r)]);else if(y(r)){switch(t.channels=t.channels||4,a=(n=r).length,t.type){case 5121:case 5123:case 5125:case 5126:(a=Y.allocType(t.type,a)).set(n),t.data=a;break;case 36193:t.data=g(n)}t.alignment=1,t.needsFree=!0}else if(l(r)){n=r.data,Array.isArray(n)||5121!==t.type||(t.type=0|K[Object.prototype.toString.call(n)]);a=r.shape;var o,s,c,f,h=r.stride;3===a.length?(c=a[2],f=h[2]):f=c=1,o=a[0],s=a[1],a=h[0],h=h[1],t.alignment=1,t.width=o,t.height=s,t.channels=c,t.format=t.internalformat=st[c],t.needsFree=!0,o=f,r=r.offset,c=t.width,f=t.height,s=t.channels;for(var p=Y.allocType(36193===t.type?5126:t.type,c*f*s),d=0,v=0;v&lt;f;++v)for(var T=0;T&lt;c;++T)for(var k=0;k&lt;s;++k)p[d++]=n[a*T+h*v+o*k+r];w(t,p)}else if(b(r)===ct||b(r)===ut||b(r)===ft)b(r)===ct||b(r)===ut?t.element=r:t.element=r.canvas,t.width=t.element.width,t.height=t.element.height,t.channels=4;else if(b(r)===ht)t.element=r,t.width=r.width,t.height=r.height,t.channels=4;else if(b(r)===pt)t.element=r,t.width=r.naturalWidth,t.height=r.naturalHeight,t.channels=4;else if(b(r)===dt)t.element=r,t.width=r.videoWidth,t.height=r.videoHeight,t.channels=4;else if(x(r)){for(n=t.width||r[0].length,a=t.height||r.length,h=t.channels,h=m(r[0][0])?h||r[0][0].length:h||1,o=J.shape(r),c=1,f=0;f&lt;o.length;++f)c*=o[f];c=Y.allocType(36193===t.type?5126:t.type,c),J.flatten(r,o,&quot;&quot;,c),w(t,c),t.alignment=1,t.width=n,t.height=a,t.channels=h,t.format=t.internalformat=st[h],t.needsFree=!0}}else t.width=t.width||1,t.height=t.height||1,t.channels=t.channels||4}function d(e,r,i,a,o){var s=e.element,l=e.data,c=e.internalformat,u=e.format,h=e.type,p=e.width,d=e.height;f(e),s?t.texSubImage2D(r,o,i,a,u,h,s):e.compressed?t.compressedTexSubImage2D(r,o,i,a,c,p,d,l):e.needsCopy?(n(),t.copyTexSubImage2D(r,o,i,a,e.xOffset,e.yOffset,p,d)):t.texSubImage2D(r,o,i,a,p,d,u,h,l)}function v(){return gt.pop()||new h}function k(t){t.needsFree&amp;&amp;Y.freeType(t.data),h.call(t),gt.push(t)}function M(){s.call(this),this.genMipmaps=!1,this.mipmapHint=4352,this.mipmask=0,this.images=Array(16)}function A(t,e,r){var n=t.images[0]=v();t.mipmask=1,n.width=t.width=e,n.height=t.height=r,n.channels=t.channels=4}function S(t,e){var r=null;if(_(e))c(r=t.images[0]=v(),t),p(r,e),t.mipmask=1;else if(u(t,e),Array.isArray(e.mipmap))for(var n=e.mipmap,i=0;i&lt;n.length;++i)c(r=t.images[i]=v(),t),r.width&gt;&gt;=i,r.height&gt;&gt;=i,p(r,n[i]),t.mipmask|=1&lt;&lt;i;else c(r=t.images[0]=v(),t),p(r,e),t.mipmask=1;c(t,t.images[0])}function E(e,r){for(var i=e.images,a=0;a&lt;i.length&amp;&amp;i[a];++a){var o=i[a],s=r,l=a,c=o.element,u=o.data,h=o.internalformat,p=o.format,d=o.type,g=o.width,m=o.height;f(o),c?t.texImage2D(s,l,p,p,d,c):o.compressed?t.compressedTexImage2D(s,l,h,g,m,0,u):o.needsCopy?(n(),t.copyTexImage2D(s,l,p,o.xOffset,o.yOffset,g,m,0)):t.texImage2D(s,l,p,g,m,0,p,d,u||null)}}function C(){var t=mt.pop()||new M;s.call(t);for(var e=t.mipmask=0;16&gt;e;++e)t.images[e]=null;return t}function L(t){for(var e=t.images,r=0;r&lt;e.length;++r)e[r]&amp;&amp;k(e[r]),e[r]=null;mt.push(t)}function I(){this.magFilter=this.minFilter=9728,this.wrapT=this.wrapS=33071,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=4352}function P(t,e){&quot;min&quot;in e&amp;&amp;(t.minFilter=V[e.min],0&lt;=ot.indexOf(t.minFilter)&amp;&amp;!(&quot;faces&quot;in e)&amp;&amp;(t.genMipmaps=!0)),&quot;mag&quot;in e&amp;&amp;(t.magFilter=j[e.mag]);var r=t.wrapS,n=t.wrapT;if(&quot;wrap&quot;in e){var i=e.wrap;&quot;string&quot;==typeof i?r=n=N[i]:Array.isArray(i)&amp;&amp;(r=N[i[0]],n=N[i[1]])}else&quot;wrapS&quot;in e&amp;&amp;(r=N[e.wrapS]),&quot;wrapT&quot;in e&amp;&amp;(n=N[e.wrapT]);if(t.wrapS=r,t.wrapT=n,&quot;anisotropic&quot;in e&amp;&amp;(t.anisotropic=e.anisotropic),&quot;mipmap&quot;in e){switch(r=!1,typeof e.mipmap){case&quot;string&quot;:t.mipmapHint=B[e.mipmap],r=t.genMipmaps=!0;break;case&quot;boolean&quot;:r=t.genMipmaps=e.mipmap;break;case&quot;object&quot;:t.genMipmaps=!1,r=!0}!r||&quot;min&quot;in e||(t.minFilter=9984)}}function z(r,n){t.texParameteri(n,10241,r.minFilter),t.texParameteri(n,10240,r.magFilter),t.texParameteri(n,10242,r.wrapS),t.texParameteri(n,10243,r.wrapT),e.ext_texture_filter_anisotropic&amp;&amp;t.texParameteri(n,34046,r.anisotropic),r.genMipmaps&amp;&amp;(t.hint(33170,r.mipmapHint),t.generateMipmap(n))}function O(e){s.call(this),this.mipmask=0,this.internalformat=6408,this.id=vt++,this.refCount=1,this.target=e,this.texture=t.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new I,o.profile&amp;&amp;(this.stats={size:0})}function D(e){t.activeTexture(33984),t.bindTexture(e.target,e.texture)}function R(){var e=bt[0];e?t.bindTexture(e.target,e.texture):t.bindTexture(3553,null)}function F(e){var r=e.texture,n=e.unit,i=e.target;0&lt;=n&amp;&amp;(t.activeTexture(33984+n),t.bindTexture(i,null),bt[n]=null),t.deleteTexture(r),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete yt[e.id],a.textureCount--}var B={&quot;don't care&quot;:4352,&quot;dont care&quot;:4352,nice:4354,fast:4353},N={repeat:10497,clamp:33071,mirror:33648},j={nearest:9728,linear:9729},V=U({mipmap:9987,&quot;nearest mipmap nearest&quot;:9984,&quot;linear mipmap nearest&quot;:9985,&quot;nearest mipmap linear&quot;:9986,&quot;linear mipmap linear&quot;:9987},j),q={none:0,browser:37444},H={uint8:5121,rgba4:32819,rgb565:33635,&quot;rgb5 a1&quot;:32820},G={alpha:6406,luminance:6409,&quot;luminance alpha&quot;:6410,rgb:6407,rgba:6408,rgba4:32854,&quot;rgb5 a1&quot;:32855,rgb565:36194},W={};e.ext_srgb&amp;&amp;(G.srgb=35904,G.srgba=35906),e.oes_texture_float&amp;&amp;(H.float32=H.float=5126),e.oes_texture_half_float&amp;&amp;(H.float16=H[&quot;half float&quot;]=36193),e.webgl_depth_texture&amp;&amp;(U(G,{depth:6402,&quot;depth stencil&quot;:34041}),U(H,{uint16:5123,uint32:5125,&quot;depth stencil&quot;:34042})),e.webgl_compressed_texture_s3tc&amp;&amp;U(W,{&quot;rgb s3tc dxt1&quot;:33776,&quot;rgba s3tc dxt1&quot;:33777,&quot;rgba s3tc dxt3&quot;:33778,&quot;rgba s3tc dxt5&quot;:33779}),e.webgl_compressed_texture_atc&amp;&amp;U(W,{&quot;rgb atc&quot;:35986,&quot;rgba atc explicit alpha&quot;:35987,&quot;rgba atc interpolated alpha&quot;:34798}),e.webgl_compressed_texture_pvrtc&amp;&amp;U(W,{&quot;rgb pvrtc 4bppv1&quot;:35840,&quot;rgb pvrtc 2bppv1&quot;:35841,&quot;rgba pvrtc 4bppv1&quot;:35842,&quot;rgba pvrtc 2bppv1&quot;:35843}),e.webgl_compressed_texture_etc1&amp;&amp;(W[&quot;rgb etc1&quot;]=36196);var Q=Array.prototype.slice.call(t.getParameter(34467));Object.keys(W).forEach((function(t){var e=W[t];0&lt;=Q.indexOf(e)&amp;&amp;(G[t]=e)}));var $=Object.keys(G);r.textureFormats=$;var tt=[];Object.keys(G).forEach((function(t){tt[G[t]]=t}));var et=[];Object.keys(H).forEach((function(t){et[H[t]]=t}));var rt=[];Object.keys(j).forEach((function(t){rt[j[t]]=t}));var nt=[];Object.keys(V).forEach((function(t){nt[V[t]]=t}));var it=[];Object.keys(N).forEach((function(t){it[N[t]]=t}));var at=$.reduce((function(t,r){var n=G[r];return 6409===n||6406===n||6409===n||6410===n||6402===n||34041===n||e.ext_srgb&amp;&amp;(35904===n||35906===n)?t[n]=n:32855===n||0&lt;=r.indexOf(&quot;rgba&quot;)?t[n]=6408:t[n]=6407,t}),{}),gt=[],mt=[],vt=0,yt={},xt=r.maxTextureUnits,bt=Array(xt).map((function(){return null}));return U(O.prototype,{bind:function(){this.bindCount+=1;var e=this.unit;if(0&gt;e){for(var r=0;r&lt;xt;++r){var n=bt[r];if(n){if(0&lt;n.bindCount)continue;n.unit=-1}bt[r]=this,e=r;break}o.profile&amp;&amp;a.maxTextureUnits&lt;e+1&amp;&amp;(a.maxTextureUnits=e+1),this.unit=e,t.activeTexture(33984+e),t.bindTexture(this.target,this.texture)}return e},unbind:function(){--this.bindCount},decRef:function(){0&gt;=--this.refCount&amp;&amp;F(this)}}),o.profile&amp;&amp;(a.getTotalTextureSize=function(){var t=0;return Object.keys(yt).forEach((function(e){t+=yt[e].stats.size})),t}),{create2D:function(e,r){function n(t,e){var r=i.texInfo;I.call(r);var a=C();return&quot;number&quot;==typeof t?A(a,0|t,&quot;number&quot;==typeof e?0|e:0|t):t?(P(r,t),S(a,t)):A(a,1,1),r.genMipmaps&amp;&amp;(a.mipmask=(a.width&lt;&lt;1)-1),i.mipmask=a.mipmask,c(i,a),i.internalformat=a.internalformat,n.width=a.width,n.height=a.height,D(i),E(a,3553),z(r,3553),R(),L(a),o.profile&amp;&amp;(i.stats.size=T(i.internalformat,i.type,a.width,a.height,r.genMipmaps,!1)),n.format=tt[i.internalformat],n.type=et[i.type],n.mag=rt[r.magFilter],n.min=nt[r.minFilter],n.wrapS=it[r.wrapS],n.wrapT=it[r.wrapT],n}var i=new O(3553);return yt[i.id]=i,a.textureCount++,n(e,r),n.subimage=function(t,e,r,a){e|=0,r|=0,a|=0;var o=v();return c(o,i),o.width=0,o.height=0,p(o,t),o.width=o.width||(i.width&gt;&gt;a)-e,o.height=o.height||(i.height&gt;&gt;a)-r,D(i),d(o,3553,e,r,a),R(),k(o),n},n.resize=function(e,r){var a=0|e,s=0|r||a;if(a===i.width&amp;&amp;s===i.height)return n;n.width=i.width=a,n.height=i.height=s,D(i);for(var l=0;i.mipmask&gt;&gt;l;++l){var c=a&gt;&gt;l,u=s&gt;&gt;l;if(!c||!u)break;t.texImage2D(3553,l,i.format,c,u,0,i.format,i.type,null)}return R(),o.profile&amp;&amp;(i.stats.size=T(i.internalformat,i.type,a,s,!1,!1)),n},n._reglType=&quot;texture2d&quot;,n._texture=i,o.profile&amp;&amp;(n.stats=i.stats),n.destroy=function(){i.decRef()},n},createCube:function(e,r,n,i,s,l){function f(t,e,r,n,i,a){var s,l=h.texInfo;for(I.call(l),s=0;6&gt;s;++s)g[s]=C();if(&quot;number&quot;!=typeof t&amp;&amp;t){if(&quot;object&quot;==typeof t)if(e)S(g[0],t),S(g[1],e),S(g[2],r),S(g[3],n),S(g[4],i),S(g[5],a);else if(P(l,t),u(h,t),&quot;faces&quot;in t)for(t=t.faces,s=0;6&gt;s;++s)c(g[s],h),S(g[s],t[s]);else for(s=0;6&gt;s;++s)S(g[s],t)}else for(t=0|t||1,s=0;6&gt;s;++s)A(g[s],t,t);for(c(h,g[0]),h.mipmask=l.genMipmaps?(g[0].width&lt;&lt;1)-1:g[0].mipmask,h.internalformat=g[0].internalformat,f.width=g[0].width,f.height=g[0].height,D(h),s=0;6&gt;s;++s)E(g[s],34069+s);for(z(l,34067),R(),o.profile&amp;&amp;(h.stats.size=T(h.internalformat,h.type,f.width,f.height,l.genMipmaps,!0)),f.format=tt[h.internalformat],f.type=et[h.type],f.mag=rt[l.magFilter],f.min=nt[l.minFilter],f.wrapS=it[l.wrapS],f.wrapT=it[l.wrapT],s=0;6&gt;s;++s)L(g[s]);return f}var h=new O(34067);yt[h.id]=h,a.cubeCount++;var g=Array(6);return f(e,r,n,i,s,l),f.subimage=function(t,e,r,n,i){r|=0,n|=0,i|=0;var a=v();return c(a,h),a.width=0,a.height=0,p(a,e),a.width=a.width||(h.width&gt;&gt;i)-r,a.height=a.height||(h.height&gt;&gt;i)-n,D(h),d(a,34069+t,r,n,i),R(),k(a),f},f.resize=function(e){if((e|=0)!==h.width){f.width=h.width=e,f.height=h.height=e,D(h);for(var r=0;6&gt;r;++r)for(var n=0;h.mipmask&gt;&gt;n;++n)t.texImage2D(34069+r,n,h.format,e&gt;&gt;n,e&gt;&gt;n,0,h.format,h.type,null);return R(),o.profile&amp;&amp;(h.stats.size=T(h.internalformat,h.type,f.width,f.height,!1,!0)),f}},f._reglType=&quot;textureCube&quot;,f._texture=h,o.profile&amp;&amp;(f.stats=h.stats),f.destroy=function(){h.decRef()},f},clear:function(){for(var e=0;e&lt;xt;++e)t.activeTexture(33984+e),t.bindTexture(3553,null),bt[e]=null;Z(yt).forEach(F),a.cubeCount=0,a.textureCount=0},getTexture:function(t){return null},restore:function(){for(var e=0;e&lt;xt;++e){var r=bt[e];r&amp;&amp;(r.bindCount=0,r.unit=-1,bt[e]=null)}Z(yt).forEach((function(e){e.texture=t.createTexture(),t.bindTexture(e.target,e.texture);for(var r=0;32&gt;r;++r)if(0!=(e.mipmask&amp;1&lt;&lt;r))if(3553===e.target)t.texImage2D(3553,r,e.internalformat,e.width&gt;&gt;r,e.height&gt;&gt;r,0,e.internalformat,e.type,null);else for(var n=0;6&gt;n;++n)t.texImage2D(34069+n,r,e.internalformat,e.width&gt;&gt;r,e.height&gt;&gt;r,0,e.internalformat,e.type,null);z(e.texInfo,e.target)}))}}}function M(t,e,r,n,i,a){function o(t,e,r){this.target=t,this.texture=e,this.renderbuffer=r;var n=t=0;e?(t=e.width,n=e.height):r&amp;&amp;(t=r.width,n=r.height),this.width=t,this.height=n}function s(t){t&amp;&amp;(t.texture&amp;&amp;t.texture._texture.decRef(),t.renderbuffer&amp;&amp;t.renderbuffer._renderbuffer.decRef())}function l(t,e,r){t&amp;&amp;(t.texture?t.texture._texture.refCount+=1:t.renderbuffer._renderbuffer.refCount+=1)}function c(e,r){r&amp;&amp;(r.texture?t.framebufferTexture2D(36160,e,r.target,r.texture._texture.texture,0):t.framebufferRenderbuffer(36160,e,36161,r.renderbuffer._renderbuffer.renderbuffer))}function u(t){var e=3553,r=null,n=null,i=t;return&quot;object&quot;==typeof t&amp;&amp;(i=t.data,&quot;target&quot;in t&amp;&amp;(e=0|t.target)),&quot;texture2d&quot;===(t=i._reglType)||&quot;textureCube&quot;===t?r=i:&quot;renderbuffer&quot;===t&amp;&amp;(n=i,e=36161),new o(e,r,n)}function f(t,e,r,a,s){return r?((t=n.create2D({width:t,height:e,format:a,type:s}))._texture.refCount=0,new o(3553,t,null)):((t=i.create({width:t,height:e,format:a}))._renderbuffer.refCount=0,new o(36161,null,t))}function h(t){return t&amp;&amp;(t.texture||t.renderbuffer)}function p(t,e,r){t&amp;&amp;(t.texture?t.texture.resize(e,r):t.renderbuffer&amp;&amp;t.renderbuffer.resize(e,r),t.width=e,t.height=r)}function d(){this.id=T++,k[this.id]=this,this.framebuffer=t.createFramebuffer(),this.height=this.width=0,this.colorAttachments=[],this.depthStencilAttachment=this.stencilAttachment=this.depthAttachment=null}function g(t){t.colorAttachments.forEach(s),s(t.depthAttachment),s(t.stencilAttachment),s(t.depthStencilAttachment)}function m(e){t.deleteFramebuffer(e.framebuffer),e.framebuffer=null,a.framebufferCount--,delete k[e.id]}function v(e){var n;t.bindFramebuffer(36160,e.framebuffer);var i=e.colorAttachments;for(n=0;n&lt;i.length;++n)c(36064+n,i[n]);for(n=i.length;n&lt;r.maxColorAttachments;++n)t.framebufferTexture2D(36160,36064+n,3553,null,0);t.framebufferTexture2D(36160,33306,3553,null,0),t.framebufferTexture2D(36160,36096,3553,null,0),t.framebufferTexture2D(36160,36128,3553,null,0),c(36096,e.depthAttachment),c(36128,e.stencilAttachment),c(33306,e.depthStencilAttachment),t.checkFramebufferStatus(36160),t.isContextLost(),t.bindFramebuffer(36160,x.next?x.next.framebuffer:null),x.cur=x.next,t.getError()}function y(t,e){function r(t,e){var i,a=0,o=0,s=!0,c=!0;i=null;var p=!0,d=&quot;rgba&quot;,m=&quot;uint8&quot;,y=1,x=null,w=null,T=null,k=!1;&quot;number&quot;==typeof t?(a=0|t,o=0|e||a):t?(&quot;shape&quot;in t?(a=(o=t.shape)[0],o=o[1]):(&quot;radius&quot;in t&amp;&amp;(a=o=t.radius),&quot;width&quot;in t&amp;&amp;(a=t.width),&quot;height&quot;in t&amp;&amp;(o=t.height)),(&quot;color&quot;in t||&quot;colors&quot;in t)&amp;&amp;(i=t.color||t.colors,Array.isArray(i)),i||(&quot;colorCount&quot;in t&amp;&amp;(y=0|t.colorCount),&quot;colorTexture&quot;in t&amp;&amp;(p=!!t.colorTexture,d=&quot;rgba4&quot;),&quot;colorType&quot;in t&amp;&amp;(m=t.colorType,!p)&amp;&amp;(&quot;half float&quot;===m||&quot;float16&quot;===m?d=&quot;rgba16f&quot;:&quot;float&quot;!==m&amp;&amp;&quot;float32&quot;!==m||(d=&quot;rgba32f&quot;)),&quot;colorFormat&quot;in t&amp;&amp;(d=t.colorFormat,0&lt;=b.indexOf(d)?p=!0:0&lt;=_.indexOf(d)&amp;&amp;(p=!1))),(&quot;depthTexture&quot;in t||&quot;depthStencilTexture&quot;in t)&amp;&amp;(k=!(!t.depthTexture&amp;&amp;!t.depthStencilTexture)),&quot;depth&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.depth?s=t.depth:(x=t.depth,c=!1)),&quot;stencil&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.stencil?c=t.stencil:(w=t.stencil,s=!1)),&quot;depthStencil&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.depthStencil?s=c=t.depthStencil:(T=t.depthStencil,c=s=!1))):a=o=1;var M=null,A=null,S=null,E=null;if(Array.isArray(i))M=i.map(u);else if(i)M=[u(i)];else for(M=Array(y),i=0;i&lt;y;++i)M[i]=f(a,o,p,d,m);for(a=a||M[0].width,o=o||M[0].height,x?A=u(x):s&amp;&amp;!c&amp;&amp;(A=f(a,o,k,&quot;depth&quot;,&quot;uint32&quot;)),w?S=u(w):c&amp;&amp;!s&amp;&amp;(S=f(a,o,!1,&quot;stencil&quot;,&quot;uint8&quot;)),T?E=u(T):!x&amp;&amp;!w&amp;&amp;c&amp;&amp;s&amp;&amp;(E=f(a,o,k,&quot;depth stencil&quot;,&quot;depth stencil&quot;)),s=null,i=0;i&lt;M.length;++i)l(M[i]),M[i]&amp;&amp;M[i].texture&amp;&amp;(c=bt[M[i].texture._texture.format]*_t[M[i].texture._texture.type],null===s&amp;&amp;(s=c));return l(A),l(S),l(E),g(n),n.width=a,n.height=o,n.colorAttachments=M,n.depthAttachment=A,n.stencilAttachment=S,n.depthStencilAttachment=E,r.color=M.map(h),r.depth=h(A),r.stencil=h(S),r.depthStencil=h(E),r.width=n.width,r.height=n.height,v(n),r}var n=new d;return a.framebufferCount++,r(t,e),U(r,{resize:function(t,e){var i=Math.max(0|t,1),a=Math.max(0|e||i,1);if(i===n.width&amp;&amp;a===n.height)return r;for(var o=n.colorAttachments,s=0;s&lt;o.length;++s)p(o[s],i,a);return p(n.depthAttachment,i,a),p(n.stencilAttachment,i,a),p(n.depthStencilAttachment,i,a),n.width=r.width=i,n.height=r.height=a,v(n),r},_reglType:&quot;framebuffer&quot;,_framebuffer:n,destroy:function(){m(n),g(n)},use:function(t){x.setFBO({framebuffer:r},t)}})}var x={cur:null,next:null,dirty:!1,setFBO:null},b=[&quot;rgba&quot;],_=[&quot;rgba4&quot;,&quot;rgb565&quot;,&quot;rgb5 a1&quot;];e.ext_srgb&amp;&amp;_.push(&quot;srgba&quot;),e.ext_color_buffer_half_float&amp;&amp;_.push(&quot;rgba16f&quot;,&quot;rgb16f&quot;),e.webgl_color_buffer_float&amp;&amp;_.push(&quot;rgba32f&quot;);var w=[&quot;uint8&quot;];e.oes_texture_half_float&amp;&amp;w.push(&quot;half float&quot;,&quot;float16&quot;),e.oes_texture_float&amp;&amp;w.push(&quot;float&quot;,&quot;float32&quot;);var T=0,k={};return U(x,{getFramebuffer:function(t){return&quot;function&quot;==typeof t&amp;&amp;&quot;framebuffer&quot;===t._reglType&amp;&amp;(t=t._framebuffer)instanceof d?t:null},create:y,createCube:function(t){function e(t){var i,a={color:null},o=0,s=null;i=&quot;rgba&quot;;var l=&quot;uint8&quot;,c=1;if(&quot;number&quot;==typeof t?o=0|t:t?(&quot;shape&quot;in t?o=t.shape[0]:(&quot;radius&quot;in t&amp;&amp;(o=0|t.radius),&quot;width&quot;in t?o=0|t.width:&quot;height&quot;in t&amp;&amp;(o=0|t.height)),(&quot;color&quot;in t||&quot;colors&quot;in t)&amp;&amp;(s=t.color||t.colors,Array.isArray(s)),s||(&quot;colorCount&quot;in t&amp;&amp;(c=0|t.colorCount),&quot;colorType&quot;in t&amp;&amp;(l=t.colorType),&quot;colorFormat&quot;in t&amp;&amp;(i=t.colorFormat)),&quot;depth&quot;in t&amp;&amp;(a.depth=t.depth),&quot;stencil&quot;in t&amp;&amp;(a.stencil=t.stencil),&quot;depthStencil&quot;in t&amp;&amp;(a.depthStencil=t.depthStencil)):o=1,s)if(Array.isArray(s))for(t=[],i=0;i&lt;s.length;++i)t[i]=s[i];else t=[s];else for(t=Array(c),s={radius:o,format:i,type:l},i=0;i&lt;c;++i)t[i]=n.createCube(s);for(a.color=Array(t.length),i=0;i&lt;t.length;++i)c=t[i],o=o||c.width,a.color[i]={target:34069,data:t[i]};for(i=0;6&gt;i;++i){for(c=0;c&lt;t.length;++c)a.color[c].target=34069+i;0&lt;i&amp;&amp;(a.depth=r[0].depth,a.stencil=r[0].stencil,a.depthStencil=r[0].depthStencil),r[i]?r[i](a):r[i]=y(a)}return U(e,{width:o,height:o,color:t})}var r=Array(6);return e(t),U(e,{faces:r,resize:function(t){var n=0|t;if(n===e.width)return e;var i=e.color;for(t=0;t&lt;i.length;++t)i[t].resize(n);for(t=0;6&gt;t;++t)r[t].resize(n);return e.width=e.height=n,e},_reglType:&quot;framebufferCube&quot;,destroy:function(){r.forEach((function(t){t.destroy()}))}})},clear:function(){Z(k).forEach(m)},restore:function(){x.cur=null,x.next=null,x.dirty=!0,Z(k).forEach((function(e){e.framebuffer=t.createFramebuffer(),v(e)}))}})}function A(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function S(t,e,r,n,i){function a(){this.id=++c,this.attributes=[];var t=e.oes_vertex_array_object;this.vao=t?t.createVertexArrayOES():null,u[this.id]=this,this.buffers=[]}var o=r.maxAttributes,s=Array(o);for(r=0;r&lt;o;++r)s[r]=new A;var c=0,u={},f={Record:A,scope:{},state:s,currentVAO:null,targetVAO:null,restore:e.oes_vertex_array_object?function(){e.oes_vertex_array_object&amp;&amp;Z(u).forEach((function(t){t.refresh()}))}:function(){},createVAO:function(t){function e(t){for(var n=0;n&lt;r.buffers.length;++n)r.buffers[n].destroy();r.buffers.length=0,(n=r.attributes).length=t.length;for(var a=0;a&lt;t.length;++a){var o=t[a],s=n[a]=new A;Array.isArray(o)||X(o)||l(o)?(o=i.create(o,34962,!1,!0),s.buffer=i.getBuffer(o),s.size=0|s.buffer.dimension,s.normalized=!1,s.type=s.buffer.dtype,s.offset=0,s.stride=0,s.divisor=0,s.state=1,r.buffers.push(o)):i.getBuffer(o)?(s.buffer=i.getBuffer(o),s.size=0|s.buffer.dimension,s.normalized=!1,s.type=s.buffer.dtype,s.offset=0,s.stride=0,s.divisor=0,s.state=1):i.getBuffer(o.buffer)?(s.buffer=i.getBuffer(o.buffer),s.size=0|(+o.size||s.buffer.dimension),s.normalized=!!o.normalized||!1,s.type=&quot;type&quot;in o?Q[o.type]:s.buffer.dtype,s.offset=0|(o.offset||0),s.stride=0|(o.stride||0),s.divisor=0|(o.divisor||0),s.state=1):&quot;x&quot;in o&amp;&amp;(s.x=+o.x||0,s.y=+o.y||0,s.z=+o.z||0,s.w=+o.w||0,s.state=2)}return r.refresh(),e}var r=new a;return n.vaoCount+=1,e.destroy=function(){r.destroy()},e._vao=r,e._reglType=&quot;vao&quot;,e(t)},getVAO:function(t){return&quot;function&quot;==typeof t&amp;&amp;t._vao?t._vao:null},destroyBuffer:function(e){for(var r=0;r&lt;s.length;++r){var n=s[r];n.buffer===e&amp;&amp;(t.disableVertexAttribArray(r),n.buffer=null)}},setVAO:e.oes_vertex_array_object?function(t){if(t!==f.currentVAO){var r=e.oes_vertex_array_object;t?r.bindVertexArrayOES(t.vao):r.bindVertexArrayOES(null),f.currentVAO=t}}:function(r){if(r!==f.currentVAO){if(r)r.bindAttrs();else for(var n=e.angle_instanced_arrays,i=0;i&lt;s.length;++i){var a=s[i];a.buffer?(t.enableVertexAttribArray(i),t.vertexAttribPointer(i,a.size,a.type,a.normalized,a.stride,a.offfset),n&amp;&amp;n.vertexAttribDivisorANGLE(i,a.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,a.x,a.y,a.z,a.w))}f.currentVAO=r}},clear:e.oes_vertex_array_object?function(){Z(u).forEach((function(t){t.destroy()}))}:function(){}};return a.prototype.bindAttrs=function(){for(var r=e.angle_instanced_arrays,n=this.attributes,i=0;i&lt;n.length;++i){var a=n[i];a.buffer?(t.enableVertexAttribArray(i),t.bindBuffer(34962,a.buffer.buffer),t.vertexAttribPointer(i,a.size,a.type,a.normalized,a.stride,a.offset),r&amp;&amp;r.vertexAttribDivisorANGLE(i,a.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,a.x,a.y,a.z,a.w))}for(r=n.length;r&lt;o;++r)t.disableVertexAttribArray(r)},a.prototype.refresh=function(){var t=e.oes_vertex_array_object;t&amp;&amp;(t.bindVertexArrayOES(this.vao),this.bindAttrs(),f.currentVAO=this)},a.prototype.destroy=function(){if(this.vao){var t=e.oes_vertex_array_object;this===f.currentVAO&amp;&amp;(f.currentVAO=null,t.bindVertexArrayOES(null)),t.deleteVertexArrayOES(this.vao),this.vao=null}u[this.id]&amp;&amp;(delete u[this.id],--n.vaoCount)},f}function E(t,e,r,n){function i(t,e,r,n){this.name=t,this.id=e,this.location=r,this.info=n}function a(t,e){for(var r=0;r&lt;t.length;++r)if(t[r].id===e.id)return void(t[r].location=e.location);t.push(e)}function o(r,n,i){if(!(o=(i=35632===r?c:u)[n])){var a=e.str(n),o=t.createShader(r);t.shaderSource(o,a),t.compileShader(o),i[n]=o}return o}function s(t,e){this.id=p++,this.fragId=t,this.vertId=e,this.program=null,this.uniforms=[],this.attributes=[],n.profile&amp;&amp;(this.stats={uniformsCount:0,attributesCount:0})}function l(r,s,l){var c;c=o(35632,r.fragId);var u=o(35633,r.vertId);if(s=r.program=t.createProgram(),t.attachShader(s,c),t.attachShader(s,u),l)for(c=0;c&lt;l.length;++c)u=l[c],t.bindAttribLocation(s,u[0],u[1]);t.linkProgram(s),u=t.getProgramParameter(s,35718),n.profile&amp;&amp;(r.stats.uniformsCount=u);var f=r.uniforms;for(c=0;c&lt;u;++c)if(l=t.getActiveUniform(s,c))if(1&lt;l.size)for(var h=0;h&lt;l.size;++h){var p=l.name.replace(&quot;[0]&quot;,&quot;[&quot;+h+&quot;]&quot;);a(f,new i(p,e.id(p),t.getUniformLocation(s,p),l))}else a(f,new i(l.name,e.id(l.name),t.getUniformLocation(s,l.name),l));for(u=t.getProgramParameter(s,35721),n.profile&amp;&amp;(r.stats.attributesCount=u),r=r.attributes,c=0;c&lt;u;++c)(l=t.getActiveAttrib(s,c))&amp;&amp;a(r,new i(l.name,e.id(l.name),t.getAttribLocation(s,l.name),l))}var c={},u={},f={},h=[],p=0;return n.profile&amp;&amp;(r.getMaxUniformsCount=function(){var t=0;return h.forEach((function(e){e.stats.uniformsCount&gt;t&amp;&amp;(t=e.stats.uniformsCount)})),t},r.getMaxAttributesCount=function(){var t=0;return h.forEach((function(e){e.stats.attributesCount&gt;t&amp;&amp;(t=e.stats.attributesCount)})),t}),{clear:function(){var e=t.deleteShader.bind(t);Z(c).forEach(e),c={},Z(u).forEach(e),u={},h.forEach((function(e){t.deleteProgram(e.program)})),h.length=0,f={},r.shaderCount=0},program:function(t,e,n,i){var a=f[e];a||(a=f[e]={});var o=a[t];return o&amp;&amp;!i?o:(e=new s(e,t),r.shaderCount++,l(e,n,i),o||(a[t]=e),h.push(e),e)},restore:function(){c={},u={};for(var t=0;t&lt;h.length;++t)l(h[t],null,h[t].attributes.map((function(t){return[t.location,t.name]})))},shader:o,frag:-1,vert:-1}}function C(t,e,r,n,i,a,o){function s(i){var a;a=null===e.next?5121:e.next.colorAttachments[0].texture._texture.type;var o=0,s=0,l=n.framebufferWidth,c=n.framebufferHeight,u=null;return X(i)?u=i:i&amp;&amp;(o=0|i.x,s=0|i.y,l=0|(i.width||n.framebufferWidth-o),c=0|(i.height||n.framebufferHeight-s),u=i.data||null),r(),i=l*c*4,u||(5121===a?u=new Uint8Array(i):5126===a&amp;&amp;(u=u||new Float32Array(i))),t.pixelStorei(3333,4),t.readPixels(o,s,l,c,6408,a,u),u}return function(t){return t&amp;&amp;&quot;framebuffer&quot;in t?function(t){var r;return e.setFBO({framebuffer:t.framebuffer},(function(){r=s(t)})),r}(t):s(t)}}function L(t){return Array.prototype.slice.call(t)}function I(t){return L(t).join(&quot;&quot;)}function P(){function t(){var t=[],e=[];return U((function(){t.push.apply(t,L(arguments))}),{def:function(){var n=&quot;v&quot;+r++;return e.push(n),0&lt;arguments.length&amp;&amp;(t.push(n,&quot;=&quot;),t.push.apply(t,L(arguments)),t.push(&quot;;&quot;)),n},toString:function(){return I([0&lt;e.length?&quot;var &quot;+e.join(&quot;,&quot;)+&quot;;&quot;:&quot;&quot;,I(t)])}})}function e(){function e(t,e){n(t,e,&quot;=&quot;,r.def(t,e),&quot;;&quot;)}var r=t(),n=t(),i=r.toString,a=n.toString;return U((function(){r.apply(r,L(arguments))}),{def:r.def,entry:r,exit:n,save:e,set:function(t,n,i){e(t,n),r(t,n,&quot;=&quot;,i,&quot;;&quot;)},toString:function(){return i()+a()}})}var r=0,n=[],i=[],a=t(),o={};return{global:a,link:function(t){for(var e=0;e&lt;i.length;++e)if(i[e]===t)return n[e];return e=&quot;g&quot;+r++,n.push(e),i.push(t),e},block:t,proc:function(t,r){function n(){var t=&quot;a&quot;+i.length;return i.push(t),t}var i=[];r=r||0;for(var a=0;a&lt;r;++a)n();var s=(a=e()).toString;return o[t]=U(a,{arg:n,toString:function(){return I([&quot;function(&quot;,i.join(),&quot;){&quot;,s(),&quot;}&quot;])}})},scope:e,cond:function(){var t=I(arguments),r=e(),n=e(),i=r.toString,a=n.toString;return U(r,{then:function(){return r.apply(r,L(arguments)),this},else:function(){return n.apply(n,L(arguments)),this},toString:function(){var e=a();return e&amp;&amp;(e=&quot;else{&quot;+e+&quot;}&quot;),I([&quot;if(&quot;,t,&quot;){&quot;,i(),&quot;}&quot;,e])}})},compile:function(){var t=['&quot;use strict&quot;;',a,&quot;return {&quot;];Object.keys(o).forEach((function(e){t.push('&quot;',e,'&quot;:',o[e].toString(),&quot;,&quot;)})),t.push(&quot;}&quot;);var e=I(t).replace(/;/g,&quot;;\n&quot;).replace(/}/g,&quot;}\n&quot;).replace(/{/g,&quot;{\n&quot;);return Function.apply(null,n.concat(e)).apply(null,i)}}}function z(t){return Array.isArray(t)||X(t)||l(t)}function O(t){return t.sort((function(t,e){return&quot;viewport&quot;===t?-1:&quot;viewport&quot;===e?1:t&lt;e?-1:1}))}function D(t,e,r,n){this.thisDep=t,this.contextDep=e,this.propDep=r,this.append=n}function R(t){return t&amp;&amp;!(t.thisDep||t.contextDep||t.propDep)}function F(t){return new D(!1,!1,!1,t)}function B(t,e){var r=t.type;return 0===r?new D(!0,1&lt;=(r=t.data.length),2&lt;=r,e):4===r?new D((r=t.data).thisDep,r.contextDep,r.propDep,e):new D(3===r,2===r,1===r,e)}function N(t,e,r,n,i,o,s,l,c,u,f,h,p,d,g){function v(t){return t.replace(&quot;.&quot;,&quot;_&quot;)}function y(t,e,r){var n=v(t);rt.push(t),et[n]=tt[n]=!!r,it[n]=e}function x(t,e,r){var n=v(t);rt.push(t),Array.isArray(r)?(tt[n]=r.slice(),et[n]=r.slice()):tt[n]=et[n]=r,at[n]=e}function b(){var t=P(),r=t.link,n=t.global;t.id=lt++,t.batchId=&quot;0&quot;;var i=r(ot),a=t.shared={props:&quot;a0&quot;};Object.keys(ot).forEach((function(t){a[t]=n.def(i,&quot;.&quot;,t)}));var o=t.next={},s=t.current={};Object.keys(at).forEach((function(t){Array.isArray(tt[t])&amp;&amp;(o[t]=n.def(a.next,&quot;.&quot;,t),s[t]=n.def(a.current,&quot;.&quot;,t))}));var l=t.constants={};Object.keys(st).forEach((function(t){l[t]=n.def(JSON.stringify(st[t]))})),t.invoke=function(e,n){switch(n.type){case 0:var i=[&quot;this&quot;,a.context,a.props,t.batchId];return e.def(r(n.data),&quot;.call(&quot;,i.slice(0,Math.max(n.data.length+1,4)),&quot;)&quot;);case 1:return e.def(a.props,n.data);case 2:return e.def(a.context,n.data);case 3:return e.def(&quot;this&quot;,n.data);case 4:return n.data.append(t,e),n.data.ref}},t.attribCache={};var c={};return t.scopeAttrib=function(t){if((t=e.id(t))in c)return c[t];var n=u.scope[t];return n||(n=u.scope[t]=new Z),c[t]=r(n)},t}function _(t,e){var r=t.static,n=t.dynamic;if(&quot;framebuffer&quot;in r){var i=r.framebuffer;return i?(i=l.getFramebuffer(i),F((function(t,e){var r=t.link(i),n=t.shared;return e.set(n.framebuffer,&quot;.next&quot;,r),n=n.context,e.set(n,&quot;.framebufferWidth&quot;,r+&quot;.width&quot;),e.set(n,&quot;.framebufferHeight&quot;,r+&quot;.height&quot;),r}))):F((function(t,e){var r=t.shared;return e.set(r.framebuffer,&quot;.next&quot;,&quot;null&quot;),r=r.context,e.set(r,&quot;.framebufferWidth&quot;,r+&quot;.drawingBufferWidth&quot;),e.set(r,&quot;.framebufferHeight&quot;,r+&quot;.drawingBufferHeight&quot;),&quot;null&quot;}))}if(&quot;framebuffer&quot;in n){var a=n.framebuffer;return B(a,(function(t,e){var r=t.invoke(e,a),n=t.shared,i=n.framebuffer;r=e.def(i,&quot;.getFramebuffer(&quot;,r,&quot;)&quot;);return e.set(i,&quot;.next&quot;,r),n=n.context,e.set(n,&quot;.framebufferWidth&quot;,r+&quot;?&quot;+r+&quot;.width:&quot;+n+&quot;.drawingBufferWidth&quot;),e.set(n,&quot;.framebufferHeight&quot;,r+&quot;?&quot;+r+&quot;.height:&quot;+n+&quot;.drawingBufferHeight&quot;),r}))}return null}function w(t,r,n){function i(t){if(t in a){var r=e.id(a[t]);return(t=F((function(){return r}))).id=r,t}if(t in o){var n=o[t];return B(n,(function(t,e){var r=t.invoke(e,n);return e.def(t.shared.strings,&quot;.id(&quot;,r,&quot;)&quot;)}))}return null}var a=t.static,o=t.dynamic,s=i(&quot;frag&quot;),l=i(&quot;vert&quot;),c=null;return R(s)&amp;&amp;R(l)?(c=f.program(l.id,s.id,null,n),t=F((function(t,e){return t.link(c)}))):t=new D(s&amp;&amp;s.thisDep||l&amp;&amp;l.thisDep,s&amp;&amp;s.contextDep||l&amp;&amp;l.contextDep,s&amp;&amp;s.propDep||l&amp;&amp;l.propDep,(function(t,e){var r,n,i=t.shared.shader;return r=s?s.append(t,e):e.def(i,&quot;.&quot;,&quot;frag&quot;),n=l?l.append(t,e):e.def(i,&quot;.&quot;,&quot;vert&quot;),e.def(i+&quot;.program(&quot;+n+&quot;,&quot;+r+&quot;)&quot;)})),{frag:s,vert:l,progVar:t,program:c}}function T(t,e){function r(t,e){if(t in n){var r=0|n[t];return F((function(t,n){return e&amp;&amp;(t.OFFSET=r),r}))}if(t in i){var o=i[t];return B(o,(function(t,r){var n=t.invoke(r,o);return e&amp;&amp;(t.OFFSET=n),n}))}return e&amp;&amp;a?F((function(t,e){return t.OFFSET=&quot;0&quot;,0})):null}var n=t.static,i=t.dynamic,a=function(){if(&quot;elements&quot;in n){var t=n.elements;z(t)?t=o.getElements(o.create(t,!0)):t&amp;&amp;(t=o.getElements(t));var e=F((function(e,r){if(t){var n=e.link(t);return e.ELEMENTS=n}return e.ELEMENTS=null}));return e.value=t,e}if(&quot;elements&quot;in i){var r=i.elements;return B(r,(function(t,e){var n=(i=t.shared).isBufferArgs,i=i.elements,a=t.invoke(e,r),o=e.def(&quot;null&quot;);n=e.def(n,&quot;(&quot;,a,&quot;)&quot;),a=t.cond(n).then(o,&quot;=&quot;,i,&quot;.createStream(&quot;,a,&quot;);&quot;).else(o,&quot;=&quot;,i,&quot;.getElements(&quot;,a,&quot;);&quot;);return e.entry(a),e.exit(t.cond(n).then(i,&quot;.destroyStream(&quot;,o,&quot;);&quot;)),t.ELEMENTS=o}))}return null}(),s=r(&quot;offset&quot;,!0);return{elements:a,primitive:function(){if(&quot;primitive&quot;in n){var t=n.primitive;return F((function(e,r){return nt[t]}))}if(&quot;primitive&quot;in i){var e=i.primitive;return B(e,(function(t,r){var n=t.constants.primTypes,i=t.invoke(r,e);return r.def(n,&quot;[&quot;,i,&quot;]&quot;)}))}return a?R(a)?a.value?F((function(t,e){return e.def(t.ELEMENTS,&quot;.primType&quot;)})):F((function(){return 4})):new D(a.thisDep,a.contextDep,a.propDep,(function(t,e){var r=t.ELEMENTS;return e.def(r,&quot;?&quot;,r,&quot;.primType:&quot;,4)})):null}(),count:function(){if(&quot;count&quot;in n){var t=0|n.count;return F((function(){return t}))}if(&quot;count&quot;in i){var e=i.count;return B(e,(function(t,r){return t.invoke(r,e)}))}return a?R(a)?a?s?new D(s.thisDep,s.contextDep,s.propDep,(function(t,e){return e.def(t.ELEMENTS,&quot;.vertCount-&quot;,t.OFFSET)})):F((function(t,e){return e.def(t.ELEMENTS,&quot;.vertCount&quot;)})):F((function(){return-1})):new D(a.thisDep||s.thisDep,a.contextDep||s.contextDep,a.propDep||s.propDep,(function(t,e){var r=t.ELEMENTS;return t.OFFSET?e.def(r,&quot;?&quot;,r,&quot;.vertCount-&quot;,t.OFFSET,&quot;:-1&quot;):e.def(r,&quot;?&quot;,r,&quot;.vertCount:-1&quot;)})):null}(),instances:r(&quot;instances&quot;,!1),offset:s}}function k(t,r){var n=t.static,a=t.dynamic,o={};return Object.keys(n).forEach((function(t){var r=n[t],a=e.id(t),s=new Z;if(z(r))s.state=1,s.buffer=i.getBuffer(i.create(r,34962,!1,!0)),s.type=0;else if(c=i.getBuffer(r))s.state=1,s.buffer=c,s.type=0;else if(&quot;constant&quot;in r){var l=r.constant;s.buffer=&quot;null&quot;,s.state=2,&quot;number&quot;==typeof l?s.x=l:wt.forEach((function(t,e){e&lt;l.length&amp;&amp;(s[t]=l[e])}))}else{var c=z(r.buffer)?i.getBuffer(i.create(r.buffer,34962,!1,!0)):i.getBuffer(r.buffer),u=0|r.offset,f=0|r.stride,h=0|r.size,p=!!r.normalized,d=0;&quot;type&quot;in r&amp;&amp;(d=Q[r.type]),r=0|r.divisor,s.buffer=c,s.state=1,s.size=h,s.normalized=p,s.type=d||c.dtype,s.offset=u,s.stride=f,s.divisor=r}o[t]=F((function(t,e){var r=t.attribCache;if(a in r)return r[a];var n={isStream:!1};return Object.keys(s).forEach((function(t){n[t]=s[t]})),s.buffer&amp;&amp;(n.buffer=t.link(s.buffer),n.type=n.type||n.buffer+&quot;.dtype&quot;),r[a]=n}))})),Object.keys(a).forEach((function(t){var e=a[t];o[t]=B(e,(function(t,r){function n(t){r(l[t],&quot;=&quot;,i,&quot;.&quot;,t,&quot;|0;&quot;)}var i=t.invoke(r,e),a=t.shared,o=t.constants,s=a.isBufferArgs,l=(a=a.buffer,{isStream:r.def(!1)}),c=new Z;c.state=1,Object.keys(c).forEach((function(t){l[t]=r.def(&quot;&quot;+c[t])}));var u=l.buffer,f=l.type;return r(&quot;if(&quot;,s,&quot;(&quot;,i,&quot;)){&quot;,l.isStream,&quot;=true;&quot;,u,&quot;=&quot;,a,&quot;.createStream(&quot;,34962,&quot;,&quot;,i,&quot;);&quot;,f,&quot;=&quot;,u,&quot;.dtype;&quot;,&quot;}else{&quot;,u,&quot;=&quot;,a,&quot;.getBuffer(&quot;,i,&quot;);&quot;,&quot;if(&quot;,u,&quot;){&quot;,f,&quot;=&quot;,u,&quot;.dtype;&quot;,'}else if(&quot;constant&quot; in ',i,&quot;){&quot;,l.state,&quot;=&quot;,2,&quot;;&quot;,&quot;if(typeof &quot;+i+'.constant === &quot;number&quot;){',l[wt[0]],&quot;=&quot;,i,&quot;.constant;&quot;,wt.slice(1).map((function(t){return l[t]})).join(&quot;=&quot;),&quot;=0;&quot;,&quot;}else{&quot;,wt.map((function(t,e){return l[t]+&quot;=&quot;+i+&quot;.constant.length&gt;&quot;+e+&quot;?&quot;+i+&quot;.constant[&quot;+e+&quot;]:0;&quot;})).join(&quot;&quot;),&quot;}}else{&quot;,&quot;if(&quot;,s,&quot;(&quot;,i,&quot;.buffer)){&quot;,u,&quot;=&quot;,a,&quot;.createStream(&quot;,34962,&quot;,&quot;,i,&quot;.buffer);&quot;,&quot;}else{&quot;,u,&quot;=&quot;,a,&quot;.getBuffer(&quot;,i,&quot;.buffer);&quot;,&quot;}&quot;,f,'=&quot;type&quot; in ',i,&quot;?&quot;,o.glTypes,&quot;[&quot;,i,&quot;.type]:&quot;,u,&quot;.dtype;&quot;,l.normalized,&quot;=!!&quot;,i,&quot;.normalized;&quot;),n(&quot;size&quot;),n(&quot;offset&quot;),n(&quot;stride&quot;),n(&quot;divisor&quot;),r(&quot;}}&quot;),r.exit(&quot;if(&quot;,l.isStream,&quot;){&quot;,a,&quot;.destroyStream(&quot;,u,&quot;);&quot;,&quot;}&quot;),l}))})),o}function M(t,e,n,i,o){function s(t){var e=c[t];e&amp;&amp;(h[t]=e)}var l=function(t,e){if(&quot;string&quot;==typeof(r=t.static).frag&amp;&amp;&quot;string&quot;==typeof r.vert){if(0&lt;Object.keys(e.dynamic).length)return null;var r=e.static,n=Object.keys(r);if(0&lt;n.length&amp;&amp;&quot;number&quot;==typeof r[n[0]]){for(var i=[],a=0;a&lt;n.length;++a)i.push([0|r[n[a]],n[a]]);return i}}return null}(t,e),c=function(t,e,r){function n(t){if(t in i){var r=i[t];t=!0;var n,o,s=0|r.x,l=0|r.y;return&quot;width&quot;in r?n=0|r.width:t=!1,&quot;height&quot;in r?o=0|r.height:t=!1,new D(!t&amp;&amp;e&amp;&amp;e.thisDep,!t&amp;&amp;e&amp;&amp;e.contextDep,!t&amp;&amp;e&amp;&amp;e.propDep,(function(t,e){var i=t.shared.context,a=n;&quot;width&quot;in r||(a=e.def(i,&quot;.&quot;,&quot;framebufferWidth&quot;,&quot;-&quot;,s));var c=o;return&quot;height&quot;in r||(c=e.def(i,&quot;.&quot;,&quot;framebufferHeight&quot;,&quot;-&quot;,l)),[s,l,a,c]}))}if(t in a){var c=a[t];return t=B(c,(function(t,e){var r=t.invoke(e,c),n=t.shared.context,i=e.def(r,&quot;.x|0&quot;),a=e.def(r,&quot;.y|0&quot;);return[i,a,e.def('&quot;width&quot; in ',r,&quot;?&quot;,r,&quot;.width|0:&quot;,&quot;(&quot;,n,&quot;.&quot;,&quot;framebufferWidth&quot;,&quot;-&quot;,i,&quot;)&quot;),r=e.def('&quot;height&quot; in ',r,&quot;?&quot;,r,&quot;.height|0:&quot;,&quot;(&quot;,n,&quot;.&quot;,&quot;framebufferHeight&quot;,&quot;-&quot;,a,&quot;)&quot;)]})),e&amp;&amp;(t.thisDep=t.thisDep||e.thisDep,t.contextDep=t.contextDep||e.contextDep,t.propDep=t.propDep||e.propDep),t}return e?new D(e.thisDep,e.contextDep,e.propDep,(function(t,e){var r=t.shared.context;return[0,0,e.def(r,&quot;.&quot;,&quot;framebufferWidth&quot;),e.def(r,&quot;.&quot;,&quot;framebufferHeight&quot;)]})):null}var i=t.static,a=t.dynamic;if(t=n(&quot;viewport&quot;)){var o=t;t=new D(t.thisDep,t.contextDep,t.propDep,(function(t,e){var r=o.append(t,e),n=t.shared.context;return e.set(n,&quot;.viewportWidth&quot;,r[2]),e.set(n,&quot;.viewportHeight&quot;,r[3]),r}))}return{viewport:t,scissor_box:n(&quot;scissor.box&quot;)}}(t,d=_(t)),f=T(t),h=function(t,e){var r=t.static,n=t.dynamic,i={};return rt.forEach((function(t){function e(e,a){if(t in r){var s=e(r[t]);i[o]=F((function(){return s}))}else if(t in n){var l=n[t];i[o]=B(l,(function(t,e){return a(t,e,t.invoke(e,l))}))}}var o=v(t);switch(t){case&quot;cull.enable&quot;:case&quot;blend.enable&quot;:case&quot;dither&quot;:case&quot;stencil.enable&quot;:case&quot;depth.enable&quot;:case&quot;scissor.enable&quot;:case&quot;polygonOffset.enable&quot;:case&quot;sample.alpha&quot;:case&quot;sample.enable&quot;:case&quot;depth.mask&quot;:return e((function(t){return t}),(function(t,e,r){return r}));case&quot;depth.func&quot;:return e((function(t){return Mt[t]}),(function(t,e,r){return e.def(t.constants.compareFuncs,&quot;[&quot;,r,&quot;]&quot;)}));case&quot;depth.range&quot;:return e((function(t){return t}),(function(t,e,r){return[e.def(&quot;+&quot;,r,&quot;[0]&quot;),e=e.def(&quot;+&quot;,r,&quot;[1]&quot;)]}));case&quot;blend.func&quot;:return e((function(t){return[kt[&quot;srcRGB&quot;in t?t.srcRGB:t.src],kt[&quot;dstRGB&quot;in t?t.dstRGB:t.dst],kt[&quot;srcAlpha&quot;in t?t.srcAlpha:t.src],kt[&quot;dstAlpha&quot;in t?t.dstAlpha:t.dst]]}),(function(t,e,r){function n(t,n){return e.def('&quot;',t,n,'&quot; in ',r,&quot;?&quot;,r,&quot;.&quot;,t,n,&quot;:&quot;,r,&quot;.&quot;,t)}t=t.constants.blendFuncs;var i=n(&quot;src&quot;,&quot;RGB&quot;),a=n(&quot;dst&quot;,&quot;RGB&quot;),o=(i=e.def(t,&quot;[&quot;,i,&quot;]&quot;),e.def(t,&quot;[&quot;,n(&quot;src&quot;,&quot;Alpha&quot;),&quot;]&quot;));return[i,a=e.def(t,&quot;[&quot;,a,&quot;]&quot;),o,t=e.def(t,&quot;[&quot;,n(&quot;dst&quot;,&quot;Alpha&quot;),&quot;]&quot;)]}));case&quot;blend.equation&quot;:return e((function(t){return&quot;string&quot;==typeof t?[J[t],J[t]]:&quot;object&quot;==typeof t?[J[t.rgb],J[t.alpha]]:void 0}),(function(t,e,r){var n=t.constants.blendEquations,i=e.def(),a=e.def();return(t=t.cond(&quot;typeof &quot;,r,'===&quot;string&quot;')).then(i,&quot;=&quot;,a,&quot;=&quot;,n,&quot;[&quot;,r,&quot;];&quot;),t.else(i,&quot;=&quot;,n,&quot;[&quot;,r,&quot;.rgb];&quot;,a,&quot;=&quot;,n,&quot;[&quot;,r,&quot;.alpha];&quot;),e(t),[i,a]}));case&quot;blend.color&quot;:return e((function(t){return a(4,(function(e){return+t[e]}))}),(function(t,e,r){return a(4,(function(t){return e.def(&quot;+&quot;,r,&quot;[&quot;,t,&quot;]&quot;)}))}));case&quot;stencil.mask&quot;:return e((function(t){return 0|t}),(function(t,e,r){return e.def(r,&quot;|0&quot;)}));case&quot;stencil.func&quot;:return e((function(t){return[Mt[t.cmp||&quot;keep&quot;],t.ref||0,&quot;mask&quot;in t?t.mask:-1]}),(function(t,e,r){return[t=e.def('&quot;cmp&quot; in ',r,&quot;?&quot;,t.constants.compareFuncs,&quot;[&quot;,r,&quot;.cmp]&quot;,&quot;:&quot;,7680),e.def(r,&quot;.ref|0&quot;),e=e.def('&quot;mask&quot; in ',r,&quot;?&quot;,r,&quot;.mask|0:-1&quot;)]}));case&quot;stencil.opFront&quot;:case&quot;stencil.opBack&quot;:return e((function(e){return[&quot;stencil.opBack&quot;===t?1029:1028,At[e.fail||&quot;keep&quot;],At[e.zfail||&quot;keep&quot;],At[e.zpass||&quot;keep&quot;]]}),(function(e,r,n){function i(t){return r.def('&quot;',t,'&quot; in ',n,&quot;?&quot;,a,&quot;[&quot;,n,&quot;.&quot;,t,&quot;]:&quot;,7680)}var a=e.constants.stencilOps;return[&quot;stencil.opBack&quot;===t?1029:1028,i(&quot;fail&quot;),i(&quot;zfail&quot;),i(&quot;zpass&quot;)]}));case&quot;polygonOffset.offset&quot;:return e((function(t){return[0|t.factor,0|t.units]}),(function(t,e,r){return[e.def(r,&quot;.factor|0&quot;),e=e.def(r,&quot;.units|0&quot;)]}));case&quot;cull.face&quot;:return e((function(t){var e=0;return&quot;front&quot;===t?e=1028:&quot;back&quot;===t&amp;&amp;(e=1029),e}),(function(t,e,r){return e.def(r,'===&quot;front&quot;?',1028,&quot;:&quot;,1029)}));case&quot;lineWidth&quot;:return e((function(t){return t}),(function(t,e,r){return r}));case&quot;frontFace&quot;:return e((function(t){return St[t]}),(function(t,e,r){return e.def(r+'===&quot;cw&quot;?2304:2305')}));case&quot;colorMask&quot;:return e((function(t){return t.map((function(t){return!!t}))}),(function(t,e,r){return a(4,(function(t){return&quot;!!&quot;+r+&quot;[&quot;+t+&quot;]&quot;}))}));case&quot;sample.coverage&quot;:return e((function(t){return[&quot;value&quot;in t?t.value:1,!!t.invert]}),(function(t,e,r){return[e.def('&quot;value&quot; in ',r,&quot;?+&quot;,r,&quot;.value:1&quot;),e=e.def(&quot;!!&quot;,r,&quot;.invert&quot;)]}))}})),i}(t),p=w(t,0,l);s(&quot;viewport&quot;),s(v(&quot;scissor.box&quot;));var d,g=0&lt;Object.keys(h).length;if((d={framebuffer:d,draw:f,shader:p,state:h,dirty:g,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}}).profile=function(t){var e,r=t.static;if(t=t.dynamic,&quot;profile&quot;in r){var n=!!r.profile;(e=F((function(t,e){return n}))).enable=n}else if(&quot;profile&quot;in t){var i=t.profile;e=B(i,(function(t,e){return t.invoke(e,i)}))}return e}(t),d.uniforms=function(t,e){var r=t.static,n=t.dynamic,i={};return Object.keys(r).forEach((function(t){var e,n=r[t];if(&quot;number&quot;==typeof n||&quot;boolean&quot;==typeof n)e=F((function(){return n}));else if(&quot;function&quot;==typeof n){var o=n._reglType;&quot;texture2d&quot;===o||&quot;textureCube&quot;===o?e=F((function(t){return t.link(n)})):&quot;framebuffer&quot;!==o&amp;&amp;&quot;framebufferCube&quot;!==o||(e=F((function(t){return t.link(n.color[0])})))}else m(n)&amp;&amp;(e=F((function(t){return t.global.def(&quot;[&quot;,a(n.length,(function(t){return n[t]})),&quot;]&quot;)})));e.value=n,i[t]=e})),Object.keys(n).forEach((function(t){var e=n[t];i[t]=B(e,(function(t,r){return t.invoke(r,e)}))})),i}(n),d.drawVAO=d.scopeVAO=function(t,e){var r=t.static,n=t.dynamic;if(&quot;vao&quot;in r){var i=r.vao;return null!==i&amp;&amp;null===u.getVAO(i)&amp;&amp;(i=u.createVAO(i)),F((function(t){return t.link(u.getVAO(i))}))}if(&quot;vao&quot;in n){var a=n.vao;return B(a,(function(t,e){var r=t.invoke(e,a);return e.def(t.shared.vao+&quot;.getVAO(&quot;+r+&quot;)&quot;)}))}return null}(t),!d.drawVAO&amp;&amp;p.program&amp;&amp;!l&amp;&amp;r.angle_instanced_arrays){var y=!0;if(t=p.program.attributes.map((function(t){return t=e.static[t],y=y&amp;&amp;!!t,t})),y&amp;&amp;0&lt;t.length){var x=u.getVAO(u.createVAO(t));d.drawVAO=new D(null,null,null,(function(t,e){return t.link(x)})),d.useVAO=!0}}return l?d.useVAO=!0:d.attributes=k(e),d.context=function(t){var e=t.static,r=t.dynamic,n={};return Object.keys(e).forEach((function(t){var r=e[t];n[t]=F((function(t,e){return&quot;number&quot;==typeof r||&quot;boolean&quot;==typeof r?&quot;&quot;+r:t.link(r)}))})),Object.keys(r).forEach((function(t){var e=r[t];n[t]=B(e,(function(t,r){return t.invoke(r,e)}))})),n}(i),d}function A(t,e,r){var n=t.shared.context,i=t.scope();Object.keys(r).forEach((function(a){e.save(n,&quot;.&quot;+a),i(n,&quot;.&quot;,a,&quot;=&quot;,r[a].append(t,e),&quot;;&quot;)})),e(i)}function S(t,e,r,n){var i,a=(s=t.shared).gl,o=s.framebuffer;$&amp;&amp;(i=e.def(s.extensions,&quot;.webgl_draw_buffers&quot;));var s=(l=t.constants).drawBuffer,l=l.backBuffer;t=r?r.append(t,e):e.def(o,&quot;.next&quot;),n||e(&quot;if(&quot;,t,&quot;!==&quot;,o,&quot;.cur){&quot;),e(&quot;if(&quot;,t,&quot;){&quot;,a,&quot;.bindFramebuffer(&quot;,36160,&quot;,&quot;,t,&quot;.framebuffer);&quot;),$&amp;&amp;e(i,&quot;.drawBuffersWEBGL(&quot;,s,&quot;[&quot;,t,&quot;.colorAttachments.length]);&quot;),e(&quot;}else{&quot;,a,&quot;.bindFramebuffer(&quot;,36160,&quot;,null);&quot;),$&amp;&amp;e(i,&quot;.drawBuffersWEBGL(&quot;,l,&quot;);&quot;),e(&quot;}&quot;,o,&quot;.cur=&quot;,t,&quot;;&quot;),n||e(&quot;}&quot;)}function E(t,e,r){var n=t.shared,i=n.gl,o=t.current,s=t.next,l=n.current,c=n.next,u=t.cond(l,&quot;.dirty&quot;);rt.forEach((function(e){var n,f;if(!((e=v(e))in r.state))if(e in s){n=s[e],f=o[e];var h=a(tt[e].length,(function(t){return u.def(n,&quot;[&quot;,t,&quot;]&quot;)}));u(t.cond(h.map((function(t,e){return t+&quot;!==&quot;+f+&quot;[&quot;+e+&quot;]&quot;})).join(&quot;||&quot;)).then(i,&quot;.&quot;,at[e],&quot;(&quot;,h,&quot;);&quot;,h.map((function(t,e){return f+&quot;[&quot;+e+&quot;]=&quot;+t})).join(&quot;;&quot;),&quot;;&quot;))}else n=u.def(c,&quot;.&quot;,e),h=t.cond(n,&quot;!==&quot;,l,&quot;.&quot;,e),u(h),e in it?h(t.cond(n).then(i,&quot;.enable(&quot;,it[e],&quot;);&quot;).else(i,&quot;.disable(&quot;,it[e],&quot;);&quot;),l,&quot;.&quot;,e,&quot;=&quot;,n,&quot;;&quot;):h(i,&quot;.&quot;,at[e],&quot;(&quot;,n,&quot;);&quot;,l,&quot;.&quot;,e,&quot;=&quot;,n,&quot;;&quot;)})),0===Object.keys(r.state).length&amp;&amp;u(l,&quot;.dirty=false;&quot;),e(u)}function C(t,e,r,n){var i=t.shared,a=t.current,o=i.current,s=i.gl;O(Object.keys(r)).forEach((function(i){var l=r[i];if(!n||n(l)){var c=l.append(t,e);if(it[i]){var u=it[i];R(l)?e(s,c?&quot;.enable(&quot;:&quot;.disable(&quot;,u,&quot;);&quot;):e(t.cond(c).then(s,&quot;.enable(&quot;,u,&quot;);&quot;).else(s,&quot;.disable(&quot;,u,&quot;);&quot;)),e(o,&quot;.&quot;,i,&quot;=&quot;,c,&quot;;&quot;)}else if(m(c)){var f=a[i];e(s,&quot;.&quot;,at[i],&quot;(&quot;,c,&quot;);&quot;,c.map((function(t,e){return f+&quot;[&quot;+e+&quot;]=&quot;+t})).join(&quot;;&quot;),&quot;;&quot;)}else e(s,&quot;.&quot;,at[i],&quot;(&quot;,c,&quot;);&quot;,o,&quot;.&quot;,i,&quot;=&quot;,c,&quot;;&quot;)}}))}function L(t,e){K&amp;&amp;(t.instancing=e.def(t.shared.extensions,&quot;.angle_instanced_arrays&quot;))}function I(t,e,r,n,i){function a(){return&quot;undefined&quot;==typeof performance?&quot;Date.now()&quot;:&quot;performance.now()&quot;}function o(t){t(c=e.def(),&quot;=&quot;,a(),&quot;;&quot;),&quot;string&quot;==typeof i?t(h,&quot;.count+=&quot;,i,&quot;;&quot;):t(h,&quot;.count++;&quot;),d&amp;&amp;(n?t(u=e.def(),&quot;=&quot;,g,&quot;.getNumPendingQueries();&quot;):t(g,&quot;.beginQuery(&quot;,h,&quot;);&quot;))}function s(t){t(h,&quot;.cpuTime+=&quot;,a(),&quot;-&quot;,c,&quot;;&quot;),d&amp;&amp;(n?t(g,&quot;.pushScopeStats(&quot;,u,&quot;,&quot;,g,&quot;.getNumPendingQueries(),&quot;,h,&quot;);&quot;):t(g,&quot;.endQuery();&quot;))}function l(t){var r=e.def(p,&quot;.profile&quot;);e(p,&quot;.profile=&quot;,t,&quot;;&quot;),e.exit(p,&quot;.profile=&quot;,r,&quot;;&quot;)}var c,u,f=t.shared,h=t.stats,p=f.current,g=f.timer;if(r=r.profile){if(R(r))return void(r.enable?(o(e),s(e.exit),l(&quot;true&quot;)):l(&quot;false&quot;));l(r=r.append(t,e))}else r=e.def(p,&quot;.profile&quot;);o(f=t.block()),e(&quot;if(&quot;,r,&quot;){&quot;,f,&quot;}&quot;),s(t=t.block()),e.exit(&quot;if(&quot;,r,&quot;){&quot;,t,&quot;}&quot;)}function N(t,e,r,n,i){function a(r,n,i){function a(){e(&quot;if(!&quot;,u,&quot;.buffer){&quot;,l,&quot;.enableVertexAttribArray(&quot;,c,&quot;);}&quot;);var r,a=i.type;r=i.size?e.def(i.size,&quot;||&quot;,n):n,e(&quot;if(&quot;,u,&quot;.type!==&quot;,a,&quot;||&quot;,u,&quot;.size!==&quot;,r,&quot;||&quot;,p.map((function(t){return u+&quot;.&quot;+t+&quot;!==&quot;+i[t]})).join(&quot;||&quot;),&quot;){&quot;,l,&quot;.bindBuffer(&quot;,34962,&quot;,&quot;,f,&quot;.buffer);&quot;,l,&quot;.vertexAttribPointer(&quot;,[c,r,a,i.normalized,i.stride,i.offset],&quot;);&quot;,u,&quot;.type=&quot;,a,&quot;;&quot;,u,&quot;.size=&quot;,r,&quot;;&quot;,p.map((function(t){return u+&quot;.&quot;+t+&quot;=&quot;+i[t]+&quot;;&quot;})).join(&quot;&quot;),&quot;}&quot;),K&amp;&amp;(a=i.divisor,e(&quot;if(&quot;,u,&quot;.divisor!==&quot;,a,&quot;){&quot;,t.instancing,&quot;.vertexAttribDivisorANGLE(&quot;,[c,a],&quot;);&quot;,u,&quot;.divisor=&quot;,a,&quot;;}&quot;))}function s(){e(&quot;if(&quot;,u,&quot;.buffer){&quot;,l,&quot;.disableVertexAttribArray(&quot;,c,&quot;);&quot;,u,&quot;.buffer=null;&quot;,&quot;}if(&quot;,wt.map((function(t,e){return u+&quot;.&quot;+t+&quot;!==&quot;+h[e]})).join(&quot;||&quot;),&quot;){&quot;,l,&quot;.vertexAttrib4f(&quot;,c,&quot;,&quot;,h,&quot;);&quot;,wt.map((function(t,e){return u+&quot;.&quot;+t+&quot;=&quot;+h[e]+&quot;;&quot;})).join(&quot;&quot;),&quot;}&quot;)}var l=o.gl,c=e.def(r,&quot;.location&quot;),u=e.def(o.attributes,&quot;[&quot;,c,&quot;]&quot;);r=i.state;var f=i.buffer,h=[i.x,i.y,i.z,i.w],p=[&quot;buffer&quot;,&quot;normalized&quot;,&quot;offset&quot;,&quot;stride&quot;];1===r?a():2===r?s():(e(&quot;if(&quot;,r,&quot;===&quot;,1,&quot;){&quot;),a(),e(&quot;}else{&quot;),s(),e(&quot;}&quot;))}var o=t.shared;n.forEach((function(n){var o,s=n.name,l=r.attributes[s];if(l){if(!i(l))return;o=l.append(t,e)}else{if(!i(Et))return;var c=t.scopeAttrib(s);o={},Object.keys(new Z).forEach((function(t){o[t]=e.def(c,&quot;.&quot;,t)}))}a(t.link(n),function(t){switch(t){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}(n.info.type),o)}))}function j(t,r,n,i,o){for(var s,l=t.shared,c=l.gl,u=0;u&lt;i.length;++u){var f,h=(g=i[u]).name,p=g.info.type,d=n.uniforms[h],g=t.link(g)+&quot;.location&quot;;if(d){if(!o(d))continue;if(R(d)){if(h=d.value,35678===p||35680===p)r(c,&quot;.uniform1i(&quot;,g,&quot;,&quot;,(p=t.link(h._texture||h.color[0]._texture))+&quot;.bind());&quot;),r.exit(p,&quot;.unbind();&quot;);else if(35674===p||35675===p||35676===p)d=2,35675===p?d=3:35676===p&amp;&amp;(d=4),r(c,&quot;.uniformMatrix&quot;,d,&quot;fv(&quot;,g,&quot;,false,&quot;,h=t.global.def(&quot;new Float32Array([&quot;+Array.prototype.slice.call(h)+&quot;])&quot;),&quot;);&quot;);else{switch(p){case 5126:s=&quot;1f&quot;;break;case 35664:s=&quot;2f&quot;;break;case 35665:s=&quot;3f&quot;;break;case 35666:s=&quot;4f&quot;;break;case 35670:case 5124:s=&quot;1i&quot;;break;case 35671:case 35667:s=&quot;2i&quot;;break;case 35672:case 35668:s=&quot;3i&quot;;break;case 35673:s=&quot;4i&quot;;break;case 35669:s=&quot;4i&quot;}r(c,&quot;.uniform&quot;,s,&quot;(&quot;,g,&quot;,&quot;,m(h)?Array.prototype.slice.call(h):h,&quot;);&quot;)}continue}f=d.append(t,r)}else{if(!o(Et))continue;f=r.def(l.uniforms,&quot;[&quot;,e.id(h),&quot;]&quot;)}switch(35678===p?r(&quot;if(&quot;,f,&quot;&amp;&amp;&quot;,f,'._reglType===&quot;framebuffer&quot;){',f,&quot;=&quot;,f,&quot;.color[0];&quot;,&quot;}&quot;):35680===p&amp;&amp;r(&quot;if(&quot;,f,&quot;&amp;&amp;&quot;,f,'._reglType===&quot;framebufferCube&quot;){',f,&quot;=&quot;,f,&quot;.color[0];&quot;,&quot;}&quot;),h=1,p){case 35678:case 35680:p=r.def(f,&quot;._texture&quot;),r(c,&quot;.uniform1i(&quot;,g,&quot;,&quot;,p,&quot;.bind());&quot;),r.exit(p,&quot;.unbind();&quot;);continue;case 5124:case 35670:s=&quot;1i&quot;;break;case 35667:case 35671:s=&quot;2i&quot;,h=2;break;case 35668:case 35672:s=&quot;3i&quot;,h=3;break;case 35669:case 35673:s=&quot;4i&quot;,h=4;break;case 5126:s=&quot;1f&quot;;break;case 35664:s=&quot;2f&quot;,h=2;break;case 35665:s=&quot;3f&quot;,h=3;break;case 35666:s=&quot;4f&quot;,h=4;break;case 35674:s=&quot;Matrix2fv&quot;;break;case 35675:s=&quot;Matrix3fv&quot;;break;case 35676:s=&quot;Matrix4fv&quot;}if(r(c,&quot;.uniform&quot;,s,&quot;(&quot;,g,&quot;,&quot;),&quot;M&quot;===s.charAt(0)){g=Math.pow(p-35674+2,2);var v=t.global.def(&quot;new Float32Array(&quot;,g,&quot;)&quot;);r(&quot;false,(Array.isArray(&quot;,f,&quot;)||&quot;,f,&quot; instanceof Float32Array)?&quot;,f,&quot;:(&quot;,a(g,(function(t){return v+&quot;[&quot;+t+&quot;]=&quot;+f+&quot;[&quot;+t+&quot;]&quot;})),&quot;,&quot;,v,&quot;)&quot;)}else r(1&lt;h?a(h,(function(t){return f+&quot;[&quot;+t+&quot;]&quot;})):f);r(&quot;);&quot;)}}function U(t,e,r,n){function i(i){var a=h[i];return a?a.contextDep&amp;&amp;n.contextDynamic||a.propDep?a.append(t,r):a.append(t,e):e.def(f,&quot;.&quot;,i)}function a(){function t(){r(l,&quot;.drawElementsInstancedANGLE(&quot;,[d,m,v,g+&quot;&lt;&lt;((&quot;+v+&quot;-5121)&gt;&gt;1)&quot;,s],&quot;);&quot;)}function e(){r(l,&quot;.drawArraysInstancedANGLE(&quot;,[d,g,m,s],&quot;);&quot;)}p?y?t():(r(&quot;if(&quot;,p,&quot;){&quot;),t(),r(&quot;}else{&quot;),e(),r(&quot;}&quot;)):e()}function o(){function t(){r(u+&quot;.drawElements(&quot;+[d,m,v,g+&quot;&lt;&lt;((&quot;+v+&quot;-5121)&gt;&gt;1)&quot;]+&quot;);&quot;)}function e(){r(u+&quot;.drawArrays(&quot;+[d,g,m]+&quot;);&quot;)}p?y?t():(r(&quot;if(&quot;,p,&quot;){&quot;),t(),r(&quot;}else{&quot;),e(),r(&quot;}&quot;)):e()}var s,l,c=t.shared,u=c.gl,f=c.draw,h=n.draw,p=function(){var i=h.elements,a=e;return i?((i.contextDep&amp;&amp;n.contextDynamic||i.propDep)&amp;&amp;(a=r),i=i.append(t,a)):i=a.def(f,&quot;.&quot;,&quot;elements&quot;),i&amp;&amp;a(&quot;if(&quot;+i+&quot;)&quot;+u+&quot;.bindBuffer(34963,&quot;+i+&quot;.buffer.buffer);&quot;),i}(),d=i(&quot;primitive&quot;),g=i(&quot;offset&quot;),m=function(){var i=h.count,a=e;return i?((i.contextDep&amp;&amp;n.contextDynamic||i.propDep)&amp;&amp;(a=r),i=i.append(t,a)):i=a.def(f,&quot;.&quot;,&quot;count&quot;),i}();if(&quot;number&quot;==typeof m){if(0===m)return}else r(&quot;if(&quot;,m,&quot;){&quot;),r.exit(&quot;}&quot;);K&amp;&amp;(s=i(&quot;instances&quot;),l=t.instancing);var v=p+&quot;.type&quot;,y=h.elements&amp;&amp;R(h.elements);K&amp;&amp;(&quot;number&quot;!=typeof s||0&lt;=s)?&quot;string&quot;==typeof s?(r(&quot;if(&quot;,s,&quot;&gt;0){&quot;),a(),r(&quot;}else if(&quot;,s,&quot;&lt;0){&quot;),o(),r(&quot;}&quot;)):a():o()}function V(t,e,r,n,i){return i=(e=b()).proc(&quot;body&quot;,i),K&amp;&amp;(e.instancing=i.def(e.shared.extensions,&quot;.angle_instanced_arrays&quot;)),t(e,i,r,n),e.compile().body}function H(t,e,r,n){L(t,e),r.useVAO?r.drawVAO?e(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,e),&quot;);&quot;):e(t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;):(e(t.shared.vao,&quot;.setVAO(null);&quot;),N(t,e,r,n.attributes,(function(){return!0}))),j(t,e,r,n.uniforms,(function(){return!0})),U(t,e,e,r)}function G(t,e,r,n){function i(){return!0}t.batchId=&quot;a1&quot;,L(t,e),N(t,e,r,n.attributes,i),j(t,e,r,n.uniforms,i),U(t,e,e,r)}function Y(t,e,r,n){function i(t){return t.contextDep&amp;&amp;o||t.propDep}function a(t){return!i(t)}L(t,e);var o=r.contextDep,s=e.def(),l=e.def();t.shared.props=l,t.batchId=s;var c=t.scope(),u=t.scope();e(c.entry,&quot;for(&quot;,s,&quot;=0;&quot;,s,&quot;&lt;&quot;,&quot;a1&quot;,&quot;;++&quot;,s,&quot;){&quot;,l,&quot;=&quot;,&quot;a0&quot;,&quot;[&quot;,s,&quot;];&quot;,u,&quot;}&quot;,c.exit),r.needsContext&amp;&amp;A(t,u,r.context),r.needsFramebuffer&amp;&amp;S(t,u,r.framebuffer),C(t,u,r.state,i),r.profile&amp;&amp;i(r.profile)&amp;&amp;I(t,u,r,!1,!0),n?(r.useVAO?r.drawVAO?i(r.drawVAO)?u(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,u),&quot;);&quot;):c(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,c),&quot;);&quot;):c(t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;):(c(t.shared.vao,&quot;.setVAO(null);&quot;),N(t,c,r,n.attributes,a),N(t,u,r,n.attributes,i)),j(t,c,r,n.uniforms,a),j(t,u,r,n.uniforms,i),U(t,c,u,r)):(e=t.global.def(&quot;{}&quot;),n=r.shader.progVar.append(t,u),l=u.def(n,&quot;.id&quot;),c=u.def(e,&quot;[&quot;,l,&quot;]&quot;),u(t.shared.gl,&quot;.useProgram(&quot;,n,&quot;.program);&quot;,&quot;if(!&quot;,c,&quot;){&quot;,c,&quot;=&quot;,e,&quot;[&quot;,l,&quot;]=&quot;,t.link((function(e){return V(G,t,r,e,2)})),&quot;(&quot;,n,&quot;);}&quot;,c,&quot;.call(this,a0[&quot;,s,&quot;],&quot;,s,&quot;);&quot;))}function W(t,r){function n(e){var n=r.shader[e];n&amp;&amp;i.set(a.shader,&quot;.&quot;+e,n.append(t,i))}var i=t.proc(&quot;scope&quot;,3);t.batchId=&quot;a2&quot;;var a=t.shared,o=a.current;A(t,i,r.context),r.framebuffer&amp;&amp;r.framebuffer.append(t,i),O(Object.keys(r.state)).forEach((function(e){var n=r.state[e].append(t,i);m(n)?n.forEach((function(r,n){i.set(t.next[e],&quot;[&quot;+n+&quot;]&quot;,r)})):i.set(a.next,&quot;.&quot;+e,n)})),I(t,i,r,!0,!0),[&quot;elements&quot;,&quot;offset&quot;,&quot;count&quot;,&quot;instances&quot;,&quot;primitive&quot;].forEach((function(e){var n=r.draw[e];n&amp;&amp;i.set(a.draw,&quot;.&quot;+e,&quot;&quot;+n.append(t,i))})),Object.keys(r.uniforms).forEach((function(n){i.set(a.uniforms,&quot;[&quot;+e.id(n)+&quot;]&quot;,r.uniforms[n].append(t,i))})),Object.keys(r.attributes).forEach((function(e){var n=r.attributes[e].append(t,i),a=t.scopeAttrib(e);Object.keys(new Z).forEach((function(t){i.set(a,&quot;.&quot;+t,n[t])}))})),r.scopeVAO&amp;&amp;i.set(a.vao,&quot;.targetVAO&quot;,r.scopeVAO.append(t,i)),n(&quot;vert&quot;),n(&quot;frag&quot;),0&lt;Object.keys(r.state).length&amp;&amp;(i(o,&quot;.dirty=true;&quot;),i.exit(o,&quot;.dirty=true;&quot;)),i(&quot;a1(&quot;,t.shared.context,&quot;,a0,&quot;,t.batchId,&quot;);&quot;)}function X(t,e,r){var n=e.static[r];if(n&amp;&amp;function(t){if(&quot;object&quot;==typeof t&amp;&amp;!m(t)){for(var e=Object.keys(t),r=0;r&lt;e.length;++r)if(q.isDynamic(t[e[r]]))return!0;return!1}}(n)){var i=t.global,a=Object.keys(n),o=!1,s=!1,l=!1,c=t.global.def(&quot;{}&quot;);a.forEach((function(e){var r=n[e];if(q.isDynamic(r))&quot;function&quot;==typeof r&amp;&amp;(r=n[e]=q.unbox(r)),e=B(r,null),o=o||e.thisDep,l=l||e.propDep,s=s||e.contextDep;else{switch(i(c,&quot;.&quot;,e,&quot;=&quot;),typeof r){case&quot;number&quot;:i(r);break;case&quot;string&quot;:i('&quot;',r,'&quot;');break;case&quot;object&quot;:Array.isArray(r)&amp;&amp;i(&quot;[&quot;,r.join(),&quot;]&quot;);break;default:i(t.link(r))}i(&quot;;&quot;)}})),e.dynamic[r]=new q.DynamicVariable(4,{thisDep:o,contextDep:s,propDep:l,ref:c,append:function(t,e){a.forEach((function(r){var i=n[r];q.isDynamic(i)&amp;&amp;(i=t.invoke(e,i),e(c,&quot;.&quot;,r,&quot;=&quot;,i,&quot;;&quot;))}))}}),delete e.static[r]}}var Z=u.Record,J={add:32774,subtract:32778,&quot;reverse subtract&quot;:32779};r.ext_blend_minmax&amp;&amp;(J.min=32775,J.max=32776);var K=r.angle_instanced_arrays,$=r.webgl_draw_buffers,tt={dirty:!0,profile:g.profile},et={},rt=[],it={},at={};y(&quot;dither&quot;,3024),y(&quot;blend.enable&quot;,3042),x(&quot;blend.color&quot;,&quot;blendColor&quot;,[0,0,0,0]),x(&quot;blend.equation&quot;,&quot;blendEquationSeparate&quot;,[32774,32774]),x(&quot;blend.func&quot;,&quot;blendFuncSeparate&quot;,[1,0,1,0]),y(&quot;depth.enable&quot;,2929,!0),x(&quot;depth.func&quot;,&quot;depthFunc&quot;,513),x(&quot;depth.range&quot;,&quot;depthRange&quot;,[0,1]),x(&quot;depth.mask&quot;,&quot;depthMask&quot;,!0),x(&quot;colorMask&quot;,&quot;colorMask&quot;,[!0,!0,!0,!0]),y(&quot;cull.enable&quot;,2884),x(&quot;cull.face&quot;,&quot;cullFace&quot;,1029),x(&quot;frontFace&quot;,&quot;frontFace&quot;,2305),x(&quot;lineWidth&quot;,&quot;lineWidth&quot;,1),y(&quot;polygonOffset.enable&quot;,32823),x(&quot;polygonOffset.offset&quot;,&quot;polygonOffset&quot;,[0,0]),y(&quot;sample.alpha&quot;,32926),y(&quot;sample.enable&quot;,32928),x(&quot;sample.coverage&quot;,&quot;sampleCoverage&quot;,[1,!1]),y(&quot;stencil.enable&quot;,2960),x(&quot;stencil.mask&quot;,&quot;stencilMask&quot;,-1),x(&quot;stencil.func&quot;,&quot;stencilFunc&quot;,[519,0,-1]),x(&quot;stencil.opFront&quot;,&quot;stencilOpSeparate&quot;,[1028,7680,7680,7680]),x(&quot;stencil.opBack&quot;,&quot;stencilOpSeparate&quot;,[1029,7680,7680,7680]),y(&quot;scissor.enable&quot;,3089),x(&quot;scissor.box&quot;,&quot;scissor&quot;,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),x(&quot;viewport&quot;,&quot;viewport&quot;,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var ot={gl:t,context:p,strings:e,next:et,current:tt,draw:h,elements:o,buffer:i,shader:f,attributes:u.state,vao:u,uniforms:c,framebuffer:l,extensions:r,timer:d,isBufferArgs:z},st={primTypes:nt,compareFuncs:Mt,blendFuncs:kt,blendEquations:J,stencilOps:At,glTypes:Q,orientationType:St};$&amp;&amp;(st.backBuffer=[1029],st.drawBuffer=a(n.maxDrawbuffers,(function(t){return 0===t?[0]:a(t,(function(t){return 36064+t}))})));var lt=0;return{next:et,current:tt,procs:function(){var t=b(),e=t.proc(&quot;poll&quot;),i=t.proc(&quot;refresh&quot;),o=t.block();e(o),i(o);var s,l=t.shared,c=l.gl,u=l.next,f=l.current;o(f,&quot;.dirty=false;&quot;),S(t,e),S(t,i,null,!0),K&amp;&amp;(s=t.link(K)),r.oes_vertex_array_object&amp;&amp;i(t.link(r.oes_vertex_array_object),&quot;.bindVertexArrayOES(null);&quot;);for(var h=0;h&lt;n.maxAttributes;++h){var p=i.def(l.attributes,&quot;[&quot;,h,&quot;]&quot;),d=t.cond(p,&quot;.buffer&quot;);d.then(c,&quot;.enableVertexAttribArray(&quot;,h,&quot;);&quot;,c,&quot;.bindBuffer(&quot;,34962,&quot;,&quot;,p,&quot;.buffer.buffer);&quot;,c,&quot;.vertexAttribPointer(&quot;,h,&quot;,&quot;,p,&quot;.size,&quot;,p,&quot;.type,&quot;,p,&quot;.normalized,&quot;,p,&quot;.stride,&quot;,p,&quot;.offset);&quot;).else(c,&quot;.disableVertexAttribArray(&quot;,h,&quot;);&quot;,c,&quot;.vertexAttrib4f(&quot;,h,&quot;,&quot;,p,&quot;.x,&quot;,p,&quot;.y,&quot;,p,&quot;.z,&quot;,p,&quot;.w);&quot;,p,&quot;.buffer=null;&quot;),i(d),K&amp;&amp;i(s,&quot;.vertexAttribDivisorANGLE(&quot;,h,&quot;,&quot;,p,&quot;.divisor);&quot;)}return i(t.shared.vao,&quot;.currentVAO=null;&quot;,t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;),Object.keys(it).forEach((function(r){var n=it[r],a=o.def(u,&quot;.&quot;,r),s=t.block();s(&quot;if(&quot;,a,&quot;){&quot;,c,&quot;.enable(&quot;,n,&quot;)}else{&quot;,c,&quot;.disable(&quot;,n,&quot;)}&quot;,f,&quot;.&quot;,r,&quot;=&quot;,a,&quot;;&quot;),i(s),e(&quot;if(&quot;,a,&quot;!==&quot;,f,&quot;.&quot;,r,&quot;){&quot;,s,&quot;}&quot;)})),Object.keys(at).forEach((function(r){var n,s,l=at[r],h=tt[r],p=t.block();p(c,&quot;.&quot;,l,&quot;(&quot;),m(h)?(l=h.length,n=t.global.def(u,&quot;.&quot;,r),s=t.global.def(f,&quot;.&quot;,r),p(a(l,(function(t){return n+&quot;[&quot;+t+&quot;]&quot;})),&quot;);&quot;,a(l,(function(t){return s+&quot;[&quot;+t+&quot;]=&quot;+n+&quot;[&quot;+t+&quot;];&quot;})).join(&quot;&quot;)),e(&quot;if(&quot;,a(l,(function(t){return n+&quot;[&quot;+t+&quot;]!==&quot;+s+&quot;[&quot;+t+&quot;]&quot;})).join(&quot;||&quot;),&quot;){&quot;,p,&quot;}&quot;)):(n=o.def(u,&quot;.&quot;,r),s=o.def(f,&quot;.&quot;,r),p(n,&quot;);&quot;,f,&quot;.&quot;,r,&quot;=&quot;,n,&quot;;&quot;),e(&quot;if(&quot;,n,&quot;!==&quot;,s,&quot;){&quot;,p,&quot;}&quot;)),i(p)})),t.compile()}(),compile:function(t,e,r,n,i){var a=b();return a.stats=a.link(i),Object.keys(e.static).forEach((function(t){X(a,e,t)})),Tt.forEach((function(e){X(a,t,e)})),r=M(t,e,r,n),function(t,e){var r=t.proc(&quot;draw&quot;,1);L(t,r),A(t,r,e.context),S(t,r,e.framebuffer),E(t,r,e),C(t,r,e.state),I(t,r,e,!1,!0);var n=e.shader.progVar.append(t,r);if(r(t.shared.gl,&quot;.useProgram(&quot;,n,&quot;.program);&quot;),e.shader.program)H(t,r,e,e.shader.program);else{r(t.shared.vao,&quot;.setVAO(null);&quot;);var i=t.global.def(&quot;{}&quot;),a=r.def(n,&quot;.id&quot;),o=r.def(i,&quot;[&quot;,a,&quot;]&quot;);r(t.cond(o).then(o,&quot;.call(this,a0);&quot;).else(o,&quot;=&quot;,i,&quot;[&quot;,a,&quot;]=&quot;,t.link((function(r){return V(H,t,e,r,1)})),&quot;(&quot;,n,&quot;);&quot;,o,&quot;.call(this,a0);&quot;))}0&lt;Object.keys(e.state).length&amp;&amp;r(t.shared.current,&quot;.dirty=true;&quot;)}(a,r),W(a,r),function(t,e){function r(t){return t.contextDep&amp;&amp;i||t.propDep}var n=t.proc(&quot;batch&quot;,2);t.batchId=&quot;0&quot;,L(t,n);var i=!1,a=!0;Object.keys(e.context).forEach((function(t){i=i||e.context[t].propDep})),i||(A(t,n,e.context),a=!1);var o=!1;if((s=e.framebuffer)?(s.propDep?i=o=!0:s.contextDep&amp;&amp;i&amp;&amp;(o=!0),o||S(t,n,s)):S(t,n,null),e.state.viewport&amp;&amp;e.state.viewport.propDep&amp;&amp;(i=!0),E(t,n,e),C(t,n,e.state,(function(t){return!r(t)})),e.profile&amp;&amp;r(e.profile)||I(t,n,e,!1,&quot;a1&quot;),e.contextDep=i,e.needsContext=a,e.needsFramebuffer=o,(a=e.shader.progVar).contextDep&amp;&amp;i||a.propDep)Y(t,n,e,null);else if(a=a.append(t,n),n(t.shared.gl,&quot;.useProgram(&quot;,a,&quot;.program);&quot;),e.shader.program)Y(t,n,e,e.shader.program);else{n(t.shared.vao,&quot;.setVAO(null);&quot;);var s=t.global.def(&quot;{}&quot;),l=(o=n.def(a,&quot;.id&quot;),n.def(s,&quot;[&quot;,o,&quot;]&quot;));n(t.cond(l).then(l,&quot;.call(this,a0,a1);&quot;).else(l,&quot;=&quot;,s,&quot;[&quot;,o,&quot;]=&quot;,t.link((function(r){return V(Y,t,e,r,2)})),&quot;(&quot;,a,&quot;);&quot;,l,&quot;.call(this,a0,a1);&quot;))}0&lt;Object.keys(e.state).length&amp;&amp;n(t.shared.current,&quot;.dirty=true;&quot;)}(a,r),a.compile()}}}function j(t,e){for(var r=0;r&lt;t.length;++r)if(t[r]===e)return r;return-1}var U=function(t,e){for(var r=Object.keys(e),n=0;n&lt;r.length;++n)t[r[n]]=e[r[n]];return t},V=0,q={DynamicVariable:t,define:function(r,n){return new t(r,e(n+&quot;&quot;))},isDynamic:function(e){return&quot;function&quot;==typeof e&amp;&amp;!e._reglType||e instanceof t},unbox:function(e,r){return&quot;function&quot;==typeof e?new t(0,e):e},accessor:e},H={next:&quot;function&quot;==typeof requestAnimationFrame?function(t){return requestAnimationFrame(t)}:function(t){return setTimeout(t,16)},cancel:&quot;function&quot;==typeof cancelAnimationFrame?function(t){return cancelAnimationFrame(t)}:clearTimeout},G=&quot;undefined&quot;!=typeof performance&amp;&amp;performance.now?function(){return performance.now()}:function(){return+new Date},Y=s();Y.zero=s();var W=function(t,e){var r=1;e.ext_texture_filter_anisotropic&amp;&amp;(r=t.getParameter(34047));var n=1,i=1;e.webgl_draw_buffers&amp;&amp;(n=t.getParameter(34852),i=t.getParameter(36063));var a=!!e.oes_texture_float;if(a){a=t.createTexture(),t.bindTexture(3553,a),t.texImage2D(3553,0,6408,1,1,0,6408,5126,null);var o=t.createFramebuffer();if(t.bindFramebuffer(36160,o),t.framebufferTexture2D(36160,36064,3553,a,0),t.bindTexture(3553,null),36053!==t.checkFramebufferStatus(36160))a=!1;else{t.viewport(0,0,1,1),t.clearColor(1,0,0,1),t.clear(16384);var s=Y.allocType(5126,4);t.readPixels(0,0,1,1,6408,5126,s),t.getError()?a=!1:(t.deleteFramebuffer(o),t.deleteTexture(a),a=1===s[0]),Y.freeType(s)}}return s=!0,&quot;undefined&quot;!=typeof navigator&amp;&amp;(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent))||(s=t.createTexture(),o=Y.allocType(5121,36),t.activeTexture(33984),t.bindTexture(34067,s),t.texImage2D(34069,0,6408,3,3,0,6408,5121,o),Y.freeType(o),t.bindTexture(34067,null),t.deleteTexture(s),s=!t.getError()),{colorBits:[t.getParameter(3410),t.getParameter(3411),t.getParameter(3412),t.getParameter(3413)],depthBits:t.getParameter(3414),stencilBits:t.getParameter(3415),subpixelBits:t.getParameter(3408),extensions:Object.keys(e).filter((function(t){return!!e[t]})),maxAnisotropic:r,maxDrawbuffers:n,maxColorAttachments:i,pointSizeDims:t.getParameter(33901),lineWidthDims:t.getParameter(33902),maxViewportDims:t.getParameter(3386),maxCombinedTextureUnits:t.getParameter(35661),maxCubeMapSize:t.getParameter(34076),maxRenderbufferSize:t.getParameter(34024),maxTextureUnits:t.getParameter(34930),maxTextureSize:t.getParameter(3379),maxAttributes:t.getParameter(34921),maxVertexUniforms:t.getParameter(36347),maxVertexTextureUnits:t.getParameter(35660),maxVaryingVectors:t.getParameter(36348),maxFragmentUniforms:t.getParameter(36349),glsl:t.getParameter(35724),renderer:t.getParameter(7937),vendor:t.getParameter(7936),version:t.getParameter(7938),readFloat:a,npotTextureCube:s}},X=function(t){return t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Float32Array||t instanceof Float64Array||t instanceof Uint8ClampedArray},Z=function(t){return Object.keys(t).map((function(e){return t[e]}))},J={shape:function(t){for(var e=[];t.length;t=t[0])e.push(t.length);return e},flatten:function(t,e,r,n){var i=1;if(e.length)for(var a=0;a&lt;e.length;++a)i*=e[a];else i=0;switch(r=n||Y.allocType(r,i),e.length){case 0:break;case 1:for(n=e[0],e=0;e&lt;n;++e)r[e]=t[e];break;case 2:for(n=e[0],e=e[1],a=i=0;a&lt;n;++a)for(var o=t[a],s=0;s&lt;e;++s)r[i++]=o[s];break;case 3:c(t,e[0],e[1],e[2],r,0);break;default:!function t(e,r,n,i,a){for(var o=1,s=n+1;s&lt;r.length;++s)o*=r[s];var l=r[n];if(4==r.length-n){var u=r[n+1],f=r[n+2];for(r=r[n+3],s=0;s&lt;l;++s)c(e[s],u,f,r,i,a),a+=o}else for(s=0;s&lt;l;++s)t(e[s],r,n+1,i,a),a+=o}(t,e,0,r,0)}return r}},K={&quot;[object Int8Array]&quot;:5120,&quot;[object Int16Array]&quot;:5122,&quot;[object Int32Array]&quot;:5124,&quot;[object Uint8Array]&quot;:5121,&quot;[object Uint8ClampedArray]&quot;:5121,&quot;[object Uint16Array]&quot;:5123,&quot;[object Uint32Array]&quot;:5125,&quot;[object Float32Array]&quot;:5126,&quot;[object Float64Array]&quot;:5121,&quot;[object ArrayBuffer]&quot;:5121},Q={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},$={dynamic:35048,stream:35040,static:35044},tt=J.flatten,et=J.shape,rt=[];rt[5120]=1,rt[5122]=2,rt[5124]=4,rt[5121]=1,rt[5123]=2,rt[5125]=4,rt[5126]=4;var nt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,&quot;line loop&quot;:2,&quot;line strip&quot;:3,&quot;triangle strip&quot;:5,&quot;triangle fan&quot;:6},it=new Float32Array(1),at=new Uint32Array(it.buffer),ot=[9984,9986,9985,9987],st=[0,6409,6410,6407,6408],lt={};lt[6409]=lt[6406]=lt[6402]=1,lt[34041]=lt[6410]=2,lt[6407]=lt[35904]=3,lt[6408]=lt[35906]=4;var ct=v(&quot;HTMLCanvasElement&quot;),ut=v(&quot;OffscreenCanvas&quot;),ft=v(&quot;CanvasRenderingContext2D&quot;),ht=v(&quot;ImageBitmap&quot;),pt=v(&quot;HTMLImageElement&quot;),dt=v(&quot;HTMLVideoElement&quot;),gt=Object.keys(K).concat([ct,ut,ft,ht,pt,dt]),mt=[];mt[5121]=1,mt[5126]=4,mt[36193]=2,mt[5123]=2,mt[5125]=4;var vt=[];vt[32854]=2,vt[32855]=2,vt[36194]=2,vt[34041]=4,vt[33776]=.5,vt[33777]=.5,vt[33778]=1,vt[33779]=1,vt[35986]=.5,vt[35987]=1,vt[34798]=1,vt[35840]=.5,vt[35841]=.25,vt[35842]=.5,vt[35843]=.25,vt[36196]=.5;var yt=[];yt[32854]=2,yt[32855]=2,yt[36194]=2,yt[33189]=2,yt[36168]=1,yt[34041]=4,yt[35907]=4,yt[34836]=16,yt[34842]=8,yt[34843]=6;var xt=function(t,e,r,n,i){function a(t){this.id=c++,this.refCount=1,this.renderbuffer=t,this.format=32854,this.height=this.width=0,i.profile&amp;&amp;(this.stats={size:0})}function o(e){var r=e.renderbuffer;t.bindRenderbuffer(36161,null),t.deleteRenderbuffer(r),e.renderbuffer=null,e.refCount=0,delete u[e.id],n.renderbufferCount--}var s={rgba4:32854,rgb565:36194,&quot;rgb5 a1&quot;:32855,depth:33189,stencil:36168,&quot;depth stencil&quot;:34041};e.ext_srgb&amp;&amp;(s.srgba=35907),e.ext_color_buffer_half_float&amp;&amp;(s.rgba16f=34842,s.rgb16f=34843),e.webgl_color_buffer_float&amp;&amp;(s.rgba32f=34836);var l=[];Object.keys(s).forEach((function(t){l[s[t]]=t}));var c=0,u={};return a.prototype.decRef=function(){0&gt;=--this.refCount&amp;&amp;o(this)},i.profile&amp;&amp;(n.getTotalRenderbufferSize=function(){var t=0;return Object.keys(u).forEach((function(e){t+=u[e].stats.size})),t}),{create:function(e,r){function o(e,r){var n=0,a=0,u=32854;if(&quot;object&quot;==typeof e&amp;&amp;e?(&quot;shape&quot;in e?(n=0|(a=e.shape)[0],a=0|a[1]):(&quot;radius&quot;in e&amp;&amp;(n=a=0|e.radius),&quot;width&quot;in e&amp;&amp;(n=0|e.width),&quot;height&quot;in e&amp;&amp;(a=0|e.height)),&quot;format&quot;in e&amp;&amp;(u=s[e.format])):&quot;number&quot;==typeof e?(n=0|e,a=&quot;number&quot;==typeof r?0|r:n):e||(n=a=1),n!==c.width||a!==c.height||u!==c.format)return o.width=c.width=n,o.height=c.height=a,c.format=u,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,u,n,a),i.profile&amp;&amp;(c.stats.size=yt[c.format]*c.width*c.height),o.format=l[c.format],o}var c=new a(t.createRenderbuffer());return u[c.id]=c,n.renderbufferCount++,o(e,r),o.resize=function(e,r){var n=0|e,a=0|r||n;return n===c.width&amp;&amp;a===c.height||(o.width=c.width=n,o.height=c.height=a,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,c.format,n,a),i.profile&amp;&amp;(c.stats.size=yt[c.format]*c.width*c.height)),o},o._reglType=&quot;renderbuffer&quot;,o._renderbuffer=c,i.profile&amp;&amp;(o.stats=c.stats),o.destroy=function(){c.decRef()},o},clear:function(){Z(u).forEach(o)},restore:function(){Z(u).forEach((function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,e.renderbuffer),t.renderbufferStorage(36161,e.format,e.width,e.height)})),t.bindRenderbuffer(36161,null)}}},bt=[];bt[6408]=4,bt[6407]=3;var _t=[];_t[5121]=1,_t[5126]=4,_t[36193]=2;var wt=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;w&quot;],Tt=&quot;blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset&quot;.split(&quot; &quot;),kt={0:0,1:1,zero:0,one:1,&quot;src color&quot;:768,&quot;one minus src color&quot;:769,&quot;src alpha&quot;:770,&quot;one minus src alpha&quot;:771,&quot;dst color&quot;:774,&quot;one minus dst color&quot;:775,&quot;dst alpha&quot;:772,&quot;one minus dst alpha&quot;:773,&quot;constant color&quot;:32769,&quot;one minus constant color&quot;:32770,&quot;constant alpha&quot;:32771,&quot;one minus constant alpha&quot;:32772,&quot;src alpha saturate&quot;:776},Mt={never:512,less:513,&quot;&lt;&quot;:513,equal:514,&quot;=&quot;:514,&quot;==&quot;:514,&quot;===&quot;:514,lequal:515,&quot;&lt;=&quot;:515,greater:516,&quot;&gt;&quot;:516,notequal:517,&quot;!=&quot;:517,&quot;!==&quot;:517,gequal:518,&quot;&gt;=&quot;:518,always:519},At={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,&quot;increment wrap&quot;:34055,&quot;decrement wrap&quot;:34056,invert:5386},St={cw:2304,ccw:2305},Et=new D(!1,!1,!1,(function(){}));return function(t){function e(){if(0===J.length)w&amp;&amp;w.update(),tt=null;else{tt=H.next(e),f();for(var t=J.length-1;0&lt;=t;--t){var r=J[t];r&amp;&amp;r(I,null,0)}m.flush(),w&amp;&amp;w.update()}}function r(){!tt&amp;&amp;0&lt;J.length&amp;&amp;(tt=H.next(e))}function n(){tt&amp;&amp;(H.cancel(e),tt=null)}function a(t){t.preventDefault(),n(),K.forEach((function(t){t()}))}function o(t){m.getError(),y.restore(),R.restore(),z.restore(),F.restore(),B.restore(),V.restore(),O.restore(),w&amp;&amp;w.restore(),Y.procs.refresh(),r(),Q.forEach((function(t){t()}))}function s(t){function e(t){var e={},r={};return Object.keys(t).forEach((function(n){var i=t[n];q.isDynamic(i)?r[n]=q.unbox(i,n):e[n]=i})),{dynamic:r,static:e}}var r=e(t.context||{}),n=e(t.uniforms||{}),i=e(t.attributes||{}),a=e(function(t){function e(t){if(t in r){var e=r[t];delete r[t],Object.keys(e).forEach((function(n){r[t+&quot;.&quot;+n]=e[n]}))}}var r=U({},t);return delete r.uniforms,delete r.attributes,delete r.context,delete r.vao,&quot;stencil&quot;in r&amp;&amp;r.stencil.op&amp;&amp;(r.stencil.opBack=r.stencil.opFront=r.stencil.op,delete r.stencil.op),e(&quot;blend&quot;),e(&quot;depth&quot;),e(&quot;cull&quot;),e(&quot;stencil&quot;),e(&quot;polygonOffset&quot;),e(&quot;scissor&quot;),e(&quot;sample&quot;),&quot;vao&quot;in t&amp;&amp;(r.vao=t.vao),r}(t));t={gpuTime:0,cpuTime:0,count:0};var o=(r=Y.compile(a,i,n,r,t)).draw,s=r.batch,l=r.scope,c=[];return U((function(t,e){var r;if(&quot;function&quot;==typeof t)return l.call(this,null,t,0);if(&quot;function&quot;==typeof e)if(&quot;number&quot;==typeof t)for(r=0;r&lt;t;++r)l.call(this,null,e,r);else{if(!Array.isArray(t))return l.call(this,t,e,0);for(r=0;r&lt;t.length;++r)l.call(this,t[r],e,r)}else if(&quot;number&quot;==typeof t){if(0&lt;t)return s.call(this,function(t){for(;c.length&lt;t;)c.push(null);return c}(0|t),0|t)}else{if(!Array.isArray(t))return o.call(this,t);if(t.length)return s.call(this,t,t.length)}}),{stats:t})}function l(t,e){var r=0;Y.procs.poll();var n=e.color;n&amp;&amp;(m.clearColor(+n[0]||0,+n[1]||0,+n[2]||0,+n[3]||0),r|=16384),&quot;depth&quot;in e&amp;&amp;(m.clearDepth(+e.depth),r|=256),&quot;stencil&quot;in e&amp;&amp;(m.clearStencil(0|e.stencil),r|=1024),m.clear(r)}function c(t){return J.push(t),r(),{cancel:function(){var e=j(J,t);J[e]=function t(){var e=j(J,t);J[e]=J[J.length-1],--J.length,0&gt;=J.length&amp;&amp;n()}}}}function u(){var t=X.viewport,e=X.scissor_box;t[0]=t[1]=e[0]=e[1]=0,I.viewportWidth=I.framebufferWidth=I.drawingBufferWidth=t[2]=e[2]=m.drawingBufferWidth,I.viewportHeight=I.framebufferHeight=I.drawingBufferHeight=t[3]=e[3]=m.drawingBufferHeight}function f(){I.tick+=1,I.time=g(),u(),Y.procs.poll()}function h(){u(),Y.procs.refresh(),w&amp;&amp;w.update()}function g(){return(G()-T)/1e3}if(!(t=i(t)))return null;var m=t.gl,v=m.getContextAttributes();m.isContextLost();var y=function(t,e){function r(e){var r;e=e.toLowerCase();try{r=n[e]=t.getExtension(e)}catch(t){}return!!r}for(var n={},i=0;i&lt;e.extensions.length;++i){var a=e.extensions[i];if(!r(a))return e.onDestroy(),e.onDone('&quot;'+a+'&quot; extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return e.optionalExtensions.forEach(r),{extensions:n,restore:function(){Object.keys(n).forEach((function(t){if(n[t]&amp;&amp;!r(t))throw Error(&quot;(regl): error restoring extension &quot;+t)}))}}}(m,t);if(!y)return null;var x=function(){var t={&quot;&quot;:0},e=[&quot;&quot;];return{id:function(r){var n=t[r];return n||(n=t[r]=e.length,e.push(r),n)},str:function(t){return e[t]}}}(),b={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},_=y.extensions,w=function(t,e){function r(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function n(t,e,n){var i=o.pop()||new r;i.startQueryIndex=t,i.endQueryIndex=e,i.sum=0,i.stats=n,s.push(i)}if(!e.ext_disjoint_timer_query)return null;var i=[],a=[],o=[],s=[],l=[],c=[];return{beginQuery:function(t){var r=i.pop()||e.ext_disjoint_timer_query.createQueryEXT();e.ext_disjoint_timer_query.beginQueryEXT(35007,r),a.push(r),n(a.length-1,a.length,t)},endQuery:function(){e.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:n,update:function(){var t,r;if(0!==(t=a.length)){c.length=Math.max(c.length,t+1),l.length=Math.max(l.length,t+1),l[0]=0;var n=c[0]=0;for(r=t=0;r&lt;a.length;++r){var u=a[r];e.ext_disjoint_timer_query.getQueryObjectEXT(u,34919)?(n+=e.ext_disjoint_timer_query.getQueryObjectEXT(u,34918),i.push(u)):a[t++]=u,l[r+1]=n,c[r+1]=t}for(a.length=t,r=t=0;r&lt;s.length;++r){var f=(n=s[r]).startQueryIndex;u=n.endQueryIndex;n.sum+=l[u]-l[f],f=c[f],(u=c[u])===f?(n.stats.gpuTime+=n.sum/1e6,o.push(n)):(n.startQueryIndex=f,n.endQueryIndex=u,s[t++]=n)}s.length=t}},getNumPendingQueries:function(){return a.length},clear:function(){i.push.apply(i,a);for(var t=0;t&lt;i.length;t++)e.ext_disjoint_timer_query.deleteQueryEXT(i[t]);a.length=0,i.length=0},restore:function(){a.length=0,i.length=0}}}(0,_),T=G(),A=m.drawingBufferWidth,L=m.drawingBufferHeight,I={tick:0,time:0,viewportWidth:A,viewportHeight:L,framebufferWidth:A,framebufferHeight:L,drawingBufferWidth:A,drawingBufferHeight:L,pixelRatio:t.pixelRatio},P=W(m,_),z=p(m,b,t,(function(t){return O.destroyBuffer(t)})),O=S(m,_,P,b,z),D=d(m,_,z,b),R=E(m,x,b,t),F=k(m,_,P,(function(){Y.procs.poll()}),I,b,t),B=xt(m,_,0,b,t),V=M(m,_,P,F,B,b),Y=N(m,x,_,P,z,D,0,V,{},O,R,{elements:null,primitive:4,count:-1,offset:0,instances:-1},I,w,t),X=(x=C(m,V,Y.procs.poll,I),Y.next),Z=m.canvas,J=[],K=[],Q=[],$=[t.onDestroy],tt=null;Z&amp;&amp;(Z.addEventListener(&quot;webglcontextlost&quot;,a,!1),Z.addEventListener(&quot;webglcontextrestored&quot;,o,!1));var et=V.setFBO=s({framebuffer:q.define.call(null,1,&quot;framebuffer&quot;)});return h(),v=U(s,{clear:function(t){if(&quot;framebuffer&quot;in t)if(t.framebuffer&amp;&amp;&quot;framebufferCube&quot;===t.framebuffer_reglType)for(var e=0;6&gt;e;++e)et(U({framebuffer:t.framebuffer.faces[e]},t),l);else et(t,l);else l(0,t)},prop:q.define.bind(null,1),context:q.define.bind(null,2),this:q.define.bind(null,3),draw:s({}),buffer:function(t){return z.create(t,34962,!1,!1)},elements:function(t){return D.create(t,!1)},texture:F.create2D,cube:F.createCube,renderbuffer:B.create,framebuffer:V.create,framebufferCube:V.createCube,vao:O.createVAO,attributes:v,frame:c,on:function(t,e){var r;switch(t){case&quot;frame&quot;:return c(e);case&quot;lost&quot;:r=K;break;case&quot;restore&quot;:r=Q;break;case&quot;destroy&quot;:r=$}return r.push(e),{cancel:function(){for(var t=0;t&lt;r.length;++t)if(r[t]===e){r[t]=r[r.length-1],r.pop();break}}}},limits:P,hasExtension:function(t){return 0&lt;=P.extensions.indexOf(t.toLowerCase())},read:x,destroy:function(){J.length=0,n(),Z&amp;&amp;(Z.removeEventListener(&quot;webglcontextlost&quot;,a),Z.removeEventListener(&quot;webglcontextrestored&quot;,o)),R.clear(),V.clear(),B.clear(),F.clear(),D.clear(),z.clear(),O.clear(),w&amp;&amp;w.clear(),$.forEach((function(t){t()}))},_gl:m,_refresh:h,poll:function(){f(),w&amp;&amp;w.update()},now:g,stats:b}),t.onDone(null,v),v}}))},{}],541:[function(t,e,r){
/*!
 * repeat-string &lt;https://github.com/jonschlinkert/repeat-string&gt;
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */
&quot;use strict&quot;;var n,i=&quot;&quot;;e.exports=function(t,e){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;expected a string&quot;);if(1===e)return t;if(2===e)return t+t;var r=t.length*e;if(n!==t||&quot;undefined&quot;==typeof n)n=t,i=&quot;&quot;;else if(i.length&gt;=r)return i.substr(0,r);for(;r&gt;i.length&amp;&amp;e&gt;1;)1&amp;e&amp;&amp;(i+=t),e&gt;&gt;=1,t+=t;return i=(i+=t).substr(0,r)}},{}],542:[function(t,e,r){(function(t){(function(){e.exports=t.performance&amp;&amp;t.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{}],543:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=t[t.length-1],n=e,i=e-2;i&gt;=0;--i){var a=r,o=t[i];(l=o-((r=a+o)-a))&amp;&amp;(t[--n]=r,r=l)}var s=0;for(i=n;i&lt;e;++i){var l;a=t[i];(l=(o=r)-((r=a+o)-a))&amp;&amp;(t[s++]=l)}return t[s++]=r,t.length=s,t}},{}],544:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-scale&quot;),o=t(&quot;robust-compress&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m[&quot;,r,&quot;][&quot;,n,&quot;]&quot;].join(&quot;&quot;)}return e}function c(t){if(2===t.length)return[&quot;sum(prod(&quot;,t[0][0],&quot;,&quot;,t[1][1],&quot;),prod(-&quot;,t[0][1],&quot;,&quot;,t[1][0],&quot;))&quot;].join(&quot;&quot;);for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,c(s(t,r)),&quot;,&quot;,(n=r,1&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return function t(e){if(1===e.length)return e[0];if(2===e.length)return[&quot;sum(&quot;,e[0],&quot;,&quot;,e[1],&quot;)&quot;].join(&quot;&quot;);var r=e.length&gt;&gt;1;return[&quot;sum(&quot;,t(e.slice(0,r)),&quot;,&quot;,t(e.slice(r)),&quot;)&quot;].join(&quot;&quot;)}(e);var n}function u(t){return new Function(&quot;sum&quot;,&quot;scale&quot;,&quot;prod&quot;,&quot;compress&quot;,[&quot;function robustDeterminant&quot;,t,&quot;(m){return compress(&quot;,c(l(t)),&quot;)};return robustDeterminant&quot;,t].join(&quot;&quot;))(i,a,n,o)}var f=[function(){return[0]},function(t){return[t[0][0]]}];!function(){for(;f.length&lt;6;)f.push(u(f.length));for(var t=[],r=[&quot;function robustDeterminant(m){switch(m.length){&quot;],n=0;n&lt;6;++n)t.push(&quot;det&quot;+n),r.push(&quot;case &quot;,n,&quot;:return det&quot;,n,&quot;(m);&quot;);r.push(&quot;}var det=CACHE[m.length];if(!det)det=CACHE[m.length]=gen(m.length);return det(m);}return robustDeterminant&quot;),t.push(&quot;CACHE&quot;,&quot;gen&quot;,r.join(&quot;&quot;));var i=Function.apply(void 0,t);for(e.exports=i.apply(void 0,f.concat([f,u])),n=0;n&lt;f.length;++n)e.exports[n]=f[n]}()},{&quot;robust-compress&quot;:543,&quot;robust-scale&quot;:550,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],545:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;);e.exports=function(t,e){for(var r=n(t[0],e[0]),a=1;a&lt;t.length;++a)r=i(r,n(t[a],e[a]));return r}},{&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],546:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-subtract&quot;),o=t(&quot;robust-scale&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){if(1===t.length)return t[0];if(2===t.length)return[&quot;sum(&quot;,t[0],&quot;,&quot;,t[1],&quot;)&quot;].join(&quot;&quot;);var e=t.length&gt;&gt;1;return[&quot;sum(&quot;,l(t.slice(0,e)),&quot;,&quot;,l(t.slice(e)),&quot;)&quot;].join(&quot;&quot;)}function c(t,e){if(&quot;m&quot;===t.charAt(0)){if(&quot;w&quot;===e.charAt(0)){var r=t.split(&quot;[&quot;);return[&quot;w&quot;,e.substr(1),&quot;m&quot;,r[0].substr(1)].join(&quot;&quot;)}return[&quot;prod(&quot;,t,&quot;,&quot;,e,&quot;)&quot;].join(&quot;&quot;)}return c(e,t)}function u(t){if(2===t.length)return[[&quot;diff(&quot;,c(t[0][0],t[1][1]),&quot;,&quot;,c(t[1][0],t[0][1]),&quot;)&quot;].join(&quot;&quot;)];for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,l(u(s(t,r))),&quot;,&quot;,(n=r,!0&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return e;var n}function f(t,e){for(var r=[],n=0;n&lt;e-2;++n)r.push([&quot;prod(m&quot;,t,&quot;[&quot;,n,&quot;],m&quot;,t,&quot;[&quot;,n,&quot;])&quot;].join(&quot;&quot;));return l(r)}function h(t){for(var e=[],r=[],c=function(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m&quot;,n,&quot;[&quot;,t-r-2,&quot;]&quot;].join(&quot;&quot;)}return e}(t),h=0;h&lt;t;++h)c[0][h]=&quot;1&quot;,c[t-1][h]=&quot;w&quot;+h;for(h=0;h&lt;t;++h)0==(1&amp;h)?e.push.apply(e,u(s(c,h))):r.push.apply(r,u(s(c,h)));var p=l(e),d=l(r),g=&quot;exactInSphere&quot;+t,m=[];for(h=0;h&lt;t;++h)m.push(&quot;m&quot;+h);var v=[&quot;function &quot;,g,&quot;(&quot;,m.join(),&quot;){&quot;];for(h=0;h&lt;t;++h){v.push(&quot;var w&quot;,h,&quot;=&quot;,f(h,t),&quot;;&quot;);for(var y=0;y&lt;t;++y)y!==h&amp;&amp;v.push(&quot;var w&quot;,h,&quot;m&quot;,y,&quot;=scale(w&quot;,h,&quot;,m&quot;,y,&quot;[0]);&quot;)}return v.push(&quot;var p=&quot;,p,&quot;,n=&quot;,d,&quot;,d=diff(p,n);return d[d.length-1];}return &quot;,g),new Function(&quot;sum&quot;,&quot;diff&quot;,&quot;prod&quot;,&quot;scale&quot;,v.join(&quot;&quot;))(i,a,n,o)}var p=[function(){return 0},function(){return 0},function(){return 0}];function d(t){var e=p[t.length];return e||(e=p[t.length]=h(t.length)),e.apply(void 0,t)}!function(){for(;p.length&lt;=6;)p.push(h(p.length));for(var t=[],r=[&quot;slow&quot;],n=0;n&lt;=6;++n)t.push(&quot;a&quot;+n),r.push(&quot;o&quot;+n);var i=[&quot;function testInSphere(&quot;,t.join(),&quot;){switch(arguments.length){case 0:case 1:return 0;&quot;];for(n=2;n&lt;=6;++n)i.push(&quot;case &quot;,n,&quot;:return o&quot;,n,&quot;(&quot;,t.slice(0,n).join(),&quot;);&quot;);i.push(&quot;}var s=new Array(arguments.length);for(var i=0;i&lt;arguments.length;++i){s[i]=arguments[i]};return slow(s);}return testInSphere&quot;),r.push(i.join(&quot;&quot;));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[d].concat(p)),n=0;n&lt;=6;++n)e.exports[n]=p[n]}()},{&quot;robust-scale&quot;:550,&quot;robust-subtract&quot;:552,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],547:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-determinant&quot;);function i(t){for(var e=&quot;robustLinearSolve&quot;+t+&quot;d&quot;,r=[&quot;function &quot;,e,&quot;(A,b){return [&quot;],i=0;i&lt;t;++i){r.push(&quot;det([&quot;);for(var a=0;a&lt;t;++a){a&gt;0&amp;&amp;r.push(&quot;,&quot;),r.push(&quot;[&quot;);for(var o=0;o&lt;t;++o)o&gt;0&amp;&amp;r.push(&quot;,&quot;),o===i?r.push(&quot;+b[&quot;,a,&quot;]&quot;):r.push(&quot;+A[&quot;,a,&quot;][&quot;,o,&quot;]&quot;);r.push(&quot;]&quot;)}r.push(&quot;]),&quot;)}r.push(&quot;det(A)]}return &quot;,e);var s=new Function(&quot;det&quot;,r.join(&quot;&quot;));return s(t&lt;6?n[t]:n)}var a=[function(){return[0]},function(t,e){return[[e[0]],[t[0][0]]]}];!function(){for(;a.length&lt;6;)a.push(i(a.length));for(var t=[],r=[&quot;function dispatchLinearSolve(A,b){switch(A.length){&quot;],n=0;n&lt;6;++n)t.push(&quot;s&quot;+n),r.push(&quot;case &quot;,n,&quot;:return s&quot;,n,&quot;(A,b);&quot;);r.push(&quot;}var s=CACHE[A.length];if(!s)s=CACHE[A.length]=g(A.length);return s(A,b)}return dispatchLinearSolve&quot;),t.push(&quot;CACHE&quot;,&quot;g&quot;,r.join(&quot;&quot;));var o=Function.apply(void 0,t);for(e.exports=o.apply(void 0,a.concat([a,i])),n=0;n&lt;6;++n)e.exports[n]=a[n]}()},{&quot;robust-determinant&quot;:544}],548:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-scale&quot;),o=t(&quot;robust-subtract&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){if(1===t.length)return t[0];if(2===t.length)return[&quot;sum(&quot;,t[0],&quot;,&quot;,t[1],&quot;)&quot;].join(&quot;&quot;);var e=t.length&gt;&gt;1;return[&quot;sum(&quot;,l(t.slice(0,e)),&quot;,&quot;,l(t.slice(e)),&quot;)&quot;].join(&quot;&quot;)}function c(t){if(2===t.length)return[[&quot;sum(prod(&quot;,t[0][0],&quot;,&quot;,t[1][1],&quot;),prod(-&quot;,t[0][1],&quot;,&quot;,t[1][0],&quot;))&quot;].join(&quot;&quot;)];for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,l(c(s(t,r))),&quot;,&quot;,(n=r,1&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return e;var n}function u(t){for(var e=[],r=[],u=function(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m&quot;,n,&quot;[&quot;,t-r-1,&quot;]&quot;].join(&quot;&quot;)}return e}(t),f=[],h=0;h&lt;t;++h)0==(1&amp;h)?e.push.apply(e,c(s(u,h))):r.push.apply(r,c(s(u,h))),f.push(&quot;m&quot;+h);var p=l(e),d=l(r),g=&quot;orientation&quot;+t+&quot;Exact&quot;,m=[&quot;function &quot;,g,&quot;(&quot;,f.join(),&quot;){var p=&quot;,p,&quot;,n=&quot;,d,&quot;,d=sub(p,n);return d[d.length-1];};return &quot;,g].join(&quot;&quot;);return new Function(&quot;sum&quot;,&quot;prod&quot;,&quot;scale&quot;,&quot;sub&quot;,m)(i,n,a,o)}var f=u(3),h=u(4),p=[function(){return 0},function(){return 0},function(t,e){return e[0]-t[0]},function(t,e,r){var n,i=(t[1]-r[1])*(e[0]-r[0]),a=(t[0]-r[0])*(e[1]-r[1]),o=i-a;if(i&gt;0){if(a&lt;=0)return o;n=i+a}else{if(!(i&lt;0))return o;if(a&gt;=0)return o;n=-(i+a)}var s=33306690738754716e-32*n;return o&gt;=s||o&lt;=-s?o:f(t,e,r)},function(t,e,r,n){var i=t[0]-n[0],a=e[0]-n[0],o=r[0]-n[0],s=t[1]-n[1],l=e[1]-n[1],c=r[1]-n[1],u=t[2]-n[2],f=e[2]-n[2],p=r[2]-n[2],d=a*c,g=o*l,m=o*s,v=i*c,y=i*l,x=a*s,b=u*(d-g)+f*(m-v)+p*(y-x),_=7771561172376103e-31*((Math.abs(d)+Math.abs(g))*Math.abs(u)+(Math.abs(m)+Math.abs(v))*Math.abs(f)+(Math.abs(y)+Math.abs(x))*Math.abs(p));return b&gt;_||-b&gt;_?b:h(t,e,r,n)}];function d(t){var e=p[t.length];return e||(e=p[t.length]=u(t.length)),e.apply(void 0,t)}!function(){for(;p.length&lt;=5;)p.push(u(p.length));for(var t=[],r=[&quot;slow&quot;],n=0;n&lt;=5;++n)t.push(&quot;a&quot;+n),r.push(&quot;o&quot;+n);var i=[&quot;function getOrientation(&quot;,t.join(),&quot;){switch(arguments.length){case 0:case 1:return 0;&quot;];for(n=2;n&lt;=5;++n)i.push(&quot;case &quot;,n,&quot;:return o&quot;,n,&quot;(&quot;,t.slice(0,n).join(),&quot;);&quot;);i.push(&quot;}var s=new Array(arguments.length);for(var i=0;i&lt;arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation&quot;),r.push(i.join(&quot;&quot;));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[d].concat(p)),n=0;n&lt;=5;++n)e.exports[n]=p[n]}()},{&quot;robust-scale&quot;:550,&quot;robust-subtract&quot;:552,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],549:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-sum&quot;),i=t(&quot;robust-scale&quot;);e.exports=function(t,e){if(1===t.length)return i(e,t[0]);if(1===e.length)return i(t,e[0]);if(0===t.length||0===e.length)return[0];var r=[0];if(t.length&lt;e.length)for(var a=0;a&lt;t.length;++a)r=n(r,i(e,t[a]));else for(a=0;a&lt;e.length;++a)r=n(r,i(t,e[a]));return r}},{&quot;robust-scale&quot;:550,&quot;robust-sum&quot;:553}],550:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;two-sum&quot;);e.exports=function(t,e){var r=t.length;if(1===r){var a=n(t[0],e);return a[0]?a:[a[1]]}var o=new Array(2*r),s=[.1,.1],l=[.1,.1],c=0;n(t[0],e,s),s[0]&amp;&amp;(o[c++]=s[0]);for(var u=1;u&lt;r;++u){n(t[u],e,l);var f=s[1];i(f,l[0],s),s[0]&amp;&amp;(o[c++]=s[0]);var h=l[1],p=s[1],d=h+p,g=p-(d-h);s[1]=d,g&amp;&amp;(o[c++]=g)}s[1]&amp;&amp;(o[c++]=s[1]);0===c&amp;&amp;(o[c++]=0);return o.length=c,o}},{&quot;two-product&quot;:582,&quot;two-sum&quot;:583}],551:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,i){var a=n(t,r,i),o=n(e,r,i);if(a&gt;0&amp;&amp;o&gt;0||a&lt;0&amp;&amp;o&lt;0)return!1;var s=n(r,t,e),l=n(i,t,e);if(s&gt;0&amp;&amp;l&gt;0||s&lt;0&amp;&amp;l&lt;0)return!1;if(0===a&amp;&amp;0===o&amp;&amp;0===s&amp;&amp;0===l)return function(t,e,r,n){for(var i=0;i&lt;2;++i){var a=t[i],o=e[i],s=Math.min(a,o),l=Math.max(a,o),c=r[i],u=n[i],f=Math.min(c,u);if(Math.max(c,u)&lt;s||l&lt;f)return!1}return!0}(t,e,r,i);return!0};var n=t(&quot;robust-orientation&quot;)[3]},{&quot;robust-orientation&quot;:548}],552:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&amp;&amp;1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],-e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=-e[c],d=u(p);h&lt;d?(a=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(a=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p)));l&lt;r&amp;&amp;h&lt;d||c&gt;=n?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p)));var g,m,v=i+a,y=v-i,x=a-y,b=x,_=v;for(;l&lt;r&amp;&amp;c&lt;n;)h&lt;d?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p))),(x=(a=b)-(y=(v=i+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g;for(;l&lt;r;)(x=(a=b)-(y=(v=(i=f)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(l+=1)&lt;r&amp;&amp;(f=t[l]);for(;c&lt;n;)(x=(a=b)-(y=(v=(i=p)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(c+=1)&lt;n&amp;&amp;(p=-e[c]);b&amp;&amp;(o[s++]=b);_&amp;&amp;(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],553:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&amp;&amp;1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=e[c],d=u(p);h&lt;d?(a=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(a=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p)));l&lt;r&amp;&amp;h&lt;d||c&gt;=n?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p)));var g,m,v=i+a,y=v-i,x=a-y,b=x,_=v;for(;l&lt;r&amp;&amp;c&lt;n;)h&lt;d?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p))),(x=(a=b)-(y=(v=i+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g;for(;l&lt;r;)(x=(a=b)-(y=(v=(i=f)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(l+=1)&lt;r&amp;&amp;(f=t[l]);for(;c&lt;n;)(x=(a=b)-(y=(v=(i=p)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(c+=1)&lt;n&amp;&amp;(p=e[c]);b&amp;&amp;(o[s++]=b);_&amp;&amp;(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],554:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t&lt;0?-1:t&gt;0?1:0}},{}],555:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return i(n(t))};var n=t(&quot;boundary-cells&quot;),i=t(&quot;reduce-simplicial-complex&quot;)},{&quot;boundary-cells&quot;:100,&quot;reduce-simplicial-complex&quot;:533}],556:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,s){r=r||0,&quot;undefined&quot;==typeof s&amp;&amp;(s=function(t){for(var e=t.length,r=0,n=0;n&lt;e;++n)r=0|Math.max(r,t[n].length);return r-1}(t));if(0===t.length||s&lt;1)return{cells:[],vertexIds:[],vertexWeights:[]};var l=function(t,e){for(var r=t.length,n=i.mallocUint8(r),a=0;a&lt;r;++a)n[a]=t[a]&lt;e|0;return n}(e,+r),c=function(t,e){for(var r=t.length,o=e*(e+1)/2*r|0,s=i.mallocUint32(2*o),l=0,c=0;c&lt;r;++c)for(var u=t[c],f=(e=u.length,0);f&lt;e;++f)for(var h=0;h&lt;f;++h){var p=u[h],d=u[f];s[l++]=0|Math.min(p,d),s[l++]=0|Math.max(p,d)}a(n(s,[l/2|0,2]));var g=2;for(c=2;c&lt;l;c+=2)s[c-2]===s[c]&amp;&amp;s[c-1]===s[c+1]||(s[g++]=s[c],s[g++]=s[c+1]);return n(s,[g/2|0,2])}(t,s),u=function(t,e,r,a){for(var o=t.data,s=t.shape[0],l=i.mallocDouble(s),c=0,u=0;u&lt;s;++u){var f=o[2*u],h=o[2*u+1];if(r[f]!==r[h]){var p=e[f],d=e[h];o[2*c]=f,o[2*c+1]=h,l[c++]=(d-a)/(d-p)}}return t.shape[0]=c,n(l,[c])}(c,e,l,+r),f=function(t,e){var r=i.mallocInt32(2*e),n=t.shape[0],a=t.data;r[0]=0;for(var o=0,s=0;s&lt;n;++s){var l=a[2*s];if(l!==o){for(r[2*o+1]=s;++o&lt;l;)r[2*o]=s,r[2*o+1]=s;r[2*o]=s}}r[2*o+1]=n;for(;++o&lt;e;)r[2*o]=r[2*o+1]=n;return r}(c,0|e.length),h=o(s)(t,c.data,f,l),p=function(t){for(var e=0|t.shape[0],r=t.data,n=new Array(e),i=0;i&lt;e;++i)n[i]=[r[2*i],r[2*i+1]];return n}(c),d=[].slice.call(u.data,0,u.shape[0]);return i.free(l),i.free(c.data),i.free(u.data),i.free(f),{cells:h,vertexIds:p,vertexWeights:d}};var n=t(&quot;ndarray&quot;),i=t(&quot;typedarray-pool&quot;),a=t(&quot;ndarray-sort&quot;),o=t(&quot;./lib/codegen&quot;)},{&quot;./lib/codegen&quot;:557,ndarray:495,&quot;ndarray-sort&quot;:494,&quot;typedarray-pool&quot;:595}],557:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=a[t];e||(e=a[t]=function(t){var e=0,r=new Array(t+1);r[0]=[[]];for(var a=1;a&lt;=t;++a)for(var o=r[a]=i(a),s=0;s&lt;o.length;++s)e=Math.max(e,o[a].length);var l=[&quot;function B(C,E,i,j){&quot;,&quot;var a=Math.min(i,j)|0,b=Math.max(i,j)|0,l=C[2*a],h=C[2*a+1];&quot;,&quot;while(l&lt;h){&quot;,&quot;var m=(l+h)&gt;&gt;1,v=E[2*m+1];&quot;,&quot;if(v===b){return m}&quot;,&quot;if(b&lt;v){h=m}else{l=m+1}&quot;,&quot;}&quot;,&quot;return l;&quot;,&quot;};&quot;,&quot;function getContour&quot;,t,&quot;d(F,E,C,S){&quot;,&quot;var n=F.length,R=[];&quot;,&quot;for(var i=0;i&lt;n;++i){var c=F[i],l=c.length;&quot;];function c(t){if(!(t.length&lt;=0)){l.push(&quot;R.push(&quot;);for(var e=0;e&lt;t.length;++e){var r=t[e];e&gt;0&amp;&amp;l.push(&quot;,&quot;),l.push(&quot;[&quot;);for(var n=0;n&lt;r.length;++n){var i=r[n];n&gt;0&amp;&amp;l.push(&quot;,&quot;),l.push(&quot;B(C,E,c[&quot;,i[0],&quot;],c[&quot;,i[1],&quot;])&quot;)}l.push(&quot;]&quot;)}l.push(&quot;);&quot;)}}for(a=t+1;a&gt;1;--a){a&lt;t+1&amp;&amp;l.push(&quot;else &quot;),l.push(&quot;if(l===&quot;,a,&quot;){&quot;);var u=[];for(s=0;s&lt;a;++s)u.push(&quot;(S[c[&quot;+s+&quot;]]&lt;&lt;&quot;+s+&quot;)&quot;);l.push(&quot;var M=&quot;,u.join(&quot;+&quot;),&quot;;if(M===0||M===&quot;,(1&lt;&lt;a)-1,&quot;){continue}switch(M){&quot;);for(o=r[a-1],s=0;s&lt;o.length;++s)l.push(&quot;case &quot;,s,&quot;:&quot;),c(o[s]),l.push(&quot;break;&quot;);l.push(&quot;}}&quot;)}return l.push(&quot;}return R;};return getContour&quot;,t,&quot;d&quot;),new Function(&quot;pool&quot;,l.join(&quot;&quot;))(n)}(t));return e};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;marching-simplex-table&quot;),a={}},{&quot;marching-simplex-table&quot;:474,&quot;typedarray-pool&quot;:595}],558:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bit-twiddle&quot;),i=t(&quot;union-find&quot;);function a(t,e){var r=t.length,n=t.length-e.length,i=Math.min;if(n)return n;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return(s=t[0]+t[1]-e[0]-e[1])||i(t[0],t[1])-i(e[0],e[1]);case 3:var a=t[0]+t[1],o=e[0]+e[1];if(s=a+t[2]-(o+e[2]))return s;var s,l=i(t[0],t[1]),c=i(e[0],e[1]);return(s=i(l,t[2])-i(c,e[2]))||i(l+t[2],a)-i(c+e[2],o);default:var u=t.slice(0);u.sort();var f=e.slice(0);f.sort();for(var h=0;h&lt;r;++h)if(n=u[h]-f[h])return n;return 0}}function o(t,e){return a(t[0],e[0])}function s(t,e){if(e){for(var r=t.length,n=new Array(r),i=0;i&lt;r;++i)n[i]=[t[i],e[i]];n.sort(o);for(i=0;i&lt;r;++i)t[i]=n[i][0],e[i]=n[i][1];return t}return t.sort(a),t}function l(t){if(0===t.length)return[];for(var e=1,r=t.length,n=1;n&lt;r;++n){var i=t[n];if(a(i,t[n-1])){if(n===e){e++;continue}t[e++]=i}}return t.length=e,t}function c(t,e){for(var r=0,n=t.length-1,i=-1;r&lt;=n;){var o=r+n&gt;&gt;1,s=a(t[o],e);s&lt;=0?(0===s&amp;&amp;(i=o),r=o+1):s&gt;0&amp;&amp;(n=o-1)}return i}function u(t,e){for(var r=new Array(t.length),i=0,o=r.length;i&lt;o;++i)r[i]=[];for(var s=[],l=(i=0,e.length);i&lt;l;++i)for(var u=e[i],f=u.length,h=1,p=1&lt;&lt;f;h&lt;p;++h){s.length=n.popCount(h);for(var d=0,g=0;g&lt;f;++g)h&amp;1&lt;&lt;g&amp;&amp;(s[d++]=u[g]);var m=c(t,s);if(!(m&lt;0))for(;r[m++].push(i),!(m&gt;=t.length||0!==a(t[m],s)););}return r}function f(t,e){if(e&lt;0)return[];for(var r=[],i=(1&lt;&lt;e+1)-1,a=0;a&lt;t.length;++a)for(var o=t[a],l=i;l&lt;1&lt;&lt;o.length;l=n.nextCombination(l)){for(var c=new Array(e+1),u=0,f=0;f&lt;o.length;++f)l&amp;1&lt;&lt;f&amp;&amp;(c[u++]=o[f]);r.push(c)}return s(r)}r.dimension=function(t){for(var e=0,r=Math.max,n=0,i=t.length;n&lt;i;++n)e=r(e,t[n].length);return e-1},r.countVertices=function(t){for(var e=-1,r=Math.max,n=0,i=t.length;n&lt;i;++n)for(var a=t[n],o=0,s=a.length;o&lt;s;++o)e=r(e,a[o]);return e+1},r.cloneCells=function(t){for(var e=new Array(t.length),r=0,n=t.length;r&lt;n;++r)e[r]=t[r].slice(0);return e},r.compareCells=a,r.normalize=s,r.unique=l,r.findCell=c,r.incidence=u,r.dual=function(t,e){if(!e)return u(l(f(t,0)),t);for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=[];n=0;for(var i=t.length;n&lt;i;++n)for(var a=t[n],o=0,s=a.length;o&lt;s;++o)r[a[o]].push(n);return r},r.explode=function(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0|i.length,o=1,l=1&lt;&lt;a;o&lt;l;++o){for(var c=[],u=0;u&lt;a;++u)o&gt;&gt;&gt;u&amp;1&amp;&amp;c.push(i[u]);e.push(c)}return s(e)},r.skeleton=f,r.boundary=function(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;++a){for(var l=new Array(i.length-1),c=0,u=0;c&lt;o;++c)c!==a&amp;&amp;(l[u++]=i[c]);e.push(l)}return s(e)},r.connectedComponents=function(t,e){return e?function(t,e){for(var r=new i(e),n=0;n&lt;t.length;++n)for(var a=t[n],o=0;o&lt;a.length;++o)for(var s=o+1;s&lt;a.length;++s)r.link(a[o],a[s]);var l=[],c=r.ranks;for(n=0;n&lt;c.length;++n)c[n]=-1;for(n=0;n&lt;t.length;++n){var u=r.find(t[n][0]);c[u]&lt;0?(c[u]=l.length,l.push([t[n].slice(0)])):l[c[u]].push(t[n].slice(0))}return l}(t,e):function(t){for(var e=l(s(f(t,0))),r=new i(e.length),n=0;n&lt;t.length;++n)for(var a=t[n],o=0;o&lt;a.length;++o)for(var u=c(e,[a[o]]),h=o+1;h&lt;a.length;++h)r.link(u,c(e,[a[h]]));var p=[],d=r.ranks;for(n=0;n&lt;d.length;++n)d[n]=-1;for(n=0;n&lt;t.length;++n){var g=r.find(c(e,[t[n][0]]));d[g]&lt;0?(d[g]=p.length,p.push([t[n].slice(0)])):p[d[g]].push(t[n].slice(0))}return p}(t)}},{&quot;bit-twiddle&quot;:97,&quot;union-find&quot;:596}],559:[function(t,e,r){arguments[4][97][0].apply(r,arguments)},{dup:97}],560:[function(t,e,r){arguments[4][558][0].apply(r,arguments)},{&quot;bit-twiddle&quot;:559,dup:558,&quot;union-find&quot;:561}],561:[function(t,e,r){&quot;use strict&quot;;function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e&lt;t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n,n.prototype.length=function(){return this.roots.length},n.prototype.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},n.prototype.find=function(t){for(var e=this.roots;e[t]!==t;){var r=e[t];e[t]=e[r],t=r}return t},n.prototype.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o&lt;s?a[r]=n:s&lt;o?a[n]=r:(a[n]=r,++i[r])}}},{}],562:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){for(var a=e.length,o=t.length,s=new Array(a),l=new Array(a),c=new Array(a),u=new Array(a),f=0;f&lt;a;++f)s[f]=l[f]=-1,c[f]=1/0,u[f]=!1;for(f=0;f&lt;o;++f){var h=t[f];if(2!==h.length)throw new Error(&quot;Input must be a graph&quot;);var p=h[1],d=h[0];-1!==l[d]?l[d]=-2:l[d]=p,-1!==s[p]?s[p]=-2:s[p]=d}function g(t){if(u[t])return 1/0;var r,i,a,o,c,f=s[t],h=l[t];return f&lt;0||h&lt;0?1/0:(r=e[t],i=e[f],a=e[h],o=Math.abs(n(r,i,a)),c=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)),o/c)}function m(t,e){var r=k[t],n=k[e];k[t]=n,k[e]=r,M[r]=e,M[n]=t}function v(t){return c[k[t]]}function y(t){return 1&amp;t?t-1&gt;&gt;1:(t&gt;&gt;1)-1}function x(t){for(var e=v(t);;){var r=e,n=2*t+1,i=2*(t+1),a=t;if(n&lt;A){var o=v(n);o&lt;r&amp;&amp;(a=n,r=o)}if(i&lt;A)v(i)&lt;r&amp;&amp;(a=i);if(a===t)return t;m(t,a),t=a}}function b(t){for(var e=v(t);t&gt;0;){var r=y(t);if(r&gt;=0)if(e&lt;v(r)){m(t,r),t=r;continue}return t}}function _(){if(A&gt;0){var t=k[0];return m(0,A-1),A-=1,x(0),t}return-1}function w(t,e){var r=k[t];return c[r]===e?t:(c[r]=-1/0,b(t),_(),c[r]=e,b((A+=1)-1))}function T(t){if(!u[t]){u[t]=!0;var e=s[t],r=l[t];s[r]&gt;=0&amp;&amp;(s[r]=e),l[e]&gt;=0&amp;&amp;(l[e]=r),M[e]&gt;=0&amp;&amp;w(M[e],g(e)),M[r]&gt;=0&amp;&amp;w(M[r],g(r))}}var k=[],M=new Array(a);for(f=0;f&lt;a;++f){(c[f]=g(f))&lt;1/0?(M[f]=k.length,k.push(f)):M[f]=-1}var A=k.length;for(f=A&gt;&gt;1;f&gt;=0;--f)x(f);for(;;){var S=_();if(S&lt;0||c[S]&gt;r)break;T(S)}var E=[];for(f=0;f&lt;a;++f)u[f]||(M[f]=E.length,E.push(e[f].slice()));E.length;function C(t,e){if(t[e]&lt;0)return e;var r=e,n=e;do{var i=t[n];if(!u[n]||i&lt;0||i===n)break;if(i=t[n=i],!u[n]||i&lt;0||i===n)break;n=i,r=t[r]}while(r!==n);for(var a=e;a!==n;a=t[a])t[a]=n;return n}var L=[];return t.forEach((function(t){var e=C(s,t[0]),r=C(l,t[1]);if(e&gt;=0&amp;&amp;r&gt;=0&amp;&amp;e!==r){var n=M[e],i=M[r];n!==i&amp;&amp;L.push([n,i])}})),i.unique(i.normalize(L)),{positions:E,edges:L}};var n=t(&quot;robust-orientation&quot;),i=t(&quot;simplicial-complex&quot;)},{&quot;robust-orientation&quot;:548,&quot;simplicial-complex&quot;:560}],563:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,a,o,s;if(e[0][0]&lt;e[1][0])r=e[0],a=e[1];else{if(!(e[0][0]&gt;e[1][0]))return i(e,t);r=e[1],a=e[0]}if(t[0][0]&lt;t[1][0])o=t[0],s=t[1];else{if(!(t[0][0]&gt;t[1][0]))return-i(t,e);o=t[1],s=t[0]}var l=n(r,a,s),c=n(r,a,o);if(l&lt;0){if(c&lt;=0)return l}else if(l&gt;0){if(c&gt;=0)return l}else if(c)return c;if(l=n(s,o,a),c=n(s,o,r),l&lt;0){if(c&lt;=0)return l}else if(l&gt;0){if(c&gt;=0)return l}else if(c)return c;return a[0]-s[0]};var n=t(&quot;robust-orientation&quot;);function i(t,e){var r,i,a,o;if(e[0][0]&lt;e[1][0])r=e[0],i=e[1];else{if(!(e[0][0]&gt;e[1][0])){var s=Math.min(t[0][1],t[1][1]),l=Math.max(t[0][1],t[1][1]),c=Math.min(e[0][1],e[1][1]),u=Math.max(e[0][1],e[1][1]);return l&lt;c?l-c:s&gt;u?s-u:l-u}r=e[1],i=e[0]}t[0][1]&lt;t[1][1]?(a=t[0],o=t[1]):(a=t[1],o=t[0]);var f=n(i,r,a);return f||((f=n(i,r,o))||o-i)}},{&quot;robust-orientation&quot;:548}],564:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],565:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=2*e,n=new Array(r),a=0;a&lt;e;++a){var l=t[a],c=l[0][0]&lt;l[1][0];n[2*a]=new f(l[0][0],l,c,a),n[2*a+1]=new f(l[1][0],l,!c,a)}n.sort((function(t,e){var r=t.x-e.x;return r||((r=t.create-e.create)||Math.min(t.segment[0][1],t.segment[1][1])-Math.min(e.segment[0][1],e.segment[1][1]))}));var h=i(o),p=[],d=[],g=[];for(a=0;a&lt;r;){for(var m=n[a].x,v=[];a&lt;r;){var y=n[a];if(y.x!==m)break;a+=1,y.segment[0][0]===y.x&amp;&amp;y.segment[1][0]===y.x?y.create&amp;&amp;(y.segment[0][1]&lt;y.segment[1][1]?(v.push(new u(y.segment[0][1],y.index,!0,!0)),v.push(new u(y.segment[1][1],y.index,!1,!1))):(v.push(new u(y.segment[1][1],y.index,!0,!1)),v.push(new u(y.segment[0][1],y.index,!1,!0)))):h=y.create?h.insert(y.segment,y.index):h.remove(y.segment)}p.push(h.root),d.push(m),g.push(v)}return new s(p,d,g)};var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;functional-red-black-tree&quot;),a=t(&quot;robust-orientation&quot;),o=t(&quot;./lib/order-segments&quot;);function s(t,e,r){this.slabs=t,this.coordinates=e,this.horizontal=r}function l(t,e){return t.y-e}function c(t,e){for(var r=null;t;){var n,i,o=t.key;o[0][0]&lt;o[1][0]?(n=o[0],i=o[1]):(n=o[1],i=o[0]);var s=a(n,i,e);if(s&lt;0)t=t.left;else if(s&gt;0)if(e[0]!==o[1][0])r=t,t=t.right;else{if(l=c(t.right,e))return l;t=t.left}else{if(e[0]!==o[1][0])return t;var l;if(l=c(t.right,e))return l;t=t.left}}return r}function u(t,e,r,n){this.y=t,this.index=e,this.start=r,this.closed=n}function f(t,e,r,n){this.x=t,this.segment=e,this.create=r,this.index=n}s.prototype.castUp=function(t){var e=n.le(this.coordinates,t[0]);if(e&lt;0)return-1;this.slabs[e];var r=c(this.slabs[e],t),i=-1;if(r&amp;&amp;(i=r.value),this.coordinates[e]===t[0]){var s=null;if(r&amp;&amp;(s=r.key),e&gt;0){var u=c(this.slabs[e-1],t);u&amp;&amp;(s?o(u.key,s)&gt;0&amp;&amp;(s=u.key,i=u.value):(i=u.value,s=u.key))}var f=this.horizontal[e];if(f.length&gt;0){var h=n.ge(f,t[1],l);if(h&lt;f.length){var p=f[h];if(t[1]===p.y){if(p.closed)return p.index;for(;h&lt;f.length-1&amp;&amp;f[h+1].y===t[1];)if((p=f[h+=1]).closed)return p.index;if(p.y===t[1]&amp;&amp;!p.start){if((h+=1)&gt;=f.length)return i;p=f[h]}}if(p.start)if(s){var d=a(s[0],s[1],[t[0],p.y]);s[0][0]&gt;s[1][0]&amp;&amp;(d=-d),d&gt;0&amp;&amp;(i=p.index)}else i=p.index;else p.y!==t[1]&amp;&amp;(i=p.index)}}}return i}},{&quot;./lib/order-segments&quot;:563,&quot;binary-search-bounds&quot;:564,&quot;functional-red-black-tree&quot;:247,&quot;robust-orientation&quot;:548}],566:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-dot-product&quot;),i=t(&quot;robust-sum&quot;);function a(t,e){var r=i(n(t,e),[e[e.length-1]]);return r[r.length-1]}function o(t,e,r,n){var i=-e/(n-e);i&lt;0?i=0:i&gt;1&amp;&amp;(i=1);for(var a=1-i,o=t.length,s=new Array(o),l=0;l&lt;o;++l)s[l]=i*t[l]+a*r[l];return s}e.exports=function(t,e){for(var r=[],n=[],i=a(t[t.length-1],e),s=t[t.length-1],l=t[0],c=0;c&lt;t.length;++c,s=l){var u=a(l=t[c],e);if(i&lt;0&amp;&amp;u&gt;0||i&gt;0&amp;&amp;u&lt;0){var f=o(s,u,l,i);r.push(f),n.push(f.slice())}u&lt;0?n.push(l.slice()):u&gt;0?r.push(l.slice()):(r.push(l.slice()),n.push(l.slice())),i=u}return{positive:r,negative:n}},e.exports.positive=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l&lt;t.length;++l,i=s){var c=a(s=t[l],e);(n&lt;0&amp;&amp;c&gt;0||n&gt;0&amp;&amp;c&lt;0)&amp;&amp;r.push(o(i,c,s,n)),c&gt;=0&amp;&amp;r.push(s.slice()),n=c}return r},e.exports.negative=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l&lt;t.length;++l,i=s){var c=a(s=t[l],e);(n&lt;0&amp;&amp;c&gt;0||n&gt;0&amp;&amp;c&lt;0)&amp;&amp;r.push(o(i,c,s,n)),c&lt;=0&amp;&amp;r.push(s.slice()),n=c}return r}},{&quot;robust-dot-product&quot;:545,&quot;robust-sum&quot;:553}],567:[function(t,e,r){!function(){&quot;use strict&quot;;var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(t){return i(o(t),arguments)}function n(t,r){return e.apply(null,[t].concat(r||[]))}function i(r,n){var i,a,o,s,l,c,u,f,h,p=1,d=r.length,g=&quot;&quot;;for(a=0;a&lt;d;a++)if(&quot;string&quot;==typeof r[a])g+=r[a];else if(&quot;object&quot;==typeof r[a]){if((s=r[a]).keys)for(i=n[p],o=0;o&lt;s.keys.length;o++){if(null==i)throw new Error(e('[sprintf] Cannot access property &quot;%s&quot; of undefined value &quot;%s&quot;',s.keys[o],s.keys[o-1]));i=i[s.keys[o]]}else i=s.param_no?n[s.param_no]:n[p++];if(t.not_type.test(s.type)&amp;&amp;t.not_primitive.test(s.type)&amp;&amp;i instanceof Function&amp;&amp;(i=i()),t.numeric_arg.test(s.type)&amp;&amp;&quot;number&quot;!=typeof i&amp;&amp;isNaN(i))throw new TypeError(e(&quot;[sprintf] expecting number but found %T&quot;,i));switch(t.number.test(s.type)&amp;&amp;(f=i&gt;=0),s.type){case&quot;b&quot;:i=parseInt(i,10).toString(2);break;case&quot;c&quot;:i=String.fromCharCode(parseInt(i,10));break;case&quot;d&quot;:case&quot;i&quot;:i=parseInt(i,10);break;case&quot;j&quot;:i=JSON.stringify(i,null,s.width?parseInt(s.width):0);break;case&quot;e&quot;:i=s.precision?parseFloat(i).toExponential(s.precision):parseFloat(i).toExponential();break;case&quot;f&quot;:i=s.precision?parseFloat(i).toFixed(s.precision):parseFloat(i);break;case&quot;g&quot;:i=s.precision?String(Number(i.toPrecision(s.precision))):parseFloat(i);break;case&quot;o&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(8);break;case&quot;s&quot;:i=String(i),i=s.precision?i.substring(0,s.precision):i;break;case&quot;t&quot;:i=String(!!i),i=s.precision?i.substring(0,s.precision):i;break;case&quot;T&quot;:i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=s.precision?i.substring(0,s.precision):i;break;case&quot;u&quot;:i=parseInt(i,10)&gt;&gt;&gt;0;break;case&quot;v&quot;:i=i.valueOf(),i=s.precision?i.substring(0,s.precision):i;break;case&quot;x&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(16);break;case&quot;X&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(16).toUpperCase()}t.json.test(s.type)?g+=i:(!t.number.test(s.type)||f&amp;&amp;!s.sign?h=&quot;&quot;:(h=f?&quot;+&quot;:&quot;-&quot;,i=i.toString().replace(t.sign,&quot;&quot;)),c=s.pad_char?&quot;0&quot;===s.pad_char?&quot;0&quot;:s.pad_char.charAt(1):&quot; &quot;,u=s.width-(h+i).length,l=s.width&amp;&amp;u&gt;0?c.repeat(u):&quot;&quot;,g+=s.align?h+i+l:&quot;0&quot;===c?h+l+i:l+h+i)}return g}var a=Object.create(null);function o(e){if(a[e])return a[e];for(var r,n=e,i=[],o=0;n;){if(null!==(r=t.text.exec(n)))i.push(r[0]);else if(null!==(r=t.modulo.exec(n)))i.push(&quot;%&quot;);else{if(null===(r=t.placeholder.exec(n)))throw new SyntaxError(&quot;[sprintf] unexpected placeholder&quot;);if(r[2]){o|=1;var s=[],l=r[2],c=[];if(null===(c=t.key.exec(l)))throw new SyntaxError(&quot;[sprintf] failed to parse named argument key&quot;);for(s.push(c[1]);&quot;&quot;!==(l=l.substring(c[0].length));)if(null!==(c=t.key_access.exec(l)))s.push(c[1]);else{if(null===(c=t.index_access.exec(l)))throw new SyntaxError(&quot;[sprintf] failed to parse named argument key&quot;);s.push(c[1])}r[2]=s}else o|=2;if(3===o)throw new Error(&quot;[sprintf] mixing positional and named placeholders is not (yet) supported&quot;);i.push({placeholder:r[0],param_no:r[1],keys:r[2],sign:r[3],pad_char:r[4],align:r[5],width:r[6],precision:r[7],type:r[8]})}n=n.substring(r[0].length)}return a[e]=i}&quot;undefined&quot;!=typeof r&amp;&amp;(r.sprintf=e,r.vsprintf=n),&quot;undefined&quot;!=typeof window&amp;&amp;(window.sprintf=e,window.vsprintf=n)}()},{}],568:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parenthesis&quot;);e.exports=function(t,e,r){if(null==t)throw Error(&quot;First argument should be a string&quot;);if(null==e)throw Error(&quot;Separator should be a string or a RegExp&quot;);r?(&quot;string&quot;==typeof r||Array.isArray(r))&amp;&amp;(r={ignore:r}):r={},null==r.escape&amp;&amp;(r.escape=!0),null==r.ignore?r.ignore=[&quot;[]&quot;,&quot;()&quot;,&quot;{}&quot;,&quot;&lt;&gt;&quot;,'&quot;&quot;',&quot;''&quot;,&quot;``&quot;,&quot;\u201c\u201d&quot;,&quot;\xab\xbb&quot;]:(&quot;string&quot;==typeof r.ignore&amp;&amp;(r.ignore=[r.ignore]),r.ignore=r.ignore.map((function(t){return 1===t.length&amp;&amp;(t+=t),t})));var i=n.parse(t,{flat:!0,brackets:r.ignore}),a=i[0].split(e);if(r.escape){for(var o=[],s=0;s&lt;a.length;s++){var l=a[s],c=a[s+1];&quot;\\&quot;===l[l.length-1]&amp;&amp;&quot;\\&quot;!==l[l.length-2]?(o.push(l+e+c),s++):o.push(l)}a=o}for(s=0;s&lt;a.length;s++)i[0]=a[s],a[s]=n.stringify(i,{flat:!0});return a}},{parenthesis:503}],569:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=new Array(e),n=new Array(e),i=new Array(e),a=new Array(e),o=new Array(e),s=new Array(e),l=0;l&lt;e;++l)r[l]=-1,n[l]=0,i[l]=!1,a[l]=0,o[l]=-1,s[l]=[];var c,u=0,f=[],h=[];function p(e){var l=[e],c=[e];for(r[e]=n[e]=u,i[e]=!0,u+=1;c.length&gt;0;){e=c[c.length-1];var p=t[e];if(a[e]&lt;p.length){for(var d=a[e];d&lt;p.length;++d){var g=p[d];if(r[g]&lt;0){r[g]=n[g]=u,i[g]=!0,u+=1,l.push(g),c.push(g);break}i[g]&amp;&amp;(n[e]=0|Math.min(n[e],n[g])),o[g]&gt;=0&amp;&amp;s[e].push(o[g])}a[e]=d}else{if(n[e]===r[e]){var m=[],v=[],y=0;for(d=l.length-1;d&gt;=0;--d){var x=l[d];if(i[x]=!1,m.push(x),v.push(s[x]),y+=s[x].length,o[x]=f.length,x===e){l.length=d;break}}f.push(m);var b=new Array(y);for(d=0;d&lt;v.length;d++)for(var _=0;_&lt;v[d].length;_++)b[--y]=v[d][_];h.push(b)}c.pop()}}}for(l=0;l&lt;e;++l)r[l]&lt;0&amp;&amp;p(l);for(l=0;l&lt;h.length;l++){var d=h[l];if(0!==d.length){d.sort((function(t,e){return t-e})),c=[d[0]];for(var g=1;g&lt;d.length;g++)d[g]!==d[g-1]&amp;&amp;c.push(d[g]);h[l]=c}}return{components:f,adjacencyList:h}}},{}],570:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(t.dimension&lt;=0)return{positions:[],cells:[]};if(1===t.dimension)return function(t,e){for(var r=a(t,e),n=r.length,i=new Array(n),o=new Array(n),s=0;s&lt;n;++s)i[s]=[r[s]],o[s]=[s];return{positions:i,cells:o}}(t,e);var r=t.order.join()+&quot;-&quot;+t.dtype,s=o[r];e=+e||0;s||(s=o[r]=function(t,e){var r=t.length,a=[&quot;'use strict';&quot;],o=&quot;surfaceNets&quot;+t.join(&quot;_&quot;)+&quot;d&quot;+e;a.push(&quot;var contour=genContour({&quot;,&quot;order:[&quot;,t.join(),&quot;],&quot;,&quot;scalarArguments: 3,&quot;,&quot;phase:function phaseFunc(p,a,b,c) { return (p &gt; c)|0 },&quot;),&quot;generic&quot;===e&amp;&amp;a.push(&quot;getters:[0],&quot;);for(var s=[],l=[],c=0;c&lt;r;++c)s.push(&quot;d&quot;+c),l.push(&quot;d&quot;+c);for(c=0;c&lt;1&lt;&lt;r;++c)s.push(&quot;v&quot;+c),l.push(&quot;v&quot;+c);for(c=0;c&lt;1&lt;&lt;r;++c)s.push(&quot;p&quot;+c),l.push(&quot;p&quot;+c);s.push(&quot;a&quot;,&quot;b&quot;,&quot;c&quot;),l.push(&quot;a&quot;,&quot;c&quot;),a.push(&quot;vertex:function vertexFunc(&quot;,s.join(),&quot;){&quot;);var u=[];for(c=0;c&lt;1&lt;&lt;r;++c)u.push(&quot;(p&quot;+c+&quot;&lt;&lt;&quot;+c+&quot;)&quot;);a.push(&quot;var m=(&quot;,u.join(&quot;+&quot;),&quot;)|0;if(m===0||m===&quot;,(1&lt;&lt;(1&lt;&lt;r))-1,&quot;){return}&quot;);var f=[],h=[];1&lt;&lt;(1&lt;&lt;r)&lt;=128?(a.push(&quot;switch(m){&quot;),h=a):a.push(&quot;switch(m&gt;&gt;&gt;7){&quot;);for(c=0;c&lt;1&lt;&lt;(1&lt;&lt;r);++c){if(1&lt;&lt;(1&lt;&lt;r)&gt;128&amp;&amp;c%128==0){f.length&gt;0&amp;&amp;h.push(&quot;}}&quot;);var p=&quot;vExtra&quot;+f.length;a.push(&quot;case &quot;,c&gt;&gt;&gt;7,&quot;:&quot;,p,&quot;(m&amp;0x7f,&quot;,l.join(),&quot;);break;&quot;),h=[&quot;function &quot;,p,&quot;(m,&quot;,l.join(),&quot;){switch(m){&quot;],f.push(h)}h.push(&quot;case &quot;,127&amp;c,&quot;:&quot;);for(var d=new Array(r),g=new Array(r),m=new Array(r),v=new Array(r),y=0,x=0;x&lt;r;++x)d[x]=[],g[x]=[],m[x]=0,v[x]=0;for(x=0;x&lt;1&lt;&lt;r;++x)for(var b=0;b&lt;r;++b){var _=x^1&lt;&lt;b;if(!(_&gt;x)&amp;&amp;!(c&amp;1&lt;&lt;_)!=!(c&amp;1&lt;&lt;x)){var w=1;c&amp;1&lt;&lt;_?g[b].push(&quot;v&quot;+_+&quot;-v&quot;+x):(g[b].push(&quot;v&quot;+x+&quot;-v&quot;+_),w=-w),w&lt;0?(d[b].push(&quot;-v&quot;+x+&quot;-v&quot;+_),m[b]+=2):(d[b].push(&quot;v&quot;+x+&quot;+v&quot;+_),m[b]-=2),y+=1;for(var T=0;T&lt;r;++T)T!==b&amp;&amp;(_&amp;1&lt;&lt;T?v[T]+=1:v[T]-=1)}}var k=[];for(b=0;b&lt;r;++b)if(0===d[b].length)k.push(&quot;d&quot;+b+&quot;-0.5&quot;);else{var M=&quot;&quot;;m[b]&lt;0?M=m[b]+&quot;*c&quot;:m[b]&gt;0&amp;&amp;(M=&quot;+&quot;+m[b]+&quot;*c&quot;);var A=d[b].length/y*.5,S=.5+v[b]/y*.5;k.push(&quot;d&quot;+b+&quot;-&quot;+S+&quot;-&quot;+A+&quot;*(&quot;+d[b].join(&quot;+&quot;)+M+&quot;)/(&quot;+g[b].join(&quot;+&quot;)+&quot;)&quot;)}h.push(&quot;a.push([&quot;,k.join(),&quot;]);&quot;,&quot;break;&quot;)}a.push(&quot;}},&quot;),f.length&gt;0&amp;&amp;h.push(&quot;}}&quot;);var E=[];for(c=0;c&lt;1&lt;&lt;r-1;++c)E.push(&quot;v&quot;+c);E.push(&quot;c0&quot;,&quot;c1&quot;,&quot;p0&quot;,&quot;p1&quot;,&quot;a&quot;,&quot;b&quot;,&quot;c&quot;),a.push(&quot;cell:function cellFunc(&quot;,E.join(),&quot;){&quot;);var C=i(r-1);a.push(&quot;if(p0){b.push(&quot;,C.map((function(t){return&quot;[&quot;+t.map((function(t){return&quot;v&quot;+t}))+&quot;]&quot;})).join(),&quot;)}else{b.push(&quot;,C.map((function(t){var e=t.slice();return e.reverse(),&quot;[&quot;+e.map((function(t){return&quot;v&quot;+t}))+&quot;]&quot;})).join(),&quot;)}}});function &quot;,o,&quot;(array,level){var verts=[],cells=[];contour(array,verts,cells,level);return {positions:verts,cells:cells};} return &quot;,o,&quot;;&quot;);for(c=0;c&lt;f.length;++c)a.push(f[c].join(&quot;&quot;));return new Function(&quot;genContour&quot;,a.join(&quot;&quot;))(n)}(t.order,t.dtype));return s(t,e)};var n=t(&quot;ndarray-extract-contour&quot;),i=t(&quot;triangulate-hypercube&quot;),a=t(&quot;zero-crossings&quot;);var o={}},{&quot;ndarray-extract-contour&quot;:487,&quot;triangulate-hypercube&quot;:580,&quot;zero-crossings&quot;:624}],571:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&amp;&amp;(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{!n&amp;&amp;s.return&amp;&amp;s.return()}finally{if(i)throw a}}return r}(t,e);throw new TypeError(&quot;Invalid attempt to destructure non-iterable instance&quot;)},i=2*Math.PI,a=function(t,e,r,n,i,a,o){var s=t.x,l=t.y;return{x:n*(s*=e)-i*(l*=r)+a,y:i*s+n*l+o}},o=function(t,e){var r=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),n=Math.cos(t),i=Math.sin(t),a=Math.cos(t+e),o=Math.sin(t+e);return[{x:n-i*r,y:i+n*r},{x:a+o*r,y:o-a*r},{x:a,y:o}]},s=function(t,e,r,n){var i=t*r+e*n;return i&gt;1&amp;&amp;(i=1),i&lt;-1&amp;&amp;(i=-1),(t*n-e*r&lt;0?-1:1)*Math.acos(i)};r.default=function(t){var e=t.px,r=t.py,l=t.cx,c=t.cy,u=t.rx,f=t.ry,h=t.xAxisRotation,p=void 0===h?0:h,d=t.largeArcFlag,g=void 0===d?0:d,m=t.sweepFlag,v=void 0===m?0:m,y=[];if(0===u||0===f)return[];var x=Math.sin(p*i/360),b=Math.cos(p*i/360),_=b*(e-l)/2+x*(r-c)/2,w=-x*(e-l)/2+b*(r-c)/2;if(0===_&amp;&amp;0===w)return[];u=Math.abs(u),f=Math.abs(f);var T=Math.pow(_,2)/Math.pow(u,2)+Math.pow(w,2)/Math.pow(f,2);T&gt;1&amp;&amp;(u*=Math.sqrt(T),f*=Math.sqrt(T));var k=function(t,e,r,n,a,o,l,c,u,f,h,p){var d=Math.pow(a,2),g=Math.pow(o,2),m=Math.pow(h,2),v=Math.pow(p,2),y=d*g-d*v-g*m;y&lt;0&amp;&amp;(y=0),y/=d*v+g*m;var x=(y=Math.sqrt(y)*(l===c?-1:1))*a/o*p,b=y*-o/a*h,_=f*x-u*b+(t+r)/2,w=u*x+f*b+(e+n)/2,T=(h-x)/a,k=(p-b)/o,M=(-h-x)/a,A=(-p-b)/o,S=s(1,0,T,k),E=s(T,k,M,A);return 0===c&amp;&amp;E&gt;0&amp;&amp;(E-=i),1===c&amp;&amp;E&lt;0&amp;&amp;(E+=i),[_,w,S,E]}(e,r,l,c,u,f,g,v,x,b,_,w),M=n(k,4),A=M[0],S=M[1],E=M[2],C=M[3],L=Math.abs(C)/(i/4);Math.abs(1-L)&lt;1e-7&amp;&amp;(L=1);var I=Math.max(Math.ceil(L),1);C/=I;for(var P=0;P&lt;I;P++)y.push(o(E,C)),E+=C;return y.map((function(t){var e=a(t[0],u,f,b,x,A,S),r=e.x,n=e.y,i=a(t[1],u,f,b,x,A,S),o=i.x,s=i.y,l=a(t[2],u,f,b,x,A,S);return{x1:r,y1:n,x2:o,y2:s,x:l.x,y:l.y}}))},e.exports=r.default},{}],572:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-svg-path&quot;),i=t(&quot;abs-svg-path&quot;),a=t(&quot;normalize-svg-path&quot;),o=t(&quot;is-svg-path&quot;),s=t(&quot;assert&quot;);e.exports=function(t){Array.isArray(t)&amp;&amp;1===t.length&amp;&amp;&quot;string&quot;==typeof t[0]&amp;&amp;(t=t[0]);&quot;string&quot;==typeof t&amp;&amp;(s(o(t),&quot;String is not an SVG path.&quot;),t=n(t));if(s(Array.isArray(t),&quot;Argument should be a string or an array of path segments.&quot;),t=i(t),!(t=a(t)).length)return[0,0,0,0];for(var e=[1/0,1/0,-1/0,-1/0],r=0,l=t.length;r&lt;l;r++)for(var c=t[r].slice(1),u=0;u&lt;c.length;u+=2)c[u+0]&lt;e[0]&amp;&amp;(e[0]=c[u+0]),c[u+1]&lt;e[1]&amp;&amp;(e[1]=c[u+1]),c[u+0]&gt;e[2]&amp;&amp;(e[2]=c[u+0]),c[u+1]&gt;e[3]&amp;&amp;(e[3]=c[u+1]);return e}},{&quot;abs-svg-path&quot;:65,assert:73,&quot;is-svg-path&quot;:471,&quot;normalize-svg-path&quot;:573,&quot;parse-svg-path&quot;:505}],573:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e,r=[],o=0,s=0,l=0,c=0,u=null,f=null,h=0,p=0,d=0,g=t.length;d&lt;g;d++){var m=t[d],v=m[0];switch(v){case&quot;M&quot;:l=m[1],c=m[2];break;case&quot;A&quot;:var y=n({px:h,py:p,cx:m[6],cy:m[7],rx:m[1],ry:m[2],xAxisRotation:m[3],largeArcFlag:m[4],sweepFlag:m[5]});if(!y.length)continue;for(var x,b=0;b&lt;y.length;b++)x=y[b],m=[&quot;C&quot;,x.x1,x.y1,x.x2,x.y2,x.x,x.y],b&lt;y.length-1&amp;&amp;r.push(m);break;case&quot;S&quot;:var _=h,w=p;&quot;C&quot;!=e&amp;&amp;&quot;S&quot;!=e||(_+=_-o,w+=w-s),m=[&quot;C&quot;,_,w,m[1],m[2],m[3],m[4]];break;case&quot;T&quot;:&quot;Q&quot;==e||&quot;T&quot;==e?(u=2*h-u,f=2*p-f):(u=h,f=p),m=a(h,p,u,f,m[1],m[2]);break;case&quot;Q&quot;:u=m[1],f=m[2],m=a(h,p,m[1],m[2],m[3],m[4]);break;case&quot;L&quot;:m=i(h,p,m[1],m[2]);break;case&quot;H&quot;:m=i(h,p,m[1],p);break;case&quot;V&quot;:m=i(h,p,h,m[1]);break;case&quot;Z&quot;:m=i(h,p,l,c)}e=v,h=m[m.length-2],p=m[m.length-1],m.length&gt;4?(o=m[m.length-4],s=m[m.length-3]):(o=h,s=p),r.push(m)}return r};var n=t(&quot;svg-arc-to-cubic-bezier&quot;);function i(t,e,r,n){return[&quot;C&quot;,t,e,r,n,r,n]}function a(t,e,r,n,i,a){return[&quot;C&quot;,t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}},{&quot;svg-arc-to-cubic-bezier&quot;:571}],574:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;svg-path-bounds&quot;),a=t(&quot;parse-svg-path&quot;),o=t(&quot;draw-svg-path&quot;),s=t(&quot;is-svg-path&quot;),l=t(&quot;bitmap-sdf&quot;),c=document.createElement(&quot;canvas&quot;),u=c.getContext(&quot;2d&quot;);e.exports=function(t,e){if(!s(t))throw Error(&quot;Argument should be valid svg path string&quot;);e||(e={});var r,f;e.shape?(r=e.shape[0],f=e.shape[1]):(r=c.width=e.w||e.width||200,f=c.height=e.h||e.height||200);var h=Math.min(r,f),p=e.stroke||0,d=e.viewbox||e.viewBox||i(t),g=[r/(d[2]-d[0]),f/(d[3]-d[1])],m=Math.min(g[0]||0,g[1]||0)/2;u.fillStyle=&quot;black&quot;,u.fillRect(0,0,r,f),u.fillStyle=&quot;white&quot;,p&amp;&amp;(&quot;number&quot;!=typeof p&amp;&amp;(p=1),u.strokeStyle=p&gt;0?&quot;white&quot;:&quot;black&quot;,u.lineWidth=Math.abs(p));if(u.translate(.5*r,.5*f),u.scale(m,m),function(){if(null!=n)return n;var t=document.createElement(&quot;canvas&quot;).getContext(&quot;2d&quot;);if(t.canvas.width=t.canvas.height=1,!window.Path2D)return n=!1;var e=new Path2D(&quot;M0,0h1v1h-1v-1Z&quot;);t.fillStyle=&quot;black&quot;,t.fill(e);var r=t.getImageData(0,0,1,1);return n=r&amp;&amp;r.data&amp;&amp;255===r.data[3]}()){var v=new Path2D(t);u.fill(v),p&amp;&amp;u.stroke(v)}else{var y=a(t);o(u,y),u.fill(),p&amp;&amp;u.stroke()}return u.setTransform(1,0,0,1,0,0),l(u,{cutoff:null!=e.cutoff?e.cutoff:.5,radius:null!=e.radius?e.radius:.5*h})}},{&quot;bitmap-sdf&quot;:98,&quot;draw-svg-path&quot;:174,&quot;is-svg-path&quot;:471,&quot;parse-svg-path&quot;:505,&quot;svg-path-bounds&quot;:572}],575:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;e.exports=function t(e,r,i){i=i||{};var o=a[e];o||(o=a[e]={&quot; &quot;:{data:new Float32Array(0),shape:.2}});var s=o[r];if(!s)if(r.length&lt;=1||!/\d/.test(r))s=o[r]=function(t){for(var e=t.cells,r=t.positions,n=new Float32Array(6*e.length),i=0,a=0,o=0;o&lt;e.length;++o)for(var s=e[o],l=0;l&lt;3;++l){var c=r[s[l]];n[i++]=c[0],n[i++]=c[1]+1.4,a=Math.max(c[0],a)}return{data:n,shape:a}}(n(r,{triangles:!0,font:e,textAlign:i.textAlign||&quot;left&quot;,textBaseline:&quot;alphabetic&quot;,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}}));else{for(var l=r.split(/(\d|\s)/),c=new Array(l.length),u=0,f=0,h=0;h&lt;l.length;++h)c[h]=t(e,l[h]),u+=c[h].data.length,f+=c[h].shape,h&gt;0&amp;&amp;(f+=.02);var p=new Float32Array(u),d=0,g=-.5*f;for(h=0;h&lt;c.length;++h){for(var m=c[h].data,v=0;v&lt;m.length;v+=2)p[d++]=m[v]+g,p[d++]=m[v+1];g+=c[h].shape+.02}s=o[r]={data:p,shape:f}}return s};var n=t(&quot;vectorize-text&quot;),i=window||r.global||{},a=i.__TEXT_CACHE||{};i.__TEXT_CACHE={}}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:526,&quot;vectorize-text&quot;:600}],576:[function(t,e,r){!function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,s=t.max,l=t.random;function c(e,l){if(l=l||{},(e=e||&quot;&quot;)instanceof c)return e;if(!(this instanceof c))return new c(e,l);var u=function(e){var i={r:0,g:0,b:0},a=1,l=null,c=null,u=null,f=!1,h=!1;&quot;string&quot;==typeof e&amp;&amp;(e=function(t){t=t.replace(r,&quot;&quot;).replace(n,&quot;&quot;).toLowerCase();var e,i=!1;if(S[t])t=S[t],i=!0;else if(&quot;transparent&quot;==t)return{r:0,g:0,b:0,a:0,format:&quot;name&quot;};if(e=j.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=j.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=j.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=j.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=j.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=j.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=j.hex8.exec(t))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),a:R(e[4]),format:i?&quot;name&quot;:&quot;hex8&quot;};if(e=j.hex6.exec(t))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),format:i?&quot;name&quot;:&quot;hex&quot;};if(e=j.hex4.exec(t))return{r:P(e[1]+&quot;&quot;+e[1]),g:P(e[2]+&quot;&quot;+e[2]),b:P(e[3]+&quot;&quot;+e[3]),a:R(e[4]+&quot;&quot;+e[4]),format:i?&quot;name&quot;:&quot;hex8&quot;};if(e=j.hex3.exec(t))return{r:P(e[1]+&quot;&quot;+e[1]),g:P(e[2]+&quot;&quot;+e[2]),b:P(e[3]+&quot;&quot;+e[3]),format:i?&quot;name&quot;:&quot;hex&quot;};return!1}(e));&quot;object&quot;==typeof e&amp;&amp;(U(e.r)&amp;&amp;U(e.g)&amp;&amp;U(e.b)?(p=e.r,d=e.g,g=e.b,i={r:255*L(p,255),g:255*L(d,255),b:255*L(g,255)},f=!0,h=&quot;%&quot;===String(e.r).substr(-1)?&quot;prgb&quot;:&quot;rgb&quot;):U(e.h)&amp;&amp;U(e.s)&amp;&amp;U(e.v)?(l=O(e.s),c=O(e.v),i=function(e,r,n){e=6*L(e,360),r=L(r,100),n=L(n,100);var i=t.floor(e),a=e-i,o=n*(1-r),s=n*(1-a*r),l=n*(1-(1-a)*r),c=i%6;return{r:255*[n,s,o,o,l,n][c],g:255*[l,n,n,s,o,o][c],b:255*[o,o,l,n,n,s][c]}}(e.h,l,c),f=!0,h=&quot;hsv&quot;):U(e.h)&amp;&amp;U(e.s)&amp;&amp;U(e.l)&amp;&amp;(l=O(e.s),u=O(e.l),i=function(t,e,r){var n,i,a;function o(t,e,r){return r&lt;0&amp;&amp;(r+=1),r&gt;1&amp;&amp;(r-=1),r&lt;1/6?t+6*(e-t)*r:r&lt;.5?e:r&lt;2/3?t+(e-t)*(2/3-r)*6:t}if(t=L(t,360),e=L(e,100),r=L(r,100),0===e)n=i=a=r;else{var s=r&lt;.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),i=o(l,s,t),a=o(l,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(e.h,l,u),f=!0,h=&quot;hsl&quot;),e.hasOwnProperty(&quot;a&quot;)&amp;&amp;(a=e.a));var p,d,g;return a=C(a),{ok:f,format:e.format||h,r:o(255,s(i.r,0)),g:o(255,s(i.g,0)),b:o(255,s(i.b,0)),a:a}}(e);this._originalInput=e,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=a(100*this._a)/100,this._format=l.format||u.format,this._gradientType=l.gradientType,this._r&lt;1&amp;&amp;(this._r=a(this._r)),this._g&lt;1&amp;&amp;(this._g=a(this._g)),this._b&lt;1&amp;&amp;(this._b=a(this._b)),this._ok=u.ok,this._tc_id=i++}function u(t,e,r){t=L(t,255),e=L(e,255),r=L(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=(a+l)/2;if(a==l)n=i=0;else{var u=a-l;switch(i=c&gt;.5?u/(2-a-l):u/(a+l),a){case t:n=(e-r)/u+(e&lt;r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:c}}function f(t,e,r){t=L(t,255),e=L(e,255),r=L(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=a,u=a-l;if(i=0===a?0:u/a,a==l)n=0;else{switch(a){case t:n=(e-r)/u+(e&lt;r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:c}}function h(t,e,r,n){var i=[z(a(t).toString(16)),z(a(e).toString(16)),z(a(r).toString(16))];return n&amp;&amp;i[0].charAt(0)==i[0].charAt(1)&amp;&amp;i[1].charAt(0)==i[1].charAt(1)&amp;&amp;i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(&quot;&quot;)}function p(t,e,r,n){return[z(D(n)),z(a(t).toString(16)),z(a(e).toString(16)),z(a(r).toString(16))].join(&quot;&quot;)}function d(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s-=e/100,r.s=I(r.s),c(r)}function g(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s+=e/100,r.s=I(r.s),c(r)}function m(t){return c(t).desaturate(100)}function v(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l+=e/100,r.l=I(r.l),c(r)}function y(t,e){e=0===e?0:e||10;var r=c(t).toRgb();return r.r=s(0,o(255,r.r-a(-e/100*255))),r.g=s(0,o(255,r.g-a(-e/100*255))),r.b=s(0,o(255,r.b-a(-e/100*255))),c(r)}function x(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l-=e/100,r.l=I(r.l),c(r)}function b(t,e){var r=c(t).toHsl(),n=(r.h+e)%360;return r.h=n&lt;0?360+n:n,c(r)}function _(t){var e=c(t).toHsl();return e.h=(e.h+180)%360,c(e)}function w(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+120)%360,s:e.s,l:e.l}),c({h:(r+240)%360,s:e.s,l:e.l})]}function T(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+90)%360,s:e.s,l:e.l}),c({h:(r+180)%360,s:e.s,l:e.l}),c({h:(r+270)%360,s:e.s,l:e.l})]}function k(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+72)%360,s:e.s,l:e.l}),c({h:(r+216)%360,s:e.s,l:e.l})]}function M(t,e,r){e=e||6,r=r||30;var n=c(t).toHsl(),i=360/r,a=[c(t)];for(n.h=(n.h-(i*e&gt;&gt;1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(c(n));return a}function A(t,e){e=e||6;for(var r=c(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(c({h:n,s:i,v:a})),a=(a+s)%1;return o}c.prototype={isDark:function(){return this.getBrightness()&lt;128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var e,r,n,i=this.toRgb();return e=i.r/255,r=i.g/255,n=i.b/255,.2126*(e&lt;=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(r&lt;=.03928?r/12.92:t.pow((r+.055)/1.055,2.4))+.0722*(n&lt;=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=C(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=f(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.v);return 1==this._a?&quot;hsv(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%)&quot;:&quot;hsva(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%, &quot;+this._roundA+&quot;)&quot;},toHsl:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=u(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.l);return 1==this._a?&quot;hsl(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%)&quot;:&quot;hsla(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%, &quot;+this._roundA+&quot;)&quot;},toHex:function(t){return h(this._r,this._g,this._b,t)},toHexString:function(t){return&quot;#&quot;+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[z(a(t).toString(16)),z(a(e).toString(16)),z(a(r).toString(16)),z(D(n))];if(i&amp;&amp;o[0].charAt(0)==o[0].charAt(1)&amp;&amp;o[1].charAt(0)==o[1].charAt(1)&amp;&amp;o[2].charAt(0)==o[2].charAt(1)&amp;&amp;o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join(&quot;&quot;)}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return&quot;#&quot;+this.toHex8(t)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?&quot;rgb(&quot;+a(this._r)+&quot;, &quot;+a(this._g)+&quot;, &quot;+a(this._b)+&quot;)&quot;:&quot;rgba(&quot;+a(this._r)+&quot;, &quot;+a(this._g)+&quot;, &quot;+a(this._b)+&quot;, &quot;+this._roundA+&quot;)&quot;},toPercentageRgb:function(){return{r:a(100*L(this._r,255))+&quot;%&quot;,g:a(100*L(this._g,255))+&quot;%&quot;,b:a(100*L(this._b,255))+&quot;%&quot;,a:this._a}},toPercentageRgbString:function(){return 1==this._a?&quot;rgb(&quot;+a(100*L(this._r,255))+&quot;%, &quot;+a(100*L(this._g,255))+&quot;%, &quot;+a(100*L(this._b,255))+&quot;%)&quot;:&quot;rgba(&quot;+a(100*L(this._r,255))+&quot;%, &quot;+a(100*L(this._g,255))+&quot;%, &quot;+a(100*L(this._b,255))+&quot;%, &quot;+this._roundA+&quot;)&quot;},toName:function(){return 0===this._a?&quot;transparent&quot;:!(this._a&lt;1)&amp;&amp;(E[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e=&quot;#&quot;+p(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?&quot;GradientType = 1, &quot;:&quot;&quot;;if(t){var i=c(t);r=&quot;#&quot;+p(i._r,i._g,i._b,i._a)}return&quot;progid:DXImageTransform.Microsoft.gradient(&quot;+n+&quot;startColorstr=&quot;+e+&quot;,endColorstr=&quot;+r+&quot;)&quot;},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a&lt;1&amp;&amp;this._a&gt;=0;return e||!n||&quot;hex&quot;!==t&amp;&amp;&quot;hex6&quot;!==t&amp;&amp;&quot;hex3&quot;!==t&amp;&amp;&quot;hex4&quot;!==t&amp;&amp;&quot;hex8&quot;!==t&amp;&amp;&quot;name&quot;!==t?(&quot;rgb&quot;===t&amp;&amp;(r=this.toRgbString()),&quot;prgb&quot;===t&amp;&amp;(r=this.toPercentageRgbString()),&quot;hex&quot;!==t&amp;&amp;&quot;hex6&quot;!==t||(r=this.toHexString()),&quot;hex3&quot;===t&amp;&amp;(r=this.toHexString(!0)),&quot;hex4&quot;===t&amp;&amp;(r=this.toHex8String(!0)),&quot;hex8&quot;===t&amp;&amp;(r=this.toHex8String()),&quot;name&quot;===t&amp;&amp;(r=this.toName()),&quot;hsl&quot;===t&amp;&amp;(r=this.toHslString()),&quot;hsv&quot;===t&amp;&amp;(r=this.toHsvString()),r||this.toHexString()):&quot;name&quot;===t&amp;&amp;0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},c.fromRatio=function(t,e){if(&quot;object&quot;==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&amp;&amp;(r[n]=&quot;a&quot;===n?t[n]:O(t[n]));t=r}return c(t,e)},c.equals=function(t,e){return!(!t||!e)&amp;&amp;c(t).toRgbString()==c(e).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})},c.mix=function(t,e,r){r=0===r?0:r||50;var n=c(t).toRgb(),i=c(e).toRgb(),a=r/100;return c({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},c.readability=function(e,r){var n=c(e),i=c(r);return(t.max(n.getLuminance(),i.getLuminance())+.05)/(t.min(n.getLuminance(),i.getLuminance())+.05)},c.isReadable=function(t,e,r){var n,i,a=c.readability(t,e);switch(i=!1,(n=function(t){var e,r;e=((t=t||{level:&quot;AA&quot;,size:&quot;small&quot;}).level||&quot;AA&quot;).toUpperCase(),r=(t.size||&quot;small&quot;).toLowerCase(),&quot;AA&quot;!==e&amp;&amp;&quot;AAA&quot;!==e&amp;&amp;(e=&quot;AA&quot;);&quot;small&quot;!==r&amp;&amp;&quot;large&quot;!==r&amp;&amp;(r=&quot;small&quot;);return{level:e,size:r}}(r)).level+n.size){case&quot;AAsmall&quot;:case&quot;AAAlarge&quot;:i=a&gt;=4.5;break;case&quot;AAlarge&quot;:i=a&gt;=3;break;case&quot;AAAsmall&quot;:i=a&gt;=7}return i},c.mostReadable=function(t,e,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var u=0;u&lt;e.length;u++)(n=c.readability(t,e[u]))&gt;l&amp;&amp;(l=n,s=c(e[u]));return c.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,c.mostReadable(t,[&quot;#fff&quot;,&quot;#000&quot;],r))};var S=c.names={aliceblue:&quot;f0f8ff&quot;,antiquewhite:&quot;faebd7&quot;,aqua:&quot;0ff&quot;,aquamarine:&quot;7fffd4&quot;,azure:&quot;f0ffff&quot;,beige:&quot;f5f5dc&quot;,bisque:&quot;ffe4c4&quot;,black:&quot;000&quot;,blanchedalmond:&quot;ffebcd&quot;,blue:&quot;00f&quot;,blueviolet:&quot;8a2be2&quot;,brown:&quot;a52a2a&quot;,burlywood:&quot;deb887&quot;,burntsienna:&quot;ea7e5d&quot;,cadetblue:&quot;5f9ea0&quot;,chartreuse:&quot;7fff00&quot;,chocolate:&quot;d2691e&quot;,coral:&quot;ff7f50&quot;,cornflowerblue:&quot;6495ed&quot;,cornsilk:&quot;fff8dc&quot;,crimson:&quot;dc143c&quot;,cyan:&quot;0ff&quot;,darkblue:&quot;00008b&quot;,darkcyan:&quot;008b8b&quot;,darkgoldenrod:&quot;b8860b&quot;,darkgray:&quot;a9a9a9&quot;,darkgreen:&quot;006400&quot;,darkgrey:&quot;a9a9a9&quot;,darkkhaki:&quot;bdb76b&quot;,darkmagenta:&quot;8b008b&quot;,darkolivegreen:&quot;556b2f&quot;,darkorange:&quot;ff8c00&quot;,darkorchid:&quot;9932cc&quot;,darkred:&quot;8b0000&quot;,darksalmon:&quot;e9967a&quot;,darkseagreen:&quot;8fbc8f&quot;,darkslateblue:&quot;483d8b&quot;,darkslategray:&quot;2f4f4f&quot;,darkslategrey:&quot;2f4f4f&quot;,darkturquoise:&quot;00ced1&quot;,darkviolet:&quot;9400d3&quot;,deeppink:&quot;ff1493&quot;,deepskyblue:&quot;00bfff&quot;,dimgray:&quot;696969&quot;,dimgrey:&quot;696969&quot;,dodgerblue:&quot;1e90ff&quot;,firebrick:&quot;b22222&quot;,floralwhite:&quot;fffaf0&quot;,forestgreen:&quot;228b22&quot;,fuchsia:&quot;f0f&quot;,gainsboro:&quot;dcdcdc&quot;,ghostwhite:&quot;f8f8ff&quot;,gold:&quot;ffd700&quot;,goldenrod:&quot;daa520&quot;,gray:&quot;808080&quot;,green:&quot;008000&quot;,greenyellow:&quot;adff2f&quot;,grey:&quot;808080&quot;,honeydew:&quot;f0fff0&quot;,hotpink:&quot;ff69b4&quot;,indianred:&quot;cd5c5c&quot;,indigo:&quot;4b0082&quot;,ivory:&quot;fffff0&quot;,khaki:&quot;f0e68c&quot;,lavender:&quot;e6e6fa&quot;,lavenderblush:&quot;fff0f5&quot;,lawngreen:&quot;7cfc00&quot;,lemonchiffon:&quot;fffacd&quot;,lightblue:&quot;add8e6&quot;,lightcoral:&quot;f08080&quot;,lightcyan:&quot;e0ffff&quot;,lightgoldenrodyellow:&quot;fafad2&quot;,lightgray:&quot;d3d3d3&quot;,lightgreen:&quot;90ee90&quot;,lightgrey:&quot;d3d3d3&quot;,lightpink:&quot;ffb6c1&quot;,lightsalmon:&quot;ffa07a&quot;,lightseagreen:&quot;20b2aa&quot;,lightskyblue:&quot;87cefa&quot;,lightslategray:&quot;789&quot;,lightslategrey:&quot;789&quot;,lightsteelblue:&quot;b0c4de&quot;,lightyellow:&quot;ffffe0&quot;,lime:&quot;0f0&quot;,limegreen:&quot;32cd32&quot;,linen:&quot;faf0e6&quot;,magenta:&quot;f0f&quot;,maroon:&quot;800000&quot;,mediumaquamarine:&quot;66cdaa&quot;,mediumblue:&quot;0000cd&quot;,mediumorchid:&quot;ba55d3&quot;,mediumpurple:&quot;9370db&quot;,mediumseagreen:&quot;3cb371&quot;,mediumslateblue:&quot;7b68ee&quot;,mediumspringgreen:&quot;00fa9a&quot;,mediumturquoise:&quot;48d1cc&quot;,mediumvioletred:&quot;c71585&quot;,midnightblue:&quot;191970&quot;,mintcream:&quot;f5fffa&quot;,mistyrose:&quot;ffe4e1&quot;,moccasin:&quot;ffe4b5&quot;,navajowhite:&quot;ffdead&quot;,navy:&quot;000080&quot;,oldlace:&quot;fdf5e6&quot;,olive:&quot;808000&quot;,olivedrab:&quot;6b8e23&quot;,orange:&quot;ffa500&quot;,orangered:&quot;ff4500&quot;,orchid:&quot;da70d6&quot;,palegoldenrod:&quot;eee8aa&quot;,palegreen:&quot;98fb98&quot;,paleturquoise:&quot;afeeee&quot;,palevioletred:&quot;db7093&quot;,papayawhip:&quot;ffefd5&quot;,peachpuff:&quot;ffdab9&quot;,peru:&quot;cd853f&quot;,pink:&quot;ffc0cb&quot;,plum:&quot;dda0dd&quot;,powderblue:&quot;b0e0e6&quot;,purple:&quot;800080&quot;,rebeccapurple:&quot;663399&quot;,red:&quot;f00&quot;,rosybrown:&quot;bc8f8f&quot;,royalblue:&quot;4169e1&quot;,saddlebrown:&quot;8b4513&quot;,salmon:&quot;fa8072&quot;,sandybrown:&quot;f4a460&quot;,seagreen:&quot;2e8b57&quot;,seashell:&quot;fff5ee&quot;,sienna:&quot;a0522d&quot;,silver:&quot;c0c0c0&quot;,skyblue:&quot;87ceeb&quot;,slateblue:&quot;6a5acd&quot;,slategray:&quot;708090&quot;,slategrey:&quot;708090&quot;,snow:&quot;fffafa&quot;,springgreen:&quot;00ff7f&quot;,steelblue:&quot;4682b4&quot;,tan:&quot;d2b48c&quot;,teal:&quot;008080&quot;,thistle:&quot;d8bfd8&quot;,tomato:&quot;ff6347&quot;,turquoise:&quot;40e0d0&quot;,violet:&quot;ee82ee&quot;,wheat:&quot;f5deb3&quot;,white:&quot;fff&quot;,whitesmoke:&quot;f5f5f5&quot;,yellow:&quot;ff0&quot;,yellowgreen:&quot;9acd32&quot;},E=c.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&amp;&amp;(e[t[r]]=r);return e}(S);function C(t){return t=parseFloat(t),(isNaN(t)||t&lt;0||t&gt;1)&amp;&amp;(t=1),t}function L(e,r){(function(t){return&quot;string&quot;==typeof t&amp;&amp;-1!=t.indexOf(&quot;.&quot;)&amp;&amp;1===parseFloat(t)})(e)&amp;&amp;(e=&quot;100%&quot;);var n=function(t){return&quot;string&quot;==typeof t&amp;&amp;-1!=t.indexOf(&quot;%&quot;)}(e);return e=o(r,s(0,parseFloat(e))),n&amp;&amp;(e=parseInt(e*r,10)/100),t.abs(e-r)&lt;1e-6?1:e%r/parseFloat(r)}function I(t){return o(1,s(0,t))}function P(t){return parseInt(t,16)}function z(t){return 1==t.length?&quot;0&quot;+t:&quot;&quot;+t}function O(t){return t&lt;=1&amp;&amp;(t=100*t+&quot;%&quot;),t}function D(e){return t.round(255*parseFloat(e)).toString(16)}function R(t){return P(t)/255}var F,B,N,j=(B=&quot;[\\s|\\(]+(&quot;+(F=&quot;(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)&quot;)+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)\\s*\\)?&quot;,N=&quot;[\\s|\\(]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)\\s*\\)?&quot;,{CSS_UNIT:new RegExp(F),rgb:new RegExp(&quot;rgb&quot;+B),rgba:new RegExp(&quot;rgba&quot;+N),hsl:new RegExp(&quot;hsl&quot;+B),hsla:new RegExp(&quot;hsla&quot;+N),hsv:new RegExp(&quot;hsv&quot;+B),hsva:new RegExp(&quot;hsva&quot;+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(t){return!!j.CSS_UNIT.exec(t)}&quot;undefined&quot;!=typeof e&amp;&amp;e.exports?e.exports=c:window.tinycolor=c}(Math)},{}],577:[function(t,e,r){&quot;use strict&quot;;e.exports=i,e.exports.float32=e.exports.float=i,e.exports.fract32=e.exports.fract=function(t){if(t.length){for(var e=i(t),r=0,n=e.length;r&lt;n;r++)e[r]=t[r]-e[r];return e}return i(t-i(t))};var n=new Float32Array(1);function i(t){if(t.length){if(t instanceof Float32Array)return t;var e=new Float32Array(t);return e.set(t),e}return n[0]=t,n[0]}},{}],578:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-unit&quot;);e.exports=a;function i(t,e){var r=n(getComputedStyle(t).getPropertyValue(e));return r[0]*a(r[1],t)}function a(t,e){switch(e=e||document.body,t=(t||&quot;px&quot;).trim().toLowerCase(),e!==window&amp;&amp;e!==document||(e=document.body),t){case&quot;%&quot;:return e.clientHeight/100;case&quot;ch&quot;:case&quot;ex&quot;:return function(t,e){var r=document.createElement(&quot;div&quot;);r.style[&quot;font-size&quot;]=&quot;128&quot;+t,e.appendChild(r);var n=i(r,&quot;font-size&quot;)/128;return e.removeChild(r),n}(t,e);case&quot;em&quot;:return i(e,&quot;font-size&quot;);case&quot;rem&quot;:return i(document.body,&quot;font-size&quot;);case&quot;vw&quot;:return window.innerWidth/100;case&quot;vh&quot;:return window.innerHeight/100;case&quot;vmin&quot;:return Math.min(window.innerWidth,window.innerHeight)/100;case&quot;vmax&quot;:return Math.max(window.innerWidth,window.innerHeight)/100;case&quot;in&quot;:return 96;case&quot;cm&quot;:return 96/2.54;case&quot;mm&quot;:return 96/25.4;case&quot;pt&quot;:return 96/72;case&quot;pc&quot;:return 16}return 1}},{&quot;parse-unit&quot;:506}],579:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).topojson=t.topojson||{})}(this,(function(t){&quot;use strict&quot;;function e(t){return t}function r(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c);for(u[0]=(r+=t[0])*i+o,u[1]=(n+=t[1])*a+s;l&lt;c;)u[l]=t[l],++l;return u}}function n(t){var e,n=r(t.transform),i=1/0,a=i,o=-i,s=-i;function l(t){(t=n(t))[0]&lt;i&amp;&amp;(i=t[0]),t[0]&gt;o&amp;&amp;(o=t[0]),t[1]&lt;a&amp;&amp;(a=t[1]),t[1]&gt;s&amp;&amp;(s=t[1])}function c(t){switch(t.type){case&quot;GeometryCollection&quot;:t.geometries.forEach(c);break;case&quot;Point&quot;:l(t.coordinates);break;case&quot;MultiPoint&quot;:t.coordinates.forEach(l)}}for(e in t.arcs.forEach((function(t){for(var e,r=-1,l=t.length;++r&lt;l;)(e=n(t[r],r))[0]&lt;i&amp;&amp;(i=e[0]),e[0]&gt;o&amp;&amp;(o=e[0]),e[1]&lt;a&amp;&amp;(a=e[1]),e[1]&gt;s&amp;&amp;(s=e[1])})),t.objects)c(t.objects[e]);return[i,a,o,s]}function i(t,e){var r=e.id,n=e.bbox,i=null==e.properties?{}:e.properties,o=a(t,e);return null==r&amp;&amp;null==n?{type:&quot;Feature&quot;,properties:i,geometry:o}:null==n?{type:&quot;Feature&quot;,id:r,properties:i,geometry:o}:{type:&quot;Feature&quot;,id:r,bbox:n,properties:i,geometry:o}}function a(t,e){var n=r(t.transform),i=t.arcs;function a(t,e){e.length&amp;&amp;e.pop();for(var r=i[t&lt;0?~t:t],a=0,o=r.length;a&lt;o;++a)e.push(n(r[a],a));t&lt;0&amp;&amp;function(t,e){for(var r,n=t.length,i=n-e;i&lt;--n;)r=t[i],t[i++]=t[n],t[n]=r}(e,o)}function o(t){return n(t)}function s(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)a(t[r],e);return e.length&lt;2&amp;&amp;e.push(e[0]),e}function l(t){for(var e=s(t);e.length&lt;4;)e.push(e[0]);return e}function c(t){return t.map(l)}return function t(e){var r,n=e.type;switch(n){case&quot;GeometryCollection&quot;:return{type:n,geometries:e.geometries.map(t)};case&quot;Point&quot;:r=o(e.coordinates);break;case&quot;MultiPoint&quot;:r=e.coordinates.map(o);break;case&quot;LineString&quot;:r=s(e.arcs);break;case&quot;MultiLineString&quot;:r=e.arcs.map(s);break;case&quot;Polygon&quot;:r=c(e.arcs);break;case&quot;MultiPolygon&quot;:r=e.arcs.map(c);break;default:return null}return{type:n,coordinates:r}}(e)}function o(t,e){var r={},n={},i={},a=[],o=-1;function s(t,e){for(var n in t){var i=t[n];delete e[i.start],delete i.start,delete i.end,i.forEach((function(t){r[t&lt;0?~t:t]=1})),a.push(i)}}return e.forEach((function(r,n){var i,a=t.arcs[r&lt;0?~r:r];a.length&lt;3&amp;&amp;!a[1][0]&amp;&amp;!a[1][1]&amp;&amp;(i=e[++o],e[o]=r,e[n]=i)})),e.forEach((function(e){var r,a,o=function(e){var r,n=t.arcs[e&lt;0?~e:e],i=n[0];t.transform?(r=[0,0],n.forEach((function(t){r[0]+=t[0],r[1]+=t[1]}))):r=n[n.length-1];return e&lt;0?[r,i]:[i,r]}(e),s=o[0],l=o[1];if(r=i[s])if(delete i[r.end],r.push(e),r.end=l,a=n[l]){delete n[a.start];var c=a===r?r:r.concat(a);n[c.start=r.start]=i[c.end=a.end]=c}else n[r.start]=i[r.end]=r;else if(r=n[l])if(delete n[r.start],r.unshift(e),r.start=s,a=i[s]){delete i[a.end];var u=a===r?r:a.concat(r);n[u.start=a.start]=i[u.end=r.end]=u}else n[r.start]=i[r.end]=r;else n[(r=[e]).start=s]=i[r.end=l]=r})),s(i,n),s(n,i),e.forEach((function(t){r[t&lt;0?~t:t]||a.push([t])})),a}function s(t,e,r){var n,i,a;if(arguments.length&gt;1)n=l(t,e,r);else for(i=0,n=new Array(a=t.arcs.length);i&lt;a;++i)n[i]=i;return{type:&quot;MultiLineString&quot;,arcs:o(t,n)}}function l(t,e,r){var n,i=[],a=[];function o(t){var e=t&lt;0?~t:t;(a[e]||(a[e]=[])).push({i:t,g:n})}function s(t){t.forEach(o)}function l(t){t.forEach(s)}return function t(e){switch(n=e,e.type){case&quot;GeometryCollection&quot;:e.geometries.forEach(t);break;case&quot;LineString&quot;:s(e.arcs);break;case&quot;MultiLineString&quot;:case&quot;Polygon&quot;:l(e.arcs);break;case&quot;MultiPolygon&quot;:!function(t){t.forEach(l)}(e.arcs)}}(e),a.forEach(null==r?function(t){i.push(t[0].i)}:function(t){r(t[0].g,t[t.length-1].g)&amp;&amp;i.push(t[0].i)}),i}function c(t,e){var r={},n=[],i=[];function s(t){t.forEach((function(e){e.forEach((function(e){(r[e=e&lt;0?~e:e]||(r[e]=[])).push(t)}))})),n.push(t)}function l(e){return function(t){for(var e,r=-1,n=t.length,i=t[n-1],a=0;++r&lt;n;)e=i,i=t[r],a+=e[0]*i[1]-e[1]*i[0];return Math.abs(a)}(a(t,{type:&quot;Polygon&quot;,arcs:[e]}).coordinates[0])}return e.forEach((function t(e){switch(e.type){case&quot;GeometryCollection&quot;:e.geometries.forEach(t);break;case&quot;Polygon&quot;:s(e.arcs);break;case&quot;MultiPolygon&quot;:e.arcs.forEach(s)}})),n.forEach((function(t){if(!t._){var e=[],n=[t];for(t._=1,i.push(e);t=n.pop();)e.push(t),t.forEach((function(t){t.forEach((function(t){r[t&lt;0?~t:t].forEach((function(t){t._||(t._=1,n.push(t))}))}))}))}})),n.forEach((function(t){delete t._})),{type:&quot;MultiPolygon&quot;,arcs:i.map((function(e){var n,i=[];if(e.forEach((function(t){t.forEach((function(t){t.forEach((function(t){r[t&lt;0?~t:t].length&lt;2&amp;&amp;i.push(t)}))}))})),(n=(i=o(t,i)).length)&gt;1)for(var a,s,c=1,u=l(i[0]);c&lt;n;++c)(a=l(i[c]))&gt;u&amp;&amp;(s=i[0],i[0]=i[c],i[c]=s,u=a);return i})).filter((function(t){return t.length&gt;0}))}}function u(t,e){for(var r=0,n=t.length;r&lt;n;){var i=r+n&gt;&gt;&gt;1;t[i]&lt;e?r=i+1:n=i}return r}function f(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c),f=Math.round((t[0]-o)/i),h=Math.round((t[1]-s)/a);for(u[0]=f-r,r=f,u[1]=h-n,n=h;l&lt;c;)u[l]=t[l],++l;return u}}t.bbox=n,t.feature=function(t,e){return&quot;string&quot;==typeof e&amp;&amp;(e=t.objects[e]),&quot;GeometryCollection&quot;===e.type?{type:&quot;FeatureCollection&quot;,features:e.geometries.map((function(e){return i(t,e)}))}:i(t,e)},t.merge=function(t){return a(t,c.apply(this,arguments))},t.mergeArcs=c,t.mesh=function(t){return a(t,s.apply(this,arguments))},t.meshArcs=s,t.neighbors=function(t){var e={},r=t.map((function(){return[]}));function n(t,r){t.forEach((function(t){t&lt;0&amp;&amp;(t=~t);var n=e[t];n?n.push(r):e[t]=[r]}))}function i(t,e){t.forEach((function(t){n(t,e)}))}var a={LineString:n,MultiLineString:i,Polygon:i,MultiPolygon:function(t,e){t.forEach((function(t){i(t,e)}))}};for(var o in t.forEach((function t(e,r){&quot;GeometryCollection&quot;===e.type?e.geometries.forEach((function(e){t(e,r)})):e.type in a&amp;&amp;a[e.type](e.arcs,r)})),e)for(var s=e[o],l=s.length,c=0;c&lt;l;++c)for(var f=c+1;f&lt;l;++f){var h,p=s[c],d=s[f];(h=r[p])[o=u(h,d)]!==d&amp;&amp;h.splice(o,0,d),(h=r[d])[o=u(h,p)]!==p&amp;&amp;h.splice(o,0,p)}return r},t.quantize=function(t,e){if(t.transform)throw new Error(&quot;already quantized&quot;);if(e&amp;&amp;e.scale)l=t.bbox;else{if(!((r=Math.floor(e))&gt;=2))throw new Error(&quot;n must be \u22652&quot;);var r,i=(l=t.bbox||n(t))[0],a=l[1],o=l[2],s=l[3];e={scale:[o-i?(o-i)/(r-1):1,s-a?(s-a)/(r-1):1],translate:[i,a]}}var l,c,u=f(e),h=t.objects,p={};function d(t){return u(t)}function g(t){var e;switch(t.type){case&quot;GeometryCollection&quot;:e={type:&quot;GeometryCollection&quot;,geometries:t.geometries.map(g)};break;case&quot;Point&quot;:e={type:&quot;Point&quot;,coordinates:d(t.coordinates)};break;case&quot;MultiPoint&quot;:e={type:&quot;MultiPoint&quot;,coordinates:t.coordinates.map(d)};break;default:return t}return null!=t.id&amp;&amp;(e.id=t.id),null!=t.bbox&amp;&amp;(e.bbox=t.bbox),null!=t.properties&amp;&amp;(e.properties=t.properties),e}for(c in h)p[c]=g(h[c]);return{type:&quot;Topology&quot;,bbox:l,transform:e,objects:p,arcs:t.arcs.map((function(t){var e,r=0,n=1,i=t.length,a=new Array(i);for(a[0]=u(t[0],0);++r&lt;i;)((e=u(t[r],r))[0]||e[1])&amp;&amp;(a[n++]=e);return 1===n&amp;&amp;(a[n++]=[0,0]),a.length=n,a}))}},t.transform=r,t.untransform=f,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],580:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){if(t&lt;0)return[];if(0===t)return[[0]];for(var e=0|Math.round(a(t+1)),r=[],o=0;o&lt;e;++o){for(var s=n.unrank(t,o),l=[0],c=0,u=0;u&lt;s.length;++u)c+=1&lt;&lt;s[u],l.push(c);i(s)&lt;1&amp;&amp;(l[0]=c,l[t]=0),r.push(l)}return r};var n=t(&quot;permutation-rank&quot;),i=t(&quot;permutation-parity&quot;),a=t(&quot;gamma&quot;)},{gamma:248,&quot;permutation-parity&quot;:509,&quot;permutation-rank&quot;:510}],581:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.up||[0,1,0],n=t.right||f(r),i=t.radius||1,a=t.theta||0,u=t.phi||0;if(e=[].slice.call(e,0,3),r=[].slice.call(r,0,3),s(r,r),n=[].slice.call(n,0,3),s(n,n),&quot;eye&quot;in t){var p=t.eye,d=[p[0]-e[0],p[1]-e[1],p[2]-e[2]];o(n,d,r),c(n[0],n[1],n[2])&lt;1e-6?n=f(r):s(n,n),i=c(d[0],d[1],d[2]);var g=l(r,d)/i,m=l(n,d)/i;u=Math.acos(g),a=Math.acos(m)}return i=Math.log(i),new h(t.zoomMin,t.zoomMax,e,r,n,i,a,u)};var n=t(&quot;filtered-vector&quot;),i=t(&quot;gl-mat4/invert&quot;),a=t(&quot;gl-mat4/rotate&quot;),o=t(&quot;gl-vec3/cross&quot;),s=t(&quot;gl-vec3/normalize&quot;),l=t(&quot;gl-vec3/dot&quot;);function c(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function u(t){return Math.min(1,Math.max(-1,t))}function f(t){var e=Math.abs(t[0]),r=Math.abs(t[1]),n=Math.abs(t[2]),i=[0,0,0];e&gt;Math.max(r,n)?i[2]=1:r&gt;Math.max(e,n)?i[0]=1:i[1]=1;for(var a=0,o=0,l=0;l&lt;3;++l)a+=t[l]*t[l],o+=i[l]*t[l];for(l=0;l&lt;3;++l)i[l]-=o/a*t[l];return s(i,i),i}function h(t,e,r,i,a,o,s,l){this.center=n(r),this.up=n(i),this.right=n(a),this.radius=n([o]),this.angle=n([s,l]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(t,e),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var c=0;c&lt;16;++c)this.computedMatrix[c]=.5;this.recalcMatrix(0)}var p=h.prototype;p.setDistanceLimits=function(t,e){t=t&gt;0?Math.log(t):-1/0,e=e&gt;0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},p.getDistanceLimits=function(t){var e=this.radius.bounds[0];return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},p.recalcMatrix=function(t){this.center.curve(t),this.up.curve(t),this.right.curve(t),this.radius.curve(t),this.angle.curve(t);for(var e=this.computedUp,r=this.computedRight,n=0,i=0,a=0;a&lt;3;++a)i+=e[a]*r[a],n+=e[a]*e[a];var l=Math.sqrt(n),u=0;for(a=0;a&lt;3;++a)r[a]-=e[a]*i/n,u+=r[a]*r[a],e[a]/=l;var f=Math.sqrt(u);for(a=0;a&lt;3;++a)r[a]/=f;var h=this.computedToward;o(h,e,r),s(h,h);var p=Math.exp(this.computedRadius[0]),d=this.computedAngle[0],g=this.computedAngle[1],m=Math.cos(d),v=Math.sin(d),y=Math.cos(g),x=Math.sin(g),b=this.computedCenter,_=m*y,w=v*y,T=x,k=-m*x,M=-v*x,A=y,S=this.computedEye,E=this.computedMatrix;for(a=0;a&lt;3;++a){var C=_*r[a]+w*h[a]+T*e[a];E[4*a+1]=k*r[a]+M*h[a]+A*e[a],E[4*a+2]=C,E[4*a+3]=0}var L=E[1],I=E[5],P=E[9],z=E[2],O=E[6],D=E[10],R=I*D-P*O,F=P*z-L*D,B=L*O-I*z,N=c(R,F,B);R/=N,F/=N,B/=N,E[0]=R,E[4]=F,E[8]=B;for(a=0;a&lt;3;++a)S[a]=b[a]+E[2+4*a]*p;for(a=0;a&lt;3;++a){u=0;for(var j=0;j&lt;3;++j)u+=E[a+4*j]*S[j];E[12+a]=-u}E[15]=1},p.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n&lt;16;++n)e[n]=r[n];return e}return r};var d=[0,0,0];p.rotate=function(t,e,r,n){if(this.angle.move(t,e,r),n){this.recalcMatrix(t);var i=this.computedMatrix;d[0]=i[2],d[1]=i[6],d[2]=i[10];for(var o=this.computedUp,s=this.computedRight,l=this.computedToward,c=0;c&lt;3;++c)i[4*c]=o[c],i[4*c+1]=s[c],i[4*c+2]=l[c];a(i,i,n,d);for(c=0;c&lt;3;++c)o[c]=i[4*c],s[c]=i[4*c+1];this.up.set(t,o[0],o[1],o[2]),this.right.set(t,s[0],s[1],s[2])}},p.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=(Math.exp(this.computedRadius[0]),i[1]),o=i[5],s=i[9],l=c(a,o,s);a/=l,o/=l,s/=l;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=c(u-=a*p,f-=o*p,h-=s*p),g=(u/=d)*e+a*r,m=(f/=d)*e+o*r,v=(h/=d)*e+s*r;this.center.move(t,g,m,v);var y=Math.exp(this.computedRadius[0]);y=Math.max(1e-4,y+n),this.radius.set(t,Math.log(y))},p.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},p.setMatrix=function(t,e,r,n){var a=1;&quot;number&quot;==typeof r&amp;&amp;(a=0|r),(a&lt;0||a&gt;3)&amp;&amp;(a=1);var o=(a+2)%3;e||(this.recalcMatrix(t),e=this.computedMatrix);var s=e[a],l=e[a+4],f=e[a+8];if(n){var h=Math.abs(s),p=Math.abs(l),d=Math.abs(f),g=Math.max(h,p,d);h===g?(s=s&lt;0?-1:1,l=f=0):d===g?(f=f&lt;0?-1:1,s=l=0):(l=l&lt;0?-1:1,s=f=0)}else{var m=c(s,l,f);s/=m,l/=m,f/=m}var v,y,x=e[o],b=e[o+4],_=e[o+8],w=x*s+b*l+_*f,T=c(x-=s*w,b-=l*w,_-=f*w),k=l*(_/=T)-f*(b/=T),M=f*(x/=T)-s*_,A=s*b-l*x,S=c(k,M,A);if(k/=S,M/=S,A/=S,this.center.jump(t,H,G,Y),this.radius.idle(t),this.up.jump(t,s,l,f),this.right.jump(t,x,b,_),2===a){var E=e[1],C=e[5],L=e[9],I=E*x+C*b+L*_,P=E*k+C*M+L*A;v=R&lt;0?-Math.PI/2:Math.PI/2,y=Math.atan2(P,I)}else{var z=e[2],O=e[6],D=e[10],R=z*s+O*l+D*f,F=z*x+O*b+D*_,B=z*k+O*M+D*A;v=Math.asin(u(R)),y=Math.atan2(B,F)}this.angle.jump(t,y,v),this.recalcMatrix(t);var N=e[2],j=e[6],U=e[10],V=this.computedMatrix;i(V,e);var q=V[15],H=V[12]/q,G=V[13]/q,Y=V[14]/q,W=Math.exp(this.computedRadius[0]);this.center.jump(t,H-N*W,G-j*W,Y-U*W)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(t){this.center.idle(t),this.up.idle(t),this.right.idle(t),this.radius.idle(t),this.angle.idle(t)},p.flush=function(t){this.center.flush(t),this.up.flush(t),this.right.flush(t),this.radius.flush(t),this.angle.flush(t)},p.setDistance=function(t,e){e&gt;0&amp;&amp;this.radius.set(t,Math.log(e))},p.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||this.computedCenter;var i=(n=n||this.computedUp)[0],a=n[1],o=n[2],s=c(i,a,o);if(!(s&lt;1e-6)){i/=s,a/=s,o/=s;var l=e[0]-r[0],f=e[1]-r[1],h=e[2]-r[2],p=c(l,f,h);if(!(p&lt;1e-6)){l/=p,f/=p,h/=p;var d=this.computedRight,g=d[0],m=d[1],v=d[2],y=i*g+a*m+o*v,x=c(g-=y*i,m-=y*a,v-=y*o);if(!(x&lt;.01&amp;&amp;(x=c(g=a*h-o*f,m=o*l-i*h,v=i*f-a*l))&lt;1e-6)){g/=x,m/=x,v/=x,this.up.set(t,i,a,o),this.right.set(t,g,m,v),this.center.set(t,r[0],r[1],r[2]),this.radius.set(t,Math.log(p));var b=a*v-o*m,_=o*g-i*v,w=i*m-a*g,T=c(b,_,w),k=i*l+a*f+o*h,M=g*l+m*f+v*h,A=(b/=T)*l+(_/=T)*f+(w/=T)*h,S=Math.asin(u(k)),E=Math.atan2(A,M),C=this.angle._state,L=C[C.length-1],I=C[C.length-2];L%=2*Math.PI;var P=Math.abs(L+2*Math.PI-E),z=Math.abs(L-E),O=Math.abs(L-2*Math.PI-E);P&lt;z&amp;&amp;(L+=2*Math.PI),O&lt;z&amp;&amp;(L-=2*Math.PI),this.angle.jump(this.angle.lastT(),L,I),this.angle.set(t,E,S)}}}}},{&quot;filtered-vector&quot;:242,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/rotate&quot;:299,&quot;gl-vec3/cross&quot;:365,&quot;gl-vec3/dot&quot;:370,&quot;gl-vec3/normalize&quot;:387}],582:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var i=t*e,a=n*t,o=a-(a-t),s=t-o,l=n*e,c=l-(l-e),u=e-c,f=s*u-(i-o*c-s*c-o*u);if(r)return r[0]=f,r[1]=i,r;return[f,i]};var n=+(Math.pow(2,27)+1)},{}],583:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n=t+e,i=n-t,a=e-i,o=t-(n-i);if(r)return r[0]=o+a,r[1]=n,r;return[o+a,n]}},{}],584:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../prototype/is&quot;);e.exports=function(t){if(&quot;function&quot;!=typeof t)return!1;if(!hasOwnProperty.call(t,&quot;length&quot;))return!1;try{if(&quot;number&quot;!=typeof t.length)return!1;if(&quot;function&quot;!=typeof t.call)return!1;if(&quot;function&quot;!=typeof t.apply)return!1}catch(t){return!1}return!n(t)}},{&quot;../prototype/is&quot;:591}],585:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i=t(&quot;../object/is&quot;),a=t(&quot;../string/coerce&quot;),o=t(&quot;./to-short-string&quot;),s=function(t,e){return t.replace(&quot;%v&quot;,o(e))};e.exports=function(t,e,r){if(!i(r))throw new TypeError(s(e,t));if(!n(t)){if(&quot;default&quot;in r)return r.default;if(r.isOptional)return null}var o=a(r.errorMessage);throw n(o)||(o=e),new TypeError(s(o,t))}},{&quot;../object/is&quot;:588,&quot;../string/coerce&quot;:592,&quot;../value/is&quot;:594,&quot;./to-short-string&quot;:587}],586:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){try{return t.toString()}catch(e){try{return String(t)}catch(t){return null}}}},{}],587:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./safe-to-string&quot;),i=/[\n\r\u2028\u2029]/g;e.exports=function(t){var e=n(t);return null===e?&quot;&lt;Non-coercible to string value&gt;&quot;:(e.length&gt;100&amp;&amp;(e=e.slice(0,99)+&quot;\u2026&quot;),e=e.replace(i,(function(t){switch(t){case&quot;\n&quot;:return&quot;\\n&quot;;case&quot;\r&quot;:return&quot;\\r&quot;;case&quot;\u2028&quot;:return&quot;\\u2028&quot;;case&quot;\u2029&quot;:return&quot;\\u2029&quot;;default:throw new Error(&quot;Unexpected character&quot;)}})))}},{&quot;./safe-to-string&quot;:586}],588:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i={object:!0,function:!0,undefined:!0};e.exports=function(t){return!!n(t)&amp;&amp;hasOwnProperty.call(i,typeof t)}},{&quot;../value/is&quot;:594}],589:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/resolve-exception&quot;),i=t(&quot;./is&quot;);e.exports=function(t){return i(t)?t:n(t,&quot;%v is not a plain function&quot;,arguments[1])}},{&quot;../lib/resolve-exception&quot;:585,&quot;./is&quot;:590}],590:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../function/is&quot;),i=/^\s*class[\s{/}]/,a=Function.prototype.toString;e.exports=function(t){return!!n(t)&amp;&amp;!i.test(a.call(t))}},{&quot;../function/is&quot;:584}],591:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../object/is&quot;);e.exports=function(t){if(!n(t))return!1;try{return!!t.constructor&amp;&amp;t.constructor.prototype===t}catch(t){return!1}}},{&quot;../object/is&quot;:588}],592:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i=t(&quot;../object/is&quot;),a=Object.prototype.toString;e.exports=function(t){if(!n(t))return null;if(i(t)){var e=t.toString;if(&quot;function&quot;!=typeof e)return null;if(e===a)return null}try{return&quot;&quot;+t}catch(t){return null}}},{&quot;../object/is&quot;:588,&quot;../value/is&quot;:594}],593:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/resolve-exception&quot;),i=t(&quot;./is&quot;);e.exports=function(t){return i(t)?t:n(t,&quot;Cannot use %v&quot;,arguments[1])}},{&quot;../lib/resolve-exception&quot;:585,&quot;./is&quot;:594}],594:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return null!=t}},{}],595:[function(t,e,r){(function(e){(function(){&quot;use strict&quot;;var n=t(&quot;bit-twiddle&quot;),i=t(&quot;dup&quot;),a=t(&quot;buffer&quot;).Buffer;e.__TYPEDARRAY_POOL||(e.__TYPEDARRAY_POOL={UINT8:i([32,0]),UINT16:i([32,0]),UINT32:i([32,0]),BIGUINT64:i([32,0]),INT8:i([32,0]),INT16:i([32,0]),INT32:i([32,0]),BIGINT64:i([32,0]),FLOAT:i([32,0]),DOUBLE:i([32,0]),DATA:i([32,0]),UINT8C:i([32,0]),BUFFER:i([32,0])});var o=&quot;undefined&quot;!=typeof Uint8ClampedArray,s=&quot;undefined&quot;!=typeof BigUint64Array,l=&quot;undefined&quot;!=typeof BigInt64Array,c=e.__TYPEDARRAY_POOL;c.UINT8C||(c.UINT8C=i([32,0])),c.BIGUINT64||(c.BIGUINT64=i([32,0])),c.BIGINT64||(c.BIGINT64=i([32,0])),c.BUFFER||(c.BUFFER=i([32,0]));var u=c.DATA,f=c.BUFFER;function h(t){if(t){var e=t.length||t.byteLength,r=n.log2(e);u[r].push(t)}}function p(t){t=n.nextPow2(t);var e=n.log2(t),r=u[e];return r.length&gt;0?r.pop():new ArrayBuffer(t)}function d(t){return new Uint8Array(p(t),0,t)}function g(t){return new Uint16Array(p(2*t),0,t)}function m(t){return new Uint32Array(p(4*t),0,t)}function v(t){return new Int8Array(p(t),0,t)}function y(t){return new Int16Array(p(2*t),0,t)}function x(t){return new Int32Array(p(4*t),0,t)}function b(t){return new Float32Array(p(4*t),0,t)}function _(t){return new Float64Array(p(8*t),0,t)}function w(t){return o?new Uint8ClampedArray(p(t),0,t):d(t)}function T(t){return s?new BigUint64Array(p(8*t),0,t):null}function k(t){return l?new BigInt64Array(p(8*t),0,t):null}function M(t){return new DataView(p(t),0,t)}function A(t){t=n.nextPow2(t);var e=n.log2(t),r=f[e];return r.length&gt;0?r.pop():new a(t)}r.free=function(t){if(a.isBuffer(t))f[n.log2(t.length)].push(t);else{if(&quot;[object ArrayBuffer]&quot;!==Object.prototype.toString.call(t)&amp;&amp;(t=t.buffer),!t)return;var e=t.length||t.byteLength,r=0|n.log2(e);u[r].push(t)}},r.freeUint8=r.freeUint16=r.freeUint32=r.freeBigUint64=r.freeInt8=r.freeInt16=r.freeInt32=r.freeBigInt64=r.freeFloat32=r.freeFloat=r.freeFloat64=r.freeDouble=r.freeUint8Clamped=r.freeDataView=function(t){h(t.buffer)},r.freeArrayBuffer=h,r.freeBuffer=function(t){f[n.log2(t.length)].push(t)},r.malloc=function(t,e){if(void 0===e||&quot;arraybuffer&quot;===e)return p(t);switch(e){case&quot;uint8&quot;:return d(t);case&quot;uint16&quot;:return g(t);case&quot;uint32&quot;:return m(t);case&quot;int8&quot;:return v(t);case&quot;int16&quot;:return y(t);case&quot;int32&quot;:return x(t);case&quot;float&quot;:case&quot;float32&quot;:return b(t);case&quot;double&quot;:case&quot;float64&quot;:return _(t);case&quot;uint8_clamped&quot;:return w(t);case&quot;bigint64&quot;:return k(t);case&quot;biguint64&quot;:return T(t);case&quot;buffer&quot;:return A(t);case&quot;data&quot;:case&quot;dataview&quot;:return M(t);default:return null}return null},r.mallocArrayBuffer=p,r.mallocUint8=d,r.mallocUint16=g,r.mallocUint32=m,r.mallocInt8=v,r.mallocInt16=y,r.mallocInt32=x,r.mallocFloat32=r.mallocFloat=b,r.mallocFloat64=r.mallocDouble=_,r.mallocUint8Clamped=w,r.mallocBigUint64=T,r.mallocBigInt64=k,r.mallocDataView=M,r.mallocBuffer=A,r.clearCache=function(){for(var t=0;t&lt;32;++t)c.UINT8[t].length=0,c.UINT16[t].length=0,c.UINT32[t].length=0,c.INT8[t].length=0,c.INT16[t].length=0,c.INT32[t].length=0,c.FLOAT[t].length=0,c.DOUBLE[t].length=0,c.BIGUINT64[t].length=0,c.BIGINT64[t].length=0,c.UINT8C[t].length=0,u[t].length=0,f[t].length=0}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;bit-twiddle&quot;:97,buffer:111,dup:176}],596:[function(t,e,r){&quot;use strict&quot;;function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e&lt;t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n;var i=n.prototype;Object.defineProperty(i,&quot;length&quot;,{get:function(){return this.roots.length}}),i.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},i.find=function(t){for(var e=t,r=this.roots;r[t]!==t;)t=r[t];for(;r[e]!==t;){var n=r[e];r[e]=t,e=n}return t},i.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o&lt;s?a[r]=n:s&lt;o?a[n]=r:(a[n]=r,++i[r])}}},{}],597:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return 0===t.length?t:e?(r||t.sort(e),function(t,e){for(var r=1,n=t.length,i=t[0],a=t[0],o=1;o&lt;n;++o)if(a=i,e(i=t[o],a)){if(o===r){r++;continue}t[r++]=i}return t.length=r,t}(t,e)):(r||t.sort(),function(t){for(var e=1,r=t.length,n=t[0],i=t[0],a=1;a&lt;r;++a,i=n)if(i=n,(n=t[a])!==i){if(a===e){e++;continue}t[e++]=n}return t.length=e,t}(t))}},{}],598:[function(t,e,r){var n=/[\'\&quot;]/;e.exports=function(t){return t?(n.test(t.charAt(0))&amp;&amp;(t=t.substr(1)),n.test(t.charAt(t.length-1))&amp;&amp;(t=t.substr(0,t.length-1)),t):&quot;&quot;}},{}],599:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){Array.isArray(r)||(r=[].slice.call(arguments,2));for(var n=0,i=r.length;n&lt;i;n++){var a=r[n];for(var o in a)if((void 0===e[o]||Array.isArray(e[o])||t[o]!==e[o])&amp;&amp;o in e){var s;if(!0===a[o])s=e[o];else{if(!1===a[o])continue;if(&quot;function&quot;==typeof a[o]&amp;&amp;void 0===(s=a[o](e[o],t,e)))continue}t[o]=s}}return t}},{}],600:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){&quot;object&quot;==typeof e&amp;&amp;null!==e||(e={});return n(t,e.canvas||i,e.context||a,e)};var n=t(&quot;./lib/vtext&quot;),i=null,a=null;&quot;undefined&quot;!=typeof document&amp;&amp;((i=document.createElement(&quot;canvas&quot;)).width=8192,i.height=1024,a=i.getContext(&quot;2d&quot;))},{&quot;./lib/vtext&quot;:601}],601:[function(t,e,r){e.exports=function(t,e,r,n){var a=64,o=1.25,s={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};n&amp;&amp;(n.size&amp;&amp;n.size&gt;0&amp;&amp;(a=n.size),n.lineSpacing&amp;&amp;n.lineSpacing&gt;0&amp;&amp;(o=n.lineSpacing),n.styletags&amp;&amp;n.styletags.breaklines&amp;&amp;(s.breaklines=!!n.styletags.breaklines),n.styletags&amp;&amp;n.styletags.bolds&amp;&amp;(s.bolds=!!n.styletags.bolds),n.styletags&amp;&amp;n.styletags.italics&amp;&amp;(s.italics=!!n.styletags.italics),n.styletags&amp;&amp;n.styletags.subscripts&amp;&amp;(s.subscripts=!!n.styletags.subscripts),n.styletags&amp;&amp;n.styletags.superscripts&amp;&amp;(s.superscripts=!!n.styletags.superscripts));return r.font=[n.fontStyle,n.fontVariant,n.fontWeight,a+&quot;px&quot;,n.font].filter((function(t){return t})).join(&quot; &quot;),r.textAlign=&quot;start&quot;,r.textBaseline=&quot;alphabetic&quot;,r.direction=&quot;ltr&quot;,h(function(t,e,r,n,a,o){r=r.replace(/\n/g,&quot;&quot;),r=!0===o.breaklines?r.replace(/\&lt;br\&gt;/g,&quot;\n&quot;):r.replace(/\&lt;br\&gt;/g,&quot; &quot;);var s=&quot;&quot;,l=[];for(p=0;p&lt;r.length;++p)l[p]=s;!0===o.bolds&amp;&amp;(l=c(&quot;b&quot;,&quot;b|&quot;,r,l));!0===o.italics&amp;&amp;(l=c(&quot;i&quot;,&quot;i|&quot;,r,l));!0===o.superscripts&amp;&amp;(l=c(&quot;sup&quot;,&quot;+1&quot;,r,l));!0===o.subscripts&amp;&amp;(l=c(&quot;sub&quot;,&quot;-1&quot;,r,l));var u=[],f=&quot;&quot;;for(p=0;p&lt;r.length;++p)null!==l[p]&amp;&amp;(f+=r[p],u.push(l[p]));var h,p,d,g,m,v=f.split(&quot;\n&quot;),y=v.length,x=Math.round(a*n),b=n,_=2*n,w=0,T=y*x+_;t.height&lt;T&amp;&amp;(t.height=T);e.fillStyle=&quot;#000&quot;,e.fillRect(0,0,t.width,t.height),e.fillStyle=&quot;#fff&quot;;var k=0,M=&quot;&quot;;function A(){if(&quot;&quot;!==M){var t=e.measureText(M).width;e.fillText(M,b+d,_+g),d+=t}}function S(){return Math.round(m)+&quot;px &quot;}function E(t,r){var n=&quot;&quot;+e.font;if(!0===o.subscripts){var i=t.indexOf(&quot;-&quot;),a=r.indexOf(&quot;-&quot;),s=i&gt;-1?parseInt(t[1+i]):0,l=a&gt;-1?parseInt(r[1+a]):0;s!==l&amp;&amp;(n=n.replace(S(),&quot;?px &quot;),m*=Math.pow(.75,l-s),n=n.replace(&quot;?px &quot;,S())),g+=.25*x*(l-s)}if(!0===o.superscripts){var c=t.indexOf(&quot;+&quot;),u=r.indexOf(&quot;+&quot;),f=c&gt;-1?parseInt(t[1+c]):0,h=u&gt;-1?parseInt(r[1+u]):0;f!==h&amp;&amp;(n=n.replace(S(),&quot;?px &quot;),m*=Math.pow(.75,h-f),n=n.replace(&quot;?px &quot;,S())),g-=.25*x*(h-f)}if(!0===o.bolds){var p=t.indexOf(&quot;b|&quot;)&gt;-1,d=r.indexOf(&quot;b|&quot;)&gt;-1;!p&amp;&amp;d&amp;&amp;(n=v?n.replace(&quot;italic &quot;,&quot;italic bold &quot;):&quot;bold &quot;+n),p&amp;&amp;!d&amp;&amp;(n=n.replace(&quot;bold &quot;,&quot;&quot;))}if(!0===o.italics){var v=t.indexOf(&quot;i|&quot;)&gt;-1,y=r.indexOf(&quot;i|&quot;)&gt;-1;!v&amp;&amp;y&amp;&amp;(n=&quot;italic &quot;+n),v&amp;&amp;!y&amp;&amp;(n=n.replace(&quot;italic &quot;,&quot;&quot;))}e.font=n}for(h=0;h&lt;y;++h){var C=v[h]+&quot;\n&quot;;for(d=0,g=h*x,m=n,M=&quot;&quot;,p=0;p&lt;C.length;++p){var L=p+k&lt;u.length?u[p+k]:u[u.length-1];s===L?M+=C[p]:(A(),M=C[p],void 0!==L&amp;&amp;(E(s,L),s=L))}A(),k+=C.length;var I=0|Math.round(d+2*b);w&lt;I&amp;&amp;(w=I)}var P=w,z=_+x*y;return i(e.getImageData(0,0,P,z).data,[z,P,4]).pick(-1,-1,0).transpose(1,0)}(e,r,t,a,o,s),n,a)},e.exports.processPixels=h;var n=t(&quot;surface-nets&quot;),i=t(&quot;ndarray&quot;),a=t(&quot;simplify-planar-graph&quot;),o=t(&quot;clean-pslg&quot;),s=t(&quot;cdt2d&quot;),l=t(&quot;planar-graph-to-polyline&quot;);function c(t,e,r,n){for(var i=&quot;&lt;&quot;+t+&quot;&gt;&quot;,a=&quot;&lt;/&quot;+t+&quot;&gt;&quot;,o=i.length,s=a.length,l=&quot;+&quot;===e[0]||&quot;-&quot;===e[0],c=0,u=-s;c&gt;-1&amp;&amp;-1!==(c=r.indexOf(i,c))&amp;&amp;-1!==(u=r.indexOf(a,c+o))&amp;&amp;!(u&lt;=c);){for(var f=c;f&lt;u+s;++f)if(f&lt;c+o||f&gt;=u)n[f]=null,r=r.substr(0,f)+&quot; &quot;+r.substr(f+1);else if(null!==n[f]){var h=n[f].indexOf(e[0]);-1===h?n[f]+=e:l&amp;&amp;(n[f]=n[f].substr(0,h+1)+(1+parseInt(n[f][h+1]))+n[f].substr(h+2))}var p=c+o,d=r.substr(p,u-p).indexOf(i);c=-1!==d?d:u+s}return n}function u(t,e){var r=n(t,128);return e?a(r.cells,r.positions,.25):{edges:r.cells,positions:r.positions}}function f(t,e,r,n){var i=u(t,n),a=function(t,e,r){for(var n=e.textAlign||&quot;start&quot;,i=e.textBaseline||&quot;alphabetic&quot;,a=[1&lt;&lt;30,1&lt;&lt;30],o=[0,0],s=t.length,l=0;l&lt;s;++l)for(var c=t[l],u=0;u&lt;2;++u)a[u]=0|Math.min(a[u],c[u]),o[u]=0|Math.max(o[u],c[u]);var f=0;switch(n){case&quot;center&quot;:f=-.5*(a[0]+o[0]);break;case&quot;right&quot;:case&quot;end&quot;:f=-o[0];break;case&quot;left&quot;:case&quot;start&quot;:f=-a[0];break;default:throw new Error(&quot;vectorize-text: Unrecognized textAlign: '&quot;+n+&quot;'&quot;)}var h=0;switch(i){case&quot;hanging&quot;:case&quot;top&quot;:h=-a[1];break;case&quot;middle&quot;:h=-.5*(a[1]+o[1]);break;case&quot;alphabetic&quot;:case&quot;ideographic&quot;:h=-3*r;break;case&quot;bottom&quot;:h=-o[1];break;default:throw new Error(&quot;vectorize-text: Unrecoginized textBaseline: '&quot;+i+&quot;'&quot;)}var p=1/r;return&quot;lineHeight&quot;in e?p*=+e.lineHeight:&quot;width&quot;in e?p=e.width/(o[0]-a[0]):&quot;height&quot;in e&amp;&amp;(p=e.height/(o[1]-a[1])),t.map((function(t){return[p*(t[0]+f),p*(t[1]+h)]}))}(i.positions,e,r),c=i.edges,f=&quot;ccw&quot;===e.orientation;if(o(a,c),e.polygons||e.polygon||e.polyline){for(var h=l(c,a),p=new Array(h.length),d=0;d&lt;h.length;++d){for(var g=h[d],m=new Array(g.length),v=0;v&lt;g.length;++v){for(var y=g[v],x=new Array(y.length),b=0;b&lt;y.length;++b)x[b]=a[y[b]].slice();f&amp;&amp;x.reverse(),m[v]=x}p[d]=m}return p}return e.triangles||e.triangulate||e.triangle?{cells:s(a,c,{delaunay:!1,exterior:!1,interior:!0}),positions:a}:{edges:c,positions:a}}function h(t,e,r){try{return f(t,e,r,!0)}catch(t){}try{return f(t,e,r,!1)}catch(t){}return e.polygons||e.polyline||e.polygon?[]:e.triangles||e.triangulate||e.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}},{cdt2d:112,&quot;clean-pslg&quot;:121,ndarray:495,&quot;planar-graph-to-polyline&quot;:514,&quot;simplify-planar-graph&quot;:562,&quot;surface-nets&quot;:570}],602:[function(t,e,r){!function(){&quot;use strict&quot;;if(&quot;undefined&quot;==typeof ses||!ses.ok||ses.ok()){&quot;undefined&quot;!=typeof ses&amp;&amp;(ses.weakMapPermitHostObjects=g);var t=!1;if(&quot;function&quot;==typeof WeakMap){var r=WeakMap;if(&quot;undefined&quot;!=typeof navigator&amp;&amp;/Firefox/.test(navigator.userAgent));else{var n=new r,i=Object.freeze({});if(n.set(i,1),1===n.get(i))return void(e.exports=WeakMap);t=!0}}Object.prototype.hasOwnProperty;var a=Object.getOwnPropertyNames,o=Object.defineProperty,s=Object.isExtensible,l=&quot;weakmap:ident:&quot;+Math.random()+&quot;___&quot;;if(&quot;undefined&quot;!=typeof crypto&amp;&amp;&quot;function&quot;==typeof crypto.getRandomValues&amp;&amp;&quot;function&quot;==typeof ArrayBuffer&amp;&amp;&quot;function&quot;==typeof Uint8Array){var c=new ArrayBuffer(25),u=new Uint8Array(c);crypto.getRandomValues(u),l=&quot;weakmap:rand:&quot;+Array.prototype.map.call(u,(function(t){return(t%36).toString(36)})).join(&quot;&quot;)+&quot;___&quot;}if(o(Object,&quot;getOwnPropertyNames&quot;,{value:function(t){return a(t).filter(m)}}),&quot;getPropertyNames&quot;in Object){var f=Object.getPropertyNames;o(Object,&quot;getPropertyNames&quot;,{value:function(t){return f(t).filter(m)}})}!function(){var t=Object.freeze;o(Object,&quot;freeze&quot;,{value:function(e){return v(e),t(e)}});var e=Object.seal;o(Object,&quot;seal&quot;,{value:function(t){return v(t),e(t)}});var r=Object.preventExtensions;o(Object,&quot;preventExtensions&quot;,{value:function(t){return v(t),r(t)}})}();var h=!1,p=0,d=function(){this instanceof d||x();var t=[],e=[],r=p++;return Object.create(d.prototype,{get___:{value:y((function(n,i){var a,o=v(n);return o?r in o?o[r]:i:(a=t.indexOf(n))&gt;=0?e[a]:i}))},has___:{value:y((function(e){var n=v(e);return n?r in n:t.indexOf(e)&gt;=0}))},set___:{value:y((function(n,i){var a,o=v(n);return o?o[r]=i:(a=t.indexOf(n))&gt;=0?e[a]=i:(a=t.length,e[a]=i,t[a]=n),this}))},delete___:{value:y((function(n){var i,a,o=v(n);return o?r in o&amp;&amp;delete o[r]:!((i=t.indexOf(n))&lt;0)&amp;&amp;(a=t.length-1,t[i]=void 0,e[i]=e[a],t[i]=t[a],t.length=a,e.length=a,!0)}))}})};d.prototype=Object.create(Object.prototype,{get:{value:function(t,e){return this.get___(t,e)},writable:!0,configurable:!0},has:{value:function(t){return this.has___(t)},writable:!0,configurable:!0},set:{value:function(t,e){return this.set___(t,e)},writable:!0,configurable:!0},delete:{value:function(t){return this.delete___(t)},writable:!0,configurable:!0}}),&quot;function&quot;==typeof r?function(){function n(){this instanceof d||x();var e,n=new r,i=void 0,a=!1;return e=t?function(t,e){return n.set(t,e),n.has(t)||(i||(i=new d),i.set(t,e)),this}:function(t,e){if(a)try{n.set(t,e)}catch(r){i||(i=new d),i.set___(t,e)}else n.set(t,e);return this},Object.create(d.prototype,{get___:{value:y((function(t,e){return i?n.has(t)?n.get(t):i.get___(t,e):n.get(t,e)}))},has___:{value:y((function(t){return n.has(t)||!!i&amp;&amp;i.has___(t)}))},set___:{value:y(e)},delete___:{value:y((function(t){var e=!!n.delete(t);return i&amp;&amp;i.delete___(t)||e}))},permitHostObjects___:{value:y((function(t){if(t!==g)throw new Error(&quot;bogus call to permitHostObjects___&quot;);a=!0}))}})}t&amp;&amp;&quot;undefined&quot;!=typeof Proxy&amp;&amp;(Proxy=void 0),n.prototype=d.prototype,e.exports=n,Object.defineProperty(WeakMap.prototype,&quot;constructor&quot;,{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(&quot;undefined&quot;!=typeof Proxy&amp;&amp;(Proxy=void 0),e.exports=d)}function g(t){t.permitHostObjects___&amp;&amp;t.permitHostObjects___(g)}function m(t){return!(&quot;weakmap:&quot;==t.substr(0,&quot;weakmap:&quot;.length)&amp;&amp;&quot;___&quot;===t.substr(t.length-3))}function v(t){if(t!==Object(t))throw new TypeError(&quot;Not an object: &quot;+t);var e=t[l];if(e&amp;&amp;e.key===t)return e;if(s(t)){e={key:t};try{return o(t,l,{value:e,writable:!1,enumerable:!1,configurable:!1}),e}catch(t){return}}}function y(t){return t.prototype=null,Object.freeze(t)}function x(){h||&quot;undefined&quot;==typeof console||(h=!0,console.warn(&quot;WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future.&quot;))}}()},{}],603:[function(t,e,r){var n=t(&quot;./hidden-store.js&quot;);e.exports=function(){var t={};return function(e){if((&quot;object&quot;!=typeof e||null===e)&amp;&amp;&quot;function&quot;!=typeof e)throw new Error(&quot;Weakmap-shim: Key must be object&quot;);var r=e.valueOf(t);return r&amp;&amp;r.identity===t?r:n(e,t)}}},{&quot;./hidden-store.js&quot;:604}],604:[function(t,e,r){e.exports=function(t,e){var r={identity:e},n=t.valueOf;return Object.defineProperty(t,&quot;valueOf&quot;,{value:function(t){return t!==e?n.apply(this,arguments):r},writable:!0}),r}},{}],605:[function(t,e,r){var n=t(&quot;./create-store.js&quot;);e.exports=function(){var t=n();return{get:function(e,r){var n=t(e);return n.hasOwnProperty(&quot;value&quot;)?n.value:r},set:function(e,r){return t(e).value=r,this},has:function(e){return&quot;value&quot;in t(e)},delete:function(e){return delete t(e).value}}}},{&quot;./create-store.js&quot;:603}],606:[function(t,e,r){var n=t(&quot;get-canvas-context&quot;);e.exports=function(t){return n(&quot;webgl&quot;,t)}},{&quot;get-canvas-context&quot;:249}],607:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Chinese&quot;,jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Chinese&quot;,epochs:[&quot;BEC&quot;,&quot;EC&quot;],monthNumbers:function(t,e){if(&quot;string&quot;==typeof t){var r=t.match(l);return r?r[0]:&quot;&quot;}var n=this._validateYear(t),i=t.month(),a=&quot;&quot;+this.toChineseMonth(n,i);return e&amp;&amp;a.length&lt;2&amp;&amp;(a=&quot;0&quot;+a),this.isIntercalaryMonth(n,i)&amp;&amp;(a+=&quot;i&quot;),a},monthNames:function(t){if(&quot;string&quot;==typeof t){var e=t.match(c);return e?e[0]:&quot;&quot;}var r=this._validateYear(t),n=t.month(),i=[&quot;\u4e00\u6708&quot;,&quot;\u4e8c\u6708&quot;,&quot;\u4e09\u6708&quot;,&quot;\u56db\u6708&quot;,&quot;\u4e94\u6708&quot;,&quot;\u516d\u6708&quot;,&quot;\u4e03\u6708&quot;,&quot;\u516b\u6708&quot;,&quot;\u4e5d\u6708&quot;,&quot;\u5341\u6708&quot;,&quot;\u5341\u4e00\u6708&quot;,&quot;\u5341\u4e8c\u6708&quot;][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&amp;&amp;(i=&quot;\u95f0&quot;+i),i},monthNamesShort:function(t){if(&quot;string&quot;==typeof t){var e=t.match(u);return e?e[0]:&quot;&quot;}var r=this._validateYear(t),n=t.month(),i=[&quot;\u4e00&quot;,&quot;\u4e8c&quot;,&quot;\u4e09&quot;,&quot;\u56db&quot;,&quot;\u4e94&quot;,&quot;\u516d&quot;,&quot;\u4e03&quot;,&quot;\u516b&quot;,&quot;\u4e5d&quot;,&quot;\u5341&quot;,&quot;\u5341\u4e00&quot;,&quot;\u5341\u4e8c&quot;][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&amp;&amp;(i=&quot;\u95f0&quot;+i),i},parseMonth:function(t,e){t=this._validateYear(t);var r,n=parseInt(e);if(isNaN(n))&quot;\u95f0&quot;===e[0]&amp;&amp;(r=!0,e=e.substring(1)),&quot;\u6708&quot;===e[e.length-1]&amp;&amp;(e=e.substring(0,e.length-1)),n=1+[&quot;\u4e00&quot;,&quot;\u4e8c&quot;,&quot;\u4e09&quot;,&quot;\u56db&quot;,&quot;\u4e94&quot;,&quot;\u516d&quot;,&quot;\u4e03&quot;,&quot;\u516b&quot;,&quot;\u4e5d&quot;,&quot;\u5341&quot;,&quot;\u5341\u4e00&quot;,&quot;\u5341\u4e8c&quot;].indexOf(e);else{var i=e[e.length-1];r=&quot;i&quot;===i||&quot;I&quot;===i}return this.toMonthIndex(t,n,r)},dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:1,isRTL:!1}},_validateYear:function(t,e){if(t.year&amp;&amp;(t=t.year()),&quot;number&quot;!=typeof t||t&lt;1888||t&gt;2111)throw e.replace(/\{0\}/,this.local.name);return t},toMonthIndex:function(t,e,r){var i=this.intercalaryMonth(t);if(r&amp;&amp;e!==i||e&lt;1||e&gt;12)throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return i?!r&amp;&amp;e&lt;=i?e-1:e:e-1},toChineseMonth:function(t,e){t.year&amp;&amp;(e=(t=t.year()).month());var r=this.intercalaryMonth(t);if(e&lt;0||e&gt;(r?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r?e&lt;r?e+1:e:e+1},intercalaryMonth:function(t){return t=this._validateYear(t),f[t-f[0]]&gt;&gt;13},isIntercalaryMonth:function(t,e){t.year&amp;&amp;(e=(t=t.year()).month());var r=this.intercalaryMonth(t);return!!r&amp;&amp;r===e},leapYear:function(t){return 0!==this.intercalaryMonth(t)},weekOfYear:function(t,e,r){var i,o=this._validateYear(t,n.local.invalidyear),s=h[o-h[0]],l=s&gt;&gt;9&amp;4095,c=s&gt;&gt;5&amp;15,u=31&amp;s;(i=a.newDate(l,c,u)).add(4-(i.dayOfWeek()||7),&quot;d&quot;);var f=this.toJD(t,e,r)-i.toJD();return 1+Math.floor(f/7)},monthsInYear:function(t){return this.leapYear(t)?13:12},daysInMonth:function(t,e){t.year&amp;&amp;(e=t.month(),t=t.year()),t=this._validateYear(t);var r=f[t-f[0]];if(e&gt;(r&gt;&gt;13?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r&amp;1&lt;&lt;12-e?30:29},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,s,r,n.local.invalidDate);t=this._validateYear(i.year()),e=i.month(),r=i.day();var o=this.isIntercalaryMonth(t,e),s=this.toChineseMonth(t,e),l=function(t,e,r,n,i){var a,o,s;if(&quot;object&quot;==typeof t)o=t,a=e||{};else{var l;if(!(&quot;number&quot;==typeof t&amp;&amp;t&gt;=1888&amp;&amp;t&lt;=2111))throw new Error(&quot;Lunar year outside range 1888-2111&quot;);if(!(&quot;number&quot;==typeof e&amp;&amp;e&gt;=1&amp;&amp;e&lt;=12))throw new Error(&quot;Lunar month outside range 1 - 12&quot;);if(!(&quot;number&quot;==typeof r&amp;&amp;r&gt;=1&amp;&amp;r&lt;=30))throw new Error(&quot;Lunar day outside range 1 - 30&quot;);&quot;object&quot;==typeof n?(l=!1,a=n):(l=!!n,a=i||{}),o={year:t,month:e,day:r,isIntercalary:l}}s=o.day-1;var c,u=f[o.year-f[0]],p=u&gt;&gt;13;c=p&amp;&amp;(o.month&gt;p||o.isIntercalary)?o.month:o.month-1;for(var d=0;d&lt;c;d++){s+=u&amp;1&lt;&lt;12-d?30:29}var g=h[o.year-h[0]],m=new Date(g&gt;&gt;9&amp;4095,(g&gt;&gt;5&amp;15)-1,(31&amp;g)+s);return a.year=m.getFullYear(),a.month=1+m.getMonth(),a.day=m.getDate(),a}(t,s,r,o);return a.toJD(l.year,l.month,l.day)},fromJD:function(t){var e=a.fromJD(t),r=function(t,e,r,n){var i,a;if(&quot;object&quot;==typeof t)i=t,a=e||{};else{if(!(&quot;number&quot;==typeof t&amp;&amp;t&gt;=1888&amp;&amp;t&lt;=2111))throw new Error(&quot;Solar year outside range 1888-2111&quot;);if(!(&quot;number&quot;==typeof e&amp;&amp;e&gt;=1&amp;&amp;e&lt;=12))throw new Error(&quot;Solar month outside range 1 - 12&quot;);if(!(&quot;number&quot;==typeof r&amp;&amp;r&gt;=1&amp;&amp;r&lt;=31))throw new Error(&quot;Solar day outside range 1 - 31&quot;);i={year:t,month:e,day:r},a=n||{}}var o=h[i.year-h[0]],s=i.year&lt;&lt;9|i.month&lt;&lt;5|i.day;a.year=s&gt;=o?i.year:i.year-1,o=h[a.year-h[0]];var l,c=new Date(o&gt;&gt;9&amp;4095,(o&gt;&gt;5&amp;15)-1,31&amp;o),u=new Date(i.year,i.month-1,i.day);l=Math.round((u-c)/864e5);var p,d=f[a.year-f[0]];for(p=0;p&lt;13;p++){var g=d&amp;1&lt;&lt;12-p?30:29;if(l&lt;g)break;l-=g}var m=d&gt;&gt;13;!m||p&lt;m?(a.isIntercalary=!1,a.month=1+p):p===m?(a.isIntercalary=!0,a.month=p):(a.isIntercalary=!1,a.month=p);return a.day=1+l,a}(e.year(),e.month(),e.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(t){var e=t.match(s),r=this._validateYear(+e[1]),n=+e[2],i=!!e[3],a=this.toMonthIndex(r,n,i),o=+e[4];return this.newDate(r,a,o)},add:function(t,e,r){var n=t.year(),i=t.month(),a=this.isIntercalaryMonth(n,i),s=this.toChineseMonth(n,i),l=Object.getPrototypeOf(o.prototype).add.call(this,t,e,r);if(&quot;y&quot;===r){var c=l.year(),u=l.month(),f=this.isIntercalaryMonth(c,s),h=a&amp;&amp;f?this.toMonthIndex(c,s,!0):this.toMonthIndex(c,s,!1);h!==u&amp;&amp;l.month(h)}return l}});var s=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,l=/^\d?\d[iI]?/m,c=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?\u6708/m,u=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?/m;n.calendars.chinese=o;var f=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],h=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],608:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Coptic&quot;,jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Coptic&quot;,epochs:[&quot;BAM&quot;,&quot;AM&quot;],monthNames:[&quot;Thout&quot;,&quot;Paopi&quot;,&quot;Hathor&quot;,&quot;Koiak&quot;,&quot;Tobi&quot;,&quot;Meshir&quot;,&quot;Paremhat&quot;,&quot;Paremoude&quot;,&quot;Pashons&quot;,&quot;Paoni&quot;,&quot;Epip&quot;,&quot;Mesori&quot;,&quot;Pi Kogi Enavot&quot;],monthNamesShort:[&quot;Tho&quot;,&quot;Pao&quot;,&quot;Hath&quot;,&quot;Koi&quot;,&quot;Tob&quot;,&quot;Mesh&quot;,&quot;Pat&quot;,&quot;Pad&quot;,&quot;Pash&quot;,&quot;Pao&quot;,&quot;Epi&quot;,&quot;Meso&quot;,&quot;PiK&quot;],dayNames:[&quot;Tkyriaka&quot;,&quot;Pesnau&quot;,&quot;Pshoment&quot;,&quot;Peftoou&quot;,&quot;Ptiou&quot;,&quot;Psoou&quot;,&quot;Psabbaton&quot;],dayNamesShort:[&quot;Tky&quot;,&quot;Pes&quot;,&quot;Psh&quot;,&quot;Pef&quot;,&quot;Pti&quot;,&quot;Pso&quot;,&quot;Psa&quot;],dayNamesMin:[&quot;Tk&quot;,&quot;Pes&quot;,&quot;Psh&quot;,&quot;Pef&quot;,&quot;Pt&quot;,&quot;Pso&quot;,&quot;Psa&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())&lt;0&amp;&amp;t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r&lt;=0&amp;&amp;r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.coptic=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],609:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Discworld&quot;,jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Discworld&quot;,epochs:[&quot;BUC&quot;,&quot;UC&quot;],monthNames:[&quot;Ick&quot;,&quot;Offle&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;Grune&quot;,&quot;August&quot;,&quot;Spune&quot;,&quot;Sektober&quot;,&quot;Ember&quot;,&quot;December&quot;],monthNamesShort:[&quot;Ick&quot;,&quot;Off&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Gru&quot;,&quot;Aug&quot;,&quot;Spu&quot;,&quot;Sek&quot;,&quot;Emb&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Octeday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Oct&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Oc&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:2,isRTL:!1}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),13},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),400},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(t,e,r){return(this._validate(t,e,r,n.local.invalidDate).day()+1)%8},weekDay:function(t,e,r){var n=this.dayOfWeek(t,e,r);return n&gt;=2&amp;&amp;n&lt;=6},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{century:o[Math.floor((i.year()-1)/100)+1]||&quot;&quot;}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year()+(i.year()&lt;0?1:0),e=i.month(),(r=i.day())+(e&gt;1?16:0)+(e&gt;2?32*(e-2):0)+400*(t-1)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t+.5)-Math.floor(this.jdEpoch)-1;var e=Math.floor(t/400)+1;t-=400*(e-1),t+=t&gt;15?16:0;var r=Math.floor(t/32)+1,n=t-32*(r-1)+1;return this.newDate(e&lt;=0?e-1:e,r,n)}});var o={20:&quot;Fruitbat&quot;,21:&quot;Anchovy&quot;};n.calendars.discworld=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],610:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Ethiopian&quot;,jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Ethiopian&quot;,epochs:[&quot;BEE&quot;,&quot;EE&quot;],monthNames:[&quot;Meskerem&quot;,&quot;Tikemet&quot;,&quot;Hidar&quot;,&quot;Tahesas&quot;,&quot;Tir&quot;,&quot;Yekatit&quot;,&quot;Megabit&quot;,&quot;Miazia&quot;,&quot;Genbot&quot;,&quot;Sene&quot;,&quot;Hamle&quot;,&quot;Nehase&quot;,&quot;Pagume&quot;],monthNamesShort:[&quot;Mes&quot;,&quot;Tik&quot;,&quot;Hid&quot;,&quot;Tah&quot;,&quot;Tir&quot;,&quot;Yek&quot;,&quot;Meg&quot;,&quot;Mia&quot;,&quot;Gen&quot;,&quot;Sen&quot;,&quot;Ham&quot;,&quot;Neh&quot;,&quot;Pag&quot;],dayNames:[&quot;Ehud&quot;,&quot;Segno&quot;,&quot;Maksegno&quot;,&quot;Irob&quot;,&quot;Hamus&quot;,&quot;Arb&quot;,&quot;Kidame&quot;],dayNamesShort:[&quot;Ehu&quot;,&quot;Seg&quot;,&quot;Mak&quot;,&quot;Iro&quot;,&quot;Ham&quot;,&quot;Arb&quot;,&quot;Kid&quot;],dayNamesMin:[&quot;Eh&quot;,&quot;Se&quot;,&quot;Ma&quot;,&quot;Ir&quot;,&quot;Ha&quot;,&quot;Ar&quot;,&quot;Ki&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())&lt;0&amp;&amp;t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r&lt;=0&amp;&amp;r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.ethiopian=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],611:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Hebrew&quot;,jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Hebrew&quot;,epochs:[&quot;BAM&quot;,&quot;AM&quot;],monthNames:[&quot;Nisan&quot;,&quot;Iyar&quot;,&quot;Sivan&quot;,&quot;Tammuz&quot;,&quot;Av&quot;,&quot;Elul&quot;,&quot;Tishrei&quot;,&quot;Cheshvan&quot;,&quot;Kislev&quot;,&quot;Tevet&quot;,&quot;Shevat&quot;,&quot;Adar&quot;,&quot;Adar II&quot;],monthNamesShort:[&quot;Nis&quot;,&quot;Iya&quot;,&quot;Siv&quot;,&quot;Tam&quot;,&quot;Av&quot;,&quot;Elu&quot;,&quot;Tis&quot;,&quot;Che&quot;,&quot;Kis&quot;,&quot;Tev&quot;,&quot;She&quot;,&quot;Ada&quot;,&quot;Ad2&quot;],dayNames:[&quot;Yom Rishon&quot;,&quot;Yom Sheni&quot;,&quot;Yom Shlishi&quot;,&quot;Yom Revi'i&quot;,&quot;Yom Chamishi&quot;,&quot;Yom Shishi&quot;,&quot;Yom Shabbat&quot;],dayNamesShort:[&quot;Ris&quot;,&quot;She&quot;,&quot;Shl&quot;,&quot;Rev&quot;,&quot;Cha&quot;,&quot;Shi&quot;,&quot;Sha&quot;],dayNamesMin:[&quot;Ri&quot;,&quot;She&quot;,&quot;Shl&quot;,&quot;Re&quot;,&quot;Ch&quot;,&quot;Shi&quot;,&quot;Sha&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return this._leapYear(e.year())},_leapYear:function(t){return o(7*(t=t&lt;0?t+1:t)+1,19)&lt;7},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),this._leapYear(t.year?t.year():t)?13:12},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),this.toJD(-1===t?1:t+1,7,1)-this.toJD(t,7,1)},daysInMonth:function(t,e){return t.year&amp;&amp;(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),12===e&amp;&amp;this.leapYear(t)||8===e&amp;&amp;5===o(this.daysInYear(t),10)?30:9===e&amp;&amp;3===o(this.daysInYear(t),10)?29:this.daysPerMonth[e-1]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{yearType:(this.leapYear(i)?&quot;embolismic&quot;:&quot;common&quot;)+&quot; &quot;+[&quot;deficient&quot;,&quot;regular&quot;,&quot;complete&quot;][this.daysInYear(i)%10-3]}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t&lt;=0?t+1:t,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(e&lt;7){for(var s=7;s&lt;=this.monthsInYear(t);s++)o+=this.daysInMonth(t,s);for(s=1;s&lt;e;s++)o+=this.daysInMonth(t,s)}else for(s=7;s&lt;e;s++)o+=this.daysInMonth(t,s);return o},_delay1:function(t){var e=Math.floor((235*t-234)/19),r=12084+13753*e,n=29*e+Math.floor(r/25920);return o(3*(n+1),7)&lt;3&amp;&amp;n++,n},_delay2:function(t){var e=this._delay1(t-1),r=this._delay1(t);return this._delay1(t+1)-r==356?2:r-e==382?1:0},fromJD:function(t){t=Math.floor(t)+.5;for(var e=Math.floor(98496*(t-this.jdEpoch)/35975351)-1;t&gt;=this.toJD(-1===e?1:e+1,7,1);)e++;for(var r=t&lt;this.toJD(e,1,1)?7:1;t&gt;this.toJD(e,r,this.daysInMonth(e,r));)r++;var n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.hebrew=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],612:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Islamic&quot;,jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Islamic&quot;,epochs:[&quot;BH&quot;,&quot;AH&quot;],monthNames:[&quot;Muharram&quot;,&quot;Safar&quot;,&quot;Rabi' al-awwal&quot;,&quot;Rabi' al-thani&quot;,&quot;Jumada al-awwal&quot;,&quot;Jumada al-thani&quot;,&quot;Rajab&quot;,&quot;Sha'aban&quot;,&quot;Ramadan&quot;,&quot;Shawwal&quot;,&quot;Dhu al-Qi'dah&quot;,&quot;Dhu al-Hijjah&quot;],monthNamesShort:[&quot;Muh&quot;,&quot;Saf&quot;,&quot;Rab1&quot;,&quot;Rab2&quot;,&quot;Jum1&quot;,&quot;Jum2&quot;,&quot;Raj&quot;,&quot;Sha'&quot;,&quot;Ram&quot;,&quot;Shaw&quot;,&quot;DhuQ&quot;,&quot;DhuH&quot;],dayNames:[&quot;Yawm al-ahad&quot;,&quot;Yawm al-ithnayn&quot;,&quot;Yawm ath-thulaathaa'&quot;,&quot;Yawm al-arbi'aa'&quot;,&quot;Yawm al-kham\u012bs&quot;,&quot;Yawm al-jum'a&quot;,&quot;Yawm as-sabt&quot;],dayNamesShort:[&quot;Aha&quot;,&quot;Ith&quot;,&quot;Thu&quot;,&quot;Arb&quot;,&quot;Kha&quot;,&quot;Jum&quot;,&quot;Sab&quot;],dayNamesMin:[&quot;Ah&quot;,&quot;It&quot;,&quot;Th&quot;,&quot;Ar&quot;,&quot;Kh&quot;,&quot;Ju&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!1}},leapYear:function(t){return(11*this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year()+14)%30&lt;11},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return this.leapYear(t)?355:354},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),t=t&lt;=0?t+1:t,(r=i.day())+Math.ceil(29.5*(e-1))+354*(t-1)+Math.floor((3+11*t)/30)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t)+.5;var e=Math.floor((30*(t-this.jdEpoch)+10646)/10631);e=e&lt;=0?e-1:e;var r=Math.min(12,Math.ceil((t-29-this.toJD(e,1,1))/29.5)+1),n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.islamic=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],613:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Julian&quot;,jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Julian&quot;,epochs:[&quot;BC&quot;,&quot;AD&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;mm/dd/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()&lt;0?e.year()+1:e.year())%4==0},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),r=i.day(),t&lt;0&amp;&amp;t++,e&lt;=2&amp;&amp;(t--,e+=12),Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r-1524.5},fromJD:function(t){var e=Math.floor(t+.5)+1524,r=Math.floor((e-122.1)/365.25),n=Math.floor(365.25*r),i=Math.floor((e-n)/30.6001),a=i-Math.floor(i&lt;14?1:13),o=r-Math.floor(a&gt;2?4716:4715),s=e-n-Math.floor(30.6001*i);return o&lt;=0&amp;&amp;o--,this.newDate(o,a,s)}}),n.calendars.julian=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],614:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}function s(t,e){return o(t-1,e)+1}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Mayan&quot;,jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{&quot;&quot;:{name:&quot;Mayan&quot;,epochs:[&quot;&quot;,&quot;&quot;],monthNames:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;],monthNamesShort:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;],dayNames:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],dayNamesShort:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],dayNamesMin:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],digits:null,dateFormat:&quot;YYYY.m.d&quot;,firstDay:0,isRTL:!1,haabMonths:[&quot;Pop&quot;,&quot;Uo&quot;,&quot;Zip&quot;,&quot;Zotz&quot;,&quot;Tzec&quot;,&quot;Xul&quot;,&quot;Yaxkin&quot;,&quot;Mol&quot;,&quot;Chen&quot;,&quot;Yax&quot;,&quot;Zac&quot;,&quot;Ceh&quot;,&quot;Mac&quot;,&quot;Kankin&quot;,&quot;Muan&quot;,&quot;Pax&quot;,&quot;Kayab&quot;,&quot;Cumku&quot;,&quot;Uayeb&quot;],tzolkinMonths:[&quot;Imix&quot;,&quot;Ik&quot;,&quot;Akbal&quot;,&quot;Kan&quot;,&quot;Chicchan&quot;,&quot;Cimi&quot;,&quot;Manik&quot;,&quot;Lamat&quot;,&quot;Muluc&quot;,&quot;Oc&quot;,&quot;Chuen&quot;,&quot;Eb&quot;,&quot;Ben&quot;,&quot;Ix&quot;,&quot;Men&quot;,&quot;Cib&quot;,&quot;Caban&quot;,&quot;Etznab&quot;,&quot;Cauac&quot;,&quot;Ahau&quot;]}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},formatYear:function(t){t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year();var e=Math.floor(t/400);return t%=400,t+=t&lt;0?400:0,e+&quot;.&quot;+Math.floor(t/20)+&quot;.&quot;+t%20},forYear:function(t){if((t=t.split(&quot;.&quot;)).length&lt;3)throw&quot;Invalid Mayan year&quot;;for(var e=0,r=0;r&lt;t.length;r++){var n=parseInt(t[r],10);if(Math.abs(n)&gt;19||r&gt;0&amp;&amp;n&lt;0)throw&quot;Invalid Mayan year&quot;;e=20*e+n}return e},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),18},weekOfYear:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),0},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),360},daysInMonth:function(t,e){return this._validate(t,e,this.minDay,n.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate).day()},weekDay:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),!0},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate).toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(t){var e=o((t-=this.jdEpoch)+8+340,365);return[Math.floor(e/20)+1,o(e,20)]},_toTzolkin:function(t){return[s((t-=this.jdEpoch)+20,20),s(t+4,13)]},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return i.day()+20*i.month()+360*i.year()+this.jdEpoch},fromJD:function(t){t=Math.floor(t)+.5-this.jdEpoch;var e=Math.floor(t/360);t%=360,t+=t&lt;0?360:0;var r=Math.floor(t/20),n=t%20;return this.newDate(e,r,n)}}),n.calendars.mayan=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],615:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar;var o=n.instance(&quot;gregorian&quot;);i(a.prototype,{name:&quot;Nanakshahi&quot;,jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Nanakshahi&quot;,epochs:[&quot;BN&quot;,&quot;AN&quot;],monthNames:[&quot;Chet&quot;,&quot;Vaisakh&quot;,&quot;Jeth&quot;,&quot;Harh&quot;,&quot;Sawan&quot;,&quot;Bhadon&quot;,&quot;Assu&quot;,&quot;Katak&quot;,&quot;Maghar&quot;,&quot;Poh&quot;,&quot;Magh&quot;,&quot;Phagun&quot;],monthNamesShort:[&quot;Che&quot;,&quot;Vai&quot;,&quot;Jet&quot;,&quot;Har&quot;,&quot;Saw&quot;,&quot;Bha&quot;,&quot;Ass&quot;,&quot;Kat&quot;,&quot;Mgr&quot;,&quot;Poh&quot;,&quot;Mgh&quot;,&quot;Pha&quot;],dayNames:[&quot;Somvaar&quot;,&quot;Mangalvar&quot;,&quot;Budhvaar&quot;,&quot;Veervaar&quot;,&quot;Shukarvaar&quot;,&quot;Sanicharvaar&quot;,&quot;Etvaar&quot;],dayNamesShort:[&quot;Som&quot;,&quot;Mangal&quot;,&quot;Budh&quot;,&quot;Veer&quot;,&quot;Shukar&quot;,&quot;Sanichar&quot;,&quot;Et&quot;],dayNamesMin:[&quot;So&quot;,&quot;Ma&quot;,&quot;Bu&quot;,&quot;Ve&quot;,&quot;Sh&quot;,&quot;Sa&quot;,&quot;Et&quot;],digits:null,dateFormat:&quot;dd-mm-yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear);return o.leapYear(e.year()+(e.year()&lt;1?1:0)+1469)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(1-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidMonth);(t=i.year())&lt;0&amp;&amp;t++;for(var a=i.day(),s=1;s&lt;i.month();s++)a+=this.daysPerMonth[s-1];return a+o.toJD(t+1468,3,13)},fromJD:function(t){t=Math.floor(t+.5);for(var e=Math.floor((t-(this.jdEpoch-1))/366);t&gt;=this.toJD(e+1,1,1);)e++;for(var r=t-Math.floor(this.toJD(e,1,1)+.5)+1,n=1;r&gt;this.daysInMonth(e,n);)r-=this.daysInMonth(e,n),n++;return this.newDate(e,n,r)}}),n.calendars.nanakshahi=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],616:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Nepali&quot;,jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{&quot;&quot;:{name:&quot;Nepali&quot;,epochs:[&quot;BBS&quot;,&quot;ABS&quot;],monthNames:[&quot;Baisakh&quot;,&quot;Jestha&quot;,&quot;Ashadh&quot;,&quot;Shrawan&quot;,&quot;Bhadra&quot;,&quot;Ashwin&quot;,&quot;Kartik&quot;,&quot;Mangsir&quot;,&quot;Paush&quot;,&quot;Mangh&quot;,&quot;Falgun&quot;,&quot;Chaitra&quot;],monthNamesShort:[&quot;Bai&quot;,&quot;Je&quot;,&quot;As&quot;,&quot;Shra&quot;,&quot;Bha&quot;,&quot;Ash&quot;,&quot;Kar&quot;,&quot;Mang&quot;,&quot;Pau&quot;,&quot;Ma&quot;,&quot;Fal&quot;,&quot;Chai&quot;],dayNames:[&quot;Aaitabaar&quot;,&quot;Sombaar&quot;,&quot;Manglbaar&quot;,&quot;Budhabaar&quot;,&quot;Bihibaar&quot;,&quot;Shukrabaar&quot;,&quot;Shanibaar&quot;],dayNamesShort:[&quot;Aaita&quot;,&quot;Som&quot;,&quot;Mangl&quot;,&quot;Budha&quot;,&quot;Bihi&quot;,&quot;Shukra&quot;,&quot;Shani&quot;],dayNamesMin:[&quot;Aai&quot;,&quot;So&quot;,&quot;Man&quot;,&quot;Bu&quot;,&quot;Bi&quot;,&quot;Shu&quot;,&quot;Sha&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:1,isRTL:!1}},leapYear:function(t){return this.daysInYear(t)!==this.daysPerYear},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){if(t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),&quot;undefined&quot;==typeof this.NEPALI_CALENDAR_DATA[t])return this.daysPerYear;for(var e=0,r=this.minMonth;r&lt;=12;r++)e+=this.NEPALI_CALENDAR_DATA[t][r];return e},daysInMonth:function(t,e){return t.year&amp;&amp;(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),&quot;undefined&quot;==typeof this.NEPALI_CALENDAR_DATA[t]?this.daysPerMonth[e-1]:this.NEPALI_CALENDAR_DATA[t][e]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=n.instance(),o=0,s=e,l=t;this._createMissingCalendarData(t);var c=t-(s&gt;9||9===s&amp;&amp;r&gt;=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(9!==e&amp;&amp;(o=r,s--);9!==s;)s&lt;=0&amp;&amp;(s=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][s],s--;return 9===e?(o+=r-this.NEPALI_CALENDAR_DATA[l][0])&lt;0&amp;&amp;(o+=a.daysInYear(c)):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(c,1,1).add(o,&quot;d&quot;).toJD()},fromJD:function(t){var e=n.instance().fromJD(t),r=e.year(),i=e.dayOfYear(),a=r+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i&gt;l;)++o&gt;12&amp;&amp;(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var c=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,c)},_createMissingCalendarData:function(t){var e=this.daysPerMonth.slice(0);e.unshift(17);for(var r=t-1;r&lt;t+2;r++)&quot;undefined&quot;==typeof this.NEPALI_CALENDAR_DATA[r]&amp;&amp;(this.NEPALI_CALENDAR_DATA[r]=e)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),n.calendars.nepali=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],617:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Persian&quot;,jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Persian&quot;,epochs:[&quot;BP&quot;,&quot;AP&quot;],monthNames:[&quot;Farvardin&quot;,&quot;Ordibehesht&quot;,&quot;Khordad&quot;,&quot;Tir&quot;,&quot;Mordad&quot;,&quot;Shahrivar&quot;,&quot;Mehr&quot;,&quot;Aban&quot;,&quot;Azar&quot;,&quot;Day&quot;,&quot;Bahman&quot;,&quot;Esfand&quot;],monthNamesShort:[&quot;Far&quot;,&quot;Ord&quot;,&quot;Kho&quot;,&quot;Tir&quot;,&quot;Mor&quot;,&quot;Sha&quot;,&quot;Meh&quot;,&quot;Aba&quot;,&quot;Aza&quot;,&quot;Day&quot;,&quot;Bah&quot;,&quot;Esf&quot;],dayNames:[&quot;Yekshambe&quot;,&quot;Doshambe&quot;,&quot;Seshambe&quot;,&quot;Ch\xe6harshambe&quot;,&quot;Panjshambe&quot;,&quot;Jom'e&quot;,&quot;Shambe&quot;],dayNamesShort:[&quot;Yek&quot;,&quot;Do&quot;,&quot;Se&quot;,&quot;Ch\xe6&quot;,&quot;Panj&quot;,&quot;Jom&quot;,&quot;Sha&quot;],dayNamesMin:[&quot;Ye&quot;,&quot;Do&quot;,&quot;Se&quot;,&quot;Ch&quot;,&quot;Pa&quot;,&quot;Jo&quot;,&quot;Sh&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 682*((e.year()-(e.year()&gt;0?474:473))%2820+474+38)%2816&lt;682},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-(n.dayOfWeek()+1)%7,&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t-(t&gt;=0?474:473),s=474+o(a,2820);return r+(e&lt;=7?31*(e-1):30*(e-1)+6)+Math.floor((682*s-110)/2816)+365*(s-1)+1029983*Math.floor(a/2820)+this.jdEpoch-1},fromJD:function(t){var e=(t=Math.floor(t)+.5)-this.toJD(475,1,1),r=Math.floor(e/1029983),n=o(e,1029983),i=2820;if(1029982!==n){var a=Math.floor(n/366),s=o(n,366);i=Math.floor((2134*a+2816*s+2815)/1028522)+a+1}var l=i+2820*r+474;l=l&lt;=0?l-1:l;var c=t-this.toJD(l,1,1)+1,u=c&lt;=186?Math.ceil(c/31):Math.ceil((c-6)/30),f=t-this.toJD(l,u,1)+1;return this.newDate(l,u,f)}}),n.calendars.persian=a,n.calendars.jalali=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],618:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Taiwan&quot;,jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Taiwan&quot;,epochs:[&quot;BROC&quot;,&quot;ROC&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:1,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t+this.yearsOffset+(t&gt;=-this.yearsOffset&amp;&amp;t&lt;=-1?1:0)},_g2tYear:function(t){return t-this.yearsOffset-(t&gt;=1&amp;&amp;t&lt;=this.yearsOffset?1:0)}}),n.calendars.taiwan=o},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],619:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Thai&quot;,jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Thai&quot;,epochs:[&quot;BBE&quot;,&quot;BE&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t-this.yearsOffset-(t&gt;=1&amp;&amp;t&lt;=this.yearsOffset?1:0)},_g2tYear:function(t){return t+this.yearsOffset+(t&gt;=-this.yearsOffset&amp;&amp;t&lt;=-1?1:0)}}),n.calendars.thai=o},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],620:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;UmmAlQura&quot;,hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Umm al-Qura&quot;,epochs:[&quot;BH&quot;,&quot;AH&quot;],monthNames:[&quot;Al-Muharram&quot;,&quot;Safar&quot;,&quot;Rabi' al-awwal&quot;,&quot;Rabi' Al-Thani&quot;,&quot;Jumada Al-Awwal&quot;,&quot;Jumada Al-Thani&quot;,&quot;Rajab&quot;,&quot;Sha'aban&quot;,&quot;Ramadan&quot;,&quot;Shawwal&quot;,&quot;Dhu al-Qi'dah&quot;,&quot;Dhu al-Hijjah&quot;],monthNamesShort:[&quot;Muh&quot;,&quot;Saf&quot;,&quot;Rab1&quot;,&quot;Rab2&quot;,&quot;Jum1&quot;,&quot;Jum2&quot;,&quot;Raj&quot;,&quot;Sha'&quot;,&quot;Ram&quot;,&quot;Shaw&quot;,&quot;DhuQ&quot;,&quot;DhuH&quot;],dayNames:[&quot;Yawm al-Ahad&quot;,&quot;Yawm al-Ithnain&quot;,&quot;Yawm al-Thal\u0101th\u0101\u2019&quot;,&quot;Yawm al-Arba\u2018\u0101\u2019&quot;,&quot;Yawm al-Kham\u012bs&quot;,&quot;Yawm al-Jum\u2018a&quot;,&quot;Yawm al-Sabt&quot;],dayNamesMin:[&quot;Ah&quot;,&quot;Ith&quot;,&quot;Th&quot;,&quot;Ar&quot;,&quot;Kh&quot;,&quot;Ju&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!0}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 355===this.daysInYear(e.year())},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){for(var e=0,r=1;r&lt;=12;r++)e+=this.daysInMonth(t,r);return e},daysInMonth:function(t,e){for(var r=this._validate(t,e,this.minDay,n.local.invalidMonth).toJD()-24e5+.5,i=0,a=0;a&lt;o.length;a++){if(o[a]&gt;r)return o[i]-o[i-1];i++}return 30},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate),a=12*(i.year()-1)+i.month()-15292;return i.day()+o[a-1]-1+24e5-.5},fromJD:function(t){for(var e=t-24e5+.5,r=0,n=0;n&lt;o.length&amp;&amp;!(o[n]&gt;e);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),s=a+1,l=i-12*a,c=e-o[r-1]+1;return this.newDate(s,l,c)},isValid:function(t,e,r){var i=n.baseCalendar.prototype.isValid.apply(this,arguments);return i&amp;&amp;(i=(t=null!=t.year?t.year:t)&gt;=1276&amp;&amp;t&lt;=1500),i},_validate:function(t,e,r,i){var a=n.baseCalendar.prototype._validate.apply(this,arguments);if(a.year&lt;1276||a.year&gt;1500)throw i.replace(/\{0\}/,this.local.name);return a}}),n.calendars.ummalqura=a;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],621:[function(t,e,r){var n=t(&quot;object-assign&quot;);function i(){this.regionalOptions=[],this.regionalOptions[&quot;&quot;]={invalidCalendar:&quot;Calendar {0} not found&quot;,invalidDate:&quot;Invalid {0} date&quot;,invalidMonth:&quot;Invalid {0} month&quot;,invalidYear:&quot;Invalid {0} year&quot;,differentCalendars:&quot;Cannot mix {0} and {1} dates&quot;},this.local=this.regionalOptions[&quot;&quot;],this.calendars={},this._localCals={}}function a(t,e,r,n){if(this._calendar=t,this._year=e,this._month=r,this._day=n,0===this._calendar._validateLevel&amp;&amp;!this._calendar.isValid(this._year,this._month,this._day))throw(c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function o(t,e){return&quot;000000&quot;.substring(0,e-(t=&quot;&quot;+t).length)+t}function s(){this.shortYearCutoff=&quot;+10&quot;}function l(t){this.local=this.regionalOptions[t]||this.regionalOptions[&quot;&quot;]}n(i.prototype,{instance:function(t,e){t=(t||&quot;gregorian&quot;).toLowerCase(),e=e||&quot;&quot;;var r=this._localCals[t+&quot;-&quot;+e];if(!r&amp;&amp;this.calendars[t]&amp;&amp;(r=new this.calendars[t](e),this._localCals[t+&quot;-&quot;+e]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[&quot;&quot;].invalidCalendar).replace(/\{0\}/,t);return r},newDate:function(t,e,r,n,i){return(n=(null!=t&amp;&amp;t.year?t.calendar():&quot;string&quot;==typeof n?this.instance(n,i):n)||this.instance()).newDate(t,e,r)},substituteDigits:function(t){return function(e){return(e+&quot;&quot;).replace(/[0-9]/g,(function(e){return t[e]}))}},substituteChineseDigits:function(t,e){return function(r){for(var n=&quot;&quot;,i=0;r&gt;0;){var a=r%10;n=(0===a?&quot;&quot;:t[a]+e[i])+n,i++,r=Math.floor(r/10)}return 0===n.indexOf(t[1]+e[1])&amp;&amp;(n=n.substr(1)),n||t[0]}}}),n(a.prototype,{newDate:function(t,e,r){return this._calendar.newDate(null==t?this:t,e,r)},year:function(t){return 0===arguments.length?this._year:this.set(t,&quot;y&quot;)},month:function(t){return 0===arguments.length?this._month:this.set(t,&quot;m&quot;)},day:function(t){return 0===arguments.length?this._day:this.set(t,&quot;d&quot;)},date:function(t,e,r){if(!this._calendar.isValid(t,e,r))throw(c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=t,this._month=e,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(t,e){return this._calendar.add(this,t,e)},set:function(t,e){return this._calendar.set(this,t,e)},compareTo:function(t){if(this._calendar.name!==t._calendar.name)throw(c.local.differentCalendars||c.regionalOptions[&quot;&quot;].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,t._calendar.local.name);var e=this._year!==t._year?this._year-t._year:this._month!==t._month?this.monthOfYear()-t.monthOfYear():this._day-t._day;return 0===e?0:e&lt;0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(t){return this._calendar.fromJD(t)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(t){return this._calendar.fromJSDate(t)},toString:function(){return(this.year()&lt;0?&quot;-&quot;:&quot;&quot;)+o(Math.abs(this.year()),4)+&quot;-&quot;+o(this.month(),2)+&quot;-&quot;+o(this.day(),2)}}),n(s.prototype,{_validateLevel:0,newDate:function(t,e,r){return null==t?this.today():(t.year&amp;&amp;(this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),r=t.day(),e=t.month(),t=t.year()),new a(this,t,e,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear).year()&lt;0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return(e.year()&lt;0?&quot;-&quot;:&quot;&quot;)+o(Math.abs(e.year()),4)},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear),12},monthOfYear:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(t,e){var r=(e+this.firstMonth-2*this.minMonth)%this.monthsInYear(t)+this.minMonth;return this._validate(t,r,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth),r},daysInYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return this.leapYear(e)?366:365},dayOfYear:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(t,e,r){return this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),{}},add:function(t,e,r){return this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),this._correctAdd(t,this._add(t,e,r),e,r)},_add:function(t,e,r){if(this._validateLevel++,&quot;d&quot;===r||&quot;w&quot;===r){var n=t.toJD()+e*(&quot;w&quot;===r?this.daysInWeek():1),i=t.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=t.year()+(&quot;y&quot;===r?e:0),o=t.monthOfYear()+(&quot;m&quot;===r?e:0);i=t.day();&quot;y&quot;===r?(t.month()!==this.fromMonthOfYear(a,o)&amp;&amp;(o=this.newDate(a,t.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):&quot;m&quot;===r&amp;&amp;(!function(t){for(;o&lt;t.minMonth;)a--,o+=t.monthsInYear(a);for(var e=t.monthsInYear(a);o&gt;e-1+t.minMonth;)a++,o-=e,e=t.monthsInYear(a)}(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var s=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,s}catch(t){throw this._validateLevel--,t}},_correctAdd:function(t,e,r,n){if(!(this.hasYearZero||&quot;y&quot;!==n&amp;&amp;&quot;m&quot;!==n||0!==e[0]&amp;&amp;t.year()&gt;0==e[0]&gt;0)){var i={y:[1,1,&quot;y&quot;],m:[1,this.monthsInYear(-1),&quot;m&quot;],w:[this.daysInWeek(),this.daysInYear(-1),&quot;d&quot;],d:[1,this.daysInYear(-1),&quot;d&quot;]}[n],a=r&lt;0?-1:1;e=this._add(t,r*i[0]+a*i[1],i[2])}return t.date(e[0],e[1],e[2])},set:function(t,e,r){this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);var n=&quot;y&quot;===r?e:t.year(),i=&quot;m&quot;===r?e:t.month(),a=&quot;d&quot;===r?e:t.day();return&quot;y&quot;!==r&amp;&amp;&quot;m&quot;!==r||(a=Math.min(a,this.daysInMonth(n,i))),t.date(n,i,a)},isValid:function(t,e,r){this._validateLevel++;var n=this.hasYearZero||0!==t;if(n){var i=this.newDate(t,e,this.minDay);n=e&gt;=this.minMonth&amp;&amp;e-this.minMonth&lt;this.monthsInYear(i)&amp;&amp;r&gt;=this.minDay&amp;&amp;r-this.minDay&lt;this.daysInMonth(i)}return this._validateLevel--,n},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return c.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(t){return this.fromJD(c.instance().fromJSDate(t).toJD())},_validate:function(t,e,r,n){if(t.year){if(0===this._validateLevel&amp;&amp;this.name!==t.calendar().name)throw(c.local.differentCalendars||c.regionalOptions[&quot;&quot;].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,t.calendar().local.name);return t}try{if(this._validateLevel++,1===this._validateLevel&amp;&amp;!this.isValid(t,e,r))throw n.replace(/\{0\}/,this.local.name);var i=this.newDate(t,e,r);return this._validateLevel--,i}catch(t){throw this._validateLevel--,t}}}),l.prototype=new s,n(l.prototype,{name:&quot;Gregorian&quot;,jdEpoch:1721425.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Gregorian&quot;,epochs:[&quot;BCE&quot;,&quot;CE&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;mm/dd/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==0&amp;&amp;(t%100!=0||t%400==0)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);t=n.year(),e=n.month(),r=n.day(),t&lt;0&amp;&amp;t++,e&lt;3&amp;&amp;(e+=12,t--);var i=Math.floor(t/100),a=2-i+Math.floor(i/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r+a-1524.5},fromJD:function(t){var e=Math.floor(t+.5),r=Math.floor((e-1867216.25)/36524.25),n=(r=e+1+r-Math.floor(r/4))+1524,i=Math.floor((n-122.1)/365.25),a=Math.floor(365.25*i),o=Math.floor((n-a)/30.6001),s=n-a-Math.floor(30.6001*o),l=o-(o&gt;13.5?13:1),c=i-(l&gt;2.5?4716:4715);return c&lt;=0&amp;&amp;c--,this.newDate(c,l,s)},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()&gt;12?i.getHours()+2:0),i},fromJSDate:function(t){return this.newDate(t.getFullYear(),t.getMonth()+1,t.getDate())}});var c=e.exports=new i;c.cdate=a,c.baseCalendar=s,c.calendars.gregorian=l},{&quot;object-assign&quot;:499}],622:[function(t,e,r){var n=t(&quot;object-assign&quot;),i=t(&quot;./main&quot;);n(i.regionalOptions[&quot;&quot;],{invalidArguments:&quot;Invalid arguments&quot;,invalidFormat:&quot;Cannot format a date from another calendar&quot;,missingNumberAt:&quot;Missing number at position {0}&quot;,unknownNameAt:&quot;Unknown name at position {0}&quot;,unexpectedLiteralAt:&quot;Unexpected literal at position {0}&quot;,unexpectedText:&quot;Additional text found at end&quot;}),i.local=i.regionalOptions[&quot;&quot;],n(i.cdate.prototype,{formatDate:function(t,e){return&quot;string&quot;!=typeof t&amp;&amp;(e=t,t=&quot;&quot;),this._calendar.formatDate(t||&quot;&quot;,this,e)}}),n(i.baseCalendar.prototype,{UNIX_EPOCH:i.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:i.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:&quot;yyyy-mm-dd&quot;,COOKIE:&quot;D, dd M yyyy&quot;,FULL:&quot;DD, MM d, yyyy&quot;,ISO_8601:&quot;yyyy-mm-dd&quot;,JULIAN:&quot;J&quot;,RFC_822:&quot;D, d M yy&quot;,RFC_850:&quot;DD, dd-M-yy&quot;,RFC_1036:&quot;D, d M yy&quot;,RFC_1123:&quot;D, d M yyyy&quot;,RFC_2822:&quot;D, d M yyyy&quot;,RSS:&quot;D, d M yy&quot;,TICKS:&quot;!&quot;,TIMESTAMP:&quot;@&quot;,W3C:&quot;yyyy-mm-dd&quot;,formatDate:function(t,e,r){if(&quot;string&quot;!=typeof t&amp;&amp;(r=e,e=t,t=&quot;&quot;),!e)return&quot;&quot;;if(e.calendar()!==this)throw i.local.invalidFormat||i.regionalOptions[&quot;&quot;].invalidFormat;t=t||this.local.dateFormat;for(var n,a,o,s,l=(r=r||{}).dayNamesShort||this.local.dayNamesShort,c=r.dayNames||this.local.dayNames,u=r.monthNumbers||this.local.monthNumbers,f=r.monthNamesShort||this.local.monthNamesShort,h=r.monthNames||this.local.monthNames,p=(r.calculateWeek||this.local.calculateWeek,function(e,r){for(var n=1;w+n&lt;t.length&amp;&amp;t.charAt(w+n)===e;)n++;return w+=n-1,Math.floor(n/(r||1))&gt;1}),d=function(t,e,r,n){var i=&quot;&quot;+e;if(p(t,n))for(;i.length&lt;r;)i=&quot;0&quot;+i;return i},g=this,m=function(t){return&quot;function&quot;==typeof u?u.call(g,t,p(&quot;m&quot;)):x(d(&quot;m&quot;,t.month(),2))},v=function(t,e){return e?&quot;function&quot;==typeof h?h.call(g,t):h[t.month()-g.minMonth]:&quot;function&quot;==typeof f?f.call(g,t):f[t.month()-g.minMonth]},y=this.local.digits,x=function(t){return r.localNumbers&amp;&amp;y?y(t):t},b=&quot;&quot;,_=!1,w=0;w&lt;t.length;w++)if(_)&quot;'&quot;!==t.charAt(w)||p(&quot;'&quot;)?b+=t.charAt(w):_=!1;else switch(t.charAt(w)){case&quot;d&quot;:b+=x(d(&quot;d&quot;,e.day(),2));break;case&quot;D&quot;:b+=(n=&quot;D&quot;,a=e.dayOfWeek(),o=l,s=c,p(n)?s[a]:o[a]);break;case&quot;o&quot;:b+=d(&quot;o&quot;,e.dayOfYear(),3);break;case&quot;w&quot;:b+=d(&quot;w&quot;,e.weekOfYear(),2);break;case&quot;m&quot;:b+=m(e);break;case&quot;M&quot;:b+=v(e,p(&quot;M&quot;));break;case&quot;y&quot;:b+=p(&quot;y&quot;,2)?e.year():(e.year()%100&lt;10?&quot;0&quot;:&quot;&quot;)+e.year()%100;break;case&quot;Y&quot;:p(&quot;Y&quot;,2),b+=e.formatYear();break;case&quot;J&quot;:b+=e.toJD();break;case&quot;@&quot;:b+=(e.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case&quot;!&quot;:b+=(e.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case&quot;'&quot;:p(&quot;'&quot;)?b+=&quot;'&quot;:_=!0;break;default:b+=t.charAt(w)}return b},parseDate:function(t,e,r){if(null==e)throw i.local.invalidArguments||i.regionalOptions[&quot;&quot;].invalidArguments;if(&quot;&quot;===(e=&quot;object&quot;==typeof e?e.toString():e+&quot;&quot;))return null;t=t||this.local.dateFormat;var n=(r=r||{}).shortYearCutoff||this.shortYearCutoff;n=&quot;string&quot;!=typeof n?n:this.today().year()%100+parseInt(n,10);for(var a=r.dayNamesShort||this.local.dayNamesShort,o=r.dayNames||this.local.dayNames,s=r.parseMonth||this.local.parseMonth,l=r.monthNumbers||this.local.monthNumbers,c=r.monthNamesShort||this.local.monthNamesShort,u=r.monthNames||this.local.monthNames,f=-1,h=-1,p=-1,d=-1,g=-1,m=!1,v=!1,y=function(e,r){for(var n=1;A+n&lt;t.length&amp;&amp;t.charAt(A+n)===e;)n++;return A+=n-1,Math.floor(n/(r||1))&gt;1},x=function(t,r){var n=y(t,r),a=[2,3,n?4:2,n?4:2,10,11,20][&quot;oyYJ@!&quot;.indexOf(t)+1],o=new RegExp(&quot;^-?\\d{1,&quot;+a+&quot;}&quot;),s=e.substring(M).match(o);if(!s)throw(i.local.missingNumberAt||i.regionalOptions[&quot;&quot;].missingNumberAt).replace(/\{0\}/,M);return M+=s[0].length,parseInt(s[0],10)},b=this,_=function(){if(&quot;function&quot;==typeof l){y(&quot;m&quot;);var t=l.call(b,e.substring(M));return M+=t.length,t}return x(&quot;m&quot;)},w=function(t,r,n,a){for(var o=y(t,a)?n:r,s=0;s&lt;o.length;s++)if(e.substr(M,o[s].length).toLowerCase()===o[s].toLowerCase())return M+=o[s].length,s+b.minMonth;throw(i.local.unknownNameAt||i.regionalOptions[&quot;&quot;].unknownNameAt).replace(/\{0\}/,M)},T=function(){if(&quot;function&quot;==typeof u){var t=y(&quot;M&quot;)?u.call(b,e.substring(M)):c.call(b,e.substring(M));return M+=t.length,t}return w(&quot;M&quot;,c,u)},k=function(){if(e.charAt(M)!==t.charAt(A))throw(i.local.unexpectedLiteralAt||i.regionalOptions[&quot;&quot;].unexpectedLiteralAt).replace(/\{0\}/,M);M++},M=0,A=0;A&lt;t.length;A++)if(v)&quot;'&quot;!==t.charAt(A)||y(&quot;'&quot;)?k():v=!1;else switch(t.charAt(A)){case&quot;d&quot;:d=x(&quot;d&quot;);break;case&quot;D&quot;:w(&quot;D&quot;,a,o);break;case&quot;o&quot;:g=x(&quot;o&quot;);break;case&quot;w&quot;:x(&quot;w&quot;);break;case&quot;m&quot;:p=_();break;case&quot;M&quot;:p=T();break;case&quot;y&quot;:var S=A;m=!y(&quot;y&quot;,2),A=S,h=x(&quot;y&quot;,2);break;case&quot;Y&quot;:h=x(&quot;Y&quot;,2);break;case&quot;J&quot;:f=x(&quot;J&quot;)+.5,&quot;.&quot;===e.charAt(M)&amp;&amp;(M++,x(&quot;J&quot;));break;case&quot;@&quot;:f=x(&quot;@&quot;)/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case&quot;!&quot;:f=x(&quot;!&quot;)/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case&quot;*&quot;:M=e.length;break;case&quot;'&quot;:y(&quot;'&quot;)?k():v=!0;break;default:k()}if(M&lt;e.length)throw i.local.unexpectedText||i.regionalOptions[&quot;&quot;].unexpectedText;if(-1===h?h=this.today().year():h&lt;100&amp;&amp;m&amp;&amp;(h+=-1===n?1900:this.today().year()-this.today().year()%100-(h&lt;=n?0:100)),&quot;string&quot;==typeof p&amp;&amp;(p=s.call(this,h,p)),g&gt;-1){p=1,d=g;for(var E=this.daysInMonth(h,p);d&gt;E;E=this.daysInMonth(h,p))p++,d-=E}return f&gt;-1?this.fromJD(f):this.newDate(h,p,d)},determineDate:function(t,e,r,n,i){r&amp;&amp;&quot;object&quot;!=typeof r&amp;&amp;(i=n,n=r,r=null),&quot;string&quot;!=typeof n&amp;&amp;(i=n,n=&quot;&quot;);var a=this;return e=e?e.newDate():null,t=null==t?e:&quot;string&quot;==typeof t?function(t){try{return a.parseDate(n,t,i)}catch(t){}for(var e=((t=t.toLowerCase()).match(/^c/)&amp;&amp;r?r.newDate():null)||a.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,s=o.exec(t);s;)e.add(parseInt(s[1],10),s[2]||&quot;d&quot;),s=o.exec(t);return e}(t):&quot;number&quot;==typeof t?isNaN(t)||t===1/0||t===-1/0?e:a.today().add(t,&quot;d&quot;):a.newDate(t)}})},{&quot;./main&quot;:621,&quot;object-assign&quot;:499}],623:[function(t,e,r){e.exports=t(&quot;cwise-compiler&quot;)({args:[&quot;array&quot;,{offset:[1],array:0},&quot;scalar&quot;,&quot;scalar&quot;,&quot;index&quot;],pre:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},post:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},body:{body:&quot;{\n        var _inline_1_da = _inline_1_arg0_ - _inline_1_arg3_\n        var _inline_1_db = _inline_1_arg1_ - _inline_1_arg3_\n        if((_inline_1_da &gt;= 0) !== (_inline_1_db &gt;= 0)) {\n          _inline_1_arg2_.push(_inline_1_arg4_[0] + 0.5 + 0.5 * (_inline_1_da + _inline_1_db) / (_inline_1_da - _inline_1_db))\n        }\n      }&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg2_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg3_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg4_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[],localVars:[&quot;_inline_1_da&quot;,&quot;_inline_1_db&quot;]},funcName:&quot;zeroCrossings&quot;})},{&quot;cwise-compiler&quot;:151}],624:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=[];return e=+e||0,n(t.hi(t.shape[0]-1),r,e),r};var n=t(&quot;./lib/zc-core&quot;)},{&quot;./lib/zc-core&quot;:623}],625:[function(t,e,r){&quot;use strict&quot;;e.exports=[{path:&quot;&quot;,backoff:0},{path:&quot;M-2.4,-3V3L0.6,0Z&quot;,backoff:.6},{path:&quot;M-3.7,-2.5V2.5L1.3,0Z&quot;,backoff:1.3},{path:&quot;M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z&quot;,backoff:1.55},{path:&quot;M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z&quot;,backoff:1.6},{path:&quot;M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z&quot;,backoff:2},{path:&quot;M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z&quot;,backoff:0,noRotate:!0},{path:&quot;M2,2V-2H-2V2Z&quot;,backoff:0,noRotate:!0}]},{}],626:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./arrow_paths&quot;),i=t(&quot;../../plots/font_attributes&quot;),a=t(&quot;../../plots/cartesian/constants&quot;),o=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=o(&quot;annotation&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},text:{valType:&quot;string&quot;,editType:&quot;calc+arraydraw&quot;},textangle:{valType:&quot;angle&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},font:i({editType:&quot;calc+arraydraw&quot;,colorEditType:&quot;arraydraw&quot;}),width:{valType:&quot;number&quot;,min:1,dflt:null,editType:&quot;calc+arraydraw&quot;},height:{valType:&quot;number&quot;,min:1,dflt:null,editType:&quot;calc+arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;center&quot;,editType:&quot;arraydraw&quot;},valign:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;,editType:&quot;arraydraw&quot;},bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},bordercolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},borderpad:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc+arraydraw&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc+arraydraw&quot;},showarrow:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},arrowcolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},arrowhead:{valType:&quot;integer&quot;,min:0,max:n.length,dflt:1,editType:&quot;arraydraw&quot;},startarrowhead:{valType:&quot;integer&quot;,min:0,max:n.length,dflt:1,editType:&quot;arraydraw&quot;},arrowside:{valType:&quot;flaglist&quot;,flags:[&quot;end&quot;,&quot;start&quot;],extras:[&quot;none&quot;],dflt:&quot;end&quot;,editType:&quot;arraydraw&quot;},arrowsize:{valType:&quot;number&quot;,min:.3,dflt:1,editType:&quot;calc+arraydraw&quot;},startarrowsize:{valType:&quot;number&quot;,min:.3,dflt:1,editType:&quot;calc+arraydraw&quot;},arrowwidth:{valType:&quot;number&quot;,min:.1,editType:&quot;calc+arraydraw&quot;},standoff:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc+arraydraw&quot;},startstandoff:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc+arraydraw&quot;},ax:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},ay:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},axref:{valType:&quot;enumerated&quot;,dflt:&quot;pixel&quot;,values:[&quot;pixel&quot;,a.idRegex.x.toString()],editType:&quot;calc&quot;},ayref:{valType:&quot;enumerated&quot;,dflt:&quot;pixel&quot;,values:[&quot;pixel&quot;,a.idRegex.y.toString()],editType:&quot;calc&quot;},xref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,a.idRegex.x.toString()],editType:&quot;calc&quot;},x:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;auto&quot;,editType:&quot;calc+arraydraw&quot;},xshift:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},yref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,a.idRegex.y.toString()],editType:&quot;calc&quot;},y:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;auto&quot;,editType:&quot;calc+arraydraw&quot;},yshift:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},clicktoshow:{valType:&quot;enumerated&quot;,values:[!1,&quot;onoff&quot;,&quot;onout&quot;],dflt:!1,editType:&quot;arraydraw&quot;},xclick:{valType:&quot;any&quot;,editType:&quot;arraydraw&quot;},yclick:{valType:&quot;any&quot;,editType:&quot;arraydraw&quot;},hovertext:{valType:&quot;string&quot;,editType:&quot;arraydraw&quot;},hoverlabel:{bgcolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},bordercolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},font:i({editType:&quot;arraydraw&quot;}),editType:&quot;arraydraw&quot;},captureevents:{valType:&quot;boolean&quot;,editType:&quot;arraydraw&quot;},editType:&quot;calc&quot;,_deprecated:{ref:{valType:&quot;string&quot;,editType:&quot;calc&quot;}}})},{&quot;../../constants/axis_placeable_objects&quot;:746,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834,&quot;../../plots/font_attributes&quot;:856,&quot;./arrow_paths&quot;:625}],627:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;./draw&quot;).draw;function o(t){var e=t._fullLayout;n.filterVisible(e.annotations).forEach((function(e){var r=i.getFromId(t,e.xref),n=i.getFromId(t,e.yref),a=i.getRefType(e.xref),o=i.getRefType(e.yref);e._extremes={},&quot;range&quot;===a&amp;&amp;s(e,r),&quot;range&quot;===o&amp;&amp;s(e,n)}))}function s(t,e){var r,n=e._id,a=n.charAt(0),o=t[a],s=t[&quot;a&quot;+a],l=t[a+&quot;ref&quot;],c=t[&quot;a&quot;+a+&quot;ref&quot;],u=t[&quot;_&quot;+a+&quot;padplus&quot;],f=t[&quot;_&quot;+a+&quot;padminus&quot;],h={x:1,y:-1}[a]*t[a+&quot;shift&quot;],p=3*t.arrowsize*t.arrowwidth||0,d=p+h,g=p-h,m=3*t.startarrowsize*t.arrowwidth||0,v=m+h,y=m-h;if(c===l){var x=i.findExtremes(e,[e.r2c(o)],{ppadplus:d,ppadminus:g}),b=i.findExtremes(e,[e.r2c(s)],{ppadplus:Math.max(u,v),ppadminus:Math.max(f,y)});r={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else v=s?v+s:v,y=s?y-s:y,r=i.findExtremes(e,[e.r2c(o)],{ppadplus:Math.max(u,d,v),ppadminus:Math.max(f,g,y)});t._extremes[n]=r}e.exports=function(t){var e=t._fullLayout;if(n.filterVisible(e.annotations).length&amp;&amp;t._fullData.length)return n.syncOrAsync([a,o],t)}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./draw&quot;:632}],628:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plot_api/plot_template&quot;).arrayEditor;function o(t,e){var r,n,i,a,o,l,c,u=t._fullLayout.annotations,f=[],h=[],p=[],d=(e||[]).length;for(r=0;r&lt;u.length;r++)if(a=(i=u[r]).clicktoshow){for(n=0;n&lt;d;n++)if(l=(o=e[n]).xaxis,c=o.yaxis,l._id===i.xref&amp;&amp;c._id===i.yref&amp;&amp;l.d2r(o.x)===s(i._xclick,l)&amp;&amp;c.d2r(o.y)===s(i._yclick,c)){(i.visible?&quot;onout&quot;===a?h:p:f).push(r);break}n===d&amp;&amp;i.visible&amp;&amp;&quot;onout&quot;===a&amp;&amp;h.push(r)}return{on:f,off:h,explicitOff:p}}function s(t,e){return&quot;log&quot;===e.type?e.l2r(t):e.d2r(t)}e.exports={hasClickToShow:function(t,e){var r=o(t,e);return r.on.length&gt;0||r.explicitOff.length&gt;0},onClick:function(t,e){var r,s,l=o(t,e),c=l.on,u=l.off.concat(l.explicitOff),f={},h=t._fullLayout.annotations;if(!c.length&amp;&amp;!u.length)return;for(r=0;r&lt;c.length;r++)(s=a(t.layout,&quot;annotations&quot;,h[c[r]])).modifyItem(&quot;visible&quot;,!0),n.extendFlat(f,s.getUpdateObj());for(r=0;r&lt;u.length;r++)(s=a(t.layout,&quot;annotations&quot;,h[u[r]])).modifyItem(&quot;visible&quot;,!1),n.extendFlat(f,s.getUpdateObj());return i.call(&quot;update&quot;,t,{},f)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../registry&quot;:911}],629:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;);e.exports=function(t,e,r,a){a(&quot;opacity&quot;);var o=a(&quot;bgcolor&quot;),s=a(&quot;bordercolor&quot;),l=i.opacity(s);a(&quot;borderpad&quot;);var c=a(&quot;borderwidth&quot;),u=a(&quot;showarrow&quot;);if(a(&quot;text&quot;,u?&quot; &quot;:r._dfltTitle.annotation),a(&quot;textangle&quot;),n.coerceFont(a,&quot;font&quot;,r.font),a(&quot;width&quot;),a(&quot;align&quot;),a(&quot;height&quot;)&amp;&amp;a(&quot;valign&quot;),u){var f,h,p=a(&quot;arrowside&quot;);-1!==p.indexOf(&quot;end&quot;)&amp;&amp;(f=a(&quot;arrowhead&quot;),h=a(&quot;arrowsize&quot;)),-1!==p.indexOf(&quot;start&quot;)&amp;&amp;(a(&quot;startarrowhead&quot;,f),a(&quot;startarrowsize&quot;,h)),a(&quot;arrowcolor&quot;,l?e.bordercolor:i.defaultLine),a(&quot;arrowwidth&quot;,2*(l&amp;&amp;c||1)),a(&quot;standoff&quot;),a(&quot;startstandoff&quot;)}var d=a(&quot;hovertext&quot;),g=r.hoverlabel||{};if(d){var m=a(&quot;hoverlabel.bgcolor&quot;,g.bgcolor||(i.opacity(o)?i.rgb(o):i.defaultLine)),v=a(&quot;hoverlabel.bordercolor&quot;,g.bordercolor||i.contrast(m));n.coerceFont(a,&quot;hoverlabel.font&quot;,{family:g.font.family,size:g.font.size,color:g.font.color||v})}a(&quot;captureevents&quot;,!!d)}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643}],630:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib/to_log_range&quot;);e.exports=function(t,e,r,a){e=e||{};var o=&quot;log&quot;===r&amp;&amp;&quot;linear&quot;===e.type,s=&quot;linear&quot;===r&amp;&amp;&quot;log&quot;===e.type;if(o||s)for(var l,c,u=t._fullLayout.annotations,f=e._id.charAt(0),h=0;h&lt;u.length;h++)l=u[h],c=&quot;annotations[&quot;+h+&quot;].&quot;,l[f+&quot;ref&quot;]===e._id&amp;&amp;p(f),l[&quot;a&quot;+f+&quot;ref&quot;]===e._id&amp;&amp;p(&quot;a&quot;+f);function p(t){var r=l[t],s=null;s=o?i(r,e.range):Math.pow(10,r),n(s)||(s=null),a(c+t,s)}}},{&quot;../../lib/to_log_range&quot;:805,&quot;fast-isnumeric&quot;:241}],631:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./common_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r){function a(r,i){return n.coerce(t,e,s,r,i)}var l=a(&quot;visible&quot;),c=a(&quot;clicktoshow&quot;);if(l||c){o(t,e,r,a);for(var u=e.showarrow,f=[&quot;x&quot;,&quot;y&quot;],h=[-10,-30],p={_fullLayout:r},d=0;d&lt;2;d++){var g=f[d],m=i.coerceRef(t,e,p,g,&quot;&quot;,&quot;paper&quot;);if(&quot;paper&quot;!==m)i.getFromId(p,m)._annIndices.push(e._index);if(i.coercePosition(e,p,a,m,g,.5),u){var v=&quot;a&quot;+g,y=i.coerceRef(t,e,p,v,&quot;pixel&quot;,[&quot;pixel&quot;,&quot;paper&quot;]);&quot;pixel&quot;!==y&amp;&amp;y!==m&amp;&amp;(y=e[v]=&quot;pixel&quot;);var x=&quot;pixel&quot;===y?h[d]:.4;i.coercePosition(e,p,a,y,v,x)}a(g+&quot;anchor&quot;),a(g+&quot;shift&quot;)}if(n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),u&amp;&amp;n.noneOrAll(t,e,[&quot;ax&quot;,&quot;ay&quot;]),c){var b=a(&quot;xclick&quot;),_=a(&quot;yclick&quot;);e._xclick=void 0===b?e.x:i.cleanPosition(b,p,e.xref),e._yclick=void 0===_?e.y:i.cleanPosition(_,p,e.yref)}}}e.exports=function(t,e){a(t,e,{name:&quot;annotations&quot;,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:626,&quot;./common_defaults&quot;:629}],632:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;../color&quot;),u=t(&quot;../drawing&quot;),f=t(&quot;../fx&quot;),h=t(&quot;../../lib/svg_text_utils&quot;),p=t(&quot;../../lib/setcursor&quot;),d=t(&quot;../dragelement&quot;),g=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,m=t(&quot;./draw_arrow_head&quot;);function v(t,e){var r=t._fullLayout.annotations[e]||{},n=l.getFromId(t,r.xref),i=l.getFromId(t,r.yref);n&amp;&amp;n.setScale(),i&amp;&amp;i.setScale(),x(t,r,e,!1,n,i)}function y(t,e,r,n,i){var a=i[r],o=i[r+&quot;ref&quot;],s=-1!==r.indexOf(&quot;y&quot;),c=&quot;domain&quot;===l.getRefType(o),u=s?n.h:n.w;return t?c?a+(s?-e:e)/t._length:t.p2r(t.r2p(a)+e):a+(s?-e:e)/u}function x(t,e,r,a,v,x){var b,_,w=t._fullLayout,T=t._fullLayout._size,k=t._context.edits;a?(b=&quot;annotation-&quot;+a,_=a+&quot;.annotations&quot;):(b=&quot;annotation&quot;,_=&quot;annotations&quot;);var M=g(t.layout,_,e),A=M.modifyBase,S=M.modifyItem,E=M.getUpdateObj;w._infolayer.selectAll(&quot;.&quot;+b+'[data-index=&quot;'+r+'&quot;]').remove();var C=&quot;clip&quot;+w._uid+&quot;_ann&quot;+r;if(e._input&amp;&amp;!1!==e.visible){var L={x:{},y:{}},I=+e.textangle||0,P=w._infolayer.append(&quot;g&quot;).classed(b,!0).attr(&quot;data-index&quot;,String(r)).style(&quot;opacity&quot;,e.opacity),z=P.append(&quot;g&quot;).classed(&quot;annotation-text-g&quot;,!0),O=k[e.showarrow?&quot;annotationTail&quot;:&quot;annotationPosition&quot;],D=e.captureevents||k.annotationText||O,R=z.append(&quot;g&quot;).style(&quot;pointer-events&quot;,D?&quot;all&quot;:null).call(p,&quot;pointer&quot;).on(&quot;click&quot;,(function(){t._dragging=!1,t.emit(&quot;plotly_clickannotation&quot;,Y(n.event))}));e.hovertext&amp;&amp;R.on(&quot;mouseover&quot;,(function(){var r=e.hoverlabel,n=r.font,i=this.getBoundingClientRect(),a=t.getBoundingClientRect();f.loneHover({x0:i.left-a.left,x1:i.right-a.left,y:(i.top+i.bottom)/2-a.top,text:e.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:w._hoverlayer.node(),outerContainer:w._paper.node(),gd:t})})).on(&quot;mouseout&quot;,(function(){f.loneUnhover(w._hoverlayer.node())}));var F=e.borderwidth,B=e.borderpad,N=F+B,j=R.append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bg&quot;).style(&quot;stroke-width&quot;,F+&quot;px&quot;).call(c.stroke,e.bordercolor).call(c.fill,e.bgcolor),U=e.width||e.height,V=w._topclips.selectAll(&quot;#&quot;+C).data(U?[0]:[]);V.enter().append(&quot;clipPath&quot;).classed(&quot;annclip&quot;,!0).attr(&quot;id&quot;,C).append(&quot;rect&quot;),V.exit().remove();var q=e.font,H=w._meta?o.templateString(e.text,w._meta):e.text,G=R.append(&quot;text&quot;).classed(&quot;annotation-text&quot;,!0).text(H);k.annotationText?G.call(h.makeEditable,{delegate:R,gd:t}).call(W).on(&quot;edit&quot;,(function(r){e.text=r,this.call(W),S(&quot;text&quot;,r),v&amp;&amp;v.autorange&amp;&amp;A(v._name+&quot;.autorange&quot;,!0),x&amp;&amp;x.autorange&amp;&amp;A(x._name+&quot;.autorange&quot;,!0),i.call(&quot;_guiRelayout&quot;,t,E())})):G.call(W)}else n.selectAll(&quot;#&quot;+C).remove();function Y(t){var n={index:r,annotation:e._input,fullAnnotation:e,event:t};return a&amp;&amp;(n.subplotId=a),n}function W(r){return r.call(u.font,q).attr({&quot;text-anchor&quot;:{left:&quot;start&quot;,right:&quot;end&quot;}[e.align]||&quot;middle&quot;}),h.convertToTspans(r,t,X),r}function X(){var r=G.selectAll(&quot;a&quot;);1===r.size()&amp;&amp;r.text()===G.text()&amp;&amp;R.insert(&quot;a&quot;,&quot;:first-child&quot;).attr({&quot;xlink:xlink:href&quot;:r.attr(&quot;xlink:href&quot;),&quot;xlink:xlink:show&quot;:r.attr(&quot;xlink:show&quot;)}).style({cursor:&quot;pointer&quot;}).node().appendChild(j.node());var n=R.select(&quot;.annotation-text-math-group&quot;),f=!n.empty(),g=u.bBox((f?n:G).node()),b=g.width,_=g.height,M=e.width||b,D=e.height||_,B=Math.round(M+2*N),q=Math.round(D+2*N);function H(t,e){return&quot;auto&quot;===e&amp;&amp;(e=t&lt;1/3?&quot;left&quot;:t&gt;2/3?&quot;right&quot;:&quot;center&quot;),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[e]}for(var W=!1,X=[&quot;x&quot;,&quot;y&quot;],Z=0;Z&lt;X.length;Z++){var J,K,Q,$,tt,et=X[Z],rt=e[et+&quot;ref&quot;]||et,nt=e[&quot;a&quot;+et+&quot;ref&quot;],it={x:v,y:x}[et],at=(I+(&quot;x&quot;===et?0:-90))*Math.PI/180,ot=B*Math.cos(at),st=q*Math.sin(at),lt=Math.abs(ot)+Math.abs(st),ct=e[et+&quot;anchor&quot;],ut=e[et+&quot;shift&quot;]*(&quot;x&quot;===et?1:-1),ft=L[et],ht=l.getRefType(rt);if(it&amp;&amp;&quot;domain&quot;!==ht){var pt=it.r2fraction(e[et]);(pt&lt;0||pt&gt;1)&amp;&amp;(nt===rt?((pt=it.r2fraction(e[&quot;a&quot;+et]))&lt;0||pt&gt;1)&amp;&amp;(W=!0):W=!0),J=it._offset+it.r2p(e[et]),$=.5}else{var dt=&quot;domain&quot;===ht;&quot;x&quot;===et?(Q=e[et],J=dt?it._offset+it._length*Q:J=T.l+T.w*Q):(Q=1-e[et],J=dt?it._offset+it._length*Q:J=T.t+T.h*Q),$=e.showarrow?.5:Q}if(e.showarrow){ft.head=J;var gt=e[&quot;a&quot;+et];if(tt=ot*H(.5,e.xanchor)-st*H(.5,e.yanchor),nt===rt){var mt=l.getRefType(nt);&quot;domain&quot;===mt?(&quot;y&quot;===et&amp;&amp;(gt=1-gt),ft.tail=it._offset+it._length*gt):&quot;paper&quot;===mt?&quot;y&quot;===et?(gt=1-gt,ft.tail=T.t+T.h*gt):ft.tail=T.l+T.w*gt:ft.tail=it._offset+it.r2p(gt),K=tt}else ft.tail=J+gt,K=tt+gt;ft.text=ft.tail+tt;var vt=w[&quot;x&quot;===et?&quot;width&quot;:&quot;height&quot;];if(&quot;paper&quot;===rt&amp;&amp;(ft.head=o.constrain(ft.head,1,vt-1)),&quot;pixel&quot;===nt){var yt=-Math.max(ft.tail-3,ft.text),xt=Math.min(ft.tail+3,ft.text)-vt;yt&gt;0?(ft.tail+=yt,ft.text+=yt):xt&gt;0&amp;&amp;(ft.tail-=xt,ft.text-=xt)}ft.tail+=ut,ft.head+=ut}else K=tt=lt*H($,ct),ft.text=J+tt;ft.text+=ut,tt+=ut,K+=ut,e[&quot;_&quot;+et+&quot;padplus&quot;]=lt/2+K,e[&quot;_&quot;+et+&quot;padminus&quot;]=lt/2-K,e[&quot;_&quot;+et+&quot;size&quot;]=lt,e[&quot;_&quot;+et+&quot;shift&quot;]=tt}if(W)R.remove();else{var bt=0,_t=0;if(&quot;left&quot;!==e.align&amp;&amp;(bt=(M-b)*(&quot;center&quot;===e.align?.5:1)),&quot;top&quot;!==e.valign&amp;&amp;(_t=(D-_)*(&quot;middle&quot;===e.valign?.5:1)),f)n.select(&quot;svg&quot;).attr({x:N+bt-1,y:N+_t}).call(u.setClipUrl,U?C:null,t);else{var wt=N+_t-g.top,Tt=N+bt-g.left;G.call(h.positionText,Tt,wt).call(u.setClipUrl,U?C:null,t)}V.select(&quot;rect&quot;).call(u.setRect,N,N,M,D),j.call(u.setRect,F/2,F/2,B-F,q-F),R.call(u.setTranslate,Math.round(L.x.text-B/2),Math.round(L.y.text-q/2)),z.attr({transform:&quot;rotate(&quot;+I+&quot;,&quot;+L.x.text+&quot;,&quot;+L.y.text+&quot;)&quot;});var kt,Mt=function(r,n){P.selectAll(&quot;.annotation-arrow-g&quot;).remove();var l=L.x.head,f=L.y.head,h=L.x.tail+r,p=L.y.tail+n,g=L.x.text+r,b=L.y.text+n,_=o.rotationXYMatrix(I,g,b),w=o.apply2DTransform(_),M=o.apply2DTransform2(_),C=+j.attr(&quot;width&quot;),O=+j.attr(&quot;height&quot;),D=g-.5*C,F=D+C,B=b-.5*O,N=B+O,U=[[D,B,D,N],[D,N,F,N],[F,N,F,B],[F,B,D,B]].map(M);if(!U.reduce((function(t,e){return t^!!o.segmentsIntersect(l,f,l+1e6,f+1e6,e[0],e[1],e[2],e[3])}),!1)){U.forEach((function(t){var e=o.segmentsIntersect(h,p,l,f,t[0],t[1],t[2],t[3]);e&amp;&amp;(h=e.x,p=e.y)}));var V=e.arrowwidth,q=e.arrowcolor,H=e.arrowside,G=P.append(&quot;g&quot;).style({opacity:c.opacity(q)}).classed(&quot;annotation-arrow-g&quot;,!0),Y=G.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M&quot;+h+&quot;,&quot;+p+&quot;L&quot;+l+&quot;,&quot;+f).style(&quot;stroke-width&quot;,V+&quot;px&quot;).call(c.stroke,c.rgb(q));if(m(Y,H,e),k.annotationPosition&amp;&amp;Y.node().parentNode&amp;&amp;!a){var W=l,X=f;if(e.standoff){var Z=Math.sqrt(Math.pow(l-h,2)+Math.pow(f-p,2));W+=e.standoff*(h-l)/Z,X+=e.standoff*(p-f)/Z}var J,K,Q=G.append(&quot;path&quot;).classed(&quot;annotation-arrow&quot;,!0).classed(&quot;anndrag&quot;,!0).classed(&quot;cursor-move&quot;,!0).attr({d:&quot;M3,3H-3V-3H3ZM0,0L&quot;+(h-W)+&quot;,&quot;+(p-X),transform:s(W,X)}).style(&quot;stroke-width&quot;,V+6+&quot;px&quot;).call(c.stroke,&quot;rgba(0,0,0,0)&quot;).call(c.fill,&quot;rgba(0,0,0,0)&quot;);d.init({element:Q.node(),gd:t,prepFn:function(){var t=u.getTranslate(R);J=t.x,K=t.y,v&amp;&amp;v.autorange&amp;&amp;A(v._name+&quot;.autorange&quot;,!0),x&amp;&amp;x.autorange&amp;&amp;A(x._name+&quot;.autorange&quot;,!0)},moveFn:function(t,r){var n=w(J,K),i=n[0]+t,a=n[1]+r;R.call(u.setTranslate,i,a),S(&quot;x&quot;,y(v,t,&quot;x&quot;,T,e)),S(&quot;y&quot;,y(x,r,&quot;y&quot;,T,e)),e.axref===e.xref&amp;&amp;S(&quot;ax&quot;,y(v,t,&quot;ax&quot;,T,e)),e.ayref===e.yref&amp;&amp;S(&quot;ay&quot;,y(x,r,&quot;ay&quot;,T,e)),G.attr(&quot;transform&quot;,s(t,r)),z.attr({transform:&quot;rotate(&quot;+I+&quot;,&quot;+i+&quot;,&quot;+a+&quot;)&quot;})},doneFn:function(){i.call(&quot;_guiRelayout&quot;,t,E());var e=document.querySelector(&quot;.js-notes-box-panel&quot;);e&amp;&amp;e.redraw(e.selectedObj)}})}}};if(e.showarrow&amp;&amp;Mt(0,0),O)d.init({element:R.node(),gd:t,prepFn:function(){kt=z.attr(&quot;transform&quot;)},moveFn:function(t,r){var n=&quot;pointer&quot;;if(e.showarrow)e.axref===e.xref?S(&quot;ax&quot;,y(v,t,&quot;ax&quot;,T,e)):S(&quot;ax&quot;,e.ax+t),e.ayref===e.yref?S(&quot;ay&quot;,y(x,r,&quot;ay&quot;,T.w,e)):S(&quot;ay&quot;,e.ay+r),Mt(t,r);else{if(a)return;var i,o;if(v)i=y(v,t,&quot;x&quot;,T,e);else{var l=e._xsize/T.w,c=e.x+(e._xshift-e.xshift)/T.w-l/2;i=d.align(c+t/T.w,l,0,1,e.xanchor)}if(x)o=y(x,r,&quot;y&quot;,T,e);else{var u=e._ysize/T.h,f=e.y-(e._yshift+e.yshift)/T.h-u/2;o=d.align(f-r/T.h,u,0,1,e.yanchor)}S(&quot;x&quot;,i),S(&quot;y&quot;,o),v&amp;&amp;x||(n=d.getCursor(v?.5:i,x?.5:o,e.xanchor,e.yanchor))}z.attr({transform:s(t,r)+kt}),p(R,n)},clickFn:function(r,n){e.captureevents&amp;&amp;t.emit(&quot;plotly_clickannotation&quot;,Y(n))},doneFn:function(){p(R),i.call(&quot;_guiRelayout&quot;,t,E());var e=document.querySelector(&quot;.js-notes-box-panel&quot;);e&amp;&amp;e.redraw(e.selectedObj)}})}}}e.exports={draw:function(t){var e=t._fullLayout;e._infolayer.selectAll(&quot;.annotation&quot;).remove();for(var r=0;r&lt;e.annotations.length;r++)e.annotations[r].visible&amp;&amp;v(t,r);return a.previousPromises(t)},drawOne:v,drawRaw:x}},{&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../fx&quot;:683,&quot;./draw_arrow_head&quot;:633,d3:169}],633:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../color&quot;),a=t(&quot;./arrow_paths&quot;),o=t(&quot;../../lib&quot;),s=o.strScale,l=o.strRotate,c=o.strTranslate;e.exports=function(t,e,r){var o,u,f,h,p=t.node(),d=a[r.arrowhead||0],g=a[r.startarrowhead||0],m=(r.arrowwidth||1)*(r.arrowsize||1),v=(r.arrowwidth||1)*(r.startarrowsize||1),y=e.indexOf(&quot;start&quot;)&gt;=0,x=e.indexOf(&quot;end&quot;)&gt;=0,b=d.backoff*m+r.standoff,_=g.backoff*v+r.startstandoff;if(&quot;line&quot;===p.nodeName){o={x:+t.attr(&quot;x1&quot;),y:+t.attr(&quot;y1&quot;)},u={x:+t.attr(&quot;x2&quot;),y:+t.attr(&quot;y2&quot;)};var w=o.x-u.x,T=o.y-u.y;if(h=(f=Math.atan2(T,w))+Math.PI,b&amp;&amp;_&amp;&amp;b+_&gt;Math.sqrt(w*w+T*T))return void O();if(b){if(b*b&gt;w*w+T*T)return void O();var k=b*Math.cos(f),M=b*Math.sin(f);u.x+=k,u.y+=M,t.attr({x2:u.x,y2:u.y})}if(_){if(_*_&gt;w*w+T*T)return void O();var A=_*Math.cos(f),S=_*Math.sin(f);o.x-=A,o.y-=S,t.attr({x1:o.x,y1:o.y})}}else if(&quot;path&quot;===p.nodeName){var E=p.getTotalLength(),C=&quot;&quot;;if(E&lt;b+_)return void O();var L=p.getPointAtLength(0),I=p.getPointAtLength(.1);f=Math.atan2(L.y-I.y,L.x-I.x),o=p.getPointAtLength(Math.min(_,E)),C=&quot;0px,&quot;+_+&quot;px,&quot;;var P=p.getPointAtLength(E),z=p.getPointAtLength(E-.1);h=Math.atan2(P.y-z.y,P.x-z.x),u=p.getPointAtLength(Math.max(0,E-b)),C+=E-(C?_+b:b)+&quot;px,&quot;+E+&quot;px&quot;,t.style(&quot;stroke-dasharray&quot;,C)}function O(){t.style(&quot;stroke-dasharray&quot;,&quot;0px,100px&quot;)}function D(e,a,o,u){e.path&amp;&amp;(e.noRotate&amp;&amp;(o=0),n.select(p.parentNode).append(&quot;path&quot;).attr({class:t.attr(&quot;class&quot;),d:e.path,transform:c(a.x,a.y)+l(180*o/Math.PI)+s(u)}).style({fill:i.rgb(r.arrowcolor),&quot;stroke-width&quot;:0}))}y&amp;&amp;D(g,o,f,v),x&amp;&amp;D(d,u,h,m)}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;./arrow_paths&quot;:625,d3:169}],634:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;),i=t(&quot;./click&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;annotations&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;annotations&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:i.hasClickToShow,onClick:i.onClick,convertCoords:t(&quot;./convert_coords&quot;)}},{&quot;../../plots/cartesian/include_components&quot;:840,&quot;./attributes&quot;:626,&quot;./calc_autorange&quot;:627,&quot;./click&quot;:628,&quot;./convert_coords&quot;:630,&quot;./defaults&quot;:631,&quot;./draw&quot;:632}],635:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/attributes&quot;),i=t(&quot;../../plot_api/edit_types&quot;).overrideAll,a=t(&quot;../../plot_api/plot_template&quot;).templatedArray;e.exports=i(a(&quot;annotation&quot;,{visible:n.visible,x:{valType:&quot;any&quot;},y:{valType:&quot;any&quot;},z:{valType:&quot;any&quot;},ax:{valType:&quot;number&quot;},ay:{valType:&quot;number&quot;},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,startarrowhead:n.startarrowhead,arrowside:n.arrowside,arrowsize:n.arrowsize,startarrowsize:n.startarrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,startstandoff:n.startstandoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents}),&quot;calc&quot;,&quot;from-root&quot;)},{&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../annotations/attributes&quot;:626}],636:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;);function a(t,e){var r=e.fullSceneLayout.domain,a=e.fullLayout._size,o={pdata:null,type:&quot;linear&quot;,autorange:!1,range:[-1/0,1/0]};t._xa={},n.extendFlat(t._xa,o),i.setConvert(t._xa),t._xa._offset=a.l+r.x[0]*a.w,t._xa.l2p=function(){return.5*(1+t._pdata[0]/t._pdata[3])*a.w*(r.x[1]-r.x[0])},t._ya={},n.extendFlat(t._ya,o),i.setConvert(t._ya),t._ya._offset=a.t+(1-r.y[1])*a.h,t._ya.l2p=function(){return.5*(1-t._pdata[1]/t._pdata[3])*a.h*(r.y[1]-r.y[0])}}e.exports=function(t){for(var e=t.fullSceneLayout.annotations,r=0;r&lt;e.length;r++)a(e[r],t);t.fullLayout._infolayer.selectAll(&quot;.annotation-&quot;+t.id).remove()}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],637:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;../annotations/common_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r,a){function l(r,i){return n.coerce(t,e,s,r,i)}function c(t){var n=t+&quot;axis&quot;,a={_fullLayout:{}};return a._fullLayout[n]=r[n],i.coercePosition(e,a,l,t,t,.5)}l(&quot;visible&quot;)&amp;&amp;(o(t,e,a.fullLayout,l),c(&quot;x&quot;),c(&quot;y&quot;),c(&quot;z&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;]),e.xref=&quot;x&quot;,e.yref=&quot;y&quot;,e.zref=&quot;z&quot;,l(&quot;xanchor&quot;),l(&quot;yanchor&quot;),l(&quot;xshift&quot;),l(&quot;yshift&quot;),e.showarrow&amp;&amp;(e.axref=&quot;pixel&quot;,e.ayref=&quot;pixel&quot;,l(&quot;ax&quot;,-10),l(&quot;ay&quot;,-30),n.noneOrAll(t,e,[&quot;ax&quot;,&quot;ay&quot;])))}e.exports=function(t,e,r){a(t,e,{name:&quot;annotations&quot;,handleItemDefaults:l,fullLayout:r.fullLayout})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;../annotations/common_defaults&quot;:629,&quot;./attributes&quot;:635}],638:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/draw&quot;).drawRaw,i=t(&quot;../../plots/gl3d/project&quot;),a=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];e.exports=function(t){for(var e=t.fullSceneLayout,r=t.dataScale,o=e.annotations,s=0;s&lt;o.length;s++){for(var l=o[s],c=!1,u=0;u&lt;3;u++){var f=a[u],h=l[f],p=e[f+&quot;axis&quot;].r2fraction(h);if(p&lt;0||p&gt;1){c=!0;break}}c?t.fullLayout._infolayer.select(&quot;.annotation-&quot;+t.id+'[data-index=&quot;'+s+'&quot;]').remove():(l._pdata=i(t.glplot.cameraParams,[e.xaxis.r2l(l.x)*r[0],e.yaxis.r2l(l.y)*r[1],e.zaxis.r2l(l.z)*r[2]]),n(t.graphDiv,l,s,t.id,l._xa,l._ya))}}},{&quot;../../plots/gl3d/project&quot;:879,&quot;../annotations/draw&quot;:632}],639:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;annotations3d&quot;,schema:{subplots:{scene:{annotations:t(&quot;./attributes&quot;)}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),includeBasePlot:function(t,e){var r=n.subplotsRegistry.gl3d;if(!r)return;for(var a=r.attrRegex,o=Object.keys(t),s=0;s&lt;o.length;s++){var l=o[s];a.test(l)&amp;&amp;(t[l].annotations||[]).length&amp;&amp;(i.pushUnique(e._basePlotModules,r),i.pushUnique(e._subplots.gl3d,l))}},convert:t(&quot;./convert&quot;),draw:t(&quot;./draw&quot;)}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:635,&quot;./convert&quot;:636,&quot;./defaults&quot;:637,&quot;./draw&quot;:638}],640:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;world-calendars/dist/main&quot;),t(&quot;world-calendars/dist/plus&quot;),t(&quot;world-calendars/dist/calendars/chinese&quot;),t(&quot;world-calendars/dist/calendars/coptic&quot;),t(&quot;world-calendars/dist/calendars/discworld&quot;),t(&quot;world-calendars/dist/calendars/ethiopian&quot;),t(&quot;world-calendars/dist/calendars/hebrew&quot;),t(&quot;world-calendars/dist/calendars/islamic&quot;),t(&quot;world-calendars/dist/calendars/julian&quot;),t(&quot;world-calendars/dist/calendars/mayan&quot;),t(&quot;world-calendars/dist/calendars/nanakshahi&quot;),t(&quot;world-calendars/dist/calendars/nepali&quot;),t(&quot;world-calendars/dist/calendars/persian&quot;),t(&quot;world-calendars/dist/calendars/taiwan&quot;),t(&quot;world-calendars/dist/calendars/thai&quot;),t(&quot;world-calendars/dist/calendars/ummalqura&quot;)},{&quot;world-calendars/dist/calendars/chinese&quot;:607,&quot;world-calendars/dist/calendars/coptic&quot;:608,&quot;world-calendars/dist/calendars/discworld&quot;:609,&quot;world-calendars/dist/calendars/ethiopian&quot;:610,&quot;world-calendars/dist/calendars/hebrew&quot;:611,&quot;world-calendars/dist/calendars/islamic&quot;:612,&quot;world-calendars/dist/calendars/julian&quot;:613,&quot;world-calendars/dist/calendars/mayan&quot;:614,&quot;world-calendars/dist/calendars/nanakshahi&quot;:615,&quot;world-calendars/dist/calendars/nepali&quot;:616,&quot;world-calendars/dist/calendars/persian&quot;:617,&quot;world-calendars/dist/calendars/taiwan&quot;:618,&quot;world-calendars/dist/calendars/thai&quot;:619,&quot;world-calendars/dist/calendars/ummalqura&quot;:620,&quot;world-calendars/dist/main&quot;:621,&quot;world-calendars/dist/plus&quot;:622}],641:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./calendars&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;),o=a.EPOCHJD,s=a.ONEDAY,l={valType:&quot;enumerated&quot;,values:Object.keys(n.calendars),editType:&quot;calc&quot;,dflt:&quot;gregorian&quot;},c=function(t,e,r,n){var a={};return a[r]=l,i.coerce(t,e,a,r,n)},u={d:{0:&quot;dd&quot;,&quot;-&quot;:&quot;d&quot;},e:{0:&quot;d&quot;,&quot;-&quot;:&quot;d&quot;},a:{0:&quot;D&quot;,&quot;-&quot;:&quot;D&quot;},A:{0:&quot;DD&quot;,&quot;-&quot;:&quot;DD&quot;},j:{0:&quot;oo&quot;,&quot;-&quot;:&quot;o&quot;},W:{0:&quot;ww&quot;,&quot;-&quot;:&quot;w&quot;},m:{0:&quot;mm&quot;,&quot;-&quot;:&quot;m&quot;},b:{0:&quot;M&quot;,&quot;-&quot;:&quot;M&quot;},B:{0:&quot;MM&quot;,&quot;-&quot;:&quot;MM&quot;},y:{0:&quot;yy&quot;,&quot;-&quot;:&quot;yy&quot;},Y:{0:&quot;yyyy&quot;,&quot;-&quot;:&quot;yyyy&quot;},U:&quot;##&quot;,w:&quot;##&quot;,c:{0:&quot;D M d %X yyyy&quot;,&quot;-&quot;:&quot;D M d %X yyyy&quot;},x:{0:&quot;mm/dd/yyyy&quot;,&quot;-&quot;:&quot;mm/dd/yyyy&quot;}};var f={};function h(t){var e=f[t];return e||(e=f[t]=n.instance(t))}function p(t){return i.extendFlat({},l,{description:t})}function d(t){return&quot;Sets the calendar system to use with `&quot;+t+&quot;` date data.&quot;}var g={xcalendar:p(d(&quot;x&quot;))},m=i.extendFlat({},g,{ycalendar:p(d(&quot;y&quot;))}),v=i.extendFlat({},m,{zcalendar:p(d(&quot;z&quot;))}),y=p([&quot;Sets the calendar system to use for `range` and `tick0`&quot;,&quot;if this is a date axis. This does not set the calendar for&quot;,&quot;interpreting data on this axis, that's specified in the trace&quot;,&quot;or via the global `layout.calendar`&quot;].join(&quot; &quot;));e.exports={moduleType:&quot;component&quot;,name:&quot;calendars&quot;,schema:{traces:{scatter:m,bar:m,box:m,heatmap:m,contour:m,histogram:m,histogram2d:m,histogram2dcontour:m,scatter3d:v,surface:v,mesh3d:v,scattergl:m,ohlc:g,candlestick:g},layout:{calendar:p([&quot;Sets the default calendar system to use for interpreting and&quot;,&quot;displaying dates throughout the plot.&quot;].join(&quot; &quot;))},subplots:{xaxis:{calendar:y},yaxis:{calendar:y},scene:{xaxis:{calendar:y},yaxis:{calendar:y},zaxis:{calendar:y}},polar:{radialaxis:{calendar:y}}},transforms:{filter:{valuecalendar:p([&quot;Sets the calendar system to use for `value`, if it is a date.&quot;].join(&quot; &quot;)),targetcalendar:p([&quot;Sets the calendar system to use for `target`, if it is an&quot;,&quot;array of dates. If `target` is a string (eg *x*) we use the&quot;,&quot;corresponding trace attribute (eg `xcalendar`) if it exists,&quot;,&quot;even if `targetcalendar` is provided.&quot;].join(&quot; &quot;))}}},layoutAttributes:l,handleDefaults:c,handleTraceDefaults:function(t,e,r,n){for(var i=0;i&lt;r.length;i++)c(t,e,r[i]+&quot;calendar&quot;,n.calendar)},CANONICAL_SUNDAY:{chinese:&quot;2000-01-02&quot;,coptic:&quot;2000-01-03&quot;,discworld:&quot;2000-01-03&quot;,ethiopian:&quot;2000-01-05&quot;,hebrew:&quot;5000-01-01&quot;,islamic:&quot;1000-01-02&quot;,julian:&quot;2000-01-03&quot;,mayan:&quot;5000-01-01&quot;,nanakshahi:&quot;1000-01-05&quot;,nepali:&quot;2000-01-05&quot;,persian:&quot;1000-01-01&quot;,jalali:&quot;1000-01-01&quot;,taiwan:&quot;1000-01-04&quot;,thai:&quot;2000-01-04&quot;,ummalqura:&quot;1400-01-06&quot;},CANONICAL_TICK:{chinese:&quot;2000-01-01&quot;,coptic:&quot;2000-01-01&quot;,discworld:&quot;2000-01-01&quot;,ethiopian:&quot;2000-01-01&quot;,hebrew:&quot;5000-01-01&quot;,islamic:&quot;1000-01-01&quot;,julian:&quot;2000-01-01&quot;,mayan:&quot;5000-01-01&quot;,nanakshahi:&quot;1000-01-01&quot;,nepali:&quot;2000-01-01&quot;,persian:&quot;1000-01-01&quot;,jalali:&quot;1000-01-01&quot;,taiwan:&quot;1000-01-01&quot;,thai:&quot;2000-01-01&quot;,ummalqura:&quot;1400-01-01&quot;},DFLTRANGE:{chinese:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],coptic:[&quot;1700-01-01&quot;,&quot;1701-01-01&quot;],discworld:[&quot;1800-01-01&quot;,&quot;1801-01-01&quot;],ethiopian:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],hebrew:[&quot;5700-01-01&quot;,&quot;5701-01-01&quot;],islamic:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],julian:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],mayan:[&quot;5200-01-01&quot;,&quot;5201-01-01&quot;],nanakshahi:[&quot;0500-01-01&quot;,&quot;0501-01-01&quot;],nepali:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],persian:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],jalali:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],taiwan:[&quot;0100-01-01&quot;,&quot;0101-01-01&quot;],thai:[&quot;2500-01-01&quot;,&quot;2501-01-01&quot;],ummalqura:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;]},getCal:h,worldCalFmt:function(t,e,r){for(var n,i,a,l,c,f=Math.floor((e+.05)/s)+o,p=h(r).fromJD(f),d=0;-1!==(d=t.indexOf(&quot;%&quot;,d));)&quot;0&quot;===(n=t.charAt(d+1))||&quot;-&quot;===n||&quot;_&quot;===n?(a=3,i=t.charAt(d+2),&quot;_&quot;===n&amp;&amp;(n=&quot;-&quot;)):(i=n,n=&quot;0&quot;,a=2),(l=u[i])?(c=&quot;##&quot;===l?&quot;##&quot;:p.formatDate(l[n]),t=t.substr(0,d)+c+t.substr(d+a),d+=c.length):d+=a;return t}}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./calendars&quot;:640}],642:[function(t,e,r){&quot;use strict&quot;;r.defaults=[&quot;#1f77b4&quot;,&quot;#ff7f0e&quot;,&quot;#2ca02c&quot;,&quot;#d62728&quot;,&quot;#9467bd&quot;,&quot;#8c564b&quot;,&quot;#e377c2&quot;,&quot;#7f7f7f&quot;,&quot;#bcbd22&quot;,&quot;#17becf&quot;],r.defaultLine=&quot;#444&quot;,r.lightLine=&quot;#eee&quot;,r.background=&quot;#fff&quot;,r.borderLine=&quot;#BEC8D9&quot;,r.lightFraction=1e3/11},{}],643:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;),i=t(&quot;fast-isnumeric&quot;),a=e.exports={},o=t(&quot;./attributes&quot;);a.defaults=o.defaults;var s=a.defaultLine=o.defaultLine;a.lightLine=o.lightLine;var l=a.background=o.background;function c(t){if(i(t)||&quot;string&quot;!=typeof t)return t;var e=t.trim();if(&quot;rgb&quot;!==e.substr(0,3))return t;var r=e.match(/^rgba?\s*\(([^()]*)\)$/);if(!r)return t;var n=r[1].trim().split(/\s*[\s,]\s*/),a=&quot;a&quot;===e.charAt(3)&amp;&amp;4===n.length;if(!a&amp;&amp;3!==n.length)return t;for(var o=0;o&lt;n.length;o++){if(!n[o].length)return t;if(n[o]=Number(n[o]),!(n[o]&gt;=0))return t;if(3===o)n[o]&gt;1&amp;&amp;(n[o]=1);else if(n[o]&gt;=1)return t}var s=Math.round(255*n[0])+&quot;, &quot;+Math.round(255*n[1])+&quot;, &quot;+Math.round(255*n[2]);return a?&quot;rgba(&quot;+s+&quot;, &quot;+n[3]+&quot;)&quot;:&quot;rgb(&quot;+s+&quot;)&quot;}a.tinyRGB=function(t){var e=t.toRgb();return&quot;rgb(&quot;+Math.round(e.r)+&quot;, &quot;+Math.round(e.g)+&quot;, &quot;+Math.round(e.b)+&quot;)&quot;},a.rgb=function(t){return a.tinyRGB(n(t))},a.opacity=function(t){return t?n(t).getAlpha():0},a.addOpacity=function(t,e){var r=n(t).toRgb();return&quot;rgba(&quot;+Math.round(r.r)+&quot;, &quot;+Math.round(r.g)+&quot;, &quot;+Math.round(r.b)+&quot;, &quot;+e+&quot;)&quot;},a.combine=function(t,e){var r=n(t).toRgb();if(1===r.a)return n(t).toRgbString();var i=n(e||l).toRgb(),a=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},o={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},a.contrast=function(t,e,r){var i=n(t);return 1!==i.getAlpha()&amp;&amp;(i=n(a.combine(t,l))),(i.isDark()?e?i.lighten(e):l:r?i.darken(r):s).toString()},a.stroke=function(t,e){var r=n(e);t.style({stroke:a.tinyRGB(r),&quot;stroke-opacity&quot;:r.getAlpha()})},a.fill=function(t,e){var r=n(e);t.style({fill:a.tinyRGB(r),&quot;fill-opacity&quot;:r.getAlpha()})},a.clean=function(t){if(t&amp;&amp;&quot;object&quot;==typeof t){var e,r,n,i,o=Object.keys(t);for(e=0;e&lt;o.length;e++)if(i=t[n=o[e]],&quot;color&quot;===n.substr(n.length-5))if(Array.isArray(i))for(r=0;r&lt;i.length;r++)i[r]=c(i[r]);else t[n]=c(i);else if(&quot;colorscale&quot;===n.substr(n.length-10)&amp;&amp;Array.isArray(i))for(r=0;r&lt;i.length;r++)Array.isArray(i[r])&amp;&amp;(i[r][1]=c(i[r][1]));else if(Array.isArray(i)){var s=i[0];if(!Array.isArray(s)&amp;&amp;s&amp;&amp;&quot;object&quot;==typeof s)for(r=0;r&lt;i.length;r++)a.clean(i[r])}else i&amp;&amp;&quot;object&quot;==typeof i&amp;&amp;a.clean(i)}}},{&quot;./attributes&quot;:642,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],644:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/layout_attributes&quot;),i=t(&quot;../../plots/font_attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll;e.exports=o({thicknessmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;pixels&quot;},thickness:{valType:&quot;number&quot;,min:0,dflt:30},lenmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;fraction&quot;},len:{valType:&quot;number&quot;,min:0,dflt:1},x:{valType:&quot;number&quot;,dflt:1.02,min:-2,max:3},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},xpad:{valType:&quot;number&quot;,min:0,dflt:10},y:{valType:&quot;number&quot;,dflt:.5,min:-2,max:3},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;},ypad:{valType:&quot;number&quot;,min:0,dflt:10},outlinecolor:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:&quot;number&quot;,min:0,dflt:0},bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;},tickmode:n.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:a({},n.ticks,{dflt:&quot;&quot;}),ticklabelposition:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;],dflt:&quot;outside&quot;},ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,showticklabels:n.showticklabels,tickfont:i({}),tickangle:n.tickangle,tickformat:n.tickformat,tickformatstops:n.tickformatstops,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,minexponent:n.minexponent,showexponent:n.showexponent,title:{text:{valType:&quot;string&quot;},font:i({}),side:{valType:&quot;enumerated&quot;,values:[&quot;right&quot;,&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;}},_deprecated:{title:{valType:&quot;string&quot;},titlefont:i({}),titleside:{valType:&quot;enumerated&quot;,values:[&quot;right&quot;,&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;}}},&quot;colorbars&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/font_attributes&quot;:856}],645:[function(t,e,r){&quot;use strict&quot;;e.exports={cn:{colorbar:&quot;colorbar&quot;,cbbg:&quot;cbbg&quot;,cbfill:&quot;cbfill&quot;,cbfills:&quot;cbfills&quot;,cbline:&quot;cbline&quot;,cblines:&quot;cblines&quot;,cbaxis:&quot;cbaxis&quot;,cbtitleunshift:&quot;cbtitleunshift&quot;,cbtitle:&quot;cbtitle&quot;,cboutline:&quot;cboutline&quot;,crisp:&quot;crisp&quot;,jsPlaceholder:&quot;js-placeholder&quot;}}},{}],646:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),o=t(&quot;../../plots/cartesian/tick_mark_defaults&quot;),s=t(&quot;../../plots/cartesian/tick_label_defaults&quot;),l=t(&quot;./attributes&quot;);e.exports=function(t,e,r){var c=i.newContainer(e,&quot;colorbar&quot;),u=t.colorbar||{};function f(t,e){return n.coerce(u,c,l,t,e)}var h=f(&quot;thicknessmode&quot;);f(&quot;thickness&quot;,&quot;fraction&quot;===h?30/(r.width-r.margin.l-r.margin.r):30);var p=f(&quot;lenmode&quot;);f(&quot;len&quot;,&quot;fraction&quot;===p?1:r.height-r.margin.t-r.margin.b),f(&quot;x&quot;),f(&quot;xanchor&quot;),f(&quot;xpad&quot;),f(&quot;y&quot;),f(&quot;yanchor&quot;),f(&quot;ypad&quot;),n.noneOrAll(u,c,[&quot;x&quot;,&quot;y&quot;]),f(&quot;outlinecolor&quot;),f(&quot;outlinewidth&quot;),f(&quot;bordercolor&quot;),f(&quot;borderwidth&quot;),f(&quot;bgcolor&quot;);var d=f(&quot;ticklabelposition&quot;);a(u,c,f,&quot;linear&quot;);var g={outerTicks:!1,font:r.font};-1!==d.indexOf(&quot;inside&quot;)&amp;&amp;(g.bgColor=&quot;black&quot;),s(u,c,f,&quot;linear&quot;,g),o(u,c,f,&quot;linear&quot;,g),f(&quot;title.text&quot;,r._dfltTitle.colorbar),n.coerceFont(f,&quot;title.font&quot;,r.font),f(&quot;title.side&quot;)}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/tick_label_defaults&quot;:849,&quot;../../plots/cartesian/tick_mark_defaults&quot;:850,&quot;../../plots/cartesian/tick_value_defaults&quot;:851,&quot;./attributes&quot;:644}],647:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=t(&quot;../dragelement&quot;),c=t(&quot;../../lib&quot;),u=c.strTranslate,f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../lib/setcursor&quot;),p=t(&quot;../drawing&quot;),d=t(&quot;../color&quot;),g=t(&quot;../titles&quot;),m=t(&quot;../../lib/svg_text_utils&quot;),v=t(&quot;../colorscale/helpers&quot;).flipScale,y=t(&quot;../../plots/cartesian/axis_defaults&quot;),x=t(&quot;../../plots/cartesian/position_defaults&quot;),b=t(&quot;../../plots/cartesian/layout_attributes&quot;),_=t(&quot;../../constants/alignment&quot;),w=_.LINE_SPACING,T=_.FROM_TL,k=_.FROM_BR,M=t(&quot;./constants&quot;).cn;e.exports={draw:function(t){var e=t._fullLayout._infolayer.selectAll(&quot;g.&quot;+M.colorbar).data(function(t){var e,r,n,i,a=t._fullLayout,o=t.calcdata,s=[];function l(t){return f(t,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){&quot;function&quot;==typeof i.calc?i.calc(t,n,e):(e._fillgradient=r.reversescale?v(r.colorscale):r.colorscale,e._zrange=[r[i.min],r[i.max]])}for(var u=0;u&lt;o.length;u++){var h=o[u],p=(n=h[0].trace)._module.colorbar;if(!0===n.visible&amp;&amp;p)for(var d=Array.isArray(p),g=d?p:[p],m=0;m&lt;g.length;m++){var y=(i=g[m]).container;(r=y?n[y]:n)&amp;&amp;r.showscale&amp;&amp;((e=l(r.colorbar))._id=&quot;cb&quot;+n.uid+(d&amp;&amp;y?&quot;-&quot;+y:&quot;&quot;),e._traceIndex=n.index,e._propPrefix=(y?y+&quot;.&quot;:&quot;&quot;)+&quot;colorbar.&quot;,e._meta=n._meta,c(),s.push(e))}}for(var x in a._colorAxes)if((r=a[x]).showscale){var b=a._colorAxes[x];(e=l(r.colorbar))._id=&quot;cb&quot;+x,e._propPrefix=x+&quot;.colorbar.&quot;,e._meta=a._meta,i={min:&quot;cmin&quot;,max:&quot;cmax&quot;},&quot;heatmap&quot;!==b[0]&amp;&amp;(n=b[1],i.calc=n._module.colorbar.calc),c(),s.push(e)}return s}(t),(function(t){return t._id}));e.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return t._id})).classed(M.colorbar,!0),e.each((function(e){var r=n.select(this);c.ensureSingle(r,&quot;rect&quot;,M.cbbg),c.ensureSingle(r,&quot;g&quot;,M.cbfills),c.ensureSingle(r,&quot;g&quot;,M.cblines),c.ensureSingle(r,&quot;g&quot;,M.cbaxis,(function(t){t.classed(M.crisp,!0)})),c.ensureSingle(r,&quot;g&quot;,M.cbtitleunshift,(function(t){t.append(&quot;g&quot;).classed(M.cbtitle,!0)})),c.ensureSingle(r,&quot;rect&quot;,M.cboutline);var v=function(t,e,r){var o=r._fullLayout,l=o._size,h=e._fillcolor,v=e._line,_=e.title,A=_.side,S=e._zrange||n.extent((&quot;function&quot;==typeof h?h:v.color).domain()),E=&quot;function&quot;==typeof v.color?v.color:function(){return v.color},C=&quot;function&quot;==typeof h?h:function(){return h},L=e._levels,I=function(t,e,r){var n,i,a=e._levels,o=[],s=[],l=a.end+a.size/100,c=a.size,u=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(i=0;i&lt;1e5&amp;&amp;(n=a.start+i*c,!(c&gt;0?n&gt;=l:n&lt;=l));i++)n&gt;u&amp;&amp;n&lt;f&amp;&amp;o.push(n);if(e._fillgradient)s=[0];else if(&quot;function&quot;==typeof e._fillcolor){var h=e._filllevels;if(h)for(l=h.end+h.size/100,c=h.size,i=0;i&lt;1e5&amp;&amp;(n=h.start+i*c,!(c&gt;0?n&gt;=l:n&lt;=l));i++)n&gt;r[0]&amp;&amp;n&lt;r[1]&amp;&amp;s.push(n);else(s=o.map((function(t){return t-a.size/2}))).push(s[s.length-1]+a.size)}else e._fillcolor&amp;&amp;&quot;string&quot;==typeof e._fillcolor&amp;&amp;(s=[0]);a.size&lt;0&amp;&amp;(o.reverse(),s.reverse());return{line:o,fill:s}}(0,e,S),P=I.fill,z=I.line,O=Math.round(e.thickness*(&quot;fraction&quot;===e.thicknessmode?l.w:1)),D=O/l.w,R=Math.round(e.len*(&quot;fraction&quot;===e.lenmode?l.h:1)),F=R/l.h,B=e.xpad/l.w,N=(e.borderwidth+e.outlinewidth)/2,j=e.ypad/l.h,U=Math.round(e.x*l.w+e.xpad),V=e.x-D*({middle:.5,right:1}[e.xanchor]||0),q=e.y+F*(({top:-.5,bottom:.5}[e.yanchor]||0)-.5),H=Math.round(l.h*(1-q)),G=H-R;e._lenFrac=F,e._thickFrac=D,e._xLeftFrac=V,e._yBottomFrac=q;var Y=e._axis=function(t,e,r){var n=t._fullLayout,i={type:&quot;linear&quot;,range:r,tickmode:e.tickmode,nticks:e.nticks,tick0:e.tick0,dtick:e.dtick,tickvals:e.tickvals,ticktext:e.ticktext,ticks:e.ticks,ticklen:e.ticklen,tickwidth:e.tickwidth,tickcolor:e.tickcolor,showticklabels:e.showticklabels,ticklabelposition:e.ticklabelposition,tickfont:e.tickfont,tickangle:e.tickangle,tickformat:e.tickformat,exponentformat:e.exponentformat,minexponent:e.minexponent,separatethousands:e.separatethousands,showexponent:e.showexponent,showtickprefix:e.showtickprefix,tickprefix:e.tickprefix,showticksuffix:e.showticksuffix,ticksuffix:e.ticksuffix,title:e.title,showline:!0,anchor:&quot;free&quot;,side:&quot;right&quot;,position:1},a={type:&quot;linear&quot;,_id:&quot;y&quot;+e._id},o={letter:&quot;y&quot;,font:n.font,noHover:!0,noTickson:!0,noTicklabelmode:!0,calendar:n.calendar};function s(t,e){return c.coerce(i,a,b,t,e)}return y(i,a,s,o,n),x(i,a,s,o),a}(r,e,S);Y.position=e.x+B+D,-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)&amp;&amp;(Y.title.side=A,Y.titlex=e.x+B,Y.titley=q+(&quot;top&quot;===_.side?F-j:j));if(v.color&amp;&amp;&quot;auto&quot;===e.tickmode){Y.tickmode=&quot;linear&quot;,Y.tick0=L.start;var W=L.size,X=c.constrain((H-G)/50,4,15)+1,Z=(S[1]-S[0])/((e.nticks||X)*W);if(Z&gt;1){var J=Math.pow(10,Math.floor(Math.log(Z)/Math.LN10));W*=J*c.roundUp(Z/J,[2,5,10]),(Math.abs(L.start)/L.size+1e-6)%1&lt;2e-6&amp;&amp;(Y.tick0=0)}Y.dtick=W}Y.domain=[q+j,q+F-j],Y.setScale(),t.attr(&quot;transform&quot;,u(Math.round(l.l),Math.round(l.t)));var K,Q=t.select(&quot;.&quot;+M.cbtitleunshift).attr(&quot;transform&quot;,u(-Math.round(l.l),-Math.round(l.t))),$=t.select(&quot;.&quot;+M.cbaxis),tt=0;function et(n,i){var a={propContainer:Y,propName:e._propPrefix+&quot;title&quot;,traceIndex:e._traceIndex,_meta:e._meta,placeholder:o._dfltTitle.colorbar,containerGroup:t.select(&quot;.&quot;+M.cbtitle)},s=&quot;h&quot;===n.charAt(0)?n.substr(1):&quot;h&quot;+n;t.selectAll(&quot;.&quot;+s+&quot;,.&quot;+s+&quot;-math-group&quot;).remove(),g.draw(r,n,f(a,i||{}))}return c.syncOrAsync([a.previousPromises,function(){if(-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)){var t,r=l.l+(e.x+B)*l.w,n=Y.title.font.size;t=&quot;top&quot;===A?(1-(q+F-j))*l.h+l.t+3+.75*n:(1-(q+j))*l.h+l.t-3-.25*n,et(Y._id+&quot;title&quot;,{attributes:{x:r,y:t,&quot;text-anchor&quot;:&quot;start&quot;}})}},function(){if(-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)){var a=t.select(&quot;.&quot;+M.cbtitle),o=a.select(&quot;text&quot;),f=[-e.outlinewidth/2,e.outlinewidth/2],h=a.select(&quot;.h&quot;+Y._id+&quot;title-math-group&quot;).node(),d=15.6;if(o.node()&amp;&amp;(d=parseInt(o.node().style.fontSize,10)*w),h?(tt=p.bBox(h).height)&gt;d&amp;&amp;(f[1]-=(tt-d)/2):o.node()&amp;&amp;!o.classed(M.jsPlaceholder)&amp;&amp;(tt=p.bBox(o.node()).height),tt){if(tt+=5,&quot;top&quot;===A)Y.domain[1]-=tt/l.h,f[1]*=-1;else{Y.domain[0]+=tt/l.h;var g=m.lineCount(o);f[1]+=(1-g)*d}a.attr(&quot;transform&quot;,u(f[0],f[1])),Y.setScale()}}t.selectAll(&quot;.&quot;+M.cbfills+&quot;,.&quot;+M.cblines).attr(&quot;transform&quot;,u(0,Math.round(l.h*(1-Y.domain[1])))),$.attr(&quot;transform&quot;,u(0,Math.round(-l.t)));var y=t.select(&quot;.&quot;+M.cbfills).selectAll(&quot;rect.&quot;+M.cbfill).attr(&quot;style&quot;,&quot;&quot;).data(P);y.enter().append(&quot;rect&quot;).classed(M.cbfill,!0).style(&quot;stroke&quot;,&quot;none&quot;),y.exit().remove();var x=S.map(Y.c2p).map(Math.round).sort((function(t,e){return t-e}));y.each((function(t,a){var o=[0===a?S[0]:(P[a]+P[a-1])/2,a===P.length-1?S[1]:(P[a]+P[a+1])/2].map(Y.c2p).map(Math.round);o[1]=c.constrain(o[1]+(o[1]&gt;o[0])?1:-1,x[0],x[1]);var s=n.select(this).attr({x:U,width:Math.max(O,2),y:n.min(o),height:Math.max(n.max(o)-n.min(o),2)});if(e._fillgradient)p.gradient(s,r,e._id,&quot;vertical&quot;,e._fillgradient,&quot;fill&quot;);else{var l=C(t).replace(&quot;e-&quot;,&quot;&quot;);s.attr(&quot;fill&quot;,i(l).toHexString())}}));var b=t.select(&quot;.&quot;+M.cblines).selectAll(&quot;path.&quot;+M.cbline).data(v.color&amp;&amp;v.width?z:[]);b.enter().append(&quot;path&quot;).classed(M.cbline,!0),b.exit().remove(),b.each((function(t){n.select(this).attr(&quot;d&quot;,&quot;M&quot;+U+&quot;,&quot;+(Math.round(Y.c2p(t))+v.width/2%1)+&quot;h&quot;+O).call(p.lineGroupStyle,v.width,E(t),v.dash)})),$.selectAll(&quot;g.&quot;+Y._id+&quot;tick,path&quot;).remove();var _=U+O+(e.outlinewidth||0)/2-(&quot;outside&quot;===e.ticks?1:0),T=s.calcTicks(Y),k=s.getTickSigns(Y)[2];return s.drawTicks(r,Y,{vals:&quot;inside&quot;===Y.ticks?s.clipEnds(Y,T):T,layer:$,path:s.makeTickPath(Y,_,k),transFn:s.makeTransTickFn(Y)}),s.drawLabels(r,Y,{vals:T,layer:$,transFn:s.makeTransTickLabelFn(Y),labelFns:s.makeLabelFns(Y,_)})},function(){if(-1===[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)){var t=Y.title.font.size,e=Y._offset+Y._length/2,i=l.l+(Y.position||0)*l.w+(&quot;right&quot;===Y.side?10+t*(Y.showticklabels?1:.5):-10-t*(Y.showticklabels?.5:0));et(&quot;h&quot;+Y._id+&quot;title&quot;,{avoid:{selection:n.select(r).selectAll(&quot;g.&quot;+Y._id+&quot;tick&quot;),side:A,offsetLeft:l.l,offsetTop:0,maxShift:o.width},attributes:{x:i,y:e,&quot;text-anchor&quot;:&quot;middle&quot;},transform:{rotate:&quot;-90&quot;,offset:0}})}},a.previousPromises,function(){var n=O+e.outlinewidth/2;if(-1===Y.ticklabelposition.indexOf(&quot;inside&quot;)&amp;&amp;(n+=p.bBox($.node()).width),(K=Q.select(&quot;text&quot;)).node()&amp;&amp;!K.classed(M.jsPlaceholder)){var i,o=Q.select(&quot;.h&quot;+Y._id+&quot;title-math-group&quot;).node();i=o&amp;&amp;-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)?p.bBox(o).width:p.bBox(Q.node()).right-U-l.l,n=Math.max(n,i)}var s=2*e.xpad+n+e.borderwidth+e.outlinewidth/2,c=H-G;t.select(&quot;.&quot;+M.cbbg).attr({x:U-e.xpad-(e.borderwidth+e.outlinewidth)/2,y:G-N,width:Math.max(s,2),height:Math.max(c+2*N,2)}).call(d.fill,e.bgcolor).call(d.stroke,e.bordercolor).style(&quot;stroke-width&quot;,e.borderwidth),t.selectAll(&quot;.&quot;+M.cboutline).attr({x:U,y:G+e.ypad+(&quot;top&quot;===A?tt:0),width:Math.max(O,2),height:Math.max(c-2*e.ypad-tt,2)}).call(d.stroke,e.outlinecolor).style({fill:&quot;none&quot;,&quot;stroke-width&quot;:e.outlinewidth});var f=({center:.5,right:1}[e.xanchor]||0)*s;t.attr(&quot;transform&quot;,u(l.l-f,l.t));var h={},g=T[e.yanchor],m=k[e.yanchor];&quot;pixels&quot;===e.lenmode?(h.y=e.y,h.t=c*g,h.b=c*m):(h.t=h.b=0,h.yt=e.y+e.len*g,h.yb=e.y-e.len*m);var v=T[e.xanchor],y=k[e.xanchor];if(&quot;pixels&quot;===e.thicknessmode)h.x=e.x,h.l=s*v,h.r=s*y;else{var x=s-O;h.l=x*v,h.r=x*y,h.xl=e.x-e.thickness*v,h.xr=e.x+e.thickness*y}a.autoMargin(r,e._id,h)}],r)}(r,e,t);v&amp;&amp;v.then&amp;&amp;(t._promises||[]).push(v),t._context.edits.colorbarPosition&amp;&amp;function(t,e,r){var n,i,a,s=r._fullLayout._size;l.init({element:t.node(),gd:r,prepFn:function(){n=t.attr(&quot;transform&quot;),h(t)},moveFn:function(r,o){t.attr(&quot;transform&quot;,n+u(r,o)),i=l.align(e._xLeftFrac+r/s.w,e._thickFrac,0,1,e.xanchor),a=l.align(e._yBottomFrac-o/s.h,e._lenFrac,0,1,e.yanchor);var c=l.getCursor(i,a,e.xanchor,e.yanchor);h(t,c)},doneFn:function(){if(h(t),void 0!==i&amp;&amp;void 0!==a){var n={};n[e._propPrefix+&quot;x&quot;]=i,n[e._propPrefix+&quot;y&quot;]=a,void 0!==e._traceIndex?o.call(&quot;_guiRestyle&quot;,r,n,e._traceIndex):o.call(&quot;_guiRelayout&quot;,r,n)}}})}(r,e,t)})),e.exit().each((function(e){a.autoMargin(t,e._id)})).remove(),e.order()}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/extend&quot;:768,&quot;../../lib/setcursor&quot;:799,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_defaults&quot;:830,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/cartesian/position_defaults&quot;:845,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../colorscale/helpers&quot;:654,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../titles&quot;:738,&quot;./constants&quot;:645,d3:169,tinycolor2:576}],648:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t){return n.isPlainObject(t.colorbar)}},{&quot;../../lib&quot;:778}],649:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;colorbar&quot;,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;).draw,hasColorbar:t(&quot;./has_colorbar&quot;)}},{&quot;./attributes&quot;:644,&quot;./defaults&quot;:646,&quot;./draw&quot;:647,&quot;./has_colorbar&quot;:648}],650:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../colorbar/attributes&quot;),i=t(&quot;../../lib/regex&quot;).counter,a=t(&quot;./scales.js&quot;).scales;Object.keys(a);function o(t){return&quot;`&quot;+t+&quot;`&quot;}e.exports=function(t,e){t=t||&quot;&quot;;var r,s=(e=e||{}).cLetter||&quot;c&quot;,l=(&quot;onlyIfNumerical&quot;in e?e.onlyIfNumerical:Boolean(t),&quot;noScale&quot;in e?e.noScale:&quot;marker.line&quot;===t),c=&quot;showScaleDflt&quot;in e?e.showScaleDflt:&quot;z&quot;===s,u=&quot;string&quot;==typeof e.colorscaleDflt?a[e.colorscaleDflt]:null,f=e.editTypeOverride||&quot;&quot;,h=t?t+&quot;.&quot;:&quot;&quot;;&quot;colorAttr&quot;in e?(r=e.colorAttr,e.colorAttr):o(h+(r={z:&quot;z&quot;,c:&quot;color&quot;}[s]));var p=s+&quot;auto&quot;,d=s+&quot;min&quot;,g=s+&quot;max&quot;,m=s+&quot;mid&quot;,v=(o(h+p),o(h+d),o(h+g),{});v[d]=v[g]=void 0;var y={};y[p]=!1;var x={};return&quot;color&quot;===r&amp;&amp;(x.color={valType:&quot;color&quot;,arrayOk:!0,editType:f||&quot;style&quot;},e.anim&amp;&amp;(x.color.anim=!0)),x[p]={valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:v},x[d]={valType:&quot;number&quot;,dflt:null,editType:f||&quot;plot&quot;,impliedEdits:y},x[g]={valType:&quot;number&quot;,dflt:null,editType:f||&quot;plot&quot;,impliedEdits:y},x[m]={valType:&quot;number&quot;,dflt:null,editType:&quot;calc&quot;,impliedEdits:v},x.colorscale={valType:&quot;colorscale&quot;,editType:&quot;calc&quot;,dflt:u,impliedEdits:{autocolorscale:!1}},x.autocolorscale={valType:&quot;boolean&quot;,dflt:!1!==e.autoColorDflt,editType:&quot;calc&quot;,impliedEdits:{colorscale:void 0}},x.reversescale={valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},l||(x.showscale={valType:&quot;boolean&quot;,dflt:c,editType:&quot;calc&quot;},x.colorbar=n),e.noColorAxis||(x.coloraxis={valType:&quot;subplotid&quot;,regex:i(&quot;coloraxis&quot;),dflt:null,editType:&quot;calc&quot;}),x}},{&quot;../../lib/regex&quot;:795,&quot;../colorbar/attributes&quot;:644,&quot;./scales.js&quot;:658}],651:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./helpers&quot;).extractOpts;e.exports=function(t,e,r){var o,s=t._fullLayout,l=r.vals,c=r.containerStr,u=c?i.nestedProperty(e,c).get():e,f=a(u),h=!1!==f.auto,p=f.min,d=f.max,g=f.mid,m=function(){return i.aggNums(Math.min,null,l)},v=function(){return i.aggNums(Math.max,null,l)};(void 0===p?p=m():h&amp;&amp;(p=u._colorAx&amp;&amp;n(p)?Math.min(p,m()):m()),void 0===d?d=v():h&amp;&amp;(d=u._colorAx&amp;&amp;n(d)?Math.max(d,v()):v()),h&amp;&amp;void 0!==g&amp;&amp;(d-g&gt;g-p?p=g-(d-g):d-g&lt;g-p&amp;&amp;(d=g+(g-p))),p===d&amp;&amp;(p-=.5,d+=.5),f._sync(&quot;min&quot;,p),f._sync(&quot;max&quot;,d),f.autocolorscale)&amp;&amp;(o=p*d&lt;0?s.colorscale.diverging:p&gt;=0?s.colorscale.sequential:s.colorscale.sequentialminus,f._sync(&quot;colorscale&quot;,o))}},{&quot;../../lib&quot;:778,&quot;./helpers&quot;:654,&quot;fast-isnumeric&quot;:241}],652:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./helpers&quot;).hasColorscale,a=t(&quot;./helpers&quot;).extractOpts;e.exports=function(t,e){function r(t,e){var r=t[&quot;_&quot;+e];void 0!==r&amp;&amp;(t[e]=r)}function o(t,i){var o=i.container?n.nestedProperty(t,i.container).get():t;if(o)if(o.coloraxis)o._colorAx=e[o.coloraxis];else{var s=a(o),l=s.auto;(l||void 0===s.min)&amp;&amp;r(o,i.min),(l||void 0===s.max)&amp;&amp;r(o,i.max),s.autocolorscale&amp;&amp;r(o,&quot;colorscale&quot;)}}for(var s=0;s&lt;t.length;s++){var l=t[s],c=l._module.colorbar;if(c)if(Array.isArray(c))for(var u=0;u&lt;c.length;u++)o(l,c[u]);else o(l,c);i(l,&quot;marker.line&quot;)&amp;&amp;o(l,{container:&quot;marker.line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;})}for(var f in e._colorAxes)o(e[f],{min:&quot;cmin&quot;,max:&quot;cmax&quot;})}},{&quot;../../lib&quot;:778,&quot;./helpers&quot;:654}],653:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../colorbar/has_colorbar&quot;),o=t(&quot;../colorbar/defaults&quot;),s=t(&quot;./scales&quot;).isValid,l=t(&quot;../../registry&quot;).traceIs;function c(t,e){var r=e.slice(0,e.length-1);return e?i.nestedProperty(t,r).get()||{}:t}e.exports=function t(e,r,u,f,h){var p=h.prefix,d=h.cLetter,g=&quot;_module&quot;in r,m=c(e,p),v=c(r,p),y=c(r._template||{},p)||{},x=function(){return delete e.coloraxis,delete r.coloraxis,t(e,r,u,f,h)};if(g){var b=u._colorAxes||{},_=f(p+&quot;coloraxis&quot;);if(_){var w=l(r,&quot;contour&quot;)&amp;&amp;i.nestedProperty(r,&quot;contours.coloring&quot;).get()||&quot;heatmap&quot;,T=b[_];return void(T?(T[2].push(x),T[0]!==w&amp;&amp;(T[0]=!1,i.warn([&quot;Ignoring coloraxis:&quot;,_,&quot;setting&quot;,&quot;as it is linked to incompatible colorscales.&quot;].join(&quot; &quot;)))):b[_]=[w,r,[x]])}}var k=m[d+&quot;min&quot;],M=m[d+&quot;max&quot;],A=n(k)&amp;&amp;n(M)&amp;&amp;k&lt;M;f(p+d+&quot;auto&quot;,!A)?f(p+d+&quot;mid&quot;):(f(p+d+&quot;min&quot;),f(p+d+&quot;max&quot;));var S,E,C=m.colorscale,L=y.colorscale;(void 0!==C&amp;&amp;(S=!s(C)),void 0!==L&amp;&amp;(S=!s(L)),f(p+&quot;autocolorscale&quot;,S),f(p+&quot;colorscale&quot;),f(p+&quot;reversescale&quot;),&quot;marker.line.&quot;!==p)&amp;&amp;(p&amp;&amp;g&amp;&amp;(E=a(m)),f(p+&quot;showscale&quot;,E)&amp;&amp;(p&amp;&amp;y&amp;&amp;(v._template=y),o(m,v,u)))}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../colorbar/defaults&quot;:646,&quot;../colorbar/has_colorbar&quot;:648,&quot;./scales&quot;:658,&quot;fast-isnumeric&quot;:241}],654:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../color&quot;),l=t(&quot;./scales&quot;).isValid;var c=[&quot;showscale&quot;,&quot;autocolorscale&quot;,&quot;colorscale&quot;,&quot;reversescale&quot;,&quot;colorbar&quot;],u=[&quot;min&quot;,&quot;max&quot;,&quot;mid&quot;,&quot;auto&quot;];function f(t){var e,r,n,i=t._colorAx,a=i||t,o={};for(r=0;r&lt;c.length;r++)o[n=c[r]]=a[n];if(i)for(e=&quot;c&quot;,r=0;r&lt;u.length;r++)o[n=u[r]]=a[&quot;c&quot;+n];else{var s;for(r=0;r&lt;u.length;r++)((s=&quot;c&quot;+(n=u[r]))in a||(s=&quot;z&quot;+n)in a)&amp;&amp;(o[n]=a[s]);e=s.charAt(0)}return o._sync=function(t,r){var n=-1!==u.indexOf(t)?e+t:t;a[n]=a[&quot;_&quot;+n]=r},o}function h(t){for(var e=f(t),r=e.min,n=e.max,i=e.reversescale?p(e.colorscale):e.colorscale,a=i.length,o=new Array(a),s=new Array(a),l=0;l&lt;a;l++){var c=i[l];o[l]=r+c[0]*(n-r),s[l]=c[1]}return{domain:o,range:s}}function p(t){for(var e=t.length,r=new Array(e),n=e-1,i=0;n&gt;=0;n--,i++){var a=t[n];r[i]=[1-a[0],a[1]]}return r}function d(t,e){e=e||{};for(var r=t.domain,o=t.range,l=o.length,c=new Array(l),u=0;u&lt;l;u++){var f=i(o[u]).toRgb();c[u]=[f.r,f.g,f.b,f.a]}var h,p=n.scale.linear().domain(r).range(c).clamp(!0),d=e.noNumericCheck,m=e.returnArray;return(h=d&amp;&amp;m?p:d?function(t){return g(p(t))}:m?function(t){return a(t)?p(t):i(t).isValid()?t:s.defaultLine}:function(t){return a(t)?g(p(t)):i(t).isValid()?t:s.defaultLine}).domain=p.domain,h.range=function(){return o},h}function g(t){var e={r:t[0],g:t[1],b:t[2],a:t[3]};return i(e).toRgbString()}e.exports={hasColorscale:function(t,e,r){var n=e?o.nestedProperty(t,e).get()||{}:t,i=n[r||&quot;color&quot;],s=!1;if(o.isArrayOrTypedArray(i))for(var c=0;c&lt;i.length;c++)if(a(i[c])){s=!0;break}return o.isPlainObject(n)&amp;&amp;(s||!0===n.showscale||a(n.cmin)&amp;&amp;a(n.cmax)||l(n.colorscale)||o.isPlainObject(n.colorbar))},extractOpts:f,extractScale:h,flipScale:p,makeColorScaleFunc:d,makeColorScaleFuncFromTrace:function(t,e){return d(h(t),e)}}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;./scales&quot;:658,d3:169,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],655:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./scales&quot;),i=t(&quot;./helpers&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;colorscale&quot;,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),handleDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),calc:t(&quot;./calc&quot;),scales:n.scales,defaultScale:n.defaultScale,getScale:n.get,isValidScale:n.isValid,hasColorscale:i.hasColorscale,extractOpts:i.extractOpts,extractScale:i.extractScale,flipScale:i.flipScale,makeColorScaleFunc:i.makeColorScaleFunc,makeColorScaleFuncFromTrace:i.makeColorScaleFuncFromTrace}},{&quot;./attributes&quot;:650,&quot;./calc&quot;:651,&quot;./cross_trace_defaults&quot;:652,&quot;./defaults&quot;:653,&quot;./helpers&quot;:654,&quot;./layout_attributes&quot;:656,&quot;./layout_defaults&quot;:657,&quot;./scales&quot;:658}],656:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;./attributes&quot;),a=t(&quot;./scales&quot;).scales;e.exports={editType:&quot;calc&quot;,colorscale:{editType:&quot;calc&quot;,sequential:{valType:&quot;colorscale&quot;,dflt:a.Reds,editType:&quot;calc&quot;},sequentialminus:{valType:&quot;colorscale&quot;,dflt:a.Blues,editType:&quot;calc&quot;},diverging:{valType:&quot;colorscale&quot;,dflt:a.RdBu,editType:&quot;calc&quot;}},coloraxis:n({_isSubplotObj:!0,editType:&quot;calc&quot;},i(&quot;&quot;,{colorAttr:&quot;corresponding trace color array(s)&quot;,noColorAxis:!0,showScaleDflt:!0}))}},{&quot;../../lib/extend&quot;:768,&quot;./attributes&quot;:650,&quot;./scales&quot;:658}],657:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;./layout_attributes&quot;),o=t(&quot;./defaults&quot;);e.exports=function(t,e){function r(r,i){return n.coerce(t,e,a,r,i)}r(&quot;colorscale.sequential&quot;),r(&quot;colorscale.sequentialminus&quot;),r(&quot;colorscale.diverging&quot;);var s,l,c=e._colorAxes;function u(t,e){return n.coerce(s,l,a.coloraxis,t,e)}for(var f in c){var h=c[f];if(h[0])s=t[f]||{},(l=i.newContainer(e,f,&quot;coloraxis&quot;))._name=f,o(s,l,e,u,{prefix:&quot;&quot;,cLetter:&quot;c&quot;});else{for(var p=0;p&lt;h[2].length;p++)h[2][p]();delete e._colorAxes[f]}}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;./defaults&quot;:653,&quot;./layout_attributes&quot;:656}],658:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;),i={Greys:[[0,&quot;rgb(0,0,0)&quot;],[1,&quot;rgb(255,255,255)&quot;]],YlGnBu:[[0,&quot;rgb(8,29,88)&quot;],[.125,&quot;rgb(37,52,148)&quot;],[.25,&quot;rgb(34,94,168)&quot;],[.375,&quot;rgb(29,145,192)&quot;],[.5,&quot;rgb(65,182,196)&quot;],[.625,&quot;rgb(127,205,187)&quot;],[.75,&quot;rgb(199,233,180)&quot;],[.875,&quot;rgb(237,248,217)&quot;],[1,&quot;rgb(255,255,217)&quot;]],Greens:[[0,&quot;rgb(0,68,27)&quot;],[.125,&quot;rgb(0,109,44)&quot;],[.25,&quot;rgb(35,139,69)&quot;],[.375,&quot;rgb(65,171,93)&quot;],[.5,&quot;rgb(116,196,118)&quot;],[.625,&quot;rgb(161,217,155)&quot;],[.75,&quot;rgb(199,233,192)&quot;],[.875,&quot;rgb(229,245,224)&quot;],[1,&quot;rgb(247,252,245)&quot;]],YlOrRd:[[0,&quot;rgb(128,0,38)&quot;],[.125,&quot;rgb(189,0,38)&quot;],[.25,&quot;rgb(227,26,28)&quot;],[.375,&quot;rgb(252,78,42)&quot;],[.5,&quot;rgb(253,141,60)&quot;],[.625,&quot;rgb(254,178,76)&quot;],[.75,&quot;rgb(254,217,118)&quot;],[.875,&quot;rgb(255,237,160)&quot;],[1,&quot;rgb(255,255,204)&quot;]],Bluered:[[0,&quot;rgb(0,0,255)&quot;],[1,&quot;rgb(255,0,0)&quot;]],RdBu:[[0,&quot;rgb(5,10,172)&quot;],[.35,&quot;rgb(106,137,247)&quot;],[.5,&quot;rgb(190,190,190)&quot;],[.6,&quot;rgb(220,170,132)&quot;],[.7,&quot;rgb(230,145,90)&quot;],[1,&quot;rgb(178,10,28)&quot;]],Reds:[[0,&quot;rgb(220,220,220)&quot;],[.2,&quot;rgb(245,195,157)&quot;],[.4,&quot;rgb(245,160,105)&quot;],[1,&quot;rgb(178,10,28)&quot;]],Blues:[[0,&quot;rgb(5,10,172)&quot;],[.35,&quot;rgb(40,60,190)&quot;],[.5,&quot;rgb(70,100,245)&quot;],[.6,&quot;rgb(90,120,245)&quot;],[.7,&quot;rgb(106,137,247)&quot;],[1,&quot;rgb(220,220,220)&quot;]],Picnic:[[0,&quot;rgb(0,0,255)&quot;],[.1,&quot;rgb(51,153,255)&quot;],[.2,&quot;rgb(102,204,255)&quot;],[.3,&quot;rgb(153,204,255)&quot;],[.4,&quot;rgb(204,204,255)&quot;],[.5,&quot;rgb(255,255,255)&quot;],[.6,&quot;rgb(255,204,255)&quot;],[.7,&quot;rgb(255,153,255)&quot;],[.8,&quot;rgb(255,102,204)&quot;],[.9,&quot;rgb(255,102,102)&quot;],[1,&quot;rgb(255,0,0)&quot;]],Rainbow:[[0,&quot;rgb(150,0,90)&quot;],[.125,&quot;rgb(0,0,200)&quot;],[.25,&quot;rgb(0,25,255)&quot;],[.375,&quot;rgb(0,152,255)&quot;],[.5,&quot;rgb(44,255,150)&quot;],[.625,&quot;rgb(151,255,0)&quot;],[.75,&quot;rgb(255,234,0)&quot;],[.875,&quot;rgb(255,111,0)&quot;],[1,&quot;rgb(255,0,0)&quot;]],Portland:[[0,&quot;rgb(12,51,131)&quot;],[.25,&quot;rgb(10,136,186)&quot;],[.5,&quot;rgb(242,211,56)&quot;],[.75,&quot;rgb(242,143,56)&quot;],[1,&quot;rgb(217,30,30)&quot;]],Jet:[[0,&quot;rgb(0,0,131)&quot;],[.125,&quot;rgb(0,60,170)&quot;],[.375,&quot;rgb(5,255,255)&quot;],[.625,&quot;rgb(255,255,0)&quot;],[.875,&quot;rgb(250,0,0)&quot;],[1,&quot;rgb(128,0,0)&quot;]],Hot:[[0,&quot;rgb(0,0,0)&quot;],[.3,&quot;rgb(230,0,0)&quot;],[.6,&quot;rgb(255,210,0)&quot;],[1,&quot;rgb(255,255,255)&quot;]],Blackbody:[[0,&quot;rgb(0,0,0)&quot;],[.2,&quot;rgb(230,0,0)&quot;],[.4,&quot;rgb(230,210,0)&quot;],[.7,&quot;rgb(255,255,255)&quot;],[1,&quot;rgb(160,200,255)&quot;]],Earth:[[0,&quot;rgb(0,0,130)&quot;],[.1,&quot;rgb(0,180,180)&quot;],[.2,&quot;rgb(40,210,40)&quot;],[.4,&quot;rgb(230,230,50)&quot;],[.6,&quot;rgb(120,70,20)&quot;],[1,&quot;rgb(255,255,255)&quot;]],Electric:[[0,&quot;rgb(0,0,0)&quot;],[.15,&quot;rgb(30,0,100)&quot;],[.4,&quot;rgb(120,0,100)&quot;],[.6,&quot;rgb(160,90,0)&quot;],[.8,&quot;rgb(230,200,0)&quot;],[1,&quot;rgb(255,250,220)&quot;]],Viridis:[[0,&quot;#440154&quot;],[.06274509803921569,&quot;#48186a&quot;],[.12549019607843137,&quot;#472d7b&quot;],[.18823529411764706,&quot;#424086&quot;],[.25098039215686274,&quot;#3b528b&quot;],[.3137254901960784,&quot;#33638d&quot;],[.3764705882352941,&quot;#2c728e&quot;],[.4392156862745098,&quot;#26828e&quot;],[.5019607843137255,&quot;#21918c&quot;],[.5647058823529412,&quot;#1fa088&quot;],[.6274509803921569,&quot;#28ae80&quot;],[.6901960784313725,&quot;#3fbc73&quot;],[.7529411764705882,&quot;#5ec962&quot;],[.8156862745098039,&quot;#84d44b&quot;],[.8784313725490196,&quot;#addc30&quot;],[.9411764705882353,&quot;#d8e219&quot;],[1,&quot;#fde725&quot;]],Cividis:[[0,&quot;rgb(0,32,76)&quot;],[.058824,&quot;rgb(0,42,102)&quot;],[.117647,&quot;rgb(0,52,110)&quot;],[.176471,&quot;rgb(39,63,108)&quot;],[.235294,&quot;rgb(60,74,107)&quot;],[.294118,&quot;rgb(76,85,107)&quot;],[.352941,&quot;rgb(91,95,109)&quot;],[.411765,&quot;rgb(104,106,112)&quot;],[.470588,&quot;rgb(117,117,117)&quot;],[.529412,&quot;rgb(131,129,120)&quot;],[.588235,&quot;rgb(146,140,120)&quot;],[.647059,&quot;rgb(161,152,118)&quot;],[.705882,&quot;rgb(176,165,114)&quot;],[.764706,&quot;rgb(192,177,109)&quot;],[.823529,&quot;rgb(209,191,102)&quot;],[.882353,&quot;rgb(225,204,92)&quot;],[.941176,&quot;rgb(243,219,79)&quot;],[1,&quot;rgb(255,233,69)&quot;]]},a=i.RdBu;function o(t){var e=0;if(!Array.isArray(t)||t.length&lt;2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r&lt;t.length;r++){var i=t[r];if(2!==i.length||+i[0]&lt;e||!n(i[1]).isValid())return!1;e=+i[0]}return!0}e.exports={scales:i,defaultScale:a,get:function(t,e){if(e||(e=a),!t)return e;function r(){try{t=i[t]||JSON.parse(t)}catch(r){t=e}}return&quot;string&quot;==typeof t&amp;&amp;(r(),&quot;string&quot;==typeof t&amp;&amp;r()),o(t)?t:e},isValid:function(t){return void 0!==i[t]||o(t)}}},{tinycolor2:576}],659:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=(t-r)/(n-r),o=a+e/(n-r),s=(a+o)/2;return&quot;left&quot;===i||&quot;bottom&quot;===i?a:&quot;center&quot;===i||&quot;middle&quot;===i?s:&quot;right&quot;===i||&quot;top&quot;===i?o:a&lt;2/3-s?a:o&gt;4/3-s?o:s}},{}],660:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=[[&quot;sw-resize&quot;,&quot;s-resize&quot;,&quot;se-resize&quot;],[&quot;w-resize&quot;,&quot;move&quot;,&quot;e-resize&quot;],[&quot;nw-resize&quot;,&quot;n-resize&quot;,&quot;ne-resize&quot;]];e.exports=function(t,e,r,a){return t=&quot;left&quot;===r?0:&quot;center&quot;===r?1:&quot;right&quot;===r?2:n.constrain(Math.floor(3*t),0,2),e=&quot;bottom&quot;===a?0:&quot;middle&quot;===a?1:&quot;top&quot;===a?2:n.constrain(Math.floor(3*e),0,2),i[e][t]}},{&quot;../../lib&quot;:778}],661:[function(t,e,r){&quot;use strict&quot;;r.selectMode=function(t){return&quot;lasso&quot;===t||&quot;select&quot;===t},r.drawMode=function(t){return&quot;drawclosedpath&quot;===t||&quot;drawopenpath&quot;===t||&quot;drawline&quot;===t||&quot;drawrect&quot;===t||&quot;drawcircle&quot;===t},r.openMode=function(t){return&quot;drawline&quot;===t||&quot;drawopenpath&quot;===t},r.rectMode=function(t){return&quot;select&quot;===t||&quot;drawline&quot;===t||&quot;drawrect&quot;===t||&quot;drawcircle&quot;===t},r.freeMode=function(t){return&quot;lasso&quot;===t||&quot;drawclosedpath&quot;===t||&quot;drawopenpath&quot;===t},r.selectingOrDrawing=function(t){return r.freeMode(t)||r.rectMode(t)}},{}],662:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mouse-event-offset&quot;),i=t(&quot;has-hover&quot;),a=t(&quot;has-passive-events&quot;),o=t(&quot;../../lib&quot;).removeElement,s=t(&quot;../../plots/cartesian/constants&quot;),l=e.exports={};l.align=t(&quot;./align&quot;),l.getCursor=t(&quot;./cursor&quot;);var c=t(&quot;./unhover&quot;);function u(){var t=document.createElement(&quot;div&quot;);t.className=&quot;dragcover&quot;;var e=t.style;return e.position=&quot;fixed&quot;,e.left=0,e.right=0,e.top=0,e.bottom=0,e.zIndex=999999999,e.background=&quot;none&quot;,document.body.appendChild(t),t}function f(t){return n(t.changedTouches?t.changedTouches[0]:t,document.body)}l.unhover=c.wrapped,l.unhoverRaw=c.raw,l.init=function(t){var e,r,n,c,h,p,d,g,m=t.gd,v=1,y=m._context.doubleClickDelay,x=t.element;m._mouseDownTime||(m._mouseDownTime=0),x.style.pointerEvents=&quot;all&quot;,x.onmousedown=_,a?(x._ontouchstart&amp;&amp;x.removeEventListener(&quot;touchstart&quot;,x._ontouchstart),x._ontouchstart=_,x.addEventListener(&quot;touchstart&quot;,_,{passive:!1})):x.ontouchstart=_;var b=t.clampFn||function(t,e,r){return Math.abs(t)&lt;r&amp;&amp;(t=0),Math.abs(e)&lt;r&amp;&amp;(e=0),[t,e]};function _(a){m._dragged=!1,m._dragging=!0;var o=f(a);e=o[0],r=o[1],d=a.target,p=a,g=2===a.buttons||a.ctrlKey,&quot;undefined&quot;==typeof a.clientX&amp;&amp;&quot;undefined&quot;==typeof a.clientY&amp;&amp;(a.clientX=e,a.clientY=r),(n=(new Date).getTime())-m._mouseDownTime&lt;y?v+=1:(v=1,m._mouseDownTime=n),t.prepFn&amp;&amp;t.prepFn(a,e,r),i&amp;&amp;!g?(h=u()).style.cursor=window.getComputedStyle(x).cursor:i||(h=document,c=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(x).cursor),document.addEventListener(&quot;mouseup&quot;,T),document.addEventListener(&quot;touchend&quot;,T),!1!==t.dragmode&amp;&amp;(a.preventDefault(),document.addEventListener(&quot;mousemove&quot;,w),document.addEventListener(&quot;touchmove&quot;,w,{passive:!1}))}function w(n){n.preventDefault();var i=f(n),a=t.minDrag||s.MINDRAG,o=b(i[0]-e,i[1]-r,a),c=o[0],u=o[1];(c||u)&amp;&amp;(m._dragged=!0,l.unhover(m)),m._dragged&amp;&amp;t.moveFn&amp;&amp;!g&amp;&amp;(m._dragdata={element:x,dx:c,dy:u},t.moveFn(c,u))}function T(e){if(delete m._dragdata,!1!==t.dragmode&amp;&amp;(e.preventDefault(),document.removeEventListener(&quot;mousemove&quot;,w),document.removeEventListener(&quot;touchmove&quot;,w)),document.removeEventListener(&quot;mouseup&quot;,T),document.removeEventListener(&quot;touchend&quot;,T),i?o(h):c&amp;&amp;(h.documentElement.style.cursor=c,c=null),m._dragging){if(m._dragging=!1,(new Date).getTime()-m._mouseDownTime&gt;y&amp;&amp;(v=Math.max(v-1,1)),m._dragged)t.doneFn&amp;&amp;t.doneFn();else if(t.clickFn&amp;&amp;t.clickFn(v,p),!g){var r;try{r=new MouseEvent(&quot;click&quot;,e)}catch(t){var n=f(e);(r=document.createEvent(&quot;MouseEvents&quot;)).initMouseEvent(&quot;click&quot;,e.bubbles,e.cancelable,e.view,e.detail,e.screenX,e.screenY,n[0],n[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget)}d.dispatchEvent(r)}m._dragging=!1,m._dragged=!1}else m._dragged=!1}},l.coverSlip=u},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/constants&quot;:834,&quot;./align&quot;:659,&quot;./cursor&quot;:660,&quot;./unhover&quot;:663,&quot;has-hover&quot;:440,&quot;has-passive-events&quot;:441,&quot;mouse-event-offset&quot;:484}],663:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/events&quot;),i=t(&quot;../../lib/throttle&quot;),a=t(&quot;../../lib/dom&quot;).getGraphDiv,o=t(&quot;../fx/constants&quot;),s=e.exports={};s.wrapped=function(t,e,r){(t=a(t))._fullLayout&amp;&amp;i.clear(t._fullLayout._uid+o.HOVERID),s.raw(t,e,r)},s.raw=function(t,e){var r=t._fullLayout,i=t._hoverdata;e||(e={}),e.target&amp;&amp;!1===n.triggerHandler(t,&quot;plotly_beforehover&quot;,e)||(r._hoverlayer.selectAll(&quot;g&quot;).remove(),r._hoverlayer.selectAll(&quot;line&quot;).remove(),r._hoverlayer.selectAll(&quot;circle&quot;).remove(),t._hoverdata=void 0,e.target&amp;&amp;i&amp;&amp;t.emit(&quot;plotly_unhover&quot;,{event:e,points:i}))}},{&quot;../../lib/dom&quot;:766,&quot;../../lib/events&quot;:767,&quot;../../lib/throttle&quot;:804,&quot;../fx/constants&quot;:677}],664:[function(t,e,r){&quot;use strict&quot;;r.dash={valType:&quot;string&quot;,values:[&quot;solid&quot;,&quot;dot&quot;,&quot;dash&quot;,&quot;longdash&quot;,&quot;dashdot&quot;,&quot;longdashdot&quot;],dflt:&quot;solid&quot;,editType:&quot;style&quot;}},{}],665:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../color&quot;),l=t(&quot;../colorscale&quot;),c=t(&quot;../../lib&quot;),u=c.strTranslate,f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../constants/xmlns_namespaces&quot;),p=t(&quot;../../constants/alignment&quot;).LINE_SPACING,d=t(&quot;../../constants/interactions&quot;).DESELECTDIM,g=t(&quot;../../traces/scatter/subtypes&quot;),m=t(&quot;../../traces/scatter/make_bubble_size_func&quot;),v=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,y=e.exports={};y.font=function(t,e,r,n){c.isPlainObject(e)&amp;&amp;(n=e.color,r=e.size,e=e.family),e&amp;&amp;t.style(&quot;font-family&quot;,e),r+1&amp;&amp;t.style(&quot;font-size&quot;,r+&quot;px&quot;),n&amp;&amp;t.call(s.fill,n)},y.setPosition=function(t,e,r){t.attr(&quot;x&quot;,e).attr(&quot;y&quot;,r)},y.setSize=function(t,e,r){t.attr(&quot;width&quot;,e).attr(&quot;height&quot;,r)},y.setRect=function(t,e,r,n,i){t.call(y.setPosition,e,r).call(y.setSize,n,i)},y.translatePoint=function(t,e,r,n){var a=r.c2p(t.x),o=n.c2p(t.y);return!!(i(a)&amp;&amp;i(o)&amp;&amp;e.node())&amp;&amp;(&quot;text&quot;===e.node().nodeName?e.attr(&quot;x&quot;,a).attr(&quot;y&quot;,o):e.attr(&quot;transform&quot;,u(a,o)),!0)},y.translatePoints=function(t,e,r){t.each((function(t){var i=n.select(this);y.translatePoint(t,i,e,r)}))},y.hideOutsideRangePoint=function(t,e,r,n,i,a){e.attr(&quot;display&quot;,r.isPtWithinRange(t,i)&amp;&amp;n.isPtWithinRange(t,a)?null:&quot;none&quot;)},y.hideOutsideRangePoints=function(t,e){if(e._hasClipOnAxisFalse){var r=e.xaxis,i=e.yaxis;t.each((function(e){var a=e[0].trace,s=a.xcalendar,l=a.ycalendar,c=o.traceIs(a,&quot;bar-like&quot;)?&quot;.bartext&quot;:&quot;.point,.textpoint&quot;;t.selectAll(c).each((function(t){y.hideOutsideRangePoint(t,n.select(this),r,i,s,l)}))}))}},y.crispRound=function(t,e,r){return e&amp;&amp;i(e)?t._context.staticPlot?e:e&lt;1?1:Math.round(e):r||0},y.singleLineStyle=function(t,e,r,n,i){e.style(&quot;fill&quot;,&quot;none&quot;);var a=(((t||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,l=i||a.dash||&quot;&quot;;s.stroke(e,n||a.color),y.dashLine(e,l,o)},y.lineGroupStyle=function(t,e,r,i){t.style(&quot;fill&quot;,&quot;none&quot;).each((function(t){var a=(((t||[])[0]||{}).trace||{}).line||{},o=e||a.width||0,l=i||a.dash||&quot;&quot;;n.select(this).call(s.stroke,r||a.color).call(y.dashLine,l,o)}))},y.dashLine=function(t,e,r){r=+r||0,e=y.dashStyle(e,r),t.style({&quot;stroke-dasharray&quot;:e,&quot;stroke-width&quot;:r+&quot;px&quot;})},y.dashStyle=function(t,e){e=+e||1;var r=Math.max(e,3);return&quot;solid&quot;===t?t=&quot;&quot;:&quot;dot&quot;===t?t=r+&quot;px,&quot;+r+&quot;px&quot;:&quot;dash&quot;===t?t=3*r+&quot;px,&quot;+3*r+&quot;px&quot;:&quot;longdash&quot;===t?t=5*r+&quot;px,&quot;+5*r+&quot;px&quot;:&quot;dashdot&quot;===t?t=3*r+&quot;px,&quot;+r+&quot;px,&quot;+r+&quot;px,&quot;+r+&quot;px&quot;:&quot;longdashdot&quot;===t&amp;&amp;(t=5*r+&quot;px,&quot;+2*r+&quot;px,&quot;+r+&quot;px,&quot;+2*r+&quot;px&quot;),t},y.singleFillStyle=function(t){var e=(((n.select(t.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;e&amp;&amp;t.call(s.fill,e)},y.fillGroupStyle=function(t){t.style(&quot;stroke-width&quot;,0).each((function(t){var e=n.select(this);t[0].trace&amp;&amp;e.call(s.fill,t[0].trace.fillcolor)}))};var x=t(&quot;./symbol_defs&quot;);y.symbolNames=[],y.symbolFuncs=[],y.symbolNeedLines={},y.symbolNoDot={},y.symbolNoFill={},y.symbolList=[],Object.keys(x).forEach((function(t){var e=x[t],r=e.n;y.symbolList.push(r,String(r),t,r+100,String(r+100),t+&quot;-open&quot;),y.symbolNames[r]=t,y.symbolFuncs[r]=e.f,e.needLine&amp;&amp;(y.symbolNeedLines[r]=!0),e.noDot?y.symbolNoDot[r]=!0:y.symbolList.push(r+200,String(r+200),t+&quot;-dot&quot;,r+300,String(r+300),t+&quot;-open-dot&quot;),e.noFill&amp;&amp;(y.symbolNoFill[r]=!0)}));var b=y.symbolNames.length;function _(t,e){var r=t%100;return y.symbolFuncs[r](e)+(t&gt;=200?&quot;M0,0.5L0.5,0L0,-0.5L-0.5,0Z&quot;:&quot;&quot;)}y.symbolNumber=function(t){if(i(t))t=+t;else if(&quot;string&quot;==typeof t){var e=0;t.indexOf(&quot;-open&quot;)&gt;0&amp;&amp;(e=100,t=t.replace(&quot;-open&quot;,&quot;&quot;)),t.indexOf(&quot;-dot&quot;)&gt;0&amp;&amp;(e+=200,t=t.replace(&quot;-dot&quot;,&quot;&quot;)),(t=y.symbolNames.indexOf(t))&gt;=0&amp;&amp;(t+=e)}return t%100&gt;=b||t&gt;=400?0:Math.floor(Math.max(t,0))};var w={x1:1,x2:0,y1:0,y2:0},T={x1:0,x2:0,y1:1,y2:0},k=n.format(&quot;~.1f&quot;),M={radial:{node:&quot;radialGradient&quot;},radialreversed:{node:&quot;radialGradient&quot;,reversed:!0},horizontal:{node:&quot;linearGradient&quot;,attrs:w},horizontalreversed:{node:&quot;linearGradient&quot;,attrs:w,reversed:!0},vertical:{node:&quot;linearGradient&quot;,attrs:T},verticalreversed:{node:&quot;linearGradient&quot;,attrs:T,reversed:!0}};y.gradient=function(t,e,r,i,o,l){for(var u=o.length,f=M[i],h=new Array(u),p=0;p&lt;u;p++)f.reversed?h[u-1-p]=[k(100*(1-o[p][0])),o[p][1]]:h[p]=[k(100*o[p][0]),o[p][1]];var d=e._fullLayout,g=&quot;g&quot;+d._uid+&quot;-&quot;+r,m=d._defs.select(&quot;.gradients&quot;).selectAll(&quot;#&quot;+g).data([i+h.join(&quot;;&quot;)],c.identity);m.exit().remove(),m.enter().append(f.node).each((function(){var t=n.select(this);f.attrs&amp;&amp;t.attr(f.attrs),t.attr(&quot;id&quot;,g);var e=t.selectAll(&quot;stop&quot;).data(h);e.exit().remove(),e.enter().append(&quot;stop&quot;),e.each((function(t){var e=a(t[1]);n.select(this).attr({offset:t[0]+&quot;%&quot;,&quot;stop-color&quot;:s.tinyRGB(e),&quot;stop-opacity&quot;:e.getAlpha()})}))})),t.style(l,O(g,e)).style(l+&quot;-opacity&quot;,null);var v=function(t){return&quot;.&quot;+t.attr(&quot;class&quot;).replace(/\s/g,&quot;.&quot;)},y=v(n.select(t.node().parentNode))+&quot;&gt;&quot;+v(t);d._gradientUrlQueryParts[y]=1},y.initGradients=function(t){var e=t._fullLayout;c.ensureSingle(e._defs,&quot;g&quot;,&quot;gradients&quot;).selectAll(&quot;linearGradient,radialGradient&quot;).remove(),e._gradientUrlQueryParts={}},y.pointStyle=function(t,e,r){if(t.size()){var i=y.makePointStyleFns(e);t.each((function(t){y.singlePointStyle(t,n.select(this),e,i,r)}))}},y.singlePointStyle=function(t,e,r,n,i){var a=r.marker,o=a.line;if(e.style(&quot;opacity&quot;,n.selectedOpacityFn?n.selectedOpacityFn(t):void 0===t.mo?a.opacity:t.mo),n.ms2mrc){var l;l=&quot;various&quot;===t.ms||&quot;various&quot;===a.size?3:n.ms2mrc(t.ms),t.mrc=l,n.selectedSizeFn&amp;&amp;(l=t.mrc=n.selectedSizeFn(t));var u=y.symbolNumber(t.mx||a.symbol)||0;t.om=u%200&gt;=100,e.attr(&quot;d&quot;,_(u,l))}var f,h,p,d=!1;if(t.so)p=o.outlierwidth,h=o.outliercolor,f=a.outliercolor;else{var g=(o||{}).width;p=(t.mlw+1||g+1||(t.trace?(t.trace.marker.line||{}).width:0)+1)-1||0,h=&quot;mlc&quot;in t?t.mlcc=n.lineScale(t.mlc):c.isArrayOrTypedArray(o.color)?s.defaultLine:o.color,c.isArrayOrTypedArray(a.color)&amp;&amp;(f=s.defaultLine,d=!0),f=&quot;mc&quot;in t?t.mcc=n.markerScale(t.mc):a.color||&quot;rgba(0,0,0,0)&quot;,n.selectedColorFn&amp;&amp;(f=n.selectedColorFn(t))}if(t.om)e.call(s.stroke,f).style({&quot;stroke-width&quot;:(p||1)+&quot;px&quot;,fill:&quot;none&quot;});else{e.style(&quot;stroke-width&quot;,(t.isBlank?0:p)+&quot;px&quot;);var m=a.gradient,v=t.mgt;if(v?d=!0:v=m&amp;&amp;m.type,Array.isArray(v)&amp;&amp;(v=v[0],M[v]||(v=0)),v&amp;&amp;&quot;none&quot;!==v){var x=t.mgc;x?d=!0:x=m.color;var b=r.uid;d&amp;&amp;(b+=&quot;-&quot;+t.i),y.gradient(e,i,b,v,[[0,x],[1,f]],&quot;fill&quot;)}else s.fill(e,f);p&amp;&amp;s.stroke(e,h)}},y.makePointStyleFns=function(t){var e={},r=t.marker;return e.markerScale=y.tryColorscale(r,&quot;&quot;),e.lineScale=y.tryColorscale(r,&quot;line&quot;),o.traceIs(t,&quot;symbols&quot;)&amp;&amp;(e.ms2mrc=g.isBubble(t)?m(t):function(){return(r.size||6)/2}),t.selectedpoints&amp;&amp;c.extendFlat(e,y.makeSelectedPointStyleFns(t)),e},y.makeSelectedPointStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.marker||{},a=r.marker||{},s=n.marker||{},l=i.opacity,u=a.opacity,f=s.opacity,h=void 0!==u,p=void 0!==f;(c.isArrayOrTypedArray(l)||h||p)&amp;&amp;(e.selectedOpacityFn=function(t){var e=void 0===t.mo?i.opacity:t.mo;return t.selected?h?u:e:p?f:d*e});var g=i.color,m=a.color,v=s.color;(m||v)&amp;&amp;(e.selectedColorFn=function(t){var e=t.mcc||g;return t.selected?m||e:v||e});var y=i.size,x=a.size,b=s.size,_=void 0!==x,w=void 0!==b;return o.traceIs(t,&quot;symbols&quot;)&amp;&amp;(_||w)&amp;&amp;(e.selectedSizeFn=function(t){var e=t.mrc||y/2;return t.selected?_?x/2:e:w?b/2:e}),e},y.makeSelectedTextStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.textfont||{},a=r.textfont||{},o=n.textfont||{},l=i.color,c=a.color,u=o.color;return e.selectedTextColorFn=function(t){var e=t.tc||l;return t.selected?c||e:u||(c?e:s.addOpacity(e,d))},e},y.selectedPointStyle=function(t,e){if(t.size()&amp;&amp;e.selectedpoints){var r=y.makeSelectedPointStyleFns(e),i=e.marker||{},a=[];r.selectedOpacityFn&amp;&amp;a.push((function(t,e){t.style(&quot;opacity&quot;,r.selectedOpacityFn(e))})),r.selectedColorFn&amp;&amp;a.push((function(t,e){s.fill(t,r.selectedColorFn(e))})),r.selectedSizeFn&amp;&amp;a.push((function(t,e){var n=e.mx||i.symbol||0,a=r.selectedSizeFn(e);t.attr(&quot;d&quot;,_(y.symbolNumber(n),a)),e.mrc2=a})),a.length&amp;&amp;t.each((function(t){for(var e=n.select(this),r=0;r&lt;a.length;r++)a[r](e,t)}))}},y.tryColorscale=function(t,e){var r=e?c.nestedProperty(t,e).get():t;if(r){var n=r.color;if((r.colorscale||r._colorAx)&amp;&amp;c.isArrayOrTypedArray(n))return l.makeColorScaleFuncFromTrace(r)}return c.identity};var A={start:1,end:-1,middle:0,bottom:1,top:-1};function S(t,e,r,i){var a=n.select(t.node().parentNode),o=-1!==e.indexOf(&quot;top&quot;)?&quot;top&quot;:-1!==e.indexOf(&quot;bottom&quot;)?&quot;bottom&quot;:&quot;middle&quot;,s=-1!==e.indexOf(&quot;left&quot;)?&quot;end&quot;:-1!==e.indexOf(&quot;right&quot;)?&quot;start&quot;:&quot;middle&quot;,l=i?i/.8+1:0,c=(f.lineCount(t)-1)*p+1,h=A[s]*l,d=.75*r+A[o]*l+(A[o]-1)*c*r/2;t.attr(&quot;text-anchor&quot;,s),a.attr(&quot;transform&quot;,u(h,d))}function E(t,e){var r=t.ts||e.textfont.size;return i(r)&amp;&amp;r&gt;0?r:0}y.textPointStyle=function(t,e,r){if(t.size()){var i;if(e.selectedpoints){var a=y.makeSelectedTextStyleFns(e);i=a.selectedTextColorFn}var o=e.texttemplate,s=r._fullLayout;t.each((function(t){var a=n.select(this),l=o?c.extractOption(t,e,&quot;txt&quot;,&quot;texttemplate&quot;):c.extractOption(t,e,&quot;tx&quot;,&quot;text&quot;);if(l||0===l){if(o){var u=e._module.formatLabels?e._module.formatLabels(t,e,s):{},h={};v(h,e,t.i);var p=e._meta||{};l=c.texttemplateString(l,u,s._d3locale,h,t,p)}var d=t.tp||e.textposition,g=E(t,e),m=i?i(t):t.tc||e.textfont.color;a.call(y.font,t.tf||e.textfont.family,g,m).text(l).call(f.convertToTspans,r).call(S,d,g,t.mrc)}else a.remove()}))}},y.selectedTextStyle=function(t,e){if(t.size()&amp;&amp;e.selectedpoints){var r=y.makeSelectedTextStyleFns(e);t.each((function(t){var i=n.select(this),a=r.selectedTextColorFn(t),o=t.tp||e.textposition,l=E(t,e);s.fill(i,a),S(i,o,l,t.mrc2||t.mrc)}))}};function C(t,e,r,i){var a=t[0]-e[0],o=t[1]-e[1],s=r[0]-e[0],l=r[1]-e[1],c=Math.pow(a*a+o*o,.25),u=Math.pow(s*s+l*l,.25),f=(u*u*a-c*c*s)*i,h=(u*u*o-c*c*l)*i,p=3*u*(c+u),d=3*c*(c+u);return[[n.round(e[0]+(p&amp;&amp;f/p),2),n.round(e[1]+(p&amp;&amp;h/p),2)],[n.round(e[0]-(d&amp;&amp;f/d),2),n.round(e[1]-(d&amp;&amp;h/d),2)]]}y.smoothopen=function(t,e){if(t.length&lt;3)return&quot;M&quot;+t.join(&quot;L&quot;);var r,n=&quot;M&quot;+t[0],i=[];for(r=1;r&lt;t.length-1;r++)i.push(C(t[r-1],t[r],t[r+1],e));for(n+=&quot;Q&quot;+i[0][0]+&quot; &quot;+t[1],r=2;r&lt;t.length-1;r++)n+=&quot;C&quot;+i[r-2][1]+&quot; &quot;+i[r-1][0]+&quot; &quot;+t[r];return n+=&quot;Q&quot;+i[t.length-3][1]+&quot; &quot;+t[t.length-1]},y.smoothclosed=function(t,e){if(t.length&lt;3)return&quot;M&quot;+t.join(&quot;L&quot;)+&quot;Z&quot;;var r,n=&quot;M&quot;+t[0],i=t.length-1,a=[C(t[i],t[0],t[1],e)];for(r=1;r&lt;i;r++)a.push(C(t[r-1],t[r],t[r+1],e));for(a.push(C(t[i-1],t[i],t[0],e)),r=1;r&lt;=i;r++)n+=&quot;C&quot;+a[r-1][1]+&quot; &quot;+a[r][0]+&quot; &quot;+t[r];return n+=&quot;C&quot;+a[i][1]+&quot; &quot;+a[0][0]+&quot; &quot;+t[0]+&quot;Z&quot;};var L={hv:function(t,e){return&quot;H&quot;+n.round(e[0],2)+&quot;V&quot;+n.round(e[1],2)},vh:function(t,e){return&quot;V&quot;+n.round(e[1],2)+&quot;H&quot;+n.round(e[0],2)},hvh:function(t,e){return&quot;H&quot;+n.round((t[0]+e[0])/2,2)+&quot;V&quot;+n.round(e[1],2)+&quot;H&quot;+n.round(e[0],2)},vhv:function(t,e){return&quot;V&quot;+n.round((t[1]+e[1])/2,2)+&quot;H&quot;+n.round(e[0],2)+&quot;V&quot;+n.round(e[1],2)}},I=function(t,e){return&quot;L&quot;+n.round(e[0],2)+&quot;,&quot;+n.round(e[1],2)};y.steps=function(t){var e=L[t]||I;return function(t){for(var r=&quot;M&quot;+n.round(t[0][0],2)+&quot;,&quot;+n.round(t[0][1],2),i=1;i&lt;t.length;i++)r+=e(t[i-1],t[i]);return r}},y.makeTester=function(){var t=c.ensureSingleById(n.select(&quot;body&quot;),&quot;svg&quot;,&quot;js-plotly-tester&quot;,(function(t){t.attr(h.svgAttrs).style({position:&quot;absolute&quot;,left:&quot;-10000px&quot;,top:&quot;-10000px&quot;,width:&quot;9000px&quot;,height:&quot;9000px&quot;,&quot;z-index&quot;:&quot;1&quot;})})),e=c.ensureSingle(t,&quot;path&quot;,&quot;js-reference-point&quot;,(function(t){t.attr(&quot;d&quot;,&quot;M0,0H1V1H0Z&quot;).style({&quot;stroke-width&quot;:0,fill:&quot;black&quot;})}));y.tester=t,y.testref=e},y.savedBBoxes={};var P=0;function z(t){var e=t.getAttribute(&quot;data-unformatted&quot;);if(null!==e)return e+t.getAttribute(&quot;data-math&quot;)+t.getAttribute(&quot;text-anchor&quot;)+t.getAttribute(&quot;style&quot;)}function O(t,e){if(!t)return null;var r=e._context;return&quot;url('&quot;+(r._exportedPlot?&quot;&quot;:r._baseUrl||&quot;&quot;)+&quot;#&quot;+t+&quot;')&quot;}y.bBox=function(t,e,r){var i,a,o;if(r||(r=z(t)),r){if(i=y.savedBBoxes[r])return c.extendFlat({},i)}else if(1===t.childNodes.length){var s=t.childNodes[0];if(r=z(s)){var l=+s.getAttribute(&quot;x&quot;)||0,u=+s.getAttribute(&quot;y&quot;)||0,h=s.getAttribute(&quot;transform&quot;);if(!h){var p=y.bBox(s,!1,r);return l&amp;&amp;(p.left+=l,p.right+=l),u&amp;&amp;(p.top+=u,p.bottom+=u),p}if(r+=&quot;~&quot;+l+&quot;~&quot;+u+&quot;~&quot;+h,i=y.savedBBoxes[r])return c.extendFlat({},i)}}e?a=t:(o=y.tester.node(),a=t.cloneNode(!0),o.appendChild(a)),n.select(a).attr(&quot;transform&quot;,null).call(f.positionText,0,0);var d=a.getBoundingClientRect(),g=y.testref.node().getBoundingClientRect();e||o.removeChild(a);var m={height:d.height,width:d.width,left:d.left-g.left,top:d.top-g.top,right:d.right-g.left,bottom:d.bottom-g.top};return P&gt;=1e4&amp;&amp;(y.savedBBoxes={},P=0),r&amp;&amp;(y.savedBBoxes[r]=m),P++,c.extendFlat({},m)},y.setClipUrl=function(t,e,r){t.attr(&quot;clip-path&quot;,O(e,r))},y.getTranslate=function(t){var e=(t[t.attr?&quot;attr&quot;:&quot;getAttribute&quot;](&quot;transform&quot;)||&quot;&quot;).replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(&quot; &quot;)})).split(&quot; &quot;);return{x:+e[0]||0,y:+e[1]||0}},y.setTranslate=function(t,e,r){var n=t.attr?&quot;attr&quot;:&quot;getAttribute&quot;,i=t.attr?&quot;attr&quot;:&quot;setAttribute&quot;,a=t[n](&quot;transform&quot;)||&quot;&quot;;return e=e||0,r=r||0,a=a.replace(/(\btranslate\(.*?\);?)/,&quot;&quot;).trim(),a=(a+=u(e,r)).trim(),t[i](&quot;transform&quot;,a),a},y.getScale=function(t){var e=(t[t.attr?&quot;attr&quot;:&quot;getAttribute&quot;](&quot;transform&quot;)||&quot;&quot;).replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(&quot; &quot;)})).split(&quot; &quot;);return{x:+e[0]||1,y:+e[1]||1}},y.setScale=function(t,e,r){var n=t.attr?&quot;attr&quot;:&quot;getAttribute&quot;,i=t.attr?&quot;attr&quot;:&quot;setAttribute&quot;,a=t[n](&quot;transform&quot;)||&quot;&quot;;return e=e||1,r=r||1,a=a.replace(/(\bscale\(.*?\);?)/,&quot;&quot;).trim(),a=(a+=&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;).trim(),t[i](&quot;transform&quot;,a),a};var D=/\s*sc.*/;y.setPointGroupScale=function(t,e,r){if(e=e||1,r=r||1,t){var n=1===e&amp;&amp;1===r?&quot;&quot;:&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;;t.each((function(){var t=(this.getAttribute(&quot;transform&quot;)||&quot;&quot;).replace(D,&quot;&quot;);t=(t+=n).trim(),this.setAttribute(&quot;transform&quot;,t)}))}};var R=/translate\([^)]*\)\s*$/;y.setTextPointsScale=function(t,e,r){t&amp;&amp;t.each((function(){var t,i=n.select(this),a=i.select(&quot;text&quot;);if(a.node()){var o=parseFloat(a.attr(&quot;x&quot;)||0),s=parseFloat(a.attr(&quot;y&quot;)||0),l=(i.attr(&quot;transform&quot;)||&quot;&quot;).match(R);t=1===e&amp;&amp;1===r?[]:[u(o,s),&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;,u(-o,-s)],l&amp;&amp;t.push(l),i.attr(&quot;transform&quot;,t.join(&quot;&quot;))}}))}},{&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/alignment&quot;:745,&quot;../../constants/interactions&quot;:752,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../registry&quot;:911,&quot;../../traces/scatter/make_bubble_size_func&quot;:1204,&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../color&quot;:643,&quot;../colorscale&quot;:655,&quot;./symbol_defs&quot;:666,d3:169,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],666:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports={circle:{n:0,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;}},square:{n:1,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;}},diamond:{n:2,f:function(t){var e=n.round(1.3*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;Z&quot;}},cross:{n:3,f:function(t){var e=n.round(.4*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+r+&quot;,&quot;+e+&quot;H&quot;+e+&quot;V&quot;+r+&quot;H-&quot;+e+&quot;V&quot;+e+&quot;H-&quot;+r+&quot;V-&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+r+&quot;H&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+r+&quot;Z&quot;}},x:{n:4,f:function(t){var e=n.round(.8*t/Math.sqrt(2),2),r=&quot;l&quot;+e+&quot;,&quot;+e,i=&quot;l&quot;+e+&quot;,-&quot;+e,a=&quot;l-&quot;+e+&quot;,-&quot;+e,o=&quot;l-&quot;+e+&quot;,&quot;+e;return&quot;M0,&quot;+e+r+i+a+i+a+o+a+o+r+o+r+&quot;Z&quot;}},&quot;triangle-up&quot;:{n:5,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+e+&quot;,&quot;+n.round(t/2,2)+&quot;H&quot;+e+&quot;L0,-&quot;+n.round(t,2)+&quot;Z&quot;}},&quot;triangle-down&quot;:{n:6,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+e+&quot;,-&quot;+n.round(t/2,2)+&quot;H&quot;+e+&quot;L0,&quot;+n.round(t,2)+&quot;Z&quot;}},&quot;triangle-left&quot;:{n:7,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M&quot;+n.round(t/2,2)+&quot;,-&quot;+e+&quot;V&quot;+e+&quot;L-&quot;+n.round(t,2)+&quot;,0Z&quot;}},&quot;triangle-right&quot;:{n:8,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+n.round(t/2,2)+&quot;,-&quot;+e+&quot;V&quot;+e+&quot;L&quot;+n.round(t,2)+&quot;,0Z&quot;}},&quot;triangle-ne&quot;:{n:9,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M-&quot;+r+&quot;,-&quot;+e+&quot;H&quot;+e+&quot;V&quot;+r+&quot;Z&quot;}},&quot;triangle-se&quot;:{n:10,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+e+&quot;H-&quot;+r+&quot;Z&quot;}},&quot;triangle-sw&quot;:{n:11,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+r+&quot;Z&quot;}},&quot;triangle-nw&quot;:{n:12,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M-&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+e+&quot;H&quot;+r+&quot;Z&quot;}},pentagon:{n:13,f:function(t){var e=n.round(.951*t,2),r=n.round(.588*t,2),i=n.round(-t,2),a=n.round(-.309*t,2);return&quot;M&quot;+e+&quot;,&quot;+a+&quot;L&quot;+r+&quot;,&quot;+n.round(.809*t,2)+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,&quot;+a+&quot;L0,&quot;+i+&quot;Z&quot;}},hexagon:{n:14,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return&quot;M&quot;+i+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;L0,&quot;+e+&quot;L-&quot;+i+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;L0,-&quot;+e+&quot;Z&quot;}},hexagon2:{n:15,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return&quot;M-&quot;+r+&quot;,&quot;+i+&quot;H&quot;+r+&quot;L&quot;+e+&quot;,0L&quot;+r+&quot;,-&quot;+i+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},octagon:{n:16,f:function(t){var e=n.round(.924*t,2),r=n.round(.383*t,2);return&quot;M-&quot;+r+&quot;,-&quot;+e+&quot;H&quot;+r+&quot;L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;L&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;Z&quot;}},star:{n:17,f:function(t){var e=1.4*t,r=n.round(.225*e,2),i=n.round(.951*e,2),a=n.round(.363*e,2),o=n.round(.588*e,2),s=n.round(-e,2),l=n.round(-.309*e,2),c=n.round(.118*e,2),u=n.round(.809*e,2);return&quot;M&quot;+r+&quot;,&quot;+l+&quot;H&quot;+i+&quot;L&quot;+a+&quot;,&quot;+c+&quot;L&quot;+o+&quot;,&quot;+u+&quot;L0,&quot;+n.round(.382*e,2)+&quot;L-&quot;+o+&quot;,&quot;+u+&quot;L-&quot;+a+&quot;,&quot;+c+&quot;L-&quot;+i+&quot;,&quot;+l+&quot;H-&quot;+r+&quot;L0,&quot;+s+&quot;Z&quot;}},hexagram:{n:18,f:function(t){var e=n.round(.66*t,2),r=n.round(.38*t,2),i=n.round(.76*t,2);return&quot;M-&quot;+i+&quot;,0l-&quot;+r+&quot;,-&quot;+e+&quot;h&quot;+i+&quot;l&quot;+r+&quot;,-&quot;+e+&quot;l&quot;+r+&quot;,&quot;+e+&quot;h&quot;+i+&quot;l-&quot;+r+&quot;,&quot;+e+&quot;l&quot;+r+&quot;,&quot;+e+&quot;h-&quot;+i+&quot;l-&quot;+r+&quot;,&quot;+e+&quot;l-&quot;+r+&quot;,-&quot;+e+&quot;h-&quot;+i+&quot;Z&quot;}},&quot;star-triangle-up&quot;:{n:19,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=&quot;A &quot;+a+&quot;,&quot;+a+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,&quot;+r+o+e+&quot;,&quot;+r+o+&quot;0,-&quot;+i+o+&quot;-&quot;+e+&quot;,&quot;+r+&quot;Z&quot;}},&quot;star-triangle-down&quot;:{n:20,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=&quot;A &quot;+a+&quot;,&quot;+a+&quot; 0 0 1 &quot;;return&quot;M&quot;+e+&quot;,-&quot;+r+o+&quot;-&quot;+e+&quot;,-&quot;+r+o+&quot;0,&quot;+i+o+e+&quot;,-&quot;+r+&quot;Z&quot;}},&quot;star-square&quot;:{n:21,f:function(t){var e=n.round(1.1*t,2),r=n.round(2*t,2),i=&quot;A &quot;+r+&quot;,&quot;+r+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,-&quot;+e+i+&quot;-&quot;+e+&quot;,&quot;+e+i+e+&quot;,&quot;+e+i+e+&quot;,-&quot;+e+i+&quot;-&quot;+e+&quot;,-&quot;+e+&quot;Z&quot;}},&quot;star-diamond&quot;:{n:22,f:function(t){var e=n.round(1.4*t,2),r=n.round(1.9*t,2),i=&quot;A &quot;+r+&quot;,&quot;+r+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,0&quot;+i+&quot;0,&quot;+e+i+e+&quot;,0&quot;+i+&quot;0,-&quot;+e+i+&quot;-&quot;+e+&quot;,0Z&quot;}},&quot;diamond-tall&quot;:{n:23,f:function(t){var e=n.round(.7*t,2),r=n.round(1.4*t,2);return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,0L0,-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},&quot;diamond-wide&quot;:{n:24,f:function(t){var e=n.round(1.4*t,2),r=n.round(.7*t,2);return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,0L0,-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},hourglass:{n:25,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;L&quot;+e+&quot;,-&quot;+e+&quot;H-&quot;+e+&quot;Z&quot;},noDot:!0},bowtie:{n:26,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;V-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e+&quot;V-&quot;+e+&quot;Z&quot;},noDot:!0},&quot;circle-cross&quot;:{n:27,f:function(t){var e=n.round(t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;},needLine:!0,noDot:!0},&quot;circle-x&quot;:{n:28,f:function(t){var e=n.round(t,2),r=n.round(t/Math.sqrt(2),2);return&quot;M&quot;+r+&quot;,&quot;+r+&quot;L-&quot;+r+&quot;,-&quot;+r+&quot;M&quot;+r+&quot;,-&quot;+r+&quot;L-&quot;+r+&quot;,&quot;+r+&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;},needLine:!0,noDot:!0},&quot;square-cross&quot;:{n:29,f:function(t){var e=n.round(t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;square-x&quot;:{n:30,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e+&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e+&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;diamond-cross&quot;:{n:31,f:function(t){var e=n.round(1.3*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;ZM0,-&quot;+e+&quot;V&quot;+e+&quot;M-&quot;+e+&quot;,0H&quot;+e},needLine:!0,noDot:!0},&quot;diamond-x&quot;:{n:32,f:function(t){var e=n.round(1.3*t,2),r=n.round(.65*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;ZM-&quot;+r+&quot;,-&quot;+r+&quot;L&quot;+r+&quot;,&quot;+r+&quot;M-&quot;+r+&quot;,&quot;+r+&quot;L&quot;+r+&quot;,-&quot;+r},needLine:!0,noDot:!0},&quot;cross-thin&quot;:{n:33,f:function(t){var e=n.round(1.4*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;x-thin&quot;:{n:34,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e+&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(t){var e=n.round(1.2*t,2),r=n.round(.85*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+r+&quot;,&quot;+r+&quot;L-&quot;+r+&quot;,-&quot;+r+&quot;M&quot;+r+&quot;,-&quot;+r+&quot;L-&quot;+r+&quot;,&quot;+r},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(t){var e=n.round(t/2,2),r=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;m-&quot;+r+&quot;,0V&quot;+r+&quot;M&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+r+&quot;m0,-&quot;+r+&quot;H&quot;+r},needLine:!0,noFill:!0},&quot;y-up&quot;:{n:37,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+e+&quot;,&quot;+i+&quot;L0,0M&quot;+e+&quot;,&quot;+i+&quot;L0,0M0,-&quot;+r+&quot;L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-down&quot;:{n:38,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+e+&quot;,-&quot;+i+&quot;L0,0M&quot;+e+&quot;,-&quot;+i+&quot;L0,0M0,&quot;+r+&quot;L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-left&quot;:{n:39,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M&quot;+i+&quot;,&quot;+e+&quot;L0,0M&quot;+i+&quot;,-&quot;+e+&quot;L0,0M-&quot;+r+&quot;,0L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-right&quot;:{n:40,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+i+&quot;,&quot;+e+&quot;L0,0M-&quot;+i+&quot;,-&quot;+e+&quot;L0,0M&quot;+r+&quot;,0L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;line-ew&quot;:{n:41,f:function(t){var e=n.round(1.4*t,2);return&quot;M&quot;+e+&quot;,0H-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-ns&quot;:{n:42,f:function(t){var e=n.round(1.4*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-ne&quot;:{n:43,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-nw&quot;:{n:44,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;arrow-up&quot;:{n:45,f:function(t){var e=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},noDot:!0},&quot;arrow-down&quot;:{n:46,f:function(t){var e=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,-&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},noDot:!0},&quot;arrow-left&quot;:{n:47,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,0L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},noDot:!0},&quot;arrow-right&quot;:{n:48,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},noDot:!0},&quot;arrow-bar-up&quot;:{n:49,f:function(t){var e=n.round(t,2);return&quot;M-&quot;+e+&quot;,0H&quot;+e+&quot;M0,0L-&quot;+e+&quot;,&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-down&quot;:{n:50,f:function(t){var e=n.round(t,2);return&quot;M-&quot;+e+&quot;,0H&quot;+e+&quot;M0,0L-&quot;+e+&quot;,-&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-left&quot;:{n:51,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,-&quot;+r+&quot;V&quot;+r+&quot;M0,0L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-right&quot;:{n:52,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,-&quot;+r+&quot;V&quot;+r+&quot;M0,0L-&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},needLine:!0,noDot:!0}}},{d3:169}],667:[function(t,e,r){&quot;use strict&quot;;e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;percent&quot;,&quot;constant&quot;,&quot;sqrt&quot;,&quot;data&quot;],editType:&quot;calc&quot;},symmetric:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},array:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},arrayminus:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},value:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;calc&quot;},valueminus:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;calc&quot;},traceref:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;style&quot;},tracerefminus:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;style&quot;},copy_ystyle:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},copy_zstyle:{valType:&quot;boolean&quot;,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},thickness:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;,_deprecated:{opacity:{valType:&quot;number&quot;,editType:&quot;style&quot;}}}},{}],668:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;./compute_error&quot;);function l(t,e,r,i){var l=e[&quot;error_&quot;+i]||{},c=[];if(l.visible&amp;&amp;-1!==[&quot;linear&quot;,&quot;log&quot;].indexOf(r.type)){for(var u=s(l),f=0;f&lt;t.length;f++){var h=t[f],p=h.i;if(void 0===p)p=f;else if(null===p)continue;var d=h[i];if(n(r.c2l(d))){var g=u(d,p);if(n(g[0])&amp;&amp;n(g[1])){var m=h[i+&quot;s&quot;]=d-g[0],v=h[i+&quot;h&quot;]=d+g[1];c.push(m,v)}}}var y=r._id,x=e._extremes[y],b=a.findExtremes(r,c,o.extendFlat({tozero:x.opts.tozero},{padded:!0}));x.min=x.min.concat(b.min),x.max=x.max.concat(b.max)}}e.exports=function(t){for(var e=t.calcdata,r=0;r&lt;e.length;r++){var n=e[r],o=n[0].trace;if(!0===o.visible&amp;&amp;i.traceIs(o,&quot;errorBarsOK&quot;)){var s=a.getFromId(t,o.xaxis),c=a.getFromId(t,o.yaxis);l(n,o,s,&quot;x&quot;),l(n,o,c,&quot;y&quot;)}}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./compute_error&quot;:669,&quot;fast-isnumeric&quot;:241}],669:[function(t,e,r){&quot;use strict&quot;;function n(t,e){return&quot;percent&quot;===t?function(t){return Math.abs(t*e/100)}:&quot;constant&quot;===t?function(){return Math.abs(e)}:&quot;sqrt&quot;===t?function(t){return Math.sqrt(Math.abs(t))}:void 0}e.exports=function(t){var e=t.type,r=t.symmetric;if(&quot;data&quot;===e){var i=t.array||[];if(r)return function(t,e){var r=+i[e];return[r,r]};var a=t.arrayminus||[];return function(t,e){var r=+i[e],n=+a[e];return isNaN(r)&amp;&amp;isNaN(n)?[NaN,NaN]:[n||0,r||0]}}var o=n(e,t.value),s=n(e,t.valueminus);return r||void 0===t.valueminus?function(t){var e=o(t);return[e,e]}:function(t){return[s(t),o(t)]}}},{}],670:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../plot_api/plot_template&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){var c=&quot;error_&quot;+l.axis,u=o.newContainer(e,c),f=t[c]||{};function h(t,e){return a.coerce(f,u,s,t,e)}if(!1!==h(&quot;visible&quot;,void 0!==f.array||void 0!==f.value||&quot;sqrt&quot;===f.type)){var p=h(&quot;type&quot;,&quot;array&quot;in f?&quot;data&quot;:&quot;percent&quot;),d=!0;&quot;sqrt&quot;!==p&amp;&amp;(d=h(&quot;symmetric&quot;,!((&quot;data&quot;===p?&quot;arrayminus&quot;:&quot;valueminus&quot;)in f))),&quot;data&quot;===p?(h(&quot;array&quot;),h(&quot;traceref&quot;),d||(h(&quot;arrayminus&quot;),h(&quot;tracerefminus&quot;))):&quot;percent&quot;!==p&amp;&amp;&quot;constant&quot;!==p||(h(&quot;value&quot;),d||h(&quot;valueminus&quot;));var g=&quot;copy_&quot;+l.inherit+&quot;style&quot;;if(l.inherit)(e[&quot;error_&quot;+l.inherit]||{}).visible&amp;&amp;h(g,!(f.color||n(f.thickness)||n(f.width)));l.inherit&amp;&amp;u[g]||(h(&quot;color&quot;,r),h(&quot;thickness&quot;),h(&quot;width&quot;,i.traceIs(e,&quot;gl3d&quot;)?0:4))}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../registry&quot;:911,&quot;./attributes&quot;:667,&quot;fast-isnumeric&quot;:241}],671:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/edit_types&quot;).overrideAll,a=t(&quot;./attributes&quot;),o={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var s={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a),error_z:n.extendFlat({},a)};delete s.error_x.copy_ystyle,delete s.error_y.copy_ystyle,delete s.error_z.copy_ystyle,delete s.error_z.copy_zstyle,e.exports={moduleType:&quot;component&quot;,name:&quot;errorbars&quot;,schema:{traces:{scatter:o,bar:o,histogram:o,scatter3d:i(s,&quot;calc&quot;,&quot;nested&quot;),scattergl:i(o,&quot;calc&quot;,&quot;nested&quot;)}},supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),makeComputeError:t(&quot;./compute_error&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverInfo:function(t,e,r){(e.error_y||{}).visible&amp;&amp;(r.yerr=t.yh-t.y,e.error_y.symmetric||(r.yerrneg=t.y-t.ys));(e.error_x||{}).visible&amp;&amp;(r.xerr=t.xh-t.x,e.error_x.symmetric||(r.xerrneg=t.x-t.xs))}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;./attributes&quot;:667,&quot;./calc&quot;:668,&quot;./compute_error&quot;:669,&quot;./defaults&quot;:670,&quot;./plot&quot;:672,&quot;./style&quot;:673}],672:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../drawing&quot;),o=t(&quot;../../traces/scatter/subtypes&quot;);e.exports=function(t,e,r,s){var l=r.xaxis,c=r.yaxis,u=s&amp;&amp;s.duration&gt;0;e.each((function(e){var f,h=e[0].trace,p=h.error_x||{},d=h.error_y||{};h.ids&amp;&amp;(f=function(t){return t.id});var g=o.hasMarkers(h)&amp;&amp;h.marker.maxdisplayed&gt;0;d.visible||p.visible||(e=[]);var m=n.select(this).selectAll(&quot;g.errorbar&quot;).data(e,f);if(m.exit().remove(),e.length){p.visible||m.selectAll(&quot;path.xerror&quot;).remove(),d.visible||m.selectAll(&quot;path.yerror&quot;).remove(),m.style(&quot;opacity&quot;,1);var v=m.enter().append(&quot;g&quot;).classed(&quot;errorbar&quot;,!0);u&amp;&amp;v.style(&quot;opacity&quot;,0).transition().duration(s.duration).style(&quot;opacity&quot;,1),a.setClipUrl(m,r.layerClipId,t),m.each((function(t){var e=n.select(this),r=function(t,e,r){var n={x:e.c2p(t.x),y:r.c2p(t.y)};void 0!==t.yh&amp;&amp;(n.yh=r.c2p(t.yh),n.ys=r.c2p(t.ys),i(n.ys)||(n.noYS=!0,n.ys=r.c2p(t.ys,!0)));void 0!==t.xh&amp;&amp;(n.xh=e.c2p(t.xh),n.xs=e.c2p(t.xs),i(n.xs)||(n.noXS=!0,n.xs=e.c2p(t.xs,!0)));return n}(t,l,c);if(!g||t.vis){var a,o=e.select(&quot;path.yerror&quot;);if(d.visible&amp;&amp;i(r.x)&amp;&amp;i(r.yh)&amp;&amp;i(r.ys)){var f=d.width;a=&quot;M&quot;+(r.x-f)+&quot;,&quot;+r.yh+&quot;h&quot;+2*f+&quot;m-&quot;+f+&quot;,0V&quot;+r.ys,r.noYS||(a+=&quot;m-&quot;+f+&quot;,0h&quot;+2*f),!o.size()?o=e.append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).classed(&quot;yerror&quot;,!0):u&amp;&amp;(o=o.transition().duration(s.duration).ease(s.easing)),o.attr(&quot;d&quot;,a)}else o.remove();var h=e.select(&quot;path.xerror&quot;);if(p.visible&amp;&amp;i(r.y)&amp;&amp;i(r.xh)&amp;&amp;i(r.xs)){var m=(p.copy_ystyle?d:p).width;a=&quot;M&quot;+r.xh+&quot;,&quot;+(r.y-m)+&quot;v&quot;+2*m+&quot;m0,-&quot;+m+&quot;H&quot;+r.xs,r.noXS||(a+=&quot;m0,-&quot;+m+&quot;v&quot;+2*m),!h.size()?h=e.append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).classed(&quot;xerror&quot;,!0):u&amp;&amp;(h=h.transition().duration(s.duration).ease(s.easing)),h.attr(&quot;d&quot;,a)}else h.remove()}}))}}))}},{&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../drawing&quot;:665,d3:169,&quot;fast-isnumeric&quot;:241}],673:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../color&quot;);e.exports=function(t){t.each((function(t){var e=t[0].trace,r=e.error_y||{},a=e.error_x||{},o=n.select(this);o.selectAll(&quot;path.yerror&quot;).style(&quot;stroke-width&quot;,r.thickness+&quot;px&quot;).call(i.stroke,r.color),a.copy_ystyle&amp;&amp;(a=r),o.selectAll(&quot;path.xerror&quot;).style(&quot;stroke-width&quot;,a.thickness+&quot;px&quot;).call(i.stroke,a.color)}))}},{&quot;../color&quot;:643,d3:169}],674:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;./layout_attributes&quot;).hoverlabel,a=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={hoverlabel:{bgcolor:a({},i.bgcolor,{arrayOk:!0}),bordercolor:a({},i.bordercolor,{arrayOk:!0}),font:n({arrayOk:!0,editType:&quot;none&quot;}),align:a({},i.align,{arrayOk:!0}),namelength:a({},i.namelength,{arrayOk:!0}),editType:&quot;none&quot;}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;./layout_attributes&quot;:684}],675:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;);function a(t,e,r,i){i=i||n.identity,Array.isArray(t)&amp;&amp;(e[0][r]=i(t))}e.exports=function(t){var e=t.calcdata,r=t._fullLayout;function o(t){return function(e){return n.coerceHoverinfo({hoverinfo:e},{_module:t._module},r)}}for(var s=0;s&lt;e.length;s++){var l=e[s],c=l[0].trace;if(!i.traceIs(c,&quot;pie-like&quot;)){var u=i.traceIs(c,&quot;2dMap&quot;)?a:n.fillArray;u(c.hoverinfo,l,&quot;hi&quot;,o(c)),c.hovertemplate&amp;&amp;u(c.hovertemplate,l,&quot;ht&quot;),c.hoverlabel&amp;&amp;(u(c.hoverlabel.bgcolor,l,&quot;hbg&quot;),u(c.hoverlabel.bordercolor,l,&quot;hbc&quot;),u(c.hoverlabel.font.size,l,&quot;hts&quot;),u(c.hoverlabel.font.color,l,&quot;htc&quot;),u(c.hoverlabel.font.family,l,&quot;htf&quot;),u(c.hoverlabel.namelength,l,&quot;hnl&quot;),u(c.hoverlabel.align,l,&quot;hta&quot;))}}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],676:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./hover&quot;).hover;e.exports=function(t,e,r){var a=n.getComponentMethod(&quot;annotations&quot;,&quot;onClick&quot;)(t,t._hoverdata);function o(){t.emit(&quot;plotly_click&quot;,{points:t._hoverdata,event:e})}void 0!==r&amp;&amp;i(t,e,r,!0),t._hoverdata&amp;&amp;e&amp;&amp;e.target&amp;&amp;(a&amp;&amp;a.then?a.then(o):o(),e.stopImmediatePropagation&amp;&amp;e.stopImmediatePropagation())}},{&quot;../../registry&quot;:911,&quot;./hover&quot;:680}],677:[function(t,e,r){&quot;use strict&quot;;e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:&quot;Arial, sans-serif&quot;,HOVERMINTIME:50,HOVERID:&quot;-hover&quot;}},{}],678:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./hoverlabel_defaults&quot;);e.exports=function(t,e,r,o){var s=n.extendFlat({},o.hoverlabel);e.hovertemplate&amp;&amp;(s.namelength=-1),a(t,e,(function(r,a){return n.coerce(t,e,i,r,a)}),s)}},{&quot;../../lib&quot;:778,&quot;./attributes&quot;:674,&quot;./hoverlabel_defaults&quot;:681}],679:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);r.getSubplot=function(t){return t.subplot||t.xaxis+t.yaxis||t.geo},r.isTraceInSubplots=function(t,e){if(&quot;splom&quot;===t.type){for(var n=t.xaxes||[],i=t.yaxes||[],a=0;a&lt;n.length;a++)for(var o=0;o&lt;i.length;o++)if(-1!==e.indexOf(n[a]+i[o]))return!0;return!1}return-1!==e.indexOf(r.getSubplot(t))},r.flat=function(t,e){for(var r=new Array(t.length),n=0;n&lt;t.length;n++)r[n]=e;return r},r.p2c=function(t,e){for(var r=new Array(t.length),n=0;n&lt;t.length;n++)r[n]=t[n].p2c(e);return r},r.getDistanceFunction=function(t,e,n,i){return&quot;closest&quot;===t?i||r.quadrature(e,n):&quot;x&quot;===t.charAt(0)?e:n},r.getClosest=function(t,e,r){if(!1!==r.index)r.index&gt;=0&amp;&amp;r.index&lt;t.length?r.distance=0:r.index=!1;else for(var n=0;n&lt;t.length;n++){var i=e(t[n]);i&lt;=r.distance&amp;&amp;(r.index=n,r.distance=i)}return r},r.inbox=function(t,e,r){return t*e&lt;0||0===t?r:1/0},r.quadrature=function(t,e){return function(r){var n=t(r),i=e(r);return Math.sqrt(n*n+i*i)}},r.makeEventData=function(t,e,n){var i=&quot;index&quot;in t?t.index:t.pointNumber,a={data:e._input,fullData:e,curveNumber:e.index,pointNumber:i};if(e._indexToPoints){var o=e._indexToPoints[i];1===o.length?a.pointIndex=o[0]:a.pointIndices=o}else a.pointIndex=i;return e._module.eventData?a=e._module.eventData(a,t,e,n,i):(&quot;xVal&quot;in t?a.x=t.xVal:&quot;x&quot;in t&amp;&amp;(a.x=t.x),&quot;yVal&quot;in t?a.y=t.yVal:&quot;y&quot;in t&amp;&amp;(a.y=t.y),t.xa&amp;&amp;(a.xaxis=t.xa),t.ya&amp;&amp;(a.yaxis=t.ya),void 0!==t.zLabelVal&amp;&amp;(a.z=t.zLabelVal)),r.appendArrayPointValue(a,e,i),a},r.appendArrayPointValue=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s&lt;i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){var u=o(n.nestedProperty(e,l).get(),r);void 0!==u&amp;&amp;(t[c]=u)}}},r.appendArrayMultiPointValues=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s&lt;i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){for(var u=n.nestedProperty(e,l).get(),f=new Array(r.length),h=0;h&lt;r.length;h++)f[h]=o(u,r[h]);t[c]=f}}};var i={ids:&quot;id&quot;,locations:&quot;location&quot;,labels:&quot;label&quot;,values:&quot;value&quot;,&quot;marker.colors&quot;:&quot;color&quot;,parents:&quot;parent&quot;};function a(t){return i[t]||t}function o(t,e){return Array.isArray(e)?Array.isArray(t)&amp;&amp;Array.isArray(t[e[0]])?t[e[0]][e[1]]:void 0:t[e]}var s={x:!0,y:!0},l={&quot;x unified&quot;:!0,&quot;y unified&quot;:!0};r.isUnifiedHover=function(t){return&quot;string&quot;==typeof t&amp;&amp;!!l[t]},r.isXYhover=function(t){return&quot;string&quot;==typeof t&amp;&amp;!!s[t]}},{&quot;../../lib&quot;:778}],680:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=o.strRotate,c=t(&quot;../../lib/events&quot;),u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../lib/override_cursor&quot;),h=t(&quot;../drawing&quot;),p=t(&quot;../color&quot;),d=t(&quot;../dragelement&quot;),g=t(&quot;../../plots/cartesian/axes&quot;),m=t(&quot;../../registry&quot;),v=t(&quot;./helpers&quot;),y=t(&quot;./constants&quot;),x=t(&quot;../legend/defaults&quot;),b=t(&quot;../legend/draw&quot;),_=y.YANGLE,w=Math.PI*_/180,T=1/Math.sin(w),k=Math.cos(w),M=Math.sin(w),A=y.HOVERARROWSIZE,S=y.HOVERTEXTPAD;function E(t){return[t.trace.index,t.index,t.x0,t.y0,t.name,t.attr,t.xa,t.ya||&quot;&quot;].join(&quot;,&quot;)}r.hover=function(t,e,r,a){t=o.getGraphDiv(t),o.throttle(t._fullLayout._uid+y.HOVERID,y.HOVERMINTIME,(function(){!function(t,e,r,a){r||(r=&quot;xy&quot;);var s=Array.isArray(r)?r:[r],l=t._fullLayout,u=l._plots||[],h=u[r],g=l._has(&quot;cartesian&quot;);if(h){var y=h.overlays.map((function(t){return t.id}));s=s.concat(y)}for(var x=s.length,b=new Array(x),_=new Array(x),w=!1,k=0;k&lt;x;k++){var M=s[k];if(u[M])w=!0,b[k]=u[M].xaxis,_[k]=u[M].yaxis;else{if(!l[M]||!l[M]._subplot)return void o.warn(&quot;Unrecognized subplot: &quot;+M);var A=l[M]._subplot;b[k]=A.xaxis,_[k]=A.yaxis}}var S=e.hovermode||l.hovermode;S&amp;&amp;!w&amp;&amp;(S=&quot;closest&quot;);if(-1===[&quot;x&quot;,&quot;y&quot;,&quot;closest&quot;,&quot;x unified&quot;,&quot;y unified&quot;].indexOf(S)||!t.calcdata||t.querySelector(&quot;.zoombox&quot;)||t._dragging)return d.unhoverRaw(t,e);var C,I,R,F,B,N,j,U,V,q,H,G,Y,W=-1===l.hoverdistance?1/0:l.hoverdistance,X=-1===l.spikedistance?1/0:l.spikedistance,Z=[],J=[],K={hLinePoint:null,vLinePoint:null},Q=!1;if(Array.isArray(e))for(S=&quot;array&quot;,R=0;R&lt;e.length;R++)(B=t.calcdata[e[R].curveNumber||0])&amp;&amp;(N=B[0].trace,&quot;skip&quot;!==B[0].trace.hoverinfo&amp;&amp;(J.push(B),&quot;h&quot;===N.orientation&amp;&amp;(Q=!0)));else{for(F=0;F&lt;t.calcdata.length;F++)B=t.calcdata[F],&quot;skip&quot;!==(N=B[0].trace).hoverinfo&amp;&amp;v.isTraceInSubplots(N,s)&amp;&amp;(J.push(B),&quot;h&quot;===N.orientation&amp;&amp;(Q=!0));var $,tt;if(!e.target)$=&quot;xpx&quot;in e?e.xpx:b[0]._length/2,tt=&quot;ypx&quot;in e?e.ypx:_[0]._length/2;else{if(!1===c.triggerHandler(t,&quot;plotly_beforehover&quot;,e))return;var et=e.target.getBoundingClientRect();$=e.clientX-et.left,tt=e.clientY-et.top,l._calcInverseTransform(t);var rt=o.apply3DTransform(l._invTransform)($,tt);if($=rt[0],tt=rt[1],$&lt;0||$&gt;b[0]._length||tt&lt;0||tt&gt;_[0]._length)return d.unhoverRaw(t,e)}if(e.pointerX=$+b[0]._offset,e.pointerY=tt+_[0]._offset,C=&quot;xval&quot;in e?v.flat(s,e.xval):v.p2c(b,$),I=&quot;yval&quot;in e?v.flat(s,e.yval):v.p2c(_,tt),!i(C[0])||!i(I[0]))return o.warn(&quot;Fx.hover failed&quot;,e,t),d.unhoverRaw(t,e)}var nt=1/0;function it(t,r){for(F=0;F&lt;J.length;F++)if((B=J[F])&amp;&amp;B[0]&amp;&amp;B[0].trace&amp;&amp;!0===(N=B[0].trace).visible&amp;&amp;0!==N._length&amp;&amp;-1===[&quot;carpet&quot;,&quot;contourcarpet&quot;].indexOf(N._module.name)){if(&quot;splom&quot;===N.type?j=s[U=0]:(j=v.getSubplot(N),U=s.indexOf(j)),V=S,v.isUnifiedHover(V)&amp;&amp;(V=V.charAt(0)),G={cd:B,trace:N,xa:b[U],ya:_[U],maxHoverDistance:W,maxSpikeDistance:X,index:!1,distance:Math.min(nt,W),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:p.defaultLine,name:N.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},l[j]&amp;&amp;(G.subplot=l[j]._subplot),l._splomScenes&amp;&amp;l._splomScenes[N.uid]&amp;&amp;(G.scene=l._splomScenes[N.uid]),Y=Z.length,&quot;array&quot;===V){var n=e[F];&quot;pointNumber&quot;in n?(G.index=n.pointNumber,V=&quot;closest&quot;):(V=&quot;&quot;,&quot;xval&quot;in n&amp;&amp;(q=n.xval,V=&quot;x&quot;),&quot;yval&quot;in n&amp;&amp;(H=n.yval,V=V?&quot;closest&quot;:&quot;y&quot;))}else void 0!==t&amp;&amp;void 0!==r?(q=t,H=r):(q=C[U],H=I[U]);if(0!==W)if(N._module&amp;&amp;N._module.hoverPoints){var a=N._module.hoverPoints(G,q,H,V,l._hoverlayer);if(a)for(var c,u=0;u&lt;a.length;u++)c=a[u],i(c.x0)&amp;&amp;i(c.y0)&amp;&amp;Z.push(z(c,S))}else o.log(&quot;Unrecognized trace type in hover:&quot;,N);if(&quot;closest&quot;===S&amp;&amp;Z.length&gt;Y&amp;&amp;(Z.splice(0,Y),nt=Z[0].distance),g&amp;&amp;0!==X&amp;&amp;0===Z.length){G.distance=X,G.index=!1;var f=N._module.hoverPoints(G,q,H,&quot;closest&quot;,l._hoverlayer);if(f&amp;&amp;(f=f.filter((function(t){return t.spikeDistance&lt;=X}))),f&amp;&amp;f.length){var h,d=f.filter((function(t){return t.xa.showspikes&amp;&amp;&quot;hovered data&quot;!==t.xa.spikesnap}));if(d.length){var m=d[0];i(m.x0)&amp;&amp;i(m.y0)&amp;&amp;(h=ot(m),(!K.vLinePoint||K.vLinePoint.spikeDistance&gt;h.spikeDistance)&amp;&amp;(K.vLinePoint=h))}var y=f.filter((function(t){return t.ya.showspikes&amp;&amp;&quot;hovered data&quot;!==t.ya.spikesnap}));if(y.length){var x=y[0];i(x.x0)&amp;&amp;i(x.y0)&amp;&amp;(h=ot(x),(!K.hLinePoint||K.hLinePoint.spikeDistance&gt;h.spikeDistance)&amp;&amp;(K.hLinePoint=h))}}}}}function at(t,e){for(var r,n=null,i=1/0,a=0;a&lt;t.length;a++)(r=t[a].spikeDistance)&lt;=i&amp;&amp;r&lt;=e&amp;&amp;(n=t[a],i=r);return n}function ot(t){return t?{xa:t.xa,ya:t.ya,x:void 0!==t.xSpike?t.xSpike:(t.x0+t.x1)/2,y:void 0!==t.ySpike?t.ySpike:(t.y0+t.y1)/2,distance:t.distance,spikeDistance:t.spikeDistance,curveNumber:t.trace.index,color:t.color,pointNumber:t.index}:null}it();var st={fullLayout:l,container:l._hoverlayer,outerContainer:l._paperdiv,event:e},lt=t._spikepoints,ct={vLinePoint:K.vLinePoint,hLinePoint:K.hLinePoint};if(t._spikepoints=ct,g&amp;&amp;0!==X&amp;&amp;0!==Z.length){var ut=at(Z.filter((function(t){return t.ya.showspikes})),X);K.hLinePoint=ot(ut);var ft=at(Z.filter((function(t){return t.xa.showspikes})),X);K.vLinePoint=ot(ft)}if(0===Z.length){var ht=d.unhoverRaw(t,e);return!g||null===K.hLinePoint&amp;&amp;null===K.vLinePoint||D(lt)&amp;&amp;O(t,K,st),ht}g&amp;&amp;D(lt)&amp;&amp;O(t,K,st);if(Z.sort((function(t,e){return t.distance-e.distance})),v.isXYhover(V)&amp;&amp;0!==Z[0].length&amp;&amp;&quot;splom&quot;!==Z[0].trace.type){var pt=Z[0],dt=pt.cd[pt.index],gt=&quot;group&quot;===l.boxmode||&quot;group&quot;===l.violinmode,mt=pt.xVal,vt=pt.xa;&quot;category&quot;===vt.type&amp;&amp;(mt=vt._categoriesMap[mt]),&quot;date&quot;===vt.type&amp;&amp;(mt=vt.d2c(mt)),dt&amp;&amp;dt.t&amp;&amp;dt.t.posLetter===vt._id&amp;&amp;gt&amp;&amp;(mt+=dt.t.dPos);var yt=pt.yVal;&quot;category&quot;===(vt=pt.ya).type&amp;&amp;(yt=vt._categoriesMap[yt]),&quot;date&quot;===vt.type&amp;&amp;(yt=vt.d2c(yt)),dt&amp;&amp;dt.t&amp;&amp;dt.t.posLetter===vt._id&amp;&amp;gt&amp;&amp;(yt+=dt.t.dPos),it(mt,yt);var xt={};Z=Z.filter((function(t){var e=E(t);if(!xt[e])return xt[e]=!0,xt[e]}))}var bt=t._hoverdata,_t=[];for(R=0;R&lt;Z.length;R++){var wt=Z[R],Tt=v.makeEventData(wt,wt.trace,wt.cd);if(!1!==wt.hovertemplate){var kt=!1;wt.cd[wt.index]&amp;&amp;wt.cd[wt.index].ht&amp;&amp;(kt=wt.cd[wt.index].ht),wt.hovertemplate=kt||wt.trace.hovertemplate||!1}wt.eventData=[Tt],_t.push(Tt)}t._hoverdata=_t;var Mt=&quot;y&quot;===S&amp;&amp;(J.length&gt;1||Z.length&gt;1)||&quot;closest&quot;===S&amp;&amp;Q&amp;&amp;Z.length&gt;1,At=p.combine(l.plot_bgcolor||p.background,l.paper_bgcolor),St={hovermode:S,rotateLabels:Mt,bgColor:At,container:l._hoverlayer,outerContainer:l._paperdiv,commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance},Et=L(Z,St,t);v.isUnifiedHover(S)||(!function(t,e,r){var n,i,a,o,s,l,c,u=0,f=1,h=t.size(),p=new Array(h),d=0;function g(t){var e=t[0],r=t[t.length-1];if(i=e.pmin-e.pos-e.dp+e.size,a=r.pos+r.dp+r.size-e.pmax,i&gt;.01){for(s=t.length-1;s&gt;=0;s--)t[s].dp+=i;n=!1}if(!(a&lt;.01)){if(i&lt;-.01){for(s=t.length-1;s&gt;=0;s--)t[s].dp-=a;n=!1}if(n){var c=0;for(o=0;o&lt;t.length;o++)(l=t[o]).pos+l.dp+l.size&gt;e.pmax&amp;&amp;c++;for(o=t.length-1;o&gt;=0&amp;&amp;!(c&lt;=0);o--)(l=t[o]).pos&gt;e.pmax-1&amp;&amp;(l.del=!0,c--);for(o=0;o&lt;t.length&amp;&amp;!(c&lt;=0);o++)if((l=t[o]).pos&lt;e.pmin+1)for(l.del=!0,c--,a=2*l.size,s=t.length-1;s&gt;=0;s--)t[s].dp-=a;for(o=t.length-1;o&gt;=0&amp;&amp;!(c&lt;=0);o--)(l=t[o]).pos+l.dp+l.size&gt;e.pmax&amp;&amp;(l.del=!0,c--)}}}t.each((function(t){var n=t[e],i=&quot;x&quot;===n._id.charAt(0),a=n.range;0===d&amp;&amp;a&amp;&amp;a[0]&gt;a[1]!==i&amp;&amp;(f=-1),p[d++]=[{datum:t,traceIndex:t.trace.index,dp:0,pos:t.pos,posref:t.posref,size:t.by*(i?T:1)/2,pmin:0,pmax:i?r.width:r.height}]})),p.sort((function(t,e){return t[0].posref-e[0].posref||f*(e[0].traceIndex-t[0].traceIndex)}));for(;!n&amp;&amp;u&lt;=h;){for(u++,n=!0,o=0;o&lt;p.length-1;){var m=p[o],v=p[o+1],y=m[m.length-1],x=v[0];if((i=y.pos+y.dp+y.size-x.pos-x.dp+x.size)&gt;.01&amp;&amp;y.pmin===x.pmin&amp;&amp;y.pmax===x.pmax){for(s=v.length-1;s&gt;=0;s--)v[s].dp+=i;for(m.push.apply(m,v),p.splice(o+1,1),c=0,s=m.length-1;s&gt;=0;s--)c+=m[s].dp;for(a=c/m.length,s=m.length-1;s&gt;=0;s--)m[s].dp-=a;n=!1}else o++}p.forEach(g)}for(o=p.length-1;o&gt;=0;o--){var b=p[o];for(s=b.length-1;s&gt;=0;s--){var _=b[s],w=_.datum;w.offset=_.dp,w.del=_.del}}}(Et,Mt?&quot;xa&quot;:&quot;ya&quot;,l),P(Et,Mt,l._invScaleX,l._invScaleY));if(e.target&amp;&amp;e.target.tagName){var Ct=m.getComponentMethod(&quot;annotations&quot;,&quot;hasClickToShow&quot;)(t,_t);f(n.select(e.target),Ct?&quot;pointer&quot;:&quot;&quot;)}if(!e.target||a||!function(t,e,r){if(!r||r.length!==t._hoverdata.length)return!0;for(var n=r.length-1;n&gt;=0;n--){var i=r[n],a=t._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers))return!0}return!1}(t,0,bt))return;bt&amp;&amp;t.emit(&quot;plotly_unhover&quot;,{event:e,points:bt});t.emit(&quot;plotly_hover&quot;,{event:e,points:t._hoverdata,xaxes:b,yaxes:_,xvals:C,yvals:I})}(t,e,r,a)}))},r.loneHover=function(t,e){var r=!0;Array.isArray(t)||(r=!1,t=[t]);var i=t.map((function(t){return{color:t.color||p.defaultLine,x0:t.x0||t.x||0,x1:t.x1||t.x||0,y0:t.y0||t.y||0,y1:t.y1||t.y||0,xLabel:t.xLabel,yLabel:t.yLabel,zLabel:t.zLabel,text:t.text,name:t.name,idealAlign:t.idealAlign,borderColor:t.borderColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontColor:t.fontColor,nameLength:t.nameLength,textAlign:t.textAlign,trace:t.trace||{index:0,hoverinfo:&quot;&quot;},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:t.hovertemplate||!1,eventData:t.eventData||!1,hovertemplateLabels:t.hovertemplateLabels||!1}})),a=n.select(e.container),o=e.outerContainer?n.select(e.outerContainer):a,s={hovermode:&quot;closest&quot;,rotateLabels:!1,bgColor:e.bgColor||p.background,container:a,outerContainer:o},l=L(i,s,e.gd),c=0,u=0;l.sort((function(t,e){return t.y0-e.y0})).each((function(t,r){var n=t.y0-t.by/2;t.offset=n-5&lt;c?c-n+5:0,c=n+t.by+t.offset,r===e.anchorIndex&amp;&amp;(u=t.offset)})).each((function(t){t.offset-=u}));var f=e.gd._fullLayout._invScaleX,h=e.gd._fullLayout._invScaleY;return P(l,s.rotateLabels,f,h),r?l:l.node()};var C=/&lt;extra&gt;([\s\S]*)&lt;\/extra&gt;/;function L(t,e,r){var i=r._fullLayout,a=e.hovermode,c=e.rotateLabels,f=e.bgColor,d=e.container,g=e.outerContainer,m=e.commonLabelOpts||{},w=e.fontFamily||y.HOVERFONT,T=e.fontSize||y.HOVERFONTSIZE,k=t[0],M=k.xa,C=k.ya,L=&quot;y&quot;===a.charAt(0)?&quot;yLabel&quot;:&quot;xLabel&quot;,P=k[L],z=(String(P)||&quot;&quot;).split(&quot; &quot;)[0],O=g.node().getBoundingClientRect(),D=O.top,R=O.width,F=O.height,B=void 0!==P&amp;&amp;k.distance&lt;=e.hoverdistance&amp;&amp;(&quot;x&quot;===a||&quot;y&quot;===a);if(B){var N,j,U=!0;for(N=0;N&lt;t.length;N++)if(U&amp;&amp;void 0===t[N].zLabel&amp;&amp;(U=!1),j=t[N].hoverinfo||t[N].trace.hoverinfo){var V=Array.isArray(j)?j:j.split(&quot;+&quot;);if(-1===V.indexOf(&quot;all&quot;)&amp;&amp;-1===V.indexOf(a)){B=!1;break}}U&amp;&amp;(B=!1)}var q=d.selectAll(&quot;g.axistext&quot;).data(B?[0]:[]);function H(t){return t.filter((function(t){return void 0!==t.zLabelVal||(t[L]||&quot;&quot;).split(&quot; &quot;)[0]===z}))}if(q.enter().append(&quot;g&quot;).classed(&quot;axistext&quot;,!0),q.exit().remove(),q.each((function(){var e=n.select(this),l=o.ensureSingle(e,&quot;path&quot;,&quot;&quot;,(function(t){t.style({&quot;stroke-width&quot;:&quot;1px&quot;})})),c=o.ensureSingle(e,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),f=m.bgcolor||p.defaultLine,d=m.bordercolor||p.contrast(f),g=p.contrast(f),v={family:m.font.family||w,size:m.font.size||T,color:m.font.color||g};l.style({fill:f,stroke:d}),c.text(P).call(h.font,v).call(u.positionText,0,0).call(u.convertToTspans,r),e.attr(&quot;transform&quot;,&quot;&quot;);var y,x,b=c.node().getBoundingClientRect();if(&quot;x&quot;===a){var _=&quot;top&quot;===M.side?&quot;-&quot;:&quot;&quot;;c.attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(u.positionText,0,&quot;top&quot;===M.side?D-b.bottom-A-S:D-b.top+A+S),y=M._offset+(k.x0+k.x1)/2,x=C._offset+(&quot;top&quot;===M.side?0:C._length);var E=b.width/2+S;y&lt;E?(y=E,l.attr(&quot;d&quot;,&quot;M-&quot;+(E-A)+&quot;,0L-&quot;+(E-2*A)+&quot;,&quot;+_+A+&quot;H&quot;+(S+b.width/2)+&quot;v&quot;+_+(2*S+b.height)+&quot;H-&quot;+E+&quot;V&quot;+_+A+&quot;Z&quot;)):y&gt;i.width-E?(y=i.width-E,l.attr(&quot;d&quot;,&quot;M&quot;+(E-A)+&quot;,0L&quot;+E+&quot;,&quot;+_+A+&quot;v&quot;+_+(2*S+b.height)+&quot;H-&quot;+E+&quot;V&quot;+_+A+&quot;H&quot;+(E-2*A)+&quot;Z&quot;)):l.attr(&quot;d&quot;,&quot;M0,0L&quot;+A+&quot;,&quot;+_+A+&quot;H&quot;+(S+b.width/2)+&quot;v&quot;+_+(2*S+b.height)+&quot;H-&quot;+(S+b.width/2)+&quot;V&quot;+_+A+&quot;H-&quot;+A+&quot;Z&quot;)}else{var L,I,z;&quot;right&quot;===C.side?(L=&quot;start&quot;,I=1,z=&quot;&quot;,y=M._offset+M._length):(L=&quot;end&quot;,I=-1,z=&quot;-&quot;,y=M._offset),x=C._offset+(k.y0+k.y1)/2,c.attr(&quot;text-anchor&quot;,L),l.attr(&quot;d&quot;,&quot;M0,0L&quot;+z+A+&quot;,&quot;+A+&quot;V&quot;+(S+b.height/2)+&quot;h&quot;+z+(2*S+b.width)+&quot;V-&quot;+(S+b.height/2)+&quot;H&quot;+z+A+&quot;V-&quot;+A+&quot;Z&quot;);var O,R=b.height/2,F=D-b.top-R,B=&quot;clip&quot;+i._uid+&quot;commonlabel&quot;+C._id;if(y&lt;b.width+2*S+A){O=&quot;M-&quot;+(A+S)+&quot;-&quot;+R+&quot;h-&quot;+(b.width-S)+&quot;V&quot;+R+&quot;h&quot;+(b.width-S)+&quot;Z&quot;;var N=b.width-y+S;u.positionText(c,N,F),&quot;end&quot;===L&amp;&amp;c.selectAll(&quot;tspan&quot;).each((function(){var t=n.select(this),e=h.tester.append(&quot;text&quot;).text(t.text()).call(h.font,v),r=e.node().getBoundingClientRect();Math.round(r.width)&lt;Math.round(b.width)&amp;&amp;t.attr(&quot;x&quot;,N-r.width),e.remove()}))}else u.positionText(c,I*(S+A),F),O=null;var j=i._topclips.selectAll(&quot;#&quot;+B).data(O?[0]:[]);j.enter().append(&quot;clipPath&quot;).attr(&quot;id&quot;,B).append(&quot;path&quot;),j.exit().remove(),j.select(&quot;path&quot;).attr(&quot;d&quot;,O),h.setClipUrl(c,O?B:null,r)}e.attr(&quot;transform&quot;,s(y,x)),t=H(t)})),v.isUnifiedHover(a)){if(d.selectAll(&quot;g.hovertext&quot;).remove(),void 0!==P&amp;&amp;k.distance&lt;=e.hoverdistance&amp;&amp;(t=H(t)),0===t.length)return;var G={showlegend:!0,legend:{title:{text:P,font:i.hoverlabel.font},font:i.hoverlabel.font,bgcolor:i.hoverlabel.bgcolor,bordercolor:i.hoverlabel.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:&quot;v&quot;}},Y={};x(G,Y,r._fullData);var W=Y.legend;W.entries=[];for(var X=0;X&lt;t.length;X++){var Z=I(t[X],!0,a,i,P),J=Z[0],K=Z[1],Q=t[X];Q.name=K,Q.text=&quot;&quot;!==K?K+&quot; : &quot;+J:J;var $=Q.cd[Q.index];$&amp;&amp;($.mc&amp;&amp;(Q.mc=$.mc),$.mcc&amp;&amp;(Q.mc=$.mcc),$.mlc&amp;&amp;(Q.mlc=$.mlc),$.mlcc&amp;&amp;(Q.mlc=$.mlcc),$.mlw&amp;&amp;(Q.mlw=$.mlw),$.mrc&amp;&amp;(Q.mrc=$.mrc),$.dir&amp;&amp;(Q.dir=$.dir)),Q._distinct=!0,W.entries.push([Q])}W.entries.sort((function(t,e){return t[0].trace.index-e[0].trace.index})),W.layer=d,b(r,W);var tt=o.mean(t.map((function(t){return(t.y0+t.y1)/2}))),et=o.mean(t.map((function(t){return(t.x0+t.x1)/2}))),rt=d.select(&quot;g.legend&quot;),nt=rt.node().getBoundingClientRect();et+=M._offset,tt+=C._offset-nt.height/2;var it=nt.width+2*S;!(et+it&lt;=R)&amp;&amp;et-it&gt;=0?et-=it:et+=2*S;var at=nt.height+2*S,ot=tt+at&gt;=F;return at&lt;=F&amp;&amp;(tt&lt;=D?tt=C._offset+2*S:ot&amp;&amp;(tt=F-at)),rt.attr(&quot;transform&quot;,s(et,tt)),rt}var st=d.selectAll(&quot;g.hovertext&quot;).data(t,(function(t){return E(t)}));return st.enter().append(&quot;g&quot;).classed(&quot;hovertext&quot;,!0).each((function(){var t=n.select(this);t.append(&quot;rect&quot;).call(p.fill,p.addOpacity(f,.8)),t.append(&quot;text&quot;).classed(&quot;name&quot;,!0),t.append(&quot;path&quot;).style(&quot;stroke-width&quot;,&quot;1px&quot;),t.append(&quot;text&quot;).classed(&quot;nums&quot;,!0).call(h.font,w,T)})),st.exit().remove(),st.each((function(t){var e=n.select(this).attr(&quot;transform&quot;,&quot;&quot;),o=t.color;Array.isArray(o)&amp;&amp;(o=o[t.eventData[0].pointNumber]);var d=t.bgcolor||o,g=p.combine(p.opacity(d)?d:p.defaultLine,f),m=p.combine(p.opacity(o)?o:p.defaultLine,f),v=t.borderColor||p.contrast(g),y=I(t,B,a,i,P,e),x=y[0],b=y[1],k=e.select(&quot;text.nums&quot;).call(h.font,t.fontFamily||w,t.fontSize||T,t.fontColor||v).text(x).attr(&quot;data-notex&quot;,1).call(u.positionText,0,0).call(u.convertToTspans,r),M=e.select(&quot;text.name&quot;),E=0,C=0;if(b&amp;&amp;b!==x){M.call(h.font,t.fontFamily||w,t.fontSize||T,m).text(b).attr(&quot;data-notex&quot;,1).call(u.positionText,0,0).call(u.convertToTspans,r);var L=M.node().getBoundingClientRect();E=L.width+2*S,C=L.height+2*S}else M.remove(),e.select(&quot;rect&quot;).remove();e.select(&quot;path&quot;).style({fill:g,stroke:v});var z,O,N=k.node().getBoundingClientRect(),j=t.xa._offset+(t.x0+t.x1)/2,U=t.ya._offset+(t.y0+t.y1)/2,V=Math.abs(t.x1-t.x0),q=Math.abs(t.y1-t.y0),H=N.width+A+S+E;if(t.ty0=D-N.top,t.bx=N.width+2*S,t.by=Math.max(N.height+2*S,C),t.anchor=&quot;start&quot;,t.txwidth=N.width,t.tx2width=E,t.offset=0,c)t.pos=j,z=U+q/2+H&lt;=F,O=U-q/2-H&gt;=0,&quot;top&quot;!==t.idealAlign&amp;&amp;z||!O?z?(U+=q/2,t.anchor=&quot;start&quot;):t.anchor=&quot;middle&quot;:(U-=q/2,t.anchor=&quot;end&quot;);else if(t.pos=U,z=j+V/2+H&lt;=R,O=j-V/2-H&gt;=0,&quot;left&quot;!==t.idealAlign&amp;&amp;z||!O)if(z)j+=V/2,t.anchor=&quot;start&quot;;else{t.anchor=&quot;middle&quot;;var G=H/2,Y=j+G-R,W=j-G;Y&gt;0&amp;&amp;(j-=Y),W&lt;0&amp;&amp;(j+=-W)}else j-=V/2,t.anchor=&quot;end&quot;;k.attr(&quot;text-anchor&quot;,t.anchor),E&amp;&amp;M.attr(&quot;text-anchor&quot;,t.anchor),e.attr(&quot;transform&quot;,s(j,U)+(c?l(_):&quot;&quot;))})),st}function I(t,e,r,n,i,a){var s=&quot;&quot;,l=&quot;&quot;;void 0!==t.nameOverride&amp;&amp;(t.name=t.nameOverride),t.name&amp;&amp;(t.trace._meta&amp;&amp;(t.name=o.templateString(t.name,t.trace._meta)),s=R(t.name,t.nameLength)),void 0!==t.zLabel?(void 0!==t.xLabel&amp;&amp;(l+=&quot;x: &quot;+t.xLabel+&quot;&lt;br&gt;&quot;),void 0!==t.yLabel&amp;&amp;(l+=&quot;y: &quot;+t.yLabel+&quot;&lt;br&gt;&quot;),&quot;choropleth&quot;!==t.trace.type&amp;&amp;&quot;choroplethmapbox&quot;!==t.trace.type&amp;&amp;(l+=(l?&quot;z: &quot;:&quot;&quot;)+t.zLabel)):e&amp;&amp;t[r.charAt(0)+&quot;Label&quot;]===i?l=t[(&quot;x&quot;===r.charAt(0)?&quot;y&quot;:&quot;x&quot;)+&quot;Label&quot;]||&quot;&quot;:void 0===t.xLabel?void 0!==t.yLabel&amp;&amp;&quot;scattercarpet&quot;!==t.trace.type&amp;&amp;(l=t.yLabel):l=void 0===t.yLabel?t.xLabel:&quot;(&quot;+t.xLabel+&quot;, &quot;+t.yLabel+&quot;)&quot;,!t.text&amp;&amp;0!==t.text||Array.isArray(t.text)||(l+=(l?&quot;&lt;br&gt;&quot;:&quot;&quot;)+t.text),void 0!==t.extraText&amp;&amp;(l+=(l?&quot;&lt;br&gt;&quot;:&quot;&quot;)+t.extraText),a&amp;&amp;&quot;&quot;===l&amp;&amp;!t.hovertemplate&amp;&amp;(&quot;&quot;===s&amp;&amp;a.remove(),l=s);var c=n._d3locale,u=t.hovertemplate||!1,f=t.hovertemplateLabels||t,h=t.eventData[0]||{};return u&amp;&amp;(l=(l=o.hovertemplateString(u,f,c,h,t.trace._meta)).replace(C,(function(e,r){return s=R(r,t.nameLength),&quot;&quot;}))),[l,s]}function P(t,e,r,i){var a=function(t){return t*r},o=function(t){return t*i};t.each((function(t){var r=n.select(this);if(t.del)return r.remove();var i=r.select(&quot;text.nums&quot;),s=t.anchor,l=&quot;end&quot;===s?-1:1,c={start:1,end:-1,middle:0}[s],f=c*(A+S),p=f+c*(t.txwidth+S),d=0,g=t.offset,m=&quot;middle&quot;===s;m&amp;&amp;(f-=t.tx2width/2,p+=t.txwidth/2+S),e&amp;&amp;(g*=-M,d=t.offset*k),r.select(&quot;path&quot;).attr(&quot;d&quot;,m?&quot;M-&quot;+a(t.bx/2+t.tx2width/2)+&quot;,&quot;+o(g-t.by/2)+&quot;h&quot;+a(t.bx)+&quot;v&quot;+o(t.by)+&quot;h-&quot;+a(t.bx)+&quot;Z&quot;:&quot;M0,0L&quot;+a(l*A+d)+&quot;,&quot;+o(A+g)+&quot;v&quot;+o(t.by/2-A)+&quot;h&quot;+a(l*t.bx)+&quot;v-&quot;+o(t.by)+&quot;H&quot;+a(l*A+d)+&quot;V&quot;+o(g-A)+&quot;Z&quot;);var v=d+f,y=g+t.ty0-t.by/2+S,x=t.textAlign||&quot;auto&quot;;&quot;auto&quot;!==x&amp;&amp;(&quot;left&quot;===x&amp;&amp;&quot;start&quot;!==s?(i.attr(&quot;text-anchor&quot;,&quot;start&quot;),v=m?-t.bx/2-t.tx2width/2+S:-t.bx-S):&quot;right&quot;===x&amp;&amp;&quot;end&quot;!==s&amp;&amp;(i.attr(&quot;text-anchor&quot;,&quot;end&quot;),v=m?t.bx/2-t.tx2width/2-S:t.bx+S)),i.call(u.positionText,a(v),o(y)),t.tx2width&amp;&amp;(r.select(&quot;text.name&quot;).call(u.positionText,a(p+c*S+d),o(g+t.ty0-t.by/2+S)),r.select(&quot;rect&quot;).call(h.setRect,a(p+(c-1)*t.tx2width/2+d),o(g-t.by/2-1),a(t.tx2width),o(t.by+2)))}))}function z(t,e){var r=t.index,n=t.trace||{},a=t.cd[0],s=t.cd[r]||{};function l(t){return t||i(t)&amp;&amp;0===t}var c=Array.isArray(r)?function(t,e){var i=o.castOption(a,r,t);return l(i)?i:o.extractOption({},n,&quot;&quot;,e)}:function(t,e){return o.extractOption(s,n,t,e)};function u(e,r,n){var i=c(r,n);l(i)&amp;&amp;(t[e]=i)}if(u(&quot;hoverinfo&quot;,&quot;hi&quot;,&quot;hoverinfo&quot;),u(&quot;bgcolor&quot;,&quot;hbg&quot;,&quot;hoverlabel.bgcolor&quot;),u(&quot;borderColor&quot;,&quot;hbc&quot;,&quot;hoverlabel.bordercolor&quot;),u(&quot;fontFamily&quot;,&quot;htf&quot;,&quot;hoverlabel.font.family&quot;),u(&quot;fontSize&quot;,&quot;hts&quot;,&quot;hoverlabel.font.size&quot;),u(&quot;fontColor&quot;,&quot;htc&quot;,&quot;hoverlabel.font.color&quot;),u(&quot;nameLength&quot;,&quot;hnl&quot;,&quot;hoverlabel.namelength&quot;),u(&quot;textAlign&quot;,&quot;hta&quot;,&quot;hoverlabel.align&quot;),t.posref=&quot;y&quot;===e||&quot;closest&quot;===e&amp;&amp;&quot;h&quot;===n.orientation?t.xa._offset+(t.x0+t.x1)/2:t.ya._offset+(t.y0+t.y1)/2,t.x0=o.constrain(t.x0,0,t.xa._length),t.x1=o.constrain(t.x1,0,t.xa._length),t.y0=o.constrain(t.y0,0,t.ya._length),t.y1=o.constrain(t.y1,0,t.ya._length),void 0!==t.xLabelVal&amp;&amp;(t.xLabel=&quot;xLabel&quot;in t?t.xLabel:g.hoverLabelText(t.xa,t.xLabelVal),t.xVal=t.xa.c2d(t.xLabelVal)),void 0!==t.yLabelVal&amp;&amp;(t.yLabel=&quot;yLabel&quot;in t?t.yLabel:g.hoverLabelText(t.ya,t.yLabelVal),t.yVal=t.ya.c2d(t.yLabelVal)),void 0!==t.zLabelVal&amp;&amp;void 0===t.zLabel&amp;&amp;(t.zLabel=String(t.zLabelVal)),!(isNaN(t.xerr)||&quot;log&quot;===t.xa.type&amp;&amp;t.xerr&lt;=0)){var f=g.tickText(t.xa,t.xa.c2l(t.xerr),&quot;hover&quot;).text;void 0!==t.xerrneg?t.xLabel+=&quot; +&quot;+f+&quot; / -&quot;+g.tickText(t.xa,t.xa.c2l(t.xerrneg),&quot;hover&quot;).text:t.xLabel+=&quot; \xb1 &quot;+f,&quot;x&quot;===e&amp;&amp;(t.distance+=1)}if(!(isNaN(t.yerr)||&quot;log&quot;===t.ya.type&amp;&amp;t.yerr&lt;=0)){var h=g.tickText(t.ya,t.ya.c2l(t.yerr),&quot;hover&quot;).text;void 0!==t.yerrneg?t.yLabel+=&quot; +&quot;+h+&quot; / -&quot;+g.tickText(t.ya,t.ya.c2l(t.yerrneg),&quot;hover&quot;).text:t.yLabel+=&quot; \xb1 &quot;+h,&quot;y&quot;===e&amp;&amp;(t.distance+=1)}var p=t.hoverinfo||t.trace.hoverinfo;return p&amp;&amp;&quot;all&quot;!==p&amp;&amp;(-1===(p=Array.isArray(p)?p:p.split(&quot;+&quot;)).indexOf(&quot;x&quot;)&amp;&amp;(t.xLabel=void 0),-1===p.indexOf(&quot;y&quot;)&amp;&amp;(t.yLabel=void 0),-1===p.indexOf(&quot;z&quot;)&amp;&amp;(t.zLabel=void 0),-1===p.indexOf(&quot;text&quot;)&amp;&amp;(t.text=void 0),-1===p.indexOf(&quot;name&quot;)&amp;&amp;(t.name=void 0)),t}function O(t,e,r){var n,i,o=r.container,s=r.fullLayout,l=s._size,c=r.event,u=!!e.hLinePoint,f=!!e.vLinePoint;if(o.selectAll(&quot;.spikeline&quot;).remove(),f||u){var d=p.combine(s.plot_bgcolor,s.paper_bgcolor);if(u){var m,v,y=e.hLinePoint;n=y&amp;&amp;y.xa,&quot;cursor&quot;===(i=y&amp;&amp;y.ya).spikesnap?(m=c.pointerX,v=c.pointerY):(m=n._offset+y.x,v=i._offset+y.y);var x,b,_=a.readability(y.color,d)&lt;1.5?p.contrast(d):y.color,w=i.spikemode,T=i.spikethickness,k=i.spikecolor||_,M=g.getPxPosition(t,i);if(-1!==w.indexOf(&quot;toaxis&quot;)||-1!==w.indexOf(&quot;across&quot;)){if(-1!==w.indexOf(&quot;toaxis&quot;)&amp;&amp;(x=M,b=m),-1!==w.indexOf(&quot;across&quot;)){var A=i._counterDomainMin,S=i._counterDomainMax;&quot;free&quot;===i.anchor&amp;&amp;(A=Math.min(A,i.position),S=Math.max(S,i.position)),x=l.l+A*l.w,b=l.l+S*l.w}o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:x,x2:b,y1:v,y2:v,&quot;stroke-width&quot;:T,stroke:k,&quot;stroke-dasharray&quot;:h.dashStyle(i.spikedash,T)}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0),o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:x,x2:b,y1:v,y2:v,&quot;stroke-width&quot;:T+2,stroke:d}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0)}-1!==w.indexOf(&quot;marker&quot;)&amp;&amp;o.insert(&quot;circle&quot;,&quot;:first-child&quot;).attr({cx:M+(&quot;right&quot;!==i.side?T:-T),cy:v,r:T,fill:k}).classed(&quot;spikeline&quot;,!0)}if(f){var E,C,L=e.vLinePoint;n=L&amp;&amp;L.xa,i=L&amp;&amp;L.ya,&quot;cursor&quot;===n.spikesnap?(E=c.pointerX,C=c.pointerY):(E=n._offset+L.x,C=i._offset+L.y);var I,P,z=a.readability(L.color,d)&lt;1.5?p.contrast(d):L.color,O=n.spikemode,D=n.spikethickness,R=n.spikecolor||z,F=g.getPxPosition(t,n);if(-1!==O.indexOf(&quot;toaxis&quot;)||-1!==O.indexOf(&quot;across&quot;)){if(-1!==O.indexOf(&quot;toaxis&quot;)&amp;&amp;(I=F,P=C),-1!==O.indexOf(&quot;across&quot;)){var B=n._counterDomainMin,N=n._counterDomainMax;&quot;free&quot;===n.anchor&amp;&amp;(B=Math.min(B,n.position),N=Math.max(N,n.position)),I=l.t+(1-N)*l.h,P=l.t+(1-B)*l.h}o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:E,x2:E,y1:I,y2:P,&quot;stroke-width&quot;:D,stroke:R,&quot;stroke-dasharray&quot;:h.dashStyle(n.spikedash,D)}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0),o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:E,x2:E,y1:I,y2:P,&quot;stroke-width&quot;:D+2,stroke:d}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0)}-1!==O.indexOf(&quot;marker&quot;)&amp;&amp;o.insert(&quot;circle&quot;,&quot;:first-child&quot;).attr({cx:E,cy:F-(&quot;top&quot;!==n.side?D:-D),r:D,fill:R}).classed(&quot;spikeline&quot;,!0)}}}function D(t,e){return!e||(e.vLinePoint!==t._spikepoints.vLinePoint||e.hLinePoint!==t._spikepoints.hLinePoint)}function R(t,e){return u.plainText(t||&quot;&quot;,{len:e,allowedTags:[&quot;br&quot;,&quot;sub&quot;,&quot;sup&quot;,&quot;b&quot;,&quot;i&quot;,&quot;em&quot;]})}},{&quot;../../lib&quot;:778,&quot;../../lib/events&quot;:767,&quot;../../lib/override_cursor&quot;:789,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../legend/defaults&quot;:695,&quot;../legend/draw&quot;:696,&quot;./constants&quot;:677,&quot;./helpers&quot;:679,d3:169,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],681:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;./helpers&quot;).isUnifiedHover;e.exports=function(t,e,r,o){function s(t){o.font[t]||(o.font[t]=e.legend?e.legend.font[t]:e.font[t])}o=o||{},e&amp;&amp;a(e.hovermode)&amp;&amp;(o.font||(o.font={}),s(&quot;size&quot;),s(&quot;family&quot;),s(&quot;color&quot;),e.legend?(o.bgcolor||(o.bgcolor=i.combine(e.legend.bgcolor,e.paper_bgcolor)),o.bordercolor||(o.bordercolor=e.legend.bordercolor)):o.bgcolor||(o.bgcolor=e.paper_bgcolor)),r(&quot;hoverlabel.bgcolor&quot;,o.bgcolor),r(&quot;hoverlabel.bordercolor&quot;,o.bordercolor),r(&quot;hoverlabel.namelength&quot;,o.namelength),n.coerceFont(r,&quot;hoverlabel.font&quot;,o.font),r(&quot;hoverlabel.align&quot;,o.align)}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;./helpers&quot;:679}],682:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){function a(r,a){return void 0!==e[r]?e[r]:n.coerce(t,e,i,r,a)}var o,s=a(&quot;clickmode&quot;);return e._has(&quot;cartesian&quot;)?s.indexOf(&quot;select&quot;)&gt;-1?o=&quot;closest&quot;:(e._isHoriz=function(t,e){for(var r=e._scatterStackOpts||{},n=0;n&lt;t.length;n++){var i=t[n],a=i.xaxis+i.yaxis,o=(r[a]||{})[i.stackgroup]||{};if(&quot;h&quot;!==i.orientation&amp;&amp;&quot;h&quot;!==o.orientation)return!1}return!0}(r,e),o=e._isHoriz?&quot;y&quot;:&quot;x&quot;):o=&quot;closest&quot;,a(&quot;hovermode&quot;,o)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:684}],683:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../dragelement&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;./layout_attributes&quot;),l=t(&quot;./hover&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;fx&quot;,constants:t(&quot;./constants&quot;),schema:{layout:s},attributes:t(&quot;./attributes&quot;),layoutAttributes:s,supplyLayoutGlobalDefaults:t(&quot;./layout_global_defaults&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(t,e,r){return i.castOption(t,e,&quot;hoverlabel.&quot;+r)},castHoverinfo:function(t,e,r){return i.castOption(t,r,&quot;hoverinfo&quot;,(function(r){return i.coerceHoverinfo({hoverinfo:r},{_module:t._module},e)}))},hover:l.hover,unhover:a.unhover,loneHover:l.loneHover,loneUnhover:function(t){var e=i.isD3Selection(t)?t:n.select(t);e.selectAll(&quot;g.hovertext&quot;).remove(),e.selectAll(&quot;.spikeline&quot;).remove()},click:t(&quot;./click&quot;)}},{&quot;../../lib&quot;:778,&quot;../dragelement&quot;:662,&quot;./attributes&quot;:674,&quot;./calc&quot;:675,&quot;./click&quot;:676,&quot;./constants&quot;:677,&quot;./defaults&quot;:678,&quot;./helpers&quot;:679,&quot;./hover&quot;:680,&quot;./layout_attributes&quot;:684,&quot;./layout_defaults&quot;:685,&quot;./layout_global_defaults&quot;:686,d3:169}],684:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../plots/font_attributes&quot;)({editType:&quot;none&quot;});i.family.dflt=n.HOVERFONT,i.size.dflt=n.HOVERFONTSIZE,e.exports={clickmode:{valType:&quot;flaglist&quot;,flags:[&quot;event&quot;,&quot;select&quot;],dflt:&quot;event&quot;,editType:&quot;plot&quot;,extras:[&quot;none&quot;]},dragmode:{valType:&quot;enumerated&quot;,values:[&quot;zoom&quot;,&quot;pan&quot;,&quot;select&quot;,&quot;lasso&quot;,&quot;drawclosedpath&quot;,&quot;drawopenpath&quot;,&quot;drawline&quot;,&quot;drawrect&quot;,&quot;drawcircle&quot;,&quot;orbit&quot;,&quot;turntable&quot;,!1],dflt:&quot;zoom&quot;,editType:&quot;modebar&quot;},hovermode:{valType:&quot;enumerated&quot;,values:[&quot;x&quot;,&quot;y&quot;,&quot;closest&quot;,!1,&quot;x unified&quot;,&quot;y unified&quot;],editType:&quot;modebar&quot;},hoverdistance:{valType:&quot;integer&quot;,min:-1,dflt:20,editType:&quot;none&quot;},spikedistance:{valType:&quot;integer&quot;,min:-1,dflt:20,editType:&quot;none&quot;},hoverlabel:{bgcolor:{valType:&quot;color&quot;,editType:&quot;none&quot;},bordercolor:{valType:&quot;color&quot;,editType:&quot;none&quot;},font:i,align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;right&quot;,&quot;auto&quot;],dflt:&quot;auto&quot;,editType:&quot;none&quot;},namelength:{valType:&quot;integer&quot;,min:-1,dflt:15,editType:&quot;none&quot;},editType:&quot;none&quot;},selectdirection:{valType:&quot;enumerated&quot;,values:[&quot;h&quot;,&quot;v&quot;,&quot;d&quot;,&quot;any&quot;],dflt:&quot;any&quot;,editType:&quot;none&quot;}}},{&quot;../../plots/font_attributes&quot;:856,&quot;./constants&quot;:677}],685:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./helpers&quot;).isUnifiedHover,a=t(&quot;./layout_attributes&quot;),o=t(&quot;./hovermode_defaults&quot;),s=t(&quot;./hoverlabel_defaults&quot;);e.exports=function(t,e,r){function l(r,i){return n.coerce(t,e,a,r,i)}var c=o(t,e,r);c&amp;&amp;(l(&quot;hoverdistance&quot;),l(&quot;spikedistance&quot;,i(c)?-1:void 0)),&quot;select&quot;===l(&quot;dragmode&quot;)&amp;&amp;l(&quot;selectdirection&quot;);var u=e._has(&quot;mapbox&quot;),f=e._has(&quot;geo&quot;),h=e._basePlotModules.length;&quot;zoom&quot;===e.dragmode&amp;&amp;((u||f)&amp;&amp;1===h||u&amp;&amp;f&amp;&amp;2===h)&amp;&amp;(e.dragmode=&quot;pan&quot;),s(t,e,l)}},{&quot;../../lib&quot;:778,&quot;./helpers&quot;:679,&quot;./hoverlabel_defaults&quot;:681,&quot;./hovermode_defaults&quot;:682,&quot;./layout_attributes&quot;:684}],686:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./hoverlabel_defaults&quot;),a=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){i(t,e,(function(r,i){return n.coerce(t,e,a,r,i)}))}},{&quot;../../lib&quot;:778,&quot;./hoverlabel_defaults&quot;:681,&quot;./layout_attributes&quot;:684}],687:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/regex&quot;).counter,a=t(&quot;../../plots/domain&quot;).attributes,o=t(&quot;../../plots/cartesian/constants&quot;).idRegex,s=t(&quot;../../plot_api/plot_template&quot;),l={rows:{valType:&quot;integer&quot;,min:1,editType:&quot;plot&quot;},roworder:{valType:&quot;enumerated&quot;,values:[&quot;top to bottom&quot;,&quot;bottom to top&quot;],dflt:&quot;top to bottom&quot;,editType:&quot;plot&quot;},columns:{valType:&quot;integer&quot;,min:1,editType:&quot;plot&quot;},subplots:{valType:&quot;info_array&quot;,freeLength:!0,dimensions:2,items:{valType:&quot;enumerated&quot;,values:[i(&quot;xy&quot;).toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},xaxes:{valType:&quot;info_array&quot;,freeLength:!0,items:{valType:&quot;enumerated&quot;,values:[o.x.toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},yaxes:{valType:&quot;info_array&quot;,freeLength:!0,items:{valType:&quot;enumerated&quot;,values:[o.y.toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},pattern:{valType:&quot;enumerated&quot;,values:[&quot;independent&quot;,&quot;coupled&quot;],dflt:&quot;coupled&quot;,editType:&quot;plot&quot;},xgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},ygap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},domain:a({name:&quot;grid&quot;,editType:&quot;plot&quot;,noGridCell:!0},{}),xside:{valType:&quot;enumerated&quot;,values:[&quot;bottom&quot;,&quot;bottom plot&quot;,&quot;top plot&quot;,&quot;top&quot;],dflt:&quot;bottom plot&quot;,editType:&quot;plot&quot;},yside:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;left plot&quot;,&quot;right plot&quot;,&quot;right&quot;],dflt:&quot;left plot&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;};function c(t,e,r){var n=e[r+&quot;axes&quot;],i=Object.keys((t._splomAxes||{})[r]||{});return Array.isArray(n)?n:i.length?i:void 0}function u(t,e,r,n,i,a){var o=e(t+&quot;gap&quot;,r),s=e(&quot;domain.&quot;+t);e(t+&quot;side&quot;,n);for(var l=new Array(i),c=s[0],u=(s[1]-c)/(i-o),f=u*(1-o),h=0;h&lt;i;h++){var p=c+u*h;l[a?i-1-h:h]=[p,p+f]}return l}function f(t,e,r,n,i){var a,o=new Array(r);function s(t,r){-1!==e.indexOf(r)&amp;&amp;void 0===n[r]?(o[t]=r,n[r]=t):o[t]=&quot;&quot;}if(Array.isArray(t))for(a=0;a&lt;r;a++)s(a,t[a]);else for(s(0,i),a=1;a&lt;r;a++)s(a,i+(a+1));return o}e.exports={moduleType:&quot;component&quot;,name:&quot;grid&quot;,schema:{layout:{grid:l}},layoutAttributes:l,sizeDefaults:function(t,e){var r=t.grid||{},i=c(e,r,&quot;x&quot;),a=c(e,r,&quot;y&quot;);if(t.grid||i||a){var o,f,h=Array.isArray(r.subplots)&amp;&amp;Array.isArray(r.subplots[0]),p=Array.isArray(i),d=Array.isArray(a),g=p&amp;&amp;i!==r.xaxes&amp;&amp;d&amp;&amp;a!==r.yaxes;h?(o=r.subplots.length,f=r.subplots[0].length):(d&amp;&amp;(o=a.length),p&amp;&amp;(f=i.length));var m=s.newContainer(e,&quot;grid&quot;),v=k(&quot;rows&quot;,o),y=k(&quot;columns&quot;,f);if(v*y&gt;1){if(!h&amp;&amp;!p&amp;&amp;!d)&quot;independent&quot;===k(&quot;pattern&quot;)&amp;&amp;(h=!0);m._hasSubplotGrid=h;var x,b,_=&quot;top to bottom&quot;===k(&quot;roworder&quot;),w=h?.2:.1,T=h?.3:.1;g&amp;&amp;e._splomGridDflt&amp;&amp;(x=e._splomGridDflt.xside,b=e._splomGridDflt.yside),m._domains={x:u(&quot;x&quot;,k,w,x,y),y:u(&quot;y&quot;,k,T,b,v,_)}}else delete e.grid}function k(t,e){return n.coerce(r,m,l,t,e)}},contentDefaults:function(t,e){var r=e.grid;if(r&amp;&amp;r._domains){var n,i,a,o,s,l,u,h=t.grid||{},p=e._subplots,d=r._hasSubplotGrid,g=r.rows,m=r.columns,v=&quot;independent&quot;===r.pattern,y=r._axisMap={};if(d){var x=h.subplots||[];l=r.subplots=new Array(g);var b=1;for(n=0;n&lt;g;n++){var _=l[n]=new Array(m),w=x[n]||[];for(i=0;i&lt;m;i++)if(v?(s=1===b?&quot;xy&quot;:&quot;x&quot;+b+&quot;y&quot;+b,b++):s=w[i],_[i]=&quot;&quot;,-1!==p.cartesian.indexOf(s)){if(u=s.indexOf(&quot;y&quot;),a=s.slice(0,u),o=s.slice(u),void 0!==y[a]&amp;&amp;y[a]!==i||void 0!==y[o]&amp;&amp;y[o]!==n)continue;_[i]=s,y[a]=i,y[o]=n}}}else{var T=c(e,h,&quot;x&quot;),k=c(e,h,&quot;y&quot;);r.xaxes=f(T,p.xaxis,m,y,&quot;x&quot;),r.yaxes=f(k,p.yaxis,g,y,&quot;y&quot;)}var M=r._anchors={},A=&quot;top to bottom&quot;===r.roworder;for(var S in y){var E,C,L,I=S.charAt(0),P=r[I+&quot;side&quot;];if(P.length&lt;8)M[S]=&quot;free&quot;;else if(&quot;x&quot;===I){if(&quot;t&quot;===P.charAt(0)===A?(E=0,C=1,L=g):(E=g-1,C=-1,L=-1),d){var z=y[S];for(n=E;n!==L;n+=C)if((s=l[n][z])&amp;&amp;(u=s.indexOf(&quot;y&quot;),s.slice(0,u)===S)){M[S]=s.slice(u);break}}else for(n=E;n!==L;n+=C)if(o=r.yaxes[n],-1!==p.cartesian.indexOf(S+o)){M[S]=o;break}}else if(&quot;l&quot;===P.charAt(0)?(E=0,C=1,L=m):(E=m-1,C=-1,L=-1),d){var O=y[S];for(n=E;n!==L;n+=C)if((s=l[O][n])&amp;&amp;(u=s.indexOf(&quot;y&quot;),s.slice(u)===S)){M[S]=s.slice(0,u);break}}else for(n=E;n!==L;n+=C)if(a=r.xaxes[n],-1!==p.cartesian.indexOf(a+S)){M[S]=a;break}}}}}},{&quot;../../lib&quot;:778,&quot;../../lib/regex&quot;:795,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834,&quot;../../plots/domain&quot;:855}],688:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/constants&quot;),i=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=i(&quot;image&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;arraydraw&quot;},source:{valType:&quot;string&quot;,editType:&quot;arraydraw&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;arraydraw&quot;},sizex:{valType:&quot;number&quot;,dflt:0,editType:&quot;arraydraw&quot;},sizey:{valType:&quot;number&quot;,dflt:0,editType:&quot;arraydraw&quot;},sizing:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;contain&quot;,&quot;stretch&quot;],dflt:&quot;contain&quot;,editType:&quot;arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},x:{valType:&quot;any&quot;,dflt:0,editType:&quot;arraydraw&quot;},y:{valType:&quot;any&quot;,dflt:0,editType:&quot;arraydraw&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;arraydraw&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;arraydraw&quot;},xref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,n.idRegex.x.toString()],dflt:&quot;paper&quot;,editType:&quot;arraydraw&quot;},yref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,n.idRegex.y.toString()],dflt:&quot;paper&quot;,editType:&quot;arraydraw&quot;},editType:&quot;arraydraw&quot;})},{&quot;../../constants/axis_placeable_objects&quot;:746,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834}],689:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib/to_log_range&quot;);e.exports=function(t,e,r,a){e=e||{};var o=&quot;log&quot;===r&amp;&amp;&quot;linear&quot;===e.type,s=&quot;linear&quot;===r&amp;&amp;&quot;log&quot;===e.type;if(o||s)for(var l,c,u=t._fullLayout.images,f=e._id.charAt(0),h=0;h&lt;u.length;h++)if(c=&quot;images[&quot;+h+&quot;].&quot;,(l=u[h])[f+&quot;ref&quot;]===e._id){var p=l[f],d=l[&quot;size&quot;+f],g=null,m=null;if(o){g=i(p,e.range);var v=d/Math.pow(10,g)/2;m=2*Math.log(v+Math.sqrt(1+v*v))/Math.LN10}else m=(g=Math.pow(10,p))*(Math.pow(10,d/2)-Math.pow(10,-d/2));n(g)?n(m)||(m=null):(g=null,m=null),a(c+f,g),a(c+&quot;size&quot;+f,m)}}},{&quot;../../lib/to_log_range&quot;:805,&quot;fast-isnumeric&quot;:241}],690:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}var s=a(&quot;source&quot;);if(!a(&quot;visible&quot;,!!s))return e;a(&quot;layer&quot;),a(&quot;xanchor&quot;),a(&quot;yanchor&quot;),a(&quot;sizex&quot;),a(&quot;sizey&quot;),a(&quot;sizing&quot;),a(&quot;opacity&quot;);for(var l={_fullLayout:r},c=[&quot;x&quot;,&quot;y&quot;],u=0;u&lt;2;u++){var f=c[u],h=i.coerceRef(t,e,l,f,&quot;paper&quot;,void 0);if(&quot;paper&quot;!==h)i.getFromId(l,h)._imgIndices.push(e._index);i.coercePosition(e,l,a,h,f,0)}return e}e.exports=function(t,e){a(t,e,{name:&quot;images&quot;,handleItemDefaults:s})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:688}],691:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../drawing&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/axis_ids&quot;),s=t(&quot;../../constants/xmlns_namespaces&quot;);e.exports=function(t){var e,r,l=t._fullLayout,c=[],u={},f=[];for(r=0;r&lt;l.images.length;r++){var h=l.images[r];if(h.visible)if(&quot;below&quot;===h.layer&amp;&amp;&quot;paper&quot;!==h.xref&amp;&amp;&quot;paper&quot;!==h.yref){e=o.ref2id(h.xref)+o.ref2id(h.yref);var p=l._plots[e];if(!p){f.push(h);continue}p.mainplot&amp;&amp;(e=p.mainplot.id),u[e]||(u[e]=[]),u[e].push(h)}else&quot;above&quot;===h.layer?c.push(h):f.push(h)}var d={left:{sizing:&quot;xMin&quot;,offset:0},center:{sizing:&quot;xMid&quot;,offset:-.5},right:{sizing:&quot;xMax&quot;,offset:-1}},g={top:{sizing:&quot;YMin&quot;,offset:0},middle:{sizing:&quot;YMid&quot;,offset:-.5},bottom:{sizing:&quot;YMax&quot;,offset:-1}};function m(e){var r=n.select(this);if(this._imgSrc!==e.source)if(r.attr(&quot;xmlns&quot;,s.svg),e.source&amp;&amp;&quot;data:&quot;===e.source.slice(0,5))r.attr(&quot;xlink:href&quot;,e.source),this._imgSrc=e.source;else{var i=new Promise(function(t){var n=new Image;function i(){r.remove(),t()}this.img=n,n.setAttribute(&quot;crossOrigin&quot;,&quot;anonymous&quot;),n.onerror=i,n.onload=function(){var e=document.createElement(&quot;canvas&quot;);e.width=this.width,e.height=this.height,e.getContext(&quot;2d&quot;).drawImage(this,0,0);var n=e.toDataURL(&quot;image/png&quot;);r.attr(&quot;xlink:href&quot;,n),t()},r.on(&quot;error&quot;,i),n.src=e.source,this._imgSrc=e.source}.bind(this));t._promises.push(i)}}function v(e){var r,o,s=n.select(this),c=a.getFromId(t,e.xref),u=a.getFromId(t,e.yref),f=&quot;domain&quot;===a.getRefType(e.xref),h=&quot;domain&quot;===a.getRefType(e.yref),p=l._size;r=void 0!==c?&quot;string&quot;==typeof e.xref&amp;&amp;f?c._length*e.sizex:Math.abs(c.l2p(e.sizex)-c.l2p(0)):e.sizex*p.w,o=void 0!==u?&quot;string&quot;==typeof e.yref&amp;&amp;h?u._length*e.sizey:Math.abs(u.l2p(e.sizey)-u.l2p(0)):e.sizey*p.h;var m,v,y=r*d[e.xanchor].offset,x=o*g[e.yanchor].offset,b=d[e.xanchor].sizing+g[e.yanchor].sizing;switch(m=void 0!==c?&quot;string&quot;==typeof e.xref&amp;&amp;f?c._length*e.x+c._offset:c.r2p(e.x)+c._offset:e.x*p.w+p.l,m+=y,v=void 0!==u?&quot;string&quot;==typeof e.yref&amp;&amp;h?u._length*(1-e.y)+u._offset:u.r2p(e.y)+u._offset:p.h-e.y*p.h+p.t,v+=x,e.sizing){case&quot;fill&quot;:b+=&quot; slice&quot;;break;case&quot;stretch&quot;:b=&quot;none&quot;}s.attr({x:m,y:v,width:r,height:o,preserveAspectRatio:b,opacity:e.opacity});var _=(c&amp;&amp;&quot;domain&quot;!==a.getRefType(e.xref)?c._id:&quot;&quot;)+(u&amp;&amp;&quot;domain&quot;!==a.getRefType(e.yref)?u._id:&quot;&quot;);i.setClipUrl(s,_?&quot;clip&quot;+l._uid+_:null,t)}var y=l._imageLowerLayer.selectAll(&quot;image&quot;).data(f),x=l._imageUpperLayer.selectAll(&quot;image&quot;).data(c);y.enter().append(&quot;image&quot;),x.enter().append(&quot;image&quot;),y.exit().remove(),x.exit().remove(),y.each((function(t){m.bind(this)(t),v.bind(this)(t)})),x.each((function(t){m.bind(this)(t),v.bind(this)(t)}));var b=Object.keys(l._plots);for(r=0;r&lt;b.length;r++){e=b[r];var _=l._plots[e];if(_.imagelayer){var w=_.imagelayer.selectAll(&quot;image&quot;).data(u[e]||[]);w.enter().append(&quot;image&quot;),w.exit().remove(),w.each((function(t){m.bind(this)(t),v.bind(this)(t)}))}}}},{&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../drawing&quot;:665,d3:169}],692:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;images&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;images&quot;),draw:t(&quot;./draw&quot;),convertCoords:t(&quot;./convert_coords&quot;)}},{&quot;../../plots/cartesian/include_components&quot;:840,&quot;./attributes&quot;:688,&quot;./convert_coords&quot;:689,&quot;./defaults&quot;:690,&quot;./draw&quot;:691}],693:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;);e.exports={bgcolor:{valType:&quot;color&quot;,editType:&quot;legend&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;legend&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;legend&quot;},font:n({editType:&quot;legend&quot;}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;v&quot;,editType:&quot;legend&quot;},traceorder:{valType:&quot;flaglist&quot;,flags:[&quot;reversed&quot;,&quot;grouped&quot;],extras:[&quot;normal&quot;],editType:&quot;legend&quot;},tracegroupgap:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;legend&quot;},itemsizing:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;constant&quot;],dflt:&quot;trace&quot;,editType:&quot;legend&quot;},itemwidth:{valType:&quot;number&quot;,min:30,dflt:30,editType:&quot;legend&quot;},itemclick:{valType:&quot;enumerated&quot;,values:[&quot;toggle&quot;,&quot;toggleothers&quot;,!1],dflt:&quot;toggle&quot;,editType:&quot;legend&quot;},itemdoubleclick:{valType:&quot;enumerated&quot;,values:[&quot;toggle&quot;,&quot;toggleothers&quot;,!1],dflt:&quot;toggleothers&quot;,editType:&quot;legend&quot;},x:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;legend&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;legend&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;legend&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;legend&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},valign:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;,editType:&quot;legend&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;legend&quot;},font:n({editType:&quot;legend&quot;}),side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;left&quot;,&quot;top left&quot;],editType:&quot;legend&quot;},editType:&quot;legend&quot;},editType:&quot;legend&quot;}},{&quot;../../plots/font_attributes&quot;:856,&quot;../color/attributes&quot;:642}],694:[function(t,e,r){&quot;use strict&quot;;e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:&quot;#808BA4&quot;,scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},{}],695:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../../plots/layout_attributes&quot;),l=t(&quot;./helpers&quot;);e.exports=function(t,e,r){for(var c=t.legend||{},u=0,f=!1,h=&quot;normal&quot;,p=0;p&lt;r.length;p++){var d=r[p];d.visible&amp;&amp;((d.showlegend||d._dfltShowLegend&amp;&amp;!(d._module&amp;&amp;d._module.attributes&amp;&amp;d._module.attributes.showlegend&amp;&amp;!1===d._module.attributes.showlegend.dflt))&amp;&amp;(u++,d.showlegend&amp;&amp;(f=!0,(n.traceIs(d,&quot;pie-like&quot;)||!0===d._input.showlegend)&amp;&amp;u++)),(n.traceIs(d,&quot;bar&quot;)&amp;&amp;&quot;stack&quot;===e.barmode||-1!==[&quot;tonextx&quot;,&quot;tonexty&quot;].indexOf(d.fill))&amp;&amp;(h=l.isGrouped({traceorder:h})?&quot;grouped+reversed&quot;:&quot;reversed&quot;),void 0!==d.legendgroup&amp;&amp;&quot;&quot;!==d.legendgroup&amp;&amp;(h=l.isReversed({traceorder:h})?&quot;reversed+grouped&quot;:&quot;grouped&quot;))}var g=i.coerce(t,e,s,&quot;showlegend&quot;,f&amp;&amp;u&gt;1);if(!1!==g||c.uirevision){var m=a.newContainer(e,&quot;legend&quot;);if(_(&quot;uirevision&quot;,e.uirevision),!1!==g){_(&quot;bgcolor&quot;,e.paper_bgcolor),_(&quot;bordercolor&quot;),_(&quot;borderwidth&quot;),i.coerceFont(_,&quot;font&quot;,e.font);var v,y,x,b=_(&quot;orientation&quot;);&quot;h&quot;===b?(v=0,n.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(t.xaxis)?(y=1.1,x=&quot;bottom&quot;):(y=-.1,x=&quot;top&quot;)):(v=1.02,y=1,x=&quot;auto&quot;),_(&quot;traceorder&quot;,h),l.isGrouped(e.legend)&amp;&amp;_(&quot;tracegroupgap&quot;),_(&quot;itemsizing&quot;),_(&quot;itemwidth&quot;),_(&quot;itemclick&quot;),_(&quot;itemdoubleclick&quot;),_(&quot;x&quot;,v),_(&quot;xanchor&quot;),_(&quot;y&quot;,y),_(&quot;yanchor&quot;,x),_(&quot;valign&quot;),i.noneOrAll(c,m,[&quot;x&quot;,&quot;y&quot;]),_(&quot;title.text&quot;)&amp;&amp;(_(&quot;title.side&quot;,&quot;h&quot;===b?&quot;left&quot;:&quot;top&quot;),i.coerceFont(_,&quot;title.font&quot;,e.font))}}function _(t,e){return i.coerce(c,m,o,t,e)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/layout_attributes&quot;:882,&quot;../../registry&quot;:911,&quot;./attributes&quot;:693,&quot;./helpers&quot;:699}],696:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib/events&quot;),l=t(&quot;../dragelement&quot;),c=t(&quot;../drawing&quot;),u=t(&quot;../color&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;./handle_click&quot;),p=t(&quot;./constants&quot;),d=t(&quot;../../constants/alignment&quot;),g=d.LINE_SPACING,m=d.FROM_TL,v=d.FROM_BR,y=t(&quot;./get_legend_data&quot;),x=t(&quot;./style&quot;),b=t(&quot;./helpers&quot;);function _(t,e,r,n,i){var a=r.data()[0][0].trace,l={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a._expandedIndex,data:t.data,layout:t.layout,frames:t._transitionData._frames,config:t._context,fullData:t._fullData,fullLayout:t._fullLayout};if(a._group&amp;&amp;(l.group=a._group),o.traceIs(a,&quot;pie-like&quot;)&amp;&amp;(l.label=r.datum()[0].label),!1!==s.triggerHandler(t,&quot;plotly_legendclick&quot;,l))if(1===n)e._clickTimeout=setTimeout((function(){h(r,t,n)}),t._context.doubleClickDelay);else if(2===n){e._clickTimeout&amp;&amp;clearTimeout(e._clickTimeout),t._legendMouseDownTime=0,!1!==s.triggerHandler(t,&quot;plotly_legenddoubleclick&quot;,l)&amp;&amp;h(r,t,n)}}function w(t,e,r){var n,a=t.data()[0][0],s=a.trace,l=o.traceIs(s,&quot;pie-like&quot;),u=s.index,h=r._main&amp;&amp;e._context.edits.legendText&amp;&amp;!l,d=r._maxNameLength;r.entries?n=a.text:(n=l?a.label:s.name,s._meta&amp;&amp;(n=i.templateString(n,s._meta)));var g=i.ensureSingle(t,&quot;text&quot;,&quot;legendtext&quot;);g.attr(&quot;text-anchor&quot;,&quot;start&quot;).call(c.font,r.font).text(h?T(n,d):n);var m=r.itemwidth+2*p.itemGap;f.positionText(g,m,0),h?g.call(f.makeEditable,{gd:e,text:n}).call(M,t,e,r).on(&quot;edit&quot;,(function(n){this.text(T(n,d)).call(M,t,e,r);var s=a.trace._fullInput||{},l={};if(o.hasTransform(s,&quot;groupby&quot;)){var c=o.getTransformIndices(s,&quot;groupby&quot;),f=c[c.length-1],h=i.keyedContainer(s,&quot;transforms[&quot;+f+&quot;].styles&quot;,&quot;target&quot;,&quot;value.name&quot;);h.set(a.trace._group,n),l=h.constructUpdate()}else l.name=n;return o.call(&quot;_guiRestyle&quot;,e,l,u)})):M(g,t,e,r)}function T(t,e){var r=Math.max(4,e);if(t&amp;&amp;t.trim().length&gt;=r/2)return t;for(var n=r-(t=t||&quot;&quot;).length;n&gt;0;n--)t+=&quot; &quot;;return t}function k(t,e){var r,a=e._context.doubleClickDelay,o=1,s=i.ensureSingle(t,&quot;rect&quot;,&quot;legendtoggle&quot;,(function(t){e._context.staticPlot||t.style(&quot;cursor&quot;,&quot;pointer&quot;).attr(&quot;pointer-events&quot;,&quot;all&quot;),t.call(u.fill,&quot;rgba(0,0,0,0)&quot;)}));e._context.staticPlot||(s.on(&quot;mousedown&quot;,(function(){(r=(new Date).getTime())-e._legendMouseDownTime&lt;a?o+=1:(o=1,e._legendMouseDownTime=r)})),s.on(&quot;mouseup&quot;,(function(){if(!e._dragged&amp;&amp;!e._editing){var r=e._fullLayout.legend;(new Date).getTime()-e._legendMouseDownTime&gt;a&amp;&amp;(o=Math.max(o-1,1)),_(e,r,t,o,n.event)}})))}function M(t,e,r,n){n._main||t.attr(&quot;data-notex&quot;,!0),f.convertToTspans(t,r,(function(){!function(t,e,r){var n=t.data()[0][0];if(r._main&amp;&amp;n&amp;&amp;!n.trace.showlegend)return void t.remove();var i=t.select(&quot;g[class*=math-group]&quot;),a=i.node();r||(r=e._fullLayout.legend);var o,s,l=r.borderwidth,u=(n?r:r.title).font.size*g;if(a){var h=c.bBox(a);o=h.height,s=h.width,n?c.setTranslate(i,0,.25*o):c.setTranslate(i,l,.75*o+l)}else{var d=t.select(n?&quot;.legendtext&quot;:&quot;.legendtitletext&quot;),m=f.lineCount(d),v=d.node();o=u*m,s=v?c.bBox(v).width:0;var y=u*((m-1)/2-.3);if(n){var x=r.itemwidth+2*p.itemGap;f.positionText(d,x,-y)}else f.positionText(d,p.titlePad+l,u+l)}n?(n.lineHeight=u,n.height=Math.max(o,16)+3,n.width=s):(r._titleWidth=s,r._titleHeight=o)}(e,r,n)}))}function A(t){return i.isRightAnchor(t)?&quot;right&quot;:i.isCenterAnchor(t)?&quot;center&quot;:&quot;left&quot;}function S(t){return i.isBottomAnchor(t)?&quot;bottom&quot;:i.isMiddleAnchor(t)?&quot;middle&quot;:&quot;top&quot;}e.exports=function(t,e){var r,s=t._fullLayout,f=&quot;legend&quot;+s._uid;if(e?(r=e.layer,f+=&quot;-hover&quot;):((e=s.legend||{})._main=!0,r=s._infolayer),r){var h;if(t._legendMouseDownTime||(t._legendMouseDownTime=0),e._main){if(!t.calcdata)return;h=s.showlegend&amp;&amp;y(t.calcdata,e)}else{if(!e.entries)return;h=y(e.entries,e)}var d=s.hiddenlabels||[];if(e._main&amp;&amp;(!s.showlegend||!h.length))return r.selectAll(&quot;.legend&quot;).remove(),s._topdefs.select(&quot;#&quot;+f).remove(),a.autoMargin(t,&quot;legend&quot;);var g=i.ensureSingle(r,&quot;g&quot;,&quot;legend&quot;,(function(t){e._main&amp;&amp;t.attr(&quot;pointer-events&quot;,&quot;all&quot;)})),T=i.ensureSingleById(s._topdefs,&quot;clipPath&quot;,f,(function(t){t.append(&quot;rect&quot;)})),E=i.ensureSingle(g,&quot;rect&quot;,&quot;bg&quot;,(function(t){t.attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)}));E.call(u.stroke,e.bordercolor).call(u.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;);var C=i.ensureSingle(g,&quot;g&quot;,&quot;scrollbox&quot;),L=e.title;if(e._titleWidth=0,e._titleHeight=0,L.text){var I=i.ensureSingle(C,&quot;text&quot;,&quot;legendtitletext&quot;);I.attr(&quot;text-anchor&quot;,&quot;start&quot;).call(c.font,L.font).text(L.text),M(I,C,t,e)}else C.selectAll(&quot;.legendtitletext&quot;).remove();var P=i.ensureSingle(g,&quot;rect&quot;,&quot;scrollbar&quot;,(function(t){t.attr(p.scrollBarEnterAttrs).call(u.fill,p.scrollBarColor)})),z=C.selectAll(&quot;g.groups&quot;).data(h);z.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;groups&quot;),z.exit().remove();var O=z.selectAll(&quot;g.traces&quot;).data(i.identity);O.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;traces&quot;),O.exit().remove(),O.style(&quot;opacity&quot;,(function(t){var e=t[0].trace;return o.traceIs(e,&quot;pie-like&quot;)?-1!==d.indexOf(t[0].label)?.5:1:&quot;legendonly&quot;===e.visible?.5:1})).each((function(){n.select(this).call(w,t,e)})).call(x,t,e).each((function(){e._main&amp;&amp;n.select(this).call(k,t)})),i.syncOrAsync([a.previousPromises,function(){return function(t,e,r,i){var a=t._fullLayout;i||(i=a.legend);var o=a._size,s=b.isVertical(i),l=b.isGrouped(i),u=i.borderwidth,f=2*u,h=p.itemGap,d=i.itemwidth+2*h,g=2*(u+h),m=S(i),v=i.y&lt;0||0===i.y&amp;&amp;&quot;top&quot;===m,y=i.y&gt;1||1===i.y&amp;&amp;&quot;bottom&quot;===m;i._maxHeight=Math.max(v||y?a.height/2:o.h,30);var x=0;i._width=0,i._height=0;var _=function(t){var e=0,r=0,n=t.title.side;n&amp;&amp;(-1!==n.indexOf(&quot;left&quot;)&amp;&amp;(e=t._titleWidth),-1!==n.indexOf(&quot;top&quot;)&amp;&amp;(r=t._titleHeight));return[e,r]}(i);if(s)r.each((function(t){var e=t[0].height;c.setTranslate(this,u+_[0],u+_[1]+i._height+e/2+h),i._height+=e,i._width=Math.max(i._width,t[0].width)})),x=d+i._width,i._width+=h+d+f,i._height+=g,l&amp;&amp;(e.each((function(t,e){c.setTranslate(this,0,e*i.tracegroupgap)})),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var w=A(i),T=i.x&lt;0||0===i.x&amp;&amp;&quot;right&quot;===w,k=i.x&gt;1||1===i.x&amp;&amp;&quot;left&quot;===w,M=y||v,E=a.width/2;i._maxWidth=Math.max(T?M&amp;&amp;&quot;left&quot;===w?o.l+o.w:E:k?M&amp;&amp;&quot;right&quot;===w?o.r+o.w:E:o.w,2*d);var C=0,L=0;r.each((function(t){var e=t[0].width+d;C=Math.max(C,e),L+=e})),x=null;var I=0;if(l){var P=0,z=0,O=0;e.each((function(){var t=0,e=0;n.select(this).selectAll(&quot;g.traces&quot;).each((function(r){var n=r[0].height;c.setTranslate(this,_[0],_[1]+u+h+n/2+e),e+=n,t=Math.max(t,d+r[0].width)})),P=Math.max(P,e);var r=t+h;r+u+z&gt;i._maxWidth&amp;&amp;(I=Math.max(I,z),z=0,O+=P+i.tracegroupgap,P=e),c.setTranslate(this,z,O),z+=r})),i._width=Math.max(I,z)+u,i._height=O+P+g}else{var D=r.size(),R=L+f+(D-1)*h&lt;i._maxWidth,F=0,B=0,N=0,j=0;r.each((function(t){var e=t[0].height,r=d+t[0].width,n=(R?r:C)+h;n+u+B-h&gt;=i._maxWidth&amp;&amp;(I=Math.max(I,j),B=0,N+=F,i._height+=F,F=0),c.setTranslate(this,_[0]+u+B,_[1]+u+N+e/2+h),j=B+r+h,B+=n,F=Math.max(F,e)})),R?(i._width=B+f,i._height=F+g):(i._width=Math.max(I,j)+f,i._height+=F+g)}}i._width=Math.ceil(Math.max(i._width+_[0],i._titleWidth+2*(u+p.titlePad))),i._height=Math.ceil(Math.max(i._height+_[1],i._titleHeight+2*(u+p.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var U=t._context.edits,V=U.legendText||U.legendPosition;r.each((function(t){var e=n.select(this).select(&quot;.legendtoggle&quot;),r=t[0].height,i=V?d:x||d+t[0].width;s||(i+=h/2),c.setRect(e,0,-r/2,i,r)}))}(t,z,O,e)},function(){if(!e._main||!function(t){var e=t._fullLayout.legend,r=A(e),n=S(e);return a.autoMargin(t,&quot;legend&quot;,{x:e.x,y:e.y,l:e._width*m[r],r:e._width*v[r],b:e._effHeight*v[n],t:e._effHeight*m[n]})}(t)){var u,h,d,y,x=s._size,b=e.borderwidth,w=x.l+x.w*e.x-m[A(e)]*e._width,k=x.t+x.h*(1-e.y)-m[S(e)]*e._effHeight;if(e._main&amp;&amp;s.margin.autoexpand){var M=w,L=k;w=i.constrain(w,0,s.width-e._width),k=i.constrain(k,0,s.height-e._effHeight),w!==M&amp;&amp;i.log(&quot;Constrain legend.x to make legend fit inside graph&quot;),k!==L&amp;&amp;i.log(&quot;Constrain legend.y to make legend fit inside graph&quot;)}if(e._main&amp;&amp;c.setTranslate(g,w,k),P.on(&quot;.drag&quot;,null),g.on(&quot;wheel&quot;,null),!e._main||e._height&lt;=e._maxHeight||t._context.staticPlot){var I=e._effHeight;e._main||(I=e._height),E.attr({width:e._width-b,height:I-b,x:b/2,y:b/2}),c.setTranslate(C,0,0),T.select(&quot;rect&quot;).attr({width:e._width-2*b,height:I-2*b,x:b,y:b}),c.setClipUrl(C,f,t),c.setRect(P,0,0,0,0),delete e._scrollY}else{var z,O,D,R=Math.max(p.scrollBarMinHeight,e._effHeight*e._effHeight/e._height),F=e._effHeight-R-2*p.scrollBarMargin,B=e._height-e._effHeight,N=F/B,j=Math.min(e._scrollY||0,B);E.attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-b,x:b/2,y:b/2}),T.select(&quot;rect&quot;).attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-2*b,x:b,y:b+j}),c.setClipUrl(C,f,t),q(j,R,N),g.on(&quot;wheel&quot;,(function(){q(j=i.constrain(e._scrollY+n.event.deltaY/F*B,0,B),R,N),0!==j&amp;&amp;j!==B&amp;&amp;n.event.preventDefault()}));var U=n.behavior.drag().on(&quot;dragstart&quot;,(function(){var t=n.event.sourceEvent;z=&quot;touchstart&quot;===t.type?t.changedTouches[0].clientY:t.clientY,D=j})).on(&quot;drag&quot;,(function(){var t=n.event.sourceEvent;2===t.buttons||t.ctrlKey||(O=&quot;touchmove&quot;===t.type?t.changedTouches[0].clientY:t.clientY,q(j=function(t,e,r){var n=(r-e)/N+t;return i.constrain(n,0,B)}(D,z,O),R,N))}));P.call(U);var V=n.behavior.drag().on(&quot;dragstart&quot;,(function(){var t=n.event.sourceEvent;&quot;touchstart&quot;===t.type&amp;&amp;(z=t.changedTouches[0].clientY,D=j)})).on(&quot;drag&quot;,(function(){var t=n.event.sourceEvent;&quot;touchmove&quot;===t.type&amp;&amp;(O=t.changedTouches[0].clientY,q(j=function(t,e,r){var n=(e-r)/N+t;return i.constrain(n,0,B)}(D,z,O),R,N))}));C.call(V)}if(t._context.edits.legendPosition)g.classed(&quot;cursor-move&quot;,!0),l.init({element:g.node(),gd:t,prepFn:function(){var t=c.getTranslate(g);d=t.x,y=t.y},moveFn:function(t,r){var n=d+t,i=y+r;c.setTranslate(g,n,i),u=l.align(n,0,x.l,x.l+x.w,e.xanchor),h=l.align(i,0,x.t+x.h,x.t,e.yanchor)},doneFn:function(){void 0!==u&amp;&amp;void 0!==h&amp;&amp;o.call(&quot;_guiRelayout&quot;,t,{&quot;legend.x&quot;:u,&quot;legend.y&quot;:h})},clickFn:function(e,n){var i=r.selectAll(&quot;g.traces&quot;).filter((function(){var t=this.getBoundingClientRect();return n.clientX&gt;=t.left&amp;&amp;n.clientX&lt;=t.right&amp;&amp;n.clientY&gt;=t.top&amp;&amp;n.clientY&lt;=t.bottom}));i.size()&gt;0&amp;&amp;_(t,g,i,e,n)}})}function q(r,n,i){e._scrollY=t._fullLayout.legend._scrollY=r,c.setTranslate(C,0,-r),c.setRect(P,e._width,p.scrollBarMargin+r*i,p.scrollBarWidth,n),T.select(&quot;rect&quot;).attr(&quot;y&quot;,b+r)}}],t)}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/events&quot;:767,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;./constants&quot;:694,&quot;./get_legend_data&quot;:697,&quot;./handle_click&quot;:698,&quot;./helpers&quot;:699,&quot;./style&quot;:701,d3:169}],697:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./helpers&quot;);e.exports=function(t,e){var r,a,o={},s=[],l=!1,c={},u=0,f=0,h=e._main;function p(t,r){if(&quot;&quot;!==t&amp;&amp;i.isGrouped(e))-1===s.indexOf(t)?(s.push(t),l=!0,o[t]=[[r]]):o[t].push([r]);else{var n=&quot;~~i&quot;+u;s.push(n),o[n]=[[r]],u++}}for(r=0;r&lt;t.length;r++){var d=t[r],g=d[0],m=g.trace,v=m.legendgroup;if(!h||m.visible&amp;&amp;m.showlegend)if(n.traceIs(m,&quot;pie-like&quot;))for(c[v]||(c[v]={}),a=0;a&lt;d.length;a++){var y=d[a].label;c[v][y]||(p(v,{label:y,color:d[a].color,i:d[a].i,trace:m,pts:d[a].pts}),c[v][y]=!0,f=Math.max(f,(y||&quot;&quot;).length))}else p(v,g),f=Math.max(f,(m.name||&quot;&quot;).length)}if(!s.length)return[];var x,b,_=s.length;if(l&amp;&amp;i.isGrouped(e))for(b=new Array(_),r=0;r&lt;_;r++)x=o[s[r]],b[r]=i.isReversed(e)?x.reverse():x;else{for(b=[new Array(_)],r=0;r&lt;_;r++)x=o[s[r]][0],b[0][i.isReversed(e)?_-r-1:r]=x;_=1}return e._lgroupsLength=_,e._maxNameLength=f,b}},{&quot;../../registry&quot;:911,&quot;./helpers&quot;:699}],698:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=!0;e.exports=function(t,e,r){var o=e._fullLayout;if(!e._dragged&amp;&amp;!e._editing){var s,l=o.legend.itemclick,c=o.legend.itemdoubleclick;if(1===r&amp;&amp;&quot;toggle&quot;===l&amp;&amp;&quot;toggleothers&quot;===c&amp;&amp;a&amp;&amp;e.data&amp;&amp;e._context.showTips?(n.notifier(n._(e,&quot;Double-click on legend to isolate one trace&quot;),&quot;long&quot;),a=!1):a=!1,1===r?s=l:2===r&amp;&amp;(s=c),s){var u,f,h,p,d,g=o.hiddenlabels?o.hiddenlabels.slice():[],m=t.data()[0][0],v=e._fullData,y=m.trace,x=y.legendgroup,b={},_=[],w=[],T=[];if(i.traceIs(y,&quot;pie-like&quot;)){var k=m.label,M=g.indexOf(k);&quot;toggle&quot;===s?-1===M?g.push(k):g.splice(M,1):&quot;toggleothers&quot;===s&amp;&amp;(g=[],e.calcdata[0].forEach((function(t){k!==t.label&amp;&amp;g.push(t.label)})),e._fullLayout.hiddenlabels&amp;&amp;e._fullLayout.hiddenlabels.length===g.length&amp;&amp;-1===M&amp;&amp;(g=[])),i.call(&quot;_guiRelayout&quot;,e,&quot;hiddenlabels&quot;,g)}else{var A,S=x&amp;&amp;x.length,E=[];if(S)for(u=0;u&lt;v.length;u++)(A=v[u]).visible&amp;&amp;A.legendgroup===x&amp;&amp;E.push(u);if(&quot;toggle&quot;===s){var C;switch(y.visible){case!0:C=&quot;legendonly&quot;;break;case!1:C=!1;break;case&quot;legendonly&quot;:C=!0}if(S)for(u=0;u&lt;v.length;u++)!1!==v[u].visible&amp;&amp;v[u].legendgroup===x&amp;&amp;B(v[u],C);else B(y,C)}else if(&quot;toggleothers&quot;===s){var L,I,P,z,O=!0;for(u=0;u&lt;v.length;u++)if(L=v[u]===y,P=!0!==v[u].showlegend,!(L||P||(I=S&amp;&amp;v[u].legendgroup===x)||!0!==v[u].visible||i.traceIs(v[u],&quot;notLegendIsolatable&quot;))){O=!1;break}for(u=0;u&lt;v.length;u++)if(!1!==v[u].visible&amp;&amp;!i.traceIs(v[u],&quot;notLegendIsolatable&quot;))switch(y.visible){case&quot;legendonly&quot;:B(v[u],!0);break;case!0:z=!!O||&quot;legendonly&quot;,L=v[u]===y,P=!0!==v[u].showlegend&amp;&amp;!v[u].legendgroup,I=L||S&amp;&amp;v[u].legendgroup===x,B(v[u],!(!I&amp;&amp;!P)||z)}}for(u=0;u&lt;w.length;u++)if(h=w[u]){var D=h.constructUpdate(),R=Object.keys(D);for(f=0;f&lt;R.length;f++)p=R[f],(b[p]=b[p]||[])[T[u]]=D[p]}for(d=Object.keys(b),u=0;u&lt;d.length;u++)for(p=d[u],f=0;f&lt;_.length;f++)b[p].hasOwnProperty(f)||(b[p][f]=void 0);i.call(&quot;_guiRestyle&quot;,e,b,_)}}}function F(t,e,r){var n=_.indexOf(t),i=b[e];return i||(i=b[e]=[]),-1===_.indexOf(t)&amp;&amp;(_.push(t),n=_.length-1),i[n]=r,n}function B(t,e){var r=t._fullInput;if(i.hasTransform(r,&quot;groupby&quot;)){var a=w[r.index];if(!a){var o=i.getTransformIndices(r,&quot;groupby&quot;),s=o[o.length-1];a=n.keyedContainer(r,&quot;transforms[&quot;+s+&quot;].styles&quot;,&quot;target&quot;,&quot;value.visible&quot;),w[r.index]=a}var l=a.get(t._group);void 0===l&amp;&amp;(l=!0),!1!==l&amp;&amp;a.set(t._group,e),T[r.index]=F(r.index,&quot;visible&quot;,!1!==r.visible)}else{var c=!1!==r.visible&amp;&amp;e;F(r.index,&quot;visible&quot;,c)}}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],699:[function(t,e,r){&quot;use strict&quot;;r.isGrouped=function(t){return-1!==(t.traceorder||&quot;&quot;).indexOf(&quot;grouped&quot;)},r.isVertical=function(t){return&quot;h&quot;!==t.orientation},r.isReversed=function(t){return-1!==(t.traceorder||&quot;&quot;).indexOf(&quot;reversed&quot;)}},{}],700:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;legend&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;),style:t(&quot;./style&quot;)}},{&quot;./attributes&quot;:693,&quot;./defaults&quot;:695,&quot;./draw&quot;:696,&quot;./style&quot;:701}],701:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.strTranslate,s=t(&quot;../drawing&quot;),l=t(&quot;../color&quot;),c=t(&quot;../colorscale/helpers&quot;).extractOpts,u=t(&quot;../../traces/scatter/subtypes&quot;),f=t(&quot;../../traces/pie/style_one&quot;),h=t(&quot;../../traces/pie/helpers&quot;).castOption,p=t(&quot;./constants&quot;);function d(t,e){return(e?&quot;radial&quot;:&quot;horizontal&quot;)+(t?&quot;&quot;:&quot;reversed&quot;)}e.exports=function(t,e,r){var g=e._fullLayout;r||(r=g.legend);var m=&quot;constant&quot;===r.itemsizing,v=r.itemwidth,y=(v+2*p.itemGap)/2,x=o(y,0),b=function(t,e,r,n){var i;if(t+1)i=t;else{if(!(e&amp;&amp;e.width&gt;0))return 0;i=e.width}return m?n:Math.min(i,r)};function _(t,e,r){var a=t[0].trace,o=a.marker||{},s=o.line||{},c=r?a.visible&amp;&amp;a.type===r:i.traceIs(a,&quot;bar&quot;),u=n.select(e).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend&quot;+r).data(c?[t]:[]);u.enter().append(&quot;path&quot;).classed(&quot;legend&quot;+r,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,x),u.exit().remove(),u.each((function(t){var e=n.select(this),r=t[0],i=b(r.mlw,o.line,5,2);e.style(&quot;stroke-width&quot;,i+&quot;px&quot;).call(l.fill,r.mc||o.color),i&amp;&amp;l.stroke(e,r.mlc||s.color)}))}function w(t,e,r){var o=t[0],s=o.trace,l=r?s.visible&amp;&amp;s.type===r:i.traceIs(s,r),c=n.select(e).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend&quot;+r).data(l?[t]:[]);if(c.enter().append(&quot;path&quot;).classed(&quot;legend&quot;+r,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,x),c.exit().remove(),c.size()){var u=(s.marker||{}).line,p=b(h(u.width,o.pts),u,5,2),d=a.minExtend(s,{marker:{line:{width:p}}});d.marker.line.color=u.color;var g=a.minExtend(o,{trace:d});f(c,g,d)}}t.each((function(t){var e=n.select(this),i=a.ensureSingle(e,&quot;g&quot;,&quot;layers&quot;);i.style(&quot;opacity&quot;,t[0].trace.opacity);var s=r.valign,l=t[0].lineHeight,c=t[0].height;if(&quot;middle&quot;!==s&amp;&amp;l&amp;&amp;c){var u={top:1,bottom:-1}[s]*(.5*(l-c+3));i.attr(&quot;transform&quot;,o(0,u))}else i.attr(&quot;transform&quot;,null);i.selectAll(&quot;g.legendfill&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendfill&quot;,!0),i.selectAll(&quot;g.legendlines&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendlines&quot;,!0);var f=i.selectAll(&quot;g.legendsymbols&quot;).data([t]);f.enter().append(&quot;g&quot;).classed(&quot;legendsymbols&quot;,!0),f.selectAll(&quot;g.legendpoints&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendpoints&quot;,!0)})).each((function(t){var r,i=t[0].trace,o=[];if(i.visible)switch(i.type){case&quot;histogram2d&quot;:case&quot;heatmap&quot;:o=[[&quot;M-15,-2V4H15V-2Z&quot;]],r=!0;break;case&quot;choropleth&quot;:case&quot;choroplethmapbox&quot;:o=[[&quot;M-6,-6V6H6V-6Z&quot;]],r=!0;break;case&quot;densitymapbox&quot;:o=[[&quot;M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0&quot;]],r=&quot;radial&quot;;break;case&quot;cone&quot;:o=[[&quot;M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z&quot;],[&quot;M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z&quot;],[&quot;M-6,-2 A2,2 0 0,0 -6,2 L6,0Z&quot;]],r=!1;break;case&quot;streamtube&quot;:o=[[&quot;M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z&quot;],[&quot;M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z&quot;],[&quot;M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z&quot;]],r=!1;break;case&quot;surface&quot;:o=[[&quot;M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z&quot;],[&quot;M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z&quot;]],r=!0;break;case&quot;mesh3d&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6H6L0,6Z&quot;]],r=!1;break;case&quot;volume&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6H6L0,6Z&quot;]],r=!0;break;case&quot;isosurface&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6 A12,24 0 0,0 6,-6 L0,6Z&quot;]],r=!1}var u=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend3dandfriends&quot;).data(o);u.enter().append(&quot;path&quot;).classed(&quot;legend3dandfriends&quot;,!0).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),u.exit().remove(),u.each((function(t,o){var u,f=n.select(this),h=c(i),p=h.colorscale,g=h.reversescale;if(p){if(!r){var m=p.length;u=0===o?p[g?m-1:0][1]:1===o?p[g?0:m-1][1]:p[Math.floor((m-1)/2)][1]}}else{var v=i.vertexcolor||i.facecolor||i.color;u=a.isArrayOrTypedArray(v)?v[o]||v[0]:v}f.attr(&quot;d&quot;,t[0]),u?f.call(l.fill,u):f.call((function(t){if(t.size()){var n=&quot;legendfill-&quot;+i.uid;s.gradient(t,e,n,d(g,&quot;radial&quot;===r),p,&quot;fill&quot;)}}))}))})).each((function(t){var e=t[0].trace,r=&quot;waterfall&quot;===e.type;if(t[0]._distinct&amp;&amp;r){var i=t[0].trace[t[0].dir].marker;return t[0].mc=i.color,t[0].mlw=i.line.width,t[0].mlc=i.line.color,_(t,this,&quot;waterfall&quot;)}var a=[];e.visible&amp;&amp;r&amp;&amp;(a=t[0].hasTotals?[[&quot;increasing&quot;,&quot;M-6,-6V6H0Z&quot;],[&quot;totals&quot;,&quot;M6,6H0L-6,-6H-0Z&quot;],[&quot;decreasing&quot;,&quot;M6,6V-6H0Z&quot;]]:[[&quot;increasing&quot;,&quot;M-6,-6V6H6Z&quot;],[&quot;decreasing&quot;,&quot;M6,6V-6H-6Z&quot;]]);var o=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendwaterfall&quot;).data(a);o.enter().append(&quot;path&quot;).classed(&quot;legendwaterfall&quot;,!0).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),o.exit().remove(),o.each((function(t){var r=n.select(this),i=e[t[0]].marker,a=b(void 0,i.line,5,2);r.attr(&quot;d&quot;,t[1]).style(&quot;stroke-width&quot;,a+&quot;px&quot;).call(l.fill,i.color),a&amp;&amp;r.call(l.stroke,i.line.color)}))})).each((function(t){_(t,this,&quot;funnel&quot;)})).each((function(t){_(t,this)})).each((function(t){var r=t[0].trace,o=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendbox&quot;).data(r.visible&amp;&amp;i.traceIs(r,&quot;box-violin&quot;)?[t]:[]);o.enter().append(&quot;path&quot;).classed(&quot;legendbox&quot;,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,x),o.exit().remove(),o.each((function(){var t=n.select(this);if(&quot;all&quot;!==r.boxpoints&amp;&amp;&quot;all&quot;!==r.points||0!==l.opacity(r.fillcolor)||0!==l.opacity((r.line||{}).color)){var i=b(void 0,r.line,5,2);t.style(&quot;stroke-width&quot;,i+&quot;px&quot;).call(l.fill,r.fillcolor),i&amp;&amp;l.stroke(t,r.line.color)}else{var c=a.minExtend(r,{marker:{size:m?12:a.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:&quot;diameter&quot;}});o.call(s.pointStyle,c,e)}}))})).each((function(t){w(t,this,&quot;funnelarea&quot;)})).each((function(t){w(t,this,&quot;pie&quot;)})).each((function(t){var r,i,o=t[0],l=o.trace,f=l.visible&amp;&amp;l.fill&amp;&amp;&quot;none&quot;!==l.fill,h=u.hasLines(l),p=l.contours,g=!1,m=!1,y=c(l),x=y.colorscale,_=y.reversescale;if(p){var w=p.coloring;&quot;lines&quot;===w?g=!0:h=&quot;none&quot;===w||&quot;heatmap&quot;===w||p.showlines,&quot;constraint&quot;===p.type?f=&quot;=&quot;!==p._operation:&quot;fill&quot;!==w&amp;&amp;&quot;heatmap&quot;!==w||(m=!0)}var T=u.hasMarkers(l)||u.hasText(l),k=f||m,M=h||g,A=T||!k?&quot;M5,0&quot;:M?&quot;M5,-2&quot;:&quot;M5,-3&quot;,S=n.select(this),E=S.select(&quot;.legendfill&quot;).selectAll(&quot;path&quot;).data(f||m?[t]:[]);if(E.enter().append(&quot;path&quot;).classed(&quot;js-fill&quot;,!0),E.exit().remove(),E.attr(&quot;d&quot;,A+&quot;h&quot;+v+&quot;v6h-&quot;+v+&quot;z&quot;).call(f?s.fillGroupStyle:function(t){if(t.size()){var r=&quot;legendfill-&quot;+l.uid;s.gradient(t,e,r,d(_),x,&quot;fill&quot;)}}),h||g){var C=b(void 0,l.line,10,5);i=a.minExtend(l,{line:{width:C}}),r=[a.minExtend(o,{trace:i})]}var L=S.select(&quot;.legendlines&quot;).selectAll(&quot;path&quot;).data(h||g?[r]:[]);L.enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0),L.exit().remove(),L.attr(&quot;d&quot;,A+(g?&quot;l&quot;+v+&quot;,0.0001&quot;:&quot;h&quot;+v)).call(h?s.lineGroupStyle:function(t){if(t.size()){var r=&quot;legendline-&quot;+l.uid;s.lineGroupStyle(t),s.gradient(t,e,r,d(_),x,&quot;stroke&quot;)}})})).each((function(t){var r,i,o=t[0],l=o.trace,c=u.hasMarkers(l),f=u.hasText(l),h=u.hasLines(l);function p(t,e,r,n){var i=a.nestedProperty(l,t).get(),o=a.isArrayOrTypedArray(i)&amp;&amp;e?e(i):i;if(m&amp;&amp;o&amp;&amp;void 0!==n&amp;&amp;(o=n),r){if(o&lt;r[0])return r[0];if(o&gt;r[1])return r[1]}return o}function d(t){return o._distinct&amp;&amp;o.index&amp;&amp;t[o.index]?t[o.index]:t[0]}if(c||f||h){var g={},v={};if(c){g.mc=p(&quot;marker.color&quot;,d),g.mx=p(&quot;marker.symbol&quot;,d),g.mo=p(&quot;marker.opacity&quot;,a.mean,[.2,1]),g.mlc=p(&quot;marker.line.color&quot;,d),g.mlw=p(&quot;marker.line.width&quot;,a.mean,[0,5],2),v.marker={sizeref:1,sizemin:1,sizemode:&quot;diameter&quot;};var y=p(&quot;marker.size&quot;,a.mean,[2,16],12);g.ms=y,v.marker.size=y}h&amp;&amp;(v.line={width:p(&quot;line.width&quot;,d,[0,10],5)}),f&amp;&amp;(g.tx=&quot;Aa&quot;,g.tp=p(&quot;textposition&quot;,d),g.ts=10,g.tc=p(&quot;textfont.color&quot;,d),g.tf=p(&quot;textfont.family&quot;,d)),r=[a.minExtend(o,g)],(i=a.minExtend(l,v)).selectedpoints=null,i.texttemplate=null}var b=n.select(this).select(&quot;g.legendpoints&quot;),_=b.selectAll(&quot;path.scatterpts&quot;).data(c?r:[]);_.enter().insert(&quot;path&quot;,&quot;:first-child&quot;).classed(&quot;scatterpts&quot;,!0).attr(&quot;transform&quot;,x),_.exit().remove(),_.call(s.pointStyle,i,e),c&amp;&amp;(r[0].mrc=3);var w=b.selectAll(&quot;g.pointtext&quot;).data(f?r:[]);w.enter().append(&quot;g&quot;).classed(&quot;pointtext&quot;,!0).append(&quot;text&quot;).attr(&quot;transform&quot;,x),w.exit().remove(),w.selectAll(&quot;text&quot;).call(s.textPointStyle,i,e)})).each((function(t){var e=t[0].trace,r=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendcandle&quot;).data(e.visible&amp;&amp;&quot;candlestick&quot;===e.type?[t,t]:[]);r.enter().append(&quot;path&quot;).classed(&quot;legendcandle&quot;,!0).attr(&quot;d&quot;,(function(t,e){return e?&quot;M-15,0H-8M-8,6V-6H8Z&quot;:&quot;M15,0H8M8,-6V6H-8Z&quot;})).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?&quot;increasing&quot;:&quot;decreasing&quot;],o=b(void 0,a.line,5,2);i.style(&quot;stroke-width&quot;,o+&quot;px&quot;).call(l.fill,a.fillcolor),o&amp;&amp;l.stroke(i,a.line.color)}))})).each((function(t){var e=t[0].trace,r=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendohlc&quot;).data(e.visible&amp;&amp;&quot;ohlc&quot;===e.type?[t,t]:[]);r.enter().append(&quot;path&quot;).classed(&quot;legendohlc&quot;,!0).attr(&quot;d&quot;,(function(t,e){return e?&quot;M-15,0H0M-8,-6V0&quot;:&quot;M15,0H0M8,6V0&quot;})).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?&quot;increasing&quot;:&quot;decreasing&quot;],o=b(void 0,a.line,5,2);i.style(&quot;fill&quot;,&quot;none&quot;).call(s.dashLine,a.line.dash,o),o&amp;&amp;l.stroke(i,a.line.color)}))}))}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../../traces/pie/helpers&quot;:1166,&quot;../../traces/pie/style_one&quot;:1172,&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../color&quot;:643,&quot;../colorscale/helpers&quot;:654,&quot;../drawing&quot;:665,&quot;./constants&quot;:694,d3:169}],702:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../fonts/ploticon&quot;),s=t(&quot;../shapes/draw&quot;).eraseActiveShape,l=t(&quot;../../lib&quot;),c=l._,u=e.exports={};function f(t,e){var r,i,o=e.currentTarget,s=o.getAttribute(&quot;data-attr&quot;),l=o.getAttribute(&quot;data-val&quot;)||!0,c=t._fullLayout,u={},f=a.list(t,null,!0),h=c._cartesianSpikesEnabled;if(&quot;zoom&quot;===s){var p,d=&quot;in&quot;===l?.5:2,g=(1+d)/2,m=(1-d)/2;for(i=0;i&lt;f.length;i++)if(!(r=f[i]).fixedrange)if(p=r._name,&quot;auto&quot;===l)u[p+&quot;.autorange&quot;]=!0;else if(&quot;reset&quot;===l){if(void 0===r._rangeInitial)u[p+&quot;.autorange&quot;]=!0;else{var v=r._rangeInitial.slice();u[p+&quot;.range[0]&quot;]=v[0],u[p+&quot;.range[1]&quot;]=v[1]}void 0!==r._showSpikeInitial&amp;&amp;(u[p+&quot;.showspikes&quot;]=r._showSpikeInitial,&quot;on&quot;!==h||r._showSpikeInitial||(h=&quot;off&quot;))}else{var y=[r.r2l(r.range[0]),r.r2l(r.range[1])],x=[g*y[0]+m*y[1],g*y[1]+m*y[0]];u[p+&quot;.range[0]&quot;]=r.l2r(x[0]),u[p+&quot;.range[1]&quot;]=r.l2r(x[1])}}else&quot;hovermode&quot;!==s||&quot;x&quot;!==l&amp;&amp;&quot;y&quot;!==l||(l=c._isHoriz?&quot;y&quot;:&quot;x&quot;,o.setAttribute(&quot;data-val&quot;,l)),u[s]=l;c._cartesianSpikesEnabled=h,n.call(&quot;_guiRelayout&quot;,t,u)}function h(t,e){for(var r=e.currentTarget,i=r.getAttribute(&quot;data-attr&quot;),a=r.getAttribute(&quot;data-val&quot;)||!0,o=t._fullLayout._subplots.gl3d||[],s={},l=i.split(&quot;.&quot;),c=0;c&lt;o.length;c++)s[o[c]+&quot;.&quot;+l[1]]=a;var u=&quot;pan&quot;===a?a:&quot;zoom&quot;;s.dragmode=u,n.call(&quot;_guiRelayout&quot;,t,s)}function p(t,e){for(var r=e.currentTarget.getAttribute(&quot;data-attr&quot;),i=&quot;resetLastSave&quot;===r,a=&quot;resetDefault&quot;===r,o=t._fullLayout,s=o._subplots.gl3d||[],l={},c=0;c&lt;s.length;c++){var u,f=s[c],h=f+&quot;.camera&quot;,p=f+&quot;.aspectratio&quot;,d=f+&quot;.aspectmode&quot;,g=o[f]._scene;i?(l[h+&quot;.up&quot;]=g.viewInitial.up,l[h+&quot;.eye&quot;]=g.viewInitial.eye,l[h+&quot;.center&quot;]=g.viewInitial.center,u=!0):a&amp;&amp;(l[h+&quot;.up&quot;]=null,l[h+&quot;.eye&quot;]=null,l[h+&quot;.center&quot;]=null,u=!0),u&amp;&amp;(l[p+&quot;.x&quot;]=g.viewInitial.aspectratio.x,l[p+&quot;.y&quot;]=g.viewInitial.aspectratio.y,l[p+&quot;.z&quot;]=g.viewInitial.aspectratio.z,l[d]=g.viewInitial.aspectmode)}n.call(&quot;_guiRelayout&quot;,t,l)}function d(t,e){var r=e.currentTarget,n=r._previousVal,i=t._fullLayout,a=i._subplots.gl3d||[],o=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;],s={},l={};if(n)l=n,r._previousVal=null;else{for(var c=0;c&lt;a.length;c++){var u=a[c],f=i[u],h=u+&quot;.hovermode&quot;;s[h]=f.hovermode,l[h]=!1;for(var p=0;p&lt;3;p++){var d=o[p],g=u+&quot;.&quot;+d+&quot;.showspikes&quot;;l[g]=!1,s[g]=f[d].showspikes}}r._previousVal=s}return l}function g(t,e){for(var r=e.currentTarget,i=r.getAttribute(&quot;data-attr&quot;),a=r.getAttribute(&quot;data-val&quot;)||!0,o=t._fullLayout,s=o._subplots.geo||[],l=0;l&lt;s.length;l++){var c=s[l],u=o[c];if(&quot;zoom&quot;===i){var f=u.projection.scale,h=&quot;in&quot;===a?2*f:.5*f;n.call(&quot;_guiRelayout&quot;,t,c+&quot;.projection.scale&quot;,h)}}&quot;reset&quot;===i&amp;&amp;x(t,&quot;geo&quot;)}function m(t){var e=t._fullLayout;return!e.hovermode&amp;&amp;(e._has(&quot;cartesian&quot;)?e._isHoriz?&quot;y&quot;:&quot;x&quot;:&quot;closest&quot;)}function v(t){var e=m(t);n.call(&quot;_guiRelayout&quot;,t,&quot;hovermode&quot;,e)}function y(t,e){for(var r=e.currentTarget.getAttribute(&quot;data-val&quot;),i=t._fullLayout,a=i._subplots.mapbox||[],o={},s=0;s&lt;a.length;s++){var l=a[s],c=i[l].zoom,u=&quot;in&quot;===r?1.05*c:c/1.05;o[l+&quot;.zoom&quot;]=u}n.call(&quot;_guiRelayout&quot;,t,o)}function x(t,e){for(var r=t._fullLayout,i=r._subplots[e]||[],a={},o=0;o&lt;i.length;o++)for(var s=i[o],l=r[s]._subplot.viewInitial,c=Object.keys(l),u=0;u&lt;c.length;u++){var f=c[u];a[s+&quot;.&quot;+f]=l[f]}n.call(&quot;_guiRelayout&quot;,t,a)}u.toImage={name:&quot;toImage&quot;,title:function(t){var e=(t._context.toImageButtonOptions||{}).format||&quot;png&quot;;return c(t,&quot;png&quot;===e?&quot;Download plot as a png&quot;:&quot;Download plot&quot;)},icon:o.camera,click:function(t){var e=t._context.toImageButtonOptions,r={format:e.format||&quot;png&quot;};l.notifier(c(t,&quot;Taking snapshot - this may take a few seconds&quot;),&quot;long&quot;),&quot;svg&quot;!==r.format&amp;&amp;l.isIE()&amp;&amp;(l.notifier(c(t,&quot;IE only supports svg.  Changing format to svg.&quot;),&quot;long&quot;),r.format=&quot;svg&quot;),[&quot;filename&quot;,&quot;width&quot;,&quot;height&quot;,&quot;scale&quot;].forEach((function(t){t in e&amp;&amp;(r[t]=e[t])})),n.call(&quot;downloadImage&quot;,t,r).then((function(e){l.notifier(c(t,&quot;Snapshot succeeded&quot;)+&quot; - &quot;+e,&quot;long&quot;)})).catch((function(){l.notifier(c(t,&quot;Sorry, there was a problem downloading your snapshot!&quot;),&quot;long&quot;)}))}},u.sendDataToCloud={name:&quot;sendDataToCloud&quot;,title:function(t){return c(t,&quot;Edit in Chart Studio&quot;)},icon:o.disk,click:function(t){i.sendDataToCloud(t)}},u.editInChartStudio={name:&quot;editInChartStudio&quot;,title:function(t){return c(t,&quot;Edit in Chart Studio&quot;)},icon:o.pencil,click:function(t){i.sendDataToCloud(t)}},u.zoom2d={name:&quot;zoom2d&quot;,title:function(t){return c(t,&quot;Zoom&quot;)},attr:&quot;dragmode&quot;,val:&quot;zoom&quot;,icon:o.zoombox,click:f},u.pan2d={name:&quot;pan2d&quot;,title:function(t){return c(t,&quot;Pan&quot;)},attr:&quot;dragmode&quot;,val:&quot;pan&quot;,icon:o.pan,click:f},u.select2d={name:&quot;select2d&quot;,title:function(t){return c(t,&quot;Box Select&quot;)},attr:&quot;dragmode&quot;,val:&quot;select&quot;,icon:o.selectbox,click:f},u.lasso2d={name:&quot;lasso2d&quot;,title:function(t){return c(t,&quot;Lasso Select&quot;)},attr:&quot;dragmode&quot;,val:&quot;lasso&quot;,icon:o.lasso,click:f},u.drawclosedpath={name:&quot;drawclosedpath&quot;,title:function(t){return c(t,&quot;Draw closed freeform&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawclosedpath&quot;,icon:o.drawclosedpath,click:f},u.drawopenpath={name:&quot;drawopenpath&quot;,title:function(t){return c(t,&quot;Draw open freeform&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawopenpath&quot;,icon:o.drawopenpath,click:f},u.drawline={name:&quot;drawline&quot;,title:function(t){return c(t,&quot;Draw line&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawline&quot;,icon:o.drawline,click:f},u.drawrect={name:&quot;drawrect&quot;,title:function(t){return c(t,&quot;Draw rectangle&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawrect&quot;,icon:o.drawrect,click:f},u.drawcircle={name:&quot;drawcircle&quot;,title:function(t){return c(t,&quot;Draw circle&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawcircle&quot;,icon:o.drawcircle,click:f},u.eraseshape={name:&quot;eraseshape&quot;,title:function(t){return c(t,&quot;Erase active shape&quot;)},icon:o.eraseshape,click:s},u.zoomIn2d={name:&quot;zoomIn2d&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:f},u.zoomOut2d={name:&quot;zoomOut2d&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:f},u.autoScale2d={name:&quot;autoScale2d&quot;,title:function(t){return c(t,&quot;Autoscale&quot;)},attr:&quot;zoom&quot;,val:&quot;auto&quot;,icon:o.autoscale,click:f},u.resetScale2d={name:&quot;resetScale2d&quot;,title:function(t){return c(t,&quot;Reset axes&quot;)},attr:&quot;zoom&quot;,val:&quot;reset&quot;,icon:o.home,click:f},u.hoverClosestCartesian={name:&quot;hoverClosestCartesian&quot;,title:function(t){return c(t,&quot;Show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:&quot;closest&quot;,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:f},u.hoverCompareCartesian={name:&quot;hoverCompareCartesian&quot;,title:function(t){return c(t,&quot;Compare data on hover&quot;)},attr:&quot;hovermode&quot;,val:function(t){return t._fullLayout._isHoriz?&quot;y&quot;:&quot;x&quot;},icon:o.tooltip_compare,gravity:&quot;ne&quot;,click:f},u.zoom3d={name:&quot;zoom3d&quot;,title:function(t){return c(t,&quot;Zoom&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;zoom&quot;,icon:o.zoombox,click:h},u.pan3d={name:&quot;pan3d&quot;,title:function(t){return c(t,&quot;Pan&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;pan&quot;,icon:o.pan,click:h},u.orbitRotation={name:&quot;orbitRotation&quot;,title:function(t){return c(t,&quot;Orbital rotation&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;orbit&quot;,icon:o[&quot;3d_rotate&quot;],click:h},u.tableRotation={name:&quot;tableRotation&quot;,title:function(t){return c(t,&quot;Turntable rotation&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;turntable&quot;,icon:o[&quot;z-axis&quot;],click:h},u.resetCameraDefault3d={name:&quot;resetCameraDefault3d&quot;,title:function(t){return c(t,&quot;Reset camera to default&quot;)},attr:&quot;resetDefault&quot;,icon:o.home,click:p},u.resetCameraLastSave3d={name:&quot;resetCameraLastSave3d&quot;,title:function(t){return c(t,&quot;Reset camera to last save&quot;)},attr:&quot;resetLastSave&quot;,icon:o.movie,click:p},u.hoverClosest3d={name:&quot;hoverClosest3d&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:function(t,e){var r=d(t,e);n.call(&quot;_guiRelayout&quot;,t,r)}},u.zoomInGeo={name:&quot;zoomInGeo&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:g},u.zoomOutGeo={name:&quot;zoomOutGeo&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:g},u.resetGeo={name:&quot;resetGeo&quot;,title:function(t){return c(t,&quot;Reset&quot;)},attr:&quot;reset&quot;,val:null,icon:o.autoscale,click:g},u.hoverClosestGeo={name:&quot;hoverClosestGeo&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.hoverClosestGl2d={name:&quot;hoverClosestGl2d&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.hoverClosestPie={name:&quot;hoverClosestPie&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:&quot;closest&quot;,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.resetViewSankey={name:&quot;resetSankeyGroup&quot;,title:function(t){return c(t,&quot;Reset view&quot;)},icon:o.home,click:function(t){for(var e={&quot;node.groups&quot;:[],&quot;node.x&quot;:[],&quot;node.y&quot;:[]},r=0;r&lt;t._fullData.length;r++){var i=t._fullData[r]._viewInitial;e[&quot;node.groups&quot;].push(i.node.groups.slice()),e[&quot;node.x&quot;].push(i.node.x.slice()),e[&quot;node.y&quot;].push(i.node.y.slice())}n.call(&quot;restyle&quot;,t,e)}},u.toggleHover={name:&quot;toggleHover&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:function(t,e){var r=d(t,e);r.hovermode=m(t),n.call(&quot;_guiRelayout&quot;,t,r)}},u.resetViews={name:&quot;resetViews&quot;,title:function(t){return c(t,&quot;Reset views&quot;)},icon:o.home,click:function(t,e){var r=e.currentTarget;r.setAttribute(&quot;data-attr&quot;,&quot;zoom&quot;),r.setAttribute(&quot;data-val&quot;,&quot;reset&quot;),f(t,e),r.setAttribute(&quot;data-attr&quot;,&quot;resetLastSave&quot;),p(t,e),x(t,&quot;geo&quot;),x(t,&quot;mapbox&quot;)}},u.toggleSpikelines={name:&quot;toggleSpikelines&quot;,title:function(t){return c(t,&quot;Toggle Spike Lines&quot;)},icon:o.spikeline,attr:&quot;_cartesianSpikesEnabled&quot;,val:&quot;on&quot;,click:function(t){var e=t._fullLayout,r=e._cartesianSpikesEnabled;e._cartesianSpikesEnabled=&quot;on&quot;===r?&quot;off&quot;:&quot;on&quot;,n.call(&quot;_guiRelayout&quot;,t,function(t){for(var e=&quot;on&quot;===t._fullLayout._cartesianSpikesEnabled,r=a.list(t,null,!0),n={},i=0;i&lt;r.length;i++){var o=r[i];n[o._name+&quot;.showspikes&quot;]=!!e||o._showSpikeInitial}return n}(t))}},u.resetViewMapbox={name:&quot;resetViewMapbox&quot;,title:function(t){return c(t,&quot;Reset view&quot;)},attr:&quot;reset&quot;,icon:o.home,click:function(t){x(t,&quot;mapbox&quot;)}},u.zoomInMapbox={name:&quot;zoomInMapbox&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:y},u.zoomOutMapbox={name:&quot;zoomOutMapbox&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:y}},{&quot;../../fonts/ploticon&quot;:757,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../shapes/draw&quot;:724}],703:[function(t,e,r){&quot;use strict&quot;;r.manage=t(&quot;./manage&quot;)},{&quot;./manage&quot;:704}],704:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;),i=t(&quot;../../traces/scatter/subtypes&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../fx/helpers&quot;).isUnifiedHover,s=t(&quot;./modebar&quot;),l=t(&quot;./buttons&quot;);e.exports=function(t){var e=t._fullLayout,r=t._context,u=e._modeBar;if(r.displayModeBar||r.watermark){if(!Array.isArray(r.modeBarButtonsToRemove))throw new Error([&quot;*modeBarButtonsToRemove* configuration options&quot;,&quot;must be an array.&quot;].join(&quot; &quot;));if(!Array.isArray(r.modeBarButtonsToAdd))throw new Error([&quot;*modeBarButtonsToAdd* configuration options&quot;,&quot;must be an array.&quot;].join(&quot; &quot;));var f,h=r.modeBarButtons;f=Array.isArray(h)&amp;&amp;h.length?function(t){for(var e=0;e&lt;t.length;e++)for(var r=t[e],n=0;n&lt;r.length;n++){var i=r[n];if(&quot;string&quot;==typeof i){if(void 0===l[i])throw new Error([&quot;*modeBarButtons* configuration options&quot;,&quot;invalid button name&quot;].join(&quot; &quot;));t[e][n]=l[i]}}return t}(h):!r.displayModeBar&amp;&amp;r.watermark?[]:function(t){var e=t._fullLayout,r=t._fullData,s=t._context,u=s.modeBarButtonsToRemove,f=s.modeBarButtonsToAdd,h=e._has(&quot;cartesian&quot;),p=e._has(&quot;gl3d&quot;),d=e._has(&quot;geo&quot;),g=e._has(&quot;pie&quot;),m=e._has(&quot;funnelarea&quot;),v=e._has(&quot;gl2d&quot;),y=e._has(&quot;ternary&quot;),x=e._has(&quot;mapbox&quot;),b=e._has(&quot;polar&quot;),_=e._has(&quot;sankey&quot;),w=function(t){for(var e=n.list({_fullLayout:t},null,!0),r=0;r&lt;e.length;r++)if(!e[r].fixedrange)return!1;return!0}(e),T=o(e.hovermode),k=[];function M(t){if(t.length){for(var e=[],r=0;r&lt;t.length;r++){var n=t[r];-1===u.indexOf(n)&amp;&amp;e.push(l[n])}k.push(e)}}var A=[&quot;toImage&quot;];s.showEditInChartStudio?A.push(&quot;editInChartStudio&quot;):s.showSendToCloud&amp;&amp;A.push(&quot;sendDataToCloud&quot;);M(A);var S=[],E=[],C=[],L=[];(h||v||g||m||y)+d+p+x+b&gt;1?(E=[&quot;toggleHover&quot;],C=[&quot;resetViews&quot;]):d?(S=[&quot;zoomInGeo&quot;,&quot;zoomOutGeo&quot;],E=[&quot;hoverClosestGeo&quot;],C=[&quot;resetGeo&quot;]):p?(E=[&quot;hoverClosest3d&quot;],C=[&quot;resetCameraDefault3d&quot;,&quot;resetCameraLastSave3d&quot;]):x?(S=[&quot;zoomInMapbox&quot;,&quot;zoomOutMapbox&quot;],E=[&quot;toggleHover&quot;],C=[&quot;resetViewMapbox&quot;]):v?E=[&quot;hoverClosestGl2d&quot;]:g?E=[&quot;hoverClosestPie&quot;]:_?(E=[&quot;hoverClosestCartesian&quot;,&quot;hoverCompareCartesian&quot;],C=[&quot;resetViewSankey&quot;]):E=[&quot;toggleHover&quot;];h&amp;&amp;(E=[&quot;toggleSpikelines&quot;,&quot;hoverClosestCartesian&quot;,&quot;hoverCompareCartesian&quot;]);(function(t){for(var e=0;e&lt;t.length;e++)if(!a.traceIs(t[e],&quot;noHover&quot;))return!1;return!0}(r)||T)&amp;&amp;(E=[]);!h&amp;&amp;!v||w||(S=[&quot;zoomIn2d&quot;,&quot;zoomOut2d&quot;,&quot;autoScale2d&quot;],&quot;resetViews&quot;!==C[0]&amp;&amp;(C=[&quot;resetScale2d&quot;]));p?L=[&quot;zoom3d&quot;,&quot;pan3d&quot;,&quot;orbitRotation&quot;,&quot;tableRotation&quot;]:(h||v)&amp;&amp;!w||y?L=[&quot;zoom2d&quot;,&quot;pan2d&quot;]:x||d?L=[&quot;pan2d&quot;]:b&amp;&amp;(L=[&quot;zoom2d&quot;]);(function(t){for(var e=!1,r=0;r&lt;t.length&amp;&amp;!e;r++){var n=t[r];n._module&amp;&amp;n._module.selectPoints&amp;&amp;(a.traceIs(n,&quot;scatter-like&quot;)?(i.hasMarkers(n)||i.hasText(n))&amp;&amp;(e=!0):a.traceIs(n,&quot;box-violin&quot;)&amp;&amp;&quot;all&quot;!==n.boxpoints&amp;&amp;&quot;all&quot;!==n.points||(e=!0))}return e})(r)&amp;&amp;L.push(&quot;select2d&quot;,&quot;lasso2d&quot;);if(Array.isArray(f)){for(var I=[],P=0;P&lt;f.length;P++){var z=f[P];&quot;string&quot;==typeof z?-1!==c.indexOf(z)&amp;&amp;(e._has(&quot;mapbox&quot;)||e._has(&quot;cartesian&quot;))&amp;&amp;L.push(z):I.push(z)}f=I}return M(L),M(S.concat(C)),M(E),function(t,e){if(e.length)if(Array.isArray(e[0]))for(var r=0;r&lt;e.length;r++)t.push(e[r]);else t.push(e);return t}(k,f)}(t),u?u.update(t,f):e._modeBar=s(t,f)}else u&amp;&amp;(u.destroy(),delete e._modeBar)};var c=[&quot;drawline&quot;,&quot;drawopenpath&quot;,&quot;drawclosedpath&quot;,&quot;drawcircle&quot;,&quot;drawrect&quot;,&quot;eraseshape&quot;]},{&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../registry&quot;:911,&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../fx/helpers&quot;:679,&quot;./buttons&quot;:702,&quot;./modebar&quot;:705}],705:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../fonts/ploticon&quot;),s=new DOMParser;function l(t){this.container=t.container,this.element=document.createElement(&quot;div&quot;),this.update(t.graphInfo,t.buttons),this.container.appendChild(this.element)}var c=l.prototype;c.update=function(t,e){this.graphInfo=t;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i=&quot;modebar-&quot;+n._uid;this.element.setAttribute(&quot;id&quot;,i),this._uid=i,this.element.className=&quot;modebar&quot;,&quot;hover&quot;===r.displayModeBar&amp;&amp;(this.element.className+=&quot; modebar--hover ease-bg&quot;),&quot;v&quot;===n.modebar.orientation&amp;&amp;(this.element.className+=&quot; vertical&quot;,e=e.reverse());var o=n.modebar,s=&quot;hover&quot;===r.displayModeBar?&quot;.js-plotly-plot .plotly:hover &quot;:&quot;&quot;;a.deleteRelatedStyleRule(i),a.addRelatedStyleRule(i,s+&quot;#&quot;+i+&quot; .modebar-group&quot;,&quot;background-color: &quot;+o.bgcolor),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn .icon path&quot;,&quot;fill: &quot;+o.color),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn:hover .icon path&quot;,&quot;fill: &quot;+o.activecolor),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn.active .icon path&quot;,&quot;fill: &quot;+o.activecolor);var l=!this.hasButtons(e),c=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(l||c||u)&amp;&amp;(this.removeAllButtons(),this.updateButtons(e),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&amp;&amp;(f.className=f.className+&quot; watermark&quot;),&quot;v&quot;===n.modebar.orientation?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton()},c.updateButtons=function(t){var e=this;this.buttons=t,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(t){var r=e.createGroup();t.forEach((function(t){var n=t.name;if(!n)throw new Error(&quot;must provide button 'name' in button config&quot;);if(-1!==e.buttonsNames.indexOf(n))throw new Error(&quot;button name '&quot;+n+&quot;' is taken&quot;);e.buttonsNames.push(n);var i=e.createButton(t);e.buttonElements.push(i),r.appendChild(i)})),e.element.appendChild(r)}))},c.createGroup=function(){var t=document.createElement(&quot;div&quot;);return t.className=&quot;modebar-group&quot;,t},c.createButton=function(t){var e=this,r=document.createElement(&quot;a&quot;);r.setAttribute(&quot;rel&quot;,&quot;tooltip&quot;),r.className=&quot;modebar-btn&quot;;var i=t.title;void 0===i?i=t.name:&quot;function&quot;==typeof i&amp;&amp;(i=i(this.graphInfo)),(i||0===i)&amp;&amp;r.setAttribute(&quot;data-title&quot;,i),void 0!==t.attr&amp;&amp;r.setAttribute(&quot;data-attr&quot;,t.attr);var a=t.val;if(void 0!==a&amp;&amp;(&quot;function&quot;==typeof a&amp;&amp;(a=a(this.graphInfo)),r.setAttribute(&quot;data-val&quot;,a)),&quot;function&quot;!=typeof t.click)throw new Error(&quot;must provide button 'click' function in button config&quot;);r.addEventListener(&quot;click&quot;,(function(r){t.click(e.graphInfo,r),e.updateActiveButton(r.currentTarget)})),r.setAttribute(&quot;data-toggle&quot;,t.toggle||!1),t.toggle&amp;&amp;n.select(r).classed(&quot;active&quot;,!0);var s=t.icon;return&quot;function&quot;==typeof s?r.appendChild(s()):r.appendChild(this.createIcon(s||o.question)),r.setAttribute(&quot;data-gravity&quot;,t.gravity||&quot;n&quot;),r},c.createIcon=function(t){var e,r=i(t.height)?Number(t.height):t.ascent-t.descent,n=&quot;http://www.w3.org/2000/svg&quot;;if(t.path){(e=document.createElementNS(n,&quot;svg&quot;)).setAttribute(&quot;viewBox&quot;,[0,0,t.width,r].join(&quot; &quot;)),e.setAttribute(&quot;class&quot;,&quot;icon&quot;);var a=document.createElementNS(n,&quot;path&quot;);a.setAttribute(&quot;d&quot;,t.path),t.transform?a.setAttribute(&quot;transform&quot;,t.transform):void 0!==t.ascent&amp;&amp;a.setAttribute(&quot;transform&quot;,&quot;matrix(1 0 0 -1 0 &quot;+t.ascent+&quot;)&quot;),e.appendChild(a)}t.svg&amp;&amp;(e=s.parseFromString(t.svg,&quot;application/xml&quot;).childNodes[0]);return e.setAttribute(&quot;height&quot;,&quot;1em&quot;),e.setAttribute(&quot;width&quot;,&quot;1em&quot;),e},c.updateActiveButton=function(t){var e=this.graphInfo._fullLayout,r=void 0!==t?t.getAttribute(&quot;data-attr&quot;):null;this.buttonElements.forEach((function(t){var i=t.getAttribute(&quot;data-val&quot;)||!0,o=t.getAttribute(&quot;data-attr&quot;),s=&quot;true&quot;===t.getAttribute(&quot;data-toggle&quot;),l=n.select(t);if(s)o===r&amp;&amp;l.classed(&quot;active&quot;,!l.classed(&quot;active&quot;));else{var c=null===o?o:a.nestedProperty(e,o).get();l.classed(&quot;active&quot;,c===i)}}))},c.hasButtons=function(t){var e=this.buttons;if(!e)return!1;if(t.length!==e.length)return!1;for(var r=0;r&lt;t.length;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n&lt;t[r].length;n++)if(t[r][n].name!==e[r][n].name)return!1}return!0},c.getLogo=function(){var t=this.createGroup(),e=document.createElement(&quot;a&quot;);return e.href=&quot;https://plotly.com/&quot;,e.target=&quot;_blank&quot;,e.setAttribute(&quot;data-title&quot;,a._(this.graphInfo,&quot;Produced with Plotly&quot;)),e.className=&quot;modebar-btn plotlyjsicon modebar-btn--logo&quot;,e.appendChild(this.createIcon(o.newplotlylogo)),t.appendChild(e),t},c.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},c.destroy=function(){a.removeElement(this.container.querySelector(&quot;.modebar&quot;)),a.deleteRelatedStyleRule(this._uid)},e.exports=function(t,e){var r=t._fullLayout,i=new l({graphInfo:t,container:r._modebardiv.node(),buttons:e});return r._privateplot&amp;&amp;n.select(i.element).append(&quot;span&quot;).classed(&quot;badge-private float--left&quot;,!0).text(&quot;PRIVATE&quot;),i}},{&quot;../../fonts/ploticon&quot;:757,&quot;../../lib&quot;:778,d3:169,&quot;fast-isnumeric&quot;:241}],706:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;),a=(0,t(&quot;../../plot_api/plot_template&quot;).templatedArray)(&quot;button&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},step:{valType:&quot;enumerated&quot;,values:[&quot;month&quot;,&quot;year&quot;,&quot;day&quot;,&quot;hour&quot;,&quot;minute&quot;,&quot;second&quot;,&quot;all&quot;],dflt:&quot;month&quot;,editType:&quot;plot&quot;},stepmode:{valType:&quot;enumerated&quot;,values:[&quot;backward&quot;,&quot;todate&quot;],dflt:&quot;backward&quot;,editType:&quot;plot&quot;},count:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},label:{valType:&quot;string&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;});e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},buttons:a,x:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;plot&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;plot&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;plot&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;bottom&quot;,editType:&quot;plot&quot;},font:n({editType:&quot;plot&quot;}),bgcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;plot&quot;},activecolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;plot&quot;}},{&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/font_attributes&quot;:856,&quot;../color/attributes&quot;:642}],707:[function(t,e,r){&quot;use strict&quot;;e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},{}],708:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;../../plots/array_container_defaults&quot;),s=t(&quot;./attributes&quot;),l=t(&quot;./constants&quot;);function c(t,e,r,i){var a=i.calendar;function o(r,i){return n.coerce(t,e,s.buttons,r,i)}if(o(&quot;visible&quot;)){var l=o(&quot;step&quot;);&quot;all&quot;!==l&amp;&amp;(!a||&quot;gregorian&quot;===a||&quot;month&quot;!==l&amp;&amp;&quot;year&quot;!==l?o(&quot;stepmode&quot;):e.stepmode=&quot;backward&quot;,o(&quot;count&quot;)),o(&quot;label&quot;)}}e.exports=function(t,e,r,u,f){var h=t.rangeselector||{},p=a.newContainer(e,&quot;rangeselector&quot;);function d(t,e){return n.coerce(h,p,s,t,e)}if(d(&quot;visible&quot;,o(h,p,{name:&quot;buttons&quot;,handleItemDefaults:c,calendar:f}).length&gt;0)){var g=function(t,e,r){for(var n=r.filter((function(r){return e[r].anchor===t._id})),i=0,a=0;a&lt;n.length;a++){var o=e[n[a]].domain;o&amp;&amp;(i=Math.max(o[1],i))}return[t.domain[0],i+l.yPad]}(e,r,u);d(&quot;x&quot;,g[0]),d(&quot;y&quot;,g[1]),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),d(&quot;xanchor&quot;),d(&quot;yanchor&quot;),n.coerceFont(d,&quot;font&quot;,r.font);var m=d(&quot;bgcolor&quot;);d(&quot;activecolor&quot;,i.contrast(m,l.lightAmount,l.darkAmount)),d(&quot;bordercolor&quot;),d(&quot;borderwidth&quot;)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/array_container_defaults&quot;:823,&quot;../color&quot;:643,&quot;./attributes&quot;:706,&quot;./constants&quot;:707}],709:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../color&quot;),s=t(&quot;../drawing&quot;),l=t(&quot;../../lib&quot;),c=l.strTranslate,u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../plots/cartesian/axis_ids&quot;),h=t(&quot;../../constants/alignment&quot;),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR,m=t(&quot;./constants&quot;),v=t(&quot;./get_update_object&quot;);function y(t){return t._id}function x(t,e,r){var n=l.ensureSingle(t,&quot;rect&quot;,&quot;selector-rect&quot;,(function(t){t.attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)}));n.attr({rx:m.rx,ry:m.ry}),n.call(o.stroke,e.bordercolor).call(o.fill,function(t,e){return e._isActive||e._isHovered?t.activecolor:t.bgcolor}(e,r)).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;)}function b(t,e,r,n){l.ensureSingle(t,&quot;text&quot;,&quot;selector-text&quot;,(function(t){t.attr(&quot;text-anchor&quot;,&quot;middle&quot;)})).call(s.font,e.font).text(function(t,e){if(t.label)return e?l.templateString(t.label,e):t.label;return&quot;all&quot;===t.step?&quot;all&quot;:t.count+t.step.charAt(0)}(r,n._fullLayout._meta)).call((function(t){u.convertToTspans(t,n)}))}e.exports=function(t){var e=t._fullLayout._infolayer.selectAll(&quot;.rangeselector&quot;).data(function(t){for(var e=f.list(t,&quot;x&quot;,!0),r=[],n=0;n&lt;e.length;n++){var i=e[n];i.rangeselector&amp;&amp;i.rangeselector.visible&amp;&amp;r.push(i)}return r}(t),y);e.enter().append(&quot;g&quot;).classed(&quot;rangeselector&quot;,!0),e.exit().remove(),e.style({cursor:&quot;pointer&quot;,&quot;pointer-events&quot;:&quot;all&quot;}),e.each((function(e){var r=n.select(this),o=e,f=o.rangeselector,h=r.selectAll(&quot;g.button&quot;).data(l.filterVisible(f.buttons));h.enter().append(&quot;g&quot;).classed(&quot;button&quot;,!0),h.exit().remove(),h.each((function(e){var r=n.select(this),a=v(o,e);e._isActive=function(t,e,r){if(&quot;all&quot;===e.step)return!0===t.autorange;var n=Object.keys(r);return t.range[0]===r[n[0]]&amp;&amp;t.range[1]===r[n[1]]}(o,e,a),r.call(x,f,e),r.call(b,f,e,t),r.on(&quot;click&quot;,(function(){t._dragged||i.call(&quot;_guiRelayout&quot;,t,a)})),r.on(&quot;mouseover&quot;,(function(){e._isHovered=!0,r.call(x,f,e)})),r.on(&quot;mouseout&quot;,(function(){e._isHovered=!1,r.call(x,f,e)}))})),function(t,e,r,i,o){var f=0,h=0,v=r.borderwidth;e.each((function(){var t=n.select(this).select(&quot;.selector-text&quot;),e=r.font.size*p,i=Math.max(e*u.lineCount(t),16)+3;h=Math.max(h,i)})),e.each((function(){var t=n.select(this),e=t.select(&quot;.selector-rect&quot;),i=t.select(&quot;.selector-text&quot;),a=i.node()&amp;&amp;s.bBox(i.node()).width,o=r.font.size*p,l=u.lineCount(i),d=Math.max(a+10,m.minButtonWidth);t.attr(&quot;transform&quot;,c(v+f,v)),e.attr({x:0,y:0,width:d,height:h}),u.positionText(i,d/2,h/2-(l-1)*o/2+3),f+=d+5}));var y=t._fullLayout._size,x=y.l+y.w*r.x,b=y.t+y.h*(1-r.y),_=&quot;left&quot;;l.isRightAnchor(r)&amp;&amp;(x-=f,_=&quot;right&quot;);l.isCenterAnchor(r)&amp;&amp;(x-=f/2,_=&quot;center&quot;);var w=&quot;top&quot;;l.isBottomAnchor(r)&amp;&amp;(b-=h,w=&quot;bottom&quot;);l.isMiddleAnchor(r)&amp;&amp;(b-=h/2,w=&quot;middle&quot;);f=Math.ceil(f),h=Math.ceil(h),x=Math.round(x),b=Math.round(b),a.autoMargin(t,i+&quot;-range-selector&quot;,{x:r.x,y:r.y,l:f*d[_],r:f*g[_],b:h*g[w],t:h*d[w]}),o.attr(&quot;transform&quot;,c(x,b))}(t,h,f,o._name,r)}))}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../drawing&quot;:665,&quot;./constants&quot;:707,&quot;./get_update_object&quot;:710,d3:169}],710:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t,e){var r=t._name,i={};if(&quot;all&quot;===e.step)i[r+&quot;.autorange&quot;]=!0;else{var a=function(t,e){var r,i=t.range,a=new Date(t.r2l(i[1])),o=e.step,s=e.count;switch(e.stepmode){case&quot;backward&quot;:r=t.l2r(+n.time[o].utc.offset(a,-s));break;case&quot;todate&quot;:var l=n.time[o].utc.offset(a,-s);r=t.l2r(+n.time[o].utc.ceil(l))}var c=i[1];return[r,c]}(t,e);i[r+&quot;.range[0]&quot;]=a[0],i[r+&quot;.range[1]&quot;]=a[1]}return i}},{d3:169}],711:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;rangeselector&quot;,schema:{subplots:{xaxis:{rangeselector:t(&quot;./attributes&quot;)}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;)}},{&quot;./attributes&quot;:706,&quot;./defaults&quot;:708,&quot;./draw&quot;:709}],712:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../color/attributes&quot;);e.exports={bgcolor:{valType:&quot;color&quot;,dflt:n.background,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:n.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;integer&quot;,dflt:0,min:0,editType:&quot;plot&quot;},autorange:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:{&quot;range[0]&quot;:void 0,&quot;range[1]&quot;:void 0}},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;calc&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],editType:&quot;calc&quot;,impliedEdits:{autorange:!1}},thickness:{valType:&quot;number&quot;,dflt:.15,min:0,max:1,editType:&quot;plot&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;}},{&quot;../color/attributes&quot;:642}],713:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;).list,i=t(&quot;../../plots/cartesian/autorange&quot;).getAutoRange,a=t(&quot;./constants&quot;);e.exports=function(t){for(var e=n(t,&quot;x&quot;,!0),r=0;r&lt;e.length;r++){var o=e[r],s=o[a.name];s&amp;&amp;s.visible&amp;&amp;s.autorange&amp;&amp;(s._input.autorange=!0,s._input.range=s.range=i(t,o))}}},{&quot;../../plots/cartesian/autorange&quot;:827,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;./constants&quot;:714}],714:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;rangeslider&quot;,containerClassName:&quot;rangeslider-container&quot;,bgClassName:&quot;rangeslider-bg&quot;,rangePlotClassName:&quot;rangeslider-rangeplot&quot;,maskMinClassName:&quot;rangeslider-mask-min&quot;,maskMaxClassName:&quot;rangeslider-mask-max&quot;,slideBoxClassName:&quot;rangeslider-slidebox&quot;,grabberMinClassName:&quot;rangeslider-grabber-min&quot;,grabAreaMinClassName:&quot;rangeslider-grabarea-min&quot;,handleMinClassName:&quot;rangeslider-handle-min&quot;,grabberMaxClassName:&quot;rangeslider-grabber-max&quot;,grabAreaMaxClassName:&quot;rangeslider-grabarea-max&quot;,handleMaxClassName:&quot;rangeslider-handle-max&quot;,maskMinOppAxisClassName:&quot;rangeslider-mask-min-opp-axis&quot;,maskMaxOppAxisClassName:&quot;rangeslider-mask-max-opp-axis&quot;,maskColor:&quot;rgba(0,0,0,0.4)&quot;,maskOppAxisColor:&quot;rgba(0,0,0,0.2)&quot;,slideBoxFill:&quot;transparent&quot;,slideBoxCursor:&quot;ew-resize&quot;,grabAreaFill:&quot;transparent&quot;,grabAreaCursor:&quot;col-resize&quot;,grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},{}],715:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;./oppaxis_attributes&quot;);e.exports=function(t,e,r){var l=t[r],c=e[r];if(l.rangeslider||e._requestRangeslider[c._id]){n.isPlainObject(l.rangeslider)||(l.rangeslider={});var u,f,h=l.rangeslider,p=i.newContainer(c,&quot;rangeslider&quot;);if(_(&quot;visible&quot;)){_(&quot;bgcolor&quot;,e.plot_bgcolor),_(&quot;bordercolor&quot;),_(&quot;borderwidth&quot;),_(&quot;thickness&quot;),_(&quot;autorange&quot;,!c.isValidRange(h.range)),_(&quot;range&quot;);var d=e._subplots;if(d)for(var g=d.cartesian.filter((function(t){return t.substr(0,t.indexOf(&quot;y&quot;))===a.name2id(r)})).map((function(t){return t.substr(t.indexOf(&quot;y&quot;),t.length)})),m=n.simpleMap(g,a.id2name),v=0;v&lt;m.length;v++){var y=m[v];u=h[y]||{},f=i.newContainer(p,y,&quot;yaxis&quot;);var x,b=e[y];u.range&amp;&amp;b.isValidRange(u.range)&amp;&amp;(x=&quot;fixed&quot;),&quot;match&quot;!==w(&quot;rangemode&quot;,x)&amp;&amp;w(&quot;range&quot;,b.range.slice())}p._input=h}}function _(t,e){return n.coerce(h,p,o,t,e)}function w(t,e){return n.coerce(u,f,s,t,e)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;./attributes&quot;:712,&quot;./oppaxis_attributes&quot;:719}],716:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../drawing&quot;),c=t(&quot;../color&quot;),u=t(&quot;../titles&quot;),f=t(&quot;../../plots/cartesian&quot;),h=t(&quot;../../plots/cartesian/axis_ids&quot;),p=t(&quot;../dragelement&quot;),d=t(&quot;../../lib/setcursor&quot;),g=t(&quot;./constants&quot;);function m(t,e,r,n){var i=o.ensureSingle(t,&quot;rect&quot;,g.bgClassName,(function(t){t.attr({x:0,y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})),a=n.borderwidth%2==0?n.borderwidth:n.borderwidth-1,c=-n._offsetShift,u=l.crispRound(e,n.borderwidth);i.attr({width:n._width+a,height:n._height+a,transform:s(c,c),fill:n.bgcolor,stroke:n.bordercolor,&quot;stroke-width&quot;:u})}function v(t,e,r,n){var i=e._fullLayout;o.ensureSingleById(i._topdefs,&quot;clipPath&quot;,n._clipId,(function(t){t.append(&quot;rect&quot;).attr({x:0,y:0})})).select(&quot;rect&quot;).attr({width:n._width,height:n._height})}function y(t,e,r,i){var s,c=e.calcdata,u=t.selectAll(&quot;g.&quot;+g.rangePlotClassName).data(r._subplotsWith,o.identity);u.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return g.rangePlotClassName+&quot; &quot;+t})).call(l.setClipUrl,i._clipId,e),u.order(),u.exit().remove(),u.each((function(t,o){var l=n.select(this),u=0===o,p=h.getFromId(e,t,&quot;y&quot;),d=p._name,g=i[d],m={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:i.range.slice(),calendar:r.calendar},width:i._width,height:i._height,margin:{t:0,b:0,l:0,r:0}},_context:e._context};r.rangebreaks&amp;&amp;(m.layout.xaxis.rangebreaks=r.rangebreaks),m.layout[d]={type:p.type,domain:[0,1],range:&quot;match&quot;!==g.rangemode?g.range.slice():p.range.slice(),calendar:p.calendar},p.rangebreaks&amp;&amp;(m.layout[d].rangebreaks=p.rangebreaks),a.supplyDefaults(m);var v=m._fullLayout.xaxis,y=m._fullLayout[d];v.clearCalc(),v.setScale(),y.clearCalc(),y.setScale();var x={id:t,plotgroup:l,xaxis:v,yaxis:y,isRangePlot:!0};u?s=x:(x.mainplot=&quot;xy&quot;,x.mainplotinfo=s),f.rangePlot(e,x,function(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i=t[n],a=i[0].trace;a.xaxis+a.yaxis===e&amp;&amp;r.push(i)}return r}(c,t))}))}function x(t,e,r,n,i){(o.ensureSingle(t,&quot;rect&quot;,g.maskMinClassName,(function(t){t.attr({x:0,y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;height&quot;,n._height).call(c.fill,g.maskColor),o.ensureSingle(t,&quot;rect&quot;,g.maskMaxClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;height&quot;,n._height).call(c.fill,g.maskColor),&quot;match&quot;!==i.rangemode)&amp;&amp;(o.ensureSingle(t,&quot;rect&quot;,g.maskMinOppAxisClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;width&quot;,n._width).call(c.fill,g.maskOppAxisColor),o.ensureSingle(t,&quot;rect&quot;,g.maskMaxOppAxisClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;width&quot;,n._width).style(&quot;border-top&quot;,g.maskOppBorder).call(c.fill,g.maskOppAxisColor))}function b(t,e,r,n){e._context.staticPlot||o.ensureSingle(t,&quot;rect&quot;,g.slideBoxClassName,(function(t){t.attr({y:0,cursor:g.slideBoxCursor,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr({height:n._height,fill:g.slideBoxFill})}function _(t,e,r,n){var i=o.ensureSingle(t,&quot;g&quot;,g.grabberMinClassName),a=o.ensureSingle(t,&quot;g&quot;,g.grabberMaxClassName),s={x:0,width:g.handleWidth,rx:g.handleRadius,fill:c.background,stroke:c.defaultLine,&quot;stroke-width&quot;:g.handleStrokeWidth,&quot;shape-rendering&quot;:&quot;crispEdges&quot;},l={y:Math.round(n._height/4),height:Math.round(n._height/2)};o.ensureSingle(i,&quot;rect&quot;,g.handleMinClassName,(function(t){t.attr(s)})).attr(l),o.ensureSingle(a,&quot;rect&quot;,g.handleMaxClassName,(function(t){t.attr(s)})).attr(l);var u={width:g.grabAreaWidth,x:0,y:0,fill:g.grabAreaFill,cursor:e._context.staticPlot?void 0:g.grabAreaCursor};o.ensureSingle(i,&quot;rect&quot;,g.grabAreaMinClassName,(function(t){t.attr(u)})).attr(&quot;height&quot;,n._height),o.ensureSingle(a,&quot;rect&quot;,g.grabAreaMaxClassName,(function(t){t.attr(u)})).attr(&quot;height&quot;,n._height)}e.exports=function(t){for(var e=t._fullLayout,r=e._rangeSliderData,a=0;a&lt;r.length;a++){var l=r[a][g.name];l._clipId=l._id+&quot;-&quot;+e._uid}var c=e._infolayer.selectAll(&quot;g.&quot;+g.containerClassName).data(r,(function(t){return t._name}));c.exit().each((function(t){var r=t[g.name];e._topdefs.select(&quot;#&quot;+r._clipId).remove()})).remove(),0!==r.length&amp;&amp;(c.enter().append(&quot;g&quot;).classed(g.containerClassName,!0).attr(&quot;pointer-events&quot;,&quot;all&quot;),c.each((function(r){var a=n.select(this),l=r[g.name],c=e[h.id2name(r.anchor)],f=l[h.id2name(r.anchor)];if(l.range){var w,T=o.simpleMap(l.range,r.r2l),k=o.simpleMap(r.range,r.r2l);w=k[0]&lt;k[1]?[Math.min(T[0],k[0]),Math.max(T[1],k[1])]:[Math.max(T[0],k[0]),Math.min(T[1],k[1])],l.range=l._input.range=o.simpleMap(w,r.l2r)}r.cleanRange(&quot;rangeslider.range&quot;);var M=e._size,A=r.domain;l._width=M.w*(A[1]-A[0]);var S=Math.round(M.l+M.w*A[0]),E=Math.round(M.t+M.h*(1-r._counterDomainMin)+(&quot;bottom&quot;===r.side?r._depth:0)+l._offsetShift+g.extraPad);a.attr(&quot;transform&quot;,s(S,E)),l._rl=o.simpleMap(l.range,r.r2l);var C=l._rl[0],L=l._rl[1],I=L-C;if(l.p2d=function(t){return t/l._width*I+C},l.d2p=function(t){return(t-C)/I*l._width},r.rangebreaks){var P=r.locateBreaks(C,L);if(P.length){var z,O,D=0;for(z=0;z&lt;P.length;z++)D+=(O=P[z]).max-O.min;var R=l._width/(L-C-D),F=[-R*C];for(z=0;z&lt;P.length;z++)O=P[z],F.push(F[F.length-1]-R*(O.max-O.min));for(l.d2p=function(t){for(var e=F[0],r=0;r&lt;P.length;r++){var n=P[r];if(t&gt;=n.max)e=F[r+1];else if(t&lt;n.min)break}return e+R*t},z=0;z&lt;P.length;z++)(O=P[z]).pmin=l.d2p(O.min),O.pmax=l.d2p(O.max);l.p2d=function(t){for(var e=F[0],r=0;r&lt;P.length;r++){var n=P[r];if(t&gt;=n.pmax)e=F[r+1];else if(t&lt;n.pmin)break}return(t-e)/R}}}if(&quot;match&quot;!==f.rangemode){var B=c.r2l(f.range[0]),N=c.r2l(f.range[1])-B;l.d2pOppAxis=function(t){return(t-B)/N*l._height}}a.call(m,t,r,l).call(v,t,r,l).call(y,t,r,l).call(x,t,r,l,f).call(b,t,r,l).call(_,t,r,l),function(t,e,r,a){if(e._context.staticPlot)return;var s=t.select(&quot;rect.&quot;+g.slideBoxClassName).node(),l=t.select(&quot;rect.&quot;+g.grabAreaMinClassName).node(),c=t.select(&quot;rect.&quot;+g.grabAreaMaxClassName).node();function u(){var u=n.event,f=u.target,h=u.clientX||u.touches[0].clientX,g=h-t.node().getBoundingClientRect().left,m=a.d2p(r._rl[0]),v=a.d2p(r._rl[1]),y=p.coverSlip();function x(t){var u,p,x,b=+(t.clientX||t.touches[0].clientX)-h;switch(f){case s:x=&quot;ew-resize&quot;,u=m+b,p=v+b;break;case l:x=&quot;col-resize&quot;,u=m+b,p=v;break;case c:x=&quot;col-resize&quot;,u=m,p=v+b;break;default:x=&quot;ew-resize&quot;,u=g,p=g+b}if(p&lt;u){var _=p;p=u,u=_}a._pixelMin=u,a._pixelMax=p,d(n.select(y),x),function(t,e,r,n){function a(t){return r.l2r(o.constrain(t,n._rl[0],n._rl[1]))}var s=a(n.p2d(n._pixelMin)),l=a(n.p2d(n._pixelMax));window.requestAnimationFrame((function(){i.call(&quot;_guiRelayout&quot;,e,r._name+&quot;.range&quot;,[s,l])}))}(0,e,r,a)}function b(){y.removeEventListener(&quot;mousemove&quot;,x),y.removeEventListener(&quot;mouseup&quot;,b),this.removeEventListener(&quot;touchmove&quot;,x),this.removeEventListener(&quot;touchend&quot;,b),o.removeElement(y)}this.addEventListener(&quot;touchmove&quot;,x),this.addEventListener(&quot;touchend&quot;,b),y.addEventListener(&quot;mousemove&quot;,x),y.addEventListener(&quot;mouseup&quot;,b)}t.on(&quot;mousedown&quot;,u),t.on(&quot;touchstart&quot;,u)}(a,t,r,l),function(t,e,r,n,i,a){var l=g.handleWidth/2;function c(t){return o.constrain(t,0,n._width)}function u(t){return o.constrain(t,0,n._height)}function f(t){return o.constrain(t,-l,n._width+l)}var h=c(n.d2p(r._rl[0])),p=c(n.d2p(r._rl[1]));if(t.select(&quot;rect.&quot;+g.slideBoxClassName).attr(&quot;x&quot;,h).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.maskMinClassName).attr(&quot;width&quot;,h),t.select(&quot;rect.&quot;+g.maskMaxClassName).attr(&quot;x&quot;,p).attr(&quot;width&quot;,n._width-p),&quot;match&quot;!==a.rangemode){var d=n._height-u(n.d2pOppAxis(i._rl[1])),m=n._height-u(n.d2pOppAxis(i._rl[0]));t.select(&quot;rect.&quot;+g.maskMinOppAxisClassName).attr(&quot;x&quot;,h).attr(&quot;height&quot;,d).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.maskMaxOppAxisClassName).attr(&quot;x&quot;,h).attr(&quot;y&quot;,m).attr(&quot;height&quot;,n._height-m).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.slideBoxClassName).attr(&quot;y&quot;,d).attr(&quot;height&quot;,m-d)}var v=Math.round(f(h-l))-.5,y=Math.round(f(p-l))+.5;t.select(&quot;g.&quot;+g.grabberMinClassName).attr(&quot;transform&quot;,s(v,.5)),t.select(&quot;g.&quot;+g.grabberMaxClassName).attr(&quot;transform&quot;,s(y,.5))}(a,0,r,l,c,f),&quot;bottom&quot;===r.side&amp;&amp;u.draw(t,r._id+&quot;title&quot;,{propContainer:r,propName:r._name+&quot;.title&quot;,placeholder:e._dfltTitle.x,attributes:{x:r._offset+r._length/2,y:E+l._height+l._offsetShift+10+1.5*r.title.font.size,&quot;text-anchor&quot;:&quot;middle&quot;}})})))}},{&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../plots/cartesian&quot;:841,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../titles&quot;:738,&quot;./constants&quot;:714,d3:169}],717:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;),i=t(&quot;../../lib/svg_text_utils&quot;),a=t(&quot;./constants&quot;),o=t(&quot;../../constants/alignment&quot;).LINE_SPACING,s=a.name;function l(t){var e=t&amp;&amp;t[s];return e&amp;&amp;e.visible}r.isVisible=l,r.makeData=function(t){var e=n.list({_fullLayout:t},&quot;x&quot;,!0),r=t.margin,i=[];if(!t._has(&quot;gl2d&quot;))for(var a=0;a&lt;e.length;a++){var o=e[a];if(l(o)){i.push(o);var c=o[s];c._id=s+o._id,c._height=(t.height-r.b-r.t)*c.thickness,c._offsetShift=Math.floor(c.borderwidth/2)}}t._rangeSliderData=i},r.autoMarginOpts=function(t,e){var r=t._fullLayout,n=e[s],l=e._id.charAt(0),c=0,u=0;&quot;bottom&quot;===e.side&amp;&amp;(c=e._depth,e.title.text!==r._dfltTitle[l]&amp;&amp;(u=1.5*e.title.font.size+10+n._offsetShift,u+=(e.title.text.match(i.BR_TAG_ALL)||[]).length*e.title.font.size*o));return{x:0,y:e._counterDomainMin,l:0,r:0,t:0,b:n._height+c+Math.max(r.margin.b,u),pad:a.extraPad+2*n._offsetShift}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;./constants&quot;:714}],718:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./oppaxis_attributes&quot;),o=t(&quot;./helpers&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;rangeslider&quot;,schema:{subplots:{xaxis:{rangeslider:n.extendFlat({},i,{yaxis:a})}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:t(&quot;./draw&quot;),isVisible:o.isVisible,makeData:o.makeData,autoMarginOpts:o.autoMarginOpts}},{&quot;../../lib&quot;:778,&quot;./attributes&quot;:712,&quot;./calc_autorange&quot;:713,&quot;./defaults&quot;:715,&quot;./draw&quot;:716,&quot;./helpers&quot;:717,&quot;./oppaxis_attributes&quot;:719}],719:[function(t,e,r){&quot;use strict&quot;;e.exports={_isSubplotObj:!0,rangemode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;fixed&quot;,&quot;match&quot;],dflt:&quot;match&quot;,editType:&quot;calc&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;},{valType:&quot;any&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},editType:&quot;calc&quot;}},{}],720:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/attributes&quot;),i=t(&quot;../../traces/scatter/attributes&quot;).line,a=t(&quot;../drawing/attributes&quot;).dash,o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=s(&quot;shape&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;circle&quot;,&quot;rect&quot;,&quot;path&quot;,&quot;line&quot;],editType:&quot;calc+arraydraw&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;arraydraw&quot;},xref:o({},n.xref,{}),xsizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;pixel&quot;],dflt:&quot;scaled&quot;,editType:&quot;calc+arraydraw&quot;},xanchor:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},x0:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},x1:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},yref:o({},n.yref,{}),ysizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;pixel&quot;],dflt:&quot;scaled&quot;,editType:&quot;calc+arraydraw&quot;},yanchor:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},y0:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},y1:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},path:{valType:&quot;string&quot;,editType:&quot;calc+arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},line:{color:o({},i.color,{editType:&quot;arraydraw&quot;}),width:o({},i.width,{editType:&quot;calc+arraydraw&quot;}),dash:o({},a,{editType:&quot;arraydraw&quot;}),editType:&quot;calc+arraydraw&quot;},fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},fillrule:{valType:&quot;enumerated&quot;,values:[&quot;evenodd&quot;,&quot;nonzero&quot;],dflt:&quot;evenodd&quot;,editType:&quot;arraydraw&quot;},editable:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc+arraydraw&quot;},editType:&quot;arraydraw&quot;})},{&quot;../../constants/axis_placeable_objects&quot;:746,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../../traces/scatter/attributes&quot;:1187,&quot;../annotations/attributes&quot;:626,&quot;../drawing/attributes&quot;:664}],721:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;./constants&quot;),o=t(&quot;./helpers&quot;);function s(t){return c(t.line.width,t.xsizemode,t.x0,t.x1,t.path,!1)}function l(t){return c(t.line.width,t.ysizemode,t.y0,t.y1,t.path,!0)}function c(t,e,r,i,s,l){var c=t/2,u=l;if(&quot;pixel&quot;===e){var f=s?o.extractPathCoords(s,l?a.paramIsY:a.paramIsX):[r,i],h=n.aggNums(Math.max,null,f),p=n.aggNums(Math.min,null,f),d=p&lt;0?Math.abs(p)+c:c,g=h&gt;0?h+c:c;return{ppad:c,ppadplus:u?d:g,ppadminus:u?g:d}}return{ppad:c}}function u(t,e,r,n,i){var s=&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?t.r2c:t.d2c;if(void 0!==e)return[s(e),s(r)];if(n){var l,c,u,f,h=1/0,p=-1/0,d=n.match(a.segmentRE);for(&quot;date&quot;===t.type&amp;&amp;(s=o.decodeDate(s)),l=0;l&lt;d.length;l++)void 0!==(c=i[d[l].charAt(0)].drawn)&amp;&amp;(!(u=d[l].substr(1).match(a.paramRE))||u.length&lt;c||((f=s(u[c]))&lt;h&amp;&amp;(h=f),f&gt;p&amp;&amp;(p=f)));return p&gt;=h?[h,p]:void 0}}e.exports=function(t){var e=t._fullLayout,r=n.filterVisible(e.shapes);if(r.length&amp;&amp;t._fullData.length)for(var o=0;o&lt;r.length;o++){var c,f,h=r[o];h._extremes={};var p=i.getRefType(h.xref),d=i.getRefType(h.yref);if(&quot;paper&quot;!==h.xref&amp;&amp;&quot;domain&quot;!==p){var g=&quot;pixel&quot;===h.xsizemode?h.xanchor:h.x0,m=&quot;pixel&quot;===h.xsizemode?h.xanchor:h.x1;(f=u(c=i.getFromId(t,h.xref),g,m,h.path,a.paramIsX))&amp;&amp;(h._extremes[c._id]=i.findExtremes(c,f,s(h)))}if(&quot;paper&quot;!==h.yref&amp;&amp;&quot;domain&quot;!==d){var v=&quot;pixel&quot;===h.ysizemode?h.yanchor:h.y0,y=&quot;pixel&quot;===h.ysizemode?h.yanchor:h.y1;(f=u(c=i.getFromId(t,h.yref),v,y,h.path,a.paramIsY))&amp;&amp;(h._extremes[c._id]=i.findExtremes(c,f,l(h)))}}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./constants&quot;:722,&quot;./helpers&quot;:731}],722:[function(t,e,r){&quot;use strict&quot;;e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},{}],723:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;./helpers&quot;);function l(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}if(a(&quot;visible&quot;)){var l=a(&quot;path&quot;),c=a(&quot;type&quot;,l?&quot;path&quot;:&quot;rect&quot;);&quot;path&quot;!==e.type&amp;&amp;delete e.path,a(&quot;editable&quot;),a(&quot;layer&quot;),a(&quot;opacity&quot;),a(&quot;fillcolor&quot;),a(&quot;fillrule&quot;),a(&quot;line.width&quot;)&amp;&amp;(a(&quot;line.color&quot;),a(&quot;line.dash&quot;));for(var u=a(&quot;xsizemode&quot;),f=a(&quot;ysizemode&quot;),h=[&quot;x&quot;,&quot;y&quot;],p=0;p&lt;2;p++){var d,g,m,v=h[p],y=v+&quot;anchor&quot;,x=&quot;x&quot;===v?u:f,b={_fullLayout:r},_=i.coerceRef(t,e,b,v,void 0,&quot;paper&quot;);if(&quot;range&quot;===i.getRefType(_)?((d=i.getFromId(b,_))._shapeIndices.push(e._index),m=s.rangeToShapePosition(d),g=s.shapePositionToRange(d)):g=m=n.identity,&quot;path&quot;!==c){var w=v+&quot;0&quot;,T=v+&quot;1&quot;,k=t[w],M=t[T];t[w]=g(t[w],!0),t[T]=g(t[T],!0),&quot;pixel&quot;===x?(a(w,0),a(T,10)):(i.coercePosition(e,b,a,_,w,.25),i.coercePosition(e,b,a,_,T,.75)),e[w]=m(e[w]),e[T]=m(e[T]),t[w]=k,t[T]=M}if(&quot;pixel&quot;===x){var A=t[y];t[y]=g(t[y],!0),i.coercePosition(e,b,a,_,y,.25),e[y]=m(e[y]),t[y]=A}}&quot;path&quot;===c?a(&quot;path&quot;):n.noneOrAll(t,e,[&quot;x0&quot;,&quot;x1&quot;,&quot;y0&quot;,&quot;y1&quot;])}}e.exports=function(t,e){a(t,e,{name:&quot;shapes&quot;,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:720,&quot;./helpers&quot;:731}],724:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;./draw_newshape/helpers&quot;).readPaths,s=t(&quot;./draw_newshape/display_outlines&quot;),l=t(&quot;../../plots/cartesian/handle_outline&quot;).clearOutlineControllers,c=t(&quot;../color&quot;),u=t(&quot;../drawing&quot;),f=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,h=t(&quot;../dragelement&quot;),p=t(&quot;../../lib/setcursor&quot;),d=t(&quot;./constants&quot;),g=t(&quot;./helpers&quot;);function m(t){var e=t._fullLayout;for(var r in e._shapeUpperLayer.selectAll(&quot;path&quot;).remove(),e._shapeLowerLayer.selectAll(&quot;path&quot;).remove(),e._plots){var n=e._plots[r].shapelayer;n&amp;&amp;n.selectAll(&quot;path&quot;).remove()}for(var i=0;i&lt;e.shapes.length;i++)e.shapes[i].visible&amp;&amp;x(t,i)}function v(t){return!!t._fullLayout._drawing}function y(t){return!t._context.edits.shapePosition}function x(t,e){t._fullLayout._paperdiv.selectAll('.shapelayer [data-index=&quot;'+e+'&quot;]').remove();var r=g.makeOptionsAndPlotinfo(t,e),l=r.options,x=r.plotinfo;if(l._input&amp;&amp;!1!==l.visible)if(&quot;below&quot;!==l.layer)k(t._fullLayout._shapeUpperLayer);else if(&quot;paper&quot;===l.xref||&quot;paper&quot;===l.yref)k(t._fullLayout._shapeLowerLayer);else{if(x._hadPlotinfo)k((x.mainplotinfo||x).shapelayer);else k(t._fullLayout._shapeLowerLayer)}function k(r){var k=_(t,l),M={&quot;data-index&quot;:e,&quot;fill-rule&quot;:l.fillrule,d:k},A=l.opacity,S=l.fillcolor,E=l.line.width?l.line.color:&quot;rgba(0,0,0,0)&quot;,C=l.line.width,L=l.line.dash;C||!0!==l.editable||(C=5,L=&quot;solid&quot;);var I=&quot;Z&quot;!==k[k.length-1],P=y(t)&amp;&amp;l.editable&amp;&amp;t._fullLayout._activeShapeIndex===e;P&amp;&amp;(S=I?&quot;rgba(0,0,0,0)&quot;:t._fullLayout.activeshape.fillcolor,A=t._fullLayout.activeshape.opacity);var z,O=r.append(&quot;path&quot;).attr(M).style(&quot;opacity&quot;,A).call(c.stroke,E).call(c.fill,S).call(u.dashLine,L,C);if(b(O,t,l),(P||t._context.edits.shapePosition)&amp;&amp;(z=f(t.layout,&quot;shapes&quot;,l)),P){O.style({cursor:&quot;move&quot;});var D={element:O.node(),plotinfo:x,gd:t,editHelpers:z,isActiveShape:!0},R=o(k,t);s(R,O,D)}else t._context.edits.shapePosition?function(t,e,r,o,s,l){var c,f,m,y,x,T,k,M,A,S,E,C,L,I,P,z,O=&quot;pixel&quot;===r.xsizemode,D=&quot;pixel&quot;===r.ysizemode,R=&quot;line&quot;===r.type,F=&quot;path&quot;===r.type,B=l.modifyItem,N=a.getFromId(t,r.xref),j=a.getRefType(r.xref),U=a.getFromId(t,r.yref),V=a.getRefType(r.yref),q=g.getDataToPixel(t,N,!1,j),H=g.getDataToPixel(t,U,!0,V),G=g.getPixelToData(t,N,!1,j),Y=g.getPixelToData(t,U,!0,V),W=R?function(){var t=Math.max(r.line.width,10),n=s.append(&quot;g&quot;).attr(&quot;data-index&quot;,o);n.append(&quot;path&quot;).attr(&quot;d&quot;,e.attr(&quot;d&quot;)).style({cursor:&quot;move&quot;,&quot;stroke-width&quot;:t,&quot;stroke-opacity&quot;:&quot;0&quot;});var i={&quot;fill-opacity&quot;:&quot;0&quot;},a=Math.max(t/2,10);return n.append(&quot;circle&quot;).attr({&quot;data-line-point&quot;:&quot;start-point&quot;,cx:O?q(r.xanchor)+r.x0:q(r.x0),cy:D?H(r.yanchor)-r.y0:H(r.y0),r:a}).style(i).classed(&quot;cursor-grab&quot;,!0),n.append(&quot;circle&quot;).attr({&quot;data-line-point&quot;:&quot;end-point&quot;,cx:O?q(r.xanchor)+r.x1:q(r.x1),cy:D?H(r.yanchor)-r.y1:H(r.y1),r:a}).style(i).classed(&quot;cursor-grab&quot;,!0),n}():e,X={element:W.node(),gd:t,prepFn:function(n){if(v(t))return;O&amp;&amp;(x=q(r.xanchor));D&amp;&amp;(T=H(r.yanchor));&quot;path&quot;===r.type?P=r.path:(c=O?r.x0:q(r.x0),f=D?r.y0:H(r.y0),m=O?r.x1:q(r.x1),y=D?r.y1:H(r.y1));c&lt;m?(A=c,L=&quot;x0&quot;,S=m,I=&quot;x1&quot;):(A=m,L=&quot;x1&quot;,S=c,I=&quot;x0&quot;);!D&amp;&amp;f&lt;y||D&amp;&amp;f&gt;y?(k=f,E=&quot;y0&quot;,M=y,C=&quot;y1&quot;):(k=y,E=&quot;y1&quot;,M=f,C=&quot;y0&quot;);Z(n),Q(s,r),function(t,e,r){var n=e.xref,i=e.yref,o=a.getFromId(r,n),s=a.getFromId(r,i),l=&quot;&quot;;&quot;paper&quot;===n||o.autorange||(l+=n);&quot;paper&quot;===i||s.autorange||(l+=i);u.setClipUrl(t,l?&quot;clip&quot;+r._fullLayout._uid+l:null,r)}(e,r,t),X.moveFn=&quot;move&quot;===z?J:K,X.altKey=n.altKey},doneFn:function(){if(v(t))return;p(e),$(s),b(e,t,r),n.call(&quot;_guiRelayout&quot;,t,l.getUpdateObj())},clickFn:function(){if(v(t))return;$(s)}};function Z(r){if(v(t))z=null;else if(R)z=&quot;path&quot;===r.target.tagName?&quot;move&quot;:&quot;start-point&quot;===r.target.attributes[&quot;data-line-point&quot;].value?&quot;resize-over-start-point&quot;:&quot;resize-over-end-point&quot;;else{var n=X.element.getBoundingClientRect(),i=n.right-n.left,a=n.bottom-n.top,o=r.clientX-n.left,s=r.clientY-n.top,l=!F&amp;&amp;i&gt;10&amp;&amp;a&gt;10&amp;&amp;!r.shiftKey?h.getCursor(o/i,1-s/a):&quot;move&quot;;p(e,l),z=l.split(&quot;-&quot;)[0]}}function J(n,i){if(&quot;path&quot;===r.type){var a=function(t){return t},o=a,l=a;O?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(o=function(t){return G(q(t)+n)},N&amp;&amp;&quot;date&quot;===N.type&amp;&amp;(o=g.encodeDate(o))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(l=function(t){return Y(H(t)+i)},U&amp;&amp;&quot;date&quot;===U.type&amp;&amp;(l=g.encodeDate(l))),B(&quot;path&quot;,r.path=w(P,o,l))}else O?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(B(&quot;x0&quot;,r.x0=G(c+n)),B(&quot;x1&quot;,r.x1=G(m+n))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(B(&quot;y0&quot;,r.y0=Y(f+i)),B(&quot;y1&quot;,r.y1=Y(y+i)));e.attr(&quot;d&quot;,_(t,r)),Q(s,r)}function K(n,i){if(F){var a=function(t){return t},o=a,l=a;O?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(o=function(t){return G(q(t)+n)},N&amp;&amp;&quot;date&quot;===N.type&amp;&amp;(o=g.encodeDate(o))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(l=function(t){return Y(H(t)+i)},U&amp;&amp;&quot;date&quot;===U.type&amp;&amp;(l=g.encodeDate(l))),B(&quot;path&quot;,r.path=w(P,o,l))}else if(R){if(&quot;resize-over-start-point&quot;===z){var u=c+n,h=D?f-i:f+i;B(&quot;x0&quot;,r.x0=O?u:G(u)),B(&quot;y0&quot;,r.y0=D?h:Y(h))}else if(&quot;resize-over-end-point&quot;===z){var p=m+n,d=D?y-i:y+i;B(&quot;x1&quot;,r.x1=O?p:G(p)),B(&quot;y1&quot;,r.y1=D?d:Y(d))}}else{var v=function(t){return-1!==z.indexOf(t)},b=v(&quot;n&quot;),j=v(&quot;s&quot;),V=v(&quot;w&quot;),W=v(&quot;e&quot;),X=b?k+i:k,Z=j?M+i:M,J=V?A+n:A,K=W?S+n:S;D&amp;&amp;(b&amp;&amp;(X=k-i),j&amp;&amp;(Z=M-i)),(!D&amp;&amp;Z-X&gt;10||D&amp;&amp;X-Z&gt;10)&amp;&amp;(B(E,r[E]=D?X:Y(X)),B(C,r[C]=D?Z:Y(Z))),K-J&gt;10&amp;&amp;(B(L,r[L]=O?J:G(J)),B(I,r[I]=O?K:G(K)))}e.attr(&quot;d&quot;,_(t,r)),Q(s,r)}function Q(t,e){(O||D)&amp;&amp;function(){var r=&quot;path&quot;!==e.type,n=t.selectAll(&quot;.visual-cue&quot;).data([0]);n.enter().append(&quot;path&quot;).attr({fill:&quot;#fff&quot;,&quot;fill-rule&quot;:&quot;evenodd&quot;,stroke:&quot;#000&quot;,&quot;stroke-width&quot;:1}).classed(&quot;visual-cue&quot;,!0);var a=q(O?e.xanchor:i.midRange(r?[e.x0,e.x1]:g.extractPathCoords(e.path,d.paramIsX))),o=H(D?e.yanchor:i.midRange(r?[e.y0,e.y1]:g.extractPathCoords(e.path,d.paramIsY)));if(a=g.roundPositionForSharpStrokeRendering(a,1),o=g.roundPositionForSharpStrokeRendering(o,1),O&amp;&amp;D){var s=&quot;M&quot;+(a-1-1)+&quot;,&quot;+(o-1-1)+&quot;h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z&quot;;n.attr(&quot;d&quot;,s)}else if(O){var l=&quot;M&quot;+(a-1-1)+&quot;,&quot;+(o-9-1)+&quot;v18 h2 v-18 Z&quot;;n.attr(&quot;d&quot;,l)}else{var c=&quot;M&quot;+(a-9-1)+&quot;,&quot;+(o-1-1)+&quot;h18 v2 h-18 Z&quot;;n.attr(&quot;d&quot;,c)}}()}function $(t){t.selectAll(&quot;.visual-cue&quot;).remove()}h.init(X),W.node().onmousemove=Z}(t,O,l,e,r,z):!0===l.editable&amp;&amp;O.style(&quot;pointer-events&quot;,I||c.opacity(S)*A&lt;=.5?&quot;stroke&quot;:&quot;all&quot;);O.node().addEventListener(&quot;click&quot;,(function(){return function(t,e){if(!y(t))return;var r=+e.node().getAttribute(&quot;data-index&quot;);if(r&gt;=0){if(r===t._fullLayout._activeShapeIndex)return void T(t);t._fullLayout._activeShapeIndex=r,t._fullLayout._deactivateShape=T,m(t)}}(t,O)}))}}function b(t,e,r){var n=(r.xref+r.yref).replace(/paper/g,&quot;&quot;).replace(/[xyz][1-9]* *domain/g,&quot;&quot;);u.setClipUrl(t,n?&quot;clip&quot;+e._fullLayout._uid+n:null,e)}function _(t,e){var r,n,o,s,l,c,u,f,h=e.type,p=a.getRefType(e.xref),m=a.getRefType(e.yref),v=a.getFromId(t,e.xref),y=a.getFromId(t,e.yref),x=t._fullLayout._size;if(v?&quot;domain&quot;===p?n=function(t){return v._offset+v._length*t}:(r=g.shapePositionToRange(v),n=function(t){return v._offset+v.r2p(r(t,!0))}):n=function(t){return x.l+x.w*t},y?&quot;domain&quot;===m?s=function(t){return y._offset+y._length*(1-t)}:(o=g.shapePositionToRange(y),s=function(t){return y._offset+y.r2p(o(t,!0))}):s=function(t){return x.t+x.h*(1-t)},&quot;path&quot;===h)return v&amp;&amp;&quot;date&quot;===v.type&amp;&amp;(n=g.decodeDate(n)),y&amp;&amp;&quot;date&quot;===y.type&amp;&amp;(s=g.decodeDate(s)),function(t,e,r){var n=t.path,a=t.xsizemode,o=t.ysizemode,s=t.xanchor,l=t.yanchor;return n.replace(d.segmentRE,(function(t){var n=0,c=t.charAt(0),u=d.paramIsX[c],f=d.paramIsY[c],h=d.numParams[c],p=t.substr(1).replace(d.paramRE,(function(t){return u[n]?t=&quot;pixel&quot;===a?e(s)+Number(t):e(t):f[n]&amp;&amp;(t=&quot;pixel&quot;===o?r(l)-Number(t):r(t)),++n&gt;h&amp;&amp;(t=&quot;X&quot;),t}));return n&gt;h&amp;&amp;(p=p.replace(/[\s,]*X.*/,&quot;&quot;),i.log(&quot;Ignoring extra params in segment &quot;+t)),c+p}))}(e,n,s);if(&quot;pixel&quot;===e.xsizemode){var b=n(e.xanchor);l=b+e.x0,c=b+e.x1}else l=n(e.x0),c=n(e.x1);if(&quot;pixel&quot;===e.ysizemode){var _=s(e.yanchor);u=_-e.y0,f=_-e.y1}else u=s(e.y0),f=s(e.y1);if(&quot;line&quot;===h)return&quot;M&quot;+l+&quot;,&quot;+u+&quot;L&quot;+c+&quot;,&quot;+f;if(&quot;rect&quot;===h)return&quot;M&quot;+l+&quot;,&quot;+u+&quot;H&quot;+c+&quot;V&quot;+f+&quot;H&quot;+l+&quot;Z&quot;;var w=(l+c)/2,T=(u+f)/2,k=Math.abs(w-l),M=Math.abs(T-u),A=&quot;A&quot;+k+&quot;,&quot;+M,S=w+k+&quot;,&quot;+T;return&quot;M&quot;+S+A+&quot; 0 1,1 &quot;+(w+&quot;,&quot;+(T-M))+A+&quot; 0 0,1 &quot;+S+&quot;Z&quot;}function w(t,e,r){return t.replace(d.segmentRE,(function(t){var n=0,i=t.charAt(0),a=d.paramIsX[i],o=d.paramIsY[i],s=d.numParams[i];return i+t.substr(1).replace(d.paramRE,(function(t){return n&gt;=s||(a[n]?t=e(t):o[n]&amp;&amp;(t=r(t)),n++),t}))}))}function T(t){y(t)&amp;&amp;(t._fullLayout._activeShapeIndex&gt;=0&amp;&amp;(l(t),delete t._fullLayout._activeShapeIndex,m(t)))}e.exports={draw:m,drawOne:x,eraseActiveShape:function(t){if(!y(t))return;l(t);var e=t._fullLayout._activeShapeIndex,r=(t.layout||{}).shapes||[];if(e&lt;r.length){for(var i=[],a=0;a&lt;r.length;a++)a!==e&amp;&amp;i.push(r[a]);delete t._fullLayout._activeShapeIndex,n.call(&quot;_guiRelayout&quot;,t,{shapes:i})}}}},{&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/handle_outline&quot;:838,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;./constants&quot;:722,&quot;./draw_newshape/display_outlines&quot;:728,&quot;./draw_newshape/helpers&quot;:729,&quot;./helpers&quot;:731}],725:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../drawing/attributes&quot;).dash,i=t(&quot;../../../lib/extend&quot;).extendFlat;e.exports={newshape:{line:{color:{valType:&quot;color&quot;,editType:&quot;none&quot;},width:{valType:&quot;number&quot;,min:0,dflt:4,editType:&quot;none&quot;},dash:i({},n,{dflt:&quot;solid&quot;,editType:&quot;none&quot;}),editType:&quot;none&quot;},fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;none&quot;},fillrule:{valType:&quot;enumerated&quot;,values:[&quot;evenodd&quot;,&quot;nonzero&quot;],dflt:&quot;evenodd&quot;,editType:&quot;none&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;none&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;none&quot;},drawdirection:{valType:&quot;enumerated&quot;,values:[&quot;ortho&quot;,&quot;horizontal&quot;,&quot;vertical&quot;,&quot;diagonal&quot;],dflt:&quot;diagonal&quot;,editType:&quot;none&quot;},editType:&quot;none&quot;},activeshape:{fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgb(255,0,255)&quot;,editType:&quot;none&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;none&quot;},editType:&quot;none&quot;}}},{&quot;../../../lib/extend&quot;:768,&quot;../../drawing/attributes&quot;:664}],726:[function(t,e,r){&quot;use strict&quot;;e.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},{}],727:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../color&quot;);e.exports=function(t,e,r){if(r(&quot;newshape.drawdirection&quot;),r(&quot;newshape.layer&quot;),r(&quot;newshape.fillcolor&quot;),r(&quot;newshape.fillrule&quot;),r(&quot;newshape.opacity&quot;),r(&quot;newshape.line.width&quot;)){var i=(t||{}).plot_bgcolor||&quot;#FFF&quot;;r(&quot;newshape.line.color&quot;,n.contrast(i)),r(&quot;newshape.line.dash&quot;)}r(&quot;activeshape.fillcolor&quot;),r(&quot;activeshape.opacity&quot;)}},{&quot;../../color&quot;:643}],728:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../dragelement&quot;),i=t(&quot;../../dragelement/helpers&quot;).drawMode,a=t(&quot;../../../registry&quot;),o=t(&quot;./constants&quot;),s=o.i000,l=o.i090,c=o.i180,u=o.i270,f=t(&quot;../../../plots/cartesian/handle_outline&quot;).clearOutlineControllers,h=t(&quot;./helpers&quot;),p=h.pointsShapeRectangle,d=h.pointsShapeEllipse,g=h.writePaths,m=t(&quot;./newshapes&quot;);e.exports=function t(e,r,o,h){h||(h=0);var v=o.gd;function y(){t(e,r,o,h++),d(e[0])&amp;&amp;x({redrawing:!0})}function x(t){o.isActiveShape=!1;var e=m(r,o);Object.keys(e).length&amp;&amp;a.call((t||{}).redrawing?&quot;relayout&quot;:&quot;_guiRelayout&quot;,v,e)}var b,_,w,T,k,M=o.isActiveShape,A=v._fullLayout._zoomlayer,S=o.dragmode;(i(S)?v._fullLayout._drawing=!0:v._fullLayout._activeShapeIndex&gt;=0&amp;&amp;f(v),r.attr(&quot;d&quot;,g(e)),M&amp;&amp;!h)&amp;&amp;(k=function(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r];t[r]=[];for(var i=0;i&lt;n.length;i++){t[r][i]=[];for(var a=0;a&lt;n[i].length;a++)t[r][i][a]=n[i][a]}}return t}([],e),function(t){b=[];for(var r=0;r&lt;e.length;r++){var i=e[r],a=!p(i)&amp;&amp;d(i);b[r]=[];for(var o=0;o&lt;i.length;o++)if(&quot;Z&quot;!==i[o][0]&amp;&amp;(!a||o===s||o===l||o===c||o===u)){var f=i[o][1],h=i[o][2],g=t.append(&quot;circle&quot;).classed(&quot;cursor-grab&quot;,!0).attr(&quot;data-i&quot;,r).attr(&quot;data-j&quot;,o).attr(&quot;cx&quot;,f).attr(&quot;cy&quot;,h).attr(&quot;r&quot;,4).style({&quot;mix-blend-mode&quot;:&quot;luminosity&quot;,fill:&quot;black&quot;,stroke:&quot;white&quot;,&quot;stroke-width&quot;:1});b[r][o]={element:g.node(),gd:v,prepFn:E,doneFn:L,clickFn:I},n.init(b[r][o])}}}(A.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;outline-controllers&quot;)),function(){if(_=[],!e.length)return;_[0]={element:r[0][0],gd:v,prepFn:z,doneFn:O},n.init(_[0])}());function E(t){w=+t.srcElement.getAttribute(&quot;data-i&quot;),T=+t.srcElement.getAttribute(&quot;data-j&quot;),b[w][T].moveFn=C}function C(t,r){if(e.length){var n=k[w][T][1],i=k[w][T][2],a=e[w],o=a.length;if(p(a)){for(var s=0;s&lt;o;s++)if(s!==T){var l=a[s];l[1]===a[T][1]&amp;&amp;(l[1]=n+t),l[2]===a[T][2]&amp;&amp;(l[2]=i+r)}if(a[T][1]=n+t,a[T][2]=i+r,!p(a))for(var c=0;c&lt;o;c++)for(var u=0;u&lt;a[c].length;u++)a[c][u]=k[w][c][u]}else a[T][1]=n+t,a[T][2]=i+r;y()}}function L(){x()}function I(t,r){if(2===t){w=+r.srcElement.getAttribute(&quot;data-i&quot;),T=+r.srcElement.getAttribute(&quot;data-j&quot;);var n=e[w];p(n)||d(n)||function(){if(e.length&amp;&amp;e[w]&amp;&amp;e[w].length){for(var t=[],r=0;r&lt;e[w].length;r++)r!==T&amp;&amp;t.push(e[w][r]);t.length&gt;1&amp;&amp;(2!==t.length||&quot;Z&quot;!==t[1][0])&amp;&amp;(0===T&amp;&amp;(t[0][0]=&quot;M&quot;),e[w]=t,y(),x())}}()}}function P(t,r){!function(t,r){if(e.length)for(var n=0;n&lt;e.length;n++)for(var i=0;i&lt;e[n].length;i++)for(var a=0;a+2&lt;e[n][i].length;a+=2)e[n][i][a+1]=k[n][i][a+1]+t,e[n][i][a+2]=k[n][i][a+2]+r}(t,r),y()}function z(t){(w=+t.srcElement.getAttribute(&quot;data-i&quot;))||(w=0),_[w].moveFn=P}function O(){x()}}},{&quot;../../../plots/cartesian/handle_outline&quot;:838,&quot;../../../registry&quot;:911,&quot;../../dragelement&quot;:662,&quot;../../dragelement/helpers&quot;:661,&quot;./constants&quot;:726,&quot;./helpers&quot;:729,&quot;./newshapes&quot;:730}],729:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-svg-path&quot;),i=t(&quot;./constants&quot;),a=i.CIRCLE_SIDES,o=i.SQRT2,s=t(&quot;../../../plots/cartesian/helpers&quot;),l=s.p2r,c=s.r2p,u=[0,3,4,5,6,1,2],f=[0,3,4,1,2];function h(t,e){return Math.abs(t-e)&lt;=1e-6}function p(t,e){var r=e[1]-t[1],n=e[2]-t[2];return Math.sqrt(r*r+n*n)}r.writePaths=function(t){var e=t.length;if(!e)return&quot;M0,0Z&quot;;for(var r=&quot;&quot;,n=0;n&lt;e;n++)for(var i=t[n].length,a=0;a&lt;i;a++){var o=t[n][a][0];if(&quot;Z&quot;===o)r+=&quot;Z&quot;;else for(var s=t[n][a].length,l=0;l&lt;s;l++){var c=l;&quot;Q&quot;===o||&quot;S&quot;===o?c=f[l]:&quot;C&quot;===o&amp;&amp;(c=u[l]),r+=t[n][a][c],l&gt;0&amp;&amp;l&lt;s-1&amp;&amp;(r+=&quot;,&quot;)}}return r},r.readPaths=function(t,e,r,i){var o,s,u,f=n(t),h=[],p=-1,d=0,g=0,m=function(){s=d,u=g};m();for(var v=0;v&lt;f.length;v++){var y,x,b,_,w=[],T=f[v][0],k=T;switch(T){case&quot;M&quot;:p++,h[p]=[],d=+f[v][1],g=+f[v][2],w.push([k,d,g]),m();break;case&quot;Q&quot;:case&quot;S&quot;:y=+f[v][1],b=+f[v][2],d=+f[v][3],g=+f[v][4],w.push([k,d,g,y,b]);break;case&quot;C&quot;:y=+f[v][1],b=+f[v][2],x=+f[v][3],_=+f[v][4],d=+f[v][5],g=+f[v][6],w.push([k,d,g,y,b,x,_]);break;case&quot;T&quot;:case&quot;L&quot;:d=+f[v][1],g=+f[v][2],w.push([k,d,g]);break;case&quot;H&quot;:k=&quot;L&quot;,d=+f[v][1],w.push([k,d,g]);break;case&quot;V&quot;:k=&quot;L&quot;,g=+f[v][1],w.push([k,d,g]);break;case&quot;A&quot;:k=&quot;L&quot;;var M=+f[v][1],A=+f[v][2];+f[v][4]||(M=-M,A=-A);var S=d-M,E=g;for(o=1;o&lt;=a/2;o++){var C=2*Math.PI*o/a;w.push([k,S+M*Math.cos(C),E+A*Math.sin(C)])}break;case&quot;Z&quot;:d===s&amp;&amp;g===u||(d=s,g=u,w.push([k,d,g]))}for(var L=(r||{}).domain,I=e._fullLayout._size,P=r&amp;&amp;&quot;pixel&quot;===r.xsizemode,z=r&amp;&amp;&quot;pixel&quot;===r.ysizemode,O=!1===i,D=0;D&lt;w.length;D++){for(o=0;o+2&lt;7;o+=2){var R=w[D][o+1],F=w[D][o+2];void 0!==R&amp;&amp;void 0!==F&amp;&amp;(d=R,g=F,r&amp;&amp;(r.xaxis&amp;&amp;r.xaxis.p2r?(O&amp;&amp;(R-=r.xaxis._offset),R=P?c(r.xaxis,r.xanchor)+R:l(r.xaxis,R)):(O&amp;&amp;(R-=I.l),L?R=L.x[0]+R/I.w:R/=I.w),r.yaxis&amp;&amp;r.yaxis.p2r?(O&amp;&amp;(F-=r.yaxis._offset),F=z?c(r.yaxis,r.yanchor)-F:l(r.yaxis,F)):(O&amp;&amp;(F-=I.t),F=L?L.y[1]-F/I.h:1-F/I.h)),w[D][o+1]=R,w[D][o+2]=F)}h[p].push(w[D].slice())}}return h},r.pointsShapeRectangle=function(t){if(5!==t.length)return!1;for(var e=1;e&lt;3;e++){if(!h(t[0][e]-t[1][e],t[3][e]-t[2][e]))return!1;if(!h(t[0][e]-t[3][e],t[1][e]-t[2][e]))return!1}return!(!h(t[0][1],t[1][1])&amp;&amp;!h(t[0][1],t[3][1]))&amp;&amp;!!(p(t[0],t[1])*p(t[0],t[3]))},r.pointsShapeEllipse=function(t){var e=t.length;if(e!==a+1)return!1;e=a;for(var r=0;r&lt;e;r++){var n=(2*e-r)%e,i=(e/2+n)%e,o=(e/2+r)%e;if(!h(p(t[r],t[o]),p(t[n],t[i])))return!1}return!0},r.handleEllipse=function(t,e,n){if(!t)return[e,n];var i=r.ellipseOver({x0:e[0],y0:e[1],x1:n[0],y1:n[1]}),s=(i.x1+i.x0)/2,l=(i.y1+i.y0)/2,c=(i.x1-i.x0)/2,u=(i.y1-i.y0)/2;c||(c=u/=o),u||(u=c/=o);for(var f=[],h=0;h&lt;a;h++){var p=2*h*Math.PI/a;f.push([s+c*Math.cos(p),l+u*Math.sin(p)])}return f},r.ellipseOver=function(t){var e=t.x0,r=t.y0,n=t.x1,i=t.y1,a=n-e,s=i-r,l=((e-=a)+n)/2,c=((r-=s)+i)/2;return{x0:l-(a*=o),y0:c-(s*=o),x1:l+a,y1:c+s}}},{&quot;../../../plots/cartesian/helpers&quot;:839,&quot;./constants&quot;:726,&quot;parse-svg-path&quot;:505}],730:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../dragelement/helpers&quot;),i=n.drawMode,a=n.openMode,o=t(&quot;./constants&quot;),s=o.i000,l=o.i090,c=o.i180,u=o.i270,f=o.cos45,h=o.sin45,p=t(&quot;../../../plots/cartesian/helpers&quot;),d=p.p2r,g=p.r2p,m=t(&quot;../../../plots/cartesian/handle_outline&quot;).clearSelect,v=t(&quot;./helpers&quot;),y=v.readPaths,x=v.writePaths,b=v.ellipseOver;e.exports=function(t,e){if(t.length){var r=t[0][0];if(r){var n=r.getAttribute(&quot;d&quot;),o=e.gd,p=o._fullLayout.newshape,v=e.plotinfo,_=v.xaxis,w=v.yaxis,T=!!v.domain||!v.xaxis,k=!!v.domain||!v.yaxis,M=e.isActiveShape,A=e.dragmode,S=(o.layout||{}).shapes||[];if(!i(A)&amp;&amp;void 0!==M){var E=o._fullLayout._activeShapeIndex;if(E&lt;S.length)switch(o._fullLayout.shapes[E].type){case&quot;rect&quot;:A=&quot;drawrect&quot;;break;case&quot;circle&quot;:A=&quot;drawcircle&quot;;break;case&quot;line&quot;:A=&quot;drawline&quot;;break;case&quot;path&quot;:var C=S[E].path||&quot;&quot;;A=&quot;Z&quot;===C[C.length-1]?&quot;drawclosedpath&quot;:&quot;drawopenpath&quot;}}var L,I=a(A),P=y(n,o,v,M),z={editable:!0,xref:T?&quot;paper&quot;:_._id,yref:k?&quot;paper&quot;:w._id,layer:p.layer,opacity:p.opacity,line:{color:p.line.color,width:p.line.width,dash:p.line.dash}};if(I||(z.fillcolor=p.fillcolor,z.fillrule=p.fillrule),1===P.length&amp;&amp;(L=P[0]),L&amp;&amp;&quot;drawrect&quot;===A)z.type=&quot;rect&quot;,z.x0=L[0][1],z.y0=L[0][2],z.x1=L[2][1],z.y1=L[2][2];else if(L&amp;&amp;&quot;drawline&quot;===A)z.type=&quot;line&quot;,z.x0=L[0][1],z.y0=L[0][2],z.x1=L[1][1],z.y1=L[1][2];else if(L&amp;&amp;&quot;drawcircle&quot;===A){z.type=&quot;circle&quot;;var O=L[s][1],D=L[l][1],R=L[c][1],F=L[u][1],B=L[s][2],N=L[l][2],j=L[c][2],U=L[u][2],V=v.xaxis&amp;&amp;(&quot;date&quot;===v.xaxis.type||&quot;log&quot;===v.xaxis.type),q=v.yaxis&amp;&amp;(&quot;date&quot;===v.yaxis.type||&quot;log&quot;===v.yaxis.type);V&amp;&amp;(O=g(v.xaxis,O),D=g(v.xaxis,D),R=g(v.xaxis,R),F=g(v.xaxis,F)),q&amp;&amp;(B=g(v.yaxis,B),N=g(v.yaxis,N),j=g(v.yaxis,j),U=g(v.yaxis,U));var H=(D+F)/2,G=(B+j)/2,Y=b({x0:H,y0:G,x1:H+(F-D+R-O)/2*f,y1:G+(U-N+j-B)/2*h});V&amp;&amp;(Y.x0=d(v.xaxis,Y.x0),Y.x1=d(v.xaxis,Y.x1)),q&amp;&amp;(Y.y0=d(v.yaxis,Y.y0),Y.y1=d(v.yaxis,Y.y1)),z.x0=Y.x0,z.y0=Y.y0,z.x1=Y.x1,z.y1=Y.y1}else z.type=&quot;path&quot;,_&amp;&amp;w&amp;&amp;function(t,e,r){var n=&quot;date&quot;===e.type,i=&quot;date&quot;===r.type;if(!n&amp;&amp;!i)return t;for(var a=0;a&lt;t.length;a++)for(var o=0;o&lt;t[a].length;o++)for(var s=0;s+2&lt;t[a][o].length;s+=2)n&amp;&amp;(t[a][o][s+1]=t[a][o][s+1].replace(&quot; &quot;,&quot;_&quot;)),i&amp;&amp;(t[a][o][s+2]=t[a][o][s+2].replace(&quot; &quot;,&quot;_&quot;))}(P,_,w),z.path=x(P),L=null;m(o);for(var W=e.editHelpers,X=(W||{}).modifyItem,Z=[],J=0;J&lt;S.length;J++){var K=o._fullLayout.shapes[J];if(Z[J]=K._input,void 0!==M&amp;&amp;J===o._fullLayout._activeShapeIndex){var Q=z;switch(K.type){case&quot;line&quot;:case&quot;rect&quot;:case&quot;circle&quot;:X(&quot;x0&quot;,Q.x0),X(&quot;x1&quot;,Q.x1),X(&quot;y0&quot;,Q.y0),X(&quot;y1&quot;,Q.y1);break;case&quot;path&quot;:X(&quot;path&quot;,Q.path)}}}return void 0===M?(Z.push(z),Z):W?W.getUpdateObj():{}}}}},{&quot;../../../plots/cartesian/handle_outline&quot;:838,&quot;../../../plots/cartesian/helpers&quot;:839,&quot;../../dragelement/helpers&quot;:661,&quot;./constants&quot;:726,&quot;./helpers&quot;:729}],731:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib&quot;);r.rangeToShapePosition=function(t){return&quot;log&quot;===t.type?t.r2d:function(t){return t}},r.shapePositionToRange=function(t){return&quot;log&quot;===t.type?t.d2r:function(t){return t}},r.decodeDate=function(t){return function(e){return e.replace&amp;&amp;(e=e.replace(&quot;_&quot;,&quot; &quot;)),t(e)}},r.encodeDate=function(t){return function(e){return t(e).replace(&quot; &quot;,&quot;_&quot;)}},r.extractPathCoords=function(t,e){var r=[];return t.match(n.segmentRE).forEach((function(t){var a=e[t.charAt(0)].drawn;if(void 0!==a){var o=t.substr(1).match(n.paramRE);!o||o.length&lt;a||r.push(i.cleanNumber(o[a]))}})),r},r.getDataToPixel=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if(&quot;domain&quot;===i)a=function(t){return e._length*(n?1-t:t)+e._offset};else{var s=r.shapePositionToRange(e);a=function(t){return e._offset+e.r2p(s(t,!0))},&quot;date&quot;===e.type&amp;&amp;(a=r.decodeDate(a))}else a=n?function(t){return o.t+o.h*(1-t)}:function(t){return o.l+o.w*t};return a},r.getPixelToData=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if(&quot;domain&quot;===i)a=function(t){var r=(t-e._offset)/e._length;return n?1-r:r};else{var s=r.rangeToShapePosition(e);a=function(t){return s(e.p2r(t-e._offset))}}else a=n?function(t){return 1-(t-o.t)/o.h}:function(t){return(t-o.l)/o.w};return a},r.roundPositionForSharpStrokeRendering=function(t,e){var r=1===Math.round(e%2),n=Math.round(t);return r?n+.5:n},r.makeOptionsAndPlotinfo=function(t,e){var r=t._fullLayout.shapes[e]||{},n=t._fullLayout._plots[r.xref+r.yref];return!!n?n._hadPlotinfo=!0:(n={},r.xref&amp;&amp;&quot;paper&quot;!==r.xref&amp;&amp;(n.xaxis=t._fullLayout[r.xref+&quot;axis&quot;]),r.yref&amp;&amp;&quot;paper&quot;!==r.yref&amp;&amp;(n.yaxis=t._fullLayout[r.yref+&quot;axis&quot;])),n.xsizemode=r.xsizemode,n.ysizemode=r.ysizemode,n.xanchor=r.xanchor,n.yanchor=r.yanchor,{options:r,plotinfo:n}}},{&quot;../../lib&quot;:778,&quot;./constants&quot;:722}],732:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;shapes&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),supplyDrawNewShapeDefaults:t(&quot;./draw_newshape/defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;shapes&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:n.draw,drawOne:n.drawOne}},{&quot;../../plots/cartesian/include_components&quot;:840,&quot;./attributes&quot;:720,&quot;./calc_autorange&quot;:721,&quot;./defaults&quot;:723,&quot;./draw&quot;:724,&quot;./draw_newshape/defaults&quot;:727}],733:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../plots/pad_attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendDeepAll,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../plots/animation_attributes&quot;),l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=t(&quot;./constants&quot;),u=l(&quot;step&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},method:{valType:&quot;enumerated&quot;,values:[&quot;restyle&quot;,&quot;relayout&quot;,&quot;animate&quot;,&quot;update&quot;,&quot;skip&quot;],dflt:&quot;restyle&quot;},args:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},label:{valType:&quot;string&quot;},value:{valType:&quot;string&quot;},execute:{valType:&quot;boolean&quot;,dflt:!0}});e.exports=o(l(&quot;slider&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},active:{valType:&quot;number&quot;,min:0,dflt:0},steps:u,lenmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;fraction&quot;},len:{valType:&quot;number&quot;,min:0,dflt:1},x:{valType:&quot;number&quot;,min:-2,max:3,dflt:0},pad:a(i({editType:&quot;arraydraw&quot;}),{},{t:{dflt:20}}),xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,dflt:0},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;},transition:{duration:{valType:&quot;number&quot;,min:0,dflt:150},easing:{valType:&quot;enumerated&quot;,values:s.transition.easing.values,dflt:&quot;cubic-in-out&quot;}},currentvalue:{visible:{valType:&quot;boolean&quot;,dflt:!0},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},offset:{valType:&quot;number&quot;,dflt:10},prefix:{valType:&quot;string&quot;},suffix:{valType:&quot;string&quot;},font:n({})},font:n({}),activebgcolor:{valType:&quot;color&quot;,dflt:c.gripBgActiveColor},bgcolor:{valType:&quot;color&quot;,dflt:c.railBgColor},bordercolor:{valType:&quot;color&quot;,dflt:c.railBorderColor},borderwidth:{valType:&quot;number&quot;,min:0,dflt:c.railBorderWidth},ticklen:{valType:&quot;number&quot;,min:0,dflt:c.tickLength},tickcolor:{valType:&quot;color&quot;,dflt:c.tickColor},tickwidth:{valType:&quot;number&quot;,min:0,dflt:1},minorticklen:{valType:&quot;number&quot;,min:0,dflt:c.minorTickLength}}),&quot;arraydraw&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/animation_attributes&quot;:822,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/pad_attributes&quot;:890,&quot;./constants&quot;:734}],734:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;sliders&quot;,containerClassName:&quot;slider-container&quot;,groupClassName:&quot;slider-group&quot;,inputAreaClass:&quot;slider-input-area&quot;,railRectClass:&quot;slider-rail-rect&quot;,railTouchRectClass:&quot;slider-rail-touch-rect&quot;,gripRectClass:&quot;slider-grip-rect&quot;,tickRectClass:&quot;slider-tick-rect&quot;,inputProxyClass:&quot;slider-input-proxy&quot;,labelsClass:&quot;slider-labels&quot;,labelGroupClass:&quot;slider-label-group&quot;,labelClass:&quot;slider-label&quot;,currentValueClass:&quot;slider-current-value&quot;,railHeight:5,menuIndexAttrName:&quot;slider-active-index&quot;,autoMarginIdRoot:&quot;slider-&quot;,minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:&quot;#bec8d9&quot;,railBgColor:&quot;#f8fafc&quot;,railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:&quot;#bec8d9&quot;,gripBgColor:&quot;#f6f8fa&quot;,gripBgActiveColor:&quot;#dbdde0&quot;,labelPadding:8,labelOffset:0,tickWidth:1,tickColor:&quot;#333&quot;,tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:&quot;#333&quot;,minorTickLength:4,currentValuePadding:8,currentValueInset:0}},{}],735:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;).name,s=a.steps;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}for(var s=i(t,e,{name:&quot;steps&quot;,handleItemDefaults:c}),l=0,u=0;u&lt;s.length;u++)s[u].visible&amp;&amp;l++;if(l&lt;2?e.visible=!1:o(&quot;visible&quot;)){e._stepCount=l;var f=e._visibleSteps=n.filterVisible(s);(s[o(&quot;active&quot;)]||{}).visible||(e.active=f[0]._index),o(&quot;x&quot;),o(&quot;y&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),o(&quot;xanchor&quot;),o(&quot;yanchor&quot;),o(&quot;len&quot;),o(&quot;lenmode&quot;),o(&quot;pad.t&quot;),o(&quot;pad.r&quot;),o(&quot;pad.b&quot;),o(&quot;pad.l&quot;),n.coerceFont(o,&quot;font&quot;,r.font),o(&quot;currentvalue.visible&quot;)&amp;&amp;(o(&quot;currentvalue.xanchor&quot;),o(&quot;currentvalue.prefix&quot;),o(&quot;currentvalue.suffix&quot;),o(&quot;currentvalue.offset&quot;),n.coerceFont(o,&quot;currentvalue.font&quot;,e.font)),o(&quot;transition.duration&quot;),o(&quot;transition.easing&quot;),o(&quot;bgcolor&quot;),o(&quot;activebgcolor&quot;),o(&quot;bordercolor&quot;),o(&quot;borderwidth&quot;),o(&quot;ticklen&quot;),o(&quot;tickwidth&quot;),o(&quot;tickcolor&quot;),o(&quot;minorticklen&quot;)}}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}if(&quot;skip&quot;===t.method||Array.isArray(t.args)?r(&quot;visible&quot;):e.visible=!1){r(&quot;method&quot;),r(&quot;args&quot;);var i=r(&quot;label&quot;,&quot;step-&quot;+e._index);r(&quot;value&quot;,i),r(&quot;execute&quot;)}}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;./attributes&quot;:733,&quot;./constants&quot;:734}],736:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../color&quot;),o=t(&quot;../drawing&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,f=t(&quot;./constants&quot;),h=t(&quot;../../constants/alignment&quot;),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR;function m(t){return f.autoMarginIdRoot+t._index}function v(t){return t._index}function y(t,e){var r=o.tester.selectAll(&quot;g.&quot;+f.labelGroupClass).data(e._visibleSteps);r.enter().append(&quot;g&quot;).classed(f.labelGroupClass,!0);var a=0,l=0;r.each((function(t){var r=_(n.select(this),{step:t},e).node();if(r){var i=o.bBox(r);l=Math.max(l,i.height),a=Math.max(a,i.width)}})),r.remove();var u=e._dims={};u.inputAreaWidth=Math.max(f.railWidth,f.gripHeight);var h=t._fullLayout._size;u.lx=h.l+h.w*e.x,u.ly=h.t+h.h*(1-e.y),&quot;fraction&quot;===e.lenmode?u.outerLength=Math.round(h.w*e.len):u.outerLength=e.len,u.inputAreaStart=0,u.inputAreaLength=Math.round(u.outerLength-e.pad.l-e.pad.r);var p=(u.inputAreaLength-2*f.stepInset)/(e._stepCount-1),v=a+f.labelPadding;if(u.labelStride=Math.max(1,Math.ceil(v/p)),u.labelHeight=l,u.currentValueMaxWidth=0,u.currentValueHeight=0,u.currentValueTotalHeight=0,u.currentValueMaxLines=1,e.currentvalue.visible){var y=o.tester.append(&quot;g&quot;);r.each((function(t){var r=x(y,e,t.label),n=r.node()&amp;&amp;o.bBox(r.node())||{width:0,height:0},i=c.lineCount(r);u.currentValueMaxWidth=Math.max(u.currentValueMaxWidth,Math.ceil(n.width)),u.currentValueHeight=Math.max(u.currentValueHeight,Math.ceil(n.height)),u.currentValueMaxLines=Math.max(u.currentValueMaxLines,i)})),u.currentValueTotalHeight=u.currentValueHeight+e.currentvalue.offset,y.remove()}u.height=u.currentValueTotalHeight+f.tickOffset+e.ticklen+f.labelOffset+u.labelHeight+e.pad.t+e.pad.b;var b=&quot;left&quot;;s.isRightAnchor(e)&amp;&amp;(u.lx-=u.outerLength,b=&quot;right&quot;),s.isCenterAnchor(e)&amp;&amp;(u.lx-=u.outerLength/2,b=&quot;center&quot;);var w=&quot;top&quot;;s.isBottomAnchor(e)&amp;&amp;(u.ly-=u.height,w=&quot;bottom&quot;),s.isMiddleAnchor(e)&amp;&amp;(u.ly-=u.height/2,w=&quot;middle&quot;),u.outerLength=Math.ceil(u.outerLength),u.height=Math.ceil(u.height),u.lx=Math.round(u.lx),u.ly=Math.round(u.ly);var T={y:e.y,b:u.height*g[w],t:u.height*d[w]};&quot;fraction&quot;===e.lenmode?(T.l=0,T.xl=e.x-e.len*d[b],T.r=0,T.xr=e.x+e.len*g[b]):(T.x=e.x,T.l=u.outerLength*d[b],T.r=u.outerLength*g[b]),i.autoMargin(t,m(e),T)}function x(t,e,r){if(e.currentvalue.visible){var n,i,a=e._dims;switch(e.currentvalue.xanchor){case&quot;right&quot;:n=a.inputAreaLength-f.currentValueInset-a.currentValueMaxWidth,i=&quot;left&quot;;break;case&quot;center&quot;:n=.5*a.inputAreaLength,i=&quot;middle&quot;;break;default:n=f.currentValueInset,i=&quot;left&quot;}var l=s.ensureSingle(t,&quot;text&quot;,f.labelClass,(function(t){t.attr({&quot;text-anchor&quot;:i,&quot;data-notex&quot;:1})})),u=e.currentvalue.prefix?e.currentvalue.prefix:&quot;&quot;;if(&quot;string&quot;==typeof r)u+=r;else{var h=e.steps[e.active].label,d=e._gd._fullLayout._meta;d&amp;&amp;(h=s.templateString(h,d)),u+=h}e.currentvalue.suffix&amp;&amp;(u+=e.currentvalue.suffix),l.call(o.font,e.currentvalue.font).text(u).call(c.convertToTspans,e._gd);var g=c.lineCount(l),m=(a.currentValueMaxLines+1-g)*e.currentvalue.font.size*p;return c.positionText(l,n,m),l}}function b(t,e,r){s.ensureSingle(t,&quot;rect&quot;,f.gripRectClass,(function(n){n.call(M,e,t,r).style(&quot;pointer-events&quot;,&quot;all&quot;)})).attr({width:f.gripWidth,height:f.gripHeight,rx:f.gripRadius,ry:f.gripRadius}).call(a.stroke,r.bordercolor).call(a.fill,r.bgcolor).style(&quot;stroke-width&quot;,r.borderwidth+&quot;px&quot;)}function _(t,e,r){var n=s.ensureSingle(t,&quot;text&quot;,f.labelClass,(function(t){t.attr({&quot;text-anchor&quot;:&quot;middle&quot;,&quot;data-notex&quot;:1})})),i=e.step.label,a=r._gd._fullLayout._meta;return a&amp;&amp;(i=s.templateString(i,a)),n.call(o.font,r.font).text(i).call(c.convertToTspans,r._gd),n}function w(t,e){var r=s.ensureSingle(t,&quot;g&quot;,f.labelsClass),i=e._dims,a=r.selectAll(&quot;g.&quot;+f.labelGroupClass).data(i.labelSteps);a.enter().append(&quot;g&quot;).classed(f.labelGroupClass,!0),a.exit().remove(),a.each((function(t){var r=n.select(this);r.call(_,t,e),o.setTranslate(r,E(e,t.fraction),f.tickOffset+e.ticklen+e.font.size*p+f.labelOffset+i.currentValueTotalHeight)}))}function T(t,e,r,n,i){var a=Math.round(n*(r._stepCount-1)),o=r._visibleSteps[a]._index;o!==r.active&amp;&amp;k(t,e,r,o,!0,i)}function k(t,e,r,n,a,o){var s=r.active;r.active=n,u(t.layout,f.name,r).applyUpdate(&quot;active&quot;,n);var l=r.steps[r.active];e.call(S,r,o),e.call(x,r),t.emit(&quot;plotly_sliderchange&quot;,{slider:r,step:r.steps[r.active],interaction:a,previousActive:s}),l&amp;&amp;l.method&amp;&amp;a&amp;&amp;(e._nextMethod?(e._nextMethod.step=l,e._nextMethod.doCallback=a,e._nextMethod.doTransition=o):(e._nextMethod={step:l,doCallback:a,doTransition:o},e._nextMethodRaf=window.requestAnimationFrame((function(){var r=e._nextMethod.step;r.method&amp;&amp;(r.execute&amp;&amp;i.executeAPICommand(t,r.method,r.args),e._nextMethod=null,e._nextMethodRaf=null)}))))}function M(t,e,r){var i=r.node(),o=n.select(e);function s(){return r.data()[0]}t.on(&quot;mousedown&quot;,(function(){var t=s();e.emit(&quot;plotly_sliderstart&quot;,{slider:t});var l=r.select(&quot;.&quot;+f.gripRectClass);n.event.stopPropagation(),n.event.preventDefault(),l.call(a.fill,t.activebgcolor);var c=C(t,n.mouse(i)[0]);T(e,r,t,c,!0),t._dragging=!0,o.on(&quot;mousemove&quot;,(function(){var t=s(),a=C(t,n.mouse(i)[0]);T(e,r,t,a,!1)})),o.on(&quot;mouseup&quot;,(function(){var t=s();t._dragging=!1,l.call(a.fill,t.bgcolor),o.on(&quot;mouseup&quot;,null),o.on(&quot;mousemove&quot;,null),e.emit(&quot;plotly_sliderend&quot;,{slider:t,step:t.steps[t.active]})}))}))}function A(t,e){var r=t.selectAll(&quot;rect.&quot;+f.tickRectClass).data(e._visibleSteps),i=e._dims;r.enter().append(&quot;rect&quot;).classed(f.tickRectClass,!0),r.exit().remove(),r.attr({width:e.tickwidth+&quot;px&quot;,&quot;shape-rendering&quot;:&quot;crispEdges&quot;}),r.each((function(t,r){var s=r%i.labelStride==0,l=n.select(this);l.attr({height:s?e.ticklen:e.minorticklen}).call(a.fill,e.tickcolor),o.setTranslate(l,E(e,r/(e._stepCount-1))-.5*e.tickwidth,(s?f.tickOffset:f.minorTickOffset)+i.currentValueTotalHeight)}))}function S(t,e,r){for(var n=t.select(&quot;rect.&quot;+f.gripRectClass),i=0,a=0;a&lt;e._stepCount;a++)if(e._visibleSteps[a]._index===e.active){i=a;break}var o=E(e,i/(e._stepCount-1));if(!e._invokingCommand){var s=n;r&amp;&amp;e.transition.duration&gt;0&amp;&amp;(s=s.transition().duration(e.transition.duration).ease(e.transition.easing)),s.attr(&quot;transform&quot;,l(o-.5*f.gripWidth,e._dims.currentValueTotalHeight))}}function E(t,e){var r=t._dims;return r.inputAreaStart+f.stepInset+(r.inputAreaLength-2*f.stepInset)*Math.min(1,Math.max(0,e))}function C(t,e){var r=t._dims;return Math.min(1,Math.max(0,(e-f.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*f.stepInset-2*r.inputAreaStart)))}function L(t,e,r){var n=r._dims,i=s.ensureSingle(t,&quot;rect&quot;,f.railTouchRectClass,(function(n){n.call(M,e,t,r).style(&quot;pointer-events&quot;,&quot;all&quot;)}));i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,f.tickOffset+r.ticklen+n.labelHeight)}).call(a.fill,r.bgcolor).attr(&quot;opacity&quot;,0),o.setTranslate(i,0,n.currentValueTotalHeight)}function I(t,e){var r=e._dims,n=r.inputAreaLength-2*f.railInset,i=s.ensureSingle(t,&quot;rect&quot;,f.railRectClass);i.attr({width:n,height:f.railWidth,rx:f.railRadius,ry:f.railRadius,&quot;shape-rendering&quot;:&quot;crispEdges&quot;}).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;),o.setTranslate(i,f.railInset,.5*(r.inputAreaWidth-f.railWidth)+r.currentValueTotalHeight)}e.exports=function(t){var e=t._fullLayout,r=function(t,e){for(var r=t[f.name],n=[],i=0;i&lt;r.length;i++){var a=r[i];a.visible&amp;&amp;(a._gd=e,n.push(a))}return n}(e,t),a=e._infolayer.selectAll(&quot;g.&quot;+f.containerClassName).data(r.length&gt;0?[0]:[]);function s(e){e._commandObserver&amp;&amp;(e._commandObserver.remove(),delete e._commandObserver),i.autoMargin(t,m(e))}if(a.enter().append(&quot;g&quot;).classed(f.containerClassName,!0).style(&quot;cursor&quot;,&quot;ew-resize&quot;),a.exit().each((function(){n.select(this).selectAll(&quot;g.&quot;+f.groupClassName).each(s)})).remove(),0!==r.length){var l=a.selectAll(&quot;g.&quot;+f.groupClassName).data(r,v);l.enter().append(&quot;g&quot;).classed(f.groupClassName,!0),l.exit().each(s).remove();for(var c=0;c&lt;r.length;c++){var u=r[c];y(t,u)}l.each((function(e){var r=n.select(this);!function(t){var e=t._dims;e.labelSteps=[];for(var r=t._stepCount,n=0;n&lt;r;n+=e.labelStride)e.labelSteps.push({fraction:n/(r-1),step:t._visibleSteps[n]})}(e),i.manageCommandObserver(t,e,e._visibleSteps,(function(e){var n=r.data()[0];n.active!==e.index&amp;&amp;(n._dragging||k(t,r,n,e.index,!1,!0))})),function(t,e,r){(r.steps[r.active]||{}).visible||(r.active=r._visibleSteps[0]._index);e.call(x,r).call(I,r).call(w,r).call(A,r).call(L,t,r).call(b,t,r);var n=r._dims;o.setTranslate(e,n.lx+r.pad.l,n.ly+r.pad.t),e.call(S,r,!1),e.call(x,r)}(t,n.select(this),e)}))}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/plots&quot;:891,&quot;../color&quot;:643,&quot;../drawing&quot;:665,&quot;./constants&quot;:734,d3:169}],737:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);e.exports={moduleType:&quot;component&quot;,name:n.name,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;)}},{&quot;./attributes&quot;:733,&quot;./constants&quot;:734,&quot;./defaults&quot;:735,&quot;./draw&quot;:736}],738:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../drawing&quot;),u=t(&quot;../color&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../constants/interactions&quot;),p=t(&quot;../../constants/alignment&quot;).OPPOSITE_SIDE,d=/ [XY][0-9]* /;e.exports={draw:function(t,e,r){var g,m=r.propContainer,v=r.propName,y=r.placeholder,x=r.traceIndex,b=r.avoid||{},_=r.attributes,w=r.transform,T=r.containerGroup,k=t._fullLayout,M=1,A=!1,S=m.title,E=(S&amp;&amp;S.text?S.text:&quot;&quot;).trim(),C=S&amp;&amp;S.font?S.font:{},L=C.family,I=C.size,P=C.color;&quot;title.text&quot;===v?g=&quot;titleText&quot;:-1!==v.indexOf(&quot;axis&quot;)?g=&quot;axisTitleText&quot;:v.indexOf(!0)&amp;&amp;(g=&quot;colorbarTitleText&quot;);var z=t._context.edits[g];&quot;&quot;===E?M=0:E.replace(d,&quot; % &quot;)===y.replace(d,&quot; % &quot;)&amp;&amp;(M=.2,A=!0,z||(E=&quot;&quot;)),r._meta?E=s.templateString(E,r._meta):k._meta&amp;&amp;(E=s.templateString(E,k._meta));var O=E||z;T||(T=s.ensureSingle(k._infolayer,&quot;g&quot;,&quot;g-&quot;+e));var D=T.selectAll(&quot;text&quot;).data(O?[0]:[]);if(D.enter().append(&quot;text&quot;),D.text(E).attr(&quot;class&quot;,e),D.exit().remove(),!O)return T;function R(t){s.syncOrAsync([F,B],t)}function F(e){var r;return w?(r=&quot;&quot;,w.rotate&amp;&amp;(r+=&quot;rotate(&quot;+[w.rotate,_.x,_.y]+&quot;)&quot;),w.offset&amp;&amp;(r+=l(0,w.offset))):r=null,e.attr(&quot;transform&quot;,r),e.style({&quot;font-family&quot;:L,&quot;font-size&quot;:n.round(I,2)+&quot;px&quot;,fill:u.rgb(P),opacity:M*u.opacity(P),&quot;font-weight&quot;:a.fontWeight}).attr(_).call(f.convertToTspans,t),a.previousPromises(t)}function B(t){var e=n.select(t.node().parentNode);if(b&amp;&amp;b.selection&amp;&amp;b.side&amp;&amp;E){e.attr(&quot;transform&quot;,null);var r=p[b.side],a=&quot;left&quot;===b.side||&quot;top&quot;===b.side?-1:1,o=i(b.pad)?b.pad:2,u=c.bBox(e.node()),f={left:0,top:0,right:k.width,bottom:k.height},h=b.maxShift||a*(f[b.side]-u[b.side]),d=0;if(h&lt;0)d=h;else{var g=b.offsetLeft||0,m=b.offsetTop||0;u.left-=g,u.right-=g,u.top-=m,u.bottom-=m,b.selection.each((function(){var t=c.bBox(this);s.bBoxIntersect(u,t,o)&amp;&amp;(d=Math.max(d,a*(t[b.side]-u[r])+o))})),d=Math.min(h,d)}if(d&gt;0||h&lt;0){var v={left:[-d,0],right:[d,0],top:[0,-d],bottom:[0,d]}[b.side];e.attr(&quot;transform&quot;,l(v[0],v[1]))}}}return D.call(R),z&amp;&amp;(E?D.on(&quot;.opacity&quot;,null):(M=0,A=!0,D.text(y).on(&quot;mouseover.opacity&quot;,(function(){n.select(this).transition().duration(h.SHOW_PLACEHOLDER).style(&quot;opacity&quot;,1)})).on(&quot;mouseout.opacity&quot;,(function(){n.select(this).transition().duration(h.HIDE_PLACEHOLDER).style(&quot;opacity&quot;,0)}))),D.call(f.makeEditable,{gd:t}).on(&quot;edit&quot;,(function(e){void 0!==x?o.call(&quot;_guiRestyle&quot;,t,v,e,x):o.call(&quot;_guiRelayout&quot;,t,v,e)})).on(&quot;cancel&quot;,(function(){this.text(this.attr(&quot;data-unformatted&quot;)).call(R)})).on(&quot;input&quot;,(function(t){this.text(t||&quot; &quot;).call(f.positionText,_.x,_.y)}))),D.classed(&quot;js-placeholder&quot;,A),T}}},{&quot;../../constants/alignment&quot;:745,&quot;../../constants/interactions&quot;:752,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../drawing&quot;:665,d3:169,&quot;fast-isnumeric&quot;:241}],739:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../plots/pad_attributes&quot;),l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=l(&quot;button&quot;,{visible:{valType:&quot;boolean&quot;},method:{valType:&quot;enumerated&quot;,values:[&quot;restyle&quot;,&quot;relayout&quot;,&quot;animate&quot;,&quot;update&quot;,&quot;skip&quot;],dflt:&quot;restyle&quot;},args:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},args2:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},label:{valType:&quot;string&quot;,dflt:&quot;&quot;},execute:{valType:&quot;boolean&quot;,dflt:!0}});e.exports=o(l(&quot;updatemenu&quot;,{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:&quot;boolean&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;dropdown&quot;,&quot;buttons&quot;],dflt:&quot;dropdown&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;right&quot;,&quot;up&quot;,&quot;down&quot;],dflt:&quot;down&quot;},active:{valType:&quot;integer&quot;,min:-1,dflt:0},showactive:{valType:&quot;boolean&quot;,dflt:!0},buttons:c,x:{valType:&quot;number&quot;,min:-2,max:3,dflt:-.05},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;right&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,dflt:1},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;},pad:a(s({editType:&quot;arraydraw&quot;}),{}),font:n({}),bgcolor:{valType:&quot;color&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.borderLine},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;arraydraw&quot;}}),&quot;arraydraw&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/pad_attributes&quot;:890,&quot;../color/attributes&quot;:642}],740:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;updatemenus&quot;,containerClassName:&quot;updatemenu-container&quot;,headerGroupClassName:&quot;updatemenu-header-group&quot;,headerClassName:&quot;updatemenu-header&quot;,headerArrowClassName:&quot;updatemenu-header-arrow&quot;,dropdownButtonGroupClassName:&quot;updatemenu-dropdown-button-group&quot;,dropdownButtonClassName:&quot;updatemenu-dropdown-button&quot;,buttonClassName:&quot;updatemenu-button&quot;,itemRectClassName:&quot;updatemenu-item-rect&quot;,itemTextClassName:&quot;updatemenu-item-text&quot;,menuIndexAttrName:&quot;updatemenu-active-index&quot;,autoMarginIdRoot:&quot;updatemenu-&quot;,blankHeaderOpts:{label:&quot;  &quot;},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:&quot;#F4FAFF&quot;,hoverColor:&quot;#F4FAFF&quot;,arrowSymbol:{left:&quot;\u25c4&quot;,right:&quot;\u25ba&quot;,up:&quot;\u25b2&quot;,down:&quot;\u25bc&quot;}}},{}],741:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;).name,s=a.buttons;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}o(&quot;visible&quot;,i(t,e,{name:&quot;buttons&quot;,handleItemDefaults:c}).length&gt;0)&amp;&amp;(o(&quot;active&quot;),o(&quot;direction&quot;),o(&quot;type&quot;),o(&quot;showactive&quot;),o(&quot;x&quot;),o(&quot;y&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),o(&quot;xanchor&quot;),o(&quot;yanchor&quot;),o(&quot;pad.t&quot;),o(&quot;pad.r&quot;),o(&quot;pad.b&quot;),o(&quot;pad.l&quot;),n.coerceFont(o,&quot;font&quot;,r.font),o(&quot;bgcolor&quot;,r.paper_bgcolor),o(&quot;bordercolor&quot;),o(&quot;borderwidth&quot;))}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}r(&quot;visible&quot;,&quot;skip&quot;===t.method||Array.isArray(t.args))&amp;&amp;(r(&quot;method&quot;),r(&quot;args&quot;),r(&quot;args2&quot;),r(&quot;label&quot;),r(&quot;execute&quot;))}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;./attributes&quot;:739,&quot;./constants&quot;:740}],742:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../color&quot;),o=t(&quot;../drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,u=t(&quot;../../constants/alignment&quot;).LINE_SPACING,f=t(&quot;./constants&quot;),h=t(&quot;./scrollbox&quot;);function p(t){return t._index}function d(t,e){return+t.attr(f.menuIndexAttrName)===e._index}function g(t,e,r,n,i,a,o,s){e.active=o,c(t.layout,f.name,e).applyUpdate(&quot;active&quot;,o),&quot;buttons&quot;===e.type?v(t,n,null,null,e):&quot;dropdown&quot;===e.type&amp;&amp;(i.attr(f.menuIndexAttrName,&quot;-1&quot;),m(t,n,i,a,e),s||v(t,n,i,a,e))}function m(t,e,r,n,i){var a=s.ensureSingle(e,&quot;g&quot;,f.headerClassName,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)})),l=i._dims,c=i.active,u=i.buttons[c]||f.blankHeaderOpts,h={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},p={width:l.headerWidth,height:l.headerHeight};a.call(y,i,u,t).call(A,i,h,p),s.ensureSingle(e,&quot;text&quot;,f.headerArrowClassName,(function(t){t.attr(&quot;text-anchor&quot;,&quot;end&quot;).call(o.font,i.font).text(f.arrowSymbol[i.direction])})).attr({x:l.headerWidth-f.arrowOffsetX+i.pad.l,y:l.headerHeight/2+f.textOffsetY+i.pad.t}),a.on(&quot;click&quot;,(function(){r.call(S,String(d(r,i)?-1:i._index)),v(t,e,r,n,i)})),a.on(&quot;mouseover&quot;,(function(){a.call(w)})),a.on(&quot;mouseout&quot;,(function(){a.call(T,i)})),o.setTranslate(e,l.lx,l.ly)}function v(t,e,r,a,o){r||(r=e).attr(&quot;pointer-events&quot;,&quot;all&quot;);var l=function(t){return-1==+t.attr(f.menuIndexAttrName)}(r)&amp;&amp;&quot;buttons&quot;!==o.type?[]:o.buttons,c=&quot;dropdown&quot;===o.type?f.dropdownButtonClassName:f.buttonClassName,u=r.selectAll(&quot;g.&quot;+c).data(s.filterVisible(l)),h=u.enter().append(&quot;g&quot;).classed(c,!0),p=u.exit();&quot;dropdown&quot;===o.type?(h.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;),p.transition().attr(&quot;opacity&quot;,&quot;0&quot;).remove()):p.remove();var d=0,m=0,v=o._dims,x=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(o.direction);&quot;dropdown&quot;===o.type&amp;&amp;(x?m=v.headerHeight+f.gapButtonHeader:d=v.headerWidth+f.gapButtonHeader),&quot;dropdown&quot;===o.type&amp;&amp;&quot;up&quot;===o.direction&amp;&amp;(m=-f.gapButtonHeader+f.gapButton-v.openHeight),&quot;dropdown&quot;===o.type&amp;&amp;&quot;left&quot;===o.direction&amp;&amp;(d=-f.gapButtonHeader+f.gapButton-v.openWidth);var b={x:v.lx+d+o.pad.l,y:v.ly+m+o.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},k={l:b.x+o.borderwidth,t:b.y+o.borderwidth};u.each((function(s,l){var c=n.select(this);c.call(y,o,s,t).call(A,o,b),c.on(&quot;click&quot;,(function(){n.event.defaultPrevented||(s.execute&amp;&amp;(s.args2&amp;&amp;o.active===l?(g(t,o,0,e,r,a,-1),i.executeAPICommand(t,s.method,s.args2)):(g(t,o,0,e,r,a,l),i.executeAPICommand(t,s.method,s.args))),t.emit(&quot;plotly_buttonclicked&quot;,{menu:o,button:s,active:o.active}))})),c.on(&quot;mouseover&quot;,(function(){c.call(w)})),c.on(&quot;mouseout&quot;,(function(){c.call(T,o),u.call(_,o)}))})),u.call(_,o),x?(k.w=Math.max(v.openWidth,v.headerWidth),k.h=b.y-k.t):(k.w=b.x-k.l,k.h=Math.max(v.openHeight,v.headerHeight)),k.direction=o.direction,a&amp;&amp;(u.size()?function(t,e,r,n,i,a){var o,s,l,c=i.direction,u=&quot;up&quot;===c||&quot;down&quot;===c,h=i._dims,p=i.active;if(u)for(s=0,l=0;l&lt;p;l++)s+=h.heights[l]+f.gapButton;else for(o=0,l=0;l&lt;p;l++)o+=h.widths[l]+f.gapButton;n.enable(a,o,s),n.hbar&amp;&amp;n.hbar.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;);n.vbar&amp;&amp;n.vbar.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;)}(0,0,0,a,o,k):function(t){var e=!!t.hbar,r=!!t.vbar;e&amp;&amp;t.hbar.transition().attr(&quot;opacity&quot;,&quot;0&quot;).each(&quot;end&quot;,(function(){e=!1,r||t.disable()}));r&amp;&amp;t.vbar.transition().attr(&quot;opacity&quot;,&quot;0&quot;).each(&quot;end&quot;,(function(){r=!1,e||t.disable()}))}(a))}function y(t,e,r,n){t.call(x,e).call(b,e,r,n)}function x(t,e){s.ensureSingle(t,&quot;rect&quot;,f.itemRectClassName,(function(t){t.attr({rx:f.rx,ry:f.ry,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;)}function b(t,e,r,n){var i=s.ensureSingle(t,&quot;text&quot;,f.itemTextClassName,(function(t){t.attr({&quot;text-anchor&quot;:&quot;start&quot;,&quot;data-notex&quot;:1})})),a=r.label,c=n._fullLayout._meta;c&amp;&amp;(a=s.templateString(a,c)),i.call(o.font,e.font).text(a).call(l.convertToTspans,n)}function _(t,e){var r=e.active;t.each((function(t,i){var o=n.select(this);i===r&amp;&amp;e.showactive&amp;&amp;o.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,f.activeColor)}))}function w(t){t.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,f.hoverColor)}function T(t,e){t.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,e.bgcolor)}function k(t,e){var r=e._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},a=o.tester.selectAll(&quot;g.&quot;+f.dropdownButtonClassName).data(s.filterVisible(e.buttons));a.enter().append(&quot;g&quot;).classed(f.dropdownButtonClassName,!0);var c=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(e.direction);a.each((function(i,a){var s=n.select(this);s.call(y,e,i,t);var h=s.select(&quot;.&quot;+f.itemTextClassName),p=h.node()&amp;&amp;o.bBox(h.node()).width,d=Math.max(p+f.textPadX,f.minWidth),g=e.font.size*u,m=l.lineCount(h),v=Math.max(g*m,f.minHeight)+f.textOffsetY;v=Math.ceil(v),d=Math.ceil(d),r.widths[a]=d,r.heights[a]=v,r.height1=Math.max(r.height1,v),r.width1=Math.max(r.width1,d),c?(r.totalWidth=Math.max(r.totalWidth,d),r.openWidth=r.totalWidth,r.totalHeight+=v+f.gapButton,r.openHeight+=v+f.gapButton):(r.totalWidth+=d+f.gapButton,r.openWidth+=d+f.gapButton,r.totalHeight=Math.max(r.totalHeight,v),r.openHeight=r.totalHeight)})),c?r.totalHeight-=f.gapButton:r.totalWidth-=f.gapButton,r.headerWidth=r.width1+f.arrowPadX,r.headerHeight=r.height1,&quot;dropdown&quot;===e.type&amp;&amp;(c?(r.width1+=f.arrowPadX,r.totalHeight=r.height1):r.totalWidth=r.width1,r.totalWidth+=f.arrowPadX),a.remove();var h=r.totalWidth+e.pad.l+e.pad.r,p=r.totalHeight+e.pad.t+e.pad.b,d=t._fullLayout._size;r.lx=d.l+d.w*e.x,r.ly=d.t+d.h*(1-e.y);var g=&quot;left&quot;;s.isRightAnchor(e)&amp;&amp;(r.lx-=h,g=&quot;right&quot;),s.isCenterAnchor(e)&amp;&amp;(r.lx-=h/2,g=&quot;center&quot;);var m=&quot;top&quot;;s.isBottomAnchor(e)&amp;&amp;(r.ly-=p,m=&quot;bottom&quot;),s.isMiddleAnchor(e)&amp;&amp;(r.ly-=p/2,m=&quot;middle&quot;),r.totalWidth=Math.ceil(r.totalWidth),r.totalHeight=Math.ceil(r.totalHeight),r.lx=Math.round(r.lx),r.ly=Math.round(r.ly),i.autoMargin(t,M(e),{x:e.x,y:e.y,l:h*({right:1,center:.5}[g]||0),r:h*({left:1,center:.5}[g]||0),b:p*({top:1,middle:.5}[m]||0),t:p*({bottom:1,middle:.5}[m]||0)})}function M(t){return f.autoMarginIdRoot+t._index}function A(t,e,r,n){n=n||{};var i=t.select(&quot;.&quot;+f.itemRectClassName),a=t.select(&quot;.&quot;+f.itemTextClassName),s=e.borderwidth,c=r.index,h=e._dims;o.setTranslate(t,s+r.x,s+r.y);var p=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(e.direction),d=n.height||(p?h.heights[c]:h.height1);i.attr({x:0,y:0,width:n.width||(p?h.width1:h.widths[c]),height:d});var g=e.font.size*u,m=(l.lineCount(a)-1)*g/2;l.positionText(a,f.textOffsetX,d/2-m+f.textOffsetY),p?r.y+=h.heights[c]+r.yPad:r.x+=h.widths[c]+r.xPad,r.index++}function S(t,e){t.attr(f.menuIndexAttrName,e||&quot;-1&quot;).selectAll(&quot;g.&quot;+f.dropdownButtonClassName).remove()}e.exports=function(t){var e=t._fullLayout,r=s.filterVisible(e[f.name]);function a(e){i.autoMargin(t,M(e))}var o=e._menulayer.selectAll(&quot;g.&quot;+f.containerClassName).data(r.length&gt;0?[0]:[]);if(o.enter().append(&quot;g&quot;).classed(f.containerClassName,!0).style(&quot;cursor&quot;,&quot;pointer&quot;),o.exit().each((function(){n.select(this).selectAll(&quot;g.&quot;+f.headerGroupClassName).each(a)})).remove(),0!==r.length){var l=o.selectAll(&quot;g.&quot;+f.headerGroupClassName).data(r,p);l.enter().append(&quot;g&quot;).classed(f.headerGroupClassName,!0);for(var c=s.ensureSingle(o,&quot;g&quot;,f.dropdownButtonGroupClassName,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)})),u=0;u&lt;r.length;u++){var y=r[u];k(t,y)}var x=&quot;updatemenus&quot;+e._uid,b=new h(t,c,x);l.enter().size()&amp;&amp;(c.node().parentNode.appendChild(c.node()),c.call(S)),l.exit().each((function(t){c.call(S),a(t)})).remove(),l.each((function(e){var r=n.select(this),a=&quot;dropdown&quot;===e.type?c:null;i.manageCommandObserver(t,e,e.buttons,(function(n){g(t,e,e.buttons[n.index],r,a,b,n.index,!0)})),&quot;dropdown&quot;===e.type?(m(t,r,c,b,e),d(c,e)&amp;&amp;v(t,r,c,b,e)):v(t,r,null,null,e)}))}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/plots&quot;:891,&quot;../color&quot;:643,&quot;../drawing&quot;:665,&quot;./constants&quot;:740,&quot;./scrollbox&quot;:744,d3:169}],743:[function(t,e,r){arguments[4][737][0].apply(r,arguments)},{&quot;./attributes&quot;:739,&quot;./constants&quot;:740,&quot;./defaults&quot;:741,&quot;./draw&quot;:742,dup:737}],744:[function(t,e,r){&quot;use strict&quot;;e.exports=s;var n=t(&quot;d3&quot;),i=t(&quot;../color&quot;),a=t(&quot;../drawing&quot;),o=t(&quot;../../lib&quot;);function s(t,e,r){this.gd=t,this.container=e,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll(&quot;rect.scrollbox-bg&quot;).data([0]),this.bg.exit().on(&quot;.drag&quot;,null).on(&quot;wheel&quot;,null).remove(),this.bg.enter().append(&quot;rect&quot;).classed(&quot;scrollbox-bg&quot;,!0).style(&quot;pointer-events&quot;,&quot;all&quot;).attr({opacity:0,x:0,y:0,width:0,height:0})}s.barWidth=2,s.barLength=20,s.barRadius=2,s.barPad=1,s.barColor=&quot;#808BA4&quot;,s.prototype.enable=function(t,e,r){var o=this.gd._fullLayout,l=o.width,c=o.height;this.position=t;var u,f,h,p,d=this.position.l,g=this.position.w,m=this.position.t,v=this.position.h,y=this.position.direction,x=&quot;down&quot;===y,b=&quot;left&quot;===y,_=&quot;up&quot;===y,w=g,T=v;x||b||&quot;right&quot;===y||_||(this.position.direction=&quot;down&quot;,x=!0),x||_?(f=(u=d)+w,x?(h=m,T=(p=Math.min(h+T,c))-h):T=(p=m+T)-(h=Math.max(p-T,0))):(p=(h=m)+T,b?w=(f=d+w)-(u=Math.max(f-w,0)):(u=d,w=(f=Math.min(u+w,l))-u)),this._box={l:u,t:h,w:w,h:T};var k=g&gt;w,M=s.barLength+2*s.barPad,A=s.barWidth+2*s.barPad,S=d,E=m+v;E+A&gt;c&amp;&amp;(E=c-A);var C=this.container.selectAll(&quot;rect.scrollbar-horizontal&quot;).data(k?[0]:[]);C.exit().on(&quot;.drag&quot;,null).remove(),C.enter().append(&quot;rect&quot;).classed(&quot;scrollbar-horizontal&quot;,!0).call(i.fill,s.barColor),k?(this.hbar=C.attr({rx:s.barRadius,ry:s.barRadius,x:S,y:E,width:M,height:A}),this._hbarXMin=S+M/2,this._hbarTranslateMax=w-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var L=v&gt;T,I=s.barWidth+2*s.barPad,P=s.barLength+2*s.barPad,z=d+g,O=m;z+I&gt;l&amp;&amp;(z=l-I);var D=this.container.selectAll(&quot;rect.scrollbar-vertical&quot;).data(L?[0]:[]);D.exit().on(&quot;.drag&quot;,null).remove(),D.enter().append(&quot;rect&quot;).classed(&quot;scrollbar-vertical&quot;,!0).call(i.fill,s.barColor),L?(this.vbar=D.attr({rx:s.barRadius,ry:s.barRadius,x:z,y:O,width:I,height:P}),this._vbarYMin=O+P/2,this._vbarTranslateMax=T-P):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var R=this.id,F=u-.5,B=L?f+I+.5:f+.5,N=h-.5,j=k?p+A+.5:p+.5,U=o._topdefs.selectAll(&quot;#&quot;+R).data(k||L?[0]:[]);if(U.exit().remove(),U.enter().append(&quot;clipPath&quot;).attr(&quot;id&quot;,R).append(&quot;rect&quot;),k||L?(this._clipRect=U.select(&quot;rect&quot;).attr({x:Math.floor(F),y:Math.floor(N),width:Math.ceil(B)-Math.floor(F),height:Math.ceil(j)-Math.floor(N)}),this.container.call(a.setClipUrl,R,this.gd),this.bg.attr({x:d,y:m,width:g,height:v})):(this.bg.attr({width:0,height:0}),this.container.on(&quot;wheel&quot;,null).on(&quot;.drag&quot;,null).call(a.setClipUrl,null),delete this._clipRect),k||L){var V=n.behavior.drag().on(&quot;dragstart&quot;,(function(){n.event.sourceEvent.preventDefault()})).on(&quot;drag&quot;,this._onBoxDrag.bind(this));this.container.on(&quot;wheel&quot;,null).on(&quot;wheel&quot;,this._onBoxWheel.bind(this)).on(&quot;.drag&quot;,null).call(V);var q=n.behavior.drag().on(&quot;dragstart&quot;,(function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()})).on(&quot;drag&quot;,this._onBarDrag.bind(this));k&amp;&amp;this.hbar.on(&quot;.drag&quot;,null).call(q),L&amp;&amp;this.vbar.on(&quot;.drag&quot;,null).call(q)}this.setTranslate(e,r)},s.prototype.disable=function(){(this.hbar||this.vbar)&amp;&amp;(this.bg.attr({width:0,height:0}),this.container.on(&quot;wheel&quot;,null).on(&quot;.drag&quot;,null).call(a.setClipUrl,null),delete this._clipRect),this.hbar&amp;&amp;(this.hbar.on(&quot;.drag&quot;,null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&amp;&amp;(this.vbar.on(&quot;.drag&quot;,null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},s.prototype._onBoxDrag=function(){var t=this.translateX,e=this.translateY;this.hbar&amp;&amp;(t-=n.event.dx),this.vbar&amp;&amp;(e-=n.event.dy),this.setTranslate(t,e)},s.prototype._onBoxWheel=function(){var t=this.translateX,e=this.translateY;this.hbar&amp;&amp;(t+=n.event.deltaY),this.vbar&amp;&amp;(e+=n.event.deltaY),this.setTranslate(t,e)},s.prototype._onBarDrag=function(){var t=this.translateX,e=this.translateY;if(this.hbar){var r=t+this._hbarXMin,i=r+this._hbarTranslateMax;t=(o.constrain(n.event.x,r,i)-r)/(i-r)*(this.position.w-this._box.w)}if(this.vbar){var a=e+this._vbarYMin,s=a+this._vbarTranslateMax;e=(o.constrain(n.event.y,a,s)-a)/(s-a)*(this.position.h-this._box.h)}this.setTranslate(t,e)},s.prototype.setTranslate=function(t,e){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=o.constrain(t||0,0,r),e=o.constrain(e||0,0,n),this.translateX=t,this.translateY=e,this.container.call(a.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-e),this._clipRect&amp;&amp;this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+e-.5)}),this.hbar){var i=t/r;this.hbar.call(a.setTranslate,t+i*this._hbarTranslateMax,e)}if(this.vbar){var s=e/n;this.vbar.call(a.setTranslate,t,e+s*this._vbarTranslateMax)}}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;../drawing&quot;:665,d3:169}],745:[function(t,e,r){&quot;use strict&quot;;e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:&quot;right&quot;,right:&quot;left&quot;,top:&quot;bottom&quot;,bottom:&quot;top&quot;}}},{}],746:[function(t,e,r){&quot;use strict&quot;;e.exports={axisRefDescription:function(t,e,r){return[&quot;If set to a&quot;,t,&quot;axis id (e.g. *&quot;+t+&quot;* or&quot;,&quot;*&quot;+t+&quot;2*), the `&quot;+t+&quot;` position refers to a&quot;,t,&quot;coordinate. If set to *paper*, the `&quot;+t+&quot;`&quot;,&quot;position refers to the distance from the&quot;,e,&quot;of the plotting&quot;,&quot;area in normalized coordinates where *0* (*1*) corresponds to the&quot;,e,&quot;(&quot;+r+&quot;). If set to a&quot;,t,&quot;axis ID followed by&quot;,&quot;*domain* (separated by a space), the position behaves like for&quot;,&quot;*paper*, but refers to the distance in fractions of the domain&quot;,&quot;length from the&quot;,e,&quot;of the domain of that axis: e.g.,&quot;,&quot;*&quot;+t+&quot;2 domain* refers to the domain of the second&quot;,t,&quot; axis and a&quot;,t,&quot;position of 0.5 refers to the&quot;,&quot;point between the&quot;,e,&quot;and the&quot;,r,&quot;of the domain of the&quot;,&quot;second&quot;,t,&quot;axis.&quot;].join(&quot; &quot;)}}},{}],747:[function(t,e,r){&quot;use strict&quot;;e.exports={INCREASING:{COLOR:&quot;#3D9970&quot;,SYMBOL:&quot;\u25b2&quot;},DECREASING:{COLOR:&quot;#FF4136&quot;,SYMBOL:&quot;\u25bc&quot;}}},{}],748:[function(t,e,r){&quot;use strict&quot;;e.exports={FORMAT_LINK:&quot;https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format&quot;,DATE_FORMAT_LINK:&quot;https://github.com/d3/d3-time-format#locale_format&quot;}},{}],749:[function(t,e,r){&quot;use strict&quot;;e.exports={COMPARISON_OPS:[&quot;=&quot;,&quot;!=&quot;,&quot;&lt;&quot;,&quot;&gt;=&quot;,&quot;&gt;&quot;,&quot;&lt;=&quot;],COMPARISON_OPS2:[&quot;=&quot;,&quot;&lt;&quot;,&quot;&gt;=&quot;,&quot;&gt;&quot;,&quot;&lt;=&quot;],INTERVAL_OPS:[&quot;[]&quot;,&quot;()&quot;,&quot;[)&quot;,&quot;(]&quot;,&quot;][&quot;,&quot;)(&quot;,&quot;](&quot;,&quot;)[&quot;],SET_OPS:[&quot;{}&quot;,&quot;}{&quot;],CONSTRAINT_REDUCTION:{&quot;=&quot;:&quot;=&quot;,&quot;&lt;&quot;:&quot;&lt;&quot;,&quot;&lt;=&quot;:&quot;&lt;&quot;,&quot;&gt;&quot;:&quot;&gt;&quot;,&quot;&gt;=&quot;:&quot;&gt;&quot;,&quot;[]&quot;:&quot;[]&quot;,&quot;()&quot;:&quot;[]&quot;,&quot;[)&quot;:&quot;[]&quot;,&quot;(]&quot;:&quot;[]&quot;,&quot;][&quot;:&quot;][&quot;,&quot;)(&quot;:&quot;][&quot;,&quot;](&quot;:&quot;][&quot;,&quot;)[&quot;:&quot;][&quot;}}},{}],750:[function(t,e,r){&quot;use strict&quot;;e.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},{}],751:[function(t,e,r){&quot;use strict&quot;;e.exports={circle:&quot;\u25cf&quot;,&quot;circle-open&quot;:&quot;\u25cb&quot;,square:&quot;\u25a0&quot;,&quot;square-open&quot;:&quot;\u25a1&quot;,diamond:&quot;\u25c6&quot;,&quot;diamond-open&quot;:&quot;\u25c7&quot;,cross:&quot;+&quot;,x:&quot;\u274c&quot;}},{}],752:[function(t,e,r){&quot;use strict&quot;;e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},{}],753:[function(t,e,r){&quot;use strict&quot;;e.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:&quot;\u2212&quot;}},{}],754:[function(t,e,r){&quot;use strict&quot;;r.xmlns=&quot;http://www.w3.org/2000/xmlns/&quot;,r.svg=&quot;http://www.w3.org/2000/svg&quot;,r.xlink=&quot;http://www.w3.org/1999/xlink&quot;,r.svgAttrs={xmlns:r.svg,&quot;xmlns:xlink&quot;:r.xlink}},{}],755:[function(t,e,r){&quot;use strict&quot;;r.version=t(&quot;./version&quot;).version,t(&quot;es6-promise&quot;).polyfill(),t(&quot;../build/plotcss&quot;),t(&quot;./fonts/mathjax_config&quot;)();for(var n=t(&quot;./registry&quot;),i=r.register=n.register,a=t(&quot;./plot_api&quot;),o=Object.keys(a),s=0;s&lt;o.length;s++){var l=o[s];&quot;_&quot;!==l.charAt(0)&amp;&amp;(r[l]=a[l]),i({moduleType:&quot;apiMethod&quot;,name:l,fn:a[l]})}i(t(&quot;./traces/scatter&quot;)),i([t(&quot;./components/legend&quot;),t(&quot;./components/fx&quot;),t(&quot;./components/annotations&quot;),t(&quot;./components/annotations3d&quot;),t(&quot;./components/shapes&quot;),t(&quot;./components/images&quot;),t(&quot;./components/updatemenus&quot;),t(&quot;./components/sliders&quot;),t(&quot;./components/rangeslider&quot;),t(&quot;./components/rangeselector&quot;),t(&quot;./components/grid&quot;),t(&quot;./components/errorbars&quot;),t(&quot;./components/colorscale&quot;),t(&quot;./components/colorbar&quot;)]),i([t(&quot;./locale-en&quot;),t(&quot;./locale-en-us&quot;)]),window.PlotlyLocales&amp;&amp;Array.isArray(window.PlotlyLocales)&amp;&amp;(i(window.PlotlyLocales),delete window.PlotlyLocales),r.Icons=t(&quot;./fonts/ploticon&quot;),r.Plots=t(&quot;./plots/plots&quot;),r.Fx=t(&quot;./components/fx&quot;),r.Snapshot=t(&quot;./snapshot&quot;),r.PlotSchema=t(&quot;./plot_api/plot_schema&quot;),r.Queue=t(&quot;./lib/queue&quot;),r.d3=t(&quot;d3&quot;)},{&quot;../build/plotcss&quot;:1,&quot;./components/annotations&quot;:634,&quot;./components/annotations3d&quot;:639,&quot;./components/colorbar&quot;:649,&quot;./components/colorscale&quot;:655,&quot;./components/errorbars&quot;:671,&quot;./components/fx&quot;:683,&quot;./components/grid&quot;:687,&quot;./components/images&quot;:692,&quot;./components/legend&quot;:700,&quot;./components/rangeselector&quot;:711,&quot;./components/rangeslider&quot;:718,&quot;./components/shapes&quot;:732,&quot;./components/sliders&quot;:737,&quot;./components/updatemenus&quot;:743,&quot;./fonts/mathjax_config&quot;:756,&quot;./fonts/ploticon&quot;:757,&quot;./lib/queue&quot;:794,&quot;./locale-en&quot;:808,&quot;./locale-en-us&quot;:807,&quot;./plot_api&quot;:812,&quot;./plot_api/plot_schema&quot;:816,&quot;./plots/plots&quot;:891,&quot;./registry&quot;:911,&quot;./snapshot&quot;:916,&quot;./traces/scatter&quot;:1199,&quot;./version&quot;:1370,d3:169,&quot;es6-promise&quot;:224}],756:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){&quot;undefined&quot;!=typeof MathJax&amp;&amp;(&quot;local&quot;!==(window.PlotlyConfig||{}).MathJaxConfig&amp;&amp;(MathJax.Hub.Config({messageStyle:&quot;none&quot;,skipStartupTypeset:!0,displayAlign:&quot;left&quot;,tex2jax:{inlineMath:[[&quot;$&quot;,&quot;$&quot;],[&quot;\\(&quot;,&quot;\\)&quot;]]}}),MathJax.Hub.Configured()))}},{}],757:[function(t,e,r){&quot;use strict&quot;;e.exports={undo:{width:857.1,height:1e3,path:&quot;m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},home:{width:928.6,height:1e3,path:&quot;m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;camera-retro&quot;:{width:1e3,height:1e3,path:&quot;m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoombox:{width:1e3,height:1e3,path:&quot;m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},pan:{width:1e3,height:1e3,path:&quot;m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoom_plus:{width:875,height:1e3,path:&quot;m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoom_minus:{width:875,height:1e3,path:&quot;m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},autoscale:{width:1e3,height:1e3,path:&quot;m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},tooltip_basic:{width:1500,height:1e3,path:&quot;m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},tooltip_compare:{width:1125,height:1e3,path:&quot;m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},plotlylogo:{width:1542,height:1e3,path:&quot;m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;z-axis&quot;:{width:1e3,height:1e3,path:&quot;m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;3d_rotate&quot;:{width:1e3,height:1e3,path:&quot;m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},camera:{width:1e3,height:1e3,path:&quot;m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},movie:{width:1e3,height:1e3,path:&quot;m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},question:{width:857.1,height:1e3,path:&quot;m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},disk:{width:857.1,height:1e3,path:&quot;m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},drawopenpath:{width:70,height:70,path:&quot;M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z&quot;,transform:&quot;matrix(1 0 0 1 -15 -15)&quot;},drawclosedpath:{width:90,height:90,path:&quot;M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z&quot;,transform:&quot;matrix(1 0 0 1 -5 -5)&quot;},lasso:{width:1031,height:1e3,path:&quot;m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},selectbox:{width:1e3,height:1e3,path:&quot;m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},drawline:{width:70,height:70,path:&quot;M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z&quot;,transform:&quot;matrix(1 0 0 1 -15 -15)&quot;},drawrect:{width:80,height:80,path:&quot;M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},drawcircle:{width:80,height:80,path:&quot;M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},eraseshape:{width:80,height:80,path:&quot;M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},spikeline:{width:1e3,height:1e3,path:&quot;M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z&quot;,transform:&quot;matrix(1.5 0 0 -1.5 0 850)&quot;},pencil:{width:1792,height:1792,path:&quot;M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z&quot;,transform:&quot;matrix(1 0 0 1 0 1)&quot;},newplotlylogo:{name:&quot;newplotlylogo&quot;,svg:&quot;&lt;svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'&gt;&lt;defs&gt;&lt;style&gt;.cls-1 {fill: #3f4f75;} .cls-2 {fill: #80cfbe;} .cls-3 {fill: #fff;}&lt;/style&gt;&lt;/defs&gt;&lt;title&gt;plotly-logomark&lt;/title&gt;&lt;g id='symbol'&gt;&lt;rect class='cls-1' width='132' height='132' rx='6' ry='6'/&gt;&lt;circle class='cls-2' cx='78' cy='54' r='6'/&gt;&lt;circle class='cls-2' cx='102' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='78' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='54' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='30' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='30' cy='54' r='6'/&gt;&lt;path class='cls-3' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/&gt;&lt;path class='cls-3' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/&gt;&lt;path class='cls-3' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/&gt;&lt;path class='cls-3' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;}}},{}],758:[function(t,e,r){&quot;use strict&quot;;r.isLeftAnchor=function(t){return&quot;left&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&lt;=1/3},r.isCenterAnchor=function(t){return&quot;center&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&gt;1/3&amp;&amp;t.x&lt;2/3},r.isRightAnchor=function(t){return&quot;right&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&gt;=2/3},r.isTopAnchor=function(t){return&quot;top&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&gt;=2/3},r.isMiddleAnchor=function(t){return&quot;middle&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&gt;1/3&amp;&amp;t.y&lt;2/3},r.isBottomAnchor=function(t){return&quot;bottom&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&lt;=1/3}},{}],759:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./mod&quot;),i=n.mod,a=n.modHalf,o=Math.PI,s=2*o;function l(t){return Math.abs(t[1]-t[0])&gt;s-1e-14}function c(t,e){return a(e-t,s)}function u(t,e){if(l(e))return!0;var r,n;e[0]&lt;e[1]?(r=e[0],n=e[1]):(r=e[1],n=e[0]),(r=i(r,s))&gt;(n=i(n,s))&amp;&amp;(n+=s);var a=i(t,s),o=a+s;return a&gt;=r&amp;&amp;a&lt;=n||o&gt;=r&amp;&amp;o&lt;=n}function f(t,e,r,n,i,a,c){i=i||0,a=a||0;var u,f,h,p,d,g=l([r,n]);function m(t,e){return[t*Math.cos(e)+i,a-t*Math.sin(e)]}g?(u=0,f=o,h=s):r&lt;n?(u=r,h=n):(u=n,h=r),t&lt;e?(p=t,d=e):(p=e,d=t);var v,y=Math.abs(h-u)&lt;=o?0:1;function x(t,e,r){return&quot;A&quot;+[t,t]+&quot; &quot;+[0,y,r]+&quot; &quot;+m(t,e)}return g?v=null===p?&quot;M&quot;+m(d,u)+x(d,f,0)+x(d,h,0)+&quot;Z&quot;:&quot;M&quot;+m(p,u)+x(p,f,0)+x(p,h,0)+&quot;ZM&quot;+m(d,u)+x(d,f,1)+x(d,h,1)+&quot;Z&quot;:null===p?(v=&quot;M&quot;+m(d,u)+x(d,h,0),c&amp;&amp;(v+=&quot;L0,0Z&quot;)):v=&quot;M&quot;+m(p,u)+&quot;L&quot;+m(d,u)+x(d,h,0)+&quot;L&quot;+m(p,h)+x(p,u,1)+&quot;Z&quot;,v}e.exports={deg2rad:function(t){return t/180*o},rad2deg:function(t){return t/o*180},angleDelta:c,angleDist:function(t,e){return Math.abs(c(t,e))},isFullCircle:l,isAngleInsideSector:u,isPtInsideSector:function(t,e,r,n){return!!u(e,n)&amp;&amp;(r[0]&lt;r[1]?(i=r[0],a=r[1]):(i=r[1],a=r[0]),t&gt;=i&amp;&amp;t&lt;=a);var i,a},pathArc:function(t,e,r,n,i){return f(null,t,e,r,n,i,0)},pathSector:function(t,e,r,n,i){return f(null,t,e,r,n,i,1)},pathAnnulus:function(t,e,r,n,i,a){return f(t,e,r,n,i,a,1)}}},{&quot;./mod&quot;:785}],760:[function(t,e,r){&quot;use strict&quot;;var n=Array.isArray,i=&quot;undefined&quot;!=typeof ArrayBuffer&amp;&amp;ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}},a=&quot;undefined&quot;==typeof DataView?function(){}:DataView;function o(t){return i.isView(t)&amp;&amp;!(t instanceof a)}function s(t){return n(t)||o(t)}function l(t,e,r){if(s(t)){if(s(t[0])){for(var n=r,i=0;i&lt;t.length;i++)n=e(n,t[i].length);return n}return t.length}return 0}r.isTypedArray=o,r.isArrayOrTypedArray=s,r.isArray1D=function(t){return!s(t[0])},r.ensureArray=function(t,e){return n(t)||(t=[]),t.length=e,t},r.concat=function(){var t,e,r,i,a,o,s,l,c=[],u=!0,f=0;for(r=0;r&lt;arguments.length;r++)(o=(i=arguments[r]).length)&amp;&amp;(e?c.push(i):(e=i,a=o),n(i)?t=!1:(u=!1,f?t!==i.constructor&amp;&amp;(t=!1):t=i.constructor),f+=o);if(!f)return[];if(!c.length)return e;if(u)return e.concat.apply(e,c);if(t){for((s=new t(f)).set(e),r=0;r&lt;c.length;r++)i=c[r],s.set(i,a),a+=i.length;return s}for(s=new Array(f),l=0;l&lt;e.length;l++)s[l]=e[l];for(r=0;r&lt;c.length;r++){for(i=c[r],l=0;l&lt;i.length;l++)s[a+l]=i[l];a+=l}return s},r.maxRowLength=function(t){return l(t,Math.max,0)},r.minRowLength=function(t){return l(t,Math.min,1/0)}},{}],761:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../constants/numerical&quot;).BADNUM,a=/^['&quot;%,$#\s']+|[, ]|['&quot;%,$#\s']+$/g;e.exports=function(t){return&quot;string&quot;==typeof t&amp;&amp;(t=t.replace(a,&quot;&quot;)),n(t)?Number(t):i}},{&quot;../constants/numerical&quot;:753,&quot;fast-isnumeric&quot;:241}],762:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t._fullLayout;e._glcanvas&amp;&amp;e._glcanvas.size()&amp;&amp;e._glcanvas.each((function(t){t.regl&amp;&amp;t.regl.clear({color:!0,depth:!0})}))}},{}],763:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){t._responsiveChartHandler&amp;&amp;(window.removeEventListener(&quot;resize&quot;,t._responsiveChartHandler),delete t._responsiveChartHandler)}},{}],764:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../plots/attributes&quot;),o=t(&quot;../components/colorscale/scales&quot;),s=t(&quot;../constants/interactions&quot;).DESELECTDIM,l=t(&quot;./nested_property&quot;),c=t(&quot;./regex&quot;).counter,u=t(&quot;./mod&quot;).modHalf,f=t(&quot;./array&quot;).isArrayOrTypedArray;function h(t,e){var n=r.valObjectMeta[e.valType];if(e.arrayOk&amp;&amp;f(t))return!0;if(n.validateFunction)return n.validateFunction(t,e);var i={},a=i,o={set:function(t){a=t}};return n.coerceFunction(t,o,i,e),a!==i}r.valObjectMeta={data_array:{coerceFunction:function(t,e,r){f(t)?e.set(t):void 0!==r&amp;&amp;e.set(r)}},enumerated:{coerceFunction:function(t,e,r,n){n.coerceNumber&amp;&amp;(t=+t),-1===n.values.indexOf(t)?e.set(r):e.set(t)},validateFunction:function(t,e){e.coerceNumber&amp;&amp;(t=+t);for(var r=e.values,n=0;n&lt;r.length;n++){var i=String(r[n]);if(&quot;/&quot;===i.charAt(0)&amp;&amp;&quot;/&quot;===i.charAt(i.length-1)){if(new RegExp(i.substr(1,i.length-2)).test(t))return!0}else if(t===r[n])return!0}return!1}},boolean:{coerceFunction:function(t,e,r){!0===t||!1===t?e.set(t):e.set(r)}},number:{coerceFunction:function(t,e,r,i){!n(t)||void 0!==i.min&amp;&amp;t&lt;i.min||void 0!==i.max&amp;&amp;t&gt;i.max?e.set(r):e.set(+t)}},integer:{coerceFunction:function(t,e,r,i){t%1||!n(t)||void 0!==i.min&amp;&amp;t&lt;i.min||void 0!==i.max&amp;&amp;t&gt;i.max?e.set(r):e.set(+t)}},string:{coerceFunction:function(t,e,r,n){if(&quot;string&quot;!=typeof t){var i=&quot;number&quot;==typeof t;!0!==n.strict&amp;&amp;i?e.set(String(t)):e.set(r)}else n.noBlank&amp;&amp;!t?e.set(r):e.set(t)}},color:{coerceFunction:function(t,e,r){i(t).isValid()?e.set(t):e.set(r)}},colorlist:{coerceFunction:function(t,e,r){Array.isArray(t)&amp;&amp;t.length&amp;&amp;t.every((function(t){return i(t).isValid()}))?e.set(t):e.set(r)}},colorscale:{coerceFunction:function(t,e,r){e.set(o.get(t,r))}},angle:{coerceFunction:function(t,e,r){&quot;auto&quot;===t?e.set(&quot;auto&quot;):n(t)?e.set(u(+t,360)):e.set(r)}},subplotid:{coerceFunction:function(t,e,r,n){var i=n.regex||c(r);&quot;string&quot;==typeof t&amp;&amp;i.test(t)?e.set(t):e.set(r)},validateFunction:function(t,e){var r=e.dflt;return t===r||&quot;string&quot;==typeof t&amp;&amp;!!c(r).test(t)}},flaglist:{coerceFunction:function(t,e,r,n){if(&quot;string&quot;==typeof t)if(-1===(n.extras||[]).indexOf(t)){for(var i=t.split(&quot;+&quot;),a=0;a&lt;i.length;){var o=i[a];-1===n.flags.indexOf(o)||i.indexOf(o)&lt;a?i.splice(a,1):a++}i.length?e.set(i.join(&quot;+&quot;)):e.set(r)}else e.set(t);else e.set(r)}},any:{coerceFunction:function(t,e,r){void 0===t?e.set(r):e.set(t)}},info_array:{coerceFunction:function(t,e,n,i){function a(t,e,n){var i,a={set:function(t){i=t}};return void 0===n&amp;&amp;(n=e.dflt),r.valObjectMeta[e.valType].coerceFunction(t,a,n,e),i}var o=2===i.dimensions||&quot;1-2&quot;===i.dimensions&amp;&amp;Array.isArray(t)&amp;&amp;Array.isArray(t[0]);if(Array.isArray(t)){var s,l,c,u,f,h,p=i.items,d=[],g=Array.isArray(p),m=g&amp;&amp;o&amp;&amp;Array.isArray(p[0]),v=o&amp;&amp;g&amp;&amp;!m,y=g&amp;&amp;!v?p.length:t.length;if(n=Array.isArray(n)?n:[],o)for(s=0;s&lt;y;s++)for(d[s]=[],c=Array.isArray(t[s])?t[s]:[],f=v?p.length:g?p[s].length:c.length,l=0;l&lt;f;l++)u=v?p[l]:g?p[s][l]:p,void 0!==(h=a(c[l],u,(n[s]||[])[l]))&amp;&amp;(d[s][l]=h);else for(s=0;s&lt;y;s++)void 0!==(h=a(t[s],g?p[s]:p,n[s]))&amp;&amp;(d[s]=h);e.set(d)}else e.set(n)},validateFunction:function(t,e){if(!Array.isArray(t))return!1;var r=e.items,n=Array.isArray(r),i=2===e.dimensions;if(!e.freeLength&amp;&amp;t.length!==r.length)return!1;for(var a=0;a&lt;t.length;a++)if(i){if(!Array.isArray(t[a])||!e.freeLength&amp;&amp;t[a].length!==r[a].length)return!1;for(var o=0;o&lt;t[a].length;o++)if(!h(t[a][o],n?r[a][o]:r))return!1}else if(!h(t[a],n?r[a]:r))return!1;return!0}}},r.coerce=function(t,e,n,i,a){var o=l(n,i).get(),s=l(t,i),c=l(e,i),u=s.get(),p=e._template;if(void 0===u&amp;&amp;p&amp;&amp;(u=l(p,i).get(),p=0),void 0===a&amp;&amp;(a=o.dflt),o.arrayOk&amp;&amp;f(u))return c.set(u),u;var d=r.valObjectMeta[o.valType].coerceFunction;d(u,c,a,o);var g=c.get();return p&amp;&amp;g===a&amp;&amp;!h(u,o)&amp;&amp;(d(u=l(p,i).get(),c,a,o),g=c.get()),g},r.coerce2=function(t,e,n,i,a){var o=l(t,i),s=r.coerce(t,e,n,i,a),c=o.get();return null!=c&amp;&amp;s},r.coerceFont=function(t,e,r){var n={};return r=r||{},n.family=t(e+&quot;.family&quot;,r.family),n.size=t(e+&quot;.size&quot;,r.size),n.color=t(e+&quot;.color&quot;,r.color),n},r.coerceHoverinfo=function(t,e,n){var i,o=e._module.attributes,s=o.hoverinfo?o:a,l=s.hoverinfo;if(1===n._dataLength){var c=&quot;all&quot;===l.dflt?l.flags.slice():l.dflt.split(&quot;+&quot;);c.splice(c.indexOf(&quot;name&quot;),1),i=c.join(&quot;+&quot;)}return r.coerce(t,e,s,&quot;hoverinfo&quot;,i)},r.coerceSelectionMarkerOpacity=function(t,e){if(t.marker){var r,n,i=t.marker.opacity;if(void 0!==i)f(i)||t.selected||t.unselected||(r=i,n=s*i),e(&quot;selected.marker.opacity&quot;,r),e(&quot;unselected.marker.opacity&quot;,n)}},r.validate=h},{&quot;../components/colorscale/scales&quot;:658,&quot;../constants/interactions&quot;:752,&quot;../plots/attributes&quot;:824,&quot;./array&quot;:760,&quot;./mod&quot;:785,&quot;./nested_property&quot;:786,&quot;./regex&quot;:795,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],765:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;d3-time-format&quot;).timeFormat,o=t(&quot;fast-isnumeric&quot;),s=t(&quot;./loggers&quot;),l=t(&quot;./mod&quot;).mod,c=t(&quot;../constants/numerical&quot;),u=c.BADNUM,f=c.ONEDAY,h=c.ONEHOUR,p=c.ONEMIN,d=c.ONESEC,g=c.EPOCHJD,m=t(&quot;../registry&quot;),v=t(&quot;d3-time-format&quot;).utcFormat,y=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,x=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,b=(new Date).getFullYear()-70;function _(t){return t&amp;&amp;m.componentsRegistry.calendars&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;&quot;gregorian&quot;!==t}function w(t,e){return String(t+Math.pow(10,e)).substr(1)}r.dateTick0=function(t,e){var n=function(t,e){return _(t)?e?m.getComponentMethod(&quot;calendars&quot;,&quot;CANONICAL_SUNDAY&quot;)[t]:m.getComponentMethod(&quot;calendars&quot;,&quot;CANONICAL_TICK&quot;)[t]:e?&quot;2000-01-02&quot;:&quot;2000-01-01&quot;}(t,!!e);if(e&lt;2)return n;var i=r.dateTime2ms(n,t);return i+=f*(e-1),r.ms2DateTime(i,0,t)},r.dfltRange=function(t){return _(t)?m.getComponentMethod(&quot;calendars&quot;,&quot;DFLTRANGE&quot;)[t]:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;]},r.isJSDate=function(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t&amp;&amp;&quot;function&quot;==typeof t.getTime},r.dateTime2ms=function(t,e){if(r.isJSDate(t)){var a=t.getTimezoneOffset()*p,o=(t.getUTCMinutes()-t.getMinutes())*p+(t.getUTCSeconds()-t.getSeconds())*d+(t.getUTCMilliseconds()-t.getMilliseconds());if(o){var s=3*p;a=a-s/2+l(o-a+s/2,s)}return(t=Number(t)-a)&gt;=n&amp;&amp;t&lt;=i?t:u}if(&quot;string&quot;!=typeof t&amp;&amp;&quot;number&quot;!=typeof t)return u;t=String(t);var c=_(e),v=t.charAt(0);!c||&quot;G&quot;!==v&amp;&amp;&quot;g&quot;!==v||(t=t.substr(1),e=&quot;&quot;);var w=c&amp;&amp;&quot;chinese&quot;===e.substr(0,7),T=t.match(w?x:y);if(!T)return u;var k=T[1],M=T[3]||&quot;1&quot;,A=Number(T[5]||1),S=Number(T[7]||0),E=Number(T[9]||0),C=Number(T[11]||0);if(c){if(2===k.length)return u;var L;k=Number(k);try{var I=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(e);if(w){var P=&quot;i&quot;===M.charAt(M.length-1);M=parseInt(M,10),L=I.newDate(k,I.toMonthIndex(k,M,P),A)}else L=I.newDate(k,Number(M),A)}catch(t){return u}return L?(L.toJD()-g)*f+S*h+E*p+C*d:u}k=2===k.length?(Number(k)+2e3-b)%100+b:Number(k),M-=1;var z=new Date(Date.UTC(2e3,M,A,S,E));return z.setUTCFullYear(k),z.getUTCMonth()!==M||z.getUTCDate()!==A?u:z.getTime()+C*d},n=r.MIN_MS=r.dateTime2ms(&quot;-9999&quot;),i=r.MAX_MS=r.dateTime2ms(&quot;9999-12-31 23:59:59.9999&quot;),r.isDateTime=function(t,e){return r.dateTime2ms(t,e)!==u};var T=90*f,k=3*h,M=5*p;function A(t,e,r,n,i){if((e||r||n||i)&amp;&amp;(t+=&quot; &quot;+w(e,2)+&quot;:&quot;+w(r,2),(n||i)&amp;&amp;(t+=&quot;:&quot;+w(n,2),i))){for(var a=4;i%10==0;)a-=1,i/=10;t+=&quot;.&quot;+w(i,a)}return t}r.ms2DateTime=function(t,e,r){if(&quot;number&quot;!=typeof t||!(t&gt;=n&amp;&amp;t&lt;=i))return u;e||(e=0);var a,o,s,c,y,x,b=Math.floor(10*l(t+.05,1)),w=Math.round(t-b/10);if(_(r)){var S=Math.floor(w/f)+g,E=Math.floor(l(t,f));try{a=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(r).fromJD(S).formatDate(&quot;yyyy-mm-dd&quot;)}catch(t){a=v(&quot;G%Y-%m-%d&quot;)(new Date(w))}if(&quot;-&quot;===a.charAt(0))for(;a.length&lt;11;)a=&quot;-0&quot;+a.substr(1);else for(;a.length&lt;10;)a=&quot;0&quot;+a;o=e&lt;T?Math.floor(E/h):0,s=e&lt;T?Math.floor(E%h/p):0,c=e&lt;k?Math.floor(E%p/d):0,y=e&lt;M?E%d*10+b:0}else x=new Date(w),a=v(&quot;%Y-%m-%d&quot;)(x),o=e&lt;T?x.getUTCHours():0,s=e&lt;T?x.getUTCMinutes():0,c=e&lt;k?x.getUTCSeconds():0,y=e&lt;M?10*x.getUTCMilliseconds()+b:0;return A(a,o,s,c,y)},r.ms2DateTimeLocal=function(t){if(!(t&gt;=n+f&amp;&amp;t&lt;=i-f))return u;var e=Math.floor(10*l(t+.05,1)),r=new Date(Math.round(t-e/10));return A(a(&quot;%Y-%m-%d&quot;)(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+e)},r.cleanDate=function(t,e,n){if(t===u)return e;if(r.isJSDate(t)||&quot;number&quot;==typeof t&amp;&amp;isFinite(t)){if(_(n))return s.error(&quot;JS Dates and milliseconds are incompatible with world calendars&quot;,t),e;if(!(t=r.ms2DateTimeLocal(+t))&amp;&amp;void 0!==e)return e}else if(!r.isDateTime(t,n))return s.error(&quot;unrecognized date&quot;,t),e;return t};var S=/%\d?f/g;function E(t,e,r,n){t=t.replace(S,(function(t){var r=Math.min(+t.charAt(1)||6,6);return(e/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,&quot;&quot;)||&quot;0&quot;}));var i=new Date(Math.floor(e+.05));if(_(n))try{t=m.getComponentMethod(&quot;calendars&quot;,&quot;worldCalFmt&quot;)(t,e,n)}catch(t){return&quot;Invalid&quot;}return r(t)(i)}var C=[59,59.9,59.99,59.999,59.9999];r.formatDate=function(t,e,r,n,i,a){if(i=_(i)&amp;&amp;i,!e)if(&quot;y&quot;===r)e=a.year;else if(&quot;m&quot;===r)e=a.month;else{if(&quot;d&quot;!==r)return function(t,e){var r=l(t+.05,f),n=w(Math.floor(r/h),2)+&quot;:&quot;+w(l(Math.floor(r/p),60),2);if(&quot;M&quot;!==e){o(e)||(e=0);var i=(100+Math.min(l(t/d,60),C[e])).toFixed(e).substr(1);e&gt;0&amp;&amp;(i=i.replace(/0+$/,&quot;&quot;).replace(/[\.]$/,&quot;&quot;)),n+=&quot;:&quot;+i}return n}(t,r)+&quot;\n&quot;+E(a.dayMonthYear,t,n,i);e=a.dayMonth+&quot;\n&quot;+a.year}return E(e,t,n,i)};var L=3*f;r.incrementMonth=function(t,e,r){r=_(r)&amp;&amp;r;var n=l(t,f);if(t=Math.round(t-n),r)try{var i=Math.round(t/f)+g,a=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(r),o=a.fromJD(i);return e%12?a.add(o,e,&quot;m&quot;):a.add(o,e/12,&quot;y&quot;),(o.toJD()-g)*f+n}catch(e){s.error(&quot;invalid ms &quot;+t+&quot; in calendar &quot;+r)}var c=new Date(t+L);return c.setUTCMonth(c.getUTCMonth()+e)+n-L},r.findExactDates=function(t,e){for(var r,n,i=0,a=0,s=0,l=0,c=_(e)&amp;&amp;m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(e),u=0;u&lt;t.length;u++)if(n=t[u],o(n)){if(!(n%f))if(c)try{1===(r=c.fromJD(n/f+g)).day()?1===r.month()?i++:a++:s++}catch(t){}else 1===(r=new Date(n)).getUTCDate()?0===r.getUTCMonth()?i++:a++:s++}else l++;s+=a+=i;var h=t.length-l;return{exactYears:i/h,exactMonths:a/h,exactDays:s/h}}},{&quot;../constants/numerical&quot;:753,&quot;../registry&quot;:911,&quot;./loggers&quot;:782,&quot;./mod&quot;:785,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],766:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;./loggers&quot;),a=t(&quot;./matrix&quot;),o=t(&quot;gl-mat4&quot;);function s(t){var e=t&amp;&amp;t.parentNode;e&amp;&amp;e.removeChild(t)}function l(t,e,r){var n=&quot;plotly.js-style-&quot;+t,a=document.getElementById(n);a||((a=document.createElement(&quot;style&quot;)).setAttribute(&quot;id&quot;,n),a.appendChild(document.createTextNode(&quot;&quot;)),document.head.appendChild(a));var o=a.sheet;o.insertRule?o.insertRule(e+&quot;{&quot;+r+&quot;}&quot;,0):o.addRule?o.addRule(e,r,0):i.warn(&quot;addStyleRule failed&quot;)}function c(t){var e=window.getComputedStyle(t,null),r=e.getPropertyValue(&quot;-webkit-transform&quot;)||e.getPropertyValue(&quot;-moz-transform&quot;)||e.getPropertyValue(&quot;-ms-transform&quot;)||e.getPropertyValue(&quot;-o-transform&quot;)||e.getPropertyValue(&quot;transform&quot;);return&quot;none&quot;===r?null:r.replace(&quot;matrix&quot;,&quot;&quot;).replace(&quot;3d&quot;,&quot;&quot;).slice(1,-1).split(&quot;,&quot;).map((function(t){return+t}))}function u(t){for(var e=[];f(t);)e.push(t),t=t.parentNode;return e}function f(t){return t&amp;&amp;(t instanceof Element||t instanceof HTMLElement)}e.exports={getGraphDiv:function(t){var e;if(&quot;string&quot;==typeof t){if(null===(e=document.getElementById(t)))throw new Error(&quot;No DOM element with id '&quot;+t+&quot;' exists on the page.&quot;);return e}if(null==t)throw new Error(&quot;DOM element provided is null or undefined&quot;);return t},isPlotDiv:function(t){var e=n.select(t);return e.node()instanceof HTMLElement&amp;&amp;e.size()&amp;&amp;e.classed(&quot;js-plotly-plot&quot;)},removeElement:s,addStyleRule:function(t,e){l(&quot;global&quot;,t,e)},addRelatedStyleRule:l,deleteRelatedStyleRule:function(t){var e=&quot;plotly.js-style-&quot;+t,r=document.getElementById(e);r&amp;&amp;s(r)},getFullTransformMatrix:function(t){var e=u(t),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach((function(t){var e=c(t);if(e){var n=a.convertCssMatrix(e);r=o.multiply(r,r,n)}})),r},getElementTransformMatrix:c,getElementAndAncestors:u,equalDomRects:function(t,e){return t&amp;&amp;e&amp;&amp;t.x===e.x&amp;&amp;t.y===e.y&amp;&amp;t.top===e.top&amp;&amp;t.left===e.left&amp;&amp;t.right===e.right&amp;&amp;t.bottom===e.bottom}}},{&quot;./loggers&quot;:782,&quot;./matrix&quot;:784,d3:169,&quot;gl-mat4&quot;:292}],767:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;events&quot;).EventEmitter,i={init:function(t){if(t._ev instanceof n)return t;var e=new n,r=new n;return t._ev=e,t._internalEv=r,t.on=e.on.bind(e),t.once=e.once.bind(e),t.removeListener=e.removeListener.bind(e),t.removeAllListeners=e.removeAllListeners.bind(e),t._internalOn=r.on.bind(r),t._internalOnce=r.once.bind(r),t._removeInternalListener=r.removeListener.bind(r),t._removeAllInternalListeners=r.removeAllListeners.bind(r),t.emit=function(n,i){&quot;undefined&quot;!=typeof jQuery&amp;&amp;jQuery(t).trigger(n,i),e.emit(n,i),r.emit(n,i)},t},triggerHandler:function(t,e,r){var n,i;&quot;undefined&quot;!=typeof jQuery&amp;&amp;(n=jQuery(t).triggerHandler(e,r));var a=t._ev;if(!a)return n;var o,s=a._events[e];if(!s)return n;function l(t){return t.listener?(a.removeListener(e,t.listener),t.fired?void 0:(t.fired=!0,t.listener.apply(a,[r]))):t.apply(a,[r])}for(s=Array.isArray(s)?s:[s],o=0;o&lt;s.length-1;o++)l(s[o]);return i=l(s[o]),void 0!==n?n:i},purge:function(t){return delete t._ev,delete t.on,delete t.once,delete t.removeListener,delete t.removeAllListeners,delete t.emit,delete t._ev,delete t._internalEv,delete t._internalOn,delete t._internalOnce,delete t._removeInternalListener,delete t._removeAllInternalListeners,t}};e.exports=i},{events:110}],768:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is_plain_object.js&quot;),i=Array.isArray;function a(t,e,r,o){var s,l,c,u,f,h,p=t[0],d=t.length;if(2===d&amp;&amp;i(p)&amp;&amp;i(t[1])&amp;&amp;0===p.length){if(function(t,e){var r,n;for(r=0;r&lt;t.length;r++){if(null!==(n=t[r])&amp;&amp;&quot;object&quot;==typeof n)return!1;void 0!==n&amp;&amp;(e[r]=n)}return!0}(t[1],p))return p;p.splice(0,p.length)}for(var g=1;g&lt;d;g++)for(l in s=t[g])c=p[l],u=s[l],o&amp;&amp;i(u)?p[l]=u:e&amp;&amp;u&amp;&amp;(n(u)||(f=i(u)))?(f?(f=!1,h=c&amp;&amp;i(c)?c:[]):h=c&amp;&amp;n(c)?c:{},p[l]=a([h,u],e,r,o)):(&quot;undefined&quot;!=typeof u||r)&amp;&amp;(p[l]=u);return p}r.extendFlat=function(){return a(arguments,!1,!1,!1)},r.extendDeep=function(){return a(arguments,!0,!1,!1)},r.extendDeepAll=function(){return a(arguments,!0,!0,!1)},r.extendDeepNoArrays=function(){return a(arguments,!0,!1,!0)}},{&quot;./is_plain_object.js&quot;:779}],769:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e={},r=[],n=0,i=0;i&lt;t.length;i++){var a=t[i];1!==e[a]&amp;&amp;(e[a]=1,r[n++]=a)}return r}},{}],770:[function(t,e,r){&quot;use strict&quot;;function n(t){return!0===t.visible}function i(t){var e=t[0].trace;return!0===e.visible&amp;&amp;0!==e._length}e.exports=function(t){for(var e,r=(e=t,Array.isArray(e)&amp;&amp;Array.isArray(e[0])&amp;&amp;e[0][0]&amp;&amp;e[0][0].trace?i:n),a=[],o=0;o&lt;t.length;o++){var s=t[o];r(s)&amp;&amp;a.push(s)}return a}},{}],771:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;country-regex&quot;),a=t(&quot;@turf/area&quot;),o=t(&quot;@turf/centroid&quot;),s=t(&quot;@turf/bbox&quot;),l=t(&quot;./identity&quot;),c=t(&quot;./loggers&quot;),u=t(&quot;./is_plain_object&quot;),f=t(&quot;./nested_property&quot;),h=t(&quot;./polygon&quot;),p=Object.keys(i),d={&quot;ISO-3&quot;:l,&quot;USA-states&quot;:l,&quot;country names&quot;:function(t){for(var e=0;e&lt;p.length;e++){var r=p[e];if(new RegExp(i[r]).test(t.trim().toLowerCase()))return r}return c.log(&quot;Unrecognized country name: &quot;+t+&quot;.&quot;),!1}};function g(t){var e=t.geojson,r=window.PlotlyGeoAssets||{},n=&quot;string&quot;==typeof e?r[e]:e;return u(n)?n:(c.error(&quot;Oops ... something went wrong when fetching &quot;+e),!1)}e.exports={locationToFeature:function(t,e,r){if(!e||&quot;string&quot;!=typeof e)return!1;var n,i,a,o=d[t](e);if(o){if(&quot;USA-states&quot;===t)for(n=[],a=0;a&lt;r.length;a++)(i=r[a]).properties&amp;&amp;i.properties.gu&amp;&amp;&quot;USA&quot;===i.properties.gu&amp;&amp;n.push(i);else n=r;for(a=0;a&lt;n.length;a++)if((i=n[a]).id===o)return i;c.log([&quot;Location with id&quot;,o,&quot;does not have a matching topojson feature at this resolution.&quot;].join(&quot; &quot;))}return!1},feature2polygons:function(t){var e,r,n,i,a=t.geometry,o=a.coordinates,s=t.id,l=[];function c(t){for(var e=0;e&lt;t.length-1;e++)if(t[e][0]&gt;0&amp;&amp;t[e+1][0]&lt;0)return e;return null}switch(e=&quot;RUS&quot;===s||&quot;FJI&quot;===s?function(t){var e;if(null===c(t))e=t;else for(e=new Array(t.length),i=0;i&lt;t.length;i++)e[i]=[t[i][0]&lt;0?t[i][0]+360:t[i][0],t[i][1]];l.push(h.tester(e))}:&quot;ATA&quot;===s?function(t){var e=c(t);if(null===e)return l.push(h.tester(t));var r=new Array(t.length+1),n=0;for(i=0;i&lt;t.length;i++)i&gt;e?r[n++]=[t[i][0]+360,t[i][1]]:i===e?(r[n++]=t[i],r[n++]=[t[i][0],-90]):r[n++]=t[i];var a=h.tester(r);a.pts.pop(),l.push(a)}:function(t){l.push(h.tester(t))},a.type){case&quot;MultiPolygon&quot;:for(r=0;r&lt;o.length;r++)for(n=0;n&lt;o[r].length;n++)e(o[r][n]);break;case&quot;Polygon&quot;:for(r=0;r&lt;o.length;r++)e(o[r])}return l},getTraceGeojson:g,extractTraceFeature:function(t){var e=t[0].trace,r=g(e);if(!r)return!1;var n,i={},s=[];for(n=0;n&lt;e._length;n++){var l=t[n];(l.loc||0===l.loc)&amp;&amp;(i[l.loc]=l)}function u(t){var r=f(t,e.featureidkey||&quot;id&quot;).get(),n=i[r];if(n){var l=t.geometry;if(&quot;Polygon&quot;===l.type||&quot;MultiPolygon&quot;===l.type){var u={type:&quot;Feature&quot;,id:r,geometry:l,properties:{}};u.properties.ct=function(t){var e,r=t.geometry;if(&quot;MultiPolygon&quot;===r.type)for(var n=r.coordinates,i=0,s=0;s&lt;n.length;s++){var l={type:&quot;Polygon&quot;,coordinates:n[s]},c=a.default(l);c&gt;i&amp;&amp;(i=c,e=l)}else e=r;return o.default(e).geometry.coordinates}(u),n.fIn=t,n.fOut=u,s.push(u)}else c.log([&quot;Location&quot;,n.loc,&quot;does not have a valid GeoJSON geometry.&quot;,&quot;Traces with locationmode *geojson-id* only support&quot;,&quot;*Polygon* and *MultiPolygon* geometries.&quot;].join(&quot; &quot;))}delete i[r]}switch(r.type){case&quot;FeatureCollection&quot;:var h=r.features;for(n=0;n&lt;h.length;n++)u(h[n]);break;case&quot;Feature&quot;:u(r);break;default:return c.warn([&quot;Invalid GeoJSON type&quot;,(r.type||&quot;none&quot;)+&quot;.&quot;,&quot;Traces with locationmode *geojson-id* only support&quot;,&quot;*FeatureCollection* and *Feature* types.&quot;].join(&quot; &quot;)),!1}for(var p in i)c.log([&quot;Location *&quot;+p+&quot;*&quot;,&quot;does not have a matching feature with id-key&quot;,&quot;*&quot;+e.featureidkey+&quot;*.&quot;].join(&quot; &quot;));return s},fetchTraceGeoData:function(t){var e=window.PlotlyGeoAssets||{},r=[];function i(t){return new Promise((function(r,i){n.json(t,(function(n,a){if(n){delete e[t];var o=404===n.status?'GeoJSON at URL &quot;'+t+'&quot; does not exist.':&quot;Unexpected error while fetching from &quot;+t;return i(new Error(o))}return e[t]=a,r(a)}))}))}function a(t){return new Promise((function(r,n){var i=0,a=setInterval((function(){return e[t]&amp;&amp;&quot;pending&quot;!==e[t]?(clearInterval(a),r(e[t])):i&gt;100?(clearInterval(a),n(&quot;Unexpected error while fetching from &quot;+t)):void i++}),50)}))}for(var o=0;o&lt;t.length;o++){var s=t[o][0].trace.geojson;&quot;string&quot;==typeof s&amp;&amp;(e[s]?&quot;pending&quot;===e[s]&amp;&amp;r.push(a(s)):(e[s]=&quot;pending&quot;,r.push(i(s))))}return r},computeBbox:function(t){return s.default(t)}}},{&quot;./identity&quot;:776,&quot;./is_plain_object&quot;:779,&quot;./loggers&quot;:782,&quot;./nested_property&quot;:786,&quot;./polygon&quot;:790,&quot;@turf/area&quot;:59,&quot;@turf/bbox&quot;:60,&quot;@turf/centroid&quot;:61,&quot;country-regex&quot;:139,d3:169}],772:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../constants/numerical&quot;).BADNUM;r.calcTraceToLineCoords=function(t){for(var e=t[0].trace.connectgaps,r=[],i=[],a=0;a&lt;t.length;a++){var o=t[a].lonlat;o[0]!==n?i.push(o):!e&amp;&amp;i.length&gt;0&amp;&amp;(r.push(i),i=[])}return i.length&gt;0&amp;&amp;r.push(i),r},r.makeLine=function(t){return 1===t.length?{type:&quot;LineString&quot;,coordinates:t[0]}:{type:&quot;MultiLineString&quot;,coordinates:t}},r.makePolygon=function(t){if(1===t.length)return{type:&quot;Polygon&quot;,coordinates:t};for(var e=new Array(t.length),r=0;r&lt;t.length;r++)e[r]=[t[r]];return{type:&quot;MultiPolygon&quot;,coordinates:e}},r.makeBlank=function(){return{type:&quot;Point&quot;,coordinates:[]}}},{&quot;../constants/numerical&quot;:753}],773:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o=t(&quot;./mod&quot;).mod;function s(t,e,r,n,i,a,o,s){var l=r-t,c=i-t,u=o-i,f=n-e,h=a-e,p=s-a,d=l*p-u*f;if(0===d)return null;var g=(c*p-u*h)/d,m=(c*f-l*h)/d;return m&lt;0||m&gt;1||g&lt;0||g&gt;1?null:{x:t+l*g,y:e+f*g}}function l(t,e,r,n,i){var a=n*t+i*e;if(a&lt;0)return n*n+i*i;if(a&gt;r){var o=n-t,s=i-e;return o*o+s*s}var l=n*e-i*t;return l*l/r}r.segmentsIntersect=s,r.segmentDistance=function(t,e,r,n,i,a,o,c){if(s(t,e,r,n,i,a,o,c))return 0;var u=r-t,f=n-e,h=o-i,p=c-a,d=u*u+f*f,g=h*h+p*p,m=Math.min(l(u,f,d,i-t,a-e),l(u,f,d,o-t,c-e),l(h,p,g,t-i,e-a),l(h,p,g,r-i,n-a));return Math.sqrt(m)},r.getTextLocation=function(t,e,r,s){if(t===i&amp;&amp;s===a||(n={},i=t,a=s),n[r])return n[r];var l=t.getPointAtLength(o(r-s/2,e)),c=t.getPointAtLength(o(r+s/2,e)),u=Math.atan((c.y-l.y)/(c.x-l.x)),f=t.getPointAtLength(o(r,e)),h={x:(4*f.x+l.x+c.x)/6,y:(4*f.y+l.y+c.y)/6,theta:u};return n[r]=h,h},r.clearLocationCache=function(){i=null},r.getVisibleSegment=function(t,e,r){var n,i,a=e.left,o=e.right,s=e.top,l=e.bottom,c=0,u=t.getTotalLength(),f=u;function h(e){var r=t.getPointAtLength(e);0===e?n=r:e===u&amp;&amp;(i=r);var c=r.x&lt;a?a-r.x:r.x&gt;o?r.x-o:0,f=r.y&lt;s?s-r.y:r.y&gt;l?r.y-l:0;return Math.sqrt(c*c+f*f)}for(var p=h(c);p;){if((c+=p+r)&gt;f)return;p=h(c)}for(p=h(f);p;){if(c&gt;(f-=p+r))return;p=h(f)}return{min:c,max:f,len:f-c,total:u,isClosed:0===c&amp;&amp;f===u&amp;&amp;Math.abs(n.x-i.x)&lt;.1&amp;&amp;Math.abs(n.y-i.y)&lt;.1}},r.findPointOnPath=function(t,e,r,n){for(var i,a,o,s=(n=n||{}).pathLength||t.getTotalLength(),l=n.tolerance||.001,c=n.iterationLimit||30,u=t.getPointAtLength(0)[r]&gt;t.getPointAtLength(s)[r]?-1:1,f=0,h=0,p=s;f&lt;c;){if(i=(h+p)/2,o=(a=t.getPointAtLength(i))[r]-e,Math.abs(o)&lt;l)return a;u*o&gt;0?p=i:h=i,f++}return a}},{&quot;./mod&quot;:785}],774:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;color-normalize&quot;),o=t(&quot;../components/colorscale&quot;),s=t(&quot;../components/color/attributes&quot;).defaultLine,l=t(&quot;./array&quot;).isArrayOrTypedArray,c=a(s);function u(t,e){var r=t;return r[3]*=e,r}function f(t){if(n(t))return c;var e=a(t);return e.length?e:c}function h(t){return n(t)?t:1}e.exports={formatColor:function(t,e,r){var n,i,s,p,d,g=t.color,m=l(g),v=l(e),y=o.extractOpts(t),x=[];if(n=void 0!==y.colorscale?o.makeColorScaleFuncFromTrace(t):f,i=m?function(t,e){return void 0===t[e]?c:a(n(t[e]))}:f,s=v?function(t,e){return void 0===t[e]?1:h(t[e])}:h,m||v)for(var b=0;b&lt;r;b++)p=i(g,b),d=s(e,b),x[b]=u(p,d);else x=u(a(g),e);return x},parseColorScale:function(t){var e=o.extractOpts(t),r=e.colorscale;return e.reversescale&amp;&amp;(r=o.flipScale(e.colorscale)),r.map((function(t){var e=t[0],r=i(t[1]).toRgb();return{index:e,rgb:[r.r,r.g,r.b,r.a]}}))}}},{&quot;../components/color/attributes&quot;:642,&quot;../components/colorscale&quot;:655,&quot;./array&quot;:760,&quot;color-normalize&quot;:125,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],775:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./identity&quot;);function i(t){return[t]}e.exports={keyFun:function(t){return t.key},repeat:i,descend:n,wrap:i,unwrap:function(t){return t[0]}}},{&quot;./identity&quot;:776}],776:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t}},{}],777:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(!e)return t;var r=1/Math.abs(e),n=r&gt;1?(r*t+r*e)/r:t+e,i=String(n).length;if(i&gt;16){var a=String(e).length;if(i&gt;=String(t).length+a){var o=parseFloat(n).toPrecision(12);-1===o.indexOf(&quot;e+&quot;)&amp;&amp;(n=+o)}}return n}},{}],778:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-time-format&quot;).utcFormat,a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../constants/numerical&quot;),s=o.FP_SAFE,l=o.BADNUM,c=e.exports={};c.nestedProperty=t(&quot;./nested_property&quot;),c.keyedContainer=t(&quot;./keyed_container&quot;),c.relativeAttr=t(&quot;./relative_attr&quot;),c.isPlainObject=t(&quot;./is_plain_object&quot;),c.toLogRange=t(&quot;./to_log_range&quot;),c.relinkPrivateKeys=t(&quot;./relink_private&quot;);var u=t(&quot;./array&quot;);c.isTypedArray=u.isTypedArray,c.isArrayOrTypedArray=u.isArrayOrTypedArray,c.isArray1D=u.isArray1D,c.ensureArray=u.ensureArray,c.concat=u.concat,c.maxRowLength=u.maxRowLength,c.minRowLength=u.minRowLength;var f=t(&quot;./mod&quot;);c.mod=f.mod,c.modHalf=f.modHalf;var h=t(&quot;./coerce&quot;);c.valObjectMeta=h.valObjectMeta,c.coerce=h.coerce,c.coerce2=h.coerce2,c.coerceFont=h.coerceFont,c.coerceHoverinfo=h.coerceHoverinfo,c.coerceSelectionMarkerOpacity=h.coerceSelectionMarkerOpacity,c.validate=h.validate;var p=t(&quot;./dates&quot;);c.dateTime2ms=p.dateTime2ms,c.isDateTime=p.isDateTime,c.ms2DateTime=p.ms2DateTime,c.ms2DateTimeLocal=p.ms2DateTimeLocal,c.cleanDate=p.cleanDate,c.isJSDate=p.isJSDate,c.formatDate=p.formatDate,c.incrementMonth=p.incrementMonth,c.dateTick0=p.dateTick0,c.dfltRange=p.dfltRange,c.findExactDates=p.findExactDates,c.MIN_MS=p.MIN_MS,c.MAX_MS=p.MAX_MS;var d=t(&quot;./search&quot;);c.findBin=d.findBin,c.sorterAsc=d.sorterAsc,c.sorterDes=d.sorterDes,c.distinctVals=d.distinctVals,c.roundUp=d.roundUp,c.sort=d.sort,c.findIndexOfMin=d.findIndexOfMin;var g=t(&quot;./stats&quot;);c.aggNums=g.aggNums,c.len=g.len,c.mean=g.mean,c.median=g.median,c.midRange=g.midRange,c.variance=g.variance,c.stdev=g.stdev,c.interp=g.interp;var m=t(&quot;./matrix&quot;);c.init2dArray=m.init2dArray,c.transposeRagged=m.transposeRagged,c.dot=m.dot,c.translationMatrix=m.translationMatrix,c.rotationMatrix=m.rotationMatrix,c.rotationXYMatrix=m.rotationXYMatrix,c.apply3DTransform=m.apply3DTransform,c.apply2DTransform=m.apply2DTransform,c.apply2DTransform2=m.apply2DTransform2,c.convertCssMatrix=m.convertCssMatrix,c.inverseTransformMatrix=m.inverseTransformMatrix;var v=t(&quot;./angles&quot;);c.deg2rad=v.deg2rad,c.rad2deg=v.rad2deg,c.angleDelta=v.angleDelta,c.angleDist=v.angleDist,c.isFullCircle=v.isFullCircle,c.isAngleInsideSector=v.isAngleInsideSector,c.isPtInsideSector=v.isPtInsideSector,c.pathArc=v.pathArc,c.pathSector=v.pathSector,c.pathAnnulus=v.pathAnnulus;var y=t(&quot;./anchor_utils&quot;);c.isLeftAnchor=y.isLeftAnchor,c.isCenterAnchor=y.isCenterAnchor,c.isRightAnchor=y.isRightAnchor,c.isTopAnchor=y.isTopAnchor,c.isMiddleAnchor=y.isMiddleAnchor,c.isBottomAnchor=y.isBottomAnchor;var x=t(&quot;./geometry2d&quot;);c.segmentsIntersect=x.segmentsIntersect,c.segmentDistance=x.segmentDistance,c.getTextLocation=x.getTextLocation,c.clearLocationCache=x.clearLocationCache,c.getVisibleSegment=x.getVisibleSegment,c.findPointOnPath=x.findPointOnPath;var b=t(&quot;./extend&quot;);c.extendFlat=b.extendFlat,c.extendDeep=b.extendDeep,c.extendDeepAll=b.extendDeepAll,c.extendDeepNoArrays=b.extendDeepNoArrays;var _=t(&quot;./loggers&quot;);c.log=_.log,c.warn=_.warn,c.error=_.error;var w=t(&quot;./regex&quot;);c.counterRegex=w.counter;var T=t(&quot;./throttle&quot;);c.throttle=T.throttle,c.throttleDone=T.done,c.clearThrottle=T.clear;var k=t(&quot;./dom&quot;);function M(t){var e={};for(var r in t)for(var n=t[r],i=0;i&lt;n.length;i++)e[n[i]]=+r;return e}c.getGraphDiv=k.getGraphDiv,c.isPlotDiv=k.isPlotDiv,c.removeElement=k.removeElement,c.addStyleRule=k.addStyleRule,c.addRelatedStyleRule=k.addRelatedStyleRule,c.deleteRelatedStyleRule=k.deleteRelatedStyleRule,c.getFullTransformMatrix=k.getFullTransformMatrix,c.getElementTransformMatrix=k.getElementTransformMatrix,c.getElementAndAncestors=k.getElementAndAncestors,c.equalDomRects=k.equalDomRects,c.clearResponsive=t(&quot;./clear_responsive&quot;),c.preserveDrawingBuffer=t(&quot;./preserve_drawing_buffer&quot;),c.makeTraceGroups=t(&quot;./make_trace_groups&quot;),c._=t(&quot;./localize&quot;),c.notifier=t(&quot;./notifier&quot;),c.filterUnique=t(&quot;./filter_unique&quot;),c.filterVisible=t(&quot;./filter_visible&quot;),c.pushUnique=t(&quot;./push_unique&quot;),c.increment=t(&quot;./increment&quot;),c.cleanNumber=t(&quot;./clean_number&quot;),c.ensureNumber=function(t){return a(t)?(t=Number(t))&lt;-s||t&gt;s?l:a(t)?Number(t):l:l},c.isIndex=function(t,e){return!(void 0!==e&amp;&amp;t&gt;=e)&amp;&amp;(a(t)&amp;&amp;t&gt;=0&amp;&amp;t%1==0)},c.noop=t(&quot;./noop&quot;),c.identity=t(&quot;./identity&quot;),c.repeat=function(t,e){for(var r=new Array(e),n=0;n&lt;e;n++)r[n]=t;return r},c.swapAttrs=function(t,e,r,n){r||(r=&quot;x&quot;),n||(n=&quot;y&quot;);for(var i=0;i&lt;e.length;i++){var a=e[i],o=c.nestedProperty(t,a.replace(&quot;?&quot;,r)),s=c.nestedProperty(t,a.replace(&quot;?&quot;,n)),l=o.get();o.set(s.get()),s.set(l)}},c.raiseToTop=function(t){t.parentNode.appendChild(t)},c.cancelTransition=function(t){return t.transition().duration(0)},c.constrain=function(t,e,r){return e&gt;r?Math.max(r,Math.min(e,t)):Math.max(e,Math.min(r,t))},c.bBoxIntersect=function(t,e,r){return r=r||0,t.left&lt;=e.right+r&amp;&amp;e.left&lt;=t.right+r&amp;&amp;t.top&lt;=e.bottom+r&amp;&amp;e.top&lt;=t.bottom+r},c.simpleMap=function(t,e,r,n,i){for(var a=t.length,o=new Array(a),s=0;s&lt;a;s++)o[s]=e(t[s],r,n,i);return o},c.randstr=function t(e,r,n,i){if(n||(n=16),void 0===r&amp;&amp;(r=24),r&lt;=0)return&quot;0&quot;;var a,o,s=Math.log(Math.pow(2,r))/Math.log(n),l=&quot;&quot;;for(a=2;s===1/0;a*=2)s=Math.log(Math.pow(2,r/a))/Math.log(n)*a;var u=s-Math.floor(s);for(a=0;a&lt;Math.floor(s);a++)l=Math.floor(Math.random()*n).toString(n)+l;u&amp;&amp;(o=Math.pow(n,u),l=Math.floor(Math.random()*o).toString(n)+l);var f=parseInt(l,n);return e&amp;&amp;e[l]||f!==1/0&amp;&amp;f&gt;=Math.pow(2,r)?i&gt;10?(c.warn(&quot;randstr failed uniqueness&quot;),l):t(e,r,n,(i||0)+1):l},c.OptionControl=function(t,e){t||(t={}),e||(e=&quot;opt&quot;);var r={optionList:[],_newoption:function(n){n[e]=t,r[n.name]=n,r.optionList.push(n)}};return r[&quot;_&quot;+e]=t,r},c.smooth=function(t,e){if((e=Math.round(e)||0)&lt;2)return t;var r,n,i,a,o=t.length,s=2*o,l=2*e-1,c=new Array(l),u=new Array(o);for(r=0;r&lt;l;r++)c[r]=(1-Math.cos(Math.PI*(r+1)/e))/(2*e);for(r=0;r&lt;o;r++){for(a=0,n=0;n&lt;l;n++)(i=r+n+1-e)&lt;-o?i-=s*Math.round(i/s):i&gt;=s&amp;&amp;(i-=s*Math.floor(i/s)),i&lt;0?i=-1-i:i&gt;=o&amp;&amp;(i=s-1-i),a+=t[i]*c[n];u[r]=a}return u},c.syncOrAsync=function(t,e,r){var n;function i(){return c.syncOrAsync(t,e,r)}for(;t.length;)if((n=(0,t.splice(0,1)[0])(e))&amp;&amp;n.then)return n.then(i).then(void 0,c.promiseError);return r&amp;&amp;r(e)},c.stripTrailingSlash=function(t){return&quot;/&quot;===t.substr(-1)?t.substr(0,t.length-1):t},c.noneOrAll=function(t,e,r){if(t){var n,i=!1,a=!0;for(n=0;n&lt;r.length;n++)null!=t[r[n]]?i=!0:a=!1;if(i&amp;&amp;!a)for(n=0;n&lt;r.length;n++)t[r[n]]=e[r[n]]}},c.mergeArray=function(t,e,r,n){var i=&quot;function&quot;==typeof n;if(c.isArrayOrTypedArray(t))for(var a=Math.min(t.length,e.length),o=0;o&lt;a;o++){var s=t[o];e[o][r]=i?n(s):s}},c.mergeArrayCastPositive=function(t,e,r){return c.mergeArray(t,e,r,(function(t){var e=+t;return isFinite(e)&amp;&amp;e&gt;0?e:0}))},c.fillArray=function(t,e,r,n){if(n=n||c.identity,c.isArrayOrTypedArray(t))for(var i=0;i&lt;e.length;i++)e[i][r]=n(t[i])},c.castOption=function(t,e,r,n){n=n||c.identity;var i=c.nestedProperty(t,r).get();return c.isArrayOrTypedArray(i)?Array.isArray(e)&amp;&amp;c.isArrayOrTypedArray(i[e[0]])?n(i[e[0]][e[1]]):n(i[e]):i},c.extractOption=function(t,e,r,n){if(r in t)return t[r];var i=c.nestedProperty(e,n).get();return Array.isArray(i)?void 0:i},c.tagSelected=function(t,e,r){var n,i,a=e.selectedpoints,o=e._indexToPoints;o&amp;&amp;(n=M(o));for(var s=0;s&lt;a.length;s++){var l=a[s];if(c.isIndex(l)||c.isArrayOrTypedArray(l)&amp;&amp;c.isIndex(l[0])&amp;&amp;c.isIndex(l[1])){var u=n?n[l]:l,f=r?r[u]:u;void 0!==(i=f)&amp;&amp;i&lt;t.length&amp;&amp;(t[f].selected=1)}}},c.selIndices2selPoints=function(t){var e=t.selectedpoints,r=t._indexToPoints;if(r){for(var n=M(r),i=[],a=0;a&lt;e.length;a++){var o=e[a];if(c.isIndex(o)){var s=n[o];c.isIndex(s)&amp;&amp;i.push(s)}}return i}return e},c.getTargetArray=function(t,e){var r=e.target;if(&quot;string&quot;==typeof r&amp;&amp;r){var n=c.nestedProperty(t,r).get();return!!Array.isArray(n)&amp;&amp;n}return!!Array.isArray(r)&amp;&amp;r},c.minExtend=function(t,e){var r={};&quot;object&quot;!=typeof e&amp;&amp;(e={});var n,i,a,o=Object.keys(t);for(n=0;n&lt;o.length;n++)a=t[i=o[n]],&quot;_&quot;!==i.charAt(0)&amp;&amp;&quot;function&quot;!=typeof a&amp;&amp;(&quot;module&quot;===i?r[i]=a:Array.isArray(a)?r[i]=&quot;colorscale&quot;===i?a.slice():a.slice(0,3):c.isTypedArray(a)?r[i]=a.subarray(0,3):r[i]=a&amp;&amp;&quot;object&quot;==typeof a?c.minExtend(t[i],e[i]):a);for(o=Object.keys(e),n=0;n&lt;o.length;n++)&quot;object&quot;==typeof(a=e[i=o[n]])&amp;&amp;i in r&amp;&amp;&quot;object&quot;==typeof r[i]||(r[i]=a);return r},c.titleCase=function(t){return t.charAt(0).toUpperCase()+t.substr(1)},c.containsAny=function(t,e){for(var r=0;r&lt;e.length;r++)if(-1!==t.indexOf(e[r]))return!0;return!1},c.isIE=function(){return&quot;undefined&quot;!=typeof window.navigator.msSaveBlob};var A=/MSIE [1-9]\./;c.isIE9orBelow=function(){return c.isIE()&amp;&amp;A.test(window.navigator.userAgent)};var S=/Version\/[\d\.]+.*Safari/;c.isSafari=function(){return S.test(window.navigator.userAgent)};var E=/iPad|iPhone|iPod/;c.isIOS=function(){return E.test(window.navigator.userAgent)},c.isD3Selection=function(t){return t&amp;&amp;&quot;function&quot;==typeof t.classed},c.ensureSingle=function(t,e,r,n){var i=t.select(e+(r?&quot;.&quot;+r:&quot;&quot;));if(i.size())return i;var a=t.append(e);return r&amp;&amp;a.classed(r,!0),n&amp;&amp;a.call(n),a},c.ensureSingleById=function(t,e,r,n){var i=t.select(e+&quot;#&quot;+r);if(i.size())return i;var a=t.append(e).attr(&quot;id&quot;,r);return n&amp;&amp;a.call(n),a},c.objectFromPath=function(t,e){for(var r,n=t.split(&quot;.&quot;),i=r={},a=0;a&lt;n.length;a++){var o=n[a],s=null,l=n[a].match(/(.*)\[([0-9]+)\]/);l?(o=l[1],s=l[2],r=r[o]=[],a===n.length-1?r[s]=e:r[s]={},r=r[s]):(a===n.length-1?r[o]=e:r[o]={},r=r[o])}return i};var C=/^([^\[\.]+)\.(.+)?/,L=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;c.expandObjectPaths=function(t){var e,r,n,i,a,o,s;if(&quot;object&quot;==typeof t&amp;&amp;!Array.isArray(t))for(r in t)t.hasOwnProperty(r)&amp;&amp;((e=r.match(C))?(i=t[r],n=e[1],delete t[r],t[n]=c.extendDeepNoArrays(t[n]||{},c.objectFromPath(r,c.expandObjectPaths(i))[n])):(e=r.match(L))?(i=t[r],n=e[1],a=parseInt(e[2]),delete t[r],t[n]=t[n]||[],&quot;.&quot;===e[3]?(s=e[4],o=t[n][a]=t[n][a]||{},c.extendDeepNoArrays(o,c.objectFromPath(s,c.expandObjectPaths(i)))):t[n][a]=c.expandObjectPaths(i)):t[r]=c.expandObjectPaths(t[r]));return t},c.numSeparate=function(t,e,r){if(r||(r=!1),&quot;string&quot;!=typeof e||0===e.length)throw new Error(&quot;Separator string required for formatting!&quot;);&quot;number&quot;==typeof t&amp;&amp;(t=String(t));var n=/(\d+)(\d{3})/,i=e.charAt(0),a=e.charAt(1),o=t.split(&quot;.&quot;),s=o[0],l=o.length&gt;1?i+o[1]:&quot;&quot;;if(a&amp;&amp;(o.length&gt;1||s.length&gt;4||r))for(;n.test(s);)s=s.replace(n,&quot;$1&quot;+a+&quot;$2&quot;);return s+l},c.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var I=/^\w*$/;c.templateString=function(t,e){var r={};return t.replace(c.TEMPLATE_STRING_REGEX,(function(t,n){var i;return I.test(n)?i=e[n]:(r[n]=r[n]||c.nestedProperty(e,n).get,i=r[n]()),c.isValidTextValue(i)?i:&quot;&quot;}))};var P={max:10,count:0,name:&quot;hovertemplate&quot;};c.hovertemplateString=function(){return D.apply(P,arguments)};var z={max:10,count:0,name:&quot;texttemplate&quot;};c.texttemplateString=function(){return D.apply(z,arguments)};var O=/^[:|\|]/;function D(t,e,r){var a=this,o=arguments;e||(e={});var s={};return t.replace(c.TEMPLATE_STRING_REGEX,(function(t,l,u){var f,h,p,d;for(p=3;p&lt;o.length;p++)if(f=o[p]){if(f.hasOwnProperty(l)){h=f[l];break}if(I.test(l)||(h=s[l]||c.nestedProperty(f,l).get())&amp;&amp;(s[l]=h),void 0!==h)break}if(void 0===h&amp;&amp;a)return a.count&lt;a.max&amp;&amp;(c.warn(&quot;Variable '&quot;+l+&quot;' in &quot;+a.name+&quot; could not be found!&quot;),h=t),a.count===a.max&amp;&amp;c.warn(&quot;Too many &quot;+a.name+&quot; warnings - additional warnings will be suppressed&quot;),a.count++,t;if(u){if(&quot;:&quot;===u[0]&amp;&amp;(h=(d=r?r.numberFormat:n.format)(u.replace(O,&quot;&quot;))(h)),&quot;|&quot;===u[0]){d=r?r.timeFormat:i;var g=c.dateTime2ms(h);h=c.formatDate(g,u.replace(O,&quot;&quot;),!1,d)}}else e.hasOwnProperty(l+&quot;Label&quot;)&amp;&amp;(h=e[l+&quot;Label&quot;]);return h}))}c.subplotSort=function(t,e){for(var r=Math.min(t.length,e.length)+1,n=0,i=0,a=0;a&lt;r;a++){var o=t.charCodeAt(a)||0,s=e.charCodeAt(a)||0,l=o&gt;=48&amp;&amp;o&lt;=57,c=s&gt;=48&amp;&amp;s&lt;=57;if(l&amp;&amp;(n=10*n+o-48),c&amp;&amp;(i=10*i+s-48),!l||!c){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var R=2e9;c.seedPseudoRandom=function(){R=2e9},c.pseudoRandom=function(){var t=R;return R=(69069*R+1)%4294967296,Math.abs(R-t)&lt;429496729?c.pseudoRandom():R/4294967296},c.fillText=function(t,e,r){var n=Array.isArray(r)?function(t){r.push(t)}:function(t){r.text=t},i=c.extractOption(t,e,&quot;htx&quot;,&quot;hovertext&quot;);if(c.isValidTextValue(i))return n(i);var a=c.extractOption(t,e,&quot;tx&quot;,&quot;text&quot;);return c.isValidTextValue(a)?n(a):void 0},c.isValidTextValue=function(t){return t||0===t},c.formatPercent=function(t,e){e=e||0;for(var r=(Math.round(100*t*Math.pow(10,e))*Math.pow(.1,e)).toFixed(e)+&quot;%&quot;,n=0;n&lt;e;n++)-1!==r.indexOf(&quot;.&quot;)&amp;&amp;(r=(r=r.replace(&quot;0%&quot;,&quot;%&quot;)).replace(&quot;.%&quot;,&quot;%&quot;));return r},c.isHidden=function(t){var e=window.getComputedStyle(t).display;return!e||&quot;none&quot;===e},c.strTranslate=function(t,e){return t||e?&quot;translate(&quot;+t+&quot;,&quot;+e+&quot;)&quot;:&quot;&quot;},c.strRotate=function(t){return t?&quot;rotate(&quot;+t+&quot;)&quot;:&quot;&quot;},c.strScale=function(t){return 1!==t?&quot;scale(&quot;+t+&quot;)&quot;:&quot;&quot;},c.getTextTransform=function(t){var e=t.noCenter,r=t.textX,n=t.textY,i=t.targetX,a=t.targetY,o=t.anchorX||0,s=t.anchorY||0,l=t.rotate,u=t.scale;return u?u&gt;1&amp;&amp;(u=1):u=0,c.strTranslate(i-u*(r+o),a-u*(n+s))+c.strScale(u)+(l?&quot;rotate(&quot;+l+(e?&quot;&quot;:&quot; &quot;+r+&quot; &quot;+n)+&quot;)&quot;:&quot;&quot;)},c.ensureUniformFontSize=function(t,e){var r=c.extendFlat({},e);return r.size=Math.max(e.size,t._fullLayout.uniformtext.minsize||0),r},c.join2=function(t,e,r){var n=t.length;return n&gt;1?t.slice(0,-1).join(e)+r+t[n-1]:t.join(e)}},{&quot;../constants/numerical&quot;:753,&quot;./anchor_utils&quot;:758,&quot;./angles&quot;:759,&quot;./array&quot;:760,&quot;./clean_number&quot;:761,&quot;./clear_responsive&quot;:763,&quot;./coerce&quot;:764,&quot;./dates&quot;:765,&quot;./dom&quot;:766,&quot;./extend&quot;:768,&quot;./filter_unique&quot;:769,&quot;./filter_visible&quot;:770,&quot;./geometry2d&quot;:773,&quot;./identity&quot;:776,&quot;./increment&quot;:777,&quot;./is_plain_object&quot;:779,&quot;./keyed_container&quot;:780,&quot;./localize&quot;:781,&quot;./loggers&quot;:782,&quot;./make_trace_groups&quot;:783,&quot;./matrix&quot;:784,&quot;./mod&quot;:785,&quot;./nested_property&quot;:786,&quot;./noop&quot;:787,&quot;./notifier&quot;:788,&quot;./preserve_drawing_buffer&quot;:792,&quot;./push_unique&quot;:793,&quot;./regex&quot;:795,&quot;./relative_attr&quot;:796,&quot;./relink_private&quot;:797,&quot;./search&quot;:798,&quot;./stats&quot;:801,&quot;./throttle&quot;:804,&quot;./to_log_range&quot;:805,d3:169,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],779:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return window&amp;&amp;window.process&amp;&amp;window.process.versions?&quot;[object Object]&quot;===Object.prototype.toString.call(t):&quot;[object Object]&quot;===Object.prototype.toString.call(t)&amp;&amp;Object.getPrototypeOf(t)===Object.prototype}},{}],780:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./nested_property&quot;),i=/^\w*$/;e.exports=function(t,e,r,a){var o,s,l;r=r||&quot;name&quot;,a=a||&quot;value&quot;;var c={};e&amp;&amp;e.length?(l=n(t,e),s=l.get()):s=t,e=e||&quot;&quot;;var u={};if(s)for(o=0;o&lt;s.length;o++)u[s[o][r]]=o;var f=i.test(a),h={set:function(t,e){var i=null===e?4:0;if(!s){if(!l||4===i)return;s=[],l.set(s)}var o=u[t];if(void 0===o){if(4===i)return;i|=3,o=s.length,u[t]=o}else e!==(f?s[o][a]:n(s[o],a).get())&amp;&amp;(i|=2);var p=s[o]=s[o]||{};return p[r]=t,f?p[a]=e:n(p,a).set(e),null!==e&amp;&amp;(i&amp;=-5),c[o]=c[o]|i,h},get:function(t){if(s){var e=u[t];return void 0===e?void 0:f?s[e][a]:n(s[e],a).get()}},rename:function(t,e){var n=u[t];return void 0===n||(c[n]=1|c[n],u[e]=n,delete u[t],s[n][r]=e),h},remove:function(t){var e=u[t];if(void 0===e)return h;var i=s[e];if(Object.keys(i).length&gt;2)return c[e]=2|c[e],h.set(t,null);if(f){for(o=e;o&lt;s.length;o++)c[o]=3|c[o];for(o=e;o&lt;s.length;o++)u[s[o][r]]--;s.splice(e,1),delete u[t]}else n(i,a).set(null),c[e]=6|c[e];return h},constructUpdate:function(){for(var t,i,o={},l=Object.keys(c),u=0;u&lt;l.length;u++)i=l[u],t=e+&quot;[&quot;+i+&quot;]&quot;,s[i]?(1&amp;c[i]&amp;&amp;(o[t+&quot;.&quot;+r]=s[i][r]),2&amp;c[i]&amp;&amp;(o[t+&quot;.&quot;+a]=f?4&amp;c[i]?null:s[i][a]:4&amp;c[i]?null:n(s[i],a).get())):o[t]=null;return o}};return h}},{&quot;./nested_property&quot;:786}],781:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);e.exports=function(t,e){for(var r=t._context.locale,i=0;i&lt;2;i++){for(var a=t._context.locales,o=0;o&lt;2;o++){var s=(a[r]||{}).dictionary;if(s){var l=s[e];if(l)return l}a=n.localeRegistry}var c=r.split(&quot;-&quot;)[0];if(c===r)break;r=c}return e}},{&quot;../registry&quot;:911}],782:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../plot_api/plot_config&quot;).dfltConfig,i=t(&quot;./notifier&quot;),a=e.exports={};function o(t,e){if(t&amp;&amp;t.apply)try{return void t.apply(console,e)}catch(t){}for(var r=0;r&lt;e.length;r++)try{t(e[r])}catch(t){console.log(e[r])}}a.log=function(){var t;if(n.logging&gt;1){var e=[&quot;LOG:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);o(console.trace||console.log,e)}if(n.notifyOnLogging&gt;1){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;long&quot;)}},a.warn=function(){var t;if(n.logging&gt;0){var e=[&quot;WARN:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);o(console.trace||console.log,e)}if(n.notifyOnLogging&gt;0){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;stick&quot;)}},a.error=function(){var t;if(n.logging&gt;0){var e=[&quot;ERROR:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);o(console.error,e)}if(n.notifyOnLogging&gt;0){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;stick&quot;)}}},{&quot;../plot_api/plot_config&quot;:815,&quot;./notifier&quot;:788}],783:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t,e,r){var i=t.selectAll(&quot;g.&quot;+r.replace(/\s/g,&quot;.&quot;)).data(e,(function(t){return t[0].trace.uid}));i.exit().remove(),i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,r),i.order();var a=t.classed(&quot;rangeplot&quot;)?&quot;nodeRangePlot3&quot;:&quot;node3&quot;;return i.each((function(t){t[0][a]=n.select(this)})),i}},{d3:169}],784:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mat4&quot;);r.init2dArray=function(t,e){for(var r=new Array(t),n=0;n&lt;t;n++)r[n]=new Array(e);return r},r.transposeRagged=function(t){var e,r,n=0,i=t.length;for(e=0;e&lt;i;e++)n=Math.max(n,t[e].length);var a=new Array(n);for(e=0;e&lt;n;e++)for(a[e]=new Array(i),r=0;r&lt;i;r++)a[e][r]=t[r][e];return a},r.dot=function(t,e){if(!t.length||!e.length||t.length!==e.length)return null;var n,i,a=t.length;if(t[0].length)for(n=new Array(a),i=0;i&lt;a;i++)n[i]=r.dot(t[i],e);else if(e[0].length){var o=r.transposeRagged(e);for(n=new Array(o.length),i=0;i&lt;o.length;i++)n[i]=r.dot(t,o[i])}else for(n=0,i=0;i&lt;a;i++)n+=t[i]*e[i];return n},r.translationMatrix=function(t,e){return[[1,0,t],[0,1,e],[0,0,1]]},r.rotationMatrix=function(t){var e=t*Math.PI/180;return[[Math.cos(e),-Math.sin(e),0],[Math.sin(e),Math.cos(e),0],[0,0,1]]},r.rotationXYMatrix=function(t,e,n){return r.dot(r.dot(r.translationMatrix(e,n),r.rotationMatrix(t)),r.translationMatrix(-e,-n))},r.apply3DTransform=function(t){return function(){var e=arguments,n=1===arguments.length?e[0]:[e[0],e[1],e[2]||0];return r.dot(t,[n[0],n[1],n[2],1]).slice(0,3)}},r.apply2DTransform=function(t){return function(){var e=arguments;3===e.length&amp;&amp;(e=e[0]);var n=1===arguments.length?e[0]:[e[0],e[1]];return r.dot(t,[n[0],n[1],1]).slice(0,2)}},r.apply2DTransform2=function(t){var e=r.apply2DTransform(t);return function(t){return e(t.slice(0,2)).concat(e(t.slice(2,4)))}},r.convertCssMatrix=function(t){if(t){var e=t.length;if(16===e)return t;if(6===e)return[t[0],t[1],0,0,t[2],t[3],0,0,0,0,1,0,t[4],t[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},r.inverseTransformMatrix=function(t){var e=[];return n.invert(e,t),[[e[0],e[1],e[2],e[3]],[e[4],e[5],e[6],e[7]],[e[8],e[9],e[10],e[11]],[e[12],e[13],e[14],e[15]]]}},{&quot;gl-mat4&quot;:292}],785:[function(t,e,r){&quot;use strict&quot;;e.exports={mod:function(t,e){var r=t%e;return r&lt;0?r+e:r},modHalf:function(t,e){return Math.abs(t)&gt;e/2?t-Math.round(t/e)*e:t}}},{}],786:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./array&quot;).isArrayOrTypedArray;function a(t,e){return function(){var r,n,o,s,l,c=t;for(s=0;s&lt;e.length-1;s++){if(-1===(r=e[s])){for(n=!0,o=[],l=0;l&lt;c.length;l++)o[l]=a(c[l],e.slice(s+1))(),o[l]!==o[0]&amp;&amp;(n=!1);return n?o[0]:o}if(&quot;number&quot;==typeof r&amp;&amp;!i(c))return;if(&quot;object&quot;!=typeof(c=c[r])||null===c)return}if(&quot;object&quot;==typeof c&amp;&amp;null!==c&amp;&amp;null!==(o=c[e[s]]))return o}}e.exports=function(t,e){if(n(e))e=String(e);else if(&quot;string&quot;!=typeof e||&quot;[-1]&quot;===e.substr(e.length-4))throw&quot;bad property string&quot;;for(var r,i,o,s=0,c=e.split(&quot;.&quot;);s&lt;c.length;){if(r=String(c[s]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(r[1])c[s]=r[1];else{if(0!==s)throw&quot;bad property string&quot;;c.splice(0,1)}for(i=r[2].substr(1,r[2].length-2).split(&quot;][&quot;),o=0;o&lt;i.length;o++)s++,c.splice(s,0,Number(i[o]))}s++}return&quot;object&quot;!=typeof t?function(t,e,r){return{set:function(){throw&quot;bad container&quot;},get:function(){},astr:e,parts:r,obj:t}}(t,e,c):{set:l(t,c,e),get:a(t,c),astr:e,parts:c,obj:t}};var o=/(^|\.)args\[/;function s(t,e){return void 0===t||null===t&amp;&amp;!e.match(o)}function l(t,e,r){return function(n){var a,o,l=t,h=&quot;&quot;,p=[[t,h]],d=s(n,r);for(o=0;o&lt;e.length-1;o++){if(&quot;number&quot;==typeof(a=e[o])&amp;&amp;!i(l))throw&quot;array index but container is not an array&quot;;if(-1===a){if(d=!u(l,e.slice(o+1),n,r))break;return}if(!f(l,a,e[o+1],d))break;if(&quot;object&quot;!=typeof(l=l[a])||null===l)throw&quot;container is not an object&quot;;h=c(h,a),p.push([l,h])}if(d){if(o===e.length-1&amp;&amp;(delete l[e[o]],Array.isArray(l)&amp;&amp;+e[o]==l.length-1))for(;l.length&amp;&amp;void 0===l[l.length-1];)l.pop()}else l[e[o]]=n}}function c(t,e){var r=e;return n(e)?r=&quot;[&quot;+e+&quot;]&quot;:t&amp;&amp;(r=&quot;.&quot;+e),t+r}function u(t,e,r,n){var a,o=i(r),c=!0,u=r,h=n.replace(&quot;-1&quot;,0),p=!o&amp;&amp;s(r,h),d=e[0];for(a=0;a&lt;t.length;a++)h=n.replace(&quot;-1&quot;,a),o&amp;&amp;(p=s(u=r[a%r.length],h)),p&amp;&amp;(c=!1),f(t,a,d,p)&amp;&amp;l(t[a],e,n.replace(&quot;-1&quot;,a))(u);return c}function f(t,e,r,n){if(void 0===t[e]){if(n)return!1;t[e]=&quot;number&quot;==typeof r?[]:{}}return!0}},{&quot;./array&quot;:760,&quot;fast-isnumeric&quot;:241}],787:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){}},{}],788:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=[];e.exports=function(t,e){if(-1===a.indexOf(t)){a.push(t);var r=1e3;i(e)?r=e:&quot;long&quot;===e&amp;&amp;(r=3e3);var o=n.select(&quot;body&quot;).selectAll(&quot;.plotly-notifier&quot;).data([0]);o.enter().append(&quot;div&quot;).classed(&quot;plotly-notifier&quot;,!0),o.selectAll(&quot;.notifier-note&quot;).data(a).enter().append(&quot;div&quot;).classed(&quot;notifier-note&quot;,!0).style(&quot;opacity&quot;,0).each((function(t){var i=n.select(this);i.append(&quot;button&quot;).classed(&quot;notifier-close&quot;,!0).html(&quot;&amp;times;&quot;).on(&quot;click&quot;,(function(){i.transition().call(s)}));for(var a=i.append(&quot;p&quot;),o=t.split(/&lt;br\s*\/?&gt;/g),l=0;l&lt;o.length;l++)l&amp;&amp;a.append(&quot;br&quot;),a.append(&quot;span&quot;).text(o[l]);&quot;stick&quot;===e?i.transition().duration(350).style(&quot;opacity&quot;,1):i.transition().duration(700).style(&quot;opacity&quot;,1).transition().delay(r).call(s)}))}function s(t){t.duration(700).style(&quot;opacity&quot;,0).each(&quot;end&quot;,(function(t){var e=a.indexOf(t);-1!==e&amp;&amp;a.splice(e,1),n.select(this).remove()}))}}},{d3:169,&quot;fast-isnumeric&quot;:241}],789:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./setcursor&quot;),i=&quot;data-savedcursor&quot;;e.exports=function(t,e){var r=t.attr(i);if(e){if(!r){for(var a=(t.attr(&quot;class&quot;)||&quot;&quot;).split(&quot; &quot;),o=0;o&lt;a.length;o++){var s=a[o];0===s.indexOf(&quot;cursor-&quot;)&amp;&amp;t.attr(i,s.substr(7)).classed(s,!1)}t.attr(i)||t.attr(i,&quot;!!&quot;)}n(t,e)}else r&amp;&amp;(t.attr(i,null),&quot;!!&quot;===r?n(t):n(t,r))}},{&quot;./setcursor&quot;:799}],790:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./matrix&quot;).dot,i=t(&quot;../constants/numerical&quot;).BADNUM,a=e.exports={};a.tester=function(t){var e,r=t.slice(),n=r[0][0],a=n,o=r[0][1],s=o;for(r.push(r[0]),e=1;e&lt;r.length;e++)n=Math.min(n,r[e][0]),a=Math.max(a,r[e][0]),o=Math.min(o,r[e][1]),s=Math.max(s,r[e][1]);var l,c=!1;5===r.length&amp;&amp;(r[0][0]===r[1][0]?r[2][0]===r[3][0]&amp;&amp;r[0][1]===r[3][1]&amp;&amp;r[1][1]===r[2][1]&amp;&amp;(c=!0,l=function(t){return t[0]===r[0][0]}):r[0][1]===r[1][1]&amp;&amp;r[2][1]===r[3][1]&amp;&amp;r[0][0]===r[3][0]&amp;&amp;r[1][0]===r[2][0]&amp;&amp;(c=!0,l=function(t){return t[1]===r[0][1]}));var u=!0,f=r[0];for(e=1;e&lt;r.length;e++)if(f[0]!==r[e][0]||f[1]!==r[e][1]){u=!1;break}return{xmin:n,xmax:a,ymin:o,ymax:s,pts:r,contains:c?function(t,e){var r=t[0],c=t[1];return!(r===i||r&lt;n||r&gt;a||c===i||c&lt;o||c&gt;s)&amp;&amp;(!e||!l(t))}:function(t,e){var l=t[0],c=t[1];if(l===i||l&lt;n||l&gt;a||c===i||c&lt;o||c&gt;s)return!1;var u,f,h,p,d,g=r.length,m=r[0][0],v=r[0][1],y=0;for(u=1;u&lt;g;u++)if(f=m,h=v,m=r[u][0],v=r[u][1],!(l&lt;(p=Math.min(f,m))||l&gt;Math.max(f,m)||c&gt;Math.max(h,v)))if(c&lt;Math.min(h,v))l!==p&amp;&amp;y++;else{if(c===(d=m===f?c:h+(l-f)*(v-h)/(m-f)))return 1!==u||!e;c&lt;=d&amp;&amp;l!==p&amp;&amp;y++}return y%2==1},isRect:c,degenerate:u}},a.isSegmentBent=function(t,e,r,i){var a,o,s,l=t[e],c=[t[r][0]-l[0],t[r][1]-l[1]],u=n(c,c),f=Math.sqrt(u),h=[-c[1]/f,c[0]/f];for(a=e+1;a&lt;r;a++)if(o=[t[a][0]-l[0],t[a][1]-l[1]],(s=n(o,c))&lt;0||s&gt;u||Math.abs(n(o,h))&gt;i)return!0;return!1},a.filter=function(t,e){var r=[t[0]],n=0,i=0;function o(o){t.push(o);var s=r.length,l=n;r.splice(i+1);for(var c=l+1;c&lt;t.length;c++)(c===t.length-1||a.isSegmentBent(t,l,c+1,e))&amp;&amp;(r.push(t[c]),r.length&lt;s-2&amp;&amp;(n=c,i=r.length-1),l=c)}t.length&gt;1&amp;&amp;o(t.pop());return{addPt:o,raw:t,filtered:r}}},{&quot;../constants/numerical&quot;:753,&quot;./matrix&quot;:784}],791:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;./show_no_webgl_msg&quot;),i=t(&quot;regl&quot;);e.exports=function(t,e){var a=t._fullLayout,o=!0;return a._glcanvas.each((function(n){if(!n.regl&amp;&amp;(!n.pick||a._has(&quot;parcoords&quot;))){try{n.regl=i({canvas:this,attributes:{antialias:!n.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||r.devicePixelRatio,extensions:e||[]})}catch(t){o=!1}n.regl||(o=!1),o&amp;&amp;this.addEventListener(&quot;webglcontextlost&quot;,(function(e){t&amp;&amp;t.emit&amp;&amp;t.emit(&quot;plotly_webglcontextlost&quot;,{event:e,layer:n.key})}),!1)}})),o||n({container:a._glcontainer.node()}),o}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;./show_no_webgl_msg&quot;:800,regl:540}],792:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;is-mobile&quot;);e.exports=function(t){var e;if(&quot;string&quot;!=typeof(e=t&amp;&amp;t.hasOwnProperty(&quot;userAgent&quot;)?t.userAgent:function(){var t;&quot;undefined&quot;!=typeof navigator&amp;&amp;(t=navigator.userAgent);t&amp;&amp;t.headers&amp;&amp;&quot;string&quot;==typeof t.headers[&quot;user-agent&quot;]&amp;&amp;(t=t.headers[&quot;user-agent&quot;]);return t}()))return!0;var r=i({ua:{headers:{&quot;user-agent&quot;:e}},tablet:!0,featureDetect:!1});if(!r)for(var a=e.split(&quot; &quot;),o=1;o&lt;a.length;o++){if(-1!==a[o].indexOf(&quot;Safari&quot;))for(var s=o-1;s&gt;-1;s--){var l=a[s];if(&quot;Version/&quot;===l.substr(0,8)){var c=l.substr(8).split(&quot;.&quot;)[0];if(n(c)&amp;&amp;(c=+c),c&gt;=13)return!0}}}return r}},{&quot;fast-isnumeric&quot;:241,&quot;is-mobile&quot;:467}],793:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(e instanceof RegExp){for(var r=e.toString(),n=0;n&lt;t.length;n++)if(t[n]instanceof RegExp&amp;&amp;t[n].toString()===r)return t;t.push(e)}else!e&amp;&amp;0!==e||-1!==t.indexOf(e)||t.push(e);return t}},{}],794:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_config&quot;).dfltConfig;var a={add:function(t,e,r,n,a){var o,s;t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},s=t.undoQueue.index,t.autoplay?t.undoQueue.inSequence||(t.autoplay=!1):(!t.undoQueue.sequence||t.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},t.undoQueue.queue.splice(s,t.undoQueue.queue.length-s,o),t.undoQueue.index+=1):o=t.undoQueue.queue[s-1],t.undoQueue.beginSequence=!1,o&amp;&amp;(o.undo.calls.unshift(e),o.undo.args.unshift(r),o.redo.calls.push(n),o.redo.args.push(a)),t.undoQueue.queue.length&gt;i.queueLength&amp;&amp;(t.undoQueue.queue.shift(),t.undoQueue.index--))},startSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!0,t.undoQueue.beginSequence=!0},stopSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!1,t.undoQueue.beginSequence=!1},undo:function(t){var e,r;if(t.framework&amp;&amp;t.framework.isPolar)t.framework.undo();else if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index&lt;=0)){for(t.undoQueue.index--,e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r&lt;e.undo.calls.length;r++)a.plotDo(t,e.undo.calls[r],e.undo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1}},redo:function(t){var e,r;if(t.framework&amp;&amp;t.framework.isPolar)t.framework.redo();else if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index&gt;=t.undoQueue.queue.length)){for(e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r&lt;e.redo.calls.length;r++)a.plotDo(t,e.redo.calls[r],e.redo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1,t.undoQueue.index++}}};a.plotDo=function(t,e,r){t.autoplay=!0,r=function(t,e){for(var r,i=[],a=0;a&lt;e.length;a++)r=e[a],i[a]=r===t?r:&quot;object&quot;==typeof r?Array.isArray(r)?n.extendDeep([],r):n.extendDeepAll({},r):r;return i}(t,r),e.apply(null,r)},e.exports=a},{&quot;../lib&quot;:778,&quot;../plot_api/plot_config&quot;:815}],795:[function(t,e,r){&quot;use strict&quot;;r.counter=function(t,e,r,n){var i=(e||&quot;&quot;)+(r?&quot;&quot;:&quot;$&quot;),a=!1===n?&quot;&quot;:&quot;^&quot;;return&quot;xy&quot;===t?new RegExp(a+&quot;x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?&quot;+i):new RegExp(a+t+&quot;([2-9]|[1-9][0-9]+)?&quot;+i)}},{}],796:[function(t,e,r){&quot;use strict&quot;;var n=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,i=/^[^\.\[\]]+$/;e.exports=function(t,e){for(;e;){var r=t.match(n);if(r)t=r[1];else{if(!t.match(i))throw new Error(&quot;bad relativeAttr call:&quot;+[t,e]);t=&quot;&quot;}if(&quot;^&quot;!==e.charAt(0))break;e=e.slice(1)}return t&amp;&amp;&quot;[&quot;!==e.charAt(0)?t+&quot;.&quot;+e:t+e}},{}],797:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./array&quot;).isArrayOrTypedArray,i=t(&quot;./is_plain_object&quot;);e.exports=function t(e,r){for(var a in r){var o=r[a],s=e[a];if(s!==o)if(&quot;_&quot;===a.charAt(0)||&quot;function&quot;==typeof o){if(a in e)continue;e[a]=o}else if(n(o)&amp;&amp;n(s)&amp;&amp;i(o[0])){if(&quot;customdata&quot;===a||&quot;ids&quot;===a)continue;for(var l=Math.min(o.length,s.length),c=0;c&lt;l;c++)s[c]!==o[c]&amp;&amp;i(o[c])&amp;&amp;i(s[c])&amp;&amp;t(s[c],o[c])}else i(o)&amp;&amp;i(s)&amp;&amp;(t(s,o),Object.keys(s).length||delete e[a])}}},{&quot;./array&quot;:760,&quot;./is_plain_object&quot;:779}],798:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./loggers&quot;),a=t(&quot;./identity&quot;),o=t(&quot;../constants/numerical&quot;).BADNUM;function s(t,e){return t&lt;e}function l(t,e){return t&lt;=e}function c(t,e){return t&gt;e}function u(t,e){return t&gt;=e}r.findBin=function(t,e,r){if(n(e.start))return r?Math.ceil((t-e.start)/e.size-1e-9)-1:Math.floor((t-e.start)/e.size+1e-9);var a,o,f=0,h=e.length,p=0,d=h&gt;1?(e[h-1]-e[0])/(h-1):1;for(o=d&gt;=0?r?s:l:r?u:c,t+=1e-9*d*(r?-1:1)*(d&gt;=0?1:-1);f&lt;h&amp;&amp;p++&lt;100;)o(e[a=Math.floor((f+h)/2)],t)?f=a+1:h=a;return p&gt;90&amp;&amp;i.log(&quot;Long binary search...&quot;),f-1},r.sorterAsc=function(t,e){return t-e},r.sorterDes=function(t,e){return e-t},r.distinctVals=function(t,e){var n,i=(e||{}).unitMinDiff,a=t.slice();for(a.sort(r.sorterAsc),n=a.length-1;n&gt;-1&amp;&amp;a[n]===o;n--);var s=1;i||(s=a[n]-a[0]||1);for(var l,c=s/(n||1)/1e4,u=[],f=0;f&lt;=n;f++){var h=a[f],p=h-l;void 0===l?(u.push(h),l=h):p&gt;c&amp;&amp;(s=Math.min(s,p),u.push(h),l=h)}return{vals:u,minDiff:s}},r.roundUp=function(t,e,r){for(var n,i=0,a=e.length-1,o=0,s=r?0:1,l=r?1:0,c=r?Math.ceil:Math.floor;i&lt;a&amp;&amp;o++&lt;100;)e[n=c((i+a)/2)]&lt;=t?i=n+s:a=n-l;return e[i]},r.sort=function(t,e){for(var r=0,n=0,i=1;i&lt;t.length;i++){var a=e(t[i],t[i-1]);if(a&lt;0?r=1:a&gt;0&amp;&amp;(n=1),r&amp;&amp;n)return t.sort(e)}return n?t:t.reverse()},r.findIndexOfMin=function(t,e){e=e||a;for(var r,n=1/0,i=0;i&lt;t.length;i++){var o=e(t[i]);o&lt;n&amp;&amp;(n=o,r=i)}return r}},{&quot;../constants/numerical&quot;:753,&quot;./identity&quot;:776,&quot;./loggers&quot;:782,&quot;fast-isnumeric&quot;:241}],799:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){(t.attr(&quot;class&quot;)||&quot;&quot;).split(&quot; &quot;).forEach((function(e){0===e.indexOf(&quot;cursor-&quot;)&amp;&amp;t.classed(e,!1)})),e&amp;&amp;t.classed(&quot;cursor-&quot;+e,!0)}},{}],800:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../components/color&quot;),i=function(){};e.exports=function(t){for(var e in t)&quot;function&quot;==typeof t[e]&amp;&amp;(t[e]=i);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var r=document.createElement(&quot;div&quot;);r.className=&quot;no-webgl&quot;,r.style.cursor=&quot;pointer&quot;,r.style.fontSize=&quot;24px&quot;,r.style.color=n.defaults[0],r.style.position=&quot;absolute&quot;,r.style.left=r.style.top=&quot;0px&quot;,r.style.width=r.style.height=&quot;100%&quot;,r.style[&quot;background-color&quot;]=n.lightLine,r.style[&quot;z-index&quot;]=30;var a=document.createElement(&quot;p&quot;);return a.textContent=&quot;WebGL is not supported by your browser - visit https://get.webgl.org for more info&quot;,a.style.position=&quot;relative&quot;,a.style.top=&quot;50%&quot;,a.style.left=&quot;50%&quot;,a.style.height=&quot;30%&quot;,a.style.width=&quot;50%&quot;,a.style.margin=&quot;-15% 0 0 -25%&quot;,r.appendChild(a),t.container.appendChild(r),t.container.style.background=&quot;#FFFFFF&quot;,t.container.onclick=function(){window.open(&quot;https://get.webgl.org&quot;)},!1}},{&quot;../components/color&quot;:643}],801:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./array&quot;).isArrayOrTypedArray;r.aggNums=function(t,e,a,o){var s,l;if((!o||o&gt;a.length)&amp;&amp;(o=a.length),n(e)||(e=!1),i(a[0])){for(l=new Array(o),s=0;s&lt;o;s++)l[s]=r.aggNums(t,e,a[s]);a=l}for(s=0;s&lt;o;s++)n(e)?n(a[s])&amp;&amp;(e=t(+e,+a[s])):e=a[s];return e},r.len=function(t){return r.aggNums((function(t){return t+1}),0,t)},r.mean=function(t,e){return e||(e=r.len(t)),r.aggNums((function(t,e){return t+e}),0,t)/e},r.midRange=function(t){if(void 0!==t&amp;&amp;0!==t.length)return(r.aggNums(Math.max,null,t)+r.aggNums(Math.min,null,t))/2},r.variance=function(t,e,i){return e||(e=r.len(t)),n(i)||(i=r.mean(t,e)),r.aggNums((function(t,e){return t+Math.pow(e-i,2)}),0,t)/e},r.stdev=function(t,e,n){return Math.sqrt(r.variance(t,e,n))},r.median=function(t){var e=t.slice().sort();return r.interp(e,.5)},r.interp=function(t,e){if(!n(e))throw&quot;n should be a finite number&quot;;if((e=e*t.length-.5)&lt;0)return t[0];if(e&gt;t.length-1)return t[t.length-1];var r=e%1;return r*t[Math.ceil(e)]+(1-r)*t[Math.floor(e)]}},{&quot;./array&quot;:760,&quot;fast-isnumeric&quot;:241}],802:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-normalize&quot;);e.exports=function(t){return t?n(t):[0,0,0,1]}},{&quot;color-normalize&quot;:125}],803:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../lib&quot;),a=i.strTranslate,o=t(&quot;../constants/xmlns_namespaces&quot;),s=t(&quot;../constants/alignment&quot;).LINE_SPACING;function l(t,e){return t.node().getBoundingClientRect()[e]}var c=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;r.convertToTspans=function(t,e,A){var S=t.text(),C=!t.attr(&quot;data-notex&quot;)&amp;&amp;&quot;undefined&quot;!=typeof MathJax&amp;&amp;S.match(c),L=n.select(t.node().parentNode);if(!L.empty()){var I=t.attr(&quot;class&quot;)?t.attr(&quot;class&quot;).split(&quot; &quot;)[0]:&quot;text&quot;;return I+=&quot;-math&quot;,L.selectAll(&quot;svg.&quot;+I).remove(),L.selectAll(&quot;g.&quot;+I+&quot;-group&quot;).remove(),t.style(&quot;display&quot;,null).attr({&quot;data-unformatted&quot;:S,&quot;data-math&quot;:&quot;N&quot;}),C?(e&amp;&amp;e._promises||[]).push(new Promise((function(e){t.style(&quot;display&quot;,&quot;none&quot;);var r=parseInt(t.node().style.fontSize,10),o={fontSize:r};!function(t,e,r){var a,o,s,l;MathJax.Hub.Queue((function(){return o=i.extendDeepAll({},MathJax.Hub.config),s=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&amp;&amp;(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:&quot;none&quot;,tex2jax:{inlineMath:[[&quot;$&quot;,&quot;$&quot;],[&quot;\\(&quot;,&quot;\\)&quot;]]},displayAlign:&quot;left&quot;})}),(function(){if(&quot;SVG&quot;!==(a=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer(&quot;SVG&quot;)}),(function(){var r=&quot;math-output-&quot;+i.randstr({},64);return l=n.select(&quot;body&quot;).append(&quot;div&quot;).attr({id:r}).style({visibility:&quot;hidden&quot;,position:&quot;absolute&quot;}).style({&quot;font-size&quot;:e.fontSize+&quot;px&quot;}).text(t.replace(u,&quot;\\lt &quot;).replace(f,&quot;\\gt &quot;)),MathJax.Hub.Typeset(l.node())}),(function(){var e=n.select(&quot;body&quot;).select(&quot;#MathJax_SVG_glyphs&quot;);if(l.select(&quot;.MathJax_SVG&quot;).empty()||!l.select(&quot;svg&quot;).node())i.log(&quot;There was an error in the tex syntax.&quot;,t),r();else{var o=l.select(&quot;svg&quot;).node().getBoundingClientRect();r(l.select(&quot;.MathJax_SVG&quot;),e,o)}if(l.remove(),&quot;SVG&quot;!==a)return MathJax.Hub.setRenderer(a)}),(function(){return void 0!==s&amp;&amp;(MathJax.Hub.processSectionDelay=s),MathJax.Hub.Config(o)}))}(C[2],o,(function(n,i,o){L.selectAll(&quot;svg.&quot;+I).remove(),L.selectAll(&quot;g.&quot;+I+&quot;-group&quot;).remove();var s=n&amp;&amp;n.select(&quot;svg&quot;);if(!s||!s.node())return P(),void e();var c=L.append(&quot;g&quot;).classed(I+&quot;-group&quot;,!0).attr({&quot;pointer-events&quot;:&quot;none&quot;,&quot;data-unformatted&quot;:S,&quot;data-math&quot;:&quot;Y&quot;});c.node().appendChild(s.node()),i&amp;&amp;i.node()&amp;&amp;s.node().insertBefore(i.node().cloneNode(!0),s.node().firstChild),s.attr({class:I,height:o.height,preserveAspectRatio:&quot;xMinYMin meet&quot;}).style({overflow:&quot;visible&quot;,&quot;pointer-events&quot;:&quot;none&quot;});var u=t.node().style.fill||&quot;black&quot;,f=s.select(&quot;g&quot;);f.attr({fill:u,stroke:u});var h=l(f,&quot;width&quot;),p=l(f,&quot;height&quot;),d=+t.attr(&quot;x&quot;)-h*{start:0,middle:.5,end:1}[t.attr(&quot;text-anchor&quot;)||&quot;start&quot;],g=-(r||l(t,&quot;height&quot;))/4;&quot;y&quot;===I[0]?(c.attr({transform:&quot;rotate(&quot;+[-90,+t.attr(&quot;x&quot;),+t.attr(&quot;y&quot;)]+&quot;)&quot;+a(-h/2,g-p/2)}),s.attr({x:+t.attr(&quot;x&quot;),y:+t.attr(&quot;y&quot;)})):&quot;l&quot;===I[0]?s.attr({x:t.attr(&quot;x&quot;),y:g-p/2}):&quot;a&quot;===I[0]&amp;&amp;0!==I.indexOf(&quot;atitle&quot;)?s.attr({x:0,y:g}):s.attr({x:d,y:+t.attr(&quot;y&quot;)+g-p/2}),A&amp;&amp;A.call(t,c),e(c)}))}))):P(),t}function P(){L.empty()||(I=t.attr(&quot;class&quot;)+&quot;-math&quot;,L.select(&quot;svg.&quot;+I).remove()),t.text(&quot;&quot;).style(&quot;white-space&quot;,&quot;pre&quot;),function(t,e){e=e.replace(m,&quot; &quot;);var r,a=!1,l=[],c=-1;function u(){c++;var e=document.createElementNS(o.svg,&quot;tspan&quot;);n.select(e).attr({class:&quot;line&quot;,dy:c*s+&quot;em&quot;}),t.appendChild(e),r=e;var i=l;if(l=[{node:e}],i.length&gt;1)for(var a=1;a&lt;i.length;a++)f(i[a])}function f(t){var e,i=t.type,a={};if(&quot;a&quot;===i){e=&quot;a&quot;;var s=t.target,c=t.href,u=t.popup;c&amp;&amp;(a={&quot;xlink:xlink:show&quot;:&quot;_blank&quot;===s||&quot;_&quot;!==s.charAt(0)?&quot;new&quot;:&quot;replace&quot;,target:s,&quot;xlink:xlink:href&quot;:c},u&amp;&amp;(a.onclick='window.open(this.href.baseVal,this.target.baseVal,&quot;'+u+'&quot;);return false;'))}else e=&quot;tspan&quot;;t.style&amp;&amp;(a.style=t.style);var f=document.createElementNS(o.svg,e);if(&quot;sup&quot;===i||&quot;sub&quot;===i){A(r,&quot;\u200b&quot;),r.appendChild(f);var h=document.createElementNS(o.svg,&quot;tspan&quot;);A(h,&quot;\u200b&quot;),n.select(h).attr(&quot;dy&quot;,d[i]),a.dy=p[i],r.appendChild(f),r.appendChild(h)}else r.appendChild(f);n.select(f).attr(a),r=t.node=f,l.push(t)}function A(t,e){t.appendChild(document.createTextNode(e))}function S(t){if(1!==l.length){var n=l.pop();t!==n.type&amp;&amp;i.log(&quot;Start tag &lt;&quot;+n.type+&quot;&gt; doesnt match end tag &lt;&quot;+t+&quot;&gt;. Pretending it did match.&quot;,e),r=l[l.length-1].node}else i.log(&quot;Ignoring unexpected end tag &lt;/&quot;+t+&quot;&gt;.&quot;,e)}x.test(e)?u():(r=t,l=[{node:t}]);for(var C=e.split(v),L=0;L&lt;C.length;L++){var I=C[L],P=I.match(y),z=P&amp;&amp;P[2].toLowerCase(),O=h[z];if(&quot;br&quot;===z)u();else if(void 0===O)A(r,E(I));else if(P[1])S(z);else{var D=P[4],R={type:z},F=k(D,b);if(F?(F=F.replace(M,&quot;$1 fill:&quot;),O&amp;&amp;(F+=&quot;;&quot;+O)):O&amp;&amp;(F=O),F&amp;&amp;(R.style=F),&quot;a&quot;===z){a=!0;var B=k(D,_);if(B){var N=document.createElement(&quot;a&quot;);N.href=B,-1!==g.indexOf(N.protocol)&amp;&amp;(R.href=encodeURI(decodeURI(B)),R.target=k(D,w)||&quot;_blank&quot;,R.popup=k(D,T))}}f(R)}}return a}(t.node(),S)&amp;&amp;t.style(&quot;pointer-events&quot;,&quot;all&quot;),r.positionText(t),A&amp;&amp;A.call(t)}};var u=/(&lt;|&amp;lt;|&amp;#60;)/g,f=/(&gt;|&amp;gt;|&amp;#62;)/g;var h={sup:&quot;font-size:70%&quot;,sub:&quot;font-size:70%&quot;,b:&quot;font-weight:bold&quot;,i:&quot;font-style:italic&quot;,a:&quot;cursor:pointer&quot;,span:&quot;&quot;,em:&quot;font-style:italic;font-weight:bold&quot;},p={sub:&quot;0.3em&quot;,sup:&quot;-0.6em&quot;},d={sub:&quot;-0.21em&quot;,sup:&quot;0.42em&quot;},g=[&quot;http:&quot;,&quot;https:&quot;,&quot;mailto:&quot;,&quot;&quot;,void 0,&quot;:&quot;],m=r.NEWLINES=/(\r\n?|\n)/g,v=/(&lt;[^&lt;&gt;]*&gt;)/,y=/&lt;(\/?)([^ &gt;]*)(\s+(.*))?&gt;/i,x=/&lt;br(\s+.*)?&gt;/i;r.BR_TAG_ALL=/&lt;br(\s+.*)?&gt;/gi;var b=/(^|[\s&quot;'])style\s*=\s*(&quot;([^&quot;]*);?&quot;|'([^']*);?')/i,_=/(^|[\s&quot;'])href\s*=\s*(&quot;([^&quot;]*)&quot;|'([^']*)')/i,w=/(^|[\s&quot;'])target\s*=\s*(&quot;([^&quot;\s]*)&quot;|'([^'\s]*)')/i,T=/(^|[\s&quot;'])popup\s*=\s*(&quot;([\w=,]*)&quot;|'([\w=,]*)')/i;function k(t,e){if(!t)return null;var r=t.match(e),n=r&amp;&amp;(r[3]||r[4]);return n&amp;&amp;E(n)}var M=/(^|;)\s*color:/;r.plainText=function(t,e){for(var r=void 0!==(e=e||{}).len&amp;&amp;-1!==e.len?e.len:1/0,n=void 0!==e.allowedTags?e.allowedTags:[&quot;br&quot;],i=&quot;...&quot;.length,a=t.split(v),o=[],s=&quot;&quot;,l=0,c=0;c&lt;a.length;c++){var u=a[c],f=u.match(y),h=f&amp;&amp;f[2].toLowerCase();if(h)-1!==n.indexOf(h)&amp;&amp;(o.push(u),s=h);else{var p=u.length;if(l+p&lt;r)o.push(u),l+=p;else if(l&lt;r){var d=r-l;s&amp;&amp;(&quot;br&quot;!==s||d&lt;=i||p&lt;=i)&amp;&amp;o.pop(),r&gt;i?o.push(u.substr(0,d-i)+&quot;...&quot;):o.push(u.substr(0,d));break}s=&quot;&quot;}}return o.join(&quot;&quot;)};var A={mu:&quot;\u03bc&quot;,amp:&quot;&amp;&quot;,lt:&quot;&lt;&quot;,gt:&quot;&gt;&quot;,nbsp:&quot;\xa0&quot;,times:&quot;\xd7&quot;,plusmn:&quot;\xb1&quot;,deg:&quot;\xb0&quot;},S=/&amp;(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function E(t){return t.replace(S,(function(t,e){return(&quot;#&quot;===e.charAt(0)?function(t){if(t&gt;1114111)return;var e=String.fromCodePoint;if(e)return e(t);var r=String.fromCharCode;return t&lt;=65535?r(t):r(55232+(t&gt;&gt;10),t%1024+56320)}(&quot;x&quot;===e.charAt(1)?parseInt(e.substr(2),16):parseInt(e.substr(1),10)):A[e])||t}))}function C(t,e,r){var n,a,o,s=r.horizontalAlign,l=r.verticalAlign||&quot;top&quot;,c=t.node().getBoundingClientRect(),u=e.node().getBoundingClientRect();return a=&quot;bottom&quot;===l?function(){return c.bottom-n.height}:&quot;middle&quot;===l?function(){return c.top+(c.height-n.height)/2}:function(){return c.top},o=&quot;right&quot;===s?function(){return c.right-n.width}:&quot;center&quot;===s?function(){return c.left+(c.width-n.width)/2}:function(){return c.left},function(){n=this.node().getBoundingClientRect();var t=o()-u.left,e=a()-u.top,s=r.gd||{};if(r.gd){s._fullLayout._calcInverseTransform(s);var l=i.apply3DTransform(s._fullLayout._invTransform)(t,e);t=l[0],e=l[1]}return this.style({top:e+&quot;px&quot;,left:t+&quot;px&quot;,&quot;z-index&quot;:1e3}),this}}r.convertEntities=E,r.sanitizeHTML=function(t){t=t.replace(m,&quot; &quot;);for(var e=document.createElement(&quot;p&quot;),r=e,i=[],a=t.split(v),o=0;o&lt;a.length;o++){var s=a[o],l=s.match(y),c=l&amp;&amp;l[2].toLowerCase();if(c in h)if(l[1])i.length&amp;&amp;(r=i.pop());else{var u=l[4],f=k(u,b),p=f?{style:f}:{};if(&quot;a&quot;===c){var d=k(u,_);if(d){var x=document.createElement(&quot;a&quot;);if(x.href=d,-1!==g.indexOf(x.protocol)){p.href=encodeURI(decodeURI(d));var T=k(u,w);T&amp;&amp;(p.target=T)}}}var M=document.createElement(c);r.appendChild(M),n.select(M).attr(p),r=M,i.push(M)}else r.appendChild(document.createTextNode(E(s)))}return e.innerHTML},r.lineCount=function(t){return t.selectAll(&quot;tspan.line&quot;).size()||1},r.positionText=function(t,e,r){return t.each((function(){var t=n.select(this);function i(e,r){return void 0===r?null===(r=t.attr(e))&amp;&amp;(t.attr(e,0),r=0):t.attr(e,r),r}var a=i(&quot;x&quot;,e),o=i(&quot;y&quot;,r);&quot;text&quot;===this.nodeName&amp;&amp;t.selectAll(&quot;tspan.line&quot;).attr({x:a,y:o})}))},r.makeEditable=function(t,e){var r=e.gd,i=e.delegate,a=n.dispatch(&quot;edit&quot;,&quot;input&quot;,&quot;cancel&quot;),o=i||t;if(t.style({&quot;pointer-events&quot;:i?&quot;none&quot;:&quot;all&quot;}),1!==t.size())throw new Error(&quot;boo&quot;);function s(){!function(){var i=n.select(r).select(&quot;.svg-container&quot;),o=i.append(&quot;div&quot;),s=t.node().style,c=parseFloat(s.fontSize||12),u=e.text;void 0===u&amp;&amp;(u=t.attr(&quot;data-unformatted&quot;));o.classed(&quot;plugin-editable editable&quot;,!0).style({position:&quot;absolute&quot;,&quot;font-family&quot;:s.fontFamily||&quot;Arial&quot;,&quot;font-size&quot;:c,color:e.fill||s.fill||&quot;black&quot;,opacity:1,&quot;background-color&quot;:e.background||&quot;transparent&quot;,outline:&quot;#ffffff33 1px solid&quot;,margin:[-c/8+1,0,0,-1].join(&quot;px &quot;)+&quot;px&quot;,padding:&quot;0&quot;,&quot;box-sizing&quot;:&quot;border-box&quot;}).attr({contenteditable:!0}).text(u).call(C(t,i,e)).on(&quot;blur&quot;,(function(){r._editing=!1,t.text(this.textContent).style({opacity:1});var e,i=n.select(this).attr(&quot;class&quot;);(e=i?&quot;.&quot;+i.split(&quot; &quot;)[0]+&quot;-math-group&quot;:&quot;[class*=-math-group]&quot;)&amp;&amp;n.select(t.node().parentNode).select(e).style({opacity:0});var o=this.textContent;n.select(this).transition().duration(0).remove(),n.select(document).on(&quot;mouseup&quot;,null),a.edit.call(t,o)})).on(&quot;focus&quot;,(function(){var t=this;r._editing=!0,n.select(document).on(&quot;mouseup&quot;,(function(){if(n.event.target===t)return!1;document.activeElement===o.node()&amp;&amp;o.node().blur()}))})).on(&quot;keyup&quot;,(function(){27===n.event.which?(r._editing=!1,t.style({opacity:1}),n.select(this).style({opacity:0}).on(&quot;blur&quot;,(function(){return!1})).transition().remove(),a.cancel.call(t,this.textContent)):(a.input.call(t,this.textContent),n.select(this).call(C(t,i,e)))})).on(&quot;keydown&quot;,(function(){13===n.event.which&amp;&amp;this.blur()})).call(l)}(),t.style({opacity:0});var i,s=o.attr(&quot;class&quot;);(i=s?&quot;.&quot;+s.split(&quot; &quot;)[0]+&quot;-math-group&quot;:&quot;[class*=-math-group]&quot;)&amp;&amp;n.select(t.node().parentNode).select(i).style({opacity:0})}function l(t){var e=t.node(),r=document.createRange();r.selectNodeContents(e);var n=window.getSelection();n.removeAllRanges(),n.addRange(r),e.focus()}return e.immediate?s():o.on(&quot;click&quot;,s),n.rebind(t,a,&quot;on&quot;)}},{&quot;../constants/alignment&quot;:745,&quot;../constants/xmlns_namespaces&quot;:754,&quot;../lib&quot;:778,d3:169}],804:[function(t,e,r){&quot;use strict&quot;;var n={};function i(t){t&amp;&amp;null!==t.timer&amp;&amp;(clearTimeout(t.timer),t.timer=null)}r.throttle=function(t,e,r){var a=n[t],o=Date.now();if(!a){for(var s in n)n[s].ts&lt;o-6e4&amp;&amp;delete n[s];a=n[t]={ts:0,timer:null}}function l(){r(),a.ts=Date.now(),a.onDone&amp;&amp;(a.onDone(),a.onDone=null)}i(a),o&gt;a.ts+e?l():a.timer=setTimeout((function(){l(),a.timer=null}),e)},r.done=function(t){var e=n[t];return e&amp;&amp;e.timer?new Promise((function(t){var r=e.onDone;e.onDone=function(){r&amp;&amp;r(),t(),e.onDone=null}})):Promise.resolve()},r.clear=function(t){if(t)i(n[t]),delete n[t];else for(var e in n)r.clear(e)}},{}],805:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports=function(t,e){if(t&gt;0)return Math.log(t)/Math.LN10;var r=Math.log(Math.min(e[0],e[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(e[0],e[1]))/Math.LN10-6),r}},{&quot;fast-isnumeric&quot;:241}],806:[function(t,e,r){&quot;use strict&quot;;var n=e.exports={},i=t(&quot;../plots/geo/constants&quot;).locationmodeToLayer,a=t(&quot;topojson-client&quot;).feature;n.getTopojsonName=function(t){return[t.scope.replace(/ /g,&quot;-&quot;),&quot;_&quot;,t.resolution.toString(),&quot;m&quot;].join(&quot;&quot;)},n.getTopojsonPath=function(t,e){return t+e+&quot;.json&quot;},n.getTopojsonFeatures=function(t,e){var r=i[t.locationmode],n=e.objects[r];return a(e,n).features}},{&quot;../plots/geo/constants&quot;:858,&quot;topojson-client&quot;:579}],807:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;locale&quot;,name:&quot;en-US&quot;,dictionary:{&quot;Click to enter Colorscale title&quot;:&quot;Click to enter Colorscale title&quot;},format:{date:&quot;%m/%d/%Y&quot;}}},{}],808:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;locale&quot;,name:&quot;en&quot;,dictionary:{&quot;Click to enter Colorscale title&quot;:&quot;Click to enter Colourscale title&quot;},format:{days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],periods:[&quot;AM&quot;,&quot;PM&quot;],dateTime:&quot;%a %b %e %X %Y&quot;,date:&quot;%d/%m/%Y&quot;,time:&quot;%H:%M:%S&quot;,decimal:&quot;.&quot;,thousands:&quot;,&quot;,grouping:[3],currency:[&quot;$&quot;,&quot;&quot;],year:&quot;%Y&quot;,month:&quot;%b %Y&quot;,dayMonth:&quot;%b %-d&quot;,dayMonthYear:&quot;%b %-d, %Y&quot;}}},{}],809:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);e.exports=function(t){for(var e,r,i=n.layoutArrayContainers,a=n.layoutArrayRegexes,o=t.split(&quot;[&quot;)[0],s=0;s&lt;a.length;s++)if((r=t.match(a[s]))&amp;&amp;0===r.index){e=r[0];break}if(e||(e=i[i.indexOf(o)]),!e)return!1;var l=t.substr(e.length);return l?!!(r=l.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&amp;&amp;{array:e,index:Number(r[1]),property:r[3]||&quot;&quot;}:{array:e,index:&quot;&quot;,property:&quot;&quot;}}},{&quot;../registry&quot;:911}],810:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=n.extendFlat,a=n.isPlainObject,o={valType:&quot;flaglist&quot;,extras:[&quot;none&quot;],flags:[&quot;calc&quot;,&quot;clearAxisTypes&quot;,&quot;plot&quot;,&quot;style&quot;,&quot;markerSize&quot;,&quot;colorbars&quot;]},s={valType:&quot;flaglist&quot;,extras:[&quot;none&quot;],flags:[&quot;calc&quot;,&quot;plot&quot;,&quot;legend&quot;,&quot;ticks&quot;,&quot;axrange&quot;,&quot;layoutstyle&quot;,&quot;modebar&quot;,&quot;camera&quot;,&quot;arraydraw&quot;,&quot;colorbars&quot;]},l=o.flags.slice().concat([&quot;fullReplot&quot;]),c=s.flags.slice().concat(&quot;layoutReplot&quot;);function u(t){for(var e={},r=0;r&lt;t.length;r++)e[t[r]]=!1;return e}function f(t,e,r){var n=i({},t);for(var o in n){var s=n[o];a(s)&amp;&amp;(n[o]=h(s,e,r,o))}return&quot;from-root&quot;===r&amp;&amp;(n.editType=e),n}function h(t,e,r,n){if(t.valType){var a=i({},t);if(a.editType=e,Array.isArray(t.items)){a.items=new Array(t.items.length);for(var o=0;o&lt;t.items.length;o++)a.items[o]=h(t.items[o],e,&quot;from-root&quot;)}return a}return f(t,e,&quot;_&quot;===n.charAt(0)?&quot;nested&quot;:&quot;from-root&quot;)}e.exports={traces:o,layout:s,traceFlags:function(){return u(l)},layoutFlags:function(){return u(c)},update:function(t,e){var r=e.editType;if(r&amp;&amp;&quot;none&quot;!==r)for(var n=r.split(&quot;+&quot;),i=0;i&lt;n.length;i++)t[n[i]]=!0},overrideAll:f}},{&quot;../lib&quot;:778}],811:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;gl-mat4/fromQuat&quot;),a=t(&quot;../registry&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../plots/plots&quot;),l=t(&quot;../plots/cartesian/axis_ids&quot;),c=t(&quot;../components/color&quot;),u=l.cleanId,f=l.getFromTrace,h=a.traceIs;function p(t,e){var r=t[e],n=e.charAt(0);r&amp;&amp;&quot;paper&quot;!==r&amp;&amp;(t[e]=u(r,n,!0))}function d(t){function e(e,r){var n=t[e],i=t.title&amp;&amp;t.title[r];n&amp;&amp;!i&amp;&amp;(t.title||(t.title={}),t.title[r]=t[e],delete t[e])}t&amp;&amp;(&quot;string&quot;!=typeof t.title&amp;&amp;&quot;number&quot;!=typeof t.title||(t.title={text:t.title}),e(&quot;titlefont&quot;,&quot;font&quot;),e(&quot;titleposition&quot;,&quot;position&quot;),e(&quot;titleside&quot;,&quot;side&quot;),e(&quot;titleoffset&quot;,&quot;offset&quot;))}function g(t){if(!o.isPlainObject(t))return!1;var e=t.name;return delete t.name,delete t.showlegend,(&quot;string&quot;==typeof e||&quot;number&quot;==typeof e)&amp;&amp;String(e)}function m(t,e,r,n){if(r&amp;&amp;!n)return t;if(n&amp;&amp;!r)return e;if(!t.trim())return e;if(!e.trim())return t;var i,a=Math.min(t.length,e.length);for(i=0;i&lt;a&amp;&amp;t.charAt(i)===e.charAt(i);i++);return t.substr(0,i).trim()}function v(t){var e=&quot;middle&quot;,r=&quot;center&quot;;return&quot;string&quot;==typeof t&amp;&amp;(-1!==t.indexOf(&quot;top&quot;)?e=&quot;top&quot;:-1!==t.indexOf(&quot;bottom&quot;)&amp;&amp;(e=&quot;bottom&quot;),-1!==t.indexOf(&quot;left&quot;)?r=&quot;left&quot;:-1!==t.indexOf(&quot;right&quot;)&amp;&amp;(r=&quot;right&quot;)),e+&quot; &quot;+r}function y(t,e){return e in t&amp;&amp;&quot;object&quot;==typeof t[e]&amp;&amp;0===Object.keys(t[e]).length}r.clearPromiseQueue=function(t){Array.isArray(t._promises)&amp;&amp;t._promises.length&gt;0&amp;&amp;o.log(&quot;Clearing previous rejected promises from queue.&quot;),t._promises=[]},r.cleanLayout=function(t){var e,n;t||(t={}),t.xaxis1&amp;&amp;(t.xaxis||(t.xaxis=t.xaxis1),delete t.xaxis1),t.yaxis1&amp;&amp;(t.yaxis||(t.yaxis=t.yaxis1),delete t.yaxis1),t.scene1&amp;&amp;(t.scene||(t.scene=t.scene1),delete t.scene1);var a=(s.subplotsRegistry.cartesian||{}).attrRegex,l=(s.subplotsRegistry.polar||{}).attrRegex,f=(s.subplotsRegistry.ternary||{}).attrRegex,h=(s.subplotsRegistry.gl3d||{}).attrRegex,g=Object.keys(t);for(e=0;e&lt;g.length;e++){var m=g[e];if(a&amp;&amp;a.test(m)){var v=t[m];v.anchor&amp;&amp;&quot;free&quot;!==v.anchor&amp;&amp;(v.anchor=u(v.anchor)),v.overlaying&amp;&amp;(v.overlaying=u(v.overlaying)),v.type||(v.isdate?v.type=&quot;date&quot;:v.islog?v.type=&quot;log&quot;:!1===v.isdate&amp;&amp;!1===v.islog&amp;&amp;(v.type=&quot;linear&quot;)),&quot;withzero&quot;!==v.autorange&amp;&amp;&quot;tozero&quot;!==v.autorange||(v.autorange=!0,v.rangemode=&quot;tozero&quot;),delete v.islog,delete v.isdate,delete v.categories,y(v,&quot;domain&quot;)&amp;&amp;delete v.domain,void 0!==v.autotick&amp;&amp;(void 0===v.tickmode&amp;&amp;(v.tickmode=v.autotick?&quot;auto&quot;:&quot;linear&quot;),delete v.autotick),d(v)}else if(l&amp;&amp;l.test(m)){d(t[m].radialaxis)}else if(f&amp;&amp;f.test(m)){var x=t[m];d(x.aaxis),d(x.baxis),d(x.caxis)}else if(h&amp;&amp;h.test(m)){var b=t[m],_=b.cameraposition;if(Array.isArray(_)&amp;&amp;4===_[0].length){var w=_[0],T=_[1],k=_[2],M=i([],w),A=[];for(n=0;n&lt;3;++n)A[n]=T[n]+k*M[2+4*n];b.camera={eye:{x:A[0],y:A[1],z:A[2]},center:{x:T[0],y:T[1],z:T[2]},up:{x:0,y:0,z:1}},delete b.cameraposition}d(b.xaxis),d(b.yaxis),d(b.zaxis)}}var S=Array.isArray(t.annotations)?t.annotations.length:0;for(e=0;e&lt;S;e++){var E=t.annotations[e];o.isPlainObject(E)&amp;&amp;(E.ref&amp;&amp;(&quot;paper&quot;===E.ref?(E.xref=&quot;paper&quot;,E.yref=&quot;paper&quot;):&quot;data&quot;===E.ref&amp;&amp;(E.xref=&quot;x&quot;,E.yref=&quot;y&quot;),delete E.ref),p(E,&quot;xref&quot;),p(E,&quot;yref&quot;))}var C=Array.isArray(t.shapes)?t.shapes.length:0;for(e=0;e&lt;C;e++){var L=t.shapes[e];o.isPlainObject(L)&amp;&amp;(p(L,&quot;xref&quot;),p(L,&quot;yref&quot;))}var I=Array.isArray(t.images)?t.images.length:0;for(e=0;e&lt;I;e++){var P=t.images[e];o.isPlainObject(P)&amp;&amp;(p(P,&quot;xref&quot;),p(P,&quot;yref&quot;))}var z=t.legend;return z&amp;&amp;(z.x&gt;3?(z.x=1.02,z.xanchor=&quot;left&quot;):z.x&lt;-2&amp;&amp;(z.x=-.02,z.xanchor=&quot;right&quot;),z.y&gt;3?(z.y=1.02,z.yanchor=&quot;bottom&quot;):z.y&lt;-2&amp;&amp;(z.y=-.02,z.yanchor=&quot;top&quot;)),d(t),&quot;rotate&quot;===t.dragmode&amp;&amp;(t.dragmode=&quot;orbit&quot;),c.clean(t),t.template&amp;&amp;t.template.layout&amp;&amp;r.cleanLayout(t.template.layout),t},r.cleanData=function(t){for(var e=0;e&lt;t.length;e++){var n,i=t[e];if(&quot;histogramy&quot;===i.type&amp;&amp;&quot;xbins&quot;in i&amp;&amp;!(&quot;ybins&quot;in i)&amp;&amp;(i.ybins=i.xbins,delete i.xbins),i.error_y&amp;&amp;&quot;opacity&quot;in i.error_y){var l=c.defaults,f=i.error_y.color||(h(i,&quot;bar&quot;)?c.defaultLine:l[e%l.length]);i.error_y.color=c.addOpacity(c.rgb(f),c.opacity(f)*i.error_y.opacity),delete i.error_y.opacity}if(&quot;bardir&quot;in i&amp;&amp;(&quot;h&quot;!==i.bardir||!h(i,&quot;bar&quot;)&amp;&amp;&quot;histogram&quot;!==i.type.substr(0,9)||(i.orientation=&quot;h&quot;,r.swapXYData(i)),delete i.bardir),&quot;histogramy&quot;===i.type&amp;&amp;r.swapXYData(i),&quot;histogramx&quot;!==i.type&amp;&amp;&quot;histogramy&quot;!==i.type||(i.type=&quot;histogram&quot;),&quot;scl&quot;in i&amp;&amp;!(&quot;colorscale&quot;in i)&amp;&amp;(i.colorscale=i.scl,delete i.scl),&quot;reversescl&quot;in i&amp;&amp;!(&quot;reversescale&quot;in i)&amp;&amp;(i.reversescale=i.reversescl,delete i.reversescl),i.xaxis&amp;&amp;(i.xaxis=u(i.xaxis,&quot;x&quot;)),i.yaxis&amp;&amp;(i.yaxis=u(i.yaxis,&quot;y&quot;)),h(i,&quot;gl3d&quot;)&amp;&amp;i.scene&amp;&amp;(i.scene=s.subplotsRegistry.gl3d.cleanId(i.scene)),!h(i,&quot;pie-like&quot;)&amp;&amp;!h(i,&quot;bar-like&quot;))if(Array.isArray(i.textposition))for(n=0;n&lt;i.textposition.length;n++)i.textposition[n]=v(i.textposition[n]);else i.textposition&amp;&amp;(i.textposition=v(i.textposition));var p=a.getModule(i);if(p&amp;&amp;p.colorbar){var x=p.colorbar.container,b=x?i[x]:i;b&amp;&amp;b.colorscale&amp;&amp;(&quot;YIGnBu&quot;===b.colorscale&amp;&amp;(b.colorscale=&quot;YlGnBu&quot;),&quot;YIOrRd&quot;===b.colorscale&amp;&amp;(b.colorscale=&quot;YlOrRd&quot;))}if(&quot;surface&quot;===i.type&amp;&amp;o.isPlainObject(i.contours)){var _=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(n=0;n&lt;_.length;n++){var w=i.contours[_[n]];o.isPlainObject(w)&amp;&amp;(w.highlightColor&amp;&amp;(w.highlightcolor=w.highlightColor,delete w.highlightColor),w.highlightWidth&amp;&amp;(w.highlightwidth=w.highlightWidth,delete w.highlightWidth))}}if(&quot;candlestick&quot;===i.type||&quot;ohlc&quot;===i.type){var T=!1!==(i.increasing||{}).showlegend,k=!1!==(i.decreasing||{}).showlegend,M=g(i.increasing),A=g(i.decreasing);if(!1!==M&amp;&amp;!1!==A){var S=m(M,A,T,k);S&amp;&amp;(i.name=S)}else!M&amp;&amp;!A||i.name||(i.name=M||A)}if(Array.isArray(i.transforms)){var E=i.transforms;for(n=0;n&lt;E.length;n++){var C=E[n];if(o.isPlainObject(C))switch(C.type){case&quot;filter&quot;:C.filtersrc&amp;&amp;(C.target=C.filtersrc,delete C.filtersrc),C.calendar&amp;&amp;(C.valuecalendar||(C.valuecalendar=C.calendar),delete C.calendar);break;case&quot;groupby&quot;:if(C.styles=C.styles||C.style,C.styles&amp;&amp;!Array.isArray(C.styles)){var L=C.styles,I=Object.keys(L);C.styles=[];for(var P=0;P&lt;I.length;P++)C.styles.push({target:I[P],value:L[I[P]]})}}}}y(i,&quot;line&quot;)&amp;&amp;delete i.line,&quot;marker&quot;in i&amp;&amp;(y(i.marker,&quot;line&quot;)&amp;&amp;delete i.marker.line,y(i,&quot;marker&quot;)&amp;&amp;delete i.marker),c.clean(i),i.autobinx&amp;&amp;(delete i.autobinx,delete i.xbins),i.autobiny&amp;&amp;(delete i.autobiny,delete i.ybins),d(i),i.colorbar&amp;&amp;d(i.colorbar),i.marker&amp;&amp;i.marker.colorbar&amp;&amp;d(i.marker.colorbar),i.line&amp;&amp;i.line.colorbar&amp;&amp;d(i.line.colorbar),i.aaxis&amp;&amp;d(i.aaxis),i.baxis&amp;&amp;d(i.baxis)}},r.swapXYData=function(t){var e;if(o.swapAttrs(t,[&quot;?&quot;,&quot;?0&quot;,&quot;d?&quot;,&quot;?bins&quot;,&quot;nbins?&quot;,&quot;autobin?&quot;,&quot;?src&quot;,&quot;error_?&quot;]),Array.isArray(t.z)&amp;&amp;Array.isArray(t.z[0])&amp;&amp;(t.transpose?delete t.transpose:t.transpose=!0),t.error_x&amp;&amp;t.error_y){var r=t.error_y,n=&quot;copy_ystyle&quot;in r?r.copy_ystyle:!(r.color||r.thickness||r.width);o.swapAttrs(t,[&quot;error_?.copy_ystyle&quot;]),n&amp;&amp;o.swapAttrs(t,[&quot;error_?.color&quot;,&quot;error_?.thickness&quot;,&quot;error_?.width&quot;])}if(&quot;string&quot;==typeof t.hoverinfo){var i=t.hoverinfo.split(&quot;+&quot;);for(e=0;e&lt;i.length;e++)&quot;x&quot;===i[e]?i[e]=&quot;y&quot;:&quot;y&quot;===i[e]&amp;&amp;(i[e]=&quot;x&quot;);t.hoverinfo=i.join(&quot;+&quot;)}},r.coerceTraceIndices=function(t,e){if(n(e))return[e];if(!Array.isArray(e)||!e.length)return t.data.map((function(t,e){return e}));if(Array.isArray(e)){for(var r=[],i=0;i&lt;e.length;i++)o.isIndex(e[i],t.data.length)?r.push(e[i]):o.warn(&quot;trace index (&quot;,e[i],&quot;) is not a number or is out of bounds&quot;);return r}return e},r.manageArrayContainers=function(t,e,r){var i=t.obj,a=t.parts,s=a.length,l=a[s-1],c=n(l);if(c&amp;&amp;null===e){var u=a.slice(0,s-1).join(&quot;.&quot;);o.nestedProperty(i,u).get().splice(l,1)}else c&amp;&amp;void 0===t.get()?(void 0===t.get()&amp;&amp;(r[t.astr]=null),t.set(e)):t.set(e)};var x=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function b(t){var e=t.search(x);if(e&gt;0)return t.substr(0,e)}r.hasParent=function(t,e){for(var r=b(e);r;){if(r in t)return!0;r=b(r)}return!1};var _=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];r.clearAxisTypes=function(t,e,r){for(var n=0;n&lt;e.length;n++)for(var i=t._fullData[n],a=0;a&lt;3;a++){var s=f(t,i,_[a]);if(s&amp;&amp;&quot;log&quot;!==s.type){var l=s._name,c=s._id.substr(1);if(&quot;scene&quot;===c.substr(0,5)){if(void 0!==r[c])continue;l=c+&quot;.&quot;+l}var u=l+&quot;.type&quot;;void 0===r[l]&amp;&amp;void 0===r[u]&amp;&amp;o.nestedProperty(t.layout,u).set(null)}}}},{&quot;../components/color&quot;:643,&quot;../lib&quot;:778,&quot;../plots/cartesian/axis_ids&quot;:831,&quot;../plots/plots&quot;:891,&quot;../registry&quot;:911,&quot;fast-isnumeric&quot;:241,&quot;gl-mat4/fromQuat&quot;:282}],812:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./plot_api&quot;);r.plot=n.plot,r.newPlot=n.newPlot,r.restyle=n.restyle,r.relayout=n.relayout,r.redraw=n.redraw,r.update=n.update,r._guiRestyle=n._guiRestyle,r._guiRelayout=n._guiRelayout,r._guiUpdate=n._guiUpdate,r._storeDirectGUIEdit=n._storeDirectGUIEdit,r.react=n.react,r.extendTraces=n.extendTraces,r.prependTraces=n.prependTraces,r.addTraces=n.addTraces,r.deleteTraces=n.deleteTraces,r.moveTraces=n.moveTraces,r.purge=n.purge,r.addFrames=n.addFrames,r.deleteFrames=n.deleteFrames,r.animate=n.animate,r.setPlotConfig=n.setPlotConfig,r.toImage=t(&quot;./to_image&quot;),r.validate=t(&quot;./validate&quot;),r.downloadImage=t(&quot;../snapshot/download&quot;);var i=t(&quot;./template_api&quot;);r.makeTemplate=i.makeTemplate,r.validateTemplate=i.validateTemplate},{&quot;../snapshot/download&quot;:913,&quot;./plot_api&quot;:814,&quot;./template_api&quot;:819,&quot;./to_image&quot;:820,&quot;./validate&quot;:821}],813:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/is_plain_object&quot;),i=t(&quot;../lib/noop&quot;),a=t(&quot;../lib/loggers&quot;),o=t(&quot;../lib/search&quot;).sorterAsc,s=t(&quot;../registry&quot;);r.containerArrayMatch=t(&quot;./container_array_match&quot;);var l=r.isAddVal=function(t){return&quot;add&quot;===t||n(t)},c=r.isRemoveVal=function(t){return null===t||&quot;remove&quot;===t};r.applyContainerArrayChanges=function(t,e,r,n,u){var f=e.astr,h=s.getComponentMethod(f,&quot;supplyLayoutDefaults&quot;),p=s.getComponentMethod(f,&quot;draw&quot;),d=s.getComponentMethod(f,&quot;drawOne&quot;),g=n.replot||n.recalc||h===i||p===i,m=t.layout,v=t._fullLayout;if(r[&quot;&quot;]){Object.keys(r).length&gt;1&amp;&amp;a.warn(&quot;Full array edits are incompatible with other edits&quot;,f);var y=r[&quot;&quot;][&quot;&quot;];if(c(y))e.set(null);else{if(!Array.isArray(y))return a.warn(&quot;Unrecognized full array edit value&quot;,f,y),!0;e.set(y)}return!g&amp;&amp;(h(m,v),p(t),!0)}var x,b,_,w,T,k,M,A,S=Object.keys(r).map(Number).sort(o),E=e.get(),C=E||[],L=u(v,f).get(),I=[],P=-1,z=C.length;for(x=0;x&lt;S.length;x++)if(w=r[_=S[x]],T=Object.keys(w),k=w[&quot;&quot;],M=l(k),_&lt;0||_&gt;C.length-(M?0:1))a.warn(&quot;index out of range&quot;,f,_);else if(void 0!==k)T.length&gt;1&amp;&amp;a.warn(&quot;Insertion &amp; removal are incompatible with edits to the same index.&quot;,f,_),c(k)?I.push(_):M?(&quot;add&quot;===k&amp;&amp;(k={}),C.splice(_,0,k),L&amp;&amp;L.splice(_,0,{})):a.warn(&quot;Unrecognized full object edit value&quot;,f,_,k),-1===P&amp;&amp;(P=_);else for(b=0;b&lt;T.length;b++)A=f+&quot;[&quot;+_+&quot;].&quot;,u(C[_],T[b],A).set(w[T[b]]);for(x=I.length-1;x&gt;=0;x--)C.splice(I[x],1),L&amp;&amp;L.splice(I[x],1);if(C.length?E||e.set(C):e.set(null),g)return!1;if(h(m,v),d!==i){var O;if(-1===P)O=S;else{for(z=Math.max(C.length,z),O=[],x=0;x&lt;S.length&amp;&amp;!((_=S[x])&gt;=P);x++)O.push(_);for(x=P;x&lt;z;x++)O.push(x)}for(x=0;x&lt;O.length;x++)d(t,O[x])}else p(t);return!0}},{&quot;../lib/is_plain_object&quot;:779,&quot;../lib/loggers&quot;:782,&quot;../lib/noop&quot;:787,&quot;../lib/search&quot;:798,&quot;../registry&quot;:911,&quot;./container_array_match&quot;:809}],814:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;has-hover&quot;),o=t(&quot;../lib&quot;),s=o.nestedProperty,l=t(&quot;../lib/events&quot;),c=t(&quot;../lib/queue&quot;),u=t(&quot;../registry&quot;),f=t(&quot;./plot_schema&quot;),h=t(&quot;../plots/plots&quot;),p=t(&quot;../plots/polar/legacy&quot;),d=t(&quot;../plots/cartesian/axes&quot;),g=t(&quot;../components/drawing&quot;),m=t(&quot;../components/color&quot;),v=t(&quot;../plots/cartesian/graph_interact&quot;).initInteractions,y=t(&quot;../constants/xmlns_namespaces&quot;),x=t(&quot;../lib/svg_text_utils&quot;),b=t(&quot;../plots/cartesian/select&quot;).clearSelect,_=t(&quot;./plot_config&quot;).dfltConfig,w=t(&quot;./manage_arrays&quot;),T=t(&quot;./helpers&quot;),k=t(&quot;./subroutines&quot;),M=t(&quot;./edit_types&quot;),A=t(&quot;../plots/cartesian/constants&quot;).AX_NAME_PATTERN,S=0;function E(t){var e=t._fullLayout;e._redrawFromAutoMarginCount?e._redrawFromAutoMarginCount--:t.emit(&quot;plotly_afterplot&quot;)}function C(t,e){try{t._fullLayout._paper.style(&quot;background&quot;,e)}catch(t){o.error(t)}}function L(t,e){C(t,m.combine(e,&quot;white&quot;))}function I(t,e){if(!t._context){t._context=o.extendDeep({},_);var r=n.select(&quot;base&quot;);t._context._baseUrl=r.size()&amp;&amp;r.attr(&quot;href&quot;)?window.location.href.split(&quot;#&quot;)[0]:&quot;&quot;}var i,s,l,c=t._context;if(e){for(s=Object.keys(e),i=0;i&lt;s.length;i++)&quot;editable&quot;!==(l=s[i])&amp;&amp;&quot;edits&quot;!==l&amp;&amp;l in c&amp;&amp;(&quot;setBackground&quot;===l&amp;&amp;&quot;opaque&quot;===e[l]?c[l]=L:c[l]=e[l]);e.plot3dPixelRatio&amp;&amp;!c.plotGlPixelRatio&amp;&amp;(c.plotGlPixelRatio=c.plot3dPixelRatio);var u=e.editable;if(void 0!==u)for(c.editable=u,s=Object.keys(c.edits),i=0;i&lt;s.length;i++)c.edits[s[i]]=u;if(e.edits)for(s=Object.keys(e.edits),i=0;i&lt;s.length;i++)(l=s[i])in c.edits&amp;&amp;(c.edits[l]=e.edits[l]);c._exportedPlot=e._exportedPlot}c.staticPlot&amp;&amp;(c.editable=!1,c.edits={},c.autosizable=!1,c.scrollZoom=!1,c.doubleClick=!1,c.showTips=!1,c.showLink=!1,c.displayModeBar=!1),&quot;hover&quot;!==c.displayModeBar||a||(c.displayModeBar=!0),&quot;transparent&quot;!==c.setBackground&amp;&amp;&quot;function&quot;==typeof c.setBackground||(c.setBackground=C),c._hasZeroHeight=c._hasZeroHeight||0===t.clientHeight,c._hasZeroWidth=c._hasZeroWidth||0===t.clientWidth;var f=c.scrollZoom,h=c._scrollZoom={};if(!0===f)h.cartesian=1,h.gl3d=1,h.geo=1,h.mapbox=1;else if(&quot;string&quot;==typeof f){var p=f.split(&quot;+&quot;);for(i=0;i&lt;p.length;i++)h[p[i]]=1}else!1!==f&amp;&amp;(h.gl3d=1,h.geo=1,h.mapbox=1)}function P(t,e){var r,n,i=e+1,a=[];for(r=0;r&lt;t.length;r++)(n=t[r])&lt;0?a.push(i+n):a.push(n);return a}function z(t,e,r){var n,i;for(n=0;n&lt;e.length;n++){if((i=e[n])!==parseInt(i,10))throw new Error(&quot;all values in &quot;+r+&quot; must be integers&quot;);if(i&gt;=t.data.length||i&lt;-t.data.length)throw new Error(r+&quot; must be valid indices for gd.data.&quot;);if(e.indexOf(i,n+1)&gt;-1||i&gt;=0&amp;&amp;e.indexOf(-t.data.length+i)&gt;-1||i&lt;0&amp;&amp;e.indexOf(t.data.length+i)&gt;-1)throw new Error(&quot;each index in &quot;+r+&quot; must be unique.&quot;)}}function O(t,e,r){if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array.&quot;);if(&quot;undefined&quot;==typeof e)throw new Error(&quot;currentIndices is a required argument.&quot;);if(Array.isArray(e)||(e=[e]),z(t,e,&quot;currentIndices&quot;),&quot;undefined&quot;==typeof r||Array.isArray(r)||(r=[r]),&quot;undefined&quot;!=typeof r&amp;&amp;z(t,r,&quot;newIndices&quot;),&quot;undefined&quot;!=typeof r&amp;&amp;e.length!==r.length)throw new Error(&quot;current and new indices must be of equal length.&quot;)}function D(t,e,r,n,a){!function(t,e,r,n){var i=o.isPlainObject(n);if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array&quot;);if(!o.isPlainObject(e))throw new Error(&quot;update must be a key:value object&quot;);if(&quot;undefined&quot;==typeof r)throw new Error(&quot;indices must be an integer or array of integers&quot;);for(var a in z(t,r,&quot;indices&quot;),e){if(!Array.isArray(e[a])||e[a].length!==r.length)throw new Error(&quot;attribute &quot;+a+&quot; must be an array of length equal to indices array length&quot;);if(i&amp;&amp;(!(a in n)||!Array.isArray(n[a])||n[a].length!==e[a].length))throw new Error(&quot;when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object&quot;)}}(t,e,r,n);for(var l=function(t,e,r,n){var a,l,c,u,f,h=o.isPlainObject(n),p=[];for(var d in Array.isArray(r)||(r=[r]),r=P(r,t.data.length-1),e)for(var g=0;g&lt;r.length;g++){if(a=t.data[r[g]],l=(c=s(a,d)).get(),u=e[d][g],!o.isArrayOrTypedArray(u))throw new Error(&quot;attribute: &quot;+d+&quot; index: &quot;+g+&quot; must be an array&quot;);if(!o.isArrayOrTypedArray(l))throw new Error(&quot;cannot extend missing or non-array attribute: &quot;+d);if(l.constructor!==u.constructor)throw new Error(&quot;cannot extend array with an array of a different type: &quot;+d);f=h?n[d][g]:n,i(f)||(f=-1),p.push({prop:c,target:l,insert:u,maxp:Math.floor(f)})}return p}(t,e,r,n),c={},u={},f=0;f&lt;l.length;f++){var h=l[f].prop,p=l[f].maxp,d=a(l[f].target,l[f].insert,p);h.set(d[0]),Array.isArray(c[h.astr])||(c[h.astr]=[]),c[h.astr].push(d[1]),Array.isArray(u[h.astr])||(u[h.astr]=[]),u[h.astr].push(l[f].target.length)}return{update:c,maxPoints:u}}function R(t,e){var r=new t.constructor(t.length+e.length);return r.set(t),r.set(e,t.length),r}function F(t,e,n,i){t=o.getGraphDiv(t),T.clearPromiseQueue(t);var a={};if(&quot;string&quot;==typeof e)a[e]=n;else{if(!o.isPlainObject(e))return o.warn(&quot;Restyle fail.&quot;,e,n,i),Promise.reject();a=o.extendFlat({},e),void 0===i&amp;&amp;(i=n)}Object.keys(a).length&amp;&amp;(t.changed=!0);var s=T.coerceTraceIndices(t,i),l=U(t,a,s),u=l.flags;u.calc&amp;&amp;(t.calcdata=void 0),u.clearAxisTypes&amp;&amp;T.clearAxisTypes(t,s,{});var f=[];u.fullReplot?f.push(r.plot):(f.push(h.previousPromises),h.supplyDefaults(t),u.markerSize&amp;&amp;(h.doCalcdata(t),G(f)),u.style&amp;&amp;f.push(k.doTraceStyle),u.colorbars&amp;&amp;f.push(k.doColorBars),f.push(E)),f.push(h.rehover,h.redrag),c.add(t,F,[t,l.undoit,l.traces],F,[t,l.redoit,l.traces]);var p=o.syncOrAsync(f,t);return p&amp;&amp;p.then||(p=Promise.resolve()),p.then((function(){return t.emit(&quot;plotly_restyle&quot;,l.eventData),t}))}function B(t){return void 0===t?null:t}function N(t,e){return e?function(e,r,n){var i=s(e,r),a=i.set;return i.set=function(e){j((n||&quot;&quot;)+r,i.get(),e,t),a(e)},i}:s}function j(t,e,r,n){if(Array.isArray(e)||Array.isArray(r))for(var i=Array.isArray(e)?e:[],a=Array.isArray(r)?r:[],s=Math.max(i.length,a.length),l=0;l&lt;s;l++)j(t+&quot;[&quot;+l+&quot;]&quot;,i[l],a[l],n);else if(o.isPlainObject(e)||o.isPlainObject(r)){var c=o.isPlainObject(e)?e:{},u=o.isPlainObject(r)?r:{},f=o.extendFlat({},c,u);for(var h in f)j(t+&quot;.&quot;+h,c[h],u[h],n)}else void 0===n[t]&amp;&amp;(n[t]=B(e))}function U(t,e,r){var n,i=t._fullLayout,a=t._fullData,l=t.data,c=i._guiEditing,p=N(i._preGUI,c),g=o.extendDeepAll({},e);V(e);var m,v=M.traceFlags(),y={},x={};function b(){return r.map((function(){}))}function _(t){var e=d.id2name(t);-1===m.indexOf(e)&amp;&amp;m.push(e)}function w(t){return&quot;LAYOUT&quot;+t+&quot;.autorange&quot;}function k(t){return&quot;LAYOUT&quot;+t+&quot;.range&quot;}function A(t){for(var e=t;e&lt;a.length;e++)if(a[e]._input===l[t])return a[e]}function S(n,a,o){if(Array.isArray(n))n.forEach((function(t){S(t,a,o)}));else if(!(n in e)&amp;&amp;!T.hasParent(e,n)){var s;if(&quot;LAYOUT&quot;===n.substr(0,6))s=p(t.layout,n.replace(&quot;LAYOUT&quot;,&quot;&quot;));else{var u=r[o];s=N(i._tracePreGUI[A(u)._fullInput.uid],c)(l[u],n)}n in x||(x[n]=b()),void 0===x[n][o]&amp;&amp;(x[n][o]=B(s.get())),void 0!==a&amp;&amp;s.set(a)}}function E(t){return function(e){return a[e][t]}}function C(t){return function(e,n){return!1===e?a[r[n]][t]:null}}for(var L in e){if(T.hasParent(e,L))throw new Error(&quot;cannot set &quot;+L+&quot; and a parent attribute simultaneously&quot;);var I,P,z,O,D,R,F=e[L];if(&quot;autobinx&quot;!==L&amp;&amp;&quot;autobiny&quot;!==L||(L=L.charAt(L.length-1)+&quot;bins&quot;,F=Array.isArray(F)?F.map(C(L)):!1===F?r.map(E(L)):null),y[L]=F,&quot;LAYOUT&quot;!==L.substr(0,6)){for(x[L]=b(),n=0;n&lt;r.length;n++){if(I=l[r[n]],P=A(r[n]),O=(z=N(i._tracePreGUI[P._fullInput.uid],c)(I,L)).get(),void 0!==(D=Array.isArray(F)?F[n%F.length]:F)){var j=z.parts[z.parts.length-1],U=L.substr(0,L.length-j.length-1),q=U?U+&quot;.&quot;:&quot;&quot;,H=U?s(P,U).get():P;if((R=f.getTraceValObject(P,z.parts))&amp;&amp;R.impliedEdits&amp;&amp;null!==D)for(var G in R.impliedEdits)S(o.relativeAttr(L,G),R.impliedEdits[G],n);else if(&quot;thicknessmode&quot;!==j&amp;&amp;&quot;lenmode&quot;!==j||O===D||&quot;fraction&quot;!==D&amp;&amp;&quot;pixels&quot;!==D||!H){if(&quot;type&quot;===L&amp;&amp;(&quot;pie&quot;===D!=(&quot;pie&quot;===O)||&quot;funnelarea&quot;===D!=(&quot;funnelarea&quot;===O))){var Y=&quot;x&quot;,W=&quot;y&quot;;&quot;bar&quot;!==D&amp;&amp;&quot;bar&quot;!==O||&quot;h&quot;!==I.orientation||(Y=&quot;y&quot;,W=&quot;x&quot;),o.swapAttrs(I,[&quot;?&quot;,&quot;?src&quot;],&quot;labels&quot;,Y),o.swapAttrs(I,[&quot;d?&quot;,&quot;?0&quot;],&quot;label&quot;,Y),o.swapAttrs(I,[&quot;?&quot;,&quot;?src&quot;],&quot;values&quot;,W),&quot;pie&quot;===O||&quot;funnelarea&quot;===O?(s(I,&quot;marker.color&quot;).set(s(I,&quot;marker.colors&quot;).get()),i._pielayer.selectAll(&quot;g.trace&quot;).remove()):u.traceIs(I,&quot;cartesian&quot;)&amp;&amp;s(I,&quot;marker.colors&quot;).set(s(I,&quot;marker.color&quot;).get())}}else{var X=i._size,Z=H.orient,J=&quot;top&quot;===Z||&quot;bottom&quot;===Z;if(&quot;thicknessmode&quot;===j){var K=J?X.h:X.w;S(q+&quot;thickness&quot;,H.thickness*(&quot;fraction&quot;===D?1/K:K),n)}else{var Q=J?X.w:X.h;S(q+&quot;len&quot;,H.len*(&quot;fraction&quot;===D?1/Q:Q),n)}}x[L][n]=B(O);if(-1!==[&quot;swapxy&quot;,&quot;swapxyaxes&quot;,&quot;orientation&quot;,&quot;orientationaxes&quot;].indexOf(L)){if(&quot;orientation&quot;===L){z.set(D);var $=I.x&amp;&amp;!I.y?&quot;h&quot;:&quot;v&quot;;if((z.get()||$)===P.orientation)continue}else&quot;orientationaxes&quot;===L&amp;&amp;(I.orientation={v:&quot;h&quot;,h:&quot;v&quot;}[P.orientation]);T.swapXYData(I),v.calc=v.clearAxisTypes=!0}else-1!==h.dataArrayContainers.indexOf(z.parts[0])?(T.manageArrayContainers(z,D,x),v.calc=!0):(R?R.arrayOk&amp;&amp;!u.traceIs(P,&quot;regl&quot;)&amp;&amp;(o.isArrayOrTypedArray(D)||o.isArrayOrTypedArray(O))?v.calc=!0:M.update(v,R):v.calc=!0,z.set(D))}}if(-1!==[&quot;swapxyaxes&quot;,&quot;orientationaxes&quot;].indexOf(L)&amp;&amp;d.swap(t,r),&quot;orientationaxes&quot;===L){var tt=s(t.layout,&quot;hovermode&quot;),et=tt.get();&quot;x&quot;===et?tt.set(&quot;y&quot;):&quot;y&quot;===et?tt.set(&quot;x&quot;):&quot;x unified&quot;===et?tt.set(&quot;y unified&quot;):&quot;y unified&quot;===et&amp;&amp;tt.set(&quot;x unified&quot;)}if(-1!==[&quot;orientation&quot;,&quot;type&quot;].indexOf(L)){for(m=[],n=0;n&lt;r.length;n++){var rt=l[r[n]];u.traceIs(rt,&quot;cartesian&quot;)&amp;&amp;(_(rt.xaxis||&quot;x&quot;),_(rt.yaxis||&quot;y&quot;))}S(m.map(w),!0,0),S(m.map(k),[0,1],0)}}else z=p(t.layout,L.replace(&quot;LAYOUT&quot;,&quot;&quot;)),x[L]=[B(z.get())],z.set(Array.isArray(F)?F[0]:F),v.calc=!0}return(v.calc||v.plot)&amp;&amp;(v.fullReplot=!0),{flags:v,undoit:x,redoit:y,traces:r,eventData:o.extendDeepNoArrays([],[g,r])}}function V(t){var e,r,n,i=o.counterRegex(&quot;axis&quot;,&quot;.title&quot;,!1,!1),a=/colorbar\.title$/,s=Object.keys(t);for(e=0;e&lt;s.length;e++)r=s[e],n=t[r],&quot;title&quot;!==r&amp;&amp;!i.test(r)&amp;&amp;!a.test(r)||&quot;string&quot;!=typeof n&amp;&amp;&quot;number&quot;!=typeof n?r.indexOf(&quot;titlefont&quot;)&gt;-1?l(r,r.replace(&quot;titlefont&quot;,&quot;title.font&quot;)):r.indexOf(&quot;titleposition&quot;)&gt;-1?l(r,r.replace(&quot;titleposition&quot;,&quot;title.position&quot;)):r.indexOf(&quot;titleside&quot;)&gt;-1?l(r,r.replace(&quot;titleside&quot;,&quot;title.side&quot;)):r.indexOf(&quot;titleoffset&quot;)&gt;-1&amp;&amp;l(r,r.replace(&quot;titleoffset&quot;,&quot;title.offset&quot;)):l(r,r.replace(&quot;title&quot;,&quot;title.text&quot;));function l(e,r){t[r]=t[e],delete t[e]}}function q(t,e,r){if(t=o.getGraphDiv(t),T.clearPromiseQueue(t),t.framework&amp;&amp;t.framework.isPolar)return Promise.resolve(t);var n={};if(&quot;string&quot;==typeof e)n[e]=r;else{if(!o.isPlainObject(e))return o.warn(&quot;Relayout fail.&quot;,e,r),Promise.reject();n=o.extendFlat({},e)}Object.keys(n).length&amp;&amp;(t.changed=!0);var i=Z(t,n),a=i.flags;a.calc&amp;&amp;(t.calcdata=void 0);var s=[h.previousPromises];a.layoutReplot?s.push(k.layoutReplot):Object.keys(n).length&amp;&amp;(H(t,a,i)||h.supplyDefaults(t),a.legend&amp;&amp;s.push(k.doLegend),a.layoutstyle&amp;&amp;s.push(k.layoutStyles),a.axrange&amp;&amp;G(s,i.rangesAltered),a.ticks&amp;&amp;s.push(k.doTicksRelayout),a.modebar&amp;&amp;s.push(k.doModeBar),a.camera&amp;&amp;s.push(k.doCamera),a.colorbars&amp;&amp;s.push(k.doColorBars),s.push(E)),s.push(h.rehover,h.redrag),c.add(t,q,[t,i.undoit],q,[t,i.redoit]);var l=o.syncOrAsync(s,t);return l&amp;&amp;l.then||(l=Promise.resolve(t)),l.then((function(){return t.emit(&quot;plotly_relayout&quot;,i.eventData),t}))}function H(t,e,r){var n=t._fullLayout;if(!e.axrange)return!1;for(var i in e)if(&quot;axrange&quot;!==i&amp;&amp;e[i])return!1;for(var a in r.rangesAltered){var o=d.id2name(a),s=t.layout[o],l=n[o];if(l.autorange=s.autorange,s.range&amp;&amp;(l.range=s.range.slice()),l.cleanRange(),l._matchGroup)for(var c in l._matchGroup)if(c!==a){var u=n[d.id2name(c)];u.autorange=l.autorange,u.range=l.range.slice(),u._input.range=l.range.slice()}}return!0}function G(t,e){var r=e?function(t){var r=[],n=!0;for(var i in e){var a=d.getFromId(t,i);if(r.push(i),-1!==(a.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;a._anchorAxis&amp;&amp;r.push(a._anchorAxis._id),a._matchGroup)for(var o in a._matchGroup)e[o]||r.push(o);a.automargin&amp;&amp;(n=!1)}return d.draw(t,r,{skipTitle:n})}:function(t){return d.draw(t,&quot;redraw&quot;)};t.push(b,k.doAutoRangeAndConstraints,r,k.drawData,k.finalDraw)}var Y=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,W=/^[xyz]axis[0-9]*\.autorange$/,X=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Z(t,e){var r,n,i,a=t.layout,l=t._fullLayout,c=l._guiEditing,h=N(l._preGUI,c),p=Object.keys(e),g=d.list(t),m=o.extendDeepAll({},e),v={};for(V(e),p=Object.keys(e),n=0;n&lt;p.length;n++)if(0===p[n].indexOf(&quot;allaxes&quot;)){for(i=0;i&lt;g.length;i++){var y=g[i]._id.substr(1),x=-1!==y.indexOf(&quot;scene&quot;)?y+&quot;.&quot;:&quot;&quot;,b=p[n].replace(&quot;allaxes&quot;,x+g[i]._name);e[b]||(e[b]=e[p[n]])}delete e[p[n]]}var _=M.layoutFlags(),k={},S={};function E(t,r){if(Array.isArray(t))t.forEach((function(t){E(t,r)}));else if(!(t in e)&amp;&amp;!T.hasParent(e,t)){var n=h(a,t);t in S||(S[t]=B(n.get())),void 0!==r&amp;&amp;n.set(r)}}var C,L={};function I(t){var e=d.name2id(t.split(&quot;.&quot;)[0]);return L[e]=1,e}for(var P in e){if(T.hasParent(e,P))throw new Error(&quot;cannot set &quot;+P+&quot; and a parent attribute simultaneously&quot;);for(var z=h(a,P),O=e[P],D=z.parts.length-1;D&gt;0&amp;&amp;&quot;string&quot;!=typeof z.parts[D];)D--;var R=z.parts[D],F=z.parts[D-1]+&quot;.&quot;+R,j=z.parts.slice(0,D).join(&quot;.&quot;),U=s(t.layout,j).get(),q=s(l,j).get(),H=z.get();if(void 0!==O){k[P]=O,S[P]=&quot;reverse&quot;===R?O:B(H);var G=f.getLayoutValObject(l,z.parts);if(G&amp;&amp;G.impliedEdits&amp;&amp;null!==O)for(var Z in G.impliedEdits)E(o.relativeAttr(P,Z),G.impliedEdits[Z]);if(-1!==[&quot;width&quot;,&quot;height&quot;].indexOf(P))if(O){E(&quot;autosize&quot;,null);var K=&quot;height&quot;===P?&quot;width&quot;:&quot;height&quot;;E(K,l[K])}else l[P]=t._initialAutoSize[P];else if(&quot;autosize&quot;===P)E(&quot;width&quot;,O?null:l.width),E(&quot;height&quot;,O?null:l.height);else if(F.match(Y))I(F),s(l,j+&quot;._inputRange&quot;).set(null);else if(F.match(W)){I(F),s(l,j+&quot;._inputRange&quot;).set(null);var Q=s(l,j).get();Q._inputDomain&amp;&amp;(Q._input.domain=Q._inputDomain.slice())}else F.match(X)&amp;&amp;s(l,j+&quot;._inputDomain&quot;).set(null);if(&quot;type&quot;===R){C=U;var $=&quot;linear&quot;===q.type&amp;&amp;&quot;log&quot;===O,tt=&quot;log&quot;===q.type&amp;&amp;&quot;linear&quot;===O;if($||tt){if(C&amp;&amp;C.range)if(q.autorange)$&amp;&amp;(C.range=C.range[1]&gt;C.range[0]?[1,2]:[2,1]);else{var et=C.range[0],rt=C.range[1];$?(et&lt;=0&amp;&amp;rt&lt;=0&amp;&amp;E(j+&quot;.autorange&quot;,!0),et&lt;=0?et=rt/1e6:rt&lt;=0&amp;&amp;(rt=et/1e6),E(j+&quot;.range[0]&quot;,Math.log(et)/Math.LN10),E(j+&quot;.range[1]&quot;,Math.log(rt)/Math.LN10)):(E(j+&quot;.range[0]&quot;,Math.pow(10,et)),E(j+&quot;.range[1]&quot;,Math.pow(10,rt)))}else E(j+&quot;.autorange&quot;,!0);Array.isArray(l._subplots.polar)&amp;&amp;l._subplots.polar.length&amp;&amp;l[z.parts[0]]&amp;&amp;&quot;radialaxis&quot;===z.parts[1]&amp;&amp;delete l[z.parts[0]]._subplot.viewInitial[&quot;radialaxis.range&quot;],u.getComponentMethod(&quot;annotations&quot;,&quot;convertCoords&quot;)(t,q,O,E),u.getComponentMethod(&quot;images&quot;,&quot;convertCoords&quot;)(t,q,O,E)}else E(j+&quot;.autorange&quot;,!0),E(j+&quot;.range&quot;,null);s(l,j+&quot;._inputRange&quot;).set(null)}else if(R.match(A)){var nt=s(l,P).get(),it=(O||{}).type;it&amp;&amp;&quot;-&quot;!==it||(it=&quot;linear&quot;),u.getComponentMethod(&quot;annotations&quot;,&quot;convertCoords&quot;)(t,nt,it,E),u.getComponentMethod(&quot;images&quot;,&quot;convertCoords&quot;)(t,nt,it,E)}var at=w.containerArrayMatch(P);if(at){r=at.array,n=at.index;var ot=at.property,st=G||{editType:&quot;calc&quot;};&quot;&quot;!==n&amp;&amp;&quot;&quot;===ot&amp;&amp;(w.isAddVal(O)?S[P]=null:w.isRemoveVal(O)?S[P]=(s(a,r).get()||[])[n]:o.warn(&quot;unrecognized full object value&quot;,e)),M.update(_,st),v[r]||(v[r]={});var lt=v[r][n];lt||(lt=v[r][n]={}),lt[ot]=O,delete e[P]}else&quot;reverse&quot;===R?(U.range?U.range.reverse():(E(j+&quot;.autorange&quot;,!0),U.range=[1,0]),q.autorange?_.calc=!0:_.plot=!0):(l._has(&quot;scatter-like&quot;)&amp;&amp;l._has(&quot;regl&quot;)&amp;&amp;&quot;dragmode&quot;===P&amp;&amp;(&quot;lasso&quot;===O||&quot;select&quot;===O)&amp;&amp;&quot;lasso&quot;!==H&amp;&amp;&quot;select&quot;!==H||l._has(&quot;gl2d&quot;)?_.plot=!0:G?M.update(_,G):_.calc=!0,z.set(O))}}for(r in v){w.applyContainerArrayChanges(t,h(a,r),v[r],_,h)||(_.plot=!0)}for(var ct in L){var ut=(C=d.getFromId(t,ct))&amp;&amp;C._constraintGroup;if(ut)for(var ft in _.calc=!0,ut)L[ft]||(d.getFromId(t,ft)._constraintShrinkable=!0)}return(J(t)||e.height||e.width)&amp;&amp;(_.plot=!0),(_.plot||_.calc)&amp;&amp;(_.layoutReplot=!0),{flags:_,rangesAltered:L,undoit:S,redoit:k,eventData:m}}function J(t){var e=t._fullLayout,r=e.width,n=e.height;return t.layout.autosize&amp;&amp;h.plotAutoSize(t,t.layout,e),e.width!==r||e.height!==n}function K(t,e,n,i){if(t=o.getGraphDiv(t),T.clearPromiseQueue(t),t.framework&amp;&amp;t.framework.isPolar)return Promise.resolve(t);o.isPlainObject(e)||(e={}),o.isPlainObject(n)||(n={}),Object.keys(e).length&amp;&amp;(t.changed=!0),Object.keys(n).length&amp;&amp;(t.changed=!0);var a=T.coerceTraceIndices(t,i),s=U(t,o.extendFlat({},e),a),l=s.flags,u=Z(t,o.extendFlat({},n)),f=u.flags;(l.calc||f.calc)&amp;&amp;(t.calcdata=void 0),l.clearAxisTypes&amp;&amp;T.clearAxisTypes(t,a,n);var p=[];f.layoutReplot?p.push(k.layoutReplot):l.fullReplot?p.push(r.plot):(p.push(h.previousPromises),H(t,f,u)||h.supplyDefaults(t),l.style&amp;&amp;p.push(k.doTraceStyle),(l.colorbars||f.colorbars)&amp;&amp;p.push(k.doColorBars),f.legend&amp;&amp;p.push(k.doLegend),f.layoutstyle&amp;&amp;p.push(k.layoutStyles),f.axrange&amp;&amp;G(p,u.rangesAltered),f.ticks&amp;&amp;p.push(k.doTicksRelayout),f.modebar&amp;&amp;p.push(k.doModeBar),f.camera&amp;&amp;p.push(k.doCamera),p.push(E)),p.push(h.rehover,h.redrag),c.add(t,K,[t,s.undoit,u.undoit,s.traces],K,[t,s.redoit,u.redoit,s.traces]);var d=o.syncOrAsync(p,t);return d&amp;&amp;d.then||(d=Promise.resolve(t)),d.then((function(){return t.emit(&quot;plotly_update&quot;,{data:s.eventData,layout:u.eventData}),t}))}function Q(t){return function(e){e._fullLayout._guiEditing=!0;var r=t.apply(null,arguments);return e._fullLayout._guiEditing=!1,r}}var $=[{pattern:/^hiddenlabels/,attr:&quot;legend.uirevision&quot;},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:&quot;modebar.uirevision&quot;},{pattern:/(hover|drag)mode$/,attr:&quot;modebar.uirevision&quot;},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:&quot;editrevision&quot;},{pattern:/^(shapes|annotations)/,attr:&quot;editrevision&quot;},{pattern:/^title\.text$/,attr:&quot;editrevision&quot;}],tt=[{pattern:/^selectedpoints$/,attr:&quot;selectionrevision&quot;},{pattern:/(^|value\.)visible$/,attr:&quot;legend.uirevision&quot;},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:&quot;editrevision&quot;}];function et(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r],i=t.match(n.pattern);if(i)return{head:i[1],attr:n.attr}}}function rt(t,e){var r=s(e,t).get();if(void 0!==r)return r;var n=t.split(&quot;.&quot;);for(n.pop();n.length&gt;1;)if(n.pop(),void 0!==(r=s(e,n.join(&quot;.&quot;)+&quot;.uirevision&quot;).get()))return r;return e.uirevision}function nt(t,e){for(var r=0;r&lt;e.length;r++)if(e[r]._fullInput.uid===t)return r;return-1}function it(t,e,r){for(var n=0;n&lt;e.length;n++)if(e[n].uid===t)return n;return!e[r]||e[r].uid?-1:r}function at(t,e){var r=o.isPlainObject(t),n=Array.isArray(t);return r||n?(r&amp;&amp;o.isPlainObject(e)||n&amp;&amp;Array.isArray(e))&amp;&amp;JSON.stringify(t)===JSON.stringify(e):t===e}function ot(t,e,r,n){var i,a,l,c=n.getValObject,u=n.flags,f=n.immutable,h=n.inArray,p=n.arrayIndex;function d(){var t=i.editType;h&amp;&amp;-1!==t.indexOf(&quot;arraydraw&quot;)?o.pushUnique(u.arrays[h],p):(M.update(u,i),&quot;none&quot;!==t&amp;&amp;u.nChanges++,n.transition&amp;&amp;i.anim&amp;&amp;u.nChangesAnim++,(Y.test(l)||W.test(l))&amp;&amp;(u.rangesAltered[r[0]]=1),X.test(l)&amp;&amp;s(e,&quot;_inputDomain&quot;).set(null),&quot;datarevision&quot;===a&amp;&amp;(u.newDataRevision=1))}function g(t){return&quot;data_array&quot;===t.valType||t.arrayOk}for(a in t){if(u.calc&amp;&amp;!n.transition)return;var m=t[a],v=e[a],y=r.concat(a);if(l=y.join(&quot;.&quot;),&quot;_&quot;!==a.charAt(0)&amp;&amp;&quot;function&quot;!=typeof m&amp;&amp;m!==v){if((&quot;tick0&quot;===a||&quot;dtick&quot;===a)&amp;&amp;&quot;geo&quot;!==r[0]){var x=e.tickmode;if(&quot;auto&quot;===x||&quot;array&quot;===x||!x)continue}if((&quot;range&quot;!==a||!e.autorange)&amp;&amp;(&quot;zmin&quot;!==a&amp;&amp;&quot;zmax&quot;!==a||&quot;contourcarpet&quot;!==e.type)&amp;&amp;(i=c(y))&amp;&amp;(!i._compareAsJSON||JSON.stringify(m)!==JSON.stringify(v))){var b,_=i.valType,w=g(i),T=Array.isArray(m),k=Array.isArray(v);if(T&amp;&amp;k){var A=&quot;_input_&quot;+a,S=t[A],E=e[A];if(Array.isArray(S)&amp;&amp;S===E)continue}if(void 0===v)w&amp;&amp;T?u.calc=!0:d();else if(i._isLinkedToArray){var C=[],L=!1;h||(u.arrays[a]=C);var I=Math.min(m.length,v.length),P=Math.max(m.length,v.length);if(I!==P){if(&quot;arraydraw&quot;!==i.editType){d();continue}L=!0}for(b=0;b&lt;I;b++)ot(m[b],v[b],y.concat(b),o.extendFlat({inArray:a,arrayIndex:b},n));if(L)for(b=I;b&lt;P;b++)C.push(b)}else!_&amp;&amp;o.isPlainObject(m)?ot(m,v,y,n):w?T&amp;&amp;k?(f&amp;&amp;(u.calc=!0),(f||n.newDataRevision)&amp;&amp;d()):T!==k?u.calc=!0:d():T&amp;&amp;k&amp;&amp;m.length===v.length&amp;&amp;String(m)===String(v)||d()}}}for(a in e)if(!(a in t)&amp;&amp;&quot;_&quot;!==a.charAt(0)&amp;&amp;&quot;function&quot;!=typeof e[a]){if(g(i=c(r.concat(a)))&amp;&amp;Array.isArray(e[a]))return void(u.calc=!0);d()}}function st(t){var e=t._fullLayout,r=t.getBoundingClientRect();if(!o.equalDomRects(r,e._lastBBox)){var n=e._invTransform=o.inverseTransformMatrix(o.getFullTransformMatrix(t));e._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),e._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),e._lastBBox=r}}function lt(t){var e=n.select(t),r=t._fullLayout;if(r._calcInverseTransform=st,r._calcInverseTransform(t),r._container=e.selectAll(&quot;.plot-container&quot;).data([0]),r._container.enter().insert(&quot;div&quot;,&quot;:first-child&quot;).classed(&quot;plot-container&quot;,!0).classed(&quot;plotly&quot;,!0),r._paperdiv=r._container.selectAll(&quot;.svg-container&quot;).data([0]),r._paperdiv.enter().append(&quot;div&quot;).classed(&quot;user-select-none&quot;,!0).classed(&quot;svg-container&quot;,!0).style(&quot;position&quot;,&quot;relative&quot;),r._glcontainer=r._paperdiv.selectAll(&quot;.gl-container&quot;).data([{}]),r._glcontainer.enter().append(&quot;div&quot;).classed(&quot;gl-container&quot;,!0),r._paperdiv.selectAll(&quot;.main-svg&quot;).remove(),r._paperdiv.select(&quot;.modebar-container&quot;).remove(),r._paper=r._paperdiv.insert(&quot;svg&quot;,&quot;:first-child&quot;).classed(&quot;main-svg&quot;,!0),r._toppaper=r._paperdiv.append(&quot;svg&quot;).classed(&quot;main-svg&quot;,!0),r._modebardiv=r._paperdiv.append(&quot;div&quot;),delete r._modeBar,r._hoverpaper=r._paperdiv.append(&quot;svg&quot;).classed(&quot;main-svg&quot;,!0),!r._uid){var i={};n.selectAll(&quot;defs&quot;).each((function(){this.id&amp;&amp;(i[this.id.split(&quot;-&quot;)[1]]=1)})),r._uid=o.randstr(i)}r._paperdiv.selectAll(&quot;.main-svg&quot;).attr(y.svgAttrs),r._defs=r._paper.append(&quot;defs&quot;).attr(&quot;id&quot;,&quot;defs-&quot;+r._uid),r._clips=r._defs.append(&quot;g&quot;).classed(&quot;clips&quot;,!0),r._topdefs=r._toppaper.append(&quot;defs&quot;).attr(&quot;id&quot;,&quot;topdefs-&quot;+r._uid),r._topclips=r._topdefs.append(&quot;g&quot;).classed(&quot;clips&quot;,!0),r._bgLayer=r._paper.append(&quot;g&quot;).classed(&quot;bglayer&quot;,!0),r._draggers=r._paper.append(&quot;g&quot;).classed(&quot;draglayer&quot;,!0);var a=r._paper.append(&quot;g&quot;).classed(&quot;layer-below&quot;,!0);r._imageLowerLayer=a.append(&quot;g&quot;).classed(&quot;imagelayer&quot;,!0),r._shapeLowerLayer=a.append(&quot;g&quot;).classed(&quot;shapelayer&quot;,!0),r._cartesianlayer=r._paper.append(&quot;g&quot;).classed(&quot;cartesianlayer&quot;,!0),r._polarlayer=r._paper.append(&quot;g&quot;).classed(&quot;polarlayer&quot;,!0),r._ternarylayer=r._paper.append(&quot;g&quot;).classed(&quot;ternarylayer&quot;,!0),r._geolayer=r._paper.append(&quot;g&quot;).classed(&quot;geolayer&quot;,!0),r._funnelarealayer=r._paper.append(&quot;g&quot;).classed(&quot;funnelarealayer&quot;,!0),r._pielayer=r._paper.append(&quot;g&quot;).classed(&quot;pielayer&quot;,!0),r._treemaplayer=r._paper.append(&quot;g&quot;).classed(&quot;treemaplayer&quot;,!0),r._sunburstlayer=r._paper.append(&quot;g&quot;).classed(&quot;sunburstlayer&quot;,!0),r._indicatorlayer=r._toppaper.append(&quot;g&quot;).classed(&quot;indicatorlayer&quot;,!0),r._glimages=r._paper.append(&quot;g&quot;).classed(&quot;glimages&quot;,!0);var s=r._toppaper.append(&quot;g&quot;).classed(&quot;layer-above&quot;,!0);r._imageUpperLayer=s.append(&quot;g&quot;).classed(&quot;imagelayer&quot;,!0),r._shapeUpperLayer=s.append(&quot;g&quot;).classed(&quot;shapelayer&quot;,!0),r._infolayer=r._toppaper.append(&quot;g&quot;).classed(&quot;infolayer&quot;,!0),r._menulayer=r._toppaper.append(&quot;g&quot;).classed(&quot;menulayer&quot;,!0),r._zoomlayer=r._toppaper.append(&quot;g&quot;).classed(&quot;zoomlayer&quot;,!0),r._hoverlayer=r._hoverpaper.append(&quot;g&quot;).classed(&quot;hoverlayer&quot;,!0),r._modebardiv.classed(&quot;modebar-container&quot;,!0).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;top&quot;,&quot;0px&quot;).style(&quot;right&quot;,&quot;0px&quot;),t.emit(&quot;plotly_framework&quot;)}r.animate=function(t,e,r){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t+&quot;. It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/&quot;);var n=t._transitionData;n._frameQueue||(n._frameQueue=[]);var i=(r=h.supplyAnimationDefaults(r)).transition,a=r.frame;function s(t){return Array.isArray(i)?t&gt;=i.length?i[0]:i[t]:i}function l(t){return Array.isArray(a)?t&gt;=a.length?a[0]:a[t]:a}function c(t,e){var r=0;return function(){if(t&amp;&amp;++r===e)return t()}}return void 0===n._frameWaitingCnt&amp;&amp;(n._frameWaitingCnt=0),new Promise((function(a,u){function f(){n._currentFrame&amp;&amp;n._currentFrame.onComplete&amp;&amp;n._currentFrame.onComplete();var e=n._currentFrame=n._frameQueue.shift();if(e){var r=e.name?e.name.toString():null;t._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=e.frameOpts.duration,h.transition(t,e.frame.data,e.frame.layout,T.coerceTraceIndices(t,e.frame.traces),e.frameOpts,e.transitionOpts).then((function(){e.onComplete&amp;&amp;e.onComplete()})),t.emit(&quot;plotly_animatingframe&quot;,{name:r,frame:e.frame,animation:{frame:e.frameOpts,transition:e.transitionOpts}})}else t.emit(&quot;plotly_animated&quot;),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function p(){t.emit(&quot;plotly_animating&quot;),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var e=function(){n._animationRaf=window.requestAnimationFrame(e),Date.now()-n._lastFrameAt&gt;n._timeToNext&amp;&amp;f()};e()}var d,g,m=0;function v(t){return Array.isArray(i)?m&gt;=i.length?t.transitionOpts=i[m]:t.transitionOpts=i[0]:t.transitionOpts=i,m++,t}var y=[],x=null==e,b=Array.isArray(e);if(!x&amp;&amp;!b&amp;&amp;o.isPlainObject(e))y.push({type:&quot;object&quot;,data:v(o.extendFlat({},e))});else if(x||-1!==[&quot;string&quot;,&quot;number&quot;].indexOf(typeof e))for(d=0;d&lt;n._frames.length;d++)(g=n._frames[d])&amp;&amp;(x||String(g.group)===String(e))&amp;&amp;y.push({type:&quot;byname&quot;,name:String(g.name),data:v({name:g.name})});else if(b)for(d=0;d&lt;e.length;d++){var _=e[d];-1!==[&quot;number&quot;,&quot;string&quot;].indexOf(typeof _)?(_=String(_),y.push({type:&quot;byname&quot;,name:_,data:v({name:_})})):o.isPlainObject(_)&amp;&amp;y.push({type:&quot;object&quot;,data:v(o.extendFlat({},_))})}for(d=0;d&lt;y.length;d++)if(&quot;byname&quot;===(g=y[d]).type&amp;&amp;!n._frameHash[g.data.name])return o.warn('animate failure: frame not found: &quot;'+g.data.name+'&quot;'),void u();-1!==[&quot;next&quot;,&quot;immediate&quot;].indexOf(r.mode)&amp;&amp;function(){if(0!==n._frameQueue.length){for(;n._frameQueue.length;){var e=n._frameQueue.pop();e.onInterrupt&amp;&amp;e.onInterrupt()}t.emit(&quot;plotly_animationinterrupted&quot;,[])}}(),&quot;reverse&quot;===r.direction&amp;&amp;y.reverse();var w=t._fullLayout._currentFrame;if(w&amp;&amp;r.fromcurrent){var k=-1;for(d=0;d&lt;y.length;d++)if(&quot;byname&quot;===(g=y[d]).type&amp;&amp;g.name===w){k=d;break}if(k&gt;0&amp;&amp;k&lt;y.length-1){var M=[];for(d=0;d&lt;y.length;d++)g=y[d],(&quot;byname&quot;!==y[d].type||d&gt;k)&amp;&amp;M.push(g);y=M}}y.length&gt;0?function(e){if(0!==e.length){for(var i=0;i&lt;e.length;i++){var o;o=&quot;byname&quot;===e[i].type?h.computeFrame(t,e[i].name):e[i].data;var f=l(i),d=s(i);d.duration=Math.min(d.duration,f.duration);var g={frame:o,name:e[i].name,frameOpts:f,transitionOpts:d};i===e.length-1&amp;&amp;(g.onComplete=c(a,2),g.onInterrupt=u),n._frameQueue.push(g)}&quot;immediate&quot;===r.mode&amp;&amp;(n._lastFrameAt=-1/0),n._animationRaf||p()}}(y):(t.emit(&quot;plotly_animated&quot;),a())}))},r.addFrames=function(t,e,r){if(t=o.getGraphDiv(t),null==e)return Promise.resolve();if(!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t+&quot;. It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/&quot;);var n,i,a,s,l=t._transitionData._frames,u=t._transitionData._frameHash;if(!Array.isArray(e))throw new Error(&quot;addFrames failure: frameList must be an Array of frame definitions&quot;+e);var f=l.length+2*e.length,p=[],d={};for(n=e.length-1;n&gt;=0;n--)if(o.isPlainObject(e[n])){var g=e[n].name,m=(u[g]||d[g]||{}).name,v=e[n].name,y=u[m]||d[m];m&amp;&amp;v&amp;&amp;&quot;number&quot;==typeof v&amp;&amp;y&amp;&amp;S&lt;5&amp;&amp;(S++,o.warn('addFrames: overwriting frame &quot;'+(u[m]||d[m]).name+'&quot; with a frame whose name of type &quot;number&quot; also equates to &quot;'+m+'&quot;. This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===S&amp;&amp;o.warn(&quot;addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.&quot;)),d[g]={name:g},p.push({frame:h.supplyFrameDefaults(e[n]),index:r&amp;&amp;void 0!==r[n]&amp;&amp;null!==r[n]?r[n]:f+n})}p.sort((function(t,e){return t.index&gt;e.index?-1:t.index&lt;e.index?1:0}));var x=[],b=[],_=l.length;for(n=p.length-1;n&gt;=0;n--){if(&quot;number&quot;==typeof(i=p[n].frame).name&amp;&amp;o.warn(&quot;Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings&quot;),!i.name)for(;u[i.name=&quot;frame &quot;+t._transitionData._counter++];);if(u[i.name]){for(a=0;a&lt;l.length&amp;&amp;(l[a]||{}).name!==i.name;a++);x.push({type:&quot;replace&quot;,index:a,value:i}),b.unshift({type:&quot;replace&quot;,index:a,value:l[a]})}else s=Math.max(0,Math.min(p[n].index,_)),x.push({type:&quot;insert&quot;,index:s,value:i}),b.unshift({type:&quot;delete&quot;,index:s}),_++}var w=h.modifyFrames,T=h.modifyFrames,k=[t,b],M=[t,x];return c&amp;&amp;c.add(t,w,k,T,M),h.modifyFrames(t,x)},r.deleteFrames=function(t,e){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t);var r,n,i=t._transitionData._frames,a=[],s=[];if(!e)for(e=[],r=0;r&lt;i.length;r++)e.push(r);for((e=e.slice()).sort(),r=e.length-1;r&gt;=0;r--)n=e[r],a.push({type:&quot;delete&quot;,index:n}),s.unshift({type:&quot;insert&quot;,index:n,value:i[n]});var l=h.modifyFrames,u=h.modifyFrames,f=[t,s],p=[t,a];return c&amp;&amp;c.add(t,l,f,u,p),h.modifyFrames(t,a)},r.addTraces=function t(e,n,i){e=o.getGraphDiv(e);var a,s,l=[],u=r.deleteTraces,f=t,h=[e,l],p=[e,n];for(function(t,e,r){var n,i;if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array.&quot;);if(&quot;undefined&quot;==typeof e)throw new Error(&quot;traces must be defined.&quot;);for(Array.isArray(e)||(e=[e]),n=0;n&lt;e.length;n++)if(&quot;object&quot;!=typeof(i=e[n])||Array.isArray(i)||null===i)throw new Error(&quot;all values in traces array must be non-array objects&quot;);if(&quot;undefined&quot;==typeof r||Array.isArray(r)||(r=[r]),&quot;undefined&quot;!=typeof r&amp;&amp;r.length!==e.length)throw new Error(&quot;if indices is specified, traces.length must equal indices.length&quot;)}(e,n,i),Array.isArray(n)||(n=[n]),n=n.map((function(t){return o.extendFlat({},t)})),T.cleanData(n),a=0;a&lt;n.length;a++)e.data.push(n[a]);for(a=0;a&lt;n.length;a++)l.push(-n.length+a);if(&quot;undefined&quot;==typeof i)return s=r.redraw(e),c.add(e,u,h,f,p),s;Array.isArray(i)||(i=[i]);try{O(e,l,i)}catch(t){throw e.data.splice(e.data.length-n.length,n.length),t}return c.startSequence(e),c.add(e,u,h,f,p),s=r.moveTraces(e,l,i),c.stopSequence(e),s},r.deleteTraces=function t(e,n){e=o.getGraphDiv(e);var i,a,s=[],l=r.addTraces,u=t,f=[e,s,n],h=[e,n];if(&quot;undefined&quot;==typeof n)throw new Error(&quot;indices must be an integer or array of integers.&quot;);for(Array.isArray(n)||(n=[n]),z(e,n,&quot;indices&quot;),(n=P(n,e.data.length-1)).sort(o.sorterDes),i=0;i&lt;n.length;i+=1)a=e.data.splice(n[i],1)[0],s.push(a);var p=r.redraw(e);return c.add(e,l,f,u,h),p},r.extendTraces=function t(e,n,i,a){function s(t,e,r){var n,i;if(o.isTypedArray(t))if(r&lt;0){var a=new t.constructor(0),s=R(t,e);r&lt;0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r&lt;e.length){var l=e.length-r;n.set(e.subarray(l)),i.set(t),i.set(e.subarray(0,l),t.length)}else{var c=r-e.length,u=t.length-c;n.set(t.subarray(u)),n.set(e,c),i.set(t.subarray(0,u))}else n=t.concat(e),i=r&gt;=0&amp;&amp;r&lt;n.length?n.splice(0,n.length-r):[];return[n,i]}var l=D(e=o.getGraphDiv(e),n,i,a,s),u=r.redraw(e),f=[e,l.update,i,l.maxPoints];return c.add(e,r.prependTraces,f,t,arguments),u},r.moveTraces=function t(e,n,i){var a,s=[],l=[],u=t,f=t,h=[e=o.getGraphDiv(e),i,n],p=[e,n,i];if(O(e,n,i),n=Array.isArray(n)?n:[n],&quot;undefined&quot;==typeof i)for(i=[],a=0;a&lt;n.length;a++)i.push(-n.length+a);for(i=Array.isArray(i)?i:[i],n=P(n,e.data.length-1),i=P(i,e.data.length-1),a=0;a&lt;e.data.length;a++)-1===n.indexOf(a)&amp;&amp;s.push(e.data[a]);for(a=0;a&lt;n.length;a++)l.push({newIndex:i[a],trace:e.data[n[a]]});for(l.sort((function(t,e){return t.newIndex-e.newIndex})),a=0;a&lt;l.length;a+=1)s.splice(l[a].newIndex,0,l[a].trace);e.data=s;var d=r.redraw(e);return c.add(e,u,h,f,p),d},r.prependTraces=function t(e,n,i,a){function s(t,e,r){var n,i;if(o.isTypedArray(t))if(r&lt;=0){var a=new t.constructor(0),s=R(e,t);r&lt;0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r&lt;e.length){var l=e.length-r;n.set(e.subarray(0,l)),i.set(e.subarray(l)),i.set(t,l)}else{var c=r-e.length;n.set(e),n.set(t.subarray(0,c),e.length),i.set(t.subarray(c))}else n=e.concat(t),i=r&gt;=0&amp;&amp;r&lt;n.length?n.splice(r,n.length):[];return[n,i]}var l=D(e=o.getGraphDiv(e),n,i,a,s),u=r.redraw(e),f=[e,l.update,i,l.maxPoints];return c.add(e,r.extendTraces,f,t,arguments),u},r.newPlot=function(t,e,n,i){return t=o.getGraphDiv(t),h.cleanPlot([],{},t._fullData||[],t._fullLayout||{}),h.purge(t),r.plot(t,e,n,i)},r.plot=function(t,e,i,a){var s;if(t=o.getGraphDiv(t),l.init(t),o.isPlainObject(e)){var c=e;e=c.data,i=c.layout,a=c.config,s=c.frames}if(!1===l.triggerHandler(t,&quot;plotly_beforeplot&quot;,[e,i,a]))return Promise.reject();e||i||o.isPlotDiv(t)||o.warn(&quot;Calling Plotly.plot as if redrawing but this container doesn't yet have a plot.&quot;,t),I(t,a),i||(i={}),n.select(t).classed(&quot;js-plotly-plot&quot;,!0),g.makeTester(),Array.isArray(t._promises)||(t._promises=[]);var f=0===(t.data||[]).length&amp;&amp;Array.isArray(e);Array.isArray(e)&amp;&amp;(T.cleanData(e),f?t.data=e:t.data.push.apply(t.data,e),t.empty=!1),t.layout&amp;&amp;!f||(t.layout=T.cleanLayout(i)),h.supplyDefaults(t);var m=t._fullLayout,y=m._has(&quot;cartesian&quot;);if(!m._has(&quot;polar&quot;)&amp;&amp;e&amp;&amp;e[0]&amp;&amp;e[0].r)return o.log(&quot;Legacy polar charts are deprecated!&quot;),function(t,e,r){var i=n.select(t).selectAll(&quot;.plot-container&quot;).data([0]);i.enter().insert(&quot;div&quot;,&quot;:first-child&quot;).classed(&quot;plot-container plotly&quot;,!0);var a=i.selectAll(&quot;.svg-container&quot;).data([0]);a.enter().append(&quot;div&quot;).classed(&quot;svg-container&quot;,!0).style(&quot;position&quot;,&quot;relative&quot;),a.html(&quot;&quot;),e&amp;&amp;(t.data=e);r&amp;&amp;(t.layout=r);p.manager.fillLayout(t),a.style({width:t._fullLayout.width+&quot;px&quot;,height:t._fullLayout.height+&quot;px&quot;}),t.framework=p.manager.framework(t),t.framework({data:t.data,layout:t.layout},a.node()),t.framework.setUndoPoint();var s=t.framework.svg(),l=1,c=t._fullLayout.title?t._fullLayout.title.text:&quot;&quot;;&quot;&quot;!==c&amp;&amp;c||(l=0);var u=function(){this.call(x.convertToTspans,t)},f=s.select(&quot;.title-group text&quot;).call(u);if(t._context.edits.titleText){var d=o._(t,&quot;Click to enter Plot title&quot;);c&amp;&amp;c!==d||(l=.2,f.attr({&quot;data-unformatted&quot;:d}).text(d).style({opacity:l}).on(&quot;mouseover.opacity&quot;,(function(){n.select(this).transition().duration(100).style(&quot;opacity&quot;,1)})).on(&quot;mouseout.opacity&quot;,(function(){n.select(this).transition().duration(1e3).style(&quot;opacity&quot;,0)})));var g=function(){this.call(x.makeEditable,{gd:t}).on(&quot;edit&quot;,(function(e){t.framework({layout:{title:{text:e}}}),this.text(e).call(u),this.call(g)})).on(&quot;cancel&quot;,(function(){var t=this.attr(&quot;data-unformatted&quot;);this.text(t).call(u)}))};f.call(g)}return t._context.setBackground(t,t._fullLayout.paper_bgcolor),h.addLinks(t),Promise.resolve()}(t,e,i);m._replotting=!0,(f||m._shouldCreateBgLayer)&amp;&amp;(lt(t),m._shouldCreateBgLayer&amp;&amp;delete m._shouldCreateBgLayer),t.framework!==lt&amp;&amp;(t.framework=lt,lt(t)),g.initGradients(t),f&amp;&amp;d.saveShowSpikeInitial(t);var b=!t.calcdata||t.calcdata.length!==(t._fullData||[]).length;b&amp;&amp;h.doCalcdata(t);for(var _=0;_&lt;t.calcdata.length;_++)t.calcdata[_][0].trace=t._fullData[_];t._context.responsive?t._responsiveChartHandler||(t._responsiveChartHandler=function(){o.isHidden(t)||h.resize(t)},window.addEventListener(&quot;resize&quot;,t._responsiveChartHandler)):o.clearResponsive(t);var w=o.extendFlat({},m._size),M=0;function A(){if(h.clearAutoMarginIds(t),k.drawMarginPushers(t),d.allowAutoMargin(t),m._has(&quot;pie&quot;))for(var e=t._fullData,r=0;r&lt;e.length;r++){var n=e[r];&quot;pie&quot;===n.type&amp;&amp;n.automargin&amp;&amp;h.allowAutoMargin(t,&quot;pie.&quot;+n.uid+&quot;.automargin&quot;)}return h.doAutoMargin(t),h.previousPromises(t)}function S(){t._transitioning||(k.doAutoRangeAndConstraints(t),f&amp;&amp;d.saveRangeInitial(t),u.getComponentMethod(&quot;rangeslider&quot;,&quot;calcAutorange&quot;)(t))}var C=[h.previousPromises,function(){if(s)return r.addFrames(t,s)},function e(){for(var r=m._basePlotModules,n=0;n&lt;r.length;n++)r[n].drawFramework&amp;&amp;r[n].drawFramework(t);if(!m._glcanvas&amp;&amp;m._has(&quot;gl&quot;)&amp;&amp;(m._glcanvas=m._glcontainer.selectAll(&quot;.gl-canvas&quot;).data([{key:&quot;contextLayer&quot;,context:!0,pick:!1},{key:&quot;focusLayer&quot;,context:!1,pick:!1},{key:&quot;pickLayer&quot;,context:!1,pick:!0}],(function(t){return t.key})),m._glcanvas.enter().append(&quot;canvas&quot;).attr(&quot;class&quot;,(function(t){return&quot;gl-canvas gl-canvas-&quot;+t.key.replace(&quot;Layer&quot;,&quot;&quot;)})).style({position:&quot;absolute&quot;,top:0,left:0,overflow:&quot;visible&quot;,&quot;pointer-events&quot;:&quot;none&quot;})),m._glcanvas){m._glcanvas.attr(&quot;width&quot;,m.width).attr(&quot;height&quot;,m.height);var i=m._glcanvas.data()[0].regl;if(i&amp;&amp;(Math.floor(m.width)!==i._gl.drawingBufferWidth||Math.floor(m.height)!==i._gl.drawingBufferHeight)){var a=&quot;WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.&quot;;if(!M)return o.log(a+&quot; Clearing graph and plotting again.&quot;),h.cleanPlot([],{},t._fullData,m),h.supplyDefaults(t),m=t._fullLayout,h.doCalcdata(t),M++,e();o.error(a)}}return&quot;h&quot;===m.modebar.orientation?m._modebardiv.style(&quot;height&quot;,null).style(&quot;width&quot;,&quot;100%&quot;):m._modebardiv.style(&quot;width&quot;,null).style(&quot;height&quot;,m.height+&quot;px&quot;),h.previousPromises(t)},A,function(){if(h.didMarginChange(w,m._size))return o.syncOrAsync([A,k.layoutStyles],t)}];y&amp;&amp;C.push((function(){if(b)return o.syncOrAsync([u.getComponentMethod(&quot;shapes&quot;,&quot;calcAutorange&quot;),u.getComponentMethod(&quot;annotations&quot;,&quot;calcAutorange&quot;),S],t);S()})),C.push(k.layoutStyles),y&amp;&amp;C.push((function(){return d.draw(t,f?&quot;&quot;:&quot;redraw&quot;)}),(function(t){t._fullLayout._insideTickLabelsAutorange&amp;&amp;q(t,t._fullLayout._insideTickLabelsAutorange).then((function(){t._fullLayout._insideTickLabelsAutorange=void 0}))})),C.push(k.drawData,k.finalDraw,v,h.addLinks,h.rehover,h.redrag,h.doAutoMargin,(function(t){t._fullLayout._insideTickLabelsAutorange&amp;&amp;f&amp;&amp;d.saveRangeInitial(t,!0)}),h.previousPromises);var L=o.syncOrAsync(C,t);return L&amp;&amp;L.then||(L=Promise.resolve()),L.then((function(){return E(t),t}))},r.purge=function(t){var e=(t=o.getGraphDiv(t))._fullLayout||{},r=t._fullData||[];return h.cleanPlot([],{},r,e),h.purge(t),l.purge(t),e._container&amp;&amp;e._container.remove(),delete t._context,t},r.react=function(t,e,n,i){var a,l;t=o.getGraphDiv(t),T.clearPromiseQueue(t);var c=t._fullData,p=t._fullLayout;if(o.isPlotDiv(t)&amp;&amp;c&amp;&amp;p){if(o.isPlainObject(e)){var d=e;e=d.data,n=d.layout,i=d.config,a=d.frames}var g=!1;if(i){var m=o.extendDeep({},t._context);t._context=void 0,I(t,i),g=function t(e,r){var n;for(n in e)if(&quot;_&quot;!==n.charAt(0)){var i=e[n],a=r[n];if(i!==a)if(o.isPlainObject(i)&amp;&amp;o.isPlainObject(a)){if(t(i,a))return!0}else{if(!Array.isArray(i)||!Array.isArray(a))return!0;if(i.length!==a.length)return!0;for(var s=0;s&lt;i.length;s++)if(i[s]!==a[s]){if(!o.isPlainObject(i[s])||!o.isPlainObject(a[s]))return!0;if(t(i[s],a[s]))return!0}}}}(m,t._context)}t.data=e||[],T.cleanData(t.data),t.layout=n||{},T.cleanLayout(t.layout),function(t,e,r,n){var i,a,l,c,u,f,h,p,d=n._preGUI,g=[],m={};for(i in d){if(u=et(i,$)){if(a=u.attr||u.head+&quot;.uirevision&quot;,(c=(l=s(n,a).get())&amp;&amp;rt(a,e))&amp;&amp;c===l&amp;&amp;(null===(f=d[i])&amp;&amp;(f=void 0),at(p=(h=s(e,i)).get(),f))){void 0===p&amp;&amp;&quot;autorange&quot;===i.substr(i.length-9)&amp;&amp;g.push(i.substr(0,i.length-10)),h.set(B(s(n,i).get()));continue}}else o.warn(&quot;unrecognized GUI edit: &quot;+i);delete d[i],&quot;range[&quot;===i.substr(i.length-8,6)&amp;&amp;(m[i.substr(0,i.length-9)]=1)}for(var v=0;v&lt;g.length;v++){var y=g[v];if(m[y]){var x=s(e,y).get();x&amp;&amp;delete x.autorange}}var b=n._tracePreGUI;for(var _ in b){var w,T=b[_],k=null;for(i in T){if(!k){var M=nt(_,r);if(M&lt;0){delete b[_];break}var A=it(_,t,(w=r[M]._fullInput).index);if(A&lt;0){delete b[_];break}k=t[A]}if(u=et(i,tt)){if(u.attr?c=(l=s(n,u.attr).get())&amp;&amp;rt(u.attr,e):(l=w.uirevision,void 0===(c=k.uirevision)&amp;&amp;(c=e.uirevision)),c&amp;&amp;c===l&amp;&amp;(null===(f=T[i])&amp;&amp;(f=void 0),at(p=(h=s(k,i)).get(),f))){h.set(B(s(w,i).get()));continue}}else o.warn(&quot;unrecognized GUI edit: &quot;+i+&quot; in trace uid &quot;+_);delete T[i]}}}(t.data,t.layout,c,p),h.supplyDefaults(t,{skipUpdateCalc:!0});var v=t._fullData,y=t._fullLayout,x=void 0===y.datarevision,b=y.transition,_=function(t,e,r,n,i){var a=M.layoutFlags();function o(t){return f.getLayoutValObject(r,t)}a.arrays={},a.rangesAltered={},a.nChanges=0,a.nChangesAnim=0,ot(e,r,[],{getValObject:o,flags:a,immutable:n,transition:i,gd:t}),(a.plot||a.calc)&amp;&amp;(a.layoutReplot=!0);i&amp;&amp;a.nChanges&amp;&amp;a.nChangesAnim&amp;&amp;(a.anim=a.nChanges===a.nChangesAnim?&quot;all&quot;:&quot;some&quot;);return a}(t,p,y,x,b),w=_.newDataRevision,A=function(t,e,r,n,i,a){var o=e.length===r.length;if(!i&amp;&amp;!o)return{fullReplot:!0,calc:!0};var s,l,c=M.traceFlags();c.arrays={},c.nChanges=0,c.nChangesAnim=0;var u={getValObject:function(t){var e=f.getTraceValObject(l,t);return!l._module.animatable&amp;&amp;e.anim&amp;&amp;(e.anim=!1),e},flags:c,immutable:n,transition:i,newDataRevision:a,gd:t},p={};for(s=0;s&lt;e.length;s++)if(r[s]){if(l=r[s]._fullInput,h.hasMakesDataTransform(l)&amp;&amp;(l=r[s]),p[l.uid])continue;p[l.uid]=1,ot(e[s]._fullInput,l,[],u)}(c.calc||c.plot)&amp;&amp;(c.fullReplot=!0);i&amp;&amp;c.nChanges&amp;&amp;c.nChangesAnim&amp;&amp;(c.anim=c.nChanges===c.nChangesAnim&amp;&amp;o?&quot;all&quot;:&quot;some&quot;);return c}(t,c,v,x,b,w);if(J(t)&amp;&amp;(_.layoutReplot=!0),A.calc||_.calc){t.calcdata=void 0;for(var S=Object.getOwnPropertyNames(y),C=0;C&lt;S.length;C++){var L=S[C],P=L.substring(0,5);if(&quot;xaxis&quot;===P||&quot;yaxis&quot;===P){var z=y[L]._emptyCategories;z&amp;&amp;z()}}}else h.supplyDefaultsUpdateCalc(t.calcdata,v);var O=[];if(a&amp;&amp;(t._transitionData={},h.createTransitionData(t),O.push((function(){return r.addFrames(t,a)}))),y.transition&amp;&amp;!g&amp;&amp;(A.anim||_.anim))_.ticks&amp;&amp;O.push(k.doTicksRelayout),h.doCalcdata(t),k.doAutoRangeAndConstraints(t),O.push((function(){return h.transitionFromReact(t,A,_,p)}));else if(A.fullReplot||_.layoutReplot||g)t._fullLayout._skipDefaults=!0,O.push(r.plot);else{for(var D in _.arrays){var R=_.arrays[D];if(R.length){var F=u.getComponentMethod(D,&quot;drawOne&quot;);if(F!==o.noop)for(var N=0;N&lt;R.length;N++)F(t,R[N]);else{var j=u.getComponentMethod(D,&quot;draw&quot;);if(j===o.noop)throw new Error(&quot;cannot draw components: &quot;+D);j(t)}}}O.push(h.previousPromises),A.style&amp;&amp;O.push(k.doTraceStyle),(A.colorbars||_.colorbars)&amp;&amp;O.push(k.doColorBars),_.legend&amp;&amp;O.push(k.doLegend),_.layoutstyle&amp;&amp;O.push(k.layoutStyles),_.axrange&amp;&amp;G(O),_.ticks&amp;&amp;O.push(k.doTicksRelayout),_.modebar&amp;&amp;O.push(k.doModeBar),_.camera&amp;&amp;O.push(k.doCamera),O.push(E)}O.push(h.rehover,h.redrag),(l=o.syncOrAsync(O,t))&amp;&amp;l.then||(l=Promise.resolve(t))}else l=r.newPlot(t,e,n,i);return l.then((function(){return t.emit(&quot;plotly_react&quot;,{data:e,layout:n}),t}))},r.redraw=function(t){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t);return T.cleanData(t.data),T.cleanLayout(t.layout),t.calcdata=void 0,r.plot(t).then((function(){return t.emit(&quot;plotly_redraw&quot;),t}))},r.relayout=q,r.restyle=F,r.setPlotConfig=function(t){return o.extendFlat(_,t)},r.update=K,r._guiRelayout=Q(q),r._guiRestyle=Q(F),r._guiUpdate=Q(K),r._storeDirectGUIEdit=function(t,e,r){for(var n in r){j(n,s(t,n).get(),r[n],e)}}},{&quot;../components/color&quot;:643,&quot;../components/drawing&quot;:665,&quot;../constants/xmlns_namespaces&quot;:754,&quot;../lib&quot;:778,&quot;../lib/events&quot;:767,&quot;../lib/queue&quot;:794,&quot;../lib/svg_text_utils&quot;:803,&quot;../plots/cartesian/axes&quot;:828,&quot;../plots/cartesian/constants&quot;:834,&quot;../plots/cartesian/graph_interact&quot;:837,&quot;../plots/cartesian/select&quot;:847,&quot;../plots/plots&quot;:891,&quot;../plots/polar/legacy&quot;:899,&quot;../registry&quot;:911,&quot;./edit_types&quot;:810,&quot;./helpers&quot;:811,&quot;./manage_arrays&quot;:813,&quot;./plot_config&quot;:815,&quot;./plot_schema&quot;:816,&quot;./subroutines&quot;:818,d3:169,&quot;fast-isnumeric&quot;:241,&quot;has-hover&quot;:440}],815:[function(t,e,r){&quot;use strict&quot;;var n={staticPlot:{valType:&quot;boolean&quot;,dflt:!1},plotlyServerURL:{valType:&quot;string&quot;,dflt:&quot;&quot;},editable:{valType:&quot;boolean&quot;,dflt:!1},edits:{annotationPosition:{valType:&quot;boolean&quot;,dflt:!1},annotationTail:{valType:&quot;boolean&quot;,dflt:!1},annotationText:{valType:&quot;boolean&quot;,dflt:!1},axisTitleText:{valType:&quot;boolean&quot;,dflt:!1},colorbarPosition:{valType:&quot;boolean&quot;,dflt:!1},colorbarTitleText:{valType:&quot;boolean&quot;,dflt:!1},legendPosition:{valType:&quot;boolean&quot;,dflt:!1},legendText:{valType:&quot;boolean&quot;,dflt:!1},shapePosition:{valType:&quot;boolean&quot;,dflt:!1},titleText:{valType:&quot;boolean&quot;,dflt:!1}},autosizable:{valType:&quot;boolean&quot;,dflt:!1},responsive:{valType:&quot;boolean&quot;,dflt:!1},fillFrame:{valType:&quot;boolean&quot;,dflt:!1},frameMargins:{valType:&quot;number&quot;,dflt:0,min:0,max:.5},scrollZoom:{valType:&quot;flaglist&quot;,flags:[&quot;cartesian&quot;,&quot;gl3d&quot;,&quot;geo&quot;,&quot;mapbox&quot;],extras:[!0,!1],dflt:&quot;gl3d+geo+mapbox&quot;},doubleClick:{valType:&quot;enumerated&quot;,values:[!1,&quot;reset&quot;,&quot;autosize&quot;,&quot;reset+autosize&quot;],dflt:&quot;reset+autosize&quot;},doubleClickDelay:{valType:&quot;number&quot;,dflt:300,min:0},showAxisDragHandles:{valType:&quot;boolean&quot;,dflt:!0},showAxisRangeEntryBoxes:{valType:&quot;boolean&quot;,dflt:!0},showTips:{valType:&quot;boolean&quot;,dflt:!0},showLink:{valType:&quot;boolean&quot;,dflt:!1},linkText:{valType:&quot;string&quot;,dflt:&quot;Edit chart&quot;,noBlank:!0},sendData:{valType:&quot;boolean&quot;,dflt:!0},showSources:{valType:&quot;any&quot;,dflt:!1},displayModeBar:{valType:&quot;enumerated&quot;,values:[&quot;hover&quot;,!0,!1],dflt:&quot;hover&quot;},showSendToCloud:{valType:&quot;boolean&quot;,dflt:!1},showEditInChartStudio:{valType:&quot;boolean&quot;,dflt:!1},modeBarButtonsToRemove:{valType:&quot;any&quot;,dflt:[]},modeBarButtonsToAdd:{valType:&quot;any&quot;,dflt:[]},modeBarButtons:{valType:&quot;any&quot;,dflt:!1},toImageButtonOptions:{valType:&quot;any&quot;,dflt:{}},displaylogo:{valType:&quot;boolean&quot;,dflt:!0},watermark:{valType:&quot;boolean&quot;,dflt:!1},plotGlPixelRatio:{valType:&quot;number&quot;,dflt:2,min:1,max:4},setBackground:{valType:&quot;any&quot;,dflt:&quot;transparent&quot;},topojsonURL:{valType:&quot;string&quot;,noBlank:!0,dflt:&quot;https://cdn.plot.ly/&quot;},mapboxAccessToken:{valType:&quot;string&quot;,dflt:null},logging:{valType:&quot;integer&quot;,min:0,max:2,dflt:1},notifyOnLogging:{valType:&quot;integer&quot;,min:0,max:2,dflt:0},queueLength:{valType:&quot;integer&quot;,min:0,dflt:0},globalTransforms:{valType:&quot;any&quot;,dflt:[]},locale:{valType:&quot;string&quot;,dflt:&quot;en-US&quot;},locales:{valType:&quot;any&quot;,dflt:{}}},i={};!function t(e,r){for(var n in e){var i=e[n];i.valType?r[n]=i.dflt:(r[n]||(r[n]={}),t(i,r[n]))}}(n,i),e.exports={configAttributes:n,dfltConfig:i}},{}],816:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../plots/attributes&quot;),o=t(&quot;../plots/layout_attributes&quot;),s=t(&quot;../plots/frame_attributes&quot;),l=t(&quot;../plots/animation_attributes&quot;),c=t(&quot;./plot_config&quot;).configAttributes,u=t(&quot;../plots/polar/legacy/area_attributes&quot;),f=t(&quot;../plots/polar/legacy/axis_attributes&quot;),h=t(&quot;./edit_types&quot;),p=i.extendFlat,d=i.extendDeepAll,g=i.isPlainObject,m=i.isArrayOrTypedArray,v=i.nestedProperty,y=i.valObjectMeta,x=[&quot;_isSubplotObj&quot;,&quot;_isLinkedToArray&quot;,&quot;_arrayAttrRegexps&quot;,&quot;_deprecated&quot;];function b(t,e,r){if(!t)return!1;if(t._isLinkedToArray)if(_(e[r]))r++;else if(r&lt;e.length)return!1;for(;r&lt;e.length;r++){var n=t[e[r]];if(!g(n))break;if(t=n,r===e.length-1)break;if(t._isLinkedToArray){if(!_(e[++r]))return!1}else if(&quot;info_array&quot;===t.valType){var i=e[++r];if(!_(i))return!1;var a=t.items;if(Array.isArray(a)){if(i&gt;=a.length)return!1;if(2===t.dimensions){if(r++,e.length===r)return t;var o=e[r];if(!_(o))return!1;t=a[i][o]}else t=a[i]}else t=a}}return t}function _(t){return t===Math.round(t)&amp;&amp;t&gt;=0}function w(){var t,e,r={};for(t in d(r,o),n.subplotsRegistry){if((e=n.subplotsRegistry[t]).layoutAttributes)if(Array.isArray(e.attr))for(var i=0;i&lt;e.attr.length;i++)M(r,e,e.attr[i]);else M(r,e,&quot;subplot&quot;===e.attr?e.name:e.attr)}for(t in r=function(t){return p(t,{radialaxis:f.radialaxis,angularaxis:f.angularaxis}),p(t,f.layout),t}(r),n.componentsRegistry){var a=(e=n.componentsRegistry[t]).schema;if(a&amp;&amp;(a.subplots||a.layout)){var s=a.subplots;if(s&amp;&amp;s.xaxis&amp;&amp;!s.yaxis)for(var l in s.xaxis)delete r.yaxis[l]}else&quot;colorscale&quot;===e.name?d(r,e.layoutAttributes):e.layoutAttributes&amp;&amp;A(r,e.layoutAttributes,e.name)}return{layoutAttributes:k(r)}}function T(){var t={frames:d({},s)};return k(t),t.frames}function k(t){return function(t){r.crawl(t,(function(t,e,n){r.isValObject(t)?&quot;data_array&quot;===t.valType?(t.role=&quot;data&quot;,n[e+&quot;src&quot;]={valType:&quot;string&quot;,editType:&quot;none&quot;}):!0===t.arrayOk&amp;&amp;(n[e+&quot;src&quot;]={valType:&quot;string&quot;,editType:&quot;none&quot;}):g(t)&amp;&amp;(t.role=&quot;object&quot;)}))}(t),function(t){r.crawl(t,(function(t,e,r){if(t){var n=t._isLinkedToArray;n&amp;&amp;(delete t._isLinkedToArray,r[e]={items:{}},r[e].items[n]=t,r[e].role=&quot;object&quot;)}}))}(t),function(t){!function t(e){for(var r in e)if(g(e[r]))t(e[r]);else if(Array.isArray(e[r]))for(var n=0;n&lt;e[r].length;n++)t(e[r][n]);else e[r]instanceof RegExp&amp;&amp;(e[r]=e[r].toString())}(t)}(t),t}function M(t,e,r){var n=v(t,r),i=d({},e.layoutAttributes);i._isSubplotObj=!0,n.set(i)}function A(t,e,r){var n=v(t,r);n.set(d(n.get()||{},e))}r.IS_SUBPLOT_OBJ=&quot;_isSubplotObj&quot;,r.IS_LINKED_TO_ARRAY=&quot;_isLinkedToArray&quot;,r.DEPRECATED=&quot;_deprecated&quot;,r.UNDERSCORE_ATTRS=x,r.get=function(){var t={};n.allTypes.concat(&quot;area&quot;).forEach((function(e){t[e]=function(t){var e,i;&quot;area&quot;===t?(e={attributes:u},i={}):(e=n.modules[t]._module,i=e.basePlotModule);var o={type:null},s=d({},a),l=d({},e.attributes);r.crawl(l,(function(t,e,r,n,i){v(s,i).set(void 0),void 0===t&amp;&amp;v(l,i).set(void 0)})),d(o,s),n.traceIs(t,&quot;noOpacity&quot;)&amp;&amp;delete o.opacity;n.traceIs(t,&quot;showLegend&quot;)||(delete o.showlegend,delete o.legendgroup);n.traceIs(t,&quot;noHover&quot;)&amp;&amp;(delete o.hoverinfo,delete o.hoverlabel);e.selectPoints||delete o.selectedpoints;d(o,l),i.attributes&amp;&amp;d(o,i.attributes);o.type=t;var c={meta:e.meta||{},categories:e.categories||{},animatable:Boolean(e.animatable),type:t,attributes:k(o)};if(e.layoutAttributes){var f={};d(f,e.layoutAttributes),c.layoutAttributes=k(f)}e.animatable||r.crawl(c,(function(t){r.isValObject(t)&amp;&amp;&quot;anim&quot;in t&amp;&amp;delete t.anim}));return c}(e)}));var e={};return Object.keys(n.transformsRegistry).forEach((function(t){e[t]=function(t){var e=n.transformsRegistry[t],r=d({},e.attributes);return Object.keys(n.componentsRegistry).forEach((function(e){var i=n.componentsRegistry[e];i.schema&amp;&amp;i.schema.transforms&amp;&amp;i.schema.transforms[t]&amp;&amp;Object.keys(i.schema.transforms[t]).forEach((function(e){A(r,i.schema.transforms[t][e],e)}))})),{attributes:k(r)}}(t)})),{defs:{valObjects:y,metaKeys:x.concat([&quot;description&quot;,&quot;role&quot;,&quot;editType&quot;,&quot;impliedEdits&quot;]),editType:{traces:h.traces,layout:h.layout},impliedEdits:{}},traces:t,layout:w(),transforms:e,frames:T(),animation:k(l),config:k(c)}},r.crawl=function(t,e,n,i){var a=n||0;i=i||&quot;&quot;,Object.keys(t).forEach((function(n){var o=t[n];if(-1===x.indexOf(n)){var s=(i?i+&quot;.&quot;:&quot;&quot;)+n;e(o,n,t,a,s),r.isValObject(o)||g(o)&amp;&amp;&quot;impliedEdits&quot;!==n&amp;&amp;r.crawl(o,e,a+1,s)}}))},r.isValObject=function(t){return t&amp;&amp;void 0!==t.valType},r.findArrayAttributes=function(t){var e,n,i=[],o=[],s=[];function l(t,r,a,l){o=o.slice(0,l).concat([r]),s=s.slice(0,l).concat([t&amp;&amp;t._isLinkedToArray]),t&amp;&amp;(&quot;data_array&quot;===t.valType||!0===t.arrayOk)&amp;&amp;!(&quot;colorbar&quot;===o[l-1]&amp;&amp;(&quot;ticktext&quot;===r||&quot;tickvals&quot;===r))&amp;&amp;function t(e,r,a){var l=e[o[r]],c=a+o[r];if(r===o.length-1)m(l)&amp;&amp;i.push(n+c);else if(s[r]){if(Array.isArray(l))for(var u=0;u&lt;l.length;u++)g(l[u])&amp;&amp;t(l[u],r+1,c+&quot;[&quot;+u+&quot;].&quot;)}else g(l)&amp;&amp;t(l,r+1,c+&quot;.&quot;)}(e,0,&quot;&quot;)}e=t,n=&quot;&quot;,r.crawl(a,l),t._module&amp;&amp;t._module.attributes&amp;&amp;r.crawl(t._module.attributes,l);var c=t.transforms;if(c)for(var u=0;u&lt;c.length;u++){var f=c[u],h=f._module;h&amp;&amp;(n=&quot;transforms[&quot;+u+&quot;].&quot;,e=f,r.crawl(h.attributes,l))}return i},r.getTraceValObject=function(t,e){var r,i,o=e[0],s=1;if(&quot;transforms&quot;===o){if(1===e.length)return a.transforms;var l=t.transforms;if(!Array.isArray(l)||!l.length)return!1;var c=e[1];if(!_(c)||c&gt;=l.length)return!1;i=(r=(n.transformsRegistry[l[c].type]||{}).attributes)&amp;&amp;r[e[2]],s=3}else if(&quot;area&quot;===t.type)i=u[o];else{var f=t._module;if(f||(f=(n.modules[t.type||a.type.dflt]||{})._module),!f)return!1;if(!(i=(r=f.attributes)&amp;&amp;r[o])){var h=f.basePlotModule;h&amp;&amp;h.attributes&amp;&amp;(i=h.attributes[o])}i||(i=a[o])}return b(i,e,s)},r.getLayoutValObject=function(t,e){return b(function(t,e){var r,i,a,s,l=t._basePlotModules;if(l){var c;for(r=0;r&lt;l.length;r++){if((a=l[r]).attrRegex&amp;&amp;a.attrRegex.test(e)){if(a.layoutAttrOverrides)return a.layoutAttrOverrides;!c&amp;&amp;a.layoutAttributes&amp;&amp;(c=a.layoutAttributes)}var u=a.baseLayoutAttrOverrides;if(u&amp;&amp;e in u)return u[e]}if(c)return c}var h=t._modules;if(h)for(r=0;r&lt;h.length;r++)if((s=h[r].layoutAttributes)&amp;&amp;e in s)return s[e];for(i in n.componentsRegistry){if(&quot;colorscale&quot;===(a=n.componentsRegistry[i]).name&amp;&amp;0===e.indexOf(&quot;coloraxis&quot;))return a.layoutAttributes[e];if(!a.schema&amp;&amp;e===a.name)return a.layoutAttributes}if(e in o)return o[e];if(&quot;radialaxis&quot;===e||&quot;angularaxis&quot;===e)return f[e];return f.layout[e]||!1}(t,e[0]),e,1)}},{&quot;../lib&quot;:778,&quot;../plots/animation_attributes&quot;:822,&quot;../plots/attributes&quot;:824,&quot;../plots/frame_attributes&quot;:857,&quot;../plots/layout_attributes&quot;:882,&quot;../plots/polar/legacy/area_attributes&quot;:897,&quot;../plots/polar/legacy/axis_attributes&quot;:898,&quot;../registry&quot;:911,&quot;./edit_types&quot;:810,&quot;./plot_config&quot;:815}],817:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/attributes&quot;),a={name:{valType:&quot;string&quot;,editType:&quot;none&quot;}};function o(t){return t&amp;&amp;&quot;string&quot;==typeof t}function s(t){var e=t.length-1;return&quot;s&quot;!==t.charAt(e)&amp;&amp;n.warn(&quot;bad argument to arrayDefaultKey: &quot;+t),t.substr(0,t.length-1)+&quot;defaults&quot;}a.templateitemname={valType:&quot;string&quot;,editType:&quot;calc&quot;},r.templatedArray=function(t,e){return e._isLinkedToArray=t,e.name=a.name,e.templateitemname=a.templateitemname,e},r.traceTemplater=function(t){var e,r,a={};for(e in t)r=t[e],Array.isArray(r)&amp;&amp;r.length&amp;&amp;(a[e]=0);return{newTrace:function(o){var s={type:e=n.coerce(o,{},i,&quot;type&quot;),_template:null};if(e in a){r=t[e];var l=a[e]%r.length;a[e]++,s._template=r[l]}return s}}},r.newContainer=function(t,e,r){var i=t._template,a=i&amp;&amp;(i[e]||r&amp;&amp;i[r]);return n.isPlainObject(a)||(a=null),t[e]={_template:a}},r.arrayTemplater=function(t,e,r){var n=t._template,i=n&amp;&amp;n[s(e)],a=n&amp;&amp;n[e];Array.isArray(a)&amp;&amp;a.length||(a=[]);var l={};return{newItem:function(t){var e={name:t.name,_input:t},n=e.templateitemname=t.templateitemname;if(!o(n))return e._template=i,e;for(var s=0;s&lt;a.length;s++){var c=a[s];if(c.name===n)return l[n]=1,e._template=c,e}return e[r]=t[r]||!1,e._template=!1,e},defaultItems:function(){for(var t=[],e=0;e&lt;a.length;e++){var r=a[e],n=r.name;if(o(n)&amp;&amp;!l[n]){var i={_template:r,name:n,_input:{_templateitemname:n}};i.templateitemname=r.templateitemname,t.push(i),l[n]=1}}return t}}},r.arrayDefaultKey=s,r.arrayEditor=function(t,e,r){var i=(n.nestedProperty(t,e).get()||[]).length,a=r._index,o=a&gt;=i&amp;&amp;(r._input||{})._templateitemname;o&amp;&amp;(a=i);var s,l=e+&quot;[&quot;+a+&quot;]&quot;;function c(){s={},o&amp;&amp;(s[l]={},s[l].templateitemname=o)}function u(t,e){o?n.nestedProperty(s[l],t).set(e):s[l+&quot;.&quot;+t]=e}function f(){var t=s;return c(),t}return c(),{modifyBase:function(t,e){s[t]=e},modifyItem:u,getUpdateObj:f,applyUpdate:function(e,r){e&amp;&amp;u(e,r);var i=f();for(var a in i)n.nestedProperty(t,a).set(i[a])}}}},{&quot;../lib&quot;:778,&quot;../plots/attributes&quot;:824}],818:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../registry&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../lib/clear_gl_canvases&quot;),l=t(&quot;../components/color&quot;),c=t(&quot;../components/drawing&quot;),u=t(&quot;../components/titles&quot;),f=t(&quot;../components/modebar&quot;),h=t(&quot;../plots/cartesian/axes&quot;),p=t(&quot;../constants/alignment&quot;),d=t(&quot;../plots/cartesian/constraints&quot;),g=d.enforce,m=d.clean,v=t(&quot;../plots/cartesian/autorange&quot;).doAutoRange;function y(t,e,r){for(var n=0;n&lt;r.length;n++){var i=r[n][0],a=r[n][1];if(!(i[0]&gt;=t[1]||i[1]&lt;=t[0])&amp;&amp;(a[0]&lt;e[1]&amp;&amp;a[1]&gt;e[0]))return!0}return!1}function x(t){var e,i,s,u,d,g,m=t._fullLayout,v=m._size,x=v.p,_=h.list(t,&quot;&quot;,!0);if(m._paperdiv.style({width:t._context.responsive&amp;&amp;m.autosize&amp;&amp;!t._context._hasZeroWidth&amp;&amp;!t.layout.width?&quot;100%&quot;:m.width+&quot;px&quot;,height:t._context.responsive&amp;&amp;m.autosize&amp;&amp;!t._context._hasZeroHeight&amp;&amp;!t.layout.height?&quot;100%&quot;:m.height+&quot;px&quot;}).selectAll(&quot;.main-svg&quot;).call(c.setSize,m.width,m.height),t._context.setBackground(t,m.paper_bgcolor),r.drawMainTitle(t),f.manage(t),!m._has(&quot;cartesian&quot;))return a.previousPromises(t);function T(t,e,r){var n=t._lw/2;return&quot;x&quot;===t._id.charAt(0)?e?&quot;top&quot;===r?e._offset-x-n:e._offset+e._length+x+n:v.t+v.h*(1-(t.position||0))+n%1:e?&quot;right&quot;===r?e._offset+e._length+x+n:e._offset-x-n:v.l+v.w*(t.position||0)+n%1}for(e=0;e&lt;_.length;e++){var k=(u=_[e])._anchorAxis;u._linepositions={},u._lw=c.crispRound(t,u.linewidth,1),u._mainLinePosition=T(u,k,u.side),u._mainMirrorPosition=u.mirror&amp;&amp;k?T(u,k,p.OPPOSITE_SIDE[u.side]):null}var M=[],A=[],S=[],E=1===l.opacity(m.paper_bgcolor)&amp;&amp;1===l.opacity(m.plot_bgcolor)&amp;&amp;m.paper_bgcolor===m.plot_bgcolor;for(i in m._plots)if((s=m._plots[i]).mainplot)s.bg&amp;&amp;s.bg.remove(),s.bg=void 0;else{var C=s.xaxis.domain,L=s.yaxis.domain,I=s.plotgroup;if(y(C,L,S)){var P=I.node(),z=s.bg=o.ensureSingle(I,&quot;rect&quot;,&quot;bg&quot;);P.insertBefore(z.node(),P.childNodes[0]),A.push(i)}else I.select(&quot;rect.bg&quot;).remove(),S.push([C,L]),E||(M.push(i),A.push(i))}var O,D,R,F,B,N,j,U,V,q,H,G,Y,W=m._bgLayer.selectAll(&quot;.bg&quot;).data(M);for(W.enter().append(&quot;rect&quot;).classed(&quot;bg&quot;,!0),W.exit().remove(),W.each((function(t){m._plots[t].bg=n.select(this)})),e=0;e&lt;A.length;e++)s=m._plots[A[e]],d=s.xaxis,g=s.yaxis,s.bg&amp;&amp;void 0!==d._offset&amp;&amp;void 0!==g._offset&amp;&amp;s.bg.call(c.setRect,d._offset-x,g._offset-x,d._length+2*x,g._length+2*x).call(l.fill,m.plot_bgcolor).style(&quot;stroke-width&quot;,0);if(!m._hasOnlyLargeSploms)for(i in m._plots){s=m._plots[i],d=s.xaxis,g=s.yaxis;var X,Z,J=s.clipId=&quot;clip&quot;+m._uid+i+&quot;plot&quot;,K=o.ensureSingleById(m._clips,&quot;clipPath&quot;,J,(function(t){t.classed(&quot;plotclip&quot;,!0).append(&quot;rect&quot;)}));s.clipRect=K.select(&quot;rect&quot;).attr({width:d._length,height:g._length}),c.setTranslate(s.plot,d._offset,g._offset),s._hasClipOnAxisFalse?(X=null,Z=J):(X=J,Z=null),c.setClipUrl(s.plot,X,t),s.layerClipId=Z}function Q(t){return&quot;M&quot;+O+&quot;,&quot;+t+&quot;H&quot;+D}function $(t){return&quot;M&quot;+d._offset+&quot;,&quot;+t+&quot;h&quot;+d._length}function tt(t){return&quot;M&quot;+t+&quot;,&quot;+U+&quot;V&quot;+j}function et(t){return&quot;M&quot;+t+&quot;,&quot;+g._offset+&quot;v&quot;+g._length}function rt(t,e,r){if(!t.showline||i!==t._mainSubplot)return&quot;&quot;;if(!t._anchorAxis)return r(t._mainLinePosition);var n=e(t._mainLinePosition);return t.mirror&amp;&amp;(n+=e(t._mainMirrorPosition)),n}for(i in m._plots){s=m._plots[i],d=s.xaxis,g=s.yaxis;var nt=&quot;M0,0&quot;;b(d,i)&amp;&amp;(B=w(d,&quot;left&quot;,g,_),O=d._offset-(B?x+B:0),N=w(d,&quot;right&quot;,g,_),D=d._offset+d._length+(N?x+N:0),R=T(d,g,&quot;bottom&quot;),F=T(d,g,&quot;top&quot;),!(Y=!d._anchorAxis||i!==d._mainSubplot)||&quot;allticks&quot;!==d.mirror&amp;&amp;&quot;all&quot;!==d.mirror||(d._linepositions[i]=[R,F]),nt=rt(d,Q,$),Y&amp;&amp;d.showline&amp;&amp;(&quot;all&quot;===d.mirror||&quot;allticks&quot;===d.mirror)&amp;&amp;(nt+=Q(R)+Q(F)),s.xlines.style(&quot;stroke-width&quot;,d._lw+&quot;px&quot;).call(l.stroke,d.showline?d.linecolor:&quot;rgba(0,0,0,0)&quot;)),s.xlines.attr(&quot;d&quot;,nt);var it=&quot;M0,0&quot;;b(g,i)&amp;&amp;(H=w(g,&quot;bottom&quot;,d,_),j=g._offset+g._length+(H?x:0),G=w(g,&quot;top&quot;,d,_),U=g._offset-(G?x:0),V=T(g,d,&quot;left&quot;),q=T(g,d,&quot;right&quot;),!(Y=!g._anchorAxis||i!==g._mainSubplot)||&quot;allticks&quot;!==g.mirror&amp;&amp;&quot;all&quot;!==g.mirror||(g._linepositions[i]=[V,q]),it=rt(g,tt,et),Y&amp;&amp;g.showline&amp;&amp;(&quot;all&quot;===g.mirror||&quot;allticks&quot;===g.mirror)&amp;&amp;(it+=tt(V)+tt(q)),s.ylines.style(&quot;stroke-width&quot;,g._lw+&quot;px&quot;).call(l.stroke,g.showline?g.linecolor:&quot;rgba(0,0,0,0)&quot;)),s.ylines.attr(&quot;d&quot;,it)}return h.makeClipPaths(t),a.previousPromises(t)}function b(t,e){return(t.ticks||t.showline)&amp;&amp;(e===t._mainSubplot||&quot;all&quot;===t.mirror||&quot;allticks&quot;===t.mirror)}function _(t,e,r){if(!r.showline||!r._lw)return!1;if(&quot;all&quot;===r.mirror||&quot;allticks&quot;===r.mirror)return!0;var n=r._anchorAxis;if(!n)return!1;var i=p.FROM_BL[e];return r.side===e?n.domain[i]===t.domain[i]:r.mirror&amp;&amp;n.domain[1-i]===t.domain[1-i]}function w(t,e,r,n){if(_(t,e,r))return r._lw;for(var i=0;i&lt;n.length;i++){var a=n[i];if(a._mainAxis===r._mainAxis&amp;&amp;_(t,e,a))return a._lw}return 0}function T(t,e){var r=t.title,n=t._size,i=0;switch(&quot;start&quot;===e?i=r.pad.l:&quot;end&quot;===e&amp;&amp;(i=-r.pad.r),r.xref){case&quot;paper&quot;:return n.l+n.w*r.x+i;case&quot;container&quot;:default:return t.width*r.x+i}}function k(t,e){var r=t.title,n=t._size,i=0;if(&quot;0em&quot;!==e&amp;&amp;e?e===p.CAP_SHIFT+&quot;em&quot;&amp;&amp;(i=r.pad.t):i=-r.pad.b,&quot;auto&quot;===r.y)return n.t/2;switch(r.yref){case&quot;paper&quot;:return n.t+n.h-n.h*r.y+i;case&quot;container&quot;:default:return t.height-t.height*r.y+i}}r.layoutStyles=function(t){return o.syncOrAsync([a.doAutoMargin,x],t)},r.drawMainTitle=function(t){var e=t._fullLayout,r=function(t){var e=t.title,r=&quot;middle&quot;;o.isRightAnchor(e)?r=&quot;end&quot;:o.isLeftAnchor(e)&amp;&amp;(r=&quot;start&quot;);return r}(e),n=function(t){var e=t.title,r=&quot;0em&quot;;o.isTopAnchor(e)?r=p.CAP_SHIFT+&quot;em&quot;:o.isMiddleAnchor(e)&amp;&amp;(r=p.MID_SHIFT+&quot;em&quot;);return r}(e);u.draw(t,&quot;gtitle&quot;,{propContainer:e,propName:&quot;title.text&quot;,placeholder:e._dfltTitle.plot,attributes:{x:T(e,r),y:k(e,n),&quot;text-anchor&quot;:r,dy:n}})},r.doTraceStyle=function(t){var e,n=t.calcdata,o=[];for(e=0;e&lt;n.length;e++){var l=n[e],c=l[0]||{},u=c.trace||{},f=u._module||{},h=f.arraysToCalcdata;h&amp;&amp;h(l,u);var p=f.editStyle;p&amp;&amp;o.push({fn:p,cd0:c})}if(o.length){for(e=0;e&lt;o.length;e++){var d=o[e];d.fn(t,d.cd0)}s(t),r.redrawReglTraces(t)}return a.style(t),i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.doColorBars=function(t){return i.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.layoutReplot=function(t){var e=t.layout;return t.layout=void 0,i.call(&quot;plot&quot;,t,&quot;&quot;,e)},r.doLegend=function(t){return i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.doTicksRelayout=function(t){return h.draw(t,&quot;redraw&quot;),t._fullLayout._hasOnlyLargeSploms&amp;&amp;(i.subplotsRegistry.splom.updateGrid(t),s(t),r.redrawReglTraces(t)),r.drawMainTitle(t),a.previousPromises(t)},r.doModeBar=function(t){var e=t._fullLayout;f.manage(t);for(var r=0;r&lt;e._basePlotModules.length;r++){var n=e._basePlotModules[r].updateFx;n&amp;&amp;n(t)}return a.previousPromises(t)},r.doCamera=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n&lt;r.length;n++){var i=e[r[n]];i._scene.setViewport(i)}},r.drawData=function(t){var e=t._fullLayout;s(t);for(var n=e._basePlotModules,o=0;o&lt;n.length;o++)n[o].plot(t);return r.redrawReglTraces(t),a.style(t),i.getComponentMethod(&quot;shapes&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;annotations&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;images&quot;,&quot;draw&quot;)(t),e._replotting=!1,a.previousPromises(t)},r.redrawReglTraces=function(t){var e=t._fullLayout;if(e._has(&quot;regl&quot;)){var r,n,i=t._fullData,a=[],s=[];for(e._hasOnlyLargeSploms&amp;&amp;e._splomGrid.draw(),r=0;r&lt;i.length;r++){var l=i[r];!0===l.visible&amp;&amp;0!==l._length&amp;&amp;(&quot;splom&quot;===l.type?e._splomScenes[l.uid].draw():&quot;scattergl&quot;===l.type?o.pushUnique(a,l.xaxis+l.yaxis):&quot;scatterpolargl&quot;===l.type&amp;&amp;o.pushUnique(s,l.subplot))}for(r=0;r&lt;a.length;r++)(n=e._plots[a[r]])._scene&amp;&amp;n._scene.draw();for(r=0;r&lt;s.length;r++)(n=e[s[r]]._subplot)._scene&amp;&amp;n._scene.draw()}},r.doAutoRangeAndConstraints=function(t){for(var e,r=h.list(t,&quot;&quot;,!0),n={},i=0;i&lt;r.length;i++)if(!n[(e=r[i])._id]){n[e._id]=1,m(t,e),v(t,e);var a=e._matchGroup;if(a)for(var o in a){var s=h.getFromId(t,o);v(t,s,e.range),n[o]=1}}g(t)},r.finalDraw=function(t){i.getComponentMethod(&quot;rangeslider&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;rangeselector&quot;,&quot;draw&quot;)(t)},r.drawMarginPushers=function(t){i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;rangeselector&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;sliders&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;updatemenus&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t)}},{&quot;../components/color&quot;:643,&quot;../components/drawing&quot;:665,&quot;../components/modebar&quot;:703,&quot;../components/titles&quot;:738,&quot;../constants/alignment&quot;:745,&quot;../lib&quot;:778,&quot;../lib/clear_gl_canvases&quot;:762,&quot;../plots/cartesian/autorange&quot;:827,&quot;../plots/cartesian/axes&quot;:828,&quot;../plots/cartesian/constraints&quot;:835,&quot;../plots/plots&quot;:891,&quot;../registry&quot;:911,d3:169}],819:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=n.isPlainObject,a=t(&quot;./plot_schema&quot;),o=t(&quot;../plots/plots&quot;),s=t(&quot;../plots/attributes&quot;),l=t(&quot;./plot_template&quot;),c=t(&quot;./plot_config&quot;).dfltConfig;function u(t,e){t=n.extendDeep({},t);var r,a,o=Object.keys(t).sort();function s(e,r,n){if(i(r)&amp;&amp;i(e))u(e,r);else if(Array.isArray(r)&amp;&amp;Array.isArray(e)){var o=l.arrayTemplater({_template:t},n);for(a=0;a&lt;r.length;a++){var s=r[a],c=o.newItem(s)._template;c&amp;&amp;u(c,s)}var f=o.defaultItems();for(a=0;a&lt;f.length;a++)r.push(f[a]._template);for(a=0;a&lt;r.length;a++)delete r[a].templateitemname}}for(r=0;r&lt;o.length;r++){var c=o[r],h=t[c];if(c in e?s(h,e[c],c):e[c]=h,f(c)===c)for(var p in e){var d=f(p);p===d||d!==c||p in t||s(h,e[p],c)}}}function f(t){return t.replace(/[0-9]+$/,&quot;&quot;)}function h(t,e,r,a,o){var s=o&amp;&amp;r(o);for(var c in t){var u=t[c],p=g(t,c,a),d=g(t,c,o),m=r(d);if(!m){var v=f(c);v!==c&amp;&amp;(m=r(d=g(t,v,o)))}if((!s||s!==m)&amp;&amp;!(!m||m._noTemplating||&quot;data_array&quot;===m.valType||m.arrayOk&amp;&amp;Array.isArray(u)))if(!m.valType&amp;&amp;i(u))h(u,e,r,p,d);else if(m._isLinkedToArray&amp;&amp;Array.isArray(u))for(var y=!1,x=0,b={},_=0;_&lt;u.length;_++){var w=u[_];if(i(w)){var T=w.name;if(T)b[T]||(h(w,e,r,g(u,x,p),g(u,x,d)),x++,b[T]=1);else if(!y){var k=g(t,l.arrayDefaultKey(c),a),M=g(u,x,p);h(w,e,r,M,g(u,x,d));var A=n.nestedProperty(e,M);n.nestedProperty(e,k).set(A.get()),A.set(null),y=!0}}}else{n.nestedProperty(e,p).set(u)}}}function p(t,e){return a.getLayoutValObject(t,n.nestedProperty({},e).parts)}function d(t,e){return a.getTraceValObject(t,n.nestedProperty({},e).parts)}function g(t,e,r){return r?Array.isArray(t)?r+&quot;[&quot;+e+&quot;]&quot;:r+&quot;.&quot;+e:e}function m(t){for(var e=0;e&lt;t.length;e++)if(i(t[e]))return!0}function v(t){var e;switch(t.code){case&quot;data&quot;:e=&quot;The template has no key data.&quot;;break;case&quot;layout&quot;:e=&quot;The template has no key layout.&quot;;break;case&quot;missing&quot;:e=t.path?&quot;There are no templates for item &quot;+t.path+&quot; with name &quot;+t.templateitemname:&quot;There are no templates for trace &quot;+t.index+&quot;, of type &quot;+t.traceType+&quot;.&quot;;break;case&quot;unused&quot;:e=t.path?&quot;The template item at &quot;+t.path+&quot; was not used in constructing the plot.&quot;:t.dataCount?&quot;Some of the templates of type &quot;+t.traceType+&quot; were not used. The template has &quot;+t.templateCount+&quot; traces, the data only has &quot;+t.dataCount+&quot; of this type.&quot;:&quot;The template has &quot;+t.templateCount+&quot; traces of type &quot;+t.traceType+&quot; but there are none in the data.&quot;;break;case&quot;reused&quot;:e=&quot;Some of the templates of type &quot;+t.traceType+&quot; were used more than once. The template has &quot;+t.templateCount+&quot; traces, the data has &quot;+t.dataCount+&quot; of this type.&quot;}return t.msg=e,t}r.makeTemplate=function(t){t=n.isPlainObject(t)?t:n.getGraphDiv(t),t=n.extendDeep({_context:c},{data:t.data,layout:t.layout}),o.supplyDefaults(t);var e=t.data||[],r=t.layout||{};r._basePlotModules=t._fullLayout._basePlotModules,r._modules=t._fullLayout._modules;var a={data:{},layout:{}};e.forEach((function(t){var e={};h(t,e,d.bind(null,t));var r=n.coerce(t,{},s,&quot;type&quot;),i=a.data[r];i||(i=a.data[r]=[]),i.push(e)})),h(r,a.layout,p.bind(null,r)),delete a.layout.template;var l=r.template;if(i(l)){var f,g,m,v,y,x,b=l.layout;i(b)&amp;&amp;u(b,a.layout);var _=l.data;if(i(_)){for(g in a.data)if(m=_[g],Array.isArray(m)){for(x=(y=a.data[g]).length,v=m.length,f=0;f&lt;x;f++)u(m[f%v],y[f]);for(f=x;f&lt;v;f++)y.push(n.extendDeep({},m[f]))}for(g in _)g in a.data||(a.data[g]=n.extendDeep([],_[g]))}}return a},r.validateTemplate=function(t,e){var r=n.extendDeep({},{_context:c,data:t.data,layout:t.layout}),a=r.layout||{};i(e)||(e=a.template||{});var s=e.layout,l=e.data,u=[];r.layout=a,r.layout.template=e,o.supplyDefaults(r);var h=r._fullLayout,p=r._fullData,d={};if(i(s)?(!function t(e,r){for(var n in e)if(&quot;_&quot;!==n.charAt(0)&amp;&amp;i(e[n])){var a,o=f(n),s=[];for(a=0;a&lt;r.length;a++)s.push(g(e,n,r[a])),o!==n&amp;&amp;s.push(g(e,o,r[a]));for(a=0;a&lt;s.length;a++)d[s[a]]=1;t(e[n],s)}}(h,[&quot;layout&quot;]),function t(e,r){for(var n in e)if(-1===n.indexOf(&quot;defaults&quot;)&amp;&amp;i(e[n])){var a=g(e,n,r);d[a]?t(e[n],a):u.push({code:&quot;unused&quot;,path:a})}}(s,&quot;layout&quot;)):u.push({code:&quot;layout&quot;}),i(l)){for(var y,x={},b=0;b&lt;p.length;b++){var _=p[b];x[y=_.type]=(x[y]||0)+1,_._fullInput._template||u.push({code:&quot;missing&quot;,index:_._fullInput.index,traceType:y})}for(y in l){var w=l[y].length,T=x[y]||0;w&gt;T?u.push({code:&quot;unused&quot;,traceType:y,templateCount:w,dataCount:T}):T&gt;w&amp;&amp;u.push({code:&quot;reused&quot;,traceType:y,templateCount:w,dataCount:T})}}else u.push({code:&quot;data&quot;});if(function t(e,r){for(var n in e)if(&quot;_&quot;!==n.charAt(0)){var a=e[n],o=g(e,n,r);i(a)?(Array.isArray(e)&amp;&amp;!1===a._template&amp;&amp;a.templateitemname&amp;&amp;u.push({code:&quot;missing&quot;,path:o,templateitemname:a.templateitemname}),t(a,o)):Array.isArray(a)&amp;&amp;m(a)&amp;&amp;t(a,o)}}({data:p,layout:h},&quot;&quot;),u.length)return u.map(v)}},{&quot;../lib&quot;:778,&quot;../plots/attributes&quot;:824,&quot;../plots/plots&quot;:891,&quot;./plot_config&quot;:815,&quot;./plot_schema&quot;:816,&quot;./plot_template&quot;:817}],820:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./plot_api&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../snapshot/helpers&quot;),l=t(&quot;../snapshot/tosvg&quot;),c=t(&quot;../snapshot/svgtoimg&quot;),u=t(&quot;../version&quot;).version,f={format:{valType:&quot;enumerated&quot;,values:[&quot;png&quot;,&quot;jpeg&quot;,&quot;webp&quot;,&quot;svg&quot;,&quot;full-json&quot;],dflt:&quot;png&quot;},width:{valType:&quot;number&quot;,min:1},height:{valType:&quot;number&quot;,min:1},scale:{valType:&quot;number&quot;,min:0,dflt:1},setBackground:{valType:&quot;any&quot;,dflt:!1},imageDataOnly:{valType:&quot;boolean&quot;,dflt:!1}};e.exports=function(t,e){var r,h,p,d;function g(t){return!(t in e)||o.validate(e[t],f[t])}if(e=e||{},o.isPlainObject(t)?(r=t.data||[],h=t.layout||{},p=t.config||{},d={}):(t=o.getGraphDiv(t),r=o.extendDeep([],t.data),h=o.extendDeep({},t.layout),p=t._context,d=t._fullLayout||{}),!g(&quot;width&quot;)&amp;&amp;null!==e.width||!g(&quot;height&quot;)&amp;&amp;null!==e.height)throw new Error(&quot;Height and width should be pixel values.&quot;);if(!g(&quot;format&quot;))throw new Error(&quot;Export format is not &quot;+o.join2(f.format.values,&quot;, &quot;,&quot; or &quot;)+&quot;.&quot;);var m={};function v(t,r){return o.coerce(e,m,f,t,r)}var y=v(&quot;format&quot;),x=v(&quot;width&quot;),b=v(&quot;height&quot;),_=v(&quot;scale&quot;),w=v(&quot;setBackground&quot;),T=v(&quot;imageDataOnly&quot;),k=document.createElement(&quot;div&quot;);k.style.position=&quot;absolute&quot;,k.style.left=&quot;-5000px&quot;,document.body.appendChild(k);var M=o.extendFlat({},h);x?M.width=x:null===e.width&amp;&amp;n(d.width)&amp;&amp;(M.width=d.width),b?M.height=b:null===e.height&amp;&amp;n(d.height)&amp;&amp;(M.height=d.height);var A=o.extendFlat({},p,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),S=s.getRedrawFunc(k);function E(){return new Promise((function(t){setTimeout(t,s.getDelay(k._fullLayout))}))}function C(){return new Promise((function(t,e){var r=l(k,y,_),n=k._fullLayout.width,f=k._fullLayout.height;function h(){i.purge(k),document.body.removeChild(k)}if(&quot;full-json&quot;===y){var p=a.graphJson(k,!1,&quot;keepdata&quot;,&quot;object&quot;,!0,!0);return p.version=u,p=JSON.stringify(p),h(),t(T?p:s.encodeJSON(p))}if(h(),&quot;svg&quot;===y)return t(T?r:s.encodeSVG(r));var d=document.createElement(&quot;canvas&quot;);d.id=o.randstr(),c({format:y,width:n,height:f,scale:_,canvas:d,svg:r,promise:!0}).then(t).catch(e)}))}return new Promise((function(t,e){i.plot(k,r,M,A).then(S).then(E).then(C).then((function(e){t(function(t){return T?t.replace(s.IMAGE_URL_PREFIX,&quot;&quot;):t}(e))})).catch((function(t){e(t)}))}))}},{&quot;../lib&quot;:778,&quot;../plots/plots&quot;:891,&quot;../snapshot/helpers&quot;:915,&quot;../snapshot/svgtoimg&quot;:917,&quot;../snapshot/tosvg&quot;:919,&quot;../version&quot;:1370,&quot;./plot_api&quot;:814,&quot;fast-isnumeric&quot;:241}],821:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/plots&quot;),a=t(&quot;./plot_schema&quot;),o=t(&quot;./plot_config&quot;).dfltConfig,s=n.isPlainObject,l=Array.isArray,c=n.isArrayOrTypedArray;function u(t,e,r,i,a,o){o=o||[];for(var f=Object.keys(t),h=0;h&lt;f.length;h++){var p=f[h];if(&quot;transforms&quot;!==p){var v=o.slice();v.push(p);var y=t[p],x=e[p],b=m(r,p),_=(b||{}).valType,w=&quot;info_array&quot;===_,T=&quot;colorscale&quot;===_,k=(b||{}).items;if(g(r,p))if(s(y)&amp;&amp;s(x)&amp;&amp;&quot;any&quot;!==_)u(y,x,b,i,a,v);else if(w&amp;&amp;l(y)){y.length&gt;x.length&amp;&amp;i.push(d(&quot;unused&quot;,a,v.concat(x.length)));var M,A,S,E,C,L=x.length,I=Array.isArray(k);if(I&amp;&amp;(L=Math.min(L,k.length)),2===b.dimensions)for(A=0;A&lt;L;A++)if(l(y[A])){y[A].length&gt;x[A].length&amp;&amp;i.push(d(&quot;unused&quot;,a,v.concat(A,x[A].length)));var P=x[A].length;for(M=0;M&lt;(I?Math.min(P,k[A].length):P);M++)S=I?k[A][M]:k,E=y[A][M],C=x[A][M],n.validate(E,S)?C!==E&amp;&amp;C!==+E&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v.concat(A,M),E,C)):i.push(d(&quot;value&quot;,a,v.concat(A,M),E))}else i.push(d(&quot;array&quot;,a,v.concat(A),y[A]));else for(A=0;A&lt;L;A++)S=I?k[A]:k,E=y[A],C=x[A],n.validate(E,S)?C!==E&amp;&amp;C!==+E&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v.concat(A),E,C)):i.push(d(&quot;value&quot;,a,v.concat(A),E))}else if(b.items&amp;&amp;!w&amp;&amp;l(y)){var z,O,D=k[Object.keys(k)[0]],R=[];for(z=0;z&lt;x.length;z++){var F=x[z]._index||z;if((O=v.slice()).push(F),s(y[F])&amp;&amp;s(x[z])){R.push(F);var B=y[F],N=x[z];s(B)&amp;&amp;!1!==B.visible&amp;&amp;!1===N.visible?i.push(d(&quot;invisible&quot;,a,O)):u(B,N,D,i,a,O)}}for(z=0;z&lt;y.length;z++)(O=v.slice()).push(z),s(y[z])?-1===R.indexOf(z)&amp;&amp;i.push(d(&quot;unused&quot;,a,O)):i.push(d(&quot;object&quot;,a,O,y[z]))}else!s(y)&amp;&amp;s(x)?i.push(d(&quot;object&quot;,a,v,y)):c(y)||!c(x)||w||T?p in e?n.validate(y,b)?&quot;enumerated&quot;===b.valType&amp;&amp;(b.coerceNumber&amp;&amp;y!==+x||y!==x)&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v,y,x)):i.push(d(&quot;value&quot;,a,v,y)):i.push(d(&quot;unused&quot;,a,v,y)):i.push(d(&quot;array&quot;,a,v,y));else i.push(d(&quot;schema&quot;,a,v))}}return i}function f(t,e){for(var r=t.layout.layoutAttributes,i=0;i&lt;e.length;i++){var a=e[i],o=t.traces[a.type],s=o.layoutAttributes;s&amp;&amp;(a.subplot?n.extendFlat(r[o.attributes.subplot.dflt],s):n.extendFlat(r,s))}return r}e.exports=function(t,e){void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e={});var r,c,h=a.get(),p=[],g={_context:n.extendFlat({},o)};l(t)?(g.data=n.extendDeep([],t),r=t):(g.data=[],r=[],p.push(d(&quot;array&quot;,&quot;data&quot;))),s(e)?(g.layout=n.extendDeep({},e),c=e):(g.layout={},c={},arguments.length&gt;1&amp;&amp;p.push(d(&quot;object&quot;,&quot;layout&quot;))),i.supplyDefaults(g);for(var m=g._fullData,v=r.length,y=0;y&lt;v;y++){var x=r[y],b=[&quot;data&quot;,y];if(s(x)){var _=m[y],w=_.type,T=h.traces[w].attributes;T.type={valType:&quot;enumerated&quot;,values:[w]},!1===_.visible&amp;&amp;!1!==x.visible&amp;&amp;p.push(d(&quot;invisible&quot;,b)),u(x,_,T,p,b);var k=x.transforms,M=_.transforms;if(k){l(k)||p.push(d(&quot;array&quot;,b,[&quot;transforms&quot;])),b.push(&quot;transforms&quot;);for(var A=0;A&lt;k.length;A++){var S=[&quot;transforms&quot;,A],E=k[A].type;if(s(k[A])){var C=h.transforms[E]?h.transforms[E].attributes:{};C.type={valType:&quot;enumerated&quot;,values:Object.keys(h.transforms)},u(k[A],M[A],C,p,b,S)}else p.push(d(&quot;object&quot;,b,S))}}}else p.push(d(&quot;object&quot;,b))}var L=g._fullLayout,I=f(h,m);return u(c,L,I,p,&quot;layout&quot;),0===p.length?void 0:p};var h={object:function(t,e){return(&quot;layout&quot;===t&amp;&amp;&quot;&quot;===e?&quot;The layout argument&quot;:&quot;data&quot;===t[0]&amp;&amp;&quot;&quot;===e?&quot;Trace &quot;+t[1]+&quot; in the data argument&quot;:p(t)+&quot;key &quot;+e)+&quot; must be linked to an object container&quot;},array:function(t,e){return(&quot;data&quot;===t?&quot;The data argument&quot;:p(t)+&quot;key &quot;+e)+&quot; must be linked to an array container&quot;},schema:function(t,e){return p(t)+&quot;key &quot;+e+&quot; is not part of the schema&quot;},unused:function(t,e,r){var n=s(r)?&quot;container&quot;:&quot;key&quot;;return p(t)+n+&quot; &quot;+e+&quot; did not get coerced&quot;},dynamic:function(t,e,r,n){return[p(t)+&quot;key&quot;,e,&quot;(set to '&quot;+r+&quot;')&quot;,&quot;got reset to&quot;,&quot;'&quot;+n+&quot;'&quot;,&quot;during defaults.&quot;].join(&quot; &quot;)},invisible:function(t,e){return(e?p(t)+&quot;item &quot;+e:&quot;Trace &quot;+t[1])+&quot; got defaulted to be not visible&quot;},value:function(t,e,r){return[p(t)+&quot;key &quot;+e,&quot;is set to an invalid value (&quot;+r+&quot;)&quot;].join(&quot; &quot;)}};function p(t){return l(t)?&quot;In data trace &quot;+t[1]+&quot;, &quot;:&quot;In &quot;+t+&quot;, &quot;}function d(t,e,r,i,a){var o,s;r=r||&quot;&quot;,l(e)?(o=e[0],s=e[1]):(o=e,s=null);var c=function(t){if(!l(t))return String(t);for(var e=&quot;&quot;,r=0;r&lt;t.length;r++){var n=t[r];&quot;number&quot;==typeof n?e=e.substr(0,e.length-1)+&quot;[&quot;+n+&quot;]&quot;:e+=n,r&lt;t.length-1&amp;&amp;(e+=&quot;.&quot;)}return e}(r),u=h[t](e,c,i,a);return n.log(u),{code:t,container:o,trace:s,path:r,astr:c,msg:u}}function g(t,e){var r=y(e),n=r.keyMinusId,i=r.id;return!!(n in t&amp;&amp;t[n]._isSubplotObj&amp;&amp;i)||e in t}function m(t,e){return e in t?t[e]:t[y(e).keyMinusId]}var v=n.counterRegex(&quot;([a-z]+)&quot;);function y(t){var e=t.match(v);return{keyMinusId:e&amp;&amp;e[1],id:e&amp;&amp;e[2]}}},{&quot;../lib&quot;:778,&quot;../plots/plots&quot;:891,&quot;./plot_config&quot;:815,&quot;./plot_schema&quot;:816}],822:[function(t,e,r){&quot;use strict&quot;;e.exports={mode:{valType:&quot;enumerated&quot;,dflt:&quot;afterall&quot;,values:[&quot;immediate&quot;,&quot;next&quot;,&quot;afterall&quot;]},direction:{valType:&quot;enumerated&quot;,values:[&quot;forward&quot;,&quot;reverse&quot;],dflt:&quot;forward&quot;},fromcurrent:{valType:&quot;boolean&quot;,dflt:!1},frame:{duration:{valType:&quot;number&quot;,min:0,dflt:500},redraw:{valType:&quot;boolean&quot;,dflt:!0}},transition:{duration:{valType:&quot;number&quot;,min:0,dflt:500,editType:&quot;none&quot;},easing:{valType:&quot;enumerated&quot;,dflt:&quot;cubic-in-out&quot;,values:[&quot;linear&quot;,&quot;quad&quot;,&quot;cubic&quot;,&quot;sin&quot;,&quot;exp&quot;,&quot;circle&quot;,&quot;elastic&quot;,&quot;back&quot;,&quot;bounce&quot;,&quot;linear-in&quot;,&quot;quad-in&quot;,&quot;cubic-in&quot;,&quot;sin-in&quot;,&quot;exp-in&quot;,&quot;circle-in&quot;,&quot;elastic-in&quot;,&quot;back-in&quot;,&quot;bounce-in&quot;,&quot;linear-out&quot;,&quot;quad-out&quot;,&quot;cubic-out&quot;,&quot;sin-out&quot;,&quot;exp-out&quot;,&quot;circle-out&quot;,&quot;elastic-out&quot;,&quot;back-out&quot;,&quot;bounce-out&quot;,&quot;linear-in-out&quot;,&quot;quad-in-out&quot;,&quot;cubic-in-out&quot;,&quot;sin-in-out&quot;,&quot;exp-in-out&quot;,&quot;circle-in-out&quot;,&quot;elastic-in-out&quot;,&quot;back-in-out&quot;,&quot;bounce-in-out&quot;],editType:&quot;none&quot;},ordering:{valType:&quot;enumerated&quot;,values:[&quot;layout first&quot;,&quot;traces first&quot;],dflt:&quot;layout first&quot;,editType:&quot;none&quot;}}}},{}],823:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_template&quot;);e.exports=function(t,e,r){var a,o,s=r.name,l=r.inclusionAttr||&quot;visible&quot;,c=e[s],u=n.isArrayOrTypedArray(t[s])?t[s]:[],f=e[s]=[],h=i.arrayTemplater(e,s,l);for(a=0;a&lt;u.length;a++){var p=u[a];n.isPlainObject(p)?o=h.newItem(p):(o=h.newItem({}))[l]=!1,o._index=a,!1!==o[l]&amp;&amp;r.handleItemDefaults(p,o,e,r),f.push(o)}var d=h.defaultItems();for(a=0;a&lt;d.length;a++)(o=d[a])._index=f.length,r.handleItemDefaults({},o,e,r,{}),f.push(o);if(n.isArrayOrTypedArray(c)){var g=Math.min(c.length,f.length);for(a=0;a&lt;g;a++)n.relinkPrivateKeys(f[a],c[a])}return f}},{&quot;../lib&quot;:778,&quot;../plot_api/plot_template&quot;:817}],824:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../components/fx/attributes&quot;);e.exports={type:{valType:&quot;enumerated&quot;,values:[],dflt:&quot;scatter&quot;,editType:&quot;calc+clearAxisTypes&quot;,_noTemplating:!0},visible:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;legendonly&quot;],dflt:!0,editType:&quot;calc&quot;},showlegend:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;style&quot;},legendgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;style&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;style&quot;},name:{valType:&quot;string&quot;,editType:&quot;style&quot;},uid:{valType:&quot;string&quot;,editType:&quot;plot&quot;,anim:!0},ids:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;,anim:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},meta:{valType:&quot;any&quot;,arrayOk:!0,editType:&quot;plot&quot;},selectedpoints:{valType:&quot;any&quot;,editType:&quot;calc&quot;},hoverinfo:{valType:&quot;flaglist&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;],extras:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],arrayOk:!0,dflt:&quot;all&quot;,editType:&quot;none&quot;},hoverlabel:n.hoverlabel,stream:{token:{valType:&quot;string&quot;,noBlank:!0,strict:!0,editType:&quot;calc&quot;},maxpoints:{valType:&quot;number&quot;,min:0,max:1e4,dflt:500,editType:&quot;calc&quot;},editType:&quot;calc&quot;},transforms:{_isLinkedToArray:&quot;transform&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;}}},{&quot;../components/fx/attributes&quot;:674}],825:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=i.dateTime2ms,o=i.incrementMonth,s=t(&quot;../../constants/numerical&quot;).ONEAVGMONTH;e.exports=function(t,e,r,i){if(&quot;date&quot;!==e.type)return i;var l=t[r+&quot;periodalignment&quot;];if(!l)return i;var c,u=t[r+&quot;period&quot;];if(n(u)){if((u=+u)&lt;=0)return i}else if(&quot;string&quot;==typeof u&amp;&amp;&quot;M&quot;===u.charAt(0)){var f=+u.substring(1);if(!(f&gt;0&amp;&amp;Math.round(f)===f))return i;c=f}for(var h=e.calendar,p=&quot;start&quot;===l,d=&quot;end&quot;===l,g=t[r+&quot;period0&quot;],m=a(g,h)||0,v=[],y=i.length,x=0;x&lt;y;x++){var b,_,w,T=i[x];if(c){for(b=Math.round((T-m)/(c*s)),w=o(m,c*b,h);w&gt;T;)w=o(w,-c,h);for(;w&lt;=T;)w=o(w,c,h);_=o(w,-c,h)}else{for(w=m+(b=Math.round((T-m)/u))*u;w&gt;T;)w-=u;for(;w&lt;=T;)w+=u;_=w-u}v[x]=p?_:d?w:(_+w)/2}return v}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],826:[function(t,e,r){&quot;use strict&quot;;e.exports={xaxis:{valType:&quot;subplotid&quot;,dflt:&quot;x&quot;,editType:&quot;calc+clearAxisTypes&quot;},yaxis:{valType:&quot;subplotid&quot;,dflt:&quot;y&quot;,editType:&quot;calc+clearAxisTypes&quot;}}},{}],827:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).FP_SAFE,o=t(&quot;../../registry&quot;),s=t(&quot;./axis_ids&quot;),l=s.getFromId,c=s.isLinked;function u(t,e){var r,n,a=[],o=t._fullLayout,s=h(o,e,0),l=h(o,e,1),c=p(t,e),u=c.min,d=c.max;if(0===u.length||0===d.length)return i.simpleMap(e.range,e.r2l);var g=u[0].val,m=d[0].val;for(r=1;r&lt;u.length&amp;&amp;g===m;r++)g=Math.min(g,u[r].val);for(r=1;r&lt;d.length&amp;&amp;g===m;r++)m=Math.max(m,d[r].val);var v=!1;if(e.range){var y=i.simpleMap(e.range,e.r2l);v=y[1]&lt;y[0]}&quot;reversed&quot;===e.autorange&amp;&amp;(v=!0,e.autorange=!0);var x,b,_,w,T,k,M=e.rangemode,A=&quot;tozero&quot;===M,S=&quot;nonnegative&quot;===M,E=e._length,C=E/10,L=0;for(r=0;r&lt;u.length;r++)for(x=u[r],n=0;n&lt;d.length;n++)(k=(b=d[n]).val-x.val-f(e,x.val,b.val))&gt;0&amp;&amp;((T=E-s(x)-l(b))&gt;C?k/T&gt;L&amp;&amp;(_=x,w=b,L=k/T):k/E&gt;L&amp;&amp;(_={val:x.val,nopad:1},w={val:b.val,nopad:1},L=k/E));if(g===m){var I=g-1,P=g+1;if(A)if(0===g)a=[0,1];else{var z=(g&gt;0?d:u).reduce((function(t,e){return Math.max(t,l(e))}),0),O=g/(1-Math.min(.5,z/E));a=g&gt;0?[0,O]:[O,0]}else a=S?[Math.max(0,I),Math.max(1,P)]:[I,P]}else A?(_.val&gt;=0&amp;&amp;(_={val:0,nopad:1}),w.val&lt;=0&amp;&amp;(w={val:0,nopad:1})):S&amp;&amp;(_.val-L*s(_)&lt;0&amp;&amp;(_={val:0,nopad:1}),w.val&lt;=0&amp;&amp;(w={val:1,nopad:1})),L=(w.val-_.val-f(e,x.val,b.val))/(E-s(_)-l(w)),a=[_.val-L*s(_),w.val+L*l(w)];return v&amp;&amp;a.reverse(),i.simpleMap(a,e.l2r||Number)}function f(t,e,r){var n=0;if(t.rangebreaks)for(var i=t.locateBreaks(e,r),a=0;a&lt;i.length;a++){var o=i[a];n+=o.max-o.min}return n}function h(t,e,r){var n=.05*e._length,a=e._anchorAxis||{};if(-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)||-1!==(a.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)){var o=&quot;reversed&quot;===e.autorange;if(!o){var s=i.simpleMap(e.range,e.r2l);o=s[1]&lt;s[0]}o&amp;&amp;(r=!r)}var l=0;return c(t,e._id)||(l=function(t,e){var r=0,n=t._anchorAxis||{};if(-1!==(n.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;(!e&amp;&amp;(&quot;left&quot;===n.side||&quot;bottom&quot;===n.side)||e&amp;&amp;(&quot;top&quot;===n.side||&quot;right&quot;===n.side))){var a=&quot;x&quot;===t._id.charAt(0);if(n._vals){var o=i.deg2rad(n._tickAngles[n._id+&quot;tick&quot;]||0),s=Math.abs(Math.cos(o)),l=Math.abs(Math.sin(o));n._vals.forEach((function(t){if(t.bb){var e=6+t.bb.width,n=6+t.bb.height;r=Math.max(r,a?Math.max(e*s,n*l):Math.max(n*s,e*l))}}))}&quot;inside&quot;===n.ticks&amp;&amp;&quot;inside&quot;===n.ticklabelposition&amp;&amp;(r+=n.ticklen||0)}return r}(e,r)),n=Math.max(l,n),&quot;domain&quot;===e.constrain&amp;&amp;e._inputDomain&amp;&amp;(n*=(e._inputDomain[1]-e._inputDomain[0])/(e.domain[1]-e.domain[0])),function(t){return t.nopad?0:t.pad+(t.extrapad?n:l)}}e.exports={getAutoRange:u,makePadFn:h,doAutoRange:function(t,e,r){if(e.setScale(),e.autorange){e.range=r?r.slice():u(t,e),e._r=e.range.slice(),e._rl=i.simpleMap(e._r,e.r2l);var n=e._input,a={};a[e._attr+&quot;.range&quot;]=e.range,a[e._attr+&quot;.autorange&quot;]=e.autorange,o.call(&quot;_storeDirectGUIEdit&quot;,t.layout,t._fullLayout._preGUI,a),n.range=e.range.slice(),n.autorange=e.autorange}var s=e._anchorAxis;if(s&amp;&amp;s.rangeslider){var l=s.rangeslider[e._name];l&amp;&amp;&quot;auto&quot;===l.rangemode&amp;&amp;(l.range=u(t,e)),s._input.rangeslider[e._name]=i.extendFlat({},l)}},findExtremes:function(t,e,r){r||(r={});t._m||t.setScale();var i,o,s,l,c,u,f,h,p,m=[],y=[],x=e.length,b=r.padded||!1,_=r.tozero&amp;&amp;(&quot;linear&quot;===t.type||&quot;-&quot;===t.type),w=&quot;log&quot;===t.type,T=!1,k=r.vpadLinearized||!1;function M(t){if(Array.isArray(t))return T=!0,function(e){return Math.max(Number(t[e]||0),0)};var e=Math.max(Number(t||0),0);return function(){return e}}var A=M((t._m&gt;0?r.ppadplus:r.ppadminus)||r.ppad||0),S=M((t._m&gt;0?r.ppadminus:r.ppadplus)||r.ppad||0),E=M(r.vpadplus||r.vpad),C=M(r.vpadminus||r.vpad);if(!T){if(h=1/0,p=-1/0,w)for(i=0;i&lt;x;i++)(o=e[i])&lt;h&amp;&amp;o&gt;0&amp;&amp;(h=o),o&gt;p&amp;&amp;o&lt;a&amp;&amp;(p=o);else for(i=0;i&lt;x;i++)(o=e[i])&lt;h&amp;&amp;o&gt;-a&amp;&amp;(h=o),o&gt;p&amp;&amp;o&lt;a&amp;&amp;(p=o);e=[h,p],x=2}var L={tozero:_,extrapad:b};function I(r){s=e[r],n(s)&amp;&amp;(u=A(r),f=S(r),k?(l=t.c2l(s)-C(r),c=t.c2l(s)+E(r)):(h=s-C(r),p=s+E(r),w&amp;&amp;h&lt;p/10&amp;&amp;(h=p/10),l=t.c2l(h),c=t.c2l(p)),_&amp;&amp;(l=Math.min(0,l),c=Math.max(0,c)),v(l)&amp;&amp;d(m,l,f,L),v(c)&amp;&amp;g(y,c,u,L))}var P=Math.min(6,x);for(i=0;i&lt;P;i++)I(i);for(i=x-1;i&gt;=P;i--)I(i);return{min:m,max:y,opts:r}},concatExtremes:p};function p(t,e,r){var n,i,a,o=e._id,s=t._fullData,c=t._fullLayout,u=[],f=[];function h(t,e){for(n=0;n&lt;e.length;n++){var r=t[e[n]],s=(r._extremes||{})[o];if(!0===r.visible&amp;&amp;s){for(i=0;i&lt;s.min.length;i++)a=s.min[i],d(u,a.val,a.pad,{extrapad:a.extrapad});for(i=0;i&lt;s.max.length;i++)a=s.max[i],g(f,a.val,a.pad,{extrapad:a.extrapad})}}}if(h(s,e._traceIndices),h(c.annotations||[],e._annIndices||[]),h(c.shapes||[],e._shapeIndices||[]),e._matchGroup&amp;&amp;!r)for(var m in e._matchGroup)if(m!==e._id){var v=l(t,m),y=p(t,v,!0),x=e._length/v._length;for(i=0;i&lt;y.min.length;i++)a=y.min[i],d(u,a.val,a.pad*x,{extrapad:a.extrapad});for(i=0;i&lt;y.max.length;i++)a=y.max[i],g(f,a.val,a.pad*x,{extrapad:a.extrapad})}return{min:u,max:f}}function d(t,e,r,n){m(t,e,r,n,y)}function g(t,e,r,n){m(t,e,r,n,x)}function m(t,e,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l&lt;t.length&amp;&amp;s;l++){var c=t[l];if(i(c.val,e)&amp;&amp;c.pad&gt;=r&amp;&amp;(c.extrapad||!o)){s=!1;break}i(e,c.val)&amp;&amp;c.pad&lt;=r&amp;&amp;(o||!c.extrapad)&amp;&amp;(t.splice(l,1),l--)}if(s){var u=a&amp;&amp;0===e;t.push({val:e,pad:u?0:r,extrapad:!u&amp;&amp;o})}}function v(t){return n(t)&amp;&amp;Math.abs(t)&lt;a}function y(t,e){return t&lt;=e}function x(t,e){return t&gt;=e}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./axis_ids&quot;:831,&quot;fast-isnumeric&quot;:241}],828:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/titles&quot;),f=t(&quot;../../components/color&quot;),h=t(&quot;../../components/drawing&quot;),p=t(&quot;./layout_attributes&quot;),d=t(&quot;./clean_ticks&quot;),g=t(&quot;../../constants/numerical&quot;),m=g.ONEMAXYEAR,v=g.ONEAVGYEAR,y=g.ONEMINYEAR,x=g.ONEMAXQUARTER,b=g.ONEAVGQUARTER,_=g.ONEMINQUARTER,w=g.ONEMAXMONTH,T=g.ONEAVGMONTH,k=g.ONEMINMONTH,M=g.ONEWEEK,A=g.ONEDAY,S=A/2,E=g.ONEHOUR,C=g.ONEMIN,L=g.ONESEC,I=g.MINUS_SIGN,P=g.BADNUM,z=t(&quot;../../constants/alignment&quot;),O=z.MID_SHIFT,D=z.CAP_SHIFT,R=z.LINE_SPACING,F=z.OPPOSITE_SIDE,B=e.exports={};B.setConvert=t(&quot;./set_convert&quot;);var N=t(&quot;./axis_autotype&quot;),j=t(&quot;./axis_ids&quot;),U=j.idSort,V=j.isLinked;B.id2name=j.id2name,B.name2id=j.name2id,B.cleanId=j.cleanId,B.list=j.list,B.listIds=j.listIds,B.getFromId=j.getFromId,B.getFromTrace=j.getFromTrace;var q=t(&quot;./autorange&quot;);B.getAutoRange=q.getAutoRange,B.findExtremes=q.findExtremes;function H(t){var e=1e-4*(t[1]-t[0]);return[t[0]-e,t[1]+e]}B.coerceRef=function(t,e,r,n,i,a){var o=n.charAt(n.length-1),l=r._fullLayout._subplots[o+&quot;axis&quot;],c=n+&quot;ref&quot;,u={};return i||(i=l[0]||(&quot;string&quot;==typeof a?a:a[0])),a||(a=i),l=l.concat(l.map((function(t){return t+&quot; domain&quot;}))),u[c]={valType:&quot;enumerated&quot;,values:l.concat(a?&quot;string&quot;==typeof a?[a]:a:[]),dflt:i},s.coerce(t,e,u,c)},B.getRefType=function(t){return void 0===t?t:&quot;paper&quot;===t?&quot;paper&quot;:&quot;pixel&quot;===t?&quot;pixel&quot;:/( domain)$/.test(t)?&quot;domain&quot;:&quot;range&quot;},B.coercePosition=function(t,e,r,n,i,a){var o,l;if(&quot;range&quot;!==B.getRefType(n))o=s.ensureNumber,l=r(i,a);else{var c=B.getFromId(e,n);l=r(i,a=c.fraction2r(a)),o=c.cleanPos}t[i]=o(l)},B.cleanPosition=function(t,e,r){return(&quot;paper&quot;===r||&quot;pixel&quot;===r?s.ensureNumber:B.getFromId(e,r).cleanPos)(t)},B.redrawComponents=function(t,e){e=e||B.listIds(t);var r=t._fullLayout;function n(n,i,a,s){for(var l=o.getComponentMethod(n,i),c={},u=0;u&lt;e.length;u++)for(var f=r[B.id2name(e[u])][a],h=0;h&lt;f.length;h++){var p=f[h];if(!c[p]&amp;&amp;(l(t,p),c[p]=1,s))return}}n(&quot;annotations&quot;,&quot;drawOne&quot;,&quot;_annIndices&quot;),n(&quot;shapes&quot;,&quot;drawOne&quot;,&quot;_shapeIndices&quot;),n(&quot;images&quot;,&quot;draw&quot;,&quot;_imgIndices&quot;,!0)};var G=B.getDataConversions=function(t,e,r,n){var i,a=&quot;x&quot;===r||&quot;y&quot;===r||&quot;z&quot;===r?r:n;if(Array.isArray(a)){if(i={type:N(n,void 0,{autotypenumbers:t._fullLayout.autotypenumbers}),_categories:[]},B.setConvert(i),&quot;category&quot;===i.type)for(var o=0;o&lt;n.length;o++)i.d2c(n[o])}else i=B.getFromTrace(t,e,a);return i?{d2c:i.d2c,c2d:i.c2d}:&quot;ids&quot;===a?{d2c:W,c2d:W}:{d2c:Y,c2d:Y}};function Y(t){return+t}function W(t){return String(t)}function X(t){return+t.substring(1)}B.getDataToCoordFunc=function(t,e,r,n){return G(t,e,r,n).d2c},B.counterLetter=function(t){var e=t.charAt(0);return&quot;x&quot;===e?&quot;y&quot;:&quot;y&quot;===e?&quot;x&quot;:void 0},B.minDtick=function(t,e,r,n){-1===[&quot;log&quot;,&quot;category&quot;,&quot;multicategory&quot;].indexOf(t.type)&amp;&amp;n?void 0===t._minDtick?(t._minDtick=e,t._forceTick0=r):t._minDtick&amp;&amp;((t._minDtick/e+1e-6)%1&lt;2e-6&amp;&amp;((r-t._forceTick0)/e%1+1.000001)%1&lt;2e-6?(t._minDtick=e,t._forceTick0=r):((e/t._minDtick+1e-6)%1&gt;2e-6||((r-t._forceTick0)/t._minDtick%1+1.000001)%1&gt;2e-6)&amp;&amp;(t._minDtick=0)):t._minDtick=0},B.saveRangeInitial=function(t,e){for(var r=B.list(t,&quot;&quot;,!0),n=!1,i=0;i&lt;r.length;i++){var a=r[i],o=void 0===a._rangeInitial,s=o||!(a.range[0]===a._rangeInitial[0]&amp;&amp;a.range[1]===a._rangeInitial[1]);(o&amp;&amp;!1===a.autorange||e&amp;&amp;s)&amp;&amp;(a._rangeInitial=a.range.slice(),n=!0)}return n},B.saveShowSpikeInitial=function(t,e){for(var r=B.list(t,&quot;&quot;,!0),n=!1,i=&quot;on&quot;,a=0;a&lt;r.length;a++){var o=r[a],s=void 0===o._showSpikeInitial,l=s||!(o.showspikes===o._showspikes);(s||e&amp;&amp;l)&amp;&amp;(o._showSpikeInitial=o.showspikes,n=!0),&quot;on&quot;!==i||o.showspikes||(i=&quot;off&quot;)}return t._fullLayout._cartesianSpikesEnabled=i,n},B.autoBin=function(t,e,r,n,a,o){var l,c=s.aggNums(Math.min,null,t),u=s.aggNums(Math.max,null,t);if(&quot;category&quot;===e.type||&quot;multicategory&quot;===e.type)return{start:c-.5,end:u+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:u-c};if(a||(a=e.calendar),l=&quot;log&quot;===e.type?{type:&quot;linear&quot;,range:[c,u]}:{type:e.type,range:s.simpleMap([c,u],e.c2r,0,a),calendar:a},B.setConvert(l),o=o&amp;&amp;d.dtick(o,l.type))l.dtick=o,l.tick0=d.tick0(void 0,l.type,a);else{var f;if(r)f=(u-c)/r;else{var h=s.distinctVals(t),p=Math.pow(10,Math.floor(Math.log(h.minDiff)/Math.LN10)),g=p*s.roundUp(h.minDiff/p,[.9,1.9,4.9,9.9],!0);f=Math.max(g,2*s.stdev(t)/Math.pow(t.length,n?.25:.4)),i(f)||(f=1)}B.autoTicks(l,f)}var m,v=l.dtick,y=B.tickIncrement(B.tickFirst(l),v,&quot;reverse&quot;,a);if(&quot;number&quot;==typeof v)m=(y=function(t,e,r,n,a){var o=0,s=0,l=0,c=0;function u(e){return(1+100*(e-t)/r.dtick)%100&lt;2}for(var f=0;f&lt;e.length;f++)e[f]%1==0?l++:i(e[f])||c++,u(e[f])&amp;&amp;o++,u(e[f]+r.dtick/2)&amp;&amp;s++;var h=e.length-c;if(l===h&amp;&amp;&quot;date&quot;!==r.type)r.dtick&lt;1?t=n-.5*r.dtick:(t-=.5)+r.dtick&lt;n&amp;&amp;(t+=r.dtick);else if(s&lt;.1*h&amp;&amp;(o&gt;.3*h||u(n)||u(a))){var p=r.dtick/2;t+=t+p&lt;n?p:-p}return t}(y,t,l,c,u))+(1+Math.floor((u-y)/v))*v;else for(&quot;M&quot;===l.dtick.charAt(0)&amp;&amp;(y=function(t,e,r,n,i){var a=s.findExactDates(e,i);if(a.exactDays&gt;.8){var o=Number(r.substr(1));a.exactYears&gt;.8&amp;&amp;o%12==0?t=B.tickIncrement(t,&quot;M6&quot;,&quot;reverse&quot;)+1.5*A:a.exactMonths&gt;.8?t=B.tickIncrement(t,&quot;M1&quot;,&quot;reverse&quot;)+15.5*A:t-=S;var l=B.tickIncrement(t,r);if(l&lt;=n)return l}return t}(y,t,v,c,a)),m=y,0;m&lt;=u;)m=B.tickIncrement(m,v,!1,a);return{start:e.c2r(y,0,a),end:e.c2r(m,0,a),size:v,_dataSpan:u-c}},B.prepTicks=function(t,e){var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if(t._dtickInit=t.dtick,t._tick0Init=t.tick0,&quot;auto&quot;===t.tickmode||!t.dtick){var n,a=t.nticks;a||(&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?(n=t.tickfont?1.2*(t.tickfont.size||12):15,a=t._length/n):(n=&quot;y&quot;===t._id.charAt(0)?40:80,a=s.constrain(t._length/n,4,9)+1),&quot;radialaxis&quot;===t._name&amp;&amp;(a*=2)),&quot;array&quot;===t.tickmode&amp;&amp;(a*=100),t._roughDTick=Math.abs(r[1]-r[0])/a,B.autoTicks(t,t._roughDTick),t._minDtick&gt;0&amp;&amp;t.dtick&lt;2*t._minDtick&amp;&amp;(t.dtick=t._minDtick,t.tick0=t.l2r(t._forceTick0))}&quot;period&quot;===t.ticklabelmode&amp;&amp;function(t){var e;function r(){return!(i(t.dtick)||&quot;M&quot;!==t.dtick.charAt(0))}var n=r(),a=B.getTickFormat(t);if(a){var o=t._dtickInit!==t.dtick;/%[fLQsSMX]/.test(a)||(/%[HI]/.test(a)?(e=E,o&amp;&amp;!n&amp;&amp;t.dtick&lt;E&amp;&amp;(t.dtick=E)):/%p/.test(a)?(e=S,o&amp;&amp;!n&amp;&amp;t.dtick&lt;S&amp;&amp;(t.dtick=S)):/%[Aadejuwx]/.test(a)?(e=A,o&amp;&amp;!n&amp;&amp;t.dtick&lt;A&amp;&amp;(t.dtick=A)):/%[UVW]/.test(a)?(e=M,o&amp;&amp;!n&amp;&amp;t.dtick&lt;M&amp;&amp;(t.dtick=M)):/%[Bbm]/.test(a)?(e=T,o&amp;&amp;(n?X(t.dtick)&lt;1:t.dtick&lt;k)&amp;&amp;(t.dtick=&quot;M1&quot;)):/%[q]/.test(a)?(e=b,o&amp;&amp;(n?X(t.dtick)&lt;3:t.dtick&lt;_)&amp;&amp;(t.dtick=&quot;M3&quot;)):/%[Yy]/.test(a)&amp;&amp;(e=v,o&amp;&amp;(n?X(t.dtick)&lt;12:t.dtick&lt;y)&amp;&amp;(t.dtick=&quot;M12&quot;)))}(n=r())&amp;&amp;t.tick0===t._dowTick0&amp;&amp;(t.tick0=t._rawTick0);t._definedDelta=e}(t),t.tick0||(t.tick0=&quot;date&quot;===t.type?&quot;2000-01-01&quot;:0),&quot;date&quot;===t.type&amp;&amp;t.dtick&lt;.1&amp;&amp;(t.dtick=.1),nt(t)},B.calcTicks=function(t,e){B.prepTicks(t,e);var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if(&quot;array&quot;===t.tickmode)return function(t){var e=t.tickvals,r=t.ticktext,n=new Array(e.length),i=H(s.simpleMap(t.range,t.r2l)),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]),l=0;Array.isArray(r)||(r=[]);var c=&quot;category&quot;===t.type?t.d2l_noadd:t.d2l;&quot;log&quot;===t.type&amp;&amp;&quot;L&quot;!==String(t.dtick).charAt(0)&amp;&amp;(t.dtick=&quot;L&quot;+Math.pow(10,Math.floor(Math.min(t.range[0],t.range[1]))-1));for(var u=0;u&lt;e.length;u++){var f=c(e[u]);f&gt;a&amp;&amp;f&lt;o&amp;&amp;(void 0===r[u]?n[l]=B.tickText(t,f):n[l]=it(t,f,String(r[u])),l++)}l&lt;e.length&amp;&amp;n.splice(l,e.length-l);t.rangebreaks&amp;&amp;(n=n.filter((function(e){return t.maskBreaks(e.x)!==P})));return n}(t);var n=H(r),a=n[0],o=n[1],l=r[1]&lt;r[0],c=Math.min(r[0],r[1]),u=Math.max(r[0],r[1]),f=&quot;log&quot;===t.type&amp;&amp;!(i(t.dtick)||&quot;L&quot;===t.dtick.charAt(0)),h=&quot;period&quot;===t.ticklabelmode;if(t._tmin=B.tickFirst(t,e),t._tmin&lt;a!==l)return[];&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(o=l?Math.max(-.5,o):Math.min(t._categories.length-.5,o));var p=t._tmin;t.rangebreaks&amp;&amp;t._tick0Init!==t.tick0&amp;&amp;(p=wt(p,t),l||(p=B.tickIncrement(p,t.dtick,!l,t.calendar))),h&amp;&amp;(p=B.tickIncrement(p,t.dtick,!l,t.calendar));for(var d,g=Math.max(1e3,t._length||0),C=[],L=null;l?p&gt;=o:p&lt;=o;p=B.tickIncrement(p,t.dtick,l,t.calendar)){if(t.rangebreaks&amp;&amp;!l){if(p&lt;a)continue;if(t.maskBreaks(p)===P&amp;&amp;wt(p,t)&gt;=u)break}if(C.length&gt;g||p===L)break;L=p;var I=!1;f&amp;&amp;p!==(0|p)&amp;&amp;(I=!0),C.push({minor:I,value:p})}if(h&amp;&amp;function(t,e,r){for(var n=0;n&lt;t.length;n++){var i=t[n].value,a=n,o=n+1;n&lt;t.length-1?(a=n,o=n+1):n&gt;0?(a=n-1,o=n):(a=n,o=n);var s,l=t[a].value,c=t[o].value,u=Math.abs(c-l),f=r||u,h=0;f&gt;=y?h=u&gt;=y&amp;&amp;u&lt;=m?u:v:r===b&amp;&amp;f&gt;=_?h=u&gt;=_&amp;&amp;u&lt;=x?u:b:f&gt;=k?h=u&gt;=k&amp;&amp;u&lt;=w?u:T:r===M&amp;&amp;f&gt;=M?h=M:f&gt;=A?h=A:r===S&amp;&amp;f&gt;=S?h=S:r===E&amp;&amp;f&gt;=E&amp;&amp;(h=E),h&gt;=u&amp;&amp;(h=u,s=!0);var p=i+h;if(e.rangebreaks&amp;&amp;h&gt;0){for(var d=0,g=0;g&lt;84;g++){var C=(g+.5)/84;e.maskBreaks(i*(1-C)+C*p)!==P&amp;&amp;d++}(h*=d/84)||(t[n].drop=!0),s&amp;&amp;u&gt;M&amp;&amp;(h=u)}(h&gt;0||0===n)&amp;&amp;(t[n].periodX=i+h/2)}}(C,t,t._definedDelta),t.rangebreaks){var z=&quot;y&quot;===t._id.charAt(0),O=1;&quot;auto&quot;===t.tickmode&amp;&amp;(O=t.tickfont?t.tickfont.size:12);var D=NaN;for(d=C.length-1;d&gt;-1;d--)if(C[d].drop)C.splice(d,1);else{C[d].value=wt(C[d].value,t);var R=t.c2p(C[d].value);(z?D&gt;R-O:D&lt;R+O)?C.splice(l?d+1:d,1):D=R}}_t(t)&amp;&amp;360===Math.abs(r[1]-r[0])&amp;&amp;C.pop(),t._tmax=(C[C.length-1]||{}).value,t._prevDateHead=&quot;&quot;,t._inCalcTicks=!0;var F,N,j=[];for(d=0;d&lt;C.length;d++){var U=C[d].minor,V=C[d].value;F=B.tickText(t,V,!1,U),void 0!==(N=C[d].periodX)&amp;&amp;(F.periodX=N,(N&gt;u||N&lt;c)&amp;&amp;(N&gt;u&amp;&amp;(F.periodX=u),N&lt;c&amp;&amp;(F.periodX=c),F.text=&quot; &quot;,t._prevDateHead=&quot;&quot;)),j.push(F)}return t._inCalcTicks=!1,j};var Z=[2,5,10],J=[1,2,3,6,12],K=[1,2,5,10,15,30],Q=[1,2,3,7,14],$=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],tt=[-.301,0,.301,.699,1],et=[15,30,45,90,180];function rt(t,e,r){return e*s.roundUp(t/e,r)}function nt(t){var e=t.dtick;if(t._tickexponent=0,i(e)||&quot;string&quot;==typeof e||(e=1),&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(t._tickround=null),&quot;date&quot;===t.type){var r=t.r2l(t.tick0),n=t.l2r(r).replace(/(^-|i)/g,&quot;&quot;),a=n.length;if(&quot;M&quot;===String(e).charAt(0))a&gt;10||&quot;01-01&quot;!==n.substr(5)?t._tickround=&quot;d&quot;:t._tickround=+e.substr(1)%12==0?&quot;y&quot;:&quot;m&quot;;else if(e&gt;=A&amp;&amp;a&lt;=10||e&gt;=15*A)t._tickround=&quot;d&quot;;else if(e&gt;=C&amp;&amp;a&lt;=16||e&gt;=E)t._tickround=&quot;M&quot;;else if(e&gt;=L&amp;&amp;a&lt;=19||e&gt;=C)t._tickround=&quot;S&quot;;else{var o=t.l2r(r+e).replace(/^-/,&quot;&quot;).length;t._tickround=Math.max(a,o)-20,t._tickround&lt;0&amp;&amp;(t._tickround=4)}}else if(i(e)||&quot;L&quot;===e.charAt(0)){var s=t.range.map(t.r2d||Number);i(e)||(e=Number(e.substr(1))),t._tickround=2-Math.floor(Math.log(e)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),c=Math.floor(Math.log(l)/Math.LN10+.01),u=void 0===t.minexponent?3:t.minexponent;Math.abs(c)&gt;u&amp;&amp;(ot(t.exponentformat)&amp;&amp;!st(c)?t._tickexponent=3*Math.round((c-1)/3):t._tickexponent=c)}else t._tickround=null}function it(t,e,r){var n=t.tickfont||{};return{x:e,dx:0,dy:0,text:r||&quot;&quot;,fontSize:n.size,font:n.family,fontColor:n.color}}B.autoTicks=function(t,e){var r;function n(t){return Math.pow(t,Math.floor(Math.log(e)/Math.LN10))}if(&quot;date&quot;===t.type){t.tick0=s.dateTick0(t.calendar,0);var a=2*e;if(a&gt;v)e/=v,r=n(10),t.dtick=&quot;M&quot;+12*rt(e,r,Z);else if(a&gt;T)e/=T,t.dtick=&quot;M&quot;+rt(e,1,J);else if(a&gt;A){t.dtick=rt(e,A,t._hasDayOfWeekBreaks?[1,2,7,14]:Q);var o=B.getTickFormat(t),l=&quot;period&quot;===t.ticklabelmode;l&amp;&amp;(t._rawTick0=t.tick0),/%[uVW]/.test(o)?t.tick0=s.dateTick0(t.calendar,2):t.tick0=s.dateTick0(t.calendar,1),l&amp;&amp;(t._dowTick0=t.tick0)}else a&gt;E?t.dtick=rt(e,E,J):a&gt;C?t.dtick=rt(e,C,K):a&gt;L?t.dtick=rt(e,L,K):(r=n(10),t.dtick=rt(e,r,Z))}else if(&quot;log&quot;===t.type){t.tick0=0;var c=s.simpleMap(t.range,t.r2l);if(e&gt;.7)t.dtick=Math.ceil(e);else if(Math.abs(c[1]-c[0])&lt;1){var u=1.5*Math.abs((c[1]-c[0])/e);e=Math.abs(Math.pow(10,c[1])-Math.pow(10,c[0]))/u,r=n(10),t.dtick=&quot;L&quot;+rt(e,r,Z)}else t.dtick=e&gt;.3?&quot;D2&quot;:&quot;D1&quot;}else&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?(t.tick0=0,t.dtick=Math.ceil(Math.max(e,1))):_t(t)?(t.tick0=0,r=1,t.dtick=rt(e,r,et)):(t.tick0=0,r=n(10),t.dtick=rt(e,r,Z));if(0===t.dtick&amp;&amp;(t.dtick=1),!i(t.dtick)&amp;&amp;&quot;string&quot;!=typeof t.dtick){var f=t.dtick;throw t.dtick=1,&quot;ax.dtick error: &quot;+String(f)}},B.tickIncrement=function(t,e,r,a){var o=r?-1:1;if(i(e))return s.increment(t,o*e);var l=e.charAt(0),c=o*Number(e.substr(1));if(&quot;M&quot;===l)return s.incrementMonth(t,c,a);if(&quot;L&quot;===l)return Math.log(Math.pow(10,t)+c)/Math.LN10;if(&quot;D&quot;===l){var u=&quot;D2&quot;===e?tt:$,f=t+.01*o,h=s.roundUp(s.mod(f,1),u,r);return Math.floor(f)+Math.log(n.round(Math.pow(10,h),1))/Math.LN10}throw&quot;unrecognized dtick &quot;+String(e)},B.tickFirst=function(t,e){var r=t.r2l||Number,a=s.simpleMap(t.range,r,void 0,void 0,e),o=a[1]&lt;a[0],l=o?Math.floor:Math.ceil,c=H(a)[0],u=t.dtick,f=r(t.tick0);if(i(u)){var h=l((c-f)/u)*u+f;return&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(h=s.constrain(h,0,t._categories.length-1)),h}var p=u.charAt(0),d=Number(u.substr(1));if(&quot;M&quot;===p){for(var g,m,v,y=0,x=f;y&lt;10;){if(((g=B.tickIncrement(x,u,o,t.calendar))-c)*(x-c)&lt;=0)return o?Math.min(x,g):Math.max(x,g);m=(c-(x+g)/2)/(g-x),v=p+(Math.abs(Math.round(m))||1)*d,x=B.tickIncrement(x,v,m&lt;0?!o:o,t.calendar),y++}return s.error(&quot;tickFirst did not converge&quot;,t),x}if(&quot;L&quot;===p)return Math.log(l((Math.pow(10,c)-f)/d)*d+f)/Math.LN10;if(&quot;D&quot;===p){var b=&quot;D2&quot;===u?tt:$,_=s.roundUp(s.mod(c,1),b,o);return Math.floor(c)+Math.log(n.round(Math.pow(10,_),1))/Math.LN10}throw&quot;unrecognized dtick &quot;+String(u)},B.tickText=function(t,e,r,n){var a,o=it(t,e),l=&quot;array&quot;===t.tickmode,c=r||l,u=t.type,f=&quot;category&quot;===u?t.d2l_noadd:t.d2l;if(l&amp;&amp;Array.isArray(t.ticktext)){var h=s.simpleMap(t.range,t.r2l),p=(Math.abs(h[1]-h[0])-(t._lBreaks||0))/1e4;for(a=0;a&lt;t.ticktext.length&amp;&amp;!(Math.abs(e-f(t.tickvals[a]))&lt;p);a++);if(a&lt;t.ticktext.length)return o.text=String(t.ticktext[a]),o}function d(n){if(void 0===n)return!0;if(r)return&quot;none&quot;===n;var i={first:t._tmin,last:t._tmax}[n];return&quot;all&quot;!==n&amp;&amp;e!==i}var g=r?&quot;never&quot;:&quot;none&quot;!==t.exponentformat&amp;&amp;d(t.showexponent)?&quot;hide&quot;:&quot;&quot;;if(&quot;date&quot;===u?function(t,e,r,n){var a=t._tickround,o=r&amp;&amp;t.hoverformat||B.getTickFormat(t);n&amp;&amp;(a=i(a)?4:{y:&quot;m&quot;,m:&quot;d&quot;,d:&quot;M&quot;,M:&quot;S&quot;,S:4}[a]);var l,c=s.formatDate(e.x,o,a,t._dateFormat,t.calendar,t._extraFormat),u=c.indexOf(&quot;\n&quot;);-1!==u&amp;&amp;(l=c.substr(u+1),c=c.substr(0,u));n&amp;&amp;(&quot;00:00:00&quot;===c||&quot;00:00&quot;===c?(c=l,l=&quot;&quot;):8===c.length&amp;&amp;(c=c.replace(/:00$/,&quot;&quot;)));if(l)if(r)&quot;d&quot;===a?c+=&quot;, &quot;+l:c=l+(c?&quot;, &quot;+c:&quot;&quot;);else if(t._inCalcTicks&amp;&amp;t._prevDateHead===l){var f=-1!==(t.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;),h=t._realSide||t.side;(!f&amp;&amp;&quot;top&quot;===h||f&amp;&amp;&quot;bottom&quot;===h)&amp;&amp;(c+=&quot;&lt;br&gt; &quot;)}else t._prevDateHead=l,c+=&quot;&lt;br&gt;&quot;+l;e.text=c}(t,o,r,c):&quot;log&quot;===u?function(t,e,r,n,a){var o=t.dtick,l=e.x,c=t.tickformat,u=&quot;string&quot;==typeof o&amp;&amp;o.charAt(0);&quot;never&quot;===a&amp;&amp;(a=&quot;&quot;);n&amp;&amp;&quot;L&quot;!==u&amp;&amp;(o=&quot;L3&quot;,u=&quot;L&quot;);if(c||&quot;L&quot;===u)e.text=lt(Math.pow(10,l),t,a,n);else if(i(o)||&quot;D&quot;===u&amp;&amp;s.mod(l+.01,1)&lt;.1){var f=Math.round(l),h=Math.abs(f),p=t.exponentformat;&quot;power&quot;===p||ot(p)&amp;&amp;st(f)?(e.text=0===f?1:1===f?&quot;10&quot;:&quot;10&lt;sup&gt;&quot;+(f&gt;1?&quot;&quot;:I)+h+&quot;&lt;/sup&gt;&quot;,e.fontSize*=1.25):(&quot;e&quot;===p||&quot;E&quot;===p)&amp;&amp;h&gt;2?e.text=&quot;1&quot;+p+(f&gt;0?&quot;+&quot;:I)+h:(e.text=lt(Math.pow(10,l),t,&quot;&quot;,&quot;fakehover&quot;),&quot;D1&quot;===o&amp;&amp;&quot;y&quot;===t._id.charAt(0)&amp;&amp;(e.dy-=e.fontSize/6))}else{if(&quot;D&quot;!==u)throw&quot;unrecognized dtick &quot;+String(o);e.text=String(Math.round(Math.pow(10,s.mod(l,1)))),e.fontSize*=.75}if(&quot;D1&quot;===t.dtick){var d=String(e.text).charAt(0);&quot;0&quot;!==d&amp;&amp;&quot;1&quot;!==d||(&quot;y&quot;===t._id.charAt(0)?e.dx-=e.fontSize/4:(e.dy+=e.fontSize/2,e.dx+=(t.range[1]&gt;t.range[0]?1:-1)*e.fontSize*(l&lt;0?.5:.25)))}}(t,o,0,c,g):&quot;category&quot;===u?function(t,e){var r=t._categories[Math.round(e.x)];void 0===r&amp;&amp;(r=&quot;&quot;);e.text=String(r)}(t,o):&quot;multicategory&quot;===u?function(t,e,r){var n=Math.round(e.x),i=t._categories[n]||[],a=void 0===i[1]?&quot;&quot;:String(i[1]),o=void 0===i[0]?&quot;&quot;:String(i[0]);r?e.text=o+&quot; - &quot;+a:(e.text=a,e.text2=o)}(t,o,r):_t(t)?function(t,e,r,n,i){if(&quot;radians&quot;!==t.thetaunit||r)e.text=lt(e.x,t,i,n);else{var a=e.x/180;if(0===a)e.text=&quot;0&quot;;else{var o=function(t){function e(t,e){return Math.abs(t-e)&lt;=1e-6}var r=function(t){for(var r=1;!e(Math.round(t*r)/r,t);)r*=10;return r}(t),n=t*r,i=Math.abs(function t(r,n){return e(n,0)?r:t(n,r%n)}(n,r));return[Math.round(n/i),Math.round(r/i)]}(a);if(o[1]&gt;=100)e.text=lt(s.deg2rad(e.x),t,i,n);else{var l=e.x&lt;0;1===o[1]?1===o[0]?e.text=&quot;\u03c0&quot;:e.text=o[0]+&quot;\u03c0&quot;:e.text=[&quot;&lt;sup&gt;&quot;,o[0],&quot;&lt;/sup&gt;&quot;,&quot;\u2044&quot;,&quot;&lt;sub&gt;&quot;,o[1],&quot;&lt;/sub&gt;&quot;,&quot;\u03c0&quot;].join(&quot;&quot;),l&amp;&amp;(e.text=I+e.text)}}}}(t,o,r,c,g):function(t,e,r,n,i){&quot;never&quot;===i?i=&quot;&quot;:&quot;all&quot;===t.showexponent&amp;&amp;Math.abs(e.x/t.dtick)&lt;1e-6&amp;&amp;(i=&quot;hide&quot;);e.text=lt(e.x,t,i,n)}(t,o,0,c,g),n||(t.tickprefix&amp;&amp;!d(t.showtickprefix)&amp;&amp;(o.text=t.tickprefix+o.text),t.ticksuffix&amp;&amp;!d(t.showticksuffix)&amp;&amp;(o.text+=t.ticksuffix)),&quot;boundaries&quot;===t.tickson||t.showdividers){var m=function(e){var r=t.l2p(e);return r&gt;=0&amp;&amp;r&lt;=t._length?e:null};o.xbnd=[m(o.x-.5),m(o.x+t.dtick-.5)]}return o},B.hoverLabelText=function(t,e,r){if(r!==P&amp;&amp;r!==e)return B.hoverLabelText(t,e)+&quot; - &quot;+B.hoverLabelText(t,r);var n=&quot;log&quot;===t.type&amp;&amp;e&lt;=0,i=B.tickText(t,t.c2l(n?-e:e),&quot;hover&quot;).text;return n?0===e?&quot;0&quot;:I+i:i};var at=[&quot;f&quot;,&quot;p&quot;,&quot;n&quot;,&quot;\u03bc&quot;,&quot;m&quot;,&quot;&quot;,&quot;k&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;];function ot(t){return&quot;SI&quot;===t||&quot;B&quot;===t}function st(t){return t&gt;14||t&lt;-15}function lt(t,e,r,n){var a=t&lt;0,o=e._tickround,l=r||e.exponentformat||&quot;B&quot;,c=e._tickexponent,u=B.getTickFormat(e),f=e.separatethousands;if(n){var h={exponentformat:l,minexponent:e.minexponent,dtick:&quot;none&quot;===e.showexponent?e.dtick:i(t)&amp;&amp;Math.abs(t)||1,range:&quot;none&quot;===e.showexponent?e.range.map(e.r2d):[0,t||1]};nt(h),o=(Number(h._tickround)||0)+4,c=h._tickexponent,e.hoverformat&amp;&amp;(u=e.hoverformat)}if(u)return e._numFormat(u)(t).replace(/-/g,I);var p,d=Math.pow(10,-o)/2;if(&quot;none&quot;===l&amp;&amp;(c=0),(t=Math.abs(t))&lt;d)t=&quot;0&quot;,a=!1;else{if(t+=d,c&amp;&amp;(t*=Math.pow(10,-c),o+=c),0===o)t=String(Math.floor(t));else if(o&lt;0){t=(t=String(Math.round(t))).substr(0,t.length+o);for(var g=o;g&lt;0;g++)t+=&quot;0&quot;}else{var m=(t=String(t)).indexOf(&quot;.&quot;)+1;m&amp;&amp;(t=t.substr(0,m+o).replace(/\.?0+$/,&quot;&quot;))}t=s.numSeparate(t,e._separators,f)}c&amp;&amp;&quot;hide&quot;!==l&amp;&amp;(ot(l)&amp;&amp;st(c)&amp;&amp;(l=&quot;power&quot;),p=c&lt;0?I+-c:&quot;power&quot;!==l?&quot;+&quot;+c:String(c),&quot;e&quot;===l||&quot;E&quot;===l?t+=l+p:&quot;power&quot;===l?t+=&quot;\xd710&lt;sup&gt;&quot;+p+&quot;&lt;/sup&gt;&quot;:&quot;B&quot;===l&amp;&amp;9===c?t+=&quot;B&quot;:ot(l)&amp;&amp;(t+=at[c/3+5]));return a?I+t:t}function ct(t,e){for(var r=[],n={},i=0;i&lt;e.length;i++){var a=e[i];n[a.text2]?n[a.text2].push(a.x):n[a.text2]=[a.x]}for(var o in n)r.push(it(t,s.interp(n[o],.5),o));return r}function ut(t){return void 0!==t.periodX?t.periodX:t.x}function ft(t){return[t.text,t.x,t.axInfo,t.font,t.fontSize,t.fontColor].join(&quot;_&quot;)}function ht(t){var e=t.title.font.size,r=(t.title.text.match(c.BR_TAG_ALL)||[]).length;return t.title.hasOwnProperty(&quot;standoff&quot;)?r?e*(D+r*R):e*D:r?e*(r+1)*R:e}function pt(t,e){var r=t.l2p(e);return r&gt;1&amp;&amp;r&lt;t._length-1}function dt(t){var e=n.select(t),r=e.select(&quot;.text-math-group&quot;);return r.empty()?e.select(&quot;text&quot;):r}function gt(t){return t._id+&quot;.automargin&quot;}function mt(t){return gt(t)+&quot;.mirror&quot;}function vt(t){return t._id+&quot;.rangeslider&quot;}function yt(t,e){for(var r=0;r&lt;e.length;r++)-1===t.indexOf(e[r])&amp;&amp;t.push(e[r])}function xt(t,e,r){var n,i,a=[],o=[],l=t.layout;for(n=0;n&lt;e.length;n++)a.push(B.getFromId(t,e[n]));for(n=0;n&lt;r.length;n++)o.push(B.getFromId(t,r[n]));var c=Object.keys(p),u=[&quot;anchor&quot;,&quot;domain&quot;,&quot;overlaying&quot;,&quot;position&quot;,&quot;side&quot;,&quot;tickangle&quot;,&quot;editType&quot;],f=[&quot;linear&quot;,&quot;log&quot;];for(n=0;n&lt;c.length;n++){var h=c[n],d=a[0][h],g=o[0][h],m=!0,v=!1,y=!1;if(&quot;_&quot;!==h.charAt(0)&amp;&amp;&quot;function&quot;!=typeof d&amp;&amp;-1===u.indexOf(h)){for(i=1;i&lt;a.length&amp;&amp;m;i++){var x=a[i][h];&quot;type&quot;===h&amp;&amp;-1!==f.indexOf(d)&amp;&amp;-1!==f.indexOf(x)&amp;&amp;d!==x?v=!0:x!==d&amp;&amp;(m=!1)}for(i=1;i&lt;o.length&amp;&amp;m;i++){var b=o[i][h];&quot;type&quot;===h&amp;&amp;-1!==f.indexOf(g)&amp;&amp;-1!==f.indexOf(b)&amp;&amp;g!==b?y=!0:o[i][h]!==g&amp;&amp;(m=!1)}m&amp;&amp;(v&amp;&amp;(l[a[0]._name].type=&quot;linear&quot;),y&amp;&amp;(l[o[0]._name].type=&quot;linear&quot;),bt(l,h,a,o,t._fullLayout._dfltTitle))}}for(n=0;n&lt;t._fullLayout.annotations.length;n++){var _=t._fullLayout.annotations[n];-1!==e.indexOf(_.xref)&amp;&amp;-1!==r.indexOf(_.yref)&amp;&amp;s.swapAttrs(l.annotations[n],[&quot;?&quot;])}}function bt(t,e,r,n,i){var a,o=s.nestedProperty,l=o(t[r[0]._name],e).get(),c=o(t[n[0]._name],e).get();for(&quot;title&quot;===e&amp;&amp;(l&amp;&amp;l.text===i.x&amp;&amp;(l.text=i.y),c&amp;&amp;c.text===i.y&amp;&amp;(c.text=i.x)),a=0;a&lt;r.length;a++)o(t,r[a]._name+&quot;.&quot;+e).set(c);for(a=0;a&lt;n.length;a++)o(t,n[a]._name+&quot;.&quot;+e).set(l)}function _t(t){return&quot;angularaxis&quot;===t._id}function wt(t,e){for(var r=e._rangebreaks.length,n=0;n&lt;r;n++){var i=e._rangebreaks[n];if(t&gt;=i.min&amp;&amp;t&lt;i.max)return i.max}return t}B.getTickFormat=function(t){var e,r,n,i,a,o,s,l;function c(t){return&quot;string&quot;!=typeof t?t:Number(t.replace(&quot;M&quot;,&quot;&quot;))*T}function u(t,e){var r=[&quot;L&quot;,&quot;D&quot;];if(typeof t==typeof e){if(&quot;number&quot;==typeof t)return t-e;var n=r.indexOf(t.charAt(0)),i=r.indexOf(e.charAt(0));return n===i?Number(t.replace(/(L|D)/g,&quot;&quot;))-Number(e.replace(/(L|D)/g,&quot;&quot;)):n-i}return&quot;number&quot;==typeof t?1:-1}function f(t,e){var r=null===e[0],n=null===e[1],i=u(t,e[0])&gt;=0,a=u(t,e[1])&lt;=0;return(r||i)&amp;&amp;(n||a)}if(t.tickformatstops&amp;&amp;t.tickformatstops.length&gt;0)switch(t.type){case&quot;date&quot;:case&quot;linear&quot;:for(e=0;e&lt;t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&amp;&amp;(i=t.dtick,a=n.dtickrange,o=void 0,s=void 0,l=void 0,o=c||function(t){return t},s=a[0],l=a[1],(!s&amp;&amp;&quot;number&quot;!=typeof s||o(s)&lt;=o(i))&amp;&amp;(!l&amp;&amp;&quot;number&quot;!=typeof l||o(l)&gt;=o(i)))){r=n;break}break;case&quot;log&quot;:for(e=0;e&lt;t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&amp;&amp;f(t.dtick,n.dtickrange)){r=n;break}}return r?r.value:t.tickformat},B.getSubplots=function(t,e){var r=t._fullLayout._subplots,n=r.cartesian.concat(r.gl2d||[]),i=e?B.findSubplotsWithAxis(n,e):n;return i.sort((function(t,e){var r=t.substr(1).split(&quot;y&quot;),n=e.substr(1).split(&quot;y&quot;);return r[0]===n[0]?+r[1]-+n[1]:+r[0]-+n[0]})),i},B.findSubplotsWithAxis=function(t,e){for(var r=new RegExp(&quot;x&quot;===e._id.charAt(0)?&quot;^&quot;+e._id+&quot;y&quot;:e._id+&quot;$&quot;),n=[],i=0;i&lt;t.length;i++){var a=t[i];r.test(a)&amp;&amp;n.push(a)}return n},B.makeClipPaths=function(t){var e=t._fullLayout;if(!e._hasOnlyLargeSploms){var r,i,a={_offset:0,_length:e.width,_id:&quot;&quot;},o={_offset:0,_length:e.height,_id:&quot;&quot;},s=B.list(t,&quot;x&quot;,!0),l=B.list(t,&quot;y&quot;,!0),c=[];for(r=0;r&lt;s.length;r++)for(c.push({x:s[r],y:o}),i=0;i&lt;l.length;i++)0===r&amp;&amp;c.push({x:a,y:l[i]}),c.push({x:s[r],y:l[i]});var u=e._clips.selectAll(&quot;.axesclip&quot;).data(c,(function(t){return t.x._id+t.y._id}));u.enter().append(&quot;clipPath&quot;).classed(&quot;axesclip&quot;,!0).attr(&quot;id&quot;,(function(t){return&quot;clip&quot;+e._uid+t.x._id+t.y._id})).append(&quot;rect&quot;),u.exit().remove(),u.each((function(t){n.select(this).select(&quot;rect&quot;).attr({x:t.x._offset||0,y:t.y._offset||0,width:t.x._length||1,height:t.y._length||1})}))}},B.draw=function(t,e,r){var n=t._fullLayout;&quot;redraw&quot;===e&amp;&amp;n._paper.selectAll(&quot;g.subplot&quot;).each((function(t){var e=t[0],r=n._plots[e];if(r){var i=r.xaxis,a=r.yaxis;r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;tick&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;tick&quot;).remove(),r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;tick2&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;tick2&quot;).remove(),r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;divider&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;divider&quot;).remove(),r.gridlayer&amp;&amp;r.gridlayer.selectAll(&quot;path&quot;).remove(),r.zerolinelayer&amp;&amp;r.zerolinelayer.selectAll(&quot;path&quot;).remove(),n._infolayer.select(&quot;.g-&quot;+i._id+&quot;title&quot;).remove(),n._infolayer.select(&quot;.g-&quot;+a._id+&quot;title&quot;).remove()}}));var i=e&amp;&amp;&quot;redraw&quot;!==e?e:B.listIds(t);return s.syncOrAsync(i.map((function(e){return function(){if(e){var n=B.getFromId(t,e),i=B.drawOne(t,n,r);return n._r=n.range.slice(),n._rl=s.simpleMap(n._r,n.r2l),i}}})))},B.drawOne=function(t,e,r){var n,i,l;r=r||{},e.setScale();var c=t._fullLayout,p=e._id,d=p.charAt(0),g=B.counterLetter(p),m=c._plots[e._mainSubplot];if(m){var v=m[d+&quot;axislayer&quot;],y=e._mainLinePosition,x=e._mainMirrorPosition,b=e._vals=B.calcTicks(e),_=[e.mirror,y,x].join(&quot;_&quot;);for(n=0;n&lt;b.length;n++)b[n].axInfo=_;e._selections={},e._tickAngles&amp;&amp;(e._prevTickAngles=e._tickAngles),e._tickAngles={},e._depth=null;var w={};if(e.visible){var T,k,M=B.makeTransTickFn(e),A=B.makeTransTickLabelFn(e),S=&quot;inside&quot;===e.ticks,E=&quot;outside&quot;===e.ticks;if(&quot;boundaries&quot;===e.tickson){var C=function(t,e){var r,n=[],i=function(t,e){var r=t.xbnd[e];null!==r&amp;&amp;n.push(s.extendFlat({},t,{x:r}))};if(e.length){for(r=0;r&lt;e.length;r++)i(e[r],0);i(e[r-1],1)}return n}(0,b);k=B.clipEnds(e,C),T=S?k:C}else k=B.clipEnds(e,b),T=S&amp;&amp;&quot;period&quot;!==e.ticklabelmode?k:b;var L=e._gridVals=k,I=function(t,e){var r,n,i=[],a=e.length&amp;&amp;e[e.length-1].x&lt;e[0].x,o=function(t,e){var r=t.xbnd[e];null!==r&amp;&amp;i.push(s.extendFlat({},t,{x:r}))};if(t.showdividers&amp;&amp;e.length){for(r=0;r&lt;e.length;r++){var l=e[r];l.text2!==n&amp;&amp;o(l,a?1:0),n=l.text2}o(e[r-1],a?0:1)}return i}(e,b);if(!c._hasOnlyLargeSploms){var P=e._subplotsWith,z={};for(n=0;n&lt;P.length;n++){i=P[n];var O=(l=c._plots[i])[g+&quot;axis&quot;],D=O._mainAxis._id;if(!z[D]){z[D]=1;var N=&quot;x&quot;===d?&quot;M0,&quot;+O._offset+&quot;v&quot;+O._length:&quot;M&quot;+O._offset+&quot;,0h&quot;+O._length;B.drawGrid(t,e,{vals:L,counterAxis:O,layer:l.gridlayer.select(&quot;.&quot;+p),path:N,transFn:M}),B.drawZeroLine(t,e,{counterAxis:O,layer:l.zerolinelayer,path:N,transFn:M})}}}var j=B.getTickSigns(e),U=[];if(e.ticks){var V,q,H,G=B.makeTickPath(e,y,j[2]);if(e._anchorAxis&amp;&amp;e.mirror&amp;&amp;!0!==e.mirror?(V=B.makeTickPath(e,x,j[3]),q=G+V):(V=&quot;&quot;,q=G),e.showdividers&amp;&amp;E&amp;&amp;&quot;boundaries&quot;===e.tickson){var Y={};for(n=0;n&lt;I.length;n++)Y[I[n].x]=1;H=function(t){return Y[t.x]?V:q}}else H=q;B.drawTicks(t,e,{vals:T,layer:v,path:H,transFn:M}),&quot;allticks&quot;===e.mirror&amp;&amp;(U=Object.keys(e._linepositions||{}))}for(n=0;n&lt;U.length;n++){i=U[n],l=c._plots[i];var W=e._linepositions[i]||[],X=B.makeTickPath(e,W[0],j[0])+B.makeTickPath(e,W[1],j[1]);B.drawTicks(t,e,{vals:T,layer:l[d+&quot;axislayer&quot;],path:X,transFn:M})}var Z=[];if(Z.push((function(){return B.drawLabels(t,e,{vals:b,layer:v,transFn:A,labelFns:B.makeLabelFns(e,y)})})),&quot;multicategory&quot;===e.type){var J={x:2,y:10}[d];Z.push((function(){var r={x:&quot;height&quot;,y:&quot;width&quot;}[d],n=Q()[r]+J+(e._tickAngles[p+&quot;tick&quot;]?e.tickfont.size*R:0);return B.drawLabels(t,e,{vals:ct(e,b),layer:v,cls:p+&quot;tick2&quot;,repositionOnUpdate:!0,secondary:!0,transFn:M,labelFns:B.makeLabelFns(e,y+n*j[4])})})),Z.push((function(){return e._depth=j[4]*(Q(&quot;tick2&quot;)[e.side]-y),function(t,e,r){var n=e._id+&quot;divider&quot;,i=r.vals,a=r.layer.selectAll(&quot;path.&quot;+n).data(i,ft);a.exit().remove(),a.enter().insert(&quot;path&quot;,&quot;:first-child&quot;).classed(n,1).classed(&quot;crisp&quot;,1).call(f.stroke,e.dividercolor).style(&quot;stroke-width&quot;,h.crispRound(t,e.dividerwidth,1)+&quot;px&quot;),a.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path)}(t,e,{vals:I,layer:v,path:B.makeTickPath(e,y,j[4],e._depth),transFn:M})}))}else e.title.hasOwnProperty(&quot;standoff&quot;)&amp;&amp;Z.push((function(){e._depth=j[4]*(Q()[e.side]-y)}));var K=o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(e);return Z.push((function(){var r,n,i,s,l=e.side.charAt(0),u=F[e.side].charAt(0),f=B.getPxPosition(t,e),h=E?e.ticklen:0;if((e.automargin||K)&amp;&amp;(&quot;multicategory&quot;===e.type?r=Q(&quot;tick2&quot;):(r=Q(),&quot;x&quot;===d&amp;&amp;&quot;b&quot;===l&amp;&amp;(e._depth=Math.max(r.width&gt;0?r.bottom-f:0,h)))),e.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var p=[0,1];if(&quot;x&quot;===d){if(&quot;b&quot;===l?n[l]=e._depth:(n[l]=e._depth=Math.max(r.width&gt;0?f-r.top:0,h),p.reverse()),r.width&gt;0){var m=r.right-(e._offset+e._length);m&gt;0&amp;&amp;(n.xr=1,n.r=m);var v=e._offset-r.left;v&gt;0&amp;&amp;(n.xl=0,n.l=v)}}else if(&quot;l&quot;===l?n[l]=e._depth=Math.max(r.height&gt;0?f-r.left:0,h):(n[l]=e._depth=Math.max(r.height&gt;0?r.right-f:0,h),p.reverse()),r.height&gt;0){var y=r.bottom-(e._offset+e._length);y&gt;0&amp;&amp;(n.yb=0,n.b=y);var x=e._offset-r.top;x&gt;0&amp;&amp;(n.yt=1,n.t=x)}n[g]=&quot;free&quot;===e.anchor?e.position:e._anchorAxis.domain[p[0]],e.title.text!==c._dfltTitle[d]&amp;&amp;(n[l]+=ht(e)+(e.title.standoff||0)),e.mirror&amp;&amp;&quot;free&quot;!==e.anchor&amp;&amp;((i={x:0,y:0,r:0,l:0,t:0,b:0})[u]=e.linewidth,e.mirror&amp;&amp;!0!==e.mirror&amp;&amp;(i[u]+=h),!0===e.mirror||&quot;ticks&quot;===e.mirror?i[g]=e._anchorAxis.domain[p[1]]:&quot;all&quot;!==e.mirror&amp;&amp;&quot;allticks&quot;!==e.mirror||(i[g]=[e._counterDomainMin,e._counterDomainMax][p[1]]))}K&amp;&amp;(s=o.getComponentMethod(&quot;rangeslider&quot;,&quot;autoMarginOpts&quot;)(t,e)),a.autoMargin(t,gt(e),n),a.autoMargin(t,mt(e),i),a.autoMargin(t,vt(e),s)})),r.skipTitle||K&amp;&amp;&quot;bottom&quot;===e.side||Z.push((function(){return function(t,e){var r,n=t._fullLayout,i=e._id,a=i.charAt(0),o=e.title.font.size;if(e.title.hasOwnProperty(&quot;standoff&quot;))r=e._depth+e.title.standoff+ht(e);else{var s=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;);if(&quot;multicategory&quot;===e.type)r=e._depth;else{var l=1.5*o;s&amp;&amp;(l=.5*o,&quot;outside&quot;===e.ticks&amp;&amp;(l+=e.ticklen)),r=10+l+(e.linewidth?e.linewidth-1:0)}s||(r+=&quot;x&quot;===a?&quot;top&quot;===e.side?o*(e.showticklabels?1:0):o*(e.showticklabels?1.5:.5):&quot;right&quot;===e.side?o*(e.showticklabels?1:.5):o*(e.showticklabels?.5:0))}var c,f,p,d,g=B.getPxPosition(t,e);&quot;x&quot;===a?(f=e._offset+e._length/2,p=&quot;top&quot;===e.side?g-r:g+r):(p=e._offset+e._length/2,f=&quot;right&quot;===e.side?g+r:g-r,c={rotate:&quot;-90&quot;,offset:0});if(&quot;multicategory&quot;!==e.type){var m=e._selections[e._id+&quot;tick&quot;];if(d={selection:m,side:e.side},m&amp;&amp;m.node()&amp;&amp;m.node().parentNode){var v=h.getTranslate(m.node().parentNode);d.offsetLeft=v.x,d.offsetTop=v.y}e.title.hasOwnProperty(&quot;standoff&quot;)&amp;&amp;(d.pad=0)}return u.draw(t,i+&quot;title&quot;,{propContainer:e,propName:e._name+&quot;.title.text&quot;,placeholder:n._dfltTitle[a],avoid:d,transform:c,attributes:{x:f,y:p,&quot;text-anchor&quot;:&quot;middle&quot;}})}(t,e)})),s.syncOrAsync(Z)}}function Q(t){var r=p+(t||&quot;tick&quot;);return w[r]||(w[r]=function(t,e){var r,n,i,a;t._selections[e].size()?(r=1/0,n=-1/0,i=1/0,a=-1/0,t._selections[e].each((function(){var t=dt(this),e=h.bBox(t.node().parentNode);r=Math.min(r,e.top),n=Math.max(n,e.bottom),i=Math.min(i,e.left),a=Math.max(a,e.right)}))):(r=0,n=0,i=0,a=0);return{top:r,bottom:n,left:i,right:a,height:n-r,width:a-i}}(e,r)),w[r]}},B.getTickSigns=function(t){var e=t._id.charAt(0),r={x:&quot;top&quot;,y:&quot;right&quot;}[e],n=t.side===r?1:-1,i=[-1,1,n,-n];return&quot;inside&quot;!==t.ticks==(&quot;x&quot;===e)&amp;&amp;(i=i.map((function(t){return-t}))),t.side&amp;&amp;i.push({l:-1,t:-1,r:1,b:1}[t.side.charAt(0)]),i},B.makeTransTickFn=function(t){return&quot;x&quot;===t._id.charAt(0)?function(e){return l(t._offset+t.l2p(e.x),0)}:function(e){return l(0,t._offset+t.l2p(e.x))}},B.makeTransTickLabelFn=function(t){var e=function(t){var e=t.ticklabelposition||&quot;&quot;,r=function(t){return-1!==e.indexOf(t)},n=r(&quot;top&quot;),i=r(&quot;left&quot;),a=r(&quot;right&quot;),o=r(&quot;bottom&quot;),s=r(&quot;inside&quot;),l=o||i||n||a;if(!l&amp;&amp;!s)return[0,0];var c=t.side,u=l?(t.tickwidth||0)/2:0,f=3,h=t.tickfont?t.tickfont.size:12;(o||n)&amp;&amp;(u+=h*D,f+=(t.linewidth||0)/2);(i||a)&amp;&amp;(u+=(t.linewidth||0)/2,f+=3);s&amp;&amp;&quot;top&quot;===c&amp;&amp;(f-=h*(1-D));(i||n)&amp;&amp;(u=-u);&quot;bottom&quot;!==c&amp;&amp;&quot;right&quot;!==c||(f=-f);return[l?u:0,s?f:0]}(t),r=e[0],n=e[1];return&quot;x&quot;===t._id.charAt(0)?function(e){return l(r+t._offset+t.l2p(ut(e)),n)}:function(e){return l(n,r+t._offset+t.l2p(ut(e)))}},B.makeTickPath=function(t,e,r,n){n=void 0!==n?n:t.ticklen;var i=t._id.charAt(0),a=(t.linewidth||1)/2;return&quot;x&quot;===i?&quot;M0,&quot;+(e+a*r)+&quot;v&quot;+n*r:&quot;M&quot;+(e+a*r)+&quot;,0h&quot;+n*r},B.makeLabelFns=function(t,e,r){var n=t.ticklabelposition||&quot;&quot;,a=function(t){return-1!==n.indexOf(t)},o=a(&quot;top&quot;),l=a(&quot;left&quot;),c=a(&quot;right&quot;),u=a(&quot;bottom&quot;)||l||o||c,f=a(&quot;inside&quot;),h=&quot;inside&quot;===n&amp;&amp;&quot;inside&quot;===t.ticks||!f&amp;&amp;&quot;outside&quot;===t.ticks&amp;&amp;&quot;boundaries&quot;!==t.tickson,p=0,d=0,g=h?t.ticklen:0;if(f?g*=-1:u&amp;&amp;(g=0),h&amp;&amp;(p+=g,r)){var m=s.deg2rad(r);p=g*Math.cos(m)+1,d=g*Math.sin(m)}t.showticklabels&amp;&amp;(h||t.showline)&amp;&amp;(p+=.2*t.tickfont.size);var v,y,x,b,_,w={labelStandoff:p+=(t.linewidth||1)/2*(f?-1:1),labelShift:d},T=0,k=t.side,M=t._id.charAt(0),A=t.tickangle;if(&quot;x&quot;===M)b=(_=!f&amp;&amp;&quot;bottom&quot;===k||f&amp;&amp;&quot;top&quot;===k)?1:-1,f&amp;&amp;(b*=-1),v=d*b,y=e+p*b,x=_?1:-.2,90===Math.abs(A)&amp;&amp;(f?x+=O:x=-90===A&amp;&amp;&quot;bottom&quot;===k?D:90===A&amp;&amp;&quot;top&quot;===k?O:.5,T=O/2*(A/90)),w.xFn=function(t){return t.dx+v+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*x},w.anchorFn=function(t,e){if(u){if(l)return&quot;end&quot;;if(c)return&quot;start&quot;}return i(e)&amp;&amp;0!==e&amp;&amp;180!==e?e*b&lt;0!==f?&quot;end&quot;:&quot;start&quot;:&quot;middle&quot;},w.heightFn=function(e,r,n){return r&lt;-60||r&gt;60?-.5*n:&quot;top&quot;===t.side!==f?-n:0};else if(&quot;y&quot;===M){if(b=(_=!f&amp;&amp;&quot;left&quot;===k||f&amp;&amp;&quot;right&quot;===k)?1:-1,f&amp;&amp;(b*=-1),v=p,y=d*b,x=0,f||90!==Math.abs(A)||(x=-90===A&amp;&amp;&quot;left&quot;===k||90===A&amp;&amp;&quot;right&quot;===k?D:.5),f){var S=i(A)?+A:0;if(0!==S){var E=s.deg2rad(S);T=Math.abs(Math.sin(E))*D*b,x=0}}w.xFn=function(t){return t.dx+e-(v+t.fontSize*x)*b+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*O},w.anchorFn=function(t,e){return i(e)&amp;&amp;90===Math.abs(e)?&quot;middle&quot;:_?&quot;end&quot;:&quot;start&quot;},w.heightFn=function(e,r,n){return&quot;right&quot;===t.side&amp;&amp;(r*=-1),r&lt;-30?-n:r&lt;30?-.5*n:0}}return w},B.drawTicks=function(t,e,r){r=r||{};var n=e._id+&quot;tick&quot;,i=r.vals;&quot;period&quot;===e.ticklabelmode&amp;&amp;(i=i.slice()).shift();var a=r.layer.selectAll(&quot;path.&quot;+n).data(e.ticks?i:[],ft);a.exit().remove(),a.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;ticks&quot;,1).classed(&quot;crisp&quot;,!1!==r.crisp).call(f.stroke,e.tickcolor).style(&quot;stroke-width&quot;,h.crispRound(t,e.tickwidth,1)+&quot;px&quot;).attr(&quot;d&quot;,r.path),a.attr(&quot;transform&quot;,r.transFn)},B.drawGrid=function(t,e,r){r=r||{};var n=e._id+&quot;grid&quot;,i=r.vals,a=r.counterAxis;if(!1===e.showgrid)i=[];else if(a&amp;&amp;B.shouldShowZeroLine(t,e,a))for(var o=&quot;array&quot;===e.tickmode,s=0;s&lt;i.length;s++){var l=i[s].x;if(o?!l:Math.abs(l)&lt;e.dtick/100){if(i=i.slice(0,s).concat(i.slice(s+1)),!o)break;s--}}var c=r.layer.selectAll(&quot;path.&quot;+n).data(i,ft);c.exit().remove(),c.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;crisp&quot;,!1!==r.crisp),e._gw=h.crispRound(t,e.gridwidth,1),c.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path).call(f.stroke,e.gridcolor||&quot;#ddd&quot;).style(&quot;stroke-width&quot;,e._gw+&quot;px&quot;),&quot;function&quot;==typeof r.path&amp;&amp;c.attr(&quot;d&quot;,r.path)},B.drawZeroLine=function(t,e,r){r=r||r;var n=e._id+&quot;zl&quot;,i=B.shouldShowZeroLine(t,e,r.counterAxis),a=r.layer.selectAll(&quot;path.&quot;+n).data(i?[{x:0,id:e._id}]:[]);a.exit().remove(),a.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;zl&quot;,1).classed(&quot;crisp&quot;,!1!==r.crisp).each((function(){r.layer.selectAll(&quot;path&quot;).sort((function(t,e){return U(t.id,e.id)}))})),a.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path).call(f.stroke,e.zerolinecolor||f.defaultLine).style(&quot;stroke-width&quot;,h.crispRound(t,e.zerolinewidth,e._gw||1)+&quot;px&quot;)},B.drawLabels=function(t,e,r){r=r||{};var a=t._fullLayout,o=e._id,u=o.charAt(0),f=r.cls||o+&quot;tick&quot;,p=r.vals,d=r.labelFns,g=r.secondary?0:e.tickangle,m=(e._prevTickAngles||{})[f],v=r.layer.selectAll(&quot;g.&quot;+f).data(e.showticklabels?p:[],ft),y=[];function x(t,a){var o=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;);t.each((function(t){var s=n.select(this),u=s.select(&quot;.text-math-group&quot;),f=d.anchorFn(t,a),p=r.transFn.call(s.node(),t)+(i(a)&amp;&amp;0!=+a?&quot; rotate(&quot;+a+&quot;,&quot;+d.xFn(t)+&quot;,&quot;+(d.yFn(t)-t.fontSize/2)+&quot;)&quot;:&quot;&quot;),g=c.lineCount(s),m=R*t.fontSize,v=d.heightFn(t,i(a)?+a:0,(g-1)*m);if(v&amp;&amp;(p+=l(0,v)),u.empty()){var y=s.select(&quot;text&quot;);y.attr({transform:p,&quot;text-anchor&quot;:f}),o&amp;&amp;(y.style({opacity:100}),e._hideOutOfRangeInsideTickLabels&amp;&amp;e._hideOutOfRangeInsideTickLabels())}else{var x=h.bBox(u.node()).width*{end:-.5,start:.5}[f];u.attr(&quot;transform&quot;,p+l(x,0))}}))}v.enter().append(&quot;g&quot;).classed(f,1).append(&quot;text&quot;).attr(&quot;text-anchor&quot;,&quot;middle&quot;).each((function(e){var r=n.select(this),i=t._promises.length;r.call(c.positionText,d.xFn(e),d.yFn(e)).call(h.font,e.font,e.fontSize,e.fontColor).text(e.text).call(c.convertToTspans,t),t._promises[i]?y.push(t._promises.pop().then((function(){x(r,g)}))):x(r,g)})),v.exit().remove(),r.repositionOnUpdate&amp;&amp;v.each((function(t){n.select(this).select(&quot;text&quot;).call(c.positionText,d.xFn(t),d.yFn(t))})),e._hideOutOfRangeInsideTickLabels=void 0,-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;(e._hideOutOfRangeInsideTickLabels=function(){var t=s.simpleMap(e.range,e.r2l),r=e.l2p(t[0]),i=e.l2p(t[1]),a=Math.min(r,i)+e._offset,o=Math.max(r,i)+e._offset,l=&quot;x&quot;===e._id.charAt(0);v.each((function(t){var r=n.select(this);if(r.select(&quot;.text-math-group&quot;).empty()){var i=h.bBox(r.node()),s=!1;l?(i.right&gt;o||i.left&lt;a)&amp;&amp;(s=!0):(i.bottom&gt;o||i.top+(e.tickangle?0:t.fontSize/4)&lt;a)&amp;&amp;(s=!0),s&amp;&amp;r.select(&quot;text&quot;).style({opacity:0})}}))}),x(v,m+1?m:g);var b=null;e._selections&amp;&amp;(e._selections[f]=v);var _=[function(){return y.length&amp;&amp;Promise.all(y)}];e.automargin&amp;&amp;a._redrawFromAutoMarginCount&amp;&amp;90===m?(b=90,_.push((function(){x(v,m)}))):_.push((function(){if(x(v,g),p.length&amp;&amp;&quot;x&quot;===u&amp;&amp;!i(g)&amp;&amp;(&quot;log&quot;!==e.type||&quot;D&quot;!==String(e.dtick).charAt(0))){b=0;var t,n=0,a=[];if(v.each((function(t){n=Math.max(n,t.fontSize);var r=e.l2p(t.x),i=dt(this),o=h.bBox(i.node());a.push({top:0,bottom:10,height:10,left:r-o.width/2,right:r+o.width/2+2,width:o.width+2})})),&quot;boundaries&quot;!==e.tickson&amp;&amp;!e.showdividers||r.secondary){var o=p.length,l=Math.abs((p[o-1].x-p[0].x)*e._m)/(o-1),c=e.ticklabelposition||&quot;&quot;,f=function(t){return-1!==c.indexOf(t)},d=f(&quot;top&quot;),m=f(&quot;left&quot;),y=f(&quot;right&quot;),_=f(&quot;bottom&quot;)||m||d||y?(e.tickwidth||0)+6:0,w=l&lt;2.5*n||&quot;multicategory&quot;===e.type;for(t=0;t&lt;a.length-1;t++)if(s.bBoxIntersect(a[t],a[t+1],_)){b=w?90:30;break}}else{var T=2;for(e.ticks&amp;&amp;(T+=e.tickwidth/2),t=0;t&lt;a.length;t++){var k=p[t].xbnd,M=a[t];if(null!==k[0]&amp;&amp;M.left-e.l2p(k[0])&lt;T||null!==k[1]&amp;&amp;e.l2p(k[1])-M.right&lt;T){b=90;break}}}b&amp;&amp;x(v,b)}})),e._tickAngles&amp;&amp;_.push((function(){e._tickAngles[f]=null===b?i(g)?g:0:b}));var w=e._anchorAxis;w&amp;&amp;w.autorange&amp;&amp;-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;!V(a,e._id)&amp;&amp;(a._insideTickLabelsAutorange||(a._insideTickLabelsAutorange={}),a._insideTickLabelsAutorange[w._name+&quot;.autorange&quot;]=w.autorange,_.push((function(){v.each((function(t,r){var n=dt(this);e._vals[r].bb=h.bBox(n.node())}))})));var T=s.syncOrAsync(_);return T&amp;&amp;T.then&amp;&amp;t._promises.push(T),T},B.getPxPosition=function(t,e){var r,n=t._fullLayout._size,i=e._id.charAt(0),a=e.side;return&quot;free&quot;!==e.anchor?r=e._anchorAxis:&quot;x&quot;===i?r={_offset:n.t+(1-(e.position||0))*n.h,_length:0}:&quot;y&quot;===i&amp;&amp;(r={_offset:n.l+(e.position||0)*n.w,_length:0}),&quot;top&quot;===a||&quot;left&quot;===a?r._offset:&quot;bottom&quot;===a||&quot;right&quot;===a?r._offset+r._length:void 0},B.shouldShowZeroLine=function(t,e,r){var n=s.simpleMap(e.range,e.r2l);return n[0]*n[1]&lt;=0&amp;&amp;e.zeroline&amp;&amp;(&quot;linear&quot;===e.type||&quot;-&quot;===e.type)&amp;&amp;!(e.rangebreaks&amp;&amp;e.maskBreaks(0)===P)&amp;&amp;(pt(e,0)||!function(t,e,r,n){var i=r._mainAxis;if(!i)return;var a=t._fullLayout,o=e._id.charAt(0),s=B.counterLetter(e._id),l=e._offset+(Math.abs(n[0])&lt;Math.abs(n[1])==(&quot;x&quot;===o)?0:e._length);function c(t){if(!t.showline||!t.linewidth)return!1;var r=Math.max((t.linewidth+e.zerolinewidth)/2,1);function n(t){return&quot;number&quot;==typeof t&amp;&amp;Math.abs(t-l)&lt;r}if(n(t._mainLinePosition)||n(t._mainMirrorPosition))return!0;var i=t._linepositions||{};for(var a in i)if(n(i[a][0])||n(i[a][1]))return!0}var u=a._plots[r._mainSubplot];if(!(u.mainplotinfo||u).overlays.length)return c(r);for(var f=B.list(t,s),h=0;h&lt;f.length;h++){var p=f[h];if(p._mainAxis===i&amp;&amp;c(p))return!0}}(t,e,r,n)||function(t,e){for(var r=t._fullData,n=e._mainSubplot,i=e._id.charAt(0),a=0;a&lt;r.length;a++){var s=r[a];if(!0===s.visible&amp;&amp;s.xaxis+s.yaxis===n){if(o.traceIs(s,&quot;bar-like&quot;)&amp;&amp;s.orientation==={x:&quot;h&quot;,y:&quot;v&quot;}[i])return!0;if(s.fill&amp;&amp;s.fill.charAt(s.fill.length-1)===i)return!0}}return!1}(t,e))},B.clipEnds=function(t,e){return e.filter((function(e){return pt(t,e.x)}))},B.allowAutoMargin=function(t){for(var e=B.list(t,&quot;&quot;,!0),r=0;r&lt;e.length;r++){var n=e[r];n.automargin&amp;&amp;(a.allowAutoMargin(t,gt(n)),n.mirror&amp;&amp;a.allowAutoMargin(t,mt(n))),o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(n)&amp;&amp;a.allowAutoMargin(t,vt(n))}},B.swap=function(t,e){for(var r=function(t,e){var r,n,i=[];for(r=0;r&lt;e.length;r++){var a=[],o=t._fullData[e[r]].xaxis,s=t._fullData[e[r]].yaxis;if(o&amp;&amp;s){for(n=0;n&lt;i.length;n++)-1===i[n].x.indexOf(o)&amp;&amp;-1===i[n].y.indexOf(s)||a.push(n);if(a.length){var l,c=i[a[0]];if(a.length&gt;1)for(n=1;n&lt;a.length;n++)l=i[a[n]],yt(c.x,l.x),yt(c.y,l.y);yt(c.x,[o]),yt(c.y,[s])}else i.push({x:[o],y:[s]})}}return i}(t,e),n=0;n&lt;r.length;n++)xt(t,r[n].x,r[n].y)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../components/titles&quot;:738,&quot;../../constants/alignment&quot;:745,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;./autorange&quot;:827,&quot;./axis_autotype&quot;:829,&quot;./axis_ids&quot;:831,&quot;./clean_ticks&quot;:833,&quot;./layout_attributes&quot;:842,&quot;./set_convert&quot;:848,d3:169,&quot;fast-isnumeric&quot;:241}],829:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM,o=i.isArrayOrTypedArray,s=i.isDateTime,l=i.cleanNumber,c=Math.round;function u(t,e){return e?n(t):&quot;number&quot;==typeof t}function f(t){return Math.max(1,(t-1)/1e3)}e.exports=function(t,e,r){var i=t,h=r.noMultiCategory;if(o(i)&amp;&amp;!i.length)return&quot;-&quot;;if(!h&amp;&amp;function(t){return o(t[0])&amp;&amp;o(t[1])}(i))return&quot;multicategory&quot;;if(h&amp;&amp;Array.isArray(i[0])){for(var p=[],d=0;d&lt;i.length;d++)if(o(i[d]))for(var g=0;g&lt;i[d].length;g++)p.push(i[d][g]);i=p}if(function(t,e){for(var r=t.length,i=f(r),a=0,o=0,l={},u=0;u&lt;r;u+=i){var h=c(u),p=t[h],d=String(p);l[d]||(l[d]=1,s(p,e)&amp;&amp;a++,n(p)&amp;&amp;o++)}return a&gt;2*o}(i,e))return&quot;date&quot;;var m=&quot;strict&quot;!==r.autotypenumbers;return function(t,e){for(var r=t.length,n=f(r),i=0,o=0,s={},u=0;u&lt;r;u+=n){var h=c(u),p=t[h],d=String(p);if(!s[d]){s[d]=1;var g=typeof p;&quot;boolean&quot;===g?o++:(e?l(p)!==a:&quot;number&quot;===g)?i++:&quot;string&quot;===g&amp;&amp;o++}}return o&gt;2*i}(i,m)?&quot;category&quot;:function(t,e){for(var r=t.length,n=0;n&lt;r;n++)if(u(t[n],e))return!0;return!1}(i,m)?&quot;linear&quot;:&quot;-&quot;}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],830:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../array_container_defaults&quot;),s=t(&quot;./layout_attributes&quot;),l=t(&quot;./tick_value_defaults&quot;),c=t(&quot;./tick_mark_defaults&quot;),u=t(&quot;./tick_label_defaults&quot;),f=t(&quot;./category_order_defaults&quot;),h=t(&quot;./line_grid_defaults&quot;),p=t(&quot;./set_convert&quot;),d=t(&quot;./constants&quot;).WEEKDAY_PATTERN,g=t(&quot;./constants&quot;).HOUR_PATTERN;function m(t,e,r){function i(r,n){return a.coerce(t,e,s.rangebreaks,r,n)}if(i(&quot;enabled&quot;)){var o=i(&quot;bounds&quot;);if(o&amp;&amp;o.length&gt;=2){var l,c,u=&quot;&quot;;if(2===o.length)for(l=0;l&lt;2;l++)if(c=y(o[l])){u=d;break}var f=i(&quot;pattern&quot;,u);if(f===d)for(l=0;l&lt;2;l++)(c=y(o[l]))&amp;&amp;(e.bounds[l]=o[l]=c-1);if(f)for(l=0;l&lt;2;l++)switch(c=o[l],f){case d:if(!n(c))return void(e.enabled=!1);if((c=+c)!==Math.floor(c)||c&lt;0||c&gt;=7)return void(e.enabled=!1);e.bounds[l]=o[l]=c;break;case g:if(!n(c))return void(e.enabled=!1);if((c=+c)&lt;0||c&gt;24)return void(e.enabled=!1);e.bounds[l]=o[l]=c}if(!1===r.autorange){var h=r.range;if(h[0]&lt;h[1]){if(o[0]&lt;h[0]&amp;&amp;o[1]&gt;h[1])return void(e.enabled=!1)}else if(o[0]&gt;h[0]&amp;&amp;o[1]&lt;h[1])return void(e.enabled=!1)}}else{var p=i(&quot;values&quot;);if(!p||!p.length)return void(e.enabled=!1);i(&quot;dvalue&quot;)}}}e.exports=function(t,e,r,n,g){var v,y=n.letter,x=n.font||{},b=n.splomStash||{},_=r(&quot;visible&quot;,!n.visibleDflt),w=e._template||{},T=e.type||w.type||&quot;-&quot;;&quot;date&quot;===T&amp;&amp;(i.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;,n.calendar),n.noTicklabelmode||(v=r(&quot;ticklabelmode&quot;)));n.noTicklabelposition&amp;&amp;&quot;multicategory&quot;!==T||a.coerce(t,e,{ticklabelposition:{valType:&quot;enumerated&quot;,dflt:&quot;outside&quot;,values:&quot;period&quot;===v?[&quot;outside&quot;,&quot;inside&quot;]:&quot;x&quot;===y?[&quot;outside&quot;,&quot;inside&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;]:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;]}},&quot;ticklabelposition&quot;),p(e,g);var k=!e.isValidRange(t.range);k&amp;&amp;n.reverseDflt&amp;&amp;(k=&quot;reversed&quot;),!r(&quot;autorange&quot;,k)||&quot;linear&quot;!==T&amp;&amp;&quot;-&quot;!==T||r(&quot;rangemode&quot;),r(&quot;range&quot;),e.cleanRange(),f(t,e,r,n),&quot;category&quot;===T||n.noHover||r(&quot;hoverformat&quot;);var M=r(&quot;color&quot;),A=M!==s.color.dflt?M:x.color,S=b.label||g._dfltTitle[y];if(u(t,e,r,T,n,{pass:1}),!_)return e;r(&quot;title.text&quot;,S),a.coerceFont(r,&quot;title.font&quot;,{family:x.family,size:Math.round(1.2*x.size),color:A}),l(t,e,r,T),u(t,e,r,T,n,{pass:2}),c(t,e,r,n),h(t,e,r,{dfltColor:M,bgColor:n.bgColor,showGrid:n.showGrid,attributes:s}),(e.showline||e.ticks)&amp;&amp;r(&quot;mirror&quot;),n.automargin&amp;&amp;r(&quot;automargin&quot;);var E,C=&quot;multicategory&quot;===T;n.noTickson||&quot;category&quot;!==T&amp;&amp;!C||!e.ticks&amp;&amp;!e.showgrid||(C&amp;&amp;(E=&quot;boundaries&quot;),&quot;boundaries&quot;===r(&quot;tickson&quot;,E)&amp;&amp;delete e.ticklabelposition);C&amp;&amp;(r(&quot;showdividers&quot;)&amp;&amp;(r(&quot;dividercolor&quot;),r(&quot;dividerwidth&quot;)));if(&quot;date&quot;===T)if(o(t,e,{name:&quot;rangebreaks&quot;,inclusionAttr:&quot;enabled&quot;,handleItemDefaults:m}),e.rangebreaks.length){for(var L=0;L&lt;e.rangebreaks.length;L++)if(e.rangebreaks[L].pattern===d){e._hasDayOfWeekBreaks=!0;break}if(p(e,g),g._has(&quot;scattergl&quot;)||g._has(&quot;splom&quot;))for(var I=0;I&lt;n.data.length;I++){var P=n.data[I];&quot;scattergl&quot;!==P.type&amp;&amp;&quot;splom&quot;!==P.type||(P.visible=!1,a.warn(P.type+&quot; traces do not work on axes with rangebreaks. Setting trace &quot;+P.index+&quot; to `visible: false`.&quot;))}}else delete e.rangebreaks;return e};var v={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function y(t){if(&quot;string&quot;==typeof t)return v[t.substr(0,3).toLowerCase()]}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../array_container_defaults&quot;:823,&quot;./category_order_defaults&quot;:832,&quot;./constants&quot;:834,&quot;./layout_attributes&quot;:842,&quot;./line_grid_defaults&quot;:844,&quot;./set_convert&quot;:848,&quot;./tick_label_defaults&quot;:849,&quot;./tick_mark_defaults&quot;:850,&quot;./tick_value_defaults&quot;:851,&quot;fast-isnumeric&quot;:241}],831:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./constants&quot;);function a(t,e){if(e&amp;&amp;e.length)for(var r=0;r&lt;e.length;r++)if(e[r][t])return!0;return!1}r.id2name=function(t){if(&quot;string&quot;==typeof t&amp;&amp;t.match(i.AX_ID_PATTERN)){var e=t.split(&quot; &quot;)[0].substr(1);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),t.charAt(0)+&quot;axis&quot;+e}},r.name2id=function(t){if(t.match(i.AX_NAME_PATTERN)){var e=t.substr(5);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),t.charAt(0)+e}},r.cleanId=function(t,e,r){var n=/( domain)$/.test(t);if(&quot;string&quot;==typeof t&amp;&amp;t.match(i.AX_ID_PATTERN)&amp;&amp;(!e||t.charAt(0)===e)&amp;&amp;(!n||r)){var a=t.split(&quot; &quot;)[0].substr(1).replace(/^0+/,&quot;&quot;);return&quot;1&quot;===a&amp;&amp;(a=&quot;&quot;),t.charAt(0)+a+(n&amp;&amp;r?&quot; domain&quot;:&quot;&quot;)}},r.list=function(t,e,n){var i=t._fullLayout;if(!i)return[];var a,o=r.listIds(t,e),s=new Array(o.length);for(a=0;a&lt;o.length;a++){var l=o[a];s[a]=i[l.charAt(0)+&quot;axis&quot;+l.substr(1)]}if(!n){var c=i._subplots.gl3d||[];for(a=0;a&lt;c.length;a++){var u=i[c[a]];e?s.push(u[e+&quot;axis&quot;]):s.push(u.xaxis,u.yaxis,u.zaxis)}}return s},r.listIds=function(t,e){var r=t._fullLayout;if(!r)return[];var n=r._subplots;return e?n[e+&quot;axis&quot;]:n.xaxis.concat(n.yaxis)},r.getFromId=function(t,e,n){var i=t._fullLayout;return e=void 0===e||&quot;string&quot;!=typeof e?e:e.replace(&quot; domain&quot;,&quot;&quot;),&quot;x&quot;===n?e=e.replace(/y[0-9]*/,&quot;&quot;):&quot;y&quot;===n&amp;&amp;(e=e.replace(/x[0-9]*/,&quot;&quot;)),i[r.id2name(e)]},r.getFromTrace=function(t,e,i){var a=t._fullLayout,o=null;if(n.traceIs(e,&quot;gl3d&quot;)){var s=e.scene;&quot;scene&quot;===s.substr(0,5)&amp;&amp;(o=a[s][i+&quot;axis&quot;])}else o=r.getFromId(t,e[i+&quot;axis&quot;]||i);return o},r.idSort=function(t,e){var r=t.charAt(0),n=e.charAt(0);return r!==n?r&gt;n?1:-1:+(t.substr(1)||1)-+(e.substr(1)||1)},r.ref2id=function(t){return!!/^[xyz]/.test(t)&amp;&amp;t.split(&quot; &quot;)[0]},r.isLinked=function(t,e){return a(e,t._axisMatchGroups)||a(e,t._axisConstraintGroups)}},{&quot;../../registry&quot;:911,&quot;./constants&quot;:834}],832:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){if(&quot;category&quot;===e.type){var i,a=t.categoryarray,o=Array.isArray(a)&amp;&amp;a.length&gt;0;o&amp;&amp;(i=&quot;array&quot;);var s,l=r(&quot;categoryorder&quot;,i);&quot;array&quot;===l&amp;&amp;(s=r(&quot;categoryarray&quot;)),o||&quot;array&quot;!==l||(l=e.categoryorder=&quot;trace&quot;),&quot;trace&quot;===l?e._initialCategories=[]:&quot;array&quot;===l?e._initialCategories=s.slice():(s=function(t,e){var r,n,i,a=e.dataAttr||t._id.charAt(0),o={};if(e.axData)r=e.axData;else for(r=[],n=0;n&lt;e.data.length;n++){var s=e.data[n];s[a+&quot;axis&quot;]===t._id&amp;&amp;r.push(s)}for(n=0;n&lt;r.length;n++){var l=r[n][a];for(i=0;i&lt;l.length;i++){var c=l[i];null!=c&amp;&amp;(o[c]=1)}}return Object.keys(o)}(e,n).sort(),&quot;category ascending&quot;===l?e._initialCategories=s:&quot;category descending&quot;===l&amp;&amp;(e._initialCategories=s.reverse()))}}},{}],833:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;),o=a.ONEDAY,s=a.ONEWEEK;r.dtick=function(t,e){var r=&quot;log&quot;===e,i=&quot;date&quot;===e,a=&quot;category&quot;===e,s=i?o:1;if(!t)return s;if(n(t))return(t=Number(t))&lt;=0?s:a?Math.max(1,Math.round(t)):i?Math.max(.1,t):t;if(&quot;string&quot;!=typeof t||!i&amp;&amp;!r)return s;var l=t.charAt(0),c=t.substr(1);return(c=n(c)?Number(c):0)&lt;=0||!(i&amp;&amp;&quot;M&quot;===l&amp;&amp;c===Math.round(c)||r&amp;&amp;&quot;L&quot;===l||r&amp;&amp;&quot;D&quot;===l&amp;&amp;(1===c||2===c))?s:t},r.tick0=function(t,e,r,a){return&quot;date&quot;===e?i.cleanDate(t,i.dateTick0(r,a%s==0?1:0)):&quot;D1&quot;!==a&amp;&amp;&quot;D2&quot;!==a?n(t)?Number(t):0:void 0}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],834:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/regex&quot;).counter;e.exports={idRegex:{x:n(&quot;x&quot;,&quot;( domain)?&quot;),y:n(&quot;y&quot;,&quot;( domain)?&quot;)},attrRegex:n(&quot;[xy]axis&quot;),xAxisMatch:n(&quot;xaxis&quot;),yAxisMatch:n(&quot;yaxis&quot;),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:&quot;hour&quot;,WEEKDAY_PATTERN:&quot;day of week&quot;,MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:&quot;-select&quot;,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:[&quot;imagelayer&quot;,&quot;heatmaplayer&quot;,&quot;contourcarpetlayer&quot;,&quot;contourlayer&quot;,&quot;funnellayer&quot;,&quot;waterfalllayer&quot;,&quot;barlayer&quot;,&quot;carpetlayer&quot;,&quot;violinlayer&quot;,&quot;boxlayer&quot;,&quot;ohlclayer&quot;,&quot;scattercarpetlayer&quot;,&quot;scatterlayer&quot;],clipOnAxisFalseQuery:[&quot;.scatterlayer&quot;,&quot;.barlayer&quot;,&quot;.funnellayer&quot;,&quot;.waterfalllayer&quot;],layerValue2layerClass:{&quot;above traces&quot;:&quot;above&quot;,&quot;below traces&quot;:&quot;below&quot;}}},{&quot;../../lib/regex&quot;:795}],835:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./autorange&quot;),a=t(&quot;./axis_ids&quot;).id2name,o=t(&quot;./layout_attributes&quot;),s=t(&quot;./scale_zoom&quot;),l=t(&quot;./set_convert&quot;),c=t(&quot;../../constants/numerical&quot;).ALMOST_EQUAL,u=t(&quot;../../constants/alignment&quot;).FROM_BL;function f(t,e,r){var i=r.axIds,s=r.layoutOut,l=r.hasImage,c=s._axisConstraintGroups,u=s._axisMatchGroups,f=e._id,g=f.charAt(0),m=((s._splomAxes||{})[g]||{})[f]||{},v=e._id,y=&quot;x&quot;===v.charAt(0);function x(r,i){return n.coerce(t,e,o,r,i)}e._matchGroup=null,e._constraintGroup=null,x(&quot;constrain&quot;,l?&quot;domain&quot;:&quot;range&quot;),n.coerce(t,e,{constraintoward:{valType:&quot;enumerated&quot;,values:y?[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;]:[&quot;bottom&quot;,&quot;middle&quot;,&quot;top&quot;],dflt:y?&quot;center&quot;:&quot;middle&quot;}},&quot;constraintoward&quot;);var b,_,w=e.type,T=[];for(b=0;b&lt;i.length;b++){if((_=i[b])!==v)s[a(_)].type===w&amp;&amp;T.push(_)}var k=p(c,v);if(k){var M=[];for(b=0;b&lt;T.length;b++)k[_=T[b]]||M.push(_);T=M}var A,S,E=T.length;E&amp;&amp;(t.matches||m.matches)&amp;&amp;(A=n.coerce(t,e,{matches:{valType:&quot;enumerated&quot;,values:T,dflt:-1!==T.indexOf(m.matches)?m.matches:void 0}},&quot;matches&quot;));var C=l&amp;&amp;!y?e.anchor:void 0;if(E&amp;&amp;!A&amp;&amp;(t.scaleanchor||C)&amp;&amp;(S=n.coerce(t,e,{scaleanchor:{valType:&quot;enumerated&quot;,values:T}},&quot;scaleanchor&quot;,C)),A){e._matchGroup=d(u,v,A,1);var L=s[a(A)],I=h(s,e)/h(s,L);y!==(&quot;x&quot;===A.charAt(0))&amp;&amp;(I=(y?&quot;x&quot;:&quot;y&quot;)+I),d(c,v,A,I)}else t.matches&amp;&amp;-1!==i.indexOf(t.matches)&amp;&amp;n.warn(&quot;ignored &quot;+e._name+'.matches: &quot;'+t.matches+'&quot; to avoid an infinite loop');if(S){var P=x(&quot;scaleratio&quot;);P||(P=e.scaleratio=1),d(c,v,S,P)}else t.scaleanchor&amp;&amp;-1!==i.indexOf(t.scaleanchor)&amp;&amp;n.warn(&quot;ignored &quot;+e._name+'.scaleanchor: &quot;'+t.scaleanchor+'&quot; to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function h(t,e){var r=e.domain;return r||(r=t[a(e.overlaying)].domain),r[1]-r[0]}function p(t,e){for(var r=0;r&lt;t.length;r++)if(t[r][e])return t[r];return null}function d(t,e,r,n){var i,a,o,s,l,c=p(t,e);null===c?((c={})[e]=1,l=t.length,t.push(c)):l=t.indexOf(c);var u=Object.keys(c);for(i=0;i&lt;t.length;i++)if(o=t[i],i!==l&amp;&amp;o[r]){var f=o[r];for(a=0;a&lt;u.length;a++)o[s=u[a]]=g(f,g(n,c[s]));return void t.splice(l,1)}if(1!==n)for(a=0;a&lt;u.length;a++){var h=u[a];c[h]=g(n,c[h])}c[r]=1}function g(t,e){var r,n,i=&quot;&quot;,a=&quot;&quot;;&quot;string&quot;==typeof t&amp;&amp;(r=(i=t.match(/^[xy]*/)[0]).length,t=+t.substr(r)),&quot;string&quot;==typeof e&amp;&amp;(n=(a=e.match(/^[xy]*/)[0]).length,e=+e.substr(n));var o=t*e;return r||n?r&amp;&amp;n&amp;&amp;i.charAt(0)!==a.charAt(0)?r===n?o:(r&gt;n?i.substr(n):a.substr(r))+o:i+a+t*e:o}function m(t,e){for(var r=e._size,n=r.h/r.w,i={},a=Object.keys(t),o=0;o&lt;a.length;o++){var s=a[o],l=t[s];if(&quot;string&quot;==typeof l){var c=l.match(/^[xy]*/)[0],u=c.length;l=+l.substr(u);for(var f=&quot;y&quot;===c.charAt(0)?n:1/n,h=0;h&lt;u;h++)l*=f}i[s]=l}return i}function v(t,e){var r=t._inputDomain,n=u[t.constraintoward],i=r[0]+(r[1]-r[0])*n;t.domain=t._input.domain=[i+(r[0]-i)/e,i+(r[1]-i)/e],t.setScale()}r.handleDefaults=function(t,e,r){var i,o,s,c,u,h,p,d,g=r.axIds,m=r.axHasImage,v=e._axisConstraintGroups=[],y=e._axisMatchGroups=[];for(i=0;i&lt;g.length;i++)f(u=t[c=a(g[i])],h=e[c],{axIds:g,layoutOut:e,hasImage:m[c]});function x(t,r){for(i=0;i&lt;t.length;i++)for(s in o=t[i])e[a(s)][r]=o}for(x(y,&quot;_matchGroup&quot;),i=0;i&lt;v.length;i++)for(s in o=v[i])if((h=e[a(s)]).fixedrange){for(var b in o){var _=a(b);!1===(t[_]||{}).fixedrange&amp;&amp;n.warn(&quot;fixedrange was specified as false for axis &quot;+_+&quot; but was overridden because another axis in its constraint group has fixedrange true&quot;),e[_].fixedrange=!0}break}for(i=0;i&lt;v.length;){for(s in o=v[i]){(h=e[a(s)])._matchGroup&amp;&amp;Object.keys(h._matchGroup).length===Object.keys(o).length&amp;&amp;(v.splice(i,1),i--);break}i++}x(v,&quot;_constraintGroup&quot;);var w=[&quot;constrain&quot;,&quot;range&quot;,&quot;autorange&quot;,&quot;rangemode&quot;,&quot;rangebreaks&quot;,&quot;categoryorder&quot;,&quot;categoryarray&quot;],T=!1,k=!1;function M(){d=h[p],&quot;rangebreaks&quot;===p&amp;&amp;(k=h._hasDayOfWeekBreaks)}for(i=0;i&lt;y.length;i++){o=y[i];for(var A=0;A&lt;w.length;A++){var S;for(s in p=w[A],d=null,o)if(u=t[c=a(s)],h=e[c],p in h){if(!h.matches&amp;&amp;(S=h,p in u)){M();break}null===d&amp;&amp;p in u&amp;&amp;M()}if(&quot;range&quot;===p&amp;&amp;d&amp;&amp;(T=!0),&quot;autorange&quot;===p&amp;&amp;null===d&amp;&amp;T&amp;&amp;(d=!1),null===d&amp;&amp;p in S&amp;&amp;(d=S[p]),null!==d)for(s in o)(h=e[a(s)])[p]=&quot;range&quot;===p?d.slice():d,&quot;rangebreaks&quot;===p&amp;&amp;(h._hasDayOfWeekBreaks=k,l(h,e))}}},r.enforce=function(t){var e,r,n,o,l,u,f,h,p=t._fullLayout,d=p._axisConstraintGroups||[];for(e=0;e&lt;d.length;e++){n=m(d[e],p);var g=Object.keys(n),y=1/0,x=0,b=1/0,_={},w={},T=!1;for(r=0;r&lt;g.length;r++)w[o=g[r]]=l=p[a(o)],l._inputDomain?l.domain=l._inputDomain.slice():l._inputDomain=l.domain.slice(),l._inputRange||(l._inputRange=l.range.slice()),l.setScale(),_[o]=u=Math.abs(l._m)/n[o],y=Math.min(y,u),&quot;domain&quot;!==l.constrain&amp;&amp;l._constraintShrinkable||(b=Math.min(b,u)),delete l._constraintShrinkable,x=Math.max(x,u),&quot;domain&quot;===l.constrain&amp;&amp;(T=!0);if(!(y&gt;c*x)||T)for(r=0;r&lt;g.length;r++)if(u=_[o=g[r]],f=(l=w[o]).constrain,u!==b||&quot;domain&quot;===f)if(h=u/b,&quot;range&quot;===f)s(l,h);else{var k=l._inputDomain,M=(l.domain[1]-l.domain[0])/(k[1]-k[0]),A=(l.r2l(l.range[1])-l.r2l(l.range[0]))/(l.r2l(l._inputRange[1])-l.r2l(l._inputRange[0]));if((h/=M)*A&lt;1){l.domain=l._input.domain=k.slice(),s(l,h);continue}if(A&lt;1&amp;&amp;(l.range=l._input.range=l._inputRange.slice(),h*=A),l.autorange){var S=l.r2l(l.range[0]),E=l.r2l(l.range[1]),C=(S+E)/2,L=C,I=C,P=Math.abs(E-C),z=C-P*h*1.0001,O=C+P*h*1.0001,D=i.makePadFn(p,l,0),R=i.makePadFn(p,l,1);v(l,h);var F,B,N=Math.abs(l._m),j=i.concatExtremes(t,l),U=j.min,V=j.max;for(B=0;B&lt;U.length;B++)(F=U[B].val-D(U[B])/N)&gt;z&amp;&amp;F&lt;L&amp;&amp;(L=F);for(B=0;B&lt;V.length;B++)(F=V[B].val+R(V[B])/N)&lt;O&amp;&amp;F&gt;I&amp;&amp;(I=F);h/=(I-L)/(2*P),L=l.l2r(L),I=l.l2r(I),l.range=l._input.range=S&lt;E?[L,I]:[I,L]}v(l,h)}}},r.getAxisGroup=function(t,e){for(var r=t._axisMatchGroups,n=0;n&lt;r.length;n++){if(r[n][e])return&quot;g&quot;+n}return e},r.clean=function(t,e){if(e._inputDomain){for(var r=!1,n=e._id,i=t._fullLayout._axisConstraintGroups,a=0;a&lt;i.length;a++)if(i[a][n]){r=!0;break}r&amp;&amp;&quot;domain&quot;===e.constrain||(e._input.domain=e.domain=e._inputDomain,delete e._inputDomain)}}},{&quot;../../constants/alignment&quot;:745,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./autorange&quot;:827,&quot;./axis_ids&quot;:831,&quot;./layout_attributes&quot;:842,&quot;./scale_zoom&quot;:846,&quot;./set_convert&quot;:848}],836:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;has-passive-events&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/color&quot;),f=t(&quot;../../components/drawing&quot;),h=t(&quot;../../components/fx&quot;),p=t(&quot;./axes&quot;),d=t(&quot;../../lib/setcursor&quot;),g=t(&quot;../../components/dragelement&quot;),m=t(&quot;../../components/dragelement/helpers&quot;),v=m.selectingOrDrawing,y=m.freeMode,x=t(&quot;../../constants/alignment&quot;).FROM_TL,b=t(&quot;../../lib/clear_gl_canvases&quot;),_=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,w=t(&quot;../plots&quot;),T=t(&quot;./axis_ids&quot;).getFromId,k=t(&quot;./select&quot;).prepSelect,M=t(&quot;./select&quot;).clearSelect,A=t(&quot;./select&quot;).selectOnClick,S=t(&quot;./scale_zoom&quot;),E=t(&quot;./constants&quot;),C=E.MINDRAG,L=E.MINZOOM,I=!0;function P(t,e,r,n){var i=s.ensureSingle(t.draglayer,e,r,(function(e){e.classed(&quot;drag&quot;,!0).style({fill:&quot;transparent&quot;,&quot;stroke-width&quot;:0}).attr(&quot;data-subplot&quot;,t.id)}));return i.call(d,n),i.node()}function z(t,e,r,i,a,o,s){var l=P(t,&quot;rect&quot;,e,r);return n.select(l).call(f.setRect,i,a,o,s),l}function O(t,e){for(var r=0;r&lt;t.length;r++)if(!t[r].fixedrange)return e;return&quot;&quot;}function D(t,e,r,n,i){for(var a=0;a&lt;t.length;a++){var o=t[a];if(!o.fixedrange)if(o.rangebreaks){var s=&quot;y&quot;===o._id.charAt(0),l=s?1-e:e,c=s?1-r:r;n[o._name+&quot;.range[0]&quot;]=o.l2r(o.p2l(l*o._length)),n[o._name+&quot;.range[1]&quot;]=o.l2r(o.p2l(c*o._length))}else{var u=o._rl[0],f=o._rl[1]-u;n[o._name+&quot;.range[0]&quot;]=o.l2r(u+f*e),n[o._name+&quot;.range[1]&quot;]=o.l2r(u+f*r)}}if(i&amp;&amp;i.length){var h=(e+(1-r))/2;D(i,h,1-h,n,[])}}function R(t,e){for(var r=0;r&lt;t.length;r++){var n=t[r];if(!n.fixedrange)if(n.rangebreaks){var i=n._length,a=(n.p2l(0+e)-n.p2l(0)+(n.p2l(i+e)-n.p2l(i)))/2;n.range=[n.l2r(n._rl[0]-a),n.l2r(n._rl[1]-a)]}else n.range=[n.l2r(n._rl[0]-e/n._m),n.l2r(n._rl[1]-e/n._m)]}}function F(t){return 1-(t&gt;=0?Math.min(t,.9):1/(1/Math.max(t,-.3)+3.222))}function B(t,e,r,n,i){return t.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox&quot;).style({fill:e&gt;.2?&quot;rgba(0,0,0,0)&quot;:&quot;rgba(255,255,255,0)&quot;,&quot;stroke-width&quot;:0}).attr(&quot;transform&quot;,l(r,n)).attr(&quot;d&quot;,i+&quot;Z&quot;)}function N(t,e,r){return t.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).style({fill:u.background,stroke:u.defaultLine,&quot;stroke-width&quot;:1,opacity:0}).attr(&quot;transform&quot;,l(e,r)).attr(&quot;d&quot;,&quot;M0,0Z&quot;)}function j(t,e,r,n,i,a){t.attr(&quot;d&quot;,n+&quot;M&quot;+r.l+&quot;,&quot;+r.t+&quot;v&quot;+r.h+&quot;h&quot;+r.w+&quot;v-&quot;+r.h+&quot;h-&quot;+r.w+&quot;Z&quot;),U(t,e,i,a)}function U(t,e,r,n){r||(t.transition().style(&quot;fill&quot;,n&gt;.2?&quot;rgba(0,0,0,0.4)&quot;:&quot;rgba(255,255,255,0.3)&quot;).duration(200),e.transition().style(&quot;opacity&quot;,1).duration(200))}function V(t){n.select(t).selectAll(&quot;.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners&quot;).remove()}function q(t){I&amp;&amp;t.data&amp;&amp;t._context.showTips&amp;&amp;(s.notifier(s._(t,&quot;Double-click to zoom back out&quot;),&quot;long&quot;),I=!1)}function H(t){var e=Math.floor(Math.min(t.b-t.t,t.r-t.l,L)/2);return&quot;M&quot;+(t.l-3.5)+&quot;,&quot;+(t.t-.5+e)+&quot;h3v&quot;+-e+&quot;h&quot;+e+&quot;v-3h-&quot;+(e+3)+&quot;ZM&quot;+(t.r+3.5)+&quot;,&quot;+(t.t-.5+e)+&quot;h-3v&quot;+-e+&quot;h&quot;+-e+&quot;v-3h&quot;+(e+3)+&quot;ZM&quot;+(t.r+3.5)+&quot;,&quot;+(t.b+.5-e)+&quot;h-3v&quot;+e+&quot;h&quot;+-e+&quot;v3h&quot;+(e+3)+&quot;ZM&quot;+(t.l-3.5)+&quot;,&quot;+(t.b+.5-e)+&quot;h3v&quot;+e+&quot;h&quot;+e+&quot;v3h-&quot;+(e+3)+&quot;Z&quot;}function G(t,e,r,n,i){for(var a,o,l,c,u=!1,f={},h={},p=(i||{}).xaHash,d=(i||{}).yaHash,g=0;g&lt;e.length;g++){var m=e[g];for(a in r)if(m[a]){for(l in m)i&amp;&amp;(p[l]||d[l])||(&quot;x&quot;===l.charAt(0)?r:n)[l]||(f[l]=a);for(o in n)i&amp;&amp;(p[o]||d[o])||!m[o]||(u=!0)}for(o in n)if(m[o])for(c in m)i&amp;&amp;(p[c]||d[c])||(&quot;x&quot;===c.charAt(0)?r:n)[c]||(h[c]=o)}u&amp;&amp;(s.extendFlat(f,h),h={});var v={},y=[];for(l in f){var x=T(t,l);y.push(x),v[x._id]=x}var b={},_=[];for(c in h){var w=T(t,c);_.push(w),b[w._id]=w}return{xaHash:v,yaHash:b,xaxes:y,yaxes:_,xLinks:f,yLinks:h,isSubplotConstrained:u}}function Y(t,e){if(a){var r=void 0!==t.onwheel?&quot;wheel&quot;:&quot;mousewheel&quot;;t._onwheel&amp;&amp;t.removeEventListener(r,t._onwheel),t._onwheel=e,t.addEventListener(r,e,{passive:!1})}else void 0!==t.onwheel?t.onwheel=e:void 0!==t.onmousewheel?t.onmousewheel=e:t.isAddedWheelEvent||(t.isAddedWheelEvent=!0,t.addEventListener(&quot;wheel&quot;,e,{passive:!1}))}function W(t){var e=[];for(var r in t)e.push(t[r]);return e}e.exports={makeDragBox:function(t,e,r,a,l,u,d,m){var I,P,U,X,Z,J,K,Q,$,tt,et,rt,nt,it,at,ot,st,lt,ct,ut,ft,ht,pt,dt=t._fullLayout._zoomlayer,gt=d+m===&quot;nsew&quot;,mt=1===(d+m).length;function vt(){if(I=e.xaxis,P=e.yaxis,$=I._length,tt=P._length,K=I._offset,Q=P._offset,(U={})[I._id]=I,(X={})[P._id]=P,d&amp;&amp;m)for(var r=e.overlays,n=0;n&lt;r.length;n++){var i=r[n].xaxis;U[i._id]=i;var a=r[n].yaxis;X[a._id]=a}Z=W(U),J=W(X),nt=O(Z,m),it=O(J,d),at=!it&amp;&amp;!nt,rt=G(t,t._fullLayout._axisMatchGroups,U,X);var o=(et=G(t,t._fullLayout._axisConstraintGroups,U,X,rt)).isSubplotConstrained||rt.isSubplotConstrained;ot=m||o,st=d||o;var s=t._fullLayout;lt=s._has(&quot;scattergl&quot;),ct=s._has(&quot;splom&quot;),ut=s._has(&quot;svg&quot;)}vt();var yt=function(t,e,r){if(!t)return&quot;pointer&quot;;if(&quot;nsew&quot;===t)return r?&quot;&quot;:&quot;pan&quot;===e?&quot;move&quot;:&quot;crosshair&quot;;return t.toLowerCase()+&quot;-resize&quot;}(it+nt,t._fullLayout.dragmode,gt),xt=z(e,d+m+&quot;drag&quot;,yt,r,a,l,u);if(at&amp;&amp;!gt)return xt.onmousedown=null,xt.style.pointerEvents=&quot;none&quot;,xt;var bt,_t,wt,Tt,kt,Mt,At,St,Et,Ct,Lt={element:xt,gd:t,plotinfo:e};function It(){Lt.plotinfo.selection=!1,M(t)}function Pt(t,r){var i=Lt.gd;if(i._fullLayout._activeShapeIndex&gt;=0)i._fullLayout._deactivateShape(i);else{var a=i._fullLayout.clickmode;if(V(i),2!==t||mt||qt(),gt)a.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;A(r,i,Z,J,e.id,Lt),a.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;h.click(i,r,e.id);else if(1===t&amp;&amp;mt){var s=d?P:I,l=&quot;s&quot;===d||&quot;w&quot;===m?0:1,u=s._name+&quot;.range[&quot;+l+&quot;]&quot;,f=function(t,e){var r,i=t.range[e],a=Math.abs(i-t.range[1-e]);return&quot;date&quot;===t.type?i:&quot;log&quot;===t.type?(r=Math.ceil(Math.max(0,-Math.log(a)/Math.LN10))+3,n.format(&quot;.&quot;+r+&quot;g&quot;)(Math.pow(10,i))):(r=Math.floor(Math.log(Math.abs(i))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,n.format(&quot;.&quot;+String(r)+&quot;g&quot;)(i))}(s,l),p=&quot;left&quot;,g=&quot;middle&quot;;if(s.fixedrange)return;d?(g=&quot;n&quot;===d?&quot;top&quot;:&quot;bottom&quot;,&quot;right&quot;===s.side&amp;&amp;(p=&quot;right&quot;)):&quot;e&quot;===m&amp;&amp;(p=&quot;right&quot;),i._context.showAxisRangeEntryBoxes&amp;&amp;n.select(xt).call(c.makeEditable,{gd:i,immediate:!0,background:i._fullLayout.paper_bgcolor,text:String(f),fill:s.tickfont?s.tickfont.color:&quot;#444&quot;,horizontalAlign:p,verticalAlign:g}).on(&quot;edit&quot;,(function(t){var e=s.d2r(t);void 0!==e&amp;&amp;o.call(&quot;_guiRelayout&quot;,i,u,e)}))}}}function zt(e,r){if(t._transitioningWithDuration)return!1;var n=Math.max(0,Math.min($,ht*e+bt)),i=Math.max(0,Math.min(tt,pt*r+_t)),a=Math.abs(n-bt),o=Math.abs(i-_t);function s(){At=&quot;&quot;,wt.r=wt.l,wt.t=wt.b,Et.attr(&quot;d&quot;,&quot;M0,0Z&quot;)}if(wt.l=Math.min(bt,n),wt.r=Math.max(bt,n),wt.t=Math.min(_t,i),wt.b=Math.max(_t,i),et.isSubplotConstrained)a&gt;L||o&gt;L?(At=&quot;xy&quot;,a/$&gt;o/tt?(o=a*tt/$,_t&gt;i?wt.t=_t-o:wt.b=_t+o):(a=o*$/tt,bt&gt;n?wt.l=bt-a:wt.r=bt+a),Et.attr(&quot;d&quot;,H(wt))):s();else if(rt.isSubplotConstrained)if(a&gt;L||o&gt;L){At=&quot;xy&quot;;var l=Math.min(wt.l/$,(tt-wt.b)/tt),c=Math.max(wt.r/$,(tt-wt.t)/tt);wt.l=l*$,wt.r=c*$,wt.b=(1-l)*tt,wt.t=(1-c)*tt,Et.attr(&quot;d&quot;,H(wt))}else s();else!it||o&lt;Math.min(Math.max(.6*a,C),L)?a&lt;C||!nt?s():(wt.t=0,wt.b=tt,At=&quot;x&quot;,Et.attr(&quot;d&quot;,function(t,e){return&quot;M&quot;+(t.l-.5)+&quot;,&quot;+(e-L-.5)+&quot;h-3v&quot;+(2*L+1)+&quot;h3ZM&quot;+(t.r+.5)+&quot;,&quot;+(e-L-.5)+&quot;h3v&quot;+(2*L+1)+&quot;h-3Z&quot;}(wt,_t))):!nt||a&lt;Math.min(.6*o,L)?(wt.l=0,wt.r=$,At=&quot;y&quot;,Et.attr(&quot;d&quot;,function(t,e){return&quot;M&quot;+(e-L-.5)+&quot;,&quot;+(t.t-.5)+&quot;v-3h&quot;+(2*L+1)+&quot;v3ZM&quot;+(e-L-.5)+&quot;,&quot;+(t.b+.5)+&quot;v3h&quot;+(2*L+1)+&quot;v-3Z&quot;}(wt,bt))):(At=&quot;xy&quot;,Et.attr(&quot;d&quot;,H(wt)));wt.w=wt.r-wt.l,wt.h=wt.b-wt.t,At&amp;&amp;(Ct=!0),t._dragged=Ct,j(St,Et,wt,kt,Mt,Tt),Ot(),t.emit(&quot;plotly_relayouting&quot;,ft),Mt=!0}function Ot(){ft={},&quot;xy&quot;!==At&amp;&amp;&quot;x&quot;!==At||(D(Z,wt.l/$,wt.r/$,ft,et.xaxes),Ut(&quot;x&quot;,ft)),&quot;xy&quot;!==At&amp;&amp;&quot;y&quot;!==At||(D(J,(tt-wt.b)/tt,(tt-wt.t)/tt,ft,et.yaxes),Ut(&quot;y&quot;,ft))}function Dt(){Ot(),V(t),Ht(),q(t)}Lt.prepFn=function(e,r,n){var a=Lt.dragmode,o=t._fullLayout.dragmode;o!==a&amp;&amp;(Lt.dragmode=o),vt(),ht=t._fullLayout._invScaleX,pt=t._fullLayout._invScaleY,at||(gt?e.shiftKey?&quot;pan&quot;===o?o=&quot;zoom&quot;:v(o)||(o=&quot;pan&quot;):e.ctrlKey&amp;&amp;(o=&quot;pan&quot;):o=&quot;pan&quot;),y(o)?Lt.minDrag=1:Lt.minDrag=void 0,v(o)?(Lt.xaxes=Z,Lt.yaxes=J,k(e,r,n,Lt,o)):(Lt.clickFn=Pt,v(a)&amp;&amp;It(),at||(&quot;zoom&quot;===o?(Lt.moveFn=zt,Lt.doneFn=Dt,Lt.minDrag=1,function(e,r,n){var a=xt.getBoundingClientRect();bt=r-a.left,_t=n-a.top,t._fullLayout._calcInverseTransform(t);var o=s.apply3DTransform(t._fullLayout._invTransform)(bt,_t);bt=o[0],_t=o[1],wt={l:bt,r:bt,w:0,t:_t,b:_t,h:0},Tt=t._hmpixcount?t._hmlumcount/t._hmpixcount:i(t._fullLayout.plot_bgcolor).getLuminance(),Mt=!1,At=&quot;xy&quot;,Ct=!1,St=B(dt,Tt,K,Q,kt=&quot;M0,0H&quot;+$+&quot;V&quot;+tt+&quot;H0V0&quot;),Et=N(dt,K,Q)}(0,r,n)):&quot;pan&quot;===o&amp;&amp;(Lt.moveFn=jt,Lt.doneFn=Ht))),t._fullLayout._redrag=function(){var e=t._dragdata;if(e&amp;&amp;e.element===xt){var r=t._fullLayout.dragmode;v(r)||(vt(),Gt([0,0,$,tt]),Lt.moveFn(e.dx,e.dy))}}},g.init(Lt);var Rt=[0,0,$,tt],Ft=null,Bt=E.REDRAWDELAY,Nt=e.mainplot?t._fullLayout._plots[e.mainplot]:e;function jt(e,r){if(e*=ht,r*=pt,!t._transitioningWithDuration){if(t._fullLayout._replotting=!0,&quot;ew&quot;===nt||&quot;ns&quot;===it){var n=nt?-e:0,i=it?-r:0;if(rt.isSubplotConstrained){if(nt&amp;&amp;it){var a=(e/$-r/tt)/2;n=-(e=a*$),i=-(r=-a*tt)}it?n=-i*$/tt:i=-n*tt/$}return nt&amp;&amp;(R(Z,e),Ut(&quot;x&quot;)),it&amp;&amp;(R(J,r),Ut(&quot;y&quot;)),Gt([n,i,$,tt]),Vt(),void t.emit(&quot;plotly_relayouting&quot;,ft)}var o,s,l=&quot;w&quot;===nt==(&quot;n&quot;===it)?1:-1;if(nt&amp;&amp;it&amp;&amp;(et.isSubplotConstrained||rt.isSubplotConstrained)){var c=(e/$+l*r/tt)/2;e=c*$,r=l*c*tt}if(&quot;w&quot;===nt?e=p(Z,0,e):&quot;e&quot;===nt?e=p(Z,1,-e):nt||(e=0),&quot;n&quot;===it?r=p(J,1,r):&quot;s&quot;===it?r=p(J,0,-r):it||(r=0),o=&quot;w&quot;===nt?e:0,s=&quot;n&quot;===it?r:0,et.isSubplotConstrained&amp;&amp;!rt.isSubplotConstrained||rt.isSubplotConstrained&amp;&amp;nt&amp;&amp;it&amp;&amp;l&gt;0){var u;if(rt.isSubplotConstrained||!nt&amp;&amp;1===it.length){for(u=0;u&lt;Z.length;u++)Z[u].range=Z[u]._r.slice(),S(Z[u],1-r/tt);o=(e=r*$/tt)/2}if(rt.isSubplotConstrained||!it&amp;&amp;1===nt.length){for(u=0;u&lt;J.length;u++)J[u].range=J[u]._r.slice(),S(J[u],1-e/$);s=(r=e*tt/$)/2}}rt.isSubplotConstrained&amp;&amp;it||Ut(&quot;x&quot;),rt.isSubplotConstrained&amp;&amp;nt||Ut(&quot;y&quot;);var f=$-e,h=tt-r;!rt.isSubplotConstrained||nt&amp;&amp;it||(nt?(s=o?0:e*tt/$,h=f*tt/$):(o=s?0:r*$/tt,f=h*$/tt)),Gt([o,s,f,h]),Vt(),t.emit(&quot;plotly_relayouting&quot;,ft)}function p(t,e,r){for(var n,i,a=1-e,o=0;o&lt;t.length;o++){var s=t[o];if(!s.fixedrange){n=s,i=s._rl[a]+(s._rl[e]-s._rl[a])/F(r/s._length);var l=s.l2r(i);!1!==l&amp;&amp;void 0!==l&amp;&amp;(s.range[e]=l)}}return n._length*(n._rl[e]-i)/(n._rl[e]-n._rl[a])}}function Ut(t,e){for(var r=rt.isSubplotConstrained?{x:J,y:Z}[t]:rt[t+&quot;axes&quot;],n=rt.isSubplotConstrained?{x:Z,y:J}[t]:[],i=0;i&lt;r.length;i++){var a=r[i],o=a._id,s=rt.xLinks[o]||rt.yLinks[o],l=n[0]||U[s]||X[s];l&amp;&amp;(e?(e[a._name+&quot;.range[0]&quot;]=e[l._name+&quot;.range[0]&quot;],e[a._name+&quot;.range[1]&quot;]=e[l._name+&quot;.range[1]&quot;]):a.range=l.range.slice())}}function Vt(){var e,r=[];function n(t){for(e=0;e&lt;t.length;e++)t[e].fixedrange||r.push(t[e]._id)}for(ot&amp;&amp;(n(Z),n(et.xaxes),n(rt.xaxes)),st&amp;&amp;(n(J),n(et.yaxes),n(rt.yaxes)),ft={},e=0;e&lt;r.length;e++){var i=r[e],a=T(t,i);p.drawOne(t,a,{skipTitle:!0}),ft[a._name+&quot;.range[0]&quot;]=a.range[0],ft[a._name+&quot;.range[1]&quot;]=a.range[1]}p.redrawComponents(t,r)}function qt(){if(!t._transitioningWithDuration){var e=t._context.doubleClick,r=[];nt&amp;&amp;(r=r.concat(Z)),it&amp;&amp;(r=r.concat(J)),rt.xaxes&amp;&amp;(r=r.concat(rt.xaxes)),rt.yaxes&amp;&amp;(r=r.concat(rt.yaxes));var n,i,a,s={};if(&quot;reset+autosize&quot;===e)for(e=&quot;autosize&quot;,i=0;i&lt;r.length;i++)if((n=r[i])._rangeInitial&amp;&amp;(n.range[0]!==n._rangeInitial[0]||n.range[1]!==n._rangeInitial[1])||!n._rangeInitial&amp;&amp;!n.autorange){e=&quot;reset&quot;;break}if(&quot;autosize&quot;===e)for(i=0;i&lt;r.length;i++)(n=r[i]).fixedrange||(s[n._name+&quot;.autorange&quot;]=!0);else if(&quot;reset&quot;===e)for((nt||et.isSubplotConstrained)&amp;&amp;(r=r.concat(et.xaxes)),it&amp;&amp;!et.isSubplotConstrained&amp;&amp;(r=r.concat(et.yaxes)),et.isSubplotConstrained&amp;&amp;(nt?it||(r=r.concat(J)):r=r.concat(Z)),i=0;i&lt;r.length;i++)(n=r[i]).fixedrange||(n._rangeInitial?(a=n._rangeInitial,s[n._name+&quot;.range[0]&quot;]=a[0],s[n._name+&quot;.range[1]&quot;]=a[1]):s[n._name+&quot;.autorange&quot;]=!0);t.emit(&quot;plotly_doubleclick&quot;,null),o.call(&quot;_guiRelayout&quot;,t,s)}}function Ht(){Gt([0,0,$,tt]),s.syncOrAsync([w.previousPromises,function(){t._fullLayout._replotting=!1,o.call(&quot;_guiRelayout&quot;,t,ft)}],t)}function Gt(e){var r,n,i,a,l=t._fullLayout,c=l._plots,u=l._subplots.cartesian;if(ct&amp;&amp;o.subplotsRegistry.splom.drag(t),lt)for(r=0;r&lt;u.length;r++)if(i=(n=c[u[r]]).xaxis,a=n.yaxis,n._scene){var h=s.simpleMap(i.range,i.r2l),p=s.simpleMap(a.range,a.r2l);n._scene.update({range:[h[0],p[0],h[1],p[1]]})}if((ct||lt)&amp;&amp;(b(t),_(t)),ut){var g=e[2]/I._length,v=e[3]/P._length;for(r=0;r&lt;u.length;r++){i=(n=c[u[r]]).xaxis,a=n.yaxis;var y,x,w,T,k=(ot||rt.isSubplotConstrained)&amp;&amp;!i.fixedrange&amp;&amp;U[i._id],M=(st||rt.isSubplotConstrained)&amp;&amp;!a.fixedrange&amp;&amp;X[a._id];if(k?(y=g,w=m||rt.isSubplotConstrained?e[0]:Xt(i,y)):rt.xaHash[i._id]?(y=g,w=e[0]*i._length/I._length):rt.yaHash[i._id]?(y=v,w=&quot;ns&quot;===it?-e[1]*i._length/P._length:Xt(i,y,{n:&quot;top&quot;,s:&quot;bottom&quot;}[it])):w=Wt(i,y=Yt(i,g,v)),M?(x=v,T=d||rt.isSubplotConstrained?e[1]:Xt(a,x)):rt.yaHash[a._id]?(x=v,T=e[1]*a._length/P._length):rt.xaHash[a._id]?(x=g,T=&quot;ew&quot;===nt?-e[0]*a._length/I._length:Xt(a,x,{e:&quot;right&quot;,w:&quot;left&quot;}[nt])):T=Wt(a,x=Yt(a,g,v)),y||x){y||(y=1),x||(x=1);var A=i._offset-w/y,S=a._offset-T/x;n.clipRect.call(f.setTranslate,w,T).call(f.setScale,y,x),n.plot.call(f.setTranslate,A,S).call(f.setScale,1/y,1/x),y===n.xScaleFactor&amp;&amp;x===n.yScaleFactor||(f.setPointGroupScale(n.zoomScalePts,y,x),f.setTextPointsScale(n.zoomScaleTxt,y,x)),f.hideOutsideRangePoints(n.clipOnAxisFalseTraces,n),n.xScaleFactor=y,n.yScaleFactor=x}}}}function Yt(t,e,r){return t.fixedrange?0:ot&amp;&amp;et.xaHash[t._id]?e:st&amp;&amp;(et.isSubplotConstrained?et.xaHash:et.yaHash)[t._id]?r:0}function Wt(t,e){return e?(t.range=t._r.slice(),S(t,e),Xt(t,e)):0}function Xt(t,e,r){return t._length*(1-e)*x[r||t.constraintoward||&quot;middle&quot;]}return d.length*m.length!=1&amp;&amp;Y(xt,(function(e){if(t._context._scrollZoom.cartesian||t._fullLayout._enablescrollzoom){if(It(),t._transitioningWithDuration)return e.preventDefault(),void e.stopPropagation();vt(),clearTimeout(Ft);var r=-e.deltaY;if(isFinite(r)||(r=e.wheelDelta/10),isFinite(r)){var n,i=Math.exp(-Math.min(Math.max(r,-20),20)/200),a=Nt.draglayer.select(&quot;.nsewdrag&quot;).node().getBoundingClientRect(),o=(e.clientX-a.left)/a.width,l=(a.bottom-e.clientY)/a.height;if(ot){for(m||(o=.5),n=0;n&lt;Z.length;n++)c(Z[n],o,i);Ut(&quot;x&quot;),Rt[2]*=i,Rt[0]+=Rt[2]*o*(1/i-1)}if(st){for(d||(l=.5),n=0;n&lt;J.length;n++)c(J[n],l,i);Ut(&quot;y&quot;),Rt[3]*=i,Rt[1]+=Rt[3]*(1-l)*(1/i-1)}Gt(Rt),Vt(),t.emit(&quot;plotly_relayouting&quot;,ft),Ft=setTimeout((function(){Rt=[0,0,$,tt],Ht()}),Bt),e.preventDefault()}else s.log(&quot;Did not find wheel motion attributes: &quot;,e)}function c(t,e,r){if(!t.fixedrange){var n=s.simpleMap(t.range,t.r2l),i=n[0]+(n[1]-n[0])*e;t.range=n.map((function(e){return t.l2r(i+(e-i)*r)}))}}})),xt},makeDragger:P,makeRectDragger:z,makeZoombox:B,makeCorners:N,updateZoombox:j,xyCorners:H,transitionZoombox:U,removeZoombox:V,showDoubleClickNotifier:q,attachWheelEventHandler:Y}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/clear_gl_canvases&quot;:762,&quot;../../lib/setcursor&quot;:799,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/subroutines&quot;:818,&quot;../../registry&quot;:911,&quot;../plots&quot;:891,&quot;./axes&quot;:828,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./scale_zoom&quot;:846,&quot;./select&quot;:847,d3:169,&quot;has-passive-events&quot;:441,tinycolor2:576}],837:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/fx&quot;),a=t(&quot;../../components/dragelement&quot;),o=t(&quot;../../lib/setcursor&quot;),s=t(&quot;./dragbox&quot;).makeDragBox,l=t(&quot;./constants&quot;).DRAGGERSIZE;r.initInteractions=function(t){var e=t._fullLayout;if(t._context.staticPlot)n.select(t).selectAll(&quot;.drag&quot;).remove();else if(e._has(&quot;cartesian&quot;)||e._has(&quot;splom&quot;)){Object.keys(e._plots||{}).sort((function(t,r){if((e._plots[t].mainplot&amp;&amp;!0)===(e._plots[r].mainplot&amp;&amp;!0)){var n=t.split(&quot;y&quot;),i=r.split(&quot;y&quot;);return n[0]===i[0]?Number(n[1]||1)-Number(i[1]||1):Number(n[0]||1)-Number(i[0]||1)}return e._plots[t].mainplot?1:-1})).forEach((function(r){var n=e._plots[r],o=n.xaxis,c=n.yaxis;if(!n.mainplot){var u=s(t,n,o._offset,c._offset,o._length,c._length,&quot;ns&quot;,&quot;ew&quot;);u.onmousemove=function(e){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===r&amp;&amp;t._fullLayout._plots[r]&amp;&amp;i.hover(t,e,r)},i.hover(t,e,r),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=r},u.onmouseout=function(e){t._dragging||(t._fullLayout._hoversubplot=null,a.unhover(t,e))},t._context.showAxisDragHandles&amp;&amp;(s(t,n,o._offset-l,c._offset-l,l,l,&quot;n&quot;,&quot;w&quot;),s(t,n,o._offset+o._length,c._offset-l,l,l,&quot;n&quot;,&quot;e&quot;),s(t,n,o._offset-l,c._offset+c._length,l,l,&quot;s&quot;,&quot;w&quot;),s(t,n,o._offset+o._length,c._offset+c._length,l,l,&quot;s&quot;,&quot;e&quot;))}if(t._context.showAxisDragHandles){if(r===o._mainSubplot){var f=o._mainLinePosition;&quot;top&quot;===o.side&amp;&amp;(f-=l),s(t,n,o._offset+.1*o._length,f,.8*o._length,l,&quot;&quot;,&quot;ew&quot;),s(t,n,o._offset,f,.1*o._length,l,&quot;&quot;,&quot;w&quot;),s(t,n,o._offset+.9*o._length,f,.1*o._length,l,&quot;&quot;,&quot;e&quot;)}if(r===c._mainSubplot){var h=c._mainLinePosition;&quot;right&quot;!==c.side&amp;&amp;(h-=l),s(t,n,h,c._offset+.1*c._length,l,.8*c._length,&quot;ns&quot;,&quot;&quot;),s(t,n,h,c._offset+.9*c._length,l,.1*c._length,&quot;s&quot;,&quot;&quot;),s(t,n,h,c._offset,l,.1*c._length,&quot;n&quot;,&quot;&quot;)}}}));var o=e._hoverlayer.node();o.onmousemove=function(r){r.target=t._fullLayout._lasthover,i.hover(t,r,e._hoversubplot)},o.onclick=function(e){e.target=t._fullLayout._lasthover,i.click(t,e)},o.onmousedown=function(e){t._fullLayout._lasthover.onmousedown(e)},r.updateFx(t)}},r.updateFx=function(t){var e=t._fullLayout,r=&quot;pan&quot;===e.dragmode?&quot;move&quot;:&quot;crosshair&quot;;o(e._draggers,r)}},{&quot;../../components/dragelement&quot;:662,&quot;../../components/fx&quot;:683,&quot;../../lib/setcursor&quot;:799,&quot;./constants&quot;:834,&quot;./dragbox&quot;:836,d3:169}],838:[function(t,e,r){&quot;use strict&quot;;e.exports={clearOutlineControllers:function(t){var e=t._fullLayout._zoomlayer;e&amp;&amp;e.selectAll(&quot;.outline-controllers&quot;).remove()},clearSelect:function(t){var e=t._fullLayout._zoomlayer;e&amp;&amp;e.selectAll(&quot;.select-outline&quot;).remove(),t._fullLayout._drawing=!1}}},{}],839:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).strTranslate;function i(t,e){switch(t.type){case&quot;log&quot;:return t.p2d(e);case&quot;date&quot;:return t.p2r(e,0,t.calendar);default:return t.p2r(e)}}e.exports={p2r:i,r2p:function(t,e){switch(t.type){case&quot;log&quot;:return t.d2p(e);case&quot;date&quot;:return t.r2p(e,0,t.calendar);default:return t.r2p(e)}},axValue:function(t){var e=&quot;y&quot;===t._id.charAt(0)?1:0;return function(r){return i(t,r[e])}},getTransform:function(t){return n(t.xaxis._offset,t.yaxis._offset)}}},{&quot;../../lib&quot;:778}],840:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./axis_ids&quot;);e.exports=function(t){return function(e,r){var o=e[t];if(Array.isArray(o))for(var s=n.subplotsRegistry.cartesian,l=s.idRegex,c=r._subplots,u=c.xaxis,f=c.yaxis,h=c.cartesian,p=r._has(&quot;cartesian&quot;)||r._has(&quot;gl2d&quot;),d=0;d&lt;o.length;d++){var g=o[d];if(i.isPlainObject(g)){var m=a.cleanId(g.xref,&quot;x&quot;,!1),v=a.cleanId(g.yref,&quot;y&quot;,!1),y=l.x.test(m),x=l.y.test(v);if(y||x){p||i.pushUnique(r._basePlotModules,s);var b=!1;y&amp;&amp;-1===u.indexOf(m)&amp;&amp;(u.push(m),b=!0),x&amp;&amp;-1===f.indexOf(v)&amp;&amp;(f.push(v),b=!0),b&amp;&amp;y&amp;&amp;x&amp;&amp;h.push(m+v)}}}}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./axis_ids&quot;:831}],841:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../plots&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../get_data&quot;).getModuleCalcData,c=t(&quot;./axis_ids&quot;),u=t(&quot;./constants&quot;),f=t(&quot;../../constants/xmlns_namespaces&quot;),h=a.ensureSingle;function p(t,e,r){return a.ensureSingle(t,e,r,(function(t){t.datum(r)}))}function d(t,e,r,a,o){for(var c,f,h,p=u.traceLayerClasses,d=t._fullLayout,g=d._modules,m=[],v=[],y=0;y&lt;g.length;y++){var x=(c=g[y]).name,b=i.modules[x].categories;if(b.svg){var _=c.layerName||x+&quot;layer&quot;,w=c.plot;h=(f=l(r,w))[0],r=f[1],h.length&amp;&amp;m.push({i:p.indexOf(_),className:_,plotMethod:w,cdModule:h}),b.zoomScale&amp;&amp;v.push(&quot;.&quot;+_)}}m.sort((function(t,e){return t.i-e.i}));var T=e.plot.selectAll(&quot;g.mlayer&quot;).data(m,(function(t){return t.className}));if(T.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return t.className})).classed(&quot;mlayer&quot;,!0).classed(&quot;rangeplot&quot;,e.isRangePlot),T.exit().remove(),T.order(),T.each((function(r){var i=n.select(this),l=r.className;r.plotMethod(t,e,r.cdModule,i,a,o),-1===u.clipOnAxisFalseQuery.indexOf(&quot;.&quot;+l)&amp;&amp;s.setClipUrl(i,e.layerClipId,t)})),d._has(&quot;scattergl&quot;)&amp;&amp;(c=i.getModule(&quot;scattergl&quot;),h=l(r,c)[0],c.plot(t,e,h)),!t._context.staticPlot&amp;&amp;(e._hasClipOnAxisFalse&amp;&amp;(e.clipOnAxisFalseTraces=e.plot.selectAll(u.clipOnAxisFalseQuery.join(&quot;,&quot;)).selectAll(&quot;.trace&quot;)),v.length)){var k=e.plot.selectAll(v.join(&quot;,&quot;)).selectAll(&quot;.trace&quot;);e.zoomScalePts=k.selectAll(&quot;path.point&quot;),e.zoomScaleTxt=k.selectAll(&quot;.textpoint&quot;)}}function g(t,e){var r=e.plotgroup,n=e.id,i=u.layerValue2layerClass[e.xaxis.layer],a=u.layerValue2layerClass[e.yaxis.layer],o=t._fullLayout._hasOnlyLargeSploms;if(e.mainplot){var s=e.mainplotinfo,l=s.plotgroup,f=n+&quot;-x&quot;,d=n+&quot;-y&quot;;e.gridlayer=s.gridlayer,e.zerolinelayer=s.zerolinelayer,h(s.overlinesBelow,&quot;path&quot;,f),h(s.overlinesBelow,&quot;path&quot;,d),h(s.overaxesBelow,&quot;g&quot;,f),h(s.overaxesBelow,&quot;g&quot;,d),e.plot=h(s.overplot,&quot;g&quot;,n),h(s.overlinesAbove,&quot;path&quot;,f),h(s.overlinesAbove,&quot;path&quot;,d),h(s.overaxesAbove,&quot;g&quot;,f),h(s.overaxesAbove,&quot;g&quot;,d),e.xlines=l.select(&quot;.overlines-&quot;+i).select(&quot;.&quot;+f),e.ylines=l.select(&quot;.overlines-&quot;+a).select(&quot;.&quot;+d),e.xaxislayer=l.select(&quot;.overaxes-&quot;+i).select(&quot;.&quot;+f),e.yaxislayer=l.select(&quot;.overaxes-&quot;+a).select(&quot;.&quot;+d)}else if(o)e.xlines=h(r,&quot;path&quot;,&quot;xlines-above&quot;),e.ylines=h(r,&quot;path&quot;,&quot;ylines-above&quot;),e.xaxislayer=h(r,&quot;g&quot;,&quot;xaxislayer-above&quot;),e.yaxislayer=h(r,&quot;g&quot;,&quot;yaxislayer-above&quot;);else{var g=h(r,&quot;g&quot;,&quot;layer-subplot&quot;);e.shapelayer=h(g,&quot;g&quot;,&quot;shapelayer&quot;),e.imagelayer=h(g,&quot;g&quot;,&quot;imagelayer&quot;),e.gridlayer=h(r,&quot;g&quot;,&quot;gridlayer&quot;),e.zerolinelayer=h(r,&quot;g&quot;,&quot;zerolinelayer&quot;),h(r,&quot;path&quot;,&quot;xlines-below&quot;),h(r,&quot;path&quot;,&quot;ylines-below&quot;),e.overlinesBelow=h(r,&quot;g&quot;,&quot;overlines-below&quot;),h(r,&quot;g&quot;,&quot;xaxislayer-below&quot;),h(r,&quot;g&quot;,&quot;yaxislayer-below&quot;),e.overaxesBelow=h(r,&quot;g&quot;,&quot;overaxes-below&quot;),e.plot=h(r,&quot;g&quot;,&quot;plot&quot;),e.overplot=h(r,&quot;g&quot;,&quot;overplot&quot;),e.xlines=h(r,&quot;path&quot;,&quot;xlines-above&quot;),e.ylines=h(r,&quot;path&quot;,&quot;ylines-above&quot;),e.overlinesAbove=h(r,&quot;g&quot;,&quot;overlines-above&quot;),h(r,&quot;g&quot;,&quot;xaxislayer-above&quot;),h(r,&quot;g&quot;,&quot;yaxislayer-above&quot;),e.overaxesAbove=h(r,&quot;g&quot;,&quot;overaxes-above&quot;),e.xlines=r.select(&quot;.xlines-&quot;+i),e.ylines=r.select(&quot;.ylines-&quot;+a),e.xaxislayer=r.select(&quot;.xaxislayer-&quot;+i),e.yaxislayer=r.select(&quot;.yaxislayer-&quot;+a)}o||(p(e.gridlayer,&quot;g&quot;,e.xaxis._id),p(e.gridlayer,&quot;g&quot;,e.yaxis._id),e.gridlayer.selectAll(&quot;g&quot;).map((function(t){return t[0]})).sort(c.idSort)),e.xlines.style(&quot;fill&quot;,&quot;none&quot;).classed(&quot;crisp&quot;,!0),e.ylines.style(&quot;fill&quot;,&quot;none&quot;).classed(&quot;crisp&quot;,!0)}function m(t,e){if(t){var r={};for(var i in t.each((function(t){var i=t[0];n.select(this).remove(),v(i,e),r[i]=!0})),e._plots)for(var a=e._plots[i].overlays||[],o=0;o&lt;a.length;o++){var s=a[o];r[s.id]&amp;&amp;s.plot.selectAll(&quot;.trace&quot;).remove()}}}function v(t,e){e._draggers.selectAll(&quot;g.&quot;+t).remove(),e._defs.select(&quot;#clip&quot;+e._uid+t+&quot;plot&quot;).remove()}r.name=&quot;cartesian&quot;,r.attr=[&quot;xaxis&quot;,&quot;yaxis&quot;],r.idRoot=[&quot;x&quot;,&quot;y&quot;],r.idRegex=u.idRegex,r.attrRegex=u.attrRegex,r.attributes=t(&quot;./attributes&quot;),r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.transitionAxes=t(&quot;./transition_axes&quot;),r.finalizeSubplots=function(t,e){var r,n,i,o=e._subplots,s=o.xaxis,l=o.yaxis,f=o.cartesian,h=f.concat(o.gl2d||[]),p={},d={};for(r=0;r&lt;h.length;r++){var g=h[r].split(&quot;y&quot;);p[g[0]]=1,d[&quot;y&quot;+g[1]]=1}for(r=0;r&lt;s.length;r++)p[n=s[r]]||(i=(t[c.id2name(n)]||{}).anchor,u.idRegex.y.test(i)||(i=&quot;y&quot;),f.push(n+i),h.push(n+i),d[i]||(d[i]=1,a.pushUnique(l,i)));for(r=0;r&lt;l.length;r++)d[i=l[r]]||(n=(t[c.id2name(i)]||{}).anchor,u.idRegex.x.test(n)||(n=&quot;x&quot;),f.push(n+i),h.push(n+i),p[n]||(p[n]=1,a.pushUnique(s,n)));if(!h.length){for(var m in n=&quot;&quot;,i=&quot;&quot;,t){if(u.attrRegex.test(m))&quot;x&quot;===m.charAt(0)?(!n||+m.substr(5)&lt;+n.substr(5))&amp;&amp;(n=m):(!i||+m.substr(5)&lt;+i.substr(5))&amp;&amp;(i=m)}n=n?c.name2id(n):&quot;x&quot;,i=i?c.name2id(i):&quot;y&quot;,s.push(n),l.push(i),f.push(n+i)}},r.plot=function(t,e,r,n){var i,a=t._fullLayout,o=a._subplots.cartesian,s=t.calcdata;if(!Array.isArray(e))for(e=[],i=0;i&lt;s.length;i++)e.push(i);for(i=0;i&lt;o.length;i++){for(var l,c=o[i],u=a._plots[c],f=[],h=0;h&lt;s.length;h++){var p=s[h],g=p[0].trace;g.xaxis+g.yaxis===c&amp;&amp;((-1!==e.indexOf(g.index)||g.carpet)&amp;&amp;(l&amp;&amp;l[0].trace.xaxis+l[0].trace.yaxis===c&amp;&amp;-1!==[&quot;tonextx&quot;,&quot;tonexty&quot;,&quot;tonext&quot;].indexOf(g.fill)&amp;&amp;-1===f.indexOf(l)&amp;&amp;f.push(l),f.push(p)),l=p)}d(t,u,f,r,n)}},r.clean=function(t,e,r,n){var i,a,o,s=n._plots||{},l=e._plots||{},u=n._subplots||{};if(n._hasOnlyLargeSploms&amp;&amp;!e._hasOnlyLargeSploms)for(o in s)(i=s[o]).plotgroup&amp;&amp;i.plotgroup.remove();var f=n._has&amp;&amp;n._has(&quot;gl&quot;),h=e._has&amp;&amp;e._has(&quot;gl&quot;);if(f&amp;&amp;!h)for(o in s)(i=s[o])._scene&amp;&amp;i._scene.destroy();if(u.xaxis&amp;&amp;u.yaxis){var p=c.listIds({_fullLayout:n});for(a=0;a&lt;p.length;a++){var d=p[a];e[c.id2name(d)]||n._infolayer.selectAll(&quot;.g-&quot;+d+&quot;title&quot;).remove()}}var g=n._has&amp;&amp;n._has(&quot;cartesian&quot;),y=e._has&amp;&amp;e._has(&quot;cartesian&quot;);if(g&amp;&amp;!y)m(n._cartesianlayer.selectAll(&quot;.subplot&quot;),n),n._defs.selectAll(&quot;.axesclip&quot;).remove(),delete n._axisConstraintGroups,delete n._axisMatchGroups;else if(u.cartesian)for(a=0;a&lt;u.cartesian.length;a++){var x=u.cartesian[a];if(!l[x]){var b=&quot;.&quot;+x+&quot;,.&quot;+x+&quot;-x,.&quot;+x+&quot;-y&quot;;n._cartesianlayer.selectAll(b).remove(),v(x,n)}}},r.drawFramework=function(t){var e=t._fullLayout,r=function(t){var e,r,n,i,a,o,s=t._fullLayout,l=s._subplots.cartesian,c=l.length,u=[],f=[];for(e=0;e&lt;c;e++){n=l[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var h=a._mainAxis,p=o._mainAxis,d=h._id+p._id,g=s._plots[d];i.overlays=[],d!==n&amp;&amp;g?(i.mainplot=d,i.mainplotinfo=g,f.push(n)):(i.mainplot=void 0,i.mainplotinfo=void 0,u.push(n))}for(e=0;e&lt;f.length;e++)n=f[e],(i=s._plots[n]).mainplotinfo.overlays.push(i);var m=u.concat(f),v=new Array(c);for(e=0;e&lt;c;e++){n=m[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var y=[n,a.layer,o.layer,a.overlaying||&quot;&quot;,o.overlaying||&quot;&quot;];for(r=0;r&lt;i.overlays.length;r++)y.push(i.overlays[r].id);v[e]=y}return v}(t),i=e._cartesianlayer.selectAll(&quot;.subplot&quot;).data(r,String);i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;subplot &quot;+t[0]})),i.order(),i.exit().call(m,e),i.each((function(r){var i=r[0],a=e._plots[i];a.plotgroup=n.select(this),g(t,a),a.draglayer=h(e._draggers,&quot;g&quot;,i)}))},r.rangePlot=function(t,e,r){g(t,e),d(t,e,r),o.style(t)},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(&quot;.svg-container&quot;);r.filter((function(t,e){return e===r.size()-1})).selectAll(&quot;.gl-canvas-context, .gl-canvas-focus&quot;).each((function(){var t=this.toDataURL(&quot;image/png&quot;);e.append(&quot;svg:image&quot;).attr({xmlns:f.svg,&quot;xlink:href&quot;:t,preserveAspectRatio:&quot;none&quot;,x:0,y:0,width:this.width,height:this.height})}))},r.updateFx=t(&quot;./graph_interact&quot;).updateFx},{&quot;../../components/drawing&quot;:665,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../get_data&quot;:865,&quot;../plots&quot;:891,&quot;./attributes&quot;:826,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./graph_interact&quot;:837,&quot;./layout_attributes&quot;:842,&quot;./layout_defaults&quot;:843,&quot;./transition_axes&quot;:852,d3:169}],842:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../font_attributes&quot;),i=t(&quot;../../components/color/attributes&quot;),a=t(&quot;../../components/drawing/attributes&quot;).dash,o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/plot_template&quot;).templatedArray,l=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,t(&quot;../../constants/docs&quot;).DATE_FORMAT_LINK,t(&quot;../../constants/numerical&quot;).ONEDAY),c=t(&quot;./constants&quot;),u=c.HOUR_PATTERN,f=c.WEEKDAY_PATTERN;e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},title:{text:{valType:&quot;string&quot;,editType:&quot;ticks&quot;},font:n({editType:&quot;ticks&quot;}),standoff:{valType:&quot;number&quot;,min:0,editType:&quot;ticks&quot;},editType:&quot;ticks&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;,&quot;multicategory&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;,_noTemplating:!0},autotypenumbers:{valType:&quot;enumerated&quot;,values:[&quot;convert types&quot;,&quot;strict&quot;],dflt:&quot;convert types&quot;,editType:&quot;calc&quot;},autorange:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],dflt:!0,editType:&quot;axrange&quot;,impliedEdits:{&quot;range[0]&quot;:void 0,&quot;range[1]&quot;:void 0}},rangemode:{valType:&quot;enumerated&quot;,values:[&quot;normal&quot;,&quot;tozero&quot;,&quot;nonnegative&quot;],dflt:&quot;normal&quot;,editType:&quot;plot&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;axrange&quot;,impliedEdits:{&quot;^autorange&quot;:!1},anim:!0},{valType:&quot;any&quot;,editType:&quot;axrange&quot;,impliedEdits:{&quot;^autorange&quot;:!1},anim:!0}],editType:&quot;axrange&quot;,impliedEdits:{autorange:!1},anim:!0},fixedrange:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},scaleanchor:{valType:&quot;enumerated&quot;,values:[c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;plot&quot;},scaleratio:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},constrain:{valType:&quot;enumerated&quot;,values:[&quot;range&quot;,&quot;domain&quot;],editType:&quot;plot&quot;},constraintoward:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;plot&quot;},matches:{valType:&quot;enumerated&quot;,values:[c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;calc&quot;},rangebreaks:s(&quot;rangebreak&quot;,{enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},bounds:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},pattern:{valType:&quot;enumerated&quot;,values:[f,u,&quot;&quot;],editType:&quot;calc&quot;},values:{valType:&quot;info_array&quot;,freeLength:!0,editType:&quot;calc&quot;,items:{valType:&quot;any&quot;,editType:&quot;calc&quot;}},dvalue:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0,dflt:l},editType:&quot;calc&quot;}),tickmode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;linear&quot;,&quot;array&quot;],editType:&quot;ticks&quot;,impliedEdits:{tick0:void 0,dtick:void 0}},nticks:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;ticks&quot;},tick0:{valType:&quot;any&quot;,editType:&quot;ticks&quot;,impliedEdits:{tickmode:&quot;linear&quot;}},dtick:{valType:&quot;any&quot;,editType:&quot;ticks&quot;,impliedEdits:{tickmode:&quot;linear&quot;}},tickvals:{valType:&quot;data_array&quot;,editType:&quot;ticks&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;ticks&quot;},ticks:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;&quot;],editType:&quot;ticks&quot;},tickson:{valType:&quot;enumerated&quot;,values:[&quot;labels&quot;,&quot;boundaries&quot;],dflt:&quot;labels&quot;,editType:&quot;ticks&quot;},ticklabelmode:{valType:&quot;enumerated&quot;,values:[&quot;instant&quot;,&quot;period&quot;],dflt:&quot;instant&quot;,editType:&quot;ticks&quot;},ticklabelposition:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;],dflt:&quot;outside&quot;,editType:&quot;calc&quot;},mirror:{valType:&quot;enumerated&quot;,values:[!0,&quot;ticks&quot;,!1,&quot;all&quot;,&quot;allticks&quot;],dflt:!1,editType:&quot;ticks+layoutstyle&quot;},ticklen:{valType:&quot;number&quot;,min:0,dflt:5,editType:&quot;ticks&quot;},tickwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks&quot;},tickcolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},showticklabels:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},automargin:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks&quot;},showspikes:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;modebar&quot;},spikecolor:{valType:&quot;color&quot;,dflt:null,editType:&quot;none&quot;},spikethickness:{valType:&quot;number&quot;,dflt:3,editType:&quot;none&quot;},spikedash:o({},a,{dflt:&quot;dash&quot;,editType:&quot;none&quot;}),spikemode:{valType:&quot;flaglist&quot;,flags:[&quot;toaxis&quot;,&quot;across&quot;,&quot;marker&quot;],dflt:&quot;toaxis&quot;,editType:&quot;none&quot;},spikesnap:{valType:&quot;enumerated&quot;,values:[&quot;data&quot;,&quot;cursor&quot;,&quot;hovered data&quot;],dflt:&quot;data&quot;,editType:&quot;none&quot;},tickfont:n({editType:&quot;ticks&quot;}),tickangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;ticks&quot;},tickprefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},showtickprefix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},ticksuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},showticksuffix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},showexponent:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},exponentformat:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;e&quot;,&quot;E&quot;,&quot;power&quot;,&quot;SI&quot;,&quot;B&quot;],dflt:&quot;B&quot;,editType:&quot;ticks&quot;},minexponent:{valType:&quot;number&quot;,dflt:3,min:0,editType:&quot;ticks&quot;},separatethousands:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks&quot;},tickformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},tickformatstops:s(&quot;tickformatstop&quot;,{enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},dtickrange:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;ticks&quot;},{valType:&quot;any&quot;,editType:&quot;ticks&quot;}],editType:&quot;ticks&quot;},value:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},editType:&quot;ticks&quot;}),hoverformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;none&quot;},showline:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks+layoutstyle&quot;},linecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;layoutstyle&quot;},linewidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks+layoutstyle&quot;},showgrid:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},gridcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;ticks&quot;},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks&quot;},zeroline:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},zerolinecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},zerolinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;ticks&quot;},showdividers:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},dividercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},dividerwidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;ticks&quot;},anchor:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;,c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;right&quot;],editType:&quot;plot&quot;},overlaying:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;,c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;plot&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;above traces&quot;,&quot;below traces&quot;],dflt:&quot;above traces&quot;,editType:&quot;plot&quot;},domain:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;}],dflt:[0,1],editType:&quot;plot&quot;},position:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;plot&quot;},categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;,&quot;total ascending&quot;,&quot;total descending&quot;,&quot;min ascending&quot;,&quot;min descending&quot;,&quot;max ascending&quot;,&quot;max descending&quot;,&quot;sum ascending&quot;,&quot;sum descending&quot;,&quot;mean ascending&quot;,&quot;mean descending&quot;,&quot;median ascending&quot;,&quot;median descending&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;,_deprecated:{autotick:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},title:{valType:&quot;string&quot;,editType:&quot;ticks&quot;},titlefont:n({editType:&quot;ticks&quot;})}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../components/drawing/attributes&quot;:664,&quot;../../constants/docs&quot;:748,&quot;../../constants/numerical&quot;:753,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../font_attributes&quot;:856,&quot;./constants&quot;:834}],843:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/fx/helpers&quot;).isUnifiedHover,o=t(&quot;../../components/fx/hovermode_defaults&quot;),s=t(&quot;../../plot_api/plot_template&quot;),l=t(&quot;../layout_attributes&quot;),c=t(&quot;./layout_attributes&quot;),u=t(&quot;./type_defaults&quot;),f=t(&quot;./axis_defaults&quot;),h=t(&quot;./constraints&quot;),p=t(&quot;./position_defaults&quot;),d=t(&quot;./axis_ids&quot;),g=d.id2name,m=d.name2id,v=t(&quot;./constants&quot;).AX_ID_PATTERN,y=t(&quot;../../registry&quot;),x=y.traceIs,b=y.getComponentMethod;function _(t,e,r){Array.isArray(t[e])?t[e].push(r):t[e]=[r]}e.exports=function(t,e,r){var y,w,T=e.autotypenumbers,k={},M={},A={},S={},E={},C={},L={},I={},P={},z={};for(y=0;y&lt;r.length;y++){var O=r[y];if(x(O,&quot;cartesian&quot;)||x(O,&quot;gl2d&quot;)){var D,R;if(O.xaxis)D=g(O.xaxis),_(k,D,O);else if(O.xaxes)for(w=0;w&lt;O.xaxes.length;w++)_(k,g(O.xaxes[w]),O);if(O.yaxis)R=g(O.yaxis),_(k,R,O);else if(O.yaxes)for(w=0;w&lt;O.yaxes.length;w++)_(k,g(O.yaxes[w]),O);if(&quot;funnel&quot;===O.type?&quot;h&quot;===O.orientation?(D&amp;&amp;(M[D]=!0),R&amp;&amp;(L[R]=!0)):R&amp;&amp;(A[R]=!0):&quot;image&quot;===O.type?(R&amp;&amp;(I[R]=!0),D&amp;&amp;(I[D]=!0)):(R&amp;&amp;(E[R]=!0,C[R]=!0),x(O,&quot;carpet&quot;)&amp;&amp;(&quot;carpet&quot;!==O.type||O._cheater)||D&amp;&amp;(S[D]=!0)),&quot;carpet&quot;===O.type&amp;&amp;O._cheater&amp;&amp;D&amp;&amp;(M[D]=!0),x(O,&quot;2dMap&quot;)&amp;&amp;(P[D]=!0,P[R]=!0),x(O,&quot;oriented&quot;))z[&quot;h&quot;===O.orientation?R:D]=!0}}var F=e._subplots,B=F.xaxis,N=F.yaxis,j=n.simpleMap(B,g),U=n.simpleMap(N,g),V=j.concat(U),q=i.background;B.length&amp;&amp;N.length&amp;&amp;(q=n.coerce(t,e,l,&quot;plot_bgcolor&quot;));var H,G,Y,W,X,Z=i.combine(q,e.paper_bgcolor);function J(){var t=k[H]||[];X._traceIndices=t.map((function(t){return t._expandedIndex})),X._annIndices=[],X._shapeIndices=[],X._imgIndices=[],X._subplotsWith=[],X._counterAxes=[],X._name=X._attr=H,X._id=G}function K(t,e){return n.coerce(W,X,c,t,e)}function Q(t,e){return n.coerce2(W,X,c,t,e)}function $(t){return&quot;x&quot;===t?N:B}function tt(e,r){for(var n=&quot;x&quot;===e?j:U,i=[],a=0;a&lt;n.length;a++){var o=n[a];o===r||(t[o]||{}).overlaying||i.push(m(o))}return i}var et={x:$(&quot;x&quot;),y:$(&quot;y&quot;)},rt=et.x.concat(et.y),nt={},it=[];function at(){var t=W.matches;v.test(t)&amp;&amp;-1===rt.indexOf(t)&amp;&amp;(nt[t]=W.type,it=Object.keys(nt))}var ot=o(t,e,r),st=a(ot);for(y=0;y&lt;V.length;y++){H=V[y],G=m(H),Y=H.charAt(0),n.isPlainObject(t[H])||(t[H]={}),W=t[H],X=s.newContainer(e,H,Y+&quot;axis&quot;),J();var lt=&quot;x&quot;===Y&amp;&amp;!S[H]&amp;&amp;M[H]||&quot;y&quot;===Y&amp;&amp;!E[H]&amp;&amp;A[H],ct=&quot;y&quot;===Y&amp;&amp;(!C[H]&amp;&amp;L[H]||I[H]),ut={letter:Y,font:e.font,outerTicks:P[H],showGrid:!z[H],data:k[H]||[],bgColor:Z,calendar:e.calendar,automargin:!0,visibleDflt:lt,reverseDflt:ct,autotypenumbersDflt:T,splomStash:((e._splomAxes||{})[Y]||{})[G]};K(&quot;uirevision&quot;,e.uirevision),u(W,X,K,ut),f(W,X,K,ut,e);var ft=st&amp;&amp;Y===ot.charAt(0),ht=Q(&quot;spikecolor&quot;,st?X.color:void 0),pt=Q(&quot;spikethickness&quot;,st?1.5:void 0),dt=Q(&quot;spikedash&quot;,st?&quot;dot&quot;:void 0),gt=Q(&quot;spikemode&quot;,st?&quot;across&quot;:void 0),mt=Q(&quot;spikesnap&quot;,st?&quot;hovered data&quot;:void 0);K(&quot;showspikes&quot;,!!(ft||ht||pt||dt||gt||mt))||(delete X.spikecolor,delete X.spikethickness,delete X.spikedash,delete X.spikemode,delete X.spikesnap),p(W,X,K,{letter:Y,counterAxes:et[Y],overlayableAxes:tt(Y,H),grid:e.grid}),K(&quot;title.standoff&quot;),at(),X._input=W}for(y=0;y&lt;it.length;){G=it[y++],Y=(H=g(G)).charAt(0),n.isPlainObject(t[H])||(t[H]={}),W=t[H],X=s.newContainer(e,H,Y+&quot;axis&quot;),J();var vt={letter:Y,font:e.font,outerTicks:P[H],showGrid:!z[H],data:[],bgColor:Z,calendar:e.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:T,splomStash:((e._splomAxes||{})[Y]||{})[G]};K(&quot;uirevision&quot;,e.uirevision),X.type=nt[G]||&quot;linear&quot;,f(W,X,K,vt,e),p(W,X,K,{letter:Y,counterAxes:et[Y],overlayableAxes:tt(Y,H),grid:e.grid}),K(&quot;fixedrange&quot;),at(),X._input=W}var yt=b(&quot;rangeslider&quot;,&quot;handleDefaults&quot;),xt=b(&quot;rangeselector&quot;,&quot;handleDefaults&quot;);for(y=0;y&lt;j.length;y++)H=j[y],W=t[H],X=e[H],yt(t,e,H),&quot;date&quot;===X.type&amp;&amp;xt(W,X,e,U,X.calendar),K(&quot;fixedrange&quot;);for(y=0;y&lt;U.length;y++){H=U[y],W=t[H],X=e[H];var bt=e[g(X.anchor)];K(&quot;fixedrange&quot;,b(&quot;rangeslider&quot;,&quot;isVisible&quot;)(bt))}h.handleDefaults(t,e,{axIds:rt.concat(it).sort(d.idSort),axHasImage:I})}},{&quot;../../components/color&quot;:643,&quot;../../components/fx/helpers&quot;:679,&quot;../../components/fx/hovermode_defaults&quot;:682,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../registry&quot;:911,&quot;../layout_attributes&quot;:882,&quot;./axis_defaults&quot;:830,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./constraints&quot;:835,&quot;./layout_attributes&quot;:842,&quot;./position_defaults&quot;:845,&quot;./type_defaults&quot;:853}],844:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;).mix,i=t(&quot;../../components/color/attributes&quot;).lightFraction,a=t(&quot;../../lib&quot;);e.exports=function(t,e,r,o){var s=(o=o||{}).dfltColor;function l(r,n){return a.coerce2(t,e,o.attributes,r,n)}var c=l(&quot;linecolor&quot;,s),u=l(&quot;linewidth&quot;);r(&quot;showline&quot;,o.showLine||!!c||!!u)||(delete e.linecolor,delete e.linewidth);var f=l(&quot;gridcolor&quot;,n(s,o.bgColor,o.blend||i).toRgbString()),h=l(&quot;gridwidth&quot;);if(r(&quot;showgrid&quot;,o.showGrid||!!f||!!h)||(delete e.gridcolor,delete e.gridwidth),!o.noZeroLine){var p=l(&quot;zerolinecolor&quot;,s),d=l(&quot;zerolinewidth&quot;);r(&quot;zeroline&quot;,o.showGrid||!!p||!!d)||(delete e.zerolinecolor,delete e.zerolinewidth)}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib&quot;:778,tinycolor2:576}],845:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o,s,l,c,u=a.counterAxes||[],f=a.overlayableAxes||[],h=a.letter,p=a.grid;p&amp;&amp;(s=p._domains[h][p._axisMap[e._id]],o=p._anchors[e._id],s&amp;&amp;(l=p[h+&quot;side&quot;].split(&quot; &quot;)[0],c=p.domain[h][&quot;right&quot;===l||&quot;top&quot;===l?1:0])),s=s||[0,1],o=o||(n(t.position)?&quot;free&quot;:u[0]||&quot;free&quot;),l=l||(&quot;x&quot;===h?&quot;bottom&quot;:&quot;left&quot;),c=c||0,&quot;free&quot;===i.coerce(t,e,{anchor:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;].concat(u),dflt:o}},&quot;anchor&quot;)&amp;&amp;r(&quot;position&quot;,c),i.coerce(t,e,{side:{valType:&quot;enumerated&quot;,values:&quot;x&quot;===h?[&quot;bottom&quot;,&quot;top&quot;]:[&quot;left&quot;,&quot;right&quot;],dflt:l}},&quot;side&quot;);var d=!1;if(f.length&amp;&amp;(d=i.coerce(t,e,{overlaying:{valType:&quot;enumerated&quot;,values:[!1].concat(f),dflt:!1}},&quot;overlaying&quot;)),!d){var g=r(&quot;domain&quot;,s);g[0]&gt;g[1]-1/4096&amp;&amp;(e.domain=s),i.noneOrAll(t.domain,e.domain,s)}return r(&quot;layer&quot;),e}},{&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],846:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/alignment&quot;).FROM_BL;e.exports=function(t,e,r){void 0===r&amp;&amp;(r=n[t.constraintoward||&quot;center&quot;]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*r;t.range=t._input.range=[t.l2r(a+(i[0]-a)*e),t.l2r(a+(i[1]-a)*e)],t.setScale()}},{&quot;../../constants/alignment&quot;:745}],847:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;polybooljs&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/drawing&quot;).dashStyle,o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;../../components/fx/helpers&quot;).makeEventData,c=t(&quot;../../components/dragelement/helpers&quot;),u=c.freeMode,f=c.rectMode,h=c.drawMode,p=c.openMode,d=c.selectMode,g=t(&quot;../../components/shapes/draw_newshape/display_outlines&quot;),m=t(&quot;../../components/shapes/draw_newshape/helpers&quot;).handleEllipse,v=t(&quot;../../components/shapes/draw_newshape/newshapes&quot;),y=t(&quot;../../lib&quot;),x=t(&quot;../../lib/polygon&quot;),b=t(&quot;../../lib/throttle&quot;),_=t(&quot;./axis_ids&quot;).getFromId,w=t(&quot;../../lib/clear_gl_canvases&quot;),T=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,k=t(&quot;./constants&quot;),M=k.MINSELECT,A=x.filter,S=x.tester,E=t(&quot;./handle_outline&quot;).clearSelect,C=t(&quot;./helpers&quot;),L=C.p2r,I=C.axValue,P=C.getTransform;function z(t,e,r,n,i,a,o){var s,l,c,u,f,h,d,m,v,y=e._hoverdata,x=e._fullLayout.clickmode.indexOf(&quot;event&quot;)&gt;-1,b=[];if(function(t){return t&amp;&amp;Array.isArray(t)&amp;&amp;!0!==t[0].hoverOnBox}(y)){F(t,e,a);var _=function(t,e){var r,n,i=t[0],a=-1,o=[];for(n=0;n&lt;e.length;n++)if(r=e[n],i.fullData._expandedIndex===r.cd[0].trace._expandedIndex){if(!0===i.hoverOnBox)break;void 0!==i.pointNumber?a=i.pointNumber:void 0!==i.binNumber&amp;&amp;(a=i.binNumber,o=i.pointNumbers);break}return{pointNumber:a,pointNumbers:o,searchInfo:r}}(y,s=N(e,r,n,i));if(_.pointNumbers.length&gt;0?function(t,e){var r,n,i,a=[];for(i=0;i&lt;t.length;i++)(r=t[i]).cd[0].trace.selectedpoints&amp;&amp;r.cd[0].trace.selectedpoints.length&gt;0&amp;&amp;a.push(r);if(1===a.length&amp;&amp;a[0]===e.searchInfo&amp;&amp;(n=e.searchInfo.cd[0].trace).selectedpoints.length===e.pointNumbers.length){for(i=0;i&lt;e.pointNumbers.length;i++)if(n.selectedpoints.indexOf(e.pointNumbers[i])&lt;0)return!1;return!0}return!1}(s,_):function(t){var e,r,n,i=0;for(n=0;n&lt;t.length;n++)if(e=t[n],(r=e.cd[0].trace).selectedpoints){if(r.selectedpoints.length&gt;1)return!1;if((i+=r.selectedpoints.length)&gt;1)return!1}return 1===i}(s)&amp;&amp;(h=j(_))){for(o&amp;&amp;o.remove(),v=0;v&lt;s.length;v++)(l=s[v])._module.selectPoints(l,!1);U(e,s),B(a),x&amp;&amp;e.emit(&quot;plotly_deselect&quot;,null)}else{for(d=t.shiftKey&amp;&amp;(void 0!==h?h:j(_)),c=function(t,e,r){return{pointNumber:t,searchInfo:e,subtract:r}}(_.pointNumber,_.searchInfo,d),u=R(a.selectionDefs.concat([c])),v=0;v&lt;s.length;v++)if(f=V(s[v]._module.selectPoints(s[v],u),s[v]),b.length)for(var w=0;w&lt;f.length;w++)b.push(f[w]);else b=f;if(U(e,s,m={points:b}),c&amp;&amp;a&amp;&amp;a.selectionDefs.push(c),o){var T=a.mergedPolygons,k=p(a.dragmode);g(q(T,k),o,a)}x&amp;&amp;e.emit(&quot;plotly_selected&quot;,m)}}}function O(t){return&quot;pointNumber&quot;in t&amp;&amp;&quot;searchInfo&quot;in t}function D(t){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(e,r,n,i){var a=t.searchInfo.cd[0].trace._expandedIndex;return i.cd[0].trace._expandedIndex===a&amp;&amp;n===t.pointNumber},isRect:!1,degenerate:!1,subtract:t.subtract}}function R(t){for(var e=[],r=O(t[0])?0:t[0][0][0],n=r,i=O(t[0])?0:t[0][0][1],a=i,o=0;o&lt;t.length;o++)if(O(t[o]))e.push(D(t[o]));else{var s=x.tester(t[o]);s.subtract=t[o].subtract,e.push(s),r=Math.min(r,s.xmin),n=Math.max(n,s.xmax),i=Math.min(i,s.ymin),a=Math.max(a,s.ymax)}return{xmin:r,xmax:n,ymin:i,ymax:a,pts:[],contains:function(t,r,n,i){for(var a=!1,o=0;o&lt;e.length;o++)e[o].contains(t,r,n,i)&amp;&amp;(a=!1===e[o].subtract);return a},isRect:!1,degenerate:!1}}function F(t,e,r){e._fullLayout._drawing=!1;var n=e._fullLayout,i=r.plotinfo,a=r.dragmode,o=n._lastSelectedSubplot&amp;&amp;n._lastSelectedSubplot===i.id,s=(t.shiftKey||t.altKey)&amp;&amp;!(h(a)&amp;&amp;p(a));o&amp;&amp;s&amp;&amp;i.selection&amp;&amp;i.selection.selectionDefs&amp;&amp;!r.selectionDefs?(r.selectionDefs=i.selection.selectionDefs,r.mergedPolygons=i.selection.mergedPolygons):s&amp;&amp;i.selection||B(r),o||(E(e),n._lastSelectedSubplot=i.id)}function B(t){var e=t.dragmode,r=t.plotinfo,n=t.gd;if(n._fullLayout._activeShapeIndex&gt;=0&amp;&amp;n._fullLayout._deactivateShape(n),h(e)){var a=n._fullLayout._zoomlayer.selectAll(&quot;.select-outline-&quot;+r.id);if(a&amp;&amp;n._fullLayout._drawing){var o=v(a,t);o&amp;&amp;i.call(&quot;_guiRelayout&quot;,n,{shapes:o}),n._fullLayout._drawing=!1}}r.selection={},r.selection.selectionDefs=t.selectionDefs=[],r.selection.mergedPolygons=t.mergedPolygons=[]}function N(t,e,r,n){var i,a,o,s=[],l=e.map((function(t){return t._id})),c=r.map((function(t){return t._id}));for(o=0;o&lt;t.calcdata.length;o++)if(!0===(a=(i=t.calcdata[o])[0].trace).visible&amp;&amp;a._module&amp;&amp;a._module.selectPoints)if(!n||a.subplot!==n&amp;&amp;a.geo!==n)if(&quot;splom&quot;===a.type&amp;&amp;a._xaxes[l[0]]&amp;&amp;a._yaxes[c[0]]){var u=h(a._module,i,e[0],r[0]);u.scene=t._fullLayout._splomScenes[a.uid],s.push(u)}else if(&quot;sankey&quot;===a.type){var f=h(a._module,i,e[0],r[0]);s.push(f)}else{if(-1===l.indexOf(a.xaxis))continue;if(-1===c.indexOf(a.yaxis))continue;s.push(h(a._module,i,_(t,a.xaxis),_(t,a.yaxis)))}else s.push(h(a._module,i,e[0],r[0]));return s;function h(t,e,r,n){return{_module:t,cd:e,xaxis:r,yaxis:n}}}function j(t){var e=t.searchInfo.cd[0].trace,r=t.pointNumber,n=t.pointNumbers,i=n.length&gt;0?n[0]:r;return!!e.selectedpoints&amp;&amp;e.selectedpoints.indexOf(i)&gt;-1}function U(t,e,r){var n,a,o,s;for(n=0;n&lt;e.length;n++){var l=e[n].cd[0].trace._fullInput,c=t._fullLayout._tracePreGUI[l.uid]||{};void 0===c.selectedpoints&amp;&amp;(c.selectedpoints=l._input.selectedpoints||null)}if(r){var u=r.points||[];for(n=0;n&lt;e.length;n++)(s=e[n].cd[0].trace)._input.selectedpoints=s._fullInput.selectedpoints=[],s._fullInput!==s&amp;&amp;(s.selectedpoints=[]);for(n=0;n&lt;u.length;n++){var f=u[n],h=f.data,p=f.fullData;f.pointIndices?([].push.apply(h.selectedpoints,f.pointIndices),s._fullInput!==s&amp;&amp;[].push.apply(p.selectedpoints,f.pointIndices)):(h.selectedpoints.push(f.pointIndex),s._fullInput!==s&amp;&amp;p.selectedpoints.push(f.pointIndex))}}else for(n=0;n&lt;e.length;n++)delete(s=e[n].cd[0].trace).selectedpoints,delete s._input.selectedpoints,s._fullInput!==s&amp;&amp;delete s._fullInput.selectedpoints;var d=!1;for(n=0;n&lt;e.length;n++){s=(o=(a=e[n]).cd)[0].trace,i.traceIs(s,&quot;regl&quot;)&amp;&amp;(d=!0);var g=a._module,m=g.styleOnSelect||g.style;m&amp;&amp;(m(t,o,o[0].node3),o[0].nodeRangePlot3&amp;&amp;m(t,o,o[0].nodeRangePlot3))}d&amp;&amp;(w(t),T(t))}function V(t,e){if(Array.isArray(t))for(var r=e.cd,n=e.cd[0].trace,i=0;i&lt;t.length;i++)t[i]=l(t[i],n,r);return t}function q(t,e){for(var r=[],n=0;n&lt;t.length;n++){r[n]=[];for(var i=0;i&lt;t[n].length;i++){r[n][i]=[],r[n][i][0]=i?&quot;L&quot;:&quot;M&quot;;for(var a=0;a&lt;t[n][i].length;a++)r[n][i].push(t[n][i][a])}e||r[n].push([&quot;Z&quot;,r[n][0][1],r[n][0][2]])}return r}e.exports={prepSelect:function(t,e,r,i,l){var c=u(l),v=f(l),x=p(l),_=h(l),w=d(l),T=&quot;drawcircle&quot;===l,E=&quot;drawline&quot;===l||T,C=i.gd,O=C._fullLayout,D=O._zoomlayer,j=i.element.getBoundingClientRect(),H=i.plotinfo,G=P(H),Y=e-j.left,W=r-j.top;O._calcInverseTransform(C);var X=y.apply3DTransform(O._invTransform)(Y,W);Y=X[0],W=X[1];var Z,J,K,Q,$,tt,et,rt=O._invScaleX,nt=O._invScaleY,it=Y,at=W,ot=&quot;M&quot;+Y+&quot;,&quot;+W,st=i.xaxes[0]._length,lt=i.yaxes[0]._length,ct=i.xaxes.concat(i.yaxes),ut=t.altKey&amp;&amp;!(h(l)&amp;&amp;x);F(t,C,i),c&amp;&amp;(Z=A([[Y,W]],k.BENDPX));var ft=D.selectAll(&quot;path.select-outline-&quot;+H.id).data(_?[0]:[1,2]),ht=O.newshape;ft.enter().append(&quot;path&quot;).attr(&quot;class&quot;,(function(t){return&quot;select-outline select-outline-&quot;+t+&quot; select-outline-&quot;+H.id})).style(_?{opacity:ht.opacity/2,fill:x?void 0:ht.fillcolor,stroke:ht.line.color,&quot;stroke-dasharray&quot;:a(ht.line.dash,ht.line.width),&quot;stroke-width&quot;:ht.line.width+&quot;px&quot;}:{}).attr(&quot;fill-rule&quot;,ht.fillrule).classed(&quot;cursor-move&quot;,!!_).attr(&quot;transform&quot;,G).attr(&quot;d&quot;,ot+&quot;Z&quot;);var pt,dt=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).style({fill:o.background,stroke:o.defaultLine,&quot;stroke-width&quot;:1}).attr(&quot;transform&quot;,G).attr(&quot;d&quot;,&quot;M0,0Z&quot;),gt=O._uid+k.SELECTID,mt=[],vt=N(C,i.xaxes,i.yaxes,i.subplot);function yt(t,e){return t-e}pt=H.fillRangeItems?H.fillRangeItems:v?function(t,e){var r=t.range={};for($=0;$&lt;ct.length;$++){var n=ct[$],i=n._id.charAt(0);r[n._id]=[L(n,e[i+&quot;min&quot;]),L(n,e[i+&quot;max&quot;])].sort(yt)}}:function(t,e,r){var n=t.lassoPoints={};for($=0;$&lt;ct.length;$++){var i=ct[$];n[i._id]=r.filtered.map(I(i))}},i.moveFn=function(t,e){it=Math.max(0,Math.min(st,rt*t+Y)),at=Math.max(0,Math.min(lt,nt*e+W));var r=Math.abs(it-Y),a=Math.abs(at-W);if(v){var o,s,l;if(w){var u=O.selectdirection;switch(o=&quot;any&quot;===u?a&lt;Math.min(.6*r,M)?&quot;h&quot;:r&lt;Math.min(.6*a,M)?&quot;v&quot;:&quot;d&quot;:u){case&quot;h&quot;:s=T?lt/2:0,l=lt;break;case&quot;v&quot;:s=T?st/2:0,l=st}}if(_)switch(O.newshape.drawdirection){case&quot;vertical&quot;:o=&quot;h&quot;,s=T?lt/2:0,l=lt;break;case&quot;horizontal&quot;:o=&quot;v&quot;,s=T?st/2:0,l=st;break;case&quot;ortho&quot;:r&lt;a?(o=&quot;h&quot;,s=W,l=at):(o=&quot;v&quot;,s=Y,l=it);break;default:o=&quot;d&quot;}&quot;h&quot;===o?((Q=E?m(T,[it,s],[it,l]):[[Y,s],[Y,l],[it,l],[it,s]]).xmin=E?it:Math.min(Y,it),Q.xmax=E?it:Math.max(Y,it),Q.ymin=Math.min(s,l),Q.ymax=Math.max(s,l),dt.attr(&quot;d&quot;,&quot;M&quot;+Q.xmin+&quot;,&quot;+(W-M)+&quot;h-4v&quot;+2*M+&quot;h4ZM&quot;+(Q.xmax-1)+&quot;,&quot;+(W-M)+&quot;h4v&quot;+2*M+&quot;h-4Z&quot;)):&quot;v&quot;===o?((Q=E?m(T,[s,at],[l,at]):[[s,W],[s,at],[l,at],[l,W]]).xmin=Math.min(s,l),Q.xmax=Math.max(s,l),Q.ymin=E?at:Math.min(W,at),Q.ymax=E?at:Math.max(W,at),dt.attr(&quot;d&quot;,&quot;M&quot;+(Y-M)+&quot;,&quot;+Q.ymin+&quot;v-4h&quot;+2*M+&quot;v4ZM&quot;+(Y-M)+&quot;,&quot;+(Q.ymax-1)+&quot;v4h&quot;+2*M+&quot;v-4Z&quot;)):&quot;d&quot;===o&amp;&amp;((Q=E?m(T,[Y,W],[it,at]):[[Y,W],[Y,at],[it,at],[it,W]]).xmin=Math.min(Y,it),Q.xmax=Math.max(Y,it),Q.ymin=Math.min(W,at),Q.ymax=Math.max(W,at),dt.attr(&quot;d&quot;,&quot;M0,0Z&quot;))}else c&amp;&amp;(Z.addPt([it,at]),Q=Z.filtered);i.selectionDefs&amp;&amp;i.selectionDefs.length?(K=function(t,e,r){if(r)return n.difference({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions;return n.union({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions}(i.mergedPolygons,Q,ut),Q.subtract=ut,J=R(i.selectionDefs.concat([Q]))):(K=[Q],J=S(Q)),g(q(K,x),ft,i),w&amp;&amp;b.throttle(gt,k.SELECTDELAY,(function(){var t;mt=[];var e,r=[];for($=0;$&lt;vt.length;$++)if(e=(tt=vt[$])._module.selectPoints(tt,J),r.push(e),t=V(e,tt),mt.length)for(var n=0;n&lt;t.length;n++)mt.push(t[n]);else mt=t;U(C,vt,et={points:mt}),pt(et,Q,Z),i.gd.emit(&quot;plotly_selecting&quot;,et)}))},i.clickFn=function(t,e){if(dt.remove(),C._fullLayout._activeShapeIndex&gt;=0)C._fullLayout._deactivateShape(C);else if(!_){var r=O.clickmode;b.done(gt).then((function(){if(b.clear(gt),2===t){for(ft.remove(),$=0;$&lt;vt.length;$++)(tt=vt[$])._module.selectPoints(tt,!1);U(C,vt),B(i),C.emit(&quot;plotly_deselect&quot;,null)}else r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;z(e,C,i.xaxes,i.yaxes,i.subplot,i,ft),&quot;event&quot;===r&amp;&amp;C.emit(&quot;plotly_selected&quot;,void 0);s.click(C,e)})).catch(y.error)}},i.doneFn=function(){dt.remove(),b.done(gt).then((function(){b.clear(gt),i.gd.emit(&quot;plotly_selected&quot;,et),Q&amp;&amp;i.selectionDefs&amp;&amp;(Q.subtract=ut,i.selectionDefs.push(Q),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,K)),i.doneFnCompleted&amp;&amp;i.doneFnCompleted(mt)})).catch(y.error),_&amp;&amp;B(i)}},clearSelect:E,clearSelectionsCache:B,selectOnClick:z}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../components/fx/helpers&quot;:679,&quot;../../components/shapes/draw_newshape/display_outlines&quot;:728,&quot;../../components/shapes/draw_newshape/helpers&quot;:729,&quot;../../components/shapes/draw_newshape/newshapes&quot;:730,&quot;../../lib&quot;:778,&quot;../../lib/clear_gl_canvases&quot;:762,&quot;../../lib/polygon&quot;:790,&quot;../../lib/throttle&quot;:804,&quot;../../plot_api/subroutines&quot;:818,&quot;../../registry&quot;:911,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./handle_outline&quot;:838,&quot;./helpers&quot;:839,polybooljs:517}],848:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-time-format&quot;).utcFormat,a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../lib&quot;),s=o.cleanNumber,l=o.ms2DateTime,c=o.dateTime2ms,u=o.ensureNumber,f=o.isArrayOrTypedArray,h=t(&quot;../../constants/numerical&quot;),p=h.FP_SAFE,d=h.BADNUM,g=h.LOG_CLIP,m=h.ONEWEEK,v=h.ONEDAY,y=h.ONEHOUR,x=h.ONEMIN,b=h.ONESEC,_=t(&quot;./axis_ids&quot;),w=t(&quot;./constants&quot;),T=w.HOUR_PATTERN,k=w.WEEKDAY_PATTERN;function M(t){return Math.pow(10,t)}function A(t){return null!=t}e.exports=function(t,e){e=e||{};var r=t._id||&quot;x&quot;,h=r.charAt(0);function S(e,r){if(e&gt;0)return Math.log(e)/Math.LN10;if(e&lt;=0&amp;&amp;r&amp;&amp;t.range&amp;&amp;2===t.range.length){var n=t.range[0],i=t.range[1];return.5*(n+i-2*g*Math.abs(n-i))}return d}function E(e,r,n,i){if((i||{}).msUTC&amp;&amp;a(e))return+e;var s=c(e,n||t.calendar);if(s===d){if(!a(e))return d;e=+e;var l=Math.floor(10*o.mod(e+.05,1)),u=Math.round(e-l/10);s=c(new Date(u))+l/10}return s}function C(e,r,n){return l(e,r,n||t.calendar)}function L(e){return t._categories[Math.round(e)]}function I(e){if(A(e)){if(void 0===t._categoriesMap&amp;&amp;(t._categoriesMap={}),void 0!==t._categoriesMap[e])return t._categoriesMap[e];t._categories.push(&quot;number&quot;==typeof e?String(e):e);var r=t._categories.length-1;return t._categoriesMap[e]=r,r}return d}function P(e){if(t._categoriesMap)return t._categoriesMap[e]}function z(t){var e=P(t);return void 0!==e?e:a(t)?+t:void 0}function O(t){return a(t)?+t:P(t)}function D(t,e,r){return n.round(r+e*t,2)}function R(t,e,r){return(t-r)/e}var F=function(e){return a(e)?D(e,t._m,t._b):d},B=function(e){return R(e,t._m,t._b)};if(t.rangebreaks){var N=&quot;y&quot;===h;F=function(e){if(!a(e))return d;var r=t._rangebreaks.length;if(!r)return D(e,t._m,t._b);var n=N;t.range[0]&gt;t.range[1]&amp;&amp;(n=!n);for(var i=n?-1:1,o=i*e,s=0,l=0;l&lt;r;l++){var c=i*t._rangebreaks[l].min,u=i*t._rangebreaks[l].max;if(o&lt;c)break;if(!(o&gt;u)){s=o&lt;(c+u)/2?l:l+1;break}s=l+1}var f=t._B[s]||0;return isFinite(f)?D(e,t._m2,f):0},B=function(e){var r=t._rangebreaks.length;if(!r)return R(e,t._m,t._b);for(var n=0,i=0;i&lt;r&amp;&amp;!(e&lt;t._rangebreaks[i].pmin);i++)e&gt;t._rangebreaks[i].pmax&amp;&amp;(n=i+1);return R(e,t._m2,t._B[n])}}t.c2l=&quot;log&quot;===t.type?S:u,t.l2c=&quot;log&quot;===t.type?M:u,t.l2p=F,t.p2l=B,t.c2p=&quot;log&quot;===t.type?function(t,e){return F(S(t,e))}:F,t.p2c=&quot;log&quot;===t.type?function(t){return M(B(t))}:B,-1!==[&quot;linear&quot;,&quot;-&quot;].indexOf(t.type)?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=s,t.c2d=t.c2r=t.l2d=t.l2r=u,t.d2p=t.r2p=function(e){return t.l2p(s(e))},t.p2d=t.p2r=B,t.cleanPos=u):&quot;log&quot;===t.type?(t.d2r=t.d2l=function(t,e){return S(s(t),e)},t.r2d=t.r2c=function(t){return M(s(t))},t.d2c=t.r2l=s,t.c2d=t.l2r=u,t.c2r=S,t.l2d=M,t.d2p=function(e,r){return t.l2p(t.d2r(e,r))},t.p2d=function(t){return M(B(t))},t.r2p=function(e){return t.l2p(s(e))},t.p2r=B,t.cleanPos=u):&quot;date&quot;===t.type?(t.d2r=t.r2d=o.identity,t.d2c=t.r2c=t.d2l=t.r2l=E,t.c2d=t.c2r=t.l2d=t.l2r=C,t.d2p=t.r2p=function(e,r,n){return t.l2p(E(e,0,n))},t.p2d=t.p2r=function(t,e,r){return C(B(t),e,r)},t.cleanPos=function(e){return o.cleanDate(e,d,t.calendar)}):&quot;category&quot;===t.type?(t.d2c=t.d2l=I,t.r2d=t.c2d=t.l2d=L,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=O(e);return void 0!==r?r:t.fraction2r(.5)},t.l2r=t.c2r=u,t.r2l=O,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return L(B(t))},t.r2p=t.d2p,t.p2r=B,t.cleanPos=function(t){return&quot;string&quot;==typeof t&amp;&amp;&quot;&quot;!==t?t:u(t)}):&quot;multicategory&quot;===t.type&amp;&amp;(t.r2d=t.c2d=t.l2d=L,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=z(e);return void 0!==r?r:t.fraction2r(.5)},t.r2c_just_indices=P,t.l2r=t.c2r=u,t.r2l=z,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return L(B(t))},t.r2p=t.d2p,t.p2r=B,t.cleanPos=function(t){return Array.isArray(t)||&quot;string&quot;==typeof t&amp;&amp;&quot;&quot;!==t?t:u(t)},t.setupMultiCategory=function(n){var i,a,s=t._traceIndices,l=t._matchGroup;if(l&amp;&amp;0===t._categories.length)for(var c in l)if(c!==r){var u=e[_.id2name(c)];s=s.concat(u._traceIndices)}var p=[[0,{}],[0,{}]],d=[];for(i=0;i&lt;s.length;i++){var g=n[s[i]];if(h in g){var m=g[h],v=g._length||o.minRowLength(m);if(f(m[0])&amp;&amp;f(m[1]))for(a=0;a&lt;v;a++){var y=m[0][a],x=m[1][a];A(y)&amp;&amp;A(x)&amp;&amp;(d.push([y,x]),y in p[0][1]||(p[0][1][y]=p[0][0]++),x in p[1][1]||(p[1][1][x]=p[1][0]++))}}}for(d.sort((function(t,e){var r=p[0][1],n=r[t[0]]-r[e[0]];if(n)return n;var i=p[1][1];return i[t[1]]-i[e[1]]})),i=0;i&lt;d.length;i++)I(d[i])}),t.fraction2r=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return t.l2r(r+e*(n-r))},t.r2fraction=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return(t.r2l(e)-r)/(n-r)},t.cleanRange=function(e,r){r||(r={}),e||(e=&quot;range&quot;);var n,i,s=o.nestedProperty(t,e).get();if(i=(i=&quot;date&quot;===t.type?o.dfltRange(t.calendar):&quot;y&quot;===h?w.DFLTRANGEY:r.dfltRange||w.DFLTRANGEX).slice(),&quot;tozero&quot;!==t.rangemode&amp;&amp;&quot;nonnegative&quot;!==t.rangemode||(i[0]=0),s&amp;&amp;2===s.length)for(&quot;date&quot;!==t.type||t.autorange||(s[0]=o.cleanDate(s[0],d,t.calendar),s[1]=o.cleanDate(s[1],d,t.calendar)),n=0;n&lt;2;n++)if(&quot;date&quot;===t.type){if(!o.isDateTime(s[n],t.calendar)){t[e]=i;break}if(t.r2l(s[0])===t.r2l(s[1])){var l=o.constrain(t.r2l(s[0]),o.MIN_MS+1e3,o.MAX_MS-1e3);s[0]=t.l2r(l-1e3),s[1]=t.l2r(l+1e3);break}}else{if(!a(s[n])){if(!a(s[1-n])){t[e]=i;break}s[n]=s[1-n]*(n?10:.1)}if(s[n]&lt;-p?s[n]=-p:s[n]&gt;p&amp;&amp;(s[n]=p),s[0]===s[1]){var c=Math.max(1,Math.abs(1e-6*s[0]));s[0]-=c,s[1]+=c}}else o.nestedProperty(t,e).set(i)},t.setScale=function(r){var n=e._size;if(t.overlaying){var i=_.getFromId({_fullLayout:e},t.overlaying);t.domain=i.domain}var a=r&amp;&amp;t._r?&quot;_r&quot;:&quot;range&quot;,o=t.calendar;t.cleanRange(a);var s,l,c=t.r2l(t[a][0],o),u=t.r2l(t[a][1],o),f=&quot;y&quot;===h;if((f?(t._offset=n.t+(1-t.domain[1])*n.h,t._length=n.h*(t.domain[1]-t.domain[0]),t._m=t._length/(c-u),t._b=-t._m*u):(t._offset=n.l+t.domain[0]*n.w,t._length=n.w*(t.domain[1]-t.domain[0]),t._m=t._length/(u-c),t._b=-t._m*c),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks)&amp;&amp;(t._rangebreaks=t.locateBreaks(Math.min(c,u),Math.max(c,u)),t._rangebreaks.length)){for(s=0;s&lt;t._rangebreaks.length;s++)l=t._rangebreaks[s],t._lBreaks+=Math.abs(l.max-l.min);var p=f;c&gt;u&amp;&amp;(p=!p),p&amp;&amp;t._rangebreaks.reverse();var d=p?-1:1;for(t._m2=d*t._length/(Math.abs(u-c)-t._lBreaks),t._B.push(-t._m2*(f?u:c)),s=0;s&lt;t._rangebreaks.length;s++)l=t._rangebreaks[s],t._B.push(t._B[t._B.length-1]-d*t._m2*(l.max-l.min));for(s=0;s&lt;t._rangebreaks.length;s++)(l=t._rangebreaks[s]).pmin=F(l.min),l.pmax=F(l.max)}if(!isFinite(t._m)||!isFinite(t._b)||t._length&lt;0)throw e._replotting=!1,new Error(&quot;Something went wrong with axis scaling&quot;)},t.maskBreaks=function(e){for(var r,n,i,a,l,c=t.rangebreaks||[],u=0;u&lt;c.length;u++){var f=c[u];if(f.enabled)if(f.bounds){var h=f.pattern;switch(n=(r=o.simpleMap(f.bounds,h?s:t.d2c))[0],i=r[1],h){case k:a=(l=new Date(e)).getUTCDay(),n&gt;i&amp;&amp;(i+=7,a&lt;n&amp;&amp;(a+=7));break;case T:a=(l=new Date(e)).getUTCHours()+(l.getUTCMinutes()/60+l.getUTCSeconds()/3600+l.getUTCMilliseconds()/36e5),n&gt;i&amp;&amp;(i+=24,a&lt;n&amp;&amp;(a+=24));break;case&quot;&quot;:a=e}if(a&gt;=n&amp;&amp;a&lt;i)return d}else for(var p=o.simpleMap(f.values,t.d2c).sort(o.sorterAsc),g=0;g&lt;p.length;g++)if(i=(n=p[g])+f.dvalue,e&gt;=n&amp;&amp;e&lt;i)return d}return e},t.locateBreaks=function(e,r){var n,i,a,l,c=[];if(!t.rangebreaks)return c;var u=t.rangebreaks.slice().sort((function(t,e){return t.pattern===k&amp;&amp;e.pattern===T?-1:e.pattern===k&amp;&amp;t.pattern===T?1:0})),f=function(t,n){if((t=o.constrain(t,e,r))!==(n=o.constrain(n,e,r))){for(var i=!0,a=0;a&lt;c.length;a++){var s=c[a];t&lt;s.max&amp;&amp;n&gt;=s.min&amp;&amp;(t&lt;s.min&amp;&amp;(s.min=t),n&gt;s.max&amp;&amp;(s.max=n),i=!1)}i&amp;&amp;c.push({min:t,max:n})}};for(n=0;n&lt;u.length;n++){var h=u[n];if(h.enabled)if(h.bounds){var p=e,d=r;h.pattern&amp;&amp;(p=Math.floor(p)),a=(i=o.simpleMap(h.bounds,h.pattern?s:t.r2l))[0],l=i[1];var g,_,w=new Date(p);switch(h.pattern){case k:_=m,g=(l-a+(l&lt;a?7:0))*v,p+=a*v-(w.getUTCDay()*v+w.getUTCHours()*y+w.getUTCMinutes()*x+w.getUTCSeconds()*b+w.getUTCMilliseconds());break;case T:_=v,g=(l-a+(l&lt;a?24:0))*y,p+=a*y-(w.getUTCHours()*y+w.getUTCMinutes()*x+w.getUTCSeconds()*b+w.getUTCMilliseconds());break;default:p=Math.min(i[0],i[1]),g=_=(d=Math.max(i[0],i[1]))-p}for(var M=p;M&lt;d;M+=_)f(M,M+g)}else for(var A=o.simpleMap(h.values,t.d2c),S=0;S&lt;A.length;S++)f(a=A[S],l=a+h.dvalue)}return c.sort((function(t,e){return t.min-e.min})),c},t.makeCalcdata=function(e,r,n){var i,a,s,l,c=t.type,u=&quot;date&quot;===c&amp;&amp;e[r+&quot;calendar&quot;];if(r in e){if(i=e[r],l=e._length||o.minRowLength(i),o.isTypedArray(i)&amp;&amp;(&quot;linear&quot;===c||&quot;log&quot;===c)){if(l===i.length)return i;if(i.subarray)return i.subarray(0,l)}if(&quot;multicategory&quot;===c)return function(t,e){for(var r=new Array(e),n=0;n&lt;e;n++){var i=(t[0]||[])[n],a=(t[1]||[])[n];r[n]=P([i,a])}return r}(i,l);for(a=new Array(l),s=0;s&lt;l;s++)a[s]=t.d2c(i[s],0,u,n)}else{var f=r+&quot;0&quot;in e?t.d2c(e[r+&quot;0&quot;],0,u):0,h=e[&quot;d&quot;+r]?Number(e[&quot;d&quot;+r]):1;for(i=e[{x:&quot;y&quot;,y:&quot;x&quot;}[r]],l=e._length||i.length,a=new Array(l),s=0;s&lt;l;s++)a[s]=f+s*h}if(t.rangebreaks)for(s=0;s&lt;l;s++)a[s]=t.maskBreaks(a[s]);return a},t.isValidRange=function(e){return Array.isArray(e)&amp;&amp;2===e.length&amp;&amp;a(t.r2l(e[0]))&amp;&amp;a(t.r2l(e[1]))},t.isPtWithinRange=function(e,r){var n=t.c2l(e[h],null,r),i=t.r2l(t.range[0]),a=t.r2l(t.range[1]);return i&lt;a?i&lt;=n&amp;&amp;n&lt;=a:a&lt;=n&amp;&amp;n&lt;=i},t._emptyCategories=function(){t._categories=[],t._categoriesMap={}},t.clearCalc=function(){var r=t._matchGroup;if(r){var n=null,i=null;for(var a in r){var o=e[_.id2name(a)];if(o._categories){n=o._categories,i=o._categoriesMap;break}}n&amp;&amp;i?(t._categories=n,t._categoriesMap=i):t._emptyCategories()}else t._emptyCategories();if(t._initialCategories)for(var s=0;s&lt;t._initialCategories.length;s++)I(t._initialCategories[s])},t.sortByInitialCategories=function(){var n=[];if(t._emptyCategories(),t._initialCategories)for(var i=0;i&lt;t._initialCategories.length;i++)I(t._initialCategories[i]);n=n.concat(t._traceIndices);var a=t._matchGroup;for(var o in a)if(r!==o){var s=e[_.id2name(o)];s._categories=t._categories,s._categoriesMap=t._categoriesMap,n=n.concat(s._traceIndices)}return n};var j=e._d3locale;&quot;date&quot;===t.type&amp;&amp;(t._dateFormat=j?j.timeFormat:i,t._extraFormat=e._extraFormat),t._separators=e.separators,t._numFormat=j?j.numberFormat:n.format,delete t._minDtick,delete t._forceTick0}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,d3:169,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],849:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;).contrast,a=t(&quot;./layout_attributes&quot;),o=t(&quot;../array_container_defaults&quot;);function s(t){var e=[&quot;showexponent&quot;,&quot;showtickprefix&quot;,&quot;showticksuffix&quot;].filter((function(e){return void 0!==t[e]}));if(e.every((function(r){return t[r]===t[e[0]]}))||1===e.length)return t[e[0]]}function l(t,e){function r(r,i){return n.coerce(t,e,a.tickformatstops,r,i)}r(&quot;enabled&quot;)&amp;&amp;(r(&quot;dtickrange&quot;),r(&quot;value&quot;))}e.exports=function(t,e,r,c,u,f){f&amp;&amp;1!==f.pass||function(t,e,r,n,i){var a=s(t);r(&quot;tickprefix&quot;)&amp;&amp;r(&quot;showtickprefix&quot;,a);r(&quot;ticksuffix&quot;,i.tickSuffixDflt)&amp;&amp;r(&quot;showticksuffix&quot;,a)}(t,0,r,0,u),f&amp;&amp;2!==f.pass||function(t,e,r,c,u){var f=s(t);r(&quot;tickprefix&quot;)&amp;&amp;r(&quot;showtickprefix&quot;,f);r(&quot;ticksuffix&quot;,u.tickSuffixDflt)&amp;&amp;r(&quot;showticksuffix&quot;,f);if(r(&quot;showticklabels&quot;)){var h=u.font||{},p=e.color,d=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)?i(u.bgColor):p&amp;&amp;p!==a.color.dflt?p:h.color;if(n.coerceFont(r,&quot;tickfont&quot;,{family:h.family,size:h.size,color:d}),r(&quot;tickangle&quot;),&quot;category&quot;!==c){var g=r(&quot;tickformat&quot;);o(t,e,{name:&quot;tickformatstops&quot;,inclusionAttr:&quot;enabled&quot;,handleItemDefaults:l}),e.tickformatstops.length||delete e.tickformatstops,g||&quot;date&quot;===c||(r(&quot;showexponent&quot;,f),r(&quot;exponentformat&quot;),r(&quot;minexponent&quot;),r(&quot;separatethousands&quot;))}}}(t,e,r,c,u)}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../array_container_defaults&quot;:823,&quot;./layout_attributes&quot;:842}],850:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r,a){var o=n.coerce2(t,e,i,&quot;ticklen&quot;),s=n.coerce2(t,e,i,&quot;tickwidth&quot;),l=n.coerce2(t,e,i,&quot;tickcolor&quot;,e.color);r(&quot;ticks&quot;,a.outerTicks||o||s||l?&quot;outside&quot;:&quot;&quot;)||(delete e.ticklen,delete e.tickwidth,delete e.tickcolor)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:842}],851:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./clean_ticks&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a){function o(r){var n=t[r];return void 0!==n?n:(e._template||{})[r]}var s=o(&quot;tick0&quot;),l=o(&quot;dtick&quot;),c=o(&quot;tickvals&quot;),u=r(&quot;tickmode&quot;,i(c)?&quot;array&quot;:l?&quot;linear&quot;:&quot;auto&quot;);if(&quot;auto&quot;===u)r(&quot;nticks&quot;);else if(&quot;linear&quot;===u){var f=e.dtick=n.dtick(l,a);e.tick0=n.tick0(s,a,e.calendar,f)}else if(&quot;multicategory&quot;!==a){void 0===r(&quot;tickvals&quot;)?e.tickmode=&quot;auto&quot;:r(&quot;ticktext&quot;)}}},{&quot;../../lib&quot;:778,&quot;./clean_ticks&quot;:833}],852:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;./axes&quot;);e.exports=function(t,e,r,l){var c=t._fullLayout;if(0!==e.length){var u,f,h,p;l&amp;&amp;(u=l());var d=n.ease(r.easing);return t._transitionData._interruptCallbacks.push((function(){return window.cancelAnimationFrame(p),p=null,function(){for(var r={},n=0;n&lt;e.length;n++){var a=e[n],o=a.plotinfo.xaxis,s=a.plotinfo.yaxis;a.xr0&amp;&amp;(r[o._name+&quot;.range&quot;]=a.xr0.slice()),a.yr0&amp;&amp;(r[s._name+&quot;.range&quot;]=a.yr0.slice())}return i.call(&quot;relayout&quot;,t,r).then((function(){for(var t=0;t&lt;e.length;t++)g(e[t].plotinfo)}))}()})),f=Date.now(),p=window.requestAnimationFrame((function n(){h=Date.now();for(var a=Math.min(1,(h-f)/r.duration),o=d(a),s=0;s&lt;e.length;s++)m(e[s],o);h-f&gt;r.duration?(!function(){for(var r={},n=0;n&lt;e.length;n++){var a=e[n],o=a.plotinfo.xaxis,s=a.plotinfo.yaxis;a.xr1&amp;&amp;(r[o._name+&quot;.range&quot;]=a.xr1.slice()),a.yr1&amp;&amp;(r[s._name+&quot;.range&quot;]=a.yr1.slice())}u&amp;&amp;u(),i.call(&quot;relayout&quot;,t,r).then((function(){for(var t=0;t&lt;e.length;t++)g(e[t].plotinfo)}))}(),p=window.cancelAnimationFrame(n)):p=window.requestAnimationFrame(n)})),Promise.resolve()}function g(t){var e=t.xaxis,r=t.yaxis;c._defs.select(&quot;#&quot;+t.clipId+&quot;&gt; rect&quot;).call(o.setTranslate,0,0).call(o.setScale,1,1),t.plot.call(o.setTranslate,e._offset,r._offset).call(o.setScale,1,1);var n=t.plot.selectAll(&quot;.scatterlayer .trace&quot;);n.selectAll(&quot;.point&quot;).call(o.setPointGroupScale,1,1),n.selectAll(&quot;.textpoint&quot;).call(o.setTextPointsScale,1,1),n.call(o.hideOutsideRangePoints,t)}function m(e,r){var n=e.plotinfo,i=n.xaxis,l=n.yaxis,c=i._length,u=l._length,f=!!e.xr1,h=!!e.yr1,p=[];if(f){var d=a.simpleMap(e.xr0,i.r2l),g=a.simpleMap(e.xr1,i.r2l),m=d[1]-d[0],v=g[1]-g[0];p[0]=(d[0]*(1-r)+r*g[0]-d[0])/(d[1]-d[0])*c,p[2]=c*(1-r+r*v/m),i.range[0]=i.l2r(d[0]*(1-r)+r*g[0]),i.range[1]=i.l2r(d[1]*(1-r)+r*g[1])}else p[0]=0,p[2]=c;if(h){var y=a.simpleMap(e.yr0,l.r2l),x=a.simpleMap(e.yr1,l.r2l),b=y[1]-y[0],_=x[1]-x[0];p[1]=(y[1]*(1-r)+r*x[1]-y[1])/(y[0]-y[1])*u,p[3]=u*(1-r+r*_/b),l.range[0]=i.l2r(y[0]*(1-r)+r*x[0]),l.range[1]=l.l2r(y[1]*(1-r)+r*x[1])}else p[1]=0,p[3]=u;s.drawOne(t,i,{skipTitle:!0}),s.drawOne(t,l,{skipTitle:!0}),s.redrawComponents(t,[i._id,l._id]);var w=f?c/p[2]:1,T=h?u/p[3]:1,k=f?p[0]:0,M=h?p[1]:0,A=f?p[0]/p[2]*c:0,S=h?p[1]/p[3]*u:0,E=i._offset-A,C=l._offset-S;n.clipRect.call(o.setTranslate,k,M).call(o.setScale,1/w,1/T),n.plot.call(o.setTranslate,E,C).call(o.setScale,w,T),o.setPointGroupScale(n.zoomScalePts,1/w,1/T),o.setTextPointsScale(n.zoomScaleTxt,1/w,1/T)}s.redrawComponents(t)}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./axes&quot;:828,d3:169}],853:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;).traceIs,i=t(&quot;./axis_autotype&quot;);function a(t){return{v:&quot;x&quot;,h:&quot;y&quot;}[t.orientation||&quot;v&quot;]}function o(t,e){var r=a(t),i=n(t,&quot;box-violin&quot;),o=n(t._fullInput||{},&quot;candlestick&quot;);return i&amp;&amp;!o&amp;&amp;e===r&amp;&amp;void 0===t[r]&amp;&amp;void 0===t[r+&quot;0&quot;]}e.exports=function(t,e,r,s){r(&quot;autotypenumbers&quot;,s.autotypenumbersDflt),&quot;-&quot;===r(&quot;type&quot;,(s.splomStash||{}).type)&amp;&amp;(!function(t,e){if(&quot;-&quot;!==t.type)return;var r,s=t._id,l=s.charAt(0);-1!==s.indexOf(&quot;scene&quot;)&amp;&amp;(s=l);var c=function(t,e,r){for(var n=0;n&lt;t.length;n++){var i=t[n];if(&quot;splom&quot;===i.type&amp;&amp;i._length&gt;0&amp;&amp;(i[&quot;_&quot;+r+&quot;axes&quot;]||{})[e])return i;if((i[r+&quot;axis&quot;]||r)===e){if(o(i,r))return i;if((i[r]||[]).length||i[r+&quot;0&quot;])return i}}}(e,s,l);if(!c)return;if(&quot;histogram&quot;===c.type&amp;&amp;l==={v:&quot;y&quot;,h:&quot;x&quot;}[c.orientation||&quot;v&quot;])return void(t.type=&quot;linear&quot;);var u=l+&quot;calendar&quot;,f=c[u],h={noMultiCategory:!n(c,&quot;cartesian&quot;)||n(c,&quot;noMultiCategory&quot;)};&quot;box&quot;===c.type&amp;&amp;c._hasPreCompStats&amp;&amp;l==={h:&quot;x&quot;,v:&quot;y&quot;}[c.orientation||&quot;v&quot;]&amp;&amp;(h.noMultiCategory=!0);if(h.autotypenumbers=t.autotypenumbers,o(c,l)){var p=a(c),d=[];for(r=0;r&lt;e.length;r++){var g=e[r];n(g,&quot;box-violin&quot;)&amp;&amp;(g[l+&quot;axis&quot;]||l)===s&amp;&amp;(void 0!==g[p]?d.push(g[p][0]):void 0!==g.name?d.push(g.name):d.push(&quot;text&quot;),g[u]!==f&amp;&amp;(f=void 0))}t.type=i(d,f,h)}else if(&quot;splom&quot;===c.type){var m=c.dimensions[c._axesDim[s]];m.visible&amp;&amp;(t.type=i(m.values,f,h))}else t.type=i(c[l]||[c[l+&quot;0&quot;]],f,h)}(e,s.data),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:t.type=e.type)}},{&quot;../../registry&quot;:911,&quot;./axis_autotype&quot;:829}],854:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;);function a(t,e,r){var n,a,o,s=!1;if(&quot;data&quot;===e.type)n=t._fullData[null!==e.traces?e.traces[0]:0];else{if(&quot;layout&quot;!==e.type)return!1;n=t._fullLayout}return a=i.nestedProperty(n,e.prop).get(),(o=r[e.type]=r[e.type]||{}).hasOwnProperty(e.prop)&amp;&amp;o[e.prop]!==a&amp;&amp;(s=!0),o[e.prop]=a,{changed:s,value:a}}function o(t,e){var r=[],n=e[0],a={};if(&quot;string&quot;==typeof n)a[n]=e[1];else{if(!i.isPlainObject(n))return r;a=n}return l(a,(function(t,e,n){r.push({type:&quot;layout&quot;,prop:t,value:n})}),&quot;&quot;,0),r}function s(t,e){var r,n,a,o,s=[];if(n=e[0],a=e[1],r=e[2],o={},&quot;string&quot;==typeof n)o[n]=a;else{if(!i.isPlainObject(n))return s;o=n,void 0===r&amp;&amp;(r=a)}return void 0===r&amp;&amp;(r=null),l(o,(function(e,n,i){var a,o;if(Array.isArray(i)){o=i.slice();var l=Math.min(o.length,t.data.length);r&amp;&amp;(l=Math.min(l,r.length)),a=[];for(var c=0;c&lt;l;c++)a[c]=r?r[c]:c}else o=i,a=r?r.slice():null;if(null===a)Array.isArray(o)&amp;&amp;(o=o[0]);else if(Array.isArray(a)){if(!Array.isArray(o)){var u=o;o=[];for(var f=0;f&lt;a.length;f++)o[f]=u}o.length=Math.min(a.length,o.length)}s.push({type:&quot;data&quot;,prop:e,traces:a,value:o})}),&quot;&quot;,0),s}function l(t,e,r,n){Object.keys(t).forEach((function(a){var o=t[a];if(&quot;_&quot;!==a[0]){var s=r+(n&gt;0?&quot;.&quot;:&quot;&quot;)+a;i.isPlainObject(o)?l(o,e,s,n+1):e(s,a,o)}}))}r.manageCommandObserver=function(t,e,n,o){var s={},l=!0;e&amp;&amp;e._commandObserver&amp;&amp;(s=e._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var c=r.hasSimpleAPICommandBindings(t,n,s.lookupTable);if(e&amp;&amp;e._commandObserver){if(c)return s;if(e._commandObserver.remove)return e._commandObserver.remove(),e._commandObserver=null,s}if(c){a(t,c,s.cache),s.check=function(){if(l){var e=a(t,c,s.cache);return e.changed&amp;&amp;o&amp;&amp;void 0!==s.lookupTable[e.value]&amp;&amp;(s.disable(),Promise.resolve(o({value:e.value,type:c.type,prop:c.prop,traces:c.traces,index:s.lookupTable[e.value]})).then(s.enable,s.enable)),e.changed}};for(var u=[&quot;plotly_relayout&quot;,&quot;plotly_redraw&quot;,&quot;plotly_restyle&quot;,&quot;plotly_update&quot;,&quot;plotly_animatingframe&quot;,&quot;plotly_afterplot&quot;],f=0;f&lt;u.length;f++)t._internalOn(u[f],s.check);s.remove=function(){for(var e=0;e&lt;u.length;e++)t._removeInternalListener(u[e],s.check)}}else i.log(&quot;Unable to automatically bind plot updates to API command&quot;),s.lookupTable={},s.remove=function(){};return s.disable=function(){l=!1},s.enable=function(){l=!0},e&amp;&amp;(e._commandObserver=s),s},r.hasSimpleAPICommandBindings=function(t,e,n){var i,a,o=e.length;for(i=0;i&lt;o;i++){var s,l=e[i],c=l.method,u=l.args;if(Array.isArray(u)||(u=[]),!c)return!1;var f=r.computeAPICommandBindings(t,c,u);if(1!==f.length)return!1;if(a){if((s=f[0]).type!==a.type)return!1;if(s.prop!==a.prop)return!1;if(Array.isArray(a.traces)){if(!Array.isArray(s.traces))return!1;s.traces.sort();for(var h=0;h&lt;a.traces.length;h++)if(a.traces[h]!==s.traces[h])return!1}else if(s.prop!==a.prop)return!1}else a=f[0],Array.isArray(a.traces)&amp;&amp;a.traces.sort();var p=(s=f[0]).value;if(Array.isArray(p)){if(1!==p.length)return!1;p=p[0]}n&amp;&amp;(n[p]=i)}return a},r.executeAPICommand=function(t,e,r){if(&quot;skip&quot;===e)return Promise.resolve();var a=n.apiMethodRegistry[e],o=[t];Array.isArray(r)||(r=[]);for(var s=0;s&lt;r.length;s++)o.push(r[s]);return a.apply(null,o).catch((function(t){return i.warn(&quot;API call to Plotly.&quot;+e+&quot; rejected.&quot;,t),Promise.reject(t)}))},r.computeAPICommandBindings=function(t,e,r){var n;switch(Array.isArray(r)||(r=[]),e){case&quot;restyle&quot;:n=s(t,r);break;case&quot;relayout&quot;:n=o(t,r);break;case&quot;update&quot;:n=s(t,[r[0],r[2]]).concat(o(t,[r[1]]));break;case&quot;animate&quot;:n=function(t,e){return Array.isArray(e[0])&amp;&amp;1===e[0].length&amp;&amp;-1!==[&quot;string&quot;,&quot;number&quot;].indexOf(typeof e[0][0])?[{type:&quot;layout&quot;,prop:&quot;_currentFrame&quot;,value:e[0][0].toString()}]:[]}(0,r);break;default:n=[]}return n}},{&quot;../lib&quot;:778,&quot;../registry&quot;:911}],855:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/extend&quot;).extendFlat;r.attributes=function(t,e){e=e||{};var r={valType:&quot;info_array&quot;,editType:(t=t||{}).editType,items:[{valType:&quot;number&quot;,min:0,max:1,editType:t.editType},{valType:&quot;number&quot;,min:0,max:1,editType:t.editType}],dflt:[0,1]},i=(t.name&amp;&amp;t.name,t.trace,e.description&amp;&amp;e.description,{x:n({},r,{}),y:n({},r,{}),editType:t.editType});return t.noGridCell||(i.row={valType:&quot;integer&quot;,min:0,dflt:0,editType:t.editType},i.column={valType:&quot;integer&quot;,min:0,dflt:0,editType:t.editType}),i},r.defaults=function(t,e,r,n){var i=n&amp;&amp;n.x||[0,1],a=n&amp;&amp;n.y||[0,1],o=e.grid;if(o){var s=r(&quot;domain.column&quot;);void 0!==s&amp;&amp;(s&lt;o.columns?i=o._domains.x[s]:delete t.domain.column);var l=r(&quot;domain.row&quot;);void 0!==l&amp;&amp;(l&lt;o.rows?a=o._domains.y[l]:delete t.domain.row)}var c=r(&quot;domain.x&quot;,i),u=r(&quot;domain.y&quot;,a);c[0]&lt;c[1]||(t.domain.x=i.slice()),u[0]&lt;u[1]||(t.domain.y=a.slice())}},{&quot;../lib/extend&quot;:768}],856:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.editType,r=t.colorEditType;void 0===r&amp;&amp;(r=e);var n={family:{valType:&quot;string&quot;,noBlank:!0,strict:!0,editType:e},size:{valType:&quot;number&quot;,min:1,editType:e},color:{valType:&quot;color&quot;,editType:r},editType:e};return t.arrayOk&amp;&amp;(n.family.arrayOk=!0,n.size.arrayOk=!0,n.color.arrayOk=!0),n}},{}],857:[function(t,e,r){&quot;use strict&quot;;e.exports={_isLinkedToArray:&quot;frames_entry&quot;,group:{valType:&quot;string&quot;},name:{valType:&quot;string&quot;},traces:{valType:&quot;any&quot;},baseframe:{valType:&quot;string&quot;},data:{valType:&quot;any&quot;},layout:{valType:&quot;any&quot;}}},{}],858:[function(t,e,r){&quot;use strict&quot;;r.projNames={equirectangular:&quot;equirectangular&quot;,mercator:&quot;mercator&quot;,orthographic:&quot;orthographic&quot;,&quot;natural earth&quot;:&quot;naturalEarth&quot;,kavrayskiy7:&quot;kavrayskiy7&quot;,miller:&quot;miller&quot;,robinson:&quot;robinson&quot;,eckert4:&quot;eckert4&quot;,&quot;azimuthal equal area&quot;:&quot;azimuthalEqualArea&quot;,&quot;azimuthal equidistant&quot;:&quot;azimuthalEquidistant&quot;,&quot;conic equal area&quot;:&quot;conicEqualArea&quot;,&quot;conic conformal&quot;:&quot;conicConformal&quot;,&quot;conic equidistant&quot;:&quot;conicEquidistant&quot;,gnomonic:&quot;gnomonic&quot;,stereographic:&quot;stereographic&quot;,mollweide:&quot;mollweide&quot;,hammer:&quot;hammer&quot;,&quot;transverse mercator&quot;:&quot;transverseMercator&quot;,&quot;albers usa&quot;:&quot;albersUsa&quot;,&quot;winkel tripel&quot;:&quot;winkel3&quot;,aitoff:&quot;aitoff&quot;,sinusoidal:&quot;sinusoidal&quot;},r.axesNames=[&quot;lonaxis&quot;,&quot;lataxis&quot;],r.lonaxisSpan={orthographic:180,&quot;azimuthal equal area&quot;:360,&quot;azimuthal equidistant&quot;:360,&quot;conic conformal&quot;:180,gnomonic:160,stereographic:180,&quot;transverse mercator&quot;:180,&quot;*&quot;:360},r.lataxisSpan={&quot;conic conformal&quot;:150,stereographic:179.5,&quot;*&quot;:180},r.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:&quot;equirectangular&quot;,projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:&quot;albers usa&quot;},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:&quot;conic conformal&quot;,projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:&quot;mercator&quot;,projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:&quot;mercator&quot;,projRotate:[0,0,0]},&quot;north america&quot;:{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:&quot;conic conformal&quot;,projRotate:[-100,0,0],projParallels:[29.5,45.5]},&quot;south america&quot;:{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:&quot;mercator&quot;,projRotate:[0,0,0]}},r.clipPad=.001,r.precision=.1,r.landColor=&quot;#F0DC82&quot;,r.waterColor=&quot;#3399FF&quot;,r.locationmodeToLayer={&quot;ISO-3&quot;:&quot;countries&quot;,&quot;USA-states&quot;:&quot;subunits&quot;,&quot;country names&quot;:&quot;countries&quot;},r.sphereSVG={type:&quot;Sphere&quot;},r.fillLayers={ocean:1,land:1,lakes:1},r.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},r.layers=[&quot;bg&quot;,&quot;ocean&quot;,&quot;land&quot;,&quot;lakes&quot;,&quot;subunits&quot;,&quot;countries&quot;,&quot;coastlines&quot;,&quot;rivers&quot;,&quot;lataxis&quot;,&quot;lonaxis&quot;,&quot;frame&quot;,&quot;backplot&quot;,&quot;frontplot&quot;],r.layersForChoropleth=[&quot;bg&quot;,&quot;ocean&quot;,&quot;land&quot;,&quot;subunits&quot;,&quot;countries&quot;,&quot;coastlines&quot;,&quot;lataxis&quot;,&quot;lonaxis&quot;,&quot;frame&quot;,&quot;backplot&quot;,&quot;rivers&quot;,&quot;lakes&quot;,&quot;frontplot&quot;],r.layerNameToAdjective={ocean:&quot;ocean&quot;,land:&quot;land&quot;,lakes:&quot;lake&quot;,subunits:&quot;subunit&quot;,countries:&quot;country&quot;,coastlines:&quot;coastline&quot;,rivers:&quot;river&quot;,frame:&quot;frame&quot;}},{}],859:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.strTranslate,s=t(&quot;../../components/color&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../components/fx&quot;),u=t(&quot;../plots&quot;),f=t(&quot;../cartesian/axes&quot;),h=t(&quot;../cartesian/autorange&quot;).getAutoRange,p=t(&quot;../../components/dragelement&quot;),d=t(&quot;../cartesian/select&quot;).prepSelect,g=t(&quot;../cartesian/select&quot;).clearSelect,m=t(&quot;../cartesian/select&quot;).selectOnClick,v=t(&quot;./zoom&quot;),y=t(&quot;./constants&quot;),x=t(&quot;../../lib/geo_location_utils&quot;),b=t(&quot;../../lib/topojson_utils&quot;),_=t(&quot;topojson-client&quot;).feature;function w(t){this.id=t.id,this.graphDiv=t.graphDiv,this.container=t.container,this.topojsonURL=t.topojsonURL,this.isStatic=t.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}t(&quot;./projections&quot;)(n);var T=w.prototype;function k(t,e){var r=y.clipPad,n=t[0]+r,i=t[1]-r,a=e[0]+r,o=e[1]-r;n&gt;0&amp;&amp;i&lt;0&amp;&amp;(i+=360);var s=(i-n)/4;return{type:&quot;Polygon&quot;,coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}e.exports=function(t){return new w(t)},T.plot=function(t,e,r){var n=this,i=e[this.id],a=[],o=!1;for(var s in y.layerNameToAdjective)if(&quot;frame&quot;!==s&amp;&amp;i[&quot;show&quot;+s]){o=!0;break}for(var l=0;l&lt;t.length;l++)if(t[0][0].trace.locationmode){o=!0;break}if(o){var c=b.getTopojsonName(i);null!==n.topojson&amp;&amp;c===n.topojsonName||(n.topojsonName=c,void 0===PlotlyGeoAssets.topojson[n.topojsonName]&amp;&amp;a.push(n.fetchTopojson()))}a=a.concat(x.fetchTraceGeoData(t)),r.push(new Promise((function(r,i){Promise.all(a).then((function(){n.topojson=PlotlyGeoAssets.topojson[n.topojsonName],n.update(t,e),r()})).catch(i)})))},T.fetchTopojson=function(){var t=this,e=b.getTopojsonPath(t.topojsonURL,t.topojsonName);return new Promise((function(r,i){n.json(e,(function(n,a){if(n)return 404===n.status?i(new Error([&quot;plotly.js could not find topojson file at&quot;,e,&quot;.&quot;,&quot;Make sure the *topojsonURL* plot config option&quot;,&quot;is set properly.&quot;].join(&quot; &quot;))):i(new Error([&quot;unexpected error while fetching topojson file at&quot;,e].join(&quot; &quot;)));PlotlyGeoAssets.topojson[t.topojsonName]=a,r()}))}))},T.update=function(t,e){var r=e[this.id];this.hasChoropleth=!1;for(var n=0;n&lt;t.length;n++){var i=t[n],a=i[0].trace;&quot;choropleth&quot;===a.type&amp;&amp;(this.hasChoropleth=!0),!0===a.visible&amp;&amp;a._length&gt;0&amp;&amp;a._module.calcGeoJSON(i,e)}if(!this.updateProjection(t,e)){this.viewInitial&amp;&amp;this.scope===r.scope||this.saveViewInitial(r),this.scope=r.scope,this.updateBaseLayers(e,r),this.updateDims(e,r),this.updateFx(e,r),u.generalUpdatePerTraceModule(this.graphDiv,this,t,r);var o=this.layers.frontplot.select(&quot;.scatterlayer&quot;);this.dataPoints.point=o.selectAll(&quot;.point&quot;),this.dataPoints.text=o.selectAll(&quot;text&quot;),this.dataPaths.line=o.selectAll(&quot;.js-line&quot;);var s=this.layers.backplot.select(&quot;.choroplethlayer&quot;);this.dataPaths.choropleth=s.selectAll(&quot;path&quot;),this.render()}},T.updateProjection=function(t,e){var r=this.graphDiv,o=e[this.id],s=e._size,l=o.domain,c=o.projection,u=o.lonaxis,f=o.lataxis,p=u._ax,d=f._ax,g=this.projection=function(t){for(var e=t.projection.type,r=n.geo[y.projNames[e]](),i=t._isClipped?y.lonaxisSpan[e]/2:null,a=[&quot;center&quot;,&quot;rotate&quot;,&quot;parallels&quot;,&quot;clipExtent&quot;],o=function(t){return t?r:[]},s=0;s&lt;a.length;s++){var l=a[s];&quot;function&quot;!=typeof r[l]&amp;&amp;(r[l]=o)}r.isLonLatOverEdges=function(t){if(null===r(t))return!0;if(i){var e=r.rotate();return n.geo.distance(t,[-e[0],-e[1]])&gt;i*Math.PI/180}return!1},r.getPath=function(){return n.geo.path().projection(r)},r.getBounds=function(t){return r.getPath().bounds(t)},r.fitExtent=function(t,e){var n=t[1][0]-t[0][0],i=t[1][1]-t[0][1],a=r.clipExtent&amp;&amp;r.clipExtent();r.scale(150).translate([0,0]),a&amp;&amp;r.clipExtent(null);var o=r.getBounds(e),s=Math.min(n/(o[1][0]-o[0][0]),i/(o[1][1]-o[0][1])),l=+t[0][0]+(n-s*(o[1][0]+o[0][0]))/2,c=+t[0][1]+(i-s*(o[1][1]+o[0][1]))/2;return a&amp;&amp;r.clipExtent(a),r.scale(150*s).translate([l,c])},r.precision(y.precision),i&amp;&amp;r.clipAngle(i-y.clipPad);return r}(o),m=[[s.l+s.w*l.x[0],s.t+s.h*(1-l.y[1])],[s.l+s.w*l.x[1],s.t+s.h*(1-l.y[0])]],v=o.center||{},x=c.rotation||{},b=u.range||[],_=f.range||[];if(o.fitbounds){p._length=m[1][0]-m[0][0],d._length=m[1][1]-m[0][1],p.range=h(r,p),d.range=h(r,d);var w=(p.range[0]+p.range[1])/2,T=(d.range[0]+d.range[1])/2;if(o._isScoped)v={lon:w,lat:T};else if(o._isClipped){v={lon:w,lat:T},x={lon:w,lat:T,roll:x.roll};var M=c.type,A=y.lonaxisSpan[M]/2||180,S=y.lataxisSpan[M]/2||90;b=[w-A,w+A],_=[T-S,T+S]}else v={lon:w,lat:T},x={lon:w,lat:x.lat,roll:x.roll}}g.center([v.lon-x.lon,v.lat-x.lat]).rotate([-x.lon,-x.lat,x.roll]).parallels(c.parallels);var E=k(b,_);g.fitExtent(m,E);var C=this.bounds=g.getBounds(E),L=this.fitScale=g.scale(),I=g.translate();if(!isFinite(C[0][0])||!isFinite(C[0][1])||!isFinite(C[1][0])||!isFinite(C[1][1])||isNaN(I[0])||isNaN(I[0])){for(var P=[&quot;fitbounds&quot;,&quot;projection.rotation&quot;,&quot;center&quot;,&quot;lonaxis.range&quot;,&quot;lataxis.range&quot;],z=&quot;Invalid geo settings, relayout'ing to default view.&quot;,O={},D=0;D&lt;P.length;D++)O[this.id+&quot;.&quot;+P[D]]=null;return this.viewInitial=null,a.warn(z),r._promises.push(i.call(&quot;relayout&quot;,r,O)),z}if(o.fitbounds){var R=g.getBounds(k(p.range,d.range)),F=Math.min((C[1][0]-C[0][0])/(R[1][0]-R[0][0]),(C[1][1]-C[0][1])/(R[1][1]-R[0][1]));isFinite(F)?g.scale(F*L):a.warn(&quot;Something went wrong during&quot;+this.id+&quot;fitbounds computations.&quot;)}else g.scale(c.scale*L);var B=this.midPt=[(C[0][0]+C[1][0])/2,(C[0][1]+C[1][1])/2];if(g.translate([I[0]+(B[0]-I[0]),I[1]+(B[1]-I[1])]).clipExtent(C),o._isAlbersUsa){var N=g([v.lon,v.lat]),j=g.translate();g.translate([j[0]-(N[0]-j[0]),j[1]-(N[1]-j[1])])}},T.updateBaseLayers=function(t,e){var r=this,i=r.topojson,a=r.layers,o=r.basePaths;function c(t){return&quot;lonaxis&quot;===t||&quot;lataxis&quot;===t}function u(t){return Boolean(y.lineLayers[t])}function h(t){return Boolean(y.fillLayers[t])}var p=(this.hasChoropleth?y.layersForChoropleth:y.layers).filter((function(t){return u(t)||h(t)?e[&quot;show&quot;+t]:!c(t)||e[t].showgrid})),d=r.framework.selectAll(&quot;.layer&quot;).data(p,String);d.exit().each((function(t){delete a[t],delete o[t],n.select(this).remove()})),d.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;layer &quot;+t})).each((function(t){var e=a[t]=n.select(this);&quot;bg&quot;===t?r.bgRect=e.append(&quot;rect&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;):c(t)?o[t]=e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;):&quot;backplot&quot;===t?e.append(&quot;g&quot;).classed(&quot;choroplethlayer&quot;,!0):&quot;frontplot&quot;===t?e.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0):u(t)?o[t]=e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;).style(&quot;stroke-miterlimit&quot;,2):h(t)&amp;&amp;(o[t]=e.append(&quot;path&quot;).style(&quot;stroke&quot;,&quot;none&quot;))})),d.order(),d.each((function(r){var n=o[r],a=y.layerNameToAdjective[r];&quot;frame&quot;===r?n.datum(y.sphereSVG):u(r)||h(r)?n.datum(_(i,i.objects[r])):c(r)&amp;&amp;n.datum(function(t,e,r){var n,i,a,o=e[t],s=y.scopeDefaults[e.scope];&quot;lonaxis&quot;===t?(n=s.lonaxisRange,i=s.lataxisRange,a=function(t,e){return[t,e]}):&quot;lataxis&quot;===t&amp;&amp;(n=s.lataxisRange,i=s.lonaxisRange,a=function(t,e){return[e,t]});var l={type:&quot;linear&quot;,range:[n[0],n[1]-1e-6],tick0:o.tick0,dtick:o.dtick};f.setConvert(l,r);var c=f.calcTicks(l);e.isScoped||&quot;lonaxis&quot;!==t||c.pop();for(var u=c.length,h=new Array(u),p=0;p&lt;u;p++)for(var d=c[p].x,g=h[p]=[],m=i[0];m&lt;i[1]+2.5;m+=2.5)g.push(a(d,m));return{type:&quot;MultiLineString&quot;,coordinates:h}}(r,e,t)).call(s.stroke,e[r].gridcolor).call(l.dashLine,&quot;&quot;,e[r].gridwidth),u(r)?n.call(s.stroke,e[a+&quot;color&quot;]).call(l.dashLine,&quot;&quot;,e[a+&quot;width&quot;]):h(r)&amp;&amp;n.call(s.fill,e[a+&quot;color&quot;])}))},T.updateDims=function(t,e){var r=this.bounds,n=(e.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,c=r[1][1]-a+n;l.setRect(this.clipRect,i,a,o,c),this.bgRect.call(l.setRect,i,a,o,c).call(s.fill,e.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=c},T.updateFx=function(t,e){var r=this,a=r.graphDiv,o=r.bgRect,s=t.dragmode,l=t.clickmode;if(!r.isStatic){var u;&quot;select&quot;===s?u=function(t,e){(t.range={})[r.id]=[h([e.xmin,e.ymin]),h([e.xmax,e.ymax])]}:&quot;lasso&quot;===s&amp;&amp;(u=function(t,e,n){(t.lassoPoints={})[r.id]=n.filtered.map(h)});var f={element:r.bgRect.node(),gd:a,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(t){2===t&amp;&amp;g(a)}};&quot;pan&quot;===s?(o.node().onmousedown=null,o.call(v(r,e)),o.on(&quot;dblclick.zoom&quot;,(function(){var t=r.viewInitial,e={};for(var n in t)e[r.id+&quot;.&quot;+n]=t[n];i.call(&quot;_guiRelayout&quot;,a,e),a.emit(&quot;plotly_doubleclick&quot;,null)})),a._context._scrollZoom.geo||o.on(&quot;wheel.zoom&quot;,null)):&quot;select&quot;!==s&amp;&amp;&quot;lasso&quot;!==s||(o.on(&quot;.zoom&quot;,null),f.prepFn=function(t,e,r){d(t,e,r,f,s)},p.init(f)),o.on(&quot;mousemove&quot;,(function(){var t=r.projection.invert(n.mouse(this));if(!t||isNaN(t[0])||isNaN(t[1]))return p.unhover(a,n.event);r.xaxis.p2c=function(){return t[0]},r.yaxis.p2c=function(){return t[1]},c.hover(a,n.event,r.id)})),o.on(&quot;mouseout&quot;,(function(){a._dragging||p.unhover(a,n.event)})),o.on(&quot;click&quot;,(function(){&quot;select&quot;!==s&amp;&amp;&quot;lasso&quot;!==s&amp;&amp;(l.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;m(n.event,a,[r.xaxis],[r.yaxis],r.id,f),l.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;c.click(a,n.event))}))}function h(t){return r.projection.invert([t[0]+r.xaxis._offset,t[1]+r.yaxis._offset])}},T.makeFramework=function(){var t=this,e=t.graphDiv,r=e._fullLayout,i=&quot;clip&quot;+r._uid+t.id;t.clipDef=r._clips.append(&quot;clipPath&quot;).attr(&quot;id&quot;,i),t.clipRect=t.clipDef.append(&quot;rect&quot;),t.framework=n.select(t.container).append(&quot;g&quot;).attr(&quot;class&quot;,&quot;geo &quot;+t.id).call(l.setClipUrl,i,e),t.project=function(e){var r=t.projection(e);return r?[r[0]-t.xaxis._offset,r[1]-t.yaxis._offset]:[null,null]},t.xaxis={_id:&quot;x&quot;,c2p:function(e){return t.project(e)[0]}},t.yaxis={_id:&quot;y&quot;,c2p:function(e){return t.project(e)[1]}},t.mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},f.setConvert(t.mockAxis,r)},T.saveViewInitial=function(t){var e,r=t.center||{},n=t.projection,i=n.rotation||{};this.viewInitial={fitbounds:t.fitbounds,&quot;projection.scale&quot;:n.scale},e=t._isScoped?{&quot;center.lon&quot;:r.lon,&quot;center.lat&quot;:r.lat}:t._isClipped?{&quot;projection.rotation.lon&quot;:i.lon,&quot;projection.rotation.lat&quot;:i.lat}:{&quot;center.lon&quot;:r.lon,&quot;center.lat&quot;:r.lat,&quot;projection.rotation.lon&quot;:i.lon},a.extendFlat(this.viewInitial,e)},T.render=function(){var t,e=this.projection,r=e.getPath();function n(t){var r=e(t.lonlat);return r?o(r[0],r[1]):null}function i(t){return e.isLonLatOverEdges(t.lonlat)?&quot;none&quot;:null}for(t in this.basePaths)this.basePaths[t].attr(&quot;d&quot;,r);for(t in this.dataPaths)this.dataPaths[t].attr(&quot;d&quot;,(function(t){return r(t.geojson)}));for(t in this.dataPoints)this.dataPoints[t].attr(&quot;display&quot;,i).attr(&quot;transform&quot;,n)}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/topojson_utils&quot;:806,&quot;../../registry&quot;:911,&quot;../cartesian/autorange&quot;:827,&quot;../cartesian/axes&quot;:828,&quot;../cartesian/select&quot;:847,&quot;../plots&quot;:891,&quot;./constants&quot;:858,&quot;./projections&quot;:863,&quot;./zoom&quot;:864,d3:169,&quot;topojson-client&quot;:579}],860:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,i=t(&quot;../../lib&quot;).counterRegex,a=t(&quot;./geo&quot;),o=&quot;geo&quot;,s=i(o),l={};l.geo={valType:&quot;subplotid&quot;,dflt:o,editType:&quot;calc&quot;},e.exports={attr:o,name:o,idRoot:o,idRegex:s,attrRegex:s,attributes:l,layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots.geo,s=0;s&lt;i.length;s++){var l=i[s],c=n(r,o,l),u=e[l]._subplot;u||(u=a({id:l,graphDiv:t,container:e._geolayer.node(),topojsonURL:t._context.topojsonURL,staticPlot:t._context.staticPlot}),e[l]._subplot=u),u.plot(c,e,t._promises)}},updateFx:function(t){for(var e=t._fullLayout,r=e._subplots.geo,n=0;n&lt;r.length;n++){var i=e[r[n]];i._subplot.updateFx(e,i)}},clean:function(t,e,r,n){for(var i=n._subplots.geo||[],a=0;a&lt;i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&amp;&amp;s&amp;&amp;(s.framework.remove(),s.clipDef.remove())}}}},{&quot;../../lib&quot;:778,&quot;../../plots/get_data&quot;:865,&quot;./geo&quot;:859,&quot;./layout_attributes&quot;:861,&quot;./layout_defaults&quot;:862}],861:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../domain&quot;).attributes,a=t(&quot;./constants&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s={range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},showgrid:{valType:&quot;boolean&quot;,dflt:!1},tick0:{valType:&quot;number&quot;,dflt:0},dtick:{valType:&quot;number&quot;},gridcolor:{valType:&quot;color&quot;,dflt:n.lightLine},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1}};(e.exports=o({domain:i({name:&quot;geo&quot;},{}),fitbounds:{valType:&quot;enumerated&quot;,values:[!1,&quot;locations&quot;,&quot;geojson&quot;],dflt:!1,editType:&quot;plot&quot;},resolution:{valType:&quot;enumerated&quot;,values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:&quot;enumerated&quot;,values:Object.keys(a.scopeDefaults),dflt:&quot;world&quot;},projection:{type:{valType:&quot;enumerated&quot;,values:Object.keys(a.projNames)},rotation:{lon:{valType:&quot;number&quot;},lat:{valType:&quot;number&quot;},roll:{valType:&quot;number&quot;}},parallels:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},scale:{valType:&quot;number&quot;,min:0,dflt:1}},center:{lon:{valType:&quot;number&quot;},lat:{valType:&quot;number&quot;}},visible:{valType:&quot;boolean&quot;,dflt:!0},showcoastlines:{valType:&quot;boolean&quot;},coastlinecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},coastlinewidth:{valType:&quot;number&quot;,min:0,dflt:1},showland:{valType:&quot;boolean&quot;,dflt:!1},landcolor:{valType:&quot;color&quot;,dflt:a.landColor},showocean:{valType:&quot;boolean&quot;,dflt:!1},oceancolor:{valType:&quot;color&quot;,dflt:a.waterColor},showlakes:{valType:&quot;boolean&quot;,dflt:!1},lakecolor:{valType:&quot;color&quot;,dflt:a.waterColor},showrivers:{valType:&quot;boolean&quot;,dflt:!1},rivercolor:{valType:&quot;color&quot;,dflt:a.waterColor},riverwidth:{valType:&quot;number&quot;,min:0,dflt:1},showcountries:{valType:&quot;boolean&quot;},countrycolor:{valType:&quot;color&quot;,dflt:n.defaultLine},countrywidth:{valType:&quot;number&quot;,min:0,dflt:1},showsubunits:{valType:&quot;boolean&quot;},subunitcolor:{valType:&quot;color&quot;,dflt:n.defaultLine},subunitwidth:{valType:&quot;number&quot;,min:0,dflt:1},showframe:{valType:&quot;boolean&quot;},framecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},framewidth:{valType:&quot;number&quot;,min:0,dflt:1},bgcolor:{valType:&quot;color&quot;,dflt:n.background},lonaxis:s,lataxis:s},&quot;plot&quot;,&quot;from-root&quot;)).uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../plot_api/edit_types&quot;:810,&quot;../domain&quot;:855,&quot;./constants&quot;:858}],862:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../subplot_defaults&quot;),a=t(&quot;../get_data&quot;).getSubplotData,o=t(&quot;./constants&quot;),s=t(&quot;./layout_attributes&quot;),l=o.axesNames;function c(t,e,r,i){var s=a(i.fullData,&quot;geo&quot;,i.id).map((function(t){return t._expandedIndex})),c=r(&quot;resolution&quot;),u=r(&quot;scope&quot;),f=o.scopeDefaults[u],h=r(&quot;projection.type&quot;,f.projType),p=e._isAlbersUsa=&quot;albers usa&quot;===h;p&amp;&amp;(u=e.scope=&quot;usa&quot;);var d=e._isScoped=&quot;world&quot;!==u,g=e._isConic=-1!==h.indexOf(&quot;conic&quot;),m=e._isClipped=!!o.lonaxisSpan[h];if(!1===t.visible){var v=n.extendDeep({},e._template);v.showcoastlines=!1,v.showcountries=!1,v.showframe=!1,v.showlakes=!1,v.showland=!1,v.showocean=!1,v.showrivers=!1,v.showsubunits=!1,v.lonaxis&amp;&amp;(v.lonaxis.showgrid=!1),v.lataxis&amp;&amp;(v.lataxis.showgrid=!1),e._template=v}for(var y=r(&quot;visible&quot;),x=0;x&lt;l.length;x++){var b,_=l[x],w=[30,10][x];if(d)b=f[_+&quot;Range&quot;];else{var T=o[_+&quot;Span&quot;],k=(T[h]||T[&quot;*&quot;])/2,M=r(&quot;projection.rotation.&quot;+_.substr(0,3),f.projRotate[x]);b=[M-k,M+k]}var A=r(_+&quot;.range&quot;,b);r(_+&quot;.tick0&quot;),r(_+&quot;.dtick&quot;,w),r(_+&quot;.showgrid&quot;,!!y&amp;&amp;void 0)&amp;&amp;(r(_+&quot;.gridcolor&quot;),r(_+&quot;.gridwidth&quot;)),e[_]._ax={type:&quot;linear&quot;,_id:_.slice(0,3),_traceIndices:s,setScale:n.identity,c2l:n.identity,r2l:n.identity,autorange:!0,range:A.slice(),_m:1,_input:{}}}var S=e.lonaxis.range,E=e.lataxis.range,C=S[0],L=S[1];C&gt;0&amp;&amp;L&lt;0&amp;&amp;(L+=360);var I,P,z,O=(C+L)/2;if(!p){var D=d?f.projRotate:[O,0,0];I=r(&quot;projection.rotation.lon&quot;,D[0]),r(&quot;projection.rotation.lat&quot;,D[1]),r(&quot;projection.rotation.roll&quot;,D[2]),r(&quot;showcoastlines&quot;,!d&amp;&amp;y)&amp;&amp;(r(&quot;coastlinecolor&quot;),r(&quot;coastlinewidth&quot;)),r(&quot;showocean&quot;,!!y&amp;&amp;void 0)&amp;&amp;r(&quot;oceancolor&quot;)}(p?(P=-96.6,z=38.7):(P=d?O:I,z=(E[0]+E[1])/2),r(&quot;center.lon&quot;,P),r(&quot;center.lat&quot;,z),g)&amp;&amp;r(&quot;projection.parallels&quot;,f.projParallels||[0,60]);r(&quot;projection.scale&quot;),r(&quot;showland&quot;,!!y&amp;&amp;void 0)&amp;&amp;r(&quot;landcolor&quot;),r(&quot;showlakes&quot;,!!y&amp;&amp;void 0)&amp;&amp;r(&quot;lakecolor&quot;),r(&quot;showrivers&quot;,!!y&amp;&amp;void 0)&amp;&amp;(r(&quot;rivercolor&quot;),r(&quot;riverwidth&quot;)),r(&quot;showcountries&quot;,d&amp;&amp;&quot;usa&quot;!==u&amp;&amp;y)&amp;&amp;(r(&quot;countrycolor&quot;),r(&quot;countrywidth&quot;)),(&quot;usa&quot;===u||&quot;north america&quot;===u&amp;&amp;50===c)&amp;&amp;(r(&quot;showsubunits&quot;,y),r(&quot;subunitcolor&quot;),r(&quot;subunitwidth&quot;)),d||r(&quot;showframe&quot;,y)&amp;&amp;(r(&quot;framecolor&quot;),r(&quot;framewidth&quot;)),r(&quot;bgcolor&quot;),r(&quot;fitbounds&quot;)&amp;&amp;(delete e.projection.scale,d?(delete e.center.lon,delete e.center.lat):m?(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon,delete e.projection.rotation.lat,delete e.lonaxis.range,delete e.lataxis.range):(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon))}e.exports=function(t,e,r){i(t,e,r,{type:&quot;geo&quot;,attributes:s,handleDefaults:c,fullData:r,partition:&quot;y&quot;})}},{&quot;../../lib&quot;:778,&quot;../get_data&quot;:865,&quot;../subplot_defaults&quot;:905,&quot;./constants&quot;:858,&quot;./layout_attributes&quot;:861}],863:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){function e(t,e){return{type:&quot;Feature&quot;,id:t.id,properties:t.properties,geometry:r(t.geometry,e)}}function r(e,n){if(!e)return null;if(&quot;GeometryCollection&quot;===e.type)return{type:&quot;GeometryCollection&quot;,geometries:object.geometries.map((function(t){return r(t,n)}))};if(!c.hasOwnProperty(e.type))return null;var i=c[e.type];return t.geo.stream(e,n(i)),i.result()}t.geo.project=function(t,e){var i=e.stream;if(!i)throw new Error(&quot;not yet supported&quot;);return(t&amp;&amp;n.hasOwnProperty(t.type)?n[t.type]:r)(t,i)};var n={Feature:e,FeatureCollection:function(t,r){return{type:&quot;FeatureCollection&quot;,features:t.features.map((function(t){return e(t,r)}))}}},i=[],a=[],o={point:function(t,e){i.push([t,e])},result:function(){var t=i.length?i.length&lt;2?{type:&quot;Point&quot;,coordinates:i[0]}:{type:&quot;MultiPoint&quot;,coordinates:i}:null;return i=[],t}},s={lineStart:u,point:function(t,e){i.push([t,e])},lineEnd:function(){i.length&amp;&amp;(a.push(i),i=[])},result:function(){var t=a.length?a.length&lt;2?{type:&quot;LineString&quot;,coordinates:a[0]}:{type:&quot;MultiLineString&quot;,coordinates:a}:null;return a=[],t}},l={polygonStart:u,lineStart:u,point:function(t,e){i.push([t,e])},lineEnd:function(){var t=i.length;if(t){do{i.push(i[0].slice())}while(++t&lt;4);a.push(i),i=[]}},polygonEnd:u,result:function(){if(!a.length)return null;var t=[],e=[];return a.forEach((function(r){!function(t){if((e=t.length)&lt;4)return!1;var e,r=0,n=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];for(;++r&lt;e;)n+=t[r-1][1]*t[r][0]-t[r-1][0]*t[r][1];return n&lt;=0}(r)?e.push(r):t.push([r])})),e.forEach((function(e){var r=e[0];t.some((function(t){if(function(t,e){for(var r=e[0],n=e[1],i=!1,a=0,o=t.length,s=o-1;a&lt;o;s=a++){var l=t[a],c=l[0],u=l[1],f=t[s],h=f[0],p=f[1];u&gt;n^p&gt;n&amp;&amp;r&lt;(h-c)*(n-u)/(p-u)+c&amp;&amp;(i=!i)}return i}(t[0],r))return t.push(e),!0}))||t.push([e])})),a=[],t.length?t.length&gt;1?{type:&quot;MultiPolygon&quot;,coordinates:t}:{type:&quot;Polygon&quot;,coordinates:t[0]}:null}},c={Point:o,MultiPoint:o,LineString:s,MultiLineString:s,Polygon:l,MultiPolygon:l,Sphere:l};function u(){}var f=1e-6,h=Math.PI,p=h/2,d=(Math.sqrt(h),h/180),g=180/h;function m(t){return t&gt;1?p:t&lt;-1?-p:Math.asin(t)}function v(t){return t&gt;1?0:t&lt;-1?h:Math.acos(t)}var y=t.geo.projection,x=t.geo.projectionMutator;function b(t,e){var r=(2+p)*Math.sin(e);e/=2;for(var n=0,i=1/0;n&lt;10&amp;&amp;Math.abs(i)&gt;f;n++){var a=Math.cos(e);e-=i=(e+Math.sin(e)*(a+2)-r)/(2*a*(1+a))}return[2/Math.sqrt(h*(4+h))*t*(1+Math.cos(e)),2*Math.sqrt(h/(4+h))*Math.sin(e)]}t.geo.interrupt=function(e){var r,n=[[[[-h,0],[0,p],[h,0]]],[[[-h,0],[0,-p],[h,0]]]];function i(t,r){for(var i=r&lt;0?-1:1,a=n[+(r&lt;0)],o=0,s=a.length-1;o&lt;s&amp;&amp;t&gt;a[o][2][0];++o);var l=e(t-a[o][1][0],r);return l[0]+=e(a[o][1][0],i*r&gt;i*a[o][0][1]?a[o][0][1]:r)[0],l}function a(){r=n.map((function(t){return t.map((function(t){var r,n=e(t[0][0],t[0][1])[0],i=e(t[2][0],t[2][1])[0],a=e(t[1][0],t[0][1])[1],o=e(t[1][0],t[1][1])[1];return a&gt;o&amp;&amp;(r=a,a=o,o=r),[[n,a],[i,o]]}))}))}e.invert&amp;&amp;(i.invert=function(t,a){for(var o=r[+(a&lt;0)],s=n[+(a&lt;0)],l=0,u=o.length;l&lt;u;++l){var f=o[l];if(f[0][0]&lt;=t&amp;&amp;t&lt;f[1][0]&amp;&amp;f[0][1]&lt;=a&amp;&amp;a&lt;f[1][1]){var h=e.invert(t-e(s[l][1][0],0)[0],a);return h[0]+=s[l][1][0],c(i(h[0],h[1]),[t,a])?h:null}}});var o=t.geo.projection(i),s=o.stream;function l(t,e){for(var r,n,i,a=-1,o=t.length,s=t[0],l=[];++a&lt;o;){n=((r=t[a])[0]-s[0])/e,i=(r[1]-s[1])/e;for(var c=0;c&lt;e;++c)l.push([s[0]+c*n,s[1]+c*i]);s=r}return l.push(r),l}function c(t,e){return Math.abs(t[0]-e[0])&lt;f&amp;&amp;Math.abs(t[1]-e[1])&lt;f}return o.stream=function(e){var r=o.rotate(),i=s(e),a=(o.rotate([0,0]),s(e));return o.rotate(r),i.sphere=function(){t.geo.stream(function(){for(var e=1e-6,r=[],i=0,a=n[0].length;i&lt;a;++i){var o=180*(p=n[0][i])[0][0]/h,s=180*p[0][1]/h,c=180*p[1][1]/h,u=180*p[2][0]/h,f=180*p[2][1]/h;r.push(l([[o+e,s+e],[o+e,c-e],[u-e,c-e],[u-e,f+e]],30))}for(i=n[1].length-1;i&gt;=0;--i){var p;o=180*(p=n[1][i])[0][0]/h,s=180*p[0][1]/h,c=180*p[1][1]/h,u=180*p[2][0]/h,f=180*p[2][1]/h;r.push(l([[u-e,f-e],[u-e,c+e],[o+e,c+e],[o+e,s-e]],30))}return{type:&quot;Polygon&quot;,coordinates:[t.merge(r)]}}(),a)},i},o.lobes=function(t){return arguments.length?(n=t.map((function(t){return t.map((function(t){return[[t[0][0]*h/180,t[0][1]*h/180],[t[1][0]*h/180,t[1][1]*h/180],[t[2][0]*h/180,t[2][1]*h/180]]}))})),a(),o):n.map((function(t){return t.map((function(t){return[[180*t[0][0]/h,180*t[0][1]/h],[180*t[1][0]/h,180*t[1][1]/h],[180*t[2][0]/h,180*t[2][1]/h]]}))}))},o},b.invert=function(t,e){var r=.5*e*Math.sqrt((4+h)/h),n=m(r),i=Math.cos(n);return[t/(2/Math.sqrt(h*(4+h))*(1+i)),m((n+r*(i+2))/(2+p))]},(t.geo.eckert4=function(){return y(b)}).raw=b;var _=t.geo.azimuthalEqualArea.raw;function w(t,e){if(arguments.length&lt;2&amp;&amp;(e=t),1===e)return _;if(e===1/0)return T;function r(r,n){var i=_(r/e,n);return i[0]*=t,i}return r.invert=function(r,n){var i=_.invert(r/t,n);return i[0]*=e,i},r}function T(t,e){return[t*Math.cos(e)/Math.cos(e/=2),2*Math.sin(e)]}function k(t,e){return[3*t/(2*h)*Math.sqrt(h*h/3-e*e),e]}function M(t,e){return[t,1.25*Math.log(Math.tan(h/4+.4*e))]}function A(t){return function(e){var r,n=t*Math.sin(e),i=30;do{e-=r=(e+Math.sin(e)-n)/(1+Math.cos(e))}while(Math.abs(r)&gt;f&amp;&amp;--i&gt;0);return e/2}}T.invert=function(t,e){var r=2*m(e/2);return[t*Math.cos(r/2)/Math.cos(r),r]},(t.geo.hammer=function(){var t=2,e=x(w),r=e(t);return r.coefficient=function(r){return arguments.length?e(t=+r):t},r}).raw=w,k.invert=function(t,e){return[2/3*h*t/Math.sqrt(h*h/3-e*e),e]},(t.geo.kavrayskiy7=function(){return y(k)}).raw=k,M.invert=function(t,e){return[t,2.5*Math.atan(Math.exp(.8*e))-.625*h]},(t.geo.miller=function(){return y(M)}).raw=M,A(h);var S=function(t,e,r){var n=A(r);function i(r,i){return[t*r*Math.cos(i=n(i)),e*Math.sin(i)]}return i.invert=function(n,i){var a=m(i/e);return[n/(t*Math.cos(a)),m((2*a+Math.sin(2*a))/r)]},i}(Math.SQRT2/p,Math.SQRT2,h);function E(t,e){var r=e*e,n=r*r;return[t*(.8707-.131979*r+n*(n*(.003971*r-.001529*n)-.013791)),e*(1.007226+r*(.015085+n*(.028874*r-.044475-.005916*n)))]}(t.geo.mollweide=function(){return y(S)}).raw=S,E.invert=function(t,e){var r,n=e,i=25;do{var a=n*n,o=a*a;n-=r=(n*(1.007226+a*(.015085+o*(.028874*a-.044475-.005916*o)))-e)/(1.007226+a*(.045255+o*(.259866*a-.311325-.005916*11*o)))}while(Math.abs(r)&gt;f&amp;&amp;--i&gt;0);return[t/(.8707+(a=n*n)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),n]},(t.geo.naturalEarth=function(){return y(E)}).raw=E;var C=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function L(t,e){var r,n=Math.min(18,36*Math.abs(e)/h),i=Math.floor(n),a=n-i,o=(r=C[i])[0],s=r[1],l=(r=C[++i])[0],c=r[1],u=(r=C[Math.min(19,++i)])[0],f=r[1];return[t*(l+a*(u-o)/2+a*a*(u-2*l+o)/2),(e&gt;0?p:-p)*(c+a*(f-s)/2+a*a*(f-2*c+s)/2)]}function I(t,e){return[t*Math.cos(e),e]}function P(t,e){var r,n=Math.cos(e),i=(r=v(n*Math.cos(t/=2)))?r/Math.sin(r):1;return[2*n*Math.sin(t)*i,Math.sin(e)*i]}function z(t,e){var r=P(t,e);return[(r[0]+t/p)/2,(r[1]+e)/2]}C.forEach((function(t){t[1]*=1.0144})),L.invert=function(t,e){var r=e/p,n=90*r,i=Math.min(18,Math.abs(n/5)),a=Math.max(0,Math.floor(i));do{var o=C[a][1],s=C[a+1][1],l=C[Math.min(19,a+2)][1],c=l-o,u=l-2*s+o,f=2*(Math.abs(r)-s)/c,h=u/c,m=f*(1-h*f*(1-2*h*f));if(m&gt;=0||1===a){n=(e&gt;=0?5:-5)*(m+i);var v,y=50;do{m=(i=Math.min(18,Math.abs(n)/5))-(a=Math.floor(i)),o=C[a][1],s=C[a+1][1],l=C[Math.min(19,a+2)][1],n-=(v=(e&gt;=0?p:-p)*(s+m*(l-o)/2+m*m*(l-2*s+o)/2)-e)*g}while(Math.abs(v)&gt;1e-12&amp;&amp;--y&gt;0);break}}while(--a&gt;=0);var x=C[a][0],b=C[a+1][0],_=C[Math.min(19,a+2)][0];return[t/(b+m*(_-x)/2+m*m*(_-2*b+x)/2),n*d]},(t.geo.robinson=function(){return y(L)}).raw=L,I.invert=function(t,e){return[t/Math.cos(e),e]},(t.geo.sinusoidal=function(){return y(I)}).raw=I,P.invert=function(t,e){if(!(t*t+4*e*e&gt;h*h+f)){var r=t,n=e,i=25;do{var a,o=Math.sin(r),s=Math.sin(r/2),l=Math.cos(r/2),c=Math.sin(n),u=Math.cos(n),p=Math.sin(2*n),d=c*c,g=u*u,m=s*s,y=1-g*l*l,x=y?v(u*l)*Math.sqrt(a=1/y):a=0,b=2*x*u*s-t,_=x*c-e,w=a*(g*m+x*u*l*d),T=a*(.5*o*p-2*x*c*s),k=.25*a*(p*s-x*c*g*o),M=a*(d*l+x*m*u),A=T*k-M*w;if(!A)break;var S=(_*T-b*M)/A,E=(b*k-_*w)/A;r-=S,n-=E}while((Math.abs(S)&gt;f||Math.abs(E)&gt;f)&amp;&amp;--i&gt;0);return[r,n]}},(t.geo.aitoff=function(){return y(P)}).raw=P,z.invert=function(t,e){var r=t,n=e,i=25;do{var a,o=Math.cos(n),s=Math.sin(n),l=Math.sin(2*n),c=s*s,u=o*o,h=Math.sin(r),d=Math.cos(r/2),g=Math.sin(r/2),m=g*g,y=1-u*d*d,x=y?v(o*d)*Math.sqrt(a=1/y):a=0,b=.5*(2*x*o*g+r/p)-t,_=.5*(x*s+n)-e,w=.5*a*(u*m+x*o*d*c)+.5/p,T=a*(h*l/4-x*s*g),k=.125*a*(l*g-x*s*u*h),M=.5*a*(c*d+x*m*o)+.5,A=T*k-M*w,S=(_*T-b*M)/A,E=(b*k-_*w)/A;r-=S,n-=E}while((Math.abs(S)&gt;f||Math.abs(E)&gt;f)&amp;&amp;--i&gt;0);return[r,n]},(t.geo.winkel3=function(){return y(z)}).raw=z}},{}],864:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;),o=Math.PI/180,s=180/Math.PI,l={cursor:&quot;pointer&quot;},c={cursor:&quot;auto&quot;};function u(t,e){return n.behavior.zoom().translate(e.translate()).scale(e.scale())}function f(t,e,r){var n=t.id,o=t.graphDiv,s=o.layout,l=s[n],c=o._fullLayout,u=c[n],f={},h={};function p(t,e){f[n+&quot;.&quot;+t]=i.nestedProperty(l,t).get(),a.call(&quot;_storeDirectGUIEdit&quot;,s,c._preGUI,f);var r=i.nestedProperty(u,t);r.get()!==e&amp;&amp;(r.set(e),i.nestedProperty(l,t).set(e),h[n+&quot;.&quot;+t]=e)}r(p),p(&quot;projection.scale&quot;,e.scale()/t.fitScale),p(&quot;fitbounds&quot;,!1),o.emit(&quot;plotly_relayout&quot;,h)}function h(t,e){var r=u(0,e);function i(r){var n=e.invert(t.midPt);r(&quot;center.lon&quot;,n[0]),r(&quot;center.lat&quot;,n[1])}return r.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l)})).on(&quot;zoom&quot;,(function(){e.scale(n.event.scale).translate(n.event.translate),t.render();var r=e.invert(t.midPt);t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.center.lon&quot;:r[0],&quot;geo.center.lat&quot;:r[1]})})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),f(t,e,i)})),r}function p(t,e){var r,i,a,o,s,h,p,d,g,m=u(0,e);function v(t){return e.invert(t)}function y(r){var n=e.rotate(),i=e.invert(t.midPt);r(&quot;projection.rotation.lon&quot;,-n[0]),r(&quot;center.lon&quot;,i[0]),r(&quot;center.lat&quot;,i[1])}return m.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l),r=n.mouse(this),i=e.rotate(),a=e.translate(),o=i,s=v(r)})).on(&quot;zoom&quot;,(function(){if(h=n.mouse(this),function(t){var r=v(t);if(!r)return!0;var n=e(r);return Math.abs(n[0]-t[0])&gt;2||Math.abs(n[1]-t[1])&gt;2}(r))return m.scale(e.scale()),void m.translate(e.translate());e.scale(n.event.scale),e.translate([a[0],n.event.translate[1]]),s?v(h)&amp;&amp;(d=v(h),p=[o[0]+(d[0]-s[0]),i[1],i[2]],e.rotate(p),o=p):s=v(r=h),g=!0,t.render();var l=e.rotate(),c=e.invert(t.midPt);t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.center.lon&quot;:c[0],&quot;geo.center.lat&quot;:c[1],&quot;geo.projection.rotation.lon&quot;:-l[0]})})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),g&amp;&amp;f(t,e,y)})),m}function d(t,e){var r,i={r:e.rotate(),k:e.scale()},a=u(0,e),o=function(t){var e=0,r=arguments.length,i=[];for(;++e&lt;r;)i.push(arguments[e]);var a=n.dispatch.apply(null,i);return a.of=function(e,r){return function(i){var o;try{o=i.sourceEvent=n.event,i.target=t,n.event=i,a[i.type].apply(e,r)}finally{n.event=o}}},a}(a,&quot;zoomstart&quot;,&quot;zoom&quot;,&quot;zoomend&quot;),s=0,h=a.on;function p(t){s++||t({type:&quot;zoomstart&quot;})}function d(t){t({type:&quot;zoom&quot;})}function b(t){--s||t({type:&quot;zoomend&quot;})}function _(t){var r=e.rotate();t(&quot;projection.rotation.lon&quot;,-r[0]),t(&quot;projection.rotation.lat&quot;,-r[1])}return a.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l);var t=n.mouse(this),s=e.rotate(),c=s,u=e.translate(),f=m(s);r=g(e,t),h.call(a,&quot;zoom&quot;,(function(){var a=n.mouse(this);if(e.scale(i.k=n.event.scale),r){if(g(e,a)){e.rotate(s).translate(u);var l=g(e,a),h=y(r,l),p=T(v(f,h)),m=i.r=x(p,r,c);isFinite(m[0])&amp;&amp;isFinite(m[1])&amp;&amp;isFinite(m[2])||(m=c),e.rotate(m),c=m}}else r=g(e,t=a);d(o.of(this,arguments))})),p(o.of(this,arguments))})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),h.call(a,&quot;zoom&quot;,null),b(o.of(this,arguments)),f(t,e,_)})).on(&quot;zoom.redraw&quot;,(function(){t.render();var r=e.rotate();t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.projection.rotation.lon&quot;:-r[0],&quot;geo.projection.rotation.lat&quot;:-r[1]})})),n.rebind(a,o,&quot;on&quot;)}function g(t,e){var r=t.invert(e);return r&amp;&amp;isFinite(r[0])&amp;&amp;isFinite(r[1])&amp;&amp;function(t){var e=t[0]*o,r=t[1]*o,n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}(r)}function m(t){var e=.5*t[0]*o,r=.5*t[1]*o,n=.5*t[2]*o,i=Math.sin(e),a=Math.cos(e),s=Math.sin(r),l=Math.cos(r),c=Math.sin(n),u=Math.cos(n);return[a*l*u+i*s*c,i*l*u-a*s*c,a*s*u+i*l*c,a*l*c-i*s*u]}function v(t,e){var r=t[0],n=t[1],i=t[2],a=t[3],o=e[0],s=e[1],l=e[2],c=e[3];return[r*o-n*s-i*l-a*c,r*s+n*o+i*c-a*l,r*l-n*c+i*o+a*s,r*c+n*l-i*s+a*o]}function y(t,e){if(t&amp;&amp;e){var r=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(t,e),n=Math.sqrt(k(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,k(t,e)))),a=Math.sin(i)/n;return n&amp;&amp;[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function x(t,e,r){var n=w(e,2,t[0]);n=w(n,1,t[1]),n=w(n,0,t[2]-r[2]);var i,a,o=e[0],l=e[1],c=e[2],u=n[0],f=n[1],h=n[2],p=Math.atan2(l,o)*s,d=Math.sqrt(o*o+l*l);Math.abs(f)&gt;d?(a=(f&gt;0?90:-90)-p,i=0):(a=Math.asin(f/d)*s-p,i=Math.sqrt(d*d-f*f));var g=180-a-2*p,m=(Math.atan2(h,u)-Math.atan2(c,i))*s,v=(Math.atan2(h,u)-Math.atan2(c,-i))*s;return b(r[0],r[1],a,m)&lt;=b(r[0],r[1],g,v)?[a,m,r[2]]:[g,v,r[2]]}function b(t,e,r,n){var i=_(r-t),a=_(n-e);return Math.sqrt(i*i+a*a)}function _(t){return(t%360+540)%360-180}function w(t,e,r){var n=r*o,i=t.slice(),a=0===e?1:0,s=2===e?1:2,l=Math.cos(n),c=Math.sin(n);return i[a]=t[a]*l-t[s]*c,i[s]=t[s]*l+t[a]*c,i}function T(t){return[Math.atan2(2*(t[0]*t[1]+t[2]*t[3]),1-2*(t[1]*t[1]+t[2]*t[2]))*s,Math.asin(Math.max(-1,Math.min(1,2*(t[0]*t[2]-t[3]*t[1]))))*s,Math.atan2(2*(t[0]*t[3]+t[1]*t[2]),1-2*(t[2]*t[2]+t[3]*t[3]))*s]}function k(t,e){for(var r=0,n=0,i=t.length;n&lt;i;++n)r+=t[n]*e[n];return r}e.exports=function(t,e){var r=t.projection;return(e._isScoped?h:e._isClipped?d:p)(t,r)}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,d3:169}],865:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;./cartesian/constants&quot;).SUBPLOT_PATTERN;r.getSubplotCalcData=function(t,e,r){var i=n.subplotsRegistry[e];if(!i)return[];for(var a=i.attr,o=[],s=0;s&lt;t.length;s++){var l=t[s];l[0].trace[a]===r&amp;&amp;o.push(l)}return o},r.getModuleCalcData=function(t,e){var r,i=[],a=[];if(!(r=&quot;string&quot;==typeof e?n.getModule(e).plot:&quot;function&quot;==typeof e?e:e.plot))return[i,t];for(var o=0;o&lt;t.length;o++){var s=t[o],l=s[0].trace;!0===l.visible&amp;&amp;0!==l._length&amp;&amp;(l._module.plot===r?i.push(s):a.push(s))}return[i,a]},r.getSubplotData=function(t,e,r){if(!n.subplotsRegistry[e])return[];var a,o,s,l=n.subplotsRegistry[e].attr,c=[];if(&quot;gl2d&quot;===e){var u=r.match(i);o=&quot;x&quot;+u[1],s=&quot;y&quot;+u[2]}for(var f=0;f&lt;t.length;f++)a=t[f],&quot;gl2d&quot;===e&amp;&amp;n.traceIs(a,&quot;gl2d&quot;)?a[l[0]]===o&amp;&amp;a[l[1]]===s&amp;&amp;c.push(a):a[l]===r&amp;&amp;c.push(a);return c}},{&quot;../registry&quot;:911,&quot;./cartesian/constants&quot;:834}],866:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mouse-change&quot;),i=t(&quot;mouse-wheel&quot;),a=t(&quot;mouse-event-offset&quot;),o=t(&quot;../cartesian/constants&quot;),s=t(&quot;has-passive-events&quot;);function l(t,e){this.element=t,this.plot=e,this.mouseListener=null,this.wheelListener=null,this.lastInputTime=Date.now(),this.lastPos=[0,0],this.boxEnabled=!1,this.boxInited=!1,this.boxStart=[0,0],this.boxEnd=[0,0],this.dragStart=[0,0]}e.exports=function(t){var e=t.mouseContainer,r=t.glplot,c=new l(e,r);function u(){t.xaxis.autorange=!1,t.yaxis.autorange=!1}function f(e,n,i){var a,s,l=t.calcDataBox(),f=r.viewBox,h=c.lastPos[0],p=c.lastPos[1],d=o.MINDRAG*r.pixelRatio,g=o.MINZOOM*r.pixelRatio;function m(e,r,n){var i=Math.min(r,n),a=Math.max(r,n);i!==a?(l[e]=i,l[e+2]=a,c.dataBox=l,t.setRanges(l)):(t.selectBox.selectBox=[0,0,1,1],t.glplot.setDirty())}switch(n*=r.pixelRatio,i*=r.pixelRatio,i=f[3]-f[1]-i,t.fullLayout.dragmode){case&quot;zoom&quot;:if(e){var v=n/(f[2]-f[0])*(l[2]-l[0])+l[0],y=i/(f[3]-f[1])*(l[3]-l[1])+l[1];c.boxInited||(c.boxStart[0]=v,c.boxStart[1]=y,c.dragStart[0]=n,c.dragStart[1]=i),c.boxEnd[0]=v,c.boxEnd[1]=y,c.boxInited=!0,c.boxEnabled||c.boxStart[0]===c.boxEnd[0]&amp;&amp;c.boxStart[1]===c.boxEnd[1]||(c.boxEnabled=!0);var x=Math.abs(c.dragStart[0]-n)&lt;g,b=Math.abs(c.dragStart[1]-i)&lt;g;if(!function(){for(var e=t.graphDiv._fullLayout._axisConstraintGroups,r=t.xaxis._id,n=t.yaxis._id,i=0;i&lt;e.length;i++)if(-1!==e[i][r]){if(-1!==e[i][n])return!0;break}return!1}()||x&amp;&amp;b)x&amp;&amp;(c.boxEnd[0]=c.boxStart[0]),b&amp;&amp;(c.boxEnd[1]=c.boxStart[1]);else{a=c.boxEnd[0]-c.boxStart[0],s=c.boxEnd[1]-c.boxStart[1];var _=(l[3]-l[1])/(l[2]-l[0]);Math.abs(a*_)&gt;Math.abs(s)?(c.boxEnd[1]=c.boxStart[1]+Math.abs(a)*_*(s&gt;=0?1:-1),c.boxEnd[1]&lt;l[1]?(c.boxEnd[1]=l[1],c.boxEnd[0]=c.boxStart[0]+(l[1]-c.boxStart[1])/Math.abs(_)):c.boxEnd[1]&gt;l[3]&amp;&amp;(c.boxEnd[1]=l[3],c.boxEnd[0]=c.boxStart[0]+(l[3]-c.boxStart[1])/Math.abs(_))):(c.boxEnd[0]=c.boxStart[0]+Math.abs(s)/_*(a&gt;=0?1:-1),c.boxEnd[0]&lt;l[0]?(c.boxEnd[0]=l[0],c.boxEnd[1]=c.boxStart[1]+(l[0]-c.boxStart[0])*Math.abs(_)):c.boxEnd[0]&gt;l[2]&amp;&amp;(c.boxEnd[0]=l[2],c.boxEnd[1]=c.boxStart[1]+(l[2]-c.boxStart[0])*Math.abs(_)))}}else c.boxEnabled?(a=c.boxStart[0]!==c.boxEnd[0],s=c.boxStart[1]!==c.boxEnd[1],a||s?(a&amp;&amp;(m(0,c.boxStart[0],c.boxEnd[0]),t.xaxis.autorange=!1),s&amp;&amp;(m(1,c.boxStart[1],c.boxEnd[1]),t.yaxis.autorange=!1),t.relayoutCallback()):t.glplot.setDirty(),c.boxEnabled=!1,c.boxInited=!1):c.boxInited&amp;&amp;(c.boxInited=!1);break;case&quot;pan&quot;:c.boxEnabled=!1,c.boxInited=!1,e?(c.panning||(c.dragStart[0]=n,c.dragStart[1]=i),Math.abs(c.dragStart[0]-n)&lt;d&amp;&amp;(n=c.dragStart[0]),Math.abs(c.dragStart[1]-i)&lt;d&amp;&amp;(i=c.dragStart[1]),a=(h-n)*(l[2]-l[0])/(r.viewBox[2]-r.viewBox[0]),s=(p-i)*(l[3]-l[1])/(r.viewBox[3]-r.viewBox[1]),l[0]+=a,l[2]+=a,l[1]+=s,l[3]+=s,t.setRanges(l),c.panning=!0,c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations()):c.panning&amp;&amp;(c.panning=!1,t.relayoutCallback())}c.lastPos[0]=n,c.lastPos[1]=i}return c.mouseListener=n(e,f),e.addEventListener(&quot;touchstart&quot;,(function(t){var r=a(t.changedTouches[0],e);f(0,r[0],r[1]),f(1,r[0],r[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),e.addEventListener(&quot;touchmove&quot;,(function(t){t.preventDefault();var r=a(t.changedTouches[0],e);f(1,r[0],r[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),e.addEventListener(&quot;touchend&quot;,(function(t){f(0,c.lastPos[0],c.lastPos[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),c.wheelListener=i(e,(function(e,n){if(!t.scrollZoom)return!1;var i=t.calcDataBox(),a=r.viewBox,o=c.lastPos[0],s=c.lastPos[1],l=Math.exp(5*n/(a[3]-a[1])),f=o/(a[2]-a[0])*(i[2]-i[0])+i[0],h=s/(a[3]-a[1])*(i[3]-i[1])+i[1];return i[0]=(i[0]-f)*l+f,i[2]=(i[2]-f)*l+f,i[1]=(i[1]-h)*l+h,i[3]=(i[3]-h)*l+h,t.setRanges(i),c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations(),t.relayoutCallback(),!0}),!0),c}},{&quot;../cartesian/constants&quot;:834,&quot;has-passive-events&quot;:441,&quot;mouse-change&quot;:483,&quot;mouse-event-offset&quot;:484,&quot;mouse-wheel&quot;:486}],867:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../cartesian/axes&quot;),i=t(&quot;../../lib/str2rgbarray&quot;);function a(t){this.scene=t,this.gl=t.gl,this.pixelRatio=t.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=[&quot;x&quot;,&quot;y&quot;],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title=&quot;&quot;,this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont=&quot;sans-serif&quot;,this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}var o=a.prototype,s=[&quot;xaxis&quot;,&quot;yaxis&quot;];o.merge=function(t){var e,r,n,a,o,l,c,u,f,h,p;for(this.titleEnable=!1,this.backgroundColor=i(t.plot_bgcolor),h=0;h&lt;2;++h){var d=(e=s[h]).charAt(0);for(n=(r=t[this.scene[e]._name]).title.text===this.scene.fullLayout._dfltTitle[d]?&quot;&quot;:r.title.text,p=0;p&lt;=2;p+=2)this.labelEnable[h+p]=!1,this.labels[h+p]=n,this.labelColor[h+p]=i(r.title.font.color),this.labelFont[h+p]=r.title.font.family,this.labelSize[h+p]=r.title.font.size,this.labelPad[h+p]=this.getLabelPad(e,r),this.tickEnable[h+p]=!1,this.tickColor[h+p]=i((r.tickfont||{}).color),this.tickAngle[h+p]=&quot;auto&quot;===r.tickangle?0:Math.PI*-r.tickangle/180,this.tickPad[h+p]=this.getTickPad(r),this.tickMarkLength[h+p]=0,this.tickMarkWidth[h+p]=r.tickwidth||0,this.tickMarkColor[h+p]=i(r.tickcolor),this.borderLineEnable[h+p]=!1,this.borderLineColor[h+p]=i(r.linecolor),this.borderLineWidth[h+p]=r.linewidth||0;c=this.hasSharedAxis(r),o=this.hasAxisInDfltPos(e,r)&amp;&amp;!c,l=this.hasAxisInAltrPos(e,r)&amp;&amp;!c,a=r.mirror||!1,u=c?-1!==String(a).indexOf(&quot;all&quot;):!!a,f=c?&quot;allticks&quot;===a:-1!==String(a).indexOf(&quot;ticks&quot;),o?this.labelEnable[h]=!0:l&amp;&amp;(this.labelEnable[h+2]=!0),o?this.tickEnable[h]=r.showticklabels:l&amp;&amp;(this.tickEnable[h+2]=r.showticklabels),(o||u)&amp;&amp;(this.borderLineEnable[h]=r.showline),(l||u)&amp;&amp;(this.borderLineEnable[h+2]=r.showline),(o||f)&amp;&amp;(this.tickMarkLength[h]=this.getTickMarkLength(r)),(l||f)&amp;&amp;(this.tickMarkLength[h+2]=this.getTickMarkLength(r)),this.gridLineEnable[h]=r.showgrid,this.gridLineColor[h]=i(r.gridcolor),this.gridLineWidth[h]=r.gridwidth,this.zeroLineEnable[h]=r.zeroline,this.zeroLineColor[h]=i(r.zerolinecolor),this.zeroLineWidth[h]=r.zerolinewidth}},o.hasSharedAxis=function(t){var e=this.scene,r=e.fullLayout._subplots.gl2d;return 0!==n.findSubplotsWithAxis(r,t).indexOf(e.id)},o.hasAxisInDfltPos=function(t,e){var r=e.side;return&quot;xaxis&quot;===t?&quot;bottom&quot;===r:&quot;yaxis&quot;===t?&quot;left&quot;===r:void 0},o.hasAxisInAltrPos=function(t,e){var r=e.side;return&quot;xaxis&quot;===t?&quot;top&quot;===r:&quot;yaxis&quot;===t?&quot;right&quot;===r:void 0},o.getLabelPad=function(t,e){var r=e.title.font.size,n=e.showticklabels;return&quot;xaxis&quot;===t?&quot;top&quot;===e.side?r*(1.5+(n?1:0))-10:r*(1.5+(n?.5:0))-10:&quot;yaxis&quot;===t?&quot;right&quot;===e.side?10+r*(1.5+(n?1:.5)):10+r*(1.5+(n?.5:0)):void 0},o.getTickPad=function(t){return&quot;outside&quot;===t.ticks?10+t.ticklen:15},o.getTickMarkLength=function(t){if(!t.ticks)return 0;var e=t.ticklen;return&quot;inside&quot;===t.ticks?-e:e},e.exports=function(t){return new a(t)}},{&quot;../../lib/str2rgbarray&quot;:802,&quot;../cartesian/axes&quot;:828}],868:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;./scene2d&quot;),a=t(&quot;../layout_attributes&quot;),o=t(&quot;../../constants/xmlns_namespaces&quot;),s=t(&quot;../cartesian/constants&quot;),l=t(&quot;../cartesian&quot;),c=t(&quot;../../components/fx/layout_attributes&quot;),u=t(&quot;../get_data&quot;).getSubplotData;r.name=&quot;gl2d&quot;,r.attr=[&quot;xaxis&quot;,&quot;yaxis&quot;],r.idRoot=[&quot;x&quot;,&quot;y&quot;],r.idRegex=s.idRegex,r.attrRegex=s.attrRegex,r.attributes=t(&quot;../cartesian/attributes&quot;),r.supplyLayoutDefaults=function(t,e,r){e._has(&quot;cartesian&quot;)||l.supplyLayoutDefaults(t,e,r)},r.layoutAttrOverrides=n(l.layoutAttributes,&quot;plot&quot;,&quot;from-root&quot;),r.baseLayoutAttrOverrides=n({plot_bgcolor:a.plot_bgcolor,hoverlabel:c.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl2d,a=0;a&lt;n.length;a++){var o=n[a],s=e._plots[o],l=u(r,&quot;gl2d&quot;,o),c=s._scene2d;void 0===c&amp;&amp;(c=new i({id:o,graphDiv:t,container:t.querySelector(&quot;.gl-container&quot;),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio},e),s._scene2d=c),c.plot(l,t.calcdata,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl2d||[],a=0;a&lt;i.length;a++){var o=i[a],s=n._plots[o];if(s._scene2d){var c=u(t,&quot;gl2d&quot;,o);0===c.length&amp;&amp;(s._scene2d.destroy(),delete n._plots[o])}}l.clean.apply(this,arguments)},r.drawFramework=function(t){t._context.staticPlot||l.drawFramework(t)},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n&lt;r.length;n++){var i=e._plots[r[n]]._scene2d,a=i.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:o.svg,&quot;xlink:href&quot;:a,x:0,y:0,width:&quot;100%&quot;,height:&quot;100%&quot;,preserveAspectRatio:&quot;none&quot;}),i.destroy()}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n&lt;r.length;n++){e._plots[r[n]]._scene2d.updateFx(e.dragmode)}}},{&quot;../../components/fx/layout_attributes&quot;:684,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../plot_api/edit_types&quot;:810,&quot;../cartesian&quot;:841,&quot;../cartesian/attributes&quot;:826,&quot;../cartesian/constants&quot;:834,&quot;../get_data&quot;:865,&quot;../layout_attributes&quot;:882,&quot;./scene2d&quot;:869}],869:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;../../registry&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;gl-plot2d&quot;),c=t(&quot;gl-spikes2d&quot;),u=t(&quot;gl-select-box&quot;),f=t(&quot;webgl-context&quot;),h=t(&quot;./convert&quot;),p=t(&quot;./camera&quot;),d=t(&quot;../../lib/show_no_webgl_msg&quot;),g=t(&quot;../cartesian/constraints&quot;),m=g.enforce,v=g.clean,y=t(&quot;../cartesian/autorange&quot;).doAutoRange,x=t(&quot;../../components/dragelement/helpers&quot;),b=x.drawMode,_=x.selectMode,w=[&quot;xaxis&quot;,&quot;yaxis&quot;],T=t(&quot;../cartesian/constants&quot;).SUBPLOT_PATTERN;function k(t,e){this.container=t.container,this.graphDiv=t.graphDiv,this.pixelRatio=t.plotGlPixelRatio||window.devicePixelRatio,this.id=t.id,this.staticPlot=!!t.staticPlot,this.scrollZoom=this.graphDiv._context._scrollZoom.cartesian,this.fullData=null,this.updateRefs(e),this.makeFramework(),this.stopped||(this.glplotOptions=h(this),this.glplotOptions.merge(e),this.glplot=l(this.glplotOptions),this.camera=p(this),this.traces={},this.spikes=c(this.glplot),this.selectBox=u(this.glplot,{innerFill:!1,outerFill:!0}),this.lastButtonState=0,this.pickResult=null,this.isMouseOver=!0,this.stopped=!1,this.redraw=this.draw.bind(this),this.redraw())}e.exports=k;var M=k.prototype;M.makeFramework=function(){if(this.staticPlot){if(!(i||(n=document.createElement(&quot;canvas&quot;),i=f({canvas:n,preserveDrawingBuffer:!1,premultipliedAlpha:!0,antialias:!0}))))throw new Error(&quot;Error creating static canvas/context for image server&quot;);this.canvas=n,this.gl=i}else{var t=this.container.querySelector(&quot;.gl-canvas-focus&quot;),e=f({canvas:t,preserveDrawingBuffer:!0,premultipliedAlpha:!0});if(!e)return d(this),void(this.stopped=!0);this.canvas=t,this.gl=e}var r=this.canvas;r.style.width=&quot;100%&quot;,r.style.height=&quot;100%&quot;,r.style.position=&quot;absolute&quot;,r.style.top=&quot;0px&quot;,r.style.left=&quot;0px&quot;,r.style[&quot;pointer-events&quot;]=&quot;none&quot;,this.updateSize(r);var a=this.svgContainer=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);a.style.position=&quot;absolute&quot;,a.style.top=a.style.left=&quot;0px&quot;,a.style.width=a.style.height=&quot;100%&quot;,a.style[&quot;z-index&quot;]=20,a.style[&quot;pointer-events&quot;]=&quot;none&quot;;var o=this.mouseContainer=document.createElement(&quot;div&quot;);o.style.position=&quot;absolute&quot;,o.style[&quot;pointer-events&quot;]=&quot;auto&quot;,this.pickCanvas=this.container.querySelector(&quot;.gl-canvas-pick&quot;);var s=this.container;s.appendChild(a),s.appendChild(o);var l=this;o.addEventListener(&quot;mouseout&quot;,(function(){l.isMouseOver=!1,l.unhover()})),o.addEventListener(&quot;mouseover&quot;,(function(){l.isMouseOver=!0}))},M.toImage=function(t){t||(t=&quot;png&quot;),this.stopped=!0,this.staticPlot&amp;&amp;this.container.appendChild(n),this.updateSize(this.canvas);var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.clearColor(1,1,1,0),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),this.glplot.setDirty(),this.glplot.draw(),e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a);for(var o=0,s=i-1;o&lt;s;++o,--s)for(var l=0;l&lt;r;++l)for(var c=0;c&lt;4;++c){var u=a[4*(r*o+l)+c];a[4*(r*o+l)+c]=a[4*(r*s+l)+c],a[4*(r*s+l)+c]=u}var f=document.createElement(&quot;canvas&quot;);f.width=r,f.height=i;var h,p=f.getContext(&quot;2d&quot;),d=p.createImageData(r,i);switch(d.data.set(a),p.putImageData(d,0,0),t){case&quot;jpeg&quot;:h=f.toDataURL(&quot;image/jpeg&quot;);break;case&quot;webp&quot;:h=f.toDataURL(&quot;image/webp&quot;);break;default:h=f.toDataURL(&quot;image/png&quot;)}return this.staticPlot&amp;&amp;this.container.removeChild(n),h},M.updateSize=function(t){t||(t=this.canvas);var e=this.pixelRatio,r=this.fullLayout,n=r.width,i=r.height,a=0|Math.ceil(e*n),o=0|Math.ceil(e*i);return t.width===a&amp;&amp;t.height===o||(t.width=a,t.height=o),t},M.computeTickMarks=function(){this.xaxis.setScale(),this.yaxis.setScale();for(var t=[o.calcTicks(this.xaxis),o.calcTicks(this.yaxis)],e=0;e&lt;2;++e)for(var r=0;r&lt;t[e].length;++r)t[e][r].text=t[e][r].text+&quot;&quot;;return t},M.updateRefs=function(t){this.fullLayout=t;var e=this.id.match(T),r=&quot;xaxis&quot;+e[1],n=&quot;yaxis&quot;+e[2];this.xaxis=this.fullLayout[r],this.yaxis=this.fullLayout[n]},M.relayoutCallback=function(){var t=this.graphDiv,e=this.xaxis,r=this.yaxis,n=t.layout,i={},o=i[e._name+&quot;.range&quot;]=e.range.slice(),s=i[r._name+&quot;.range&quot;]=r.range.slice();i[e._name+&quot;.autorange&quot;]=e.autorange,i[r._name+&quot;.autorange&quot;]=r.autorange,a.call(&quot;_storeDirectGUIEdit&quot;,t.layout,t._fullLayout._preGUI,i);var l=n[e._name];l.range=o,l.autorange=e.autorange;var c=n[r._name];c.range=s,c.autorange=r.autorange,i.lastInputTime=this.camera.lastInputTime,t.emit(&quot;plotly_relayout&quot;,i)},M.cameraChanged=function(){var t=this.camera;this.glplot.setDataBox(this.calcDataBox());var e=this.computeTickMarks();(function(t,e){for(var r=0;r&lt;2;++r){var n=t[r],i=e[r];if(n.length!==i.length)return!0;for(var a=0;a&lt;n.length;++a)if(n[a].x!==i[a].x)return!0}return!1})(e,this.glplotOptions.ticks)&amp;&amp;(this.glplotOptions.ticks=e,this.glplotOptions.dataBox=t.dataBox,this.glplot.update(this.glplotOptions),this.handleAnnotations())},M.handleAnnotations=function(){for(var t=this.graphDiv,e=this.fullLayout.annotations,r=0;r&lt;e.length;r++){var n=e[r];n.xref===this.xaxis._id&amp;&amp;n.yref===this.yaxis._id&amp;&amp;a.getComponentMethod(&quot;annotations&quot;,&quot;drawOne&quot;)(t,r)}},M.destroy=function(){if(this.glplot){var t=this.traces;t&amp;&amp;Object.keys(t).map((function(e){t[e].dispose(),delete t[e]})),this.glplot.dispose(),this.container.removeChild(this.svgContainer),this.container.removeChild(this.mouseContainer),this.fullData=null,this.glplot=null,this.stopped=!0,this.camera.mouseListener.enabled=!1,this.mouseContainer.removeEventListener(&quot;wheel&quot;,this.camera.wheelListener),this.camera=null}},M.plot=function(t,e,r){var n=this.glplot;this.updateRefs(r),this.xaxis.clearCalc(),this.yaxis.clearCalc(),this.updateTraces(t,e),this.updateFx(r.dragmode);var i=r.width,a=r.height;this.updateSize(this.canvas);var o=this.glplotOptions;o.merge(r),o.screenBox=[0,0,i,a];var s={_fullLayout:{_axisConstraintGroups:this.graphDiv._fullLayout._axisConstraintGroups,xaxis:this.xaxis,yaxis:this.yaxis}};v(s,this.xaxis),v(s,this.yaxis);var l,c,u=r._size,f=this.xaxis.domain,h=this.yaxis.domain;for(o.viewBox=[u.l+f[0]*u.w,u.b+h[0]*u.h,i-u.r-(1-f[1])*u.w,a-u.t-(1-h[1])*u.h],this.mouseContainer.style.width=u.w*(f[1]-f[0])+&quot;px&quot;,this.mouseContainer.style.height=u.h*(h[1]-h[0])+&quot;px&quot;,this.mouseContainer.height=u.h*(h[1]-h[0]),this.mouseContainer.style.left=u.l+f[0]*u.w+&quot;px&quot;,this.mouseContainer.style.top=u.t+(1-h[1])*u.h+&quot;px&quot;,c=0;c&lt;2;++c)(l=this[w[c]])._length=o.viewBox[c+2]-o.viewBox[c],y(this.graphDiv,l),l.setScale();m(s),o.ticks=this.computeTickMarks(),o.dataBox=this.calcDataBox(),o.merge(r),n.update(o),this.glplot.draw()},M.calcDataBox=function(){var t=this.xaxis,e=this.yaxis,r=t.range,n=e.range,i=t.r2l,a=e.r2l;return[i(r[0]),a(n[0]),i(r[1]),a(n[1])]},M.setRanges=function(t){var e=this.xaxis,r=this.yaxis,n=e.l2r,i=r.l2r;e.range=[n(t[0]),n(t[2])],r.range=[i(t[1]),i(t[3])]},M.updateTraces=function(t,e){var r,n,i,a=Object.keys(this.traces);this.fullData=t;t:for(r=0;r&lt;a.length;r++){var o=a[r],s=this.traces[o];for(n=0;n&lt;t.length;n++)if((i=t[n]).uid===o&amp;&amp;i.type===s.type)continue t;s.dispose(),delete this.traces[o]}for(r=0;r&lt;t.length;r++){i=t[r];var l=e[r],c=this.traces[i.uid];c?c.update(i,l):(c=i._module.plot(this,i,l),this.traces[i.uid]=c)}this.glplot.objects.sort((function(t,e){return t._trace.index-e._trace.index}))},M.updateFx=function(t){_(t)||b(t)?(this.pickCanvas.style[&quot;pointer-events&quot;]=&quot;none&quot;,this.mouseContainer.style[&quot;pointer-events&quot;]=&quot;none&quot;):(this.pickCanvas.style[&quot;pointer-events&quot;]=&quot;auto&quot;,this.mouseContainer.style[&quot;pointer-events&quot;]=&quot;auto&quot;),this.mouseContainer.style.cursor=&quot;pan&quot;===t?&quot;move&quot;:&quot;zoom&quot;===t?&quot;crosshair&quot;:null},M.emitPointAction=function(t,e){for(var r,n=t.trace.uid,i=t.pointIndex,a=0;a&lt;this.fullData.length;a++)this.fullData[a].uid===n&amp;&amp;(r=this.fullData[a]);var o={x:t.traceCoord[0],y:t.traceCoord[1],curveNumber:r.index,pointNumber:i,data:r._input,fullData:this.fullData,xaxis:this.xaxis,yaxis:this.yaxis};s.appendArrayPointValue(o,r,i),this.graphDiv.emit(e,{points:[o]})},M.draw=function(){if(!this.stopped){requestAnimationFrame(this.redraw);var t=this.glplot,e=this.camera,r=e.mouseListener,n=1===this.lastButtonState&amp;&amp;0===r.buttons,i=this.fullLayout;this.lastButtonState=r.buttons,this.cameraChanged();var a,o=r.x*t.pixelRatio,l=this.canvas.height-t.pixelRatio*r.y;if(e.boxEnabled&amp;&amp;&quot;zoom&quot;===i.dragmode){this.selectBox.enabled=!0;for(var c=this.selectBox.selectBox=[Math.min(e.boxStart[0],e.boxEnd[0]),Math.min(e.boxStart[1],e.boxEnd[1]),Math.max(e.boxStart[0],e.boxEnd[0]),Math.max(e.boxStart[1],e.boxEnd[1])],u=0;u&lt;2;u++)e.boxStart[u]===e.boxEnd[u]&amp;&amp;(c[u]=t.dataBox[u],c[u+2]=t.dataBox[u+2]);t.setDirty()}else if(!e.panning&amp;&amp;this.isMouseOver){this.selectBox.enabled=!1;var f=i._size,h=this.xaxis.domain,p=this.yaxis.domain,d=(a=t.pick(o/t.pixelRatio+f.l+h[0]*f.w,l/t.pixelRatio-(f.t+(1-p[1])*f.h)))&amp;&amp;a.object._trace.handlePick(a);if(d&amp;&amp;n&amp;&amp;this.emitPointAction(d,&quot;plotly_click&quot;),a&amp;&amp;&quot;skip&quot;!==a.object._trace.hoverinfo&amp;&amp;i.hovermode&amp;&amp;d&amp;&amp;(!this.lastPickResult||this.lastPickResult.traceUid!==d.trace.uid||this.lastPickResult.dataCoord[0]!==d.dataCoord[0]||this.lastPickResult.dataCoord[1]!==d.dataCoord[1])){var g=d;this.lastPickResult={traceUid:d.trace?d.trace.uid:null,dataCoord:d.dataCoord.slice()},this.spikes.update({center:a.dataCoord}),g.screenCoord=[((t.viewBox[2]-t.viewBox[0])*(a.dataCoord[0]-t.dataBox[0])/(t.dataBox[2]-t.dataBox[0])+t.viewBox[0])/t.pixelRatio,(this.canvas.height-(t.viewBox[3]-t.viewBox[1])*(a.dataCoord[1]-t.dataBox[1])/(t.dataBox[3]-t.dataBox[1])-t.viewBox[1])/t.pixelRatio],this.emitPointAction(d,&quot;plotly_hover&quot;);var m=this.fullData[g.trace.index]||{},v=g.pointIndex,y=s.castHoverinfo(m,i,v);if(y&amp;&amp;&quot;all&quot;!==y){var x=y.split(&quot;+&quot;);-1===x.indexOf(&quot;x&quot;)&amp;&amp;(g.traceCoord[0]=void 0),-1===x.indexOf(&quot;y&quot;)&amp;&amp;(g.traceCoord[1]=void 0),-1===x.indexOf(&quot;z&quot;)&amp;&amp;(g.traceCoord[2]=void 0),-1===x.indexOf(&quot;text&quot;)&amp;&amp;(g.textLabel=void 0),-1===x.indexOf(&quot;name&quot;)&amp;&amp;(g.name=void 0)}s.loneHover({x:g.screenCoord[0],y:g.screenCoord[1],xLabel:this.hoverFormatter(&quot;xaxis&quot;,g.traceCoord[0]),yLabel:this.hoverFormatter(&quot;yaxis&quot;,g.traceCoord[1]),zLabel:g.traceCoord[2],text:g.textLabel,name:g.name,color:s.castHoverOption(m,v,&quot;bgcolor&quot;)||g.color,borderColor:s.castHoverOption(m,v,&quot;bordercolor&quot;),fontFamily:s.castHoverOption(m,v,&quot;font.family&quot;),fontSize:s.castHoverOption(m,v,&quot;font.size&quot;),fontColor:s.castHoverOption(m,v,&quot;font.color&quot;),nameLength:s.castHoverOption(m,v,&quot;namelength&quot;),textAlign:s.castHoverOption(m,v,&quot;align&quot;)},{container:this.svgContainer,gd:this.graphDiv})}}a||this.unhover(),t.draw()}},M.unhover=function(){this.lastPickResult&amp;&amp;(this.spikes.update({}),this.lastPickResult=null,this.graphDiv.emit(&quot;plotly_unhover&quot;),s.loneUnhover(this.svgContainer))},M.hoverFormatter=function(t,e){if(void 0!==e){var r=this[t];return o.tickText(r,r.c2l(e),&quot;hover&quot;).text}}},{&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/fx&quot;:683,&quot;../../lib/show_no_webgl_msg&quot;:800,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../cartesian/autorange&quot;:827,&quot;../cartesian/constants&quot;:834,&quot;../cartesian/constraints&quot;:835,&quot;./camera&quot;:866,&quot;./convert&quot;:867,&quot;gl-plot2d&quot;:317,&quot;gl-select-box&quot;:333,&quot;gl-spikes2d&quot;:342,&quot;webgl-context&quot;:606}],870:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;../../components/fx/layout_attributes&quot;),a=t(&quot;./scene&quot;),o=t(&quot;../get_data&quot;).getSubplotData,s=t(&quot;../../lib&quot;),l=t(&quot;../../constants/xmlns_namespaces&quot;);r.name=&quot;gl3d&quot;,r.attr=&quot;scene&quot;,r.idRoot=&quot;scene&quot;,r.idRegex=r.attrRegex=s.counterRegex(&quot;scene&quot;),r.attributes=t(&quot;./layout/attributes&quot;),r.layoutAttributes=t(&quot;./layout/layout_attributes&quot;),r.baseLayoutAttrOverrides=n({hoverlabel:i.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.supplyLayoutDefaults=t(&quot;./layout/defaults&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl3d,i=0;i&lt;n.length;i++){var s=n[i],l=o(r,&quot;gl3d&quot;,s),c=e[s],u=c.camera,f=c._scene;f||(f=new a({id:s,graphDiv:t,container:t.querySelector(&quot;.gl-container&quot;),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio,camera:u},e),c._scene=f),f.viewInitial||(f.viewInitial={up:{x:u.up.x,y:u.up.y,z:u.up.z},eye:{x:u.eye.x,y:u.eye.y,z:u.eye.z},center:{x:u.center.x,y:u.center.y,z:u.center.z}}),f.plot(l,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl3d||[],a=0;a&lt;i.length;a++){var o=i[a];!e[o]&amp;&amp;n[o]._scene&amp;&amp;(n[o]._scene.destroy(),n._infolayer&amp;&amp;n._infolayer.selectAll(&quot;.annotation-&quot;+o).remove())}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=e._size,i=0;i&lt;r.length;i++){var a=e[r[i]],o=a.domain,s=a._scene,c=s.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:l.svg,&quot;xlink:href&quot;:c,x:n.l+n.w*o.x[0],y:n.t+n.h*(1-o.y[1]),width:n.w*(o.x[1]-o.x[0]),height:n.h*(o.y[1]-o.y[0]),preserveAspectRatio:&quot;none&quot;}),s.destroy()}},r.cleanId=function(t){if(t.match(/^scene[0-9]*$/)){var e=t.substr(5);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),&quot;scene&quot;+e}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n&lt;r.length;n++){e[r[n]]._scene.updateFx(e.dragmode,e.hovermode)}}},{&quot;../../components/fx/layout_attributes&quot;:684,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;../get_data&quot;:865,&quot;./layout/attributes&quot;:871,&quot;./layout/defaults&quot;:875,&quot;./layout/layout_attributes&quot;:876,&quot;./scene&quot;:880}],871:[function(t,e,r){&quot;use strict&quot;;e.exports={scene:{valType:&quot;subplotid&quot;,dflt:&quot;scene&quot;,editType:&quot;calc+clearAxisTypes&quot;}}},{}],872:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../components/color&quot;),i=t(&quot;../../cartesian/layout_attributes&quot;),a=t(&quot;../../../lib/extend&quot;).extendFlat,o=t(&quot;../../../plot_api/edit_types&quot;).overrideAll;e.exports=o({visible:i.visible,showspikes:{valType:&quot;boolean&quot;,dflt:!0},spikesides:{valType:&quot;boolean&quot;,dflt:!0},spikethickness:{valType:&quot;number&quot;,min:0,dflt:2},spikecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},showbackground:{valType:&quot;boolean&quot;,dflt:!1},backgroundcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(204, 204, 204, 0.5)&quot;},showaxeslabels:{valType:&quot;boolean&quot;,dflt:!0},color:i.color,categoryorder:i.categoryorder,categoryarray:i.categoryarray,title:{text:i.title.text,font:i.title.font},type:a({},i.type,{values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;]}),autotypenumbers:i.autotypenumbers,autorange:i.autorange,rangemode:i.rangemode,range:a({},i.range,{items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],anim:!1}),tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,mirror:i.mirror,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,tickfont:i.tickfont,tickangle:i.tickangle,tickprefix:i.tickprefix,showtickprefix:i.showtickprefix,ticksuffix:i.ticksuffix,showticksuffix:i.showticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickformat:i.tickformat,tickformatstops:i.tickformatstops,hoverformat:i.hoverformat,showline:i.showline,linecolor:i.linecolor,linewidth:i.linewidth,showgrid:i.showgrid,gridcolor:a({},i.gridcolor,{dflt:&quot;rgb(204, 204, 204)&quot;}),gridwidth:i.gridwidth,zeroline:i.zeroline,zerolinecolor:i.zerolinecolor,zerolinewidth:i.zerolinewidth,_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}},&quot;plot&quot;,&quot;from-root&quot;)},{&quot;../../../components/color&quot;:643,&quot;../../../lib/extend&quot;:768,&quot;../../../plot_api/edit_types&quot;:810,&quot;../../cartesian/layout_attributes&quot;:842}],873:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;).mix,i=t(&quot;../../../lib&quot;),a=t(&quot;../../../plot_api/plot_template&quot;),o=t(&quot;./axis_attributes&quot;),s=t(&quot;../../cartesian/type_defaults&quot;),l=t(&quot;../../cartesian/axis_defaults&quot;),c=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];e.exports=function(t,e,r){var u,f;function h(t,e){return i.coerce(u,f,o,t,e)}for(var p=0;p&lt;c.length;p++){var d=c[p];u=t[d]||{},(f=a.newContainer(e,d))._id=d[0]+r.scene,f._name=d,s(u,f,h,r),l(u,f,h,{font:r.font,letter:d[0],data:r.data,showGrid:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelposition:!0,bgColor:r.bgColor,calendar:r.calendar},r.fullLayout),h(&quot;gridcolor&quot;,n(f.color,r.bgColor,13600/187).toRgbString()),h(&quot;title.text&quot;,d[0]),f.setScale=i.noop,h(&quot;showspikes&quot;)&amp;&amp;(h(&quot;spikesides&quot;),h(&quot;spikethickness&quot;),h(&quot;spikecolor&quot;,f.color)),h(&quot;showaxeslabels&quot;),h(&quot;showbackground&quot;)&amp;&amp;h(&quot;backgroundcolor&quot;)}}},{&quot;../../../lib&quot;:778,&quot;../../../plot_api/plot_template&quot;:817,&quot;../../cartesian/axis_defaults&quot;:830,&quot;../../cartesian/type_defaults&quot;:853,&quot;./axis_attributes&quot;:872,tinycolor2:576}],874:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib/str2rgbarray&quot;),i=t(&quot;../../../lib&quot;),a=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function o(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],this.labelEnable=[!0,!0,!0],this.labelFont=[&quot;Open Sans&quot;,&quot;Open Sans&quot;,&quot;Open Sans&quot;],this.labelSize=[20,20,20],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}o.prototype.merge=function(t,e){for(var r=0;r&lt;3;++r){var o=e[a[r]];o.visible?(this.labels[r]=t._meta?i.templateString(o.title.text,t._meta):o.title.text,&quot;font&quot;in o.title&amp;&amp;(o.title.font.color&amp;&amp;(this.labelColor[r]=n(o.title.font.color)),o.title.font.family&amp;&amp;(this.labelFont[r]=o.title.font.family),o.title.font.size&amp;&amp;(this.labelSize[r]=o.title.font.size)),&quot;showline&quot;in o&amp;&amp;(this.lineEnable[r]=o.showline),&quot;linecolor&quot;in o&amp;&amp;(this.lineColor[r]=n(o.linecolor)),&quot;linewidth&quot;in o&amp;&amp;(this.lineWidth[r]=o.linewidth),&quot;showgrid&quot;in o&amp;&amp;(this.gridEnable[r]=o.showgrid),&quot;gridcolor&quot;in o&amp;&amp;(this.gridColor[r]=n(o.gridcolor)),&quot;gridwidth&quot;in o&amp;&amp;(this.gridWidth[r]=o.gridwidth),&quot;log&quot;===o.type?this.zeroEnable[r]=!1:&quot;zeroline&quot;in o&amp;&amp;(this.zeroEnable[r]=o.zeroline),&quot;zerolinecolor&quot;in o&amp;&amp;(this.zeroLineColor[r]=n(o.zerolinecolor)),&quot;zerolinewidth&quot;in o&amp;&amp;(this.zeroLineWidth[r]=o.zerolinewidth),&quot;ticks&quot;in o&amp;&amp;o.ticks?this.lineTickEnable[r]=!0:this.lineTickEnable[r]=!1,&quot;ticklen&quot;in o&amp;&amp;(this.lineTickLength[r]=this._defaultLineTickLength[r]=o.ticklen),&quot;tickcolor&quot;in o&amp;&amp;(this.lineTickColor[r]=n(o.tickcolor)),&quot;tickwidth&quot;in o&amp;&amp;(this.lineTickWidth[r]=o.tickwidth),&quot;tickangle&quot;in o&amp;&amp;(this.tickAngle[r]=&quot;auto&quot;===o.tickangle?-3600:Math.PI*-o.tickangle/180),&quot;showticklabels&quot;in o&amp;&amp;(this.tickEnable[r]=o.showticklabels),&quot;tickfont&quot;in o&amp;&amp;(o.tickfont.color&amp;&amp;(this.tickColor[r]=n(o.tickfont.color)),o.tickfont.family&amp;&amp;(this.tickFont[r]=o.tickfont.family),o.tickfont.size&amp;&amp;(this.tickSize[r]=o.tickfont.size)),&quot;mirror&quot;in o?-1!==[&quot;ticks&quot;,&quot;all&quot;,&quot;allticks&quot;].indexOf(o.mirror)?(this.lineTickMirror[r]=!0,this.lineMirror[r]=!0):!0===o.mirror?(this.lineTickMirror[r]=!1,this.lineMirror[r]=!0):(this.lineTickMirror[r]=!1,this.lineMirror[r]=!1):this.lineMirror[r]=!1,&quot;showbackground&quot;in o&amp;&amp;!1!==o.showbackground?(this.backgroundEnable[r]=!0,this.backgroundColor[r]=n(o.backgroundcolor)):this.backgroundEnable[r]=!1):(this.tickEnable[r]=!1,this.labelEnable[r]=!1,this.lineEnable[r]=!1,this.lineTickEnable[r]=!1,this.gridEnable[r]=!1,this.zeroEnable[r]=!1,this.backgroundEnable[r]=!1)}},e.exports=function(t,e){var r=new o;return r.merge(t,e),r}},{&quot;../../../lib&quot;:778,&quot;../../../lib/str2rgbarray&quot;:802}],875:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib&quot;),i=t(&quot;../../../components/color&quot;),a=t(&quot;../../../registry&quot;),o=t(&quot;../../subplot_defaults&quot;),s=t(&quot;./axis_defaults&quot;),l=t(&quot;./layout_attributes&quot;),c=t(&quot;../../get_data&quot;).getSubplotData;function u(t,e,r,n){for(var o=r(&quot;bgcolor&quot;),l=i.combine(o,n.paper_bgcolor),u=[&quot;up&quot;,&quot;center&quot;,&quot;eye&quot;],f=0;f&lt;u.length;f++)r(&quot;camera.&quot;+u[f]+&quot;.x&quot;),r(&quot;camera.&quot;+u[f]+&quot;.y&quot;),r(&quot;camera.&quot;+u[f]+&quot;.z&quot;);r(&quot;camera.projection.type&quot;);var h=!!r(&quot;aspectratio.x&quot;)&amp;&amp;!!r(&quot;aspectratio.y&quot;)&amp;&amp;!!r(&quot;aspectratio.z&quot;),p=r(&quot;aspectmode&quot;,h?&quot;manual&quot;:&quot;auto&quot;);h||(t.aspectratio=e.aspectratio={x:1,y:1,z:1},&quot;manual&quot;===p&amp;&amp;(e.aspectmode=&quot;auto&quot;),t.aspectmode=e.aspectmode);var d=c(n.fullData,&quot;gl3d&quot;,n.id);s(t,e,{font:n.font,scene:n.id,data:d,bgColor:l,calendar:n.calendar,autotypenumbersDflt:n.autotypenumbersDflt,fullLayout:n.fullLayout}),a.getComponentMethod(&quot;annotations3d&quot;,&quot;handleDefaults&quot;)(t,e,n);var g=n.getDfltFromLayout(&quot;dragmode&quot;);if(!1!==g&amp;&amp;!g)if(g=&quot;orbit&quot;,t.camera&amp;&amp;t.camera.up){var m=t.camera.up.x,v=t.camera.up.y,y=t.camera.up.z;0!==y&amp;&amp;(m&amp;&amp;v&amp;&amp;y?y/Math.sqrt(m*m+v*v+y*y)&gt;.999&amp;&amp;(g=&quot;turntable&quot;):g=&quot;turntable&quot;)}else g=&quot;turntable&quot;;r(&quot;dragmode&quot;,g),r(&quot;hovermode&quot;,n.getDfltFromLayout(&quot;hovermode&quot;))}e.exports=function(t,e,r){var i=e._basePlotModules.length&gt;1;o(t,e,r,{type:&quot;gl3d&quot;,attributes:l,handleDefaults:u,fullLayout:e,font:e.font,fullData:r,getDfltFromLayout:function(e){if(!i)return n.validate(t[e],l[e])?t[e]:void 0},autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,calendar:e.calendar})}},{&quot;../../../components/color&quot;:643,&quot;../../../lib&quot;:778,&quot;../../../registry&quot;:911,&quot;../../get_data&quot;:865,&quot;../../subplot_defaults&quot;:905,&quot;./axis_defaults&quot;:873,&quot;./layout_attributes&quot;:876}],876:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./axis_attributes&quot;),i=t(&quot;../../domain&quot;).attributes,a=t(&quot;../../../lib/extend&quot;).extendFlat,o=t(&quot;../../../lib&quot;).counterRegex;function s(t,e,r){return{x:{valType:&quot;number&quot;,dflt:t,editType:&quot;camera&quot;},y:{valType:&quot;number&quot;,dflt:e,editType:&quot;camera&quot;},z:{valType:&quot;number&quot;,dflt:r,editType:&quot;camera&quot;},editType:&quot;camera&quot;}}e.exports={_arrayAttrRegexps:[o(&quot;scene&quot;,&quot;.annotations&quot;,!0)],bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;plot&quot;},camera:{up:a(s(0,0,1),{}),center:a(s(0,0,0),{}),eye:a(s(1.25,1.25,1.25),{}),projection:{type:{valType:&quot;enumerated&quot;,values:[&quot;perspective&quot;,&quot;orthographic&quot;],dflt:&quot;perspective&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;camera&quot;},domain:i({name:&quot;scene&quot;,editType:&quot;plot&quot;}),aspectmode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;cube&quot;,&quot;data&quot;,&quot;manual&quot;],dflt:&quot;auto&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;aspectratio.x&quot;:void 0,&quot;aspectratio.y&quot;:void 0,&quot;aspectratio.z&quot;:void 0}},aspectratio:{x:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},y:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},z:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},editType:&quot;plot&quot;,impliedEdits:{aspectmode:&quot;manual&quot;}},xaxis:n,yaxis:n,zaxis:n,dragmode:{valType:&quot;enumerated&quot;,values:[&quot;orbit&quot;,&quot;turntable&quot;,&quot;zoom&quot;,&quot;pan&quot;,!1],editType:&quot;plot&quot;},hovermode:{valType:&quot;enumerated&quot;,values:[&quot;closest&quot;,!1],dflt:&quot;closest&quot;,editType:&quot;modebar&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;plot&quot;,_deprecated:{cameraposition:{valType:&quot;info_array&quot;,editType:&quot;camera&quot;}}}},{&quot;../../../lib&quot;:778,&quot;../../../lib/extend&quot;:768,&quot;../../domain&quot;:855,&quot;./axis_attributes&quot;:872}],877:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib/str2rgbarray&quot;),i=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function a(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}a.prototype.merge=function(t){for(var e=0;e&lt;3;++e){var r=t[i[e]];r.visible?(this.enabled[e]=r.showspikes,this.colors[e]=n(r.spikecolor),this.drawSides[e]=r.spikesides,this.lineWidth[e]=r.spikethickness):(this.enabled[e]=!1,this.drawSides[e]=!1)}},e.exports=function(t){var e=new a;return e.merge(t),e}},{&quot;../../../lib/str2rgbarray&quot;:802}],878:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.axesOptions,r=t.glplot.axesPixels,s=t.fullSceneLayout,l=[[],[],[]],c=0;c&lt;3;++c){var u=s[a[c]];if(u._length=(r[c].hi-r[c].lo)*r[c].pixelsPerDataUnit/t.dataScale[c],Math.abs(u._length)===1/0||isNaN(u._length))l[c]=[];else{u._input_range=u.range.slice(),u.range[0]=r[c].lo/t.dataScale[c],u.range[1]=r[c].hi/t.dataScale[c],u._m=1/(t.dataScale[c]*r[c].pixelsPerDataUnit),u.range[0]===u.range[1]&amp;&amp;(u.range[0]-=1,u.range[1]+=1);var f=u.tickmode;if(&quot;auto&quot;===u.tickmode){u.tickmode=&quot;linear&quot;;var h=u.nticks||i.constrain(u._length/40,4,9);n.autoTicks(u,Math.abs(u.range[1]-u.range[0])/h)}for(var p=n.calcTicks(u,{msUTC:!0}),d=0;d&lt;p.length;++d)p[d].x=p[d].x*t.dataScale[c],&quot;date&quot;===u.type&amp;&amp;(p[d].text=p[d].text.replace(/\&lt;br\&gt;/g,&quot; &quot;));l[c]=p,u.tickmode=f}}e.ticks=l;for(c=0;c&lt;3;++c){o[c]=.5*(t.glplot.bounds[0][c]+t.glplot.bounds[1][c]);for(d=0;d&lt;2;++d)e.bounds[d][c]=t.glplot.bounds[d][c]}t.contourLevels=function(t){for(var e=new Array(3),r=0;r&lt;3;++r){for(var n=t[r],i=new Array(n.length),a=0;a&lt;n.length;++a)i[a]=n[a].x;e[r]=i}return e}(l)};var n=t(&quot;../../cartesian/axes&quot;),i=t(&quot;../../../lib&quot;),a=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;],o=[0,0,0]},{&quot;../../../lib&quot;:778,&quot;../../cartesian/axes&quot;:828}],879:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r,n,i=[0,0,0,0];for(r=0;r&lt;4;++r)for(n=0;n&lt;4;++n)i[n]+=t[4*r+n]*e[r];return i}e.exports=function(t,e){return n(t.projection,n(t.view,n(t.model,[e[0],e[1],e[2],1])))}},{}],880:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;gl-plot3d&quot;),o=a.createCamera,s=a.createScene,l=t(&quot;webgl-context&quot;),c=t(&quot;has-passive-events&quot;),u=t(&quot;../../registry&quot;),f=t(&quot;../../lib&quot;),h=f.preserveDrawingBuffer(),p=t(&quot;../../plots/cartesian/axes&quot;),d=t(&quot;../../components/fx&quot;),g=t(&quot;../../lib/str2rgbarray&quot;),m=t(&quot;../../lib/show_no_webgl_msg&quot;),v=t(&quot;./project&quot;),y=t(&quot;./layout/convert&quot;),x=t(&quot;./layout/spikes&quot;),b=t(&quot;./layout/tick_marks&quot;);function _(t,e){var r=document.createElement(&quot;div&quot;),n=t.container;this.graphDiv=t.graphDiv;var i=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);i.style.position=&quot;absolute&quot;,i.style.top=i.style.left=&quot;0px&quot;,i.style.width=i.style.height=&quot;100%&quot;,i.style[&quot;z-index&quot;]=20,i.style[&quot;pointer-events&quot;]=&quot;none&quot;,r.appendChild(i),this.svgContainer=i,r.id=t.id,r.style.position=&quot;absolute&quot;,r.style.top=r.style.left=&quot;0px&quot;,r.style.width=r.style.height=&quot;100%&quot;,n.appendChild(r),this.fullLayout=e,this.id=t.id||&quot;scene&quot;,this.fullSceneLayout=e[this.id],this.plotArgs=[[],{},{}],this.axesOptions=y(e,e[this.id]),this.spikeOptions=x(e[this.id]),this.container=r,this.staticMode=!!t.staticPlot,this.pixelRatio=this.pixelRatio||t.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=u.getComponentMethod(&quot;annotations3d&quot;,&quot;convert&quot;),this.drawAnnotations=u.getComponentMethod(&quot;annotations3d&quot;,&quot;draw&quot;),this.initializeGLPlot()}var w=_.prototype;w.prepareOptions=function(){var t={canvas:this.canvas,gl:this.gl,glOptions:{preserveDrawingBuffer:h,premultipliedAlpha:!0,antialias:!0},container:this.container,axes:this.axesOptions,spikes:this.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:this.camera,pixelRatio:this.pixelRatio};if(this.staticMode){if(!(i||(n=document.createElement(&quot;canvas&quot;),i=l({canvas:n,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error(&quot;error creating static canvas/context for image server&quot;);t.gl=i,t.canvas=n}return t};var T=!0;w.tryCreatePlot=function(){var t=this.prepareOptions(),e=!0;try{this.glplot=s(t)}catch(r){if(this.staticMode||!T||h)e=!1;else{f.warn([&quot;webgl setup failed possibly due to&quot;,&quot;false preserveDrawingBuffer config.&quot;,&quot;The mobile/tablet device may not be detected by is-mobile module.&quot;,&quot;Enabling preserveDrawingBuffer in second attempt to create webgl scene...&quot;].join(&quot; &quot;));try{h=t.glOptions.preserveDrawingBuffer=!0,this.glplot=s(t)}catch(r){h=t.glOptions.preserveDrawingBuffer=!1,e=!1}}}return T=!1,e},w.initializeGLCamera=function(){var t=this.fullSceneLayout.camera,e=&quot;orthographic&quot;===t.projection.type;this.camera=o(this.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:e,zoomMin:.01,zoomMax:100,mode:&quot;orbit&quot;})},w.initializeGLPlot=function(){var t=this;if(t.initializeGLCamera(),!t.tryCreatePlot())return m(t);t.traces={},t.make4thDimension();var e=t.graphDiv,r=e.layout,n=function(){var e={};return t.isCameraChanged(r)&amp;&amp;(e[t.id+&quot;.camera&quot;]=t.getCamera()),t.isAspectChanged(r)&amp;&amp;(e[t.id+&quot;.aspectratio&quot;]=t.glplot.getAspectratio(),&quot;manual&quot;!==r[t.id].aspectmode&amp;&amp;(t.fullSceneLayout.aspectmode=r[t.id].aspectmode=e[t.id+&quot;.aspectmode&quot;]=&quot;manual&quot;)),e},i=function(t){if(!1!==t.fullSceneLayout.dragmode){var e=n();t.saveLayout(r),t.graphDiv.emit(&quot;plotly_relayout&quot;,e)}};return t.glplot.canvas&amp;&amp;(t.glplot.canvas.addEventListener(&quot;mouseup&quot;,(function(){i(t)})),t.glplot.canvas.addEventListener(&quot;wheel&quot;,(function(r){if(e._context._scrollZoom.gl3d){if(t.camera._ortho){var n=r.deltaX&gt;r.deltaY?1.1:1/1.1,a=t.glplot.getAspectratio();t.glplot.setAspectratio({x:n*a.x,y:n*a.y,z:n*a.z})}i(t)}}),!!c&amp;&amp;{passive:!1}),t.glplot.canvas.addEventListener(&quot;mousemove&quot;,(function(){if(!1!==t.fullSceneLayout.dragmode&amp;&amp;0!==t.camera.mouseListener.buttons){var e=n();t.graphDiv.emit(&quot;plotly_relayouting&quot;,e)}})),t.staticMode||t.glplot.canvas.addEventListener(&quot;webglcontextlost&quot;,(function(r){e&amp;&amp;e.emit&amp;&amp;e.emit(&quot;plotly_webglcontextlost&quot;,{event:r,layer:t.id})}),!1)),t.glplot.oncontextloss=function(){t.recoverContext()},t.glplot.onrender=function(){t.render()},!0},w.render=function(){var t,e=this,r=e.graphDiv,n=e.svgContainer,i=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var a=r._fullLayout._invScaleX,o=r._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,&quot;viewBox&quot;,&quot;0 0 &quot;+s+&quot; &quot;+l),n.setAttributeNS(null,&quot;width&quot;,s),n.setAttributeNS(null,&quot;height&quot;,l),b(e),e.glplot.axes.update(e.axesOptions);for(var c,u=Object.keys(e.traces),h=null,g=e.glplot.selection,m=0;m&lt;u.length;++m)&quot;skip&quot;!==(t=e.traces[u[m]]).data.hoverinfo&amp;&amp;t.handlePick(g)&amp;&amp;(h=t),t.setContourLevels&amp;&amp;t.setContourLevels();function y(t,r){var n=e.fullSceneLayout[t];return p.tickText(n,n.d2l(r),&quot;hover&quot;).text}if(null!==h){var x=v(e.glplot.cameraParams,g.dataCoordinate);t=h.data;var _,w=r._fullData[t.index],T=g.index,k={xLabel:y(&quot;xaxis&quot;,g.traceCoordinate[0]),yLabel:y(&quot;yaxis&quot;,g.traceCoordinate[1]),zLabel:y(&quot;zaxis&quot;,g.traceCoordinate[2])},M=d.castHoverinfo(w,e.fullLayout,T),A=(M||&quot;&quot;).split(&quot;+&quot;),S=M&amp;&amp;&quot;all&quot;===M;w.hovertemplate||S||(-1===A.indexOf(&quot;x&quot;)&amp;&amp;(k.xLabel=void 0),-1===A.indexOf(&quot;y&quot;)&amp;&amp;(k.yLabel=void 0),-1===A.indexOf(&quot;z&quot;)&amp;&amp;(k.zLabel=void 0),-1===A.indexOf(&quot;text&quot;)&amp;&amp;(g.textLabel=void 0),-1===A.indexOf(&quot;name&quot;)&amp;&amp;(h.name=void 0));var E=[];&quot;cone&quot;===t.type||&quot;streamtube&quot;===t.type?(k.uLabel=y(&quot;xaxis&quot;,g.traceCoordinate[3]),(S||-1!==A.indexOf(&quot;u&quot;))&amp;&amp;E.push(&quot;u: &quot;+k.uLabel),k.vLabel=y(&quot;yaxis&quot;,g.traceCoordinate[4]),(S||-1!==A.indexOf(&quot;v&quot;))&amp;&amp;E.push(&quot;v: &quot;+k.vLabel),k.wLabel=y(&quot;zaxis&quot;,g.traceCoordinate[5]),(S||-1!==A.indexOf(&quot;w&quot;))&amp;&amp;E.push(&quot;w: &quot;+k.wLabel),k.normLabel=g.traceCoordinate[6].toPrecision(3),(S||-1!==A.indexOf(&quot;norm&quot;))&amp;&amp;E.push(&quot;norm: &quot;+k.normLabel),&quot;streamtube&quot;===t.type&amp;&amp;(k.divergenceLabel=g.traceCoordinate[7].toPrecision(3),(S||-1!==A.indexOf(&quot;divergence&quot;))&amp;&amp;E.push(&quot;divergence: &quot;+k.divergenceLabel)),g.textLabel&amp;&amp;E.push(g.textLabel),_=E.join(&quot;&lt;br&gt;&quot;)):&quot;isosurface&quot;===t.type||&quot;volume&quot;===t.type?(k.valueLabel=p.tickText(e._mockAxis,e._mockAxis.d2l(g.traceCoordinate[3]),&quot;hover&quot;).text,E.push(&quot;value: &quot;+k.valueLabel),g.textLabel&amp;&amp;E.push(g.textLabel),_=E.join(&quot;&lt;br&gt;&quot;)):_=g.textLabel;var C={x:g.traceCoordinate[0],y:g.traceCoordinate[1],z:g.traceCoordinate[2],data:w._input,fullData:w,curveNumber:w.index,pointNumber:T};d.appendArrayPointValue(C,w,T),t._module.eventData&amp;&amp;(C=w._module.eventData(C,g,w,{},T));var L={points:[C]};e.fullSceneLayout.hovermode&amp;&amp;d.loneHover({trace:w,x:(.5+.5*x[0]/x[3])*s,y:(.5-.5*x[1]/x[3])*l,xLabel:k.xLabel,yLabel:k.yLabel,zLabel:k.zLabel,text:_,name:h.name,color:d.castHoverOption(w,T,&quot;bgcolor&quot;)||h.color,borderColor:d.castHoverOption(w,T,&quot;bordercolor&quot;),fontFamily:d.castHoverOption(w,T,&quot;font.family&quot;),fontSize:d.castHoverOption(w,T,&quot;font.size&quot;),fontColor:d.castHoverOption(w,T,&quot;font.color&quot;),nameLength:d.castHoverOption(w,T,&quot;namelength&quot;),textAlign:d.castHoverOption(w,T,&quot;align&quot;),hovertemplate:f.castOption(w,T,&quot;hovertemplate&quot;),hovertemplateLabels:f.extendFlat({},C,k),eventData:[C]},{container:n,gd:r}),g.buttons&amp;&amp;g.distance&lt;5?r.emit(&quot;plotly_click&quot;,L):r.emit(&quot;plotly_hover&quot;,L),c=L}else d.loneUnhover(n),r.emit(&quot;plotly_unhover&quot;,c);e.drawAnnotations(e)},w.recoverContext=function(){var t=this;t.glplot.dispose();var e=function(){t.glplot.gl.isContextLost()?requestAnimationFrame(e):t.initializeGLPlot()?t.plot.apply(t,t.plotArgs):f.error(&quot;Catastrophic and unrecoverable WebGL error. Context lost.&quot;)};requestAnimationFrame(e)};var k=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function M(t,e,r){for(var n=t.fullSceneLayout,i=0;i&lt;3;i++){var a=k[i],o=a.charAt(0),s=n[a],l=e[o],c=e[o+&quot;calendar&quot;],u=e[&quot;_&quot;+o+&quot;length&quot;];if(f.isArrayOrTypedArray(l))for(var h,p=0;p&lt;(u||l.length);p++)if(f.isArrayOrTypedArray(l[p]))for(var d=0;d&lt;l[p].length;++d)h=s.d2l(l[p][d],0,c),!isNaN(h)&amp;&amp;isFinite(h)&amp;&amp;(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else h=s.d2l(l[p],0,c),!isNaN(h)&amp;&amp;isFinite(h)&amp;&amp;(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],u-1)}}w.plot=function(t,e,r){if(this.plotArgs=[t,e,r],!this.glplot.contextLost){var n,i,a,o,s,l,c=e[this.id],u=r[this.id];this.fullLayout=e,this.fullSceneLayout=c,this.axesOptions.merge(e,c),this.spikeOptions.merge(c),this.setViewport(c),this.updateFx(c.dragmode,c.hovermode),this.camera.enableWheel=this.graphDiv._context._scrollZoom.gl3d,this.glplot.setClearColor(g(c.bgcolor)),this.setConvert(s),t?Array.isArray(t)||(t=[t]):t=[];var f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(a=0;a&lt;t.length;++a)!0===(n=t[a]).visible&amp;&amp;0!==n._length&amp;&amp;M(this,n,f);!function(t,e){for(var r=t.fullSceneLayout,n=r.annotations||[],i=0;i&lt;3;i++)for(var a=k[i],o=a.charAt(0),s=r[a],l=0;l&lt;n.length;l++){var c=n[l];if(c.visible){var u=s.r2l(c[o]);!isNaN(u)&amp;&amp;isFinite(u)&amp;&amp;(e[0][i]=Math.min(e[0][i],u),e[1][i]=Math.max(e[1][i],u))}}}(this,f);var h=[1,1,1];for(o=0;o&lt;3;++o)f[1][o]===f[0][o]?h[o]=1:h[o]=1/(f[1][o]-f[0][o]);for(this.dataScale=h,this.convertAnnotations(this),a=0;a&lt;t.length;++a)!0===(n=t[a]).visible&amp;&amp;0!==n._length&amp;&amp;((i=this.traces[n.uid])?i.data.type===n.type?i.update(n):(i.dispose(),i=n._module.plot(this,n),this.traces[n.uid]=i):(i=n._module.plot(this,n),this.traces[n.uid]=i),i.name=n.name);var p=Object.keys(this.traces);t:for(a=0;a&lt;p.length;++a){for(o=0;o&lt;t.length;++o)if(t[o].uid===p[a]&amp;&amp;!0===t[o].visible&amp;&amp;0!==t[o]._length)continue t;(i=this.traces[p[a]]).dispose(),delete this.traces[p[a]]}this.glplot.objects.sort((function(t,e){return t._trace.data.index-e._trace.data.index}));var d,m=[[0,0,0],[0,0,0]],v=[],y={};for(a=0;a&lt;3;++a){if((l=(s=c[k[a]]).type)in y?(y[l].acc*=h[a],y[l].count+=1):y[l]={acc:h[a],count:1},s.autorange){m[0][a]=1/0,m[1][a]=-1/0;var x=this.glplot.objects,b=this.fullSceneLayout.annotations||[],_=s._name.charAt(0);for(o=0;o&lt;x.length;o++){var w=x[o],T=w.bounds,A=w._trace.data._pad||0;&quot;ErrorBars&quot;===w.constructor.name&amp;&amp;s._lowerLogErrorBound?m[0][a]=Math.min(m[0][a],s._lowerLogErrorBound):m[0][a]=Math.min(m[0][a],T[0][a]/h[a]-A),m[1][a]=Math.max(m[1][a],T[1][a]/h[a]+A)}for(o=0;o&lt;b.length;o++){var S=b[o];if(S.visible){var E=s.r2l(S[_]);m[0][a]=Math.min(m[0][a],E),m[1][a]=Math.max(m[1][a],E)}}if(&quot;rangemode&quot;in s&amp;&amp;&quot;tozero&quot;===s.rangemode&amp;&amp;(m[0][a]=Math.min(m[0][a],0),m[1][a]=Math.max(m[1][a],0)),m[0][a]&gt;m[1][a])m[0][a]=-1,m[1][a]=1;else{var C=m[1][a]-m[0][a];m[0][a]-=C/32,m[1][a]+=C/32}if(&quot;reversed&quot;===s.autorange){var L=m[0][a];m[0][a]=m[1][a],m[1][a]=L}}else{var I=s.range;m[0][a]=s.r2l(I[0]),m[1][a]=s.r2l(I[1])}m[0][a]===m[1][a]&amp;&amp;(m[0][a]-=1,m[1][a]+=1),v[a]=m[1][a]-m[0][a],this.glplot.setBounds(a,{min:m[0][a]*h[a],max:m[1][a]*h[a]})}var P=c.aspectmode;if(&quot;cube&quot;===P)d=[1,1,1];else if(&quot;manual&quot;===P){var z=c.aspectratio;d=[z.x,z.y,z.z]}else{if(&quot;auto&quot;!==P&amp;&amp;&quot;data&quot;!==P)throw new Error(&quot;scene.js aspectRatio was not one of the enumerated types&quot;);var O=[1,1,1];for(a=0;a&lt;3;++a){var D=y[l=(s=c[k[a]]).type];O[a]=Math.pow(D.acc,1/D.count)/h[a]}d=&quot;data&quot;===P||Math.max.apply(null,O)/Math.min.apply(null,O)&lt;=4?O:[1,1,1]}c.aspectratio.x=u.aspectratio.x=d[0],c.aspectratio.y=u.aspectratio.y=d[1],c.aspectratio.z=u.aspectratio.z=d[2],this.glplot.setAspectratio(c.aspectratio),this.viewInitial.aspectratio||(this.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),this.viewInitial.aspectmode||(this.viewInitial.aspectmode=c.aspectmode);var R=c.domain||null,F=e._size||null;if(R&amp;&amp;F){var B=this.container.style;B.position=&quot;absolute&quot;,B.left=F.l+R.x[0]*F.w+&quot;px&quot;,B.top=F.t+(1-R.y[1])*F.h+&quot;px&quot;,B.width=F.w*(R.x[1]-R.x[0])+&quot;px&quot;,B.height=F.h*(R.y[1]-R.y[0])+&quot;px&quot;}this.glplot.redraw()}},w.destroy=function(){this.glplot&amp;&amp;(this.camera.mouseListener.enabled=!1,this.container.removeEventListener(&quot;wheel&quot;,this.camera.wheelListener),this.camera=null,this.glplot.dispose(),this.container.parentNode.removeChild(this.container),this.glplot=null)},w.getCamera=function(){var t;return this.camera.view.recalcMatrix(this.camera.view.lastT()),{up:{x:(t=this.camera).up[0],y:t.up[1],z:t.up[2]},center:{x:t.center[0],y:t.center[1],z:t.center[2]},eye:{x:t.eye[0],y:t.eye[1],z:t.eye[2]},projection:{type:!0===t._ortho?&quot;orthographic&quot;:&quot;perspective&quot;}}},w.setViewport=function(t){var e,r=t.camera;this.camera.lookAt.apply(this,[[(e=r).eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]),this.glplot.setAspectratio(t.aspectratio),&quot;orthographic&quot;===r.projection.type!==this.camera._ortho&amp;&amp;(this.glplot.redraw(),this.glplot.clearRGBA(),this.glplot.dispose(),this.initializeGLPlot())},w.isCameraChanged=function(t){var e=this.getCamera(),r=f.nestedProperty(t,this.id+&quot;.camera&quot;).get();function n(t,e,r,n){var i=[&quot;up&quot;,&quot;center&quot;,&quot;eye&quot;],a=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];return e[i[r]]&amp;&amp;t[i[r]][a[n]]===e[i[r]][a[n]]}var i=!1;if(void 0===r)i=!0;else{for(var a=0;a&lt;3;a++)for(var o=0;o&lt;3;o++)if(!n(e,r,a,o)){i=!0;break}(!r.projection||e.projection&amp;&amp;e.projection.type!==r.projection.type)&amp;&amp;(i=!0)}return i},w.isAspectChanged=function(t){var e=this.glplot.getAspectratio(),r=f.nestedProperty(t,this.id+&quot;.aspectratio&quot;).get();return void 0===r||r.x!==e.x||r.y!==e.y||r.z!==e.z},w.saveLayout=function(t){var e,r,n,i,a,o,s=this.fullLayout,l=this.isCameraChanged(t),c=this.isAspectChanged(t),h=l||c;if(h){var p={};if(l&amp;&amp;(e=this.getCamera(),n=(r=f.nestedProperty(t,this.id+&quot;.camera&quot;)).get(),p[this.id+&quot;.camera&quot;]=n),c&amp;&amp;(i=this.glplot.getAspectratio(),o=(a=f.nestedProperty(t,this.id+&quot;.aspectratio&quot;)).get(),p[this.id+&quot;.aspectratio&quot;]=o),u.call(&quot;_storeDirectGUIEdit&quot;,t,s._preGUI,p),l)r.set(e),f.nestedProperty(s,this.id+&quot;.camera&quot;).set(e);if(c)a.set(i),f.nestedProperty(s,this.id+&quot;.aspectratio&quot;).set(i),this.glplot.redraw()}return h},w.updateFx=function(t,e){var r=this.camera;if(r)if(&quot;orbit&quot;===t)r.mode=&quot;orbit&quot;,r.keyBindingMode=&quot;rotate&quot;;else if(&quot;turntable&quot;===t){r.up=[0,0,1],r.mode=&quot;turntable&quot;,r.keyBindingMode=&quot;rotate&quot;;var n=this.graphDiv,i=n._fullLayout,a=this.fullSceneLayout.camera,o=a.up.x,s=a.up.y,l=a.up.z;if(l/Math.sqrt(o*o+s*s+l*l)&lt;.999){var c=this.id+&quot;.camera.up&quot;,h={x:0,y:0,z:1},p={};p[c]=h;var d=n.layout;u.call(&quot;_storeDirectGUIEdit&quot;,d,i._preGUI,p),a.up=h,f.nestedProperty(d,c).set(h)}}else r.keyBindingMode=t;this.fullSceneLayout.hovermode=e},w.toImage=function(t){t||(t=&quot;png&quot;),this.staticMode&amp;&amp;this.container.appendChild(n),this.glplot.redraw();var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a),function(t,e,r){for(var n=0,i=r-1;n&lt;i;++n,--i)for(var a=0;a&lt;e;++a)for(var o=0;o&lt;4;++o){var s=4*(e*n+a)+o,l=4*(e*i+a)+o,c=t[s];t[s]=t[l],t[l]=c}}(a,r,i),function(t,e,r){for(var n=0;n&lt;r;++n)for(var i=0;i&lt;e;++i){var a=4*(e*n+i),o=t[a+3];if(o&gt;0)for(var s=255/o,l=0;l&lt;3;++l)t[a+l]=Math.min(s*t[a+l],255)}}(a,r,i);var o=document.createElement(&quot;canvas&quot;);o.width=r,o.height=i;var s,l=o.getContext(&quot;2d&quot;),c=l.createImageData(r,i);switch(c.data.set(a),l.putImageData(c,0,0),t){case&quot;jpeg&quot;:s=o.toDataURL(&quot;image/jpeg&quot;);break;case&quot;webp&quot;:s=o.toDataURL(&quot;image/webp&quot;);break;default:s=o.toDataURL(&quot;image/png&quot;)}return this.staticMode&amp;&amp;this.container.removeChild(n),s},w.setConvert=function(){for(var t=0;t&lt;3;t++){var e=this.fullSceneLayout[k[t]];p.setConvert(e,this.fullLayout),e.setScale=f.noop}},w.make4thDimension=function(){var t=this.graphDiv._fullLayout;this._mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},p.setConvert(this._mockAxis,t)},e.exports=_},{&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/show_no_webgl_msg&quot;:800,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./layout/convert&quot;:874,&quot;./layout/spikes&quot;:877,&quot;./layout/tick_marks&quot;:878,&quot;./project&quot;:879,&quot;gl-plot3d&quot;:321,&quot;has-passive-events&quot;:441,&quot;webgl-context&quot;:606}],881:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){n=n||t.length;for(var i=new Array(n),a=0;a&lt;n;a++)i[a]=[t[a],e[a],r[a]];return i}},{}],882:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./font_attributes&quot;),i=t(&quot;./animation_attributes&quot;),a=t(&quot;../components/color/attributes&quot;),o=t(&quot;../components/shapes/draw_newshape/attributes&quot;),s=t(&quot;./pad_attributes&quot;),l=t(&quot;../lib/extend&quot;).extendFlat,c=n({editType:&quot;calc&quot;});c.family.dflt='&quot;Open Sans&quot;, verdana, arial, sans-serif',c.size.dflt=12,c.color.dflt=a.defaultLine,e.exports={font:c,title:{text:{valType:&quot;string&quot;,editType:&quot;layoutstyle&quot;},font:n({editType:&quot;layoutstyle&quot;}),xref:{valType:&quot;enumerated&quot;,dflt:&quot;container&quot;,values:[&quot;container&quot;,&quot;paper&quot;],editType:&quot;layoutstyle&quot;},yref:{valType:&quot;enumerated&quot;,dflt:&quot;container&quot;,values:[&quot;container&quot;,&quot;paper&quot;],editType:&quot;layoutstyle&quot;},x:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;layoutstyle&quot;},y:{valType:&quot;number&quot;,min:0,max:1,dflt:&quot;auto&quot;,editType:&quot;layoutstyle&quot;},xanchor:{valType:&quot;enumerated&quot;,dflt:&quot;auto&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;layoutstyle&quot;},yanchor:{valType:&quot;enumerated&quot;,dflt:&quot;auto&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;layoutstyle&quot;},pad:l(s({editType:&quot;layoutstyle&quot;}),{}),editType:&quot;layoutstyle&quot;},uniformtext:{mode:{valType:&quot;enumerated&quot;,values:[!1,&quot;hide&quot;,&quot;show&quot;],dflt:!1,editType:&quot;plot&quot;},minsize:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},autosize:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;none&quot;},width:{valType:&quot;number&quot;,min:10,dflt:700,editType:&quot;plot&quot;},height:{valType:&quot;number&quot;,min:10,dflt:450,editType:&quot;plot&quot;},margin:{l:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},r:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},t:{valType:&quot;number&quot;,min:0,dflt:100,editType:&quot;plot&quot;},b:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},pad:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},autoexpand:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},computed:{valType:&quot;any&quot;,editType:&quot;none&quot;},paper_bgcolor:{valType:&quot;color&quot;,dflt:a.background,editType:&quot;plot&quot;},plot_bgcolor:{valType:&quot;color&quot;,dflt:a.background,editType:&quot;layoutstyle&quot;},autotypenumbers:{valType:&quot;enumerated&quot;,values:[&quot;convert types&quot;,&quot;strict&quot;],dflt:&quot;convert types&quot;,editType:&quot;calc&quot;},separators:{valType:&quot;string&quot;,editType:&quot;plot&quot;},hidesources:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},showlegend:{valType:&quot;boolean&quot;,editType:&quot;legend&quot;},colorway:{valType:&quot;colorlist&quot;,dflt:a.defaults,editType:&quot;calc&quot;},datarevision:{valType:&quot;any&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editrevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},selectionrevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},template:{valType:&quot;any&quot;,editType:&quot;calc&quot;},modebar:{orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;,editType:&quot;modebar&quot;},bgcolor:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},color:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},activecolor:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;modebar&quot;},newshape:o.newshape,activeshape:o.activeshape,meta:{valType:&quot;any&quot;,arrayOk:!0,editType:&quot;plot&quot;},transition:l({},i.transition,{editType:&quot;none&quot;}),_deprecated:{title:{valType:&quot;string&quot;,editType:&quot;layoutstyle&quot;},titlefont:n({editType:&quot;layoutstyle&quot;})}}},{&quot;../components/color/attributes&quot;:642,&quot;../components/shapes/draw_newshape/attributes&quot;:725,&quot;../lib/extend&quot;:768,&quot;./animation_attributes&quot;:822,&quot;./font_attributes&quot;:856,&quot;./pad_attributes&quot;:890}],883:[function(t,e,r){&quot;use strict&quot;;var n={&quot;open-street-map&quot;:{id:&quot;osm&quot;,version:8,sources:{&quot;plotly-osm-tiles&quot;:{type:&quot;raster&quot;,attribution:'&lt;a href=&quot;http://www.openstreetmap.org/about/&quot; target=&quot;_blank&quot;&gt;\xa9 OpenStreetMap&lt;/a&gt;',tiles:[&quot;https://a.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;,&quot;https://b.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-osm-tiles&quot;,type:&quot;raster&quot;,source:&quot;plotly-osm-tiles&quot;,minzoom:0,maxzoom:22}]},&quot;white-bg&quot;:{id:&quot;white-bg&quot;,version:8,sources:{},layers:[{id:&quot;white-bg&quot;,type:&quot;background&quot;,paint:{&quot;background-color&quot;:&quot;#FFFFFF&quot;},minzoom:0,maxzoom:22}]},&quot;carto-positron&quot;:{id:&quot;carto-positron&quot;,version:8,sources:{&quot;plotly-carto-positron&quot;:{type:&quot;raster&quot;,attribution:'&lt;a href=&quot;https://carto.com/&quot; target=&quot;_blank&quot;&gt;\xa9 CARTO&lt;/a&gt;',tiles:[&quot;https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-carto-positron&quot;,type:&quot;raster&quot;,source:&quot;plotly-carto-positron&quot;,minzoom:0,maxzoom:22}]},&quot;carto-darkmatter&quot;:{id:&quot;carto-darkmatter&quot;,version:8,sources:{&quot;plotly-carto-darkmatter&quot;:{type:&quot;raster&quot;,attribution:'&lt;a href=&quot;https://carto.com/&quot; target=&quot;_blank&quot;&gt;\xa9 CARTO&lt;/a&gt;',tiles:[&quot;https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-carto-darkmatter&quot;,type:&quot;raster&quot;,source:&quot;plotly-carto-darkmatter&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-terrain&quot;:{id:&quot;stamen-terrain&quot;,version:8,sources:{&quot;plotly-stamen-terrain&quot;:{type:&quot;raster&quot;,attribution:'Map tiles by &lt;a href=&quot;http://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt; | Data by &lt;a href=&quot;http://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt;, under &lt;a href=&quot;http://www.openstreetmap.org/copyright&quot;&gt;ODbL&lt;/a&gt;.',tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-terrain&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-terrain&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-toner&quot;:{id:&quot;stamen-toner&quot;,version:8,sources:{&quot;plotly-stamen-toner&quot;:{type:&quot;raster&quot;,attribution:'Map tiles by &lt;a href=&quot;http://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt; | Data by &lt;a href=&quot;http://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt;, under &lt;a href=&quot;http://www.openstreetmap.org/copyright&quot;&gt;ODbL&lt;/a&gt;.',tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-toner&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-toner&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-watercolor&quot;:{id:&quot;stamen-watercolor&quot;,version:8,sources:{&quot;plotly-stamen-watercolor&quot;:{type:&quot;raster&quot;,attribution:'Map tiles by &lt;a href=&quot;http://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt; | Data by &lt;a href=&quot;http://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by-sa/3.0&quot;&gt;CC BY SA&lt;/a&gt;.',tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-watercolor&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-watercolor&quot;,minzoom:0,maxzoom:22}]}},i=Object.keys(n);e.exports={requiredVersion:&quot;1.10.1&quot;,styleUrlPrefix:&quot;mapbox://styles/mapbox/&quot;,styleUrlSuffix:&quot;v9&quot;,styleValuesMapbox:[&quot;basic&quot;,&quot;streets&quot;,&quot;outdoors&quot;,&quot;light&quot;,&quot;dark&quot;,&quot;satellite&quot;,&quot;satellite-streets&quot;],styleValueDflt:&quot;basic&quot;,stylesNonMapbox:n,styleValuesNonMapbox:i,traceLayerPrefix:&quot;plotly-trace-layer-&quot;,layoutLayerPrefix:&quot;plotly-layout-layer-&quot;,wrongVersionErrorMsg:[&quot;Your custom plotly.js bundle is not using the correct mapbox-gl version&quot;,&quot;Please install mapbox-gl@1.10.1.&quot;].join(&quot;\n&quot;),noAccessTokenErrorMsg:[&quot;Missing Mapbox access token.&quot;,&quot;Mapbox trace type require a Mapbox access token to be registered.&quot;,&quot;For example:&quot;,&quot;  Plotly.plot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });&quot;,&quot;More info here: https://www.mapbox.com/help/define-access-token/&quot;].join(&quot;\n&quot;),missingStyleErrorMsg:[&quot;No valid mapbox style found, please set `mapbox.style` to one of:&quot;,i.join(&quot;, &quot;),&quot;or register a Mapbox access token to use a Mapbox-served style.&quot;].join(&quot;\n&quot;),multipleTokensErrorMsg:[&quot;Set multiple mapbox access token across different mapbox subplot,&quot;,&quot;using first token found as mapbox-gl does not allow multipleaccess tokens on the same page.&quot;].join(&quot;\n&quot;),mapOnErrorMsg:&quot;Mapbox error.&quot;,mapboxLogo:{path0:&quot;m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z&quot;,path1:&quot;M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z&quot;,path2:&quot;M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z&quot;,polygon:&quot;11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34&quot;},styleRules:{map:&quot;overflow:hidden;position:relative;&quot;,&quot;missing-css&quot;:&quot;display:none;&quot;,canary:&quot;background-color:salmon;&quot;,&quot;ctrl-bottom-left&quot;:&quot;position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;&quot;,&quot;ctrl-bottom-right&quot;:&quot;position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;&quot;,ctrl:&quot;clear: both; pointer-events: auto; transform: translate(0, 0);&quot;,&quot;ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner&quot;:&quot;display: none;&quot;,&quot;ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner&quot;:&quot;display: block; margin-top:2px&quot;,&quot;ctrl-attrib.mapboxgl-compact:hover&quot;:&quot;padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;&quot;,&quot;ctrl-attrib.mapboxgl-compact::after&quot;:'content: &quot;&quot;; cursor: pointer; position: absolute; background-image: url(\'data:image/svg+xml;charset=utf-8,%3Csvg viewBox=&quot;0 0 20 20&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;%3E %3Cpath fill=&quot;%23333333&quot; fill-rule=&quot;evenodd&quot; d=&quot;M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0&quot;/%3E %3C/svg%3E\'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;',&quot;ctrl-attrib.mapboxgl-compact&quot;:&quot;min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;&quot;,&quot;ctrl-bottom-right &gt; .mapboxgl-ctrl-attrib.mapboxgl-compact::after&quot;:&quot;bottom: 0; right: 0&quot;,&quot;ctrl-bottom-left &gt; .mapboxgl-ctrl-attrib.mapboxgl-compact::after&quot;:&quot;bottom: 0; left: 0&quot;,&quot;ctrl-bottom-left .mapboxgl-ctrl&quot;:&quot;margin: 0 0 10px 10px; float: left;&quot;,&quot;ctrl-bottom-right .mapboxgl-ctrl&quot;:&quot;margin: 0 10px 10px 0; float: right;&quot;,&quot;ctrl-attrib&quot;:&quot;color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px&quot;,&quot;ctrl-attrib a&quot;:&quot;color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px&quot;,&quot;ctrl-attrib a:hover&quot;:&quot;color: inherit; text-decoration: underline;&quot;,&quot;ctrl-attrib .mapbox-improve-map&quot;:&quot;font-weight: bold; margin-left: 2px;&quot;,&quot;attrib-empty&quot;:&quot;display: none;&quot;,&quot;ctrl-logo&quot;:'display:block; width: 21px; height: 21px; background-image: url(\'data:image/svg+xml;charset=utf-8,%3C?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?%3E %3Csvg version=&quot;1.1&quot; id=&quot;Layer_1&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; x=&quot;0px&quot; y=&quot;0px&quot; viewBox=&quot;0 0 21 21&quot; style=&quot;enable-background:new 0 0 21 21;&quot; xml:space=&quot;preserve&quot;%3E%3Cg transform=&quot;translate(0,0.01)&quot;%3E%3Cpath d=&quot;m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z&quot; style=&quot;opacity:0.9;fill:%23ffffff;enable-background:new&quot; class=&quot;st0&quot;/%3E%3Cpath d=&quot;M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z&quot; style=&quot;opacity:0.35;enable-background:new&quot; class=&quot;st1&quot;/%3E%3Cpath d=&quot;M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z&quot; style=&quot;opacity:0.35;enable-background:new&quot; class=&quot;st1&quot;/%3E%3Cpolygon points=&quot;11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 &quot; style=&quot;opacity:0.9;fill:%23ffffff;enable-background:new&quot; class=&quot;st0&quot;/%3E%3C/g%3E%3C/svg%3E\')'}}},{}],884:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=t.split(&quot; &quot;),i=r[0],a=r[1],o=n.isArrayOrTypedArray(e)?n.mean(e):e,s=.5+o/100,l=1.5+o/100,c=[&quot;&quot;,&quot;&quot;],u=[0,0];switch(i){case&quot;top&quot;:c[0]=&quot;top&quot;,u[1]=-l;break;case&quot;bottom&quot;:c[0]=&quot;bottom&quot;,u[1]=l}switch(a){case&quot;left&quot;:c[1]=&quot;right&quot;,u[0]=-s;break;case&quot;right&quot;:c[1]=&quot;left&quot;,u[0]=s}return{anchor:c[0]&amp;&amp;c[1]?c.join(&quot;-&quot;):c[0]?c[0]:c[1]?c[1]:&quot;center&quot;,offset:u}}},{&quot;../../lib&quot;:778}],885:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mapbox-gl&quot;),i=t(&quot;../../lib&quot;),a=i.strTranslate,o=i.strScale,s=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,l=t(&quot;../../constants/xmlns_namespaces&quot;),c=t(&quot;d3&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;./mapbox&quot;),p=r.constants=t(&quot;./constants&quot;);function d(t){return&quot;string&quot;==typeof t&amp;&amp;(-1!==p.styleValuesMapbox.indexOf(t)||0===t.indexOf(&quot;mapbox://&quot;))}r.name=&quot;mapbox&quot;,r.attr=&quot;subplot&quot;,r.idRoot=&quot;mapbox&quot;,r.idRegex=r.attrRegex=i.counterRegex(&quot;mapbox&quot;),r.attributes={subplot:{valType:&quot;subplotid&quot;,dflt:&quot;mapbox&quot;,editType:&quot;calc&quot;}},r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.plot=function(t){var e=t._fullLayout,r=t.calcdata,a=e._subplots.mapbox;if(n.version!==p.requiredVersion)throw new Error(p.wrongVersionErrorMsg);var o=function(t,e){var r=t._fullLayout;if(&quot;&quot;===t._context.mapboxAccessToken)return&quot;&quot;;for(var n=[],a=[],o=!1,s=!1,l=0;l&lt;e.length;l++){var c=r[e[l]],u=c.accesstoken;d(c.style)&amp;&amp;(u?i.pushUnique(n,u):(d(c._input.style)&amp;&amp;(i.error(&quot;Uses Mapbox map style, but did not set an access token.&quot;),o=!0),s=!0)),u&amp;&amp;i.pushUnique(a,u)}if(s){var f=o?p.noAccessTokenErrorMsg:p.missingStyleErrorMsg;throw i.error(f),new Error(f)}return n.length?(n.length&gt;1&amp;&amp;i.warn(p.multipleTokensErrorMsg),n[0]):(a.length&amp;&amp;i.log([&quot;Listed mapbox access token(s)&quot;,a.join(&quot;,&quot;),&quot;but did not use a Mapbox map style, ignoring token(s).&quot;].join(&quot; &quot;)),&quot;&quot;)}(t,a);n.accessToken=o;for(var l=0;l&lt;a.length;l++){var c=a[l],u=s(r,&quot;mapbox&quot;,c),f=e[c],g=f._subplot;g||(g=new h(t,c),e[c]._subplot=g),g.viewInitial||(g.viewInitial={center:i.extendFlat({},f.center),zoom:f.zoom,bearing:f.bearing,pitch:f.pitch}),g.plot(u,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.mapbox||[],a=0;a&lt;i.length;a++){var o=i[a];!e[o]&amp;&amp;n[o]._subplot&amp;&amp;n[o]._subplot.destroy()}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=e._size,i=0;i&lt;r.length;i++){var s=e[r[i]],h=s.domain,d=s._subplot.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:l.svg,&quot;xlink:href&quot;:d,x:n.l+n.w*h.x[0],y:n.t+n.h*(1-h.y[1]),width:n.w*(h.x[1]-h.x[0]),height:n.h*(h.y[1]-h.y[0]),preserveAspectRatio:&quot;none&quot;});var g=c.select(s._subplot.div);if(!(null===g.select(&quot;.mapboxgl-ctrl-logo&quot;).node().offsetParent)){var m=e._glimages.append(&quot;g&quot;);m.attr(&quot;transform&quot;,a(n.l+n.w*h.x[0]+10,n.t+n.h*(1-h.y[0])-31)),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path0).style({opacity:.9,fill:&quot;#ffffff&quot;,&quot;enable-background&quot;:&quot;new&quot;}),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path1).style(&quot;opacity&quot;,.35).style(&quot;enable-background&quot;,&quot;new&quot;),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path2).style(&quot;opacity&quot;,.35).style(&quot;enable-background&quot;,&quot;new&quot;),m.append(&quot;polygon&quot;).attr(&quot;points&quot;,p.mapboxLogo.polygon).style({opacity:.9,fill:&quot;#ffffff&quot;,&quot;enable-background&quot;:&quot;new&quot;})}var v=g.select(&quot;.mapboxgl-ctrl-attrib&quot;).text().replace(&quot;Improve this map&quot;,&quot;&quot;),y=e._glimages.append(&quot;g&quot;),x=y.append(&quot;text&quot;);x.text(v).classed(&quot;static-attribution&quot;,!0).attr({&quot;font-size&quot;:12,&quot;font-family&quot;:&quot;Arial&quot;,color:&quot;rgba(0, 0, 0, 0.75)&quot;,&quot;text-anchor&quot;:&quot;end&quot;,&quot;data-unformatted&quot;:v});var b=u.bBox(x.node()),_=n.w*(h.x[1]-h.x[0]);if(b.width&gt;_/2){var w=v.split(&quot;|&quot;).join(&quot;&lt;br&gt;&quot;);x.text(w).attr(&quot;data-unformatted&quot;,w).call(f.convertToTspans,t),b=u.bBox(x.node())}x.attr(&quot;transform&quot;,a(-3,8-b.height)),y.insert(&quot;rect&quot;,&quot;.static-attribution&quot;).attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:&quot;rgba(255, 255, 255, 0.75)&quot;});var T=1;b.width+6&gt;_&amp;&amp;(T=_/(b.width+6));var k=[n.l+n.w*h.x[1],n.t+n.h*(1-h.y[0])];y.attr(&quot;transform&quot;,a(k[0],k[1])+o(T))}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=0;n&lt;r.length;n++){e[r[n]]._subplot.updateFx(e)}}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/get_data&quot;:865,&quot;./constants&quot;:883,&quot;./layout_attributes&quot;:887,&quot;./layout_defaults&quot;:888,&quot;./mapbox&quot;:889,d3:169,&quot;mapbox-gl&quot;:473}],886:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/svg_text_utils&quot;).sanitizeHTML,a=t(&quot;./convert_text_opts&quot;),o=t(&quot;./constants&quot;);function s(t,e){this.subplot=t,this.uid=t.uid+&quot;-&quot;+e,this.index=e,this.idSource=&quot;source-&quot;+this.uid,this.idLayer=o.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var l=s.prototype;function c(t){if(!t.visible)return!1;var e=t.source;if(Array.isArray(e)&amp;&amp;e.length&gt;0){for(var r=0;r&lt;e.length;r++)if(&quot;string&quot;!=typeof e[r]||0===e[r].length)return!1;return!0}return n.isPlainObject(e)||&quot;string&quot;==typeof e&amp;&amp;e.length&gt;0}function u(t){var e={},r={};switch(t.type){case&quot;circle&quot;:n.extendFlat(r,{&quot;circle-radius&quot;:t.circle.radius,&quot;circle-color&quot;:t.color,&quot;circle-opacity&quot;:t.opacity});break;case&quot;line&quot;:n.extendFlat(r,{&quot;line-width&quot;:t.line.width,&quot;line-color&quot;:t.color,&quot;line-opacity&quot;:t.opacity,&quot;line-dasharray&quot;:t.line.dash});break;case&quot;fill&quot;:n.extendFlat(r,{&quot;fill-color&quot;:t.color,&quot;fill-outline-color&quot;:t.fill.outlinecolor,&quot;fill-opacity&quot;:t.opacity});break;case&quot;symbol&quot;:var i=t.symbol,o=a(i.textposition,i.iconsize);n.extendFlat(e,{&quot;icon-image&quot;:i.icon+&quot;-15&quot;,&quot;icon-size&quot;:i.iconsize/10,&quot;text-field&quot;:i.text,&quot;text-size&quot;:i.textfont.size,&quot;text-anchor&quot;:o.anchor,&quot;text-offset&quot;:o.offset,&quot;symbol-placement&quot;:i.placement}),n.extendFlat(r,{&quot;icon-color&quot;:t.color,&quot;text-color&quot;:i.textfont.color,&quot;text-opacity&quot;:t.opacity});break;case&quot;raster&quot;:n.extendFlat(r,{&quot;raster-fade-duration&quot;:0,&quot;raster-opacity&quot;:t.opacity})}return{layout:e,paint:r}}l.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=c(t)},l.needsNewImage=function(t){return this.subplot.map.getSource(this.idSource)&amp;&amp;&quot;image&quot;===this.sourceType&amp;&amp;&quot;image&quot;===t.sourcetype&amp;&amp;(this.source!==t.source||JSON.stringify(this.coordinates)!==JSON.stringify(t.coordinates))},l.needsNewSource=function(t){return this.sourceType!==t.sourcetype||JSON.stringify(this.source)!==JSON.stringify(t.source)||this.layerType!==t.type},l.needsNewLayer=function(t){return this.layerType!==t.type||this.below!==this.subplot.belowLookup[&quot;layout-&quot;+this.index]},l.lookupBelow=function(){return this.subplot.belowLookup[&quot;layout-&quot;+this.index]},l.updateImage=function(t){this.subplot.map.getSource(this.idSource).updateImage({url:t.source,coordinates:t.coordinates});var e=this.findFollowingMapboxLayerId(this.lookupBelow());null!==e&amp;&amp;this.subplot.map.moveLayer(this.idLayer,e)},l.updateSource=function(t){var e=this.subplot.map;if(e.getSource(this.idSource)&amp;&amp;e.removeSource(this.idSource),this.sourceType=t.sourcetype,this.source=t.source,c(t)){var r=function(t){var e,r=t.sourcetype,n=t.source,a={type:r};&quot;geojson&quot;===r?e=&quot;data&quot;:&quot;vector&quot;===r?e=&quot;string&quot;==typeof n?&quot;url&quot;:&quot;tiles&quot;:&quot;raster&quot;===r?(e=&quot;tiles&quot;,a.tileSize=256):&quot;image&quot;===r&amp;&amp;(e=&quot;url&quot;,a.coordinates=t.coordinates);a[e]=n,t.sourceattribution&amp;&amp;(a.attribution=i(t.sourceattribution));return a}(t);e.addSource(this.idSource,r)}},l.findFollowingMapboxLayerId=function(t){if(&quot;traces&quot;===t)for(var e=this.subplot.getMapLayers(),r=0;r&lt;e.length;r++){var n=e[r].id;if(&quot;string&quot;==typeof n&amp;&amp;0===n.indexOf(o.traceLayerPrefix)){t=n;break}}return t},l.updateLayer=function(t){var e=this.subplot,r=u(t),n=this.lookupBelow(),i=this.findFollowingMapboxLayerId(n);this.removeLayer(),c(t)&amp;&amp;e.addLayer({id:this.idLayer,source:this.idSource,&quot;source-layer&quot;:t.sourcelayer||&quot;&quot;,type:t.type,minzoom:t.minzoom,maxzoom:t.maxzoom,layout:r.layout,paint:r.paint},i),this.layerType=t.type,this.below=n},l.updateStyle=function(t){if(c(t)){var e=u(t);this.subplot.setOptions(this.idLayer,&quot;setLayoutProperty&quot;,e.layout),this.subplot.setOptions(this.idLayer,&quot;setPaintProperty&quot;,e.paint)}},l.removeLayer=function(){var t=this.subplot.map;t.getLayer(this.idLayer)&amp;&amp;t.removeLayer(this.idLayer)},l.dispose=function(){var t=this.subplot.map;t.getLayer(this.idLayer)&amp;&amp;t.removeLayer(this.idLayer),t.getSource(this.idSource)&amp;&amp;t.removeSource(this.idSource)},e.exports=function(t,e,r){var n=new s(t,e);return n.update(r),n}},{&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;./constants&quot;:883,&quot;./convert_text_opts&quot;:884}],887:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;).defaultLine,a=t(&quot;../domain&quot;).attributes,o=t(&quot;../font_attributes&quot;),s=t(&quot;../../traces/scatter/attributes&quot;).textposition,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll,c=t(&quot;../../plot_api/plot_template&quot;).templatedArray,u=t(&quot;./constants&quot;),f=o({});f.family.dflt=&quot;Open Sans Regular, Arial Unicode MS Regular&quot;,(e.exports=l({_arrayAttrRegexps:[n.counterRegex(&quot;mapbox&quot;,&quot;.layers&quot;,!0)],domain:a({name:&quot;mapbox&quot;}),accesstoken:{valType:&quot;string&quot;,noBlank:!0,strict:!0},style:{valType:&quot;any&quot;,values:u.styleValuesMapbox.concat(u.styleValuesNonMapbox),dflt:u.styleValueDflt},center:{lon:{valType:&quot;number&quot;,dflt:0},lat:{valType:&quot;number&quot;,dflt:0}},zoom:{valType:&quot;number&quot;,dflt:1},bearing:{valType:&quot;number&quot;,dflt:0},pitch:{valType:&quot;number&quot;,dflt:0},layers:c(&quot;layer&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},sourcetype:{valType:&quot;enumerated&quot;,values:[&quot;geojson&quot;,&quot;vector&quot;,&quot;raster&quot;,&quot;image&quot;],dflt:&quot;geojson&quot;},source:{valType:&quot;any&quot;},sourcelayer:{valType:&quot;string&quot;,dflt:&quot;&quot;},sourceattribution:{valType:&quot;string&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;circle&quot;,&quot;line&quot;,&quot;fill&quot;,&quot;symbol&quot;,&quot;raster&quot;],dflt:&quot;circle&quot;},coordinates:{valType:&quot;any&quot;},below:{valType:&quot;string&quot;},color:{valType:&quot;color&quot;,dflt:i},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},minzoom:{valType:&quot;number&quot;,min:0,max:24,dflt:0},maxzoom:{valType:&quot;number&quot;,min:0,max:24,dflt:24},circle:{radius:{valType:&quot;number&quot;,dflt:15}},line:{width:{valType:&quot;number&quot;,dflt:2},dash:{valType:&quot;data_array&quot;}},fill:{outlinecolor:{valType:&quot;color&quot;,dflt:i}},symbol:{icon:{valType:&quot;string&quot;,dflt:&quot;marker&quot;},iconsize:{valType:&quot;number&quot;,dflt:10},text:{valType:&quot;string&quot;,dflt:&quot;&quot;},placement:{valType:&quot;enumerated&quot;,values:[&quot;point&quot;,&quot;line&quot;,&quot;line-center&quot;],dflt:&quot;point&quot;},textfont:f,textposition:n.extendFlat({},s,{arrayOk:!1})}})},&quot;plot&quot;,&quot;from-root&quot;)).uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../traces/scatter/attributes&quot;:1187,&quot;../domain&quot;:855,&quot;../font_attributes&quot;:856,&quot;./constants&quot;:883}],888:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../subplot_defaults&quot;),a=t(&quot;../array_container_defaults&quot;),o=t(&quot;./layout_attributes&quot;);function s(t,e,r,n){r(&quot;accesstoken&quot;,n.accessToken),r(&quot;style&quot;),r(&quot;center.lon&quot;),r(&quot;center.lat&quot;),r(&quot;zoom&quot;),r(&quot;bearing&quot;),r(&quot;pitch&quot;),a(t,e,{name:&quot;layers&quot;,handleItemDefaults:l}),e._input=t}function l(t,e){function r(r,i){return n.coerce(t,e,o.layers,r,i)}if(r(&quot;visible&quot;)){var i,a=r(&quot;sourcetype&quot;),s=&quot;raster&quot;===a||&quot;image&quot;===a;r(&quot;source&quot;),r(&quot;sourceattribution&quot;),&quot;vector&quot;===a&amp;&amp;r(&quot;sourcelayer&quot;),&quot;image&quot;===a&amp;&amp;r(&quot;coordinates&quot;),s&amp;&amp;(i=&quot;raster&quot;);var l=r(&quot;type&quot;,i);s&amp;&amp;&quot;raster&quot;!==l&amp;&amp;(l=e.type=&quot;raster&quot;,n.log(&quot;Source types *raster* and *image* must drawn *raster* layer type.&quot;)),r(&quot;below&quot;),r(&quot;color&quot;),r(&quot;opacity&quot;),r(&quot;minzoom&quot;),r(&quot;maxzoom&quot;),&quot;circle&quot;===l&amp;&amp;r(&quot;circle.radius&quot;),&quot;line&quot;===l&amp;&amp;(r(&quot;line.width&quot;),r(&quot;line.dash&quot;)),&quot;fill&quot;===l&amp;&amp;r(&quot;fill.outlinecolor&quot;),&quot;symbol&quot;===l&amp;&amp;(r(&quot;symbol.icon&quot;),r(&quot;symbol.iconsize&quot;),r(&quot;symbol.text&quot;),n.coerceFont(r,&quot;symbol.textfont&quot;),r(&quot;symbol.textposition&quot;),r(&quot;symbol.placement&quot;))}}e.exports=function(t,e,r){i(t,e,r,{type:&quot;mapbox&quot;,attributes:o,handleDefaults:s,partition:&quot;y&quot;,accessToken:e._mapboxAccessToken})}},{&quot;../../lib&quot;:778,&quot;../array_container_defaults&quot;:823,&quot;../subplot_defaults&quot;:905,&quot;./layout_attributes&quot;:887}],889:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mapbox-gl&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/geo_location_utils&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../cartesian/axes&quot;),l=t(&quot;../../components/dragelement&quot;),c=t(&quot;../../components/fx&quot;),u=t(&quot;../../components/dragelement/helpers&quot;),f=u.rectMode,h=u.drawMode,p=u.selectMode,d=t(&quot;../cartesian/select&quot;).prepSelect,g=t(&quot;../cartesian/select&quot;).clearSelect,m=t(&quot;../cartesian/select&quot;).clearSelectionsCache,v=t(&quot;../cartesian/select&quot;).selectOnClick,y=t(&quot;./constants&quot;),x=t(&quot;./layers&quot;);function b(t,e){this.id=e,this.gd=t;var r=t._fullLayout,n=t._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+&quot;-&quot;+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var _=b.prototype;_.plot=function(t,e,r){var n,i=this,a=e[i.id];i.map&amp;&amp;a.accesstoken!==i.accessToken&amp;&amp;(i.map.remove(),i.map=null,i.styleObj=null,i.traceHash={},i.layerList=[]),n=i.map?new Promise((function(r,n){i.updateMap(t,e,r,n)})):new Promise((function(r,n){i.createMap(t,e,r,n)})),r.push(n)},_.createMap=function(t,e,r,i){var o=this,s=e[o.id],l=o.styleObj=T(s.style);o.accessToken=s.accesstoken;var c=o.map=new n.Map({container:o.div,style:l.style,center:M(s.center),zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,interactive:!o.isStatic,preserveDrawingBuffer:o.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new n.AttributionControl({compact:!0}));c._canvas.style.left=&quot;0px&quot;,c._canvas.style.top=&quot;0px&quot;,o.rejectOnError(i),o.isStatic||o.initFx(t,e);var u=[];u.push(new Promise((function(t){c.once(&quot;load&quot;,t)}))),u=u.concat(a.fetchTraceGeoData(t)),Promise.all(u).then((function(){o.fillBelowLookup(t,e),o.updateData(t),o.updateLayout(e),o.resolveOnRender(r)})).catch(i)},_.updateMap=function(t,e,r,n){var i=this,o=i.map,s=e[this.id];i.rejectOnError(n);var l=[],c=T(s.style);JSON.stringify(i.styleObj)!==JSON.stringify(c)&amp;&amp;(i.styleObj=c,o.setStyle(c.style),i.traceHash={},l.push(new Promise((function(t){o.once(&quot;styledata&quot;,t)})))),l=l.concat(a.fetchTraceGeoData(t)),Promise.all(l).then((function(){i.fillBelowLookup(t,e),i.updateData(t),i.updateLayout(e),i.resolveOnRender(r)})).catch(n)},_.fillBelowLookup=function(t,e){var r,n,i=e[this.id].layers,a=this.belowLookup={},o=!1;for(r=0;r&lt;t.length;r++){var s=t[r][0].trace,l=s._module;&quot;string&quot;==typeof s.below?n=s.below:l.getBelow&amp;&amp;(n=l.getBelow(s,this)),&quot;&quot;===n&amp;&amp;(o=!0),a[&quot;trace-&quot;+s.uid]=n||&quot;&quot;}for(r=0;r&lt;i.length;r++){var c=i[r];n=&quot;string&quot;==typeof c.below?c.below:o?&quot;traces&quot;:&quot;&quot;,a[&quot;layout-&quot;+r]=n}var u,f,h={};for(u in a)h[n=a[u]]?h[n].push(u):h[n]=[u];for(n in h){var p=h[n];if(p.length&gt;1)for(r=0;r&lt;p.length;r++)0===(u=p[r]).indexOf(&quot;trace-&quot;)?(f=u.split(&quot;trace-&quot;)[1],this.traceHash[f]&amp;&amp;(this.traceHash[f].below=null)):0===u.indexOf(&quot;layout-&quot;)&amp;&amp;(f=u.split(&quot;layout-&quot;)[1],this.layerList[f]&amp;&amp;(this.layerList[f].below=null))}};var w={choroplethmapbox:0,densitymapbox:1,scattermapbox:2};function T(t){var e={};return i.isPlainObject(t)?(e.id=t.id,e.style=t):&quot;string&quot;==typeof t?(e.id=t,-1!==y.styleValuesMapbox.indexOf(t)?e.style=k(t):y.stylesNonMapbox[t]?e.style=y.stylesNonMapbox[t]:e.style=t):(e.id=y.styleValueDflt,e.style=k(y.styleValueDflt)),e.transition={duration:0,delay:0},e}function k(t){return y.styleUrlPrefix+t+&quot;-&quot;+y.styleUrlSuffix}function M(t){return[t.lon,t.lat]}_.updateData=function(t){var e,r,n,i,a=this.traceHash,o=t.slice().sort((function(t,e){return w[t[0].trace.type]-w[e[0].trace.type]}));for(n=0;n&lt;o.length;n++){var s=o[n],l=!1;(e=a[(r=s[0].trace).uid])&amp;&amp;(e.type===r.type?(e.update(s),l=!0):e.dispose()),!l&amp;&amp;r._module&amp;&amp;(a[r.uid]=r._module.plot(this,s))}var c=Object.keys(a);t:for(n=0;n&lt;c.length;n++){var u=c[n];for(i=0;i&lt;t.length;i++)if(u===(r=t[i][0].trace).uid)continue t;(e=a[u]).dispose(),delete a[u]}},_.updateLayout=function(t){var e=this.map,r=t[this.id];this.dragging||this.wheeling||(e.setCenter(M(r.center)),e.setZoom(r.zoom),e.setBearing(r.bearing),e.setPitch(r.pitch)),this.updateLayers(t),this.updateFramework(t),this.updateFx(t),this.map.resize(),this.gd._context._scrollZoom.mapbox?e.scrollZoom.enable():e.scrollZoom.disable()},_.resolveOnRender=function(t){var e=this.map;e.on(&quot;render&quot;,(function r(){e.loaded()&amp;&amp;(e.off(&quot;render&quot;,r),setTimeout(t,10))}))},_.rejectOnError=function(t){var e=this.map;function r(){t(new Error(y.mapOnErrorMsg))}e.once(&quot;error&quot;,r),e.once(&quot;style.error&quot;,r),e.once(&quot;source.error&quot;,r),e.once(&quot;tile.error&quot;,r),e.once(&quot;layer.error&quot;,r)},_.createFramework=function(t){var e=this,r=e.div=document.createElement(&quot;div&quot;);r.id=e.uid,r.style.position=&quot;absolute&quot;,e.container.appendChild(r),e.xaxis={_id:&quot;x&quot;,c2p:function(t){return e.project(t).x}},e.yaxis={_id:&quot;y&quot;,c2p:function(t){return e.project(t).y}},e.updateFramework(t),e.mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},s.setConvert(e.mockAxis,t)},_.initFx=function(t,e){var r=this,n=r.gd,i=r.map;function a(){c.loneUnhover(e._hoverlayer)}function s(){var t=r.getView();n.emit(&quot;plotly_relayouting&quot;,r.getViewEditsWithDerived(t))}i.on(&quot;moveend&quot;,(function(t){if(r.map){var e=n._fullLayout;if(t.originalEvent||r.wheeling){var i=e[r.id];o.call(&quot;_storeDirectGUIEdit&quot;,n.layout,e._preGUI,r.getViewEdits(i));var a=r.getView();i._input.center=i.center=a.center,i._input.zoom=i.zoom=a.zoom,i._input.bearing=i.bearing=a.bearing,i._input.pitch=i.pitch=a.pitch,n.emit(&quot;plotly_relayout&quot;,r.getViewEditsWithDerived(a))}t.originalEvent&amp;&amp;&quot;mouseup&quot;===t.originalEvent.type?r.dragging=!1:r.wheeling&amp;&amp;(r.wheeling=!1),e._rehover&amp;&amp;e._rehover()}})),i.on(&quot;wheel&quot;,(function(){r.wheeling=!0})),i.on(&quot;mousemove&quot;,(function(t){var e=r.div.getBoundingClientRect(),a=[t.originalEvent.offsetX,t.originalEvent.offsetY];t.target.getBoundingClientRect=function(){return e},r.xaxis.p2c=function(){return i.unproject(a).lng},r.yaxis.p2c=function(){return i.unproject(a).lat},n._fullLayout._rehover=function(){n._fullLayout._hoversubplot===r.id&amp;&amp;n._fullLayout[r.id]&amp;&amp;c.hover(n,t,r.id)},c.hover(n,t,r.id),n._fullLayout._hoversubplot=r.id})),i.on(&quot;dragstart&quot;,(function(){r.dragging=!0,a()})),i.on(&quot;zoomstart&quot;,a),i.on(&quot;mouseout&quot;,(function(){n._fullLayout._hoversubplot=null})),i.on(&quot;drag&quot;,s),i.on(&quot;zoom&quot;,s),i.on(&quot;dblclick&quot;,(function(){var t=n._fullLayout[r.id];o.call(&quot;_storeDirectGUIEdit&quot;,n.layout,n._fullLayout._preGUI,r.getViewEdits(t));var e=r.viewInitial;i.setCenter(M(e.center)),i.setZoom(e.zoom),i.setBearing(e.bearing),i.setPitch(e.pitch);var a=r.getView();t._input.center=t.center=a.center,t._input.zoom=t.zoom=a.zoom,t._input.bearing=t.bearing=a.bearing,t._input.pitch=t.pitch=a.pitch,n.emit(&quot;plotly_doubleclick&quot;,null),n.emit(&quot;plotly_relayout&quot;,r.getViewEditsWithDerived(a))})),r.clearSelect=function(){m(r.dragOptions),g(r.dragOptions.gd)},r.onClickInPanFn=function(t){return function(e){var i=n._fullLayout.clickmode;i.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;v(e.originalEvent,n,[r.xaxis],[r.yaxis],r.id,t),i.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;c.click(n,e.originalEvent)}}},_.updateFx=function(t){var e=this,r=e.map,n=e.gd;if(!e.isStatic){var a,o=t.dragmode;a=f(o)?function(t,r){(t.range={})[e.id]=[c([r.xmin,r.ymin]),c([r.xmax,r.ymax])]}:function(t,r,n){(t.lassoPoints={})[e.id]=n.filtered.map(c)};var s=e.dragOptions;e.dragOptions=i.extendDeep(s||{},{dragmode:t.dragmode,element:e.div,gd:n,plotinfo:{id:e.id,domain:t[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis,fillRangeItems:a},xaxes:[e.xaxis],yaxes:[e.yaxis],subplot:e.id}),r.off(&quot;click&quot;,e.onClickInPanHandler),p(o)||h(o)?(r.dragPan.disable(),r.on(&quot;zoomstart&quot;,e.clearSelect),e.dragOptions.prepFn=function(t,r,n){d(t,r,n,e.dragOptions,o)},l.init(e.dragOptions)):(r.dragPan.enable(),r.off(&quot;zoomstart&quot;,e.clearSelect),e.div.onmousedown=null,e.onClickInPanHandler=e.onClickInPanFn(e.dragOptions),r.on(&quot;click&quot;,e.onClickInPanHandler))}function c(t){var r=e.map.unproject(t);return[r.lng,r.lat]}},_.updateFramework=function(t){var e=t[this.id].domain,r=t._size,n=this.div.style;n.width=r.w*(e.x[1]-e.x[0])+&quot;px&quot;,n.height=r.h*(e.y[1]-e.y[0])+&quot;px&quot;,n.left=r.l+e.x[0]*r.w+&quot;px&quot;,n.top=r.t+(1-e.y[1])*r.h+&quot;px&quot;,this.xaxis._offset=r.l+e.x[0]*r.w,this.xaxis._length=r.w*(e.x[1]-e.x[0]),this.yaxis._offset=r.t+(1-e.y[1])*r.h,this.yaxis._length=r.h*(e.y[1]-e.y[0])},_.updateLayers=function(t){var e,r=t[this.id].layers,n=this.layerList;if(r.length!==n.length){for(e=0;e&lt;n.length;e++)n[e].dispose();for(n=this.layerList=[],e=0;e&lt;r.length;e++)n.push(x(this,e,r[e]))}else for(e=0;e&lt;r.length;e++)n[e].update(r[e])},_.destroy=function(){this.map&amp;&amp;(this.map.remove(),this.map=null,this.container.removeChild(this.div))},_.toImage=function(){return this.map.stop(),this.map.getCanvas().toDataURL()},_.setOptions=function(t,e,r){for(var n in r)this.map[e](t,n,r[n])},_.getMapLayers=function(){return this.map.getStyle().layers},_.addLayer=function(t,e){var r=this.map;if(&quot;string&quot;==typeof e){if(&quot;&quot;===e)return void r.addLayer(t,e);for(var n=this.getMapLayers(),a=0;a&lt;n.length;a++)if(e===n[a].id)return void r.addLayer(t,e);i.warn([&quot;Trying to add layer with *below* value&quot;,e,&quot;referencing a layer that does not exist&quot;,&quot;or that does not yet exist.&quot;].join(&quot; &quot;))}r.addLayer(t)},_.project=function(t){return this.map.project(new n.LngLat(t[0],t[1]))},_.getView=function(){var t=this.map,e=t.getCenter(),r={lon:e.lng,lat:e.lat},n=t.getCanvas(),i=n.width,a=n.height;return{center:r,zoom:t.getZoom(),bearing:t.getBearing(),pitch:t.getPitch(),_derived:{coordinates:[t.unproject([0,0]).toArray(),t.unproject([i,0]).toArray(),t.unproject([i,a]).toArray(),t.unproject([0,a]).toArray()]}}},_.getViewEdits=function(t){for(var e=this.id,r=[&quot;center&quot;,&quot;zoom&quot;,&quot;bearing&quot;,&quot;pitch&quot;],n={},i=0;i&lt;r.length;i++){var a=r[i];n[e+&quot;.&quot;+a]=t[a]}return n},_.getViewEditsWithDerived=function(t){var e=this.id,r=this.getViewEdits(t);return r[e+&quot;._derived&quot;]=t._derived,r},e.exports=b},{&quot;../../components/dragelement&quot;:662,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../registry&quot;:911,&quot;../cartesian/axes&quot;:828,&quot;../cartesian/select&quot;:847,&quot;./constants&quot;:883,&quot;./layers&quot;:886,&quot;mapbox-gl&quot;:473}],890:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.editType;return{t:{valType:&quot;number&quot;,dflt:0,editType:e},r:{valType:&quot;number&quot;,dflt:0,editType:e},b:{valType:&quot;number&quot;,dflt:0,editType:e},l:{valType:&quot;number&quot;,dflt:0,editType:e},editType:e}}},{}],891:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-time-format&quot;).timeFormatLocale,a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../registry&quot;),s=t(&quot;../plot_api/plot_schema&quot;),l=t(&quot;../plot_api/plot_template&quot;),c=t(&quot;../lib&quot;),u=t(&quot;../components/color&quot;),f=t(&quot;../constants/numerical&quot;).BADNUM,h=t(&quot;./cartesian/axis_ids&quot;),p=t(&quot;./cartesian/handle_outline&quot;).clearSelect,d=t(&quot;./animation_attributes&quot;),g=t(&quot;./frame_attributes&quot;),m=t(&quot;../plots/get_data&quot;).getModuleCalcData,v=c.relinkPrivateKeys,y=c._,x=e.exports={};c.extendFlat(x,o),x.attributes=t(&quot;./attributes&quot;),x.attributes.type.values=x.allTypes,x.fontAttrs=t(&quot;./font_attributes&quot;),x.layoutAttributes=t(&quot;./layout_attributes&quot;),x.fontWeight=&quot;normal&quot;;var b=x.transformsRegistry,_=t(&quot;./command&quot;);x.executeAPICommand=_.executeAPICommand,x.computeAPICommandBindings=_.computeAPICommandBindings,x.manageCommandObserver=_.manageCommandObserver,x.hasSimpleAPICommandBindings=_.hasSimpleAPICommandBindings,x.redrawText=function(t){var e=(t=c.getGraphDiv(t))._fullLayout||{};if(!(!(e._has&amp;&amp;e._has(&quot;polar&quot;))&amp;&amp;t.data&amp;&amp;t.data[0]&amp;&amp;t.data[0].r))return new Promise((function(e){setTimeout((function(){o.getComponentMethod(&quot;annotations&quot;,&quot;draw&quot;)(t),o.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),o.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t),e(x.previousPromises(t))}),300)}))},x.resize=function(t){var e;t=c.getGraphDiv(t);var r=new Promise((function(r,n){t&amp;&amp;!c.isHidden(t)||n(new Error(&quot;Resize must be passed a displayed plot div element.&quot;)),t._redrawTimer&amp;&amp;clearTimeout(t._redrawTimer),t._resolveResize&amp;&amp;(e=t._resolveResize),t._resolveResize=r,t._redrawTimer=setTimeout((function(){if(!t.layout||t.layout.width&amp;&amp;t.layout.height||c.isHidden(t))r(t);else{delete t.layout.width,delete t.layout.height;var e=t.changed;t.autoplay=!0,o.call(&quot;relayout&quot;,t,{autosize:!0}).then((function(){t.changed=e,t._resolveResize===r&amp;&amp;(delete t._resolveResize,r(t))}))}}),100)}));return e&amp;&amp;e(r),r},x.previousPromises=function(t){if((t._promises||[]).length)return Promise.all(t._promises).then((function(){t._promises=[]}))},x.addLinks=function(t){if(t._context.showLink||t._context.showSources){var e=t._fullLayout,r=c.ensureSingle(e._paper,&quot;text&quot;,&quot;js-plot-link-container&quot;,(function(t){t.style({&quot;font-family&quot;:'&quot;Open Sans&quot;, Arial, sans-serif',&quot;font-size&quot;:&quot;12px&quot;,fill:u.defaultLine,&quot;pointer-events&quot;:&quot;all&quot;}).each((function(){var t=n.select(this);t.append(&quot;tspan&quot;).classed(&quot;js-link-to-tool&quot;,!0),t.append(&quot;tspan&quot;).classed(&quot;js-link-spacer&quot;,!0),t.append(&quot;tspan&quot;).classed(&quot;js-sourcelinks&quot;,!0)}))})),i=r.node(),a={y:e._paper.attr(&quot;height&quot;)-9};document.body.contains(i)&amp;&amp;i.getComputedTextLength()&gt;=e.width-20?(a[&quot;text-anchor&quot;]=&quot;start&quot;,a.x=5):(a[&quot;text-anchor&quot;]=&quot;end&quot;,a.x=e._paper.attr(&quot;width&quot;)-7),r.attr(a);var o=r.select(&quot;.js-link-to-tool&quot;),s=r.select(&quot;.js-link-spacer&quot;),l=r.select(&quot;.js-sourcelinks&quot;);t._context.showSources&amp;&amp;t._context.showSources(t),t._context.showLink&amp;&amp;function(t,e){e.text(&quot;&quot;);var r=e.append(&quot;a&quot;).attr({&quot;xlink:xlink:href&quot;:&quot;#&quot;,class:&quot;link--impt link--embedview&quot;,&quot;font-weight&quot;:&quot;bold&quot;}).text(t._context.linkText+&quot; &quot;+String.fromCharCode(187));if(t._context.sendData)r.on(&quot;click&quot;,(function(){x.sendDataToCloud(t)}));else{var n=window.location.pathname.split(&quot;/&quot;),i=window.location.search;r.attr({&quot;xlink:xlink:show&quot;:&quot;new&quot;,&quot;xlink:xlink:href&quot;:&quot;/&quot;+n[2].split(&quot;.&quot;)[0]+&quot;/&quot;+n[1]+i})}}(t,o),s.text(o.text()&amp;&amp;l.text()?&quot; - &quot;:&quot;&quot;)}},x.sendDataToCloud=function(t){var e=(window.PLOTLYENV||{}).BASE_URL||t._context.plotlyServerURL;if(e){t.emit(&quot;plotly_beforeexport&quot;);var r=n.select(t).append(&quot;div&quot;).attr(&quot;id&quot;,&quot;hiddenform&quot;).style(&quot;display&quot;,&quot;none&quot;),i=r.append(&quot;form&quot;).attr({action:e+&quot;/external&quot;,method:&quot;post&quot;,target:&quot;_blank&quot;});return i.append(&quot;input&quot;).attr({type:&quot;text&quot;,name:&quot;data&quot;}).node().value=x.graphJson(t,!1,&quot;keepdata&quot;),i.node().submit(),r.remove(),t.emit(&quot;plotly_afterexport&quot;),!1}};var w=[&quot;days&quot;,&quot;shortDays&quot;,&quot;months&quot;,&quot;shortMonths&quot;,&quot;periods&quot;,&quot;dateTime&quot;,&quot;date&quot;,&quot;time&quot;,&quot;decimal&quot;,&quot;thousands&quot;,&quot;grouping&quot;,&quot;currency&quot;],T=[&quot;year&quot;,&quot;month&quot;,&quot;dayMonth&quot;,&quot;dayMonthYear&quot;];function k(t,e){var r=t._context.locale;r||(r=&quot;en-US&quot;);var n=!1,i={};function a(t){for(var r=!0,a=0;a&lt;e.length;a++){var o=e[a];i[o]||(t[o]?i[o]=t[o]:r=!1)}r&amp;&amp;(n=!0)}for(var s=0;s&lt;2;s++){for(var l=t._context.locales,c=0;c&lt;2;c++){var u=(l[r]||{}).format;if(u&amp;&amp;(a(u),n))break;l=o.localeRegistry}var f=r.split(&quot;-&quot;)[0];if(n||f===r)break;r=f}return n||a(o.localeRegistry.en.format),i}function M(t,e){var r={_fullLayout:e},n=&quot;x&quot;===t._id.charAt(0),i=t._mainAxis._anchorAxis,a=&quot;&quot;,o=&quot;&quot;,s=&quot;&quot;;if(i&amp;&amp;(s=i._mainAxis._id,a=n?t._id+s:s+t._id),!a||!e._plots[a]){a=&quot;&quot;;for(var l=t._counterAxes,c=0;c&lt;l.length;c++){var u=l[c],f=n?t._id+u:u+t._id;o||(o=f);var p=h.getFromId(r,u);if(s&amp;&amp;p.overlaying===s){a=f;break}}}return a||o}function A(t){var e=t.transforms;if(Array.isArray(e)&amp;&amp;e.length)for(var r=0;r&lt;e.length;r++){var n=e[r],i=n._module||b[n.type];if(i&amp;&amp;i.makesData)return!0}return!1}function S(t,e,r,n){for(var i=t.transforms,a=[t],o=0;o&lt;i.length;o++){var s=i[o],l=b[s.type];l&amp;&amp;l.transform&amp;&amp;(a=l.transform(a,{transform:s,fullTrace:t,fullData:e,layout:r,fullLayout:n,transformIndex:o}))}return a}function E(t){return&quot;string&quot;==typeof t&amp;&amp;&quot;px&quot;===t.substr(t.length-2)&amp;&amp;parseFloat(t)}function C(t){var e=t.margin;if(!t._size){var r=t._size={l:Math.round(e.l),r:Math.round(e.r),t:Math.round(e.t),b:Math.round(e.b),p:Math.round(e.pad)};r.w=Math.round(t.width)-r.l-r.r,r.h=Math.round(t.height)-r.t-r.b}t._pushmargin||(t._pushmargin={}),t._pushmarginIds||(t._pushmarginIds={})}x.supplyDefaults=function(t,e){var r=e&amp;&amp;e.skipUpdateCalc,a=t._fullLayout||{};if(a._skipDefaults)delete a._skipDefaults;else{var s,l=t._fullLayout={},u=t.layout||{},f=t._fullData||[],h=t._fullData=[],d=t.data||[],g=t.calcdata||[],m=t._context||{};t._transitionData||x.createTransitionData(t),l._dfltTitle={plot:y(t,&quot;Click to enter Plot title&quot;),x:y(t,&quot;Click to enter X axis title&quot;),y:y(t,&quot;Click to enter Y axis title&quot;),colorbar:y(t,&quot;Click to enter Colorscale title&quot;),annotation:y(t,&quot;new text&quot;)},l._traceWord=y(t,&quot;trace&quot;);var b=k(t,w);if(l._mapboxAccessToken=m.mapboxAccessToken,a._initialAutoSizeIsDone){var _=a.width,M=a.height;x.supplyLayoutGlobalDefaults(u,l,b),u.width||(l.width=_),u.height||(l.height=M),x.sanitizeMargins(l)}else{x.supplyLayoutGlobalDefaults(u,l,b);var A=!u.width||!u.height,S=l.autosize,E=m.autosizable;A&amp;&amp;(S||E)?x.plotAutoSize(t,u,l):A&amp;&amp;x.sanitizeMargins(l),!S&amp;&amp;A&amp;&amp;(u.width=l.width,u.height=l.height)}l._d3locale=function(t,e){return t.decimal=e.charAt(0),t.thousands=e.charAt(1),{numberFormat:n.locale(t).numberFormat,timeFormat:i(t).utcFormat}}(b,l.separators),l._extraFormat=k(t,T),l._initialAutoSizeIsDone=!0,l._dataLength=d.length,l._modules=[],l._visibleModules=[],l._basePlotModules=[];var L=l._subplots=function(){var t,e,r=o.collectableSubplotTypes,n={};if(!r){r=[];var i=o.subplotsRegistry;for(var a in i){var s=i[a].attr;if(s&amp;&amp;(r.push(a),Array.isArray(s)))for(e=0;e&lt;s.length;e++)c.pushUnique(r,s[e])}}for(t=0;t&lt;r.length;t++)n[r[t]]=[];return n}(),I=l._splomAxes={x:{},y:{}},P=l._splomSubplots={};l._splomGridDflt={},l._scatterStackOpts={},l._firstScatter={},l._alignmentOpts={},l._colorAxes={},l._requestRangeslider={},l._traceUids=function(t,e){var r,n,i=e.length,a=[];for(r=0;r&lt;t.length;r++){var o=t[r]._fullInput;o!==n&amp;&amp;a.push(o),n=o}var s=a.length,l=new Array(i),u={};function f(t,e){l[e]=t,u[t]=1}function h(t,e){if(t&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;!u[t])return f(t,e),!0}for(r=0;r&lt;i;r++){var p=e[r].uid;&quot;number&quot;==typeof p&amp;&amp;(p=String(p)),h(p,r)||(r&lt;s&amp;&amp;h(a[r].uid,r)||f(c.randstr(u),r))}return l}(f,d),l._globalTransforms=(t._context||{}).globalTransforms,x.supplyDataDefaults(d,h,u,l);var z=Object.keys(I.x),O=Object.keys(I.y);if(z.length&gt;1&amp;&amp;O.length&gt;1){for(o.getComponentMethod(&quot;grid&quot;,&quot;sizeDefaults&quot;)(u,l),s=0;s&lt;z.length;s++)c.pushUnique(L.xaxis,z[s]);for(s=0;s&lt;O.length;s++)c.pushUnique(L.yaxis,O[s]);for(var D in P)c.pushUnique(L.cartesian,D)}if(l._has=x._hasPlotType.bind(l),f.length===h.length)for(s=0;s&lt;h.length;s++)v(h[s],f[s]);x.supplyLayoutModuleDefaults(u,l,h,t._transitionData);var R=l._visibleModules,F=[];for(s=0;s&lt;R.length;s++){var B=R[s].crossTraceDefaults;B&amp;&amp;c.pushUnique(F,B)}for(s=0;s&lt;F.length;s++)F[s](h,l);l._hasOnlyLargeSploms=1===l._basePlotModules.length&amp;&amp;&quot;splom&quot;===l._basePlotModules[0].name&amp;&amp;z.length&gt;15&amp;&amp;O.length&gt;15&amp;&amp;0===l.shapes.length&amp;&amp;0===l.images.length,l._hasCartesian=l._has(&quot;cartesian&quot;),l._hasGeo=l._has(&quot;geo&quot;),l._hasGL3D=l._has(&quot;gl3d&quot;),l._hasGL2D=l._has(&quot;gl2d&quot;),l._hasTernary=l._has(&quot;ternary&quot;),l._hasPie=l._has(&quot;pie&quot;),x.linkSubplots(h,l,f,a),x.cleanPlot(h,l,f,a);var N=!(!a._has||!a._has(&quot;gl2d&quot;)),j=!(!l._has||!l._has(&quot;gl2d&quot;)),U=!(!a._has||!a._has(&quot;cartesian&quot;))||N,V=!(!l._has||!l._has(&quot;cartesian&quot;))||j;U&amp;&amp;!V?a._bgLayer.remove():V&amp;&amp;!U&amp;&amp;(l._shouldCreateBgLayer=!0),a._zoomlayer&amp;&amp;!t._dragging&amp;&amp;p({_fullLayout:a}),function(t,e){var r,n=[];e.meta&amp;&amp;(r=e._meta={meta:e.meta,layout:{meta:e.meta}});for(var i=0;i&lt;t.length;i++){var a=t[i];a.meta?n[a.index]=a._meta={meta:a.meta}:e.meta&amp;&amp;(a._meta={meta:e.meta}),e.meta&amp;&amp;(a._meta.layout={meta:e.meta})}n.length&amp;&amp;(r||(r=e._meta={}),r.data=n)}(h,l),v(l,a),o.getComponentMethod(&quot;colorscale&quot;,&quot;crossTraceDefaults&quot;)(h,l),l._preGUI||(l._preGUI={}),l._tracePreGUI||(l._tracePreGUI={});var q,H=l._tracePreGUI,G={};for(q in H)G[q]=&quot;old&quot;;for(s=0;s&lt;h.length;s++)G[q=h[s]._fullInput.uid]||(H[q]={}),G[q]=&quot;new&quot;;for(q in G)&quot;old&quot;===G[q]&amp;&amp;delete H[q];C(l),o.getComponentMethod(&quot;rangeslider&quot;,&quot;makeData&quot;)(l),r||g.length!==h.length||x.supplyDefaultsUpdateCalc(g,h)}},x.supplyDefaultsUpdateCalc=function(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r],i=(t[r]||[])[0];if(i&amp;&amp;i.trace){var a=i.trace;if(a._hasCalcTransform){var o,s,l,u=a._arrayAttrs;for(o=0;o&lt;u.length;o++)s=u[o],l=c.nestedProperty(a,s).get().slice(),c.nestedProperty(n,s).set(l)}i.trace=n}}},x.createTransitionData=function(t){t._transitionData||(t._transitionData={}),t._transitionData._frames||(t._transitionData._frames=[]),t._transitionData._frameHash||(t._transitionData._frameHash={}),t._transitionData._counter||(t._transitionData._counter=0),t._transitionData._interruptCallbacks||(t._transitionData._interruptCallbacks=[])},x._hasPlotType=function(t){var e,r=this._basePlotModules||[];for(e=0;e&lt;r.length;e++)if(r[e].name===t)return!0;var n=this._modules||[];for(e=0;e&lt;n.length;e++){var i=n[e].name;if(i===t)return!0;var a=o.modules[i];if(a&amp;&amp;a.categories[t])return!0}return!1},x.cleanPlot=function(t,e,r,n){var i,a,o=n._basePlotModules||[];for(i=0;i&lt;o.length;i++){var s=o[i];s.clean&amp;&amp;s.clean(t,e,r,n)}var l=n._has&amp;&amp;n._has(&quot;gl&quot;),c=e._has&amp;&amp;e._has(&quot;gl&quot;);l&amp;&amp;!c&amp;&amp;void 0!==n._glcontainer&amp;&amp;(n._glcontainer.selectAll(&quot;.gl-canvas&quot;).remove(),n._glcontainer.selectAll(&quot;.no-webgl&quot;).remove(),n._glcanvas=null);var u=!!n._infolayer;t:for(i=0;i&lt;r.length;i++){var f=r[i].uid;for(a=0;a&lt;t.length;a++){if(f===t[a].uid)continue t}u&amp;&amp;n._infolayer.select(&quot;.cb&quot;+f).remove()}},x.linkSubplots=function(t,e,r,n){var i,a,s=n._plots||{},l=e._plots={},u=e._subplots,f={_fullData:t,_fullLayout:e},p=u.cartesian.concat(u.gl2d||[]);for(i=0;i&lt;p.length;i++){var d,g=p[i],m=s[g],v=h.getFromId(f,g,&quot;x&quot;),y=h.getFromId(f,g,&quot;y&quot;);for(m?d=l[g]=m:(d=l[g]={}).id=g,v._counterAxes.push(y._id),y._counterAxes.push(v._id),v._subplotsWith.push(g),y._subplotsWith.push(g),d.xaxis=v,d.yaxis=y,d._hasClipOnAxisFalse=!1,a=0;a&lt;t.length;a++){var x=t[a];if(x.xaxis===d.xaxis._id&amp;&amp;x.yaxis===d.yaxis._id&amp;&amp;!1===x.cliponaxis){d._hasClipOnAxisFalse=!0;break}}}var b,_=h.list(f,null,!0);for(i=0;i&lt;_.length;i++){var w=null;(b=_[i]).overlaying&amp;&amp;(w=h.getFromId(f,b.overlaying))&amp;&amp;w.overlaying&amp;&amp;(b.overlaying=!1,w=null),b._mainAxis=w||b,w&amp;&amp;(b.domain=w.domain.slice()),b._anchorAxis=&quot;free&quot;===b.anchor?null:h.getFromId(f,b.anchor)}for(i=0;i&lt;_.length;i++)if((b=_[i])._counterAxes.sort(h.idSort),b._subplotsWith.sort(c.subplotSort),b._mainSubplot=M(b,e),b._counterAxes.length&amp;&amp;(b.spikemode&amp;&amp;-1!==b.spikemode.indexOf(&quot;across&quot;)||b.automargin&amp;&amp;b.mirror&amp;&amp;&quot;free&quot;!==b.anchor||o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(b))){var T=1,k=0;for(a=0;a&lt;b._counterAxes.length;a++){var A=h.getFromId(f,b._counterAxes[a]);T=Math.min(T,A.domain[0]),k=Math.max(k,A.domain[1])}T&lt;k&amp;&amp;(b._counterDomainMin=T,b._counterDomainMax=k)}},x.clearExpandedTraceDefaultColors=function(t){var e,r,n;for(r=[],(e=t._module._colorAttrs)||(t._module._colorAttrs=e=[],s.crawl(t._module.attributes,(function(t,n,i,a){r[a]=n,r.length=a+1,&quot;color&quot;===t.valType&amp;&amp;void 0===t.dflt&amp;&amp;e.push(r.join(&quot;.&quot;))}))),n=0;n&lt;e.length;n++){c.nestedProperty(t,&quot;_input.&quot;+e[n]).get()||c.nestedProperty(t,e[n]).set(null)}},x.supplyDataDefaults=function(t,e,r,n){var i,a,s,u=n._modules,f=n._visibleModules,h=n._basePlotModules,p=0,d=0;function g(t){e.push(t);var r=t._module;r&amp;&amp;(c.pushUnique(u,r),!0===t.visible&amp;&amp;c.pushUnique(f,r),c.pushUnique(h,t._module.basePlotModule),p++,!1!==t._input.visible&amp;&amp;d++)}n._transformModules=[];var m={},y=[],b=(r.template||{}).data||{},_=l.traceTemplater(b);for(i=0;i&lt;t.length;i++){if(s=t[i],(a=_.newTrace(s)).uid=n._traceUids[i],x.supplyTraceDefaults(s,a,d,n,i),a.index=i,a._input=s,a._expandedIndex=p,a.transforms&amp;&amp;a.transforms.length)for(var w=!1!==s.visible&amp;&amp;!1===a.visible,T=S(a,e,r,n),k=0;k&lt;T.length;k++){var M=T[k],A={_template:a._template,type:a.type,uid:a.uid+k};w&amp;&amp;!1===M.visible&amp;&amp;delete M.visible,x.supplyTraceDefaults(M,A,p,n,i),v(A,M),A.index=i,A._input=s,A._fullInput=a,A._expandedIndex=p,A._expandedInput=M,g(A)}else a._fullInput=a,a._expandedInput=a,g(a);o.traceIs(a,&quot;carpetAxis&quot;)&amp;&amp;(m[a.carpet]=a),o.traceIs(a,&quot;carpetDependent&quot;)&amp;&amp;y.push(i)}for(i=0;i&lt;y.length;i++)if((a=e[y[i]]).visible){var E=m[a.carpet];a._carpet=E,E&amp;&amp;E.visible?(a.xaxis=E.xaxis,a.yaxis=E.yaxis):a.visible=!1}},x.supplyAnimationDefaults=function(t){var e;t=t||{};var r={};function n(e,n){return c.coerce(t||{},r,d,e,n)}if(n(&quot;mode&quot;),n(&quot;direction&quot;),n(&quot;fromcurrent&quot;),Array.isArray(t.frame))for(r.frame=[],e=0;e&lt;t.frame.length;e++)r.frame[e]=x.supplyAnimationFrameDefaults(t.frame[e]||{});else r.frame=x.supplyAnimationFrameDefaults(t.frame||{});if(Array.isArray(t.transition))for(r.transition=[],e=0;e&lt;t.transition.length;e++)r.transition[e]=x.supplyAnimationTransitionDefaults(t.transition[e]||{});else r.transition=x.supplyAnimationTransitionDefaults(t.transition||{});return r},x.supplyAnimationFrameDefaults=function(t){var e={};function r(r,n){return c.coerce(t||{},e,d.frame,r,n)}return r(&quot;duration&quot;),r(&quot;redraw&quot;),e},x.supplyAnimationTransitionDefaults=function(t){var e={};function r(r,n){return c.coerce(t||{},e,d.transition,r,n)}return r(&quot;duration&quot;),r(&quot;easing&quot;),e},x.supplyFrameDefaults=function(t){var e={};function r(r,n){return c.coerce(t,e,g,r,n)}return r(&quot;group&quot;),r(&quot;name&quot;),r(&quot;traces&quot;),r(&quot;baseframe&quot;),r(&quot;data&quot;),r(&quot;layout&quot;),e},x.supplyTraceDefaults=function(t,e,r,n,i){var a,s=n.colorway||u.defaults,l=s[r%s.length];function f(r,n){return c.coerce(t,e,x.attributes,r,n)}var h=f(&quot;visible&quot;);f(&quot;type&quot;),f(&quot;name&quot;,n._traceWord+&quot; &quot;+i),f(&quot;uirevision&quot;,n.uirevision);var p=x.getModule(e);if(e._module=p,p){var d=p.basePlotModule,g=d.attr,m=d.attributes;if(g&amp;&amp;m){var v=n._subplots,y=&quot;&quot;;if(h||&quot;gl2d&quot;!==d.name){if(Array.isArray(g))for(a=0;a&lt;g.length;a++){var b=g[a],_=c.coerce(t,e,m,b);v[b]&amp;&amp;c.pushUnique(v[b],_),y+=_}else y=c.coerce(t,e,m,g);v[d.name]&amp;&amp;c.pushUnique(v[d.name],y)}}}return h&amp;&amp;(f(&quot;customdata&quot;),f(&quot;ids&quot;),f(&quot;meta&quot;),o.traceIs(e,&quot;showLegend&quot;)?(c.coerce(t,e,p.attributes.showlegend?p.attributes:x.attributes,&quot;showlegend&quot;),f(&quot;legendgroup&quot;),e._dfltShowLegend=!0):e._dfltShowLegend=!1,p&amp;&amp;p.supplyDefaults(t,e,l,n),o.traceIs(e,&quot;noOpacity&quot;)||f(&quot;opacity&quot;),o.traceIs(e,&quot;notLegendIsolatable&quot;)&amp;&amp;(e.visible=!!e.visible),o.traceIs(e,&quot;noHover&quot;)||(e.hovertemplate||c.coerceHoverinfo(t,e,n),&quot;parcats&quot;!==e.type&amp;&amp;o.getComponentMethod(&quot;fx&quot;,&quot;supplyDefaults&quot;)(t,e,l,n)),p&amp;&amp;p.selectPoints&amp;&amp;f(&quot;selectedpoints&quot;),x.supplyTransformDefaults(t,e,n)),e},x.hasMakesDataTransform=A,x.supplyTransformDefaults=function(t,e,r){if(e._length||A(t)){var n=r._globalTransforms||[],i=r._transformModules||[];if(Array.isArray(t.transforms)||0!==n.length)for(var a=t.transforms||[],o=n.concat(a),s=e.transforms=[],l=0;l&lt;o.length;l++){var u,f=o[l],h=f.type,p=b[h],d=!(f._module&amp;&amp;f._module===p),g=p&amp;&amp;&quot;function&quot;==typeof p.transform;p||c.warn(&quot;Unrecognized transform type &quot;+h+&quot;.&quot;),p&amp;&amp;p.supplyDefaults&amp;&amp;(d||g)?((u=p.supplyDefaults(f,e,r,t)).type=h,u._module=p,c.pushUnique(i,p)):u=c.extendFlat({},f),s.push(u)}}},x.supplyLayoutGlobalDefaults=function(t,e,r){function n(r,n){return c.coerce(t,e,x.layoutAttributes,r,n)}var i=t.template;c.isPlainObject(i)&amp;&amp;(e.template=i,e._template=i.layout,e._dataTemplate=i.data),n(&quot;autotypenumbers&quot;);var a=c.coerceFont(n,&quot;font&quot;);n(&quot;title.text&quot;,e._dfltTitle.plot),c.coerceFont(n,&quot;title.font&quot;,{family:a.family,size:Math.round(1.4*a.size),color:a.color}),n(&quot;title.xref&quot;),n(&quot;title.yref&quot;),n(&quot;title.x&quot;),n(&quot;title.y&quot;),n(&quot;title.xanchor&quot;),n(&quot;title.yanchor&quot;),n(&quot;title.pad.t&quot;),n(&quot;title.pad.r&quot;),n(&quot;title.pad.b&quot;),n(&quot;title.pad.l&quot;),n(&quot;uniformtext.mode&quot;)&amp;&amp;n(&quot;uniformtext.minsize&quot;),n(&quot;autosize&quot;,!(t.width&amp;&amp;t.height)),n(&quot;width&quot;),n(&quot;height&quot;),n(&quot;margin.l&quot;),n(&quot;margin.r&quot;),n(&quot;margin.t&quot;),n(&quot;margin.b&quot;),n(&quot;margin.pad&quot;),n(&quot;margin.autoexpand&quot;),t.width&amp;&amp;t.height&amp;&amp;x.sanitizeMargins(e),o.getComponentMethod(&quot;grid&quot;,&quot;sizeDefaults&quot;)(t,e),n(&quot;paper_bgcolor&quot;),n(&quot;separators&quot;,r.decimal+r.thousands),n(&quot;hidesources&quot;),n(&quot;colorway&quot;),n(&quot;datarevision&quot;);var s=n(&quot;uirevision&quot;);n(&quot;editrevision&quot;,s),n(&quot;selectionrevision&quot;,s),n(&quot;modebar.orientation&quot;),n(&quot;modebar.bgcolor&quot;,u.addOpacity(e.paper_bgcolor,.5));var l=u.contrast(u.rgb(e.modebar.bgcolor));n(&quot;modebar.color&quot;,u.addOpacity(l,.3)),n(&quot;modebar.activecolor&quot;,u.addOpacity(l,.7)),n(&quot;modebar.uirevision&quot;,s),o.getComponentMethod(&quot;shapes&quot;,&quot;supplyDrawNewShapeDefaults&quot;)(t,e,n),n(&quot;meta&quot;),c.isPlainObject(t.transition)&amp;&amp;(n(&quot;transition.duration&quot;),n(&quot;transition.easing&quot;),n(&quot;transition.ordering&quot;)),o.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;),o.getComponentMethod(&quot;fx&quot;,&quot;supplyLayoutGlobalDefaults&quot;)(t,e,n)},x.plotAutoSize=function(t,e,r){var n,i,o=t._context||{},s=o.frameMargins,l=c.isPlotDiv(t);if(l&amp;&amp;t.emit(&quot;plotly_autosize&quot;),o.fillFrame)n=window.innerWidth,i=window.innerHeight,document.body.style.overflow=&quot;hidden&quot;;else{var u=l?window.getComputedStyle(t):{};if(n=E(u.width)||E(u.maxWidth)||r.width,i=E(u.height)||E(u.maxHeight)||r.height,a(s)&amp;&amp;s&gt;0){var f=1-2*s;n=Math.round(f*n),i=Math.round(f*i)}}var h=x.layoutAttributes.width.min,p=x.layoutAttributes.height.min;n&lt;h&amp;&amp;(n=h),i&lt;p&amp;&amp;(i=p);var d=!e.width&amp;&amp;Math.abs(r.width-n)&gt;1,g=!e.height&amp;&amp;Math.abs(r.height-i)&gt;1;(g||d)&amp;&amp;(d&amp;&amp;(r.width=n),g&amp;&amp;(r.height=i)),t._initialAutoSize||(t._initialAutoSize={width:n,height:i}),x.sanitizeMargins(r)},x.supplyLayoutModuleDefaults=function(t,e,r,n){var i,a,s,l=o.componentsRegistry,u=e._basePlotModules,f=o.subplotsRegistry.cartesian;for(i in l)(s=l[i]).includeBasePlot&amp;&amp;s.includeBasePlot(t,e);for(var h in u.length||u.push(f),e._has(&quot;cartesian&quot;)&amp;&amp;(o.getComponentMethod(&quot;grid&quot;,&quot;contentDefaults&quot;)(t,e),f.finalizeSubplots(t,e)),e._subplots)e._subplots[h].sort(c.subplotSort);for(a=0;a&lt;u.length;a++)(s=u[a]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r);var p=e._modules;for(a=0;a&lt;p.length;a++)(s=p[a]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r);var d=e._transformModules;for(a=0;a&lt;d.length;a++)(s=d[a]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r,n);for(i in l)(s=l[i]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r)},x.purge=function(t){var e=t._fullLayout||{};void 0!==e._glcontainer&amp;&amp;(e._glcontainer.selectAll(&quot;.gl-canvas&quot;).remove(),e._glcontainer.remove(),e._glcanvas=null),e._modeBar&amp;&amp;e._modeBar.destroy(),t._transitionData&amp;&amp;(t._transitionData._interruptCallbacks&amp;&amp;(t._transitionData._interruptCallbacks.length=0),t._transitionData._animationRaf&amp;&amp;window.cancelAnimationFrame(t._transitionData._animationRaf)),c.clearThrottle(),c.clearResponsive(t),delete t.data,delete t.layout,delete t._fullData,delete t._fullLayout,delete t.calcdata,delete t.framework,delete t.empty,delete t.fid,delete t.undoqueue,delete t.undonum,delete t.autoplay,delete t.changed,delete t._promises,delete t._redrawTimer,delete t._hmlumcount,delete t._hmpixcount,delete t._transitionData,delete t._transitioning,delete t._initialAutoSize,delete t._transitioningWithDuration,delete t._dragging,delete t._dragged,delete t._dragdata,delete t._hoverdata,delete t._snapshotInProgress,delete t._editing,delete t._mouseDownTime,delete t._legendMouseDownTime,t.removeAllListeners&amp;&amp;t.removeAllListeners()},x.style=function(t){var e,r=t._fullLayout._visibleModules,n=[];for(e=0;e&lt;r.length;e++){var i=r[e];i.style&amp;&amp;c.pushUnique(n,i.style)}for(e=0;e&lt;n.length;e++)n[e](t)},x.sanitizeMargins=function(t){if(t&amp;&amp;t.margin){var e,r=t.width,n=t.height,i=t.margin,a=r-(i.l+i.r),o=n-(i.t+i.b);a&lt;0&amp;&amp;(e=(r-1)/(i.l+i.r),i.l=Math.floor(e*i.l),i.r=Math.floor(e*i.r)),o&lt;0&amp;&amp;(e=(n-1)/(i.t+i.b),i.t=Math.floor(e*i.t),i.b=Math.floor(e*i.b))}},x.clearAutoMarginIds=function(t){t._fullLayout._pushmarginIds={}},x.allowAutoMargin=function(t,e){t._fullLayout._pushmarginIds[e]=1};x.autoMargin=function(t,e,r){var n=t._fullLayout,i=n.width,a=n.height,o=n.margin,s=c.constrain(i-o.l-o.r,2,64),l=c.constrain(a-o.t-o.b,2,64),u=Math.max(0,i-s),f=Math.max(0,a-l),h=n._pushmargin,p=n._pushmarginIds;if(!1!==o.autoexpand){if(r){var d=r.pad;if(void 0===d&amp;&amp;(d=Math.min(12,o.l,o.r,o.t,o.b)),u){var g=(r.l+r.r)/u;g&gt;1&amp;&amp;(r.l/=g,r.r/=g)}if(f){var m=(r.t+r.b)/f;m&gt;1&amp;&amp;(r.t/=m,r.b/=m)}var v=void 0!==r.xl?r.xl:r.x,y=void 0!==r.xr?r.xr:r.x,b=void 0!==r.yt?r.yt:r.y,_=void 0!==r.yb?r.yb:r.y;h[e]={l:{val:v,size:r.l+d},r:{val:y,size:r.r+d},b:{val:_,size:r.b+d},t:{val:b,size:r.t+d}},p[e]=1}else delete h[e],delete p[e];if(!n._replotting)return x.doAutoMargin(t)}},x.doAutoMargin=function(t){var e=t._fullLayout,r=e.width,n=e.height;e._size||(e._size={}),C(e);var i=e._size,s=e.margin,l=c.extendFlat({},i),u=s.l,f=s.r,p=s.t,d=s.b,g=e._pushmargin,m=e._pushmarginIds;if(!1!==e.margin.autoexpand){for(var v in g)m[v]||delete g[v];for(var y in g.base={l:{val:0,size:u},r:{val:1,size:f},t:{val:1,size:p},b:{val:0,size:d}},g){var b=g[y].l||{},_=g[y].b||{},w=b.val,T=b.size,k=_.val,M=_.size;for(var A in g){if(a(T)&amp;&amp;g[A].r){var S=g[A].r.val,E=g[A].r.size;if(S&gt;w){var L=(T*S+(E-r)*w)/(S-w),I=(E*(1-w)+(T-r)*(1-S))/(S-w);L+I&gt;u+f&amp;&amp;(u=L,f=I)}}if(a(M)&amp;&amp;g[A].t){var P=g[A].t.val,z=g[A].t.size;if(P&gt;k){var O=(M*P+(z-n)*k)/(P-k),D=(z*(1-k)+(M-n)*(1-P))/(P-k);O+D&gt;d+p&amp;&amp;(d=O,p=D)}}}}}var R=c.constrain(r-s.l-s.r,2,64),F=c.constrain(n-s.t-s.b,2,64),B=Math.max(0,r-R),N=Math.max(0,n-F);if(B){var j=(u+f)/B;j&gt;1&amp;&amp;(u/=j,f/=j)}if(N){var U=(d+p)/N;U&gt;1&amp;&amp;(d/=U,p/=U)}if(i.l=Math.round(u),i.r=Math.round(f),i.t=Math.round(p),i.b=Math.round(d),i.p=Math.round(s.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!e._replotting&amp;&amp;x.didMarginChange(l,i)){&quot;_redrawFromAutoMarginCount&quot;in e?e._redrawFromAutoMarginCount++:e._redrawFromAutoMarginCount=1;var V=3*(1+Object.keys(m).length);if(e._redrawFromAutoMarginCount&lt;V)return o.call(&quot;plot&quot;,t);e._size=l,c.warn(&quot;Too many auto-margin redraws.&quot;)}!function(t){for(var e=h.list(t,&quot;&quot;,!0),r=0;r&lt;e.length;r++){var n=e[r]._hideOutOfRangeInsideTickLabels;n&amp;&amp;n()}}(t)};var L=[&quot;l&quot;,&quot;r&quot;,&quot;t&quot;,&quot;b&quot;,&quot;p&quot;,&quot;w&quot;,&quot;h&quot;];function I(t,e,r){var n=!1;var i=[x.previousPromises,function(){if(t._transitionData)return t._transitioning=!1,function(t){var e=Promise.resolve();if(!t)return e;for(;t.length;)e=e.then(t.shift());return e}(t._transitionData._interruptCallbacks)},r.prepareFn,x.rehover,function(){return t.emit(&quot;plotly_transitioning&quot;,[]),new Promise((function(i){t._transitioning=!0,e.duration&gt;0&amp;&amp;(t._transitioningWithDuration=!0),t._transitionData._interruptCallbacks.push((function(){n=!0})),r.redraw&amp;&amp;t._transitionData._interruptCallbacks.push((function(){return o.call(&quot;redraw&quot;,t)})),t._transitionData._interruptCallbacks.push((function(){t.emit(&quot;plotly_transitioninterrupted&quot;,[])}));var a=0,s=0;function l(){return a++,function(){s++,n||s!==a||function(e){if(!t._transitionData)return;(function(t){if(t)for(;t.length;)t.shift()})(t._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return o.call(&quot;redraw&quot;,t)})).then((function(){t._transitioning=!1,t._transitioningWithDuration=!1,t.emit(&quot;plotly_transitioned&quot;,[])})).then(e)}(i)}}r.runFn(l),setTimeout(l())}))}],a=c.syncOrAsync(i,t);return a&amp;&amp;a.then||(a=Promise.resolve()),a.then((function(){return t}))}x.didMarginChange=function(t,e){for(var r=0;r&lt;L.length;r++){var n=L[r],i=t[n],o=e[n];if(!a(i)||Math.abs(o-i)&gt;1)return!0}return!1},x.graphJson=function(t,e,r,n,i,a){(i&amp;&amp;e&amp;&amp;!t._fullData||i&amp;&amp;!e&amp;&amp;!t._fullLayout)&amp;&amp;x.supplyDefaults(t);var o=i?t._fullData:t.data,s=i?t._fullLayout:t.layout,l=(t._transitionData||{})._frames;function u(t,e){if(&quot;function&quot;==typeof t)return e?&quot;_function_&quot;:null;if(c.isPlainObject(t)){var n,i={};return Object.keys(t).sort().forEach((function(a){if(-1===[&quot;_&quot;,&quot;[&quot;].indexOf(a.charAt(0)))if(&quot;function&quot;!=typeof t[a]){if(&quot;keepdata&quot;===r){if(&quot;src&quot;===a.substr(a.length-3))return}else if(&quot;keepstream&quot;===r){if(&quot;string&quot;==typeof(n=t[a+&quot;src&quot;])&amp;&amp;n.indexOf(&quot;:&quot;)&gt;0&amp;&amp;!c.isPlainObject(t.stream))return}else if(&quot;keepall&quot;!==r&amp;&amp;&quot;string&quot;==typeof(n=t[a+&quot;src&quot;])&amp;&amp;n.indexOf(&quot;:&quot;)&gt;0)return;i[a]=u(t[a],e)}else e&amp;&amp;(i[a]=&quot;_function&quot;)})),i}return Array.isArray(t)?t.map((function(t){return u(t,e)})):c.isTypedArray(t)?c.simpleMap(t,c.identity):c.isJSDate(t)?c.ms2DateTimeLocal(+t):t}var f={data:(o||[]).map((function(t){var r=u(t);return e&amp;&amp;delete r.fit,r}))};if(!e&amp;&amp;(f.layout=u(s),i)){var h=s._size;f.layout.computed={margin:{b:h.b,l:h.l,r:h.r,t:h.t}}}return t.framework&amp;&amp;t.framework.isPolar&amp;&amp;(f=t.framework.getConfig()),l&amp;&amp;(f.frames=u(l)),a&amp;&amp;(f.config=u(t._context,!0)),&quot;object&quot;===n?f:JSON.stringify(f)},x.modifyFrames=function(t,e){var r,n,i,a=t._transitionData._frames,o=t._transitionData._frameHash;for(r=0;r&lt;e.length;r++)switch((n=e[r]).type){case&quot;replace&quot;:i=n.value;var s=(a[n.index]||{}).name,l=i.name;a[n.index]=o[l]=i,l!==s&amp;&amp;(delete o[s],o[l]=i);break;case&quot;insert&quot;:o[(i=n.value).name]=i,a.splice(n.index,0,i);break;case&quot;delete&quot;:delete o[(i=a[n.index]).name],a.splice(n.index,1)}return Promise.resolve()},x.computeFrame=function(t,e){var r,n,i,a,o=t._transitionData._frameHash;if(!e)throw new Error(&quot;computeFrame must be given a string frame name&quot;);var s=o[e.toString()];if(!s)return!1;for(var l=[s],c=[s.name];s.baseframe&amp;&amp;(s=o[s.baseframe.toString()])&amp;&amp;-1===c.indexOf(s.name);)l.push(s),c.push(s.name);for(var u={};s=l.pop();)if(s.layout&amp;&amp;(u.layout=x.extendLayout(u.layout,s.layout)),s.data){if(u.data||(u.data=[]),!(n=s.traces))for(n=[],r=0;r&lt;s.data.length;r++)n[r]=r;for(u.traces||(u.traces=[]),r=0;r&lt;s.data.length;r++)null!=(i=n[r])&amp;&amp;(-1===(a=u.traces.indexOf(i))&amp;&amp;(a=u.data.length,u.traces[a]=i),u.data[a]=x.extendTrace(u.data[a],s.data[r]))}return u},x.recomputeFrameHash=function(t){for(var e=t._transitionData._frameHash={},r=t._transitionData._frames,n=0;n&lt;r.length;n++){var i=r[n];i&amp;&amp;i.name&amp;&amp;(e[i.name]=i)}},x.extendObjectWithContainers=function(t,e,r){var n,i,a,o,s,l,u,f=c.extendDeepNoArrays({},e||{}),h=c.expandObjectPaths(f),p={};if(r&amp;&amp;r.length)for(a=0;a&lt;r.length;a++)void 0===(i=(n=c.nestedProperty(h,r[a])).get())?c.nestedProperty(p,r[a]).set(null):(n.set(null),c.nestedProperty(p,r[a]).set(i));if(t=c.extendDeepNoArrays(t||{},h),r&amp;&amp;r.length)for(a=0;a&lt;r.length;a++)if(l=c.nestedProperty(p,r[a]).get()){for(u=(s=c.nestedProperty(t,r[a])).get(),Array.isArray(u)||(u=[],s.set(u)),o=0;o&lt;l.length;o++){var d=l[o];u[o]=null===d?null:x.extendObjectWithContainers(u[o],d)}s.set(u)}return t},x.dataArrayContainers=[&quot;transforms&quot;,&quot;dimensions&quot;],x.layoutArrayContainers=o.layoutArrayContainers,x.extendTrace=function(t,e){return x.extendObjectWithContainers(t,e,x.dataArrayContainers)},x.extendLayout=function(t,e){return x.extendObjectWithContainers(t,e,x.layoutArrayContainers)},x.transition=function(t,e,r,n,i,a){var o={redraw:i.redraw},s={},l=[];return o.prepareFn=function(){for(var i=Array.isArray(e)?e.length:0,a=n.slice(0,i),o=0;o&lt;a.length;o++){var u=a[o],f=t._fullData[u]._module;if(f){if(f.animatable){var h=f.basePlotModule.name;s[h]||(s[h]=[]),s[h].push(u)}t.data[a[o]]=x.extendTrace(t.data[a[o]],e[o])}}var p=c.expandObjectPaths(c.extendDeepNoArrays({},r)),d=/^[xy]axis[0-9]*$/;for(var g in p)d.test(g)&amp;&amp;delete p[g].range;x.extendLayout(t.layout,p),delete t.calcdata,x.supplyDefaults(t),x.doCalcdata(t);var m=c.expandObjectPaths(r);if(m){var v=t._fullLayout._plots;for(var y in v){var b=v[y],_=b.xaxis,w=b.yaxis,T=_.range.slice(),k=w.range.slice(),M=null,A=null,S=null,E=null;Array.isArray(m[_._name+&quot;.range&quot;])?M=m[_._name+&quot;.range&quot;].slice():Array.isArray((m[_._name]||{}).range)&amp;&amp;(M=m[_._name].range.slice()),Array.isArray(m[w._name+&quot;.range&quot;])?A=m[w._name+&quot;.range&quot;].slice():Array.isArray((m[w._name]||{}).range)&amp;&amp;(A=m[w._name].range.slice()),T&amp;&amp;M&amp;&amp;(_.r2l(T[0])!==_.r2l(M[0])||_.r2l(T[1])!==_.r2l(M[1]))&amp;&amp;(S={xr0:T,xr1:M}),k&amp;&amp;A&amp;&amp;(w.r2l(k[0])!==w.r2l(A[0])||w.r2l(k[1])!==w.r2l(A[1]))&amp;&amp;(E={yr0:k,yr1:A}),(S||E)&amp;&amp;l.push(c.extendFlat({plotinfo:b},S,E))}}return Promise.resolve()},o.runFn=function(e){var n,i,o=t._fullLayout._basePlotModules,u=l.length;if(r)for(i=0;i&lt;o.length;i++)o[i].transitionAxes&amp;&amp;o[i].transitionAxes(t,l,a,e);for(var f in u?((n=c.extendFlat({},a)).duration=0,delete s.cartesian):n=a,s){var h=s[f];t._fullData[h[0]]._module.basePlotModule.plot(t,h,n,e)}},I(t,a,o)},x.transitionFromReact=function(t,e,r,n){var i=t._fullLayout,a=i.transition,o={},s=[];return o.prepareFn=function(){var t=i._plots;for(var a in o.redraw=!1,&quot;some&quot;===e.anim&amp;&amp;(o.redraw=!0),&quot;some&quot;===r.anim&amp;&amp;(o.redraw=!0),t){var l=t[a],u=l.xaxis,f=l.yaxis,h=n[u._name].range.slice(),p=n[f._name].range.slice(),d=u.range.slice(),g=f.range.slice();u.setScale(),f.setScale();var m=null,v=null;u.r2l(h[0])===u.r2l(d[0])&amp;&amp;u.r2l(h[1])===u.r2l(d[1])||(m={xr0:h,xr1:d}),f.r2l(p[0])===f.r2l(g[0])&amp;&amp;f.r2l(p[1])===f.r2l(g[1])||(v={yr0:p,yr1:g}),(m||v)&amp;&amp;s.push(c.extendFlat({plotinfo:l},m,v))}return Promise.resolve()},o.runFn=function(r){for(var n,i,o,l=t._fullData,u=t._fullLayout._basePlotModules,f=[],h=0;h&lt;l.length;h++)f.push(h);function p(){for(var e=0;e&lt;u.length;e++)u[e].transitionAxes&amp;&amp;u[e].transitionAxes(t,s,n,r)}function d(){for(var e=0;e&lt;u.length;e++)u[e].plot(t,o,i,r)}s.length&amp;&amp;e.anim?&quot;traces first&quot;===a.ordering?(n=c.extendFlat({},a,{duration:0}),o=f,i=a,setTimeout(p,a.duration),d()):(n=a,o=null,i=c.extendFlat({},a,{duration:0}),setTimeout(d,n.duration),p()):s.length?(n=a,p()):e.anim&amp;&amp;(o=f,i=a,d())},I(t,a,o)},x.doCalcdata=function(t,e){var r,n,i,a,l=h.list(t),u=t._fullData,p=t._fullLayout,d=new Array(u.length),g=(t.calcdata||[]).slice();for(t.calcdata=d,p._numBoxes=0,p._numViolins=0,p._violinScaleGroupStats={},t._hmpixcount=0,t._hmlumcount=0,p._piecolormap={},p._sunburstcolormap={},p._treemapcolormap={},p._funnelareacolormap={},i=0;i&lt;u.length;i++)Array.isArray(e)&amp;&amp;-1===e.indexOf(i)&amp;&amp;(d[i]=g[i]);for(i=0;i&lt;u.length;i++)(r=u[i])._arrayAttrs=s.findArrayAttributes(r),r._extremes={};var m=p._subplots.polar||[];for(i=0;i&lt;m.length;i++)l.push(p[m[i]].radialaxis,p[m[i]].angularaxis);for(var v in p._colorAxes){var y=p[v];!1!==y.cauto&amp;&amp;(delete y.cmin,delete y.cmax)}var x=!1;function _(e){if(r=u[e],n=r._module,!0===r.visible&amp;&amp;r.transforms){if(n&amp;&amp;n.calc){var i=n.calc(t,r);i[0]&amp;&amp;i[0].t&amp;&amp;i[0].t._scene&amp;&amp;delete i[0].t._scene.dirty}for(a=0;a&lt;r.transforms.length;a++){var o=r.transforms[a];(n=b[o.type])&amp;&amp;n.calcTransform&amp;&amp;(r._hasCalcTransform=!0,x=!0,n.calcTransform(t,r,o))}}}function w(e,i){if(r=u[e],!!(n=r._module).isContainer===i){var o=[];if(!0===r.visible&amp;&amp;0!==r._length){delete r._indexToPoints;var s=r.transforms||[];for(a=s.length-1;a&gt;=0;a--)if(s[a].enabled){r._indexToPoints=s[a]._indexToPoints;break}n&amp;&amp;n.calc&amp;&amp;(o=n.calc(t,r))}Array.isArray(o)&amp;&amp;o[0]||(o=[{x:f,y:f}]),o[0].t||(o[0].t={}),o[0].trace=r,d[e]=o}}for(z(l,u,p),i=0;i&lt;u.length;i++)w(i,!0);for(i=0;i&lt;u.length;i++)_(i);for(x&amp;&amp;z(l,u,p),i=0;i&lt;u.length;i++)w(i,!0);for(i=0;i&lt;u.length;i++)w(i,!1);O(t);var T=function(t,e){var r,n,i,a,s,l=[];function u(t,r,n){var i=r._id.charAt(0);if(&quot;histogram2dcontour&quot;===t){var a=r._counterAxes[0],o=h.getFromId(e,a),s=&quot;x&quot;===i||&quot;x&quot;===a&amp;&amp;&quot;category&quot;===o.type,l=&quot;y&quot;===i||&quot;y&quot;===a&amp;&amp;&quot;category&quot;===o.type;return function(t,e){return 0===t||0===e||s&amp;&amp;t===n[e].length-1||l&amp;&amp;e===n.length-1?-1:(&quot;y&quot;===i?e:t)-1}}return function(t,e){return&quot;y&quot;===i?e:t}}var f={min:function(t){return c.aggNums(Math.min,null,t)},max:function(t){return c.aggNums(Math.max,null,t)},sum:function(t){return c.aggNums((function(t,e){return t+e}),null,t)},total:function(t){return c.aggNums((function(t,e){return t+e}),null,t)},mean:function(t){return c.mean(t)},median:function(t){return c.median(t)}};for(r=0;r&lt;t.length;r++){var p=t[r];if(&quot;category&quot;===p.type){var d=p.categoryorder.match(P);if(d){var g=d[1],m=d[2],v=p._id.charAt(0),y=&quot;x&quot;===v,x=[];for(n=0;n&lt;p._categories.length;n++)x.push([p._categories[n],[]]);for(n=0;n&lt;p._traceIndices.length;n++){var b=p._traceIndices[n],_=e._fullData[b];if(!0===_.visible){var w=_.type;o.traceIs(_,&quot;histogram&quot;)&amp;&amp;(delete _._xautoBinFinished,delete _._yautoBinFinished);var T=&quot;splom&quot;===w,k=&quot;scattergl&quot;===w,M=e.calcdata[b];for(i=0;i&lt;M.length;i++){var A,S,E=M[i];if(T){var C=_._axesDim[p._id];if(!y){var L=_._diag[C][0];L&amp;&amp;(p=e._fullLayout[h.id2name(L)])}var I=E.trace.dimensions[C].values;for(a=0;a&lt;I.length;a++)for(A=p._categoriesMap[I[a]],s=0;s&lt;E.trace.dimensions.length;s++)if(s!==C){var z=E.trace.dimensions[s];x[A][1].push(z.values[a])}}else if(k){for(a=0;a&lt;E.t.x.length;a++)y?(A=E.t.x[a],S=E.t.y[a]):(A=E.t.y[a],S=E.t.x[a]),x[A][1].push(S);E.t&amp;&amp;E.t._scene&amp;&amp;delete E.t._scene.dirty}else if(E.hasOwnProperty(&quot;z&quot;)){S=E.z;var O=u(_.type,p,S);for(a=0;a&lt;S.length;a++)for(s=0;s&lt;S[a].length;s++)(A=O(s,a))+1&amp;&amp;x[A][1].push(S[a][s])}else for(void 0===(A=E.p)&amp;&amp;(A=E[v]),void 0===(S=E.s)&amp;&amp;(S=E.v),void 0===S&amp;&amp;(S=y?E.y:E.x),Array.isArray(S)||(S=void 0===S?[]:[S]),a=0;a&lt;S.length;a++)x[A][1].push(S[a])}}}p._categoriesValue=x;var D=[];for(n=0;n&lt;x.length;n++)D.push([x[n][0],f[g](x[n][1])]);D.sort((function(t,e){return t[1]-e[1]})),p._categoriesAggregatedValue=D,p._initialCategories=D.map((function(t){return t[0]})),&quot;descending&quot;===m&amp;&amp;p._initialCategories.reverse(),l=l.concat(p.sortByInitialCategories())}}}return l}(l,t);if(T.length){for(p._numBoxes=0,p._numViolins=0,i=0;i&lt;T.length;i++)w(T[i],!0);for(i=0;i&lt;T.length;i++)w(T[i],!1);O(t)}o.getComponentMethod(&quot;fx&quot;,&quot;calc&quot;)(t),o.getComponentMethod(&quot;errorbars&quot;,&quot;calc&quot;)(t)};var P=/(total|sum|min|max|mean|median) (ascending|descending)/;function z(t,e,r){var n={};function i(t){t.clearCalc(),&quot;multicategory&quot;===t.type&amp;&amp;t.setupMultiCategory(e),n[t._id]=1}c.simpleMap(t,i);for(var a=r._axisMatchGroups||[],o=0;o&lt;a.length;o++)for(var s in a[o])n[s]||i(r[h.id2name(s)])}function O(t){var e,r,n,i=t._fullLayout,a=i._visibleModules,o={};for(r=0;r&lt;a.length;r++){var s=a[r],l=s.crossTraceCalc;if(l){var u=s.basePlotModule.name;o[u]?c.pushUnique(o[u],l):o[u]=[l]}}for(n in o){var f=o[n],h=i._subplots[n];if(Array.isArray(h))for(e=0;e&lt;h.length;e++){var p=h[e],d=&quot;cartesian&quot;===n?i._plots[p]:i[p];for(r=0;r&lt;f.length;r++)f[r](t,d,p)}else for(r=0;r&lt;f.length;r++)f[r](t)}}x.rehover=function(t){t._fullLayout._rehover&amp;&amp;t._fullLayout._rehover()},x.redrag=function(t){t._fullLayout._redrag&amp;&amp;t._fullLayout._redrag()},x.generalUpdatePerTraceModule=function(t,e,r,n){var i,a=e.traceHash,o={};for(i=0;i&lt;r.length;i++){var s=r[i],l=s[0].trace;l.visible&amp;&amp;(o[l.type]=o[l.type]||[],o[l.type].push(s))}for(var u in a)if(!o[u]){var f=a[u][0];f[0].trace.visible=!1,o[u]=[f]}for(var h in o){var p=o[h];p[0][0].trace._module.plot(t,e,c.filterVisible(p),n)}e.traceHash=o},x.plotBasePlot=function(t,e,r,n,i){var a=o.getModule(t),s=m(e.calcdata,a)[0];a.plot(e,s,n,i)},x.cleanBasePlot=function(t,e,r,n,i){var a=i._has&amp;&amp;i._has(t),o=r._has&amp;&amp;r._has(t);a&amp;&amp;!o&amp;&amp;i[&quot;_&quot;+t+&quot;layer&quot;].selectAll(&quot;g.trace&quot;).remove()}},{&quot;../components/color&quot;:643,&quot;../constants/numerical&quot;:753,&quot;../lib&quot;:778,&quot;../plot_api/plot_schema&quot;:816,&quot;../plot_api/plot_template&quot;:817,&quot;../plots/get_data&quot;:865,&quot;../registry&quot;:911,&quot;./animation_attributes&quot;:822,&quot;./attributes&quot;:824,&quot;./cartesian/axis_ids&quot;:831,&quot;./cartesian/handle_outline&quot;:838,&quot;./command&quot;:854,&quot;./font_attributes&quot;:856,&quot;./frame_attributes&quot;:857,&quot;./layout_attributes&quot;:882,d3:169,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],892:[function(t,e,r){&quot;use strict&quot;;e.exports={attr:&quot;subplot&quot;,name:&quot;polar&quot;,axisNames:[&quot;angularaxis&quot;,&quot;radialaxis&quot;],axisName2dataArray:{angularaxis:&quot;theta&quot;,radialaxis:&quot;r&quot;},layerNames:[&quot;draglayer&quot;,&quot;plotbg&quot;,&quot;backplot&quot;,&quot;angular-grid&quot;,&quot;radial-grid&quot;,&quot;frontplot&quot;,&quot;angular-line&quot;,&quot;radial-line&quot;,&quot;angular-axis&quot;,&quot;radial-axis&quot;],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}},{}],893:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/polygon&quot;).tester,a=n.findIndexOfMin,o=n.isAngleInsideSector,s=n.angleDelta,l=n.angleDist;function c(t,e,r,n){var i,a,o=n[0],s=n[1],l=f(Math.sin(e)-Math.sin(t)),c=f(Math.cos(e)-Math.cos(t)),u=Math.tan(r),h=f(1/u),p=l/c,d=s-p*o;return h?l&amp;&amp;c?a=u*(i=d/(u-p)):c?(i=s*h,a=s):(i=o,a=o*u):l&amp;&amp;c?(i=0,a=d):c?(i=0,a=s):i=a=NaN,[i,a]}function u(t,e,r,i){return n.isFullCircle([e,r])?function(t,e){var r,n=e.length,i=new Array(n+1);for(r=0;r&lt;n;r++){var a=e[r];i[r]=[t*Math.cos(a),t*Math.sin(a)]}return i[r]=i[0].slice(),i}(t,i):function(t,e,r,i){var s,u,f=i.length,h=[];function p(e){return[t*Math.cos(e),t*Math.sin(e)]}function d(t,e,r){return c(t,e,r,p(t))}function g(t){return n.mod(t,f)}function m(t){return o(t,[e,r])}var v=a(i,(function(t){return m(t)?l(t,e):1/0})),y=d(i[v],i[g(v-1)],e);for(h.push(y),s=v,u=0;u&lt;f;s++,u++){var x=i[g(s)];if(!m(x))break;h.push(p(x))}var b=a(i,(function(t){return m(t)?l(t,r):1/0})),_=d(i[b],i[g(b+1)],r);return h.push(_),h.push([0,0]),h.push(h[0].slice()),h}(t,e,r,i)}function f(t){return Math.abs(t)&gt;1e-10?t:0}function h(t,e,r){e=e||0,r=r||0;for(var n=t.length,i=new Array(n),a=0;a&lt;n;a++){var o=t[a];i[a]=[e+o[0],r-o[1]]}return i}e.exports={isPtInsidePolygon:function(t,e,r,n,a){if(!o(e,n))return!1;var s,l;r[0]&lt;r[1]?(s=r[0],l=r[1]):(s=r[1],l=r[0]);var c=i(u(s,n[0],n[1],a)),f=i(u(l,n[0],n[1],a)),h=[t*Math.cos(e),t*Math.sin(e)];return f.contains(h)&amp;&amp;!c.contains(h)},findPolygonOffset:function(t,e,r,n){for(var i=1/0,a=1/0,o=u(t,e,r,n),s=0;s&lt;o.length;s++){var l=o[s];i=Math.min(i,l[0]),a=Math.min(a,-l[1])}return[i,a]},findEnclosingVertexAngles:function(t,e){var r=a(e,(function(e){var r=s(e,t);return r&gt;0?r:1/0})),i=n.mod(r+1,e.length);return[e[r],e[i]]},findIntersectionXY:c,findXYatLength:function(t,e,r,n){var i=-e*r,a=e*e+1,o=2*(e*i-r),s=i*i+r*r-t*t,l=Math.sqrt(o*o-4*a*s),c=(-o+l)/(2*a),u=(-o-l)/(2*a);return[[c,e*c+i+n],[u,e*u+i+n]]},clampTiny:f,pathPolygon:function(t,e,r,n,i,a){return&quot;M&quot;+h(u(t,e,r,n),i,a).join(&quot;L&quot;)},pathPolygonAnnulus:function(t,e,r,n,i,a,o){var s,l;t&lt;e?(s=t,l=e):(s=e,l=t);var c=h(u(s,r,n,i),a,o);return&quot;M&quot;+h(u(l,r,n,i),a,o).reverse().join(&quot;L&quot;)+&quot;M&quot;+c.join(&quot;L&quot;)}}},{&quot;../../lib&quot;:778,&quot;../../lib/polygon&quot;:790}],894:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../get_data&quot;).getSubplotCalcData,i=t(&quot;../../lib&quot;).counterRegex,a=t(&quot;./polar&quot;),o=t(&quot;./constants&quot;),s=o.attr,l=o.name,c=i(l),u={};u[s]={valType:&quot;subplotid&quot;,dflt:l,editType:&quot;calc&quot;},e.exports={attr:s,name:l,idRoot:l,idRegex:c,attrRegex:c,attributes:u,layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots[l],o=0;o&lt;i.length;o++){var s=i[o],c=n(r,l,s),u=e[s]._subplot;u||(u=a(t,s),e[s]._subplot=u),u.plot(c,e,t._promises)}},clean:function(t,e,r,n){for(var i=n._subplots[l]||[],a=n._has&amp;&amp;n._has(&quot;gl&quot;),o=e._has&amp;&amp;e._has(&quot;gl&quot;),s=a&amp;&amp;!o,c=0;c&lt;i.length;c++){var u=i[c],f=n[u]._subplot;if(!e[u]&amp;&amp;f)for(var h in f.framework.remove(),f.layers[&quot;radial-axis-title&quot;].remove(),f.clipPaths)f.clipPaths[h].remove();s&amp;&amp;f._scene&amp;&amp;(f._scene.destroy(),f._scene=null)}},toSVG:t(&quot;../cartesian&quot;).toSVG}},{&quot;../../lib&quot;:778,&quot;../cartesian&quot;:841,&quot;../get_data&quot;:865,&quot;./constants&quot;:892,&quot;./layout_attributes&quot;:895,&quot;./layout_defaults&quot;:896,&quot;./polar&quot;:903}],895:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../cartesian/layout_attributes&quot;),a=t(&quot;../domain&quot;).attributes,o=t(&quot;../../lib&quot;).extendFlat,s=t(&quot;../../plot_api/edit_types&quot;).overrideAll,l=s({color:i.color,showline:o({},i.showline,{dflt:!0}),linecolor:i.linecolor,linewidth:i.linewidth,showgrid:o({},i.showgrid,{dflt:!0}),gridcolor:i.gridcolor,gridwidth:i.gridwidth},&quot;plot&quot;,&quot;from-root&quot;),c=s({tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,showtickprefix:i.showtickprefix,tickprefix:i.tickprefix,showticksuffix:i.showticksuffix,ticksuffix:i.ticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickfont:i.tickfont,tickangle:i.tickangle,tickformat:i.tickformat,tickformatstops:i.tickformatstops,layer:i.layer},&quot;plot&quot;,&quot;from-root&quot;),u={visible:o({},i.visible,{dflt:!0}),type:o({},i.type,{values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;]}),autotypenumbers:i.autotypenumbers,autorange:o({},i.autorange,{editType:&quot;plot&quot;}),rangemode:{valType:&quot;enumerated&quot;,values:[&quot;tozero&quot;,&quot;nonnegative&quot;,&quot;normal&quot;],dflt:&quot;tozero&quot;,editType:&quot;calc&quot;},range:o({},i.range,{items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],editType:&quot;plot&quot;}),categoryorder:i.categoryorder,categoryarray:i.categoryarray,angle:{valType:&quot;angle&quot;,editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;],dflt:&quot;clockwise&quot;,editType:&quot;plot&quot;},title:{text:o({},i.title.text,{editType:&quot;plot&quot;,dflt:&quot;&quot;}),font:o({},i.title.font,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},hoverformat:i.hoverformat,uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;,_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}};o(u,l,c);var f={visible:o({},i.visible,{dflt:!0}),type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;category&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;,_noTemplating:!0},autotypenumbers:i.autotypenumbers,categoryorder:i.categoryorder,categoryarray:i.categoryarray,thetaunit:{valType:&quot;enumerated&quot;,values:[&quot;radians&quot;,&quot;degrees&quot;],dflt:&quot;degrees&quot;,editType:&quot;calc&quot;},period:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0},direction:{valType:&quot;enumerated&quot;,values:[&quot;counterclockwise&quot;,&quot;clockwise&quot;],dflt:&quot;counterclockwise&quot;,editType:&quot;calc&quot;},rotation:{valType:&quot;angle&quot;,editType:&quot;calc&quot;},hoverformat:i.hoverformat,uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;};o(f,l,c),e.exports={domain:a({name:&quot;polar&quot;,editType:&quot;plot&quot;}),sector:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],dflt:[0,360],editType:&quot;plot&quot;},hole:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;plot&quot;},bgcolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;,dflt:n.background},radialaxis:u,angularaxis:f,gridshape:{valType:&quot;enumerated&quot;,values:[&quot;circular&quot;,&quot;linear&quot;],dflt:&quot;circular&quot;,editType:&quot;plot&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;../cartesian/layout_attributes&quot;:842,&quot;../domain&quot;:855}],896:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;../subplot_defaults&quot;),s=t(&quot;../get_data&quot;).getSubplotData,l=t(&quot;../cartesian/tick_value_defaults&quot;),c=t(&quot;../cartesian/tick_mark_defaults&quot;),u=t(&quot;../cartesian/tick_label_defaults&quot;),f=t(&quot;../cartesian/category_order_defaults&quot;),h=t(&quot;../cartesian/line_grid_defaults&quot;),p=t(&quot;../cartesian/axis_autotype&quot;),d=t(&quot;./layout_attributes&quot;),g=t(&quot;./set_convert&quot;),m=t(&quot;./constants&quot;),v=m.axisNames;function y(t,e,r,o){var p=r(&quot;bgcolor&quot;);o.bgColor=i.combine(p,o.paper_bgcolor);var y=r(&quot;sector&quot;);r(&quot;hole&quot;);var b,_=s(o.fullData,m.name,o.id),w=o.layoutOut;function T(t,e){return r(b+&quot;.&quot;+t,e)}for(var k=0;k&lt;v.length;k++){b=v[k],n.isPlainObject(t[b])||(t[b]={});var M=t[b],A=a.newContainer(e,b);A._id=A._name=b,A._attr=o.id+&quot;.&quot;+b,A._traceIndices=_.map((function(t){return t._expandedIndex}));var S=m.axisName2dataArray[b],E=x(M,A,T,_,S,o);f(M,A,T,{axData:_,dataAttr:S});var C,L,I=T(&quot;visible&quot;);switch(g(A,e,w),T(&quot;uirevision&quot;,e.uirevision),I&amp;&amp;(L=(C=T(&quot;color&quot;))===M.color?C:o.font.color),A._m=1,b){case&quot;radialaxis&quot;:var P=T(&quot;autorange&quot;,!A.isValidRange(M.range));M.autorange=P,!P||&quot;linear&quot;!==E&amp;&amp;&quot;-&quot;!==E||T(&quot;rangemode&quot;),&quot;reversed&quot;===P&amp;&amp;(A._m=-1),T(&quot;range&quot;),A.cleanRange(&quot;range&quot;,{dfltRange:[0,1]}),I&amp;&amp;(T(&quot;side&quot;),T(&quot;angle&quot;,y[0]),T(&quot;title.text&quot;),n.coerceFont(T,&quot;title.font&quot;,{family:o.font.family,size:Math.round(1.2*o.font.size),color:L}));break;case&quot;angularaxis&quot;:if(&quot;date&quot;===E){n.log(&quot;Polar plots do not support date angular axes yet.&quot;);for(var z=0;z&lt;_.length;z++)_[z].visible=!1;E=M.type=A.type=&quot;linear&quot;}T(&quot;linear&quot;===E?&quot;thetaunit&quot;:&quot;period&quot;);var O=T(&quot;direction&quot;);T(&quot;rotation&quot;,{counterclockwise:0,clockwise:90}[O])}if(I)l(M,A,T,A.type),u(M,A,T,A.type,{tickSuffixDflt:&quot;degrees&quot;===A.thetaunit?&quot;\xb0&quot;:void 0}),c(M,A,T,{outerTicks:!0}),T(&quot;showticklabels&quot;)&amp;&amp;(n.coerceFont(T,&quot;tickfont&quot;,{family:o.font.family,size:o.font.size,color:L}),T(&quot;tickangle&quot;),T(&quot;tickformat&quot;)),h(M,A,T,{dfltColor:C,bgColor:o.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:d[b]}),T(&quot;layer&quot;);&quot;category&quot;!==E&amp;&amp;T(&quot;hoverformat&quot;),A._input=M}&quot;category&quot;===e.angularaxis.type&amp;&amp;r(&quot;gridshape&quot;)}function x(t,e,r,n,i,a){var o=r(&quot;autotypenumbers&quot;,a.autotypenumbersDflt);if(&quot;-&quot;===r(&quot;type&quot;)){for(var s,l=0;l&lt;n.length;l++)if(n[l].visible){s=n[l];break}s&amp;&amp;s[i]&amp;&amp;(e.type=p(s[i],&quot;gregorian&quot;,{noMultiCategory:!0,autotypenumbers:o})),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:t.type=e.type}return e.type}e.exports=function(t,e,r){o(t,e,r,{type:m.name,attributes:d,handleDefaults:y,font:e.font,autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,fullData:r,layoutOut:e})}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../cartesian/axis_autotype&quot;:829,&quot;../cartesian/category_order_defaults&quot;:832,&quot;../cartesian/line_grid_defaults&quot;:844,&quot;../cartesian/tick_label_defaults&quot;:849,&quot;../cartesian/tick_mark_defaults&quot;:850,&quot;../cartesian/tick_value_defaults&quot;:851,&quot;../get_data&quot;:865,&quot;../subplot_defaults&quot;:905,&quot;./constants&quot;:892,&quot;./layout_attributes&quot;:895,&quot;./set_convert&quot;:904}],897:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../traces/scatter/attributes&quot;),i=n.marker,a=t(&quot;../../../lib/extend&quot;).extendFlat;[&quot;Area traces are deprecated!&quot;,&quot;Please switch to the *barpolar* trace type.&quot;].join(&quot; &quot;);e.exports={r:a({},n.r,{}),t:a({},n.t,{}),marker:{color:a({},i.color,{}),size:a({},i.size,{}),symbol:a({},i.symbol,{}),opacity:a({},i.opacity,{}),editType:&quot;calc&quot;}}},{&quot;../../../lib/extend&quot;:768,&quot;../../../traces/scatter/attributes&quot;:1187}],898:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../cartesian/layout_attributes&quot;),i=t(&quot;../../../lib/extend&quot;).extendFlat,a=t(&quot;../../../plot_api/edit_types&quot;).overrideAll,o=[&quot;Legacy polar charts are deprecated!&quot;,&quot;Please switch to *polar* subplots.&quot;].join(&quot; &quot;),s=i({},n.domain,{});function l(t,e){return i({},e,{showline:{valType:&quot;boolean&quot;},showticklabels:{valType:&quot;boolean&quot;},tickorientation:{valType:&quot;enumerated&quot;,values:[&quot;horizontal&quot;,&quot;vertical&quot;]},ticklen:{valType:&quot;number&quot;,min:0},tickcolor:{valType:&quot;color&quot;},ticksuffix:{valType:&quot;string&quot;},endpadding:{valType:&quot;number&quot;,description:o},visible:{valType:&quot;boolean&quot;}})}e.exports=a({radialaxis:l(0,{range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},domain:s,orientation:{valType:&quot;number&quot;}}),angularaxis:l(0,{range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,dflt:0},{valType:&quot;number&quot;,dflt:360}]},domain:s}),layout:{direction:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;]},orientation:{valType:&quot;angle&quot;}}},&quot;plot&quot;,&quot;nested&quot;)},{&quot;../../../lib/extend&quot;:768,&quot;../../../plot_api/edit_types&quot;:810,&quot;../../cartesian/layout_attributes&quot;:842}],899:[function(t,e,r){&quot;use strict&quot;;(e.exports=t(&quot;./micropolar&quot;)).manager=t(&quot;./micropolar_manager&quot;)},{&quot;./micropolar&quot;:900,&quot;./micropolar_manager&quot;:901}],900:[function(t,e,r){var n=t(&quot;d3&quot;),i=t(&quot;../../../lib&quot;).extendDeepAll,a=t(&quot;../../../constants/alignment&quot;).MID_SHIFT,o=e.exports={version:&quot;0.2.2&quot;};o.Axis=function(){var t,e,r,s,l={data:[],layout:{}},c={},u={},f=n.dispatch(&quot;hover&quot;),h={};return h.render=function(c){return function(c){e=c||e;var f=l.data,h=l.layout;(&quot;string&quot;==typeof e||e.nodeName)&amp;&amp;(e=n.select(e)),e.datum(f).each((function(e,l){var c=e.slice();u={data:o.util.cloneJson(c),layout:o.util.cloneJson(h)};var f=0;c.forEach((function(t,e){t.color||(t.color=h.defaultColorRange[f],f=(f+1)%h.defaultColorRange.length),t.strokeColor||(t.strokeColor=&quot;LinePlot&quot;===t.geometry?t.color:n.rgb(t.color).darker().toString()),u.data[e].color=t.color,u.data[e].strokeColor=t.strokeColor,u.data[e].strokeDash=t.strokeDash,u.data[e].strokeSize=t.strokeSize}));var p=c.filter((function(t,e){var r=t.visible;return&quot;undefined&quot;==typeof r||!0===r})),d=!1,g=p.map((function(t,e){return d=d||&quot;undefined&quot;!=typeof t.groupId,t}));if(d){var m=n.nest().key((function(t,e){return&quot;undefined&quot;!=typeof t.groupId?t.groupId:&quot;unstacked&quot;})).entries(g),v=[],y=m.map((function(t,e){if(&quot;unstacked&quot;===t.key)return t.values;var r=t.values[0].r.map((function(t,e){return 0}));return t.values.forEach((function(t,e,n){t.yStack=[r],v.push(r),r=o.util.sumArrays(t.r,r)})),t.values}));p=n.merge(y)}p.forEach((function(t,e){t.t=Array.isArray(t.t[0])?t.t:[t.t],t.r=Array.isArray(t.r[0])?t.r:[t.r]}));var x=Math.min(h.width-h.margin.left-h.margin.right,h.height-h.margin.top-h.margin.bottom)/2;x=Math.max(10,x);var b,_=[h.margin.left+x,h.margin.top+x];d?b=[0,n.max(o.util.sumArrays(o.util.arrayLast(p).r[0],o.util.arrayLast(v)))]:b=n.extent(o.util.flattenArray(p.map((function(t,e){return t.r}))));h.radialAxis.domain!=o.DATAEXTENT&amp;&amp;(b[0]=0),r=n.scale.linear().domain(h.radialAxis.domain!=o.DATAEXTENT&amp;&amp;h.radialAxis.domain?h.radialAxis.domain:b).range([0,x]),u.layout.radialAxis.domain=r.domain();var w,T=o.util.flattenArray(p.map((function(t,e){return t.t}))),k=&quot;string&quot;==typeof T[0];k&amp;&amp;(T=o.util.deduplicate(T),w=T.slice(),T=n.range(T.length),p=p.map((function(t,e){var r=t;return t.t=[T],d&amp;&amp;(r.yStack=t.yStack),r})));var M=p.filter((function(t,e){return&quot;LinePlot&quot;===t.geometry||&quot;DotPlot&quot;===t.geometry})).length===p.length,A=null===h.needsEndSpacing?k||!M:h.needsEndSpacing,S=h.angularAxis.domain&amp;&amp;h.angularAxis.domain!=o.DATAEXTENT&amp;&amp;!k&amp;&amp;h.angularAxis.domain[0]&gt;=0?h.angularAxis.domain:n.extent(T),E=Math.abs(T[1]-T[0]);M&amp;&amp;!k&amp;&amp;(E=0);var C=S.slice();A&amp;&amp;k&amp;&amp;(C[1]+=E);var L=h.angularAxis.ticksCount||4;L&gt;8&amp;&amp;(L=L/(L/8)+L%8),h.angularAxis.ticksStep&amp;&amp;(L=(C[1]-C[0])/L);var I=h.angularAxis.ticksStep||(C[1]-C[0])/(L*(h.minorTicks+1));w&amp;&amp;(I=Math.max(Math.round(I),1)),C[2]||(C[2]=I);var P=n.range.apply(this,C);if(P=P.map((function(t,e){return parseFloat(t.toPrecision(12))})),s=n.scale.linear().domain(C.slice(0,2)).range(&quot;clockwise&quot;===h.direction?[0,360]:[360,0]),u.layout.angularAxis.domain=s.domain(),u.layout.angularAxis.endPadding=A?E:0,&quot;undefined&quot;==typeof(t=n.select(this).select(&quot;svg.chart-root&quot;))||t.empty()){var z=(new DOMParser).parseFromString(&quot;&lt;svg xmlns='http://www.w3.org/2000/svg' class='chart-root'&gt;' + '&lt;g class='outer-group'&gt;' + '&lt;g class='chart-group'&gt;' + '&lt;circle class='background-circle'&gt;&lt;/circle&gt;' + '&lt;g class='geometry-group'&gt;&lt;/g&gt;' + '&lt;g class='radial axis-group'&gt;' + '&lt;circle class='outside-circle'&gt;&lt;/circle&gt;' + '&lt;/g&gt;' + '&lt;g class='angular axis-group'&gt;&lt;/g&gt;' + '&lt;g class='guides-group'&gt;&lt;line&gt;&lt;/line&gt;&lt;circle r='0'&gt;&lt;/circle&gt;&lt;/g&gt;' + '&lt;/g&gt;' + '&lt;g class='legend-group'&gt;&lt;/g&gt;' + '&lt;g class='tooltips-group'&gt;&lt;/g&gt;' + '&lt;g class='title-group'&gt;&lt;text&gt;&lt;/text&gt;&lt;/g&gt;' + '&lt;/g&gt;' + '&lt;/svg&gt;&quot;,&quot;application/xml&quot;),O=this.appendChild(this.ownerDocument.importNode(z.documentElement,!0));t=n.select(O)}t.select(&quot;.guides-group&quot;).style({&quot;pointer-events&quot;:&quot;none&quot;}),t.select(&quot;.angular.axis-group&quot;).style({&quot;pointer-events&quot;:&quot;none&quot;}),t.select(&quot;.radial.axis-group&quot;).style({&quot;pointer-events&quot;:&quot;none&quot;});var D,R=t.select(&quot;.chart-group&quot;),F={fill:&quot;none&quot;,stroke:h.tickColor},B={&quot;font-size&quot;:h.font.size,&quot;font-family&quot;:h.font.family,fill:h.font.color,&quot;text-shadow&quot;:[&quot;-1px 0px&quot;,&quot;1px -1px&quot;,&quot;-1px 1px&quot;,&quot;1px 1px&quot;].map((function(t,e){return&quot; &quot;+t+&quot; 0 &quot;+h.font.outlineColor})).join(&quot;,&quot;)};if(h.showLegend){D=t.select(&quot;.legend-group&quot;).attr({transform:&quot;translate(&quot;+[x,h.margin.top]+&quot;)&quot;}).style({display:&quot;block&quot;});var N=p.map((function(t,e){var r=o.util.cloneJson(t);return r.symbol=&quot;DotPlot&quot;===t.geometry?t.dotType||&quot;circle&quot;:&quot;LinePlot&quot;!=t.geometry?&quot;square&quot;:&quot;line&quot;,r.visibleInLegend=&quot;undefined&quot;==typeof t.visibleInLegend||t.visibleInLegend,r.color=&quot;LinePlot&quot;===t.geometry?t.strokeColor:t.color,r}));o.Legend().config({data:p.map((function(t,e){return t.name||&quot;Element&quot;+e})),legendConfig:i({},o.Legend.defaultConfig().legendConfig,{container:D,elements:N,reverseOrder:h.legend.reverseOrder})})();var j=D.node().getBBox();x=Math.min(h.width-j.width-h.margin.left-h.margin.right,h.height-h.margin.top-h.margin.bottom)/2,x=Math.max(10,x),_=[h.margin.left+x,h.margin.top+x],r.range([0,x]),u.layout.radialAxis.domain=r.domain(),D.attr(&quot;transform&quot;,&quot;translate(&quot;+[_[0]+x,_[1]-x]+&quot;)&quot;)}else D=t.select(&quot;.legend-group&quot;).style({display:&quot;none&quot;});t.attr({width:h.width,height:h.height}).style({opacity:h.opacity}),R.attr(&quot;transform&quot;,&quot;translate(&quot;+_+&quot;)&quot;).style({cursor:&quot;crosshair&quot;});var U=[(h.width-(h.margin.left+h.margin.right+2*x+(j?j.width:0)))/2,(h.height-(h.margin.top+h.margin.bottom+2*x))/2];if(U[0]=Math.max(0,U[0]),U[1]=Math.max(0,U[1]),t.select(&quot;.outer-group&quot;).attr(&quot;transform&quot;,&quot;translate(&quot;+U+&quot;)&quot;),h.title&amp;&amp;h.title.text){var V=t.select(&quot;g.title-group text&quot;).style(B).text(h.title.text),q=V.node().getBBox();V.attr({x:_[0]-q.width/2,y:_[1]-x-20})}var H=t.select(&quot;.radial.axis-group&quot;);if(h.radialAxis.gridLinesVisible){var G=H.selectAll(&quot;circle.grid-circle&quot;).data(r.ticks(5));G.enter().append(&quot;circle&quot;).attr({class:&quot;grid-circle&quot;}).style(F),G.attr(&quot;r&quot;,r),G.exit().remove()}H.select(&quot;circle.outside-circle&quot;).attr({r:x}).style(F);var Y=t.select(&quot;circle.background-circle&quot;).attr({r:x}).style({fill:h.backgroundColor,stroke:h.stroke});function W(t,e){return s(t)%360+h.orientation}if(h.radialAxis.visible){var X=n.svg.axis().scale(r).ticks(5).tickSize(5);H.call(X).attr({transform:&quot;rotate(&quot;+h.radialAxis.orientation+&quot;)&quot;}),H.selectAll(&quot;.domain&quot;).style(F),H.selectAll(&quot;g&gt;text&quot;).text((function(t,e){return this.textContent+h.radialAxis.ticksSuffix})).style(B).style({&quot;text-anchor&quot;:&quot;start&quot;}).attr({x:0,y:0,dx:0,dy:0,transform:function(t,e){return&quot;horizontal&quot;===h.radialAxis.tickOrientation?&quot;rotate(&quot;+-h.radialAxis.orientation+&quot;) translate(&quot;+[0,B[&quot;font-size&quot;]]+&quot;)&quot;:&quot;translate(&quot;+[0,B[&quot;font-size&quot;]]+&quot;)&quot;}}),H.selectAll(&quot;g&gt;line&quot;).style({stroke:&quot;black&quot;})}var Z=t.select(&quot;.angular.axis-group&quot;).selectAll(&quot;g.angular-tick&quot;).data(P),J=Z.enter().append(&quot;g&quot;).classed(&quot;angular-tick&quot;,!0);Z.attr({transform:function(t,e){return&quot;rotate(&quot;+W(t)+&quot;)&quot;}}).style({display:h.angularAxis.visible?&quot;block&quot;:&quot;none&quot;}),Z.exit().remove(),J.append(&quot;line&quot;).classed(&quot;grid-line&quot;,!0).classed(&quot;major&quot;,(function(t,e){return e%(h.minorTicks+1)==0})).classed(&quot;minor&quot;,(function(t,e){return!(e%(h.minorTicks+1)==0)})).style(F),J.selectAll(&quot;.minor&quot;).style({stroke:h.minorTickColor}),Z.select(&quot;line.grid-line&quot;).attr({x1:h.tickLength?x-h.tickLength:0,x2:x}).style({display:h.angularAxis.gridLinesVisible?&quot;block&quot;:&quot;none&quot;}),J.append(&quot;text&quot;).classed(&quot;axis-text&quot;,!0).style(B);var K=Z.select(&quot;text.axis-text&quot;).attr({x:x+h.labelOffset,dy:a+&quot;em&quot;,transform:function(t,e){var r=W(t),n=x+h.labelOffset,i=h.angularAxis.tickOrientation;return&quot;horizontal&quot;==i?&quot;rotate(&quot;+-r+&quot; &quot;+n+&quot; 0)&quot;:&quot;radial&quot;==i?r&lt;270&amp;&amp;r&gt;90?&quot;rotate(180 &quot;+n+&quot; 0)&quot;:null:&quot;rotate(&quot;+(r&lt;=180&amp;&amp;r&gt;0?-90:90)+&quot; &quot;+n+&quot; 0)&quot;}}).style({&quot;text-anchor&quot;:&quot;middle&quot;,display:h.angularAxis.labelsVisible?&quot;block&quot;:&quot;none&quot;}).text((function(t,e){return e%(h.minorTicks+1)!=0?&quot;&quot;:w?w[t]+h.angularAxis.ticksSuffix:t+h.angularAxis.ticksSuffix})).style(B);h.angularAxis.rewriteTicks&amp;&amp;K.text((function(t,e){return e%(h.minorTicks+1)!=0?&quot;&quot;:h.angularAxis.rewriteTicks(this.textContent,e)}));var Q=n.max(R.selectAll(&quot;.angular-tick text&quot;)[0].map((function(t,e){return t.getCTM().e+t.getBBox().width})));D.attr({transform:&quot;translate(&quot;+[x+Q,h.margin.top]+&quot;)&quot;});var $=t.select(&quot;g.geometry-group&quot;).selectAll(&quot;g&quot;).size()&gt;0,tt=t.select(&quot;g.geometry-group&quot;).selectAll(&quot;g.geometry&quot;).data(p);if(tt.enter().append(&quot;g&quot;).attr({class:function(t,e){return&quot;geometry geometry&quot;+e}}),tt.exit().remove(),p[0]||$){var et=[];p.forEach((function(t,e){var n={};n.radialScale=r,n.angularScale=s,n.container=tt.filter((function(t,r){return r==e})),n.geometry=t.geometry,n.orientation=h.orientation,n.direction=h.direction,n.index=e,et.push({data:t,geometryConfig:n})}));var rt=n.nest().key((function(t,e){return&quot;undefined&quot;!=typeof t.data.groupId||&quot;unstacked&quot;})).entries(et),nt=[];rt.forEach((function(t,e){&quot;unstacked&quot;===t.key?nt=nt.concat(t.values.map((function(t,e){return[t]}))):nt.push(t.values)})),nt.forEach((function(t,e){var r;r=Array.isArray(t)?t[0].geometryConfig.geometry:t.geometryConfig.geometry;var n=t.map((function(t,e){return i(o[r].defaultConfig(),t)}));o[r]().config(n)()}))}var it,at,ot=t.select(&quot;.guides-group&quot;),st=t.select(&quot;.tooltips-group&quot;),lt=o.tooltipPanel().config({container:st,fontSize:8})(),ct=o.tooltipPanel().config({container:st,fontSize:8})(),ut=o.tooltipPanel().config({container:st,hasTick:!0})();if(!k){var ft=ot.select(&quot;line&quot;).attr({x1:0,y1:0,y2:0}).style({stroke:&quot;grey&quot;,&quot;pointer-events&quot;:&quot;none&quot;});R.on(&quot;mousemove.angular-guide&quot;,(function(t,e){var r=o.util.getMousePos(Y).angle;ft.attr({x2:-x,transform:&quot;rotate(&quot;+r+&quot;)&quot;}).style({opacity:.5});var n=(r+180+360-h.orientation)%360;it=s.invert(n);var i=o.util.convertToCartesian(x+12,r+180);lt.text(o.util.round(it)).move([i[0]+_[0],i[1]+_[1]])})).on(&quot;mouseout.angular-guide&quot;,(function(t,e){ot.select(&quot;line&quot;).style({opacity:0})}))}var ht=ot.select(&quot;circle&quot;).style({stroke:&quot;grey&quot;,fill:&quot;none&quot;});R.on(&quot;mousemove.radial-guide&quot;,(function(t,e){var n=o.util.getMousePos(Y).radius;ht.attr({r:n}).style({opacity:.5}),at=r.invert(o.util.getMousePos(Y).radius);var i=o.util.convertToCartesian(n,h.radialAxis.orientation);ct.text(o.util.round(at)).move([i[0]+_[0],i[1]+_[1]])})).on(&quot;mouseout.radial-guide&quot;,(function(t,e){ht.style({opacity:0}),ut.hide(),lt.hide(),ct.hide()})),t.selectAll(&quot;.geometry-group .mark&quot;).on(&quot;mouseover.tooltip&quot;,(function(e,r){var i=n.select(this),a=this.style.fill,s=&quot;black&quot;,l=this.style.opacity||1;if(i.attr({&quot;data-opacity&quot;:l}),a&amp;&amp;&quot;none&quot;!==a){i.attr({&quot;data-fill&quot;:a}),s=n.hsl(a).darker().toString(),i.style({fill:s,opacity:1});var c={t:o.util.round(e[0]),r:o.util.round(e[1])};k&amp;&amp;(c.t=w[e[0]]);var u=&quot;t: &quot;+c.t+&quot;, r: &quot;+c.r,f=this.getBoundingClientRect(),h=t.node().getBoundingClientRect(),p=[f.left+f.width/2-U[0]-h.left,f.top+f.height/2-U[1]-h.top];ut.config({color:s}).text(u),ut.move(p)}else a=this.style.stroke||&quot;black&quot;,i.attr({&quot;data-stroke&quot;:a}),s=n.hsl(a).darker().toString(),i.style({stroke:s,opacity:1})})).on(&quot;mousemove.tooltip&quot;,(function(t,e){if(0!=n.event.which)return!1;n.select(this).attr(&quot;data-fill&quot;)&amp;&amp;ut.show()})).on(&quot;mouseout.tooltip&quot;,(function(t,e){ut.hide();var r=n.select(this),i=r.attr(&quot;data-fill&quot;);i?r.style({fill:i,opacity:r.attr(&quot;data-opacity&quot;)}):r.style({stroke:r.attr(&quot;data-stroke&quot;),opacity:r.attr(&quot;data-opacity&quot;)})}))}))}(c),this},h.config=function(t){if(!arguments.length)return l;var e=o.util.cloneJson(t);return e.data.forEach((function(t,e){l.data[e]||(l.data[e]={}),i(l.data[e],o.Axis.defaultConfig().data[0]),i(l.data[e],t)})),i(l.layout,o.Axis.defaultConfig().layout),i(l.layout,e.layout),this},h.getLiveConfig=function(){return u},h.getinputConfig=function(){return c},h.radialScale=function(t){return r},h.angularScale=function(t){return s},h.svg=function(){return t},n.rebind(h,f,&quot;on&quot;),h},o.Axis.defaultConfig=function(t,e){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:&quot;Line1&quot;,geometry:&quot;LinePlot&quot;,color:null,strokeDash:&quot;solid&quot;,strokeColor:null,strokeSize:&quot;1&quot;,visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:n.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:&quot;gray&quot;,outlineColor:&quot;white&quot;,family:&quot;Tahoma, sans-serif&quot;},direction:&quot;clockwise&quot;,orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:&quot;&quot;,visible:!0,gridLinesVisible:!0,tickOrientation:&quot;horizontal&quot;,rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:&quot;&quot;,visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:&quot;horizontal&quot;,rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:&quot;silver&quot;,minorTickColor:&quot;#eee&quot;,backgroundColor:&quot;none&quot;,needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},o.util={},o.DATAEXTENT=&quot;dataExtent&quot;,o.AREA=&quot;AreaChart&quot;,o.LINE=&quot;LinePlot&quot;,o.DOT=&quot;DotPlot&quot;,o.BAR=&quot;BarChart&quot;,o.util._override=function(t,e){for(var r in t)r in e&amp;&amp;(e[r]=t[r])},o.util._extend=function(t,e){for(var r in t)e[r]=t[r]},o.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},o.util.dataFromEquation2=function(t,e){var r=e||6;return n.range(0,360+r,r).map((function(e,r){var n=e*Math.PI/180;return[e,t(n)]}))},o.util.dataFromEquation=function(t,e,r){var i=e||6,a=[],o=[];n.range(0,360+i,i).forEach((function(e,r){var n=e*Math.PI/180,i=t(n);a.push(e),o.push(i)}));var s={t:a,r:o};return r&amp;&amp;(s.name=r),s},o.util.ensureArray=function(t,e){if(&quot;undefined&quot;==typeof t)return null;var r=[].concat(t);return n.range(e).map((function(t,e){return r[e]||r[0]}))},o.util.fillArrays=function(t,e,r){return e.forEach((function(e,n){t[e]=o.util.ensureArray(t[e],r)})),t},o.util.cloneJson=function(t){return JSON.parse(JSON.stringify(t))},o.util.validateKeys=function(t,e){&quot;string&quot;==typeof e&amp;&amp;(e=e.split(&quot;.&quot;));var r=e.shift();return t[r]&amp;&amp;(!e.length||objHasKeys(t[r],e))},o.util.sumArrays=function(t,e){return n.zip(t,e).map((function(t,e){return n.sum(t)}))},o.util.arrayLast=function(t){return t[t.length-1]},o.util.arrayEqual=function(t,e){for(var r=Math.max(t.length,e.length,1);r-- &gt;=0&amp;&amp;t[r]===e[r];);return-2===r},o.util.flattenArray=function(t){for(var e=[];!o.util.arrayEqual(e,t);)e=t,t=[].concat.apply([],t);return t},o.util.deduplicate=function(t){return t.filter((function(t,e,r){return r.indexOf(t)==e}))},o.util.convertToCartesian=function(t,e){var r=e*Math.PI/180;return[t*Math.cos(r),t*Math.sin(r)]},o.util.round=function(t,e){var r=e||2,n=Math.pow(10,r);return Math.round(t*n)/n},o.util.getMousePos=function(t){var e=n.mouse(t.node()),r=e[0],i=e[1],a={};return a.x=r,a.y=i,a.pos=e,a.angle=180*(Math.atan2(i,r)+Math.PI)/Math.PI,a.radius=Math.sqrt(r*r+i*i),a},o.util.duplicatesCount=function(t){for(var e,r={},n={},i=0,a=t.length;i&lt;a;i++)(e=t[i])in r?(r[e]++,n[e]=r[e]):r[e]=1;return n},o.util.duplicates=function(t){return Object.keys(o.util.duplicatesCount(t))},o.util.translator=function(t,e,r,n){if(n){var i=r.slice();r=e,e=i}var a=e.reduce((function(t,e){if(&quot;undefined&quot;!=typeof t)return t[e]}),t);&quot;undefined&quot;!=typeof a&amp;&amp;(e.reduce((function(t,r,n){if(&quot;undefined&quot;!=typeof t)return n===e.length-1&amp;&amp;delete t[r],t[r]}),t),r.reduce((function(t,e,n){return&quot;undefined&quot;==typeof t[e]&amp;&amp;(t[e]={}),n===r.length-1&amp;&amp;(t[e]=a),t[e]}),t))},o.PolyChart=function(){var t=[o.PolyChart.defaultConfig()],e=n.dispatch(&quot;hover&quot;),r={solid:&quot;none&quot;,dash:[5,2],dot:[2,5]};function a(){var e=t[0].geometryConfig,i=e.container;&quot;string&quot;==typeof i&amp;&amp;(i=n.select(i)),i.datum(t).each((function(t,i){var a=!!t[0].data.yStack,o=t.map((function(t,e){return a?n.zip(t.data.t[0],t.data.r[0],t.data.yStack[0]):n.zip(t.data.t[0],t.data.r[0])})),s=e.angularScale,l=e.radialScale.domain()[0],c={bar:function(r,i,a){var o=t[a].data,l=e.radialScale(r[1])-e.radialScale(0),c=e.radialScale(r[2]||0),u=o.barWidth;n.select(this).attr({class:&quot;mark bar&quot;,d:&quot;M&quot;+[[l+c,-u/2],[l+c,u/2],[c,u/2],[c,-u/2]].join(&quot;L&quot;)+&quot;Z&quot;,transform:function(t,r){return&quot;rotate(&quot;+(e.orientation+s(t[0]))+&quot;)&quot;}})}};c.dot=function(r,i,a){var o=r[2]?[r[0],r[1]+r[2]]:r,s=n.svg.symbol().size(t[a].data.dotSize).type(t[a].data.dotType)(r,i);n.select(this).attr({class:&quot;mark dot&quot;,d:s,transform:function(t,r){var n,i,a,s=(n=function(t,r){var n=e.radialScale(t[1]),i=(e.angularScale(t[0])+e.orientation)*Math.PI/180;return{r:n,t:i}}(o),i=n.r*Math.cos(n.t),a=n.r*Math.sin(n.t),{x:i,y:a});return&quot;translate(&quot;+[s.x,s.y]+&quot;)&quot;}})};var u=n.svg.line.radial().interpolate(t[0].data.lineInterpolation).radius((function(t){return e.radialScale(t[1])})).angle((function(t){return e.angularScale(t[0])*Math.PI/180}));c.line=function(r,i,a){var s=r[2]?o[a].map((function(t,e){return[t[0],t[1]+t[2]]})):o[a];if(n.select(this).each(c.dot).style({opacity:function(e,r){return+t[a].data.dotVisible},fill:d.stroke(r,i,a)}).attr({class:&quot;mark dot&quot;}),!(i&gt;0)){var l=n.select(this.parentNode).selectAll(&quot;path.line&quot;).data([0]);l.enter().insert(&quot;path&quot;),l.attr({class:&quot;line&quot;,d:u(s),transform:function(t,r){return&quot;rotate(&quot;+(e.orientation+90)+&quot;)&quot;},&quot;pointer-events&quot;:&quot;none&quot;}).style({fill:function(t,e){return d.fill(r,i,a)},&quot;fill-opacity&quot;:0,stroke:function(t,e){return d.stroke(r,i,a)},&quot;stroke-width&quot;:function(t,e){return d[&quot;stroke-width&quot;](r,i,a)},&quot;stroke-dasharray&quot;:function(t,e){return d[&quot;stroke-dasharray&quot;](r,i,a)},opacity:function(t,e){return d.opacity(r,i,a)},display:function(t,e){return d.display(r,i,a)}})}};var f=e.angularScale.range(),h=Math.abs(f[1]-f[0])/o[0].length*Math.PI/180,p=n.svg.arc().startAngle((function(t){return-h/2})).endAngle((function(t){return h/2})).innerRadius((function(t){return e.radialScale(l+(t[2]||0))})).outerRadius((function(t){return e.radialScale(l+(t[2]||0))+e.radialScale(t[1])}));c.arc=function(t,r,i){n.select(this).attr({class:&quot;mark arc&quot;,d:p,transform:function(t,r){return&quot;rotate(&quot;+(e.orientation+s(t[0])+90)+&quot;)&quot;}})};var d={fill:function(e,r,n){return t[n].data.color},stroke:function(e,r,n){return t[n].data.strokeColor},&quot;stroke-width&quot;:function(e,r,n){return t[n].data.strokeSize+&quot;px&quot;},&quot;stroke-dasharray&quot;:function(e,n,i){return r[t[i].data.strokeDash]},opacity:function(e,r,n){return t[n].data.opacity},display:function(e,r,n){return&quot;undefined&quot;==typeof t[n].data.visible||t[n].data.visible?&quot;block&quot;:&quot;none&quot;}},g=n.select(this).selectAll(&quot;g.layer&quot;).data(o);g.enter().append(&quot;g&quot;).attr({class:&quot;layer&quot;});var m=g.selectAll(&quot;path.mark&quot;).data((function(t,e){return t}));m.enter().append(&quot;path&quot;).attr({class:&quot;mark&quot;}),m.style(d).each(c[e.geometryType]),m.exit().remove(),g.exit().remove()}))}return a.config=function(e){return arguments.length?(e.forEach((function(e,r){t[r]||(t[r]={}),i(t[r],o.PolyChart.defaultConfig()),i(t[r],e)})),this):t},a.getColorScale=function(){},n.rebind(a,e,&quot;on&quot;),a},o.PolyChart.defaultConfig=function(){return{data:{name:&quot;geom1&quot;,t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:&quot;circle&quot;,dotSize:64,dotVisible:!1,barWidth:20,color:&quot;#ffa500&quot;,strokeSize:1,strokeColor:&quot;silver&quot;,strokeDash:&quot;solid&quot;,opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:&quot;LinePlot&quot;,geometryType:&quot;arc&quot;,direction:&quot;clockwise&quot;,orientation:0,container:&quot;body&quot;,radialScale:null,angularScale:null,colorScale:n.scale.category20()}}},o.BarChart=function(){return o.PolyChart()},o.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;bar&quot;}}},o.AreaChart=function(){return o.PolyChart()},o.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;arc&quot;}}},o.DotPlot=function(){return o.PolyChart()},o.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;dot&quot;,dotType:&quot;circle&quot;}}},o.LinePlot=function(){return o.PolyChart()},o.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;line&quot;}}},o.Legend=function(){var t=o.Legend.defaultConfig(),e=n.dispatch(&quot;hover&quot;);function r(){var e=t.legendConfig,a=t.data.map((function(t,r){return[].concat(t).map((function(t,n){var a=i({},e.elements[r]);return a.name=t,a.color=[].concat(e.elements[r].color)[n],a}))})),o=n.merge(a);o=o.filter((function(t,r){return e.elements[r]&amp;&amp;(e.elements[r].visibleInLegend||&quot;undefined&quot;==typeof e.elements[r].visibleInLegend)})),e.reverseOrder&amp;&amp;(o=o.reverse());var s=e.container;(&quot;string&quot;==typeof s||s.nodeName)&amp;&amp;(s=n.select(s));var l=o.map((function(t,e){return t.color})),c=e.fontSize,u=null==e.isContinuous?&quot;number&quot;==typeof o[0]:e.isContinuous,f=u?e.height:c*o.length,h=s.classed(&quot;legend-group&quot;,!0).selectAll(&quot;svg&quot;).data([0]),p=h.enter().append(&quot;svg&quot;).attr({width:300,height:f+c,xmlns:&quot;http://www.w3.org/2000/svg&quot;,&quot;xmlns:xlink&quot;:&quot;http://www.w3.org/1999/xlink&quot;,version:&quot;1.1&quot;});p.append(&quot;g&quot;).classed(&quot;legend-axis&quot;,!0),p.append(&quot;g&quot;).classed(&quot;legend-marks&quot;,!0);var d=n.range(o.length),g=n.scale[u?&quot;linear&quot;:&quot;ordinal&quot;]().domain(d).range(l),m=n.scale[u?&quot;linear&quot;:&quot;ordinal&quot;]().domain(d)[u?&quot;range&quot;:&quot;rangePoints&quot;]([0,f]);if(u){var v=h.select(&quot;.legend-marks&quot;).append(&quot;defs&quot;).append(&quot;linearGradient&quot;).attr({id:&quot;grad1&quot;,x1:&quot;0%&quot;,y1:&quot;0%&quot;,x2:&quot;0%&quot;,y2:&quot;100%&quot;}).selectAll(&quot;stop&quot;).data(l);v.enter().append(&quot;stop&quot;),v.attr({offset:function(t,e){return e/(l.length-1)*100+&quot;%&quot;}}).style({&quot;stop-color&quot;:function(t,e){return t}}),h.append(&quot;rect&quot;).classed(&quot;legend-mark&quot;,!0).attr({height:e.height,width:e.colorBandWidth,fill:&quot;url(#grad1)&quot;})}else{var y=h.select(&quot;.legend-marks&quot;).selectAll(&quot;path.legend-mark&quot;).data(o);y.enter().append(&quot;path&quot;).classed(&quot;legend-mark&quot;,!0),y.attr({transform:function(t,e){return&quot;translate(&quot;+[c/2,m(e)+c/2]+&quot;)&quot;},d:function(t,e){var r,i,a,o=t.symbol;return a=3*(i=c),&quot;line&quot;===(r=o)?&quot;M&quot;+[[-i/2,-i/12],[i/2,-i/12],[i/2,i/12],[-i/2,i/12]]+&quot;Z&quot;:-1!=n.svg.symbolTypes.indexOf(r)?n.svg.symbol().type(r).size(a)():n.svg.symbol().type(&quot;square&quot;).size(a)()},fill:function(t,e){return g(e)}}),y.exit().remove()}var x=n.svg.axis().scale(m).orient(&quot;right&quot;),b=h.select(&quot;g.legend-axis&quot;).attr({transform:&quot;translate(&quot;+[u?e.colorBandWidth:c,c/2]+&quot;)&quot;}).call(x);return b.selectAll(&quot;.domain&quot;).style({fill:&quot;none&quot;,stroke:&quot;none&quot;}),b.selectAll(&quot;line&quot;).style({fill:&quot;none&quot;,stroke:u?e.textColor:&quot;none&quot;}),b.selectAll(&quot;text&quot;).style({fill:e.textColor,&quot;font-size&quot;:e.fontSize}).text((function(t,e){return o[e].name})),r}return r.config=function(e){return arguments.length?(i(t,e),this):t},n.rebind(r,e,&quot;on&quot;),r},o.Legend.defaultConfig=function(t,e){return{data:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],legendConfig:{elements:[{symbol:&quot;line&quot;,color:&quot;red&quot;},{symbol:&quot;square&quot;,color:&quot;yellow&quot;},{symbol:&quot;diamond&quot;,color:&quot;limegreen&quot;}],height:150,colorBandWidth:30,fontSize:12,container:&quot;body&quot;,isContinuous:null,textColor:&quot;grey&quot;,reverseOrder:!1}}},o.tooltipPanel=function(){var t,e,r,a={container:null,hasTick:!1,fontSize:12,color:&quot;white&quot;,padding:5},s=&quot;tooltip-&quot;+o.tooltipPanel.uid++,l=10,c=function(){var n=(t=a.container.selectAll(&quot;g.&quot;+s).data([0])).enter().append(&quot;g&quot;).classed(s,!0).style({&quot;pointer-events&quot;:&quot;none&quot;,display:&quot;none&quot;});return r=n.append(&quot;path&quot;).style({fill:&quot;white&quot;,&quot;fill-opacity&quot;:.9}).attr({d:&quot;M0 0&quot;}),e=n.append(&quot;text&quot;).attr({dx:a.padding+l,dy:.3*+a.fontSize}),c};return c.text=function(i){var o=n.hsl(a.color).l,s=o&gt;=.5?&quot;#aaa&quot;:&quot;white&quot;,u=o&gt;=.5?&quot;black&quot;:&quot;white&quot;,f=i||&quot;&quot;;e.style({fill:u,&quot;font-size&quot;:a.fontSize+&quot;px&quot;}).text(f);var h=a.padding,p=e.node().getBBox(),d={fill:a.color,stroke:s,&quot;stroke-width&quot;:&quot;2px&quot;},g=p.width+2*h+l,m=p.height+2*h;return r.attr({d:&quot;M&quot;+[[l,-m/2],[l,-m/4],[a.hasTick?0:l,0],[l,m/4],[l,m/2],[g,m/2],[g,-m/2]].join(&quot;L&quot;)+&quot;Z&quot;}).style(d),t.attr({transform:&quot;translate(&quot;+[l,-m/2+2*h]+&quot;)&quot;}),t.style({display:&quot;block&quot;}),c},c.move=function(e){if(t)return t.attr({transform:&quot;translate(&quot;+[e[0],e[1]]+&quot;)&quot;}).style({display:&quot;block&quot;}),c},c.hide=function(){if(t)return t.style({display:&quot;none&quot;}),c},c.show=function(){if(t)return t.style({display:&quot;block&quot;}),c},c.config=function(t){return i(a,t),c},c},o.tooltipPanel.uid=1,o.adapter={},o.adapter.plotly=function(){var t={convert:function(t,e){var r={};if(t.data&amp;&amp;(r.data=t.data.map((function(t,r){var n=i({},t);return[[n,[&quot;marker&quot;,&quot;color&quot;],[&quot;color&quot;]],[n,[&quot;marker&quot;,&quot;opacity&quot;],[&quot;opacity&quot;]],[n,[&quot;marker&quot;,&quot;line&quot;,&quot;color&quot;],[&quot;strokeColor&quot;]],[n,[&quot;marker&quot;,&quot;line&quot;,&quot;dash&quot;],[&quot;strokeDash&quot;]],[n,[&quot;marker&quot;,&quot;line&quot;,&quot;width&quot;],[&quot;strokeSize&quot;]],[n,[&quot;marker&quot;,&quot;symbol&quot;],[&quot;dotType&quot;]],[n,[&quot;marker&quot;,&quot;size&quot;],[&quot;dotSize&quot;]],[n,[&quot;marker&quot;,&quot;barWidth&quot;],[&quot;barWidth&quot;]],[n,[&quot;line&quot;,&quot;interpolation&quot;],[&quot;lineInterpolation&quot;]],[n,[&quot;showlegend&quot;],[&quot;visibleInLegend&quot;]]].forEach((function(t,r){o.util.translator.apply(null,t.concat(e))})),e||delete n.marker,e&amp;&amp;delete n.groupId,e?(&quot;LinePlot&quot;===n.geometry?(n.type=&quot;scatter&quot;,!0===n.dotVisible?(delete n.dotVisible,n.mode=&quot;lines+markers&quot;):n.mode=&quot;lines&quot;):&quot;DotPlot&quot;===n.geometry?(n.type=&quot;scatter&quot;,n.mode=&quot;markers&quot;):&quot;AreaChart&quot;===n.geometry?n.type=&quot;area&quot;:&quot;BarChart&quot;===n.geometry&amp;&amp;(n.type=&quot;bar&quot;),delete n.geometry):(&quot;scatter&quot;===n.type?&quot;lines&quot;===n.mode?n.geometry=&quot;LinePlot&quot;:&quot;markers&quot;===n.mode?n.geometry=&quot;DotPlot&quot;:&quot;lines+markers&quot;===n.mode&amp;&amp;(n.geometry=&quot;LinePlot&quot;,n.dotVisible=!0):&quot;area&quot;===n.type?n.geometry=&quot;AreaChart&quot;:&quot;bar&quot;===n.type&amp;&amp;(n.geometry=&quot;BarChart&quot;),delete n.mode,delete n.type),n})),!e&amp;&amp;t.layout&amp;&amp;&quot;stack&quot;===t.layout.barmode)){var a=o.util.duplicates(r.data.map((function(t,e){return t.geometry})));r.data.forEach((function(t,e){var n=a.indexOf(t.geometry);-1!=n&amp;&amp;(r.data[e].groupId=n)}))}if(t.layout){var s=i({},t.layout);if([[s,[&quot;plot_bgcolor&quot;],[&quot;backgroundColor&quot;]],[s,[&quot;showlegend&quot;],[&quot;showLegend&quot;]],[s,[&quot;radialaxis&quot;],[&quot;radialAxis&quot;]],[s,[&quot;angularaxis&quot;],[&quot;angularAxis&quot;]],[s.angularaxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.angularaxis,[&quot;showticklabels&quot;],[&quot;labelsVisible&quot;]],[s.angularaxis,[&quot;nticks&quot;],[&quot;ticksCount&quot;]],[s.angularaxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.angularaxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.angularaxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.angularaxis,[&quot;endpadding&quot;],[&quot;endPadding&quot;]],[s.radialaxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.radialaxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.radialaxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.radialaxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.angularAxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.angularAxis,[&quot;showticklabels&quot;],[&quot;labelsVisible&quot;]],[s.angularAxis,[&quot;nticks&quot;],[&quot;ticksCount&quot;]],[s.angularAxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.angularAxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.angularAxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.angularAxis,[&quot;endpadding&quot;],[&quot;endPadding&quot;]],[s.radialAxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.radialAxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.radialAxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.radialAxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.font,[&quot;outlinecolor&quot;],[&quot;outlineColor&quot;]],[s.legend,[&quot;traceorder&quot;],[&quot;reverseOrder&quot;]],[s,[&quot;labeloffset&quot;],[&quot;labelOffset&quot;]],[s,[&quot;defaultcolorrange&quot;],[&quot;defaultColorRange&quot;]]].forEach((function(t,r){o.util.translator.apply(null,t.concat(e))})),e?(&quot;undefined&quot;!=typeof s.tickLength&amp;&amp;(s.angularaxis.ticklen=s.tickLength,delete s.tickLength),s.tickColor&amp;&amp;(s.angularaxis.tickcolor=s.tickColor,delete s.tickColor)):(s.angularAxis&amp;&amp;&quot;undefined&quot;!=typeof s.angularAxis.ticklen&amp;&amp;(s.tickLength=s.angularAxis.ticklen),s.angularAxis&amp;&amp;&quot;undefined&quot;!=typeof s.angularAxis.tickcolor&amp;&amp;(s.tickColor=s.angularAxis.tickcolor)),s.legend&amp;&amp;&quot;boolean&quot;!=typeof s.legend.reverseOrder&amp;&amp;(s.legend.reverseOrder=&quot;normal&quot;!=s.legend.reverseOrder),s.legend&amp;&amp;&quot;boolean&quot;==typeof s.legend.traceorder&amp;&amp;(s.legend.traceorder=s.legend.traceorder?&quot;reversed&quot;:&quot;normal&quot;,delete s.legend.reverseOrder),s.margin&amp;&amp;&quot;undefined&quot;!=typeof s.margin.t){var l=[&quot;t&quot;,&quot;r&quot;,&quot;b&quot;,&quot;l&quot;,&quot;pad&quot;],c=[&quot;top&quot;,&quot;right&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;pad&quot;],u={};n.entries(s.margin).forEach((function(t,e){u[c[l.indexOf(t.key)]]=t.value})),s.margin=u}e&amp;&amp;(delete s.needsEndSpacing,delete s.minorTickColor,delete s.minorTicks,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksStep,delete s.angularaxis.rewriteTicks,delete s.angularaxis.nticks,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksStep,delete s.radialaxis.rewriteTicks,delete s.radialaxis.nticks),r.layout=s}return r}};return t}},{&quot;../../../constants/alignment&quot;:745,&quot;../../../lib&quot;:778,d3:169}],901:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../../lib&quot;),a=t(&quot;../../../components/color&quot;),o=t(&quot;./micropolar&quot;),s=t(&quot;./undo_manager&quot;),l=i.extendDeepAll,c=e.exports={};c.framework=function(t){var e,r,i,a,u,f=new s;function h(r,s){return s&amp;&amp;(u=s),n.select(n.select(u).node().parentNode).selectAll(&quot;.svg-container&gt;*:not(.chart-root)&quot;).remove(),e=e?l(e,r):r,i||(i=o.Axis()),a=o.adapter.plotly().convert(e),i.config(a).render(u),t.data=e.data,t.layout=e.layout,c.fillLayout(t),e}return h.isPolar=!0,h.svg=function(){return i.svg()},h.getConfig=function(){return e},h.getLiveConfig=function(){return o.adapter.plotly().convert(i.getLiveConfig(),!0)},h.getLiveScales=function(){return{t:i.angularScale(),r:i.radialScale()}},h.setUndoPoint=function(){var t,n,i=this,a=o.util.cloneJson(e);t=a,n=r,f.add({undo:function(){n&amp;&amp;i(n)},redo:function(){i(t)}}),r=o.util.cloneJson(a)},h.undo=function(){f.undo()},h.redo=function(){f.redo()},h},c.fillLayout=function(t){var e=n.select(t).selectAll(&quot;.plot-container&quot;),r=e.selectAll(&quot;.svg-container&quot;),i=t.framework&amp;&amp;t.framework.svg&amp;&amp;t.framework.svg(),o={width:800,height:600,paper_bgcolor:a.background,_container:e,_paperdiv:r,_paper:i};t._fullLayout=l(o,t.layout)}},{&quot;../../../components/color&quot;:643,&quot;../../../lib&quot;:778,&quot;./micropolar&quot;:900,&quot;./undo_manager&quot;:902,d3:169}],902:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e=[],r=-1,n=!1;function i(t,e){return t?(n=!0,t[e](),n=!1,this):this}return{add:function(t){return n||(e.splice(r+1,e.length-r),e.push(t),r=e.length-1),this},setCallback:function(e){t=e},undo:function(){var n=e[r];return n?(i(n,&quot;undo&quot;),r-=1,t&amp;&amp;t(n.undo),this):this},redo:function(){var n=e[r+1];return n?(i(n,&quot;redo&quot;),r+=1,t&amp;&amp;t(n.redo),this):this},clear:function(){e=[],r=-1},hasUndo:function(){return-1!==r},hasRedo:function(){return r&lt;e.length-1},getCommands:function(){return e},getPreviousCommand:function(){return e[r-1]},getIndex:function(){return r}}}},{}],903:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=o.strRotate,l=o.strTranslate,c=t(&quot;../../components/color&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../plots&quot;),h=t(&quot;../../plots/cartesian/axes&quot;),p=t(&quot;../cartesian/set_convert&quot;),d=t(&quot;./set_convert&quot;),g=t(&quot;../cartesian/autorange&quot;).doAutoRange,m=t(&quot;../cartesian/dragbox&quot;),v=t(&quot;../../components/dragelement&quot;),y=t(&quot;../../components/fx&quot;),x=t(&quot;../../components/titles&quot;),b=t(&quot;../cartesian/select&quot;).prepSelect,_=t(&quot;../cartesian/select&quot;).selectOnClick,w=t(&quot;../cartesian/select&quot;).clearSelect,T=t(&quot;../../lib/setcursor&quot;),k=t(&quot;../../lib/clear_gl_canvases&quot;),M=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,A=t(&quot;../../constants/alignment&quot;).MID_SHIFT,S=t(&quot;./constants&quot;),E=t(&quot;./helpers&quot;),C=o._,L=o.mod,I=o.deg2rad,P=o.rad2deg;function z(t,e){this.id=e,this.gd=t,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var r=t._fullLayout,n=&quot;clip&quot;+r._uid+e;this.clipIds.forTraces=n+&quot;-for-traces&quot;,this.clipPaths.forTraces=r._clips.append(&quot;clipPath&quot;).attr(&quot;id&quot;,this.clipIds.forTraces),this.clipPaths.forTraces.append(&quot;path&quot;),this.framework=r._polarlayer.append(&quot;g&quot;).attr(&quot;class&quot;,e),this.radialTickLayout=null,this.angularTickLayout=null}var O=z.prototype;function D(t){var e=t.ticks+String(t.ticklen)+String(t.showticklabels);return&quot;side&quot;in t&amp;&amp;(e+=t.side),e}function R(t,e){return e[o.findIndexOfMin(e,(function(e){return o.angleDist(t,e)}))]}function F(t,e,r){return e?(t.attr(&quot;display&quot;,null),t.attr(r)):t&amp;&amp;t.attr(&quot;display&quot;,&quot;none&quot;),t}e.exports=function(t,e){return new z(t,e)},O.plot=function(t,e){var r=e[this.id];this._hasClipOnAxisFalse=!1;for(var n=0;n&lt;t.length;n++){if(!1===t[n][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(e,r),this.updateLayout(e,r),f.generalUpdatePerTraceModule(this.gd,this,t,r),this.updateFx(e,r)},O.updateLayers=function(t,e){var r=this.layers,i=e.radialaxis,a=e.angularaxis,o=S.layerNames,s=o.indexOf(&quot;frontplot&quot;),l=o.slice(0,s),c=&quot;below traces&quot;===a.layer,u=&quot;below traces&quot;===i.layer;c&amp;&amp;l.push(&quot;angular-line&quot;),u&amp;&amp;l.push(&quot;radial-line&quot;),c&amp;&amp;l.push(&quot;angular-axis&quot;),u&amp;&amp;l.push(&quot;radial-axis&quot;),l.push(&quot;frontplot&quot;),c||l.push(&quot;angular-line&quot;),u||l.push(&quot;radial-line&quot;),c||l.push(&quot;angular-axis&quot;),u||l.push(&quot;radial-axis&quot;);var f=this.framework.selectAll(&quot;.polarsublayer&quot;).data(l,String);f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;polarsublayer &quot;+t})).each((function(t){var e=r[t]=n.select(this);switch(t){case&quot;frontplot&quot;:e.append(&quot;g&quot;).classed(&quot;barlayer&quot;,!0),e.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0);break;case&quot;backplot&quot;:e.append(&quot;g&quot;).classed(&quot;maplayer&quot;,!0);break;case&quot;plotbg&quot;:r.bg=e.append(&quot;path&quot;);break;case&quot;radial-grid&quot;:case&quot;angular-grid&quot;:e.style(&quot;fill&quot;,&quot;none&quot;);break;case&quot;radial-line&quot;:e.append(&quot;line&quot;).style(&quot;fill&quot;,&quot;none&quot;);break;case&quot;angular-line&quot;:e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;)}})),f.order()},O.updateLayout=function(t,e){var r=this.layers,n=t._size,i=e.radialaxis,a=e.angularaxis,o=e.domain.x,s=e.domain.y;this.xOffset=n.l+n.w*o[0],this.yOffset=n.t+n.h*(1-s[1]);var f=this.xLength=n.w*(o[1]-o[0]),h=this.yLength=n.h*(s[1]-s[0]),p=e.sector;this.sectorInRad=p.map(I);var d,g,m,v,y,x=this.sectorBBox=function(t){var e,r,n,i,a=t[0],o=t[1]-a,s=L(a,360),l=s+o,c=Math.cos(I(s)),u=Math.sin(I(s)),f=Math.cos(I(l)),h=Math.sin(I(l));i=s&lt;=90&amp;&amp;l&gt;=90||s&gt;90&amp;&amp;l&gt;=450?1:u&lt;=0&amp;&amp;h&lt;=0?0:Math.max(u,h);e=s&lt;=180&amp;&amp;l&gt;=180||s&gt;180&amp;&amp;l&gt;=540?-1:c&gt;=0&amp;&amp;f&gt;=0?0:Math.min(c,f);r=s&lt;=270&amp;&amp;l&gt;=270||s&gt;270&amp;&amp;l&gt;=630?-1:u&gt;=0&amp;&amp;h&gt;=0?0:Math.min(u,h);n=l&gt;=360?1:c&lt;=0&amp;&amp;f&lt;=0?0:Math.max(c,f);return[e,r,n,i]}(p),b=x[2]-x[0],_=x[3]-x[1],w=h/f,T=Math.abs(_/b);w&gt;T?(d=f,y=(h-(g=f*T))/n.h/2,m=[o[0],o[1]],v=[s[0]+y,s[1]-y]):(g=h,y=(f-(d=h/T))/n.w/2,m=[o[0]+y,o[1]-y],v=[s[0],s[1]]),this.xLength2=d,this.yLength2=g,this.xDomain2=m,this.yDomain2=v;var k=this.xOffset2=n.l+n.w*m[0],M=this.yOffset2=n.t+n.h*(1-v[1]),A=this.radius=d/b,S=this.innerRadius=e.hole*A,E=this.cx=k-A*x[0],C=this.cy=M+A*x[3],P=this.cxx=E-k,z=this.cyy=C-M;this.radialAxis=this.mockAxis(t,e,i,{_id:&quot;x&quot;,side:{counterclockwise:&quot;top&quot;,clockwise:&quot;bottom&quot;}[i.side],_realSide:i.side,domain:[S/n.w,A/n.w]}),this.angularAxis=this.mockAxis(t,e,a,{side:&quot;right&quot;,domain:[0,Math.PI],autorange:!1}),this.doAutoRange(t,e),this.updateAngularAxis(t,e),this.updateRadialAxis(t,e),this.updateRadialAxisTitle(t,e),this.xaxis=this.mockCartesianAxis(t,e,{_id:&quot;x&quot;,domain:m}),this.yaxis=this.mockCartesianAxis(t,e,{_id:&quot;y&quot;,domain:v});var O=this.pathSubplot();this.clipPaths.forTraces.select(&quot;path&quot;).attr(&quot;d&quot;,O).attr(&quot;transform&quot;,l(P,z)),r.frontplot.attr(&quot;transform&quot;,l(k,M)).call(u.setClipUrl,this._hasClipOnAxisFalse?null:this.clipIds.forTraces,this.gd),r.bg.attr(&quot;d&quot;,O).attr(&quot;transform&quot;,l(E,C)).call(c.fill,e.bgcolor)},O.mockAxis=function(t,e,r,n){var i=o.extendFlat({},r,n);return d(i,e,t),i},O.mockCartesianAxis=function(t,e,r){var n=this,i=r._id,a=o.extendFlat({type:&quot;linear&quot;},r);p(a,t);var s={x:[0,2],y:[1,3]};return a.setRange=function(){var t=n.sectorBBox,r=s[i],o=n.radialAxis._rl,l=(o[1]-o[0])/(1-e.hole);a.range=[t[r[0]]*l,t[r[1]]*l]},a.isPtWithinRange=&quot;x&quot;===i?function(t){return n.isPtInside(t)}:function(){return!0},a.setRange(),a.setScale(),a},O.doAutoRange=function(t,e){var r=this.gd,n=this.radialAxis,i=e.radialaxis;n.setScale(),g(r,n);var a=n.range;i.range=a.slice(),i._input.range=a.slice(),n._rl=[n.r2l(a[0],null,&quot;gregorian&quot;),n.r2l(a[1],null,&quot;gregorian&quot;)]},O.updateRadialAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=e.radialaxis,g=L(e.sector[0],360),m=r.radialAxis,v=u&lt;a;r.fillViewInitialKey(&quot;radialaxis.angle&quot;,d.angle),r.fillViewInitialKey(&quot;radialaxis.range&quot;,m.range.slice()),m.setGeometry(),&quot;auto&quot;===m.tickangle&amp;&amp;g&gt;90&amp;&amp;g&lt;=270&amp;&amp;(m.tickangle=180);var y=function(t){return l(m.l2p(t.x)+u,0)},x=D(d);if(r.radialTickLayout!==x&amp;&amp;(i[&quot;radial-axis&quot;].selectAll(&quot;.xtick&quot;).remove(),r.radialTickLayout=x),v){m.setScale();var b=h.calcTicks(m),_=h.clipEnds(m,b),w=h.getTickSigns(m)[2];h.drawTicks(n,m,{vals:b,layer:i[&quot;radial-axis&quot;],path:h.makeTickPath(m,0,w),transFn:y,crisp:!1}),h.drawGrid(n,m,{vals:_,layer:i[&quot;radial-grid&quot;],path:function(t){return r.pathArc(m.r2p(t.x)+u)},transFn:o.noop,crisp:!1}),h.drawLabels(n,m,{vals:b,layer:i[&quot;radial-axis&quot;],transFn:y,labelFns:h.makeLabelFns(m,0)})}var T=r.radialAxisAngle=r.vangles?P(R(I(d.angle),r.vangles)):d.angle,k=l(f,p),M=k+s(-T);F(i[&quot;radial-axis&quot;],v&amp;&amp;(d.showticklabels||d.ticks),{transform:M}),F(i[&quot;radial-grid&quot;],v&amp;&amp;d.showgrid,{transform:k}),F(i[&quot;radial-line&quot;].select(&quot;line&quot;),v&amp;&amp;d.showline,{x1:u,y1:0,x2:a,y2:0,transform:M}).attr(&quot;stroke-width&quot;,d.linewidth).call(c.stroke,d.linecolor)},O.updateRadialAxisTitle=function(t,e,r){var n=this.gd,i=this.radius,a=this.cx,o=this.cy,s=e.radialaxis,l=this.id+&quot;title&quot;,c=void 0!==r?r:this.radialAxisAngle,f=I(c),h=Math.cos(f),p=Math.sin(f),d=0;if(s.title){var g=u.bBox(this.layers[&quot;radial-axis&quot;].node()).height,m=s.title.font.size;d=&quot;counterclockwise&quot;===s.side?-g-.4*m:g+.8*m}this.layers[&quot;radial-axis-title&quot;]=x.draw(n,l,{propContainer:s,propName:this.id+&quot;.radialaxis.title&quot;,placeholder:C(n,&quot;Click to enter radial axis title&quot;),attributes:{x:a+i/2*h+d*p,y:o-i/2*p+d*h,&quot;text-anchor&quot;:&quot;middle&quot;},transform:{rotate:-c}})},O.updateAngularAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=e.angularaxis,g=r.angularAxis;r.fillViewInitialKey(&quot;angularaxis.rotation&quot;,d.rotation),g.setGeometry(),g.setScale();var m=function(t){return g.t2g(t.x)};&quot;linear&quot;===g.type&amp;&amp;&quot;radians&quot;===g.thetaunit&amp;&amp;(g.tick0=P(g.tick0),g.dtick=P(g.dtick));var v=function(t){return l(f+a*Math.cos(t),p-a*Math.sin(t))},y=h.makeLabelFns(g,0).labelStandoff,x={xFn:function(t){var e=m(t);return Math.cos(e)*y},yFn:function(t){var e=m(t),r=Math.sin(e)&gt;0?.2:1;return-Math.sin(e)*(y+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*A)},anchorFn:function(t){var e=m(t),r=Math.cos(e);return Math.abs(r)&lt;.1?&quot;middle&quot;:r&gt;0?&quot;start&quot;:&quot;end&quot;},heightFn:function(t,e,r){var n=m(t);return-.5*(1+Math.sin(n))*r}},b=D(d);r.angularTickLayout!==b&amp;&amp;(i[&quot;angular-axis&quot;].selectAll(&quot;.&quot;+g._id+&quot;tick&quot;).remove(),r.angularTickLayout=b);var _,w=h.calcTicks(g);if(&quot;linear&quot;===e.gridshape?(_=w.map(m),o.angleDelta(_[0],_[1])&lt;0&amp;&amp;(_=_.slice().reverse())):_=null,r.vangles=_,&quot;category&quot;===g.type&amp;&amp;(w=w.filter((function(t){return o.isAngleInsideSector(m(t),r.sectorInRad)}))),g.visible){var T=&quot;inside&quot;===g.ticks?-1:1,k=(g.linewidth||1)/2;h.drawTicks(n,g,{vals:w,layer:i[&quot;angular-axis&quot;],path:&quot;M&quot;+T*k+&quot;,0h&quot;+T*g.ticklen,transFn:function(t){var e=m(t);return v(e)+s(-P(e))},crisp:!1}),h.drawGrid(n,g,{vals:w,layer:i[&quot;angular-grid&quot;],path:function(t){var e=m(t),r=Math.cos(e),n=Math.sin(e);return&quot;M&quot;+[f+u*r,p-u*n]+&quot;L&quot;+[f+a*r,p-a*n]},transFn:o.noop,crisp:!1}),h.drawLabels(n,g,{vals:w,layer:i[&quot;angular-axis&quot;],repositionOnUpdate:!0,transFn:function(t){return v(m(t))},labelFns:x})}F(i[&quot;angular-line&quot;].select(&quot;path&quot;),d.showline,{d:r.pathSubplot(),transform:l(f,p)}).attr(&quot;stroke-width&quot;,d.linewidth).call(c.stroke,d.linecolor)},O.updateFx=function(t,e){this.gd._context.staticPlot||(this.updateAngularDrag(t),this.updateRadialDrag(t,e,0),this.updateRadialDrag(t,e,1),this.updateMainDrag(t))},O.updateMainDrag=function(t){var e,r,s=this,c=s.gd,u=s.layers,f=t._zoomlayer,h=S.MINZOOM,p=S.OFFEDGE,d=s.radius,g=s.innerRadius,x=s.cx,T=s.cy,k=s.cxx,M=s.cyy,A=s.sectorInRad,C=s.vangles,L=s.radialAxis,I=E.clampTiny,P=E.findXYatLength,z=E.findEnclosingVertexAngles,O=S.cornerHalfWidth,D=S.cornerLen/2,R=m.makeDragger(u,&quot;path&quot;,&quot;maindrag&quot;,&quot;crosshair&quot;);n.select(R).attr(&quot;d&quot;,s.pathSubplot()).attr(&quot;transform&quot;,l(x,T));var F,B,N,j,U,V,q,H,G,Y={element:R,gd:c,subplot:s.id,plotinfo:{id:s.id,xaxis:s.xaxis,yaxis:s.yaxis},xaxes:[s.xaxis],yaxes:[s.yaxis]};function W(t,e){return Math.sqrt(t*t+e*e)}function X(t,e){return W(t-k,e-M)}function Z(t,e){return Math.atan2(M-e,t-k)}function J(t,e){return[t*Math.cos(e),t*Math.sin(-e)]}function K(t,e){if(0===t)return s.pathSector(2*O);var r=D/t,n=e-r,i=e+r,a=Math.max(0,Math.min(t,d)),o=a-O,l=a+O;return&quot;M&quot;+J(o,n)+&quot;A&quot;+[o,o]+&quot; 0,0,0 &quot;+J(o,i)+&quot;L&quot;+J(l,i)+&quot;A&quot;+[l,l]+&quot; 0,0,1 &quot;+J(l,n)+&quot;Z&quot;}function Q(t,e,r){if(0===t)return s.pathSector(2*O);var n,i,a=J(t,e),o=J(t,r),l=I((a[0]+o[0])/2),c=I((a[1]+o[1])/2);if(l&amp;&amp;c){var u=c/l,f=-1/u,h=P(O,u,l,c);n=P(D,f,h[0][0],h[0][1]),i=P(D,f,h[1][0],h[1][1])}else{var p,d;c?(p=D,d=O):(p=O,d=D),n=[[l-p,c-d],[l+p,c-d]],i=[[l-p,c+d],[l+p,c+d]]}return&quot;M&quot;+n.join(&quot;L&quot;)+&quot;L&quot;+i.reverse().join(&quot;L&quot;)+&quot;Z&quot;}function $(t,e){return e=Math.max(Math.min(e,d),g),t&lt;p?t=0:d-t&lt;p?t=d:e&lt;p?e=0:d-e&lt;p&amp;&amp;(e=d),Math.abs(e-t)&gt;h?(t&lt;e?(N=t,j=e):(N=e,j=t),!0):(N=null,j=null,!1)}function tt(t,e){t=t||U,e=e||&quot;M0,0Z&quot;,H.attr(&quot;d&quot;,t),G.attr(&quot;d&quot;,e),m.transitionZoombox(H,G,V,q),V=!0;var r={};at(r),c.emit(&quot;plotly_relayouting&quot;,r)}function et(t,n){var i,a,o=F+(t*=e),l=B+(n*=r),c=X(F,B),u=Math.min(X(o,l),d),f=Z(F,B);$(c,u)&amp;&amp;(i=U+s.pathSector(j),N&amp;&amp;(i+=s.pathSector(N)),a=K(N,f)+K(j,f)),tt(i,a)}function rt(t,e,r,n){var i=E.findIntersectionXY(r,n,r,[t-k,M-e]);return W(i[0],i[1])}function nt(t,e){var r,n,i=F+t,a=B+e,o=Z(F,B),l=Z(i,a),c=z(o,C),u=z(l,C);$(rt(F,B,c[0],c[1]),Math.min(rt(i,a,u[0],u[1]),d))&amp;&amp;(r=U+s.pathSector(j),N&amp;&amp;(r+=s.pathSector(N)),n=[Q(N,c[0],c[1]),Q(j,c[0],c[1])].join(&quot; &quot;)),tt(r,n)}function it(){if(m.removeZoombox(c),null!==N&amp;&amp;null!==j){var t={};at(t),m.showDoubleClickNotifier(c),a.call(&quot;_guiRelayout&quot;,c,t)}}function at(t){var e=L._rl,r=(e[1]-e[0])/(1-g/d)/d,n=[e[0]+(N-g)*r,e[0]+(j-g)*r];t[s.id+&quot;.radialaxis.range&quot;]=n}function ot(t,e){var r=c._fullLayout.clickmode;if(m.removeZoombox(c),2===t){var n={};for(var i in s.viewInitial)n[s.id+&quot;.&quot;+i]=s.viewInitial[i];c.emit(&quot;plotly_doubleclick&quot;,null),a.call(&quot;_guiRelayout&quot;,c,n)}r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;1===t&amp;&amp;_(e,c,[s.xaxis],[s.yaxis],s.id,Y),r.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;y.click(c,e,s.id)}Y.prepFn=function(t,n,a){var l=c._fullLayout.dragmode,u=R.getBoundingClientRect();c._fullLayout._calcInverseTransform(c);var h=c._fullLayout._invTransform;e=c._fullLayout._invScaleX,r=c._fullLayout._invScaleY;var p=o.apply3DTransform(h)(n-u.left,a-u.top);if(F=p[0],B=p[1],C){var g=E.findPolygonOffset(d,A[0],A[1],C);F+=k+g[0],B+=M+g[1]}switch(l){case&quot;zoom&quot;:Y.moveFn=C?nt:et,Y.clickFn=ot,Y.doneFn=it,function(){N=null,j=null,U=s.pathSubplot(),V=!1;var t=c._fullLayout[s.id];q=i(t.bgcolor).getLuminance(),(H=m.makeZoombox(f,q,x,T,U)).attr(&quot;fill-rule&quot;,&quot;evenodd&quot;),G=m.makeCorners(f,x,T),w(c)}();break;case&quot;select&quot;:case&quot;lasso&quot;:b(t,n,a,Y,l)}},R.onmousemove=function(t){y.hover(c,t,s.id),c._fullLayout._lasthover=R,c._fullLayout._hoversubplot=s.id},R.onmouseout=function(t){c._dragging||v.unhover(c,t)},v.init(Y)},O.updateRadialDrag=function(t,e,r){var i=this,c=i.gd,u=i.layers,f=i.radius,h=i.innerRadius,p=i.cx,d=i.cy,g=i.radialAxis,y=S.radialDragBoxSize,x=y/2;if(g.visible){var b,_,T,A=I(i.radialAxisAngle),E=g._rl,C=E[0],L=E[1],z=E[r],O=.75*(E[1]-E[0])/(1-e.hole)/f;r?(b=p+(f+x)*Math.cos(A),_=d-(f+x)*Math.sin(A),T=&quot;radialdrag&quot;):(b=p+(h-x)*Math.cos(A),_=d-(h-x)*Math.sin(A),T=&quot;radialdrag-inner&quot;);var D,B,N,j=m.makeRectDragger(u,T,&quot;crosshair&quot;,-x,-x,y,y),U={element:j,gd:c};F(n.select(j),g.visible&amp;&amp;h&lt;f,{transform:l(b,_)}),U.prepFn=function(){D=null,B=null,N=null,U.moveFn=V,U.doneFn=q,w(c)},U.clampFn=function(t,e){return Math.sqrt(t*t+e*e)&lt;S.MINDRAG&amp;&amp;(t=0,e=0),[t,e]},v.init(U)}function V(t,e){if(D)D(t,e);else{var n=[t,-e],a=[Math.cos(A),Math.sin(A)],s=Math.abs(o.dot(n,a)/Math.sqrt(o.dot(n,n)));isNaN(s)||(D=s&lt;.5?H:G)}var l={};!function(t){null!==B?t[i.id+&quot;.radialaxis.angle&quot;]=B:null!==N&amp;&amp;(t[i.id+&quot;.radialaxis.range[&quot;+r+&quot;]&quot;]=N)}(l),c.emit(&quot;plotly_relayouting&quot;,l)}function q(){null!==B?a.call(&quot;_guiRelayout&quot;,c,i.id+&quot;.radialaxis.angle&quot;,B):null!==N&amp;&amp;a.call(&quot;_guiRelayout&quot;,c,i.id+&quot;.radialaxis.range[&quot;+r+&quot;]&quot;,N)}function H(t,e){if(0!==r){var n=b+t,a=_+e;B=Math.atan2(d-a,n-p),i.vangles&amp;&amp;(B=R(B,i.vangles)),B=P(B);var o=l(p,d)+s(-B);u[&quot;radial-axis&quot;].attr(&quot;transform&quot;,o),u[&quot;radial-line&quot;].select(&quot;line&quot;).attr(&quot;transform&quot;,o);var c=i.gd._fullLayout,f=c[i.id];i.updateRadialAxisTitle(c,f,B)}}function G(t,e){var n=o.dot([t,-e],[Math.cos(A),Math.sin(A)]);if(N=z-O*n,O&gt;0==(r?N&gt;C:N&lt;L)){var s=c._fullLayout,l=s[i.id];g.range[r]=N,g._rl[r]=N,i.updateRadialAxis(s,l),i.xaxis.setRange(),i.xaxis.setScale(),i.yaxis.setRange(),i.yaxis.setScale();var u=!1;for(var f in i.traceHash){var h=i.traceHash[f],p=o.filterVisible(h);h[0][0].trace._module.plot(c,i,p,l),a.traceIs(f,&quot;gl&quot;)&amp;&amp;p.length&amp;&amp;(u=!0)}u&amp;&amp;(k(c),M(c))}else N=null}},O.updateAngularDrag=function(t){var e=this,r=e.gd,i=e.layers,c=e.radius,f=e.angularAxis,h=e.cx,p=e.cy,d=e.cxx,g=e.cyy,y=S.angularDragBoxSize,x=m.makeDragger(i,&quot;path&quot;,&quot;angulardrag&quot;,&quot;move&quot;),b={element:x,gd:r};function _(t,e){return Math.atan2(g+y-e,t-d-y)}n.select(x).attr(&quot;d&quot;,e.pathAnnulus(c,c+y)).attr(&quot;transform&quot;,l(h,p)).call(T,&quot;move&quot;);var A,E,C,L,I,z,O=i.frontplot.select(&quot;.scatterlayer&quot;).selectAll(&quot;.trace&quot;),D=O.selectAll(&quot;.point&quot;),R=O.selectAll(&quot;.textpoint&quot;);function F(c,m){var v=e.gd._fullLayout,y=v[e.id],x=_(A+c*t._invScaleX,E+m*t._invScaleY),b=P(x-z);if(L=C+b,i.frontplot.attr(&quot;transform&quot;,l(e.xOffset2,e.yOffset2)+s([-b,d,g])),e.vangles){I=e.radialAxisAngle+b;var w=l(h,p)+s(-b),T=l(h,p)+s(-I);i.bg.attr(&quot;transform&quot;,w),i[&quot;radial-grid&quot;].attr(&quot;transform&quot;,w),i[&quot;radial-axis&quot;].attr(&quot;transform&quot;,T),i[&quot;radial-line&quot;].select(&quot;line&quot;).attr(&quot;transform&quot;,T),e.updateRadialAxisTitle(v,y,I)}else e.clipPaths.forTraces.select(&quot;path&quot;).attr(&quot;transform&quot;,l(d,g)+s(b));D.each((function(){var t=n.select(this),e=u.getTranslate(t);t.attr(&quot;transform&quot;,l(e.x,e.y)+s([b]))})),R.each((function(){var t=n.select(this),e=t.select(&quot;text&quot;),r=u.getTranslate(t);t.attr(&quot;transform&quot;,s([b,e.attr(&quot;x&quot;),e.attr(&quot;y&quot;)])+l(r.x,r.y))})),f.rotation=o.modHalf(L,360),e.updateAngularAxis(v,y),e._hasClipOnAxisFalse&amp;&amp;!o.isFullCircle(e.sectorInRad)&amp;&amp;O.call(u.hideOutsideRangePoints,e);var S=!1;for(var F in e.traceHash)if(a.traceIs(F,&quot;gl&quot;)){var N=e.traceHash[F],j=o.filterVisible(N);N[0][0].trace._module.plot(r,e,j,y),j.length&amp;&amp;(S=!0)}S&amp;&amp;(k(r),M(r));var U={};B(U),r.emit(&quot;plotly_relayouting&quot;,U)}function B(t){t[e.id+&quot;.angularaxis.rotation&quot;]=L,e.vangles&amp;&amp;(t[e.id+&quot;.radialaxis.angle&quot;]=I)}function N(){R.select(&quot;text&quot;).attr(&quot;transform&quot;,null);var t={};B(t),a.call(&quot;_guiRelayout&quot;,r,t)}b.prepFn=function(n,i,a){var s=t[e.id];C=s.angularaxis.rotation;var l=x.getBoundingClientRect();A=i-l.left,E=a-l.top,r._fullLayout._calcInverseTransform(r);var c=o.apply3DTransform(t._invTransform)(A,E);A=c[0],E=c[1],z=_(A,E),b.moveFn=F,b.doneFn=N,w(r)},e.vangles&amp;&amp;!o.isFullCircle(e.sectorInRad)&amp;&amp;(b.prepFn=o.noop,T(n.select(x),null)),v.init(b)},O.isPtInside=function(t){var e=this.sectorInRad,r=this.vangles,n=this.angularAxis.c2g(t.theta),i=this.radialAxis,a=i.c2l(t.r),s=i._rl;return(r?E.isPtInsidePolygon:o.isPtInsideSector)(a,n,s,e,r)},O.pathArc=function(t){var e=this.sectorInRad,r=this.vangles;return(r?E.pathPolygon:o.pathArc)(t,e[0],e[1],r)},O.pathSector=function(t){var e=this.sectorInRad,r=this.vangles;return(r?E.pathPolygon:o.pathSector)(t,e[0],e[1],r)},O.pathAnnulus=function(t,e){var r=this.sectorInRad,n=this.vangles;return(n?E.pathPolygonAnnulus:o.pathAnnulus)(t,e,r[0],r[1],n)},O.pathSubplot=function(){var t=this.innerRadius,e=this.radius;return t?this.pathAnnulus(t,e):this.pathSector(e)},O.fillViewInitialKey=function(t,e){t in this.viewInitial||(this.viewInitial[t]=e)}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../components/titles&quot;:738,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/clear_gl_canvases&quot;:762,&quot;../../lib/setcursor&quot;:799,&quot;../../plot_api/subroutines&quot;:818,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../cartesian/autorange&quot;:827,&quot;../cartesian/dragbox&quot;:836,&quot;../cartesian/select&quot;:847,&quot;../cartesian/set_convert&quot;:848,&quot;../plots&quot;:891,&quot;./constants&quot;:892,&quot;./helpers&quot;:893,&quot;./set_convert&quot;:904,d3:169,tinycolor2:576}],904:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../cartesian/set_convert&quot;),a=n.deg2rad,o=n.rad2deg;e.exports=function(t,e,r){switch(i(t,r),t._id){case&quot;x&quot;:case&quot;radialaxis&quot;:!function(t,e){var r=e._subplot;t.setGeometry=function(){var e=t._rl[0],n=t._rl[1],i=r.innerRadius,a=(r.radius-i)/(n-e),o=i/a,s=e&gt;n?function(t){return t&lt;=0}:function(t){return t&gt;=0};t.c2g=function(r){var n=t.c2l(r)-e;return(s(n)?n:0)+o},t.g2c=function(r){return t.l2c(r+e-o)},t.g2p=function(t){return t*a},t.c2p=function(e){return t.g2p(t.c2g(e))}}}(t,e);break;case&quot;angularaxis&quot;:!function(t,e){var r=t.type;if(&quot;linear&quot;===r){var i=t.d2c,s=t.c2d;t.d2c=function(t,e){return function(t,e){return&quot;degrees&quot;===e?a(t):t}(i(t),e)},t.c2d=function(t,e){return s(function(t,e){return&quot;degrees&quot;===e?o(t):t}(t,e))}}t.makeCalcdata=function(e,i){var a,o,s=e[i],l=e._length,c=function(r){return t.d2c(r,e.thetaunit)};if(s){if(n.isTypedArray(s)&amp;&amp;&quot;linear&quot;===r){if(l===s.length)return s;if(s.subarray)return s.subarray(0,l)}for(a=new Array(l),o=0;o&lt;l;o++)a[o]=c(s[o])}else{var u=i+&quot;0&quot;,f=&quot;d&quot;+i,h=u in e?c(e[u]):0,p=e[f]?c(e[f]):(t.period||2*Math.PI)/l;for(a=new Array(l),o=0;o&lt;l;o++)a[o]=h+o*p}return a},t.setGeometry=function(){var i,s,l,c,u=e.sector,f=u.map(a),h={clockwise:-1,counterclockwise:1}[t.direction],p=a(t.rotation),d=function(t){return h*t+p},g=function(t){return(t-p)/h};switch(r){case&quot;linear&quot;:s=i=n.identity,c=a,l=o,t.range=n.isFullCircle(f)?[u[0],u[0]+360]:f.map(g).map(o);break;case&quot;category&quot;:var m=t._categories.length,v=t.period?Math.max(t.period,m):m;0===v&amp;&amp;(v=1),s=c=function(t){return 2*t*Math.PI/v},i=l=function(t){return t*v/Math.PI/2},t.range=[0,v]}t.c2g=function(t){return d(s(t))},t.g2c=function(t){return i(g(t))},t.t2g=function(t){return d(c(t))},t.g2t=function(t){return l(g(t))}}}(t,e)}}},{&quot;../../lib&quot;:778,&quot;../cartesian/set_convert&quot;:848}],905:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_template&quot;),a=t(&quot;./domain&quot;).defaults;e.exports=function(t,e,r,o){var s,l,c=o.type,u=o.attributes,f=o.handleDefaults,h=o.partition||&quot;x&quot;,p=e._subplots[c],d=p.length,g=d&amp;&amp;p[0].replace(/\d+$/,&quot;&quot;);function m(t,e){return n.coerce(s,l,u,t,e)}for(var v=0;v&lt;d;v++){var y=p[v];s=t[y]?t[y]:t[y]={},l=i.newContainer(e,y,g),m(&quot;uirevision&quot;,e.uirevision);var x={};x[h]=[v/d,(v+1)/d],a(l,e,m,x),o.id=y,f(s,l,m,o)}}},{&quot;../lib&quot;:778,&quot;../plot_api/plot_template&quot;:817,&quot;./domain&quot;:855}],906:[function(t,e,r){&quot;use strict&quot;;['Variables are inserted using %{variable}, for example &quot;y: %{y}&quot;.','Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example &quot;Price: %{y:$.2f}&quot;.',t(&quot;../constants/docs&quot;).FORMAT_LINK,&quot;for details on the formatting syntax.&quot;,'Dates are formatted using d3-time-format\'s syntax %{variable|d3-time-format}, for example &quot;Day: %{2019-01-01|%A}&quot;.',t(&quot;../constants/docs&quot;).DATE_FORMAT_LINK,&quot;for details on the date formatting syntax.&quot;].join(&quot; &quot;);function n(t){var e=t.description?&quot; &quot;+t.description:&quot;&quot;,r=t.keys||[];if(r.length&gt;0){for(var n=[],i=0;i&lt;r.length;i++)n[i]=&quot;`&quot;+r[i]+&quot;`&quot;;e+=&quot;Finally, the template string has access to &quot;,e=1===r.length?&quot;variable &quot;+n[0]:&quot;variables &quot;+n.slice(0,-1).join(&quot;, &quot;)+&quot; and &quot;+n.slice(-1)+&quot;.&quot;}return e}r.hovertemplateAttrs=function(t,e){t=t||{};n(e=e||{});var r={valType:&quot;string&quot;,dflt:&quot;&quot;,editType:t.editType||&quot;none&quot;};return!1!==t.arrayOk&amp;&amp;(r.arrayOk=!0),r},r.texttemplateAttrs=function(t,e){t=t||{};n(e=e||{});var r={valType:&quot;string&quot;,dflt:&quot;&quot;,editType:t.editType||&quot;calc&quot;};return!1!==t.arrayOk&amp;&amp;(r.arrayOk=!0),r}},{&quot;../constants/docs&quot;:748}],907:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./ternary&quot;),i=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,a=t(&quot;../../lib&quot;).counterRegex;r.name=&quot;ternary&quot;;var o=r.attr=&quot;subplot&quot;;r.idRoot=&quot;ternary&quot;,r.idRegex=r.attrRegex=a(&quot;ternary&quot;),(r.attributes={})[o]={valType:&quot;subplotid&quot;,dflt:&quot;ternary&quot;,editType:&quot;calc&quot;},r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t.calcdata,a=e._subplots.ternary,o=0;o&lt;a.length;o++){var s=a[o],l=i(r,&quot;ternary&quot;,s),c=e[s]._subplot;c||(c=new n({id:s,graphDiv:t,container:e._ternarylayer.node()},e),e[s]._subplot=c),c.plot(l,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.ternary||[],a=0;a&lt;i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&amp;&amp;s&amp;&amp;(s.plotContainer.remove(),s.clipDef.remove(),s.clipDefRelative.remove(),s.layers[&quot;a-title&quot;].remove(),s.layers[&quot;b-title&quot;].remove(),s.layers[&quot;c-title&quot;].remove())}}},{&quot;../../lib&quot;:778,&quot;../../plots/get_data&quot;:865,&quot;./layout_attributes&quot;:908,&quot;./layout_defaults&quot;:909,&quot;./ternary&quot;:910}],908:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../domain&quot;).attributes,a=t(&quot;../cartesian/layout_attributes&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../lib/extend&quot;).extendFlat,l={title:{text:a.title.text,font:a.title.font},color:a.color,tickmode:a.tickmode,nticks:s({},a.nticks,{dflt:6,min:1}),tick0:a.tick0,dtick:a.dtick,tickvals:a.tickvals,ticktext:a.ticktext,ticks:a.ticks,ticklen:a.ticklen,tickwidth:a.tickwidth,tickcolor:a.tickcolor,showticklabels:a.showticklabels,showtickprefix:a.showtickprefix,tickprefix:a.tickprefix,showticksuffix:a.showticksuffix,ticksuffix:a.ticksuffix,showexponent:a.showexponent,exponentformat:a.exponentformat,minexponent:a.minexponent,separatethousands:a.separatethousands,tickfont:a.tickfont,tickangle:a.tickangle,tickformat:a.tickformat,tickformatstops:a.tickformatstops,hoverformat:a.hoverformat,showline:s({},a.showline,{dflt:!0}),linecolor:a.linecolor,linewidth:a.linewidth,showgrid:s({},a.showgrid,{dflt:!0}),gridcolor:a.gridcolor,gridwidth:a.gridwidth,layer:a.layer,min:{valType:&quot;number&quot;,dflt:0,min:0},_deprecated:{title:a._deprecated.title,titlefont:a._deprecated.titlefont}},c=e.exports=o({domain:i({name:&quot;ternary&quot;}),bgcolor:{valType:&quot;color&quot;,dflt:n.background},sum:{valType:&quot;number&quot;,dflt:1,min:0},aaxis:l,baxis:l,caxis:l},&quot;plot&quot;,&quot;from-root&quot;);c.uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;},c.aaxis.uirevision=c.baxis.uirevision=c.caxis.uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../cartesian/layout_attributes&quot;:842,&quot;../domain&quot;:855}],909:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../subplot_defaults&quot;),s=t(&quot;../cartesian/tick_label_defaults&quot;),l=t(&quot;../cartesian/tick_mark_defaults&quot;),c=t(&quot;../cartesian/tick_value_defaults&quot;),u=t(&quot;../cartesian/line_grid_defaults&quot;),f=t(&quot;./layout_attributes&quot;),h=[&quot;aaxis&quot;,&quot;baxis&quot;,&quot;caxis&quot;];function p(t,e,r,a){var o,s,l,c=r(&quot;bgcolor&quot;),u=r(&quot;sum&quot;);a.bgColor=n.combine(c,a.paper_bgcolor);for(var f=0;f&lt;h.length;f++)s=t[o=h[f]]||{},(l=i.newContainer(e,o))._name=o,d(s,l,a,e);var p=e.aaxis,g=e.baxis,m=e.caxis;p.min+g.min+m.min&gt;=u&amp;&amp;(p.min=0,g.min=0,m.min=0,t.aaxis&amp;&amp;delete t.aaxis.min,t.baxis&amp;&amp;delete t.baxis.min,t.caxis&amp;&amp;delete t.caxis.min)}function d(t,e,r,n){var i=f[e._name];function o(r,n){return a.coerce(t,e,i,r,n)}o(&quot;uirevision&quot;,n.uirevision),e.type=&quot;linear&quot;;var h=o(&quot;color&quot;),p=h!==i.color.dflt?h:r.font.color,d=e._name.charAt(0).toUpperCase(),g=&quot;Component &quot;+d,m=o(&quot;title.text&quot;,g);e._hovertitle=m===g?m:d,a.coerceFont(o,&quot;title.font&quot;,{family:r.font.family,size:Math.round(1.2*r.font.size),color:p}),o(&quot;min&quot;),c(t,e,o,&quot;linear&quot;),s(t,e,o,&quot;linear&quot;,{}),l(t,e,o,{outerTicks:!0}),o(&quot;showticklabels&quot;)&amp;&amp;(a.coerceFont(o,&quot;tickfont&quot;,{family:r.font.family,size:r.font.size,color:p}),o(&quot;tickangle&quot;),o(&quot;tickformat&quot;)),u(t,e,o,{dfltColor:h,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),o(&quot;hoverformat&quot;),o(&quot;layer&quot;)}e.exports=function(t,e,r){o(t,e,r,{type:&quot;ternary&quot;,attributes:f,handleDefaults:p,font:e.font,paper_bgcolor:e.paper_bgcolor})}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../cartesian/line_grid_defaults&quot;:844,&quot;../cartesian/tick_label_defaults&quot;:849,&quot;../cartesian/tick_mark_defaults&quot;:850,&quot;../cartesian/tick_value_defaults&quot;:851,&quot;../subplot_defaults&quot;:905,&quot;./layout_attributes&quot;:908}],910:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=o._,c=t(&quot;../../components/color&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../cartesian/set_convert&quot;),h=t(&quot;../../lib/extend&quot;).extendFlat,p=t(&quot;../plots&quot;),d=t(&quot;../cartesian/axes&quot;),g=t(&quot;../../components/dragelement&quot;),m=t(&quot;../../components/fx&quot;),v=t(&quot;../../components/dragelement/helpers&quot;),y=v.freeMode,x=v.rectMode,b=t(&quot;../../components/titles&quot;),_=t(&quot;../cartesian/select&quot;).prepSelect,w=t(&quot;../cartesian/select&quot;).selectOnClick,T=t(&quot;../cartesian/select&quot;).clearSelect,k=t(&quot;../cartesian/select&quot;).clearSelectionsCache,M=t(&quot;../cartesian/constants&quot;);function A(t,e){this.id=t.id,this.graphDiv=t.graphDiv,this.init(e),this.makeFramework(e),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}e.exports=A;var S=A.prototype;S.init=function(t){this.container=t._ternarylayer,this.defs=t._defs,this.layoutId=t._uid,this.traceHash={},this.layers={}},S.plot=function(t,e){var r=e[this.id],n=e._size;this._hasClipOnAxisFalse=!1;for(var i=0;i&lt;t.length;i++){if(!1===t[i][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(r),this.adjustLayout(r,n),p.generalUpdatePerTraceModule(this.graphDiv,this,t,r),this.layers.plotbg.select(&quot;path&quot;).call(c.fill,r.bgcolor)},S.makeFramework=function(t){var e=this.graphDiv,r=t[this.id],n=this.clipId=&quot;clip&quot;+this.layoutId+this.id,i=this.clipIdRelative=&quot;clip-relative&quot;+this.layoutId+this.id;this.clipDef=o.ensureSingleById(t._clips,&quot;clipPath&quot;,n,(function(t){t.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;)})),this.clipDefRelative=o.ensureSingleById(t._clips,&quot;clipPath&quot;,i,(function(t){t.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;)})),this.plotContainer=o.ensureSingle(this.container,&quot;g&quot;,this.id),this.updateLayers(r),u.setClipUrl(this.layers.backplot,n,e),u.setClipUrl(this.layers.grids,n,e)},S.updateLayers=function(t){var e=this.layers,r=[&quot;draglayer&quot;,&quot;plotbg&quot;,&quot;backplot&quot;,&quot;grids&quot;];&quot;below traces&quot;===t.aaxis.layer&amp;&amp;r.push(&quot;aaxis&quot;,&quot;aline&quot;),&quot;below traces&quot;===t.baxis.layer&amp;&amp;r.push(&quot;baxis&quot;,&quot;bline&quot;),&quot;below traces&quot;===t.caxis.layer&amp;&amp;r.push(&quot;caxis&quot;,&quot;cline&quot;),r.push(&quot;frontplot&quot;),&quot;above traces&quot;===t.aaxis.layer&amp;&amp;r.push(&quot;aaxis&quot;,&quot;aline&quot;),&quot;above traces&quot;===t.baxis.layer&amp;&amp;r.push(&quot;baxis&quot;,&quot;bline&quot;),&quot;above traces&quot;===t.caxis.layer&amp;&amp;r.push(&quot;caxis&quot;,&quot;cline&quot;);var i=this.plotContainer.selectAll(&quot;g.toplevel&quot;).data(r,String),a=[&quot;agrid&quot;,&quot;bgrid&quot;,&quot;cgrid&quot;];i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;toplevel &quot;+t})).each((function(t){var r=n.select(this);e[t]=r,&quot;frontplot&quot;===t?r.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0):&quot;backplot&quot;===t?r.append(&quot;g&quot;).classed(&quot;maplayer&quot;,!0):&quot;plotbg&quot;===t?r.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;):&quot;aline&quot;===t||&quot;bline&quot;===t||&quot;cline&quot;===t?r.append(&quot;path&quot;):&quot;grids&quot;===t&amp;&amp;a.forEach((function(t){e[t]=r.append(&quot;g&quot;).classed(&quot;grid &quot;+t,!0)}))})),i.order()};var E=Math.sqrt(4/3);S.adjustLayout=function(t,e){var r,n,i,a,o,l,p=this,d=t.domain,g=(d.x[0]+d.x[1])/2,m=(d.y[0]+d.y[1])/2,v=d.x[1]-d.x[0],y=d.y[1]-d.y[0],x=v*e.w,b=y*e.h,_=t.sum,w=t.aaxis.min,T=t.baxis.min,k=t.caxis.min;x&gt;E*b?i=(a=b)*E:a=(i=x)/E,o=v*i/x,l=y*a/b,r=e.l+e.w*g-i/2,n=e.t+e.h*(1-m)-a/2,p.x0=r,p.y0=n,p.w=i,p.h=a,p.sum=_,p.xaxis={type:&quot;linear&quot;,range:[w+2*k-_,_-w-2*T],domain:[g-o/2,g+o/2],_id:&quot;x&quot;},f(p.xaxis,p.graphDiv._fullLayout),p.xaxis.setScale(),p.xaxis.isPtWithinRange=function(t){return t.a&gt;=p.aaxis.range[0]&amp;&amp;t.a&lt;=p.aaxis.range[1]&amp;&amp;t.b&gt;=p.baxis.range[1]&amp;&amp;t.b&lt;=p.baxis.range[0]&amp;&amp;t.c&gt;=p.caxis.range[1]&amp;&amp;t.c&lt;=p.caxis.range[0]},p.yaxis={type:&quot;linear&quot;,range:[w,_-T-k],domain:[m-l/2,m+l/2],_id:&quot;y&quot;},f(p.yaxis,p.graphDiv._fullLayout),p.yaxis.setScale(),p.yaxis.isPtWithinRange=function(){return!0};var M=p.yaxis.domain[0],A=p.aaxis=h({},t.aaxis,{range:[w,_-T-k],side:&quot;left&quot;,tickangle:(+t.aaxis.tickangle||0)-30,domain:[M,M+l*E],anchor:&quot;free&quot;,position:0,_id:&quot;y&quot;,_length:i});f(A,p.graphDiv._fullLayout),A.setScale();var S=p.baxis=h({},t.baxis,{range:[_-w-k,T],side:&quot;bottom&quot;,domain:p.xaxis.domain,anchor:&quot;free&quot;,position:0,_id:&quot;x&quot;,_length:i});f(S,p.graphDiv._fullLayout),S.setScale();var C=p.caxis=h({},t.caxis,{range:[_-w-T,k],side:&quot;right&quot;,tickangle:(+t.caxis.tickangle||0)+30,domain:[M,M+l*E],anchor:&quot;free&quot;,position:0,_id:&quot;y&quot;,_length:i});f(C,p.graphDiv._fullLayout),C.setScale();var L=&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;h&quot;+i+&quot;l-&quot;+i/2+&quot;,-&quot;+a+&quot;Z&quot;;p.clipDef.select(&quot;path&quot;).attr(&quot;d&quot;,L),p.layers.plotbg.select(&quot;path&quot;).attr(&quot;d&quot;,L);var I=&quot;M0,&quot;+a+&quot;h&quot;+i+&quot;l-&quot;+i/2+&quot;,-&quot;+a+&quot;Z&quot;;p.clipDefRelative.select(&quot;path&quot;).attr(&quot;d&quot;,I);var P=s(r,n);p.plotContainer.selectAll(&quot;.scatterlayer,.maplayer&quot;).attr(&quot;transform&quot;,P),p.clipDefRelative.select(&quot;path&quot;).attr(&quot;transform&quot;,null);var z=s(r-S._offset,n+a);p.layers.baxis.attr(&quot;transform&quot;,z),p.layers.bgrid.attr(&quot;transform&quot;,z);var O=s(r+i/2,n)+&quot;rotate(30)&quot;+s(0,-A._offset);p.layers.aaxis.attr(&quot;transform&quot;,O),p.layers.agrid.attr(&quot;transform&quot;,O);var D=s(r+i/2,n)+&quot;rotate(-30)&quot;+s(0,-C._offset);p.layers.caxis.attr(&quot;transform&quot;,D),p.layers.cgrid.attr(&quot;transform&quot;,D),p.drawAxes(!0),p.layers.aline.select(&quot;path&quot;).attr(&quot;d&quot;,A.showline?&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;l&quot;+i/2+&quot;,-&quot;+a:&quot;M0,0&quot;).call(c.stroke,A.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(A.linewidth||0)+&quot;px&quot;),p.layers.bline.select(&quot;path&quot;).attr(&quot;d&quot;,S.showline?&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;h&quot;+i:&quot;M0,0&quot;).call(c.stroke,S.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(S.linewidth||0)+&quot;px&quot;),p.layers.cline.select(&quot;path&quot;).attr(&quot;d&quot;,C.showline?&quot;M&quot;+(r+i/2)+&quot;,&quot;+n+&quot;l&quot;+i/2+&quot;,&quot;+a:&quot;M0,0&quot;).call(c.stroke,C.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(C.linewidth||0)+&quot;px&quot;),p.graphDiv._context.staticPlot||p.initInteractions(),u.setClipUrl(p.layers.frontplot,p._hasClipOnAxisFalse?null:p.clipId,p.graphDiv)},S.drawAxes=function(t){var e=this.graphDiv,r=this.id.substr(7)+&quot;title&quot;,n=this.layers,i=this.aaxis,a=this.baxis,o=this.caxis;if(this.drawAx(i),this.drawAx(a),this.drawAx(o),t){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(o.showticklabels?.75*o.tickfont.size:0)+(&quot;outside&quot;===o.ticks?.87*o.ticklen:0)),c=(a.showticklabels?a.tickfont.size:0)+(&quot;outside&quot;===a.ticks?a.ticklen:0)+3;n[&quot;a-title&quot;]=b.draw(e,&quot;a&quot;+r,{propContainer:i,propName:this.id+&quot;.aaxis.title&quot;,placeholder:l(e,&quot;Click to enter Component A title&quot;),attributes:{x:this.x0+this.w/2,y:this.y0-i.title.font.size/3-s,&quot;text-anchor&quot;:&quot;middle&quot;}}),n[&quot;b-title&quot;]=b.draw(e,&quot;b&quot;+r,{propContainer:a,propName:this.id+&quot;.baxis.title&quot;,placeholder:l(e,&quot;Click to enter Component B title&quot;),attributes:{x:this.x0-c,y:this.y0+this.h+.83*a.title.font.size+c,&quot;text-anchor&quot;:&quot;middle&quot;}}),n[&quot;c-title&quot;]=b.draw(e,&quot;c&quot;+r,{propContainer:o,propName:this.id+&quot;.caxis.title&quot;,placeholder:l(e,&quot;Click to enter Component C title&quot;),attributes:{x:this.x0+this.w+c,y:this.y0+this.h+.83*o.title.font.size+c,&quot;text-anchor&quot;:&quot;middle&quot;}})}},S.drawAx=function(t){var e,r=this.graphDiv,n=t._name,i=n.charAt(0),a=t._id,s=this.layers[n],l=i+&quot;tickLayout&quot;,c=(e=t).ticks+String(e.ticklen)+String(e.showticklabels);this[l]!==c&amp;&amp;(s.selectAll(&quot;.&quot;+a+&quot;tick&quot;).remove(),this[l]=c),t.setScale();var u=d.calcTicks(t),f=d.clipEnds(t,u),h=d.makeTransTickFn(t),p=d.getTickSigns(t)[2],g=o.deg2rad(30),m=p*(t.linewidth||1)/2,v=p*t.ticklen,y=this.w,x=this.h,b=&quot;b&quot;===i?&quot;M0,&quot;+m+&quot;l&quot;+Math.sin(g)*v+&quot;,&quot;+Math.cos(g)*v:&quot;M&quot;+m+&quot;,0l&quot;+Math.cos(g)*v+&quot;,&quot;+-Math.sin(g)*v,_={a:&quot;M0,0l&quot;+x+&quot;,-&quot;+y/2,b:&quot;M0,0l-&quot;+y/2+&quot;,-&quot;+x,c:&quot;M0,0l-&quot;+x+&quot;,&quot;+y/2}[i];d.drawTicks(r,t,{vals:&quot;inside&quot;===t.ticks?f:u,layer:s,path:b,transFn:h,crisp:!1}),d.drawGrid(r,t,{vals:f,layer:this.layers[i+&quot;grid&quot;],path:_,transFn:h,crisp:!1}),d.drawLabels(r,t,{vals:u,layer:s,transFn:h,labelFns:d.makeLabelFns(t,0,30)})};var C=M.MINZOOM/2+.87,L=&quot;m-0.87,.5h&quot;+C+&quot;v3h-&quot;+(C+5.2)+&quot;l&quot;+(C/2+2.6)+&quot;,-&quot;+(.87*C+4.5)+&quot;l2.6,1.5l-&quot;+C/2+&quot;,&quot;+.87*C+&quot;Z&quot;,I=&quot;m0.87,.5h-&quot;+C+&quot;v3h&quot;+(C+5.2)+&quot;l-&quot;+(C/2+2.6)+&quot;,-&quot;+(.87*C+4.5)+&quot;l-2.6,1.5l&quot;+C/2+&quot;,&quot;+.87*C+&quot;Z&quot;,P=&quot;m0,1l&quot;+C/2+&quot;,&quot;+.87*C+&quot;l2.6,-1.5l-&quot;+(C/2+2.6)+&quot;,-&quot;+(.87*C+4.5)+&quot;l-&quot;+(C/2+2.6)+&quot;,&quot;+(.87*C+4.5)+&quot;l2.6,1.5l&quot;+C/2+&quot;,-&quot;+.87*C+&quot;Z&quot;,z=!0;function O(t){n.select(t).selectAll(&quot;.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners&quot;).remove()}S.clearSelect=function(){k(this.dragOptions),T(this.dragOptions.gd)},S.initInteractions=function(){var t,e,r,n,f,h,p,d,v,b,T,k,A=this,S=A.layers.plotbg.select(&quot;path&quot;).node(),C=A.graphDiv,D=C._fullLayout._zoomlayer;function R(t){var e={};return e[A.id+&quot;.aaxis.min&quot;]=t.a,e[A.id+&quot;.baxis.min&quot;]=t.b,e[A.id+&quot;.caxis.min&quot;]=t.c,e}function F(t,e){var r=C._fullLayout.clickmode;O(C),2===t&amp;&amp;(C.emit(&quot;plotly_doubleclick&quot;,null),a.call(&quot;_guiRelayout&quot;,C,R({a:0,b:0,c:0}))),r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;1===t&amp;&amp;w(e,C,[A.xaxis],[A.yaxis],A.id,A.dragOptions),r.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;m.click(C,e,A.id)}function B(t,e){return 1-e/A.h}function N(t,e){return 1-(t+(A.h-e)/Math.sqrt(3))/A.w}function j(t,e){return(t-(A.h-e)/Math.sqrt(3))/A.w}function U(i,a){var o=r+i*t,s=n+a*e,l=Math.max(0,Math.min(1,B(0,n),B(0,s))),c=Math.max(0,Math.min(1,N(r,n),N(o,s))),u=Math.max(0,Math.min(1,j(r,n),j(o,s))),g=(l/2+u)*A.w,m=(1-l/2-c)*A.w,y=(g+m)/2,x=m-g,_=(1-l)*A.h,w=_-x/E;x&lt;M.MINZOOM?(p=f,T.attr(&quot;d&quot;,v),k.attr(&quot;d&quot;,&quot;M0,0Z&quot;)):(p={a:f.a+l*h,b:f.b+c*h,c:f.c+u*h},T.attr(&quot;d&quot;,v+&quot;M&quot;+g+&quot;,&quot;+_+&quot;H&quot;+m+&quot;L&quot;+y+&quot;,&quot;+w+&quot;L&quot;+g+&quot;,&quot;+_+&quot;Z&quot;),k.attr(&quot;d&quot;,&quot;M&quot;+r+&quot;,&quot;+n+&quot;m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2ZM&quot;+g+&quot;,&quot;+_+L+&quot;M&quot;+m+&quot;,&quot;+_+I+&quot;M&quot;+y+&quot;,&quot;+w+P)),b||(T.transition().style(&quot;fill&quot;,d&gt;.2?&quot;rgba(0,0,0,0.4)&quot;:&quot;rgba(255,255,255,0.3)&quot;).duration(200),k.transition().style(&quot;opacity&quot;,1).duration(200),b=!0),C.emit(&quot;plotly_relayouting&quot;,R(p))}function V(){O(C),p!==f&amp;&amp;(a.call(&quot;_guiRelayout&quot;,C,R(p)),z&amp;&amp;C.data&amp;&amp;C._context.showTips&amp;&amp;(o.notifier(l(C,&quot;Double-click to zoom back out&quot;),&quot;long&quot;),z=!1))}function q(t,e){var r=t/A.xaxis._m,n=e/A.yaxis._m,i=[(p={a:f.a-n,b:f.b+(r+n)/2,c:f.c-(r-n)/2}).a,p.b,p.c].sort(o.sorterAsc),a=i.indexOf(p.a),l=i.indexOf(p.b),c=i.indexOf(p.c);i[0]&lt;0&amp;&amp;(i[1]+i[0]/2&lt;0?(i[2]+=i[0]+i[1],i[0]=i[1]=0):(i[2]+=i[0]/2,i[1]+=i[0]/2,i[0]=0),p={a:i[a],b:i[l],c:i[c]},e=(f.a-p.a)*A.yaxis._m,t=(f.c-p.c-f.b+p.b)*A.xaxis._m);var h=s(A.x0+t,A.y0+e);A.plotContainer.selectAll(&quot;.scatterlayer,.maplayer&quot;).attr(&quot;transform&quot;,h);var d=s(-t,-e);A.clipDefRelative.select(&quot;path&quot;).attr(&quot;transform&quot;,d),A.aaxis.range=[p.a,A.sum-p.b-p.c],A.baxis.range=[A.sum-p.a-p.c,p.b],A.caxis.range=[A.sum-p.a-p.b,p.c],A.drawAxes(!1),A._hasClipOnAxisFalse&amp;&amp;A.plotContainer.select(&quot;.scatterlayer&quot;).selectAll(&quot;.trace&quot;).call(u.hideOutsideRangePoints,A),C.emit(&quot;plotly_relayouting&quot;,R(p))}function H(){a.call(&quot;_guiRelayout&quot;,C,R(p))}this.dragOptions={element:S,gd:C,plotinfo:{id:A.id,domain:C._fullLayout[A.id].domain,xaxis:A.xaxis,yaxis:A.yaxis},subplot:A.id,prepFn:function(a,l,u){A.dragOptions.xaxes=[A.xaxis],A.dragOptions.yaxes=[A.yaxis],t=C._fullLayout._invScaleX,e=C._fullLayout._invScaleY;var g=A.dragOptions.dragmode=C._fullLayout.dragmode;y(g)?A.dragOptions.minDrag=1:A.dragOptions.minDrag=void 0,&quot;zoom&quot;===g?(A.dragOptions.moveFn=U,A.dragOptions.clickFn=F,A.dragOptions.doneFn=V,function(t,e,a){var l=S.getBoundingClientRect();r=e-l.left,n=a-l.top,C._fullLayout._calcInverseTransform(C);var u=C._fullLayout._invTransform,g=o.apply3DTransform(u)(r,n);r=g[0],n=g[1],f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},p=f,h=A.aaxis.range[1]-f.a,d=i(A.graphDiv._fullLayout[A.id].bgcolor).getLuminance(),v=&quot;M0,&quot;+A.h+&quot;L&quot;+A.w/2+&quot;, 0L&quot;+A.w+&quot;,&quot;+A.h+&quot;Z&quot;,b=!1,T=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox&quot;).attr(&quot;transform&quot;,s(A.x0,A.y0)).style({fill:d&gt;.2?&quot;rgba(0,0,0,0)&quot;:&quot;rgba(255,255,255,0)&quot;,&quot;stroke-width&quot;:0}).attr(&quot;d&quot;,v),k=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).attr(&quot;transform&quot;,s(A.x0,A.y0)).style({fill:c.background,stroke:c.defaultLine,&quot;stroke-width&quot;:1,opacity:0}).attr(&quot;d&quot;,&quot;M0,0Z&quot;),A.clearSelect(C)}(0,l,u)):&quot;pan&quot;===g?(A.dragOptions.moveFn=q,A.dragOptions.clickFn=F,A.dragOptions.doneFn=H,f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},p=f,A.clearSelect(C)):(x(g)||y(g))&amp;&amp;_(a,l,u,A.dragOptions,g)}},S.onmousemove=function(t){m.hover(C,t,A.id),C._fullLayout._lasthover=S,C._fullLayout._hoversubplot=A.id},S.onmouseout=function(t){C._dragging||g.unhover(C,t)},g.init(this.dragOptions)}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../components/titles&quot;:738,&quot;../../lib&quot;:778,&quot;../../lib/extend&quot;:768,&quot;../../registry&quot;:911,&quot;../cartesian/axes&quot;:828,&quot;../cartesian/constants&quot;:834,&quot;../cartesian/select&quot;:847,&quot;../cartesian/set_convert&quot;:848,&quot;../plots&quot;:891,d3:169,tinycolor2:576}],911:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/loggers&quot;),i=t(&quot;./lib/noop&quot;),a=t(&quot;./lib/push_unique&quot;),o=t(&quot;./lib/is_plain_object&quot;),s=t(&quot;./lib/dom&quot;).addStyleRule,l=t(&quot;./lib/extend&quot;),c=t(&quot;./plots/attributes&quot;),u=t(&quot;./plots/layout_attributes&quot;),f=l.extendFlat,h=l.extendDeepAll;function p(t){var e=t.name,i=t.categories,a=t.meta;if(r.modules[e])n.log(&quot;Type &quot;+e+&quot; already registered&quot;);else{r.subplotsRegistry[t.basePlotModule.name]||function(t){var e=t.name;if(r.subplotsRegistry[e])return void n.log(&quot;Plot type &quot;+e+&quot; already registered.&quot;);for(var i in v(t),r.subplotsRegistry[e]=t,r.componentsRegistry)b(i,t.name)}(t.basePlotModule);for(var o={},l=0;l&lt;i.length;l++)o[i[l]]=!0,r.allCategories[i[l]]=!0;for(var c in r.modules[e]={_module:t,categories:o},a&amp;&amp;Object.keys(a).length&amp;&amp;(r.modules[e].meta=a),r.allTypes.push(e),r.componentsRegistry)y(c,e);t.layoutAttributes&amp;&amp;f(r.traceLayoutAttributes,t.layoutAttributes);var u=t.basePlotModule,h=u.name;if(&quot;mapbox&quot;===h){var p=u.constants.styleRules;for(var d in p)s(&quot;.js-plotly-plot .plotly .mapboxgl-&quot;+d,p[d])}&quot;geo&quot;!==h&amp;&amp;&quot;mapbox&quot;!==h||void 0===typeof window||void 0!==window.PlotlyGeoAssets||(window.PlotlyGeoAssets={topojson:{}})}}function d(t){if(&quot;string&quot;!=typeof t.name)throw new Error(&quot;Component module *name* must be a string.&quot;);var e=t.name;for(var n in r.componentsRegistry[e]=t,t.layoutAttributes&amp;&amp;(t.layoutAttributes._isLinkedToArray&amp;&amp;a(r.layoutArrayContainers,e),v(t)),r.modules)y(e,n);for(var i in r.subplotsRegistry)b(e,i);for(var o in r.transformsRegistry)x(e,o);t.schema&amp;&amp;t.schema.layout&amp;&amp;h(u,t.schema.layout)}function g(t){if(&quot;string&quot;!=typeof t.name)throw new Error(&quot;Transform module *name* must be a string.&quot;);var e=&quot;Transform module &quot;+t.name,i=&quot;function&quot;==typeof t.transform,a=&quot;function&quot;==typeof t.calcTransform;if(!i&amp;&amp;!a)throw new Error(e+&quot; is missing a *transform* or *calcTransform* method.&quot;);for(var s in i&amp;&amp;a&amp;&amp;n.log([e+&quot; has both a *transform* and *calcTransform* methods.&quot;,&quot;Please note that all *transform* methods are executed&quot;,&quot;before all *calcTransform* methods.&quot;].join(&quot; &quot;)),o(t.attributes)||n.log(e+&quot; registered without an *attributes* object.&quot;),&quot;function&quot;!=typeof t.supplyDefaults&amp;&amp;n.log(e+&quot; registered without a *supplyDefaults* method.&quot;),r.transformsRegistry[t.name]=t,r.componentsRegistry)x(s,t.name)}function m(t){var e=t.name,n=e.split(&quot;-&quot;)[0],i=t.dictionary,a=t.format,o=i&amp;&amp;Object.keys(i).length,s=a&amp;&amp;Object.keys(a).length,l=r.localeRegistry,c=l[e];if(c||(l[e]=c={}),n!==e){var u=l[n];u||(l[n]=u={}),o&amp;&amp;u.dictionary===c.dictionary&amp;&amp;(u.dictionary=i),s&amp;&amp;u.format===c.format&amp;&amp;(u.format=a)}o&amp;&amp;(c.dictionary=i),s&amp;&amp;(c.format=a)}function v(t){if(t.layoutAttributes){var e=t.layoutAttributes._arrayAttrRegexps;if(e)for(var n=0;n&lt;e.length;n++)a(r.layoutArrayRegexes,e[n])}}function y(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.traces){var i=n.traces[e];i&amp;&amp;h(r.modules[e]._module.attributes,i)}}function x(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.transforms){var i=n.transforms[e];i&amp;&amp;h(r.transformsRegistry[e].attributes,i)}}function b(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.subplots){var i=r.subplotsRegistry[e],a=i.layoutAttributes,o=&quot;subplot&quot;===i.attr?i.name:i.attr;Array.isArray(o)&amp;&amp;(o=o[0]);var s=n.subplots[o];a&amp;&amp;s&amp;&amp;h(a,s)}}function _(t){return&quot;object&quot;==typeof t&amp;&amp;(t=t.type),t}r.modules={},r.allCategories={},r.allTypes=[],r.subplotsRegistry={},r.transformsRegistry={},r.componentsRegistry={},r.layoutArrayContainers=[],r.layoutArrayRegexes=[],r.traceLayoutAttributes={},r.localeRegistry={},r.apiMethodRegistry={},r.collectableSubplotTypes=null,r.register=function(t){if(r.collectableSubplotTypes=null,!t)throw new Error(&quot;No argument passed to Plotly.register.&quot;);t&amp;&amp;!Array.isArray(t)&amp;&amp;(t=[t]);for(var e=0;e&lt;t.length;e++){var n=t[e];if(!n)throw new Error(&quot;Invalid module was attempted to be registered!&quot;);switch(n.moduleType){case&quot;trace&quot;:p(n);break;case&quot;transform&quot;:g(n);break;case&quot;component&quot;:d(n);break;case&quot;locale&quot;:m(n);break;case&quot;apiMethod&quot;:var i=n.name;r.apiMethodRegistry[i]=n.fn;break;default:throw new Error(&quot;Invalid module was attempted to be registered!&quot;)}}},r.getModule=function(t){var e=r.modules[_(t)];return!!e&amp;&amp;e._module},r.traceIs=function(t,e){if(&quot;various&quot;===(t=_(t)))return!1;var i=r.modules[t];return i||(t&amp;&amp;&quot;area&quot;!==t&amp;&amp;n.log(&quot;Unrecognized trace type &quot;+t+&quot;.&quot;),i=r.modules[c.type.dflt]),!!i.categories[e]},r.getTransformIndices=function(t,e){for(var r=[],n=t.transforms||[],i=0;i&lt;n.length;i++)n[i].type===e&amp;&amp;r.push(i);return r},r.hasTransform=function(t,e){for(var r=t.transforms||[],n=0;n&lt;r.length;n++)if(r[n].type===e)return!0;return!1},r.getComponentMethod=function(t,e){var n=r.componentsRegistry[t];return n&amp;&amp;n[e]||i},r.call=function(){var t=arguments[0],e=[].slice.call(arguments,1);return r.apiMethodRegistry[t].apply(null,e)}},{&quot;./lib/dom&quot;:766,&quot;./lib/extend&quot;:768,&quot;./lib/is_plain_object&quot;:779,&quot;./lib/loggers&quot;:782,&quot;./lib/noop&quot;:787,&quot;./lib/push_unique&quot;:793,&quot;./plots/attributes&quot;:824,&quot;./plots/layout_attributes&quot;:882}],912:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;),a=i.extendFlat,o=i.extendDeep;function s(t){var e;switch(t){case&quot;themes__thumb&quot;:e={autosize:!0,width:150,height:150,title:{text:&quot;&quot;},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case&quot;thumbnail&quot;:e={title:{text:&quot;&quot;},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:&quot;&quot;,margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:e={}}return e}e.exports=function(t,e){var r;t.framework&amp;&amp;t.framework.isPolar&amp;&amp;(t=t.framework.getConfig());var i,l=t.data,c=t.layout,u=o([],l),f=o({},c,s(e.tileClass)),h=t._context||{};if(e.width&amp;&amp;(f.width=e.width),e.height&amp;&amp;(f.height=e.height),&quot;thumbnail&quot;===e.tileClass||&quot;themes__thumb&quot;===e.tileClass){f.annotations=[];var p=Object.keys(f);for(r=0;r&lt;p.length;r++)i=p[r],[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;].indexOf(i.slice(0,5))&gt;-1&amp;&amp;(f[p[r]].title={text:&quot;&quot;});for(r=0;r&lt;u.length;r++){var d=u[r];d.showscale=!1,d.marker&amp;&amp;(d.marker.showscale=!1),n.traceIs(d,&quot;pie-like&quot;)&amp;&amp;(d.textposition=&quot;none&quot;)}}if(Array.isArray(e.annotations))for(r=0;r&lt;e.annotations.length;r++)f.annotations.push(e.annotations[r]);var g=Object.keys(f).filter((function(t){return t.match(/^scene\d*$/)}));if(g.length){var m={};for(&quot;thumbnail&quot;===e.tileClass&amp;&amp;(m={title:{text:&quot;&quot;},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),r=0;r&lt;g.length;r++){var v=f[g[r]];v.xaxis||(v.xaxis={}),v.yaxis||(v.yaxis={}),v.zaxis||(v.zaxis={}),a(v.xaxis,m),a(v.yaxis,m),a(v.zaxis,m),v._scene=null}}var y=document.createElement(&quot;div&quot;);e.tileClass&amp;&amp;(y.className=e.tileClass);var x={gd:y,td:y,layout:f,data:u,config:{staticPlot:void 0===e.staticPlot||e.staticPlot,plotGlPixelRatio:void 0===e.plotGlPixelRatio?2:e.plotGlPixelRatio,displaylogo:e.displaylogo||!1,showLink:e.showLink||!1,showTips:e.showTips||!1,mapboxAccessToken:h.mapboxAccessToken}};return&quot;transparent&quot;!==e.setBackground&amp;&amp;(x.config.setBackground=e.setBackground||&quot;opaque&quot;),x.gd.defaultLayout=s(e.tileClass),x}},{&quot;../lib&quot;:778,&quot;../registry&quot;:911}],913:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/to_image&quot;),a=t(&quot;./filesaver&quot;),o=t(&quot;./helpers&quot;);e.exports=function(t,e){var r;return n.isPlainObject(t)||(r=n.getGraphDiv(t)),(e=e||{}).format=e.format||&quot;png&quot;,e.width=e.width||null,e.height=e.height||null,e.imageDataOnly=!0,new Promise((function(s,l){r&amp;&amp;r._snapshotInProgress&amp;&amp;l(new Error(&quot;Snapshotting already in progress.&quot;)),n.isIE()&amp;&amp;&quot;svg&quot;!==e.format&amp;&amp;l(new Error(o.MSG_IE_BAD_FORMAT)),r&amp;&amp;(r._snapshotInProgress=!0);var c=i(t,e),u=e.filename||t.fn||&quot;newplot&quot;;u+=&quot;.&quot;+e.format.replace(&quot;-&quot;,&quot;.&quot;),c.then((function(t){return r&amp;&amp;(r._snapshotInProgress=!1),a(t,u,e.format)})).then((function(t){s(t)})).catch((function(t){r&amp;&amp;(r._snapshotInProgress=!1),l(t)}))}))}},{&quot;../lib&quot;:778,&quot;../plot_api/to_image&quot;:820,&quot;./filesaver&quot;:914,&quot;./helpers&quot;:915}],914:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;./helpers&quot;);e.exports=function(t,e,r){var a=document.createElement(&quot;a&quot;),o=&quot;download&quot;in a;return new Promise((function(s,l){var c,u;if(n.isIE9orBelow()&amp;&amp;l(new Error(&quot;IE &lt; 10 unsupported&quot;)),n.isSafari()){var f=&quot;svg&quot;===r?&quot;,&quot;:&quot;;base64,&quot;;return i.octetStream(f+encodeURIComponent(t)),s(e)}return n.isIE()?(c=i.createBlob(t,&quot;svg&quot;),window.navigator.msSaveBlob(c,e),c=null,s(e)):o?(c=i.createBlob(t,r),u=i.createObjectURL(c),a.href=u,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),i.revokeObjectURL(u),c=null,s(e)):void l(new Error(&quot;download error&quot;))}))}},{&quot;../lib&quot;:778,&quot;./helpers&quot;:915}],915:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);r.getDelay=function(t){return t._has&amp;&amp;(t._has(&quot;gl3d&quot;)||t._has(&quot;gl2d&quot;)||t._has(&quot;mapbox&quot;))?500:0},r.getRedrawFunc=function(t){return function(){var e=t._fullLayout||{};!(e._has&amp;&amp;e._has(&quot;polar&quot;))&amp;&amp;t.data&amp;&amp;t.data[0]&amp;&amp;t.data[0].r||n.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t)}},r.encodeSVG=function(t){return&quot;data:image/svg+xml,&quot;+encodeURIComponent(t)},r.encodeJSON=function(t){return&quot;data:application/json,&quot;+encodeURIComponent(t)};var i=window.URL||window.webkitURL;r.createObjectURL=function(t){return i.createObjectURL(t)},r.revokeObjectURL=function(t){return i.revokeObjectURL(t)},r.createBlob=function(t,e){if(&quot;svg&quot;===e)return new window.Blob([t],{type:&quot;image/svg+xml;charset=utf-8&quot;});if(&quot;full-json&quot;===e)return new window.Blob([t],{type:&quot;application/json;charset=utf-8&quot;});var r=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r),i=0;i&lt;e;i++)n[i]=t.charCodeAt(i);return r}(window.atob(t));return new window.Blob([r],{type:&quot;image/&quot;+e})},r.octetStream=function(t){document.location.href=&quot;data:application/octet-stream&quot;+t},r.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/,r.MSG_IE_BAD_FORMAT=&quot;Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.&quot;},{&quot;../registry&quot;:911}],916:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./helpers&quot;),i={getDelay:n.getDelay,getRedrawFunc:n.getRedrawFunc,clone:t(&quot;./cloneplot&quot;),toSVG:t(&quot;./tosvg&quot;),svgToImg:t(&quot;./svgtoimg&quot;),toImage:t(&quot;./toimage&quot;),downloadImage:t(&quot;./download&quot;)};e.exports=i},{&quot;./cloneplot&quot;:912,&quot;./download&quot;:913,&quot;./helpers&quot;:915,&quot;./svgtoimg&quot;:917,&quot;./toimage&quot;:918,&quot;./tosvg&quot;:919}],917:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;events&quot;).EventEmitter,a=t(&quot;./helpers&quot;);e.exports=function(t){var e=t.emitter||new i,r=new Promise((function(i,o){var s=window.Image,l=t.svg,c=t.format||&quot;png&quot;;if(n.isIE()&amp;&amp;&quot;svg&quot;!==c){var u=new Error(a.MSG_IE_BAD_FORMAT);return o(u),t.promise?r:e.emit(&quot;error&quot;,u)}var f,h,p=t.canvas,d=t.scale||1,g=t.width||300,m=t.height||150,v=d*g,y=d*m,x=p.getContext(&quot;2d&quot;),b=new s;&quot;svg&quot;===c||n.isIE9orBelow()||n.isSafari()?h=a.encodeSVG(l):(f=a.createBlob(l,&quot;svg&quot;),h=a.createObjectURL(f)),p.width=v,p.height=y,b.onload=function(){var r;switch(f=null,a.revokeObjectURL(h),&quot;svg&quot;!==c&amp;&amp;x.drawImage(b,0,0,v,y),c){case&quot;jpeg&quot;:r=p.toDataURL(&quot;image/jpeg&quot;);break;case&quot;png&quot;:r=p.toDataURL(&quot;image/png&quot;);break;case&quot;webp&quot;:r=p.toDataURL(&quot;image/webp&quot;);break;case&quot;svg&quot;:r=h;break;default:var n=&quot;Image format is not jpeg, png, svg or webp.&quot;;if(o(new Error(n)),!t.promise)return e.emit(&quot;error&quot;,n)}i(r),t.promise||e.emit(&quot;success&quot;,r)},b.onerror=function(r){if(f=null,a.revokeObjectURL(h),o(r),!t.promise)return e.emit(&quot;error&quot;,r)},b.src=h}));return t.promise?r:e}},{&quot;../lib&quot;:778,&quot;./helpers&quot;:915,events:110}],918:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;events&quot;).EventEmitter,i=t(&quot;../registry&quot;),a=t(&quot;../lib&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;./cloneplot&quot;),l=t(&quot;./tosvg&quot;),c=t(&quot;./svgtoimg&quot;);e.exports=function(t,e){var r=new n,u=s(t,{format:&quot;png&quot;}),f=u.gd;f.style.position=&quot;absolute&quot;,f.style.left=&quot;-5000px&quot;,document.body.appendChild(f);var h=o.getRedrawFunc(f);return i.call(&quot;plot&quot;,f,u.data,u.layout,u.config).then(h).then((function(){var t=o.getDelay(f._fullLayout);setTimeout((function(){var t=l(f),n=document.createElement(&quot;canvas&quot;);n.id=a.randstr(),(r=c({format:e.format,width:f._fullLayout.width,height:f._fullLayout.height,canvas:n,emitter:r,svg:t})).clean=function(){f&amp;&amp;document.body.removeChild(f)}}),t)})).catch((function(t){r.emit(&quot;error&quot;,t)})),r}},{&quot;../lib&quot;:778,&quot;../registry&quot;:911,&quot;./cloneplot&quot;:912,&quot;./helpers&quot;:915,&quot;./svgtoimg&quot;:917,&quot;./tosvg&quot;:919,events:110}],919:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../components/drawing&quot;),o=t(&quot;../components/color&quot;),s=t(&quot;../constants/xmlns_namespaces&quot;),l=/&quot;/g,c=new RegExp('(&quot;TOBESTRIPPED)|(TOBESTRIPPED&quot;)',&quot;g&quot;);e.exports=function(t,e,r){var u,f=t._fullLayout,h=f._paper,p=f._toppaper,d=f.width,g=f.height;h.insert(&quot;rect&quot;,&quot;:first-child&quot;).call(a.setRect,0,0,d,g).call(o.fill,f.paper_bgcolor);var m=f._basePlotModules||[];for(u=0;u&lt;m.length;u++){var v=m[u];v.toSVG&amp;&amp;v.toSVG(t)}if(p){var y=p.node().childNodes,x=Array.prototype.slice.call(y);for(u=0;u&lt;x.length;u++){var b=x[u];b.childNodes.length&amp;&amp;h.node().appendChild(b)}}if(f._draggers&amp;&amp;f._draggers.remove(),h.node().style.background=&quot;&quot;,h.selectAll(&quot;text&quot;).attr({&quot;data-unformatted&quot;:null,&quot;data-math&quot;:null}).each((function(){var t=n.select(this);if(&quot;hidden&quot;!==this.style.visibility&amp;&amp;&quot;none&quot;!==this.style.display){t.style({visibility:null,display:null});var e=this.style.fontFamily;e&amp;&amp;-1!==e.indexOf('&quot;')&amp;&amp;t.style(&quot;font-family&quot;,e.replace(l,&quot;TOBESTRIPPED&quot;))}else t.remove()})),f._gradientUrlQueryParts){var _=[];for(var w in f._gradientUrlQueryParts)_.push(w);_.length&amp;&amp;h.selectAll(_.join(&quot;,&quot;)).each((function(){var t=n.select(this),e=this.style.fill;e&amp;&amp;-1!==e.indexOf(&quot;url(&quot;)&amp;&amp;t.style(&quot;fill&quot;,e.replace(l,&quot;TOBESTRIPPED&quot;));var r=this.style.stroke;r&amp;&amp;-1!==r.indexOf(&quot;url(&quot;)&amp;&amp;t.style(&quot;stroke&quot;,r.replace(l,&quot;TOBESTRIPPED&quot;))}))}&quot;pdf&quot;!==e&amp;&amp;&quot;eps&quot;!==e||h.selectAll(&quot;#MathJax_SVG_glyphs path&quot;).attr(&quot;stroke-width&quot;,0),h.node().setAttributeNS(s.xmlns,&quot;xmlns&quot;,s.svg),h.node().setAttributeNS(s.xmlns,&quot;xmlns:xlink&quot;,s.xlink),&quot;svg&quot;===e&amp;&amp;r&amp;&amp;(h.attr(&quot;width&quot;,r*d),h.attr(&quot;height&quot;,r*g),h.attr(&quot;viewBox&quot;,&quot;0 0 &quot;+d+&quot; &quot;+g));var T=(new window.XMLSerializer).serializeToString(h.node());return T=function(t){var e=n.select(&quot;body&quot;).append(&quot;div&quot;).style({display:&quot;none&quot;}).html(&quot;&quot;),r=t.replace(/(&amp;[^;]*;)/gi,(function(t){return&quot;&amp;lt;&quot;===t?&quot;&amp;#60;&quot;:&quot;&amp;rt;&quot;===t?&quot;&amp;#62;&quot;:-1!==t.indexOf(&quot;&lt;&quot;)||-1!==t.indexOf(&quot;&gt;&quot;)?&quot;&quot;:e.html(t).text()}));return e.remove(),r}(T),T=(T=T.replace(/&amp;(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,&quot;&amp;amp;&quot;)).replace(c,&quot;'&quot;),i.isIE()&amp;&amp;(T=(T=(T=T.replace(/&quot;/gi,&quot;'&quot;)).replace(/(\('#)([^']*)('\))/gi,'(&quot;#$2&quot;)')).replace(/(\\')/gi,'&quot;')),T}},{&quot;../components/color&quot;:643,&quot;../components/drawing&quot;:665,&quot;../constants/xmlns_namespaces&quot;:754,&quot;../lib&quot;:778,d3:169}],920:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;);var i=e.marker;if(i){n.mergeArray(i.opacity,t,&quot;mo&quot;,!0),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;a&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;))}}},{&quot;../../lib&quot;:778}],921:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/font_attributes&quot;),l=t(&quot;./constants&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat,u=s({editType:&quot;calc&quot;,arrayOk:!0,colorEditType:&quot;style&quot;}),f=c({},n.marker.line.width,{dflt:0}),h=c({width:f,editType:&quot;calc&quot;},o(&quot;marker.line&quot;)),p=c({line:h,editType:&quot;calc&quot;},o(&quot;marker&quot;),{opacity:{valType:&quot;number&quot;,arrayOk:!0,dflt:1,min:0,max:1,editType:&quot;style&quot;}});e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,text:n.text,texttemplate:a({editType:&quot;plot&quot;},{keys:l.eventDataKeys}),hovertext:n.hovertext,hovertemplate:i({},{keys:l.eventDataKeys}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;auto&quot;,&quot;none&quot;],dflt:&quot;none&quot;,arrayOk:!0,editType:&quot;calc&quot;},insidetextanchor:{valType:&quot;enumerated&quot;,values:[&quot;end&quot;,&quot;middle&quot;,&quot;start&quot;],dflt:&quot;end&quot;,editType:&quot;plot&quot;},textangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;plot&quot;},textfont:c({},u,{}),insidetextfont:c({},u,{}),outsidetextfont:c({},u,{}),constraintext:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;both&quot;,&quot;none&quot;],dflt:&quot;both&quot;,editType:&quot;calc&quot;},cliponaxis:c({},n.cliponaxis,{}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc+clearAxisTypes&quot;},base:{valType:&quot;any&quot;,dflt:null,arrayOk:!0,editType:&quot;calc&quot;},offset:{valType:&quot;number&quot;,dflt:null,arrayOk:!0,editType:&quot;calc&quot;},width:{valType:&quot;number&quot;,dflt:null,min:0,arrayOk:!0,editType:&quot;calc&quot;},marker:p,offsetgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},alignmentgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},selected:{marker:{opacity:n.selected.marker.opacity,color:n.selected.marker.color,editType:&quot;style&quot;},textfont:n.selected.textfont,editType:&quot;style&quot;},unselected:{marker:{opacity:n.unselected.marker.opacity,color:n.unselected.marker.color,editType:&quot;style&quot;},textfont:n.unselected.textfont,editType:&quot;style&quot;},r:n.r,t:n.t,_deprecated:{bardir:{valType:&quot;enumerated&quot;,editType:&quot;calc&quot;,values:[&quot;v&quot;,&quot;h&quot;]}}}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:923}],922:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,o=t(&quot;../../components/colorscale/calc&quot;),s=t(&quot;./arrays_to_calcdata&quot;),l=t(&quot;../scatter/calc_selection&quot;);e.exports=function(t,e){var r,c,u,f,h=n.getFromId(t,e.xaxis||&quot;x&quot;),p=n.getFromId(t,e.yaxis||&quot;y&quot;),d={msUTC:!(!e.base&amp;&amp;0!==e.base)};&quot;h&quot;===e.orientation?(r=h.makeCalcdata(e,&quot;x&quot;,d),u=p.makeCalcdata(e,&quot;y&quot;),c=i(e,p,&quot;y&quot;,u),f=!!e.yperiodalignment):(r=p.makeCalcdata(e,&quot;y&quot;,d),u=h.makeCalcdata(e,&quot;x&quot;),c=i(e,h,&quot;x&quot;,u),f=!!e.xperiodalignment);for(var g=Math.min(c.length,r.length),m=new Array(g),v=0;v&lt;g;v++)m[v]={p:c[v],s:r[v]},f&amp;&amp;(m[v].orig_p=u[v]),e.ids&amp;&amp;(m[v].id=String(e.ids[v]));return a(e,&quot;marker&quot;)&amp;&amp;o(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),a(e,&quot;marker.line&quot;)&amp;&amp;o(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}),s(m,e),l(m,e),m}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc_selection&quot;:1189,&quot;./arrays_to_calcdata&quot;:920}],923:[function(t,e,r){&quot;use strict&quot;;e.exports={TEXTPAD:3,eventDataKeys:[&quot;value&quot;,&quot;label&quot;]}},{}],924:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray,a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../registry&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,c=t(&quot;./sieve.js&quot;);function u(t,e,r,o,u){if(o.length){var b,_,w,T;switch(function(t,e){var r,a;for(r=0;r&lt;e.length;r++){var o,s=e[r],l=s[0].trace,c=&quot;funnel&quot;===l.type?l._base:l.base,u=&quot;h&quot;===l.orientation?l.xcalendar:l.ycalendar,f=&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?function(){return null}:t.d2c;if(i(c)){for(a=0;a&lt;Math.min(c.length,s.length);a++)o=f(c[a],0,u),n(o)?(s[a].b=+o,s[a].hasB=1):s[a].b=0;for(;a&lt;s.length;a++)s[a].b=0}else{o=f(c,0,u);var h=n(o);for(o=h?o:0,a=0;a&lt;s.length;a++)s[a].b=o,h&amp;&amp;(s[a].hasB=1)}}}(r,o),u.mode){case&quot;overlay&quot;:f(e,r,o,u);break;case&quot;group&quot;:for(b=[],_=[],w=0;w&lt;o.length;w++)void 0===(T=o[w])[0].trace.offset?_.push(T):b.push(T);_.length&amp;&amp;function(t,e,r,n,i){var o=new c(n,{sepNegVal:!1,overlapNoMerge:!i.norm});(function(t,e,r,n){for(var i=t._fullLayout,a=r.positions,o=r.distinctPositions,s=r.minDiff,c=r.traces,u=c.length,f=a.length!==o.length,h=s*(1-n.gap),m=l(i,e._id)+c[0][0].trace.orientation,v=i._alignmentOpts[m]||{},y=0;y&lt;u;y++){var x,b,_=c[y],w=_[0].trace,T=v[w.alignmentgroup]||{},k=Object.keys(T.offsetGroups||{}).length,M=(x=k?h/k:f?h/u:h)*(1-(n.groupgap||0));b=k?((2*w._offsetIndex+1-k)*x-M)/2:f?((2*y+1-u)*x-M)/2:-M/2;var A=_[0].t;A.barwidth=M,A.poffset=b,A.bargroupwidth=h,A.bardelta=s}r.binWidth=c[0][0].t.barwidth/100,p(r),d(e,r),g(e,r,f)})(t,e,o,i),function(t){for(var e=t.traces,r=0;r&lt;e.length;r++){var n=e[r];if(void 0===n[0].trace.base)for(var i=new c([n],{sepNegVal:!0,overlapNoMerge:!0}),o=0;o&lt;n.length;o++){var s=n[o];if(s.p!==a){var l=i.put(s.p,s.b+s.s);l&amp;&amp;(s.b=l)}}}}(o),i.norm?(v(o),y(r,o,i)):m(r,o)}(t,e,r,_,u),b.length&amp;&amp;f(e,r,b,u);break;case&quot;stack&quot;:case&quot;relative&quot;:for(b=[],_=[],w=0;w&lt;o.length;w++)void 0===(T=o[w])[0].trace.base?_.push(T):b.push(T);_.length&amp;&amp;function(t,e,r,n,i){var o=new c(n,{sepNegVal:&quot;relative&quot;===i.mode,overlapNoMerge:!(i.norm||&quot;stack&quot;===i.mode||&quot;relative&quot;===i.mode)});h(e,o,i),function(t,e,r){var n,i,o,l,c,u,f=x(t),h=e.traces;for(l=0;l&lt;h.length;l++)if(n=h[l],&quot;funnel&quot;===(i=n[0].trace).type)for(c=0;c&lt;n.length;c++)(u=n[c]).s!==a&amp;&amp;e.put(u.p,-.5*u.s);for(l=0;l&lt;h.length;l++){n=h[l],i=n[0].trace,o=&quot;funnel&quot;===i.type;var p=[];for(c=0;c&lt;n.length;c++)if((u=n[c]).s!==a){var d;d=o?u.s:u.s+u.b;var g=e.put(u.p,d),m=g+d;u.b=g,u[f]=m,r.norm||(p.push(m),u.hasB&amp;&amp;p.push(g))}r.norm||(i._extremes[t._id]=s.findExtremes(t,p,{tozero:!0,padded:!0}))}}(r,o,i);for(var l=0;l&lt;n.length;l++)for(var u=n[l],f=0;f&lt;u.length;f++){var p=u[f];if(p.s!==a)p.b+p.s===o.get(p.p,p.s)&amp;&amp;(p._outmost=!0)}i.norm&amp;&amp;y(r,o,i)}(0,e,r,_,u),b.length&amp;&amp;f(e,r,b,u)}!function(t,e){var r,i,a,o=x(e),s={},l=1/0,c=-1/0;for(r=0;r&lt;t.length;r++)for(a=t[r],i=0;i&lt;a.length;i++){var u=a[i].p;n(u)&amp;&amp;(l=Math.min(l,u),c=Math.max(c,u))}var f=1e4/(c-l),h=s.round=function(t){return String(Math.round(f*(t-l)))};for(r=0;r&lt;t.length;r++){(a=t[r])[0].t.extents=s;var p=a[0].t.poffset,d=Array.isArray(p);for(i=0;i&lt;a.length;i++){var g=a[i],m=g[o]-g.w/2;if(n(m)){var v=g[o]+g.w/2,y=h(g.p);s[y]?s[y]=[Math.min(m,s[y][0]),Math.max(v,s[y][1])]:s[y]=[m,v]}g.p0=g.p+(d?p[i]:p),g.p1=g.p0+g.w,g.s0=g.b,g.s1=g.s0+g.s}}}(o,e)}}function f(t,e,r,n){for(var i=0;i&lt;r.length;i++){var a=r[i],o=new c([a],{unitMinDiff:n.xCat||n.yCat,sepNegVal:!1,overlapNoMerge:!n.norm});h(t,o,n),n.norm?(v(o),y(e,o,n)):m(e,o)}}function h(t,e,r){for(var n=e.minDiff,i=e.traces,a=n*(1-r.gap),o=a*(1-(r.groupgap||0)),s=-o/2,l=0;l&lt;i.length;l++){var c=i[l][0].t;c.barwidth=o,c.poffset=s,c.bargroupwidth=a,c.bardelta=n}e.binWidth=i[0][0].t.barwidth/100,p(e),d(t,e),g(t,e)}function p(t){var e,r,a=t.traces;for(e=0;e&lt;a.length;e++){var o,s=a[e],l=s[0],c=l.trace,u=l.t,f=c._offset||c.offset,h=u.poffset;if(i(f)){for(o=Array.prototype.slice.call(f,0,s.length),r=0;r&lt;o.length;r++)n(o[r])||(o[r]=h);for(r=o.length;r&lt;s.length;r++)o.push(h);u.poffset=o}else void 0!==f&amp;&amp;(u.poffset=f);var p=c._width||c.width,d=u.barwidth;if(i(p)){var g=Array.prototype.slice.call(p,0,s.length);for(r=0;r&lt;g.length;r++)n(g[r])||(g[r]=d);for(r=g.length;r&lt;s.length;r++)g.push(d);if(u.barwidth=g,void 0===f){for(o=[],r=0;r&lt;s.length;r++)o.push(h+(d-g[r])/2);u.poffset=o}}else void 0!==p&amp;&amp;(u.barwidth=p,void 0===f&amp;&amp;(u.poffset=h+(d-p)/2))}}function d(t,e){for(var r=e.traces,n=x(t),i=0;i&lt;r.length;i++)for(var a=r[i],o=a[0].t,s=o.poffset,l=Array.isArray(s),c=o.barwidth,u=Array.isArray(c),f=0;f&lt;a.length;f++){var h=a[f],p=h.w=u?c[f]:c;h[n]=h.p+(l?s[f]:s)+p/2}}function g(t,e,r){var n=e.traces,i=e.minDiff/2;s.minDtick(t,e.minDiff,e.distinctPositions[0],r);for(var a=0;a&lt;n.length;a++){var o,l,c,u,f=n[a],h=f[0],p=h.trace,d=[];for(u=0;u&lt;f.length;u++)l=(o=f[u]).p-i,c=o.p+i,d.push(l,c);if(p.width||p.offset){var g=h.t,m=g.poffset,v=g.barwidth,y=Array.isArray(m),x=Array.isArray(v);for(u=0;u&lt;f.length;u++){o=f[u];var b=y?m[u]:m,_=x?v[u]:v;c=(l=o.p+b)+_,d.push(l,c)}}p._extremes[t._id]=s.findExtremes(t,d,{padded:!1})}}function m(t,e){for(var r=e.traces,n=x(t),i=0;i&lt;r.length;i++){for(var a=r[i],o=a[0].trace,l=[],c=!1,u=0;u&lt;a.length;u++){var f=a[u],h=f.b,p=h+f.s;f[n]=p,l.push(p),f.hasB&amp;&amp;l.push(h),f.hasB&amp;&amp;f.b||(c=!0)}o._extremes[t._id]=s.findExtremes(t,l,{tozero:c,padded:!0})}}function v(t){for(var e=t.traces,r=0;r&lt;e.length;r++)for(var n=e[r],i=0;i&lt;n.length;i++){var o=n[i];o.s!==a&amp;&amp;t.put(o.p,o.b+o.s)}}function y(t,e,r){var i=e.traces,o=x(t),l=&quot;fraction&quot;===r.norm?1:100,c=l/1e9,u=t.l2c(t.c2l(0)),f=&quot;stack&quot;===r.mode?l:u;function h(e){return n(t.c2l(e))&amp;&amp;(e&lt;u-c||e&gt;f+c||!n(u))}for(var p=0;p&lt;i.length;p++){for(var d=i[p],g=d[0].trace,m=[],v=!1,y=!1,b=0;b&lt;d.length;b++){var _=d[b];if(_.s!==a){var w=Math.abs(l/e.get(_.p,_.s));_.b*=w,_.s*=w;var T=_.b,k=T+_.s;_[o]=k,m.push(k),y=y||h(k),_.hasB&amp;&amp;(m.push(T),y=y||h(T)),_.hasB&amp;&amp;_.b||(v=!0)}}g._extremes[t._id]=s.findExtremes(t,m,{tozero:v,padded:y})}}function x(t){return t._id.charAt(0)}e.exports={crossTraceCalc:function(t,e){for(var r=e.xaxis,n=e.yaxis,i=t._fullLayout,a=t._fullData,s=t.calcdata,l=[],c=[],f=0;f&lt;a.length;f++){var h=a[f];if(!0===h.visible&amp;&amp;o.traceIs(h,&quot;bar&quot;)&amp;&amp;h.xaxis===r._id&amp;&amp;h.yaxis===n._id&amp;&amp;(&quot;h&quot;===h.orientation?l.push(s[f]):c.push(s[f]),h._computePh))for(var p=t.calcdata[f],d=0;d&lt;p.length;d++)&quot;function&quot;==typeof p[d].ph0&amp;&amp;(p[d].ph0=p[d].ph0()),&quot;function&quot;==typeof p[d].ph1&amp;&amp;(p[d].ph1=p[d].ph1())}var g={xCat:&quot;category&quot;===r.type||&quot;multicategory&quot;===r.type,yCat:&quot;category&quot;===n.type||&quot;multicategory&quot;===n.type,mode:i.barmode,norm:i.barnorm,gap:i.bargap,groupgap:i.bargroupgap};u(t,r,n,c,g),u(t,n,r,l,g)},setGroupPositions:u}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/constraints&quot;:835,&quot;../../registry&quot;:911,&quot;./sieve.js&quot;:934,&quot;fast-isnumeric&quot;:241}],925:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./style_defaults&quot;),c=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,u=t(&quot;./attributes&quot;),f=n.coerceFont;function h(t,e,r,n){var i=e.orientation,a=e[{v:&quot;x&quot;,h:&quot;y&quot;}[i]+&quot;axis&quot;],o=c(r,a)+i,s=r._alignmentOpts||{},l=n(&quot;alignmentgroup&quot;),u=s[o];u||(u=s[o]={});var f=u[l];f?f.traces.push(e):f=u[l]={traces:[e],alignmentIndex:Object.keys(u).length,offsetGroups:{}};var h=n(&quot;offsetgroup&quot;),p=f.offsetGroups,d=p[h];h&amp;&amp;(d||(d=p[h]={offsetIndex:Object.keys(p).length}),e._offsetIndex=d.offsetIndex)}function p(t,e,r,i,a,o){var s=!(!1===(o=o||{}).moduleHasSelected),l=!(!1===o.moduleHasUnselected),c=!(!1===o.moduleHasConstrain),u=!(!1===o.moduleHasCliponaxis),h=!(!1===o.moduleHasTextangle),p=!(!1===o.moduleHasInsideanchor),d=!!o.hasPathbar,g=Array.isArray(a)||&quot;auto&quot;===a,m=g||&quot;inside&quot;===a,v=g||&quot;outside&quot;===a;if(m||v){var y=f(i,&quot;textfont&quot;,r.font),x=n.extendFlat({},y),b=!(t.textfont&amp;&amp;t.textfont.color);if(b&amp;&amp;delete x.color,f(i,&quot;insidetextfont&quot;,x),d){var _=n.extendFlat({},y);b&amp;&amp;delete _.color,f(i,&quot;pathbar.textfont&quot;,_)}v&amp;&amp;f(i,&quot;outsidetextfont&quot;,y),s&amp;&amp;i(&quot;selected.textfont.color&quot;),l&amp;&amp;i(&quot;unselected.textfont.color&quot;),c&amp;&amp;i(&quot;constraintext&quot;),u&amp;&amp;i(&quot;cliponaxis&quot;),h&amp;&amp;i(&quot;textangle&quot;),i(&quot;texttemplate&quot;)}m&amp;&amp;p&amp;&amp;i(&quot;insidetextanchor&quot;)}e.exports={supplyDefaults:function(t,e,r,c){function f(r,i){return n.coerce(t,e,u,r,i)}if(o(t,e,c,f)){s(t,e,c,f),f(&quot;orientation&quot;,e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;),f(&quot;base&quot;),f(&quot;offset&quot;),f(&quot;width&quot;),f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;);var h=f(&quot;textposition&quot;);p(t,e,c,f,h,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),l(t,e,f,r,c);var d=(e.marker.line||{}).color,g=a.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);g(t,e,d||i.defaultLine,{axis:&quot;y&quot;}),g(t,e,d||i.defaultLine,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1},crossTraceDefaults:function(t,e){var r;function i(t){return n.coerce(r._input,r,u,t)}if(&quot;group&quot;===e.barmode)for(var a=0;a&lt;t.length;a++)&quot;bar&quot;===(r=t[a]).type&amp;&amp;(r._input,h(0,r,e,i))},handleGroupingDefaults:h,handleText:p}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/constraints&quot;:835,&quot;../../registry&quot;:911,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:921,&quot;./style_defaults&quot;:936}],926:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),&quot;h&quot;===r.orientation?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}},{}],927:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../lib&quot;).isArrayOrTypedArray;r.coerceString=function(t,e,r){if(&quot;string&quot;==typeof e){if(e||!t.noBlank)return e}else if((&quot;number&quot;==typeof e||!0===e)&amp;&amp;!t.strict)return String(e);return void 0!==r?r:t.dflt},r.coerceNumber=function(t,e,r){if(n(e)){e=+e;var i=t.min,a=t.max;if(!(void 0!==i&amp;&amp;e&lt;i||void 0!==a&amp;&amp;e&gt;a))return e}return void 0!==r?r:t.dflt},r.coerceColor=function(t,e,r){return i(e).isValid()?e:void 0!==r?r:t.dflt},r.coerceEnumerated=function(t,e,r){return t.coerceNumber&amp;&amp;(e=+e),-1!==t.values.indexOf(e)?e:void 0!==r?r:t.dflt},r.getValue=function(t,e){var r;return Array.isArray(t)?e&lt;t.length&amp;&amp;(r=t[e]):r=t,r},r.getLineWidth=function(t,e){return 0&lt;e.mlw?e.mlw:a(t.marker.line.width)?0:t.marker.line.width}},{&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],928:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../lib&quot;).fillText,s=t(&quot;./helpers&quot;).getLineWidth,l=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText,c=t(&quot;../../constants/numerical&quot;).BADNUM;function u(t,e,r,i){var a,s,u,f,h,p,d,g=t.cd,m=g[0].trace,v=g[0].t,y=&quot;closest&quot;===i,x=&quot;waterfall&quot;===m.type,b=t.maxHoverDistance;function _(t){return t[u]-t.w/2}function w(t){return t[u]+t.w/2}var T=y?_:function(t){return Math.min(_(t),t.p-v.bardelta/2)},k=y?w:function(t){return Math.max(w(t),t.p+v.bardelta/2)};function M(t,e){return n.inbox(t-a,e-a,b+Math.min(1,Math.abs(e-t)/d)-1)}function A(t){return M(T(t),k(t))}function S(t){var e=s,r=t.b,i=t[f];if(x){var a=Math.abs(t.rawS)||0;e&gt;0?i+=a:e&lt;0&amp;&amp;(i-=a)}return n.inbox(r-e,i-e,b+(i-e)/(i-r)-1)}&quot;h&quot;===m.orientation?(a=r,s=e,u=&quot;y&quot;,f=&quot;x&quot;,h=S,p=A):(a=e,s=r,u=&quot;x&quot;,f=&quot;y&quot;,p=S,h=A);var E=t[u+&quot;a&quot;],C=t[f+&quot;a&quot;];d=Math.abs(E.r2c(E.range[1])-E.r2c(E.range[0]));var L=n.getDistanceFunction(i,h,p,(function(t){return(h(t)+p(t))/2}));if(n.getClosest(g,L,t),!1!==t.index&amp;&amp;g[t.index].p!==c){y||(T=function(t){return Math.min(_(t),t.p-v.bargroupwidth/2)},k=function(t){return Math.max(w(t),t.p+v.bargroupwidth/2)});var I=g[t.index],P=m.base?I.b+I.s:I.s;t[f+&quot;0&quot;]=t[f+&quot;1&quot;]=C.c2p(I[f],!0),t[f+&quot;LabelVal&quot;]=P;var z=v.extents[v.extents.round(I.p)];t[u+&quot;0&quot;]=E.c2p(y?T(I):z[0],!0),t[u+&quot;1&quot;]=E.c2p(y?k(I):z[1],!0);var O=void 0!==I.orig_p;return t[u+&quot;LabelVal&quot;]=O?I.orig_p:I.p,t.labelLabel=l(E,t[u+&quot;LabelVal&quot;]),t.valueLabel=l(C,t[f+&quot;LabelVal&quot;]),t.baseLabel=l(C,I.b),t.spikeDistance=(S(I)+function(t){return M(_(t),w(t))}(I))/2-b,t[u+&quot;Spike&quot;]=E.c2p(I.p,!0),o(I,m,t),t.hovertemplate=m.hovertemplate,t}}function f(t,e){var r=e.mcc||t.marker.color,n=e.mlcc||t.marker.line.color,i=s(t,e);return a.opacity(r)?r:a.opacity(n)&amp;&amp;i?n:void 0}e.exports={hoverPoints:function(t,e,r,n){var a=u(t,e,r,n);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=f(s,l),i.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(l,s,a),[a]}},hoverOnBars:u,getTraceColor:f}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./helpers&quot;:927}],929:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;).crossTraceCalc,colorbar:t(&quot;../scatter/marker_colorbar&quot;),arraysToCalcdata:t(&quot;./arrays_to_calcdata&quot;),plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;bar&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;bar&quot;,&quot;oriented&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],animatable:!0,meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./arrays_to_calcdata&quot;:920,&quot;./attributes&quot;:921,&quot;./calc&quot;:922,&quot;./cross_trace_calc&quot;:924,&quot;./defaults&quot;:925,&quot;./event_data&quot;:926,&quot;./hover&quot;:928,&quot;./layout_attributes&quot;:930,&quot;./layout_defaults&quot;:931,&quot;./plot&quot;:932,&quot;./select&quot;:933,&quot;./style&quot;:935}],930:[function(t,e,r){&quot;use strict&quot;;e.exports={barmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;group&quot;,&quot;overlay&quot;,&quot;relative&quot;],dflt:&quot;group&quot;,editType:&quot;calc&quot;},barnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;fraction&quot;,&quot;percent&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},bargap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},bargroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],931:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){function s(r,n){return a.coerce(t,e,o,r,n)}for(var l=!1,c=!1,u=!1,f={},h=s(&quot;barmode&quot;),p=0;p&lt;r.length;p++){var d=r[p];if(n.traceIs(d,&quot;bar&quot;)&amp;&amp;d.visible){if(l=!0,&quot;group&quot;===h){var g=d.xaxis+d.yaxis;f[g]&amp;&amp;(u=!0),f[g]=!0}if(d.visible&amp;&amp;&quot;histogram&quot;===d.type)&quot;category&quot;!==i.getFromId({_fullLayout:e},d[&quot;v&quot;===d.orientation?&quot;xaxis&quot;:&quot;yaxis&quot;]).type&amp;&amp;(c=!0)}}l?(&quot;overlay&quot;!==h&amp;&amp;s(&quot;barnorm&quot;),s(&quot;bargap&quot;,c&amp;&amp;!u?0:.2),s(&quot;bargroupgap&quot;)):delete e.barmode}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./layout_attributes&quot;:930}],932:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;../../components/color&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../registry&quot;),u=t(&quot;../../plots/cartesian/axes&quot;).tickText,f=t(&quot;./uniform_text&quot;),h=f.recordMinTextSize,p=f.clearMinTextSize,d=t(&quot;./style&quot;),g=t(&quot;./helpers&quot;),m=t(&quot;./constants&quot;),v=t(&quot;./attributes&quot;),y=v.text,x=v.textposition,b=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,_=m.TEXTPAD;function w(t){return t.id}function T(t){if(t.ids)return w}function k(t,e){return t&lt;e?1:-1}function M(t,e,r,n){var i;return!e.uniformtext.mode&amp;&amp;A(r)?(n&amp;&amp;(i=n()),t.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){i&amp;&amp;i()})).each(&quot;interrupt&quot;,(function(){i&amp;&amp;i()}))):t}function A(t){return t&amp;&amp;t.duration&gt;0}function S(t){return&quot;auto&quot;===t?0:t}function E(t,e){var r=Math.PI/180*e,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:t.width*i+t.height*n,y:t.width*n+t.height*i}}function C(t,e,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,c=a.anchor||&quot;end&quot;,u=&quot;end&quot;===c,f=&quot;start&quot;===c,h=((a.leftToRight||0)+1)/2,p=1-h,d=i.width,g=i.height,m=Math.abs(e-t),v=Math.abs(n-r),y=m&gt;2*_&amp;&amp;v&gt;2*_?_:0;m-=2*y,v-=2*y;var x=S(l);&quot;auto&quot;!==l||d&lt;=m&amp;&amp;g&lt;=v||!(d&gt;m||g&gt;v)||(d&gt;v||g&gt;m)&amp;&amp;d&lt;g==m&lt;v||(x+=90);var b=E(i,x),w=1;s&amp;&amp;(w=Math.min(1,m/b.x,v/b.y));var T=i.left*p+i.right*h,M=(i.top+i.bottom)/2,A=(t+_)*p+(e-_)*h,C=(r+n)/2,L=0,I=0;if(f||u){var P=(o?b.x:b.y)/2,z=o?k(t,e):k(r,n);o?f?(A=t+z*y,L=-z*P):(A=e-z*y,L=z*P):f?(C=r+z*y,I=-z*P):(C=n-z*y,I=z*P)}return{textX:T,textY:M,targetX:A,targetY:C,anchorX:L,anchorY:I,scale:w,rotate:x}}e.exports={plot:function(t,e,r,f,m,v){var w=e.xaxis,L=e.yaxis,I=t._fullLayout;m||(m={mode:I.barmode,norm:I.barmode,gap:I.bargap,groupgap:I.bargroupgap},p(&quot;bar&quot;,I));var P=a.makeTraceGroups(f,r,&quot;trace bars&quot;).each((function(r){var c=n.select(this),f=r[0].trace,p=&quot;waterfall&quot;===f.type,P=&quot;funnel&quot;===f.type,z=&quot;bar&quot;===f.type||P,O=0;p&amp;&amp;f.connector.visible&amp;&amp;&quot;between&quot;===f.connector.mode&amp;&amp;(O=f.connector.line.width/2);var D=&quot;h&quot;===f.orientation,R=A(m),F=a.ensureSingle(c,&quot;g&quot;,&quot;points&quot;),B=T(f),N=F.selectAll(&quot;g.point&quot;).data(a.identity,B);N.enter().append(&quot;g&quot;).classed(&quot;point&quot;,!0),N.exit().remove(),N.each((function(c,p){var T,A,P=n.select(this),F=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),n?[i,a]:[a,i]}(c,w,L,D),B=F[0][0],N=F[0][1],j=F[1][0],U=F[1][1],V=0==(D?N-B:U-j);if(V&amp;&amp;z&amp;&amp;g.getLineWidth(f,c)&amp;&amp;(V=!1),V||(V=!(i(B)&amp;&amp;i(N)&amp;&amp;i(j)&amp;&amp;i(U))),c.isBlank=V,V&amp;&amp;(D?N=B:U=j),O&amp;&amp;!V&amp;&amp;(D?(B-=k(B,N)*O,N+=k(B,N)*O):(j-=k(j,U)*O,U+=k(j,U)*O)),&quot;waterfall&quot;===f.type){if(!V){var q=f[c.dir].marker;T=q.line.width,A=q.color}}else T=g.getLineWidth(f,c),A=c.mc||f.marker.color;function H(t){var e=n.round(T/2%1,2);return 0===m.gap&amp;&amp;0===m.groupgap?n.round(Math.round(t)-e,2):t}if(!t._context.staticPlot){var G=s.opacity(A)&lt;1||T&gt;.01?H:function(t,e,r){return r&amp;&amp;t===e?t:Math.abs(t-e)&gt;=2?H(t):t&gt;e?Math.ceil(t):Math.floor(t)};B=G(B,N,D),N=G(N,B,D),j=G(j,U,!D),U=G(U,j,!D)}var Y=M(a.ensureSingle(P,&quot;path&quot;),I,m,v);if(Y.style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;d&quot;,isNaN((N-B)*(U-j))||V&amp;&amp;t._context.staticPlot?&quot;M0,0Z&quot;:&quot;M&quot;+B+&quot;,&quot;+j+&quot;V&quot;+U+&quot;H&quot;+N+&quot;V&quot;+j+&quot;Z&quot;).call(l.setClipUrl,e.layerClipId,t),!I.uniformtext.mode&amp;&amp;R){var W=l.makePointStyleFns(f);l.singlePointStyle(c,Y,f,W,t)}!function(t,e,r,n,i,s,c,f,p,m,v){var w,T=e.xaxis,A=e.yaxis,L=t._fullLayout;function I(e,r,n){return a.ensureSingle(e,&quot;text&quot;).text(r).attr({class:&quot;bartext bartext-&quot;+w,&quot;text-anchor&quot;:&quot;middle&quot;,&quot;data-notex&quot;:1}).call(l.font,n).call(o.convertToTspans,t)}var P=n[0].trace,z=&quot;h&quot;===P.orientation,O=function(t,e,r,n,i){var o,s=e[0].trace;o=s.texttemplate?function(t,e,r,n,i){var o=e[0].trace,s=a.castOption(o,r,&quot;texttemplate&quot;);if(!s)return&quot;&quot;;var l,c,f,h,p=&quot;waterfall&quot;===o.type,d=&quot;funnel&quot;===o.type;&quot;h&quot;===o.orientation?(l=&quot;y&quot;,c=i,f=&quot;x&quot;,h=n):(l=&quot;x&quot;,c=n,f=&quot;y&quot;,h=i);function g(t){return u(h,+t,!0).text}var m=e[r],v={};v.label=m.p,v.labelLabel=v[l+&quot;Label&quot;]=(y=m.p,u(c,y,!0).text);var y;var x=a.castOption(o,m.i,&quot;text&quot;);(0===x||x)&amp;&amp;(v.text=x);v.value=m.s,v.valueLabel=v[f+&quot;Label&quot;]=g(m.s);var _={};b(_,o,m.i),p&amp;&amp;(v.delta=+m.rawS||m.s,v.deltaLabel=g(v.delta),v.final=m.v,v.finalLabel=g(v.final),v.initial=v.final-v.delta,v.initialLabel=g(v.initial));d&amp;&amp;(v.value=m.s,v.valueLabel=g(v.value),v.percentInitial=m.begR,v.percentInitialLabel=a.formatPercent(m.begR),v.percentPrevious=m.difR,v.percentPreviousLabel=a.formatPercent(m.difR),v.percentTotal=m.sumR,v.percenTotalLabel=a.formatPercent(m.sumR));var w=a.castOption(o,m.i,&quot;customdata&quot;);w&amp;&amp;(v.customdata=w);return a.texttemplateString(s,v,t._d3locale,_,v,o._meta||{})}(t,e,r,n,i):s.textinfo?function(t,e,r,n){var i=t[0].trace,o=&quot;h&quot;===i.orientation,s=&quot;waterfall&quot;===i.type,l=&quot;funnel&quot;===i.type;function c(t){return u(o?r:n,+t,!0).text}var f,h=i.textinfo,p=t[e],d=h.split(&quot;+&quot;),g=[],m=function(t){return-1!==d.indexOf(t)};m(&quot;label&quot;)&amp;&amp;g.push((v=t[e].p,u(o?n:r,v,!0).text));var v;m(&quot;text&quot;)&amp;&amp;(0===(f=a.castOption(i,p.i,&quot;text&quot;))||f)&amp;&amp;g.push(f);if(s){var y=+p.rawS||p.s,x=p.v,b=x-y;m(&quot;initial&quot;)&amp;&amp;g.push(c(b)),m(&quot;delta&quot;)&amp;&amp;g.push(c(y)),m(&quot;final&quot;)&amp;&amp;g.push(c(x))}if(l){m(&quot;value&quot;)&amp;&amp;g.push(c(p.s));var _=0;m(&quot;percent initial&quot;)&amp;&amp;_++,m(&quot;percent previous&quot;)&amp;&amp;_++,m(&quot;percent total&quot;)&amp;&amp;_++;var w=_&gt;1;m(&quot;percent initial&quot;)&amp;&amp;(f=a.formatPercent(p.begR),w&amp;&amp;(f+=&quot; of initial&quot;),g.push(f)),m(&quot;percent previous&quot;)&amp;&amp;(f=a.formatPercent(p.difR),w&amp;&amp;(f+=&quot; of previous&quot;),g.push(f)),m(&quot;percent total&quot;)&amp;&amp;(f=a.formatPercent(p.sumR),w&amp;&amp;(f+=&quot; of total&quot;),g.push(f))}return g.join(&quot;&lt;br&gt;&quot;)}(e,r,n,i):g.getValue(s.text,r);return g.coerceString(y,o)}(L,n,i,T,A);w=function(t,e){var r=g.getValue(t.textposition,e);return g.coerceEnumerated(x,r)}(P,i);var D=&quot;stack&quot;===m.mode||&quot;relative&quot;===m.mode,R=n[i],F=!D||R._outmost;if(!O||&quot;none&quot;===w||(R.isBlank||s===c||f===p)&amp;&amp;(&quot;auto&quot;===w||&quot;inside&quot;===w))return void r.select(&quot;text&quot;).remove();var B=L.font,N=d.getBarColor(n[i],P),j=d.getInsideTextFont(P,i,B,N),U=d.getOutsideTextFont(P,i,B),V=r.datum();z?&quot;log&quot;===T.type&amp;&amp;V.s0&lt;=0&amp;&amp;(s=T.range[0]&lt;T.range[1]?0:T._length):&quot;log&quot;===A.type&amp;&amp;V.s0&lt;=0&amp;&amp;(f=A.range[0]&lt;A.range[1]?A._length:0);var q,H,G,Y,W,X=Math.abs(c-s)-2*_,Z=Math.abs(p-f)-2*_;&quot;outside&quot;===w&amp;&amp;(F||R.hasB||(w=&quot;inside&quot;));if(&quot;auto&quot;===w)if(F){w=&quot;inside&quot;,W=a.ensureUniformFontSize(t,j),q=I(r,O,W),H=l.bBox(q.node()),G=H.width,Y=H.height;var J=G&lt;=X&amp;&amp;Y&lt;=Z,K=G&lt;=Z&amp;&amp;Y&lt;=X,Q=z?X&gt;=G*(Z/Y):Z&gt;=Y*(X/G);G&gt;0&amp;&amp;Y&gt;0&amp;&amp;(J||K||Q)?w=&quot;inside&quot;:(w=&quot;outside&quot;,q.remove(),q=null)}else w=&quot;inside&quot;;if(!q){W=a.ensureUniformFontSize(t,&quot;outside&quot;===w?U:j);var $=(q=I(r,O,W)).attr(&quot;transform&quot;);if(q.attr(&quot;transform&quot;,&quot;&quot;),H=l.bBox(q.node()),G=H.width,Y=H.height,q.attr(&quot;transform&quot;,$),G&lt;=0||Y&lt;=0)return void q.remove()}var tt,et,rt=P.textangle;&quot;outside&quot;===w?(et=&quot;both&quot;===P.constraintext||&quot;outside&quot;===P.constraintext,tt=function(t,e,r,n,i,a){var o,s=!!a.isHorizontal,l=!!a.constrained,c=a.angle||0,u=i.width,f=i.height,h=Math.abs(e-t),p=Math.abs(n-r);o=s?p&gt;2*_?_:0:h&gt;2*_?_:0;var d=1;l&amp;&amp;(d=s?Math.min(1,p/f):Math.min(1,h/u));var g=S(c),m=E(i,g),v=(s?m.x:m.y)/2,y=(i.left+i.right)/2,x=(i.top+i.bottom)/2,b=(t+e)/2,w=(r+n)/2,T=0,M=0,A=s?k(e,t):k(r,n);s?(b=e-A*o,T=A*v):(w=n+A*o,M=-A*v);return{textX:y,textY:x,targetX:b,targetY:w,anchorX:T,anchorY:M,scale:d,rotate:g}}(s,c,f,p,H,{isHorizontal:z,constrained:et,angle:rt})):(et=&quot;both&quot;===P.constraintext||&quot;inside&quot;===P.constraintext,tt=C(s,c,f,p,H,{isHorizontal:z,constrained:et,angle:rt,anchor:P.insidetextanchor}));tt.fontSize=W.size,h(P.type,tt,L),R.transform=tt,M(q,L,m,v).attr(&quot;transform&quot;,a.getTextTransform(tt))}(t,e,P,r,p,B,N,j,U,m,v),e.layerClipId&amp;&amp;l.hideOutsideRangePoint(c,P.select(&quot;text&quot;),w,L,f.xcalendar,f.ycalendar)}));var j=!1===f.cliponaxis;l.setClipUrl(c,j?null:e.layerClipId,t)}));c.getComponentMethod(&quot;errorbars&quot;,&quot;plot&quot;)(t,P,e,m)},toMoveInsideBar:C}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../components/fx/helpers&quot;:679,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./attributes&quot;:921,&quot;./constants&quot;:923,&quot;./helpers&quot;:927,&quot;./style&quot;:935,&quot;./uniform_text&quot;:937,d3:169,&quot;fast-isnumeric&quot;:241}],933:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i){var a=e.c2p(n?t.s0:t.p0,!0),o=e.c2p(n?t.s1:t.p1,!0),s=r.c2p(n?t.p0:t.s0,!0),l=r.c2p(n?t.p1:t.s1,!0);return i?[(a+o)/2,(s+l)/2]:n?[o,(s+l)/2]:[(a+o)/2,l]}e.exports=function(t,e){var r,i=t.cd,a=t.xaxis,o=t.yaxis,s=i[0].trace,l=&quot;funnel&quot;===s.type,c=&quot;h&quot;===s.orientation,u=[];if(!1===e)for(r=0;r&lt;i.length;r++)i[r].selected=0;else for(r=0;r&lt;i.length;r++){var f=i[r],h=&quot;ct&quot;in f?f.ct:n(f,a,o,c,l);e.contains(h,!1,r,t)?(u.push({pointNumber:r,x:a.c2d(f.x),y:o.c2d(f.y)}),f.selected=1):f.selected=0}return u}},{}],934:[function(t,e,r){&quot;use strict&quot;;e.exports=a;var n=t(&quot;../../lib&quot;).distinctVals,i=t(&quot;../../constants/numerical&quot;).BADNUM;function a(t,e){this.traces=t,this.sepNegVal=e.sepNegVal,this.overlapNoMerge=e.overlapNoMerge;for(var r=1/0,a=[],o=0;o&lt;t.length;o++){for(var s=t[o],l=0;l&lt;s.length;l++){var c=s[l];c.p!==i&amp;&amp;a.push(c.p)}s[0]&amp;&amp;s[0].width1&amp;&amp;(r=Math.min(s[0].width1,r))}this.positions=a;var u=n(a,{unitMinDiff:e.unitMinDiff});this.distinctPositions=u.vals,1===u.vals.length&amp;&amp;r!==1/0?this.minDiff=r:this.minDiff=Math.min(u.minDiff,r),this.binWidth=this.minDiff,this.bins={}}a.prototype.put=function(t,e){var r=this.getLabel(t,e),n=this.bins[r]||0;return this.bins[r]=n+e,n},a.prototype.get=function(t,e){var r=this.getLabel(t,e);return this.bins[r]||0},a.prototype.getLabel=function(t,e){return(e&lt;0&amp;&amp;this.sepNegVal?&quot;v&quot;:&quot;^&quot;)+(this.overlapNoMerge?t:Math.round(t/this.binWidth))}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778}],935:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../registry&quot;),l=t(&quot;./uniform_text&quot;).resizeText,c=t(&quot;./attributes&quot;),u=c.textfont,f=c.insidetextfont,h=c.outsidetextfont,p=t(&quot;./helpers&quot;);function d(t,e,r){a.pointStyle(t.selectAll(&quot;path&quot;),e,r),g(t,e,r)}function g(t,e,r){t.selectAll(&quot;text&quot;).each((function(t){var i=n.select(this),s=o.ensureUniformFontSize(r,m(i,t,e,r));a.font(i,s)}))}function m(t,e,r,n){var i=n._fullLayout.font,a=r.textfont;if(t.classed(&quot;bartext-inside&quot;)){var o=_(e,r);a=y(r,e.i,i,o)}else t.classed(&quot;bartext-outside&quot;)&amp;&amp;(a=x(r,e.i,i));return a}function v(t,e,r){return b(u,t.textfont,e,r)}function y(t,e,r,n){var a=v(t,e,r);return(void 0===t._input.textfont||void 0===t._input.textfont.color||Array.isArray(t.textfont.color)&amp;&amp;void 0===t.textfont.color[e])&amp;&amp;(a={color:i.contrast(n),family:a.family,size:a.size}),b(f,t.insidetextfont,e,a)}function x(t,e,r){var n=v(t,e,r);return b(h,t.outsidetextfont,e,n)}function b(t,e,r,n){e=e||{};var i=p.getValue(e.family,r),a=p.getValue(e.size,r),o=p.getValue(e.color,r);return{family:p.coerceString(t.family,i,n.family),size:p.coerceNumber(t.size,a,n.size),color:p.coerceColor(t.color,o,n.color)}}function _(t,e){return&quot;waterfall&quot;===e.type?e[t.dir].marker.color:t.mc||e.marker.color}e.exports={style:function(t){var e=n.select(t).selectAll(&quot;g.barlayer&quot;).selectAll(&quot;g.trace&quot;);l(t,e,&quot;bar&quot;);var r=e.size(),i=t._fullLayout;e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})).each((function(t){(&quot;stack&quot;===i.barmode&amp;&amp;r&gt;1||0===i.bargap&amp;&amp;0===i.bargroupgap&amp;&amp;!t[0].trace.marker.line.width)&amp;&amp;n.select(this).attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)})),e.selectAll(&quot;g.points&quot;).each((function(e){d(n.select(this),e[0].trace,t)})),s.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(e)},styleTextPoints:g,styleOnSelect:function(t,e,r){var i=e[0].trace;i.selectedpoints?function(t,e,r){a.selectedPointStyle(t.selectAll(&quot;path&quot;),e),function(t,e,r){t.each((function(t){var i,s=n.select(this);if(t.selected){i=o.ensureUniformFontSize(r,m(s,t,e,r));var l=e.selected.textfont&amp;&amp;e.selected.textfont.color;l&amp;&amp;(i.color=l),a.font(s,i)}else a.selectedTextStyle(s,e)}))}(t.selectAll(&quot;text&quot;),e,r)}(r,i,t):(d(r,i,t),s.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(r))},getInsideTextFont:y,getOutsideTextFont:x,getBarColor:_,resizeText:l}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:921,&quot;./helpers&quot;:927,&quot;./uniform_text&quot;:937,d3:169}],936:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;);e.exports=function(t,e,r,o,s){r(&quot;marker.color&quot;,o),i(t,&quot;marker&quot;)&amp;&amp;a(t,e,s,r,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),r(&quot;marker.line.color&quot;,n.defaultLine),i(t,&quot;marker.line&quot;)&amp;&amp;a(t,e,s,r,{prefix:&quot;marker.line.&quot;,cLetter:&quot;c&quot;}),r(&quot;marker.line.width&quot;),r(&quot;marker.opacity&quot;),r(&quot;selected.marker.color&quot;),r(&quot;unselected.marker.color&quot;)}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654}],937:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;);function a(t){return&quot;_&quot;+t+&quot;Text_minsize&quot;}e.exports={recordMinTextSize:function(t,e,r){if(r.uniformtext.mode){var n=a(t),i=r.uniformtext.minsize,o=e.scale*e.fontSize;e.hide=o&lt;i,r[n]=r[n]||1/0,e.hide||(r[n]=Math.min(r[n],Math.max(o,i)))}},clearMinTextSize:function(t,e){e[a(t)]=void 0},resizeText:function(t,e,r){var a=t._fullLayout,o=a[&quot;_&quot;+r+&quot;Text_minsize&quot;];if(o){var s,l=&quot;hide&quot;===a.uniformtext.mode;switch(r){case&quot;funnelarea&quot;:case&quot;pie&quot;:case&quot;sunburst&quot;:s=&quot;g.slice&quot;;break;case&quot;treemap&quot;:s=&quot;g.slice, g.pathbar&quot;;break;default:s=&quot;g.points &gt; g.point&quot;}e.selectAll(s).each((function(t){var e=t.transform;e&amp;&amp;(e.scale=l&amp;&amp;e.hide?0:o/e.fontSize,n.select(this).select(&quot;text&quot;).attr(&quot;transform&quot;,i.getTextTransform(e)))}))}}}},{&quot;../../lib&quot;:778,d3:169}],938:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../scatterpolar/attributes&quot;),o=t(&quot;../bar/attributes&quot;);e.exports={r:a.r,theta:a.theta,r0:a.r0,dr:a.dr,theta0:a.theta0,dtheta:a.dtheta,thetaunit:a.thetaunit,base:i({},o.base,{}),offset:i({},o.offset,{}),width:i({},o.width,{}),text:i({},o.text,{}),hovertext:i({},o.hovertext,{}),marker:o.marker,hoverinfo:a.hoverinfo,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatterpolar/attributes&quot;:1261}],939:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,i=t(&quot;../../components/colorscale/calc&quot;),a=t(&quot;../bar/arrays_to_calcdata&quot;),o=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions,s=t(&quot;../scatter/calc_selection&quot;),l=t(&quot;../../registry&quot;).traceIs,c=t(&quot;../../lib&quot;).extendFlat;e.exports={calc:function(t,e){for(var r=t._fullLayout,o=e.subplot,l=r[o].radialaxis,c=r[o].angularaxis,u=l.makeCalcdata(e,&quot;r&quot;),f=c.makeCalcdata(e,&quot;theta&quot;),h=e._length,p=new Array(h),d=u,g=f,m=0;m&lt;h;m++)p[m]={p:g[m],s:d[m]};function v(t){var r=e[t];void 0!==r&amp;&amp;(e[&quot;_&quot;+t]=Array.isArray(r)?c.makeCalcdata(e,t):c.d2c(r,e.thetaunit))}return&quot;linear&quot;===c.type&amp;&amp;(v(&quot;width&quot;),v(&quot;offset&quot;)),n(e,&quot;marker&quot;)&amp;&amp;i(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),n(e,&quot;marker.line&quot;)&amp;&amp;i(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}),a(p,e),s(p,e),p},crossTraceCalc:function(t,e,r){for(var n=t.calcdata,i=[],a=0;a&lt;n.length;a++){var s=n[a],u=s[0].trace;!0===u.visible&amp;&amp;l(u,&quot;bar&quot;)&amp;&amp;u.subplot===r&amp;&amp;i.push(s)}var f=c({},e.radialaxis,{_id:&quot;x&quot;}),h=e.angularaxis;o(t,h,f,i,{mode:e.barmode,norm:e.barnorm,gap:e.bargap,groupgap:e.bargroupgap})}}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../bar/arrays_to_calcdata&quot;:920,&quot;../bar/cross_trace_calc&quot;:924,&quot;../scatter/calc_selection&quot;:1189}],940:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatterpolar/defaults&quot;).handleRThetaDefaults,a=t(&quot;../bar/style_defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,s,l)?(l(&quot;thetaunit&quot;),l(&quot;base&quot;),l(&quot;offset&quot;),l(&quot;width&quot;),l(&quot;text&quot;),l(&quot;hovertext&quot;),l(&quot;hovertemplate&quot;),a(t,e,l,r,s),n.coerceSelectionMarkerOpacity(e,l)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../bar/style_defaults&quot;:936,&quot;../scatterpolar/defaults&quot;:1263,&quot;./attributes&quot;:938}],941:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../bar/hover&quot;).getTraceColor,o=i.fillText,s=t(&quot;../scatterpolar/hover&quot;).makeHoverPointText,l=t(&quot;../../plots/polar/helpers&quot;).isPtInsidePolygon;e.exports=function(t,e,r){var c=t.cd,u=c[0].trace,f=t.subplot,h=f.radialAxis,p=f.angularAxis,d=f.vangles,g=d?l:i.isPtInsideSector,m=t.maxHoverDistance,v=p._period||2*Math.PI,y=Math.abs(h.g2p(Math.sqrt(e*e+r*r))),x=Math.atan2(r,e);h.range[0]&gt;h.range[1]&amp;&amp;(x+=Math.PI);if(n.getClosest(c,(function(t){return g(y,x,[t.rp0,t.rp1],[t.thetag0,t.thetag1],d)?m+Math.min(1,Math.abs(t.thetag1-t.thetag0)/v)-1+(t.rp1-y)/(t.rp1-t.rp0)-1:1/0}),t),!1!==t.index){var b=c[t.index];t.x0=t.x1=b.ct[0],t.y0=t.y1=b.ct[1];var _=i.extendFlat({},b,{r:b.s,theta:b.p});return o(b,u,t),s(_,u,f,t),t.hovertemplate=u.hovertemplate,t.color=a(u,b),t.xLabelVal=t.yLabelVal=void 0,b.s&lt;0&amp;&amp;(t.idealAlign=&quot;left&quot;),[t]}}},{&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../plots/polar/helpers&quot;:893,&quot;../bar/hover&quot;:928,&quot;../scatterpolar/hover&quot;:1265}],942:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;barpolar&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;polar&quot;,&quot;bar&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;../scatterpolar/format_labels&quot;),style:t(&quot;../bar/style&quot;).style,styleOnSelect:t(&quot;../bar/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../bar/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:894,&quot;../bar/select&quot;:933,&quot;../bar/style&quot;:935,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatterpolar/format_labels&quot;:1264,&quot;./attributes&quot;:938,&quot;./calc&quot;:939,&quot;./defaults&quot;:940,&quot;./hover&quot;:941,&quot;./layout_attributes&quot;:943,&quot;./layout_defaults&quot;:944,&quot;./plot&quot;:945}],943:[function(t,e,r){&quot;use strict&quot;;e.exports={barmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;overlay&quot;],dflt:&quot;stack&quot;,editType:&quot;calc&quot;},bargap:{valType:&quot;number&quot;,dflt:.1,min:0,max:1,editType:&quot;calc&quot;}}},{}],944:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a,o={};function s(r,o){return n.coerce(t[a]||{},e[a],i,r,o)}for(var l=0;l&lt;r.length;l++){var c=r[l];&quot;barpolar&quot;===c.type&amp;&amp;!0===c.visible&amp;&amp;(o[a=c.subplot]||(s(&quot;barmode&quot;),s(&quot;bargap&quot;),o[a]=1))}}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:943}],945:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../plots/polar/helpers&quot;);e.exports=function(t,e,r){var l=e.xaxis,c=e.yaxis,u=e.radialAxis,f=e.angularAxis,h=function(t){var e=t.cxx,r=t.cyy;if(t.vangles)return function(n,i,o,l){var c,u;a.angleDelta(o,l)&gt;0?(c=o,u=l):(c=l,u=o);var f=[s.findEnclosingVertexAngles(c,t.vangles)[0],(c+u)/2,s.findEnclosingVertexAngles(u,t.vangles)[1]];return s.pathPolygonAnnulus(n,i,c,u,f,e,r)};return function(t,n,i,o){return a.pathAnnulus(t,n,i,o,e,r)}}(e),p=e.layers.frontplot.select(&quot;g.barlayer&quot;);a.makeTraceGroups(p,r,&quot;trace bars&quot;).each((function(){var r=n.select(this),s=a.ensureSingle(r,&quot;g&quot;,&quot;points&quot;).selectAll(&quot;g.point&quot;).data(a.identity);s.enter().append(&quot;g&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).style(&quot;stroke-miterlimit&quot;,2).classed(&quot;point&quot;,!0),s.exit().remove(),s.each((function(t){var e,r=n.select(this),o=t.rp0=u.c2p(t.s0),s=t.rp1=u.c2p(t.s1),p=t.thetag0=f.c2g(t.p0),d=t.thetag1=f.c2g(t.p1);if(i(o)&amp;&amp;i(s)&amp;&amp;i(p)&amp;&amp;i(d)&amp;&amp;o!==s&amp;&amp;p!==d){var g=u.c2g(t.s1),m=(p+d)/2;t.ct=[l.c2p(g*Math.cos(m)),c.c2p(g*Math.sin(m))],e=h(o,s,p,d)}else e=&quot;M0,0Z&quot;;a.ensureSingle(r,&quot;path&quot;).attr(&quot;d&quot;,e)})),o.setClipUrl(r,e._hasClipOnAxisFalse?e.clipIds.forTraces:null,t)}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../plots/polar/helpers&quot;:893,d3:169,&quot;fast-isnumeric&quot;:241}],946:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../bar/attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../lib/extend&quot;).extendFlat,l=n.marker,c=l.line;e.exports={y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},x0:{valType:&quot;any&quot;,editType:&quot;calc+clearAxisTypes&quot;},y0:{valType:&quot;any&quot;,editType:&quot;calc+clearAxisTypes&quot;},dx:{valType:&quot;number&quot;,editType:&quot;calc&quot;},dy:{valType:&quot;number&quot;,editType:&quot;calc&quot;},xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,name:{valType:&quot;string&quot;,editType:&quot;calc+clearAxisTypes&quot;},q1:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},median:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},q3:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},lowerfence:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},upperfence:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},notched:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},notchwidth:{valType:&quot;number&quot;,min:0,max:.5,dflt:.25,editType:&quot;calc&quot;},notchspan:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},boxpoints:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;outliers&quot;,&quot;suspectedoutliers&quot;,!1],editType:&quot;calc&quot;},jitter:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},pointpos:{valType:&quot;number&quot;,min:-2,max:2,editType:&quot;calc&quot;},boxmean:{valType:&quot;enumerated&quot;,values:[!0,&quot;sd&quot;,!1],editType:&quot;calc&quot;},mean:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sd:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc+clearAxisTypes&quot;},quartilemethod:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;exclusive&quot;,&quot;inclusive&quot;],dflt:&quot;linear&quot;,editType:&quot;calc&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},marker:{outliercolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0, 0, 0, 0)&quot;,editType:&quot;style&quot;},symbol:s({},l.symbol,{arrayOk:!1,editType:&quot;plot&quot;}),opacity:s({},l.opacity,{arrayOk:!1,dflt:1,editType:&quot;style&quot;}),size:s({},l.size,{arrayOk:!1,editType:&quot;calc&quot;}),color:s({},l.color,{arrayOk:!1,editType:&quot;style&quot;}),line:{color:s({},c.color,{arrayOk:!1,dflt:a.defaultLine,editType:&quot;style&quot;}),width:s({},c.width,{arrayOk:!1,dflt:0,editType:&quot;style&quot;}),outliercolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},outlierwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;plot&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},editType:&quot;plot&quot;},fillcolor:n.fillcolor,whiskerwidth:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;calc&quot;},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup,selected:{marker:n.selected.marker,editType:&quot;style&quot;},unselected:{marker:n.unselected.marker,editType:&quot;style&quot;},text:s({},n.text,{}),hovertext:s({},n.hovertext,{}),hovertemplate:o({}),hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;boxes&quot;,&quot;points&quot;],dflt:&quot;boxes+points&quot;,editType:&quot;style&quot;}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib/extend&quot;:768,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatter/attributes&quot;:1187}],947:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/cartesian/align_period&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=o._;e.exports=function(t,e){var r,c,y,x,b,_,w,T=t._fullLayout,k=i.getFromId(t,e.xaxis||&quot;x&quot;),M=i.getFromId(t,e.yaxis||&quot;y&quot;),A=[],S=&quot;violin&quot;===e.type?&quot;_numViolins&quot;:&quot;_numBoxes&quot;;&quot;h&quot;===e.orientation?(y=k,x=&quot;x&quot;,b=M,_=&quot;y&quot;,w=!!e.yperiodalignment):(y=M,x=&quot;y&quot;,b=k,_=&quot;x&quot;,w=!!e.xperiodalignment);var E,C,L,I,P,z,O=function(t,e,r,i){var s,l=e+&quot;0&quot;in t,c=&quot;d&quot;+e in t;if(e in t||l&amp;&amp;c){var u=r.makeCalcdata(t,e);return[a(t,r,e,u),u]}s=l?t[e+&quot;0&quot;]:&quot;name&quot;in t&amp;&amp;(&quot;category&quot;===r.type||n(t.name)&amp;&amp;-1!==[&quot;linear&quot;,&quot;log&quot;].indexOf(r.type)||o.isDateTime(t.name)&amp;&amp;&quot;date&quot;===r.type)?t.name:i;for(var f=&quot;multicategory&quot;===r.type?r.r2c_just_indices(s):r.d2c(s,0,t[e+&quot;calendar&quot;]),h=t._length,p=new Array(h),d=0;d&lt;h;d++)p[d]=f;return[p]}(e,_,b,T[S]),D=O[0],R=O[1],F=o.distinctVals(D),B=F.vals,N=F.minDiff/2,j=&quot;all&quot;===(e.boxpoints||e.points)?o.identity:function(t){return t.v&lt;E.lf||t.v&gt;E.uf};if(e._hasPreCompStats){var U=e[x],V=function(t){return y.d2c((e[t]||[])[r])},q=1/0,H=-1/0;for(r=0;r&lt;e._length;r++){var G=D[r];if(n(G)){if((E={}).pos=E[_]=G,w&amp;&amp;R&amp;&amp;(E.orig_p=R[r]),E.q1=V(&quot;q1&quot;),E.med=V(&quot;median&quot;),E.q3=V(&quot;q3&quot;),C=[],U&amp;&amp;o.isArrayOrTypedArray(U[r]))for(c=0;c&lt;U[r].length;c++)(z=y.d2c(U[r][c]))!==s&amp;&amp;(u(P={v:z,i:[r,c]},e,[r,c]),C.push(P));if(E.pts=C.sort(f),I=(L=E[x]=C.map(h)).length,E.med!==s&amp;&amp;E.q1!==s&amp;&amp;E.q3!==s&amp;&amp;E.med&gt;=E.q1&amp;&amp;E.q3&gt;=E.med){var Y=V(&quot;lowerfence&quot;);E.lf=Y!==s&amp;&amp;Y&lt;=E.q1?Y:p(E,L,I);var W=V(&quot;upperfence&quot;);E.uf=W!==s&amp;&amp;W&gt;=E.q3?W:d(E,L,I);var X=V(&quot;mean&quot;);E.mean=X!==s?X:I?o.mean(L,I):(E.q1+E.q3)/2;var Z=V(&quot;sd&quot;);E.sd=X!==s&amp;&amp;Z&gt;=0?Z:I?o.stdev(L,I,E.mean):E.q3-E.q1,E.lo=g(E),E.uo=m(E);var J=V(&quot;notchspan&quot;);J=J!==s&amp;&amp;J&gt;0?J:v(E,I),E.ln=E.med-J,E.un=E.med+J;var K=E.lf,Q=E.uf;e.boxpoints&amp;&amp;L.length&amp;&amp;(K=Math.min(K,L[0]),Q=Math.max(Q,L[I-1])),e.notched&amp;&amp;(K=Math.min(K,E.ln),Q=Math.max(Q,E.un)),E.min=K,E.max=Q}else{var $;o.warn([&quot;Invalid input - make sure that q1 &lt;= median &lt;= q3&quot;,&quot;q1 = &quot;+E.q1,&quot;median = &quot;+E.med,&quot;q3 = &quot;+E.q3].join(&quot;\n&quot;)),$=E.med!==s?E.med:E.q1!==s?E.q3!==s?(E.q1+E.q3)/2:E.q1:E.q3!==s?E.q3:0,E.med=$,E.q1=E.q3=$,E.lf=E.uf=$,E.mean=E.sd=$,E.ln=E.un=$,E.min=E.max=$}q=Math.min(q,E.min),H=Math.max(H,E.max),E.pts2=C.filter(j),A.push(E)}}e._extremes[y._id]=i.findExtremes(y,[q,H],{padded:!0})}else{var tt=y.makeCalcdata(e,x),et=function(t,e){for(var r=t.length,n=new Array(r+1),i=0;i&lt;r;i++)n[i]=t[i]-e;return n[r]=t[r-1]+e,n}(B,N),rt=B.length,nt=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=[];return e}(rt);for(r=0;r&lt;e._length;r++)if(z=tt[r],n(z)){var it=o.findBin(D[r],et);it&gt;=0&amp;&amp;it&lt;rt&amp;&amp;(u(P={v:z,i:r},e,r),nt[it].push(P))}var at=1/0,ot=-1/0,st=e.quartilemethod,lt=&quot;exclusive&quot;===st,ct=&quot;inclusive&quot;===st;for(r=0;r&lt;rt;r++)if(nt[r].length&gt;0){var ut,ft;if((E={}).pos=E[_]=B[r],C=E.pts=nt[r].sort(f),I=(L=E[x]=C.map(h)).length,E.min=L[0],E.max=L[I-1],E.mean=o.mean(L,I),E.sd=o.stdev(L,I,E.mean),E.med=o.interp(L,.5),I%2&amp;&amp;(lt||ct))lt?(ut=L.slice(0,I/2),ft=L.slice(I/2+1)):ct&amp;&amp;(ut=L.slice(0,I/2+1),ft=L.slice(I/2)),E.q1=o.interp(ut,.5),E.q3=o.interp(ft,.5);else E.q1=o.interp(L,.25),E.q3=o.interp(L,.75);E.lf=p(E,L,I),E.uf=d(E,L,I),E.lo=g(E),E.uo=m(E);var ht=v(E,I);E.ln=E.med-ht,E.un=E.med+ht,at=Math.min(at,E.ln),ot=Math.max(ot,E.un),E.pts2=C.filter(j),A.push(E)}e._extremes[y._id]=i.findExtremes(y,e.notched?tt.concat([at,ot]):tt,{padded:!0})}return function(t,e){if(o.isArrayOrTypedArray(e.selectedpoints))for(var r=0;r&lt;t.length;r++){for(var n=t[r].pts||[],i={},a=0;a&lt;n.length;a++)i[n[a].i]=a;o.tagSelected(n,e,i)}}(A,e),A.length&gt;0?(A[0].t={num:T[S],dPos:N,posLetter:_,valLetter:x,labels:{med:l(t,&quot;median:&quot;),min:l(t,&quot;min:&quot;),q1:l(t,&quot;q1:&quot;),q3:l(t,&quot;q3:&quot;),max:l(t,&quot;max:&quot;),mean:&quot;sd&quot;===e.boxmean?l(t,&quot;mean \xb1 \u03c3:&quot;):l(t,&quot;mean:&quot;),lf:l(t,&quot;lower fence:&quot;),uf:l(t,&quot;upper fence:&quot;)}},T[S]++,A):[{t:{empty:!0}}]};var c={text:&quot;tx&quot;,hovertext:&quot;htx&quot;};function u(t,e,r){for(var n in c)o.isArrayOrTypedArray(e[n])&amp;&amp;(Array.isArray(r)?o.isArrayOrTypedArray(e[n][r[0]])&amp;&amp;(t[c[n]]=e[n][r[0]][r[1]]):t[c[n]]=e[n][r])}function f(t,e){return t.v-e.v}function h(t){return t.v}function p(t,e,r){return 0===r?t.q1:Math.min(t.q1,e[Math.min(o.findBin(2.5*t.q1-1.5*t.q3,e,!0)+1,r-1)])}function d(t,e,r){return 0===r?t.q3:Math.max(t.q3,e[Math.max(o.findBin(2.5*t.q3-1.5*t.q1,e),0)])}function g(t){return 4*t.q1-3*t.q3}function m(t){return 4*t.q3-3*t.q1}function v(t,e){return 0===e?0:1.57*(t.q3-t.q1)/Math.sqrt(e)}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;fast-isnumeric&quot;:241}],948:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,o=[&quot;v&quot;,&quot;h&quot;];function s(t,e,r,o){var s,l,c,u=e.calcdata,f=e._fullLayout,h=o._id,p=h.charAt(0),d=[],g=0;for(s=0;s&lt;r.length;s++)for(c=u[r[s]],l=0;l&lt;c.length;l++)d.push(o.c2l(c[l].pos,!0)),g+=(c[l].pts2||[]).length;if(d.length){var m=i.distinctVals(d,{unitMinDiff:&quot;category&quot;===o.type||&quot;multicategory&quot;===o.type}),v=m.minDiff/2;n.minDtick(o,m.minDiff,m.vals[0],!0);var y=f[&quot;violin&quot;===t?&quot;_numViolins&quot;:&quot;_numBoxes&quot;],x=&quot;group&quot;===f[t+&quot;mode&quot;]&amp;&amp;y&gt;1,b=1-f[t+&quot;gap&quot;],_=1-f[t+&quot;groupgap&quot;];for(s=0;s&lt;r.length;s++){var w,T,k,M,A,S,E=(c=u[r[s]])[0].trace,C=c[0].t,L=E.width,I=E.side;if(L)w=T=M=L/2,k=0;else if(w=v,x){var P=a(f,o._id)+E.orientation,z=(f._alignmentOpts[P]||{})[E.alignmentgroup]||{},O=Object.keys(z.offsetGroups||{}).length,D=O||y;T=w*b*_/D,k=2*w*(((O?E._offsetIndex:C.num)+.5)/D-.5)*b,M=w*b/D}else T=w*b*_,k=0,M=w;C.dPos=w,C.bPos=k,C.bdPos=T,C.wHover=M;var R,F,B,N,j,U,V=k+T,q=Boolean(L);if(&quot;positive&quot;===I?(A=w*(L?1:.5),R=V,S=R=k):&quot;negative&quot;===I?(A=R=k,S=w*(L?1:.5),F=V):(A=S=w,R=F=V),(E.boxpoints||E.points)&amp;&amp;g&gt;0){var H=E.pointpos,G=E.jitter,Y=E.marker.size/2,W=0;H+G&gt;=0&amp;&amp;((W=V*(H+G))&gt;A?(q=!0,j=Y,B=W):W&gt;R&amp;&amp;(j=Y,B=A)),W&lt;=A&amp;&amp;(B=A);var X=0;H-G&lt;=0&amp;&amp;((X=-V*(H-G))&gt;S?(q=!0,U=Y,N=X):X&gt;F&amp;&amp;(U=Y,N=S)),X&lt;=S&amp;&amp;(N=S)}else B=A,N=S;var Z=new Array(c.length);for(l=0;l&lt;c.length;l++)Z[l]=c[l].pos;E._extremes[h]=n.findExtremes(o,Z,{padded:q,vpadminus:N,vpadplus:B,vpadLinearized:!0,ppadminus:{x:U,y:j}[p],ppadplus:{x:j,y:U}[p]})}}}e.exports={crossTraceCalc:function(t,e){for(var r=t.calcdata,n=e.xaxis,i=e.yaxis,a=0;a&lt;o.length;a++){for(var l=o[a],c=&quot;h&quot;===l?i:n,u=[],f=0;f&lt;r.length;f++){var h=r[f],p=h[0].t,d=h[0].trace;!0!==d.visible||&quot;box&quot;!==d.type&amp;&amp;&quot;candlestick&quot;!==d.type||p.empty||(d.orientation||&quot;v&quot;)!==l||d.xaxis!==n._id||d.yaxis!==i._id||u.push(f)}s(&quot;box&quot;,t,u,c)}},setPositionOffset:s}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/constraints&quot;:835}],949:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../scatter/period_defaults&quot;),s=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,l=t(&quot;../../plots/cartesian/axis_autotype&quot;),c=t(&quot;./attributes&quot;);function u(t,e,r,a){function o(t){var e=0;return t&amp;&amp;t.length&amp;&amp;(e+=1,n.isArrayOrTypedArray(t[0])&amp;&amp;t[0].length&amp;&amp;(e+=1)),e}function s(e){return n.validate(t[e],c[e])}var u,f=r(&quot;y&quot;),h=r(&quot;x&quot;);if(&quot;box&quot;===e.type){var p=r(&quot;q1&quot;),d=r(&quot;median&quot;),g=r(&quot;q3&quot;);e._hasPreCompStats=p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length&amp;&amp;g&amp;&amp;g.length,u=Math.min(n.minRowLength(p),n.minRowLength(d),n.minRowLength(g))}var m,v,y=o(f),x=o(h),b=y&amp;&amp;n.minRowLength(f),_=x&amp;&amp;n.minRowLength(h),w=a.calendar,T={autotypenumbers:a.autotypenumbers};if(e._hasPreCompStats)switch(String(x)+String(y)){case&quot;00&quot;:var k=s(&quot;x0&quot;)||s(&quot;dx&quot;);m=(s(&quot;y0&quot;)||s(&quot;dy&quot;))&amp;&amp;!k?&quot;h&quot;:&quot;v&quot;,v=u;break;case&quot;10&quot;:m=&quot;v&quot;,v=Math.min(u,_);break;case&quot;20&quot;:m=&quot;h&quot;,v=Math.min(u,h.length);break;case&quot;01&quot;:m=&quot;h&quot;,v=Math.min(u,b);break;case&quot;02&quot;:m=&quot;v&quot;,v=Math.min(u,f.length);break;case&quot;12&quot;:m=&quot;v&quot;,v=Math.min(u,_,f.length);break;case&quot;21&quot;:m=&quot;h&quot;,v=Math.min(u,h.length,b);break;case&quot;11&quot;:v=0;break;case&quot;22&quot;:var M,A=!1;for(M=0;M&lt;h.length;M++)if(&quot;category&quot;===l(h[M],w,T)){A=!0;break}if(A)m=&quot;v&quot;,v=Math.min(u,_,f.length);else{for(M=0;M&lt;f.length;M++)if(&quot;category&quot;===l(f[M],w,T)){A=!0;break}A?(m=&quot;h&quot;,v=Math.min(u,h.length,b)):(m=&quot;v&quot;,v=Math.min(u,_,f.length))}}else y&gt;0?(m=&quot;v&quot;,v=x&gt;0?Math.min(_,b):Math.min(b)):x&gt;0?(m=&quot;h&quot;,v=Math.min(_)):v=0;if(v){e._length=v;var S=r(&quot;orientation&quot;,m);e._hasPreCompStats?&quot;v&quot;===S&amp;&amp;0===x?(r(&quot;x0&quot;,0),r(&quot;dx&quot;,1)):&quot;h&quot;===S&amp;&amp;0===y&amp;&amp;(r(&quot;y0&quot;,0),r(&quot;dy&quot;,1)):&quot;v&quot;===S&amp;&amp;0===x?r(&quot;x0&quot;):&quot;h&quot;===S&amp;&amp;0===y&amp;&amp;r(&quot;y0&quot;),i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],a)}else e.visible=!1}function f(t,e,r,i){var a=i.prefix,o=n.coerce2(t,e,c,&quot;marker.outliercolor&quot;),s=r(&quot;marker.line.outliercolor&quot;),l=&quot;outliers&quot;;e._hasPreCompStats?l=&quot;all&quot;:(o||s)&amp;&amp;(l=&quot;suspectedoutliers&quot;);var u=r(a+&quot;points&quot;,l);u?(r(&quot;jitter&quot;,&quot;all&quot;===u?.3:0),r(&quot;pointpos&quot;,&quot;all&quot;===u?-1.5:0),r(&quot;marker.symbol&quot;),r(&quot;marker.opacity&quot;),r(&quot;marker.size&quot;),r(&quot;marker.color&quot;,e.line.color),r(&quot;marker.line.color&quot;),r(&quot;marker.line.width&quot;),&quot;suspectedoutliers&quot;===u&amp;&amp;(r(&quot;marker.line.outliercolor&quot;,e.marker.color),r(&quot;marker.line.outlierwidth&quot;)),r(&quot;selected.marker.color&quot;),r(&quot;unselected.marker.color&quot;),r(&quot;selected.marker.size&quot;),r(&quot;unselected.marker.size&quot;),r(&quot;text&quot;),r(&quot;hovertext&quot;)):delete e.marker;var f=r(&quot;hoveron&quot;);&quot;all&quot;!==f&amp;&amp;-1===f.indexOf(&quot;points&quot;)||r(&quot;hovertemplate&quot;),n.coerceSelectionMarkerOpacity(e,r)}e.exports={supplyDefaults:function(t,e,r,i){function s(r,i){return n.coerce(t,e,c,r,i)}if(u(t,e,s,i),!1!==e.visible){o(t,e,i,s);var l=e._hasPreCompStats;l&amp;&amp;(s(&quot;lowerfence&quot;),s(&quot;upperfence&quot;)),s(&quot;line.color&quot;,(t.marker||{}).color||r),s(&quot;line.width&quot;),s(&quot;fillcolor&quot;,a.addOpacity(e.line.color,.5));var h=!1;if(l){var p=s(&quot;mean&quot;),d=s(&quot;sd&quot;);p&amp;&amp;p.length&amp;&amp;(h=!0,d&amp;&amp;d.length&amp;&amp;(h=&quot;sd&quot;))}s(&quot;boxmean&quot;,h),s(&quot;whiskerwidth&quot;),s(&quot;width&quot;),s(&quot;quartilemethod&quot;);var g=!1;if(l){var m=s(&quot;notchspan&quot;);m&amp;&amp;m.length&amp;&amp;(g=!0)}else n.validate(t.notchwidth,c.notchwidth)&amp;&amp;(g=!0);s(&quot;notched&quot;,g)&amp;&amp;s(&quot;notchwidth&quot;),f(t,e,s,{prefix:&quot;box&quot;})}},crossTraceDefaults:function(t,e){var r,i;function a(t){return n.coerce(i._input,i,c,t)}for(var o=0;o&lt;t.length;o++){var l=(i=t[o]).type;&quot;box&quot;!==l&amp;&amp;&quot;violin&quot;!==l||(r=i._input,&quot;group&quot;===e[l+&quot;mode&quot;]&amp;&amp;s(r,i,e,a))}},handleSampleDefaults:u,handlePointsDefaults:f}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_autotype&quot;:829,&quot;../../registry&quot;:911,&quot;../bar/defaults&quot;:925,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:946}],950:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return e.hoverOnBox&amp;&amp;(t.hoverOnBox=e.hoverOnBox),&quot;xVal&quot;in e&amp;&amp;(t.x=e.xVal),&quot;yVal&quot;in e&amp;&amp;(t.y=e.yVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],951:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=i.fillText;function l(t,e,r,s){var l,c,u,f,h,p,d,g,m,v,y,x,b,_,w=t.cd,T=t.xa,k=t.ya,M=w[0].trace,A=w[0].t,S=&quot;violin&quot;===M.type,E=[],C=A.bdPos,L=A.wHover,I=function(t){return u.c2l(t.pos)+A.bPos-u.c2l(p)};S&amp;&amp;&quot;both&quot;!==M.side?(&quot;positive&quot;===M.side&amp;&amp;(m=function(t){var e=I(t);return a.inbox(e,e+L,v)},x=C,b=0),&quot;negative&quot;===M.side&amp;&amp;(m=function(t){var e=I(t);return a.inbox(e-L,e,v)},x=0,b=C)):(m=function(t){var e=I(t);return a.inbox(e-L,e+L,v)},x=b=C),_=S?function(t){return a.inbox(t.span[0]-h,t.span[1]-h,v)}:function(t){return a.inbox(t.min-h,t.max-h,v)},&quot;h&quot;===M.orientation?(h=e,p=r,d=_,g=m,l=&quot;y&quot;,u=k,c=&quot;x&quot;,f=T):(h=r,p=e,d=m,g=_,l=&quot;x&quot;,u=T,c=&quot;y&quot;,f=k);var P=Math.min(1,C/Math.abs(u.r2c(u.range[1])-u.r2c(u.range[0])));function z(t){return(d(t)+g(t))/2}v=t.maxHoverDistance-P,y=t.maxSpikeDistance-P;var O=a.getDistanceFunction(s,d,g,z);if(a.getClosest(w,O,t),!1===t.index)return[];var D=w[t.index],R=M.line.color,F=(M.marker||{}).color;o.opacity(R)&amp;&amp;M.line.width?t.color=R:o.opacity(F)&amp;&amp;M.boxpoints?t.color=F:t.color=M.fillcolor,t[l+&quot;0&quot;]=u.c2p(D.pos+A.bPos-b,!0),t[l+&quot;1&quot;]=u.c2p(D.pos+A.bPos+x,!0),t[l+&quot;LabelVal&quot;]=void 0!==D.orig_p?D.orig_p:D.pos;var B=l+&quot;Spike&quot;;t.spikeDistance=z(D)*y/v,t[B]=u.c2p(D.pos,!0);var N={},j=[&quot;med&quot;,&quot;q1&quot;,&quot;q3&quot;,&quot;min&quot;,&quot;max&quot;];(M.boxmean||(M.meanline||{}).visible)&amp;&amp;j.push(&quot;mean&quot;),(M.boxpoints||M.points)&amp;&amp;j.push(&quot;lf&quot;,&quot;uf&quot;);for(var U=0;U&lt;j.length;U++){var V=j[U];if(V in D&amp;&amp;!(D[V]in N)){N[D[V]]=!0;var q=D[V],H=f.c2p(q,!0),G=i.extendFlat({},t);G.attr=V,G[c+&quot;0&quot;]=G[c+&quot;1&quot;]=H,G[c+&quot;LabelVal&quot;]=q,G[c+&quot;Label&quot;]=(A.labels?A.labels[V]+&quot; &quot;:&quot;&quot;)+n.hoverLabelText(f,q),G.hoverOnBox=!0,&quot;mean&quot;===V&amp;&amp;&quot;sd&quot;in D&amp;&amp;&quot;sd&quot;===M.boxmean&amp;&amp;(G[c+&quot;err&quot;]=D.sd),t.name=&quot;&quot;,t.spikeDistance=void 0,t[B]=void 0,G.hovertemplate=!1,E.push(G)}}return E}function c(t,e,r){for(var n,o,l,c=t.cd,u=t.xa,f=t.ya,h=c[0].trace,p=u.c2p(e),d=f.c2p(r),g=a.quadrature((function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(u.c2p(t.x)-p)-e,1-3/e)}),(function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(f.c2p(t.y)-d)-e,1-3/e)})),m=!1,v=0;v&lt;c.length;v++){o=c[v];for(var y=0;y&lt;(o.pts||[]).length;y++){var x=g(l=o.pts[y]);x&lt;=t.distance&amp;&amp;(t.distance=x,m=[v,y])}}if(!m)return!1;l=(o=c[m[0]]).pts[m[1]];var b=u.c2p(l.x,!0),_=f.c2p(l.y,!0),w=l.mrc||1;n=i.extendFlat({},t,{index:l.i,color:(h.marker||{}).color,name:h.name,x0:b-w,x1:b+w,y0:_-w,y1:_+w,spikeDistance:t.distance,hovertemplate:h.hovertemplate});var T,k=o.orig_p,M=void 0!==k?k:o.pos;return&quot;h&quot;===h.orientation?(T=f,n.xLabelVal=l.x,n.yLabelVal=M):(T=u,n.xLabelVal=M,n.yLabelVal=l.y),n[T._id.charAt(0)+&quot;Spike&quot;]=T.c2p(o.pos,!0),s(l,h,n),n}e.exports={hoverPoints:function(t,e,r,n){var i,a=t.cd[0].trace.hoveron,o=[];return-1!==a.indexOf(&quot;boxes&quot;)&amp;&amp;(o=o.concat(l(t,e,r,n))),-1!==a.indexOf(&quot;points&quot;)&amp;&amp;(i=c(t,e,r)),&quot;closest&quot;===n?i?[i]:o:i?(o.push(i),o):o},hoverOnBoxes:l,hoverOnPoints:c}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],952:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;).supplyLayoutDefaults,calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;box&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;oriented&quot;,&quot;box-violin&quot;,&quot;showLegend&quot;,&quot;boxLayout&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:946,&quot;./calc&quot;:947,&quot;./cross_trace_calc&quot;:948,&quot;./defaults&quot;:949,&quot;./event_data&quot;:950,&quot;./hover&quot;:951,&quot;./layout_attributes&quot;:953,&quot;./layout_defaults&quot;:954,&quot;./plot&quot;:955,&quot;./select&quot;:956,&quot;./style&quot;:957}],953:[function(t,e,r){&quot;use strict&quot;;e.exports={boxmode:{valType:&quot;enumerated&quot;,values:[&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;overlay&quot;,editType:&quot;calc&quot;},boxgap:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,editType:&quot;calc&quot;},boxgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,editType:&quot;calc&quot;}}},{}],954:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./layout_attributes&quot;);function o(t,e,r,i,a){for(var o=a+&quot;Layout&quot;,s=!1,l=0;l&lt;r.length;l++){var c=r[l];if(n.traceIs(c,o)){s=!0;break}}s&amp;&amp;(i(a+&quot;mode&quot;),i(a+&quot;gap&quot;),i(a+&quot;groupgap&quot;))}e.exports={supplyLayoutDefaults:function(t,e,r){o(0,0,r,(function(r,n){return i.coerce(t,e,a,r,n)}),&quot;box&quot;)},_supply:o}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./layout_attributes&quot;:953}],955:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;);function o(t,e,r,a){var o,s,l=&quot;h&quot;===r.orientation,c=e.val,u=e.pos,f=!!u.rangebreaks,h=a.bPos,p=a.wdPos||0,d=a.bPosPxOffset||0,g=r.whiskerwidth||0,m=r.notched||!1,v=m?1-2*r.notchwidth:1;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var y=t.selectAll(&quot;path.box&quot;).data(&quot;violin&quot;!==r.type||r.box.visible?i.identity:[]);y.enter().append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;class&quot;,&quot;box&quot;),y.exit().remove(),y.each((function(t){if(t.empty)return&quot;M0,0Z&quot;;var e=u.c2l(t.pos+h,!0),a=u.l2p(e-o)+d,y=u.l2p(e+s)+d,x=f?(a+y)/2:u.l2p(e)+d,b=r.whiskerwidth,_=f?a*b+(1-b)*x:u.l2p(e-p)+d,w=f?y*b+(1-b)*x:u.l2p(e+p)+d,T=u.l2p(e-o*v)+d,k=u.l2p(e+s*v)+d,M=c.c2p(t.q1,!0),A=c.c2p(t.q3,!0),S=i.constrain(c.c2p(t.med,!0),Math.min(M,A)+1,Math.max(M,A)-1),E=void 0===t.lf||!1===r.boxpoints,C=c.c2p(E?t.min:t.lf,!0),L=c.c2p(E?t.max:t.uf,!0),I=c.c2p(t.ln,!0),P=c.c2p(t.un,!0);l?n.select(this).attr(&quot;d&quot;,&quot;M&quot;+S+&quot;,&quot;+T+&quot;V&quot;+k+&quot;M&quot;+M+&quot;,&quot;+a+&quot;V&quot;+y+(m?&quot;H&quot;+I+&quot;L&quot;+S+&quot;,&quot;+k+&quot;L&quot;+P+&quot;,&quot;+y:&quot;&quot;)+&quot;H&quot;+A+&quot;V&quot;+a+(m?&quot;H&quot;+P+&quot;L&quot;+S+&quot;,&quot;+T+&quot;L&quot;+I+&quot;,&quot;+a:&quot;&quot;)+&quot;ZM&quot;+M+&quot;,&quot;+x+&quot;H&quot;+C+&quot;M&quot;+A+&quot;,&quot;+x+&quot;H&quot;+L+(0===g?&quot;&quot;:&quot;M&quot;+C+&quot;,&quot;+_+&quot;V&quot;+w+&quot;M&quot;+L+&quot;,&quot;+_+&quot;V&quot;+w)):n.select(this).attr(&quot;d&quot;,&quot;M&quot;+T+&quot;,&quot;+S+&quot;H&quot;+k+&quot;M&quot;+a+&quot;,&quot;+M+&quot;H&quot;+y+(m?&quot;V&quot;+I+&quot;L&quot;+k+&quot;,&quot;+S+&quot;L&quot;+y+&quot;,&quot;+P:&quot;&quot;)+&quot;V&quot;+A+&quot;H&quot;+a+(m?&quot;V&quot;+P+&quot;L&quot;+T+&quot;,&quot;+S+&quot;L&quot;+a+&quot;,&quot;+I:&quot;&quot;)+&quot;ZM&quot;+x+&quot;,&quot;+M+&quot;V&quot;+C+&quot;M&quot;+x+&quot;,&quot;+A+&quot;V&quot;+L+(0===g?&quot;&quot;:&quot;M&quot;+_+&quot;,&quot;+C+&quot;H&quot;+w+&quot;M&quot;+_+&quot;,&quot;+L+&quot;H&quot;+w))}))}function s(t,e,r,n){var o=e.x,s=e.y,l=n.bdPos,c=n.bPos,u=r.boxpoints||r.points;i.seedPseudoRandom();var f=t.selectAll(&quot;g.points&quot;).data(u?function(t){return t.forEach((function(t){t.t=n,t.trace=r})),t}:[]);f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;points&quot;),f.exit().remove();var h=f.selectAll(&quot;path&quot;).data((function(t){var e,n,a=t.pts2,o=Math.max((t.max-t.min)/10,t.q3-t.q1),s=1e-9*o,f=.01*o,h=[],p=0;if(r.jitter){if(0===o)for(p=1,h=new Array(a.length),e=0;e&lt;a.length;e++)h[e]=1;else for(e=0;e&lt;a.length;e++){var d=Math.max(0,e-5),g=a[d].v,m=Math.min(a.length-1,e+5),v=a[m].v;&quot;all&quot;!==u&amp;&amp;(a[e].v&lt;t.lf?v=Math.min(v,t.lf):g=Math.max(g,t.uf));var y=Math.sqrt(f*(m-d)/(v-g+s))||0;y=i.constrain(Math.abs(y),0,1),h.push(y),p=Math.max(y,p)}n=2*r.jitter/(p||1)}for(e=0;e&lt;a.length;e++){var x=a[e],b=x.v,_=r.jitter?n*h[e]*(i.pseudoRandom()-.5):0,w=t.pos+c+l*(r.pointpos+_);&quot;h&quot;===r.orientation?(x.y=w,x.x=b):(x.x=w,x.y=b),&quot;suspectedoutliers&quot;===u&amp;&amp;b&lt;t.uo&amp;&amp;b&gt;t.lo&amp;&amp;(x.so=!0)}return a}));h.enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0),h.exit().remove(),h.call(a.translatePoints,o,s)}function l(t,e,r,a){var o,s,l=e.val,c=e.pos,u=!!c.rangebreaks,f=a.bPos,h=a.bPosPxOffset||0,p=r.boxmean||(r.meanline||{}).visible;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var d=t.selectAll(&quot;path.mean&quot;).data(&quot;box&quot;===r.type&amp;&amp;r.boxmean||&quot;violin&quot;===r.type&amp;&amp;r.box.visible&amp;&amp;r.meanline.visible?i.identity:[]);d.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;mean&quot;).style({fill:&quot;none&quot;,&quot;vector-effect&quot;:&quot;non-scaling-stroke&quot;}),d.exit().remove(),d.each((function(t){var e=c.c2l(t.pos+f,!0),i=c.l2p(e-o)+h,a=c.l2p(e+s)+h,d=u?(i+a)/2:c.l2p(e)+h,g=l.c2p(t.mean,!0),m=l.c2p(t.mean-t.sd,!0),v=l.c2p(t.mean+t.sd,!0);&quot;h&quot;===r.orientation?n.select(this).attr(&quot;d&quot;,&quot;M&quot;+g+&quot;,&quot;+i+&quot;V&quot;+a+(&quot;sd&quot;===p?&quot;m0,0L&quot;+m+&quot;,&quot;+d+&quot;L&quot;+g+&quot;,&quot;+i+&quot;L&quot;+v+&quot;,&quot;+d+&quot;Z&quot;:&quot;&quot;)):n.select(this).attr(&quot;d&quot;,&quot;M&quot;+i+&quot;,&quot;+g+&quot;H&quot;+a+(&quot;sd&quot;===p?&quot;m0,0L&quot;+d+&quot;,&quot;+m+&quot;L&quot;+i+&quot;,&quot;+g+&quot;L&quot;+d+&quot;,&quot;+v+&quot;Z&quot;:&quot;&quot;))}))}e.exports={plot:function(t,e,r,a){var c=e.xaxis,u=e.yaxis;i.makeTraceGroups(a,r,&quot;trace boxes&quot;).each((function(t){var e,r,i=n.select(this),a=t[0],f=a.t,h=a.trace;(f.wdPos=f.bdPos*h.whiskerwidth,!0!==h.visible||f.empty)?i.remove():(&quot;h&quot;===h.orientation?(e=u,r=c):(e=c,r=u),o(i,{pos:e,val:r},h,f),s(i,{x:c,y:u},h,f),l(i,{pos:e,val:r},h,f))}))},plotBoxAndWhiskers:o,plotPoints:s,plotBoxMean:l}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,d3:169}],956:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n,i=t.cd,a=t.xaxis,o=t.yaxis,s=[];if(!1===e)for(r=0;r&lt;i.length;r++)for(n=0;n&lt;(i[r].pts||[]).length;n++)i[r].pts[n].selected=0;else for(r=0;r&lt;i.length;r++)for(n=0;n&lt;(i[r].pts||[]).length;n++){var l=i[r].pts[n],c=a.c2p(l.x),u=o.c2p(l.y);e.contains([c,u],null,l.i,t)?(s.push({pointNumber:l.i,x:a.c2d(l.x),y:o.c2d(l.y)}),l.selected=1):l.selected=0}return s}},{}],957:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;);e.exports={style:function(t,e,r){var o=r||n.select(t).selectAll(&quot;g.trace.boxes&quot;);o.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),o.each((function(e){var r=n.select(this),o=e[0].trace,s=o.line.width;function l(t,e,r,n){t.style(&quot;stroke-width&quot;,e+&quot;px&quot;).call(i.stroke,r).call(i.fill,n)}var c=r.selectAll(&quot;path.box&quot;);if(&quot;candlestick&quot;===o.type)c.each((function(t){if(!t.empty){var e=n.select(this),r=o[t.dir];l(e,r.line.width,r.line.color,r.fillcolor),e.style(&quot;opacity&quot;,o.selectedpoints&amp;&amp;!t.selected?.3:1)}}));else{l(c,s,o.line.color,o.fillcolor),r.selectAll(&quot;path.mean&quot;).style({&quot;stroke-width&quot;:s,&quot;stroke-dasharray&quot;:2*s+&quot;px,&quot;+s+&quot;px&quot;}).call(i.stroke,o.line.color);var u=r.selectAll(&quot;path.point&quot;);a.pointStyle(u,o,t)}}))},styleOnSelect:function(t,e,r){var n=e[0].trace,i=r.selectAll(&quot;path.point&quot;);n.selectedpoints?a.selectedPointStyle(i,n):a.pointStyle(i,n,t)}}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,d3:169}],958:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).extendFlat,i=t(&quot;../ohlc/attributes&quot;),a=t(&quot;../box/attributes&quot;);function o(t){return{line:{color:n({},a.line.color,{dflt:t}),width:a.line.width,editType:&quot;style&quot;},fillcolor:a.fillcolor,editType:&quot;style&quot;}}e.exports={xperiod:i.xperiod,xperiod0:i.xperiod0,xperiodalignment:i.xperiodalignment,x:i.x,open:i.open,high:i.high,low:i.low,close:i.close,line:{width:n({},a.line.width,{}),editType:&quot;style&quot;},increasing:o(i.increasing.line.color.dflt),decreasing:o(i.decreasing.line.color.dflt),text:i.text,hovertext:i.hovertext,whiskerwidth:n({},a.whiskerwidth,{dflt:0}),hoverlabel:i.hoverlabel}},{&quot;../../lib&quot;:778,&quot;../box/attributes&quot;:946,&quot;../ohlc/attributes&quot;:1133}],959:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/cartesian/align_period&quot;),o=t(&quot;../ohlc/calc&quot;).calcCommon;function s(t,e,r,n){return{min:r,q1:Math.min(t,n),med:n,q3:Math.max(t,n),max:e}}e.exports=function(t,e){var r=t._fullLayout,l=i.getFromId(t,e.xaxis),c=i.getFromId(t,e.yaxis),u=l.makeCalcdata(e,&quot;x&quot;),f=a(e,l,&quot;x&quot;,u),h=o(t,e,u,f,c,s);return h.length?(n.extendFlat(h[0].t,{num:r._numBoxes,dPos:n.distinctVals(f).minDiff/2,posLetter:&quot;x&quot;,valLetter:&quot;y&quot;}),r._numBoxes++,h):[{t:{empty:!0}}]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../ohlc/calc&quot;:1134}],960:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../ohlc/ohlc_defaults&quot;),o=t(&quot;../scatter/period_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r,n){var a=r(n+&quot;.line.color&quot;);r(n+&quot;.line.width&quot;,e.line.width),r(n+&quot;.fillcolor&quot;,i.addOpacity(a,.5))}e.exports=function(t,e,r,i){function c(r,i){return n.coerce(t,e,s,r,i)}a(t,e,c,i)?(o(t,e,i,c,{x:!0}),c(&quot;line.width&quot;),l(t,e,c,&quot;increasing&quot;),l(t,e,c,&quot;decreasing&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;whiskerwidth&quot;),i._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../ohlc/ohlc_defaults&quot;:1138,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:958}],961:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;candlestick&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;showLegend&quot;,&quot;candlestick&quot;,&quot;boxLayout&quot;],meta:{},attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;../box/layout_attributes&quot;),supplyLayoutDefaults:t(&quot;../box/layout_defaults&quot;).supplyLayoutDefaults,crossTraceCalc:t(&quot;../box/cross_trace_calc&quot;).crossTraceCalc,supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;../box/plot&quot;).plot,layerName:&quot;boxlayer&quot;,style:t(&quot;../box/style&quot;).style,hoverPoints:t(&quot;../ohlc/hover&quot;).hoverPoints,selectPoints:t(&quot;../ohlc/select&quot;)}},{&quot;../../plots/cartesian&quot;:841,&quot;../box/cross_trace_calc&quot;:948,&quot;../box/layout_attributes&quot;:953,&quot;../box/layout_defaults&quot;:954,&quot;../box/plot&quot;:955,&quot;../box/style&quot;:957,&quot;../ohlc/hover&quot;:1136,&quot;../ohlc/select&quot;:1140,&quot;./attributes&quot;:958,&quot;./calc&quot;:959,&quot;./defaults&quot;:960}],962:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./axis_defaults&quot;),i=t(&quot;../../plot_api/plot_template&quot;);e.exports=function(t,e,r,a,o){a(&quot;a&quot;)||(a(&quot;da&quot;),a(&quot;a0&quot;)),a(&quot;b&quot;)||(a(&quot;db&quot;),a(&quot;b0&quot;)),function(t,e,r,a){[&quot;aaxis&quot;,&quot;baxis&quot;].forEach((function(o){var s=o.charAt(0),l=t[o]||{},c=i.newContainer(e,o),u={tickfont:&quot;x&quot;,id:s+&quot;axis&quot;,letter:s,font:e.font,name:o,data:t[s],calendar:e.calendar,dfltColor:a,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};n(l,c,u),c._categories=c._categories||[],t[o]||&quot;-&quot;===l.type||(t[o]={type:l.type})}))}(t,e,r,o)}},{&quot;../../plot_api/plot_template&quot;:817,&quot;./axis_defaults&quot;:967}],963:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t){return function t(e,r){if(!n(e)||r&gt;=10)return null;for(var i=1/0,a=-1/0,o=e.length,s=0;s&lt;o;s++){var l=e[s];if(n(l)){var c=t(l,r+1);c&amp;&amp;(i=Math.min(c[0],i),a=Math.max(c[1],a))}else i=Math.min(l,i),a=Math.max(l,a)}return[i,a]}(t,0)}},{&quot;../../lib&quot;:778}],964:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;./axis_attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=n({editType:&quot;calc&quot;});o.family.dflt='&quot;Open Sans&quot;, verdana, arial, sans-serif',o.size.dflt=12,o.color.dflt=a.defaultLine,e.exports={carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},a0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},da:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},db:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},cheaterslope:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},aaxis:i,baxis:i,font:o,color:{valType:&quot;color&quot;,dflt:a.defaultLine,editType:&quot;plot&quot;},transforms:void 0}},{&quot;../../components/color/attributes&quot;:642,&quot;../../plots/font_attributes&quot;:856,&quot;./axis_attributes&quot;:966}],965:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g,m,v,y=n(r)?&quot;a&quot;:&quot;b&quot;,x=(&quot;a&quot;===y?t.aaxis:t.baxis).smoothing,b=&quot;a&quot;===y?t.a2i:t.b2j,_=&quot;a&quot;===y?r:i,w=&quot;a&quot;===y?i:r,T=&quot;a&quot;===y?e.a.length:e.b.length,k=&quot;a&quot;===y?e.b.length:e.a.length,M=Math.floor(&quot;a&quot;===y?t.b2j(w):t.a2i(w)),A=&quot;a&quot;===y?function(e){return t.evalxy([],e,M)}:function(e){return t.evalxy([],M,e)};x&amp;&amp;(s=Math.max(0,Math.min(k-2,M)),l=M-s,o=&quot;a&quot;===y?function(e,r){return t.dxydi([],e,s,r,l)}:function(e,r){return t.dxydj([],s,e,l,r)});var S=b(_[0]),E=b(_[1]),C=S&lt;E?1:-1,L=1e-8*(E-S),I=C&gt;0?Math.floor:Math.ceil,P=C&gt;0?Math.ceil:Math.floor,z=C&gt;0?Math.min:Math.max,O=C&gt;0?Math.max:Math.min,D=I(S+L),R=P(E-L),F=[[f=A(S)]];for(a=D;a*C&lt;R*C;a+=C)c=[],g=O(S,a),v=(m=z(E,a+C))-g,u=Math.max(0,Math.min(T-2,Math.floor(.5*(g+m)))),h=A(m),x&amp;&amp;(p=o(u,g-u),d=o(u,m-u),c.push([f[0]+p[0]/3*v,f[1]+p[1]/3*v]),c.push([h[0]-d[0]/3*v,h[1]-d[1]/3*v])),c.push(h),F.push(c),f=h;return F}},{&quot;../../lib&quot;:778}],966:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../components/color/attributes&quot;),a=t(&quot;../../plots/cartesian/layout_attributes&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll;t(&quot;../../constants/docs&quot;).FORMAT_LINK,t(&quot;../../constants/docs&quot;).TIME_FORMAT_LINK;e.exports={color:{valType:&quot;color&quot;,editType:&quot;calc&quot;},smoothing:{valType:&quot;number&quot;,dflt:1,min:0,max:1.3,editType:&quot;calc&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},font:n({editType:&quot;calc&quot;}),offset:{valType:&quot;number&quot;,dflt:10,editType:&quot;calc&quot;},editType:&quot;calc&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;date&quot;,&quot;category&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;},autotypenumbers:a.autotypenumbers,autorange:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],dflt:!0,editType:&quot;calc&quot;},rangemode:{valType:&quot;enumerated&quot;,values:[&quot;normal&quot;,&quot;tozero&quot;,&quot;nonnegative&quot;],dflt:&quot;normal&quot;,editType:&quot;calc&quot;},range:{valType:&quot;info_array&quot;,editType:&quot;calc&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}]},fixedrange:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},cheatertype:{valType:&quot;enumerated&quot;,values:[&quot;index&quot;,&quot;value&quot;],dflt:&quot;value&quot;,editType:&quot;calc&quot;},tickmode:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;array&quot;],dflt:&quot;array&quot;,editType:&quot;calc&quot;},nticks:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},tickvals:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},showticklabels:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;end&quot;,&quot;both&quot;,&quot;none&quot;],dflt:&quot;start&quot;,editType:&quot;calc&quot;},tickfont:n({editType:&quot;calc&quot;}),tickangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;calc&quot;},tickprefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showtickprefix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},ticksuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showticksuffix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},showexponent:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},exponentformat:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;e&quot;,&quot;E&quot;,&quot;power&quot;,&quot;SI&quot;,&quot;B&quot;],dflt:&quot;B&quot;,editType:&quot;calc&quot;},minexponent:{valType:&quot;number&quot;,dflt:3,min:0,editType:&quot;calc&quot;},separatethousands:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},tickformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},tickformatstops:o(a.tickformatstops,&quot;calc&quot;,&quot;from-root&quot;),categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},labelpadding:{valType:&quot;integer&quot;,dflt:10,editType:&quot;calc&quot;},labelprefix:{valType:&quot;string&quot;,editType:&quot;calc&quot;},labelsuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showline:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},linecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;calc&quot;},linewidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},gridcolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},showgrid:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},minorgridcount:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},minorgridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},minorgridcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;calc&quot;},startline:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},startlinecolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},startlinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},endline:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},endlinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},endlinecolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},tick0:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},dtick:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},arraytick0:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},arraydtick:{valType:&quot;integer&quot;,min:1,dflt:1,editType:&quot;calc&quot;},_deprecated:{title:{valType:&quot;string&quot;,editType:&quot;calc&quot;},titlefont:n({editType:&quot;calc&quot;}),titleoffset:{valType:&quot;number&quot;,dflt:10,editType:&quot;calc&quot;}},editType:&quot;calc&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../constants/docs&quot;:748,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/font_attributes&quot;:856}],967:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./attributes&quot;),i=t(&quot;../../components/color&quot;).addOpacity,a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),l=t(&quot;../../plots/cartesian/tick_label_defaults&quot;),c=t(&quot;../../plots/cartesian/category_order_defaults&quot;),u=t(&quot;../../plots/cartesian/set_convert&quot;),f=t(&quot;../../plots/cartesian/axis_autotype&quot;);e.exports=function(t,e,r){var h=r.letter,p=r.font||{},d=n[h+&quot;axis&quot;];function g(r,n){return o.coerce(t,e,d,r,n)}function m(r,n){return o.coerce2(t,e,d,r,n)}r.name&amp;&amp;(e._name=r.name,e._id=r.name),g(&quot;autotypenumbers&quot;,r.autotypenumbersDflt);var v=g(&quot;type&quot;);(&quot;-&quot;===v&amp;&amp;(r.data&amp;&amp;function(t,e){if(&quot;-&quot;!==t.type)return;var r=t._id.charAt(0),n=t[r+&quot;calendar&quot;];t.type=f(e,n,{autotypenumbers:t.autotypenumbers})}(e,r.data),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:v=t.type=e.type),g(&quot;smoothing&quot;),g(&quot;cheatertype&quot;),g(&quot;showticklabels&quot;),g(&quot;labelprefix&quot;,h+&quot; = &quot;),g(&quot;labelsuffix&quot;),g(&quot;showtickprefix&quot;),g(&quot;showticksuffix&quot;),g(&quot;separatethousands&quot;),g(&quot;tickformat&quot;),g(&quot;exponentformat&quot;),g(&quot;minexponent&quot;),g(&quot;showexponent&quot;),g(&quot;categoryorder&quot;),g(&quot;tickmode&quot;),g(&quot;tickvals&quot;),g(&quot;ticktext&quot;),g(&quot;tick0&quot;),g(&quot;dtick&quot;),&quot;array&quot;===e.tickmode&amp;&amp;(g(&quot;arraytick0&quot;),g(&quot;arraydtick&quot;)),g(&quot;labelpadding&quot;),e._hovertitle=h,&quot;date&quot;===v)&amp;&amp;a.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;,r.calendar);u(e,r.fullLayout),e.c2p=o.identity;var y=g(&quot;color&quot;,r.dfltColor),x=y===t.color?y:p.color;g(&quot;title.text&quot;)&amp;&amp;(o.coerceFont(g,&quot;title.font&quot;,{family:p.family,size:Math.round(1.2*p.size),color:x}),g(&quot;title.offset&quot;)),g(&quot;tickangle&quot;),g(&quot;autorange&quot;,!e.isValidRange(t.range))&amp;&amp;g(&quot;rangemode&quot;),g(&quot;range&quot;),e.cleanRange(),g(&quot;fixedrange&quot;),s(t,e,g,v),l(t,e,g,v,r),c(t,e,g,{data:r.data,dataAttr:h});var b=m(&quot;gridcolor&quot;,i(y,.3)),_=m(&quot;gridwidth&quot;),w=g(&quot;showgrid&quot;);w||(delete e.gridcolor,delete e.gridwidth);var T=m(&quot;startlinecolor&quot;,y),k=m(&quot;startlinewidth&quot;,_);g(&quot;startline&quot;,e.showgrid||!!T||!!k)||(delete e.startlinecolor,delete e.startlinewidth);var M=m(&quot;endlinecolor&quot;,y),A=m(&quot;endlinewidth&quot;,_);return g(&quot;endline&quot;,e.showgrid||!!M||!!A)||(delete e.endlinecolor,delete e.endlinewidth),w?(g(&quot;minorgridcount&quot;),g(&quot;minorgridwidth&quot;,_),g(&quot;minorgridcolor&quot;,i(b,.06)),e.minorgridcount||(delete e.minorgridwidth,delete e.minorgridcolor)):(delete e.gridcolor,delete e.gridWidth),&quot;none&quot;===e.showticklabels&amp;&amp;(delete e.tickfont,delete e.tickangle,delete e.showexponent,delete e.exponentformat,delete e.minexponent,delete e.tickformat,delete e.showticksuffix,delete e.showtickprefix),e.showticksuffix||delete e.ticksuffix,e.showtickprefix||delete e.tickprefix,g(&quot;tickmode&quot;),e}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_autotype&quot;:829,&quot;../../plots/cartesian/category_order_defaults&quot;:832,&quot;../../plots/cartesian/set_convert&quot;:848,&quot;../../plots/cartesian/tick_label_defaults&quot;:849,&quot;../../plots/cartesian/tick_value_defaults&quot;:851,&quot;../../registry&quot;:911,&quot;./attributes&quot;:964}],968:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;).isArray1D,a=t(&quot;./cheater_basis&quot;),o=t(&quot;./array_minmax&quot;),s=t(&quot;./calc_gridlines&quot;),l=t(&quot;./calc_labels&quot;),c=t(&quot;./calc_clippath&quot;),u=t(&quot;../heatmap/clean_2d_array&quot;),f=t(&quot;./smooth_fill_2d_array&quot;),h=t(&quot;../heatmap/convert_column_xyz&quot;),p=t(&quot;./set_convert&quot;);e.exports=function(t,e){var r=n.getFromId(t,e.xaxis),d=n.getFromId(t,e.yaxis),g=e.aaxis,m=e.baxis,v=e.x,y=e.y,x=[];v&amp;&amp;i(v)&amp;&amp;x.push(&quot;x&quot;),y&amp;&amp;i(y)&amp;&amp;x.push(&quot;y&quot;),x.length&amp;&amp;h(e,g,m,&quot;a&quot;,&quot;b&quot;,x);var b=e._a=e._a||e.a,_=e._b=e._b||e.b;v=e._x||e.x,y=e._y||e.y;var w={};if(e._cheater){var T=&quot;index&quot;===g.cheatertype?b.length:b,k=&quot;index&quot;===m.cheatertype?_.length:_;v=a(T,k,e.cheaterslope)}e._x=v=u(v),e._y=y=u(y),f(v,b,_),f(y,b,_),p(e),e.setScale();var M=o(v),A=o(y),S=.5*(M[1]-M[0]),E=.5*(M[1]+M[0]),C=.5*(A[1]-A[0]),L=.5*(A[1]+A[0]);return M=[E-1.3*S,E+1.3*S],A=[L-1.3*C,L+1.3*C],e._extremes[r._id]=n.findExtremes(r,M,{padded:!0}),e._extremes[d._id]=n.findExtremes(d,A,{padded:!0}),s(e,&quot;a&quot;,&quot;b&quot;),s(e,&quot;b&quot;,&quot;a&quot;),l(e,g),l(e,m),w.clipsegments=c(e._xctrl,e._yctrl,g,m),w.x=v,w.y=y,w.a=b,w.b=_,[w]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../heatmap/clean_2d_array&quot;:1067,&quot;../heatmap/convert_column_xyz&quot;:1069,&quot;./array_minmax&quot;:963,&quot;./calc_clippath&quot;:969,&quot;./calc_gridlines&quot;:970,&quot;./calc_labels&quot;:971,&quot;./cheater_basis&quot;:973,&quot;./set_convert&quot;:986,&quot;./smooth_fill_2d_array&quot;:987}],969:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i,a,o,s=[],l=!!r.smoothing,c=!!n.smoothing,u=t[0].length-1,f=t.length-1;for(i=0,a=[],o=[];i&lt;=u;i++)a[i]=t[0][i],o[i]=e[0][i];for(s.push({x:a,y:o,bicubic:l}),i=0,a=[],o=[];i&lt;=f;i++)a[i]=t[i][u],o[i]=e[i][u];for(s.push({x:a,y:o,bicubic:c}),i=u,a=[],o=[];i&gt;=0;i--)a[u-i]=t[f][i],o[u-i]=e[f][i];for(s.push({x:a,y:o,bicubic:l}),i=f,a=[],o=[];i&gt;=0;i--)a[f-i]=t[i][0],o[f-i]=e[i][0];return s.push({x:a,y:o,bicubic:c}),s}},{}],970:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=function(t,e,r){var a,o,s,l,c,u,f,h,p,d,g,m,v,y,x=t[&quot;_&quot;+e],b=t[e+&quot;axis&quot;],_=b._gridlines=[],w=b._minorgridlines=[],T=b._boundarylines=[],k=t[&quot;_&quot;+r],M=t[r+&quot;axis&quot;];&quot;array&quot;===b.tickmode&amp;&amp;(b.tickvals=x.slice());var A=t._xctrl,S=t._yctrl,E=A[0].length,C=A.length,L=t._a.length,I=t._b.length;n.prepTicks(b),&quot;array&quot;===b.tickmode&amp;&amp;delete b.tickvals;var P=b.smoothing?3:1;function z(n){var i,a,o,s,l,c,u,f,p,d,g,m,v=[],y=[],x={};if(&quot;b&quot;===e)for(a=t.b2j(n),o=Math.floor(Math.max(0,Math.min(I-2,a))),s=a-o,x.length=I,x.crossLength=L,x.xy=function(e){return t.evalxy([],e,a)},x.dxy=function(e,r){return t.dxydi([],e,o,r,s)},i=0;i&lt;L;i++)c=Math.min(L-2,i),u=i-c,f=t.evalxy([],i,a),M.smoothing&amp;&amp;i&gt;0&amp;&amp;(p=t.dxydi([],i-1,o,0,s),v.push(l[0]+p[0]/3),y.push(l[1]+p[1]/3),d=t.dxydi([],i-1,o,1,s),v.push(f[0]-d[0]/3),y.push(f[1]-d[1]/3)),v.push(f[0]),y.push(f[1]),l=f;else for(i=t.a2i(n),c=Math.floor(Math.max(0,Math.min(L-2,i))),u=i-c,x.length=L,x.crossLength=I,x.xy=function(e){return t.evalxy([],i,e)},x.dxy=function(e,r){return t.dxydj([],c,e,u,r)},a=0;a&lt;I;a++)o=Math.min(I-2,a),s=a-o,f=t.evalxy([],i,a),M.smoothing&amp;&amp;a&gt;0&amp;&amp;(g=t.dxydj([],c,a-1,u,0),v.push(l[0]+g[0]/3),y.push(l[1]+g[1]/3),m=t.dxydj([],c,a-1,u,1),v.push(f[0]-m[0]/3),y.push(f[1]-m[1]/3)),v.push(f[0]),y.push(f[1]),l=f;return x.axisLetter=e,x.axis=b,x.crossAxis=M,x.value=n,x.constvar=r,x.index=h,x.x=v,x.y=y,x.smoothing=M.smoothing,x}function O(n){var i,a,o,s,l,c=[],u=[],f={};if(f.length=x.length,f.crossLength=k.length,&quot;b&quot;===e)for(o=Math.max(0,Math.min(I-2,n)),l=Math.min(1,Math.max(0,n-o)),f.xy=function(e){return t.evalxy([],e,n)},f.dxy=function(e,r){return t.dxydi([],e,o,r,l)},i=0;i&lt;E;i++)c[i]=A[n*P][i],u[i]=S[n*P][i];else for(a=Math.max(0,Math.min(L-2,n)),s=Math.min(1,Math.max(0,n-a)),f.xy=function(e){return t.evalxy([],n,e)},f.dxy=function(e,r){return t.dxydj([],a,e,s,r)},i=0;i&lt;C;i++)c[i]=A[i][n*P],u[i]=S[i][n*P];return f.axisLetter=e,f.axis=b,f.crossAxis=M,f.value=x[n],f.constvar=r,f.index=n,f.x=c,f.y=u,f.smoothing=M.smoothing,f}if(&quot;array&quot;===b.tickmode){for(l=5e-15,u=(c=[Math.floor((x.length-1-b.arraytick0)/b.arraydtick*(1+l)),Math.ceil(-b.arraytick0/b.arraydtick/(1+l))].sort((function(t,e){return t-e})))[0]-1,f=c[1]+1,h=u;h&lt;f;h++)(o=b.arraytick0+b.arraydtick*h)&lt;0||o&gt;x.length-1||_.push(i(O(o),{color:b.gridcolor,width:b.gridwidth}));for(h=u;h&lt;f;h++)if(s=b.arraytick0+b.arraydtick*h,g=Math.min(s+b.arraydtick,x.length-1),!(s&lt;0||s&gt;x.length-1||g&lt;0||g&gt;x.length-1))for(m=x[s],v=x[g],a=0;a&lt;b.minorgridcount;a++)(y=g-s)&lt;=0||(d=m+(v-m)*(a+1)/(b.minorgridcount+1)*(b.arraydtick/y))&lt;x[0]||d&gt;x[x.length-1]||w.push(i(z(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&amp;&amp;T.push(i(O(0),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&amp;&amp;T.push(i(O(x.length-1),{color:b.endlinecolor,width:b.endlinewidth}))}else{for(l=5e-15,u=(c=[Math.floor((x[x.length-1]-b.tick0)/b.dtick*(1+l)),Math.ceil((x[0]-b.tick0)/b.dtick/(1+l))].sort((function(t,e){return t-e})))[0],f=c[1],h=u;h&lt;=f;h++)p=b.tick0+b.dtick*h,_.push(i(z(p),{color:b.gridcolor,width:b.gridwidth}));for(h=u-1;h&lt;f+1;h++)for(p=b.tick0+b.dtick*h,a=0;a&lt;b.minorgridcount;a++)(d=p+b.dtick*(a+1)/(b.minorgridcount+1))&lt;x[0]||d&gt;x[x.length-1]||w.push(i(z(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&amp;&amp;T.push(i(z(x[0]),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&amp;&amp;T.push(i(z(x[x.length-1]),{color:b.endlinecolor,width:b.endlinewidth}))}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/cartesian/axes&quot;:828}],971:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=function(t,e){var r,a,o,s=e._labels=[],l=e._gridlines;for(r=0;r&lt;l.length;r++)o=l[r],-1!==[&quot;start&quot;,&quot;both&quot;].indexOf(e.showticklabels)&amp;&amp;(a=n.tickText(e,o.value),i(a,{prefix:void 0,suffix:void 0,endAnchor:!0,xy:o.xy(0),dxy:o.dxy(0,0),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a)),-1!==[&quot;end&quot;,&quot;both&quot;].indexOf(e.showticklabels)&amp;&amp;(a=n.tickText(e,o.value),i(a,{endAnchor:!1,xy:o.xy(o.crossLength-1),dxy:o.dxy(o.crossLength-2,1),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a))}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/cartesian/axes&quot;:828}],972:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i=t[0]-e[0],a=t[1]-e[1],o=r[0]-e[0],s=r[1]-e[1],l=Math.pow(i*i+a*a,.25),c=Math.pow(o*o+s*s,.25),u=(c*c*i-l*l*o)*n,f=(c*c*a-l*l*s)*n,h=c*(l+c)*3,p=l*(l+c)*3;return[[e[0]+(h&amp;&amp;u/h),e[1]+(h&amp;&amp;f/h)],[e[0]-(p&amp;&amp;u/p),e[1]-(p&amp;&amp;f/p)]]}},{}],973:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r){var i,a,o,s,l,c,u=[],f=n(t)?t.length:t,h=n(e)?e.length:e,p=n(t)?t:null,d=n(e)?e:null;p&amp;&amp;(o=(p.length-1)/(p[p.length-1]-p[0])/(f-1)),d&amp;&amp;(s=(d.length-1)/(d[d.length-1]-d[0])/(h-1));var g=1/0,m=-1/0;for(a=0;a&lt;h;a++)for(u[a]=[],l=d?(d[a]-d[0])*s:a/(h-1),i=0;i&lt;f;i++)c=(p?(p[i]-p[0])*o:i/(f-1))-l*r,g=Math.min(c,g),m=Math.max(c,m),u[a][i]=c;var v=1/(m-g),y=-g*v;for(a=0;a&lt;h;a++)for(i=0;i&lt;f;i++)u[a][i]=v*u[a][i]+y;return u}},{&quot;../../lib&quot;:778}],974:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./catmull_rom&quot;),i=t(&quot;../../lib&quot;).ensureArray;function a(t,e,r){var n=-.5*r[0]+1.5*e[0],i=-.5*r[1]+1.5*e[1];return[(2*n+t[0])/3,(2*i+t[1])/3]}e.exports=function(t,e,r,o,s,l){var c,u,f,h,p,d,g,m,v,y,x=r[0].length,b=r.length,_=s?3*x-2:x,w=l?3*b-2:b;for(t=i(t,w),e=i(e,w),f=0;f&lt;w;f++)t[f]=i(t[f],_),e[f]=i(e[f],_);for(u=0,h=0;u&lt;b;u++,h+=l?3:1)for(p=t[h],d=e[h],g=r[u],m=o[u],c=0,f=0;c&lt;x;c++,f+=s?3:1)p[f]=g[c],d[f]=m[c];if(s)for(u=0,h=0;u&lt;b;u++,h+=l?3:1){for(c=1,f=3;c&lt;x-1;c++,f+=3)v=n([r[u][c-1],o[u][c-1]],[r[u][c],o[u][c]],[r[u][c+1],o[u][c+1]],s),t[h][f-1]=v[0][0],e[h][f-1]=v[0][1],t[h][f+1]=v[1][0],e[h][f+1]=v[1][1];y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=y[0],e[h][1]=y[1],y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=y[0],e[h][_-2]=y[1]}if(l)for(f=0;f&lt;_;f++){for(h=3;h&lt;w-3;h+=3)v=n([t[h-3][f],e[h-3][f]],[t[h][f],e[h][f]],[t[h+3][f],e[h+3][f]],l),t[h-1][f]=v[0][0],e[h-1][f]=v[0][1],t[h+1][f]=v[1][0],e[h+1][f]=v[1][1];y=a([t[0][f],e[0][f]],[t[2][f],e[2][f]],[t[3][f],e[3][f]]),t[1][f]=y[0],e[1][f]=y[1],y=a([t[w-1][f],e[w-1][f]],[t[w-3][f],e[w-3][f]],[t[w-4][f],e[w-4][f]]),t[w-2][f]=y[0],e[w-2][f]=y[1]}if(s&amp;&amp;l)for(h=1;h&lt;w;h+=(h+1)%3==0?2:1){for(f=3;f&lt;_-3;f+=3)v=n([t[h][f-3],e[h][f-3]],[t[h][f],e[h][f]],[t[h][f+3],e[h][f+3]],s),t[h][f-1]=.5*(t[h][f-1]+v[0][0]),e[h][f-1]=.5*(e[h][f-1]+v[0][1]),t[h][f+1]=.5*(t[h][f+1]+v[1][0]),e[h][f+1]=.5*(e[h][f+1]+v[1][1]);y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=.5*(t[h][1]+y[0]),e[h][1]=.5*(e[h][1]+y[1]),y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=.5*(t[h][_-2]+y[0]),e[h][_-2]=.5*(e[h][_-2]+y[1])}return[t,e]}},{&quot;../../lib&quot;:778,&quot;./catmull_rom&quot;:972}],975:[function(t,e,r){&quot;use strict&quot;;e.exports={RELATIVE_CULL_TOLERANCE:1e-6}},{}],976:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return e&amp;&amp;r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=1-i,d=p*p,g=p*i*2,m=-3*d,v=3*(d-g),y=3*(g-h),x=3*h,b=a*a,_=b*a,w=1-a,T=w*w,k=T*w;for(f=0;f&lt;t.length;f++)o=m*(u=t[f])[n][r]+v*u[n][r+1]+y*u[n][r+2]+x*u[n][r+3],s=m*u[n+1][r]+v*u[n+1][r+1]+y*u[n+1][r+2]+x*u[n+1][r+3],l=m*u[n+2][r]+v*u[n+2][r+1]+y*u[n+2][r+2]+x*u[n+2][r+3],c=m*u[n+3][r]+v*u[n+3][r+1]+y*u[n+3][r+2]+x*u[n+3][r+3],e[f]=k*o+3*(T*a*s+w*b*l)+_*c;return e}:e?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),r*=3;var u=i*i,f=1-i,h=f*f,p=f*i*2,d=-3*h,g=3*(h-p),m=3*(p-u),v=3*u,y=1-a;for(l=0;l&lt;t.length;l++)o=d*(c=t[l])[n][r]+g*c[n][r+1]+m*c[n][r+2]+v*c[n][r+3],s=d*c[n+1][r]+g*c[n+1][r+1]+m*c[n+1][r+2]+v*c[n+1][r+3],e[l]=y*o+a*s;return e}:r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),n*=3;var h=a*a,p=h*a,d=1-a,g=d*d,m=g*d;for(u=0;u&lt;t.length;u++)o=(f=t[u])[n][r+1]-f[n][r],s=f[n+1][r+1]-f[n+1][r],l=f[n+2][r+1]-f[n+2][r],c=f[n+3][r+1]-f[n+3][r],e[u]=m*o+3*(g*a*s+d*h*l)+p*c;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-a;for(l=0;l&lt;t.length;l++)o=(c=t[l])[n][r+1]-c[n][r],s=c[n+1][r+1]-c[n+1][r],e[l]=u*o+a*s;return e}}},{}],977:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return e&amp;&amp;r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=h*i,d=1-i,g=d*d,m=g*d,v=a*a,y=1-a,x=y*y,b=y*a*2,_=-3*x,w=3*(x-b),T=3*(b-v),k=3*v;for(f=0;f&lt;t.length;f++)o=_*(u=t[f])[n][r]+w*u[n+1][r]+T*u[n+2][r]+k*u[n+3][r],s=_*u[n][r+1]+w*u[n+1][r+1]+T*u[n+2][r+1]+k*u[n+3][r+1],l=_*u[n][r+2]+w*u[n+1][r+2]+T*u[n+2][r+2]+k*u[n+3][r+2],c=_*u[n][r+3]+w*u[n+1][r+3]+T*u[n+2][r+3]+k*u[n+3][r+3],e[f]=m*o+3*(g*i*s+d*h*l)+p*c;return e}:e?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3;var h=a*a,p=h*a,d=1-a,g=d*d,m=g*d;for(u=0;u&lt;t.length;u++)o=(f=t[u])[n+1][r]-f[n][r],s=f[n+1][r+1]-f[n][r+1],l=f[n+1][r+2]-f[n][r+2],c=f[n+1][r+3]-f[n][r+3],e[u]=m*o+3*(g*a*s+d*h*l)+p*c;return e}:r?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),n*=3;var u=1-i,f=a*a,h=1-a,p=h*h,d=h*a*2,g=-3*p,m=3*(p-d),v=3*(d-f),y=3*f;for(l=0;l&lt;t.length;l++)o=g*(c=t[l])[n][r]+m*c[n+1][r]+v*c[n+2][r]+y*c[n+3][r],s=g*c[n][r+1]+m*c[n+1][r+1]+v*c[n+2][r+1]+y*c[n+3][r+1],e[l]=u*o+i*s;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-i;for(l=0;l&lt;t.length;l++)o=(c=t[l])[n+1][r]-c[n][r],s=c[n+1][r+1]-c[n][r+1],e[l]=u*o+i*s;return e}}},{}],978:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=e-2,o=r-2;return n&amp;&amp;i?function(e,r,n){var i,s,l,c,u,f;e||(e=[]);var h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3,p*=3;var m=d*d,v=m*d,y=1-d,x=y*y,b=x*y,_=g*g,w=_*g,T=1-g,k=T*T,M=k*T;for(f=0;f&lt;t.length;f++)i=b*(u=t[f])[p][h]+3*(x*d*u[p][h+1]+y*m*u[p][h+2])+v*u[p][h+3],s=b*u[p+1][h]+3*(x*d*u[p+1][h+1]+y*m*u[p+1][h+2])+v*u[p+1][h+3],l=b*u[p+2][h]+3*(x*d*u[p+2][h+1]+y*m*u[p+2][h+2])+v*u[p+2][h+3],c=b*u[p+3][h]+3*(x*d*u[p+3][h+1]+y*m*u[p+3][h+2])+v*u[p+3][h+3],e[f]=M*i+3*(k*g*s+T*_*l)+w*c;return e}:n?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3;var m=d*d,v=m*d,y=1-d,x=y*y,b=x*y,_=1-g;for(u=0;u&lt;t.length;u++)i=_*(f=t[u])[p][h]+g*f[p+1][h],s=_*f[p][h+1]+g*f[p+1][h+1],l=_*f[p][h+2]+g*f[p+1][h+1],c=_*f[p][h+3]+g*f[p+1][h+1],e[u]=b*i+3*(x*d*s+y*m*l)+v*c;return e}:i?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));p*=3;var m=g*g,v=m*g,y=1-g,x=y*y,b=x*y,_=1-d;for(u=0;u&lt;t.length;u++)i=_*(f=t[u])[p][h]+d*f[p][h+1],s=_*f[p+1][h]+d*f[p+1][h+1],l=_*f[p+2][h]+d*f[p+2][h+1],c=_*f[p+3][h]+d*f[p+3][h+1],e[u]=b*i+3*(x*g*s+y*m*l)+v*c;return e}:function(e,r,n){e||(e=[]);var i,s,l,c,u=Math.max(0,Math.min(Math.floor(r),a)),f=Math.max(0,Math.min(Math.floor(n),o)),h=Math.max(0,Math.min(1,r-u)),p=Math.max(0,Math.min(1,n-f)),d=1-p,g=1-h;for(l=0;l&lt;t.length;l++)i=g*(c=t[l])[f][u]+h*c[f][u+1],s=g*c[f+1][u]+h*c[f+1][u+1],e[l]=d*i+p*s;return e}}},{}],979:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./xy_defaults&quot;),a=t(&quot;./ab_defaults&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../../components/color/attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}e._clipPathId=&quot;clip&quot;+e.uid+&quot;carpet&quot;;var u=c(&quot;color&quot;,s.defaultLine);(n.coerceFont(c,&quot;font&quot;),c(&quot;carpet&quot;),a(t,e,l,c,u),e.a&amp;&amp;e.b)?(e.a.length&lt;3&amp;&amp;(e.aaxis.smoothing=0),e.b.length&lt;3&amp;&amp;(e.baxis.smoothing=0),i(t,e,c)||(e.visible=!1),e._cheater&amp;&amp;c(&quot;cheaterslope&quot;)):e.visible=!1}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib&quot;:778,&quot;./ab_defaults&quot;:962,&quot;./attributes&quot;:964,&quot;./xy_defaults&quot;:988}],980:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),plot:t(&quot;./plot&quot;),calc:t(&quot;./calc&quot;),animatable:!0,isContainer:!0,moduleType:&quot;trace&quot;,name:&quot;carpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;carpet&quot;,&quot;carpetAxis&quot;,&quot;notLegendIsolatable&quot;,&quot;noMultiCategory&quot;,&quot;noHover&quot;,&quot;noSortingByValue&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:964,&quot;./calc&quot;:968,&quot;./defaults&quot;:979,&quot;./plot&quot;:985}],981:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r,n=t._fullData.length,i=0;i&lt;n;i++){var a=t._fullData[i];if(a.index!==e.index&amp;&amp;(&quot;carpet&quot;===a.type&amp;&amp;(r||(r=a),a.carpet===e.carpet)))return a}return r}},{}],982:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(0===t.length)return&quot;&quot;;var n,i=[],a=r?3:1;for(n=0;n&lt;t.length;n+=a)i.push(t[n]+&quot;,&quot;+e[n]),r&amp;&amp;n&lt;t.length-a&amp;&amp;(i.push(&quot;C&quot;),i.push([t[n+1]+&quot;,&quot;+e[n+1],t[n+2]+&quot;,&quot;+e[n+2]+&quot; &quot;].join(&quot; &quot;)));return i.join(r?&quot;&quot;:&quot;L&quot;)}},{}],983:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r){var i;for(n(t)?t.length&gt;e.length&amp;&amp;(t=t.slice(0,e.length)):t=[],i=0;i&lt;e.length;i++)t[i]=r(e[i]);return t}},{&quot;../../lib&quot;:778}],984:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a){var o=i[0]*t.dpdx(e),s=i[1]*t.dpdy(r),l=1,c=1;if(a){var u=Math.sqrt(i[0]*i[0]+i[1]*i[1]),f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=(i[0]*a[0]+i[1]*a[1])/u/f;c=Math.max(0,h)}var p=180*Math.atan2(s,o)/Math.PI;return p&lt;-90?(p+=180,l=-l):p&gt;90&amp;&amp;(p-=180,l=-l),{angle:p,flip:l,p:t.c2p(n,e,r),offsetMultplier:c}}},{}],985:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;./map_1d_array&quot;),o=t(&quot;./makepath&quot;),s=t(&quot;./orient_text&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../lib&quot;),u=c.strRotate,f=c.strTranslate,h=t(&quot;../../constants/alignment&quot;);function p(t,e,r,i,s,l){var c=&quot;const-&quot;+s+&quot;-lines&quot;,u=r.selectAll(&quot;.&quot;+c).data(l);u.enter().append(&quot;path&quot;).classed(c,!0).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;),u.each((function(r){var i=r,s=i.x,l=i.y,c=a([],s,t.c2p),u=a([],l,e.c2p),f=&quot;M&quot;+o(c,u,i.smoothing);n.select(this).attr(&quot;d&quot;,f).style(&quot;stroke-width&quot;,i.width).style(&quot;stroke&quot;,i.color).style(&quot;fill&quot;,&quot;none&quot;)})),u.exit().remove()}function d(t,e,r,a,o,c,h,p){var d=c.selectAll(&quot;text.&quot;+p).data(h);d.enter().append(&quot;text&quot;).classed(p,!0);var g=0,m={};return d.each((function(o,c){var h;if(&quot;auto&quot;===o.axis.tickangle)h=s(a,e,r,o.xy,o.dxy);else{var p=(o.axis.tickangle+180)*Math.PI/180;h=s(a,e,r,o.xy,[Math.cos(p),Math.sin(p)])}c||(m={angle:h.angle,flip:h.flip});var d=(o.endAnchor?-1:1)*h.flip,v=n.select(this).attr({&quot;text-anchor&quot;:d&gt;0?&quot;start&quot;:&quot;end&quot;,&quot;data-notex&quot;:1}).call(i.font,o.font).text(o.text).call(l.convertToTspans,t),y=i.bBox(this);v.attr(&quot;transform&quot;,f(h.p[0],h.p[1])+u(h.angle)+f(o.axis.labelpadding*d,.3*y.height)),g=Math.max(g,y.width+o.axis.labelpadding)})),d.exit().remove(),m.maxExtent=g,m}e.exports=function(t,e,r,i){var l=e.xaxis,u=e.yaxis,f=t._fullLayout._clips;c.makeTraceGroups(i,r,&quot;trace&quot;).each((function(e){var r=n.select(this),i=e[0],h=i.trace,g=h.aaxis,m=h.baxis,y=c.ensureSingle(r,&quot;g&quot;,&quot;minorlayer&quot;),x=c.ensureSingle(r,&quot;g&quot;,&quot;majorlayer&quot;),b=c.ensureSingle(r,&quot;g&quot;,&quot;boundarylayer&quot;),_=c.ensureSingle(r,&quot;g&quot;,&quot;labellayer&quot;);r.style(&quot;opacity&quot;,h.opacity),p(l,u,x,g,&quot;a&quot;,g._gridlines),p(l,u,x,m,&quot;b&quot;,m._gridlines),p(l,u,y,g,&quot;a&quot;,g._minorgridlines),p(l,u,y,m,&quot;b&quot;,m._minorgridlines),p(l,u,b,g,&quot;a-boundary&quot;,g._boundarylines),p(l,u,b,m,&quot;b-boundary&quot;,m._boundarylines);var w=d(t,l,u,h,i,_,g._labels,&quot;a-label&quot;),T=d(t,l,u,h,i,_,m._labels,&quot;b-label&quot;);!function(t,e,r,n,i,a,o,l){var u,f,h,p,d=c.aggNums(Math.min,null,r.a),g=c.aggNums(Math.max,null,r.a),m=c.aggNums(Math.min,null,r.b),y=c.aggNums(Math.max,null,r.b);u=.5*(d+g),f=m,h=r.ab2xy(u,f,!0),p=r.dxyda_rough(u,f),void 0===o.angle&amp;&amp;c.extendFlat(o,s(r,i,a,h,r.dxydb_rough(u,f)));v(t,e,r,n,h,p,r.aaxis,i,a,o,&quot;a-title&quot;),u=d,f=.5*(m+y),h=r.ab2xy(u,f,!0),p=r.dxydb_rough(u,f),void 0===l.angle&amp;&amp;c.extendFlat(l,s(r,i,a,h,r.dxyda_rough(u,f)));v(t,e,r,n,h,p,r.baxis,i,a,l,&quot;b-title&quot;)}(t,_,h,i,l,u,w,T),function(t,e,r,n,i){var s,l,u,f,h=r.select(&quot;#&quot;+t._clipPathId);h.size()||(h=r.append(&quot;clipPath&quot;).classed(&quot;carpetclip&quot;,!0));var p=c.ensureSingle(h,&quot;path&quot;,&quot;carpetboundary&quot;),d=e.clipsegments,g=[];for(f=0;f&lt;d.length;f++)s=d[f],l=a([],s.x,n.c2p),u=a([],s.y,i.c2p),g.push(o(l,u,s.bicubic));var m=&quot;M&quot;+g.join(&quot;L&quot;)+&quot;Z&quot;;h.attr(&quot;id&quot;,t._clipPathId),p.attr(&quot;d&quot;,m)}(h,i,f,l,u)}))};var g=h.LINE_SPACING,m=(1-h.MID_SHIFT)/g+1;function v(t,e,r,a,o,c,h,p,d,v,y){var x=[];h.title.text&amp;&amp;x.push(h.title.text);var b=e.selectAll(&quot;text.&quot;+y).data(x),_=v.maxExtent;b.enter().append(&quot;text&quot;).classed(y,!0),b.each((function(){var e=s(r,p,d,o,c);-1===[&quot;start&quot;,&quot;both&quot;].indexOf(h.showticklabels)&amp;&amp;(_=0);var a=h.title.font.size;_+=a+h.title.offset;var y=(v.angle+(v.flip&lt;0?180:0)-e.angle+450)%360,x=y&gt;90&amp;&amp;y&lt;270,b=n.select(this);b.text(h.title.text).call(l.convertToTspans,t),x&amp;&amp;(_=(-l.lineCount(b)+m)*g*a-_),b.attr(&quot;transform&quot;,f(e.p[0],e.p[1])+u(e.angle)+f(0,_)).attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(i.font,h.title.font)})),b.exit().remove()}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;./makepath&quot;:982,&quot;./map_1d_array&quot;:983,&quot;./orient_text&quot;:984,d3:169}],986:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib/search&quot;).findBin,a=t(&quot;./compute_control_points&quot;),o=t(&quot;./create_spline_evaluator&quot;),s=t(&quot;./create_i_derivative_evaluator&quot;),l=t(&quot;./create_j_derivative_evaluator&quot;);e.exports=function(t){var e=t._a,r=t._b,c=e.length,u=r.length,f=t.aaxis,h=t.baxis,p=e[0],d=e[c-1],g=r[0],m=r[u-1],v=e[e.length-1]-e[0],y=r[r.length-1]-r[0],x=v*n.RELATIVE_CULL_TOLERANCE,b=y*n.RELATIVE_CULL_TOLERANCE;p-=x,d+=x,g-=b,m+=b,t.isVisible=function(t,e){return t&gt;p&amp;&amp;t&lt;d&amp;&amp;e&gt;g&amp;&amp;e&lt;m},t.isOccluded=function(t,e){return t&lt;p||t&gt;d||e&lt;g||e&gt;m},t.setScale=function(){var e=t._x,r=t._y,n=a(t._xctrl,t._yctrl,e,r,f.smoothing,h.smoothing);t._xctrl=n[0],t._yctrl=n[1],t.evalxy=o([t._xctrl,t._yctrl],c,u,f.smoothing,h.smoothing),t.dxydi=s([t._xctrl,t._yctrl],f.smoothing,h.smoothing),t.dxydj=l([t._xctrl,t._yctrl],f.smoothing,h.smoothing)},t.i2a=function(t){var r=Math.max(0,Math.floor(t[0]),c-2),n=t[0]-r;return(1-n)*e[r]+n*e[r+1]},t.j2b=function(t){var e=Math.max(0,Math.floor(t[1]),c-2),n=t[1]-e;return(1-n)*r[e]+n*r[e+1]},t.ij2ab=function(e){return[t.i2a(e[0]),t.j2b(e[1])]},t.a2i=function(t){var r=Math.max(0,Math.min(i(t,e),c-2)),n=e[r],a=e[r+1];return Math.max(0,Math.min(c-1,r+(t-n)/(a-n)))},t.b2j=function(t){var e=Math.max(0,Math.min(i(t,r),u-2)),n=r[e],a=r[e+1];return Math.max(0,Math.min(u-1,e+(t-n)/(a-n)))},t.ab2ij=function(e){return[t.a2i(e[0]),t.b2j(e[1])]},t.i2c=function(e,r){return t.evalxy([],e,r)},t.ab2xy=function(n,i,a){if(!a&amp;&amp;(n&lt;e[0]||n&gt;e[c-1]|i&lt;r[0]||i&gt;r[u-1]))return[!1,!1];var o=t.a2i(n),s=t.b2j(i),l=t.evalxy([],o,s);if(a){var f,h,p,d,g=0,m=0,v=[];n&lt;e[0]?(f=0,h=0,g=(n-e[0])/(e[1]-e[0])):n&gt;e[c-1]?(f=c-2,h=1,g=(n-e[c-1])/(e[c-1]-e[c-2])):h=o-(f=Math.max(0,Math.min(c-2,Math.floor(o)))),i&lt;r[0]?(p=0,d=0,m=(i-r[0])/(r[1]-r[0])):i&gt;r[u-1]?(p=u-2,d=1,m=(i-r[u-1])/(r[u-1]-r[u-2])):d=s-(p=Math.max(0,Math.min(u-2,Math.floor(s)))),g&amp;&amp;(t.dxydi(v,f,p,h,d),l[0]+=v[0]*g,l[1]+=v[1]*g),m&amp;&amp;(t.dxydj(v,f,p,h,d),l[0]+=v[0]*m,l[1]+=v[1]*m)}return l},t.c2p=function(t,e,r){return[e.c2p(t[0]),r.c2p(t[1])]},t.p2x=function(t,e,r){return[e.p2c(t[0]),r.p2c(t[1])]},t.dadi=function(t){var r=Math.max(0,Math.min(e.length-2,t));return e[r+1]-e[r]},t.dbdj=function(t){var e=Math.max(0,Math.min(r.length-2,t));return r[e+1]-r[e]},t.dxyda=function(e,r,n,i){var a=t.dxydi(null,e,r,n,i),o=t.dadi(e,n);return[a[0]/o,a[1]/o]},t.dxydb=function(e,r,n,i){var a=t.dxydj(null,e,r,n,i),o=t.dbdj(r,i);return[a[0]/o,a[1]/o]},t.dxyda_rough=function(e,r,n){var i=v*(n||.1),a=t.ab2xy(e+i,r,!0),o=t.ab2xy(e-i,r,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dxydb_rough=function(e,r,n){var i=y*(n||.1),a=t.ab2xy(e,r+i,!0),o=t.ab2xy(e,r-i,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dpdx=function(t){return t._m},t.dpdy=function(t){return t._m}}},{&quot;../../lib/search&quot;:798,&quot;./compute_control_points&quot;:974,&quot;./constants&quot;:975,&quot;./create_i_derivative_evaluator&quot;:976,&quot;./create_j_derivative_evaluator&quot;:977,&quot;./create_spline_evaluator&quot;:978}],987:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r){var i,a,o,s=[],l=[],c=t[0].length,u=t.length;function f(e,r){var n,i=0,a=0;return e&gt;0&amp;&amp;void 0!==(n=t[r][e-1])&amp;&amp;(a++,i+=n),e&lt;c-1&amp;&amp;void 0!==(n=t[r][e+1])&amp;&amp;(a++,i+=n),r&gt;0&amp;&amp;void 0!==(n=t[r-1][e])&amp;&amp;(a++,i+=n),r&lt;u-1&amp;&amp;void 0!==(n=t[r+1][e])&amp;&amp;(a++,i+=n),i/Math.max(1,a)}var h,p,d,g,m,v,y,x,b,_,w,T=0;for(i=0;i&lt;c;i++)for(a=0;a&lt;u;a++)void 0===t[a][i]&amp;&amp;(s.push(i),l.push(a),t[a][i]=f(i,a)),T=Math.max(T,Math.abs(t[a][i]));if(!s.length)return t;var k=0,M=0,A=s.length;do{for(k=0,o=0;o&lt;A;o++){i=s[o],a=l[o];var S,E,C,L,I,P,z=0,O=0;0===i?(C=e[I=Math.min(c-1,2)],L=e[1],S=t[a][I],O+=(E=t[a][1])+(E-S)*(e[0]-L)/(L-C),z++):i===c-1&amp;&amp;(C=e[I=Math.max(0,c-3)],L=e[c-2],S=t[a][I],O+=(E=t[a][c-2])+(E-S)*(e[c-1]-L)/(L-C),z++),(0===i||i===c-1)&amp;&amp;a&gt;0&amp;&amp;a&lt;u-1&amp;&amp;(h=r[a+1]-r[a],O+=((p=r[a]-r[a-1])*t[a+1][i]+h*t[a-1][i])/(p+h),z++),0===a?(C=r[P=Math.min(u-1,2)],L=r[1],S=t[P][i],O+=(E=t[1][i])+(E-S)*(r[0]-L)/(L-C),z++):a===u-1&amp;&amp;(C=r[P=Math.max(0,u-3)],L=r[u-2],S=t[P][i],O+=(E=t[u-2][i])+(E-S)*(r[u-1]-L)/(L-C),z++),(0===a||a===u-1)&amp;&amp;i&gt;0&amp;&amp;i&lt;c-1&amp;&amp;(h=e[i+1]-e[i],O+=((p=e[i]-e[i-1])*t[a][i+1]+h*t[a][i-1])/(p+h),z++),z?O/=z:(d=e[i+1]-e[i],g=e[i]-e[i-1],x=(m=r[a+1]-r[a])*(v=r[a]-r[a-1])*(m+v),O=((y=d*g*(d+g))*(v*t[a+1][i]+m*t[a-1][i])+x*(g*t[a][i+1]+d*t[a][i-1]))/(x*(g+d)+y*(v+m))),k+=(_=(b=O-t[a][i])/T)*_,w=z?0:.85,t[a][i]+=b*(1+w)}k=Math.sqrt(k)}while(M++&lt;100&amp;&amp;k&gt;1e-5);return n.log(&quot;Smoother converged to&quot;,k,&quot;after&quot;,M,&quot;iterations&quot;),t}},{&quot;../../lib&quot;:778}],988:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArray1D;e.exports=function(t,e,r){var i=r(&quot;x&quot;),a=i&amp;&amp;i.length,o=r(&quot;y&quot;),s=o&amp;&amp;o.length;if(!a&amp;&amp;!s)return!1;if(e._cheater=!i,a&amp;&amp;!n(i)||s&amp;&amp;!n(o))e._length=null;else{var l=a?i.length:1/0;s&amp;&amp;(l=Math.min(l,o.length)),e.a&amp;&amp;e.a.length&amp;&amp;(l=Math.min(l,e.a.length)),e.b&amp;&amp;e.b.length&amp;&amp;(l=Math.min(l,e.b.length)),e._length=l}return!0}},{&quot;../../lib&quot;:778}],989:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../scattergeo/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/color/attributes&quot;).defaultLine,l=t(&quot;../../lib/extend&quot;).extendFlat,c=i.marker.line;e.exports=l({locations:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},locationmode:i.locationmode,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},geojson:l({},i.geojson,{}),featureidkey:i.featureidkey,text:l({},i.text,{}),hovertext:l({},i.hovertext,{}),marker:{line:{color:l({},c.color,{dflt:s}),width:l({},c.width,{dflt:1}),editType:&quot;calc&quot;},opacity:{valType:&quot;number&quot;,arrayOk:!0,min:0,max:1,dflt:1,editType:&quot;style&quot;},editType:&quot;calc&quot;},selected:{marker:{opacity:i.selected.marker.opacity,editType:&quot;plot&quot;},editType:&quot;plot&quot;},unselected:{marker:{opacity:i.unselected.marker.opacity,editType:&quot;plot&quot;},editType:&quot;plot&quot;},hoverinfo:l({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;location&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n(),showlegend:l({},o.showlegend,{dflt:!1})},a(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/color/attributes&quot;:642,&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scattergeo/attributes&quot;:1229}],990:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../components/colorscale/calc&quot;),o=t(&quot;../scatter/arrays_to_calcdata&quot;),s=t(&quot;../scatter/calc_selection&quot;);function l(t){return t&amp;&amp;&quot;string&quot;==typeof t}e.exports=function(t,e){var r,c=e._length,u=new Array(c);r=e.geojson?function(t){return l(t)||n(t)}:l;for(var f=0;f&lt;c;f++){var h=u[f]={},p=e.locations[f],d=e.z[f];r(p)&amp;&amp;n(d)?(h.loc=p,h.z=d):(h.loc=null,h.z=i),h.index=f}return o(u,e),a(t,e,{vals:e.z,containerStr:&quot;&quot;,cLetter:&quot;z&quot;}),s(u,e),u}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../constants/numerical&quot;:753,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc_selection&quot;:1189,&quot;fast-isnumeric&quot;:241}],991:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;locations&quot;),c=s(&quot;z&quot;);if(l&amp;&amp;l.length&amp;&amp;n.isArrayOrTypedArray(c)&amp;&amp;c.length){e._length=Math.min(l.length,c.length);var u,f=s(&quot;geojson&quot;);(&quot;string&quot;==typeof f&amp;&amp;&quot;&quot;!==f||n.isPlainObject(f))&amp;&amp;(u=&quot;geojson-id&quot;),&quot;geojson-id&quot;===s(&quot;locationmode&quot;,u)&amp;&amp;s(&quot;featureidkey&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;marker.line.width&quot;)&amp;&amp;s(&quot;marker.line.color&quot;),s(&quot;marker.opacity&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),n.coerceSelectionMarkerOpacity(e,s)}else e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:989}],992:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){t.location=e.location,t.z=e.z;var a=n[i];return a.fIn&amp;&amp;a.fIn.properties&amp;&amp;(t.properties=a.fIn.properties),t.ct=a.ct,t}},{}],993:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../lib&quot;).fillText;e.exports=function(t,e,r){var o,s,l,c,u=t.cd,f=u[0].trace,h=t.subplot,p=[e,r],d=[e+360,r];for(s=0;s&lt;u.length;s++)if(c=!1,(o=u[s])._polygons){for(l=0;l&lt;o._polygons.length;l++)o._polygons[l].contains(p)&amp;&amp;(c=!c),o._polygons[l].contains(d)&amp;&amp;(c=!c);if(c)break}if(c&amp;&amp;o)return t.x0=t.x1=t.xa.c2p(o.ct),t.y0=t.y1=t.ya.c2p(o.ct),t.index=o.index,t.location=o.loc,t.z=o.z,t.zLabel=n.tickText(h.mockAxis,h.mockAxis.c2l(o.z),&quot;hover&quot;).text,t.hovertemplate=o.hovertemplate,function(t,e,r){if(e.hovertemplate)return;var n=r.hi||e.hoverinfo,o=String(r.loc),s=&quot;all&quot;===n?i.hoverinfo.flags:n.split(&quot;+&quot;),l=-1!==s.indexOf(&quot;name&quot;),c=-1!==s.indexOf(&quot;location&quot;),u=-1!==s.indexOf(&quot;z&quot;),f=-1!==s.indexOf(&quot;text&quot;),h=[];!l&amp;&amp;c?t.nameOverride=o:(l&amp;&amp;(t.nameOverride=e.name),c&amp;&amp;h.push(o));u&amp;&amp;h.push(t.zLabel);f&amp;&amp;a(r,e,h);t.extraText=h.join(&quot;&lt;br&gt;&quot;)}(t,f,o),[t]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:989}],994:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;./calc&quot;),calcGeoJSON:t(&quot;./plot&quot;).calcGeoJSON,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;choropleth&quot;,basePlotModule:t(&quot;../../plots/geo&quot;),categories:[&quot;geo&quot;,&quot;noOpacity&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/geo&quot;:860,&quot;../heatmap/colorbar&quot;:1068,&quot;./attributes&quot;:989,&quot;./calc&quot;:990,&quot;./defaults&quot;:991,&quot;./event_data&quot;:992,&quot;./hover&quot;:993,&quot;./plot&quot;:995,&quot;./select&quot;:996,&quot;./style&quot;:997}],995:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/geo_location_utils&quot;),o=t(&quot;../../lib/topojson_utils&quot;).getTopojsonFeatures,s=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,l=t(&quot;./style&quot;).style;e.exports={calcGeoJSON:function(t,e){for(var r=t[0].trace,n=e[r.geo],i=n._subplot,l=r.locationmode,c=r._length,u=&quot;geojson-id&quot;===l?a.extractTraceFeature(t):o(r,i.topojson),f=[],h=[],p=0;p&lt;c;p++){var d=t[p],g=&quot;geojson-id&quot;===l?d.fOut:a.locationToFeature(l,d.loc,u);if(g){d.geojson=g,d.ct=g.properties.ct,d._polygons=a.feature2polygons(g);var m=a.computeBbox(g);f.push(m[0],m[2]),h.push(m[1],m[3])}else d.geojson=null}if(&quot;geojson&quot;===n.fitbounds&amp;&amp;&quot;geojson-id&quot;===l){var v=a.computeBbox(a.getTraceGeojson(r));f=[v[0],v[2]],h=[v[1],v[3]]}var y={padded:!0};r._extremes.lon=s(n.lonaxis._ax,f,y),r._extremes.lat=s(n.lataxis._ax,h,y)},plot:function(t,e,r){var a=e.layers.backplot.select(&quot;.choroplethlayer&quot;);i.makeTraceGroups(a,r,&quot;trace choropleth&quot;).each((function(e){var r=n.select(this).selectAll(&quot;path.choroplethlocation&quot;).data(i.identity);r.enter().append(&quot;path&quot;).classed(&quot;choroplethlocation&quot;,!0),r.exit().remove(),l(t,e)}))}}},{&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/topojson_utils&quot;:806,&quot;../../plots/cartesian/autorange&quot;:827,&quot;./style&quot;:997,d3:169}],996:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[];if(!1===e)for(r=0;r&lt;s.length;r++)s[r].selected=0;else for(r=0;r&lt;s.length;r++)(i=(n=s[r]).ct)&amp;&amp;(a=l.c2p(i),o=c.c2p(i),e.contains([a,o],null,r,t)?(u.push({pointNumber:r,lon:i[0],lat:i[1]}),n.selected=1):n.selected=0);return u}},{}],997:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../components/colorscale&quot;);function s(t,e){var r=e[0].trace,s=e[0].node3.selectAll(&quot;.choroplethlocation&quot;),l=r.marker||{},c=l.line||{},u=o.makeColorScaleFuncFromTrace(r);s.each((function(t){n.select(this).attr(&quot;fill&quot;,u(t.z)).call(i.stroke,t.mlc||c.color).call(a.dashLine,&quot;&quot;,t.mlw||c.width||0).style(&quot;opacity&quot;,l.opacity)})),a.selectedPointStyle(s,r,t)}e.exports={style:function(t,e){e&amp;&amp;s(t,e)},styleOnSelect:function(t,e){var r=e[0].node3,n=e[0].trace;n.selectedpoints?a.selectedPointStyle(r.selectAll(&quot;.choroplethlocation&quot;),n,t):s(t,e)}}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,d3:169}],998:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../choropleth/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({locations:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},geojson:{valType:&quot;any&quot;,editType:&quot;calc&quot;},featureidkey:s({},n.featureidkey,{}),below:{valType:&quot;string&quot;,editType:&quot;plot&quot;},text:n.text,hovertext:n.hovertext,marker:{line:{color:s({},n.marker.line.color,{editType:&quot;plot&quot;}),width:s({},n.marker.line.width,{editType:&quot;plot&quot;}),editType:&quot;calc&quot;},opacity:s({},n.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;calc&quot;},selected:{marker:{opacity:s({},n.selected.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},editType:&quot;plot&quot;},unselected:{marker:{opacity:s({},n.unselected.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},editType:&quot;plot&quot;},hoverinfo:n.hoverinfo,hovertemplate:a({},{keys:[&quot;properties&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})},i(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../choropleth/attributes&quot;:989}],999:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib/geojson_utils&quot;).makeBlank,l=t(&quot;../../lib/geo_location_utils&quot;);function c(t){var e,r=t[0].trace,n=r._opts;if(r.selectedpoints){for(var a=o.makeSelectedPointStyleFns(r),s=0;s&lt;t.length;s++){var l=t[s];l.fOut&amp;&amp;(l.fOut.properties.mo2=a.selectedOpacityFn(l))}e={type:&quot;identity&quot;,property:&quot;mo2&quot;}}else e=i.isArrayOrTypedArray(r.marker.opacity)?{type:&quot;identity&quot;,property:&quot;mo&quot;}:r.marker.opacity;return i.extendFlat(n.fill.paint,{&quot;fill-opacity&quot;:e}),i.extendFlat(n.line.paint,{&quot;line-opacity&quot;:e}),n}e.exports={convert:function(t){var e=t[0].trace,r=!0===e.visible&amp;&amp;0!==e._length,o={layout:{visibility:&quot;none&quot;},paint:{}},u={layout:{visibility:&quot;none&quot;},paint:{}},f=e._opts={fill:o,line:u,geojson:s()};if(!r)return f;var h=l.extractTraceFeature(t);if(!h)return f;var p,d,g,m=a.makeColorScaleFuncFromTrace(e),v=e.marker,y=v.line||{};i.isArrayOrTypedArray(v.opacity)&amp;&amp;(p=function(t){var e=t.mo;return n(e)?+i.constrain(e,0,1):0}),i.isArrayOrTypedArray(y.color)&amp;&amp;(d=function(t){return t.mlc}),i.isArrayOrTypedArray(y.width)&amp;&amp;(g=function(t){return t.mlw});for(var x=0;x&lt;t.length;x++){var b=t[x],_=b.fOut;if(_){var w=_.properties;w.fc=m(b.z),p&amp;&amp;(w.mo=p(b)),d&amp;&amp;(w.mlc=d(b)),g&amp;&amp;(w.mlw=g(b)),b.ct=w.ct,b._polygons=l.feature2polygons(_)}}var T=p?{type:&quot;identity&quot;,property:&quot;mo&quot;}:v.opacity;return i.extendFlat(o.paint,{&quot;fill-color&quot;:{type:&quot;identity&quot;,property:&quot;fc&quot;},&quot;fill-opacity&quot;:T}),i.extendFlat(u.paint,{&quot;line-color&quot;:d?{type:&quot;identity&quot;,property:&quot;mlc&quot;}:y.color,&quot;line-width&quot;:g?{type:&quot;identity&quot;,property:&quot;mlw&quot;}:y.width,&quot;line-opacity&quot;:T}),o.layout.visibility=&quot;visible&quot;,u.layout.visibility=&quot;visible&quot;,f.geojson={type:&quot;FeatureCollection&quot;,features:h},c(t),f},convertOnSelect:c}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/geojson_utils&quot;:772,&quot;fast-isnumeric&quot;:241}],1e3:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;locations&quot;),c=s(&quot;z&quot;),u=s(&quot;geojson&quot;);n.isArrayOrTypedArray(l)&amp;&amp;l.length&amp;&amp;n.isArrayOrTypedArray(c)&amp;&amp;c.length&amp;&amp;(&quot;string&quot;==typeof u&amp;&amp;&quot;&quot;!==u||n.isPlainObject(u))?(s(&quot;featureidkey&quot;),e._length=Math.min(l.length,c.length),s(&quot;below&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;marker.line.width&quot;)&amp;&amp;s(&quot;marker.line.color&quot;),s(&quot;marker.opacity&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),n.coerceSelectionMarkerOpacity(e,s)):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:998}],1001:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;../choropleth/calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;../choropleth/hover&quot;),eventData:t(&quot;../choropleth/event_data&quot;),selectPoints:t(&quot;../choropleth/select&quot;),styleOnSelect:function(t,e){e&amp;&amp;e[0].trace._glTrace.updateOnSelect(e)},getBelow:function(t,e){for(var r=e.getMapLayers(),n=r.length-2;n&gt;=0;n--){var i=r[n].id;if(&quot;string&quot;==typeof i&amp;&amp;0===i.indexOf(&quot;water&quot;))for(var a=n+1;a&lt;r.length;a++)if(&quot;string&quot;==typeof(i=r[a].id)&amp;&amp;-1===i.indexOf(&quot;plotly-&quot;))return i}},moduleType:&quot;trace&quot;,name:&quot;choroplethmapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;noOpacity&quot;,&quot;showLegend&quot;],meta:{hr_name:&quot;choropleth_mapbox&quot;}}},{&quot;../../plots/mapbox&quot;:885,&quot;../choropleth/calc&quot;:990,&quot;../choropleth/event_data&quot;:992,&quot;../choropleth/hover&quot;:993,&quot;../choropleth/select&quot;:996,&quot;../heatmap/colorbar&quot;:1068,&quot;./attributes&quot;:998,&quot;./defaults&quot;:1e3,&quot;./plot&quot;:1002}],1002:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;).convert,i=t(&quot;./convert&quot;).convertOnSelect,a=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix;function o(t,e){this.type=&quot;choroplethmapbox&quot;,this.subplot=t,this.uid=e,this.sourceId=&quot;source-&quot;+e,this.layerList=[[&quot;fill&quot;,a+e+&quot;-fill&quot;],[&quot;line&quot;,a+e+&quot;-line&quot;]],this.below=null}var s=o.prototype;s.update=function(t){this._update(n(t))},s.updateOnSelect=function(t){this._update(i(t))},s._update=function(t){var e=this.subplot,r=this.layerList,n=e.belowLookup[&quot;trace-&quot;+this.uid];e.map.getSource(this.sourceId).setData(t.geojson),n!==this.below&amp;&amp;(this._removeLayers(),this._addLayers(t,n),this.below=n);for(var i=0;i&lt;r.length;i++){var a=r[i],o=a[0],s=a[1],l=t[o];e.setOptions(s,&quot;setLayoutProperty&quot;,l.layout),&quot;visible&quot;===l.layout.visibility&amp;&amp;e.setOptions(s,&quot;setPaintProperty&quot;,l.paint)}},s._addLayers=function(t,e){for(var r=this.subplot,n=this.layerList,i=this.sourceId,a=0;a&lt;n.length;a++){var o=n[a],s=o[0],l=t[s];r.addLayer({type:s,id:o[1],source:i,layout:l.layout,paint:l.paint},e)}},s._removeLayers=function(){for(var t=this.subplot.map,e=this.layerList,r=e.length-1;r&gt;=0;r--)t.removeLayer(e[r][1])},s.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new o(t,r.uid),a=i.sourceId,s=n(e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid];return t.map.addSource(a,{type:&quot;geojson&quot;,data:s.geojson}),i._addLayers(s,l),e[0].trace._glTrace=i,i}},{&quot;../../plots/mapbox/constants&quot;:883,&quot;./convert&quot;:999}],1003:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../mesh3d/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},u:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},v:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},w:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;absolute&quot;],editType:&quot;calc&quot;,dflt:&quot;scaled&quot;},sizeref:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0},anchor:{valType:&quot;enumerated&quot;,editType:&quot;calc&quot;,values:[&quot;tip&quot;,&quot;tail&quot;,&quot;cm&quot;,&quot;center&quot;],dflt:&quot;cm&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertemplate:i({editType:&quot;calc&quot;},{keys:[&quot;norm&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})};s(l,n(&quot;&quot;,{colorAttr:&quot;u/v/w norm&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}));[&quot;opacity&quot;,&quot;lightposition&quot;,&quot;lighting&quot;].forEach((function(t){l[t]=a[t]})),l.hoverinfo=s({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;norm&quot;,&quot;text&quot;,&quot;name&quot;],dflt:&quot;x+y+z+norm+text+name&quot;}),l.transforms=void 0,e.exports=l},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../mesh3d/attributes&quot;:1128}],1004:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){for(var r=e.u,i=e.v,a=e.w,o=Math.min(e.x.length,e.y.length,e.z.length,r.length,i.length,a.length),s=-1/0,l=1/0,c=0;c&lt;o;c++){var u=r[c],f=i[c],h=a[c],p=Math.sqrt(u*u+f*f+h*h);s=Math.max(s,p),l=Math.min(l,p)}e._len=o,e._normMax=s,n(t,e,{vals:[l,s],containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651}],1005:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-cone3d&quot;),i=t(&quot;gl-cone3d&quot;).createConeMesh,a=t(&quot;../../lib&quot;).simpleMap,o=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,s=t(&quot;../../components/colorscale&quot;).extractOpts,l=t(&quot;../../plots/gl3d/zip3&quot;);function c(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var u=c.prototype;u.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index,r=this.data.x[e],n=this.data.y[e],i=this.data.z[e],a=this.data.u[e],o=this.data.v[e],s=this.data.w[e];t.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return Array.isArray(l)&amp;&amp;void 0!==l[e]?t.textLabel=l[e]:l&amp;&amp;(t.textLabel=l),!0}};var f={xaxis:0,yaxis:1,zaxis:2},h={tip:1,tail:0,cm:.25,center:.5},p={tip:1,tail:1,cm:.75,center:.5};function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,c={};function u(t,e){var n=r[e],o=i[f[e]];return a(t,(function(t){return n.d2l(t)*o}))}c.vectors=l(u(e.u,&quot;xaxis&quot;),u(e.v,&quot;yaxis&quot;),u(e.w,&quot;zaxis&quot;),e._len),c.positions=l(u(e.x,&quot;xaxis&quot;),u(e.y,&quot;yaxis&quot;),u(e.z,&quot;zaxis&quot;),e._len);var d=s(e);c.colormap=o(e),c.vertexIntensityBounds=[d.min/e._normMax,d.max/e._normMax],c.coneOffset=h[e.anchor],&quot;scaled&quot;===e.sizemode?c.coneSize=e.sizeref||.5:c.coneSize=e.sizeref&amp;&amp;e._normMax?e.sizeref/e._normMax:.5;var g=n(c),m=e.lightposition;return g.lightPosition=[m.x,m.y,m.z],g.ambient=e.lighting.ambient,g.diffuse=e.lighting.diffuse,g.specular=e.lighting.specular,g.roughness=e.lighting.roughness,g.fresnel=e.lighting.fresnel,g.opacity=e.opacity,e._pad=p[e.anchor]*g.vectorScale*g.coneScale*e._normMax,g}u.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new c(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../plots/gl3d/zip3&quot;:881,&quot;gl-cone3d&quot;:260}],1006:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;u&quot;),c=s(&quot;v&quot;),u=s(&quot;w&quot;),f=s(&quot;x&quot;),h=s(&quot;y&quot;),p=s(&quot;z&quot;);l&amp;&amp;l.length&amp;&amp;c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length&amp;&amp;p&amp;&amp;p.length?(s(&quot;sizeref&quot;),s(&quot;sizemode&quot;),s(&quot;anchor&quot;),s(&quot;lighting.ambient&quot;),s(&quot;lighting.diffuse&quot;),s(&quot;lighting.specular&quot;),s(&quot;lighting.roughness&quot;),s(&quot;lighting.fresnel&quot;),s(&quot;lightposition.x&quot;),s(&quot;lightposition.y&quot;),s(&quot;lightposition.z&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:1003}],1007:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;cone&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;),plot:t(&quot;./convert&quot;),eventData:function(t,e){return t.norm=e.traceCoordinate[6],t},meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1003,&quot;./calc&quot;:1004,&quot;./convert&quot;:1005,&quot;./defaults&quot;:1006}],1008:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../components/drawing/attributes&quot;).dash,s=t(&quot;../../plots/font_attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=t(&quot;../../constants/filter_ops&quot;),u=c.COMPARISON_OPS2,f=c.INTERVAL_OPS,h=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,i.line);e.exports=l({z:n.z,x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,text:n.text,hovertext:n.hovertext,transpose:n.transpose,xtype:n.xtype,ytype:n.ytype,zhoverformat:n.zhoverformat,hovertemplate:n.hovertemplate,hoverongaps:n.hoverongaps,connectgaps:l({},n.connectgaps,{}),fillcolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},autocontour:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:{&quot;contours.start&quot;:void 0,&quot;contours.end&quot;:void 0,&quot;contours.size&quot;:void 0}},ncontours:{valType:&quot;integer&quot;,dflt:15,min:1,editType:&quot;calc&quot;},contours:{type:{valType:&quot;enumerated&quot;,values:[&quot;levels&quot;,&quot;constraint&quot;],dflt:&quot;levels&quot;,editType:&quot;calc&quot;},start:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},end:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},size:{valType:&quot;number&quot;,dflt:null,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},coloring:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;heatmap&quot;,&quot;lines&quot;,&quot;none&quot;],dflt:&quot;fill&quot;,editType:&quot;calc&quot;},showlines:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},showlabels:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},labelfont:s({editType:&quot;plot&quot;,colorEditType:&quot;style&quot;}),labelformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},operation:{valType:&quot;enumerated&quot;,values:[].concat(u).concat(f),dflt:&quot;=&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},editType:&quot;calc&quot;,impliedEdits:{autocontour:!1}},line:{color:l({},h.color,{editType:&quot;style+colorbars&quot;}),width:{valType:&quot;number&quot;,min:0,editType:&quot;style+colorbars&quot;},dash:o,smoothing:l({},h.smoothing,{}),editType:&quot;plot&quot;}},a(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing/attributes&quot;:664,&quot;../../constants/docs&quot;:748,&quot;../../constants/filter_ops&quot;:749,&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;../heatmap/attributes&quot;:1065,&quot;../scatter/attributes&quot;:1187}],1009:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale&quot;),i=t(&quot;../heatmap/calc&quot;),a=t(&quot;./set_contours&quot;),o=t(&quot;./end_plus&quot;);e.exports=function(t,e){var r=i(t,e),s=r[0].z;a(e,s);var l,c=e.contours,u=n.extractOpts(e);if(&quot;heatmap&quot;===c.coloring&amp;&amp;u.auto&amp;&amp;!1===e.autocontour){var f=c.start,h=o(c),p=c.size||1,d=Math.floor((h-f)/p)+1;isFinite(p)||(p=1,d=1);var g=f-p/2;l=[g,g+d*p]}else l=s;return n.calc(t,e,{vals:l,cLetter:&quot;z&quot;}),r}},{&quot;../../components/colorscale&quot;:655,&quot;../heatmap/calc&quot;:1066,&quot;./end_plus&quot;:1019,&quot;./set_contours&quot;:1027}],1010:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n=t[0],i=n.z;switch(e.type){case&quot;levels&quot;:var a=Math.min(i[0][0],i[0][1]);for(r=0;r&lt;t.length;r++){var o=t[r];o.prefixBoundary=!o.edgepaths.length&amp;&amp;(a&gt;o.level||o.starts.length&amp;&amp;a===o.level)}break;case&quot;constraint&quot;:if(n.prefixBoundary=!1,n.edgepaths.length)return;var s=n.x.length,l=n.y.length,c=-1/0,u=1/0;for(r=0;r&lt;l;r++)u=Math.min(u,i[r][0]),u=Math.min(u,i[r][s-1]),c=Math.max(c,i[r][0]),c=Math.max(c,i[r][s-1]);for(r=1;r&lt;s-1;r++)u=Math.min(u,i[0][r]),u=Math.min(u,i[l-1][r]),c=Math.max(c,i[0][r]),c=Math.max(c,i[l-1][r]);var f,h,p=e.value;switch(e._operation){case&quot;&gt;&quot;:p&gt;c&amp;&amp;(n.prefixBoundary=!0);break;case&quot;&lt;&quot;:(p&lt;u||n.starts.length&amp;&amp;p===u)&amp;&amp;(n.prefixBoundary=!0);break;case&quot;[]&quot;:f=Math.min(p[0],p[1]),((h=Math.max(p[0],p[1]))&lt;u||f&gt;c||n.starts.length&amp;&amp;h===u)&amp;&amp;(n.prefixBoundary=!0);break;case&quot;][&quot;:f=Math.min(p[0],p[1]),h=Math.max(p[0],p[1]),f&lt;u&amp;&amp;h&gt;c&amp;&amp;(n.prefixBoundary=!0)}}}},{}],1011:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale&quot;),i=t(&quot;./make_color_map&quot;),a=t(&quot;./end_plus&quot;);e.exports={min:&quot;zmin&quot;,max:&quot;zmax&quot;,calc:function(t,e,r){var o=e.contours,s=e.line,l=o.size||1,c=o.coloring,u=i(e,{isColorbar:!0});if(&quot;heatmap&quot;===c){var f=n.extractOpts(e);r._fillgradient=f.reversescale?n.flipScale(f.colorscale):f.colorscale,r._zrange=[f.min,f.max]}else&quot;fill&quot;===c&amp;&amp;(r._fillcolor=u);r._line={color:&quot;lines&quot;===c?u:s.color,width:!1!==o.showlines?s.width:0,dash:s.dash},r._levels={start:o.start,end:a(o),size:l}}}},{&quot;../../components/colorscale&quot;:655,&quot;./end_plus&quot;:1019,&quot;./make_color_map&quot;:1024}],1012:[function(t,e,r){&quot;use strict&quot;;e.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],1013:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./label_defaults&quot;),a=t(&quot;../../components/color&quot;),o=a.addOpacity,s=a.opacity,l=t(&quot;../../constants/filter_ops&quot;),c=l.CONSTRAINT_REDUCTION,u=l.COMPARISON_OPS2;e.exports=function(t,e,r,a,l,f){var h,p,d,g=e.contours,m=r(&quot;contours.operation&quot;);(g._operation=c[m],function(t,e){var r;-1===u.indexOf(e.operation)?(t(&quot;contours.value&quot;,[0,1]),Array.isArray(e.value)?e.value.length&gt;2?e.value=e.value.slice(2):0===e.length?e.value=[0,1]:e.length&lt;2?(r=parseFloat(e.value[0]),e.value=[r,r+1]):e.value=[parseFloat(e.value[0]),parseFloat(e.value[1])]:n(e.value)&amp;&amp;(r=parseFloat(e.value),e.value=[r,r+1])):(t(&quot;contours.value&quot;,0),n(e.value)||(Array.isArray(e.value)?e.value=parseFloat(e.value[0]):e.value=0))}(r,g),&quot;=&quot;===m?h=g.showlines=!0:(h=r(&quot;contours.showlines&quot;),d=r(&quot;fillcolor&quot;,o((t.line||{}).color||l,.5))),h)&amp;&amp;(p=r(&quot;line.color&quot;,d&amp;&amp;s(d)?o(e.fillcolor,1):l),r(&quot;line.width&quot;,2),r(&quot;line.dash&quot;));r(&quot;line.smoothing&quot;),i(r,a,p,f)}},{&quot;../../components/color&quot;:643,&quot;../../constants/filter_ops&quot;:749,&quot;./label_defaults&quot;:1023,&quot;fast-isnumeric&quot;:241}],1014:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/filter_ops&quot;),i=t(&quot;fast-isnumeric&quot;);function a(t,e){var r,a=Array.isArray(e);function o(t){return i(t)?+t:null}return-1!==n.COMPARISON_OPS2.indexOf(t)?r=o(a?e[0]:e):-1!==n.INTERVAL_OPS.indexOf(t)?r=a?[o(e[0]),o(e[1])]:[o(e),o(e)]:-1!==n.SET_OPS.indexOf(t)&amp;&amp;(r=a?e.map(o):[o(e)]),r}function o(t){return function(e){e=a(t,e);var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return{start:r,end:n,size:n-r}}}function s(t){return function(e){return{start:e=a(t,e),end:1/0,size:1/0}}}e.exports={&quot;[]&quot;:o(&quot;[]&quot;),&quot;][&quot;:o(&quot;][&quot;),&quot;&gt;&quot;:s(&quot;&gt;&quot;),&quot;&lt;&quot;:s(&quot;&lt;&quot;),&quot;=&quot;:s(&quot;=&quot;)}},{&quot;../../constants/filter_ops&quot;:749,&quot;fast-isnumeric&quot;:241}],1015:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i=n(&quot;contours.start&quot;),a=n(&quot;contours.end&quot;),o=!1===i||!1===a,s=r(&quot;contours.size&quot;);!(o?e.autocontour=!0:r(&quot;autocontour&quot;,!1))&amp;&amp;s||r(&quot;ncontours&quot;)}},{}],1016:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);function i(t){return n.extendFlat({},t,{edgepaths:n.extendDeep([],t.edgepaths),paths:n.extendDeep([],t.paths),starts:n.extendDeep([],t.starts)})}e.exports=function(t,e){var r,a,o,s=function(t){return t.reverse()},l=function(t){return t};switch(e){case&quot;=&quot;:case&quot;&lt;&quot;:return t;case&quot;&gt;&quot;:for(1!==t.length&amp;&amp;n.warn(&quot;Contour data invalid for the specified inequality operation.&quot;),a=t[0],r=0;r&lt;a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r&lt;a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(r=0;r&lt;a.starts.length;r++)a.starts[r]=s(a.starts[r]);return t;case&quot;][&quot;:var c=s;s=l,l=c;case&quot;[]&quot;:for(2!==t.length&amp;&amp;n.warn(&quot;Contour data invalid for the specified inequality range operation.&quot;),a=i(t[0]),o=i(t[1]),r=0;r&lt;a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r&lt;a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(r=0;r&lt;a.starts.length;r++)a.starts[r]=s(a.starts[r]);for(;o.edgepaths.length;)a.edgepaths.push(l(o.edgepaths.shift()));for(;o.paths.length;)a.paths.push(l(o.paths.shift()));for(;o.starts.length;)a.starts.push(l(o.starts.shift()));return[a]}}},{&quot;../../lib&quot;:778}],1017:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./constraint_defaults&quot;),s=t(&quot;./contours_defaults&quot;),l=t(&quot;./style_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}if(i(t,e,f,u)){a(t,e,u,f),f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;hoverongaps&quot;);var h=&quot;constraint&quot;===f(&quot;contours.type&quot;);f(&quot;connectgaps&quot;,n.isArray1D(e.z)),h?o(t,e,f,u,r):(s(t,e,f,(function(r){return n.coerce2(t,e,c,r)})),l(t,e,f,u))}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../heatmap/xyz_defaults&quot;:1079,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:1008,&quot;./constraint_defaults&quot;:1013,&quot;./contours_defaults&quot;:1015,&quot;./style_defaults&quot;:1029}],1018:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constraint_mapping&quot;),a=t(&quot;./end_plus&quot;);e.exports=function(t,e,r){for(var o=&quot;constraint&quot;===t.type?i[t._operation](t.value):t,s=o.size,l=[],c=a(o),u=r.trace._carpetTrace,f=u?{xaxis:u.aaxis,yaxis:u.baxis,x:r.a,y:r.b}:{xaxis:e.xaxis,yaxis:e.yaxis,x:r.x,y:r.y},h=o.start;h&lt;c;h+=s)if(l.push(n.extendFlat({level:h,crossings:{},starts:[],edgepaths:[],paths:[],z:r.z,smoothing:r.trace.line.smoothing},f)),l.length&gt;1e3){n.warn(&quot;Too many contours, clipping at 1000&quot;,t);break}return l}},{&quot;../../lib&quot;:778,&quot;./constraint_mapping&quot;:1014,&quot;./end_plus&quot;:1019}],1019:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t.end+t.size/1e6}},{}],1020:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constants&quot;);function a(t,e,r,n){return Math.abs(t[0]-e[0])&lt;r&amp;&amp;Math.abs(t[1]-e[1])&lt;n}function o(t,e,r,o,l){var c,u=e.join(&quot;,&quot;),f=t.crossings[u],h=function(t,e,r){var n=0,a=0;t&gt;20&amp;&amp;e?208===t||1114===t?n=0===r[0]?1:-1:a=0===r[1]?1:-1:-1!==i.BOTTOMSTART.indexOf(t)?a=1:-1!==i.LEFTSTART.indexOf(t)?n=1:-1!==i.TOPSTART.indexOf(t)?a=-1:n=-1;return[n,a]}(f,r,e),p=[s(t,e,[-h[0],-h[1]])],d=t.z.length,g=t.z[0].length,m=e.slice(),v=h.slice();for(c=0;c&lt;1e4;c++){if(f&gt;20?(f=i.CHOOSESADDLE[f][(h[0]||h[1])&lt;0?0:1],t.crossings[u]=i.SADDLEREMAINDER[f]):delete t.crossings[u],!(h=i.NEWDELTA[f])){n.log(&quot;Found bad marching index:&quot;,f,e,t.level);break}p.push(s(t,e,h)),e[0]+=h[0],e[1]+=h[1],u=e.join(&quot;,&quot;),a(p[p.length-1],p[p.length-2],o,l)&amp;&amp;p.pop();var y=h[0]&amp;&amp;(e[0]&lt;0||e[0]&gt;g-2)||h[1]&amp;&amp;(e[1]&lt;0||e[1]&gt;d-2);if(e[0]===m[0]&amp;&amp;e[1]===m[1]&amp;&amp;h[0]===v[0]&amp;&amp;h[1]===v[1]||r&amp;&amp;y)break;f=t.crossings[u]}1e4===c&amp;&amp;n.log(&quot;Infinite loop in contour?&quot;);var x,b,_,w,T,k,M,A,S,E,C,L,I,P,z,O=a(p[0],p[p.length-1],o,l),D=0,R=.2*t.smoothing,F=[],B=0;for(c=1;c&lt;p.length;c++)L=p[c],I=p[c-1],P=void 0,z=void 0,P=L[2]-I[2],z=L[3]-I[3],D+=M=Math.sqrt(P*P+z*z),F.push(M);var N=D/F.length*R;function j(t){return p[t%p.length]}for(c=p.length-2;c&gt;=B;c--)if((x=F[c])&lt;N){for(_=0,b=c-1;b&gt;=B&amp;&amp;x+F[b]&lt;N;b--)x+=F[b];if(O&amp;&amp;c===p.length-2)for(_=0;_&lt;b&amp;&amp;x+F[_]&lt;N;_++)x+=F[_];T=c-b+_+1,k=Math.floor((c+b+_+2)/2),w=O||c!==p.length-2?O||-1!==b?T%2?j(k):[(j(k)[0]+j(k+1)[0])/2,(j(k)[1]+j(k+1)[1])/2]:p[0]:p[p.length-1],p.splice(b+1,c-b+1,w),c=b+1,_&amp;&amp;(B=_),O&amp;&amp;(c===p.length-2?p[_]=p[p.length-1]:0===c&amp;&amp;(p[p.length-1]=p[0]))}for(p.splice(0,B),c=0;c&lt;p.length;c++)p[c].length=2;if(!(p.length&lt;2))if(O)p.pop(),t.paths.push(p);else{r||n.log(&quot;Unclosed interior contour?&quot;,t.level,m.join(&quot;,&quot;),p.join(&quot;L&quot;));var U=!1;for(A=0;A&lt;t.edgepaths.length;A++)if(E=t.edgepaths[A],!U&amp;&amp;a(E[0],p[p.length-1],o,l)){p.pop(),U=!0;var V=!1;for(S=0;S&lt;t.edgepaths.length;S++)if(a((C=t.edgepaths[S])[C.length-1],p[0],o,l)){V=!0,p.shift(),t.edgepaths.splice(A,1),S===A?t.paths.push(p.concat(C)):(S&gt;A&amp;&amp;S--,t.edgepaths[S]=C.concat(p,E));break}V||(t.edgepaths[A]=p.concat(E))}for(A=0;A&lt;t.edgepaths.length&amp;&amp;!U;A++)a((E=t.edgepaths[A])[E.length-1],p[0],o,l)&amp;&amp;(p.shift(),t.edgepaths[A]=E.concat(p),U=!0);U||t.edgepaths.push(p)}}function s(t,e,r){var n=e[0]+Math.max(r[0],0),i=e[1]+Math.max(r[1],0),a=t.z[i][n],o=t.xaxis,s=t.yaxis;if(r[1]){var l=(t.level-a)/(t.z[i][n+1]-a);return[o.c2p((1-l)*t.x[n]+l*t.x[n+1],!0),s.c2p(t.y[i],!0),n+l,i]}var c=(t.level-a)/(t.z[i+1][n]-a);return[o.c2p(t.x[n],!0),s.c2p((1-c)*t.y[i]+c*t.y[i+1],!0),n,i+c]}e.exports=function(t,e,r){var i,a,s,l;for(e=e||.01,r=r||.01,a=0;a&lt;t.length;a++){for(s=t[a],l=0;l&lt;s.starts.length;l++)o(s,s.starts[l],&quot;edge&quot;,e,r);for(i=0;Object.keys(s.crossings).length&amp;&amp;i&lt;1e4;)i++,o(s,Object.keys(s.crossings)[0].split(&quot;,&quot;).map(Number),void 0,e,r);1e4===i&amp;&amp;n.log(&quot;Infinite loop in contour?&quot;)}}},{&quot;../../lib&quot;:778,&quot;./constants&quot;:1012}],1021:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../heatmap/hover&quot;);e.exports=function(t,e,r,a,o){var s=i(t,e,r,a,o,!0);return s&amp;&amp;s.forEach((function(t){var e=t.trace;&quot;constraint&quot;===e.contours.type&amp;&amp;(e.fillcolor&amp;&amp;n.opacity(e.fillcolor)?t.color=n.addOpacity(e.fillcolor,1):e.contours.showlines&amp;&amp;n.opacity(e.line.color)&amp;&amp;(t.color=n.addOpacity(e.line.color,1)))})),s}},{&quot;../../components/color&quot;:643,&quot;../heatmap/hover&quot;:1072}],1022:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),colorbar:t(&quot;./colorbar&quot;),hoverPoints:t(&quot;./hover&quot;),moduleType:&quot;trace&quot;,name:&quot;contour&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;contour&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1008,&quot;./calc&quot;:1009,&quot;./colorbar&quot;:1011,&quot;./defaults&quot;:1017,&quot;./hover&quot;:1021,&quot;./plot&quot;:1026,&quot;./style&quot;:1028}],1023:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r,i){if(i||(i={}),t(&quot;contours.showlabels&quot;)){var a=e.font;n.coerceFont(t,&quot;contours.labelfont&quot;,{family:a.family,size:a.size,color:r}),t(&quot;contours.labelformat&quot;)}!1!==i.hasHover&amp;&amp;t(&quot;zhoverformat&quot;)}},{&quot;../../lib&quot;:778}],1024:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/colorscale&quot;),a=t(&quot;./end_plus&quot;);e.exports=function(t){var e=t.contours,r=e.start,o=a(e),s=e.size||1,l=Math.floor((o-r)/s)+1,c=&quot;lines&quot;===e.coloring?0:1,u=i.extractOpts(t);isFinite(s)||(s=1,l=1);var f,h,p=u.reversescale?i.flipScale(u.colorscale):u.colorscale,d=p.length,g=new Array(d),m=new Array(d);if(&quot;heatmap&quot;===e.coloring){var v=u.min,y=u.max;for(h=0;h&lt;d;h++)f=p[h],g[h]=f[0]*(y-v)+v,m[h]=f[1];var x=n.extent([v,y,e.start,e.start+s*(l-1)]),b=x[v&lt;y?0:1],_=x[v&lt;y?1:0];b!==v&amp;&amp;(g.splice(0,0,b),m.splice(0,0,m[0])),_!==y&amp;&amp;(g.push(_),m.push(m[m.length-1]))}else for(h=0;h&lt;d;h++)f=p[h],g[h]=(f[0]*(l+c-1)-c/2)*s+r,m[h]=f[1];return i.makeColorScaleFunc({domain:g,range:m},{noNumericCheck:!0})}},{&quot;../../components/colorscale&quot;:655,&quot;./end_plus&quot;:1019,d3:169}],1025:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);function i(t,e){var r=(e[0][0]&gt;t?0:1)+(e[0][1]&gt;t?0:2)+(e[1][1]&gt;t?0:4)+(e[1][0]&gt;t?0:8);return 5===r||10===r?t&gt;(e[0][0]+e[0][1]+e[1][0]+e[1][1])/4?5===r?713:1114:5===r?104:208:15===r?0:r}e.exports=function(t){var e,r,a,o,s,l,c,u,f,h=t[0].z,p=h.length,d=h[0].length,g=2===p||2===d;for(r=0;r&lt;p-1;r++)for(o=[],0===r&amp;&amp;(o=o.concat(n.BOTTOMSTART)),r===p-2&amp;&amp;(o=o.concat(n.TOPSTART)),e=0;e&lt;d-1;e++)for(a=o.slice(),0===e&amp;&amp;(a=a.concat(n.LEFTSTART)),e===d-2&amp;&amp;(a=a.concat(n.RIGHTSTART)),s=e+&quot;,&quot;+r,l=[[h[r][e],h[r][e+1]],[h[r+1][e],h[r+1][e+1]]],f=0;f&lt;t.length;f++)(c=i((u=t[f]).level,l))&amp;&amp;(u.crossings[s]=c,-1!==a.indexOf(c)&amp;&amp;(u.starts.push([e,r]),g&amp;&amp;-1!==a.indexOf(c,a.indexOf(c)+1)&amp;&amp;u.starts.push([e,r])))}},{&quot;./constants&quot;:1012}],1026:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../components/colorscale&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;../../plots/cartesian/set_convert&quot;),u=t(&quot;../heatmap/plot&quot;),f=t(&quot;./make_crossings&quot;),h=t(&quot;./find_all_paths&quot;),p=t(&quot;./empty_pathinfo&quot;),d=t(&quot;./convert_to_constraints&quot;),g=t(&quot;./close_boundaries&quot;),m=t(&quot;./constants&quot;),v=m.LABELOPTIMIZER;function y(t,e){var r,n,o,s,l,c,u,f=&quot;&quot;,h=0,p=t.edgepaths.map((function(t,e){return e})),d=!0;function g(t){return Math.abs(t[1]-e[2][1])&lt;.01}function m(t){return Math.abs(t[0]-e[0][0])&lt;.01}function v(t){return Math.abs(t[0]-e[2][0])&lt;.01}for(;p.length;){for(c=a.smoothopen(t.edgepaths[h],t.smoothing),f+=d?c:c.replace(/^M/,&quot;L&quot;),p.splice(p.indexOf(h),1),r=t.edgepaths[h][t.edgepaths[h].length-1],s=-1,o=0;o&lt;4;o++){if(!r){i.log(&quot;Missing end?&quot;,h,t);break}for(u=r,Math.abs(u[1]-e[0][1])&lt;.01&amp;&amp;!v(r)?n=e[1]:m(r)?n=e[0]:g(r)?n=e[3]:v(r)&amp;&amp;(n=e[2]),l=0;l&lt;t.edgepaths.length;l++){var y=t.edgepaths[l][0];Math.abs(r[0]-n[0])&lt;.01?Math.abs(r[0]-y[0])&lt;.01&amp;&amp;(y[1]-r[1])*(n[1]-y[1])&gt;=0&amp;&amp;(n=y,s=l):Math.abs(r[1]-n[1])&lt;.01?Math.abs(r[1]-y[1])&lt;.01&amp;&amp;(y[0]-r[0])*(n[0]-y[0])&gt;=0&amp;&amp;(n=y,s=l):i.log(&quot;endpt to newendpt is not vert. or horz.&quot;,r,n,y)}if(r=n,s&gt;=0)break;f+=&quot;L&quot;+n}if(s===t.edgepaths.length){i.log(&quot;unclosed perimeter path&quot;);break}h=s,(d=-1===p.indexOf(h))&amp;&amp;(h=p[0],f+=&quot;Z&quot;)}for(h=0;h&lt;t.paths.length;h++)f+=a.smoothclosed(t.paths[h],t.smoothing);return f}function x(t,e,r,n){var a=e.width/2,o=e.height/2,s=t.x,l=t.y,c=t.theta,u=Math.cos(c)*a,f=Math.sin(c)*a,h=(s&gt;n.center?n.right-s:s-n.left)/(u+Math.abs(Math.sin(c)*o)),p=(l&gt;n.middle?n.bottom-l:l-n.top)/(Math.abs(f)+Math.cos(c)*o);if(h&lt;1||p&lt;1)return 1/0;var d=v.EDGECOST*(1/(h-1)+1/(p-1));d+=v.ANGLECOST*c*c;for(var g=s-u,m=l-f,y=s+u,x=l+f,b=0;b&lt;r.length;b++){var _=r[b],w=Math.cos(_.theta)*_.width/2,T=Math.sin(_.theta)*_.width/2,k=2*i.segmentDistance(g,m,y,x,_.x-w,_.y-T,_.x+w,_.y+T)/(e.height+_.height),M=_.level===e.level,A=M?v.SAMELEVELDISTANCE:1;if(k&lt;=A)return 1/0;d+=v.NEIGHBORCOST*(M?v.SAMELEVELFACTOR:1)/(k-A)}return d}function b(t){var e,r,n=t.trace._emptypoints,i=[],a=t.z.length,o=t.z[0].length,s=[];for(e=0;e&lt;o;e++)s.push(1);for(e=0;e&lt;a;e++)i.push(s.slice());for(e=0;e&lt;n.length;e++)i[(r=n[e])[0]][r[1]]=0;return t.zmask=i,i}r.plot=function(t,e,o,s){var l=e.xaxis,c=e.yaxis;i.makeTraceGroups(s,o,&quot;contour&quot;).each((function(o){var s=n.select(this),v=o[0],x=v.trace,_=v.x,w=v.y,T=x.contours,k=p(T,e,v),M=i.ensureSingle(s,&quot;g&quot;,&quot;heatmapcoloring&quot;),A=[];&quot;heatmap&quot;===T.coloring&amp;&amp;(A=[o]),u(t,e,A,M),f(k),h(k);var S=l.c2p(_[0],!0),E=l.c2p(_[_.length-1],!0),C=c.c2p(w[0],!0),L=c.c2p(w[w.length-1],!0),I=[[S,L],[E,L],[E,C],[S,C]],P=k;&quot;constraint&quot;===T.type&amp;&amp;(P=d(k,T._operation)),function(t,e,r){var n=i.ensureSingle(t,&quot;g&quot;,&quot;contourbg&quot;).selectAll(&quot;path&quot;).data(&quot;fill&quot;===r.coloring?[0]:[]);n.enter().append(&quot;path&quot;),n.exit().remove(),n.attr(&quot;d&quot;,&quot;M&quot;+e.join(&quot;L&quot;)+&quot;Z&quot;).style(&quot;stroke&quot;,&quot;none&quot;)}(s,I,T),function(t,e,r,a){var o=&quot;fill&quot;===a.coloring||&quot;constraint&quot;===a.type&amp;&amp;&quot;=&quot;!==a._operation,s=&quot;M&quot;+r.join(&quot;L&quot;)+&quot;Z&quot;;o&amp;&amp;g(e,a);var l=i.ensureSingle(t,&quot;g&quot;,&quot;contourfill&quot;).selectAll(&quot;path&quot;).data(o?e:[]);l.enter().append(&quot;path&quot;),l.exit().remove(),l.each((function(t){var e=(t.prefixBoundary?s:&quot;&quot;)+y(t,r);e?n.select(this).attr(&quot;d&quot;,e).style(&quot;stroke&quot;,&quot;none&quot;):n.select(this).remove()}))}(s,P,I,T),function(t,e,o,s,l){var c=i.ensureSingle(t,&quot;g&quot;,&quot;contourlines&quot;),u=!1!==l.showlines,f=l.showlabels,h=u&amp;&amp;f,p=r.createLines(c,u||f,e),d=r.createLineClip(c,h,o,s.trace.uid),g=t.selectAll(&quot;g.contourlabels&quot;).data(f?[0]:[]);if(g.exit().remove(),g.enter().append(&quot;g&quot;).classed(&quot;contourlabels&quot;,!0),f){var v=[],y=[];i.clearLocationCache();var x=r.labelFormatter(o,s),b=a.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).call(a.font,l.labelfont),_=e[0].xaxis,w=e[0].yaxis,T=_._length,k=w._length,M=_.range,A=w.range,S=i.aggNums(Math.min,null,s.x),E=i.aggNums(Math.max,null,s.x),C=i.aggNums(Math.min,null,s.y),L=i.aggNums(Math.max,null,s.y),I=Math.max(_.c2p(S,!0),0),P=Math.min(_.c2p(E,!0),T),z=Math.max(w.c2p(L,!0),0),O=Math.min(w.c2p(C,!0),k),D={};M[0]&lt;M[1]?(D.left=I,D.right=P):(D.left=P,D.right=I),A[0]&lt;A[1]?(D.top=z,D.bottom=O):(D.top=O,D.bottom=z),D.middle=(D.top+D.bottom)/2,D.center=(D.left+D.right)/2,v.push([[D.left,D.top],[D.right,D.top],[D.right,D.bottom],[D.left,D.bottom]]);var R=Math.sqrt(T*T+k*k),F=m.LABELDISTANCE*R/Math.max(1,e.length/m.LABELINCREASE);p.each((function(t){var e=r.calcTextOpts(t.level,x,b,o);n.select(this).selectAll(&quot;path&quot;).each((function(){var t=i.getVisibleSegment(this,D,e.height/2);if(t&amp;&amp;!(t.len&lt;(e.width+e.height)*m.LABELMIN))for(var n=Math.min(Math.ceil(t.len/F),m.LABELMAX),a=0;a&lt;n;a++){var o=r.findBestTextLocation(this,t,e,y,D);if(!o)break;r.addLabelData(o,e,y,v)}}))})),b.remove(),r.drawLabels(g,y,o,d,h?v:null)}f&amp;&amp;!u&amp;&amp;p.remove()}(s,k,t,v,T),function(t,e,r,n,o){var s=n.trace,l=r._fullLayout._clips,c=&quot;clip&quot;+s.uid,u=l.selectAll(&quot;#&quot;+c).data(s.connectgaps?[]:[0]);if(u.enter().append(&quot;clipPath&quot;).classed(&quot;contourclip&quot;,!0).attr(&quot;id&quot;,c),u.exit().remove(),!1===s.connectgaps){var p={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:e.xaxis,yaxis:e.yaxis,x:n.x,y:n.y,z:b(n),smoothing:0};f([p]),h([p]),g([p],{type:&quot;levels&quot;}),i.ensureSingle(u,&quot;path&quot;,&quot;&quot;).attr(&quot;d&quot;,(p.prefixBoundary?&quot;M&quot;+o.join(&quot;L&quot;)+&quot;Z&quot;:&quot;&quot;)+y(p,o))}else c=null;a.setClipUrl(t,c,r)}(s,e,t,v,I)}))},r.createLines=function(t,e,r){var n=r[0].smoothing,i=t.selectAll(&quot;g.contourlevel&quot;).data(e?r:[]);if(i.exit().remove(),i.enter().append(&quot;g&quot;).classed(&quot;contourlevel&quot;,!0),e){var o=i.selectAll(&quot;path.openline&quot;).data((function(t){return t.pedgepaths||t.edgepaths}));o.exit().remove(),o.enter().append(&quot;path&quot;).classed(&quot;openline&quot;,!0),o.attr(&quot;d&quot;,(function(t){return a.smoothopen(t,n)})).style(&quot;stroke-miterlimit&quot;,1).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;);var s=i.selectAll(&quot;path.closedline&quot;).data((function(t){return t.ppaths||t.paths}));s.exit().remove(),s.enter().append(&quot;path&quot;).classed(&quot;closedline&quot;,!0),s.attr(&quot;d&quot;,(function(t){return a.smoothclosed(t,n)})).style(&quot;stroke-miterlimit&quot;,1).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;)}return i},r.createLineClip=function(t,e,r,n){var i=e?&quot;clipline&quot;+n:null,o=r._fullLayout._clips.selectAll(&quot;#&quot;+i).data(e?[0]:[]);return o.exit().remove(),o.enter().append(&quot;clipPath&quot;).classed(&quot;contourlineclip&quot;,!0).attr(&quot;id&quot;,i),a.setClipUrl(t,i,r),o},r.labelFormatter=function(t,e){var r=t._fullLayout,n=e.trace,i=n.contours,a={type:&quot;linear&quot;,_id:&quot;ycontour&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;};if(i.labelformat)a.tickformat=i.labelformat,c(a,r);else{var s=o.extractOpts(n);if(s&amp;&amp;s.colorbar&amp;&amp;s.colorbar._axis)a=s.colorbar._axis;else{if(&quot;constraint&quot;===i.type){var u=i.value;Array.isArray(u)?a.range=[u[0],u[u.length-1]]:a.range=[u,u]}else a.range=[i.start,i.end],a.nticks=(i.end-i.start)/i.size;a.range[0]===a.range[1]&amp;&amp;(a.range[1]+=a.range[0]||1),a.nticks||(a.nticks=1e3),c(a,r),l.prepTicks(a),a._tmin=null,a._tmax=null}}return function(t){return l.tickText(a,t).text}},r.calcTextOpts=function(t,e,r,n){var i=e(t);r.text(i).call(s.convertToTspans,n);var o=r.node(),l=a.bBox(o,!0);return{text:i,width:l.width,height:l.height,fontSize:+o.style[&quot;font-size&quot;].replace(&quot;px&quot;,&quot;&quot;),level:t,dy:(l.top+l.bottom)/2}},r.findBestTextLocation=function(t,e,r,n,a){var o,s,l,c,u,f=r.width;e.isClosed?(s=e.len/v.INITIALSEARCHPOINTS,o=e.min+s/2,l=e.max):(s=(e.len-f)/(v.INITIALSEARCHPOINTS+1),o=e.min+s+f/2,l=e.max-(s+f)/2);for(var h=1/0,p=0;p&lt;v.ITERATIONS;p++){for(var d=o;d&lt;l;d+=s){var g=i.getTextLocation(t,e.total,d,f),m=x(g,r,n,a);m&lt;h&amp;&amp;(h=m,u=g,c=d)}if(h&gt;2*v.MAXCOST)break;p&amp;&amp;(s/=2),l=(o=c-s/2)+1.5*s}if(h&lt;=v.MAXCOST)return u},r.addLabelData=function(t,e,r,n){var i=e.fontSize,a=e.width+i/3,o=Math.max(0,e.height-i/3),s=t.x,l=t.y,c=t.theta,u=Math.sin(c),f=Math.cos(c),h=function(t,e){return[s+t*f-e*u,l+t*u+e*f]},p=[h(-a/2,-o/2),h(-a/2,o/2),h(a/2,o/2),h(a/2,-o/2)];r.push({text:e.text,x:s,y:l,dy:e.dy,theta:c,level:e.level,width:a,height:o}),n.push(p)},r.drawLabels=function(t,e,r,a,o){var l=t.selectAll(&quot;text&quot;).data(e,(function(t){return t.text+&quot;,&quot;+t.x+&quot;,&quot;+t.y+&quot;,&quot;+t.theta}));if(l.exit().remove(),l.enter().append(&quot;text&quot;).attr({&quot;data-notex&quot;:1,&quot;text-anchor&quot;:&quot;middle&quot;}).each((function(t){var e=t.x+Math.sin(t.theta)*t.dy,i=t.y-Math.cos(t.theta)*t.dy;n.select(this).text(t.text).attr({x:e,y:i,transform:&quot;rotate(&quot;+180*t.theta/Math.PI+&quot; &quot;+e+&quot; &quot;+i+&quot;)&quot;}).call(s.convertToTspans,r)})),o){for(var c=&quot;&quot;,u=0;u&lt;o.length;u++)c+=&quot;M&quot;+o[u].join(&quot;L&quot;)+&quot;Z&quot;;i.ensureSingle(a,&quot;path&quot;,&quot;&quot;).attr(&quot;d&quot;,c)}}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/set_convert&quot;:848,&quot;../heatmap/plot&quot;:1076,&quot;./close_boundaries&quot;:1010,&quot;./constants&quot;:1012,&quot;./convert_to_constraints&quot;:1016,&quot;./empty_pathinfo&quot;:1018,&quot;./find_all_paths&quot;:1020,&quot;./make_crossings&quot;:1025,d3:169}],1027:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;);function a(t,e,r){var i={type:&quot;linear&quot;,range:[t,e]};return n.autoTicks(i,(e-t)/(r||15)),i}e.exports=function(t,e){var r=t.contours;if(t.autocontour){var o=t.zmin,s=t.zmax;(t.zauto||void 0===o)&amp;&amp;(o=i.aggNums(Math.min,null,e)),(t.zauto||void 0===s)&amp;&amp;(s=i.aggNums(Math.max,null,e));var l=a(o,s,t.ncontours);r.size=l.dtick,r.start=n.tickFirst(l),l.range.reverse(),r.end=n.tickFirst(l),r.start===o&amp;&amp;(r.start+=r.size),r.end===s&amp;&amp;(r.end-=r.size),r.start&gt;r.end&amp;&amp;(r.start=r.end=(r.start+r.end)/2),t._input.contours||(t._input.contours={}),i.extendFlat(t._input.contours,{start:r.start,end:r.end,size:r.size}),t._input.autocontour=!0}else if(&quot;constraint&quot;!==r.type){var c,u=r.start,f=r.end,h=t._input.contours;if(u&gt;f&amp;&amp;(r.start=h.start=f,f=r.end=h.end=u,u=r.start),!(r.size&gt;0))c=u===f?1:a(u,f,t.ncontours).dtick,h.size=r.size=c}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1028:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../heatmap/style&quot;),o=t(&quot;./make_color_map&quot;);e.exports=function(t){var e=n.select(t).selectAll(&quot;g.contour&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.each((function(t){var e=n.select(this),r=t[0].trace,a=r.contours,s=r.line,l=a.size||1,c=a.start,u=&quot;constraint&quot;===a.type,f=!u&amp;&amp;&quot;lines&quot;===a.coloring,h=!u&amp;&amp;&quot;fill&quot;===a.coloring,p=f||h?o(r):null;e.selectAll(&quot;g.contourlevel&quot;).each((function(t){n.select(this).selectAll(&quot;path&quot;).call(i.lineGroupStyle,s.width,f?p(t.level):s.color,s.dash)}));var d=a.labelfont;if(e.selectAll(&quot;g.contourlabels text&quot;).each((function(t){i.font(n.select(this),{family:d.family,size:d.size,color:d.color||(f?p(t.level):s.color)})})),u)e.selectAll(&quot;g.contourfill path&quot;).style(&quot;fill&quot;,r.fillcolor);else if(h){var g;e.selectAll(&quot;g.contourfill path&quot;).style(&quot;fill&quot;,(function(t){return void 0===g&amp;&amp;(g=t.level),p(t.level+.5*l)})),void 0===g&amp;&amp;(g=c),e.selectAll(&quot;g.contourbg path&quot;).style(&quot;fill&quot;,p(g-.5*l))}})),a(t)}},{&quot;../../components/drawing&quot;:665,&quot;../heatmap/style&quot;:1077,&quot;./make_color_map&quot;:1024,d3:169}],1029:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/defaults&quot;),i=t(&quot;./label_defaults&quot;);e.exports=function(t,e,r,a,o){var s,l=r(&quot;contours.coloring&quot;),c=&quot;&quot;;&quot;fill&quot;===l&amp;&amp;(s=r(&quot;contours.showlines&quot;)),!1!==s&amp;&amp;(&quot;lines&quot;!==l&amp;&amp;(c=r(&quot;line.color&quot;,&quot;#000&quot;)),r(&quot;line.width&quot;,.5),r(&quot;line.dash&quot;)),&quot;none&quot;!==l&amp;&amp;(!0!==t.showlegend&amp;&amp;(e.showlegend=!1),e._dfltShowLegend=!1,n(t,e,a,r,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})),r(&quot;line.smoothing&quot;),i(r,a,c,o)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;./label_defaults&quot;:1023}],1030:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../contour/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat,s=i.contours;e.exports=o({carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},z:n.z,a:n.x,a0:n.x0,da:n.dx,b:n.y,b0:n.y0,db:n.dy,text:n.text,hovertext:n.hovertext,transpose:n.transpose,atype:n.xtype,btype:n.ytype,fillcolor:i.fillcolor,autocontour:i.autocontour,ncontours:i.ncontours,contours:{type:s.type,start:s.start,end:s.end,size:s.size,coloring:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;lines&quot;,&quot;none&quot;],dflt:&quot;fill&quot;,editType:&quot;calc&quot;},showlines:s.showlines,showlabels:s.showlabels,labelfont:s.labelfont,labelformat:s.labelformat,operation:s.operation,value:s.value,editType:&quot;calc&quot;,impliedEdits:{autocontour:!1}},line:{color:i.line.color,width:i.line.width,dash:i.line.dash,smoothing:i.line.smoothing,editType:&quot;plot&quot;},transforms:void 0},a(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../contour/attributes&quot;:1008,&quot;../heatmap/attributes&quot;:1065}],1031:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../heatmap/convert_column_xyz&quot;),o=t(&quot;../heatmap/clean_2d_array&quot;),s=t(&quot;../heatmap/interp2d&quot;),l=t(&quot;../heatmap/find_empties&quot;),c=t(&quot;../heatmap/make_bound_array&quot;),u=t(&quot;./defaults&quot;),f=t(&quot;../carpet/lookup_carpetid&quot;),h=t(&quot;../contour/set_contours&quot;);e.exports=function(t,e){var r=e._carpetTrace=f(t,e);if(r&amp;&amp;r.visible&amp;&amp;&quot;legendonly&quot;!==r.visible){if(!e.a||!e.b){var p=t.data[r.index],d=t.data[e.index];d.a||(d.a=p.a),d.b||(d.b=p.b),u(d,e,e._defaultColor,t._fullLayout)}var g=function(t,e){var r,u,f,h,p,d,g,m=e._carpetTrace,v=m.aaxis,y=m.baxis;v._minDtick=0,y._minDtick=0,i.isArray1D(e.z)&amp;&amp;a(e,v,y,&quot;a&quot;,&quot;b&quot;,[&quot;z&quot;]);r=e._a=e._a||e.a,h=e._b=e._b||e.b,r=r?v.makeCalcdata(e,&quot;_a&quot;):[],h=h?y.makeCalcdata(e,&quot;_b&quot;):[],u=e.a0||0,f=e.da||1,p=e.b0||0,d=e.db||1,g=e._z=o(e._z||e.z,e.transpose),e._emptypoints=l(g),s(g,e._emptypoints);var x=i.maxRowLength(g),b=&quot;scaled&quot;===e.xtype?&quot;&quot;:r,_=c(e,b,u,f,x,v),w=&quot;scaled&quot;===e.ytype?&quot;&quot;:h,T=c(e,w,p,d,g.length,y),k={a:_,b:T,z:g};&quot;levels&quot;===e.contours.type&amp;&amp;&quot;none&quot;!==e.contours.coloring&amp;&amp;n(t,e,{vals:g,containerStr:&quot;&quot;,cLetter:&quot;z&quot;});return[k]}(t,e);return h(e,e._z),g}}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../lib&quot;:778,&quot;../carpet/lookup_carpetid&quot;:981,&quot;../contour/set_contours&quot;:1027,&quot;../heatmap/clean_2d_array&quot;:1067,&quot;../heatmap/convert_column_xyz&quot;:1069,&quot;../heatmap/find_empties&quot;:1071,&quot;../heatmap/interp2d&quot;:1074,&quot;../heatmap/make_bound_array&quot;:1075,&quot;./defaults&quot;:1032}],1032:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../contour/constraint_defaults&quot;),s=t(&quot;../contour/contours_defaults&quot;),l=t(&quot;../contour/style_defaults&quot;);e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,a,r,i)}if(u(&quot;carpet&quot;),t.a&amp;&amp;t.b){if(!i(t,e,u,c,&quot;a&quot;,&quot;b&quot;))return void(e.visible=!1);u(&quot;text&quot;),&quot;constraint&quot;===u(&quot;contours.type&quot;)?o(t,e,u,c,r,{hasHover:!1}):(s(t,e,u,(function(r){return n.coerce2(t,e,a,r)})),l(t,e,u,c,{hasHover:!1}))}else e._defaultColor=r,e._length=null}},{&quot;../../lib&quot;:778,&quot;../contour/constraint_defaults&quot;:1013,&quot;../contour/contours_defaults&quot;:1015,&quot;../contour/style_defaults&quot;:1029,&quot;../heatmap/xyz_defaults&quot;:1079,&quot;./attributes&quot;:1030}],1033:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../contour/colorbar&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../contour/style&quot;),moduleType:&quot;trace&quot;,name:&quot;contourcarpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;carpet&quot;,&quot;contour&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;hasLines&quot;,&quot;carpetDependent&quot;,&quot;noHover&quot;,&quot;noSortingByValue&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../contour/colorbar&quot;:1011,&quot;../contour/style&quot;:1028,&quot;./attributes&quot;:1030,&quot;./calc&quot;:1031,&quot;./defaults&quot;:1032,&quot;./plot&quot;:1034}],1034:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../carpet/map_1d_array&quot;),a=t(&quot;../carpet/makepath&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../contour/make_crossings&quot;),c=t(&quot;../contour/find_all_paths&quot;),u=t(&quot;../contour/plot&quot;),f=t(&quot;../contour/constants&quot;),h=t(&quot;../contour/convert_to_constraints&quot;),p=t(&quot;../contour/empty_pathinfo&quot;),d=t(&quot;../contour/close_boundaries&quot;),g=t(&quot;../carpet/lookup_carpetid&quot;),m=t(&quot;../carpet/axis_aligned_line&quot;);function v(t,e,r){var n=t.getPointAtLength(e),i=t.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function y(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}function x(t,e){var r=Math.abs(t[0]*e[0]+t[1]*e[1]);return Math.sqrt(1-r*r)/r}e.exports=function(t,e,r,b){var _=e.xaxis,w=e.yaxis;s.makeTraceGroups(b,r,&quot;contour&quot;).each((function(r){var b=n.select(this),T=r[0],k=T.trace,M=k._carpetTrace=g(t,k),A=t.calcdata[M.index][0];if(M.visible&amp;&amp;&quot;legendonly&quot;!==M.visible){var S=T.a,E=T.b,C=k.contours,L=p(C,e,T),I=&quot;constraint&quot;===C.type,P=C._operation,z=I?&quot;=&quot;===P?&quot;lines&quot;:&quot;fill&quot;:C.coloring,O=[[S[0],E[E.length-1]],[S[S.length-1],E[E.length-1]],[S[S.length-1],E[0]],[S[0],E[0]]];l(L);var D=1e-8*(S[S.length-1]-S[0]),R=1e-8*(E[E.length-1]-E[0]);c(L,D,R);var F,B,N,j,U=L;&quot;constraint&quot;===C.type&amp;&amp;(U=h(L,P)),function(t,e){var r,n,i,a,o,s,l,c,u;for(r=0;r&lt;t.length;r++){for(a=t[r],o=a.pedgepaths=[],s=a.ppaths=[],n=0;n&lt;a.edgepaths.length;n++){for(u=a.edgepaths[n],l=[],i=0;i&lt;u.length;i++)l[i]=e(u[i]);o.push(l)}for(n=0;n&lt;a.paths.length;n++){for(u=a.paths[n],c=[],i=0;i&lt;u.length;i++)c[i]=e(u[i]);s.push(c)}}}(L,H);var V=[];for(j=A.clipsegments.length-1;j&gt;=0;j--)F=A.clipsegments[j],B=i([],F.x,_.c2p),N=i([],F.y,w.c2p),B.reverse(),N.reverse(),V.push(a(B,N,F.bicubic));var q=&quot;M&quot;+V.join(&quot;L&quot;)+&quot;Z&quot;;!function(t,e,r,n,o,l){var c,u,f,h,p=s.ensureSingle(t,&quot;g&quot;,&quot;contourbg&quot;).selectAll(&quot;path&quot;).data(&quot;fill&quot;!==l||o?[]:[0]);p.enter().append(&quot;path&quot;),p.exit().remove();var d=[];for(h=0;h&lt;e.length;h++)c=e[h],u=i([],c.x,r.c2p),f=i([],c.y,n.c2p),d.push(a(u,f,c.bicubic));p.attr(&quot;d&quot;,&quot;M&quot;+d.join(&quot;L&quot;)+&quot;Z&quot;).style(&quot;stroke&quot;,&quot;none&quot;)}(b,A.clipsegments,_,w,I,z),function(t,e,r,i,a,l,c,u,f,h,p){var g=&quot;fill&quot;===h;g&amp;&amp;d(a,t.contours);var v=s.ensureSingle(e,&quot;g&quot;,&quot;contourfill&quot;).selectAll(&quot;path&quot;).data(g?a:[]);v.enter().append(&quot;path&quot;),v.exit().remove(),v.each((function(t){var e=(t.prefixBoundary?p:&quot;&quot;)+function(t,e,r,n,i,a,l,c){var u,f,h,p,d,g,v,y=&quot;&quot;,x=e.edgepaths.map((function(t,e){return e})),b=!0,_=1e-4*Math.abs(r[0][0]-r[2][0]),w=1e-4*Math.abs(r[0][1]-r[2][1]);function T(t){return Math.abs(t[1]-r[0][1])&lt;w}function k(t){return Math.abs(t[1]-r[2][1])&lt;w}function M(t){return Math.abs(t[0]-r[0][0])&lt;_}function A(t){return Math.abs(t[0]-r[2][0])&lt;_}function S(t,e){var r,n,o,s,u=&quot;&quot;;for(T(t)&amp;&amp;!A(t)||k(t)&amp;&amp;!M(t)?(s=i.aaxis,o=m(i,a,[t[0],e[0]],.5*(t[1]+e[1]))):(s=i.baxis,o=m(i,a,.5*(t[0]+e[0]),[t[1],e[1]])),r=1;r&lt;o.length;r++)for(u+=s.smoothing?&quot;C&quot;:&quot;L&quot;,n=0;n&lt;o[r].length;n++){var f=o[r][n];u+=[l.c2p(f[0]),c.c2p(f[1])]+&quot; &quot;}return u}u=0,f=null;for(;x.length;){var E=e.edgepaths[u][0];for(f&amp;&amp;(y+=S(f,E)),v=o.smoothopen(e.edgepaths[u].map(n),e.smoothing),y+=b?v:v.replace(/^M/,&quot;L&quot;),x.splice(x.indexOf(u),1),f=e.edgepaths[u][e.edgepaths[u].length-1],d=-1,p=0;p&lt;4;p++){if(!f){s.log(&quot;Missing end?&quot;,u,e);break}for(T(f)&amp;&amp;!A(f)?h=r[1]:M(f)?h=r[0]:k(f)?h=r[3]:A(f)&amp;&amp;(h=r[2]),g=0;g&lt;e.edgepaths.length;g++){var C=e.edgepaths[g][0];Math.abs(f[0]-h[0])&lt;_?Math.abs(f[0]-C[0])&lt;_&amp;&amp;(C[1]-f[1])*(h[1]-C[1])&gt;=0&amp;&amp;(h=C,d=g):Math.abs(f[1]-h[1])&lt;w?Math.abs(f[1]-C[1])&lt;w&amp;&amp;(C[0]-f[0])*(h[0]-C[0])&gt;=0&amp;&amp;(h=C,d=g):s.log(&quot;endpt to newendpt is not vert. or horz.&quot;,f,h,C)}if(d&gt;=0)break;y+=S(f,h),f=h}if(d===e.edgepaths.length){s.log(&quot;unclosed perimeter path&quot;);break}u=d,(b=-1===x.indexOf(u))&amp;&amp;(u=x[0],y+=S(f,h)+&quot;Z&quot;,f=null)}for(u=0;u&lt;e.paths.length;u++)y+=o.smoothclosed(e.paths[u].map(n),e.smoothing);return y}(0,t,l,c,u,f,r,i);e?n.select(this).attr(&quot;d&quot;,e).style(&quot;stroke&quot;,&quot;none&quot;):n.select(this).remove()}))}(k,b,_,w,U,O,H,M,A,z,q),function(t,e,r,i,a,l,c){var h=s.ensureSingle(t,&quot;g&quot;,&quot;contourlines&quot;),p=!1!==a.showlines,d=a.showlabels,g=p&amp;&amp;d,m=u.createLines(h,p||d,e),b=u.createLineClip(h,g,r,i.trace.uid),_=t.selectAll(&quot;g.contourlabels&quot;).data(d?[0]:[]);if(_.exit().remove(),_.enter().append(&quot;g&quot;).classed(&quot;contourlabels&quot;,!0),d){var w=l.xaxis,T=l.yaxis,k=w._length,M=T._length,A=[[[0,0],[k,0],[k,M],[0,M]]],S=[];s.clearLocationCache();var E=u.labelFormatter(r,i),C=o.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).call(o.font,a.labelfont),L={left:0,right:k,center:k/2,top:0,bottom:M,middle:M/2},I=Math.sqrt(k*k+M*M),P=f.LABELDISTANCE*I/Math.max(1,e.length/f.LABELINCREASE);m.each((function(t){var e=u.calcTextOpts(t.level,E,C,r);n.select(this).selectAll(&quot;path&quot;).each((function(r){var n=s.getVisibleSegment(this,L,e.height/2);if(n&amp;&amp;(function(t,e,r,n,i,a){for(var o,s=0;s&lt;r.pedgepaths.length;s++)e===r.pedgepaths[s]&amp;&amp;(o=r.edgepaths[s]);if(!o)return;var l=i.a[0],c=i.a[i.a.length-1],u=i.b[0],f=i.b[i.b.length-1];function h(t,e){var r,n=0;return(Math.abs(t[0]-l)&lt;.1||Math.abs(t[0]-c)&lt;.1)&amp;&amp;(r=y(i.dxydb_rough(t[0],t[1],.1)),n=Math.max(n,a*x(e,r)/2)),(Math.abs(t[1]-u)&lt;.1||Math.abs(t[1]-f)&lt;.1)&amp;&amp;(r=y(i.dxyda_rough(t[0],t[1],.1)),n=Math.max(n,a*x(e,r)/2)),n}var p=v(t,0,1),d=v(t,n.total,n.total-1),g=h(o[0],p),m=n.total-h(o[o.length-1],d);n.min&lt;g&amp;&amp;(n.min=g);n.max&gt;m&amp;&amp;(n.max=m);n.len=n.max-n.min}(this,r,t,n,c,e.height),!(n.len&lt;(e.width+e.height)*f.LABELMIN)))for(var i=Math.min(Math.ceil(n.len/P),f.LABELMAX),a=0;a&lt;i;a++){var o=u.findBestTextLocation(this,n,e,S,L);if(!o)break;u.addLabelData(o,e,S,A)}}))})),C.remove(),u.drawLabels(_,S,r,b,g?A:null)}d&amp;&amp;!p&amp;&amp;m.remove()}(b,L,t,T,C,e,M),o.setClipUrl(b,M._clipPathId,t)}function H(t){var e=M.ab2xy(t[0],t[1],!0);return[_.c2p(e[0]),w.c2p(e[1])]}}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../carpet/axis_aligned_line&quot;:965,&quot;../carpet/lookup_carpetid&quot;:981,&quot;../carpet/makepath&quot;:982,&quot;../carpet/map_1d_array&quot;:983,&quot;../contour/close_boundaries&quot;:1010,&quot;../contour/constants&quot;:1012,&quot;../contour/convert_to_constraints&quot;:1016,&quot;../contour/empty_pathinfo&quot;:1018,&quot;../contour/find_all_paths&quot;:1020,&quot;../contour/make_crossings&quot;:1025,&quot;../contour/plot&quot;:1026,d3:169}],1035:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../scattermapbox/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({lon:o.lon,lat:o.lat,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},radius:{valType:&quot;number&quot;,editType:&quot;plot&quot;,arrayOk:!0,min:1,dflt:30},below:{valType:&quot;string&quot;,editType:&quot;plot&quot;},text:o.text,hovertext:o.hovertext,hoverinfo:s({},a.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:i(),showlegend:s({},a.showlegend,{dflt:!1})},n(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scattermapbox/attributes&quot;:1252}],1036:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray,a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../components/colorscale/calc&quot;),s=t(&quot;../../lib&quot;)._;e.exports=function(t,e){for(var r=e._length,l=new Array(r),c=e.z,u=i(c)&amp;&amp;c.length,f=0;f&lt;r;f++){var h=l[f]={},p=e.lon[f],d=e.lat[f];if(h.lonlat=n(p)&amp;&amp;n(d)?[+p,+d]:[a,a],u){var g=c[f];h.z=n(g)?g:a}}return o(t,e,{vals:u?c:[0,1],containerStr:&quot;&quot;,cLetter:&quot;z&quot;}),r&amp;&amp;(l[0].t={labels:{lat:s(t,&quot;lat:&quot;)+&quot; &quot;,lon:s(t,&quot;lon:&quot;)+&quot; &quot;}}),l}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],1037:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../components/colorscale&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=t(&quot;../../lib/geojson_utils&quot;).makeBlank;e.exports=function(t){var e=t[0].trace,r=!0===e.visible&amp;&amp;0!==e._length,c=e._opts={heatmap:{layout:{visibility:&quot;none&quot;},paint:{}},geojson:l()};if(!r)return c;var u,f=[],h=e.z,p=e.radius,d=i.isArrayOrTypedArray(h)&amp;&amp;h.length,g=i.isArrayOrTypedArray(p);for(u=0;u&lt;t.length;u++){var m=t[u],v=m.lonlat;if(v[0]!==s){var y={};if(d){var x=m.z;y.z=x!==s?x:0}g&amp;&amp;(y.r=n(p[u])&amp;&amp;p[u]&gt;0?+p[u]:0),f.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:v},properties:y})}}var b=o.extractOpts(e),_=b.reversescale?o.flipScale(b.colorscale):b.colorscale,w=_[0][1],T=[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;heatmap-density&quot;],0,a.opacity(w)&lt;1?w:a.addOpacity(w,0)];for(u=1;u&lt;_.length;u++)T.push(_[u][0],_[u][1]);var k=[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;get&quot;,&quot;z&quot;],b.min,0,b.max,1];return i.extendFlat(c.heatmap.paint,{&quot;heatmap-weight&quot;:d?k:1/(b.max-b.min),&quot;heatmap-color&quot;:T,&quot;heatmap-radius&quot;:g?{type:&quot;identity&quot;,property:&quot;r&quot;}:e.radius,&quot;heatmap-opacity&quot;:e.opacity}),c.geojson={type:&quot;FeatureCollection&quot;,features:f},c.heatmap.layout.visibility=&quot;visible&quot;,c}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale&quot;:655,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/geojson_utils&quot;:772,&quot;fast-isnumeric&quot;:241}],1038:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;lon&quot;)||[],c=s(&quot;lat&quot;)||[],u=Math.min(l.length,c.length);u?(e._length=u,s(&quot;z&quot;),s(&quot;radius&quot;),s(&quot;below&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:1035}],1039:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t.z=e.z,t}},{}],1040:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../scattermapbox/hover&quot;);e.exports=function(t,e,r){var o=a(t,e,r);if(o){var s=o[0],l=s.cd,c=l[0].trace,u=l[s.index];if(delete s.color,&quot;z&quot;in u){var f=s.subplot.mockAxis;s.z=u.z,s.zLabel=i.tickText(f,f.c2l(u.z),&quot;hover&quot;).text}return s.extraText=function(t,e,r){if(t.hovertemplate)return;var i=(e.hi||t.hoverinfo).split(&quot;+&quot;),a=-1!==i.indexOf(&quot;all&quot;),o=-1!==i.indexOf(&quot;lon&quot;),s=-1!==i.indexOf(&quot;lat&quot;),l=e.lonlat,c=[];function u(t){return t+&quot;\xb0&quot;}a||o&amp;&amp;s?c.push(&quot;(&quot;+u(l[0])+&quot;, &quot;+u(l[1])+&quot;)&quot;):o?c.push(r.lon+u(l[0])):s&amp;&amp;c.push(r.lat+u(l[1]));(a||-1!==i.indexOf(&quot;text&quot;))&amp;&amp;n.fillText(e,t,c);return c.join(&quot;&lt;br&gt;&quot;)}(c,u,l[0].t.labels),[s]}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scattermapbox/hover&quot;:1257}],1041:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),formatLabels:t(&quot;../scattermapbox/format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),getBelow:function(t,e){for(var r=e.getMapLayers(),n=0;n&lt;r.length;n++){var i=r[n],a=i.id;if(&quot;symbol&quot;===i.type&amp;&amp;&quot;string&quot;==typeof a&amp;&amp;-1===a.indexOf(&quot;plotly-&quot;))return a}},moduleType:&quot;trace&quot;,name:&quot;densitymapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;showLegend&quot;],meta:{hr_name:&quot;density_mapbox&quot;}}},{&quot;../../plots/mapbox&quot;:885,&quot;../heatmap/colorbar&quot;:1068,&quot;../scattermapbox/format_labels&quot;:1256,&quot;./attributes&quot;:1035,&quot;./calc&quot;:1036,&quot;./defaults&quot;:1038,&quot;./event_data&quot;:1039,&quot;./hover&quot;:1040,&quot;./plot&quot;:1042}],1042:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;),i=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix;function a(t,e){this.type=&quot;densitymapbox&quot;,this.subplot=t,this.uid=e,this.sourceId=&quot;source-&quot;+e,this.layerList=[[&quot;heatmap&quot;,i+e+&quot;-heatmap&quot;]],this.below=null}var o=a.prototype;o.update=function(t){var e=this.subplot,r=this.layerList,i=n(t),a=e.belowLookup[&quot;trace-&quot;+this.uid];e.map.getSource(this.sourceId).setData(i.geojson),a!==this.below&amp;&amp;(this._removeLayers(),this._addLayers(i,a),this.below=a);for(var o=0;o&lt;r.length;o++){var s=r[o],l=s[0],c=s[1],u=i[l];e.setOptions(c,&quot;setLayoutProperty&quot;,u.layout),&quot;visible&quot;===u.layout.visibility&amp;&amp;e.setOptions(c,&quot;setPaintProperty&quot;,u.paint)}},o._addLayers=function(t,e){for(var r=this.subplot,n=this.layerList,i=this.sourceId,a=0;a&lt;n.length;a++){var o=n[a],s=o[0],l=t[s];r.addLayer({type:s,id:o[1],source:i,layout:l.layout,paint:l.paint},e)}},o._removeLayers=function(){for(var t=this.subplot.map,e=this.layerList,r=e.length-1;r&gt;=0;r--)t.removeLayer(e[r][1])},o.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new a(t,r.uid),o=i.sourceId,s=n(e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid];return t.map.addSource(o,{type:&quot;geojson&quot;,data:s.geojson}),i._addLayers(s,l),i}},{&quot;../../plots/mapbox/constants&quot;:883,&quot;./convert&quot;:1037}],1043:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;);var i=e.marker;if(i){n.mergeArray(i.opacity,t,&quot;mo&quot;),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;a&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;))}}},{&quot;../../lib&quot;:778}],1044:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../scatter/attributes&quot;).line,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;./constants&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../components/color&quot;);e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,hovertext:n.hovertext,hovertemplate:o({},{keys:l.eventDataKeys}),hoverinfo:c({},a.hoverinfo,{flags:[&quot;name&quot;,&quot;x&quot;,&quot;y&quot;,&quot;text&quot;,&quot;percent initial&quot;,&quot;percent previous&quot;,&quot;percent total&quot;]}),textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;percent initial&quot;,&quot;percent previous&quot;,&quot;percent total&quot;,&quot;value&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;,arrayOk:!1},texttemplate:s({editType:&quot;plot&quot;},{keys:l.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),text:n.text,textposition:c({},n.textposition,{dflt:&quot;auto&quot;}),insidetextanchor:c({},n.insidetextanchor,{dflt:&quot;middle&quot;}),textangle:c({},n.textangle,{dflt:0}),textfont:n.textfont,insidetextfont:n.insidetextfont,outsidetextfont:n.outsidetextfont,constraintext:n.constraintext,cliponaxis:n.cliponaxis,orientation:c({},n.orientation,{}),offset:c({},n.offset,{arrayOk:!1}),width:c({},n.width,{arrayOk:!1}),marker:n.marker,connector:{fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},line:{color:c({},i.color,{dflt:u.defaultLine}),width:c({},i.width,{dflt:0,editType:&quot;plot&quot;}),dash:i.dash,editType:&quot;style&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup}},{&quot;../../components/color&quot;:643,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:1046}],1045:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;./arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t){return t===s?0:t}e.exports=function(t,e){var r,c,u,f,h,p,d=n.getFromId(t,e.xaxis||&quot;x&quot;),g=n.getFromId(t,e.yaxis||&quot;y&quot;);&quot;h&quot;===e.orientation?(r=d.makeCalcdata(e,&quot;x&quot;),u=g.makeCalcdata(e,&quot;y&quot;),c=i(e,g,&quot;y&quot;,u),p=!!e.yperiodalignment):(r=g.makeCalcdata(e,&quot;y&quot;),u=d.makeCalcdata(e,&quot;x&quot;),c=i(e,d,&quot;x&quot;,u),p=!!e.xperiodalignment);var m,v=Math.min(c.length,r.length),y=new Array(v);for(e._base=[],f=0;f&lt;v;f++){r[f]&lt;0&amp;&amp;(r[f]=s);var x=!1;r[f]!==s&amp;&amp;f+1&lt;v&amp;&amp;r[f+1]!==s&amp;&amp;(x=!0),h=y[f]={p:c[f],s:r[f],cNext:x},e._base[f]=-.5*h.s,p&amp;&amp;(y[f].orig_p=u[f]),e.ids&amp;&amp;(h.id=String(e.ids[f])),0===f&amp;&amp;(y[0].vTotal=0),y[0].vTotal+=l(h.s),h.begR=l(h.s)/l(y[0].s)}for(f=0;f&lt;v;f++)(h=y[f]).s!==s&amp;&amp;(h.sumR=h.s/y[0].vTotal,h.difR=void 0!==m?h.s/m:1,m=h.s);return a(y,e),o(y,e),y}},{&quot;../../constants/numerical&quot;:753,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc_selection&quot;:1189,&quot;./arrays_to_calcdata&quot;:1043}],1046:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;percentInitial&quot;,&quot;percentPrevious&quot;,&quot;percentTotal&quot;]}},{}],1047:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions;e.exports=function(t,e){var r,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,c=e.yaxis,u=[],f=[],h=[];for(i=0;i&lt;o.length;i++){var p=o[i],d=&quot;h&quot;===p.orientation;!0===p.visible&amp;&amp;p.xaxis===l._id&amp;&amp;p.yaxis===c._id&amp;&amp;&quot;funnel&quot;===p.type&amp;&amp;(r=s[i],d?h.push(r):f.push(r),u.push(r))}var g={mode:a.funnelmode,norm:a.funnelnorm,gap:a.funnelgap,groupgap:a.funnelgroupgap};for(n(t,l,c,f,g),n(t,c,l,h,g),i=0;i&lt;u.length;i++){r=u[i];for(var m=0;m&lt;r.length;m++)m+1&lt;r.length&amp;&amp;(r[m].nextP0=r[m+1].p0,r[m].nextS0=r[m+1].s0,r[m].nextP1=r[m+1].p1,r[m].nextS1=r[m+1].s1)}}},{&quot;../bar/cross_trace_calc&quot;:924}],1048:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,a=t(&quot;../bar/defaults&quot;).handleText,o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../../components/color&quot;);e.exports={supplyDefaults:function(t,e,r,i){function u(r,i){return n.coerce(t,e,l,r,i)}if(o(t,e,i,u)){s(t,e,i,u),u(&quot;orientation&quot;,e.y&amp;&amp;!e.x?&quot;v&quot;:&quot;h&quot;),u(&quot;offset&quot;),u(&quot;width&quot;);var f=u(&quot;text&quot;);u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;);var h=u(&quot;textposition&quot;);a(t,e,i,u,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),&quot;none&quot;===e.textposition||e.texttemplate||u(&quot;textinfo&quot;,Array.isArray(f)?&quot;text+value&quot;:&quot;value&quot;);var p=u(&quot;marker.color&quot;,r);if(u(&quot;marker.line.color&quot;,c.defaultLine),u(&quot;marker.line.width&quot;),u(&quot;connector.visible&quot;))u(&quot;connector.fillcolor&quot;,function(t){var e=n.isArrayOrTypedArray(t)?&quot;#000&quot;:t;return c.addOpacity(e,.5*c.opacity(e))}(p)),u(&quot;connector.line.width&quot;)&amp;&amp;(u(&quot;connector.line.color&quot;),u(&quot;connector.line.dash&quot;))}else e.visible=!1},crossTraceDefaults:function(t,e){var r,a;function o(t){return n.coerce(a._input,a,l,t)}if(&quot;group&quot;===e.funnelmode)for(var s=0;s&lt;t.length;s++)r=(a=t[s])._input,i(r,a,e,o)}}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/defaults&quot;:925,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:1044}],1049:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;percentInitial&quot;in e&amp;&amp;(t.percentInitial=e.percentInitial),&quot;percentPrevious&quot;in e&amp;&amp;(t.percentPrevious=e.percentPrevious),&quot;percentTotal&quot;in e&amp;&amp;(t.percentTotal=e.percentTotal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],1050:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;).opacity,i=t(&quot;../bar/hover&quot;).hoverOnBars,a=t(&quot;../../lib&quot;).formatPercent;e.exports=function(t,e,r,o){var s=i(t,e,r,o);if(s){var l=s.cd,c=l[0].trace,u=&quot;h&quot;===c.orientation,f=l[s.index];s[(u?&quot;x&quot;:&quot;y&quot;)+&quot;LabelVal&quot;]=f.s,s.percentInitial=f.begR,s.percentInitialLabel=a(f.begR,1),s.percentPrevious=f.difR,s.percentPreviousLabel=a(f.difR,1),s.percentTotal=f.sumR,s.percentTotalLabel=a(f.sumR,1);var h=f.hi||c.hoverinfo,p=[];if(h&amp;&amp;&quot;none&quot;!==h&amp;&amp;&quot;skip&quot;!==h){var d=&quot;all&quot;===h,g=h.split(&quot;+&quot;),m=function(t){return d||-1!==g.indexOf(t)};m(&quot;percent initial&quot;)&amp;&amp;p.push(s.percentInitialLabel+&quot; of initial&quot;),m(&quot;percent previous&quot;)&amp;&amp;p.push(s.percentPreviousLabel+&quot; of previous&quot;),m(&quot;percent total&quot;)&amp;&amp;p.push(s.percentTotalLabel+&quot; of total&quot;)}return s.extraText=p.join(&quot;&lt;br&gt;&quot;),s.color=function(t,e){var r=t.marker,i=e.mc||r.color,a=e.mlc||r.line.color,o=e.mlw||r.line.width;if(n(i))return i;if(n(a)&amp;&amp;o)return a}(c,f),[s]}}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/hover&quot;:928}],1051:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;../bar/select&quot;),moduleType:&quot;trace&quot;,name:&quot;funnel&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;oriented&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../bar/select&quot;:933,&quot;./attributes&quot;:1044,&quot;./calc&quot;:1045,&quot;./cross_trace_calc&quot;:1047,&quot;./defaults&quot;:1048,&quot;./event_data&quot;:1049,&quot;./hover&quot;:1050,&quot;./layout_attributes&quot;:1052,&quot;./layout_defaults&quot;:1053,&quot;./plot&quot;:1054,&quot;./style&quot;:1055}],1052:[function(t,e,r){&quot;use strict&quot;;e.exports={funnelmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;stack&quot;,editType:&quot;calc&quot;},funnelgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},funnelgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],1053:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s&lt;r.length;s++){var l=r[s];if(l.visible&amp;&amp;&quot;funnel&quot;===l.type){a=!0;break}}a&amp;&amp;(o(&quot;funnelmode&quot;),o(&quot;funnelgap&quot;,.2),o(&quot;funnelgroupgap&quot;))}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1052}],1054:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../constants/numerical&quot;).BADNUM,s=t(&quot;../bar/plot&quot;),l=t(&quot;../bar/uniform_text&quot;).clearMinTextSize;function c(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),i[3]=o.c2p(t.nextS1,!0),a[3]=s.c2p(t.nextP1,!0),n?[i,a]:[a,i]}e.exports=function(t,e,r,u){var f=t._fullLayout;l(&quot;funnel&quot;,f),function(t,e,r,s){var l=e.xaxis,u=e.yaxis;i.makeTraceGroups(s,r,&quot;trace bars&quot;).each((function(r){var s=n.select(this),f=r[0].trace,h=i.ensureSingle(s,&quot;g&quot;,&quot;regions&quot;);if(f.connector&amp;&amp;f.connector.visible){var p=&quot;h&quot;===f.orientation,d=h.selectAll(&quot;g.region&quot;).data(i.identity);d.enter().append(&quot;g&quot;).classed(&quot;region&quot;,!0),d.exit().remove();var g=d.size();d.each((function(r,s){if(s===g-1||r.cNext){var f=c(r,l,u,p),h=f[0],d=f[1],m=&quot;&quot;;h[0]!==o&amp;&amp;d[0]!==o&amp;&amp;h[1]!==o&amp;&amp;d[1]!==o&amp;&amp;h[2]!==o&amp;&amp;d[2]!==o&amp;&amp;h[3]!==o&amp;&amp;d[3]!==o&amp;&amp;(m+=p?&quot;M&quot;+h[0]+&quot;,&quot;+d[1]+&quot;L&quot;+h[2]+&quot;,&quot;+d[2]+&quot;H&quot;+h[3]+&quot;L&quot;+h[1]+&quot;,&quot;+d[1]+&quot;Z&quot;:&quot;M&quot;+h[1]+&quot;,&quot;+d[1]+&quot;L&quot;+h[2]+&quot;,&quot;+d[3]+&quot;V&quot;+d[2]+&quot;L&quot;+h[1]+&quot;,&quot;+d[0]+&quot;Z&quot;),&quot;&quot;===m&amp;&amp;(m=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,m).call(a.setClipUrl,e.layerClipId,t)}}))}else h.remove()}))}(t,e,r,u),function(t,e,r,o){var s=e.xaxis,l=e.yaxis;i.makeTraceGroups(o,r,&quot;trace bars&quot;).each((function(r){var o=n.select(this),u=r[0].trace,f=i.ensureSingle(o,&quot;g&quot;,&quot;lines&quot;);if(u.connector&amp;&amp;u.connector.visible&amp;&amp;u.connector.line.width){var h=&quot;h&quot;===u.orientation,p=f.selectAll(&quot;g.line&quot;).data(i.identity);p.enter().append(&quot;g&quot;).classed(&quot;line&quot;,!0),p.exit().remove();var d=p.size();p.each((function(r,o){if(o===d-1||r.cNext){var u=c(r,s,l,h),f=u[0],p=u[1],g=&quot;&quot;;void 0!==f[3]&amp;&amp;void 0!==p[3]&amp;&amp;(h?(g+=&quot;M&quot;+f[0]+&quot;,&quot;+p[1]+&quot;L&quot;+f[2]+&quot;,&quot;+p[2],g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[1]+&quot;L&quot;+f[3]+&quot;,&quot;+p[2]):(g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[1]+&quot;L&quot;+f[2]+&quot;,&quot;+p[3],g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[0]+&quot;L&quot;+f[2]+&quot;,&quot;+p[2])),&quot;&quot;===g&amp;&amp;(g=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,g).call(a.setClipUrl,e.layerClipId,t)}}))}else f.remove()}))}(t,e,r,u),s.plot(t,e,r,u,{mode:f.funnelmode,norm:f.funnelmode,gap:f.funnelgap,groupgap:f.funnelgroupgap})}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../bar/plot&quot;:932,&quot;../bar/uniform_text&quot;:937,d3:169}],1055:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../constants/interactions&quot;).DESELECTDIM,s=t(&quot;../bar/style&quot;),l=t(&quot;../bar/uniform_text&quot;).resizeText,c=s.styleTextPoints;e.exports={style:function(t,e,r){var s=r||n.select(t).selectAll(&quot;g.funnellayer&quot;).selectAll(&quot;g.trace&quot;);l(t,s,&quot;funnel&quot;),s.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),s.each((function(e){var r=n.select(this),s=e[0].trace;r.selectAll(&quot;.point &gt; path&quot;).each((function(t){if(!t.isBlank){var e=s.marker;n.select(this).call(a.fill,t.mc||e.color).call(a.stroke,t.mlc||e.line.color).call(i.dashLine,e.line.dash,t.mlw||e.line.width).style(&quot;opacity&quot;,s.selectedpoints&amp;&amp;!t.selected?o:1)}})),c(r,s,t),r.selectAll(&quot;.regions&quot;).each((function(){n.select(this).selectAll(&quot;path&quot;).style(&quot;stroke-width&quot;,0).call(a.fill,s.connector.fillcolor)})),r.selectAll(&quot;.lines&quot;).each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll(&quot;path&quot;),t.width,t.color,t.dash)}))}))}}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../constants/interactions&quot;:752,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,d3:169}],1056:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/domain&quot;).attributes,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:n.labels,label0:n.label0,dlabel:n.dlabel,values:n.values,marker:{colors:n.marker.colors,line:{color:l({},n.marker.line.color,{dflt:null}),width:l({},n.marker.line.width,{dflt:1}),editType:&quot;calc&quot;},editType:&quot;calc&quot;},text:n.text,hovertext:n.hovertext,scalegroup:l({},n.scalegroup,{}),textinfo:l({},n.textinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;]}),texttemplate:s({editType:&quot;plot&quot;},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;text&quot;,&quot;percent&quot;]}),hoverinfo:l({},i.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;name&quot;]}),hovertemplate:o({},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;text&quot;,&quot;percent&quot;]}),textposition:l({},n.textposition,{values:[&quot;inside&quot;,&quot;none&quot;],dflt:&quot;inside&quot;}),textfont:n.textfont,insidetextfont:n.insidetextfont,title:{text:n.title.text,font:n.title.font,position:l({},n.title.position,{values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;],dflt:&quot;top center&quot;}),editType:&quot;plot&quot;},domain:a({name:&quot;funnelarea&quot;,trace:!0,editType:&quot;calc&quot;}),aspectratio:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},baseratio:{valType:&quot;number&quot;,min:0,max:1,dflt:.333,editType:&quot;plot&quot;}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/template_attributes&quot;:906,&quot;../pie/attributes&quot;:1161}],1057:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;funnelarea&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1058:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/calc&quot;);e.exports={calc:function(t,e){return n.calc(t,e)},crossTraceCalc:function(t){n.crossTraceCalc(t,{type:&quot;funnelarea&quot;})}}},{&quot;../pie/calc&quot;:1163}],1059:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../bar/defaults&quot;).handleText,s=t(&quot;../pie/defaults&quot;).handleLabelsAndValues;e.exports=function(t,e,r,l){function c(r,a){return n.coerce(t,e,i,r,a)}var u=c(&quot;labels&quot;),f=c(&quot;values&quot;),h=s(u,f),p=h.len;if(e._hasLabels=h.hasLabels,e._hasValues=h.hasValues,!e._hasLabels&amp;&amp;e._hasValues&amp;&amp;(c(&quot;label0&quot;),c(&quot;dlabel&quot;)),p){e._length=p,c(&quot;marker.line.width&quot;)&amp;&amp;c(&quot;marker.line.color&quot;,l.paper_bgcolor),c(&quot;marker.colors&quot;),c(&quot;scalegroup&quot;);var d,g=c(&quot;text&quot;),m=c(&quot;texttemplate&quot;);if(m||(d=c(&quot;textinfo&quot;,Array.isArray(g)?&quot;text+percent&quot;:&quot;percent&quot;)),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),m||d&amp;&amp;&quot;none&quot;!==d){var v=c(&quot;textposition&quot;);o(t,e,l,c,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}a(e,l,c),c(&quot;title.text&quot;)&amp;&amp;(c(&quot;title.position&quot;),n.coerceFont(c,&quot;title.font&quot;,l.font)),c(&quot;aspectratio&quot;),c(&quot;baseratio&quot;)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/defaults&quot;:925,&quot;../pie/defaults&quot;:1164,&quot;./attributes&quot;:1056}],1060:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;funnelarea&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;pie-like&quot;,&quot;funnelarea&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),styleOne:t(&quot;../pie/style_one&quot;),meta:{}}},{&quot;../pie/style_one&quot;:1172,&quot;./attributes&quot;:1056,&quot;./base_plot&quot;:1057,&quot;./calc&quot;:1058,&quot;./defaults&quot;:1059,&quot;./layout_attributes&quot;:1061,&quot;./layout_defaults&quot;:1062,&quot;./plot&quot;:1063,&quot;./style&quot;:1064}],1061:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/layout_attributes&quot;).hiddenlabels;e.exports={hiddenlabels:n,funnelareacolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendfunnelareacolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{&quot;../pie/layout_attributes&quot;:1168}],1062:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;hiddenlabels&quot;),r(&quot;funnelareacolorway&quot;,e.colorway),r(&quot;extendfunnelareacolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1061}],1063:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../lib&quot;),o=a.strScale,s=a.strTranslate,l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../bar/plot&quot;).toMoveInsideBar,u=t(&quot;../bar/uniform_text&quot;),f=u.recordMinTextSize,h=u.clearMinTextSize,p=t(&quot;../pie/helpers&quot;),d=t(&quot;../pie/plot&quot;),g=d.attachFxHandlers,m=d.determineInsideTextFont,v=d.layoutAreas,y=d.prerenderTitles,x=d.positionTitleOutside,b=d.formatSliceLabel;function _(t,e){return&quot;l&quot;+(e[0]-t[0])+&quot;,&quot;+(e[1]-t[1])}e.exports=function(t,e){var r=t._fullLayout;h(&quot;funnelarea&quot;,r),y(e,t),v(e,r._size),a.makeTraceGroups(r._funnelarealayer,e,&quot;trace&quot;).each((function(e){var u=n.select(this),h=e[0],d=h.trace;!function(t){if(!t.length)return;var e=t[0],r=e.trace,n=r.aspectratio,i=r.baseratio;i&gt;.999&amp;&amp;(i=.999);var a,o=Math.pow(i,2),s=e.vTotal,l=s,c=s*o/(1-o)/s;function u(){var t,e={x:t=Math.sqrt(c),y:-t};return[e.x,e.y]}var f,h,p=[];for(p.push(u()),f=t.length-1;f&gt;-1;f--)if(!(h=t[f]).hidden){var d=h.v/l;c+=d,p.push(u())}var g=1/0,m=-1/0;for(f=0;f&lt;p.length;f++)a=p[f],g=Math.min(g,a[1]),m=Math.max(m,a[1]);for(f=0;f&lt;p.length;f++)p[f][1]-=(m+g)/2;var v=p[p.length-1][0],y=e.r,x=(m-g)/2,b=y/v,_=y/x*n;for(e.r=_*x,f=0;f&lt;p.length;f++)p[f][0]*=b,p[f][1]*=_;var w=[-(a=p[0])[0],a[1]],T=[a[0],a[1]],k=0;for(f=t.length-1;f&gt;-1;f--)if(!(h=t[f]).hidden){var M=p[k+=1][0],A=p[k][1];h.TL=[-M,A],h.TR=[M,A],h.BL=w,h.BR=T,h.pxmid=(S=h.TR,E=h.BR,[.5*(S[0]+E[0]),.5*(S[1]+E[1])]),w=h.TL,T=h.TR}var S,E}(e),u.each((function(){var u=n.select(this).selectAll(&quot;g.slice&quot;).data(e);u.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),u.exit().remove(),u.each((function(o,s){if(o.hidden)n.select(this).selectAll(&quot;path,g&quot;).remove();else{o.pointNumber=o.i,o.curveNumber=d.index;var u=h.cx,v=h.cy,y=n.select(this),x=y.selectAll(&quot;path.surface&quot;).data([o]);x.enter().append(&quot;path&quot;).classed(&quot;surface&quot;,!0).style({&quot;pointer-events&quot;:&quot;all&quot;}),y.call(g,t,e);var w=&quot;M&quot;+(u+o.TR[0])+&quot;,&quot;+(v+o.TR[1])+_(o.TR,o.BR)+_(o.BR,o.BL)+_(o.BL,o.TL)+&quot;Z&quot;;x.attr(&quot;d&quot;,w),b(t,o,h);var T=p.castOption(d.textposition,o.pts),k=y.selectAll(&quot;g.slicetext&quot;).data(o.text&amp;&amp;&quot;none&quot;!==T?[0]:[]);k.enter().append(&quot;g&quot;).classed(&quot;slicetext&quot;,!0),k.exit().remove(),k.each((function(){var h=a.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),p=a.ensureUniformFontSize(t,m(d,o,r.font));h.text(o.text).attr({class:&quot;slicetext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(i.font,p).call(l.convertToTspans,t);var g,y,x,b=i.bBox(h.node()),_=Math.min(o.BL[1],o.BR[1])+v,w=Math.max(o.TL[1],o.TR[1])+v;y=Math.max(o.TL[0],o.BL[0])+u,x=Math.min(o.TR[0],o.BR[0])+u,(g=c(y,x,_,w,b,{isHorizontal:!0,constrained:!0,angle:0,anchor:&quot;middle&quot;})).fontSize=p.size,f(d.type,g,r),e[s].transform=g,h.attr(&quot;transform&quot;,a.getTextTransform(g))}))}}));var v=n.select(this).selectAll(&quot;g.titletext&quot;).data(d.title.text?[0]:[]);v.enter().append(&quot;g&quot;).classed(&quot;titletext&quot;,!0),v.exit().remove(),v.each((function(){var e=a.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),c=d.title.text;d._meta&amp;&amp;(c=a.templateString(c,d._meta)),e.text(c).attr({class:&quot;titletext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(i.font,d.title.font).call(l.convertToTspans,t);var u=x(h,r._size);e.attr(&quot;transform&quot;,s(u.x,u.y)+o(Math.min(1,u.scale))+s(u.tx,u.ty))}))}))}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../bar/plot&quot;:932,&quot;../bar/uniform_text&quot;:937,&quot;../pie/helpers&quot;:1166,&quot;../pie/plot&quot;:1170,d3:169}],1064:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../pie/style_one&quot;),a=t(&quot;../bar/uniform_text&quot;).resizeText;e.exports=function(t){var e=t._fullLayout._funnelarealayer.selectAll(&quot;.trace&quot;);a(t,e,&quot;funnelarea&quot;),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(i,t,e)}))}))}},{&quot;../bar/uniform_text&quot;:937,&quot;../pie/style_one&quot;:1172,d3:169}],1065:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,t(&quot;../../lib/extend&quot;).extendFlat);e.exports=s({z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},x:s({},n.x,{impliedEdits:{xtype:&quot;array&quot;}}),x0:s({},n.x0,{impliedEdits:{xtype:&quot;scaled&quot;}}),dx:s({},n.dx,{impliedEdits:{xtype:&quot;scaled&quot;}}),y:s({},n.y,{impliedEdits:{ytype:&quot;array&quot;}}),y0:s({},n.y0,{impliedEdits:{ytype:&quot;scaled&quot;}}),dy:s({},n.dy,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiod:s({},n.xperiod,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiod:s({},n.yperiod,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiod0:s({},n.xperiod0,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiod0:s({},n.yperiod0,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiodalignment:s({},n.xperiodalignment,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiodalignment:s({},n.yperiodalignment,{impliedEdits:{ytype:&quot;scaled&quot;}}),text:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},hovertext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},transpose:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},xtype:{valType:&quot;enumerated&quot;,values:[&quot;array&quot;,&quot;scaled&quot;],editType:&quot;calc+clearAxisTypes&quot;},ytype:{valType:&quot;enumerated&quot;,values:[&quot;array&quot;,&quot;scaled&quot;],editType:&quot;calc+clearAxisTypes&quot;},zsmooth:{valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,&quot;best&quot;,!1],dflt:!1,editType:&quot;calc&quot;},hoverongaps:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;none&quot;},connectgaps:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},xgap:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;plot&quot;},ygap:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;plot&quot;},zhoverformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;none&quot;},hovertemplate:a(),showlegend:s({},i.showlegend,{dflt:!1})},{transforms:void 0},o(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1066:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../histogram2d/calc&quot;),l=t(&quot;../../components/colorscale/calc&quot;),c=t(&quot;./convert_column_xyz&quot;),u=t(&quot;./clean_2d_array&quot;),f=t(&quot;./interp2d&quot;),h=t(&quot;./find_empties&quot;),p=t(&quot;./make_bound_array&quot;),d=t(&quot;../../constants/numerical&quot;).BADNUM;function g(t){for(var e=[],r=t.length,n=0;n&lt;r;n++){var i=t[n];i!==d&amp;&amp;e.push(i)}return e}e.exports=function(t,e){var r,m,v,y,x,b,_,w,T,k,M,A=a.getFromId(t,e.xaxis||&quot;x&quot;),S=a.getFromId(t,e.yaxis||&quot;y&quot;),E=n.traceIs(e,&quot;contour&quot;),C=n.traceIs(e,&quot;histogram&quot;),L=n.traceIs(e,&quot;gl2d&quot;),I=E?&quot;best&quot;:e.zsmooth;if(A._minDtick=0,S._minDtick=0,C)y=(M=s(t,e)).orig_x,r=M.x,m=M.x0,v=M.dx,w=M.orig_y,x=M.y,b=M.y0,_=M.dy,T=M.z;else{var P=e.z;i.isArray1D(P)?(c(e,A,S,&quot;x&quot;,&quot;y&quot;,[&quot;z&quot;]),r=e._x,x=e._y,P=e._z):(y=e.x?A.makeCalcdata(e,&quot;x&quot;):[],w=e.y?S.makeCalcdata(e,&quot;y&quot;):[],r=o(e,A,&quot;x&quot;,y),x=o(e,S,&quot;y&quot;,w),e._x=r,e._y=x),m=e.x0,v=e.dx,b=e.y0,_=e.dy,T=u(P,e,A,S)}function z(t){I=e._input.zsmooth=e.zsmooth=!1,i.warn('cannot use zsmooth: &quot;fast&quot;: '+t)}if((A.rangebreaks||S.rangebreaks)&amp;&amp;(T=function(t,e,r){for(var n=[],i=-1,a=0;a&lt;r.length;a++)if(e[a]!==d){i++,n[i]=[];for(var o=0;o&lt;r[a].length;o++)t[o]!==d&amp;&amp;n[i].push(r[a][o])}return n}(r,x,T),C||(r=g(r),x=g(x),e._x=r,e._y=x)),C||!E&amp;&amp;!e.connectgaps||(e._emptypoints=h(T),f(T,e._emptypoints)),&quot;fast&quot;===I)if(&quot;log&quot;===A.type||&quot;log&quot;===S.type)z(&quot;log axis found&quot;);else if(!C){if(r.length){var O=(r[r.length-1]-r[0])/(r.length-1),D=Math.abs(O/100);for(k=0;k&lt;r.length-1;k++)if(Math.abs(r[k+1]-r[k]-O)&gt;D){z(&quot;x scale is not linear&quot;);break}}if(x.length&amp;&amp;&quot;fast&quot;===I){var R=(x[x.length-1]-x[0])/(x.length-1),F=Math.abs(R/100);for(k=0;k&lt;x.length-1;k++)if(Math.abs(x[k+1]-x[k]-R)&gt;F){z(&quot;y scale is not linear&quot;);break}}}var B=i.maxRowLength(T),N=&quot;scaled&quot;===e.xtype?&quot;&quot;:r,j=p(e,N,m,v,B,A),U=&quot;scaled&quot;===e.ytype?&quot;&quot;:x,V=p(e,U,b,_,T.length,S);L||(e._extremes[A._id]=a.findExtremes(A,j),e._extremes[S._id]=a.findExtremes(S,V));var q={x:j,y:V,z:T,text:e._text||e.text,hovertext:e._hovertext||e.hovertext};if(e.xperiodalignment&amp;&amp;y&amp;&amp;(q.orig_x=y),e.yperiodalignment&amp;&amp;w&amp;&amp;(q.orig_y=w),N&amp;&amp;N.length===j.length-1&amp;&amp;(q.xCenter=N),U&amp;&amp;U.length===V.length-1&amp;&amp;(q.yCenter=U),C&amp;&amp;(q.xRanges=M.xRanges,q.yRanges=M.yRanges,q.pts=M.pts),E||l(t,e,{vals:T,cLetter:&quot;z&quot;}),E&amp;&amp;e.contours&amp;&amp;&quot;heatmap&quot;===e.contours.coloring){var H={type:&quot;contour&quot;===e.type?&quot;heatmap&quot;:&quot;histogram2d&quot;,xcalendar:e.xcalendar,ycalendar:e.ycalendar};q.xfill=p(H,N,m,v,B,A),q.yfill=p(H,U,b,_,T.length,S)}return[q]}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../histogram2d/calc&quot;:1098,&quot;./clean_2d_array&quot;:1067,&quot;./convert_column_xyz&quot;:1069,&quot;./find_empties&quot;:1071,&quot;./interp2d&quot;:1074,&quot;./make_bound_array&quot;:1075}],1067:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r,o){var s,l,c,u,f,h;function p(t){if(n(t))return+t}if(e&amp;&amp;e.transpose){for(s=0,f=0;f&lt;t.length;f++)s=Math.max(s,t[f].length);if(0===s)return!1;c=function(t){return t.length},u=function(t,e,r){return(t[r]||[])[e]}}else s=t.length,c=function(t,e){return t[e].length},u=function(t,e,r){return(t[e]||[])[r]};var d=function(t,e,r){return e===a||r===a?a:u(t,e,r)};function g(t){if(e&amp;&amp;&quot;carpet&quot;!==e.type&amp;&amp;&quot;contourcarpet&quot;!==e.type&amp;&amp;t&amp;&amp;&quot;category&quot;===t.type&amp;&amp;e[&quot;_&quot;+t._id.charAt(0)].length){var r=t._id.charAt(0),n={},o=e[&quot;_&quot;+r+&quot;CategoryMap&quot;]||e[r];for(f=0;f&lt;o.length;f++)n[o[f]]=f;return function(e){var r=n[t._categories[e]];return r+1?r:a}}return i.identity}var m=g(r),v=g(o);o&amp;&amp;&quot;category&quot;===o.type&amp;&amp;(s=o._categories.length);var y=new Array(s);for(f=0;f&lt;s;f++)for(l=r&amp;&amp;&quot;category&quot;===r.type?r._categories.length:c(t,f),y[f]=new Array(l),h=0;h&lt;l;h++)y[f][h]=p(d(t,v(f),m(h)));return y}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],1068:[function(t,e,r){&quot;use strict&quot;;e.exports={min:&quot;zmin&quot;,max:&quot;zmax&quot;}},{}],1069:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../plots/cartesian/align_period&quot;);e.exports=function(t,e,r,o,s,l){var c=t._length,u=e.makeCalcdata(t,o),f=r.makeCalcdata(t,s);u=a(t,e,o,u),f=a(t,r,s,f);var h,p,d,g,m=t.text,v=void 0!==m&amp;&amp;n.isArray1D(m),y=t.hovertext,x=void 0!==y&amp;&amp;n.isArray1D(y),b=n.distinctVals(u),_=b.vals,w=n.distinctVals(f),T=w.vals,k=[],M=T.length,A=_.length;for(h=0;h&lt;l.length;h++)k[h]=n.init2dArray(M,A);v&amp;&amp;(d=n.init2dArray(M,A)),x&amp;&amp;(g=n.init2dArray(M,A));var S=n.init2dArray(M,A);for(h=0;h&lt;c;h++)if(u[h]!==i&amp;&amp;f[h]!==i){var E=n.findBin(u[h]+b.minDiff/2,_),C=n.findBin(f[h]+w.minDiff/2,T);for(p=0;p&lt;l.length;p++){var L=t[l[p]];k[p][C][E]=L[h],S[C][E]=h}v&amp;&amp;(d[C][E]=m[h]),x&amp;&amp;(g[C][E]=y[h])}for(t[&quot;_&quot;+o]=_,t[&quot;_&quot;+s]=T,p=0;p&lt;l.length;p++)t[&quot;_&quot;+l[p]]=k[p];v&amp;&amp;(t._text=d),x&amp;&amp;(t._hovertext=g),e&amp;&amp;&quot;category&quot;===e.type&amp;&amp;(t[&quot;_&quot;+o+&quot;CategoryMap&quot;]=_.map((function(t){return e._categories[t]}))),r&amp;&amp;&quot;category&quot;===r.type&amp;&amp;(t[&quot;_&quot;+s+&quot;CategoryMap&quot;]=T.map((function(t){return r._categories[t]}))),t._after2before=S}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825}],1070:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./xyz_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./style_defaults&quot;),s=t(&quot;../../components/colorscale/defaults&quot;),l=t(&quot;./attributes&quot;);e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,l,r,i)}i(t,e,u,c)?(a(t,e,c,u),u(&quot;text&quot;),u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;),o(t,e,u,c),u(&quot;hoverongaps&quot;),u(&quot;connectgaps&quot;,n.isArray1D(e.z)&amp;&amp;!1!==e.zsmooth),s(t,e,c,u,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:1065,&quot;./style_defaults&quot;:1078,&quot;./xyz_defaults&quot;:1079}],1071:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).maxRowLength;e.exports=function(t){var e,r,i,a,o,s,l,c,u=[],f={},h=[],p=t[0],d=[],g=[0,0,0],m=n(t);for(r=0;r&lt;t.length;r++)for(e=d,d=p,p=t[r+1]||[],i=0;i&lt;m;i++)void 0===d[i]&amp;&amp;((s=(void 0!==d[i-1]?1:0)+(void 0!==d[i+1]?1:0)+(void 0!==e[i]?1:0)+(void 0!==p[i]?1:0))?(0===r&amp;&amp;s++,0===i&amp;&amp;s++,r===t.length-1&amp;&amp;s++,i===d.length-1&amp;&amp;s++,s&lt;4&amp;&amp;(f[[r,i]]=[r,i,s]),u.push([r,i,s])):h.push([r,i]));for(;h.length;){for(l={},c=!1,o=h.length-1;o&gt;=0;o--)(s=((f[[(r=(a=h[o])[0])-1,i=a[1]]]||g)[2]+(f[[r+1,i]]||g)[2]+(f[[r,i-1]]||g)[2]+(f[[r,i+1]]||g)[2])/20)&amp;&amp;(l[a]=[r,i,s],h.splice(o,1),c=!0);if(!c)throw&quot;findEmpties iterated with no new neighbors&quot;;for(a in l)f[a]=l[a],u.push(l[a])}return u.sort((function(t,e){return e[2]-t[2]}))}},{&quot;../../lib&quot;:778}],1072:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts;e.exports=function(t,e,r,s,l,c){var u,f,h,p,d=t.cd[0],g=d.trace,m=t.xa,v=t.ya,y=d.x,x=d.y,b=d.z,_=d.xCenter,w=d.yCenter,T=d.zmask,k=g.zhoverformat,M=y,A=x;if(!1!==t.index){try{h=Math.round(t.index[1]),p=Math.round(t.index[0])}catch(e){return void i.error(&quot;Error hovering on heatmap, pointNumber must be [row,col], found:&quot;,t.index)}if(h&lt;0||h&gt;=b[0].length||p&lt;0||p&gt;b.length)return}else{if(n.inbox(e-y[0],e-y[y.length-1],0)&gt;0||n.inbox(r-x[0],r-x[x.length-1],0)&gt;0)return;if(c){var S;for(M=[2*y[0]-y[1]],S=1;S&lt;y.length;S++)M.push((y[S]+y[S-1])/2);for(M.push([2*y[y.length-1]-y[y.length-2]]),A=[2*x[0]-x[1]],S=1;S&lt;x.length;S++)A.push((x[S]+x[S-1])/2);A.push([2*x[x.length-1]-x[x.length-2]])}h=Math.max(0,Math.min(M.length-2,i.findBin(e,M))),p=Math.max(0,Math.min(A.length-2,i.findBin(r,A)))}var E,C,L=m.c2p(y[h]),I=m.c2p(y[h+1]),P=v.c2p(x[p]),z=v.c2p(x[p+1]);c?(E=d.orig_x||y,C=d.orig_y||x,I=L,u=E[h],z=P,f=C[p]):(E=d.orig_x||_||y,C=d.orig_y||w||x,u=_?E[h]:(E[h]+E[h+1])/2,f=w?C[p]:(C[p]+C[p+1])/2,m&amp;&amp;&quot;category&quot;===m.type&amp;&amp;(u=y[h]),v&amp;&amp;&quot;category&quot;===v.type&amp;&amp;(f=x[p]),g.zsmooth&amp;&amp;(L=I=m.c2p(u),P=z=v.c2p(f)));var O=b[p][h];if(T&amp;&amp;!T[p][h]&amp;&amp;(O=void 0),void 0!==O||g.hoverongaps){var D;Array.isArray(d.hovertext)&amp;&amp;Array.isArray(d.hovertext[p])?D=d.hovertext[p][h]:Array.isArray(d.text)&amp;&amp;Array.isArray(d.text[p])&amp;&amp;(D=d.text[p][h]);var R=o(g),F={type:&quot;linear&quot;,range:[R.min,R.max],hoverformat:k,_separators:m._separators,_numFormat:m._numFormat},B=a.tickText(F,O,&quot;hover&quot;).text;return[i.extendFlat(t,{index:g._after2before?g._after2before[p][h]:[p,h],distance:t.maxHoverDistance,spikeDistance:t.maxSpikeDistance,x0:L,x1:I,y0:P,y1:z,xLabelVal:u,yLabelVal:f,zLabelVal:O,zLabel:B,text:D})]}}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1073:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:t(&quot;./colorbar&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;),moduleType:&quot;trace&quot;,name:&quot;heatmap&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1065,&quot;./calc&quot;:1066,&quot;./colorbar&quot;:1068,&quot;./defaults&quot;:1070,&quot;./hover&quot;:1072,&quot;./plot&quot;:1076,&quot;./style&quot;:1077}],1074:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=[[-1,0],[1,0],[0,-1],[0,1]];function a(t){return.5-.25*Math.min(1,.5*t)}function o(t,e,r){var n,a,o,s,l,c,u,f,h,p,d,g,m,v=0;for(s=0;s&lt;e.length;s++){for(a=(n=e[s])[0],o=n[1],d=t[a][o],p=0,h=0,l=0;l&lt;4;l++)(u=t[a+(c=i[l])[0]])&amp;&amp;void 0!==(f=u[o+c[1]])&amp;&amp;(0===p?g=m=f:(g=Math.min(g,f),m=Math.max(m,f)),h++,p+=f);if(0===h)throw&quot;iterateInterp2d order is wrong: no defined neighbors&quot;;t[a][o]=p/h,void 0===d?h&lt;4&amp;&amp;(v=1):(t[a][o]=(1+r)*t[a][o]-r*d,m&gt;g&amp;&amp;(v=Math.max(v,Math.abs(t[a][o]-d)/(m-g))))}return v}e.exports=function(t,e){var r,i=1;for(o(t,e),r=0;r&lt;e.length&amp;&amp;!(e[r][2]&lt;4);r++);for(e=e.slice(r),r=0;r&lt;100&amp;&amp;i&gt;.01;r++)i=o(t,e,a(i));return i&gt;.01&amp;&amp;n.log(&quot;interp2d didn't converge quickly&quot;,i),t}},{&quot;../../lib&quot;:778}],1075:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a,o,s){var l,c,u,f=[],h=n.traceIs(t,&quot;contour&quot;),p=n.traceIs(t,&quot;histogram&quot;),d=n.traceIs(t,&quot;gl2d&quot;);if(i(e)&amp;&amp;e.length&gt;1&amp;&amp;!p&amp;&amp;&quot;category&quot;!==s.type){var g=e.length;if(!(g&lt;=o))return h?e.slice(0,o):e.slice(0,o+1);if(h||d)f=e.slice(0,o);else if(1===o)f=[e[0]-.5,e[0]+.5];else{for(f=[1.5*e[0]-.5*e[1]],u=1;u&lt;g;u++)f.push(.5*(e[u-1]+e[u]));f.push(1.5*e[g-1]-.5*e[g-2])}if(g&lt;o){var m=f[f.length-1],v=m-f[f.length-2];for(u=g;u&lt;o;u++)m+=v,f.push(m)}}else{var y=t[s._id.charAt(0)+&quot;calendar&quot;];if(p)l=s.r2c(r,0,y);else if(i(e)&amp;&amp;1===e.length)l=e[0];else if(void 0===r)l=0;else{l=(&quot;log&quot;===s.type?s.d2c:s.r2c)(r,0,y)}for(c=a||1,u=h||d?0:-.5;u&lt;o;u++)f.push(l+c*u)}return f}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1076:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../components/colorscale&quot;).makeColorScaleFuncFromTrace,l=t(&quot;../../constants/xmlns_namespaces&quot;);function c(t,e){var r=e.length-2,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=e[n+1],s=o.constrain(n+(t-i)/(a-i)-.5,0,r),l=Math.round(s),c=Math.abs(s-l);return s&amp;&amp;s!==r&amp;&amp;c?{bin0:l,frac:c,bin1:Math.round(l+c/(s-l))}:{bin0:l,bin1:l,frac:0}}function u(t,e){var r=e.length-1,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=(t-i)/(e[n+1]-i)||0;return a&lt;=0?{bin0:n,bin1:n,frac:0}:a&lt;.5?{bin0:n,bin1:n+1,frac:a}:{bin0:n+1,bin1:n,frac:1-a}}function f(t,e,r){t[e]=r[0],t[e+1]=r[1],t[e+2]=r[2],t[e+3]=Math.round(255*r[3])}e.exports=function(t,e,r,h){var p=e.xaxis,d=e.yaxis;o.makeTraceGroups(h,r,&quot;hm&quot;).each((function(e){var r,h,g,m,v,y,x=n.select(this),b=e[0],_=b.trace,w=b.z,T=b.x,k=b.y,M=b.xCenter,A=b.yCenter,S=a.traceIs(_,&quot;contour&quot;),E=S?&quot;best&quot;:_.zsmooth,C=w.length,L=o.maxRowLength(w),I=!1,P=!1;for(y=0;void 0===r&amp;&amp;y&lt;T.length-1;)r=p.c2p(T[y]),y++;for(y=T.length-1;void 0===h&amp;&amp;y&gt;0;)h=p.c2p(T[y]),y--;for(h&lt;r&amp;&amp;(g=h,h=r,r=g,I=!0),y=0;void 0===m&amp;&amp;y&lt;k.length-1;)m=d.c2p(k[y]),y++;for(y=k.length-1;void 0===v&amp;&amp;y&gt;0;)v=d.c2p(k[y]),y--;if(v&lt;m&amp;&amp;(g=m,m=v,v=g,P=!0),S&amp;&amp;(M=T,A=k,T=b.xfill,k=b.yfill),&quot;fast&quot;!==E){var z=&quot;best&quot;===E?0:.5;r=Math.max(-z*p._length,r),h=Math.min((1+z)*p._length,h),m=Math.max(-z*d._length,m),v=Math.min((1+z)*d._length,v)}var O=Math.round(h-r),D=Math.round(v-m);if(O&lt;=0||D&lt;=0){x.selectAll(&quot;image&quot;).data([]).exit().remove()}else{var R,F;&quot;fast&quot;===E?(R=L,F=C):(R=O,F=D);var B=document.createElement(&quot;canvas&quot;);B.width=R,B.height=F;var N,j,U=B.getContext(&quot;2d&quot;),V=s(_,{noNumericCheck:!0,returnArray:!0});&quot;fast&quot;===E?(N=I?function(t){return L-1-t}:o.identity,j=P?function(t){return C-1-t}:o.identity):(N=function(t){return o.constrain(Math.round(p.c2p(T[t])-r),0,O)},j=function(t){return o.constrain(Math.round(d.c2p(k[t])-m),0,D)});var q,H,G,Y,W,X=j(0),Z=[X,X],J=I?0:1,K=P?0:1,Q=0,$=0,tt=0,et=0;if(E){var rt,nt=0;try{rt=new Uint8Array(O*D*4)}catch(t){rt=new Array(O*D*4)}if(&quot;best&quot;===E){var it,at,ot,st=M||T,lt=A||k,ct=new Array(st.length),ut=new Array(lt.length),ft=new Array(O),ht=M?u:c,pt=A?u:c;for(y=0;y&lt;st.length;y++)ct[y]=Math.round(p.c2p(st[y])-r);for(y=0;y&lt;lt.length;y++)ut[y]=Math.round(d.c2p(lt[y])-m);for(y=0;y&lt;O;y++)ft[y]=ht(y,ct);for(H=0;H&lt;D;H++)for(at=w[(it=pt(H,ut)).bin0],ot=w[it.bin1],y=0;y&lt;O;y++,nt+=4)f(rt,nt,W=kt(at,ot,ft[y],it))}else for(H=0;H&lt;C;H++)for(Y=w[H],Z=j(H),y=0;y&lt;O;y++)W=Tt(Y[y],1),f(rt,nt=4*(Z*O+N(y)),W);var dt=U.createImageData(O,D);try{dt.data.set(rt)}catch(t){var gt=dt.data,mt=gt.length;for(H=0;H&lt;mt;H++)gt[H]=rt[H]}U.putImageData(dt,0,0)}else{var vt=_.xgap,yt=_.ygap,xt=Math.floor(vt/2),bt=Math.floor(yt/2);for(H=0;H&lt;C;H++)if(Y=w[H],Z.reverse(),Z[K]=j(H+1),Z[0]!==Z[1]&amp;&amp;void 0!==Z[0]&amp;&amp;void 0!==Z[1])for(q=[G=N(0),G],y=0;y&lt;L;y++)q.reverse(),q[J]=N(y+1),q[0]!==q[1]&amp;&amp;void 0!==q[0]&amp;&amp;void 0!==q[1]&amp;&amp;(W=Tt(Y[y],(q[1]-q[0])*(Z[1]-Z[0])),U.fillStyle=&quot;rgba(&quot;+W.join(&quot;,&quot;)+&quot;)&quot;,U.fillRect(q[0]+xt,Z[0]+bt,q[1]-q[0]-vt,Z[1]-Z[0]-yt))}$=Math.round($/Q),tt=Math.round(tt/Q),et=Math.round(et/Q);var _t=i(&quot;rgb(&quot;+$+&quot;,&quot;+tt+&quot;,&quot;+et+&quot;)&quot;);t._hmpixcount=(t._hmpixcount||0)+Q,t._hmlumcount=(t._hmlumcount||0)+Q*_t.getLuminance();var wt=x.selectAll(&quot;image&quot;).data(e);wt.enter().append(&quot;svg:image&quot;).attr({xmlns:l.svg,preserveAspectRatio:&quot;none&quot;}),wt.attr({height:D,width:O,x:r,y:m,&quot;xlink:href&quot;:B.toDataURL(&quot;image/png&quot;)})}function Tt(t,e){if(void 0!==t){var r=V(t);return r[0]=Math.round(r[0]),r[1]=Math.round(r[1]),r[2]=Math.round(r[2]),Q+=e,$+=r[0]*e,tt+=r[1]*e,et+=r[2]*e,r}return[0,0,0,0]}function kt(t,e,r,n){var i=t[r.bin0];if(void 0===i)return Tt(void 0,1);var a,o=t[r.bin1],s=e[r.bin0],l=e[r.bin1],c=o-i||0,u=s-i||0;return a=void 0===o?void 0===l?0:void 0===s?2*(l-i):2*(2*l-s-i)/3:void 0===l?void 0===s?0:2*(2*i-o-s)/3:void 0===s?2*(2*l-o-i)/3:l+i-o-s,Tt(i+r.frac*c+n.frac*(u+r.frac*a))}}))}},{&quot;../../components/colorscale&quot;:655,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,d3:169,tinycolor2:576}],1077:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t){n.select(t).selectAll(&quot;.hm image&quot;).style(&quot;opacity&quot;,(function(t){return t.trace.opacity}))}},{d3:169}],1078:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){!1===r(&quot;zsmooth&quot;)&amp;&amp;(r(&quot;xgap&quot;),r(&quot;ygap&quot;)),r(&quot;zhoverformat&quot;)}},{}],1079:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;);function o(t,e){var r=e(t);return&quot;scaled&quot;===(r?e(t+&quot;type&quot;,&quot;array&quot;):&quot;scaled&quot;)&amp;&amp;(e(t+&quot;0&quot;),e(&quot;d&quot;+t)),r}e.exports=function(t,e,r,s,l,c){var u,f,h=r(&quot;z&quot;);if(l=l||&quot;x&quot;,c=c||&quot;y&quot;,void 0===h||!h.length)return 0;if(i.isArray1D(t.z)){u=r(l),f=r(c);var p=i.minRowLength(u),d=i.minRowLength(f);if(0===p||0===d)return 0;e._length=Math.min(p,d,h.length)}else{if(u=o(l,r),f=o(c,r),!function(t){for(var e,r=!0,a=!1,o=!1,s=0;s&lt;t.length;s++){if(e=t[s],!i.isArrayOrTypedArray(e)){r=!1;break}e.length&gt;0&amp;&amp;(a=!0);for(var l=0;l&lt;e.length;l++)if(n(e[l])){o=!0;break}}return r&amp;&amp;a&amp;&amp;o}(h))return 0;r(&quot;transpose&quot;),e._length=null}return&quot;heatmapgl&quot;===t.type||&quot;contourgl&quot;===t.type||a.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[l,c],s),!0}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;fast-isnumeric&quot;:241}],1080:[function(t,e,r){&quot;use strict&quot;;for(var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=[&quot;z&quot;,&quot;x&quot;,&quot;x0&quot;,&quot;dx&quot;,&quot;y&quot;,&quot;y0&quot;,&quot;dy&quot;,&quot;text&quot;,&quot;transpose&quot;,&quot;xtype&quot;,&quot;ytype&quot;],l={},c=0;c&lt;s.length;c++){var u=s[c];l[u]=n[u]}l.zsmooth={valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,!1],dflt:&quot;fast&quot;,editType:&quot;calc&quot;},a(l,i(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1})),e.exports=o(l,&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../heatmap/attributes&quot;:1065}],1081:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-heatmap2d&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../lib/str2rgbarray&quot;);function o(t,e){this.scene=t,this.uid=e,this.type=&quot;heatmapgl&quot;,this.name=&quot;&quot;,this.hoverinfo=&quot;all&quot;,this.xData=[],this.yData=[],this.zData=[],this.textLabels=[],this.idToIndex=[],this.bounds=[0,0,0,0],this.options={zsmooth:&quot;fast&quot;,z:[],x:[],y:[],shape:[0,0],colorLevels:[0],colorValues:[0,0,0,1]},this.heatmap=n(t.glplot,this.options),this.heatmap._trace=this}var s=o.prototype;s.handlePick=function(t){var e=this.options,r=e.shape,n=t.pointId,i=n%r[0],a=Math.floor(n/r[0]),o=n;return{trace:this,dataCoord:t.dataCoord,traceCoord:[e.x[i],e.y[a],e.z[o]],textLabel:this.textLabels[n],name:this.name,pointIndex:[a,i],hoverinfo:this.hoverinfo}},s.update=function(t,e){var r=e[0];this.index=t.index,this.name=t.name,this.hoverinfo=t.hoverinfo;var n=r.z;this.options.z=[].concat.apply([],n);var o=n[0].length,s=n.length;this.options.shape=[o,s],this.options.x=r.x,this.options.y=r.y,this.options.zsmooth=t.zsmooth;var l=function(t){for(var e=t.colorscale,r=t.zmin,n=t.zmax,i=e.length,o=new Array(i),s=new Array(4*i),l=0;l&lt;i;l++){var c=e[l],u=a(c[1]);o[l]=r+c[0]*(n-r);for(var f=0;f&lt;4;f++)s[4*l+f]=u[f]}return{colorLevels:o,colorValues:s}}(t);this.options.colorLevels=l.colorLevels,this.options.colorValues=l.colorValues,this.textLabels=[].concat.apply([],t.text),this.heatmap.update(this.options);var c,u,f=this.scene.xaxis,h=this.scene.yaxis;!1===t.zsmooth&amp;&amp;(c={ppad:r.x[1]-r.x[0]},u={ppad:r.y[1]-r.y[0]}),t._extremes[f._id]=i.findExtremes(f,r.x,c),t._extremes[h._id]=i.findExtremes(h,r.y,u)},s.dispose=function(){this.heatmap.dispose()},e.exports=function(t,e,r){var n=new o(t,e.uid);return n.update(e,r),n}},{&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/axes&quot;:828,&quot;gl-heatmap2d&quot;:271}],1082:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,l,s)?(l(&quot;text&quot;),l(&quot;zsmooth&quot;),a(t,e,s,l,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../heatmap/xyz_defaults&quot;:1079,&quot;./attributes&quot;:1080}],1083:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;../heatmap/calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;heatmapgl&quot;,basePlotModule:t(&quot;../../plots/gl2d&quot;),categories:[&quot;gl&quot;,&quot;gl2d&quot;,&quot;2dMap&quot;],meta:{}}},{&quot;../../plots/gl2d&quot;:868,&quot;../heatmap/calc&quot;:1066,&quot;../heatmap/colorbar&quot;:1068,&quot;./attributes&quot;:1080,&quot;./convert&quot;:1081,&quot;./defaults&quot;:1082}],1084:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;./bin_attributes&quot;),o=t(&quot;./constants&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},text:s({},n.text,{}),hovertext:s({},n.hovertext,{}),orientation:n.orientation,histfunc:{valType:&quot;enumerated&quot;,values:[&quot;count&quot;,&quot;sum&quot;,&quot;avg&quot;,&quot;min&quot;,&quot;max&quot;],dflt:&quot;count&quot;,editType:&quot;calc&quot;},histnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;percent&quot;,&quot;probability&quot;,&quot;density&quot;,&quot;probability density&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},cumulative:{enabled:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;increasing&quot;,&quot;decreasing&quot;],dflt:&quot;increasing&quot;,editType:&quot;calc&quot;},currentbin:{valType:&quot;enumerated&quot;,values:[&quot;include&quot;,&quot;exclude&quot;,&quot;half&quot;],dflt:&quot;include&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},nbinsx:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},xbins:a(&quot;x&quot;,!0),nbinsy:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},ybins:a(&quot;y&quot;,!0),autobinx:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},autobiny:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},bingroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertemplate:i({},{keys:o.eventDataKeys}),marker:n.marker,offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,_deprecated:{bardir:n._deprecated.bardir}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;./bin_attributes&quot;:1086,&quot;./constants&quot;:1090}],1085:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=t.length,n=0,i=0;i&lt;r;i++)e[i]?(t[i]/=e[i],n+=t[i]):t[i]=null;return n}},{}],1086:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return{start:{valType:&quot;any&quot;,editType:&quot;calc&quot;},end:{valType:&quot;any&quot;,editType:&quot;calc&quot;},size:{valType:&quot;any&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;}}},{}],1087:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports={count:function(t,e,r){return r[t]++,1},sum:function(t,e,r,i){var a=i[e];return n(a)?(a=Number(a),r[t]+=a,a):0},avg:function(t,e,r,i,a){var o=i[e];return n(o)&amp;&amp;(o=Number(o),r[t]+=o,a[t]++),0},min:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]&gt;a){var o=a-r[t];return r[t]=a,o}}return 0},max:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]&lt;a){var o=a-r[t];return r[t]=a,o}}return 0}}},{&quot;fast-isnumeric&quot;:241}],1088:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/numerical&quot;),i=n.ONEAVGYEAR,a=n.ONEAVGMONTH,o=n.ONEDAY,s=n.ONEHOUR,l=n.ONEMIN,c=n.ONESEC,u=t(&quot;../../plots/cartesian/axes&quot;).tickIncrement;function f(t,e,r,n){if(t*e&lt;=0)return 1/0;for(var i=Math.abs(e-t),a=&quot;date&quot;===r.type,o=h(i,a),s=0;s&lt;10;s++){var l=h(80*o,a);if(o===l)break;if(!p(l,t,e,a,r,n))break;o=l}return o}function h(t,e){return e&amp;&amp;t&gt;c?t&gt;o?t&gt;1.1*i?i:t&gt;1.1*a?a:o:t&gt;s?s:t&gt;l?l:c:Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function p(t,e,r,n,a,s){if(n&amp;&amp;t&gt;o){var l=d(e,a,s),c=d(r,a,s),u=t===i?0:1;return l[u]!==c[u]}return Math.floor(r/t)-Math.floor(e/t)&gt;.1}function d(t,e,r){var n=e.c2d(t,i,r).split(&quot;-&quot;);return&quot;&quot;===n[0]&amp;&amp;(n.unshift(),n[0]=&quot;-&quot;+n[0]),n}e.exports=function(t,e,r,n,a){var s,l,c=-1.1*e,h=-.1*e,p=t-h,d=r[0],g=r[1],m=Math.min(f(d+h,d+p,n,a),f(g+h,g+p,n,a)),v=Math.min(f(d+c,d+h,n,a),f(g+c,g+h,n,a));if(m&gt;v&amp;&amp;v&lt;Math.abs(g-d)/4e3?(s=m,l=!1):(s=Math.min(m,v),l=!0),&quot;date&quot;===n.type&amp;&amp;s&gt;o){var y=s===i?1:6,x=s===i?&quot;M12&quot;:&quot;M1&quot;;return function(e,r){var o=n.c2d(e,i,a),s=o.indexOf(&quot;-&quot;,y);s&gt;0&amp;&amp;(o=o.substr(0,s));var c=n.d2c(o,0,a);if(c&lt;e){var f=u(c,x,!1,a);(c+f)/2&lt;e+t&amp;&amp;(c=f)}return r&amp;&amp;l?u(c,x,!0,a):c}}return function(e,r){var n=s*Math.round(e/s);return n+s/10&lt;e&amp;&amp;n+.9*s&lt;e+t&amp;&amp;(n+=s),r&amp;&amp;l&amp;&amp;(n-=s),n}}},{&quot;../../constants/numerical&quot;:753,&quot;../../plots/cartesian/axes&quot;:828}],1089:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../bar/arrays_to_calcdata&quot;),l=t(&quot;./bin_functions&quot;),c=t(&quot;./norm_functions&quot;),u=t(&quot;./average&quot;),f=t(&quot;./bin_label_vals&quot;);function h(t,e,r,s,l){var c,u,f,p,d,g,m,v=s+&quot;bins&quot;,y=t._fullLayout,x=e[&quot;_&quot;+s+&quot;bingroup&quot;],b=y._histogramBinOpts[x],_=&quot;overlay&quot;===y.barmode,w=function(t){return r.r2c(t,0,p)},T=function(t){return r.c2r(t,0,p)},k=&quot;date&quot;===r.type?function(t){return t||0===t?i.cleanDate(t,null,p):null}:function(t){return n(t)?Number(t):null};function M(t,e,r){e[t+&quot;Found&quot;]?(e[t]=k(e[t]),null===e[t]&amp;&amp;(e[t]=r[t])):(g[t]=e[t]=r[t],i.nestedProperty(u[0],v+&quot;.&quot;+t).set(r[t]))}if(e[&quot;_&quot;+s+&quot;autoBinFinished&quot;])delete e[&quot;_&quot;+s+&quot;autoBinFinished&quot;];else{u=b.traces;var A=[],S=!0,E=!1,C=!1;for(c=0;c&lt;u.length;c++)if((f=u[c]).visible){var L=b.dirs[c];d=f[&quot;_&quot;+L+&quot;pos0&quot;]=r.makeCalcdata(f,L),A=i.concat(A,d),delete f[&quot;_&quot;+s+&quot;autoBinFinished&quot;],!0===e.visible&amp;&amp;(S?S=!1:(delete f._autoBin,f[&quot;_&quot;+s+&quot;autoBinFinished&quot;]=1),a.traceIs(f,&quot;2dMap&quot;)&amp;&amp;(E=!0),&quot;histogram2dcontour&quot;===f.type&amp;&amp;(C=!0))}p=u[0][s+&quot;calendar&quot;];var I=o.autoBin(A,r,b.nbins,E,p,b.sizeFound&amp;&amp;b.size),P=u[0]._autoBin={};if(g=P[b.dirs[0]]={},C&amp;&amp;(b.size||(I.start=T(o.tickIncrement(w(I.start),I.size,!0,p))),void 0===b.end&amp;&amp;(I.end=T(o.tickIncrement(w(I.end),I.size,!1,p)))),_&amp;&amp;!a.traceIs(e,&quot;2dMap&quot;)&amp;&amp;0===I._dataSpan&amp;&amp;&quot;category&quot;!==r.type&amp;&amp;&quot;multicategory&quot;!==r.type){if(l)return[I,d,!0];I=function(t,e,r,n,a){var o,s,l,c=t._fullLayout,u=function(t,e){for(var r=e.xaxis,n=e.yaxis,i=e.orientation,a=[],o=t._fullData,s=0;s&lt;o.length;s++){var l=o[s];&quot;histogram&quot;===l.type&amp;&amp;!0===l.visible&amp;&amp;l.orientation===i&amp;&amp;l.xaxis===r&amp;&amp;l.yaxis===n&amp;&amp;a.push(l)}return a}(t,e),f=!1,p=1/0,d=[e];for(o=0;o&lt;u.length;o++)if((s=u[o])===e)f=!0;else if(f){var g=h(t,s,r,n,!0),m=g[0],v=g[2];s[&quot;_&quot;+n+&quot;autoBinFinished&quot;]=1,s[&quot;_&quot;+n+&quot;pos0&quot;]=g[1],v?d.push(s):p=Math.min(p,m.size)}else l=c._histogramBinOpts[s[&quot;_&quot;+n+&quot;bingroup&quot;]],p=Math.min(p,l.size||s[a].size);var y=new Array(d.length);for(o=0;o&lt;d.length;o++)for(var x=d[o][&quot;_&quot;+n+&quot;pos0&quot;],b=0;b&lt;x.length;b++)if(void 0!==x[b]){y[o]=x[b];break}isFinite(p)||(p=i.distinctVals(y).minDiff);for(o=0;o&lt;d.length;o++){var _=(s=d[o])[n+&quot;calendar&quot;],w={start:r.c2r(y[o]-p/2,0,_),end:r.c2r(y[o]+p/2,0,_),size:p};s._input[a]=s[a]=w,(l=c._histogramBinOpts[s[&quot;_&quot;+n+&quot;bingroup&quot;]])&amp;&amp;i.extendFlat(l,w)}return e[a]}(t,e,r,s,v)}(m=f.cumulative||{}).enabled&amp;&amp;&quot;include&quot;!==m.currentbin&amp;&amp;(&quot;decreasing&quot;===m.direction?I.start=T(o.tickIncrement(w(I.start),I.size,!0,p)):I.end=T(o.tickIncrement(w(I.end),I.size,!1,p))),b.size=I.size,b.sizeFound||(g.size=I.size,i.nestedProperty(u[0],v+&quot;.size&quot;).set(I.size)),M(&quot;start&quot;,b,I),M(&quot;end&quot;,b,I)}d=e[&quot;_&quot;+s+&quot;pos0&quot;],delete e[&quot;_&quot;+s+&quot;pos0&quot;];var z=e._input[v]||{},O=i.extendFlat({},b),D=b.start,R=r.r2l(z.start),F=void 0!==R;if((b.startFound||F)&amp;&amp;R!==r.r2l(D)){var B=F?R:i.aggNums(Math.min,null,d),N={type:&quot;category&quot;===r.type||&quot;multicategory&quot;===r.type?&quot;linear&quot;:r.type,r2l:r.r2l,dtick:b.size,tick0:D,calendar:p,range:[B,o.tickIncrement(B,b.size,!1,p)].map(r.l2r)},j=o.tickFirst(N);j&gt;r.r2l(B)&amp;&amp;(j=o.tickIncrement(j,b.size,!0,p)),O.start=r.l2r(j),F||i.nestedProperty(e,v+&quot;.start&quot;).set(O.start)}var U=b.end,V=r.r2l(z.end),q=void 0!==V;if((b.endFound||q)&amp;&amp;V!==r.r2l(U)){var H=q?V:i.aggNums(Math.max,null,d);O.end=r.l2r(H),q||i.nestedProperty(e,v+&quot;.start&quot;).set(O.end)}var G=&quot;autobin&quot;+s;return!1===e._input[G]&amp;&amp;(e._input[v]=i.extendFlat({},e[v]||{}),delete e._input[G],delete e[G]),[O,d]}e.exports={calc:function(t,e){var r,a,p,d,g=[],m=[],v=o.getFromId(t,&quot;h&quot;===e.orientation?e.yaxis:e.xaxis),y=&quot;h&quot;===e.orientation?&quot;y&quot;:&quot;x&quot;,x={x:&quot;y&quot;,y:&quot;x&quot;}[y],b=e[y+&quot;calendar&quot;],_=e.cumulative,w=h(t,e,v,y),T=w[0],k=w[1],M=&quot;string&quot;==typeof T.size,A=[],S=M?A:T,E=[],C=[],L=[],I=0,P=e.histnorm,z=e.histfunc,O=-1!==P.indexOf(&quot;density&quot;);_.enabled&amp;&amp;O&amp;&amp;(P=P.replace(/ ?density$/,&quot;&quot;),O=!1);var D,R=&quot;max&quot;===z||&quot;min&quot;===z?null:0,F=l.count,B=c[P],N=!1,j=function(t){return v.r2c(t,0,b)};for(i.isArrayOrTypedArray(e[x])&amp;&amp;&quot;count&quot;!==z&amp;&amp;(D=e[x],N=&quot;avg&quot;===z,F=l[z]),r=j(T.start),p=j(T.end)+(r-o.tickIncrement(r,T.size,!1,b))/1e6;r&lt;p&amp;&amp;g.length&lt;1e6&amp;&amp;(a=o.tickIncrement(r,T.size,!1,b),g.push((r+a)/2),m.push(R),L.push([]),A.push(r),O&amp;&amp;E.push(1/(a-r)),N&amp;&amp;C.push(0),!(a&lt;=r));)r=a;A.push(r),M||&quot;date&quot;!==v.type||(S={start:j(S.start),end:j(S.end),size:S.size}),t._fullLayout._roundFnOpts||(t._fullLayout._roundFnOpts={});var U=e[&quot;_&quot;+y+&quot;bingroup&quot;],V={leftGap:1/0,rightGap:1/0};U&amp;&amp;(t._fullLayout._roundFnOpts[U]||(t._fullLayout._roundFnOpts[U]=V),V=t._fullLayout._roundFnOpts[U]);var q,H=m.length,G=!0,Y=V.leftGap,W=V.rightGap,X={};for(r=0;r&lt;k.length;r++){var Z=k[r];(d=i.findBin(Z,S))&gt;=0&amp;&amp;d&lt;H&amp;&amp;(I+=F(d,r,m,D,C),G&amp;&amp;L[d].length&amp;&amp;Z!==k[L[d][0]]&amp;&amp;(G=!1),L[d].push(r),X[r]=d,Y=Math.min(Y,Z-A[d]),W=Math.min(W,A[d+1]-Z))}V.leftGap=Y,V.rightGap=W,G||(q=function(e,r){return function(){var n=t._fullLayout._roundFnOpts[U];return f(n.leftGap,n.rightGap,A,v,b)(e,r)}}),N&amp;&amp;(I=u(m,C)),B&amp;&amp;B(m,I,E),_.enabled&amp;&amp;function(t,e,r){var n,i,a;function o(e){a=t[e],t[e]/=2}function s(e){i=t[e],t[e]=a+i/2,a+=i}if(&quot;half&quot;===r)if(&quot;increasing&quot;===e)for(o(0),n=1;n&lt;t.length;n++)s(n);else for(o(t.length-1),n=t.length-2;n&gt;=0;n--)s(n);else if(&quot;increasing&quot;===e){for(n=1;n&lt;t.length;n++)t[n]+=t[n-1];&quot;exclude&quot;===r&amp;&amp;(t.unshift(0),t.pop())}else{for(n=t.length-2;n&gt;=0;n--)t[n]+=t[n+1];&quot;exclude&quot;===r&amp;&amp;(t.push(0),t.shift())}}(m,_.direction,_.currentbin);var J=Math.min(g.length,m.length),K=[],Q=0,$=J-1;for(r=0;r&lt;J;r++)if(m[r]){Q=r;break}for(r=J-1;r&gt;=Q;r--)if(m[r]){$=r;break}for(r=Q;r&lt;=$;r++)if(n(g[r])&amp;&amp;n(m[r])){var tt={p:g[r],s:m[r],b:0};_.enabled||(tt.pts=L[r],G?tt.ph0=tt.ph1=L[r].length?k[L[r][0]]:g[r]:(e._computePh=!0,tt.ph0=q(A[r]),tt.ph1=q(A[r+1],!0))),K.push(tt)}return 1===K.length&amp;&amp;(K[0].width1=o.tickIncrement(K[0].p,T.size,!1,b)-K[0].p),s(K,e),i.isArrayOrTypedArray(e.selectedpoints)&amp;&amp;i.tagSelected(K,e,X),K},calcAllAutoBins:h}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../bar/arrays_to_calcdata&quot;:920,&quot;./average&quot;:1085,&quot;./bin_functions&quot;:1087,&quot;./bin_label_vals&quot;:1088,&quot;./norm_functions&quot;:1096,&quot;fast-isnumeric&quot;:241}],1090:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;binNumber&quot;]}},{}],1091:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axis_ids&quot;),a=t(&quot;../../registry&quot;).traceIs,o=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,s=n.nestedProperty,l=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,c=[{aStr:{x:&quot;xbins.start&quot;,y:&quot;ybins.start&quot;},name:&quot;start&quot;},{aStr:{x:&quot;xbins.end&quot;,y:&quot;ybins.end&quot;},name:&quot;end&quot;},{aStr:{x:&quot;xbins.size&quot;,y:&quot;ybins.size&quot;},name:&quot;size&quot;},{aStr:{x:&quot;nbinsx&quot;,y:&quot;nbinsy&quot;},name:&quot;nbins&quot;}],u=[&quot;x&quot;,&quot;y&quot;];e.exports=function(t,e){var r,f,h,p,d,g,m,v=e._histogramBinOpts={},y=[],x={},b=[];function _(t,e){return n.coerce(r._input,r,r._module.attributes,t,e)}function w(t){return&quot;v&quot;===t.orientation?&quot;x&quot;:&quot;y&quot;}function T(t,r,a){var o=t.uid+&quot;__&quot;+a;r||(r=o);var s=function(t,r){return i.getFromTrace({_fullLayout:e},t,r).type}(t,a),l=t[a+&quot;calendar&quot;]||&quot;&quot;,c=v[r],u=!0;c&amp;&amp;(s===c.axType&amp;&amp;l===c.calendar?(u=!1,c.traces.push(t),c.dirs.push(a)):(r=o,s!==c.axType&amp;&amp;n.warn([&quot;Attempted to group the bins of trace&quot;,t.index,&quot;set on a&quot;,&quot;type:&quot;+s,&quot;axis&quot;,&quot;with bins on&quot;,&quot;type:&quot;+c.axType,&quot;axis.&quot;].join(&quot; &quot;)),l!==c.calendar&amp;&amp;n.warn([&quot;Attempted to group the bins of trace&quot;,t.index,&quot;set with a&quot;,l,&quot;calendar&quot;,&quot;with bins&quot;,c.calendar?&quot;on a &quot;+c.calendar+&quot; calendar&quot;:&quot;w/o a set calendar&quot;].join(&quot; &quot;)))),u&amp;&amp;(v[r]={traces:[t],dirs:[a],axType:s,calendar:t[a+&quot;calendar&quot;]||&quot;&quot;}),t[&quot;_&quot;+a+&quot;bingroup&quot;]=r}for(d=0;d&lt;t.length;d++)r=t[d],a(r,&quot;histogram&quot;)&amp;&amp;(y.push(r),delete r._xautoBinFinished,delete r._yautoBinFinished,a(r,&quot;2dMap&quot;)||o(r._input,r,e,_));var k=e._alignmentOpts||{};for(d=0;d&lt;y.length;d++){if(r=y[d],h=&quot;&quot;,!a(r,&quot;2dMap&quot;)){if(p=w(r),&quot;group&quot;===e.barmode&amp;&amp;r.alignmentgroup){var M=r[p+&quot;axis&quot;],A=l(e,M)+r.orientation;(k[A]||{})[r.alignmentgroup]&amp;&amp;(h=A)}h||&quot;overlay&quot;===e.barmode||(h=l(e,r.xaxis)+l(e,r.yaxis)+w(r))}h?(x[h]||(x[h]=[]),x[h].push(r)):b.push(r)}for(h in x)if(1!==(f=x[h]).length){var S=!1;for(f.length&amp;&amp;(r=f[0],S=_(&quot;bingroup&quot;)),h=S||h,d=0;d&lt;f.length;d++){var E=(r=f[d])._input.bingroup;E&amp;&amp;E!==h&amp;&amp;n.warn([&quot;Trace&quot;,r.index,&quot;must match&quot;,&quot;within bingroup&quot;,h+&quot;.&quot;,&quot;Ignoring its bingroup:&quot;,E,&quot;setting.&quot;].join(&quot; &quot;)),r.bingroup=h,T(r,h,w(r))}}else b.push(f[0]);for(d=0;d&lt;b.length;d++){r=b[d];var C=_(&quot;bingroup&quot;);if(a(r,&quot;2dMap&quot;))for(m=0;m&lt;2;m++){var L=_((p=u[m])+&quot;bingroup&quot;,C?C+&quot;__&quot;+p:null);T(r,L,p)}else T(r,C,w(r))}for(h in v){var I=v[h];for(f=I.traces,g=0;g&lt;c.length;g++){var P,z,O=c[g],D=O.name;if(&quot;nbins&quot;!==D||!I.sizeFound){for(d=0;d&lt;f.length;d++){if(r=f[d],p=I.dirs[d],P=O.aStr[p],void 0!==s(r._input,P).get()){I[D]=_(P),I[D+&quot;Found&quot;]=!0;break}(z=(r._autoBin||{})[p]||{})[D]&amp;&amp;s(r,P).set(z[D])}if(&quot;start&quot;===D||&quot;end&quot;===D)for(;d&lt;f.length;d++)(r=f[d])[&quot;_&quot;+p+&quot;bingroup&quot;]&amp;&amp;_(P,(z=(r._autoBin||{})[p]||{})[D]);&quot;nbins&quot;!==D||I.sizeFound||I.nbinsFound||(r=f[0],I[D]=_(P))}}}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/cartesian/constraints&quot;:835,&quot;../../registry&quot;:911,&quot;../bar/defaults&quot;:925}],1092:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../bar/style_defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,n){return i.coerce(t,e,s,r,n)}var u=c(&quot;x&quot;),f=c(&quot;y&quot;);c(&quot;cumulative.enabled&quot;)&amp;&amp;(c(&quot;cumulative.direction&quot;),c(&quot;cumulative.currentbin&quot;)),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;);var h=c(&quot;orientation&quot;,f&amp;&amp;!u?&quot;h&quot;:&quot;v&quot;),p=&quot;v&quot;===h?&quot;x&quot;:&quot;y&quot;,d=&quot;v&quot;===h?&quot;y&quot;:&quot;x&quot;,g=u&amp;&amp;f?Math.min(i.minRowLength(u)&amp;&amp;i.minRowLength(f)):i.minRowLength(e[p]||[]);if(g){e._length=g,n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],l),e[d]&amp;&amp;c(&quot;histfunc&quot;),c(&quot;histnorm&quot;),c(&quot;autobin&quot;+p),o(t,e,c,r,l),i.coerceSelectionMarkerOpacity(e,c);var m=(e.marker.line||{}).color,v=n.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);v(t,e,m||a.defaultLine,{axis:&quot;y&quot;}),v(t,e,m||a.defaultLine,{axis:&quot;x&quot;,inherit:&quot;y&quot;})}else e.visible=!1}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../bar/style_defaults&quot;:936,&quot;./attributes&quot;:1084}],1093:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){if(t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;zLabelVal&quot;in e&amp;&amp;(t.z=e.zLabelVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),!(r.cumulative||{}).enabled){var a,o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;if(t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex,r._indexToPoints){a=[];for(var s=0;s&lt;o.length;s++)a=a.concat(r._indexToPoints[o[s]])}else a=o;t.pointIndices=a}return t}},{}],1094:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/hover&quot;).hoverPoints,i=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText;e.exports=function(t,e,r,a){var o=n(t,e,r,a);if(o){var s=(t=o[0]).cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var c=&quot;h&quot;===l.orientation?&quot;y&quot;:&quot;x&quot;;t[c+&quot;Label&quot;]=i(t[c+&quot;a&quot;],s.ph0,s.ph1)}return o}}},{&quot;../../plots/cartesian/axes&quot;:828,&quot;../bar/hover&quot;:928}],1095:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;../bar/layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),supplyLayoutDefaults:t(&quot;../bar/layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;../bar/cross_trace_calc&quot;).crossTraceCalc,plot:t(&quot;../bar/plot&quot;).plot,layerName:&quot;barlayer&quot;,style:t(&quot;../bar/style&quot;).style,styleOnSelect:t(&quot;../bar/style&quot;).styleOnSelect,colorbar:t(&quot;../scatter/marker_colorbar&quot;),hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../bar/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;bar&quot;,&quot;histogram&quot;,&quot;oriented&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../bar/cross_trace_calc&quot;:924,&quot;../bar/layout_attributes&quot;:930,&quot;../bar/layout_defaults&quot;:931,&quot;../bar/plot&quot;:932,&quot;../bar/select&quot;:933,&quot;../bar/style&quot;:935,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1084,&quot;./calc&quot;:1089,&quot;./cross_trace_defaults&quot;:1091,&quot;./defaults&quot;:1092,&quot;./event_data&quot;:1093,&quot;./hover&quot;:1094}],1096:[function(t,e,r){&quot;use strict&quot;;e.exports={percent:function(t,e){for(var r=t.length,n=100/e,i=0;i&lt;r;i++)t[i]*=n},probability:function(t,e){for(var r=t.length,n=0;n&lt;r;n++)t[n]/=e},density:function(t,e,r,n){var i=t.length;n=n||1;for(var a=0;a&lt;i;a++)t[a]*=r[a]*n},&quot;probability density&quot;:function(t,e,r,n){var i=t.length;n&amp;&amp;(e/=n);for(var a=0;a&lt;i;a++)t[a]*=r[a]/e}}},{}],1097:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../histogram/attributes&quot;),i=t(&quot;../histogram/bin_attributes&quot;),a=t(&quot;../heatmap/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../components/colorscale/attributes&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=c({x:n.x,y:n.y,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},marker:{color:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:i(&quot;x&quot;),nbinsy:n.nbinsy,ybins:i(&quot;y&quot;),autobinx:n.autobinx,autobiny:n.autobiny,bingroup:c({},n.bingroup,{}),xbingroup:c({},n.bingroup,{}),ybingroup:c({},n.bingroup,{}),xgap:a.xgap,ygap:a.ygap,zsmooth:a.zsmooth,zhoverformat:a.zhoverformat,hovertemplate:s({},{keys:&quot;z&quot;}),showlegend:c({},o.showlegend,{dflt:!1})},l(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../heatmap/attributes&quot;:1065,&quot;../histogram/attributes&quot;:1084,&quot;../histogram/bin_attributes&quot;:1086}],1098:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../histogram/bin_functions&quot;),o=t(&quot;../histogram/norm_functions&quot;),s=t(&quot;../histogram/average&quot;),l=t(&quot;../histogram/bin_label_vals&quot;),c=t(&quot;../histogram/calc&quot;).calcAllAutoBins;function u(t,e,r,n){var i,a=new Array(t);if(n)for(i=0;i&lt;t;i++)a[i]=1/(e[i+1]-e[i]);else{var o=1/r;for(i=0;i&lt;t;i++)a[i]=o}return a}function f(t,e){return{start:t(e.start),end:t(e.end),size:e.size}}function h(t,e,r,n,i,a){var o,s=t.length-1,c=new Array(s),u=l(r,n,t,i,a);for(o=0;o&lt;s;o++){var f=(e||[])[o];c[o]=void 0===f?[u(t[o]),u(t[o+1],!0)]:[f,f]}return c}e.exports=function(t,e){var r,l,p,d,g=i.getFromId(t,e.xaxis),m=i.getFromId(t,e.yaxis),v=e.xcalendar,y=e.ycalendar,x=function(t){return g.r2c(t,0,v)},b=function(t){return m.r2c(t,0,y)},_=c(t,e,g,&quot;x&quot;),w=_[0],T=_[1],k=c(t,e,m,&quot;y&quot;),M=k[0],A=k[1],S=e._length;T.length&gt;S&amp;&amp;T.splice(S,T.length-S),A.length&gt;S&amp;&amp;A.splice(S,A.length-S);var E=[],C=[],L=[],I=&quot;string&quot;==typeof w.size,P=&quot;string&quot;==typeof M.size,z=[],O=[],D=I?z:w,R=P?O:M,F=0,B=[],N=[],j=e.histnorm,U=e.histfunc,V=-1!==j.indexOf(&quot;density&quot;),q=&quot;max&quot;===U||&quot;min&quot;===U?null:0,H=a.count,G=o[j],Y=!1,W=[],X=[],Z=&quot;z&quot;in e?e.z:&quot;marker&quot;in e&amp;&amp;Array.isArray(e.marker.color)?e.marker.color:&quot;&quot;;Z&amp;&amp;&quot;count&quot;!==U&amp;&amp;(Y=&quot;avg&quot;===U,H=a[U]);var J=w.size,K=x(w.start),Q=x(w.end)+(K-i.tickIncrement(K,J,!1,v))/1e6;for(r=K;r&lt;Q;r=i.tickIncrement(r,J,!1,v))C.push(q),z.push(r),Y&amp;&amp;L.push(0);z.push(r);var $,tt=C.length,et=(r-K)/tt,rt=($=K+et/2,g.c2r($,0,v)),nt=M.size,it=b(M.start),at=b(M.end)+(it-i.tickIncrement(it,nt,!1,y))/1e6;for(r=it;r&lt;at;r=i.tickIncrement(r,nt,!1,y)){E.push(C.slice()),O.push(r);var ot=new Array(tt);for(l=0;l&lt;tt;l++)ot[l]=[];N.push(ot),Y&amp;&amp;B.push(L.slice())}O.push(r);var st=E.length,lt=(r-it)/st,ct=function(t){return m.c2r(t,0,y)}(it+lt/2);V&amp;&amp;(W=u(C.length,D,et,I),X=u(E.length,R,lt,P)),I||&quot;date&quot;!==g.type||(D=f(x,D)),P||&quot;date&quot;!==m.type||(R=f(b,R));var ut=!0,ft=!0,ht=new Array(tt),pt=new Array(st),dt=1/0,gt=1/0,mt=1/0,vt=1/0;for(r=0;r&lt;S;r++){var yt=T[r],xt=A[r];p=n.findBin(yt,D),d=n.findBin(xt,R),p&gt;=0&amp;&amp;p&lt;tt&amp;&amp;d&gt;=0&amp;&amp;d&lt;st&amp;&amp;(F+=H(p,r,E[d],Z,B[d]),N[d][p].push(r),ut&amp;&amp;(void 0===ht[p]?ht[p]=yt:ht[p]!==yt&amp;&amp;(ut=!1)),ft&amp;&amp;(void 0===pt[d]?pt[d]=xt:pt[d]!==xt&amp;&amp;(ft=!1)),dt=Math.min(dt,yt-z[p]),gt=Math.min(gt,z[p+1]-yt),mt=Math.min(mt,xt-O[d]),vt=Math.min(vt,O[d+1]-xt))}if(Y)for(d=0;d&lt;st;d++)F+=s(E[d],B[d]);if(G)for(d=0;d&lt;st;d++)G(E[d],F,W,X[d]);return{x:T,xRanges:h(z,ut&amp;&amp;ht,dt,gt,g,v),x0:rt,dx:et,y:A,yRanges:h(O,ft&amp;&amp;pt,mt,vt,m,y),y0:ct,dy:lt,z:E,pts:N}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../histogram/average&quot;:1085,&quot;../histogram/bin_functions&quot;:1087,&quot;../histogram/bin_label_vals&quot;:1088,&quot;../histogram/calc&quot;:1089,&quot;../histogram/norm_functions&quot;:1096}],1099:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./sample_defaults&quot;),a=t(&quot;../heatmap/style_defaults&quot;),o=t(&quot;../../components/colorscale/defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&amp;&amp;(a(t,e,c,l),o(t,e,l,c,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),c(&quot;hovertemplate&quot;))}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../heatmap/style_defaults&quot;:1078,&quot;./attributes&quot;:1097,&quot;./sample_defaults&quot;:1102}],1100:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/hover&quot;),i=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText;e.exports=function(t,e,r,a,o,s){var l=n(t,e,r,a,o,s);if(l){var c=(t=l[0]).index,u=c[0],f=c[1],h=t.cd[0],p=h.xRanges[f],d=h.yRanges[u];return t.xLabel=i(t.xa,p[0],p[1]),t.yLabel=i(t.ya,d[0],d[1]),l}}},{&quot;../../plots/cartesian/axes&quot;:828,&quot;../heatmap/hover&quot;:1072}],1101:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../histogram/cross_trace_defaults&quot;),calc:t(&quot;../heatmap/calc&quot;),plot:t(&quot;../heatmap/plot&quot;),layerName:&quot;heatmaplayer&quot;,colorbar:t(&quot;../heatmap/colorbar&quot;),style:t(&quot;../heatmap/style&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;../histogram/event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram2d&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;histogram&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../heatmap/calc&quot;:1066,&quot;../heatmap/colorbar&quot;:1068,&quot;../heatmap/plot&quot;:1076,&quot;../heatmap/style&quot;:1077,&quot;../histogram/cross_trace_defaults&quot;:1091,&quot;../histogram/event_data&quot;:1093,&quot;./attributes&quot;:1097,&quot;./defaults&quot;:1099,&quot;./hover&quot;:1100}],1102:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=r(&quot;x&quot;),s=r(&quot;y&quot;),l=i.minRowLength(o),c=i.minRowLength(s);l&amp;&amp;c?(e._length=Math.min(l,c),n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],a),(r(&quot;z&quot;)||r(&quot;marker.color&quot;))&amp;&amp;r(&quot;histfunc&quot;),r(&quot;histnorm&quot;),r(&quot;autobinx&quot;),r(&quot;autobiny&quot;)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1103:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../histogram2d/attributes&quot;),i=t(&quot;../contour/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=o({x:n.x,y:n.y,z:n.z,marker:n.marker,histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:n.xbins,nbinsy:n.nbinsy,ybins:n.ybins,autobinx:n.autobinx,autobiny:n.autobiny,bingroup:n.bingroup,xbingroup:n.xbingroup,ybingroup:n.ybingroup,autocontour:i.autocontour,ncontours:i.ncontours,contours:i.contours,line:{color:i.line.color,width:o({},i.line.width,{dflt:.5}),dash:i.line.dash,smoothing:i.line.smoothing,editType:&quot;plot&quot;},zhoverformat:n.zhoverformat,hovertemplate:n.hovertemplate},a(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../contour/attributes&quot;:1008,&quot;../histogram2d/attributes&quot;:1097}],1104:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../histogram2d/sample_defaults&quot;),a=t(&quot;../contour/contours_defaults&quot;),o=t(&quot;../contour/style_defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&amp;&amp;(a(t,e,c,(function(r){return n.coerce2(t,e,s,r)})),o(t,e,c,l),c(&quot;hovertemplate&quot;))}},{&quot;../../lib&quot;:778,&quot;../contour/contours_defaults&quot;:1015,&quot;../contour/style_defaults&quot;:1029,&quot;../histogram2d/sample_defaults&quot;:1102,&quot;./attributes&quot;:1103}],1105:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../histogram/cross_trace_defaults&quot;),calc:t(&quot;../contour/calc&quot;),plot:t(&quot;../contour/plot&quot;).plot,layerName:&quot;contourlayer&quot;,style:t(&quot;../contour/style&quot;),colorbar:t(&quot;../contour/colorbar&quot;),hoverPoints:t(&quot;../contour/hover&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram2dcontour&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;contour&quot;,&quot;histogram&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../contour/calc&quot;:1009,&quot;../contour/colorbar&quot;:1011,&quot;../contour/hover&quot;:1021,&quot;../contour/plot&quot;:1026,&quot;../contour/style&quot;:1028,&quot;../histogram/cross_trace_defaults&quot;:1091,&quot;./attributes&quot;:1103,&quot;./defaults&quot;:1104}],1106:[function(t,e,r){&quot;use strict&quot;;for(var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;./constants&quot;).colormodel,s=[&quot;rgb&quot;,&quot;rgba&quot;,&quot;rgba256&quot;,&quot;hsl&quot;,&quot;hsla&quot;],l=[],c=[],u=0;u&lt;s.length;u++){var f=o[s[u]];l.push(&quot;For the `&quot;+s[u]+&quot;` colormodel, it is [&quot;+(f.zminDflt||f.min).join(&quot;, &quot;)+&quot;].&quot;),c.push(&quot;For the `&quot;+s[u]+&quot;` colormodel, it is [&quot;+(f.zmaxDflt||f.max).join(&quot;, &quot;)+&quot;].&quot;)}e.exports=a({source:{valType:&quot;string&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},colormodel:{valType:&quot;enumerated&quot;,values:s,editType:&quot;calc&quot;},zmin:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},zmax:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},x0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},y0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dx:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},dy:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},text:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hovertext:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hoverinfo:a({},n.hoverinfo,{flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;color&quot;,&quot;name&quot;,&quot;text&quot;],dflt:&quot;x+y+z+text+name&quot;}),hovertemplate:i({},{keys:[&quot;z&quot;,&quot;color&quot;,&quot;colormodel&quot;]}),transforms:void 0})},{&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;./constants&quot;:1108}],1107:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constants&quot;),a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../../lib&quot;).maxRowLength,l=t(&quot;./helpers&quot;).getImageSize;function c(t,e,r,i){return function(a){return n.constrain((a-t)*e,r,i)}}function u(t,e){return function(r){return n.constrain(r,t,e)}}e.exports=function(t,e){var r,n;if(e._hasZ)r=e.z.length,n=s(e.z);else if(e._hasSource){var f=l(e.source);r=f.height,n=f.width}var h,p=o.getFromId(t,e.xaxis||&quot;x&quot;),d=o.getFromId(t,e.yaxis||&quot;y&quot;),g=p.d2c(e.x0)-e.dx/2,m=d.d2c(e.y0)-e.dy/2,v=[g,g+n*e.dx],y=[m,m+r*e.dy];if(p&amp;&amp;&quot;log&quot;===p.type)for(h=0;h&lt;n;h++)v.push(g+h*e.dx);if(d&amp;&amp;&quot;log&quot;===d.type)for(h=0;h&lt;r;h++)y.push(m+h*e.dy);return e._extremes[p._id]=o.findExtremes(p,v),e._extremes[d._id]=o.findExtremes(d,y),e._scaler=function(t){var e=i.colormodel[t.colormodel],r=(e.colormodel||t.colormodel).length;t._sArray=[];for(var n=0;n&lt;r;n++)e.min[n]!==t.zmin[n]||e.max[n]!==t.zmax[n]?t._sArray.push(c(t.zmin[n],(e.max[n]-e.min[n])/(t.zmax[n]-t.zmin[n]),e.min[n],e.max[n])):t._sArray.push(u(e.min[n],e.max[n]));return function(e){for(var n=e.slice(0,r),i=0;i&lt;r;i++){var o=n[i];if(!a(o))return!1;n[i]=t._sArray[i](o)}return n}}(e),[{x0:g,y0:m,z:e.z,w:n,h:r}]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./constants&quot;:1108,&quot;./helpers&quot;:1111,&quot;fast-isnumeric&quot;:241}],1108:[function(t,e,r){&quot;use strict&quot;;e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(t){return t.slice(0,3)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]},rgba256:{colormodel:&quot;rgba&quot;,zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(t){var e=t.slice(0,3);return e[1]=e[1]+&quot;%&quot;,e[2]=e[2]+&quot;%&quot;,e},suffix:[&quot;\xb0&quot;,&quot;%&quot;,&quot;%&quot;]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(t){var e=t.slice(0,4);return e[1]=e[1]+&quot;%&quot;,e[2]=e[2]+&quot;%&quot;,e},suffix:[&quot;\xb0&quot;,&quot;%&quot;,&quot;%&quot;,&quot;&quot;]}}}},{}],1109:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./constants&quot;),o=t(&quot;../../snapshot/helpers&quot;).IMAGE_URL_PREFIX;e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;source&quot;),e.source&amp;&amp;!e.source.match(o)&amp;&amp;delete e.source,e._hasSource=!!e.source;var s,l=r(&quot;z&quot;);(e._hasZ=!(void 0===l||!l.length||!l[0]||!l[0].length),e._hasZ||e._hasSource)?(r(&quot;x0&quot;),r(&quot;y0&quot;),r(&quot;dx&quot;),r(&quot;dy&quot;),e._hasZ?(r(&quot;colormodel&quot;,&quot;rgb&quot;),r(&quot;zmin&quot;,(s=a.colormodel[e.colormodel]).zminDflt||s.min),r(&quot;zmax&quot;,s.zmaxDflt||s.max)):e._hasSource&amp;&amp;(e.colormodel=&quot;rgba256&quot;,s=a.colormodel[e.colormodel],e.zmin=s.zminDflt,e.zmax=s.zmaxDflt),r(&quot;text&quot;),r(&quot;hovertext&quot;),r(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../snapshot/helpers&quot;:915,&quot;./attributes&quot;:1106,&quot;./constants&quot;:1108}],1110:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return&quot;xVal&quot;in e&amp;&amp;(t.x=e.xVal),&quot;yVal&quot;in e&amp;&amp;(t.y=e.yVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t.color=e.color,t.colormodel=e.trace.colormodel,t.z||(t.z=e.color),t}},{}],1111:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;image-size&quot;),i=t(&quot;../../snapshot/helpers&quot;).IMAGE_URL_PREFIX,a=t(&quot;buffer/&quot;).Buffer;r.getImageSize=function(t){var e=t.replace(i,&quot;&quot;),r=new a(e,&quot;base64&quot;);return n(r)}},{&quot;../../snapshot/helpers&quot;:915,&quot;buffer/&quot;:111,&quot;image-size&quot;:444}],1112:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./constants&quot;);e.exports=function(t,e,r){var o=t.cd[0],s=o.trace,l=t.xa,c=t.ya;if(!(n.inbox(e-o.x0,e-(o.x0+o.w*s.dx),0)&gt;0||n.inbox(r-o.y0,r-(o.y0+o.h*s.dy),0)&gt;0)){var u,f=Math.floor((e-o.x0)/s.dx),h=Math.floor(Math.abs(r-o.y0)/s.dy);if(s._hasZ?u=o.z[h][f]:s._hasSource&amp;&amp;(u=s._canvas.el.getContext(&quot;2d&quot;).getImageData(f,h,1,1).data),u){var p,d=o.hi||s.hoverinfo;if(d){var g=d.split(&quot;+&quot;);-1!==g.indexOf(&quot;all&quot;)&amp;&amp;(g=[&quot;color&quot;]),-1!==g.indexOf(&quot;color&quot;)&amp;&amp;(p=!0)}var m,v=a.colormodel[s.colormodel],y=v.colormodel||s.colormodel,x=y.length,b=s._scaler(u),_=v.suffix,w=[];(s.hovertemplate||p)&amp;&amp;(w.push(&quot;[&quot;+[b[0]+_[0],b[1]+_[1],b[2]+_[2]].join(&quot;, &quot;)),4===x&amp;&amp;w.push(&quot;, &quot;+b[3]+_[3]),w.push(&quot;]&quot;),w=w.join(&quot;&quot;),t.extraText=y.toUpperCase()+&quot;: &quot;+w),Array.isArray(s.hovertext)&amp;&amp;Array.isArray(s.hovertext[h])?m=s.hovertext[h][f]:Array.isArray(s.text)&amp;&amp;Array.isArray(s.text[h])&amp;&amp;(m=s.text[h][f]);var T=c.c2p(o.y0+(h+.5)*s.dy),k=o.x0+(f+.5)*s.dx,M=o.y0+(h+.5)*s.dy,A=&quot;[&quot;+u.slice(0,s.colormodel.length).join(&quot;, &quot;)+&quot;]&quot;;return[i.extendFlat(t,{index:[h,f],x0:l.c2p(o.x0+f*s.dx),x1:l.c2p(o.x0+(f+1)*s.dx),y0:T,y1:T,color:b,xVal:k,xLabelVal:k,yVal:M,yLabelVal:M,zLabelVal:A,text:m,hovertemplateLabels:{zLabel:A,colorLabel:w,&quot;color[0]Label&quot;:b[0]+_[0],&quot;color[1]Label&quot;:b[1]+_[1],&quot;color[2]Label&quot;:b[2]+_[2],&quot;color[3]Label&quot;:b[3]+_[3]}})]}}}},{&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;./constants&quot;:1108}],1113:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;image&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;noSortingByValue&quot;],animatable:!1,meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1106,&quot;./calc&quot;:1107,&quot;./defaults&quot;:1109,&quot;./event_data&quot;:1110,&quot;./hover&quot;:1112,&quot;./plot&quot;:1114,&quot;./style&quot;:1115}],1114:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=i.strTranslate,o=t(&quot;../../constants/xmlns_namespaces&quot;),s=t(&quot;./constants&quot;),l=i.isIOS()||i.isSafari()||i.isIE();e.exports=function(t,e,r,c){var u=e.xaxis,f=e.yaxis,h=!(l||t._context._exportedPlot);i.makeTraceGroups(c,r,&quot;im&quot;).each((function(e){var r=n.select(this),l=e[0],c=l.trace,p=h&amp;&amp;!c._hasZ&amp;&amp;c._hasSource&amp;&amp;&quot;linear&quot;===u.type&amp;&amp;&quot;linear&quot;===f.type;c._fastImage=p;var d,g,m,v,y,x,b=l.z,_=l.x0,w=l.y0,T=l.w,k=l.h,M=c.dx,A=c.dy;for(x=0;void 0===d&amp;&amp;x&lt;T;)d=u.c2p(_+x*M),x++;for(x=T;void 0===g&amp;&amp;x&gt;0;)g=u.c2p(_+x*M),x--;for(x=0;void 0===v&amp;&amp;x&lt;k;)v=f.c2p(w+x*A),x++;for(x=k;void 0===y&amp;&amp;x&gt;0;)y=f.c2p(w+x*A),x--;if(g&lt;d&amp;&amp;(m=g,g=d,d=m),y&lt;v&amp;&amp;(m=v,v=y,y=m),!p){d=Math.max(-.5*u._length,d),g=Math.min(1.5*u._length,g),v=Math.max(-.5*f._length,v),y=Math.min(1.5*f._length,y)}var S=Math.round(g-d),E=Math.round(y-v);if(S&lt;=0||E&lt;=0){r.selectAll(&quot;image&quot;).data([]).exit().remove()}else{var C=r.selectAll(&quot;image&quot;).data([e]);C.enter().append(&quot;svg:image&quot;).attr({xmlns:o.svg,preserveAspectRatio:&quot;none&quot;}),C.exit().remove();var L=&quot;image-rendering: optimizeSpeed; image-rendering: -moz-crisp-edges; image-rendering: -o-crisp-edges; image-rendering: -webkit-optimize-contrast; image-rendering: optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;&quot;;if(p){var I=i.simpleMap(u.range,u.r2l),P=i.simpleMap(f.range,f.r2l),z=I[1]&lt;I[0],O=P[1]&gt;P[0];if(z||O){var D=d+S/2,R=v+E/2;L+=&quot;transform:&quot;+a(D+&quot;px&quot;,R+&quot;px&quot;)+&quot;scale(&quot;+(z?-1:1)+&quot;,&quot;+(O?-1:1)+&quot;)&quot;+a(-D+&quot;px&quot;,-R+&quot;px&quot;)+&quot;;&quot;}}C.attr(&quot;style&quot;,L);var F=new Promise((function(t){if(c._hasZ)t();else if(c._hasSource)if(c._canvas&amp;&amp;c._canvas.el.width===T&amp;&amp;c._canvas.el.height===k&amp;&amp;c._canvas.source===c.source)t();else{var e=document.createElement(&quot;canvas&quot;);e.width=T,e.height=k;var r=e.getContext(&quot;2d&quot;);c._image=c._image||new Image;var n=c._image;n.onload=function(){r.drawImage(n,0,0),c._canvas={el:e,source:c.source},t()},n.setAttribute(&quot;src&quot;,c.source)}})).then((function(){var t;if(c._hasZ)t=B((function(t,e){return b[e][t]})).toDataURL(&quot;image/png&quot;);else if(c._hasSource)if(p)t=c.source;else{var e=c._canvas.el.getContext(&quot;2d&quot;).getImageData(0,0,T,k).data;t=B((function(t,r){var n=4*(r*T+t);return[e[n],e[n+1],e[n+2],e[n+3]]})).toDataURL(&quot;image/png&quot;)}C.attr({&quot;xlink:href&quot;:t,height:E,width:S,x:d,y:v})}));t._promises.push(F)}function B(t){var e=document.createElement(&quot;canvas&quot;);e.width=S,e.height=E;var r,n=e.getContext(&quot;2d&quot;),a=function(t){return i.constrain(Math.round(u.c2p(_+t*M)-d),0,S)},o=function(t){return i.constrain(Math.round(f.c2p(w+t*A)-v),0,E)},h=s.colormodel[c.colormodel],p=h.colormodel||c.colormodel,g=h.fmt;for(x=0;x&lt;l.w;x++){var m=a(x),y=a(x+1);if(y!==m&amp;&amp;!isNaN(y)&amp;&amp;!isNaN(m))for(var b=0;b&lt;l.h;b++){var T=o(b),k=o(b+1);k===T||isNaN(k)||isNaN(T)||!t(x,b)||(r=c._scaler(t(x,b)),n.fillStyle=r?p+&quot;(&quot;+g(r).join(&quot;,&quot;)+&quot;)&quot;:&quot;rgba(0,0,0,0)&quot;,n.fillRect(m,T,y-m,k-T))}}return e}}))}},{&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;./constants&quot;:1108,d3:169}],1115:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t){n.select(t).selectAll(&quot;.im image&quot;).style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity}))}},{d3:169}],1116:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;../../lib/extend&quot;).extendDeep,a=t(&quot;../../plot_api/edit_types&quot;).overrideAll,o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../components/color/attributes&quot;),l=t(&quot;../../plots/domain&quot;).attributes,c=t(&quot;../../plots/cartesian/layout_attributes&quot;),u=t(&quot;../../plot_api/plot_template&quot;).templatedArray,f=t(&quot;../../constants/delta.js&quot;),h=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,o({editType:&quot;plot&quot;,colorEditType:&quot;plot&quot;})),p={color:{valType:&quot;color&quot;,editType:&quot;plot&quot;},line:{color:{valType:&quot;color&quot;,dflt:s.defaultLine,editType:&quot;plot&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},thickness:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;plot&quot;},editType:&quot;calc&quot;},d={valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},g=u(&quot;step&quot;,i({},p,{range:d}));e.exports={mode:{valType:&quot;flaglist&quot;,editType:&quot;calc&quot;,flags:[&quot;number&quot;,&quot;delta&quot;,&quot;gauge&quot;],dflt:&quot;number&quot;},value:{valType:&quot;number&quot;,editType:&quot;calc&quot;,anim:!0},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;plot&quot;},domain:l({name:&quot;indicator&quot;,trace:!0,editType:&quot;calc&quot;}),title:{text:{valType:&quot;string&quot;,editType:&quot;plot&quot;},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;plot&quot;},font:n({},h,{}),editType:&quot;plot&quot;},number:{valueformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},font:n({},h,{}),prefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},suffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;},delta:{reference:{valType:&quot;number&quot;,editType:&quot;calc&quot;},position:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;right&quot;],dflt:&quot;bottom&quot;,editType:&quot;plot&quot;},relative:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;,dflt:!1},valueformat:{valType:&quot;string&quot;,editType:&quot;plot&quot;},increasing:{symbol:{valType:&quot;string&quot;,dflt:f.INCREASING.SYMBOL,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:f.INCREASING.COLOR,editType:&quot;plot&quot;},editType:&quot;plot&quot;},decreasing:{symbol:{valType:&quot;string&quot;,dflt:f.DECREASING.SYMBOL,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:f.DECREASING.COLOR,editType:&quot;plot&quot;},editType:&quot;plot&quot;},font:n({},h,{}),editType:&quot;calc&quot;},gauge:{shape:{valType:&quot;enumerated&quot;,editType:&quot;plot&quot;,dflt:&quot;angular&quot;,values:[&quot;angular&quot;,&quot;bullet&quot;]},bar:i({},p,{color:{dflt:&quot;green&quot;}}),bgcolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:s.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},axis:a({range:d,visible:n({},c.visible,{dflt:!0}),tickmode:c.tickmode,nticks:c.nticks,tick0:c.tick0,dtick:c.dtick,tickvals:c.tickvals,ticktext:c.ticktext,ticks:n({},c.ticks,{dflt:&quot;outside&quot;}),ticklen:c.ticklen,tickwidth:c.tickwidth,tickcolor:c.tickcolor,showticklabels:c.showticklabels,tickfont:o({}),tickangle:c.tickangle,tickformat:c.tickformat,tickformatstops:c.tickformatstops,tickprefix:c.tickprefix,showtickprefix:c.showtickprefix,ticksuffix:c.ticksuffix,showticksuffix:c.showticksuffix,separatethousands:c.separatethousands,exponentformat:c.exponentformat,minexponent:c.minexponent,showexponent:c.showexponent,editType:&quot;plot&quot;},&quot;plot&quot;),steps:g,threshold:{line:{color:n({},p.line.color,{}),width:n({},p.line.width,{dflt:1}),editType:&quot;plot&quot;},thickness:n({},p.thickness,{dflt:.85}),value:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:!1},editType:&quot;plot&quot;},editType:&quot;plot&quot;}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../constants/delta.js&quot;:747,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856}],1117:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;indicator&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1118:[function(t,e,r){&quot;use strict&quot;;e.exports={calc:function(t,e){var r=[],n=e.value;&quot;number&quot;!=typeof e._lastValue&amp;&amp;(e._lastValue=e.value);var i=e._lastValue,a=i;return e._hasDelta&amp;&amp;&quot;number&quot;==typeof e.delta.reference&amp;&amp;(a=e.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}}},{}],1119:[function(t,e,r){&quot;use strict&quot;;e.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}},{}],1120:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../../plot_api/plot_template&quot;),s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;./constants.js&quot;),c=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),u=t(&quot;../../plots/cartesian/tick_mark_defaults&quot;),f=t(&quot;../../plots/cartesian/tick_label_defaults&quot;);function h(t,e){function r(r,a){return n.coerce(t,e,i.gauge.steps,r,a)}r(&quot;color&quot;),r(&quot;line.color&quot;),r(&quot;line.width&quot;),r(&quot;range&quot;),r(&quot;thickness&quot;)}e.exports={supplyDefaults:function(t,e,r,p){function d(r,a){return n.coerce(t,e,i,r,a)}a(e,p,d),d(&quot;mode&quot;),e._hasNumber=-1!==e.mode.indexOf(&quot;number&quot;),e._hasDelta=-1!==e.mode.indexOf(&quot;delta&quot;),e._hasGauge=-1!==e.mode.indexOf(&quot;gauge&quot;);var g=d(&quot;value&quot;);e._range=[0,&quot;number&quot;==typeof g?1.5*g:1];var m,v,y,x,b,_,w=new Array(2);function T(t,e){return n.coerce(y,x,i.gauge,t,e)}function k(t,e){return n.coerce(b,_,i.gauge.axis,t,e)}if(e._hasNumber&amp;&amp;(d(&quot;number.valueformat&quot;),d(&quot;number.font.color&quot;,p.font.color),d(&quot;number.font.family&quot;,p.font.family),d(&quot;number.font.size&quot;),void 0===e.number.font.size&amp;&amp;(e.number.font.size=l.defaultNumberFontSize,w[0]=!0),d(&quot;number.prefix&quot;),d(&quot;number.suffix&quot;),m=e.number.font.size),e._hasDelta&amp;&amp;(d(&quot;delta.font.color&quot;,p.font.color),d(&quot;delta.font.family&quot;,p.font.family),d(&quot;delta.font.size&quot;),void 0===e.delta.font.size&amp;&amp;(e.delta.font.size=(e._hasNumber?.5:1)*(m||l.defaultNumberFontSize),w[1]=!0),d(&quot;delta.reference&quot;,e.value),d(&quot;delta.relative&quot;),d(&quot;delta.valueformat&quot;,e.delta.relative?&quot;2%&quot;:&quot;&quot;),d(&quot;delta.increasing.symbol&quot;),d(&quot;delta.increasing.color&quot;),d(&quot;delta.decreasing.symbol&quot;),d(&quot;delta.decreasing.color&quot;),d(&quot;delta.position&quot;),v=e.delta.font.size),e._scaleNumbers=(!e._hasNumber||w[0])&amp;&amp;(!e._hasDelta||w[1])||!1,d(&quot;title.font.color&quot;,p.font.color),d(&quot;title.font.family&quot;,p.font.family),d(&quot;title.font.size&quot;,.25*(m||v||l.defaultNumberFontSize)),d(&quot;title.text&quot;),e._hasGauge){(y=t.gauge)||(y={}),x=o.newContainer(e,&quot;gauge&quot;),T(&quot;shape&quot;),(e._isBullet=&quot;bullet&quot;===e.gauge.shape)||d(&quot;title.align&quot;,&quot;center&quot;),(e._isAngular=&quot;angular&quot;===e.gauge.shape)||d(&quot;align&quot;,&quot;center&quot;),T(&quot;bgcolor&quot;,p.paper_bgcolor),T(&quot;borderwidth&quot;),T(&quot;bordercolor&quot;),T(&quot;bar.color&quot;),T(&quot;bar.line.color&quot;),T(&quot;bar.line.width&quot;),T(&quot;bar.thickness&quot;,l.valueThickness*(&quot;bullet&quot;===e.gauge.shape?.5:1)),s(y,x,{name:&quot;steps&quot;,handleItemDefaults:h}),T(&quot;threshold.value&quot;),T(&quot;threshold.thickness&quot;),T(&quot;threshold.line.width&quot;),T(&quot;threshold.line.color&quot;),b={},y&amp;&amp;(b=y.axis||{}),_=o.newContainer(x,&quot;axis&quot;),k(&quot;visible&quot;),e._range=k(&quot;range&quot;,e._range);var M={outerTicks:!0};c(b,_,k,&quot;linear&quot;),f(b,_,k,&quot;linear&quot;,M),u(b,_,k,M)}else d(&quot;title.align&quot;,&quot;center&quot;),d(&quot;align&quot;,&quot;center&quot;),e._isAngular=e._isBullet=!1;e._length=null}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/tick_label_defaults&quot;:849,&quot;../../plots/cartesian/tick_mark_defaults&quot;:850,&quot;../../plots/cartesian/tick_value_defaults&quot;:851,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1116,&quot;./constants.js&quot;:1119}],1121:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;indicator&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;svg&quot;,&quot;noOpacity&quot;,&quot;noHover&quot;],animatable:!0,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./plot&quot;),meta:{}}},{&quot;./attributes&quot;:1116,&quot;./base_plot&quot;:1117,&quot;./calc&quot;:1118,&quot;./defaults&quot;:1120,&quot;./plot&quot;:1122}],1122:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=i.strScale,o=i.strTranslate,s=i.rad2deg,l=t(&quot;../../constants/alignment&quot;).MID_SHIFT,c=t(&quot;../../components/drawing&quot;),u=t(&quot;./constants&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../plots/cartesian/axes&quot;),p=t(&quot;../../plots/cartesian/axis_defaults&quot;),d=t(&quot;../../plots/cartesian/position_defaults&quot;),g=t(&quot;../../plots/cartesian/layout_attributes&quot;),m=t(&quot;../../components/color&quot;),v={left:&quot;start&quot;,center:&quot;middle&quot;,right:&quot;end&quot;},y={left:0,center:.5,right:1},x=/[yzafpn\xb5mkMGTPEZY]/;function b(t){return t&amp;&amp;t.duration&gt;0}function _(t){t.each((function(t){m.stroke(n.select(this),t.line.color)})).each((function(t){m.fill(n.select(this),t.color)})).style(&quot;stroke-width&quot;,(function(t){return t.line.width}))}function w(t,e,r){var n=t._fullLayout,a=i.extendFlat({type:&quot;linear&quot;,ticks:&quot;outside&quot;,range:r,showline:!0},e),o={type:&quot;linear&quot;,_id:&quot;x&quot;+e._id},s={letter:&quot;x&quot;,font:n.font,noHover:!0,noTickson:!0};function l(t,e){return i.coerce(a,o,g,t,e)}return p(a,o,l,s,n),d(a,o,l,s),o}function T(t,e,r){return[Math.min(e/t.width,r/t.height),t,e+&quot;x&quot;+r]}function k(t,e,r,i){var a=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;text&quot;),o=n.select(a);return o.text(t).attr(&quot;x&quot;,0).attr(&quot;y&quot;,0).attr(&quot;text-anchor&quot;,r).attr(&quot;data-unformatted&quot;,t).call(f.convertToTspans,i).call(c.font,e),c.bBox(o.node())}function M(t,e,r,n,a,o){var s=&quot;_cache&quot;+e;t[s]&amp;&amp;t[s].key===a||(t[s]={key:a,value:r});var l=i.aggNums(o,null,[t[s].value,n],2);return t[s].value=l,l}e.exports=function(t,e,r,p){var d,g=t._fullLayout;b(r)&amp;&amp;p&amp;&amp;(d=p()),i.makeTraceGroups(g._indicatorlayer,e,&quot;trace&quot;).each((function(e){var p,A,S,E,C,L=e[0].trace,I=n.select(this),P=L._hasGauge,z=L._isAngular,O=L._isBullet,D=L.domain,R={w:g._size.w*(D.x[1]-D.x[0]),h:g._size.h*(D.y[1]-D.y[0]),l:g._size.l+g._size.w*D.x[0],r:g._size.r+g._size.w*(1-D.x[1]),t:g._size.t+g._size.h*(1-D.y[1]),b:g._size.b+g._size.h*D.y[0]},F=R.l+R.w/2,B=R.t+R.h/2,N=Math.min(R.w/2,R.h),j=u.innerRadius*N,U=L.align||&quot;center&quot;;if(A=B,P){if(z&amp;&amp;(p=F,A=B+N/2,S=function(t){return function(t,e){var r=Math.sqrt(t.width/2*(t.width/2)+t.height*t.height);return[e/r,t,e]}(t,.9*j)}),O){var V=u.bulletPadding,q=1-u.bulletNumberDomainSize+V;p=R.l+(q+(1-q)*y[U])*R.w,S=function(t){return T(t,(u.bulletNumberDomainSize-V)*R.w,R.h)}}}else p=R.l+y[U]*R.w,S=function(t){return T(t,R.w,R.h)};!function(t,e,r,s){var l,u,p,d=r[0].trace,g=s.numbersX,_=s.numbersY,T=d.align||&quot;center&quot;,A=v[T],S=s.transitionOpts,E=s.onComplete,C=i.ensureSingle(e,&quot;g&quot;,&quot;numbers&quot;),L=[];d._hasNumber&amp;&amp;L.push(&quot;number&quot;);d._hasDelta&amp;&amp;(L.push(&quot;delta&quot;),&quot;left&quot;===d.delta.position&amp;&amp;L.reverse());var I=C.selectAll(&quot;text&quot;).data(L);function P(e,r,n,i){if(!e.match(&quot;s&quot;)||n&gt;=0==i&gt;=0||r(n).slice(-1).match(x)||r(i).slice(-1).match(x))return r;var a=e.slice().replace(&quot;s&quot;,&quot;f&quot;).replace(/\d+/,(function(t){return parseInt(t)-1})),o=w(t,{tickformat:a});return function(t){return Math.abs(t)&lt;1?h.tickText(o,t).text:r(t)}}I.enter().append(&quot;text&quot;),I.attr(&quot;text-anchor&quot;,(function(){return A})).attr(&quot;class&quot;,(function(t){return t})).attr(&quot;x&quot;,null).attr(&quot;y&quot;,null).attr(&quot;dx&quot;,null).attr(&quot;dy&quot;,null),I.exit().remove();var z,O=d.mode+d.align;d._hasDelta&amp;&amp;(z=function(){var e=w(t,{tickformat:d.delta.valueformat},d._range);e.setScale(),h.prepTicks(e);var i=function(t){return h.tickText(e,t).text},a=function(t){return d.delta.relative?t.relativeDelta:t.delta},o=function(t,e){return 0===t||&quot;number&quot;!=typeof t||isNaN(t)?&quot;-&quot;:(t&gt;0?d.delta.increasing.symbol:d.delta.decreasing.symbol)+e(t)},s=function(t){return t.delta&gt;=0?d.delta.increasing.color:d.delta.decreasing.color};void 0===d._deltaLastValue&amp;&amp;(d._deltaLastValue=a(r[0]));var l=C.select(&quot;text.delta&quot;);function p(){l.text(o(a(r[0]),i)).call(m.fill,s(r[0])).call(f.convertToTspans,t)}return l.call(c.font,d.delta.font).call(m.fill,s({delta:d._deltaLastValue})),b(S)?l.transition().duration(S.duration).ease(S.easing).tween(&quot;text&quot;,(function(){var t=n.select(this),e=a(r[0]),l=d._deltaLastValue,c=P(d.delta.valueformat,i,l,e),u=n.interpolateNumber(l,e);return d._deltaLastValue=e,function(e){t.text(o(u(e),c)),t.call(m.fill,s({delta:u(e)}))}})).each(&quot;end&quot;,(function(){p(),E&amp;&amp;E()})).each(&quot;interrupt&quot;,(function(){p(),E&amp;&amp;E()})):p(),u=k(o(a(r[0]),i),d.delta.font,A,t),l}(),O+=d.delta.position+d.delta.font.size+d.delta.font.family+d.delta.valueformat,O+=d.delta.increasing.symbol+d.delta.decreasing.symbol,p=u);d._hasNumber&amp;&amp;(!function(){var e=w(t,{tickformat:d.number.valueformat},d._range);e.setScale(),h.prepTicks(e);var i=function(t){return h.tickText(e,t).text},a=d.number.suffix,o=d.number.prefix,s=C.select(&quot;text.number&quot;);function u(){var e=&quot;number&quot;==typeof r[0].y?o+i(r[0].y)+a:&quot;-&quot;;s.text(e).call(c.font,d.number.font).call(f.convertToTspans,t)}b(S)?s.transition().duration(S.duration).ease(S.easing).each(&quot;end&quot;,(function(){u(),E&amp;&amp;E()})).each(&quot;interrupt&quot;,(function(){u(),E&amp;&amp;E()})).attrTween(&quot;text&quot;,(function(){var t=n.select(this),e=n.interpolateNumber(r[0].lastY,r[0].y);d._lastValue=r[0].y;var s=P(d.number.valueformat,i,r[0].lastY,r[0].y);return function(r){t.text(o+s(e(r))+a)}})):u(),l=k(o+i(r[0].y)+a,d.number.font,A,t)}(),O+=d.number.font.size+d.number.font.family+d.number.valueformat+d.number.suffix+d.number.prefix,p=l);if(d._hasDelta&amp;&amp;d._hasNumber){var D,R,F=[(l.left+l.right)/2,(l.top+l.bottom)/2],B=[(u.left+u.right)/2,(u.top+u.bottom)/2],N=.75*d.delta.font.size;&quot;left&quot;===d.delta.position&amp;&amp;(D=M(d,&quot;deltaPos&quot;,0,-1*(l.width*y[d.align]+u.width*(1-y[d.align])+N),O,Math.min),R=F[1]-B[1],p={width:l.width+u.width+N,height:Math.max(l.height,u.height),left:u.left+D,right:l.right,top:Math.min(l.top,u.top+R),bottom:Math.max(l.bottom,u.bottom+R)}),&quot;right&quot;===d.delta.position&amp;&amp;(D=M(d,&quot;deltaPos&quot;,0,l.width*(1-y[d.align])+u.width*y[d.align]+N,O,Math.max),R=F[1]-B[1],p={width:l.width+u.width+N,height:Math.max(l.height,u.height),left:l.left,right:u.right+D,top:Math.min(l.top,u.top+R),bottom:Math.max(l.bottom,u.bottom+R)}),&quot;bottom&quot;===d.delta.position&amp;&amp;(D=null,R=u.height,p={width:Math.max(l.width,u.width),height:l.height+u.height,left:Math.min(l.left,u.left),right:Math.max(l.right,u.right),top:l.bottom-l.height,bottom:l.bottom+u.height}),&quot;top&quot;===d.delta.position&amp;&amp;(D=null,R=l.top,p={width:Math.max(l.width,u.width),height:l.height+u.height,left:Math.min(l.left,u.left),right:Math.max(l.right,u.right),top:l.bottom-l.height-u.height,bottom:l.bottom}),z.attr({dx:D,dy:R})}(d._hasNumber||d._hasDelta)&amp;&amp;C.attr(&quot;transform&quot;,(function(){var t=s.numbersScaler(p);O+=t[2];var e,r=M(d,&quot;numbersScale&quot;,1,t[0],O,Math.min);d._scaleNumbers||(r=1),e=d._isAngular?_-r*p.bottom:_-r*(p.top+p.bottom)/2,d._numbersTop=r*p.top+e;var n=p[T];&quot;center&quot;===T&amp;&amp;(n=(p.left+p.right)/2);var i=g-r*n;return i=M(d,&quot;numbersTranslate&quot;,0,i,O,Math.max),o(i,e)+a(r)}))}(t,I,e,{numbersX:p,numbersY:A,numbersScaler:S,transitionOpts:r,onComplete:d}),P&amp;&amp;(E={range:L.gauge.axis.range,color:L.gauge.bgcolor,line:{color:L.gauge.bordercolor,width:0},thickness:1},C={range:L.gauge.axis.range,color:&quot;rgba(0, 0, 0, 0)&quot;,line:{color:L.gauge.bordercolor,width:L.gauge.borderwidth},thickness:1});var H=I.selectAll(&quot;g.angular&quot;).data(z?e:[]);H.exit().remove();var G=I.selectAll(&quot;g.angularaxis&quot;).data(z?e:[]);G.exit().remove(),z&amp;&amp;function(t,e,r,i){var a,c,u,f,p=r[0].trace,d=i.size,g=i.radius,m=i.innerRadius,v=i.gaugeBg,y=i.gaugeOutline,x=[d.l+d.w/2,d.t+d.h/2+g/2],T=i.gauge,k=i.layer,M=i.transitionOpts,A=i.onComplete,S=Math.PI/2;function E(t){var e=p.gauge.axis.range[0],r=(t-e)/(p.gauge.axis.range[1]-e)*Math.PI-S;return r&lt;-S?-S:r&gt;S?S:r}function C(t){return n.svg.arc().innerRadius((m+g)/2-t/2*(g-m)).outerRadius((m+g)/2+t/2*(g-m)).startAngle(-S)}function L(t){t.attr(&quot;d&quot;,(function(t){return C(t.thickness).startAngle(E(t.range[0])).endAngle(E(t.range[1]))()}))}T.enter().append(&quot;g&quot;).classed(&quot;angular&quot;,!0),T.attr(&quot;transform&quot;,o(x[0],x[1])),k.enter().append(&quot;g&quot;).classed(&quot;angularaxis&quot;,!0).classed(&quot;crisp&quot;,!0),k.selectAll(&quot;g.xangularaxistick,path,text&quot;).remove(),(a=w(t,p.gauge.axis)).type=&quot;linear&quot;,a.range=p.gauge.axis.range,a._id=&quot;xangularaxis&quot;,a.setScale();var I=function(t){return(a.range[0]-t.x)/(a.range[1]-a.range[0])*Math.PI+Math.PI},P={},z=h.makeLabelFns(a,0).labelStandoff;P.xFn=function(t){var e=I(t);return Math.cos(e)*z},P.yFn=function(t){var e=I(t),r=Math.sin(e)&gt;0?.2:1;return-Math.sin(e)*(z+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*l)},P.anchorFn=function(t){var e=I(t),r=Math.cos(e);return Math.abs(r)&lt;.1?&quot;middle&quot;:r&gt;0?&quot;start&quot;:&quot;end&quot;},P.heightFn=function(t,e,r){var n=I(t);return-.5*(1+Math.sin(n))*r};var O=function(t){return o(x[0]+g*Math.cos(t),x[1]-g*Math.sin(t))};u=function(t){return O(I(t))};if(c=h.calcTicks(a),f=h.getTickSigns(a)[2],a.visible){f=&quot;inside&quot;===a.ticks?-1:1;var D=(a.linewidth||1)/2;h.drawTicks(t,a,{vals:c,layer:k,path:&quot;M&quot;+f*D+&quot;,0h&quot;+f*a.ticklen,transFn:function(t){var e=I(t);return O(e)+&quot;rotate(&quot;+-s(e)+&quot;)&quot;}}),h.drawLabels(t,a,{vals:c,layer:k,transFn:u,labelFns:P})}var R=[v].concat(p.gauge.steps),F=T.selectAll(&quot;g.bg-arc&quot;).data(R);F.enter().append(&quot;g&quot;).classed(&quot;bg-arc&quot;,!0).append(&quot;path&quot;),F.select(&quot;path&quot;).call(L).call(_),F.exit().remove();var B=C(p.gauge.bar.thickness),N=T.selectAll(&quot;g.value-arc&quot;).data([p.gauge.bar]);N.enter().append(&quot;g&quot;).classed(&quot;value-arc&quot;,!0).append(&quot;path&quot;);var j=N.select(&quot;path&quot;);b(M)?(j.transition().duration(M.duration).ease(M.easing).each(&quot;end&quot;,(function(){A&amp;&amp;A()})).each(&quot;interrupt&quot;,(function(){A&amp;&amp;A()})).attrTween(&quot;d&quot;,(U=B,V=E(r[0].lastY),q=E(r[0].y),function(){var t=n.interpolate(V,q);return function(e){return U.endAngle(t(e))()}})),p._lastValue=r[0].y):j.attr(&quot;d&quot;,&quot;number&quot;==typeof r[0].y?B.endAngle(E(r[0].y)):&quot;M0,0Z&quot;);var U,V,q;j.call(_),N.exit().remove(),R=[];var H=p.gauge.threshold.value;H&amp;&amp;R.push({range:[H,H],color:p.gauge.threshold.color,line:{color:p.gauge.threshold.line.color,width:p.gauge.threshold.line.width},thickness:p.gauge.threshold.thickness});var G=T.selectAll(&quot;g.threshold-arc&quot;).data(R);G.enter().append(&quot;g&quot;).classed(&quot;threshold-arc&quot;,!0).append(&quot;path&quot;),G.select(&quot;path&quot;).call(L).call(_),G.exit().remove();var Y=T.selectAll(&quot;g.gauge-outline&quot;).data([y]);Y.enter().append(&quot;g&quot;).classed(&quot;gauge-outline&quot;,!0).append(&quot;path&quot;),Y.select(&quot;path&quot;).call(L).call(_),Y.exit().remove()}(t,0,e,{radius:N,innerRadius:j,gauge:H,layer:G,size:R,gaugeBg:E,gaugeOutline:C,transitionOpts:r,onComplete:d});var Y=I.selectAll(&quot;g.bullet&quot;).data(O?e:[]);Y.exit().remove();var W=I.selectAll(&quot;g.bulletaxis&quot;).data(O?e:[]);W.exit().remove(),O&amp;&amp;function(t,e,r,n){var i,a,s,l,c,f=r[0].trace,p=n.gauge,d=n.layer,g=n.gaugeBg,v=n.gaugeOutline,y=n.size,x=f.domain,T=n.transitionOpts,k=n.onComplete;p.enter().append(&quot;g&quot;).classed(&quot;bullet&quot;,!0),p.attr(&quot;transform&quot;,o(y.l,y.t)),d.enter().append(&quot;g&quot;).classed(&quot;bulletaxis&quot;,!0).classed(&quot;crisp&quot;,!0),d.selectAll(&quot;g.xbulletaxistick,path,text&quot;).remove();var M=y.h,A=f.gauge.bar.thickness*M,S=x.x[0],E=x.x[0]+(x.x[1]-x.x[0])*(f._hasNumber||f._hasDelta?1-u.bulletNumberDomainSize:1);(i=w(t,f.gauge.axis))._id=&quot;xbulletaxis&quot;,i.domain=[S,E],i.setScale(),a=h.calcTicks(i),s=h.makeTransTickFn(i),l=h.getTickSigns(i)[2],c=y.t+y.h,i.visible&amp;&amp;(h.drawTicks(t,i,{vals:&quot;inside&quot;===i.ticks?h.clipEnds(i,a):a,layer:d,path:h.makeTickPath(i,c,l),transFn:s}),h.drawLabels(t,i,{vals:a,layer:d,transFn:s,labelFns:h.makeLabelFns(i,c)}));function C(t){t.attr(&quot;width&quot;,(function(t){return Math.max(0,i.c2p(t.range[1])-i.c2p(t.range[0]))})).attr(&quot;x&quot;,(function(t){return i.c2p(t.range[0])})).attr(&quot;y&quot;,(function(t){return.5*(1-t.thickness)*M})).attr(&quot;height&quot;,(function(t){return t.thickness*M}))}var L=[g].concat(f.gauge.steps),I=p.selectAll(&quot;g.bg-bullet&quot;).data(L);I.enter().append(&quot;g&quot;).classed(&quot;bg-bullet&quot;,!0).append(&quot;rect&quot;),I.select(&quot;rect&quot;).call(C).call(_),I.exit().remove();var P=p.selectAll(&quot;g.value-bullet&quot;).data([f.gauge.bar]);P.enter().append(&quot;g&quot;).classed(&quot;value-bullet&quot;,!0).append(&quot;rect&quot;),P.select(&quot;rect&quot;).attr(&quot;height&quot;,A).attr(&quot;y&quot;,(M-A)/2).call(_),b(T)?P.select(&quot;rect&quot;).transition().duration(T.duration).ease(T.easing).each(&quot;end&quot;,(function(){k&amp;&amp;k()})).each(&quot;interrupt&quot;,(function(){k&amp;&amp;k()})).attr(&quot;width&quot;,Math.max(0,i.c2p(Math.min(f.gauge.axis.range[1],r[0].y)))):P.select(&quot;rect&quot;).attr(&quot;width&quot;,&quot;number&quot;==typeof r[0].y?Math.max(0,i.c2p(Math.min(f.gauge.axis.range[1],r[0].y))):0);P.exit().remove();var z=r.filter((function(){return f.gauge.threshold.value})),O=p.selectAll(&quot;g.threshold-bullet&quot;).data(z);O.enter().append(&quot;g&quot;).classed(&quot;threshold-bullet&quot;,!0).append(&quot;line&quot;),O.select(&quot;line&quot;).attr(&quot;x1&quot;,i.c2p(f.gauge.threshold.value)).attr(&quot;x2&quot;,i.c2p(f.gauge.threshold.value)).attr(&quot;y1&quot;,(1-f.gauge.threshold.thickness)/2*M).attr(&quot;y2&quot;,(1-(1-f.gauge.threshold.thickness)/2)*M).call(m.stroke,f.gauge.threshold.line.color).style(&quot;stroke-width&quot;,f.gauge.threshold.line.width),O.exit().remove();var D=p.selectAll(&quot;g.gauge-outline&quot;).data([v]);D.enter().append(&quot;g&quot;).classed(&quot;gauge-outline&quot;,!0).append(&quot;rect&quot;),D.select(&quot;rect&quot;).call(C).call(_),D.exit().remove()}(t,0,e,{gauge:Y,layer:W,size:R,gaugeBg:E,gaugeOutline:C,transitionOpts:r,onComplete:d});var X=I.selectAll(&quot;text.title&quot;).data(e);X.exit().remove(),X.enter().append(&quot;text&quot;).classed(&quot;title&quot;,!0),X.attr(&quot;text-anchor&quot;,(function(){return O?v.right:v[L.title.align]})).text(L.title.text).call(c.font,L.title.font).call(f.convertToTspans,t),X.attr(&quot;transform&quot;,(function(){var t,e=R.l+R.w*y[L.title.align],r=u.titlePadding,n=c.bBox(X.node());if(P){if(z)if(L.gauge.axis.visible)t=c.bBox(G.node()).top-r-n.bottom;else t=R.t+R.h/2-N/2-n.bottom-r;O&amp;&amp;(t=A-(n.top+n.bottom)/2,e=R.l-u.bulletPadding*R.w)}else t=L._numbersTop-r-n.bottom;return o(e,t)}))}))}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_defaults&quot;:830,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/cartesian/position_defaults&quot;:845,&quot;./constants&quot;:1119,d3:169}],1123:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../mesh3d/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll;var c=e.exports=l(s({x:{valType:&quot;data_array&quot;},y:{valType:&quot;data_array&quot;},z:{valType:&quot;data_array&quot;},value:{valType:&quot;data_array&quot;},isomin:{valType:&quot;number&quot;},isomax:{valType:&quot;number&quot;},surface:{show:{valType:&quot;boolean&quot;,dflt:!0},count:{valType:&quot;integer&quot;,dflt:2,min:1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1},pattern:{valType:&quot;flaglist&quot;,flags:[&quot;A&quot;,&quot;B&quot;,&quot;C&quot;,&quot;D&quot;,&quot;E&quot;],extras:[&quot;all&quot;,&quot;odd&quot;,&quot;even&quot;],dflt:&quot;all&quot;}},spaceframe:{show:{valType:&quot;boolean&quot;,dflt:!1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:.15}},slices:{x:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},y:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},z:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}}},caps:{x:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},y:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},z:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}}},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertemplate:i(),showlegend:s({},o.showlegend,{dflt:!1})},n(&quot;&quot;,{colorAttr:&quot;`value`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{opacity:a.opacity,lightposition:a.lightposition,lighting:a.lighting,flatshading:a.flatshading,contour:a.contour,hoverinfo:s({},o.hoverinfo)}),&quot;calc&quot;,&quot;nested&quot;);c.flatshading.dflt=!0,c.lighting.facenormalsepsilon.dflt=0,c.x.editType=c.y.editType=c.z.editType=c.value.editType=&quot;calc+clearAxisTypes&quot;,c.transforms=void 0},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../mesh3d/attributes&quot;:1128}],1124:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;),i=t(&quot;../streamtube/calc&quot;).processGrid,a=t(&quot;../streamtube/calc&quot;).filter;e.exports=function(t,e){e._len=Math.min(e.x.length,e.y.length,e.z.length,e.value.length),e._x=a(e.x,e._len),e._y=a(e.y,e._len),e._z=a(e.z,e._len),e._value=a(e.value,e._len);var r=i(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;for(var o=1/0,s=-1/0,l=0;l&lt;e._len;l++){var c=e._value[l];o=Math.min(o,c),s=Math.max(s,c)}e._minValues=o,e._maxValues=s,e._vMin=void 0===e.isomin||null===e.isomin?o:e.isomin,e._vMax=void 0===e.isomax||null===e.isomin?s:e.isomax,n(t,e,{vals:[e._vMin,e._vMax],containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../streamtube/calc&quot;:1295}],1125:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,a=t(&quot;../../lib/str2rgbarray&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts,s=t(&quot;../../plots/gl3d/zip3&quot;),l=function(t,e){for(var r=e.length-1;r&gt;0;r--){var n=Math.min(e[r],e[r-1]),i=Math.max(e[r],e[r-1]);if(i&gt;n&amp;&amp;n&lt;t&amp;&amp;t&lt;=i)return{id:r,distRatio:(i-t)/(i-n)}}return{id:0,distRatio:0}};function c(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.data=null,this.showContour=!1}var u=c.prototype;u.handlePick=function(t){if(t.object===this.mesh){var e=t.data.index,r=this.data._meshX[e],n=this.data._meshY[e],i=this.data._meshZ[e],a=this.data._Ys.length,o=this.data._Zs.length,s=l(r,this.data._Xs).id,c=l(n,this.data._Ys).id,u=l(i,this.data._Zs).id,f=t.index=u+o*c+o*a*s;t.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Array.isArray(h)&amp;&amp;void 0!==h[f]?t.textLabel=h[f]:h&amp;&amp;(t.textLabel=h),!0}},u.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map((function(e){return t.d2l(e,0,n)*r}))}this.data=h(t);var l={positions:s(n(r.xaxis,t._meshX,e.dataScale[0],t.xcalendar),n(r.yaxis,t._meshY,e.dataScale[1],t.ycalendar),n(r.zaxis,t._meshZ,e.dataScale[2],t.zcalendar)),cells:s(t._meshI,t._meshJ,t._meshK),lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:a(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading},c=o(t);l.vertexIntensity=t._meshIntensity,l.vertexIntensityBounds=[c.min,c.max],l.colormap=i(t),this.mesh.update(l)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};var f=[&quot;xyz&quot;,&quot;xzy&quot;,&quot;yxz&quot;,&quot;yzx&quot;,&quot;zxy&quot;,&quot;zyx&quot;];function h(t){t._meshI=[],t._meshJ=[],t._meshK=[];var e,r,n,i,a,o,s,c=t.surface.show,u=t.spaceframe.show,h=t.surface.fill,p=t.spaceframe.fill,d=!1,g=!1,m=0,v=t._Xs,y=t._Ys,x=t._Zs,b=v.length,_=y.length,w=x.length,T=f.indexOf(t._gridFill.replace(/-/g,&quot;&quot;).replace(/\+/g,&quot;&quot;)),k=function(t,e,r){switch(T){case 5:return r+w*e+w*_*t;case 4:return r+w*t+w*b*e;case 3:return e+_*r+_*w*t;case 2:return e+_*t+_*b*r;case 1:return t+b*r+b*w*e;default:return t+b*e+b*_*r}},M=t._minValues,A=t._maxValues,S=t._vMin,E=t._vMax;function C(t,e,s){for(var l=o.length,c=r;c&lt;l;c++)if(t===n[c]&amp;&amp;e===i[c]&amp;&amp;s===a[c])return c;return-1}function L(){r=e}function I(){n=[],i=[],a=[],o=[],e=0,L()}function P(t,r,s,l){return n.push(t),i.push(r),a.push(s),o.push(l),++e-1}function z(t,e,r){for(var n=[],i=0;i&lt;t.length;i++)n[i]=t[i]*(1-r)+r*e[i];return n}function O(t){s=t}function D(t,e){return&quot;all&quot;===t||null===t||t.indexOf(e)&gt;-1}function R(t,e){return null===t?e:t}function F(e,r,n){L();var i,a,o,l=[r],c=[n];if(s&gt;=1)l=[r],c=[n];else if(s&gt;0){var u=function(t,e){var r=t[0],n=t[1],i=t[2],a=function(t,e,r){for(var n=[],i=0;i&lt;t.length;i++)n[i]=(t[i]+e[i]+r[i])/3;return n}(r,n,i),o=Math.sqrt(1-s),l=z(a,r,o),c=z(a,n,o),u=z(a,i,o),f=e[0],h=e[1],p=e[2];return{xyzv:[[r,n,c],[c,l,r],[n,i,u],[u,c,n],[i,r,l],[l,u,i]],abc:[[f,h,-1],[-1,-1,f],[h,p,-1],[-1,-1,h],[p,f,-1],[-1,-1,p]]}}(r,n);l=u.xyzv,c=u.abc}for(var f=0;f&lt;l.length;f++){r=l[f],n=c[f];for(var h=[],p=0;p&lt;3;p++){var d=r[p][0],g=r[p][1],v=r[p][2],y=r[p][3],x=n[p]&gt;-1?n[p]:C(d,g,v);h[p]=x&gt;-1?x:P(d,g,v,R(e,y))}i=h[0],a=h[1],o=h[2],t._meshI.push(i),t._meshJ.push(a),t._meshK.push(o),++m}}function B(t,e,r,n){var i=t[3];i&lt;r&amp;&amp;(i=r),i&gt;n&amp;&amp;(i=n);for(var a=(t[3]-i)/(t[3]-e[3]+1e-9),o=[],s=0;s&lt;4;s++)o[s]=(1-a)*t[s]+a*e[s];return o}function N(t,e,r){return t&gt;=e&amp;&amp;t&lt;=r}function j(t){var e=.001*(E-S);return t&gt;=S-e&amp;&amp;t&lt;=E+e}function U(e){for(var r=[],n=0;n&lt;4;n++){var i=e[n];r.push([t._x[i],t._y[i],t._z[i],t._value[i]])}return r}function V(t,e,r,n,i,a){a||(a=1),r=[-1,-1,-1];var o=!1,s=[N(e[0][3],n,i),N(e[1][3],n,i),N(e[2][3],n,i)];if(!s[0]&amp;&amp;!s[1]&amp;&amp;!s[2])return!1;var l=function(t,e,r){return j(e[0][3])&amp;&amp;j(e[1][3])&amp;&amp;j(e[2][3])?(F(t,e,r),!0):a&lt;3&amp;&amp;V(t,e,r,S,E,++a)};if(s[0]&amp;&amp;s[1]&amp;&amp;s[2])return l(t,e,r)||o;var c=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach((function(a){if(s[a[0]]&amp;&amp;s[a[1]]&amp;&amp;!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(h,u,n,i),d=B(h,f,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,o=l(t,[u,f,d],[r[a[0]],r[a[1]],-1])||o,c=!0}})),c||[[0,1,2],[1,2,0],[2,0,1]].forEach((function(a){if(s[a[0]]&amp;&amp;!s[a[1]]&amp;&amp;!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(f,u,n,i),d=B(h,u,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,c=!0}})),o}function q(t,e,r,n){var i=!1,a=U(e),o=[N(a[0][3],r,n),N(a[1][3],r,n),N(a[2][3],r,n),N(a[3][3],r,n)];if(!(o[0]||o[1]||o[2]||o[3]))return i;if(o[0]&amp;&amp;o[1]&amp;&amp;o[2]&amp;&amp;o[3])return g&amp;&amp;(i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(3,0,1),n(2,3,0),n(1,2,3)}(t,a,e)||i),i;var s=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach((function(l){if(o[l[0]]&amp;&amp;o[l[1]]&amp;&amp;o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]];if(g)i=F(t,[c,u,f],[e[l[0]],e[l[1]],e[l[2]]])||i;else{var p=B(h,c,r,n),d=B(h,u,r,n),m=B(h,f,r,n);i=F(null,[p,d,m],[-1,-1,-1])||i}s=!0}})),s?i:([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach((function(l){if(o[l[0]]&amp;&amp;o[l[1]]&amp;&amp;!o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(f,c,r,n),d=B(f,u,r,n),m=B(h,u,r,n),v=B(h,c,r,n);g?(i=F(t,[c,v,p],[e[l[0]],-1,-1])||i,i=F(t,[u,d,m],[e[l[1]],-1,-1])||i):i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(2,3,0)}(null,[p,d,m,v],[-1,-1,-1,-1])||i,s=!0}})),s||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach((function(l){if(o[l[0]]&amp;&amp;!o[l[1]]&amp;&amp;!o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(u,c,r,n),d=B(f,c,r,n),m=B(h,c,r,n);g?(i=F(t,[c,p,d],[e[l[0]],-1,-1])||i,i=F(t,[c,d,m],[e[l[0]],-1,-1])||i,i=F(t,[c,m,p],[e[l[0]],-1,-1])||i):i=F(null,[p,d,m],[-1,-1,-1])||i,s=!0}})),i)}function H(t,e,r,n,i,a,o,s,l,c,u){var f=!1;return d&amp;&amp;(D(t,&quot;A&quot;)&amp;&amp;(f=q(null,[e,r,n,a],c,u)||f),D(t,&quot;B&quot;)&amp;&amp;(f=q(null,[r,n,i,l],c,u)||f),D(t,&quot;C&quot;)&amp;&amp;(f=q(null,[r,a,o,l],c,u)||f),D(t,&quot;D&quot;)&amp;&amp;(f=q(null,[n,a,s,l],c,u)||f),D(t,&quot;E&quot;)&amp;&amp;(f=q(null,[r,n,a,l],c,u)||f)),g&amp;&amp;(f=q(t,[r,n,a,l],c,u)||f),f}function G(t,e,r,n,i,a,o,s){return[!0===s[0]||V(t,U([e,r,n]),[e,r,n],a,o),!0===s[1]||V(t,U([n,i,e]),[n,i,e],a,o)]}function Y(t,e,r,n,i,a,o,s,l){return s?G(t,e,r,i,n,a,o,l):G(t,r,i,n,e,a,o,l)}function W(t,e,r,n,i,a,o){var s,l,c,u,f=!1,h=function(){f=V(t,[s,l,c],[-1,-1,-1],i,a)||f,f=V(t,[c,u,s],[-1,-1,-1],i,a)||f},p=o[0],d=o[1],g=o[2];return p&amp;&amp;(s=z(U([k(e,r-0,n-0)])[0],U([k(e-1,r-0,n-0)])[0],p),l=z(U([k(e,r-0,n-1)])[0],U([k(e-1,r-0,n-1)])[0],p),c=z(U([k(e,r-1,n-1)])[0],U([k(e-1,r-1,n-1)])[0],p),u=z(U([k(e,r-1,n-0)])[0],U([k(e-1,r-1,n-0)])[0],p),h()),d&amp;&amp;(s=z(U([k(e-0,r,n-0)])[0],U([k(e-0,r-1,n-0)])[0],d),l=z(U([k(e-0,r,n-1)])[0],U([k(e-0,r-1,n-1)])[0],d),c=z(U([k(e-1,r,n-1)])[0],U([k(e-1,r-1,n-1)])[0],d),u=z(U([k(e-1,r,n-0)])[0],U([k(e-1,r-1,n-0)])[0],d),h()),g&amp;&amp;(s=z(U([k(e-0,r-0,n)])[0],U([k(e-0,r-0,n-1)])[0],g),l=z(U([k(e-0,r-1,n)])[0],U([k(e-0,r-1,n-1)])[0],g),c=z(U([k(e-1,r-1,n)])[0],U([k(e-1,r-1,n-1)])[0],g),u=z(U([k(e-1,r-0,n)])[0],U([k(e-1,r-0,n-1)])[0],g),h()),f}function X(t,e,r,n,i,a,o,s,l,c,u,f){var h=t;return f?(d&amp;&amp;&quot;even&quot;===t&amp;&amp;(h=null),H(h,e,r,n,i,a,o,s,l,c,u)):(d&amp;&amp;&quot;odd&quot;===t&amp;&amp;(h=null),H(h,l,s,o,a,i,n,r,e,c,u))}function Z(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;w;c++)for(var u=1;u&lt;_;u++)a.push(Y(t,k(l,u-1,c-1),k(l,u-1,c),k(l,u,c-1),k(l,u,c),r,n,(l+u+c)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function J(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;b;c++)for(var u=1;u&lt;w;u++)a.push(Y(t,k(c-1,l,u-1),k(c,l,u-1),k(c-1,l,u),k(c,l,u),r,n,(c+l+u)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function K(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;_;c++)for(var u=1;u&lt;b;u++)a.push(Y(t,k(u-1,c-1,l),k(u-1,c,l),k(u,c-1,l),k(u,c,l),r,n,(u+c+l)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function Q(t,e,r){for(var n=1;n&lt;w;n++)for(var i=1;i&lt;_;i++)for(var a=1;a&lt;b;a++)X(t,k(a-1,i-1,n-1),k(a-1,i-1,n),k(a-1,i,n-1),k(a-1,i,n),k(a,i-1,n-1),k(a,i-1,n),k(a,i,n-1),k(a,i,n),e,r,(a+i+n)%2)}function $(t,e,r){d=!0,Q(t,e,r),d=!1}function tt(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;w;u++)for(var f=1;f&lt;_;f++)o.push(W(t,c,f,u,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function et(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;b;u++)for(var f=1;f&lt;w;f++)o.push(W(t,u,c,f,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function rt(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;_;u++)for(var f=1;f&lt;b;f++)o.push(W(t,f,u,c,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function nt(t,e){for(var r=[],n=t;n&lt;e;n++)r.push(n);return r}return function(){if(I(),function(){for(var e=0;e&lt;b;e++)for(var r=0;r&lt;_;r++)for(var n=0;n&lt;w;n++){var i=k(e,r,n);P(t._x[i],t._y[i],t._z[i],t._value[i])}}(),u&amp;&amp;p&amp;&amp;(O(p),g=!0,Q(null,S,E),g=!1),c&amp;&amp;h){O(h);for(var e=t.surface.pattern,r=t.surface.count,s=0;s&lt;r;s++){var f=1===r?.5:s/(r-1),d=(1-f)*S+f*E,T=Math.abs(d-M)&gt;Math.abs(d-A)?[M,d]:[d,A];$(e,T[0],T[1])}}var C=[[Math.min(S,A),Math.max(S,A)],[Math.min(M,E),Math.max(M,E)]];[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].forEach((function(e){for(var r=[],n=0;n&lt;C.length;n++){var i=0,a=C[n][0],o=C[n][1],s=t.slices[e];if(s.show&amp;&amp;s.fill){O(s.fill);var c=[],u=[],f=[];if(s.locations.length)for(var h=0;h&lt;s.locations.length;h++){var p=l(s.locations[h],&quot;x&quot;===e?v:&quot;y&quot;===e?y:x);0===p.distRatio?c.push(p.id):p.id&gt;0&amp;&amp;(u.push(p.id),&quot;x&quot;===e?f.push([p.distRatio,0,0]):&quot;y&quot;===e?f.push([0,p.distRatio,0]):f.push([0,0,p.distRatio]))}else c=nt(1,&quot;x&quot;===e?b-1:&quot;y&quot;===e?_-1:w-1);u.length&gt;0&amp;&amp;(r[i]=&quot;x&quot;===e?tt(null,u,a,o,f,r[i]):&quot;y&quot;===e?et(null,u,a,o,f,r[i]):rt(null,u,a,o,f,r[i]),i++),c.length&gt;0&amp;&amp;(r[i]=&quot;x&quot;===e?Z(null,c,a,o,r[i]):&quot;y&quot;===e?J(null,c,a,o,r[i]):K(null,c,a,o,r[i]),i++)}var d=t.caps[e];d.show&amp;&amp;d.fill&amp;&amp;(O(d.fill),r[i]=&quot;x&quot;===e?Z(null,[0,b-1],a,o,r[i]):&quot;y&quot;===e?J(null,[0,_-1],a,o,r[i]):K(null,[0,w-1],a,o,r[i]),i++)}})),0===m&amp;&amp;I(),t._meshX=n,t._meshY=i,t._meshZ=a,t._meshIntensity=o,t._Xs=v,t._Ys=y,t._Zs=x}(),t}e.exports={findNearestOnAxis:l,generateIsoMeshes:h,createIsosurfaceTrace:function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new c(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/gl3d/zip3&quot;:881,&quot;gl-mesh3d&quot;:309}],1126:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../../components/colorscale/defaults&quot;);function s(t,e,r,n,a){var s=a(&quot;isomin&quot;),l=a(&quot;isomax&quot;);null!=l&amp;&amp;null!=s&amp;&amp;s&gt;l&amp;&amp;(e.isomin=null,e.isomax=null);var c=a(&quot;x&quot;),u=a(&quot;y&quot;),f=a(&quot;z&quot;),h=a(&quot;value&quot;);c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length?(i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],n),[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].forEach((function(t){var e=&quot;caps.&quot;+t;a(e+&quot;.show&quot;)&amp;&amp;a(e+&quot;.fill&quot;);var r=&quot;slices.&quot;+t;a(r+&quot;.show&quot;)&amp;&amp;(a(r+&quot;.fill&quot;),a(r+&quot;.locations&quot;))})),a(&quot;spaceframe.show&quot;)&amp;&amp;a(&quot;spaceframe.fill&quot;),a(&quot;surface.show&quot;)&amp;&amp;(a(&quot;surface.count&quot;),a(&quot;surface.fill&quot;),a(&quot;surface.pattern&quot;)),a(&quot;contour.show&quot;)&amp;&amp;(a(&quot;contour.color&quot;),a(&quot;contour.width&quot;)),[&quot;text&quot;,&quot;hovertext&quot;,&quot;hovertemplate&quot;,&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lighting.vertexnormalsepsilon&quot;,&quot;lighting.facenormalsepsilon&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;flatshading&quot;,&quot;opacity&quot;].forEach((function(t){a(t)})),o(t,e,n,a,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),e._length=null):e.visible=!1}e.exports={supplyDefaults:function(t,e,r,i){s(t,e,r,i,(function(r,i){return n.coerce(t,e,a,r,i)}))},supplyIsoDefaults:s}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1123}],1127:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,calc:t(&quot;./calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;).createIsosurfaceTrace,moduleType:&quot;trace&quot;,name:&quot;isosurface&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1123,&quot;./calc&quot;:1124,&quot;./convert&quot;:1125,&quot;./defaults&quot;:1126}],1128:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../surface/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},i:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},j:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},k:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertemplate:i({editType:&quot;calc&quot;}),delaunayaxis:{valType:&quot;enumerated&quot;,values:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],dflt:&quot;z&quot;,editType:&quot;calc&quot;},alphahull:{valType:&quot;number&quot;,dflt:-1,editType:&quot;calc&quot;},intensity:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},intensitymode:{valType:&quot;enumerated&quot;,values:[&quot;vertex&quot;,&quot;cell&quot;],dflt:&quot;vertex&quot;,editType:&quot;calc&quot;},color:{valType:&quot;color&quot;,editType:&quot;calc&quot;},vertexcolor:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},facecolor:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},transforms:void 0},n(&quot;&quot;,{colorAttr:&quot;`intensity`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{opacity:a.opacity,flatshading:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},contour:{show:s({},a.contours.x.show,{}),color:a.contours.x.color,width:a.contours.x.width,editType:&quot;calc&quot;},lightposition:{x:s({},a.lightposition.x,{dflt:1e5}),y:s({},a.lightposition.y,{dflt:1e5}),z:s({},a.lightposition.z,{dflt:0}),editType:&quot;calc&quot;},lighting:s({vertexnormalsepsilon:{valType:&quot;number&quot;,min:0,max:1,dflt:1e-12,editType:&quot;calc&quot;},facenormalsepsilon:{valType:&quot;number&quot;,min:0,max:1,dflt:1e-6,editType:&quot;calc&quot;},editType:&quot;calc&quot;},a.lighting),hoverinfo:s({},o.hoverinfo,{editType:&quot;calc&quot;}),showlegend:s({},o.showlegend,{dflt:!1})})},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../surface/attributes&quot;:1311}],1129:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){e.intensity&amp;&amp;n(t,e,{vals:e.intensity,containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651}],1130:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;delaunay-triangulate&quot;),a=t(&quot;alpha-shape&quot;),o=t(&quot;convex-hull&quot;),s=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,l=t(&quot;../../lib/str2rgbarray&quot;),c=t(&quot;../../components/colorscale&quot;).extractOpts,u=t(&quot;../../plots/gl3d/zip3&quot;);function f(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.color=&quot;#fff&quot;,this.data=null,this.showContour=!1}var h=f.prototype;function p(t){for(var e=[],r=t.length,n=0;n&lt;r;n++)e[n]=l(t[n]);return e}function d(t,e,r,n){for(var i=[],a=e.length,o=0;o&lt;a;o++)i[o]=t.d2l(e[o],0,n)*r;return i}function g(t){for(var e=[],r=t.length,n=0;n&lt;r;n++)e[n]=Math.round(t[n]);return e}function m(t,e){for(var r=t.length,n=0;n&lt;r;n++)if(t[n]&lt;=-.5||t[n]&gt;=e-.5)return!1;return!0}h.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index;t.data._cellCenter?t.traceCoordinate=t.data.dataCoordinate:t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]];var r=this.data.hovertext||this.data.text;return Array.isArray(r)&amp;&amp;void 0!==r[e]?t.textLabel=r[e]:r&amp;&amp;(t.textLabel=r),!0}},h.update=function(t){var e=this.scene,r=e.fullSceneLayout;this.data=t;var n,f=t.x.length,h=u(d(r.xaxis,t.x,e.dataScale[0],t.xcalendar),d(r.yaxis,t.y,e.dataScale[1],t.ycalendar),d(r.zaxis,t.z,e.dataScale[2],t.zcalendar));if(t.i&amp;&amp;t.j&amp;&amp;t.k){if(t.i.length!==t.j.length||t.j.length!==t.k.length||!m(t.i,f)||!m(t.j,f)||!m(t.k,f))return;n=u(g(t.i),g(t.j),g(t.k))}else n=0===t.alphahull?o(h):t.alphahull&gt;0?a(t.alphahull,h):function(t,e){for(var r=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].indexOf(t),n=[],a=e.length,o=0;o&lt;a;o++)n[o]=[e[o][(r+1)%3],e[o][(r+2)%3]];return i(n)}(t.delaunayaxis,h);var v={positions:h,cells:n,lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:l(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading};if(t.intensity){var y=c(t);this.color=&quot;#fff&quot;;var x=t.intensitymode;v[x+&quot;Intensity&quot;]=t.intensity,v[x+&quot;IntensityBounds&quot;]=[y.min,y.max],v.colormap=s(t)}else t.vertexcolor?(this.color=t.vertexcolor[0],v.vertexColors=p(t.vertexcolor)):t.facecolor?(this.color=t.facecolor[0],v.cellColors=p(t.facecolor)):(this.color=t.color,v.meshColor=l(t.color));this.mesh.update(v)},h.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new f(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/gl3d/zip3&quot;:881,&quot;alpha-shape&quot;:69,&quot;convex-hull&quot;:135,&quot;delaunay-triangulate&quot;:171,&quot;gl-mesh3d&quot;:309}],1131:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,n){return i.coerce(t,e,o,r,n)}function c(t){var e=t.map((function(t){var e=l(t);return e&amp;&amp;i.isArrayOrTypedArray(e)?e:null}));return e.every((function(t){return t&amp;&amp;t.length===e[0].length}))&amp;&amp;e}c([&quot;x&quot;,&quot;y&quot;,&quot;z&quot;])?(c([&quot;i&quot;,&quot;j&quot;,&quot;k&quot;]),(!e.i||e.j&amp;&amp;e.k)&amp;&amp;(!e.j||e.k&amp;&amp;e.i)&amp;&amp;(!e.k||e.i&amp;&amp;e.j)?(n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],s),[&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lighting.vertexnormalsepsilon&quot;,&quot;lighting.facenormalsepsilon&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;flatshading&quot;,&quot;alphahull&quot;,&quot;delaunayaxis&quot;,&quot;opacity&quot;].forEach((function(t){l(t)})),l(&quot;contour.show&quot;)&amp;&amp;(l(&quot;contour.color&quot;),l(&quot;contour.width&quot;)),&quot;intensity&quot;in t?(l(&quot;intensity&quot;),l(&quot;intensitymode&quot;),a(t,e,s,l,{prefix:&quot;&quot;,cLetter:&quot;c&quot;})):(e.showscale=!1,&quot;facecolor&quot;in t?l(&quot;facecolor&quot;):&quot;vertexcolor&quot;in t?l(&quot;vertexcolor&quot;):l(&quot;color&quot;,r)),l(&quot;text&quot;),l(&quot;hovertext&quot;),l(&quot;hovertemplate&quot;),e._length=null):e.visible=!1):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1128}],1132:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;mesh3d&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1128,&quot;./calc&quot;:1129,&quot;./convert&quot;:1130,&quot;./defaults&quot;:1131}],1133:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).extendFlat,i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../components/drawing/attributes&quot;).dash,o=t(&quot;../../components/fx/attributes&quot;),s=t(&quot;../../constants/delta.js&quot;),l=s.INCREASING.COLOR,c=s.DECREASING.COLOR,u=i.line;function f(t){return{line:{color:n({},u.color,{dflt:t}),width:u.width,dash:a,editType:&quot;style&quot;},editType:&quot;style&quot;}}e.exports={xperiod:i.xperiod,xperiod0:i.xperiod0,xperiodalignment:i.xperiodalignment,x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},open:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},high:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},low:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},close:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{width:n({},u.width,{}),dash:n({},a,{}),editType:&quot;style&quot;},increasing:f(l),decreasing:f(c),text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},tickwidth:{valType:&quot;number&quot;,min:0,max:.5,dflt:.3,editType:&quot;calc&quot;},hoverlabel:n({},o.hoverlabel,{split:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;style&quot;}})}},{&quot;../../components/drawing/attributes&quot;:664,&quot;../../components/fx/attributes&quot;:674,&quot;../../constants/delta.js&quot;:747,&quot;../../lib&quot;:778,&quot;../scatter/attributes&quot;:1187}],1134:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=n._,a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r,n){return{o:t,h:e,l:r,c:n}}function c(t,e,r,o,l,c){for(var u=l.makeCalcdata(e,&quot;open&quot;),f=l.makeCalcdata(e,&quot;high&quot;),h=l.makeCalcdata(e,&quot;low&quot;),p=l.makeCalcdata(e,&quot;close&quot;),d=Array.isArray(e.text),g=Array.isArray(e.hovertext),m=!0,v=null,y=!!e.xperiodalignment,x=[],b=0;b&lt;o.length;b++){var _=o[b],w=u[b],T=f[b],k=h[b],M=p[b];if(_!==s&amp;&amp;w!==s&amp;&amp;T!==s&amp;&amp;k!==s&amp;&amp;M!==s){M===w?null!==v&amp;&amp;M!==v&amp;&amp;(m=M&gt;v):m=M&gt;w,v=M;var A=c(w,T,k,M);A.pos=_,A.yc=(w+M)/2,A.i=b,A.dir=m?&quot;increasing&quot;:&quot;decreasing&quot;,A.x=A.pos,A.y=[k,T],y&amp;&amp;(A.orig_p=r[b]),d&amp;&amp;(A.tx=e.text[b]),g&amp;&amp;(A.htx=e.hovertext[b]),x.push(A)}else x.push({pos:_,empty:!0})}return e._extremes[l._id]=a.findExtremes(l,n.concat(h,f),{padded:!0}),x.length&amp;&amp;(x[0].t={labels:{open:i(t,&quot;open:&quot;)+&quot; &quot;,high:i(t,&quot;high:&quot;)+&quot; &quot;,low:i(t,&quot;low:&quot;)+&quot; &quot;,close:i(t,&quot;close:&quot;)+&quot; &quot;}}),x}e.exports={calc:function(t,e){var r=a.getFromId(t,e.xaxis),i=a.getFromId(t,e.yaxis),s=function(t,e,r){var i=r._minDiff;if(!i){var a,s=t._fullData,l=[];for(i=1/0,a=0;a&lt;s.length;a++){var c=s[a];if(&quot;ohlc&quot;===c.type&amp;&amp;!0===c.visible&amp;&amp;c.xaxis===e._id){l.push(c);var u=e.makeCalcdata(c,&quot;x&quot;);c._origX=u;var f=o(r,e,&quot;x&quot;,u);c._xcalc=f;var h=n.distinctVals(f).minDiff;h&amp;&amp;isFinite(h)&amp;&amp;(i=Math.min(i,h))}}for(i===1/0&amp;&amp;(i=1),a=0;a&lt;l.length;a++)l[a]._minDiff=i}return i*r.tickwidth}(t,r,e),u=e._minDiff;e._minDiff=null;var f=e._origX;e._origX=null;var h=e._xcalc;e._xcalc=null;var p=c(t,e,f,h,i,l);return e._extremes[r._id]=a.findExtremes(r,h,{vpad:u/2}),p.length?(n.extendFlat(p[0].t,{wHover:u/2,tickLen:s}),p):[{t:{empty:!0}}]},calcCommon:c}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828}],1135:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./ohlc_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r,n){r(n+&quot;.line.color&quot;),r(n+&quot;.line.width&quot;,e.line.width),r(n+&quot;.line.dash&quot;,e.line.dash)}e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}i(t,e,c,l)?(a(t,e,l,c,{x:!0}),c(&quot;line.width&quot;),c(&quot;line.dash&quot;),s(t,e,c,&quot;increasing&quot;),s(t,e,c,&quot;decreasing&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;tickwidth&quot;),l._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:1133,&quot;./ohlc_defaults&quot;:1138}],1136:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../lib&quot;).fillText,l=t(&quot;../../constants/delta.js&quot;),c={increasing:l.INCREASING.SYMBOL,decreasing:l.DECREASING.SYMBOL};function u(t,e,r,n){var i,s,l=t.cd,c=t.xa,u=l[0].trace,f=l[0].t,h=u.type,p=&quot;ohlc&quot;===h?&quot;l&quot;:&quot;min&quot;,d=&quot;ohlc&quot;===h?&quot;h&quot;:&quot;max&quot;,g=f.bPos||0,m=f.bdPos||f.tickLen,v=f.wHover,y=Math.min(1,m/Math.abs(c.r2c(c.range[1])-c.r2c(c.range[0])));function x(t){var r=function(t){return t.pos+g-e}(t);return a.inbox(r-v,r+v,i)}function b(t){var e=t[p],n=t[d];return e===n||a.inbox(e-r,n-r,i)}function _(t){return(x(t)+b(t))/2}i=t.maxHoverDistance-y,s=t.maxSpikeDistance-y;var w=a.getDistanceFunction(n,x,b,_);if(a.getClosest(l,w,t),!1===t.index)return null;var T=l[t.index];if(T.empty)return null;var k=u[T.dir],M=k.line.color;return o.opacity(M)&amp;&amp;k.line.width?t.color=M:t.color=k.fillcolor,t.x0=c.c2p(T.pos+g-m,!0),t.x1=c.c2p(T.pos+g+m,!0),t.xLabelVal=void 0!==T.orig_p?T.orig_p:T.pos,t.spikeDistance=_(T)*s/i,t.xSpike=c.c2p(T.pos,!0),t}function f(t,e,r,a){var o=t.cd,s=t.ya,l=o[0].trace,c=o[0].t,f=[],h=u(t,e,r,a);if(!h)return[];var p=o[h.index].hi||l.hoverinfo,d=p.split(&quot;+&quot;);if(!(&quot;all&quot;===p||-1!==d.indexOf(&quot;y&quot;)))return[];for(var g=[&quot;high&quot;,&quot;open&quot;,&quot;close&quot;,&quot;low&quot;],m={},v=0;v&lt;g.length;v++){var y,x=g[v],b=l[x][h.index],_=s.c2p(b,!0);b in m?(y=m[b]).yLabel+=&quot;&lt;br&gt;&quot;+c.labels[x]+n.hoverLabelText(s,b):((y=i.extendFlat({},h)).y0=y.y1=_,y.yLabelVal=b,y.yLabel=c.labels[x]+n.hoverLabelText(s,b),y.name=&quot;&quot;,f.push(y),m[b]=y)}return f}function h(t,e,r,i){var a=t.cd,o=t.ya,l=a[0].trace,f=a[0].t,h=u(t,e,r,i);if(!h)return[];var p=a[h.index],d=h.index=p.i,g=p.dir;function m(t){return f.labels[t]+n.hoverLabelText(o,l[t][d])}var v=p.hi||l.hoverinfo,y=v.split(&quot;+&quot;),x=&quot;all&quot;===v,b=x||-1!==y.indexOf(&quot;y&quot;),_=x||-1!==y.indexOf(&quot;text&quot;),w=b?[m(&quot;open&quot;),m(&quot;high&quot;),m(&quot;low&quot;),m(&quot;close&quot;)+&quot;  &quot;+c[g]]:[];return _&amp;&amp;s(p,l,w),h.extraText=w.join(&quot;&lt;br&gt;&quot;),h.y0=h.y1=o.c2p(p.yc,!0),[h]}e.exports={hoverPoints:function(t,e,r,n){return t.cd[0].trace.hoverlabel.split?f(t,e,r,n):h(t,e,r,n)},hoverSplit:f,hoverOnPoints:h}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../constants/delta.js&quot;:747,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1137:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;ohlc&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;showLegend&quot;],meta:{},attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;./select&quot;)}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1133,&quot;./calc&quot;:1134,&quot;./defaults&quot;:1135,&quot;./hover&quot;:1136,&quot;./plot&quot;:1139,&quot;./select&quot;:1140,&quot;./style&quot;:1141}],1138:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=r(&quot;x&quot;),s=r(&quot;open&quot;),l=r(&quot;high&quot;),c=r(&quot;low&quot;),u=r(&quot;close&quot;);if(r(&quot;hoverlabel.split&quot;),n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;],a),s&amp;&amp;l&amp;&amp;c&amp;&amp;u){var f=Math.min(s.length,l.length,c.length,u.length);return o&amp;&amp;(f=Math.min(f,i.minRowLength(o))),e._length=f,f}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1139:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=e.yaxis,s=e.xaxis,l=!!s.rangebreaks;i.makeTraceGroups(a,r,&quot;trace ohlc&quot;).each((function(t){var e=n.select(this),r=t[0],a=r.t;if(!0!==r.trace.visible||a.empty)e.remove();else{var c=a.tickLen,u=e.selectAll(&quot;path&quot;).data(i.identity);u.enter().append(&quot;path&quot;),u.exit().remove(),u.attr(&quot;d&quot;,(function(t){if(t.empty)return&quot;M0,0Z&quot;;var e=s.c2p(t.pos-c,!0),r=s.c2p(t.pos+c,!0),n=l?(e+r)/2:s.c2p(t.pos,!0);return&quot;M&quot;+e+&quot;,&quot;+o.c2p(t.o,!0)+&quot;H&quot;+n+&quot;M&quot;+n+&quot;,&quot;+o.c2p(t.h,!0)+&quot;V&quot;+o.c2p(t.l,!0)+&quot;M&quot;+r+&quot;,&quot;+o.c2p(t.c,!0)+&quot;H&quot;+n}))}}))}},{&quot;../../lib&quot;:778,d3:169}],1140:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].t.bPos||0;if(!1===e)for(r=0;r&lt;n.length;r++)n[r].selected=0;else for(r=0;r&lt;n.length;r++){var l=n[r];e.contains([i.c2p(l.pos+s),a.c2p(l.yc)],null,l.i,t)?(o.push({pointNumber:l.i,x:i.c2d(l.pos),y:a.c2d(l.yc)}),l.selected=1):l.selected=0}return o}},{}],1141:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;);e.exports=function(t,e,r){var o=r||n.select(t).selectAll(&quot;g.ohlclayer&quot;).selectAll(&quot;g.trace&quot;);o.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),o.each((function(t){var e=t[0].trace;n.select(this).selectAll(&quot;path&quot;).each((function(t){if(!t.empty){var r=e[t.dir].line;n.select(this).style(&quot;fill&quot;,&quot;none&quot;).call(a.stroke,r.color).call(i.dashLine,r.dash,r.width).style(&quot;opacity&quot;,e.selectedpoints&amp;&amp;!t.selected?.3:1)}}))}))}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,d3:169}],1142:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/domain&quot;).attributes,c=n({editType:&quot;calc&quot;},o(&quot;line&quot;,{editTypeOverride:&quot;calc&quot;}),{shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;hspline&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},hovertemplate:s({editType:&quot;plot&quot;,arrayOk:!1},{keys:[&quot;count&quot;,&quot;probability&quot;]})});e.exports={domain:l({name:&quot;parcats&quot;,trace:!0,editType:&quot;calc&quot;}),hoverinfo:n({},i.hoverinfo,{flags:[&quot;count&quot;,&quot;probability&quot;],editType:&quot;plot&quot;,arrayOk:!1}),hoveron:{valType:&quot;enumerated&quot;,values:[&quot;category&quot;,&quot;color&quot;,&quot;dimension&quot;],dflt:&quot;category&quot;,editType:&quot;plot&quot;},hovertemplate:s({editType:&quot;plot&quot;,arrayOk:!1},{keys:[&quot;count&quot;,&quot;probability&quot;,&quot;category&quot;,&quot;categorycount&quot;,&quot;colorcount&quot;,&quot;bandcolorcount&quot;]}),arrangement:{valType:&quot;enumerated&quot;,values:[&quot;perpendicular&quot;,&quot;freeform&quot;,&quot;fixed&quot;],dflt:&quot;perpendicular&quot;,editType:&quot;plot&quot;},bundlecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},sortpaths:{valType:&quot;enumerated&quot;,values:[&quot;forward&quot;,&quot;backward&quot;],dflt:&quot;forward&quot;,editType:&quot;plot&quot;},labelfont:a({editType:&quot;calc&quot;}),tickfont:a({editType:&quot;calc&quot;}),dimensions:{_isLinkedToArray:&quot;dimension&quot;,label:{valType:&quot;string&quot;,editType:&quot;calc&quot;},categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},displayindex:{valType:&quot;integer&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;,visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}},line:c,counts:{valType:&quot;number&quot;,min:0,dflt:1,arrayOk:!0,editType:&quot;calc&quot;},customdata:void 0,hoverlabel:void 0,ids:void 0,legendgroup:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906}],1143:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getModuleCalcData,i=t(&quot;./plot&quot;);r.name=&quot;parcats&quot;,r.plot=function(t,e,r,a){var o=n(t.calcdata,&quot;parcats&quot;);if(o.length){var s=o[0];i(t,s,r,a)}},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;parcats&quot;),a=e._has&amp;&amp;e._has(&quot;parcats&quot;);i&amp;&amp;!a&amp;&amp;n._paperdiv.selectAll(&quot;.parcats&quot;).remove()}},{&quot;../../plots/get_data&quot;:865,&quot;./plot&quot;:1148}],1144:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/gup&quot;).wrap,i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/calc&quot;),o=t(&quot;../../lib/filter_unique.js&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;fast-isnumeric&quot;);function u(t,e,r){t.valueInds.push(e),t.count+=r}function f(t,e,r){return{categoryInds:t,color:e,rawColor:r,valueInds:[],count:0}}function h(t,e,r){t.valueInds.push(e),t.count+=r}e.exports=function(t,e){var r=l.filterVisible(e.dimensions);if(0===r.length)return[];var p,d,g,m=r.map((function(t){var e;if(&quot;trace&quot;===t.categoryorder)e=null;else if(&quot;array&quot;===t.categoryorder)e=t.categoryarray;else{e=o(t.values);for(var r=!0,n=0;n&lt;e.length;n++)if(!c(e[n])){r=!1;break}e.sort(r?l.sorterAsc:void 0),&quot;category descending&quot;===t.categoryorder&amp;&amp;(e=e.reverse())}return function(t,e){e=null==e?[]:e.map((function(t){return t}));var r={},n={},i=[];e.forEach((function(t,e){r[t]=0,n[t]=e}));for(var a=0;a&lt;t.length;a++){var o,s=t[a];void 0===r[s]?(r[s]=1,o=e.push(s)-1,n[s]=o):(r[s]++,o=n[s]),i.push(o)}var l=e.map((function(t){return r[t]}));return{uniqueValues:e,uniqueCounts:l,inds:i}}(t.values,e)}));p=l.isArrayOrTypedArray(e.counts)?e.counts:[e.counts],function(t){var e;if(function(t){for(var e=new Array(t.length),r=0;r&lt;t.length;r++){if(t[r]&lt;0||t[r]&gt;=t.length)return!1;if(void 0!==e[t[r]])return!1;e[t[r]]=!0}return!0}(t.map((function(t){return t.displayindex}))))for(e=0;e&lt;t.length;e++)t[e]._displayindex=t[e].displayindex;else for(e=0;e&lt;t.length;e++)t[e]._displayindex=e}(r),r.forEach((function(t,e){!function(t,e){t._categoryarray=e.uniqueValues,null===t.ticktext||void 0===t.ticktext?t._ticktext=[]:t._ticktext=t.ticktext.slice();for(var r=t._ticktext.length;r&lt;e.uniqueValues.length;r++)t._ticktext.push(e.uniqueValues[r])}(t,m[e])}));var v,y=e.line;y?(i(e,&quot;line&quot;)&amp;&amp;a(t,e,{vals:e.line.color,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;}),v=s.tryColorscale(y)):v=l.identity;var x,b,_,w,T,k=r[0].values.length,M={},A=m.map((function(t){return t.inds}));for(g=0,x=0;x&lt;k;x++){var S=[];for(b=0;b&lt;A.length;b++)S.push(A[b][x]);d=p[x%p.length],g+=d;var E=(_=x,w=void 0,T=void 0,l.isArrayOrTypedArray(y.color)?T=w=y.color[_%y.color.length]:w=y.color,{color:v(w),rawColor:T}),C=S+&quot;-&quot;+E.rawColor;void 0===M[C]&amp;&amp;(M[C]=f(S,E.color,E.rawColor)),h(M[C],x,d)}var L,I=r.map((function(t,e){return function(t,e,r,n,i){return{dimensionInd:t,containerInd:e,displayInd:r,dimensionLabel:n,count:i,categories:[],dragX:null}}(e,t._index,t._displayindex,t.label,g)}));for(x=0;x&lt;k;x++)for(d=p[x%p.length],b=0;b&lt;I.length;b++){var P=I[b].containerInd,z=m[b].inds[x],O=I[b].categories;if(void 0===O[z]){var D=e.dimensions[P]._categoryarray[z],R=e.dimensions[P]._ticktext[z];O[z]={dimensionInd:b,categoryInd:L=z,categoryValue:D,displayInd:L,categoryLabel:R,valueInds:[],count:0,dragY:null}}u(O[z],x,d)}return n(function(t,e,r){var n=t.map((function(t){return t.categories.length})).reduce((function(t,e){return Math.max(t,e)}));return{dimensions:t,paths:e,trace:void 0,maxCats:n,count:r}}(I,M,g))}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/filter_unique.js&quot;:769,&quot;../../lib/gup&quot;:775,&quot;fast-isnumeric&quot;:241}],1145:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../parcoords/merge_length&quot;);function u(t,e){function r(r,i){return n.coerce(t,e,l.dimensions,r,i)}var i=r(&quot;values&quot;),a=r(&quot;visible&quot;);if(i&amp;&amp;i.length||(a=e.visible=!1),a){r(&quot;label&quot;),r(&quot;displayindex&quot;,e._index);var o,s=t.categoryarray,c=Array.isArray(s)&amp;&amp;s.length&gt;0;c&amp;&amp;(o=&quot;array&quot;);var u=r(&quot;categoryorder&quot;,o);&quot;array&quot;===u?(r(&quot;categoryarray&quot;),r(&quot;ticktext&quot;)):(delete t.categoryarray,delete t.ticktext),c||&quot;array&quot;!==u||(e.categoryorder=&quot;trace&quot;)}}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,l,r,i)}var p=s(t,e,{name:&quot;dimensions&quot;,handleItemDefaults:u}),d=function(t,e,r,o,s){s(&quot;line.shape&quot;),s(&quot;line.hovertemplate&quot;);var l=s(&quot;line.color&quot;,o.colorway[0]);if(i(t,&quot;line&quot;)&amp;&amp;n.isArrayOrTypedArray(l)){if(l.length)return s(&quot;line.colorscale&quot;),a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}),l.length;e.line.color=r}return 1/0}(t,e,r,f,h);o(e,f,h),Array.isArray(p)&amp;&amp;p.length||(e.visible=!1),c(e,p,&quot;values&quot;,d),h(&quot;hoveron&quot;),h(&quot;hovertemplate&quot;),h(&quot;arrangement&quot;),h(&quot;bundlecolors&quot;),h(&quot;sortpaths&quot;),h(&quot;counts&quot;);var g={family:f.font.family,size:Math.round(f.font.size),color:f.font.color};n.coerceFont(h,&quot;labelfont&quot;,g);var m={family:f.font.family,size:Math.round(f.font.size/1.2),color:f.font.color};n.coerceFont(h,&quot;tickfont&quot;,m)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/domain&quot;:855,&quot;../parcoords/merge_length&quot;:1158,&quot;./attributes&quot;:1142}],1146:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},moduleType:&quot;trace&quot;,name:&quot;parcats&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1142,&quot;./base_plot&quot;:1143,&quot;./calc&quot;:1144,&quot;./defaults&quot;:1145,&quot;./plot&quot;:1148}],1147:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plot_api/plot_api&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../../components/drawing&quot;),c=t(&quot;tinycolor2&quot;),u=t(&quot;../../lib/svg_text_utils&quot;);function f(t,e,r,i){var a=t.map(R.bind(0,e,r)),c=i.selectAll(&quot;g.parcatslayer&quot;).data([null]);c.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;parcatslayer&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;);var f=c.selectAll(&quot;g.trace.parcats&quot;).data(a,h),v=f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;trace parcats&quot;);f.attr(&quot;transform&quot;,(function(t){return s(t.x,t.y)})),v.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;paths&quot;);var y=f.select(&quot;g.paths&quot;).selectAll(&quot;path.path&quot;).data((function(t){return t.paths}),h);y.attr(&quot;fill&quot;,(function(t){return t.model.color}));var _=y.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;path&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.model.color})).attr(&quot;fill-opacity&quot;,0);b(_),y.attr(&quot;d&quot;,(function(t){return t.svgD})),_.empty()||y.sort(d),y.exit().remove(),y.on(&quot;mouseover&quot;,g).on(&quot;mouseout&quot;,m).on(&quot;click&quot;,x),v.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;dimensions&quot;);var k=f.select(&quot;g.dimensions&quot;).selectAll(&quot;g.dimension&quot;).data((function(t){return t.dimensions}),h);k.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;dimension&quot;),k.attr(&quot;transform&quot;,(function(t){return s(t.x,0)})),k.exit().remove();var M=k.selectAll(&quot;g.category&quot;).data((function(t){return t.categories}),h),A=M.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;category&quot;);M.attr(&quot;transform&quot;,(function(t){return s(0,t.y)})),A.append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;catrect&quot;).attr(&quot;pointer-events&quot;,&quot;none&quot;),M.select(&quot;rect.catrect&quot;).attr(&quot;fill&quot;,&quot;none&quot;).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})),w(A);var S=M.selectAll(&quot;rect.bandrect&quot;).data((function(t){return t.bands}),h);S.each((function(){o.raiseToTop(this)})),S.attr(&quot;fill&quot;,(function(t){return t.color}));var z=S.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bandrect&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;fill-opacity&quot;,0);S.attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})).attr(&quot;y&quot;,(function(t){return t.y})).attr(&quot;cursor&quot;,(function(t){return&quot;fixed&quot;===t.parcatsViewModel.arrangement?&quot;default&quot;:&quot;perpendicular&quot;===t.parcatsViewModel.arrangement?&quot;ns-resize&quot;:&quot;move&quot;})),T(z),S.exit().remove(),A.append(&quot;text&quot;).attr(&quot;class&quot;,&quot;catlabel&quot;).attr(&quot;pointer-events&quot;,&quot;none&quot;);var O=e._fullLayout.paper_bgcolor;M.select(&quot;text.catlabel&quot;).attr(&quot;text-anchor&quot;,(function(t){return p(t)?&quot;start&quot;:&quot;end&quot;})).attr(&quot;alignment-baseline&quot;,&quot;middle&quot;).style(&quot;text-shadow&quot;,O+&quot; -1px  1px 2px, &quot;+O+&quot; 1px  1px 2px, &quot;+O+&quot;  1px -1px 2px, &quot;+O+&quot; -1px -1px 2px&quot;).style(&quot;fill&quot;,&quot;rgb(0, 0, 0)&quot;).attr(&quot;x&quot;,(function(t){return p(t)?t.width+5:-5})).attr(&quot;y&quot;,(function(t){return t.height/2})).text((function(t){return t.model.categoryLabel})).each((function(t){l.font(n.select(this),t.parcatsViewModel.categorylabelfont),u.convertToTspans(n.select(this),e)})),A.append(&quot;text&quot;).attr(&quot;class&quot;,&quot;dimlabel&quot;),M.select(&quot;text.dimlabel&quot;).attr(&quot;text-anchor&quot;,&quot;middle&quot;).attr(&quot;alignment-baseline&quot;,&quot;baseline&quot;).attr(&quot;cursor&quot;,(function(t){return&quot;fixed&quot;===t.parcatsViewModel.arrangement?&quot;default&quot;:&quot;ew-resize&quot;})).attr(&quot;x&quot;,(function(t){return t.width/2})).attr(&quot;y&quot;,-5).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})).each((function(t){l.font(n.select(this),t.parcatsViewModel.labelfont)})),M.selectAll(&quot;rect.bandrect&quot;).on(&quot;mouseover&quot;,E).on(&quot;mouseout&quot;,C),M.exit().remove(),k.call(n.behavior.drag().origin((function(t){return{x:t.x,y:0}})).on(&quot;dragstart&quot;,L).on(&quot;drag&quot;,I).on(&quot;dragend&quot;,P)),f.each((function(t){t.traceSelection=n.select(this),t.pathSelection=n.select(this).selectAll(&quot;g.paths&quot;).selectAll(&quot;path.path&quot;),t.dimensionSelection=n.select(this).selectAll(&quot;g.dimensions&quot;).selectAll(&quot;g.dimension&quot;)})),f.exit().remove()}function h(t){return t.key}function p(t){var e=t.parcatsViewModel.dimensions.length,r=t.parcatsViewModel.dimensions[e-1].model.dimensionInd;return t.model.dimensionInd===r}function d(t,e){return t.model.rawColor&gt;e.model.rawColor?1:t.model.rawColor&lt;e.model.rawColor?-1:0}function g(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){o.raiseToTop(this),_(n.select(this));var e=v(t),r=y(t);if(t.parcatsViewModel.graphDiv.emit(&quot;plotly_hover&quot;,{points:e,event:n.event,constraints:r}),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;none&quot;)){var i,s,l,u=n.mouse(this)[0],f=t.parcatsViewModel.graphDiv,h=t.parcatsViewModel.trace,p=f._fullLayout,d=p._paperdiv.node().getBoundingClientRect(),g=t.parcatsViewModel.graphDiv.getBoundingClientRect();for(l=0;l&lt;t.leftXs.length-1;l++)if(t.leftXs[l]+t.dimWidths[l]-2&lt;=u&amp;&amp;u&lt;=t.leftXs[l+1]+2){var m=t.parcatsViewModel.dimensions[l],x=t.parcatsViewModel.dimensions[l+1];i=(m.x+m.width+x.x)/2,s=(t.topYs[l]+t.topYs[l+1]+t.height)/2;break}var b=t.parcatsViewModel.x+i,w=t.parcatsViewModel.y+s,T=c.mostReadable(t.model.color,[&quot;black&quot;,&quot;white&quot;]),k=t.model.count,M=k/t.parcatsViewModel.model.count,A={countLabel:k,probabilityLabel:M.toFixed(3)},S=[];-1!==t.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;S.push([&quot;Count:&quot;,A.countLabel].join(&quot; &quot;)),-1!==t.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;S.push([&quot;P:&quot;,A.probabilityLabel].join(&quot; &quot;));var E=S.join(&quot;&lt;br&gt;&quot;),C=n.mouse(f)[0];a.loneHover({trace:h,x:b-d.left+g.left,y:w-d.top+g.top,text:E,color:t.model.color,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontSize:10,fontColor:T,idealAlign:C&lt;b?&quot;right&quot;:&quot;left&quot;,hovertemplate:(h.line||{}).hovertemplate,hovertemplateLabels:A,eventData:[{data:h._input,fullData:h,count:k,probability:M}]},{container:p._hoverlayer.node(),outerContainer:p._paper.node(),gd:f})}}}function m(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;(b(n.select(this)),a.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()),t.parcatsViewModel.pathSelection.sort(d),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;))){var e=v(t),r=y(t);t.parcatsViewModel.graphDiv.emit(&quot;plotly_unhover&quot;,{points:e,event:n.event,constraints:r})}}function v(t){for(var e=[],r=z(t.parcatsViewModel),n=0;n&lt;t.model.valueInds.length;n++){var i=t.model.valueInds[n];e.push({curveNumber:r,pointNumber:i})}return e}function y(t){for(var e={},r=t.parcatsViewModel.model.dimensions,n=0;n&lt;r.length;n++){var i=r[n],a=i.categories[t.model.categoryInds[n]];e[i.containerInd]=a.categoryValue}return void 0!==t.model.rawColor&amp;&amp;(e.color=t.model.rawColor),e}function x(t){if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){var e=v(t),r=y(t);t.parcatsViewModel.graphDiv.emit(&quot;plotly_click&quot;,{points:e,event:n.event,constraints:r})}}function b(t){t.attr(&quot;fill&quot;,(function(t){return t.model.color})).attr(&quot;fill-opacity&quot;,.6).attr(&quot;stroke&quot;,&quot;lightgray&quot;).attr(&quot;stroke-width&quot;,.2).attr(&quot;stroke-opacity&quot;,1)}function _(t){t.attr(&quot;fill-opacity&quot;,.8).attr(&quot;stroke&quot;,(function(t){return c.mostReadable(t.model.color,[&quot;black&quot;,&quot;white&quot;])})).attr(&quot;stroke-width&quot;,.3)}function w(t){t.select(&quot;rect.catrect&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,1).attr(&quot;stroke-opacity&quot;,1)}function T(t){t.attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,.2).attr(&quot;stroke-opacity&quot;,1).attr(&quot;fill-opacity&quot;,1)}function k(t){var e=t.parcatsViewModel.pathSelection,r=t.categoryViewModel.model.dimensionInd,n=t.categoryViewModel.model.categoryInd;return e.filter((function(e){return e.model.categoryInds[r]===n&amp;&amp;e.model.color===t.color}))}function M(t,e,r){var i=n.select(t).datum(),a=i.categoryViewModel.model,o=i.parcatsViewModel.graphDiv,s=n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;),l=[];s.each((function(t){k(t).each((function(t){Array.prototype.push.apply(l,v(t))}))}));var c={};c[a.dimensionInd]=a.categoryValue,o.emit(e,{points:l,event:r,constraints:c})}function A(t,e,r){var i=n.select(t).datum(),a=i.categoryViewModel.model,o=i.parcatsViewModel.graphDiv,s=k(i),l=[];s.each((function(t){Array.prototype.push.apply(l,v(t))}));var c={};c[a.dimensionInd]=a.categoryValue,void 0!==i.rawColor&amp;&amp;(c.color=i.rawColor),o.emit(e,{points:l,event:r,constraints:c})}function S(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=n.select(r.parentNode).select(&quot;rect.catrect&quot;),c=l.node().getBoundingClientRect(),u=l.datum(),f=u.parcatsViewModel,h=f.model.dimensions[u.model.dimensionInd],p=f.trace,d=c.top+c.height/2;f.dimensions.length&gt;1&amp;&amp;h.displayInd===f.dimensions.length-1?(i=c.left,a=&quot;left&quot;):(i=c.left+c.width,a=&quot;right&quot;);var g=u.model.count,m=u.model.categoryLabel,v=g/u.parcatsViewModel.model.count,y={countLabel:g,categoryLabel:m,probabilityLabel:v.toFixed(3)},x=[];-1!==u.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;x.push([&quot;Count:&quot;,y.countLabel].join(&quot; &quot;)),-1!==u.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;x.push([&quot;P(&quot;+y.categoryLabel+&quot;):&quot;,y.probabilityLabel].join(&quot; &quot;));var b=x.join(&quot;&lt;br&gt;&quot;);return{trace:p,x:o*(i-e.left),y:s*(d-e.top),text:b,color:&quot;lightgray&quot;,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontSize:12,fontColor:&quot;black&quot;,idealAlign:a,hovertemplate:p.hovertemplate,hovertemplateLabels:y,eventData:[{data:p._input,fullData:p,count:g,category:m,probability:v}]}}function E(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){if(n.mouse(this)[1]&lt;-1)return;var e,r=t.parcatsViewModel.graphDiv,i=r._fullLayout,s=i._paperdiv.node().getBoundingClientRect(),l=t.parcatsViewModel.hoveron;if(&quot;color&quot;===l?(!function(t){var e=n.select(t).datum(),r=k(e);_(r),r.each((function(){o.raiseToTop(this)})),n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;).filter((function(t){return t.color===e.color})).each((function(){o.raiseToTop(this),n.select(this).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,1.5)}))}(this),A(this,&quot;plotly_hover&quot;,n.event)):(!function(t){n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;).each((function(t){var e=k(t);_(e),e.each((function(){o.raiseToTop(this)}))})),n.select(t.parentNode).select(&quot;rect.catrect&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,2.5)}(this),M(this,&quot;plotly_hover&quot;,n.event)),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;none&quot;))&quot;category&quot;===l?e=S(r,s,this):&quot;color&quot;===l?e=function(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=r.getBoundingClientRect(),u=n.select(r).datum(),f=u.categoryViewModel,h=f.parcatsViewModel,p=h.model.dimensions[f.model.dimensionInd],d=h.trace,g=l.y+l.height/2;h.dimensions.length&gt;1&amp;&amp;p.displayInd===h.dimensions.length-1?(i=l.left,a=&quot;left&quot;):(i=l.left+l.width,a=&quot;right&quot;);var m=f.model.categoryLabel,v=u.parcatsViewModel.model.count,y=0;u.categoryViewModel.bands.forEach((function(t){t.color===u.color&amp;&amp;(y+=t.count)}));var x=f.model.count,b=0;h.pathSelection.each((function(t){t.model.color===u.color&amp;&amp;(b+=t.model.count)}));var _=y/v,w=y/b,T=y/x,k={countLabel:v,categoryLabel:m,probabilityLabel:_.toFixed(3)},M=[];-1!==f.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;M.push([&quot;Count:&quot;,k.countLabel].join(&quot; &quot;)),-1!==f.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;(M.push(&quot;P(color \u2229 &quot;+m+&quot;): &quot;+k.probabilityLabel),M.push(&quot;P(&quot;+m+&quot; | color): &quot;+w.toFixed(3)),M.push(&quot;P(color | &quot;+m+&quot;): &quot;+T.toFixed(3)));var A=M.join(&quot;&lt;br&gt;&quot;),S=c.mostReadable(u.color,[&quot;black&quot;,&quot;white&quot;]);return{trace:d,x:o*(i-e.left),y:s*(g-e.top),text:A,color:u.color,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontColor:S,fontSize:10,idealAlign:a,hovertemplate:d.hovertemplate,hovertemplateLabels:k,eventData:[{data:d._input,fullData:d,category:m,count:v,probability:_,categorycount:x,colorcount:b,bandcolorcount:y}]}}(r,s,this):&quot;dimension&quot;===l&amp;&amp;(e=function(t,e,r){var i=[];return n.select(r.parentNode.parentNode).selectAll(&quot;g.category&quot;).select(&quot;rect.catrect&quot;).each((function(){i.push(S(t,e,this))})),i}(r,s,this)),e&amp;&amp;a.loneHover(e,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r})}}function C(t){var e=t.parcatsViewModel;if(!e.dragDimension&amp;&amp;(b(e.pathSelection),w(e.dimensionSelection.selectAll(&quot;g.category&quot;)),T(e.dimensionSelection.selectAll(&quot;g.category&quot;).selectAll(&quot;rect.bandrect&quot;)),a.loneUnhover(e.graphDiv._fullLayout._hoverlayer.node()),e.pathSelection.sort(d),-1===e.hoverinfoItems.indexOf(&quot;skip&quot;))){&quot;color&quot;===t.parcatsViewModel.hoveron?A(this,&quot;plotly_unhover&quot;,n.event):M(this,&quot;plotly_unhover&quot;,n.event)}}function L(t){&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;(t.dragDimensionDisplayInd=t.model.displayInd,t.initialDragDimensionDisplayInds=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),t.dragHasMoved=!1,t.dragCategoryDisplayInd=null,n.select(this).selectAll(&quot;g.category&quot;).select(&quot;rect.catrect&quot;).each((function(e){var r=n.mouse(this)[0],i=n.mouse(this)[1];-2&lt;=r&amp;&amp;r&lt;=e.width+2&amp;&amp;-2&lt;=i&amp;&amp;i&lt;=e.height+2&amp;&amp;(t.dragCategoryDisplayInd=e.model.displayInd,t.initialDragCategoryDisplayInds=t.model.categories.map((function(t){return t.displayInd})),e.model.dragY=e.y,o.raiseToTop(this.parentNode),n.select(this.parentNode).selectAll(&quot;rect.bandrect&quot;).each((function(e){e.y&lt;i&amp;&amp;i&lt;=e.y+e.height&amp;&amp;(t.potentialClickBand=this)})))})),t.parcatsViewModel.dragDimension=t,a.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()))}function I(t){if(&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;(t.dragHasMoved=!0,null!==t.dragDimensionDisplayInd)){var e=t.dragDimensionDisplayInd,r=e-1,i=e+1,a=t.parcatsViewModel.dimensions[e];if(null!==t.dragCategoryDisplayInd){var o=a.categories[t.dragCategoryDisplayInd];o.model.dragY+=n.event.dy;var s=o.model.dragY,l=o.model.displayInd,c=a.categories,u=c[l-1],f=c[l+1];void 0!==u&amp;&amp;s&lt;u.y+u.height/2&amp;&amp;(o.model.displayInd=u.model.displayInd,u.model.displayInd=l),void 0!==f&amp;&amp;s+o.height&gt;f.y+f.height/2&amp;&amp;(o.model.displayInd=f.model.displayInd,f.model.displayInd=l),t.dragCategoryDisplayInd=o.model.displayInd}if(null===t.dragCategoryDisplayInd||&quot;freeform&quot;===t.parcatsViewModel.arrangement){a.model.dragX=n.event.x;var h=t.parcatsViewModel.dimensions[r],p=t.parcatsViewModel.dimensions[i];void 0!==h&amp;&amp;a.model.dragX&lt;h.x+h.width&amp;&amp;(a.model.displayInd=h.model.displayInd,h.model.displayInd=e),void 0!==p&amp;&amp;a.model.dragX+a.width&gt;p.x&amp;&amp;(a.model.displayInd=p.model.displayInd,p.model.displayInd=t.dragDimensionDisplayInd),t.dragDimensionDisplayInd=a.model.displayInd}N(t.parcatsViewModel),B(t.parcatsViewModel),D(t.parcatsViewModel),O(t.parcatsViewModel)}}function P(t){if(&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;null!==t.dragDimensionDisplayInd){n.select(this).selectAll(&quot;text&quot;).attr(&quot;font-weight&quot;,&quot;normal&quot;);var e={},r=z(t.parcatsViewModel),a=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),o=t.initialDragDimensionDisplayInds.some((function(t,e){return t!==a[e]}));o&amp;&amp;a.forEach((function(r,n){var i=t.parcatsViewModel.model.dimensions[n].containerInd;e[&quot;dimensions[&quot;+i+&quot;].displayindex&quot;]=r}));var s=!1;if(null!==t.dragCategoryDisplayInd){var l=t.model.categories.map((function(t){return t.displayInd}));if(s=t.initialDragCategoryDisplayInds.some((function(t,e){return t!==l[e]}))){var c=t.model.categories.slice().sort((function(t,e){return t.displayInd-e.displayInd})),u=c.map((function(t){return t.categoryValue})),f=c.map((function(t){return t.categoryLabel}));e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].categoryarray&quot;]=[u],e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].ticktext&quot;]=[f],e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].categoryorder&quot;]=&quot;array&quot;}}if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)&amp;&amp;!t.dragHasMoved&amp;&amp;t.potentialClickBand&amp;&amp;(&quot;color&quot;===t.parcatsViewModel.hoveron?A(t.potentialClickBand,&quot;plotly_click&quot;,n.event.sourceEvent):M(t.potentialClickBand,&quot;plotly_click&quot;,n.event.sourceEvent)),t.model.dragX=null,null!==t.dragCategoryDisplayInd)t.parcatsViewModel.dimensions[t.dragDimensionDisplayInd].categories[t.dragCategoryDisplayInd].model.dragY=null,t.dragCategoryDisplayInd=null;t.dragDimensionDisplayInd=null,t.parcatsViewModel.dragDimension=null,t.dragHasMoved=null,t.potentialClickBand=null,N(t.parcatsViewModel),B(t.parcatsViewModel),n.transition().duration(300).ease(&quot;cubic-in-out&quot;).each((function(){D(t.parcatsViewModel,!0),O(t.parcatsViewModel,!0)})).each(&quot;end&quot;,(function(){(o||s)&amp;&amp;i.restyle(t.parcatsViewModel.graphDiv,e,[r])}))}}function z(t){for(var e,r=t.graphDiv._fullData,n=0;n&lt;r.length;n++)if(t.key===r[n].uid){e=n;break}return e}function O(t,e){var r;void 0===e&amp;&amp;(e=!1),t.pathSelection.data((function(t){return t.paths}),h),(r=t.pathSelection,e?r.transition():r).attr(&quot;d&quot;,(function(t){return t.svgD}))}function D(t,e){function r(t){return e?t.transition():t}void 0===e&amp;&amp;(e=!1),t.dimensionSelection.data((function(t){return t.dimensions}),h);var i=t.dimensionSelection.selectAll(&quot;g.category&quot;).data((function(t){return t.categories}),h);r(t.dimensionSelection).attr(&quot;transform&quot;,(function(t){return s(t.x,0)})),r(i).attr(&quot;transform&quot;,(function(t){return s(0,t.y)})),i.select(&quot;.dimlabel&quot;).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})),i.select(&quot;.catlabel&quot;).attr(&quot;text-anchor&quot;,(function(t){return p(t)?&quot;start&quot;:&quot;end&quot;})).attr(&quot;x&quot;,(function(t){return p(t)?t.width+5:-5})).each((function(t){var e,r;p(t)?(e=t.width+5,r=&quot;start&quot;):(e=-5,r=&quot;end&quot;),n.select(this).selectAll(&quot;tspan&quot;).attr(&quot;x&quot;,e).attr(&quot;text-anchor&quot;,r)}));var a=i.selectAll(&quot;rect.bandrect&quot;).data((function(t){return t.bands}),h),l=a.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bandrect&quot;).attr(&quot;cursor&quot;,&quot;move&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;fill-opacity&quot;,0);a.attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})).attr(&quot;y&quot;,(function(t){return t.y})),T(l),a.each((function(){o.raiseToTop(this)})),a.exit().remove()}function R(t,e,r){var n,i=r[0],a=e.margin||{l:80,r:80,t:100,b:80},o=i.trace,s=o.domain,l=e.width,c=e.height,u=Math.floor(l*(s.x[1]-s.x[0])),f=Math.floor(c*(s.y[1]-s.y[0])),h=s.x[0]*l+a.l,p=e.height-s.y[1]*e.height+a.t,d=o.line.shape;n=&quot;all&quot;===o.hoverinfo?[&quot;count&quot;,&quot;probability&quot;]:(o.hoverinfo||&quot;&quot;).split(&quot;+&quot;);var g={trace:o,key:o.uid,model:i,x:h,y:p,width:u,height:f,hoveron:o.hoveron,hoverinfoItems:n,arrangement:o.arrangement,bundlecolors:o.bundlecolors,sortpaths:o.sortpaths,labelfont:o.labelfont,categorylabelfont:o.tickfont,pathShape:d,dragDimension:null,margin:a,paths:[],dimensions:[],graphDiv:t,traceSelection:null,pathSelection:null,dimensionSelection:null};return i.dimensions&amp;&amp;(N(g),B(g)),g}function F(t,e,r,i,a){var o,s,l=[],c=[];for(s=0;s&lt;r.length-1;s++)o=n.interpolateNumber(r[s]+t[s],t[s+1]),l.push(o(a)),c.push(o(1-a));var u=&quot;M &quot;+t[0]+&quot;,&quot;+e[0];for(u+=&quot;l&quot;+r[0]+&quot;,0 &quot;,s=1;s&lt;r.length;s++)u+=&quot;C&quot;+l[s-1]+&quot;,&quot;+e[s-1]+&quot; &quot;+c[s-1]+&quot;,&quot;+e[s]+&quot; &quot;+t[s]+&quot;,&quot;+e[s],u+=&quot;l&quot;+r[s]+&quot;,0 &quot;;for(u+=&quot;l0,&quot;+i+&quot; &quot;,u+=&quot;l -&quot;+r[r.length-1]+&quot;,0 &quot;,s=r.length-2;s&gt;=0;s--)u+=&quot;C&quot;+c[s]+&quot;,&quot;+(e[s+1]+i)+&quot; &quot;+l[s]+&quot;,&quot;+(e[s]+i)+&quot; &quot;+(t[s]+r[s])+&quot;,&quot;+(e[s]+i),u+=&quot;l-&quot;+r[s]+&quot;,0 &quot;;return u+=&quot;Z&quot;}function B(t){var e=t.dimensions,r=t.model,n=e.map((function(t){return t.categories.map((function(t){return t.y}))})),i=t.model.dimensions.map((function(t){return t.categories.map((function(t){return t.displayInd}))})),a=t.model.dimensions.map((function(t){return t.displayInd})),o=t.dimensions.map((function(t){return t.model.dimensionInd})),s=e.map((function(t){return t.x})),l=e.map((function(t){return t.width})),c=[];for(var u in r.paths)r.paths.hasOwnProperty(u)&amp;&amp;c.push(r.paths[u]);function f(t){var e=t.categoryInds.map((function(t,e){return i[e][t]}));return o.map((function(t){return e[t]}))}c.sort((function(e,r){var n=f(e),i=f(r);return&quot;backward&quot;===t.sortpaths&amp;&amp;(n.reverse(),i.reverse()),n.push(e.valueInds[0]),i.push(r.valueInds[0]),t.bundlecolors&amp;&amp;(n.unshift(e.rawColor),i.unshift(r.rawColor)),n&lt;i?-1:n&gt;i?1:0}));for(var h=new Array(c.length),p=e[0].model.count,d=e[0].categories.map((function(t){return t.height})).reduce((function(t,e){return t+e})),g=0;g&lt;c.length;g++){var m,v=c[g];m=p&gt;0?d*(v.count/p):0;for(var y,x=new Array(n.length),b=0;b&lt;v.categoryInds.length;b++){var _=v.categoryInds[b],w=i[b][_],T=a[b];x[T]=n[T][w],n[T][w]+=m;var k=t.dimensions[T].categories[w],M=k.bands.length,A=k.bands[M-1];if(void 0===A||v.rawColor!==A.rawColor){var S=void 0===A?0:A.y+A.height;k.bands.push({key:S,color:v.color,rawColor:v.rawColor,height:m,width:k.width,count:v.count,y:S,categoryViewModel:k,parcatsViewModel:t})}else{var E=k.bands[M-1];E.height+=m,E.count+=v.count}}y=&quot;hspline&quot;===t.pathShape?F(s,x,l,m,.5):F(s,x,l,m,0),h[g]={key:v.valueInds[0],model:v,height:m,leftXs:s,topYs:x,dimWidths:l,svgD:y,parcatsViewModel:t}}t.paths=h}function N(t){var e=t.model.dimensions.map((function(t){return{displayInd:t.displayInd,dimensionInd:t.dimensionInd}}));e.sort((function(t,e){return t.displayInd-e.displayInd}));var r=[];for(var n in e){var i=e[n].dimensionInd,a=t.model.dimensions[i];r.push(j(t,a))}t.dimensions=r}function j(t,e){var r,n=t.model.dimensions.length,i=e.displayInd;r=40+(n&gt;1?(t.width-80-16)/(n-1):0)*i;var a,o,s,l,c,u=[],f=t.model.maxCats,h=e.categories.length,p=e.count,d=t.height-8*(f-1),g=8*(f-h)/2,m=e.categories.map((function(t){return{displayInd:t.displayInd,categoryInd:t.categoryInd}}));for(m.sort((function(t,e){return t.displayInd-e.displayInd})),c=0;c&lt;h;c++)l=m[c].categoryInd,o=e.categories[l],a=p&gt;0?o.count/p*d:0,s={key:o.valueInds[0],model:o,width:16,height:a,y:null!==o.dragY?o.dragY:g,bands:[],parcatsViewModel:t},g=g+a+8,u.push(s);return{key:e.dimensionInd,x:null!==e.dragX?e.dragX:r,y:0,width:16,model:e,categories:u,parcatsViewModel:t,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}e.exports=function(t,e,r,n){f(r,t,n,e)}},{&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_api&quot;:814,d3:169,tinycolor2:576}],1148:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./parcats&quot;);e.exports=function(t,e,r,i){var a=t._fullLayout,o=a._paper,s=a._size;n(t,o,e,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},r,i)}},{&quot;./parcats&quot;:1147}],1149:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/layout_attributes&quot;),a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/plot_template&quot;).templatedArray;e.exports={domain:o({name:&quot;parcoords&quot;,trace:!0,editType:&quot;plot&quot;}),labelangle:{valType:&quot;angle&quot;,dflt:0,editType:&quot;plot&quot;},labelside:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;plot&quot;},labelfont:a({editType:&quot;plot&quot;}),tickfont:a({editType:&quot;plot&quot;}),rangefont:a({editType:&quot;plot&quot;}),dimensions:l(&quot;dimension&quot;,{label:{valType:&quot;string&quot;,editType:&quot;plot&quot;},tickvals:s({},i.tickvals,{editType:&quot;plot&quot;}),ticktext:s({},i.ticktext,{editType:&quot;plot&quot;}),tickformat:s({},i.tickformat,{editType:&quot;plot&quot;}),visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},constraintrange:{valType:&quot;info_array&quot;,freeLength:!0,dimensions:&quot;1-2&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},multiselect:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;}),line:s({editType:&quot;calc&quot;},n(&quot;line&quot;,{colorscaleDflt:&quot;Viridis&quot;,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}))}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856}],1150:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;d3&quot;),a=t(&quot;../../lib/gup&quot;).keyFun,o=t(&quot;../../lib/gup&quot;).repeat,s=t(&quot;../../lib&quot;).sorterAsc,l=t(&quot;../../lib&quot;).strTranslate,c=n.bar.snapRatio;function u(t,e){return t*(1-c)+e*c}var f=n.bar.snapClose;function h(t,e){return t*(1-f)+e*f}function p(t,e,r,n){if(function(t,e){for(var r=0;r&lt;e.length;r++)if(t&gt;=e[r][0]&amp;&amp;t&lt;=e[r][1])return!0;return!1}(r,n))return r;var i=t?-1:1,a=0,o=e.length-1;if(i&lt;0){var s=a;a=o,o=s}for(var l=e[a],c=l,f=a;i*f&lt;i*o;f+=i){var p=f+i,d=e[p];if(i*r&lt;i*h(l,d))return u(l,c);if(i*r&lt;i*d||p===o)return u(d,l);c=l,l=d}}function d(t){t.attr(&quot;x&quot;,-n.bar.captureWidth/2).attr(&quot;width&quot;,n.bar.captureWidth)}function g(t){t.attr(&quot;visibility&quot;,&quot;visible&quot;).style(&quot;visibility&quot;,&quot;visible&quot;).attr(&quot;fill&quot;,&quot;yellow&quot;).attr(&quot;opacity&quot;,0)}function m(t){if(!t.brush.filterSpecified)return&quot;0,&quot;+t.height;for(var e,r,n,i=v(t.brush.filter.getConsolidated(),t.height),a=[0],o=i.length?i[0][0]:null,s=0;s&lt;i.length;s++)r=(e=i[s])[1]-e[0],a.push(o),a.push(r),(n=s+1)&lt;i.length&amp;&amp;(o=i[n][0]-e[1]);return a.push(t.height),a}function v(t,e){return t.map((function(t){return t.map((function(t){return Math.max(0,t*e)})).sort(s)}))}function y(){i.select(document.body).style(&quot;cursor&quot;,null)}function x(t){t.attr(&quot;stroke-dasharray&quot;,m)}function b(t,e){var r=i.select(t).selectAll(&quot;.highlight, .highlight-shadow&quot;);x(e?r.transition().duration(n.bar.snapDuration).each(&quot;end&quot;,e):r)}function _(t,e){var r,i=t.brush,a=NaN,o={};if(i.filterSpecified){var s=t.height,l=i.filter.getConsolidated(),c=v(l,s),u=NaN,f=NaN,h=NaN;for(r=0;r&lt;=c.length;r++){var p=c[r];if(p&amp;&amp;p[0]&lt;=e&amp;&amp;e&lt;=p[1]){u=r;break}if(f=r?r-1:NaN,p&amp;&amp;p[0]&gt;e){h=r;break}}if(a=u,isNaN(a)&amp;&amp;(a=isNaN(f)||isNaN(h)?isNaN(f)?h:f:e-c[f][1]&lt;c[h][0]-e?f:h),!isNaN(a)){var d=c[a],g=function(t,e){var r=n.bar.handleHeight;if(!(e&gt;t[1]+r||e&lt;t[0]-r))return e&gt;=.9*t[1]+.1*t[0]?&quot;n&quot;:e&lt;=.9*t[0]+.1*t[1]?&quot;s&quot;:&quot;ns&quot;}(d,e);g&amp;&amp;(o.interval=l[a],o.intervalPix=d,o.region=g)}}if(t.ordinal&amp;&amp;!o.region){var m=t.unitTickvals,y=t.unitToPaddedPx.invert(e);for(r=0;r&lt;m.length;r++){var x=[.25*m[Math.max(r-1,0)]+.75*m[r],.25*m[Math.min(r+1,m.length-1)]+.75*m[r]];if(y&gt;=x[0]&amp;&amp;y&lt;=x[1]){o.clickableOrdinalRange=x;break}}}return o}function w(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[r-a.grabPoint,r+a.barLength-a.grabPoint].map(e.unitToPaddedPx.invert):a.newExtent=[a.startExtent,e.unitToPaddedPx.invert(r)].sort(s),e.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(e),b(t.parentNode)}function T(t,e){var r=_(e,e.height-i.mouse(t)[1]-2*n.verticalPadding),a=&quot;crosshair&quot;;r.clickableOrdinalRange?a=&quot;pointer&quot;:r.region&amp;&amp;(a=r.region+&quot;-resize&quot;),i.select(document.body).style(&quot;cursor&quot;,a)}function k(t){t.on(&quot;mousemove&quot;,(function(t){i.event.preventDefault(),t.parent.inBrushDrag||T(this,t)})).on(&quot;mouseleave&quot;,(function(t){t.parent.inBrushDrag||y()})).call(i.behavior.drag().on(&quot;dragstart&quot;,(function(t){!function(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.unitToPaddedPx.invert(r),o=e.brush,s=_(e,r),l=s.interval,c=o.svgBrush;if(c.wasDragged=!1,c.grabbingBar=&quot;ns&quot;===s.region,c.grabbingBar){var u=l.map(e.unitToPaddedPx);c.grabPoint=r-u[0]-n.verticalPadding,c.barLength=u[1]-u[0]}c.clickableOrdinalRange=s.clickableOrdinalRange,c.stayingIntervals=e.multiselect&amp;&amp;o.filterSpecified?o.filter.getConsolidated():[],l&amp;&amp;(c.stayingIntervals=c.stayingIntervals.filter((function(t){return t[0]!==l[0]&amp;&amp;t[1]!==l[1]}))),c.startExtent=s.region?l[&quot;s&quot;===s.region?1:0]:a,e.parent.inBrushDrag=!0,c.brushStartCallback()}(this,t)})).on(&quot;drag&quot;,(function(t){w(this,t)})).on(&quot;dragend&quot;,(function(t){!function(t,e){var r=e.brush,n=r.filter,a=r.svgBrush;a._dragging||(T(t,e),w(t,e),e.brush.svgBrush.wasDragged=!1),a._dragging=!1,i.event.sourceEvent.stopPropagation();var o=a.grabbingBar;if(a.grabbingBar=!1,a.grabLocation=void 0,e.parent.inBrushDrag=!1,y(),!a.wasDragged)return a.wasDragged=void 0,a.clickableOrdinalRange?r.filterSpecified&amp;&amp;e.multiselect?a.extent.push(a.clickableOrdinalRange):(a.extent=[a.clickableOrdinalRange],r.filterSpecified=!0):o?(a.extent=a.stayingIntervals,0===a.extent.length&amp;&amp;A(r)):A(r),a.brushCallback(e),b(t.parentNode),void a.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);var s=function(){n.set(n.getConsolidated())};if(e.ordinal){var l=e.unitTickvals;l[l.length-1]&lt;l[0]&amp;&amp;l.reverse(),a.newExtent=[p(0,l,a.newExtent[0],a.stayingIntervals),p(1,l,a.newExtent[1],a.stayingIntervals)];var c=a.newExtent[1]&gt;a.newExtent[0];a.extent=a.stayingIntervals.concat(c?[a.newExtent]:[]),a.extent.length||A(r),a.brushCallback(e),c?b(t.parentNode,s):(s(),b(t.parentNode))}else s();a.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}(this,t)})))}function M(t,e){return t[0]-e[0]}function A(t){t.filterSpecified=!1,t.svgBrush.extent=[[-1/0,1/0]]}function S(t){for(var e,r=t.slice(),n=[],i=r.shift();i;){for(e=i.slice();(i=r.shift())&amp;&amp;i[0]&lt;=e[1];)e[1]=Math.max(e[1],i[1]);n.push(e)}return 1===n.length&amp;&amp;n[0][0]&gt;n[0][1]&amp;&amp;(n=[]),n}e.exports={makeBrush:function(t,e,r,n,i,a){var o,l=function(){var t,e,r=[];return{set:function(n){1===(r=n.map((function(t){return t.slice().sort(s)})).sort(M)).length&amp;&amp;r[0][0]===-1/0&amp;&amp;r[0][1]===1/0&amp;&amp;(r=[[0,-1]]),t=S(r),e=r.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0])},get:function(){return r.slice()},getConsolidated:function(){return t},getBounds:function(){return e}}}();return l.set(r),{filter:l,filterSpecified:e,svgBrush:{extent:[],brushStartCallback:n,brushCallback:(o=i,function(t){var e=t.brush,r=function(t){return t.svgBrush.extent.map((function(t){return t.slice()}))}(e).slice();e.filter.set(r),o()}),brushEndCallback:a}}},ensureAxisBrush:function(t){var e=t.selectAll(&quot;.&quot;+n.cn.axisBrush).data(o,a);e.enter().append(&quot;g&quot;).classed(n.cn.axisBrush,!0),function(t){var e=t.selectAll(&quot;.background&quot;).data(o);e.enter().append(&quot;rect&quot;).classed(&quot;background&quot;,!0).call(d).call(g).style(&quot;pointer-events&quot;,&quot;auto&quot;).attr(&quot;transform&quot;,l(0,n.verticalPadding)),e.call(k).attr(&quot;height&quot;,(function(t){return t.height-n.verticalPadding}));var r=t.selectAll(&quot;.highlight-shadow&quot;).data(o);r.enter().append(&quot;line&quot;).classed(&quot;highlight-shadow&quot;,!0).attr(&quot;x&quot;,-n.bar.width/2).attr(&quot;stroke-width&quot;,n.bar.width+n.bar.strokeWidth).attr(&quot;stroke&quot;,n.bar.strokeColor).attr(&quot;opacity&quot;,n.bar.strokeOpacity).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;),r.attr(&quot;y1&quot;,(function(t){return t.height})).call(x);var i=t.selectAll(&quot;.highlight&quot;).data(o);i.enter().append(&quot;line&quot;).classed(&quot;highlight&quot;,!0).attr(&quot;x&quot;,-n.bar.width/2).attr(&quot;stroke-width&quot;,n.bar.width-n.bar.strokeWidth).attr(&quot;stroke&quot;,n.bar.fillColor).attr(&quot;opacity&quot;,n.bar.fillOpacity).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;),i.attr(&quot;y1&quot;,(function(t){return t.height})).call(x)}(e)},cleanRanges:function(t,e){if(Array.isArray(t[0])?(t=t.map((function(t){return t.sort(s)})),t=e.multiselect?S(t.sort(M)):[t[0]]):t=[t.sort(s)],e.tickvals){var r=e.tickvals.slice().sort(s);if(!(t=t.map((function(t){var e=[p(0,r,t[0],[]),p(1,r,t[1],[])];if(e[1]&gt;e[0])return e})).filter((function(t){return t}))).length)return}return t.length&gt;1?t:t[0]}}},{&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;./constants&quot;:1153,d3:169}],1151:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/get_data&quot;).getModuleCalcData,a=t(&quot;./plot&quot;),o=t(&quot;../../constants/xmlns_namespaces&quot;);r.name=&quot;parcoords&quot;,r.plot=function(t){var e=i(t.calcdata,&quot;parcoords&quot;)[0];e.length&amp;&amp;a(t,e)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;parcoords&quot;),a=e._has&amp;&amp;e._has(&quot;parcoords&quot;);i&amp;&amp;!a&amp;&amp;(n._paperdiv.selectAll(&quot;.parcoords&quot;).remove(),n._glimages.selectAll(&quot;*&quot;).remove())},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(&quot;.svg-container&quot;);r.filter((function(t,e){return e===r.size()-1})).selectAll(&quot;.gl-canvas-context, .gl-canvas-focus&quot;).each((function(){var t=this.toDataURL(&quot;image/png&quot;);e.append(&quot;svg:image&quot;).attr({xmlns:o.svg,&quot;xlink:href&quot;:t,preserveAspectRatio:&quot;none&quot;,x:0,y:0,width:this.width,height:this.height})})),window.setTimeout((function(){n.selectAll(&quot;#filterBarPattern&quot;).attr(&quot;id&quot;,&quot;filterBarPattern&quot;)}),60)}},{&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../plots/get_data&quot;:865,&quot;./plot&quot;:1160,d3:169}],1152:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray,i=t(&quot;../../components/colorscale&quot;),a=t(&quot;../../lib/gup&quot;).wrap;e.exports=function(t,e){var r,o;return i.hasColorscale(e,&quot;line&quot;)&amp;&amp;n(e.line.color)?(r=e.line.color,o=i.extractOpts(e.line).colorscale,i.calc(t,e,{vals:r,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;})):(r=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=.5;return e}(e._length),o=[[0,e.line.color],[1,e.line.color]]),a({lineColor:r,cscale:o})}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775}],1153:[function(t,e,r){&quot;use strict&quot;;e.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:[&quot;contextLineLayer&quot;,&quot;focusLineLayer&quot;,&quot;pickLineLayer&quot;],axisTitleOffset:28,axisExtentOffset:10,deselectedLineColor:&quot;#777&quot;,bar:{width:4,captureWidth:10,fillColor:&quot;magenta&quot;,fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeColor:&quot;white&quot;,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:&quot;axis-extent-text&quot;,parcoordsLineLayers:&quot;parcoords-line-layers&quot;,parcoordsLineLayer:&quot;parcoords-lines&quot;,parcoords:&quot;parcoords&quot;,parcoordsControlView:&quot;parcoords-control-view&quot;,yAxis:&quot;y-axis&quot;,axisOverlays:&quot;axis-overlays&quot;,axis:&quot;axis&quot;,axisHeading:&quot;axis-heading&quot;,axisTitle:&quot;axis-title&quot;,axisExtent:&quot;axis-extent&quot;,axisExtentTop:&quot;axis-extent-top&quot;,axisExtentTopText:&quot;axis-extent-top-text&quot;,axisExtentBottom:&quot;axis-extent-bottom&quot;,axisExtentBottomText:&quot;axis-extent-bottom-text&quot;,axisBrush:&quot;axis-brush&quot;},id:{filterBarPattern:&quot;filter-bar-pattern&quot;}}},{}],1154:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;./attributes&quot;),u=t(&quot;./axisbrush&quot;),f=t(&quot;./constants&quot;).maxDimensionCount,h=t(&quot;./merge_length&quot;);function p(t,e,r,i){function a(r,i){return n.coerce(t,e,c.dimensions,r,i)}var o=a(&quot;values&quot;),s=a(&quot;visible&quot;);if(o&amp;&amp;o.length||(s=e.visible=!1),s){a(&quot;label&quot;),a(&quot;tickvals&quot;),a(&quot;ticktext&quot;),a(&quot;tickformat&quot;);var f=a(&quot;range&quot;);e._ax={_id:&quot;y&quot;,type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;,range:f},l.setConvert(e._ax,i.layout),a(&quot;multiselect&quot;);var h=a(&quot;constraintrange&quot;);h&amp;&amp;(e.constraintrange=u.cleanRanges(h,e))}}e.exports=function(t,e,r,l){function u(r,i){return n.coerce(t,e,c,r,i)}var d=t.dimensions;Array.isArray(d)&amp;&amp;d.length&gt;f&amp;&amp;(n.log(&quot;parcoords traces support up to &quot;+f+&quot; dimensions at the moment&quot;),d.splice(f));var g=s(t,e,{name:&quot;dimensions&quot;,layout:l,handleItemDefaults:p}),m=function(t,e,r,o,s){var l=s(&quot;line.color&quot;,r);if(i(t,&quot;line&quot;)&amp;&amp;n.isArrayOrTypedArray(l)){if(l.length)return s(&quot;line.colorscale&quot;),a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}),l.length;e.line.color=r}return 1/0}(t,e,r,l,u);o(e,l,u),Array.isArray(g)&amp;&amp;g.length||(e.visible=!1),h(e,g,&quot;values&quot;,m);var v={family:l.font.family,size:Math.round(l.font.size/1.2),color:l.font.color};n.coerceFont(u,&quot;labelfont&quot;,v),n.coerceFont(u,&quot;tickfont&quot;,v),n.coerceFont(u,&quot;rangefont&quot;,v),u(&quot;labelangle&quot;),u(&quot;labelside&quot;)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1149,&quot;./axisbrush&quot;:1150,&quot;./constants&quot;:1153,&quot;./merge_length&quot;:1158}],1155:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isTypedArray;r.convertTypedArray=function(t){return n(t)?Array.prototype.slice.call(t):t},r.isOrdinal=function(t){return!!t.tickvals},r.isVisible=function(t){return t.visible||!(&quot;visible&quot;in t)}},{&quot;../../lib&quot;:778}],1156:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},moduleType:&quot;trace&quot;,name:&quot;parcoords&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;noOpacity&quot;,&quot;noHover&quot;],meta:{}}},{&quot;./attributes&quot;:1149,&quot;./base_plot&quot;:1151,&quot;./calc&quot;:1152,&quot;./defaults&quot;:1154,&quot;./plot&quot;:1160}],1157:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nattribute vec4 p01_04, p05_08, p09_12, p13_16,\n               p17_20, p21_24, p25_28, p29_32,\n               p33_36, p37_40, p41_44, p45_48,\n               p49_52, p53_56, p57_60, colors;\n\nuniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,\n             loA, hiA, loB, hiB, loC, hiC, loD, hiD;\n\nuniform vec2 resolution, viewBoxPos, viewBoxSize;\nuniform sampler2D mask, palette;\nuniform float maskHeight;\nuniform float drwLayer; // 0: context, 1: focus, 2: pick\nuniform vec4 contextColor;\n\nbool isPick    = (drwLayer &gt; 1.5);\nbool isContext = (drwLayer &lt; 0.5);\n\nconst vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);\nconst vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);\n\nfloat val(mat4 p, mat4 v) {\n    return dot(matrixCompMult(p, v) * UNITS, UNITS);\n}\n\nfloat axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {\n    float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);\n    float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);\n    return y1 * (1.0 - ratio) + y2 * ratio;\n}\n\nint iMod(int a, int b) {\n    return a - b * (a / b);\n}\n\nbool fOutside(float p, float lo, float hi) {\n    return (lo &lt; hi) &amp;&amp; (lo &gt; p || p &gt; hi);\n}\n\nbool vOutside(vec4 p, vec4 lo, vec4 hi) {\n    return (\n        fOutside(p[0], lo[0], hi[0]) ||\n        fOutside(p[1], lo[1], hi[1]) ||\n        fOutside(p[2], lo[2], hi[2]) ||\n        fOutside(p[3], lo[3], hi[3])\n    );\n}\n\nbool mOutside(mat4 p, mat4 lo, mat4 hi) {\n    return (\n        vOutside(p[0], lo[0], hi[0]) ||\n        vOutside(p[1], lo[1], hi[1]) ||\n        vOutside(p[2], lo[2], hi[2]) ||\n        vOutside(p[3], lo[3], hi[3])\n    );\n}\n\nbool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {\n    return mOutside(A, loA, hiA) ||\n           mOutside(B, loB, hiB) ||\n           mOutside(C, loC, hiC) ||\n           mOutside(D, loD, hiD);\n}\n\nbool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {\n    mat4 pnts[4];\n    pnts[0] = A;\n    pnts[1] = B;\n    pnts[2] = C;\n    pnts[3] = D;\n\n    for(int i = 0; i &lt; 4; ++i) {\n        for(int j = 0; j &lt; 4; ++j) {\n            for(int k = 0; k &lt; 4; ++k) {\n                if(0 == iMod(\n                    int(255.0 * texture2D(mask,\n                        vec2(\n                            (float(i * 2 + j / 2) + 0.5) / 8.0,\n                            (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight\n                        ))[3]\n                    ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),\n                    2\n                )) return true;\n            }\n        }\n    }\n    return false;\n}\n\nvec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {\n    float x = 0.5 * sign(v) + 0.5;\n    float y = axisY(x, A, B, C, D);\n    float z = 1.0 - abs(v);\n\n    z += isContext ? 0.0 : 2.0 * float(\n        outsideBoundingBox(A, B, C, D) ||\n        outsideRasterMask(A, B, C, D)\n    );\n\n    return vec4(\n        2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,\n        z,\n        1.0\n    );\n}\n\nvoid main() {\n    mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);\n    mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);\n    mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);\n    mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);\n\n    float v = colors[3];\n\n    gl_Position = position(isContext, v, A, B, C, D);\n\n    fragColor =\n        isContext ? vec4(contextColor) :\n        isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));\n}\n&quot;]),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n    gl_FragColor = fragColor;\n}\n&quot;]),o=t(&quot;./constants&quot;).maxDimensionCount,s=t(&quot;../../lib&quot;),l=new Uint8Array(4),c=new Uint8Array(4),u={shape:[256,1],format:&quot;rgba&quot;,type:&quot;uint8&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;};function f(t,e,r,n,i){var a=t._gl;a.enable(a.SCISSOR_TEST),a.scissor(e,r,n,i),t.clear({color:[0,0,0,0],depth:1})}function h(t,e,r,n,i,a){var o=a.key;r.drawCompleted||(!function(t){t.read({x:0,y:0,width:1,height:1,data:l})}(t),r.drawCompleted=!0),function s(l){var c=Math.min(n,i-l*n);0===l&amp;&amp;(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],f(t,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),r.clearOnly||(a.count=2*c,a.offset=2*l*n,e(a),l*n+c&lt;i&amp;&amp;(r.currentRafs[o]=window.requestAnimationFrame((function(){s(l+1)}))),r.drawCompleted=!1)}(0)}function p(t,e){for(var r=new Array(256),n=0;n&lt;256;n++)r[n]=t(n/255).concat(e);return r}function d(t,e){return(t&gt;&gt;&gt;8*e)%256/255}function g(t,e,r){for(var n=new Array(8*e),i=0,a=0;a&lt;e;a++)for(var o=0;o&lt;2;o++)for(var s=0;s&lt;4;s++){var l=4*t+s,c=r[64*a+l];63===l&amp;&amp;0===o&amp;&amp;(c*=-1),n[i++]=c}return n}function m(t){var e=&quot;0&quot;+t;return e.substr(e.length-2)}function v(t){return t&lt;o?&quot;p&quot;+m(t+1)+&quot;_&quot;+m(t+4):&quot;colors&quot;}function y(t,e,r,n,i,a,o,l,c,u,f,h,p){for(var d=[[],[]],g=0;g&lt;64;g++)d[0][g]=g===i?1:0,d[1][g]=g===a?1:0;var m=t.lines.canvasOverdrag,v=t.domain,y=t.canvasWidth,x=t.canvasHeight,b=t.deselectedLines.color;return s.extendFlat({key:f,resolution:[y,x],viewBoxPos:[o+m,l],viewBoxSize:[c,u],i0:i,i1:a,dim0A:d[0].slice(0,16),dim0B:d[0].slice(16,32),dim0C:d[0].slice(32,48),dim0D:d[0].slice(48,64),dim1A:d[1].slice(0,16),dim1B:d[1].slice(16,32),dim1C:d[1].slice(32,48),dim1D:d[1].slice(48,64),drwLayer:h,contextColor:[b[0]/255,b[1]/255,b[2]/255,b[3]&lt;1?b[3]:Math.max(1/255,Math.pow(1/t.lines.color.length,1/3))],scissorX:(n===e?0:o+m)+(t.pad.l-m)+t.layoutWidth*v.x[0],scissorWidth:(n===r?y-o+m:c+.5)+(n===e?o+m:0),scissorY:l+t.pad.b+t.layoutHeight*v.y[0],scissorHeight:u,viewportX:t.pad.l-m+t.layoutWidth*v.x[0],viewportY:t.pad.b+t.layoutHeight*v.y[0],viewportWidth:y,viewportHeight:x},p)}function x(t){var e=Math.max(0,Math.floor(2047*t[0]),0),r=Math.min(2047,Math.ceil(2047*t[1]),2047);return[Math.min(e,r),Math.max(e,r)]}e.exports=function(t,e){var r,n,l,m,b,_=e.context,w=e.pick,T=e.regl,k={currentRafs:{},drawCompleted:!0,clearOnly:!1},M=function(t){for(var e={},r=0;r&lt;=o;r+=4)e[v(r)]=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)});return e}(T),A=T.texture(u),S=[];C(e);var E=T({profile:!1,blend:{enable:_,func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:1,dstAlpha:1},equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},color:[0,0,0,0]},depth:{enable:!_,mask:!0,func:&quot;less&quot;,range:[0,1]},cull:{enable:!0,face:&quot;back&quot;},scissor:{enable:!0,box:{x:T.prop(&quot;scissorX&quot;),y:T.prop(&quot;scissorY&quot;),width:T.prop(&quot;scissorWidth&quot;),height:T.prop(&quot;scissorHeight&quot;)}},viewport:{x:T.prop(&quot;viewportX&quot;),y:T.prop(&quot;viewportY&quot;),width:T.prop(&quot;viewportWidth&quot;),height:T.prop(&quot;viewportHeight&quot;)},dither:!1,vert:i,frag:a,primitive:&quot;lines&quot;,lineWidth:1,attributes:M,uniforms:{resolution:T.prop(&quot;resolution&quot;),viewBoxPos:T.prop(&quot;viewBoxPos&quot;),viewBoxSize:T.prop(&quot;viewBoxSize&quot;),dim0A:T.prop(&quot;dim0A&quot;),dim1A:T.prop(&quot;dim1A&quot;),dim0B:T.prop(&quot;dim0B&quot;),dim1B:T.prop(&quot;dim1B&quot;),dim0C:T.prop(&quot;dim0C&quot;),dim1C:T.prop(&quot;dim1C&quot;),dim0D:T.prop(&quot;dim0D&quot;),dim1D:T.prop(&quot;dim1D&quot;),loA:T.prop(&quot;loA&quot;),hiA:T.prop(&quot;hiA&quot;),loB:T.prop(&quot;loB&quot;),hiB:T.prop(&quot;hiB&quot;),loC:T.prop(&quot;loC&quot;),hiC:T.prop(&quot;hiC&quot;),loD:T.prop(&quot;loD&quot;),hiD:T.prop(&quot;hiD&quot;),palette:A,contextColor:T.prop(&quot;contextColor&quot;),mask:T.prop(&quot;maskTexture&quot;),drwLayer:T.prop(&quot;drwLayer&quot;),maskHeight:T.prop(&quot;maskHeight&quot;)},offset:T.prop(&quot;offset&quot;),count:T.prop(&quot;count&quot;)});function C(t){r=t.model,n=t.viewModel,l=n.dimensions.slice(),m=l[0]?l[0].values.length:0;var e=r.lines,i=w?e.color.map((function(t,r){return r/e.color.length})):e.color,a=function(t,e,r){for(var n,i=new Array(t*(o+4)),a=0,s=0;s&lt;t;s++){for(var l=0;l&lt;o;l++)i[a++]=l&lt;e.length?e[l].paddedUnitValues[s]:.5;i[a++]=d(s,2),i[a++]=d(s,1),i[a++]=d(s,0),i[a++]=(n=r[s],Math.max(1e-6,Math.min(.999999,n)))}return i}(m,l,i);!function(t,e,r){for(var n=0;n&lt;=o;n+=4)t[v(n)](g(n/4,e,r))}(M,m,a),_||w||(A=T.texture(s.extendFlat({data:p(r.unitToColor,255)},u)))}return{render:function(t,e,n){var i,a,o,s=t.length,c=1/0,u=-1/0;for(i=0;i&lt;s;i++)t[i].dim0.canvasX&lt;c&amp;&amp;(c=t[i].dim0.canvasX,a=i),t[i].dim1.canvasX&gt;u&amp;&amp;(u=t[i].dim1.canvasX,o=i);0===s&amp;&amp;f(T,0,0,r.canvasWidth,r.canvasHeight);var p=function(t){var e,r,n,i=[[],[]];for(n=0;n&lt;64;n++){var a=!t&amp;&amp;n&lt;l.length?l[n].brush.filter.getBounds():[-1/0,1/0];i[0][n]=a[0],i[1][n]=a[1]}var o=new Array(16384);for(e=0;e&lt;16384;e++)o[e]=255;if(!t)for(e=0;e&lt;l.length;e++){var s=e%8,c=(e-s)/8,u=Math.pow(2,s),f=l[e].brush.filter.get();if(!(f.length&lt;2)){var h=x(f[0])[1];for(r=1;r&lt;f.length;r++){var p=x(f[r]);for(n=h+1;n&lt;p[0];n++)o[8*n+c]&amp;=~u;h=Math.max(h,p[1])}}}var d={shape:[8,2048],format:&quot;alpha&quot;,type:&quot;uint8&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;,data:o};return b?b(d):b=T.texture(d),{maskTexture:b,maskHeight:2048,loA:i[0].slice(0,16),loB:i[0].slice(16,32),loC:i[0].slice(32,48),loD:i[0].slice(48,64),hiA:i[1].slice(0,16),hiB:i[1].slice(16,32),hiC:i[1].slice(32,48),hiD:i[1].slice(48,64)}}(_);for(i=0;i&lt;s;i++){var d=t[i],g=d.dim0.crossfilterDimensionIndex,v=d.dim1.crossfilterDimensionIndex,M=d.canvasX,A=d.canvasY,C=M+d.panelSizeX;if(e||!S[g]||S[g][0]!==M||S[g][1]!==C){S[g]=[M,C];var L=y(r,a,o,i,g,v,M,A,d.panelSizeX,d.panelSizeY,d.dim0.crossfilterDimensionIndex,_?0:w?2:1,p);k.clearOnly=n;var I=e?r.lines.blockLineCount:m;h(T,E,k,I,m,L)}}},readPixel:function(t,e){return T.read({x:t,y:e,width:1,height:1,data:c}),c},readPixels:function(t,e,r,n){var i=new Uint8Array(4*r*n);return T.read({x:t,y:e,width:r,height:n,data:i}),i},destroy:function(){for(var e in t.style[&quot;pointer-events&quot;]=&quot;none&quot;,A.destroy(),b&amp;&amp;b.destroy(),M)M[e].destroy()},update:C}}},{&quot;../../lib&quot;:778,&quot;./constants&quot;:1153,glslify:439}],1158:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i,a;for(n||(n=1/0),i=0;i&lt;e.length;i++)(a=e[i]).visible&amp;&amp;(n=Math.min(n,a[r].length));for(n===1/0&amp;&amp;(n=0),t._length=n,i=0;i&lt;e.length;i++)(a=e[i]).visible&amp;&amp;(a._length=n);return n}},{}],1159:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;color-rgba&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../lib&quot;),s=o.strRotate,l=o.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../../components/colorscale&quot;),h=t(&quot;../../lib/gup&quot;),p=h.keyFun,d=h.repeat,g=h.unwrap,m=t(&quot;./helpers&quot;),v=t(&quot;./constants&quot;),y=t(&quot;./axisbrush&quot;),x=t(&quot;./lines&quot;);function b(t,e,r){return o.aggNums(t,null,e,r)}function _(t,e){return T(b(Math.min,t,e),b(Math.max,t,e))}function w(t){var e=t.range;return e?T(e[0],e[1]):_(t.values,t._length)}function T(t,e){return!isNaN(t)&amp;&amp;isFinite(t)||(t=0),!isNaN(e)&amp;&amp;isFinite(e)||(e=0),t===e&amp;&amp;(0===t?(t-=1,e+=1):(t*=.9,e*=1.1)),[t,e]}function k(t,e,r,i,a){var o,s,l=w(r);return i?n.scale.ordinal().domain(i.map((o=n.format(r.tickformat),s=a,s?function(t,e){var r=s[e];return null==r?o(t):r}:o))).range(i.map((function(r){var n=(r-l[0])/(l[1]-l[0]);return t-e+n*(2*e-t)}))):n.scale.linear().domain(l).range([t-e,e])}function M(t){if(t.tickvals){var e=w(t);return n.scale.ordinal().domain(t.tickvals).range(t.tickvals.map((function(t){return(t-e[0])/(e[1]-e[0])})))}}function A(t){var e=t.map((function(t){return t[0]})),r=t.map((function(t){var e=i(t[1]);return n.rgb(&quot;rgb(&quot;+e[0]+&quot;,&quot;+e[1]+&quot;,&quot;+e[2]+&quot;)&quot;)})),a=&quot;rgb&quot;.split(&quot;&quot;).map((function(t){return n.scale.linear().clamp(!0).domain(e).range(r.map((i=t,function(t){return t[i]})));var i}));return function(t){return a.map((function(e){return e(t)}))}}function S(t){return t.dimensions.some((function(t){return t.brush.filterSpecified}))}function E(t,e,r){var a=g(e),s=a.trace,l=m.convertTypedArray(a.lineColor),c=s.line,u={color:i(v.deselectedLineColor)},h=f.extractOpts(c),p=h.reversescale?f.flipScale(a.cscale):a.cscale,d=s.domain,y=s.dimensions,x=t.width,b=s.labelangle,_=s.labelside,T=s.labelfont,k=s.tickfont,M=s.rangefont,S=o.extendDeepNoArrays({},c,{color:l.map(n.scale.linear().domain(w({values:l,range:[h.min,h.max],_length:s._length}))),blockLineCount:v.blockLineCount,canvasOverdrag:v.overdrag*v.canvasPixelRatio}),E=Math.floor(x*(d.x[1]-d.x[0])),C=Math.floor(t.height*(d.y[1]-d.y[0])),L=t.margin||{l:80,r:80,t:100,b:80},I=E,P=C;return{key:r,colCount:y.filter(m.isVisible).length,dimensions:y,tickDistance:v.tickDistance,unitToColor:A(p),lines:S,deselectedLines:u,labelAngle:b,labelSide:_,labelFont:T,tickFont:k,rangeFont:M,layoutWidth:x,layoutHeight:t.height,domain:d,translateX:d.x[0]*x,translateY:t.height-d.y[1]*t.height,pad:L,canvasWidth:I*v.canvasPixelRatio+2*S.canvasOverdrag,canvasHeight:P*v.canvasPixelRatio,width:I,height:P,canvasPixelRatio:v.canvasPixelRatio}}function C(t,e,r){var i=r.width,a=r.height,s=r.dimensions,l=r.canvasPixelRatio,c=function(t){return i*t/Math.max(1,r.colCount-1)},u=v.verticalPadding/a,f=function(t,e){return n.scale.linear().range([e,t-e])}(a,v.verticalPadding),h={key:r.key,xScale:c,model:r,inBrushDrag:!1},p={};return h.dimensions=s.filter(m.isVisible).map((function(i,s){var d=function(t,e){return n.scale.linear().domain(w(t)).range([e,1-e])}(i,u),g=p[i.label];p[i.label]=(g||0)+1;var x=i.label+(g?&quot;__&quot;+g:&quot;&quot;),b=i.constraintrange,_=b&amp;&amp;b.length;_&amp;&amp;!Array.isArray(b[0])&amp;&amp;(b=[b]);var T=_?b.map((function(t){return t.map(d)})):[[-1/0,1/0]],A=i.values;A.length&gt;i._length&amp;&amp;(A=A.slice(0,i._length));var E,C=i.tickvals;function L(t,e){return{val:t,text:E[e]}}function I(t,e){return t.val-e.val}if(Array.isArray(C)&amp;&amp;C.length){E=i.ticktext,Array.isArray(E)&amp;&amp;E.length?E.length&gt;C.length?E=E.slice(0,C.length):C.length&gt;E.length&amp;&amp;(C=C.slice(0,E.length)):E=C.map(n.format(i.tickformat));for(var P=1;P&lt;C.length;P++)if(C[P]&lt;C[P-1]){for(var z=C.map(L).sort(I),O=0;O&lt;C.length;O++)C[O]=z[O].val,E[O]=z[O].text;break}}else C=void 0;return A=m.convertTypedArray(A),{key:x,label:i.label,tickFormat:i.tickformat,tickvals:C,ticktext:E,ordinal:m.isOrdinal(i),multiselect:i.multiselect,xIndex:s,crossfilterDimensionIndex:s,visibleIndex:i._index,height:a,values:A,paddedUnitValues:A.map(d),unitTickvals:C&amp;&amp;C.map(d),xScale:c,x:c(s),canvasX:c(s)*l,unitToPaddedPx:f,domainScale:k(a,v.verticalPadding,i,C,E),ordinalScale:M(i),parent:h,model:r,brush:y.makeBrush(t,_,T,(function(){t.linePickActive(!1)}),(function(){var e=h;e.focusLayer&amp;&amp;e.focusLayer.render(e.panels,!0);var r=S(e);!t.contextShown()&amp;&amp;r?(e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!0),t.contextShown(!0)):t.contextShown()&amp;&amp;!r&amp;&amp;(e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!0,!0),t.contextShown(!1))}),(function(r){if(h.focusLayer.render(h.panels,!0),h.pickLayer&amp;&amp;h.pickLayer.render(h.panels,!0),t.linePickActive(!0),e&amp;&amp;e.filterChanged){var n=d.invert,a=r.map((function(t){return t.map(n).sort(o.sorterAsc)})).sort((function(t,e){return t[0]-e[0]}));e.filterChanged(h.key,i._index,a)}}))}})),h}function L(t){t.classed(v.cn.axisExtentText,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).style(&quot;cursor&quot;,&quot;default&quot;)}function I(t,e){var r=&quot;top&quot;===e?1:-1,n=t*Math.PI/180;return{dir:r,dx:Math.sin(n),dy:Math.cos(n),degrees:t}}function P(t,e){for(var r=e.panels||(e.panels=[]),n=t.data(),i=0;i&lt;n.length-1;i++){var a=r[i]||(r[i]={}),o=n[i],s=n[i+1];a.dim0=o,a.dim1=s,a.canvasX=o.canvasX,a.panelSizeX=s.canvasX-o.canvasX,a.panelSizeY=e.model.canvasHeight,a.y=0,a.canvasY=0}}function z(t,e){return a.tickText(t._ax,e,!1).text}function O(t,e){if(t.ordinal)return&quot;&quot;;var r=t.domainScale.domain(),n=r[e?r.length-1:0];return z(t.model.dimensions[t.visibleIndex],n)}e.exports=function(t,e,r,i){var f=t._fullLayout,h=f._toppaper,b=f._glcontainer;!function(t){for(var e=0;e&lt;t.length;e++)for(var r=0;r&lt;t[e].length;r++)for(var n=t[e][r].trace,i=n.dimensions,o=0;o&lt;i.length;o++){var s=i[o].values,l=i[o]._ax;l&amp;&amp;(l.range?l.range=T(l.range[0],l.range[1]):l.range=_(s,n._length),l.dtick||(l.dtick=.01*(Math.abs(l.range[1]-l.range[0])||1)),l.tickformat=i[o].tickformat,a.calcTicks(l),l.cleanRange())}}(e);var w,k,M=(w=!0,k=!1,{linePickActive:function(t){return arguments.length?w=!!t:w},contextShown:function(t){return arguments.length?k=!!t:k}}),A=e.filter((function(t){return g(t).trace.visible})).map(E.bind(0,r)).map(C.bind(0,M,i));b.each((function(t,e){return o.extendFlat(t,A[e])}));var D=b.selectAll(&quot;.gl-canvas&quot;).each((function(t){t.viewModel=A[0],t.model=t.viewModel?t.viewModel.model:null})),R=null;D.filter((function(t){return t.pick})).style(&quot;pointer-events&quot;,&quot;auto&quot;).on(&quot;mousemove&quot;,(function(t){if(M.linePickActive()&amp;&amp;t.lineLayer&amp;&amp;i&amp;&amp;i.hover){var e=n.event,r=this.width,a=this.height,o=n.mouse(this),s=o[0],l=o[1];if(s&lt;0||l&lt;0||s&gt;=r||l&gt;=a)return;var c=t.lineLayer.readPixel(s,a-1-l),u=0!==c[3],f=u?c[2]+256*(c[1]+256*c[0]):null,h={x:s,y:l,clientX:e.clientX,clientY:e.clientY,dataIndex:t.model.key,curveNumber:f};f!==R&amp;&amp;(u?i.hover(h):i.unhover&amp;&amp;i.unhover(h),R=f)}})),D.style(&quot;opacity&quot;,(function(t){return t.pick?0:1})),h.style(&quot;background&quot;,&quot;rgba(255, 255, 255, 0)&quot;);var F=h.selectAll(&quot;.&quot;+v.cn.parcoords).data(A,p);F.exit().remove(),F.enter().append(&quot;g&quot;).classed(v.cn.parcoords,!0).style(&quot;shape-rendering&quot;,&quot;crispEdges&quot;).style(&quot;pointer-events&quot;,&quot;none&quot;),F.attr(&quot;transform&quot;,(function(t){return l(t.model.translateX,t.model.translateY)}));var B=F.selectAll(&quot;.&quot;+v.cn.parcoordsControlView).data(d,p);B.enter().append(&quot;g&quot;).classed(v.cn.parcoordsControlView,!0),B.attr(&quot;transform&quot;,(function(t){return l(t.model.pad.l,t.model.pad.t)}));var N=B.selectAll(&quot;.&quot;+v.cn.yAxis).data((function(t){return t.dimensions}),p);N.enter().append(&quot;g&quot;).classed(v.cn.yAxis,!0),B.each((function(t){P(N,t)})),D.each((function(t){if(t.viewModel){!t.lineLayer||i?t.lineLayer=x(this,t):t.lineLayer.update(t),(t.key||0===t.key)&amp;&amp;(t.viewModel[t.key]=t.lineLayer);var e=!t.context||i;t.lineLayer.render(t.viewModel.panels,e)}})),N.attr(&quot;transform&quot;,(function(t){return l(t.xScale(t.xIndex),0)})),N.call(n.behavior.drag().origin((function(t){return t})).on(&quot;drag&quot;,(function(t){var e=t.parent;M.linePickActive(!1),t.x=Math.max(-v.overdrag,Math.min(t.model.width+v.overdrag,n.event.x)),t.canvasX=t.x*t.model.canvasPixelRatio,N.sort((function(t,e){return t.x-e.x})).each((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e.xIndex),e.canvasX=e.x*e.model.canvasPixelRatio})),P(N,e),N.filter((function(e){return 0!==Math.abs(t.xIndex-e.xIndex)})).attr(&quot;transform&quot;,(function(t){return l(t.xScale(t.xIndex),0)})),n.select(this).attr(&quot;transform&quot;,l(t.x,0)),N.each((function(r,n,i){i===t.parent.key&amp;&amp;(e.dimensions[n]=r)})),e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!1,!S(e)),e.focusLayer.render&amp;&amp;e.focusLayer.render(e.panels)})).on(&quot;dragend&quot;,(function(t){var e=t.parent;t.x=t.xScale(t.xIndex),t.canvasX=t.x*t.model.canvasPixelRatio,P(N,e),n.select(this).attr(&quot;transform&quot;,(function(t){return l(t.x,0)})),e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!1,!S(e)),e.focusLayer&amp;&amp;e.focusLayer.render(e.panels),e.pickLayer&amp;&amp;e.pickLayer.render(e.panels,!0),M.linePickActive(!0),i&amp;&amp;i.axesMoved&amp;&amp;i.axesMoved(e.key,e.dimensions.map((function(t){return t.crossfilterDimensionIndex})))}))),N.exit().remove();var j=N.selectAll(&quot;.&quot;+v.cn.axisOverlays).data(d,p);j.enter().append(&quot;g&quot;).classed(v.cn.axisOverlays,!0),j.selectAll(&quot;.&quot;+v.cn.axis).remove();var U=j.selectAll(&quot;.&quot;+v.cn.axis).data(d,p);U.enter().append(&quot;g&quot;).classed(v.cn.axis,!0),U.each((function(t){var e=t.model.height/t.model.tickDistance,r=t.domainScale,i=r.domain();n.select(this).call(n.svg.axis().orient(&quot;left&quot;).tickSize(4).outerTickSize(2).ticks(e,t.tickFormat).tickValues(t.ordinal?i:null).tickFormat((function(e){return m.isOrdinal(t)?e:z(t.model.dimensions[t.visibleIndex],e)})).scale(r)),u.font(U.selectAll(&quot;text&quot;),t.model.tickFont)})),U.selectAll(&quot;.domain, .tick&gt;line&quot;).attr(&quot;fill&quot;,&quot;none&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-opacity&quot;,.25).attr(&quot;stroke-width&quot;,&quot;1px&quot;),U.selectAll(&quot;text&quot;).style(&quot;text-shadow&quot;,&quot;1px 1px 1px #fff, -1px -1px 1px #fff, 1px -1px 1px #fff, -1px 1px 1px #fff&quot;).style(&quot;cursor&quot;,&quot;default&quot;);var V=j.selectAll(&quot;.&quot;+v.cn.axisHeading).data(d,p);V.enter().append(&quot;g&quot;).classed(v.cn.axisHeading,!0);var q=V.selectAll(&quot;.&quot;+v.cn.axisTitle).data(d,p);q.enter().append(&quot;text&quot;).classed(v.cn.axisTitle,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).style(&quot;cursor&quot;,&quot;ew-resize&quot;).style(&quot;pointer-events&quot;,&quot;auto&quot;),q.text((function(t){return t.label})).each((function(e){var r=n.select(this);u.font(r,e.model.labelFont),c.convertToTspans(r,t)})).attr(&quot;transform&quot;,(function(t){var e=I(t.model.labelAngle,t.model.labelSide),r=v.axisTitleOffset;return(e.dir&gt;0?&quot;&quot;:l(0,2*r+t.model.height))+s(e.degrees)+l(-r*e.dx,-r*e.dy)})).attr(&quot;text-anchor&quot;,(function(t){var e=I(t.model.labelAngle,t.model.labelSide);return 2*Math.abs(e.dx)&gt;Math.abs(e.dy)?e.dir*e.dx&lt;0?&quot;start&quot;:&quot;end&quot;:&quot;middle&quot;}));var H=j.selectAll(&quot;.&quot;+v.cn.axisExtent).data(d,p);H.enter().append(&quot;g&quot;).classed(v.cn.axisExtent,!0);var G=H.selectAll(&quot;.&quot;+v.cn.axisExtentTop).data(d,p);G.enter().append(&quot;g&quot;).classed(v.cn.axisExtentTop,!0),G.attr(&quot;transform&quot;,l(0,-v.axisExtentOffset));var Y=G.selectAll(&quot;.&quot;+v.cn.axisExtentTopText).data(d,p);Y.enter().append(&quot;text&quot;).classed(v.cn.axisExtentTopText,!0).call(L),Y.text((function(t){return O(t,!0)})).each((function(t){u.font(n.select(this),t.model.rangeFont)}));var W=H.selectAll(&quot;.&quot;+v.cn.axisExtentBottom).data(d,p);W.enter().append(&quot;g&quot;).classed(v.cn.axisExtentBottom,!0),W.attr(&quot;transform&quot;,(function(t){return l(0,t.model.height+v.axisExtentOffset)}));var X=W.selectAll(&quot;.&quot;+v.cn.axisExtentBottomText).data(d,p);X.enter().append(&quot;text&quot;).classed(v.cn.axisExtentBottomText,!0).attr(&quot;dy&quot;,&quot;0.75em&quot;).call(L),X.text((function(t){return O(t,!1)})).each((function(t){u.font(n.select(this),t.model.rangeFont)})),y.ensureAxisBrush(j)}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;./axisbrush&quot;:1150,&quot;./constants&quot;:1153,&quot;./helpers&quot;:1155,&quot;./lines&quot;:1157,&quot;color-rgba&quot;:127,d3:169}],1160:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./parcoords&quot;),i=t(&quot;../../lib/prepare_regl&quot;),a=t(&quot;./helpers&quot;).isVisible;function o(t,e,r){var n=e.indexOf(r),i=t.indexOf(n);return-1===i&amp;&amp;(i+=e.length),i}e.exports=function(t,e){var r=t._fullLayout;if(i(t)){var s={},l={},c={},u={},f=r._size;e.forEach((function(e,r){var n=e[0].trace;c[r]=n.index;var i=u[r]=n._fullInput.index;s[r]=t.data[i].dimensions,l[r]=t.data[i].dimensions.slice()}));n(t,e,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{filterChanged:function(e,n,i){var a=l[e][n],o=i.map((function(t){return t.slice()})),s=&quot;dimensions[&quot;+n+&quot;].constraintrange&quot;,f=r._tracePreGUI[t._fullData[c[e]]._fullInput.uid];if(void 0===f[s]){var h=a.constraintrange;f[s]=h||null}var p=t._fullData[c[e]].dimensions[n];o.length?(1===o.length&amp;&amp;(o=o[0]),a.constraintrange=o,p.constraintrange=o.slice(),o=[o]):(delete a.constraintrange,delete p.constraintrange,o=null);var d={};d[s]=o,t.emit(&quot;plotly_restyle&quot;,[d,[u[e]]])},hover:function(e){t.emit(&quot;plotly_hover&quot;,e)},unhover:function(e){t.emit(&quot;plotly_unhover&quot;,e)},axesMoved:function(e,r){var n=function(t,e){return function(r,n){return o(t,e,r)-o(t,e,n)}}(r,l[e].filter(a));s[e].sort(n),l[e].filter((function(t){return!a(t)})).sort((function(t){return l[e].indexOf(t)})).forEach((function(t){s[e].splice(s[e].indexOf(t),1),s[e].splice(l[e].indexOf(t),0,t)})),t.emit(&quot;plotly_restyle&quot;,[{dimensions:[s[e]]},[u[e]]])}})}}},{&quot;../../lib/prepare_regl&quot;:791,&quot;./helpers&quot;:1155,&quot;./parcoords&quot;:1159}],1161:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/domain&quot;).attributes,a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../components/color/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,c=t(&quot;../../lib/extend&quot;).extendFlat,u=a({editType:&quot;plot&quot;,arrayOk:!0,colorEditType:&quot;plot&quot;});e.exports={labels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},label0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},dlabel:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},marker:{colors:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:o.defaultLine,arrayOk:!0,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,arrayOk:!0,editType:&quot;style&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},text:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},scalegroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;],extras:[&quot;none&quot;],editType:&quot;calc&quot;},hoverinfo:c({},n.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;name&quot;]}),hovertemplate:s({},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;text&quot;]}),texttemplate:l({editType:&quot;plot&quot;},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;text&quot;]}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;auto&quot;,&quot;none&quot;],dflt:&quot;auto&quot;,arrayOk:!0,editType:&quot;plot&quot;},textfont:c({},u,{}),insidetextorientation:{valType:&quot;enumerated&quot;,values:[&quot;horizontal&quot;,&quot;radial&quot;,&quot;tangential&quot;,&quot;auto&quot;],dflt:&quot;auto&quot;,editType:&quot;plot&quot;},insidetextfont:c({},u,{}),outsidetextfont:c({},u,{}),automargin:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},font:c({},u,{}),position:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle center&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},domain:i({name:&quot;pie&quot;,trace:!0,editType:&quot;calc&quot;}),hole:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;},sort:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;],dflt:&quot;counterclockwise&quot;,editType:&quot;calc&quot;},rotation:{valType:&quot;number&quot;,min:-360,max:360,dflt:0,editType:&quot;calc&quot;},pull:{valType:&quot;number&quot;,min:0,max:1,dflt:0,arrayOk:!0,editType:&quot;calc&quot;},_deprecated:{title:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},titlefont:c({},u,{}),titleposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle center&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],editType:&quot;calc&quot;}}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906}],1162:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;pie&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1163:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../components/color&quot;),o={};function s(t){return function(e,r){return!!e&amp;&amp;(!!(e=i(e)).isValid()&amp;&amp;(e=a.addOpacity(e,e.getAlpha()),t[r]||(t[r]=e),e))}}function l(t,e){var r,n=JSON.stringify(t),a=e[n];if(!a){for(a=t.slice(),r=0;r&lt;t.length;r++)a.push(i(t[r]).lighten(20).toHexString());for(r=0;r&lt;t.length;r++)a.push(i(t[r]).darken(20).toHexString());e[n]=a}return a}e.exports={calc:function(t,e){var r,i,a=[],o=t._fullLayout,l=o.hiddenlabels||[],c=e.labels,u=e.marker.colors||[],f=e.values,h=e._length,p=e._hasValues&amp;&amp;h;if(e.dlabel)for(c=new Array(h),r=0;r&lt;h;r++)c[r]=String(e.label0+r*e.dlabel);var d={},g=s(o[&quot;_&quot;+e.type+&quot;colormap&quot;]),m=0,v=!1;for(r=0;r&lt;h;r++){var y,x,b;if(p){if(y=f[r],!n(y))continue;if((y=+y)&lt;0)continue}else y=1;void 0!==(x=c[r])&amp;&amp;&quot;&quot;!==x||(x=r);var _=d[x=String(x)];void 0===_?(d[x]=a.length,(b=-1!==l.indexOf(x))||(m+=y),a.push({v:y,label:x,color:g(u[r],x),i:r,pts:[r],hidden:b})):(v=!0,(i=a[_]).v+=y,i.pts.push(r),i.hidden||(m+=y),!1===i.color&amp;&amp;u[r]&amp;&amp;(i.color=g(u[r],x)))}return(&quot;funnelarea&quot;===e.type?v:e.sort)&amp;&amp;a.sort((function(t,e){return e.v-t.v})),a[0]&amp;&amp;(a[0].vTotal=m),a},crossTraceCalc:function(t,e){var r=(e||{}).type;r||(r=&quot;pie&quot;);var n=t._fullLayout,i=t.calcdata,a=n[r+&quot;colorway&quot;],s=n[&quot;_&quot;+r+&quot;colormap&quot;];n[&quot;extend&quot;+r+&quot;colors&quot;]&amp;&amp;(a=l(a,o));for(var c=0,u=0;u&lt;i.length;u++){var f=i[u];if(f[0].trace.type===r)for(var h=0;h&lt;f.length;h++){var p=f[h];!1===p.color&amp;&amp;(s[p.label]?p.color=s[p.label]:(s[p.label]=p.color=a[c%a.length],c++))}}},makePullColorFn:s,generateExtendedColors:l}},{&quot;../../components/color&quot;:643,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],1164:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText;function l(t,e){var r=Array.isArray(t),a=i.isArrayOrTypedArray(e),o=Math.min(r?t.length:1/0,a?e.length:1/0);if(isFinite(o)||(o=0),o&amp;&amp;a){for(var s,l=0;l&lt;o;l++){var c=e[l];if(n(c)&amp;&amp;c&gt;0){s=!0;break}}s||(o=0)}return{hasLabels:r,hasValues:a,len:o}}e.exports={handleLabelsAndValues:l,supplyDefaults:function(t,e,r,n){function c(r,n){return i.coerce(t,e,a,r,n)}var u=l(c(&quot;labels&quot;),c(&quot;values&quot;)),f=u.len;if(e._hasLabels=u.hasLabels,e._hasValues=u.hasValues,!e._hasLabels&amp;&amp;e._hasValues&amp;&amp;(c(&quot;label0&quot;),c(&quot;dlabel&quot;)),f){e._length=f,c(&quot;marker.line.width&quot;)&amp;&amp;c(&quot;marker.line.color&quot;),c(&quot;marker.colors&quot;),c(&quot;scalegroup&quot;);var h,p=c(&quot;text&quot;),d=c(&quot;texttemplate&quot;);if(d||(h=c(&quot;textinfo&quot;,Array.isArray(p)?&quot;text+percent&quot;:&quot;percent&quot;)),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),d||h&amp;&amp;&quot;none&quot;!==h){var g=c(&quot;textposition&quot;);s(t,e,n,c,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(g)||&quot;auto&quot;===g||&quot;outside&quot;===g)&amp;&amp;c(&quot;automargin&quot;),(&quot;inside&quot;===g||&quot;auto&quot;===g||Array.isArray(g))&amp;&amp;c(&quot;insidetextorientation&quot;)}o(e,n,c);var m=c(&quot;hole&quot;);if(c(&quot;title.text&quot;)){var v=c(&quot;title.position&quot;,m?&quot;middle center&quot;:&quot;top center&quot;);m||&quot;middle center&quot;!==v||(e.title.position=&quot;top center&quot;),i.coerceFont(c,&quot;title.font&quot;,n.font)}c(&quot;sort&quot;),c(&quot;direction&quot;),c(&quot;rotation&quot;),c(&quot;pull&quot;)}else e.visible=!1}}},{&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/defaults&quot;:925,&quot;./attributes&quot;:1161,&quot;fast-isnumeric&quot;:241}],1165:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx/helpers&quot;).appendArrayMultiPointValues;e.exports=function(t,e){var r={curveNumber:e.index,pointNumbers:t.pts,data:e._input,fullData:e,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,v:t.v};return 1===t.pts.length&amp;&amp;(r.pointNumber=r.i=t.pts[0]),n(r,e,t.pts),&quot;funnelarea&quot;===e.type&amp;&amp;(delete r.v,delete r.i),r}},{&quot;../../components/fx/helpers&quot;:679}],1166:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);function i(t){return-1!==t.indexOf(&quot;e&quot;)?t.replace(/[.]?0+e/,&quot;e&quot;):-1!==t.indexOf(&quot;.&quot;)?t.replace(/[.]?0+$/,&quot;&quot;):t}r.formatPiePercent=function(t,e){var r=i((100*t).toPrecision(3));return n.numSeparate(r,e)+&quot;%&quot;},r.formatPieValue=function(t,e){var r=i(t.toPrecision(10));return n.numSeparate(r,e)},r.getFirstFilled=function(t,e){if(Array.isArray(t))for(var r=0;r&lt;e.length;r++){var n=t[e[r]];if(n||0===n||&quot;&quot;===n)return n}},r.castOption=function(t,e){return Array.isArray(t)?r.getFirstFilled(t,e):t||void 0},r.getRotationAngle=function(t){return(&quot;auto&quot;===t?0:t)*Math.PI/180}},{&quot;../../lib&quot;:778}],1167:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),styleOne:t(&quot;./style_one&quot;),moduleType:&quot;trace&quot;,name:&quot;pie&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;pie-like&quot;,&quot;pie&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;./attributes&quot;:1161,&quot;./base_plot&quot;:1162,&quot;./calc&quot;:1163,&quot;./defaults&quot;:1164,&quot;./layout_attributes&quot;:1168,&quot;./layout_defaults&quot;:1169,&quot;./plot&quot;:1170,&quot;./style&quot;:1171,&quot;./style_one&quot;:1172}],1168:[function(t,e,r){&quot;use strict&quot;;e.exports={hiddenlabels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},piecolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendpiecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1169:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;hiddenlabels&quot;),r(&quot;piecolorway&quot;,e.colorway),r(&quot;extendpiecolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1168}],1170:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib&quot;),c=l.strScale,u=l.strTranslate,f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../bar/uniform_text&quot;),p=h.recordMinTextSize,d=h.clearMinTextSize,g=t(&quot;../bar/constants&quot;).TEXTPAD,m=t(&quot;./helpers&quot;),v=t(&quot;./event_data&quot;),y=t(&quot;../../lib&quot;).isValidTextValue;function x(t,e,r){var i=r[0],o=i.trace,s=i.cx,c=i.cy;&quot;_hasHoverLabel&quot;in o||(o._hasHoverLabel=!1),&quot;_hasHoverEvent&quot;in o||(o._hasHoverEvent=!1),t.on(&quot;mouseover&quot;,(function(t){var r=e._fullLayout,u=e._fullData[o.index];if(!e._dragging&amp;&amp;!1!==r.hovermode){var f=u.hoverinfo;if(Array.isArray(f)&amp;&amp;(f=a.castHoverinfo({hoverinfo:[m.castOption(f,t.pts)],_module:o._module},r,0)),&quot;all&quot;===f&amp;&amp;(f=&quot;label+text+value+percent+name&quot;),u.hovertemplate||&quot;none&quot;!==f&amp;&amp;&quot;skip&quot;!==f&amp;&amp;f){var h=t.rInscribed||0,p=s+t.pxmid[0]*(1-h),d=c+t.pxmid[1]*(1-h),g=r.separators,y=[];if(f&amp;&amp;-1!==f.indexOf(&quot;label&quot;)&amp;&amp;y.push(t.label),t.text=m.castOption(u.hovertext||u.text,t.pts),f&amp;&amp;-1!==f.indexOf(&quot;text&quot;)){var x=t.text;l.isValidTextValue(x)&amp;&amp;y.push(x)}t.value=t.v,t.valueLabel=m.formatPieValue(t.v,g),f&amp;&amp;-1!==f.indexOf(&quot;value&quot;)&amp;&amp;y.push(t.valueLabel),t.percent=t.v/i.vTotal,t.percentLabel=m.formatPiePercent(t.percent,g),f&amp;&amp;-1!==f.indexOf(&quot;percent&quot;)&amp;&amp;y.push(t.percentLabel);var b=u.hoverlabel,_=b.font;a.loneHover({trace:o,x0:p-h*i.r,x1:p+h*i.r,y:d,text:y.join(&quot;&lt;br&gt;&quot;),name:u.hovertemplate||-1!==f.indexOf(&quot;name&quot;)?u.name:void 0,idealAlign:t.pxmid[0]&lt;0?&quot;left&quot;:&quot;right&quot;,color:m.castOption(b.bgcolor,t.pts)||t.color,borderColor:m.castOption(b.bordercolor,t.pts),fontFamily:m.castOption(_.family,t.pts),fontSize:m.castOption(_.size,t.pts),fontColor:m.castOption(_.color,t.pts),nameLength:m.castOption(b.namelength,t.pts),textAlign:m.castOption(b.align,t.pts),hovertemplate:m.castOption(u.hovertemplate,t.pts),hovertemplateLabels:t,eventData:[v(t,u)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:e}),o._hasHoverLabel=!0}o._hasHoverEvent=!0,e.emit(&quot;plotly_hover&quot;,{points:[v(t,u)],event:n.event})}})),t.on(&quot;mouseout&quot;,(function(t){var r=e._fullLayout,i=e._fullData[o.index],s=n.select(this).datum();o._hasHoverEvent&amp;&amp;(t.originalEvent=n.event,e.emit(&quot;plotly_unhover&quot;,{points:[v(s,i)],event:n.event}),o._hasHoverEvent=!1),o._hasHoverLabel&amp;&amp;(a.loneUnhover(r._hoverlayer.node()),o._hasHoverLabel=!1)})),t.on(&quot;click&quot;,(function(t){var r=e._fullLayout,i=e._fullData[o.index];e._dragging||!1===r.hovermode||(e._hoverdata=[v(t,i)],a.click(e,n.event))}))}function b(t,e,r){var n=m.castOption(t.insidetextfont.color,e.pts);!n&amp;&amp;t._input.textfont&amp;&amp;(n=m.castOption(t._input.textfont.color,e.pts));var i=m.castOption(t.insidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,a=m.castOption(t.insidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size;return{color:n||o.contrast(e.color),family:i,size:a}}function _(t,e){for(var r,n,i=0;i&lt;t.length;i++)if((n=(r=t[i][0]).trace).title.text){var a=n.title.text;n._meta&amp;&amp;(a=l.templateString(a,n._meta));var o=s.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).text(a).call(s.font,n.title.font).call(f.convertToTspans,e),c=s.bBox(o.node(),!0);r.titleBox={width:c.width,height:c.height},o.remove()}}function w(t,e,r){var n=r.r||e.rpx1,i=e.rInscribed;if(e.startangle===e.stopangle)return{rCenter:1-i,scale:0,rotate:0,textPosAngle:0};var a,o=e.ring,s=1===o&amp;&amp;Math.abs(e.startangle-e.stopangle)===2*Math.PI,l=e.halfangle,c=e.midangle,u=r.trace.insidetextorientation,f=&quot;horizontal&quot;===u,h=&quot;tangential&quot;===u,p=&quot;radial&quot;===u,d=&quot;auto&quot;===u,g=[];if(!d){var m,v=function(r,i){if(function(t,e){var r=t.startangle,n=t.stopangle;return r&gt;e&amp;&amp;e&gt;n||r&lt;e&amp;&amp;e&lt;n}(e,r)){var s=Math.abs(r-e.startangle),l=Math.abs(r-e.stopangle),c=s&lt;l?s:l;(a=&quot;tan&quot;===i?k(t,n,o,c,0):T(t,n,o,c,Math.PI/2)).textPosAngle=r,g.push(a)}};if(f||h){for(m=4;m&gt;=-4;m-=2)v(Math.PI*m,&quot;tan&quot;);for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+1),&quot;tan&quot;)}if(f||p){for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+1.5),&quot;rad&quot;);for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+.5),&quot;rad&quot;)}}if(s||d||f){var y=Math.sqrt(t.width*t.width+t.height*t.height);if((a={scale:i*n*2/y,rCenter:1-i,rotate:0}).textPosAngle=(e.startangle+e.stopangle)/2,a.scale&gt;=1)return a;g.push(a)}(d||p)&amp;&amp;((a=T(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,g.push(a)),(d||h)&amp;&amp;((a=k(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,g.push(a));for(var x=0,b=0,_=0;_&lt;g.length;_++){var w=g[_].scale;if(b&lt;w&amp;&amp;(b=w,x=_),!d&amp;&amp;b&gt;=1)break}return g[x]}function T(t,e,r,n,i){e=Math.max(0,e-2*g);var a=t.width/t.height,o=S(a,n,e,r);return{scale:2*o/t.height,rCenter:M(a,o/e),rotate:A(i)}}function k(t,e,r,n,i){e=Math.max(0,e-2*g);var a=t.height/t.width,o=S(a,n,e,r);return{scale:2*o/t.width,rCenter:M(a,o/e),rotate:A(i+Math.PI/2)}}function M(t,e){return Math.cos(e)-t*e}function A(t){return(180/Math.PI*t+720)%180-90}function S(t,e,r,n){var i=t+1/(2*Math.tan(e));return r*Math.min(1/(Math.sqrt(i*i+.5)+i),n/(Math.sqrt(t*t+n/2)+t))}function E(t,e){return t.v!==e.vTotal||e.trace.hole?Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2):1}function C(t,e){var r=e.pxmid[0],n=e.pxmid[1],i=t.width/2,a=t.height/2;return r&lt;0&amp;&amp;(i*=-1),n&lt;0&amp;&amp;(a*=-1),{scale:1,rCenter:1,rotate:0,x:i+Math.abs(a)*(i&gt;0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function L(t,e){var r,n,i,a=t.trace,o={x:t.cx,y:t.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=P(a),-1!==a.title.position.indexOf(&quot;top&quot;)?(o.y-=(1+i)*t.r,s.ty-=t.titleBox.height):-1!==a.title.position.indexOf(&quot;bottom&quot;)&amp;&amp;(o.y+=(1+i)*t.r);var l,c,u=(l=t.r,c=t.trace.aspectratio,l/(void 0===c?1:c)),f=e.w*(a.domain.x[1]-a.domain.x[0])/2;return-1!==a.title.position.indexOf(&quot;left&quot;)?(f+=u,o.x-=(1+i)*u,s.tx+=t.titleBox.width/2):-1!==a.title.position.indexOf(&quot;center&quot;)?f*=2:-1!==a.title.position.indexOf(&quot;right&quot;)&amp;&amp;(f+=u,o.x+=(1+i)*u,s.tx-=t.titleBox.width/2),r=f/t.titleBox.width,n=I(t,e)/t.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function I(t,e){var r=t.trace,n=e.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(t.titleBox.height,n/2)}function P(t){var e,r=t.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,e=0;e&lt;t.pull.length;e++)t.pull[e]&gt;r&amp;&amp;(r=t.pull[e]);return r}function z(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i=t[n][0],a=i.trace,o=a.domain,s=e.w*(o.x[1]-o.x[0]),l=e.h*(o.y[1]-o.y[0]);a.title.text&amp;&amp;&quot;middle center&quot;!==a.title.position&amp;&amp;(l-=I(i,e));var c=s/2,u=l/2;&quot;funnelarea&quot;!==a.type||a.scalegroup||(u/=a.aspectratio),i.r=Math.min(c,u)/(1+P(a)),i.cx=e.l+e.w*(a.domain.x[1]+a.domain.x[0])/2,i.cy=e.t+e.h*(1-a.domain.y[0])-l/2,a.title.text&amp;&amp;-1!==a.title.position.indexOf(&quot;bottom&quot;)&amp;&amp;(i.cy-=I(i,e)),a.scalegroup&amp;&amp;-1===r.indexOf(a.scalegroup)&amp;&amp;r.push(a.scalegroup)}!function(t,e){for(var r,n,i,a=0;a&lt;e.length;a++){var o=1/0,s=e[a];for(n=0;n&lt;t.length;n++)if(r=t[n][0],(i=r.trace).scalegroup===s){var l;if(&quot;pie&quot;===i.type)l=r.r*r.r;else if(&quot;funnelarea&quot;===i.type){var c,u;i.aspectratio&gt;1?(c=r.r,u=c/i.aspectratio):(u=r.r,c=u*i.aspectratio),c*=(1+i.baseratio)/2,l=c*u}o=Math.min(o,l/r.vTotal)}for(n=0;n&lt;t.length;n++)if(r=t[n][0],(i=r.trace).scalegroup===s){var f=o*r.vTotal;&quot;funnelarea&quot;===i.type&amp;&amp;(f/=(1+i.baseratio)/2,f/=i.aspectratio),r.r=Math.sqrt(f)}}}(t,r)}function O(t,e){return[t*Math.sin(e),-t*Math.cos(e)]}function D(t,e,r){var n=t._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&amp;&amp;o&amp;&amp;&quot;none&quot;!==o){var s,c=o.split(&quot;+&quot;),u=function(t){return-1!==c.indexOf(t)},f=u(&quot;label&quot;),h=u(&quot;text&quot;),p=u(&quot;value&quot;),d=u(&quot;percent&quot;),g=n.separators;if(s=f?[e.label]:[],h){var v=m.getFirstFilled(i.text,e.pts);y(v)&amp;&amp;s.push(v)}p&amp;&amp;s.push(m.formatPieValue(e.v,g)),d&amp;&amp;s.push(m.formatPiePercent(e.v/r.vTotal,g)),e.text=s.join(&quot;&lt;br&gt;&quot;)}if(a){var x=l.castOption(i,e.i,&quot;texttemplate&quot;);if(x){var b=function(t){return{label:t.label,value:t.v,valueLabel:m.formatPieValue(t.v,n.separators),percent:t.v/r.vTotal,percentLabel:m.formatPiePercent(t.v/r.vTotal,n.separators),color:t.color,text:t.text,customdata:l.castOption(i,t.i,&quot;customdata&quot;)}}(e),_=m.getFirstFilled(i.text,e.pts);(y(_)||&quot;&quot;===_)&amp;&amp;(b.text=_),e.text=l.texttemplateString(x,b,t._fullLayout._d3locale,b,i._meta||{})}else e.text=&quot;&quot;}}function R(t,e){var r=t.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(e.left+e.right)/2,o=(e.top+e.bottom)/2;t.textX=a*n-o*i,t.textY=a*i+o*n,t.noCenter=!0}e.exports={plot:function(t,e){var r=t._fullLayout,a=r._size;d(&quot;pie&quot;,r),_(e,t),z(e,a);var h=l.makeTraceGroups(r._pielayer,e,&quot;trace&quot;).each((function(e){var h=n.select(this),d=e[0],g=d.trace;!function(t){var e,r,n,i=t[0],a=i.r,o=i.trace,s=m.getRotationAngle(o.rotation),l=2*Math.PI/i.vTotal,c=&quot;px0&quot;,u=&quot;px1&quot;;if(&quot;counterclockwise&quot;===o.direction){for(e=0;e&lt;t.length&amp;&amp;t[e].hidden;e++);if(e===t.length)return;s+=l*t[e].v,l*=-1,c=&quot;px1&quot;,u=&quot;px0&quot;}for(n=O(a,s),e=0;e&lt;t.length;e++)(r=t[e]).hidden||(r[c]=n,r.startangle=s,s+=l*r.v/2,r.pxmid=O(a,s),r.midangle=s,s+=l*r.v/2,n=O(a,s),r.stopangle=s,r[u]=n,r.largeArc=r.v&gt;i.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/i.vTotal,.5),r.ring=1-o.hole,r.rInscribed=E(r,i))}(e),h.attr(&quot;stroke-linejoin&quot;,&quot;round&quot;),h.each((function(){var v=n.select(this).selectAll(&quot;g.slice&quot;).data(e);v.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),v.exit().remove();var y=[[[],[]],[[],[]]],_=!1;v.each((function(i,a){if(i.hidden)n.select(this).selectAll(&quot;path,g&quot;).remove();else{i.pointNumber=i.i,i.curveNumber=g.index,y[i.pxmid[1]&lt;0?0:1][i.pxmid[0]&lt;0?0:1].push(i);var o=d.cx,c=d.cy,u=n.select(this),h=u.selectAll(&quot;path.surface&quot;).data([i]);if(h.enter().append(&quot;path&quot;).classed(&quot;surface&quot;,!0).style({&quot;pointer-events&quot;:&quot;all&quot;}),u.call(x,t,e),g.pull){var v=+m.castOption(g.pull,i.pts)||0;v&gt;0&amp;&amp;(o+=v*i.pxmid[0],c+=v*i.pxmid[1])}i.cxFinal=o,i.cyFinal=c;var T=g.hole;if(i.v===d.vTotal){var k=&quot;M&quot;+(o+i.px0[0])+&quot;,&quot;+(c+i.px0[1])+L(i.px0,i.pxmid,!0,1)+L(i.pxmid,i.px0,!0,1)+&quot;Z&quot;;T?h.attr(&quot;d&quot;,&quot;M&quot;+(o+T*i.px0[0])+&quot;,&quot;+(c+T*i.px0[1])+L(i.px0,i.pxmid,!1,T)+L(i.pxmid,i.px0,!1,T)+&quot;Z&quot;+k):h.attr(&quot;d&quot;,k)}else{var M=L(i.px0,i.px1,!0,1);if(T){var A=1-T;h.attr(&quot;d&quot;,&quot;M&quot;+(o+T*i.px1[0])+&quot;,&quot;+(c+T*i.px1[1])+L(i.px1,i.px0,!1,T)+&quot;l&quot;+A*i.px0[0]+&quot;,&quot;+A*i.px0[1]+M+&quot;Z&quot;)}else h.attr(&quot;d&quot;,&quot;M&quot;+o+&quot;,&quot;+c+&quot;l&quot;+i.px0[0]+&quot;,&quot;+i.px0[1]+M+&quot;Z&quot;)}D(t,i,d);var S=m.castOption(g.textposition,i.pts),E=u.selectAll(&quot;g.slicetext&quot;).data(i.text&amp;&amp;&quot;none&quot;!==S?[0]:[]);E.enter().append(&quot;g&quot;).classed(&quot;slicetext&quot;,!0),E.exit().remove(),E.each((function(){var u=l.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),h=l.ensureUniformFontSize(t,&quot;outside&quot;===S?function(t,e,r){var n=m.castOption(t.outsidetextfont.color,e.pts)||m.castOption(t.textfont.color,e.pts)||r.color,i=m.castOption(t.outsidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,a=m.castOption(t.outsidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size;return{color:n,family:i,size:a}}(g,i,r.font):b(g,i,r.font));u.text(i.text).attr({class:&quot;slicetext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(s.font,h).call(f.convertToTspans,t);var v,y=s.bBox(u.node());if(&quot;outside&quot;===S)v=C(y,i);else if(v=w(y,i,d),&quot;auto&quot;===S&amp;&amp;v.scale&lt;1){var x=l.ensureUniformFontSize(t,g.outsidetextfont);u.call(s.font,x),v=C(y=s.bBox(u.node()),i)}var T=v.textPosAngle,k=void 0===T?i.pxmid:O(d.r,T);if(v.targetX=o+k[0]*v.rCenter+(v.x||0),v.targetY=c+k[1]*v.rCenter+(v.y||0),R(v,y),v.outside){var M=v.targetY;i.yLabelMin=M-y.height/2,i.yLabelMid=M,i.yLabelMax=M+y.height/2,i.labelExtraX=0,i.labelExtraY=0,_=!0}v.fontSize=h.size,p(g.type,v,r),e[a].transform=v,u.attr(&quot;transform&quot;,l.getTextTransform(v))}))}function L(t,e,r,n){var a=n*(e[0]-t[0]),o=n*(e[1]-t[1]);return&quot;a&quot;+n*d.r+&quot;,&quot;+n*d.r+&quot; 0 &quot;+i.largeArc+(r?&quot; 1 &quot;:&quot; 0 &quot;)+a+&quot;,&quot;+o}}));var T=n.select(this).selectAll(&quot;g.titletext&quot;).data(g.title.text?[0]:[]);if(T.enter().append(&quot;g&quot;).classed(&quot;titletext&quot;,!0),T.exit().remove(),T.each((function(){var e,r=l.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),i=g.title.text;g._meta&amp;&amp;(i=l.templateString(i,g._meta)),r.text(i).attr({class:&quot;titletext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(s.font,g.title.font).call(f.convertToTspans,t),e=&quot;middle center&quot;===g.title.position?function(t){var e=Math.sqrt(t.titleBox.width*t.titleBox.width+t.titleBox.height*t.titleBox.height);return{x:t.cx,y:t.cy,scale:t.trace.hole*t.r*2/e,tx:0,ty:-t.titleBox.height/2+t.trace.title.font.size}}(d):L(d,a),r.attr(&quot;transform&quot;,u(e.x,e.y)+c(Math.min(1,e.scale))+u(e.tx,e.ty))})),_&amp;&amp;function(t,e){var r,n,i,a,o,s,l,c,u,f,h,p,d;function g(t,e){return t.pxmid[1]-e.pxmid[1]}function v(t,e){return e.pxmid[1]-t.pxmid[1]}function y(t,r){r||(r={});var i,c,u,h,p=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),d=n?t.yLabelMin:t.yLabelMax,g=n?t.yLabelMax:t.yLabelMin,v=t.cyFinal+o(t.px0[1],t.px1[1]),y=p-d;if(y*l&gt;0&amp;&amp;(t.labelExtraY=y),Array.isArray(e.pull))for(c=0;c&lt;f.length;c++)(u=f[c])===t||(m.castOption(e.pull,t.pts)||0)&gt;=(m.castOption(e.pull,u.pts)||0)||((t.pxmid[1]-u.pxmid[1])*l&gt;0?(y=u.cyFinal+o(u.px0[1],u.px1[1])-d-t.labelExtraY)*l&gt;0&amp;&amp;(t.labelExtraY+=y):(g+t.labelExtraY-v)*l&gt;0&amp;&amp;(i=3*s*Math.abs(c-f.indexOf(t)),(h=u.cxFinal+a(u.px0[0],u.px1[0])+i-(t.cxFinal+t.pxmid[0])-t.labelExtraX)*s&gt;0&amp;&amp;(t.labelExtraX+=h)))}for(n=0;n&lt;2;n++)for(i=n?g:v,o=n?Math.max:Math.min,l=n?1:-1,r=0;r&lt;2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,(c=t[n][r]).sort(i),u=t[1-n][r],f=u.concat(c),p=[],h=0;h&lt;c.length;h++)void 0!==c[h].yLabelMid&amp;&amp;p.push(c[h]);for(d=!1,h=0;n&amp;&amp;h&lt;u.length;h++)if(void 0!==u[h].yLabelMid){d=u[h];break}for(h=0;h&lt;p.length;h++){var x=h&amp;&amp;p[h-1];d&amp;&amp;!h&amp;&amp;(x=d),y(p[h],x)}}}(y,g),function(t,e){t.each((function(t){var r=n.select(this);if(t.labelExtraX||t.labelExtraY){var i=r.select(&quot;g.slicetext text&quot;);t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,i.attr(&quot;transform&quot;,l.getTextTransform(t.transform));var a=t.cxFinal+t.pxmid[0],s=&quot;M&quot;+a+&quot;,&quot;+(t.cyFinal+t.pxmid[1]),c=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]&lt;0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)&gt;Math.abs(f)?s+=&quot;l&quot;+f*t.pxmid[0]/t.pxmid[1]+&quot;,&quot;+f+&quot;H&quot;+(a+t.labelExtraX+c):s+=&quot;l&quot;+t.labelExtraX+&quot;,&quot;+u+&quot;v&quot;+(f-u)+&quot;h&quot;+c}else s+=&quot;V&quot;+(t.yLabelMid+t.labelExtraY)+&quot;h&quot;+c;l.ensureSingle(r,&quot;path&quot;,&quot;textline&quot;).call(o.stroke,e.outsidetextfont.color).attr({&quot;stroke-width&quot;:Math.min(2,e.outsidetextfont.size/8),d:s,fill:&quot;none&quot;})}else r.select(&quot;path.textline&quot;).remove()}))}(v,g),_&amp;&amp;g.automargin){var k=s.bBox(h.node()),M=g.domain,A=a.w*(M.x[1]-M.x[0]),S=a.h*(M.y[1]-M.y[0]),E=(.5*A-d.r)/a.w,I=(.5*S-d.r)/a.h;i.autoMargin(t,&quot;pie.&quot;+g.uid+&quot;.automargin&quot;,{xl:M.x[0]-E,xr:M.x[1]+E,yb:M.y[0]-I,yt:M.y[1]+I,l:Math.max(d.cx-d.r-k.left,0),r:Math.max(k.right-(d.cx+d.r),0),b:Math.max(k.bottom-(d.cy+d.r),0),t:Math.max(d.cy-d.r-k.top,0),pad:5})}}))}));setTimeout((function(){h.selectAll(&quot;tspan&quot;).each((function(){var t=n.select(this);t.attr(&quot;dy&quot;)&amp;&amp;t.attr(&quot;dy&quot;,t.attr(&quot;dy&quot;))}))}),0)},formatSliceLabel:D,transformInsideText:w,determineInsideTextFont:b,positionTitleOutside:L,prerenderTitles:_,layoutAreas:z,attachFxHandlers:x,computeTransform:R}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../bar/constants&quot;:923,&quot;../bar/uniform_text&quot;:937,&quot;./event_data&quot;:1165,&quot;./helpers&quot;:1166,d3:169}],1171:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;./style_one&quot;),a=t(&quot;../bar/uniform_text&quot;).resizeText;e.exports=function(t){var e=t._fullLayout._pielayer.selectAll(&quot;.trace&quot;);a(t,e,&quot;pie&quot;),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(i,t,e)}))}))}},{&quot;../bar/uniform_text&quot;:937,&quot;./style_one&quot;:1172,d3:169}],1172:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;./helpers&quot;).castOption;e.exports=function(t,e,r){var a=r.marker.line,o=i(a.color,e.pts)||n.defaultLine,s=i(a.width,e.pts)||0;t.style(&quot;stroke-width&quot;,s).call(n.fill,e.color).call(n.stroke,o)}},{&quot;../../components/color&quot;:643,&quot;./helpers&quot;:1166}],1173:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;);e.exports={x:n.x,y:n.y,xy:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},indices:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},xbounds:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ybounds:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},text:n.text,marker:{color:{valType:&quot;color&quot;,arrayOk:!1,editType:&quot;calc&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,arrayOk:!1,editType:&quot;calc&quot;},blend:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},sizemin:{valType:&quot;number&quot;,min:.1,max:2,dflt:.5,editType:&quot;calc&quot;},sizemax:{valType:&quot;number&quot;,min:.1,dflt:20,editType:&quot;calc&quot;},border:{color:{valType:&quot;color&quot;,arrayOk:!1,editType:&quot;calc&quot;},arearatio:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},transforms:void 0}},{&quot;../scatter/attributes&quot;:1187}],1174:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-pointcloud2d&quot;),i=t(&quot;../../lib/str2rgbarray&quot;),a=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,o=t(&quot;../scatter/get_trace_color&quot;);function s(t,e){this.scene=t,this.uid=e,this.type=&quot;pointcloud&quot;,this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color=&quot;rgb(0, 0, 0)&quot;,this.name=&quot;&quot;,this.hoverinfo=&quot;all&quot;,this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=n(t.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var l=s.prototype;l.handlePick=function(t){var e=this.idToIndex[t.pointId];return{trace:this,dataCoord:t.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[2*e],this.pickXYData[2*e+1]]:[this.pickXData[e],this.pickYData[e]],textLabel:Array.isArray(this.textLabels)?this.textLabels[e]:this.textLabels,color:this.color,name:this.name,pointIndex:e,hoverinfo:this.hoverinfo}},l.update=function(t){this.index=t.index,this.textLabels=t.text,this.name=t.name,this.hoverinfo=t.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(t),this.color=o(t,{})},l.updateFast=function(t){var e,r,n,o,s,l,c=this.xData=this.pickXData=t.x,u=this.yData=this.pickYData=t.y,f=this.pickXYData=t.xy,h=t.xbounds&amp;&amp;t.ybounds,p=t.indices,d=this.bounds;if(f){if(n=f,e=f.length&gt;&gt;&gt;1,h)d[0]=t.xbounds[0],d[2]=t.xbounds[1],d[1]=t.ybounds[0],d[3]=t.ybounds[1];else for(l=0;l&lt;e;l++)o=n[2*l],s=n[2*l+1],o&lt;d[0]&amp;&amp;(d[0]=o),o&gt;d[2]&amp;&amp;(d[2]=o),s&lt;d[1]&amp;&amp;(d[1]=s),s&gt;d[3]&amp;&amp;(d[3]=s);if(p)r=p;else for(r=new Int32Array(e),l=0;l&lt;e;l++)r[l]=l}else for(e=c.length,n=new Float32Array(2*e),r=new Int32Array(e),l=0;l&lt;e;l++)o=c[l],s=u[l],r[l]=l,n[2*l]=o,n[2*l+1]=s,o&lt;d[0]&amp;&amp;(d[0]=o),o&gt;d[2]&amp;&amp;(d[2]=o),s&lt;d[1]&amp;&amp;(d[1]=s),s&gt;d[3]&amp;&amp;(d[3]=s);this.idToIndex=r,this.pointcloudOptions.idToIndex=r,this.pointcloudOptions.positions=n;var g=i(t.marker.color),m=i(t.marker.border.color),v=t.opacity*t.marker.opacity;g[3]*=v,this.pointcloudOptions.color=g;var y=t.marker.blend;if(null===y){y=c.length&lt;100||u.length&lt;100}this.pointcloudOptions.blend=y,m[3]*=v,this.pointcloudOptions.borderColor=m;var x=t.marker.sizemin,b=Math.max(t.marker.sizemax,t.marker.sizemin);this.pointcloudOptions.sizeMin=x,this.pointcloudOptions.sizeMax=b,this.pointcloudOptions.areaRatio=t.marker.border.arearatio,this.pointcloud.update(this.pointcloudOptions);var _=this.scene.xaxis,w=this.scene.yaxis,T=b/2||.5;t._extremes[_._id]=a(_,[d[0],d[2]],{ppad:T}),t._extremes[w._id]=a(w,[d[1],d[3]],{ppad:T})},l.dispose=function(){this.pointcloud.dispose()},e.exports=function(t,e){var r=new s(t,e.uid);return r.update(e),r}},{&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/autorange&quot;:827,&quot;../scatter/get_trace_color&quot;:1197,&quot;gl-pointcloud2d&quot;:324}],1175:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;);e.exports=function(t,e,r){function a(r,a){return n.coerce(t,e,i,r,a)}a(&quot;x&quot;),a(&quot;y&quot;),a(&quot;xbounds&quot;),a(&quot;ybounds&quot;),t.xy&amp;&amp;t.xy instanceof Float32Array&amp;&amp;(e.xy=t.xy),t.indices&amp;&amp;t.indices instanceof Int32Array&amp;&amp;(e.indices=t.indices),a(&quot;text&quot;),a(&quot;marker.color&quot;,r),a(&quot;marker.opacity&quot;),a(&quot;marker.blend&quot;),a(&quot;marker.sizemin&quot;),a(&quot;marker.sizemax&quot;),a(&quot;marker.border.color&quot;,r),a(&quot;marker.border.arearatio&quot;),e._length=null}},{&quot;../../lib&quot;:778,&quot;./attributes&quot;:1173}],1176:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;../scatter3d/calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;pointcloud&quot;,basePlotModule:t(&quot;../../plots/gl2d&quot;),categories:[&quot;gl&quot;,&quot;gl2d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl2d&quot;:868,&quot;../scatter3d/calc&quot;:1216,&quot;./attributes&quot;:1173,&quot;./convert&quot;:1174,&quot;./defaults&quot;:1175}],1177:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=t(&quot;../../components/fx/attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../plot_api/plot_template&quot;).templatedArray,f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../plot_api/edit_types&quot;).overrideAll;t(&quot;../../constants/docs&quot;).FORMAT_LINK;(e.exports=h({hoverinfo:f({},i.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:o.hoverlabel,domain:s({name:&quot;sankey&quot;,trace:!0}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;},valueformat:{valType:&quot;string&quot;,dflt:&quot;.3s&quot;},valuesuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;},arrangement:{valType:&quot;enumerated&quot;,values:[&quot;snap&quot;,&quot;perpendicular&quot;,&quot;freeform&quot;,&quot;fixed&quot;],dflt:&quot;snap&quot;},textfont:n({}),customdata:void 0,node:{label:{valType:&quot;data_array&quot;,dflt:[]},groups:{valType:&quot;info_array&quot;,impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:&quot;number&quot;,editType:&quot;calc&quot;}},x:{valType:&quot;data_array&quot;,dflt:[]},y:{valType:&quot;data_array&quot;,dflt:[]},color:{valType:&quot;color&quot;,arrayOk:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:a.defaultLine,arrayOk:!0},width:{valType:&quot;number&quot;,min:0,dflt:.5,arrayOk:!0}},pad:{valType:&quot;number&quot;,arrayOk:!1,min:0,dflt:20},thickness:{valType:&quot;number&quot;,arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],dflt:&quot;all&quot;},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:[&quot;value&quot;,&quot;label&quot;]})},link:{label:{valType:&quot;data_array&quot;,dflt:[]},color:{valType:&quot;color&quot;,arrayOk:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:a.defaultLine,arrayOk:!0},width:{valType:&quot;number&quot;,min:0,dflt:0,arrayOk:!0}},source:{valType:&quot;data_array&quot;,dflt:[]},target:{valType:&quot;data_array&quot;,dflt:[]},value:{valType:&quot;data_array&quot;,dflt:[]},hoverinfo:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],dflt:&quot;all&quot;},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:[&quot;value&quot;,&quot;label&quot;]}),colorscales:u(&quot;concentrationscales&quot;,{editType:&quot;calc&quot;,label:{valType:&quot;string&quot;,editType:&quot;calc&quot;,dflt:&quot;&quot;},cmax:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:1},cmin:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:0},colorscale:f(c().colorscale,{dflt:[[0,&quot;white&quot;],[1,&quot;black&quot;]]})})}},&quot;calc&quot;,&quot;nested&quot;)).transforms=void 0},{&quot;../../components/color/attributes&quot;:642,&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/fx/attributes&quot;:674,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906}],1178:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;../../plots/get_data&quot;).getModuleCalcData,a=t(&quot;./plot&quot;),o=t(&quot;../../components/fx/layout_attributes&quot;),s=t(&quot;../../lib/setcursor&quot;),l=t(&quot;../../components/dragelement&quot;),c=t(&quot;../../plots/cartesian/select&quot;).prepSelect,u=t(&quot;../../lib&quot;),f=t(&quot;../../registry&quot;);function h(t,e){var r=t._fullData[e],n=t._fullLayout,i=n.dragmode,a=&quot;pan&quot;===n.dragmode?&quot;move&quot;:&quot;crosshair&quot;,o=r._bgRect;if(&quot;pan&quot;!==i&amp;&amp;&quot;zoom&quot;!==i){s(o,a);var h={_id:&quot;x&quot;,c2p:u.identity,_offset:r._sankey.translateX,_length:r._sankey.width},p={_id:&quot;y&quot;,c2p:u.identity,_offset:r._sankey.translateY,_length:r._sankey.height},d={gd:t,element:o.node(),plotinfo:{id:e,xaxis:h,yaxis:p,fillRangeItems:u.noop},subplot:e,xaxes:[h],yaxes:[p],doneFnCompleted:function(r){var n,i=t._fullData[e],a=i.node.groups.slice(),o=[];function s(t){for(var e=i._sankey.graph.nodes,r=0;r&lt;e.length;r++)if(e[r].pointNumber===t)return e[r]}for(var l=0;l&lt;r.length;l++){var c=s(r[l].pointNumber);if(c)if(c.group){for(var u=0;u&lt;c.childrenNodes.length;u++)o.push(c.childrenNodes[u].pointNumber);a[c.pointNumber-i.node._count]=!1}else o.push(c.pointNumber)}n=a.filter(Boolean).concat([o]),f.call(&quot;_guiRestyle&quot;,t,{&quot;node.groups&quot;:[n]},e)},prepFn:function(t,e,r){c(t,e,r,d,i)}};l.init(d)}}r.name=&quot;sankey&quot;,r.baseLayoutAttrOverrides=n({hoverlabel:o.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.plot=function(t){var e=i(t.calcdata,&quot;sankey&quot;)[0];a(t,e),r.updateFx(t)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;sankey&quot;),a=e._has&amp;&amp;e._has(&quot;sankey&quot;);i&amp;&amp;!a&amp;&amp;(n._paperdiv.selectAll(&quot;.sankey&quot;).remove(),n._paperdiv.selectAll(&quot;.bgsankey&quot;).remove())},r.updateFx=function(t){for(var e=0;e&lt;t._fullData.length;e++)h(t,e)}},{&quot;../../components/dragelement&quot;:662,&quot;../../components/fx/layout_attributes&quot;:684,&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/cartesian/select&quot;:847,&quot;../../plots/get_data&quot;:865,&quot;../../registry&quot;:911,&quot;./plot&quot;:1183}],1179:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;strongly-connected-components&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/gup&quot;).wrap,o=i.isArrayOrTypedArray,s=i.isIndex,l=t(&quot;../../components/colorscale&quot;);function c(t){var e,r=t.node,a=t.link,c=[],u=o(a.color),f=o(a.customdata),h={},p={},d=a.colorscales.length;for(e=0;e&lt;d;e++){var g=a.colorscales[e],m=l.extractScale(g,{cLetter:&quot;c&quot;}),v=l.makeColorScaleFunc(m);p[g.label]=v}var y=0;for(e=0;e&lt;a.value.length;e++)a.source[e]&gt;y&amp;&amp;(y=a.source[e]),a.target[e]&gt;y&amp;&amp;(y=a.target[e]);var x,b=y+1;t.node._count=b;var _=t.node.groups,w={};for(e=0;e&lt;_.length;e++){var T=_[e];for(x=0;x&lt;T.length;x++){var k=T[x],M=b+e;w.hasOwnProperty(k)?i.warn(&quot;Node &quot;+k+&quot; is already part of a group.&quot;):w[k]=M}}var A={source:[],target:[]};for(e=0;e&lt;a.value.length;e++){var S=a.value[e],E=a.source[e],C=a.target[e];if(S&gt;0&amp;&amp;s(E,b)&amp;&amp;s(C,b)&amp;&amp;(!w.hasOwnProperty(E)||!w.hasOwnProperty(C)||w[E]!==w[C])){w.hasOwnProperty(C)&amp;&amp;(C=w[C]),w.hasOwnProperty(E)&amp;&amp;(E=w[E]),C=+C,h[E=+E]=h[C]=!0;var L=&quot;&quot;;a.label&amp;&amp;a.label[e]&amp;&amp;(L=a.label[e]);var I=null;L&amp;&amp;p.hasOwnProperty(L)&amp;&amp;(I=p[L]),c.push({pointNumber:e,label:L,color:u?a.color[e]:a.color,customdata:f?a.customdata[e]:a.customdata,concentrationscale:I,source:E,target:C,value:+S}),A.source.push(E),A.target.push(C)}}var P=b+_.length,z=o(r.color),O=o(r.customdata),D=[];for(e=0;e&lt;P;e++)if(h[e]){var R=r.label[e];D.push({group:e&gt;b-1,childrenNodes:[],pointNumber:e,label:R,color:z?r.color[e]:r.color,customdata:O?r.customdata[e]:r.customdata})}var F=!1;return function(t,e,r){for(var a=i.init2dArray(t,0),o=0;o&lt;Math.min(e.length,r.length);o++)if(i.isIndex(e[o],t)&amp;&amp;i.isIndex(r[o],t)){if(e[o]===r[o])return!0;a[e[o]].push(r[o])}return n(a).components.some((function(t){return t.length&gt;1}))}(P,A.source,A.target)&amp;&amp;(F=!0),{circular:F,links:c,nodes:D,groups:_,groupLookup:w}}e.exports=function(t,e){var r=c(e);return a({circular:r.circular,_nodes:r.nodes,_links:r.links,_groups:r.groups,_groupLookup:r.groupLookup})}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;strongly-connected-components&quot;:569}],1180:[function(t,e,r){&quot;use strict&quot;;e.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:&quot;linear&quot;,cn:{sankey:&quot;sankey&quot;,sankeyLinks:&quot;sankey-links&quot;,sankeyLink:&quot;sankey-link&quot;,sankeyNodeSet:&quot;sankey-node-set&quot;,sankeyNode:&quot;sankey-node&quot;,nodeRect:&quot;node-rect&quot;,nodeCapture:&quot;node-capture&quot;,nodeCentered:&quot;node-entered&quot;,nodeLabelGuide:&quot;node-label-guide&quot;,nodeLabel:&quot;node-label&quot;,nodeLabelTextPath:&quot;node-label-text-path&quot;}}},{}],1181:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;tinycolor2&quot;),s=t(&quot;../../plots/domain&quot;).defaults,l=t(&quot;../../components/fx/hoverlabel_defaults&quot;),c=t(&quot;../../plot_api/plot_template&quot;),u=t(&quot;../../plots/array_container_defaults&quot;);function f(t,e){function r(r,a){return n.coerce(t,e,i.link.colorscales,r,a)}r(&quot;label&quot;),r(&quot;cmin&quot;),r(&quot;cmax&quot;),r(&quot;colorscale&quot;)}e.exports=function(t,e,r,h){function p(r,a){return n.coerce(t,e,i,r,a)}var d=n.extendDeep(h.hoverlabel,t.hoverlabel),g=t.node,m=c.newContainer(e,&quot;node&quot;);function v(t,e){return n.coerce(g,m,i.node,t,e)}v(&quot;label&quot;),v(&quot;groups&quot;),v(&quot;x&quot;),v(&quot;y&quot;),v(&quot;pad&quot;),v(&quot;thickness&quot;),v(&quot;line.color&quot;),v(&quot;line.width&quot;),v(&quot;hoverinfo&quot;,t.hoverinfo),l(g,m,v,d),v(&quot;hovertemplate&quot;);var y=h.colorway;v(&quot;color&quot;,m.label.map((function(t,e){return a.addOpacity(function(t){return y[t%y.length]}(e),.8)}))),v(&quot;customdata&quot;);var x=t.link||{},b=c.newContainer(e,&quot;link&quot;);function _(t,e){return n.coerce(x,b,i.link,t,e)}_(&quot;label&quot;),_(&quot;source&quot;),_(&quot;target&quot;),_(&quot;value&quot;),_(&quot;line.color&quot;),_(&quot;line.width&quot;),_(&quot;hoverinfo&quot;,t.hoverinfo),l(x,b,_,d),_(&quot;hovertemplate&quot;);var w,T=o(h.paper_bgcolor).getLuminance()&lt;.333?&quot;rgba(255, 255, 255, 0.6)&quot;:&quot;rgba(0, 0, 0, 0.2)&quot;;_(&quot;color&quot;,n.repeat(T,b.value.length)),_(&quot;customdata&quot;),u(x,b,{name:&quot;colorscales&quot;,handleItemDefaults:f}),s(e,h,p),p(&quot;orientation&quot;),p(&quot;valueformat&quot;),p(&quot;valuesuffix&quot;),m.x.length&amp;&amp;m.y.length&amp;&amp;(w=&quot;freeform&quot;),p(&quot;arrangement&quot;,w),n.coerceFont(p,&quot;textfont&quot;,n.extendFlat({},h.font)),e._length=null}},{&quot;../../components/color&quot;:643,&quot;../../components/fx/hoverlabel_defaults&quot;:681,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1177,tinycolor2:576}],1182:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),moduleType:&quot;trace&quot;,name:&quot;sankey&quot;,basePlotModule:t(&quot;./base_plot&quot;),selectPoints:t(&quot;./select.js&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1177,&quot;./base_plot&quot;:1178,&quot;./calc&quot;:1179,&quot;./defaults&quot;:1181,&quot;./plot&quot;:1183,&quot;./select.js&quot;:1185}],1183:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;./render&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;./constants&quot;).cn,c=s._;function u(t){return&quot;&quot;!==t}function f(t,e){return t.filter((function(t){return t.key===e.traceId}))}function h(t,e){n.select(t).select(&quot;path&quot;).style(&quot;fill-opacity&quot;,e),n.select(t).select(&quot;rect&quot;).style(&quot;fill-opacity&quot;,e)}function p(t){n.select(t).select(&quot;text.name&quot;).style(&quot;fill&quot;,&quot;black&quot;)}function d(t){return function(e){return-1!==t.node.sourceLinks.indexOf(e.link)||-1!==t.node.targetLinks.indexOf(e.link)}}function g(t){return function(e){return-1!==e.node.sourceLinks.indexOf(t.link)||-1!==e.node.targetLinks.indexOf(t.link)}}function m(t,e,r){e&amp;&amp;r&amp;&amp;f(r,e).selectAll(&quot;.&quot;+l.sankeyLink).filter(d(e)).call(y.bind(0,e,r,!1))}function v(t,e,r){e&amp;&amp;r&amp;&amp;f(r,e).selectAll(&quot;.&quot;+l.sankeyLink).filter(d(e)).call(x.bind(0,e,r,!1))}function y(t,e,r,n){var i=n.datum().link.label;n.style(&quot;fill-opacity&quot;,(function(t){if(!t.link.concentrationscale)return.4})),i&amp;&amp;f(e,t).selectAll(&quot;.&quot;+l.sankeyLink).filter((function(t){return t.link.label===i})).style(&quot;fill-opacity&quot;,(function(t){if(!t.link.concentrationscale)return.4})),r&amp;&amp;f(e,t).selectAll(&quot;.&quot;+l.sankeyNode).filter(g(t)).call(m)}function x(t,e,r,n){var i=n.datum().link.label;n.style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),i&amp;&amp;f(e,t).selectAll(&quot;.&quot;+l.sankeyLink).filter((function(t){return t.link.label===i})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),r&amp;&amp;f(e,t).selectAll(l.sankeyNode).filter(g(t)).call(v)}function b(t,e){var r=t.hoverlabel||{},n=s.nestedProperty(r,e).get();return!Array.isArray(n)&amp;&amp;n}e.exports=function(t,e){for(var r=t._fullLayout,s=r._paper,f=r._size,d=0;d&lt;t._fullData.length;d++)if(t._fullData[d].visible&amp;&amp;t._fullData[d].type===l.sankey&amp;&amp;!t._fullData[d]._viewInitial){var g=t._fullData[d].node;t._fullData[d]._viewInitial={node:{groups:g.groups.slice(),x:g.x.slice(),y:g.y.slice()}}}var _=c(t,&quot;source:&quot;)+&quot; &quot;,w=c(t,&quot;target:&quot;)+&quot; &quot;,T=c(t,&quot;concentration:&quot;)+&quot; &quot;,k=c(t,&quot;incoming flow count:&quot;)+&quot; &quot;,M=c(t,&quot;outgoing flow count:&quot;)+&quot; &quot;;i(t,s,e,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{linkEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(y.bind(0,r,i,!0)),&quot;skip&quot;!==r.link.trace.link.hoverinfo&amp;&amp;(r.link.fullData=r.link.trace,t.emit(&quot;plotly_hover&quot;,{event:n.event,points:[r.link]})))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var s=i.link.trace.link;if(&quot;none&quot;!==s.hoverinfo&amp;&amp;&quot;skip&quot;!==s.hoverinfo){for(var l=[],c=0,f=0;f&lt;i.flow.links.length;f++){var d=i.flow.links[f];if(&quot;closest&quot;!==t._fullLayout.hovermode||i.link.pointNumber===d.pointNumber){i.link.pointNumber===d.pointNumber&amp;&amp;(c=f),d.fullData=d.trace,s=i.link.trace.link;var g=v(d),m={valueLabel:n.format(i.valueFormat)(d.value)+i.valueSuffix};l.push({x:g[0],y:g[1],name:m.valueLabel,text:[d.label||&quot;&quot;,_+d.source.label,w+d.target.label,d.concentrationscale?T+n.format(&quot;%0.2f&quot;)(d.flow.labelConcentration):&quot;&quot;].filter(u).join(&quot;&lt;br&gt;&quot;),color:b(s,&quot;bgcolor&quot;)||o.addOpacity(d.color,1),borderColor:b(s,&quot;bordercolor&quot;),fontFamily:b(s,&quot;font.family&quot;),fontSize:b(s,&quot;font.size&quot;),fontColor:b(s,&quot;font.color&quot;),nameLength:b(s,&quot;namelength&quot;),textAlign:b(s,&quot;align&quot;),idealAlign:n.event.x&lt;g[0]?&quot;right&quot;:&quot;left&quot;,hovertemplate:s.hovertemplate,hovertemplateLabels:m,eventData:[d]})}}a.loneHover(l,{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t,anchorIndex:c}).each((function(){i.link.concentrationscale||h(this,.65),p(this)}))}}function v(t){var e,r;t.circular?(e=(t.circularPathData.leftInnerExtent+t.circularPathData.rightInnerExtent)/2,r=t.circularPathData.verticalFullExtent):(e=(t.source.x1+t.target.x0)/2,r=(t.y0+t.y1)/2);var n=[e,r];return&quot;v&quot;===t.trace.orientation&amp;&amp;n.reverse(),n[0]+=i.parent.translateX,n[1]+=i.parent.translateY,n}},unhover:function(e,i,o){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(x.bind(0,i,o,!0)),&quot;skip&quot;!==i.link.trace.link.hoverinfo&amp;&amp;(i.link.fullData=i.link.trace,t.emit(&quot;plotly_unhover&quot;,{event:n.event,points:[i.link]})),a.loneUnhover(r._hoverlayer.node()))},select:function(e,r){var i=r.link;i.originalEvent=n.event,t._hoverdata=[i],a.click(t,{target:!0})}},nodeEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(m,r,i),&quot;skip&quot;!==r.node.trace.node.hoverinfo&amp;&amp;(r.node.fullData=r.node.trace,t.emit(&quot;plotly_hover&quot;,{event:n.event,points:[r.node]})))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var o=i.node.trace.node;if(&quot;none&quot;!==o.hoverinfo&amp;&amp;&quot;skip&quot;!==o.hoverinfo){var s=n.select(e).select(&quot;.&quot;+l.nodeRect),c=t._fullLayout._paperdiv.node().getBoundingClientRect(),f=s.node().getBoundingClientRect(),d=f.left-2-c.left,g=f.right+2-c.left,m=f.top+f.height/4-c.top,v={valueLabel:n.format(i.valueFormat)(i.node.value)+i.valueSuffix};i.node.fullData=i.node.trace,t._fullLayout._calcInverseTransform(t);var y=t._fullLayout._invScaleX,x=t._fullLayout._invScaleY,_=a.loneHover({x0:y*d,x1:y*g,y:x*m,name:n.format(i.valueFormat)(i.node.value)+i.valueSuffix,text:[i.node.label,k+i.node.targetLinks.length,M+i.node.sourceLinks.length].filter(u).join(&quot;&lt;br&gt;&quot;),color:b(o,&quot;bgcolor&quot;)||i.tinyColorHue,borderColor:b(o,&quot;bordercolor&quot;),fontFamily:b(o,&quot;font.family&quot;),fontSize:b(o,&quot;font.size&quot;),fontColor:b(o,&quot;font.color&quot;),nameLength:b(o,&quot;namelength&quot;),textAlign:b(o,&quot;align&quot;),idealAlign:&quot;left&quot;,hovertemplate:o.hovertemplate,hovertemplateLabels:v,eventData:[i.node]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t});h(_,.85),p(_)}}},unhover:function(e,i,o){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(v,i,o),&quot;skip&quot;!==i.node.trace.node.hoverinfo&amp;&amp;(i.node.fullData=i.node.trace,t.emit(&quot;plotly_unhover&quot;,{event:n.event,points:[i.node]})),a.loneUnhover(r._hoverlayer.node()))},select:function(e,r,i){var o=r.node;o.originalEvent=n.event,t._hoverdata=[o],n.select(e).call(v,r,i),a.click(t,{target:!0})}}})}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;./constants&quot;:1180,&quot;./render&quot;:1184,d3:169}],1184:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;d3&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;@plotly/d3-sankey&quot;),c=t(&quot;@plotly/d3-sankey-circular&quot;),u=t(&quot;d3-force&quot;),f=t(&quot;../../lib&quot;),h=f.strTranslate,p=t(&quot;../../lib/gup&quot;),d=p.keyFun,g=p.repeat,m=p.unwrap,v=t(&quot;d3-interpolate&quot;).interpolateNumber,y=t(&quot;../../registry&quot;);function x(t,e,r){var i,o=m(e),s=o.trace,u=s.domain,h=&quot;h&quot;===s.orientation,p=s.node.pad,d=s.node.thickness,g=t.width*(u.x[1]-u.x[0]),v=t.height*(u.y[1]-u.y[0]),y=o._nodes,x=o._links,b=o.circular;(i=b?c.sankeyCircular().circularLinkGap(0):l.sankey()).iterations(n.sankeyIterations).size(h?[g,v]:[v,g]).nodeWidth(d).nodePadding(p).nodeId((function(t){return t.pointNumber})).nodes(y).links(x);var _,w,T,k=i();for(var M in i.nodePadding()&lt;p&amp;&amp;f.warn(&quot;node.pad was reduced to &quot;,i.nodePadding(),&quot; to fit within the figure.&quot;),o._groupLookup){var A,S=parseInt(o._groupLookup[M]);for(_=0;_&lt;k.nodes.length;_++)if(k.nodes[_].pointNumber===S){A=k.nodes[_];break}if(A){var E={pointNumber:parseInt(M),x0:A.x0,x1:A.x1,y0:A.y0,y1:A.y1,partOfGroup:!0,sourceLinks:[],targetLinks:[]};k.nodes.unshift(E),A.childrenNodes.unshift(E)}}if(function(){for(_=0;_&lt;k.nodes.length;_++){var t,e,r=k.nodes[_],n={};for(w=0;w&lt;r.targetLinks.length;w++)t=(e=r.targetLinks[w]).source.pointNumber+&quot;:&quot;+e.target.pointNumber,n.hasOwnProperty(t)||(n[t]=[]),n[t].push(e);var i=Object.keys(n);for(w=0;w&lt;i.length;w++){var o=n[t=i[w]],s=0,l={};for(T=0;T&lt;o.length;T++)l[(e=o[T]).label]||(l[e.label]=0),l[e.label]+=e.value,s+=e.value;for(T=0;T&lt;o.length;T++)(e=o[T]).flow={value:s,labelConcentration:l[e.label]/s,concentration:e.value/s,links:o},e.concentrationscale&amp;&amp;(e.color=a(e.concentrationscale(e.flow.labelConcentration)))}var c=0;for(w=0;w&lt;r.sourceLinks.length;w++)c+=r.sourceLinks[w].value;for(w=0;w&lt;r.sourceLinks.length;w++)(e=r.sourceLinks[w]).concentrationOut=e.value/c;var u=0;for(w=0;w&lt;r.targetLinks.length;w++)u+=r.targetLinks[w].value;for(w=0;w&lt;r.targetLinks.length;w++)(e=r.targetLinks[w]).concenrationIn=e.value/u}}(),s.node.x.length&amp;&amp;s.node.y.length){for(_=0;_&lt;Math.min(s.node.x.length,s.node.y.length,k.nodes.length);_++)if(s.node.x[_]&amp;&amp;s.node.y[_]){var C=[s.node.x[_]*g,s.node.y[_]*v];k.nodes[_].x0=C[0]-d/2,k.nodes[_].x1=C[0]+d/2;var L=k.nodes[_].y1-k.nodes[_].y0;k.nodes[_].y0=C[1]-L/2,k.nodes[_].y1=C[1]+L/2}if(&quot;snap&quot;===s.arrangement)!function(t){t.forEach((function(t){var e,r,n,i=0,a=t.length;for(t.sort((function(t,e){return t.y0-e.y0})),n=0;n&lt;a;++n)(e=t[n]).y0&gt;=i||(r=i-e.y0)&gt;1e-6&amp;&amp;(e.y0+=r,e.y1+=r),i=e.y1+p}))}(function(t){var e,r,n=t.map((function(t,e){return{x0:t.x0,index:e}})).sort((function(t,e){return t.x0-e.x0})),i=[],a=-1,o=-1/0;for(_=0;_&lt;n.length;_++){var s=t[n[_].index];s.x0&gt;o+d&amp;&amp;(a+=1,e=s.x0),o=s.x0,i[a]||(i[a]=[]),i[a].push(s),r=e-s.x0,s.x0+=r,s.x1+=r}return i}(y=k.nodes));i.update(k)}return{circular:b,key:r,trace:s,guid:f.randstr(),horizontal:h,width:g,height:v,nodePad:s.node.pad,nodeLineColor:s.node.line.color,nodeLineWidth:s.node.line.width,linkLineColor:s.link.line.color,linkLineWidth:s.link.line.width,valueFormat:s.valueformat,valueSuffix:s.valuesuffix,textFont:s.textfont,translateX:u.x[0]*t.width+t.margin.l,translateY:t.height-u.y[1]*t.height+t.margin.t,dragParallel:h?v:g,dragPerpendicular:h?g:v,arrangement:s.arrangement,sankey:i,graph:k,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}function b(t,e,r){var n=a(e.color),i=e.source.label+&quot;|&quot;+e.target.label+&quot;__&quot;+r;return e.trace=t.trace,e.curveNumber=t.trace.index,{circular:t.circular,key:i,traceId:t.key,pointNumber:e.pointNumber,link:e,tinyColorHue:o.tinyRGB(n),tinyColorAlpha:n.getAlpha(),linkPath:_,linkLineColor:t.linkLineColor,linkLineWidth:t.linkLineWidth,valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,parent:t,interactionState:t.interactionState,flow:e.flow}}function _(){return function(t){if(t.link.circular)return e=t.link,r=e.width/2,n=e.circularPathData,&quot;top&quot;===e.circularLinkType?&quot;M &quot;+n.targetX+&quot; &quot;+(n.targetY+r)+&quot; L&quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY+r)+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightSmallArcRadius+r)+&quot; 0 0 1 &quot;+(n.rightFullExtent-r)+&quot; &quot;+(n.targetY-n.rightSmallArcRadius)+&quot;L&quot;+(n.rightFullExtent-r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightLargeArcRadius+r)+&quot; 0 0 1 &quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftLargeArcRadius+r)+&quot; 0 0 1 &quot;+(n.leftFullExtent+r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;L&quot;+(n.leftFullExtent+r)+&quot; &quot;+(n.sourceY-n.leftSmallArcRadius)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftSmallArcRadius+r)+&quot; 0 0 1 &quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY-r)+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftSmallArcRadius-r)+&quot; 0 0 0 &quot;+(n.leftFullExtent-r)+&quot; &quot;+(n.sourceY-n.leftSmallArcRadius)+&quot;L&quot;+(n.leftFullExtent-r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftLargeArcRadius-r)+&quot; 0 0 0 &quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;L&quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightLargeArcRadius-r)+&quot; 0 0 0 &quot;+(n.rightFullExtent+r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;L&quot;+(n.rightFullExtent+r)+&quot; &quot;+(n.targetY-n.rightSmallArcRadius)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightSmallArcRadius-r)+&quot; 0 0 0 &quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY-r)+&quot;L&quot;+n.targetX+&quot; &quot;+(n.targetY-r)+&quot;Z&quot;:&quot;M &quot;+n.targetX+&quot; &quot;+(n.targetY-r)+&quot; L&quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY-r)+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightSmallArcRadius+r)+&quot; 0 0 0 &quot;+(n.rightFullExtent-r)+&quot; &quot;+(n.targetY+n.rightSmallArcRadius)+&quot;L&quot;+(n.rightFullExtent-r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightLargeArcRadius+r)+&quot; 0 0 0 &quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftLargeArcRadius+r)+&quot; 0 0 0 &quot;+(n.leftFullExtent+r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;L&quot;+(n.leftFullExtent+r)+&quot; &quot;+(n.sourceY+n.leftSmallArcRadius)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftSmallArcRadius+r)+&quot; 0 0 0 &quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY+r)+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftSmallArcRadius-r)+&quot; 0 0 1 &quot;+(n.leftFullExtent-r)+&quot; &quot;+(n.sourceY+n.leftSmallArcRadius)+&quot;L&quot;+(n.leftFullExtent-r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftLargeArcRadius-r)+&quot; 0 0 1 &quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;L&quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightLargeArcRadius-r)+&quot; 0 0 1 &quot;+(n.rightFullExtent+r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;L&quot;+(n.rightFullExtent+r)+&quot; &quot;+(n.targetY+n.rightSmallArcRadius)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightSmallArcRadius-r)+&quot; 0 0 1 &quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY+r)+&quot;L&quot;+n.targetX+&quot; &quot;+(n.targetY+r)+&quot;Z&quot;;var e,r,n,i=t.link.source.x1,a=t.link.target.x0,o=v(i,a),s=o(.5),l=o(.5),c=t.link.y0-t.link.width/2,u=t.link.y0+t.link.width/2,f=t.link.y1-t.link.width/2,h=t.link.y1+t.link.width/2;return&quot;M&quot;+i+&quot;,&quot;+c+&quot;C&quot;+s+&quot;,&quot;+c+&quot; &quot;+l+&quot;,&quot;+f+&quot; &quot;+a+&quot;,&quot;+f+&quot;L&quot;+a+&quot;,&quot;+h+&quot;C&quot;+l+&quot;,&quot;+h+&quot; &quot;+s+&quot;,&quot;+u+&quot; &quot;+i+&quot;,&quot;+u+&quot;Z&quot;}}function w(t,e){var r=a(e.color),i=n.nodePadAcross,s=t.nodePad/2;e.dx=e.x1-e.x0,e.dy=e.y1-e.y0;var l=e.dx,c=Math.max(.5,e.dy),u=&quot;node_&quot;+e.pointNumber;return e.group&amp;&amp;(u=f.randstr()),e.trace=t.trace,e.curveNumber=t.trace.index,{index:e.pointNumber,key:u,partOfGroup:e.partOfGroup||!1,group:e.group,traceId:t.key,trace:t.trace,node:e,nodePad:t.nodePad,nodeLineColor:t.nodeLineColor,nodeLineWidth:t.nodeLineWidth,textFont:t.textFont,size:t.horizontal?t.height:t.width,visibleWidth:Math.ceil(l),visibleHeight:c,zoneX:-i,zoneY:-s,zoneWidth:l+2*i,zoneHeight:c+2*s,labelY:t.horizontal?e.dy/2+1:e.dx/2+1,left:1===e.originalLayer,sizeAcross:t.width,forceLayouts:t.forceLayouts,horizontal:t.horizontal,darkBackground:r.getBrightness()&lt;=128,tinyColorHue:o.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,graph:t.graph,arrangement:t.arrangement,uniqueNodeLabelPathId:[t.guid,t.key,u].join(&quot;_&quot;),interactionState:t.interactionState,figure:t}}function T(t){t.attr(&quot;transform&quot;,(function(t){return h(t.node.x0.toFixed(3),t.node.y0.toFixed(3))}))}function k(t){t.call(T)}function M(t,e){t.call(k),e.attr(&quot;d&quot;,_())}function A(t){t.attr(&quot;width&quot;,(function(t){return t.node.x1-t.node.x0})).attr(&quot;height&quot;,(function(t){return t.visibleHeight}))}function S(t){return t.link.width&gt;1||t.linkLineWidth&gt;0}function E(t){return h(t.translateX,t.translateY)+(t.horizontal?&quot;matrix(1 0 0 1 0 0)&quot;:&quot;matrix(0 1 1 0 0 0)&quot;)}function C(t){return h(t.horizontal?0:t.labelY,t.horizontal?t.labelY:0)}function L(t){return i.svg.line()([[t.horizontal?t.left?-t.sizeAcross:t.visibleWidth+n.nodeTextOffsetHorizontal:n.nodeTextOffsetHorizontal,0],[t.horizontal?t.left?-n.nodeTextOffsetHorizontal:t.sizeAcross:t.visibleHeight-n.nodeTextOffsetHorizontal,0]])}function I(t){return t.horizontal?&quot;matrix(1 0 0 1 0 0)&quot;:&quot;matrix(0 1 1 0 0 0)&quot;}function P(t){return t.horizontal?&quot;scale(1 1)&quot;:&quot;scale(-1 1)&quot;}function z(t){return t.darkBackground&amp;&amp;!t.horizontal?&quot;rgb(255,255,255)&quot;:&quot;rgb(0,0,0)&quot;}function O(t){return t.horizontal&amp;&amp;t.left?&quot;100%&quot;:&quot;0%&quot;}function D(t,e,r){t.on(&quot;.basic&quot;,null).on(&quot;mouseover.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.hover(this,t,e),t.interactionState.hovered=[this,t])})).on(&quot;mousemove.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.follow(this,t),t.interactionState.hovered=[this,t])})).on(&quot;mouseout.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.unhover(this,t,e),t.interactionState.hovered=!1)})).on(&quot;click.basic&quot;,(function(t){t.interactionState.hovered&amp;&amp;(r.unhover(this,t,e),t.interactionState.hovered=!1),t.interactionState.dragInProgress||t.partOfGroup||r.select(this,t,e)}))}function R(t,e,r,a){var o=i.behavior.drag().origin((function(t){return{x:t.node.x0+t.visibleWidth/2,y:t.node.y0+t.visibleHeight/2}})).on(&quot;dragstart&quot;,(function(i){if(&quot;fixed&quot;!==i.arrangement&amp;&amp;(f.ensureSingle(a._fullLayout._infolayer,&quot;g&quot;,&quot;dragcover&quot;,(function(t){a._fullLayout._dragCover=t})),f.raiseToTop(this),i.interactionState.dragInProgress=i.node,B(i.node),i.interactionState.hovered&amp;&amp;(r.nodeEvents.unhover.apply(0,i.interactionState.hovered),i.interactionState.hovered=!1),&quot;snap&quot;===i.arrangement)){var o=i.traceId+&quot;|&quot;+i.key;i.forceLayouts[o]?i.forceLayouts[o].alpha(1):function(t,e,r,i){!function(t){for(var e=0;e&lt;t.length;e++)t[e].y=(t[e].y0+t[e].y1)/2,t[e].x=(t[e].x0+t[e].x1)/2}(r.graph.nodes);var a=r.graph.nodes.filter((function(t){return t.originalX===r.node.originalX})).filter((function(t){return!t.partOfGroup}));r.forceLayouts[e]=u.forceSimulation(a).alphaDecay(0).force(&quot;collide&quot;,u.forceCollide().radius((function(t){return t.dy/2+r.nodePad/2})).strength(1).iterations(n.forceIterations)).force(&quot;constrain&quot;,function(t,e,r,i){return function(){for(var t=0,a=0;a&lt;r.length;a++){var o=r[a];o===i.interactionState.dragInProgress?(o.x=o.lastDraggedX,o.y=o.lastDraggedY):(o.vx=(o.originalX-o.x)/n.forceTicksPerFrame,o.y=Math.min(i.size-o.dy/2,Math.max(o.dy/2,o.y))),t=Math.max(t,Math.abs(o.vx),Math.abs(o.vy))}!i.interactionState.dragInProgress&amp;&amp;t&lt;.1&amp;&amp;i.forceLayouts[e].alpha()&gt;0&amp;&amp;i.forceLayouts[e].alpha(0)}}(0,e,a,r)).stop()}(0,o,i),function(t,e,r,i,a){window.requestAnimationFrame((function o(){var s;for(s=0;s&lt;n.forceTicksPerFrame;s++)r.forceLayouts[i].tick();if(function(t){for(var e=0;e&lt;t.length;e++)t[e].y0=t[e].y-t[e].dy/2,t[e].y1=t[e].y0+t[e].dy,t[e].x0=t[e].x-t[e].dx/2,t[e].x1=t[e].x0+t[e].dx}(r.graph.nodes),r.sankey.update(r.graph),M(t.filter(N(r)),e),r.forceLayouts[i].alpha()&gt;0)window.requestAnimationFrame(o);else{var l=r.node.originalX;r.node.x0=l-r.visibleWidth/2,r.node.x1=l+r.visibleWidth/2,F(r,a)}}))}(t,e,i,o,a)}})).on(&quot;drag&quot;,(function(r){if(&quot;fixed&quot;!==r.arrangement){var n=i.event.x,a=i.event.y;&quot;snap&quot;===r.arrangement?(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2,r.node.y0=a-r.visibleHeight/2,r.node.y1=a+r.visibleHeight/2):(&quot;freeform&quot;===r.arrangement&amp;&amp;(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2),a=Math.max(0,Math.min(r.size-r.visibleHeight/2,a)),r.node.y0=a-r.visibleHeight/2,r.node.y1=a+r.visibleHeight/2),B(r.node),&quot;snap&quot;!==r.arrangement&amp;&amp;(r.sankey.update(r.graph),M(t.filter(N(r)),e))}})).on(&quot;dragend&quot;,(function(t){if(&quot;fixed&quot;!==t.arrangement){t.interactionState.dragInProgress=!1;for(var e=0;e&lt;t.node.childrenNodes.length;e++)t.node.childrenNodes[e].x=t.node.x,t.node.childrenNodes[e].y=t.node.y;&quot;snap&quot;!==t.arrangement&amp;&amp;F(t,a)}}));t.on(&quot;.drag&quot;,null).call(o)}function F(t,e){for(var r=[],n=[],i=0;i&lt;t.graph.nodes.length;i++){var a=(t.graph.nodes[i].x0+t.graph.nodes[i].x1)/2,o=(t.graph.nodes[i].y0+t.graph.nodes[i].y1)/2;r.push(a/t.figure.width),n.push(o/t.figure.height)}y.call(&quot;_guiRestyle&quot;,e,{&quot;node.x&quot;:[r],&quot;node.y&quot;:[n]},t.trace.index).then((function(){e._fullLayout._dragCover&amp;&amp;e._fullLayout._dragCover.remove()}))}function B(t){t.lastDraggedX=t.x0+t.dx/2,t.lastDraggedY=t.y0+t.dy/2}function N(t){return function(e){return e.node.originalX===t.node.originalX}}e.exports=function(t,e,r,l,c){var u=!1;f.ensureSingle(t._fullLayout._infolayer,&quot;g&quot;,&quot;first-render&quot;,(function(){u=!0}));var h=t._fullLayout._dragCover,p=r.filter((function(t){return m(t).trace.visible})).map(x.bind(null,l)),v=e.selectAll(&quot;.&quot;+n.cn.sankey).data(p,d);v.exit().remove(),v.enter().append(&quot;g&quot;).classed(n.cn.sankey,!0).style(&quot;box-sizing&quot;,&quot;content-box&quot;).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;left&quot;,0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;).style(&quot;pointer-events&quot;,&quot;auto&quot;).attr(&quot;transform&quot;,E),v.each((function(e,r){t._fullData[r]._sankey=e;var n=&quot;bgsankey-&quot;+e.trace.uid+&quot;-&quot;+r;f.ensureSingle(t._fullLayout._draggers,&quot;rect&quot;,n),t._fullData[r]._bgRect=i.select(&quot;.&quot;+n),t._fullData[r]._bgRect.style(&quot;pointer-events&quot;,&quot;all&quot;).attr(&quot;width&quot;,e.width).attr(&quot;height&quot;,e.height).attr(&quot;x&quot;,e.translateX).attr(&quot;y&quot;,e.translateY).classed(&quot;bgsankey&quot;,!0).style({fill:&quot;transparent&quot;,&quot;stroke-width&quot;:0})})),v.transition().ease(n.ease).duration(n.duration).attr(&quot;transform&quot;,E);var y=v.selectAll(&quot;.&quot;+n.cn.sankeyLinks).data(g,d);y.enter().append(&quot;g&quot;).classed(n.cn.sankeyLinks,!0).style(&quot;fill&quot;,&quot;none&quot;);var k=y.selectAll(&quot;.&quot;+n.cn.sankeyLink).data((function(t){return t.graph.links.filter((function(t){return t.value})).map(b.bind(null,t))}),d);k.enter().append(&quot;path&quot;).classed(n.cn.sankeyLink,!0).call(D,v,c.linkEvents),k.style(&quot;stroke&quot;,(function(t){return S(t)?o.tinyRGB(a(t.linkLineColor)):t.tinyColorHue})).style(&quot;stroke-opacity&quot;,(function(t){return S(t)?o.opacity(t.linkLineColor):t.tinyColorAlpha})).style(&quot;fill&quot;,(function(t){return t.tinyColorHue})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})).style(&quot;stroke-width&quot;,(function(t){return S(t)?t.linkLineWidth:1})).attr(&quot;d&quot;,_()),k.style(&quot;opacity&quot;,(function(){return t._context.staticPlot||u||h?1:0})).transition().ease(n.ease).duration(n.duration).style(&quot;opacity&quot;,1),k.exit().transition().ease(n.ease).duration(n.duration).style(&quot;opacity&quot;,0).remove();var M=v.selectAll(&quot;.&quot;+n.cn.sankeyNodeSet).data(g,d);M.enter().append(&quot;g&quot;).classed(n.cn.sankeyNodeSet,!0),M.style(&quot;cursor&quot;,(function(t){switch(t.arrangement){case&quot;fixed&quot;:return&quot;default&quot;;case&quot;perpendicular&quot;:return&quot;ns-resize&quot;;default:return&quot;move&quot;}}));var F=M.selectAll(&quot;.&quot;+n.cn.sankeyNode).data((function(t){var e=t.graph.nodes;return function(t){var e,r=[];for(e=0;e&lt;t.length;e++)t[e].originalX=(t[e].x0+t[e].x1)/2,t[e].originalY=(t[e].y0+t[e].y1)/2,-1===r.indexOf(t[e].originalX)&amp;&amp;r.push(t[e].originalX);for(r.sort((function(t,e){return t-e})),e=0;e&lt;t.length;e++)t[e].originalLayerIndex=r.indexOf(t[e].originalX),t[e].originalLayer=t[e].originalLayerIndex/(r.length-1)}(e),e.map(w.bind(null,t))}),d);F.enter().append(&quot;g&quot;).classed(n.cn.sankeyNode,!0).call(T).style(&quot;opacity&quot;,(function(e){return!t._context.staticPlot&amp;&amp;!u||e.partOfGroup?0:1})),F.call(D,v,c.nodeEvents).call(R,k,c,t),F.transition().ease(n.ease).duration(n.duration).call(T).style(&quot;opacity&quot;,(function(t){return t.partOfGroup?0:1})),F.exit().transition().ease(n.ease).duration(n.duration).style(&quot;opacity&quot;,0).remove();var B=F.selectAll(&quot;.&quot;+n.cn.nodeRect).data(g);B.enter().append(&quot;rect&quot;).classed(n.cn.nodeRect,!0).call(A),B.style(&quot;stroke-width&quot;,(function(t){return t.nodeLineWidth})).style(&quot;stroke&quot;,(function(t){return o.tinyRGB(a(t.nodeLineColor))})).style(&quot;stroke-opacity&quot;,(function(t){return o.opacity(t.nodeLineColor)})).style(&quot;fill&quot;,(function(t){return t.tinyColorHue})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),B.transition().ease(n.ease).duration(n.duration).call(A);var N=F.selectAll(&quot;.&quot;+n.cn.nodeCapture).data(g);N.enter().append(&quot;rect&quot;).classed(n.cn.nodeCapture,!0).style(&quot;fill-opacity&quot;,0),N.attr(&quot;x&quot;,(function(t){return t.zoneX})).attr(&quot;y&quot;,(function(t){return t.zoneY})).attr(&quot;width&quot;,(function(t){return t.zoneWidth})).attr(&quot;height&quot;,(function(t){return t.zoneHeight}));var j=F.selectAll(&quot;.&quot;+n.cn.nodeCentered).data(g);j.enter().append(&quot;g&quot;).classed(n.cn.nodeCentered,!0).attr(&quot;transform&quot;,C),j.transition().ease(n.ease).duration(n.duration).attr(&quot;transform&quot;,C);var U=j.selectAll(&quot;.&quot;+n.cn.nodeLabelGuide).data(g);U.enter().append(&quot;path&quot;).classed(n.cn.nodeLabelGuide,!0).attr(&quot;id&quot;,(function(t){return t.uniqueNodeLabelPathId})).attr(&quot;d&quot;,L).attr(&quot;transform&quot;,I),U.transition().ease(n.ease).duration(n.duration).attr(&quot;d&quot;,L).attr(&quot;transform&quot;,I);var V=j.selectAll(&quot;.&quot;+n.cn.nodeLabel).data(g);V.enter().append(&quot;text&quot;).classed(n.cn.nodeLabel,!0).attr(&quot;transform&quot;,P).style(&quot;cursor&quot;,&quot;default&quot;).style(&quot;fill&quot;,&quot;black&quot;),V.style(&quot;text-shadow&quot;,(function(t){return t.horizontal?&quot;-1px 1px 1px #fff, 1px 1px 1px #fff, 1px -1px 1px #fff, -1px -1px 1px #fff&quot;:&quot;none&quot;})).each((function(t){s.font(V,t.textFont)})),V.transition().ease(n.ease).duration(n.duration).attr(&quot;transform&quot;,P);var q=V.selectAll(&quot;.&quot;+n.cn.nodeLabelTextPath).data(g);q.enter().append(&quot;textPath&quot;).classed(n.cn.nodeLabelTextPath,!0).attr(&quot;alignment-baseline&quot;,&quot;middle&quot;).attr(&quot;xlink:href&quot;,(function(t){return&quot;#&quot;+t.uniqueNodeLabelPathId})).attr(&quot;startOffset&quot;,O).style(&quot;fill&quot;,z),q.text((function(t){return t.horizontal||t.node.dy&gt;5?t.node.label:&quot;&quot;})).attr(&quot;text-anchor&quot;,(function(t){return t.horizontal&amp;&amp;t.left?&quot;end&quot;:&quot;start&quot;})),q.transition().ease(n.ease).duration(n.duration).attr(&quot;startOffset&quot;,O).style(&quot;fill&quot;,z)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;../../registry&quot;:911,&quot;./constants&quot;:1180,&quot;@plotly/d3-sankey&quot;:56,&quot;@plotly/d3-sankey-circular&quot;:55,d3:169,&quot;d3-force&quot;:160,&quot;d3-interpolate&quot;:162,tinycolor2:576}],1185:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=[],n=t.cd[0].trace,i=n._sankey.graph.nodes,a=0;a&lt;i.length;a++){var o=i[a];if(!o.partOfGroup){var s=[(o.x0+o.x1)/2,(o.y0+o.y1)/2];&quot;v&quot;===n.orientation&amp;&amp;s.reverse(),e&amp;&amp;e.contains(s,!1,a,t)&amp;&amp;r.push({pointNumber:o.pointNumber})}}return r}},{}],1186:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.texttemplate,t,&quot;txt&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;),n.mergeArray(e.customdata,t,&quot;data&quot;),n.mergeArray(e.textposition,t,&quot;tp&quot;),e.textfont&amp;&amp;(n.mergeArrayCastPositive(e.textfont.size,t,&quot;ts&quot;),n.mergeArray(e.textfont.color,t,&quot;tc&quot;),n.mergeArray(e.textfont.family,t,&quot;tf&quot;));var i=e.marker;if(i){n.mergeArrayCastPositive(i.size,t,&quot;ms&quot;),n.mergeArrayCastPositive(i.opacity,t,&quot;mo&quot;),n.mergeArray(i.symbol,t,&quot;mx&quot;),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;i.line&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;));var o=i.gradient;o&amp;&amp;&quot;none&quot;!==o.type&amp;&amp;(n.mergeArray(o.type,t,&quot;mgt&quot;),n.mergeArray(o.color,t,&quot;mgc&quot;))}}},{&quot;../../lib&quot;:778}],1187:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../components/drawing/attributes&quot;).dash,l=t(&quot;../../components/drawing&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},x0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},dx:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;,anim:!0},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},y0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},dy:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;,anim:!0},xperiod:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},yperiod:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},xperiod0:{valType:&quot;any&quot;,editType:&quot;calc&quot;},yperiod0:{valType:&quot;any&quot;,editType:&quot;calc&quot;},xperiodalignment:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;middle&quot;,&quot;end&quot;],dflt:&quot;middle&quot;,editType:&quot;calc&quot;},yperiodalignment:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;middle&quot;,&quot;end&quot;],dflt:&quot;middle&quot;,editType:&quot;calc&quot;},stackgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc&quot;},groupnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;fraction&quot;,&quot;percent&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},stackgaps:{valType:&quot;enumerated&quot;,values:[&quot;infer zero&quot;,&quot;interpolate&quot;],dflt:&quot;infer zero&quot;,editType:&quot;calc&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},texttemplate:n({},{}),hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},mode:{valType:&quot;flaglist&quot;,flags:[&quot;lines&quot;,&quot;markers&quot;,&quot;text&quot;],extras:[&quot;none&quot;],editType:&quot;calc&quot;},hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;points&quot;,&quot;fills&quot;],editType:&quot;style&quot;},hovertemplate:i({},{keys:c.eventDataKeys}),line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;,anim:!0},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;,anim:!0},shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;spline&quot;,&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},smoothing:{valType:&quot;number&quot;,min:0,max:1.3,dflt:1,editType:&quot;plot&quot;},dash:u({},s,{editType:&quot;style&quot;}),simplify:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},connectgaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},cliponaxis:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},fill:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;tozeroy&quot;,&quot;tozerox&quot;,&quot;tonexty&quot;,&quot;tonextx&quot;,&quot;toself&quot;,&quot;tonext&quot;],editType:&quot;calc&quot;},fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;,anim:!0},marker:u({symbol:{valType:&quot;enumerated&quot;,values:l.symbolList,dflt:&quot;circle&quot;,arrayOk:!0,editType:&quot;style&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,arrayOk:!0,editType:&quot;style&quot;,anim:!0},size:{valType:&quot;number&quot;,min:0,dflt:6,arrayOk:!0,editType:&quot;calc&quot;,anim:!0},maxdisplayed:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},sizeref:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},sizemin:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},sizemode:{valType:&quot;enumerated&quot;,values:[&quot;diameter&quot;,&quot;area&quot;],dflt:&quot;diameter&quot;,editType:&quot;calc&quot;},line:u({width:{valType:&quot;number&quot;,min:0,arrayOk:!0,editType:&quot;style&quot;,anim:!0},editType:&quot;calc&quot;},a(&quot;marker.line&quot;,{anim:!0})),gradient:{type:{valType:&quot;enumerated&quot;,values:[&quot;radial&quot;,&quot;horizontal&quot;,&quot;vertical&quot;,&quot;none&quot;],arrayOk:!0,dflt:&quot;none&quot;,editType:&quot;calc&quot;},color:{valType:&quot;color&quot;,arrayOk:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},a(&quot;marker&quot;,{anim:!0})),selected:{marker:{opacity:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},size:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},textfont:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;},unselected:{marker:{opacity:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},size:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},textfont:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;},textposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle left&quot;,&quot;middle center&quot;,&quot;middle right&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],dflt:&quot;middle center&quot;,arrayOk:!0,editType:&quot;calc&quot;},textfont:o({editType:&quot;calc&quot;,colorEditType:&quot;style&quot;,arrayOk:!0}),r:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},t:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;}}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing&quot;:665,&quot;../../components/drawing/attributes&quot;:664,&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906,&quot;./constants&quot;:1191}],1188:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=t(&quot;./subtypes&quot;),c=t(&quot;./colorscale_calc&quot;),u=t(&quot;./arrays_to_calcdata&quot;),f=t(&quot;./calc_selection&quot;);function h(t,e,r,n,i,o,s){var c=e._length,u=t._fullLayout,f=r._id,h=n._id,p=u._firstScatter[g(e)]===e.uid,d=(m(e,u,r,n)||{}).orientation,v=e.fill;r._minDtick=0,n._minDtick=0;var y={padded:!0},x={padded:!0};s&amp;&amp;(y.ppad=x.ppad=s);var b=c&lt;2||i[0]!==i[c-1]||o[0]!==o[c-1];b&amp;&amp;(&quot;tozerox&quot;===v||&quot;tonextx&quot;===v&amp;&amp;(p||&quot;h&quot;===d))?y.tozero=!0:(e.error_y||{}).visible||&quot;tonexty&quot;!==v&amp;&amp;&quot;tozeroy&quot;!==v&amp;&amp;(l.hasMarkers(e)||l.hasText(e))||(y.padded=!1,y.ppad=0),b&amp;&amp;(&quot;tozeroy&quot;===v||&quot;tonexty&quot;===v&amp;&amp;(p||&quot;v&quot;===d))?x.tozero=!0:&quot;tonextx&quot;!==v&amp;&amp;&quot;tozerox&quot;!==v||(x.padded=!1),f&amp;&amp;(e._extremes[f]=a.findExtremes(r,i,y)),h&amp;&amp;(e._extremes[h]=a.findExtremes(n,o,x))}function p(t,e){if(l.hasMarkers(t)){var r,n=t.marker,o=1.6*(t.marker.sizeref||1);if(r=&quot;area&quot;===t.marker.sizemode?function(t){return Math.max(Math.sqrt((t||0)/o),3)}:function(t){return Math.max((t||0)/o,3)},i.isArrayOrTypedArray(n.size)){var s={type:&quot;linear&quot;};a.setConvert(s);for(var c=s.makeCalcdata(t.marker,&quot;size&quot;),u=new Array(e),f=0;f&lt;e;f++)u[f]=r(c[f]);return u}return r(n.size)}}function d(t,e){var r=g(e),n=t._firstScatter;n[r]||(n[r]=e.uid)}function g(t){var e=t.stackgroup;return t.xaxis+t.yaxis+t.type+(e?&quot;-&quot;+e:&quot;&quot;)}function m(t,e,r,n){var i=t.stackgroup;if(i){var a=e._scatterStackOpts[r._id+n._id][i],o=&quot;v&quot;===a.orientation?n:r;return&quot;linear&quot;===o.type||&quot;log&quot;===o.type?a:void 0}}e.exports={calc:function(t,e){var r,l,g,v,y,x,b=t._fullLayout,_=a.getFromId(t,e.xaxis||&quot;x&quot;),w=a.getFromId(t,e.yaxis||&quot;y&quot;),T=_.makeCalcdata(e,&quot;x&quot;),k=w.makeCalcdata(e,&quot;y&quot;),M=o(e,_,&quot;x&quot;,T),A=o(e,w,&quot;y&quot;,k),S=e._length,E=new Array(S),C=e.ids,L=m(e,b,_,w),I=!1;d(b,e);var P,z=&quot;x&quot;,O=&quot;y&quot;;L?(i.pushUnique(L.traceIndices,e._expandedIndex),(r=&quot;v&quot;===L.orientation)?(O=&quot;s&quot;,P=&quot;x&quot;):(z=&quot;s&quot;,P=&quot;y&quot;),y=&quot;interpolate&quot;===L.stackgaps):h(t,e,_,w,M,A,p(e,S));var D=!!e.xperiodalignment,R=!!e.yperiodalignment;for(l=0;l&lt;S;l++){var F=E[l]={},B=n(M[l]),N=n(A[l]);B&amp;&amp;N?(F[z]=M[l],F[O]=A[l],D&amp;&amp;(F.orig_x=T[l]),R&amp;&amp;(F.orig_y=k[l])):L&amp;&amp;(r?B:N)?(F[P]=r?M[l]:A[l],F.gap=!0,y?(F.s=s,I=!0):F.s=0):F[z]=F[O]=s,C&amp;&amp;(F.id=String(C[l]))}if(u(E,e),c(t,e),f(E,e),L){for(l=0;l&lt;E.length;)E[l][P]===s?E.splice(l,1):l++;if(i.sort(E,(function(t,e){return t[P]-e[P]||t.i-e.i})),I){for(l=0;l&lt;E.length-1&amp;&amp;E[l].gap;)l++;for((x=E[l].s)||(x=E[l].s=0),g=0;g&lt;l;g++)E[g].s=x;for(v=E.length-1;v&gt;l&amp;&amp;E[v].gap;)v--;for(x=E[v].s,g=E.length-1;g&gt;v;g--)E[g].s=x;for(;l&lt;v;)if(E[++l].gap){for(g=l+1;E[g].gap;)g++;for(var j=E[l-1][P],U=E[l-1].s,V=(E[g].s-U)/(E[g][P]-j);l&lt;g;)E[l].s=U+(E[l][P]-j)*V,l++}}}return E},calcMarkerSize:p,calcAxisExpansion:h,setFirstScatter:d,getStackOpts:m}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;./arrays_to_calcdata&quot;:1186,&quot;./calc_selection&quot;:1189,&quot;./colorscale_calc&quot;:1190,&quot;./subtypes&quot;:1212,&quot;fast-isnumeric&quot;:241}],1189:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){n.isArrayOrTypedArray(e.selectedpoints)&amp;&amp;n.tagSelected(t,e)}},{&quot;../../lib&quot;:778}],1190:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,i=t(&quot;../../components/colorscale/calc&quot;),a=t(&quot;./subtypes&quot;);e.exports=function(t,e){a.hasLines(e)&amp;&amp;n(e,&quot;line&quot;)&amp;&amp;i(t,e,{vals:e.line.color,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;}),a.hasMarkers(e)&amp;&amp;(n(e,&quot;marker&quot;)&amp;&amp;i(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),n(e,&quot;marker.line&quot;)&amp;&amp;i(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}))}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;./subtypes&quot;:1212}],1191:[function(t,e,r){&quot;use strict&quot;;e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},{}],1192:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./calc&quot;);function i(t,e,r,n,i,a,o){i[n]=!0;var s={i:null,gap:!0,s:0};if(s[o]=r,t.splice(e,0,s),e&amp;&amp;r===t[e-1][o]){var l=t[e-1];s.s=l.s,s.i=l.i,s.gap=l.gap}else a&amp;&amp;(s.s=function(t,e,r,n){var i=t[e-1],a=t[e+1];return a?i?i.s+(a.s-i.s)*(r-i[n])/(a[n]-i[n]):a.s:i.s}(t,e,r,o));e||(t[0].t=t[1].t,t[0].trace=t[1].trace,delete t[1].t,delete t[1].trace)}e.exports=function(t,e){var r=e.xaxis,a=e.yaxis,o=r._id+a._id,s=t._fullLayout._scatterStackOpts[o];if(s){var l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T=t.calcdata;for(var k in s){var M=(v=s[k]).traceIndices;if(M.length){for(y=&quot;interpolate&quot;===v.stackgaps,x=v.groupnorm,&quot;v&quot;===v.orientation?(b=&quot;x&quot;,_=&quot;y&quot;):(b=&quot;y&quot;,_=&quot;x&quot;),w=new Array(M.length),l=0;l&lt;w.length;l++)w[l]=!1;p=T[M[0]];var A=new Array(p.length);for(l=0;l&lt;p.length;l++)A[l]=p[l][b];for(l=1;l&lt;M.length;l++){for(h=T[M[l]],c=u=0;c&lt;h.length;c++){for(d=h[c][b];d&gt;A[u]&amp;&amp;u&lt;A.length;u++)i(h,c,A[u],l,w,y,b),c++;if(d!==A[u]){for(f=0;f&lt;l;f++)i(T[M[f]],u,d,f,w,y,b);A.splice(u,0,d)}u++}for(;u&lt;A.length;u++)i(h,c,A[u],l,w,y,b),c++}var S=A.length;for(c=0;c&lt;p.length;c++){for(g=p[c][_]=p[c].s,l=1;l&lt;M.length;l++)(h=T[M[l]])[0].trace._rawLength=h[0].trace._length,h[0].trace._length=S,g+=h[c].s,h[c][_]=g;if(x)for(m=(&quot;fraction&quot;===x?g:g/100)||1,l=0;l&lt;M.length;l++){var E=T[M[l]][c];E[_]/=m,E.sNorm=E.s/m}}for(l=0;l&lt;M.length;l++){var C=(h=T[M[l]])[0].trace,L=n.calcMarkerSize(C,C._rawLength),I=Array.isArray(L);if(L&amp;&amp;w[l]||I){var P=L;for(L=new Array(S),c=0;c&lt;S;c++)L[c]=h[c].gap?0:I?P[h[c].i]:P}var z=new Array(S),O=new Array(S);for(c=0;c&lt;S;c++)z[c]=h[c].x,O[c]=h[c].y;n.calcAxisExpansion(t,C,r,a,z,O,L),h[0].t.orientation=v.orientation}}}}}},{&quot;./calc&quot;:1188}],1193:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=0;e&lt;t.length;e++){var r=t[e];if(&quot;scatter&quot;===r.type){var n=r.fill;if(&quot;none&quot;!==n&amp;&amp;&quot;toself&quot;!==n&amp;&amp;(r.opacity=void 0,&quot;tonexty&quot;===n||&quot;tonextx&quot;===n))for(var i=e-1;i&gt;=0;i--){var a=t[i];if(&quot;scatter&quot;===a.type&amp;&amp;a.xaxis===r.xaxis&amp;&amp;a.yaxis===r.yaxis){a.opacity=void 0;break}}}}}},{}],1194:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;),s=t(&quot;./subtypes&quot;),l=t(&quot;./xy_defaults&quot;),c=t(&quot;./period_defaults&quot;),u=t(&quot;./stack_defaults&quot;),f=t(&quot;./marker_defaults&quot;),h=t(&quot;./line_defaults&quot;),p=t(&quot;./line_shape_defaults&quot;),d=t(&quot;./text_defaults&quot;),g=t(&quot;./fillcolor_defaults&quot;);e.exports=function(t,e,r,m){function v(r,i){return n.coerce(t,e,a,r,i)}var y=l(t,e,m,v);if(y||(e.visible=!1),e.visible){c(t,e,m,v);var x=u(t,e,m,v),b=!x&amp;&amp;y&lt;o.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;;v(&quot;text&quot;),v(&quot;hovertext&quot;),v(&quot;mode&quot;,b),s.hasLines(e)&amp;&amp;(h(t,e,r,m,v),p(t,e,v),v(&quot;connectgaps&quot;),v(&quot;line.simplify&quot;)),s.hasMarkers(e)&amp;&amp;f(t,e,r,m,v,{gradient:!0}),s.hasText(e)&amp;&amp;(v(&quot;texttemplate&quot;),d(t,e,m,v));var _=[];(s.hasMarkers(e)||s.hasText(e))&amp;&amp;(v(&quot;cliponaxis&quot;),v(&quot;marker.maxdisplayed&quot;),_.push(&quot;points&quot;)),v(&quot;fill&quot;,x?x.fillDflt:&quot;none&quot;),&quot;none&quot;!==e.fill&amp;&amp;(g(t,e,r,v),s.hasLines(e)||p(t,e,v));var w=(e.line||{}).color,T=(e.marker||{}).color;&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||_.push(&quot;fills&quot;),v(&quot;hoveron&quot;,_.join(&quot;+&quot;)||&quot;points&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;v(&quot;hovertemplate&quot;);var k=i.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);k(t,e,w||T||r,{axis:&quot;y&quot;}),k(t,e,w||T||r,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,v)}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1187,&quot;./constants&quot;:1191,&quot;./fillcolor_defaults&quot;:1195,&quot;./line_defaults&quot;:1200,&quot;./line_shape_defaults&quot;:1202,&quot;./marker_defaults&quot;:1206,&quot;./period_defaults&quot;:1207,&quot;./stack_defaults&quot;:1210,&quot;./subtypes&quot;:1212,&quot;./text_defaults&quot;:1213,&quot;./xy_defaults&quot;:1214}],1195:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a){var o=!1;if(e.marker){var s=e.marker.color,l=(e.marker.line||{}).color;s&amp;&amp;!i(s)?o=s:l&amp;&amp;!i(l)&amp;&amp;(o=l)}a(&quot;fillcolor&quot;,n.addOpacity((e.line||{}).color||o||r,.5))}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778}],1196:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a={_fullLayout:r},o=n.getFromTrace(a,e,&quot;x&quot;),s=n.getFromTrace(a,e,&quot;y&quot;);return i.xLabel=n.tickText(o,t.x,!0).text,i.yLabel=n.tickText(s,t.y,!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1197:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;./subtypes&quot;);e.exports=function(t,e){var r,a;if(&quot;lines&quot;===t.mode)return(r=t.line.color)&amp;&amp;n.opacity(r)?r:t.fillcolor;if(&quot;none&quot;===t.mode)return t.fill?t.fillcolor:&quot;&quot;;var o=e.mcc||(t.marker||{}).color,s=e.mlcc||((t.marker||{}).line||{}).color;return(a=o&amp;&amp;n.opacity(o)?o:s&amp;&amp;n.opacity(s)&amp;&amp;(e.mlw||((t.marker||{}).line||{}).width)?s:&quot;&quot;)?n.opacity(a)&lt;.3?n.addOpacity(a,.3):a:(r=(t.line||{}).color)&amp;&amp;n.opacity(r)&amp;&amp;i.hasLines(t)&amp;&amp;t.line.width?r:t.fillcolor}},{&quot;../../components/color&quot;:643,&quot;./subtypes&quot;:1212}],1198:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/fx&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;./get_trace_color&quot;),s=t(&quot;../../components/color&quot;),l=n.fillText;e.exports=function(t,e,r,c){var u=t.cd,f=u[0].trace,h=t.xa,p=t.ya,d=h.c2p(e),g=p.c2p(r),m=[d,g],v=f.hoveron||&quot;&quot;,y=-1!==f.mode.indexOf(&quot;markers&quot;)?3:.5;if(-1!==v.indexOf(&quot;points&quot;)){var x=function(t){var e=Math.max(y,t.mrc||0),r=h.c2p(t.x)-d,n=p.c2p(t.y)-g;return Math.max(Math.sqrt(r*r+n*n)-e,1-y/e)},b=i.getDistanceFunction(c,(function(t){var e=Math.max(3,t.mrc||0),r=1-1/e,n=Math.abs(h.c2p(t.x)-d);return n&lt;e?r*n/e:n-e+r}),(function(t){var e=Math.max(3,t.mrc||0),r=1-1/e,n=Math.abs(p.c2p(t.y)-g);return n&lt;e?r*n/e:n-e+r}),x);if(i.getClosest(u,b,t),!1!==t.index){var _=u[t.index],w=h.c2p(_.x,!0),T=p.c2p(_.y,!0),k=_.mrc||1;t.index=_.i;var M=u[0].t.orientation,A=M&amp;&amp;(_.sNorm||_.s),S=&quot;h&quot;===M?A:void 0!==_.orig_x?_.orig_x:_.x,E=&quot;v&quot;===M?A:void 0!==_.orig_y?_.orig_y:_.y;return n.extendFlat(t,{color:o(f,_),x0:w-k,x1:w+k,xLabelVal:S,y0:T-k,y1:T+k,yLabelVal:E,spikeDistance:x(_),hovertemplate:f.hovertemplate}),l(_,f,t),a.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(_,f,t),[t]}}if(-1!==v.indexOf(&quot;fills&quot;)&amp;&amp;f._polygons){var C,L,I,P,z,O,D,R,F,B=f._polygons,N=[],j=!1,U=1/0,V=-1/0,q=1/0,H=-1/0;for(C=0;C&lt;B.length;C++)(I=B[C]).contains(m)&amp;&amp;(j=!j,N.push(I),q=Math.min(q,I.ymin),H=Math.max(H,I.ymax));if(j){var G=((q=Math.max(q,0))+(H=Math.min(H,p._length)))/2;for(C=0;C&lt;N.length;C++)for(P=N[C].pts,L=1;L&lt;P.length;L++)(R=P[L-1][1])&gt;G!=(F=P[L][1])&gt;=G&amp;&amp;(O=P[L-1][0],D=P[L][0],F-R&amp;&amp;(z=O+(D-O)*(G-R)/(F-R),U=Math.min(U,z),V=Math.max(V,z)));U=Math.max(U,0),V=Math.min(V,h._length);var Y=s.defaultLine;return s.opacity(f.fillcolor)?Y=f.fillcolor:s.opacity((f.line||{}).color)&amp;&amp;(Y=f.line.color),n.extendFlat(t,{distance:t.maxHoverDistance,x0:U,x1:V,y0:G,y1:G,color:Y,hovertemplate:!1}),delete t.index,f.text&amp;&amp;!Array.isArray(f.text)?t.text=String(f.text):t.text=f.name,[t]}}}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./get_trace_color&quot;:1197}],1199:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./subtypes&quot;);e.exports={hasLines:n.hasLines,hasMarkers:n.hasMarkers,hasText:n.hasText,isBubble:n.isBubble,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./cross_trace_calc&quot;),arraysToCalcdata:t(&quot;./arrays_to_calcdata&quot;),plot:t(&quot;./plot&quot;),colorbar:t(&quot;./marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;./select&quot;),animatable:!0,moduleType:&quot;trace&quot;,name:&quot;scatter&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./arrays_to_calcdata&quot;:1186,&quot;./attributes&quot;:1187,&quot;./calc&quot;:1188,&quot;./cross_trace_calc&quot;:1192,&quot;./cross_trace_defaults&quot;:1193,&quot;./defaults&quot;:1194,&quot;./format_labels&quot;:1196,&quot;./hover&quot;:1198,&quot;./marker_colorbar&quot;:1205,&quot;./plot&quot;:1208,&quot;./select&quot;:1209,&quot;./style&quot;:1211,&quot;./subtypes&quot;:1212}],1200:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray,i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;);e.exports=function(t,e,r,o,s,l){var c=(t.marker||{}).color;(s(&quot;line.color&quot;,r),i(t,&quot;line&quot;))?a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}):s(&quot;line.color&quot;,!n(c)&amp;&amp;c||r);s(&quot;line.width&quot;),(l||{}).noDash||s(&quot;line.dash&quot;)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778}],1201:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/numerical&quot;),i=n.BADNUM,a=n.LOG_CLIP,o=a+.5,s=a-.5,l=t(&quot;../../lib&quot;),c=l.segmentsIntersect,u=l.constrain,f=t(&quot;./constants&quot;);e.exports=function(t,e){var r,n,a,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S=e.xaxis,E=e.yaxis,C=&quot;log&quot;===S.type,L=&quot;log&quot;===E.type,I=S._length,P=E._length,z=e.connectGaps,O=e.baseTolerance,D=e.shape,R=&quot;linear&quot;===D,F=e.fill&amp;&amp;&quot;none&quot;!==e.fill,B=[],N=f.minTolerance,j=t.length,U=new Array(j),V=0;function q(r){var n=t[r];if(!n)return!1;var a=e.linearized?S.l2p(n.x):S.c2p(n.x),l=e.linearized?E.l2p(n.y):E.c2p(n.y);if(a===i){if(C&amp;&amp;(a=S.c2p(n.x,!0)),a===i)return!1;L&amp;&amp;l===i&amp;&amp;(a*=Math.abs(S._m*P*(S._m&gt;0?o:s)/(E._m*I*(E._m&gt;0?o:s)))),a*=1e3}if(l===i){if(L&amp;&amp;(l=E.c2p(n.y,!0)),l===i)return!1;l*=1e3}return[a,l]}function H(t,e,r,n){var i=r-t,a=n-e,o=.5-t,s=.5-e,l=i*i+a*a,c=i*o+a*s;if(c&gt;0&amp;&amp;c&lt;l){var u=o*a-s*i;if(u*u&lt;l)return!0}}function G(t,e){var r=t[0]/I,n=t[1]/P,i=Math.max(0,-r,r-1,-n,n-1);return i&amp;&amp;void 0!==M&amp;&amp;H(r,n,M,A)&amp;&amp;(i=0),i&amp;&amp;e&amp;&amp;H(r,n,e[0]/I,e[1]/P)&amp;&amp;(i=0),(1+f.toleranceGrowth*i)*O}function Y(t,e){var r=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(r*r+n*n)}var W,X,Z,J,K,Q,$,tt=f.maxScreensAway,et=-I*tt,rt=I*(1+tt),nt=-P*tt,it=P*(1+tt),at=[[et,nt,rt,nt],[rt,nt,rt,it],[rt,it,et,it],[et,it,et,nt]];function ot(t){if(t[0]&lt;et||t[0]&gt;rt||t[1]&lt;nt||t[1]&gt;it)return[u(t[0],et,rt),u(t[1],nt,it)]}function st(t,e){return t[0]===e[0]&amp;&amp;(t[0]===et||t[0]===rt)||(t[1]===e[1]&amp;&amp;(t[1]===nt||t[1]===it)||void 0)}function lt(t,e,r){return function(n,i){var a=ot(n),o=ot(i),s=[];if(a&amp;&amp;o&amp;&amp;st(a,o))return s;a&amp;&amp;s.push(a),o&amp;&amp;s.push(o);var c=2*l.constrain((n[t]+i[t])/2,e,r)-((a||n)[t]+(o||i)[t]);c&amp;&amp;((a&amp;&amp;o?c&gt;0==a[t]&gt;o[t]?a:o:a||o)[t]+=c);return s}}function ct(t){var e=t[0],r=t[1],n=e===U[V-1][0],i=r===U[V-1][1];if(!n||!i)if(V&gt;1){var a=e===U[V-2][0],o=r===U[V-2][1];n&amp;&amp;(e===et||e===rt)&amp;&amp;a?o?V--:U[V-1]=t:i&amp;&amp;(r===nt||r===it)&amp;&amp;o?a?V--:U[V-1]=t:U[V++]=t}else U[V++]=t}function ut(t){U[V-1][0]!==t[0]&amp;&amp;U[V-1][1]!==t[1]&amp;&amp;ct([Z,J]),ct(t),K=null,Z=J=0}function ft(t){if(M=t[0]/I,A=t[1]/P,W=t[0]&lt;et?et:t[0]&gt;rt?rt:0,X=t[1]&lt;nt?nt:t[1]&gt;it?it:0,W||X){if(V)if(K){var e=$(K,t);e.length&gt;1&amp;&amp;(ut(e[0]),U[V++]=e[1])}else Q=$(U[V-1],t)[0],U[V++]=Q;else U[V++]=[W||t[0],X||t[1]];var r=U[V-1];W&amp;&amp;X&amp;&amp;(r[0]!==W||r[1]!==X)?(K&amp;&amp;(Z!==W&amp;&amp;J!==X?ct(Z&amp;&amp;J?(n=K,a=(i=t)[0]-n[0],o=(i[1]-n[1])/a,(n[1]*i[0]-i[1]*n[0])/a&gt;0?[o&gt;0?et:rt,it]:[o&gt;0?rt:et,nt]):[Z||W,J||X]):Z&amp;&amp;J&amp;&amp;ct([Z,J])),ct([W,X])):Z-W&amp;&amp;J-X&amp;&amp;ct([W||Z,X||J]),K=t,Z=W,J=X}else K&amp;&amp;ut($(K,t)[0]),U[V++]=t;var n,i,a,o}for(&quot;linear&quot;===D||&quot;spline&quot;===D?$=function(t,e){for(var r=[],n=0,i=0;i&lt;4;i++){var a=at[i],o=c(t[0],t[1],e[0],e[1],a[0],a[1],a[2],a[3]);o&amp;&amp;(!n||Math.abs(o.x-r[0][0])&gt;1||Math.abs(o.y-r[0][1])&gt;1)&amp;&amp;(o=[o.x,o.y],n&amp;&amp;Y(o,t)&lt;Y(r[0],t)?r.unshift(o):r.push(o),n++)}return r}:&quot;hv&quot;===D||&quot;vh&quot;===D?$=function(t,e){var r=[],n=ot(t),i=ot(e);return n&amp;&amp;i&amp;&amp;st(n,i)||(n&amp;&amp;r.push(n),i&amp;&amp;r.push(i)),r}:&quot;hvh&quot;===D?$=lt(0,et,rt):&quot;vhv&quot;===D&amp;&amp;($=lt(1,nt,it)),r=0;r&lt;j;r++)if(n=q(r)){for(V=0,K=null,ft(n),r++;r&lt;j;r++){if(!(h=q(r))){if(z)continue;break}if(R&amp;&amp;e.simplify){var ht=q(r+1);if(y=Y(h,n),F&amp;&amp;(0===V||V===j-1)||!(y&lt;G(h,ht)*N)){for(m=[(h[0]-n[0])/y,(h[1]-n[1])/y],p=n,x=y,b=w=T=0,g=!1,a=h,r++;r&lt;t.length;r++){if(d=ht,ht=q(r+1),!d){if(z)continue;break}if(k=(v=[d[0]-n[0],d[1]-n[1]])[0]*m[1]-v[1]*m[0],w=Math.min(w,k),(T=Math.max(T,k))-w&gt;G(d,ht))break;a=d,(_=v[0]*m[0]+v[1]*m[1])&gt;x?(x=_,h=d,g=!1):_&lt;b&amp;&amp;(b=_,p=d,g=!0)}if(g?(ft(h),a!==p&amp;&amp;ft(p)):(p!==n&amp;&amp;ft(p),a!==h&amp;&amp;ft(h)),ft(a),r&gt;=t.length||!d)break;ft(d),n=d}}else ft(h)}K&amp;&amp;ct([Z||K[0],J||K[1]]),B.push(U.slice(0,V))}return B}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./constants&quot;:1191}],1202:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){&quot;spline&quot;===r(&quot;line.shape&quot;)&amp;&amp;r(&quot;line.smoothing&quot;)}},{}],1203:[function(t,e,r){&quot;use strict&quot;;var n={tonextx:1,tonexty:1,tonext:1};e.exports=function(t,e,r){var i,a,o,s,l,c={},u=!1,f=-1,h=0,p=-1;for(a=0;a&lt;r.length;a++)(o=(i=r[a][0].trace).stackgroup||&quot;&quot;)?o in c?l=c[o]:(l=c[o]=h,h++):i.fill in n&amp;&amp;p&gt;=0?l=p:(l=p=h,h++),l&lt;f&amp;&amp;(u=!0),i._groupIndex=f=l;var d=r.slice();u&amp;&amp;d.sort((function(t,e){var r=t[0].trace,n=e[0].trace;return r._groupIndex-n._groupIndex||r.index-n.index}));var g={};for(a=0;a&lt;d.length;a++)o=(i=d[a][0].trace).stackgroup||&quot;&quot;,!0===i.visible?(i._nexttrace=null,i.fill in n&amp;&amp;(s=g[o],i._prevtrace=s||null,s&amp;&amp;(s._nexttrace=i)),i._ownfill=i.fill&amp;&amp;(&quot;tozero&quot;===i.fill.substr(0,6)||&quot;toself&quot;===i.fill||&quot;to&quot;===i.fill.substr(0,2)&amp;&amp;!i._prevtrace),g[o]=i):i._prevtrace=i._nexttrace=i._ownfill=null;return d}},{}],1204:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports=function(t){var e=t.marker,r=e.sizeref||1,i=e.sizemin||0,a=&quot;area&quot;===e.sizemode?function(t){return Math.sqrt(t/r)}:function(t){return t/r};return function(t){var e=a(t/2);return n(e)&amp;&amp;e&gt;0?Math.max(e,i):0}}},{&quot;fast-isnumeric&quot;:241}],1205:[function(t,e,r){&quot;use strict&quot;;e.exports={container:&quot;marker&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;}},{}],1206:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./subtypes&quot;);e.exports=function(t,e,r,s,l,c){var u=o.isBubble(t),f=(t.line||{}).color;(c=c||{},f&amp;&amp;(r=f),l(&quot;marker.symbol&quot;),l(&quot;marker.opacity&quot;,u?.7:1),l(&quot;marker.size&quot;),l(&quot;marker.color&quot;,r),i(t,&quot;marker&quot;)&amp;&amp;a(t,e,s,l,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),c.noSelect||(l(&quot;selected.marker.color&quot;),l(&quot;unselected.marker.color&quot;),l(&quot;selected.marker.size&quot;),l(&quot;unselected.marker.size&quot;)),c.noLine||(l(&quot;marker.line.color&quot;,f&amp;&amp;!Array.isArray(f)&amp;&amp;e.marker.color!==f?f:u?n.background:n.defaultLine),i(t,&quot;marker.line&quot;)&amp;&amp;a(t,e,s,l,{prefix:&quot;marker.line.&quot;,cLetter:&quot;c&quot;}),l(&quot;marker.line.width&quot;,u?1:0)),u&amp;&amp;(l(&quot;marker.sizeref&quot;),l(&quot;marker.sizemin&quot;),l(&quot;marker.sizemode&quot;)),c.gradient)&amp;&amp;(&quot;none&quot;!==l(&quot;marker.gradient.type&quot;)&amp;&amp;l(&quot;marker.gradient.color&quot;))}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;./subtypes&quot;:1212}],1207:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).dateTick0,i=t(&quot;../../constants/numerical&quot;).ONEWEEK;function a(t,e){return n(e,t%i==0?1:0)}e.exports=function(t,e,r,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n(&quot;xperiod&quot;);o&amp;&amp;(n(&quot;xperiod0&quot;,a(o,e.xcalendar)),n(&quot;xperiodalignment&quot;))}if(i.y){var s=n(&quot;yperiod&quot;);s&amp;&amp;(n(&quot;yperiod0&quot;,a(s,e.ycalendar)),n(&quot;yperiodalignment&quot;))}}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778}],1208:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.ensureSingle,s=a.identity,l=t(&quot;../../components/drawing&quot;),c=t(&quot;./subtypes&quot;),u=t(&quot;./line_points&quot;),f=t(&quot;./link_traces&quot;),h=t(&quot;../../lib/polygon&quot;).tester;function p(t,e,r,f,p,d,g){var m;!function(t,e,r,i,o){var s=r.xaxis,l=r.yaxis,u=n.extent(a.simpleMap(s.range,s.r2c)),f=n.extent(a.simpleMap(l.range,l.r2c)),h=i[0].trace;if(!c.hasMarkers(h))return;var p=h.marker.maxdisplayed;if(0===p)return;var d=i.filter((function(t){return t.x&gt;=u[0]&amp;&amp;t.x&lt;=u[1]&amp;&amp;t.y&gt;=f[0]&amp;&amp;t.y&lt;=f[1]})),g=Math.ceil(d.length/p),m=0;o.forEach((function(t,r){var n=t[0].trace;c.hasMarkers(n)&amp;&amp;n.marker.maxdisplayed&gt;0&amp;&amp;r&lt;e&amp;&amp;m++}));var v=Math.round(m*g/3+Math.floor(m/3)*g/7.1);i.forEach((function(t){delete t.vis})),d.forEach((function(t,e){0===Math.round((e+v)%g)&amp;&amp;(t.vis=!0)}))}(0,e,r,f,p);var v=!!g&amp;&amp;g.duration&gt;0;function y(t){return v?t.transition():t}var x=r.xaxis,b=r.yaxis,_=f[0].trace,w=_.line,T=n.select(d),k=o(T,&quot;g&quot;,&quot;errorbars&quot;),M=o(T,&quot;g&quot;,&quot;lines&quot;),A=o(T,&quot;g&quot;,&quot;points&quot;),S=o(T,&quot;g&quot;,&quot;text&quot;);if(i.getComponentMethod(&quot;errorbars&quot;,&quot;plot&quot;)(t,k,r,g),!0===_.visible){var E,C;y(T).style(&quot;opacity&quot;,_.opacity);var L=_.fill.charAt(_.fill.length-1);&quot;x&quot;!==L&amp;&amp;&quot;y&quot;!==L&amp;&amp;(L=&quot;&quot;),f[0][r.isRangePlot?&quot;nodeRangePlot3&quot;:&quot;node3&quot;]=T;var I,P,z=&quot;&quot;,O=[],D=_._prevtrace;D&amp;&amp;(z=D._prevRevpath||&quot;&quot;,C=D._nextFill,O=D._polygons);var R,F,B,N,j,U,V,q=&quot;&quot;,H=&quot;&quot;,G=[],Y=a.noop;if(E=_._ownFill,c.hasLines(_)||&quot;none&quot;!==_.fill){for(C&amp;&amp;C.datum(f),-1!==[&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;].indexOf(w.shape)?(R=l.steps(w.shape),F=l.steps(w.shape.split(&quot;&quot;).reverse().join(&quot;&quot;))):R=F=&quot;spline&quot;===w.shape?function(t){var e=t[t.length-1];return t.length&gt;1&amp;&amp;t[0][0]===e[0]&amp;&amp;t[0][1]===e[1]?l.smoothclosed(t.slice(1),w.smoothing):l.smoothopen(t,w.smoothing)}:function(t){return&quot;M&quot;+t.join(&quot;L&quot;)},B=function(t){return F(t.reverse())},G=u(f,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify,fill:_.fill}),V=_._polygons=new Array(G.length),m=0;m&lt;G.length;m++)_._polygons[m]=h(G[m]);G.length&amp;&amp;(N=G[0][0],U=(j=G[G.length-1])[j.length-1]),Y=function(t){return function(e){if(I=R(e),P=B(e),q?L?(q+=&quot;L&quot;+I.substr(1),H=P+&quot;L&quot;+H.substr(1)):(q+=&quot;Z&quot;+I,H=P+&quot;Z&quot;+H):(q=I,H=P),c.hasLines(_)&amp;&amp;e.length&gt;1){var r=n.select(this);if(r.datum(f),t)y(r.style(&quot;opacity&quot;,0).attr(&quot;d&quot;,I).call(l.lineGroupStyle)).style(&quot;opacity&quot;,1);else{var i=y(r);i.attr(&quot;d&quot;,I),l.singleLineStyle(f,i)}}}}}var W=M.selectAll(&quot;.js-line&quot;).data(G);y(W.exit()).style(&quot;opacity&quot;,0).remove(),W.each(Y(!1)),W.enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).call(l.lineGroupStyle).each(Y(!0)),l.setClipUrl(W,r.layerClipId,t),G.length?(E?(E.datum(f),N&amp;&amp;U&amp;&amp;(L?(&quot;y&quot;===L?N[1]=U[1]=b.c2p(0,!0):&quot;x&quot;===L&amp;&amp;(N[0]=U[0]=x.c2p(0,!0)),y(E).attr(&quot;d&quot;,&quot;M&quot;+U+&quot;L&quot;+N+&quot;L&quot;+q.substr(1)).call(l.singleFillStyle)):y(E).attr(&quot;d&quot;,q+&quot;Z&quot;).call(l.singleFillStyle))):C&amp;&amp;(&quot;tonext&quot;===_.fill.substr(0,6)&amp;&amp;q&amp;&amp;z?(&quot;tonext&quot;===_.fill?y(C).attr(&quot;d&quot;,q+&quot;Z&quot;+z+&quot;Z&quot;).call(l.singleFillStyle):y(C).attr(&quot;d&quot;,q+&quot;L&quot;+z.substr(1)+&quot;Z&quot;).call(l.singleFillStyle),_._polygons=_._polygons.concat(O)):(Z(C),_._polygons=null)),_._prevRevpath=H,_._prevPolygons=V):(E?Z(E):C&amp;&amp;Z(C),_._polygons=_._prevRevpath=_._prevPolygons=null),A.datum(f),S.datum(f),function(e,i,a){var o,u=a[0].trace,f=c.hasMarkers(u),h=c.hasText(u),p=tt(u),d=et,g=et;if(f||h){var m=s,_=u.stackgroup,w=_&amp;&amp;&quot;infer zero&quot;===t._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;u.marker.maxdisplayed||u._needsCull?m=w?K:J:_&amp;&amp;!w&amp;&amp;(m=Q),f&amp;&amp;(d=m),h&amp;&amp;(g=m)}var T,k=(o=e.selectAll(&quot;path.point&quot;).data(d,p)).enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0);v&amp;&amp;k.call(l.pointStyle,u,t).call(l.translatePoints,x,b).style(&quot;opacity&quot;,0).transition().style(&quot;opacity&quot;,1),o.order(),f&amp;&amp;(T=l.makePointStyleFns(u)),o.each((function(e){var i=n.select(this),a=y(i);l.translatePoint(e,a,x,b)?(l.singlePointStyle(e,a,u,T,t),r.layerClipId&amp;&amp;l.hideOutsideRangePoint(e,a,x,b,u.xcalendar,u.ycalendar),u.customdata&amp;&amp;i.classed(&quot;plotly-customdata&quot;,null!==e.data&amp;&amp;void 0!==e.data)):a.remove()})),v?o.exit().transition().style(&quot;opacity&quot;,0).remove():o.exit().remove(),(o=i.selectAll(&quot;g&quot;).data(g,p)).enter().append(&quot;g&quot;).classed(&quot;textpoint&quot;,!0).append(&quot;text&quot;),o.order(),o.each((function(t){var e=n.select(this),i=y(e.select(&quot;text&quot;));l.translatePoint(t,i,x,b)?r.layerClipId&amp;&amp;l.hideOutsideRangePoint(t,e,x,b,u.xcalendar,u.ycalendar):e.remove()})),o.selectAll(&quot;text&quot;).call(l.textPointStyle,u,t).each((function(t){var e=x.c2p(t.x),r=b.c2p(t.y);n.select(this).selectAll(&quot;tspan.line&quot;).each((function(){y(n.select(this)).attr({x:e,y:r})}))})),o.exit().remove()}(A,S,f);var X=!1===_.cliponaxis?null:r.layerClipId;l.setClipUrl(A,X,t),l.setClipUrl(S,X,t)}function Z(t){y(t).attr(&quot;d&quot;,&quot;M0,0Z&quot;)}function J(t){return t.filter((function(t){return!t.gap&amp;&amp;t.vis}))}function K(t){return t.filter((function(t){return t.vis}))}function Q(t){return t.filter((function(t){return!t.gap}))}function $(t){return t.id}function tt(t){if(t.ids)return $}function et(){return!1}}e.exports=function(t,e,r,i,a,c){var u,h,d=!a,g=!!a&amp;&amp;a.duration&gt;0,m=f(t,e,r);((u=i.selectAll(&quot;g.trace&quot;).data(m,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;trace scatter trace&quot;+t[0].trace.uid})).style(&quot;stroke-miterlimit&quot;,2),u.order(),function(t,e,r){e.each((function(e){var i=o(n.select(this),&quot;g&quot;,&quot;fills&quot;);l.setClipUrl(i,r.layerClipId,t);var a=e[0].trace,c=[];a._ownfill&amp;&amp;c.push(&quot;_ownFill&quot;),a._nexttrace&amp;&amp;c.push(&quot;_nextFill&quot;);var u=i.selectAll(&quot;g&quot;).data(c,s);u.enter().append(&quot;g&quot;),u.exit().each((function(t){a[t]=null})).remove(),u.order().each((function(t){a[t]=o(n.select(this),&quot;path&quot;,&quot;js-fill&quot;)}))}))}(t,u,e),g)?(c&amp;&amp;(h=c()),n.transition().duration(a.duration).ease(a.easing).each(&quot;end&quot;,(function(){h&amp;&amp;h()})).each(&quot;interrupt&quot;,(function(){h&amp;&amp;h()})).each((function(){i.selectAll(&quot;g.trace&quot;).each((function(r,n){p(t,n,e,r,m,this,a)}))}))):u.each((function(r,n){p(t,n,e,r,m,this,a)}));d&amp;&amp;u.exit().remove(),i.selectAll(&quot;path:not([d])&quot;).remove()}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/polygon&quot;:790,&quot;../../registry&quot;:911,&quot;./line_points&quot;:1201,&quot;./link_traces&quot;:1203,&quot;./subtypes&quot;:1212,d3:169}],1209:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./subtypes&quot;);e.exports=function(t,e){var r,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[],f=s[0].trace;if(!n.hasMarkers(f)&amp;&amp;!n.hasText(f))return[];if(!1===e)for(r=0;r&lt;s.length;r++)s[r].selected=0;else for(r=0;r&lt;s.length;r++)i=s[r],a=l.c2p(i.x),o=c.c2p(i.y),null!==i.i&amp;&amp;e.contains([a,o],!1,r,t)?(u.push({pointNumber:i.i,x:l.c2d(i.x),y:c.c2d(i.y)}),i.selected=1):i.selected=0;return u}},{&quot;./subtypes&quot;:1212}],1210:[function(t,e,r){&quot;use strict&quot;;var n=[&quot;orientation&quot;,&quot;groupnorm&quot;,&quot;stackgaps&quot;];e.exports=function(t,e,r,i){var a=r._scatterStackOpts,o=i(&quot;stackgroup&quot;);if(o){var s=e.xaxis+e.yaxis,l=a[s];l||(l=a[s]={});var c=l[o],u=!1;c?c.traces.push(e):(c=l[o]={traceIndices:[],traces:[e]},u=!0);for(var f={orientation:e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;},h=0;h&lt;n.length;h++){var p=n[h],d=p+&quot;Found&quot;;if(!c[d]){var g=void 0!==t[p],m=&quot;orientation&quot;===p;if((g||u)&amp;&amp;(c[p]=i(p,f[p]),m&amp;&amp;(c.fillDflt=&quot;h&quot;===c[p]?&quot;tonextx&quot;:&quot;tonexty&quot;),g&amp;&amp;(c[d]=!0,!u&amp;&amp;(delete c.traces[0][p],m))))for(var v=0;v&lt;c.traces.length-1;v++){var y=c.traces[v];y._input.fill!==y.fill&amp;&amp;(y.fill=c.fillDflt)}}}return c}}},{}],1211:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../registry&quot;);function o(t,e,r){i.pointStyle(t.selectAll(&quot;path.point&quot;),e,r)}function s(t,e,r){i.textPointStyle(t.selectAll(&quot;text&quot;),e,r)}e.exports={style:function(t){var e=n.select(t).selectAll(&quot;g.trace.scatter&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.selectAll(&quot;g.points&quot;).each((function(e){o(n.select(this),e.trace||e[0].trace,t)})),e.selectAll(&quot;g.text&quot;).each((function(e){s(n.select(this),e.trace||e[0].trace,t)})),e.selectAll(&quot;g.trace path.js-line&quot;).call(i.lineGroupStyle),e.selectAll(&quot;g.trace path.js-fill&quot;).call(i.fillGroupStyle),a.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(e)},stylePoints:o,styleText:s,styleOnSelect:function(t,e,r){var n=e[0].trace;n.selectedpoints?(i.selectedPointStyle(r.selectAll(&quot;path.point&quot;),n),i.selectedTextStyle(r.selectAll(&quot;text&quot;),n)):(o(r,n,t),s(r,n,t))}}},{&quot;../../components/drawing&quot;:665,&quot;../../registry&quot;:911,d3:169}],1212:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports={hasLines:function(t){return t.visible&amp;&amp;t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;lines&quot;)},hasMarkers:function(t){return t.visible&amp;&amp;(t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;markers&quot;)||&quot;splom&quot;===t.type)},hasText:function(t){return t.visible&amp;&amp;t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;text&quot;)},isBubble:function(t){return n.isPlainObject(t.marker)&amp;&amp;n.isArrayOrTypedArray(t.marker.size)}}},{&quot;../../lib&quot;:778}],1213:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r,i,a){a=a||{},i(&quot;textposition&quot;),n.coerceFont(i,&quot;textfont&quot;,r.font),a.noSelect||(i(&quot;selected.textfont.color&quot;),i(&quot;unselected.textfont.color&quot;))}},{&quot;../../lib&quot;:778}],1214:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;);e.exports=function(t,e,r,a){var o,s=a(&quot;x&quot;),l=a(&quot;y&quot;);if(i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],r),s){var c=n.minRowLength(s);l?o=Math.min(c,n.minRowLength(l)):(o=c,a(&quot;y0&quot;),a(&quot;dy&quot;))}else{if(!l)return 0;o=n.minRowLength(l),a(&quot;x0&quot;),a(&quot;dx&quot;)}return e._length=o,o}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1215:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../constants/gl3d_dashes&quot;),c=t(&quot;../../constants/gl3d_markers&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat,f=t(&quot;../../plot_api/edit_types&quot;).overrideAll,h=n.line,p=n.marker,d=p.line,g=u({width:h.width,dash:{valType:&quot;enumerated&quot;,values:Object.keys(l),dflt:&quot;solid&quot;}},i(&quot;line&quot;));var m=e.exports=f({x:n.x,y:n.y,z:{valType:&quot;data_array&quot;},text:u({},n.text,{}),texttemplate:o({},{}),hovertext:u({},n.hovertext,{}),hovertemplate:a(),mode:u({},n.mode,{dflt:&quot;lines+markers&quot;}),surfaceaxis:{valType:&quot;enumerated&quot;,values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:&quot;color&quot;},projection:{x:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}},y:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}},z:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}}},connectgaps:n.connectgaps,line:g,marker:u({symbol:{valType:&quot;enumerated&quot;,values:Object.keys(c),dflt:&quot;circle&quot;,arrayOk:!0},size:u({},p.size,{dflt:8}),sizeref:p.sizeref,sizemin:p.sizemin,sizemode:p.sizemode,opacity:u({},p.opacity,{arrayOk:!1}),colorbar:p.colorbar,line:u({width:u({},d.width,{arrayOk:!1})},i(&quot;marker.line&quot;))},i(&quot;marker&quot;)),textposition:u({},n.textposition,{dflt:&quot;top center&quot;}),textfont:{color:n.textfont.color,size:n.textfont.size,family:u({},n.textfont.family,{arrayOk:!1})},hoverinfo:u({},s.hoverinfo)},&quot;calc&quot;,&quot;nested&quot;);m.x.editType=m.y.editType=m.z.editType=&quot;calc+clearAxisTypes&quot;},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../constants/gl3d_dashes&quot;:750,&quot;../../constants/gl3d_markers&quot;:751,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1216:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/arrays_to_calcdata&quot;),i=t(&quot;../scatter/colorscale_calc&quot;);e.exports=function(t,e){var r=[{x:!1,y:!1,trace:e,t:{}}];return n(r,e),i(t,e),r}},{&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/colorscale_calc&quot;:1190}],1217:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;);function i(t,e,r,i){if(!e||!e.visible)return null;for(var a=n.getComponentMethod(&quot;errorbars&quot;,&quot;makeComputeError&quot;)(e),o=new Array(t.length),s=0;s&lt;t.length;s++){var l=a(+t[s],s);if(&quot;log&quot;===i.type){var c=i.c2l(t[s]),u=t[s]-l[0],f=t[s]+l[1];if(o[s]=[(i.c2l(u,!0)-c)*r,(i.c2l(f,!0)-c)*r],u&gt;0){var h=i.c2l(u);i._lowerLogErrorBound||(i._lowerLogErrorBound=h),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,h)}}else o[s]=[-l[0]*r,l[1]*r]}return o}e.exports=function(t,e,r){var n=[i(t.x,t.error_x,e[0],r.xaxis),i(t.y,t.error_y,e[1],r.yaxis),i(t.z,t.error_z,e[2],r.zaxis)],a=function(t){for(var e=0;e&lt;t.length;e++)if(t[e])return t[e].length;return 0}(n);if(0===a)return null;for(var o=new Array(a),s=0;s&lt;a;s++){for(var l=[[0,0,0],[0,0,0]],c=0;c&lt;3;c++)if(n[c])for(var u=0;u&lt;2;u++)l[u][c]=n[c][s][u];o[s]=l}return o}},{&quot;../../registry&quot;:911}],1218:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-line3d&quot;),i=t(&quot;gl-scatter3d&quot;),a=t(&quot;gl-error3d&quot;),o=t(&quot;gl-mesh3d&quot;),s=t(&quot;delaunay-triangulate&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;../../lib/str2rgbarray&quot;),u=t(&quot;../../lib/gl_format_color&quot;).formatColor,f=t(&quot;../scatter/make_bubble_size_func&quot;),h=t(&quot;../../constants/gl3d_dashes&quot;),p=t(&quot;../../constants/gl3d_markers&quot;),d=t(&quot;../../plots/cartesian/axes&quot;),g=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,m=t(&quot;./calc_errors&quot;);function v(t,e){this.scene=t,this.uid=e,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode=&quot;&quot;,this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var y=v.prototype;function x(t){return null==t?0:t.indexOf(&quot;left&quot;)&gt;-1?-1:t.indexOf(&quot;right&quot;)&gt;-1?1:0}function b(t){return null==t?0:t.indexOf(&quot;top&quot;)&gt;-1?-1:t.indexOf(&quot;bottom&quot;)&gt;-1?1:0}function _(t,e){return e(4*t)}function w(t){return p[t]}function T(t,e,r,n,i){var a=null;if(l.isArrayOrTypedArray(t)){a=[];for(var o=0;o&lt;e;o++)void 0===t[o]?a[o]=n:a[o]=r(t[o],i)}else a=r(t,l.identity);return a}function k(t,e){var r,n,i,a,o,s,h=[],p=t.fullSceneLayout,v=t.dataScale,y=p.xaxis,k=p.yaxis,M=p.zaxis,A=e.marker,S=e.line,E=e.x||[],C=e.y||[],L=e.z||[],I=E.length,P=e.xcalendar,z=e.ycalendar,O=e.zcalendar;for(o=0;o&lt;I;o++)r=y.d2l(E[o],0,P)*v[0],n=k.d2l(C[o],0,z)*v[1],i=M.d2l(L[o],0,O)*v[2],h[o]=[r,n,i];if(Array.isArray(e.text))s=e.text;else if(void 0!==e.text)for(s=new Array(I),o=0;o&lt;I;o++)s[o]=e.text;function D(t,e){var r=p[t];return d.tickText(r,r.d2l(e),!0).text}var R=e.texttemplate;if(R){var F=t.fullLayout._d3locale,B=Array.isArray(R),N=B?Math.min(R.length,I):I,j=B?function(t){return R[t]}:function(){return R};for(s=new Array(N),o=0;o&lt;N;o++){var U={x:E[o],y:C[o],z:L[o]},V={xLabel:D(&quot;xaxis&quot;,E[o]),yLabel:D(&quot;yaxis&quot;,C[o]),zLabel:D(&quot;zaxis&quot;,L[o])},q={};g(q,e,o);var H=e._meta||{};s[o]=l.texttemplateString(j(o),V,F,q,U,H)}}if(a={position:h,mode:e.mode,text:s},&quot;line&quot;in e&amp;&amp;(a.lineColor=u(S,1,I),a.lineWidth=S.width,a.lineDashes=S.dash),&quot;marker&quot;in e){var G=f(e);a.scatterColor=u(A,1,I),a.scatterSize=T(A.size,I,_,20,G),a.scatterMarker=T(A.symbol,I,w,&quot;\u25cf&quot;),a.scatterLineWidth=A.line.width,a.scatterLineColor=u(A.line,1,I),a.scatterAngle=0}&quot;textposition&quot;in e&amp;&amp;(a.textOffset=function(t){var e=[0,0];if(Array.isArray(t))for(var r=0;r&lt;t.length;r++)e[r]=[0,0],t[r]&amp;&amp;(e[r][0]=x(t[r]),e[r][1]=b(t[r]));else e[0]=x(t),e[1]=b(t);return e}(e.textposition),a.textColor=u(e.textfont,1,I),a.textSize=T(e.textfont.size,I,l.identity,12),a.textFont=e.textfont.family,a.textAngle=0);var Y=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(a.project=[!1,!1,!1],a.projectScale=[1,1,1],a.projectOpacity=[1,1,1],o=0;o&lt;3;++o){var W=e.projection[Y[o]];(a.project[o]=W.show)&amp;&amp;(a.projectOpacity[o]=W.opacity,a.projectScale[o]=W.scale)}a.errorBounds=m(e,v,p);var X=function(t){for(var e=[0,0,0],r=[[0,0,0],[0,0,0],[0,0,0]],n=[1,1,1],i=0;i&lt;3;i++){var a=t[i];a&amp;&amp;!1!==a.copy_zstyle&amp;&amp;!1!==t[2].visible&amp;&amp;(a=t[2]),a&amp;&amp;a.visible&amp;&amp;(e[i]=a.width/2,r[i]=c(a.color),n[i]=a.thickness)}return{capSize:e,color:r,lineWidth:n}}([e.error_x,e.error_y,e.error_z]);return a.errorColor=X.color,a.errorLineWidth=X.lineWidth,a.errorCapSize=X.capSize,a.delaunayAxis=e.surfaceaxis,a.delaunayColor=c(e.surfacecolor),a}function M(t){if(l.isArrayOrTypedArray(t)){var e=t[0];return l.isArrayOrTypedArray(e)&amp;&amp;(t=e),&quot;rgb(&quot;+t.slice(0,3).map((function(t){return Math.round(255*t)}))+&quot;)&quot;}return null}function A(t){return l.isArrayOrTypedArray(t)?4===t.length&amp;&amp;&quot;number&quot;==typeof t[0]?M(t):t.map(M):null}y.handlePick=function(t){if(t.object&amp;&amp;(t.object===this.linePlot||t.object===this.delaunayMesh||t.object===this.textMarkers||t.object===this.scatterPlot)){var e=t.index=t.data.index;return t.object.highlight&amp;&amp;t.object.highlight(null),this.scatterPlot&amp;&amp;(t.object=this.scatterPlot,this.scatterPlot.highlight(t.data)),t.textLabel=&quot;&quot;,this.textLabels&amp;&amp;(Array.isArray(this.textLabels)?(this.textLabels[e]||0===this.textLabels[e])&amp;&amp;(t.textLabel=this.textLabels[e]):t.textLabel=this.textLabels),t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]],!0}},y.update=function(t){var e,r,l,c,u=this.scene.glplot.gl,f=h.solid;this.data=t;var p=k(this.scene,t);&quot;mode&quot;in p&amp;&amp;(this.mode=p.mode),&quot;lineDashes&quot;in p&amp;&amp;p.lineDashes in h&amp;&amp;(f=h[p.lineDashes]),this.color=A(p.scatterColor)||A(p.lineColor),this.dataPoints=p.position,e={gl:this.scene.glplot.gl,position:p.position,color:p.lineColor,lineWidth:p.lineWidth||1,dashes:f[0],dashScale:f[1],opacity:t.opacity,connectGaps:t.connectgaps},-1!==this.mode.indexOf(&quot;lines&quot;)?this.linePlot?this.linePlot.update(e):(this.linePlot=n(e),this.linePlot._trace=this,this.scene.glplot.add(this.linePlot)):this.linePlot&amp;&amp;(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose(),this.linePlot=null);var d=t.opacity;if(t.marker&amp;&amp;t.marker.opacity&amp;&amp;(d*=t.marker.opacity),r={gl:this.scene.glplot.gl,position:p.position,color:p.scatterColor,size:p.scatterSize,glyph:p.scatterMarker,opacity:d,orthographic:!0,lineWidth:p.scatterLineWidth,lineColor:p.scatterLineColor,project:p.project,projectScale:p.projectScale,projectOpacity:p.projectOpacity},-1!==this.mode.indexOf(&quot;markers&quot;)?this.scatterPlot?this.scatterPlot.update(r):(this.scatterPlot=i(r),this.scatterPlot._trace=this,this.scatterPlot.highlightScale=1,this.scene.glplot.add(this.scatterPlot)):this.scatterPlot&amp;&amp;(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose(),this.scatterPlot=null),c={gl:this.scene.glplot.gl,position:p.position,glyph:p.text,color:p.textColor,size:p.textSize,angle:p.textAngle,alignment:p.textOffset,font:p.textFont,orthographic:!0,lineWidth:0,project:!1,opacity:t.opacity},this.textLabels=t.hovertext||t.text,-1!==this.mode.indexOf(&quot;text&quot;)?this.textMarkers?this.textMarkers.update(c):(this.textMarkers=i(c),this.textMarkers._trace=this,this.textMarkers.highlightScale=1,this.scene.glplot.add(this.textMarkers)):this.textMarkers&amp;&amp;(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose(),this.textMarkers=null),l={gl:this.scene.glplot.gl,position:p.position,color:p.errorColor,error:p.errorBounds,lineWidth:p.errorLineWidth,capSize:p.errorCapSize,opacity:t.opacity},this.errorBars?p.errorBounds?this.errorBars.update(l):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):p.errorBounds&amp;&amp;(this.errorBars=a(l),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),p.delaunayAxis&gt;=0){var g=function(t,e,r){var n,i=(r+1)%3,a=(r+2)%3,o=[],l=[];for(n=0;n&lt;t.length;++n){var c=t[n];!isNaN(c[i])&amp;&amp;isFinite(c[i])&amp;&amp;!isNaN(c[a])&amp;&amp;isFinite(c[a])&amp;&amp;(o.push([c[i],c[a]]),l.push(n))}var u=s(o);for(n=0;n&lt;u.length;++n)for(var f=u[n],h=0;h&lt;f.length;++h)f[h]=l[f[h]];return{positions:t,cells:u,meshColor:e}}(p.position,p.delaunayColor,p.delaunayAxis);g.opacity=t.opacity,this.delaunayMesh?this.delaunayMesh.update(g):(g.gl=u,this.delaunayMesh=o(g),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&amp;&amp;(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},y.dispose=function(){this.linePlot&amp;&amp;(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&amp;&amp;(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&amp;&amp;(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&amp;&amp;(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&amp;&amp;(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())},e.exports=function(t,e){var r=new v(t,e.uid);return r.update(e),r}},{&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/gl3d_dashes&quot;:750,&quot;../../constants/gl3d_markers&quot;:751,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/make_bubble_size_func&quot;:1204,&quot;./calc_errors&quot;:1217,&quot;delaunay-triangulate&quot;:171,&quot;gl-error3d&quot;:266,&quot;gl-line3d&quot;:275,&quot;gl-mesh3d&quot;:309,&quot;gl-scatter3d&quot;:330}],1219:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,n){return i.coerce(t,e,c,r,n)}if(function(t,e,r,i){var a=0,o=r(&quot;x&quot;),s=r(&quot;y&quot;),l=r(&quot;z&quot;);n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],i),o&amp;&amp;s&amp;&amp;l&amp;&amp;(a=Math.min(o.length,s.length,l.length),e._length=e._xlength=e._ylength=e._zlength=a);return a}(t,e,f,u)){f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),a.hasLines(e)&amp;&amp;(f(&quot;connectgaps&quot;),s(t,e,r,u,f)),a.hasMarkers(e)&amp;&amp;o(t,e,r,u,f,{noSelect:!0}),a.hasText(e)&amp;&amp;(f(&quot;texttemplate&quot;),l(t,e,u,f,{noSelect:!0}));var h=(e.line||{}).color,p=(e.marker||{}).color;f(&quot;surfaceaxis&quot;)&gt;=0&amp;&amp;f(&quot;surfacecolor&quot;,h||p);for(var d=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],g=0;g&lt;3;++g){var m=&quot;projection.&quot;+d[g];f(m+&quot;.show&quot;)&amp;&amp;(f(m+&quot;.opacity&quot;),f(m+&quot;.scale&quot;))}var v=n.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);v(t,e,h||p||r,{axis:&quot;z&quot;}),v(t,e,h||p||r,{axis:&quot;y&quot;,inherit:&quot;z&quot;}),v(t,e,h||p||r,{axis:&quot;x&quot;,inherit:&quot;z&quot;})}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1215}],1220:[function(t,e,r){&quot;use strict&quot;;e.exports={plot:t(&quot;./convert&quot;),attributes:t(&quot;./attributes&quot;),markerSymbols:t(&quot;../../constants/gl3d_markers&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:[{container:&quot;marker&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;}],calc:t(&quot;./calc&quot;),moduleType:&quot;trace&quot;,name:&quot;scatter3d&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../constants/gl3d_markers&quot;:751,&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1215,&quot;./calc&quot;:1216,&quot;./convert&quot;:1218,&quot;./defaults&quot;:1219}],1221:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=n.marker,u=n.line,f=c.line;e.exports={carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},mode:l({},n.mode,{dflt:&quot;markers&quot;}),text:l({},n.text,{}),texttemplate:o({editType:&quot;plot&quot;},{keys:[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;]}),hovertext:l({},n.hovertext,{}),line:{color:u.color,width:u.width,dash:u.dash,shape:l({},u.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:u.smoothing,editType:&quot;calc&quot;},connectgaps:n.connectgaps,fill:l({},n.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:n.fillcolor,marker:l({symbol:c.symbol,opacity:c.opacity,maxdisplayed:c.maxdisplayed,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,line:l({width:f.width,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),gradient:c.gradient,editType:&quot;calc&quot;},s(&quot;marker&quot;)),textfont:n.textfont,textposition:n.textposition,selected:n.selected,unselected:n.unselected,hoverinfo:l({},i.hoverinfo,{flags:[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:n.hoveron,hovertemplate:a()}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1222:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scatter/arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../scatter/calc&quot;).calcMarkerSize,l=t(&quot;../carpet/lookup_carpetid&quot;);e.exports=function(t,e){var r=e._carpetTrace=l(t,e);if(r&amp;&amp;r.visible&amp;&amp;&quot;legendonly&quot;!==r.visible){var c;e.xaxis=r.xaxis,e.yaxis=r.yaxis;var u,f,h=e._length,p=new Array(h),d=!1;for(c=0;c&lt;h;c++)if(u=e.a[c],f=e.b[c],n(u)&amp;&amp;n(f)){var g=r.ab2xy(+u,+f,!0),m=r.isVisible(+u,+f);m||(d=!0),p[c]={x:g[0],y:g[1],a:u,b:f,vis:m}}else p[c]={x:!1,y:!1};return e._needsCull=d,p[0].carpet=r,p[0].trace=e,s(e,h),i(t,e),a(p,e),o(p,e),p}}},{&quot;../carpet/lookup_carpetid&quot;:981,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc&quot;:1188,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1223:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/constants&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/line_shape_defaults&quot;),c=t(&quot;../scatter/text_defaults&quot;),u=t(&quot;../scatter/fillcolor_defaults&quot;),f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}p(&quot;carpet&quot;),e.xaxis=&quot;x&quot;,e.yaxis=&quot;y&quot;;var d=p(&quot;a&quot;),g=p(&quot;b&quot;),m=Math.min(d.length,g.length);if(m){e._length=m,p(&quot;text&quot;),p(&quot;texttemplate&quot;),p(&quot;hovertext&quot;),p(&quot;mode&quot;,m&lt;i.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;),a.hasLines(e)&amp;&amp;(s(t,e,r,h,p),l(t,e,p),p(&quot;connectgaps&quot;)),a.hasMarkers(e)&amp;&amp;o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&amp;&amp;c(t,e,h,p);var v=[];(a.hasMarkers(e)||a.hasText(e))&amp;&amp;(p(&quot;marker.maxdisplayed&quot;),v.push(&quot;points&quot;)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||v.push(&quot;fills&quot;),&quot;fills&quot;!==p(&quot;hoveron&quot;,v.join(&quot;+&quot;)||&quot;points&quot;)&amp;&amp;p(&quot;hovertemplate&quot;),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/line_shape_defaults&quot;:1202,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1221}],1224:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=n[i];return t.a=a.a,t.b=a.b,t.y=a.y,t}},{}],1225:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r={},n=e._carpet,i=n.ab2ij([t.a,t.b]),a=Math.floor(i[0]),o=i[0]-a,s=Math.floor(i[1]),l=i[1]-s,c=n.evalxy([],a,s,o,l);return r.yLabel=c[1].toFixed(3),r}},{}],1226:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;),i=t(&quot;../../lib&quot;).fillText;e.exports=function(t,e,r,a){var o=n(t,e,r,a);if(o&amp;&amp;!1!==o[0].index){var s=o[0];if(void 0===s.index){var l=1-s.y0/t.ya._length,c=t.xa._length,u=c*l/2,f=c-u;return s.x0=Math.max(Math.min(s.x0,f),u),s.x1=Math.max(Math.min(s.x1,f),u),o}var h=s.cd[s.index];s.a=h.a,s.b=h.b,s.xLabelVal=void 0,s.yLabelVal=void 0;var p=s.trace,d=p._carpet,g=p._module.formatLabels(h,p);s.yLabel=g.yLabel,delete s.text;var m=[];if(!p.hovertemplate){var v=(h.hi||p.hoverinfo).split(&quot;+&quot;);-1!==v.indexOf(&quot;all&quot;)&amp;&amp;(v=[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;]),-1!==v.indexOf(&quot;a&quot;)&amp;&amp;y(d.aaxis,h.a),-1!==v.indexOf(&quot;b&quot;)&amp;&amp;y(d.baxis,h.b),m.push(&quot;y: &quot;+s.yLabel),-1!==v.indexOf(&quot;text&quot;)&amp;&amp;i(h,p,m),s.extraText=m.join(&quot;&lt;br&gt;&quot;)}return o}function y(t,e){var r;r=t.labelprefix&amp;&amp;t.labelprefix.length&gt;0?t.labelprefix.replace(/ = $/,&quot;&quot;):t._hovertitle,m.push(r+&quot;: &quot;+e.toFixed(3)+t.labelsuffix)}}},{&quot;../../lib&quot;:778,&quot;../scatter/hover&quot;:1198}],1227:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../scatter/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;scattercarpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;svg&quot;,&quot;carpet&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;carpetDependent&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/select&quot;:1209,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1221,&quot;./calc&quot;:1222,&quot;./defaults&quot;:1223,&quot;./event_data&quot;:1224,&quot;./format_labels&quot;:1225,&quot;./hover&quot;:1226,&quot;./plot&quot;:1228}],1228:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../components/drawing&quot;);e.exports=function(t,e,r,o){var s,l,c,u=r[0][0].carpet,f={xaxis:i.getFromId(t,u.xaxis||&quot;x&quot;),yaxis:i.getFromId(t,u.yaxis||&quot;y&quot;),plot:e.plot};for(n(t,f,r,o),s=0;s&lt;r.length;s++)l=r[s][0].trace,c=o.selectAll(&quot;g.trace&quot;+l.uid+&quot; .js-line&quot;),a.setClipUrl(c,r[s][0].carpet._clipPathId,t)}},{&quot;../../components/drawing&quot;:665,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/plot&quot;:1208}],1229:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scatter/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../plot_api/edit_types&quot;).overrideAll,f=a.marker,h=a.line,p=f.line;e.exports=u({lon:{valType:&quot;data_array&quot;},lat:{valType:&quot;data_array&quot;},locations:{valType:&quot;data_array&quot;},locationmode:{valType:&quot;enumerated&quot;,values:[&quot;ISO-3&quot;,&quot;USA-states&quot;,&quot;country names&quot;,&quot;geojson-id&quot;],dflt:&quot;ISO-3&quot;},geojson:{valType:&quot;any&quot;,editType:&quot;calc&quot;},featureidkey:{valType:&quot;string&quot;,editType:&quot;calc&quot;,dflt:&quot;id&quot;},mode:c({},a.mode,{dflt:&quot;markers&quot;}),text:c({},a.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;lat&quot;,&quot;lon&quot;,&quot;location&quot;,&quot;text&quot;]}),hovertext:c({},a.hovertext,{}),textfont:a.textfont,textposition:a.textposition,line:{color:h.color,width:h.width,dash:l},connectgaps:a.connectgaps,marker:c({symbol:f.symbol,opacity:f.opacity,size:f.size,sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,colorbar:f.colorbar,line:c({width:p.width},s(&quot;marker.line&quot;)),gradient:f.gradient},s(&quot;marker&quot;)),fill:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;toself&quot;],dflt:&quot;none&quot;},fillcolor:a.fillcolor,selected:a.selected,unselected:a.unselected,hoverinfo:c({},o.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;location&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n()},&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing/attributes&quot;:664,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1230:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../scatter/colorscale_calc&quot;),o=t(&quot;../scatter/arrays_to_calcdata&quot;),s=t(&quot;../scatter/calc_selection&quot;),l=t(&quot;../../lib&quot;)._;function c(t){return t&amp;&amp;&quot;string&quot;==typeof t}e.exports=function(t,e){var r,u=Array.isArray(e.locations),f=u?e.locations.length:e._length,h=new Array(f);r=e.geojson?function(t){return c(t)||n(t)}:c;for(var p=0;p&lt;f;p++){var d=h[p]={};if(u){var g=e.locations[p];d.loc=r(g)?g:null}else{var m=e.lon[p],v=e.lat[p];n(m)&amp;&amp;n(v)?d.lonlat=[+m,+v]:d.lonlat=[i,i]}}return o(h,e),a(t,e),s(h,e),f&amp;&amp;(h[0].t={labels:{lat:l(t,&quot;lat:&quot;)+&quot; &quot;,lon:l(t,&quot;lon:&quot;)+&quot; &quot;}}),h}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1231:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/text_defaults&quot;),l=t(&quot;../scatter/fillcolor_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}var h,p=f(&quot;locations&quot;);if(p&amp;&amp;p.length){var d,g=f(&quot;geojson&quot;);(&quot;string&quot;==typeof g&amp;&amp;&quot;&quot;!==g||n.isPlainObject(g))&amp;&amp;(d=&quot;geojson-id&quot;),&quot;geojson-id&quot;===f(&quot;locationmode&quot;,d)&amp;&amp;f(&quot;featureidkey&quot;),h=p.length}else{var m=f(&quot;lon&quot;)||[],v=f(&quot;lat&quot;)||[];h=Math.min(m.length,v.length)}h?(e._length=h,f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,u,f),f(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;a(t,e,r,u,f,{gradient:!0}),i.hasText(e)&amp;&amp;(f(&quot;texttemplate&quot;),s(t,e,u,f)),f(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1229}],1232:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){t.lon=e.lon,t.lat=e.lat,t.location=e.loc?e.loc:null;var a=n[i];return a.fIn&amp;&amp;a.fIn.properties&amp;&amp;(t.properties=a.fIn.properties),t}},{}],1233:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.geo]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=n.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=n.tickText(a,a.c2l(o[1]),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1234:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../scatter/get_trace_color&quot;),o=t(&quot;../../lib&quot;).fillText,s=t(&quot;./attributes&quot;);e.exports=function(t,e,r){var l=t.cd,c=l[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=h.projection.isLonLatOverEdges,d=h.project;if(n.getClosest(l,(function(t){var n=t.lonlat;if(n[0]===i)return 1/0;if(p(n))return 1/0;var a=d(n),o=d([e,r]),s=Math.abs(a[0]-o[0]),l=Math.abs(a[1]-o[1]),c=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(s*s+l*l)-c,1-3/c)}),t),!1!==t.index){var g=l[t.index],m=g.lonlat,v=[u.c2p(m),f.c2p(m)],y=g.mrc||1;t.x0=v[0]-y,t.x1=v[0]+y,t.y0=v[1]-y,t.y1=v[1]+y,t.loc=g.loc,t.lon=m[0],t.lat=m[1];var x={};x[c.geo]={_subplot:h};var b=c._module.formatLabels(g,c,x);return t.lonLabel=b.lonLabel,t.latLabel=b.latLabel,t.color=a(c,g),t.extraText=function(t,e,r,n){if(t.hovertemplate)return;var i=e.hi||t.hoverinfo,a=&quot;all&quot;===i?s.hoverinfo.flags:i.split(&quot;+&quot;),l=-1!==a.indexOf(&quot;location&quot;)&amp;&amp;Array.isArray(t.locations),c=-1!==a.indexOf(&quot;lon&quot;),u=-1!==a.indexOf(&quot;lat&quot;),f=-1!==a.indexOf(&quot;text&quot;),h=[];function p(t){return t+&quot;\xb0&quot;}l?h.push(e.loc):c&amp;&amp;u?h.push(&quot;(&quot;+p(r.lonLabel)+&quot;, &quot;+p(r.latLabel)+&quot;)&quot;):c?h.push(n.lon+p(r.lonLabel)):u&amp;&amp;h.push(n.lat+p(r.latLabel));f&amp;&amp;o(e,t,h);return h.join(&quot;&lt;br&gt;&quot;)}(c,g,t,l[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}}},{&quot;../../components/fx&quot;:683,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/get_trace_color&quot;:1197,&quot;./attributes&quot;:1229}],1235:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),calcGeoJSON:t(&quot;./plot&quot;).calcGeoJSON,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;scattergeo&quot;,basePlotModule:t(&quot;../../plots/geo&quot;),categories:[&quot;geo&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/geo&quot;:860,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1229,&quot;./calc&quot;:1230,&quot;./defaults&quot;:1231,&quot;./event_data&quot;:1232,&quot;./format_labels&quot;:1233,&quot;./hover&quot;:1234,&quot;./plot&quot;:1236,&quot;./select&quot;:1237,&quot;./style&quot;:1238}],1236:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/topojson_utils&quot;).getTopojsonFeatures,o=t(&quot;../../lib/geojson_utils&quot;),s=t(&quot;../../lib/geo_location_utils&quot;),l=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,c=t(&quot;../../constants/numerical&quot;).BADNUM,u=t(&quot;../scatter/calc&quot;).calcMarkerSize,f=t(&quot;../scatter/subtypes&quot;),h=t(&quot;./style&quot;);e.exports={calcGeoJSON:function(t,e){var r,n,i=t[0].trace,o=e[i.geo],f=o._subplot,h=i._length;if(Array.isArray(i.locations)){var p=i.locationmode,d=&quot;geojson-id&quot;===p?s.extractTraceFeature(t):a(i,f.topojson);for(r=0;r&lt;h;r++){n=t[r];var g=&quot;geojson-id&quot;===p?n.fOut:s.locationToFeature(p,n.loc,d);n.lonlat=g?g.properties.ct:[c,c]}}var m,v,y={padded:!0};if(&quot;geojson&quot;===o.fitbounds&amp;&amp;&quot;geojson-id&quot;===i.locationmode){var x=s.computeBbox(s.getTraceGeojson(i));m=[x[0],x[2]],v=[x[1],x[3]]}else{for(m=new Array(h),v=new Array(h),r=0;r&lt;h;r++)n=t[r],m[r]=n.lonlat[0],v[r]=n.lonlat[1];y.ppad=u(i,h)}i._extremes.lon=l(o.lonaxis._ax,m,y),i._extremes.lat=l(o.lataxis._ax,v,y)},plot:function(t,e,r){var a=e.layers.frontplot.select(&quot;.scatterlayer&quot;),s=i.makeTraceGroups(a,r,&quot;trace scattergeo&quot;);function l(t,e){t.lonlat[0]===c&amp;&amp;n.select(e).remove()}s.selectAll(&quot;*&quot;).remove(),s.each((function(e){var r=n.select(this),a=e[0].trace;if(f.hasLines(a)||&quot;none&quot;!==a.fill){var s=o.calcTraceToLineCoords(e),c=&quot;none&quot;!==a.fill?o.makePolygon(s):o.makeLine(s);r.selectAll(&quot;path.js-line&quot;).data([{geojson:c,trace:a}]).enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0).style(&quot;stroke-miterlimit&quot;,2)}f.hasMarkers(a)&amp;&amp;r.selectAll(&quot;path.point&quot;).data(i.identity).enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0).each((function(t){l(t,this)})),f.hasText(a)&amp;&amp;r.selectAll(&quot;g&quot;).data(i.identity).enter().append(&quot;g&quot;).append(&quot;text&quot;).each((function(t){l(t,this)})),h(t,e)}))}}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/geojson_utils&quot;:772,&quot;../../lib/topojson_utils&quot;:806,&quot;../../plots/cartesian/autorange&quot;:827,&quot;../scatter/calc&quot;:1188,&quot;../scatter/subtypes&quot;:1212,&quot;./style&quot;:1238,d3:169}],1237:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/subtypes&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e){var r,a,o,s,l,c=t.cd,u=t.xaxis,f=t.yaxis,h=[],p=c[0].trace;if(!n.hasMarkers(p)&amp;&amp;!n.hasText(p))return[];if(!1===e)for(l=0;l&lt;c.length;l++)c[l].selected=0;else for(l=0;l&lt;c.length;l++)(a=(r=c[l]).lonlat)[0]!==i&amp;&amp;(o=u.c2p(a),s=f.c2p(a),e.contains([o,s],null,l,t)?(h.push({pointNumber:l,lon:a[0],lat:a[1]}),r.selected=1):r.selected=0);return h}},{&quot;../../constants/numerical&quot;:753,&quot;../scatter/subtypes&quot;:1212}],1238:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../scatter/style&quot;),s=o.stylePoints,l=o.styleText;e.exports=function(t,e){e&amp;&amp;function(t,e){var r=e[0].trace,o=e[0].node3;o.style(&quot;opacity&quot;,e[0].trace.opacity),s(o,r,t),l(o,r,t),o.selectAll(&quot;path.js-line&quot;).style(&quot;fill&quot;,&quot;none&quot;).each((function(t){var e=n.select(this),r=t.trace,o=r.line||{};e.call(a.stroke,o.color).call(i.dashLine,o.dash||&quot;&quot;,o.width||0),&quot;none&quot;!==r.fill&amp;&amp;e.call(a.fill,r.fillcolor)}))}(t,e)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../scatter/style&quot;:1211,d3:169}],1239:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/edit_types&quot;).overrideAll,l=t(&quot;./constants&quot;).DASHES,c=i.line,u=i.marker,f=u.line,h=e.exports=s({x:i.x,x0:i.x0,dx:i.dx,y:i.y,y0:i.y0,dy:i.dy,xperiod:i.xperiod,yperiod:i.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:i.xperiodalignment,yperiodalignment:i.yperiodalignment,text:i.text,hovertext:i.hovertext,textposition:i.textposition,textfont:i.textfont,mode:{valType:&quot;flaglist&quot;,flags:[&quot;lines&quot;,&quot;markers&quot;,&quot;text&quot;],extras:[&quot;none&quot;]},line:{color:c.color,width:c.width,shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},dash:{valType:&quot;enumerated&quot;,values:Object.keys(l),dflt:&quot;solid&quot;}},marker:o({},a(&quot;marker&quot;),{symbol:u.symbol,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,opacity:u.opacity,colorbar:u.colorbar,line:o({},a(&quot;marker.line&quot;),{width:f.width})}),connectgaps:i.connectgaps,fill:o({},i.fill,{dflt:&quot;none&quot;}),fillcolor:i.fillcolor,selected:{marker:i.selected.marker,textfont:i.selected.textfont},unselected:{marker:i.unselected.marker,textfont:i.unselected.textfont},opacity:n.opacity},&quot;calc&quot;,&quot;nested&quot;);h.x.editType=h.y.editType=h.x0.editType=h.y0.editType=&quot;calc+clearAxisTypes&quot;,h.hovertemplate=i.hovertemplate,h.texttemplate=i.texttemplate},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:1241}],1240:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/point-cluster&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,s=t(&quot;../../plots/cartesian/align_period&quot;),l=t(&quot;../scatter/calc&quot;),c=l.calcMarkerSize,u=l.calcAxisExpansion,f=l.setFirstScatter,h=t(&quot;../scatter/colorscale_calc&quot;),p=t(&quot;./convert&quot;),d=t(&quot;./scene_update&quot;),g=t(&quot;../../constants/numerical&quot;).BADNUM,m=t(&quot;./constants&quot;).TOO_MANY_POINTS;function v(t,e,r){var n=t._extremes[e._id],i=o(e,r._bnds,{padded:!0});n.min=n.min.concat(i.min),n.max=n.max.concat(i.max)}e.exports=function(t,e){var r,o,l,y=t._fullLayout,x=a.getFromId(t,e.xaxis),b=a.getFromId(t,e.yaxis),_=y._plots[e.xaxis+e.yaxis],w=e._length,T=w&gt;=m,k=2*w,M={},A=x.makeCalcdata(e,&quot;x&quot;),S=b.makeCalcdata(e,&quot;y&quot;),E=s(e,x,&quot;x&quot;,A),C=s(e,b,&quot;y&quot;,S);e._x=E,e._y=C,e.xperiodalignment&amp;&amp;(e._origX=A),e.yperiodalignment&amp;&amp;(e._origY=S);var L=new Array(k);for(r=0;r&lt;w;r++)o=E[r],l=C[r],L[2*r]=o===g?NaN:o,L[2*r+1]=l===g?NaN:l;if(&quot;log&quot;===x.type)for(r=0;r&lt;k;r+=2)L[r]=x.c2l(L[r]);if(&quot;log&quot;===b.type)for(r=1;r&lt;k;r+=2)L[r]=b.c2l(L[r]);if(T&amp;&amp;&quot;log&quot;!==x.type&amp;&amp;&quot;log&quot;!==b.type)M.tree=n(L);else{var I=M.ids=new Array(w);for(r=0;r&lt;w;r++)I[r]=r}h(t,e);var P,z=function(t,e,r,n,a,o){var s=p.style(t,r);s.marker&amp;&amp;(s.marker.positions=n);s.line&amp;&amp;n.length&gt;1&amp;&amp;i.extendFlat(s.line,p.linePositions(t,r,n));if(s.errorX||s.errorY){var l=p.errorBarPositions(t,r,n,a,o);s.errorX&amp;&amp;i.extendFlat(s.errorX,l.x),s.errorY&amp;&amp;i.extendFlat(s.errorY,l.y)}s.text&amp;&amp;(i.extendFlat(s.text,{positions:n},p.textPosition(t,r,s.text,s.marker)),i.extendFlat(s.textSel,{positions:n},p.textPosition(t,r,s.text,s.markerSel)),i.extendFlat(s.textUnsel,{positions:n},p.textPosition(t,r,s.text,s.markerUnsel)));return s}(t,0,e,L,E,C),O=d(t,_);return f(y,e),T?z.marker&amp;&amp;(P=2*(z.marker.sizeAvg||Math.max(z.marker.size,3))):P=c(e,w),u(t,e,x,b,E,C,P),z.errorX&amp;&amp;v(e,x,z.errorX),z.errorY&amp;&amp;v(e,b,z.errorY),z.fill&amp;&amp;!O.fill2d&amp;&amp;(O.fill2d=!0),z.marker&amp;&amp;!O.scatter2d&amp;&amp;(O.scatter2d=!0),z.line&amp;&amp;!O.line2d&amp;&amp;(O.line2d=!0),!z.errorX&amp;&amp;!z.errorY||O.error2d||(O.error2d=!0),z.text&amp;&amp;!O.glText&amp;&amp;(O.glText=!0),z.marker&amp;&amp;(z.marker.snap=w),O.lineOptions.push(z.line),O.errorXOptions.push(z.errorX),O.errorYOptions.push(z.errorY),O.fillOptions.push(z.fill),O.markerOptions.push(z.marker),O.markerSelectedOptions.push(z.markerSel),O.markerUnselectedOptions.push(z.markerUnsel),O.textOptions.push(z.text),O.textSelectedOptions.push(z.textSel),O.textUnselectedOptions.push(z.textUnsel),O.selectBatch.push([]),O.unselectBatch.push([]),M._scene=O,M.index=O.count,M.x=E,M.y=C,M.positions=L,O.count++,[{x:!1,y:!1,t:M,trace:e}]}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/autorange&quot;:827,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../scatter/calc&quot;:1188,&quot;../scatter/colorscale_calc&quot;:1190,&quot;./constants&quot;:1241,&quot;./convert&quot;:1242,&quot;./scene_update&quot;:1250,&quot;@plotly/point-cluster&quot;:57}],1241:[function(t,e,r){&quot;use strict&quot;;e.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:20,SYMBOL_STROKE:1,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},{}],1242:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;svg-path-sdf&quot;),a=t(&quot;color-normalize&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../plots/cartesian/axis_ids&quot;),u=t(&quot;../../lib/gl_format_color&quot;).formatColor,f=t(&quot;../scatter/subtypes&quot;),h=t(&quot;../scatter/make_bubble_size_func&quot;),p=t(&quot;./helpers&quot;),d=t(&quot;./constants&quot;),g=t(&quot;../../constants/interactions&quot;).DESELECTDIM,m={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},v=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue;function y(t,e){var r,i=t._fullLayout,a=e._length,o=e.textfont,l=e.textposition,c=Array.isArray(l)?l:[l],u=o.color,f=o.size,h=o.family,p={},d=e.texttemplate;if(d){p.text=[];var g=i._d3locale,m=Array.isArray(d),y=m?Math.min(d.length,a):a,x=m?function(t){return d[t]}:function(){return d};for(r=0;r&lt;y;r++){var b={i:r},_=e._module.formatLabels(b,e,i),w={};v(w,e,r);var T=e._meta||{};p.text.push(s.texttemplateString(x(r),_,g,w,b,T))}}else Array.isArray(e.text)&amp;&amp;e.text.length&lt;a?p.text=e.text.slice():p.text=e.text;if(Array.isArray(p.text))for(r=p.text.length;r&lt;a;r++)p.text[r]=&quot;&quot;;for(p.opacity=e.opacity,p.font={},p.align=[],p.baseline=[],r=0;r&lt;c.length;r++){var k=c[r].split(/\s+/);switch(k[1]){case&quot;left&quot;:p.align.push(&quot;right&quot;);break;case&quot;right&quot;:p.align.push(&quot;left&quot;);break;default:p.align.push(k[1])}switch(k[0]){case&quot;top&quot;:p.baseline.push(&quot;bottom&quot;);break;case&quot;bottom&quot;:p.baseline.push(&quot;top&quot;);break;default:p.baseline.push(k[0])}}if(Array.isArray(u))for(p.color=new Array(a),r=0;r&lt;a;r++)p.color[r]=u[r];else p.color=u;if(s.isArrayOrTypedArray(f)||Array.isArray(h))for(p.font=new Array(a),r=0;r&lt;a;r++){var M=p.font[r]={};M.size=s.isTypedArray(f)?f[r]:Array.isArray(f)?n(f[r])?f[r]:0:f,M.family=Array.isArray(h)?h[r]:h}else p.font={size:f,family:h};return p}function x(t){var e,r,n=t._length,i=t.marker,o={},l=s.isArrayOrTypedArray(i.symbol),c=s.isArrayOrTypedArray(i.color),f=s.isArrayOrTypedArray(i.line.color),d=s.isArrayOrTypedArray(i.opacity),g=s.isArrayOrTypedArray(i.size),m=s.isArrayOrTypedArray(i.line.width);if(l||(r=p.isOpenSymbol(i.symbol)),l||c||f||d){o.colors=new Array(n),o.borderColors=new Array(n);var v=u(i,i.opacity,n),y=u(i.line,i.opacity,n);if(!Array.isArray(y[0])){var x=y;for(y=Array(n),e=0;e&lt;n;e++)y[e]=x}if(!Array.isArray(v[0])){var b=v;for(v=Array(n),e=0;e&lt;n;e++)v[e]=b}for(o.colors=v,o.borderColors=y,e=0;e&lt;n;e++){if(l){var _=i.symbol[e];r=p.isOpenSymbol(_)}r&amp;&amp;(y[e]=v[e].slice(),v[e]=v[e].slice(),v[e][3]=0)}o.opacity=t.opacity}else r?(o.color=a(i.color,&quot;uint8&quot;),o.color[3]=0,o.borderColor=a(i.color,&quot;uint8&quot;)):(o.color=a(i.color,&quot;uint8&quot;),o.borderColor=a(i.line.color,&quot;uint8&quot;)),o.opacity=t.opacity*i.opacity;if(l)for(o.markers=new Array(n),e=0;e&lt;n;e++)o.markers[e]=E(i.symbol[e]);else o.marker=E(i.symbol);var w,T=h(t);if(g||m){var k,M=o.sizes=new Array(n),A=o.borderSizes=new Array(n),S=0;if(g){for(e=0;e&lt;n;e++)M[e]=T(i.size[e]),S+=M[e];k=S/n}else for(w=T(i.size),e=0;e&lt;n;e++)M[e]=w;if(m)for(e=0;e&lt;n;e++)A[e]=i.line.width[e]/2;else for(w=i.line.width/2,e=0;e&lt;n;e++)A[e]=w;o.sizeAvg=k}else o.size=T(i&amp;&amp;i.size||10),o.borderSizes=T(i.line.width);return o}function b(t,e){var r=t.marker,n={};return e?(e.marker&amp;&amp;e.marker.symbol?n=x(s.extendFlat({},r,e.marker)):e.marker&amp;&amp;(e.marker.size&amp;&amp;(n.size=e.marker.size/2),e.marker.color&amp;&amp;(n.colors=e.marker.color),void 0!==e.marker.opacity&amp;&amp;(n.opacity=e.marker.opacity)),n):n}function _(t,e,r){var n={};if(!r)return n;if(r.textfont){var i={opacity:1,text:e.text,texttemplate:e.texttemplate,textposition:e.textposition,textfont:s.extendFlat({},e.textfont)};r.textfont&amp;&amp;s.extendFlat(i.textfont,r.textfont),n=y(t,i)}return n}function w(t,e){var r={capSize:2*e.width,lineWidth:e.thickness,color:e.color};return e.copy_ystyle&amp;&amp;(r=t.error_y),r}var T=d.SYMBOL_SDF_SIZE,k=d.SYMBOL_SIZE,M=d.SYMBOL_STROKE,A={},S=l.symbolFuncs[0](.05*k);function E(t){if(&quot;circle&quot;===t)return null;var e,r,n=l.symbolNumber(t),a=l.symbolFuncs[n%100],o=!!l.symbolNoDot[n%100],s=!!l.symbolNoFill[n%100],c=p.isDotSymbol(t);return A[t]?A[t]:(e=c&amp;&amp;!o?a(1.1*k)+S:a(k),r=i(e,{w:T,h:T,viewBox:[-k,-k,k,k],stroke:s?M:-M}),A[t]=r,r||null)}e.exports={style:function(t,e){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0};if(!0!==e.visible)return n;if(f.hasText(e)&amp;&amp;(n.text=y(t,e),n.textSel=_(t,e,e.selected),n.textUnsel=_(t,e,e.unselected)),f.hasMarkers(e)&amp;&amp;(n.marker=x(e),n.markerSel=b(e,e.selected),n.markerUnsel=b(e,e.unselected),!e.unselected&amp;&amp;s.isArrayOrTypedArray(e.marker.opacity))){var i=e.marker.opacity;for(n.markerUnsel.opacity=new Array(i.length),r=0;r&lt;i.length;r++)n.markerUnsel.opacity[r]=g*i[r]}if(f.hasLines(e)){n.line={overlay:!0,thickness:e.line.width,color:e.line.color,opacity:e.opacity};var a=(d.DASHES[e.line.dash]||[1]).slice();for(r=0;r&lt;a.length;++r)a[r]*=e.line.width;n.line.dashes=a}return e.error_x&amp;&amp;e.error_x.visible&amp;&amp;(n.errorX=w(e,e.error_x)),e.error_y&amp;&amp;e.error_y.visible&amp;&amp;(n.errorY=w(e,e.error_y)),e.fill&amp;&amp;&quot;none&quot;!==e.fill&amp;&amp;(n.fill={closed:!0,fill:e.fillcolor,thickness:0}),n},markerStyle:x,markerSelection:b,linePositions:function(t,e,r){var n,i,a=r.length,o=a/2;if(f.hasLines(e)&amp;&amp;o)if(&quot;hv&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i+2],r[2*i+1]));n.push(r[a-2],r[a-1])}else if(&quot;hvh&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var s=(r[2*i]+r[2*i+2])/2;n.push(r[2*i],r[2*i+1],s,r[2*i+1],s,r[2*i+3])}n.push(r[a-2],r[a-1])}else if(&quot;vhv&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var l=(r[2*i+1]+r[2*i+3])/2;n.push(r[2*i],r[2*i+1],r[2*i],l,r[2*i+2],l)}n.push(r[a-2],r[a-1])}else if(&quot;vh&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+3]));n.push(r[a-2],r[a-1])}else n=r;var c=!1;for(i=0;i&lt;n.length;i++)if(isNaN(n[i])){c=!0;break}var u=c||n.length&gt;d.TOO_MANY_POINTS||f.hasMarkers(e)?&quot;rect&quot;:&quot;round&quot;;if(c&amp;&amp;e.connectgaps){var h=n[0],p=n[1];for(i=0;i&lt;n.length;i+=2)isNaN(n[i])||isNaN(n[i+1])?(n[i]=h,n[i+1]=p):(h=n[i],p=n[i+1])}return{join:u,positions:n}},errorBarPositions:function(t,e,r,i,a){var s=o.getComponentMethod(&quot;errorbars&quot;,&quot;makeComputeError&quot;),l=c.getFromId(t,e.xaxis),u=c.getFromId(t,e.yaxis),f=r.length/2,h={};function p(t,i){var a=i._id.charAt(0),o=e[&quot;error_&quot;+a];if(o&amp;&amp;o.visible&amp;&amp;(&quot;linear&quot;===i.type||&quot;log&quot;===i.type)){for(var l=s(o),c={x:0,y:1}[a],u={x:[0,1,2,3],y:[2,3,0,1]}[a],p=new Float64Array(4*f),d=1/0,g=-1/0,m=0,v=0;m&lt;f;m++,v+=4){var y=t[m];if(n(y)){var x=r[2*m+c],b=l(y,m),_=b[0],w=b[1];if(n(_)&amp;&amp;n(w)){var T=y-_,k=y+w;p[v+u[0]]=x-i.c2l(T),p[v+u[1]]=i.c2l(k)-x,p[v+u[2]]=0,p[v+u[3]]=0,d=Math.min(d,y-_),g=Math.max(g,y+w)}}}h[a]={positions:r,errors:p,_bnds:[d,g]}}}return p(i,l),p(a,u),h},textPosition:function(t,e,r,n){var i,a=e._length,o={};if(f.hasMarkers(e)){var s=r.font,l=r.align,c=r.baseline;for(o.offset=new Array(a),i=0;i&lt;a;i++){var u=n.sizes?n.sizes[i]:n.size,h=Array.isArray(s)?s[i].size:s.size,p=Array.isArray(l)?l.length&gt;1?l[i]:l[0]:l,d=Array.isArray(c)?c.length&gt;1?c[i]:c[0]:c,g=m[p],v=m[d],y=u?u/.8+1:0,x=-v*y-.5*v;o.offset[i]=[g*y/h,x/h]}}return o}}},{&quot;../../components/drawing&quot;:665,&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/interactions&quot;:752,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../registry&quot;:911,&quot;../scatter/make_bubble_size_func&quot;:1204,&quot;../scatter/subtypes&quot;:1212,&quot;./constants&quot;:1241,&quot;./helpers&quot;:1246,&quot;color-normalize&quot;:125,&quot;fast-isnumeric&quot;:241,&quot;svg-path-sdf&quot;:574}],1243:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./helpers&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../scatter/constants&quot;),l=t(&quot;../scatter/subtypes&quot;),c=t(&quot;../scatter/xy_defaults&quot;),u=t(&quot;../scatter/period_defaults&quot;),f=t(&quot;../scatter/marker_defaults&quot;),h=t(&quot;../scatter/line_defaults&quot;),p=t(&quot;../scatter/fillcolor_defaults&quot;),d=t(&quot;../scatter/text_defaults&quot;);e.exports=function(t,e,r,g){function m(r,i){return n.coerce(t,e,o,r,i)}var v=!!t.marker&amp;&amp;a.isOpenSymbol(t.marker.symbol),y=l.isBubble(t),x=c(t,e,g,m);if(x){u(t,e,g,m);var b=x&lt;s.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;;m(&quot;text&quot;),m(&quot;hovertext&quot;),m(&quot;hovertemplate&quot;),m(&quot;mode&quot;,b),l.hasLines(e)&amp;&amp;(m(&quot;connectgaps&quot;),h(t,e,r,g,m),m(&quot;line.shape&quot;)),l.hasMarkers(e)&amp;&amp;(f(t,e,r,g,m),m(&quot;marker.line.width&quot;,v||y?1:0)),l.hasText(e)&amp;&amp;(m(&quot;texttemplate&quot;),d(t,e,g,m));var _=(e.line||{}).color,w=(e.marker||{}).color;m(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;p(t,e,r,m);var T=i.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);T(t,e,_||w||r,{axis:&quot;y&quot;}),T(t,e,_||w||r,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,m)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:1239,&quot;./helpers&quot;:1246}],1244:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../constants/interactions&quot;).DESELECTDIM;e.exports={styleTextSelection:function(t){var e,r,o=t[0],s=o.trace,l=o.t,c=l._scene,u=l.index,f=c.selectBatch[u],h=c.unselectBatch[u],p=c.textOptions[u],d=c.textSelectedOptions[u]||{},g=c.textUnselectedOptions[u]||{},m=n.extendFlat({},p);if(f.length||h.length){var v=d.color,y=g.color,x=p.color,b=Array.isArray(x);for(m.color=new Array(s._length),e=0;e&lt;f.length;e++)r=f[e],m.color[r]=v||(b?x[r]:x);for(e=0;e&lt;h.length;e++){r=h[e];var _=b?x[r]:x;m.color[r]=y||(v?_:i.addOpacity(_,a))}}c.glText[u].update(m)}}},{&quot;../../components/color&quot;:643,&quot;../../constants/interactions&quot;:752,&quot;../../lib&quot;:778}],1245:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/format_labels&quot;);e.exports=function(t,e,r){var i=t.i;return&quot;x&quot;in t||(t.x=e._x[i]),&quot;y&quot;in t||(t.y=e._y[i]),n(t,e,r)}},{&quot;../scatter/format_labels&quot;:1196}],1246:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);r.isOpenSymbol=function(t){return&quot;string&quot;==typeof t?n.OPEN_RE.test(t):t%200&gt;100},r.isDotSymbol=function(t){return&quot;string&quot;==typeof t?n.DOT_RE.test(t):t&gt;200}},{&quot;./constants&quot;:1241}],1247:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/get_trace_color&quot;);function o(t,e,r,o){var s=t.xa,l=t.ya,c=t.distance,u=t.dxy,f=t.index,h={pointNumber:f,x:e[f],y:r[f]};h.tx=Array.isArray(o.text)?o.text[f]:o.text,h.htx=Array.isArray(o.hovertext)?o.hovertext[f]:o.hovertext,h.data=Array.isArray(o.customdata)?o.customdata[f]:o.customdata,h.tp=Array.isArray(o.textposition)?o.textposition[f]:o.textposition;var p=o.textfont;p&amp;&amp;(h.ts=i.isArrayOrTypedArray(p.size)?p.size[f]:p.size,h.tc=Array.isArray(p.color)?p.color[f]:p.color,h.tf=Array.isArray(p.family)?p.family[f]:p.family);var d=o.marker;d&amp;&amp;(h.ms=i.isArrayOrTypedArray(d.size)?d.size[f]:d.size,h.mo=i.isArrayOrTypedArray(d.opacity)?d.opacity[f]:d.opacity,h.mx=i.isArrayOrTypedArray(d.symbol)?d.symbol[f]:d.symbol,h.mc=i.isArrayOrTypedArray(d.color)?d.color[f]:d.color);var g=d&amp;&amp;d.line;g&amp;&amp;(h.mlc=Array.isArray(g.color)?g.color[f]:g.color,h.mlw=i.isArrayOrTypedArray(g.width)?g.width[f]:g.width);var m=d&amp;&amp;d.gradient;m&amp;&amp;&quot;none&quot;!==m.type&amp;&amp;(h.mgt=Array.isArray(m.type)?m.type[f]:m.type,h.mgc=Array.isArray(m.color)?m.color[f]:m.color);var v=s.c2p(h.x,!0),y=l.c2p(h.y,!0),x=h.mrc||1,b=o.hoverlabel;b&amp;&amp;(h.hbg=Array.isArray(b.bgcolor)?b.bgcolor[f]:b.bgcolor,h.hbc=Array.isArray(b.bordercolor)?b.bordercolor[f]:b.bordercolor,h.hts=i.isArrayOrTypedArray(b.font.size)?b.font.size[f]:b.font.size,h.htc=Array.isArray(b.font.color)?b.font.color[f]:b.font.color,h.htf=Array.isArray(b.font.family)?b.font.family[f]:b.font.family,h.hnl=i.isArrayOrTypedArray(b.namelength)?b.namelength[f]:b.namelength);var _=o.hoverinfo;_&amp;&amp;(h.hi=Array.isArray(_)?_[f]:_);var w=o.hovertemplate;w&amp;&amp;(h.ht=Array.isArray(w)?w[f]:w);var T={};T[t.index]=h;var k=o._origX,M=o._origY,A=i.extendFlat({},t,{color:a(o,h),x0:v-x,x1:v+x,xLabelVal:k?k[f]:h.x,y0:y-x,y1:y+x,yLabelVal:M?M[f]:h.y,cd:T,distance:c,spikeDistance:u,hovertemplate:h.ht});return h.htx?A.text=h.htx:h.tx?A.text=h.tx:o.text&amp;&amp;(A.text=o.text),i.fillText(h,o,A),n.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(h,o,A),A}e.exports={hoverPoints:function(t,e,r,n){var i,a,s,l,c,u,f,h,p,d=t.cd,g=d[0].t,m=d[0].trace,v=t.xa,y=t.ya,x=g.x,b=g.y,_=v.c2p(e),w=y.c2p(r),T=t.distance;if(g.tree){var k=v.p2c(_-T),M=v.p2c(_+T),A=y.p2c(w-T),S=y.p2c(w+T);i=&quot;x&quot;===n?g.tree.range(Math.min(k,M),Math.min(y._rl[0],y._rl[1]),Math.max(k,M),Math.max(y._rl[0],y._rl[1])):g.tree.range(Math.min(k,M),Math.min(A,S),Math.max(k,M),Math.max(A,S))}else i=g.ids;var E=T;if(&quot;x&quot;===n)for(c=0;c&lt;i.length;c++)s=x[i[c]],(u=Math.abs(v.c2p(s)-_))&lt;E&amp;&amp;(E=u,f=y.c2p(b[i[c]])-w,p=Math.sqrt(u*u+f*f),a=i[c]);else for(c=i.length-1;c&gt;-1;c--)s=x[i[c]],l=b[i[c]],u=v.c2p(s)-_,f=y.c2p(l)-w,(h=Math.sqrt(u*u+f*f))&lt;E&amp;&amp;(E=p=h,a=i[c]);return t.index=a,t.distance=E,t.dxy=p,void 0===a?[t]:[o(t,x,b,m)]},calcHover:o}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../scatter/get_trace_color&quot;:1197}],1248:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./hover&quot;);e.exports={moduleType:&quot;trace&quot;,name:&quot;scattergl&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;cartesian&quot;,&quot;symbols&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../scatter/cross_trace_defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:n.hoverPoints,selectPoints:t(&quot;./select&quot;),meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../scatter/cross_trace_defaults&quot;:1193,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1239,&quot;./calc&quot;:1240,&quot;./defaults&quot;:1243,&quot;./format_labels&quot;:1245,&quot;./hover&quot;:1247,&quot;./plot&quot;:1249,&quot;./select&quot;:1251}],1249:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-scatter2d&quot;),i=t(&quot;regl-line2d&quot;),a=t(&quot;regl-error2d&quot;),o=t(&quot;gl-text&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../components/dragelement/helpers&quot;).selectMode,c=t(&quot;../../lib/prepare_regl&quot;),u=t(&quot;../scatter/subtypes&quot;),f=t(&quot;../scatter/link_traces&quot;),h=t(&quot;./edit_style&quot;).styleTextSelection;function p(t,e,r){var n=t._size,i=t.width,a=t.height;return[n.l+e.domain[0]*n.w,n.b+r.domain[0]*n.h,i-n.r-(1-e.domain[1])*n.w,a-n.t-(1-r.domain[1])*n.h]}e.exports=function(t,e,r){if(r.length){var d,g,m=t._fullLayout,v=e._scene,y=e.xaxis,x=e.yaxis;if(v)if(c(t,[&quot;ANGLE_instanced_arrays&quot;,&quot;OES_element_index_uint&quot;])){var b=v.count,_=m._glcanvas.data()[0].regl;if(f(t,e,r),v.dirty){if(!0===v.error2d&amp;&amp;(v.error2d=a(_)),!0===v.line2d&amp;&amp;(v.line2d=i(_)),!0===v.scatter2d&amp;&amp;(v.scatter2d=n(_,{constPointSize:!0})),!0===v.fill2d&amp;&amp;(v.fill2d=i(_)),!0===v.glText)for(v.glText=new Array(b),d=0;d&lt;b;d++)v.glText[d]=new o(_);if(v.glText){if(b&gt;v.glText.length){var w=b-v.glText.length;for(d=0;d&lt;w;d++)v.glText.push(new o(_))}else if(b&lt;v.glText.length){var T=v.glText.length-b;v.glText.splice(b,T).forEach((function(t){t.destroy()}))}for(d=0;d&lt;b;d++)v.glText[d].update(v.textOptions[d])}if(v.line2d&amp;&amp;(v.line2d.update(v.lineOptions),v.lineOptions=v.lineOptions.map((function(t){if(t&amp;&amp;t.positions){for(var e=t.positions,r=0;r&lt;e.length&amp;&amp;(isNaN(e[r])||isNaN(e[r+1]));)r+=2;for(var n=e.length-2;n&gt;r&amp;&amp;(isNaN(e[n])||isNaN(e[n+1]));)n-=2;t.positions=e.slice(r,n+2)}return t})),v.line2d.update(v.lineOptions)),v.error2d){var k=(v.errorXOptions||[]).concat(v.errorYOptions||[]);v.error2d.update(k)}v.scatter2d&amp;&amp;v.scatter2d.update(v.markerOptions),v.fillOrder=s.repeat(null,b),v.fill2d&amp;&amp;(v.fillOptions=v.fillOptions.map((function(t,e){var n=r[e];if(t&amp;&amp;n&amp;&amp;n[0]&amp;&amp;n[0].trace){var i,a,o=n[0],s=o.trace,l=o.t,c=v.lineOptions[e],u=[];s._ownfill&amp;&amp;u.push(e),s._nexttrace&amp;&amp;u.push(e+1),u.length&amp;&amp;(v.fillOrder[e]=u);var f,h,p=[],d=c&amp;&amp;c.positions||l.positions;if(&quot;tozeroy&quot;===s.fill){for(f=0;f&lt;d.length&amp;&amp;isNaN(d[f+1]);)f+=2;for(h=d.length-2;h&gt;f&amp;&amp;isNaN(d[h+1]);)h-=2;0!==d[f+1]&amp;&amp;(p=[d[f],0]),p=p.concat(d.slice(f,h+2)),0!==d[h+1]&amp;&amp;(p=p.concat([d[h],0]))}else if(&quot;tozerox&quot;===s.fill){for(f=0;f&lt;d.length&amp;&amp;isNaN(d[f]);)f+=2;for(h=d.length-2;h&gt;f&amp;&amp;isNaN(d[h]);)h-=2;0!==d[f]&amp;&amp;(p=[0,d[f+1]]),p=p.concat(d.slice(f,h+2)),0!==d[h]&amp;&amp;(p=p.concat([0,d[h+1]]))}else if(&quot;toself&quot;===s.fill||&quot;tonext&quot;===s.fill){for(p=[],i=0,a=0;a&lt;d.length;a+=2)(isNaN(d[a])||isNaN(d[a+1]))&amp;&amp;((p=p.concat(d.slice(i,a))).push(d[i],d[i+1]),i=a+2);p=p.concat(d.slice(i)),i&amp;&amp;p.push(d[i],d[i+1])}else{var g=s._nexttrace;if(g){var m=v.lineOptions[e+1];if(m){var y=m.positions;if(&quot;tonexty&quot;===s.fill){for(p=d.slice(),e=Math.floor(y.length/2);e--;){var x=y[2*e],b=y[2*e+1];isNaN(x)||isNaN(b)||p.push(x,b)}t.fill=g.fillcolor}}}}if(s._prevtrace&amp;&amp;&quot;tonext&quot;===s._prevtrace.fill){var _=v.lineOptions[e-1].positions,w=p.length/2,T=[i=w];for(a=0;a&lt;_.length;a+=2)(isNaN(_[a])||isNaN(_[a+1]))&amp;&amp;(T.push(a/2+w+1),i=a+2);p=p.concat(_),t.hole=T}return t.fillmode=s.fill,t.opacity=s.opacity,t.positions=p,t}})),v.fill2d.update(v.fillOptions))}var M=m.dragmode,A=l(M),S=m.clickmode.indexOf(&quot;select&quot;)&gt;-1;for(d=0;d&lt;b;d++){var E=r[d][0],C=E.trace,L=E.t,I=L.index,P=C._length,z=L.x,O=L.y;if(C.selectedpoints||A||S){if(A||(A=!0),C.selectedpoints){var D=v.selectBatch[I]=s.selIndices2selPoints(C),R={};for(g=0;g&lt;D.length;g++)R[D[g]]=1;var F=[];for(g=0;g&lt;P;g++)R[g]||F.push(g);v.unselectBatch[I]=F}var B=L.xpx=new Array(P),N=L.ypx=new Array(P);for(g=0;g&lt;P;g++)B[g]=y.c2p(z[g]),N[g]=x.c2p(O[g])}else L.xpx=L.ypx=null}if(A){if(v.select2d||(v.select2d=n(m._glcanvas.data()[1].regl)),v.scatter2d){var j=new Array(b);for(d=0;d&lt;b;d++)j[d]=v.selectBatch[d].length||v.unselectBatch[d].length?v.markerUnselectedOptions[d]:{};v.scatter2d.update(j)}v.select2d&amp;&amp;(v.select2d.update(v.markerOptions),v.select2d.update(v.markerSelectedOptions)),v.glText&amp;&amp;r.forEach((function(t){var e=((t||[])[0]||{}).trace||{};u.hasText(e)&amp;&amp;h(t)}))}else v.scatter2d&amp;&amp;v.scatter2d.update(v.markerOptions);var U={viewport:p(m,y,x),range:[(y._rl||y.range)[0],(x._rl||x.range)[0],(y._rl||y.range)[1],(x._rl||x.range)[1]]},V=s.repeat(U,v.count);v.fill2d&amp;&amp;v.fill2d.update(V),v.line2d&amp;&amp;v.line2d.update(V),v.error2d&amp;&amp;v.error2d.update(V.concat(V)),v.scatter2d&amp;&amp;v.scatter2d.update(V),v.select2d&amp;&amp;v.select2d.update(V),v.glText&amp;&amp;v.glText.forEach((function(t){t.update(U)}))}else v.init()}}},{&quot;../../components/dragelement/helpers&quot;:661,&quot;../../lib&quot;:778,&quot;../../lib/prepare_regl&quot;:791,&quot;../scatter/link_traces&quot;:1203,&quot;../scatter/subtypes&quot;:1212,&quot;./edit_style&quot;:1244,&quot;gl-text&quot;:352,&quot;regl-error2d&quot;:534,&quot;regl-line2d&quot;:535,&quot;regl-scatter2d&quot;:537}],1250:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=e._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return e._scene||((r=e._scene={}).init=function(){n.extendFlat(r,a,i)},r.init(),r.update=function(t){var e=n.repeat(t,r.count);if(r.fill2d&amp;&amp;r.fill2d.update(e),r.scatter2d&amp;&amp;r.scatter2d.update(e),r.line2d&amp;&amp;r.line2d.update(e),r.error2d&amp;&amp;r.error2d.update(e.concat(e)),r.select2d&amp;&amp;r.select2d.update(e),r.glText)for(var i=0;i&lt;r.count;i++)r.glText[i].update(t)},r.draw=function(){for(var t=r.count,e=r.fill2d,i=r.error2d,a=r.line2d,o=r.scatter2d,s=r.glText,l=r.select2d,c=r.selectBatch,u=r.unselectBatch,f=0;f&lt;t;f++){if(e&amp;&amp;r.fillOrder[f]&amp;&amp;e.draw(r.fillOrder[f]),a&amp;&amp;r.lineOptions[f]&amp;&amp;a.draw(f),i&amp;&amp;(r.errorXOptions[f]&amp;&amp;i.draw(f),r.errorYOptions[f]&amp;&amp;i.draw(f+t)),o&amp;&amp;r.markerOptions[f])if(u[f].length){var h=n.repeat([],r.count);h[f]=u[f],o.draw(h)}else c[f].length||o.draw(f);s[f]&amp;&amp;r.textOptions[f]&amp;&amp;s[f].render()}l&amp;&amp;l.draw(c),r.dirty=!1},r.destroy=function(){r.fill2d&amp;&amp;r.fill2d.destroy&amp;&amp;r.fill2d.destroy(),r.scatter2d&amp;&amp;r.scatter2d.destroy&amp;&amp;r.scatter2d.destroy(),r.error2d&amp;&amp;r.error2d.destroy&amp;&amp;r.error2d.destroy(),r.line2d&amp;&amp;r.line2d.destroy&amp;&amp;r.line2d.destroy(),r.select2d&amp;&amp;r.select2d.destroy&amp;&amp;r.select2d.destroy(),r.glText&amp;&amp;r.glText.forEach((function(t){t.destroy&amp;&amp;t.destroy()})),r.lineOptions=null,r.fillOptions=null,r.markerOptions=null,r.markerSelectedOptions=null,r.markerUnselectedOptions=null,r.errorXOptions=null,r.errorYOptions=null,r.textOptions=null,r.textSelectedOptions=null,r.textUnselectedOptions=null,r.selectBatch=null,r.unselectBatch=null,e._scene=null}),r.dirty||n.extendFlat(r,i),r}},{&quot;../../lib&quot;:778}],1251:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/subtypes&quot;),i=t(&quot;./edit_style&quot;).styleTextSelection;e.exports=function(t,e){var r=t.cd,a=[],o=r[0].trace,s=r[0].t,l=o._length,c=s.x,u=s.y,f=s._scene,h=s.index;if(!f)return a;var p=n.hasText(o),d=n.hasMarkers(o),g=!d&amp;&amp;!p;if(!0!==o.visible||g)return a;var m=[],v=[];if(!1!==e&amp;&amp;!e.degenerate)for(var y=0;y&lt;l;y++)e.contains([s.xpx[y],s.ypx[y]],!1,y,t)?(m.push(y),a.push({pointNumber:y,x:c[y],y:u[y]})):v.push(y);if(d){var x=f.scatter2d;if(m.length||v.length){if(!f.selectBatch[h].length&amp;&amp;!f.unselectBatch[h].length){var b=new Array(f.count);b[h]=f.markerUnselectedOptions[h],x.update.apply(x,b)}}else{var _=new Array(f.count);_[h]=f.markerOptions[h],x.update.apply(x,_)}}return f.selectBatch[h]=m,f.unselectBatch[h]=v,p&amp;&amp;i(r),a}},{&quot;../scatter/subtypes&quot;:1212,&quot;./edit_style&quot;:1244}],1252:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scattergeo/attributes&quot;),o=t(&quot;../scatter/attributes&quot;),s=t(&quot;../../plots/mapbox/layout_attributes&quot;),l=t(&quot;../../plots/attributes&quot;),c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat,f=t(&quot;../../plot_api/edit_types&quot;).overrideAll,h=a.line,p=a.marker;e.exports=f({lon:a.lon,lat:a.lat,mode:u({},o.mode,{dflt:&quot;markers&quot;}),text:u({},o.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;lat&quot;,&quot;lon&quot;,&quot;text&quot;]}),hovertext:u({},o.hovertext,{}),line:{color:h.color,width:h.width},connectgaps:o.connectgaps,marker:u({symbol:{valType:&quot;string&quot;,dflt:&quot;circle&quot;,arrayOk:!0},angle:{valType:&quot;number&quot;,dflt:&quot;auto&quot;,arrayOk:!0},allowoverlap:{valType:&quot;boolean&quot;,dflt:!1},opacity:p.opacity,size:p.size,sizeref:p.sizeref,sizemin:p.sizemin,sizemode:p.sizemode},c(&quot;marker&quot;)),fill:a.fill,fillcolor:o.fillcolor,textfont:s.layers.symbol.textfont,textposition:s.layers.symbol.textposition,below:{valType:&quot;string&quot;},selected:{marker:o.selected.marker},unselected:{marker:o.unselected.marker},hoverinfo:u({},l.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n()},&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/mapbox/layout_attributes&quot;:887,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187,&quot;../scattergeo/attributes&quot;:1229}],1253:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../lib/geojson_utils&quot;),s=t(&quot;../../components/colorscale&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../scatter/make_bubble_size_func&quot;),u=t(&quot;../scatter/subtypes&quot;),f=t(&quot;../../plots/mapbox/convert_text_opts&quot;),h=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,p=t(&quot;../../lib/svg_text_utils&quot;).NEWLINES,d=t(&quot;../../lib/svg_text_utils&quot;).BR_TAG_ALL;function g(){return{geojson:o.makeBlank(),layout:{visibility:&quot;none&quot;},paint:{}}}function m(t,e){return i.isArrayOrTypedArray(t)?e?function(e){return n(t[e])?+t[e]:0}:function(e){return t[e]}:t?function(){return t}:v}function v(){return&quot;&quot;}function y(t){return t[0]===a}e.exports=function(t,e){var r,a=e[0].trace,x=!0===a.visible&amp;&amp;0!==a._length,b=&quot;none&quot;!==a.fill,_=u.hasLines(a),w=u.hasMarkers(a),T=u.hasText(a),k=w&amp;&amp;&quot;circle&quot;===a.marker.symbol,M=w&amp;&amp;&quot;circle&quot;!==a.marker.symbol,A=g(),S=g(),E=g(),C=g(),L={fill:A,line:S,circle:E,symbol:C};if(!x)return L;if((b||_)&amp;&amp;(r=o.calcTraceToLineCoords(e)),b&amp;&amp;(A.geojson=o.makePolygon(r),A.layout.visibility=&quot;visible&quot;,i.extendFlat(A.paint,{&quot;fill-color&quot;:a.fillcolor})),_&amp;&amp;(S.geojson=o.makeLine(r),S.layout.visibility=&quot;visible&quot;,i.extendFlat(S.paint,{&quot;line-width&quot;:a.line.width,&quot;line-color&quot;:a.line.color,&quot;line-opacity&quot;:a.opacity})),k){var I=function(t){var e,r,a,o,u=t[0].trace,f=u.marker,h=u.selectedpoints,p=i.isArrayOrTypedArray(f.color),d=i.isArrayOrTypedArray(f.size),g=i.isArrayOrTypedArray(f.opacity);function m(t){return u.opacity*t}p&amp;&amp;(r=s.hasColorscale(u,&quot;marker&quot;)?s.makeColorScaleFuncFromTrace(f):i.identity);d&amp;&amp;(a=c(u));g&amp;&amp;(o=function(t){return m(n(t)?+i.constrain(t,0,1):0)});var v,x=[];for(e=0;e&lt;t.length;e++){var b=t[e],_=b.lonlat;if(!y(_)){var w={};r&amp;&amp;(w.mcc=b.mcc=r(b.mc)),a&amp;&amp;(w.mrc=b.mrc=a(b.ms)),o&amp;&amp;(w.mo=o(b.mo)),h&amp;&amp;(w.selected=b.selected||0),x.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:_},properties:w})}}if(h)for(v=l.makeSelectedPointStyleFns(u),e=0;e&lt;x.length;e++){var T=x[e].properties;v.selectedOpacityFn&amp;&amp;(T.mo=m(v.selectedOpacityFn(T))),v.selectedColorFn&amp;&amp;(T.mcc=v.selectedColorFn(T)),v.selectedSizeFn&amp;&amp;(T.mrc=v.selectedSizeFn(T))}return{geojson:{type:&quot;FeatureCollection&quot;,features:x},mcc:p||v&amp;&amp;v.selectedColorFn?{type:&quot;identity&quot;,property:&quot;mcc&quot;}:f.color,mrc:d||v&amp;&amp;v.selectedSizeFn?{type:&quot;identity&quot;,property:&quot;mrc&quot;}:(k=f.size,k/2),mo:g||v&amp;&amp;v.selectedOpacityFn?{type:&quot;identity&quot;,property:&quot;mo&quot;}:m(f.opacity)};var k}(e);E.geojson=I.geojson,E.layout.visibility=&quot;visible&quot;,i.extendFlat(E.paint,{&quot;circle-color&quot;:I.mcc,&quot;circle-radius&quot;:I.mrc,&quot;circle-opacity&quot;:I.mo})}if((M||T)&amp;&amp;(C.geojson=function(t,e){for(var r=e._fullLayout,n=t[0].trace,a=n.marker||{},o=a.symbol,s=a.angle,l=&quot;circle&quot;!==o?m(o):v,c=&quot;auto&quot;!==s?m(s,!0):v,f=u.hasText(n)?m(n.text):v,g=[],x=0;x&lt;t.length;x++){var b=t[x];if(!y(b.lonlat)){var _,w=n.texttemplate;if(w){var T=Array.isArray(w)?w[x]||&quot;&quot;:w,k=n._module.formatLabels(b,n,r),M={};h(M,n,b.i);var A=n._meta||{};_=i.texttemplateString(T,k,r._d3locale,M,b,A)}else _=f(x);_&amp;&amp;(_=_.replace(p,&quot;&quot;).replace(d,&quot;\n&quot;)),g.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:b.lonlat},properties:{symbol:l(x),angle:c(x),text:_}})}}return{type:&quot;FeatureCollection&quot;,features:g}}(e,t),i.extendFlat(C.layout,{visibility:&quot;visible&quot;,&quot;icon-image&quot;:&quot;{symbol}-15&quot;,&quot;text-field&quot;:&quot;{text}&quot;}),M&amp;&amp;(i.extendFlat(C.layout,{&quot;icon-size&quot;:a.marker.size/10}),&quot;angle&quot;in a.marker&amp;&amp;&quot;auto&quot;!==a.marker.angle&amp;&amp;i.extendFlat(C.layout,{&quot;icon-rotate&quot;:{type:&quot;identity&quot;,property:&quot;angle&quot;},&quot;icon-rotation-alignment&quot;:&quot;map&quot;}),C.layout[&quot;icon-allow-overlap&quot;]=a.marker.allowoverlap,i.extendFlat(C.paint,{&quot;icon-opacity&quot;:a.opacity*a.marker.opacity,&quot;icon-color&quot;:a.marker.color})),T)){var P=(a.marker||{}).size,z=f(a.textposition,P);i.extendFlat(C.layout,{&quot;text-size&quot;:a.textfont.size,&quot;text-anchor&quot;:z.anchor,&quot;text-offset&quot;:z.offset}),i.extendFlat(C.paint,{&quot;text-color&quot;:a.textfont.color,&quot;text-opacity&quot;:a.opacity})}return L}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/geojson_utils&quot;:772,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/mapbox/convert_text_opts&quot;:884,&quot;../scatter/make_bubble_size_func&quot;:1204,&quot;../scatter/subtypes&quot;:1212,&quot;fast-isnumeric&quot;:241}],1254:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/text_defaults&quot;),l=t(&quot;../scatter/fillcolor_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}if(function(t,e,r){var n=r(&quot;lon&quot;)||[],i=r(&quot;lat&quot;)||[],a=Math.min(n.length,i.length);return e._length=a,a}(0,e,f)){if(f(&quot;text&quot;),f(&quot;texttemplate&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),f(&quot;below&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,u,f,{noDash:!0}),f(&quot;connectgaps&quot;)),i.hasMarkers(e)){a(t,e,r,u,f,{noLine:!0}),f(&quot;marker.allowoverlap&quot;),f(&quot;marker.angle&quot;);var h=e.marker;&quot;circle&quot;!==h.symbol&amp;&amp;(n.isArrayOrTypedArray(h.size)&amp;&amp;(h.size=h.size[0]),n.isArrayOrTypedArray(h.color)&amp;&amp;(h.color=h.color[0]))}i.hasText(e)&amp;&amp;s(t,e,u,f,{noSelect:!0}),f(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1252}],1255:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t}},{}],1256:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.subplot]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=n.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=n.tickText(a,a.c2l(o[1]),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1257:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/get_trace_color&quot;),o=i.fillText,s=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r){var l=t.cd,c=l[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=360*(e&gt;=0?Math.floor((e+180)/360):Math.ceil((e-180)/360)),d=e-p;if(n.getClosest(l,(function(t){var e=t.lonlat;if(e[0]===s)return 1/0;var n=i.modHalf(e[0],360),a=e[1],o=h.project([n,a]),l=o.x-u.c2p([d,a]),c=o.y-f.c2p([n,r]),p=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(l*l+c*c)-p,1-3/p)}),t),!1!==t.index){var g=l[t.index],m=g.lonlat,v=[i.modHalf(m[0],360)+p,m[1]],y=u.c2p(v),x=f.c2p(v),b=g.mrc||1;t.x0=y-b,t.x1=y+b,t.y0=x-b,t.y1=x+b;var _={};_[c.subplot]={_subplot:h};var w=c._module.formatLabels(g,c,_);return t.lonLabel=w.lonLabel,t.latLabel=w.latLabel,t.color=a(c,g),t.extraText=function(t,e,r){if(t.hovertemplate)return;var n=(e.hi||t.hoverinfo).split(&quot;+&quot;),i=-1!==n.indexOf(&quot;all&quot;),a=-1!==n.indexOf(&quot;lon&quot;),s=-1!==n.indexOf(&quot;lat&quot;),l=e.lonlat,c=[];function u(t){return t+&quot;\xb0&quot;}i||a&amp;&amp;s?c.push(&quot;(&quot;+u(l[0])+&quot;, &quot;+u(l[1])+&quot;)&quot;):a?c.push(r.lon+u(l[0])):s&amp;&amp;c.push(r.lat+u(l[1]));(i||-1!==n.indexOf(&quot;text&quot;))&amp;&amp;o(e,t,c);return c.join(&quot;&lt;br&gt;&quot;)}(c,g,l[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}}},{&quot;../../components/fx&quot;:683,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/get_trace_color&quot;:1197}],1258:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;../scattergeo/calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),styleOnSelect:function(t,e){e&amp;&amp;e[0].trace._glTrace.update(e)},moduleType:&quot;trace&quot;,name:&quot;scattermapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/mapbox&quot;:885,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scattergeo/calc&quot;:1230,&quot;./attributes&quot;:1252,&quot;./defaults&quot;:1254,&quot;./event_data&quot;:1255,&quot;./format_labels&quot;:1256,&quot;./hover&quot;:1257,&quot;./plot&quot;:1259,&quot;./select&quot;:1260}],1259:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;),i=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix,a=[&quot;fill&quot;,&quot;line&quot;,&quot;circle&quot;,&quot;symbol&quot;];function o(t,e){this.type=&quot;scattermapbox&quot;,this.subplot=t,this.uid=e,this.sourceIds={fill:&quot;source-&quot;+e+&quot;-fill&quot;,line:&quot;source-&quot;+e+&quot;-line&quot;,circle:&quot;source-&quot;+e+&quot;-circle&quot;,symbol:&quot;source-&quot;+e+&quot;-symbol&quot;},this.layerIds={fill:i+e+&quot;-fill&quot;,line:i+e+&quot;-line&quot;,circle:i+e+&quot;-circle&quot;,symbol:i+e+&quot;-symbol&quot;},this.below=null}var s=o.prototype;s.addSource=function(t,e){this.subplot.map.addSource(this.sourceIds[t],{type:&quot;geojson&quot;,data:e.geojson})},s.setSourceData=function(t,e){this.subplot.map.getSource(this.sourceIds[t]).setData(e.geojson)},s.addLayer=function(t,e,r){this.subplot.addLayer({type:t,id:this.layerIds[t],source:this.sourceIds[t],layout:e.layout,paint:e.paint},r)},s.update=function(t){var e,r,i,o=this.subplot,s=o.map,l=n(o.gd,t),c=o.belowLookup[&quot;trace-&quot;+this.uid];if(c!==this.below){for(e=a.length-1;e&gt;=0;e--)r=a[e],s.removeLayer(this.layerIds[r]);for(e=0;e&lt;a.length;e++)i=l[r=a[e]],this.addLayer(r,i,c);this.below=c}for(e=0;e&lt;a.length;e++)i=l[r=a[e]],o.setOptions(this.layerIds[r],&quot;setLayoutProperty&quot;,i.layout),&quot;visible&quot;===i.layout.visibility&amp;&amp;(this.setSourceData(r,i),o.setOptions(this.layerIds[r],&quot;setPaintProperty&quot;,i.paint));t[0].trace._glTrace=this},s.dispose=function(){for(var t=this.subplot.map,e=a.length-1;e&gt;=0;e--){var r=a[e];t.removeLayer(this.layerIds[r]),t.removeSource(this.sourceIds[r])}},e.exports=function(t,e){for(var r=e[0].trace,i=new o(t,r.uid),s=n(t.gd,e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid],c=0;c&lt;a.length;c++){var u=a[c],f=s[u];i.addSource(u,f),i.addLayer(u,f,l)}return e[0].trace._glTrace=i,i}},{&quot;../../plots/mapbox/constants&quot;:883,&quot;./convert&quot;:1253}],1260:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e){var r,o=t.cd,s=t.xaxis,l=t.yaxis,c=[],u=o[0].trace;if(!i.hasMarkers(u))return[];if(!1===e)for(r=0;r&lt;o.length;r++)o[r].selected=0;else for(r=0;r&lt;o.length;r++){var f=o[r],h=f.lonlat;if(h[0]!==a){var p=[n.modHalf(h[0],360),h[1]],d=[s.c2p(p),l.c2p(p)];e.contains(d,null,r,t)?(c.push({pointNumber:r,lon:h[0],lat:h[1]}),f.selected=1):f.selected=0}}return c}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/subtypes&quot;:1212}],1261:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../scatter/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=o.line;e.exports={mode:o.mode,r:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},theta:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},r0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dr:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},theta0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dtheta:{valType:&quot;number&quot;,editType:&quot;calc&quot;},thetaunit:{valType:&quot;enumerated&quot;,values:[&quot;radians&quot;,&quot;degrees&quot;,&quot;gradians&quot;],dflt:&quot;degrees&quot;,editType:&quot;calc+clearAxisTypes&quot;},text:o.text,texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]}),hovertext:o.hovertext,line:{color:l.color,width:l.width,dash:l.dash,shape:a({},l.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:l.smoothing,editType:&quot;calc&quot;},connectgaps:o.connectgaps,marker:o.marker,cliponaxis:a({},o.cliponaxis,{dflt:!1}),textposition:o.textposition,textfont:o.textfont,fill:a({},o.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:o.fillcolor,hoverinfo:a({},s.hoverinfo,{flags:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:o.hoveron,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1262:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../scatter/colorscale_calc&quot;),s=t(&quot;../scatter/arrays_to_calcdata&quot;),l=t(&quot;../scatter/calc_selection&quot;),c=t(&quot;../scatter/calc&quot;).calcMarkerSize;e.exports=function(t,e){for(var r=t._fullLayout,u=e.subplot,f=r[u].radialaxis,h=r[u].angularaxis,p=f.makeCalcdata(e,&quot;r&quot;),d=h.makeCalcdata(e,&quot;theta&quot;),g=e._length,m=new Array(g),v=0;v&lt;g;v++){var y=p[v],x=d[v],b=m[v]={};n(y)&amp;&amp;n(x)?(b.r=y,b.theta=x):b.r=i}var _=c(e,g);return e._extremes.x=a.findExtremes(f,p,{ppad:_}),o(t,e),s(m,e),l(m,e),m}},{&quot;../../constants/numerical&quot;:753,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc&quot;:1188,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1263:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/line_shape_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;../scatter/fillcolor_defaults&quot;),u=t(&quot;../scatter/constants&quot;).PTS_LINESONLY,f=t(&quot;./attributes&quot;);function h(t,e,r,n){var i,a=n(&quot;r&quot;),o=n(&quot;theta&quot;);if(a)o?i=Math.min(a.length,o.length):(i=a.length,n(&quot;theta0&quot;),n(&quot;dtheta&quot;));else{if(!o)return 0;i=e.theta.length,n(&quot;r0&quot;),n(&quot;dr&quot;)}return e._length=i,i}e.exports={handleRThetaDefaults:h,supplyDefaults:function(t,e,r,p){function d(r,i){return n.coerce(t,e,f,r,i)}var g=h(t,e,p,d);if(g){d(&quot;thetaunit&quot;),d(&quot;mode&quot;,g&lt;u?&quot;lines+markers&quot;:&quot;lines&quot;),d(&quot;text&quot;),d(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;d(&quot;hovertemplate&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,p,d),s(t,e,d),d(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;a(t,e,r,p,d,{gradient:!0}),i.hasText(e)&amp;&amp;(d(&quot;texttemplate&quot;),l(t,e,p,d));var m=[];(i.hasMarkers(e)||i.hasText(e))&amp;&amp;(d(&quot;cliponaxis&quot;),d(&quot;marker.maxdisplayed&quot;),m.push(&quot;points&quot;)),d(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(c(t,e,r,d),i.hasLines(e)||s(t,e,d)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||m.push(&quot;fills&quot;),d(&quot;hoveron&quot;,m.join(&quot;+&quot;)||&quot;points&quot;),n.coerceSelectionMarkerOpacity(e,d)}else e.visible=!1}}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/line_shape_defaults&quot;:1202,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1261}],1264:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var a,o,s={},l=r[e.subplot]._subplot;l?(a=l.radialAxis,o=l.angularAxis):(a=(l=r[e.subplot]).radialaxis,o=l.angularaxis);var c=a.c2l(t.r);s.rLabel=i.tickText(a,c,!0).text;var u=&quot;degrees&quot;===o.thetaunit?n.rad2deg(t.theta):t.theta;return s.thetaLabel=i.tickText(o,u,!0).text,s}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1265:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;);function i(t,e,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle=&quot;r&quot;,a._hovertitle=&quot;\u03b8&quot;;var o={};o[e.subplot]={_subplot:r};var s=e._module.formatLabels(t,e,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var l=t.hi||e.hoverinfo,c=[];function u(t,e){c.push(t._hovertitle+&quot;: &quot;+e)}if(!e.hovertemplate){var f=l.split(&quot;+&quot;);-1!==f.indexOf(&quot;all&quot;)&amp;&amp;(f=[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]),-1!==f.indexOf(&quot;r&quot;)&amp;&amp;u(i,n.rLabel),-1!==f.indexOf(&quot;theta&quot;)&amp;&amp;u(a,n.thetaLabel),-1!==f.indexOf(&quot;text&quot;)&amp;&amp;n.text&amp;&amp;(c.push(n.text),delete n.text),n.extraText=c.join(&quot;&lt;br&gt;&quot;)}}e.exports={hoverPoints:function(t,e,r,a){var o=n(t,e,r,a);if(o&amp;&amp;!1!==o[0].index){var s=o[0];if(void 0===s.index)return o;var l=t.subplot,c=s.cd[s.index],u=s.trace;if(l.isPtInside(c))return s.xLabelVal=void 0,s.yLabelVal=void 0,i(c,u,l,s),s.hovertemplate=u.hovertemplate,o}},makeHoverPointText:i}},{&quot;../scatter/hover&quot;:1198}],1266:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;scatterpolar&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;polar&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;../scatter/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:894,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/select&quot;:1209,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1261,&quot;./calc&quot;:1262,&quot;./defaults&quot;:1263,&quot;./format_labels&quot;:1264,&quot;./hover&quot;:1265,&quot;./plot&quot;:1267}],1267:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r){for(var a=e.layers.frontplot.select(&quot;g.scatterlayer&quot;),o={xaxis:e.xaxis,yaxis:e.yaxis,plot:e.framework,layerClipId:e._hasClipOnAxisFalse?e.clipIds.forTraces:null},s=e.radialAxis,l=e.angularAxis,c=0;c&lt;r.length;c++)for(var u=r[c],f=0;f&lt;u.length;f++){var h=u[f],p=h.r;if(p===i)h.x=h.y=i;else{var d=s.c2g(p),g=l.c2g(h.theta);h.x=d*Math.cos(g),h.y=d*Math.sin(g)}}n(t,o,r,a)}},{&quot;../../constants/numerical&quot;:753,&quot;../scatter/plot&quot;:1208}],1268:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatterpolar/attributes&quot;),i=t(&quot;../scattergl/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs;e.exports={mode:n.mode,r:n.r,theta:n.theta,r0:n.r0,dr:n.dr,theta0:n.theta0,dtheta:n.dtheta,thetaunit:n.thetaunit,text:n.text,texttemplate:a({editType:&quot;plot&quot;},{keys:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]}),hovertext:n.hovertext,hovertemplate:n.hovertemplate,line:i.line,connectgaps:i.connectgaps,marker:i.marker,fill:i.fill,fillcolor:i.fillcolor,textposition:i.textposition,textfont:i.textfont,hoverinfo:n.hoverinfo,selected:n.selected,unselected:n.unselected}},{&quot;../../plots/template_attributes&quot;:906,&quot;../scattergl/attributes&quot;:1239,&quot;../scatterpolar/attributes&quot;:1261}],1269:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/colorscale_calc&quot;),i=t(&quot;../scatter/calc&quot;).calcMarkerSize,a=t(&quot;../scattergl/convert&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e){var r=t._fullLayout,l=e.subplot,c=r[l].radialaxis,u=r[l].angularaxis,f=e._r=c.makeCalcdata(e,&quot;r&quot;),h=e._theta=u.makeCalcdata(e,&quot;theta&quot;),p=e._length,d={};p&lt;f.length&amp;&amp;(f=f.slice(0,p)),p&lt;h.length&amp;&amp;(h=h.slice(0,p)),d.r=f,d.theta=h,n(t,e);var g,m=d.opts=a.style(t,e);return p&lt;s?g=i(e,p):m.marker&amp;&amp;(g=2*(m.marker.sizeAvg||Math.max(m.marker.size,3))),e._extremes.x=o.findExtremes(c,f,{ppad:g}),[{x:!1,y:!1,t:d,trace:e}]}},{&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc&quot;:1188,&quot;../scatter/colorscale_calc&quot;:1190,&quot;../scattergl/constants&quot;:1241,&quot;../scattergl/convert&quot;:1242}],1270:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatterpolar/defaults&quot;).handleRThetaDefaults,o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;../scatter/fillcolor_defaults&quot;),u=t(&quot;../scatter/constants&quot;).PTS_LINESONLY,f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d=a(t,e,h,p);d?(p(&quot;thetaunit&quot;),p(&quot;mode&quot;,d&lt;u?&quot;lines+markers&quot;:&quot;lines&quot;),p(&quot;text&quot;),p(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;p(&quot;hovertemplate&quot;),i.hasLines(e)&amp;&amp;(s(t,e,r,h,p),p(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;o(t,e,r,h,p),i.hasText(e)&amp;&amp;(p(&quot;texttemplate&quot;),l(t,e,h,p)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;c(t,e,r,p),n.coerceSelectionMarkerOpacity(e,p)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;../scatterpolar/defaults&quot;:1263,&quot;./attributes&quot;:1268}],1271:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatterpolar/format_labels&quot;);e.exports=function(t,e,r){var i=t.i;return&quot;r&quot;in t||(t.r=e._r[i]),&quot;theta&quot;in t||(t.theta=e._theta[i]),n(t,e,r)}},{&quot;../scatterpolar/format_labels&quot;:1264}],1272:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scattergl/hover&quot;),i=t(&quot;../scatterpolar/hover&quot;).makeHoverPointText;e.exports={hoverPoints:function(t,e,r,a){var o=t.cd[0].t,s=o.r,l=o.theta,c=n.hoverPoints(t,e,r,a);if(c&amp;&amp;!1!==c[0].index){var u=c[0];if(void 0===u.index)return c;var f=t.subplot,h=u.cd[u.index],p=u.trace;if(h.r=s[u.index],h.theta=l[u.index],f.isPtInside(h))return u.xLabelVal=void 0,u.yLabelVal=void 0,i(h,p,f,u),c}}}},{&quot;../scattergl/hover&quot;:1247,&quot;../scatterpolar/hover&quot;:1265}],1273:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;scatterpolargl&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;polar&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;../scattergl/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:894,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scattergl/select&quot;:1251,&quot;./attributes&quot;:1268,&quot;./calc&quot;:1269,&quot;./defaults&quot;:1270,&quot;./format_labels&quot;:1271,&quot;./hover&quot;:1272,&quot;./plot&quot;:1274}],1274:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/point-cluster&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../scattergl/plot&quot;),o=t(&quot;../scattergl/scene_update&quot;),s=t(&quot;../scattergl/convert&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e,r){if(r.length){var u=e.radialAxis,f=e.angularAxis,h=o(t,e);return r.forEach((function(r){if(r&amp;&amp;r[0]&amp;&amp;r[0].trace){var a,o=r[0],p=o.trace,d=o.t,g=p._length,m=d.r,v=d.theta,y=d.opts,x=m.slice(),b=v.slice();for(a=0;a&lt;m.length;a++)e.isPtInside({r:m[a],theta:v[a]})||(x[a]=NaN,b[a]=NaN);var _=new Array(2*g),w=Array(g),T=Array(g);for(a=0;a&lt;g;a++){var k,M,A=x[a];if(i(A)){var S=u.c2g(A),E=f.c2g(b[a],p.thetaunit);k=S*Math.cos(E),M=S*Math.sin(E)}else k=M=NaN;w[a]=_[2*a]=k,T[a]=_[2*a+1]=M}d.tree=n(_),y.marker&amp;&amp;g&gt;=c&amp;&amp;(y.marker.cluster=d.tree),y.marker&amp;&amp;(y.markerSel.positions=y.markerUnsel.positions=y.marker.positions=_),y.line&amp;&amp;_.length&gt;1&amp;&amp;l.extendFlat(y.line,s.linePositions(t,p,_)),y.text&amp;&amp;(l.extendFlat(y.text,{positions:_},s.textPosition(t,p,y.text,y.marker)),l.extendFlat(y.textSel,{positions:_},s.textPosition(t,p,y.text,y.markerSel)),l.extendFlat(y.textUnsel,{positions:_},s.textPosition(t,p,y.text,y.markerUnsel))),y.fill&amp;&amp;!h.fill2d&amp;&amp;(h.fill2d=!0),y.marker&amp;&amp;!h.scatter2d&amp;&amp;(h.scatter2d=!0),y.line&amp;&amp;!h.line2d&amp;&amp;(h.line2d=!0),y.text&amp;&amp;!h.glText&amp;&amp;(h.glText=!0),h.lineOptions.push(y.line),h.fillOptions.push(y.fill),h.markerOptions.push(y.marker),h.markerSelectedOptions.push(y.markerSel),h.markerUnselectedOptions.push(y.markerUnsel),h.textOptions.push(y.text),h.textSelectedOptions.push(y.textSel),h.textUnselectedOptions.push(y.textUnsel),h.selectBatch.push([]),h.unselectBatch.push([]),d.x=w,d.y=T,d.rawx=w,d.rawy=T,d.r=m,d.theta=v,d.positions=_,d._scene=h,d.index=h.count,h.count++}})),a(t,e,r)}}},{&quot;../../lib&quot;:778,&quot;../scattergl/constants&quot;:1241,&quot;../scattergl/convert&quot;:1242,&quot;../scattergl/plot&quot;:1249,&quot;../scattergl/scene_update&quot;:1250,&quot;@plotly/point-cluster&quot;:57,&quot;fast-isnumeric&quot;:241}],1275:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scatter/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../lib/extend&quot;).extendFlat,u=a.marker,f=a.line,h=u.line;e.exports={a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},c:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sum:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;calc&quot;},mode:c({},a.mode,{dflt:&quot;markers&quot;}),text:c({},a.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;text&quot;]}),hovertext:c({},a.hovertext,{}),line:{color:f.color,width:f.width,dash:l,shape:c({},f.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:f.smoothing,editType:&quot;calc&quot;},connectgaps:a.connectgaps,cliponaxis:a.cliponaxis,fill:c({},a.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:a.fillcolor,marker:c({symbol:u.symbol,opacity:u.opacity,maxdisplayed:u.maxdisplayed,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,line:c({width:h.width,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),gradient:u.gradient,editType:&quot;calc&quot;},s(&quot;marker&quot;)),textfont:a.textfont,textposition:a.textposition,selected:a.selected,unselected:a.unselected,hoverinfo:c({},o.hoverinfo,{flags:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:a.hoveron,hovertemplate:n()}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing/attributes&quot;:664,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1276:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scatter/arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../scatter/calc&quot;).calcMarkerSize,l=[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],c={a:[&quot;b&quot;,&quot;c&quot;],b:[&quot;a&quot;,&quot;c&quot;],c:[&quot;a&quot;,&quot;b&quot;]};e.exports=function(t,e){var r,u,f,h,p,d,g=t._fullLayout[e.subplot].sum,m=e.sum||g,v={a:e.a,b:e.b,c:e.c};for(r=0;r&lt;l.length;r++)if(!v[f=l[r]]){for(p=v[c[f][0]],d=v[c[f][1]],h=new Array(p.length),u=0;u&lt;p.length;u++)h[u]=m-p[u]-d[u];v[f]=h}var y,x,b,_,w,T,k=e._length,M=new Array(k);for(r=0;r&lt;k;r++)y=v.a[r],x=v.b[r],b=v.c[r],n(y)&amp;&amp;n(x)&amp;&amp;n(b)?(1!==(_=g/((y=+y)+(x=+x)+(b=+b)))&amp;&amp;(y*=_,x*=_,b*=_),T=y,w=b-x,M[r]={x:w,y:T,a:y,b:x,c:b}):M[r]={x:!1,y:!1};return s(e,k),i(t,e),a(M,e),o(M,e),M}},{&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc&quot;:1188,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1277:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/constants&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/line_shape_defaults&quot;),c=t(&quot;../scatter/text_defaults&quot;),u=t(&quot;../scatter/fillcolor_defaults&quot;),f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d,g=p(&quot;a&quot;),m=p(&quot;b&quot;),v=p(&quot;c&quot;);if(g?(d=g.length,m?(d=Math.min(d,m.length),v&amp;&amp;(d=Math.min(d,v.length))):d=v?Math.min(d,v.length):0):m&amp;&amp;v&amp;&amp;(d=Math.min(m.length,v.length)),d){e._length=d,p(&quot;sum&quot;),p(&quot;text&quot;),p(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;p(&quot;hovertemplate&quot;),p(&quot;mode&quot;,d&lt;i.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;),a.hasLines(e)&amp;&amp;(s(t,e,r,h,p),l(t,e,p),p(&quot;connectgaps&quot;)),a.hasMarkers(e)&amp;&amp;o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&amp;&amp;(p(&quot;texttemplate&quot;),c(t,e,h,p));var y=[];(a.hasMarkers(e)||a.hasText(e))&amp;&amp;(p(&quot;cliponaxis&quot;),p(&quot;marker.maxdisplayed&quot;),y.push(&quot;points&quot;)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||y.push(&quot;fills&quot;),p(&quot;hoveron&quot;,y.join(&quot;+&quot;)||&quot;points&quot;),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/line_shape_defaults&quot;:1202,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1275}],1278:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){if(e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),n[i]){var a=n[i];t.a=a.a,t.b=a.b,t.c=a.c}else t.a=e.a,t.b=e.b,t.c=e.c;return t}},{}],1279:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.subplot]._subplot;return i.aLabel=n.tickText(a.aaxis,t.a,!0).text,i.bLabel=n.tickText(a.baxis,t.b,!0).text,i.cLabel=n.tickText(a.caxis,t.c,!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1280:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;);e.exports=function(t,e,r,i){var a=n(t,e,r,i);if(a&amp;&amp;!1!==a[0].index){var o=a[0];if(void 0===o.index){var s=1-o.y0/t.ya._length,l=t.xa._length,c=l*s/2,u=l-c;return o.x0=Math.max(Math.min(o.x0,u),c),o.x1=Math.max(Math.min(o.x1,u),c),a}var f=o.cd[o.index],h=o.trace,p=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var d={};d[h.subplot]={_subplot:p};var g=h._module.formatLabels(f,h,d);o.aLabel=g.aLabel,o.bLabel=g.bLabel,o.cLabel=g.cLabel;var m=f.hi||h.hoverinfo,v=[];if(!h.hovertemplate){var y=m.split(&quot;+&quot;);-1!==y.indexOf(&quot;all&quot;)&amp;&amp;(y=[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]),-1!==y.indexOf(&quot;a&quot;)&amp;&amp;x(p.aaxis,o.aLabel),-1!==y.indexOf(&quot;b&quot;)&amp;&amp;x(p.baxis,o.bLabel),-1!==y.indexOf(&quot;c&quot;)&amp;&amp;x(p.caxis,o.cLabel)}return o.extraText=v.join(&quot;&lt;br&gt;&quot;),o.hovertemplate=h.hovertemplate,a}function x(t,e){v.push(t._hovertitle+&quot;: &quot;+e)}}},{&quot;../scatter/hover&quot;:1198}],1281:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../scatter/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;scatterternary&quot;,basePlotModule:t(&quot;../../plots/ternary&quot;),categories:[&quot;ternary&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/ternary&quot;:907,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/select&quot;:1209,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1275,&quot;./calc&quot;:1276,&quot;./defaults&quot;:1277,&quot;./event_data&quot;:1278,&quot;./format_labels&quot;:1279,&quot;./hover&quot;:1280,&quot;./plot&quot;:1282}],1282:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;);e.exports=function(t,e,r){var i=e.plotContainer;i.select(&quot;.scatterlayer&quot;).selectAll(&quot;*&quot;).remove();var a={xaxis:e.xaxis,yaxis:e.yaxis,plot:i,layerClipId:e._hasClipOnAxisFalse?e.clipIdRelative:null},o=e.layers.frontplot.select(&quot;g.scatterlayer&quot;);n(t,a,r,o)}},{&quot;../scatter/plot&quot;:1208}],1283:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../scattergl/attributes&quot;),s=t(&quot;../../plots/cartesian/constants&quot;).idRegex,l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=t(&quot;../../lib/extend&quot;).extendFlat,u=n.marker,f=u.line,h=c(i(&quot;marker.line&quot;,{editTypeOverride:&quot;calc&quot;}),{width:c({},f.width,{editType:&quot;calc&quot;}),editType:&quot;calc&quot;}),p=c(i(&quot;marker&quot;),{symbol:u.symbol,size:c({},u.size,{editType:&quot;markerSize&quot;}),sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,opacity:u.opacity,colorbar:u.colorbar,line:h,editType:&quot;calc&quot;});function d(t){return{valType:&quot;info_array&quot;,freeLength:!0,editType:&quot;calc&quot;,items:{valType:&quot;subplotid&quot;,regex:s[t],editType:&quot;plot&quot;}}}p.color.editType=p.cmin.editType=p.cmax.editType=&quot;style&quot;,e.exports={dimensions:l(&quot;dimension&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},label:{valType:&quot;string&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},axis:{type:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;],editType:&quot;calc+clearAxisTypes&quot;},matches:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},editType:&quot;calc+clearAxisTypes&quot;},editType:&quot;calc+clearAxisTypes&quot;}),text:c({},o.text,{}),hovertext:c({},o.hovertext,{}),hovertemplate:a(),marker:p,xaxes:d(&quot;x&quot;),yaxes:d(&quot;y&quot;),diagonal:{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},showupperhalf:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},showlowerhalf:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},selected:{marker:o.selected.marker,editType:&quot;calc&quot;},unselected:{marker:o.unselected.marker,editType:&quot;calc&quot;},opacity:o.opacity}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187,&quot;../scattergl/attributes&quot;:1239}],1284:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-line2d&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib/prepare_regl&quot;),o=t(&quot;../../plots/get_data&quot;).getModuleCalcData,s=t(&quot;../../plots/cartesian&quot;),l=t(&quot;../../plots/cartesian/axis_ids&quot;).getFromId,c=t(&quot;../../plots/cartesian/axes&quot;).shouldShowZeroLine;function u(t,e,r){for(var n=r.matrixOptions.data.length,i=e._visibleDims,a=r.viewOpts.ranges=new Array(n),o=0;o&lt;i.length;o++){var s=i[o],c=a[o]=new Array(4),u=l(t,e._diag[s][0]);u&amp;&amp;(c[0]=u.r2l(u.range[0]),c[2]=u.r2l(u.range[1]));var f=l(t,e._diag[s][1]);f&amp;&amp;(c[1]=f.r2l(f.range[0]),c[3]=f.r2l(f.range[1]))}r.selectBatch.length||r.unselectBatch.length?r.matrix.update({ranges:a},{ranges:a}):r.matrix.update({ranges:a})}function f(t){var e=t._fullLayout,r=e._glcanvas.data()[0].regl,i=e._splomGrid;i||(i=e._splomGrid=n(r)),i.update(function(t){var e,r=t._fullLayout,n=r._size,i=[0,0,r.width,r.height],a={};function o(t,e,r,n,o,s){var l=e[t+&quot;color&quot;],c=e[t+&quot;width&quot;],u=String(l+c);u in a?a[u].data.push(NaN,NaN,r,n,o,s):a[u]={data:[r,n,o,s],join:&quot;rect&quot;,thickness:c,color:l,viewport:i,range:i,overlay:!1}}for(e in r._splomSubplots){var s,l,u=r._plots[e],f=u.xaxis,h=u.yaxis,p=f._gridVals,d=h._gridVals,g=n.b+h.domain[0]*n.h,m=-h._m,v=-m*h.r2l(h.range[0],h.calendar);if(f.showgrid)for(e=0;e&lt;p.length;e++)s=f._offset+f.l2p(p[e].x),o(&quot;grid&quot;,f,s,g,s,g+h._length);if(h.showgrid)for(e=0;e&lt;d.length;e++)l=g+v+m*d[e].x,o(&quot;grid&quot;,h,f._offset,l,f._offset+f._length,l);c(t,f,h)&amp;&amp;(s=f._offset+f.l2p(0),o(&quot;zeroline&quot;,f,s,g,s,g+h._length)),c(t,h,f)&amp;&amp;(l=g+v+0,o(&quot;zeroline&quot;,h,f._offset,l,f._offset+f._length,l))}var y=[];for(e in a)y.push(a[e]);return y}(t))}e.exports={name:&quot;splom&quot;,attr:s.attr,attrRegex:s.attrRegex,layoutAttributes:s.layoutAttributes,supplyLayoutDefaults:s.supplyLayoutDefaults,drawFramework:s.drawFramework,plot:function(t){var e=t._fullLayout,r=i.getModule(&quot;splom&quot;),n=o(t.calcdata,r)[0];a(t,[&quot;ANGLE_instanced_arrays&quot;,&quot;OES_element_index_uint&quot;])&amp;&amp;(e._hasOnlyLargeSploms&amp;&amp;f(t),r.plot(t,{},n))},drag:function(t){var e=t.calcdata,r=t._fullLayout;r._hasOnlyLargeSploms&amp;&amp;f(t);for(var n=0;n&lt;e.length;n++){var i=e[n][0].trace,a=r._splomScenes[i.uid];&quot;splom&quot;===i.type&amp;&amp;a&amp;&amp;a.matrix&amp;&amp;u(t,i,a)}},updateGrid:f,clean:function(t,e,r,n){var i,a={};if(n._splomScenes){for(i=0;i&lt;t.length;i++){var o=t[i];&quot;splom&quot;===o.type&amp;&amp;(a[o.uid]=1)}for(i=0;i&lt;r.length;i++){var l=r[i];if(!a[l.uid]){var c=n._splomScenes[l.uid];c&amp;&amp;c.destroy&amp;&amp;c.destroy(),n._splomScenes[l.uid]=null,delete n._splomScenes[l.uid]}}}0===Object.keys(n._splomScenes||{}).length&amp;&amp;delete n._splomScenes,n._splomGrid&amp;&amp;!e._hasOnlyLargeSploms&amp;&amp;n._hasOnlyLargeSploms&amp;&amp;(n._splomGrid.destroy(),n._splomGrid=null,delete n._splomGrid),s.clean(t,e,r,n)},updateFx:s.updateFx,toSVG:s.toSVG}},{&quot;../../lib/prepare_regl&quot;:791,&quot;../../plots/cartesian&quot;:841,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/get_data&quot;:865,&quot;../../registry&quot;:911,&quot;regl-line2d&quot;:535}],1285:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axis_ids&quot;),a=t(&quot;../scatter/calc&quot;).calcMarkerSize,o=t(&quot;../scatter/calc&quot;).calcAxisExpansion,s=t(&quot;../scatter/colorscale_calc&quot;),l=t(&quot;../scattergl/convert&quot;).markerSelection,c=t(&quot;../scattergl/convert&quot;).markerStyle,u=t(&quot;./scene_update&quot;),f=t(&quot;../../constants/numerical&quot;).BADNUM,h=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e){var r,p,d,g,m,v,y=e.dimensions,x=e._length,b={},_=b.cdata=[],w=b.data=[],T=e._visibleDims=[];function k(t,r){for(var i=t.makeCalcdata({v:r.values,vcalendar:e.calendar},&quot;v&quot;),a=0;a&lt;i.length;a++)i[a]=i[a]===f?NaN:i[a];_.push(i),w.push(&quot;log&quot;===t.type?n.simpleMap(i,t.c2l):i)}for(r=0;r&lt;y.length;r++)if((d=y[r]).visible){if(g=i.getFromId(t,e._diag[r][0]),m=i.getFromId(t,e._diag[r][1]),g&amp;&amp;m&amp;&amp;g.type!==m.type){n.log(&quot;Skipping splom dimension &quot;+r+&quot; with conflicting axis types&quot;);continue}g?(k(g,d),m&amp;&amp;&quot;category&quot;===m.type&amp;&amp;(m._categories=g._categories.slice())):k(m,d),T.push(r)}for(s(t,e),n.extendFlat(b,c(e)),v=_.length*x&gt;h?2*(b.sizeAvg||Math.max(b.size,3)):a(e,x),p=0;p&lt;T.length;p++)d=y[r=T[p]],g=i.getFromId(t,e._diag[r][0])||{},m=i.getFromId(t,e._diag[r][1])||{},o(t,e,g,m,_[p],_[p],v);var M=u(t,e);return M.matrix||(M.matrix=!0),M.matrixOptions=b,M.selectedOptions=l(e,e.selected),M.unselectedOptions=l(e,e.unselected),[{x:!1,y:!1,t:{},trace:e}]}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../scatter/calc&quot;:1188,&quot;../scatter/colorscale_calc&quot;:1190,&quot;../scattergl/constants&quot;:1241,&quot;../scattergl/convert&quot;:1242,&quot;./scene_update&quot;:1292}],1286:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../scatter/subtypes&quot;),s=t(&quot;../scatter/marker_defaults&quot;),l=t(&quot;../parcoords/merge_length&quot;),c=t(&quot;../scattergl/helpers&quot;).isOpenSymbol;function u(t,e){function r(r,i){return n.coerce(t,e,a.dimensions,r,i)}r(&quot;label&quot;);var i=r(&quot;values&quot;);i&amp;&amp;i.length?r(&quot;visible&quot;):e.visible=!1,r(&quot;axis.type&quot;),r(&quot;axis.matches&quot;)}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,a,r,i)}var p=i(t,e,{name:&quot;dimensions&quot;,handleItemDefaults:u}),d=h(&quot;diagonal.visible&quot;),g=h(&quot;showupperhalf&quot;),m=h(&quot;showlowerhalf&quot;);if(l(e,p,&quot;values&quot;)&amp;&amp;(d||g||m)){h(&quot;text&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;),s(t,e,r,f,h);var v=c(e.marker.symbol),y=o.isBubble(e);h(&quot;marker.line.width&quot;,v||y?1:0),function(t,e,r,n){var i,a,o=e.dimensions,s=o.length,l=e.showupperhalf,c=e.showlowerhalf,u=e.diagonal.visible,f=new Array(s),h=new Array(s);for(i=0;i&lt;s;i++){var p=i?i+1:&quot;&quot;;f[i]=&quot;x&quot;+p,h[i]=&quot;y&quot;+p}var d=n(&quot;xaxes&quot;,f),g=n(&quot;yaxes&quot;,h),m=e._diag=new Array(s);e._xaxes={},e._yaxes={};var v=[],y=[];function x(t,n,i,a){if(t){var o=t.charAt(0),s=r._splomAxes[o];if(e[&quot;_&quot;+o+&quot;axes&quot;][t]=1,a.push(t),!(t in s)){var l=s[t]={};i&amp;&amp;(l.label=i.label||&quot;&quot;,i.visible&amp;&amp;i.axis&amp;&amp;(i.axis.type&amp;&amp;(l.type=i.axis.type),i.axis.matches&amp;&amp;(l.matches=n)))}}}var b=!u&amp;&amp;!c,_=!u&amp;&amp;!l;for(e._axesDim={},i=0;i&lt;s;i++){var w=o[i],T=0===i,k=i===s-1,M=T&amp;&amp;b||k&amp;&amp;_?void 0:d[i],A=T&amp;&amp;_||k&amp;&amp;b?void 0:g[i];x(M,A,w,v),x(A,M,w,y),m[i]=[M,A],e._axesDim[M]=i,e._axesDim[A]=i}for(i=0;i&lt;v.length;i++)for(a=0;a&lt;y.length;a++){var S=v[i]+y[a];i&gt;a&amp;&amp;l||i&lt;a&amp;&amp;c?r._splomSubplots[S]=1:i!==a||!u&amp;&amp;c&amp;&amp;l||(r._splomSubplots[S]=1)}(!c||!u&amp;&amp;l&amp;&amp;c)&amp;&amp;(r._splomGridDflt.xside=&quot;bottom&quot;,r._splomGridDflt.yside=&quot;left&quot;)}(0,e,f,h),n.coerceSelectionMarkerOpacity(e,h)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../parcoords/merge_length&quot;:1158,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scattergl/helpers&quot;:1246,&quot;./attributes&quot;:1283}],1287:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scattergl/convert&quot;).markerStyle;e.exports=function(t,e){var r=e.trace,o=t._fullLayout._splomScenes[r.uid];if(o){i(t,r),n.extendFlat(o.matrixOptions,a(r));var s=n.extendFlat({},o.matrixOptions,o.viewOpts);o.matrix.update(s,null)}}},{&quot;../../lib&quot;:778,&quot;../scatter/colorscale_calc&quot;:1190,&quot;../scattergl/convert&quot;:1242}],1288:[function(t,e,r){&quot;use strict&quot;;r.getDimIndex=function(t,e){for(var r=e._id,n={x:0,y:1}[r.charAt(0)],i=t._visibleDims,a=0;a&lt;i.length;a++){var o=i[a];if(t._diag[o][n]===r)return a}return!1}},{}],1289:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./helpers&quot;),i=t(&quot;../scattergl/hover&quot;).calcHover;e.exports={hoverPoints:function(t,e,r){var a=t.cd[0].trace,o=t.scene.matrixOptions.cdata,s=t.xa,l=t.ya,c=s.c2p(e),u=l.c2p(r),f=t.distance,h=n.getDimIndex(a,s),p=n.getDimIndex(a,l);if(!1===h||!1===p)return[t];for(var d,g,m=o[h],v=o[p],y=f,x=0;x&lt;m.length;x++){var b=m[x],_=v[x],w=s.c2p(b)-c,T=l.c2p(_)-u,k=Math.sqrt(w*w+T*T);k&lt;y&amp;&amp;(y=g=k,d=x)}return t.index=d,t.distance=y,t.dxy=g,void 0===d?[t]:[i(t,m,v,a)]}}},{&quot;../scattergl/hover&quot;:1247,&quot;./helpers&quot;:1288}],1290:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../components/grid&quot;);e.exports={moduleType:&quot;trace&quot;,name:&quot;splom&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;cartesian&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;./select&quot;),editStyle:t(&quot;./edit_style&quot;),meta:{}},n.register(i)},{&quot;../../components/grid&quot;:687,&quot;../../registry&quot;:911,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1283,&quot;./base_plot&quot;:1284,&quot;./calc&quot;:1285,&quot;./defaults&quot;:1286,&quot;./edit_style&quot;:1287,&quot;./hover&quot;:1289,&quot;./plot&quot;:1291,&quot;./select&quot;:1293}],1291:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-splom&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../components/dragelement/helpers&quot;).selectMode;function s(t,e){var r,s,l,c,u,f=t._fullLayout,h=f._size,p=e.trace,d=e.t,g=f._splomScenes[p.uid],m=g.matrixOptions,v=m.cdata,y=f._glcanvas.data()[0].regl,x=f.dragmode;if(0!==v.length){m.lower=p.showupperhalf,m.upper=p.showlowerhalf,m.diagonal=p.diagonal.visible;var b=p._visibleDims,_=v.length,w=g.viewOpts={};for(w.ranges=new Array(_),w.domains=new Array(_),u=0;u&lt;b.length;u++){l=b[u];var T=w.ranges[u]=new Array(4),k=w.domains[u]=new Array(4);(r=a.getFromId(t,p._diag[l][0]))&amp;&amp;(T[0]=r._rl[0],T[2]=r._rl[1],k[0]=r.domain[0],k[2]=r.domain[1]),(s=a.getFromId(t,p._diag[l][1]))&amp;&amp;(T[1]=s._rl[0],T[3]=s._rl[1],k[1]=s.domain[0],k[3]=s.domain[1])}w.viewport=[h.l,h.b,h.w+h.l,h.h+h.b],!0===g.matrix&amp;&amp;(g.matrix=n(y));var M=f.clickmode.indexOf(&quot;select&quot;)&gt;-1,A=!0;if(o(x)||!!p.selectedpoints||M){var S=p._length;if(p.selectedpoints){g.selectBatch=p.selectedpoints;var E=p.selectedpoints,C={};for(l=0;l&lt;E.length;l++)C[E[l]]=!0;var L=[];for(l=0;l&lt;S;l++)C[l]||L.push(l);g.unselectBatch=L}var I=d.xpx=new Array(_),P=d.ypx=new Array(_);for(u=0;u&lt;b.length;u++){if(l=b[u],r=a.getFromId(t,p._diag[l][0]))for(I[u]=new Array(S),c=0;c&lt;S;c++)I[u][c]=r.c2p(v[u][c]);if(s=a.getFromId(t,p._diag[l][1]))for(P[u]=new Array(S),c=0;c&lt;S;c++)P[u][c]=s.c2p(v[u][c])}if(g.selectBatch.length||g.unselectBatch.length){var z=i.extendFlat({},m,g.unselectedOptions,w),O=i.extendFlat({},m,g.selectedOptions,w);g.matrix.update(z,O),A=!1}}else d.xpx=d.ypx=null;if(A){var D=i.extendFlat({},m,w);g.matrix.update(D,null)}}}e.exports=function(t,e,r){if(r.length)for(var n=0;n&lt;r.length;n++)s(t,r[n][0])}},{&quot;../../components/dragelement/helpers&quot;:661,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;regl-splom&quot;:539}],1292:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=t._fullLayout,i=e.uid,a=r._splomScenes;a||(a=r._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s=a[e.uid];return s||((s=a[i]=n.extendFlat({},o,{matrix:!1,selectBatch:[],unselectBatch:[]})).draw=function(){s.matrix&amp;&amp;s.matrix.draw&amp;&amp;(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&amp;&amp;s.matrix.destroy&amp;&amp;s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||n.extendFlat(s,o),s}},{&quot;../../lib&quot;:778}],1293:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;./helpers&quot;);e.exports=function(t,e){var r=t.cd,o=r[0].trace,s=r[0].t,l=t.scene,c=l.matrixOptions.cdata,u=t.xaxis,f=t.yaxis,h=[];if(!l)return h;var p=!i.hasMarkers(o)&amp;&amp;!i.hasText(o);if(!0!==o.visible||p)return h;var d=a.getDimIndex(o,u),g=a.getDimIndex(o,f);if(!1===d||!1===g)return h;var m=s.xpx[d],v=s.ypx[g],y=c[d],x=c[g],b=[],_=[];if(!1!==e&amp;&amp;!e.degenerate)for(var w=0;w&lt;y.length;w++)e.contains([m[w],v[w]],null,w,t)?(b.push(w),h.push({pointNumber:w,x:y[w],y:x[w]})):_.push(w);var T=l.matrixOptions;return b.length||_.length?l.selectBatch.length||l.unselectBatch.length||l.matrix.update(l.unselectedOptions,n.extendFlat({},T,l.selectedOptions,l.viewOpts)):l.matrix.update(T,null),l.selectBatch=b,l.unselectBatch=_,h}},{&quot;../../lib&quot;:778,&quot;../scatter/subtypes&quot;:1212,&quot;./helpers&quot;:1288}],1294:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../mesh3d/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},u:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},v:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},w:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},starts:{x:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},maxdisplayed:{valType:&quot;integer&quot;,min:0,dflt:1e3,editType:&quot;calc&quot;},sizeref:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0,dflt:1},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertemplate:i({editType:&quot;calc&quot;},{keys:[&quot;tubex&quot;,&quot;tubey&quot;,&quot;tubez&quot;,&quot;tubeu&quot;,&quot;tubev&quot;,&quot;tubew&quot;,&quot;norm&quot;,&quot;divergence&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})};s(l,n(&quot;&quot;,{colorAttr:&quot;u/v/w norm&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}));[&quot;opacity&quot;,&quot;lightposition&quot;,&quot;lighting&quot;].forEach((function(t){l[t]=a[t]})),l.hoverinfo=s({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;norm&quot;,&quot;divergence&quot;,&quot;text&quot;,&quot;name&quot;],dflt:&quot;x+y+z+norm+text+name&quot;}),l.transforms=void 0,e.exports=l},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../mesh3d/attributes&quot;:1128}],1295:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/calc&quot;);function a(t){var e,r,i,a,s,l,c,u,f,h,p,d,g=t._x,m=t._y,v=t._z,y=t._len,x=-1/0,b=1/0,_=-1/0,w=1/0,T=-1/0,k=1/0,M=&quot;&quot;;for(y&amp;&amp;(c=g[0],f=m[0],p=v[0]),y&gt;1&amp;&amp;(u=g[y-1],h=m[y-1],d=v[y-1]),e=0;e&lt;y;e++)x=Math.max(x,g[e]),b=Math.min(b,g[e]),_=Math.max(_,m[e]),w=Math.min(w,m[e]),T=Math.max(T,v[e]),k=Math.min(k,v[e]),a||g[e]===c||(a=!0,M+=&quot;x&quot;),s||m[e]===f||(s=!0,M+=&quot;y&quot;),l||v[e]===p||(l=!0,M+=&quot;z&quot;);a||(M+=&quot;x&quot;),s||(M+=&quot;y&quot;),l||(M+=&quot;z&quot;);var A=o(t._x),S=o(t._y),E=o(t._z);M=(M=(M=M.replace(&quot;x&quot;,(c&gt;u?&quot;-&quot;:&quot;+&quot;)+&quot;x&quot;)).replace(&quot;y&quot;,(f&gt;h?&quot;-&quot;:&quot;+&quot;)+&quot;y&quot;)).replace(&quot;z&quot;,(p&gt;d?&quot;-&quot;:&quot;+&quot;)+&quot;z&quot;);var C=function(){y=0,A=[],S=[],E=[]};(!y||y&lt;A.length*S.length*E.length)&amp;&amp;C();var L=function(t){return&quot;x&quot;===t?g:&quot;y&quot;===t?m:v},I=function(t){return&quot;x&quot;===t?A:&quot;y&quot;===t?S:E},P=function(t){return t[y-1]&lt;t[0]?-1:1},z=L(M[1]),O=L(M[3]),D=L(M[5]),R=I(M[1]).length,F=I(M[3]).length,B=I(M[5]).length,N=!1,j=function(t,e,r){return R*(F*t+e)+r},U=P(L(M[1])),V=P(L(M[3])),q=P(L(M[5]));for(e=0;e&lt;B-1;e++){for(r=0;r&lt;F-1;r++){for(i=0;i&lt;R-1;i++){var H=j(e,r,i),G=j(e,r,i+1),Y=j(e,r+1,i),W=j(e+1,r,i);if(z[H]*U&lt;z[G]*U&amp;&amp;O[H]*V&lt;O[Y]*V&amp;&amp;D[H]*q&lt;D[W]*q||(N=!0),N)break}if(N)break}if(N)break}return N&amp;&amp;(n.warn(&quot;Encountered arbitrary coordinates! Unable to input data grid.&quot;),C()),{xMin:b,yMin:w,zMin:k,xMax:x,yMax:_,zMax:T,Xs:A,Ys:S,Zs:E,len:y,fill:M}}function o(t){return n.distinctVals(t).vals}function s(t,e){if(void 0===e&amp;&amp;(e=t.length),n.isTypedArray(t))return t.subarray(0,e);for(var r=[],i=0;i&lt;e;i++)r[i]=+t[i];return r}e.exports={calc:function(t,e){e._len=Math.min(e.u.length,e.v.length,e.w.length,e.x.length,e.y.length,e.z.length),e._u=s(e.u,e._len),e._v=s(e.v,e._len),e._w=s(e.w,e._len),e._x=s(e.x,e._len),e._y=s(e.y,e._len),e._z=s(e.z,e._len);var r=a(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;var n,o,l,c=0;e.starts&amp;&amp;(n=s(e.starts.x||[]),o=s(e.starts.y||[]),l=s(e.starts.z||[]),c=Math.min(n.length,o.length,l.length)),e._startsX=n||[],e._startsY=o||[],e._startsZ=l||[];var u,f=0,h=1/0;for(u=0;u&lt;e._len;u++){var p=e._u[u],d=e._v[u],g=e._w[u],m=Math.sqrt(p*p+d*d+g*g);f=Math.max(f,m),h=Math.min(h,m)}for(i(t,e,{vals:[h,f],containerStr:&quot;&quot;,cLetter:&quot;c&quot;}),u=0;u&lt;c;u++){var v=n[u];r.xMax=Math.max(r.xMax,v),r.xMin=Math.min(r.xMin,v);var y=o[u];r.yMax=Math.max(r.yMax,y),r.yMin=Math.min(r.yMin,y);var x=l[u];r.zMax=Math.max(r.zMax,x),r.zMin=Math.min(r.zMin,x)}e._slen=c,e._normMax=f,e._xbnds=[r.xMin,r.xMax],e._ybnds=[r.yMin,r.yMax],e._zbnds=[r.zMin,r.zMax]},filter:s,processGrid:a}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../lib&quot;:778}],1296:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-streamtube3d&quot;),i=n.createTubeMesh,a=t(&quot;../../lib&quot;),o=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,s=t(&quot;../../components/colorscale&quot;).extractOpts,l=t(&quot;../../plots/gl3d/zip3&quot;),c={xaxis:0,yaxis:1,zaxis:2};function u(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var f=u.prototype;function h(t){var e=t.length;return e&gt;2?t.slice(1,e-1):2===e?[(t[0]+t[1])/2]:t}function p(t){var e=t.length;return 1===e?[.5,.5]:[t[1]-t[0],t[e-1]-t[e-2]]}function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,u=e._len,f={};function d(t,e){var n=r[e],o=i[c[e]];return a.simpleMap(t,(function(t){return n.d2l(t)*o}))}if(f.vectors=l(d(e._u,&quot;xaxis&quot;),d(e._v,&quot;yaxis&quot;),d(e._w,&quot;zaxis&quot;),u),!u)return{positions:[],cells:[]};var g=d(e._Xs,&quot;xaxis&quot;),m=d(e._Ys,&quot;yaxis&quot;),v=d(e._Zs,&quot;zaxis&quot;);if(f.meshgrid=[g,m,v],f.gridFill=e._gridFill,e._slen)f.startingPositions=l(d(e._startsX,&quot;xaxis&quot;),d(e._startsY,&quot;yaxis&quot;),d(e._startsZ,&quot;zaxis&quot;));else{for(var y=m[0],x=h(g),b=h(v),_=new Array(x.length*b.length),w=0,T=0;T&lt;x.length;T++)for(var k=0;k&lt;b.length;k++)_[w++]=[x[T],y,b[k]];f.startingPositions=_}f.colormap=o(e),f.tubeSize=e.sizeref,f.maxLength=e.maxdisplayed;var M=d(e._xbnds,&quot;xaxis&quot;),A=d(e._ybnds,&quot;yaxis&quot;),S=d(e._zbnds,&quot;zaxis&quot;),E=p(g),C=p(m),L=p(v),I=[[M[0]-E[0],A[0]-C[0],S[0]-L[0]],[M[1]+E[1],A[1]+C[1],S[1]+L[1]]],P=n(f,I),z=s(e);P.vertexIntensityBounds=[z.min/e._normMax,z.max/e._normMax];var O=e.lightposition;return P.lightPosition=[O.x,O.y,O.z],P.ambient=e.lighting.ambient,P.diffuse=e.lighting.diffuse,P.specular=e.lighting.specular,P.roughness=e.lighting.roughness,P.fresnel=e.lighting.fresnel,P.opacity=e.opacity,e._pad=P.tubeScale*e.sizeref*2,P}f.handlePick=function(t){var e=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(t,n){var i=e[n],a=r[c[n]];return i.l2c(t)/a}if(t.object===this.mesh){var i=t.data.position,a=t.data.velocity;return t.traceCoordinate=[n(i[0],&quot;xaxis&quot;),n(i[1],&quot;yaxis&quot;),n(i[2],&quot;zaxis&quot;),n(a[0],&quot;xaxis&quot;),n(a[1],&quot;yaxis&quot;),n(a[2],&quot;zaxis&quot;),t.data.intensity*this.data._normMax,t.data.divergence],t.textLabel=this.data.hovertext||this.data.text,!0}},f.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new u(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../plots/gl3d/zip3&quot;:881,&quot;gl-streamtube3d&quot;:348}],1297:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;u&quot;),c=s(&quot;v&quot;),u=s(&quot;w&quot;),f=s(&quot;x&quot;),h=s(&quot;y&quot;),p=s(&quot;z&quot;);l&amp;&amp;l.length&amp;&amp;c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length&amp;&amp;p&amp;&amp;p.length?(s(&quot;starts.x&quot;),s(&quot;starts.y&quot;),s(&quot;starts.z&quot;),s(&quot;maxdisplayed&quot;),s(&quot;sizeref&quot;),s(&quot;lighting.ambient&quot;),s(&quot;lighting.diffuse&quot;),s(&quot;lighting.specular&quot;),s(&quot;lighting.roughness&quot;),s(&quot;lighting.fresnel&quot;),s(&quot;lightposition.x&quot;),s(&quot;lightposition.y&quot;),s(&quot;lightposition.z&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:1294}],1298:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;streamtube&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./convert&quot;),eventData:function(t,e){return t.tubex=t.x,t.tubey=t.y,t.tubez=t.z,t.tubeu=e.traceCoordinate[3],t.tubev=e.traceCoordinate[4],t.tubew=e.traceCoordinate[5],t.norm=e.traceCoordinate[6],t.divergence=e.traceCoordinate[7],delete t.x,delete t.y,delete t.z,t},meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1294,&quot;./calc&quot;:1295,&quot;./convert&quot;:1296,&quot;./defaults&quot;:1297}],1299:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../pie/attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},parents:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},branchvalues:{valType:&quot;enumerated&quot;,values:[&quot;remainder&quot;,&quot;total&quot;],dflt:&quot;remainder&quot;,editType:&quot;calc&quot;},count:{valType:&quot;flaglist&quot;,flags:[&quot;branches&quot;,&quot;leaves&quot;],dflt:&quot;leaves&quot;,editType:&quot;calc&quot;},level:{valType:&quot;any&quot;,editType:&quot;plot&quot;,anim:!0},maxdepth:{valType:&quot;integer&quot;,editType:&quot;plot&quot;,dflt:-1},marker:u({colors:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:u({},l.marker.line.color,{dflt:null}),width:u({},l.marker.line.width,{dflt:1}),editType:&quot;calc&quot;},editType:&quot;calc&quot;},o(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),leaf:{opacity:{valType:&quot;number&quot;,editType:&quot;style&quot;,min:0,max:1},editType:&quot;plot&quot;},text:l.text,textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;current path&quot;,&quot;percent root&quot;,&quot;percent entry&quot;,&quot;percent parent&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;},texttemplate:a({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:l.hovertext,hoverinfo:u({},n.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;name&quot;,&quot;current path&quot;,&quot;percent root&quot;,&quot;percent entry&quot;,&quot;percent parent&quot;],dflt:&quot;label+text+value+name&quot;}),hovertemplate:i({},{keys:c.eventDataKeys}),textfont:l.textfont,insidetextorientation:l.insidetextorientation,insidetextfont:l.insidetextfont,outsidetextfont:u({},l.outsidetextfont,{}),rotation:{valType:&quot;angle&quot;,dflt:0,editType:&quot;plot&quot;},sort:l.sort,root:{color:{valType:&quot;color&quot;,editType:&quot;calc&quot;,dflt:&quot;rgba(0,0,0,0)&quot;},editType:&quot;calc&quot;},domain:s({name:&quot;sunburst&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/template_attributes&quot;:906,&quot;../pie/attributes&quot;:1161,&quot;./constants&quot;:1302}],1300:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;sunburst&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1301:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/colorscale&quot;).makeColorScaleFuncFromTrace,s=t(&quot;../pie/calc&quot;).makePullColorFn,l=t(&quot;../pie/calc&quot;).generateExtendedColors,c=t(&quot;../../components/colorscale&quot;).calc,u=t(&quot;../../constants/numerical&quot;).ALMOST_EQUAL,f={},h={};r.calc=function(t,e){var r,l,f,h,p,d,g=t._fullLayout,m=e.ids,v=a.isArrayOrTypedArray(m),y=e.labels,x=e.parents,b=e.values,_=a.isArrayOrTypedArray(b),w=[],T={},k={},M=function(t){return t||&quot;number&quot;==typeof t},A=function(t){return!_||i(b[t])&amp;&amp;b[t]&gt;=0};v?(r=Math.min(m.length,x.length),l=function(t){return M(m[t])&amp;&amp;A(t)},f=function(t){return String(m[t])}):(r=Math.min(y.length,x.length),l=function(t){return M(y[t])&amp;&amp;A(t)},f=function(t){return String(y[t])}),_&amp;&amp;(r=Math.min(r,b.length));for(var S=0;S&lt;r;S++)if(l(S)){var E=f(S),C=M(x[S])?String(x[S]):&quot;&quot;,L={i:S,id:E,pid:C,label:M(y[S])?String(y[S]):&quot;&quot;};_&amp;&amp;(L.v=+b[S]),w.push(L),p=E,T[h=C]?T[h].push(p):T[h]=[p],k[p]=1}if(T[&quot;&quot;]){if(T[&quot;&quot;].length&gt;1){for(var I=a.randstr(),P=0;P&lt;w.length;P++)&quot;&quot;===w[P].pid&amp;&amp;(w[P].pid=I);w.unshift({hasMultipleRoots:!0,id:I,pid:&quot;&quot;,label:&quot;&quot;})}}else{var z,O=[];for(z in T)k[z]||O.push(z);if(1!==O.length)return a.warn([&quot;Multiple implied roots, cannot build&quot;,e.type,&quot;hierarchy of&quot;,e.name+&quot;.&quot;,&quot;These roots include:&quot;,O.join(&quot;, &quot;)].join(&quot; &quot;));z=O[0],w.unshift({hasImpliedRoot:!0,id:z,pid:&quot;&quot;,label:z})}try{d=n.stratify().id((function(t){return t.id})).parentId((function(t){return t.pid}))(w)}catch(t){return a.warn([&quot;Failed to build&quot;,e.type,&quot;hierarchy of&quot;,e.name+&quot;.&quot;,&quot;Error:&quot;,t.message].join(&quot; &quot;))}var D=n.hierarchy(d),R=!1;if(_)switch(e.branchvalues){case&quot;remainder&quot;:D.sum((function(t){return t.data.v}));break;case&quot;total&quot;:D.each((function(t){var r=t.data.data,n=r.v;if(t.children){var i=t.children.reduce((function(t,e){return t+e.data.data.v}),0);if((r.hasImpliedRoot||r.hasMultipleRoots)&amp;&amp;(n=i),n&lt;i*u)return R=!0,a.warn([&quot;Total value for node&quot;,t.data.data.id,&quot;of&quot;,e.name,&quot;is smaller than the sum of its children.&quot;,&quot;\nparent value =&quot;,n,&quot;\nchildren sum =&quot;,i].join(&quot; &quot;))}t.value=n}))}else!function t(e,r,n){var i=0,a=e.children;if(a){for(var o=a.length,s=0;s&lt;o;s++)i+=t(a[s],r,n);n.branches&amp;&amp;i++}else n.leaves&amp;&amp;i++;e.value=e.data.data.value=i,r._values||(r._values=[]);return r._values[e.data.data.i]=i,i}(D,e,{branches:-1!==e.count.indexOf(&quot;branches&quot;),leaves:-1!==e.count.indexOf(&quot;leaves&quot;)});if(!R){var F,B;e.sort&amp;&amp;D.sort((function(t,e){return e.value-t.value}));var N=e.marker.colors||[],j=!!N.length;return e._hasColorscale?(j||(N=_?e.values:e._values),c(t,e,{vals:N,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),B=o(e.marker)):F=s(g[&quot;_&quot;+e.type+&quot;colormap&quot;]),D.each((function(t){var r=t.data.data;r.color=e._hasColorscale?B(N[r.i]):F(N[r.i],r.id)})),w[0].hierarchy=D,w}},r._runCrossTraceCalc=function(t,e){var r=e._fullLayout,n=e.calcdata,i=r[t+&quot;colorway&quot;],a=r[&quot;_&quot;+t+&quot;colormap&quot;];r[&quot;extend&quot;+t+&quot;colors&quot;]&amp;&amp;(i=l(i,&quot;treemap&quot;===t?h:f));var o,s=0;function c(t){var e=t.data.data,r=e.id;!1===e.color&amp;&amp;(a[r]?e.color=a[r]:t.parent?t.parent.parent?e.color=t.parent.data.data.color:(a[r]=e.color=i[s%i.length],s++):e.color=o)}for(var u=0;u&lt;n.length;u++){var p=n[u][0];p.trace.type===t&amp;&amp;p.hierarchy&amp;&amp;(o=p.trace.root.color,p.hierarchy.each(c))}},r.crossTraceCalc=function(t){return r._runCrossTraceCalc(&quot;sunburst&quot;,t)}},{&quot;../../components/colorscale&quot;:655,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../pie/calc&quot;:1163,&quot;d3-hierarchy&quot;:161,&quot;fast-isnumeric&quot;:241}],1302:[function(t,e,r){&quot;use strict&quot;;e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:&quot;linear&quot;,eventDataKeys:[&quot;currentPath&quot;,&quot;root&quot;,&quot;entry&quot;,&quot;percentRoot&quot;,&quot;percentEntry&quot;,&quot;percentParent&quot;]}},{}],1303:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../bar/defaults&quot;).handleText,s=t(&quot;../../components/colorscale&quot;),l=s.hasColorscale,c=s.handleDefaults;e.exports=function(t,e,r,s){function u(r,a){return n.coerce(t,e,i,r,a)}var f=u(&quot;labels&quot;),h=u(&quot;parents&quot;);if(f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length){var p=u(&quot;values&quot;);p&amp;&amp;p.length?u(&quot;branchvalues&quot;):u(&quot;count&quot;),u(&quot;level&quot;),u(&quot;maxdepth&quot;),u(&quot;marker.line.width&quot;)&amp;&amp;u(&quot;marker.line.color&quot;,s.paper_bgcolor),u(&quot;marker.colors&quot;);var d=e._hasColorscale=l(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis;d&amp;&amp;c(t,e,s,u,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),u(&quot;leaf.opacity&quot;,d?1:.7);var g=u(&quot;text&quot;);u(&quot;texttemplate&quot;),e.texttemplate||u(&quot;textinfo&quot;,Array.isArray(g)?&quot;text+label&quot;:&quot;label&quot;),u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;);o(t,e,s,u,&quot;auto&quot;,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),u(&quot;insidetextorientation&quot;),u(&quot;sort&quot;),u(&quot;rotation&quot;),u(&quot;root.color&quot;),a(e,s,u),e._length=null}else e.visible=!1}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/defaults&quot;:925,&quot;./attributes&quot;:1299}],1304:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,o=t(&quot;../../components/fx&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/events&quot;),c=t(&quot;./helpers&quot;),u=t(&quot;../pie/helpers&quot;).formatPieValue;function f(t,e,r){for(var n=t.data.data,i={curveNumber:e.index,pointNumber:n.i,data:e._input,fullData:e},o=0;o&lt;r.length;o++){var s=r[o];s in t&amp;&amp;(i[s]=t[s])}return&quot;parentString&quot;in t&amp;&amp;!c.isHierarchyRoot(t)&amp;&amp;(i.parent=t.parentString),a(i,e,n.i),i}e.exports=function(t,e,r,a,h){var p=a[0],d=p.trace,g=p.hierarchy,m=&quot;sunburst&quot;===d.type,v=&quot;treemap&quot;===d.type;&quot;_hasHoverLabel&quot;in d||(d._hasHoverLabel=!1),&quot;_hasHoverEvent&quot;in d||(d._hasHoverEvent=!1);t.on(&quot;mouseover&quot;,(function(i){var a=r._fullLayout;if(!r._dragging&amp;&amp;!1!==a.hovermode){var l=r._fullData[d.index],y=i.data.data,x=y.i,b=c.isHierarchyRoot(i),_=c.getParent(g,i),w=c.getValue(i),T=function(t){return s.castOption(l,x,t)},k=T(&quot;hovertemplate&quot;),M=o.castHoverinfo(l,a,x),A=a.separators;if(k||M&amp;&amp;&quot;none&quot;!==M&amp;&amp;&quot;skip&quot;!==M){var S,E;m&amp;&amp;(S=p.cx+i.pxmid[0]*(1-i.rInscribed),E=p.cy+i.pxmid[1]*(1-i.rInscribed)),v&amp;&amp;(S=i._hoverX,E=i._hoverY);var C,L={},I=[],P=[],z=function(t){return-1!==I.indexOf(t)};M&amp;&amp;(I=&quot;all&quot;===M?l._module.attributes.hoverinfo.flags:M.split(&quot;+&quot;)),L.label=y.label,z(&quot;label&quot;)&amp;&amp;L.label&amp;&amp;P.push(L.label),y.hasOwnProperty(&quot;v&quot;)&amp;&amp;(L.value=y.v,L.valueLabel=u(L.value,A),z(&quot;value&quot;)&amp;&amp;P.push(L.valueLabel)),L.currentPath=i.currentPath=c.getPath(i.data),z(&quot;current path&quot;)&amp;&amp;!b&amp;&amp;P.push(L.currentPath);var O=[],D=function(){-1===O.indexOf(C)&amp;&amp;(P.push(C),O.push(C))};L.percentParent=i.percentParent=w/c.getValue(_),L.parent=i.parentString=c.getPtLabel(_),z(&quot;percent parent&quot;)&amp;&amp;(C=c.formatPercent(L.percentParent,A)+&quot; of &quot;+L.parent,D()),L.percentEntry=i.percentEntry=w/c.getValue(e),L.entry=i.entry=c.getPtLabel(e),!z(&quot;percent entry&quot;)||b||i.onPathbar||(C=c.formatPercent(L.percentEntry,A)+&quot; of &quot;+L.entry,D()),L.percentRoot=i.percentRoot=w/c.getValue(g),L.root=i.root=c.getPtLabel(g),z(&quot;percent root&quot;)&amp;&amp;!b&amp;&amp;(C=c.formatPercent(L.percentRoot,A)+&quot; of &quot;+L.root,D()),L.text=T(&quot;hovertext&quot;)||T(&quot;text&quot;),z(&quot;text&quot;)&amp;&amp;(C=L.text,s.isValidTextValue(C)&amp;&amp;P.push(C));var R={trace:l,y:E,text:P.join(&quot;&lt;br&gt;&quot;),name:k||z(&quot;name&quot;)?l.name:void 0,color:T(&quot;hoverlabel.bgcolor&quot;)||y.color,borderColor:T(&quot;hoverlabel.bordercolor&quot;),fontFamily:T(&quot;hoverlabel.font.family&quot;),fontSize:T(&quot;hoverlabel.font.size&quot;),fontColor:T(&quot;hoverlabel.font.color&quot;),nameLength:T(&quot;hoverlabel.namelength&quot;),textAlign:T(&quot;hoverlabel.align&quot;),hovertemplate:k,hovertemplateLabels:L,eventData:[f(i,l,h.eventDataKeys)]};m&amp;&amp;(R.x0=S-i.rInscribed*i.rpx1,R.x1=S+i.rInscribed*i.rpx1,R.idealAlign=i.pxmid[0]&lt;0?&quot;left&quot;:&quot;right&quot;),v&amp;&amp;(R.x=S,R.idealAlign=S&lt;0?&quot;left&quot;:&quot;right&quot;),o.loneHover(R,{container:a._hoverlayer.node(),outerContainer:a._paper.node(),gd:r}),d._hasHoverLabel=!0}if(v){var F=t.select(&quot;path.surface&quot;);h.styleOne(F,i,l,{hovered:!0})}d._hasHoverEvent=!0,r.emit(&quot;plotly_hover&quot;,{points:[f(i,l,h.eventDataKeys)],event:n.event})}})),t.on(&quot;mouseout&quot;,(function(e){var i=r._fullLayout,a=r._fullData[d.index],s=n.select(this).datum();if(d._hasHoverEvent&amp;&amp;(e.originalEvent=n.event,r.emit(&quot;plotly_unhover&quot;,{points:[f(s,a,h.eventDataKeys)],event:n.event}),d._hasHoverEvent=!1),d._hasHoverLabel&amp;&amp;(o.loneUnhover(i._hoverlayer.node()),d._hasHoverLabel=!1),v){var l=t.select(&quot;path.surface&quot;);h.styleOne(l,s,a,{hovered:!1})}})),t.on(&quot;click&quot;,(function(t){var e=r._fullLayout,a=r._fullData[d.index],s=m&amp;&amp;(c.isHierarchyRoot(t)||c.isLeaf(t)),u=c.getPtId(t),p=c.isEntry(t)?c.findEntryWithChild(g,u):c.findEntryWithLevel(g,u),v=c.getPtId(p),y={points:[f(t,a,h.eventDataKeys)],event:n.event};s||(y.nextLevel=v);var x=l.triggerHandler(r,&quot;plotly_&quot;+d.type+&quot;click&quot;,y);if(!1!==x&amp;&amp;e.hovermode&amp;&amp;(r._hoverdata=[f(t,a,h.eventDataKeys)],o.click(r,n.event)),!s&amp;&amp;!1!==x&amp;&amp;!r._dragging&amp;&amp;!r._transitioning){i.call(&quot;_storeDirectGUIEdit&quot;,a,e._tracePreGUI[a.uid],{level:a.level});var b={data:[{level:v}],traces:[d.index]},_={frame:{redraw:!1,duration:h.transitionTime},transition:{duration:h.transitionTime,easing:h.transitionEasing},mode:&quot;immediate&quot;,fromcurrent:!0};o.loneUnhover(e._hoverlayer.node()),i.call(&quot;animate&quot;,r,b,_)}}))}},{&quot;../../components/fx&quot;:683,&quot;../../components/fx/helpers&quot;:679,&quot;../../lib&quot;:778,&quot;../../lib/events&quot;:767,&quot;../../registry&quot;:911,&quot;../pie/helpers&quot;:1166,&quot;./helpers&quot;:1305,d3:169}],1305:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib/setcursor&quot;),o=t(&quot;../pie/helpers&quot;);function s(t){return t.data.data.pid}r.findEntryWithLevel=function(t,e){var n;return e&amp;&amp;t.eachAfter((function(t){if(r.getPtId(t)===e)return n=t.copy()})),n||t},r.findEntryWithChild=function(t,e){var n;return t.eachAfter((function(t){for(var i=t.children||[],a=0;a&lt;i.length;a++){var o=i[a];if(r.getPtId(o)===e)return n=t.copy()}})),n||t},r.isEntry=function(t){return!t.parent},r.isLeaf=function(t){return!t.children},r.getPtId=function(t){return t.data.data.id},r.getPtLabel=function(t){return t.data.data.label},r.getValue=function(t){return t.value},r.isHierarchyRoot=function(t){return&quot;&quot;===s(t)},r.setSliceCursor=function(t,e,n){var i=n.isTransitioning;if(!i){var o=t.datum();i=n.hideOnRoot&amp;&amp;r.isHierarchyRoot(o)||n.hideOnLeaves&amp;&amp;r.isLeaf(o)}a(t,i?null:&quot;pointer&quot;)},r.getInsideTextFontKey=function(t,e,r,i,a){var o=(a||{}).onPathbar?&quot;pathbar.textfont&quot;:&quot;insidetextfont&quot;,s=r.data.data.i;return n.castOption(e,s,o+&quot;.&quot;+t)||n.castOption(e,s,&quot;textfont.&quot;+t)||i.size},r.getOutsideTextFontKey=function(t,e,r,i){var a=r.data.data.i;return n.castOption(e,a,&quot;outsidetextfont.&quot;+t)||n.castOption(e,a,&quot;textfont.&quot;+t)||i.size},r.isOutsideText=function(t,e){return!t._hasColorscale&amp;&amp;r.isHierarchyRoot(e)},r.determineTextFont=function(t,e,a,o){return r.isOutsideText(t,e)?function(t,e,n){return{color:r.getOutsideTextFontKey(&quot;color&quot;,t,e,n),family:r.getOutsideTextFontKey(&quot;family&quot;,t,e,n),size:r.getOutsideTextFontKey(&quot;size&quot;,t,e,n)}}(t,e,a):function(t,e,a,o){var s=(o||{}).onPathbar,l=e.data.data,c=l.i,u=n.castOption(t,c,(s?&quot;pathbar.textfont&quot;:&quot;insidetextfont&quot;)+&quot;.color&quot;);return!u&amp;&amp;t._input.textfont&amp;&amp;(u=n.castOption(t._input,c,&quot;textfont.color&quot;)),{color:u||i.contrast(l.color),family:r.getInsideTextFontKey(&quot;family&quot;,t,e,a,o),size:r.getInsideTextFontKey(&quot;size&quot;,t,e,a,o)}}(t,e,a,o)},r.hasTransition=function(t){return!!(t&amp;&amp;t.duration&gt;0)},r.getMaxDepth=function(t){return t.maxdepth&gt;=0?t.maxdepth:1/0},r.isHeader=function(t,e){return!(r.isLeaf(t)||t.depth===e._maxDepth-1)},r.getParent=function(t,e){return r.findEntryWithLevel(t,s(e))},r.listPath=function(t,e){var n=t.parent;if(!n)return[];var i=e?[n.data[e]]:[n];return r.listPath(n,e).concat(i)},r.getPath=function(t){return r.listPath(t,&quot;label&quot;).join(&quot;/&quot;)+&quot;/&quot;},r.formatValue=o.formatPieValue,r.formatPercent=function(t,e){var r=n.formatPercent(t,0);return&quot;0%&quot;===r&amp;&amp;(r=o.formatPiePercent(t,e)),r}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../pie/helpers&quot;:1166}],1306:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;sunburst&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1299,&quot;./base_plot&quot;:1300,&quot;./calc&quot;:1301,&quot;./defaults&quot;:1303,&quot;./layout_attributes&quot;:1307,&quot;./layout_defaults&quot;:1308,&quot;./plot&quot;:1309,&quot;./style&quot;:1310}],1307:[function(t,e,r){&quot;use strict&quot;;e.exports={sunburstcolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendsunburstcolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1308:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;sunburstcolorway&quot;,e.colorway),r(&quot;extendsunburstcolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1307}],1309:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-hierarchy&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../bar/uniform_text&quot;),c=l.recordMinTextSize,u=l.clearMinTextSize,f=t(&quot;../pie/plot&quot;),h=t(&quot;../pie/helpers&quot;).getRotationAngle,p=f.computeTransform,d=f.transformInsideText,g=t(&quot;./style&quot;).styleOne,m=t(&quot;../bar/style&quot;).resizeText,v=t(&quot;./fx&quot;),y=t(&quot;./constants&quot;),x=t(&quot;./helpers&quot;);function b(t,e,l,u){var f=t._fullLayout,m=!f.uniformtext.mode&amp;&amp;x.hasTransition(u),b=n.select(l).selectAll(&quot;g.slice&quot;),w=e[0],T=w.trace,k=w.hierarchy,M=x.findEntryWithLevel(k,T.level),A=x.getMaxDepth(T),S=f._size,E=T.domain,C=S.w*(E.x[1]-E.x[0]),L=S.h*(E.y[1]-E.y[0]),I=.5*Math.min(C,L),P=w.cx=S.l+S.w*(E.x[1]+E.x[0])/2,z=w.cy=S.t+S.h*(1-E.y[0])-L/2;if(!M)return b.remove();var O=null,D={};m&amp;&amp;b.each((function(t){D[x.getPtId(t)]={rpx0:t.rpx0,rpx1:t.rpx1,x0:t.x0,x1:t.x1,transform:t.transform},!O&amp;&amp;x.isEntry(t)&amp;&amp;(O=t)}));var R=function(t){return i.partition().size([2*Math.PI,t.height+1])(t)}(M).descendants(),F=M.height+1,B=0,N=A;w.hasMultipleRoots&amp;&amp;x.isHierarchyRoot(M)&amp;&amp;(R=R.slice(1),F-=1,B=1,N+=1),R=R.filter((function(t){return t.y1&lt;=N}));var j=h(T.rotation);j&amp;&amp;R.forEach((function(t){t.x0+=j,t.x1+=j}));var U=Math.min(F,A),V=function(t){return(t-B)/U*I},q=function(t,e){return[t*Math.cos(e),-t*Math.sin(e)]},H=function(t){return o.pathAnnulus(t.rpx0,t.rpx1,t.x0,t.x1,P,z)},G=function(t){return P+_(t)[0]*(t.transform.rCenter||0)+(t.transform.x||0)},Y=function(t){return z+_(t)[1]*(t.transform.rCenter||0)+(t.transform.y||0)};(b=b.data(R,x.getPtId)).enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),m?b.exit().transition().each((function(){var t=n.select(this);t.select(&quot;path.surface&quot;).transition().attrTween(&quot;d&quot;,(function(t){var e=function(t){var e,r=x.getPtId(t),i=D[r],a=D[x.getPtId(M)];if(a){var o=(t.x1&gt;a.x1?2*Math.PI:0)+j;e=t.rpx1&lt;a.rpx1?{rpx0:0,rpx1:0}:{x0:o,x1:o}}else{var s,l=x.getPtId(t.parent);b.each((function(t){if(x.getPtId(t)===l)return s=t}));var c,u=s.children;u.forEach((function(t,e){if(x.getPtId(t)===r)return c=e}));var f=u.length,h=n.interpolate(s.x0,s.x1);e={rpx0:I,rpx1:I,x0:h(c/f),x1:h((c+1)/f)}}return n.interpolate(i,e)}(t);return function(t){return H(e(t))}})),t.select(&quot;g.slicetext&quot;).attr(&quot;opacity&quot;,0)})).remove():b.exit().remove(),b.order();var W=null;if(m&amp;&amp;O){var X=x.getPtId(O);b.each((function(t){null===W&amp;&amp;x.getPtId(t)===X&amp;&amp;(W=t.x1)}))}var Z=b;function J(t){var e=t.parent,r=D[x.getPtId(e)],i={};if(r){var a=e.children,o=a.indexOf(t),s=a.length,l=n.interpolate(r.x0,r.x1);i.x0=l(o/s),i.x1=l(o/s)}else i.x0=i.x1=0;return i}m&amp;&amp;(Z=Z.transition().each(&quot;end&quot;,(function(){var e=n.select(this);x.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})}))),Z.each((function(i){var l=n.select(this),u=o.ensureSingle(l,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));i.rpx0=V(i.y0),i.rpx1=V(i.y1),i.xmid=(i.x0+i.x1)/2,i.pxmid=q(i.rpx1,i.xmid),i.midangle=-(i.xmid-Math.PI/2),i.startangle=-(i.x0-Math.PI/2),i.stopangle=-(i.x1-Math.PI/2),i.halfangle=.5*Math.min(o.angleDelta(i.x0,i.x1)||Math.PI,Math.PI),i.ring=1-i.rpx0/i.rpx1,i.rInscribed=function(t){return 0===t.rpx0&amp;&amp;o.isFullCircle([t.x0,t.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2))}(i),m?u.transition().attrTween(&quot;d&quot;,(function(t){var e=function(t){var e,r=D[x.getPtId(t)],i={x0:t.x0,x1:t.x1,rpx0:t.rpx0,rpx1:t.rpx1};if(r)e=r;else if(O)if(t.parent)if(W){var a=(t.x1&gt;W?2*Math.PI:0)+j;e={x0:a,x1:a}}else e={rpx0:I,rpx1:I},o.extendFlat(e,J(t));else e={rpx0:0,rpx1:0};else e={x0:j,x1:j};return n.interpolate(e,i)}(t);return function(t){return H(e(t))}})):u.attr(&quot;d&quot;,H),l.call(v,M,t,e,{eventDataKeys:y.eventDataKeys,transitionTime:y.CLICK_TRANSITION_TIME,transitionEasing:y.CLICK_TRANSITION_EASING}).call(x.setSliceCursor,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:t._transitioning}),u.call(g,i,T);var h=o.ensureSingle(l,&quot;g&quot;,&quot;slicetext&quot;),b=o.ensureSingle(h,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),_=o.ensureUniformFontSize(t,x.determineTextFont(T,i,f.font));b.text(r.formatSliceLabel(i,M,T,e,f)).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(a.font,_).call(s.convertToTspans,t);var k=a.bBox(b.node());i.transform=d(k,i,w),i.transform.targetX=G(i),i.transform.targetY=Y(i);var A=function(t,e){var r=t.transform;return p(r,e),r.fontSize=_.size,c(T.type,r,f),o.getTextTransform(r)};m?b.transition().attrTween(&quot;transform&quot;,(function(t){var e=function(t){var e,r=D[x.getPtId(t)],i=t.transform;if(r)e=r;else if(e={rpx1:t.rpx1,transform:{textPosAngle:i.textPosAngle,scale:0,rotate:i.rotate,rCenter:i.rCenter,x:i.x,y:i.y}},O)if(t.parent)if(W){var a=t.x1&gt;W?2*Math.PI:0;e.x0=e.x1=a}else o.extendFlat(e,J(t));else e.x0=e.x1=j;else e.x0=e.x1=j;var s=n.interpolate(e.transform.textPosAngle,t.transform.textPosAngle),l=n.interpolate(e.rpx1,t.rpx1),u=n.interpolate(e.x0,t.x0),h=n.interpolate(e.x1,t.x1),p=n.interpolate(e.transform.scale,i.scale),d=n.interpolate(e.transform.rotate,i.rotate),g=0===i.rCenter?3:0===e.transform.rCenter?1/3:1,m=n.interpolate(e.transform.rCenter,i.rCenter);return function(t){var e=l(t),r=u(t),n=h(t),a=function(t){return m(Math.pow(t,g))}(t),o={pxmid:q(e,(r+n)/2),rpx1:e,transform:{textPosAngle:s(t),rCenter:a,x:i.x,y:i.y}};return c(T.type,i,f),{transform:{targetX:G(o),targetY:Y(o),scale:p(t),rotate:d(t),rCenter:a}}}}(t);return function(t){return A(e(t),k)}})):b.attr(&quot;transform&quot;,A(i,k))}))}function _(t){return e=t.rpx1,r=t.transform.textPosAngle,[e*Math.sin(r),-e*Math.cos(r)];var e,r}r.plot=function(t,e,r,i){var a,o,s=t._fullLayout,l=s._sunburstlayer,c=!r,f=!s.uniformtext.mode&amp;&amp;x.hasTransition(r);(u(&quot;sunburst&quot;,s),(a=l.selectAll(&quot;g.trace.sunburst&quot;).data(e,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).classed(&quot;trace&quot;,!0).classed(&quot;sunburst&quot;,!0).attr(&quot;stroke-linejoin&quot;,&quot;round&quot;),a.order(),f)?(i&amp;&amp;(o=i()),n.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){o&amp;&amp;o()})).each(&quot;interrupt&quot;,(function(){o&amp;&amp;o()})).each((function(){l.selectAll(&quot;g.trace&quot;).each((function(e){b(t,e,this,r)}))}))):(a.each((function(e){b(t,e,this,r)})),s.uniformtext.mode&amp;&amp;m(t,s._sunburstlayer.selectAll(&quot;.trace&quot;),&quot;sunburst&quot;));c&amp;&amp;a.exit().remove()},r.formatSliceLabel=function(t,e,r,n,i){var a=r.texttemplate,s=r.textinfo;if(!(a||s&amp;&amp;&quot;none&quot;!==s))return&quot;&quot;;var l=i.separators,c=n[0],u=t.data.data,f=c.hierarchy,h=x.isHierarchyRoot(t),p=x.getParent(f,t),d=x.getValue(t);if(!a){var g,m=s.split(&quot;+&quot;),v=function(t){return-1!==m.indexOf(t)},y=[];if(v(&quot;label&quot;)&amp;&amp;u.label&amp;&amp;y.push(u.label),u.hasOwnProperty(&quot;v&quot;)&amp;&amp;v(&quot;value&quot;)&amp;&amp;y.push(x.formatValue(u.v,l)),!h){v(&quot;current path&quot;)&amp;&amp;y.push(x.getPath(t.data));var b=0;v(&quot;percent parent&quot;)&amp;&amp;b++,v(&quot;percent entry&quot;)&amp;&amp;b++,v(&quot;percent root&quot;)&amp;&amp;b++;var _=b&gt;1;if(b){var w,T=function(t){g=x.formatPercent(w,l),_&amp;&amp;(g+=&quot; of &quot;+t),y.push(g)};v(&quot;percent parent&quot;)&amp;&amp;!h&amp;&amp;(w=d/x.getValue(p),T(&quot;parent&quot;)),v(&quot;percent entry&quot;)&amp;&amp;(w=d/x.getValue(e),T(&quot;entry&quot;)),v(&quot;percent root&quot;)&amp;&amp;(w=d/x.getValue(f),T(&quot;root&quot;))}}return v(&quot;text&quot;)&amp;&amp;(g=o.castOption(r,u.i,&quot;text&quot;),o.isValidTextValue(g)&amp;&amp;y.push(g)),y.join(&quot;&lt;br&gt;&quot;)}var k=o.castOption(r,u.i,&quot;texttemplate&quot;);if(!k)return&quot;&quot;;var M={};u.label&amp;&amp;(M.label=u.label),u.hasOwnProperty(&quot;v&quot;)&amp;&amp;(M.value=u.v,M.valueLabel=x.formatValue(u.v,l)),M.currentPath=x.getPath(t.data),h||(M.percentParent=d/x.getValue(p),M.percentParentLabel=x.formatPercent(M.percentParent,l),M.parent=x.getPtLabel(p)),M.percentEntry=d/x.getValue(e),M.percentEntryLabel=x.formatPercent(M.percentEntry,l),M.entry=x.getPtLabel(e),M.percentRoot=d/x.getValue(f),M.percentRootLabel=x.formatPercent(M.percentRoot,l),M.root=x.getPtLabel(f),u.hasOwnProperty(&quot;color&quot;)&amp;&amp;(M.color=u.color);var A=o.castOption(r,u.i,&quot;text&quot;);return(o.isValidTextValue(A)||&quot;&quot;===A)&amp;&amp;(M.text=A),M.customdata=o.castOption(r,u.i,&quot;customdata&quot;),o.texttemplateString(k,M,i._d3locale,M,r._meta||{})}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,&quot;../pie/helpers&quot;:1166,&quot;../pie/plot&quot;:1170,&quot;./constants&quot;:1302,&quot;./fx&quot;:1304,&quot;./helpers&quot;:1305,&quot;./style&quot;:1310,d3:169,&quot;d3-hierarchy&quot;:161}],1310:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../bar/uniform_text&quot;).resizeText;function s(t,e,r){var n=e.data.data,o=!e.children,s=n.i,l=a.castOption(r,s,&quot;marker.line.color&quot;)||i.defaultLine,c=a.castOption(r,s,&quot;marker.line.width&quot;)||0;t.style(&quot;stroke-width&quot;,c).call(i.fill,n.color).call(i.stroke,l).style(&quot;opacity&quot;,o?r.leaf.opacity:null)}e.exports={style:function(t){var e=t._fullLayout._sunburstlayer.selectAll(&quot;.trace&quot;);o(t,e,&quot;sunburst&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(s,t,r)}))}))},styleOne:s}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/uniform_text&quot;:937,d3:169}],1311:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll;function c(t){return{show:{valType:&quot;boolean&quot;,dflt:!1},start:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;},end:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;},size:{valType:&quot;number&quot;,dflt:null,min:0,editType:&quot;plot&quot;},project:{x:{valType:&quot;boolean&quot;,dflt:!1},y:{valType:&quot;boolean&quot;,dflt:!1},z:{valType:&quot;boolean&quot;,dflt:!1}},color:{valType:&quot;color&quot;,dflt:n.defaultLine},usecolormap:{valType:&quot;boolean&quot;,dflt:!1},width:{valType:&quot;number&quot;,min:1,max:16,dflt:2},highlight:{valType:&quot;boolean&quot;,dflt:!0},highlightcolor:{valType:&quot;color&quot;,dflt:n.defaultLine},highlightwidth:{valType:&quot;number&quot;,min:1,max:16,dflt:2}}}var u=e.exports=l(s({z:{valType:&quot;data_array&quot;},x:{valType:&quot;data_array&quot;},y:{valType:&quot;data_array&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertemplate:a(),connectgaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},surfacecolor:{valType:&quot;data_array&quot;}},i(&quot;&quot;,{colorAttr:&quot;z or surfacecolor&quot;,showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}),{contours:{x:c(),y:c(),z:c()},hidesurface:{valType:&quot;boolean&quot;,dflt:!1},lightposition:{x:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:10},y:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:1e4},z:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:&quot;number&quot;,min:0,max:1,dflt:.8},diffuse:{valType:&quot;number&quot;,min:0,max:1,dflt:.8},specular:{valType:&quot;number&quot;,min:0,max:2,dflt:.05},roughness:{valType:&quot;number&quot;,min:0,max:1,dflt:.5},fresnel:{valType:&quot;number&quot;,min:0,max:5,dflt:.2}},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},opacityscale:{valType:&quot;any&quot;,editType:&quot;calc&quot;},_deprecated:{zauto:s({},i.zauto,{}),zmin:s({},i.zmin,{}),zmax:s({},i.zmax,{})},hoverinfo:s({},o.hoverinfo),showlegend:s({},o.showlegend,{dflt:!1})}),&quot;calc&quot;,&quot;nested&quot;);u.x.editType=u.y.editType=u.z.editType=&quot;calc+clearAxisTypes&quot;,u.transforms=void 0},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906}],1312:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){e.surfacecolor?n(t,e,{vals:e.surfacecolor,containerStr:&quot;&quot;,cLetter:&quot;c&quot;}):n(t,e,{vals:e.z,containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651}],1313:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-surface3d&quot;),i=t(&quot;ndarray&quot;),a=t(&quot;ndarray-linear-interpolate&quot;).d2,o=t(&quot;../heatmap/interp2d&quot;),s=t(&quot;../heatmap/find_empties&quot;),l=t(&quot;../../lib&quot;).isArrayOrTypedArray,c=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,u=t(&quot;../../lib/str2rgbarray&quot;),f=t(&quot;../../components/colorscale&quot;).extractOpts;function h(t,e,r){this.scene=t,this.uid=r,this.surface=e,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var p=h.prototype;p.getXat=function(t,e,r,n){var i=l(this.data.x)?l(this.data.x[0])?this.data.x[e][t]:this.data.x[t]:t;return void 0===r?i:n.d2l(i,0,r)},p.getYat=function(t,e,r,n){var i=l(this.data.y)?l(this.data.y[0])?this.data.y[e][t]:this.data.y[e]:e;return void 0===r?i:n.d2l(i,0,r)},p.getZat=function(t,e,r,n){var i=this.data.z[e][t];return null===i&amp;&amp;this.data.connectgaps&amp;&amp;this.data._interpolatedZ&amp;&amp;(i=this.data._interpolatedZ[e][t]),void 0===r?i:n.d2l(i,0,r)},p.handlePick=function(t){if(t.object===this.surface){var e=(t.data.index[0]-1)/this.dataScaleX-1,r=(t.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(e),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);t.index=[n,i],t.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],t.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a&lt;3;a++){var o=t.dataCoordinate[a];null!=o&amp;&amp;(t.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return Array.isArray(s)&amp;&amp;s[i]&amp;&amp;void 0!==s[i][n]?t.textLabel=s[i][n]:t.textLabel=s||&quot;&quot;,t.data.dataCoordinate=t.dataCoordinate.slice(),this.surface.highlight(t.data),this.scene.glplot.spikes.position=t.dataCoordinate,!0}};var d=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function g(t,e){if(t&lt;e)return 0;for(var r=0;0===Math.floor(t%e);)t/=e,r++;return r}function m(t){for(var e=[],r=0;r&lt;d.length;r++){var n=d[r];e.push(g(t,n))}return e}function v(t){for(var e=m(t),r=t,n=0;n&lt;d.length;n++)if(e[n]&gt;0){r=d[n];break}return r}function y(t,e){if(!(t&lt;1||e&lt;1)){for(var r=m(t),n=m(e),i=1,a=0;a&lt;d.length;a++)i*=Math.pow(d[a],Math.max(r[a],n[a]));return i}}p.calcXnums=function(t){var e,r=[];for(e=1;e&lt;t;e++){var n=this.getXat(e-1,0),i=this.getXat(e,0);r[e-1]=i!==n&amp;&amp;null!=n&amp;&amp;null!=i?Math.abs(i-n):0}var a=0;for(e=1;e&lt;t;e++)a+=r[e-1];for(e=1;e&lt;t;e++)0===r[e-1]?r[e-1]=1:r[e-1]=Math.round(a/r[e-1]);return r},p.calcYnums=function(t){var e,r=[];for(e=1;e&lt;t;e++){var n=this.getYat(0,e-1),i=this.getYat(0,e);r[e-1]=i!==n&amp;&amp;null!=n&amp;&amp;null!=i?Math.abs(i-n):0}var a=0;for(e=1;e&lt;t;e++)a+=r[e-1];for(e=1;e&lt;t;e++)0===r[e-1]?r[e-1]=1:r[e-1]=Math.round(a/r[e-1]);return r};var x=[1,2,4,6,12,24,36,48,60,120,180,240,360,720,840,1260],b=x[9],_=x[13];function w(t,e,r){var n=r[8]+r[2]*e[0]+r[5]*e[1];return t[0]=(r[6]+r[0]*e[0]+r[3]*e[1])/n,t[1]=(r[7]+r[1]*e[0]+r[4]*e[1])/n,t}function T(t,e,r){return function(t,e,r,n){for(var i=[0,0],o=t.shape[0],s=t.shape[1],l=0;l&lt;o;l++)for(var c=0;c&lt;s;c++)r(i,[l,c],n),t.set(l,c,a(e,i[0],i[1]))}(t,e,w,r),t}function k(t,e){for(var r=!1,n=0;n&lt;t.length;n++)if(e===t[n]){r=!0;break}!1===r&amp;&amp;t.push(e)}p.estimateScale=function(t,e){for(var r=1+function(t){if(0!==t.length){for(var e=1,r=0;r&lt;t.length;r++)e=y(e,t[r]);return e}}(0===e?this.calcXnums(t):this.calcYnums(t));r&lt;b;)r*=2;for(;r&gt;_;)r--,r/=v(r),++r&lt;b&amp;&amp;(r=_);var n=Math.round(r/t);return n&gt;1?n:1},p.refineCoords=function(t){for(var e=this.dataScaleX,r=this.dataScaleY,n=t[0].shape[0],a=t[0].shape[1],o=0|Math.floor(t[0].shape[0]*e+1),s=0|Math.floor(t[0].shape[1]*r+1),l=1+n+1,c=1+a+1,u=i(new Float32Array(l*c),[l,c]),f=[1/e,0,0,0,1/r,0,0,0,1],h=0;h&lt;t.length;++h){this.surface.padField(u,t[h]);var p=i(new Float32Array(o*s),[o,s]);T(p,u,f),t[h]=p}},p.setContourLevels=function(){var t,e,r,n=[[],[],[]],i=[!1,!1,!1],a=!1;for(t=0;t&lt;3;++t)if(this.showContour[t]&amp;&amp;(a=!0,this.contourSize[t]&gt;0&amp;&amp;null!==this.contourStart[t]&amp;&amp;null!==this.contourEnd[t]&amp;&amp;this.contourEnd[t]&gt;this.contourStart[t]))for(i[t]=!0,e=this.contourStart[t];e&lt;this.contourEnd[t];e+=this.contourSize[t])r=e*this.scene.dataScale[t],k(n[t],r);if(a){var o=[[],[],[]];for(t=0;t&lt;3;++t)this.showContour[t]&amp;&amp;(o[t]=i[t]?n[t]:this.scene.contourLevels[t]);this.surface.update({levels:o})}},p.update=function(t){var e,r,n,a,l=this.scene,h=l.fullSceneLayout,p=this.surface,d=c(t),g=l.dataScale,m=t.z[0].length,v=t._ylength,y=l.contourLevels;this.data=t;var x=[];for(e=0;e&lt;3;e++)for(x[e]=[],r=0;r&lt;m;r++)x[e][r]=[];for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)x[0][r][n]=this.getXat(r,n,t.xcalendar,h.xaxis),x[1][r][n]=this.getYat(r,n,t.ycalendar,h.yaxis),x[2][r][n]=this.getZat(r,n,t.zcalendar,h.zaxis);if(t.connectgaps)for(t._emptypoints=s(x[2]),o(x[2],t._emptypoints),t._interpolatedZ=[],r=0;r&lt;m;r++)for(t._interpolatedZ[r]=[],n=0;n&lt;v;n++)t._interpolatedZ[r][n]=x[2][r][n];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null==(a=x[e][r][n])?x[e][r][n]=NaN:a=x[e][r][n]*=g[e];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null!=(a=x[e][r][n])&amp;&amp;(this.minValues[e]&gt;a&amp;&amp;(this.minValues[e]=a),this.maxValues[e]&lt;a&amp;&amp;(this.maxValues[e]=a));for(e=0;e&lt;3;e++)this.objectOffset[e]=.5*(this.minValues[e]+this.maxValues[e]);for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null!=(a=x[e][r][n])&amp;&amp;(x[e][r][n]-=this.objectOffset[e]);var b=[i(new Float32Array(m*v),[m,v]),i(new Float32Array(m*v),[m,v]),i(new Float32Array(m*v),[m,v])];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)b[e].set(r,n,x[e][r][n]);x=[];var w={colormap:d,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!t.hidesurface,contourProject:[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],contourWidth:[1,1,1],contourColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],contourTint:[1,1,1],dynamicColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],dynamicWidth:[1,1,1],dynamicTint:[1,1,1],opacityscale:t.opacityscale,opacity:t.opacity},T=f(t);if(w.intensityBounds=[T.min,T.max],t.surfacecolor){var k=i(new Float32Array(m*v),[m,v]);for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)k.set(r,n,t.surfacecolor[n][r]);b.push(k)}else w.intensityBounds[0]*=g[2],w.intensityBounds[1]*=g[2];(_&lt;b[0].shape[0]||_&lt;b[0].shape[1])&amp;&amp;(this.refineData=!1),!0===this.refineData&amp;&amp;(this.dataScaleX=this.estimateScale(b[0].shape[0],0),this.dataScaleY=this.estimateScale(b[0].shape[1],1),1===this.dataScaleX&amp;&amp;1===this.dataScaleY||this.refineCoords(b)),t.surfacecolor&amp;&amp;(w.intensity=b.pop());var M=[!0,!0,!0],A=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(e=0;e&lt;3;++e){var S=t.contours[A[e]];M[e]=S.highlight,w.showContour[e]=S.show||S.highlight,w.showContour[e]&amp;&amp;(w.contourProject[e]=[S.project.x,S.project.y,S.project.z],S.show?(this.showContour[e]=!0,w.levels[e]=y[e],p.highlightColor[e]=w.contourColor[e]=u(S.color),S.usecolormap?p.highlightTint[e]=w.contourTint[e]=0:p.highlightTint[e]=w.contourTint[e]=1,w.contourWidth[e]=S.width,this.contourStart[e]=S.start,this.contourEnd[e]=S.end,this.contourSize[e]=S.size):(this.showContour[e]=!1,this.contourStart[e]=null,this.contourEnd[e]=null,this.contourSize[e]=0),S.highlight&amp;&amp;(w.dynamicColor[e]=u(S.highlightcolor),w.dynamicWidth[e]=S.highlightwidth))}(function(t){var e=t[0].rgb,r=t[t.length-1].rgb;return e[0]===r[0]&amp;&amp;e[1]===r[1]&amp;&amp;e[2]===r[2]&amp;&amp;e[3]===r[3]})(d)&amp;&amp;(w.vertexColor=!0),w.objectOffset=this.objectOffset,w.coords=b,p.update(w),p.visible=t.visible,p.enableDynamic=M,p.enableHighlight=M,p.snapToData=!0,&quot;lighting&quot;in t&amp;&amp;(p.ambientLight=t.lighting.ambient,p.diffuseLight=t.lighting.diffuse,p.specularLight=t.lighting.specular,p.roughness=t.lighting.roughness,p.fresnel=t.lighting.fresnel),&quot;lightposition&quot;in t&amp;&amp;(p.lightPosition=[t.lightposition.x,t.lightposition.y,t.lightposition.z])},p.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new h(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../heatmap/find_empties&quot;:1071,&quot;../heatmap/interp2d&quot;:1074,&quot;gl-surface3d&quot;:351,ndarray:495,&quot;ndarray-linear-interpolate&quot;:489}],1314:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r,n){var i=n(&quot;opacityscale&quot;);&quot;max&quot;===i?e.opacityscale=[[0,.1],[1,1]]:&quot;min&quot;===i?e.opacityscale=[[0,1],[1,.1]]:&quot;extremes&quot;===i?e.opacityscale=function(t,e){for(var r=[],n=0;n&lt;32;n++){var i=n/31,a=e+(1-e)*(1-Math.pow(Math.sin(t*i*Math.PI),2));r.push([i,Math.max(0,Math.min(1,a))])}return r}(1,.1):function(t){var e=0;if(!Array.isArray(t)||t.length&lt;2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r&lt;t.length;r++){var n=t[r];if(2!==n.length||+n[0]&lt;e)return!1;e=+n[0]}return!0}(i)||(e.opacityscale=void 0)}function l(t,e,r){e in t&amp;&amp;!(r in t)&amp;&amp;(t[r]=t[e])}e.exports={supplyDefaults:function(t,e,r,c){var u,f;function h(r,n){return i.coerce(t,e,o,r,n)}var p=h(&quot;x&quot;),d=h(&quot;y&quot;),g=h(&quot;z&quot;);if(!g||!g.length||p&amp;&amp;p.length&lt;1||d&amp;&amp;d.length&lt;1)e.visible=!1;else{e._xlength=Array.isArray(p)&amp;&amp;i.isArrayOrTypedArray(p[0])?g.length:g[0].length,e._ylength=g.length,n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],c),h(&quot;text&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;),[&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;hidesurface&quot;,&quot;connectgaps&quot;,&quot;opacity&quot;].forEach((function(t){h(t)}));var m=h(&quot;surfacecolor&quot;),v=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(u=0;u&lt;3;++u){var y=&quot;contours.&quot;+v[u],x=h(y+&quot;.show&quot;),b=h(y+&quot;.highlight&quot;);if(x||b)for(f=0;f&lt;3;++f)h(y+&quot;.project.&quot;+v[f]);x&amp;&amp;(h(y+&quot;.color&quot;),h(y+&quot;.width&quot;),h(y+&quot;.usecolormap&quot;)),b&amp;&amp;(h(y+&quot;.highlightcolor&quot;),h(y+&quot;.highlightwidth&quot;)),h(y+&quot;.start&quot;),h(y+&quot;.end&quot;),h(y+&quot;.size&quot;)}m||(l(t,&quot;zmin&quot;,&quot;cmin&quot;),l(t,&quot;zmax&quot;,&quot;cmax&quot;),l(t,&quot;zauto&quot;,&quot;cauto&quot;)),a(t,e,c,h,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(t,e,c,h),e._length=null}},opacityscaleDefaults:s}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1311}],1315:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;surface&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;2dMap&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1311,&quot;./calc&quot;:1312,&quot;./convert&quot;:1313,&quot;./defaults&quot;:1314}],1316:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/annotations/attributes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../../plot_api/edit_types&quot;).overrideAll,o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes;t(&quot;../../constants/docs&quot;).FORMAT_LINK;(e.exports=a({domain:s({name:&quot;table&quot;,trace:!0}),columnwidth:{valType:&quot;number&quot;,arrayOk:!0,dflt:null},columnorder:{valType:&quot;data_array&quot;},header:{values:{valType:&quot;data_array&quot;,dflt:[]},format:{valType:&quot;data_array&quot;,dflt:[]},prefix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},suffix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},height:{valType:&quot;number&quot;,dflt:28},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:&quot;number&quot;,arrayOk:!0,dflt:1},color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;grey&quot;}},fill:{color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;white&quot;}},font:i({},o({arrayOk:!0}))},cells:{values:{valType:&quot;data_array&quot;,dflt:[]},format:{valType:&quot;data_array&quot;,dflt:[]},prefix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},suffix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},height:{valType:&quot;number&quot;,dflt:20},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:&quot;number&quot;,arrayOk:!0,dflt:1},color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;grey&quot;}},fill:{color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;white&quot;}},font:i({},o({arrayOk:!0}))}},&quot;calc&quot;,&quot;from-root&quot;)).transforms=void 0},{&quot;../../components/annotations/attributes&quot;:626,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856}],1317:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getModuleCalcData,i=t(&quot;./plot&quot;);r.name=&quot;table&quot;,r.plot=function(t){var e=n(t.calcdata,&quot;table&quot;)[0];e.length&amp;&amp;i(t,e)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;table&quot;),a=e._has&amp;&amp;e._has(&quot;table&quot;);i&amp;&amp;!a&amp;&amp;n._paperdiv.selectAll(&quot;.table&quot;).remove()}},{&quot;../../plots/get_data&quot;:865,&quot;./plot&quot;:1324}],1318:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/gup&quot;).wrap;e.exports=function(){return n({})}},{&quot;../../lib/gup&quot;:775}],1319:[function(t,e,r){&quot;use strict&quot;;e.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:&quot;&lt;br&gt;&quot;,maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:&quot;cubic-out&quot;,scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:&quot;cubic-out&quot;,uplift:5,wrapSpacer:&quot; &quot;,wrapSplitCharacter:&quot; &quot;,cn:{table:&quot;table&quot;,tableControlView:&quot;table-control-view&quot;,scrollBackground:&quot;scroll-background&quot;,yColumn:&quot;y-column&quot;,columnBlock:&quot;column-block&quot;,scrollAreaClip:&quot;scroll-area-clip&quot;,scrollAreaClipRect:&quot;scroll-area-clip-rect&quot;,columnBoundary:&quot;column-boundary&quot;,columnBoundaryClippath:&quot;column-boundary-clippath&quot;,columnBoundaryRect:&quot;column-boundary-rect&quot;,columnCells:&quot;column-cells&quot;,columnCell:&quot;column-cell&quot;,cellRect:&quot;cell-rect&quot;,cellText:&quot;cell-text&quot;,cellTextHolder:&quot;cell-text-holder&quot;,scrollbarKit:&quot;scrollbar-kit&quot;,scrollbar:&quot;scrollbar&quot;,scrollbarSlider:&quot;scrollbar-slider&quot;,scrollbarGlyph:&quot;scrollbar-glyph&quot;,scrollbarCaptureZone:&quot;scrollbar-capture-zone&quot;}}},{}],1320:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;fast-isnumeric&quot;);function o(t){if(Array.isArray(t)){for(var e=0,r=0;r&lt;t.length;r++)e=Math.max(e,o(t[r]));return e}return t}function s(t,e){return t+e}function l(t){var e,r=t.slice(),n=1/0,i=0;for(e=0;e&lt;r.length;e++)Array.isArray(r[e])||(r[e]=[r[e]]),n=Math.min(n,r[e].length),i=Math.max(i,r[e].length);if(n!==i)for(e=0;e&lt;r.length;e++){var a=i-r[e].length;a&amp;&amp;(r[e]=r[e].concat(c(a)))}return r}function c(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=&quot;&quot;;return e}function u(t){return t.calcdata.columns.reduce((function(e,r){return r.xIndex&lt;t.xIndex?e+r.columnWidth:e}),0)}function f(t,e){return Object.keys(t).map((function(r){return i({},t[r],{auxiliaryBlocks:e})}))}function h(t,e){for(var r,n={},i=0,a=0,o={firstRowIndex:null,lastRowIndex:null,rows:[]},s=0,l=0,c=0;c&lt;t.length;c++)r=t[c],o.rows.push({rowIndex:c,rowHeight:r}),((a+=r)&gt;=e||c===t.length-1)&amp;&amp;(n[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=c,o={firstRowIndex:null,lastRowIndex:null,rows:[]},i+=a,s=c+1,a=0);return n}e.exports=function(t,e){var r=l(e.cells.values),p=function(t){return t.slice(e.header.values.length,t.length)},d=l(e.header.values);d.length&amp;&amp;!d[0].length&amp;&amp;(d[0]=[&quot;&quot;],d=l(d));var g=d.concat(p(r).map((function(){return c((d[0]||[&quot;&quot;]).length)}))),m=e.domain,v=Math.floor(t._fullLayout._size.w*(m.x[1]-m.x[0])),y=Math.floor(t._fullLayout._size.h*(m.y[1]-m.y[0])),x=e.header.values.length?g[0].map((function(){return e.header.height})):[n.emptyHeaderHeight],b=r.length?r[0].map((function(){return e.cells.height})):[],_=x.reduce(s,0),w=h(b,y-_+n.uplift),T=f(h(x,_),[]),k=f(w,T),M={},A=e._fullInput.columnorder.concat(p(r.map((function(t,e){return e})))),S=g.map((function(t,r){var n=Array.isArray(e.columnwidth)?e.columnwidth[Math.min(r,e.columnwidth.length-1)]:e.columnwidth;return a(n)?Number(n):1})),E=S.reduce(s,0);S=S.map((function(t){return t/E*v}));var C=Math.max(o(e.header.line.width),o(e.cells.line.width)),L={key:e.uid+t._context.staticPlot,translateX:m.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-m.y[1]),size:t._fullLayout._size,width:v,maxLineWidth:C,height:y,columnOrder:A,groupHeight:y,rowBlocks:k,headerRowBlocks:T,scrollY:0,cells:i({},e.cells,{values:r}),headerCells:i({},e.header,{values:g}),gdColumns:g.map((function(t){return t[0]})),gdColumnsOriginalOrder:g.map((function(t){return t[0]})),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:g.map((function(t,e){var r=M[t];return M[t]=(r||0)+1,{key:t+&quot;__&quot;+M[t],label:t,specIndex:e,xIndex:A[e],xScale:u,x:void 0,calcdata:void 0,columnWidth:S[e]}}))};return L.columns.forEach((function(t){t.calcdata=L,t.x=u(t)})),L}},{&quot;../../lib/extend&quot;:768,&quot;./constants&quot;:1319,&quot;fast-isnumeric&quot;:241}],1321:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat;r.splitToPanels=function(t){var e=[0,0],r=n({},t,{key:&quot;header&quot;,type:&quot;header&quot;,page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!0,values:t.calcdata.headerCells.values[t.specIndex],rowBlocks:t.calcdata.headerRowBlocks,calcdata:n({},t.calcdata,{cells:t.calcdata.headerCells})});return[n({},t,{key:&quot;cells1&quot;,type:&quot;cells&quot;,page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),n({},t,{key:&quot;cells2&quot;,type:&quot;cells&quot;,page:1,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),r]},r.splitToCells=function(t){var e=function(t){var e=t.rowBlocks[t.page],r=e?e.rows[0].rowIndex:0,n=e?r+e.rows.length:0;return[r,n]}(t);return(t.values||[]).slice(e[0],e[1]).map((function(r,n){return{keyWithinBlock:n+(&quot;string&quot;==typeof r&amp;&amp;r.match(/[&lt;$&amp;&gt; ]/)?&quot;_keybuster_&quot;+Math.random():&quot;&quot;),key:e[0]+n,column:t,calcdata:t.calcdata,page:t.page,rowBlocks:t.rowBlocks,value:r}}))}},{&quot;../../lib/extend&quot;:768}],1322:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults;e.exports=function(t,e,r,o){function s(r,a){return n.coerce(t,e,i,r,a)}a(e,o,s),s(&quot;columnwidth&quot;),s(&quot;header.values&quot;),s(&quot;header.format&quot;),s(&quot;header.align&quot;),s(&quot;header.prefix&quot;),s(&quot;header.suffix&quot;),s(&quot;header.height&quot;),s(&quot;header.line.width&quot;),s(&quot;header.line.color&quot;),s(&quot;header.fill.color&quot;),n.coerceFont(s,&quot;header.font&quot;,n.extendFlat({},o.font)),function(t,e){for(var r=t.columnorder||[],n=t.header.values.length,i=r.slice(0,n),a=i.slice().sort((function(t,e){return t-e})),o=i.map((function(t){return a.indexOf(t)})),s=o.length;s&lt;n;s++)o.push(s);e(&quot;columnorder&quot;,o)}(e,s),s(&quot;cells.values&quot;),s(&quot;cells.format&quot;),s(&quot;cells.align&quot;),s(&quot;cells.prefix&quot;),s(&quot;cells.suffix&quot;),s(&quot;cells.height&quot;),s(&quot;cells.line.width&quot;),s(&quot;cells.line.color&quot;),s(&quot;cells.fill.color&quot;),n.coerceFont(s,&quot;cells.font&quot;,n.extendFlat({},o.font)),e._length=null}},{&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1316}],1323:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),moduleType:&quot;trace&quot;,name:&quot;table&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1316,&quot;./base_plot&quot;:1317,&quot;./calc&quot;:1318,&quot;./defaults&quot;:1322,&quot;./plot&quot;:1324}],1324:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;d3&quot;),a=t(&quot;../../lib/gup&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../../lib&quot;).raiseToTop,c=t(&quot;../../lib&quot;).strTranslate,u=t(&quot;../../lib&quot;).cancelTransition,f=t(&quot;./data_preparation_helper&quot;),h=t(&quot;./data_split_helpers&quot;),p=t(&quot;../../components/color&quot;);function d(t){return Math.ceil(t.calcdata.maxLineWidth/2)}function g(t,e){return&quot;clip&quot;+t._fullLayout._uid+&quot;_scrollAreaBottomClip_&quot;+e.key}function m(t,e){return&quot;clip&quot;+t._fullLayout._uid+&quot;_columnBoundaryClippath_&quot;+e.calcdata.key+&quot;_&quot;+e.specIndex}function v(t){return[].concat.apply([],t.map((function(t){return t}))).map((function(t){return t.__data__}))}function y(t,e,r){var o=t.selectAll(&quot;.&quot;+n.cn.scrollbarKit).data(a.repeat,a.keyFun);o.enter().append(&quot;g&quot;).classed(n.cn.scrollbarKit,!0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;),o.each((function(t){var e=t.scrollbarState;e.totalHeight=function(t){var e=t.rowBlocks;return O(e,e.length-1)+(e.length?D(e[e.length-1],1/0):1)}(t),e.scrollableAreaHeight=t.groupHeight-A(t),e.currentlyVisibleHeight=Math.min(e.totalHeight,e.scrollableAreaHeight),e.ratio=e.currentlyVisibleHeight/e.totalHeight,e.barLength=Math.max(e.ratio*e.currentlyVisibleHeight,n.goldenRatio*n.scrollbarWidth),e.barWiggleRoom=e.currentlyVisibleHeight-e.barLength,e.wiggleRoom=Math.max(0,e.totalHeight-e.scrollableAreaHeight),e.topY=0===e.barWiggleRoom?0:t.scrollY/e.wiggleRoom*e.barWiggleRoom,e.bottomY=e.topY+e.barLength,e.dragMultiplier=e.wiggleRoom/e.barWiggleRoom})).attr(&quot;transform&quot;,(function(t){var e=t.width+n.scrollbarWidth/2+n.scrollbarOffset;return c(e,A(t))}));var s=o.selectAll(&quot;.&quot;+n.cn.scrollbar).data(a.repeat,a.keyFun);s.enter().append(&quot;g&quot;).classed(n.cn.scrollbar,!0);var l=s.selectAll(&quot;.&quot;+n.cn.scrollbarSlider).data(a.repeat,a.keyFun);l.enter().append(&quot;g&quot;).classed(n.cn.scrollbarSlider,!0),l.attr(&quot;transform&quot;,(function(t){return c(0,t.scrollbarState.topY||0)}));var u=l.selectAll(&quot;.&quot;+n.cn.scrollbarGlyph).data(a.repeat,a.keyFun);u.enter().append(&quot;line&quot;).classed(n.cn.scrollbarGlyph,!0).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,n.scrollbarWidth).attr(&quot;stroke-linecap&quot;,&quot;round&quot;).attr(&quot;y1&quot;,n.scrollbarWidth/2),u.attr(&quot;y2&quot;,(function(t){return t.scrollbarState.barLength-n.scrollbarWidth/2})).attr(&quot;stroke-opacity&quot;,(function(t){return t.columnDragInProgress||!t.scrollbarState.barWiggleRoom||r?0:.4})),u.transition().delay(0).duration(0),u.transition().delay(n.scrollbarHideDelay).duration(n.scrollbarHideDuration).attr(&quot;stroke-opacity&quot;,0);var f=s.selectAll(&quot;.&quot;+n.cn.scrollbarCaptureZone).data(a.repeat,a.keyFun);f.enter().append(&quot;line&quot;).classed(n.cn.scrollbarCaptureZone,!0).attr(&quot;stroke&quot;,&quot;white&quot;).attr(&quot;stroke-opacity&quot;,.01).attr(&quot;stroke-width&quot;,n.scrollbarCaptureWidth).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;).attr(&quot;y1&quot;,0).on(&quot;mousedown&quot;,(function(r){var n=i.event.y,a=this.getBoundingClientRect(),o=r.scrollbarState,s=n-a.top,l=i.scale.linear().domain([0,o.scrollableAreaHeight]).range([0,o.totalHeight]).clamp(!0);o.topY&lt;=s&amp;&amp;s&lt;=o.bottomY||E(e,t,null,l(s-o.barLength/2))(r)})).call(i.behavior.drag().origin((function(t){return i.event.stopPropagation(),t.scrollbarState.scrollbarScrollInProgress=!0,t})).on(&quot;drag&quot;,E(e,t)).on(&quot;dragend&quot;,(function(){}))),f.attr(&quot;y2&quot;,(function(t){return t.scrollbarState.scrollableAreaHeight})),e._context.staticPlot&amp;&amp;(u.remove(),f.remove())}function x(t,e,r,s){var l=function(t){var e=t.selectAll(&quot;.&quot;+n.cn.columnCell).data(h.splitToCells,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;g&quot;).classed(n.cn.columnCell,!0),e.exit().remove(),e}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.columnCells).data(a.repeat,a.keyFun);return e.enter().append(&quot;g&quot;).classed(n.cn.columnCells,!0),e.exit().remove(),e}(r));!function(t){t.each((function(t,e){var r=t.calcdata.cells.font,n=t.column.specIndex,i={size:w(r.size,n,e),color:w(r.color,n,e),family:w(r.family,n,e)};t.rowNumber=t.key,t.align=w(t.calcdata.cells.align,n,e),t.cellBorderWidth=w(t.calcdata.cells.line.width,n,e),t.font=i}))}(l),function(t){t.attr(&quot;width&quot;,(function(t){return t.column.columnWidth})).attr(&quot;stroke-width&quot;,(function(t){return t.cellBorderWidth})).each((function(t){var e=i.select(this);p.stroke(e,w(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),p.fill(e,w(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))}))}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellRect).data(a.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;rect&quot;).classed(n.cn.cellRect,!0),e}(l));var c=function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellText).data(a.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;text&quot;).classed(n.cn.cellText,!0).style(&quot;cursor&quot;,(function(){return&quot;auto&quot;})).on(&quot;mousedown&quot;,(function(){i.event.stopPropagation()})),e}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellTextHolder).data(a.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;g&quot;).classed(n.cn.cellTextHolder,!0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;),e}(l));!function(t){t.each((function(t){o.font(i.select(this),t.font)}))}(c),b(c,e,s,t),z(l)}function b(t,e,r,a){t.text((function(t){var e=t.column.specIndex,r=t.rowNumber,a=t.value,o=&quot;string&quot;==typeof a,s=o&amp;&amp;a.match(/&lt;br&gt;/i),l=!o||s;t.mayHaveMarkup=o&amp;&amp;a.match(/[&lt;&amp;&gt;]/);var c,u=&quot;string&quot;==typeof(c=a)&amp;&amp;c.match(n.latexCheck);t.latex=u;var f,h,p=u?&quot;&quot;:w(t.calcdata.cells.prefix,e,r)||&quot;&quot;,d=u?&quot;&quot;:w(t.calcdata.cells.suffix,e,r)||&quot;&quot;,g=u?null:w(t.calcdata.cells.format,e,r)||null,m=p+(g?i.format(g)(t.value):t.value)+d;if(t.wrappingNeeded=!t.wrapped&amp;&amp;!l&amp;&amp;!u&amp;&amp;(f=_(m)),t.cellHeightMayIncrease=s||u||t.mayHaveMarkup||(void 0===f?_(m):f),t.needsConvertToTspans=t.mayHaveMarkup||t.wrappingNeeded||t.latex,t.wrappingNeeded){var v=(&quot; &quot;===n.wrapSplitCharacter?m.replace(/&lt;a href=/gi,&quot;&lt;a_href=&quot;):m).split(n.wrapSplitCharacter),y=&quot; &quot;===n.wrapSplitCharacter?v.map((function(t){return t.replace(/&lt;a_href=/gi,&quot;&lt;a href=&quot;)})):v;t.fragments=y.map((function(t){return{text:t,width:null}})),t.fragments.push({fragment:n.wrapSpacer,width:null}),h=y.join(n.lineBreaker)+n.lineBreaker+n.wrapSpacer}else delete t.fragments,h=m;return h})).attr(&quot;dy&quot;,(function(t){return t.needsConvertToTspans?0:&quot;0.75em&quot;})).each((function(t){var o=i.select(this),l=t.wrappingNeeded?L:I;t.needsConvertToTspans?s.convertToTspans(o,a,l(r,this,e,a,t)):i.select(this.parentNode).attr(&quot;transform&quot;,(function(t){return c(P(t),n.cellPad)})).attr(&quot;text-anchor&quot;,(function(t){return{left:&quot;start&quot;,center:&quot;middle&quot;,right:&quot;end&quot;}[t.align]}))}))}function _(t){return-1!==t.indexOf(n.wrapSplitCharacter)}function w(t,e,r){if(Array.isArray(t)){var n=t[Math.min(e,t.length-1)];return Array.isArray(n)?n[Math.min(r,n.length-1)]:n}return t}function T(t,e,r){t.transition().ease(n.releaseTransitionEase).duration(n.releaseTransitionDuration).attr(&quot;transform&quot;,c(e.x,r))}function k(t){return&quot;cells&quot;===t.type}function M(t){return&quot;header&quot;===t.type}function A(t){return(t.rowBlocks.length?t.rowBlocks[0].auxiliaryBlocks:[]).reduce((function(t,e){return t+D(e,1/0)}),0)}function S(t,e,r){var n=v(e)[0];if(void 0!==n){var i=n.rowBlocks,a=n.calcdata,o=O(i,i.length),s=n.calcdata.groupHeight-A(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),u=function(t,e,r){for(var n=[],i=0,a=0;a&lt;t.length;a++){for(var o=t[a],s=o.rows,l=0,c=0;c&lt;s.length;c++)l+=s[c].rowHeight;o.allRowsHeight=l;e&lt;i+l&amp;&amp;e+r&gt;i&amp;&amp;n.push(a),i+=l}return n}(i,l,s);1===u.length&amp;&amp;(u[0]===i.length-1?u.unshift(u[0]-1):u.push(u[0]+1)),u[0]%2&amp;&amp;u.reverse(),e.each((function(t,e){t.page=u[e],t.scrollY=l})),e.attr(&quot;transform&quot;,(function(t){var e=O(t.rowBlocks,t.page)-t.scrollY;return c(0,e)})),t&amp;&amp;(C(t,r,e,u,n.prevPages,n,0),C(t,r,e,u,n.prevPages,n,1),y(r,t))}}function E(t,e,r,a){return function(o){var s=o.calcdata?o.calcdata:o,l=e.filter((function(t){return s.key===t.key})),c=r||s.scrollbarState.dragMultiplier,u=s.scrollY;s.scrollY=void 0===a?s.scrollY+c*i.event.dy:a;var f=l.selectAll(&quot;.&quot;+n.cn.yColumn).selectAll(&quot;.&quot;+n.cn.columnBlock).filter(k);return S(t,f,l),s.scrollY===u}}function C(t,e,r,n,i,a,o){n[o]!==i[o]&amp;&amp;(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout((function(){var a=r.filter((function(t,e){return e===o&amp;&amp;n[e]!==i[e]}));x(t,e,a,r),i[o]=n[o]})))}function L(t,e,r,a){return function(){var o=i.select(e.parentNode);o.each((function(t){var e=t.fragments;o.selectAll(&quot;tspan.line&quot;).each((function(t,r){e[r].width=this.getComputedTextLength()}));var r,i,a=e[e.length-1].width,s=e.slice(0,-1),l=[],c=0,u=t.column.columnWidth-2*n.cellPad;for(t.value=&quot;&quot;;s.length;)c+(i=(r=s.shift()).width+a)&gt;u&amp;&amp;(t.value+=l.join(n.wrapSpacer)+n.lineBreaker,l=[],c=0),l.push(r.text),c+=i;c&amp;&amp;(t.value+=l.join(n.wrapSpacer)),t.wrapped=!0})),o.selectAll(&quot;tspan.line&quot;).remove(),b(o.select(&quot;.&quot;+n.cn.cellText),r,t,a),i.select(e.parentNode.parentNode).call(z)}}function I(t,e,r,a,o){return function(){if(!o.settledY){var s=i.select(e.parentNode),l=F(o),u=o.key-l.firstRowIndex,f=l.rows[u].rowHeight,h=o.cellHeightMayIncrease?e.parentNode.getBoundingClientRect().height+2*n.cellPad:f,p=Math.max(h,f);p-l.rows[u].rowHeight&amp;&amp;(l.rows[u].rowHeight=p,t.selectAll(&quot;.&quot;+n.cn.columnCell).call(z),S(null,t.filter(k),0),y(r,a,!0)),s.attr(&quot;transform&quot;,(function(){var t=this.parentNode.getBoundingClientRect(),e=i.select(this.parentNode).select(&quot;.&quot;+n.cn.cellRect).node().getBoundingClientRect(),r=this.transform.baseVal.consolidate(),a=e.top-t.top+(r?r.matrix.f:n.cellPad);return c(P(o,i.select(this.parentNode).select(&quot;.&quot;+n.cn.cellTextHolder).node().getBoundingClientRect().width),a)})),o.settledY=!0}}}function P(t,e){switch(t.align){case&quot;left&quot;:return n.cellPad;case&quot;right&quot;:return t.column.columnWidth-(e||0)-n.cellPad;case&quot;center&quot;:return(t.column.columnWidth-(e||0))/2;default:return n.cellPad}}function z(t){t.attr(&quot;transform&quot;,(function(t){var e=t.rowBlocks[0].auxiliaryBlocks.reduce((function(t,e){return t+D(e,1/0)}),0),r=D(F(t),t.key);return c(0,r+e)})).selectAll(&quot;.&quot;+n.cn.cellRect).attr(&quot;height&quot;,(function(t){return(e=F(t),r=t.key,e.rows[r-e.firstRowIndex]).rowHeight;var e,r}))}function O(t,e){for(var r=0,n=e-1;n&gt;=0;n--)r+=R(t[n]);return r}function D(t,e){for(var r=0,n=0;n&lt;t.rows.length&amp;&amp;t.rows[n].rowIndex&lt;e;n++)r+=t.rows[n].rowHeight;return r}function R(t){var e=t.allRowsHeight;if(void 0!==e)return e;for(var r=0,n=0;n&lt;t.rows.length;n++)r+=t.rows[n].rowHeight;return t.allRowsHeight=r,r}function F(t){return t.rowBlocks[t.page]}e.exports=function(t,e){var r=!t._context.staticPlot,s=t._fullLayout._paper.selectAll(&quot;.&quot;+n.cn.table).data(e.map((function(e){var r=a.unwrap(e).trace;return f(t,r)})),a.keyFun);s.exit().remove(),s.enter().append(&quot;g&quot;).classed(n.cn.table,!0).attr(&quot;overflow&quot;,&quot;visible&quot;).style(&quot;box-sizing&quot;,&quot;content-box&quot;).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;left&quot;,0).style(&quot;overflow&quot;,&quot;visible&quot;).style(&quot;shape-rendering&quot;,&quot;crispEdges&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;),s.attr(&quot;width&quot;,(function(t){return t.width+t.size.l+t.size.r})).attr(&quot;height&quot;,(function(t){return t.height+t.size.t+t.size.b})).attr(&quot;transform&quot;,(function(t){return c(t.translateX,t.translateY)}));var p=s.selectAll(&quot;.&quot;+n.cn.tableControlView).data(a.repeat,a.keyFun),b=p.enter().append(&quot;g&quot;).classed(n.cn.tableControlView,!0).style(&quot;box-sizing&quot;,&quot;content-box&quot;);if(r){var _=&quot;onwheel&quot;in document?&quot;wheel&quot;:&quot;mousewheel&quot;;b.on(&quot;mousemove&quot;,(function(e){p.filter((function(t){return e===t})).call(y,t)})).on(_,(function(e){if(!e.scrollbarState.wheeling){e.scrollbarState.wheeling=!0;var r=e.scrollY+i.event.deltaY;E(t,p,null,r)(e)||(i.event.stopPropagation(),i.event.preventDefault()),e.scrollbarState.wheeling=!1}})).call(y,t,!0)}p.attr(&quot;transform&quot;,(function(t){return c(t.size.l,t.size.t)}));var w=p.selectAll(&quot;.&quot;+n.cn.scrollBackground).data(a.repeat,a.keyFun);w.enter().append(&quot;rect&quot;).classed(n.cn.scrollBackground,!0).attr(&quot;fill&quot;,&quot;none&quot;),w.attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})),p.each((function(e){o.setClipUrl(i.select(this),g(t,e),t)}));var A=p.selectAll(&quot;.&quot;+n.cn.yColumn).data((function(t){return t.columns}),a.keyFun);A.enter().append(&quot;g&quot;).classed(n.cn.yColumn,!0),A.exit().remove(),A.attr(&quot;transform&quot;,(function(t){return c(t.x,0)})),r&amp;&amp;A.call(i.behavior.drag().origin((function(e){return T(i.select(this),e,-n.uplift),l(this),e.calcdata.columnDragInProgress=!0,y(p.filter((function(t){return e.calcdata.key===t.key})),t),e})).on(&quot;drag&quot;,(function(t){var e=i.select(this),r=function(e){return(t===e?i.event.x:e.x)+e.columnWidth/2};t.x=Math.max(-n.overdrag,Math.min(t.calcdata.width+n.overdrag-t.columnWidth,i.event.x)),v(A).filter((function(e){return e.calcdata.key===t.calcdata.key})).sort((function(t,e){return r(t)-r(e)})).forEach((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e)})),A.filter((function(e){return t!==e})).transition().ease(n.transitionEase).duration(n.transitionDuration).attr(&quot;transform&quot;,(function(t){return c(t.x,0)})),e.call(u).attr(&quot;transform&quot;,c(t.x,-n.uplift))})).on(&quot;dragend&quot;,(function(e){var r=i.select(this),n=e.calcdata;e.x=e.xScale(e),e.calcdata.columnDragInProgress=!1,T(r,e,0),function(t,e,r){var n=e.gdColumnsOriginalOrder;e.gdColumns.sort((function(t,e){return r[n.indexOf(t)]-r[n.indexOf(e)]})),e.columnorder=r,t.emit(&quot;plotly_restyle&quot;)}(t,n,n.columns.map((function(t){return t.xIndex})))}))),A.each((function(e){o.setClipUrl(i.select(this),m(t,e),t)}));var C=A.selectAll(&quot;.&quot;+n.cn.columnBlock).data(h.splitToPanels,a.keyFun);C.enter().append(&quot;g&quot;).classed(n.cn.columnBlock,!0).attr(&quot;id&quot;,(function(t){return t.key})),C.style(&quot;cursor&quot;,(function(t){return t.dragHandle?&quot;ew-resize&quot;:t.calcdata.scrollbarState.barWiggleRoom?&quot;ns-resize&quot;:&quot;default&quot;}));var L=C.filter(M),I=C.filter(k);r&amp;&amp;I.call(i.behavior.drag().origin((function(t){return i.event.stopPropagation(),t})).on(&quot;drag&quot;,E(t,p,-1)).on(&quot;dragend&quot;,(function(){}))),x(t,p,L,C),x(t,p,I,C);var P=p.selectAll(&quot;.&quot;+n.cn.scrollAreaClip).data(a.repeat,a.keyFun);P.enter().append(&quot;clipPath&quot;).classed(n.cn.scrollAreaClip,!0).attr(&quot;id&quot;,(function(e){return g(t,e)}));var z=P.selectAll(&quot;.&quot;+n.cn.scrollAreaClipRect).data(a.repeat,a.keyFun);z.enter().append(&quot;rect&quot;).classed(n.cn.scrollAreaClipRect,!0).attr(&quot;x&quot;,-n.overdrag).attr(&quot;y&quot;,-n.uplift).attr(&quot;fill&quot;,&quot;none&quot;),z.attr(&quot;width&quot;,(function(t){return t.width+2*n.overdrag})).attr(&quot;height&quot;,(function(t){return t.height+n.uplift})),A.selectAll(&quot;.&quot;+n.cn.columnBoundary).data(a.repeat,a.keyFun).enter().append(&quot;g&quot;).classed(n.cn.columnBoundary,!0);var O=A.selectAll(&quot;.&quot;+n.cn.columnBoundaryClippath).data(a.repeat,a.keyFun);O.enter().append(&quot;clipPath&quot;).classed(n.cn.columnBoundaryClippath,!0),O.attr(&quot;id&quot;,(function(e){return m(t,e)}));var D=O.selectAll(&quot;.&quot;+n.cn.columnBoundaryRect).data(a.repeat,a.keyFun);D.enter().append(&quot;rect&quot;).classed(n.cn.columnBoundaryRect,!0).attr(&quot;fill&quot;,&quot;none&quot;),D.attr(&quot;width&quot;,(function(t){return t.columnWidth+2*d(t)})).attr(&quot;height&quot;,(function(t){return t.calcdata.height+2*d(t)+n.uplift})).attr(&quot;x&quot;,(function(t){return-d(t)})).attr(&quot;y&quot;,(function(t){return-d(t)})),S(null,I,p)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;../../lib/svg_text_utils&quot;:803,&quot;./constants&quot;:1319,&quot;./data_preparation_helper&quot;:1320,&quot;./data_split_helpers&quot;:1321,d3:169}],1325:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../pie/attributes&quot;),l=t(&quot;../sunburst/attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:l.labels,parents:l.parents,values:l.values,branchvalues:l.branchvalues,count:l.count,level:l.level,maxdepth:l.maxdepth,tiling:{packing:{valType:&quot;enumerated&quot;,values:[&quot;squarify&quot;,&quot;binary&quot;,&quot;dice&quot;,&quot;slice&quot;,&quot;slice-dice&quot;,&quot;dice-slice&quot;],dflt:&quot;squarify&quot;,editType:&quot;plot&quot;},squarifyratio:{valType:&quot;number&quot;,min:1,dflt:1,editType:&quot;plot&quot;},flip:{valType:&quot;flaglist&quot;,flags:[&quot;x&quot;,&quot;y&quot;],dflt:&quot;&quot;,editType:&quot;plot&quot;},pad:{valType:&quot;number&quot;,min:0,dflt:3,editType:&quot;plot&quot;},editType:&quot;calc&quot;},marker:u({pad:{t:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},l:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},r:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},b:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},colors:l.marker.colors,depthfade:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],editType:&quot;style&quot;},line:l.marker.line,editType:&quot;calc&quot;},a(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),pathbar:{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;plot&quot;},edgeshape:{valType:&quot;enumerated&quot;,values:[&quot;&gt;&quot;,&quot;&lt;&quot;,&quot;|&quot;,&quot;/&quot;,&quot;\\&quot;],dflt:&quot;&gt;&quot;,editType:&quot;plot&quot;},thickness:{valType:&quot;number&quot;,min:12,editType:&quot;plot&quot;},textfont:u({},s.textfont,{}),editType:&quot;calc&quot;},text:s.text,textinfo:l.textinfo,texttemplate:i({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:s.hovertext,hoverinfo:l.hoverinfo,hovertemplate:n({},{keys:c.eventDataKeys}),textfont:s.textfont,insidetextfont:s.insidetextfont,outsidetextfont:u({},s.outsidetextfont,{}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle left&quot;,&quot;middle center&quot;,&quot;middle right&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],dflt:&quot;top left&quot;,editType:&quot;plot&quot;},sort:s.sort,root:l.root,domain:o({name:&quot;treemap&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/domain&quot;:855,&quot;../../plots/template_attributes&quot;:906,&quot;../pie/attributes&quot;:1161,&quot;../sunburst/attributes&quot;:1299,&quot;./constants&quot;:1328}],1326:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;treemap&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1327:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../sunburst/calc&quot;);r.calc=function(t,e){return n.calc(t,e)},r.crossTraceCalc=function(t){return n._runCrossTraceCalc(&quot;treemap&quot;,t)}},{&quot;../sunburst/calc&quot;:1301}],1328:[function(t,e,r){&quot;use strict&quot;;e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:&quot;poly&quot;,eventDataKeys:[&quot;currentPath&quot;,&quot;root&quot;,&quot;entry&quot;,&quot;percentRoot&quot;,&quot;percentEntry&quot;,&quot;percentParent&quot;],gapWithPathbar:1}},{}],1329:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText,l=t(&quot;../bar/constants&quot;).TEXTPAD,c=t(&quot;../../components/colorscale&quot;),u=c.hasColorscale,f=c.handleDefaults;e.exports=function(t,e,r,c){function h(r,a){return n.coerce(t,e,i,r,a)}var p=h(&quot;labels&quot;),d=h(&quot;parents&quot;);if(p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length){var g=h(&quot;values&quot;);g&amp;&amp;g.length?h(&quot;branchvalues&quot;):h(&quot;count&quot;),h(&quot;level&quot;),h(&quot;maxdepth&quot;),&quot;squarify&quot;===h(&quot;tiling.packing&quot;)&amp;&amp;h(&quot;tiling.squarifyratio&quot;),h(&quot;tiling.flip&quot;),h(&quot;tiling.pad&quot;);var m=h(&quot;text&quot;);h(&quot;texttemplate&quot;),e.texttemplate||h(&quot;textinfo&quot;,Array.isArray(m)?&quot;text+label&quot;:&quot;label&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;);var v=h(&quot;pathbar.visible&quot;);s(t,e,c,h,&quot;auto&quot;,{hasPathbar:v,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),h(&quot;textposition&quot;);var y=-1!==e.textposition.indexOf(&quot;bottom&quot;);h(&quot;marker.line.width&quot;)&amp;&amp;h(&quot;marker.line.color&quot;,c.paper_bgcolor);var x=h(&quot;marker.colors&quot;),b=e._hasColorscale=u(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis;b?f(t,e,c,h,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}):h(&quot;marker.depthfade&quot;,!(x||[]).length);var _=2*e.textfont.size;h(&quot;marker.pad.t&quot;,y?_/4:_),h(&quot;marker.pad.l&quot;,_/4),h(&quot;marker.pad.r&quot;,_/4),h(&quot;marker.pad.b&quot;,y?_:_/4),b&amp;&amp;f(t,e,c,h,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),e._hovered={marker:{line:{width:2,color:a.contrast(c.paper_bgcolor)}}},v&amp;&amp;(h(&quot;pathbar.thickness&quot;,e.pathbar.textfont.size+2*l),h(&quot;pathbar.side&quot;),h(&quot;pathbar.edgeshape&quot;)),h(&quot;sort&quot;),h(&quot;root.color&quot;),o(e,c,h),e._length=null}else e.visible=!1}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/constants&quot;:923,&quot;../bar/defaults&quot;:925,&quot;./attributes&quot;:1325}],1330:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;./constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;);e.exports=function(t,e,r,h,p){var d=p.barDifY,g=p.width,m=p.height,v=p.viewX,y=p.viewY,x=p.pathSlice,b=p.toMoveInsideSlice,_=p.strTransform,w=p.hasTransition,T=p.handleSlicesExit,k=p.makeUpdateSliceInterpolator,M=p.makeUpdateTextInterpolator,A={},S=t._fullLayout,E=e[0],C=E.trace,L=E.hierarchy,I=g/C._entryDepth,P=u.listPath(r.data,&quot;id&quot;),z=s(L.copy(),[g,m],{packing:&quot;dice&quot;,pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();(z=z.filter((function(t){var e=P.indexOf(t.data.id);return-1!==e&amp;&amp;(t.x0=I*e,t.x1=I*(e+1),t.y0=d,t.y1=d+m,t.onPathbar=!0,!0)}))).reverse(),(h=h.data(z,u.getPtId)).enter().append(&quot;g&quot;).classed(&quot;pathbar&quot;,!0),T(h,!0,A,[g,m],x),h.order();var O=h;w&amp;&amp;(O=O.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})}))),O.each((function(s){s._hoverX=v(s.x1-Math.min(g,m)/2),s._hoverY=y(s.y1-m/2);var h=n.select(this),p=i.ensureSingle(h,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?p.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!0,A,[g,m]);return function(t){return x(e(t))}})):p.attr(&quot;d&quot;,x),h.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),p.call(l,s,C,{hovered:!1}),s._text=(u.getPtLabel(s)||&quot;&quot;).split(&quot;&lt;br&gt;&quot;).join(&quot; &quot;)||&quot;&quot;;var d=i.ensureSingle(h,&quot;g&quot;,&quot;slicetext&quot;),T=i.ensureSingle(d,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),E=i.ensureUniformFontSize(t,u.determineTextFont(C,s,S.font,{onPathbar:!0}));T.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,&quot;start&quot;).call(a.font,E).call(o.convertToTspans,t),s.textBB=a.bBox(T.node()),s.transform=b(s,{fontSize:E.size,onPathbar:!0}),s.transform.fontSize=E.size,w?T.transition().attrTween(&quot;transform&quot;,(function(t){var e=M(t,!0,A,[g,m]);return function(t){return _(e(t))}})):T.attr(&quot;transform&quot;,_(s))}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../sunburst/fx&quot;:1304,&quot;../sunburst/helpers&quot;:1305,&quot;./constants&quot;:1328,&quot;./partition&quot;:1335,&quot;./style&quot;:1337,d3:169}],1331:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;./constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;),h=t(&quot;../sunburst/plot&quot;).formatSliceLabel;e.exports=function(t,e,r,p,d){var g=d.width,m=d.height,v=d.viewX,y=d.viewY,x=d.pathSlice,b=d.toMoveInsideSlice,_=d.strTransform,w=d.hasTransition,T=d.handleSlicesExit,k=d.makeUpdateSliceInterpolator,M=d.makeUpdateTextInterpolator,A=d.prevEntry,S=t._fullLayout,E=e[0].trace,C=-1!==E.textposition.indexOf(&quot;left&quot;),L=-1!==E.textposition.indexOf(&quot;right&quot;),I=-1!==E.textposition.indexOf(&quot;bottom&quot;),P=!I&amp;&amp;!E.marker.pad.t||I&amp;&amp;!E.marker.pad.b,z=s(r,[g,m],{packing:E.tiling.packing,squarifyratio:E.tiling.squarifyratio,flipX:E.tiling.flip.indexOf(&quot;x&quot;)&gt;-1,flipY:E.tiling.flip.indexOf(&quot;y&quot;)&gt;-1,pad:{inner:E.tiling.pad,top:E.marker.pad.t,left:E.marker.pad.l,right:E.marker.pad.r,bottom:E.marker.pad.b}}).descendants(),O=1/0,D=-1/0;z.forEach((function(t){var e=t.depth;e&gt;=E._maxDepth?(t.x0=t.x1=(t.x0+t.x1)/2,t.y0=t.y1=(t.y0+t.y1)/2):(O=Math.min(O,e),D=Math.max(D,e))})),p=p.data(z,u.getPtId),E._maxVisibleLayers=isFinite(D)?D-O+1:0,p.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),T(p,!1,{},[g,m],x),p.order();var R=null;if(w&amp;&amp;A){var F=u.getPtId(A);p.each((function(t){null===R&amp;&amp;u.getPtId(t)===F&amp;&amp;(R={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})}))}var B=function(){return R||{x0:0,x1:g,y0:0,y1:m}},N=p;return w&amp;&amp;(N=N.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),N.each((function(s){var p=u.isHeader(s,E);s._hoverX=v(s.x1-E.marker.pad.r),s._hoverY=y(I?s.y1-E.marker.pad.b/2:s.y0+E.marker.pad.t/2);var d=n.select(this),T=i.ensureSingle(d,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?T.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!1,B(),[g,m]);return function(t){return x(e(t))}})):T.attr(&quot;d&quot;,x),d.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{isTransitioning:t._transitioning}),T.call(l,s,E,{hovered:!1}),s.x0===s.x1||s.y0===s.y1?s._text=&quot;&quot;:s._text=p?P?&quot;&quot;:u.getPtLabel(s)||&quot;&quot;:h(s,r,E,e,S)||&quot;&quot;;var A=i.ensureSingle(d,&quot;g&quot;,&quot;slicetext&quot;),z=i.ensureSingle(A,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),O=i.ensureUniformFontSize(t,u.determineTextFont(E,s,S.font));z.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,L?&quot;end&quot;:C||p?&quot;start&quot;:&quot;middle&quot;).call(a.font,O).call(o.convertToTspans,t),s.textBB=a.bBox(z.node()),s.transform=b(s,{fontSize:O.size,isHeader:p}),s.transform.fontSize=O.size,w?z.transition().attrTween(&quot;transform&quot;,(function(t){var e=M(t,!1,B(),[g,m]);return function(t){return _(e(t))}})):z.attr(&quot;transform&quot;,_(s))})),R}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../sunburst/fx&quot;:1304,&quot;../sunburst/helpers&quot;:1305,&quot;../sunburst/plot&quot;:1309,&quot;./constants&quot;:1328,&quot;./partition&quot;:1335,&quot;./style&quot;:1337,d3:169}],1332:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;treemap&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1325,&quot;./base_plot&quot;:1326,&quot;./calc&quot;:1327,&quot;./defaults&quot;:1329,&quot;./layout_attributes&quot;:1333,&quot;./layout_defaults&quot;:1334,&quot;./plot&quot;:1336,&quot;./style&quot;:1337}],1333:[function(t,e,r){&quot;use strict&quot;;e.exports={treemapcolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendtreemapcolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1334:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;treemapcolorway&quot;,e.colorway),r(&quot;extendtreemapcolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1333}],1335:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;);e.exports=function(t,e,r){var i,a=r.flipX,o=r.flipY,s=&quot;dice-slice&quot;===r.packing,l=r.pad[o?&quot;bottom&quot;:&quot;top&quot;],c=r.pad[a?&quot;right&quot;:&quot;left&quot;],u=r.pad[a?&quot;left&quot;:&quot;right&quot;],f=r.pad[o?&quot;top&quot;:&quot;bottom&quot;];s&amp;&amp;(i=c,c=l,l=i,i=u,u=f,f=i);var h=n.treemap().tile(function(t,e){switch(t){case&quot;squarify&quot;:return n.treemapSquarify.ratio(e);case&quot;binary&quot;:return n.treemapBinary;case&quot;dice&quot;:return n.treemapDice;case&quot;slice&quot;:return n.treemapSlice;default:return n.treemapSliceDice}}(r.packing,r.squarifyratio)).paddingInner(r.pad.inner).paddingLeft(c).paddingRight(u).paddingTop(l).paddingBottom(f).size(s?[e[1],e[0]]:e)(t);return(s||a||o)&amp;&amp;function t(e,r,n){var i;n.swapXY&amp;&amp;(i=e.x0,e.x0=e.y0,e.y0=i,i=e.x1,e.x1=e.y1,e.y1=i);n.flipX&amp;&amp;(i=e.x0,e.x0=r[0]-e.x1,e.x1=r[0]-i);n.flipY&amp;&amp;(i=e.y0,e.y0=r[1]-e.y1,e.y1=r[1]-i);var a=e.children;if(a)for(var o=0;o&lt;a.length;o++)t(a[o],r,n)}(h,e,{swapXY:s,flipX:a,flipY:o}),h}},{&quot;d3-hierarchy&quot;:161}],1336:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../sunburst/helpers&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../bar/constants&quot;).TEXTPAD,s=t(&quot;../bar/plot&quot;).toMoveInsideBar,l=t(&quot;../bar/uniform_text&quot;),c=l.recordMinTextSize,u=l.clearMinTextSize,f=t(&quot;../bar/style&quot;).resizeText,h=t(&quot;./constants&quot;),p=t(&quot;./draw_descendants&quot;),d=t(&quot;./draw_ancestors&quot;);function g(t){return i.isHierarchyRoot(t)?&quot;&quot;:i.getPtId(t)}function m(t,e,r,l){var u=t._fullLayout,f=e[0],m=f.trace,v=f.hierarchy,y=i.findEntryWithLevel(v,m.level),x=n.select(r),b=x.selectAll(&quot;g.pathbar&quot;),_=x.selectAll(&quot;g.slice&quot;);if(!y)return b.remove(),void _.remove();var w=i.isHierarchyRoot(y),T=!u.uniformtext.mode&amp;&amp;i.hasTransition(l),k=i.getMaxDepth(m),M=u._size,A=m.domain,S=M.w*(A.x[1]-A.x[0]),E=M.h*(A.y[1]-A.y[0]),C=S,L=m.pathbar.thickness,I=m.marker.line.width+h.gapWithPathbar,P=m.pathbar.visible?m.pathbar.side.indexOf(&quot;bottom&quot;)&gt;-1?E+I:-(L+I):0,z={x0:C,x1:C,y0:P,y1:P+L},O=function(t,e,r){var n=m.tiling.pad,i=function(t){return t-n&lt;=e.x0},a=function(t){return t+n&gt;=e.x1},o=function(t){return t-n&lt;=e.y0},s=function(t){return t+n&gt;=e.y1};return{x0:i(t.x0-n)?0:a(t.x0-n)?r[0]:t.x0,x1:i(t.x1+n)?0:a(t.x1+n)?r[0]:t.x1,y0:o(t.y0-n)?0:s(t.y0-n)?r[1]:t.y0,y1:o(t.y1+n)?0:s(t.y1+n)?r[1]:t.y1}},D=null,R={},F={},B=null,N=function(t,e){return e?R[g(t)]:F[g(t)]},j=function(t,e,r,n){if(e)return R[g(v)]||z;var i=F[m.level]||r;return function(t){return t.data.depth-y.data.depth&lt;k}(t)?O(t,i,n):{}};f.hasMultipleRoots&amp;&amp;w&amp;&amp;k++,m._maxDepth=k,m._backgroundColor=u.paper_bgcolor,m._entryDepth=y.data.depth,m._atRootLevel=w;var U=-S/2+M.l+M.w*(A.x[1]+A.x[0])/2,V=-E/2+M.t+M.h*(1-(A.y[1]+A.y[0])/2),q=function(t){return U+t},H=function(t){return V+t},G=H(0),Y=q(0),W=function(t){return Y+t},X=function(t){return G+t};function Z(t,e){return t+&quot;,&quot;+e}var J=W(0),K=function(t){t.x=Math.max(J,t.x)},Q=m.pathbar.edgeshape,$=function(t,e){var r=t.x0,n=t.x1,i=t.y0,a=t.y1,l=t.textBB,f=function(t){return-1!==m.textposition.indexOf(t)},h=f(&quot;bottom&quot;),p=f(&quot;top&quot;)||e.isHeader&amp;&amp;!h?&quot;start&quot;:h?&quot;end&quot;:&quot;middle&quot;,d=f(&quot;right&quot;),g=f(&quot;left&quot;)||e.onPathbar?-1:d?1:0,v=m.marker.pad;if(e.isHeader){if((r+=v.l-o)&gt;=(n-=v.r-o)){var y=(r+n)/2;r=y,n=y}var x;h?i&lt;(x=a-v.b)&amp;&amp;x&lt;a&amp;&amp;(i=x):i&lt;(x=i+v.t)&amp;&amp;x&lt;a&amp;&amp;(a=x)}var b=s(r,n,i,a,l,{isHorizontal:!1,constrained:!0,angle:0,anchor:p,leftToRight:g});return b.fontSize=e.fontSize,b.targetX=q(b.targetX),b.targetY=H(b.targetY),isNaN(b.targetX)||isNaN(b.targetY)?{}:(r!==n&amp;&amp;i!==a&amp;&amp;c(m.type,b,u),{scale:b.scale,rotate:b.rotate,textX:b.textX,textY:b.textY,anchorX:b.anchorX,anchorY:b.anchorY,targetX:b.targetX,targetY:b.targetY})},tt=function(t,e){for(var r,n=0,i=t;!r&amp;&amp;n&lt;k;)n++,(i=i.parent)?r=N(i,e):n=k;return r||{}},et=function(t,e,r,i){var o,s=N(t,e);if(s)o=s;else if(e)o=z;else if(D)if(t.parent){var l=B||r;l&amp;&amp;!e?o=O(t,l,i):(o={},a.extendFlat(o,tt(t,e)))}else o=t;else o={};return n.interpolate(o,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})},rt=function(t,e,r,o){var s=N(t,e),l={},f=j(t,e,r,o);a.extendFlat(l,{transform:$({x0:f.x0,x1:f.x1,y0:f.y0,y1:f.y1,textBB:t.textBB,_text:t._text},{isHeader:i.isHeader(t,m)})}),s?l=s:t.parent&amp;&amp;a.extendFlat(l,tt(t,e));var h=t.transform;return t.x0!==t.x1&amp;&amp;t.y0!==t.y1&amp;&amp;c(m.type,h,u),n.interpolate(l,{transform:{scale:h.scale,rotate:h.rotate,textX:h.textX,textY:h.textY,anchorX:h.anchorX,anchorY:h.anchorY,targetX:h.targetX,targetY:h.targetY}})},nt=function(t,e,r,i,a){var o=i[0],s=i[1];T?t.exit().transition().each((function(){var t=n.select(this);t.select(&quot;path.surface&quot;).transition().attrTween(&quot;d&quot;,(function(t){var r=function(t,e,r,i){var a,o=N(t,e);if(e)a=z;else{var s=N(y,e);a=s?O(t,s,i):{}}return n.interpolate(o,a)}(t,e,0,[o,s]);return function(t){return a(r(t))}})),t.select(&quot;g.slicetext&quot;).attr(&quot;opacity&quot;,0)})).remove():t.exit().remove()},it=function(t){var e=t.transform;return t.x0!==t.x1&amp;&amp;t.y0!==t.y1&amp;&amp;c(m.type,e,u),a.getTextTransform({textX:e.textX,textY:e.textY,anchorX:e.anchorX,anchorY:e.anchorY,targetX:e.targetX,targetY:e.targetY,scale:e.scale,rotate:e.rotate})};T&amp;&amp;(b.each((function(t){R[g(t)]={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1},t.transform&amp;&amp;(R[g(t)].transform={textX:t.transform.textX,textY:t.transform.textY,anchorX:t.transform.anchorX,anchorY:t.transform.anchorY,targetX:t.transform.targetX,targetY:t.transform.targetY,scale:t.transform.scale,rotate:t.transform.rotate})})),_.each((function(t){F[g(t)]={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1},t.transform&amp;&amp;(F[g(t)].transform={textX:t.transform.textX,textY:t.transform.textY,anchorX:t.transform.anchorX,anchorY:t.transform.anchorY,targetX:t.transform.targetX,targetY:t.transform.targetY,scale:t.transform.scale,rotate:t.transform.rotate}),!D&amp;&amp;i.isEntry(t)&amp;&amp;(D=t)}))),B=p(t,e,y,_,{width:S,height:E,viewX:q,viewY:H,pathSlice:function(t){var e=q(t.x0),r=q(t.x1),n=H(t.y0),i=H(t.y1),a=r-e,o=i-n;if(!a||!o)return&quot;&quot;;return&quot;M&quot;+Z(e,n+0)+&quot;L&quot;+Z(r-0,n)+&quot;L&quot;+Z(r,i-0)+&quot;L&quot;+Z(e+0,i)+&quot;Z&quot;},toMoveInsideSlice:$,prevEntry:D,makeUpdateSliceInterpolator:et,makeUpdateTextInterpolator:rt,handleSlicesExit:nt,hasTransition:T,strTransform:it}),m.pathbar.visible?d(t,e,y,b,{barDifY:P,width:C,height:L,viewX:W,viewY:X,pathSlice:function(t){var e=W(Math.max(Math.min(t.x0,t.x0),0)),r=W(Math.min(Math.max(t.x1,t.x1),C)),n=X(t.y0),i=X(t.y1),a=L/2,o={},s={};o.x=e,s.x=r,o.y=s.y=(n+i)/2;var l={x:e,y:n},c={x:r,y:n},u={x:r,y:i},f={x:e,y:i};return&quot;&gt;&quot;===Q?(l.x-=a,c.x-=a,u.x-=a,f.x-=a):&quot;/&quot;===Q?(u.x-=a,f.x-=a,o.x-=a/2,s.x-=a/2):&quot;\\&quot;===Q?(l.x-=a,c.x-=a,o.x-=a/2,s.x-=a/2):&quot;&lt;&quot;===Q&amp;&amp;(o.x-=a,s.x-=a),K(l),K(f),K(o),K(c),K(u),K(s),&quot;M&quot;+Z(l.x,l.y)+&quot;L&quot;+Z(c.x,c.y)+&quot;L&quot;+Z(s.x,s.y)+&quot;L&quot;+Z(u.x,u.y)+&quot;L&quot;+Z(f.x,f.y)+&quot;L&quot;+Z(o.x,o.y)+&quot;Z&quot;},toMoveInsideSlice:$,makeUpdateSliceInterpolator:et,makeUpdateTextInterpolator:rt,handleSlicesExit:nt,hasTransition:T,strTransform:it}):b.remove()}e.exports=function(t,e,r,a){var o,s,l=t._fullLayout,c=l._treemaplayer,h=!r;(u(&quot;treemap&quot;,l),(o=c.selectAll(&quot;g.trace.treemap&quot;).data(e,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).classed(&quot;trace&quot;,!0).classed(&quot;treemap&quot;,!0),o.order(),!l.uniformtext.mode&amp;&amp;i.hasTransition(r))?(a&amp;&amp;(s=a()),n.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){s&amp;&amp;s()})).each(&quot;interrupt&quot;,(function(){s&amp;&amp;s()})).each((function(){c.selectAll(&quot;g.trace&quot;).each((function(e){m(t,e,this,r)}))}))):(o.each((function(e){m(t,e,this,r)})),l.uniformtext.mode&amp;&amp;f(t,l._treemaplayer.selectAll(&quot;.trace&quot;),&quot;treemap&quot;));h&amp;&amp;o.exit().remove()}},{&quot;../../lib&quot;:778,&quot;../bar/constants&quot;:923,&quot;../bar/plot&quot;:932,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,&quot;../sunburst/helpers&quot;:1305,&quot;./constants&quot;:1328,&quot;./draw_ancestors&quot;:1330,&quot;./draw_descendants&quot;:1331,d3:169}],1337:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../sunburst/helpers&quot;),s=t(&quot;../bar/uniform_text&quot;).resizeText;function l(t,e,r,n){var s,l,c=(n||{}).hovered,u=e.data.data,f=u.i,h=u.color,p=o.isHierarchyRoot(e),d=1;if(c)s=r._hovered.marker.line.color,l=r._hovered.marker.line.width;else if(p&amp;&amp;h===r.root.color)d=100,s=&quot;rgba(0,0,0,0)&quot;,l=0;else if(s=a.castOption(r,f,&quot;marker.line.color&quot;)||i.defaultLine,l=a.castOption(r,f,&quot;marker.line.width&quot;)||0,!r._hasColorscale&amp;&amp;!e.onPathbar){var g=r.marker.depthfade;if(g){var m,v=i.combine(i.addOpacity(r._backgroundColor,.75),h);if(!0===g){var y=o.getMaxDepth(r);m=isFinite(y)?o.isLeaf(e)?0:r._maxVisibleLayers-(e.data.depth-r._entryDepth):e.data.height+1}else m=e.data.depth-r._entryDepth,r._atRootLevel||m++;if(m&gt;0)for(var x=0;x&lt;m;x++){var b=.5*x/m;h=i.combine(i.addOpacity(v,b),h)}}}t.style(&quot;stroke-width&quot;,l).call(i.fill,h).call(i.stroke,s).style(&quot;opacity&quot;,d)}e.exports={style:function(t){var e=t._fullLayout._treemaplayer.selectAll(&quot;.trace&quot;);s(t,e,&quot;treemap&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(l,t,r,{hovered:!1})}))}))},styleOne:l}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/uniform_text&quot;:937,&quot;../sunburst/helpers&quot;:1305,d3:169}],1338:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/attributes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={y:n.y,x:n.x,x0:n.x0,y0:n.y0,name:i({},n.name,{}),orientation:i({},n.orientation,{}),bandwidth:{valType:&quot;number&quot;,min:0,editType:&quot;calc&quot;},scalegroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},scalemode:{valType:&quot;enumerated&quot;,values:[&quot;width&quot;,&quot;count&quot;],dflt:&quot;width&quot;,editType:&quot;calc&quot;},spanmode:{valType:&quot;enumerated&quot;,values:[&quot;soft&quot;,&quot;hard&quot;,&quot;manual&quot;],dflt:&quot;soft&quot;,editType:&quot;calc&quot;},span:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},editType:&quot;plot&quot;},fillcolor:n.fillcolor,points:i({},n.boxpoints,{}),jitter:i({},n.jitter,{}),pointpos:i({},n.pointpos,{}),width:i({},n.width,{}),marker:n.marker,text:n.text,hovertext:n.hovertext,hovertemplate:n.hovertemplate,box:{visible:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},width:{valType:&quot;number&quot;,min:0,max:1,dflt:.25,editType:&quot;plot&quot;},fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;plot&quot;},meanline:{visible:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;both&quot;,&quot;positive&quot;,&quot;negative&quot;],dflt:&quot;both&quot;,editType:&quot;calc&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;violins&quot;,&quot;points&quot;,&quot;kde&quot;],dflt:&quot;violins+points+kde&quot;,extras:[&quot;all&quot;],editType:&quot;style&quot;}}},{&quot;../../lib/extend&quot;:768,&quot;../box/attributes&quot;:946}],1339:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../box/calc&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r){var i=e.max-e.min;if(!i)return t.bandwidth?t.bandwidth:0;if(t.bandwidth)return Math.max(t.bandwidth,i/1e4);var a=r.length,o=n.stdev(r,a-1,e.mean);return Math.max(function(t,e,r){return 1.059*Math.min(e,r/1.349)*Math.pow(t,-.2)}(a,o,e.q3-e.q1),i/100)}function c(t,e,r,n){var a,o=t.spanmode,l=t.span||[],c=[e.min,e.max],u=[e.min-2*n,e.max+2*n];function f(n){var i=l[n],a=&quot;multicategory&quot;===r.type?r.r2c(i):r.d2c(i,0,t[e.valLetter+&quot;calendar&quot;]);return a===s?u[n]:a}var h={type:&quot;linear&quot;,range:a=&quot;soft&quot;===o?u:&quot;hard&quot;===o?c:[f(0),f(1)]};return i.setConvert(h),h.cleanRange(),a}e.exports=function(t,e){var r=a(t,e);if(r[0].t.empty)return r;for(var s=t._fullLayout,u=i.getFromId(t,e[&quot;h&quot;===e.orientation?&quot;xaxis&quot;:&quot;yaxis&quot;]),f=1/0,h=-1/0,p=0,d=0,g=0;g&lt;r.length;g++){var m=r[g],v=m.pts.map(o.extractVal),y=m.bandwidth=l(e,m,v),x=m.span=c(e,m,u,y);if(m.min===m.max&amp;&amp;0===y)x=m.span=[m.min,m.max],m.density=[{v:1,t:x[0]}],m.bandwidth=y,p=Math.max(p,1);else{var b=x[1]-x[0],_=Math.ceil(b/(y/3)),w=b/_;if(!isFinite(w)||!isFinite(_))return n.error(&quot;Something went wrong with computing the violin span&quot;),r[0].t.empty=!0,r;var T=o.makeKDE(m,e,v);m.density=new Array(_);for(var k=0,M=x[0];M&lt;x[1]+w/2;k++,M+=w){var A=T(M);m.density[k]={v:A,t:M},p=Math.max(p,A)}}d=Math.max(d,v.length),f=Math.min(f,x[0]),h=Math.max(h,x[1])}var S=i.findExtremes(u,[f,h],{padded:!0});if(e._extremes[u._id]=S,e.width)r[0].t.maxKDE=p;else{var E=s._violinScaleGroupStats,C=e.scalegroup,L=E[C];L?(L.maxKDE=Math.max(L.maxKDE,p),L.maxCount=Math.max(L.maxCount,d)):E[C]={maxKDE:p,maxCount:d}}return r[0].t.labels.kde=n._(t,&quot;kde:&quot;),r}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../box/calc&quot;:947,&quot;./helpers&quot;:1342}],1340:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/cross_trace_calc&quot;).setPositionOffset,i=[&quot;v&quot;,&quot;h&quot;];e.exports=function(t,e){for(var r=t.calcdata,a=e.xaxis,o=e.yaxis,s=0;s&lt;i.length;s++){for(var l=i[s],c=&quot;h&quot;===l?o:a,u=[],f=0;f&lt;r.length;f++){var h=r[f],p=h[0].t,d=h[0].trace;!0!==d.visible||&quot;violin&quot;!==d.type||p.empty||d.orientation!==l||d.xaxis!==a._id||d.yaxis!==o._id||u.push(f)}n(&quot;violin&quot;,t,u,c)}}},{&quot;../box/cross_trace_calc&quot;:948}],1341:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../box/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}function c(r,i){return n.coerce2(t,e,o,r,i)}if(a.handleSampleDefaults(t,e,l,s),!1!==e.visible){l(&quot;bandwidth&quot;),l(&quot;side&quot;),l(&quot;width&quot;)||(l(&quot;scalegroup&quot;,e.name),l(&quot;scalemode&quot;));var u,f=l(&quot;span&quot;);Array.isArray(f)&amp;&amp;(u=&quot;manual&quot;),l(&quot;spanmode&quot;,u);var h=l(&quot;line.color&quot;,(t.marker||{}).color||r),p=l(&quot;line.width&quot;),d=l(&quot;fillcolor&quot;,i.addOpacity(e.line.color,.5));a.handlePointsDefaults(t,e,l,{prefix:&quot;&quot;});var g=c(&quot;box.width&quot;),m=c(&quot;box.fillcolor&quot;,d),v=c(&quot;box.line.color&quot;,h),y=c(&quot;box.line.width&quot;,p);l(&quot;box.visible&quot;,Boolean(g||m||v||y))||(e.box={visible:!1});var x=c(&quot;meanline.color&quot;,h),b=c(&quot;meanline.width&quot;,p);l(&quot;meanline.visible&quot;,Boolean(x||b))||(e.meanline={visible:!1})}}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../box/defaults&quot;:949,&quot;./attributes&quot;:1338}],1342:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=function(t){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*t*t)};r.makeKDE=function(t,e,r){var n=r.length,a=i,o=t.bandwidth,s=1/(n*o);return function(t){for(var e=0,i=0;i&lt;n;i++)e+=a((t-r[i])/o);return s*e}},r.getPositionOnKdePath=function(t,e,r){var i,a;&quot;h&quot;===e.orientation?(i=&quot;y&quot;,a=&quot;x&quot;):(i=&quot;x&quot;,a=&quot;y&quot;);var o=n.findPointOnPath(t.path,r,a,{pathLength:t.pathLength}),s=t.posCenterPx,l=o[i];return[l,&quot;both&quot;===e.side?2*s-l:s]},r.getKdeValue=function(t,e,n){var i=t.pts.map(r.extractVal);return r.makeKDE(t,e,i)(n)/t.posDensityScale},r.extractVal=function(t){return t.v}},{&quot;../../lib&quot;:778}],1343:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../box/hover&quot;),o=t(&quot;./helpers&quot;);e.exports=function(t,e,r,s,l){var c,u,f=t.cd,h=f[0].trace,p=h.hoveron,d=-1!==p.indexOf(&quot;violins&quot;),g=-1!==p.indexOf(&quot;kde&quot;),m=[];if(d||g){var v=a.hoverOnBoxes(t,e,r,s);if(g&amp;&amp;v.length&gt;0){var y,x,b,_,w,T=t.xa,k=t.ya;&quot;h&quot;===h.orientation?(w=e,y=&quot;y&quot;,b=k,x=&quot;x&quot;,_=T):(w=r,y=&quot;x&quot;,b=T,x=&quot;y&quot;,_=k);var M=f[t.index];if(w&gt;=M.span[0]&amp;&amp;w&lt;=M.span[1]){var A=n.extendFlat({},t),S=_.c2p(w,!0),E=o.getKdeValue(M,h,w),C=o.getPositionOnKdePath(M,h,S),L=b._offset,I=b._length;A[y+&quot;0&quot;]=C[0],A[y+&quot;1&quot;]=C[1],A[x+&quot;0&quot;]=A[x+&quot;1&quot;]=S,A[x+&quot;Label&quot;]=x+&quot;: &quot;+i.hoverLabelText(_,w)+&quot;, &quot;+f[0].t.labels.kde+&quot; &quot;+E.toFixed(3),A.spikeDistance=v[0].spikeDistance;var P=y+&quot;Spike&quot;;A[P]=v[0][P],v[0].spikeDistance=void 0,v[0][P]=void 0,A.hovertemplate=!1,m.push(A),(u={stroke:t.color})[y+&quot;1&quot;]=n.constrain(L+C[0],L,L+I),u[y+&quot;2&quot;]=n.constrain(L+C[1],L,L+I),u[x+&quot;1&quot;]=u[x+&quot;2&quot;]=_._offset+S}}d&amp;&amp;(m=m.concat(v))}-1!==p.indexOf(&quot;points&quot;)&amp;&amp;(c=a.hoverOnPoints(t,e,r));var z=l.selectAll(&quot;.violinline-&quot;+h.uid).data(u?[0]:[]);return z.enter().append(&quot;line&quot;).classed(&quot;violinline-&quot;+h.uid,!0).attr(&quot;stroke-width&quot;,1.5),z.exit().remove(),z.attr(u),&quot;closest&quot;===s?c?[c]:m:c?(m.push(c),m):m}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../box/hover&quot;:951,&quot;./helpers&quot;:1342}],1344:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../box/defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../box/select&quot;),moduleType:&quot;trace&quot;,name:&quot;violin&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;oriented&quot;,&quot;box-violin&quot;,&quot;showLegend&quot;,&quot;violinLayout&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../box/defaults&quot;:949,&quot;../box/select&quot;:956,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1338,&quot;./calc&quot;:1339,&quot;./cross_trace_calc&quot;:1340,&quot;./defaults&quot;:1341,&quot;./hover&quot;:1343,&quot;./layout_attributes&quot;:1345,&quot;./layout_defaults&quot;:1346,&quot;./plot&quot;:1347,&quot;./style&quot;:1348}],1345:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/layout_attributes&quot;),i=t(&quot;../../lib&quot;).extendFlat;e.exports={violinmode:i({},n.boxmode,{}),violingap:i({},n.boxgap,{}),violingroupgap:i({},n.boxgroupgap,{})}},{&quot;../../lib&quot;:778,&quot;../box/layout_attributes&quot;:953}],1346:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;),a=t(&quot;../box/layout_defaults&quot;);e.exports=function(t,e,r){a._supply(t,e,r,(function(r,a){return n.coerce(t,e,i,r,a)}),&quot;violin&quot;)}},{&quot;../../lib&quot;:778,&quot;../box/layout_defaults&quot;:954,&quot;./layout_attributes&quot;:1345}],1347:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../box/plot&quot;),s=t(&quot;../scatter/line_points&quot;),l=t(&quot;./helpers&quot;);e.exports=function(t,e,r,c){var u=t._fullLayout,f=e.xaxis,h=e.yaxis;function p(t){var e=s(t,{xaxis:f,yaxis:h,connectGaps:!0,baseTolerance:.75,shape:&quot;spline&quot;,simplify:!0,linearized:!0});return a.smoothopen(e[0],1)}i.makeTraceGroups(c,r,&quot;trace violins&quot;).each((function(t){var r=n.select(this),a=t[0],s=a.t,c=a.trace;if(!0!==c.visible||s.empty)r.remove();else{var d=s.bPos,g=s.bdPos,m=e[s.valLetter+&quot;axis&quot;],v=e[s.posLetter+&quot;axis&quot;],y=&quot;both&quot;===c.side,x=y||&quot;positive&quot;===c.side,b=y||&quot;negative&quot;===c.side,_=r.selectAll(&quot;path.violin&quot;).data(i.identity);_.enter().append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;class&quot;,&quot;violin&quot;),_.exit().remove(),_.each((function(t){var e,r,i,a,o,l,f,h,_=n.select(this),w=t.density,T=w.length,k=v.c2l(t.pos+d,!0),M=v.l2p(k);if(c.width)e=s.maxKDE/g;else{var A=u._violinScaleGroupStats[c.scalegroup];e=&quot;count&quot;===c.scalemode?A.maxKDE/g*(A.maxCount/t.pts.length):A.maxKDE/g}if(x){for(f=new Array(T),o=0;o&lt;T;o++)(h=f[o]={})[s.posLetter]=k+w[o].v/e,h[s.valLetter]=m.c2l(w[o].t,!0);r=p(f)}if(b){for(f=new Array(T),l=0,o=T-1;l&lt;T;l++,o--)(h=f[l]={})[s.posLetter]=k-w[o].v/e,h[s.valLetter]=m.c2l(w[o].t,!0);i=p(f)}if(y)a=r+&quot;L&quot;+i.substr(1)+&quot;Z&quot;;else{var S=[M,m.c2p(w[0].t)],E=[M,m.c2p(w[T-1].t)];&quot;h&quot;===c.orientation&amp;&amp;(S.reverse(),E.reverse()),a=x?&quot;M&quot;+S+&quot;L&quot;+r.substr(1)+&quot;L&quot;+E:&quot;M&quot;+E+&quot;L&quot;+i.substr(1)+&quot;L&quot;+S}_.attr(&quot;d&quot;,a),t.posCenterPx=M,t.posDensityScale=e*g,t.path=_.node(),t.pathLength=t.path.getTotalLength()/(y?2:1)}));var w,T,k,M=c.box,A=M.width,S=(M.line||{}).width;y?(w=g*A,T=0):x?(w=[0,g*A/2],T=S*{x:1,y:-1}[s.posLetter]):(w=[g*A/2,0],T=S*{x:-1,y:1}[s.posLetter]),o.plotBoxAndWhiskers(r,{pos:v,val:m},c,{bPos:d,bdPos:w,bPosPxOffset:T}),o.plotBoxMean(r,{pos:v,val:m},c,{bPos:d,bdPos:w,bPosPxOffset:T}),!c.box.visible&amp;&amp;c.meanline.visible&amp;&amp;(k=i.identity);var E=r.selectAll(&quot;path.meanline&quot;).data(k||[]);E.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;meanline&quot;).style(&quot;fill&quot;,&quot;none&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;),E.exit().remove(),E.each((function(t){var e=m.c2p(t.mean,!0),r=l.getPositionOnKdePath(t,c,e);n.select(this).attr(&quot;d&quot;,&quot;h&quot;===c.orientation?&quot;M&quot;+e+&quot;,&quot;+r[0]+&quot;V&quot;+r[1]:&quot;M&quot;+r[0]+&quot;,&quot;+e+&quot;H&quot;+r[1])})),o.plotPoints(r,{x:f,y:h},c,s)}}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../box/plot&quot;:955,&quot;../scatter/line_points&quot;:1201,&quot;./helpers&quot;:1342,d3:169}],1348:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../scatter/style&quot;).stylePoints;e.exports=function(t){var e=n.select(t).selectAll(&quot;g.trace.violins&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.each((function(e){var r=e[0].trace,o=n.select(this),s=r.box||{},l=s.line||{},c=r.meanline||{},u=c.width;o.selectAll(&quot;path.violin&quot;).style(&quot;stroke-width&quot;,r.line.width+&quot;px&quot;).call(i.stroke,r.line.color).call(i.fill,r.fillcolor),o.selectAll(&quot;path.box&quot;).style(&quot;stroke-width&quot;,l.width+&quot;px&quot;).call(i.stroke,l.color).call(i.fill,s.fillcolor);var f={&quot;stroke-width&quot;:u+&quot;px&quot;,&quot;stroke-dasharray&quot;:2*u+&quot;px,&quot;+u+&quot;px&quot;};o.selectAll(&quot;path.mean&quot;).style(f).call(i.stroke,c.color),o.selectAll(&quot;path.meanline&quot;).style(f).call(i.stroke,c.color),a(o,r,t)}))}},{&quot;../../components/color&quot;:643,&quot;../scatter/style&quot;:1211,d3:169}],1349:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../isosurface/attributes&quot;),a=t(&quot;../surface/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll,c=e.exports=l(s({x:i.x,y:i.y,z:i.z,value:i.value,isomin:i.isomin,isomax:i.isomax,surface:i.surface,spaceframe:{show:{valType:&quot;boolean&quot;,dflt:!1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},slices:i.slices,caps:i.caps,text:i.text,hovertext:i.hovertext,hovertemplate:i.hovertemplate},n(&quot;&quot;,{colorAttr:&quot;`value`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{colorbar:i.colorbar,opacity:i.opacity,opacityscale:a.opacityscale,lightposition:i.lightposition,lighting:i.lighting,flatshading:i.flatshading,contour:i.contour,hoverinfo:s({},o.hoverinfo),showlegend:s({},o.showlegend,{dflt:!1})}),&quot;calc&quot;,&quot;nested&quot;);c.x.editType=c.y.editType=c.z.editType=c.value.editType=&quot;calc+clearAxisTypes&quot;,c.transforms=void 0},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../isosurface/attributes&quot;:1123,&quot;../surface/attributes&quot;:1311}],1350:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,a=t(&quot;../../lib/str2rgbarray&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts,s=t(&quot;../../plots/gl3d/zip3&quot;),l=t(&quot;../isosurface/convert&quot;).findNearestOnAxis,c=t(&quot;../isosurface/convert&quot;).generateIsoMeshes;function u(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.data=null,this.showContour=!1}var f=u.prototype;f.handlePick=function(t){if(t.object===this.mesh){var e=t.data.index,r=this.data._meshX[e],n=this.data._meshY[e],i=this.data._meshZ[e],a=this.data._Ys.length,o=this.data._Zs.length,s=l(r,this.data._Xs).id,c=l(n,this.data._Ys).id,u=l(i,this.data._Zs).id,f=t.index=u+o*c+o*a*s;t.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Array.isArray(h)&amp;&amp;void 0!==h[f]?t.textLabel=h[f]:h&amp;&amp;(t.textLabel=h),!0}},f.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map((function(e){return t.d2l(e,0,n)*r}))}this.data=c(t);var l={positions:s(n(r.xaxis,t._meshX,e.dataScale[0],t.xcalendar),n(r.yaxis,t._meshY,e.dataScale[1],t.ycalendar),n(r.zaxis,t._meshZ,e.dataScale[2],t.zcalendar)),cells:s(t._meshI,t._meshJ,t._meshK),lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,opacityscale:t.opacityscale,contourEnable:t.contour.show,contourColor:a(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading},u=o(t);l.vertexIntensity=t._meshIntensity,l.vertexIntensityBounds=[u.min,u.max],l.colormap=i(t),this.mesh.update(l)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new u(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/gl3d/zip3&quot;:881,&quot;../isosurface/convert&quot;:1125,&quot;gl-mesh3d&quot;:309}],1351:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../isosurface/defaults&quot;).supplyIsoDefaults,o=t(&quot;../surface/defaults&quot;).opacityscaleDefaults;e.exports=function(t,e,r,s){function l(r,a){return n.coerce(t,e,i,r,a)}a(t,e,r,s,l),o(t,e,s,l)}},{&quot;../../lib&quot;:778,&quot;../isosurface/defaults&quot;:1126,&quot;../surface/defaults&quot;:1314,&quot;./attributes&quot;:1349}],1352:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;../isosurface/calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;volume&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;../isosurface/calc&quot;:1124,&quot;./attributes&quot;:1349,&quot;./convert&quot;:1350,&quot;./defaults&quot;:1351}],1353:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../scatter/attributes&quot;).line,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;./constants&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../components/color&quot;);function f(t){return{marker:{color:c({},n.marker.color,{arrayOk:!1,editType:&quot;style&quot;}),line:{color:c({},n.marker.line.color,{arrayOk:!1,editType:&quot;style&quot;}),width:c({},n.marker.line.width,{arrayOk:!1,editType:&quot;style&quot;}),editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;}}e.exports={measure:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},base:{valType:&quot;number&quot;,dflt:null,arrayOk:!1,editType:&quot;calc&quot;},x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,hovertext:n.hovertext,hovertemplate:o({},{keys:l.eventDataKeys}),hoverinfo:c({},a.hoverinfo,{flags:[&quot;name&quot;,&quot;x&quot;,&quot;y&quot;,&quot;text&quot;,&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;]}),textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;,arrayOk:!1},texttemplate:s({editType:&quot;plot&quot;},{keys:l.eventDataKeys.concat([&quot;label&quot;])}),text:n.text,textposition:n.textposition,insidetextanchor:n.insidetextanchor,textangle:n.textangle,textfont:n.textfont,insidetextfont:n.insidetextfont,outsidetextfont:n.outsidetextfont,constraintext:n.constraintext,cliponaxis:n.cliponaxis,orientation:n.orientation,offset:n.offset,width:n.width,increasing:f(),decreasing:f(),totals:f(),connector:{line:{color:c({},i.color,{dflt:u.defaultLine}),width:c({},i.width,{editType:&quot;plot&quot;}),dash:i.dash,editType:&quot;plot&quot;},mode:{valType:&quot;enumerated&quot;,values:[&quot;spanning&quot;,&quot;between&quot;],dflt:&quot;between&quot;,editType:&quot;plot&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup}},{&quot;../../components/color&quot;:643,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:1355}],1354:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;../../lib&quot;).mergeArray,o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t){return&quot;a&quot;===t||&quot;absolute&quot;===t}function c(t){return&quot;t&quot;===t||&quot;total&quot;===t}e.exports=function(t,e){var r,u,f,h,p=n.getFromId(t,e.xaxis||&quot;x&quot;),d=n.getFromId(t,e.yaxis||&quot;y&quot;);&quot;h&quot;===e.orientation?(r=p.makeCalcdata(e,&quot;x&quot;),f=d.makeCalcdata(e,&quot;y&quot;),u=i(e,d,&quot;y&quot;,f),h=!!e.yperiodalignment):(r=d.makeCalcdata(e,&quot;y&quot;),f=p.makeCalcdata(e,&quot;x&quot;),u=i(e,p,&quot;x&quot;,f),h=!!e.xperiodalignment);for(var g,m=Math.min(u.length,r.length),v=new Array(m),y=0,x=!1,b=0;b&lt;m;b++){var _=r[b]||0,w=!1;(r[b]!==s||c(e.measure[b])||l(e.measure[b]))&amp;&amp;b+1&lt;m&amp;&amp;(r[b+1]!==s||c(e.measure[b+1])||l(e.measure[b+1]))&amp;&amp;(w=!0);var T=v[b]={i:b,p:u[b],s:_,rawS:_,cNext:w};l(e.measure[b])?(y=T.s,T.isSum=!0,T.dir=&quot;totals&quot;,T.s=y):c(e.measure[b])?(T.isSum=!0,T.dir=&quot;totals&quot;,T.s=y):(T.isSum=!1,T.dir=T.rawS&lt;0?&quot;decreasing&quot;:&quot;increasing&quot;,g=T.s,T.s=y+g,y+=g),&quot;totals&quot;===T.dir&amp;&amp;(x=!0),h&amp;&amp;(v[b].orig_p=f[b]),e.ids&amp;&amp;(T.id=String(e.ids[b])),T.v=(e.base||0)+y}return v.length&amp;&amp;(v[0].hasTotals=x),a(e.text,v,&quot;tx&quot;),a(e.hovertext,v,&quot;htx&quot;),o(v,e),v}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc_selection&quot;:1189}],1355:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;]}},{}],1356:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions;e.exports=function(t,e){var r,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,c=e.yaxis,u=[],f=[],h=[];for(i=0;i&lt;o.length;i++){var p=o[i];!0===p.visible&amp;&amp;p.xaxis===l._id&amp;&amp;p.yaxis===c._id&amp;&amp;&quot;waterfall&quot;===p.type&amp;&amp;(r=s[i],&quot;h&quot;===p.orientation?h.push(r):f.push(r),u.push(r))}var d={mode:a.waterfallmode,norm:a.waterfallnorm,gap:a.waterfallgap,groupgap:a.waterfallgroupgap};for(n(t,l,c,f,d),n(t,c,l,h,d),i=0;i&lt;u.length;i++){r=u[i];for(var g=0;g&lt;r.length;g++){var m=r[g];!1===m.isSum&amp;&amp;(m.s0+=0===g?0:r[g-1].s),g+1&lt;r.length&amp;&amp;(r[g].nextP0=r[g+1].p0,r[g].nextS0=r[g+1].s0)}}}},{&quot;../bar/cross_trace_calc&quot;:924}],1357:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,a=t(&quot;../bar/defaults&quot;).handleText,o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../../components/color&quot;),u=t(&quot;../../constants/delta.js&quot;),f=u.INCREASING.COLOR,h=u.DECREASING.COLOR;function p(t,e,r){t(e+&quot;.marker.color&quot;,r),t(e+&quot;.marker.line.color&quot;,c.defaultLine),t(e+&quot;.marker.line.width&quot;)}e.exports={supplyDefaults:function(t,e,r,i){function c(r,i){return n.coerce(t,e,l,r,i)}if(o(t,e,i,c)){s(t,e,i,c),c(&quot;measure&quot;),c(&quot;orientation&quot;,e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;),c(&quot;base&quot;),c(&quot;offset&quot;),c(&quot;width&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;);var u=c(&quot;textposition&quot;);if(a(t,e,i,c,u,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),&quot;none&quot;!==e.textposition&amp;&amp;(c(&quot;texttemplate&quot;),e.texttemplate||c(&quot;textinfo&quot;)),p(c,&quot;increasing&quot;,f),p(c,&quot;decreasing&quot;,h),p(c,&quot;totals&quot;,&quot;#4499FF&quot;),c(&quot;connector.visible&quot;))c(&quot;connector.mode&quot;),c(&quot;connector.line.width&quot;)&amp;&amp;(c(&quot;connector.line.color&quot;),c(&quot;connector.line.dash&quot;))}else e.visible=!1},crossTraceDefaults:function(t,e){var r,a;function o(t){return n.coerce(a._input,a,l,t)}if(&quot;group&quot;===e.waterfallmode)for(var s=0;s&lt;t.length;s++)r=(a=t[s])._input,i(r,a,e,o)}}},{&quot;../../components/color&quot;:643,&quot;../../constants/delta.js&quot;:747,&quot;../../lib&quot;:778,&quot;../bar/defaults&quot;:925,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:1353}],1358:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;initial&quot;in e&amp;&amp;(t.initial=e.initial),&quot;delta&quot;in e&amp;&amp;(t.delta=e.delta),&quot;final&quot;in e&amp;&amp;(t.final=e.final),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],1359:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText,i=t(&quot;../../components/color&quot;).opacity,a=t(&quot;../bar/hover&quot;).hoverOnBars,o=t(&quot;../../constants/delta.js&quot;),s=o.INCREASING.SYMBOL,l=o.DECREASING.SYMBOL;e.exports=function(t,e,r,o){var c=a(t,e,r,o);if(c){var u=c.cd,f=u[0].trace,h=&quot;h&quot;===f.orientation,p=h?t.xa:t.ya,d=u[c.index],g=d.isSum?d.b+d.s:d.rawS;if(!d.isSum){c.initial=d.b+d.s-g,c.delta=g,c.final=c.initial+c.delta;var m=w(Math.abs(c.delta));c.deltaLabel=g&lt;0?&quot;(&quot;+m+&quot;)&quot;:m,c.finalLabel=w(c.final),c.initialLabel=w(c.initial)}var v=d.hi||f.hoverinfo,y=[];if(v&amp;&amp;&quot;none&quot;!==v&amp;&amp;&quot;skip&quot;!==v){var x=&quot;all&quot;===v,b=v.split(&quot;+&quot;),_=function(t){return x||-1!==b.indexOf(t)};d.isSum||(!_(&quot;final&quot;)||_(h?&quot;x&quot;:&quot;y&quot;)||y.push(c.finalLabel),_(&quot;delta&quot;)&amp;&amp;(g&lt;0?y.push(c.deltaLabel+&quot; &quot;+l):y.push(c.deltaLabel+&quot; &quot;+s)),_(&quot;initial&quot;)&amp;&amp;y.push(&quot;Initial: &quot;+c.initialLabel))}return y.length&amp;&amp;(c.extraText=y.join(&quot;&lt;br&gt;&quot;)),c.color=function(t,e){var r=t[e.dir].marker,n=r.color,a=r.line.color,o=r.line.width;if(i(n))return n;if(i(a)&amp;&amp;o)return a}(f,d),[c]}function w(t){return n(p,t)}}},{&quot;../../components/color&quot;:643,&quot;../../constants/delta.js&quot;:747,&quot;../../plots/cartesian/axes&quot;:828,&quot;../bar/hover&quot;:928}],1360:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;../bar/select&quot;),moduleType:&quot;trace&quot;,name:&quot;waterfall&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;oriented&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../bar/select&quot;:933,&quot;./attributes&quot;:1353,&quot;./calc&quot;:1354,&quot;./cross_trace_calc&quot;:1356,&quot;./defaults&quot;:1357,&quot;./event_data&quot;:1358,&quot;./hover&quot;:1359,&quot;./layout_attributes&quot;:1361,&quot;./layout_defaults&quot;:1362,&quot;./plot&quot;:1363,&quot;./style&quot;:1364}],1361:[function(t,e,r){&quot;use strict&quot;;e.exports={waterfallmode:{valType:&quot;enumerated&quot;,values:[&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;group&quot;,editType:&quot;calc&quot;},waterfallgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},waterfallgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],1362:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s&lt;r.length;s++){var l=r[s];if(l.visible&amp;&amp;&quot;waterfall&quot;===l.type){a=!0;break}}a&amp;&amp;(o(&quot;waterfallmode&quot;),o(&quot;waterfallgap&quot;,.2),o(&quot;waterfallgroupgap&quot;))}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1361}],1363:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../constants/numerical&quot;).BADNUM,s=t(&quot;../bar/plot&quot;),l=t(&quot;../bar/uniform_text&quot;).clearMinTextSize;e.exports=function(t,e,r,c){var u=t._fullLayout;l(&quot;waterfall&quot;,u),s.plot(t,e,r,c,{mode:u.waterfallmode,norm:u.waterfallmode,gap:u.waterfallgap,groupgap:u.waterfallgroupgap}),function(t,e,r,s){var l=e.xaxis,c=e.yaxis;i.makeTraceGroups(s,r,&quot;trace bars&quot;).each((function(r){var s=n.select(this),u=r[0].trace,f=i.ensureSingle(s,&quot;g&quot;,&quot;lines&quot;);if(u.connector&amp;&amp;u.connector.visible){var h=&quot;h&quot;===u.orientation,p=u.connector.mode,d=f.selectAll(&quot;g.line&quot;).data(i.identity);d.enter().append(&quot;g&quot;).classed(&quot;line&quot;,!0),d.exit().remove();var g=d.size();d.each((function(r,s){if(s===g-1||r.cNext){var u=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),n?[i,a]:[a,i]}(r,l,c,h),f=u[0],d=u[1],m=&quot;&quot;;f[0]!==o&amp;&amp;d[0]!==o&amp;&amp;f[1]!==o&amp;&amp;d[1]!==o&amp;&amp;(&quot;spanning&quot;===p&amp;&amp;!r.isSum&amp;&amp;s&gt;0&amp;&amp;(m+=h?&quot;M&quot;+f[0]+&quot;,&quot;+d[1]+&quot;V&quot;+d[0]:&quot;M&quot;+f[1]+&quot;,&quot;+d[0]+&quot;H&quot;+f[0]),&quot;between&quot;!==p&amp;&amp;(r.isSum||s&lt;g-1)&amp;&amp;(m+=h?&quot;M&quot;+f[1]+&quot;,&quot;+d[0]+&quot;V&quot;+d[1]:&quot;M&quot;+f[0]+&quot;,&quot;+d[1]+&quot;H&quot;+f[1]),f[2]!==o&amp;&amp;d[2]!==o&amp;&amp;(m+=h?&quot;M&quot;+f[1]+&quot;,&quot;+d[1]+&quot;V&quot;+d[2]:&quot;M&quot;+f[1]+&quot;,&quot;+d[1]+&quot;H&quot;+f[2])),&quot;&quot;===m&amp;&amp;(m=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,m).call(a.setClipUrl,e.layerClipId,t)}}))}else f.remove()}))}(t,e,r,c)}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../bar/plot&quot;:932,&quot;../bar/uniform_text&quot;:937,d3:169}],1364:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../constants/interactions&quot;).DESELECTDIM,s=t(&quot;../bar/style&quot;),l=t(&quot;../bar/uniform_text&quot;).resizeText,c=s.styleTextPoints;e.exports={style:function(t,e,r){var s=r||n.select(t).selectAll(&quot;g.waterfalllayer&quot;).selectAll(&quot;g.trace&quot;);l(t,s,&quot;waterfall&quot;),s.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),s.each((function(e){var r=n.select(this),s=e[0].trace;r.selectAll(&quot;.point &gt; path&quot;).each((function(t){if(!t.isBlank){var e=s[t.dir].marker;n.select(this).call(a.fill,e.color).call(a.stroke,e.line.color).call(i.dashLine,e.line.dash,e.line.width).style(&quot;opacity&quot;,s.selectedpoints&amp;&amp;!t.selected?o:1)}})),c(r,s,t),r.selectAll(&quot;.lines&quot;).each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll(&quot;path&quot;),t.width,t.color,t.dash)}))}))}}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../constants/interactions&quot;:752,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,d3:169}],1365:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../plots/cartesian/axes&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../plot_api/plot_schema&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction,s=t(&quot;../constants/numerical&quot;).BADNUM;r.moduleType=&quot;transform&quot;,r.name=&quot;aggregate&quot;;var l=r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},groups:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},aggregations:{_isLinkedToArray:&quot;aggregation&quot;,target:{valType:&quot;string&quot;,editType:&quot;calc&quot;},func:{valType:&quot;enumerated&quot;,values:[&quot;count&quot;,&quot;sum&quot;,&quot;avg&quot;,&quot;median&quot;,&quot;mode&quot;,&quot;rms&quot;,&quot;stddev&quot;,&quot;min&quot;,&quot;max&quot;,&quot;first&quot;,&quot;last&quot;,&quot;change&quot;,&quot;range&quot;],dflt:&quot;first&quot;,editType:&quot;calc&quot;},funcmode:{valType:&quot;enumerated&quot;,values:[&quot;sample&quot;,&quot;population&quot;],dflt:&quot;sample&quot;,editType:&quot;calc&quot;},enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},c=l.aggregations;function u(t,e,r,a){if(a.enabled){for(var o=a.target,l=i.nestedProperty(e,o),c=l.get(),u=function(t,e){var r=t.func,n=e.d2c,a=e.c2d;switch(r){case&quot;count&quot;:return f;case&quot;first&quot;:return h;case&quot;last&quot;:return p;case&quot;sum&quot;:return function(t,e){for(var r=0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r+=o)}return a(r)};case&quot;avg&quot;:return function(t,e){for(var r=0,i=0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r+=l,i++)}return i?a(r/i):s};case&quot;min&quot;:return function(t,e){for(var r=1/0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r=Math.min(r,o))}return r===1/0?s:a(r)};case&quot;max&quot;:return function(t,e){for(var r=-1/0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r=Math.max(r,o))}return r===-1/0?s:a(r)};case&quot;range&quot;:return function(t,e){for(var r=1/0,i=-1/0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r=Math.min(r,l),i=Math.max(i,l))}return i===-1/0||r===1/0?s:a(i-r)};case&quot;change&quot;:return function(t,e){var r=n(t[e[0]]),i=n(t[e[e.length-1]]);return r===s||i===s?s:a(i-r)};case&quot;median&quot;:return function(t,e){for(var r=[],o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;r.push(l)}if(!r.length)return s;r.sort(i.sorterAsc);var c=(r.length-1)/2;return a((r[Math.floor(c)]+r[Math.ceil(c)])/2)};case&quot;mode&quot;:return function(t,e){for(var r={},i=0,o=s,l=0;l&lt;e.length;l++){var c=n(t[e[l]]);if(c!==s){var u=r[c]=(r[c]||0)+1;u&gt;i&amp;&amp;(i=u,o=c)}}return i?a(o):s};case&quot;rms&quot;:return function(t,e){for(var r=0,i=0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r+=l*l,i++)}return i?a(Math.sqrt(r/i)):s};case&quot;stddev&quot;:return function(e,r){var i,a=0,o=0,l=1,c=s;for(i=0;i&lt;r.length&amp;&amp;c===s;i++)c=n(e[r[i]]);if(c===s)return s;for(;i&lt;r.length;i++){var u=n(e[r[i]]);if(u!==s){var f=u-c;a+=f,o+=f*f,l++}}var h=&quot;sample&quot;===t.funcmode?l-1:l;return h?Math.sqrt((o-a*a/l)/h):0}}}(a,n.getDataConversions(t,e,o,c)),d=new Array(r.length),g=0;g&lt;r.length;g++)d[g]=u(c,r[g]);l.set(d),&quot;count&quot;===a.func&amp;&amp;i.pushUnique(e._arrayAttrs,o)}}function f(t,e){return e.length}function h(t,e){return t[e[0]]}function p(t,e){return t[e[e.length-1]]}r.supplyDefaults=function(t,e){var r,n={};function o(e,r){return i.coerce(t,n,l,e,r)}if(!o(&quot;enabled&quot;))return n;var s=a.findArrayAttributes(e),u={};for(r=0;r&lt;s.length;r++)u[s[r]]=1;var f=o(&quot;groups&quot;);if(!Array.isArray(f)){if(!u[f])return n.enabled=!1,n;u[f]=0}var h,p=t.aggregations||[],d=n.aggregations=new Array(p.length);function g(t,e){return i.coerce(p[r],h,c,t,e)}for(r=0;r&lt;p.length;r++){h={_index:r};var m=g(&quot;target&quot;),v=g(&quot;func&quot;);g(&quot;enabled&quot;)&amp;&amp;m&amp;&amp;(u[m]||&quot;count&quot;===v&amp;&amp;void 0===u[m])?(&quot;stddev&quot;===v&amp;&amp;g(&quot;funcmode&quot;),u[m]=0,d[r]=h):d[r]={enabled:!1,_index:r}}for(r=0;r&lt;s.length;r++)u[s[r]]&amp;&amp;d.push({target:s[r],func:c.func.dflt,enabled:!0,_index:-1});return n},r.calcTransform=function(t,e,r){if(r.enabled){var n=r.groups,a=i.getTargetArray(e,{target:n});if(a){var s,l,c,f,h={},p={},d=[],g=o(e.transforms,r),m=a.length;for(e._length&amp;&amp;(m=Math.min(m,e._length)),s=0;s&lt;m;s++)void 0===(c=h[l=a[s]])?(h[l]=d.length,f=[s],d.push(f),p[h[l]]=g(s)):(d[c].push(s),p[h[l]]=(p[h[l]]||[]).concat(g(s)));r._indexToPoints=p;var v=r.aggregations;for(s=0;s&lt;v.length;s++)u(t,e,d,v[s]);&quot;string&quot;==typeof n&amp;&amp;u(t,e,d,{target:n,func:&quot;first&quot;,enabled:!0}),e._length=d.length}}}},{&quot;../constants/numerical&quot;:753,&quot;../lib&quot;:778,&quot;../plot_api/plot_schema&quot;:816,&quot;../plots/cartesian/axes&quot;:828,&quot;./helpers&quot;:1368}],1366:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../registry&quot;),a=t(&quot;../plots/cartesian/axes&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction,s=t(&quot;../constants/filter_ops&quot;),l=s.COMPARISON_OPS,c=s.INTERVAL_OPS,u=s.SET_OPS;r.moduleType=&quot;transform&quot;,r.name=&quot;filter&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},target:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},operation:{valType:&quot;enumerated&quot;,values:[].concat(l).concat(c).concat(u),dflt:&quot;=&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},preservegaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t){var e={};function a(i,a){return n.coerce(t,e,r.attributes,i,a)}if(a(&quot;enabled&quot;)){var o=a(&quot;target&quot;);if(n.isArrayOrTypedArray(o)&amp;&amp;0===o.length)return e.enabled=!1,e;a(&quot;preservegaps&quot;),a(&quot;operation&quot;),a(&quot;value&quot;);var s=i.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;);s(t,e,&quot;valuecalendar&quot;,null),s(t,e,&quot;targetcalendar&quot;,null)}return e},r.calcTransform=function(t,e,r){if(r.enabled){var i=n.getTargetArray(e,r);if(i){var s=r.target,f=i.length;e._length&amp;&amp;(f=Math.min(f,e._length));var h=r.targetcalendar,p=e._arrayAttrs,d=r.preservegaps;if(&quot;string&quot;==typeof s){var g=n.nestedProperty(e,s+&quot;calendar&quot;).get();g&amp;&amp;(h=g)}var m,v,y=function(t,e,r){var n=t.operation,i=t.value,a=Array.isArray(i);function o(t){return-1!==t.indexOf(n)}var s,f=function(r){return e(r,0,t.valuecalendar)},h=function(t){return e(t,0,r)};o(l)?s=f(a?i[0]:i):o(c)?s=a?[f(i[0]),f(i[1])]:[f(i),f(i)]:o(u)&amp;&amp;(s=a?i.map(f):[f(i)]);switch(n){case&quot;=&quot;:return function(t){return h(t)===s};case&quot;!=&quot;:return function(t){return h(t)!==s};case&quot;&lt;&quot;:return function(t){return h(t)&lt;s};case&quot;&lt;=&quot;:return function(t){return h(t)&lt;=s};case&quot;&gt;&quot;:return function(t){return h(t)&gt;s};case&quot;&gt;=&quot;:return function(t){return h(t)&gt;=s};case&quot;[]&quot;:return function(t){var e=h(t);return e&gt;=s[0]&amp;&amp;e&lt;=s[1]};case&quot;()&quot;:return function(t){var e=h(t);return e&gt;s[0]&amp;&amp;e&lt;s[1]};case&quot;[)&quot;:return function(t){var e=h(t);return e&gt;=s[0]&amp;&amp;e&lt;s[1]};case&quot;(]&quot;:return function(t){var e=h(t);return e&gt;s[0]&amp;&amp;e&lt;=s[1]};case&quot;][&quot;:return function(t){var e=h(t);return e&lt;=s[0]||e&gt;=s[1]};case&quot;)(&quot;:return function(t){var e=h(t);return e&lt;s[0]||e&gt;s[1]};case&quot;](&quot;:return function(t){var e=h(t);return e&lt;=s[0]||e&gt;s[1]};case&quot;)[&quot;:return function(t){var e=h(t);return e&lt;s[0]||e&gt;=s[1]};case&quot;{}&quot;:return function(t){return-1!==s.indexOf(h(t))};case&quot;}{&quot;:return function(t){return-1===s.indexOf(h(t))}}}(r,a.getDataToCoordFunc(t,e,s,i),h),x={},b={},_=0;d?(m=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set(new Array(f))},v=function(t,e){var r=x[t.astr][e];t.get()[e]=r}):(m=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set([])},v=function(t,e){var r=x[t.astr][e];t.get().push(r)}),k(m);for(var w=o(e.transforms,r),T=0;T&lt;f;T++){y(i[T])?(k(v,T),b[_++]=w(T)):d&amp;&amp;_++}r._indexToPoints=b,e._length=_}}function k(t,r){for(var i=0;i&lt;p.length;i++){t(n.nestedProperty(e,p[i]),r)}}}},{&quot;../constants/filter_ops&quot;:749,&quot;../lib&quot;:778,&quot;../plots/cartesian/axes&quot;:828,&quot;../registry&quot;:911,&quot;./helpers&quot;:1368}],1367:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_schema&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction;function s(t,e){var r,s,l,c,u,f,h,p,d,g,m=e.transform,v=e.transformIndex,y=t.transforms[v].groups,x=o(t.transforms,m);if(!n.isArrayOrTypedArray(y)||0===y.length)return[t];var b=n.filterUnique(y),_=new Array(b.length),w=y.length,T=i.findArrayAttributes(t),k=m.styles||[],M={};for(r=0;r&lt;k.length;r++)M[k[r].target]=k[r].value;m.styles&amp;&amp;(g=n.keyedContainer(m,&quot;styles&quot;,&quot;target&quot;,&quot;value.name&quot;));var A={},S={};for(r=0;r&lt;b.length;r++){A[f=b[r]]=r,S[f]=0,(h=_[r]=n.extendDeepNoArrays({},t))._group=f,h.transforms[v]._indexToPoints={};var E=null;for(g&amp;&amp;(E=g.get(f)),h.name=E||&quot;&quot;===E?E:n.templateString(m.nameformat,{trace:t.name,group:f}),p=h.transforms,h.transforms=[],s=0;s&lt;p.length;s++)h.transforms[s]=n.extendDeepNoArrays({},p[s]);for(s=0;s&lt;T.length;s++)n.nestedProperty(h,T[s]).set([])}for(l=0;l&lt;T.length;l++){for(c=T[l],s=0,d=[];s&lt;b.length;s++)d[s]=n.nestedProperty(_[s],c).get();for(u=n.nestedProperty(t,c).get(),s=0;s&lt;w;s++)d[A[y[s]]].push(u[s])}for(s=0;s&lt;w;s++){(h=_[A[y[s]]]).transforms[v]._indexToPoints[S[y[s]]]=x(s),S[y[s]]++}for(r=0;r&lt;b.length;r++)f=b[r],h=_[r],a.clearExpandedTraceDefaultColors(h),h=n.extendDeepNoArrays(h,M[f]||{});return _}r.moduleType=&quot;transform&quot;,r.name=&quot;groupby&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},groups:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},nameformat:{valType:&quot;string&quot;,editType:&quot;calc&quot;},styles:{_isLinkedToArray:&quot;style&quot;,target:{valType:&quot;string&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:{},editType:&quot;calc&quot;,_compareAsJSON:!0},editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t,e,i){var a,o={};function s(e,i){return n.coerce(t,o,r.attributes,e,i)}if(!s(&quot;enabled&quot;))return o;s(&quot;groups&quot;),s(&quot;nameformat&quot;,i._dataLength&gt;1?&quot;%{group} (%{trace})&quot;:&quot;%{group}&quot;);var l=t.styles,c=o.styles=[];if(l)for(a=0;a&lt;l.length;a++){var u=c[a]={};n.coerce(l[a],c[a],r.attributes.styles,&quot;target&quot;);var f=n.coerce(l[a],c[a],r.attributes.styles,&quot;value&quot;);n.isPlainObject(f)?u.value=n.extendDeep({},f):f&amp;&amp;delete u.value}return o},r.transform=function(t,e){var r,n,i,a=[];for(n=0;n&lt;t.length;n++)for(r=s(t[n],e),i=0;i&lt;r.length;i++)a.push(r[i]);return a}},{&quot;../lib&quot;:778,&quot;../plot_api/plot_schema&quot;:816,&quot;../plots/plots&quot;:891,&quot;./helpers&quot;:1368}],1368:[function(t,e,r){&quot;use strict&quot;;r.pointsAccessorFunction=function(t,e){for(var r,n,i=0;i&lt;t.length&amp;&amp;(r=t[i])!==e;i++)r._indexToPoints&amp;&amp;!1!==r.enabled&amp;&amp;(n=r._indexToPoints);return n?function(t){return n[t]}:function(t){return[t]}}},{}],1369:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/cartesian/axes&quot;),a=t(&quot;./helpers&quot;).pointsAccessorFunction,o=t(&quot;../constants/numerical&quot;).BADNUM;r.moduleType=&quot;transform&quot;,r.name=&quot;sort&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},target:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},order:{valType:&quot;enumerated&quot;,values:[&quot;ascending&quot;,&quot;descending&quot;],dflt:&quot;ascending&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t){var e={};function i(i,a){return n.coerce(t,e,r.attributes,i,a)}return i(&quot;enabled&quot;)&amp;&amp;(i(&quot;target&quot;),i(&quot;order&quot;)),e},r.calcTransform=function(t,e,r){if(r.enabled){var s=n.getTargetArray(e,r);if(s){var l=r.target,c=s.length;e._length&amp;&amp;(c=Math.min(c,e._length));var u,f,h=e._arrayAttrs,p=function(t,e,r,n){var i,a=new Array(n),s=new Array(n);for(i=0;i&lt;n;i++)a[i]={v:e[i],i:i};for(a.sort(function(t,e){switch(t.order){case&quot;ascending&quot;:return function(t,r){var n=e(t.v),i=e(r.v);return n===o?1:i===o?-1:n-i};case&quot;descending&quot;:return function(t,r){var n=e(t.v),i=e(r.v);return n===o?1:i===o?-1:i-n}}}(t,r)),i=0;i&lt;n;i++)s[i]=a[i].i;return s}(r,s,i.getDataToCoordFunc(t,e,l,s),c),d=a(e.transforms,r),g={};for(u=0;u&lt;h.length;u++){var m=n.nestedProperty(e,h[u]),v=m.get(),y=new Array(c);for(f=0;f&lt;c;f++)y[f]=v[p[f]];m.set(y)}for(f=0;f&lt;c;f++)g[f]=d(p[f]);r._indexToPoints=g,e._length=c}}}},{&quot;../constants/numerical&quot;:753,&quot;../lib&quot;:778,&quot;../plots/cartesian/axes&quot;:828,&quot;./helpers&quot;:1368}],1370:[function(t,e,r){&quot;use strict&quot;;r.version=&quot;1.58.4&quot;},{}]},{},[26])(26)}));&lt;/script&gt;                &lt;div id=&quot;10d2bc08-9ad5-45f0-b4fe-f81d212ef391&quot; class=&quot;plotly-graph-div&quot; style=&quot;height:1500px; width:1000px;&quot;&gt;&lt;/div&gt;            &lt;script type=&quot;text/javascript&quot;&gt;                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById(&quot;10d2bc08-9ad5-45f0-b4fe-f81d212ef391&quot;)) {                    Plotly.newPlot(                        &quot;10d2bc08-9ad5-45f0-b4fe-f81d212ef391&quot;,                        [{&quot;coloraxis&quot;: &quot;coloraxis&quot;, &quot;histfunc&quot;: &quot;avg&quot;, &quot;hovertemplate&quot;: &quot;Period=1980-1990&lt;br&gt;LONGITUDE=%{x}&lt;br&gt;LATITUDE=%{y}&lt;br&gt;avg of ESTIMATED YEAR INCREASE (C)=%{z}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;name&quot;: &quot;&quot;, &quot;nbinsx&quot;: 72, &quot;nbinsy&quot;: 36, &quot;type&quot;: &quot;histogram2d&quot;, &quot;x&quot;: [-121.3, -121.2167, -121.4, -121.4, -120.6475, 8.8503, 6.095, -52.85, 48.228, 114.48, 114.95, 91.32, -89.51, 144.283, -101.53, 1.832, -108.7833, -122.3667, -72.6667, -88.5214, -98.4131, -123.8292, -123.7147, -112.8253, -76.1697, -115.3667, -4.567, 42.657, -3.93, -3.926, -97.2128, -99.85, -99.6822, -81.9647, -106.4278, 18.82, -89.3667, 9.2903, -72.97, 43.25, 71.5, -65.85, 131.4, 54.47, 54.651, 33.317, 34.133, -99.0631, -66.3667, -68.2592, -89.833, -105.36, -99.933, -40.14, -98.05, 90.5, 110.375, 27.85, 29.4, -113.4167, 11.0175, -96.62, -96.685, -96.5161, -176.65, 59.9, 30.417, -115.5833, -127.8667, -77.2344, 38.8, 38.7, 38.75, 25.7, -119.8961, 138.5204, 138.6216, 138.6517, 138.6242, 138.6331, 138.5869, 148.0646, -111.3167, -3.3, -3.3, -120.9447, 38.283, -66.7978, 39.9, 14.457, -107.9, -88.7, -0.28, -84.0158, -59.367, -89.9161, -58.416, -89.65, -99.08, -98.9667, -89.0644, -110.9297, 30.601, 7.98, 7.967, -9.5667, 56.75, 56.8, 91.25, -121.7667, -95.9817, 93.47, -103.7347, 20.17, 0.6, 114.52, 94.883, -124.0578, 17.4697, 78.0333, 43.05, 21.38, -102.3, -37.9, -99.38, -113.1875, -66.2222, -66.2167, 138.4, 42.5, 72.633, 48.07, 24.017, 24.2206, -104.48, -99.13, 48.762, 14.13, 127.45, 138.233, -81.6958, -82.5667, -41.067, 24.367, -99.8556, -0.6, -9.63, -93.6675, -159.7667, 34.07, 80.45, 138.15, 139.1, -112.86, 68.73, 39.6, 39.0, 31.1, 13.25, 17.09, 27.85, 47.7294, -89.33, 140.1, 58.183, -14.38, 70.95, 54.117, -135.0, 77.033, 77.067, 77.92, 78.45, 66.833, -6.667, -81.5169, -103.1417, -81.4333, -103.2167, 32.967, 113.267, 76.49, 54.2, 34.1, 31.4, 73.1, 20.767, 57.15, 18.31, 130.199, -18.0794, 64.333, 55.6, 74.47, -38.42, 24.2817, -122.3167, -105.955, -105.8614, -108.95, -113.5778, 32.0, 81.05, 46.583, 154.15, -1.8631, -1.8606, -72.45, -99.3011, -73.7472, -84.1489, 117.8022, -73.8092, -84.1944, -80.1994, 8.1167, -124.9833, -88.4811, -64.0167, -67.35, -93.3019, 174.77, -92.7867, -104.1017, -88.0569, -98.0083, -104.2647, -78.1664, -79.8333, 8.9792, 9.0381, -106.6167, -106.6156, 146.9534, 146.955, -106.0567, -73.9267, -6.22, 125.0331, -122.4833, -6.216, -123.6167, 13.0519, -112.0575, -117.495, -90.7417, -55.8, 82.767, 117.933, 77.8667, 142.1667, 48.55, -106.9328, 0.117, 37.22, 37.2167, -62.2833, -126.9333, -62.3333, 8.63, 16.5333, -85.9481, -92.4611, -97.7847, -92.2956, 29.949, -92.5586, -95.3942, 25.93, -123.2833, -123.1833, -122.0667, -76.205, 7.9128, 12.0442, -73.25, -77.7583, -69.943, 51.85, 76.867, 3.25, 8.2797, -94.3053, -0.558, -0.5, -0.4942, -0.5706, -98.0678, -88.155, -0.8481, -98.0247, 133.889, -91.0547, 30.3, 21.2, 134.4029, -119.9933, -69.025, 81.735, 81.9, -152.6425, -84.8744, -84.73, -78.7497, -85.7892, -109.1528, -81.3167, -100.83, -105.5019, -75.4492, -111.7833, -102.8967, -111.7833, -115.5181, -92.8022, -119.5944, -120.8667, -62.6, -79.8667, 19.5, -84.6492, -64.95, 19.13, 69.6, -92.67, 76.9331, -82.5067, -91.9194, 14.67, -2.4544, -2.3567, -101.505, -76.2333, -101.65, 124.567, 100.4, -122.4833, 41.5, -83.5644, -83.4281, -84.3506, -103.66, -116.7775, -109.1469, -111.7708, 74.5, 27.2, -109.85, 9.3467, 153.4556, -111.6369, 96.25, -92.03, -110.2878, -111.833, -110.0167, 88.083, 89.5, -111.0339, -56.1, 23.3581, 8.6331, -108.3794, 12.3906, 136.8594, 32.2, 11.3131, -112.4819, -97.55, -98.9714, -90.1464, -78.4667, -78.3203, -67.4, -45.93, -120.5436, -99.2667, -99.2964, -99.3344, 72.22, 27.033, -92.8417, 18.9, -88.62, -98.6878, -104.3492, 14.04, -8.0397, 12.15, -95.2336, 20.99, -3.5539, 105.67, 136.4198, -149.1108, 8.1167, 49.485, 41.634, -3.85, 40.1, 39.7, 47.93, 128.883, 47.17, -116.4619, -101.7089, 43.833, 35.85, 152.7111, -4.08, 128.17, 128.083, 43.133, 61.7, -77.9781, -112.88, -84.2322, -92.3631, -93.7742, -89.2122, 131.983, -178.9, -72.5375, -83.1, 32.9167, -103.3222, -22.949, -103.1819, -101.0286, -90.525, -94.36, 35.9833, 16.23, -78.1333, 16.46, -125.55, -125.5333, -67.45, 74.797, -104.7333, 38.517, -112.9569, -122.6136, -98.1989, 177.5667, -117.8425, -94.6342, 47.767, -91.2933, 32.83, 37.3, -117.1333, 22.8, -85.5333, -149.905, -150.0278, -149.855, -80.85, -73.8, 125.317, -86.5225, 137.1692, 16.1199, 8.6, 144.9281, -82.6606, -94.4386, -82.7097, -115.4522, -149.3397, -108.9408, -85.7164, 83.83, 83.65, 72.333, 128.72, 16.1497, -112.2333, -102.5517, -79.5672, -83.8386, -118.55, 169.767, -107.3, -109.3292, -7.66, 12.083, -78.0231, 13.9931, -75.55, -0.56, -111.9608, -95.4592, -84.9897, -134.5864, 70.8, 70.18, -63.98, 136.4333, -122.4406, 11.517, -159.5333, -108.7689, 125.65, 109.03, 32.883, 32.98, 32.68, -93.5822, 7.809, -64.8625, -76.5075, -65.5167, 9.5067, -89.2344, -131.5786, -134.1003, -134.8333, -85.8556, -83.7108, 117.05, -99.8258, -64.2833, -99.89, 36.2, 50.23, 30.8, 47.5, 47.483, -120.7533, -105.8919, -98.0283, 1.103, -89.1128, -88.0994, -121.7525, 76.9, -95.615, -70.45, -70.4, -64.13, -76.716, 50.32, 49.3, 133.067, -133.3833, -111.3836, 114.4, 49.467, 68.867, 11.1825, 96.0, 140.767, 7.3, -109.2333, -111.4814, -110.25, -85.0206, -85.0333, -98.45, 121.633, -171.781, -171.8, -68.417, 151.9533, -88.4378, -121.2811, -94.0281, -82.3389, -78.8275, -76.58, -75.18, -74.72, -75.28, -73.12, 169.67, 35.0167, -91.97, -97.95, -37.05, -42.05, 21.35, 44.2, -52.23, 49.847, 61.6694, -96.8047, 102.583, 38.5, 41.138, 142.9811, -46.933, 21.4167, -112.5758, -89.4286, -97.0833, -119.25, -78.4167, -81.8739, -90.6264, 6.1958, -81.3508, -104.6575, 153.0078, -98.6117, -109.6192, -113.2989, -77.9822, -37.08, -113.3872, 42.7, 48.283, -97.1617, -103.66, -4.1108, -66.6747, -66.7525, -71.567, -71.6, 13.07, 11.85, -54.0, 20.4831, -96.8253, 40.7331, 130.0831, -70.333, -46.1, -109.18, 17.8431, 142.333, -93.0589, 66.833, -91.3444, 139.3357, 13.4367, 17.95, -120.2064, -89.3269, -70.5333, -6.65, -70.6167, 41.1167, 151.6681, 24.63, -98.3486, -89.0333, -88.9, -119.2167, -119.1333, -99.7214, -100.1839, -54.0, -76.3667, 8.0719, 9.9125, 9.0831, -67.7167, 176.8333, 9.68, 74.9, -101.6333, -120.5333, -93.9, -105.75, -115.9236, 37.983, 93.435, 11.3, -104.3836, -71.95, -101.6914, -80.5667, -67.4667, -115.1853, -96.1542, -109.9, -70.786, 41.817, -74.6167, 36.617, 102.783, -94.0667, -71.1667, 12.59, 119.933, -0.267, 10.782, 142.367, -71.95, 15.4, 17.37, 17.32, -83.6231, -79.8378, -98.3667, -82.5567, -82.5375, 58.3331, -93.1164, -99.7633, -77.4833, -82.6131, -122.7144, -82.35, -85.7789, -90.9678, -96.3811, -99.3742, -80.8, -111.2739, -121.9794, -112.4833, -118.8253, 25.5456, 33.9, 10.4367, -1.17, 38.917, 38.9, 131.067, 145.1, -106.8381, -100.2333, 14.19, -107.2333, 42.717, -75.2128, -112.5556, -105.9667, 8.4692, 32.7831, 71.3667, 48.9, -123.8825, 132.067, 48.05, 105.18, -6.0442, -57.63, 31.1, -172.5167, 1.12, -13.067, -13.07, 71.633, 33.967, 68.3667, 75.8, -95.1108, -113.5333, 33.4, -95.83, -84.5833, -81.0256, -82.0964, -86.9833, -83.3275, 23.7333, 23.7167, -91.6167, -91.5833, 151.767, -99.0303, -84.2331, -84.4417, -84.3, -115.2333, -95.0039, -74.4242, -74.5672, -110.95, -133.7, -87.5167, -87.4389, -96.0667, 14.37, -102.52, -100.43, -100.45, 173.1833, -139.03, -139.0, -102.2167, -101.0422, 51.9167, -119.5128, -121.0839, -76.5447, -85.05, -95.7469, -85.5, -121.0667, -4.5658, 174.8, -75.0833, -94.9222, 12.7156, -2.917, 20.35, 10.9431, -112.3964, -81.9633, -69.7972, -107.6211, -89.0, -134.645, 160.73, 9.6681, 70.3, 75.4, 7.4678, -97.9958, -88.3092, -76.7764, -104.75, -76.6592, -77.5333, -112.2656, -117.0675, -118.4914, -97.68, -97.7603, -92.9739, -73.7333, 3.169, 3.55, -118.3167, -43.41, -115.9203, 16.17, -3.833, -4.68, -4.6992, -74.9667, -81.5267, 38.483, 14.57, -74.22, 27.85, 131.0583, -80.9833, -103.8, -97.4, 147.3758, -96.65, 26.7, -108.0006, -59.8, -8.4192, -8.3719, 35.9, 31.08, -91.9167, -113.3719, -125.4667, 14.5, 127.381, 52.65, 105.85, -44.76, -109.28, 26.9167, -65.4667, -99.9, -107.25, 78.567, 15.11, -75.9114, -7.0, -6.8292, 40.98, -60.75, 8.2467, 13.1333, 150.7278, -120.4, -113.0167, -106.5008, 115.5394, -107.55, 7.0853, -82.9939, 7.9969, 8.3858, 9.7844, 8.5769, 8.1939, 7.6981, 15.9, 10.5714, 9.717, 13.63, 10.083, 10.4467, 7.8725, -108.4167, 8.8394, 7.967, 8.7656, 8.1881, 9.5, 12.8756, 8.75, 9.9858, 11.6, 9.1092, 80.767, 35.9, -113.1744, 113.58, -54.1, -107.6578, 44.43, -71.0, 120.62, 120.6, 28.9, 37.417, -62.167, -80.4, -111.95, -58.167, -114.98, 50.65, 23.5, -68.1833, -68.2, -67.8333, -62.8, -70.5, -56.1833, -105.4767, -116.1667, 110.433, -75.45, -84.6175, 90.017, 89.67, -114.4333, 147.65, 147.5669, 106.6, 10.6056, 23.4, 67.2, 91.467, 74.5, 75.7, 105.53, 19.0167, 96.3667, -76.95, 62.1831, 53.8, 76.267, 82.07, -116.0628, -102.3008, -119.0508, -119.0542, -79.9833, 116.4781, -111.4, -117.8086, -117.8333, -96.0833, -96.0, 57.417, 32.3, 103.07, 43.15, 86.933, 33.1, -58.3, -119.0883, -120.6833, -99.3, -85.8506, -109.5167, -124.0333, -107.85, 7.53, 125.6589, 127.9867, 86.33, 86.6, 75.0831, 19.785, 27.926, 170.97, 68.75, 123.8653, -108.1439, 143.7911, -106.16, -99.9764, -6.1534, -8.1789, -72.7836, -71.7, -103.7403, 143.561, 19.9, -64.8167, -76.6167, -76.6833, 9.52, 58.35, 20.67, -81.0306, 10.9217, -125.1167, -108.48, 169.55, 24.983, 21.0331, -77.85, 56.378, 54.8333, 27.97, -124.4019, -115.5667, -115.45, 77.583, 22.83, 100.5, 100.567, -62.6833, -68.8186, 18.57, 18.9, 18.519, 17.217, -16.45, -16.652, -16.6333, -16.79, -87.3572, -120.2833, 150.9864, -81.8742, -115.2333, -78.42, 11.82, 114.383, 115.57, 107.13, 132.18, 99.22, 78.3667, -89.7269, 149.0654, -88.4833, -71.1, 149.8117, 26.0, -39.3, -109.3719, 4.017, -158.0667, -83.8819, 145.2883, 2.2, 2.1253, 2.0697, -62.92, -85.3847, 18.5403, -88.9961, -96.6369, 79.4, 14.3, 109.6331, 109.53, -121.4819, 90.367, 16.78, 12.85, 102.233, 102.6, 17.88, -121.5167, -159.7833, 27.65, 83.5167, -81.185, -120.2169, -96.1664, -69.359, 150.6096, -79.2333, -74.1, -69.5167, -73.65, -75.9833, -79.1, -66.3167, -77.65, -45.267, -45.0, -86.1247, -116.6667, -72.0275, -72.5794, -120.1167, -67.9333, -79.6833, -88.1639, 133.8901, -60.25, 115.3931, -156.7814, 78.417, -117.0219, -117.0333, -116.7858, -143.6333, 12.733, 32.3, -96.0117, -96.0261, -98.5494, -111.6497, -41.302, -81.8433, -79.7714, 106.067, 94.4, 113.283, -93.9667, -68.25, 69.717, 121.98, 7.5831, -62.88, -59.683, 164.1, -34.617, -56.683, -110.4333, -56.983, -58.633, -56.717, -44.733, -67.133, 69.85, -108.035, 44.0, 47.88, -5.515, -14.22, 8.72, 32.467, 12.04, -91.9144, -64.8667, 129.483, 99.1, -78.1692, -106.3167, -89.9806, -91.6386, -91.7944, -106.3775, -77.3478, -65.65, 149.5559, 26.82, 149.55, -108.0167, -16.7, 41.117, 6.183, -91.1469, -107.75, 14.37, 81.7, -94.8981, -85.2667, -85.2511, -122.5286, -55.6, -107.2667, -116.8917, 41.6, -94.5869, -94.5667, -49.117, -83.3303, 98.083, 84.15, 112.367, 107.1, 100.683, 104.5, 112.117, 96.4, -79.3683, -76.8161, 40.2, -90.8167, -115.2167, 26.5, 90.53, -94.9908, -116.5594, -95.975, -55.8, -55.8167, -87.7853, -89.2889, -89.5989, 106.77, -104.0158, -94.0475, -109.6333, -116.7583, -112.9833, -121.4333, -87.95, -115.55, -109.5667, -107.5167, -116.15, -113.9333, -115.45, -105.65, -111.3922, -104.4275, -116.0833, -94.9519, -112.2667, -112.2667, -116.9667, -87.2119, -96.75, -96.75, -79.4, -116.7189, -70.7667, -80.7167, 22.583, -80.6956, -116.9814, -94.2928, -71.1667, -96.4667, 2.1281, 4.95, -100.5308, -112.65, -119.05, -108.1, -119.4, -122.8203, -99.8278, -111.7831, -111.35, -140.8667, -113.9422, -86.9117, -88.8478, -111.55, -111.0667, -131.4683, -114.1833, -118.2167, -89.35, -72.4333, -2.27, -81.1231, -81.1939, 17.9164, 8.8331, -79.5233, -94.7244, -71.2833, -110.9075, -0.483, 9.6267, -67.6667, -88.8833, 146.7132, -107.3167, -91.0561, 8.9689, 34.783, -97.7061, -97.6667, 149.838, 78.47, 32.3, 14.8, 109.1, 116.283, 116.5, 34.9, 35.47, 30.0, 3.1239, -7.8667, 90.917, 5.0, 5.1, 69.2, 21.1333, 74.817, 27.95, -92.1833, 138.6147, -99.7508, -48.467, -68.9892, 30.03, 74.617, 20.2831, 20.4667, -76.5847, -79.9331, -122.0386, -9.5467, -58.92, -126.6833, -126.6, -126.8167, -57.583, -65.8333, -83.7747, 1.179, -74.8431, -78.7, -97.6375, -77.4, -89.8467, -90.423, -95.9167, -103.8511, -103.9339, -80.6711, -86.8819, -92.2764, 152.8979, -122.4833, -122.5114, -122.5372, -58.883, -112.15, -72.45, 12.2451, -104.0936, -10.0, 30.1, 128.467, -98.1125, -89.0311, 37.783, -43.9333, -54.95, -97.4833, -76.9314, -151.0333, -75.0833, -75.0836, 32.95, 70.0294, -90.4919, -8.0, -94.8297, 145.9703, -67.1133, -98.4161, -97.4439, -112.9, 117.8603, -121.285, 144.2825, 117.367, 20.27, 102.33, 102.2, -75.294, -2.167, -6.4, -1.35, 1.4, -70.033, -101.5325, -4.9858, 4.9353, 8.6283, -95.6167, -102.9833, -76.3833, -149.1542, -81.1, -92.6006, -94.215, -88.9203, -71.9486, -86.4267, -51.51, -82.5967, 123.783, 34.887, -122.0797, -111.9167, -116.475, -116.5875, 15.78, 36.783, -84.2908, -97.0333, -97.0167, 24.95, 28.983, 65.05, 172.7, 14.69, 9.7, 5.2264, 5.3331, 5.317, -114.7278, -89.5475, 179.32, -122.2606, 69.517, -71.1853, 13.5039, 13.3017, 13.4039, -64.85, 7.4167, -106.55, -106.8325, 11.7114, -84.93, -85.6572, 7.0681, 7.4639, -91.1667, -77.9833, -114.65, -73.1833, -105.7833, -105.7833, -65.0667, 6.683, -117.6833, 5.98, -87.0078, -100.3108, -110.5411, 29.45, -72.4333, -94.0269, -161.8292, 28.336, -71.6833, -64.7944, -151.5089, 34.7994, -118.1522, -101.7906, 116.9247, 31.9, 31.7, 36.7, 49.4, 77.35, 85.833, 69.667, 99.0167, 136.117, 136.1, 23.167, 0.307, -1.53, -68.6667, 148.3036, -108.4, -120.3006, -116.63, -105.4855, 121.7803, 8.5278, 19.0, -92.9433, 5.4489, 27.3, -123.35, -114.0331, -93.55, -107.9833, -116.3333, -77.2578, 76.98, -123.2078, -123.2333, -87.7503, -116.9169, -115.7167, -101.5667, -123.0667, -115.8, -145.7214, -93.7994, -109.2783, -101.4625, -78.4356, -85.4822, -122.85, -152.297, -110.0608, -109.2667, -105.8167, -111.3242, -101.4536, -102.1467, -111.2, -109.9503, -89.8667, -111.6639, 15.8606, 105.233, 84.95, 73.3, 134.267, 30.117, -2.9056, 30.0, 103.6, -122.2833, -97.4472, -118.2333, -93.575, -108.5422, -108.4811, -106.7319, 12.917, 150.5164, -89.0008, -88.9167, 97.705, 110.6, -110.2, 27.333, -75.985, -106.3494, 40.5, -101.2667, 113.033, 113.0, 22.78, 87.27, 142.9156, -72.1233, -100.9167, -111.5333, 139.3486, 38.0, 59.266, -86.745, -86.8333, -106.5125, 5.25, 132.95, -7.8764, 55.533, -101.05, 24.7667, -11.62, -11.617, -109.9167, -109.9289, -109.895, -99.3667, 9.4892, 58.85, 42.621, 74.58, -71.5667, -80.2392, -118.3581, 27.28, 5.72, -100.7603, -100.8, -100.7592, -102.465, -99.235, -107.35, 16.55, 16.54, -15.58, -15.654, -95.7, 24.5, 11.48, 42.1, 21.37, -108.5086, -104.4042, 125.183, -95.8833, 15.7, 9.8, 15.74, 18.2667, 18.27, 19.0167, 12.94, 7.2762, 21.5792, 145.4672, -94.5175, -112.3531, -112.4369, -3.03, -80.4133, -81.3292, -109.8, -71.7167, -97.2764, -111.1167, -112.2394, -125.1333, -58.3667, -111.5833, -107.7375, -82.3594, -113.4333, -109.7517, -112.9539, -121.8133, 66.967, 1.3781, 127.5, 15.75, -122.7928, -96.4025, -96.1406, -91.23, -114.4333, -83.9444, 23.933, -84.5553, -93.1947, -105.5717, -97.67, -136.7667, -75.3333, -98.4286, -57.2167, -57.1833, -109.4847, 7.3056, -121.8667, -120.6833, -110.6, -115.0131, -71.5667, -71.5833, 4.55, 26.3, 12.05, -113.5, -91.4864, -92.4394, -107.9603, -104.895, -85.9625, -86.5214, -77.3639, -85.05, -112.8639, -81.7025, -109.1667, -83.77, -81.2078, -80.8831, -119.1217, -120.7103, -117.9336, -115.5444, -71.1136, -116.2167, -119.9167, -76.0275, -107.1678, -93.6506, -121.7189, -111.1922, -119.2833, -119.2833, -109.5575, -85.1547, -106.9456, -81.3833, -114.5972, -89.9044, -114.7142, -3.3667, -121.1, -11.77, -119.6933, -119.2778, -120.6833, -128.5167, -54.85, -40.27, -60.65, -116.9333, 9.3842, -4.331, -4.3, 29.183, 32.15, -130.25, -120.0936, -91.52, 13.313, -92.88, 6.6114, 7.2706, 114.2331, 21.64, -119.0142, 14.3589, 14.367, 27.42, 22.22, -98.7353, -89.8567, 67.45, 35.3, -101.3833, -0.6758, 37.35, 140.47, -74.15, 89.583, 89.367, 97.45, 40.567, 2.067, 11.3681, 35.533, -116.2022, -116.2406, -102.4806, -116.0542, -100.05, 10.683, -14.25, 9.7356, 41.833, 15.82, 72.667, -15.483, 28.617, -78.2064, -93.3911, -88.9892, 12.55, 14.05, 147.4803, 11.3458, 34.1, -89.82, 84.4, 93.133, 74.633, 156.3, 105.42, 108.58, 56.021, 137.53, 11.2, 31.6, -23.25, 31.1, 11.33, 149.2379, 72.8167, 72.85, 128.8667, -45.36, -50.43, -43.417, -44.11, -109.1833, -114.5667, -53.1167, -93.03, -2.783, -110.4358, 147.0, -98.9508, -107.5833, -96.1661, 15.88, -130.6333, -71.05, -116.3103, -121.9519, -102.1192, 7.1475, -72.2667, -12.5, -67.5833, -81.6667, -93.8906, -88.5622, -93.9258, -81.6442, -74.3961, -92.7603, -75.3697, -7.7308, 143.7229, -89.4075, -102.9622, 90.0167, 27.8, 12.95, -151.75, -151.75, -0.7, -63.02, -72.9333, -111.0456, -63.2167, 0.95, 4.767, -101.4542, 13.8, -67.1294, 28.5, 16.2, 6.6728, 15.5078, 14.76, 27.2, -2.92, -2.933, -116.4036, 116.5167, 9.42, -1.75, 10.0333, -106.8908, 17.43, 17.4, 17.63, -120.8833, -114.1833, -121.4333, -71.0667, -71.0106, -95.8722, 24.833, 26.5, 147.0061, 35.85, 26.67, -100.4525, 145.9667, -55.35, -5.03, 15.633, -7.5, -111.42, -105.2667, -112.1136, -114.8464, -122.0031, -109.6903, 139.9039, -1.6, 1.6, -117.3544, -111.8903, 15.58, 2.3667, 6.77, 145.9358, -118.2, -1.843, -114.0242, -14.68, 1.463, 4.206, -102.2464, -114.0167, 148.2152, 148.25, -2.905, -109.4917, -97.8472, -91.1711, -86.4239, -83.6111, -103.4061, -78.6667, -120.6556, -118.45, 150.4019, -121.45, -115.0667, 115.767, -102.95, -110.25, -92.7164, -77.3333, -84.9139, -108.1633, -102.2564, 26.1, -110.8833, -111.155, -111.1608, -111.0453, 34.0, 30.0, -100.4144, -82.5014, -1.7723, -85.1517, -78.7144, -79.6, -78.6403, -79.6167, -99.3492, -111.3333, -135.7833, -3.3958, -46.9333, -6.7331, 30.3, -94.2086, 17.7397, -79.7, 7.9731, -53.9667, -106.2314, -79.6167, -99.95, -99.9833, 20.48, -80.2333, -86.2667, -104.3828, -74.2453, -47.933, -47.933, -69.812, 7.86, 17.2, 129.333, 101.75, 10.6, 10.556, -103.0072, -5.117, -115.5581, -118.8803, -106.4472, 15.25, -98.9017, 15.27, 18.0597, -105.2992, 11.99, 60.35, -88.3769, 9.73, -3.0, -100.9408, 8.7992, 8.583, -122.6828, 9.167, -78.2886, -96.3972, 11.5, -113.2167, 10.1, -4.16, 23.6831, -114.4833, -82.7358, -50.48, -64.15, 146.8651, -99.8628, -101.4467, -87.0486, -87.055, 21.98, 151.745, -72.3069, -97.7761, -119.2286, -73.2, -103.1039, -85.8008, -73.1289, -108.9092, 116.1311, 116.1375, -75.6167, -97.5017, -64.55, -67.8442, -120.8, -70.7467, -0.167, 149.8003, -104.3267, -112.0436, 146.9614, -111.6167, -104.8361, -113.7167, -112.062, 8.6506, -91.8625, -113.3847, 17.9331, -91.2153, 153.0389, 153.1142, 153.1292, 153.0306, -116.25, -73.1167, -82.4044, -2.6, -96.3917, -93.8014, -97.75, 11.65, 34.2297, 14.5, -105.4072, -108.8833, -102.5667, -102.6833, -149.7667, -97.4667, -101.6833, 10.62, -77.9333, -71.005, -75.7, -75.6667, -105.83, -89.3867, 25.15, 154.27, -99.675, -94.7, 141.4676, 141.5333, 28.5, 8.9567, -72.5667, -71.95, 4.9367, -93.0594, -79.0975, -90.4581, -96.7686, -124.2453, -81.673, -106.2333, -88.6531, -111.85, -111.9, -82.3658, -111.85, -122.15, -111.7833, 117.0072, -85.0128, -79.0833, 122.2353, -120.6, 10.4553, 16.3097, -111.4667, -102.2681, -113.0108, -100.6292, -116.8981, -97.4186, -89.2586, -108.9172, -96.8283, -98.9456, -110.5833, -81.55, 7.1156, -117.8667, -88.2167, -106.5333, -116.1333, -115.8017, 114.928, 135.945, -81.5022, -93.1331, -81.3908, -69.9333, -122.8494, -91.2711, 4.533, -112.1456, -112.1689, -109.2372, 101.1833, 122.772, 48.367, -79.6817, -56.8667, 9.9367, -112.5828, -80.1336, -122.6553, -80.22, -105.2969, -75.4167, -122.0036, -75.2044, -111.4333, -64.7167, 26.0831, -82.9697, 19.0206, 19.183, -4.5458, 44.1, 106.57, -103.95, -106.1275, -58.483, -111.9167, -78.7369, -106.6992, -93.1067, -93.84, -99.64, -109.1675, -108.4333, -108.4167, -105.3833, 31.583, 26.7, 27.48, -71.9075, -116.7, 120.7, 121.917, 52.8, 64.617, 8.1806, -114.7453, 10.455, 162.3, -173.2333, 41.533, 29.32, 31.817, 28.617, 28.617, 103.55, 91.6, -110.7203, -114.5686, -121.4833, -73.5086, -127.95, -121.3333, 115.63, -117.1667, 152.3467, 145.0453, -114.1256, -91.1939, -92.1786, -122.8667, 55.783, -89.5158, -118.3575, -118.3481, 147.4075, 30.3, 27.4833, -57.6167, -57.6167, 26.33, -107.5217, -80.4333, -98.8, -3.6325, 8.8156, 26.97, -81.3358, -78.8, 139.5475, -79.5667, -97.3444, -113.7661, -102.2608, -72.9319, -88.2544, -73.1833, -91.1164, -79.4481, -73.15, -91.1253, -79.8333, -122.9333, -122.9167, -98.2339, -121.6547, 145.9431, -117.8525, -125.7667, -118.9564, -119.05, -123.8428, -57.3333, -122.8833, 148.5984, -109.2756, -109.6667, -110.3708, -107.6, 29.067, 136.033, -139.05, -99.1433, -71.4833, 129.033, -106.9597, 50.835, 50.85, -82.0894, 146.8983, 151.7642, 69.567, -5.0639, 28.25, 146.2808, -53.3167, -79.9164, -94.405, -106.95, -98.8511, -100.5847, -112.5006, -109.2, 18.53, -119.47, -1.9131, 47.12, 26.85, 62.467, 52.217, -104.1275, 7.8, 7.8117, 64.367, -119.4, -119.5333, -109.0667, 153.6358, 153.6361, -83.7453, 131.3, 113.517, -107.3078, 12.2, -116.0572, -105.7089, -121.05, -92.0064, -9.4, -77.73, -84.57, -68.2833, -75.6, -84.95, -109.9, 148.3842, -69.8833, -39.333, -78.3158, -57.683, -6.3392, -6.3667, -121.4167, -119.9817, -112.46, -100.0, -85.3967, -78.3833, -107.75, -6.2567, -80.9981, -109.73, -82.6256, -42.6167, 124.63, 55.4, 9.05, -90.1942, -92.25, -79.47, -79.27, 145.7, 145.7458, -85.7167, 145.7833, -81.1572, 31.6, -89.1856, -74.0331, -81.1667, 31.4, -78.52, 103.6, -1.3044, 27.3331, -120.3114, 88.333, 88.45, -46.38, -116.6833, -113.6333, -81.6, -91.5028, -86.7456, -114.0167, -114.0167, -114.3667, -89.3158, -84.9667, -82.5883, -92.3486, -92.1636, -114.5264, -92.5545, -92.4833, 140.2432, -122.6014, -76.383, -76.4, -122.8045, -122.7958, -113.7128, -103.66, -113.1833, -112.6667, -114.7275, -113.8667, 153.15, 19.767, -3.77, -77.51, -77.85, 151.865, -5.3167, -81.5794, -100.1433, -116.6753, -93.1264, -105.1333, -105.1333, -85.1833, -80.3167, -76.0667, -75.8417, -92.7667, -92.8236, -87.3167, -80.6564, 150.689, 28.7, -106.55, 8.669, -96.97, -103.4428, -100.4667, -111.4, -113.9167, -88.35, -49.5, -84.2036, -121.9667, -72.512, -63.567, 138.1214, -96.4092, -78.5, -85.3667, 150.8167, 169.167, -125.2667, -125.3167, -125.2333, -90.55, 11.7469, -47.133, -35.883, -116.4728, -86.15, 14.65, -41.33, -45.6, -51.2, -40.38, -102.555, -51.05, 8.803, -54.617, -52.367, -114.6833, -121.05, -120.2342, -107.5528, -103.9744, -158.2236, -109.4833, -120.8433, -117.35, -77.9461, -76.8667, -74.2, -100.0097, -112.8167, -112.8, -79.4167, -99.7008, -100.3883, 26.427, -115.8167, -80.6256, -77.2808, -78.933, -104.78, -38.95, 149.2014, 149.1167, 149.1, -96.2697, -91.05, -104.6822, -108.2667, -110.5294, -80.7667, 116.833, 33.617, -147.5147, -123.8853, -104.0658, -51.144, -74.3539, -105.2256, 148.6619, -67.4667, -96.28, -98.59, -76.8464, -96.5917, -82.85, -90.0361, -75.1097, -91.5158, -148.895, -101.9264, -109.8214, -109.7597, -122.1667, -98.1967, -121.0886, -109.5394, -111.7333, 123.9, -103.75, 106.25, -41.9, 18.5, 20.017, -125.2167, 136.5959, 136.5938, 147.1444, 147.1453, 8.167, 151.2333, 147.0167, 17.85, 131.7667, -76.5333, -76.5333, -76.5333, -61.3833, -61.6167, -89.5706, 144.69, -75.6219, 29.55, -66.8167, 109.75, 139.917, 115.1358, 122.9278, -166.1167, -166.1333, -74.9358, 8.167, 153.4661, -125.2, 115.0189, 141.5437, 141.5419, -162.15, -162.0667, 140.6725, 143.5128, 15.283, -124.7167, -53.0833, -166.05, -166.0333, -65.6167, -164.9333, 144.8858, -128.4333, 22.15, 24.833, -131.0167, -131.0167, 32.4, 18.48, 18.602, 155.4, 138.1327, -5.0, -116.92, -49.55, -105.5947, -79.109, -80.616, -81.254, -111.2622, -65.6833, -105.11, 9.72, 9.5167, 8.47, 9.6331, -52.95, -79.828, -97.77, 5.933, -64.2, 0.07, -74.574, -65.3167, 9.167, -66.4, -16.746, -66.9, -43.333, -85.8333, 22.25, -57.2167, -42.15, -39.25, -99.35, -89.1658, -43.0, 2.31, -134.7, 68.0, -3.1873, -3.35, -113.25, -111.9519, 146.0197, -111.9019, -59.62, -119.4667, -68.0172, 27.38, -76.2, -89.8703, -116.3175, -77.2167, -2.95, -104.2225, -104.4433, -104.2581, -117.2794, -106.5667, -102.2667, -104.3089, -89.3658, -136.3, -54.2667, -73.6833, -88.1805, -42.6, 115.8869, 22.0, 113.67, -125.0, -98.5794, -3.6331, -47.467, 30.12, -105.8667, -83.3919, -82.2194, -104.3789, -0.45, -56.031, -73.063, -99.1294, -99.1211, -105.8964, -99.8733, -94.85, -85.0806, -93.4886, -85.1456, -111.2833, 66.017, -101.5742, -119.7678, -121.9733, -75.5, -100.6742, -84.7925, -111.2192, -94.3397, -89.5389, -85.945, 10.227, -94.3047, -99.4167, -57.0333, -58.8167, -109.4122, -89.7, -91.1256, -113.3833, -7.58, -82.35, -111.7117, -111.5367, -110.4147, -107.8, -90.9983, -116.0481, -111.5772, -111.71, -122.0167, -122.4811, -92.4, -6.451, 110.517, -118.9297, 119.5686, -90.7783, 153.0493, -67.606, -106.2667, -106.3167, -106.4636, -97.2328, -129.8333, -96.6036, -93.8578, -94.6147, -95.8364, -58.65, 9.7356, -0.0714, -0.0406, 10.3944, 141.3339, 141.4133, -114.8661, -117.6333, -117.7667, 144.2392, -97.0261, -120.5667, -111.0125, -112.3617, -115.9167, -104.9058, -109.3986, -103.515, -50.0, -85.933, -47.95, -83.0956, -96.71, -65.752, -65.8, -65.73, -48.967, 15.05, -76.6167, -54.487, -99.6328, 124.63, 124.88, 29.23, -64.7606, 71.35, -119.495, -77.4831, -67.2333, -97.7014, -72.5989, -123.6422, -83.5328, -43.35, -51.2, -52.4, -66.1658, 105.15, -100.17, -109.25, -92.65, 25.92, -35.417, 123.9, -85.9333, -123.1392, -120.2833, -93.2844, 30.283, -107.9333, -85.2339, -128.3167, -120.1803, -99.7231, -101.0094, -112.9919, -113.0944, -113.0333, -76.3, -121.7561, -112.7764, -114.1658, -109.0828, -91.7167, -91.5881, -96.4631, 133.6976, 133.6725, -86.9, -98.96, 132.25, -85.4597, 41.05, -84.5364, -119.3833, 59.617, 10.0333, -82.1769, 86.0, 38.9, -106.1292, -94.1642, -82.6547, -95.9744, -92.89, -96.9033, -87.4261, -101.2119, -106.1444, -96.1258, -122.9528, 87.65, -144.7653, -98.0283, -89.0, -117.3167, -76.0667, -76.9, -67.7, -87.2383, -85.7333, 136.8192, -58.88, -58.983, 37.967, -61.95, 74.8, 31.3, 25.97, 56.133, -105.5956, -55.43, -66.562, -99.4, 40.2, 17.542, 12.307, 14.433, 26.3, 151.349, -1.83, -5.3456, -5.2892, -65.1, 35.8, 40.1, -104.65, 117.52, 127.88, 73.28, 63.17, -77.85, -77.8, -107.9106, -68.86, -103.0533, 60.6167, -111.25, 119.85, -108.0333, 102.0167, 65.3, 73.099, -111.0667, -111.0667, -79.5861, -77.3667, -114.2397, -106.5781, -99.312, -98.7467, -77.6394, -66.283, -106.65, -70.414, -87.9858, -90.71, -148.4925, -96.88, -111.6819, 128.3, 125.217, 111.683, 126.92, 127.25, 128.183, 123.97, 113.083, 112.867, 116.37, 128.573, 120.717, 24.0331, -102.33, 102.117, -95.4842, 76.6, 120.45, -43.35, 51.167, -74.85, -103.2, -114.47, -102.28, -52.617, -79.0794, -98.88, -83.35, -106.65, -172.25, 36.233, -97.4547, 118.2667, -69.6, -69.45, -101.12, -81.1833, 63.6, -93.2792, 4.45, -71.2667, -90.0681, -89.3536, -88.1653, -53.6667, -79.9319, -80.0403, -79.9333, -81.59, -85.7, -65.7833, -92.6717, -82.3569, 146.2558, -84.8258, -74.4233, -78.5225, -63.1333, -63.1333, -98.7494, -64.9333, -64.9667, -64.9, -78.6497, -80.9553, -80.85, -66.3333, -89.4819, -76.4333, 146.2708, 146.2614, 1.5031, 70.0, -78.4756, -93.5833, -74.2167, -1.417, 1.7167, 7.15, -71.0333, -79.4103, -69.9589, -65.4833, -86.9333, -86.9242, -176.567, -125.45, -82.2167, 75.8, -88.2503, -80.9, -76.2333, -98.6497, -85.2014, -99.11, 6.9878, -111.1167, -73.3953, -87.2217, 12.383, -84.4725, 128.18, 30.9, -105.2672, -105.2783, 8.121, -120.0006, 61.533, -72.45, -75.7833, 12.867, -121.7894, -121.8, -76.6833, -75.0833, 117.917, 104.017, 122.683, 105.75, -88.7108, 113.03, -66.6, -110.0, -79.8833, -1.4667, 56.52, 112.5, 25.9, 23.267, 126.0, 117.0, -95.5378, -98.4244, 91.7333, 91.73, -104.8319, -123.25, -76.8833, -74.7386, -119.9161, 161.283, 99.53, -119.0667, -121.2422, -110.9711, -90.7167, -90.7333, -113.7833, -76.0519, -75.2333, -75.2, -81.1958, -72.9833, -71.15, -60.95, -60.95, -88.327, -121.6333, -110.9153, -117.7408, -104.8061, -102.3508, -104.8056, 69.783, 98.983, 99.833, -92.75, 140.1, -74.4167, -74.5333, -87.7853, -87.7522, -87.7775, -87.9336, -87.6, -87.6333, -94.82, 139.067, 142.183, 142.2, -96.9717, -97.9158, -72.5333, -71.05, -121.8211, -119.6483, 12.533, -98.57, 3.83, 118.833, -106.083, -118.0303, -86.3431, -100.2831, -111.6981, 34.967, -72.0333, -83.0036, -93.55, -121.9167, -121.8667, -121.7, -121.9667, -113.8289, -121.9953, -121.8936, -84.173, -99.5, -88.1469, 69.6, 66.2, 33.467, -87.1333, 81.182, -117.6931, -75.5833, 106.767, -108.53, 128.1, -109.2256, -112.4567, 26.1331, 32.616, -85.5503, -81.9361, -109.3572, 25.333, -103.3003, 113.4831, 76.433, 91.83, 98.6, -4.1474, 114.55, -104.4833, 108.217, -108.283, 17.55, -98.2525, 147.8831, 102.1667, 77.07, -87.15, 128.15, 73.75, 129.817, 126.88, 127.43, 106.467, 106.483, 127.15, 100.983, 19.6, 30.233, 32.7, 25.8, 140.85, -112.1919, 172.532, -64.8056, -64.7014, -157.4833, 105.683, -104.8222, -117.0858, -149.9061, 99.183, 116.92, 127.733, 126.883, 128.43, 128.0, 9.53, 13.615, -94.0667, -94.0667, -64.1, -64.1, -64.1, -94.0667, -110.0856, -1.2, -72.45, -71.8667, -75.25, 151.8333, 101.517, 32.667, 34.4, 73.967, -104.4833, 32.9, -95.38, 66.75, 109.017, 109.0, -3.3, -100.3456, -107.5592, -104.9456, 59.8167, 42.12, -84.5167, -84.6961, -84.4189, -84.6717, -84.5167, -122.1067, -38.517, -67.98, -105.595, -112.2786, -82.9547, -105.0, 108.267, 62.9, -63.537, -111.7, -105.43, -54.6, -108.52, -103.467, -104.93, -109.933, -3.9194, -99.133, 42.2, 130.9, -121.75, -86.6522, 18.87, -117.7167, -95.5808, -8.9833, -65.1667, -91.2208, -100.8903, -53.9667, -113.7167, 138.6125, -95.0192, -93.7336, -79.4361, -97.7325, -66.6333, -80.3522, -90.5572, -97.1256, -93.45, -95.0717, -76.9286, -93.4036, -87.3353, -82.1897, -109.1375, 12.2406, -123.2058, -101.3619, 10.3481, -81.9008, -109.1, -85.45, -83.3967, -69.5231, -69.5333, -103.1539, -78.4633, -97.1275, -98.0536, -110.3167, -122.3292, -119.4833, -122.5672, -106.4472, -124.2922, -120.0333, -115.25, -145.5167, -120.1167, -90.7756, -111.2833, -111.2667, -96.6872, -121.7167, -112.6167, -97.4061, -65.5667, -82.8236, -81.3483, -78.5333, -81.7233, 3.1, 147.6425, 6.02, 136.4937, -95.0839, -90.7444, -96.4667, -81.86, -90.7128, -96.5369, -109.0667, -84.7981, -80.94, -120.9131, -108.5047, -109.3072, -106.1897, -105.5872, -98.9772, -93.7711, -71.6833, -88.7483, -90.2639, -78.2758, -90.9733, -121.5, -95.3397, -120.8, 140.505, -7.2333, -92.5253, -105.7353, -105.75, -107.0667, -123.0175, -123.8925, -111.85, -114.9697, -103.1992, -103.2161, -103.3167, -123.5333, -109.5167, 23.7, 23.5667, -68.5167, -68.5167, -68.5167, -120.3606, -111.3983, -111.1472, -105.3847, -127.5, -63.133, -75.8333, -75.86, -71.8, -94.417, -114.2333, -90.3, 145.7964, 145.8294, -68.78, -74.4833, -74.4333, -78.1833, 10.983, -66.18, -106.7611, -106.3322, -81.0333, 123.5942, 9.6, 96.833, -62.083, -89.5333, -88.2269, -106.3667, 12.0978, -109.045, -108.9006, -109.3914, 143.1183, 143.1178, -57.33, -116.7967, -116.8167, -120.62, 153.1187, -0.32, -106.6167, -116.4917, 77.05, -8.4167, 143.5961, 143.5848, -101.0689, -78.6831, -95.15, -99.3289, -84.9925, -79.5333, -162.7325, -115.5833, -110.2833, -109.45, -122.1833, -120.13, -71.54, -99.4339, 8.4667, -114.5833, -66.2, -65.8167, -93.0833, -120.9481, -117.35, -97.6561, -121.6056, -44.25, -53.55, 148.5818, -107.9631, -62.0167, -94.3919, -147.8803, -147.8483, -76.95, -96.3647, -89.5572, 147.8464, -103.7, -3.7642, -93.3189, 79.867, -57.9, -76.9628, -106.417, -105.7667, -104.1533, -112.9719, -108.7339, -104.6883, -103.267, -84.7664, -106.6336, 1.35, -89.8361, -81.1186, -76.2667, -78.15, -87.0864, -98.3, -85.4897, -92.2183, -81.0167, -106.6, -108.3833, -96.5731, -107.6389, -88.3847, -94.8397, -85.9228, -109.2675, -97.3278, -88.3667, -88.45, -91.3611, -84.9422, -82.8833, -82.8808, -82.9333, -83.1167, -82.92, -122.0269, -117.8, -117.8833, 7.1667, -99.13, -77.598, -77.6167, -113.4, 39.733, -116.175, -54.0, -54.8833, 91.18, -92.133, -83.4894, -57.997, -67.5, -124.9, -125.0333, -99.2372, -13.62, -58.23, -49.2, -49.28, -43.433, -73.03, -57.417, -62.1, -57.3, -94.6833, -104.1906, -80.8833, -119.7492, -80.5833, -71.535, -58.03, -97.6508, -71.5011, -121.7422, -86.3833, 147.2283, 147.1524, 147.15, -120.1817, -79.3664, -0.167, -73.9256, -80.2833, -114.2167, -118.8828, -76.1756, -111.9614, -95.4831, 28.63, 6.62, -70.73, -109.4833, -114.7528, -107.525, -111.55, -110.3667, -93.7, -79.0558, -92.4294, 134.7564, 130.4136, -85.5033, -109.9819, -71.6333, -79.7, 145.1861, 145.25, -93.0667, -91.4333, 153.5053, 153.5036, -115.3, 149.1243, -124.4333, 149.2714, 148.3806, 140.8333, 140.8254, -74.9267, -98.0381, -76.85, -79.7719, -149.6661, -149.968, -124.2661, 148.05, 148.0236, -73.5522, -105.5667, -80.1167, -101.2842, -84.3758, -115.1167, -113.8333, -99.743, -112.7333, -87.8672, -106.1667, -124.2025, -103.81, -71.367, -122.8, -109.9958, -83.3667, -77.3747, -114.65, -119.5817, -42.36, -83.7747, -112.165, -64.217, -4.8458, -64.183, -123.3667, -145.4511, -145.7531, 19.9167, -69.2417, -112.1106, -88.6178, -8.491, 27.8, -57.4, -83.5286, -87.3, -57.95, -90.5858, -94.7492, -105.47, -73.2106, -74.75, -74.8, 120.2, -117.55, -105.5167, -105.4833, -110.2542, -109.15, -111.45, -111.45, -70.276, -74.204, -43.26, -61.883, 146.3574, -66.3592, -97.5108, -97.4, -97.2833, -97.5056, -106.595, -115.5333, -121.4667, -44.61, -58.762, 117.8733, -79.6333, 147.8956, -96.4867, -125.0333, -108.595, 12.15, -76.1833, -81.2711, 34.95, -57.5, -57.7, -123.2569, -123.19, -123.4575, -31.12, -93.4833, -106.68, -97.03, -81.7908, -81.8711, -101.7833, -74.1667, 7.216, 2.38, -78.55, -123.0275, -123.0578, 14.3183, 11.1692, -0.65, -92.4533, -101.8606, -116.3919, -110.8167, -96.5483, -109.5811, -111.7869, -93.4569, -70.15, -99.2183, -91.4594, -78.0667, -122.2042, -121.6333, -123.1172, -118.9997, -110.5667, -116.4325, -96.5097, -118.5333, -122.6914, -125.0, -124.9833, -125.0333, -97.8956, -82.45, -105.8833, -117.8, -123.2444, -72.35, -117.7903, -112.5833, -83.8436, -89.7, -90.1114, -87.45, -79.9883, -100.65, -83.4314, -123.55, -124.1333, 148.6497, 148.6534, 148.7071, -107.5819, -57.7833, 91.964, -95.02, -72.0333, -114.7583, -101.06, -96.71, -115.65, 15.133, -112.0, -84.4375, 25.62, -2.2, -116.4833, -112.2833, -107.5894, 10.0992, 23.87, -115.7833, -115.7667, -115.5167, -115.75, -102.3578, -86.835, -74.3231, -113.5581, -122.1328, -115.2833, -40.667, -103.4167, -86.8011, -86.8997, -123.6036, -107.63, -107.1333, -97.9047, -124.2147, -102.4372, -92.0939, -76.85, 147.0794, 147.0811, -106.9769, -81.2728, -114.1342, -116.5167, -105.6897, -94.3942, -116.5333, -86.5225, -96.8719, 14.7, -105.1797, -75.8667, -83.9408, -120.7333, -70.08, -88.1919, 21.95, 15.2, -95.4508, -97.4969, 152.87, -81.3333, -96.6028, -103.2936, -101.245, -107.05, -91.9481, -103.3403, -85.1314, -85.0814, -83.1053, -113.9167, -98.0333, -85.0142, 17.07, -92.3478, -112.3453, -60.833, -107.45, -118.95, 142.2447, -77.8769, -36.58, -53.6, -39.08, -99.8311, -79.8667, -88.2333, -113.16, -109.5, -90.3775, -90.3167, -120.3667, -104.76, -102.07, -106.87, -98.95, -106.9703, -107.5178, 120.2667, -72.52, 79.767, 117.8994, -2.1381, -103.67, -99.233, -99.25, -97.3433, 133.867, -56.117, -56.1, -96.86, -100.8292, -104.5089, -5.25, -105.2, -107.4, -80.85, -83.1747, 124.8667, 50.4, -77.9833, -121.9833, -118.4139, 80.967, -83.0, -92.0222, -78.7561, -106.45, 135.317, -72.9333, 32.8, -102.58, 117.2331, 7.54, 145.6808, 24.4331, -104.2667, 21.3667, -103.05, 132.6, -71.233, -49.267, -49.167, -111.1, -115.4128, -114.75, 143.8486, 131.7571, -100.4936, 106.65, -44.45, -96.7758, -123.16, -103.6119, -84.7931, -112.0558, 85.933, -112.3753, 8.7067, -116.5872, -72.0, -71.95, -3.802, 123.0086, -84.3031, -109.4667, -99.0833, 19.1, -89.9328, 104.579, 121.883, 122.98, -119.8914, 120.35, -105.0333, -83.99, -94.7225, -123.1333, -17.43, -17.5, -15.931, 29.0, -113.95, 28.78, 104.417, -13.5831, 151.2639, -77.1133, -78.9353, -5.15, -102.6133, -102.55, -74.4667, -74.4667, 100.18, 121.633, -123.2911, -84.7475, -97.0189, -96.9667, -96.8556, 133.733, -6.473, -84.8872, -102.9661, -89.2028, 84.067, 69.3, 116.6714, 116.6619, -113.85, -122.05, 133.37, 64.4, -77.2333, 36.516, 34.337, 116.7483, 108.199, 16.54, -105.7667, -80.1789, -73.4167, -92.3736, 124.333, -96.2319, 69.317, -57.5833, -111.25, -110.1272, 125.028, 44.117, -18.67, -73.7206, -117.3389, -77.7178, -77.7133, -79.3886, -84.7708, -87.6483, -71.9833, -82.3039, 109.58, 100.3, 0.25, 85.9, -114.1764, -93.1675, -120.1833, 62.283, 39.5, 88.27, 99.65, -79.8767, -90.1064, 8.6775, -1.4106, 148.033, -121.6036, 147.4984, -10.85, 17.23, 130.8925, 130.8844, -110.1631, 39.2, 39.3, 59.8, 114.4, -81.6167, -113.4981, 113.333, 26.617, -100.05, -100.05, -88.0775, 106.8, 125.6, -72.2, -118.1614, -90.5667, -90.5667, -105.9833, -97.1328, 77.95, -77.1833, -121.7761, -110.8833, 9.85, -139.1333, -120.1833, 101.12, -81.0483, -87.65, -118.0022, -84.9947, -84.2186, -84.1911, -119.6447, 108.2, 95.367, 107.5, -148.4772, -105.7667, -103.7314, -115.5667, -115.5667, -118.9433, -107.3786, -105.9, -122.3167, 147.3153, -83.2378, -130.0167, -130.0333, -116.8669, -108.5931, 38.4, -63.4167, 53.82, 21.615, 21.6, 37.667, -88.8656, -88.9506, 66.5, 8.972, -91.7953, 3.483, 5.8878, -94.3872, -117.9803, -93.2044, -103.7858, -103.9, -71.8678, -98.3167, -111.5289, -120.8333, -83.2128, -116.7475, -57.4333, -57.4, -112.7975, -117.6103, -118.05, -112.0833, -115.2711, -84.3847, 98.57, 9.4117, 70.2, 35.6167, 40.176, -94.6175, -81.3106, -93.7903, 25.28, -83.0739, -104.0167, -74.9128, -80.55, 97.37, -105.2369, 28.68, -100.5, -86.6661, 16.55, -108.0783, -112.5858, -123.0833, -98.3833, -123.1, -112.7886, -106.3083, -100.9269, -100.7833, -107.7531, -61.1833, -107.7206, 22.25, 69.283, -87.88, -120.7833, 67.9, 95.6, 144.952, -118.6336, -95.3289, -96.5667, -121.0333, 29.083, 117.37, -81.3436, -81.35, 115.167, -109.9372, -75.8, -97.105, -104.8489, -104.8694, -104.9833, -109.5833, 1.7217, -75.4264, 139.6697, 98.883, 99.38, -94.3481, 70.92, 48.3, 123.6611, -91.385, 22.66, -119.9333, -7.2581, -79.3333, 58.4833, -117.5844, -71.9167, -112.6519, -113.75, -115.36, -116.1594, 39.7, -91.4978, -103.8333, -93.6531, -83.9014, -83.01, -122.2547, -95.8372, -83.3308, -83.5333, 4.4667, 7.05, 22.9, -75.55, 35.5, -81.1292, -98.9, -98.8681, -104.7147, -107.3047, 146.3817, -71.1667, -109.2997, -89.9667, 48.3833, 116.37, 24.017, 5.1867, -86.0939, 30.17, -88.7756, 4.7808, -93.4692, -93.2869, -121.6108, -97.5606, 50.15, 87.35, -121.1431, -43.64, -56.45, -122.1333, -109.2428, -76.2, -116.0494, 95.017, -102.8111, -102.8414, -87.3958, -114.2167, -70.181, 72.4, 49.18, 119.3031, 8.341, 23.17, 10.6742, 12.627, 9.2081, 12.0864, 11.0431, -65.7667, -65.7833, 4.93, 15.99, 16.04, 26.87, 80.4, -105.0569, -111.4667, 8.2631, -99.1833, 10.4994, -105.1175, -158.5167, -112.6447, 125.5667, -79.3564, -106.0353, -112.5545, -4.7, 22.75, -102.312, 88.68, -58.85, 30.2, 122.117, -108.9719, -109.3045, -107.3333, -16.233, 41.85, -118.2, -71.3167, -108.9133, 19.71, -112.05, -112.7547, -107.1667, 43.35, 38.1, 44.98, -115.4606, -89.5136, -88.6678, -84.7078, 40.201, 81.0, 14.8, 14.77, 9.47, 3.25, 10.6, 10.77, 43.15, 11.93, 34.967, -66.1333, 12.217, -121.2011, -73.8344, 13.583, -91.5511, -90.1161, -99.9683, -105.5194, 35.767, 10.35, 44.1, 51.565, 27.467, 27.75, 159.07, 142.8, 12.67, -114.6667, 75.767, -57.733, 59.65, 5.65, 123.0, -120.9833, -107.3, 142.9709, -91.0278, 8.5056, -79.4058, 37.767, 108.617, 30.483, 109.98, 120.283, 106.6, -90.8125, 16.42, -111.4667, -71.7333, -120.2331, 115.8247, -79.8694, 10.5012, 100.6, 126.3114, -92.2192, -123.9956, -122.9631, -0.05, -0.033, -88.5167, -80.6667, -73.075, -78.9333, 7.5353, 36.2, -66.6667, -92.83, -85.4497, 9.72, -105.4017, 153.1906, -109.5394, -82.8206, -109.6061, -105.3667, -120.1031, -120.2, 4.5978, 147.0075, -75.5056, -87.8628, -75.4667, -69.1839, -86.1319, -106.4517, -120.8239, -74.9828, -120.1044, -59.25, -120.0828, -120.1056, 15.97, 22.45, -123.3275, -100.3667, -100.31, -111.8997, -88.7064, -82.1833, 13.767, 13.6831, 12.0481, -118.3775, -111.1125, -97.9822, 22.6331, 23.517, -91.2667, -72.4833, -113.1761, -76.25, -134.3833, 33.95, 145.3, -128.1167, -102.1167, -92.8333, -92.75, -111.5333, -119.1167, -118.5333, -120.5333, -106.7833, -106.7808, -82.8736, -70.584, 55.364, 148.6089, -71.3, -82.9036, -98.3047, -6.3192, -109.6553, -112.2006, -78.8989, -86.6983, 18.27, -90.6461, -90.7036, -71.65, -110.395, -115.6361, 86.17, -121.1303, -119.0147, -96.8167, -112.9217, -75.0833, 6.7031, 70.07, 54.6, 135.933, 98.1, -107.0, -104.9614, -92.2097, -92.0903, -92.2108, -92.1833, -91.5317, -101.9725, -3.65, 87.25, 140.017, -2.5258, -84.2333, -109.1214, -97.9592, -123.6833, -123.7333, -116.9667, -79.8833, -6.35, -68.8, 20.82, -106.5, 170.1, 170.52, 149.3964, 128.2, 94.683, 16.91, 2.33, -82.4047, -79.6167, -78.6881, -102.5869, -122.2736, -71.5167, -5.4386, -119.85, 124.6, 116.467, -79.2667, -101.605, -101.4672, -112.75, -107.8833, -96.3686, -56.5, 30.951, 144.2078, -78.9625, -70.95, -80.8167, -1.5846, -72.35, 28.6, 107.55, 68.8, 6.77, -166.5433, -104.8667, -103.9, 57.9, 31.2, -89.1931, 42.717, 69.0833, 116.0594, -78.9, -116.3217, -2.198, -118.0106, -89.41, 123.9, 113.97, 134.5, 63.333, 34.4, 141.3, 45.281, 124.0, 95.217, 72.95, 52.567, 72.45, 73.1, 121.77, 67.8, 64.083, -88.53, 67.833, 139.833, 138.733, 70.897, -102.7769, -141.2036, -76.5833, -119.2167, -106.9167, -115.4508, -97.4497, -105.2628, -100.4792, -149.44, -79.85, -93.2167, -108.8167, -108.9833, -84.3333, -98.8175, -106.1833, -78.5167, -83.2058, -66.9919, -112.9167, -71.6667, -62.1667, 1.0267, -72.1269, -113.2239, -111.9167, -71.5, -70.7539, -84.6892, -74.1433, -85.1322, -84.485, 27.833, 27.8, -122.5178, -61.9833, -110.2, 147.1322, 147.1317, -123.6333, -83.5036, -70.6697, -109.5167, -84.6336, -71.4333, -91.5, -86.243, -91.4878, -119.8, -78.7289, 8.9792, 9.5339, 11.9883, 10.5003, -105.8992, -105.8461, -111.435, -120.0667, -120.0333, 6.45, 144.7642, 1.332, -114.3833, -62.1833, 148.3467, -61.25, -99.8494, -76.5517, 12.87, -70.5181, -98.7661, -103.8778, -103.9172, -94.6328, -89.3367, 138.6222, -3.35, 26.567, -80.2947, 137.7395, -113.5, -113.5167, -113.5167, -113.5167, -113.5833, -113.5167, -113.4667, -114.1167, -113.75, -98.4714, -68.1833, -98.8578, 27.0, 15.84, -116.4667, -116.4667, -116.4667, -87.2333, 32.333, 3.5619, 6.5844, 6.5756, -88.6244, -79.7833, -127.8333, -14.4, 11.2667, -179.1, 8.9131, -114.4706, 11.2358, 6.8605, -147.1, -118.1167, 7.5967, 9.8881, 5.3767, -69.86, -77.2292, 16.53, -101.08, 101.067, -104.5461, 60.6331, 130.9667, 14.76, 57.767, 132.983, -149.1667, 135.88, 174.167, 41.7667, 34.95, 39.291, -104.55, -111.95, -82.855, 37.2, 19.433, -106.6, -95.8756, -114.7, -59.38, -92.5808, -93.0972, -100.7, -94.0156, 35.267, 35.239, 38.517, -120.6706, -111.2128, -122.0333, -107.1842, 64.0697, -136.3436, -97.3683, -114.5411, -98.0747, -88.2861, -117.9239, -114.5, 26.567, -103.6572, 44.3, -92.7833, -90.2269, -82.2325, -73.5986, -78.6481, -85.8761, -76.205, -76.175, -105.3381, -91.4536, -114.9167, -101.8867, -109.75, -101.2, -79.8528, -115.1167, -115.7886, -123.5992, -123.6306, -77.7667, -116.1167, -115.4611, -99.5064, -95.7769, -112.8667, -106.4136, -111.0667, -106.9667, -116.1797, -98.5261, -120.54, -63.9167, -113.55, 145.9347, 133.5407, 145.7725, -82.65, -99.5647, 134.888, -98.225, -68.4333, -102.2133, -92.4586, -103.1, 10.1317, -123.4008, 29.9, -149.8, -76.8358, -76.8919, -119.75, -98.0167, -102.4683, -80.4167, -80.4167, -80.4167, -111.5186, 9.017, -108.0333, -135.4833, -90.7847, 6.5653, 6.1831, 18.83, -117.3319, -100.0167, -100.0106, -119.1561, -123.5906, -85.8453, -82.0558, -114.8361, -114.8467, 8.1094, 23.92, -111.05, -68.1, -68.192, -113.42, 33.836, -99.13, 1.0, -93.15, -116.9281, -106.28, -116.815, -76.641, -115.5617, -84.22, -91.1, -99.25, -108.0167, -96.8444, -88.6333, -92.8142, -75.766, 25.333, -108.62, 2.8667, 8.45, 0.067, -98.95, -117.6303, -108.3492, -109.63, 30.233, 30.2, -110.72, 6.12, -97.2, -106.5, -106.3708, -105.9608, -106.3758, -111.12, -110.98, -104.07, -90.5, -104.73, -111.71, -98.9, -97.9553, -106.1878, -99.35, -99.43, -105.37, -103.18, -103.23, -69.03, 46.9, -117.7333, -63.171, -105.36, -106.73, -79.59, -108.3906, 6.5, 37.45, 7.2267, 7.2, 41.8, 103.33, 29.95, 148.1617, -97.2, -116.3022, -118.45, -111.5667, 31.2, -1.667, 7.8356, -94.6833, -116.4664, -77.2914, -75.0106, -95.7797, -93.8333, -110.767, -77.5597, -96.2189, -96.1897, -78.2275, -110.0, 115.0414, -106.6167, -55.9, -99.3847, -52.51, -119.15, -97.6383, -101.5147, -76.0878, 115.2722, 8.4167, 7.4256, 8.7681, -86.4683, -77.2833, -97.8747, -97.9167, 92.15, 173.33, 14.283, -100.8833, -111.7111, 20.783, 23.5803, 23.3392, -72.8083, -116.633, 109.467, -117.1528, -117.2667, -85.8997, -113.6556, -117.2972, -120.3228, -117.7, -123.8167, -114.9833, 7.55, -95.0, 28.433, -111.5992, -76.1667, -119.5153, -71.0839, 8.9175, -91.5667, -126.2833, 58.6, 108.0167, 43.4, 34.3, 101.383, 115.367, 104.1, 31.4, 112.0, 9.3169, 10.9631, 39.8, -99.8628, -98.8239, -80.1825, 12.42, 12.42, 9.5403, 92.417, 132.1283, -74.781, -108.2, 121.933, -4.4, 146.1089, 102.3, 48.35, -82.4261, 95.12, 39.527, 41.17, 140.117, -111.5978, -87.0939, -90.75, 7.6617, 10.065, -117.09, 53.6331, 7.6092, 51.6667, 51.862, 31.47, 66.333, -113.9533, -3.2, 16.46, 30.53, -96.1058, 8.1569, -106.0589, 121.8925, 121.7828, -42.25, -42.8, 24.7442, -71.15, -9.682, -79.8167, 102.37, 6.967, -83.845, -74.2858, -73.1153, 6.23, 158.7, -122.3186, -106.0344, 29.87, -105.3611, -105.4858, -102.9667, -126.55, -126.55, -94.7472, -56.52, -108.7667, -0.621, 175.62, -129.6833, -104.9, 128.8792, -91.2628, 139.0847, -95.5903, -85.09, -123.2206, -92.4303, -89.2358, 21.6331, -115.9622, -112.1167, -99.6353, -85.9333, -96.2644, -118.7333, -115.0644, -93.7917, -124.1603, -70.4825, 10.5878, -75.1, -110.9508, -87.5783, -87.5206, -98.1619, -85.2667, -92.5303, -91.6169, 16.5692, 11.143, -78.3653, -122.195, -81.3897, -86.9533, -105.315, -1.5739, -7.9, -7.9, -98.3417, -103.37, -81.5, -3.42, -84.2842, -56.6, 126.3008, -111.0, 0.35, 11.8858, 10.53, 24.933, 12.81, 9.233, 56.483, 6.95, 48.28, -147.615, -147.8739, -147.8761, -97.1669, -117.65, -90.9667, -122.0678, -84.5894, -112.0944, -91.9553, -103.2247, -111.9855, -96.2078, -114.75, -88.3264, -114.79, -87.8808, -118.4297, -80.1333, -97.5928, -94.4656, -118.3833, -1.633, -102.0367, 13.37, -99.1372, -95.3667, -98.1203, 12.48, -119.4, 13.54, -86.8833, 20.77, -118.7811, -118.7167, -123.4308, -95.5919, -73.3667, -119.0333, -96.0781, -84.3283, 12.82, 15.6167, -65.42, 5.3533, 110.77, -159.38, -64.4, 47.821, -153.6206, -82.3606, -96.8111, -93.2661, -88.7075, -90.4103, -111.8, -64.6667, -70.1567, -111.9353, -93.17, -108.3086, -108.2292, -85.1483, -78.3864, -72.9, -105.0, -7.966, 19.16, 89.85, -133.3667, -80.5167, -109.4453, 22.75, 48.315, -3.7689, 53.7167, 10.1833, 102.339, -99.1342, -118.0667, 25.32, 15.3038, -116.1, -87.8214, -91.8158, -94.1694, -94.1744, -78.8583, -78.8803, -86.5411, -86.7167, -107.8639, -104.3, 72.22, -81.5389, 8.0044, 9.6, 11.9014, -87.9, -88.05, -102.72, -108.6764, 109.5, 116.63, -115.5356, -103.0667, 35.3831, 71.75, -96.1172, -80.3333, -70.8333, -75.45, -67.0833, -81.4525, -32.417, -115.0667, -123.3703, 11.6208, -58.4, -96.6608, -111.1325, -101.45, -99.6219, -90.3981, 27.85, 29.1, 10.35, 13.717, 47.112, 12.9553, 11.8392, -85.4167, -2.583, -112.3278, 17.91, -83.6686, -83.6622, 147.9664, 30.15, 134.5667, 15.47, -1.0, 15.6098, 11.25, 11.3742, -120.1075, -71.2906, -97.5333, -109.95, -118.6333, -116.0669, -119.1783, -115.875, -121.0667, -122.4167, -119.6519, -113.3978, 5.5817, -83.2517, 125.5644, 146.0033, -133.6167, -113.8333, -120.1561, -110.4667, 47.15, 12.22, -103.0614, -111.7311, -111.675, -111.6664, 14.15, -80.9144, -109.4117, -96.5928, -97.0644, 13.1153, -110.6, -113.85, -108.3725, -81.0925, -74.8811, 9.4192, -82.4833, -82.5575, -73.0, 148.0024, -89.6833, -83.7494, -112.1833, -101.6833, -101.8833, -101.6833, 12.0125, -92.87, -36.81, -88.5758, -111.3881, -96.9242, 11.2, -79.74, -79.7239, 4.6608, -31.131, -44.41, -98.1628, -43.017, -48.567, -107.4833, 21.4, 28.8, 12.3506, 12.27, -56.6833, -101.3339, -80.2908, 9.849, 113.53, 15.72, -54.2667, 9.2831, -80.7833, 16.3097, -82.1278, -100.1369, 14.43, -121.1667, -88.4533, 9.25, 10.5142, -117.5167, -64.65, -110.0564, -66.167, 148.0081, 5.85, -114.85, -88.1, -92.3989, -79.5144, -111.45, -89.4208, -98.0833, -112.1167, -69.0833, -93.6306, -81.9311, -123.3333, -123.1025, -92.9125, -71.15, -124.3539, -107.4536, 12.0556, -97.595, -58.228, -47.33, -46.25, 128.1092, 128.1139, 16.9897, -106.6744, -83.9417, -38.6, 113.5333, 146.265, -72.05, -114.8997, 7.7005, -103.8056, -81.6667, -114.9167, -114.9167, -111.1167, -80.7694, -78.9667, -93.4167, -93.4333, -124.5833, -128.65, -12.7, -106.1614, -110.3442, 32.65, -123.4667, -113.4, -111.2167, -111.2167, -111.2167, -134.8667, -122.6, -122.6, -117.6667, -109.1667, -113.6833, -120.8417, 69.5, -113.1833, 50.25, -98.3833, -121.2333, -121.2333, -111.9333, -111.8667, -111.9667, -124.2833, -124.25, -120.7333, -116.0333, -145.2655, -120.2175, -95.7244, -122.6728, -2.067, -85.4167, -93.3, -111.7131, -122.2167, -98.8392, -92.2875, -105.1167, -101.5697, -63.7833, -119.5681, -54.58, -71.4167, 9.4558, -70.8333, -47.433, 13.4, -103.9167, -104.46, -93.341, 27.5, -75.7278, -86.21, -86.5067, -84.8825, 28.5, 8.6756, 14.5378, -96.4889, -83.3928, -84.3189, -98.9667, -79.8306, -90.18, -78.4633, -79.3092, -91.5442, -111.6, -73.9, -71.6536, -86.8686, 8.0592, 16.21, -105.8172, 21.517, -97.2167, -135.05, -124.85, -99.02, -98.9089, -77.45, -90.3086, -82.5333, -77.4389, -66.5333, -66.6167, -95.8328, -79.312, 18.42, 18.37, 14.4, -99.1128, -91.7028, -74.2511, -75.9, -87.3083, -78.7, -95.3808, -89.6039, -98.6175, -13.22, 7.9342, 7.85, 9.2494, 14.5, -83.1189, -96.4669, -121.2122, -112.3347, -106.2, -80.0167, -119.7194, 8.41, -119.7072, -102.7231, -87.4203, -108.9333, 9.283, -68.6, 148.84, -112.2, 43.7, -108.5667, 12.733, 13.28, 13.07, 14.49, -78.9358, 23.995, -108.7331, -108.3483, -48.93, -111.85, 9.12, 9.27, -109.8014, -88.8589, -108.1514, -85.0, -110.6608, -120.1575, -123.7567, -78.9333, -87.4833, -104.7639, -105.0858, -103.8869, -94.2006, -109.8611, -85.05, -112.4133, -105.7414, -122.8478, -68.6136, -80.2011, -80.1536, -108.0514, -91.3339, -103.4775, -103.8156, -81.8614, -81.755, -106.4117, -80.3508, -100.6592, -93.1833, -96.7667, -123.2447, -94.7086, -94.4, -94.3625, -94.15, -115.4667, -81.6289, -102.9153, -100.4333, -104.2319, -99.535, -109.9855, -111.7428, -85.2167, -85.2064, -97.3614, -97.45, -100.6667, -145.2342, -175.15, 16.7481, 120.2, -13.8631, 20.155, 131.983, 138.436, 139.933, 128.833, 136.217, 130.383, 140.433, 133.25, 9.65, -98.4, -91.9414, -88.4569, -90.1544, 179.2, 179.217, -16.8997, -16.767, 11.2667, 21.23, 137.05, 127.75, -178.117, 121.65, 115.83, 89.517, 119.283, -0.667, 10.1, 25.917, 149.9158, -123.7333, -99.1383, 75.633, 14.1594, -85.9878, 8.823, -108.0867, -66.15, -99.7689, -5.95, -6.0, -68.1333, -101.4539, -83.86, -82.3667, -97.0592, -88.1342, -82.2756, 122.15, 54.35, -145.3, 28.02, -80.9139, -107.63, -43.244, -93.4661, -114.6667, -156.8756, -114.7167, -90.3856, 135.5648, -58.2333, -111.2833, -105.55, 80.2, -90.3072, -82.1822, 20.65, -108.7939, 67.58, -23.5667, 10.1858, 100.133, -90.035, -94.8, -94.8592, -9.02, -171.75, -54.2167, 15.87, 15.85, -109.5661, 46.4167, -54.5667, -54.4833, -54.5833, -54.5667, 26.433, 100.133, -123.5, 128.868, -77.4, -99.0719, 119.133, 115.0, -0.005, -3.18, 112.47, 129.067, -36.517, 11.4, -101.4814, -100.8122, -100.7247, -115.9694, 11.0803, -69.7889, -110.7036, -124.1217, -112.1975, -113.9333, 62.333, 13.583, 39.633, 69.95, 11.067, 12.16, -95.2178, -55.3667, 13.37, -85.1197, -114.0333, -101.4197, -71.3833, -81.55, 100.0, 53.97, -105.4481, 115.21, -64.4833, -64.4833, -80.7672, 43.767, -81.1433, -111.7792, -107.5133, -100.0569, -100.2667, -97.7019, -122.5167, -108.9722, -79.9542, -83.5369, 152.3289, 91.583, 7.2888, 45.1331, -97.4733, -70.7, 17.17, 17.16, 179.1, 3.45, -94.2208, -84.7114, 151.6094, -90.8486, 29.867, 55.517, 37.37, 32.3, 18.4667, 18.6, 27.8, -98.3217, -88.4333, 35.4, 29.4, 144.3356, 146.9172, 146.9197, 8.2015, 7.95, 11.433, 38.017, 143.539, -112.1833, 36.05, 29.67, 20.02, 20.6, 12.65, -66.844, -62.73, -64.6, -72.031, -99.18, -101.47, -63.794, -64.689, -99.75, -57.63, -63.758, -90.1486, -97.5964, 13.03, -85.8708, -77.0308, -111.7333, 6.1331, 6.15, 22.45, -97.7644, -91.2294, 8.93, 12.167, -78.489, 125.183, 22.4, -58.25, -58.15, -97.6833, -96.7758, -79.2239, -75.45, -14.77, -97.7172, 143.55, 143.5483, -120.8008, -79.8833, -72.2333, 22.383, -110.2669, -86.95, -86.9333, 114.6975, 12.13, -121.1389, -119.3514, -124.7, -88.1222, 11.1331, 8.5306, -60.6667, -77.2333, -99.9403, -100.2175, 101.483, -114.6361, 9.715, 21.65, 3.8, 50.047, 10.268, 35.467, -114.9333, 0.147, -113.9275, -115.2111, 18.075, -5.35, -123.5167, -123.5333, -88.3653, -112.7536, 8.6506, 136.767, 41.35, 24.533, -5.6417, -5.6983, -112.7131, -108.2075, -92.7161, -88.2678, -100.4667, -110.3022, 128.28, 128.301, -94.7, -94.7, -94.7167, -105.7167, -105.4919, -105.5419, -95.0497, -121.5608, 9.0503, 4.9353, -97.0167, -97.05, -97.05, 16.93, -94.8392, -74.8, 38.383, 2.7631, 177.983, -111.1667, 42.5, 8.45, 20.15, -95.85, -135.8692, -117.7, -117.5167, -121.9372, -97.8, 151.2628, -99.0167, -84.4908, -79.7172, -101.81, -81.2, 13.05, 9.06, -85.9072, -106.6213, -75.0953, 52.583, -56.5, -113.05, 15.7081, -9.7167, -99.3333, -119.9411, -76.5, -104.7183, -114.5167, -9.5458, -73.9333, -97.1167, -4.1858, 153.0, -145.5328, -115.3231, -118.7006, -81.9522, -76.8042, -122.1383, -105.8167, -73.6167, -73.6781, -8.2858, -87.8333, -80.8325, -108.8794, -121.2633, -95.4392, -95.7736, -107.3172, -112.7006, -80.7167, -149.6936, 26.33, -98.315, -74.5333, 151.6936, 151.7366, -97.7853, -82.1856, -110.7711, 13.9831, 12.36, 19.67, -74.3592, 9.4306, 104.3, 1.255, 73.817, 15.05, -63.0, -70.167, -67.6167, 43.583, 15.17, -81.7167, -81.7, -76.6333, -85.9667, 13.8, 9.95, -4.0197, 26.97, -49.25, -50.13, 25.9, 36.5, 28.933, -117.4922, 29.833, 12.1, -111.3994, -91.0222, -120.8167, -116.9833, -88.0139, -109.8, -62.6833, -117.2331, -77.9647, -118.4167, 119.5206, -98.5903, -124.4242, -118.2833, -113.8333, -126.05, -114.8667, -97.385, 10.1928, 94.9, 94.5, -86.853, 8.9475, 30.95, 31.0, -99.03, 37.417, 27.7, 100.783, -97.4597, -53.9667, -101.7, -88.3603, -101.6181, -113.3, -123.8903, -129.2833, -102.6667, 30.48, 138.7989, 116.8269, 150.3075, -60.4167, 43.817, 83.367, 119.217, -91.8047, -102.2036, 35.533, 35.6, -78.2667, -82.4667, -82.5667, -82.5667, -82.5667, 54.401, 136.8, 108.283, 30.933, 14.9531, -79.3833, 41.967, 123.05, 15.28, 126.163, -85.8825, 15.3667, 11.3075, 11.9942, -100.1514, 35.8164, 19.2, 19.1975, 0.46, -9.883, 149.7034, 1.4, 10.3, -75.5122, -121.7417, 136.8203, 8.1, -78.9333, 32.3, 24.533, -111.7275, -111.8547, 7.8331, 15.01, -73.4667, -71.95, -97.4247, 152.9278, -98.5669, -115.2667, -134.1833, 13.6306, 10.6806, -3.6314, -3.7892, -72.7167, -122.5772, -69.5167, -72.9333, -119.1, -118.8833, -64.5333, -65.15, -102.8222, -81.8311, -112.1333, -112.1503, -92.0442, -55.6667, -67.7, -70.1167, -118.4667, -97.4, -97.1839, -97.0981, -86.2244, -98.3136, -108.4664, -108.54, -108.5247, -77.3667, -105.8322, -105.8667, -67.7742, -90.3283, -85.95, -92.5644, -85.5447, -99.2833, 32.45, -93.4975, -108.05, -80.3333, -116.1772, -97.3211, -116.1175, -115.9333, -117.5667, -100.15, -105.6786, -59.483, -92.6886, -81.0844, -107.8992, -123.3236, -94.4139, -118.9631, -100.8439, -106.0931, -122.8667, -97.0553, -115.0667, -103.2072, -110.8333, -117.395, -108.65, -108.8031, -98.9667, -121.0681, -75.4353, -122.8647, -106.55, -79.4, -94.4481, -124.0864, -84.6994, -82.9747, -98.1667, -123.5603, -122.5833, -83.95, 15.45, 14.082, 15.4333, -73.35, -73.35, -114.2206, -98.7803, -96.0, -111.3822, -111.3847, 27.1, -98.1331, -105.5119, -63.6167, -58.967, 9.2631, -98.5331, -104.6992, -92.3619, -86.8767, -82.8436, -85.7611, -94.4561, -70.8333, -72.3731, -87.5814, -79.8047, -85.5022, -99.3022, -85.4892, -86.6086, -84.735, -91.06, -82.3628, -77.3983, -120.9506, -80.3667, -85.2422, -87.2167, -90.45, -82.3461, -96.0983, -82.35, -84.65, -121.6333, -82.1711, -75.5761, -64.9167, -90.0867, -88.1111, -88.0981, 150.0497, -130.7, -121.1667, -115.5333, -106.3333, -109.4703, -110.1544, -109.4519, -82.2203, -91.9997, -99.4339, 13.4075, -89.8136, -102.9333, 148.1718, 5.33, -103.9333, -103.6192, -108.0411, 34.8164, -75.4, 146.0695, 146.0667, -90.7086, 12.39, -79.5667, 8.3331, -18.017, -61.8667, -92.7489, -3.02, -120.9389, -123.9089, -105.8667, 24.05, 18.117, 25.03, 13.1353, 13.2817, 11.072, -82.8892, 16.5592, 12.3256, -110.1333, -72.0389, -113.5472, -120.4833, -113.8694, 144.3345, -118.8, -92.5931, -95.1461, 147.0772, 147.0742, 45.6831, 12.86, -92.7594, -101.405, -36.5, -80.2167, -107.7, -99.15, -103.38, -3.1742, -3.1642, -103.38, 160.05, -106.97, -104.8253, -54.25, 103.27, -58.613, 144.7961, -105.97, -105.96, -85.92, -101.283, -69.755, 116.33, 111.667, 105.07, 113.483, -75.15, -39.0, -39.54, 9.4, -46.46, -70.756, -90.5275, -90.6, -66.0875, -110.88, 35.3, 46.1, 148.9833, 7.467, -80.2167, 6.777, -105.2833, -2.6, -23.933, 137.533, 12.73, 110.3, -4.419, 110.083, -62.317, -62.3, 106.733, 26.717, 73.55, -89.1228, 149.5329, -145.4589, -108.4667, -94.3608, -85.3828, 73.45, 43.83, 39.467, 77.317, 148.1039, 29.1, -90.8842, 17.7083, 150.254, 150.2687, -111.8167, -106.9672, -106.3292, -86.3297, -97.1667, 51.85, -65.9922, 37.279, -8.01, 68.83, 115.67, 17.4697, -113.3, 18.37, 13.8, -135.7089, 8.3553, -100.3369, -97.395, -109.3092, -94.4972, 8.6197, -91.0958, -79.8, 151.6787, 66.267, 9.1831, 9.2017, 136.183, 78.25, -5.667, 29.85, -113.1833, 152.6414, 17.67, -98.7333, 62.35, 56.28, 38.195, 25.3331, 25.4281, 135.1167, 141.7, 139.783, 141.517, -108.3247, 35.3, -96.117, -93.4019, -112.6167, 98.817, 33.983, 32.5, 125.7, 126.57, -107.3667, 49.6, -119.9333, 7.4903, -114.9239, -77.7333, -80.0667, -80.0833, -121.6306, 14.14, -106.4833, 71.3, 34.98, 110.25, 41.683, 119.7, -114.3333, 106.383, 126.967, 24.7314, -135.4494, -136.3614, -137.5833, -135.45, -117.9528, 121.17, 10.8645, 43.767, 140.75, -156.2469, 78.32, -2.075, -87.6353, -83.7217, 35.6, -117.1094, -122.4433, -78.5333, -78.5833, -63.5833, -63.5167, -63.5, 106.9, 108.517, 11.9506, -96.9397, -26.217, 19.63, 11.22, -96.9406, 127.6636, 13.04, -81.25, -81.25, -81.25, 12.92, -100.3167, 24.1667, 9.4063, 36.75, 132.067, 137.717, 103.6, 81.133, 9.99, 9.8983, 48.533, 48.6833, 25.04, 25.0419, 114.1667, 9.4081, -112.2642, 127.55, 93.517, 142.0167, -114.1642, -98.0853, -94.0347, -87.9914, -79.9333, 142.0636, -84.5833, 148.9508, -79.7667, -79.9, -79.8833, 142.0644, -100.6167, -79.6922, -82.1114, 14.7831, -90.4731, -90.3772, -74.8072, -99.3953, -0.1789, -93.2011, -81.1244, 14.99, -110.6833, 8.9667, -156.0153, -78.1775, -89.5358, -88.4889, -102.8667, -114.8333, -122.5167, -122.55, -122.5667, -119.6369, 11.97, 120.167, 10.6, -96.9, 22.9667, 22.9517, 22.9156, 23.2517, -110.7153, -95.8897, -110.7586, -111.85, -109.3, -98.6833, -91.3333, -80.8667, -91.3719, 9.6794, 105.85, -76.9833, -72.2856, -81.0, 14.85, -99.3464, -106.9833, -110.18, 69.1167, 107.033, -140.9611, 24.1439, 128.17, -123.3758, -111.4139, 21.63, 68.73, 31.02, 31.133, 38.95, 126.767, -82.6428, -55.8333, -53.2, -65.2667, -107.6092, -86.4622, -111.5667, -95.2875, -99.2133, -108.7964, -97.6728, -109.8311, 18.0597, 17.9331, 12.5123, -101.2567, -118.2519, -74.6333, -107.5833, -88.5244, -76.8833, -103.9542, -76.8514, -103.8842, -94.3567, -93.1567, -83.2808, -112.5833, -99.8033, -82.9, 18.12, 17.0106, -102.1175, -88.4114, -72.6825, -72.6506, -85.2892, -97.2608, -76.6833, -129.25, -119.1111, -120.65, -82.93, -86.4239, -119.6556, -99.8758, -67.0333, 11.133, 35.5, 119.554, 2.9, 15.57, -85.2875, 0.5717, -98.3836, -81.4697, 146.8731, -92.8689, 102.4667, -107.1958, 123.8, -90.7314, 100.15, -68.96, -75.7167, -89.3392, -118.6525, 24.2331, 175.2, 124.83, -122.25, -121.5433, -121.5833, -104.3167, 100.433, -115.4225, 24.5831, -64.7667, -90.0656, -65.35, -71.0603, -109.7617, -109.7633, -63.6, -63.5833, -63.6167, -155.2561, -96.485, -3.0281, -57.1833, 138.435, -83.4681, -115.95, -75.1653, -96.25, -122.835, -109.75, -118.6667, -106.7, -107.2547, -110.8833, -101.0344, -152.0758, -115.6289, -0.9839, -86.5833, -99.3169, -121.13, -99.3358, 144.8545, -115.7833, -116.0, -102.6928, -102.6944, -114.1378, -127.7333, -90.4542, -79.2, -85.3397, -115.8086, -122.1547, -122.8731, -97.4203, -100.6197, -148.9942, -101.8075, -108.9558, -0.461, -98.6775, -110.75, -111.4261, -110.5581, -111.3392, -97.5903, -102.0383, -90.13, 108.05, 8.9808, -93.0, 13.52, 13.67, -120.0833, -120.0167, 117.233, -120.1833, -85.6006, -83.7667, 8.65, 10.1331, 7.9956, 9.2342, 11.5208, 26.0528, 6.1044, 17.8372, 103.95, 18.8167, 18.71, -83.7261, -90.59, -98.2661, -112.0017, -111.9636, 7.8931, 23.75, 4.7106, -121.45, 10.9603, -144.1225, 26.23, 12.69, 24.9667, 24.9783, 24.9167, 25.0708, 24.95, 24.9167, 25.0481, 25.0831, 31.333, 15.0853, -103.0733, 18.53, -77.6083, -115.6333, -85.8833, -73.7167, -72.6, 1.683, 18.38, 101.6, -94.7964, -82.4492, -78.4119, -87.6456, 25.52, 112.62, 34.8167, -89.3381, -97.835, -98.2003, -111.4361, -116.7614, -119.5639, 111.15, 25.1831, 62.228, 145.38, 145.3869, -107.2667, -102.4003, -145.0, 8.6875, -96.9494, -125.2, 10.1717, -88.375, 10.2692, -119.2636, 152.1003, -107.1097, -90.0103, -116.0014, 151.9131, -72.6, 15.22, 14.75, 18.92, 6.5531, -100.9775, 0.333, 7.1556, -86.1056, 13.53, -119.7831, -102.6442, -103.15, -110.4833, 114.733, 141.6316, 115.53, 115.433, 102.9, -80.2858, -111.0167, -92.8389, -109.9667, -107.9333, -89.1667, -81.3819, -89.1911, -84.7475, -98.0311, -99.43, -105.667, -17.8889, -83.1983, -86.2503, -86.3131, -121.0, -121.0167, -99.455, -99.4894, -74.5642, -114.4667, -84.7167, -117.1667, -117.1667, -0.6417, -79.9722, -123.3794, -74.6714, -118.1, -114.1667, -82.5972, -176.167, 136.25, -62.62, 7.6533, -101.8683, -109.7167, -97.1094, -107.5656, -89.4919, -83.6092, -90.3339, -122.99, -6.07, -97.0664, -84.6411, -94.89, -112.8881, 25.45, 145.5249, -103.5594, -99.8278, -115.0733, -99.8297, 110.47, -155.0531, -80.75, -113.4667, -122.6333, 134.667, 126.333, -92.9928, -75.15, -70.9125, 41.7, -107.1533, 8.1064, 129.55, -81.0133, 143.317, 132.467, 75.733, 130.933, -110.3878, 130.75, -139.033, -122.7, 7.2107, 147.5, -87.2881, 147.5033, 147.3278, -99.0525, -103.1314, -109.1, 86.18, 85.717, 18.1664, -85.735, -97.4667, 31.03, 4.1217, 11.8775, 9.4794, 10.5167, -77.3031, 11.9092, 6.8625, -155.6667, -121.8667, 13.75, -82.1836, 15.69, 22.4, 11.0117, 111.683, 9.5392, -106.0003, 170.983, 13.8, -128.0, -127.9833, -110.1544, -91.1269, -96.3861, -120.7736, -105.5167, -99.3803, 17.57, -115.05, -110.2, 17.44, 12.58, -76.7683, -122.5667, -86.205, 12.8658, -132.6222, -114.5739, -121.4214, -99.8136, -106.1, -102.1317, -123.1833, -80.4211, -89.4347, 31.183, 16.82, -117.7833, 20.7564, 41.667, 142.05, -112.0122, -95.755, -76.3333, -102.3411, -53.1, -53.1333, 11.6975, 9.0042, -1.683, 7.3567, -82.8003, -93.0625, -151.6347, -151.3256, -151.4908, -80.3833, -80.5, 104.37, 15.95, -99.1742, -124.1069, 148.9833, -79.8667, -70.85, 127.8667, 114.167, 159.967, 0.767, -157.9294, -157.9992, -115.0333, -121.5175, -101.2103, -135.4278, -123.6667, -87.685, 5.3456, -106.0667, 41.4, -104.7386, -121.5, -121.4833, -149.6286, -60.2167, 25.0667, -77.2775, -100.8667, -75.8856, -93.5564, -121.4833, -121.2333, -87.5206, -123.8833, -123.9303, 42.2, -115.2, -99.5606, -88.6325, 109.783, 11.6992, -15.227, -84.8, 8.2042, -121.4167, -121.3667, -115.2278, -110.4961, -122.4003, -121.2, -111.45, 142.0687, -28.63, -28.72, -95.52, -114.7561, 17.467, 59.3831, 79.933, 16.21, 16.2397, -82.8311, -79.8317, -103.4739, -114.6833, -93.0486, -93.06, -106.15, -84.8922, -84.6739, -67.8333, -67.8417, -67.7928, -90.8161, -105.6319, -129.1333, -88.9867, -126.6667, -95.1667, -95.2819, -95.36, -95.15, -95.3667, 69.95, 91.567, -109.075, 109.6, -96.2714, -97.5242, -122.3814, -113.0033, -100.4397, -83.7667, -66.5667, -121.4219, -92.1333, 39.2, 15.85, 114.0, 126.75, -97.6, 115.5, 105.0, 15.75, 115.05, 121.42, 118.15, -75.75, -77.5, -98.05, 99.95, 121.6, 110.08, -74.6333, 17.1, -98.6592, -71.4147, -102.3167, -102.4, -102.3167, -73.8, -122.2, -101.1772, -91.467, -98.41, -6.9492, -6.9094, -0.3264, 144.1986, -95.5381, -101.34, -103.4897, -99.65, 126.25, 102.25, 117.533, -92.78, -108.36, 22.7831, -99.35, 103.28, 102.767, -96.1, 135.083, 132.97, -0.3667, 126.65, -65.8167, -105.1167, -94.2689, -112.3006, 147.0329, 7.4844, -123.9897, 71.333, 15.1, -114.0217, 107.2, 7.2667, -98.3933, -108.3167, -117.4736, -63.3333, -74.1667, -88.4253, -85.4981, -117.255, -119.2206, -82.5267, -82.555, -108.2444, -95.5422, -93.7333, -93.7522, -86.7861, -111.7131, -79.1667, 116.333, 18.1831, -100.0167, -90.1956, -98.1989, -81.5, -98.2231, 18.84, 102.7, -98.0297, -94.3675, 16.45, -19.5667, 27.0, -70.3039, -101.75, 118.8983, 68.417, 128.167, 7.5, 6.3667, -107.2278, -107.1375, 24.8064, 107.755, 27.6331, -69.18, -75.2, -113.9886, -78.12, -73.25, -44.05, -53.11, 1.3842, 136.417, 155.5831, -118.8786, 127.43, -94.8278, -115.8319, -112.0125, -111.7847, -112.9422, -112.0672, -107.6667, -95.515, 15.23, -122.9653, 12.86, 12.3, 92.133, 12.2117, 17.0797, -116.7067, 25.73, 86.57, 44.03, -81.8, -81.8167, -92.0, -107.6264, -103.98, 122.4, -99.52, -99.53, -47.55, -39.3, -54.467, 137.817, 130.699, 106.17, 100.083, -43.1667, 46.433, -81.4333, -61.7667, -61.7833, 47.283, -70.3833, 51.0, -3.5017, 40.333, 42.717, 31.9, -109.81, -154.9089, 168.97, 168.23, -124.0575, -123.6853, 8.42, 122.567, 30.9331, 30.9778, 31.0619, 31.25, 4.494, -51.1, 142.2164, 59.08, -118.1631, -81.4406, 11.7128, -47.5, 8.04, -115.5667, -100.65, -101.655, -117.1167, -115.5786, 18.067, 18.07, 127.28, 126.35, 136.5, 27.4181, 27.27, 28.3039, 28.3031, 27.4175, 28.5975, 27.1228, 126.633, 35.4333, -49.217, -118.2036, -95.7003, -91.9014, -91.8781, -89.8214, -94.3833, -120.2833, -106.6167, -86.2958, -86.0678, -79.1186, -87.0881, -93.6481, -114.1667, -95.2, -53.8833, -110.75, -110.6833, -103.65, -103.6833, -74.2692, -81.3333, -74.7883, -153.6833, -153.7, 48.77, -116.2153, 75.8, 33.78, 101.98, -109.35, 9.6531, -124.9, 146.1769, 150.9333, -107.2039, -60.4, 35.383, 128.17, 148.5669, 24.0169, 146.0345, 11.4, 18.267, -78.12, -101.9414, 7.87, -93.3981, 26.017, -154.4983, -78.0833, -78.0833, -133.4833, -133.4833, 168.333, 151.1114, 151.0819, -4.2231, -82.3125, -117.8214, 46.4, 9.6331, 5.767, 2.5, -95.4242, -85.0778, -91.505, -93.2536, -48.167, 101.1, 26.4, 152.7608, -99.0383, -68.55, -68.55, -73.3, 55.4, -53.233, 137.1, 60.72, -101.35, -111.25, -50.633, 95.467, 35.85, -41.867, 61.2667, 72.633, 123.459, -121.95, 104.35, -117.9964, -82.6833, -90.1892, -95.9167, -115.1219, -88.0842, -112.5019, -80.6667, 138.85, 75.45, -83.4833, -83.2389, -67.0525, -91.3753, -79.57, -103.55, 68.35, 69.43, 69.52, 70.1, 70.6, 124.187, 141.3, -87.65, 89.049, 71.25, 144.4406, 125.3167, 71.567, 111.673, 68.38, 36.154, -130.0167, 36.6, -71.4667, -81.3667, -102.35, -94.65, -111.3833, -111.3714, -109.433, -109.43, -74.75, -78.87, -110.95, -93.5014, -58.9667, -71.6333, -73.1017, 32.2297, 30.55, 41.0, 77.47, 29.0831, 12.083, -37.81, -40.28, -58.481, -55.983, -42.85, -41.883, -95.1919, -76.4492, -40.11, -21.95, -41.3, 9.567, -88.1958, 25.35, -50.86, 27.4331, 144.2995, 24.7, 60.45, -53.933, 107.3, -128.4, 132.2333, 141.783, -98.7, -98.0, -97.82, -92.9, -95.1, -103.73, -16.4992, 53.45, 37.3, 28.85, 27.15, 27.167, -78.55, 129.3, 79.95, 132.8939, -68.75, -70.2583, -114.6586, -98.1561, -87.9278, -77.4239, -89.6678, -83.3833, -83.3131, -110.7614, -113.4089, -63.8333, -81.7019, -95.2736, -90.1978, -81.3928, -81.8833, -81.5147, -81.6667, -81.65, -82.7078, -88.8456, -90.0778, -88.9167, -115.45, -84.4667, -79.6772, -116.0167, 17.0, -116.0167, 68.3, -40.467, -112.2167, -3.8075, -3.7881, 80.0, 82.033, -37.767, -108.02, 75.8, 70.917, 17.27, 106.9, 106.833, 129.7167, -103.1872, 122.85, -96.917, 21.567, 66.35, -71.1239, 103.7, -80.4681, -79.1592, -98.6692, -98.685, -85.0617, 24.7892, -43.3, 54.9, 115.8794, -89.0167, -78.6333, 28.8, 84.27, 24.667, -7.33, -8.6667, 102.335, 47.92, 49.117, 115.6658, 105.75, 120.9, 16.18, 57.7667, 45.4, 57.517, -82.9447, -87.3153, -118.0667, -84.4461, -117.8167, -118.3833, -51.71, -99.37, 69.05, -100.5725, -107.7361, -94.7967, -95.03, -91.7108, 39.2, 39.183, -94.3558, -97.7903, -94.4114, -81.4286, -83.4739, -83.5, -92.1825, -107.8292, 131.1, 126.533, 15.8, -106.6872, -92.1289, 11.5842, 8.8, -82.0581, -111.2, -92.6642, -109.3464, -113.5167, -6.0556, 73.167, -112.1114, -114.5192, 150.9093, -90.3431, -2.1943, -74.0572, 35.2167, 150.8, 150.8048, 136.1442, 89.161, -120.2947, -81.8333, -81.8628, -102.318, -99.9, -99.9181, 7.8806, -96.15, 18.12, 84.083, 73.717, 114.967, 126.217, 101.82, 112.18, 118.12, 111.917, 42.717, -115.6206, 5.874, 5.883, 36.833, 117.05, 107.45, 117.2, 82.9, 100.8, 113.07, 67.161, -85.9833, 121.117, 116.0, 101.5, 98.483, 118.1, 61.805, 130.949, -43.11, -34.867, -46.17, 73.017, -102.6803, -119.1333, -105.8833, 28.05, 28.246, -55.188, -133.3, -101.5667, -98.4089, -112.6114, -81.8467, -169.5167, -78.9167, -6.483, -118.9594, -78.3011, -102.9297, -95.75, 23.5006, 19.64, -98.81, -109.0097, -73.4333, -88.1028, 19.9894, 19.9067, 19.8753, 9.5975, 36.917, -67.6494, -90.6589, -90.6464, -91.8628, 18.93, 14.0731, 12.55, -97.68, -110.7669, -94.5022, -106.9103, -93.6356, -106.4681, -77.114, 13.96, -106.7403, 8.89, -69.681, -75.423, 47.9, -78.3, 26.0989, -65.289, -122.0056, -76.729, -75.817, -78.87, -67.076, -84.209, 31.6, 136.22, -103.13, -109.48, -85.367, -43.4, -43.35, -65.098, -102.2625, -70.158, -116.65, 141.7458, 6.41, -104.97, -122.1667, -90.7483, -65.9114, -99.8045, -134.4111, -134.4, -134.5639, -122.15, 8.0, -118.4333, -60.931, -67.1667, -120.4725, -111.75, 16.9506, -117.9333, 43.117, -43.66, 112.9, 115.0311, 29.2378, 24.2906, 117.566, 118.83, 145.8667, 142.72, 45.83, 25.6, 25.7167, 25.7331, 25.6783, -118.4039, -156.7, 22.5544, -11.55, 106.65, 86.35, 101.7, 69.212, 28.467, 105.9, 137.6953, 29.701, -13.508, 126.567, 130.55, 8.49, 8.9942, -91.7333, 36.933, -156.4286, 133.696, -155.9258, 145.5656, 10.1, 7.7367, 173.267, 173.3, 27.6783, 118.383, 77.367, 34.78, -133.9, 82.233, 41.1, 74.583, 23.7, 116.77, 22.1, 22.026, -85.5519, -85.6, 66.583, 114.165, -124.25, 121.4533, 113.967, 20.55, -114.3114, -114.2636, 18.0797, 6.2656, 6.5267, 16.29, 151.3047, 10.1467, 36.3697, 126.6453, 126.6431, 33.7, -111.2822, 70.52, 22.0, 40.7, 166.2167, 40.3, 81.28, 26.667, 41.22, -120.3333, -120.45, -120.5, -120.3, -69.85, 99.5333, -155.6667, 33.8, 45.367, 62.717, -112.5367, -115.0333, -115.1167, 22.469, 136.633, 99.533, 65.85, 32.35, 2.93, 2.933, 80.6, -157.7833, 39.67, -78.8036, -114.7075, 37.4, 24.2331, 101.97, 126.6, 126.45, 22.22, 69.52, 43.3, 22.4669, -87.8856, -9.3, 125.97, 8.5, -97.9597, -112.4383, 135.25, -94.7725, -94.5969, -94.7306, 95.633, -87.5, -16.051, -156.6753, -82.4667, -82.4333, -82.45, -22.0, 1.167, 52.917, 32.6, 60.133, 66.93, 111.95, 73.15, 35.1, 56.83, 76.3, 73.55, 107.62, 33.2, 84.85, 33.6, 25.5031, 25.5019, 78.067, 71.75, 64.667, 86.42, 22.4503, 21.5, 22.45, 80.95, 38.93, 28.883, 31.85, 75.517, 12.914, 14.51, 14.85, 11.2975, 8.365, -96.5167, 13.4667, -94.1781, -97.8756, 116.0744, 29.617, 43.115, 66.75, 65.717, 18.27, 138.55, -103.5428, 22.8031, 114.317, 19.05, 31.133, 25.15, 51.577, 75.983, -151.3833, -89.9492, -116.9167, 47.4, 19.98, 36.4, 71.53, 9.4433, -105.0953, 33.7831, 117.6064, 117.5553, 132.2737, 132.2572, 85.367, 85.617, 150.3087, 19.03, 140.317, 66.27, 76.733, 10.6167, -103.9, -96.2725, 23.0469, 23.8331, 69.0, 23.0339, 138.767, -116.6333, -106.6375, -11.4, -11.44, 35.4797, 107.62, 62.117, 49.2, 74.0, 67.233, -110.1917, -77.8833, -99.0133, -156.45, 38.8, 19.75, -67.35, 158.92, -12.22, -2.27, -104.7833, -72.3247, -102.9208, 18.13, -22.6, 79.23, -78.7167, -117.6167, -90.0964, 140.3556, -65.2, 20.0167, 174.7667, 29.2, 11.08, 117.7217, -110.8, -94.4553, -103.75, -116.1222, -6.8467, -119.3833, -119.4, -119.55, -119.4, -119.4833, -117.9858, -96.5333, 34.65, -127.95, 106.85, 91.667, 86.22, 86.107, 27.7831, 27.7075, 24.6167, 24.5831, 22.5608, 24.5192, 24.1, -110.5328, 152.8235, 10.3364, -75.6333, 34.8164, -151.3228, -149.4, -151.2392, -150.3167, -77.95, -110.0167, 122.433, -11.233, -102.0975, -99.8628, -70.4697, -90.075, -119.1011, -94.3667, -94.4833, -87.8156, -120.6994, -122.2433, -122.5447, -87.4353, -102.965, -83.6061, -88.8917, -64.4833, -64.4833, -104.1108, -91.9928, -91.3833, -91.375, -113.6333, -91.9683, -173.77, 143.9197, 36.4167, -119.8167, 65.2, 56.967, 47.117, -118.7833, -118.4389, -109.05, -99.1081, -80.5972, -122.3667, 125.883, 17.2333, -131.7117, -114.3603, 21.37, -120.0569, -120.0878, -0.32, -89.8997, -86.5167, -87.505, -96.25, -105.6167, -105.6, -115.2167, -81.8, -81.7522, -81.6833, 101.083, 70.717, 118.617, 148.1431, 66.8167, 30.533, 36.1331, 32.549, 44.0, 32.567, 102.883, 26.983, 102.833, 71.5, 48.283, 44.9667, 69.7331, 89.56, 23.45, 66.633, 150.8519, -160.4375, 1.35, -122.6167, 20.7, -2.5789, 10.1439, 30.5331, -11.4, 30.139, 40.4, 29.633, 23.3167, -157.9453, 104.532, 20.4667, 18.786, -114.4667, -159.4, -128.4833, 119.3, 37.083, 37.1, -7.2667, 152.2953, -97.6919, -76.39, 51.1, -106.6167, 136.4125, -103.6344, 24.767, -115.9667, 128.7092, 129.2, -103.3219, -107.0, -109.1833, -109.1667, -12.87, 25.92, -109.55, 151.8398, 151.8456, -126.2, -97.9294, 28.6, -98.1136, -114.0167, 137.6364, -101.6706, -82.5275, -71.5431, -76.6, -76.4833, -87.1153, -79.8283, -97.8497, -82.6667, -97.8167, -102.9714, -110.7, -109.1022, -118.2258, 42.586, -121.1378, -107.0233, 36.259, 42.804, 46.699, -156.6294, -58.75, -79.5167, 27.4, -5.31, -3.561, -111.5167, -99.3656, -77.5433, -77.5722, -115.4167, -79.2667, -102.7333, -88.6631, 161.92, 108.0667, 33.5, 29.9, 29.8977, -18.0667, -80.0, 27.22, -92.5747, -92.5433, 44.37, -2.905, -101.3369, 49.6331, 32.2, 133.533, 71.59, 52.23, 34.167, 18.43, 20.23, 20.34, -109.3167, -99.1228, 10.8117, 28.87, 103.97, 42.72, -81.4239, 34.75, -9.467, 131.317, 35.0, 142.583, 30.1331, -128.6833, -128.7, -128.6333, -152.3722, 24.9167, 25.7867, 24.8417, -111.5972, 10.2, -102.8031, 32.7, 70.42, 74.14, 106.45, 8.0681, 12.47, 9.05, 127.4, 22.7131, 14.333, -109.7, 21.0667, -124.0747, -121.75, -121.7814, -124.9833, 8.45, 5.4628, 10.3306, 15.0333, 6.0956, 29.333, 14.79, -108.9167, 8.75, 160.8331, 16.6167, -138.2167, 16.3356, 15.25, 15.26, 14.2, 14.16, 41.83, 79.183, 24.0831, 26.9, -72.8667, 8.7564, -105.0222, -93.1008, -122.4172, -83.9572, -83.9858, -83.9167, 15.8897, 135.217, 34.2, 29.9, 13.833, 82.183, 14.9, 127.92, 133.55, 80.5, 75.7, 46.55, -111.9883, 77.4667, -152.4, -152.4856, 12.5331, 12.65, -113.9653, 138.55, 127.3, 50.97, 79.0, 128.62, 47.65, 117.159, 70.95, 69.2, 20.3556, 22.2519, 22.3494, -86.1758, 136.433, 82.367, 69.383, 2.65, 23.7717, 23.75, 93.367, -14.967, 49.08, 22.6, 13.84, 7.1583, 6.9717, 18.67, 15.58, 35.233, 38.7, 25.033, 73.65, 82.8831, 158.73, 82.75, -140.1833, 33.9, 89.283, 22.22, 28.633, 69.98, 137.033, 87.283, 9.65, 10.146, 33.2, 7.3167, 128.0, 9.1908, 32.4, 32.562, 34.07, 39.15, 72.75, 145.5956, 24.07, -111.8842, -115.9833, -115.9336, -116.05, -116.0667, 20.8, 16.02, -81.5833, 8.8317, 20.7667, 166.0, -5.557, 153.97, 30.2, 86.133, 28.083, 134.4833, 23.06, 142.85, 21.1883, 21.1, 11.4883, 88.68, -89.5797, 21.2167, 25.2331, 48.9, 162.9533, 34.25, 15.439, 32.667, 40.85, 32.067, 16.15, 75.85, 116.051, 43.15, 27.1881, 27.0517, 26.9617, 26.9667, 46.7167, -0.167, -162.8, -162.6333, -65.0, 164.283, 10.75, -52.75, -5.467, 26.8133, 26.9442, 32.883, 30.45, 141.7483, 28.7, 35.8, 21.83, 57.117, 84.0, 75.783, 46.57, 99.05, 100.05, 100.8025, 20.9331, 4.9859, 20.0, 20.7, 17.77, 16.17, 86.8, 31.6, 40.2, 39.15, 35.45, 92.75, 79.233, 37.03, 43.8, 57.7831, 52.98, 45.167, 108.75, 135.3, 13.8539, 33.433, 25.717, -106.3681, 14.1331, 80.033, 134.4, 9.89, 14.15, 14.08, 21.3208, 14.1, 22.33, 33.4, 17.9897, 11.3219, 57.983, 40.567, 12.7256, 27.77, 10.4175, 21.35, 23.1425, 14.5, 33.22, 14.5056, 9.0106, 9.4975, 8.7742, 9.3225, 9.6217, 118.717, 98.8667, 101.55, 103.1333, 124.78, 103.22, 103.2, 16.085, 110.333, 54.65, 23.3, 12.17, -89.8, 78.667, -115.15, 29.4739, 50.45, 10.2369, 20.4167, -155.3011, -156.3211, -156.3561, -156.3667, 133.3027, 12.45, 11.4506, 151.2, 33.1, 69.75, 63.283, 139.383, 130.699, -1.591, 126.8, 49.9, 12.1528, 29.0, 20.75, 20.7506, 127.47, -116.4167, 26.533, 58.933, 102.683, 102.9, 126.6222, 128.7353, 128.71, 9.6933, 120.92, 27.6831, 123.667, 123.7, -149.6114, 37.7, 77.283, 82.95, 134.633, 25.383, 22.5, 65.4, 68.7831, 147.88, 124.5222, 78.067, -103.45, 36.1667, 23.43, 23.3767, 27.3, 7.4142, 144.433, 55.4, 66.55, 125.25, 63.6167, 21.03, 29.967, 42.6, 140.75, 46.05, -68.4167, -77.75, 29.3192, 29.2258, 26.65, 47.966, 87.2, 13.9667, 5.9133, 19.9605, 18.02, 17.73, 167.7333, 167.7333, 126.9167, 29.833, 115.7611, 145.0638, 135.5552, 140.9286, 135.733, 111.9667, 12.417, 36.333, 76.567, 23.02, 94.5, 65.5, 86.0, 69.6994, -66.7, -74.8667, -73.4333, 23.817, -13.217, -12.3, -91.5, -63.367, -64.833, -69.55, -99.3091, -74.3333, -113.75, -122.7189, -89.4153, -69.12, -117.8831, -72.4, -78.2833, -72.1667, -67.5667, -70.8667, -71.75, -74.3167, -121.2967, 21.03, -108.8347, -68.7833, 29.75, -91.1236, 152.7161, -113.2167, 27.23, 147.0, -92.065, -86.03, -85.4336, -85.3203, -86.9028, -86.9369, -91.9875, -114.6147, 2.89, -51.5, -72.3, 7.85, -85.4122, -107.3736, -117.7814, -57.771, -100.38, -110.36, -156.6742, -119.0644, 74.333, 7.8289, 7.8333, 71.5, 71.8667, 25.6342, -121.5833, 22.35, 120.7, -67.0722, -27.1, -27.3217, -103.7575, -122.8667, -178.8, -78.2333, -110.4333, -110.6167, -74.3167, -81.9219, -122.9167, -71.4667, -71.4647, -92.6208, -109.98, 147.9961, -111.3208, -111.8125, -120.3678, -79.5667, -86.2692, -105.1206, -88.4981, -81.7144, -104.25, -117.1883, 146.3707, -93.2158, -107.3147, -82.5942, -79.7297, -85.205, -100.9167, -124.05, 145.9124, -105.5833, -95.4322, -88.4347, -105.4706, 118.4647, 118.4625, -114.3667, -105.8167, -99.1442, 147.7933, 147.7975, -116.2167, -104.3753, -88.8967, -95.3247, -73.985, -91.173, -99.4603, -122.0047, -120.6392, 146.2167, -78.0667, -114.65, 141.2652, -88.0594, -95.9572, -110.3986, -101.2492, -55.1333, -117.6333, 167.8, -102.6306, -70.35, -94.3147, 10.246, -45.31, -95.3153, -74.9447, -71.0833, 140.5175, -101.9456, 16.25, -106.6642, 22.4, 25.25, -115.5231, -93.9508, 99.517, -98.1847, 12.6, 99.0333, -156.9486, 99.933, 100.12, 99.13, -71.5725, -76.2742, -82.6333, -90.7889, -118.2117, 115.33, -104.7, -84.7283, 10.55, -108.7261, -76.4333, 10.9167, -121.9614, 17.87, 12.3, 8.5225, -73.2333, -133.05, -133.0667, 1.35, -98.3447, 18.17, -101.7167, 7.4781, 18.7, 13.06, -76.35, -122.5833, -122.5333, -124.25, 5.31, -98.55, -101.5603, 16.69, 105.97, 48.817, 13.13, 17.66, 21.98, -87.8833, -84.5789, -74.4653, -13.6003, 103.883, 121.55, 120.533, -88.7594, 103.9667, -83.3075, 26.1431, -86.7297, 28.1542, -73.4333, -105.8667, 23.0167, -105.6069, -105.6747, 7.5167, -116.9667, -99.4983, -97.7106, 22.45, 33.6331, -99.0994, 133.2138, 80.25, -109.2667, -61.1, 15.5944, 12.717, 16.8994, -105.25, -101.85, -69.667, -103.2153, -56.3, -105.42, -92.6, -95.36, -99.52, -115.93, -59.1, -93.55, -70.917, -105.11, -60.583, -15.3892, -91.6, -115.1333, -105.2667, -115.1633, -105.1419, -115.0333, -105.2131, -78.617, -71.1333, 16.02, 35.77, -79.0167, 9.7153, -114.5806, 147.2144, 147.2033, 147.15, 147.1222, 9.9094, -89.1236, -77.2139, -76.9003, -116.0333, -79.1883, -123.575, -82.0219, -118.2333, -71.6667, -79.4664, 178.5, -71.1, -73.3167, -121.5011, -121.33, -112.1472, 144.7566, -96.4861, 16.826, -95.2514, -71.1658, -71.4333, -87.3508, -77.7928, -74.6692, -124.1333, -98.4572, 16.41, 20.7, 23.5167, -149.0364, -92.42, -110.195, -81.4264, -100.15, -105.4, -101.68, -71.65, -91.97, 6.8, -71.728, -79.367, -91.2528, -105.15, -72.7167, -109.55, -57.85, -103.62, -89.5, -97.32, -118.0747, -122.3167, -73.6833, -73.6833, -77.7, -98.88, -96.8769, -104.1669, -85.0317, -108.72, -90.9686, -103.4775, -103.5122, -107.96, -74.7667, -70.15, -117.0233, -87.924, -74.9333, -77.6167, -98.2928, -66.183, -97.53, -17.755, -102.75, -71.25, -110.4167, -110.3, -102.03, -91.77, -57.895, -77.0, -70.0333, -99.8686, -112.08, -65.6, -109.55, -66.817, -1.15, 30.17, -68.97, -105.2667, -105.2667, -109.2664, -79.2167, -55.6667, -71.2, -71.3, -97.43, -79.37, 166.2222, -92.03, -106.5975, -72.7833, -87.8667, -101.78, -93.88, -70.53, -99.3, -113.2686, -57.8667, -103.35, -122.6886, -103.743, -109.5333, -3.7589, -106.3169, -92.9158, 114.0967, -94.9189, -120.675, -119.55, 17.5331, -86.3181, -82.0383, -92.6936, -76.4667, -72.3047, -76.9667, 17.75, 18.15, 8.95, -1.4381, -94.2228, -99.4317, -1.55, -1.535, -93.2397, -111.6022, -94.3358, 5.7517, -119.1194, 123.733, 16.2, 11.45, -114.2167, 12.5133, 103.58, 138.4075, 138.4219, 6.8667, 10.317, 12.45, 12.2414, 14.58, -86.2892, -106.2889, 11.7022, 36.45, 15.02, -92.2047, 28.333, 19.9575, -102.1575, 145.4594, -122.2208, -119.0264, -107.6592, -119.95, -41.383, 16.5, -107.5167, 93.383, 159.383, 132.617, -110.6003, 8.0358, 9.5283, -71.8167, -81.5378, -84.2622, 10.8856, 114.88, 138.8071, 8.2317, -92.5947, -98.9439, -118.7192, 121.3303, 121.3186, -93.6453, 9.412, -5.6492, -101.3658, 28.7, -103.517, 28.05, 134.3, -104.6333, -103.0822, -1.1831, 14.2, 103.75, 8.3733, 79.5, 22.35, 21.95, 3.089, 15.27, 45.767, 16.5331, -68.3833, -74.05, -70.25, -66.6833, 31.58, -53.9, -112.8, -112.8, -112.7667, -70.0, 118.9, -174.45, -2.868, -110.9667, 65.7167, -111.8653, 11.2333, -102.3758, 30.28, -75.1389, -80.4042, -86.8086, -77.1708, -70.2167, -117.0156, -117.0167, -77.5692, -109.4578, -110.6667, -97.0136, -90.0517, -88.3903, -80.2597, -79.4386, -93.855, -84.6058, -90.4006, -120.25, -61.003, 0.195, -96.1458, 3.9, 2.9, -61.6, 91.133, 92.47, 107.8, 114.48, 112.38, 146.6672, -115.5392, -115.2239, -115.3, -115.3181, -100.9294, 15.017, -85.533, -94.795, -74.74, -90.8944, 9.45, 35.233, 3.67, -91.8831, -110.9667, 25.317, 13.13, 30.0492, 12.8, 21.0167, -111.3133, 10.345, -159.3683, -159.3405, 100.467, 100.17, -121.5333, 7.6778, 10.4756, 14.09, -121.9167, 16.44, 33.7, 33.781, -110.8, -106.5333, -112.5928, 33.0497, -77.0, -84.1294, 8.0614, -106.25, -110.2736, -67.8833, 25.2333, -83.03, -103.7158, -99.56, 100.217, 172.47, -77.6928, -89.3381, -81.3289, -98.13, -96.7667, -96.7475, -112.6547, -96.7025, -113.7125, 14.1203, 9.8889, 8.7814, -87.8408, 15.24, 7.0481, 26.7, 119.4, -103.4986, -107.0542, -119.0545, -97.6386, -78.7333, -78.7333, -118.5658, -80.425, 7.317, -136.2833, 111.617, -15.15, -40.0667, 107.4, 126.917, 15.5331, -100.2306, 118.067, 103.18, 118.35, 14.18, 14.286, -123.2333, 29.6144, 29.6142, 8.3953, -100.2675, -103.7667, -103.8833, -9.15, -81.7844, -97.6928, 15.3, 111.1, 119.92, 153.2628, 143.3437, 6.5681, -116.45, 8.4125, 100.267, -94.5347, -112.3631, 150.1498, 140.33, -102.3447, -111.8167, -109.0167, -114.9, -74.2261, -94.3694, -74.8686, -74.8667, -113.85, -108.2, -122.2167, -81.415, -134.6497, -124.5167, -66.0667, -92.2619, -92.15, -92.2389, -112.3069, -78.8125, -109.75, 30.267, 109.4, -81.15, -121.7692, 150.9128, -64.9333, -64.7667, -82.965, -91.68, -88.1897, -110.5667, 25.817, -110.5589, -94.9256, -110.4408, -85.3364, 17.0008, 10.31, 119.48, -107.9333, 31.233, 14.5169, 14.48, 16.3097, 13.95, 13.23, 11.93, 12.6, -98.6542, 0.595, 0.6183, -110.0, -110.0667, -109.6667, -110.0667, -111.6433, -119.3667, 15.1783, 8.7875, 28.3, 143.3047, -78.6814, -78.6333, -93.9489, -77.4336, -118.7325, -102.6361, -121.2878, 35.617, 19.4, 101.733, 13.28, -81.9947, -95.7883, -114.4833, -93.95, -86.35, -111.8914, -120.8167, -111.8564, -111.8033, -2.3308, -52.6667, -121.9031, 24.0525, 9.6108, -79.2, 9.0631, 130.449, -114.5139, -114.5833, 23.25, -110.5022, -98.08, 1.25, 14.73, 20.217, -120.4514, 101.25, -81.15, -84.0769, -0.1833, -81.15, -81.3706, -83.5097, -51.183, -51.133, -110.2, -108.1833, -121.9667, -90.1814, 142.2991, 120.32, -121.812, -105.0736, 144.2769, 144.2769, -75.1333, -101.4956, 5.09, -122.9164, -94.65, -78.545, 117.0, 106.75, -2.67, -118.1464, -124.0378, -74.0028, -83.2678, -119.1017, -70.1983, -53.8167, -116.2175, -89.1389, -94.8892, -63.55, -74.7789, -112.5167, 7.7469, -115.7, -107.8333, -110.7167, -122.76, -110.1333, -121.3333, -109.1, 21.4528, 100.617, 7.8206, -108.6531, 159.079, -111.333, -78.8825, -78.95, 143.9833, 17.66, 89.367, 29.37, 151.4595, -107.6333, -122.675, -115.9667, -104.3333, -114.2667, -106.3214, -89.65, -118.2353, -118.3889, -120.8667, -120.9297, -75.826, -121.9592, -99.42, -106.7611, 147.433, -99.63, -80.42, 3.763, -7.9031, -78.0061, -60.0, -73.0167, -91.0667, -89.0711, -85.7667, -82.3914, -85.6636, -85.7392, -98.9681, -0.006, 32.6, -77.3833, 21.32, 24.7006, -88.8314, -95.45, -105.085, -108.4042, -118.4767, -118.5692, -98.0256, 26.4478, 35.033, -87.4178, -71.3636, -60.75, -63.2333, 1.7268, -115.6186, -75.4825, 146.7856, 146.7883, 145.5592, -80.2667, 140.5978, 140.6, 19.2331, 36.317, -91.1672, -89.8222, -92.4108, 102.161, -101.8136, 10.719, 22.4, 33.0, -113.3167, 150.98, 19.65, -68.3667, 11.133, -113.9, 140.3664, 146.3861, -92.4853, -81.5, 80.883, 15.1, 75.8667, 7.4133, -86.3942, -103.3719, -94.7544, 8.9667, 39.25, 167.13, -7.4558, 16.953, -109.2269, 44.5, 153.8167, 22.13, 22.1192, 27.4, -97.6578, 22.4, -79.025, -82.6792, 40.672, -118.7667, -84.7753, -104.8667, -104.9333, -108.9417, -124.4667, -115.0167, 13.2, -97.9333, -98.1, -13.2, 106.77, 112.5, -111.25, -84.0233, 14.4831, -78.3728, 13.25, 28.45, 111.033, 121.6, -76.05, -104.4811, -105.9333, -90.6656, -96.2022, 6.21, 6.38, 103.77, 32.7, 8.3, 105.43, 120.55, 115.98, 23.95, 70.9, -107.5472, 18.65, 18.72, -120.9167, -98.4583, -79.2067, -76.0833, -1.993, 9.5235, 9.1503, 8.1, -86.05, -101.0833, -101.0833, -101.0667, 26.317, -91.0986, -106.6667, 4.69, -2.9681, -62.8, -123.0736, 18.45, -98.8433, -114.0214, -76.0333, -121.5833, -121.5833, -64.6833, 16.22, 4.5, 35.783, 27.3158, 107.483, 5.7617, 146.2711, -61.3833, 113.6, -51.072, -79.933, -36.633, 113.592, -82.5167, -106.0167, 144.5569, -35.7, -35.783, -9.42, 117.6, -45.917, 114.97, 81.15, -85.6667, -113.6667, -113.6317, 149.2169, -123.1333, -84.6167, -109.95, -92.4667, 4.8, -88.5586, -83.6528, 158.937, 151.1121, 123.979, -66.9, -92.58, 145.8, 145.8, -77.9833, -114.3167, -90.7653, -108.1, -120.0378, -78.4, -96.7708, -83.4022, -97.45, -69.8878, -95.9203, -87.5239, -97.0925, -81.8464, -89.3453, -111.1167, -85.3942, -89.4, -96.1661, 98.52, 98.217, -121.0011, -121.1461, 80.183, -101.5428, -3.6781, -3.5556, -3.7892, -3.7225, -3.4503, 69.7, 139.067, -109.6642, 97.833, 97.933, 98.55, -101.1, -64.1, 150.7831, 8.933, 125.817, -64.117, -107.2333, 11.5842, -1.77, -114.3, 59.083, -93.2325, -72.1167, -101.1444, -67.0461, 17.3, 47.55, 46.3167, 25.43, 48.8, 55.5, -95.9675, 4.3, 13.083, 91.1, 95.34, 11.98, 11.983, 44.033, 8.2117, -148.093, -56.0167, 11.2978, 137.6733, 135.19, 135.333, 40.083, 77.283, 171.4, 171.3833, 12.617, 39.483, 32.18, 22.971, -156.44, 10.4402, 37.83, 39.833, 39.8, 30.0681, -59.1833, 12.87, 15.58, 15.7, 35.9, 104.97, 130.3, 8.614, 67.3, 18.75, 102.252, -112.2667, -112.2872, -4.4881, -118.65, 11.5292, 16.37, -69.574, 38.08, 42.55, -89.9894, 73.533, 15.24, -2.1617, -117.0247, -118.8447, -123.85, 96.95, 15.9133, 40.102, 38.55, -121.3186, -7.34, 52.73, -103.7625, 31.65, 15.2, 12.2544, -75.8667, 20.67, 13.08, -111.1833, -74.3081, 7.7356, -107.9556, -113.3042, -107.7286, 13.6994, -92.8364, -2.3067, 44.7, 112.867, 114.02, 9.28, -86.1481, -111.3167, -91.535, -12.08, -92.4333, -7.38, -7.5, 124.8, -86.168, 48.367, -105.9392, -77.5, -72.45, -60.017, 31.4, -73.0667, -2.275, -91.4517, -83.8167, 110.13, 96.1, 106.283, 7.4472, -100.9097, 41.867, 6.8019, -102.4386, 31.38, 120.8436, 115.7664, -63.77, 28.583, 74.85, 145.1859, 74.883, -134.967, 90.85, 0.37, 130.6834, 0.467, -99.5017, 112.67, -96.5814, -61.278, -68.4, 120.9833, -109.7258, 121.0, 134.2263, 27.43, -86.2939, -86.2514, -98.4833, -85.8, -87.6522, -75.9833, -76.0, 116.145, -98.2039, -94.0211, -144.4792, -107.0167, -150.638, 79.92, -78.4833, -96.4433, 8.514, -80.2003, -117.65, -80.4647, -157.8025, 14.55, -71.9833, -92.5789, -82.6167, -72.1856, -82.5178, 1.3667, -75.7, -111.6306, 10.79, 163.683, -93.4817, -110.6833, -110.4667, -113.6667, -104.317, -121.5767, 117.42, -67.2333, -95.7836, -85.8353, -109.4667, -71.4, -93.65, -122.5, 32.573, -68.733, -90.7489, -49.138, -4.77, -67.65, -67.7, 7.08, -103.2717, -86.4, 29.57, -70.8644, 119.7497, 119.7497, 29.28, -89.9664, 163.6833, -117.25, -62.158, -75.4283, 115.9797, 40.73, 145.4253, -88.6078, 10.8483, -104.0722, -61.1, 0.55, -90.7664, 15.32, -45.37, 15.7, -42.82, -66.9889, -119.3833, -112.0303, 26.35, 15.16, 13.15, 13.82, -97.1642, -81.4328, -73.1333, 5.2267, 87.75, -40.53, 165.117, 16.883, 12.2839, -87.6236, -51.91, -79.3875, -81.5167, -97.2567, -85.6586, -83.1333, -82.0289, -88.8981, -79.0333, -121.9667, -121.9486, 37.867, -87.2314, -97.0753, -54.033, -60.6, 37.6, 28.133, 13.66, -79.25, -122.1242, 5.8875, 170.4167, -8.4558, 133.6201, -96.8581, -103.9214, 55.183, 11.9333, 28.22, -109.2333, -87.5483, -87.3794, -97.8, -8.0, 144.7094, 138.0684, 138.0637, 66.8194, 37.983, 5.3967, 151.1176, -94.3508, -82.6658, -92.6394, -93.2225, -95.7908, -92.9244, -83.94, -92.9097, -90.1333, -106.6667, -101.7386, -122.1142, -77.9844, -110.3378, -86.453, -79.865, -101.6333, -85.9167, 77.5, -91.2333, -88.8636, 16.82, -107.4336, -110.2333, -55.8333, 143.732, 152.7156, -101.5167, -112.2275, -121.5853, -96.6364, -83.3669, -115.95, 151.75, -94.8342, -57.1, -57.583, 0.2, 0.3, -104.82, -104.8, -73.6, 11.35, 59.633, -111.65, 58.9, 84.217, -99.2306, -99.2939, -93.1953, -89.6511, -93.3269, -117.9942, -71.3933, -112.9981, 39.45, -74.8458, -82.0167, 30.867, 115.633, 13.433, -100.825, 115.6, -77.8, -77.8167, -95.9733, -13.25, -74.7172, -13.25, -67.4667, -149.2542, 116.267, -75.74, -90.3483, -76.2689, -78.8617, -97.8725, -95.03, -98.817, 133.067, 137.967, 132.783, -83.1667, -88.3544, 153.217, 179.75, -54.91, -63.153, 23.417, -65.8989, -155.5767, -102.6125, -90.0597, -109.45, 62.867, -101.2922, -104.5867, -86.35, -108.0947, 146.5972, 7.2306, -88.6406, -71.4425, -123.3167, -83.1819, -72.035, -135.8667, -135.1833, -81.4167, -77.3, -83.7872, 10.65, 10.65, -97.3514, -113.8953, -120.4275, 128.82, 67.2, -110.11, -105.0, 97.033, 33.467, 23.617, -95.7831, -98.2511, -98.2539, 136.076, -120.15, -120.25, -102.2217, -112.1931, -142.9961, -103.3644, -79.4667, -107.2847, -79.5683, -90.4708, -98.1236, -109.2658, -99.5333, -119.2, -117.72, -108.4447, -95.8675, -114.7733, -155.6103, -66.1167, -97.4011, -74.6, -128.7167, -103.8333, -121.8667, -122.1164, -148.9692, -96.5914, -88.5425, -122.3667, -122.2833, -120.2167, 166.7333, -119.2978, -97.6097, -137.5167, -80.75, -80.6803, -116.1047, -122.1383, -107.2833, -100.4444, -81.8561, -100.6203, -94.9669, -117.8656, -101.3686, -79.3667, -98.6422, -101.2767, -100.8072, -100.5922, -97.2392, -122.2558, -85.7811, -123.1622, -109.8589, -98.1817, -76.6089, -100.345, -92.7333, -113.3167, -108.5167, -108.5167, -99.55, -90.8853, -80.1667, -96.4808, -80.6333, -116.0767, -76.6992, -0.242, 98.7, -75.58, -90.3439, -122.87, -122.8722, -106.2061, -100.2228, -110.7167, -110.7167, -104.4514, -98.58, -99.2497, 115.8075, 3.963, -103.5264, 34.433, 118.5372, -107.9058, -107.9167, -96.9772, 9.1414, 95.833, 10.3769, 8.16, 107.47, 116.12, 13.93, -5.5333, 144.8321, -80.6439, 144.97, -80.6539, 55.967, -104.6, -2.9553, 35.367, -90.6417, -98.5825, 135.5, -54.183, -54.183, -73.95, -103.625, -94.8022, 10.3481, -107.8722, 9.52, -95.7036, -91.7333, -102.8, -110.05, -61.3, -100.5372, -89.8733, -92.1822, -89.9864, -89.8036, -94.2494, 124.917, 2.217, -8.036, -99.7864, 48.15, 7.3167, -68.783, -68.85, 27.1, -70.933, 112.433, 101.58, 110.52, 103.383, 142.4173, 139.3375, -97.5714, -91.9364, 17.683, 4.2156, 13.0439, 121.0297, -105.48, 11.6992, 140.383, -120.5117, -58.067, -58.1, -97.8997, -58.02, -120.5128, -80.235, -77.9, -73.7833, -116.0278, -106.7422, -71.183, -89.63, -71.2, -88.7442, -88.5667, -0.675, 149.8989, 149.9017, 9.7656, -110.3667, 118.2789, 118.2242, -88.7167, -89.6617, -101.7089, -120.7833, -120.8, -123.9167, 27.2167, 34.633, 103.833, 23.117, -100.8167, 37.65, 35.58, -108.23, -108.0833, -108.4892, 15.55, 29.9, -23.9, 37.8, 158.3064, -66.1333, 39.9, 21.7, -120.0078, 15.3, -121.1833, -115.0167, 12.9203, -82.0819, 118.5519, 6.1256, 96.117, -96.4497, -115.47, -109.8675, -91.8861, -99.183, 44.22, -70.24, -110.87, -100.6392, -94.8833, -80.3, -80.1336, -80.3164, -80.2833, 104.68, -118.5833, 9.1, -103.4, -63.5667, -80.9047, -118.0197, -80.0333, -83.7144, -71.0186, -74.4489, -75.6667, -72.7167, -76.7633, -107.0333, -70.9211, -115.015, -63.1, 131.3145, 131.2988, -1.567, -4.73, -79.7667, -101.8333, -112.6333, -84.2011, -101.15, -102.0258, -79.9333, -102.1889, -79.8833, 6.9914, -82.2156, -118.7667, -177.3833, -112.8333, -106.2772, 25.7331, 21.8581, 9.8031, 2.0, -120.35, 27.3, 27.21, 21.58, -93.6617, -79.6, 9.1892, -71.1167, 8.7331, -95.9269, -83.6186, -88.7267, 27.8, -96.6689, -104.9619, 142.0867, 13.9314, -101.6192, -105.8167, -81.2967, -105.8825, 150.1844, -113.0161, -84.2867, -75.425, -95.1842, -79.4833, -83.6844, -96.8983, -113.0167, 167.9, 2.233, 134.9078, 134.8919, -111.5333, 147.2739, -114.3667, 3.017, -73.67, -83.2497, -111.1633, -81.9672, -98.9814, -81.9197, -76.8028, -79.9667, -75.87, -68.705, -80.8561, 13.574, 149.1847, -67.3, -76.5667, -75.0667, -114.4667, -111.6333, -64.6667, 24.48, -85.8889, 9.2267, -87.1414, -118.4089, -79.95, -87.9044, -88.0294, -87.9333, -87.9, -108.0142, -118.1056, 131.263, 153.9667, -117.6, -109.02, 54.017, 58.567, 66.933, -152.2817, -93.2947, -119.7758, -98.9514, -78.7167, -73.6183, -95.3667, -121.6092, -107.7333, 43.1, -80.7833, -98.0603, -120.9833, -92.6167, 73.15, 73.0, -113.6667, -113.5003, -112.6167, -58.536, 132.5688, -97.7047, -93.2167, -93.2289, -99.8333, 135.15, -89.7322, -91.8667, -89.0339, -101.35, -101.2964, -101.2733, 103.083, 27.53, -90.2103, -66.0333, -104.5833, 91.7, 104.02, 30.733, -84.1317, -65.4667, -65.4667, 113.987, 93.017, 113.9, -113.05, -149.4075, 128.75, 141.3667, -64.5, 138.933, 20.767, -100.6558, -122.3333, -100.6083, -98.4, -122.2667, -83.3833, -113.9678, -114.0911, -114.0925, -72.2, -73.8833, 15.05, -98.0244, -120.1833, -103.7008, -115.5469, 125.8258, 147.9777, 26.6, 140.467, 11.2667, -45.4167, -49.6667, -53.7167, -56.1331, 11.533, -99.2, 139.517, 125.295, 141.967, 131.083, 131.417, -105.2919, 44.29, 20.35, -109.5458, 13.27, -92.4369, -88.2397, -88.0333, -100.4489, -113.1528, -44.01, 12.15, -109.9514, 14.96, -80.4972, -107.92, -101.08, -109.7, 5.9533, -113.9256, 10.9342, -120.9506, -122.0481, 30.067, 30.32, 119.7331, 112.0, 27.47, -101.5089, 6.62, 122.517, -74.155, 11.0083, 27.783, 73.35, -76.118, -118.1619, -116.0794, 29.1333, 126.383, -107.6833, 9.2881, -1.8853, -90.5233, -99.22, 13.07, 45.85, -157.0961, 39.617, 143.35, 147.4333, 147.4167, 147.417, -102.9122, -113.1667, -67.9442, 32.883, -101.433, -64.7833, -64.6833, 7.8167, -91.6719, 100.983, -93.9333, -93.9619, -80.3, 104.2, 107.0, 118.6, 96.8, 95.0, 99.9, 101.0, 23.15, 23.2, -90.6381, -119.15, -83.3942, -121.9944, -80.5233, -72.0, -91.7231, -92.0319, -92.0406, -10.362, 7.8064, -86.4175, 150.2275, 7.48, -79.2667, -85.8417, -118.1053, -74.9333, -77.917, -37.06, 4.7381, -89.3169, -114.1706, -99.83, 11.0083, -121.9103, -79.5833, -100.2, -100.3, -43.867, -95.7461, -56.2, -111.8381, -54.083, 11.17, 9.0667, -57.65, 10.7, -111.5, -119.8, -69.78, -39.29, 16.4, 15.95, -106.1869, -86.4075, -80.3861, -118.3167, -90.1058, -83.6975, -78.4494, -80.4, -62.4667, -109.3075, -84.8275, -83.7833, -91.7556, -70.5833, -103.4667, 151.1247, -84.6139, -111.3, -84.4333, -73.55, -73.6167, -73.5667, -73.5833, -74.0333, -73.75, -73.4167, 6.9, -75.8583, -107.8792, -107.8975, 2.43, 3.5831, -71.4167, -78.7333, -0.508, -68.2167, -75.55, -65.7333, -119.42, -110.12, -110.2167, 11.2733, 30.17, 140.2102, 146.3792, -113.4167, 116.0072, 145.0964, -104.9292, -78.9664, -74.9697, -115.6667, -81.0872, -90.5097, -105.7517, -110.7169, -105.5667, -105.7, -92.7578, -149.4261, -115.0167, -101.6667, -80.6, -80.6, -80.6, -80.65, -153.95, -4.2, -8.16, -93.3147, 14.59, -38.36, 148.0308, -110.5889, 116.0089, 14.51, 16.39, -98.0833, 149.8458, 149.8383, -76.7358, -101.183, 142.6389, -117.6333, -81.6728, -75.8861, -79.9164, -79.9697, -84.6167, -91.1761, -114.2667, -117.2833, -111.6722, 141.167, -111.4425, -111.5167, 139.1837, -120.7236, -92.45, 37.667, 44.318, 43.25, -111.5872, -5.6156, -5.6, 41.867, -1.6858, -92.7672, -97.3667, -75.1833, -89.9744, -89.4614, -83.3325, -72.6236, -75.7264, -74.5, -95.8744, -120.8447, -41.9, -41.217, -121.4833, 13.65, -102.7586, -138.8, 150.1532, 146.4747, -107.95, -107.8225, -109.8833, -89.4117, 37.6167, -116.9558, 37.333, 13.195, 142.5, 37.5667, 37.5167, -125.0, 18.111, -103.9439, 17.0, 8.1792, -113.9667, -117.6833, 0.117, 129.917, 17.8, 43.15, -102.3164, 22.9831, 11.02, 11.057, -119.3333, -87.2989, -83.7492, 16.067, -80.755, -94.8233, -95.4508, -106.2606, -94.1542, -77.3, -115.2333, 138.8509, 117.6361, 147.1633, 146.8189, 146.4394, 140.4197, -66.9333, -123.0, 138.9469, 145.35, 31.583, 31.05, -80.75, -80.75, 140.7739, 140.7833, -122.0447, 139.4875, 139.4817, -112.8167, -113.1989, 117.8503, -58.447, -119.2333, -122.4353, -63.8333, 150.2544, 13.95, -89.0158, -120.1678, 39.033, -76.97, 36.0, 44.667, 29.18, 29.167, 85.317, 31.85, -81.8033, -115.9653, -111.7222, -92.2617, -115.7119, -92.3939, -115.8667, -92.3833, -81.5992, -105.8225, -115.5436, -92.0978, -110.3306, -155.11, 40.183, -121.5403, -80.6508, -94.2428, -87.7578, -72.9033, -89.9842, -115.645, -82.8183, -121.9303, -105.5997, 152.7717, -121.6425, -121.7167, -117.1667, -93.5878, -119.6833, -80.5333, -83.4411, -104.0233, -120.1833, -72.8153, -82.2711, -77.9053, -95.0056, -87.2019, -91.5647, -84.7697, -119.8833, -103.4578, -122.3081, -122.3328, -122.3156, -83.9333, -72.0792, -95.2236, -84.3369, -87.8956, -88.8533, -122.3867, -93.8789, -71.2994, -77.8883, -118.0711, -123.3258, 69.15, -0.883, 129.6, -107.4444, 149.5956, 40.283, -124.8, -116.55, -116.5503, -121.9356, -121.7333, 8.867, 11.5442, 7.5914, -105.0, 7.7, 28.367, 58.5, 90.43, 118.687, 12.5, 25.9831, 59.02, 104.717, 79.65, 30.4, -108.75, -102.7328, -102.7783, -110.2708, -115.8114, -101.0458, -101.3364, 115.5142, 7.6392, -7.3667, 71.419, -3.983, 70.03, 14.125, -125.7667, -85.3936, -111.6392, 157.267, -99.6158, 120.2442, 148.9899, 120.7578, -98.9167, 11.783, -86.6625, 12.98, 9.4842, 14.45, 23.44, 23.6803, 43.8, 115.9561, -1.1692, -1.2294, -0.8031, -127.8, -100.7078, -65.5167, 100.167, -77.0803, -93.7019, -86.3728, 73.967, 116.4261, 20.88, 33.0497, 140.983, 134.183, -83.9683, -115.3597, -88.3083, 139.2592, 73.38, 9.5717, 150.8363, 16.2, 153.3809, 41.517, 23.4, -91.0728, -87.5997, -53.9833, -86.2367, -95.3339, -79.3, 33.8, -66.3333, 23.583, 28.4, 21.0681, 33.4, 119.91, 32.217, 141.217, -99.17, -85.6333, 64.717, 32.917, 24.433, -82.3161, 97.4, 12.486, 7.2762, -3.07, 90.45, 77.07, -125.6, 20.21, 31.0, -97.7833, -78.8219, -78.9333, -109.7311, 151.35, 175.77, 73.5831, 55.5, 43.9, 142.08, 156.68, 46.667, -179.3669, 140.75, 144.7297, 58.733, -169.8, -175.8, 68.55, -110.0617, 33.6, 34.0167, 20.65, 13.12, -8.833, -142.9967, 135.496, 178.7, 157.7, -94.6431, 177.45, 72.67, -84.1667, 138.2, 129.866, 14.88, 127.967, 8.7192, 124.88, 136.967, 79.05, 92.067, 92.27, 47.417, 16.967, 127.683, 34.7167, -81.9197, 21.53, -61.6833, -3.821, 36.75, 36.817, 44.32, 158.967, 108.43, 104.783, 102.083, 100.167, 99.95, 36.09, 36.067, -117.8, 43.633, 10.98, 71.583, 152.9392, 11.2003, 127.87, -107.41, -116.5753, 125.383, 39.283, 127.42, 106.1667, 100.767, -123.8667, -123.95, 151.9939, 115.917, 116.65, 106.083, 6.21, -86.05, 177.5, 102.7167, -84.6167, 118.9, 108.217, 118.0, -1.6, -1.611, 120.85, -70.0608, 176.133, 112.58, 112.7, 81.95, -122.2647, -81.7158, -77.4, 105.95, -84.1144, -99.7692, 14.3, -64.25, 135.833, 140.7402, 146.3161, -119.5667, 114.15, 113.73, 101.8167, 150.8689, -7.283, 118.3956, 53.0331, 35.83, 149.7552, 146.5126, 146.5592, 117.1797, 76.0, -71.45, -71.4736, -93.8583, -77.9667, -89.3586, -83.2392, -83.2167, -86.6892, 46.23, 71.93, -77.467, 14.69, -129.0333, -106.6, -35.2, -35.25, -114.8333, -61.8167, -91.3408, -93.0956, 1.48, -76.97, -109.9772, 178.559, -4.0103, -107.6214, -96.6881, 14.89, 68.39, 25.38, -104.12, 129.5, 129.55, 28.3, 91.017, 71.367, 27.73, 15.03, 15.445, 32.32, -86.9653, -95.8867, -90.0814, -105.5, 5.7506, -114.6189, -99.5667, -99.4667, 39.57, 39.75, 22.55, -110.7761, 105.05, -90.535, 44.419, 134.5, 8.6314, 136.15, 79.983, -117.2833, 173.2, -117.2, 30.98, -7.267, -7.27, 145.583, -149.0717, 88.82, 125.233, -101.1667, -110.0511, -94.36, 89.07, -111.8319, -65.7833, 136.1174, 119.62, 116.533, 150.0847, 9.1217, 9.1333, -74.955, -118.9833, -99.91, 11.65, 13.306, 11.21, 6.95, 9.2731, 8.9108, 9.4064, -8.25, 9.9803, 7.3089, 7.2303, -68.133, 12.8083, 10.6014, 11.8653, 8.1414, 7.4281, -121.0008, -94.3736, 141.87, 41.967, 34.7, -88.7, -122.0325, -74.1694, -75.7514, -82.4128, -89.2667, -81.6236, -85.5033, -104.1886, -69.5367, 29.92, 151.7985, 133.4, -74.2219, -79.9, -103.4275, -121.2419, 0.05, -81.4997, -104.2575, -97.0036, 119.7314, -121.0178, 119.7989, -84.8178, -91.2744, -81.2192, -99.3333, -72.1911, -117.0475, -83.2008, -117.8803, -76.493, -76.45, -77.1294, -71.35, -97.3431, -74.7592, -93.0297, -80.9, -88.1183, -89.0817, -2.7864, -62.8333, -1.2158, -70.9333, -77.0481, -98.1189, -74.4364, -65.2667, -80.3614, -85.3953, -53.2167, -121.9667, -80.6275, -119.6828, 77.2, -117.3667, -102.8692, -109.95, -92.7558, -81.6333, -63.35, -95.895, -92.3122, -113.2897, -72.9333, -76.2108, -91.8839, -82.2156, -79.6667, -88.7189, -94.9392, -89.5325, -116.2933, -120.5333, 147.0833, -90.0167, -90.1303, -90.2511, -90.0289, -90.0833, -74.1333, -81.4317, 174.183, -103.8461, -103.8678, -65.8, -77.3833, -91.3672, -101.4897, -102.5833, -94.4897, -122.9, -86.1, -73.9692, -73.7622, -73.8803, -73.9333, -71.42, -116.243, -114.4833, -96.9578, 13.567, 13.3, 109.2, 141.6367, 141.6486, 136.7637, -79.0833, -78.9436, -78.9453, -79.05, -79.1333, 2.13, 1.091, 7.2, -86.4928, -128.9667, -56.98, -72.6167, 33.35, -67.15, 8.8931, 11.9064, 9.9653, 10.2442, 7.3364, 9.2242, 34.683, 139.05, 22.5, 19.02, 19.03, 139.5, 31.9831, 29.8, 140.7164, 43.383, 45.45, 165.98, 34.45, 18.95, 4.4067, -93.1594, -99.65, -81.4928, 121.0, -98.0467, -9.35, -104.0167, -104.0, -104.0, 21.9, -70.9, -70.9, -124.65, 18.133, -90.85, -169.92, 179.5, -159.7406, 24.9667, -97.05, -105.55, -97.7675, 109.55, 99.0331, 138.2164, 34.4, 47.783, 60.067, 43.117, 31.9, 44.0, 60.8694, -12.1, 40.2, 118.333, 131.65, -110.9167, -110.9681, 143.13, -104.1333, 105.807, -113.95, 114.5778, 62.75, -105.0, 49.95, -86.2492, -165.44, -75.0833, 102.7167, 136.4926, 29.97, 146.0, 145.9719, -126.6167, 130.017, 151.5766, 151.5759, 8.4, -116.05, 7.1525, 7.1056, 11.0058, 13.5916, 19.49, 10.5492, 5.9025, 21.8842, 18.02, 12.6445, -73.2208, -76.1922, 167.939, -97.4353, -76.2833, -88.95, -72.5333, 141.0672, -76.788, -126.8, -126.8, -126.75, -84.0603, -75.3583, -111.65, -111.6325, 16.2397, 16.12, 18.65, 121.7794, 19.48, 129.9167, 116.6586, -109.0133, -110.0, -60.9667, -61.0, -72.6167, -105.0133, -0.417, -117.8667, -141.9292, -93.2253, -108.25, -108.25, -79.4667, -79.4167, -124.2333, -124.2436, -71.1383, -113.7667, -119.5097, -71.7333, -106.3667, -53.6667, -117.2, -105.05, 94.117, -107.15, -98.7747, -94.0333, -89.2417, -123.2833, -100.7494, -100.6694, -147.3253, -117.5667, -114.8333, -71.6303, -85.5997, -81.1494, -99.8361, -117.25, -99.9386, -71.1667, -73.4167, -82.6167, -111.0519, -97.85, -97.85, -97.8, -97.8486, -75.5197, -72.0642, 1.283, -108.2864, -77.9667, 13.3025, -117.5667, -123.4667, -71.0833, -70.4167, -74.05, -74.9833, -72.3167, -68.8, -75.6333, -70.4, -1.25, -17.033, -17.05, -15.93, -7.5833, -7.583, 166.03, 166.4333, 166.45, 3.794, -66.3, 12.2917, 49.6, 13.65, 33.367, 27.267, 14.5, 31.25, 19.85, 90.681, 25.85, 27.633, 86.883, 11.833, 31.633, 37.767, 106.65, 82.9, 48.1, 15.2, 48.8, 72.9494, -95.6436, 150.545, 150.5353, 20.7, 54.75, -61.92, -107.95, -60.883, -75.417, -175.2, -171.917, 59.617, 120.1103, 130.8976, -104.7833, 65.683, 6.9506, 139.0047, 139.0056, -109.38, 24.6567, 11.0567, 11.2553, 9.3269, 41.2, -110.2569, -51.75, 80.767, 24.883, 72.9, 36.97, -109.8081, 94.47, 21.7333, 147.1961, -116.9903, 34.733, 11.9331, -73.9808, -74.1167, -113.2667, -123.05, -123.05, -123.0833, -122.9667, -122.7517, -64.2667, -98.6564, -100.4175, -97.9667, -98.0919, 151.7413, -95.3844, -85.9833, -79.4, -122.2208, -122.2642, -113.8981, -100.9447, -90.5133, -100.6333, -122.4433, -123.2333, -79.6333, -112.3342, -111.7553, -81.1508, -122.85, -84.2486, -114.4714, -81.0331, 147.3711, -96.717, 11.0272, -100.5342, -82.2167, -92.7739, 8.5742, 149.8374, 11.5539, 10.2767, 9.3533, 12.4381, -55.51, 143.217, 49.65, 131.083, 26.5, 26.0331, 5.5553, -74.1, -82.0778, -105.0608, -76.0333, -117.395, -127.6833, 169.58, 31.55, 5.955, -121.7167, -120.3333, -120.4264, -81.2833, -99.7833, 11.8089, 7.1792, 23.9331, -83.3056, -88.5036, -99.7633, -87.955, -86.4667, -93.38, -76.05, -121.9639, 28.0, 10.33, 30.63, -118.6967, 72.967, -7.57, -7.567, -0.95, -103.2372, -91.9131, 133.0581, 14.4831, 8.7864, 7.9264, 141.717, -101.7206, -75.4442, -87.1833, -111.9667, -112.0283, 16.17, -138.3, 129.067, 82.95, 37.479, 55.383, 7.9933, 35.633, 143.2164, 135.5, 20.8, 9.5183, 131.617, -119.2275, -104.42, 143.15, -105.22, -74.0667, -119.45, -93.9167, 133.917, 20.967, -80.8653, -98.315, -96.3033, 86.5, 17.87, -97.6469, -97.3833, -97.6006, -95.85, -96.025, 8.0506, 156.2, 45.45, 66.05, 52.583, 151.28, -113.8161, 17.1, 16.3997, -94.7603, -75.591, -116.2833, 8.2525, 6.7567, -93.0239, -114.1, -107.9667, -139.8333, -144.9833, -110.8328, -74.9839, -104.5561, -86.5631, -85.5161, -91.6667, 120.4167, 112.4331, 93.23, 70.883, -122.8064, -44.81, -119.5667, -60.85, -119.55, -113.3667, -89.3506, -94.9297, -92.2422, -111.6539, -98.7664, -114.5739, -88.0817, 32.983, 115.583, 10.033, 6.3756, 146.3233, 20.4167, -102.1356, 42.0, -122.9033, 138.217, -96.0233, -95.8992, -119.5333, 147.6008, 147.598, 91.717, 160.53, 73.3831, 142.967, 6.55, 140.9, -84.2233, -96.1258, 6.5331, 6.5392, 38.1167, -84.5308, -86.4692, 118.4889, 10.0519, 86.133, -100.1447, -123.615, -178.717, 115.1117, -117.65, -116.9717, -89.2075, -90.94, 135.4456, -155.2833, -86.5519, 2.9206, -126.0, 48.3, -110.6, -85.4492, -106.38, -106.3153, -155.8747, 17.9667, 7.2267, -110.7344, 21.9, -103.2683, -64.329, -93.7417, 4.833, -80.8733, -80.0833, -93.7394, 149.0828, 149.127, 149.1229, -119.3, -0.65, 19.1667, 105.4, 148.4667, 148.4589, 150.7069, -112.6389, 37.9, -103.7058, -103.7219, 81.95, 15.29, 15.16, -95.1464, -122.6047, 36.0, -111.7369, 55.1, 55.1, 147.8753, -112.8003, -124.0192, -117.4964, -79.4167, 25.7719, -98.61, 9.7887, -122.1997, 9.6014, -81.3331, -81.325, -123.5317, 1.75, 99.8, 105.83, 2.359, -105.3667, -74.05, 19.0, -116.2667, -106.0925, -66.4667, -78.6167, -68.6744, -117.8389, -121.5531, 22.1, 148.95, -6.5, 30.417, 18.38, 6.1575, -67.07, -92.8106, 135.517, 13.98, -93.7036, -93.7503, -97.55, 13.1, -83.4, 72.8, -78.8667, -78.8333, 139.383, -102.3464, -88.5581, 18.6331, -92.6467, -95.2725, 12.86, 16.41, 10.7206, 91.867, 25.933, -97.5969, -73.05, -119.4333, -119.4333, -119.45, -77.48, 163.17, 33.117, -96.4833, 11.933, 10.2219, 12.7, 12.68, 12.65, 18.3, 98.7, 10.8667, 21.57, 164.17, 167.98, 110.8, 162.483, 90.62, 82.2, -174.62, 137.87, 94.2833, 112.933, 57.9667, 40.68, 82.2, 79.7, 75.7667, 76.98, -178.4833, -94.43, -69.238, -76.4933, 75.25, 141.017, -119.0461, -107.8408, -123.9239, 107.983, -95.2808, -75.7167, -88.9106, -75.7167, -75.6667, -75.6667, -75.6167, -83.2, -95.5464, -106.25, -137.05, -92.4467, -1.52, -1.512, -2.43, 167.2406, 44.43, 5.413, -6.9, 29.33, 6.14, -5.05, 16.05, -68.2, -1.93, 24.8864, 25.3506, 25.3756, 25.4831, 25.3967, 7.117, -107.6686, -109.6436, -7.8603, -40.04, -107.05, 142.3158, -152.5011, -113.0564, 13.07, 19.2803, 22.8, -107.6333, -99.59, 23.65, -5.8728, 15.3, 8.9595, 28.783, 136.2, -93.2308, -87.1183, -84.8167, -90.5545, -80.9333, -76.6667, -109.0167, -84.18, -116.1, -117.2467, -117.2333, -102.1167, 17.12, -1.5833, -1.27, -78.6167, -119.1753, -119.3667, -110.5167, -110.4667, -125.1333, 10.4325, 44.0, -93.8167, -85.6833, -93.1261, 156.483, 10.3689, -101.2061, -100.4933, -57.9, -119.3111, 18.96, -102.33, -125.1, -98.75, -122.4717, 150.7342, -121.6744, -103.4819, 100.35, 33.42, 30.22, 9.9267, -98.78, 11.8803, -69.229, 140.4864, -100.2989, -88.7719, -88.55, 10.1381, 31.85, 32.4831, 11.0331, -111.4483, -80.3728, -107.0169, -170.7136, 89.08, -115.1217, -116.0561, -116.1017, -81.2956, -75.8217, -82.7883, -99.85, -120.5403, -81.3667, -4.4297, 23.3928, 18.8667, 105.167, -96.2536, 104.68, -4.5353, 13.3514, -100.98, -87.6225, -95.6039, 19.7667, -108.3506, -111.2167, -110.7167, 24.2106, 21.61, 21.62, -132.05, 46.883, 2.7, -48.3, 2.7367, 2.6264, -118.0939, -118.0836, -36.7, -64.1, -106.35, 146.9886, -75.6167, 144.0758, -121.8514, -149.0992, -104.9169, -64.083, -76.32, 38.3, -116.5097, -116.84, -73.185, -107.38, -122.1403, 23.5, 40.0, 119.73, 79.3, 65.7, -100.9736, -1.65, -1.6364, -89.0867, -85.6606, -117.0878, -116.1925, -101.4533, -101.5575, -83.9614, 106.13, -65.7167, -112.4386, -101.3897, 64.133, 116.3308, 11.97, -103.2061, 104.62, -94.8778, -86.4858, -107.6236, -37.43, 71.12, 17.4667, -149.58, 81.5, 117.6692, -46.867, 70.083, -121.6239, -121.7167, -110.35, -117.5478, -90.4286, -108.9833, 138.6281, -90.4978, 21.3708, 2.617, -55.2, -51.183, -60.483, 174.983, -68.1333, 119.5811, -74.6167, -56.73, -95.5586, 2.3367, -88.2958, 2.45, -117.6833, -87.6672, -106.0667, -121.5894, -121.5833, -114.2897, -81.5572, -81.4392, -103.2667, -104.6567, -109.9167, -114.1708, 148.1639, 69.383, -65.0667, -76.7, -90.4506, -87.6803, -95.0678, -107.8667, -97.75, -113.35, -111.6167, 10.315, -116.9442, -41.783, -41.75, 137.3333, -112.8292, -81.3181, 151.0181, -102.17, -82.3475, -64.3333, -80.05, 11.6908, -79.6339, -95.2892, 133.017, -113.8858, -118.1447, -103.7408, 44.7, -88.4781, -56.98, -105.13, -68.883, -57.152, -56.517, -108.92, -83.18, -120.6856, -120.6283, -101.5333, 13.47, 13.4167, -44.96, -117.65, -52.4, 11.7808, -77.267, 29.2457, -103.9167, -73.0014, 151.5919, -106.8528, 76.467, 85.1, -37.267, 21.7333, 11.47, 101.1333, -76.4167, -76.4167, -0.42, -124.0833, -84.5919, -119.9972, -41.133, -38.217, -97.2814, -113.7622, 39.25, -78.0319, -108.6942, 76.933, 10.8281, -96.3472, -96.1558, -88.9781, -145.4983, -88.1417, 6.95, -116.9311, 117.6836, -108.95, -58.033, -72.24, -111.3447, 40.9, 77.633, -60.45, -70.9833, -100.05, -117.45, -119.7167, -120.0, 148.1902, -109.8378, 116.0189, -103.3833, -99.0897, 151.2443, -85.4333, 20.3, 57.1, -103.5, -105.6886, 18.2, 18.23, 15.729, -105.4739, -80.381, -55.8333, -55.833, -83.4167, -8.65, -61.9, -114.4167, 167.217, -89.7994, -61.55, -82.6833, -136.2214, 27.92, -81.2744, 23.9669, -84.7928, -101.8667, -89.7167, -137.3667, -52.41, -121.2506, 10.883, 40.533, 116.0433, -74.6828, -122.7333, -122.8167, -97.2417, -77.25, 100.277, -123.3, -118.8528, -118.6264, -118.7964, 81.9, 67.6, 119.5, 122.067, 108.17, -7.55, -3.2258, -108.2333, -66.7333, -82.9967, -77.0628, -77.1833, -115.8008, -158.05, -87.1986, -87.3167, -87.1869, -67.1667, -119.5833, -119.6, -102.5897, 45.02, -89.5664, -89.6839, -114.5333, -75.133, 22.95, 9.4331, -75.8, 50.3, 38.8, 116.92, -60.55, -72.0333, -71.017, 6.3864, 56.3, 2.8731, -80.4361, -83.5742, -97.2897, -94.1106, -87.5067, -100.8239, -89.92, -95.4097, 14.24, -103.1736, 115.9, 115.9764, 115.8667, 26.3306, -89.1072, 12.5, -73.57, 30.85, 86.22, 12.91, 14.2, 71.515, -36.76, -122.6078, -101.26, -77.3167, -77.3167, -77.4333, -78.3667, -78.4, -78.3167, -78.3, -71.95, -132.9372, -98.0097, -87.2658, -70.5667, -70.05, -84.9767, -109.885, -82.1667, -40.483, 158.5833, 69.15, 158.65, 108.867, 34.2667, 60.77, -99.5333, 170.33, 10.8608, 8.7419, 9.2878, 31.12, -112.0947, -105.85, 108.1, 100.8658, 99.9, 101.15, 100.0667, -89.1303, -75.2311, -75.0111, 46.352, 25.5, 8.4425, -73.0833, -78.0667, -113.3, -101.6011, -88.308, -104.4936, -99.3186, -110.9167, -81.9167, -80.0272, 100.267, -75.5011, -112.0825, -112.3667, -112.0039, 100.167, 98.4, 98.317, 106.633, 103.967, 9.73, 10.5164, 7.7, -61.35, -98.25, -114.0667, -105.14, -111.4017, -89.7083, -79.467, -73.086, -89.9775, -82.7189, -80.2167, -79.05, -90.2167, -90.2167, -98.5325, -41.48, -65.7592, -77.1333, -112.7833, 0.1, -78.1203, -79.9433, -100.535, 26.9831, -115.8006, -96.1817, -120.6422, -114.0833, -72.8333, -100.2856, -101.2667, 17.833, 22.5831, 30.38, 29.483, 30.78, -121.4167, -62.383, -85.1936, -121.2025, -113.3333, -80.7014, 16.75, 27.17, -58.317, -109.683, -63.883, -105.15, -98.9, -98.9, -97.0122, -118.8253, 142.167, -119.95, 36.4, -81.6, -96.0667, -114.0, -114.0, 151.2448, -109.8581, 43.383, 30.87, -81.5356, -96.0, -92.0189, -104.0667, -104.1583, -91.9347, -112.25, -116.18, -111.2167, -96.8, -96.2167, -121.2561, -127.7333, 150.2167, -113.5, -122.4833, -108.4072, -100.3167, -100.5667, -94.1089, -116.1189, -111.8378, 103.6833, 117.0831, 106.667, 119.78, 104.52, 105.42, -71.2525, -121.1822, -79.9833, 26.117, -86.685, -108.4597, -114.45, 8.683, -88.1828, -96.3258, -112.7386, -44.91, -47.333, -48.967, -41.783, 23.6231, 130.4217, 7.5881, 92.267, 10.393, -76.22, -76.3, -82.6475, 78.28, -120.6831, -130.1, 21.49, -106.5333, 65.933, 21.52, -79.9217, -80.2144, -85.1667, -90.1333, -122.6833, -122.6833, -122.6167, -80.6, 39.533, 24.5, 43.0, -120.8244, -120.7333, -120.6456, -74.4025, -102.8281, -84.3711, -101.7022, -102.2153, -99.3808, -93.6944, 57.683, 14.1, -82.1422, -149.0833, -67.3833, -90.4656, -94.4544, -73.4667, -73.4667, 12.133, 37.23, -60.7667, -136.3667, -111.7339, -75.4464, -110.9442, -104.5678, 26.13, 23.32, 24.5833, 19.35, -104.5164, 19.73, 24.75, -99.0, -116.9544, -97.8, -56.8833, -86.3358, -87.9714, -71.65, -82.7, -76.6592, -70.6961, -4.1167, -86.3167, 13.267, 16.9333, -1.15, -94.6614, -90.9683, -112.5711, -63.8333, 19.283, 79.47, -14.917, 19.37, 141.63, 143.8, 131.3831, 129.38, 23.5331, 158.2167, -127.95, -74.8, -68.4833, -73.8, -73.9167, -4.733, -3.167, 11.9, -123.7, -96.5553, 149.2747, -163.05, -55.4, 144.6142, -150.0819, -119.1167, -4.367, -82.5167, -119.6333, 128.65, -93.5861, 84.0, 78.03, 129.15, 58.0, 32.2, 135.2928, -114.2842, -115.25, 15.7, 32.4331, 33.4797, -100.2875, -111.6, -121.4464, 29.45, 98.672, 28.767, 149.2, -114.1906, -114.2419, 34.5664, 131.317, 71.75, -117.5883, 11.5156, -93.3169, -117.7658, -95.5661, -80.1406, -45.0, -97.0903, -97.1019, -66.5253, -100.931, -77.9667, -77.9667, -6.6, -25.698, -55.7, -8.6164, -8.6494, -88.6364, -83.4181, -83.2556, 109.3, -88.9983, -111.8986, 36.3164, 12.95, -55.5833, 73.85, -155.5583, -76.6, -79.0089, -120.5667, -89.5453, -105.15, -90.4056, 20.2331, -102.3894, -121.8, -106.6464, -81.2667, -103.15, 46.33, 9.484, 21.7967, 21.7864, -63.967, 143.1, -106.3333, 10.9769, -89.4342, -89.6997, -71.2167, -98.3167, -98.2833, -98.2667, -7.4167, -103.3519, -109.2056, -119.02, -135.1167, -116.4992, -91.5058, -70.25, -84.9925, 141.6333, -2.45, 141.4705, -122.9486, -122.6003, -70.3003, -122.6894, -86.5258, -8.6, -120.4719, 13.57, 13.6, -80.45, -51.16, 13.75, -52.233, -35.43, -48.72, -48.583, -8.7, -16.35, -63.917, -82.8872, -52.8167, -124.8333, -124.75, -124.9333, -141.0061, -134.6447, -127.45, -154.3164, -123.4317, -123.4, -97.0592, 147.8333, -94.0206, 137.7144, 137.79, -59.15, 70.25, -72.2, 92.717, -54.1667, -166.8667, -69.2622, -79.25, -122.7833, -79.2667, -64.9833, -80.2167, 25.617, 8.78, -90.9719, 7.02, -127.3667, -61.4, -61.3833, 118.6317, -158.6167, -61.5333, -78.2833, -82.4194, -97.3094, -74.6847, -96.6333, 135.8558, 135.8511, 152.911, -97.4264, -122.8833, 147.217, 16.87, -96.4278, -107.8331, -124.5011, -78.9667, 138.0104, -118.0333, -124.3333, 32.2297, -148.0672, -57.2, 30.45, 37.217, -122.7586, 168.32, -87.8636, -91.3856, 25.6283, 25.6589, 25.6017, -55.971, 10.067, 130.8, 83.383, -118.6333, 42.7, -46.367, -101.3744, -65.7333, 14.2586, 23.067, 14.2, -121.5, 27.067, -94.6333, -94.6264, -98.5686, 15.8, 29.017, -116.855, -113.5744, -90.8411, 13.0639, -123.1286, -73.92, -73.8842, -78.9833, 127.73, -79.25, -105.035, -106.9883, -107.1333, -108.7667, -114.7111, -108.7592, -124.5, -124.55, -124.5, -124.5167, -124.0689, -102.6467, -124.0625, -54.383, 34.9, -100.5, 101.367, 99.8, 17.233, -99.7908, 14.4192, 14.45, -115.5833, -91.135, -89.7283, -85.1967, -102.9833, 14.99, 12.445, -61.5, -98.7281, 11.62, -102.65, -130.0167, -90.3017, 107.967, 133.9, 145.5517, -100.75, -102.43, -102.58, -109.65, -99.31, -116.9, -100.62, -112.4322, -93.3878, -112.4208, -100.1617, -60.483, -55.476, -51.383, -104.3714, -68.0089, 11.5383, -111.8825, -80.4167, -92.0747, -2.7031, 28.183, 28.217, 28.27, 31.27, -101.8561, 119.067, 15.767, 138.0014, -68.1333, -110.8189, 22.73, -119.9061, -116.8353, -120.6953, 21.5667, 32.383, 12.683, -95.6292, 38.15, -75.6822, -63.109, -93.5839, -89.4519, -87.8672, -87.5906, -120.5167, -89.7564, -105.6667, -78.555, -122.8, -122.6833, -122.7333, -122.6833, -122.7667, 37.149, -130.45, -130.45, -130.45, 7.42, -120.8081, -43.117, -119.8167, 20.73, 13.42, -98.4942, -101.0, -89.65, 76.383, -111.0167, -36.867, -122.5164, 150.9127, -119.7581, -80.5167, -87.7622, -71.4325, -81.4, -70.1833, -123.2303, -111.6508, -148.3333, 24.467, -95.3297, 35.333, 22.7667, 78.4, -110.93, 70.367, 28.3331, -1.94, -4.367, 126.7, 118.53, 27.0167, 79.43, 36.517, -98.2, -104.6089, -104.65, -104.4983, -104.7169, -96.483, -67.5, -72.67, -83.6333, -67.5, -57.9, -65.904, -83.8, -83.017, -73.1, -86.9, 118.73, 101.4, -63.65, -165.8, -86.3, -138.8, 13.92, -80.7842, -87.0422, 21.9667, -117.1861, 39.9, 31.02, 128.15, 29.3181, -111.3064, -84.833, -71.7, -70.967, -54.95, -74.15, -68.4, -81.9983, -57.283, -75.37, -114.28, -103.48, -122.95, -152.735, 27.7, -97.3842, -100.2472, 28.9, 13.483, -99.1925, -79.2825, 79.833, -82.8, -155.8219, 28.0789, -158.1197, -122.3333, -77.9, 126.92, 69.083, 26.4167, 127.283, 125.8, 125.67, 24.73, -118.8778, 28.7, 46.125, 97.167, -46.05, -46.0331, 124.867, 85.55, 91.63, -64.0333, 98.42, 120.333, 119.03, 118.95, 124.95, 108.617, 110.467, 123.917, 89.567, 117.85, -103.9833, -124.0333, -124.6167, -99.7578, 147.7937, -77.3, -69.6333, -114.2272, -120.7833, -117.0833, -127.65, -128.0333, -71.3833, -71.3833, 26.867, -112.9833, -112.8, 145.5447, 36.883, -108.4922, -106.3833, -111.02, -122.5167, -122.5167, -122.5, -122.5, 66.938, -126.9, 9.883, -122.9136, -124.555, 144.2578, -70.67, -120.9475, -119.8525, -84.5836, -91.4281, -120.9419, -91.1919, -125.3, -70.683, -100.2389, -71.517, -109.25, 150.6792, -88.7189, -83.5692, -78.5, -39.3, 109.2167, 95.783, 95.85, 146.3467, 118.867, 11.2, 152.18, -106.7333, 130.0161, 130.0148, -107.8667, -123.5333, 18.2, -87.7861, 13.698, 105.179, -107.4167, 9.0017, 13.456, -61.55, -75.513, 43.491, 35.488, -113.2594, -103.7492, 109.963, 8.5731, -74.2569, -89.5472, -112.0333, -121.7425, -120.7167, 81.667, 11.1058, -89.8667, -61.5, 70.783, 88.7, -161.1, 24.3, -78.6839, -78.7819, -78.6989, -103.0656, -96.7439, -68.38, 79.433, 24.37, -116.9081, -105.0044, -100.98, -100.95, 50.6667, 15.2, 14.43, -113.88, -98.2736, -117.6525, -116.1167, -111.65, -111.7333, 92.2, -70.6719, -108.7722, -108.79, -147.67, 96.2, 89.233, -101.9461, -92.1167, -88.1594, 26.5164, -177.8, -177.917, -144.333, -109.2569, -77.7, -67.75, -103.2828, -103.0536, -103.2108, 25.5, -159.806, 49.6, 70.3, 55.933, 13.7, -92.8925, -98.55, 73.333, -104.4325, -104.4428, -55.3, -15.95, 21.3681, 21.3058, 12.98, 12.6842, 26.7781, 28.665, 23.633, -98.9214, -79.4, 120.0458, -81.7667, 125.3294, -107.1997, -93.7167, 36.0, -97.7833, -123.73, -104.575, -104.5833, -110.7456, -103.38, 101.3406, -78.0753, -74.1028, 26.5081, 34.917, 65.67, -115.4603, -71.1264, -75.9319, -75.9667, -105.6667, -72.9333, -105.7167, 30.82, 82.3, -34.917, -34.9233, -105.7364, -59.7, -79.2667, -104.2881, 153.1006, -122.2986, -98.5253, -80.2167, -103.3675, -117.1894, -121.2167, -121.1392, 119.0131, -108.7281, -104.9428, -101.7167, -122.2386, -95.0803, -103.9183, -122.2536, -121.9211, -117.3167, -117.8347, -98.5197, -113.8, -113.9, -106.2111, -105.5722, -105.55, -55.0167, -121.7, -120.8, -93.8, -96.2658, -95.0161, -109.2572, -107.7167, -95.2419, -102.5533, -111.2667, -114.7931, -105.4164, -115.3375, -105.3333, -93.6381, -97.45, -111.8333, -112.5667, -100.6608, -92.61, -90.0003, -124.1167, -102.05, -117.4131, -97.2833, -97.2947, 12.1031, 15.65, 10.6356, -104.5667, -104.6, -104.6667, -104.5, -104.6667, -104.5833, 15.83, -79.6947, 6.7433, 4.03, 12.4708, 10.4, -93.915, -79.2333, 13.67, 43.7, 11.4425, 11.367, 134.049, 9.6758, -88.9883, -76.7, 102.45, 32.783, 140.7494, -1.7331, 5.6058, -77.7381, -106.0833, -119.7711, -119.8167, -87.1753, 63.183, -118.7314, -86.2167, -98.9, -44.467, -90.5803, -108.7769, -59.05, -94.9667, -94.9833, -101.1, -89.8772, 15.97, 15.93, 1.1789, -118.1833, -118.1833, -118.1667, -111.7892, -64.8667, -99.9106, -67.367, -22.717, -21.9, -116.7494, 27.267, 7.9956, 7.383, 7.7942, 8.3308, 8.5833, -89.4508, 28.12, -6.2867, -66.117, -91.7719, -114.7322, -123.7931, 32.02, -102.3192, -101.7886, -114.1581, -112.0775, -117.1597, -119.2633, -81.7936, -90.3889, -122.3772, -111.81, -72.1333, -79.45, -79.4333, -77.3203, -123.1, -123.0833, 143.1425, 150.7794, -84.8778, -88.9322, -90.8333, -80.5206, -108.0386, 15.56, 83.55, -123.3572, -91.8875, -80.9, -81.8833, -81.8833, -81.8833, -79.3333, -104.4478, -107.7583, -78.7492, -100.2333, 13.475, 24.6, -107.7853, -107.7492, 11.4, 24.04, -74.3667, -116.315, -114.92, 14.45, 14.58, -134.95, 18.13, 17.92, 12.612, -68.5167, 99.667, -67.2497, -103.3333, 12.1, 134.9555, 11.4844, -78.63, -67.8, -64.083, -64.261, -43.167, -69.283, -67.749, -52.083, -98.8117, -107.2667, -50.91, -99.983, -88.9514, -89.4986, -81.7119, -83.7972, -69.1775, -107.3, 18.23, -98.9658, 22.067, 17.4697, -118.3714, -62.9, -85.8333, -55.5433, -112.0, -101.375, -72.7158, -118.2244, -117.3614, -117.3881, -108.3742, -61.2167, -92.6122, -64.35, 32.18, -64.7833, -72.1667, -69.0333, -73.5, -69.55, -70.4, -78.8667, -58.6333, -64.3167, -71.8333, 19.9, 26.133, 13.049, 46.733, 46.7, 40.5167, 119.53, 39.9, -106.05, -108.75, -77.6717, -79.9742, -122.0333, 20.24, -116.9667, -55.8167, -81.3667, -87.7017, 19.9, -102.4333, -81.4167, -100.5358, -72.2667, 40.0, 139.756, 40.0, -112.8414, -101.3833, -59.75, -97.6619, -101.55, 11.8417, -54.3, -52.367, -89.0708, -104.9042, -86.2097, -70.9175, -72.8045, -86.8936, -77.6767, -92.4917, -92.4667, -8.25, -92.8181, -112.25, -86.1758, -89.0931, 150.4775, -97.0567, -70.6, -100.2119, -87.2269, -77.1486, -117.1142, -94.6292, -84.6919, -112.2167, -103.6933, -57.8833, -79.8961, -114.9167, -114.9167, -77.6805, -110.6833, -119.6564, -90.5647, -85.2911, -107.2667, -96.1686, -118.85, -106.2453, -109.0528, -75.7222, -56.1167, -104.53, 80.2, 22.37, 63.417, 117.1456, 8.567, 6.2064, -82.9839, -83.8158, -112.2906, 9.5167, -91.2778, 2.533, 103.683, -98.0, -99.5861, -91.7758, 148.6261, -90.8853, 112.8, 18.46, 12.5831, 148.7897, 12.5, 122.27, -85.1514, -117.6569, -78.7728, 33.45, -4.6331, -115.25, 13.48, 108.53, 14.9, 21.57, 27.88, -111.1508, -109.9586, -65.6408, 134.5291, 11.65, 12.82, -99.7333, 11.3833, -117.3625, -60.785, -114.05, -100.5264, -99.3358, -95.7675, 145.5381, -91.3756, -123.3658, -91.0167, -121.8, 138.8342, -93.0975, 12.1292, -93.2789, -108.0167, -107.8833, -80.4667, -65.35, 138.6883, -99.6997, -89.245, -88.4122, 24.9831, 32.833, 10.87, -100.8167, -117.8, -6.333, -15.82, -128.8, -121.0722, -2.5844, -132.4333, 14.55, 16.43, 12.0819, 43.6, 39.417, 39.82, 12.104, -104.5083, -6.3317, -100.4611, -6.35, 9.3406, 11.1, -0.3581, 10.1742, -68.117, -96.2869, 8.9694, 4.4467, 115.5022, 115.5022, 8.6358, 177.05, -73.1, -86.5044, -108.5397, -120.8894, -55.6667, 25.95, -78.8333, 25.25, 26.015, 25.7119, 11.05, 11.78, -80.6167, -79.6697, -78.8858, -104.1981, -76.1908, -80.5936, -66.7167, -108.7, -108.8372, 175.3, 81.2167, 145.8547, -115.493, -123.0472, -107.85, 135.9, 44.567, -110.5661, -84.5761, -99.9925, 10.2233, -105.6611, 97.83, -70.55, -70.5372, 141.633, 19.767, 102.72, 102.967, 28.6667, 88.167, 26.3692, 26.4, 26.3667, -113.7575, 7.8842, -67.57, 71.52, -85.4528, -90.4792, -104.0939, -95.1428, -80.1333, -88.6, -75.3667, -101.2833, -86.8883, -87.7319, -98.8092, -101.1711, -161.3167, 73.88, 63.567, 96.4, 28.2003, 26.6, -92.6889, 40.28, 8.9567, -114.9911, 146.5094, -62.5, -120.9833, -72.9781, -99.65, -104.9742, 66.967, 14.26, 76.183, 38.7, -104.9333, -109.3442, -123.5356, -118.3047, 10.7881, 34.68, 13.4, 124.883, 22.0331, 34.317, -123.4167, 7.1081, -69.3833, -95.9, -0.35, -101.28, -110.8186, -60.0167, -60.0, -73.2, 11.6, 57.7167, -111.7661, 9.0719, -125.2667, -125.25, -64.3833, -64.3833, -79.27, -70.45, -107.3528, -121.4169, -121.495, -121.3, -121.4, -121.5897, -71.1667, -94.9761, -123.3667, -113.9667, 24.95, 9.35, 12.94, -109.6808, -9.22, 130.3, 78.75, -120.2406, -111.0, -119.2925, 46.2667, -83.9667, -84.0797, -62.5833, -8.95, -106.1444, -109.23, 0.15, 133.333, 106.7, 103.9, 64.217, 110.117, -111.6789, -86.8133, -91.1242, -84.1667, 5.091, -101.8067, -51.8, -122.4714, -122.8722, 5.4017, -114.0983, -109.4028, -84.5542, -72.0194, -65.8833, -82.26, -16.463, -116.5789, -122.1, -86.8094, -70.8833, -98.4608, 3.2, -115.0908, 57.633, 133.233, 139.85, 104.133, 46.633, 16.66, 14.257, 54.091, -5.4981, -5.6614, -146.9767, 13.3158, 22.5, -6.752, 66.5294, -91.5364, -86.0856, -88.9461, -73.3167, -82.9464, -123.0011, 13.26, -106.0158, -106.05, 28.1, -111.8547, -42.28, -80.97, -121.6664, -121.6081, -111.4161, -79.5458, -95.183, -97.65, -100.12, -80.4822, -75.5892, -92.8106, -80.6228, -75.5103, 28.6775, 29.3667, 29.615, -94.8047, 25.18, -53.2833, -119.25, -119.2833, -119.2333, 121.6239, -64.0333, -113.9333, -113.9008, -119.8333, -141.62, 46.683, 5.0, 23.1158, 23.71, -112.1167, -65.483, 15.3145, -81.6833, -101.017, -100.3444, -100.98, -57.967, -54.35, -123.4833, -123.55, -122.0667, -120.6661, -105.0806, -111.9694, -111.8964, -110.9167, -120.2189, -81.7747, -38.517, 13.0, 10.3067, 11.1442, 56.2, -106.48, -69.33, 36.0, 50.2167, -93.27, 66.95, 58.217, 50.175, -89.3028, 129.22, 37.717, 9.8831, 152.8861, 128.3, 26.9167, 36.3, 42.3667, -94.1011, -4.833, -2.35, -107.15, 47.009, -95.6603, -108.2167, 127.88, -69.6, -79.45, 118.067, 6.1833, 23.27, 16.29, -118.7242, 10.0042, -109.3222, -102.3917, -82.8045, -109.1667, 14.19, 18.92, 88.25, -80.87, -106.3656, 21.7167, -116.5628, -131.8167, -131.8167, -131.8167, -107.1667, -82.7167, -82.8192, 14.7831, 153.2089, -63.5667, -74.0056, -93.3211, -111.05, -106.2833, -85.9681, -160.5167, -81.2778, -70.7803, -79.0464, 127.467, 112.633, 110.17, 111.62, -5.32, -68.32, 14.13, 7.2028, 38.847, -59.68, 108.67, -55.6, -3.8189, -3.7994, -3.8314, -111.7794, -8.7164, -54.717, 78.9, -65.58, -89.533, -117.8667, -119.6844, -119.8425, -79.98, -63.2, -121.9911, 165.8, -68.4, -61.1, -61.117, -105.9, -105.9753, -101.78, -110.1, -120.4333, -25.171, 18.35, -42.01, -120.4486, -118.4997, -119.1331, -112.3167, -110.8464, -104.6805, -122.6978, -112.283, -97.8714, -64.266, -88.7833, -70.7, -70.7, -93.7572, -64.3, -8.4106, -75.49, -75.82, -88.4667, -105.21, -70.737, -109.71, -121.9333, -121.8667, -42.16, -69.883, 9.45, -116.37, -81.5206, 109.583, 68.0, -114.98, -81.7, -81.717, -100.4922, -86.5333, -98.4539, -72.44, -98.4839, -98.5833, -65.1, -98.7028, -96.66, -109.88, -117.2539, -105.28, -66.87, -113.93, -71.158, -110.5261, -118.5881, -89.617, -72.2, -70.1, -100.87, -117.1831, -117.1333, -117.1667, -56.433, -109.85, -67.42, -98.15, -67.4167, -122.4269, -122.3647, -122.5053, -118.1, -122.3617, -100.0333, -112.88, -112.33, -60.95, -96.53, -110.03, -116.9583, -98.48, -64.667, -103.3283, -84.0833, -121.9033, -84.1, -109.66, -112.38, -68.418, -75.167, -99.85, -68.7, -57.15, -56.3, -95.81, -71.23, -66.0108, -83.5, -67.803, 9.725, -96.38, -66.356, -77.672, -105.4244, -121.0578, -120.6619, -101.0222, -100.4, -110.6339, -97.9494, 12.4464, -68.417, -107.65, 10.6258, -102.4, -119.45, -54.42, -116.9975, -6.661, -87.97, -109.73, -110.25, -105.15, -68.403, -122.5372, -113.93, -98.7167, -89.2, -89.117, -2.0392, -67.0119, -1.7869, -109.2256, -109.0833, -47.883, -51.9833, -67.083, -38.21, -45.017, -44.3, -55.01, -39.85, -46.617, -46.65, -47.55, -47.11, -81.2811, -124.1167, 141.333, 45.533, 61.2167, 18.4331, 18.33, 60.88, 53.73, 29.667, -106.8053, -73.8167, 46.0331, -121.9, 73.483, 72.667, 18.38, 18.4, 5.6505, 42.6, 125.767, 29.1, 36.5, 9.5028, 13.13, -82.3167, -82.3, 79.6, 95.578, 73.267, -111.5436, 129.717, -106.65, -106.6667, -106.7167, -106.6, -106.6833, 114.08, -6.083, -6.08, -121.05, 31.77, 12.7075, 12.69, 10.25, 18.39, 89.08, 80.833, 100.983, 100.0831, -123.1333, -123.05, -120.6669, 22.883, -60.81, -89.055, 6.3631, -69.25, -84.4089, -84.3333, -84.5167, -84.3572, 131.3, -104.3378, -114.6333, -79.14, 145.2083, -88.3214, -81.21, 104.7667, 2.43, 2.467, 11.8667, -91.2494, 11.92, 28.9344, -170.4808, 28.18, -123.1331, -71.5333, -90.4372, 101.733, 103.9, 148.2644, -0.55, -73.8, -102.55, 8.9681, 8.6097, -66.8, -66.8167, -66.8, -73.9167, 9.1542, 10.655, 4.7903, 9.5492, 10.6444, 10.2556, 6.8403, 12.737, -117.15, 6.4169, 15.47, -107.05, 13.523, 7.8442, 9.1239, 10.4325, -110.0833, 9.8033, 9.6881, 12.0883, 10.7192, 10.2169, -116.6333, 169.983, 11.3883, 9.1431, 13.1, 121.017, -112.1067, -105.4167, -105.4758, -111.15, -111.1189, -111.2056, -123.2, 150.8708, 150.9272, 145.2561, -108.0167, -111.3667, -124.1036, -109.4, -71.0833, -103.5931, -86.0536, -85.785, -111.8833, 147.4883, -86.2258, -122.5247, -108.8333, -100.9175, -75.22, -96.1456, -66.8333, -53.0667, -114.9217, -91.7164, -72.9167, -65.7, -123.9236, -122.3008, -122.3333, -122.2553, -122.3139, -122.2833, -122.3, -155.5114, 14.45, 38.4, -115.9667, 14.779, 29.18, -93.2228, -96.1861, -111.7, -102.5167, -111.9667, -104.1, -111.7644, -122.2355, 58.284, 11.733, -111.4333, -113.5203, 10.19, 26.8, 130.3, 34.283, 9.7667, -6.15, -4.1269, -4.1153, 22.4908, -123.2833, 152.4167, 131.017, 114.28, 11.117, -100.0356, 27.4, -122.1914, 133.967, 25.217, -112.8797, -93.9367, -112.9167, -76.8617, -96.8667, -87.0144, -88.5994, 10.2269, -104.7333, 110.417, 80.3, 32.583, 78.35, -106.9153, -102.6597, -96.6531, 80.25, 159.98, 53.495, 81.917, 28.1, 130.4, 140.9, -118.975, -81.4347, -79.925, -85.95, 33.617, -77.2667, 29.683, 105.0, -7.95, 140.5, 27.35, 126.967, 126.8, 116.894, -66.25, -66.2667, -66.25, -123.1, -123.0639, 42.75, 106.133, -104.4, 30.75, 54.517, 51.3, 60.533, -38.96, 100.33, 100.73, 136.233, 10.7683, -73.1047, 3.6917, -44.25, 5.4, 5.324, -122.1333, 151.8875, -115.4667, -149.855, 30.62, 78.35, 93.03, 156.13, 67.65, -83.5983, -112.0, -5.8792, -6.0, 14.9, -132.3, -97.0908, -149.3483, -149.6275, -149.4167, -131.9833, -123.3642, 72.517, 55.517, 31.8, -85.8989, -99.2897, -118.95, 10.75, 10.68, -96.53, 68.133, 77.267, 63.63, 42.67, 21.88, 68.45, 47.158, 50.842, 66.83, 68.583, 55.0333, 91.813, 74.62, -87.2436, 21.85, -122.2333, 143.2297, -106.5667, -100.2503, 112.77, 121.467, 121.433, -115.75, 127.967, -8.925, 146.75, 116.683, -79.6333, 115.367, 113.6, 117.43, 111.47, 27.467, 55.517, -97.9, -101.7514, 47.121, -122.4161, -108.4167, -88.6183, -2.668, -72.75, -123.6333, -76.4667, -103.35, -63.5, -117.0392, -87.7167, -77.25, -122.25, -105.2353, -111.6833, 146.3278, -101.8272, -1.4899, -64.5, -92.0467, -65.25, -80.1833, -85.2, -88.7739, -85.7914, -86.4775, -81.5325, -111.8667, -95.8528, 155.88, -107.7633, -107.4333, -124.0728, -123.1, 174.1, -95.38, 33.4333, 122.45, 120.82, 42.9, 123.517, 114.1, -73.3, 27.05, -93.4333, -71.6833, -71.6833, -75.5067, -92.3914, -106.9689, -106.8383, -106.95, -96.6419, -116.3333, 120.25, -99.1167, 114.417, 116.033, -75.3, 91.89, 133.017, 77.167, 130.933, -137.2167, 31.43, -115.9667, 140.317, 135.75, -77.5214, -108.6917, -71.2167, 121.95, -20.0, -35.5, -145.0, 79.98, 80.083, 67.017, 140.217, 52.533, -106.105, 91.733, 138.4, 19.5331, -86.7944, 75.9, 139.783, -110.5769, -0.283, -111.95, -114.4169, -114.4022, -114.2775, -110.95, -110.0075, -93.8411, -93.6667, 103.9333, 26.9333, 67.8, 48.05, 69.7, -117.625, 23.3167, -110.25, 13.35, 24.15, -95.7483, 98.9, 98.883, 111.985, -118.9833, -2.62, 6.089, -104.1467, -95.6431, -84.1506, -84.1667, -103.0214, -102.9847, 82.3, 17.29, 22.25, 7.9975, -120.3706, -105.3542, -120.6228, -110.2847, 9.1953, 9.7417, -52.6833, -108.1333, -112.0611, -45.595, 14.9167, -92.1975, -9.17, -112.0, 23.5383, 25.0925, 27.8025, 41.95, 15.09, -5.683, -89.6231, 29.6, -79.4622, 33.93, 14.38, -83.0767, -94.5333, -117.5658, -101.3006, -107.6633, -122.7739, -123.3783, -116.8317, -121.1833, -119.35, -108.7167, -122.6486, -111.5842, -121.062, -118.6833, -57.519, 127.65, 100.983, 29.0, -80.2667, 34.1331, 33.9833, -120.5167, -120.55, 13.12, 7.5969, -81.9667, -92.71, -117.7333, 13.4, 16.13, -74.231, -66.991, -110.2158, 14.36, -122.3733, 151.867, 108.25, 108.5, 103.9, 103.994, 13.36, 151.1717, 18.74, 126.533, 35.167, 128.18, -97.4972, 124.383, 18.0333, -114.1167, 7.3331, -96.3778, -96.3792, -96.1525, -96.7289, -91.9, -95.0653, -56.117, 124.333, -107.16, 89.933, 6.8485, 16.5797, 16.38, 22.98, -53.6667, -97.0392, -121.5486, 100.7, -135.3647, -135.3333, -154.1333, 92.873, 37.0167, 37.017, 39.3, 31.5, 25.3167, 20.0167, -42.25, 10.633, 19.0203, -113.7667, 12.1833, -122.2175, 13.45, 16.0, 16.75, 0.3489, 21.07, 6.95, 17.31, 10.9964, 6.6833, 21.5, 21.65, 13.84, 123.9667, 14.6506, 5.2667, 31.6, -114.4681, -151.2169, 24.55, 10.5125, -143.9808, -3.6508, 5.0681, -114.7833, -114.7833, 78.65, 31.017, 18.0, -94.4167, -112.9667, 28.2178, 19.15, -89.7697, -120.2944, -74.4167, -80.06, 26.32, -77.8167, 15.4, 14.6, -111.3, -107.2, 27.7, 27.55, 15.1, 20.95, 133.83, -127.1833, -127.1833, -78.3458, -77.6667, -88.4311, -111.1, -76.0, 145.1125, -97.1689, -94.6428, -85.7892, -119.3511, -84.6667, -98.7783, -113.3472, 11.23, -117.1739, -119.7475, -103.1667, -82.1667, 8.0631, 32.0667, 13.36, -119.6633, -111.5042, -110.6658, -116.7369, 14.9, -110.5333, 15.7333, -121.8361, -116.1989, -111.65, -110.0839, -110.3333, -79.995, -146.6931, 138.2133, -112.7167, -75.3789, -100.9111, -92.633, 155.93, -40.35, -106.8831, 26.6328, 26.5831, 27.7503, 27.1894, -105.9864, -111.5833, 19.41, 17.1, 17.63, -77.0128, 106.656, 5.2733, 23.406, 133.9797, 7.9978, 126.57, 93.783, 56.633, 44.1, 128.57, 1.13, 5.6367, 167.55, -114.8167, -111.0764, 138.1, 41.1, 7.0942, 95.3, 17.28, 108.267, -76.4525, 84.32, -91.8317, 115.75, 9.833, 19.0831, -103.65, -98.6167, -84.6167, 25.583, 18.82, -74.6531, -96.5403, -123.4958, -103.0167, -111.3667, -50.8, 35.583, 68.617, 100.617, 103.567, 126.88, 12.95, 11.1842, -105.9136, -107.7667, -122.4622, -100.6503, -120.3872, -119.6, 128.3, 82.706, 16.6, -56.8833, -73.1167, -2.4831, 10.1535, -47.43, 53.1, 131.117, -119.4, 17.55, 30.7167, 126.47, 94.52, 158.3, 111.55, 138.333, 62.1, 39.77, -98.2, -89.01, 24.1167, 24.15, 7.967, 5.07, -145.5167, -48.51, -62.2167, -100.25, -81.3667, -1.4084, 119.3281, -78.0078, 153.4054, -66.9, -82.0167, -86.3164, -78.8808, -108.7919, -57.6167, -106.5, -72.35, -86.2833, -73.3031, 145.9972, -155.7533, -119.9947, -72.9736, -75.4833, -116.9, -108.8333, -108.8, -123.2167, -112.07, -79.3833, -107.5286, -117.5167, -65.9, -119.2, 153.087, -70.9333, 21.93, 140.3, -119.6331, -111.6044, -92.8267, -119.7333, -155.55, -90.8164, -81.9139, -89.7167, -117.375, -85.475, -114.8833, -114.8833, -95.0597, -103.8722, -101.1847, -104.3, -81.3583, -86.7703, -95.1467, -76.5, -121.9333, -121.3167, -93.5167, -106.4475, -93.7158, -116.4, 14.47, -107.5333, -122.1667, -118.8333, 16.4331, 16.3, -117.4167, -117.3214, -117.5281, -121.6833, -91.8761, -117.9833, -95.6, -121.4892, -114.3667, 17.9, -56.0833, -56.1667, -104.585, -109.275, -93.4003, -72.5833, -64.85, -68.1667, -94.9864, -102.7428, -89.6839, -86.8414, -83.8167, -80.6667, 148.0856, -99.7467, 145.722, -110.6667, -114.18, -79.5167, -114.8111, -96.1667, -107.7833, -100.8761, -87.25, -110.6167, -123.1333, -123.1667, -123.15, -123.1667, -123.2833, -68.7, -119.7211, -114.4944, -123.0167, -68.3333, 153.72, 152.32, 117.37, 120.55, 78.2, 19.6331, 117.7, 91.73, 74.833, 18.45, -80.7131, 14.95, -88.6275, -99.8036, -73.5475, -121.3372, -121.3333, -93.4833, 29.22, -83.9533, -110.2239, -63.0833, -57.85, -114.9342, -90.9489, -105.9439, -102.5947, -90.9269, -72.1, 0.23, 151.9339, -97.2222, -112.7333, -100.5986, -100.4667, 31.3, -97.6167, 34.93, -82.1, 38.917, -119.0167, 15.8, -121.7175, 37.883, -91.8333, -107.4656, -123.0667, -80.8808, -77.8672, -106.7597, -88.7822, -16.6497, -79.0844, 11.1, 5.73, -122.3667, 42.02, 18.71, 142.7908, -122.8142, -16.2553, -96.81, -119.8836, -106.8233, -84.4792, -99.9483, -91.3706, -110.5, -98.8, 26.354, -91.8872, 13.4, -120.7264, 9.4592, -96.7667, -83.3061, 17.1664, 14.26, -99.4431, -87.7025, -98.2319, -58.55, 88.9, -98.2078, -103.2083, -100.9828, -77.4869, 56.0, -112.7167, -80.6283, -78.0183, -114.0911, -121.0833, -121.0914, -89.5856, -94.3425, -129.9833, -136.6833, -111.5358, -107.8, -74.2833, -66.4667, -70.9167, -73.9333, -72.2333, -75.3333, -73.6, -71.6167, -70.9333, -71.9167, -73.6833, -71.7833, -73.7833, -71.2833, -71.3167, -71.9333, -73.85, -96.6, -70.4667, -70.0167, -73.1333, -73.85, -69.9333, -68.6333, -70.5333, -73.8833, -95.0, -114.2167, 10.8833, 15.205, -97.5283, -92.7975, -97.095, -105.9167, -75.0367, -61.9833, -94.6486, -113.3939, 22.183, 138.7167, 16.27, 9.0164, -73.3333, 18.05, 17.9514, -89.9903, -93.7722, -121.3178, -121.2258, -95.23, -54.42, 10.2833, -90.9108, -97.3333, -77.4042, -122.5342, -97.1667, 145.2167, -105.8333, 17.96, 13.56, 18.29, 13.73, 18.95, 16.18, 13.12, 14.2, 12.12, 12.1253, -95.1933, -6.32, -6.3, 23.1, -72.2286, 13.07, 9.8656, -79.25, -89.2133, -78.95, 30.7, 16.886, 145.2908, 145.3267, 17.0597, -104.95, 7.6331, -102.0775, -81.0, -81.0, 138.8901, 145.7308, -100.4, 146.0461, -113.2167, -81.65, -102.6003, -94.05, -121.85, -111.2167, -120.8464, -121.1078, 134.2116, -99.4475, 93.0, 102.7, -113.25, 15.59, -105.1208, -75.1906, -80.2397, -80.2514, -126.0667, -107.6333, -87.3356, 13.37, 9.2167, 9.1825, -91.4172, 9.2008, -53.35, -22.7275, -2.133, -72.0833, -55.85, -73.0911, -75.0667, -73.15, -67.0667, -99.0167, -73.3, -71.3333, -67.0833, -74.35, -55.6, -56.1, 143.2631, -69.3833, 6.0, -71.5, -81.2883, -74.05, -70.8, -89.83, 6.9, -73.3833, 59.617, -69.7833, -70.2167, -71.7333, -70.6167, -79.25, -79.1667, -79.25, -90.5231, -73.35, -90.5169, -68.05, -69.1, -74.25, -94.0514, -94.1333, -71.7167, -73.75, -70.5167, -92.6467, -70.1333, 55.51, 4.9, -74.2, -109.9, -69.2833, -65.35, -70.9667, -74.4833, -71.5833, -70.8333, -71.5667, -71.6, -73.5833, -70.8333, -68.15, -73.3833, 9.4, -70.6167, -113.5611, -66.8333, -70.7, 148.5942, 148.5814, -89.4894, -72.7667, -68.8167, -5.667, 148.2489, -70.8667, -70.4, -74.0, -72.9167, -84.7228, -71.5167, -73.5833, -85.5464, -94.6122, -73.8833, -71.2167, -67.1167, -70.9167, -74.05, -117.5878, -52.75, -52.8, -52.7833, -91.2336, -72.6833, -94.9233, -73.1, -54.033, 149.5242, -55.3833, 149.5356, -74.2, -67.8333, -71.5167, -111.45, -73.75, -105.8, -90.3833, -90.3736, -90.2706, -90.6558, -90.2333, 32.41, -70.6833, -70.8167, -71.5, -63.9, -84.1667, -113.4294, -53.5667, -163.1711, -113.4305, -72.9333, -73.5333, -4.9989, -73.9167, -69.3833, -72.4333, -72.6167, -70.65, -69.7833, -93.03, -73.0167, -170.2222, -93.9656, -82.6261, 30.3, -82.6261, -90.6106, 8.6, -70.4167, -56.176, -71.2167, 55.483, -74.2, 15.617, -72.4167, -70.5, -70.75, -73.6, -67.3833, -70.95, -71.05, -53.5833, -69.8667, -67.25, -70.4833, -81.2, -72.5667, -70.7667, 5.2, -70.55, -72.3333, -80.45, -70.3833, -73.8667, -72.5833, -93.6369, -100.9792, 70.217, -65.28, -80.8, -80.8, 19.09, -74.1572, -111.1833, -76.6014, -122.6564, -106.3714, -95.6567, -111.5167, 107.133, 118.33, 106.2, 35.3164, 93.283, 41.133, 114.5, 131.15, 105.58, 69.68, 132.7, 8.4667, 45.45, 46.25, -113.9269, 8.4667, 6.417, 19.8667, 29.7331, -79.8489, -95.6269, 28.2, 101.549, 95.42, 102.293, 104.701, 101.445, -122.1167, 117.412, -1.3, 63.317, -119.65, -63.8333, -91.6272, -80.8939, -64.1833, -80.2325, -120.7897, -85.7067, -97.0625, -122.1333, -120.2456, -106.1667, -104.3811, 134.9, -80.3569, -80.4667, 34.667, 34.78, -111.7275, -104.3567, -114.45, 17.27, 17.4408, 17.35, 127.25, 8.5589, -110.3667, -120.0103, -53.9333, -115.0225, -110.3853, -101.8667, -115.0833, -109.5631, -111.5436, -108.9547, 117.65, -119.6333, -117.45, 127.35, -117.19, -111.7406, 23.5317, 23.7667, 29.0167, 109.404, -112.7, -111.0972, -92.0167, -114.8903, -97.9842, 100.133, 124.933, 59.483, 45.6, 113.717, 112.787, 112.717, 149.0703, 72.833, 99.15, 73.5, 125.5, 103.5, -97.3094, -121.75, -82.1969, -122.8333, -122.85, -72.3128, -35.71, 73.983, -120.6631, 14.0217, 111.473, -127.1667, -65.5333, -74.66, 148.17, -119.5986, 20.67, -72.6833, -148.9089, -1.2496, -72.6333, -80.6969, 140.217, 132.1, 138.117, 22.95, 15.4667, 13.05, 21.05, 11.56, 16.7167, 14.1903, 14.41, 19.5056, 60.6, 42.85, 90.8, 25.35, 133.1, 5.2681, 128.116, 14.6692, 16.033, 39.82, -82.3822, -1.9581, 13.0667, -82.385, 148.0731, -116.3783, 143.5533, 148.125, -83.9333, 148.1253, -113.8389, -101.2167, -101.2333, -111.2792, -94.3831, -113.9667, -111.9642, -93.4194, -54.2167, -107.6833, -107.6833, -107.7333, -131.1833, 14.2331, 114.763, -105.375, -60.05, 151.1731, -60.05, 151.205, 151.2, 20.1, 50.8667, -86.2114, 12.28, 91.88, -110.15, -110.0333, 88.367, 39.583, -96.1892, -76.15, -101.7417, -76.1039, 68.683, 71.3, 130.683, 14.617, 20.1, 16.3167, 20.2333, 16.6333, 9.1831, -110.4333, -49.917, 6.7167, 10.533, 92.867, 8.75, -112.1167, -111.5833, 1.5, 32.833, -7.37, 46.28, 36.619, 152.4507, 83.0, 125.0, -70.3, -113.9192, -122.4122, -122.4333, -122.4833, -104.0567, -55.983, 133.75, -69.7, 126.6, 128.65, 128.75, 127.4, -56.15, 7.4167, -170.7167, 38.95, 123.853, -46.433, -46.4, 27.5, -149.617, -94.9644, -147.55, -120.1428, -120.15, -101.7981, 5.25, -85.2239, -127.7, 121.517, 120.7, 40.544, 175.8, 123.42, 120.2, 51.8667, 120.7, 28.25, 112.55, 117.1, 85.62, 160.4, 134.783, 98.0, 99.15, 138.25, 134.05, -145.033, 137.25, -135.5667, 5.385, 114.83, 98.2667, -125.8667, 72.217, -84.5197, 59.55, -150.095, -86.135, -84.3289, -84.3556, 24.5831, -91.1842, -98.9592, 148.63, -93.5833, 5.4331, -95.6472, -13.683, 41.4667, 146.2564, 64.6167, -80.8242, -82.45, -82.4006, -82.5403, 23.75, -97.85, -71.3, 150.8467, 23.5331, 140.3, -152.1, -152.1069, -117.7606, -59.228, 130.983, 39.067, -5.9, -5.82, -75.9933, 70.55, 118.15, 101.033, 105.117, 107.8, 169.224, 10.0231, -98.98, 106.67, 46.95, -105.5864, 121.2167, -92.25, -83.9389, -81.15, 74.3831, 149.8197, -76.367, -70.76, 172.917, 172.9, 71.383, 169.9, -77.5386, 134.5694, 152.4834, 106.25, 102.0, -5.5975, -64.7, -95.3883, 77.82, 20.98, 149.7958, -82.7539, 146.4486, 26.7331, 13.5831, -78.7, 94.55, 69.2694, -37.6331, 111.15, 69.117, 89.917, -132.05, 111.6, -155.9667, 75.97, 140.1167, 139.867, -124.4, -103.3611, 145.2672, 42.27, -40.41, -71.0658, 62.0, -80.5211, 70.48, -7.65, 29.5, 118.122, 117.9, 121.5833, -97.4092, -115.9833, -117.5333, -106.6086, -106.6017, -114.8508, 21.133, -83.5603, 78.73, 44.95, 44.767, 11.02, -115.7375, 8.1197, -103.88, -96.1939, 60.517, -109.09, 29.8, 109.15, 17.9164, 130.0, 130.199, -87.217, -118.45, 51.317, -97.417, -15.2275, 90.383, -107.63, -118.7497, -96.2328, -89.3, 27.55, 45.383, -131.3333, -112.025, 122.2281, -107.8736, -86.7747, 105.2, 34.7831, -96.4, -62.617, 117.157, 57.117, 147.5248, -107.817, -111.9333, -111.9217, -115.7167, -97.3183, -114.3289, -72.633, -16.3292, -16.5606, 98.483, -71.939, -65.105, -78.524, -60.05, 134.1833, 17.8, 13.499, -116.9167, -107.3653, -107.3819, 152.0172, -96.97, -41.517, -102.77, -111.7, -105.75, -104.9, 40.4, -42.817, -42.817, -42.97, 23.62, 35.1, 67.2694, 12.983, 15.0, -120.4333, 136.6, 25.667, 118.67, -128.5833, -87.1, -128.6167, -79.5469, -53.9833, -87.3, -87.4081, 133.6377, -105.3022, -105.4953, -1.1167, -132.75, -132.7333, -132.7333, 0.983, 33.583, -97.42, -74.0614, 29.583, 12.5581, -59.3167, -111.2769, -124.2333, -5.33, 72.4, 153.0408, 145.7061, -124.5167, -94.0772, -94.0075, 151.1681, -118.4508, 27.73, -97.35, -98.82, 92.783, 149.1192, 23.2667, 24.533, 27.4, 8.683, 143.815, 143.8197, -111.5333, 103.6833, 100.8, -81.85, -92.1942, -102.7972, -108.2167, -108.6964, 28.37, 22.95, 23.0, -71.35, -121.2047, -121.1661, -101.25, -101.1, -120.9447, -90.7747, -96.1667, -17.07, -112.4264, 76.95, 7.05, -84.3367, -87.7347, -83.8611, -109.7167, -95.6314, -97.8667, -115.3594, 98.62, -108.2333, -95.2475, -80.4833, -86.6708, -3.95, 148.2859, 148.304, -115.15, -121.6333, -122.07, 119.1514, -85.6386, -118.8619, -99.1897, -68.8167, -68.8333, -110.5667, 54.025, -120.9833, -89.3167, -89.3333, -89.2833, -89.2333, 142.21, -75.2667, 8.22, 117.167, 119.42, 105.75, 78.233, -74.4167, -111.0878, 142.0567, 142.0098, -72.7, 148.9422, -123.9022, -66.7667, -11.433, -11.43, -106.5536, -83.1667, -83.4767, -120.4992, -64.0667, 40.083, -88.17, 33.6, 87.7, 128.9197, -98.5294, -80.5, 1.45, -123.8519, -78.7167, 130.4808, -109.1833, -101.0764, 0.276, 21.25, -81.3833, -81.3833, -81.3833, -121.3583, 142.7164, -111.7075, -111.6167, 132.3826, -8.167, -75.95, 87.08, -167.9167, -102.9181, -77.1419, -79.4433, -91.1269, -118.3667, -86.1086, 19.7831, 19.721, 27.7, -6.869, 12.3556, 10.63, 78.717, 9.452, -89.4667, 88.32, -80.8158, -79.6931, 137.05, -111.85, 89.317, 72.2, -98.65, -131.95, -125.2333, 49.4, -81.6667, 62.6, 68.25, 23.933, -75.2225, -83.3319, -79.37, 145.6004, -130.0667, -110.22, 8.0003, -112.75, -125.7667, 84.4, 85.917, -110.05, 30.3494, -143.0372, 37.73, 36.567, -122.4497, -122.4, 75.283, 131.13, 72.867, 134.567, 139.767, -4.0492, -92.5806, -93.5653, -83.5333, -83.8014, -122.8167, -4.0233, -83.4667, 73.783, 43.733, 120.8, 82.08, -99.683, -82.6167, 141.55, 35.8, -3.0, -110.0686, 126.3, 109.75, -59.2333, -108.8, 135.87, 84.9167, -74.2167, -119.4242, 109.78, 100.93, 100.65, 128.733, 125.9, 122.267, 105.83, 93.9, -109.57, -112.86, -117.0903, -145.1703, -112.3217, 145.5014, 141.8008, 96.1, 151.9317, -119.5453, -119.51, -95.6303, -95.6639, -95.6261, -126.1667, 59.2167, 10.88, 7.733, 7.7, 19.71, -106.0581, -79.4, -79.3667, -79.4, -79.4833, -79.2667, -79.4, -79.55, -95.9333, -79.6333, -79.2333, -79.1833, -79.55, -79.45, 31.63, 10.2553, -105.5333, -118.3411, -3.45, -103.4333, -103.411, -107.1814, -49.73, -0.7106, -104.2236, 13.01, -6.767, 19.5006, 0.4914, 41.6, 18.5833, 8.7917, 13.0708, 98.2, 98.3, -111.4667, 34.0, -134.89, -102.8, 134.233, 42.75, -0.186, -117.85, 6.13, 5.9333, 20.05, 16.57, -76.4431, -106.6833, -92.2783, -110.4203, -100.3908, -111.5378, -108.9, 146.7661, -94.1819, -76.5667, 137.2, 134.82, 8.1, 34.0, 39.72, -64.9167, -95.6308, -121.3467, -121.5828, 21.338, -9.6889, 10.6, 10.6167, 99.617, 147.9489, -81.3039, 12.488, -107.2333, 2.0167, 12.6292, 10.8914, -85.55, -85.5825, -112.8667, -121.9333, -108.3833, -54.383, -65.266, -112.1636, -91.4378, 11.1, -93.6086, -74.7464, -111.9128, -77.5333, -101.0611, -77.5667, -60.33, -109.2, -51.7, -105.9725, 15.23, -110.95, -101.7758, -111.4747, 6.6467, 6.6592, 13.75, -105.2333, -29.3167, -104.4869, -104.5567, -104.3378, -68.4833, -115.4333, -122.7947, -130.8833, -110.5833, 35.8, 22.4, -92.2575, 13.15, 13.18, 13.22, -12.32, -51.38, -38.133, 77.0, -150.5333, -113.2, -113.2167, 113.1331, 136.567, 56.2, -69.1167, -72.6, -72.6167, 61.5994, 13.3, 19.0, 18.9281, 18.9131, -117.3908, 10.4533, -112.0811, 17.57, 12.5408, -103.9006, 137.8333, -120.3167, 126.1485, -122.3886, -109.6667, -122.575, -115.6278, -85.0728, -85.9722, -115.9061, 82.946, -115.8833, -95.0881, -73.6833, 11.64, 33.7997, -120.2, -120.173, -79.03, -66.0164, 151.85, -93.4136, -63.2667, -99.8617, -107.2317, -107.2681, -113.6594, -82.2517, -100.9583, 22.45, 101.467, 30.53, 21.883, 30.35, 25.8, 23.9, 105.317, 136.517, 136.067, 134.1, 134.017, -64.918, -57.821, 132.75, 39.1, 69.4, -149.483, -129.2167, -74.3386, -111.1961, -110.9442, -110.9553, -110.8333, -111.0053, -110.9536, -65.18, -65.2, -103.6867, -103.6031, -49.72, -106.3, 121.731, -118.2833, 57.4, -133.0167, -133.0, -133.0333, 37.617, -98.367, -106.0411, 28.8167, -121.4744, -113.3847, -101.7614, 121.7, -125.5667, -86.2089, 147.5659, -110.1333, -76.0333, -76.0803, -72.2244, -95.8872, 100.63, -111.0497, -92.32, 148.0141, -121.4833, -61.45, -61.5, 140.083, 39.6, 115.617, -128.25, -90.3683, 10.23, 102.53, 118.28, 92.62, 92.433, -88.7714, -74.4383, -119.49, 100.2331, 38.731, 16.694, -81.5667, 39.233, 63.5, 131.983, 7.7, 63.7, 7.65, 23.033, 68.22, -100.8972, 53.0, 22.2831, 22.2775, -120.855, -108.4, -108.3894, 24.8831, 87.167, 89.2, -100.8636, -64.9, -100.8883, -100.1167, -100.3167, 87.9331, -112.12, -87.6161, -87.6161, -116.2225, -88.2908, -95.2803, -117.7539, -117.8333, -151.4136, 93.78, -100.0, -96.5994, 25.0331, 24.9831, -113.0636, -112.0264, 18.7, 8.5206, 35.867, -122.6167, -113.7319, -114.45, 6.8906, -116.0369, -112.3261, -114.3461, -114.4569, 146.9517, -120.0403, -114.5, -106.3514, -116.1758, -120.3211, -91.6653, -110.2167, -87.5678, 153.2078, -78.9336, -95.2969, -96.1281, -90.0603, -95.2667, -95.4025, 124.667, -97.8703, -85.5833, -1.417, -78.7333, 65.5, 123.567, 73.8, 30.07, 47.5, 113.617, 6.3545, -67.05, -47.95, 9.1569, 79.617, 104.8667, 104.867, 4.35, 62.8, 130.62, 80.9331, -125.5333, 11.94, 13.24, 13.1, 102.8, -79.1667, 102.8, 134.4197, -179.983, 14.067, 142.78, 10.53, 136.15, 55.8331, 142.03, 74.02, 53.817, 54.6831, -110.8, 128.68, 94.333, 70.933, 31.17, -123.2103, -118.9339, -123.2008, 106.867, 92.08, 71.067, 107.0, 107.6, 129.42, 19.22, 112.467, 89.933, 116.967, 96.85, 139.8, 84.517, 6.4333, 18.19, 130.9, 9.95, 13.47, 129.32, 17.6664, 30.5, 29.1, 29.2, -117.8, 34.5, 66.33, 17.04, 17.2197, 14.18, 48.333, -101.2908, 30.23, 34.33, 20.28, 20.29, -152.14, 11.183, 28.67, 126.8, -46.88, -160.8, 110.633, 13.38, 18.92, -101.1461, 15.81, -91.0042, -79.7192, -77.1833, -93.0031, -80.5336, -81.6628, -89.0317, -117.8758, -85.7464, -118.1886, -109.2, -89.5308, -105.5667, -147.8611, -113.5333, -114.1333, 152.3375, -93.1772, -111.8333, 10.2908, 17.34, -130.45, 37.3, 130.157, -56.1667, -100.7264, 21.25, -117.65, -155.8833, -121.6931, -125.6333, -76.7683, -109.2836, -107.2667, -83.2833, -109.4461, -106.8333, -122.1675, -63.0, 17.63, 17.59, -90.4667, -90.5167, -66.4167, 5.7695, -104.6114, 142.783, 51.4, 138.3136, -108.4833, -108.4833, -68.93, -108.7422, 68.983, -88.2403, -83.7822, 81.617, 38.77, 60.567, 34.9, 65.55, 120.033, 42.0, 133.233, 45.069, -57.033, 87.5, 150.5, -49.31, 29.4, -82.8186, 130.032, -68.296, 119.867, 77.03, -102.3122, 13.183, 71.7, 14.041, 16.422, 16.87, 104.767, 109.02, 136.68, 156.7, 102.75, 57.683, 135.15, 162.467, 118.8, 116.5, 85.62, 53.683, 134.4497, 143.2297, 143.2, 121.48, 159.42, 87.75, 57.617, 52.2667, 133.317, 56.9194, 159.17, 50.42, 115.167, -111.8972, -112.9367, -75.2, -110.3, -75.3839, 4.883, 4.8781, 27.0119, 27.9006, 139.867, 100.1, 11.0717, -79.35, -66.6864, 17.35, 99.08, -21.9667, -99.7667, -99.8325, 132.55, 90.367, 22.2667, 26.7, 89.817, -118.4428, -83.5358, 26.4275, 24.83, 30.78, 21.8, 21.7678, -121.9608, 57.5, 11.03, -93.0958, 10.89, 14.8, 9.0833, -106.3539, -106.3833, 31.98, -73.6833, -146.3517, -83.2333, -83.2, -83.2767, -117.2439, -119.25, -119.25, -0.3664, -0.482, -0.4731, -80.1333, -10.2219, -104.4914, -108.4983, -100.5517, -100.55, -100.6931, -70.62, -43.71, 26.033, -112.2492, 19.9167, 4.4292, 16.37, -4.7667, -4.85, -107.5, -107.5811, 1.175, -70.9333, -70.75, -4.5331, -74.1, -117.2667, -98.0203, -120.2822, -75.4197, -85.6064, -114.5139, -102.61, -116.65, -96.31, 25.0, 15.5892, -104.9244, -71.63, -86.5167, -86.6833, -87.0378, -123.6667, 28.8325, 38.1, -71.0667, -77.7833, -77.7833, -75.6, -48.476, 0.728, -64.3833, -107.85, 9.0356, -71.0667, -79.1333, 43.32, 102.2667, -67.4303, -83.3333, -122.6511, -123.1833, -123.1167, -123.1833, -123.1833, -123.25, -89.0953, -91.4833, 27.82, -84.4397, -124.0167, -124.2667, 12.36, 6.6455, -73.614, -107.1, 24.9603, 25.0667, -178.95, 84.08, -67.9397, -91.0186, -104.8372, -118.4892, -84.5808, 21.82, 22.05, 12.27, 13.3, 31.1, 31.0844, 25.45, 27.8442, 27.9108, 27.825, 9.2019, 29.8331, 18.28, 20.41, 16.55, 16.63, 15.38, 13.35, 16.59, 11.4153, -105.2, -112.1333, -112.1167, -173.983, -119.7833, 14.83, 14.73, -102.4633, -112.1, -112.0333, 30.6167, 46.3, 16.3, 21.5167, 42.067, -100.875, 33.283, 37.383, 12.72, 10.1083, -82.4364, -112.0667, 12.33, 12.4, 10.9227, 70.367, -73.3667, 12.0, 32.7, 27.92, 54.683, 12.0042, 27.95, 61.1, 164.23, 87.95, 46.7, 60.3, 77.0, 96.97, 45.017, 130.43, 133.4, 60.7994, 132.017, 59.2, -104.95, -110.8333, -93.6333, -92.2, -96.9194, -64.267, -109.5211, -88.1275, -99.3256, -112.435, -72.515, -119.2833, -123.1903, -119.3167, -119.2, -112.4167, -88.7239, 10.8667, -80.4031, -80.2428, -92.8397, 26.4281, 135.8, 33.267, 50.9, 8.3167, -20.2831, 17.833, 45.8, -85.0761, -113.6667, -8.8, 11.5167, 3.4, -91.7683, -90.8833, -90.8444, -42.86, -53.2167, -71.9667, 25.85, -123.3167, -123.5167, -123.4333, -123.75, -123.2667, 98.583, -96.9214, -96.9303, 131.0145, -96.9217, -123.3833, -100.21, -117.3058, -117.3833, -96.7864, 138.6217, -105.3686, -120.8333, 22.85, 20.13, -75.8211, -91.9811, -114.85, 102.5667, 27.2242, 120.356, 12.2167, -8.6239, 6.115, 24.4017, 25.8617, -111.7833, -111.7333, 17.75, 36.75, 70.617, 168.3, -7.7333, 26.9, -60.098, 25.6, 121.6167, 13.667, 2.2, -93.27, -123.4639, -99.48, -59.08, -6.07, -56.433, -15.867, -105.18, -65.146, -100.72, -63.683, -63.47, -65.387, -79.4333, 8.4617, 25.1, 21.8153, 15.85, -87.4633, -87.4878, 19.72, 16.71, -79.3833, -79.4167, -79.4, -79.4, 11.61, 15.82, 105.671, -95.1322, 8.991, 34.783, 28.6, 9.7833, -92.0078, 124.206, 39.8, -89.7689, -100.95, -96.4983, -92.55, 26.87, -119.6483, -111.9481, -119.25, 27.6756, -90.8761, 5.5256, 23.517, -63.135, -119.2994, 18.3331, -105.6333, 83.233, 14.4, 14.41, -117.2269, 30.217, 12.05, 112.5831, -40.333, -2.6544, -40.863, -2.7331, 21.63, 176.9, 134.817, 34.4, 44.65, 40.35, 131.9331, 3.5956, 19.4833, -98.75, 13.8, 9.0019, 7.6358, 13.9, 80.367, 42.25, 44.346, 5.7067, 6.8617, 24.45, 29.88, 37.35, 94.5, 68.1, 24.317, 39.9167, 44.45, 64.016, 89.633, 112.9, 39.2167, 39.27, 27.0192, 139.6, 106.867, -49.983, 40.2, 31.333, 21.9, 23.5333, 18.48, 20.4, 21.3167, -113.25, 16.35, -119.9167, 28.8, 23.383, 36.45, -113.8333, -85.8258, -66.8667, -119.1189, -97.2169, -97.2283, -0.5239, -95.1494, -80.0772, 31.35, -119.29, 33.483, 5.6331, 5.6217, 9.8044, 147.4573, 147.3091, 117.3403, -98.2894, -95.3739, -119.8833, -96.6222, -96.6108, -111.4914, -113.4264, -159.45, -158.1203, 14.778, 139.9378, -157.8167, -157.7114, -158.0536, 120.333, -159.995, -110.8333, 122.237, 136.9, 40.07, 139.917, 135.167, -99.8722, -96.8667, -75.9, -77.0078, 166.65, 141.683, 30.15, 9.0667, -80.2833, 8.3608, -106.2792, -74.1628, 13.4656, -94.1942, -112.7833, 8.2394, -78.5878, -168.0992, 14.44, 148.1218, -83.075, 145.4281, -77.04, -94.57, -115.9314, -82.4, -101.2094, 151.9306, -118.0511, -118.2869, -118.3333, -1.1081, -75.4631, -117.5314, -89.5989, -112.8097, 142.004, -71.2461, -104.7956, -102.2986, -80.6761, 150.3867, -98.3006, -80.7333, -96.4756, -75.1333, -96.3703, 138.95, -121.453, -107.9786, -74.9003, -74.2933, -86.9294, -122.1953, 116.6706, 116.6756, 126.75, 146.3, 146.3056, 7.9075, -118.3833, -101.3667, -95.75, -127.25, -111.4078, -73.5053, 108.033, -120.4203, -102.1333, -101.9333, -102.05, -109.4256, -90.2836, 9.183, 126.5839, -72.5, 29.07, -78.5811, -115.4667, -125.6333, 12.667, -117.75, 28.33, 128.2175, -113.1667, -118.5786, -122.9975, -83.6, 137.3995, 142.405, -79.1494, -115.6789, -80.3167, -93.8008, -6.6108, -82.6222, -91.1386, -77.7678, -92.0997, -80.8106, -104.4333, -2.65, 142.4353, 142.4814, -95.33, 133.3796, -85.8678, -93.3667, -76.7769, -78.0044, -78.2203, -84.9672, -1.115, 9.4431, 9.765, 152.1003, -111.9833, 152.0258, -115.6333, -99.95, -119.3519, -109.4, -93.5264, -101.0267, -77.0525, -97.055, -91.7078, -87.1989, -82.7058, -80.1889, -78.1833, -83.4239, -77.4636, -86.8911, -77.0342, -96.1594, -149.4, -149.4333, -100.75, -106.0833, -94.3939, -92.5875, 12.2217, 9.9439, -102.4478, -103.7986, -82.1167, -72.75, -105.2103, 29.33, -7.1308, -90.1619, -85.0453, -92.4011, -80.3833, -89.1742, -113.8333, -88.7364, -75.8753, -76.0217, -97.1494, -120.08, -83.0981, -64.65, -69.6544, -100.7283, -89.6311, -103.2597, -117.6333, -98.4139, -105.4667, -87.7556, -121.7692, -128.8167, 102.563, 0.956, 28.017, -97.3269, -81.7994, -87.8828, -88.2492, -91.4711, -89.0592, -97.9964, -89.6256, -84.1453, 28.0, -89.3831, -87.8347, -82.9797, -76.525, 131.1166, -84.8, -84.7833, -101.9667, -96.8422, -82.3128, -82.4, -87.7592, -82.0061, -88.6708, -80.1656, -84.6, -82.9683, -92.2319, -98.8797, -71.7383, -97.77, -98.6986, -122.9383, -95.2039, -106.9333, -97.5228, -93.7972, -99.4192, -80.4086, 9.0864, 143.5127, -122.3833, -82.5756, -96.1414, 117.75, 12.1856, 119.183, 11.7, 8.2594, 6.7917, 8.117, 104.28, -151.0833, 141.8836, -105.25, -116.9697, -116.4267, 6.8125, 11.2378, 10.967, 36.476, -89.1167, -90.6828, 26.67, -79.2667, -1.6031, -75.9286, -100.2103, -97.4097, 19.0, 148.9503, 148.9708, -117.9933, -114.9736, -77.3872, -80.6119, -114.1333, -120.31, -120.35, -120.2014, 12.0131, -114.0358, -97.0042, 120.667, 27.03, 26.87, 7.883, 10.767, 144.6833, 9.5439, -97.9708, -98.5706, -73.6, -104.0503, -73.7075, -105.4661, 11.0617, -103.9356, -114.0836, -82.9433, -117.7183, -79.5856, -101.0192, -76.9883, -81.2167, -80.4725, -105.3053, -63.5167, -66.3667, 171.6, -119.75, -88.0017, -88.0858, -116.4333, -71.9833, -70.6128, -75.635, -88.2464, -71.3, -113.9847, -78.6833, -86.9919, -83.3017, -71.4333, -90.1805, 29.367, -80.0994, -82.4547, -91.8347, -85.1808, -73.9608, -96.7142, -76.8, -106.3833, -69.1461, -71.9031, -80.7694, -111.1, -113.3833, -85.2042, -103.8333, -91.4181, -65.95, -104.6281, -92.6, -122.8333, -87.7097, -87.0578, -104.9492, -96.5042, -88.0728, -105.1169, -80.7283, -80.6472, 174.6, -122.6667, -122.5281, -105.1167, -111.15, -112.95, -106.9, -122.95, -0.6241, -115.7833, -115.7833, -114.3594, -89.9167, -84.9789, -73.4011, -135.0667, -118.2347, -135.0333, -135.0833, -93.55, -109.9839, -103.15, -86.3542, -149.9978, -78.7914, -88.7247, -102.2667, 143.0742, 143.0893, -111.4167, -90.3789, -112.15, -98.7131, -88.7417, -163.4, -118.2333, -110.9833, -122.7833, -106.1758, -108.3667, -80.3083, -110.9, -111.2, -120.7167, -87.0167, -118.4628, -97.375, -148.6858, 137.5205, 137.5328, -81.1, -104.1567, 101.1, -97.4425, -97.35, -98.4928, -97.2667, -98.7125, -3.083, -112.7403, -121.6875, -14.4, -111.8833, 18.5667, 16.35, 16.4, 16.3883, 16.135, 16.567, 8.1881, 12.467, -89.1214, -66.0, -73.1333, -113.6136, -118.7239, -95.1711, 143.3747, -104.3333, -112.4833, -103.2131, -117.1853, -115.3167, -115.8008, 8.1067, -75.7269, -78.0453, -109.8369, -112.1928, -122.15, -84.15, -91.9978, -76.7039, -82.2833, -76.9217, -77.0306, -84.6106, -106.2039, -122.05, -122.15, 151.8359, -123.5333, 8.6033, -103.7372, -103.6367, -83.5833, 149.965, -123.3425, -95.0358, 23.5, -122.3058, -114.6611, -100.2911, -110.8167, -109.8167, -123.6364, -106.2153, -106.1, -75.15, -105.7333, -89.8489, -91.9914, -96.015, -83.85, -77.9206, -77.8997, -75.6008, -75.5414, -99.0556, -110.51, 146.4244, -77.9456, -119.1167, -98.4889, -100.7892, 120.225, -86.5867, -78.1514, -123.3536, -116.6233, -86.0925, -78.1167, -84.9208, -83.7261, 17.1, 167.7, -95.1167, 142.6564, -109.1244, -93.5242, -88.5961, -82.95, -64.1667, -64.1667, -83.0667, 116.0308, -105.5833, -122.65, -119.4167, -114.5833, -87.8469, -96.9408, -81.9153, -100.1069, -109.3758, -110.7167, -103.2017, -94.1661, -117.8081, -99.8403, -92.6561, -94.0586, -97.2333, -97.1, -97.1333, -81.0928, -91.7022, -101.2439, -91.6364, -89.6244, -110.7208, -107.6492, -80.2222, -91.07, -55.3, -121.9778, -94.0183, -128.0333, -81.7331, -120.1886, -81.0317, 143.0386, -91.7667, -89.7667, -89.8056, -113.4514, -82.5389, -104.1167, -99.56, -126.2167, 12.65, 118.3358, 7.667, 9.845, 23.533, -70.8667, 115.8808, -118.95, 13.6117, 143.9167, 8.24, -76.5333, -65.15, 10.76, 7.6242, -106.7469, -118.1333, -106.7906, -106.8, -107.1719, -105.6483, 137.9462, 150.8795, -103.2833, -109.65, 116.7186, 116.7267, 127.95, -121.8, 127.433, 145.5965, -100.4794, -79.6, -86.0894, -55.55, -123.8833, -119.8, -67.4044, -121.7942, -118.5744, -111.1494, -122.2561, -82.7333, -82.7333, -76.8667, -80.7667, -72.5072, -71.6833, -67.55, -78.4678, -75.1644, -78.9833, -91.2325, -92.4667, -57.9167, -112.8167, 151.3451, 136.8054, -81.9167, 19.467, -71.8731, -107.9508, -107.9686, 8.3667, 10.2306, 8.9867, -95.5803, -132.3875, -102.2325, -60.45, -76.05, -92.9542, -94.1583, -84.05, -123.4333, 0.4308, 8.5281, 17.0, 93.08, 93.6, 104.917, 110.63, 114.05, 118.38, 118.583, 9.433, -111.3703, 7.1058, 9.9589, 9.9292, 102.867, 12.8731, 113.53, 8.3806, 111.3, 87.65, 104.883, 147.2418, 32.75, 0.9481, 7.783, 128.1247, -90.7964, -104.2, 145.7292, -107.4061, -81.0869, -84.2011, -81.2275, -123.1167, 88.633, 33.633, -89.85, -83.9, 118.083, 108.933, 123.72, 102.35, 102.267, -98.23, 107.63, 107.77, 88.883, 114.52, 116.117, 120.7, 105.183, 114.5, 111.13, 101.767, 115.58, 114.05, 110.93, 116.82, 112.333, 114.58, 117.6, -89.5, 20.0, 115.65, 117.15, 103.0, -65.8733, -63.65, -80.5481, 31.8, 87.6, -142.5, -120.5428, 130.667, -139.6711, 23.27, 146.3317, 29.3, 34.167, 140.35, 131.45, 123.6556, 153.3633, -5.366, -106.9092, 109.5, 107.383, 112.4, 126.65, 111.967, 96.133, 127.5, 129.5, -97.3633, 121.4, 116.85, 109.5, 11.53, 138.1333, 138.0833, -73.807, 67.083, -66.0833, -66.0833, 152.2482, 177.583, 148.9113, 28.1, -95.7292, 54.4, 54.277, -90.3817, 120.0931, 44.32, 52.0694, -114.4333, -114.25, -115.5114, -115.2514, -110.4211, -122.4278, -110.6964, -107.9383, -104.1833, -108.7561, -113.5417, -92.6667, 96.88, -80.8419, 38.063, 146.1897, 127.75, -2.6415, 44.5, -119.1575, -104.6128, 33.367, 29.983, 104.6, 111.3, 114.38, 128.9, 106.2, 122.2, 81.333, 94.7, 118.15, 24.6531, 23.9167, -97.1556, -104.3881, -123.75, -116.5333, -116.3333, 136.583, 12.37, 139.65, 139.6667, 12.43, 133.333, 123.017, 138.7489, 117.35, 128.95, 129.42, 128.52, -117.8189, 116.765, -97.5922, -102.4667, -102.4667, -73.7975, -76.75, -71.3331, 116.7581, 106.7, -119.5897, -57.633, -80.6739, -112.3014, 148.2967, -109.8167, 108.767, 34.8, -122.6408, -106.3217, 13.83, 14.95, 4.6817, 101.98, 110.4, 102.28, 101.87, 112.7, -114.1344, 131.8017, 113.08, 137.6697, 44.3, 130.9737, 110.17, 109.7, -102.7217, -114.635, -114.6167, -114.3942, -114.7167, -114.6167, -114.6, 97.033, 35.8, 111.05, 139.5611, 110.82, -102.28, 112.98, 96.967, 96.6, 46.3, 114.57, 68.4, 61.4833, 50.2, -102.567, 15.35, 95.3, 94.72, 15.9781, 16.07, 60.907, 84.9167, 46.667, 20.883, 19.9667, 16.8, 23.32, 122.067, 42.62, 109.967, -102.28, -5.7333, 23.25, 111.9, -81.8922, 48.359, 39.225, 112.67, -99.2536, 35.02, 35.3, 37.8, -1.0333, -1.0081, -132.8486, 129.467, 14.9831, 78.667, 13.3281, -104.4, 127.3, 41.57, 12.8, 14.75, 142.2, -1.45, -102.9956, 41.483, -45.65, 15.0, 49.483, 69.8, 81.217, 114.88, 122.533, 100.43, 110.4, 103.83, 103.75, 80.0667, 72.867, 21.3, 113.65, 67.717, 105.1667, 123.4, 109.683, 27.867, 36.82, 30.033, 69.467, -96.5167, 105.67, 76.367, 112.57, 114.017, 28.733, 15.5333, -16.282, 57.4, 35.9, 18.617, 117.483, 102.05, 39.733, -122.3903, 9.0, 15.13, 13.75, -112.9814, 19.7167, 59.67, 67.067, 82.2, 28.1, 32.667, -94.6333, 152.833, 138.983, 31.8, -55.183, -108.5244, -108.5528, -12.483, 20.35, 12.08, 8.5667, 41.883, 10.9867, -92.6661, -108.8389, 106.883, 27.8, 64.867, 28.07, 13.233, 150.9], &quot;xaxis&quot;: &quot;x4&quot;, &quot;xbingroup&quot;: &quot;x&quot;, &quot;y&quot;: [51.65, 51.6833, 51.7, 51.3, 49.0017, 47.8419, 50.7839, 68.7, 30.371, 43.68, 44.017, 53.77, 20.65, 44.017, 20.45, 50.143, 50.7, 49.0333, 45.0333, 33.83, 45.4558, 46.9658, 47.2614, 42.9536, 39.4717, 49.5, 52.133, 18.24, 5.25, 5.261, 38.9267, 32.4333, 32.4106, 36.6686, 36.2403, 68.36, 49.35, 60.9181, 22.37, 66.383, 39.4, -22.83, 31.583, 24.43, 24.433, 19.533, 12.733, 43.4892, 45.9833, 44.3739, 13.567, 22.5, 16.833, -2.88, 18.2, 56.28, -6.973, 42.1, 37.4, 51.5, 44.0089, 19.5, 34.7864, 47.2992, 51.8833, 51.5, 40.783, 38.1167, 51.6, 42.1014, 8.98, 9.0, 9.033, -33.57, 42.1761, -34.9524, -34.9211, -34.8533, -34.7833, -34.9697, -34.9254, -35.3077, 49.05, 5.28, 5.3, 41.1936, 37.75, 18.1747, 43.433, 47.572, 33.5667, 19.67, 27.88, 41.9164, -19.533, 37.0956, -34.559, 20.983, 19.43, 37.0667, 42.6475, 42.7292, 38.726, 16.98, 16.967, 30.3833, -10.433, -10.6, 23.883, 49.25, 48.3006, 66.8797, 42.4244, 30.72, 44.18, 51.1, 55.25, 42.5522, 61.55, 27.1667, 39.733, 38.62, 21.8833, -9.28, 21.95, 33.9433, 17.9556, 17.9667, 47.6, 38.8, 23.067, 29.1, 62.533, 62.5344, 21.05, 22.95, 31.337, 47.53, 50.25, 38.033, 33.4925, 32.1833, -19.483, 57.867, 42.5522, 32.767, 16.73, 46.5258, -18.8333, 44.47, 47.967, 56.45, 35.05, 32.3697, 40.36, 41.0, 36.7, 41.1, 58.9, 59.25, 38.92, 41.47, 20.26, 39.717, 51.867, 19.75, 52.0, 42.967, 68.2167, 20.7, 20.7, 40.78, 40.93, 38.25, 61.4, 41.0803, 40.155, 40.9167, 40.1667, 34.567, 50.267, 42.07, 54.0, 38.4, 38.4, 42.5, 38.617, 50.2831, 67.15, 32.033, 65.68, 43.15, 51.0, 42.48, -12.14, 63.0506, 37.7333, 32.9181, 37.4389, 27.03, 34.2281, 36.6, 40.5, 54.817, 70.6667, 38.9519, 39.0067, 48.8833, 32.7047, 42.6461, 31.5339, -34.9414, 42.7431, 31.5356, 35.3992, 44.05, 49.3333, 46.6447, 46.85, 48.3, 43.6064, -36.85, 41.0656, 41.4, 38.3778, 41.6853, 45.2089, 43.2722, 43.9167, 48.2164, 48.2058, 35.1, 35.0419, -36.0692, -36.0817, 36.0908, 42.4697, 39.17, 58.6167, 49.1167, 54.658, 40.1833, 48.6167, 45.0708, 46.2733, 41.2019, -29.8, 52.517, 50.917, 60.4331, 50.9, 50.15, 32.9308, 48.45, 36.18, 36.3333, 82.5167, 50.5833, 82.5, 44.92, -28.5667, 32.9453, 31.3206, 43.6514, 31.3928, 31.184, 31.3347, 45.8678, 40.85, 52.0833, 52.55, 54.1167, -9.879, 52.4864, 44.4931, 10.435, 42.2497, -4.193, -46.433, 46.55, 36.7167, 40.67, 43.0683, 38.282, 38.367, 38.3725, 38.2828, 27.7283, 33.1272, 51.1767, 27.7411, -23.7951, 35.9308, 40.5, 5.02, -21.0025, 42.9694, 47.0886, 25.441, 25.5, 66.5653, 36.3806, 34.165, 42.1003, 42.58, 40.8997, 33.0167, 28.33, 40.1881, 40.6508, 52.4333, 42.1103, 52.4167, 39.7369, 42.7536, 43.9247, 49.1167, 46.0667, 44.15, 67.1297, 43.3864, 45.6, 59.16, 40.84, 17.25, 43.2331, 31.5358, 44.3272, 64.0, 36.8331, 36.8464, 46.7253, 45.1833, 46.7167, -8.217, 6.2, 49.2833, 38.8, 45.0717, 45.0606, 34.1014, 30.3764, 32.8358, 33.8492, 40.4644, 42.6, 41.4, 51.3333, 50.7456, -28.8521, 40.5906, 46.4, 16.73, 40.3561, 30.717, 49.25, 47.733, 48.3, 43.7728, -9.867, 69.9775, 46.8667, 39.5008, 49.7733, -35.3725, 38.7, 48.4067, 37.4403, 49.1, 39.4767, 38.8664, 40.495, 40.2964, -39.01, -9.1, 41.49, 34.65, 34.8847, 34.5903, 39.18, 57.433, 34.7961, 67.31, 18.3, 36.8014, 44.6522, 61.26, 39.46, 58.01, 29.3653, 65.69, 53.0608, 38.83, -13.8483, 60.9583, 49.7281, 25.285, 20.296, 35.18, 29.783, 24.55, 29.28, -3.35, 31.85, 36.5717, 35.2333, 40.783, 40.65, -27.6297, 14.513, -3.7, -3.7, 42.517, 69.75, 37.345, 42.8572, 32.0603, 45.3011, 42.0208, 35.1131, 60.9, 67.0, 42.3861, 42.1, 34.9331, 46.4819, 16.741, 35.8742, 29.4608, 30.7094, 39.8914, 31.9833, 65.97, 48.5667, 60.96, 48.9167, 48.9167, 48.5167, 31.71, 49.6167, 47.8, 46.1314, 48.5119, 35.0619, 64.7831, 33.8647, 29.7878, -14.633, 42.1117, 36.1, 44.9, 46.1333, 39.2167, 38.2667, 61.1747, 61.1689, 61.2169, -2.32, -41.9, 46.383, 31.3072, -30.449, 69.3237, 46.6331, 13.5761, 34.5283, 36.6519, 34.4978, 43.3572, 61.6244, 42.4372, 40.1117, 37.6, 37.93, 40.733, 36.55, 69.3, 54.0167, 32.3483, 33.4408, 35.2014, 42.55, -20.233, 49.7167, 37.2558, 33.557, 56.283, 42.3108, 53.0331, 45.55, 47.5, 38.2486, 29.1572, 41.6397, 57.4989, 41.6, 41.0, -36.5, -13.9833, 38.5731, 56.717, 61.5833, 31.9381, 39.617, 32.72, 39.95, 40.12, 39.95, 41.6775, 36.822, 17.7564, 38.9936, 44.75, 52.25, 37.4814, 55.0389, 58.3183, 60.4667, 33.5872, 42.2947, 30.533, 41.5975, 48.9333, 32.7667, 36.2, -14.83, 36.899, -18.867, -18.8, 44.8197, 38.9933, 37.155, 43.008, 45.1603, 42.4811, 37.9833, 69.08, 34.2208, -23.433, -23.5, 10.45, 7.812, -14.999, -12.35, 43.967, 62.3667, 31.9792, 36.05, 37.467, 39.083, 44.5792, 40.5, 40.817, 45.73, 31.7167, 33.4625, 31.9, 29.7258, 29.7333, 19.72, 18.367, -13.8149, -13.8, -14.733, -28.6217, 44.2769, 45.8092, 38.1869, 33.5619, 37.3261, 2.43, -8.7, 7.02, 9.33, 4.17, 60.43, 29.6333, 15.78, 19.8, -10.917, -16.83, 46.1331, 40.5, -15.9, 34.138, 46.7794, 28.3081, 13.7, 39.1, 30.907, -37.2775, -19.567, 38.1667, 42.5031, 43.0411, 50.9333, 45.1833, 42.5333, 27.2181, 37.5981, 51.4969, 27.1819, 41.1517, -27.5717, 33.5947, 38.6164, 43.6356, 36.2911, -8.41, 43.6231, 41.1, 38.25, 34.1772, 43.03, 56.5289, 18.4533, 18.3494, -16.332, -16.4, 63.43, 43.47, 47.3, 38.1167, 48.3311, 64.5, 49.4167, -18.35, -15.91, 28.93, 66.0522, 60.083, 34.1433, 50.217, 34.025, -30.311, 54.6817, 59.66, 45.7211, 43.3008, 46.75, 54.35, 46.7167, 44.9831, -30.5167, -26.95, 43.3131, 50.3, 50.3, 50.5, 50.4667, 36.1669, 41.4225, 47.75, 45.4167, 51.3783, 49.9706, 51.3856, 46.7167, -2.6667, 46.78, 40.8, 52.2, 55.7333, 16.233, 39.9167, 43.5936, 48.6, 54.361, 51.383, 32.7547, 46.0167, 41.5697, 43.8167, 46.75, 40.7808, 45.3783, 52.7833, -33.393, 41.183, 45.95, -3.333, 46.267, 61.1, 48.4333, 59.67, 47.167, 35.817, 59.6605, 43.767, 45.7667, 57.15, 64.16, 64.17, 31.7003, 35.7044, 51.1333, 35.5953, 35.4319, 37.9667, 32.1292, 37.1942, 37.75, 38.4536, 42.2128, 40.8333, 33.2942, 46.5831, 41.0408, 46.0406, 41.85, 44.0425, 41.2769, 35.3, 36.4914, 61.3006, 46.5, 59.8558, 53.92, 15.283, 15.3, 32.883, -38.0333, 39.1853, 33.1525, 59.61, 52.1333, 13.067, 38.0722, 37.5167, 49.7333, 50.5808, 23.9667, 51.1331, 38.5, 46.1569, 44.717, 46.2831, -4.44, 43.5667, -25.27, 27.1833, -8.5333, 7.58, 20.517, 20.52, 48.7, 17.7, 51.8167, 41.2, 39.5756, 54.8167, 35.15, 32.1633, 35.4322, 37.4225, 39.3428, 34.8, 33.9481, 37.7333, 37.9667, 48.75, 48.8, 60.85, 42.5136, 45.0283, 33.63, 33.8667, 43.75, 41.4175, 39.3792, 39.4494, 50.8167, 59.5667, 31.0167, 31.1819, 34.45, 59.1, 20.57, 17.2, 17.21, 52.8333, -9.8, -9.8, 50.8167, 39.7997, 47.1167, 37.0919, 38.9072, 42.9328, 41.3333, 40.3706, 32.6, 38.8833, 55.4767, -37.0, 39.8833, 41.7069, 50.5917, 53.55, -28.6, 48.4264, 47.4931, 33.3644, 44.3206, 34.075, 16.97, 58.3814, -8.78, 47.9706, 42.483, 19.85, 53.4633, 40.8586, 41.7806, 35.3872, 39.7167, 42.7339, 42.0, 46.6456, 39.4931, 44.5747, 30.1831, 30.3208, 43.6542, 45.65, 45.787, 47.8, 33.35, -22.35, 47.2533, 60.14, 57.2, 40.6592, 40.6556, 45.1667, 27.5947, 7.083, 58.57, -13.13, 37.85, -25.34, 42.7667, 53.2, 20.08, -19.6169, 18.04, 39.3, 36.835, -36.8, 43.3669, 43.3067, 59.4, -28.38, 47.6833, 48.9389, 54.45, 45.6, 0.831, 36.717, 51.72, -4.21, 29.76, 46.5331, 43.45, 51.75, 28.8, 39.8, 60.92, 36.6619, 38.9, 38.8831, 30.97, 46.1, 48.7278, 47.1106, -33.8683, 44.03, 48.1333, 45.6481, -30.3381, 25.37, 50.5356, 43.8081, 49.1081, 51.0467, 50.3092, 48.7856, 49.4728, 50.3333, 46.87, 51.9014, 50.867, 47.72, 50.2, 50.2853, 49.8517, 51.3167, 51.7867, 50.667, 50.3694, 51.6344, 47.0167, 47.7244, 52.1, 51.2814, 47.7667, 51.1067, 53.267, 41.6, 34.5975, 54.47, -31.333, 41.0383, 33.32, 48.3333, 16.375, 16.4, 28.3331, 11.6, -38.733, -0.58, 28.82, -20.23, 27.71, 26.267, 47.6667, 49.2333, 49.1333, 48.7, 50.2833, 47.4167, 49.9833, 39.4047, 40.4361, 41.7, 42.2833, 30.8228, 31.367, 31.8, 54.35, -37.8333, -37.8817, 23.9, 44.4992, 46.5, 38.2, 46.117, 42.7, 50.8, 53.1, 46.1833, 61.6667, 4.0, 37.6, 55.183, 44.833, 57.0, 35.2761, 30.8878, 35.4186, 35.4344, 40.65, -31.7603, 34.45, 44.8428, 44.7667, 64.3, 64.3167, 38.433, 41.2, 54.0, 51.55, 21.517, 39.5, -37.75, 36.9092, 56.2333, 49.2833, 43.9006, 33.9833, 42.7, 44.8, 47.59, -31.09, -20.1417, 42.67, 43.02, 46.8, 50.078, 39.619, 70.08, 52.533, -32.4569, 45.9497, -37.5127, 26.95, 31.7414, 55.1806, 54.5, 43.1003, -45.917, 30.9844, -34.6398, 54.65, 45.8833, 39.2833, 39.1667, 47.08, 29.1, 5.77, 33.3, 49.8753, 48.8333, 26.35, -0.9, 70.067, 45.05, 45.05, 27.218, 26.5833, 40.32, 43.1497, 51.1833, 48.5667, 12.967, 4.73, 13.97, 13.733, 46.35, 44.7978, 4.38, 4.4, 4.398, 44.783, 13.45, 13.338, 13.2, 13.35, 33.4528, 49.7, -33.9181, 36.1617, 44.3, -1.38, 6.78, -8.217, 38.85, 34.35, 46.32, 25.13, 55.3331, 43.4583, -30.9469, 46.7833, 18.2, -24.1819, 53.117, -7.317, 46.3108, 48.322, 21.3167, 36.8825, -23.5544, 41.4, 41.4192, 41.2928, -0.981, 37.8194, 69.0589, 36.8831, 32.2631, 28.367, 78.1, 53.6167, 54.33, 47.7722, 22.75, 41.13, 56.29, 31.9, 31.92, 59.42, 53.0667, 22.0333, 46.233, 53.4331, 39.9917, 43.9456, 36.5653, 10.043, -30.3781, 47.55, 48.35, 47.65, 46.85, 46.7167, 46.7167, 18.1667, 48.3667, -5.5, -12.15, 36.8978, 32.6833, 42.4281, 44.2033, 51.1833, 48.3667, 44.3833, 42.1153, -21.5317, -38.32, -20.8206, 71.2833, 48.167, 34.8928, 34.9, 34.8536, 70.1333, 54.367, 41.6, 36.7619, 36.7683, 41.87, 33.8097, -21.698, 27.8986, 38.5311, 48.917, 49.65, 46.683, 48.6333, 44.4167, 29.883, 20.451, 47.55, -64.88, -62.5, -74.7, -77.867, -63.317, 43.9333, -63.4, -62.233, -64.233, -60.733, -68.117, 41.38, 44.38, 38.1, 30.52, 33.879, 13.32, 52.8494, 47.417, 58.9, 32.7314, 47.8, 63.517, 30.0, 43.0303, 36.5167, 34.3061, 35.7597, 35.8306, 42.6339, 42.3489, 47.6167, -33.4289, -33.52, -33.4167, 66.8333, 13.4, 37.929, 35.55, 30.5372, 27.02, 4.47, 7.7, 34.385, 42.3667, 42.3075, 45.7717, 52.25, 41.05, 40.6117, 41.633, 48.7094, 48.4167, -22.317, 36.8583, 46.833, 43.03, 45.733, 47.9, 46.133, 40.75, 47.783, 49.7, 39.2728, 35.1311, 40.3, 46.8833, 49.2333, 39.8, 45.37, 29.9142, 47.9803, 28.9797, 47.9833, 47.9833, 30.8839, 31.9694, 30.3758, 31.85, 46.9283, 40.8236, 54.3333, 40.5583, 44.4667, 39.1167, 49.6167, 44.385, 44.7833, 37.7167, 44.95, 43.75, 41.8333, 40.3167, 41.9583, 44.5972, 48.3, 34.1394, 41.3, 41.4667, 44.6, 31.7222, 40.25, 40.2994, 45.1333, 36.995, 46.2, 32.4833, -32.35, 32.3953, 33.9286, 30.0689, 46.6667, 50.0333, 49.4467, 50.7458, 36.8125, 38.3, 49.4833, 33.4286, 55.2, 45.4547, 40.1306, 34.6417, 44.95, 62.4167, 36.9139, 37.4533, 43.4447, 39.1333, 40.6167, 55.38, 49.4667, 45.1333, 19.83, 46.3333, 31.646, 37.7836, 37.7647, 59.37, 53.625, 37.3475, 40.6742, 42.4833, 42.8733, 52.217, 44.5075, 46.5333, 46.1833, -36.3702, 50.8333, 35.4583, 49.5628, 31.233, 28.4575, 28.3667, -36.6884, 17.45, 46.3, 66.9833, 21.48, 39.933, 39.8, -19.8, 33.9, -22.217, 50.8989, 38.0167, 53.05, 36.8, 36.75, 40.2, 46.7, 47.45, 47.783, 31.6333, -35.0042, 48.8411, -1.45, 44.4394, -25.65, 15.85, 44.8167, 44.8, 35.5731, 39.0231, 44.2867, 54.1167, -28.43, 52.3667, 52.3833, 52.3667, -30.267, 47.9, 40.3533, 45.863, 39.2483, 47.3833, 39.8183, 44.15, 38.52, 42.2611, 41.1167, 44.6714, 44.9906, 26.6928, 34.6892, 41.8814, -30.4519, 48.7833, 48.7178, 48.7939, -62.183, 54.1333, 43.1333, 46.1644, 35.5297, 54.233, 59.4, 50.917, 39.4575, 42.5039, 60.033, -19.9333, -2.633, 31.1, 39.0303, 61.1833, 40.8333, 40.8292, 55.85, 73.33, 33.1772, 12.6, 47.5369, -36.5483, 18.1164, 27.5969, 32.6475, 47.5, -30.8081, 44.0569, -36.7533, 32.95, 32.08, -3.87, -3.9, 2.95, 30.133, 32.3697, 35.3, 35.3, -4.383, 40.0503, 56.0281, 52.0019, 49.68, 45.3167, 49.45, 39.5, 61.5633, 39.4667, 34.5675, 36.3219, 38.0336, 44.0342, 42.1244, -29.15, 35.5044, 41.317, 32.011, 37.0856, 41.3833, 40.5903, 39.9003, 4.22, 46.75, 37.5733, 52.35, 52.3667, 49.433, 53.833, 63.93, 63.4, 57.12, 45.6667, 60.2892, 60.3831, 60.4, 42.4061, 46.5869, 63.05, 37.8744, 49.883, 44.4536, 52.6325, 52.4639, 52.4683, 32.2667, 46.9331, 35.3167, 34.4219, 51.8231, 40.6683, 37.9161, 49.9183, 46.9906, 37.95, 39.15, 39.35, 46.05, 39.8, 39.8, 47.75, 49.283, 56.15, 47.25, 33.3953, 41.8975, 36.6778, -26.467, 45.5, 40.2575, 60.785, -28.248, 44.2833, 17.72, 66.9161, 32.0, 43.9092, 47.2622, -32.1083, 40.2, 37.7, 57.8, 53.0, 23.283, 20.25, 23.25, 17.25, -1.183, -1.2, 53.1, 46.588, 43.46, 48.4, -41.8739, 51.3, 45.9981, 35.281, 45.0403, -18.6844, 50.9208, 49.8, 32.3744, 50.6381, 40.23, 42.0833, 47.875, 47.7, 52.0667, 52.3167, 39.9356, 43.07, 40.7406, 40.7333, 46.8325, 34.2431, 41.7667, 37.5333, 51.6667, 44.6333, 63.9944, 48.1969, 38.2244, 31.2, 38.5217, 43.7072, 42.05, 60.8142, 48.135, 42.65, 47.0167, 45.2769, 32.2442, 41.0469, 51.1667, 45.8328, 53.8333, 37.0769, 44.8078, 27.3, 52.68, 28.0, 46.8, 49.75, 43.2981, 40.2, 44.1, 42.4167, 36.5297, 49.0167, 37.0536, 45.8069, 45.7717, 44.1242, 18.683, -24.3789, 30.3931, 30.4167, 1.166, 48.6, 50.8833, -17.617, 42.1997, 33.9114, 38.867, 50.5833, 3.2, 3.2, 10.28, 26.48, -35.9825, 42.6325, 52.5167, 39.8667, -25.9003, 37.0, 32.898, 33.5656, 33.4667, 45.3247, 13.8, 48.733, 53.0903, 55.417, 50.4333, 56.2, 25.23, 25.233, 31.4333, 31.4475, 31.4269, 48.6167, 49.8756, 58.5167, 19.984, 42.83, 45.5833, 34.2169, 37.3711, -32.9, 34.85, 46.7708, 46.8, 46.7717, 45.5286, 38.5636, 39.7667, 63.03, 63.05, 11.87, 11.895, 51.0333, 47.15, 2.08, 38.4, 41.05, 41.5894, 33.4594, 1.433, 35.9833, 46.0, 37.25, 58.27, 44.0667, 43.72, 74.5167, 64.04, 61.6595, 64.4808, -24.4214, 47.6714, 43.1969, 48.0128, 53.77, 37.2017, 33.3631, 44.3833, 43.3167, 36.8047, 44.5, 38.9792, 49.85, 48.5667, 38.6833, 43.6561, 35.6072, 46.4167, 33.4783, 38.7075, 43.5233, 54.367, 43.6231, 50.25, 65.05, 48.9775, 39.4989, 41.5536, 44.2906, 49.6167, 34.8544, 46.183, 31.2239, 34.5697, 37.4786, 35.1183, 60.0, 45.75, 30.1061, 51.4167, 51.45, 37.6131, 50.0367, 45.4167, 47.35, 42.95, 42.9544, 41.1667, 41.1667, 52.417, -29.1, 59.29, 45.1667, 45.0908, 40.7597, 36.6669, 47.4694, 42.3842, 39.1742, 40.2636, 30.45, 37.5928, 36.1472, 33.5833, 12.0, 37.2958, 37.6411, 40.5017, 39.2775, 44.67, 38.5208, 42.2122, 38.3833, 38.6, 40.3803, 38.4667, 35.1161, 45.5075, 34.6108, 52.1333, 52.15, 37.2825, 40.8142, 48.8719, 43.7167, 33.6131, 35.9239, 33.6186, 55.7031, 42.4333, 7.95, 45.8472, 44.5933, 44.6056, 52.65, 47.4333, -18.53, 2.817, 50.95, 44.755, 11.16, 11.67, 53.217, 48.067, 56.9667, 39.3886, 17.43, 38.111, 16.98, 51.8392, 51.4803, 57.85, 65.8197, 38.2119, 67.2669, 67.267, 37.03, -29.05, 29.7986, 30.7808, 39.93, 39.2, 51.5333, 50.7808, 51.17, 52.38, 4.701, 56.233, 24.85, 58.3831, 49.933, 7.167, 48.9458, 50.2, 43.7383, 43.5667, 36.7236, 43.5253, 49.2333, 53.4, 10.93, 53.865, 49.217, 65.68, 56.933, 11.583, 45.667, 42.1225, 37.6167, 35.2622, 57.66, 55.49, -28.0336, 44.5, 57.9, 20.0, 55.67, 56.9, 56.1, 52.83, 52.03, 53.85, 57.915, 54.83, 54.0, 40.733, 66.15, 38.7, 46.47, -36.9113, 18.9, 19.117, 54.7167, -19.68, -28.66, -13.267, -9.1, 40.0167, 44.375, 48.6667, 16.95, 8.05, 43.2278, -36.1333, 43.0778, 44.6833, 33.6403, 39.58, 53.5, 50.7333, 48.6928, 45.6361, 39.6567, 50.7067, 45.4, 7.53, 46.65, 36.2167, 42.0417, 34.6344, 35.0931, 36.2114, 40.8917, 38.9708, 43.4361, 53.2281, -36.116, 29.3331, 29.1853, 61.6, -25.15, 57.76, -16.4333, -16.45, 44.83, -37.85, 42.1333, 42.2128, 55.3333, 21.333, 36.067, 35.6364, 58.29, 18.4981, 54.267, 68.7715, 53.5803, 60.4292, 55.063, 38.5, 11.73, 11.75, 33.2558, 50.4, 44.5856, 51.17, 44.4389, 33.8044, 6.48, 6.5, 5.27, 52.1, 42.1667, 49.8667, 42.35, 42.3606, 34.0211, 42.667, -27.4, -42.3883, 46.683, 47.68, 48.8217, -17.5333, 49.15, 7.68, 5.967, 11.417, 37.905, 39.9919, 46.2314, 35.98, 44.7219, 42.7158, -22.9117, 55.417, 50.733, 48.9947, 40.8547, 6.93, 47.0667, 45.62, -30.0917, 44.8167, 50.78, 33.9431, 17.53, 35.341, 35.333, 48.7994, 51.9833, -20.0151, -20.0167, 55.5408, 32.325, 33.5511, 39.3447, 36.9647, 41.3831, 46.1825, 43.9167, 39.4539, 45.3667, -34.4869, 53.2833, 51.0833, 33.883, 42.1333, 45.2833, 31.3944, 39.2167, 45.1672, 43.4053, 35.5303, 39.8, 45.8167, 45.675, 45.7881, 45.6622, 41.87, 39.9, 29.3167, 27.4467, 53.8134, 37.495, 41.8975, 44.0333, 41.8031, 44.0333, 31.1444, 47.95, 61.4667, 57.0108, -1.0833, 41.8, 51.817, 46.3433, 62.22, 43.6667, 52.405, 46.8833, 45.8161, 39.6667, 49.9167, 49.8667, -30.47, 43.1333, 31.5833, 32.5158, 39.5656, -15.783, -15.867, 45.6603, 61.9067, 48.1667, 50.783, 56.28, 51.733, 52.319, 35.62, 51.883, 32.9544, 38.2611, 36.7444, -4.25, 32.75, 56.26, 63.46, 48.5156, 59.22, 52.43, 44.9878, 47.5, 48.85, 46.3797, 53.0464, 53.533, 47.5689, 53.5, 37.7092, 30.1592, 47.0, 44.9667, 45.5, 48.45, 52.1167, 53.1667, 35.2283, -1.68, 63.3333, -29.9614, 41.9375, 39.3686, 31.1414, 31.0583, 6.53, -25.655, 40.9461, 33.2064, 38.2575, 41.2, 41.6681, 34.9786, 41.1583, 45.3261, -33.9486, -33.9575, 38.75, 43.5525, 44.4, 46.4283, 51.5, 44.07, 54.1, -24.8353, 40.635, 41.5239, -36.7313, 40.6, 39.9436, 52.9833, 36.2147, 51.4156, 47.2472, 38.3083, 40.6331, 34.8822, -27.4808, -27.4178, -27.3917, -27.4778, 50.8167, 44.2, 36.4731, 51.467, 35.8292, 43.1017, 45.7908, 46.72, 53.33, 46.2, 45.4442, 46.1, 50.3667, 50.3833, 60.4833, 50.9833, 57.8833, 51.8, 43.2, 42.0478, 44.6, 44.6, 47.2875, 42.6333, 50.1, 59.65, 41.4083, 34.1333, -31.9759, -31.9333, -14.4, 49.7356, 45.1833, 45.4833, 45.7231, 39.765, 33.5214, 31.5447, 44.3253, 42.03, 32.375, 41.3667, 37.1275, 50.55, 50.5833, 28.6164, 50.55, 38.7667, 50.6333, -32.3725, 39.4239, 41.15, -17.9475, 43.8094, 50.8292, 60.1, 52.3167, 33.1908, 48.5594, 42.2872, 44.8364, 25.9156, 35.5894, 40.8008, 45.5958, 31.7383, 40.5833, 43.55, 49.6314, 53.35, 45.95, 39.0833, 45.05, 42.8819, 4.944, -18.637, 31.1681, 39.4247, 31.1522, 43.9, 44.2844, 30.3919, 50.9, 37.7064, 37.6411, 39.2933, 15.2667, -1.039, 29.767, 37.5247, 48.8167, 53.3567, 33.3761, 38.1872, 43.0361, 38.9803, 40.6158, 45.5833, 47.1694, 40.5003, 39.1333, 46.5167, 44.5167, 40.8125, 47.5108, 47.433, 50.8281, 44.8, -6.293, 19.21, 38.8247, -34.583, 41.15, 42.9486, 44.3547, 37.6667, 45.1969, 36.8003, 44.5075, 55.8333, 55.8333, 50.55, -21.017, -31.37, -25.75, 42.1164, 50.75, 42.33, 48.767, 54.583, 39.717, 48.6753, 42.6006, 64.4014, 69.62, 64.4167, 58.483, -3.32, -1.333, -20.017, -20.15, 48.8, 46.1, 37.53, 35.1411, 55.1333, 41.6764, 50.9167, 46.8167, -33.3267, 48.6833, -24.8667, -37.7163, 36.7736, 37.5139, 30.9594, 49.3833, 24.233, 29.3414, 34.2006, 34.1867, -19.5775, 37.7, 42.4833, 47.6167, 47.6167, -31.0, 44.7742, 40.3833, 24.95, 42.3558, 51.0317, 39.5, 37.0925, 44.0333, -17.7425, 45.6, 32.5067, 42.5417, 39.3061, 41.7944, 42.6508, 44.4833, 40.7747, 36.0603, 44.4683, 40.7833, 43.3333, 49.2667, 49.2833, 30.7586, 40.8803, -41.0661, 42.7772, 54.2333, 43.595, 43.5833, 43.2192, 48.1667, 49.25, -34.9997, 43.3656, 43.7, 43.8397, 39.8833, 40.183, 53.05, 61.3667, 41.7769, 45.5167, 35.1, 45.5397, 28.945, 28.95, 28.6664, -42.7097, -24.0222, 38.683, 55.8389, -28.77, -42.2811, 47.5833, 40.8414, 38.2611, 38.9, 42.9131, 47.7947, 45.9647, 53.45, 57.4, 35.4028, 53.2567, 42.82, 45.1331, 41.75, 52.817, 39.7403, 58.6667, 58.6656, 38.467, -80.0, -80.0167, 68.75, -28.6399, -28.6388, 32.6694, 52.367, 75.533, 32.8964, -5.55, 48.0864, 39.6553, 43.5, 34.9817, 39.35, 19.85, 21.52, 18.6, -46.83, 21.867, 22.87, -35.9383, 19.6333, -8.517, 39.5064, -16.05, 39.4719, 39.4831, 50.9167, 34.5822, 26.33, 25.6, 44.2656, 48.2167, 49.7167, 36.5008, 40.2686, 23.26, 35.1072, -14.05, 8.48, 40.8, 39.2331, 38.5669, 14.8, 22.52, 22.31, -16.6, -16.8736, 31.2667, -16.9333, 39.2047, 30.1, 37.0422, 42.3167, 39.1667, 30.1333, -7.15, 50.43, 40.8653, 44.2, 38.2769, 22.533, 22.65, -21.91, 43.6667, 49.1667, 39.8167, 43.6308, 33.0944, 51.1167, 51.1167, 51.1, 33.8586, 34.4833, 34.0906, 32.5133, 36.1092, 37.6128, 38.6278, 33.3064, -34.6345, 38.5961, 3.55, 3.4, 41.3111, 41.3075, 39.8997, 18.83, 55.25, 40.6833, 36.1414, 53.2833, -26.8017, -31.467, 38.7, 21.24, 21.4, -27.7072, 50.2167, 40.0111, 40.2847, 44.5733, 45.5506, 69.1, 69.1, 39.8667, 43.3333, 38.5667, 43.3306, 38.2167, 33.59, 32.0289, 34.2428, -34.0391, 48.033, 53.2833, 45.53, 30.8458, 34.9039, 49.4667, 35.8833, 49.05, 49.15, -2.25, 31.1903, 52.4167, 7.928, -20.05, -19.9225, 46.0958, 44.0667, 37.3167, -34.0833, -52.55, 49.95, 50.0667, 50.0167, 19.85, 43.8719, -23.0, -7.217, 32.6233, 11.9, 41.567, -21.75, -22.75, -27.38, -7.0, 37.0158, -29.68, 41.924, -20.45, -24.05, 54.1333, 43.78, 48.0181, 42.3458, 45.5489, 21.5783, 37.8, 38.2486, 33.3, 37.0375, 38.8167, 45.8333, 29.6703, 53.0333, 52.95, 39.05, 40.6944, 35.9092, 40.138, 50.15, 26.8639, 42.8453, -2.55, 24.53, -15.667, -35.3049, -35.2667, -35.3, 44.7183, 18.18, 30.1383, 52.4, 31.5589, 41.0167, 38.333, 40.6, 61.0183, 44.3489, 46.4847, -29.946, 40.7436, 38.46, -33.572, 45.8833, 18.02, 36.0617, 41.6517, 43.3056, 35.5167, 32.6714, 44.5772, 40.1433, 63.3953, 34.9806, 38.46, 38.1678, 45.9167, 29.8706, 40.1706, 36.1533, 46.65, 40.883, 25.28, 22.667, -20.51, -33.9, -34.833, 48.7833, -35.7549, -35.7529, -43.4886, -43.4892, 40.567, -23.4833, -19.1833, -32.833, -11.3167, 64.2333, 64.2333, 64.2333, 66.65, 66.5833, 37.2253, -40.6828, 35.2325, -31.633, 68.4667, 73.65, 73.333, -34.3728, -16.3961, 68.8667, 68.8667, 38.9536, 43.95, -27.0314, 50.0, -33.5372, -38.4306, -38.4319, 58.6333, 58.65, -38.0573, -38.8556, 40.017, 70.1667, 46.6667, 61.7667, 61.7833, 43.3833, 54.6, -38.4931, 50.7833, -34.18, -34.2, 51.9333, 51.9333, -28.5, -33.93, -33.965, 50.017, -35.8426, 58.63, 68.93, -18.71, 33.5311, -8.081, -5.206, -4.577, 38.2917, 48.1, 21.85, 39.93, 39.1, 39.75, 39.5, 46.8667, -6.787, 19.78, 43.083, 48.85, 49.51, -8.378, 49.2333, 41.367, 49.0167, 12.41, 10.5, -9.283, 49.2667, 45.42, -25.8, -19.8, -17.733, 49.8667, 37.7308, -17.53, 43.2142, 60.1667, 41.367, 51.4878, 51.4, 49.1333, 45.8608, -18.2553, 33.8161, 13.15, 52.7167, 46.8706, -26.33, 45.15, 39.2883, 40.915, 40.2, 54.933, 32.3478, 32.1783, 32.3336, 33.1281, 52.8, 49.6333, 46.7447, 38.6308, 62.1, 49.4, 41.4333, 38.0733, -21.93, -29.6889, -30.97, -24.8878, 48.9, 35.1756, 55.7, -7.333, -26.07, 50.45, 43.4839, 39.1469, 41.0844, 49.173, -34.838, -36.773, 47.4494, 47.5089, 33.6308, 28.4894, 42.065, 33.5972, 39.3594, 38.6583, 44.9667, 37.517, 46.425, 39.1253, 45.8678, 10.5, 29.7908, 34.2042, 47.7919, 32.1614, 32.7506, 36.2456, 36.851, 37.1772, 49.05, 53.7167, 48.2333, 40.8847, 36.1261, 30.1981, 49.0, 33.62, 23.167, 32.8878, 32.9947, 32.3222, 37.65, 42.2989, 44.5228, 46.9956, 47.2194, 43.5833, 44.3914, 16.31, 53.302, -66.283, 44.9711, -28.97, 43.7447, -28.8755, 5.62, 42.85, 42.7333, 42.8975, 46.8769, 59.2833, 38.0211, 36.6728, 47.3847, 42.0633, -34.67, 44.8, 39.95, 39.9892, 44.435, -37.583, -37.5909, 42.5503, 49.3, 49.35, -37.0809, 44.7269, 37.3833, 39.2078, 33.9825, 51.2667, 39.4106, 38.6514, 29.1344, -24.783, 14.9, -18.18, 35.6375, 18.28, -28.596, -28.5, -28.48, -21.133, 37.47, 44.3667, -25.596, 28.3392, 12.48, 11.78, -28.98, 18.3453, 41.9, 41.92, 39.6453, 48.3667, 48.8628, 43.3847, 42.1597, 38.1228, -4.86, -29.16, 4.8, 18.1189, 9.183, 25.95, 29.2, 18.5333, 46.93, -5.65, 10.3, 37.6667, 41.1417, 56.3333, 45.3222, -29.533, 38.9, 34.0589, 55.0167, 41.5306, 38.7978, 43.5958, 37.6564, 37.7086, 37.6667, 34.9833, 47.4144, 40.3008, 39.7569, 37.7158, 41.8833, 42.05, 37.0347, -32.1297, -32.1267, 15.8, 22.71, 50.8667, 36.5408, 46.55, 40.5694, 50.95, 47.85, 52.5833, 35.8297, 51.433, 39.1, 41.3136, 31.8075, 40.2914, 31.2581, 40.7325, 43.0431, 35.7553, 47.0644, 37.7067, 39.7242, 46.72, 55.217, 65.5667, 41.1222, 17.1833, 39.3833, 39.05, 44.4, 46.3833, 32.8661, 34.1167, -15.7426, -62.42, -62.183, 59.25, -29.883, 54.167, 51.4, 48.27, 56.5, 36.7408, -27.65, 18.1547, 24.93, 49.4, 49.777, 44.224, 48.95, 38.3, -32.8093, 52.42, 35.89, 35.8919, -26.9, 37.0, 36.9, 49.3833, 23.75, 36.97, 41.08, 41.4, -6.2, -6.2, 36.0286, -32.98, 42.8083, 25.2833, 53.55, 62.283, 47.5167, 15.8, 34.5, 33.617, 40.85, 40.9, 39.8447, 46.05, 44.5036, 36.9178, 43.735, 42.2031, 39.9353, -30.367, 36.95, -27.296, 46.5192, 19.36, 67.5111, 35.7061, 33.2058, 41.35, 43.9, 29.05, 34.68, 40.367, 38.733, 44.25, 28.2, 28.233, 25.85, 35.17, 37.933, 35.5, 35.6831, 12.6, 37.6703, 55.283, 41.55, -3.73, 50.2, 49.7833, 20.3, 29.52, 19.98, -27.117, 35.9086, 19.5, 47.8167, 50.4667, 64.42, 48.133, 27.5892, 56.9, -17.58, -17.58, 23.13, 41.5833, 39.0831, 41.0164, 50.467, 46.8667, 34.0039, 36.9272, 39.4761, 48.3833, 32.78, 32.8986, 32.85, 38.3794, 38.65, 43.5833, 43.0603, 40.74, -26.4139, 42.5503, 41.0347, 38.0328, 46.2833, 46.25, 28.9275, 18.35, 18.3331, 18.3333, 37.0522, 35.2236, 35.2333, 47.9833, 43.0597, 45.6833, -20.0464, -20.0781, 48.4617, 41.6, 36.7775, 44.8, 44.75, 46.05, 46.85, 46.4831, 46.9667, 36.8225, 41.6569, 47.05, 46.35, 46.3414, -43.95, 50.3333, 42.3833, 40.6, 31.4714, 44.4, 45.4667, 34.4225, 35.0311, 18.28, 47.0511, 42.1744, 44.8786, 36.3211, 50.067, 45.6528, 37.15, 52.917, 39.1814, 39.2203, 35.432, 47.8344, 55.3, 43.9833, 45.5167, 50.8, 43.2292, 43.2167, 45.5833, 45.9, 40.967, 30.667, 37.4, 33.75, 40.7394, 25.8, -31.333, 40.7667, 34.7319, 49.65, 60.4, 63.03, 48.3667, 42.583, 52.78, 52.533, 42.7572, 36.7672, 25.25, 25.25, 39.6261, 45.4167, 34.9, 42.8239, 37.9747, 68.75, 57.65, 49.0, 40.3033, 48.5153, 63.3333, 63.35, 51.0333, 39.2167, 45.1, 45.0167, 34.6847, 42.3, 42.3333, 46.65, 46.65, 18.505, 55.6833, 34.54, 48.2733, 41.1519, 38.8219, 41.1522, 25.517, 18.783, 19.883, 16.51, 35.6, 49.8167, 49.7667, 42.1397, 41.7861, 41.7372, 41.995, 41.7833, 41.8833, 16.58, 35.983, 27.1, 27.0833, 34.5019, 35.0489, 42.2, 48.4167, 39.6911, 47.9967, 47.883, 18.52, 50.5728, 42.3, 28.633, 34.3317, 33.285, 34.4272, 34.3494, -15.683, -36.5833, 39.3744, 39.8, 49.1667, 49.1667, 49.0833, 49.1667, 43.9772, 42.7036, 42.5769, 38.7983, 17.55, 44.0328, 42.3, 38.8, -19.117, 12.6333, 8.539, 35.6875, 4.9833, 47.843, 27.4, 35.2, 48.5883, 34.7569, 38.3331, -20.2, 30.7806, 41.0517, 32.0061, 42.2, 29.2703, 52.0831, 14.233, 22.35, 39.8, 51.0887, 48.083, 53.5, 46.45, 26.733, 53.7, 28.4675, 70.6167, 14.7333, 42.65, 13.3167, 36.62, 42.06, 41.783, 35.57, 36.63, 29.583, 29.517, 35.82, 13.367, 48.983, 51.283, 45.517, 49.017, 35.733, 47.8206, -43.489, 17.7028, 17.7469, 1.9833, -10.45, 41.7594, 32.64, 62.8256, 10.483, 64.23, 37.9, 41.783, 34.83, 36.22, 46.86, 49.068, 58.7333, 58.7333, 53.55, 53.5667, 53.55, 58.7333, 41.3975, 53.833, 45.8667, 46.8667, 46.65, 7.45, 25.017, 49.083, 39.6, 45.1, 58.0833, 38.65, 17.45, 44.167, -7.733, -7.7, 51.633, 37.8131, 38.4442, 36.4661, 42.95, 47.63, 39.15, 39.1169, 39.1033, 39.0431, 39.1, 43.3208, -11.083, -38.95, 47.4122, 38.1706, 39.6106, 33.9, -6.75, 44.067, 8.122, 24.95, 28.2, -25.533, 28.52, 19.717, 27.13, 27.367, 38.9892, 23.733, 37.3, 57.767, 45.0833, 32.8203, -32.2, 34.1, 36.3225, 53.7167, 44.9167, 34.68, 34.9325, 48.3667, 50.0167, -33.8364, 40.7244, 42.72, 41.1922, 44.8817, 50.1833, 39.2683, 34.1864, 41.7239, 35.4833, 33.6164, 39.2553, 35.5328, 36.5472, 33.6631, 44.9367, 44.3742, 46.1081, 35.11, 51.7917, 32.1678, 49.1333, 31.8708, 34.8878, 46.6108, 46.6167, 36.4486, 35.6408, 39.3739, 40.5208, 34.3833, 48.9672, 56.3333, 38.9239, 44.5781, 47.5711, 51.65, 51.9833, 64.05, 51.5167, 37.1319, 39.8667, 39.8833, 44.7592, 45.2, 39.1, 32.3139, 44.6167, 34.6603, 38.4933, 41.7333, 28.4558, 45.8, -22.8239, 50.05, -33.7011, 30.3636, 33.7367, 36.3, 41.4131, 33.7942, 36.2903, 48.3167, 35.2203, 26.7422, 47.1889, 32.8339, 33.0561, 39.3672, 34.9319, 35.5014, 38.395, 42.4, 44.6228, 41.7947, 35.0247, 30.8178, 51.15, 38.9408, 69.5833, -20.6664, 54.1833, 46.7047, 32.9544, 32.9667, 44.4, 38.8, 45.205, 45.0167, 40.8797, 34.4289, 34.5989, 34.3833, 49.7167, 58.3667, 46.8, 46.7831, 70.4833, 70.4833, 70.4833, 36.1356, 40.9139, 40.9383, 39.8958, 50.6, -4.083, 39.9667, 39.9847, 45.15, 18.133, 45.0833, 15.3, -31.5389, -31.484, -11.03, 42.6833, 42.6667, 43.9667, 50.283, -17.42, 38.4461, 35.6414, 49.0667, -16.09, 1.0, -12.183, -3.833, 44.3667, 30.3875, 50.1333, 44.835, 44.5147, 44.4139, 44.3367, -13.7606, -13.7642, 3.37, 47.6822, 47.7667, 42.55, -30.3107, 45.67, 47.0567, 39.8333, 11.033, 40.2, -38.3933, -38.3427, 39.3925, 42.6631, 30.5333, 37.2733, 41.9622, 44.6333, 55.2208, 53.6167, 54.4167, 43.2667, 42.5333, 44.35, 44.8611, 31.8281, 49.5667, 49.6333, 45.15, 45.9167, 38.3333, 39.0911, 46.8833, 47.2428, 44.3158, -6.03, 47.2167, -29.5407, 39.2425, 45.4833, 45.5794, 64.925, 64.8603, 38.9833, 30.5892, 31.6419, -20.5534, 58.1833, 40.6983, 42.0169, 6.9, -34.5, 38.2506, 23.2, 51.9333, 44.8711, 36.9936, 39.1014, 38.81, 22.1, 31.1681, 45.8944, 52.77, 31.2503, 33.9486, 35.9167, 37.7333, 35.6381, 45.725, 41.1453, 38.8169, 33.9831, 40.4, 38.4167, 29.6989, 31.8297, 33.4678, 37.1764, 39.1661, 45.6444, 41.4639, 33.4667, 33.65, 41.2864, 32.5161, 39.9833, 39.9914, 39.8167, 39.95, 39.9047, 39.1875, 48.5833, 48.55, 45.8667, 19.5, -9.347, 45.3667, 46.4667, 11.117, 39.3814, 47.8, 49.2667, 23.43, 16.25, 34.2625, -31.297, -45.783, 49.7167, 49.6833, 41.5569, 9.57, -32.4, -8.25, -8.25, -19.033, -36.83, -23.43, -16.25, -23.4, 40.2394, 35.4072, 24.7833, 48.5558, 35.4111, 43.205, -31.38, 39.5514, 43.1953, 48.5397, 11.9333, -33.0664, -33.0818, -33.0833, 45.2325, 39.7994, 53.083, 43.3203, 41.7333, 49.6167, 46.6644, 39.6556, 48.1794, 30.3303, 44.22, 36.3697, 18.9, 49.3, 41.7706, 48.0803, 51.7667, 65.4833, 31.75, 33.8314, 35.0833, -29.004, -30.6143, 36.1075, 45.0108, 45.4167, 44.2, -15.4486, -15.4633, 47.8667, 37.8167, -28.1681, -28.1661, 46.7667, -36.2318, 49.3, -31.2712, -30.9753, -37.3, -37.2906, 42.7167, 47.405, 18.0667, 39.6772, 60.3925, 60.4875, 40.2569, -34.6333, -34.6411, 42.1131, 40.2, 43.25, 31.5333, 34.9939, 67.8333, 43.8, 34.1122, 47.0833, 47.4678, 39.4833, 43.1872, 19.2, -29.95, 49.3667, 42.9589, 64.2, 38.2022, 49.5167, 36.0975, -22.02, 31.985, 34.305, -31.317, 37.8442, -31.4, 48.5167, 60.4889, 60.5561, 39.6167, 44.9197, 41.5481, 34.8792, 51.841, 41.2, 49.3167, 34.5181, 45.8833, 48.95, 36.4197, 40.9886, 31.78, 43.9572, 45.0167, 45.0333, 12.0, 33.8833, 49.1167, 49.05, 31.3456, 33.8, 52.0667, 52.0833, -18.053, -13.155, -21.55, -37.433, -35.9887, 18.3267, 27.7839, 27.8, 27.6833, 27.7792, 35.2489, 40.2833, 47.0167, -13.33, -27.446, -32.3292, 41.9167, -36.2003, 32.1225, 50.0833, 37.3444, 46.55, 42.6, 38.4864, 40.55, -19.083, -19.0, 44.5661, 44.6342, 44.5078, 39.67, 40.75, 24.42, 19.06, 40.3708, 40.2403, 51.5167, 45.3167, 43.658, 6.35, -0.63, 43.7917, 43.7178, 51.7775, 44.1094, 52.733, 47.17, 43.9611, 46.0336, 42.5167, 38.3703, 39.8358, 40.6242, 32.8869, 19.05, 28.4567, 45.8003, 41.8333, 46.0625, 47.25, 47.9167, 47.9544, 44.1667, 44.7442, 38.6758, 45.1833, 48.2072, 49.7667, 49.7167, 49.6833, 39.7811, 42.7667, 50.1833, 45.3, 39.8158, 41.8, 45.2964, 38.6, 33.5972, 35.5497, 30.5272, 40.1167, 37.8106, 52.0333, 35.0592, 48.7167, 48.8167, -33.8449, -33.8451, -33.8087, 41.2708, 49.9167, 21.452, 18.43, -45.55, 38.2833, 17.38, 15.78, 44.2833, 36.683, 44.4333, 37.4903, -32.16, 57.18, 46.2333, 51.7667, 40.4506, 49.0992, 44.23, 49.6167, 49.5167, 49.45, 49.4833, 31.4072, 38.8725, 40.6669, 43.465, 42.8967, 46.5667, -5.167, 42.7, 40.0028, 40.0489, 41.9919, 27.75, 57.35, 42.4603, 41.7958, 41.7608, 43.3894, 44.1, -41.7256, -41.7219, 38.8739, 38.9628, 48.1889, 49.1, 37.9806, 41.0372, 49.1, 30.7797, 40.6092, 45.17, 38.7497, 37.9833, 31.8453, 51.0333, -32.83, 45.3575, 44.1167, 45.6, 31.3072, 42.7364, -26.8094, 43.4167, 47.8014, 48.9075, 33.6517, 40.1667, 33.1111, 33.5133, 36.0147, 35.9508, 29.6333, 54.6333, 54.5333, 45.6414, 39.0, 30.2408, 34.2097, 11.15, 45.6, 43.8333, -18.2044, 37.6664, -6.43, -28.63, -12.66, 28.6794, 46.45, 46.1667, 42.99, 46.7833, 31.9461, 32.0333, 39.3333, 21.06, 26.98, 28.4, 18.79, 35.995, 35.0883, 14.8, 7.9, 11.767, -27.4233, 40.0667, 24.78, 18.883, 18.92, 29.0892, 44.15, -15.55, -15.65, 18.76, 40.2333, 48.1503, 50.083, 37.2167, 24.82, 42.8833, 35.3117, 56.8331, 54.5, 38.4833, 49.0833, 34.005, 55.1, 36.9667, 45.5333, 39.6419, 37.0167, 54.717, 42.4667, 37.6, 20.27, -31.6494, 44.4, -28.0706, 69.3667, 50.85, 43.9331, 20.95, 62.033, -34.967, -25.417, -25.517, 40.3667, 38.7586, 40.2667, -39.9322, -25.3139, 40.6742, -6.23, -18.75, 35.9803, 47.3706, 43.7744, 31.7672, 41.8328, 20.467, 48.6033, 53.8731, 32.9897, -13.6, -13.52, 52.3582, -16.4514, 38.3769, 49.6667, 49.55, 50.8167, 31.9544, -0.479, 28.45, 14.13, 38.9783, 16.083, 49.7333, 34.5328, 32.9203, 49.9833, 14.67, 14.733, 23.711, 25.4831, 52.75, 36.7, 43.583, 65.2667, -27.1839, 38.9386, 38.4547, 51.7, 36.0072, 36.0167, 45.3167, 45.3, 25.7, 38.9, 44.9464, 33.9881, 32.8978, 32.7333, 32.8519, 45.8667, 6.793, 34.77, 41.4086, 43.6561, 24.05, 40.4, -30.2761, -30.2772, 46.1833, 44.6167, -16.253, 28.883, 39.2667, 33.412, 11.786, -20.7278, 16.044, 65.54, 52.2833, 36.43, 41.4, 46.0086, 40.05, 29.0567, 38.1, 50.2333, 40.3, 42.9281, 11.228, 50.367, 76.77, 44.7192, 42.9447, 42.5653, 42.5708, 36.5869, 37.6528, 40.1389, 45.8167, 40.4397, 19.52, 29.05, 10.867, 26.1667, 46.0264, 35.2342, 51.3, 40.467, 48.083, 27.05, 33.75, 34.3011, 42.6781, 49.8817, 41.1144, 64.167, 48.26, -36.5353, 7.9833, 45.6, -12.4239, -12.4227, 43.4136, -6.867, -6.5, 41.8, 49.55, 43.3667, 32.9711, 40.1, 55.867, 51.1, 51.1, 30.2506, 47.8, 7.07, 46.1833, 47.6575, 41.55, 41.5167, 51.2667, 41.2492, -68.583, 38.7167, 38.535, 32.1667, 46.8167, 64.05, 55.75, 30.98, 29.1828, 32.3667, 46.3153, 35.4717, 39.9061, 39.7633, 44.5564, 16.05, 37.85, 31.2, 70.1917, 40.8, 44.3736, 44.4667, 44.55, 39.2636, 40.0786, 44.1833, 42.2833, -39.4764, 42.3194, 58.4333, 58.4333, 36.4622, 44.8919, 48.4, 45.4167, 57.63, 47.489, 47.6, 10.333, 39.8344, 39.8289, 38.4, 39.354, 43.3042, 12.467, 52.0614, 46.8997, 37.3739, 35.8272, 43.9944, 44.0667, 43.0908, 49.4, 40.4044, 39.3, 39.6253, 43.5764, 49.1667, 49.2167, 46.3911, 48.8019, 49.4167, 33.5833, 41.0661, 41.2783, 31.73, 47.8017, 39.5, 32.2167, 35.285, 33.4797, 29.0181, 45.0417, -26.73, 40.3175, 37.6333, 42.2558, 42.8667, 37.37, 31.8769, -26.15, 49.1833, 40.615, 61.79, 38.7531, 39.3375, 49.0667, 50.1833, 49.0167, 48.9983, 37.6908, 29.3783, 29.3667, 32.2531, 45.2167, 32.2622, 41.42, 59.6, 32.5192, 37.5667, 38.267, 31.417, -35.5269, 41.9897, 42.0364, 33.8167, 55.0, 37.783, -34.9511, 40.4056, 40.4, -8.749, 47.3181, 38.8833, 33.1992, 39.5703, 39.7633, 39.75, 52.3, 46.86, 42.0628, 69.33, 28.45, 28.82, 34.0464, 31.82, 42.07, -17.3706, 33.5597, 32.76, 44.45, 53.3917, 40.3, 40.1833, 39.3011, 46.6667, 39.2872, 38.6, 36.4381, 33.6267, 11.1, 34.9772, 36.75, 41.5339, 45.9983, 42.4092, 44.7242, 46.8372, 42.2314, 42.2333, 51.2, 49.767, 45.8667, 40.0833, 38.4, 26.6033, 48.1167, 48.1069, 44.5833, 37.2269, -41.18, 68.65, 38.8128, 36.8, 32.4, 37.48, -30.65, 52.1014, 30.7244, -25.17, 41.9342, 52.9267, 30.4347, 30.8428, 39.8717, 44.3867, 26.2833, 26.983, 48.7142, -18.23, -14.4, 43.1833, 40.6172, 36.9, 39.7086, 27.483, 46.8911, 47.1944, 36.075, 52.05, -20.535, -7.3, -12.3, -29.6694, 52.586, -33.95, 49.4169, 13.373, 44.5339, 43.8906, 44.1342, 44.6167, 44.6833, 47.38, 65.2397, 65.3197, 39.05, 73.5, 35.1842, 39.0333, 50.7325, 28.6806, 48.5708, 44.0992, 59.05, 45.2128, -8.5667, 34.4092, 39.6261, 45.2575, 6.65, 43.0167, 34.5858, 25.65, -62.183, 38.1, 30.033, 40.2442, 40.4378, 51.3167, 14.65, 9.6, 41.9667, 45.9167, 43.2336, 68.7781, 44.8, 45.7511, 41.3, 45.917, 39.4, 31.98, 45.5525, 41.835, 37.4389, 37.7858, 37.894, 6.8, -2.7, -2.53, 24.55, 34.683, 33.8, 33.8697, 11.55, 59.61, 48.6, 46.55, 46.733, 39.3575, 41.0072, 51.65, 44.1331, 42.9608, 37.7608, 41.9675, -6.167, 54.167, 39.6, 25.261, -32.517, 54.883, 55.12, 47.333, -4.18, 43.6, 41.8, -36.35, 50.75, 61.8833, -74.5, 53.7333, 44.5667, -36.3697, 30.0719, 47.9431, 40.1275, 48.067, 19.1, 19.167, 39.83, 32.85, 17.483, 36.6206, 61.4, 38.2167, 46.6833, 39.3239, -33.5719, 40.1636, 59.9003, 13.917, -15.3797, 36.79, 43.1639, 43.7822, 14.03, 14.033, 48.8167, 41.6833, 43.2242, 45.2167, 51.5131, 36.85, 18.3361, 17.6, 31.3214, 4.02, 42.1794, -25.9319, 31.345, 31.4889, 31.4583, 42.75, 48.1156, 50.1667, 50.0983, -43.3167, 39.1467, 36.4819, 39.1333, 45.1872, 41.9856, 39.6269, 39.5633, 42.0772, 40.0244, 47.85, 39.9717, 40.0222, 57.2, 60.1331, 43.6656, 47.9167, 48.0475, 40.4878, 36.2836, 42.5833, 51.133, 51.1167, 61.8869, 43.8081, 43.7306, 30.2133, 44.6331, 49.35, 46.3333, 45.8833, 46.6383, 45.0333, 62.2, 52.05, 68.233, 52.1833, 30.05, 49.7833, 49.8333, 41.4167, 41.4917, 34.4833, 47.7333, 40.5333, 40.535, 24.6278, 9.34, 25.255, -32.2385, 46.8167, 32.5575, 32.0628, 53.3639, 43.5397, 44.2436, 41.1783, 38.4558, 42.57, 42.54, 42.3978, 46.8667, 40.1678, 38.8522, 69.4, 45.4539, 41.8678, 49.8667, 40.1839, 46.0167, 51.3953, 41.15, 44.317, 51.717, 36.3, 36.9358, 43.4117, 46.8369, 46.7681, 46.8367, 46.8333, 33.8847, 35.8731, 55.05, 24.267, -66.667, 56.0039, 46.3167, 32.7481, 34.5011, 48.7667, 48.7333, 50.2333, 45.6167, 54.0531, 76.5667, -7.4, 51.8, -45.9, -45.9, -32.0159, 43.37, 40.15, 59.19, 51.05, 37.9497, 42.8333, 35.3247, 47.3467, 41.1833, 42.6667, 56.4505, 53.1333, 73.9, 42.183, 48.5167, 45.0469, 44.8658, 48.0667, 37.2833, 34.0, -33.35, -29.97, -37.8233, 36.0425, 43.1433, 44.1833, 54.7679, 45.6333, 39.6, 25.83, 38.5494, 51.2969, 53.895, 51.1833, 32.5333, 55.7, 40.8, 37.9878, 62.867, 22.3667, -32.7103, 45.3833, 46.5022, 57.202, 37.615, 36.0003, 53.5, 70.1297, 55.33, 40.85, 45.717, 52.7, -12.805, 68.73, 56.85, 40.917, 50.25, 37.35, 41.57, 59.02, 40.1, 45.5, 20.85, 40.117, -66.717, -67.4, 31.909, 38.4758, 64.7856, 41.4, 50.9333, 39.65, 33.8089, 32.8692, 36.5575, 28.7569, 61.2967, 47.7, 50.6333, 49.5167, 49.4333, 37.75, 32.3989, 50.2833, 52.25, 32.2003, 44.9067, 46.1, 45.4833, 46.4333, 51.9589, 42.1103, 48.4469, 46.5833, 45.0833, 43.8786, 44.3669, 42.2356, 45.1519, 42.6742, -33.033, -33.0, 39.3592, 46.4667, 43.1333, -38.1156, -38.1072, 48.35, 44.2839, 41.7653, 39.3167, 39.7347, 45.2667, 44.8167, 42.0153, 44.8664, 38.55, 40.4681, 49.4558, 48.7208, 48.1008, 49.8531, 44.4828, 44.4667, 40.9656, 38.85, 38.7833, 49.8, -36.1647, 36.213, 52.2833, 44.9833, -40.9928, 45.5167, 31.2208, 36.0164, 63.98, 41.3853, 46.3694, 43.3728, 43.6242, 39.5075, 32.7994, -34.7111, 55.95, 41.667, 32.505, -35.1121, 53.55, 53.5667, 53.5667, 53.5667, 53.3167, 53.5667, 53.6667, 53.55, 53.4167, 48.4239, 47.35, 47.2653, 39.6, 61.38, 53.5833, 53.5833, 53.5833, 38.8, 14.0, 51.1831, 53.1233, 53.1231, 39.1181, 44.2333, 51.25, 65.283, 60.0667, 66.3497, 48.6603, 33.6133, 48.8789, 60.4672, 64.6667, 44.85, 47.6294, 51.8203, 51.4494, -6.66, 39.805, 47.85, 26.13, 41.95, 45.8903, 56.8331, 47.7331, 56.55, 41.033, 53.0831, 61.4667, 48.82, -83.133, 54.95, 29.55, 38.607, 39.2167, 39.95, 34.1408, 38.2, 54.167, 51.1167, 46.0108, 50.9, -26.3, 38.3486, 42.3653, 30.9667, 37.8639, 0.533, 0.404, 52.633, 38.3306, 39.5997, 46.9, 33.1461, 67.05, 58.1917, 30.3492, 37.3475, 41.9872, 42.0628, 45.5669, 37.3167, 42.183, 33.9403, 46.32, 30.85, 42.3161, 36.3644, 44.2139, 34.6044, 37.6797, 36.3097, 36.2606, 32.9161, 42.7753, 50.0167, 37.0058, 43.0, 49.9333, 38.8853, 49.3, 40.8289, 43.5992, 43.6292, 38.45, 46.85, 45.8356, 35.3925, 37.2775, 53.6833, 41.6878, 53.8833, 40.85, 46.7822, 46.0108, 46.9692, 46.6167, 53.4167, -38.2456, -17.5521, -41.0828, 46.4167, 38.9486, -33.6501, 38.7297, 44.5333, 42.265, 44.7303, 44.15, 48.9903, 47.0092, 36.8, 61.25, 42.0997, 42.1594, 55.1, 49.7167, 44.3186, 43.65, 43.65, 43.65, 32.7819, 54.067, 51.1333, 63.9167, 39.1506, 50.9292, 50.4825, -33.84, 33.6692, 42.1667, 42.1717, 46.3992, 48.0164, 40.2872, 41.3814, 39.2922, 39.2953, 48.2019, 31.85, 24.93, -16.5, -16.513, 28.0, 31.073, 24.1, 33.667, 16.65, 32.8006, 24.95, 32.8856, 5.691, 32.7669, 9.98, 16.17, 25.73, 37.7833, 37.8183, 43.8, 33.2208, 4.453, 13.617, 26.33, 30.5667, 36.9, 34.15, 19.85, 34.5892, 35.0381, 28.97, 13.167, 13.2, 29.23, 33.5, 19.2, 31.7833, 31.8117, 31.8347, 31.8111, 24.77, 24.46, 22.58, 16.5, 23.95, 24.76, 22.5, 35.5489, 36.3467, 18.76, 22.6, 23.78, 20.53, 23.18, 18.77, 49.1, 33.6667, -17.812, 20.33, 36.5928, 22.26, 44.4972, 44.567, -0.5, 53.3892, 53.333, 63.483, 29.52, -29.93, -23.5267, 49.0667, 40.6497, 45.55, 42.3667, 39.0, 53.617, 48.1383, 43.1025, 43.8544, 39.6811, 42.4694, 32.8711, 48.6833, 27.95, 36.6983, 38.4294, 38.3306, 41.5067, 50.95, -23.0314, 41.1833, -27.3, 27.9775, -30.53, 50.55, 46.6167, 40.4181, 42.0858, -29.8183, 46.8167, 50.9894, 47.8525, 38.2789, 41.4333, 36.4194, 36.3333, 58.45, 66.3797, 37.567, 61.1333, 45.3394, 69.05, 68.6025, 68.5708, 44.9094, 31.85, 30.283, 45.7083, 45.4, 31.2975, 37.7697, 45.4256, 47.6983, 53.3667, 49.2167, 53.6, 6.467, 12.0, 12.7, 39.3583, 40.1667, 47.3078, 43.0303, 49.1317, 32.6167, 54.2, 39.317, 61.2667, 39.0, 36.6, 48.533, 45.9, 49.0, 41.3, 43.65, 54.3008, 50.9844, 38.3, 35.2164, 41.8036, 42.08, 58.64, 58.6, 47.6367, 53.3, -26.2925, 10.89, 40.0458, 53.967, 31.933, -41.4506, 57.12, 51.33, 36.1422, 50.27, 39.71, 39.957, 41.867, 37.7686, 45.7181, 18.61, 47.8867, 51.1844, 33.1211, 37.4667, 53.6492, 32.6167, 32.751, -28.88, 51.883, 39.1078, 55.3167, 59.39, 39.78, 38.8592, 51.2553, 35.9989, -33.83, -33.6031, -3.9, -14.91, 60.2075, -42.933, 31.398, 44.35, 68.47, 51.4, 43.6156, 40.8314, 44.5078, 48.692, 55.9, 45.2689, 34.8242, -29.02, 42.4153, 40.3767, 49.2167, 49.3833, 49.3833, 43.4036, -30.4, 51.15, 35.624, -41.08, 53.05, 52.7667, -31.6797, 33.1144, -34.1754, 35.1931, 32.0111, 44.1278, 30.4917, 33.5628, 61.2331, 39.5169, 39.95, 45.7644, 79.9833, 37.8253, 56.4833, 48.8978, 36.4164, 40.8097, 45.2172, 54.1356, -52.4, 41.265, 37.9647, 38.0442, 31.4625, 43.9167, 47.4581, 36.0717, 68.5835, 61.4053, 40.0136, 47.9753, 25.8489, 31.445, 39.6381, 50.7417, 38.533, 38.6, 42.2611, 21.65, 43.35, 50.73, 33.2631, 48.7667, -32.2464, 52.9667, 12.07, 44.2914, 59.0267, 45.833, 57.2, 60.983, 22.35, 47.433, 29.47, 64.8367, 64.8172, 64.8039, 40.0739, 47.6333, 44.6, 38.2736, 39.3478, 40.2703, 41.0211, 47.1906, 47.6153, 31.7322, 43.3167, 38.3806, 43.3428, 30.5467, 34.705, 39.4667, 40.6422, 43.6447, 56.0667, 59.533, 45.0203, 43.62, 26.5581, 49.6833, 27.1353, 56.9, 50.45, 58.16, 34.3667, 65.11, 39.4572, 39.4167, 44.8578, 40.0803, 41.95, 44.2939, 37.6475, 38.6783, 55.38, 60.6167, -27.05, 60.26, 32.03, 3.92, -65.4, -22.805, 62.5422, 30.8264, 46.9253, 44.3092, 40.2539, 37.7922, 40.9667, 44.6333, 44.6889, 41.0222, 44.6697, 36.6897, 36.7436, 40.2539, 37.3264, 45.3, 33.9, 37.014, 57.9, 23.6, 62.2, 41.2167, 42.1867, 65.33, -13.312, 56.7181, 28.9, 52.85, -3.864, 45.0364, 49.8667, -29.77, 67.2378, 41.7, 33.6847, 42.8503, 36.0097, 36.1006, 35.0583, 34.9914, 35.15, 45.6667, 32.6319, 24.47, 38.83, 29.755, 47.8756, 47.27, 47.9417, 19.7, 19.5667, 23.6, 34.6528, 31.05, 41.22, 46.0931, 51.15, 45.0331, 40.3667, 46.2919, 43.7333, 48.2, 46.7, 52.8, 30.6669, -3.85, 49.4833, 44.0494, 44.8325, -62.1, 32.5339, 39.0875, 49.3333, 47.6456, 38.2306, 44.367, 36.6, 49.15, 47.817, -21.442, 50.4292, 49.9817, 44.55, 56.3, 38.9664, 60.24, 41.0136, 41.0461, -41.6428, 36.3164, -25.5833, 62.04, 53.48, 68.0007, 43.78, 44.1217, 48.6172, 45.09, 51.05, 45.0667, 42.7, 32.9903, 42.4722, 47.1292, 47.5167, 42.3833, 38.9361, 39.84, 62.1031, 31.7108, -18.1919, -16.9267, 57.2667, 49.7667, 36.3642, 40.7167, 39.6, 62.58, 39.2814, 35.1611, 35.145, 35.1442, 57.69, 25.1422, 40.9317, 44.0517, 29.6339, 46.9328, 39.3375, 48.8, 46.8217, 37.5894, 40.5739, 54.8103, 35.45, 35.4267, 45.8, -40.0911, 48.35, 42.9667, 42.0792, 54.6833, 54.7667, 54.6833, 60.6141, 46.9728, -6.11, 38.7103, 33.0364, 38.2422, 43.8, 34.2933, 34.1853, 50.2392, 39.455, -19.88, 29.1333, -6.767, -27.583, 32.4333, 40.7831, 41.0, 49.7328, 61.85, 51.3333, 33.985, 36.9278, 57.093, 23.87, 41.53, 49.7167, 62.1167, 43.0167, 60.17, 30.74, 36.4328, 63.76, 38.7, 43.7953, 40.1167, 44.2781, 34.0833, 48.9333, 41.8183, -2.533, -33.3892, 61.45, 50.15, 37.4667, 33.8228, 40.7131, 49.4833, 32.36, 44.0686, 52.4667, 48.7333, 43.2844, 35.2653, 40.3833, 45.5247, 45.3397, 47.3167, 47.9558, 48.7778, 44.2183, 46.0333, -26.213, -15.54, -14.93, -30.8453, -30.8389, 63.14, 46.2719, 33.0161, -3.767, 22.1833, -41.2039, 46.4833, 48.7783, 61.5, 48.9081, 52.2167, 54.3667, 54.3667, 58.7667, 27.5139, 42.8833, 48.6167, 48.65, 53.8833, 66.2333, 22.68, 45.2969, 31.5883, -13.67, 60.2333, 49.7167, 56.65, 56.65, 56.65, 67.4, 58.8333, 58.8333, 61.3333, 62.7167, 61.1833, 43.425, 31.4, 53.7167, 44.55, 34.6667, 61.7667, 61.7667, 60.0, 60.0, 60.0167, 54.45, 54.4167, 56.2333, 58.3833, 66.5664, 44.9983, 47.5636, 44.4139, 60.117, 30.4333, 39.7, 33.6028, 42.4, 28.5033, 46.4856, 53.4167, 48.4583, 67.5333, 41.0061, -25.52, 42.2833, 50.0628, 46.4333, -20.55, -1.667, 50.1167, 24.91, 16.77, -21.217, 41.1183, 44.6481, 40.2986, 38.2022, -27.27, 50.1483, 52.3653, 31.0328, 35.1803, 39.5536, 40.1, 41.4003, 30.8186, 42.3297, 38.6756, 29.8233, 42.05, 45.0333, 43.4703, 35.9417, 49.2283, 62.52, 39.9425, -31.917, 50.6333, 59.7167, 54.0833, 34.3861, 30.2392, 38.3167, 37.5739, 40.4167, 39.4161, 45.8667, 45.9167, 37.5464, 42.4497, 64.08, 64.08, 60.14, 36.7647, 38.4583, 40.3142, 41.0167, 38.8672, 26.55, 28.9844, 42.2972, 27.8722, 8.48, 48.2028, 48.0, 53.8292, 48.5, 41.3331, 41.43, 43.3936, 38.5778, 39.3833, 46.1333, 36.78, 48.4544, 36.9969, 34.64, 31.3894, 33.7333, 51.117, 63.8, -34.2739, 46.45, 49.8, 49.2, 43.517, 41.63, 56.87, 63.19, 39.66, 71.0931, 39.1653, 36.7381, -20.03, 35.0667, 56.3, 55.23, 48.4983, 42.905, 32.7939, 32.35, 47.8306, 41.8714, 39.5092, 35.1333, 36.6667, 38.6803, 40.5764, 30.5997, 42.5836, 40.2842, 31.6, 43.0428, 31.1853, 41.6, 47.2386, 26.1019, 26.0719, 37.2308, 40.6222, 44.41, 40.26, 26.585, 26.5361, 48.0119, 27.4419, 44.2444, 31.05, 39.05, 38.515, 37.8428, 35.3667, 35.3331, 35.65, 49.5167, 31.8717, 30.9072, 44.6333, 34.4667, 36.5442, 33.0094, 35.2681, 41.0167, 40.9706, 32.8192, 32.7667, 46.05, 66.5706, -21.233, 48.1919, 27.33, 28.4444, 70.3167, 47.233, 35.216, 40.65, 32.7, 36.05, 33.583, 37.233, 34.45, 50.55, 46.1581, 38.8472, 34.2614, 41.8978, -8.5, -8.517, 32.63, 32.683, 48.2, 64.91, 36.8, 26.2667, -14.317, 42.03, 32.93, 46.983, 26.083, 54.367, 33.88, -24.667, -37.5679, 49.15, 46.6275, 15.417, 64.5033, 34.0219, 34.422, 32.2261, 45.7833, 36.2967, 6.13, 6.1, 51.95, 32.7744, 34.3006, 29.6333, 33.6461, 32.8347, 29.6919, 40.17, 60.283, 62.3, 45.5, 36.6633, 30.12, -22.809, 36.8061, 43.8833, 64.7408, 43.85, 40.9464, -12.028, 48.7, 45.2167, 36.1833, 6.0, 29.4631, 38.8203, 67.14, 35.5144, 40.03, 66.1667, 46.9728, 46.7, 41.1739, 29.3, 29.2733, 53.28, 63.7833, 48.7833, -1.87, -1.9, 35.7164, 40.7167, 48.95, 49.2667, 48.95, 48.9333, 52.75, 37.333, 48.8667, 37.771, 42.7, 44.0569, 34.85, 25.867, 16.248, 10.33, 23.05, 52.567, -8.883, 52.517, 31.8667, 37.9931, 37.9272, 44.1011, 60.2064, 44.2203, 45.0317, 43.7464, 40.7242, 43.6167, 59.433, 30.383, -0.467, 39.0, 47.483, 58.05, 38.28, 47.2333, 9.336, 41.3367, 38.9333, 47.6539, 45.8333, 37.3667, 31.617, 37.47, 35.8917, -25.0544, 48.8333, 48.7833, 38.665, 26.3, 35.2656, 44.1678, 42.8394, 36.85, 70.6333, 31.4144, 50.5167, 38.6825, 37.9458, 35.6878, -27.5456, 26.1, 61.4063, 40.35, 42.8456, 4.5, 60.65, 60.72, 62.4, 11.883, 44.5564, 45.0333, -25.6258, 43.3144, 48.35, 39.25, 37.08, 36.3, 54.3833, 54.4, 58.7, 35.6306, 41.35, 14.033, 39.1, -38.085, -43.1639, -43.1589, 60.5173, 49.983, 48.95, 44.567, -38.5304, 50.95, 39.18, -25.75, -25.82, -25.42, 58.16, 10.485, -34.92, -37.4, -36.582, 25.8, 25.37, -22.62, 10.107, 16.75, -27.75, -35.696, 41.4511, 40.5314, 56.57, 31.0383, 42.8767, 40.3, 46.25, 46.2, 13.483, 41.4514, 43.5706, 44.42, 52.383, -7.139, 6.117, -34.0, 6.5, 6.8, 30.6333, 47.0792, 33.3619, 38.6333, 13.53, 30.6836, -18.3, -18.2922, 38.9331, 43.6333, 45.1333, -34.017, 47.6014, 49.7, 49.7833, -28.7953, 50.8819, 42.2056, 40.655, 55.7833, 43.2389, 51.7269, 49.7725, 50.2167, 39.8333, 45.0194, 45.0136, 77.617, 38.6683, 30.152, -21.7, 32.4, 36.24, 45.432, 31.033, 51.3, 35.208, 45.5394, 41.5697, 69.3538, 36.151, 49.4, 49.3833, 40.4731, 47.6017, 50.6008, 35.4, 46.52, 29.75, 43.5381, 43.5606, 32.9481, 33.1975, 35.9886, 37.0147, 51.1, 48.5653, -25.03, -25.0341, 56.35, 56.3667, 56.35, 44.0833, 44.2644, 44.3394, 32.7464, 37.0031, 50.9664, 51.565, 50.6333, 50.6333, 50.6333, 40.77, 37.5081, 4.28, 40.917, 41.9117, -38.65, 42.4167, 16.9, 61.8667, 40.0833, 68.6333, 58.4561, 51.2333, 51.3, 48.8878, 68.6667, -23.8553, 50.1833, 43.9758, 38.8072, 45.4178, 42.8833, 67.8833, 47.03, 37.0014, 48.2138, 39.7358, 58.133, -12.2, 50.8833, 47.1156, 54.2389, 49.5667, 39.0753, 44.3333, 47.1064, 53.8, 51.735, 41.5167, 49.65, 55.0989, -27.8333, 62.1086, 42.9403, 35.7269, 31.9881, 38.9689, 46.5186, 42.6667, 43.35, 43.3247, 54.79, 42.0833, 38.9339, 33.3217, 46.0089, 45.6583, 41.0097, 39.5181, 45.5261, 43.6833, 61.1, -28.95, 39.5039, 45.1667, -29.6953, -29.7368, 32.2342, 30.2717, 33.3767, 66.8167, 56.93, 65.28, 43.0492, 53.7983, 77.72, 6.166, 15.483, -23.567, -40.869, -48.783, 49.3167, 5.9, 58.79, 43.7667, 43.7667, 44.5667, 37.9, 45.8, 51.55, 52.4317, 60.08, -16.667, -15.91, 40.18, 38.0, -18.217, 40.9567, 40.667, 53.6, 48.9761, 40.1064, 45.8167, 51.3, 36.8964, 50.1833, 17.3, 37.7081, 35.3444, 51.6333, -20.3422, 31.4403, 42.4036, 44.7667, 40.1667, 49.7833, 32.8833, 28.6617, 49.5753, 36.417, 36.0, 15.742, 60.7192, 52.4, 52.45, 23.03, 12.55, 40.1, 36.35, 29.5175, 47.95, 39.3669, 45.6214, 36.5914, 34.75, 43.9281, 59.3, 51.5, -22.88, -35.5147, -31.2994, -28.5481, 53.3167, 56.217, 26.75, 53.1, 46.245, 42.8947, 8.15, 8.3, 44.0833, 45.9167, 45.8833, 45.8833, 45.8833, 36.909, 51.2, 52.983, 54.3, 51.1631, 43.8667, 46.067, 0.52, 52.75, 33.294, 41.5575, 44.55, 49.7667, 57.7158, 40.9394, 50.8, 58.4, 58.3942, 51.08, -40.35, -34.7495, 44.75, 13.983, 44.3539, 45.3014, -12.2741, 44.8, 42.4833, 38.4, -32.25, 42.5872, 42.5372, 46.2, 60.6, 42.7833, 43.5667, 48.4181, -29.6823, 33.1203, 43.95, 59.6, 48.7903, 53.5744, 37.1367, 37.1894, 45.3833, 43.4158, 48.25, 47.1, 53.9, 55.1833, 48.3833, 49.2, 31.3028, 36.0956, 36.05, 36.0528, 30.4183, 48.9333, 47.0333, 47.75, 49.0333, 47.9667, 47.9428, 47.9217, 43.0622, 40.9611, 39.0422, 39.1342, 39.1197, 47.8333, 40.2669, 40.185, 45.1775, 47.7517, 46.6667, 43.7047, 42.8939, 53.15, -18.98, 47.2436, 39.45, 43.8833, 43.0175, 30.7189, 45.9414, 45.8333, 41.65, 27.23, 39.4608, 13.067, 45.7728, 38.91, 35.1664, 42.4244, 40.4861, 36.7394, 48.2675, 34.2594, 47.3, 32.9506, 49.0833, 47.4011, 44.1333, 42.6261, 43.95, 47.0258, 50.5167, 39.2042, 40.2306, 38.4306, 49.8833, 44.9167, 36.4261, 46.8008, 44.6542, 38.2922, 49.5, 46.3872, 47.0833, 37.4, 47.0831, 41.061, 47.0, 42.2167, 42.2167, 39.0056, 38.3758, 50.4667, 47.4733, 47.4597, -33.53, 36.7425, 37.7333, 45.4167, -62.217, 50.48, 41.5461, 40.4022, 35.2353, 39.6439, 36.1056, 39.7858, 41.2981, 43.0167, 41.1019, 32.7019, 36.0811, 37.2592, 37.6025, 39.3475, 31.79, 33.0286, 33.3592, 34.8231, 35.64, 40.1408, 41.4167, 43.2025, 37.1833, 37.2, 34.8461, 33.1678, 34.85, 40.1, 47.1333, 34.1997, 38.8161, 44.9833, 33.4964, 44.4983, 44.5331, -37.2614, 54.5667, 46.55, 40.3833, 39.8789, 41.5167, 38.9906, 34.0219, 34.8831, 35.5206, 43.2356, 54.0978, 33.7608, 50.4167, -33.9029, 45.37, 48.6167, 36.5939, 44.4908, 65.9, 43.2333, -34.2487, -34.3183, 39.7378, 57.11, 43.2, 46.5667, 66.533, 47.3833, 41.7203, 54.3381, 44.5175, 40.4864, 39.65, 53.6, -19.6, -31.48, 49.1139, 49.0858, 42.76, 42.4078, 48.1997, 54.0731, 43.3833, 41.3511, 43.7186, 47.2667, 41.7139, -38.2241, 55.0167, 37.4078, 31.1964, -42.9831, -42.9858, 43.35, 61.28, 42.3647, 36.2631, -54.283, 40.4833, 26.82, 20.6756, 20.72, 40.6608, 40.6344, 20.67, -9.4333, 26.1, 31.925, -24.083, 41.18, -33.01, 13.4836, 25.93, 25.46, 16.47, 21.0, 9.027, 26.85, 32.383, 24.07, 23.217, 19.9, -4.28, -16.73, 41.22, -23.43, 7.211, 14.5833, 14.5, 17.9783, 27.92, 48.8, 43.4, -35.75, 36.467, 43.55, 33.511, 51.7833, 49.4331, 64.9, 52.7, 42.0, 25.333, 48.448, 23.4, 10.583, 10.6, 26.583, 57.133, 40.317, 30.3772, -32.3634, 62.1592, 49.95, 46.4119, 42.3833, 40.32, 40.78, 40.467, 24.65, -35.0778, 38.2, 48.1603, 65.0072, -30.9841, -31.0261, 39.15, 38.5253, 40.2092, 34.3344, 50.2833, 47.02, 18.2583, 31.412, 53.03, 38.88, 32.17, 58.59, 27.72, 59.32, 60.15, 58.4111, 51.8889, 33.6267, 35.8161, 32.8819, 41.6686, 46.65, 42.7858, -2.2, -30.2126, 38.617, 59.3831, 59.3867, 47.667, 26.233, 50.033, -19.45, 52.95, -26.1831, 47.7, 51.6667, 35.2831, 38.98, 32.539, 63.75, 64.1417, 48.5167, 44.367, 33.117, 40.533, 31.9175, 36.8, 19.15, 29.8894, 52.1667, 53.95, 50.367, 37.0, 38.033, 34.55, 52.7167, 25.6, 38.85, 51.4142, 42.8114, 39.65, 42.9667, 42.9333, 46.5667, 57.29, 52.5, 39.97, 32.8, 20.0, 27.433, 49.25, 43.5667, 41.45, 47.433, 65.0192, 59.2381, 59.4503, 60.7667, 59.2667, 36.1389, 36.77, 60.0977, 37.567, 41.817, 20.7603, 63.38, 52.4367, 34.2314, 44.4633, 15.317, 44.8772, 37.4725, 45.0333, 45.0, 44.65, 44.8833, 44.8833, -6.3, 41.567, 51.5144, 29.4706, -75.45, 64.27, 58.33, 48.7714, -18.2292, 58.32, 68.7833, 68.7833, 68.7833, 56.67, 41.9, 63.4667, 64.173, 35.117, 34.9, 34.717, 51.53, 6.117, 53.635, 53.4792, 34.85, 35.2, 61.1828, 61.0539, -26.4008, 52.0831, 43.9664, 39.933, 42.817, -37.7333, 46.2553, 31.7044, 39.7425, 34.0967, 43.1667, -37.6486, 39.35, -20.3531, 43.25, 43.2333, 43.2833, -37.825, 50.1833, 34.8872, 38.2794, 55.3, 30.4839, 30.5031, 39.6442, 35.585, 51.5608, 42.7561, 32.8442, 61.66, 42.15, 50.1667, 20.7947, 39.6969, 44.1186, 47.1686, 49.8333, 48.3, 49.25, 49.2, 49.2667, 36.3158, 59.86, 30.233, 52.7214, 46.0667, 59.8167, 59.7733, 59.8083, 59.8439, 38.3706, 35.2028, 40.4006, 51.5833, 33.65, 49.0, 39.6833, 39.6667, 39.7233, 52.4656, 21.0333, 39.8, 43.7053, 44.1167, 56.01, 48.9989, 44.25, 38.2553, 61.0167, 33.067, -18.0631, 65.8269, 35.57, 41.8042, 34.7433, 65.2397, 38.58, -17.83, -17.917, 8.733, 45.75, 43.8322, 47.4667, 47.6833, 46.5, 45.7317, 37.7822, 41.6, 41.6403, 40.0892, 48.5353, 26.2028, 46.4328, 62.62, 62.6331, 64.5867, 43.1647, 47.4828, 45.85, 51.7333, 37.7408, 40.2667, 41.6331, 40.2172, 42.6858, 38.6494, 36.2667, 44.6819, 37.4833, 44.3628, 42.0333, 59.07, 58.2506, 34.3697, 43.3311, 41.9381, 41.7361, 40.4356, 42.6167, 44.4333, 53.4167, 47.6856, 48.7167, 34.3519, 43.6747, 42.5483, 47.8083, 45.6667, 51.65, 32.9667, -5.062, 31.7, 57.63, 42.6422, 50.855, 40.6472, 29.7653, -43.4144, 44.7597, 71.9831, 32.6775, 24.067, 44.4169, 50.433, 12.189, 35.2167, 31.2547, 46.7225, 61.0667, 62.05, 63.95, 49.1667, 40.9317, 50.75, 42.9333, 6.917, 47.3889, 61.15, 47.75, 40.3031, 46.0333, 42.7594, 48.5431, 48.5428, 50.2833, 50.25, 50.2833, 19.4297, 43.0031, 53.2167, 50.6, -31.8846, 32.2842, 48.9667, 41.4764, 46.8833, 43.7139, 33.9833, 38.55, 47.5667, 40.4925, 40.8, 40.5233, 61.9872, 33.7044, 50.7839, 32.1833, 38.8669, 44.4503, 38.8586, -34.5194, 60.8333, 60.65, 42.6828, 42.5119, 42.5972, 55.2, 31.8328, -0.25, 31.3625, 46.6311, 45.4486, 38.6175, 34.2333, 38.6003, 63.8675, 46.5917, 44.7053, 51.478, 27.3194, 34.3167, 40.4917, 34.3925, 44.8667, 40.175, 46.9075, 20.18, 24.7, 48.3758, 35.4333, 62.42, 62.41, 49.35, 49.3667, 31.867, 50.9167, 33.6483, 37.55, 49.4, 48.6731, 50.1703, 49.1456, 49.9678, 61.1994, 51.0425, 69.6006, 22.5, 54.6, -32.82, 34.6997, 34.5211, 36.5381, 46.7186, 46.6056, 54.1764, 37.9, 60.7528, 49.7833, 52.2478, 67.7414, 71.0633, 56.04, 60.2667, 60.1044, 60.2, 60.1042, 60.1667, 60.1, 60.2531, 60.2, 29.867, 65.8078, 42.3208, 63.66, 42.7742, 46.4833, 48.7, 45.0667, 49.0667, 52.683, 57.24, 34.73, 32.1808, 35.3297, 36.3481, 37.7558, -30.63, 26.9, 46.1667, 41.2647, 36.0942, 33.8128, 42.9419, 33.2372, 45.3653, 39.38, 35.3331, 34.21, -17.39, -17.5851, 50.4667, 34.8172, -19.9, 52.1278, 38.6656, 50.1, 51.0058, 46.665, 48.6106, 45.8289, -28.2061, 37.7717, 34.8039, 48.08, -23.4422, 46.6667, 58.39, 51.0167, 57.42, 50.1517, 41.1056, 50.867, 51.5903, 43.5908, 57.39, 37.9614, 45.9925, 49.75, 40.95, 23.8, -38.1355, 35.28, 35.25, 35.0, 25.8175, 39.4833, 47.3864, 40.9, 34.5167, 36.5667, 35.7425, 34.6189, 41.3214, 31.9844, 24.25, 26.933, 27.8189, 35.0567, 31.8814, 31.9478, 50.5, 50.4667, 44.5222, 44.8444, 40.265, 53.45, 47.9167, 58.6167, 58.6167, 54.105, 35.9672, 43.9064, 41.3061, 45.6833, 50.4833, 29.8286, -13.233, 35.283, -39.38, 50.7381, 44.3083, 53.45, 32.0161, 32.9203, 39.1611, 39.2333, 43.6542, 45.5139, 54.4517, 47.4389, 41.9353, 38.6644, 34.47, -33.41, -33.4915, 43.9325, 39.3617, 43.2994, 39.3756, 51.35, 19.7192, 32.2167, 44.0167, 42.0, 34.833, 8.367, 45.9919, 43.3, 42.2269, 39.4, 48.3478, 47.8992, 33.367, 41.3072, 42.3, 34.4, 29.167, 33.317, 37.875, 32.217, -9.8, 53.5333, 62.6162, -42.9, 41.5422, -42.8339, -42.8897, 34.9894, 32.7264, 42.8667, 46.63, 46.783, 56.92, 37.5317, 51.1833, -24.37, 51.9908, 50.3131, 51.535, 50.1364, 34.8358, 50.3242, 59.4033, 66.2167, 44.4167, 63.08, 38.6844, 59.03, 65.8797, 47.8017, 40.817, 54.3128, 40.9678, -42.717, 66.7333, 50.65, 50.65, 34.9094, 45.2236, 35.0567, 48.1989, 51.0, 40.4517, 49.321, 40.9667, 40.9167, 61.62, 60.91, 36.6831, 43.6667, 42.7989, 49.1289, 55.4908, 42.3528, 36.8483, 34.6808, 32.85, 38.0517, 49.3833, 33.3258, 34.8219, 57.15, 58.33, 70.7333, 63.595, 64.217, 47.05, 46.9914, 39.4578, 39.8333, 40.5453, 47.45, 47.3833, 47.8831, 50.7328, 15.333, 49.3292, 31.0767, 32.81, 59.7444, 59.7161, 59.6419, 25.4833, 25.5, 52.47, 29.12, 29.36, 43.9281, -35.5833, 44.85, 46.6833, 37.7, 22.3, -9.417, 52.333, 21.3239, 21.3153, 46.9833, 45.6847, 36.865, 58.1072, 41.05, 40.4664, 53.3908, 39.3667, 41.4, 32.8111, 49.3667, 49.3667, 60.8983, 55.45, 76.5, 37.2992, 44.5, 40.1592, 33.7092, 49.3667, 49.2833, 36.8492, 46.9667, 46.9728, 40.1, 52.4, 31.8456, 43.4406, 52.167, 50.1519, 64.296, 49.2333, 48.6142, 52.3333, 52.3667, 42.4172, 32.9375, 44.9406, 51.6, 41.3167, -36.6613, 38.52, 38.52, 39.6678, 43.9481, -22.483, 67.0831, 37.133, 64.12, 64.09, 35.895, 37.9969, 43.4378, 47.6, 34.5128, 34.29, 40.05, 44.3119, 44.3592, 46.1333, 46.2061, 46.1236, 29.6408, 40.5831, 61.1833, 33.8847, 54.4, 29.6167, 29.6381, 29.98, 29.9167, 29.7667, 38.35, 48.017, 37.3858, 43.6, 37.4664, 44.0122, 42.2292, 43.7828, 39.3533, 41.2167, 45.6, 42.9764, 47.5833, 39.1, 50.25, 41.9, 42.98, 19.92, 40.417, 35.38, -12.8, 30.25, 28.63, 30.13, -9.89, -9.5, 20.18, 12.583, 23.983, 34.48, 45.9667, 61.73, 38.1042, 42.7831, 52.8167, 52.8667, 52.8167, 42.25, 56.0167, 30.005, 15.317, 21.15, 37.2594, 37.28, 42.0831, -20.8447, 34.0211, 37.1639, 39.1439, 20.38, 40.167, 26.65, 37.5, 16.75, 26.9, 61.1667, 18.33, 26.42, 46.9, 36.9167, 51.417, 45.77, 53.7667, 51.717, 18.1333, 52.2667, 42.7181, 34.1164, -36.1039, 50.5664, 47.2336, 38.283, 62.75, 48.3425, 36.767, 49.95, 39.2333, 39.7667, 36.5625, 46.35, 45.05, 36.0028, 40.8556, 44.3564, 37.2275, 38.4014, 38.365, 45.9228, 30.7064, 36.0833, 36.07, 34.6439, 41.2403, 45.35, 31.4, 47.8667, 47.35, 46.4625, 44.3636, 43.3167, 44.3981, 59.51, 49.383, 37.9311, 44.9089, 43.1667, 64.8667, -18.633, 41.665, 42.0, -32.4419, 25.383, 41.4, 59.1, 59.55, 46.2942, 45.9353, 60.5956, -2.746, 47.1667, 0.61, 4.4, 40.0378, 0.35, 45.3333, -20.01, -28.65, 38.8764, 35.417, 55.5831, 46.2447, 37.28, 33.9336, 43.8383, 43.5139, 43.3456, 43.5317, 43.5164, 37.9333, 42.3942, 60.38, 43.3708, 61.89, 61.87, 54.367, 44.6881, 64.45, 33.7572, 35.0, 67.47, 39.93, 69.3833, 69.3667, 49.4833, 37.1364, 24.5, 53.467, 18.42, 18.35, -24.7167, -6.367, -25.733, 35.517, 33.65, 59.28, 54.183, 60.05, 33.633, 43.05, 47.4333, 47.4167, -11.583, 47.3833, -46.5, 47.6531, -22.333, -17.05, 38.3, 47.8056, 59.7494, 67.25, 67.33, 42.6286, 42.1039, 26.5, 10.7, 62.6667, 62.7692, 63.0319, 62.8667, 8.44, 69.22, 48.0, 70.45, 40.6564, 26.4622, 44.3456, -5.533, 43.9, 32.8489, 38.2833, 40.5208, 32.5667, 32.8342, 1.617, 1.62, 35.62, 72.4, 52.4167, 68.6069, 69.1403, 68.8489, 68.8483, 68.4142, 69.5072, 69.0669, 37.467, 37.0, -26.9, 36.7981, 37.2364, 42.5069, 42.5269, 34.6989, 39.0667, 39.45, 39.0667, 39.825, 39.7164, 40.5972, 41.6317, 41.3656, 45.3833, 49.6167, 49.0333, 39.9, 42.3, 50.55, 50.5, 43.755, 27.8, 39.8144, 65.9833, 66.0, 67.7, 33.7086, 22.717, 41.98, 52.97, 50.3667, 49.2978, 56.8, -18.6494, -28.5, 46.6825, 46.6667, -23.867, 38.05, -25.8428, 59.9308, -17.5249, 47.2667, -1.967, 58.45, 43.7483, 46.67, 48.5614, 45.683, 59.555, 58.4667, 58.4667, 68.3, 68.3, -46.417, -29.7783, -29.7752, 57.4867, 28.8028, 35.6514, 53.85, 28.05, 19.567, 27.233, 37.9233, 42.9531, 41.6092, 42.5189, -17.717, 4.5667, 40.9, -27.6117, 45.4478, 63.75, 63.75, -3.783, 64.52, -27.183, 34.633, 27.236, 20.68, 24.86, -25.467, 55.633, 32.55, -11.3, 48.6167, 38.167, 24.256, 43.8167, 52.2667, 44.3247, 38.5333, 46.4656, 32.8167, 34.1472, 45.7858, 34.5853, 48.75, 34.6, 53.35, 40.1167, 32.8294, 18.4653, 47.6181, -1.83, 78.8, 38.05, 56.0994, 39.83, 40.13, 40.133, 24.345, 38.433, 46.4833, 24.153, 54.9, -24.2591, 60.8167, 36.7, -2.705, 39.1, 36.573, 57.8667, 37.0, 45.3833, 49.5833, 55.5333, 53.85, 44.4167, 44.4189, -27.167, -67.17, -43.53, -33.62, 18.717, 46.3197, 47.5833, 48.5833, 40.7939, 30.6, 37.75, 40.5, 43.37, 40.9667, 45.685, -11.11, -12.51, -3.127, -4.267, -17.85, -21.2, 47.2256, 42.4492, -13.35, 70.4831, -13.81, 53.983, 34.7633, 52.717, -25.0, 68.6081, -32.8999, 48.967, 60.6831, -22.317, 51.75, 52.2667, 34.15, 43.217, 18.03, 20.7, 19.62, 16.77, 16.467, 19.0, 28.3089, 56.8331, 49.183, 45.3667, 38.267, 38.433, -0.35, 34.2, 23.2, -12.6594, -30.25, 45.6275, 41.9828, 33.2206, 31.5253, 36.3967, 37.3781, 37.55, 37.5908, 43.4867, 45.3681, 45.5833, 30.4844, 31.9622, 39.7347, 30.2875, 30.2167, 30.3361, 30.2333, 30.3333, 39.08, 35.6214, 32.3206, 35.5931, 44.05, 42.2667, 35.1858, 41.5, 66.3797, 41.55, 28.4, -11.183, 36.7333, 37.7778, 37.7778, 9.7, 19.083, -4.783, 25.9, 26.817, 26.9, 44.35, -6.25, -6.183, 62.0167, 32.1103, 0.637, 19.55, 29.033, 56.683, 42.3031, -1.6, 41.4992, 42.11, 46.9258, 46.8844, 37.0056, 61.8564, -15.783, 56.3, -32.1011, 42.6667, 44.2167, 69.0, 65.98, -32.933, 70.93, 70.9331, -0.353, 57.37, 62.167, -33.7964, 39.783, 44.567, 61.71, 25.6333, 46.2, 43.883, 30.5228, 33.9047, 52.8833, 34.4758, 53.2333, 52.8667, -17.91, 23.4, 38.32, 33.2544, 38.8417, 36.4236, 16.43, 29.9592, 21.5, 21.7, 32.7692, 36.7222, 42.0347, 36.4161, 36.1222, 36.1167, 38.5853, 42.4942, -0.9, 33.517, 50.9, 35.7783, 31.6783, 50.9267, 36.48, 39.5444, 50.7167, 30.2003, 40.3611, 38.0333, 36.7506, 51.633, 34.7522, 42.7325, -32.4972, 39.1025, 49.2096, 40.7419, 31.7667, -35.083, -35.0936, -22.9494, 23.184, 41.2683, 31.65, 31.5075, 21.705, 38.0833, 38.1964, 53.5319, 31.35, -26.53, 21.917, 32.933, 27.117, 41.15, 22.62, 30.33, 27.33, 37.033, 9.333, 40.345, 36.795, 36.817, 7.667, 36.6, 28.88, 29.3, 44.617, 22.02, 41.03, 24.907, 13.0833, 41.133, 29.73, 29.0, 39.767, 25.72, 25.068, 45.283, -19.83, -7.1, -17.73, 26.3, 39.6553, 49.85, 40.5333, -26.2, -26.139, 5.453, 60.4833, 37.5333, 30.2861, 40.3375, 33.7775, 16.7333, 40.3333, 52.283, 44.4233, 36.6003, 38.0633, 38.2547, 60.8139, 66.6297, 18.31, 45.4731, 46.0167, 41.5033, 60.1781, 60.1244, 60.1542, 58.8653, -1.317, 44.6453, 35.8489, 35.8311, 31.4825, -33.97, 57.7514, 56.93, 20.18, 48.5617, 37.1467, 47.3144, 44.65, 47.4819, -12.022, 64.73, 32.6161, 9.87, 11.415, 6.165, 56.6, 49.4667, 61.8792, -19.007, 41.7861, -7.169, -33.633, -33.45, -17.963, 9.994, 4.867, 70.77, 21.42, 46.65, 12.1, -21.8, -21.767, -24.393, 40.9931, -15.467, 33.1, -20.6569, 50.9117, 21.57, 44.3833, 45.3497, 18.2264, 30.4453, 58.2989, 58.3, 58.3567, 46.1333, 46.6, 40.8833, -34.546, 46.55, 41.3322, 34.9667, 63.6842, 43.8, 57.333, -16.77, 42.4, -30.3081, 63.2317, 61.8456, 3.327, 35.58, 44.0167, 46.95, 44.35, 62.4, 62.2, 62.2331, 62.4019, 45.1139, 20.9333, 60.3867, 9.58, 52.05, 48.05, 13.9833, 34.566, -14.45, 53.967, -33.9551, 11.138, 16.16, 37.967, 31.55, 51.1817, 50.0656, 40.4167, 37.6, 20.8997, -3.645, 19.5336, -17.215, 35.67, 49.4253, -35.1, -35.1, 64.2814, 49.833, 49.2, 0.28, 56.9667, 16.95, 50.4, 55.033, 64.2167, 55.12, 37.0, 37.068, 42.2347, 42.2833, 29.033, -27.7119, 54.9667, -30.7847, -7.05, 54.7167, 48.1892, 48.3042, 51.73, 51.7344, 50.5028, 56.73, -24.6925, 50.6278, 54.57, -14.2964, -14.2961, 39.4, 40.6439, 41.1, 49.0667, 51.05, 62.4831, 48.3, 53.8, 48.65, 37.05, 50.6667, 50.7, 50.6667, 50.8167, 47.5833, 16.4833, 20.0167, -13.8, 50.067, 56.85, 37.0286, 51.0333, 50.7167, -5.9, 36.583, 14.017, 31.5, 67.15, 11.13, 11.133, 7.3, 21.45, 67.1297, 41.6767, 37.2506, 39.2, 61.55, 30.05, 40.967, 37.7, -33.38, 38.25, 68.65, 61.8381, 41.1381, 10.38, 57.65, 12.1, 38.6078, 38.7953, 34.433, 36.2133, 39.1208, 39.2972, 56.2, 21.12, 14.147, 20.9625, 49.4167, 49.4, 49.4, 70.5, 9.55, 48.45, 41.2, 49.95, 24.9, 54.2, 49.8, 37.3, 44.95, 41.9, 39.02, 55.15, 37.2, 45.6, 37.7, 69.4667, 69.4633, 53.7, 41.46, 46.883, 50.0, 68.4419, 68.45, 68.44, 59.05, 61.5, -16.517, 18.55, 49.383, 50.202, 58.52, 56.18, 48.6775, 49.0392, 48.5833, 59.35, 32.6664, 28.9069, -32.44, -16.833, 40.562, 47.8331, 38.8, 59.66, 36.35, 38.7411, 62.1831, 51.633, 63.33, -10.217, -17.817, 33.895, 39.467, 60.3667, 37.9842, 49.9167, 45.4, 49.23, 15.467, 41.25, 51.2978, 39.49, 41.3667, -33.6856, -33.6886, -14.4437, -14.4589, 27.7, 49.183, -33.7122, 50.23, 35.15, 39.85, 59.067, 47.8667, 40.85, 32.5589, 63.1203, 54.8831, 41.08, 69.0167, 35.5, 54.1167, 43.7144, 14.4, 14.482, 38.78, 56.32, 45.767, 55.7331, 41.4, 51.267, 35.8111, 39.3833, 40.7258, 20.7, 38.8, 46.9, 47.65, 64.0, 12.572, 52.9981, 42.7667, 42.9389, 47.8967, -26.58, 63.9667, 43.02, 39.9833, 57.75, 35.6872, -36.098, 44.4333, 47.8667, -41.2833, 39.9, 36.85, -31.6183, 42.25, 47.9422, 51.25, 47.5339, 53.7358, 49.95, 49.8667, 49.8667, 49.95, 49.8667, 43.9014, 56.0333, 64.95, 53.5667, -6.15, 56.1, 55.25, 55.27, 66.5167, 66.5592, 65.8, 65.7831, 60.1531, 65.6725, 65.385, 41.8172, -31.077, 47.7242, 45.0, 64.9831, 60.6692, 60.3667, 60.5797, 60.5917, 34.9667, 43.25, -4.1, 12.85, 48.6692, 43.9072, 43.3606, 36.2253, 46.2111, 49.7833, 49.7833, 42.5608, 45.1967, 47.4172, 37.9567, 40.7592, 36.9031, 40.6489, 46.4864, 45.0667, 45.0667, 31.0158, 34.6033, 40.3833, 40.3967, 51.25, 40.7275, -15.95, -35.7236, 45.4, 49.2167, 37.833, 30.25, 34.267, 35.4667, 35.7831, 51.9667, 30.0747, 34.5367, 52.8167, 48.05, 46.75, 55.3567, 43.6842, 54.07, 36.0333, 36.0725, 51.47, 41.2428, 41.0833, 44.4628, 36.15, 57.25, 57.25, 37.6167, 24.5667, 24.555, 24.5833, 58.967, 38.65, 47.617, -36.2254, 71.1333, 25.45, 49.9667, 15.6, 26.3, 46.633, 11.767, 49.433, 16.433, 37.5, 33.433, 38.55, 40.2167, 22.85, 48.183, 27.833, -34.675, 66.9767, 18.433, 46.3667, 50.82, 55.2339, 54.3756, 50.4, 16.63, -1.969, 39.3, -4.883, 62.2, 21.6792, 0.923, 45.85, -5.036, 48.1167, 22.2333, 53.8333, 60.95, -3.433, 36.7, 52.6667, -28.3344, 31.0658, 37.7233, 56.9, 39.3167, -33.1414, 41.2453, -28.8, 49.6333, -15.6547, 40.667, 37.4536, 49.6667, 51.5167, 51.4667, 10.05, -2.95, 40.7167, -26.5737, -26.5544, 50.95, 35.8583, 59.367, 37.6361, 35.2, -35.6569, 41.2097, 36.5194, 41.4903, 44.2167, 44.25, 36.1033, 33.6775, 27.5311, 42.05, 27.5, 42.7239, 46.8333, 40.8606, 41.7436, 16.901, 36.2069, 47.7981, 32.356, 18.297, 24.958, 58.6794, -62.217, 44.0167, -32.87, 57.6131, 57.649, 53.0, 37.9283, 35.1967, 35.2975, 55.3333, 47.05, 50.2, 32.7247, -10.42, 57.7667, 39.9, 69.733, 69.7255, 63.7833, 48.15, 41.73, 40.2058, 40.0972, 35.47, 58.958, 44.6122, 58.6, 48.517, 45.083, 42.63, 59.33, 39.15, -33.98, 67.8497, 67.83, 43.8667, 39.6619, 60.7806, 47.02, 63.58, 43.9, 28.2764, -0.1, 13.067, 25.933, 1.016, 44.933, 62.1, 54.05, 54.0167, 54.05, 58.1914, 67.4667, 68.1692, 68.2294, 31.96, 49.75, 38.7658, 40.5, 41.22, 40.09, 50.3667, 58.2003, 64.16, 62.1, 70.68, 42.2839, 46.65, 35.55, 55.7331, 41.5786, 42.1333, 42.2008, 51.9833, 50.217, 51.1689, 53.9603, 67.1667, 51.7625, 53.5, 65.06, 49.6833, 48.1, 56.3167, 50.4333, 64.45, 48.2906, 59.87, 59.87, 62.53, 62.5, 43.25, 52.25, 43.5, -29.78, 42.2833, 49.0275, 46.3117, 41.3247, 38.8619, 35.8819, 35.8181, 35.95, 67.5923, 34.7, 49.15, 40.8, 49.467, 55.033, 45.6, 35.67, 33.567, 54.3, 42.2, 44.4, 37.5142, 10.2333, 57.8, 57.7511, 55.6831, 55.617, 33.2742, 35.667, 34.6, 60.45, 42.2, 34.88, 64.75, -33.83, 40.55, 40.7, 59.5056, 61.2706, 61.2528, 40.4583, -4.717, 48.75, 53.283, 51.0831, 67.2789, 67.3, 55.083, 12.883, 69.53, 57.75, 48.606, 50.8658, 50.9628, 52.2, 54.18, 49.85, 55.1, 48.533, 56.45, 58.3, 68.73, 55.3, 69.5833, 48.433, 54.333, 67.09, 46.3, 38.87, 50.533, 52.867, 59.6631, 59.713, 51.233, 58.25, 49.6, 47.6781, 38.3, 37.979, 37.5, 52.15, 42.95, -17.84, -28.2, 38.5086, 46.15, 46.0714, 50.8833, 50.6333, 43.2831, 59.53, 37.7333, 51.2675, 40.6, 60.35, 9.387, 64.75, 37.1, 41.75, 47.333, 7.3333, 66.8497, 46.633, 62.9344, 62.8831, 48.8308, 50.0, 33.0583, 48.6667, 61.0831, 63.45, 5.3544, 26.133, 49.159, 13.167, 57.7331, 53.35, 54.2, 25.15, 5.937, 47.633, 60.2864, 60.385, 60.3753, 60.5, 61.2331, 5.605, 67.25, 66.8667, 46.7667, -20.567, 5.65, 5.2, 12.383, 60.6964, 60.8903, 66.7, 67.5697, -15.4818, 37.0, 37.5, 40.28, 48.217, 56.25, 11.25, 56.35, 7.5333, 9.467, 13.1625, 44.0331, 62.0346, 50.0, 43.7167, 63.05, 63.16, 55.0, 53.0, 43.6, 45.03, 49.383, 56.0331, 53.967, 67.37, 54.4, 56.65, 40.03, 57.133, 50.37, 46.53, 46.3792, 49.033, 50.1, 40.0575, 48.05, 55.85, 62.8, 2.95, 56.33, 55.92, 62.2575, 59.31, 42.2, 47.9, 64.51, 50.2533, 55.0, 45.433, 48.4842, -26.1, 48.2517, 43.5667, 63.7169, 46.3, 48.03, 51.1617, 53.9717, 51.8553, 50.8503, 49.5192, 47.8069, 53.55, 3.6333, 3.1167, 5.3333, 40.72, 3.62, 3.8, 48.881, 1.483, 58.983, 24.22, 47.58, 68.5333, 44.467, 67.8167, 64.1189, 53.25, 53.9031, 42.0333, 19.5494, 20.7583, 20.7008, 20.7, -25.8428, 56.3, 50.1014, -33.2333, 39.1, 37.92, 42.533, 36.15, 32.817, 6.715, 26.333, 58.1, 48.5133, 41.3, 60.3, 60.2581, 36.1, 43.4833, 59.517, 43.083, 25.017, 25.1, 35.9242, -15.7828, -15.7814, 49.2806, 28.82, 62.9, -10.167, -10.2, 70.3289, 49.633, 54.367, 41.717, 49.933, 41.65, 58.233, 55.4667, 37.8167, 45.25, -15.4875, 15.8, 52.0, 51.7667, -27.47, 61.9489, 37.9, 49.5603, 42.95, 55.1, 40.23, 39.983, 53.2167, 60.7219, 39.417, 42.2, 42.9, 32.17, 58.1, 55.2833, 66.3681, 65.995, 60.9, 29.222, 53.3, 68.35, 60.3933, 69.264, 66.89, 66.9597, 8.7333, 8.7167, 35.1333, -18.933, -32.2258, -36.335, -33.1332, -36.8803, 35.017, 49.5667, 52.933, 47.333, 56.6, 36.13, 51.72, 44.85, 51.9, 48.2994, 48.1333, 46.4167, 45.8167, 58.95, 27.167, 11.32, 14.9, -34.133, -7.25, 49.3, 22.7761, 45.65, 52.4667, 44.6253, 41.0186, -33.73, 46.8167, 46.8667, 48.8, 48.2167, 48.2833, 45.6, 48.4167, 45.9333, 40.8072, -33.48, 40.7392, 48.25, -28.55, 45.465, -24.1116, 68.5, -30.88, -6.73, 30.2192, 36.5192, 32.9069, 34.6639, 40.2964, 40.4122, 30.205, 40.0633, 33.7997, -28.21, -50.333, 45.84, 41.6475, 35.0464, 33.5453, -34.456, 27.43, 24.03, 20.8789, 39.4689, 31.55, 48.3656, 48.3667, 39.3, 39.2833, 60.9617, 49.35, 67.76, 36.93, 18.0331, 38.7667, 38.7303, 29.2694, 50.8333, -18.233, 44.4667, 40.6, 40.75, 40.0333, 28.0206, 39.0333, 43.55, 43.5492, 38.2044, 34.16, -37.8692, 41.825, 44.5994, 42.2414, 43.5667, 41.5269, 39.7489, 45.3333, 28.1042, 49.0667, 34.2467, -33.2833, 30.125, 38.0247, 30.1853, 33.8642, 44.3089, 32.3333, 48.8333, -37.2313, 39.9333, 35.2928, 42.5936, 38.9075, -33.1006, -33.1006, 34.45, 40.4167, 33.7542, -42.0097, -42.0067, 51.4333, 36.9825, 43.0803, 43.4483, 44.2489, 32.8067, 44.0644, 38.4931, 39.3183, -42.1, 45.95, 38.3167, -34.0398, 42.4308, 43.9981, 44.5619, 37.9411, 46.8667, 41.5167, -16.417, 38.0936, 47.0333, 37.4933, -0.704, -21.94, 44.2394, 40.3597, 45.8333, -35.3288, 32.7228, 38.9, 45.6258, 38.9, 61.15, 40.7178, 40.6233, 18.283, 31.0717, 35.5, 18.9167, 20.7894, 22.567, 22.8, 23.43, 44.4911, 40.05, 39.7333, 42.8278, 34.7411, -31.0164, 43.05, 36.15, 47.13, 42.8153, 40.1167, 48.0833, 47.3767, 58.74, 57.67, 58.34, 42.55, 54.25, 54.25, 51.133, 48.7622, -32.97, 50.9, 53.7458, -33.28, 58.22, 37.0833, 49.05, 49.1667, 42.9833, 47.83, 50.4, 29.8097, 65.0997, 31.58, 38.75, 58.35, 63.17, 68.05, 52.2333, 42.7803, 42.4486, 28.9517, 36.05, 22.033, 18.183, 45.5119, 22.5, 43.0608, 60.6219, 41.6117, 61.0439, 45.3833, 42.4333, 62.9667, 41.3408, 41.3119, 61.0617, 50.2, 27.5683, 47.8742, 39.65, 34.8831, 38.1817, -15.5748, 61.1, 38.4833, -27.1, 47.0736, -0.833, 42.7667, 51.4167, 20.68, 18.433, 38.0636, -34.7, 28.53, 16.7, 16.45, 25.5, 30.55, -36.067, 16.75, 4.55, 20.91, -24.7, 27.9225, 16.77, 36.1667, 35.6167, 36.0719, 35.6542, 36.25, 35.5678, -0.9, 48.3, 40.08, 35.53, 47.4333, 49.5792, 35.1692, -41.5492, -41.5397, -41.4667, -41.4194, 48.2181, 31.6756, 40.9017, 39.0847, 41.7833, 40.2003, 44.9231, 34.4989, 49.0, 46.3333, 34.7508, -18.2, 46.8167, 45.9333, 41.7019, 43.93, 33.3369, -37.8565, 33.0353, 52.421, 38.9583, 42.6992, 45.4167, 35.2436, 36.7711, 44.7583, 42.4167, 34.6097, 64.64, 41.53, 54.2331, 61.6267, 16.42, 42.2644, 26.7458, 25.41, 27.55, 21.12, 10.517, 16.32, 47.0831, 10.558, 0.017, 43.8789, 20.73, 48.7667, 28.38, -34.45, 22.68, 15.0, 19.85, 45.3167, 46.8333, 53.75, 53.75, 53.6333, 19.54, 29.9175, 41.6378, 33.0536, 28.97, 40.5839, 37.7511, 38.0494, 28.75, 46.3667, 47.6667, 32.7675, 15.453, 46.25, 48.6167, 46.3547, 11.8, 19.85, 28.6331, 20.15, 45.4, 24.1667, 24.167, 20.37, 16.33, -34.972, 38.5333, 47.35, 28.9831, 26.18, -22.1, 23.58, -29.383, 46.15, -23.13, 18.42, 55.15, 55.15, 38.3014, 48.7833, 49.9167, -29.917, -29.9, 19.95, -4.0, -22.0172, 16.1, 31.98, 47.4, 13.3333, 17.9, 16.75, 19.22, 19.33, 37.2008, -22.2833, 21.67, 44.1014, 44.3544, 50.8833, 55.4167, 39.2292, 36.4194, -22.2406, 39.3256, 47.5586, 38.3333, 54.75, 36.2292, 36.9028, 37.685, 40.3333, 43.6264, 49.05, 54.55, 40.23, 54.8, 51.1231, 47.2467, 48.2881, 53.8, 54.292, 31.1417, 36.8644, 38.8803, 53.2231, 37.9567, 13.133, 51.2, 50.4831, 39.0, 48.7664, 28.27, -30.4667, -30.5963, 61.1833, 51.4, 51.317, 51.4358, 66.76, 37.5108, 44.85, 65.0975, 9.083, 60.73, 29.7856, 51.783, 59.9592, 45.9397, -36.3608, 43.3597, 36.3817, 37.3789, 36.3333, -12.567, 46.6, 51.8833, 38.833, -69.5, 47.95, 46.3619, 51.1344, 48.5406, 45.3667, 35.915, 35.7875, 54.2206, 60.72, -34.9482, 47.8606, 34.1742, 45.7192, 41.5167, -28.8836, -28.8789, 40.7244, 0.459, 42.5889, 38.4794, 54.883, 25.533, -28.95, 47.1, 52.0, 40.4897, 60.1331, 46.4, 29.57, 62.2317, 72.333, 49.4667, 42.9831, 50.562, 56.76, 64.9, 51.8331, 49.1167, 45.3, 47.5, 49.05, -23.85, 48.35, 49.6333, 49.6333, 49.7, -4.1, 39.433, -82.517, 56.373, 35.2833, 59.6167, 39.5608, 63.7167, 33.55, -23.08, 38.7756, 37.8564, 35.4139, 36.1325, 44.1, 46.3747, 46.4167, 40.5864, 47.0492, 44.2, 30.4064, 33.1228, 35.6503, 35.8458, 37.7767, 39.1828, 38.0408, 41.5747, 37.2333, 14.591, 47.9467, 42.7817, 45.0, 45.8, 16.27, 29.667, 28.42, 30.68, 24.37, 24.78, -41.8983, 48.4036, 47.9733, 48.4, 48.41, 37.0222, 50.767, 10.6, 30.0592, 41.8017, 31.1631, 0.38, -13.3, 51.9256, 37.5544, 45.5, 53.85, 58.53, 63.3206, 46.83, 56.4831, 42.1231, 44.3167, 21.9742, 21.9839, 26.833, 26.88, 52.6, 48.0681, 61.0808, 61.85, 50.6667, 66.4897, -13.97, -13.789, 40.8667, 37.3833, 44.6331, 34.6667, -12.1, 40.7247, 50.4128, 49.5, 34.1789, 46.95, 39.9167, 10.0, 39.1894, 24.86, 23.95, -43.63, 39.0878, 40.1514, 35.4606, 39.0294, 40.85, 40.8508, 46.9558, 40.8233, 47.4083, 52.2094, 47.5989, 49.7128, 35.6047, 59.59, 57.9831, -25.48, 43.983, 39.7556, 36.3042, 36.2033, 34.8261, 44.35, 44.3333, 47.0022, 41.6458, 52.517, 59.4333, 26.233, 15.38, -19.4, 40.77, 41.717, 58.4, 46.2667, 43.6, 35.58, 35.05, 48.23, 48.297, 49.45, 62.6594, 62.6592, 51.6344, 36.2358, 50.85, 51.15, 38.7167, 28.8728, 46.4444, 46.1, 37.5, 28.45, -28.807, -37.9543, 58.11, 49.0333, 55.0125, 30.0, 45.1278, 33.4992, -33.4901, 53.95, 33.9378, 41.4, 47.8139, 44.5, 40.8858, 45.9656, 43.0603, 43.0333, 37.4833, 40.0, 44.6167, 34.1942, 56.3831, 49.35, 47.2833, 34.8364, 34.9167, 34.7272, 39.7267, 42.2472, 43.5, 47.85, 24.35, 46.4333, 37.6922, -33.9272, 44.1333, 44.0833, 30.2889, 16.62, 32.5811, 45.6667, -17.817, 45.4956, 30.7394, 45.6983, 36.3775, 43.7392, 43.55, 31.43, 37.8, 59.35, 46.0656, 46.22, 62.76, 56.83, 56.08, 58.22, 62.55, 30.7425, 41.6256, 41.6203, 53.2833, 53.3167, 53.2833, 53.3167, 38.4058, 38.4333, 47.0431, 46.1725, -28.17, -12.785, 43.1392, 43.2, 37.3908, 41.1311, 36.6044, 41.1489, 38.1061, 3.117, 51.73, 17.45, 62.11, 37.8717, 41.6381, 36.6167, 31.9833, 40.75, 41.6661, 50.5, 41.7344, 41.7456, 42.4519, 47.6167, 45.51, 60.2439, 50.0114, -4.033, 61.1217, 54.733, 46.7506, 46.6333, 43.82, 47.9361, 19.95, 6.17, 57.89, 49.2, 34.6539, 16.7667, 43.0333, 37.0872, 51.15, 43.0333, 38.1947, 39.8972, -23.383, -23.333, 48.25, 37.9, 46.2667, 43.2119, -36.6722, 37.62, 46.7492, 40.1589, -23.4372, -23.4372, 68.9, 43.46, 47.269, 46.1506, 32.35, 34.0103, 25.1, 22.367, 51.43, 33.8117, 46.3675, 40.2578, 34.7975, 44.7136, 45.2219, 47.4167, 41.5386, 45.8883, 45.9647, 46.5, 40.7875, 37.4833, 52.7231, 47.45, 33.3667, 40.8333, 43.9144, 43.1667, 51.0667, 54.05, 70.3348, 14.8, 50.0364, 32.3094, -31.542, 26.017, 34.0347, 44.4833, -38.5333, 62.23, 58.433, -25.4, -32.3322, 43.2833, 42.6722, 47.0833, 53.2833, 43.8333, 35.8644, 13.8833, 34.0511, 33.9381, 37.0564, 36.9897, 8.824, 37.2319, 25.9, 34.7675, -2.05, 25.7, 7.95, 45.081, 54.4389, 38.0422, 45.9, 46.2667, 39.4333, 33.1356, 38.2333, 33.0125, 38.2281, 38.1811, 41.2808, 43.179, -26.0, 48.0667, 64.36, 43.1631, 36.9692, 31.1333, 40.435, 44.8375, 40.1906, 40.0681, 39.9, 60.2744, 68.0, 41.2647, 42.6408, 45.6, 44.9167, 52.4832, 44.0828, 43.7925, -41.0556, -41.0567, -16.3842, 26.6833, -34.439, -34.4333, 44.55, 48.9, 30.3644, 29.5814, 31.1783, 19.897, 33.6542, 53.805, 51.22, 50.02, 46.8833, -34.0517, 48.3167, 48.5167, 52.967, 41.35, -36.9731, -18.5203, 45.5733, 43.95, 26.75, -26.63, 30.9333, 51.7706, 43.9067, 45.785, 31.2361, 46.0, 48.5667, -15.52, 43.1153, 49.652, 36.4192, 55.0, 5.5167, 65.62, 65.5431, 41.4, 29.6756, -5.8, 34.6269, 31.9297, -15.033, 50.3667, 32.0306, 50.65, 50.6, 33.8225, 51.8167, 38.8678, 55.7, 50.75, 50.65, 8.617, 25.43, 35.0, 65.7667, 44.42, 35.85, 38.6661, 58.79, -15.3167, 34.05, 32.07, 45.5333, 42.7506, 48.45, 47.6981, 43.6658, 49.63, 47.8, 24.53, 25.6667, 47.0331, 28.88, 15.1833, 29.58, 49.8167, 38.9, 36.2303, 64.58, 64.55, 48.2, 42.8294, 37.3208, 44.5167, 51.505, 59.9087, 58.6333, 56.05, 39.9667, 56.8667, 56.8667, 56.85, 55.05, 43.2117, 40.0833, 45.7, 52.2117, 45.6667, 39.1258, 49.55, 29.2358, 37.1431, 46.6833, 50.2167, 50.2333, 32.3667, -2.62, 35.667, 30.167, 63.1431, 47.3, 50.9053, -43.6578, 46.0667, 22.2, 0.051, -4.367, -5.117, 22.15, 27.85, 53.0167, -37.4155, -9.66, -9.517, 8.53, 59.933, -21.667, 31.18, 16.2, 68.3, 43.95, 43.9181, -21.1172, 55.3, 45.85, 52.3333, 39.7167, 46.3, 33.1544, 32.6847, -54.499, -33.7791, 10.308, 45.95, 17.77, -5.2, -5.217, 45.5, 51.5, 46.7781, 29.2, 36.9539, 40.8, 34.0919, 30.4653, 41.8292, 44.7983, 30.9392, 37.3475, 43.9906, 38.1025, 43.1406, 44.5833, 38.7369, 43.0833, 45.0025, 34.4, 34.917, 44.6167, 44.6633, 13.0, 40.8508, 40.4117, 40.4667, 40.3778, 40.3, 40.4831, 39.4, 36.4, 40.5603, 19.3, 18.167, 16.667, 52.6667, -13.4, 59.55, 12.983, 53.467, -13.333, 34.1167, 52.1031, 34.82, 42.1833, 53.35, 33.295, 45.2667, 43.3181, 17.9722, 47.9, 42.9667, -15.7167, -23.12, -19.833, -4.6, 47.3172, 39.9, 11.85, 22.86, 5.874, 13.23, 13.233, -18.05, 49.9681, 60.5181, 51.1833, 48.2175, -34.3745, 35.27, 35.45, 44.617, 57.783, 7.1, 7.0833, -3.483, 13.5, -27.4, 40.52, 20.6419, 59.1578, -2.28, 21.483, 21.5, 70.7006, 55.0833, 0.57, -0.02, 0.0, 57.8, 57.1, 31.267, 7.704, 55.25, 65.19, 2.263, 42.2, 42.1492, 36.6667, 51.0, 44.7181, -9.55, -35.494, 38.43, 39.0, 36.5994, 4.2, 58.07, 54.1, 43.9794, 43.265, 50.1667, 5.227, 57.3917, -3.229, -3.2167, 42.0078, 55.3717, 72.3794, 32.8567, 9.55, 46.0, 48.7781, 44.45, 67.17, 55.61, 47.5167, 44.8419, 47.7828, 47.8417, 42.2917, 48.3939, 60.6814, 34.3947, 52.1117, 47.933, 58.317, 57.82, 5.72, 37.1317, 39.6833, 36.4947, 10.37, 30.5667, 7.38, 7.4, 1.5, 12.141, -21.2, 37.1742, 38.7833, 11.77, -3.133, 36.8, 43.1667, 53.354, 42.4733, 37.15, 42.53, 21.983, 45.767, 58.0475, 46.8128, 3.933, 50.1028, 43.2625, -29.15, -19.7419, -32.5031, -31.82, 43.817, 12.867, -36.8886, 12.917, -23.133, 38.25, 10.37, -13.7379, 10.367, 34.8911, 49.7, 39.1972, -5.811, 49.3, 14.55, 40.99, 14.5, -12.0482, 38.6, 44.2114, 45.9511, 49.2667, 49.15, 44.0869, 46.3833, 46.3, -34.2508, 39.7889, 44.1542, 62.9861, 49.1, 64.9989, 8.97, 48.55, 36.1747, 49.473, 33.6989, 56.95, 39.5436, 21.3331, 52.55, 46.3333, 37.1089, 40.7667, 41.7569, 40.8203, 51.35, 35.9172, 39.2583, 45.15, -74.95, 31.5769, 49.3667, 49.1167, 48.8, 19.05, 40.5411, 49.6, 46.1833, 42.1619, 44.855, 50.0, 45.3333, 45.0, 49.2167, -25.921, -41.25, 42.0494, -5.369, 10.55, 10.25, 10.3, 13.47, 30.1925, 48.7167, -23.15, 42.5008, -21.1756, -21.1756, -24.98, 37.3036, -77.4167, 33.9, -32.684, 39.8253, -21.1906, 37.3, -16.995, 42.2636, 44.0575, 30.3125, 46.3333, 52.65, 34.7392, 47.77, -22.31, 46.5, -22.92, 18.1511, 35.0833, 33.1139, -25.5, 58.85, 50.65, 58.71, 33.8761, 39.4086, 45.4, 43.4417, 56.217, -19.4, -79.95, 40.433, 44.4906, 45.0983, -23.4, 34.1653, 36.8167, 43.4206, 40.58, 40.6167, 35.7072, 37.7747, 40.75, 44.5833, 44.6125, -46.883, 32.4714, 38.3778, 3.633, -22.017, 47.1, 53.45, 56.46, 43.8667, 38.4917, 52.7017, 64.6831, 54.175, -27.3002, 31.3336, 46.2911, 18.133, 53.3242, -23.15, 44.3, 46.5311, 46.5458, 50.0167, 31.7, -40.9089, -29.6587, -29.6481, 69.72, 2.317, 43.305, -33.7654, 32.5403, 35.8036, 35.9156, 39.1342, 44.4706, 42.0647, 32.4567, 37.3339, 44.6411, 52.3333, 43.1803, 38.0131, 39.4019, 46.5, 39.4039, 36.7056, 43.1833, 32.6667, -37.8, 49.2833, 36.3444, 58.55, 40.0239, 53.6, 52.3, -37.056, -25.5161, 49.8333, 38.4486, 39.1458, 39.8383, 40.2411, 49.6333, -32.9131, 40.3458, -38.0, -37.933, 35.3, 35.6, 20.52, 20.53, 45.75, 58.1, 36.267, 49.1333, 20.667, 54.333, 30.7478, 41.2211, 43.1631, 40.1642, 43.1544, 44.6719, 42.9892, 42.6681, 15.617, 44.9358, 46.2, -20.067, 47.167, -5.8, 34.0044, 48.9, 49.75, 49.7667, 28.6836, 15.6167, 41.3914, 15.65, 48.85, 61.5664, -8.75, 4.813, 44.1747, 37.4031, 38.8722, 28.0372, 16.88, 21.317, 35.45, 36.25, 33.85, 49.6, 39.4725, 48.067, -19.133, -10.25, 9.749, -19.983, 18.0094, 19.5361, 44.8933, 43.79, 33.9167, -67.6, 47.8214, 36.5697, 32.3833, 40.5158, -42.7636, 50.3258, 36.7581, 42.4292, 48.85, 30.1064, 7.565, 63.6167, 60.8833, 30.4, 34.8333, 38.6869, -3.42, -3.417, 47.4989, 44.5664, 48.6008, 51.63, 36.7, 29.0, 23.1881, 41.8, -8.933, -6.167, 34.8822, 26.1917, 26.1839, -16.4423, 53.2667, 53.3667, 31.1331, 42.6519, 61.4181, 35.6022, 33.0667, 39.1267, 34.7056, 31.1828, 26.565, 39.6339, 50.7167, 49.8, 41.9953, 35.3364, 34.3097, 39.4136, 62.9575, 46.8167, 31.435, 40.0167, 52.2667, 52.5833, 44.2, 44.1792, 63.7175, 33.1903, 38.0844, 52.3833, 52.5333, 51.05, -77.8833, 45.9406, 38.3772, 63.6, 37.9833, 37.99, 44.8872, 41.2514, 39.1333, 47.4825, 39.6522, 40.2156, 35.1447, 42.4106, 39.7844, 39.5833, 47.5808, 45.8383, 45.8133, 35.2361, 46.3911, 47.1358, 35.6722, 45.2214, 34.1142, 47.7619, 39.2814, 37.285, 46.9833, 44.4333, 54.1333, 54.1333, 51.7167, 31.4664, 41.6333, 41.1431, 44.6167, 33.5714, 38.4617, 33.536, 3.8, 6.27, 45.1308, 42.2961, 42.3811, 41.8969, 40.3761, 50.0167, 50.0167, 48.4828, 37.2767, 29.81, -32.2208, 43.576, 46.9161, 62.917, -26.6136, 40.0358, 40.0333, 35.505, 52.3425, 20.833, 50.5625, 46.73, 27.77, 24.3, 1.02, 33.8833, -37.6655, 28.1011, -37.8075, 28.1136, 52.95, 52.8167, 35.2778, 46.833, 46.3689, 45.155, 45.45, -32.366, -32.35, 45.3167, 34.4278, 45.6775, 59.23, 46.6011, 51.1331, 38.5039, 30.6833, 50.95, 46.1047, 15.5333, 34.7261, 35.3447, 40.4575, 35.0564, 35.1297, 34.5731, 1.533, 15.867, 31.607, 30.9044, 29.05, 50.3667, -32.833, -32.883, 38.6, 9.817, 34.817, 21.5, 24.2, 23.383, -32.3937, -35.6902, 43.2358, 44.8742, -14.65, 39.8544, 53.1031, -29.6939, 28.27, 63.4431, -8.467, 37.2858, -33.25, -33.3, 26.0619, -29.17, 37.2847, 41.2247, 39.8333, 45.3167, 36.6206, 39.3619, 8.6, 20.97, 8.6, 32.3347, 32.55, 44.8317, -36.9077, -36.9106, 48.5131, 42.95, -31.4756, -31.4994, 30.9833, 45.1786, 42.9194, 50.1167, 50.1167, 49.4667, 31.3331, 36.8, 2.45, 57.35, 31.2667, 0.08, 40.85, 29.63, 39.05, 37.1997, 38.2, -22.27, 72.25, 40.5, 6.8456, 44.2667, 8.87, 36.8331, 48.1075, 45.6, 44.5833, 41.2833, 48.8556, 32.3972, -34.5961, 49.0731, 4.25, 31.6181, 32.55, 37.1497, 39.1756, 19.4, 65.87, -53.42, 33.4044, 35.6936, 36.8833, 25.65, 25.8064, 25.7906, 25.7167, 31.47, 52.05, 49.717, 49.4, 45.7667, 39.4953, 39.2931, 43.1167, 36.6086, 42.5933, 41.4603, 39.45, 41.55, 40.1936, 37.6167, 44.7786, 44.7189, 45.0667, -12.5781, -12.605, 51.15, 32.68, 44.45, 31.6333, 41.2167, 43.6089, 44.0667, 32.0186, 44.6833, 31.9433, 44.75, 59.8339, 32.8753, 49.0, 28.2167, 37.5667, 43.4131, 46.3667, 60.6294, 44.7706, 66.0, 45.4667, 61.733, 61.6869, 53.78, 45.7533, -2.1167, 45.4717, 45.5833, 45.6167, 45.1219, 42.0664, 35.9328, 37.3, 45.2836, 46.7614, -34.2358, 50.5544, 44.5208, 46.4, 26.2483, 46.4267, -26.6581, 38.4017, 39.1814, 38.8983, 43.3828, 45.1, 42.5794, 39.0744, 38.4167, -44.7, 36.3, -12.1239, -12.0931, 49.1667, -20.0464, 50.7167, 44.117, 41.8553, 33.0831, 46.875, 32.8703, 44.5178, 40.5375, 39.7194, 43.3167, 39.2739, 45.6503, 40.7692, 46.808, -33.4455, 45.1667, 41.1, 39.3667, 44.4667, 40.65, 44.1833, 36.74, 32.4419, 49.7131, 30.7794, 45.9428, 43.5, 42.955, 43.0719, 43.1167, 43.0333, 32.9325, 38.3844, 25.847, 24.3, 45.6833, 27.05, 16.933, 23.633, 38.65, 63.9033, 32.6053, 38.9547, 40.5156, 44.9333, 40.7328, 32.7167, 40.3458, 37.85, 44.2, 41.15, 32.7817, 48.1667, 48.7667, 8.3, 8.3, 42.7833, 42.6767, 40.4833, -34.822, -11.1456, 39.1247, 44.8833, 44.8831, 50.2667, -32.8361, 45.8864, 46.0667, 40.9125, 48.4167, 48.1803, 48.2553, 38.633, 53.87, 33.7589, 46.0333, 49.1667, 53.7167, 34.43, 28.083, 44.6614, 47.0167, 47.0167, 4.322, -66.55, 62.5, 52.45, 61.4253, 35.48, 40.7, 48.0167, 35.117, 48.083, 43.3061, 49.1333, 43.1114, 26.2167, 49.15, 46.4333, 46.8983, 46.9244, 46.9208, 48.85, 50.4167, 32.4097, 43.7381, 44.5833, 41.9481, 34.9436, -14.7925, -26.4888, 39.06, 36.383, 47.4783, 61.1667, 62.0167, 66.95, 72.7831, 0.783, 20.23, 34.117, 24.783, 39.65, 31.733, 31.933, 46.2858, -70.7, 53.1, 38.5744, -1.53, 39.4194, 30.6794, 30.6833, 45.5656, 42.0431, -15.08, -15.2, 47.0575, 60.51, 35.8439, 25.48, 22.75, 29.8, 60.841, 37.7981, 44.6481, 37.6242, 37.4058, 53.95, 53.9, 53.75, 51.733, -30.15, 48.7603, 36.276, 52.133, 41.7681, 49.6506, 48.45, 47.2, -5.894, 35.0492, 35.0531, -29.2667, 34.817, 37.75, 44.9078, 40.8442, 41.4653, 19.48, 57.94, -67.667, 21.1544, -4.033, 44.35, -2.5833, -2.0667, -2.05, 31.5414, 49.8167, 18.0908, 67.967, 26.883, 46.1, 46.1, 44.3831, 44.5647, 51.683, 36.9167, 36.8619, 46.15, 47.2, 47.7, 47.6, 44.9, 47.6, 48.2, 43.2, -15.25, -15.3, 40.9442, 38.0, 41.9139, 47.8453, 34.9797, 44.3167, 39.635, 32.4936, 32.5156, 6.234, 50.4392, 43.4614, -36.2519, 46.31, 48.05, 35.2244, 34.0192, 45.7, 18.5, -7.88, 44.5817, 43.7806, 41.2781, 25.2, 44.3764, 36.5903, 38.4167, 25.87, 25.733, -16.717, 44.9342, -35.0, 34.6106, -2.0, 42.38, 45.8667, -30.267, 44.2, 41.4667, 50.5333, 18.8, -10.43, 39.333, 41.7, 37.5811, 32.2997, 40.6475, 37.9667, 31.5519, 33.3328, 38.0111, 43.9667, 46.4667, 37.8736, 36.8667, 30.4922, 33.6361, 46.9667, 50.25, -24.8642, 41.5725, 42.3167, 47.2667, 45.5667, 45.5, 45.5167, 45.5, 45.6667, 45.4667, 45.5167, 46.45, 41.8511, 38.4858, 38.505, 41.77, 44.1167, 47.9667, 48.4167, 43.912, 48.6, 46.5667, 49.2333, 44.8186, 36.9853, 37.0167, 44.2767, -23.57, -28.1125, -38.0992, 44.4167, -30.6417, -37.98, 44.2169, 39.0461, 39.9511, 43.9167, 26.84, 33.4517, 45.1758, 43.6536, 50.3333, 50.3833, 46.4378, 60.5028, 54.2333, 50.1333, 51.2833, 51.2833, 51.2833, 51.2667, -16.77, 14.5, 38.93, 45.8775, 61.0, -5.11, -21.9947, 43.8567, -29.2103, 60.96, 56.53, 49.1833, -29.4914, -29.4819, 34.7336, 19.7, -12.4536, 41.4558, 35.7297, 40.1581, 39.6428, 39.6203, 31.5333, 29.6833, 44.85, 44.5167, 41.0428, 39.7, 33.5544, 34.9333, -16.664, 45.4825, 33.3167, -6.82, -20.285, -11.68, 39.5267, 37.1581, 37.1833, 48.35, 55.215, 35.1581, 49.35, 44.9167, 41.8039, 39.4158, 36.2067, 44.5139, 42.8417, 40.8333, 45.59, 35.3669, -7.85, -11.217, 46.9, 63.32, 33.7183, -21.8167, -35.9093, -38.2094, 47.25, 47.0219, 40.6167, 35.0711, 55.8331, 46.7281, -3.35, 65.8514, 53.57, 55.75, 55.9167, 51.6, 49.696, 35.8022, 57.28, 59.8394, 47.6833, 45.2667, 35.883, 71.533, 43.35, 36.32, 46.3719, 61.5167, -1.87, -1.845, 76.2333, 34.4883, 31.1769, 8.567, 39.9056, 38.1433, 37.1872, 34.5208, 35.6494, 44.05, 45.7, -35.0639, -34.625, -36.745, -36.722, -37.145, -37.5575, 47.4167, 47.75, -34.7122, -37.8306, -16.783, -29.7, 43.9833, 43.9833, -37.7473, -37.8333, 41.7836, -20.6778, -20.7361, 47.9167, 36.3472, -28.0619, -51.823, 53.0167, 42.9372, 44.9, -33.5917, -4.0, 39.5878, 46.5053, 3.533, -6.03, 55.5, 43.733, 52.03, 51.95, 23.317, -28.3, 36.4739, 41.8375, 40.7497, 37.1542, 43.1261, 36.3458, 43.05, 36.3333, 27.9378, 32.9539, 35.4703, 35.8444, 41.2708, 19.5486, -10.267, 45.9997, 36.4992, 40.7053, 38.4106, 41.4075, 42.0981, 36.26, 42.6083, 37.8792, 39.6561, -27.3342, 37.3436, 45.3333, 45.2667, 34.5408, 49.1167, 37.3833, 35.655, 30.7053, 50.7833, 44.5247, 35.7586, 42.7314, 33.1689, 35.5572, 40.9486, 43.5858, 39.3167, 43.8769, 41.3206, 41.3325, 41.3156, 38.0583, 43.3325, 33.1964, 37.3542, 37.9286, 38.3483, 48.4403, 37.0733, 44.2667, 39.0642, 34.2308, 43.6389, 39.25, 60.85, 44.567, 42.3628, -32.5956, 64.849, 49.4667, 42.6, 42.6039, 47.1414, 45.25, 48.967, 48.1642, 51.9506, 52.3333, 52.1353, 37.217, 48.633, 50.37, -8.54, 48.283, 64.815, 43.47, 16.533, 29.4667, -22.92, 28.63, 34.2192, 33.9544, 32.4, 47.4661, 42.0425, 42.2506, -28.5367, 47.8069, 53.5333, 30.203, 51.567, 38.12, 52.5189, 58.9333, 40.2342, 34.9364, -8.333, 33.4539, -23.7942, -28.9786, -33.5969, 48.5167, 48.35, 46.4122, 56.23, 48.3864, 64.27, 67.94, 67.9681, 39.0, -26.8936, 38.0028, 37.9578, 37.7889, 55.5167, 43.8894, 48.95, 49.633, 36.4522, 34.0783, 35.9203, 38.167, -27.3636, 66.48, 68.9667, 42.317, 33.25, 35.0714, 42.0264, 36.6122, -35.1234, 33.92, 48.9739, -31.7651, 46.7, -28.3395, 38.733, 42.1, 41.4075, 34.7442, 49.45, 43.1711, 35.7781, 44.9667, -1.5, 45.2, 42.183, 40.0, 63.4353, 36.7, -0.919, -17.417, 41.283, 36.2283, 12.7667, 65.382, -2.467, -11.75, 27.2417, 25.367, 66.7628, 61.5245, 56.45, 24.75, 43.08, 49.5833, 65.3, 49.667, 49.4, 33.7544, 33.6833, 45.2436, 58.83, 69.8797, 68.4667, 68.55, 67.15, 45.9, 50.87, 67.8, 68.9, 72.87, 48.65, 43.933, 66.17, 67.83, 76.85, 40.1942, -11.9, -11.4333, 8.4, 14.25, 7.733, 62.3978, -3.368, -17.0, 53.1, 31.6164, -17.75, 65.47, 49.75, 36.667, 32.732, 57.47, 26.6, 48.5675, 55.97, 35.167, 21.1, 31.483, 32.1, 80.817, 46.45, 26.2, 31.2667, 31.2739, 68.68, 56.55, 57.593, -1.3, -1.317, 31.98, 61.95, 62.88, 17.417, 14.967, 15.8, 8.533, -0.27, -0.283, 50.25, 43.533, 31.87, 40.983, -26.6431, 64.2506, 34.78, 29.25, 43.6039, 38.717, -15.1, 35.42, 20.4167, 18.767, 49.05, 49.2167, -26.6756, 28.6, 27.583, 30.8, 48.68, 11.7167, -17.8, 14.6167, 72.9833, 31.933, 22.633, 26.633, 47.3, 47.153, 32.02, 41.2531, -5.667, 33.03, 27.3, 59.85, 38.2778, 26.1686, 42.6167, 23.3, 41.3939, 46.5067, 40.85, 45.7667, 34.7, -36.9564, -33.6104, 49.55, 44.62, 44.67, 6.4167, -25.6875, 15.167, -32.0656, 67.6331, -1.13, -30.3401, -34.7071, -34.7325, -32.9342, 41.4331, 42.7667, 42.7914, 33.9294, 35.9667, 38.3431, 31.2644, 31.1333, 36.1189, 31.02, 40.68, 25.05, 57.64, 55.2333, 39.3, -5.767, -5.9167, 49.7667, 50.1833, 31.5889, 31.7722, 10.32, 38.9133, 37.6094, -18.043, 40.7806, 36.8047, 31.9611, 57.44, 26.219, 37.1, 25.23, 28.383, 28.3833, 37.9, 59.5, 55.567, -31.82, 12.13, -4.386, -26.92, 35.7197, 40.6986, 44.0261, 39.9833, 59.4839, 34.7675, 50.15, 50.2167, 5.33, 5.28, 44.2331, 47.0414, 29.58, 44.5378, 17.611, 7.45, 58.6581, 57.65, 14.45, 49.5, -41.3, 49.5833, -25.43, 16.6, 16.62, 43.333, 64.55, 54.75, 49.167, 42.65, 40.4178, 36.8639, 53.28, 39.7122, 47.4, -35.3365, 51.32, 52.0, -35.1165, 60.5683, 60.5669, 40.1358, 48.1333, 38.4478, 48.0667, 53.602, 48.7092, 47.0, 49.2942, 47.9767, 50.8933, -70.667, 54.0889, 50.8967, 49.3444, -38.95, 52.9053, 49.5739, 49.8183, 49.3581, 50.4494, 39.2467, 37.8394, 46.67, 44.633, 38.617, 45.7833, 37.5147, 40.6825, 39.6694, 40.0875, 36.1167, 34.2978, 46.3286, 43.8497, 44.0461, -27.73, -32.9185, -17.3833, 43.9708, 40.0833, 44.7158, 48.6758, 50.783, 32.5953, 35.07, 36.9425, -23.3683, 37.2811, -23.4169, 33.4544, 35.6042, 39.3933, 42.6008, 44.9489, 48.1842, 35.9833, 33.6025, 37.1319, 37.0167, 40.4783, 41.5, 38.0344, 41.0553, 41.7117, 43.5833, 38.9136, 32.3378, 54.6699, 46.1333, 52.68, 41.6333, 35.0678, 29.7192, 40.4719, 48.0333, 41.0172, 39.8942, 48.0333, 43.4833, 40.5261, 34.9456, 28.583, 50.0, 46.5414, 43.1167, 39.0172, 42.5167, 46.4167, 29.2667, 43.0453, 37.4636, 41.3, 35.4486, 30.0375, 39.7333, 47.5, 44.3589, 45.305, 36.5869, 44.9714, 37.95, -42.7833, 29.8167, 29.9167, 29.9933, 30.0494, 30.0333, 41.6833, 40.4878, -39.017, 40.6089, 40.9319, 48.1667, 34.7, 30.7267, 46.8925, 47.9833, 44.3006, 49.2167, 39.55, 40.7789, 40.6386, 40.7794, 40.7333, 18.47, 46.2325, 45.7333, 42.3803, 7.35, 7.3, 12.2333, -36.3347, -36.3092, -12.1939, 43.1333, 43.1003, 43.1072, 43.1333, 43.25, 13.5, 9.767, 43.6333, 30.5317, 69.9333, 5.95, 46.2, 35.1667, 47.2333, 50.2344, 57.3039, 49.3992, 48.5342, 49.7681, 52.6725, 37.967, 37.917, 61.9, 67.8497, 67.8497, 36.733, 46.9667, 58.567, 53.15, 58.35, 59.53, 55.2, 47.583, 42.767, 43.8581, 34.9553, 49.4167, 35.0317, 14.517, 42.7472, 15.233, 53.3333, 53.3333, 53.3333, 43.3331, 53.2, 53.33, 48.8667, 48.283, 33.0333, -19.03, -10.75, 22.0331, 63.9167, 49.6, 40.0333, 29.2828, 55.78, 54.8831, 50.9, 46.85, 66.767, 57.883, 48.333, 51.05, 56.2667, 62.43, 8.1, 61.7, 63.283, 32.583, 31.35, 31.4553, 51.92, 48.0333, 21.221, 48.15, -28.3517, 28.817, 51.5167, 57.55, 37.2792, 64.5111, 46.4, 17.8667, -32.5226, -26.52, -37.9, -37.9039, 49.6, 53.067, -33.2815, -33.2815, 55.45, 52.5, 53.7139, 52.4408, 58.8925, 64.4619, 63.57, 64.7978, 58.4353, 69.8333, 62.85, 66.3683, 41.9725, 36.9033, -29.042, 41.9856, 36.95, 40.5492, 48.85, -17.6706, 17.936, 65.2833, 65.2833, 65.2833, 36.2131, 40.1197, 45.5833, 45.4856, 58.58, 58.61, 59.77, -32.1981, 64.91, 52.35, -31.6508, 37.8122, 45.0, 46.3333, 46.35, 44.1, 39.8989, 51.55, 48.8742, 62.9614, 43.4386, 52.7667, 52.7667, 46.3167, 46.3667, 43.4167, 43.4133, 44.0303, 47.2667, 37.2328, 41.8564, 41.3333, 47.1333, 32.7, 37.2167, 27.233, 39.0667, 41.4933, 44.1667, 45.6358, 48.7667, 41.0569, 41.1214, 64.7581, 56.8333, 45.9167, 44.75, 39.0017, 36.1631, 39.7411, 34.1, 39.8114, 41.9928, 41.1167, 41.2667, 40.6517, 53.9667, 53.95, 54.0, 37.455, 42.5117, 41.5269, 52.683, 38.1317, 44.3833, 51.0517, 57.0167, 44.0667, 45.4, 47.6667, 46.2333, 45.8, 49.0667, 47.6, 46.1167, 46.8333, 53.005, 20.933, 20.93, 18.12, 33.3667, 33.367, -22.27, -22.2667, -22.267, 32.384, 48.1, 43.89, 48.95, 45.95, 46.783, 48.85, 45.8, 58.517, 45.3331, 56.969, 53.6, 50.6, 53.817, -70.767, 48.783, 44.717, 51.1, 55.083, 50.4, 45.8, 47.9, 67.6994, 36.6917, -34.9449, -34.9469, 49.6167, 57.083, -20.72, 30.367, -35.45, -0.917, -21.13, -9.2, 42.45, -21.8861, -31.4492, 40.7064, 40.55, 50.3403, -34.4767, -34.4761, 28.03, 60.5083, 49.5042, 49.4267, 48.6331, 37.1, 39.8081, 64.1667, 6.967, 12.05, 66.5997, -0.5, 45.435, 29.57, 48.0, -31.5495, 43.8764, 45.45, 78.923, 40.5939, 40.6333, 46.8667, 49.3167, 49.3167, 49.3667, 49.4333, 45.2817, 46.7, 42.4594, 44.4419, 42.0644, 46.1458, -27.4034, 41.3044, 39.9, 39.4133, 37.7214, 37.7983, 42.2342, 39.1131, 32.2061, 50.1, 43.7428, 46.8333, 43.4833, 39.3758, 34.9589, 37.9714, 41.8386, 36.0028, 41.0333, 25.8603, -42.3006, 17.05, 46.8675, 39.8189, 41.2667, 30.6036, 48.3156, -33.6774, 48.2444, 47.3989, 49.1289, 49.4531, -1.91, 42.917, 60.367, 49.0, 5.4, 43.8, 58.6592, 4.63, 29.1639, 36.1839, 36.8167, 33.2097, 52.35, -0.87, 46.633, 48.583, 52.2667, 44.4333, 44.3964, 25.9167, 51.0667, 50.0308, 52.2056, 47.7831, 35.5158, 43.1003, 41.1439, 44.8919, 13.6167, 16.7, 39.8, 43.5492, 38.2, 55.48, 46.48, 47.3328, 54.2, 9.5, 9.5, 51.233, 43.1878, 42.6467, -12.3263, 63.1831, 50.0892, 48.4603, 39.067, 41.1275, 44.7281, 41.6167, 41.1167, 41.2319, 57.87, 65.3667, 53.967, 54.9, 36.947, 57.717, 48.4339, 58.567, 59.3667, 61.867, 41.12, 49.2081, 33.233, 34.4478, 29.57, 63.25, 27.7, 45.5, 50.05, 33.7667, 34.667, 52.166, 27.1508, 36.1217, 35.4253, 27.3, -29.6, 35.5342, 35.4167, 35.3889, 47.8333, 35.6239, 58.0667, 52.7, 51.63, 62.45, 66.25, 59.57, 36.5072, 57.37, 56.2, 38.8875, 6.22, 44.1333, 53.1031, 61.86, 36.9756, 51.7833, 41.15, 67.5667, 61.8, 44.4569, 43.7025, 42.2058, 36.2469, 44.9214, 31.0, 60.4, 68.5, 52.8, 42.167, 48.6117, -20.68, 49.1667, -32.55, 49.1833, 53.65, 37.1742, 44.7628, 31.8922, 40.3161, 33.3733, 48.5497, 38.7003, 60.983, 50.95, 54.667, 49.9325, -38.4861, 53.7667, 34.1797, 40.6, 46.9733, 34.6, 41.3536, 41.3103, 48.4167, -37.1017, -37.1011, 49.017, 65.23, 55.0167, 44.583, 62.8667, 36.95, 45.4108, 42.0697, 62.8667, 62.8594, 63.9, 36.5028, 33.9478, -33.9644, 45.0331, 50.75, 44.7317, 42.4544, -20.667, -21.6364, 34.0667, 44.0439, 46.8342, 32.725, -27.5553, 20.0167, 38.8894, 51.2403, 53.7667, 59.9, 29.9, 32.6592, 48.9989, 48.6956, 19.2706, 50.6333, 61.9333, 32.6025, 47.033, 43.4033, -23.153, 30.0858, 44.133, 33.4886, 43.9167, 30.2264, -33.3211, -33.3813, -33.3815, 36.6167, 35.7, 49.3667, 49.2, -37.6922, -37.6917, -33.802, 37.2722, 41.0, 38.53, 38.2222, 54.367, 59.24, 59.28, 39.9808, 45.3558, 52.933, 40.2767, 51.8, 51.6831, -42.5519, 31.9556, 41.3619, 37.2353, 44.6167, 60.8064, 21.18, 63.205, 39.7458, 63.7003, 28.5453, 28.4339, 41.3089, 47.98, 52.5, 56.05, 48.725, 49.7167, 45.1167, 63.41, 46.4833, 32.3789, 45.8333, 43.9667, 44.8992, 41.5683, 39.5178, 65.95, -35.6333, 55.667, 54.5, 60.53, 62.2072, -18.04, 43.2794, 34.683, 56.38, 38.0492, 41.0194, 41.1839, 51.3, 44.45, 40.533, 43.9333, 43.8667, 34.75, 41.4014, 44.0206, 45.5331, 41.3214, 39.2419, 55.6, 57.27, 59.9428, 24.963, 54.433, 42.3569, -40.6, 49.0333, 49.0333, 49.0333, 1.28, 59.3, 57.133, 49.8167, 51.083, 50.455, 60.31, 60.33, 60.35, 49.8, 78.62, 60.7, 53.08, 68.12, 69.93, 76.8, 70.633, 79.55, 77.15, 67.47, 76.0, 76.2667, 74.667, 81.8, 66.48, 77.5, 80.83, 73.5167, 79.5, 70.9831, 16.5, 9.553, 43.4622, 43.533, 43.183, 46.7886, 36.3339, 45.0333, 39.1, 38.6133, 45.4, 41.3283, 45.3833, 45.3167, 45.3167, 45.45, 41.6, 46.4314, 45.1, 61.0333, 41.1078, 12.35, 12.353, 13.58, -20.7769, -12.12, 31.917, 30.93, -25.18, 31.673, 48.483, 1.62, 48.3167, 34.78, 64.2306, 64.9283, 64.9375, 65.0331, 65.0056, 35.867, 38.0206, 40.1344, 42.3278, -7.9, 51.4833, -35.0694, 57.9256, 46.8819, 63.78, 69.0178, 66.34, 39.0833, 40.7456, 66.3797, 43.3542, 66.9667, 61.8213, 51.317, 34.067, 44.0981, 37.7828, 38.5167, 44.98, 44.5833, 38.6833, 43.6667, 43.0161, 41.95, 43.65, 43.5833, 49.3167, 58.68, 51.75, 51.77, 36.3, 34.1981, 50.1167, 51.1667, 51.35, 49.8833, 47.6392, 38.7, 35.4833, 31.5333, 36.6597, 51.483, 44.2831, 30.7169, 31.4539, -63.3, 43.2783, -33.72, 22.18, 48.7167, 20.133, 37.5917, -23.0967, 46.6092, 44.0622, -0.883, 63.27, -30.82, 54.0206, 24.0, 45.3983, -12.614, -36.5958, 34.0067, 37.0683, 37.05, 44.3456, 68.6, 34.7167, 46.15, 36.9208, 34.7606, 37.2425, -14.3306, 27.73, 37.2689, 36.2614, 36.1664, 41.7525, 37.5831, 37.8175, 31.5536, 42.6922, 44.2667, 55.8455, 67.2097, 46.6167, 15.117, 28.7247, -2.88, 42.0081, 38.1103, 29.15, 39.0028, 31.7831, 46.1, 39.1136, 43.35, 32.4167, 61.3378, 66.39, 66.39, 53.05, 50.05, 39.6, -10.19, 39.5606, 39.5556, 34.5883, 34.6294, -9.45, -64.8, 49.8667, -41.79, 40.8, -16.0008, 47.3058, 61.5889, 39.1203, -64.766, 3.52, 34.5494, 33.8275, 33.3781, 7.127, 24.93, 37.4436, 45.7, 38.9, -0.68, 9.267, 56.02, 35.5544, 42.7767, 42.8175, 39.3686, 30.2492, 36.1203, 38.3036, 30.2678, 30.2061, 40.9461, -2.17, 66.15, 37.8156, 35.3514, 26.955, -21.6392, 36.82, 29.3272, 25.78, 38.5911, 38.5556, 38.8522, -9.75, 40.88, 47.35, -17.53, 58.7, -23.2028, -17.217, 33.867, 39.7536, 46.8333, 53.1167, 41.5022, 29.7892, 38.3833, -34.7977, 36.0336, 59.7842, 9.35, 5.8, -19.7, -31.783, -40.9, 48.6333, -20.1078, 47.9167, -2.63, 33.6744, 48.8231, 36.2872, 48.9667, 40.2167, 39.6186, 50.4667, 45.535, 45.5, 34.1547, 39.2811, 39.345, 51.4, 39.5289, 44.7333, 34.2903, -33.1419, 37.483, 45.8667, 39.6333, 45.9336, 41.4947, 46.9006, 39.0333, 48.4, 41.8, 40.7667, 44.8042, 43.8022, -3.083, -2.917, -35.8, 37.8622, 34.2931, -33.7917, 25.45, 27.6089, 45.4, 45.35, 49.1517, 39.0736, 37.3678, 43.15, 39.6308, 34.1483, 36.2994, 42.35, 30.3961, -23.05, 21.83, -43.817, -29.689, -32.8, 29.33, 22.33, 35.6278, 35.6697, 53.7167, 48.58, 48.5817, -22.38, 49.5333, -28.21, 46.1489, 1.417, 69.1648, 51.9833, 40.7967, -32.6296, 42.4717, 30.333, 25.6, -7.017, 38.25, 47.22, 6.7833, 38.3333, 38.3, 43.38, 69.3667, 41.1247, 44.1328, -8.132, -9.4, 34.7253, 42.6283, 53.7831, 42.9294, 43.2458, 52.3, 44.3192, 36.6692, 40.1217, 41.6653, 63.0322, 40.4547, 46.82, 44.0764, -29.2708, 53.0167, -32.333, -45.24, 34.2325, 41.2, 14.583, -26.82, 42.5333, 49.0, 56.2333, 49.7833, 49.8667, -32.7235, 31.9356, -31.6669, 32.65, 28.8889, -33.3102, 54.9833, 42.67, 65.1167, 31.4167, 35.5489, 46.1, 46.0, 50.692, 34.6153, -3.553, -23.6, -22.6, 38.95, 38.63, -35.867, 50.3667, -15.517, 32.3161, -22.55, 41.75, 57.9578, -25.8, 33.8017, 66.7722, 45.5644, 52.0833, 68.4333, 62.8167, -31.78, 44.7275, 54.083, -12.983, -34.4478, 39.9708, 50.3, 50.3167, 48.9711, 45.8667, 5.297, 48.7667, 45.6906, 45.7206, 45.6703, 22.767, 39.5, 23.5, 25.633, 29.3, 40.4167, 55.8239, 50.5333, 45.1, 36.7381, 42.6711, 42.6667, 37.6486, -9.02, 30.53, 30.35, 30.4781, 49.7333, 49.4833, 49.4667, 31.7356, 53.13, 40.7039, 40.6675, 41.0667, 4.422, 62.55, 39.6667, 4.8, 51.9, 56.7, 59.0, -33.93, 48.7667, -46.517, 49.5125, 58.0167, 42.7381, 25.5819, 30.0986, 36.2886, 41.8394, 40.0739, 36.3897, 37.7342, 39.1172, 59.75, 29.6603, -32.0, -31.9275, -31.95, 61.5314, 41.3503, 43.08, 44.5658, 48.05, 57.07, 43.87, 42.43, 33.994, -8.4, 38.2578, 17.53, 45.95, 45.95, 45.9833, 44.2333, 44.3167, 44.2833, 44.3667, 42.85, 56.8056, 48.0356, 38.465, 47.3167, 48.1833, 45.3725, 34.7994, 42.8833, -9.383, 53.0833, 54.8331, 52.9831, 51.317, 61.8167, 66.43, 47.1167, 69.7, 49.1169, 48.9067, 47.9353, -23.98, 36.1067, 40.4, 10.933, 12.9233, 19.1333, 16.433, 13.15, 32.7692, 39.8683, 40.0819, -15.667, -30.62, 49.2519, 45.0333, 40.9167, 46.3158, 44.0511, 17.539, 41.6264, 39.7394, 43.5167, 39.8386, 36.7764, 16.817, 40.12, 33.4489, 33.55, 33.4278, 18.167, 7.883, 8.132, 20.8, 10.217, 44.92, 44.2369, 45.933, 10.583, 18.2, 43.3086, 33.3503, 32.6464, 30.5217, -1.1, -39.65, 32.8864, 34.8814, 38.6667, 43.9, 51.45, 51.45, 43.0689, -7.03, 18.2708, 44.0167, 49.8667, 42.9, 38.2322, 36.0969, 28.627, 62.2831, 46.4922, 29.2353, 40.2461, 35.8833, 46.0833, 44.3814, 49.1833, 48.617, 63.7331, -29.6, -23.917, -27.02, 46.6167, -37.6, 35.5981, 39.475, 48.3, 40.1478, 53.13, -25.33, -26.85, 30.367, -31.667, 52.4167, 49.2, 49.1833, 33.3658, 45.4756, 50.05, 50.7167, 38.7, 49.85, 50.1833, 49.5167, 49.5167, -29.3899, 42.8744, 64.7, -29.82, 37.5742, 49.0333, 34.2256, 41.1833, 41.1722, 34.175, 38.8833, 44.25, 43.5667, 51.6333, 50.5667, 45.1289, 50.9833, -21.6667, 52.1667, 55.5333, 39.2603, 51.7667, 51.8, 46.6694, 40.4369, 41.2578, 22.9833, -32.5336, 35.55, 25.52, 32.42, 32.42, 44.2581, 36.4819, 33.25, 52.117, 33.6906, 40.0097, 37.9344, 46.517, 40.7569, 44.0139, 36.8586, -17.35, -21.983, -15.85, -4.267, 61.4206, -11.4022, 49.1919, 57.633, 43.684, -13.745, -13.8, 35.2719, 37.62, 35.1597, -25.067, 65.3197, 38.6, 65.833, 65.23, 40.3547, 40.4847, 32.1833, 44.4333, 49.2, 49.2167, 49.2833, -5.18, 66.183, 58.3667, 44.09, 38.6956, 38.7333, 47.785, 40.6036, 33.1869, 32.0467, 34.1892, 44.5169, 39.245, 32.8919, -20.433, 46.5, 28.0236, 61.5333, 46.9, 42.7489, 39.5669, 44.65, 44.65, 50.483, 53.65, 46.8167, 59.45, 40.3675, 41.7394, 34.0989, 48.78, -27.98, -34.08, 43.4167, 43.35, 46.4178, 52.58, 42.1333, 50.45, 47.3111, 49.05, 51.0667, 41.3392, 43.73, 43.7833, 40.9833, 35.8722, 41.9819, 50.35, 41.3333, 49.683, 52.4166, 11.15, 42.7292, 36.2642, 42.9203, 44.7667, 42.433, 43.33, 16.633, -29.13, 52.22, 50.4, 44.4, 36.033, 60.1, 6.9667, 52.0667, 45.65, 48.5, 45.4667, 45.35, 48.033, 47.3, -4.82, 38.9, 28.6575, -37.8017, 69.75, 49.3333, -38.2939, 61.4169, 34.1167, 54.417, 41.95, 38.5, 49.617, 47.2508, 28.22, 42.35, 61.483, 80.6, 39.6, -33.5085, 48.7647, 41.8667, 46.6, 35.0331, 69.2, 45.9042, 51.0833, 45.4586, -23.867, 3.558, 55.467, 7.35, 47.675, 47.6775, 49.6, 44.033, 54.367, 46.4672, 49.5067, 37.905, 34.0817, 38.645, 26.2333, -19.21, 36.7231, 36.7367, 18.0258, 22.254, 72.6833, 72.6833, 42.5639, 37.741, -22.533, 42.44, 42.4306, 40.8778, 42.665, 42.6389, 0.0, 34.1381, 45.6572, 52.32, 40.917, 47.7, 18.533, 64.105, 2.4667, 35.1739, 47.9833, 30.8408, 48.1333, 36.7578, 49.0667, 43.395, 51.0333, 40.0978, 48.4667, 52.65, 55.18, 42.553, 61.4656, 61.4789, 10.917, 49.2167, 38.4833, 44.1542, 43.5278, 36.4136, 48.3, 49.9833, 49.9, 49.9, 39.2833, 34.1742, 31.8833, 36.0678, 60.7667, 48.9994, 33.2511, 43.65, 40.4175, -38.3833, 50.517, -38.3148, 45.5406, 45.5908, 43.6497, 45.5181, 36.5878, 41.1331, 39.8053, 45.52, 45.5, -1.033, -30.05, -10.7, -1.733, -9.18, -10.52, -10.717, 41.2, 33.073, -8.767, 38.7569, 47.65, 49.25, 49.2, 49.3, 62.6211, 56.2472, 50.3833, 60.2036, 48.1139, 48.1333, 27.8381, -43.1639, 29.9506, -32.5091, -32.528, 47.5667, -49.35, 18.6, 11.667, 48.35, 65.25, 43.9186, 42.8833, 49.2667, 43.1833, 48.15, 42.7833, -33.985, -0.72, 31.985, 4.85, 50.6833, 45.6333, 45.65, -20.3725, 56.95, 45.9833, 43.95, 42.975, 26.0942, 41.38, 28.6167, -34.7225, -34.4906, -31.4399, 26.5578, 49.2833, -9.383, -29.23, 28.4342, 48.9978, 42.7519, 44.15, -33.1708, 66.0833, 48.6, 31.28, 60.0503, 50.65, -30.733, 19.583, 48.1161, -17.699, 43.3944, 46.7781, 60.2033, 60.4056, 59.985, -27.386, 46.35, 42.65, 54.3, 35.8, 41.5, -14.1, 33.1986, 51.8833, 48.3297, -28.333, 45.8, 46.3, -26.733, 35.05, 35.0539, 29.0283, 40.63, -24.183, 46.9603, 46.8814, 37.8958, 52.3833, 39.3619, 41.7267, 41.6267, 48.6833, 36.48, 46.1167, 45.8525, 43.035, 44.1667, 44.75, 46.51, 44.7764, 49.8333, 49.8833, 49.8333, 49.8333, 42.8886, 48.5722, 42.8708, -15.833, 37.4, 21.22, 14.05, 11.8, 50.067, 29.9167, 50.0906, 50.0, 43.5, 43.0514, 43.31, 41.64, 52.8667, 57.72, 41.659, -22.7, 37.6456, 46.31, 51.95, 56.05, 45.5447, 60.067, 42.9, -41.0867, 27.55, 22.13, 19.97, 28.98, 19.95, 32.45, 27.52, 34.5706, 33.8203, 34.6517, 43.9919, -26.733, -30.975, -22.117, 29.5711, 46.6539, 58.993, 42.0933, 43.4, 43.6725, 53.7739, -25.733, -25.917, -25.75, -25.17, 46.1758, 50.333, 49.583, -34.2971, 48.6, 39.5989, -29.67, 46.6461, 48.3511, 36.1883, 41.3331, 50.583, 49.667, 43.0864, 46.0331, 38.2122, 18.041, 40.3986, 41.3661, 37.1244, 38.3567, 49.4667, 40.9275, 53.2167, 40.6514, 53.8333, 53.8833, 54.05, 53.8833, 53.8833, 32.161, 54.2833, 54.3, 54.2833, 1.65, 44.3022, 60.033, 50.6833, 42.22, 37.72, 31.9633, 27.08, 21.3, -69.383, 34.3667, -10.2, 42.7342, -33.8193, 46.2014, 44.1667, 37.3997, 41.7219, 13.4, 42.05, 42.2897, 40.2458, 70.25, 52.567, 36.3092, 47.267, 49.8, 42.4, 29.08, 41.9, 57.8167, 49.7267, 47.8, 35.72, 27.92, 65.3667, 57.57, 61.8, 19.0333, 38.2725, 38.1833, 38.29, 38.2597, 15.683, 5.6, -45.4, 14.0667, 6.167, -22.5, -47.735, 15.217, 9.967, -41.433, 20.83, 9.75, 22.67, 45.85, -10.9, 48.6, -14.8, 44.9, 37.0556, 35.1842, 51.4167, 46.7603, 39.5, -22.68, 40.817, 61.8017, 33.8556, 9.967, -33.0, -53.0, -34.97, 20.25, -52.4, 26.9164, -35.367, 21.04, 28.96, 18.31, 53.0, 62.0911, 64.8667, 34.9858, 42.065, 57.0, 54.367, 32.3664, 40.9247, 8.033, 41.65, 20.0256, 61.5667, 21.3814, 47.2, -1.5, 36.27, 37.233, 63.9331, 38.417, 39.0, 39.224, -30.0, 42.8081, -30.12, 28.335, 31.15, 60.7167, 60.7167, 45.083, 38.15, 43.48, 67.55, 38.82, 36.067, 33.6, 40.4, 42.1, 21.95, 19.233, 47.383, 44.017, 27.95, 50.5667, 42.2167, 49.4, 34.2761, -34.0112, 38.5, 61.05, 33.665, 42.2667, 47.8667, 50.5333, 50.4333, 46.8, 46.8, -31.9, 50.6, 50.6, -42.0967, -17.883, 34.3447, 35.9167, 30.05, 53.0333, 53.0333, 53.0333, 53.0667, 30.251, 54.6167, 53.733, 47.8092, 47.9375, -26.6125, -13.27, 39.9367, 47.2236, 30.5497, 39.9058, 39.9733, 39.9369, 50.0167, -33.433, 39.0669, -32.783, 27.52, -31.5086, 32.0706, 30.7836, -0.1, -5.2, 13.7667, 34.133, 34.6, -41.2083, 28.967, 62.4, -4.22, 40.3667, -20.1883, -20.1824, 53.1, 48.3, 50.05, 42.7022, 46.8, -5.242, 52.4, 47.7467, 47.383, -31.18, 10.442, 29.626, 33.821, 42.5478, 34.78, -1.817, 52.4481, 40.6006, 45.8342, 50.3667, 46.7858, 48.55, 21.217, 47.91, 48.7333, 16.3, 22.3, 24.37, -10.05, 48.05, 35.7294, 35.8922, 35.7944, 45.7842, 36.5044, -34.67, 18.767, 45.1, 33.0114, 34.1508, 25.53, 25.53, 36.9, 60.33, 57.84, 28.28, 29.5439, 35.3692, 40.4333, 53.45, 53.4167, 22.63, 44.9892, 40.0892, 40.1697, -14.97, 16.77, 25.733, 31.2286, 62.8167, 40.3131, 65.9325, -29.2, -29.25, -27.617, 45.9717, 46.2, 47.8167, 44.115, 44.0433, 44.0728, 47.5, -21.203, 37.25, 39.0, 25.617, 46.5, 40.825, 49.6833, 16.983, 36.9194, 36.8864, 49.0667, 66.45, 61.1392, 61.1444, 47.22, 47.7333, 62.71, 63.3778, 50.25, 41.0319, 44.2167, -33.5803, 38.95, -31.0119, 41.8056, 49.65, 33.85, 26.7069, 46.6533, 48.9975, 51.5667, 47.2972, 20.7, 12.6336, 40.3814, 44.2961, 43.5658, 64.566, 66.9, 36.0686, 42.5242, 40.4269, 40.3667, 49.5833, 42.75, 75.3833, 63.82, 53.07, -8.05, -8.1255, 44.9086, -29.183, 40.1667, 43.245, -27.245, 40.5175, 44.8656, 44.2333, 45.3767, 34.0528, 44.2667, 44.2558, -21.9931, 32.7047, 48.8197, 49.6, 37.4767, 44.5483, 31.895, 40.1519, 45.0275, 39.9833, 43.5361, 40.0978, 52.3167, 52.1833, 38.8272, 40.7981, 40.7833, 47.3, 45.4667, 50.9333, 51.0667, 47.8881, 47.8769, 45.1769, 37.9, 41.0036, 44.6978, 39.4667, 41.4847, 36.71, 45.7125, 36.7, 32.4219, 29.9667, 44.6833, 52.4167, 40.3575, 44.6103, 43.5231, 43.7, 33.6, 39.0633, 28.3, 28.3294, 49.0433, 38.07, 44.7, 50.4, 50.4667, 50.4333, 50.5167, 50.4333, 50.4167, 47.68, 36.3825, 60.685, 49.3, 47.6758, 32.32, 47.0622, 47.7167, 58.45, 46.6, 61.1592, 61.183, -0.892, 54.2892, 38.0406, 45.4833, -0.43, 11.75, -34.1711, 48.0667, 59.1332, 41.33, 42.5667, 39.4839, 39.5333, 40.9239, 38.567, 48.6469, 66.5167, 21.43, -22.483, 30.0564, 33.7158, -27.45, 74.7167, 74.7167, 49.55, 46.1222, 48.77, 48.75, 41.1494, 50.9667, 50.9667, 50.95, 43.8083, 46.6667, 35.6256, -14.3, 63.817, 64.1331, 43.2064, 56.533, 48.6708, 52.3, 47.5633, 48.9733, 50.0333, 45.5986, 36.4, 57.0139, -11.0, 45.4164, 34.0608, 40.0261, -28.78, 46.8886, 37.2633, 43.0528, 38.7619, 44.7656, 46.3119, 37.0947, 43.3314, 37.9192, 41.9064, 45.6333, 43.8833, 43.8667, 37.505, 49.1667, 49.1833, -20.7289, -33.6022, 39.8544, 31.3656, 38.15, 38.2061, 37.7131, 59.81, 50.333, 42.9506, 45.2142, 32.5333, 42.45, 42.45, 42.45, 43.05, 45.5022, 38.15, 41.4197, 50.7167, 48.217, -29.12, 39.5447, 39.5122, 44.1, 56.9625, 45.5, 45.4239, 32.13, 45.3331, 45.22, -23.12, 68.43, 59.18, 44.02, 48.45, 51.117, 18.3375, 35.6, 57.25, -23.8289, 47.2489, -1.67, -9.967, -39.017, -33.085, -22.917, -51.617, -53.778, -32.017, 26.3769, 37.7219, -17.8, 21.933, 34.7397, 35.7178, 38.8172, 38.7872, 45.8783, 40.1167, 60.18, 32.0817, 58.917, 67.73, 47.1175, -24.167, 11.4167, -30.8967, 41.15, 47.4981, 40.9619, 43.4508, 33.9669, 33.9511, 43.0308, 45.8, 44.8542, 45.6, -28.45, 50.2833, 47.0, 47.4333, 45.7, 47.8, 48.25, 48.2167, 51.2167, 50.3, 46.9833, -34.15, 50.583, 45.979, 24.7, 24.9, 41.0331, 35.38, 54.6, 40.8667, 50.4833, 36.4783, 37.3169, 43.9, 63.81, 53.2333, 49.5, 19.3, 30.5653, -33.8, 65.1, 19.25, 31.8836, 48.5167, 7.133, -37.1628, 7.1, 36.4706, 51.2333, -18.317, 27.7894, 50.4667, 44.0531, -34.483, 4.833, 41.9117, 43.6056, 41.0664, 41.785, 43.8578, 37.2167, 43.1167, 43.9042, 44.0667, 51.8, 29.7286, 46.3667, 32.8711, 42.1928, -23.3753, 28.0286, 42.65, 30.0239, 39.7594, 39.1008, 43.3636, 42.3969, 35.8361, 40.4333, 38.0392, 49.5667, 36.9769, 52.3833, 52.4333, 35.8936, 40.55, 42.5475, 41.5181, 33.1581, 51.15, 43.43, 43.9833, 46.8203, 41.5944, 40.5514, 50.8667, 25.18, 52.5, 65.31, -19.683, -20.7767, 55.183, 50.6417, 36.4161, 45.4169, 47.19, 50.3831, 33.8103, 49.017, 16.05, 49.4167, 48.8811, 37.9572, -24.4619, 32.8978, 53.2, 57.5, 41.7831, -26.5719, 41.95, 12.58, 34.2453, 42.8592, 39.3389, 50.767, 54.085, 53.8833, 45.82, 25.97, 55.1, 65.04, -26.13, 33.6731, 40.2878, 18.255, -14.7356, 58.06, 61.13, 51.4333, 62.5669, 47.2325, -32.904, 28.63, 32.4481, 45.4525, 48.8486, -41.7772, 38.4506, 43.2131, 33.85, 49.1833, -34.5519, 44.7178, 47.8758, 30.9461, 51.6167, 51.5167, 43.35, 43.7833, -34.5267, 42.2033, 44.7511, 37.4747, 44.1, 53.933, 55.75, 50.6667, 49.0833, 52.25, 16.5, 54.85, 48.7272, 51.9108, 61.9667, 63.24, 61.39, 54.1817, 51.9, 57.2, 47.25, 67.525, 33.3075, 36.6389, 32.8556, 36.65, 53.1303, 49.218, 51.8067, 49.3856, -67.567, 46.4808, 48.4714, 51.9606, -32.0069, -32.0089, 48.1819, -12.5, 45.4333, 37.6178, 46.4414, 42.3414, 49.85, 43.85, 48.2167, 66.9167, 66.5789, 66.4981, 45.89, 45.08, 35.7, 39.3419, 36.3464, 35.945, 38.7153, 25.3867, 46.05, 47.6167, 47.4869, -37.8, 51.5, -37.3389, 40.2022, 42.2231, 52.5833, 44.4, 50.833, 48.9375, 46.2964, 48.3542, 54.095, 33.3678, 24.02, 44.55, 44.5308, 43.95, -17.917, 33.33, 33.583, 61.3667, 39.033, 60.4217, 60.3667, 60.4331, 42.6042, 49.6478, -14.47, 37.95, 39.6042, 40.1347, 38.8611, 31.8092, 44.2333, 32.4, 45.2667, 50.7667, 36.855, 34.51, 38.8761, 38.9117, 61.7833, 53.78, 76.183, 77.2, 70.4003, -29.27, 32.5344, 33.03, 48.8033, 39.2764, -36.1047, 44.9333, 51.85, 43.6253, 56.4833, 38.8417, 52.817, 50.101, 42.467, 58.1, 37.9, 46.5333, 45.2172, 40.4661, 58.3831, 51.57, 55.49, 38.15, 50.1167, 56.267, 48.6167, 49.2142, 19.05, 39.9, 42.52, 27.87, 32.3111, 43.9333, 43.9333, 45.2167, 58.02, 36.2, 33.0722, 48.9578, 72.0, 72.0, 45.85, 45.9, 21.56, 43.5, 48.4661, 38.5556, 38.5069, 38.5667, 38.6667, 38.6956, 46.1333, 42.4194, 45.5333, 45.7, 42.15, 47.25, 59.14, 32.815, 32.3, 33.267, 23.85, 39.4317, 41.8667, 43.5097, 36.25, 43.45, 43.5331, 58.3333, 37.0, 38.0858, 29.05, 34.867, 36.2, 10.8, 45.45, 60.317, 44.9, 43.9517, 34.1736, 34.3703, 43.3, 45.726, 39.7675, 3.883, 38.5067, 45.8489, 50.0392, 47.315, 34.5172, 43.0114, 44.42, 45.3167, 28.3378, 16.051, 47.3164, 37.8333, 38.1642, 46.8667, 41.2078, 49.82, 47.3036, 23.067, 35.55, 38.9, 17.15, 57.667, 59.9, 10.451, 17.039, 40.9592, 40.9564, 64.4942, 48.7842, 56.683, 34.051, 66.5294, 37.6331, 38.6158, 38.6453, 43.1667, 34.9444, 44.905, 61.17, 38.5328, 38.5333, 38.5, 38.9594, -16.15, -2.2, 36.6594, 36.6636, 38.9139, 40.51, 16.167, 38.8, 27.45, 35.6836, 38.365, 39.4247, 35.6967, 38.3406, 66.8208, 67.3667, 67.7475, 35.4572, 31.55, 47.2667, 50.7, 50.7, 50.6833, -32.9869, 44.9333, 45.15, 45.1875, 48.6667, 66.8125, 29.1, 43.6333, 60.3733, 60.3239, 40.7667, -24.85, 66.8483, 43.75, 25.367, 25.4272, 25.45, -31.433, -24.033, 48.8167, 48.8833, 43.6, 44.0444, 31.7456, 40.7781, 40.7708, 42.5167, 38.5006, 33.9978, -13.017, 47.8, 52.0367, 52.8581, 45.4, 31.35, 19.2, 36.1, 53.25, 18.02, 39.5667, 57.35, -14.279, 36.4528, 37.37, -4.083, 46.5331, -27.3617, 41.817, 37.7, 41.283, 42.1831, 31.0619, 13.333, -70.3, 24.8, 35.247, 43.1792, 38.1917, 35.42, 19.22, 21.933, 5.9, 61.7881, 41.52, 57.0, 34.7436, 50.3531, 35.2239, 30.1414, 32.9744, 35.1667, 55.39, 59.29, 20.85, 34.1419, 35.2106, 50.7, 48.2942, 53.25, 53.25, 53.25, 41.1167, 41.45, 43.4194, 55.2831, -24.7298, 44.4667, 40.4633, 46.7953, 38.1, 41.4667, 34.2878, 55.3167, 28.8147, 43.4569, 35.5347, 63.967, -5.85, 29.4, 16.53, 35.594, -31.37, 55.64, 49.5033, 37.094, -33.68, 26.97, -30.83, 43.4644, 43.4917, 43.4292, 39.9578, 39.24, -2.433, 42.7, -13.72, 13.967, 33.7442, 34.4167, 34.4258, 22.43, -17.8, 36.9906, -10.7, -50.2, 4.6, 4.6, 35.6833, 35.6194, 20.2, 23.48, 34.95, 36.971, 39.817, -21.96, 34.8994, 34.0075, 34.3119, 48.9833, 31.7625, 34.9358, 38.4381, 27.3, 26.2656, -36.567, 14.7833, 19.45, -33.5, 45.5458, -27.767, 42.8878, 20.03, 20.05, 13.4833, 21.81, 7.069, 23.45, 44.4333, 44.4167, -21.53, 18.433, 44.5456, 31.55, 34.635, 18.217, 39.7, 29.98, 12.6, 12.583, 31.3711, 12.1167, 29.5253, 7.841, 29.5442, 29.3833, -40.783, 29.4508, 18.03, 23.71, 34.1344, 21.53, -14.87, 28.78, -41.151, 33.1819, 33.0233, -0.917, 7.8, 18.4, 21.47, 32.7336, 32.8667, 32.7167, -24.667, 23.15, 7.68, 24.85, 7.9, 37.7706, 37.6197, 37.7281, 34.1061, 37.3117, 48.8333, 27.3, 27.26, -16.367, 15.73, 23.21, 33.7869, 19.82, -13.067, 35.1086, 9.9333, 37.3497, 10.0, 23.05, 26.48, -31.571, -15.383, 25.55, -31.5, -26.667, -25.8, 17.46, 18.8, 18.4325, 22.17, -49.307, 45.035, 18.13, -33.273, 0.862, 37.1953, 37.0533, 35.3056, 22.2075, 17.29, 32.6014, 29.8833, 43.9375, -33.083, 35.3333, 44.1944, 21.05, 33.25, -2.25, 33.0956, 4.747, 17.92, 29.28, 23.91, 21.98, -34.588, 37.9983, 28.58, 31.1833, 13.7, 13.7, 43.3075, 18.3469, 43.3606, 32.2714, 32.1667, -22.017, -6.6333, -0.133, -6.75, -22.1, -2.533, -28.4, -18.7, -23.5, -23.617, -21.483, -20.91, 31.3972, 48.0667, 43.067, 58.367, 36.5331, 43.8667, 43.82, 64.28, 56.47, 46.017, 41.4528, 43.0333, 51.5667, 49.0833, 55.6, 32.05, 9.15, 9.3, 58.7605, 40.3, 38.517, 41.2, 38.4, 45.0839, 61.71, 43.0, 43.0, 42.92, 51.479, 39.733, 31.4831, 33.167, 52.1167, 52.1167, 52.1667, 52.15, 52.1167, 71.97, 4.95, 4.95, 47.3667, -24.4, 58.4356, 58.44, 62.6167, 67.5, 22.72, 24.567, 12.683, 6.6536, 48.7833, 48.7833, 45.9481, 47.717, -31.7, 30.6264, 59.6483, 48.55, 46.4867, 46.5333, 46.4833, 46.4794, -7.983, 47.4536, 46.4667, 39.51, -41.4892, 35.1525, 32.13, 16.55, 7.98, 8.032, 57.7667, 39.6361, 57.83, 61.9458, 63.6936, 67.2853, 41.3011, 45.3667, 46.4858, 19.233, 45.4, -41.4639, 53.3, 40.9833, 43.7667, 49.9203, 47.68, 54.8, 54.8, 54.8, 42.8333, 51.9131, 51.7667, 52.3156, 54.5289, 49.7458, 53.6631, 49.4231, 47.33, 45.0, 50.3, 47.2, 39.0167, 52.38, 47.6469, 50.4939, 51.8381, 50.3167, 48.7778, 49.0828, 49.3289, 47.5778, 50.0583, 48.3667, -79.9, 53.6442, 54.5181, 37.5, 14.633, 39.2453, 48.7833, 48.8306, 39.7167, 39.7858, 39.6842, 45.4833, -32.0458, -32.0632, -37.871, 37.65, 51.5833, 40.4831, 52.3833, 46.5, 41.8706, 34.6736, 38.6886, 33.4667, -41.1708, 36.7458, 44.9469, 52.3667, 38.4747, 39.4872, 29.7714, 44.65, 47.45, 35.4661, 35.2683, 42.8667, 45.7167, 45.9869, 47.5303, 47.7333, 47.6872, 47.4444, 47.65, 47.65, 19.1336, 27.02, 40.3, 45.1833, 47.271, -26.5, 38.6753, 37.1317, 52.7833, 40.8592, 42.5333, 50.1167, 34.8956, 48.4958, 23.593, 52.9, 39.3167, 47.2142, 51.9056, 38.2, 64.0, 63.767, 46.4331, 13.4, 40.9478, 40.9478, 62.9367, 45.5167, 62.9167, 50.433, 66.25, 63.2, 45.51, 38.0, 42.4075, 53.133, 47.867, 35.3322, 36.5419, 35.1333, 40.7831, 50.1667, 32.4111, 35.1647, 44.4403, 51.4167, -6.967, 50.4167, 52.183, 50.867, 42.1569, 32.7131, 35.2317, 50.35, 54.1, 35.591, 50.633, -29.83, 42.317, 38.267, 44.1383, 39.9222, 38.3333, 46.2833, 13.55, 48.3333, 54.817, 16.667, 12.534, -2.6, -24.27, 37.567, 37.55, -1.268, 50.2167, 50.2167, 50.2167, 48.0833, 48.085, 49.567, -6.117, 51.1667, 47.017, -15.883, 53.9, 59.6, -11.63, 32.28, 32.42, -1.867, 44.2319, 40.9586, 43.3981, -19.467, 36.18, 36.178, 42.6833, -24.1542, 41.7, 65.9383, -29.23, 56.35, 60.38, 50.68, 39.12, 35.9297, 39.35, 37.4167, 37.37, 46.0, 53.7667, 40.8997, 60.3539, 60.1883, 60.1283, 52.8833, 42.6003, 70.167, -4.667, 37.4, 38.9822, 33.6325, 51.25, 34.7167, 34.72, 17.88, 37.317, 38.433, 56.08, 43.73, 32.7997, 28.284, 34.346, 32.297, 39.07, 39.567, 36.4167, 22.25, 37.53, 39.1614, -18.367, 50.7333, 73.18, 50.1833, 35.215, 21.73, 31.4, 31.167, 46.5667, 45.217, 52.702, -42.05, 23.4, 44.4, 22.783, 24.667, 27.33, 27.23, 55.367, 25.333, 47.5983, 38.8961, 17.467, 40.7142, 49.65, 44.7631, 52.798, 46.5667, 48.65, 45.6167, 39.55, 44.6333, 43.1211, 43.75, 45.9667, 46.1833, 37.715, 43.2167, -41.3831, 30.6886, 53.381, 45.1333, 39.6828, 43.7167, 44.0833, 38.2, 39.4078, 39.5283, 35.4922, 35.3253, 48.55, 43.1808, 60.72, 44.5478, 44.5, 40.0331, 47.2, 52.7167, 40.7672, 16.7, 30.73, 29.6, 62.1, 41.733, 22.55, 41.7167, 50.17, 68.8167, 45.4333, 45.4333, 42.6772, 34.3019, 44.7694, 44.8406, 44.8167, 33.7033, 46.95, 33.77, 47.8333, 38.033, 51.867, 39.4667, 25.6, 32.717, 31.1, 33.95, 68.95, -23.1, 53.85, 38.75, 33.45, 40.0589, 36.795, 48.45, 29.2, 57.0, 52.75, 50.0, 32.18, 32.5, 37.667, 37.133, 29.533, 42.3703, 43.217, 34.983, 42.1, 38.5528, 17.667, 38.8, 47.5319, 50.833, 44.9667, 42.9383, 38.9161, 45.3767, 45.4, 34.2639, 32.4506, 32.5, 30.5667, 43.2667, 38.0, 29.3333, 42.317, 40.3944, 55.9331, 51.4833, -3.68, 45.8, 43.4047, 1.6, 1.55, 2.262, 50.85, 35.18, 33.068, 47.7283, 40.7361, 40.2706, 40.3167, 41.2294, 41.1014, 66.5997, 62.38, 52.25, 50.8544, 39.5833, 31.1831, 39.5678, 31.5553, 48.0728, 47.5783, 47.5667, 32.9167, 38.6319, -60.7083, 37.4, 41.3328, 11.43, 38.85, 68.7553, 64.6833, 63.0081, 37.917, 63.62, 11.35, 36.8775, 41.2, 35.7606, 36.3697, 60.88, 33.5636, 36.1667, 37.7617, 34.4722, 37.8089, 45.0058, 42.8589, 43.0022, 42.95, 50.55, 33.3667, 44.8728, 40.6008, 43.1244, 42.75, -25.24, 51.983, 22.767, 39.1, 42.85, 44.7, 45.0167, 49.3333, 49.35, 56.72, 50.0017, 35.1167, 17.13, 54.4167, 58.08, 58.78, 11.12, 10.603, 48.9981, 55.54, 41.075, 46.85, 27.95, 28.33, 1.3, 1.35, 56.74, -32.6133, 60.16, 38.5, 42.033, 40.03, 28.0353, 40.1, 46.9167, 53.8833, 46.2167, 42.3964, 42.3914, 43.0558, 43.5878, 50.1167, 42.8931, 2.033, 43.183, 27.13, 54.5, 58.8875, 31.2, 45.48, -27.78, 66.9167, 45.6656, 44.2842, 4.217, 57.0481, 57.05, 56.55, 20.133, 39.75, 39.75, 37.8, 39.5, 29.2, 43.2667, -8.35, 57.733, 63.1883, 46.25, 65.8667, 45.6228, 58.4, 58.49, 56.84, 53.1467, 64.62, 36.933, 68.2883, 65.2019, 62.5, 42.0, 41.97, 58.39, 54.0, 68.1503, 59.15, -24.983, 45.3367, 61.9772, 38.9, 59.3117, 62.7089, 50.2917, 59.9081, 55.3, 55.3, 52.97, 53.45, 45.17, 48.7167, 51.5, 71.0839, 48.65, 30.265, 44.4625, 42.0167, 41.0558, 42.67, 34.7833, 46.3, 52.35, 42.5667, 37.9833, 53.0, 53.03, 46.5, 44.3667, 48.62, 54.8333, 54.8167, 35.5164, 44.0833, 37.1644, 40.7833, 44.9, -40.8492, 30.0067, 34.4678, 35.9419, 38.8822, 30.2, 39.7772, 34.1158, 58.36, 38.7839, 40.6044, 53.3667, 50.0667, 63.4194, 54.75, 55.34, 46.8367, 40.5453, 44.1333, 45.0997, 58.97, 42.4667, 50.7333, 47.5414, 39.0403, 40.55, 34.5081, 34.5, 38.3989, 62.0303, -33.7844, 41.9667, 38.2364, 32.71, 16.75, 54.3, -3.7, 34.0828, 67.3678, 67.25, 67.8206, 68.0839, 39.56, 42.6514, 59.75, 61.27, 59.19, 43.2078, -6.126, 52.1256, 42.695, 52.27, 61.5644, 33.23, 31.883, 24.467, 67.9, 38.25, 8.98, 58.8842, -13.85, 43.4833, 39.9286, 49.2, 39.0, 51.1408, 56.2, 63.17, 54.033, 38.3197, 51.63, 46.3575, 49.9, 53.0, 45.7831, 23.633, 49.45, 37.1167, -32.732, -34.08, 40.6153, 30.3367, 41.39, 52.6167, 42.95, 67.0167, -10.667, 39.383, 7.2, 32.65, 33.38, 47.05, 50.3756, 45.3242, 52.3167, 38.2994, 30.5831, 37.9672, 38.3167, 36.23, 71.875, 47.6833, 49.7667, 46.0333, 41.775, 61.887, -23.48, 52.4, -0.933, 50.8833, 65.54, 61.7167, 36.77, 51.15, 53.1, 52.53, 46.533, 63.65, 43.58, 23.767, 20.6, 35.4831, 35.5333, 36.283, 36.712, 62.5333, -0.73, 46.3667, 49.65, 44.5, 50.8982, -31.2319, 33.9947, -27.9832, 44.6, 45.5833, 41.7072, 36.6953, 45.1994, 49.0167, 41.3333, 45.6333, 42.4014, 44.6264, -17.6053, 19.0825, 38.8983, 44.0725, 44.9667, 42.7667, 42.5667, 42.4667, 48.75, 33.3814, 45.8333, 47.5619, 49.4667, 47.5833, 54.9333, -30.9225, 42.15, 55.08, 49.0, 37.5122, 40.0797, 33.9153, 39.5558, 61.1, 43.9364, 34.9078, 38.1167, 44.9083, 35.9067, 49.75, 49.75, 36.3894, 44.5139, 36.1981, 25.52, 38.8008, 39.2836, 43.1653, 42.25, 46.1833, 50.4167, 69.5333, 40.4725, 40.2472, 50.9167, 57.57, 53.3667, 46.2667, 55.7833, 43.5167, 43.53, 47.6667, 47.6831, 47.6217, 52.1833, 45.8236, 47.3, 49.0167, 42.4306, 51.1, -29.667, 49.5, 49.45, 36.3628, 34.1311, 37.2353, 42.1, 44.6667, 45.4, 44.2469, 37.3694, 39.8447, 36.4711, 39.9667, 42.9167, -24.123, 42.8222, -37.0748, 42.5333, 38.0406, 38.6833, 40.4403, 49.65, 37.7, 33.4792, 38.25, 46.7833, 49.7, 49.7833, 49.7333, 49.7, 49.9, 47.8833, 43.4869, 32.9083, 42.0667, 46.55, 67.45, 62.45, 55.87, 55.43, 59.2, 44.9667, 52.2331, 24.3, 34.083, 58.97, 37.2714, 59.95, 46.0556, 32.9403, 41.1247, 47.2767, 47.2833, 33.3667, -26.92, 43.9822, 47.1547, 46.4167, -51.7, 44.2206, 44.9589, 35.1767, 48.4564, 44.9528, 45.0167, 51.88, -28.6617, 41.9564, 34.1667, 41.4581, 41.4167, 58.0, 49.7333, 56.5, 29.9333, 49.283, 44.2667, 46.5, 47.8664, 51.3, 33.9333, 35.9247, 42.15, 35.81, 40.7933, 32.2822, 33.4692, 81.6, 38.1692, 60.7333, 58.9569, 49.2333, 45.05, 59.3, -37.0717, 44.7892, 28.4631, 18.25, 39.6253, 40.4883, 36.6736, 46.8947, 38.0053, 40.9167, 51.45, 47.688, 39.9714, 55.9, 48.3508, 50.2892, 49.5333, 29.7236, 65.0667, 55.66, 44.2661, 45.3903, 32.2314, 48.5333, 75.42, 38.2144, 40.6278, 31.8347, 38.9764, 53.5994, 52.3333, 40.3764, 41.4039, 46.5136, 47.7333, 47.7372, 44.5114, 44.7344, 55.9333, 63.3833, 33.5575, 50.6, 46.05, 49.1333, 47.0333, 45.4333, 46.5833, 46.85, 46.2, 46.85, 45.6667, 46.8167, 45.1667, 46.6167, 45.5167, 46.75, 46.7833, 46.4833, 45.5, 49.75, 46.4167, 46.7333, 45.6167, 45.2167, 47.05, 47.5667, 48.4, 45.65, 16.72, 43.8667, 51.6692, 48.62, 31.0372, 45.0417, 36.1175, 40.2333, 43.9, 45.15, 35.8953, 46.8536, 41.75, -35.0, 60.46, 47.86, 42.3, 59.35, 59.3533, 42.3997, 37.6967, 37.9994, 37.8892, 16.33, 4.35, 59.2333, 33.4311, 50.1167, 36.9742, 39.5861, 50.1167, -38.3833, 59.25, 57.29, 57.15, 67.5, 63.97, 65.51, 63.6, 61.17, 66.7667, 63.28, 63.3028, 42.6469, 58.33, 58.2, 65.7, 41.795, 62.8, 48.6667, 43.9667, 42.9108, 40.1, 59.95, 51.103, -42.155, -42.1558, 59.4, 51.0667, 48.55, 36.4414, 43.3833, 43.3667, -35.256, -36.8472, 50.4, -42.7681, 51.1, 42.95, 39.3047, 48.7833, 42.1, 40.1833, 42.1894, 39.5631, -32.7963, 46.7153, 58.083, 61.7, 42.0167, 63.85, 39.4344, 41.0125, 27.1897, 36.6364, 52.3667, 37.4833, 44.8797, 55.54, 48.6833, 48.7703, 34.4744, 48.8292, -33.517, 65.0733, 55.917, 46.7167, 47.8667, 44.8592, 45.2833, 46.5333, 47.9833, 49.45, 45.6667, 48.5667, 45.0833, 45.1333, 51.3667, 51.3833, -36.6189, 47.95, 44.07, 46.7333, 29.8858, 45.5667, 46.05, 29.8722, 45.7, 45.0833, -16.45, 47.45, 46.4833, 45.6667, 47.3667, 43.2, 43.2, 43.1167, 38.6856, 46.35, 38.8147, 48.3333, 47.9167, 45.3833, 45.5433, 45.55, 48.6333, 46.2833, 46.05, 45.4117, 47.2, -20.887, 48.63, 46.3167, 51.9833, 47.4833, 48.1833, 46.0667, 46.1167, 46.1, 47.1167, 46.4833, 45.9667, 45.6667, 46.9833, 48.4833, 46.3, 47.4331, 45.8667, 37.1069, 45.1333, 46.15, -28.0489, -28.0361, 45.9156, 45.8833, 48.05, -15.933, -41.3225, 45.8667, 47.6, 45.9833, 45.5667, 45.8489, 45.2667, 45.95, 45.6911, 43.9903, 45.7333, 46.7167, 48.8833, 46.9167, 45.8, 47.0933, 47.6167, 47.5667, 47.5167, 31.9497, 46.9167, 39.7736, 46.2667, 5.5, -22.3472, 46.9167, -22.3458, 45.4, 47.15, 48.6667, 54.3, 45.85, 52.9167, 38.75, 38.7525, 38.6292, 38.6572, 38.6333, -28.18, 45.75, 46.55, 45.2, 44.7, 30.1, 48.7383, 46.9167, 62.0528, 48.7375, 46.5833, 45.35, 50.4367, 46.6833, 47.85, 46.5333, 45.7333, 46.35, 46.9667, 44.9461, 46.4167, 57.1553, 44.3222, 27.7628, 59.9667, 27.7628, 38.7556, 54.333, 46.6667, 46.763, 46.25, -21.333, 45.55, 48.183, 48.6167, 46.2167, 46.8167, 45.2833, 48.6833, 45.7667, 46.3333, 46.6333, 47.85, 45.2167, 45.9333, 42.7667, 46.7333, 47.15, 50.8, 47.5667, 46.1667, 42.7, 46.1167, 46.6167, 46.0667, 35.3028, 37.4414, 52.95, -19.03, 46.6333, 46.6333, 65.9, 41.1128, 50.2667, 36.7297, 43.6728, 39.2494, 29.6219, 34.6167, 52.567, 68.62, 50.2, 54.1, 56.5, 42.867, 26.33, 44.383, 30.5, 41.17, 32.917, 63.8467, 35.55, 42.4, 45.8478, 63.85, 59.4617, 51.35, 45.1667, 32.76, 33.1481, 37.9, 3.131, 5.524, 6.167, -2.898, 0.461, 49.1167, -8.489, 59.883, 55.233, 49.5667, 46.4333, 37.1397, 38.22, 45.1167, 33.0367, 42.9592, 36.8861, 45.3036, 43.45, 42.2322, 39.7167, 34.6033, 34.333, 33.9364, 33.9667, 50.85, 50.88, 48.8869, 44.4122, 51.9667, 62.41, 62.5244, 62.43, 35.07, 62.675, 39.5667, 46.3236, 47.8667, 38.4231, 39.5517, 35.9667, 36.2, 33.9733, 35.3694, 44.0761, 62.15, 43.6, 52.45, 49.433, 33.7156, 47.4775, 69.5881, 60.4, 64.9025, -0.151, 36.2, 33.3003, 46.7, 47.1928, 40.0314, 14.467, 40.45, 22.533, 63.6, -7.217, -7.38, -7.217, -27.159, 21.2, 9.117, 61.25, 9.8, 14.883, 41.1042, 46.1, 31.7078, 49.1, 49.1333, 42.9967, -7.83, 42.15, 40.4167, 65.5117, 0.064, 55.2833, 45.7167, 41.2214, 62.78, 39.9508, -32.38, 45.0667, 61.7139, 52.8361, 45.15, 38.6611, 42.8, 50.1, 36.05, 54.1333, 78.25, 55.93, 67.65, 58.57, 77.8831, 62.0192, 62.05, 59.4442, 56.8, 45.35, 55.1, 43.617, 44.8, 62.3292, 51.45, 68.2453, 49.735, 68.15, 32.5806, 50.6139, 32.7333, 35.5733, -42.1236, 43.2436, -35.3406, -40.7292, 17.4, -40.7314, 47.9161, 52.05, 52.1167, 43.4372, 43.4022, 43.6167, 48.9972, 38.9664, 47.8833, 50.3, 50.3, 50.2667, 60.0, 53.9167, -3.442, 41.7644, 46.1667, -33.9465, 46.1667, -33.8607, -34.0, 63.38, 61.6667, 33.2053, 63.04, 24.9, 44.4833, 44.4667, 60.35, -69.0, 40.6661, 43.05, 37.9928, 43.1111, 40.817, 61.3, 65.0, 53.4, 46.25, 46.9167, 47.1667, 47.2667, 46.4667, 46.0833, -28.283, 0.3833, 46.75, 37.067, 36.95, 49.8, 45.7167, 6.58, -5.083, 4.42, 38.08, 28.365, -28.7551, 46.73, 11.3, -18.0, 32.7225, 47.2472, 47.25, 47.15, 38.3422, -31.7, 34.283, 48.15, 36.33, 35.9, 37.68, 36.3, 3.78, 62.2333, -14.3333, 47.2, 9.664, -12.4, -12.3, 40.3, -17.55, 35.9369, 61.8167, 39.1678, 39.1667, 33.1714, 14.9, 46.6014, 53.6167, 25.033, 24.2, 21.483, -39.7, 46.4, 23.0, 49.05, 27.0, 65.5831, 37.783, 36.25, 56.07, 60.68, 35.5, 55.95, 16.883, 37.1, 34.317, -14.483, 36.15, 60.95, 61.0267, 56.38, 8.85, 53.8667, 42.517, 32.6875, 49.25, 62.32, 33.4164, 30.3975, 30.3961, 59.3831, 32.3994, 36.0381, 59.77, 69.55, 22.8, 46.9589, 13.767, 52.7331, -24.8819, 41.7331, 25.7608, 27.95, 27.7053, 27.9619, 61.4667, 22.2, 43.9, -31.0867, 38.3167, -6.1, 65.1667, 65.1744, 34.2069, -37.237, 30.733, -5.083, 35.7297, 35.78, 37.8283, 39.85, 39.67, 55.383, 51.567, -2.8, -19.455, 50.6394, 21.82, 10.82, -25.033, 36.3906, 25.05, 14.917, 35.4478, 44.5167, 56.9, -34.4048, -6.5, -8.16, 1.35, 1.4, 42.85, -44.517, 35.8847, -30.7111, -31.8986, 3.2, 49.567, 36.0153, -21.55, 40.4344, 64.92, 50.03, -25.6408, 28.1522, -42.3003, 58.3, 46.5, 48.6667, 57.2, 41.27, 65.5997, 54.85, 44.8, 52.8, 52.7667, 49.0, 62.9, 55.2, 36.05, 34.983, 51.6667, 33.2422, -36.4378, 38.52, -6.0, 41.9003, 48.25, 25.0069, 38.7, 37.1167, 39.6, 4.313, 4.3, 14.0333, 30.57, 41.2333, 45.0333, 38.8183, 38.9078, 45.1017, 25.8, 36.465, 67.47, 41.68, 41.75, -2.92, 44.9044, 35.42, 18.91, 40.3544, 37.383, 36.9233, 37.3, -6.85, 63.95, 60.47, 60.167, 14.05, 35.1333, 35.683, 18.5, 64.6831, 23.779, 28.73, 35.0233, 41.7767, 20.2, 40.983, 41.933, 57.9, 37.2, -21.7125, 37.9492, 37.9531, -5.3, 32.1, 18.25, 9.017, -0.485, 49.15, -34.4061, 28.95, 33.4333, 33.4258, 37.6833, 31.0781, 36.03, -38.75, 28.4775, 28.0475, 25.117, -13.536, -26.841, -9.15, -64.97, -19.6423, 68.7333, 67.302, 47.1667, 43.8111, 44.0647, -29.0479, 19.38, -17.85, 20.82, 44.7833, 25.35, 21.52, 39.8, -5.083, -5.05, -22.41, 52.07, 69.2, 37.2294, 42.467, 42.0, 40.8667, 45.0, 49.533, 73.55, 54.4667, 48.8, 54.5, 39.4467, 48.55, 39.45, 39.4708, -22.4518, 46.7939, 47.07, 40.3494, 60.1667, 60.1667, 60.1667, 20.2, -16.183, 19.93, 40.85, 50.7, 53.7625, 50.7, 43.8564, 58.65, 35.58, 57.517, -26.3919, -41.2314, 49.7, 33.4367, 33.4536, -28.8544, 41.8017, -29.15, 19.82, 19.87, 26.617, -21.1642, 45.0331, 46.533, -24.62, 35.55, -27.9867, -27.9978, 40.6167, 15.3167, 19.1167, 43.1833, 44.2814, 46.7994, 43.65, 43.7231, -25.93, 40.62, 40.5, 46.1, 45.6069, 45.6194, 53.8167, 53.9667, 43.2644, 29.7547, 48.1331, 14.8, 41.7197, 8.483, 49.483, 32.9028, 31.9172, 30.9139, 38.9667, 29.4822, 55.8, 47.5933, 14.75, 35.4167, 48.2211, 44.5667, 32.9206, 54.925, -36.4917, -36.5031, 42.0833, 44.15, 45.1219, -25.1256, 41.93, 36.465, 33.1806, 76.55, 76.5167, 44.3667, 17.666, 48.5167, 48.3667, 48.3667, 48.4167, 48.4, -10.5853, 45.6, 56.7, 39.1, 30.35, 34.583, 41.883, 4.35, 48.31, -29.4448, -29.4345, 8.65, -35.4408, 44.4122, 47.9667, 18.567, 18.57, 36.7664, 41.1167, 31.4461, 38.4461, 46.95, 45.85, 20.23, 59.7, 40.633, 71.58, 28.4114, 33.9, 14.22, 45.4539, 38.65, -15.6614, 44.0333, 45.4283, 29.237, 45.7667, 48.5667, 48.55, 48.5667, 43.2433, 50.7, 40.4447, 40.4333, -14.5229, 27.7, -9.133, 28.63, 65.5667, 48.3989, 41.8975, 41.4792, 41.7797, 44.6667, 40.2233, 41.3331, 41.415, 38.1, 56.499, 49.8589, 56.32, 10.767, 24.293, 41.2667, 55.75, 28.6242, 41.63, 48.6, 46.35, 56.533, 55.867, 20.98, 53.5, 58.85, -18.117, 45.25, 52.683, 58.15, 32.1, 41.1386, 34.5786, 9.05, -35.817, 57.6, 23.43, 47.73, 53.55, 49.0833, 55.233, 53.467, 43.75, 62.235, 63.3336, 18.43, 40.3, 43.275, 43.2397, 42.833, 56.28, 41.833, 34.067, 35.683, 39.8844, 42.0356, 31.175, 41.65, 41.5886, 46.4833, 39.8608, 41.5667, 43.7, -23.383, 1.017, 63.98, 19.283, 37.8667, 42.617, 38.5, 16.717, 31.7119, 58.95, 55.117, 47.7833, 50.05, 63.95, 56.5, 39.95, 48.7806, 26.17, 34.87, 35.27, 45.967, 41.68, 43.6, 28.13, 46.3, 28.58, 33.4203, 38.0511, 61.6511, 40.5353, -37.572, -21.0344, 52.47, -27.5836, 38.6944, 38.7456, 39.0722, 38.9503, 39.0725, 54.8167, 35.2667, 45.88, 45.033, 45.0, 68.22, 31.4028, 43.6667, 43.8667, 43.6667, 43.75, 43.7667, 43.6333, 43.65, 37.7417, 43.6833, 43.8, 43.8167, 43.8, 43.6833, 56.48, 59.1842, 34.35, 33.8017, 40.4833, 21.5167, 25.568, 35.7992, -29.35, 37.9769, 42.0803, 60.14, 62.017, 70.2456, 40.8206, 40.3, 53.05, 58.3831, 56.9631, 48.733, 48.7, 46.1667, 41.0, -23.1, 20.55, 35.483, 59.97, 27.838, 46.1167, 33.12, 43.1, -33.35, 57.64, 41.7511, 40.5333, 47.7817, 44.9167, 48.3706, 46.3308, 42.7, -19.2483, 30.7931, 39.3833, 36.717, 35.53, 33.92, 12.5, 41.0, 47.5167, 44.2394, 37.6819, 37.7967, 45.81, 52.2689, 55.85, 55.8331, 7.517, -31.9861, 36.3919, 37.911, 40.0, 48.7667, 47.8781, 53.9642, 44.7167, 44.7408, 50.3, 38.2667, 49.0, -33.217, -43.2, 41.7108, 43.9994, 46.1, 40.0825, 40.2269, 41.9153, 44.1167, 40.1739, 44.1167, -38.387, 27.2, -20.783, 36.6511, 41.05, 40.6833, 38.4661, 45.9469, 49.7517, 49.7492, 45.65, 37.35, -20.5, 37.1786, 37.1503, 37.2622, 48.1333, 43.6333, 40.7264, 54.3, 42.7667, 34.45, 37.53, 42.8125, 32.67, 32.9, 32.8697, -37.05, -29.86, -7.85, 8.5, 60.55, 51.7833, 51.8333, 54.6167, 49.45, 62.7, 48.15, 46.3667, 46.3833, 54.0994, 53.5833, 69.5, 69.6539, 69.6767, 35.7636, 63.4106, 37.6258, 58.9, 48.0317, 47.2842, -35.1167, 47.2333, -13.7542, 45.5533, 40.7333, 44.1111, 47.8669, 46.1989, 31.8075, 48.4806, 75.952, 48.7167, 39.8283, 42.75, 57.6, 52.6, 39.3, 39.3331, -8.1, 18.3283, 7.4667, 38.2597, 45.3667, 33.7569, 33.1353, 33.2367, 35.3881, 35.2058, 41.5522, -26.05, 47.45, -22.77, -24.017, -22.97, -25.18, -34.03, 44.417, 34.733, 35.65, 33.85, 35.067, -14.819, -18.975, -5.683, 44.1, 40.9, -23.35, 60.9333, 39.6025, 32.2542, 32.2817, 32.1314, 32.25, 32.2581, 32.2292, -26.85, -26.8, 35.2006, 35.1822, -3.786, 50.8833, 17.638, 34.2667, 53.9, 69.4333, 69.45, 69.4333, 54.233, 20.083, 33.0719, 45.1831, 41.96, 39.35, 34.5475, 50.45, 64.9167, 35.3453, -32.6309, 53.6667, 42.8333, 42.7603, 42.6394, 36.1994, 54.6, 31.5678, 17.3, -35.778, 55.1333, 7.3, 7.3, 49.65, 39.1, 53.533, 61.95, 34.7281, 36.83, 51.73, 29.72, 33.95, 34.217, 34.2622, 44.2308, 45.0708, 64.2667, 31.693, 49.151, 46.3833, 63.117, 49.63, 45.217, 45.2, 58.0994, 45.22, 49.117, 43.27, 34.3956, 40.05, 60.45, 60.5153, 37.5006, 48.85, 48.9992, 43.75, 52.267, 42.933, 36.8136, 46.0, 47.5214, 49.1333, 49.3, 65.7831, 35.99, 33.2119, 33.2119, 41.3144, 39.7947, 34.6147, 33.7025, 33.7, 59.4356, 64.2, 47.1333, 39.2475, 60.4167, 60.3667, 36.2861, 34.7706, 44.55, 59.0269, 56.883, 52.4667, 36.5819, 46.15, 52.2731, 34.1281, 45.5472, 42.5458, 42.5808, -21.95, 38.7086, 46.15, 39.0936, 38.2033, 34.9881, 47.0258, 44.15, 44.1431, -28.36, 37.6364, 32.3067, 44.2781, 31.08, 32.4, 32.3542, 55.183, 42.9919, 30.0667, 55.017, 44.0167, 57.15, 71.917, 42.3, -23.77, 44.5, 55.467, 58.547, -0.08, -19.73, 47.7719, 55.3, 15.25, 15.25, 50.8, 38.083, 58.73, 46.1667, 48.95, 58.37, 46.06, 46.0, 17.3833, 44.2667, 17.383, 54.5, -16.133, 53.75, 60.72, 52.9428, 34.767, 54.7167, 49.07, 60.5, 63.55, 49.0667, 40.95, 36.35, 55.8, 43.783, 65.2, 39.1467, 45.1328, 39.1258, 47.917, 49.8, 44.8, 47.9, 51.8331, 36.98, 41.92, 51.35, 48.933, 45.517, 47.75, 10.0333, 49.2, 59.3667, 63.01, 37.483, 48.383, 57.77, 35.55, 59.81, 38.1, 40.1, 40.1, 70.7667, 37.6, 39.62, 59.36, 64.76, 61.6, 54.317, 37.5983, 48.77, 66.67, 63.83, 63.79, 69.3694, 52.167, -31.53, 55.033, -16.36, 63.8833, 47.317, 63.33, 60.28, 47.455, 56.04, 38.4444, 39.915, 39.45, 40.475, 37.5436, 34.6053, 36.3925, 45.2081, 32.0142, 44.4367, 52.2333, 34.3725, 40.0333, 64.8569, 53.5167, 51.0833, -27.5436, 44.9847, 40.7667, 52.8514, 60.44, 56.65, 41.1, 32.442, 72.7831, 48.6147, -28.45, 34.1333, 20.25, 48.6525, 49.9, 38.8519, 39.4678, 37.7167, 40.8333, 39.7136, 37.4833, 37.7719, 45.2167, 59.86, 59.9, 49.0333, 49.0333, 47.45, 59.8425, 44.0928, 42.167, 51.25, -21.6119, 59.5667, 59.5667, -71.43, 38.3761, 39.9, 40.0839, 40.0986, 47.117, 37.13, 41.567, 38.6, 53.317, 52.75, 50.8, 49.4, 37.668, -29.783, 43.9, 46.2, -28.51, 38.683, 29.4083, 31.717, -54.843, 73.0, 43.08, 45.2539, 38.7, 41.6, 50.683, 49.98, 54.58, 52.817, 53.42, 66.8, 57.08, 58.2, 57.717, 59.183, 56.217, 52.7, 54.4, 50.28, 61.683, 60.3831, 66.45, 64.566, 56.58, 66.55, 58.88, 64.266, 65.4331, 51.633, 65.97, 58.5, 62.23, 52.65, 40.3603, 41.0497, 43.0833, 46.8833, 43.145, 59.3, 59.3078, 69.7556, 70.0814, 36.55, 17.617, 49.5942, 45.2, 18.2617, 60.75, 36.78, 70.4167, 29.2167, 29.185, 33.233, 53.717, 48.6331, 41.3, 55.3, 34.0697, 33.8722, 64.5008, -27.95, -24.73, 63.1, 63.0417, 38.3956, -20.3, 58.55, 45.0483, 63.5, 56.8667, 61.8628, 39.6394, 39.6167, 69.93, 42.4333, 61.1303, 30.85, 30.9667, 30.7825, 43.9814, 52.8333, 52.85, 39.4806, 39.489, 39.4867, 43.3833, 51.9394, 30.5908, 47.3389, 42.8753, 42.8783, 42.5711, 9.35, -8.41, 57.783, 48.3119, 44.2831, 52.1703, 59.02, 41.65, 41.7, 37.4833, 37.3806, 49.384, 46.3833, -28.58, 53.25, 45.2833, 55.0667, 46.9558, 42.4844, 40.0983, 34.5686, 36.4303, 21.0, 32.38, 17.78, 60.1331, 67.3606, 35.8167, -33.02, 30.4833, 30.4167, 41.5114, 44.8333, 63.6667, 50.2, 19.5667, 48.05, 48.05, 45.9, -1.379, 47.432, 48.5167, 49.3667, 44.5, 45.4833, 48.9833, 38.45, 60.3331, 45.5608, 38.5833, 45.6778, 49.25, 49.3, 49.2, 49.2, 49.25, 38.9581, 39.3167, -26.67, 45.1703, 54.0333, 54.0833, 58.36, 61.1725, 4.168, 52.0167, 60.3269, 60.2831, -17.233, 60.35, 47.1664, 36.9753, 31.0417, 34.2097, 40.8494, -30.35, -26.88, 57.11, 65.8833, 70.367, 70.3669, 45.45, 62.3081, 62.3217, 43.232, 44.8331, 52.25, 68.43, 64.45, 59.62, 59.59, 58.44, 58.56, 57.79, 51.6094, 34.6, 50.05, 50.1833, -18.65, 51.5833, 56.85, 56.93, 35.2775, 53.5, 53.4833, 56.35, 60.8, 46.8, 44.75, 61.083, 48.0797, 47.317, 50.067, 55.9, 61.6514, 27.1006, 54.6667, 45.5, 45.4, 63.3125, 20.9, 45.7667, 63.6653, 58.68, -26.68, 58.083, 43.7953, 55.817, 56.7, 64.22, 63.15, 48.2, 56.083, 42.5, 54.22, 62.233, 51.35, 67.5667, 58.9, 63.317, 53.87, 36.8833, 53.35, 49.8333, 29.7833, 42.7625, -65.25, 40.4386, 33.7392, 34.1517, 40.1056, 42.7717, 50.2333, 45.8653, 50.2667, 50.2333, 39.9333, 34.1647, 45.3831, 27.6528, 27.6531, 38.4319, 62.9214, 52.283, 49.617, 62.983, 56.7667, 63.4, 47.067, 57.9, 38.7436, 37.3522, 41.7, 45.5667, 46.1667, 38.1311, 32.35, 32.3567, -20.76, 47.7667, 46.05, -18.1, 48.4167, 48.5167, 48.65, 48.3667, 48.45, 9.967, 28.8439, 28.8614, -16.403, 28.8461, 48.45, 21.2, 34.535, 34.5833, 45.9231, -35.555, 47.88, 51.3333, 43.983, 65.8797, 38.4875, 38.2017, 43.8, 17.9833, 63.8406, 17.555, 42.0828, 42.2392, 62.5617, 60.4183, 63.0817, 53.1, 53.1833, 63.05, 80.167, 56.817, -17.8, 41.3167, 54.483, -12.694, 58.367, 63.7831, 46.6, 48.767, 16.25, 44.2525, 24.48, -31.85, 42.63, -25.767, 23.7, 28.83, -31.945, 27.62, -29.9, -21.27, -33.73, 47.35, 48.0458, 54.6331, 58.3831, 57.67, 38.6786, 38.7386, 64.2, 65.8197, 43.1333, 43.1667, 43.1833, 43.1833, 57.63, 59.08, 18.737, 36.5469, 63.2066, 60.633, 49.2331, 61.5833, 42.1703, 13.576, 37.2, 39.5061, 49.8333, 40.2444, 47.5, -28.1, 39.3128, 45.2925, 38.0833, 60.5269, 43.5594, 49.5742, 58.567, -17.645, 36.3278, 57.6667, 51.95, 17.717, 58.09, 58.1, 33.2294, 55.167, 42.43, 59.45, -20.317, 42.8506, -14.863, 42.8717, 67.68, -17.15, 47.55, 55.167, 43.05, 56.117, 43.8, 51.4414, 40.4667, 50.9167, 46.3, 44.9831, 48.0917, 46.0, 52.017, 47.73, 48.783, 51.6581, 49.2592, 53.167, -27.37, 47.617, 70.97, 53.317, 50.833, 59.3167, 48.67, 67.483, 61.033, 58.85, 51.7, 48.6, 57.8458, 63.22, -78.45, -20.417, 60.467, 47.567, 42.4831, 43.2, -31.67, -27.8, 45.15, 50.4, 66.58, 41.5833, 60.72, 52.367, 61.0167, 55.9667, 40.7917, 52.9333, 39.0747, 31.6003, 31.6189, 53.1658, 46.3939, 34.9603, 21.82, 39.6914, 14.4, 51.9667, 51.9814, 54.6667, -35.1583, -35.1311, -33.3075, 43.0833, 35.9675, 43.25, 41.2214, 46.3233, 36.9953, 38.4831, 22.0167, 21.575, 47.961, -34.1944, 21.2717, 21.3356, 21.6369, -9.667, 70.6392, 52.8333, -8.641, 37.4, 1.75, 37.483, 34.233, 39.0147, 42.2647, 45.6, 36.9839, 19.2833, 45.417, -27.35, 51.2081, 43.8833, 50.2608, 40.7442, 41.5514, 48.9303, 34.8992, 47.9167, 47.6181, 42.7392, 65.6239, -22.94, -30.0236, 34.7544, -17.1347, 37.7433, 47.0744, 47.4753, 42.5833, 40.8433, -28.9231, 45.99, 46.0947, 46.0333, 51.6031, 37.9406, 45.5722, 41.5519, 34.9281, -35.1201, 42.1608, 37.6303, 37.3822, 32.8847, -23.6286, 34.3603, 44.5167, 42.1506, 42.1667, 39.2142, -4.067, 45.2406, 41.6717, 44.1481, 41.0444, 41.4439, 45.1094, -32.6722, -32.6814, 34.3, -36.3667, -36.4206, 53.7883, 55.7833, 54.1833, 48.65, 51.6833, 40.7908, 40.655, 32.067, 46.4353, 50.1833, 50.45, 50.1333, 44.4736, 36.9231, 51.5, -26.1317, 45.3833, -27.97, 39.1139, 49.4667, 57.4333, 53.517, 49.1, -24.9, -17.0156, 46.2667, 34.5958, 38.7161, 32.6333, -34.9906, -36.2614, 41.8467, 45.2658, 46.4333, 38.7842, 53.5239, 33.4028, 38.835, 38.6811, 33.6044, 41.2019, 44.4, 53.3833, -38.2919, -38.3836, 48.8947, -11.6502, 41.2633, 38.25, 37.9881, 35.0128, 42.6856, 38.7744, 53.2231, 50.6281, 48.1258, -28.2061, 53.65, -28.2247, 49.8167, 50.65, 35.5892, 53.1333, 44.0708, 47.2844, 38.9053, 39.8089, 41.2825, 38.6489, 33.7264, 40.1789, 38.6667, 39.5353, 38.9408, 45.3581, 38.8483, 30.3236, 61.6167, 61.5333, 49.0333, 53.9167, 48.2064, 36.8581, 48.0581, 50.4978, 44.0697, 32.3778, 36.3333, 44.3167, 40.4256, -29.85, 52.2531, 38.3664, 41.4931, 42.5544, 43.45, 46.2778, 49.1167, 43.1742, 43.9761, 43.9922, 44.9047, 47.6497, 35.7742, 45.05, 44.5272, 31.6725, 34.1583, 47.6, 55.7167, 35.8578, 51.6667, 40.7928, 36.9308, 60.1167, 17.988, 52.127, 7.7, 45.4247, 27.5478, 42.3492, 43.0064, 43.2742, 44.3547, 34.1747, 44.9258, 41.5183, 7.7, 30.2947, 36.0825, 39.1114, 42.0019, -17.3871, 48.0, 47.9667, 49.9333, 32.4281, 31.2514, 31.25, 35.3042, 33.0725, 31.6772, 39.8986, 37.4167, 35.4867, 37.8133, 36.5758, 43.0847, 32.7483, 35.52, 40.7367, 35.4814, 41.1667, 45.3331, 42.4686, 39.4031, 38.4739, 54.2194, -38.6357, 41.4333, 28.5175, 40.8639, 41.93, 49.6669, 36.767, 48.4, 50.4742, 50.7131, 49.383, 26.87, 64.315, -12.6267, 53.45, 44.2456, 44.8475, 49.555, 50.0867, 49.017, 26.199, 48.3667, 38.6989, -28.0, 43.0, 52.2058, 44.3564, 34.8422, 37.2778, -33.63, -32.5635, -32.5059, 47.8964, 41.1006, 41.7003, 40.2753, 32.6667, 47.4289, 47.4333, 47.3978, 47.7042, 40.7206, 44.0083, 28.017, -29.73, -29.9, 51.583, 51.85, -37.9, 49.7678, 26.1781, 44.0761, 40.7333, 48.8744, 41.0669, 38.1311, 54.5294, 32.535, 46.3286, 40.1264, 43.9903, 42.2956, 48.9097, 39.5736, 42.9167, 39.0439, 44.6406, 44.6833, 44.25, -41.75, 50.4667, 43.0175, 43.3681, 45.0667, 44.6464, 43.6878, 39.9708, 41.9144, 45.4, 48.5003, 45.1, 40.475, 37.9414, 42.1333, 35.1242, -21.05, 26.6847, 34.6428, 36.7425, 32.8789, 41.3906, 41.845, 37.5658, 49.0, 44.1925, 41.9442, 39.2911, 44.65, 52.6333, 30.1192, 49.65, 45.4425, 44.4, 42.2494, 62.2333, 49.1833, 31.6508, 41.1947, 42.1106, 45.8081, 41.8128, 39.775, 40.0567, 40.1764, -36.7, 48.35, 40.6117, 37.2167, 44.6, 49.0167, 41.0, 50.1333, 54.4807, 54.1333, 54.15, 48.4081, 48.2833, 46.7531, 43.5575, 60.7167, 42.3369, 60.7167, 60.7333, 38.7167, 33.8214, 56.2333, 39.9961, 61.7067, 34.4094, 42.8508, 50.35, -30.8517, -30.8506, 44.5333, 39.4411, 35.1333, 43.7292, 45.1453, 64.6833, 37.5833, 39.9667, 49.0167, 32.7822, 32.5564, 37.7889, 46.5436, 46.8333, 46.3833, 30.7167, 46.0436, 31.8611, 60.7764, -33.0539, -33.0303, 44.75, 46.9878, 15.65, 37.6544, 37.6833, 33.9786, 37.6167, 34.7325, 58.45, 33.9792, 43.6825, -7.967, 37.8333, 51.2167, 48.2331, 48.3, 48.17, 48.1229, 48.117, 50.0875, 52.117, 30.8714, 45.9167, 41.6667, 34.7061, 47.7681, 34.9611, -31.5631, 50.1667, 42.75, 48.6631, 36.2656, 53.5667, 41.6358, 53.5917, 41.3336, 34.6606, 32.2553, 35.2414, 39.15, 36.7333, 41.665, 37.3017, 37.6667, 41.2433, 35.8528, 38.6586, 40.0375, 52.1833, 52.1333, -32.7932, 48.3333, 51.2953, 48.1375, 48.1739, 42.0833, -16.288, 39.4194, 45.1078, -33.283, 39.5231, 35.8686, 48.6061, 42.8167, 49.0833, 40.9467, 40.3517, 40.35, 40.2, 40.4333, 45.7081, 36.9811, 32.7019, 39.4833, 34.3208, 34.2675, 39.6728, 39.7739, 37.1317, 46.0289, -39.1297, 35.6939, 47.4167, 38.9667, 47.1603, -26.5914, 41.0267, 39.1881, 43.2828, 46.2381, 35.1803, 39.1833, 40.1714, 33.9275, -22.567, -77.7, 43.8575, -25.4228, 35.6169, 38.5319, 39.4458, 42.2833, 44.9833, 44.9333, 42.3, -34.8361, 42.2833, 51.85, 50.0333, 52.95, 33.9111, 37.2889, 38.5278, 32.0444, 47.5589, 32.9167, 31.78, 43.7639, 40.9017, 43.3686, 31.9622, 47.4306, 49.9167, 49.95, 49.8833, 34.3739, 32.0997, 39.0589, 44.0422, 33.4847, 35.0281, 33.3497, 36.1336, 45.8833, 47.1667, 38.5253, 41.315, 50.5167, 28.0153, 48.4742, 34.9381, -22.3908, 47.9333, 43.6089, 44.3881, 45.6178, 36.9986, 51.5667, 46.2608, 53.8333, 51.883, -22.2425, 53.55, 51.3506, 51.55, 45.3833, -33.1336, 55.6167, 53.4631, 7.3833, 48.2958, 44.15, 45.6667, 52.4425, 49.5819, 35.9478, 45.0667, 37.4744, 37.4833, 45.3131, 48.1, -17.2122, -34.403, 50.4333, 44.8, -30.8917, -30.8408, 37.33, 56.7333, 39.183, -38.6078, 43.4978, 43.7833, 35.8375, 49.0333, 49.5833, 38.7833, 45.1569, 38.6828, 34.1819, 41.525, 37.4286, 42.2167, 42.2167, 39.3333, 43.1333, 43.6303, 43.9833, 46.1667, 38.8969, 39.5461, 44.4, 31.0931, 31.1167, 49.5, 47.45, -30.9672, -31.1558, 40.7833, -33.617, 42.2706, 43.9658, 44.0108, 49.6056, 49.2189, 53.2775, 43.645, 56.4733, 40.0714, 46.5333, 46.0667, 46.6803, 33.3039, 39.8333, 63.2167, 51.7317, 54.6942, 51.1, 35.22, 35.28, 33.4, 26.73, 30.6, 31.33, 31.15, 52.467, 35.5247, 51.2258, 49.7714, 49.8006, 37.2, 52.8053, 39.03, 47.6789, 23.483, 43.8, 34.717, -33.9262, -18.283, 51.185, 47.25, -15.4872, 35.2547, 51.7667, -40.9942, 45.1217, 36.9617, 44.2542, 36.1308, 49.35, 30.95, -25.05, 19.72, 39.6167, 24.483, 34.3, 49.2, 31.0, 27.9, 19.32, 35.73, 35.98, 29.25, 33.78, 43.95, 40.58, 25.433, 37.07, 38.47, 36.617, 36.03, 32.133, 22.35, 48.67, 16.833, 29.03, 44.583, 20.35, 50.1, 24.95, 34.283, 29.98, 18.0628, -21.95, 36.1306, 50.217, 51.8, 60.0833, 46.5683, 30.383, 59.5119, 6.5, -38.1858, 40.7, 44.483, 38.25, 34.167, -28.1664, -29.4333, 6.903, 40.1561, 36.5, 37.8, 35.48, 39.217, 21.867, 16.907, 37.48, 42.867, 42.8783, 37.53, 35.567, 36.6, 3.87, 9.5167, 9.4833, 7.024, 57.417, 43.8333, 43.8333, -31.3865, -16.7, -34.8313, 37.4, 37.8786, 31.9, 31.905, 32.9028, -27.2842, 58.82, 55.77, 62.4667, 62.6667, 44.8542, 45.545, 44.5444, 44.5922, 44.9767, 45.3128, 49.8167, 37.5206, 36.1542, 36.2, 41.58, 32.6803, 24.144, -34.2502, 34.733, 51.0059, 40.2, 38.9992, 34.4031, 45.183, 55.833, 28.8, 30.7, 27.8, 47.72, 38.467, 40.667, 43.95, 43.27, 36.18, 66.5289, 66.3667, 29.2739, 41.9131, 61.25, 51.3833, 51.45, 34.933, 5.55, 35.433, 35.2833, 9.258, 35.433, 24.467, -33.0287, 25.967, 35.97, 36.53, 36.87, 33.89, -31.8997, 40.8678, 51.2667, 51.2667, 41.2664, 39.9167, 44.5003, -31.8836, 49.8, 37.75, -32.683, 41.2544, 33.595, -34.3167, 43.9333, 28.833, 39.817, 41.7036, 31.6953, 55.44, 62.18, 61.5717, 23.6, 28.47, 25.68, 25.73, 38.75, 34.8775, -22.2562, 29.38, 59.77, 37.6, -25.1896, 22.63, 38.233, 40.1236, 32.6114, 32.65, 32.8356, 32.7167, 32.7333, 32.6667, 40.267, 36.8, 35.05, -32.5819, 32.85, 20.35, 37.07, 33.0, 33.0, 47.117, 39.83, 39.96, 31.2167, 46.75, 22.783, 44.1, 32.9, 33.15, 45.8167, 45.73, 29.476, 47.4667, 41.55, 37.783, 49.3, 46.8667, 12.9, 6.9, 53.5, 52.767, 20.0, 41.5167, 50.7, 43.733, 39.9444, 36.774, -6.222, 32.15, 26.8706, 47.8, 47.9, 39.9, 41.6667, 41.6617, 56.3, 50.117, 44.8167, 54.7, 52.9681, 50.6333, 53.7, 43.87, 47.333, 47.2, 74.88, 35.017, 45.0669, 51.833, -3.26, 51.2, 49.667, 51.617, 49.217, 40.78, 42.417, 38.93, 21.22, 25.58, 27.33, 44.1667, 48.85, 54.38, 34.717, 47.8, 54.8, 66.7667, 27.45, 52.217, 65.2, 52.9, 31.35, 49.25, 37.48, -69.367, 31.17, 33.0, 50.233, 51.9333, 12.556, 52.2, 40.3, 49.233, 53.067, 53.933, 65.467, 42.685, 13.8, 58.81, 50.733, 37.2092, 43.7331, 55.17, 45.25, 51.15, 49.05, 48.717, 34.75, 76.15, 47.3167, 41.45, 5.817, 47.9186, 47.9225, 22.75, 45.4, 32.88, 47.3831, 42.5, 47.4219, 44.2992, 35.0706, 27.7, -26.3, 54.467, -26.35, 49.033, 65.73], &quot;yaxis&quot;: &quot;y4&quot;, &quot;ybingroup&quot;: &quot;y&quot;, &quot;z&quot;: [0.069, -1.5589, -2.585, 0.1452, -0.9518, -0.1561, 0.0625, -0.0632, -0.0537, 0.0779, 0.0784, 0.0273, 0.0268, 0.0899, -0.0188, 0.0602, 0.1365, 0.0419, -0.0482, 0.177, -0.1292, 0.0214, 0.01, -0.0536, 0.3311, 1.55, 0.002, -0.0015, 0.0011, 0.0491, -0.0915, -0.0444, -0.0146, 0.156, -5.2424, 0.0922, -1.0792, 0.1314, 0.0, -0.4497, -0.0519, -0.2958, 0.0655, -0.0198, 0.103, 0.0129, -0.059, -0.0609, -0.0732, -0.0291, -0.0138, -0.059, -0.0652, 0.0029, -0.0626, 0.0025, -0.0351, 0.6057, 0.0734, -1.3572, 0.4577, -0.0415, 0.1935, 0.0016, 0.1019, -0.2907, -0.0023, -3.9525, 0.0233, -0.2532, -0.0859, -0.0263, -0.0211, 0.009, -0.0076, -0.0308, -0.022, -0.0359, -0.0469, -0.0465, -0.0469, 0.1066, 0.5049, 0.0, 0.0625, -7.008, 0.0433, -0.1046, -0.067, 0.0859, 0.0, -0.1301, -0.1668, 0.0535, -0.0184, 0.0321, -0.0316, -0.0127, -0.029, -0.5677, -4.5387, 0.2228, 0.0276, 0.0, 0.0158, 0.002, 0.0048, 0.0055, 0.15, 0.0565, 0.0111, -0.044, -0.0547, 0.0505, 0.0823, -0.0167, 0.007, -0.318, 0.0, 0.0679, -0.0267, 0.0371, -0.26, 0.1192, -0.1422, 0.0732, 0.0747, -0.0065, -0.3101, -0.0431, 0.0469, 0.0, 0.4283, 0.1, 0.0041, -0.029, -0.0955, -0.0192, 0.147, 0.1516, -0.3611, -0.3488, -0.0102, 0.6019, -0.0297, 0.0655, -0.1458, -0.2558, 0.0246, -0.0401, 0.3345, 0.0745, 0.0695, 0.1834, -0.0674, -0.0611, -0.3162, 0.0157, 0.1335, 0.2306, -0.2323, 0.067, -0.0644, 0.0779, -0.1013, 0.1724, 0.2457, 0.1457, 1.0334, -0.0106, -0.005, -0.0155, -0.0161, 0.0774, 0.0451, 0.2532, 0.0796, 0.059, 0.0431, 0.0686, 0.0576, -0.6203, -0.0065, -0.0265, -0.0425, -0.0392, 0.1144, -0.0148, 1.2683, 0.0938, 0.0758, 0.0415, -0.0566, -0.1453, 0.1497, 0.1081, 0.0053, -0.0105, -0.1203, 0.1441, -0.0202, 0.0613, -0.0198, 0.0495, 0.0062, 0.0952, 0.111, -0.0324, -0.2201, -0.1609, 0.0211, 0.0268, 0.0434, 0.2105, -0.2275, 0.1113, 0.0734, -0.0274, -0.0558, -0.4916, 0.0224, 0.0, -0.0837, 0.0841, 0.0033, 0.0564, -1.1548, 0.0526, -0.0458, -0.9266, 0.1443, -0.1818, -0.1771, 0.2732, -0.2137, 0.2289, 0.0262, -0.0846, 0.1089, 0.0, 0.0109, 0.0, 0.064, -0.0103, -1.8427, 0.1026, -0.2605, -0.077, 0.0754, 0.0239, 0.0858, -0.068, -0.0206, 0.0375, -0.05, -0.0567, -0.0747, 0.0102, -0.1352, 0.2167, 0.1255, 0.0244, -0.0286, -0.0324, -1.0791, 0.0527, -0.0811, 0.0257, 0.0259, 0.0784, 1.1387, 0.0, -0.053, -0.0143, 0.135, 0.0371, 0.0194, 0.013, -0.0614, -1.6935, 0.0989, 0.1496, 0.1843, 0.0961, 0.1139, 0.3541, 0.0754, 0.0701, -0.0197, 0.0491, -0.4139, -0.0817, -0.004, -0.0125, -0.0208, -1.085, 0.4372, -4.0682, 0.0251, -0.152, -2.3706, -0.211, 1.192, 0.0055, 0.0716, 0.019, -0.2211, -0.1944, 1.1266, -0.0263, -0.9878, -0.0181, -0.1862, 0.0, -0.0324, -0.8665, -0.0454, 0.2186, 0.0541, 0.1574, 0.0966, -0.0431, -0.2556, 0.0271, -0.0218, -0.0516, 0.034, 0.0653, 0.0291, 0.1199, 0.0806, 0.3927, 0.0, 0.6006, 1.29, -0.0131, -0.2254, -0.2081, 0.0608, 0.1643, 0.0952, -0.2366, -0.0705, -0.2579, -0.3034, -0.0594, -0.2387, 0.0935, 0.0606, -0.0294, 0.0747, 0.057, -0.0483, 0.0315, 0.066, 0.5683, -0.0238, 0.1149, 0.0115, 0.0, 0.0893, 0.0841, -0.011, 0.0296, -0.5978, -0.0448, 0.0947, 0.0047, 0.0468, -0.0303, 0.0598, 0.0351, 0.0813, -0.0857, 0.079, -0.0364, -0.1187, -0.1391, -0.2589, -0.0425, 0.0836, 0.0245, 0.1448, 0.0406, -0.0751, -0.0749, 0.2411, 0.0802, 0.1182, -0.023, 0.7261, 0.0322, 0.0614, 0.0166, 0.3617, 0.0802, 0.2794, 0.4376, -1.91, 0.1009, 0.009, 0.0, 0.293, 0.0, 0.1143, -0.0649, 1.1015, -0.0407, -0.0175, 0.0011, -0.051, 0.0197, 0.7298, 0.0644, 0.5481, 0.0318, -0.3135, 0.0496, 0.0583, -0.0131, 0.1401, 0.0368, 0.2311, 0.0, -1.1314, -0.0749, 0.0525, -0.0566, 0.0624, -0.0269, -0.1368, 0.0286, 0.1314, -0.0257, 0.1285, -0.0062, 0.0, -0.0611, 0.0599, 0.0123, 0.1816, 0.076, 0.044, -0.2801, -0.0196, 0.0, -0.0469, 0.0136, 0.2716, 0.0411, -0.108, 1.4353, 0.0335, -3.5932, 0.0408, 0.0494, 0.0698, 0.0, 0.0, 0.0639, -0.4342, -0.1056, 0.1584, 0.0977, 0.0287, -0.0041, -0.0696, -0.012, -7.8491, -0.2505, 1.425, -0.0568, 0.0228, 0.0242, 0.0311, 0.1185, 0.0619, 0.4628, -0.0706, -0.1102, -0.0252, -0.2431, 0.0345, -0.0582, 0.6097, 0.0979, -0.057, 0.3014, 0.1037, 0.0191, 0.089, 0.2033, -0.0545, 0.0777, -2.802, -0.0278, 0.0771, -0.04, 0.0655, 0.0822, 0.0319, -1.4831, -0.0968, 0.1181, 0.0057, 0.0435, 0.0367, -0.0129, 0.0679, 0.1149, -0.274, 0.0533, 1.0279, 0.0409, 0.009, 0.0108, -0.0528, -4.3, -0.0438, 0.0737, 0.0594, -0.1777, -0.353, -0.4228, 0.0476, -0.0333, 0.0266, -0.0124, 0.0578, 0.0136, -0.1097, -0.1281, 0.1152, -0.0439, -0.0006, 0.0018, -0.0656, -0.1471, -0.0024, -0.0097, 0.0, 0.1027, 0.0342, 0.0231, 0.0833, 0.1414, -0.3689, 0.0106, -0.2724, -0.0597, 0.1229, 0.135, 0.0919, 0.0563, 0.0, -1.7723, -0.0998, 0.0414, 0.0939, -0.0133, 0.0522, -0.0283, -0.0046, 0.1306, -0.0085, 0.0813, 0.0613, -0.0879, 0.1201, 0.0297, 0.072, 0.0333, 0.3497, -0.0382, -0.0116, -0.0163, 0.0412, -0.0178, -0.0103, -0.0103, 0.0, 0.0362, 0.0032, 0.1631, 0.2309, 0.0293, -0.0129, 0.0073, 0.0442, 0.0871, -0.0034, -0.7, -0.0459, -0.1286, 0.1577, 0.0236, 8.509, -0.2639, 0.0495, -0.043, 0.0693, 0.0314, 0.0176, 0.3161, -0.3545, 0.0969, 0.0779, 0.1565, -0.0599, 0.0526, -0.3279, -0.0029, 0.0003, -0.7404, 0.0191, -0.1382, -0.0577, 0.0178, -0.0118, 0.1801, 0.0721, -0.1008, 0.0583, -0.0443, 0.0421, 0.117, -0.0822, 0.0215, -0.5884, 0.1481, 0.025, -0.0163, -0.2809, 0.0006, -0.0647, 0.1014, 0.1016, 0.1671, 0.059, 0.29, 0.0421, 0.1511, -0.0683, -0.0636, -0.0366, -0.0979, -0.2367, -0.2512, -0.9694, 0.0523, -0.0727, -1.01, -0.0875, 0.0373, 0.0436, 0.0843, 0.0454, -0.3616, -0.0136, 0.1441, 0.1589, -0.0097, 0.3209, -0.2763, 0.5361, -0.1193, -0.6951, -7.9217, 0.0705, 0.034, 0.2633, -0.0967, -0.3093, -0.564, 0.0255, 0.0689, 0.3583, -0.0066, -0.0808, 0.2483, 0.0132, 0.0185, 0.3595, 0.1494, 0.1154, 0.1094, 0.9081, -0.3396, 0.074, 0.459, 0.1188, 0.2915, -3.0525, -0.1092, 0.0483, -0.0071, 0.0443, 0.0434, 0.0829, -0.0326, -0.0378, 0.0506, -0.0479, 0.0402, -0.092, 0.821, -0.0102, -0.1818, 0.0544, -0.0121, 0.0653, 0.0, 1.6008, 0.0097, 0.0899, -0.0446, 0.0781, 0.039, -0.0634, -0.0343, 0.0639, 0.4698, 0.1348, -0.2201, -0.3967, 4.4547, -0.0425, 0.2454, -0.0188, 0.2157, 0.1204, -0.1446, -0.0367, 0.0065, 0.0429, 0.1264, -0.0022, 0.0, 0.0849, -0.0653, 0.0469, -0.0532, 0.0083, 0.0558, 0.0431, -0.2523, -0.0193, -0.0243, -0.1824, 0.0595, 0.1271, 0.125, -0.0705, 0.025, 0.0584, 0.9717, 0.0238, -0.0094, 0.0452, 0.0203, 0.2733, -0.2483, -0.1462, -0.1714, -0.0551, 0.0299, 0.0326, -8.2417, 0.0302, 0.2064, 0.1334, 0.4222, 0.251, 0.1758, -0.7293, -0.4559, 0.1105, 0.0352, 0.047, 0.1646, -0.4178, -0.0102, -0.023, 0.0581, 0.0638, 0.0012, -0.0566, -0.0245, 0.0, 0.4897, -0.0036, -0.0202, 0.2473, -0.0644, 0.063, 0.0218, -0.0841, 0.0885, 0.111, -0.3721, 0.0713, 0.2567, -0.1024, -0.1056, -0.2031, 0.0, 0.2872, -0.0108, 0.0797, 1.0233, 0.0768, 0.0918, 0.0072, -0.2447, 0.0784, -0.0134, 0.0646, -0.1087, 0.0184, -0.0618, -0.0056, -0.0007, -0.0069, 0.0487, -0.3527, 0.0601, 0.0707, -0.1457, 0.0696, 0.2118, 0.1057, -0.0124, 0.1661, 0.0148, 0.0425, 0.0557, 0.0457, 0.0, 0.0115, 0.0225, 0.2616, 4.9288, 0.0553, -0.0534, 0.0732, 0.6713, 0.0268, -0.0662, -0.3036, 0.0942, 0.0826, 0.066, -0.169, -0.5637, 0.2881, 0.071, 0.1353, 0.0, 0.0922, 0.093, -0.0141, -0.0961, 0.0992, 0.1491, -0.8296, -0.7131, -0.0169, -0.0028, -0.2386, 0.0937, 0.1024, -0.0602, 0.0552, 0.0474, 0.095, -1.1361, 1.6463, 0.425, -0.4031, 0.1024, -0.0443, 0.0908, 0.0943, -0.0617, 0.0117, 0.252, 0.0771, 0.1623, 0.069, 0.0434, 0.0751, 0.0887, 0.0837, 0.055, 0.0825, 0.0746, -0.4131, 0.0447, 0.0845, 0.0759, 0.0, 0.0745, 0.0565, 0.0358, 0.0, 0.0295, 0.0616, -0.1065, -0.0869, 0.0, 0.0707, -0.0514, -0.0441, 0.0, -0.0285, -0.0155, -0.2346, -0.0027, 0.0053, 0.0173, 0.0, -0.105, -0.3685, -0.0664, 0.0143, 0.1086, 0.0, -0.0749, -0.1562, -0.0846, -0.0191, -0.0343, -0.075, 0.6536, 0.0631, 0.5931, 0.144, 0.1178, 0.0677, 0.036, -0.0471, 0.0677, 0.0195, 0.8485, -0.0032, -0.0331, 1.0582, -0.0791, -0.0589, 0.0635, 0.0521, -0.0158, -0.0094, 0.0527, -0.0859, 0.4091, -0.0412, -0.0319, -0.059, -0.0174, -0.0248, 0.0189, 0.4921, 1.527, -0.0107, -0.0824, -0.1314, 0.0569, 0.346, -0.3417, 0.0408, -0.0411, 0.0187, 0.0255, 0.0105, -0.0166, 0.1186, 0.082, 0.2706, 4.1717, -0.6217, 0.0, 0.0621, -0.1252, -0.4489, -0.0386, -0.0358, -0.055, 0.1415, -0.0092, 0.1031, 0.2004, -0.0574, 0.0357, -0.0227, -0.0976, -0.1734, 0.0179, 0.0011, 0.0614, -0.0571, -0.0417, -0.414, 0.0721, -0.148, 0.011, 0.0151, 0.0335, 0.0499, 0.0425, 0.027, 0.0849, 0.0738, -0.0649, 0.0262, 0.0, 0.5929, 1.5537, 0.011, -0.0234, -0.1916, -0.0393, 0.0873, 0.7025, -0.0858, 0.0388, -0.0253, -0.004, -0.0783, -0.0051, 0.0, 0.0779, 0.0014, -0.0002, 0.1954, 0.0, 0.0, 0.0355, 0.6636, 0.0584, -0.0273, 0.0452, 0.0, 0.0, 0.0, -0.005, 0.0503, 0.0145, 0.0897, -0.0197, -0.0394, 0.0509, 0.803, 0.3819, -0.6194, -0.0129, 0.0718, -0.1038, -0.0279, 0.0611, -0.021, -0.2991, 0.0188, 0.0334, 0.1503, 0.0585, -0.0402, -0.0241, 0.0731, -0.0704, 0.0041, -1.1529, -0.0175, 0.0445, 0.0471, -0.0057, 0.0857, 0.0559, 0.0998, 0.0374, 0.0352, 1.5617, 0.0747, 0.0429, 0.6262, -0.0557, 0.0983, 0.0788, -0.0763, -0.0476, -0.1099, 0.023, 10.4283, -0.4689, -4.1001, 0.0, 0.0608, 0.0435, -0.5562, -0.0068, 0.0762, 0.0411, 0.0, -0.0198, -0.0587, 0.0689, -2.931, 0.3124, 0.2611, 0.058, -0.0962, -0.103, 0.1143, -0.0759, 0.0215, 0.0, 0.0272, 0.2326, 0.078, -0.0076, -0.1325, -0.1298, 0.3694, 0.0242, 0.0379, 0.0145, -0.7842, 0.2847, -0.0733, 0.0543, -0.2416, 1.2164, -0.2976, 0.0094, 0.072, 0.8294, 0.1288, -2.5794, 0.1381, 0.0058, 5.085, 0.1129, 0.0933, 0.1053, 0.2042, 0.1968, 0.0295, -0.0104, 0.0256, 0.0, 0.0207, 0.0161, 0.0681, -0.2972, 0.069, -0.1142, -0.3633, 0.0653, -0.004, -0.474, 9.28, -0.0404, -0.0751, 0.057, 0.0626, -0.0403, -0.0548, -0.1093, 0.0293, -0.5717, 0.1733, -0.214, 0.1399, 0.0834, -0.0362, -0.1132, -0.0503, 0.0, -0.2993, 0.0401, -25.47, -0.0175, -0.2705, 0.6298, 0.1713, -0.0377, -0.0522, -0.1457, -0.7952, -0.004, -0.1555, 0.0843, -0.1097, -0.2257, 0.0227, 0.0696, 0.1996, 0.7339, 0.0167, -0.0671, -0.235, -0.0057, -1.476, 0.1671, -0.0535, -0.6204, 0.1434, 0.132, -0.0608, -0.3114, 0.0349, -0.5136, -0.7054, 0.0308, -0.4292, 0.2685, 0.4331, 0.0, -3.4475, 0.0997, 0.2817, -0.322, -0.333, -0.006, 0.0, 0.3182, 0.0, 0.0, 0.0, 0.554, 3.3447, -0.5213, 0.0107, -0.06, 0.0, 0.3665, -0.2698, -0.0283, 0.1074, 0.0471, -0.7964, 0.0333, 0.0117, 0.003, 0.0687, -0.0542, -0.0703, -0.4486, 0.0534, 0.0521, -0.0992, 0.1585, 0.1934, -0.3858, 0.1364, 0.0186, 0.0584, 0.175, -0.466, -0.2646, 0.014, 0.0791, 0.0657, -1.1157, 0.0, -0.013, 0.101, 1.6747, 0.0328, 0.0389, -0.0008, 0.0618, 0.1743, -0.2038, 0.074, -0.0583, -0.1342, -0.0211, 0.1484, -0.0036, 0.1204, -0.0609, 0.0604, 0.3962, 0.1417, 0.0001, 0.0732, -0.0875, 0.0323, 0.1363, -0.0317, 0.0, -0.0965, 0.0174, -0.007, 0.157, 0.0297, 0.0721, -1.4167, 0.0456, 0.0618, 0.0284, 0.0131, 0.0222, 0.0794, -0.0215, 0.0761, 0.2034, -0.095, 0.1501, -0.2947, -1.6281, -0.005, 0.0715, -0.0066, 0.0378, 0.0752, 0.0851, 0.1783, -0.0933, 0.0883, 0.0408, -0.0423, 0.1044, 0.117, 0.1194, -0.4656, -0.0259, 0.0161, 0.0451, 0.0805, 0.0411, 0.0009, 0.0798, 0.0107, 0.0435, -0.0756, -0.0385, -0.1529, 0.0948, 0.0726, 0.0375, 0.0261, -0.637, 0.0239, 0.0254, 0.1053, 0.1526, -0.0377, 0.0615, -0.2729, -0.059, 0.1042, 0.1094, 0.0213, -0.0201, -0.3534, 0.023, 0.0022, -0.1457, 0.0813, -0.1297, 1.1769, -0.0698, 0.0527, -0.052, -0.2295, -0.1108, -0.1125, -0.025, 1.6543, 0.0688, -0.232, 0.0121, -0.0785, 0.0287, -0.0293, 0.0503, 0.0301, -0.0219, 0.0675, -0.0459, 0.2097, 0.1418, 0.125, 0.1953, 0.0424, -0.0289, 0.0068, -1.1233, 0.0729, -0.0045, 0.0, -0.0393, 0.2953, 0.2728, 0.0422, -0.0609, -2.1097, -0.0006, -0.0706, -0.0239, 0.018, 0.0555, 0.0333, -0.0244, 0.0, -0.0229, -0.0747, -0.0785, 0.4414, -0.1407, 0.502, -0.6358, -0.0218, 0.82, -0.0994, -0.0446, 0.0846, 0.0401, 0.0797, 0.0549, 0.024, 0.4267, 0.1854, 0.0289, -0.0797, 0.1935, -0.058, 0.1062, 0.0863, 0.08, 0.0411, 0.0761, -1.1668, -0.359, 0.0767, 0.0564, 0.0247, 0.0567, 0.0791, -3.0853, 0.2307, -0.352, 0.0533, -0.8118, 0.5138, 0.0, 0.0729, -0.0321, 0.0784, -0.0916, 0.5554, 0.1262, -0.0178, -1.2547, -0.3599, -0.0981, -0.0605, 0.0592, -0.011, 0.0293, 0.0342, 0.2554, 0.1153, -0.0, -0.003, -0.0673, 0.0594, -0.0807, 0.0415, 0.0064, 0.0335, 0.039, 0.0863, 0.0299, 0.077, 0.0631, 0.0651, 0.2506, 0.1511, 15.5455, 0.0403, 1.6481, -0.0056, -0.0777, 0.0749, 0.07, -0.019, 0.0768, 0.0756, 0.0, 0.0541, 0.0, -0.1596, 0.063, 0.0342, -0.0436, -0.1722, 0.0, -0.0916, 0.1171, 0.0, -0.1653, 0.1996, -3.7294, -0.0393, -0.0969, 1.6666, -0.1018, 0.1513, 0.0671, 0.0, 0.0277, 0.2749, 1.5199, 0.0747, 0.3185, -0.0018, 0.0582, 0.7792, 0.0319, -0.0041, 0.4876, 0.0721, 0.0054, -0.0678, 0.0385, 0.093, 1.2708, 0.135, 0.0306, 0.8988, 0.0, -0.1356, 0.3475, -0.016, -0.1443, -0.0712, 0.0892, -0.3085, -0.0173, 0.1738, -0.002, 0.1439, 0.8792, 0.1796, -1.1911, 0.0333, -0.7796, 0.0248, 0.0864, -0.0119, -0.0257, -0.0672, -0.1035, 0.3507, -0.0562, -0.0329, 0.0546, -0.0205, 0.1243, -0.0502, -0.0278, 0.0307, 0.0052, -0.0183, 0.1951, 0.0032, -0.0206, 0.0686, 0.0825, 0.0, 0.0229, -1.6249, -0.2291, 0.0, -9.8367, 0.0729, -0.0117, 0.1151, -0.0483, -0.2509, 0.0528, 0.0933, -0.1901, 0.1902, 0.0404, 0.1147, 0.2265, -0.009, 0.0262, 0.4773, 0.0, -0.0999, -0.0141, 0.1215, 0.0084, 0.0644, -0.0219, 0.0061, 0.148, 0.1325, -0.1896, 0.205, -0.9597, 0.0729, 0.0261, -0.2605, 0.0675, 0.0196, -0.0225, 0.0, 0.0748, 0.0987, 0.0083, 0.0, 0.0721, 0.0025, 0.0443, -0.1166, -0.0096, 0.4955, -0.0208, -0.0911, 0.6954, -1.2946, 0.0, -0.1602, -0.5852, 0.0101, -0.0381, -0.2301, 0.146, -0.0926, -1.0351, -0.0301, 0.1004, 0.1084, 0.1828, 0.0571, 0.0, 0.0105, 0.0455, -0.1561, 0.2816, -2.5836, 0.276, -0.0877, -0.1721, -0.3759, 1.5951, 0.3355, -0.0491, -1.3648, -0.0826, -0.045, 0.0759, 0.1062, 2.7533, -0.2196, 0.0722, 0.0369, 0.035, -0.086, -0.3831, 0.077, 0.0, -0.1473, 0.0852, -0.1389, 0.2158, 0.0582, 0.0754, -0.1548, 2.1386, -0.0175, 0.0322, 0.1193, 0.0, 0.0425, 0.0223, -0.2998, 0.1355, 0.1999, -0.0684, -0.0009, -0.2619, -0.5427, -0.5338, 1.853, -0.0412, 0.0, 0.8256, 0.0454, 0.0514, -0.1793, 0.3953, -0.05, 0.1053, 0.2134, -0.0372, 0.0515, 0.0289, -0.2436, 0.0484, 0.1873, 0.2335, -2.2138, 0.0317, 0.0222, 0.371, 0.1203, 0.1154, 0.1297, -0.0183, 0.0, 0.081, -0.4383, 0.0243, 0.0342, -0.0666, -0.1301, -0.0102, 0.0623, 0.0467, 0.0459, 1.7233, 0.1801, 0.0425, 0.0314, 0.0451, 0.0805, -0.0264, 0.0037, -0.0022, -0.0545, -0.2432, 0.0759, 0.0058, 0.1303, -0.0571, -0.0849, 0.0434, 0.0784, -0.0014, 0.0041, 0.075, -0.1605, 0.0475, -0.0127, -0.1182, 0.0635, -10.1358, 0.0997, 0.47, 0.0982, -0.3405, 0.1261, -0.0106, 0.0185, 0.4593, 0.0124, -0.1567, 0.0001, -0.127, 0.1089, -0.0463, -0.0554, 0.0542, 0.062, -0.0346, 0.0418, -0.0488, 0.1321, 0.1029, 0.1311, -0.0269, 0.1541, 0.0875, 0.0063, 0.0342, -0.006, 0.0614, -0.09, 0.0143, 0.0118, 0.1256, 0.1716, -1.084, -0.0842, 0.0827, -0.4432, 0.6809, 0.028, -0.0001, 0.0237, -0.1324, -0.1031, -0.3822, 0.93, 0.056, 0.0, 0.0207, -0.0252, 0.1062, 0.0965, -0.6092, -0.1048, -0.0555, 0.0457, -0.0416, 0.0, -0.2008, 0.0626, 0.0601, -0.0802, 0.2438, 0.0031, -0.0618, -0.1851, -0.1608, -0.0614, -0.1057, 0.0154, 0.0, 0.0782, 0.0264, 0.0315, 0.0317, 0.0036, -0.0228, -0.0306, 0.0, -5.7, -1.1526, -0.1194, 0.086, 0.0285, -2.771, 0.103, 0.0577, 0.2915, 0.1043, 0.0689, 0.0012, 0.0132, 0.0382, 0.0687, 0.061, 0.0549, 0.091, -0.1143, 0.0684, 0.1702, -0.0893, -0.5027, 0.0, -0.1009, -0.022, -0.0252, -0.1381, -0.0482, -0.0918, -0.0403, -0.9094, 0.1101, 0.0879, -0.7611, -0.0277, -0.022, 0.0446, -0.0302, 0.0289, -0.1143, 0.0181, -0.0118, -0.2816, 0.0, -0.0353, -0.1111, 0.0, 0.0931, -0.0984, 0.0, 0.0491, 0.1672, -0.0588, 0.0, 0.0534, 0.0218, 0.0412, -0.3774, 0.502, 0.0692, -0.1815, 0.2807, 0.1026, 0.0122, -0.0001, -0.1866, 0.0879, 0.0258, 0.0825, -0.1843, 0.0732, -0.1698, 0.0, -0.1101, 0.0365, -0.0718, 0.0218, -9.7475, 0.0, 0.1013, 0.0216, 0.0471, -0.0682, -0.3692, -0.0008, 0.0302, 0.0158, 0.4859, 0.0566, 0.0494, -0.0015, -0.2735, -0.0106, 0.0591, 0.0994, -0.0061, 0.0168, 0.0899, -3.9627, -0.073, -3.4395, 0.1066, 0.0184, -0.0008, 0.073, -2.9403, -0.2935, 0.1404, 0.2077, -0.0167, 0.1902, 0.005, 0.003, 0.0642, 0.0987, 0.1836, 0.0641, -1.832, 2.892, 2.1489, 0.0458, 0.0298, 0.0111, 0.0954, 0.0778, 0.171, 0.0651, 0.059, 0.1, 0.0668, -0.0537, 0.0397, -1.2571, 1.2109, 0.0053, -0.5213, 0.0729, 0.1741, 0.0145, 0.1072, -0.0031, 0.4904, -0.0231, 0.1799, 0.0121, 0.0818, 0.0625, 0.0628, 0.0743, 0.4056, -0.0275, 0.1202, -0.1585, 0.0, 0.0538, 0.0903, 0.0, 0.1183, 0.0079, 0.0, 0.8388, -0.2895, 0.138, -0.1508, 0.0922, 0.0732, -0.0424, 0.0127, 0.1383, 0.0294, 0.0, 0.152, 0.8301, -0.1316, 0.0064, 0.0194, 0.0305, 0.1794, 0.3368, -0.0273, 0.0482, -0.0559, -0.1495, -1.1335, 0.0379, -0.1358, -0.1402, -0.1231, -2.6186, 0.0038, 0.1838, -0.0423, 0.0911, -1.3574, 1.12, 0.11, 0.0393, 0.2888, 0.0206, 0.0203, 0.0159, 0.1477, -18.1636, 0.0183, 0.0764, -0.3815, -0.4396, -0.0132, 0.0865, 0.0448, 0.0843, 0.034, 0.0646, 0.092, 0.0179, 0.0, 0.0427, 1.3298, 0.1115, -0.0354, 0.0111, 0.0, 0.058, 0.1003, -0.0959, -0.8413, 0.0997, -0.0173, -0.0369, -0.0633, -0.3061, -0.0459, -0.0617, 0.133, -0.0686, 0.1035, 0.0137, 0.0259, 0.0031, 0.0331, -0.156, 0.0427, -0.4964, -0.0783, 11.415, 0.0, -0.5809, 0.3614, -0.4689, 0.0216, 0.1313, 0.0611, -0.0031, 0.0488, 0.0497, 0.0, -0.3822, 0.1327, -0.0448, 0.0, -0.9661, -0.1437, -0.0103, -0.0171, -0.105, 0.0245, 0.407, 1.1028, -0.1415, 0.0592, -2.4338, -0.0566, -0.1429, 1.1132, -0.0032, 0.0084, 0.1681, -0.0186, -0.0958, 0.0483, 0.0081, -1.4204, 0.0, -0.1788, 0.0, -0.0226, 1.2492, 0.0022, 0.0, -0.5317, 0.1872, -0.0521, 0.0732, -0.0331, -0.3487, -1.248, -0.0538, -8.9043, -0.3214, 0.0748, 0.1381, -0.7407, -0.0743, 0.0866, 0.0708, 0.0564, 0.0529, 0.0302, 0.0533, 0.1329, -0.0115, -0.0161, -0.0035, -4.6929, 0.0312, -0.0088, -0.0792, 0.0426, 0.0032, 0.0098, 0.1821, 0.4727, -0.1488, -0.0175, -0.0532, 0.0665, -0.0109, -0.0231, 0.032, 0.068, -0.0656, 1.0816, -0.3551, 0.0142, 0.096, 0.047, 0.1996, 0.0414, -0.0449, -0.0897, 0.034, 0.038, 0.1301, 0.6269, 0.1952, 0.0057, 0.5341, 0.1104, -0.0233, 1.5492, 0.3583, 0.0, -0.0028, -0.0198, -0.7155, 0.0217, -0.027, -0.0378, 0.0, 0.0, -0.2149, -0.1598, -0.1859, -0.0014, 0.0288, -0.0592, -0.0959, -0.2082, 0.456, -0.0585, 0.0676, 0.0952, 0.0446, 0.0781, 0.0043, 0.0059, 0.0532, 0.1635, -2.8305, 0.0618, 0.0785, -0.0246, 0.1408, -0.0037, -0.0051, 0.1094, -0.0062, 0.3887, 0.0659, 0.0245, 0.1178, -0.0074, 0.0321, 0.0656, 0.0036, 0.1019, 0.1226, 0.4142, -0.4524, -0.1095, 4.5642, -0.0016, 0.1629, 0.0, -1.2225, 0.0055, 0.0559, 0.1793, -0.0144, -0.2625, 0.0005, 0.1225, 0.015, 0.0266, 3.0, -0.1021, 0.006, -0.0008, -0.0421, -0.0123, 0.0847, 0.0289, -4.3726, 0.0276, -0.1637, 0.6383, 0.0605, -0.7149, -0.022, 0.136, 1.0886, 0.0014, 0.0529, -0.0045, 0.0803, 0.1175, -0.0742, 0.0481, 0.0755, -0.1545, 0.6728, -0.917, 0.159, 0.5245, 0.0901, -0.0197, 0.0775, 0.2153, -0.541, 0.0662, 0.0, 0.0986, 0.2225, -0.0565, -0.0523, 0.0444, -0.3583, 0.0398, -0.0614, -0.038, 0.0255, -0.428, -0.0733, -0.1895, 0.4767, 0.0547, 0.1013, 0.8188, 0.0, 0.3486, -0.0041, -0.0257, -8.5833, 0.088, -1.0041, -3.1873, -0.0015, 0.0641, -0.1326, -0.0412, 0.1089, 0.0853, -0.5749, 0.1443, -0.2256, -0.0085, 0.0, 0.1083, 0.0582, 0.034, 0.0393, 0.0509, -0.1351, 0.1739, 0.2363, -0.0326, -6.1045, 0.0586, -0.0229, 0.0225, -0.1663, 0.0469, 0.0418, 0.0109, 0.0489, 0.2191, -0.0121, 0.1215, 0.1166, -0.0534, -1.4425, 0.1377, 0.1393, -2.7807, -0.1059, 0.01, -0.206, -0.0259, 0.098, 0.3284, -0.0098, -0.0033, 0.0262, -0.1569, -0.0389, -0.0149, 0.0434, 0.0, -0.0729, -0.0348, 0.1135, -0.6576, 0.0, 0.1436, -0.0091, 0.0163, -0.0579, 0.0379, 0.1056, 0.0192, 0.054, -0.1912, -0.085, -0.1332, -0.1571, -0.0121, -0.0147, -0.0904, 0.2563, 0.0297, 0.0941, -0.1255, -0.07, -0.1281, 0.0295, -0.0405, 1.116, 0.0743, 0.1286, -0.028, 0.0294, -0.5118, 0.1525, 0.0826, 0.0966, -0.0667, 0.0583, 0.122, -0.1094, 0.2443, 0.0723, -0.4233, -0.0478, 0.231, -0.4025, 0.0913, 0.0474, 0.527, 0.0929, -0.2583, -0.157, -0.0098, -0.1064, -0.0331, -0.0663, 0.1169, 0.0373, -0.1874, 0.0324, -0.0877, -0.0514, -2.0725, 0.1536, -0.02, -0.1072, 0.0527, 0.2626, -2.511, 1.8717, 0.0079, 0.0514, -1.2455, 0.0644, 0.2498, -0.0107, 0.0057, 0.5187, -0.0383, 0.0814, -0.8511, 0.0317, 0.0752, -0.3019, 0.0131, 5.0435, 0.1682, -0.0547, -0.0286, -0.2207, 0.0, -0.0851, -0.0437, -0.0881, 0.0714, -0.04, 0.0427, -0.0981, -0.0129, 0.3728, 0.0431, 0.0247, 0.0457, -0.0438, 2.6106, 0.171, -0.0016, -0.0201, 3.4875, 0.0022, 0.1625, 0.2935, -0.0053, 0.1005, 0.1587, -0.0262, -0.0389, 0.0942, 0.8138, 0.0115, -0.0254, -0.0319, 1.4724, -0.2061, -0.0029, 0.1134, 0.0416, 0.1166, -0.0753, 0.0, -0.0956, 0.0341, -0.0195, 0.349, -0.0348, 0.0535, 0.0154, 0.0162, 0.0, -0.0389, 0.0129, 0.0463, 0.0013, -0.17, -0.1175, -0.1174, -0.128, -0.0603, 0.0249, 0.1092, 0.0534, 0.0597, -0.1255, -0.0681, 0.0777, 0.0065, -0.2215, -0.3986, -1.7659, 0.0204, 0.076, -0.0011, 0.059, -0.0307, -0.0118, -0.0291, -0.03, 0.0019, -0.0284, -0.0112, 0.1786, 0.0619, 0.0, -0.1409, -0.1378, -0.3924, 0.0, 0.0193, 0.015, 0.0041, 0.0473, 0.0331, -0.0016, 0.0411, -0.0301, 0.1089, 0.1535, -0.0325, 0.0345, 0.1207, -0.0672, -0.0845, -0.0011, -0.0263, -0.0352, 0.034, -0.0847, -0.0308, 0.1123, 0.0362, 0.103, 0.301, -0.2429, -0.0189, -0.0096, 0.1127, 0.1475, 0.0565, 0.0455, -0.0683, 0.3454, -0.071, -0.4552, -0.0094, -0.3497, 1.8656, 0.0508, -0.0457, 0.0799, 0.1028, -0.4272, 0.0029, 0.0598, 0.1079, -0.5172, 0.1211, 0.037, 0.028, 0.0198, 0.0563, 0.0332, 0.2257, 0.0, 0.1943, -0.0271, 0.0488, -0.4698, 0.0606, -0.4215, 0.0, -0.1318, -0.0635, 0.0132, -0.1069, -0.4157, -0.542, 0.063, -0.0013, 0.9408, 0.1047, 0.1238, -0.6186, -0.8213, -0.0101, -0.1962, 0.2818, 0.0327, -0.0419, -0.0729, 0.0383, 0.1244, 0.0236, 0.7807, 0.0529, 0.3796, -0.0215, 0.0336, -0.0428, -0.0393, 0.1347, -0.0644, -0.105, -0.1801, 0.0489, 0.0623, 0.0283, 0.0326, 0.232, 0.063, 0.056, -0.0092, 0.0301, -0.0273, 0.1747, 0.2452, 0.3125, -0.1434, 0.2236, -0.0566, 0.0785, 1.1544, 0.0124, -0.0476, -0.7393, 1.0669, 0.17, 0.0311, 0.0875, 0.0842, 0.0177, -0.1057, 0.0234, 0.0348, -0.2908, -0.0087, -0.1066, 0.0566, 0.1065, 0.0, 0.039, -0.1152, 0.0122, -0.1981, -0.7289, -0.053, 0.5925, 0.0406, -0.1702, 0.0, 0.689, -0.0022, 0.6169, 0.0034, -0.0425, 0.0435, 0.1182, 0.125, -0.0568, 0.1089, 0.0861, 0.0, 0.0, -0.3269, -0.0263, 0.0219, 0.0745, 0.0886, -0.0556, 0.1433, 0.0525, 0.0032, 0.0675, -0.3191, -0.1949, -0.0005, -0.1134, -0.19, -0.0254, 0.048, -0.1273, -0.0625, -0.0886, -0.1407, 0.0173, -0.0329, 0.1532, -0.0223, -0.0391, 0.0293, -0.3, -0.0536, 0.3155, -0.0446, -0.0892, 0.2502, 0.0245, 0.0987, -0.0429, -0.0168, 0.0607, 0.0248, -0.0682, -0.8671, -0.0194, -0.0421, 0.0159, -0.2089, 0.1057, -0.0069, 0.0521, 0.0867, 0.1591, 1.5571, 0.1188, 0.0, 0.1037, 0.0114, 0.3884, -0.0089, 0.0463, -0.0038, -0.3251, 0.123, 0.0494, -0.1624, -1.1128, 0.039, 0.0325, 0.1024, 0.0, -0.0187, 0.0335, 0.0128, 0.972, -0.0653, 0.0222, -0.2789, -0.1191, 0.1199, 0.312, -0.0533, 0.0896, -0.6953, 0.0766, 0.0579, -0.1133, 0.2002, -0.0084, 0.0889, -0.0139, 0.045, -0.1051, 0.2604, 0.0151, 0.0138, 0.4471, -0.1771, 0.0042, 0.2299, -0.1956, 0.0, -0.0022, 0.0069, -0.125, -0.7064, -0.6267, -0.2448, -0.0561, -0.0436, 0.0913, 0.0583, 0.004, 0.0909, -0.0265, -0.0481, -0.2413, 0.0899, -0.0248, -0.3278, -0.0442, -0.0869, 0.2013, -0.0056, 0.1049, 0.0735, 0.0815, 0.0003, -0.0457, 0.0258, 0.8069, 0.2142, -0.0468, 0.0294, -0.002, 0.1809, 0.0073, 0.1362, -0.0604, 0.0725, 0.0137, -0.0533, 0.0678, -0.0367, 0.115, 0.0996, 0.2488, -3.3487, -0.2047, 0.0018, -0.0349, -0.4428, 1.2353, 4.8708, 0.0548, 0.0301, 0.0183, -0.0361, 0.0454, -0.1862, 0.0114, -0.0282, 2.8742, -0.0906, 0.1348, -0.0361, 0.2932, -0.0216, 0.1021, 0.082, 0.0711, 0.0465, 0.0963, -0.0988, 0.0339, 0.0859, 0.0712, -0.3758, 0.0251, 0.999, 0.6452, 0.0298, 5.7283, -0.0137, -0.0119, -0.0392, 0.0384, -0.0634, -0.2504, -0.0942, 0.0981, 0.1336, 0.0026, 0.1629, 0.0266, -0.036, 0.0233, 0.1841, -0.2294, -0.5425, -0.0191, 0.0431, -0.4329, 0.3656, 0.0745, -0.064, 0.0142, 0.0556, 0.0185, -0.0019, -0.0239, -1.1051, 0.0622, 0.0, 0.0363, 0.1056, 0.1007, 0.0506, -0.1417, -0.1371, 0.0028, -0.0581, -0.0619, 0.0599, 0.0245, 0.1292, -0.1055, -0.0604, 0.0581, -0.1057, -0.036, 0.0, 1.0851, 0.0198, -0.3167, -0.0697, -0.4402, -0.2869, 0.0091, 0.0237, 0.0351, 0.0256, -0.1485, 0.053, -0.0581, -0.0029, 0.1215, 0.0826, 0.032, 0.0613, -0.0631, -0.0629, 0.1663, 0.01, 0.1058, 0.0392, -0.2328, -0.0851, -0.0352, 0.0443, 0.0074, -0.1335, 0.053, -1.3034, 0.1152, 0.5434, -0.0016, -0.2097, 0.0548, 0.0244, 0.1364, -4.8246, -0.4671, -0.09, -0.079, 0.1175, 0.0107, -0.0165, 0.0262, 0.0876, 0.8649, -3.9756, 0.1045, -0.0217, 0.0695, -0.0083, 0.0747, -0.4708, 0.0008, -0.0029, -0.0453, 0.0, 0.2074, 0.0328, -0.0161, -0.1801, 0.0935, 0.042, 0.164, 1.4559, -0.0438, -0.1467, -0.0194, -0.0467, -0.1384, -0.2401, -0.1073, 0.0604, 0.0726, -0.3537, 0.0766, 0.0334, -0.047, 0.0646, -13.2542, 0.506, -0.5645, 0.0288, -0.5789, 0.4356, 0.0831, 0.1129, -0.2883, -0.063, -0.0422, 0.0033, 0.004, 0.3971, 0.1558, -0.0157, -0.0107, 0.0118, 0.0117, -0.0024, -0.001, -0.0103, 0.0877, 0.7682, -0.1405, 0.1223, 0.717, 0.0556, 0.1307, 0.0075, 0.1728, -0.0514, 0.0918, 0.0348, 0.0464, -0.1735, -0.0332, 7.7992, 0.3299, 0.2284, 0.1716, -1.2406, -0.0358, 0.0764, 0.0737, -0.0028, 1.0157, 0.0, -0.1651, -0.1431, 0.0472, 0.0194, 0.0259, 0.0, -0.0692, -0.1217, 0.063, 0.1867, 0.0976, -0.0727, -0.8839, 0.0855, 0.0299, 0.2064, 0.0, 0.0038, 0.0125, -0.0017, 0.0167, -0.7935, -0.032, 0.0627, -0.2468, 0.109, -0.1672, 1.1612, -0.0222, 0.0942, 0.0489, -0.017, -0.0701, -5.39, -0.0257, 0.0506, 0.0097, 0.0371, 0.0334, 0.1173, 0.0704, -0.1578, -0.02, -0.0142, 0.0855, -0.189, 0.0499, 0.0382, -0.0936, -0.024, 0.138, -0.0589, 0.1036, 0.1394, 0.1346, -0.0619, -0.0238, 0.105, 0.0278, 0.077, -0.2593, -0.0243, 0.1843, 0.1381, 0.0989, 0.0624, -0.0474, 0.0651, -0.0321, -0.021, 0.0443, -0.0082, 0.0019, -0.0098, 0.042, 0.1197, 0.0836, 0.089, 0.1073, 0.1138, 0.193, -0.0958, -0.0844, -0.0816, -0.3196, -0.0808, -0.111, 0.5371, -0.2949, -1.4511, -4.5821, 0.0964, -0.0076, -0.3865, -0.2322, 0.0115, -0.0436, 0.0, 0.0249, -0.0173, 0.8311, 0.0186, -0.0292, -0.1479, -0.0881, -0.0385, -0.0098, -0.0128, -0.0482, 0.1388, 0.0818, 0.1022, 0.0838, 0.0329, 6.2632, 0.111, 0.0672, -0.0429, -0.0781, 0.3151, -0.3437, -0.1494, 0.0439, 1.6367, -0.0331, 0.2202, -0.0759, -0.0936, 0.0, -0.2422, -0.1982, 0.0789, -0.0222, 0.0644, 0.2174, 1.9338, 0.1916, -0.1154, 0.0, -0.0824, -0.0135, -0.1331, -0.1557, -0.0837, 0.2894, 0.101, -0.045, 0.1666, 0.0094, -0.0287, -0.0273, 1.3633, 0.0952, -0.0599, 0.2355, -0.0486, -0.0616, 0.0434, 9.13, 0.0076, 0.0216, -0.4616, 0.2173, 0.04, 0.1079, 0.0556, 0.075, 0.0827, -0.0114, 0.192, -0.2921, 0.464, -0.077, 0.0325, 0.0688, 0.0019, 0.0959, 0.038, 0.3509, 0.2902, 0.1245, -0.0706, 0.6923, 0.3151, -0.078, -0.1102, -0.0391, 0.0, 4.4136, 0.0012, -0.8177, -0.7645, -0.0602, 0.0, 0.0374, -0.0578, 0.1058, 0.0695, 0.0, 0.0883, 0.0779, 0.0339, -0.0613, 0.1608, -0.845, 0.0629, 0.0, -1.5253, -0.1559, 0.0503, 0.0487, 0.127, 0.0295, 0.2102, 0.2104, -0.1423, -0.0877, 0.0702, 0.1876, 0.0231, 0.0152, 0.0415, -0.0066, -0.4628, 0.0379, 0.1109, 0.53, 0.0009, 0.0198, 1.2883, -0.7417, 0.0, 0.0156, 0.0426, -4.3817, 0.0048, -0.0252, -0.1848, -0.3225, 0.0933, 0.215, 0.038, 0.0678, -0.2906, -0.2358, -0.1763, -0.0887, 0.0059, -0.0662, -0.1357, 0.0096, -0.1209, 0.2326, -0.0447, -0.0014, -0.0308, 0.1066, -0.0036, -0.046, -0.1468, 0.0217, 0.005, 0.7152, 0.0256, 0.0569, 0.039, -0.0719, -0.1111, -0.0784, 0.31, 0.0465, 0.0385, -1.835, -0.862, -0.5748, 0.1533, -0.0912, -0.1078, -0.0235, 0.0286, 0.0376, 0.077, 0.0, -0.1044, 0.0721, -0.0091, -0.021, 0.0812, -0.0452, 0.0, 0.0292, 0.0934, 0.25, 0.6427, 0.0322, -0.0503, -0.0756, -0.5331, 0.3011, 0.4491, -0.0177, 1.2321, 0.0665, 0.0, 0.0711, -0.5045, -0.0695, 0.0064, 0.0744, 0.0659, -0.2161, 0.0, 0.6816, 0.0851, 0.0219, 0.019, 8.3129, 0.0177, -0.0616, -0.0686, 0.166, -0.0775, 0.0645, -0.0733, -0.0155, 0.0279, 0.0186, -0.0307, 0.1504, -0.0612, 0.0957, -0.0476, 0.0358, -0.0057, -0.2006, -0.1612, -0.0156, 0.0623, 0.0679, -0.0524, -0.0417, 0.7811, 0.0624, 0.1008, 0.0338, -0.0745, 0.0391, 0.1173, -0.0063, -0.0002, 0.0306, 0.0513, -0.0112, -0.0652, -0.9576, 1.2998, -0.0051, -0.0527, 0.1739, -0.0312, -0.0513, 0.0483, 0.0301, 1.617, -0.0284, -0.0013, 0.0069, 0.1831, 0.0115, 0.0615, -0.7756, 0.1144, -0.063, 0.2279, 0.5252, 0.1256, 0.1211, -0.0692, 0.6414, 0.0, -0.0313, 0.938, -0.0312, -0.0296, 0.0547, -0.1011, -0.0346, -0.0606, 0.0242, 0.054, -0.1209, -6.6883, -0.1581, 0.0002, 0.0603, 0.037, -0.0575, -0.0517, -0.1859, -2.1417, 0.017, 0.0029, -0.0651, -0.0578, 0.1797, 0.0355, 0.1012, -0.0505, 0.0233, 0.0136, 0.2428, -0.1712, -0.0587, -0.1046, -0.5589, 0.0971, 0.0131, -0.0789, 0.0886, 0.1207, 0.1755, 0.0176, 0.0782, 0.0674, 0.2946, 0.0202, -0.0913, -0.0206, 1.2059, 0.0971, 0.1849, -0.1817, 1.6525, 0.2208, 0.1097, 0.2978, -0.0592, -0.1653, 0.0066, 0.1866, -0.2036, 0.0511, 0.0752, 0.0147, 0.1302, -0.1039, -0.2239, 0.9096, 0.2024, -0.0453, 0.192, -0.0513, 0.2883, -0.1781, -0.0083, 0.0393, 0.005, -0.19, -0.0351, -0.103, -0.0048, -0.3846, -0.0389, -0.0391, 0.0, 0.0, 0.0366, -0.1516, -0.1293, -0.0051, 1.4184, 0.0, -0.1598, -0.3586, -0.3389, 0.0019, 0.0664, -0.0138, 0.7872, -0.0799, -0.1532, -0.0051, 0.0873, 0.0008, -0.0619, 0.0955, 0.0683, -0.0444, 0.0839, 0.088, 0.0816, -0.0021, -0.0787, 0.1012, -0.0008, -2.5492, 0.0989, 0.0213, -0.0352, 0.0447, 0.1615, 0.0473, -0.0531, 0.0042, 0.022, 0.0884, 0.1324, 0.0201, 0.0095, 0.0, -0.0359, 0.0209, 0.0227, 0.0226, 0.0481, 0.096, -0.0355, -0.0678, 0.1869, 0.0631, -0.1767, -0.0706, -0.102, 0.0207, -0.0477, 0.0036, 0.0234, -0.5854, -1.5916, 1.6217, 0.0, 0.003, -0.0259, 0.0331, -0.0397, 0.099, 0.0708, -0.0239, 0.1106, 0.0372, -0.2741, -0.0147, 0.1008, 0.0256, 0.0, 0.0377, 0.06, 0.0, -0.0088, 0.0, -0.0462, -0.0281, 0.059, 0.0208, 0.0049, -0.0021, 0.0069, 0.0, -0.0504, -0.0533, 0.0882, 0.2224, -1.4048, 0.0531, -0.0382, 0.0757, -0.8928, -0.0562, -0.5435, 0.2752, -1.306, -0.2128, -0.0089, 0.1934, 0.1637, 0.0811, 0.0, 0.0709, -0.044, 0.6351, -0.4379, -0.0655, 0.0, -0.0505, 0.0055, 1.2806, -0.4725, 0.0, 0.053, -0.0907, 0.0468, 0.0969, 0.0868, 0.0, 0.0, -0.0445, -0.0255, 0.0162, 3.0741, -0.0039, -0.2984, 0.0113, -0.26, 0.0219, -0.1078, -0.0787, -0.1359, 2.1875, -0.2372, 0.0296, -0.0366, 0.0051, 0.7457, -0.0005, 0.0775, 0.4038, 0.1503, 6.898, 0.0479, -0.1481, 0.0497, -0.1365, 0.5671, -0.0221, 0.1333, 0.0693, 0.0805, 0.0782, -0.1652, 0.8204, -0.0798, 0.1475, 0.0476, -0.3309, 0.0931, 0.4842, 0.5377, 1.4359, 0.2223, 0.1817, -0.0285, -0.6853, -0.0457, 0.0012, -0.0745, -0.1723, 0.0221, 0.0868, -0.2131, -0.0239, 0.2182, 0.0177, -0.0673, 0.0843, -0.0884, 0.0616, 0.203, 0.1218, 0.0524, 0.1027, 0.1595, -0.0007, 0.0, 3.1725, 0.4466, -0.0136, -0.1469, 0.0, 0.4927, 1.6183, 0.1191, 0.0547, 0.0011, 0.1233, -0.0387, 5.0877, -0.0131, -0.0882, 0.0264, 0.0151, 0.1506, 0.0219, 0.1821, 0.0679, 0.1161, 0.0175, 0.081, 0.0094, 1.4656, -1.032, 0.0238, -0.0909, -0.0509, 0.2867, 0.1225, 0.0341, 0.119, 0.1562, 0.3845, -1.4942, 0.0575, 0.1791, -3.7309, 0.0095, -0.1296, 0.0, 0.0825, -0.6326, -0.1147, 0.0331, -0.0498, 0.0626, 0.2476, 0.0662, -0.1791, 0.0106, -0.0506, 0.1271, 0.071, 0.0376, 0.0, -0.5223, 0.1459, 0.0481, -0.0421, 3.3683, 0.0, 0.0941, 0.0479, 0.1019, -0.093, 0.4317, -0.0216, -0.3213, -0.0409, -1.9382, -0.0946, 0.0419, 2.7825, 0.21, 0.0346, -0.0168, -0.166, -0.036, 0.0866, 0.0006, 0.0543, 0.1016, 0.0581, -0.0714, 0.0805, 0.0804, -0.0228, 0.0592, -0.9073, 0.0, -1.3083, 0.0318, -0.022, 0.0366, 0.0888, 0.1129, -0.1589, 0.051, -0.0512, -0.0358, 0.2844, -0.0381, 0.0705, 0.0831, 0.0296, 0.0586, -0.0745, 0.0276, -0.8573, -0.1306, -0.0156, 0.0398, 0.0925, 0.0901, -0.0373, 0.0125, 0.0029, 0.0, 0.055, 0.2759, 0.0318, -0.0409, -0.6348, 0.2073, 0.1126, 0.2944, 0.0295, 0.1848, 0.0333, 0.0802, 0.0829, -0.0201, 0.1162, 0.0194, 0.0061, -0.5407, -0.0847, -0.01, 0.1886, 0.0107, 0.061, 0.0999, 0.0051, -0.1298, -0.0395, -0.0531, 0.0751, 0.0651, 0.246, -0.1246, 0.0395, 0.0004, 0.0068, -0.1497, -0.0337, 0.0, -0.2954, 0.1218, 0.0839, 0.0515, 0.0558, -0.0148, -0.1252, -0.0084, 0.1183, -0.3459, -0.1019, -0.6472, -0.0803, 0.1258, 0.0946, -0.0378, -0.0944, -0.5858, 0.0, -0.1858, -0.2103, 0.1648, 0.0371, -0.0225, -0.117, 0.1519, 0.046, 0.3171, 0.0252, -2.401, 0.0724, -0.0261, 0.0751, 0.072, 0.248, 0.46, -0.2681, 0.0609, 0.0133, -0.4196, -0.2268, 0.0537, -0.3312, 0.0252, 0.1212, 0.0806, -0.06, -0.0275, -0.0292, 0.0232, 0.1547, 0.0278, 0.0364, 0.1166, -0.035, 0.1114, 0.0294, -0.0677, 0.1618, -0.135, 0.0497, 0.038, 0.1786, 0.0577, -0.0087, 1.9223, 0.0, -0.1134, 0.1597, 0.0, -0.2022, 0.1857, 0.0583, 0.064, 0.0405, -0.026, 0.0359, 0.1462, 0.0297, 0.1567, 0.0571, 0.0405, -1.9825, 0.0661, 0.0029, 0.111, 0.0289, 0.0001, 0.0, 0.0346, 0.0186, 0.1888, 0.0, 0.0883, 0.4706, 4.7191, -1.6001, 0.0, 0.2174, 0.2741, 0.3105, 0.0658, 0.1218, 0.1759, 0.0791, -0.1431, -0.2266, -0.0783, -0.0462, 0.0682, 0.1066, -0.0454, 0.1613, 0.01, -0.0018, 0.1424, 0.0049, 0.0493, 0.0473, -0.071, 0.0379, -0.02, -0.1933, 0.0, 0.0228, 0.0144, 0.0643, -0.0159, -0.5094, -0.0791, -0.0386, -0.0321, -0.1061, 0.3336, 0.1993, -0.4297, 0.086, 0.0929, 0.0625, 0.0, -0.015, 0.0168, -0.2395, -0.1348, -0.1156, -0.2448, 1.3417, -0.0386, 0.0, 0.1447, 0.0318, 0.0193, 0.0111, -0.6351, 0.2166, 0.0429, 0.0801, 0.0264, -0.0685, 0.0355, -0.0346, -0.4854, 0.1149, -0.1108, -0.0663, 0.0437, 0.3964, -0.0469, 0.0, -0.4411, -0.0328, 0.1379, -0.1211, -0.0772, 0.1063, -0.0658, -0.0928, 0.0379, -0.0564, 0.0157, 0.0131, 0.2532, -2.7778, 0.2525, 0.0466, 0.0146, -0.1719, -0.0928, 0.1838, 0.3851, -0.0156, -0.8171, 0.1057, 0.0266, 0.049, 0.043, 0.0455, -0.124, 0.0491, -0.0065, -0.1635, 0.0132, -0.22, 0.0, 0.0106, 0.489, 0.0503, 0.6416, -0.0388, -0.0541, 0.313, -0.0213, 0.0308, 0.1157, -0.1169, -0.056, 0.0584, -0.0419, 0.0695, 0.1324, 0.1286, 0.0567, -0.0105, 0.0827, 0.0856, 0.0933, -0.1287, -0.0271, -0.1682, 0.0, 0.0786, 0.0907, 0.0, 0.035, 0.2364, -0.0434, 0.5938, 0.0653, 0.0576, -0.0261, 0.0672, -0.0649, 0.0798, 0.1148, 0.0697, 0.0192, -0.0358, 0.0798, -0.0346, 0.0789, 0.0312, 0.0648, 0.1197, -0.0077, 1.4359, 0.5159, 0.0, 0.1025, -0.0738, 0.0399, 0.1506, 0.0507, -0.0462, -0.0734, -0.018, 0.0094, -0.1194, 0.0572, 0.0846, 1.2248, -1.0764, 0.0611, 0.1303, 0.064, 0.5206, -0.0928, 0.0778, 0.0, 0.2445, 0.0188, -0.1048, -0.0567, 0.7486, 0.0248, -0.1583, 0.0707, 0.1361, -0.0669, -0.0206, -0.066, -0.0183, -0.083, 0.0302, -0.0053, 0.0724, -0.1037, 0.0878, 1.0983, 0.0138, 0.0347, -0.028, -0.0617, 0.127, -0.0113, -0.0254, 0.0, 0.0152, 0.0525, 0.0483, 0.0, 0.0211, 0.6472, -0.0362, -0.0258, 0.0, 0.0076, -0.1704, 0.0539, 0.4272, 0.0485, 0.0, 0.0214, -0.046, 0.5562, 0.2628, 0.0, 0.0246, -0.0191, 0.0825, -0.0193, -0.1016, 0.1014, 0.1291, -0.0304, 0.078, 0.0311, -0.0352, 0.0186, 3.5233, -0.0297, 0.0579, 0.0199, 0.0174, 0.0105, -1.2764, 0.1069, -0.4156, -0.0732, 4.035, -0.1252, -0.0006, 0.0177, -0.0617, 0.0623, -0.0016, 0.0, 0.0021, -0.0514, 0.107, 0.0409, -0.0271, -0.0268, 0.036, 0.0693, 0.039, 0.0075, 0.0478, 0.0923, 0.055, 0.3361, 0.008, 0.0161, 0.1652, 0.1352, 0.0931, -1.263, -0.1757, 0.0251, 0.0842, -0.0008, 0.0181, -0.1808, -0.0084, 0.0, 0.0653, 0.0461, 0.0384, 0.0376, -0.0191, 0.0199, 0.012, 0.0203, 0.0045, -0.0454, 0.0423, -0.074, -0.0357, -1.0604, 0.312, 0.0416, 0.0, -0.1249, -0.0028, 0.0441, -0.0489, -0.0494, -0.8983, 0.2535, -0.1496, 0.0, -0.2253, 0.0236, -4.1562, 0.0654, 0.0124, 0.0644, 0.5819, 0.2943, -0.3539, -0.4034, 0.0298, 0.0593, 0.0687, 0.1361, 0.0186, -0.102, 0.0111, 0.069, -0.0483, 0.3983, 0.0548, 0.0003, -0.4701, -0.1112, 0.6307, -0.1741, 0.0509, -0.0942, 0.0243, 0.1658, 5.1778, -0.3613, -0.1908, -1.3898, 0.0777, -0.1668, 0.2021, -0.4133, 0.0162, -0.2143, 0.1191, -0.039, -0.0609, 0.0213, 6.5417, 0.0633, 0.091, 0.0269, 0.1153, 0.0706, 0.0334, -0.0739, -0.0225, -0.1996, -0.0988, -0.1541, -0.4671, -0.3035, 0.0858, 0.2781, 0.0772, -0.0337, -0.2609, 0.1335, 0.0288, 0.0753, -0.1172, 0.025, 0.0174, 0.1114, -0.0708, 0.0186, -0.1583, 0.1151, 0.0501, -0.1863, 0.0815, 0.022, 0.0333, -0.1118, 0.1634, 0.0, 0.0459, 0.0488, 0.0142, 0.0, 0.0, -1.2791, 0.0354, 0.0787, -0.3619, 0.0846, 0.022, 0.0771, 0.0393, 0.2293, -0.19, -0.1112, 0.2369, 0.0654, -0.0162, 0.0051, 0.0583, -0.6033, 0.1174, -0.4175, 0.0153, -0.032, 0.2251, 0.0243, -0.1556, 0.0341, -0.0042, -0.0307, 0.0, -0.0252, 0.4119, 0.0433, -0.0882, -0.0233, 0.0154, -0.0387, 0.0804, 0.2408, 0.0668, 0.1946, -0.0135, -0.041, 0.0881, -0.4551, 0.0109, 0.0102, 0.0196, 0.1413, 0.0321, -0.1977, -0.0179, 0.0872, -0.049, 0.0983, 0.0584, -0.3102, 0.1263, -0.0119, 0.072, 0.0516, -0.1986, -0.0459, -0.1008, -0.0251, 0.139, 0.1789, 0.2071, -0.038, 1.2354, 0.3404, -0.0018, 0.0529, 0.12, -0.0, -0.2033, 0.4513, -0.0248, 0.1936, -0.0699, -0.3415, -0.0404, 0.0, -0.0069, 0.1876, 0.0151, 0.0, 0.0198, -0.3671, -0.1434, -0.4751, 0.2302, -0.1732, 0.0, -0.2101, -0.0352, 0.0371, -0.0053, 0.0547, 0.0917, 0.154, -0.1184, 0.0709, -1.858, 0.0574, 0.1526, 0.0052, 0.023, -0.0319, 0.0, 0.8008, -0.0145, -0.0632, 0.0, 0.1401, -0.1552, 1.6627, 0.0012, 2.3094, 0.0, 0.066, 0.0344, -5.4225, 0.0164, 0.0864, 1.8115, 0.1284, 0.0743, 0.4231, 1.1067, 0.0114, -0.3148, -0.0252, 0.0648, -0.0418, -0.1482, 0.0359, -0.2326, 0.0424, -0.4393, -2.1782, 0.0526, 0.0444, 0.036, 0.0, -0.0317, 0.0, -0.0901, 0.0, -0.0469, -0.0427, 0.0067, 0.1384, 0.0, 0.074, -0.0281, 0.1265, -1.2708, 0.1648, 0.0514, 0.1362, 0.1443, 0.0333, 0.059, -0.2632, 0.3769, 0.0261, 0.0796, 0.0, 0.1274, 0.0447, -1.34, 0.0411, 0.0773, 0.0613, 0.0403, 0.2463, -2.2052, 0.0374, -0.1892, 0.0219, -0.0312, 0.1542, -0.0628, 0.0732, 0.1098, 0.0772, 10.3939, 0.0829, 0.1099, 0.0684, -0.0415, 0.4186, 0.0589, 0.0783, 0.0754, -0.0039, 0.0258, 0.0583, 0.0915, 0.0024, 0.1417, 0.0028, 0.1269, 0.7828, 0.0126, 0.0535, -0.0347, 0.0, 0.185, -0.0134, 0.0709, 0.0833, -2.6808, -0.0174, 0.0346, -0.0222, -0.921, -0.009, 2.9342, -0.0385, 0.0, -0.0071, 0.1375, 0.042, -0.2993, 0.0, -0.1506, -0.0877, 0.0407, -0.0125, 0.0, 0.0, 0.1662, -0.1881, -0.7839, 0.6257, -0.4444, -0.0482, -0.0632, 0.3286, -0.2154, 0.0671, 1.1178, 0.0, -0.0709, 0.5522, 0.145, -0.1713, 0.1392, 0.154, 0.4597, -6.3565, 0.0877, -0.0315, -0.0317, 0.0062, -0.4248, 3.492, 0.1097, 0.059, -0.0606, 0.7684, 0.48, -0.5213, 0.1708, 0.7398, 0.0275, 0.0088, 0.0192, -0.3143, -0.0151, 0.1876, -0.4691, 0.0198, 0.1654, 14.532, 0.0046, 0.0047, 0.0326, -0.0752, 0.4264, 0.0265, 0.0899, 0.0637, 0.0311, 0.0759, -0.0215, -0.2692, 0.1363, 0.1425, -5.8852, 0.1171, 0.0, 0.1433, 0.0766, 0.0898, 0.0967, -0.0901, -0.0947, 0.0638, -0.6919, 0.1117, -0.2584, 0.0, -0.1118, -0.0117, 0.1808, 0.0433, 0.0663, -0.0282, -0.0274, 1.6002, 1.3129, -0.0086, 0.1909, -0.0141, 0.0178, -2.255, -0.0142, 0.0092, -0.0346, -0.037, 0.1077, 0.0421, -0.1856, 0.1083, -0.0301, -0.0332, 0.2085, 0.3215, -0.0696, -4.205, -0.0127, 0.0, 0.0079, -0.15, 0.1229, -0.5205, 0.2323, -0.067, 0.0457, -0.0414, 0.088, -0.0053, -0.0058, 0.1329, 0.2009, -0.0539, -0.0262, -0.023, -0.0457, -0.0278, -0.1568, -0.0495, 0.0029, 0.5622, 0.0116, -0.007, -0.0573, 0.2233, -0.0206, -0.0883, -0.0381, 0.091, -0.0487, 0.0411, -0.0378, -0.0489, 0.0489, 0.009, 0.0365, 0.0032, 0.0411, -0.2504, 0.01, 0.34, 0.0427, -0.2115, -0.4627, 0.0223, 0.0409, 0.241, -0.1983, -0.4287, 0.0672, 0.0, -0.0136, 0.0, 0.0869, 0.0135, -0.2108, 0.037, 0.1416, 0.3911, 0.0083, 1.9838, -0.4851, 0.3765, 0.0, 0.0089, 0.1676, 0.0423, -0.0258, -0.0207, 0.2712, 0.239, -3.153, 1.0216, -0.1257, 0.1556, -0.3164, 0.1096, 0.075, 0.2256, -0.016, 0.2873, -0.0688, -0.0227, 0.0443, -0.1039, 8.04, 0.247, 0.0455, 0.1543, 0.1247, -0.068, 0.0588, -0.0395, -0.0289, -0.049, 0.032, -0.0118, -0.0134, 2.6405, 0.0, 0.0774, -1.3162, 2.2721, 0.0, -0.1138, -0.1106, -0.0164, 0.3264, 0.0887, -0.0107, 0.0682, 0.1132, 0.0203, -0.0341, 0.0693, -0.0817, 0.0422, 0.3423, 0.8632, 0.2721, 0.0, 0.0375, 0.094, 0.0683, 0.0638, -0.0267, 0.0334, -0.1678, -0.1769, -1.1106, -0.0013, 0.0793, -5.3611, -0.023, -0.5846, 0.6175, 0.0985, 0.0378, 0.0566, -0.0836, 0.1804, 0.1225, -0.0148, -0.0171, 0.0628, 0.0367, -0.1313, -0.0381, 0.0523, 0.0495, 0.0569, 1.3662, 0.076, 0.0796, -0.7615, 0.2301, 0.111, -0.0229, 0.0494, 0.6339, -0.2085, 0.0696, 0.0634, -0.2334, -0.0292, 0.0332, 0.1713, 0.099, 0.0, 0.0381, 0.1172, 0.0722, -0.0778, 0.0574, 0.0673, -0.0033, -2.5813, 0.0773, 0.1158, 0.0344, 0.0434, -0.0027, 4.532, -0.0278, 0.1251, 0.0301, 0.0143, 0.0898, -0.0684, 0.0685, 0.0914, 0.0684, -0.017, 0.6078, -0.0257, -0.0015, -0.0492, 0.8097, -0.026, -0.0035, -0.0067, 0.1516, 0.1272, 0.0043, 0.8521, -0.0772, -0.0872, -0.0169, 0.0441, 0.1363, -0.1056, -0.0043, -0.0664, 0.0904, 0.0538, 0.0587, 0.0314, 0.0068, 0.0306, 0.1681, 0.3364, 0.0056, 0.2526, 0.2486, 0.7924, 0.0604, 0.0277, -0.1983, 0.0175, 0.0747, 0.1891, 0.0012, 0.0365, -0.1492, -0.0339, 0.0414, 0.0432, -0.0652, 0.4534, 0.126, -0.0182, 0.0311, 0.0997, 0.2995, 0.0856, -0.0536, 0.806, -0.0602, 0.0, -0.1063, -0.0401, -0.0334, -0.038, 0.0694, 0.2721, 0.1005, 3.059, -0.0137, 0.0624, -0.0788, 0.1163, -0.2228, -0.0611, 0.0334, 0.1664, -0.0271, 0.0566, 0.0836, -0.1285, 0.0528, 0.0917, 0.1245, 0.0315, 0.0659, -0.043, -0.5619, -0.129, -0.1605, 0.2622, -0.004, -0.02, 0.1533, 0.0675, -0.0183, 0.0527, 0.5393, 0.0148, -0.1472, -0.0016, 0.03, 0.0673, 0.1337, 0.0554, 0.0762, 0.0215, -0.0105, 0.2792, 0.1872, -1.0795, -0.452, 0.0267, 0.0678, 0.2006, -0.2764, 0.0, -0.3265, 0.0079, 0.126, 0.0838, -0.0625, -0.2755, 0.0415, 0.1119, -0.0116, 0.0, 0.0767, 0.0725, 0.0934, 0.2742, 0.0, 0.3316, -0.1548, 0.1184, 0.0406, 0.0144, 0.0537, -0.0585, 0.0783, 0.0814, 0.0208, 0.1322, 0.0, 0.3069, 0.0481, -0.0584, -0.0461, 0.0403, -1.686, -0.0501, -0.0046, 0.0138, -0.1271, -0.0377, 0.0525, 0.1564, 0.1019, 0.7575, 0.0296, 0.0, -0.1337, 0.0618, -0.0198, 0.0412, -0.0508, 0.0341, -0.0695, -0.0261, -0.1062, 0.0719, 0.3114, -0.1844, -0.4869, 0.0243, 0.0162, 0.2147, 0.1675, -0.3493, 0.0, -0.0137, 0.0676, 0.019, 0.1023, -0.1052, -10.935, 0.0144, 0.0896, 0.1007, 0.1061, 0.1057, 0.0975, 0.4299, -0.0016, 0.0266, 0.0681, 0.1647, 0.0554, 0.5077, 0.05, 0.0, -0.0264, 0.0299, 0.0732, 0.1117, 0.3041, -0.6685, -0.0286, -0.2672, 0.2492, 1.4256, -0.9865, 0.4186, 1.2233, -0.8754, 0.0, 1.3473, -0.0728, 0.069, 0.1325, -0.3156, 0.0524, -0.344, 0.0063, 0.2531, 1.1408, 0.0231, 0.186, -0.0964, -0.5573, 0.8218, 0.1487, 0.0714, -0.0261, -0.0895, -0.1933, -0.0238, 0.0369, 3.2892, 0.5519, 0.1227, 0.2261, 0.1444, 0.11, -0.0832, -0.0133, -0.0321, 0.0044, 0.0581, 0.0811, -0.0119, 0.0, -0.0321, 0.0226, 0.0723, -1.529, -0.2102, -0.0149, 0.0579, -0.0964, 0.1172, 0.0405, 0.0636, -0.6894, -0.0137, 0.0683, -0.0633, -0.2796, -0.1703, -0.1116, 0.1247, 0.0352, 1.7467, 0.0733, -0.0457, -0.0063, 0.035, 0.0879, 0.0282, 0.0514, -0.1543, 0.0987, 0.0873, 0.1224, 0.1779, -0.1408, 0.0551, 0.0298, -0.0732, -0.0394, 0.1401, -0.2835, 0.1734, 0.2271, -0.525, -0.0925, 0.0844, 0.0306, 0.0, 0.6984, -0.1016, 0.0123, -0.0551, -0.02, 0.1343, -0.0652, 0.0936, 0.0224, 0.2574, 0.0358, -0.0443, -0.0306, 0.1078, -0.033, 0.017, 0.0359, -0.0562, 0.0946, 0.159, -0.0557, -0.0511, 0.1769, 0.0684, 0.0166, -0.0354, 0.0401, 0.0478, -0.0608, -0.1437, 0.2034, 0.0387, 0.1118, 0.2769, 1.6147, -0.1903, 0.1668, -0.0116, 0.0434, 0.0131, 0.0955, -0.9107, 0.0, 1.8346, -1.4717, 0.0, -0.1625, -0.1168, 0.0112, 0.0162, -0.0076, -0.4393, 0.065, -0.9375, 1.991, -0.0998, 1.4305, -2.083, -0.0382, 0.2844, 0.0376, -0.066, 0.0252, 0.0384, -0.0282, -0.0245, -0.0248, 0.1025, 0.0555, 0.1292, -0.9265, -0.2801, -0.082, -0.5, 0.0459, 0.0834, -0.0858, 6.9725, 0.0174, 0.0, -1.1134, 0.0257, -0.5376, 0.3495, -0.2085, 0.0, 0.8333, 0.075, 0.0, 0.2745, -0.0347, -0.1533, -1.081, -0.3346, -0.0084, 0.0743, -0.0314, -0.0214, -0.0349, -0.0423, 0.0274, 0.0716, 0.2302, -0.0547, 0.0409, -0.028, -0.0396, 0.0616, -0.0018, -0.0212, 0.5264, -0.0184, 0.0, 0.1998, -0.0177, 0.0239, 0.0471, 0.1327, 0.0, 0.0267, -0.0937, -0.1942, 0.0781, -0.2196, 0.169, 0.0628, -0.1904, 0.1573, 0.1368, -0.1123, -0.0754, -0.2948, -0.0208, 0.1503, 0.0, 0.2009, -0.031, 0.0782, -0.1552, -0.1014, -0.4707, 0.0802, 0.0775, -0.0336, -0.6956, 0.035, 0.0885, 0.0693, 0.1004, 0.0797, 0.1762, -0.0637, 0.1845, -2.5958, 1.0588, 0.0315, -0.0324, 0.1053, 0.0731, -0.0419, 0.2024, 0.0, 0.0432, -0.1917, -0.0662, 0.0, -0.0292, 0.1481, 0.1169, 0.0504, 0.3035, 0.1373, 0.0414, 0.0393, -0.1813, 0.0545, -1.695, 0.2347, 0.0948, 0.0919, 0.0707, 0.0505, 0.0593, -0.0022, 0.1375, -0.0205, -0.0617, 0.0191, -0.0383, 0.5643, 0.018, -0.1119, -0.0045, -0.0522, -0.2532, 0.093, -0.5441, 0.4608, -0.1343, 0.0452, 0.3006, -0.1918, 0.1811, -0.0238, -0.066, -0.0439, 0.0, 0.1197, 0.0398, 0.0, 0.1376, 0.001, 0.0109, -0.0443, -0.0164, -0.0144, -0.4151, -0.5066, 0.1377, -0.1259, -2.5819, -0.0705, -0.0816, 0.0947, -0.0208, 0.0792, 0.0668, -0.1126, -0.026, -0.0299, 1.0197, 0.1752, 0.0531, -0.0256, 0.0455, 1.6469, 0.1171, 0.0845, 0.0681, 0.0818, 0.0762, 0.085, 0.0997, 0.0851, 0.0682, 0.0355, -0.166, -0.033, -0.1827, -0.0285, 0.0024, 0.054, 0.0544, 0.2371, 2.0836, 0.0657, -0.011, 0.0254, 0.0085, 0.0278, -0.0165, 0.0059, -0.4051, 0.0859, 1.6147, 0.0643, 0.0081, 0.0372, 0.0308, 0.1299, 0.0569, 0.073, -0.1171, -0.089, -0.2129, 0.0666, 0.0914, -0.8072, -0.0048, 0.0027, -0.0333, -0.2572, -0.0547, 0.0649, 0.0099, -0.0535, -0.0595, 0.0518, 0.2612, -0.0234, -0.0412, -0.0325, 4.5983, -0.0163, 4.1958, 0.0166, 0.0299, -0.1435, -0.6875, 0.0, 0.0, -0.0249, 0.0672, 0.0, -0.0237, -0.0541, -0.0291, 0.095, 0.0522, 0.0131, -0.0215, -0.0261, 0.0401, -0.3668, -0.3355, -0.0273, -0.1181, 0.8921, 0.0766, -0.1148, -0.1855, -0.0253, -0.0549, -0.9403, 0.0439, 0.0, 0.0859, -0.0794, -0.0307, 0.0346, 0.035, -0.0159, 0.0082, 0.027, 0.2015, 0.0327, 0.0896, -0.2971, 0.0752, -0.0209, 0.0041, 0.1149, -0.1681, -0.1474, 0.0877, 0.2289, 1.5892, -0.0136, -0.3912, -0.0455, -0.024, 0.0916, 0.0, -0.0245, 0.5628, 0.0101, 0.0, 0.1672, 0.0643, -0.1475, -0.0284, 0.031, 0.6125, 0.0577, 0.0651, -0.1616, -0.0292, -0.0471, 0.297, -0.0812, 0.0, -4.2062, -0.0566, 0.0356, -0.0252, 0.0222, -0.6892, 0.0077, -0.013, -0.1522, 0.0235, -0.2148, 0.092, -0.048, 0.003, 0.1435, 1.8154, 0.0168, -0.0061, 0.0428, 0.0564, 0.0006, -0.8065, 1.0051, 0.3263, 0.0541, 0.0489, -0.4875, -0.6188, 0.0996, -0.0456, 0.1732, 0.0309, 0.0594, -0.05, 0.0, 0.3637, 0.0828, 0.0579, 0.8858, -0.0121, -0.0917, 0.0, -0.1009, 0.6831, 0.0248, 0.1136, 0.1025, -0.0644, -0.014, -2.354, -0.0123, -0.2974, -0.0224, 2.1913, -0.2235, 0.1917, -0.4529, -0.0444, 0.0379, 0.04, 0.1051, 0.0184, 0.0216, -0.6761, 0.1055, 0.0, -0.0169, 0.0406, 0.0542, 0.1337, 0.0371, 0.0198, 0.0126, -0.0843, -0.1216, -0.0254, -0.4725, 0.0553, 0.0219, 0.0348, 0.1809, -0.0824, 0.0629, 0.075, 0.4629, 0.0165, -0.0435, 0.032, 0.0013, 1.248, -0.4138, 0.0078, 0.0756, -0.9327, -0.2712, 0.0923, 0.13, 0.0, 0.0985, -0.8249, -3.7478, -0.055, 0.2541, -0.1081, -0.0057, -0.0799, -0.0671, 0.1389, 0.0735, 0.0732, 0.2334, 0.028, 0.5177, -0.4638, -0.3548, 0.1796, 0.0561, 0.1774, 0.0052, 0.0881, 0.0743, 0.0891, 0.0808, -0.0266, -1.9021, 0.0664, 0.1421, 0.0112, -0.0119, 0.2318, 0.069, 0.0634, 0.1248, -0.0843, -0.1657, -0.0197, -0.8491, -0.0962, 0.0148, -0.0352, 0.7653, -0.0738, 0.0165, 0.0748, 0.0768, -0.0416, -0.0034, -0.015, 0.0, -0.3396, 0.0503, -0.0914, 0.1399, 0.0303, 0.0, 0.0527, -0.1634, 0.0471, -0.2129, 0.0972, 0.0615, 0.0441, 1.602, 0.5681, -0.0103, -0.0269, -0.2066, -1.3737, -0.3036, 0.3079, -0.0702, 0.0792, 0.0794, 0.0192, -0.0337, -0.0488, 0.0178, 0.0978, 0.0615, 0.002, 0.0112, -0.0827, 0.0336, 0.1118, 0.3122, -0.1453, 0.2803, 0.017, 0.0125, -0.0314, -0.1539, 0.2006, 0.0792, 0.0802, 0.0346, 0.0506, -0.3188, -0.1462, 0.0111, -0.0325, 0.0701, 0.047, -0.023, 0.0745, 0.109, 0.0665, -0.0715, -0.1037, 0.0629, 0.0601, -0.0077, 0.0401, 0.0101, -0.152, -0.0458, -0.0521, -0.0952, -0.0281, 0.0879, 0.1102, -0.0179, 0.0716, 0.0879, -0.0899, 0.0472, -0.0043, 0.0032, -0.4373, -0.1487, -0.3794, -0.0274, -0.1856, -1.0055, 0.0, 0.0423, 0.0657, 0.1074, 0.0416, 0.0332, 0.0698, -0.0066, 0.09, 0.0323, -0.0677, -0.0278, 0.2101, -0.171, 0.0751, 0.0901, 0.0797, 0.1002, -0.0895, -0.1899, 0.2816, -0.0237, 0.1998, -0.1645, -0.0071, 0.0096, -0.1592, -0.0213, 0.0, -0.1733, 0.0206, -0.0559, 0.0833, 0.0772, 0.0072, 0.4026, 0.0105, 0.1275, 0.0511, 0.0, -0.0184, -0.0396, 0.0168, 0.0885, -0.0338, 0.0451, 0.0167, 0.0477, -0.0469, 1.2682, -0.2612, 0.0795, 0.0926, 0.1949, 0.0, -0.2583, -0.0572, -0.0295, -0.1352, 0.0871, -0.169, 0.0949, -0.0979, -0.027, -0.0142, 3.6589, 0.9018, 0.0233, 0.0662, -0.1089, 0.0252, -0.3694, 0.073, -2.8477, 0.0887, 0.0929, 1.2633, -0.0273, 0.0788, -1.6142, 0.1086, 0.084, 0.0885, 0.025, 0.0183, 0.0311, 0.0548, 0.0, 0.027, -0.0183, 0.0599, -0.0381, -0.2274, 0.0275, 0.071, -0.1874, 0.0, -0.3597, 0.1869, 0.011, 0.0091, 0.5458, 0.1531, -1.6077, 0.0267, -0.0153, -0.3742, 0.0115, 0.0337, 4.0208, 0.8421, 0.0747, 0.0866, 0.0946, 0.0702, -0.0063, -0.598, -0.0219, -0.3219, 0.114, 0.1545, 0.1017, 0.0675, 0.0868, 0.0313, 0.0289, 0.0116, -0.0682, -0.0501, -0.1437, 0.4354, 0.052, 0.04, -0.0997, -0.1437, 0.0223, 0.0275, -0.0621, -0.0525, -0.0309, -1.1942, -0.0363, -0.0516, -0.2354, 0.0183, 0.0924, -0.0293, 0.1287, 0.0581, 0.0, -0.0171, -3.775, 0.0794, -0.0152, -0.2555, 0.0574, 0.0109, 0.0, -0.131, -0.0127, -0.0014, -0.0555, 0.0, -0.0567, 0.1391, -0.009, 0.0868, 0.2226, 0.1027, 0.0562, 0.0478, 0.0545, -0.0203, -0.8522, -0.5377, -0.1169, 0.0667, 0.1292, 0.0484, -0.342, 0.017, 0.1301, 0.2996, 0.0032, -0.0278, -0.0269, 0.1354, 0.7245, 0.0029, 0.0073, -0.0806, 0.0841, 0.1158, 0.0903, -0.0157, 0.0299, -0.1005, -0.0117, -0.0778, 0.085, 0.155, 0.0048, -0.0635, -0.0986, -0.2875, -0.0013, 0.0832, 0.1874, -0.0342, 0.0467, 0.0026, 0.03, 0.0661, 0.1181, 0.0632, 0.0194, 0.0306, 0.0165, -0.0893, -0.0866, 0.0534, 0.0549, -0.0847, 0.0895, 9.3167, -0.4053, 0.0, 0.0361, 0.0438, -0.5645, -0.2314, 0.0252, 0.0002, 0.0313, 0.1575, -0.9807, -0.0223, 0.0475, -0.0405, -0.0228, 0.0521, -0.5254, -0.0162, 0.0106, 0.0, 0.3748, -0.0, 0.0804, 0.3137, 0.0426, 0.0307, 0.1023, -0.0886, 0.1027, -0.1228, -3.1712, -0.1288, 0.1281, 0.8675, -0.043, 12.755, 0.0712, -0.089, -0.7311, -0.0029, 0.0295, 0.406, 0.2237, 0.0769, -0.1733, -1.11, 0.0392, 0.0189, 0.3877, -0.0128, 0.2116, 0.0578, 0.0065, 0.0106, 0.1103, 1.5416, 0.0111, 0.1047, 0.0538, 0.0721, 0.7444, 0.0666, -0.1013, 0.5479, 0.4296, -0.8184, -0.1065, 0.5151, -0.3097, -0.0673, -0.1794, -0.0501, 0.1494, 0.0307, -0.4304, -0.0089, 0.0409, 0.0351, 0.0, 0.4003, 0.2638, -0.2345, -0.0306, -0.037, -0.1138, 0.1635, 0.9192, 0.0577, -0.053, 0.0833, -0.0722, -0.0388, -0.0574, 0.027, -0.0157, 0.0271, 0.0184, -0.0534, 0.0236, -0.0011, -0.0322, 0.0314, 0.1639, -0.1566, -0.0773, -0.0175, -0.0139, -0.2004, -0.2575, 0.0, -0.0018, -0.249, -0.4237, 0.0577, 0.0154, 0.0789, 0.0568, -0.1559, 0.2453, 0.0, 0.0257, -0.0105, 0.0323, -0.0083, -0.1346, -0.0162, 0.0849, -0.033, -0.0174, -0.148, 0.0568, 0.1695, 0.7037, -0.076, -0.035, 0.1235, -0.0875, 0.2774, 0.1091, 0.0015, -0.1518, 0.2125, 0.0563, -0.0877, -0.0271, -0.4621, 0.0, 0.2005, -0.2794, -0.0135, -0.0619, -0.0912, 0.0208, 0.0126, 0.0373, 0.098, -0.1539, 0.1396, 0.1143, -0.3774, 0.0577, -0.2096, -0.4011, -0.5168, 0.016, 0.0628, 0.1369, -0.0051, 0.1254, 0.029, 0.1175, 0.0, 0.1227, 0.0089, 0.0629, 0.0608, 0.1563, 0.2945, 0.0517, 0.0, 0.0002, 0.0587, -0.034, 0.144, 0.1298, 0.1789, 0.0982, 0.0355, 0.0867, 0.0451, -0.0171, -0.059, -0.0676, -0.4682, -0.0172, -0.4032, 0.2093, 0.1092, 0.1005, -0.0652, -0.0292, -0.6523, 0.0664, -0.0678, -0.3903, 0.2121, 0.5172, -0.0801, 0.124, -0.2762, -0.0182, 0.0, -0.0327, 0.0825, 0.0719, 1.5686, 0.0564, 0.043, 0.1325, 0.1186, 0.0, -1.5893, -0.3041, 0.0508, 0.066, 0.241, 0.0671, 0.0819, -0.004, -0.0488, 0.0273, 0.0624, 0.0439, -0.02, -0.0388, -0.0264, 0.5744, 0.2165, -0.0863, -0.0171, -0.0501, 0.0, 0.0739, 0.0669, 0.3059, 0.0705, -0.0534, 0.0, 0.1395, 0.0766, 1.415, 0.4913, -0.067, 0.5533, 0.0901, 0.0414, 0.0981, 0.1306, 0.0084, 0.0871, 0.0736, 0.0348, 0.0328, 0.093, 0.0912, 0.0701, 0.1275, 0.0, 0.0945, 0.0, 0.0694, -0.0263, 0.0265, -0.0195, -0.6409, 0.4267, 0.2478, 0.0972, 0.0273, 0.044, 0.2214, 0.2143, -0.2465, 0.0597, 0.1018, 0.0636, -0.0004, 0.1507, -0.0591, 0.149, 0.0863, 0.0337, -0.1279, 0.1759, -0.1516, 0.0625, 0.0761, 0.0559, -0.0049, 0.8635, 0.0785, 0.0403, 0.0346, 0.0133, -0.0132, 0.0754, 0.0515, -1.7205, 0.041, 0.1173, 0.0496, -0.582, 0.0464, 0.0841, 0.0691, 0.0114, 0.0622, 0.0, 0.1101, -0.0085, -0.0429, -3.618, 4.3545, 14.158, -0.4175, 0.0, 0.1026, 0.2383, 0.0742, 4.795, 0.0888, 0.0876, 0.0027, 0.0973, -0.1574, 0.0, 0.1285, -0.0044, 0.0061, 0.0224, 0.1492, 0.1114, 0.6229, 0.6036, 0.0497, -0.0207, -1.4393, 0.0508, -0.0098, 0.0727, 0.0556, -0.1169, -0.0191, 0.09, -0.3727, 0.0524, 0.2278, 0.0134, 0.0121, 0.4372, -0.0058, 0.0537, 0.1089, 0.1271, -0.0532, 0.027, 0.0415, -0.0866, 0.1081, 0.2536, 0.0, -0.0207, 0.0406, 0.018, -2.2454, -0.0496, -0.1433, -2.1293, -0.0532, 0.0859, 0.093, 0.0801, 1.0117, 0.0474, 0.0066, 0.0265, 0.0434, 0.1984, 0.0439, -0.0115, 0.0964, 0.0, -0.0169, 0.2521, 0.0755, -0.4267, -0.1633, 0.0782, 0.0495, -0.0025, 0.1449, -0.2913, -0.0038, 0.0691, 0.0157, 0.0432, -0.1498, 0.0, -0.0363, 0.1179, 0.0227, 0.0228, 0.0973, -0.0525, 0.0972, -0.053, 0.0768, 0.094, -0.0339, 0.0067, -1.1682, 0.1076, -7.0567, -0.1261, 0.0041, 0.0902, 0.0894, -2.5133, -0.0636, -0.4295, 0.0565, 0.975, 0.1035, 0.1355, -0.241, 0.241, 0.0336, 0.111, 0.0369, 0.0938, -0.0856, 0.1418, 3.1933, 0.0945, -0.527, -0.3288, -0.0931, 0.0857, 0.0412, -0.038, 0.0, -0.0294, 0.226, 0.0389, 0.0557, -1.7405, -3.335, -0.6083, 0.27, 0.0546, -0.0107, 0.1007, -0.0009, -0.0649, 0.0615, 0.0704, -0.1148, 0.0, 0.1393, -0.9943, 0.0451, -0.0183, -0.2618, 0.0677, 0.2958, 0.624, 0.0207, 0.0602, 0.1014, 0.0163, 0.0035, 0.6778, 0.1373, -0.0159, 0.1243, 0.0012, 0.0326, 0.0774, -0.0333, -0.1341, 0.0, 0.088, 0.6571, 0.0381, 0.1206, -0.5743, 0.1359, 0.085, 0.0966, 0.0795, 0.0673, 0.0822, 0.0701, 0.0651, 0.0634, 0.0, 0.0904, 0.0223, -0.3857, -0.1291, -0.115, 0.2268, 0.0099, 0.0841, 0.0257, 0.0182, -0.2781, 1.3329, 14.8433, 0.0914, 0.0849, -0.2454, -0.81, -7.5025, 0.4364, 0.1215, -0.1312, 0.1531, -0.157, 0.0539, 0.1864, 0.0093, 0.2302, -0.0753, 0.5134, -0.3648, 0.0276, -0.2073, 0.0039, 0.2775, 0.0459, 0.1621, 0.1216, 0.05, 0.0182, 0.1273, 0.034, -0.0578, 0.041, -0.1375, -0.1318, 0.125, -0.1649, -0.0737, 0.0029, 0.0586, 0.3043, 0.0176, 0.0141, 0.638, -0.1704, 0.0077, 0.0442, -0.0177, 0.0024, 0.0698, -0.07, 0.0, 0.0198, -0.0688, -0.0545, -0.0406, 0.0473, 0.0, -0.2109, 0.3047, 0.0936, 0.0636, 0.0812, 0.688, -0.1133, 0.0567, 0.0331, 0.0632, 0.0507, 0.0174, -0.3413, -0.5536, 0.0269, 0.1137, 0.0235, 0.0224, -0.124, 0.1042, -0.1256, -0.0071, -1.2044, -0.3621, 0.0, 0.0634, -0.0087, 0.0, -0.2993, -0.0261, 0.3321, 0.059, -0.1331, 0.0656, 0.0669, 0.0192, 0.1027, 0.0859, -0.0362, -0.0449, -0.3511, 0.0847, -0.0284, -0.0087, 0.0407, 0.1098, -0.2109, 0.2145, 0.0, 0.1649, -0.2842, 0.0042, 0.0826, -0.1637, 0.0766, -6.2306, 0.2464, -0.0125, 0.0294, -0.0413, 0.0843, -0.1356, 0.0329, 0.0064, 0.2973, 0.0416, 0.5806, -0.1198, -0.1147, -0.0827, 0.0, 0.3521, -0.0313, 0.4292, 0.0674, -0.0316, -0.1197, 4.0083, -0.3865, 0.0681, 0.038, -0.197, -0.0298, -0.0102, -0.0583, 0.085, 0.1028, 0.0904, 0.099, 0.0932, -0.0159, 0.0372, 0.0859, -0.0512, 0.0643, -0.0181, 0.0847, 0.102, -0.0136, 0.027, -0.0151, -0.0017, -0.1157, -0.0952, 0.0, -0.0186, -0.0186, 0.0537, -0.0597, 0.0273, 0.1012, 0.1363, 0.0661, 0.0629, 0.0586, -0.0588, 0.0587, -0.2888, -2.665, -0.0562, 0.1162, 0.0079, 0.0955, 7.515, 0.0996, 0.0637, 0.154, -0.0058, 0.0873, 0.0914, 0.1126, 0.1062, 0.4008, 0.0259, -0.1021, 0.1312, 2.1083, 0.0108, 0.0566, -0.4659, -1.0407, 0.8433, 0.1683, 0.0722, 0.1958, 0.1144, 0.0877, 1.4761, -0.204, -0.0778, 0.1471, -0.0524, -0.0428, 0.0634, 0.0122, 0.0696, 0.028, 0.0679, -0.5561, 0.0838, -0.6875, 0.0647, 0.0678, 0.0494, 0.1627, 0.195, -0.0354, 0.3289, 0.1984, 0.0793, -0.5247, 0.048, -0.08, -0.0103, -0.0068, 0.0223, -0.0096, 0.0876, 0.0355, 0.0511, -0.282, 0.0479, 0.0024, -0.8579, 0.1229, 0.2166, 0.1936, 0.0128, 0.0225, -0.1412, -0.0124, -0.006, 0.1919, 0.0795, -0.0992, 0.5342, -0.5009, 0.0695, 0.1677, -0.2606, 0.1902, 0.0079, -0.0909, 0.0331, 0.0685, -0.1227, -0.0544, -0.0472, 0.0201, -0.0508, -0.0289, 0.0697, 0.0449, 0.3686, -0.4525, -0.023, -0.1123, 0.1399, 0.0915, 0.0781, 0.027, 0.0773, 0.0543, 1.0362, 0.1233, -0.3635, -1.5063, -0.1048, 0.0127, -0.6848, 0.1119, 0.0, 0.0155, 0.0309, 1.0127, 0.0112, -0.8228, -0.3101, -0.0757, -0.0054, 0.3414, 0.1677, -0.6616, 0.0045, -0.1759, 0.041, -0.1794, -1.1125, 0.221, 0.0276, 0.0681, -0.6765, -0.0859, 0.3361, -0.0421, 0.0, 0.0379, 0.2331, 1.1692, 0.0195, -0.0056, 0.0539, -0.0571, 0.0141, -0.0731, 0.088, 0.0324, 0.6348, -0.0874, -0.1819, 0.0538, 0.2657, -0.005, 0.113, -0.3382, 1.4158, 2.4712, 0.0132, 0.2475, 0.1066, 0.093, -0.0087, 0.067, 0.0335, 0.0, 0.0607, 0.0257, 0.0402, -0.0297, -0.0209, 0.0849, -0.0048, 0.1266, 0.0448, 0.0, 0.1349, 0.0015, 0.5202, -0.1156, 0.2479, 0.0058, -0.0055, 0.7192, 0.0, -0.0371, 0.004, 0.0794, 0.0723, 0.0512, 0.0536, -0.0405, -0.3258, 0.0, 0.0011, -0.124, 0.035, 0.0323, 0.0051, 0.001, 0.0701, -0.945, -0.0385, 0.1051, -0.3164, 0.1518, 0.0899, 0.0552, 0.1286, 0.0915, 0.0289, -0.0338, 0.8592, -0.0221, 0.2151, -0.9969, -0.0805, 0.1121, 0.1373, -1.5396, 0.0797, -1.2045, 0.1351, 0.0, -0.4436, 0.0035, -0.0104, 0.009, -0.0481, -0.0294, 0.6969, 0.0777, 0.0507, 0.0119, -0.0366, 0.0983, 0.0092, 0.0195, -0.0496, 0.0413, 0.0558, 0.0476, -3.1682, 0.1008, 0.1576, -0.0083, 0.0934, 0.0844, -0.041, 0.0303, 0.07, 0.0892, 0.1676, 0.1494, 0.2065, -0.0214, 0.0739, 0.0293, 0.8317, 0.1534, -0.017, 0.0682, 0.0971, 0.0323, 0.0654, 0.0395, 0.1944, -0.0046, -0.16, -0.025, -0.0973, 0.0554, 0.035, 0.0935, 0.1285, -0.0777, 0.139, 0.0291, 0.1198, -0.17, 0.0331, -0.0246, -0.0388, 0.9764, 0.1355, 0.1946, 0.0211, 1.1924, 0.7673, 0.0456, 1.4303, 0.4301, -0.0121, -0.0501, -0.1068, -0.036, 0.4305, -0.7676, -0.1582, -0.0397, -0.116, 0.1657, -0.0067, 0.0391, 0.0493, 0.0458, -0.0454, 0.0719, 0.0838, 0.0756, 0.0384, 0.0, -1.0673, 0.077, -1.7432, -0.6097, -0.0158, -0.0243, -0.1567, 0.07, 0.0242, -0.0029, -0.0749, 0.3269, 0.0206, -0.0525, -0.1898, 0.072, -0.3059, 0.0, 0.0591, 0.1638, 0.4664, 0.0, 0.1494, 0.0, 0.1553, 0.0933, 0.1238, -0.2311, -0.007, 0.3765, -0.0633, -0.0115, 0.0626, 1.1356, 0.0057, -0.4565, 0.3714, -0.0057, 0.0, 0.166, -2.2281, 0.1762, 0.1561, 0.8592, 0.0, 0.1878, 0.1436, 0.8806, 0.177, 0.1133, 0.0446, 0.0, 0.2002, -0.074, -10.3083, -0.1338, -0.2496, -0.1202, 0.0065, 0.5414, -4.894, 0.0963, 0.0395, 0.0, -0.1771, 2.1319, 0.0483, -3.8625, 0.6536, 1.0969, 0.0885, 0.0953, 0.0281, -7.47, 0.215, -0.3336, -0.2617, 0.0346, -0.0691, 0.0229, -0.205, 0.0384, 0.0939, 0.0887, -0.012, -0.0058, 0.0787, 0.025, -0.0639, 0.0603, 0.1292, -0.0077, 0.0904, 0.0088, 0.0958, 0.0824, -0.1394, -0.0488, 0.0764, -0.0226, -0.0545, 0.0817, -0.1009, -0.1015, 0.126, 0.4492, 0.0702, -0.0876, -0.1358, 0.0302, 0.0125, -0.0726, 0.114, 0.0979, 0.0, 0.1066, -0.0732, -0.1835, 0.0268, -0.0259, -0.7822, -0.0029, -0.0062, -0.0326, -0.1488, -0.2112, -0.1469, 0.0097, -0.0289, -0.4395, 0.0741, -0.0362, -0.0276, 0.0, -0.2691, 0.0925, 0.0454, 0.1186, 0.009, -0.0711, 0.0014, 0.0, 0.0952, 0.0606, -1.865, 0.1116, -0.0618, -0.0418, -0.0016, 0.1838, -0.1469, 0.0698, -0.0371, 0.2009, -0.1714, -0.0304, -0.6002, 0.0, 0.0, -0.0601, 0.0133, -0.0338, -0.0271, 0.5192, 0.0145, 0.0774, 0.2275, 1.054, -0.0674, -0.1878, 0.1151, -0.1036, -0.024, -0.0635, 0.0182, 0.1446, 0.0473, 2.3848, -0.019, 0.0096, -0.016, 0.0, 0.7324, -0.0817, -0.0742, 0.0057, -0.0088, -0.2064, -0.3507, -0.0893, -0.062, 0.0198, 2.39, 0.0709, -0.0587, 0.0035, 0.0067, 0.0633, 0.1266, 0.0, -0.0754, 0.0276, 0.0346, 0.7525, -0.0274, 0.0344, 0.0, 0.469, 0.1239, 0.0428, -0.2081, -0.8155, -0.0951, 0.0, -0.0625, 0.1404, -0.0082, 1.6022, 0.0391, 0.0, 0.1612, 0.0958, 0.0111, -0.0758, -0.0337, -0.0451, -0.1003, 0.0269, 0.0556, -0.0426, -0.012, 0.0221, 2.02, 0.0604, -0.0163, 0.1174, -0.0764, 0.0324, -0.1646, -0.0141, -0.7467, 0.019, 0.2188, 0.1636, -0.0389, -0.6126, 0.2412, 0.027, -0.0563, -0.3619, 0.0732, 0.0046, 0.0955, 0.0779, 0.0654, 0.1274, -0.0055, 0.0517, 0.2375, 0.0306, -0.0165, 0.0178, 1.3008, 0.0505, -0.0406, 0.0298, 0.1589, 0.0, -0.0604, 0.0819, 0.1649, 0.0, -0.2278, 0.0, 0.0059, -0.0477, 0.1258, 0.0421, -0.0004, 0.0912, 0.0197, -0.1832, 0.1118, -0.087, -0.0151, -0.0568, -0.0046, -0.1108, 0.0334, -0.0547, 0.0504, 0.2247, 0.0463, -0.0278, 0.1441, 0.0915, 0.144, -0.0716, 0.0, -0.1941, 0.0966, 0.2961, -0.1014, 0.0519, -0.025, -0.0266, 0.0115, -0.0287, -0.4955, 0.0234, 0.0443, 0.0628, 0.1308, -0.0321, -0.0322, -0.6055, 0.0503, 0.2773, 0.0894, -0.0637, 0.1214, 0.176, 0.0218, -0.0406, -0.2189, -0.1378, 0.5837, -0.1289, -0.0308, -0.0478, 0.2183, 0.1961, -0.0225, -0.0617, 0.0404, 0.0191, 0.1293, 0.0, 0.2484, -3.0685, -0.1261, 0.0799, 0.0669, 0.281, 0.1158, 0.0675, 0.0912, 0.1376, -0.0421, -0.0655, -0.0012, 0.1182, 0.0234, -0.4507, -0.0956, -0.0115, -0.0795, -0.0309, 0.0696, -0.0659, 0.0755, -0.0914, -0.0463, -0.0138, 0.0626, 0.0311, 0.0619, 0.132, -0.0853, -2.7704, -0.1589, 0.067, 2.1317, -0.0338, 0.8164, 0.1434, 0.0408, 0.197, 0.0277, 0.0319, 0.0086, 0.01, 0.0369, -0.3142, 0.1175, -1.3914, -0.0019, 0.0532, 0.0032, 0.0926, -0.11, 0.0123, 0.0787, 0.0992, -0.0014, 0.0486, 0.0129, 0.0113, 0.0361, 0.0168, -0.1039, 0.0869, 0.0207, 0.003, -0.0196, 0.1389, 0.9386, 0.0352, 0.0, 0.0753, 0.2499, 0.0199, 0.0655, -10.6308, -0.2138, 0.0659, 0.0672, 0.0188, 0.2002, 0.0524, -0.0371, 0.0392, -1.9362, -0.5, 0.077, 0.1928, 0.0021, 0.0943, 0.0602, 0.0011, 0.1296, 0.1113, -1.1383, 0.0802, 0.0351, -0.1171, -0.0276, -0.1973, -0.0268, 0.057, 0.1117, 0.1322, 0.0277, 0.048, -0.0899, -0.0327, -0.0364, -4.2675, -0.0665, 0.2743, -0.1966, 0.0, -0.0861, -0.1998, -0.0343, 0.1851, -0.0369, 0.1874, 0.0, 0.0083, 0.0399, 0.0041, -0.0121, 0.0001, -0.0045, 0.0249, 0.0, 0.0788, -0.1879, 0.0277, 0.0078, 0.007, -0.614, -0.0954, 0.0559, 0.0075, 0.0555, -0.04, 0.2591, 0.1233, -0.0265, -0.499, 0.066, 0.0577, 0.0723, 0.6014, 0.1067, -0.6109, -0.0328, -0.2983, -3.5128, -1.3853, 0.146, -0.4144, 0.0011, -1.7492, 0.1044, 0.0263, 0.1004, 0.0739, -0.0249, 0.029, 0.0352, 0.108, -0.0156, 0.0757, -0.1011, -4.9952, 0.0766, -0.2739, 0.021, 0.083, 0.0369, 0.9251, -0.049, 0.0185, -0.2181, 0.0281, 0.0363, -0.0023, 0.0088, -0.2761, -0.1327, 0.081, 0.0747, 0.0154, -0.9494, 0.0407, 0.0206, 0.116, 0.0, -0.0023, 0.055, 0.071, 0.0462, 0.3481, 0.1328, 0.3436, 0.0927, -0.0576, -0.3504, 0.0003, -0.0018, -0.1025, 0.1493, -0.02, 0.0493, 0.0128, -2.625, 0.4841, 0.2599, -0.0192, 0.1315, -0.053, 0.0399, 0.0861, 0.1379, 0.0614, 0.1154, 0.0524, 0.0759, 0.0837, 0.2516, 0.0603, -0.2112, 0.093, 0.0748, -0.0604, 0.3217, 0.0031, 0.0671, -0.0039, -0.0627, -0.9991, -0.0414, -0.0654, 0.0815, -0.075, 0.0534, 0.1035, -0.388, 0.0939, 0.0044, 0.0, -0.9238, -0.0272, 0.0102, 0.2258, 0.122, 0.0811, 0.1182, 0.0892, 0.0205, -0.2451, 0.1221, 0.0347, -0.0341, 0.0, 0.021, 0.2184, 0.1186, 1.1428, -0.1729, -0.1521, -0.0159, 0.1156, 0.1062, 3.3967, -0.1809, 0.1167, 0.087, 0.0289, -0.0573, 0.1032, 0.0, -0.0306, -0.1108, 0.0838, -0.0931, -0.042, -0.8339, 0.0019, 0.0631, -0.0171, -0.2759, 0.0022, -0.0387, 0.0051, -0.5554, -0.272, 0.3428, -0.0891, 0.1289, 0.0231, -0.063, -0.0153, 0.0398, 0.0496, -0.0089, 0.0387, 0.0329, -0.012, -0.0505, -0.0233, 0.1926, 4.8872, -0.0051, 0.0377, 0.2838, -0.0955, 0.1996, 0.1904, 0.0816, 0.0009, 0.0408, 0.0573, 0.0211, 0.1346, 0.0, 0.1015, 0.0904, 0.0806, 0.0795, 0.4866, 0.1037, 0.0, 0.0138, 0.0049, 0.0153, -0.0758, -0.0066, 0.8148, 0.1171, 0.1046, 0.0021, 0.0892, 0.5512, -0.2147, -0.0436, -0.4125, 0.0773, -0.0227, -0.0216, 0.0206, 0.0585, -0.0238, 0.1037, -0.0517, -0.0153, 0.0745, 0.104, -0.0929, 0.0027, 0.0024, -1.7442, 0.091, 0.0555, -0.3224, -0.0789, 0.0829, 0.0722, 0.0106, -0.0603, 0.0676, -0.2977, -0.074, 0.1339, 0.0629, 0.0034, 0.3667, 0.0468, 0.2622, -0.0151, -0.1447, 0.0652, -0.2576, 0.0234, 0.0569, 0.0034, -0.2526, -1.3712, 0.0832, 0.0378, -0.1144, 0.0094, -0.0642, -0.2466, -0.6536, -0.0324, -0.0823, 0.0446, -0.3328, -0.0533, 0.4344, 0.4815, 0.0077, 0.0331, 0.3312, 1.0256, -0.0626, -0.0299, -0.0651, -0.0686, -0.0254, -0.0067, 0.0312, -0.0709, 1.2665, -1.6214, 0.0567, -0.0241, -0.1908, 0.0684, 0.1431, -1.5349, 0.0349, 0.0502, -0.1033, 0.7789, 0.0758, 0.0266, -0.0548, -0.0017, -0.0351, -0.0355, 0.1355, 0.1298, 0.0, 0.1144, 0.4925, 0.2166, -0.2401, 0.3884, -0.059, 0.0955, 0.0448, 0.0645, -0.1813, 0.0, 0.066, 0.31, 0.5195, 0.0839, 0.0376, -0.0802, 0.1904, 0.0077, 0.0, 0.0025, 0.0104, 0.0337, -0.4411, 0.0508, 0.1161, -0.0952, -0.128, -0.0148, -0.1337, 0.1968, 0.9616, -0.0367, -0.0372, -2.0533, 0.0028, 0.0, 0.0, 0.0, 0.0815, 0.0113, -0.0314, -0.0684, 0.1112, -0.0044, 0.0089, 0.0593, -0.4199, 0.0633, 0.2348, 0.035, -0.1671, 0.0889, 0.0676, 0.0613, 0.1017, 0.0931, 0.0815, -2.14, 0.0, 0.0, -0.0432, -0.0637, -0.047, -0.1523, -0.0708, -0.0726, 0.0445, 0.1316, 0.0556, 0.0877, 0.8074, -0.1055, 0.6486, -0.137, -0.037, 0.1073, 0.0064, -0.0047, 0.0891, -0.0308, 0.0547, 0.0398, 0.0206, -0.1155, 0.0021, -0.0133, -0.019, 0.1383, 1.0005, -0.0941, 0.0069, -0.745, 0.0531, 0.0, 0.0914, 0.1157, 0.0904, 0.0051, -0.0182, -0.0289, 0.0282, 0.028, 0.0603, -0.1797, -0.0041, 0.0822, 0.0, -3.1073, 0.0, 0.0719, 0.1407, -0.024, 0.0831, 0.0068, -0.1187, -0.3849, 0.1493, -0.0757, 0.5073, 0.0842, 0.0628, -0.0151, 11.2683, 0.0233, 0.0943, 0.0, 0.0779, 0.0476, -0.0499, 0.0287, -0.25, -0.6297, -0.0255, -0.0119, -0.0598, -0.1379, 0.0849, -0.0296, 0.0087, 0.143, -0.1222, 0.0321, -0.0278, 0.0527, 0.0533, 0.0319, 0.0452, 0.0878, -0.0288, 0.0359, 0.0, 0.0, 0.6511, -0.2651, 0.1246, 0.0639, 1.3566, 0.3793, -0.4708, 0.4589, 0.0284, 3.105, 0.0644, -0.1301, -0.0216, 0.0125, -0.1273, 0.2332, 0.0153, 0.1241, 1.3822, -0.0089, 0.0742, -0.0492, 0.0595, 0.0561, -0.0023, -0.6, 0.2141, 0.1174, 0.0411, -0.0025, 0.1591, -0.7922, 0.0, 0.0426, -0.0438, -0.02, 0.0301, 0.0661, -0.0078, -0.0406, -0.0593, 0.0572, -0.0319, 0.1172, 0.0, 0.0103, 0.3759, 0.044, 0.071, -0.0484, -0.0442, -0.0478, -0.1646, 0.0528, -0.0227, 0.0738, -0.1892, 0.0122, 0.0917, -0.027, -0.012, 0.13, 0.1447, 0.1611, 0.1022, 0.2372, -0.1605, -0.017, -0.0331, -0.0451, 0.0934, 0.1218, 0.1137, 0.1291, 0.0273, -0.1587, 0.0635, -0.0367, 0.0596, -0.011, 0.1192, -0.018, 0.0193, 0.1054, 0.0602, 0.1122, -0.0853, 0.0566, -0.288, 0.0957, 0.2874, 0.1078, 0.109, 0.0865, 0.2547, 0.0791, 0.1129, 0.0, 0.0571, -0.013, -0.0743, 0.126, -0.0476, -0.8941, -0.0347, 0.0877, -0.2615, 0.0045, -0.3798, 0.1114, 0.0389, 1.3535, 0.1753, 0.0733, -0.5965, 0.0137, -0.2204, -0.055, 0.0604, 0.1209, 0.0603, -0.08, -0.1188, -0.1482, 0.0215, 0.0281, -0.035, -0.0273, 0.0849, -0.2839, -0.0121, 0.089, 0.0853, -0.0813, -0.289, 0.1073, -0.0469, 0.0683, 0.0311, -0.0208, -0.4829, 0.0936, 0.0, 0.0952, 0.0, -0.031, -0.1744, 0.0637, 0.3658, 0.3633, 0.0103, 0.0258, 0.1176, 0.0692, 0.054, 0.0643, 0.0985, 0.0853, 0.1121, -0.9776, 0.0463, 0.2919, -0.0716, -0.0316, 0.1293, -0.0428, 0.2337, -0.6735, -0.1008, -0.4075, -0.0306, -0.0998, 0.2302, -0.0616, -0.0293, 0.0596, 0.0099, -0.0338, 0.136, 0.0863, -0.0046, -0.0846, -0.0312, 0.0256, 0.4814, 0.025, -0.0165, -0.4733, 0.1048, 0.0, 0.1471, 0.0323, 0.0794, 0.2186, 0.1905, 0.0, 0.0759, -0.0374, 0.0427, -0.0403, 0.0331, 0.0101, 0.2858, 0.0437, 0.1496, 0.1193, 0.4055, 0.0908, 0.0704, 0.0706, -0.1124, 0.1105, 0.0, -0.566, -0.0167, -0.8112, 0.0304, 0.0052, 0.0457, 0.0395, 0.0778, 0.0817, 0.0136, 0.0144, -1.1717, 0.0617, 0.0933, 0.0604, 0.0121, 0.0, 0.3051, -0.1022, 0.1124, 0.0578, -0.0882, 0.0074, 0.0122, 0.0973, 0.0881, -0.0884, 0.2233, 0.1465, 0.0309, 0.026, -0.0453, -0.0477, -0.0192, 0.0133, -0.5728, 0.0686, 0.0341, -0.0082, 0.0392, 0.1746, 0.0657, 0.0367, 0.1703, 0.111, -0.0101, 0.0568, -0.0636, -0.0475, -0.3668, 0.019, 0.1163, 0.1442, 0.0208, -0.0486, 0.1033, 0.1176, 0.0562, 0.082, 0.1279, -0.1996, 0.675, -0.3, 0.0848, -0.0323, 0.024, -0.0691, 0.5213, 0.0298, -0.1121, 0.0945, 0.0205, 0.0056, -0.1013, 0.067, -0.0475, -0.5214, 0.0675, 0.0223, 0.0784, 0.034, 0.1011, 0.1417, -0.2736, 0.1486, 0.0953, 0.0366, 0.0781, 0.0834, 0.06, 1.0825, 0.0357, -0.0009, 0.0322, 0.1038, -0.0174, 0.0119, 4.565, 0.0029, -0.126, -0.2266, 0.0979, 0.1797, 0.0252, -0.0044, 0.1175, -0.0402, 0.0891, 0.0512, 0.0415, 0.0451, -0.3287, -1.6417, -0.0819, 0.0772, -1.4187, -1.5967, -0.0455, -0.1536, -0.0547, 0.0811, -0.1543, 0.2666, 0.0396, -0.0399, 0.0702, 0.0123, 0.4197, -0.7061, 0.1337, -0.0031, 0.1098, 0.0443, 0.013, 0.0162, 0.1251, 0.0439, -0.1348, 0.0762, 0.0374, 0.0736, 0.0447, -0.1335, 0.2366, -0.337, -0.075, -0.0101, -0.4202, 0.038, -0.4376, -0.0067, -0.0159, 0.0608, -0.0028, 0.0777, 0.0528, 0.0467, -0.0151, 0.055, 0.0817, 1.4629, 0.0741, -0.0722, -0.0023, 0.0905, -0.0095, 0.2096, -0.0096, -0.0519, 0.063, 0.0, -0.1899, -0.045, 0.1308, 0.1115, 0.0909, 0.0238, -0.0231, -0.885, 0.0214, 0.1729, 0.0, 0.1387, -0.0083, -0.0093, 0.1058, 0.0463, 0.0833, -0.0544, -0.0109, 0.0029, 0.0936, -0.0264, 0.0845, -0.1934, 0.0144, 0.0409, 0.1008, 0.0721, -0.0275, -0.0005, -0.1001, -4.6265, 0.0259, 1.0517, -0.3354, -0.0446, 0.0704, 0.0731, -0.2432, 0.1528, 0.0, -0.0471, 0.1418, 0.0397, 0.0041, 0.0147, 0.019, -0.0044, -0.1859, 0.0635, -0.0289, -0.0871, -0.0499, -0.3635, -2.3029, 0.2356, -4.0555, -0.0663, 0.1048, -1.6095, -0.0185, 0.0349, -0.6331, 0.0543, 0.0, 0.0459, -0.0385, -0.0215, 0.0614, 0.023, -0.0605, -0.3903, -0.2077, -0.7425, 0.0337, 0.1583, 0.0735, -0.1713, -0.0135, 0.1841, -0.2533, -2.2867, 0.0, 0.0858, 0.1859, 0.1103, 0.059, -2.33, -0.0474, 0.0888, 0.0615, 0.169, 0.0404, -0.0089, 0.0685, -0.0275, 0.0078, -0.1142, 0.0236, 0.0, 0.733, 0.2944, -0.0108, 0.0122, 0.0995, -1.5908, -0.6232, 0.0383, 0.2538, -0.0157, -0.0605, 0.281, -0.0113, 0.0059, 0.0, -0.2261, -0.0398, 0.0257, 0.262, 0.1174, -0.3244, -0.072, 0.164, 0.0873, 0.2192, -0.0615, -0.1126, -0.334, -0.0351, 8.67, 0.0173, 0.1271, 0.1334, -0.0729, -0.0104, 0.2463, 0.3563, -0.0941, -0.0765, 0.0, 0.1232, 0.0541, 0.0824, -0.152, -0.0207, -0.0165, 0.7129, 0.0468, 0.1344, -0.1741, -0.05, 0.0756, -0.0487, -2.989, -0.0405, 0.1415, 0.0738, -0.3265, 0.0, -0.0188, 0.1156, 0.021, -0.4763, -0.0044, 0.0914, 0.0341, 0.0197, 0.0351, -0.0196, -0.1776, 0.072, -0.2726, 0.0329, 0.0857, -0.1135, -0.2194, 0.0252, -0.0092, 0.0, 0.0226, 0.0, 0.0053, 0.0074, 0.0367, -0.0316, 0.0061, -0.0892, 0.0659, 0.0096, 0.0393, -0.2679, 0.0, 0.1245, 0.033, 0.0187, 0.087, -0.0053, 0.0438, 0.0835, -0.3612, -0.0065, -0.0291, 0.0192, -0.246, 0.1531, 0.0263, 0.9171, -0.2832, 0.0097, 0.107, 0.0478, 0.016, -2.4594, 0.1358, 0.0932, 0.0281, 0.0221, 0.1775, -0.0103, 0.0105, 0.4605, 0.144, 0.0867, -0.0826, 0.0546, 0.4793, 0.085, 0.051, -0.0214, 0.0234, 0.0409, 0.0, 0.2083, 0.0939, 0.0649, 0.103, -0.055, 0.0, 0.6177, -0.5722, -0.0136, 0.1271, 0.0, 0.0924, -0.1075, 0.0477, 0.0425, 0.1111, 0.0195, -0.0079, -0.99, 0.0426, 0.0702, 0.0548, 0.0832, 0.045, -0.0114, 0.0407, -0.17, 0.0224, -0.1438, -0.1326, 0.4271, -0.1878, -0.0752, 3.5442, -0.0277, -0.0087, 0.0616, -0.0213, 0.0718, -0.0298, 0.0289, -8.2377, -0.0957, -0.0606, -0.0362, -0.1344, 0.0, -4.8434, 0.0, 0.0324, 0.0501, 0.1348, -2.1839, 0.0703, 0.0199, 0.8994, 0.0849, 0.0, 0.0688, 0.0308, 0.0646, 0.0, 0.1548, 0.0451, 0.1702, 0.0549, -0.0432, 0.0667, -0.1818, -0.2444, 0.5936, -0.0021, 0.0, 0.0199, -0.0299, -0.2268, 0.0973, -0.028, -0.1689, 2.4406, -0.0636, 0.1854, 0.0782, 2.185, -0.2514, 0.1917, -0.5585, 0.0664, 0.0918, -0.0229, 0.393, -0.15, 0.0235, 5.3185, -0.028, 0.0277, -0.0532, 0.1467, 0.0542, 0.079, 0.0315, -0.1964, 0.141, -0.5874, -0.0455, -0.0236, -0.1342, -0.0459, -0.0058, -0.5996, -1.3172, 0.4592, -0.026, 0.029, -0.0275, -0.0715, 0.0264, 0.1052, 0.1722, 0.0538, 0.1664, -0.1367, -0.0155, -0.4502, -0.0341, 0.2054, 0.1864, 0.3547, -0.4175, -0.65, -0.0268, 0.0549, -0.1771, 2.2556, 0.0719, -1.723, 0.3089, -0.0326, 0.0558, 0.0193, -0.0651, 0.1127, -0.0232, 0.0323, -0.0271, -0.0319, 0.0705, -0.1924, 0.0, -0.0126, -0.0118, 0.0374, -0.4702, -0.209, -0.0235, -0.0714, -0.0221, 0.0, 0.0419, -0.0834, 0.0995, -0.0703, -0.0089, -0.0542, -0.0684, -0.0241, -0.0963, -0.0196, -0.0554, -0.0018, 0.0319, -0.0117, 0.0734, 0.0351, 0.4577, -0.1764, -0.0113, -0.1843, 0.1112, 0.0, 0.0876, -0.0111, 0.0, 0.0698, -0.0157, 0.0034, 0.019, 0.0935, 0.0, 0.0738, 0.054, 0.3382, 0.094, 0.3535, 0.0488, -0.0772, 0.0727, -0.1801, 0.0402, -0.8225, 0.0798, 0.0022, 0.0826, -0.0094, 0.0664, 0.0272, 1.9198, 0.0108, 0.1165, 0.075, 0.0678, 0.0777, -0.1517, -0.0188, 0.126, 0.1274, -0.0838, 0.1398, -0.415, -3.8389, 0.038, -0.2904, -0.0401, 0.114, 0.0017, 0.0524, 0.0227, 0.0, 0.052, -0.0448, 0.0396, -0.1058, 0.1493, 0.0639, 0.0705, 0.0939, -0.022, 0.05, 0.2327, 0.0726, 0.0688, -0.0266, 0.1199, -0.2368, 0.0216, 0.1513, -0.0647, -0.0752, -0.1156, -0.0203, 0.0511, -0.3257, 0.0797, -0.1421, 0.1088, 0.1091, -0.0542, 0.0269, 0.0583, 0.077, 0.009, 0.1804, -0.1016, 0.062, 0.0382, 0.0411, 0.0914, -0.7343, 0.0934, -0.8723, 0.1299, 0.0291, -0.4117, 0.2709, -0.1017, 0.1733, 0.1157, 0.3063, 0.0042, 0.0281, 1.4185, 0.0534, -5.0941, -0.0152, 0.0773, 0.4791, -0.0151, 0.0809, 0.1834, 0.4021, 0.0041, -0.2364, -0.0278, 0.0383, 0.0434, -0.2172, -0.0142, -0.6542, 0.0201, -0.0189, 0.0105, -0.0052, 0.0325, 0.0043, 0.0422, -0.0181, 0.0, -0.0014, 0.0683, -0.0356, 0.0, -0.6793, -0.0248, 0.1506, 0.1057, 0.032, 0.0165, 0.0207, -0.9396, 0.1711, 0.1177, -0.694, 0.2295, -0.2573, 0.0821, 0.2543, -0.1446, 0.1458, -0.1224, 0.0441, 0.0282, -0.0817, 0.118, -0.0187, 0.0931, 0.0, 0.0984, 0.0753, 0.0589, 0.0123, 0.0125, -0.0459, -0.05, 0.0258, 0.0272, 0.0828, 0.078, 1.3987, 0.1805, 0.103, 0.0392, -0.3816, -0.2882, 0.0, -0.3356, 0.0037, -0.0668, 0.0679, -0.2097, 0.0657, -9.3359, 0.0, -0.0365, 0.0569, -0.0187, 0.0048, -0.097, 0.021, 0.0805, -0.0212, 0.4646, 0.0344, 0.0547, 0.0, 0.0588, 0.4335, -0.0652, 0.1011, 0.0889, -0.1155, 0.076, -0.0813, -0.4202, 0.0839, 0.0973, 0.0333, 11.2442, 0.0944, -0.0563, -0.5027, 0.0391, 0.0802, 0.0602, -0.0244, 0.0502, -1.6077, 0.0211, 0.0339, 0.0034, 0.0607, 0.0706, 0.1305, 0.0828, 0.066, 0.0272, 0.0609, -0.0659, 0.0861, 0.3137, 0.0847, 0.0, 0.1003, -0.1522, 0.0656, 0.1141, 0.0477, -0.0076, 0.1892, 0.4037, 0.0487, 0.0273, 0.0065, -0.1941, 0.0879, 1.3819, 0.0788, 0.0794, 0.1469, -0.0338, -0.0988, 0.3388, 0.0431, 0.0, -0.832, -0.9998, 0.004, 0.0457, 0.0896, 0.0724, -0.557, -0.3667, -0.3005, 0.0401, 0.0139, 0.1318, -0.7044, -0.0283, -0.0079, -0.0171, 0.087, 0.0568, 0.0, -0.0757, 0.0121, -0.3272, -0.1942, -0.0125, -0.0682, 0.044, 0.1098, -0.0751, -0.0564, 4.0511, 0.0165, 0.0836, -0.0505, 0.0529, 0.2736, 0.067, 0.1355, 0.0309, 0.4817, 0.0955, 0.0756, -0.0066, -0.3507, 0.1436, 0.0884, -0.2342, 0.2012, -0.0312, -0.0149, 0.2043, 0.0, -0.112, 0.0332, -0.0787, 0.0102, 0.0, 0.0622, 0.0788, 1.065, 0.0691, -0.0172, 0.0533, -0.1091, 0.2279, 0.2299, 0.0488, -0.0293, -0.0857, 0.092, -0.0108, 0.1392, -0.0479, 0.0149, 0.0531, -0.0367, 0.1177, -0.0541, 0.7057, -0.0541, -0.0923, 0.0885, 0.0569, -0.3005, 0.0916, 0.0751, 0.0441, -0.4481, 0.1399, 1.639, -0.0188, 0.0034, 0.041, -0.0502, 0.0489, 0.0901, 0.2739, 0.0268, 0.0201, 0.1045, 0.0313, 0.0464, 0.1049, -0.237, 0.0279, -0.0138, 0.0732, -8.0273, 1.2152, 0.0604, 1.1401, -0.0537, -0.0019, -0.012, -0.0465, 0.0494, 0.0429, -0.1622, -0.1714, 0.0692, 0.0281, -0.0887, 0.0112, 0.0247, 0.0127, 0.0343, 0.0137, 0.0207, 0.0042, 0.2895, -0.0712, 0.0049, -0.2475, 0.5564, 0.0533, 0.1757, -0.0784, 0.0131, -0.1436, 0.0172, 0.0, -0.4007, -2.835, 0.0433, -0.9162, -0.1258, 0.091, 0.112, 0.0017, 0.0669, -0.0011, 0.0077, 0.1525, 0.0005, 0.1099, -0.0105, 0.0357, 0.2718, -0.0093, -0.1735, 0.677, -0.0763, 0.0, 0.0245, 0.344, -0.1374, -0.056, -0.0468, -0.0576, 0.0112, 0.0447, -0.185, -0.0065, 0.721, -0.179, 0.0, -0.0332, 0.0, 0.1723, 0.0137, 0.0198, -0.0387, 0.1698, -0.3349, 0.0014, 0.1387, 0.2494, 0.3612, 0.072, -0.1775, 0.0585, 0.1058, -0.0566, 0.1279, 0.0955, -0.1569, 0.2562, 0.0, 0.0681, 0.0486, 0.1569, 0.0148, 0.0609, 0.1419, 0.074, -1.2798, -0.1081, -0.0591, 0.0586, 0.0193, 0.1514, 0.0677, 0.0332, 0.0863, 0.0562, 0.2617, -0.0892, 0.0744, -0.4257, -0.0369, -0.244, -0.0034, 0.3275, -0.0655, 0.0899, 0.054, 0.0246, 0.4054, -0.3546, 0.0746, -0.4042, 0.0686, 0.0, -0.1607, 0.0171, -0.0522, 0.1007, 0.0067, 0.2557, 0.0348, 0.0247, 0.2237, -0.0117, -0.0137, 0.0672, -0.0266, -0.0265, 0.1001, -6.0267, -0.0393, 0.0058, -0.2772, 0.1012, 0.1589, -0.0067, -0.0399, 0.55, -0.0099, -0.0643, -0.43, 0.0353, -0.1354, -0.0228, 0.4466, -0.0147, 0.1791, -0.1955, 0.1045, -0.0027, 0.6195, 0.0275, 0.015, -0.0161, 0.2146, 0.3325, 0.1217, 0.0543, 0.0684, 0.0417, 0.0172, 0.0362, -0.0244, -0.1382, 0.0425, -2.0961, 0.0536, 0.0689, 0.0588, 0.0032, 0.0853, 0.0749, -0.0108, 0.0348, -0.003, 0.0843, -0.02, 0.0067, 0.2713, 0.0, 0.0, -0.6005, 0.0219, 0.0743, 0.0584, 0.0694, 0.1102, 0.0, 0.2132, -0.0493, -0.0474, 0.1629, 0.1048, 0.0288, 0.0552, 0.0104, 0.0256, -0.532, -2.2369, 0.0862, 0.0755, 0.0, 0.16, -0.1111, 0.1612, 0.1327, -0.0553, 0.5494, -0.0401, 0.0892, 0.337, 0.0776, 0.0249, 0.6146, -0.0323, -0.0539, 0.2008, 0.0779, 0.0196, -0.0737, 0.1684, -0.0156, 0.1406, 0.0777, 0.0, 27.34, -0.1873, 0.0381, -0.0038, 0.1341, 0.3158, 0.0793, 0.007, 0.1024, 0.0406, -4.5617, 2.5772, 0.0544, 0.9451, -0.0128, 0.0798, -0.0876, 0.0384, -0.0786, -0.0692, 0.0195, 0.0187, 0.078, 0.376, 0.024, 0.0013, 0.1316, 0.07, -0.0888, 0.0533, -0.0083, -0.0474, -0.1529, 0.0722, 0.1211, -0.0027, 0.0717, 0.0, 0.0955, 0.0, 0.0122, 0.0351, 0.0353, 0.2961, 0.0149, -0.008, 0.0138, 0.094, 0.0752, 0.0704, 0.0404, 0.1151, -0.0328, 0.084, 0.0367, -0.0143, -0.0363, 0.0223, 0.0, 0.1881, 0.0424, 0.0106, 0.1146, 0.2617, -0.0649, 0.0769, 0.0501, 0.0, 0.0225, 0.0285, -0.0325, -2.4873, -0.0327, 0.0457, -0.042, 0.4935, 0.0017, -0.1067, -0.0042, 0.0101, 0.1468, 0.0, 0.0094, 0.0334, -0.0207, -0.0307, 0.0382, 0.0585, 0.1153, -0.2221, 0.2175, -0.0474, 0.0, 0.0, 0.5467, -0.0283, -0.0201, -0.0188, -0.0871, 0.3557, -1.201, 0.0239, -0.3737, 0.2021, 0.0341, -0.1717, -0.2784, 0.0757, -0.0178, 0.0424, -0.0377, 0.0689, 0.0627, 0.0581, 0.0783, 0.0, -0.0078, -0.1397, 0.0182, -1.3419, -0.0326, 0.075, -1.8075, 0.1011, 0.0, -0.112, -0.1134, -0.0936, -0.2873, -0.0129, 0.0858, 0.0224, -0.0158, 0.2984, 0.0817, 0.0523, 0.1011, 0.0037, -0.4764, 0.0382, 0.0445, 0.1412, 0.0703, -0.0073, 0.4789, -0.0903, 0.0435, -0.0758, 0.1227, -0.0007, -0.6918, 0.1271, -0.1445, 0.0821, -0.1401, 0.1341, -0.0132, 0.0341, 14.1975, 0.0758, 0.0533, -0.0576, -0.0018, -0.7475, 0.1982, -0.0564, -0.6249, 0.0348, 0.0056, 0.0344, -0.0158, 0.1696, -0.2568, 0.5917, -0.1762, -0.0352, 0.0313, 0.0, 0.007, 0.0656, 0.0517, 0.097, 0.0753, -0.0407, 0.082, 0.0575, 0.0588, 0.0625, 0.0, -0.1206, -0.044, 0.0677, -0.0058, 0.0754, 0.0, -0.1184, 0.0284, 0.1093, -0.0382, -0.4833, 0.1099, 0.1106, -0.0606, 0.0417, 0.0364, -0.2278, 0.4288, 0.0733, -0.0211, 0.0966, 0.0186, 0.0454, -0.1027, 0.0444, 1.1758, -0.044, 0.0152, 0.017, 0.0155, -0.0498, 0.0363, -3.3302, -0.1686, 0.0398, 1.2879, 0.0498, -0.0174, -0.1111, 0.0638, -0.0319, -1.2825, -0.0688, -0.0095, 0.6263, -0.0239, 0.0809, 0.0975, -0.0271, 0.0485, 0.071, -0.1955, -0.0454, 0.0606, -0.0834, -0.098, -0.1083, 0.1298, -0.7167, -0.0162, 0.0548, 0.0, -0.1342, 0.049, 0.0126, -0.0, -10.5833, 0.1094, -0.4137, 0.0159, 0.0868, -0.108, 0.0912, 0.0091, -0.0469, -0.0281, -0.0619, -0.1143, -0.705, 0.1032, -0.0779, -0.0317, 0.0826, -0.4522, 0.0581, 0.0686, -0.0069, 0.1137, -0.2355, -0.1207, -0.0572, -0.5096, 0.0691, 0.1105, -0.0123, 0.0866, -0.1183, -0.0203, 0.1262, -0.1634, 0.075, -0.337, -0.1092, -0.3973, 0.057, -0.0573, 0.2362, 0.0786, 0.1148, -0.0823, 0.0097, -0.3012, 0.07, -0.0509, -0.0684, -0.2083, 0.0382, 0.1016, 0.1081, -0.1411, 0.1679, 0.0186, 0.1071, -0.0121, -0.0133, 0.0028, -0.3911, 0.1337, -0.0508, 0.103, -0.0049, -0.0421, 0.0423, -0.0096, 0.0383, -0.0162, -3.2933, -0.1482, 0.0, 0.0633, 0.0, -0.0588, 0.0703, 0.2709, -0.0351, 0.0, 1.5079, 0.0666, -0.0039, 1.5775, 0.033, 0.052, -0.0221, -0.0226, 0.0418, -0.0569, -0.0604, -0.0053, -0.0161, 0.0888, 0.0, 0.0255, 0.2699, -0.4134, -0.0568, 0.3439, 0.0421, -0.4094, 0.0349, -0.1521, -0.088, 0.0, 0.0015, 0.1668, 0.2381, 0.0556, 0.061, 0.0494, -0.0093, -0.0059, 0.2085, -0.011, 0.0574, 0.1105, 0.0, 0.3993, -0.0866, -0.0002, 0.1295, -0.0805, 0.1269, -0.0478, 0.0915, 0.0722, 0.2248, 0.0782, -0.0559, -0.0219, 0.0, -0.0731, -0.0426, -0.2932, -0.0825, 0.1086, -0.0424, 0.476, 0.0188, -0.0427, -0.1336, 0.4541, 0.2438, 0.0521, 0.0186, 0.0628, -0.5511, -0.0749, 0.1496, -0.0177, -0.461, 0.025, 0.0961, 0.0, -0.125, -0.7343, 0.0, -0.0252, -0.0063, -0.012, 0.135, -0.0179, -0.0657, 0.0463, -0.0429, 0.0783, -0.058, 0.0143, -0.0626, 0.0409, -0.0321, 0.0, 0.0967, 0.0825, 0.0797, -0.1172, 0.0523, 0.1203, 0.0327, -0.4244, -0.0837, 0.1581, 1.7486, 0.0018, -0.0138, -0.1194, 3.9508, 0.0829, 0.2878, -0.2058, -1.0848, 0.0011, 0.0767, 0.0667, -0.0306, 0.0413, -0.2526, 0.0852, -0.8577, 0.0759, 0.3215, -0.0746, -13.5667, 0.0045, 0.0968, 0.0442, -0.2572, -0.1455, -0.0264, 0.1363, -0.0814, -3.2539, -0.0176, 0.0456, 0.0687, 0.0, -0.1038, -0.1254, 0.0088, -0.0539, 0.0, 0.0936, -0.2488, 1.8936, -0.1337, 0.2948, 0.0699, -0.8473, 0.2424, -0.0051, -0.0037, -0.4529, 0.0569, 0.1163, 0.0277, -0.0834, -0.0825, -0.017, -0.007, -0.0874, -0.0452, 0.0398, -0.0569, -0.415, 5.6733, 0.6627, 0.0534, -0.0848, 0.0001, 0.1267, 0.1411, 0.4553, -0.0444, 0.2478, 0.0418, 1.0517, -0.2979, 0.0, 0.024, 0.0585, 0.4789, 0.0151, -0.1552, -0.0701, -0.0153, -0.0346, 0.137, 0.092, 0.1194, -0.0558, -0.2775, -0.154, -0.0015, 0.036, 0.0284, -0.0405, 0.1547, -0.1568, -0.0001, -0.1654, -0.4386, 0.0, 0.0779, 0.0657, 0.2117, -0.0124, 0.007, -0.4629, 0.0057, -0.0101, -0.1286, -0.0176, -0.0423, -0.0491, -0.2538, 0.0493, 0.0504, -0.1875, -0.1335, 0.0707, 0.0421, 0.0649, -0.0248, -0.0177, 0.1891, 0.0569, 0.0318, 0.0795, -0.1031, 0.0, 0.6696, -0.2146, 0.0831, 0.0, 0.0678, 0.0684, 0.0764, 0.0062, 0.0116, 0.0208, -0.0484, -0.0035, -0.0114, -0.0038, -0.0893, 0.062, 0.0858, -1.1801, 0.0417, -0.0093, 0.0975, -0.0126, -0.0252, -0.3087, -0.0295, 0.125, 0.1122, -0.0221, 0.0438, -0.1518, -0.1153, 0.0, 0.0246, -0.0123, -0.0765, -0.1818, 0.3129, -0.0161, -2.2827, -0.1841, 0.0435, 0.0173, -0.0049, -0.0172, 0.0, 1.0679, 0.0113, 0.0102, -0.9091, -0.1442, 0.2199, -0.0207, 0.0117, -0.0153, -0.1105, 0.0589, -0.1378, 0.0566, 0.0, 0.1431, 0.0898, -0.1105, -0.1563, 0.1032, 0.0805, 0.4627, -0.0281, 0.0026, 0.0, -0.1985, 0.1884, 0.086, 0.1993, -0.2764, 0.052, 0.1055, -0.0482, -0.0445, -0.0124, 0.009, -0.0155, 0.0971, 0.0335, 0.0796, 0.2085, -0.2011, -0.0254, -0.0542, -0.1013, -0.2955, -0.02, 0.4373, 0.0915, 0.0531, -0.1254, 0.0282, 0.0089, 0.137, -0.1951, 0.0191, -0.1524, -0.0441, 1.2111, 0.0941, 0.0813, 0.1034, 0.8081, -0.8807, 0.009, -0.1096, 0.1214, 0.0281, 0.0702, 0.0, 0.0052, 0.0692, 0.0781, -0.3241, 0.0273, 0.0615, 0.0484, -0.0666, -0.0854, -0.4712, -0.0865, -0.0263, 0.0756, 0.0459, 0.2397, -0.133, -0.1624, -0.0995, -0.0123, 0.0119, 0.0355, 0.0103, 0.1572, 1.5469, 0.0992, -0.1459, 0.0516, -3.7862, -0.3371, 0.034, -0.0179, 0.0292, 0.1103, 0.0813, 0.7163, -0.1353, 0.1077, 0.0351, -0.0475, 0.0405, -0.0182, -5.1581, 0.0784, 0.0582, -0.093, -0.922, 0.1331, 0.0487, -0.1505, -1.5728, -0.0398, 0.4397, 0.7962, 0.017, 0.0, -0.0272, 0.0, -0.1015, 0.0713, 0.1398, 0.0876, 0.0317, 0.1439, 0.0, 0.0942, 0.0844, -0.0841, 0.0261, 0.1271, -0.0076, 0.187, 0.2939, 0.003, 0.1095, 0.0833, 0.0687, 0.2055, -0.0374, 0.084, -0.0387, -0.1711, 0.9173, 0.0842, -0.0057, -0.281, -0.1368, 0.0872, 0.0514, -0.6281, 0.0415, 0.1136, -0.2735, 0.1068, 0.0739, -0.1846, -0.0139, 0.0, -0.1993, 0.1571, -0.0327, 0.0993, 0.231, -0.274, 0.0696, 0.0311, 0.028, -2.6945, 0.3933, -0.6921, -0.0448, 0.0725, 0.0056, -0.0161, 0.6797, -0.0118, 0.0138, 0.0, 0.0, -0.1247, 0.0069, 0.1769, 0.1363, -0.035, 0.1049, -0.172, 0.1796, 0.1047, 0.0473, 0.0, 0.047, -0.0638, 0.0186, 0.0492, -0.3168, 0.0963, -0.1529, 0.0, -0.0337, -0.4331, -0.051, 0.0478, 0.0381, 0.2245, -0.309, 0.0276, 0.049, -0.0337, -0.0315, 0.1746, -2.5436, 2.4042, -0.3456, 0.04, 0.0282, -0.2206, 0.0314, 9.3525, 0.0013, 0.1365, 0.0445, 0.0401, 0.0782, 0.0205, 0.0058, 0.0486, -0.7593, -0.073, 0.0639, 0.0705, 0.1368, 0.0554, 0.0786, -0.3368, 0.0511, -12.7333, 0.0472, 0.029, 0.0594, 0.4086, -0.0632, -0.0603, 0.0025, -0.0371, 0.0435, 0.1927, 0.7688, 0.1044, 0.0, 0.0, 0.0846, 0.0398, -0.0117, 0.1843, -0.2215, 0.0843, 0.0243, 0.145, 0.074, 0.0863, 0.0549, -0.0682, 0.0, -0.0132, -0.1277, 0.0455, -0.1174, 0.0827, -0.1115, 0.1141, 0.0155, 0.0843, 0.0977, -0.1994, -0.076, 0.0318, 0.0, -0.0039, -0.1232, 0.0763, 0.0165, 0.0744, 0.0538, 0.0431, -0.0987, -0.1289, 0.0777, -0.2805, -0.0267, -0.1179, -0.0376, 0.036, -0.0356, -0.5377, 0.1057, 0.0, -0.0256, 0.1273, -0.0952, -0.2115, -0.1654, 1.6583, 0.0888, -0.0188, 0.7162, 0.1303, 0.0545, 0.063, 0.0, -0.01, 0.8162, 0.019, 0.7049, 0.1135, -0.6962, 0.0476, 0.0964, 0.0423, -0.0599, -0.0172, -0.1126, -2.057, -0.2017, 0.1022, 0.7408, 0.0136, 0.0857, 0.072, 0.0447, 0.0521, -0.0418, -0.0507, 0.0245, 0.0791, 0.009, 0.0051, 0.0, 0.0273, 0.3598, -0.0152, -0.0963, 0.1384, -0.0592, -0.0506, 0.5835, -0.003, 0.0288, 0.0, -0.2234, -0.3613, 0.027, 0.4077, 1.3696, 0.6157, 0.4708, -1.0886, 0.876, 0.0266, 0.0288, 0.1818, -0.0345, 0.0897, 0.0421, -0.0297, -0.2648, 0.0899, -0.0099, -0.0495, 0.0731, 0.0672, 0.1453, -0.0153, 0.1726, 0.1732, -0.0854, -0.0249, 0.0908, 0.0051, 0.2833, 0.1107, -0.0764, -0.2305, 0.0414, 0.1646, -0.0138, 0.1185, -0.3028, -0.3122, 0.0, -0.1054, 0.012, 0.0566, -0.0348, 0.0, 0.1336, -0.0748, 0.1024, -0.9008, 0.0203, 0.0467, 0.08, 0.1795, 0.0817, 0.0607, 0.0905, 0.2961, 0.0, -0.0587, -0.0656, -0.4113, 0.1037, -0.0556, -0.025, 0.1542, 0.0262, -0.0925, -0.0275, -2.6911, -0.0124, 0.1349, -0.8129, -0.0012, 0.136, -0.3529, -0.0753, 0.2267, -0.0125, 0.0142, -0.1468, 0.0934, -0.0155, -0.0552, 0.0, 0.0786, 0.1384, -0.0035, -0.0506, -0.084, -0.0102, 0.2279, -0.0075, 0.1273, 0.2432, -0.1448, 0.106, 1.113, -0.0728, -0.2454, 4.3888, 0.2439, -0.0314, -0.3272, 0.0608, -0.0205, -0.2134, 0.0396, -0.0499, 0.1796, -0.2261, 0.0876, 0.0, -0.0722, -0.0761, 0.1668, 0.0045, -0.0787, 0.2639, 0.6592, -0.0796, 0.4583, -0.0905, 0.0641, 0.2464, 0.1335, -0.0222, -0.0822, 0.1824, -0.1183, 0.0, 0.0921, 0.0329, -0.1613, -0.1005, 0.0452, 0.0535, -0.0756, -0.2924, 0.0157, 0.1866, 0.1657, 0.0901, -0.0999, 0.0195, 0.0, 0.2632, 0.014, 0.1115, 0.1642, 0.3268, 0.049, 0.1232, -0.6166, 0.0437, 0.1113, 0.1291, -0.0724, 0.083, -0.0345, -0.0281, 0.0378, -0.5831, 1.4145, 0.0036, -0.0499, -0.5111, -0.1829, 0.4359, 0.0431, 0.0283, 0.0296, 0.0306, 2.1023, 0.1321, 0.0, 0.1246, -0.1141, -0.0127, -0.0004, 0.2738, 0.4486, 0.1227, -1.7328, -0.1104, 0.041, 0.1415, -0.0826, 0.6955, 0.1921, 0.0399, 1.9556, 0.196, 0.0673, -0.0334, 0.0, 0.2213, 0.0, 0.0, 0.4075, 0.0752, 0.1025, 0.0, -0.0406, 0.084, -0.0705, 0.0413, 0.0084, -0.0271, 0.0416, 0.1306, 0.3122, 0.0406, -0.1273, -0.2265, -0.41, -1.1264, 0.0, -0.2493, 2.4245, -0.0283, 0.0, 0.7798, 0.047, -0.025, 0.0, -0.5325, -0.1952, 0.0504, 0.0367, -0.0624, 0.3001, 0.0131, 0.003, 0.185, 0.0536, 0.0853, 0.5492, 0.0346, 0.5443, 0.3726, 0.0688, -2.0168, -0.0282, -0.1735, -0.0117, 0.0323, 0.1936, -0.0022, -0.0031, 0.047, -0.7534, 0.0, 0.0425, -0.2915, 0.0589, 0.3039, -0.06, 0.0094, 0.4371, -0.0779, 0.542, 0.0616, 0.4566, 0.0297, 0.0198, 0.1586, 0.0158, -0.9555, -0.007, -0.0167, -0.0331, 0.0107, 0.2221, -0.0439, -0.0188, 0.0913, 0.0103, 0.0805, 0.0753, 0.7334, -0.025, 0.1983, -0.4666, 0.0, -0.0314, 0.0, 0.3043, 0.6791, -0.0112, 0.0353, 0.0667, 0.1226, 0.0485, -0.1741, -0.0985, 0.0629, 0.2705, 0.3011, 0.2434, 0.0633, 0.0, -0.0218, 0.2434, 0.3188, -0.0704, -0.0184, -0.0724, 0.0762, 0.0281, -0.0807, -0.048, 0.0523, 0.1643, -6.1436, -0.0081, 0.0574, 0.0569, -0.2301, -0.0436, -0.4043, 0.0751, -0.6096, 0.3103, 0.0016, -0.303, 0.0233, 0.0882, 0.0462, 0.4072, 5.3355, -0.1228, 0.1779, 0.0526, -1.0108, 0.0993, 0.1324, 0.013, -0.0175, -0.0035, 0.1554, 0.0581, -0.1034, -0.054, 7.51, 0.0844, -0.2839, -0.1404, 0.877, 0.0831, 0.0072, 0.3927, -0.0992, -0.1037, 0.0455, -0.2195, 0.2605, -0.3713, 0.0266, 0.0001, -7.6338, -0.0243, -0.0797, -0.6384, 0.0706, 0.0085, 0.0, 0.1227, 0.1404, 0.1313, 0.1235, -0.0029, 0.0, 0.1212, 0.0819, 0.0805, 0.0657, 0.0095, 0.1396, 0.063, -1.0316, -0.1552, 0.0603, -0.1302, 0.0607, -0.4955, 0.1555, 0.0656, 0.096, 0.2912, -0.2961, -0.1995, -0.0414, 0.0, 0.0888, -0.0916, 0.0723, -0.0129, 0.024, 0.0462, -0.0921, 0.009, -0.0696, 0.0856, 0.1076, 0.0499, -0.0529, -0.3511, -0.0742, -0.0285, 0.0907, -0.0856, -0.0017, -0.0078, 0.0843, -0.0808, -0.0548, -0.0084, -0.0866, 0.0433, 0.0244, -0.1873, 0.2308, 0.2281, 0.0246, 0.3818, -0.0462, 0.1131, 0.2428, 0.0336, -0.0153, 6.4755, -0.1209, 0.1128, 0.0403, 0.0712, -0.0479, -0.0163, -0.4779, 0.0695, 0.0715, -0.2374, 0.0648, -0.4846, 0.1135, 0.0866, 0.0753, 0.0893, -0.0452, -0.0374, 0.0038, 0.0175, 0.0296, -0.0141, 0.0178, 0.1266, -0.0311, 0.0376, 0.0552, 0.0296, 0.0223, -0.0694, -0.0617, 0.0966, 0.0913, 0.0, -0.0185, 0.0989, 0.0961, 0.0657, 0.0346, 0.0851, 0.0816, -0.1191, 0.0552, 0.0506, 0.0554, 0.0265, 0.1332, 0.0468, 0.0326, -0.015, 0.012, 0.0, 0.0549, 0.0379, 0.0138, -0.0297, 0.0049, -0.0331, -0.001, -0.0092, 0.0226, -0.1466, 0.0012, 0.1886, -0.2113, 0.0599, 0.1507, 0.1078, 0.1534, 0.0198, 0.0025, 0.104, 4.97, 0.0183, 0.0568, -0.1276, -0.0325, 0.0466, 0.0388, -0.0162, 0.0594, 0.0074, 0.0142, 0.0696, -0.1902, 0.0712, 0.0328, 0.0358, 0.0194, 0.098, 0.0411, -0.2733, -0.0239, -0.057, -0.0207, -0.0334, -0.097, 0.0709, -0.1355, 0.005, 0.2664, 0.2554, 0.3131, -0.0791, 0.0756, -0.0089, -0.0103, -0.4484, 0.0699, 0.071, -0.0071, -0.0489, -0.1475, -0.2138, -0.0194, 0.0478, -0.0859, -3.7268, -0.0481, -0.0187, -0.0846, -0.088, 0.155, -0.0182, 0.5113, 0.0432, 1.4666, 0.1217, -0.0017, 0.0, -0.0512, 0.0128, 0.0582, 0.1039, 0.3522, -0.0172, 0.0763, 0.2156, -0.0961, -0.0228, -0.0142, -0.0095, 0.0767, 0.068, 0.0224, 0.0455, 0.0197, -0.095, -0.007, -10.4207, 0.0188, -0.0861, 0.0683, -0.9802, 0.039, 0.7983, 0.2426, 0.0937, -0.6725, -0.1094, 0.0725, 0.0654, 0.018, 0.0103, 0.164, 0.0508, 0.1413, -7.6998, 0.0257, 0.0207, -0.0332, 0.1209, 0.0802, -0.0072, -0.007, 0.2588, 0.0266, 0.1249, 0.098, 0.0303, -0.2646, 0.0578, -0.2716, 0.1226, -0.1188, 0.0, 0.0301, -1.2443, 0.0435, 0.0545, -1.1412, -0.1728, 0.0183, -0.0512, 0.0891, -0.1136, 0.0002, 0.0731, 1.0836, -0.0542, 0.1956, -0.6456, 0.0141, 1.2444, 0.1516, 0.0702, 0.0813, 0.0695, 0.0789, 0.0916, 0.1466, 0.0517, 0.0561, 0.082, 0.0555, 0.3298, 0.0315, 0.106, 0.0776, 0.0795, 0.0702, 0.0391, 0.1308, -0.0148, 0.089, -0.5887, -0.0212, -0.1276, -0.0083, 0.0515, 0.0096, 0.0249, -0.0641, 0.0502, 0.0333, -0.0056, -0.0605, -0.1764, -0.0202, 0.0, -1.7994, 0.0, -0.0718, 0.1434, -0.2063, -0.221, -0.0704, 0.2348, -0.1069, 0.061, 0.71, 0.0093, -0.3098, 0.0, -0.0327, -0.1455, 0.3278, -0.0363, -0.013, 0.0396, 0.0, 0.0385, 0.062, -0.0498, 0.0337, -0.0763, 0.6476, 0.0416, 0.0113, 0.0344, -0.1571, 0.0463, -0.0462, 0.0526, 0.1986, -0.0137, -0.0418, 0.0611, -0.0398, -0.3944, 0.0, -0.408, -0.0034, 0.0095, 0.0536, -0.0681, 0.3688, -0.044, 0.0247, -0.0605, -0.022, -0.1818, 0.0301, 0.5827, -3.286, -0.0844, -0.0138, -0.6801, 0.0904, -0.0908, 0.0168, -0.0443, -0.0402, 0.9372, -0.0334, -0.0168, -0.0317, -0.1583, 0.016, -1.6706, 0.0415, 0.0678, 0.1968, -1.4562, -0.3411, 0.0535, -0.0363, 0.1137, 0.0, 0.2397, 0.0, -0.1568, -0.0901, -0.0438, 0.0443, 0.5103, -0.0383, 0.0116, 4.3767, 0.042, 0.0165, 0.0, 0.0176, -0.0169, 0.0594, -0.1196, 0.0506, 0.0, 0.0756, -0.5097, -0.2498, 0.0093, 0.0259, 0.1399, 0.2547, 0.1781, -0.0073, 0.0275, 0.0553, -0.1892, 0.0861, 0.0893, -0.0016, 0.0, 0.0532, 0.0622, -0.0156, 0.0949, 0.9937, 0.3975, 0.2643, 0.0812, -0.0046, 0.1014, 0.1212, -0.0139, -0.0017, 0.0261, 3.2581, -0.0514, 0.1008, -0.1641, 0.0446, -0.0831, 0.0517, 0.1032, -0.0255, 0.0456, 0.0, 0.0828, 0.0551, 0.1757, 0.1747, 0.1599, -10.61, 0.536, 0.0728, -0.0149, 0.0, 0.1303, -0.1738, 0.0, -0.1118, 0.0216, -0.0054, 0.1549, -0.6205, -0.9061, -0.0143, -0.4699, -0.3173, 0.0025, -0.0371, -0.0008, 0.0093, 0.1131, 0.1947, -0.9462, 0.0009, 0.0958, 3.3318, 0.0518, 0.0, 0.0073, 1.9552, 0.0611, -0.0289, 0.0219, -0.1376, 0.0158, -0.0009, -0.0669, 0.034, -0.0858, 0.3056, 0.0469, 0.3209, -0.3098, -0.0518, 0.0901, 0.0749, 0.0815, 0.0393, 0.1114, 1.2165, -0.3668, 0.1243, 0.0595, 0.0649, -0.3075, 0.1209, -0.0025, 0.0608, 0.0573, 0.0241, 0.072, -0.0072, -0.0008, 0.0746, 0.0393, -0.0408, -0.0119, -0.0333, 0.0344, -0.2699, -1.9572, 0.0501, 0.0, 0.103, -0.9076, 0.1061, 0.1617, 0.1473, 0.0291, 0.2479, 0.8093, -0.0456, -0.046, -0.062, 1.058, -0.6826, 0.2188, 0.016, 0.0558, 0.0913, 0.0976, -3.3025, -0.0006, -0.0041, -0.0633, 0.012, 0.0, 0.1769, -0.0152, 2.3558, 0.0, -0.0899, 0.0, 0.0, 0.9805, -0.0853, -0.244, 0.268, -0.0926, -0.0678, 0.0902, 0.0393, -0.1103, -0.2066, -0.0348, -0.0292, 0.0223, -0.0468, 0.0168, 0.3376, 27.415, -2.2224, -0.0978, -1.048, 0.0117, 0.0127, -0.0993, -0.0485, -0.2424, -0.0435, 1.6721, 0.1194, 0.0, 0.7019, 0.3398, 0.0358, -0.022, -0.0916, 0.2159, -0.211, -0.02, -0.0173, 0.0339, 0.0483, 0.0332, 0.0633, 0.0688, 0.0135, 0.0425, 0.0462, 0.0355, 0.0264, 0.0364, 0.1167, -0.052, 0.1665, -0.6578, 0.0412, -0.0328, -0.1217, 0.1206, 0.0577, 0.0799, 0.2659, -1.6699, 0.9389, 0.1455, -0.0783, 1.0256, -0.2077, 0.0959, -0.181, -0.0771, 0.0847, -0.0171, -0.0593, -0.3938, -0.0576, -0.0572, 0.0712, -0.0974, -0.1504, -0.1539, -0.1137, 0.0367, 0.0297, 0.0156, 0.2974, 0.0229, -0.3485, 0.1475, 0.1075, 0.0885, -0.0406, -0.0421, 0.5529, -7.7458, 0.076, 0.0852, 0.0728, 0.0276, -0.9566, -0.0034, 0.0525, -0.0879, -0.1044, -0.0334, 0.0471, -0.0549, 0.0552, 0.0466, -0.009, -0.4681, -0.062, 0.0626, -0.1141, 0.0, -0.3639, 0.1574, 0.0286, 0.287, 0.0232, -0.0817, 0.2155, -0.0481, 0.0082, 0.0678, -0.0638, -0.0489, 0.0361, 0.0069, 0.0385, 0.0474, 0.0644, -0.1411, -0.0143, 0.0807, 0.0558, 0.1633, 0.084, -0.059, 0.2361, 0.0483, 0.0, -0.0373, -1.8499, 0.0471, 0.0789, 0.0699, 0.1304, -0.0672, 0.1879, -0.0139, -0.075, -0.2557, 0.0791, 0.1187, -0.1248, 0.0728, -0.0457, 0.134, -0.9076, 0.119, -0.0335, 0.1353, 0.0839, -0.042, 0.0537, -0.1336, -0.1144, -0.0081, -0.0466, 0.1118, 0.7788, 0.1496, -1.2987, 0.0, 0.0676, -0.6558, 0.1985, 1.5863, 0.0564, 0.0649, 0.0414, 0.5262, 0.1027, -0.0836, -0.001, -0.0358, -0.1678, -1.1314, 0.0357, 0.1932, 0.0007, -0.1324, -0.0282, -0.0417, 0.0282, 0.0, -0.0734, -0.016, 0.0043, 0.1393, 0.0575, -0.1217, 0.1151, -0.105, 0.0966, 0.0384, 0.0109, 0.0297, 0.0976, -1.3545, 0.3609, -0.0242, 0.1651, -0.0545, 0.0717, 0.3734, 0.0375, 6.3977, -0.181, 0.0739, 0.0861, -0.1006, -0.2341, -0.115, -0.4434, 0.011, 0.0518, 0.0103, 0.0369, 0.0794, 0.0784, -0.3509, -0.1447, -0.0393, 0.2504, -0.2968, -0.1105, -0.1193, -0.4993, 0.1518, 0.1136, 0.1201, -0.033, -0.0366, -0.4097, 0.0438, 2.1265, 0.0707, 0.1002, -0.0346, -0.15, 0.083, 0.056, 0.0876, 0.0, 0.1322, 0.9443, -0.2293, 0.0727, 0.3894, 0.0536, 0.0, -2.0157, 0.0319, 0.0893, 0.1107, -0.0799, -0.0009, -0.1594, 0.0797, 0.0, 0.2032, -0.0072, 0.0631, 0.1567, -0.4792, 0.1783, -0.011, 0.0764, -0.1153, -0.0502, 0.0031, -0.2072, 0.055, 0.8917, 0.0678, 0.0053, 0.0921, -0.0147, -0.118, 0.0299, 0.0877, 0.0798, 0.0506, 0.1251, -0.0822, -0.0841, 0.1422, 0.019, -0.0092, 0.0616, 0.0, 0.0446, 0.0826, 0.1162, 0.125, 0.1259, 0.048, -0.133, -0.0117, 0.0255, 0.19, 0.0708, 0.0041, -0.2894, 0.0409, -0.0172, 0.2785, -0.5273, 0.0257, -0.0888, -0.2506, -0.0196, -0.0038, 0.0453, 0.1249, -0.0019, -0.7073, -0.0246, 0.0648, 0.0642, 0.0613, 0.0834, 0.1222, 0.07, 0.0749, 0.0444, 0.0329, -0.2121, 0.0094, 0.0672, 0.0378, -0.8921, -0.1336, -0.1174, -0.099, -0.3793, 0.28, 0.0322, 0.2994, -0.0763, -0.072, -0.0538, -0.0186, -0.0097, -0.0166, -0.2099, -0.0019, -0.2921, -1.5329, 0.475, 0.0284, 0.0615, -0.0077, -0.0723, -0.0409, -0.0309, 0.009, 0.1117, 1.1336, 0.0413, 0.1171, -0.0099, 0.1802, 0.0466, 0.1427, -0.1627, 0.0206, 0.1091, 0.0747, 0.0058, 0.0438, 0.0854, 0.1294, 0.0047, 0.2508, 1.745, -0.3197, -0.0987, 0.0811, -0.0011, 0.1699, -0.6056, 0.1597, -0.267, 0.1771, 0.0718, 0.0919, 0.1401, 0.1583, 0.0808, 0.0746, 0.0806, -0.2052, 0.0721, 0.037, 0.0665, 0.0817, -0.1075, 0.2022, 0.0241, 0.0651, -0.013, 0.0233, 0.0794, -0.1234, 0.0303, 1.8451, 0.0975, 0.0049, 0.1254, -2.0554, -0.0513, 0.0442, 0.3223, 0.265, -0.0697, 0.0, 0.005, 0.3963, -0.146, 0.4177, 0.0794, 0.0, -0.1428, 1.9027, 0.0626, 0.2416, -0.3969, 0.1253, 0.0134, 0.0873, -0.1097, 0.0925, -0.1369, -0.1696, -0.021, -0.1165, -0.1153, -0.108, -0.1501, 0.1055, -0.1162, -0.0872, -0.0645, -0.0695, 0.033, -0.0173, 0.0009, 0.0644, 0.586, 0.0804, 0.0683, -0.0121, 0.0372, 0.0157, -0.0525, 0.0261, 0.0828, 0.026, -0.1651, 0.0206, -0.6239, -0.0103, 0.0658, 0.2296, -0.0975, 0.0126, 0.0, -0.0279, -0.0668, -0.1398, 0.1169, -0.3442, -0.0831, 0.1134, 0.1311, 0.0217, -0.0216, 0.1945, 0.082, 0.1234, -0.029, 0.0, 0.6686, -0.141, 0.4156, 0.0472, 0.6663, 0.0282, -0.6779, 0.0132, -0.0576, 0.0, 0.0531, 0.1417, 0.2512, 0.226, 0.0, -0.1503, 0.2814, 0.1001, -2.7383, 2.5989, 0.085, 0.0678, 0.0749, 0.2488, -0.6274, -0.0181, 0.1009, -0.1279, 0.0, 0.1523, -0.7423, 0.0051, -0.5732, 0.0397, 0.0525, 0.0411, 0.0345, 0.0477, -0.0648, -0.1339, 0.2133, 0.0, 0.0387, 0.1365, -0.2668, -0.0145, -0.2458, 0.0338, 0.1165, 0.0124, -0.1369, -0.1394, -0.0446, 0.3424, 0.1308, -0.0387, 0.0462, 0.216, 0.012, -0.0475, 0.1662, -0.1105, 0.0338, 0.0676, 0.0067, 0.0853, -0.0691, 0.0632, 0.0806, -0.0737, -0.122, 0.0235, 0.0965, 0.1242, -0.2989, -0.2781, 0.1716, 0.0124, 0.071, -0.4173, 0.01, 0.0962, -0.1287, -0.073, -0.9561, 0.0121, 0.063, -0.3081, 0.0568, -0.0851, 0.0608, -0.0055, 0.039, 0.0108, 0.009, -0.0438, 0.022, 0.0021, 0.1533, 0.0687, 0.1054, 0.0202, 0.0825, -0.0549, 0.0044, -0.3447, 0.0889, -0.0883, 0.164, -0.0469, -0.1879, 0.1604, 0.0967, -1.4749, -1.4087, 0.0517, 0.0311, 0.0, 0.5446, 0.0349, 0.0332, 0.132, 0.0329, -0.0044, -0.0385, -0.3243, 0.5677, -0.0081, 0.0644, -0.0164, 0.1515, -0.0253, -0.0973, 0.0459, 0.0608, 0.0077, -0.0208, -0.004, 0.0359, -0.011, 0.066, 0.0835, -0.061, -0.0392, -1.25, 0.7421, -0.0549, -0.0846, -0.0007, -0.0154, -0.2037, -0.0344, -0.093, -0.0299, -0.5861, 0.128, -0.0192, -0.0042, -0.1054, -0.0459, -0.031, 0.1862, -0.0386, 0.0552, -0.0204, -0.0009, 0.1236, 0.0068, 0.0463, 0.0008, 0.0, 0.5276, 0.0269, 0.0637, 0.3261, -0.0526, 0.1834, 0.0128, -0.0193, 0.0, -0.101, 0.0928, 0.0578, -0.3286, -0.0274, 0.2406, -0.0045, 0.0236, 0.0639, 0.0104, 0.0345, -0.135, 0.0913, -0.1067, 0.4624, 0.2679, 0.0291, 0.1647, 0.0861, -0.2014, -0.0148, 0.1857, 0.0974, -0.0918, -0.0331, -2.4049, 0.1642, 0.9202, 0.0771, -0.089, -0.7278, -0.0057, 0.0226, -0.6672, 0.0149, -0.1241, 0.0498, 0.0135, -0.2102, 0.1651, -0.014, -0.0197, -0.0063, 0.0722, 0.0103, 0.042, 0.0983, 0.0369, -0.0791, 0.0519, 0.1155, -0.0004, -0.1078, -0.0673, 0.0313, -0.0506, -0.0095, -0.1621, 0.1293, 0.1387, 0.1502, 0.0444, -0.1209, -0.0063, 0.241, -0.1484, 0.0646, 0.0931, -2.4417, 0.0556, 0.0838, -0.0356, 0.1877, 0.0359, 0.1741, -0.0428, 0.2255, -0.0204, 0.0217, 0.0106, 0.0963, -0.1216, 0.0465, 0.1049, 0.1458, 0.0699, -0.8408, 0.0327, 0.0201, -0.1319, 0.0955, -0.4342, 0.0526, 0.0284, -2.7704, 0.3886, -0.0403, 0.1427, -0.1216, 0.0177, 0.068, 0.0854, -3.4454, 0.1028, 0.0073, -0.0532, 0.139, -0.0129, 0.0265, 0.0626, -0.1488, 0.0338, -0.0256, 0.1582, 0.5134, 0.1252, -0.2115, 0.0899, -0.0948, 0.8708, -0.1928, -0.0228, 0.0857, 0.2673, 0.4939, 0.1548, -0.0597, -0.0791, -0.265, 0.0614, 0.072, 0.0, -0.0444, -0.0345, 0.0544, 0.0086, -0.2213, -0.0188, -0.0283, 0.1181, -0.0438, -0.4746, 0.1931, -0.1816, -0.1936, 0.063, 0.0333, 0.1663, 0.0476, 0.0531, 0.5519, 0.0603, -1.8644, 0.1109, 0.0, -0.053, 0.0442, 0.0225, -0.9795, -0.2676, 0.0931, -0.0106, 0.0238, 0.73, 0.0206, 0.0601, 1.114, -0.0054, -0.0134, 0.305, -0.0279, 0.0057, 0.0422, 0.012, 0.1453, -0.0949, 0.0678, 0.1958, -0.0509, -3.3959, -0.0398, 0.0, -0.0317, 0.0057, -1.228, -0.4807, 0.0576, -0.1077, -0.007, -0.046, 0.0239, 0.0, -0.0497, 0.0891, -1.9045, 0.0499, -0.1636, 0.0437, 0.1075, 0.0021, -0.261, -6.88, 0.0563, -0.0378, 0.088, 0.0686, 0.0607, -0.0768, 0.0013, -0.2515, -0.1172, -0.4548, -0.022, 0.5975, -0.1482, 0.0446, 0.0097, 0.0221, 0.0893, 0.0885, 0.0034, -0.0893, -0.0215, -0.0023, 0.0942, 0.0793, 0.2021, -0.0278, 0.0654, -0.0521, 0.0318, -0.1547, -0.0022, 0.0537, 0.0265, 0.058, 0.0717, -0.3234, 0.0109, 0.1668, 0.0, -0.2665, -0.0355, 0.0455, -0.0264, 0.037, 0.0293, 0.0305, -0.0196, 0.0322, 0.0637, 0.0564, -0.0739, 0.0005, 0.0916, 0.0895, 0.0, 0.0804, 0.1482, 0.1576, 0.4643, 0.0801, 0.0186, 0.0673, -0.0069, 0.0149, -0.0246, 0.0108, 0.16, 0.0355, -1.533, 0.0656, -0.0774, 0.1962, 0.0212, 0.4892, -0.0149, 0.0158, -0.0394, -1.0662, 0.1519, -0.0416, 0.0204, -0.095, -0.0204, 0.0688, 0.0877, 0.0492, 0.0257, 0.0437, 0.1887, -0.0236, 0.0817, 0.1953, 0.2598, -0.0007, -0.0464, 0.0517, -0.0637, 0.176, -0.033, -0.0234, -0.0992, 0.1169, -0.0107, 0.6265, -0.5793, -0.1113, 0.0184, 0.0986, -0.0828, -0.1762, 0.0618, -2.4974, 0.1667, 0.0376, 0.0604, 0.2389, 0.1166, -0.2422, 0.0737, 1.6566, 0.0233, -0.0604, -0.0308, 0.0584, 0.0788, 0.1181, 0.0071, 0.087, -0.0735, 0.1217, -0.1145, -0.1376, -0.6124, 3.8217, -0.1836, 0.0706, -0.1801, -0.0532, -0.2007, 0.0548, 0.3882, -3.6829, 0.2255, -0.1542, 0.0207, 0.0727, -9.8088, -0.007, -1.6293, -0.0306, 0.5352, 0.1433, -0.1326, -0.1026, -0.6108, 0.0691, 0.0269, -0.2548, -0.1023, -0.1817, 0.0579, -0.0697, 0.454, 0.4588, 0.0, -0.2772, -0.0214, 0.047, -0.438, 0.1461, -3.1783, 0.1183, 2.8558, 2.8705, -0.0405, 0.0198, -0.0086, 0.1036, 0.0233, 0.0036, 0.0436, -0.0171, 0.073, 0.0044, -0.1233, 0.08, 0.0014, 0.1101, 0.0317, 0.0, -0.0849, 0.3811, 0.0488, 0.0217, 0.0416, 0.057, -0.0574, 0.0477, 0.1533, 0.0706, 0.0241, 0.0904, -0.0465, 0.1176, 0.0089, -0.0518, 0.0214, -0.0, -0.0337, -0.025, 0.1709, -0.1202, 0.0, 0.0536, -0.4387, 0.1102, 0.4713, -0.0247, 0.0033, 0.0872, 0.1008, -0.0111, 0.0836, 0.1019, 0.0091, 0.1545, -0.0753, 0.0837, 0.0277, 0.0544, 0.0628, -0.0781, 0.3156, 0.1492, 0.0102, 0.0111, 0.0932, -0.0522, 0.2639, -0.5974, 0.0944, -0.7242, -0.0316, 0.0265, -0.0887, 0.9589, -0.0035, 0.1113, -0.0034, 0.0396, 0.1819, 2.1627, -0.1417, 0.0, 0.0403, -0.0627, -0.0961, 0.0979, 0.1113, 0.2601, -1.0175, -0.0368, -0.0763, 0.0, 0.0989, 0.1354, 6.97, 0.006, 0.0193, 0.0489, 0.1084, 0.0207, 0.0287, -0.0355, 0.2849, -0.0061, 0.0355, -0.0466, 0.0349, -0.0405, 0.0212, 0.0525, 0.1258, 0.1384, 0.0483, 0.1348, 0.082, 0.0139, -0.0739, 0.1168, -2.6333, -0.2646, -0.0492, 0.393, 0.0728, -0.0899, -0.0711, 0.1742, -0.0707, 6.7126, 0.1554, 0.2794, -0.3762, 0.0467, 0.1419, 0.0626, -1.0995, 0.0744, -0.219, 0.0497, -0.0864, 0.0969, -0.1161, 0.0144, -0.0123, -0.0335, 0.0, 0.0767, 0.0922, 0.1967, -0.1316, 0.2297, -0.8045, 0.0714, 0.0061, -1.7914, 0.0225, -0.0182, 0.0885, 0.0163, -0.0518, -0.0299, -0.1127, 0.0802, 0.4858, -0.092, 0.138, 0.1152, 0.0648, 4.7383, 0.0348, 0.0678, 0.0422, -0.0917, -0.0866, 0.0847, 0.0693, -0.0199, 0.2116, 0.118, -0.1231, 0.3569, 0.1685, -0.077, -0.0276, -0.0431, 0.0489, 0.1181, -0.0663, 0.0197, -1.685, 0.0, 0.0035, 0.0, 0.0003, -0.5579, -0.659, 0.0706, 0.2851, 0.0945, -0.0724, -0.0342, 0.0917, -0.0208, 0.1068, 0.0777, 0.0, -0.0958, 0.0927, -0.5694, -0.0764, 0.0379, 0.0123, -0.7246, 0.0265, -0.0568, 0.0212, 0.0469, -0.0391, -0.0267, 0.0233, 0.0, 0.0575, 0.0194, -0.0378, -0.0132, 1.3036, -0.1128, 0.2038, 0.2257, 0.0641, 0.1905, 0.0517, -0.1217, 0.0769, -0.0807, -0.1222, -0.0242, 0.0081, -0.3267, 0.0, -0.0261, 0.0889, 0.0365, -0.0002, 0.0707, 0.0641, -0.0041, -0.0247, 1.0862, 0.0511, -1.2103, 0.9279, 0.671, 0.1051, 0.0025, 0.0033, 0.0055, 0.0, -0.4712, -0.0466, -0.0344, -0.0667, -0.0662, -0.0921, -0.0609, -1.785, 0.0262, -1.3662, -0.48, 0.0, 0.0144, -0.2317, 0.061, 0.1077, 0.194, -0.0223, 0.0305, 0.0161, 0.0, 0.0161, -0.0242, 0.42, -0.0267, 0.1239, -0.1936, -0.0109, 0.0971, -0.0317, 0.114, -0.6912, 0.0029, 0.0128, -0.0827, 0.0618, 0.0358, 0.0472, 0.0465, 0.1796, 0.2537, -0.059, 0.2458, -0.0472, 0.0, 0.0309, 0.025, -0.3277, -0.2321, 0.0457, -0.0519, -0.0446, 0.0781, 0.0074, -0.5689, 0.3418, 0.1211, -0.2892, -0.0699, 0.0806, 0.0458, -0.1026, 0.0412, -0.3516, 0.0902, -0.1229, -0.2309, 0.0722, -0.7073, 0.106, 0.0, 0.0113, -0.0058, 0.4689, -0.1266, 0.1232, 0.0834, 0.0312, 0.1083, 0.0, 0.066, 0.0292, -0.1018, -0.1178, -0.0257, 0.1267, 0.0285, 0.0656, 0.5024, 0.0, -8.5567, 0.1973, 0.0171, 0.015, 0.0062, -0.0556, -0.1864, 0.1437, 0.0968, 0.1264, -0.0167, 0.0814, 0.1034, 0.0076, 0.0036, 0.6795, 0.1144, 0.0865, 0.1033, 0.0, 0.0031, 0.0927, 0.0955, -1.186, 0.1059, 0.124, -0.1909, 0.1211, 0.0985, 0.3393, 0.0, 0.0379, 0.9821, 0.0606, 0.0333, 0.0654, -0.0595, -0.0948, -1.1101, -0.0466, -0.0725, 0.0, -0.2766, -0.0091, 0.0081, -0.1266, -0.0158, 0.0925, -0.0239, 0.4282, -0.0831, 0.0885, -0.3147, 0.0497, 0.2745, 0.0502, 0.0003, 0.0429, 0.0441, -0.0676, 0.0697, 0.0288, 0.0703, 0.3688, -0.3238, 0.0535, -0.032, 0.1042, 0.098, -0.0184, 0.0671, -0.1504, -0.9192, 0.0529, -0.0289, 0.0221, -0.0532, -0.1048, 0.9412, 0.0126, 0.0818, 0.0378, -0.0006, 0.092, -0.0019, 0.0629, 0.0676, -0.1272, 0.0602, 0.0679, -0.0512, 0.0308, 0.0306, 0.1491, 0.0, -0.0161, -0.0535, 0.1646, 0.0162, 0.129, -0.0316, 0.0172, -0.0723, 7.1467, 0.1829, 0.0, 0.0687, -0.0814, 0.0859, 0.0592, 0.1045, -0.0124, -0.0005, 0.3674, -0.9773, 0.0266, 0.0552, -2.6186, 0.2592, -0.3279, 0.1175, -0.0369, -0.094, 0.0689, 0.0892, 0.0317, -0.1799, 0.1242, 0.0044, 0.1332, -0.004, 0.4216, -0.0764, 1.7742, -0.8501, -0.0239, -0.644, 0.0, 0.0348, 0.5167, 0.0, -0.0074, 1.0853, 0.0709, -0.054, -0.0027, -0.061, -0.2372, 0.0, 0.0103, -0.0827, 0.0141, -0.3319, -0.0013, 0.1126, -0.0598, 0.0319, 0.1035, 0.0557, 0.069, -0.2376, -0.0869, 0.0995, -0.0739, -0.0111, -0.0612, -0.0215, -0.036, 0.0126, 0.1726, 0.0593, -0.1178, 0.0128, 0.2698, 0.0065, 0.1805, -0.0543, -0.1274, -0.1306, -0.4342, 0.0695, 0.0937, 0.0129, -0.003, 0.0631, 0.0739, -0.3383, 0.08, 0.0075, 0.0202, -0.0008, 0.1042, -0.3438, 0.0972, 0.1637, -0.1186, 0.1151, -0.0137, 0.0306, -0.0053, 0.0885, 0.0669, -0.175, -0.1712, 0.0775, 0.0236, -0.0402, -0.1192, 0.1175, 0.043, 0.0573, 0.0388, 0.0768, 0.0033, -0.0499, 0.0603, -0.0285, 0.025, 0.0576, 0.9544, 0.0813, -0.1652, -0.0473, -0.1754, -1.0755, -0.9234, -0.2778, -2.1454, 0.0445, 0.0302, -0.1769, -0.0373, 0.0403, 0.2463, 0.7603, 0.0049, 0.0424, -0.0491, 0.0, -0.059, 0.09, 0.0949, -0.1363, -0.6823, 0.0027, 0.0984, 0.0862, 0.0784, 0.0398, -0.0856, -0.0976, 0.0959, 0.1606, 0.0875, 0.1865, 0.0, 0.1966, -0.0061, -0.0063, -0.0308, -0.0109, 0.0841, -0.1136, -0.0525, 0.0342, -0.0444, 0.0444, -0.0225, 0.0307, 0.0315, 0.128, 0.0278, 0.2336, 0.0224, 0.8639, -0.009, 0.0118, 5.1614, -0.1118, 0.0944, 0.1494, 0.0056, -0.0223, 0.0792, 0.1262, 0.0767, 0.0034, -0.0489, 0.0265, -0.0369, -1.9218, -0.0488, 0.0, 0.0474, 1.0576, 0.0682, 0.0, 0.0186, 0.0, -0.0209, 1.1359, 1.517, -0.0207, -0.0185, 0.0, 0.0075, 0.8692, -0.0073, 0.068, 0.0625, 0.0683, -0.0861, -0.1521, -0.0331, 0.0434, -0.0323, -0.1994, -0.0978, -0.1339, 0.0479, 0.0, 0.0889, -0.1634, -0.1282, 0.0585, -2.6366, 0.1414, -4.844, -0.036, 0.1011, 0.1449, -0.172, 0.0121, 0.0309, -0.1662, -0.8769, -0.1782, 0.036, 0.1764, 0.0431, 0.0425, -0.0193, 0.0652, 0.2208, -0.2347, -0.008, 0.0171, -0.2968, 0.039, 0.0324, 0.0035, 0.0, -0.0464, 0.1008, 0.0734, 0.0057, 0.036, -0.0815, -0.1273, -0.0221, 0.0499, 0.1409, 0.0, 0.1168, 0.1268, 0.1078, 0.1037, -0.5594, 0.0614, 0.0498, 0.0308, 0.0, 0.6886, -0.0276, 0.0135, 0.0, -0.0727, -0.0091, 0.0876, 0.0059, 0.0763, -0.0679, 0.0031, 0.0179, 0.1513, 0.0695, -0.8742, -0.0277, 0.0402, 0.0042, 0.0821, 13.725, -0.233, 0.0776, -0.5882, 0.092, -0.0573, 0.0702, 0.0187, -0.1966, -0.072, 0.0225, 0.0123, -0.0538, 0.1455, 0.0065, 0.237, -0.0103, -0.6084, 0.0, 0.1049, 0.1398, 0.1493, 0.3809, 0.0, 0.0133, 0.0005, -0.0765, 0.104, -1.5525, 0.0, 0.4875, 0.0022, 0.1632, 0.1102, -0.2098, -0.3652, -0.0383, 0.0, 6.0075, 0.3448, 0.1708, 0.0718, -0.1325, 0.0637, 0.8572, -0.1326, 0.0, -3.3567, 0.8453, -0.0282, 0.0, -0.0313, -0.0334, -0.2868, 1.7236, 0.0, 0.408, 0.0, 0.0489, -0.4635, -0.0251, -0.0365, -0.0635, 0.3675, 0.0806, 0.2022, 0.0378, 0.0972, 0.0606, 0.0835, 0.0, 0.0848, -0.0289, 0.0754, 0.042, 0.1615, 0.0728, 0.1079, 0.0618, -0.9016, -0.1732, 0.0957, -0.0229, 0.1723, 0.577, 0.0102, 0.0431, 1.5951, 0.0157, 0.0095, -0.0456, -0.0166, 0.0818, 0.0311, -0.0512, 9.7058, 0.0791, 0.0471, -0.056, 0.0412, 0.0665, 0.2947, -0.0276, -0.0719, -0.0482, -0.0762, -0.0418, -0.1024, -0.0902, 0.6205, 0.0999, 0.0543, 0.0591, 0.121, 0.0629, -0.1245, 0.0554, -0.0861, -0.0575, 0.1027, 0.1102, 0.0581, 0.0574, 0.0212, 0.5138, 0.0767, -0.2184, 0.1007, -0.3295, 0.0796, 0.2069, 0.044, -0.0195, 0.1053, 0.035, 5.2917, -0.0668, 0.0968, 0.0689, 0.0051, 0.0014, -0.082, -0.101, 0.0479, 0.0, 0.012, -0.0673, 0.0228, -0.2239, 0.0659, 4.0933, 0.0275, 0.0587, -0.0043, 0.1122, -0.0438, -0.0544, -0.0624, 0.9683, -2.0771, -0.1025, -0.0135, -0.0406, 0.0155, -0.0004, 0.0208, 0.1697, -1.3842, 0.0, 0.0568, -0.0426, 0.3014, 0.0022, -0.0278, 0.0677, 0.0103, -0.0534, 0.2015, 0.0, 0.0748, -0.0028, 0.0866, 0.0071, 0.0667, -0.1365, 0.0147, 0.0, -0.209, -0.009, -0.0612, -0.0311, -0.6622, 0.5604, 0.0562, 0.0, 0.2178, 0.0, -0.0333, -0.2014, 0.0301, -0.0075, 0.0624, 0.0118, -0.1288, -0.0264, 0.0705, -0.1568, 0.0313, 0.0438, 0.1251, 0.1639, 0.0333, -0.0356, 0.9118, 0.1014, -0.1173, 0.0552, 0.0231, 0.049, -0.1548, 0.0155, -0.0185, -0.0902, 0.0, 0.0493, 0.0071, -0.0783, 0.0063, 0.4072, -0.0499, 0.0684, 0.0, 0.0093, -0.1633, 0.0845, -0.066, -0.0301, 10.0525, 0.0994, -0.1294, -0.0819, -0.5151, -0.1869, 0.2555, 0.0795, 0.0641, 0.037, 0.3936, -0.0253, 0.0295, 0.0506, 0.0, 0.7117, 0.0487, 0.0537, 0.0, -0.0948, 0.1306, 0.1029, -0.0921, 0.0217, -0.491, -0.2519, 0.0154, -0.0787, -0.05, -0.0081, 0.0505, -0.0396, -0.4918, -1.1096, 0.1304, 0.1822, -0.0021, 0.0691, -0.0252, -0.0123, -0.0314, 0.0861, 0.0988, -0.0211, -0.109, 0.0636, 0.2108, 0.0343, 0.0452, 0.0215, -0.0891, 0.0989, 0.0998, 0.0595, 0.0218, 0.0964, 0.0675, -0.315, 0.0874, -0.0762, 0.031, 0.049, -0.0177, 0.6603, -0.0268, -0.0381, 0.3456, 0.1647, 0.1082, -0.3189, -0.5298, -0.9146, -2.2718, 0.8316, 0.0787, -0.3156, 0.0, 0.0675, 0.1034, 0.1123, 0.001, 0.0714, -0.0991, 0.0, -0.0084, -0.0201, 0.0, 0.0744, 0.0795, -0.1199, 0.0313, 0.0605, -0.0134, -0.2597, 0.0028, 0.0, 0.055, -0.0773, -0.5543, -0.0164, 0.0479, 0.6083, 0.0883, -0.0074, 0.0, 0.2494, -0.0439, -0.1126, 0.0914, 0.5156, 0.0419, 0.1984, 0.7508, -0.0134, 0.0339, 10.6891, 0.0, 0.0379, 0.0051, -0.0067, 0.0455, 0.0, 0.0595, 4.5348, 0.1623, 0.0724, -0.0323, -0.0487, -0.228, 0.0, -0.8282, 0.0506, 0.8454, 0.0177, -2.4683, -0.0405, -0.0312, 0.0444, 0.0395, -0.0631, -0.1104, -11.4958, 0.0808, -0.3226, -0.0251, -0.0753, -0.0292, -0.0036, 0.086, 0.0532, 0.243, 0.1934, 0.1192, 0.0016, 0.0768, 0.0571, 0.1214, 0.0372, 0.1548, 0.1316, 0.0, 0.0968, -0.0419, 0.0697, 0.1126, 0.0355, -0.0294, 0.0484, -0.0691, 0.1417, 0.1615, 0.0193, 0.0537, 0.0898, 0.4004, 0.1063, 0.0735, 0.0837, 0.0828, 0.0697, 0.3729, -0.0075, -0.2509, 0.0663, -0.0759, -0.4656, -0.0371, 0.3745, -0.2715, -0.505, 0.1521, 0.1446, 0.058, 0.0907, 0.0183, -0.086, -0.0225, -0.2238, 0.0246, 0.0601, -0.1941, 0.2628, 0.1586, 0.0828, -0.0573, -0.005, -0.0644, 0.037, -0.3657, 0.0446, -0.223, 0.4121, -0.5588, 0.0061, -1.8555, 0.0495, 0.1577, 0.0, -0.0188, 0.0942, -0.2298, 0.0213, 0.0164, 0.1087, 0.0317, 0.1621, 0.1255, -0.1803, -0.1351, 0.0758, 0.0659, -0.0698, 0.0381, -0.1011, 0.1212, -0.0494, 0.0446, 0.3005, 0.0547, 0.0151, 0.0, 0.3011, 0.0164, 0.0303, 0.1234, -0.0335, -0.0326, -0.1246, 0.1371, -0.0071, -0.0007, 0.0, 0.8431, 0.0, -0.0505, 0.0807, -1.4435, 0.0063, -0.0778, -0.0236, 0.1886, 0.087, -0.0668, 0.0111, -0.0769, 0.0827, -0.0312, 0.0636, 0.0851, 0.0334, 0.0, 0.2804, 0.091, 0.0539, 0.0718, 0.0799, -0.033, -2.4676, 0.0997, -0.0165, 0.5032, -0.0699, 0.0625, -0.0258, 0.105, 0.0268, 0.5075, 1.7502, -0.1008, -0.7467, -0.3767, 0.0, 0.0351, -3.805, 0.0636, -0.0548, 0.0066, -0.0309, 0.0133, 0.134, -0.1086, -0.0247, 4.5008, 1.0772, 0.0321, 0.1598, 0.1046, 0.0809, -0.0649, 0.0811, 0.0238, 0.0508, 0.0583, 0.2047, -0.0684, 0.3474, 0.0929, 0.0, 0.0491, 0.101, 0.2001, -0.008, 0.0999, 0.3833, 0.4536, -0.1127, 0.1949, -0.1429, 0.0818, -0.1298, -0.2698, 0.0669, -0.0315, 0.0147, 0.0653, -0.0567, 0.0827, 0.1137, 0.0632, 0.1307, -0.0268, -0.1519, 0.0338, 0.0365, 0.0217, 0.4206, 0.0166, 0.0258, -0.0357, 0.0432, 0.4238, -0.4236, 0.0869, 0.1387, 0.0157, 0.1492, 0.0012, -0.0222, -0.0044, 0.1038, 0.1459, -0.2813, -0.5312, 0.1071, 0.061, 0.0112, 0.0792, 0.1548, 0.01, -18.337, -1.3916, 0.0316, 0.1663, -1.1445, -2.3969, 0.0476, 0.3605, 0.0442, 0.0, -0.0132, 0.0275, 0.3567, 0.2709, 0.077, -0.0356, 0.0186, -0.0244, -0.0321, -0.0813, -0.0432, 0.0216, 0.1594, 0.1858, 0.1275, -0.1814, 2.8292, -0.1901, -0.2468, 0.0499, 0.3526, -0.0794, -0.2685, -0.8721, 0.0279, 0.0, -6.2725, 0.0, 0.0663, 0.0747, 0.0981, -0.0778, 0.052, -0.0232, 0.141, 0.2522, -0.835, -0.506, 0.0896, 0.2695, 0.061, 0.0599, 0.6608, -1.1866, -0.0572, 0.0499, -0.2912, 4.6242, 0.0443, -0.2731, 0.0623, 0.0806, 0.0698, 0.0695, 0.0127, 0.0699, -0.0849, 0.007, -0.0756, -0.064, 0.0026, -0.1029, 0.1737, -0.0839, 0.1218, -0.0751, 0.0217, -0.0218, -0.0993, 0.0297, -0.0374, -0.0425, -0.088, -0.0013, -0.3202, 0.0074, -0.0188, 0.335, -0.1105, 0.1284, -0.1586, 1.6917, 0.0025, 0.1074, 0.0549, 0.0728, 0.1862, 0.0594, -0.0477, -0.3282, 0.0133, -0.1755, 0.0784, -0.5326, -0.0674, 0.0186, -0.0173, 0.088, 0.1389, 0.0182, 0.0098, -0.0826, 0.1812, 0.1351, 0.0034, 0.0681, 0.0001, -0.0779, 0.6021, 0.0161, -0.2514, 2.3375, 0.0506, -0.1106, 0.0389, -0.0346, 0.0157, -0.0695, 0.0429, 0.0137, -0.0067, 0.0992, 0.0166, 0.0877, 0.072, 0.1119, 0.0075, 0.0034, -1.3495, 0.1031, 0.1105, 0.0836, 0.1768, 0.0601, 0.2799, -0.0097, 0.2261, -0.0846, -0.0187, 0.0113, 0.0082, 0.0, 0.2722, -0.0176, -0.0127, 0.1183, 0.0333, -0.0424, 0.0, -0.1377, -0.02, 0.0019, -0.0271, 0.046, 0.0217, -0.172, 0.0038, 0.0522, -0.0232, 0.4829, 0.0907, -0.025, -0.2022, 0.1195, 0.6169, -0.0903, 0.019, -0.0397, -0.2648, 0.0685, 0.0374, 0.1066, 0.0333, 0.0, -0.0114, -0.0587, -0.0669, -0.166, -0.0237, 0.0865, 0.1333, -0.0363, 0.0024, 0.0214, 0.062, 0.0134, -0.0155, 0.1098, -0.0347, -0.0387, 0.0671, 0.1023, 0.0439, -0.0664, 0.0218, -0.0129, 0.0838, -2.5242, 0.2165, -0.1334, -0.0306, -0.2067, 0.0, 0.1202, -0.024, -0.1582, -0.0723, 0.0608, -0.0366, 0.0, -0.1058, -0.0078, -0.0253, 0.0008, -0.1141, -0.0081, -0.0311, -0.0653, 0.0442, -0.0132, 0.0279, -0.1031, -0.0396, -0.0132, 0.0758, -1.4874, -0.1308, 0.1442, -0.2098, -0.0838, 0.0545, 0.0226, -0.6763, -0.0661, 0.0091, -0.0139, 0.0, -0.0211, 0.0002, -0.001, -0.0785, -0.0069, -0.151, -0.0736, -0.0513, 0.0, 0.0, 0.0321, 0.0526, 0.005, 0.0602, -0.2058, 0.0021, 0.0139, -0.2791, 0.0422, -0.0597, -1.0614, -0.0308, 0.0, -0.0845, 0.0925, 0.5568, 0.0756, 0.0401, -0.039, -0.2656, -0.1481, 0.0741, 0.0433, 0.0, 0.2751, -0.0147, 0.0509, 0.0531, -0.0341, 0.0143, -0.0032, 0.0, -0.0146, 0.128, -0.0401, 0.089, -0.7644, -0.1875, 0.02, 0.0378, -0.0179, -0.2294, 0.0841, -0.0545, 0.0, -0.0219, 0.0564, -0.0174, 0.0062, 0.3859, -0.0683, 0.1501, 0.0397, -0.0075, 0.071, 0.041, 0.0021, -0.0198, -0.0374, -0.6775, 0.1999, 0.0152, -0.05, 0.3201, -0.033, -0.4834, 0.4907, 0.4083, 0.0, -0.0396, 0.1435, 0.0271, -0.1232, -0.1287, 0.1119, -0.051, 0.081, -0.0332, 0.0, -0.0277, 0.0877, 0.1108, 0.0588, 0.1418, 0.062, 0.1301, 0.1503, -0.0426, 0.0546, 0.0558, 0.2636, -0.0226, 0.0911, 0.0, 0.0037, 0.6571, 0.0533, -1.2496, -0.0116, -0.0164, 0.0, 0.0247, 0.3302, 0.0523, 0.0068, -0.0077, 0.0708, -0.4029, 0.1328, -0.2063, 0.0315, 0.0414, 0.0982, -0.4946, 0.3215, 0.1435, -0.0992, -0.0506, 0.0435, 0.0, 0.0133, -0.0075, 0.1025, -0.0151, 0.0966, -0.2293, 0.6305, 0.156, -0.0375, 0.0908, -0.1906, -0.2548, 0.8933, 0.0452, -0.9599, -0.1829, 4.4325, 0.0453, 0.1059, -0.1217, -0.1221, -0.1139, 0.3525, 0.0435, 0.0528, 0.0697, 0.0922, 0.0524, 0.0808, 0.0904, 0.14, 0.9854, 0.0804, 0.0832, 0.6224, 0.0987, 0.0772, 0.0726, 0.0432, 0.016, 0.1564, 0.0067, 0.074, 0.0939, 0.091, 3.865, 0.2358, 0.081, 0.086, 0.0, 0.0539, 0.1068, -0.2154, 2.1818, -1.193, -0.0527, 0.1286, -0.4481, -0.0817, -0.0808, -0.0314, -0.6035, 0.9055, -0.0395, -0.1395, -0.086, -0.0573, -0.194, 0.0299, -0.2405, -0.3242, 0.025, 0.074, 0.1126, 0.0525, -0.279, 0.237, 0.0, -0.5649, 0.5559, -0.0764, 4.2567, -0.2877, 0.1232, -0.0553, -0.3582, 0.7597, 0.0544, 0.0768, 0.038, -0.0325, -0.1459, -0.1009, -2.5098, 0.0632, -0.5317, -0.094, -0.0854, -1.9242, -0.0178, 9.0767, 0.3446, 0.2423, 0.0245, -0.0162, -0.2177, 0.3408, 0.0351, 0.0662, 0.0458, -0.3151, 0.1264, 0.1377, -0.0223, -0.3062, -0.0895, 0.1157, -0.4258, -0.062, 0.1378, 0.0086, 0.1019, 0.0261, 0.0107, -0.6327, -0.4281, 0.1829, 0.1993, 0.1412, -0.3221, 0.0173, 0.1364, 0.1518, 0.0549, 0.095, 0.0363, -0.0738, -0.0032, -0.0698, 0.2333, 0.3456, -0.0058, -0.0404, 0.0129, 0.0194, 0.0405, 0.1555, 0.2465, 0.0535, 0.0859, -0.2698, 0.2088, 0.0064, 1.2593, -0.0786, 0.804, -0.0422, -0.088, -0.0003, 0.026, -1.0067, 0.1054, 0.0, 0.0325, -0.0921, -0.0611, -0.0366, 0.0, 0.0643, -0.1408, 0.0, -0.0977, -0.0574, -0.0079, -0.0758, 0.1302, 0.1607, 0.1035, 0.0769, 0.1212, 0.2943, 0.007, 0.1032, 0.0334, 0.2463, 0.1139, 0.4422, 0.3621, 0.0, 0.0, -0.0547, -0.0146, -0.0179, -0.8655, -0.0735, -0.09, 0.9367, 0.0773, 0.0501, 0.0611, -0.01, 0.0773, -1.9174, -0.7464, 0.0426, 0.1821, 0.1037, -0.0769, 0.0079, -0.0263, 0.0379, -0.0618, 0.0807, 0.0, 0.0756, 0.0201, 0.0515, -0.0226, 0.0365, -0.0233, 0.0041, -0.1432, -0.152, 0.022, -0.0088, -0.0286, 0.0325, 0.0197, -0.05, 0.0, 0.0771, 0.0339, -0.0367, 0.2254, -0.3121, -0.0159, 0.0639, 0.0629, -0.3254, 0.0377, 0.0121, -0.0389, 0.0295, 0.0743, 0.004, 0.0137, 0.0448, 0.0153, -0.243, 0.0048, 0.0911, -0.0181, 0.4279, 0.0917, -0.1184, 0.0763, 0.0315, 0.0311, 0.093, 0.0172, 0.1786, -0.0535, -0.3119, 0.0694, -0.004, 0.126, -1.3633, -2.5114, 0.0039, -0.0197, 0.0305, -0.0669, -0.0809, 0.0681, 0.2166, 0.0564, 0.3096, 0.0954, -0.0364, 0.1368, 0.339, 0.0205, -0.0013, 0.126, 2.1977, 0.1154, 0.0838, -0.0054, -0.0751, -0.004, 0.0481, 0.029, -0.0171, 0.0794, 0.0406, 0.0023, 0.0691, 0.2445, 0.0, -0.0354, 0.7787, -0.0315, 0.0531, 0.0028, 0.1241, -0.0213, 0.0, 0.0479, 1.4243, 0.0178, 0.0677, -0.0996, -0.0182, 0.0858, 0.065, 0.0802, 0.3219, -0.0908, 0.146, 0.1091, 0.0752, 0.0372, 0.1948, -0.0329, 0.0214, -0.1295, -0.0052, -1.6523, -0.0843, -0.1418, 0.0008, 0.0846, 0.0856, -0.075, -0.0356, 0.0704, 0.037, -0.0216, 0.0027, 0.0808, -0.5145, -0.3086, 0.0, -0.0583, 4.9567, 0.1575, 0.0, 0.0468, -0.0395, -0.013, 0.1171, 0.1625, -0.0278, 0.0286, 1.0772, -0.5432, 0.0765, 0.32, -0.019, 0.0788, -0.0056, -0.0072, -0.026, -0.003, 0.0173, 0.4313, -0.4753, 0.0723, -0.001, 0.0041, 0.0, 0.1439, -0.0411, -0.0865, 0.1364, 0.0782, 0.0659, 0.4993, 0.0589, -0.0158, 0.5421, 0.0846, -2.5408, -0.3229, 0.0, -0.456, 0.1867, 0.1001, 0.3329, -1.3727, 0.2464, 0.1536, 0.1232, 0.112, 0.0929, -0.1651, -0.1448, -0.0115, 0.0174, 0.025, -0.0116, 0.1407, -0.0231, 0.5245, 0.1468, -0.065, 0.3629, 0.0707, -2.7192, 0.1131, 0.0, 0.0, 0.0, -0.2459, 0.0158, -0.0776, 0.5498, 0.001, -0.3233, 0.0427, 0.0383, 0.0409, -0.0597, -0.0594, 0.2592, 0.1575, -0.4355, 0.0652, 0.0049, 0.0269, 0.0947, 0.1289, 0.0797, -0.0064, -0.067, 0.1641, -0.0811, 0.0, 0.0864, -0.015, -0.0139, -0.0914, 0.0403, 0.0919, -0.308, 0.087, 0.1672, -0.011, -0.1606, -0.4821, 0.107, -0.0528, 0.2003, 0.2533, 0.0348, 0.0224, 0.0292, 0.0068, -0.2491, 0.0492, 0.0356, 0.0774, 0.2555, 0.184, 0.0263, 0.1237, 0.0, -0.0232, -0.1975, 0.0244, -0.4819, -0.0212, 0.013, -0.0171, -2.7242, 0.0895, -0.0408, -0.0723, 0.075, 0.0095, 0.1897, 0.1561, -0.1275, 0.0185, 0.1203, 0.0, 0.0, -0.0477, 0.1208, 0.1764, 0.0469, 0.036, 0.3171, 0.0907, 0.2226, 0.0685, 0.0, -0.0489, -0.0146, 0.1041, -0.0945, 0.0235, 0.0, 0.0628, -0.6095, 0.258, 0.0385, 1.1561, 0.7956, 0.0194, 0.075, 0.1204, 0.0079, -0.0301, -2.888, 0.174, -0.053, 8.035, 0.0728, 0.0773, -0.0079, -1.3097, 0.0236, 0.093, 0.0448, 0.0, 0.0519, 0.0784, 0.0, 0.1621, 0.0667, 0.0, 0.1001, 0.0845, 0.1497, 0.0458, 0.0376, -0.0032, 0.042, -0.3188, 0.0, 0.2708, 0.0248, 0.202, 0.1484, 0.4354, 0.1144, -0.0243, -0.0595, 11.8983, 0.1437, 0.1026, 2.1971, 0.6513, 0.0978, 0.1687, 0.0683, -0.481, 0.0257, 0.3962, -0.0272, 4.741, -1.0157, 14.064, 0.102, 0.0523, 0.0189, 0.0, 0.0287, -0.2497, 0.3653, -0.1449, -0.0392, -0.0499, 0.0504, -0.1592, 0.0181, 0.1407, 0.085, -0.031, 0.1677, 0.2176, 0.1535, 0.1528, -0.0261, 0.0776, 0.0802, 0.1436, 0.0785, -0.0117, -0.0263, 0.0303, 0.0155, 0.1453, -0.026, 0.1092, 0.0728, 0.0259, 0.0694, 0.1039, 0.0258, 0.0618, -0.016, 0.1066, 1.1217, 0.0562, -0.0748, 0.073, 0.0077, -0.131, 0.0945, 2.9413, -0.0129, 0.1992, -0.119, 0.0647, 0.0961, 0.0, -0.1179, 0.2834, 0.0054, 0.0499, 0.0314, -0.0178, 0.0, -6.7983, 0.0, -0.2409, 0.0476, -0.0354, 0.0016, 0.0444, 0.0704, 0.1131, 0.0847, 0.0118, 0.9829, 0.04, -0.0669, -0.1502, 0.1966, 0.105, -0.8074, 0.0716, 0.0719, 0.1592, 0.0577, 0.0222, 0.015, -0.0289, -0.2033, 0.0232, 0.193, 0.0823, 0.0933, 0.1005, 0.0755, 0.0967, 0.0926, -0.0989, -0.0614, 0.0, -0.0132, -0.014, 0.1027, 0.6448, 0.2674, 0.0119, -0.0588, -1.0085, -0.2545, -3.8456, 0.0489, 0.0818, -0.2864, -0.0017, 0.0382, 0.0668, 0.04, -0.3228, 0.743, -0.5391, 2.4498, 2.2147, 0.0736, 0.0039, 0.0368, 0.0, -0.102, -0.143, 0.0477, 0.2664, 0.6268, 0.0, 1.1052, 0.2006, -0.0356, -0.2056, 0.1304, -0.9055, 2.187, -0.0531, 0.1113, 0.0626, 0.1146, 0.1477, -0.0038, -0.0897, 0.0, -0.8691, 0.265, -0.2389, 0.0333, 0.0, 0.0239, -0.0163, -0.0113, -0.0893, 0.2125, -0.0156, -0.1505, 0.2215, 0.0082, 0.2168, -0.0323, -0.3581, -0.0152, 0.0099, -0.2459, -0.0361, 0.0, 0.2628, 9.9767, -0.1257, -0.2957, 0.0751, 0.0389, 0.0214, 0.0866, 0.0798, 0.3724, 0.122, 3.758, -0.0038, -0.1387, -0.0521, 0.0, -0.5563, 0.2544, -0.0369, 0.027, -0.1023, -0.8244, -0.0359, -0.0215, 0.0429, -0.1116, 0.0128, -0.0243, 0.0139, -1.1684, 0.3098, 0.122, -0.0253, 1.7039, 0.6382, -0.1726, 0.7662, -1.1962, 1.3702, -1.3456, -0.2259, -0.2258, 0.1294, -0.036, 0.124, 6.1583, -0.0681, -0.0407, -0.1455, -1.297, -3.0231, 0.0318, 0.0222, 0.0068, -0.0215, 0.0055, 0.0037, 0.0632, 0.0665, 1.4067, -0.2542, 0.2887, 0.0349, 0.1029, 0.0195, -0.1954, 0.1485, 0.0721, 0.0, -0.1796, 0.0891, 0.0329, -0.2612, -0.123, 1.3303, 0.1341, 0.0267, -0.0435, 0.1811, -0.184, 0.0207, 0.0643, -0.0397, 0.0421, -0.0542, 0.0, 0.2242, 0.0648, -0.1642, 0.0401, 0.0371, -0.3905, -4.0947, 0.0778, -0.022, 1.0354, -0.1222, -0.7035, -2.2621, -0.0221, 0.07, 0.0151, 0.052, -0.6103, -0.0652, 0.8258, 0.0731, 0.2583, -0.0634, -0.0867, -0.1232, 0.0119, 0.0545, -0.0838, -0.6349, -0.1011, -0.0202, 2.3634, -0.0577, 0.2343, -3.9513, 1.3151, -0.082, 0.0774, 0.0908, 0.0, -0.0074, 0.1755, 0.1677, 1.3029, 0.0499, 0.0118, -0.0372, -0.071, -0.1345, -0.0584, 0.191, -0.1501, -0.0062, -0.033, 0.2009, 0.0499, 0.0064, 0.054, 0.0, 0.1018, -0.0025, 0.1224, 0.0337, -0.3162, -0.004, 0.8056, 0.0242, -0.0538, -0.1877, -0.0633, -0.083, 0.1416, -0.0007, -0.0364, -0.3833, -0.3361, 0.0006, -0.0022, -0.0816, 0.1984, 0.0248, 0.0988, 0.0958, 0.0, -0.0988, -0.0193, -0.4631, -0.0046, -0.0121, -0.0028, -0.1226, -0.0323, 0.0079, 4.8733, 0.0, 0.0587, 0.141, 0.2317, -0.1156, 0.3523, 0.0023, -0.135, -0.0567, 1.3571, 0.1026, 0.1373, 0.5784, 0.0705, -0.4344, 0.0795, 0.0733, 0.0461, 0.0516, -0.2804, 0.0265, -0.001, 0.0, 0.1473, 0.0274, 0.2124, 0.459, 0.0349, 0.103, 0.425, -1.7946, 0.0509, 0.0945, -9.61, 0.2011, 0.0671, 0.2053, 1.7149, 0.0469, 0.0135, 0.0912, 0.0001, 0.0151, 0.0171, 0.1399, 0.0134, 0.0914, 0.0922, 0.0705, 0.4413, -0.252, 1.9865, -0.0116, 0.8878, 0.0557, -0.0515, 0.5829, 0.0637, -0.0833, 0.0391, 0.0396, -0.0388, -0.0373, 0.0376, 0.0094, -0.0174, 0.0771, -1.229, 0.0343, 0.0, 0.0, -0.7715, 0.0772, -0.0511, -1.4117, 0.1151, 0.1046, 0.505, 0.0912, 0.176, 0.0206, 0.0838, 0.3106, 0.3219, 1.6082, 0.104, 0.0844, 0.0463, 0.0727, -0.0299, 0.0761, -0.1256, 0.0477, 0.0867, -0.0577, -1.342, -0.031, -2.2532, -0.0511, -0.1825, 0.1528, 0.0582, -0.0295, -3.6427, 0.0648, -0.0593, -0.3137, 0.1814, -0.0029, 0.1035, 0.0015, 0.0156, 0.0442, -0.4746, 0.0151, 0.3173, -0.1846, -0.0097, 0.0021, 0.0258, -0.0895, -0.0786, -0.0739, 0.1506, -0.0041, 0.0518, -0.0568, -0.0324, -0.0117, -0.0426, -4.3758, 0.022, 0.2916, -0.0324, -0.0046, -0.0473, 0.0425, -0.0039, 0.0129, 0.081, -0.1021, 0.1227, -0.0421, -0.0404, -0.0194, 0.2316, -0.0278, 2.8198, -0.0238, -0.2093, -0.4415, 0.0606, -0.2626, -0.21, 0.0971, -0.1209, 0.5805, -2.1817, 0.4102, -0.0541, -0.0622, 0.0472, -0.0198, -0.0191, 0.0248, 0.114, 0.073, -0.029, -0.0162, -0.0125, 0.1185, 2.0716, 0.1077, 0.4196, -0.6001, 0.3792, -0.2851, -0.005, -0.003, 0.0375, 0.4653, -0.0205, -0.2185, -0.0317, -0.0156, -0.2513, 0.0, -0.1515, 0.0103, -0.0497, -0.0247, 0.1178, -0.0867, -0.7112, -0.053, 0.1431, 2.9567, 0.0, -0.112, 0.0203, 0.5667, 1.363, 0.0203, -0.0416, -0.0344, -0.0252, -0.0499, -0.0508, 1.3425, -0.0435, 0.0359, -1.9108, -0.3956, -0.0311, -4.6654, 0.0506, 0.0617, -0.3049, -0.0813, -0.0437, -0.0287, -0.0383, -0.1198, 0.015, -0.034, -0.0683, 0.1204, 0.0892, 0.056, -0.0555, 0.1043, -0.2329, 0.0356, 0.0701, 0.0, 0.1021, 0.0356, -0.0957, 0.0215, 1.1523, -0.0233, -0.0252, -0.0622, 0.009, -0.0469, -0.0177, 0.0, -0.3044, -0.1167, -0.1486, 1.3428, -0.1556, 0.0501, -0.1441, -0.0631, -0.1535, -0.0198, 0.0278, -0.1502, 0.0111, 0.2768, 0.0, 0.0418, 0.0255, 0.1749, 0.9225, 0.1261, -0.0136, -0.2064, -0.0496, -0.0027, 0.044, 0.1279, 0.054, 0.0962, 0.0499, 0.0531, -0.1497, 0.0217, 0.0655, 0.0017, 0.0414, 0.0794, 0.0724, 0.0, 0.0312, 0.0828, 0.1429, 0.082, 0.1087, -0.0133, 0.006, 0.0541, 0.0213, -0.045, 0.0244, 0.0176, 0.0314, -0.017, -0.193, 0.0801, 0.1061, -0.0227, 0.0832, -0.0692, -0.0346, 0.0723, -0.1115, -0.1044, 0.0275, 0.0262, 0.0566, -1.5879, -0.7952, -0.229, -0.079, 0.0886, 0.0204, 0.0399, 0.028, 0.0, -0.0435, 0.0239, -1.9834, 2.0489, 0.1242, -0.3771, 0.0215, 0.1365, -0.012, 0.3142, 0.0526, 0.0225, 4.88, -0.2208, 0.4666, -4.991, -0.0281, -0.0148, 0.1167, 0.04, -0.0227, 0.1561, -0.1217, 0.0431, 0.0572, 0.0936, 0.0962, -0.0237, 0.026, 0.0905, 0.1371, 0.0103, 0.0455, -0.0091, 0.0739, -0.1399, -0.0127, 0.2492, 0.0114, 0.0522, -0.1153, -0.0301, 0.0131, -0.0805, 0.0, -0.0813, -0.3199, 0.0, 0.0794, 0.0326, 0.0169, -0.017, 0.0072, -0.1613, 0.0102, 0.1452, 0.0, 0.0302, -0.0734, -0.0025, -0.103, -0.041, 0.035, 0.0506, 0.0209, 0.0387, -0.3557, 0.0, 0.0322, 0.148, 0.1227, 0.0688, -0.0905, 0.1633, 0.0258, -0.4596, 0.0015, 0.1716, 0.0, 0.0293, 0.0369, -0.1535, 0.0161, 4.215, 0.0577, 0.0826, 0.1727, 0.0, -6.5433, 0.1581, 0.0376, 0.0669, 0.1683, -0.1114, 0.0603, 0.0559, -0.0612, 0.27, 0.0, 0.1428, 0.0302, 0.0525, 0.032, 0.2959, 0.0885, 0.0, 0.0064, -0.0525, -0.0013, 0.0821, 0.0827, 0.0996, 0.2337, 0.1053, -0.1233, -0.0392, -0.0602, -0.0023, -0.3367, -0.0045, -0.0212, 0.1162, -0.0027, 0.0693, 0.7846, -0.0262, 0.1793, 0.0, 0.568, -0.1281, 0.0374, 0.9783, 0.047, 0.0085, 0.7612, -0.0627, -0.3589, 0.0651, 0.079, 0.0741, 0.0504, 0.0616, 0.0967, 0.0, 0.0664, 0.0, 0.0807, -0.2249, -0.1183, -0.9125, 1.0566, 0.0409, -0.0141, 0.0146, 0.0528, 0.0652, -0.0758, -0.0625, 0.0564, -0.0321, 0.2029, 0.0126, 0.3266, 0.0202, -0.0359, 0.2705, 0.0615, 0.1719, 0.1123, 0.1332, 0.0691, 0.1256, 0.0, 0.0661, 0.0054, -0.0271, 0.0644, 0.1117, 0.0212, -0.3698, 0.0344, -0.1479, 0.0006, 0.0905, 0.0, 0.0227, -0.0374, 0.2521, 0.0929, 0.0478, 0.0, 0.0499, 0.0653, 0.0669, 0.0, -0.0631, 0.0241, 0.109, 0.0217, 0.0553, -0.0279, -0.1491, 0.0826, 0.0456, 0.0523, 0.0831, 0.0613, -0.0572, 0.0996, 0.0331, 0.0762, 0.0158, -0.0071, 0.0, -0.1456, -0.1006, 0.0961, 0.023, 0.0055, 0.0473, 0.0583, 0.0885, -0.0728, -0.0638, 0.0148, -0.1634, 0.0515, 0.7221, -0.0921, 0.0242, 0.054, 0.0047, 0.0586, -0.1229, 0.018, 0.045, 0.0913, -0.0539, -0.0993, -0.1059, 0.0244, 0.0, 0.0521, 0.0222, -0.2527, 0.03, 0.1012, -0.064, 0.0427, 0.0695, 0.2352, -0.1037, 0.0299, 0.0299, 0.1201, 0.0626, 0.0031, 0.6422, -0.0224, 0.0191, 0.1837, -0.1596, -0.0413, 0.0637, -0.0783, 0.6878, -0.0377, -0.2142, -0.0101, 0.23, -0.0348, -0.0435, 0.0273, 0.0628, -0.2146, -0.1225, -0.0126, -0.2636, 0.0008, 0.1297, 0.0175, -0.2079, -0.0955, 0.0417, 0.1411, -0.0055, 0.1201, 0.0974, 0.1386, 0.047, -3.4087, 0.0138, 0.0416, 0.2797, 0.0371, 0.0238, -0.4795, 1.0156, -1.3137, -0.0351, 0.057, 0.0486, 0.1145, -0.1886, -0.0296, -0.0106, -0.214, -0.0066, 0.1366, 0.0611, -0.0669, 0.0636, 0.0237, -0.1408, -0.1697, 0.0279, -0.0739, 0.0, -0.0036, 0.097, 2.498, 0.4072, 0.0316, 0.0069, -0.0683, 0.0575, 0.0495, -0.0302, -2.0305, 0.2093, 0.0051, -0.0191, -0.26, 0.0105, 0.0177, 0.0409, 0.1634, 0.0988, 1.5993, 0.025, -0.1214, -0.0551, -0.0608, 0.087, 0.3795, -0.1621, -0.0095, -0.0537, -0.1102, 0.0233, 0.012, 0.0295, 1.1495, -0.4888, -0.0676, 0.0363, -0.014, 0.03, -0.0987, 0.0, 0.2124, 0.102, -0.1104, 0.0665, 0.1867, 0.0856, -0.4358, -0.1514, 3.786, -0.0812, 0.0422, 0.0443, -0.0229, 0.0289, -0.0041, 0.1059, 0.1948, 0.0394, -0.1002, 0.57, -0.6525, -0.0598, -0.037, -0.0106, -0.0433, -0.1444, 0.0082, 4.5008, -0.2057, 0.1333, -0.1284, -0.0046, -0.017, 0.0537, 0.0547, 0.164, 0.0291, 0.0856, 0.0724, -0.009, 0.0893, 0.0828, -0.1183, 0.0237, 0.022, 0.0506, 0.5565, 0.0825, 0.9886, -0.1566, 1.8671, 0.0797, -0.0057, 0.0, -0.0035, 0.6416, 0.079, -0.8109, 0.021, -0.0288, -0.1477, 0.2335, 0.0628, -0.0591, 0.1631, -0.2276, 0.4112, -0.0857, 0.0015, 0.0829, 0.0146, -0.0057, 0.0215, -0.2723, 0.0, 0.0534, -0.0065, -0.0623, -1.2, 0.1679, 0.0914, 0.2993, -0.1842, -0.6934, -0.0315, -0.0365, 0.0, -0.0023, 0.0104, -0.9457, 1.7735, 0.0475, 0.0323, 0.385, 0.0695, 0.0428, 0.0669, -0.0523, 0.083, 0.1867, 0.0137, 0.0285, 0.4045, -0.0339, 0.1129, 0.1509, -0.0214, 0.0035, 0.0858, 0.0117, -0.0414, 0.1208, 0.1488, -0.05, 0.0071, -0.1968, 0.0098, 0.007, -0.1895, 0.0541, -0.0538, 0.0191, -0.7076, 0.6261, -0.635, 0.0, 0.0284, -0.414, 0.0632, 0.3289, -0.0654, 0.0, -0.0111, 3.2781, 0.0007, 2.6467, -0.0192, -0.0197, -0.0235, -0.0297, 0.0448, 0.3231, 0.0429, 0.0402, 0.0499, 0.0332, -0.0332, -0.017, 0.1456, -0.0665, -0.0728, 0.1351, 0.3345, 0.0389, -0.346, -0.2901, -0.0128, -0.5943, 0.1699, 0.0443, 0.0212, -0.0496, -0.0456, -0.055, 0.0676, 0.0173, 0.029, 0.0363, -0.0917, 0.0149, 0.0895, 0.045, 0.0973, 0.0, -0.0536, -0.0772, 0.1125, 0.0049, -0.7756, 0.0056, -0.6025, 0.124, -0.0026, 0.0, -0.0469, -0.5072, 0.0187, 0.0972, -0.4097, 0.116, -0.0212, 0.3931, 0.0686, 0.0, -0.0427, 0.0563, 0.0155, 0.0938, -0.0006, 0.1335, 0.0739, 0.0319, -0.1719, 0.1543, -0.0065, 0.0663, 0.0245, 0.2207, 3.3333, -0.0524, -0.1339, -0.0203, -0.0004, 0.3897, 0.0659, -0.9361, 0.0795, 0.0185, -0.3091, 0.2908, 0.0726, 0.0, -0.0586, 0.1441, -0.1121, -0.0335, 0.1049, 0.0168, -0.0676, -0.0354, 0.9226, 0.0987, -0.1488, 0.0, -0.0204, -0.0021, 9.01, 0.0777, 0.1243, -0.0565, 0.088, 0.0681, 0.0913, 0.0405, -0.0321, -0.0183, 0.0645, 0.0966, -1.61, 0.1621, 1.0792, 0.0714, 0.0, -0.0805, -0.0331, -0.6703, 0.0776, -0.0284, 0.0265, 0.0687, 0.1583, 0.096, -0.0766, -1.6467, -0.0152, -0.0192, 0.1759, 0.7868, 0.0158, 0.0795, 0.0799, 0.0723, 0.0452, 0.0809, 0.0174, 0.5072, 0.0749, -0.0972, 0.0671, 0.1044, 0.08, -0.0852, -0.5031, -0.0659, -0.033, 0.4246, 0.5963, -0.038, -0.2344, -0.0357, 0.107, 0.009, 0.0398, 0.0895, 0.0719, -0.1117, -0.185, 0.0565, -1.3362, -1.2969, -1.6065, 0.0106, 0.0784, 0.0536, -0.0707, 0.0493, 0.0126, 0.1705, -0.0178, -10.7892, 0.0594, -0.2038, 0.0, -0.0344, 0.1105, 0.2914, -0.1342, -0.0928, -0.1862, 0.0748, 0.0918, 0.3821, 0.0476, 0.0737, 0.1094, -0.1265, 0.0682, 0.0983, 0.1126, -0.0404, 0.7512, -2.9966, -0.0197, 0.0602, -0.0608, 0.085, 0.0191, 0.0699, 0.0, 0.3133, 0.1152, 0.0858, -0.1476, 0.0265, -0.0964, 0.1805, -0.0509, 0.1999, 0.2221, 0.0, 0.0394, -0.0281, 0.1009, 0.0766, 0.0836, -0.081, -1.21, -0.0338, -0.1335, -0.04, 0.0767, 0.0899, 0.067, -0.0177, 0.1039, 0.1125, 0.0161, -0.0054, 0.1254, 0.1025, 0.5402, 0.0641, 0.0829, 0.1024, -0.043, 0.0531, -1.0377, 0.0041, 0.0754, -0.026, 0.0118, -0.0276, 0.1042, 0.0438, -0.2898, 0.8687, 0.0246, 0.0623, 0.0286, -0.0777, 0.0176, -0.1267, -0.0154, -0.0161, 0.0686, 0.2012, 0.0225, 0.1032, 0.0913, 0.074, 0.0731, 0.0, 0.1072, -0.0087, 0.0, -0.0798, -0.0163, 0.0, 0.0074, 0.1654, 0.3816, -3.6921, 0.0107, -0.0485, 0.106, 0.1319, 1.6976, 0.0757, 0.1804, -0.3361, 0.0147, 0.0832, 0.2244, 0.0287, 0.0086, 0.227, -0.0767, -0.0211, 0.0692, -0.027, 0.0069, 0.0858, 0.0202, 0.0607, -0.0003, 0.1529, 0.0, 0.004, 0.0, 0.0716, -0.0537, 0.0, 0.0, 0.1667, -0.0268, 0.9443, -0.7225, 0.0038, 0.2327, 0.0526, 0.1435, -0.1213, 0.1632, 0.0785, 0.067, 0.1665, 0.0435, 0.0, -0.0263, -0.0847, -0.0932, -0.0076, -0.1648, 0.1024, -0.0003, 0.2782, 0.4048, 0.0, 0.0535, 0.0, -0.0815, 0.0662, 0.0192, 0.2626, -0.3656, -0.9136, -2.0417, 0.0776, 0.081, 0.0954, 0.067, 0.0708, 0.0914, 0.1484, -0.01, -0.0442, 0.009, -0.0162, -0.5191, 0.0118, -0.0281, 0.2685, 0.0723, 0.0593, 0.0429, 0.0422, -0.9833, 0.0, 0.1303, 0.6675, -0.0645, 0.0779, 0.0114, -0.2009, -0.03, 0.0785, 0.4034, 0.2038, -0.109, 0.0, -0.195, 0.0124, -0.5632, 1.157, 0.0082, 0.1335, -0.1029, -0.0129, -0.3154, 0.3503, -0.0101, 0.0051, 0.0939, -0.1229, 0.0372, 0.0268, -0.1613, -0.0425, -0.2408, -0.0642, -0.3143, 0.08, -0.0083, -1.7257, 0.2, 0.1327, 0.088, 0.0444, 0.02, 0.0182, 0.0974, 0.0252, -0.056, -2.1025, 0.0003, -0.2495, 0.0995, -0.0179, 3.6915, -0.0207, 0.1616, 0.0, 0.0078, 0.0898, 0.8015, 0.0236, -0.2207, 0.0333, -0.1945, 0.0758, -1.225, 0.1382, 0.366, 0.1068, -0.0132, 0.1155, -0.0324, 0.0757, 0.3085, -0.004, 0.4772, -0.075, 0.2747, -0.0543, -0.0579, 0.2821, -0.0612, -0.1062, 0.1474, -0.0452, -0.3515, 0.0226, 0.02, -0.1062, 0.0849, 0.0927, 0.8212, 0.1319, 0.0679, 0.1257, -0.0108, 0.0733, -0.1089, 3.0142, 0.0579, 0.0606, 0.0479, 0.0592, -0.046, -0.4456, 0.1507, -0.3851, 0.0, -0.2452, -0.0247, -0.1568, 0.1841, 0.0526, -0.0265, -0.0081, -0.4471, -0.0398, -0.0279, -0.7864, -9.2475, 0.096, 0.0013, 0.0433, 0.2004, 0.0393, 0.0233, -0.7538, -0.0437, 0.0837, -0.0107, -0.0279, 0.084, -0.0011, 0.0286, 0.1029, -0.0184, -0.0142, -0.0548, 0.0495, 0.4819, 0.1127, -0.0592, 1.4083, 0.1608, 0.0567, -0.0196, 0.0176, 0.0, 0.0036, 0.1218, -0.0033, 0.0702, -0.0086, 0.0807, 0.0816, -0.0357, 0.0921, 0.0192, -0.0226, -0.0577, -0.1301, 0.0748, -0.0443, 0.13, 0.1221, -0.0076, -0.0968, 1.5468, 0.2564, 0.1225, 0.1549, -0.0353, 0.0718, 0.1081, -0.0395, 0.0184, 0.0544, 0.1134, 0.1517, -0.0338, -0.0383, -0.0208, 0.1468, 0.0804, 0.0672, 0.0664, 0.0951, 0.0525, 0.0088, -0.0093, 0.0841, -1.0256, -0.0522, 0.0299, 1.365, 0.1173, 0.1247, -0.1159, -0.054, 0.037, 0.1199, 2.2942, 0.1005, 0.2097, 1.2404, 0.0445, 0.0944, 0.1311, 1.2094, -0.0389, 0.0754, 2.8633, 0.156, 0.1018, -0.0067, -0.1451, 0.0526, -0.1791, 0.0638, -0.1076, 0.0164, 0.0005, -0.0074, 0.262, 0.4261, 0.1494, 0.0, 0.0625, 0.2838, 0.127, -0.013, 0.0826, -0.0097, 0.0564, -0.2528, 0.0, -0.0315, 0.0542, 0.1544, -0.0282, -0.0308, 0.0, -0.0203, 0.0496, 0.0047, 0.2278, -0.4746, -1.1081, -0.0605, -0.8026, 0.1856, 0.0034, -0.0863, 0.0822, 0.0719, -0.2704, -0.6102, 0.247, 0.139, 0.0504, 0.0707, -0.0745, 0.0173, -0.8881, -0.4439, 1.4158, 0.0469, 0.1039, 0.056, 0.0728, 0.0491, 0.0532, 0.0957, 0.0007, 0.2408, -0.6223, -0.0214, 0.1745, 0.0885, 0.2161, -0.1849, 0.0829, 0.3445, -0.1739, 0.1445, 0.108, -0.1009, -1.182, -0.0701, -0.1722, 0.0962, -0.034, -3.2283, 0.4992, 0.0997, 0.2395, 0.0239, 0.1208, 0.1134, 0.084, -0.0806, 0.2533, 0.1112, 0.8211, 0.0456, 0.1015, -0.0236, 0.0996, 0.0032, -0.0452, 0.0335, 0.0047, 0.013, -0.5329, -0.0195, 0.0596, -0.0523, 0.1157, -0.026, 0.0516, -0.0115, 0.0, 0.1246, -0.0746, 0.006, 0.0873, 0.0713, 0.1573, 0.1291, 0.0791, 0.0289, 0.0894, -0.3052, -0.058, 0.0982, 0.0504, -0.1606, 0.1532, -0.6122, 0.0711, 0.0289, 0.0794, 0.0145, 0.0591, -0.0302, 0.0595, 0.1319, -0.0452, 0.0572, 0.0239, 0.1664, 0.0364, 0.0074, -0.0481, -0.0257, 0.0735, 0.074, 0.1883, -8.0162, 0.47, 0.1321, 0.022, 0.0389, 0.0924, 0.0645, 0.0722, 0.0386, 0.6973, 0.011, 0.0905, 0.0815, 0.1292, -0.3088, 0.0138, -0.0061, 0.7705, 0.1271, -0.0267, -0.1582, -0.0962, -3.0925, 0.087, 0.1227, 0.0551, 0.061, 0.1236, 0.0988, 0.0648, 0.6776, -0.1937, 0.054, -0.2037, 0.0, 0.0081, 0.105, -0.3368, 0.0646, -0.6428, 0.3483, -0.1054, 0.04, -0.0757, 0.037, -0.1138, 0.0, 0.0795, -0.0317, 0.0, -0.0568, 0.1147, 0.069, 0.0203, 0.1255, -0.0057, 0.0361, -0.0111, -0.0077, 0.1434, -0.0204, 0.0536, -0.0214, 0.069, 0.0396, -0.0866, -0.0946, 0.0799, 0.0452, -0.0206, -4.4549, 0.0349, 0.2317, -0.0458, 0.058, 0.0339, 0.0623, -0.6514, -0.1162, 0.0421, 0.0413, 0.1372, 0.0, 0.102, 0.1169, -0.0129, 0.2823, 0.0681, -0.0303, -0.3831, -0.0124, 0.1899, 0.0044, 0.0366, -0.2498, 0.0416, 0.0352, -0.3259, 0.0853, -0.0602, 0.0895, 0.092, 0.0266, 0.0996, 0.1085, -0.0062, 0.0571, 0.0299, 0.0, 0.1405, 0.0, 0.1275, -1.8681, 0.1009, 0.1062, 0.0, 1.5296, -0.6127, -3.2985, 0.0015, -0.0202, 0.3962, 0.8181, -1.9233, 0.4411, 0.1914, 0.0706, 0.0085, 0.042, 0.0492, -0.4962, -0.3427, -0.6736, 0.7936, -0.0689, 0.1009, 0.0402, -0.64, -0.0091, 0.1786, -0.235, 0.0531, -0.0818, -0.0949, 0.0388, 0.0612, -0.0807, 0.0193, 0.0745, -0.0024, -0.0763, -0.0441, -0.026, -0.0093, -0.083, -0.0035, -0.0347, 0.1078, 0.1192, -0.0031, 0.8661, -0.0043, 0.406, -5.7656, 1.2051, -0.4443, 0.0164, 0.2956, -0.0005, -0.0563, -0.0543, 0.0326, 0.0052, 0.0773, 0.0143, 0.0377, 0.0935, -0.4956, -1.7303, 0.0609, 0.0139, 0.1719, -0.063, 0.1197, 0.1082, -0.3959, 0.1502, 0.0872, 0.057, 11.9167, -0.0108, 0.0331, 0.0291, 0.074, 0.0906, 0.0746, -0.2633, 0.0, -0.0103, 0.0773, -4.5923, 0.0514, 0.0271, 0.0305, -0.861, 0.0157, 0.0158, -0.0017, 0.1197, 0.0792, 0.0732, 0.0865, 0.0852, 0.0, 0.0177, 0.0221, 0.0365, 0.0, -0.0231, 0.5155, -2.6367, 0.0712, 0.2235, 0.3258, -0.0441, 3.6075, -0.085, 0.1088, 0.082, 0.0677, 0.104, 0.0739, 0.1114, 0.1019, 0.2543, 0.0929, 2.0508, -0.0912, 0.011, -0.0905, 0.0895, -0.716, -0.0241, 0.4401, 0.0586, 0.1159, -0.0445, -0.1393, -1.0612, -0.0246, -0.0511, 0.0941, -0.0383, 0.183, 0.113, -0.1475, -0.3657, -0.0008, 0.1275, 0.0608, 0.0517, 0.1139, 0.0868, 0.075, 0.1321, 1.4142, 0.1535, 1.2605, 0.1757, 0.0981, 0.0627, 0.118, 0.0, 0.088, 0.0817, 0.1611, -0.1421, 0.1266, 0.0, 0.0318, 0.0, -0.1659, 0.1951, 0.294, 0.2774, 0.0414, -0.7451, 0.5373, -0.1017, 0.2912, 0.0501, 0.226, 0.1422, -0.2388, 0.0817, 1.0677, -0.0788, 0.0031, 0.0811, 0.1272, 0.0319, -0.5683, 0.0, -0.0885, 0.0694, 0.0348, 0.1255, 0.0784, 0.5912, 0.1211, 0.0978, 0.1834, 0.0303, 0.2614, 0.0259, -0.0599, 0.0487, 0.0667, 0.0649, 0.0769, -0.0075, 0.1227, 0.0398, 0.074, 0.0697, -0.1125, -0.0489, 0.0131, 0.049, -1.9976, -0.7275, -0.293, 0.6548, -0.0509, 0.2101, 0.0826, 0.0295, -0.0303, -0.0876, 0.5916, -0.0174, 0.028, -0.2007, 0.0962, 0.029, -0.1558, 0.0027, 0.0195, 0.0386, 0.0478, 0.0599, 0.0237, -0.3213, 0.0461, 0.0274, 0.1556, 0.0, 0.0778, -2.6323, 0.0614, -0.0471, 0.2936, -0.085, 0.0189, -0.0182, -0.0446, 0.0536, -0.0289, 0.0151, -0.0939, 0.0569, 0.0538, 0.0459, 0.2191, 0.1056, -0.1317, -0.0159, -0.0277, -0.0294, -0.0027, -0.0147, 0.3258, 0.0399, 0.2367, -0.0403, -0.4779, 0.01, 0.0845, 0.0833, -0.0111, 0.0102, -0.0462, 0.002, 0.0, -0.2316, 0.1204, 0.0769, -0.0166, 0.1226, 0.0836, -0.0052, 0.0304, 0.0035, 0.2471, -0.0407, 0.0494, -1.125, -0.0988, 1.2324, 0.0806, -0.0601, 0.0128, 0.1021, 0.0674, 0.0, 0.087, -2.2511, -0.081, 0.3809, -0.0827, -0.0457, 0.013, 0.0137, -0.0994, 0.0212, -1.1053, 0.0487, -0.1832, -0.0416, 0.048, 0.1402, 0.0315, 0.0399, -0.0081, -0.0498, 0.022, -0.0091, -0.0059, -0.0768, -0.1166, -0.1286, 0.2125, 0.2249, -0.3491, -0.1093, 0.016, 0.1295, 0.0033, -0.6373, 0.0304, -0.0292, -0.4156, -0.012, -0.3721, 0.0482, 0.0152, 0.1046, -0.044, 1.0479, 0.0593, 0.195, 0.0, 0.1995, 0.0029, 0.0241, 0.0698, 0.0208, 0.158, -3.4867, 0.1463, 0.2595, 0.0, 0.6611, 3.1997, -1.754, 0.1305, 0.0, 0.4122, -0.056, 0.8039, 0.0747, -0.0072, 0.1324, 0.1559, 0.0, 1.0231, 0.032, 0.0175, 0.0371, -0.036, -0.1277, -0.0884, -5.6258, -0.2585, 0.0382, -0.1002, 0.187, -0.1082, -0.0093, 0.2885, 0.0972, 0.0076, 0.1963, 0.4228, 0.2082, 0.0686, 0.0605, -0.7137, 0.0422, -0.9267, -0.1592, -0.1306, 0.0446, 0.0566, 0.0464, -0.0158, 0.2916, -0.0269, 0.382, 0.2048, 0.0151, 0.1207, 0.0903, 0.1531, 0.0063, 0.0484, 0.0258, 0.0283, -0.0877, -0.8449, 0.0, 0.0551, 0.1643, 0.0372, 0.0227, -0.062, 0.0105, 0.0264, 0.3687, -0.1789, -0.0709, -0.1752, 0.0921, 0.1106, -0.2397, 12.5983, -3.6594, -0.0225, 0.0384, 5.4023, -0.231, 0.0402, 1.3939, 0.0505, 0.0689, 0.0379, 0.0742, 0.1297, 0.003, 0.0826, 0.008, -0.1181, 0.0409, -0.2142, -0.0304, -0.034, 0.0111, 0.0807, -0.4493, -0.092, 0.0795, 0.1059, -0.0005, 0.1424, 0.0097, 0.0348, -0.005, 0.1308, 0.0678, 0.2433, 0.3466, -0.0307, 0.0346, -0.4747, 0.0296, 0.126, 0.1402, -0.1128, 0.314, 0.0729, 6.2433, 0.0534, -0.1587, -0.0804, 0.0462, -0.0853, 0.0566, -0.0754, -0.1763, 0.2706, -0.0299, 0.0505, 0.0272, 0.0437, -0.0653, 0.1831, 0.0, -0.0445, -0.3227, 1.35, -0.0518, 2.7225, -0.0526, 0.0304, 0.171, -0.1328, 0.0943, 0.0136, -0.007, 0.0046, -0.2731, 0.0828, 0.0685, 0.0481, 0.0712, 0.0841, 0.0737, 0.164, -0.0157, -11.2433, 0.0301, 0.6727, -0.1408, -0.9544, 0.0865, 0.0621, 0.0705, 0.0509, 0.1591, -0.7736, 0.437, 0.0412, 0.0371, 0.0363, -0.1136, -0.0246, 0.1601, -0.2469, -0.0882, 0.3639, -0.061, 0.047, 0.7197, 0.0, 0.4727, 0.1159, 0.0759, 0.1393, -0.2414, 0.0005, 0.0516, -0.0988, 0.0973, -12.43, 0.0822, 0.0, 0.1639, 0.0716, 0.0597, 0.0452, -0.9539, 0.1456, -0.1854, -0.05, 0.8906, -0.0304, 0.0006, -0.2075, 0.0443, -0.1396, 0.2456, 0.074, -0.0179, 0.0547, -0.0439, -0.1733, 0.1036, 0.0569, -0.2454, 0.1694, -0.5795, -0.061, -0.0203, -0.0421, -0.5511, -0.0398, 0.1404, 0.3074, 0.0733, 0.1499, 0.0086, 0.1423, 0.0362, -0.0337, 0.16, 0.045, 0.0624, -0.0182, -0.0296, 0.019, 0.0661, -0.017, 0.1582, -0.4165, -0.0253, 0.7725, 0.074, 0.0875, -0.4507, 0.0917, 0.4399, -0.2606, 0.0636, -0.2461, 0.3786, -0.0341, 0.0034, 0.1025, 0.0536, 0.0, 0.715, 0.0493, 0.0336, 0.0599, -1.8303, -0.0835, -0.4637, 0.5767, 0.0831, 0.0208, 0.1304, 0.1541, -2.1639, -0.1364, -0.1383, -0.0473, 0.1248, 0.1935, -0.0268, 0.0551, -0.0039, 0.0831, -0.0676, 0.052, -0.0078, 0.0365, -0.023, 0.0525, -0.0467, 0.0109, 0.0, 0.0008, -0.315, 0.0443, -0.5387, 2.7, 0.0, 0.0, 0.0389, -0.0667, -0.0196, 0.0309, 0.8541, 0.148, 7.73, -0.0341, 0.0837, -0.0401, 0.0202, 0.2085, -0.104, 0.0909, 0.0823, -0.0487, -0.0518, -0.0511, -0.139, -0.2499, -0.0533, 0.0346, 0.0542, 0.046, 0.1004, -0.0634, 0.0812, 0.0709, -0.0034, 0.1514, 0.0518, -0.1346, -0.0929, 1.7255, 0.1106, -0.1528, 0.0222, 0.0801, 0.083, 0.0, -0.1094, -0.3273, -0.4961, 0.0525, -0.0422, 0.1755, 0.6277, 0.0748, 0.0037, 0.0427, 0.0779, -0.0491, 0.0256, -0.0011, -0.0425, 0.1708, 0.6024, 0.2243, 0.0371, 0.065, -0.3302, 0.1005, 0.1114, -0.0464, 0.0269, 0.0687, 0.0394, 0.1389, 1.7232, 0.0337, -0.0764, 0.0887, 0.0, 0.0142, 0.0411, 0.0002, -0.0407, 0.1352, 0.9728, -0.1316, 0.5269, 0.0703, 4.2275, -0.0081, 0.3441, -0.0338, 0.0634, -0.1102, 0.0337, 0.011, 0.0161, 7.9358, 0.0897, 0.0776, -0.0391, 0.0, 0.0122, -0.1496, -0.0347, 0.0622, -0.3626, 0.0, 0.1224, -1.7354, 0.195, 0.1393, 0.1335, -0.0494, -2.0508, 0.033, -0.0338, 0.328, 0.3357, -0.012, 0.0839, -0.1683, -0.1614, 0.3659, -0.0279, 7.4183, 0.0611, 0.0707, 0.1681, 0.4178, -0.0185, 0.0545, -0.0439, 0.0694, 0.0, 0.0478, 0.0902, -0.0108, -0.0666, 0.0119, 2.1319, 0.0176, 0.0068, 0.0628, -0.0033, -0.0033, 0.4803, 0.5694, 0.0449, 0.0045, 0.0819, 0.5392, 0.1614, -0.1556, 0.0674, -0.0101, -0.0112, -0.05, 0.1037, -0.0056, -0.0225, 0.0006, -0.1113, -0.0384, -0.0468, -0.0838, 0.9379, -0.185, 0.0077, 0.0643, -0.0279, -0.2956, 0.0395, 0.0757, 0.0675, -0.094, 0.6277, 0.099, 0.0201, 0.0747, -0.0569, -0.1327, -5.9017, 0.1095, -0.0388, 0.0, 0.1046, 0.9035, -0.4294, 0.1492, -0.7546, -0.0433, -0.5246, 0.4806, 0.063, 0.1023, 0.1884, 0.094, 0.0643, -0.0553, -0.1205, 0.0529, 0.0222, 0.0402, -0.2478, 0.0365, -0.0613, -0.0887, 0.158, -0.0294, -0.1456, 0.2387, -0.0445, 0.06, 0.0424, 0.1282, 0.0, 0.2177, 0.0344, -0.027, -0.1007, -0.0544, -0.7531, -0.0488, 0.0, -0.0921, -0.1058, 0.009, 7.3475, -0.0649, 0.004, 0.1574, 0.0728, 0.0768, 0.086, -0.0364, -0.0086, 0.1479, -0.0329, 0.0088, 0.0066, 0.1762, 0.0873, -0.0641, 0.0519, 0.099, 0.1036, 0.0471, 0.047, 0.0129, -0.0036, 0.0408, 0.0674, 0.1628, 0.9916, 0.0005, 0.0459, 0.0575, 0.03, 0.0413, 0.9458, 0.0813, 0.1107, 0.1441, -0.035, -0.2832, -0.0754, 0.0233, 0.0478, 0.1615, 0.0563, 0.0833, 0.03, 0.0174, 0.0522, -0.0756, 0.0292, 0.0636, 0.0459, 0.0396, 0.0641, -0.0442, 0.0795, -0.1128, 0.0172, 0.0172, 0.0124, -0.0339, -0.1847, 0.0174, 0.0176, 0.0594, 0.0035, 0.0806, 0.0136, -0.0122, 0.0241, 0.0327, 0.0034, 0.0227, -0.0008, 0.0027, 0.0487, 0.0295, 0.0286, 0.1001, 0.1399, -0.3978, 0.0321, 0.0594, 0.0207, -0.0205, 0.091, 0.0421, -0.2171, -0.025, -0.226, 0.0711, -0.0041, -0.1078, 0.0461, -0.2159, 0.0141, -0.052, 0.1118, 0.0964, 0.0958, -0.0064, 0.0255, -0.0253, 1.2438, 0.0252, 0.02, -0.1229, -0.0094, 0.0943, 0.1357, 0.0328, -0.0866, -0.0034, 0.0404, 0.0068, -0.0165, 0.0348, 0.0343, -0.0354, 0.0418, -0.0591, -0.3576, -0.0139, -0.023, 0.0007, 0.0394, -0.1114, -0.0009, 0.0, -0.0651, -0.0635, -0.007, 0.1294, -0.1116, 0.1471, -0.1256, -0.3896, -0.0748, -0.5041, 0.2221, 0.0759, -0.2045, 0.0438, 0.3133, -0.0205, -0.0142, 0.0984, 0.1198, -0.5645, 0.0865, 0.0346, 0.0527, 0.3741, 0.1036, -0.218, -5.5039, -0.0377, 0.0124, 0.0158, 0.0392, 0.006, 0.0588, -0.0371, 0.0148, 0.0675, 0.1537, 0.1686, -0.0247, -0.0111, 0.4514, 0.0545, 0.0943, 0.0622, -0.0574, 0.0651, 0.0701, 0.0, 0.0764, 0.0258, -0.0954, 0.0329, 0.1303, 0.0846, 0.1254, -0.1859, -0.0846, -0.0031, 0.0152, 0.0266, 0.0508, 0.0219, 0.0, 0.0181, 0.5338, 0.4336, 0.2532, -0.196, 0.0733, -0.1051, 0.0, -0.0203, -0.0101, -0.0659, 0.5958, 0.5016, 0.1175, 0.1249, -0.0224, -0.0014, 0.0308, 0.0553, 0.0603, 0.0012, -0.0017, 0.0191, 0.0447, -0.1839, 0.175, -0.0388, 0.0228, -0.1232, 0.0308, 0.0411, 0.0901, 0.0822, -0.0106, 0.0392, 0.0305, 0.0282, 0.0394, 0.0848, 0.0182, -0.0859, -0.1013, 0.084, 0.7884, 0.9704, 0.0579, -0.0014, -0.031, -0.6539, 0.039, 0.0591, 0.0611, 0.063, 0.0609, 0.0339, -0.0653, -0.0313, 0.0552, 0.0671, 0.0623, 0.0028, 0.0, 0.0481, 0.0028, -0.2422, -0.0574, 0.0997, 0.1951, -0.0606, 0.0686, 0.056, -0.0732, 0.0013, -0.138, 0.0392, 0.0, -0.1357, 0.0678, 0.0862, 0.0, 0.3062, 0.1225, -0.0398, 0.0679, -0.1705, 0.4415, -0.0297, 0.0667, 0.056, -0.0605, 0.0671, 0.0267, 0.8325, -0.0407, 0.0582, -0.228, 0.207, -0.0266, 0.1384, 0.0464, 0.04, -0.0038, -0.0132, -0.0157, -0.0596, 0.0868, 0.0595, 0.0043, -0.0094, 0.0344, 0.0161, -0.0032, 0.0663, 0.0779, -4.9844, -0.088, -0.2232, 0.0428, 0.0, 0.0059, 0.1572, 0.0492, 0.0788, 0.0196, -0.0273, -0.0673, 0.0979, -0.0025, 0.0381, -0.2359, -1.6051, 0.0064, 0.4258, 0.0855, 0.102, 0.0675, 0.0115, 0.0404, -0.0727, -0.2902, -0.1865, -0.4706, -0.0369, 0.0878, 0.01, -0.0507, 9.655, -2.9024, -0.092, 0.0788, -0.1772, 0.0596, 0.6259, 0.1383, 0.1317, -0.1081, 0.0199, 0.0152, -0.005, 0.0238, 1.0074, 0.0052]}, {&quot;coloraxis&quot;: &quot;coloraxis&quot;, &quot;histfunc&quot;: &quot;avg&quot;, &quot;hovertemplate&quot;: &quot;Period=1990-2000&lt;br&gt;LONGITUDE=%{x}&lt;br&gt;LATITUDE=%{y}&lt;br&gt;avg of ESTIMATED YEAR INCREASE (C)=%{z}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;name&quot;: &quot;&quot;, &quot;nbinsx&quot;: 72, &quot;nbinsy&quot;: 36, &quot;type&quot;: &quot;histogram2d&quot;, &quot;x&quot;: [-121.3, -121.2167, -121.4, -120.6475, 6.095, -52.85, 48.228, 114.48, 114.95, 91.32, -89.51, 144.283, -101.53, 1.832, -108.7833, -122.3667, 20.85, -88.5214, -98.4131, -123.8292, -123.7147, -112.8253, -123.1, -4.567, 42.657, -3.93, -3.926, -97.2128, -99.85, -99.6822, -81.9647, -106.4278, 18.82, 9.2903, 43.25, 71.5, -65.85, 18.92, 131.4, 54.47, 54.651, 33.317, 34.133, -99.0631, -66.3667, -68.2592, -89.833, -105.36, -99.933, -40.14, -98.05, -0.2, 90.5, 110.375, 29.4, 11.0175, -118.2, -101.2519, -96.62, -96.685, -96.5161, -176.65, 35.4, 35.34, 30.417, -127.8667, -77.2344, 38.8, 38.7, 38.75, 25.7, 138.5204, 138.6216, 138.6517, 138.6331, 138.5869, 148.0646, 17.52, -111.3167, -3.3, -120.7667, -120.9447, 38.283, -66.7978, 39.9, 14.457, -107.9, -88.7, -0.28, -84.0158, -59.367, -84.0794, -89.9161, -58.416, -89.65, -54.833, -99.08, -89.0644, -110.9297, 30.601, 7.967, -9.5667, 56.75, 56.8, 91.25, -121.7667, -121.7667, -95.9817, 93.47, -103.7347, -103.7358, 20.17, 0.6, 114.52, 94.883, -124.0578, 78.0333, 43.05, 21.38, -37.9, -99.38, -112.2667, -113.1875, -66.2222, -66.2167, 138.4, 42.5, 72.633, 24.017, 24.2206, -104.48, -99.13, 48.762, -66.2642, 14.13, 127.45, 138.233, -81.6958, -82.5667, -41.067, 24.367, -99.8556, 3.533, -0.6, -9.63, 144.0883, -93.6675, -159.7667, 34.07, 80.45, 138.15, 139.1, -112.86, 68.73, 39.6, 31.1, 13.25, 27.85, 47.7294, -89.33, 140.1, 58.183, -14.38, 70.95, 54.117, -135.0, 77.033, 77.067, 77.92, 78.45, 66.833, -6.667, -81.5169, -103.1417, -81.4333, -81.4642, -103.2167, 32.967, 113.267, 76.49, 54.2, 34.1, 31.4, 73.1, 20.767, 57.15, 130.199, -18.0794, 64.333, 55.6, -86.7817, 122.02, -38.42, 24.2642, 24.2817, -122.3167, -105.955, -105.8614, -113.5778, 32.0, 81.05, 46.583, 154.15, -1.8631, -1.8606, -72.45, -99.3011, -73.7472, -84.1489, 117.8022, -73.8092, -84.1944, -80.1994, 8.1167, -124.9833, -88.4811, -80.05, -64.0167, -93.3019, -92.7867, -104.1017, -88.0569, -98.0083, -104.2647, -78.1664, -79.8333, 150.79, -111.95, 8.9792, 9.0381, -106.6167, -106.4878, -106.6156, -106.6939, 146.9534, 146.9509, -106.0567, -141.4667, -73.9267, -6.22, 125.0331, -6.216, 13.0519, -112.0575, -123.5903, -117.495, -122.7236, -90.7417, 82.767, 117.933, 77.8667, 142.1667, 48.55, -106.9328, 0.117, 37.22, 37.2167, -62.2833, -126.9333, -62.3333, 8.63, 16.5333, -85.9481, -92.4611, -97.7847, -92.4489, -92.2956, 29.949, -92.5586, -95.3942, 25.93, -123.2833, -76.205, 7.9128, 12.0442, -73.25, -77.7583, -69.943, 51.85, 76.867, 3.25, 8.2797, -94.3053, -0.558, -0.5, -0.4942, -0.5706, -98.0678, -88.155, -0.8481, -98.0247, 133.889, -91.0547, 30.3, 21.2, 134.4029, -119.9933, -69.025, 81.735, 81.9, -84.8744, -84.73, -78.7497, -85.7892, -109.1528, -81.3167, -105.5019, -75.4492, -102.8967, -102.8, -111.7833, -115.5181, -92.8022, -119.5944, -62.6, -79.8667, 19.5, -84.6492, -64.95, 19.13, 69.6, -92.67, 76.9331, -82.5067, -91.9194, 14.67, -2.4544, -2.3567, -101.505, 124.567, 100.4, 41.5, -83.5906, -83.5644, -83.4281, -84.3506, -103.66, -116.7775, -109.1469, -111.7708, -121.7, 74.5, -109.85, 9.3467, 153.4556, -111.6369, 96.25, 68.967, -92.03, -110.2878, -111.833, -111.7, -110.0167, 88.083, -111.0339, -56.1, 23.3581, 8.6331, -108.3794, 13.2631, 32.2, 11.3131, -112.4819, -97.55, -98.9714, -91.3045, -90.1464, -78.4667, -78.3203, -67.4, -83.5161, -45.93, -120.5436, -120.5644, -98.9761, -99.2667, -99.2964, -99.3344, 72.22, 27.033, -92.8417, 18.9, -88.62, -98.6878, 147.4833, 14.04, 14.04, -8.0397, 12.15, -95.2336, 21.07, 20.99, -3.5539, 136.4198, -149.1108, 8.1167, 49.485, 55.609, 41.634, -3.85, 40.1, 39.7, 128.883, -116.4619, -101.7089, -88.4539, 35.85, 152.7111, -157.85, -4.08, 128.17, 128.083, -94.1664, 43.133, 61.7, -77.9781, 12.2939, -112.88, -84.2322, -92.3631, -93.5656, -93.7742, -93.6217, -89.2122, 131.983, -178.9, -72.5375, -83.1, 32.9167, -103.3222, -22.949, -103.1819, -101.0286, -90.525, -94.36, 35.9833, 16.23, -78.1333, 16.46, 16.4308, -125.55, -67.4333, -67.45, 74.797, -104.7333, 20.283, -112.9569, -122.6136, -98.1989, 177.5667, -117.8425, -94.6342, -94.4383, 47.767, -91.2933, 32.83, 37.3, 22.8, -149.905, -149.9847, -150.0278, -149.9664, -149.855, 125.317, -86.5225, 137.1692, 16.1199, 8.6, 144.9281, -82.6606, -94.4386, -82.7097, -149.3397, -108.9408, -85.7164, 83.83, 83.65, 72.333, 128.72, -97.9069, -74.7367, 16.1497, -112.2333, -102.5517, -79.5672, -83.8386, -118.55, -83.125, 169.767, -107.3, -7.66, 12.083, -78.0231, -146.228, -105.2853, 13.9931, -75.55, -0.56, -111.9608, -95.4592, -84.9897, 70.8, 70.18, -63.98, -122.4406, 11.517, -159.5333, -108.7689, 125.65, 109.03, 32.883, 32.98, 32.68, -93.5822, 13.6856, 7.809, -76.5075, -65.5167, 9.5067, -89.2344, -131.5786, -134.8333, -85.8556, -83.7108, 117.05, -99.8258, -99.89, -81.1178, 36.2, 50.23, 30.8, 47.5, 47.483, -120.7533, -116.7644, -112.5417, -118.4164, -108.5306, -105.8919, -98.0283, 1.103, -89.1128, -89.15, -88.0994, -121.7525, 76.9, -95.615, -70.45, -70.4, -64.13, -76.716, 50.32, 49.3, 133.067, -133.3833, -111.3836, 114.4, 49.467, -116.673, 68.867, 11.1825, 140.767, 7.3, -111.4814, -110.25, -85.0206, -85.0333, -98.45, 121.633, -78.8369, -171.781, -171.8, 151.9533, -88.4378, -76.1167, -121.2811, -94.0281, -82.3389, -78.8275, -76.58, -73.12, 169.67, -32.2997, 35.0167, -112.2711, -91.97, -97.95, -37.05, 21.35, 44.2, -113.0217, 49.847, 61.6694, -96.75, -96.8047, 102.583, 38.5, 41.138, 142.9811, -46.933, 21.4167, -112.5758, -89.4286, -97.0833, -122.8333, -119.25, -78.4167, -81.8739, -90.6264, -124.1086, 6.1958, -103.1667, -81.3508, -104.6575, 153.0078, -98.6117, -109.6192, -113.2989, -77.9822, -37.08, -113.3872, -85.15, -85.0167, 42.7, 48.283, -97.1617, -4.1108, -66.7525, -71.567, -71.6, 13.07, 11.85, -54.0, 20.4831, -96.8253, 128.4517, 40.7331, 130.0831, -70.333, -70.3, -46.1, -109.18, 17.8431, 142.333, -93.0589, 66.833, -91.3444, 139.3357, 13.4367, 17.95, -120.2064, -97.1703, -97.0939, -97.0736, -89.3269, -70.5333, -6.65, 41.1167, -108.8694, 151.6158, 151.6681, 151.6697, 24.63, -98.3486, -88.9, -119.2167, -119.1333, -99.7214, 9.9306, 171.5544, -100.1839, -54.0, -76.3667, 8.0719, 9.9125, 9.0831, -67.7167, 176.8333, 9.68, 74.9, -101.6333, -93.9, -105.75, -115.9236, -121.4917, 37.983, 93.435, 11.3, -104.3836, -71.95, -101.6914, -115.1853, -96.1542, -109.9, -70.786, -67.928, 41.817, 30.917, -74.6167, 36.617, 102.783, -94.0667, 19.27, 12.59, 12.64, 119.933, -0.267, 10.782, 142.367, 12.15, -63.1, 15.4, 17.37, 17.32, -83.6231, -79.8378, -98.3667, -82.5567, -82.5375, 58.3331, -93.1164, -99.7633, -77.4833, -82.6131, -122.7144, -82.35, -90.9161, -85.7789, -90.9678, -77.4344, -90.9189, -96.3811, -99.3742, -80.8, -80.6958, -111.2739, -121.9794, -118.8253, -120.6861, 25.5, 25.5231, 25.5456, 33.9, 10.4367, -1.17, 38.917, 38.9, 131.067, -106.8381, -100.2333, 14.19, 42.717, -75.2128, -75.2014, -112.5556, -105.9667, -105.95, 8.4692, 32.7831, 71.3667, 48.9, -96.5319, -123.8825, 132.067, 48.05, -6.0442, -57.63, 31.1, -172.5167, 1.12, -13.067, -13.07, 71.633, 33.967, 68.3667, 75.8, -95.1108, -113.5333, 33.4, -95.83, -86.9508, -84.5833, -81.0256, -82.0964, -86.9833, -83.3275, 23.7333, 23.7167, -91.5833, 151.767, -99.0303, -94.1661, -84.5658, -84.2331, -84.5214, -84.4417, -84.3, -84.3022, -115.2333, -95.0039, -74.4242, -74.5672, -110.95, -133.7, -87.4389, -96.0667, 14.37, -102.52, -100.43, -87.1964, 173.1833, -139.03, -139.0, -102.2167, -101.0422, 51.9167, -119.5128, -121.0839, -76.5447, -95.7469, -85.5, -85.4653, -4.5658, 174.8, -75.0833, -94.9222, 12.7156, -2.917, 20.35, 10.8, 10.9431, -112.3964, -81.9633, -82.0386, -69.7972, -91.1342, -107.6211, -134.645, -119.9833, 9.6681, 75.4, 7.4678, -97.9958, -88.3092, -76.7764, -104.75, -76.6592, -122.7686, -112.2656, -117.0675, -118.4914, -97.68, -97.7603, -98.0281, -92.9739, -73.7333, 3.169, 3.55, 144.4783, -43.41, -115.9203, 16.17, -3.833, -4.68, -4.6992, -74.9667, -81.5267, 38.483, -74.22, 27.85, -103.8, -97.4, 147.3758, 26.7, -108.0006, -59.883, -59.8, -8.4192, -8.3719, 35.9, 31.08, 27.817, -91.9533, -113.3719, -125.4667, 14.5, 127.381, 52.65, 105.85, -109.28, 26.9167, -65.4667, -99.9, -107.25, 78.567, 15.11, -75.9333, -75.9114, -7.0, -6.8292, 40.98, -60.75, 8.2467, 13.1333, 150.7281, -120.4, -113.0167, -106.5008, -113.9497, 115.5394, -107.55, 7.0853, -82.9939, 11.2817, 8.5769, 8.1939, 7.6981, 15.9, 10.5714, 9.717, 13.63, 10.083, 11.0817, 10.4467, 11.7267, 7.8725, 11.88, 8.8394, 11.6333, 7.967, 14.7006, 8.7656, 9.5, 12.8756, 8.75, 12.2753, 11.6, 9.1092, 80.767, 35.9, -113.1744, 113.58, -54.1, -107.6578, -71.0, 120.62, 120.6, 28.9, 37.417, -62.167, -111.95, -58.167, -114.98, 50.65, 23.5, 8.2733, -68.15, -68.2, -67.8333, -62.8, -70.5, -56.1833, -105.4767, -105.3394, -116.1667, 110.433, -75.45, -84.6175, 90.017, 89.67, -114.4333, 147.5669, 106.6, 10.6056, 67.2, 91.467, 74.5, 75.7, 105.53, 19.0167, 96.3667, -76.95, 62.1831, 53.8, 76.267, 82.07, -116.0628, -102.3008, -119.0508, -119.0542, -79.9833, -73.0086, -111.4, -117.8086, -117.8333, -96.0833, -96.0, -104.25, 57.417, 32.3, 103.07, 43.15, 86.933, 33.1, -58.3, -119.0883, -120.6833, -99.3, -85.8506, -109.5167, -124.0333, -118.4042, -107.85, -120.6972, 7.53, 125.6589, 127.9867, 86.33, 86.6, 75.0831, 19.785, 27.926, 170.97, 68.75, 123.8653, -108.1439, 143.7911, -117.2167, -124.1667, -106.16, 153.5585, -99.9764, -7.31, -6.1534, -8.1789, -72.7836, -71.7, -103.7403, 143.561, 19.9, -64.8167, -76.6167, -76.6833, 9.52, 58.35, 20.67, -81.0306, 10.9217, -125.1167, 169.55, 24.983, 21.0331, -77.8833, 56.378, 54.8333, 27.97, -124.4019, -115.5667, -115.5667, -115.55, -115.45, 77.583, 22.83, 100.5, 100.567, -62.6833, -121.3861, -68.8186, 18.57, 18.9, 18.519, 17.217, -16.652, -16.6333, -16.79, -87.3622, -87.3572, -120.2833, 150.9864, -81.8742, -115.2333, 114.383, 115.57, 107.13, 132.18, 99.22, 78.3667, -89.7269, 149.0654, 149.8117, 26.0, -39.3, -109.3719, 4.017, -158.0667, -83.8819, 145.2883, 2.1253, 2.0697, -62.92, -85.3847, 18.5403, -88.9961, -96.6369, 79.4, 14.3, 109.6331, 109.53, -70.221, -121.4819, 16.78, 12.85, 102.233, 102.6, -121.5167, -113.1333, -159.7833, 27.65, -122.7022, -69.1467, 83.5167, -81.185, -120.2169, -91.5, -96.1664, -69.359, 150.6096, -79.2333, -79.1, -66.3167, -77.65, -45.267, -45.0, -119.9389, -86.1247, -72.0275, -72.5794, -120.1167, -79.6833, -88.1639, -60.25, 115.3931, -156.7814, 78.417, 9.4306, -117.0219, -116.7858, -143.6333, 12.733, 32.3, -96.0117, -96.0261, -98.5494, -111.6497, -81.8433, -79.7714, 13.617, 106.067, 94.4, 113.283, -93.9667, 69.717, 121.98, 7.5831, -59.683, 164.1, -34.617, -56.683, -110.4333, -56.983, -58.633, -56.717, -44.733, -67.133, 69.85, -108.035, -112.5167, 44.0, -118.9792, -5.515, -14.22, 8.72, 32.467, 12.04, -91.9144, -64.8667, -64.8333, 129.483, 99.1, -78.1692, 131.0252, -106.3167, 150.1872, -89.9806, -91.6386, -91.7944, -106.3775, -77.3478, -65.65, -65.75, 149.5559, 149.654, 26.82, -108.0167, 41.117, 6.183, 6.3167, -91.1469, -107.75, 14.37, -119.5083, -94.8981, -85.2667, -85.2511, -122.5286, -107.2667, -116.8917, 41.6, -94.5869, -94.5667, -94.6, -49.117, 24.217, 122.617, -83.3303, 98.083, 84.15, 112.367, 100.683, 104.5, 112.117, -79.3683, -76.8161, 40.2, -90.8167, -115.2167, 90.53, -94.9908, -116.5594, -95.975, -55.8, -55.8167, -87.7853, -89.2889, -89.5989, -104.0158, -94.0475, -109.6333, -116.7583, -112.9833, -121.4333, -115.55, -109.5667, -107.5167, -116.15, -113.9333, -115.45, -101.4767, -105.65, -111.3922, -104.4275, -116.0833, -94.9519, -118.0517, -104.035, -112.2667, -110.8292, -116.9667, -107.0667, -87.2119, -96.75, -79.4, -116.7189, -70.7833, -80.7167, 22.583, -80.6956, -116.9814, -88.9186, -94.2928, -71.1667, -96.4667, 2.1281, 4.95, -100.5308, -112.65, -119.05, -108.1, -119.4, -122.8203, -120.325, -112.4814, -99.8278, -111.7831, -111.35, -140.8667, -113.9422, -86.9117, -88.8478, -111.55, -111.0667, -131.4683, -109.2, -62.3333, -114.1833, -118.2167, -146.5167, -89.35, -72.4333, -2.27, -111.0467, -81.1231, -81.1939, 8.8331, -79.5233, -94.7244, -71.2833, -110.9075, -0.483, -71.2894, 9.6267, -67.6667, -88.8833, -107.3167, -81.8736, -91.0561, 152.9619, 8.9689, 34.783, -97.7061, -97.6667, 149.8191, 149.838, 78.47, 32.3, 14.8, 109.1, 116.283, 116.5, 34.9, 30.0, 3.1239, -7.8667, 90.917, 5.0, 5.1, 69.2, 21.1333, 74.817, 27.95, 138.6147, -48.467, -68.9892, 30.03, 74.617, 20.2831, 20.4667, -76.5847, -79.9331, -122.0386, 150.9291, -58.92, -126.6833, -126.6, -57.583, -65.8333, -83.7747, 1.179, -111.8214, -74.8431, -78.7, -97.6375, -77.4, -89.8467, -90.423, -95.9167, -103.8511, -103.9339, -80.6711, -86.8819, -92.2764, -122.5114, -122.5372, -58.883, -112.15, -72.45, 12.2451, -117.5917, -104.0936, -10.0, 30.1, 128.467, -98.1125, -89.0311, 37.783, -43.9333, -54.95, -97.4833, -76.9314, -151.0333, -75.0836, 32.95, 70.0294, -90.4919, -8.0, -94.8297, 145.9703, -98.4161, -97.4439, -112.9, 117.8603, -121.285, 144.3266, 144.2825, 7.5892, -121.2103, 117.367, 20.27, 102.33, 102.2, -75.294, -2.167, -6.4, -1.35, 1.4, -70.033, -101.5325, -4.9858, -73.2469, 4.9353, -95.6167, -102.9833, -110.2403, -76.3833, -149.1542, -150.9858, -91.1125, -92.6006, -94.215, -88.9203, -71.9486, -118.4778, -86.4267, -51.51, -82.5967, 123.783, -120.9336, 34.887, -122.0797, -111.95, -111.9167, -116.475, -116.5875, 15.78, -84.2908, -97.0333, -97.0167, 24.95, 28.983, 65.05, 172.7, 14.69, 9.7, 12.7889, 9.933, 5.2264, 5.3331, 5.317, -114.7278, -89.5475, 11.4317, 179.32, -143.2833, -122.2606, 4.9789, 69.517, -71.1853, 13.5039, 13.3017, 13.7328, -71.1786, 13.4039, -64.85, -111.385, 7.4167, -106.8325, 11.7114, -84.93, -85.6572, 7.0681, 7.4639, -114.65, -73.1833, -105.7833, -65.0667, 14.7475, 6.683, -64.7333, -117.6833, 5.98, -87.0078, -100.3108, -110.5411, 29.45, -94.0269, -161.8292, 28.336, -71.6833, -71.6575, -86.3239, -64.7944, -151.5089, 34.7994, -118.1522, -101.7906, 116.9247, -70.8372, -118.4122, -70.9175, -81.6283, 31.9, 31.7, 36.7, 49.4, 77.35, 85.833, 69.667, 99.0167, 136.117, 136.1, 23.167, 0.307, -1.53, 148.3036, -108.4, -120.3006, 116.1364, -116.63, -105.4855, 121.7803, 8.5278, 19.0, -92.9433, 5.4489, -123.35, -114.0331, -107.9833, -116.3333, -107.8886, -77.2578, 76.98, -123.2078, -123.2333, -87.7503, -116.9169, -115.7167, -101.5667, -123.0667, -117.1167, -115.8, -145.7214, -93.7994, -112.35, -107.2, -123.6358, -106.2006, -109.2783, -101.4625, -119.95, -78.4356, -74.8667, -110.1253, -110.1075, -85.4822, -122.85, -152.297, -88.0908, -110.0608, -109.2667, -105.8167, -111.3242, -101.4536, -102.1467, -111.2, -82.7711, -121.7803, -109.9503, -89.9, -89.8667, -89.9, -111.6639, 15.8606, 105.233, 84.95, 73.3, 134.267, 30.117, -2.8, -2.9056, 30.0, 13.6, -122.2833, -97.4472, -118.2333, -93.575, -108.5422, -108.5706, -108.4811, -106.7319, 12.917, 150.5164, -88.9167, 97.705, -110.2, 27.333, -75.985, -106.3494, 40.5, -101.2667, 113.033, 113.0, 22.78, -144.3636, -72.1233, -100.9167, -111.5333, 139.3486, 38.0, 59.266, -86.745, -106.5125, 5.25, 132.95, -7.8764, 55.533, -101.05, 10.0492, 24.7667, -11.617, -109.9289, -109.895, 9.4892, 58.85, 42.621, 74.58, -71.5667, -80.2392, -118.3581, 27.28, 5.72, -100.7603, -100.8, -100.7592, -102.465, -99.235, -107.35, -15.58, -15.654, -95.7, -114.0, 24.5, 11.48, 42.1, 21.37, -108.5086, -104.4042, 125.183, -95.8833, 15.7, 9.8, 18.2667, 18.27, 19.0167, 7.2762, 21.5792, 145.4672, -94.5175, -112.3531, -112.4369, -3.03, -118.2603, -80.4133, -81.3292, -109.8, -71.7167, -97.2764, -111.1167, -107.6869, -112.2394, -125.1333, -121.8844, -58.3667, -111.5833, -109.9506, -107.7375, -82.3594, -113.4333, 132.143, -90.835, -109.7517, -112.9539, -113.7567, -121.8133, 66.967, 1.3781, 127.5, 15.75, -122.7928, -96.1406, -91.23, -114.4333, -83.9444, 23.933, -84.5553, -93.1947, -105.5717, -97.67, -136.7667, -75.3333, -98.4286, -57.1833, -81.1161, -109.4847, 7.3056, -121.8667, -120.6833, -110.6, -115.0131, -71.5667, -71.5833, 4.55, 26.3, 12.05, 12.08, -113.5, -91.4864, -92.4394, -107.9603, -85.9625, -89.0864, -86.5214, -77.3639, -112.8639, -81.7025, -81.2264, -81.2078, -80.8831, -119.1217, -120.7103, -117.9336, -120.3375, -115.5444, -71.1136, -119.9167, -76.0275, -107.1678, -118.5, -93.6506, -106.7792, -84.3167, -121.7189, -111.1922, -119.2833, -119.2833, -119.2833, -109.5575, -85.1547, -106.9456, -81.3833, -114.5972, -89.9044, -89.8308, -114.7142, -3.3667, -121.1, -11.77, -119.6933, -119.2778, -120.6833, -128.5167, -54.85, -40.27, -60.65, -60.7, -116.9333, 9.3842, -4.331, 29.183, 32.15, -130.25, -120.0936, -91.52, 13.313, -92.88, 6.6114, 7.2706, 114.2331, -119.0142, 14.3589, 14.367, 27.42, 22.22, -98.7353, -89.8567, -121.0831, 67.45, 35.3, -101.3833, -0.6758, 37.35, 140.47, 106.933, -74.15, 89.583, 89.367, 97.45, 40.567, 2.067, 11.3681, 35.533, -116.2022, -116.2406, -102.4806, -116.0542, 10.683, 57.308, -14.25, 9.7356, 41.833, 15.82, 72.667, -15.483, -78.2064, -93.3911, -61.067, -88.9892, 14.05, 147.4803, 11.3458, 34.1, -89.82, 84.4, 93.133, 74.633, 156.3, 105.42, 108.58, 56.021, 137.53, 11.2, 31.6, -23.25, 31.1, 11.33, 149.2336, 149.2379, 72.8167, 72.85, 128.8667, -45.36, -50.43, -43.417, -44.11, -109.1833, -114.5667, -64.067, -53.1167, -93.03, -2.783, -110.4358, -98.9508, -107.5833, -96.1661, -130.6333, -130.6333, -71.05, -71.0167, -116.3103, -82.1167, -121.9519, -102.1192, 7.1475, -72.2667, -12.5, -67.5833, -93.8906, -88.5622, -93.9258, -93.895, -81.6442, -74.3961, -92.7603, -87.2736, -75.3697, -123.3486, -7.7308, -89.4075, -154.565, -102.9622, 90.0167, 27.8, 12.95, -151.75, -151.75, -0.7, -63.02, -72.9333, -111.0456, 0.95, 4.767, -101.4542, -101.395, 13.8, -67.1294, 28.5, 16.2, 6.6728, 15.43, 15.5078, 14.76, 27.2, -2.92, -2.933, -116.4036, 136.3041, 13.85, 30.967, 116.5167, 9.42, -90.6775, -1.75, 10.0333, -106.8908, 17.43, 17.4, 17.63, -114.1833, -78.0981, -71.0667, -71.0106, -95.8722, -87.453, 24.833, 26.5, 35.85, 26.67, -100.4525, -55.35, -5.03, 15.633, 7.717, -7.5, 3.883, -111.42, -105.2667, -112.1136, -114.8464, -122.0031, -111.3, -109.6903, 139.9039, -1.6, 1.6, -117.3544, -111.8903, 2.3667, 6.77, 145.9358, -118.2, -1.843, -114.0242, -14.68, 1.463, 4.206, -102.2464, 148.2152, -2.905, -109.4917, -97.8472, -91.1711, -86.4239, -83.6111, -103.4061, -78.6667, -118.45, 150.4019, -121.45, -111.45, -115.0667, -115.0667, 115.767, -110.25, -112.0167, -92.7164, -77.3333, -107.7089, -84.9139, -108.1633, -102.2564, 26.1, -110.8833, -111.155, -111.1608, -111.0453, 34.0, 30.0, -116.69, -100.4144, -111.9333, -82.5014, -1.7723, -85.1517, -78.7144, -79.6, -78.6403, -105.9483, -99.3492, -135.7833, -3.3958, -46.9333, -6.7331, 30.3, 149.7835, -94.2086, -94.1308, 17.7397, -79.7, 7.9731, -53.9667, -120.0833, -106.2314, -99.95, -99.9833, 20.48, -80.2333, -104.3828, -74.2453, -47.933, -47.933, -69.812, 7.86, 17.2, 129.333, 101.75, 12.88, 10.6, 10.556, -103.0072, -110.3517, -5.117, -115.5581, -118.8803, -122.5942, -95.2917, -106.4472, 15.25, -82.2928, -98.9017, 15.27, 18.0597, -105.2992, 11.99, 60.35, -88.3769, 9.73, -3.0, -100.9408, 8.7992, 8.583, -122.6828, 9.167, -78.2886, -96.3972, 11.5, -113.2167, -119.7669, -4.16, 23.6831, -114.4833, -82.7358, -50.48, -64.15, 146.8651, -99.8628, -101.4467, -87.0486, -87.055, 21.98, -134.14, 151.745, -72.3069, -97.7761, -119.2286, -87.7547, -103.1039, -85.8008, -73.1289, -108.9092, 116.1311, 116.1375, -97.5017, -64.55, -67.8442, -120.8, -70.7467, -0.167, 147.3869, 149.8003, -104.3267, -112.0436, 146.9614, -111.6167, -104.8361, -113.7167, -112.0622, -112.062, -88.0803, 8.6506, -91.8625, -113.3847, 17.9331, -91.2153, -122.1178, 153.0389, 153.1142, 153.1292, 153.0306, -116.25, -82.4044, -2.6, -96.3917, -93.8014, -97.75, -108.3483, 11.65, 34.2297, 14.5, -105.4072, -108.8833, -102.5667, -102.6833, -149.7667, -97.4667, -101.6833, 10.62, -77.9333, -71.005, -75.6667, -105.83, -89.3867, 25.15, 154.27, -99.675, -94.7, -99.6333, 141.4694, 141.4676, 28.5, -72.5667, -71.95, 4.9367, -93.0594, -79.0975, -90.4581, -96.7686, -124.2453, -81.673, -106.2333, -78.9517, -88.6531, -111.85, -82.3658, -82.4544, -122.1447, -111.7833, 117.0072, -85.0128, -79.0833, 122.2353, -120.6, 16.3097, -111.4667, -102.2681, -100.6292, -116.8981, -53.1167, -88.9583, -97.4186, -89.2586, -108.9172, -96.8283, -120.2486, -98.9456, -110.5833, -118.6889, -81.55, 7.1156, -110.2944, -117.8667, -91.5919, -106.5333, -116.1333, -115.8017, 114.928, 135.945, -92.5336, -81.5022, -93.1331, -81.4667, -81.3908, -69.9333, -122.8494, -91.2711, 4.533, -112.1689, -109.2372, 101.1833, 122.772, -79.6817, -56.8667, 7.9989, 9.9367, -112.5828, -80.1336, -122.6553, -80.22, -105.2969, -122.5633, -122.0036, -106.1167, -117.5333, -112.1997, -75.2044, -111.4333, -111.6914, -120.0975, -64.7167, -64.7667, 26.0831, -82.9697, 19.0206, 19.183, -4.5458, 44.1, 106.57, -103.95, -106.1275, -58.483, -111.9167, -78.7369, -106.6992, -93.1067, -93.84, -99.64, -103.5464, -109.1675, -119.79, -121.0833, -108.4333, -108.4167, -106.5833, -105.3833, 31.583, 26.7, 27.48, -71.9075, -116.7, 120.7, 121.917, 52.8, -111.4167, 64.617, 8.1806, -114.7453, 10.455, 162.3, -173.2333, 41.533, 29.32, 31.817, 28.617, 28.617, 103.55, -110.7203, -114.5686, -121.4833, -73.5086, 147.3611, -112.7056, -120.1139, -114.4847, -121.3333, 115.6447, -117.1667, 152.3235, 152.3467, 145.0453, -114.1256, -91.1939, -92.1786, -122.8667, 55.783, -89.5158, -118.3575, -118.3481, 30.3, 17.86, 27.4833, -57.6167, -57.6167, 26.33, -107.5217, -107.5333, -107.5347, -98.8, -3.6325, 8.8156, 26.97, -81.3358, -78.8, 139.5475, -97.3444, -113.7661, -102.2608, -72.9319, -88.2544, -73.1833, -91.1164, -79.4769, -102.2842, -79.4481, -73.15, -91.1253, -79.8, -79.8333, -122.9333, -122.9167, -98.2339, -98.2353, -121.6547, 145.9431, -116.6339, -117.8525, -125.7667, -125.9667, -118.9564, -123.8428, -57.3333, -122.8833, 148.5984, -109.2756, -109.6667, -110.3708, -107.6, 29.067, 136.033, -139.05, -99.1433, -71.4833, 129.033, -106.9597, -113.8833, 50.835, 50.85, -82.0894, 146.8983, 115.3194, 115.4008, 69.567, -5.0639, 28.25, 146.2808, -53.3167, -79.9164, -94.405, -106.95, -98.8511, -90.5217, -100.5847, -112.5006, -109.2, 18.53, -119.47, -1.9131, 47.12, 26.85, 62.467, 52.217, -104.1275, 7.8, 7.8117, 64.367, -85.1256, -119.4, -92.64, -109.0667, 153.6358, 153.6361, -83.7453, 131.3, 113.517, -56.367, -107.3078, 120.95, -116.0572, -105.7089, -121.05, -92.0064, -9.4, -84.57, -68.2833, -75.6, -84.95, -109.9, 148.3842, 148.3779, -39.333, -78.3158, -57.683, -121.4167, -119.9817, -112.46, -79.8567, -85.3967, -6.2567, -80.9981, -109.73, -82.6256, -42.6167, 55.4, 9.05, -90.1942, -90.1572, -92.25, -79.27, 145.7, 145.7458, -85.7167, 145.7833, -81.1572, 31.6, -89.1856, -74.0331, 31.4, -78.52, 103.6, -67.417, -1.2931, 27.3331, -120.3114, -121.8439, 88.333, 88.45, -46.38, -116.6833, -113.6333, -81.6, -91.5028, -114.0167, -114.0167, -114.3667, -89.3158, -84.9667, -82.5883, -92.3486, -92.1636, -114.5264, -92.5545, -121.5597, -92.4833, 140.2432, -122.6014, -76.383, -76.4, -122.8045, -122.7958, -113.7128, -103.66, -98.3539, -113.1833, -114.7275, -113.8667, 153.15, -113.3333, -123.7294, 19.767, -3.77, -77.51, -77.85, -119.0833, -115.35, -50.13, 151.865, -78.2167, -5.3167, -81.5794, -100.1433, -116.6753, -93.1264, -105.1333, -105.1333, -85.1833, -80.3167, -76.0667, -88.0828, -75.8417, -92.7667, -92.8236, -87.3167, -80.6564, 150.689, -106.55, 8.669, -96.97, -103.4428, -100.4667, -111.4, -113.9167, -88.35, -88.35, -116.4631, -49.5, -84.2036, -121.9667, -72.512, -63.567, 138.1214, -96.4092, -78.5, -85.3667, 169.167, -125.2667, -125.2333, -90.55, 11.7469, -47.133, -35.883, -116.4728, -86.15, 14.65, -45.6, -51.2, -40.38, -102.555, -51.05, 8.803, -54.617, -52.367, -114.6833, -121.05, -120.2342, -118.4217, -107.5528, -103.9744, -103.9917, -158.2236, -85.6561, -109.4833, -120.8433, -117.35, -77.9461, -76.8667, -100.0097, -112.8167, -112.8, -89.7333, -79.4167, -79.4406, -99.7008, -100.3883, 26.427, -80.6256, -77.2808, -78.933, -52.27, -104.78, -38.95, 149.2014, 149.1167, 149.1, -96.2697, -120.8678, -86.883, -91.05, -104.6822, -82.6986, -108.2667, -110.5294, -91.7711, -80.7667, 116.833, 33.617, -147.5147, -123.8853, -104.0658, -51.144, -74.3539, -105.2256, -67.4667, 151.1134, -96.28, -98.59, -76.8464, -96.5917, -82.85, -90.0361, -75.1097, -91.5158, -148.895, -101.9264, -110.5333, -109.8214, -109.7597, -122.1667, -98.1967, -121.0886, -109.5394, -111.7333, 123.9, -103.75, 106.25, -41.9, 18.5, 20.017, -125.2167, 166.43, 136.5959, 136.5938, 147.1444, 147.1453, 8.167, 17.85, -76.5333, -76.5333, -76.5333, -61.3833, -61.6167, -89.5706, 144.69, -75.6219, 29.55, -66.8167, 139.7164, -64.1667, 109.75, 139.917, -61.4833, 115.1358, -166.1333, -74.9358, 8.167, -63.5833, 153.4661, -125.2, 115.0189, 141.5437, 141.5419, -162.0667, 140.6725, 143.5128, 15.283, -124.7167, -107.8167, -53.0833, -166.0333, 144.8858, -128.4333, 22.15, 24.833, -131.0167, -131.0167, 32.4, 18.48, 18.602, 155.4, -60.0667, 138.1327, -5.0, -116.92, -49.55, -105.5947, -79.109, -80.616, -55.2, -81.254, -65.724, 145.7497, -111.2622, -65.6833, -105.11, 9.72, 9.5167, 8.47, 9.6331, -52.95, -79.828, -97.77, 3.133, 5.933, -66.65, -66.7333, -64.3167, -64.2, 0.07, -74.574, -65.3167, -65.3167, 9.167, -70.5333, -66.4, -16.746, -70.7833, -61.133, -43.333, 22.25, -57.2167, -42.15, -39.25, -99.35, -99.35, -89.1658, -89.2497, -43.0, 2.31, -134.7, 68.0, -3.1873, -3.35, -113.25, -113.2833, -111.9519, 146.0197, -111.9019, -119.4667, -85.8333, -68.0172, -147.5003, -62.6833, 27.38, -76.2, -89.8703, -116.3175, -2.95, -104.2225, -104.4433, -104.2581, -117.2794, 12.617, -106.5667, -102.2667, -104.3089, -89.3658, -136.3, -136.2, -98.15, -54.2667, -98.0333, -73.6833, -86.0586, -88.1805, -42.6, 115.8869, 22.0, 113.67, -125.0, 122.9753, -98.5794, -3.6331, -47.467, 30.12, -83.3919, -82.2194, -104.3789, -109.0469, -0.45, -56.031, -73.063, -99.1294, -99.1211, -66.917, -105.8964, -119.7728, -99.8733, -94.85, -85.0806, -93.4886, -85.1456, -111.2833, 66.017, -101.5742, -119.7678, -121.9733, -75.5, -100.6742, -84.7925, -111.2192, -94.3397, -89.5389, -85.945, 10.227, -99.4167, -57.0333, -58.8167, -109.4122, -89.7, -91.1256, -113.3833, -7.58, -82.35, -111.7117, -111.5367, -110.4147, -107.8, -90.9983, -116.0481, -107.8, -111.5772, -111.71, -122.0167, -122.4811, -92.4, -6.451, 110.517, -118.9297, -117.4181, 119.5686, -90.7783, 153.0493, 153.052, -67.606, -106.3461, -106.3167, -106.4636, -97.2328, -129.8333, -96.6036, -93.8578, -94.6147, -95.8364, -58.65, 9.7356, -0.0714, 10.3944, -7.483, 141.3339, 141.4133, -114.8661, -117.6333, -117.7667, 144.2392, -97.0261, -120.5667, -111.0125, -112.3617, -115.9167, -104.9058, -122.4833, -112.7333, -109.3986, -103.515, -50.0, -85.933, -92.4617, -47.95, -83.0956, -65.752, -65.8, -65.73, -48.967, 15.05, -76.6167, -54.487, -99.6328, -127.4667, -64.7606, -120.1106, 71.35, -119.495, -77.4831, -114.8142, -67.2333, -97.7014, -72.5989, -123.6422, -83.5328, -43.35, -51.2, -52.4, -66.1658, 105.15, -100.17, -109.25, -92.65, 25.92, -35.417, -123.1392, -93.2844, 30.283, -107.9333, -107.8922, -85.2339, -128.3167, -120.1803, -99.7231, -101.0094, -112.9919, -113.0944, -81.0731, -117.6747, -76.3, -121.7561, -112.7764, -123.7719, -120.3, -114.1658, -109.0828, -91.7167, -91.5881, -101.5667, 133.6976, 133.6725, -86.9, -98.96, 132.25, -85.4597, 41.05, -84.5364, 71.4, -119.3833, 59.617, 10.0333, -82.1769, 86.0, 38.9, -106.1292, -94.1642, -82.6547, -95.9744, -92.89, -96.9033, -87.4261, -101.2119, -106.1444, -96.1258, -122.9528, 87.65, -144.7653, -98.0283, -89.0, -76.9, -67.7, -87.2383, 136.8192, -58.88, -58.983, 145.1785, 37.967, -61.95, 19.43, 74.8, 31.3, 25.97, 56.133, -105.5956, -55.43, -66.562, -99.4, 40.2, 17.542, 12.307, 14.433, 26.3, 151.3377, 151.349, -1.83, -5.3456, -65.1, 35.8, 40.1, -104.65, 117.52, 127.88, 73.28, 63.17, -77.85, -77.8, -107.9106, -68.86, 60.6167, -111.25, 119.85, -108.0333, 102.0167, 65.3, 73.099, -144.3411, -111.0667, -111.0667, -79.5861, -77.3667, -114.2397, -114.2228, -106.5781, -99.312, -99.3183, -98.7467, -77.6394, -66.283, -106.65, -70.414, -73.35, -88.2778, -87.9858, -90.71, -148.4925, -96.88, -111.6819, 128.3, 125.217, 111.683, 126.92, 127.25, 128.183, 123.97, 113.083, 112.867, 116.37, 128.573, 120.717, -93.5644, 24.0331, -88.2819, 130.1225, -102.33, 102.117, -95.4842, -95.4472, 76.6, 120.45, -43.35, 51.167, -74.85, -103.2, -114.47, -102.28, -52.617, -79.0794, -79.0642, -98.88, -83.35, -83.35, -106.65, 36.233, -97.4547, 118.2667, -69.45, -101.12, -81.1833, 63.6, -93.2792, 4.45, -71.2667, -90.0681, -89.3536, -88.1653, -53.6667, -79.9319, -80.0403, -79.9333, -81.7186, -81.59, -85.7, -65.7833, -92.6717, 146.2558, -70.6333, -84.8258, -74.4233, -78.5225, -78.453, -63.1333, -63.1333, -98.7494, -64.9667, -78.6497, -80.9553, 148.3327, -66.3333, -89.4819, -76.4333, 146.2708, 146.2614, 1.5031, 70.0, -119.6833, -78.4756, -93.5833, -74.2167, -1.417, -148.5833, 1.383, 1.7167, 7.15, -71.0333, -79.4103, -69.9589, -65.4833, -86.9333, -86.9242, -176.567, -69.9933, -125.45, -82.2167, 75.8, -88.2503, -80.9, -76.2333, -98.6497, -85.2014, -99.11, 6.9878, -111.1167, -73.3953, -87.2217, 12.383, -84.4725, 128.18, 30.9, -118.7172, -105.2672, -105.2783, 8.121, -120.0006, 61.533, -72.45, -75.7833, -123.75, 12.867, -121.7894, -121.8, -76.6833, -75.0833, 117.917, 104.017, 122.683, 105.75, -88.7108, 113.03, -66.6, -110.0, -79.8833, -103.51, -1.4667, 56.52, 112.5, 25.9, 126.0, 117.0, -95.5378, -98.4244, 91.7333, 91.73, -112.0481, -104.8319, -76.8833, -74.7386, -119.9161, 161.283, 99.53, -81.9675, -121.2422, -110.9711, -90.7333, -76.0519, -75.2, -81.1958, -60.95, -60.95, -88.327, -121.6333, -110.9153, -59.6333, -84.6233, -117.7408, -104.8061, -102.3508, -104.8056, 69.783, 98.983, 99.833, -92.75, 140.1, -74.5333, -88.4814, -87.7853, -87.7522, -87.7775, -87.9336, -87.9047, -87.6, -87.8667, -87.6333, -94.82, 139.067, 142.183, 142.2, -96.9717, -97.9158, -141.9211, -141.9294, -72.5333, -121.7789, -121.8211, -119.6483, 12.533, -98.57, 3.83, 118.833, -106.083, -118.0303, -86.3431, -100.2183, -100.2831, -111.6981, 34.967, -72.0333, -93.5358, -93.5792, -83.0036, -121.9167, -121.7, -121.9667, -113.8289, -121.9953, -121.8936, -84.173, -99.5, -88.1469, 66.2, 33.467, -87.1333, 81.182, -117.6931, -75.5833, -75.35, 106.767, 128.1, -109.2256, -120.2, -117.6361, 26.1331, 32.616, -85.5503, -81.9361, -109.35, -109.3572, -142.0833, 28.9833, -103.3003, 113.4831, -144.4397, 76.433, 98.6, -4.1474, -114.4167, 114.55, -104.4833, 108.217, -108.283, 17.55, -98.2525, 147.8831, 102.1667, 77.07, -87.15, 128.15, 73.75, 129.817, 126.88, 127.43, 106.467, 127.15, 100.983, 19.6, 30.233, 32.7, 25.8, 140.85, -112.1919, 172.532, -80.4033, -64.8056, -64.7014, -157.4833, 105.683, -104.8222, -117.0858, -149.9061, 99.183, 116.92, 127.733, 126.883, 128.43, 128.0, 9.53, 13.615, -94.0667, -94.0667, -64.1, -64.1, -64.1, -94.0667, -110.0856, -1.2, -71.1667, -75.25, 151.8333, 101.517, 32.667, 34.4, 73.967, -104.4833, 32.9, -95.38, 66.75, 109.017, 109.0, -3.3, -100.3456, -107.5592, -104.9456, 59.8167, 42.12, -83.8217, -84.6961, -84.4189, -84.6717, -84.5167, -122.1067, -38.517, -67.98, -105.595, -112.2786, -82.9547, -105.0, 108.267, 62.9, -111.7, -105.43, -54.6, -108.52, -103.467, -104.93, -109.933, -109.833, -3.9194, -99.133, 42.2, 130.9, -121.75, -86.6522, 18.87, -117.7069, -95.5808, -8.9833, -65.1667, -91.2208, -100.8903, -53.9667, -113.6333, -113.7167, 138.5933, 138.6125, -95.0192, -93.7336, -79.4361, -97.7325, -80.3522, -80.2289, -90.5572, -97.1256, -93.45, -93.4425, -95.0717, -76.9286, -90.9053, -87.3353, -82.1897, -109.1375, 12.2406, -123.2058, -101.3619, 10.3481, -81.9008, -109.1, -85.45, -83.3967, -69.5231, -103.1539, -78.4633, -97.1275, -98.0536, -122.3292, -119.4833, -122.5672, -106.4472, -124.2922, -120.0333, -115.25, -145.5167, -120.1167, -90.7756, -111.2833, -111.2667, -96.6872, -121.7167, -97.4061, -82.8236, -81.3483, -78.5333, -81.7233, 147.6425, 6.02, 136.4937, -95.0839, -81.86, -90.7128, -96.5369, -81.6836, -84.7981, 136.5026, -80.94, -120.9131, -108.5047, -109.3072, -106.1897, -105.6628, -105.5872, -98.9772, -93.7711, -88.7483, -90.2639, -78.2758, -90.9733, -121.5, -95.3397, -120.8, -99.12, -82.4911, 140.505, -7.2333, -92.5253, -105.7353, -107.0667, -123.0175, -123.8925, -122.7, -111.85, -114.9697, -103.1992, -103.2161, -103.3167, -123.5333, -109.5167, 23.7, 23.5667, -68.5167, -68.5167, -68.5167, -120.3606, -85.7014, -111.3983, -111.1472, -105.3847, -127.5, -63.133, -75.86, -71.8, -94.417, 145.7964, 145.8294, -68.78, -74.4333, -78.1667, -78.1833, 10.983, -66.18, -106.7611, -106.3322, -81.0333, -114.4333, -114.45, 9.6, 96.833, -62.083, -88.2269, -106.3667, 12.0978, -109.045, -108.9006, -109.3914, 143.1183, 143.1178, -116.7967, -116.8167, -120.62, -95.5664, 153.1187, -0.32, -106.6167, -121.7689, -116.4917, 77.05, -8.4167, -8.467, -84.275, 143.5961, -101.0689, -78.6831, -95.15, 145.4094, -99.3289, -84.9925, -79.5333, -162.7325, -115.5833, -110.2833, -109.45, -122.1833, -120.13, -71.54, -99.4339, 8.4667, -114.5833, -66.2, -65.8167, -109.35, -120.9481, -117.35, -97.6561, -121.6056, -103.577, -44.25, -53.55, 148.5818, -107.9631, -62.0167, -94.3919, -147.8803, -147.8483, -76.95, -96.3647, -89.6653, -80.2167, -89.5572, 147.8464, -122.9503, -103.7, -103.7, -3.7642, -93.3189, 79.867, -57.9, -76.9628, -106.417, -105.7667, -104.1533, -100.8594, -112.9719, -108.7339, -104.6883, -103.267, -84.7664, -106.6336, 1.35, -89.8361, -81.1186, -76.2667, -87.0864, -98.3, -85.4897, -92.1072, -119.3242, -80.9958, -92.2183, -81.0167, -92.32, -106.6, -109.9139, -108.3833, -96.5731, -107.6389, -88.3847, -94.8397, -85.9228, -109.2675, -84.9378, -97.3278, -88.45, -108.0167, -91.3611, -84.9422, -82.8833, -83.0781, -82.8808, -82.9333, -82.92, -122.0269, -117.9019, -117.8, -126.0833, -150.4094, 7.1667, -77.598, -77.6167, 149.0228, -113.4, 39.733, -116.175, -54.0, -54.8833, -92.133, -83.4894, -57.997, -67.5, -124.9, -125.0333, -89.1003, -99.2372, -13.62, -58.23, -49.2, -49.28, -43.433, -73.03, -57.417, -62.1, -57.3, -94.6833, -104.1906, -99.7081, -80.8833, -119.7492, -80.5833, -71.535, -58.03, -97.6508, -71.5011, -122.0692, -121.7422, -98.1008, -86.3833, 147.2283, 147.2133, 147.1524, 147.15, -120.1817, -113.7172, -79.3664, -89.2414, -0.167, -73.9256, -8.818, -80.2833, -114.2167, -118.8828, -76.1756, -111.9614, -95.4831, -95.4139, -95.4828, 28.63, 6.62, -70.73, -114.7528, -107.525, -111.55, -116.9131, -79.0558, -92.4294, 106.6, 134.7564, 134.7222, 130.4136, -85.5033, -109.9819, -71.6333, -79.7, 145.1861, -93.0667, 153.5053, -115.3, 148.9725, 149.1243, -124.4333, 149.2714, 148.3798, 148.3806, 140.8254, -74.9267, -98.0381, -76.85, -149.6661, -149.968, -124.2661, 148.05, 148.0364, 148.0236, -73.5522, -105.5667, -80.1167, -101.2842, -70.33, -84.3758, -115.1167, -113.8333, -112.6, -99.743, -112.7333, -105.4844, -87.8833, -87.8672, -106.1667, -114.2167, -124.2025, -103.81, -109.9958, -83.3667, -77.3747, -114.65, -119.5817, -42.36, -83.7747, -112.165, -64.217, -4.8458, -64.183, -123.3667, -145.4511, -145.7531, 19.9167, -69.2417, -112.1106, -88.6178, -8.491, 27.8, -57.4, -83.5286, -87.3, -87.1589, -57.9167, -57.95, -90.5858, -94.7492, -77.0692, -122.1697, -105.47, -73.2106, -74.75, -74.8, -105.5167, -105.4833, -110.2542, -109.15, -111.45, -111.45, -111.45, -105.6975, -70.276, -74.204, -56.4, -43.26, -61.883, 146.3574, -66.3592, -97.5108, -97.4, -97.2833, -97.5056, -106.595, -121.7978, -115.5333, -121.4667, -44.61, -58.762, 117.8733, -79.6333, 147.8956, -96.4867, -96.3989, -125.0333, -124.95, -108.595, -108.6275, 12.15, -76.1833, -81.2711, 34.95, -57.5, -57.7, -123.19, -123.4575, -93.4833, -97.03, -81.7908, -81.8711, -101.7833, -74.1667, 7.216, 2.38, -123.0275, -123.0578, 14.3183, 11.1692, -0.65, -92.4533, -101.8606, -116.3919, -155.9361, -108.2778, -110.8167, -96.5483, -109.5811, -111.7869, -99.2183, -91.4594, -122.2042, -121.6333, -123.1172, -118.9997, 135.3741, -110.5667, -96.5097, -118.5333, -122.4119, -122.6914, -125.0, -124.9833, -125.0333, -97.8956, -82.45, -105.8833, -123.2444, -72.35, -117.7903, -81.7333, -83.8436, -89.7, -90.1114, -79.9883, -100.65, -77.1567, -83.4314, -124.1333, 148.6497, 148.6534, 148.7071, -107.5819, -57.7833, 91.964, -95.02, -72.0333, -114.7583, -101.06, -96.71, -115.65, 15.133, -112.0, -84.4375, 25.62, -2.2, -116.4833, -112.2833, -107.5894, -107.5211, -80.0797, 10.0992, 23.87, 145.2637, -115.7833, -115.7667, -115.75, -109.6114, -102.3578, -119.8247, -92.4667, -86.835, -118.4667, -115.85, -74.3231, -0.5, -113.5581, -122.1328, -115.2833, -40.667, -103.4167, -86.8011, -123.6036, -107.63, -107.1333, -97.9047, -124.2147, -102.4378, -102.4372, -120.7, -92.0939, -76.85, 147.0794, 147.0811, -106.9769, -81.2728, -114.1342, -116.5167, -105.6897, -94.3942, -116.5, -116.5333, -86.5225, -118.9833, -85.4186, -96.8719, 14.7, -75.8667, -120.7333, -88.1919, 21.95, 15.2, -95.4508, -97.4969, 152.87, -119.2167, -81.3333, -102.8031, -96.6028, -103.2936, -101.245, -107.05, -91.9481, -103.3403, -85.1314, -85.0814, -83.1053, -83.1053, -113.9167, -98.0333, -85.0142, 17.07, -92.3478, -112.3453, -112.3333, -60.833, -114.4833, -118.95, 142.2447, -77.8769, -72.667, -36.58, -53.6, -64.7942, -39.08, -99.8311, -113.16, -109.5, -90.3775, -120.3667, -104.76, -102.07, -98.95, -106.9703, -107.5178, 120.2667, -72.52, 79.767, -2.1381, -103.67, -99.233, -97.3433, 133.867, -56.117, -56.1, -100.8292, -104.5089, -5.25, -105.2, -107.475, -86.7972, -80.85, -83.1747, 124.8667, 50.4, -77.9833, -121.9833, -118.4139, 80.967, -64.2, -92.0222, -78.7561, -106.45, 135.317, -72.9333, 32.8, -131.6, -102.58, 117.2331, 117.2217, 7.54, 145.6808, 24.4331, -104.2667, 21.3667, -103.05, 132.6, -71.233, -49.267, -49.167, -111.1, -115.4128, -114.75, 143.8486, 123.8217, 131.7571, -100.4936, 106.65, -44.45, -96.7758, -123.16, -103.6119, -103.6114, -84.7931, -112.0558, 85.933, -112.3753, 8.7067, -116.5872, -72.0, -71.95, -3.802, 123.0086, -84.3031, -109.4667, -109.5167, -99.0833, -81.5333, 19.1, -89.9328, 104.579, 121.883, 10.8639, 122.98, -119.8914, 14.18, 120.35, -105.0333, -83.99, -94.7225, -110.3333, -17.5, -15.931, 29.0, -113.95, 28.78, 104.417, -13.5831, 151.2634, 151.2639, -77.1133, -78.9353, -5.15, -102.6133, -102.55, -74.4667, -74.4667, 100.18, 121.633, -123.2911, -84.7475, -97.0189, -96.9667, -96.8556, -96.8681, 133.733, -6.473, -84.8872, -102.9661, -89.2028, 84.067, 69.3, 116.6714, 116.6619, -113.85, -122.05, 64.4, -77.2333, -77.2319, 36.516, 34.337, 116.7483, 108.199, 16.54, -80.1789, -73.4167, -92.3736, -73.4828, 124.333, -96.2319, -67.8614, 69.317, -83.3045, -57.5833, -111.25, -110.1272, 125.028, 44.117, -18.67, -73.7206, -117.3389, -77.7178, -77.7133, -79.3886, -84.7708, -87.6483, -71.9833, -82.3039, 109.58, 100.3, 0.25, 85.9, -114.1764, -93.1675, -75.9, -120.1833, 62.283, 39.5, 88.27, -113.5833, 99.65, -79.8767, -90.1064, 8.6775, -1.4106, 148.033, -121.6036, 147.4984, -10.85, 17.23, 143.2, 130.8925, 130.8844, -110.1631, 39.2, 39.3, 59.8, 114.4, -81.6167, -113.4981, 113.333, 26.617, -100.05, -100.05, -100.05, -88.0775, 106.8, 125.6, -72.2, -90.5808, -118.1614, -105.9833, -97.1328, 77.95, -77.1833, -121.7761, -110.8833, 9.85, -139.4333, -139.1333, -139.1333, -120.1833, 101.12, -81.0483, -118.0022, -84.9947, -84.2186, -84.1911, -84.2264, -119.6447, 108.2, 95.367, 107.5, 24.017, -148.4772, -110.6833, -105.7667, -103.7314, -115.5667, -118.9433, -107.3786, -105.9, -122.3167, -117.1678, 147.3153, -83.2378, -130.0167, -130.0333, -116.8669, -108.5931, 38.4, -63.4167, 53.82, 21.615, 21.6, 37.667, -86.9503, -88.8656, -86.9453, -88.9506, 66.5, 8.972, -91.7953, 3.483, 5.8878, -94.3872, -117.9803, -93.2044, -103.7858, -71.8678, -162.7639, -98.3167, -111.5289, -120.8333, -116.7475, -115.1517, -57.4333, -57.4, -112.7975, -117.6103, -108.9, -118.05, -117.4283, -115.2711, -84.3847, -84.4289, 98.57, 9.4117, -76.8703, 70.2, 78.033, 35.6167, 40.176, -94.6175, 131.9182, -81.3106, -93.7903, 25.28, -83.0739, -74.9128, -80.55, -80.55, -123.4333, 97.37, 3.95, -105.2369, 28.68, -119.6542, -100.5, -86.6661, 16.55, 16.54, -108.0783, -112.5858, -145.6136, -145.105, -98.3833, -123.1, -112.7886, -106.3083, -100.9094, -100.9269, -100.7833, -118.6828, -108.88, -107.7531, -61.1833, 22.25, 69.283, 11.8564, -87.88, 67.9, 95.6, 113.5319, 144.9458, 144.952, -118.6336, -95.3289, -96.5667, -121.0333, 29.083, -81.3436, 115.167, -109.9372, -97.105, -97.1989, -104.8489, -102.8219, -104.6575, -104.8694, -105.0083, -104.9833, 1.7217, -75.4264, 139.6697, 98.883, 99.38, -94.3481, 70.92, 48.3, 123.6611, -91.385, 22.66, -119.9333, -7.2581, 58.4833, -117.5844, -116.6222, -71.9167, -71.9667, -112.6519, -115.36, -116.1594, -119.77, 39.7, -86.4717, -91.4978, -103.8333, -93.6531, -93.7236, -83.9014, -83.01, -122.2547, -95.8372, -83.3308, -83.5333, 4.4667, 7.05, 22.9, 35.5, -81.1292, -120.6714, -93.3333, -98.9, -98.8681, -98.9075, -119.0933, -104.7194, -104.7147, -107.3047, 146.4267, 146.3817, -117.4044, -71.1667, -109.2997, 48.3833, 116.37, 24.017, 5.1867, -86.0939, 30.17, -88.7756, 4.7808, -93.4692, -93.2869, -121.6108, -97.5606, 50.15, 87.35, -121.1431, -121.2939, -43.64, -56.45, -94.3553, -111.2167, -122.1333, -113.3664, -115.85, -109.2428, -116.0494, 95.017, -102.8111, -102.8414, -87.3958, -114.2167, -70.181, 72.4, 49.18, 119.3031, 8.341, 23.17, 10.6742, 12.627, 9.2081, 12.0864, 11.0431, 4.93, 16.04, 26.87, 80.4, -105.0569, -111.4667, 8.2631, -99.1833, 10.4994, -105.1175, -158.5167, -112.6447, 125.5667, -79.3564, -106.0353, -112.5545, -4.7, 22.75, -102.312, -58.85, 30.2, 122.117, 11.57, 115.517, -108.9719, -108.9106, -109.3045, -107.3333, -16.233, 13.7144, 41.85, -118.2, -120.1667, -71.3167, -108.9133, 19.71, -112.05, -112.7547, -107.1667, -44.87, 43.35, 38.1, -115.4606, -89.5136, -88.6678, -84.7078, 40.201, 14.8, 14.77, 9.47, 3.25, 10.77, 43.15, 11.93, 34.967, -66.1333, 12.217, -121.2011, -73.8344, 23.317, 13.583, -91.5511, -90.1161, -90.0, -99.9683, -105.5194, 35.767, 10.35, 44.1, 51.565, 27.467, 27.75, 159.07, 142.8, 12.67, -114.6667, 75.767, -57.733, 59.65, 123.0, -120.9833, 123.367, 39.7, -107.3, 77.37, 142.9709, -91.0278, 8.5056, -79.4058, 37.767, 108.617, 30.483, 109.98, 120.283, 106.6, -90.8125, 16.42, -111.4667, -71.7333, -120.2331, 115.8247, -79.8694, 10.5012, -103.3, 100.6, 126.3114, -92.2192, -123.9956, -122.9631, -0.05, -0.033, -80.6667, -73.075, -78.9333, -115.2, 7.5353, 36.2, -66.6667, -92.83, -85.4497, 9.72, -105.4017, 153.1906, -109.5394, -82.8206, -109.6061, -105.3667, -105.3856, -120.1031, -120.2, 131.1872, -119.8983, 4.5978, 147.0075, -75.5056, -87.8628, -75.4667, -69.1839, -86.1319, -106.4517, -120.8239, -59.25, -75.1225, -120.0828, -120.1056, 15.97, -123.3275, -100.31, 10.1237, -111.8997, 13.61, -115.3167, -88.7064, -82.1833, 13.767, 13.8494, 13.6831, 12.0481, -118.3775, -111.1125, -97.9822, 22.6331, 23.517, 71.783, -112.6833, -91.2667, -72.4833, -113.1761, -76.25, -134.3833, 145.3, -128.1167, -102.1167, -92.8333, -92.75, -102.2131, -108.3575, -111.5333, -119.1167, -118.5333, -144.6011, -120.5333, -112.1833, -106.7833, -109.8331, -106.7808, -112.24, -82.8736, -70.584, 55.364, 148.5753, 148.6089, -71.3, -82.9036, -98.3047, -6.3192, -109.6553, -112.2006, -78.8989, -86.6983, 18.27, -90.6461, -90.7036, -71.65, -110.395, -115.6361, -80.9072, 18.867, 86.17, -121.1303, -119.0147, -112.9217, -75.0833, 6.7031, 70.07, 54.6, 135.933, 16.134, 98.1, -107.0, -104.9614, -92.2097, -92.0903, -92.2108, -92.1833, 123.3, -91.5317, -101.9725, -3.65, 87.25, 140.017, 130.3725, -2.5258, -84.2333, -109.1214, -97.9592, -123.7667, -123.7333, -116.9667, -79.8833, -6.35, 170.1, 170.52, 149.3964, -124.1197, 128.2, 94.683, 16.91, 2.33, -79.2722, -82.4047, -79.6167, -78.6881, -102.5869, -122.2736, -71.5167, -5.4386, -119.85, 124.6, 116.467, -79.2667, -101.605, -101.4672, -112.75, -107.8833, -107.8564, -104.6, -107.7597, -96.3686, -56.5, 30.951, 144.2078, -70.95, -70.0964, -80.8167, -1.5846, -72.35, 28.6, 107.55, 68.8, 6.77, 68.1, -166.5433, -104.8667, 57.9, 31.2, -89.1931, 42.717, 69.0833, 116.0594, -88.4111, -78.9, -116.3217, -2.198, -118.0106, -89.4089, -89.41, 123.9, 113.97, 134.5, 63.333, 34.4, 141.3, 45.281, 124.0, 95.217, 72.95, 52.567, 72.45, 121.77, 67.8, 64.083, -88.53, 67.833, 139.833, 138.733, 70.897, -102.7769, -141.2036, -141.1619, -141.1483, -119.2167, -110.3667, -106.9167, -115.4508, -97.4497, -105.2628, -100.4792, -122.6569, -89.2564, -149.44, -109.8964, -79.85, -93.2167, -93.2167, -108.8167, -108.9833, -84.3333, -98.8175, -106.1833, -78.5167, -83.2058, -66.9919, -62.1667, 1.0267, -72.1269, -113.2239, -111.9167, -71.5, -70.7539, -84.6892, -74.1433, -85.1322, -84.485, 27.833, 27.8, -122.5178, -61.9833, -110.2, 147.1322, 147.1317, -83.5036, -70.6697, -109.5167, -84.6336, -86.243, -91.4878, -119.8, 10.7375, -78.7289, 8.9792, 9.5339, 11.9883, 10.5003, -105.8992, -105.8461, -114.4256, -111.435, -105.6, -120.0667, -120.0333, 6.45, 144.7642, 1.332, -114.3833, 148.3467, -76.5517, -72.5572, -117.5883, 12.87, -70.5181, -98.7661, -103.8778, -103.9172, -78.5853, 138.6222, -3.35, 26.567, -80.2947, 137.7395, -113.5, -113.5167, -113.5167, -113.5167, -113.5833, -113.6, -113.5167, -113.4667, -114.1167, -114.1167, -113.75, -98.4714, -68.1833, -98.8578, 27.0, 15.84, 15.72, -116.4667, -116.4833, -116.4667, -116.45, -117.8667, 32.333, 3.5619, 6.5844, 6.5756, -123.0833, -88.6244, 12.67, -79.7833, 17.57, -127.8333, -14.4, -179.1, -114.4706, 11.2358, 6.8605, -147.1, 6.5045, 145.8423, -118.1167, 7.5967, 5.3767, -69.86, -77.2292, 16.53, 10.9117, 11.5717, -115.183, -101.08, 101.067, -104.5461, 60.6331, 130.9667, -110.6167, 16.5797, 57.767, 132.983, 16.75, 135.88, 174.167, 41.7667, 34.95, 39.291, -111.95, -82.855, 37.2, 19.433, -106.55, -106.5833, -121.9, -114.7, -59.38, -92.5808, -93.0972, -94.0156, 35.267, 35.239, 38.517, -120.6706, -111.2128, -107.1842, 64.0697, -136.3436, -97.3683, -114.5411, -98.0747, -88.2861, -117.9239, -103.6572, 44.3, -137.083, -92.7833, -90.2269, -82.2325, -73.5986, -85.8761, -104.6292, -76.205, -105.3381, -91.4536, -114.9167, -101.8867, -109.75, -101.2, -79.8528, -115.1167, -115.7425, -115.7886, -123.5992, -123.6306, -116.1167, -105.7, -115.4611, -99.5064, -95.7769, -112.8667, -106.4136, -111.0667, -106.9667, -116.1797, 5.7625, -98.5261, -120.54, -120.5303, 145.9347, 133.5407, 145.7725, -82.5667, -82.65, 134.888, -98.225, -68.4333, -102.2133, -92.4586, -103.1, 10.1317, -94.0353, -123.4008, 29.9, -149.8, -76.8358, -76.8919, -72.5294, -63.3333, -119.75, -98.0167, -102.4683, -80.4167, -111.5186, 9.017, -108.0333, -90.7847, 6.5653, 6.1831, -117.3319, -100.0106, -119.1561, -123.5906, -85.8453, -91.8586, -82.0558, -82.1794, -114.8361, -114.8467, 8.1094, -111.05, -68.1, -68.192, -113.42, 33.836, -99.13, 1.0, -71.532, -93.15, -116.9281, -106.28, -116.815, -76.641, -117.4111, -115.5617, -115.6833, -84.22, -91.1, -108.0167, -96.8444, -92.8142, 25.333, -108.62, 2.8667, 8.45, 0.067, 14.3, -98.95, -117.6303, -117.5503, -108.3492, -109.63, 30.233, 30.2, -110.72, 6.12, -97.2, -106.5, -106.3708, -105.9608, -106.3758, -111.12, -110.98, -104.07, -104.73, -111.71, -98.9, -97.9553, -106.1878, -99.35, -99.43, -105.37, -103.18, -103.23, -69.03, 46.9, -117.7333, -63.171, -105.36, -106.73, -71.65, -79.59, -92.1958, -108.3906, 6.5, 37.45, 7.2267, 7.2, 41.8, 103.33, 148.1756, 29.95, 148.1617, -97.2, -97.2333, -113.9333, -122.2175, -116.3022, -118.45, -111.5667, 31.2, -1.667, 7.8356, -94.6833, -116.4664, -77.2914, -75.0106, -95.7797, -93.8333, -110.767, -110.6347, -77.5597, -96.2189, -96.1897, -78.2275, -110.0, 115.0414, -106.6167, -55.9, -99.3847, -52.51, 166.3, -97.6383, -101.5147, -76.0878, 115.2722, 8.4167, 7.4256, 8.7681, -56.1167, -86.4683, -97.8747, -97.9167, 92.15, 173.33, 14.283, -100.8833, -111.7111, 20.783, 20.8578, 23.5803, 23.3392, -72.8083, -116.633, 109.467, -117.1528, -117.2667, -85.8997, -113.6556, -120.3228, -117.7, -123.8167, -123.8, -114.9833, 7.55, -95.0, 28.433, -111.5992, -119.5153, -71.0839, 8.9175, -126.2833, 58.6, 108.0167, 43.4, 34.3, 101.383, 112.0, 9.3169, 10.9631, 39.8, -99.8628, -98.8239, -81.9, -80.1825, -79.9567, 12.42, 12.42, 9.5403, 92.417, -74.781, -108.2, 121.933, -4.4, 146.1089, 102.3, 48.35, -82.4261, 95.12, 39.527, 41.17, 140.117, -111.5978, -87.0939, -90.75, 9.2869, 7.6617, 10.065, -117.09, 53.6331, 7.6092, 51.6667, 51.862, 66.333, -113.9533, -3.2, 16.46, 16.45, 30.53, -96.1058, 8.1569, -106.0589, 121.8925, 121.8275, -42.25, -120.515, -42.8, -88.3, 24.6042, -71.15, -123.4333, 21.07, -9.682, -79.8167, 102.37, 6.967, -83.845, -74.2858, -73.1153, -73.1156, 6.23, 158.7, -122.3186, -106.0344, 29.87, -74.8289, -105.3611, -147.9242, -105.4858, -102.9667, -126.55, -126.55, -94.7472, -94.7461, -110.2, -56.52, -108.7667, -0.621, 175.62, -129.6833, -104.9, 128.8792, -91.2628, 139.0847, -95.5903, -85.09, -123.2206, -92.4303, -89.2358, 21.6331, -115.9622, -99.6353, -85.9333, -96.2644, -116.0056, -118.7333, -115.0644, -93.7917, -124.1603, 3.275, -70.4825, 10.5878, -75.1, -110.9508, -87.5783, -87.5206, -123.1033, 153.3964, -98.1619, -85.2667, -92.5303, -91.6169, -109.7833, 11.143, -78.3653, -122.195, -122.2803, -81.3897, -86.9533, -105.315, -87.0442, -1.5739, -7.9, -7.9, -158.0667, -98.3417, -103.37, -81.5, -3.42, -84.2842, -56.6, 126.3008, -114.0264, -111.0, 0.35, 11.8858, 10.53, 24.933, 12.81, 9.233, 56.483, 6.95, -147.615, -147.8739, -147.8761, -147.7911, -97.1669, -117.65, -90.9667, -122.0678, -84.5894, -112.0944, -91.9553, -103.2247, -111.9855, -96.2078, -114.75, -88.3264, -114.79, -87.8808, -118.4297, -80.1333, -97.5928, -94.4656, -118.3833, -1.633, -102.0367, -102.0192, -65.6631, 132.25, 13.37, -99.1372, -95.3667, -98.1203, 12.48, 13.54, -86.8833, -120.05, 20.77, -118.7811, -118.7167, -123.4308, -95.5919, 147.2755, -73.3667, -85.3586, -119.0333, -96.0781, -84.3283, 12.82, 15.6167, 33.95, -65.42, 5.3533, -119.4658, 110.77, -159.38, -64.4, 47.821, 27.983, -154.0767, -153.6206, -82.3606, -96.8111, -93.2661, -88.7075, -73.4169, -90.4103, -111.8, -64.6667, -70.1567, -111.9353, -93.17, -108.3086, -108.2292, -85.1483, -78.3864, -72.9, -111.6833, -7.966, 19.16, 18.96, -133.3667, -133.3833, -109.4453, 22.75, 48.315, -3.7689, 53.7167, 10.1833, 102.339, -99.1342, -118.0667, 25.32, -116.8989, -116.1, -87.8214, -91.8158, -94.1694, -94.1744, -78.8583, -78.8803, -86.5411, -86.7167, -107.8639, -104.3, 72.22, -81.5389, -38.96, 8.0044, 9.6, -87.9, -88.05, -102.72, -108.6764, -119.175, 109.5, 116.63, -115.5356, -76.1356, -103.0667, 35.3831, 71.75, -96.1172, -80.3833, -80.3333, -70.8333, -67.0833, -81.4525, -32.417, -115.0667, 145.3364, -57.1, 11.6208, -58.4, 170.817, -96.6608, -111.1325, -101.45, -99.6219, -90.3981, 27.85, 29.1, 10.35, 13.717, 47.112, 12.9553, 11.8392, 27.9, -118.6758, -122.3019, -2.583, -83.0831, 14.17, -112.3278, 17.91, -83.6686, -83.6622, 147.9664, 30.15, 15.47, -1.0, 15.6098, 11.25, 11.3742, -120.1075, -71.2906, -97.55, -97.5333, -109.95, -109.5714, -118.6333, -116.0669, -119.1783, -115.875, -121.0667, -122.4167, -119.6519, -113.3978, 5.5817, -71.7558, -83.2517, 146.0033, -110.2658, -117.9183, -113.8333, -120.1561, -110.4667, 47.15, 12.22, -103.0614, -111.7311, -111.675, -117.7289, -111.6664, 14.15, -80.9144, -109.4117, -96.5928, -101.2, -97.0644, 12.73, 13.1153, -110.6, -113.85, -108.3725, -156.6139, -81.0925, -114.8989, -74.8811, -102.8594, 9.4192, -82.4833, -82.5575, -73.0, 148.0024, -89.6833, -83.7494, -112.1833, -101.6833, -101.8833, -101.6833, 12.0125, 16.3997, -92.87, -36.81, -88.5758, -111.3881, -96.9242, 11.2, -88.2583, -79.74, -79.7239, 4.6608, -31.131, -44.41, -98.1628, -43.017, -48.567, -107.4833, 21.4, -105.285, 28.8, 12.3506, 12.27, -56.6833, -117.4039, -101.3339, -80.2908, 9.849, 113.53, 15.72, -54.3, 9.2831, -80.7833, 16.3097, -82.1278, -100.1369, 14.61, 14.43, -121.1667, -88.4533, -88.4864, 9.25, 10.5142, -64.65, -110.0564, -66.167, 147.9205, 148.0081, 5.9333, -114.85, -92.3989, -79.5144, -111.45, -89.4208, -98.0833, -112.1167, -69.0833, -93.6306, -81.9311, -123.1025, -92.9125, -71.15, -124.3539, -107.4536, 12.0556, -97.595, -58.228, -47.33, -46.25, 128.1092, 128.1139, 16.9897, 152.5089, -106.6744, -83.9417, -38.6, 113.5333, 146.265, -72.05, -114.8997, 7.7005, -103.8056, -81.6667, -114.9167, -114.9167, 26.633, -108.7189, -111.1167, -111.1167, -80.7694, -78.9667, -93.4167, -93.4333, -124.5833, -128.65, -128.65, -106.1614, -123.4667, -123.4667, -111.2167, -111.2167, -111.2167, -134.8667, -122.6, -122.6, -117.6, -109.1667, -109.1667, -113.6833, -120.8417, -94.2, 69.5, -113.1833, 50.25, -98.3833, -121.2333, -121.35, -121.2333, -111.9333, -111.8667, -111.9667, -124.2833, -124.25, -120.7333, -78.4, -145.2655, -120.2175, -110.7703, -95.7244, -122.6728, -119.2461, -2.067, -111.7131, -118.915, -122.2167, -112.0422, -98.8392, -92.2875, -101.5697, -116.8167, -63.7833, -119.5681, -47.433, -86.8872, 13.4, -104.46, -93.341, 27.5, -75.7278, -86.21, -84.9033, -86.5067, -84.8825, 28.5, 8.6756, -96.4889, -83.3928, -84.3189, -98.9667, -79.8306, -90.18, -78.4633, -98.945, -79.3092, -91.5442, -111.6, -71.6536, -86.8686, 145.1156, 16.21, -105.8172, 21.517, -135.05, -124.85, -113.055, -99.02, -98.9089, -77.45, -77.4508, -90.3086, -82.5333, -77.4389, -66.5333, -66.65, -66.6167, -95.8328, -79.312, 18.42, 18.37, 14.4, -99.1128, -91.7028, -74.2511, -87.3083, -78.7, -95.3808, -89.6039, -98.6175, 7.9342, 13.3389, 7.85, 9.2494, 14.5, -72.8667, -122.0158, -83.1189, -96.4669, -121.2122, -83.1719, -117.7111, -112.3347, -106.2, -68.3133, -112.9128, -80.0167, -119.7092, -119.7194, 8.41, -119.7072, -123.0231, 148.2794, -123.3417, -102.7231, -87.4203, -108.9333, 9.283, -68.6, 148.84, -112.2, 43.7, -108.5667, 12.733, -78.1822, 13.28, 13.07, 14.49, -78.9358, 23.995, -108.7331, -108.3483, -48.93, -111.85, -70.9475, 9.12, 9.27, -109.8014, -88.8589, -108.1514, -85.0, -110.6608, -120.1575, -123.7567, -78.9333, -87.4833, -104.7639, -104.8539, -123.8783, -105.0858, -105.0236, -103.8869, -94.2006, -109.8611, -112.4133, -105.7414, -122.8478, -68.6136, -80.2011, -80.1061, -80.1708, -80.1536, -108.0514, -91.3339, -103.4775, -103.8156, -81.8614, -81.755, -106.4117, -80.3508, -80.3767, -100.6592, -93.1833, -149.6503, -96.7667, -123.2447, -94.7086, -94.4, -94.3625, -115.4667, -81.6289, -102.9153, -102.9167, -104.2319, -99.535, -109.9855, -111.7428, -85.2167, -85.2064, -97.3181, -97.3614, -97.45, -97.2975, -100.6667, -145.2342, -175.15, 16.7481, 120.2, -13.8631, 20.155, 131.983, 138.436, 139.933, 128.833, 136.217, 130.383, 140.433, 133.25, 9.65, -98.4, -117.9789, -91.9414, -88.4569, -90.1544, -76.3847, 179.2, 179.217, -16.8997, -16.767, -64.95, 5.0442, 11.2667, 13.3544, 137.05, 127.75, -178.117, 115.83, 89.517, 119.283, -0.667, 10.1, 25.917, 149.9158, -123.7333, -99.1383, 75.633, 14.1594, -85.9878, 8.823, -108.0867, -66.15, -99.7689, -5.95, -6.0, -101.4539, -85.6553, -83.86, -82.4942, -97.0592, -83.8303, -88.1342, -82.2756, 54.35, 28.02, -80.9139, -80.9183, -107.63, -43.244, 127.833, -93.4661, -114.6667, -156.8756, -112.2292, -114.7167, -90.3856, 135.5648, -58.2333, -93.9803, -105.55, -90.3072, -82.1822, 20.65, -108.7939, 67.58, -23.5667, 10.1858, 100.133, -90.035, -94.8, -94.8592, -9.02, -171.75, -54.2167, 15.87, 15.85, -109.5661, 46.4167, -54.5667, -54.4833, -54.5833, -54.5667, 26.433, 100.133, -123.5, 128.868, 49.267, -77.4, -99.0719, 119.133, 115.0, -0.005, -3.18, 112.47, 129.067, -36.517, 11.4, -101.4814, -100.8122, -100.7247, -113.8667, -115.9694, 11.0803, -69.7889, -110.7036, -124.1217, 14.39, -112.1975, -113.9333, 62.333, 13.583, 39.633, 69.95, 11.067, 12.16, -95.2178, -55.3667, 13.37, -85.1197, -114.0333, -101.4394, -101.4197, 13.4342, -71.3833, -115.8167, 100.0, 53.97, -105.4481, 115.21, -64.4833, -64.4833, -123.9792, -80.7672, 43.767, -81.1433, -111.7792, -107.5133, -100.0569, -100.2667, -97.7019, -122.5167, -108.9722, -79.9542, -83.5369, 152.3289, 91.583, 7.2888, 45.1331, -97.4733, -70.7, 17.17, 17.16, 179.1, 3.45, 84.95, -94.2208, -84.7114, -84.7189, -84.7014, -119.3183, 151.6094, -90.8486, 55.517, 37.37, 32.3, 27.8, -98.3217, -88.4333, 35.4, 29.4, 144.3356, 146.9172, 146.9197, 8.2015, 7.95, 148.2625, 11.433, 38.017, -112.1833, 36.05, 20.02, 20.6, 12.65, 22.5, -66.844, -62.73, -64.6, -72.031, -99.18, -101.47, -63.794, -111.048, -99.75, -100.1, -57.63, -63.758, -90.1486, -97.5964, 13.03, -85.8708, -77.0308, 6.1331, 99.4, 22.45, -97.7644, -91.2294, 8.93, 12.167, -78.489, 125.183, 22.4, -58.25, -58.15, -105.6997, -96.7758, -79.2239, -75.45, -97.7172, 143.55, 143.5483, -120.8008, -75.3592, -79.8833, -72.2333, 22.383, -97.6167, -110.2669, -86.9333, 114.6975, 12.13, -121.1333, -121.1389, -119.3514, -124.7, -88.1222, 11.1331, 8.5306, -99.9403, -100.2175, 101.483, -114.6361, 9.715, 21.65, 3.8, 10.143, 1.9, 50.047, 10.268, 35.467, -114.9333, -113.9275, -115.2111, 18.075, -5.35, -123.5167, -123.5333, -88.3653, -112.7536, 15.07, 8.6506, 136.767, 41.35, 24.533, -5.6417, -5.6983, -112.7131, -108.2075, -92.7161, -88.2678, -100.4667, -110.3022, 128.28, 128.301, -178.6, -94.7, -94.7167, -105.4919, -105.5419, -95.0497, -147.5211, -121.5608, 9.0503, 4.9353, -97.0167, -96.9833, -97.05, -111.5881, 115.8642, -94.8392, 38.383, 2.7631, 177.983, -111.1667, 42.5, 20.15, -95.85, -95.85, -135.8692, -117.7, -117.5167, 16.46, -97.8, 151.2214, -91.0233, 151.2628, -99.0167, -84.4908, -79.7172, -101.81, 9.06, -85.9072, -106.6383, -106.6213, -75.0953, 52.583, -56.5, -113.05, 15.7081, -9.7167, -99.3333, -119.9411, -76.5, -104.7183, -9.5458, -73.9333, -97.1167, -4.1858, -145.5328, -115.3231, -118.7006, -81.9522, -76.8042, -122.1383, -73.6167, -73.6781, -8.2858, -87.8333, -80.8325, -108.8794, -54.85, -121.2633, -95.4392, -95.7736, -107.3172, -112.7006, -80.7167, -149.6936, 26.33, -98.315, -74.5333, 151.6936, 151.694, 151.7366, -97.7853, -82.1856, -90.0, -110.7711, -110.6519, 13.9831, 12.36, 19.67, -74.3592, 9.4306, 140.1251, 104.3, 1.255, 73.817, 15.05, -63.0, -70.167, -67.6167, -81.7167, -76.6333, -85.9667, 13.8, 9.95, -4.0197, 26.97, -49.25, -49.217, -50.13, 25.9, 36.5, 28.933, -117.4922, 29.833, 12.1, -111.3994, -91.0222, -120.8428, -120.8167, -116.9833, -88.0139, -109.8, -62.6833, -117.2331, -77.9647, -118.4167, 119.5206, -98.5903, -124.4242, -118.2833, 153.4283, -113.8333, -121.5, -118.4636, -126.05, -114.8667, -112.0917, -97.385, 10.1928, 94.9, -86.853, 8.9475, 30.95, 31.0, -99.03, 37.417, 27.7, -97.4597, -53.9667, -101.7, -88.3603, -145.2669, -101.6181, -113.3, -123.8903, -102.6667, 138.7989, 116.8269, 150.3256, 150.3075, -111.6833, -60.4167, -113.8958, 43.817, 83.367, 119.217, -91.8047, -102.2036, 35.533, 35.6, -82.5667, -82.5667, -82.5667, 54.401, 136.8, 108.283, 30.933, 14.9531, -79.3833, 41.967, 123.05, 15.28, 126.163, 151.3289, -85.8825, -85.7922, 115.9839, 15.3667, 11.3075, 11.9942, -100.1514, 35.8164, 19.2, 19.1975, 12.5403, 0.46, -9.883, 149.7312, 149.7034, 1.4, 10.3, -75.5122, -121.7417, 136.8203, -78.9333, 32.3, 24.533, -111.7275, -111.8547, 7.8331, 11.2253, -73.4667, -71.95, -97.4247, 152.9278, -98.5669, 26.5, -115.2667, -134.1833, 13.6306, -58.833, 10.6806, 14.3742, -3.6314, -3.617, -3.7892, -72.7167, -122.5772, -69.5167, -72.9333, -119.1, -118.8833, -64.5333, -65.15, -102.8222, -81.8311, -112.1333, -112.1503, -89.0422, -92.0442, -55.6667, -67.7, -70.1167, -118.4667, -97.4, -97.1839, -97.0981, -86.2244, -98.32, -98.3136, -108.4664, -108.54, -108.5247, -105.8322, -105.8667, -67.7742, -90.3444, -90.3283, -85.95, -92.5644, -89.6908, -85.5447, -99.2667, -99.2833, -93.4975, -80.3333, -116.1772, -97.3211, -116.1175, -149.287, -110.4333, -117.0258, -117.5667, -100.15, -105.6786, -59.483, -92.6886, -112.5075, -107.8992, -123.3236, -94.4139, -118.9631, -100.8439, -106.0931, -122.8667, -97.0553, -143.2833, -115.0667, -120.7844, -103.2072, -110.8333, -117.395, -108.65, -108.8031, -98.9667, -121.0681, -75.4353, -122.8647, -106.55, -79.4, -94.4481, -114.7667, -107.2333, -70.2544, -121.0833, -124.0864, -84.6994, -82.9075, -82.9747, -123.5603, -122.5833, -83.95, 15.45, 14.082, 15.4333, -73.35, -73.35, -114.2206, -98.7803, -76.5542, -107.8533, -82.95, -96.0, -111.3822, -111.3847, 27.1, -98.1331, -105.5119, -63.6167, -58.967, 9.2631, -98.5331, -104.6992, -92.3619, -86.8767, -82.8436, -85.7611, -94.4561, -70.8333, -121.7, -72.3731, -87.5814, -79.8047, -85.5022, -99.3022, -85.4892, -86.6086, -84.735, -91.06, -82.3628, -77.3983, -80.3667, -85.2422, -90.45, -82.3461, -96.0983, -69.5953, -82.35, -84.65, -82.1711, -75.5761, -64.9167, -90.0867, -88.1111, -88.0981, 150.0497, 145.9719, -130.7, -121.1667, -115.5333, -106.3333, -109.4703, -110.1544, -120.5, -110.9978, -109.4519, -82.2203, -91.9997, -109.45, -99.4339, 13.4075, 13.917, 12.1792, -89.8136, -75.85, 148.1718, 5.33, -103.9333, -103.6192, -97.5667, -108.0411, -108.0822, -130.7, 34.8164, -75.4, 146.0695, 8.3331, -92.7489, -3.02, -120.9389, -123.9089, -105.8667, 24.05, 136.4631, 18.117, 25.03, 13.1353, 11.072, -82.8892, 16.5592, 12.3256, -110.1333, -72.0389, -113.5472, -120.4833, -113.8694, 144.3345, -118.8, -71.0425, -92.5931, -95.1461, 147.0772, 147.0742, 45.6831, 13.933, 9.1889, 12.86, -82.0894, -92.7594, -101.405, -36.5, -80.2167, -107.7, -103.38, -3.1742, -103.38, 160.05, -106.97, -104.8253, -54.25, 103.27, -58.613, 144.7961, -105.97, -105.96, -85.92, -101.283, -69.755, 116.33, 111.667, 105.07, 113.483, -75.15, -39.0, -39.54, -45.2, 9.4, -46.46, -70.756, -90.5275, -65.349, 15.56, 46.1, 7.467, -80.2167, 6.777, -105.2833, -2.6, -23.933, 137.533, 110.3, 100.75, -82.59, -4.419, 110.083, -62.317, 106.733, 26.717, 73.55, -89.1228, 149.5329, -145.4589, -108.4667, -94.3608, -85.3828, 73.45, 43.83, 39.467, 77.317, 148.1039, 148.1075, 29.1, -90.8842, 17.7083, 150.254, 150.2687, -106.9672, -112.5833, -106.3292, -109.8667, -86.3297, -86.3294, -97.1667, 51.85, -65.9922, 37.279, -8.01, 68.83, 115.67, 17.4697, -62.85, -113.3, 18.37, 13.8, -135.7089, 8.3553, -100.3369, -97.395, -109.3092, -94.4972, -97.4142, 8.6197, -91.0958, -79.8, -101.5053, 151.6787, 66.267, 9.1831, 9.2017, 9.2014, 136.183, 78.25, -5.667, -113.1833, 152.6414, 17.67, -106.9731, 62.35, 56.28, 38.195, 25.4281, 25.605, 135.1167, 141.7, 139.783, 141.517, -108.3247, 35.3, -96.117, -93.4019, -80.3822, -112.6167, 98.817, 33.983, 32.5, 125.7, 126.57, -107.3667, 49.6, -119.9333, 7.4903, -114.9239, -77.7333, -77.7297, -80.0667, -121.6306, 131.243, 14.14, 7.2644, 71.3, -132.6983, 34.98, 110.25, 41.683, 119.7, 106.383, 126.967, 24.7314, -135.4494, -136.3614, -135.5094, -137.5833, -117.9528, 121.17, 10.8645, 43.767, 140.75, -156.2469, 78.32, -2.075, -87.6353, -83.7217, 35.6, -117.1094, -122.4433, -78.5333, -78.5833, -63.5833, -63.5167, -63.5, 106.9, 108.517, 12.55, 11.9506, -96.9397, -26.217, 15.33, 19.63, -96.9406, -94.5889, 127.6636, 13.04, -81.25, -81.25, -81.25, 12.92, 24.1667, 9.4063, 36.75, 132.067, 137.717, 103.6, 81.133, 9.99, 9.8983, 48.533, 48.6833, 25.04, 25.0419, 9.4081, -112.2642, 127.55, 93.517, -114.1642, -98.0853, -94.0347, -87.9914, -79.9333, 142.0636, -84.5247, 148.9508, -79.7667, -79.9, -79.8833, -79.9167, 142.0644, -100.6167, -79.6922, -82.1114, 19.135, 14.7831, -90.3772, -99.3953, -0.1789, -93.2011, -81.1244, 14.99, -110.6833, 8.9667, -156.0153, -105.1333, -78.1775, -89.5358, -88.4889, -102.8667, -114.8333, -122.55, -122.5667, -119.6369, -119.6289, 120.167, 10.6, -96.9, 22.9667, 22.9517, 22.9156, 23.2517, -110.7153, -95.8897, -109.3, -80.8667, -91.3719, 9.6794, 105.85, -76.9833, -72.2856, -81.0, -77.0325, 14.85, -99.3464, -106.9833, -110.18, 69.1167, 107.033, -140.9611, 24.1439, 128.17, -123.3758, -111.4167, -111.4139, 68.73, 31.133, 126.767, -82.6428, -55.8333, -56.5167, -53.2, 10.7, -65.2667, -107.6092, -86.4622, -111.7167, -95.2875, -99.2133, -108.7964, -97.6728, -97.6542, -109.8311, -116.8675, 18.0597, 17.9331, 12.5123, -101.2567, -118.2519, -74.6333, -107.5833, -88.5244, -103.9542, -76.8703, -76.8514, -103.8842, -93.1567, -83.2808, -112.5833, -99.8033, -82.9, -121.383, 18.12, 17.0106, -102.1175, -70.3164, -88.4114, -72.6825, -72.6506, -85.2892, -97.2608, -76.6833, -129.25, -119.1111, -80.0486, -86.1808, -120.65, -82.93, 146.7683, -86.4239, -60.9833, -119.6556, -99.8758, -67.0333, 11.133, 35.5, 119.554, 2.9, -85.2875, 0.5717, -98.3836, -81.4697, -121.5517, -92.8689, -98.4272, 102.4667, -107.1958, 123.8, -90.7314, 100.15, -68.96, -75.7167, -89.3392, -118.6525, 24.2331, 175.2, 124.83, -122.25, -121.5433, -100.0833, 100.433, 24.5831, -64.7667, -90.0656, -114.5617, -65.35, -71.0603, -109.7617, -109.7633, -63.6, -63.6167, -155.2561, -96.485, -3.0281, -57.1833, 138.435, -122.9169, -83.4681, -115.95, -75.1653, -122.835, -118.6292, -118.6667, -106.7, -161.155, -107.2547, -110.8833, -101.0344, -152.0758, -115.6289, -123.165, -0.9839, -99.3169, -121.13, -99.3358, -122.115, -91.4442, 144.8545, -115.95, -115.7833, -116.0, -102.6928, -102.6944, -114.1378, -100.3486, -127.7333, -90.4542, -85.3397, -115.8086, -122.1547, -122.8731, -97.4203, -100.6197, -148.9942, 73.4, 73.717, -121.1683, -53.3833, -101.8075, -108.9558, -0.461, -61.7, -119.9, -98.6775, -110.75, -111.4261, -110.5581, -111.3392, -97.5903, -102.0383, -90.13, 108.05, 8.9808, -105.1667, 13.52, 13.67, -120.0833, -120.0167, 117.233, -120.1833, -85.6006, -121.4908, -83.7667, 8.65, 10.1331, 7.9956, 9.2342, 11.5208, 6.2589, 26.0528, 6.1044, 17.8372, 18.8167, 18.71, -83.7261, -90.59, -98.2661, -112.0017, -111.9636, 7.8931, 23.75, 4.7106, -120.4217, 10.9603, -144.1225, 26.23, 12.69, 12.77, 24.9783, 25.0708, 24.95, 24.9167, 25.0481, 31.333, 15.0853, -103.0733, 18.53, 18.55, -77.6083, -115.6333, -85.8833, -73.7167, -72.6, 1.683, 18.38, 101.6, -94.7964, -82.4492, -78.4119, -87.6456, -118.45, 34.8167, -89.3381, -97.835, -98.2003, -1.017, -116.7614, -119.5639, 111.15, 25.1831, 62.228, 145.38, 145.3869, -107.2667, -127.6333, -102.4003, -103.1086, -145.0, 8.6875, -96.9494, -125.2, 10.1717, -88.375, -98.371, -119.2636, -119.312, -119.2611, 152.1003, -107.1097, -120.8558, -90.0103, -116.0014, 151.9131, -72.6, 15.22, 10.6917, 14.75, 18.92, -138.9167, 6.5531, -100.9775, 0.333, 7.1556, 152.8817, 5.1453, 10.3717, -86.1056, 13.53, -119.7831, -102.6442, -102.6547, -110.4833, -110.4806, 114.733, 141.6316, 115.53, 115.433, 102.9, -80.2858, -111.0167, -92.8389, -109.9667, -81.3819, -89.1911, -84.7475, -98.0311, -99.43, -105.667, -134.877, -17.8889, -93.7075, -83.1983, -86.2503, -86.3131, -121.0167, -99.455, -99.4894, -74.5642, -114.4667, -88.8647, -75.65, -122.8083, -117.1667, -117.1667, -0.6417, -79.9722, -123.3794, -74.6714, -118.1, -114.1667, -82.5972, -176.167, -115.2236, 136.25, -62.62, 7.6533, -101.8683, -109.7167, -97.1094, -107.5656, -89.4919, -83.6092, -90.3339, -122.99, -6.07, -97.0664, -84.6411, -94.89, -112.8881, 25.45, 145.5249, -103.5594, -99.8278, -115.0733, -99.8297, 110.47, -155.0531, -80.75, -113.4667, 134.667, 126.333, -92.9928, -75.15, 10.57, -70.9125, 41.7, -107.1533, 8.1064, 129.55, -81.0133, 143.317, 132.467, 75.733, 130.933, -110.3878, 130.75, 60.4, -139.033, -122.7, 7.2107, 147.5, -87.2881, 147.5033, 147.3278, -99.0525, -103.1314, -103.3539, -109.1, 86.18, 85.717, 18.1664, -85.735, -93.3911, -97.4667, -148.6767, 31.03, 4.1217, 11.8775, 9.4794, 10.5167, -77.3031, 11.9092, 6.8625, -155.6667, -121.8667, 13.75, -82.1836, 15.69, 11.0117, 111.683, 9.5392, -106.0003, 170.983, 21.31, 13.8, 11.6, -128.0, -127.9833, -110.1544, -91.1269, -96.3861, -120.7736, -105.5167, -99.3803, 17.57, -115.05, -110.2, 17.44, 12.58, -76.7683, -122.5667, -130.3667, -86.0967, -86.205, 12.8658, -70.675, -132.6222, -114.5739, -121.4214, -99.8136, 25.5831, -106.1, -102.1317, -123.1833, -80.2411, -80.4211, -89.4347, 31.183, 16.82, 20.7564, 41.667, 142.05, 150.9254, -112.0122, -95.755, -76.3333, -102.3411, -53.1, 11.6975, 9.0042, -1.683, 7.3567, -116.9211, -82.8003, -93.0625, -151.6347, -151.3256, -151.2083, -151.4908, -80.3833, -80.55, 104.37, 15.95, -99.1383, -99.1742, -77.5136, -124.1069, -79.8667, -70.85, 127.8667, 114.167, 159.967, 0.767, -157.9294, -157.9992, -115.0333, -163.4081, -121.5175, 6.5731, -101.2103, -135.4278, -135.1333, -123.6714, -87.685, 5.3456, -106.0667, 41.4, -104.7386, -121.5, -121.4833, -149.6286, -60.2167, 25.0667, 120.1283, -106.2667, -77.2775, -75.8856, -93.5564, -121.4833, -121.2333, -87.5206, -123.8833, -123.9303, 42.2, -115.2, 13.67, -99.5606, -88.6325, 109.783, 11.6992, -15.227, 8.2042, 15.87, 142.29, -121.3667, -115.2278, -110.4961, -122.4003, -112.6508, -121.2, -120.5028, -111.45, -110.8617, -115.9092, 142.1731, 142.0687, 150.8567, -28.63, -95.52, -114.7561, 17.467, 59.3831, 79.933, 16.21, 16.2397, -82.8311, -79.8317, -103.4739, -114.6833, -93.0486, -93.06, -114.6694, 35.85, -84.8922, -84.6739, -67.8417, -67.7928, -90.8161, -105.6319, -129.1333, -111.9781, -88.9867, -126.6667, -95.2417, -95.1667, -95.2819, -95.5561, -95.36, -95.0833, -95.28, -95.15, -95.3667, 69.95, 91.567, -109.075, -96.2714, -97.5242, -122.3814, -113.0033, -97.0031, -113.6167, -123.3, -100.4397, -83.7667, -66.5667, -121.4219, 39.2, 15.85, 114.0, 126.75, -97.6, 115.5, 105.0, 118.15, -75.75, -77.5, -98.05, 99.95, 121.6, 110.08, -121.5833, 17.1, -98.6592, -71.4147, -102.3167, -102.4, -102.5833, -102.3167, -73.8, -121.9, -101.1772, 11.43, -98.41, -6.9492, -6.9094, -0.3264, 144.1986, -95.5381, -101.34, -103.4897, -99.65, 126.25, 102.25, 117.533, -92.78, -108.36, 22.7831, -99.35, 103.28, 102.767, -96.1, 135.083, -104.6028, 132.97, -0.3667, 126.65, -65.8167, -95.4456, -105.1167, -94.2689, -115.7833, -94.2203, -112.3006, 147.0329, 7.4844, -123.9897, 71.333, 15.1, 15.09, -114.0217, -114.0575, 107.2, 12.94, 7.2667, 147.5394, -108.3167, -117.4736, -74.1667, -88.4253, -85.4981, -117.255, -119.2206, -82.5267, -82.555, -108.2444, -107.0889, -95.5422, -93.7522, -86.7861, -111.7131, -95.5861, -79.1667, -99.505, 116.333, 6.6567, 18.1831, -100.0167, 33.7167, -90.1956, -119.5678, -98.1989, -81.5, -98.2231, -113.2072, 18.84, 102.7, -97.9125, -98.0297, -94.3675, -97.8606, 107.333, 16.45, -19.5667, 27.0, -70.3039, -101.75, -70.28, 118.8983, -83.3667, 68.417, 128.167, 6.3667, -114.1667, 28.2367, -107.2278, -107.1375, 24.8064, 107.755, 27.6331, -69.18, -75.2, -113.9886, -73.25, -44.05, -53.11, 1.3842, 136.417, 155.5831, -118.8786, 127.43, -94.8278, -115.8319, -112.0125, -111.7847, -112.9422, -112.0672, -102.2939, -107.6667, -95.515, 15.23, -122.9653, 12.86, 12.3, 92.133, 12.2117, 17.0797, -116.7067, 25.73, 86.57, 44.03, -81.8, -81.8167, -92.0, -107.6264, -103.98, 122.4, -42.18, -99.52, -99.53, -39.3, -54.467, 7.6328, 137.817, 130.699, 106.17, 100.083, -43.1667, 46.433, -81.4333, -61.7667, -61.7833, 47.283, -70.3833, -64.2, -68.9, 51.0, -3.5017, 40.333, 42.717, -69.55, 31.9, -109.81, -154.9089, 168.97, 168.23, -124.0575, -123.6853, 8.42, 8.623, 122.567, 30.9331, 30.9778, 31.0619, 4.494, -51.1, -51.05, -51.0667, 142.2164, 59.08, -118.1631, -114.1597, -81.4406, 11.7128, -47.5, 8.04, -115.5667, -101.655, -115.5786, 18.067, 18.07, 93.9, 127.28, 126.35, 136.5, 27.4181, 27.27, 28.8475, 28.3039, 28.3031, 27.4489, 27.4175, 27.7608, 28.5975, 28.6331, 27.1228, 27.4964, 126.633, 35.4333, -49.217, -118.2036, -95.7003, -94.3861, -91.8781, -89.8214, -120.2833, -120.2833, -120.3167, -106.6167, -86.2958, -86.0678, -79.1186, -87.0881, -93.6481, -114.1667, -95.2, -53.8833, -110.75, -110.6833, -83.8083, -103.65, -103.6833, -74.2692, -74.7883, -153.7, -121.5383, 48.77, -116.2153, 75.8, 33.78, 101.98, -109.35, 9.6531, -90.5, 146.1769, 11.5333, -107.2039, -60.4, 35.383, 128.17, 148.5669, 24.0169, -113.7333, 146.0345, 11.4, 18.267, -78.12, -101.9414, 7.87, -93.3981, 26.017, -154.4983, -78.0833, -78.0833, -78.0833, -133.4833, -133.4833, -133.5167, 168.333, 151.1114, 151.1121, 151.0819, -4.2231, -82.3125, -117.8214, 46.4, 9.6331, 5.767, 2.5, -95.4242, -85.0778, -91.505, -91.5431, -93.2536, -48.167, 101.1, 26.4, 152.7608, -99.0383, -68.55, -68.55, -70.1, -73.3, 55.4, -53.233, 137.1, 60.72, -101.35, -50.633, 95.467, 35.85, -41.867, 61.2667, 72.633, 123.459, -121.95, 104.35, -117.9964, -90.1892, -95.9167, -115.1219, -88.1144, -88.0842, -112.5019, -80.6667, 138.85, 75.45, -83.4833, -83.2389, -67.0525, -91.3753, -103.5333, -103.55, 68.35, 69.43, 69.52, 70.1, 70.6, 13.6331, 124.187, 141.3, 89.049, 71.25, 144.4406, 125.3167, 71.567, 111.673, 68.38, 36.154, -130.0167, 36.6, -80.6364, -81.3667, -102.35, -94.65, -111.3833, -111.3714, -111.3833, -71.8903, -109.433, -109.43, -74.75, -110.95, -93.5014, -58.9667, -71.6333, -73.1017, 32.2297, 30.55, 41.0, 29.0831, 12.083, -37.81, -40.28, -58.481, -55.983, -42.85, -41.883, -95.1919, 121.85, -76.4492, -40.11, -21.95, -41.3, -49.52, -49.21, 9.567, -88.1958, -88.9703, 25.35, -50.86, 27.4331, -106.55, 144.2995, 24.7, 60.45, -53.933, 107.3, -128.4, -140.15, 132.2333, 141.783, 131.783, -98.7, -98.0, -97.82, -92.9, -95.1, -103.73, -16.4992, 53.45, 37.3, 28.85, 27.15, 27.167, -78.55, 129.3, 79.95, 132.8939, -68.75, -70.2583, -114.6586, -98.1561, -87.9278, -77.4239, -89.6678, -83.3131, -110.7614, -113.4089, -63.8333, -81.7019, -95.2736, -90.1978, -81.3928, -81.8833, -81.5147, -81.6667, -81.65, -82.7078, -88.8456, -90.0778, -88.9167, -115.45, -84.4667, -79.6772, -108.5797, -116.0167, 17.0, -105.8, -116.0167, 68.3, -40.467, 119.1092, -3.8075, -72.0036, 82.033, -37.767, -108.02, 75.8, 70.917, 17.27, 106.9, 106.833, 129.7167, -103.1872, 122.85, -96.917, 21.567, 66.35, -71.1239, 103.7, 26.8, -86.5983, -80.4681, -79.1592, -98.6692, -98.685, -77.25, 24.8181, 24.7892, 25.33, -43.3, 54.9, 115.8794, -78.6333, 28.8, 84.27, -7.33, -8.6667, 102.335, 47.92, -115.4333, -115.4328, 90.233, 49.117, 19.68, 115.6658, 105.75, 120.9, 16.18, 57.7667, 45.4, 57.517, -82.9447, -87.3153, -118.0667, -84.4461, -117.8167, -118.0333, -118.3833, -142.0833, -51.71, -99.37, 69.05, 140.483, -100.5725, -107.7361, -72.5022, -94.7967, -95.03, -91.7108, 39.183, -94.3558, -97.7903, -94.4114, -81.4286, -83.4739, -92.1558, -92.1825, -107.8292, 131.1, 126.533, 23.733, -120.3333, -106.6872, -92.1289, 11.5842, 8.8, -111.2, -92.6642, -109.3464, -113.5167, -6.0556, 73.167, -112.1114, -114.5192, -114.4564, 150.9093, -90.3431, -2.1943, -74.0572, 35.2167, 150.8, 150.8048, 136.1442, 12.96, -93.0703, 89.161, -120.2947, -81.8333, -81.8628, -102.318, -99.9181, -114.2347, 7.8806, -96.15, 18.12, 84.083, 73.717, 114.967, 126.217, 101.82, 112.18, 111.917, 42.717, -115.6206, 5.874, 5.883, 36.833, 152.4606, 117.05, 107.45, 117.2, 82.9, 100.8, 113.07, 33.183, 67.161, -85.9833, 121.117, 101.5, 98.483, 118.1, 61.805, 130.949, -43.11, -34.867, -46.17, 73.017, 29.7267, -102.6803, -111.3228, -119.1333, -105.8833, 28.05, 28.246, -55.188, -101.7508, -118.545, -133.3, -98.4089, -112.6114, -103.4342, -81.8467, -169.5167, -78.9167, -6.483, -118.9594, -78.3011, -102.9297, -95.75, 27.383, 23.5006, 19.64, -98.81, -109.0097, -73.4333, -88.1028, 19.9894, 19.9067, 19.8753, 9.5975, 36.917, -84.3544, -67.6494, -90.6589, -90.6464, -91.8628, -82.36, -105.9, 18.93, 14.0731, -71.15, 12.55, -97.68, -110.7669, -94.5022, -106.9103, -93.6356, -106.4681, -106.9475, 13.4, -77.114, 13.96, -106.7403, 8.89, -75.423, 47.9, 23.87, -78.3, 26.0989, -65.289, -122.0056, -76.729, -75.817, -78.87, -67.076, -84.209, 31.6, 136.22, -103.13, -109.48, -85.367, -43.4, -43.35, -65.098, -102.2625, -70.158, -116.5908, -116.5925, 141.7458, 6.41, -104.97, -122.1667, -90.7483, -65.9114, -99.8045, -99.7664, -134.4111, -134.5639, -122.15, 8.0, -60.931, -67.1667, -120.4725, -119.7772, 16.9506, 16.9531, -117.9333, 43.117, -43.66, 112.9, 115.0311, 29.2378, 24.2906, 27.8881, 8.3727, 117.566, 145.8667, 142.72, 45.83, 25.6, 25.7167, 25.6783, -118.4039, 3.2203, 22.5544, -11.55, 106.65, 86.35, 101.7, 69.212, 28.467, 105.9, 137.6953, -101.5147, 29.701, -13.508, 126.567, 130.55, 8.49, 8.9942, -156.575, 36.933, -156.4286, 173.7, -156.0489, 133.696, 145.5656, 10.1, 7.7367, 10.7889, 173.267, 173.3, -158.1058, 27.6667, 27.6783, 118.383, 77.367, 34.78, -133.9, -133.66, 82.233, 41.1, 74.583, -77.1167, 23.7, 23.4503, 116.77, 22.1, 22.026, -85.5519, -85.6, 66.583, 114.165, 36.71, 121.4533, 113.967, 117.432, 20.55, -114.3114, -114.2636, 18.0797, 6.2656, -85.1728, 6.5267, 16.29, 16.29, -158.7417, 10.1467, 36.3697, 126.6453, 126.6431, 33.7, -111.2822, 70.52, 22.0, 40.7, 166.2167, 40.3, 81.28, 26.667, 41.22, -120.3333, -120.45, -120.5, -120.4333, -120.3, 99.5333, 33.8, 45.367, 62.717, -112.5367, -159.6586, -115.0333, -115.1167, 22.469, 136.633, 99.533, 32.35, 2.93, 2.933, -157.7833, 39.67, -78.8036, -109.8936, -114.7075, 37.4, 101.97, 126.6, 126.45, 43.3, 22.4669, -87.8856, -9.3, 125.97, -97.9597, -112.4383, 135.25, -94.7725, -94.5969, -94.7306, -94.5603, 95.633, -87.5, -152.17, -16.051, -156.6753, -82.4667, -82.4333, -82.45, -22.0, 1.167, 52.917, 60.133, 66.93, 111.95, 73.15, 35.1, 56.83, 56.333, 73.55, 63.85, 107.62, 33.2, 84.85, 33.6, 25.5031, 25.5019, 78.067, 83.167, 64.667, 72.9, 86.42, 22.4503, 21.5, 22.45, 80.95, 38.93, 28.883, 21.8483, 31.85, 75.517, 12.914, 14.51, 14.85, 11.2975, 8.365, -96.5167, 13.4667, -97.8756, 116.0744, 29.617, 116.7742, 43.115, 66.75, 65.717, 18.27, 138.55, -103.5428, 22.8031, 114.317, 31.133, 31.2, 25.15, 51.577, 75.983, 36.017, -151.3833, -89.9492, -116.9167, 47.4, 36.4, 9.4433, -105.0953, 33.7831, 117.6064, 117.5553, 132.2737, 85.367, 85.617, 150.3087, 19.03, 140.317, 66.27, 76.733, 10.6167, -96.2725, 22.1867, 23.0469, 23.8331, 69.0, 23.0333, 23.0339, -159.0436, 138.767, -116.6333, -106.6375, -11.4, -11.44, 35.4797, 107.62, 62.117, 49.2, 74.0, -77.8833, -94.3294, -99.0133, -155.3589, 38.8, 19.75, -67.35, 158.92, -12.22, -2.27, -72.3247, -118.9208, -102.9208, -116.7667, -22.6, -78.7167, -117.6167, 7.8808, -90.0964, 140.3556, -65.2, -65.2, 20.0167, 174.7667, 29.2, 11.08, 117.7217, -110.8, -94.4553, -103.75, -116.1222, -6.8467, -162.3, -119.3833, -119.4, -119.55, -119.4, -119.4833, -119.5667, -117.9858, -96.5333, -122.9, 34.65, -127.95, 106.85, 91.667, 86.22, 86.107, 27.7831, 27.7075, 24.6167, 24.5831, 22.5608, 22.1967, 24.5192, 24.1, -110.5328, 152.8235, 10.3364, -75.6333, -75.6333, 34.8164, -151.3228, -149.4, -151.2392, -150.3167, -110.0167, 122.433, -11.233, -6.6, -102.0975, -99.8628, -70.4697, -90.075, -119.1011, -94.3667, -94.4833, -87.8156, -120.6994, -122.2433, -122.5447, -87.4353, -102.965, -83.6061, -88.8917, -64.4833, -64.4833, -104.1108, -91.9928, -91.375, -113.6333, -91.9683, -173.77, 143.9197, 36.4167, -119.8167, -119.8167, 65.2, 56.967, 47.117, -118.4389, -109.05, -99.1081, -80.5972, -122.3667, -122.4167, 16.98, 125.883, 17.2333, -131.7117, -114.3603, -120.0569, 15.03, -89.8997, -86.5167, -87.505, -79.005, -96.25, -148.2711, -105.6167, -105.6, -81.8, -81.7522, -81.6833, -156.0589, 49.817, 70.717, 118.617, 148.1405, 148.1431, 66.8167, 30.533, 36.1331, 32.549, 44.0, 39.3, 7.083, 32.567, 102.883, 26.983, 102.833, 71.5, 48.283, 44.9667, 69.7331, 66.633, 150.8519, -94.9831, -160.4375, 1.35, 130.9558, 20.7, -2.5789, 10.1439, 30.5331, -11.4, 30.139, 40.4, 29.633, 23.3167, -157.9453, 104.532, 20.4667, 18.786, -114.4667, -160.2, -128.4833, -97.7167, 119.3, -100.945, 37.083, 37.1, -7.2667, -99.65, -81.4833, 152.2953, -97.6919, -76.39, 51.1, -106.6167, -107.8, 14.8983, 136.4125, -103.6344, 24.767, -115.9667, 128.7092, -112.3833, 129.2, -103.2986, -103.3219, -107.0, -109.1833, -12.87, -109.55, 114.167, 151.8398, 151.8456, -97.9294, 28.6, -98.1136, -114.0167, -113.9331, 137.6364, 137.5231, -101.6706, -82.5275, -71.5431, -76.6, -76.4833, -87.1153, -79.8283, -97.8497, -82.6667, -97.8167, -102.9714, -109.1022, -118.2258, 42.586, -121.1378, -107.0233, 36.259, 143.8831, 42.804, 46.699, 45.528, -123.2, -156.6294, -58.75, -79.5167, -5.31, -3.561, -111.5167, -99.3656, -77.5433, -77.5722, -115.4167, -79.2667, -102.7333, -88.6631, 108.0667, 33.5, 29.9, 29.8977, -18.0667, 24.3525, -80.0, -80.0, 27.22, -92.5747, -92.5433, -2.905, -101.3369, 49.6331, 32.2, 133.533, 71.59, 52.23, 34.167, 18.43, -81.3, 20.23, 20.34, -109.3167, -99.1228, 25.1833, -93.1981, 10.8117, 28.87, 103.97, 42.72, -81.4239, 34.75, -9.467, 131.317, 35.0, 142.583, -128.6833, -128.7, -128.6833, -128.6333, -152.3722, 24.9167, 24.8625, 24.8569, 24.1667, 25.7867, 24.8417, -111.5972, 10.2, -102.8031, -102.7233, 141.183, -164.5483, 32.7, 70.42, 106.45, 8.0681, 12.47, 9.05, 127.4, 22.7131, 14.333, -109.7, 21.0667, -124.0747, -121.75, -121.7814, -121.7242, -144.9281, -133.075, -124.9833, 8.45, 10.4814, 5.4628, 10.3306, 13.8864, 6.0956, 29.333, 14.79, -108.9167, 8.75, 12.9078, 160.8331, 16.6167, -138.2167, 16.3356, 15.25, 14.2, 14.16, 41.83, 79.183, 24.0831, 26.9, -72.8667, 8.7564, -66.7, -105.0222, -93.1008, -122.4172, -83.9572, -83.9858, 15.8897, 135.217, 34.2, 7.6, 29.9, 13.833, 82.183, 14.9, 127.92, 133.55, 80.5, 75.7, 46.55, -111.9883, 77.4667, -152.4856, 12.5331, 12.65, -113.9653, 138.55, 127.3, 50.97, 128.62, 47.65, 117.159, 70.95, 69.2, 20.3556, 22.2519, 23.1281, 22.9331, -86.1758, 136.433, 82.367, 69.383, 2.65, 23.7717, 23.75, 93.367, -14.967, 49.08, 22.6, 13.84, 16.3097, 7.1583, 6.9717, -113.05, 38.7, 25.033, 73.65, 82.8831, 158.73, 82.75, -140.2, -140.1833, 33.9, 89.283, 28.633, 137.033, 87.283, 9.65, 10.146, -122.7064, 33.2, 128.0, 9.1908, 32.4, 32.562, 34.07, 39.15, 72.75, 145.5956, 24.07, -111.8842, -115.9336, -116.05, -116.0667, 20.8, -81.5833, 8.8317, 20.7667, 166.0, -5.557, 153.97, 30.2, 86.133, 28.083, 134.4833, 23.06, 142.85, 21.1883, 21.1, 13.5, 11.4883, 88.68, -89.5797, 15.081, 21.2167, 48.9, 162.9533, 34.25, 15.47, 15.439, 32.667, 40.85, 32.067, 16.15, 116.217, 75.85, 116.051, 43.15, 12.0092, 27.1881, 27.0517, 26.9528, 26.9617, 26.9667, 46.7167, -0.167, -162.8, -162.6333, -65.0, -65.0, 164.283, -52.75, -5.467, 26.8133, 26.9442, 32.883, 30.45, 141.7483, 114.1667, 28.7, -157.57, 35.8, 21.83, 57.117, 84.0, 75.783, 46.57, 99.05, 100.05, 100.8025, -113.7667, 20.9331, 4.9859, 20.7, 17.77, 16.17, 15.883, 86.8, 31.6, 40.2, 39.15, 35.45, 92.75, 79.233, 37.03, 43.8, 57.7831, 52.98, 45.167, 108.75, 135.3, 13.8539, 33.433, -106.3681, 14.1331, 80.033, 134.4, 9.89, -113.8933, 14.15, 14.08, 21.3208, 21.1731, 14.1, 22.33, 33.4, 17.9897, 11.3219, 27.23, 57.983, 40.567, 12.2, 12.7256, 27.77, 10.4175, 21.35, 23.1425, 14.5, 33.22, 14.5056, 8.875, 9.0106, 9.4975, 8.7742, 9.3225, 9.6217, 2.317, 118.717, 98.8667, 101.55, 103.1333, 124.78, 103.22, 103.2, 16.085, 110.333, 54.65, 23.3, 12.17, -89.8, -115.15, 29.4739, 138.6783, 10.2369, 20.4167, -155.3011, -156.3211, -156.3561, 133.3027, 12.45, 33.1, 69.75, 63.283, 139.383, 130.699, -1.591, 126.8, 49.9, 12.1528, 66.083, 29.0, 20.75, 20.7506, 11.9019, 127.47, -116.4167, 26.533, 58.933, 102.683, 102.9, 126.6222, 128.7353, 128.71, 9.6933, 120.92, 27.8081, 27.6831, 27.9081, 123.667, 123.7, -149.6114, 37.7, 77.283, 82.95, 134.633, 25.383, 132.33, 22.5, 65.4, 68.7831, 147.88, 124.5222, 78.067, -103.45, 36.1667, 23.43, 80.367, 23.3767, 27.3, 144.433, 55.4, 66.55, 125.25, 63.6167, 21.03, 29.967, 42.6, 140.75, 46.05, -68.4167, -77.75, 29.3192, 29.2258, 29.1553, 26.65, 47.966, 87.2, 5.9133, 18.02, 17.73, 10.1277, 10.8795, 167.7333, 167.7333, 126.9167, 29.833, 115.7611, 145.0638, 135.5552, 140.9286, -115.6, 13.76, 135.733, 111.9667, 33.31, 12.417, 36.333, 76.567, 23.02, 94.5, 65.5, 86.0, 69.6994, -73.35, -66.7, -73.4333, -71.2333, 23.817, -13.217, -12.3, -63.367, -64.833, -69.55, 124.55, -74.3333, -113.75, -113.75, -122.7189, -89.4153, -69.12, -117.8831, -72.4, -71.1167, -78.2833, -72.1667, -63.2833, -67.5667, -112.0167, -117.25, -70.8667, -72.9167, -71.75, -121.2967, 21.03, -108.8347, -68.7833, 29.75, 152.7161, -113.2167, 27.23, 147.0, -92.065, -86.03, -85.4336, -85.3203, -86.9028, -86.9369, -91.9875, -50.33, -114.6147, 2.89, -79.2167, -72.3, 7.85, -118.0119, -85.4122, -107.3736, -117.7814, -57.771, -119.0644, 74.333, 7.8289, 7.8333, 71.8667, 25.6342, -121.5833, 20.867, 22.35, 130.6358, -67.0722, -27.1, -27.3217, -103.7575, 21.13, -178.8, -78.2333, -95.1519, -110.4333, -110.6167, -81.9219, -82.0136, -71.4647, -92.6208, -109.98, 147.9961, -111.3208, -111.8125, -120.3678, -79.5667, -111.8333, -86.2692, -105.1206, -88.4981, -101.0489, -81.7144, -104.25, -117.1883, -92.7681, 146.3707, -93.2158, -107.3147, -82.5942, -79.7297, -85.205, -100.9167, -124.05, -118.6, 145.9124, -105.5833, -95.4322, -95.5275, -88.4347, -105.4706, -105.3553, 118.4647, 118.4625, -114.3667, -114.3603, -105.8167, -99.1442, 147.7975, -116.2167, -63.4833, -104.3753, -88.8967, -152.3106, -95.3247, -73.985, -91.173, -99.4603, -122.0047, -120.6392, 146.1772, -146.6789, -95.8864, -82.9508, -114.65, 141.2652, -88.0594, -95.9572, -110.3986, -101.2492, -55.1333, -117.6333, 167.8, -102.6306, -70.35, -94.3147, -102.6881, 10.246, -45.31, -95.3153, -74.9447, -71.0833, 140.5175, -101.9456, 16.25, -106.6642, 22.4, 25.25, -115.4855, -115.4, -115.5231, -93.9508, -93.9019, 99.517, -98.1847, 99.0333, -156.9486, -156.9203, 99.933, 100.12, 99.13, -82.6072, -71.5725, -76.2742, -82.6333, -90.7889, -76.2944, -85.8261, -82.6572, -118.2117, 115.33, -84.7283, 10.55, -108.7261, -76.4333, 10.9167, -121.9614, 17.87, 12.3, 8.5225, -73.2333, -133.05, -133.0667, 1.35, -98.3447, 18.17, -101.7167, 18.7, -107.0167, 13.06, -76.35, -122.5333, -124.4533, -124.25, 5.31, -98.55, -101.5603, 16.69, 105.97, 106.767, 48.817, 17.66, -87.9333, -84.5789, -74.4653, -13.6003, 103.883, 121.55, 120.533, -88.7594, 103.9667, -83.3075, 26.1431, -76.4933, -86.7297, 28.5656, 28.1542, 28.2117, -73.4333, -105.8667, -105.6069, -105.6747, 122.967, 7.5167, -99.4983, -97.7106, 22.45, 33.6331, -99.0994, 133.2138, 80.25, -109.2667, -61.1, -121.7136, 15.5944, 16.8994, -105.25, -101.85, -69.667, -103.2153, -56.3, -105.42, -92.6, -115.93, -59.1, -117.4389, -93.55, -70.917, -105.11, -60.583, -15.3892, -120.9242, -91.6, -122.0669, -115.1333, -115.1633, -105.1419, -115.0333, -115.1847, -105.2131, 20.27, 35.77, -79.0167, 9.7153, -120.3533, -114.5806, 22.233, 147.2144, 147.2033, 147.1222, -117.6989, -89.1236, -77.2139, -76.9003, -116.0333, -123.575, -82.0219, -71.6667, -79.4664, 6.1992, -71.1, -121.5011, -121.33, -112.0067, -113.0389, -112.1472, 122.4236, 144.7566, -96.4861, 16.826, -95.2514, -71.1658, -87.3508, -77.7928, -74.6692, -87.6056, -95.2117, -71.1239, -124.1333, -98.4572, -98.4172, 112.833, 16.41, 20.7, 23.5167, -149.0364, -92.42, -70.9167, -110.195, -100.15, -105.4, -101.68, -71.65, -91.97, 6.8, -79.367, -91.2528, -105.15, -72.7167, -57.85, -103.62, -97.32, -118.0747, -118.0167, -73.6833, -73.6833, -77.7, -98.88, -96.8769, -104.1669, -85.0317, -108.72, -90.9686, -122.255, -98.3992, -103.5439, -103.4775, -103.5122, -107.96, -74.7667, -70.15, -117.0233, -87.924, -74.9333, -77.6167, -98.2928, -97.53, -17.755, -102.75, -120.1875, -110.4167, -110.3, -102.03, -91.77, -57.895, -77.0, -70.0333, -70.0333, -112.08, -65.6, -109.55, -66.817, -1.15, 30.17, -105.2667, -105.2667, -109.2664, -79.2167, -55.6667, -71.2, -71.3, -97.43, 166.2222, -92.03, -106.5975, -72.7833, -72.7833, -87.8667, -101.78, -93.88, -70.53, -113.2686, -57.8667, -103.35, -122.6886, -103.743, -109.5333, -109.5, -3.7589, -113.35, -106.3169, -92.9158, 114.0967, -94.9189, -120.675, -119.6167, -119.55, 17.5331, -86.3181, -82.0383, -92.6936, -76.4667, -72.3047, -76.9667, 8.95, -1.4381, -94.2228, -99.4317, -1.55, -1.535, -81.8097, -93.2397, -111.6022, -94.3358, 5.7517, -119.1194, 123.733, 11.45, 12.5133, 138.4219, 6.8667, 10.317, 120.7031, 12.45, 12.2414, 14.58, -86.2892, -106.2889, 11.7022, 15.02, -92.2047, 28.333, 5.5194, -113.4333, 19.9575, -102.1575, 145.4594, -122.2208, -119.0264, -107.6592, -119.95, -41.383, 16.5, -107.5167, 93.383, 159.383, 132.617, 11.93, -110.6003, 8.0358, 9.5283, -71.8167, -81.5378, -84.2622, 10.8856, 114.88, 138.8071, 11.4878, 8.2317, -92.5947, -98.9439, -118.7192, 121.3303, 121.3186, -93.6453, 9.412, -5.6492, -101.3658, -118.9358, 28.7, -103.517, 28.05, 134.3, -104.6333, -103.0822, -1.1831, 14.2, 8.3733, 79.5, 22.35, 21.95, 3.089, 15.27, 45.767, 16.5331, -68.3833, -74.05, -70.25, 31.58, -53.9, -112.8, -112.8, -112.8, -112.7667, -70.0, 118.9, -174.45, -2.868, 8.1275, 10.2744, 65.7167, -111.8653, -102.3758, 30.28, -75.1389, -76.8786, -80.4042, -86.8086, -77.1708, -70.2167, -117.0156, -117.0167, -77.5692, -109.4578, -93.5675, -110.6667, -97.0136, -90.0517, -88.3903, -80.2597, -79.4386, -93.855, -84.6058, -90.4006, -61.003, 0.195, -96.1458, -61.6, 91.133, 92.47, 107.8, 114.48, 112.38, 146.6672, -115.5392, -115.2239, -115.3181, -100.9294, 15.017, -85.533, -94.795, -74.74, -90.8944, 9.45, 35.233, 3.67, 26.167, 14.217, 12.4342, -91.8831, -110.9667, 25.317, 30.0492, 12.8, 21.0167, 19.683, -111.3133, 147.9722, 10.345, -159.3683, -159.3405, 100.467, 100.17, -121.5333, 7.6778, 14.09, -121.9333, -121.9167, 16.44, 33.781, -110.8, -106.5333, -112.5928, 33.0497, -84.0267, -84.1294, -59.95, 8.0614, -110.2736, -67.8833, -79.7594, 25.2333, -83.03, -103.7158, -99.56, 100.217, 172.47, -77.6928, -89.3381, -81.3289, -98.13, -121.2683, -96.7475, -112.6547, -96.7025, 168.383, -112.0794, -113.7125, -122.85, 14.1203, 8.7814, -87.8408, 7.0481, 26.7, 119.4, -103.4986, -107.0542, -119.0545, -105.1833, -97.6386, -78.7333, -78.7333, -118.5658, -80.425, 7.317, 111.617, -15.15, -71.3667, -40.0667, 107.4, 126.917, 15.5331, -100.2306, -1.25, 118.067, 118.35, 14.18, 14.286, -123.2333, 29.6144, 29.6142, 29.6717, 8.3953, -100.2675, -103.7667, -103.8833, -85.6292, -9.15, -81.7844, -97.6928, 15.3, 111.1, 119.92, 153.2628, 143.3437, 6.5681, -116.45, 8.4125, 100.267, -94.5347, -112.3631, 150.1498, 140.33, -102.3447, -93.7214, -115.8806, -111.8167, -107.4358, -109.0167, -130.2333, -114.9, -108.9444, -74.2261, -94.3694, -74.8686, -74.8667, -113.85, -108.2, -122.2167, -81.415, -134.6497, -124.5167, -66.0667, -92.2619, -92.15, -92.2389, -112.3069, -78.8125, -109.75, 30.267, 109.4, -81.15, -148.7217, -121.7692, -121.8136, -121.8144, 150.9128, -130.9167, -64.9333, -64.7667, -82.965, -91.68, -88.1897, 25.817, -110.5589, -94.9256, -110.4408, -85.3364, 17.0008, 10.31, 119.48, -107.9333, 31.233, 14.5169, 14.48, 13.95, 13.23, 13.88, 11.93, 12.6, -98.6542, 0.595, -110.0667, -109.6667, -110.0667, -111.6433, -119.3667, -87.7958, 15.1783, 8.7875, 143.3047, -78.6814, -78.6333, -93.9489, -77.4336, -118.7325, -102.6361, -102.6586, -115.1872, -121.2878, 35.617, 101.733, 13.28, -81.9947, -82.3939, -95.7883, -114.4833, -93.95, -86.3878, -86.35, -111.8914, 153.1947, -120.8167, -111.8564, -111.8033, -2.3308, -52.6667, -121.9031, 24.0525, 8.24, 9.6108, -79.2, 9.0631, 130.449, -114.5833, 23.25, -110.5022, -98.08, 1.25, 14.73, 20.217, -120.4514, 101.25, -81.15, -84.0769, -0.1833, -81.15, -81.3706, -83.5097, -51.183, -51.133, -108.1833, -111.4333, -121.9667, 142.2991, 120.32, -121.812, -105.0736, 144.2769, 144.2769, -75.1333, -64.2333, -101.4956, 5.09, -122.9164, -94.7117, -94.65, -78.545, 117.0, 106.75, -2.67, -118.1464, -124.0378, -74.0028, -92.5064, -119.1017, -70.1983, -113.4, -53.8167, -116.2175, -89.1389, -80.05, -94.8892, -63.55, -74.7789, -112.5167, 7.7469, -115.7, 143.2469, -107.8333, -85.3444, -110.7167, -122.76, -110.1333, -109.1, 21.4528, 100.617, 7.8206, -108.6531, 159.079, -111.333, -78.8825, 89.367, 29.37, 151.4595, -102.4, -111.8625, -122.675, -106.7667, -121.1167, -116.1878, -115.9667, -104.3333, -114.2667, -106.3214, -122.1472, -89.65, -118.2353, -118.3889, -120.8667, -121.0531, -120.9297, -75.826, -121.9592, -121.9428, -106.7611, 147.433, -119.7833, -99.63, 3.763, -7.9031, -78.0061, -60.0, -73.0167, -89.0711, -85.7667, -82.3914, -85.6636, -85.7392, -85.6444, -98.9681, -0.006, -58.9833, 32.6, -77.3833, 21.32, 24.7006, -88.8314, -105.085, -105.9, -108.4042, -118.4767, -118.5692, -98.0256, 26.4478, 35.033, -87.4178, -71.3636, -115.5964, -60.75, -63.2333, -93.2469, -111.9167, 1.7268, -115.6186, -75.4825, 146.7856, 146.7883, 145.5592, -80.2161, 140.5978, 19.2331, 36.317, -91.1672, -89.8222, -92.4108, 102.161, 13.8819, -101.8136, 10.719, 33.0, -113.3167, 19.65, 11.133, 146.3861, -92.4853, -81.5, 80.883, -107.15, -115.9925, -118.85, -130.6167, 75.8667, 7.4133, -86.3942, -103.3719, 7.65, -94.8942, -94.7544, 8.9667, 39.25, 167.13, -7.4558, 25.5083, -106.5678, 16.953, -109.2269, 44.5, 153.8167, 22.1192, 27.4, -97.6578, -79.025, -82.6792, 124.617, -118.95, -118.7667, -84.7753, -104.8667, -104.9333, -108.9417, 145.1517, -124.4667, -115.0167, 13.2, -97.9333, -13.2, 18.09, 106.77, 112.5, -111.25, -111.25, -84.0233, 14.4831, -78.3728, 13.25, 28.45, 111.033, 121.6, -76.05, -104.4811, -105.9333, -90.6656, -96.2022, 6.21, 6.38, 103.77, 32.7, 8.3, 105.43, -42.28, 120.55, 115.98, 23.95, 70.9, -107.5472, 18.65, 18.72, -120.9167, -98.4583, -86.3631, -79.2331, -79.2067, -76.0833, -1.993, 9.5235, 9.1503, 8.1, -101.0333, -101.0833, -101.0833, -101.0667, 26.317, -91.0986, -106.6667, 4.69, -2.9681, -62.8, -123.0736, 18.45, -98.8433, -114.0214, -76.0333, -121.5833, -121.5833, -64.6833, -2.333, 16.22, 4.5, 35.783, 20.7433, 27.3158, 107.483, 138.1786, 5.7617, 146.2711, -61.3833, 113.6, -51.072, -36.633, 113.592, -82.5167, -106.0167, 144.5569, -35.7, -35.783, -9.42, 117.6, -45.917, 114.97, 81.15, -5.7, -85.6667, 149.1794, -113.6317, 149.2169, -123.1333, -84.6167, -130.0333, 4.8, -88.5586, -83.6528, 158.937, 151.1121, 123.979, -66.9, -92.58, 145.8, 145.8, -77.9833, -114.3167, -90.7653, -108.1, -120.0378, -78.4, -120.1106, -96.7708, -83.4022, -97.45, -69.8878, -95.9203, -87.5239, -97.0925, -81.8464, -119.5, -89.3453, -111.1167, -85.3942, -89.3333, -96.1661, 98.52, 98.217, -121.0011, -121.1461, 80.183, -101.5428, -3.6781, -3.5556, -3.7892, -3.7225, -3.4503, -3.7, 69.7, -123.5239, 139.067, -109.6642, 97.833, 97.933, 98.55, -101.1, 25.548, -64.1, 150.7831, 8.933, 125.817, -64.117, -107.2333, 11.5842, -1.77, -114.3, -99.4833, 59.083, -93.2325, -72.1167, -101.1444, -67.0461, 17.3, 47.55, 46.3167, 25.43, 48.8, 55.5, -95.9675, 4.3, 13.083, 95.34, 11.98, 11.983, 44.033, 8.2117, -148.093, -56.0167, 11.2978, 137.6733, 151.5683, 135.19, 135.4, 135.333, 119.0, 40.083, 77.283, 171.4, 171.3833, 12.617, -158.1964, 39.483, -156.9661, 22.971, -156.44, 10.4402, 37.83, 39.833, 39.8, 30.0681, -59.1833, 12.87, 15.58, 15.7, 35.9, 104.97, -158.2261, 130.3, 8.614, 67.3, 18.75, 102.252, -112.2872, -4.4881, -123.5333, -118.65, 11.5292, -69.574, 38.317, 38.08, 125.08, 42.55, 18.6, -89.9894, 73.533, 15.24, -2.1617, -117.0247, -118.8447, -118.6333, -123.85, 96.95, 15.9133, 40.102, 38.55, -121.3186, -7.34, 52.73, -103.7625, 31.65, 15.2, 149.7289, 8.525, 12.2544, -75.8667, -121.7789, 20.67, 18.717, 12.98, 13.0731, -111.1833, -74.3081, 7.7356, -107.8714, -107.9556, -113.3042, -107.7286, 13.6994, -92.8364, -2.3067, 44.7, 112.867, 114.02, 9.28, -86.1481, -111.3167, -118.9617, -91.535, -12.08, -7.38, -7.5, 124.8, -86.168, 48.367, -105.9392, -60.017, 31.4, -2.275, -91.4517, -83.8167, -71.4383, -108.1833, -108.3161, 110.13, 96.1, 106.283, 7.4472, -100.9097, 41.867, 6.8019, -102.4386, 31.38, 120.8436, 115.75, -63.77, 28.583, 145.1859, 74.883, -134.967, 90.85, 0.37, 130.6834, 0.467, 151.2107, -99.5017, 112.67, -96.5814, -96.6778, -61.278, -68.4, 120.9833, 121.0, 134.2263, 27.43, -86.2939, -86.2514, -85.8, -87.6522, -75.9833, -76.0, -76.0, 116.145, -98.2039, -94.0211, -107.0167, -150.638, 79.92, -78.4833, -96.4433, 8.514, -80.2003, -117.65, -80.4647, -108.4786, -157.8025, -70.5333, 14.55, -71.9833, -92.5789, -82.6167, -72.1856, -82.5178, 1.3667, -75.7, -111.6306, 10.79, 25.4914, 21.4831, 163.683, -93.4817, -110.6833, -110.4667, -113.6667, -104.317, -121.5767, -121.5803, 31.3, -67.2333, -95.7836, -85.8353, -109.4667, -123.9367, -109.4667, -122.5, 32.573, -68.733, -90.7489, -49.138, -4.77, -67.65, -67.7, 7.08, -103.2717, -81.0517, 29.57, -70.8644, 119.7497, 119.7497, 29.28, -89.9664, 163.6833, -93.6522, -117.25, -62.158, -75.4283, 115.9797, 40.73, 145.4253, -88.6078, 10.8483, -104.0722, -61.1, -140.85, 0.55, -90.7664, -85.1839, 15.32, -45.37, 15.7, -42.82, -119.3833, -112.0303, 26.35, 13.15, 13.82, -97.1642, -81.4328, -73.1333, 5.2267, 87.75, -40.53, 165.117, 16.883, 12.2839, -87.6236, -51.91, -79.3875, -97.2567, -85.6586, -83.1333, -82.0289, -88.8981, -79.0333, -121.9667, -121.9486, 37.867, -87.2314, -83.0636, -97.0753, -54.033, -119.9869, -119.6047, -60.6, 37.6, 28.133, 13.66, -122.1242, 5.8875, 170.4167, -8.4558, 133.6201, -119.9, -96.8581, 55.183, 11.9333, 28.22, 153.0903, -109.2333, -87.5483, -87.3794, -97.8, -8.0, 144.7094, 138.0684, 138.0637, -90.1158, 66.8194, 37.983, -88.7533, 5.3967, 151.1176, -94.3508, -82.6658, -92.6394, -93.2225, -95.7908, -92.9244, -92.9175, -83.94, -92.9097, -90.1333, -90.1875, -106.6667, -101.7386, -122.1142, 10.8831, -77.9844, -110.3378, -86.453, -79.865, -101.6333, -85.9167, 77.5, -88.8636, 16.82, -107.4336, -55.8333, -55.8333, 143.732, 152.7156, -101.5167, -112.2275, -121.5853, -96.6364, -83.3669, -115.95, 151.75, -94.8342, -57.1, -57.583, 120.367, 123.62, 0.3, -104.82, -73.6, 11.35, 11.33, 59.633, -111.65, 31.717, 58.9, 84.217, -99.2306, -99.2939, -93.1953, -89.6511, -93.3269, -117.9942, -71.3933, -112.9981, -74.8458, -132.1333, -82.0167, 30.867, 115.633, -100.825, 115.6, -77.8, -77.8167, -95.9733, -13.25, -74.7172, -13.25, -67.4667, -149.2542, 116.267, -75.74, -90.3483, -114.2722, -76.2689, -78.8617, -97.8725, -95.03, -98.817, 133.067, 137.967, 132.783, -83.1667, 13.71, -88.3544, -88.2803, 153.217, 179.75, -54.91, -63.153, 23.417, -155.5767, -102.6125, -90.0597, -109.45, 62.867, -101.2922, -104.5867, -86.35, -108.0947, 146.5972, 146.6239, 7.2306, -88.6406, -71.4425, -123.3167, -83.1819, -72.035, -135.8667, -135.1833, -81.4167, -83.7872, 10.65, -142.5844, -120.4275, 128.82, 67.2, -110.11, -105.0, 97.033, 30.65, 33.467, 23.617, -95.7831, -98.2511, -98.2539, 136.076, -120.35, -120.25, -116.1017, -102.2217, -112.1931, -142.9961, -103.3644, -79.4667, 132.9791, -107.2847, -79.5683, -90.4708, -98.1236, -100.5914, -109.2658, -99.5333, -119.2, -117.72, -84.0678, -94.1167, -108.4447, -95.8675, -114.7733, -155.6103, -66.1167, -97.4011, -123.6011, -74.6, -128.7167, -58.1167, -103.8333, -79.8603, -121.8667, -122.1164, -148.9692, -151.6397, -96.5914, -96.5903, -88.5425, -122.3667, -122.2833, -120.2167, -123.1339, 166.7333, -119.2978, -97.6097, -137.5167, -80.6803, -73.5833, -116.1047, -122.1383, -107.2833, -100.4444, -81.8561, -100.6203, -94.9669, -117.8656, -101.3686, -88.2533, -79.3667, -98.6422, -101.2767, -100.8072, -100.5922, -97.2392, -122.2558, -85.7811, -123.1622, -109.8589, -98.1817, -76.6089, -118.4247, -100.345, -121.4667, -113.3167, -108.5167, -108.5167, -90.8853, -80.1667, -96.4808, -116.5169, -116.0767, -76.6992, -0.242, -105.4333, 98.7, 2.733, -75.58, -90.3439, -122.87, -122.8722, -106.2061, -100.2228, -110.7167, -110.7167, -104.4514, -98.58, -98.5528, -99.2497, 115.8075, 3.963, -103.5264, -108.0333, 34.433, 118.5372, -107.9167, -96.9772, -107.8853, 9.1414, 95.833, 10.3769, 8.16, 116.12, -5.5333, 144.8321, -80.6439, 144.97, -80.6539, 55.967, -104.6, -104.6, -2.9553, -100.9833, 35.367, -90.6417, -98.5825, 135.5, -54.183, -54.183, -103.625, -94.8022, 10.3481, -107.8722, 9.52, 147.1981, -95.7036, -110.05, -61.3, -100.5372, -89.8733, -92.1822, -89.9864, -89.8036, -94.2494, 124.917, 2.217, -8.036, -99.7864, 7.3167, -68.783, -68.85, -70.933, 112.433, 101.58, 110.52, 103.383, 142.4173, 139.3375, -97.5714, -91.9364, 4.2156, 13.0439, 121.0297, -105.48, 11.6992, 140.383, -120.5117, -58.067, -58.1, -58.02, -120.5128, -80.235, -77.9, -112.4333, -116.0278, -106.7422, -71.183, -89.63, -71.2, -88.7442, -88.5667, -0.675, 149.8989, 149.9017, 9.7656, -123.3972, 118.2789, -88.7167, -89.6617, -101.7089, -120.7833, -120.8, -123.9167, 27.2167, 34.633, 103.833, 23.117, 37.65, 35.58, -108.23, -108.0833, -107.7069, -108.4892, 15.55, 29.9, 9.0, 158.3064, -119.7681, 39.9, 21.7, -120.0078, 15.3, -121.1833, -121.6147, -115.0167, 12.9203, -82.0819, 118.5519, 6.1256, 96.117, -96.4497, -115.47, -109.8675, -91.8861, -99.183, 44.22, -70.24, -110.87, -100.6392, -94.8833, -80.3164, -80.4331, -80.3836, -80.2803, -98.25, 104.68, -116.2667, -118.5833, 9.1, -105.9167, -103.3, -103.4, -63.5667, -80.9047, -118.0197, -80.0333, -83.7144, -71.0186, -74.4489, -72.7167, -76.7633, -56.0833, -107.0333, -70.9211, -115.015, -121.5833, -63.1, 131.3145, 131.2988, -107.1833, -1.567, -4.73, -79.7667, -101.8333, -84.2011, -101.15, -102.0258, -79.9333, -102.1889, -79.8833, 6.9914, -82.2156, -118.7667, -177.3833, -112.8333, -106.2772, -115.4114, 25.7331, 16.11, 21.8581, 9.8031, 2.0, -120.35, 27.3, 27.21, -93.6617, -79.6, 9.1892, -71.1167, 8.7331, -95.9269, -83.6186, -88.7267, 27.8, -96.6689, -104.9619, -111.5667, 142.0867, 13.9314, -101.6192, -81.2967, -105.8825, 150.1819, 150.1844, -113.0161, -84.2867, -71.6486, -75.425, -95.1842, -83.6844, -96.8983, -113.0167, 167.9, 21.733, 2.233, 134.9078, -112.05, 147.2739, -114.3667, 3.017, -73.67, -83.2497, -111.1633, -81.9672, -98.9814, -81.9197, -76.8028, -123.2711, -79.7197, -79.9667, -75.87, -68.705, -68.6925, -80.8561, 13.574, 149.1847, -76.5667, -75.0667, -118.0825, -117.0347, -114.4667, -111.6333, -64.6667, 24.48, -85.8889, 9.2267, -87.1414, -118.4089, -87.9044, -88.0294, -87.9333, -108.0142, -118.1056, 153.59, 131.263, 153.9667, 153.967, -117.6328, -109.02, 54.017, 66.933, -152.2817, -93.2947, -119.7758, -98.9514, -78.7167, -73.6183, -95.3667, -121.6092, -107.7333, 43.1, -80.7833, -98.0603, -120.9833, -92.6167, 73.15, 73.0, -113.5003, -112.6167, -58.536, 132.5688, 6.533, 166.65, -97.7047, -93.2167, -93.2289, -99.8333, -91.8122, -99.2656, 135.15, 135.1515, -89.7322, -91.8667, -89.0339, -101.35, -101.2964, -101.2733, 103.083, 27.53, -90.2103, -66.0333, -104.5833, 91.7, 30.733, -84.1317, -65.4667, -65.4667, 113.987, 114.0, 93.017, 113.9, -113.05, -149.4075, 128.75, -64.5, 138.933, 152.833, 20.767, -100.6558, -122.3333, -100.6083, -98.4, -122.2667, -83.3833, -113.9678, -114.0911, -114.0925, -72.2, 15.05, -120.1156, -98.0244, -120.1833, -103.7008, -115.5469, -98.0333, 147.9777, 26.6, 140.467, 11.2667, -45.4167, -49.6667, -53.7167, -56.1331, 11.533, -99.2, 139.517, 125.295, 141.967, 131.083, 131.417, -105.2919, 20.35, -109.5458, -109.7542, 13.27, -92.4369, -88.2397, -88.0333, -88.0681, -100.4489, -100.4078, -113.1528, -44.01, -109.9514, 14.96, -80.4972, -107.92, -101.08, 5.9533, -113.9256, 10.9342, -120.9506, -122.0481, 30.067, 30.32, 119.7331, 112.0, 27.47, -101.5089, 6.62, 122.517, -74.155, 11.0083, 27.783, 73.35, -76.118, -118.1619, -116.0794, 29.1333, 126.383, -107.6833, 9.2881, 83.783, -1.8853, -90.5233, -99.22, 13.07, 45.85, -157.0961, 39.617, 143.35, 147.4333, 147.4167, 147.417, -102.9122, -113.1667, -67.9442, 32.883, -79.9869, -101.433, -64.7833, -64.6833, 7.8167, -91.6719, 100.983, -93.9619, -80.3, 23.15, 23.2, -119.6, -90.6381, -90.7197, -83.3942, -121.9944, -80.5233, -72.0, -80.6206, -92.0319, -92.0406, -10.362, 7.8064, -86.4175, 150.2275, -122.4717, 7.48, -71.9233, -79.2667, -85.8417, -118.1053, -74.9333, -119.6481, -77.917, -37.06, 4.7381, -89.3169, -114.1706, -99.83, 11.0083, -85.265, -121.9103, -121.8453, -121.8556, -100.2, -100.3, -43.867, -95.7461, -56.2, -100.4389, -111.8381, -54.083, 9.0667, -57.65, 10.7, -111.5, -119.8, -39.29, 16.4, 15.95, -106.1869, -86.2181, -86.4075, -80.3861, -74.265, -90.1058, -83.6975, -78.4494, -80.4, -62.4667, -109.3075, -84.8275, -83.7833, -91.7556, -70.5833, -103.4667, 151.1247, -84.6139, -111.3, -73.55, -84.4333, -73.5667, -73.5833, -74.0333, -73.75, -73.4167, 6.9, -75.8583, -107.8792, -97.2017, -107.8975, 2.43, 3.5831, -71.4167, -78.7333, -0.508, -68.2167, -75.55, -65.7333, -72.2333, -104.8675, -110.2333, -110.12, 11.2733, -111.5792, 30.17, 140.2102, 140.1956, -113.4167, -118.6706, 116.0072, 145.0964, -104.9292, -78.9664, -74.9697, -115.6667, -81.0872, -90.5097, -96.7478, -105.7517, -110.7169, -113.95, -105.5667, -105.5333, -92.7578, -149.4261, -115.0167, -101.6667, -80.6, -80.6, -80.6, -80.65, -4.2, -8.16, -93.3147, 14.59, -38.36, 148.0308, -110.5889, 116.0089, 116.0247, 14.51, 16.39, -98.0833, -98.0833, 149.8458, 149.8383, -76.7358, -101.183, -132.1333, -117.6333, -81.6728, -79.9164, -79.9697, -91.1761, -114.2667, -117.2833, -111.6722, -106.045, 9.8358, 141.167, -111.4425, -111.445, -111.5167, -117.5019, 139.1837, -120.7236, 37.667, 44.318, -111.5872, -5.6156, -5.6, 41.867, -1.6858, -92.7672, -75.1833, -89.9744, -89.4614, -83.3325, -83.4028, -72.6236, -75.7264, -72.6144, -74.5, -95.8744, -120.8447, -41.9, -41.217, -121.4833, 13.65, 142.7744, -102.7586, -138.8, 150.1532, 146.4747, -107.8225, -109.8833, -89.4117, 37.6167, -116.9558, -119.3192, -119.0667, 37.333, 142.5, 37.5667, 37.5167, -125.0, 18.111, -103.9439, -116.2333, 8.1792, -113.8925, -113.9667, -117.6833, 0.117, 129.917, 17.8, -102.3164, 22.9831, 11.02, 11.057, -119.3333, -119.35, -87.2989, -83.7492, 16.067, -80.755, -94.8233, -95.4508, -106.2606, -94.1542, -77.3, -115.2333, -115.5167, 138.8509, 117.6361, 146.2747, 147.1633, 150.2741, 146.4394, 140.4197, -66.9333, -123.0, 138.9469, 138.9273, 31.583, 31.05, 126.1025, -120.2469, -80.75, 140.7739, 140.7833, -121.5667, -122.0447, 147.1342, 139.4875, 139.4817, -112.8167, 138.7088, -113.1989, 117.8503, 117.8425, 147.1428, 148.0908, -58.447, 145.5419, -119.2333, -127.05, -122.4353, -119.1783, -63.8333, 147.235, -120.6511, 13.95, -89.0158, -121.95, -120.1678, 39.033, 36.0, 44.667, 29.167, 85.317, 31.85, -93.3508, -93.4706, -81.8033, -115.9653, -111.7222, -92.2617, -115.7119, -92.3939, -115.8667, -81.5992, -105.8225, -92.0978, -110.3306, 31.7, 40.183, -121.5403, -80.6508, -94.2428, -87.7578, -72.9033, -89.9842, -115.645, -82.8183, -121.9303, -105.5997, 152.7717, -121.6425, -74.8417, -121.7167, -117.1667, -93.5878, -116.4203, -80.5333, -83.4411, -104.0233, -72.8153, -82.2711, -77.9053, -95.0056, -87.2019, -91.5647, -84.7697, -119.8833, -103.4578, -122.3081, -122.3328, -122.3156, -83.9333, -72.0792, -95.2236, -84.3369, -87.8956, -88.8533, -122.3867, -93.8789, -71.2994, -77.8883, -118.0711, -121.6278, -123.3258, 114.9, 69.15, -0.883, 129.6, -107.4444, 149.6149, 149.5956, 40.283, -124.8, -116.55, -116.5503, -121.9356, -121.7333, -112.2722, 8.867, 11.5442, 11.8092, 7.5914, -105.0, 7.7, 28.367, 58.5, 90.43, 118.687, 12.5, 25.9831, 59.02, 104.717, 79.65, 30.4, -108.75, -85.0756, -102.7328, -102.7783, -110.2708, -112.9667, -113.3944, -115.8114, -115.645, -101.0458, -81.3264, -101.3364, 115.5142, 7.6392, -7.3667, 71.419, 25.0539, -3.983, 70.03, 14.125, -125.7667, -85.3936, -111.6392, 157.267, -99.6158, -88.0769, 148.9899, 120.7578, 11.783, -86.6625, 9.4842, 14.45, 23.44, 23.6803, 24.0369, 24.1203, 43.8, 115.9561, -1.1692, -1.2294, -0.8031, -127.8, -100.7078, -65.5167, 100.167, -77.0803, -93.7019, -86.3728, 73.967, 33.0497, 140.983, 134.183, -83.9683, -115.3597, -88.3083, 139.2592, 9.5717, 150.8363, 16.2, 3.321, 153.3809, 41.517, -91.0728, -87.5997, 143.5036, -53.9833, -113.7939, -86.2367, -95.3339, -95.3614, -79.3, 33.8, 23.583, 21.0681, -79.6586, 119.91, 32.217, 141.217, -121.1944, -99.17, -85.6333, 64.717, 32.917, -82.3161, 97.4, 12.486, 7.2762, -3.07, 77.07, -125.6, 31.0, -97.7833, -78.8219, -78.9333, -109.7311, 151.35, 175.77, 73.5831, 55.5, 43.9, 142.08, 156.68, 46.667, -179.3669, 144.7297, 58.733, -169.8, -175.8, 68.55, -110.0617, 33.6, 34.0167, 20.65, 13.12, -8.833, -155.5842, -0.3, 22.0331, 21.9464, -142.9967, 135.496, 178.7, 157.7, -94.6431, 177.45, 72.67, 146.726, -84.1667, 138.2, 129.866, 127.967, 8.7192, 124.88, 136.967, 79.05, 92.067, 92.27, 47.417, 16.967, 125.528, 127.683, 34.7167, -81.9197, 21.53, -61.6833, -81.5667, -3.821, 36.75, 36.817, 158.967, 108.43, 104.783, 102.083, 100.167, 99.95, -115.1833, 36.09, 36.067, -117.8, -117.8167, 43.633, 10.98, 71.583, 152.9392, 11.2003, 127.87, -107.41, 127.083, -116.5753, 125.383, 39.283, 127.42, 106.1667, 100.767, -123.8667, -123.95, 151.9939, 115.917, 116.65, 106.083, 6.21, -86.05, 177.5, 102.7167, -84.6167, 118.9, 108.217, 118.0, -1.6, -1.611, -70.0608, 176.133, 112.58, 112.7, -76.9667, 81.95, -122.2847, -122.2647, -81.7158, -81.7753, 105.95, -84.1144, -99.7692, -64.25, 135.833, 140.7402, 140.727, 146.3161, -119.5667, 114.15, 113.73, 101.8167, 150.8689, -7.283, 118.3956, 53.0331, 35.83, 150.1358, 149.7552, 146.5592, 117.1797, 28.05, 17.3883, 76.0, -71.45, -71.4736, -93.8583, -89.3586, -83.2392, -86.6892, 71.93, -77.467, 14.69, -129.0333, -106.6, -35.2, -35.25, -114.8333, -61.8167, -61.8, -91.3408, -93.0956, 1.48, -76.97, 20.93, 21.05, 20.97, -109.9772, 178.559, -65.9, -4.0103, -107.6214, -96.6881, 13.11, 68.39, 25.38, -104.12, 129.5, 129.55, 28.3, 91.017, 71.367, 27.73, 15.03, 15.445, -86.9653, -95.8867, -90.0814, 21.77, 5.7506, -114.6189, -99.5667, -99.4667, 39.75, 22.55, -110.7761, 105.05, -90.535, 44.419, 134.5, 8.6314, 136.15, 79.983, 173.2, -117.3, -117.2, -117.4, 30.98, -7.267, -1.85, -103.5097, 145.583, -149.0717, 88.82, 125.233, -110.0511, -94.36, 89.07, -111.8319, -65.7833, 136.1174, 119.62, 116.533, 150.0847, 9.1217, -74.955, -99.91, 11.65, 13.306, 8.6808, 11.21, 6.95, 9.2731, 11.133, 13.4967, 8.9108, 9.4064, -8.25, 9.9803, 7.3089, 7.2303, -68.133, 12.8083, 10.6014, 11.8653, 8.1414, 7.4281, 9.0167, -121.0008, -112.5, -94.3736, 141.87, 41.967, 34.7, -88.7, -122.0325, -82.4625, -74.1694, -75.7514, -82.4128, -89.2667, -81.6236, -85.5033, -104.1886, -69.5367, 29.92, 151.7985, 151.707, -74.2219, 118.84, -103.4275, -83.4289, -121.2419, -118.5939, 0.05, -81.4997, -104.2575, -97.0036, 119.7314, -121.0178, 119.7989, -84.8178, -91.2744, -81.2192, -99.3333, -72.1811, -72.1911, -117.0475, -83.2008, -117.8803, -76.493, -77.1294, -71.35, -71.2833, -97.3431, -88.1828, -74.7592, -93.0297, -80.9, -88.1183, -89.0817, -2.7864, -62.8333, -1.2158, -70.9333, -70.9583, -77.0481, -91.0578, -98.1189, -74.4364, -65.2667, -65.3333, -80.3614, -85.3953, -53.2167, -121.9667, -119.6828, 77.117, 77.2, -117.3667, -102.8692, -109.95, -92.7558, -81.6333, -63.35, -95.895, -92.3122, -113.2897, -72.9333, -76.2108, -76.0717, -93.3792, -91.8839, -91.8839, -82.2156, -88.7189, -94.9392, -89.5325, -116.2933, -120.5333, -120.4864, -90.0167, -90.1303, -90.2511, -90.0289, -90.0833, -81.4317, -81.4236, 174.183, -103.8461, -103.8678, -65.8, -77.3833, -91.3672, -101.4897, -94.4897, -86.1, -73.9692, -73.7622, -73.8803, -71.42, -116.243, -114.4833, -96.9578, 13.567, 135.5726, 109.2, 141.6367, 141.6486, -79.0833, -78.9436, -78.9453, -79.05, -79.1333, 2.13, 1.091, 7.2, -86.4928, -128.9667, -56.98, 89.667, -72.6167, -72.65, 33.35, -67.15, 8.8931, 6.4242, 11.9064, 9.9653, 7.3364, 9.2242, 7.1492, 34.683, 139.05, 22.5, 19.02, 19.03, 139.5, 31.9831, 29.8, 140.7164, 43.383, 45.45, 165.98, 34.45, 18.95, 4.4067, -93.1594, -99.65, -81.4928, -71.65, -151.6655, 121.0, -98.0467, -9.35, -104.0167, -104.0, -104.0, 21.9, -124.65, 18.133, -169.92, 179.5, 24.9667, -97.05, -105.55, -97.7675, -113.1522, 109.55, 99.0331, 138.2164, 34.4, 47.783, 60.067, 43.117, 31.9, 44.0, 60.8694, -12.1, 40.2, 118.333, 9.93, -158.7042, 131.65, -110.9681, 143.13, 105.807, -113.95, -105.0, 49.95, -86.2492, -165.44, -75.0833, 102.7167, 136.4926, 29.97, 146.0, 145.9719, -126.6167, 130.017, 151.5766, 151.5759, 8.4, -116.05, 7.1525, 7.1056, 11.0058, 10.5492, 5.9025, 21.8842, 12.6445, -73.2208, -97.4855, -76.1922, 167.939, -97.4353, -76.2833, -77.0075, -88.95, -72.55, -72.5333, 141.0672, -76.788, -126.8, -126.8, -126.75, 15.67, -84.0603, -111.6325, 16.1497, 16.12, 121.7794, 19.48, 19.38, 129.9167, 116.6586, -109.0133, -110.0, -72.6567, -72.6167, -105.0133, -0.417, -117.8667, -118.525, -141.9292, -93.2253, -73.1708, -108.25, -108.25, -79.4167, -124.2333, -124.2436, -71.1383, -105.25, -122.0167, -119.5047, -113.7667, -119.5097, -71.7333, -106.3667, -53.6667, -117.2, 94.117, -115.1164, -109.8389, -107.15, -98.7747, -60.6667, -89.2417, -123.2833, -100.7494, -100.6694, -147.3253, -120.5306, 135.8784, -114.8333, -71.6303, -85.5997, -81.1494, -99.8361, -117.25, -99.9386, -71.1667, -154.3333, -82.6167, -111.0519, -97.85, -97.8, -97.8486, -75.5197, -72.0642, 1.283, -108.2864, -71.1736, -117.5667, -123.4667, -71.0833, -70.4167, -74.05, -74.9833, -72.3167, -68.8, -75.6333, -70.4, -1.25, -17.033, -17.05, -15.93, -7.5833, -7.583, 166.03, 166.4333, 166.45, 3.794, 24.95, -66.3, 12.2917, 13.65, 33.367, 27.267, 14.5, 31.25, 19.85, 90.681, 25.85, 27.633, 86.883, 11.833, 106.65, 82.9, 48.1, 15.2, 48.8, 72.9494, -95.6436, 150.545, 150.5353, 20.7, 54.75, -108.5583, -107.95, -60.883, -75.417, -151.0017, -175.2, -171.917, 59.617, 130.8976, 150.229, -104.7833, 65.683, 66.1, 6.9506, 6.8703, 139.0047, 139.0056, 24.6567, 11.0567, 11.2553, 9.3269, 41.2, -51.75, 80.767, -85.6753, 24.883, 72.9, 36.97, -109.8081, 12.54, 94.47, 21.7333, 147.1961, -116.9903, 34.733, 11.9331, -73.9808, -74.1167, -113.2667, -123.05, -123.0833, -122.9667, -122.7517, -64.2667, -98.6564, -100.4175, -97.9667, -98.0919, 151.7413, -95.3844, -85.9833, -79.4, -122.2208, -122.2642, -122.2208, -122.1447, -113.8981, -100.9447, -90.5133, -87.1706, -100.6333, -98.0333, -122.4433, -123.2333, -79.7, -79.6333, -112.3342, -111.7517, -118.2594, -111.7553, -116.795, -81.1508, -122.85, -121.9833, -118.7017, -84.2375, -84.2486, -114.4714, -81.0331, 147.3711, -96.717, 12.783, 11.0272, -100.5342, -82.2167, -92.7739, 8.5742, 11.5539, 10.2767, 12.4381, -55.51, 143.217, 49.65, 131.083, 26.5, 26.0331, 5.5553, -74.1, -82.0778, -105.0608, -81.6214, -76.0333, -73.6269, -117.395, -75.1239, 5.955, -121.7167, -103.425, -120.3333, -120.4264, -81.2833, -99.7833, 7.1792, 23.9331, -83.3056, -88.5036, -99.7633, -87.955, -86.4667, -93.38, -75.9872, -76.05, -121.9639, 28.0, 10.33, -93.8061, 30.63, -118.6967, -102.3867, 72.967, -7.57, -7.567, -0.95, -103.2372, -91.9131, 133.0581, 14.4831, 8.7864, 7.9264, 141.717, -101.7206, -75.4442, -111.9667, -112.0114, -112.0283, 16.17, -138.3, -102.7458, 129.067, 82.95, 37.479, 55.383, -156.0442, -114.3158, 7.9933, 35.633, 143.2164, 135.5, 20.8, 9.5183, 131.617, -119.2275, -104.42, 143.15, -74.0667, -119.45, -93.9167, 133.917, 20.967, -80.8653, -98.315, -96.3033, 128.423, -97.6469, -97.3833, -97.6006, -95.85, -96.025, -113.9667, 8.0506, 45.45, 28.9, 66.05, 52.583, -116.2828, 151.28, -113.8161, -121.4333, 16.44, 17.1, 16.3997, -94.7603, -94.8897, -94.7392, 8.2525, 6.7567, -114.1, -107.9667, -139.8333, -139.8333, -144.9833, -110.8328, -74.9839, -104.5561, -86.5631, -85.5161, 120.4167, 112.4331, 93.23, 70.883, -122.8064, -44.81, -119.5667, -60.85, -119.55, -113.3667, -89.8297, -89.3506, -94.9297, -92.2422, -111.6539, -98.7664, -114.5739, -88.0817, 32.983, 115.583, 10.033, 6.3756, 146.3233, 20.4167, -102.1356, 42.0, 16.12, -122.9033, 138.217, -96.0233, -95.8992, -119.5333, -119.5167, -119.5167, 147.6008, 147.598, 91.717, 160.53, -76.85, -76.7833, 73.3831, 142.967, 140.9, -71.0333, -84.2233, -96.1258, 6.5331, 6.5392, -110.4667, 38.1167, -84.5308, -86.4692, 118.4889, 10.0519, 86.133, -100.1447, -123.615, -110.85, -178.717, 115.1117, 115.1092, -117.65, -117.6003, -116.9717, -117.0128, -89.2075, -90.94, 135.4456, -155.2833, -86.5519, 2.9206, -126.0, -117.1756, 48.3, -85.4492, -106.38, -106.3153, -155.8747, 17.9667, 9.6667, 7.2267, -110.7344, 21.9, -103.2683, -64.329, 4.833, -80.8733, -80.8581, -80.0833, -93.7394, 149.0828, 149.127, 149.1229, -119.3, -72.2911, -0.65, 19.1667, 148.4667, 148.4589, -116.0, -112.6389, 37.9, -103.7058, -103.7219, 81.95, 15.16, 15.05, 15.27, -95.1464, -122.6047, 36.0, -111.7369, 55.1, 55.1, 147.8753, -112.8003, -124.0192, -117.4964, -79.4333, -79.4167, 25.7719, -97.1, -98.61, 9.7887, -122.1997, 9.6014, -81.3331, -81.325, -81.2436, -123.5317, 1.75, 99.8, 105.83, 2.359, -105.3667, -74.05, 19.0, -106.0925, -66.4667, -78.6167, -68.6744, -117.8389, -121.5531, 22.1, -6.5, 30.417, 18.38, 6.1575, -92.8106, 135.517, 13.98, -93.7036, -93.7503, -97.55, 13.1, -83.4, 72.8, -78.8667, -78.8333, 139.383, -102.3464, -88.5581, -88.5569, 18.6331, -92.6467, -95.2725, 12.86, 16.41, -106.5, 10.7206, 91.867, 25.933, -97.5969, -73.05, -119.4333, -119.4333, -119.45, 163.17, 33.117, -96.4833, 11.933, 18.98, 18.99, 10.2219, 12.65, 18.3, 10.8667, 164.17, 167.98, 110.8, 162.483, 90.62, 82.2, -174.62, 137.87, 94.2833, 112.933, 57.9667, 40.68, 82.2, 79.7, 75.7667, 76.98, -178.4833, -94.43, -69.238, -76.4933, 75.25, 141.017, 19.8763, -119.0461, -107.8408, -123.9239, 107.983, -95.2808, -75.7167, -88.9106, -75.7167, -75.6667, -75.6667, -95.5464, -106.25, -137.05, -92.4467, -1.512, -2.43, 167.2406, 5.413, -6.9, 29.33, 6.14, -5.05, 16.05, -68.2, -1.93, 24.8864, 25.3506, 25.3756, 25.4831, 25.3967, 7.117, -107.6686, -109.6436, -7.8603, -40.04, 146.7106, -107.05, 142.3158, -152.5011, -113.0564, 13.07, 19.2803, 22.8, 22.85, -107.6333, -114.4581, -99.59, 23.65, -5.8728, 28.783, 136.2, -93.2308, -87.1183, -120.245, -118.5506, -90.5545, -80.9333, -76.6667, -109.0167, -84.18, -117.2467, -117.2333, -102.1167, 17.12, -1.5833, -1.27, -78.6167, -99.6522, -78.6108, -112.1333, -119.1753, -119.2069, -119.1375, -119.3667, -110.5167, -110.4667, 8.2043, -125.1333, 10.4325, 44.0, -93.8167, -93.8683, -93.1261, 156.483, 10.3689, -101.2061, -100.4933, -57.9, -119.3111, 18.96, -102.33, -125.1, -98.75, -122.4717, -121.6744, -103.4819, 100.35, 33.42, 30.22, 9.9267, -98.78, 11.8803, -69.229, -56.06, 140.4864, -100.2989, -88.7719, -100.2981, -88.55, 10.1381, 31.85, 32.4831, 11.0331, -111.4483, -80.3728, -111.4478, -107.0169, -170.7136, 89.08, 22.34, -115.1217, -116.0561, -116.1017, -81.2956, -75.8217, -82.7883, -99.85, -120.5403, -81.3667, -4.4297, 23.3928, 18.8667, 105.167, -96.2536, 21.1, -81.6606, 14.92, 104.68, 13.3514, -100.98, -87.6225, -95.6039, 19.7667, -108.3506, -155.2922, 24.2106, 21.61, 21.62, -132.05, 46.883, 2.7, -48.3, 2.7367, 2.6264, -118.0939, -118.0836, -36.7, -64.1, -106.35, 146.9886, -75.6167, 144.0758, -121.8514, -149.0992, -149.0917, -68.233, 38.3, -78.2644, -116.5097, -116.5053, -116.84, -73.185, -122.1403, 40.0, 119.73, 79.3, 65.7, -100.9736, -1.65, -1.6364, -89.0867, -85.6606, -85.6828, -117.0878, -116.1925, -105.6667, -101.4533, -101.5575, 25.633, -83.9614, 106.13, -65.7167, -65.7167, -112.4386, -101.3897, 64.133, 116.3308, -120.7658, 11.97, -103.2061, -94.8778, -86.4858, -107.6236, -37.43, 71.12, 17.4667, -149.58, 32.41, 81.5, 117.6692, 117.7494, -46.867, 70.083, -121.6239, -121.7167, -110.35, -117.5478, -108.9833, 138.6281, -90.4978, 21.7028, 21.3708, 2.617, -51.183, -60.483, 174.983, 138.2864, -114.9161, 119.5811, -74.6167, -111.8219, 29.4639, -56.73, -95.5586, 2.3367, -88.2958, 2.45, -117.6833, -87.6672, 22.83, -106.0667, -121.5894, -114.2897, -81.5572, -81.4392, -103.2667, -104.6567, -122.2781, -109.9167, -114.1708, 148.2428, 148.1639, -120.4319, 69.383, -65.0667, -111.5083, -106.5833, -120.9167, -90.4506, -87.6803, -95.0678, -107.8667, -118.9425, -97.75, -113.35, -111.6167, 10.315, -116.9442, -41.783, -41.75, -112.8292, -81.3181, 151.0181, -102.17, -82.3475, -111.8, -64.3333, -80.05, 11.6908, -79.6339, -95.2892, -95.5042, -88.12, 133.017, -113.8858, -118.1447, -103.7408, 44.7, -88.4781, -88.5319, -119.1167, -105.13, -68.883, -57.152, -56.517, -108.92, -83.18, -120.6856, -120.6283, -101.5333, 13.47, 13.4167, -44.96, -117.65, -52.4, 11.0, 11.7808, -77.267, 29.2457, -103.9167, -73.0014, 24.82, 151.5919, -106.8528, 76.467, -120.925, 85.1, -37.267, 21.7333, 11.47, 101.1333, -68.4975, -92.1186, -122.8667, -76.4167, -76.4167, -0.42, -124.0833, -124.0833, -84.5919, -119.9972, -41.133, -38.217, -97.2814, -113.7622, 39.25, -78.0319, -108.6942, 21.183, 76.933, 10.8281, -96.3472, -96.1558, -88.9781, -145.4983, -145.5014, -88.1417, 6.95, -116.9311, 117.6836, -108.95, -58.033, -72.24, -111.3447, -111.3028, -111.6333, 40.9, 77.633, -60.45, -70.9833, -100.05, -117.45, -119.7167, -120.0, -119.7333, 148.1902, -117.8969, -109.8378, 116.0189, -103.3833, -99.0897, 151.2443, -121.9333, -85.4333, -121.9833, 20.3, 57.1, -103.5, -105.6886, 18.2, 18.23, 15.729, -105.4739, -80.381, -55.8333, -55.833, 166.5, -8.65, -61.9, -114.4167, 167.217, -89.7994, -61.55, 134.2667, 27.92, -81.2744, 27.2219, 23.9669, -84.7928, -101.8667, -101.9, -89.7167, -135.45, -137.3667, -52.41, -121.2506, 10.883, 40.533, 116.0433, -74.6828, -122.7333, -97.2417, -77.25, 100.277, -123.3, -118.8528, -118.6264, -118.7964, 81.9, 67.6, 119.5, 122.067, -7.55, -3.2258, -108.2333, -66.7333, -77.0628, -77.1833, -77.0564, -115.8008, -158.05, 150.6783, -87.3167, -87.1869, -67.1667, -119.5833, -119.6, -102.5897, 45.02, -89.5664, -89.6839, -75.133, 22.95, 9.4331, -75.8, 50.3, 38.8, 116.92, -60.55, -72.0333, -71.017, 6.3864, 56.3, 2.8731, -80.4361, -83.5742, -97.2897, -94.1106, -87.5067, -100.8239, -89.92, -90.8236, -83.5736, -95.4097, -103.1736, 115.9, 115.9764, 115.8728, 115.8667, 26.3306, -89.1072, 12.5, -73.57, 30.85, 86.22, 12.91, 14.2, 71.515, -36.76, -122.6078, -101.26, -77.3167, -77.3167, -77.25, -77.4333, -78.3667, -78.4, -78.3167, -78.3167, -78.3, -71.95, -79.1361, -132.9372, -98.0097, -87.2658, 19.7, -70.5667, -70.05, -84.9767, -109.885, -106.7108, -82.1667, -40.483, 158.5833, 69.15, 158.65, 108.867, 34.2667, 60.77, -99.5333, 170.33, 10.8608, 8.7419, 9.2878, 31.12, -112.0947, -105.85, 108.1, 100.8658, 99.9, 101.15, 100.0667, -89.1303, -75.2311, -74.8178, -75.0111, -75.1728, 46.352, 25.5, 8.4425, -73.0833, -78.2161, -78.0667, -113.3, -101.6011, -88.308, -104.4936, -99.3186, -99.3106, -110.9167, -81.9167, -80.0272, 100.267, 104.844, -75.5011, -112.0825, -112.0817, -112.3667, -112.0039, 100.167, 98.4, 98.317, 106.633, 103.967, 9.73, 10.5164, 7.7, -61.35, -98.25, -114.0667, -105.14, -111.4017, -89.7083, -79.467, -73.086, -89.9775, -82.7189, -111.2667, -111.5833, -90.2167, -90.2167, -98.5325, -41.48, -65.7592, -77.1333, -112.7833, -78.1203, -79.9433, -100.535, 26.9831, 30.0167, -115.8006, -96.1817, -120.6422, -115.8333, -72.8333, -100.2856, -101.2667, 17.833, 22.5267, 22.5831, 30.38, 29.483, -107.8883, 30.9, 30.78, -121.4167, -62.383, 22.55, -85.1936, -121.2025, -113.3333, -80.7014, 27.17, -58.317, -109.683, -63.883, -105.15, -121.0086, -98.9, -98.9, -97.0122, -118.8253, 142.167, -119.95, 36.4, -96.0667, -96.0667, -114.0, -114.0, -114.0, -114.0, 151.2448, -109.8581, 43.383, -81.5356, -96.0, -92.0189, -104.1583, -91.9347, -112.25, -95.0833, -116.18, -111.2167, -96.8, -96.2167, -121.2561, -104.5797, -127.7333, -122.4833, -102.5183, -108.4072, -100.5667, -94.1089, -104.8078, -104.8089, -116.1189, -111.8378, 103.6833, 160.7, 117.0831, 106.667, 119.78, 104.52, 105.42, -104.0556, -71.2525, -121.1822, -102.2042, -79.9833, 26.117, -86.685, -108.4597, -114.45, 8.683, -88.1828, -96.3258, -112.7386, -44.91, -47.333, -48.967, -41.783, 23.6231, 130.4217, 7.5881, 92.267, 10.393, -76.22, -76.3, -82.6475, 78.28, -120.6831, -130.1, 21.49, 65.933, -79.9217, -80.2144, -116.4686, -90.8058, -69.9647, -122.6833, -122.6833, -122.6167, -80.6, 39.533, 24.5, 43.0, -120.8244, -120.7333, -110.1, -120.6456, -74.4025, -72.4153, -102.8281, -84.3711, -101.7022, -102.2153, -99.3808, -93.6944, 57.683, 14.1, -82.1422, -149.0833, -90.4656, -74.0914, -73.4667, -73.4667, 12.133, 37.23, -98.4772, -60.7667, -136.3667, -111.7339, -111.75, -94.2647, -75.4464, -110.9333, -110.9442, -104.5678, 26.13, 23.32, 24.5833, 19.35, -104.5164, -3.467, 24.75, -116.9544, -97.8, -56.8833, -86.3358, -87.9714, -71.65, -76.6592, -70.6961, -4.1167, -70.7294, 13.267, 16.9333, -65.067, -1.15, -94.6614, -90.9683, -112.4086, -112.5711, -63.8333, 19.283, -14.917, 19.37, 141.63, 143.8, 131.3831, 129.38, 23.5331, 158.2167, -74.8, -68.4667, -70.1167, -67.3833, -73.9167, -4.733, -3.167, 11.9, -66.4333, -60.3333, -123.2667, -96.5553, -69.7167, 149.2747, -163.05, -55.4, -66.45, 153.5456, -119.1167, -123.9833, -4.367, -82.5167, -82.5167, -77.15, 144.5361, -119.6333, 128.65, -93.5861, 78.03, 129.15, 58.0, 32.2, 135.2928, -114.2842, 26.7, -111.8406, -115.7861, -115.25, 15.7, 32.4331, 33.4797, -100.2875, -121.4464, 29.45, 98.672, 28.767, 149.2, -89.6119, -114.1906, -114.2419, 34.5664, 131.317, 71.75, 68.683, -117.5883, 23.53, 11.5156, -93.3169, -117.7658, -95.5661, -80.1406, -80.1083, -45.0, -108.0039, -97.0903, -97.1019, -66.5253, -100.931, -77.9667, -77.9667, -6.6, -25.698, -55.7, -8.6164, -88.6364, -83.4181, -83.2556, 109.3, -88.9983, -111.8986, 36.3164, 12.95, -55.5833, 73.85, -155.5583, -120.11, -79.0089, -120.5667, -89.5453, -105.15, -90.4056, -90.3247, -105.0731, -118.3833, 20.2331, -110.4667, -102.3894, -121.8, -106.6464, -81.2667, -103.15, -102.2711, 46.33, 9.484, 21.7967, 21.3792, -63.967, 143.1, -106.3333, 10.9769, -89.4342, -89.6997, -148.8389, -98.3167, -98.2833, -98.2667, -7.4167, -103.3519, -109.2056, -119.02, -135.1167, -116.4992, -91.5058, -70.25, -84.9925, -2.45, 141.4705, -122.9486, -122.6003, -70.3003, -122.6894, -86.5258, -122.4089, -122.5381, -8.6, -120.4719, 13.57, 13.6, -80.45, -51.16, -52.233, -35.43, -48.72, -48.583, -8.7, -16.35, -63.917, -82.8872, -52.8167, -124.8333, -124.9333, -124.75, -124.9333, -141.0061, -134.6447, -127.45, -154.3164, -154.32, -123.4317, -123.4983, -97.0592, 147.8333, -94.0206, 137.7144, 137.79, -59.15, 70.25, -72.4, -72.2, 92.717, -54.1667, -166.8667, -69.2622, -79.25, -79.25, -79.2667, -64.9833, 25.617, 142.2347, 8.78, -90.9719, 7.02, -127.3667, -61.3833, 118.6317, -61.5333, -82.7142, -78.2833, -82.7931, -82.4194, -97.3094, -97.3458, -74.6847, -80.4667, 135.8558, 135.8511, 152.8655, 152.911, -97.4264, -80.215, -64.3, -122.8833, 147.217, 16.87, -96.4278, -107.8331, -124.5011, -78.9667, 138.0104, -124.3333, 32.2297, -148.0672, -57.2, 30.45, 37.217, -122.7586, 168.32, -87.8636, -79.2167, -91.3856, 25.6283, 25.6589, 25.6017, -55.971, 10.067, 130.8, 83.383, -46.367, 171.2, -101.3744, -65.7333, 14.2586, 23.067, 14.2, -121.5, 27.067, -94.6264, -98.5686, 15.8, 29.017, -116.855, -116.9833, -113.5744, -90.8411, 116.55, -116.6089, 13.0639, -113.5744, -123.1286, -75.5572, -73.92, -73.8842, -78.9833, 127.73, -79.25, -105.035, -106.9883, -107.1333, -114.7111, -108.7592, -114.6881, -124.5, -124.55, -124.5, -124.0689, -102.6467, -124.0625, -73.2228, 147.2831, -54.383, 16.633, -100.5, 101.367, 99.8, 17.233, -99.7908, 14.4192, 14.45, -115.5833, -91.135, -89.7283, -85.1967, 14.99, 12.445, -61.5, -98.7281, -145.03, 11.62, 14.4, -102.65, -130.0167, -90.3017, 107.967, 133.9, 145.5517, -100.75, -102.43, -102.58, -99.31, -116.9, -112.4322, -93.3878, -112.4208, -100.1617, -60.483, -55.476, -51.383, -104.3714, -68.0089, -68.05, 11.5383, -111.8825, -80.4167, -92.0747, -2.7031, 28.183, 28.217, 28.27, 31.27, -101.8561, 119.067, 15.767, 138.0014, -110.8189, -110.7547, 25.333, 22.73, -119.9061, -116.8353, -120.6953, 18.6, 21.5667, 32.383, 12.683, -95.6292, 38.15, -75.6822, -63.109, -93.5839, -89.4519, -87.8672, -87.5906, -120.5167, -120.5167, -89.7564, -105.6667, -78.555, -122.8, -122.6833, -122.7333, -122.6833, -122.7667, 37.149, -130.45, -130.45, -130.45, -120.8081, -43.117, -119.8167, 20.73, 13.42, -98.4942, -101.0, -89.65, -97.66, 76.383, -111.0167, -111.025, -36.867, 148.555, -122.5164, 150.9127, -119.7581, -80.5167, -87.7622, -71.4325, -81.4, -70.1833, -123.2303, -111.6508, -148.3333, 24.467, -95.3297, -108.4908, 35.333, 22.7667, 78.4, 70.367, 28.3331, -1.94, -4.367, 126.7, 118.53, 27.0167, 26.9667, 79.43, 36.517, -98.2, -104.4983, -104.7169, -96.483, -67.5, -72.67, -67.5, -57.9, -57.933, -65.904, -83.8, -83.017, -73.1, -86.9, -113.55, -70.55, 118.73, -63.65, -165.8, -86.3, -86.3, 13.92, -80.7842, -87.0422, 21.9667, -122.2981, -117.1861, -117.1086, 31.02, 128.15, 29.3181, -111.3064, -84.833, -70.967, -68.363, -74.15, -68.4, -81.9983, -81.9914, -57.283, -75.37, -114.28, -122.95, -152.735, -124.1333, -97.3842, -100.2472, 28.9, 13.483, -99.1925, -79.2825, 79.833, -82.8, -155.8219, 28.1917, 28.0789, -158.1197, -122.3333, -77.9, 126.92, 69.083, 25.7092, 26.4167, 127.283, 125.8, 125.67, -118.9361, 24.73, -118.8778, -69.2167, 28.7, 46.125, 97.167, -46.05, -46.0331, 124.867, 85.55, 91.63, -64.0333, 120.333, 119.03, 118.95, 124.95, 108.617, 110.467, 123.917, 89.567, 117.85, -103.9833, -124.0333, 7.9553, -124.6167, -99.7578, 147.7937, -77.3, -114.2272, -164.65, -122.9336, -120.7833, -117.0833, -127.65, -128.0333, -71.3833, -71.3833, 11.1331, 26.867, -112.9833, -112.8, 145.5447, 35.983, 36.883, -108.4922, -106.3833, -100.186, 11.5428, -111.02, -122.5167, -122.5167, -122.5, 66.938, -126.9, 9.883, -122.9136, -124.555, 144.2578, -120.9475, -119.8525, -84.5836, -91.4281, -120.9419, -91.1919, -125.3, -70.683, -100.2389, -71.517, -109.25, 150.6792, -88.7189, -83.5692, -39.3, 109.2167, 95.783, 95.85, 146.3467, 118.867, 24.4106, 23.9, 23.5764, 152.18, -149.7283, -106.7333, 130.0161, 130.0148, -127.2167, -80.9, -123.5333, 18.2, -87.7861, -87.8136, 13.698, 105.179, -107.4167, 9.0017, 13.456, -79.2189, -117.3333, -61.55, -75.513, 43.491, 35.488, -113.2594, -99.2903, -103.7492, 109.963, 8.5731, -74.2569, -122.1333, 153.0891, -89.5472, -121.7425, -120.7167, 81.667, 11.1058, -61.5, 70.783, -161.1, -78.6839, -78.7819, -78.6989, -103.0656, -96.7439, -105.2353, 79.433, 24.37, -116.9158, -116.9081, -105.0044, -100.98, -100.95, 50.6667, -89.1022, 15.2, 14.43, -116.4975, -113.88, -111.1861, -98.2736, -117.6525, -111.65, -111.7333, 13.17, -70.6719, -70.6722, -108.7722, -108.79, 96.2, 89.233, -92.1167, 28.5692, -88.1594, 26.5164, -177.8, -177.917, -144.333, -109.2569, -77.7, -103.2828, -103.0536, -103.2108, -159.806, 31.05, 49.6, 11.4194, 55.933, 13.7, -92.8925, -98.55, 73.333, -104.4325, -104.4428, -55.3, -15.95, 21.4667, 21.3681, 21.3058, 12.98, 12.6842, 26.7781, 28.665, 29.3944, 23.633, -120.3164, -98.9214, -79.4, 120.0458, -107.1997, -93.7167, -111.2747, 36.0, -97.7833, -123.73, -104.575, -104.5833, -110.7456, -103.38, 101.3406, -78.0753, -91.7486, -74.1028, 26.5081, 34.917, 65.67, -115.4603, -71.1264, -75.9319, -75.9667, -72.9333, -105.7167, 30.82, 82.3, -34.917, -34.9233, -105.7364, -59.7, -79.2667, -104.2881, 153.1006, -122.2986, 144.5203, -98.5253, -103.3675, -117.1894, -121.1392, 119.0131, -108.7281, -104.9428, -101.7167, -113.1833, -122.2386, -95.0803, -103.9183, -122.2536, -121.9211, -117.3167, -117.8347, -103.7589, -98.5197, -113.8, -113.9, -106.2111, -115.2833, -105.5722, -105.55, -55.0167, -121.7, -120.8, -93.8, -96.2658, -95.0161, -109.2572, -124.3006, -107.7167, -95.2419, -102.5533, -111.2667, -114.7931, -105.4164, -115.3375, -105.3333, -115.3444, -93.6381, -97.45, -111.8333, -115.4272, -112.5667, -100.6608, -92.61, -90.0003, -102.05, -117.4131, -97.2947, -97.3297, 12.1031, 15.65, 10.6356, -104.5667, -104.6, -104.6667, -104.6667, -104.5833, 15.83, 7.6967, -79.6947, 6.7433, 10.5078, 4.03, -162.665, 12.4708, 43.05, 10.4, -79.2333, 13.67, 43.7, 9.4706, 11.4425, 11.367, 134.049, 9.6758, -76.7, 102.45, 32.783, 140.7494, 140.6766, -1.7331, 5.6058, -77.7381, -106.0833, -119.7711, -119.8167, -119.7956, 19.84, -87.1753, 63.183, -118.7314, -86.2167, -98.9, -44.467, -90.5803, -108.7769, -59.05, -94.9667, -94.9833, -64.6333, -101.1, -89.8772, 15.97, 15.93, 1.1789, -118.1833, -118.1833, -118.1667, -111.7892, -111.8045, -64.8667, -121.6, -99.9106, -67.367, -22.717, -21.9, -116.7494, 27.267, 7.9956, 7.383, 7.7942, 8.5833, -73.8686, -89.4508, -89.4653, 28.12, -6.2867, 145.3101, -66.117, -91.7719, -89.7322, -114.7322, -123.7931, 32.02, -102.3192, -101.7886, -114.1581, -112.0775, -117.1597, -119.2633, -81.7936, -90.3889, -122.3772, -111.81, -72.1333, -79.45, -77.3203, -123.1, -123.0833, 143.1425, 150.7794, 150.7761, -84.8778, -88.9322, -80.5206, -108.0386, 83.55, -123.3572, -118.4981, -91.8875, -80.9, -81.8833, -79.3333, -104.4478, -107.7583, -78.7492, -100.2333, 13.475, 24.6, -107.7853, -107.7492, -107.7264, 24.04, -74.3667, -116.315, -114.92, 14.45, 14.58, -134.95, 18.13, 17.92, 12.612, -68.5167, 99.667, -110.5481, 12.1, 11.4844, -42.64, -67.8, -64.083, -64.261, -43.167, -69.283, -67.749, -52.083, -98.8117, -107.2667, -50.91, -99.983, -88.9514, -89.4986, -81.7119, -83.7972, -69.1775, -107.3, 18.23, -98.9658, 22.067, 17.44, 17.4697, -118.3714, -62.9, -85.8333, -55.5433, -112.0, -72.7158, -118.2244, -117.3614, -117.3881, -117.4386, -108.3742, -108.4767, 151.1556, -92.6122, 32.18, -64.7833, -72.1667, -69.0333, -73.5, -69.55, -70.4, -78.8667, -58.6333, -71.8333, 19.9, 26.133, 13.049, 46.733, 46.7, 40.5167, 119.53, 39.9, -106.05, -114.0125, -79.9592, -77.6717, -79.9742, -122.0333, -67.1203, -116.9667, -55.8167, -81.3667, -87.7017, 19.9, -102.4333, -81.4167, -117.2064, -100.5358, -72.2667, 139.756, 40.0, -112.8414, -101.3667, -101.3833, -59.75, -97.6619, -101.55, 11.8417, -54.3, -52.367, -89.0708, -104.9042, -86.2097, -70.9175, -72.8045, -86.8936, -77.6767, -92.4917, -92.4667, -8.25, -103.7506, -92.8181, -112.25, -86.1758, -89.0931, -105.9833, 150.4775, -123.4694, -80.6333, -97.0567, -97.0464, -100.2119, -87.2269, -77.1486, -117.1142, -94.6292, -84.6919, -112.2167, -109.65, -109.7836, -103.6933, -81.7756, 117.0106, -57.8833, -57.8833, -79.8961, -114.9167, -114.9167, -114.9167, -77.6805, -80.3075, -118.6672, -110.6833, -119.6564, -81.0575, -90.5647, -114.0631, -85.2911, -107.2667, -96.1686, -136.2167, -118.85, -106.2453, -109.0528, -114.4375, -75.7222, -56.1167, -104.53, -123.3211, 80.2, 22.37, 63.417, 117.1456, 8.567, 6.2064, -82.9839, -83.8158, -112.2906, -91.2778, 2.533, 103.683, -99.5861, -91.7758, 148.6261, -90.8853, 112.8, 148.7778, 18.46, 12.5831, 148.7897, 18.46, -85.1514, -88.085, -117.6569, -85.1611, -117.8644, -78.7728, -4.6331, -115.25, -47.88, 108.53, 14.9, 21.57, 27.88, -111.1508, -111.1333, -109.9586, -65.6408, 134.5291, 11.65, 12.82, -99.7333, 11.3833, 11.3517, -117.3625, -60.785, -114.05, -100.5264, -99.3358, -95.7675, 145.5381, -91.3756, -123.3658, -123.3547, 138.8342, -93.0975, 12.1292, -93.2789, -108.0167, -107.9167, -113.4133, -80.4667, -65.35, 138.6883, 138.6763, -99.6997, -121.7355, -131.6667, -119.1842, -89.245, -88.4122, 24.9831, 32.833, 10.87, -100.8167, -117.8, -117.8, -6.333, -15.82, -128.8, -121.0722, -2.5844, -132.4333, 147.4953, 14.55, 16.43, 12.0819, 43.6, 39.417, 39.82, 12.104, -104.5083, -6.3317, -100.4611, 145.2428, -6.35, 9.3406, 123.067, 11.1, -0.3581, 10.1742, -68.117, -96.2869, 176.32, 8.9694, 4.4467, 4.3125, 115.5022, 115.5022, 8.6358, 177.05, -106.0833, -86.5044, -108.5397, -120.8894, -55.6667, -153.94, -121.4639, -121.7167, 25.95, -79.0333, -78.8333, 26.015, 25.7119, 11.05, 11.78, -79.6697, -79.0333, -105.0703, -78.8858, 136.8772, -104.1981, -76.1908, -80.5936, -66.7167, -108.7, -108.8372, -97.4769, 175.3, 81.2167, -120.1333, 145.8547, -115.493, -123.0472, -107.85, 135.9, 44.567, -110.5661, -84.5761, -99.9925, 10.2233, -105.6611, 97.83, 25.383, -70.5372, 141.633, 151.2763, 19.767, 102.72, 102.967, 28.6667, 88.167, 26.3692, 26.4, -113.7575, 7.8842, -80.3069, -67.57, 71.52, -91.75, -85.4528, -102.4794, -90.4792, -104.0939, -120.8639, -95.1428, -80.1333, -75.3667, -101.2833, -86.8883, -93.0947, -87.7319, -98.8092, -101.1711, 73.88, 63.567, 96.4, 28.2003, 26.6, -105.7106, -92.6889, -114.9911, 146.5094, -120.9833, -72.9781, -99.65, -104.9742, 66.967, 14.26, 76.183, 38.7, -104.9333, -109.2561, -109.3442, -104.9483, -123.5356, -118.3047, 10.7881, 34.68, -115.6111, 13.4, 124.883, 22.0331, 34.317, -123.4167, 7.1081, -69.3833, -0.35, -101.28, -60.0167, -60.0, -73.2, 121.833, 11.6, 57.7167, -110.9333, -111.7661, 9.0719, -125.2667, -125.25, -64.3833, -79.27, -107.3528, -121.4169, -121.495, -121.3, -121.4, -121.5897, -94.9761, -117.8208, -123.3667, -113.9667, -116.7292, 24.95, 9.35, 12.94, -109.6808, -109.6353, -9.22, 130.3, 78.75, -120.2406, -111.0, -119.2925, 46.2667, -84.0797, -62.5833, -55.8, -8.95, -106.1444, -109.23, 0.15, 133.333, 103.9, 64.217, 110.117, -111.6789, -86.8133, -91.1242, -84.1667, 5.091, -101.8067, -51.8, -122.4714, -122.8722, 5.4017, -114.0983, -109.4028, -84.5542, -72.0194, -65.8833, -82.26, -16.463, -116.5789, -86.8094, -70.8833, -98.4608, 3.2, -115.0908, 57.633, 22.23, 133.233, 139.85, 104.133, 46.633, 16.66, 14.257, 54.091, -78.7203, -5.4981, -5.6614, 16.69, -146.9767, -146.14, 13.3158, 22.5, -6.752, 66.5294, -91.5364, -86.0856, -88.9461, -73.3167, -82.9464, -123.0011, 13.26, 13.23, -106.0158, 28.1, -111.8547, -42.28, -121.6664, -121.6081, -111.4161, -79.5458, -95.183, -97.65, -100.12, -80.4822, -75.5892, -92.8106, -71.7364, -73.0992, -80.6228, -75.5103, 28.6775, 28.6781, 29.1814, 29.3667, 29.2408, 29.615, -94.8047, 25.133, -53.2833, -119.2333, -119.2833, 121.6239, -64.0333, -113.9333, -113.9008, -119.8333, -141.62, 5.0, 23.1158, 23.71, -112.1167, -65.483, -102.2667, 15.3145, -108.5364, -81.6833, -101.017, -100.98, -57.967, -54.35, -123.4833, -123.55, -81.7711, -122.0667, -120.6661, -105.0806, -111.8172, -111.9694, -111.8964, -91.5256, -110.9167, -120.2189, -81.7747, -38.517, 13.0, 10.3067, 9.5531, 11.1442, 56.2, -106.48, 36.0, 50.2167, -93.27, 66.95, 58.217, 50.175, -89.3028, 129.22, 37.717, 9.8831, 152.8861, 128.3, 26.9167, 36.3, 42.3667, -94.1011, -4.833, -2.8, -2.35, -107.15, 126.0, 47.009, -95.6603, -108.2167, 127.88, 118.067, 6.1833, 23.27, 16.29, -118.7242, 10.0042, -109.3222, -102.3917, -82.8045, -81.9833, 14.19, 18.92, 88.25, -123.3, -80.87, -106.3656, 21.7167, -116.5628, -131.8167, -131.8167, -131.8167, -107.1667, -82.7167, -82.8192, 14.7831, -81.5658, 153.2089, -63.5667, -74.0056, -100.1, -93.3211, -103.5183, -106.2833, -85.9681, -160.5167, -81.2778, -70.7803, -79.0464, -101.5492, 127.467, 112.633, 110.17, 111.62, -5.32, -68.32, 7.2028, 38.847, -59.68, 108.67, -55.6, -3.8189, -3.7994, -3.8314, -111.7794, -8.7164, -54.717, 78.9, -65.58, -65.435, -89.533, -117.8667, -117.8664, -119.6844, -119.8425, -63.2, -121.9911, -119.7222, -68.4, -61.117, -105.7833, -105.9753, -106.0889, -117.9458, -101.78, -110.1, -120.4333, -25.171, 18.35, -42.01, -120.4486, -118.4997, -119.1331, -120.5978, -110.8464, -104.6805, -122.6978, -112.283, -97.8714, -64.266, -122.7119, -88.7833, -120.0778, -117.2306, -122.8103, -70.7, -93.7572, -8.1, -64.3, -8.4106, -75.49, -88.4667, -105.21, -70.737, -109.71, -121.9333, -121.9433, -42.16, -69.883, 9.45, -116.37, -81.5206, 109.583, 68.0, -114.98, -81.7, -81.717, -100.4922, -86.5333, -98.4539, -72.44, -98.4839, -98.5833, -65.1, -98.7028, -109.88, -117.2539, -105.28, -113.93, -71.158, -110.5261, -89.617, -72.2, -116.9794, -100.87, -117.1831, -117.1333, -117.1394, -117.1667, -56.433, -109.85, -67.42, -98.15, -67.4167, -122.4269, -122.3647, -122.5053, -118.1, -122.3617, -65.633, -112.33, -60.95, -96.53, -110.03, -116.9583, -62.467, -98.48, -64.667, -103.3283, -60.75, -84.0833, -121.9033, -109.66, -112.38, -68.418, -75.167, -99.85, -68.7, -57.15, -56.3, -67.333, -83.5, -67.803, 9.725, -96.38, -66.356, -77.672, -105.4244, -121.0578, -120.6414, -120.6619, -101.0222, -100.4, -97.9494, 12.4464, -68.417, -58.383, 10.6258, -102.4, -116.9975, -57.083, -6.661, -109.73, -110.25, -105.15, -68.403, -122.5372, -113.93, -98.7167, -89.117, -2.0392, -67.0119, -1.7869, -109.2256, -47.883, -51.9833, -67.083, -38.21, -45.85, -56.71, -45.017, -44.3, -55.01, -39.85, -46.617, -46.65, -47.55, -47.11, -55.41, -81.2811, -124.1167, 141.333, 45.533, 61.2167, 18.4331, 18.33, -74.2067, 60.88, 53.73, -82.5586, 29.667, -106.8053, -73.8167, 46.0331, -121.9, 73.483, 72.667, 18.38, 18.4, 5.6505, 42.6, 125.767, 29.1, 36.5, 9.5028, 138.717, 13.13, -82.3, 26.7, 11.1144, -128.9, 73.267, -111.5436, -111.45, 129.717, -106.65, -106.6667, -106.7167, -106.6, -106.6833, 114.08, -6.083, -6.08, -121.05, 31.77, 12.7075, 18.39, 80.833, 100.983, 100.0831, -123.1333, -123.1333, -123.05, -120.6669, 22.883, -60.81, -89.055, 6.3631, -118.525, -69.25, -84.4089, -84.3333, -84.5167, -84.3572, 131.3, -104.3378, -114.6333, -79.14, -88.3214, -81.21, 104.7667, 72.9, 2.43, 2.467, 11.8667, -91.2494, 11.92, 28.9344, 28.8433, -170.4808, -81.5906, 28.18, -123.1322, -71.5333, 15.39, -90.4372, 101.733, 148.2644, -0.55, -122.8611, -73.8, 8.9681, 8.6097, 7.7125, -66.8, -66.8167, -66.8, 11.0406, 9.1542, 10.655, 4.7903, 9.5492, 10.6444, 10.2556, 6.8403, 11.7856, 12.737, 10.767, -117.15, 6.4169, 15.47, -107.05, 13.523, 7.8442, 9.1239, 10.4325, -110.0833, 9.8033, 9.6881, 12.0883, 10.7192, 11.1944, 10.2169, -116.6333, 169.983, 11.3883, 9.1431, 121.017, -112.1067, -105.4758, -111.1189, -111.2056, 150.8264, 150.8708, 150.9272, 145.2561, -122.6967, -108.0167, -111.3667, -124.1036, -109.4, -71.0833, -103.5931, -86.0536, -85.785, 147.4883, -86.2258, -122.5247, 146.2722, -108.8333, -100.9175, -75.22, -96.1456, -66.8333, -114.9217, -91.7164, -123.9236, -122.3008, -122.2553, -122.3139, -122.3, -155.5114, -69.2278, 14.45, 38.4, -115.9667, 14.779, -120.8847, 29.18, -93.1833, -93.2228, -96.1861, -111.7, -102.5167, -111.9667, -104.1, -111.7644, -122.2355, 58.284, 11.733, -111.4333, -113.5203, 10.19, 26.8, 130.3, 34.283, 9.7667, -6.15, -4.1269, 22.4908, -123.2833, 152.4167, 131.017, 114.28, -120.4994, -159.1125, 11.117, -100.0356, 27.4, -122.1914, -151.7017, 133.967, 25.217, -112.8797, -93.9367, -76.8617, -76.8642, -96.8667, -75.3222, -87.0144, -88.5994, 10.2269, -104.7333, 110.417, 80.3, 32.583, 78.35, -106.9153, -102.6597, -96.6531, 80.25, 159.98, 3.667, 53.495, 81.917, 28.1, 130.4, 140.9, -118.975, -79.925, -85.95, -40.183, 17.9033, 33.617, -77.2667, 29.683, 105.0, -106.8333, -7.95, 140.5, 27.35, 126.967, 116.894, -66.25, -66.2667, -66.25, -123.0639, 42.75, 106.133, -104.4, 72.433, 30.75, 54.517, -37.08, 51.3, 60.533, -38.96, 100.33, 100.73, 136.233, 10.7683, -73.1047, 3.6917, -44.25, 5.4, 5.324, -122.1333, 151.8875, -115.4667, -149.855, 30.62, 78.35, 93.03, 156.13, 67.65, -83.5983, -112.0, -5.8792, -6.0, 14.9, -132.3, -97.0908, -149.3483, -149.6275, -149.4167, -131.9833, -123.3642, 72.517, 55.517, 31.8, -85.8989, -99.2897, -118.95, 10.68, -96.53, 68.133, 77.267, -118.9556, 63.63, 42.67, 21.88, 68.45, 47.158, 71.8, 50.842, 66.83, 68.583, 55.0333, 91.813, 74.62, -87.2436, 21.85, -122.2333, 143.2297, -106.5667, -100.2503, 112.77, 121.467, 121.433, -115.75, 127.967, 116.3367, -8.925, 116.683, -79.6333, 115.367, 113.6, 117.43, 111.47, 27.467, 55.517, -97.9, -101.7514, -77.7211, 47.121, -122.4161, -108.4167, -119.2561, -88.6183, -2.668, -72.75, -72.7333, -78.6372, -123.6333, -76.4667, -103.35, -103.2922, -63.5, -117.0392, -87.7167, -87.8506, -77.25, -122.25, -105.2353, -111.6833, 146.3278, -101.8272, -1.4899, -64.5, 146.3219, -92.0467, -80.1833, -111.8553, -85.2, -88.7739, -85.8033, -85.7914, -86.4775, -81.5325, -95.8528, 155.88, -107.7633, -107.4333, -124.0728, -123.1, -123.1408, 174.1, -95.38, 33.4333, 122.45, 120.82, 42.9, 123.517, 114.1, 144.1303, -73.3, 27.05, -93.4333, 145.3947, -71.6833, -75.5067, -92.3914, -106.9689, -106.8383, -106.95, -123.9167, -96.6419, -116.3333, 120.25, -97.3161, 114.417, 116.033, 91.89, 133.017, 77.167, 130.933, -137.2167, 31.43, -115.9667, 140.317, 135.75, -77.5214, -108.6917, -71.2167, 121.95, -20.0, -35.5, 79.98, 80.083, 67.017, 140.217, 52.533, -106.105, -72.8689, 91.733, -166.0667, 138.4, 19.5331, -86.7944, -100.6, 75.9, 139.783, -110.5769, -0.283, -111.95, -114.4169, -114.4022, -114.2775, -110.95, -110.0075, -93.8411, -93.6667, -93.8186, -93.745, 103.9333, 26.9333, 67.8, 48.05, 69.7, -117.625, 23.3167, -110.25, -110.15, 13.35, 24.15, -95.7483, 98.9, 98.883, 111.985, 111.8, -118.9833, -2.62, -0.617, 6.089, -104.1467, -95.6431, -84.1506, -103.0214, -102.9847, 82.3, 17.29, 22.25, 7.9975, -120.3706, -105.3542, -120.6228, -110.2847, 9.1953, 9.7417, -52.6833, -108.1333, -112.0611, -123.7803, -45.595, 14.9167, -92.1975, -9.17, -112.0, 23.5383, 25.0925, 27.8025, 41.95, -122.7167, -5.683, -89.6231, 92.83, 29.6, -79.4622, 33.93, 14.38, 16.71, -83.0767, -117.5658, -101.3006, -107.6633, -122.7739, -123.3783, -116.8317, -121.1833, -119.35, -108.7167, -122.6486, -92.7458, -144.1914, -111.5842, -121.062, -118.6833, -57.519, 127.65, 100.983, 29.0, 34.1331, 33.9833, -120.5167, -120.55, 7.5969, -81.9667, -92.71, -117.7333, 13.4, 16.13, -74.231, -66.991, -110.2158, 14.36, -122.3733, 151.867, 108.25, 108.5, 103.994, 13.36, 151.1717, 18.74, 126.533, 35.167, -97.4972, 124.383, 18.0333, -114.1167, 7.3331, -96.3778, -96.3792, -96.1525, -96.7289, -91.8667, -91.9, -95.0653, -56.117, 124.333, -148.783, 89.933, 6.8485, 16.5797, 22.98, -53.6667, -97.0392, -96.9914, -121.5486, -124.4333, 100.7, -135.3647, -135.3333, 92.873, 37.0167, 37.017, 39.3, 31.5, 25.3167, 25.5, 20.0167, -42.25, 10.633, 19.0203, -135.3239, -113.7667, -122.2175, 13.45, 16.0, 16.75, 0.3489, 21.07, 15.12, 6.95, 14.32, -116.1878, 17.31, 10.9964, -121.6, 21.5, 21.65, 13.84, 123.9667, 25.133, 14.6506, 5.2667, 31.6, -114.4681, 24.417, -151.2169, -122.185, 24.55, -143.9808, -3.6508, -123.3525, -116.2833, 5.0681, -114.7833, -114.7833, -114.7833, -114.7833, 78.65, 31.017, 18.0, -94.4167, -112.9667, 28.2178, 19.15, -89.7697, -89.8222, -120.2944, -74.4167, -80.06, 26.32, 15.4, 14.6, -111.3, -107.2, 27.7, 15.1, 20.95, 133.83, -96.8814, -127.1833, -127.1833, -78.3458, -77.6667, -88.4311, -111.1, 145.0847, 145.1125, -97.1689, -94.6428, -85.7892, -119.3511, -98.7783, -113.3472, -117.1739, -119.7475, -103.1667, -82.1667, 32.0667, -119.6633, -86.5578, -111.5042, -110.6658, -116.7369, -110.6667, -110.5333, 15.7333, -121.8361, -116.1989, -111.65, -110.0839, -98.65, -110.3333, -79.995, -146.6931, -111.65, 138.2133, 138.2182, -112.7167, -77.6842, -75.3789, -119.55, -100.9111, 155.93, -40.35, -106.8831, 26.6328, 26.5831, 27.7503, 27.1894, -122.9772, -105.9864, -111.5833, 19.41, 17.1, 17.63, -77.0128, 106.656, 5.2733, 23.406, 133.9797, 7.9978, 126.57, 93.783, 56.633, 14.4281, 44.1, 128.57, 1.13, 5.3, 5.6367, -127.9333, 167.55, -121.5856, -114.8167, -111.0764, -151.0333, 138.1, 41.1, 7.0942, 95.3, -110.7117, 108.267, 84.32, -91.8317, 115.75, 9.833, 19.0831, -103.65, -78.2703, -98.6167, -84.6167, 25.583, 18.82, -74.6531, -96.5403, -123.4958, -111.3667, 10.9069, -50.8, 35.583, 68.617, 100.617, 103.567, 126.88, 12.95, 11.1842, -105.9136, -107.7667, -122.4622, -100.6503, -120.3872, -119.6, 128.3, 103.9, 82.706, 16.6, -56.8833, -73.1167, -2.4831, 10.1535, -47.43, 53.1, 131.117, -119.4, 17.55, 30.7167, 126.47, 94.52, 158.3, 111.55, 138.333, 62.1, 39.77, 28.3419, -98.2, -89.01, 24.1167, 24.15, 7.967, 5.07, -145.5167, -48.51, -100.25, -1.4084, -103.2833, 119.3281, 119.3564, -94.3411, -78.0078, 153.4054, -81.9808, -82.0167, -86.3164, -78.8808, -108.7919, -57.6167, -106.5, -105.5333, -122.0333, -123.4761, -115.745, -86.2833, -73.3031, 145.9972, -155.7533, -119.9947, -72.9736, -75.4833, -64.6833, -116.9, -97.1033, -108.8333, -112.07, -82.5936, -79.3833, -107.5286, -117.5167, -65.9, 153.087, -70.9333, 21.93, 140.3, -119.6331, -111.6044, 15.14, -92.8267, -119.7333, -155.55, -90.8164, -81.9139, -89.7167, -117.375, -85.475, -114.8833, -114.8833, -95.0597, -103.8722, -101.1847, -74.3617, -104.3, -81.3583, -86.7703, -95.1467, -76.5, -121.9333, -95.2017, -121.3167, -106.4475, -93.7158, 14.47, -107.5333, -107.55, -95.1394, -122.1667, -119.2333, 16.4331, 16.3, -117.4167, -117.3214, -117.5281, -117.6267, -121.6833, -91.8761, -95.6, -121.4892, -119.8167, -114.3667, 17.9, -80.425, -56.0833, -56.1667, -104.585, -109.275, -93.4003, -64.85, -68.1667, -94.9864, -102.7428, -89.6839, -102.6139, -86.8414, -72.5178, -83.8167, -80.6667, 148.0856, -75.2781, -99.7467, -110.6667, -114.2028, -122.4364, -114.18, -114.8111, -107.7833, -100.8761, -87.25, -110.6167, -123.1333, -123.1667, -123.15, -123.1667, -123.2833, -68.7, -119.7211, -116.25, -114.4944, -114.3333, -123.0167, -117.5683, -120.25, -68.3333, 153.72, 152.32, 117.37, 120.55, 78.2, 19.6331, 117.7, 74.833, -80.7131, -115.3928, -114.8667, 14.95, -88.6275, -99.8036, -73.5475, -120.075, -121.3372, -121.3333, 29.22, -83.9533, -110.2239, 14.88, -63.0833, -114.9342, -90.9489, -105.9439, -102.5947, -114.9272, -90.9269, -72.1, 0.23, 151.9339, -97.2222, -112.7333, -100.5986, 31.3, -97.6167, -44.51, 34.93, -82.1164, -119.0167, 15.8, -121.7175, 37.883, -91.8333, -107.4656, -123.0667, -78.4442, -80.8808, -77.8672, -106.7597, -88.7822, -16.6497, -79.0844, 5.73, -113.8833, -122.3667, 5.3831, 42.02, 18.71, 142.7908, 142.7412, -122.8142, -122.8667, -16.2553, -96.81, -119.8836, -106.8233, -84.4792, -99.9483, -91.3706, -110.5, -98.8, 26.354, -91.8872, -120.7264, 9.4592, -96.7667, -83.3061, 11.4508, 14.51, 136.9392, 17.1664, -99.4431, -87.7025, -98.2319, -58.55, 88.9, -98.2078, -103.2083, -100.9828, -77.4869, 56.0, -112.7167, -80.6283, -78.0183, -114.0911, -121.0833, -121.0914, -89.5856, -94.3425, -129.9833, -136.6833, -111.5358, -107.8, -74.2833, -66.4667, -70.9167, -73.9333, -73.9333, -72.2333, -75.3333, -73.6, -71.6167, -71.9167, -73.6833, -73.6833, -71.7833, -73.7833, -71.3167, -71.2833, -73.85, -96.6, -70.4667, -70.0167, -73.1333, -73.85, -69.9333, -68.6333, -70.5333, -73.8833, -95.0, -114.2167, 15.205, -97.5283, -92.7975, -97.095, -105.9167, -97.0894, -75.0367, -61.9833, -94.6486, -113.3939, 22.183, 9.0164, 18.05, 18.0597, 17.9514, -89.9903, -93.7722, -121.3178, -121.2258, -95.23, 10.2833, 26.7, -90.9108, -97.3333, -153.8958, -156.4333, -122.575, -77.4042, -122.5342, -97.1667, -105.8333, 13.56, 18.29, 13.73, 18.95, 16.18, 13.12, 14.2, 19.48, 12.12, 12.1253, -107.42, -95.1933, -6.32, -6.3, 23.1, -72.2286, 13.07, 9.8656, -79.25, -89.2133, -78.95, 30.7, 16.886, 145.2908, 145.3267, 7.6331, -102.0775, -81.0, -81.0, 138.8901, 138.8934, 145.7308, -100.4, 146.0461, -81.65, -81.65, -102.6003, 12.5603, -121.85, -111.2167, -120.8464, -121.1078, 134.2116, -88.1783, -99.4475, 93.0, 102.7, -94.2969, -110.9, 15.59, 10.8288, -105.1208, 21.65, -75.1906, 6.5585, -80.2397, -80.2514, -113.9167, -126.0667, -107.6333, -87.3356, 13.37, 27.57, 9.2167, 9.1825, -91.4172, 9.2008, -53.35, -22.7275, -2.133, -72.0833, -73.0911, -75.0667, -73.15, -67.0667, -99.0167, -73.3, -71.3333, -67.0833, -74.35, -74.2833, -55.6, -56.1, -69.3833, 6.0, -81.2883, -74.05, -70.8, -89.83, -73.3833, 59.617, -69.7833, -70.2167, -71.7333, -70.6167, -79.25, -79.1667, -79.25, -90.5231, -90.4281, -73.35, -90.5169, -68.05, -69.1, -94.0514, -71.7167, -73.75, -70.5167, -92.6467, -70.1333, 55.51, 4.9, -74.2, -109.9, -69.2833, -65.35, -70.9667, -74.4833, -71.5833, -71.5667, -71.6, -70.8333, -68.15, 9.4, -70.6167, -113.5611, -70.7, 148.5942, -169.565, 148.5814, -89.4894, -72.7667, -68.8167, -5.667, 148.2489, -70.8667, -70.4, -74.0, -72.9167, -84.7228, -73.5833, -85.5464, -94.6122, -73.8833, -67.1167, -70.9167, -74.05, -117.5878, -52.75, -52.8, -52.7833, -109.3792, -91.2336, -72.6833, -94.9233, -74.55, -73.1, -54.033, 149.5242, -55.3833, -109.1667, 149.5356, -67.8333, -71.5167, -111.45, -90.3833, -90.3736, -90.2706, -90.6558, -90.2333, 32.41, -70.6833, -70.8167, -71.5, -63.9, -106.5144, -113.4294, -53.5667, -163.1711, -113.4305, -72.9333, -4.9989, -73.9167, -72.4333, -72.6167, -70.65, -69.7833, -93.03, -73.0167, -93.0556, -170.2222, -60.15, -93.9656, -82.6261, 30.3, -82.6261, -82.6875, -90.6106, 8.6, -70.4167, -56.176, -71.2167, 55.483, -74.2, 15.617, -72.4167, -70.5, -73.6, -67.3833, -70.95, -71.05, -53.5833, -69.8667, -70.4833, -81.2, 5.2, -70.55, -72.3333, -70.3833, -73.8667, -72.5833, -93.6369, -100.9792, 70.217, -107.4, -65.28, -80.8, -80.8, 19.09, -74.1572, -111.1833, -76.6014, -122.6564, -106.3714, -95.6567, -111.5167, 107.133, 118.33, 35.3164, 93.283, 41.133, 131.15, 69.68, 132.7, 8.4667, 46.25, -113.9269, 8.4667, 6.417, 19.8667, 29.7331, -79.8489, -88.5497, -95.6269, 28.2, 101.549, 95.42, 102.293, 104.701, 101.445, 103.644, -122.1167, 117.412, -1.3, 63.317, -119.65, -119.65, -63.8333, -63.8333, -91.6272, -80.8939, -64.1833, -80.2325, -120.7897, -120.8167, -85.7067, -97.0625, -122.1333, -120.2456, -106.1667, -104.3811, 134.9, -80.3569, -80.4667, 34.667, -111.7275, -111.5767, -104.3567, -73.1244, -114.6833, -114.45, 17.4408, 17.35, 127.25, 8.5589, 13.12, -120.0103, -53.9333, -115.0225, -110.3853, -121.4117, -115.8167, -111.5436, -112.1417, -108.9547, 117.65, -119.6333, -117.45, 127.35, -2.329, -117.19, -111.7406, 23.5317, 23.5342, 23.7667, 29.0167, 109.404, -111.0972, -92.0167, -114.8903, -97.9842, 100.133, 124.933, 59.483, 45.6, 113.717, 112.787, 112.717, 149.0703, 72.833, 99.15, 73.5, 125.5, 103.5, -88.3786, -97.3094, -121.75, -82.1969, -122.8333, -122.85, -72.3128, -35.71, 73.983, -120.6631, 14.0217, 111.473, -127.1667, -65.5333, -74.66, -74.6447, 148.17, -119.5986, 20.67, -120.8008, -72.6833, -148.9089, -1.2496, -80.6969, 140.217, 132.1, 138.117, 22.95, 15.4667, 18.63, 11.56, 16.7167, 14.1903, 19.5056, 60.6, 42.85, 90.8, 133.1, 5.2681, 128.116, 14.6692, 16.033, 39.82, -82.3822, -1.9581, 115.7619, 13.0667, -82.385, 148.0731, -150.8722, -116.3783, 143.5416, 143.5533, 148.125, 148.1253, -99.0897, -113.8389, -101.2167, -101.2333, -111.2792, -94.3831, -113.9667, -111.9642, -93.4194, -73.0333, -54.2167, -107.6833, -107.6833, -107.7333, -131.1833, 14.2331, 114.763, -105.375, -60.05, 151.1731, -60.05, 151.2633, 151.205, 151.0646, 151.2, 20.1, 50.8667, -86.2114, 12.28, 91.88, -110.15, -110.0333, 88.367, 39.583, -96.1892, -76.15, -101.7417, -76.1039, 68.683, 71.3, 48.4, 14.617, 20.1, 16.3167, 20.2333, 16.6333, 9.1831, -110.4333, -49.917, 10.533, 92.867, 8.75, -112.1167, -111.5833, 1.5, 32.833, -7.37, 46.28, 36.619, 152.4507, 83.0, 125.0, -70.3, -113.9192, -122.4122, -122.4833, -122.5761, -104.0567, -55.983, 133.75, -69.7, 126.6, 128.65, 128.75, 127.4, 7.4167, -119.43, -170.7167, 38.95, 123.853, -46.433, -46.4, 59.6, -149.617, -94.9644, -147.55, -120.1428, -120.15, -101.7981, 5.25, -85.2239, -127.7, 121.517, 40.544, 175.8, 123.42, 51.8667, 28.1819, 113.55, 120.7, 28.25, 112.55, 117.1, 85.62, 160.4, 134.783, 98.0, 99.15, 138.25, 134.05, -145.033, 137.25, -135.5667, 5.385, -1.775, 114.83, 98.2667, -125.8667, 72.217, -84.5197, 59.55, -150.095, -86.135, -86.0811, -84.3289, -84.3556, -96.5578, 24.5831, -91.1842, -91.0278, -98.9592, 148.63, -93.5833, -0.863, -0.9, 5.4331, -95.6472, -13.683, 41.4667, 146.2564, 64.6167, -80.8242, -82.45, -82.4006, -82.5403, 23.75, 23.75, 23.7569, -97.85, -71.3, 150.8467, 150.8362, -143.3483, 23.5331, 140.3, -152.1, -152.1069, -117.7606, -43.969, -59.228, 130.983, 39.067, 11.9739, -5.9, -5.82, -75.9933, 118.15, 101.033, 105.117, 107.8, 117.333, 169.224, 12.6703, 10.0231, -98.98, 106.67, 46.95, -105.5864, -92.25, -83.9389, -81.15, 74.3831, 149.8197, -76.367, -70.76, 172.917, 172.9, 71.383, 169.9, -77.5386, 134.5694, 134.5786, 152.512, 152.4834, 106.25, 18.61, -117.3589, 102.0, -5.5975, -64.7, -95.3883, 77.82, 149.7958, -82.7539, 146.4486, 26.7331, 26.45, 13.5831, -78.7, 94.55, 69.2694, -37.6331, 111.15, 69.117, 89.917, -155.9667, -63.2333, 75.97, 140.1167, 139.867, -124.4, -103.3611, 145.2672, 42.27, -40.41, -45.567, 24.767, -71.0658, -71.0211, 62.0, 73.283, -80.5211, 70.48, -7.65, 29.5, 118.122, 117.9, 121.5833, -97.4092, -81.1717, -121.4, -115.9833, -117.5333, -106.6086, -106.6017, -114.8508, 21.133, -83.5603, 83.667, 78.73, 44.95, 44.767, 11.02, -63.406, -115.7375, 8.1197, -103.88, -96.1939, 60.517, -109.09, -64.7, 29.8, 109.15, 130.0, 130.199, 12.3444, -87.217, -118.45, -118.4222, 51.317, -97.417, -15.2275, 90.383, -107.63, -118.7497, -96.2328, -96.1778, -89.3, 27.55, 45.383, -131.3333, -112.025, 122.2281, 20.183, -153.3567, -84.2997, -107.8736, -86.7747, 105.2, 34.7831, -96.4, -62.617, 14.342, 117.157, 57.117, 147.5248, -107.817, -111.9217, -97.3183, -114.3289, -72.633, -16.3292, -16.5606, 1.333, 98.483, -71.939, -65.105, -78.524, 134.1833, -87.7886, 17.8, 13.499, -107.3653, -107.3819, 152.0172, -80.8503, -96.97, -41.517, -111.7, -105.75, -104.843, 40.4, -42.817, -42.817, -42.97, 35.1, -103.4061, 67.2694, 12.983, 15.0, -120.4333, 136.6, 25.667, 118.67, -128.5833, -87.1, -87.1, -128.6167, -79.5469, -53.9667, -53.9833, -96.2672, -87.3, -87.3089, -87.4081, 133.6377, -105.3022, -90.0342, -105.4953, -1.1167, -132.7333, -132.7333, 0.983, 33.583, -97.42, -74.0614, 29.583, 12.5581, -59.3167, -124.2333, -5.33, 72.4, 153.0408, 153.0403, -124.5167, -94.0772, -94.0075, 151.1681, -118.4508, 27.73, -97.35, -98.82, 92.783, 149.1192, 23.2667, 24.533, 27.4, 104.65, 8.683, 150.5709, 105.783, 143.815, 143.8197, -111.5333, 103.6833, 100.8, -81.85, -92.1942, -102.7972, -115.817, -108.2036, -108.2167, -108.6964, 28.37, 22.95, 23.0, -71.35, 115.0197, -107.0931, -121.2047, -121.1661, -101.25, -101.1, -120.9447, -90.7747, -96.1833, -96.1667, -112.4264, 76.95, 76.95, 7.05, -84.3367, -87.7347, -83.8611, -122.6097, -109.7167, -95.6314, -97.8667, -115.3594, -97.8667, -119.5333, 98.62, -108.2333, -108.1472, -95.2475, -80.4833, -86.6708, -3.95, 148.2859, 148.304, -121.6333, -113.2, -122.07, 119.1514, -85.6386, -118.8619, -99.1897, -68.8333, -110.5667, 54.025, -120.9833, -89.3167, -89.3333, -89.2833, 142.21, 8.22, 117.167, 119.42, 105.75, 78.233, -74.4167, -111.0878, 142.0567, 142.0098, 148.9422, -123.9022, -11.433, -11.43, -106.5536, -83.1667, -83.4767, -120.4992, -64.0667, 40.083, -88.17, 33.6, 87.7, 128.9197, -98.5294, 1.45, -123.8519, -123.8031, -80.7333, 26.95, -78.7167, 130.4808, -109.1833, -101.0764, 0.276, 21.25, -81.3833, -81.3833, -121.3583, 142.7164, -111.7075, -111.6167, 132.3826, -8.167, -75.95, 87.08, -121.4667, -167.9167, -102.9181, -77.1419, -79.4433, -91.1269, -118.3667, -86.1086, 19.7831, 19.721, -6.869, 12.3556, 10.63, 78.717, 9.452, -89.4667, 88.32, -80.8158, -79.6931, -71.2092, 137.05, -111.85, 4.05, 113.943, 12.4313, 89.317, 72.2, -98.65, -131.95, -125.2333, 49.4, 62.6, 68.25, 23.933, -75.2225, -83.3319, 145.6004, -130.0667, -110.22, 8.0003, -112.75, -125.7667, 84.4, 85.917, -110.05, 30.3494, 24.1669, -143.0372, 36.567, -122.4497, -122.4, 75.283, 131.13, 72.867, 134.567, 139.767, -143.3467, -105.1833, -4.0492, -92.5806, -93.5653, -83.5333, -83.8014, -122.8167, -83.4764, -83.4667, 73.783, 43.733, 120.8, 82.08, -99.683, 141.55, 35.8, -3.0, -110.0686, 126.3, 109.75, -59.2333, -108.8, 135.87, 84.9167, -74.2167, 14.47, -112.1167, 117.7703, -119.4242, 109.78, 100.93, 100.65, 128.733, 122.267, -109.57, -102.2333, -112.86, -117.0903, -145.1703, -111.6333, -112.3217, 145.5014, 141.8008, 96.1, 151.9317, -119.51, -95.6303, -95.6639, -95.6261, -126.1667, 14.4, 59.2167, 10.88, 7.733, 7.7, 19.71, -106.0581, 24.2744, -79.4, -79.3667, -79.4, -79.2667, -79.4, -79.55, -95.9333, -79.6333, -79.2333, -79.1833, -79.4667, 31.63, 16.28, -118.3411, -3.45, -103.4333, -103.411, -107.1814, -49.73, -0.7106, -104.1564, -104.2236, -104.1528, 13.01, -6.767, 19.5006, 0.4914, 41.6, 18.5833, 8.7917, 13.0708, 98.2, 98.3, 34.0, -134.89, -102.8, 134.233, 42.75, -0.186, -117.85, 6.13, 5.9333, 0.7, 20.05, -76.4431, -106.6833, -92.2783, -110.4203, -100.3908, -111.5378, -83.7781, -108.9, 146.7661, -94.1819, -115.9167, -76.5667, 137.2, 134.82, 8.1, 34.0, 39.72, -95.6308, -121.3467, -121.5828, 21.338, -109.3683, -114.3031, -133.5, -9.6889, 10.6, 10.6167, 99.617, 147.9489, -89.5167, -81.3039, 12.488, -107.2333, 2.0167, 12.6292, 10.8914, -85.55, -85.5825, -112.8667, -121.9333, -108.3833, -54.383, -65.266, -112.1636, -91.4378, 11.1, -93.6086, -111.9128, -77.5333, -101.0611, -74.8158, -77.5667, -60.33, -109.2, -51.7, -105.9725, 15.23, -110.95, -116.5886, 12.7689, -101.6961, -101.7758, -111.4747, 6.6467, 6.6592, 13.75, -119.305, -105.2333, -29.3167, -104.4869, -104.5567, -104.3378, -60.883, -68.4833, -122.8045, -115.4333, -122.7947, -130.8833, -110.5833, 35.8, 22.4, -92.2575, 13.15, 13.18, -51.38, -38.133, 77.0, -113.2167, 113.1331, 136.567, 56.2, -69.1167, -72.5167, -72.6167, 61.5994, 13.3, 2.383, 19.0, 18.9281, 18.9131, -117.3908, 10.4533, -112.0811, 12.5408, -103.9006, -120.3167, 126.1485, -122.3886, -109.6667, -122.575, -115.6278, -121.2333, -85.0728, -85.9722, -115.9061, 82.946, -115.8833, -95.0881, -73.6833, 11.64, 33.7997, -120.2, -120.173, -79.03, -66.0164, 151.85, -93.4136, -63.2667, -99.8617, -107.2317, -107.2681, -82.2517, -100.9583, 12.2719, 10.6692, 101.467, 30.53, 21.883, 30.35, 25.8, 23.9, 105.317, 136.517, 136.067, 134.1, 134.017, -64.918, -57.821, 132.75, 39.1, 69.4, -149.483, -129.2167, -74.3386, -111.1961, -110.9442, -110.9553, -110.8333, -111.0053, -110.9536, -103.6867, -49.72, -106.3, 149.0937, 121.731, 57.4, -133.0167, -133.0, -133.0333, -122.3667, 37.617, -98.367, -106.0411, 28.8167, -121.4744, -113.3847, -101.7614, 121.7, -125.5667, -86.2089, -110.1333, 17.9125, -76.0333, -76.0803, -72.2244, -95.8872, -95.9844, 100.63, -111.0497, -92.32, 148.0141, -121.4833, -61.45, -61.5, 140.083, 39.6, 115.617, -128.25, -90.3683, 10.23, 102.53, 147.4614, 92.62, 92.433, -88.7714, -74.4383, -119.49, 100.2331, 38.731, 16.694, -81.5667, 39.233, 63.5, 25.417, 131.983, 63.7, 7.65, 68.22, -100.8972, 53.0, 22.1817, 22.2831, 22.2775, -120.855, -108.3894, 24.8831, 87.167, 89.2, -100.8636, -64.9, -100.8883, -100.1167, -100.3167, 87.9331, -112.12, -87.6161, -87.6161, -116.2225, -88.2908, 13.328, -95.2803, -117.7539, -117.8333, -151.4136, 93.78, -100.0, -96.5994, 8.8189, 25.0331, 24.9831, -97.4, -112.0264, 18.7, 8.5206, 35.867, -122.6167, -113.7319, -114.45, 6.8906, -116.0369, -54.8, -112.3261, -115.1953, -114.3461, -114.4569, -114.4869, -120.0403, -114.5, -106.3514, -116.1758, 8.9142, -120.3211, -91.6653, -91.7067, -110.2167, -87.5678, -146.9542, 153.2078, -78.9336, -95.2969, -96.1281, -90.0603, -95.4025, 124.667, -97.8703, -85.5833, -1.417, -63.9333, 25.5831, -78.7333, 65.5, 123.567, 73.8, 30.07, 47.5, 113.617, 6.3545, -67.05, -47.95, -48.217, 9.1569, 79.617, 104.8667, 104.867, 4.35, 62.8, 130.62, 80.9331, -125.5333, 13.24, 13.1, 102.8, -79.1667, 102.8, 134.4197, -179.983, 14.067, 142.78, 10.53, 136.15, 55.8331, 7.45, 142.03, 74.02, -118.6333, 53.817, 54.6831, 128.68, 25.433, 119.55, 94.333, 70.933, 31.17, -123.2103, -118.9339, -123.2008, 106.867, 92.08, 71.067, 107.0, 107.6, 37.0, 129.42, 19.22, 112.467, 89.933, 116.967, 96.85, 139.8, 84.517, 23.45, 6.4333, 150.4827, 18.19, 12.78, 130.9, 9.95, 13.47, 129.32, 17.6664, 30.5, 29.1, -117.8, 34.5, 66.33, 17.2197, 14.18, 48.333, -101.2908, 30.23, -119.5667, 34.33, 20.29, -152.14, 11.183, 28.67, 126.8, -46.88, -160.8, 110.633, 18.92, -101.1461, 15.81, -91.0042, -79.7192, -77.1833, -93.0031, -80.5336, -81.6628, -89.0317, -117.8758, -88.0336, -114.3747, -85.7464, -109.2, -89.5308, -105.5667, -147.8611, -113.5333, -114.1333, 152.3375, -93.1772, -111.8333, -60.167, -71.483, -59.15, -61.467, 10.2908, -130.45, 37.3, 130.157, -56.1667, -100.7264, 21.25, -155.8833, -121.6931, -125.6333, -76.7683, -109.2836, -107.2667, -83.2833, -109.4461, -106.8333, -122.1675, -63.0, -120.3667, 17.63, 17.59, -90.4667, -66.4167, 5.7695, -104.6114, 142.783, 51.4, 138.3136, -108.4833, -108.4833, -68.93, -108.7422, 68.983, -88.2403, -83.7822, 81.617, 38.77, 60.567, 34.9, 65.55, 120.033, 42.0, 133.233, 45.069, 14.8, -57.033, 87.5, 150.5, -49.31, 29.4, -82.8186, 130.032, -68.296, 119.867, 77.03, 97.514, -102.3122, 13.183, 71.7, 14.041, 16.422, 104.767, 109.02, 136.68, 156.7, 102.75, 57.683, 135.15, 162.467, 118.8, 116.5, 85.62, 53.683, 134.4497, 143.2297, 143.2, 121.48, 159.42, 87.75, 57.617, 52.2667, 133.317, 56.9194, 159.17, 50.42, 115.167, -111.8972, -112.9367, 25.6, -75.2, -75.3839, 15.7, 4.883, 4.8781, 27.0119, 27.9006, 139.867, 100.1, 11.0717, -66.6864, 17.35, 162.9742, -21.9667, -99.8325, 132.55, -79.1667, 90.367, 22.2667, 26.7, 89.817, -118.4428, -83.5358, 26.4275, 24.83, 30.78, 21.8, 21.65, 21.6, 21.7678, -121.9608, -121.9575, 57.5, 11.03, -93.0958, 10.89, 14.8, 9.0833, 7.3653, -106.3539, -106.3833, 31.98, 19.68, -73.6833, -146.3517, -83.2333, -83.2, -83.2767, -117.2439, -119.25, -0.3664, -0.482, -0.4731, -80.1333, -10.2219, -104.4914, -108.4983, -100.5517, -100.55, -100.6931, -70.62, -43.71, 26.033, -112.2492, 19.9167, 4.4292, 26.233, 16.37, -4.7667, -88.2, -4.85, -107.5, -107.5811, 1.175, -70.9333, -4.5331, -74.1, -117.2667, -117.0086, -98.0203, -120.2822, -75.4197, -85.6064, -96.3672, -114.5139, -66.0, -116.65, -96.31, 25.0, -104.9244, -86.5167, -86.6833, -87.0058, -87.0378, 28.8325, 38.1, -71.0667, -77.7833, -77.7833, -75.6, -48.476, 0.728, -64.3833, -107.85, -107.5833, 9.0356, -71.0667, -79.1333, 43.32, 102.2667, -67.4303, -122.6511, -123.1167, -123.1833, -123.1833, -122.6572, -123.25, -89.0953, -91.4833, -120.5667, 27.82, -84.4397, -124.0167, 12.36, 6.6455, -73.614, -107.1, 24.9603, -178.95, 84.08, -121.7939, -67.9397, -91.0186, 43.35, -104.8372, -118.4892, 29.383, -84.5808, 21.82, 22.05, 82.867, 12.27, 31.1, 31.0844, -73.3833, 25.45, 27.8442, 27.9108, 27.825, 14.1942, 9.2019, 29.8331, 18.28, 20.41, 16.63, 15.38, 13.35, 16.59, 18.26, -112.1333, -112.1333, -112.1167, -173.983, -119.7833, 14.83, 14.73, 11.8572, -112.1, -112.0333, 30.6167, 46.3, 16.3, 21.5167, 42.067, -100.875, 33.283, 10.1083, -82.4364, -112.0667, 12.33, 12.4, 21.533, 70.367, -73.3667, 12.0, -111.8492, 27.92, 54.683, 12.0042, 27.95, 61.1, 164.23, 87.95, 46.7, 60.3, 96.97, 45.017, 130.43, 133.4, 60.7994, 132.017, 59.2, -96.9194, -64.267, -109.5211, -109.5144, -88.1275, -99.3256, -112.435, -72.515, -119.2833, -123.1903, -112.4269, -119.3167, -119.2, -112.4167, -119.2, -119.2667, -88.7239, 10.8667, -80.4031, -80.2428, -92.8397, 26.4281, 135.8, 33.267, 50.9, 8.3167, -20.2831, 17.833, 45.8, -85.0761, -113.6667, -8.8, 11.5167, 3.4, -91.7683, -90.8444, -42.86, -63.4833, -53.2167, -96.5667, 25.85, -97.0181, -123.3333, -123.3167, -123.4667, -123.5167, -123.4333, -123.75, -123.2667, 98.583, -96.9214, -96.9303, 131.0145, -96.9217, -123.3, -100.21, -117.3058, -117.3833, -96.7864, 138.6217, -105.3686, -120.8333, 22.85, 20.13, -75.8211, -77.2664, -91.9811, -114.85, 102.5667, 27.2242, 145.0972, 120.356, 12.2167, -8.6239, 6.115, 24.4017, 25.8617, -111.7833, -111.7333, -111.7667, 17.75, 36.75, 70.617, -7.7333, 26.9, 16.84, -60.098, 25.6, 121.6167, 13.667, 2.2, -123.4639, -99.48, -59.08, -92.933, -6.07, -56.433, -15.867, -105.18, -65.146, -100.72, -63.683, -63.47, -65.387, -79.4333, 8.4617, 25.1, 21.8153, -87.4878, 19.72, 16.71, -79.4167, -79.3833, -79.4167, -70.615, 11.61, 15.82, 105.671, -95.1322, 8.991, 34.783, 28.6, -92.0078, 17.6, 124.206, -89.7689, -100.95, -96.4983, 26.87, -119.6483, -111.9481, -105.2186, -119.25, 27.6756, -90.8761, 23.5456, 5.5256, 23.517, -63.135, -119.2994, 18.3331, -105.6333, 83.233, 14.41, -117.2269, 30.217, 30.1, 12.05, 112.5831, -40.333, -40.863, -2.7331, 21.63, 176.9, 134.817, 34.4, 44.65, 40.35, 131.9331, 4.9206, 3.5956, 19.4833, -98.75, 13.8, 9.0019, 7.6358, 13.9, 80.367, 44.346, 5.7067, 24.45, 29.88, 94.5, 68.1, 24.317, 39.9167, 26.5, 44.45, 64.016, 89.633, 112.9, 39.2167, 39.27, 27.0192, 139.6, 106.867, -49.983, 40.2, 31.333, 21.9, 23.5333, 18.48, 20.4, 21.3167, -113.25, -146.7158, 16.35, 28.8, 23.383, 36.45, -113.8333, -85.8258, -66.8667, -119.1189, -97.2169, -97.2283, -0.5239, -95.1494, -80.0772, 45.2, 31.35, -119.29, 33.483, 5.6331, 9.8044, -89.45, 147.4573, 147.3091, 117.3403, -98.2894, -95.3739, -119.8814, 9.1283, -96.6222, -96.6108, -111.4914, -113.4264, 9.3239, 14.778, 139.9378, -157.8167, -157.7114, -159.6758, -158.0536, 120.333, -159.995, -111.1, -110.8333, 122.237, 136.9, 40.07, 139.917, 135.167, -99.8722, -96.8667, -75.9, -77.0078, 166.65, 141.683, 8.3608, -106.2792, -74.1628, 13.4656, -94.1942, -112.7833, 8.2394, -78.5878, -168.0992, 148.1223, 148.1218, -83.075, 145.4281, -77.04, -94.57, -118.0569, -115.9314, -82.4, -101.2094, 151.9306, 144.9654, -118.0511, -118.2869, -1.1081, -75.4631, -117.5314, -89.5989, -112.8097, 142.004, -71.2461, -104.7956, -102.2986, -80.6761, 150.3867, -98.3006, 10.5494, -80.7333, -96.4756, -75.1333, -75.1456, -96.3703, 138.95, -121.453, -107.9786, 144.1482, -74.9003, -74.2933, -86.9294, -122.1953, 116.6706, 116.6756, 126.75, 146.3056, 7.9075, -118.3833, -101.3667, -95.75, -111.4078, -73.5053, 108.033, -120.4203, -101.9333, -102.05, -109.4256, -90.2836, 145.5258, 9.183, 126.5839, -72.5, 29.07, -78.5811, -115.4667, -120.2333, -114.8167, 12.667, -117.75, 28.33, 128.2175, -113.1667, -118.5786, -112.23, -122.9975, -83.6164, -83.6, 137.3995, 142.405, -79.1494, -115.6789, -80.3167, -93.8008, -6.6108, -82.6222, -91.1386, -77.7678, -92.0997, -80.8106, -104.4333, -2.65, 142.4353, 142.4522, -95.33, 133.3796, -85.8678, -76.7769, -78.0044, -78.2203, -1.115, 9.4431, 152.1003, 152.0258, -115.6333, -99.95, -119.3519, -121.33, -109.4, -93.5264, -101.0267, -77.0525, -97.055, -91.7078, -87.1989, -82.7058, -80.1889, -78.1833, -83.4239, -77.4636, -86.8911, -117.2583, -77.0342, -96.1594, -149.4333, -106.0833, -106.0667, -94.3939, -92.5875, 12.2217, 9.9439, -102.4478, -103.7986, 131.5488, -72.75, -105.2103, -7.1308, -123.4167, -90.1619, -82.4736, -92.4011, -80.3833, -89.1742, -113.8167, -113.8333, -88.7364, -75.8753, -76.0217, -97.1494, -120.08, -83.0981, -64.65, -69.6544, -100.7283, -89.6311, -103.2892, -103.2597, -103.2867, -117.6333, -98.4139, -105.4667, -105.4, -87.7556, -121.7886, -121.7692, -128.8167, 102.563, 0.956, 28.017, -97.3269, -81.7994, -87.8828, -88.2492, -91.4711, -89.0592, -97.9964, -89.6256, -84.1453, -89.3831, -87.8347, -82.9797, -76.525, 131.1166, -84.8, -84.7833, -101.9667, -96.8422, -111.4097, -82.3128, -82.4, -97.0108, -87.7592, -82.0061, -88.6708, -80.1656, -84.6, -82.9683, -92.2319, -98.8797, -71.7383, -97.77, -98.6986, 158.2, -122.9383, -95.2039, -106.9333, -97.5228, -93.7972, -99.4192, -112.9, -80.4169, 9.0864, 143.5127, -122.4539, -82.5756, -96.1414, 117.75, 12.1856, 10.6094, 119.183, 11.7, 8.2594, 6.7917, 11.3092, 8.117, 104.28, -151.0833, 141.9208, 141.8836, -105.25, -116.9697, -116.4267, 6.8125, 11.2378, 10.967, 10.9967, 7.6983, 36.476, -89.1167, -97.4178, -90.6828, 26.67, -79.2667, -1.6031, -75.9286, -100.2103, -97.4097, 174.8, 148.9503, 148.9708, -117.9933, -114.9736, -93.7367, -77.3872, -121.7833, -120.31, -120.35, -120.2014, 12.0131, 10.4717, -114.0358, -97.0042, 120.667, 27.03, 26.87, 10.767, 9.5439, -74.8081, -97.9708, -67.6664, -105.5333, -98.5706, -73.6, -104.0503, -73.7075, -105.4661, 3.8631, -71.7989, 11.0617, -103.9356, -114.0836, -64.6667, -82.9433, -117.7183, -79.5856, -72.6322, -101.0192, -76.9883, -81.2167, -80.4725, -105.3053, -63.5167, -66.3667, 171.6, -119.75, -120.9, -88.0017, -88.0858, -116.4333, -71.9833, -70.6128, -75.635, -88.2464, -71.3, -113.9847, -86.9919, -83.3017, -71.4333, -90.1805, 29.367, -80.0994, -82.4547, -91.8347, -91.9025, -85.1808, -73.9608, -96.7142, -76.8, -106.3833, -69.1461, 122.3122, -71.9031, -80.7694, -123.2, 147.1962, -111.1, -113.3833, -85.2042, 143.669, -103.8333, -103.8, -91.4181, -65.95, -104.6281, -92.6, -122.8333, -87.7097, -87.0578, -104.9492, -96.5042, -88.0728, -105.1169, -80.7283, -80.6472, 174.6, -122.6667, -122.5281, -105.1167, -111.15, -106.9, -122.95, -118.7403, -53.5333, -0.6241, -115.7833, -115.7833, -71.545, -114.3594, -89.9167, -84.9789, -73.4011, -135.0667, -135.1, -118.2347, -135.0333, -135.0833, -93.55, -109.9839, -103.15, -86.3542, -149.9978, -78.7914, -78.7286, -88.7247, -102.2667, 143.0742, 143.0893, -120.8375, -111.4167, -90.3789, -112.15, -98.7131, -88.7417, -109.9, -163.4, -121.3833, -110.9833, -101.0925, -122.7833, -106.1758, -108.3667, -80.3083, -110.9, -119.65, -87.0167, -118.4628, -81.6, -121.8994, -97.375, -148.6858, -118.01, 137.5205, 137.5328, -81.1, -104.1567, -103.4914, 101.1, -97.4425, -97.35, -98.4928, -97.2211, -97.2667, -98.7125, -98.7458, -3.083, -112.7403, -121.6875, -14.4, -111.8833, 18.5667, 16.35, 16.4, 16.3883, 16.135, 16.567, 12.467, -89.1214, -66.0, -73.1333, -113.6136, -118.7239, 143.3747, -104.3333, -109.5, -112.4833, -103.2131, -117.1853, -115.3167, -115.8008, -92.7489, 3.9, 8.1067, -75.7269, -123.7164, -78.0453, -109.8369, -112.1928, -84.15, -91.9978, -76.7039, -82.2833, -82.2761, -76.9217, -76.9833, -77.0306, -84.6106, -106.2039, -122.05, -122.15, 151.8359, -123.5333, 167.0, -72.1836, 8.6033, -103.7372, -103.6367, -105.0564, 149.965, -123.3425, -95.0833, -95.0358, -122.3058, -114.6611, -100.2911, -110.8167, -109.8167, -118.35, -123.6364, -106.2153, -106.1, -75.15, -105.7333, -89.8489, -91.9914, -150.0542, -73.3819, -96.015, -83.85, -77.9206, -77.8997, -75.6008, -75.5414, -99.0556, -110.51, 146.4244, -77.9456, -115.0, -98.4889, -100.7892, 120.225, -113.5833, -86.5867, -78.1514, -90.4528, -123.3536, -116.6233, -86.0925, -78.1167, -84.9208, -83.7261, 17.1, 167.7, -95.1167, 142.6564, -109.1244, -109.0614, -93.5242, -88.5961, -82.95, -64.1667, -83.0667, 116.0308, -105.5833, -103.4881, -122.65, -119.4167, -114.5833, -87.8469, -96.9408, -81.9153, -97.0369, -100.1069, -109.3758, -103.2017, -94.1661, -117.7514, -117.8081, -99.8403, -99.8422, -92.6561, -94.0586, -97.25, -97.2333, -97.1, -97.1333, -81.0928, -91.7022, -101.2439, -91.6364, -89.6244, -91.6703, -110.7208, -107.6492, -91.07, -55.3333, -55.3, -121.9778, -94.0183, -81.7331, -81.7542, -120.1886, -81.0317, 143.0386, -91.7667, -69.7117, -89.7667, -89.8056, -89.8369, -113.4514, -150.1069, -82.5389, -113.0136, -82.5597, -104.1167, -99.56, -126.2167, -79.8306, 12.65, 118.3358, 7.667, 12.4964, 9.845, 23.533, -70.8667, 4.3417, -118.4989, 115.8808, -118.95, 13.6117, 143.9167, 8.24, -76.5333, -65.15, -65.15, 7.6242, -106.7469, -118.1333, -106.7906, -106.8, -107.1719, -105.6483, -105.5744, -91.2167, 137.9462, 150.8795, -103.2833, -109.65, -118.7033, -150.8714, 116.7186, 116.7267, 127.95, -121.8, 127.433, 145.5965, -100.4794, -81.7072, -79.6, -86.0894, -55.55, -123.8833, -119.8, -67.4044, -121.7942, -118.5744, -111.1494, -122.2561, -82.7333, -76.8667, -80.7667, -72.5072, -67.55, -78.4678, -75.1644, -78.9833, -91.2325, -57.9167, -112.8167, 151.3451, -77.7167, 136.8054, -81.9167, -81.8867, 19.467, -71.8731, -110.9167, -107.9508, -107.9686, 8.3667, 10.2306, 8.9867, -119.0, -72.9211, -95.5803, -132.3875, -102.2325, -60.45, -76.05, -105.7331, -92.9542, -94.1583, -84.05, -123.4333, 0.4308, 8.5281, 17.0, 93.08, 93.6, 135.4519, 104.917, 110.63, 114.05, 118.583, 9.433, -111.3703, 7.1058, 9.9589, 9.9292, 102.867, 113.53, 8.3806, 111.3, 87.65, 104.883, 147.2418, 32.75, 0.9481, 7.783, 128.1247, -90.7964, -104.2, 145.7292, -104.2, 145.7292, -107.4061, -81.0869, -84.2011, -81.2275, -123.1167, 88.633, 33.633, -89.85, -83.9, 118.083, 108.933, 123.72, 102.267, -98.23, 107.63, 107.77, 88.883, 114.52, 116.117, 105.183, 114.5, 101.767, 115.58, 114.05, 110.93, 116.82, 112.333, 114.58, 117.6, -89.5, 20.0, 115.65, 117.15, 103.0, -65.8733, -63.65, -80.5481, 31.8, 87.6, -120.5414, -120.5428, 130.667, -139.6711, 23.27, 29.3, 34.167, 140.35, 131.45, 123.6556, 153.3633, -5.366, -106.9092, -79.2544, 107.383, 146.4328, 112.4, 126.65, 67.2, 111.967, 96.133, 127.5, 129.5, -97.3633, 116.85, 109.5, 11.53, 138.1333, 138.0833, -73.807, 67.083, -66.0833, -66.0833, 152.2482, 146.0306, 177.583, 51.583, 148.9113, 28.1, -95.7292, 54.4, 54.277, -90.3817, 120.0931, 12.55, 44.32, 52.0694, -114.4333, -114.25, -115.5114, -115.2514, -110.4211, -122.4278, -110.6964, -107.9383, -104.1833, -108.7561, -113.5417, -92.6667, -80.8419, 38.063, 127.75, -2.6415, 150.7506, 44.5, -119.1575, -104.6128, 33.367, 29.983, 104.6, 111.3, 114.38, 128.9, 106.2, 122.2, 81.333, 94.7, 118.15, 23.47, 24.6531, 23.9167, -97.1556, -104.3881, -123.75, -116.5333, -116.3333, -116.35, 136.583, 12.37, 139.65, 139.6667, 12.43, 12.5, -123.065, 133.333, 123.017, 138.7489, 117.35, 128.95, 129.42, 128.52, 116.765, -97.5922, -102.4667, -102.4667, -73.7975, -76.75, -76.8742, -92.3, -71.3331, 116.7581, 128.4, -119.5897, -57.633, -80.6739, -112.3014, 148.2475, -86.3425, 148.2967, -109.8167, 108.767, 34.8, -122.6408, -106.3217, 14.95, 4.6817, 101.98, 110.4, 102.28, 101.87, 112.7, 71.6, -114.1344, -116.4078, 131.8017, 113.08, 137.6697, 69.6, 44.3, 130.9737, 109.7, -102.7217, -114.635, -114.6167, -114.3942, -114.7167, -114.6167, -114.6, 97.033, 35.8, 111.05, 139.5611, 139.5645, 112.98, 96.967, 46.3, 114.57, 68.4, 61.4833, -102.567, 15.35, 95.3, 94.72, 15.9781, 16.07, 60.907, 84.9167, 46.667, 20.883, 19.9667, 16.8, 122.067, 42.62, 109.967, -102.28, -5.7333, 23.25, 111.9, -81.8922, 48.359, 39.225, 112.67, -99.2536, 35.02, 35.3, 37.8, -1.0333, -1.0081, -132.8486, 129.467, 14.9831, 78.667, 13.3281, -104.4, 12.1442, 127.3, 41.57, 12.8, 14.75, -1.45, -102.9956, 41.483, -45.65, 15.0, 49.483, 69.8, 81.217, 114.88, 122.533, 100.43, 110.4, 103.83, 103.75, 80.0667, 72.867, 21.3, 113.65, 67.717, 105.1667, 123.4, 109.683, 27.867, 36.82, 30.033, 69.467, -96.5167, 105.67, 76.367, 112.57, 114.017, 28.733, 15.5333, -16.282, 57.4, 25.917, 35.9, 18.617, 117.483, 102.05, 39.733, -122.3903, 9.0, 15.13, 13.9006, 13.75, -112.9814, 19.7167, 59.67, 67.067, 82.2, 32.667, 152.833, 138.983, 31.8, -55.183, -108.5244, -108.5528, -12.483, 20.35, 12.08, 8.5667, 41.883, 10.9867, -92.6661, -108.8389, 106.883, 27.8, 64.867, 28.07, 13.233, 150.9], &quot;xaxis&quot;: &quot;x3&quot;, &quot;xbingroup&quot;: &quot;x&quot;, &quot;y&quot;: [51.65, 51.6833, 51.7, 49.0017, 50.7839, 68.7, 30.371, 43.68, 44.017, 53.77, 20.65, 44.017, 20.45, 50.143, 50.7, 49.0333, 13.85, 33.83, 45.4558, 46.9658, 47.2614, 42.9536, 46.35, 52.133, 18.24, 5.25, 5.261, 38.9267, 32.4333, 32.4106, 36.6686, 36.2403, 68.36, 60.9181, 66.383, 39.4, -22.83, 65.9897, 31.583, 24.43, 24.433, 19.533, 12.733, 43.4892, 45.9833, 44.3739, 13.567, 22.5, 16.833, -2.88, 18.2, 5.55, 56.28, -6.973, 37.4, 44.0089, 34.4458, 30.3519, 19.5, 34.7864, 47.2992, 51.8833, 37.1, 36.98, 40.783, 51.6, 42.1014, 8.98, 9.0, 9.033, -33.57, -34.9524, -34.9211, -34.8533, -34.9697, -34.9254, -35.3077, 59.36, 49.05, 5.3, 41.25, 41.1936, 37.75, 18.1747, 43.433, 47.572, 33.5667, 19.67, 27.88, 41.9164, -19.533, 41.8678, 37.0956, -34.559, 20.983, -25.45, 19.43, 42.6475, 42.7292, 38.726, 16.967, 30.3833, -10.433, -10.6, 23.883, 49.25, 49.25, 48.3006, 66.8797, 42.4244, 42.425, 30.72, 44.18, 51.1, 55.25, 42.5522, 27.1667, 39.733, 38.62, -9.28, 21.95, 37.5167, 33.9433, 17.9556, 17.9667, 47.6, 38.8, 23.067, 62.533, 62.5344, 21.05, 22.95, 31.337, 18.1281, 47.53, 50.25, 38.033, 33.4925, 32.1833, -19.483, 57.867, 42.5522, 36.317, 32.767, 16.73, -38.4583, 46.5258, -18.8333, 44.47, 47.967, 56.45, 35.05, 32.3697, 40.36, 41.0, 41.1, 58.9, 38.92, 41.47, 20.26, 39.717, 51.867, 19.75, 52.0, 42.967, 68.2167, 20.7, 20.7, 40.78, 40.93, 38.25, 61.4, 41.0803, 40.155, 40.9167, 41.0375, 40.1667, 34.567, 50.267, 42.07, 54.0, 38.4, 38.4, 42.5, 38.617, 50.2831, 32.033, 65.68, 43.15, 51.0, 33.1783, 14.08, -12.14, 63.0889, 63.0506, 37.7333, 32.9181, 37.4389, 34.2281, 36.6, 40.5, 54.817, 70.6667, 38.9519, 39.0067, 48.8833, 32.7047, 42.6461, 31.5339, -34.9414, 42.7431, 31.5356, 35.3992, 44.05, 49.3333, 46.6447, 43.1833, 46.85, 43.6064, 41.0656, 41.4, 38.3778, 41.6853, 45.2089, 43.2722, 43.9167, -34.5638, 45.5833, 48.2164, 48.2058, 35.1, 35.1344, 35.0419, 35.0217, -36.0692, -36.069, 36.0908, 62.8167, 42.4697, 39.17, 58.6167, 54.658, 48.6167, 45.0708, 40.1867, 46.2733, 39.6514, 41.2019, 52.517, 50.917, 60.4331, 50.9, 50.15, 32.9308, 48.45, 36.18, 36.3333, 82.5167, 50.5833, 82.5, 44.92, -28.5667, 32.9453, 31.3206, 43.6514, 31.2489, 31.3928, 31.184, 31.3347, 45.8678, 40.85, 52.0833, -9.879, 52.4864, 44.4931, 10.435, 42.2497, -4.193, -46.433, 46.55, 36.7167, 40.67, 43.0683, 38.282, 38.367, 38.3725, 38.2828, 27.7283, 33.1272, 51.1767, 27.7411, -23.7951, 35.9308, 40.5, 5.02, -21.0025, 42.9694, 47.0886, 25.441, 25.5, 36.3806, 34.165, 42.1003, 42.58, 40.8997, 33.0167, 40.1881, 40.6508, 42.1103, 42.0572, 52.4167, 39.7369, 42.7536, 43.9247, 46.0667, 44.15, 67.1297, 43.3864, 45.6, 59.16, 40.84, 17.25, 43.2331, 31.5358, 44.3272, 64.0, 36.8331, 36.8464, 46.7253, -8.217, 6.2, 38.8, 45.1628, 45.0717, 45.0606, 34.1014, 30.3764, 32.8358, 33.8492, 40.4644, 47.7833, 42.6, 51.3333, 50.7456, -28.8521, 40.5906, 46.4, 60.333, 16.73, 40.3561, 30.717, 30.7, 49.25, 47.733, 43.7728, -9.867, 69.9775, 46.8667, 39.5008, 53.6881, 38.7, 48.4067, 37.4403, 49.1, 39.4767, 36.63, 38.8664, 40.495, 40.2964, -39.01, 34.4417, -9.1, 41.49, 41.4914, 34.3622, 34.65, 34.8847, 34.5903, 39.18, 57.433, 34.7961, 67.31, 18.3, 36.8014, -19.4569, 61.26, 61.25, 39.46, 58.01, 29.3653, 65.67, 65.69, 53.0608, -13.8483, 60.9583, 49.7281, 25.285, 24.262, 20.296, 35.18, 29.783, 24.55, -3.35, 36.5717, 35.2333, 46.235, 40.65, -27.6297, 67.0833, 14.513, -3.7, -3.7, 43.8836, 42.517, 69.75, 37.345, 48.0206, 42.8572, 32.0603, 45.3011, 41.9519, 42.0208, 41.9922, 35.1131, 60.9, 67.0, 42.3861, 42.1, 34.9331, 46.4819, 16.741, 35.8742, 29.4608, 30.7094, 39.8914, 31.9833, 65.97, 48.5667, 60.96, 60.9617, 48.9167, 48.4667, 48.5167, 31.71, 49.6167, 11.033, 46.1314, 48.5119, 35.0619, 64.7831, 33.8647, 29.7878, 29.6692, -14.633, 42.1117, 36.1, 44.9, 39.2167, 61.1747, 61.1561, 61.1689, 61.1781, 61.2169, 46.383, 31.3072, -30.449, 69.3237, 46.6331, 13.5761, 34.5283, 36.6519, 34.4978, 61.6244, 42.4372, 40.1117, 37.6, 37.93, 40.733, 36.55, 45.4136, 41.0089, 69.3, 54.0167, 32.3483, 33.4408, 35.2014, 42.55, 34.8117, -20.233, 49.7167, 33.557, 56.283, 42.3108, 65.02, 36.395, 53.0331, 45.55, 47.5, 38.2486, 29.1572, 41.6397, 41.6, 41.0, -36.5, 38.5731, 56.717, 61.5833, 31.9381, 39.617, 32.72, 39.95, 40.12, 39.95, 41.6775, 53.8431, 36.822, 38.9936, 44.75, 52.25, 37.4814, 55.0389, 60.4667, 33.5872, 42.2947, 30.533, 41.5975, 32.7667, 38.1211, 36.2, -14.83, 36.899, -18.867, -18.8, 44.8197, 41.6847, 44.6867, 44.0397, 31.3336, 38.9933, 37.155, 43.008, 45.1603, 45.15, 42.4811, 37.9833, 69.08, 34.2208, -23.433, -23.5, 10.45, 7.812, -14.999, -12.35, 43.967, 62.3667, 31.9792, 36.05, 37.467, 33.555, 39.083, 44.5792, 40.817, 45.73, 33.4625, 31.9, 29.7258, 29.7333, 19.72, 18.367, 35.7425, -13.8149, -13.8, -28.6217, 44.2769, 45.1833, 45.8092, 38.1869, 33.5619, 37.3261, 2.43, 4.17, 60.43, 67.7831, 29.6333, 37.5222, 15.78, 19.8, -10.917, 46.1331, 40.5, 40.5983, 34.138, 46.7794, 28.25, 28.3081, 13.7, 39.1, 30.907, -37.2775, -19.567, 38.1667, 42.5031, 43.0411, 50.9333, 40.3983, 45.1833, 42.5333, 27.2181, 37.5981, 40.9781, 51.4969, 34.1128, 27.1819, 41.1517, -27.5717, 33.5947, 38.6164, 43.6356, 36.2911, -8.41, 43.6231, 73.0333, 73.0, 41.1, 38.25, 34.1772, 56.5289, 18.3494, -16.332, -16.4, 63.43, 43.47, 47.3, 38.1167, 48.3311, -16.6381, 64.5, 49.4167, -18.35, -18.5, -15.91, 28.93, 66.0522, 60.083, 34.1433, 50.217, 34.025, -30.311, 54.6817, 59.66, 45.7211, 44.3631, 32.6636, 32.7572, 43.3008, 46.75, 54.35, 44.9831, 47.5867, -30.5273, -30.5167, -30.5264, -26.95, 43.3131, 50.3, 50.5, 50.4667, 36.1669, 54.6306, 7.0725, 41.4225, 47.75, 45.4167, 51.3783, 49.9706, 51.3856, 46.7167, -2.6667, 46.78, 40.8, 52.2, 16.233, 39.9167, 43.5936, 36.23, 48.6, 54.361, 51.383, 32.7547, 46.0167, 41.5697, 40.7808, 45.3783, 52.7833, -33.393, 10.15, 41.183, 3.017, 45.95, -3.333, 46.267, 61.1, 65.5997, 59.67, 59.67, 47.167, 35.817, 59.6605, 43.767, 58.18, -15.717, 57.15, 64.16, 64.17, 31.7003, 35.7044, 51.1333, 35.5953, 35.4319, 37.9667, 32.1292, 37.1942, 37.75, 38.4536, 42.2128, 40.8333, 46.5522, 33.2942, 46.5831, 37.7081, 46.5486, 41.0408, 46.0406, 41.85, 41.7781, 44.0425, 41.2769, 36.4914, 41.0519, 61.2167, 61.265, 61.3006, 46.5, 59.8558, 53.92, 15.283, 15.3, 32.883, 39.1853, 33.1525, 59.61, 13.067, 38.0722, 38.0667, 37.5167, 49.7333, 49.7333, 50.5808, 23.9667, 51.1331, 38.5, 44.5044, 46.1569, 44.717, 46.2831, 43.5667, -25.27, 27.1833, -8.5333, 7.58, 20.517, 20.52, 48.7, 17.7, 51.8167, 41.2, 39.5756, 54.8167, 35.15, 32.1633, 34.7753, 35.4322, 37.4225, 39.3428, 34.8, 33.9481, 37.7333, 37.9667, 48.8, 60.85, 42.5136, 33.1244, 33.3633, 45.0283, 33.7792, 33.63, 33.8667, 33.875, 43.75, 41.4175, 39.3792, 39.4494, 50.8167, 59.5667, 31.1819, 34.45, 59.1, 20.57, 17.2, 40.2839, 52.8333, -9.8, -9.8, 50.8167, 39.7997, 47.1167, 37.0919, 38.9072, 42.9328, 40.3706, 32.6, 32.5992, 55.4767, -37.0, 39.8833, 41.7069, 50.5917, 53.55, -28.6, 48.4, 48.4264, 47.4931, 33.3644, 33.4669, 44.3206, 44.6981, 34.075, 58.3814, 74.1333, 47.9706, 19.85, 53.4633, 40.8586, 41.7806, 35.3872, 39.7167, 42.7339, 45.2486, 46.6456, 39.4931, 44.5747, 30.1831, 30.3208, 29.7036, 43.6542, 45.65, 45.787, 47.8, -38.0287, -22.35, 47.2533, 60.14, 57.2, 40.6592, 40.6556, 45.1667, 27.5947, 7.083, -13.13, 37.85, 53.2, 20.08, -19.6169, 39.3, 36.835, -36.833, -36.8, 43.3669, 43.3067, 59.4, -28.38, 11.333, 47.7122, 48.9389, 54.45, 45.6, 0.831, 36.717, 51.72, 29.76, 46.5331, 43.45, 51.75, 28.8, 39.8, 60.92, 36.6833, 36.6619, 38.9, 38.8831, 30.97, 46.1, 48.7278, 47.1106, -33.8969, 44.03, 48.1333, 45.6481, 37.1697, -30.3381, 25.37, 50.5356, 43.8081, 50.675, 48.7856, 49.4728, 50.3333, 46.87, 51.9014, 50.867, 47.72, 50.2, 47.6658, 50.2853, 51.1342, 49.8517, 51.3925, 51.7867, 50.4519, 50.667, 51.5675, 50.3694, 47.0167, 47.7244, 52.1, 50.2717, 47.7667, 51.1067, 53.267, 41.6, 34.5975, 54.47, -31.333, 41.0383, 48.3333, 16.375, 16.4, 28.3331, 11.6, -38.733, 28.82, -20.23, 27.71, 26.267, 47.6667, 48.5303, 49.2667, 49.1333, 48.7, 50.2833, 47.4167, 49.9833, 39.4047, 39.3794, 40.4361, 41.7, 42.2833, 30.8228, 31.367, 31.8, 54.35, -37.8817, 23.9, 44.4992, 38.2, 46.117, 42.7, 50.8, 53.1, 46.1833, 61.6667, 4.0, 37.6, 55.183, 44.833, 57.0, 35.2761, 30.8878, 35.4186, 35.4344, 40.65, 41.8417, 34.45, 44.8428, 44.7667, 64.3, 64.3167, 46.3583, 38.433, 41.2, 54.0, 51.55, 21.517, 39.5, -37.75, 36.9092, 56.2333, 49.2833, 43.9006, 33.9833, 42.7, 43.5556, 44.8, 38.9056, 47.59, -31.09, -20.1417, 42.67, 43.02, 46.8, 50.078, 39.619, 70.08, 52.533, -32.4569, 45.9497, -37.5127, 55.5833, 49.35, 26.95, -28.8353, 31.7414, 54.0508, 55.1806, 54.5, 43.1003, -45.917, 30.9844, -34.6398, 54.65, 45.8833, 39.2833, 39.1667, 47.08, 29.1, 5.77, 33.3, 49.8753, 48.8333, -0.9, 70.067, 45.05, 45.0667, 27.218, 26.5833, 40.32, 43.1497, 51.1833, 51.1833, 51.2, 48.5667, 12.967, 4.73, 13.97, 13.733, 46.35, 39.3975, 44.7978, 4.38, 4.4, 4.398, 44.783, 13.338, 13.2, 13.35, 34.14, 33.4528, 49.7, -33.9181, 36.1617, 44.3, -8.217, 38.85, 34.35, 46.32, 25.13, 55.3331, 43.4583, -30.9469, -24.1819, 53.117, -7.317, 46.3108, 48.322, 21.3167, 36.8825, -23.5544, 41.4192, 41.2928, -0.981, 37.8194, 69.0589, 36.8831, 32.2631, 28.367, 78.1, 53.6167, 54.33, 8.62, 47.7722, 41.13, 56.29, 31.9, 31.92, 53.0667, 46.1, 22.0333, 46.233, 38.0281, 45.2883, 53.4331, 39.9917, 43.9456, 46.4, 36.5653, 10.043, -30.3781, 47.55, 46.7167, 18.1667, 48.3667, -5.5, -12.15, 41.9111, 36.8978, 42.4281, 44.2033, 51.1833, 44.3833, 42.1153, -38.32, -20.8206, 71.2833, 48.167, 52.3208, 34.8928, 34.8536, 70.1333, 54.367, 41.6, 36.7619, 36.7683, 41.87, 33.8097, 27.8986, 38.5311, 52.117, 48.917, 49.65, 46.683, 48.6333, 29.883, 20.451, 47.55, -62.5, -74.7, -77.867, -63.317, 43.9333, -63.4, -62.233, -64.233, -60.733, -68.117, 41.38, 44.38, 45.8, 38.1, 42.2547, 33.879, 13.32, 52.8494, 47.417, 58.9, 32.7314, 47.8, 47.8, 63.517, 30.0, 43.0303, -13.0545, 36.5167, -35.7234, 34.3061, 35.7597, 35.8306, 42.6339, 42.3489, 47.6167, 47.6333, -33.4289, -33.412, -33.52, 66.8333, 37.929, 35.55, 35.75, 30.5372, 27.02, 4.47, 37.2319, 34.385, 42.3667, 42.3075, 45.7717, 41.05, 40.6117, 41.633, 48.7094, 48.4167, 48.7167, -22.317, 56.4, -5.467, 36.8583, 46.833, 43.03, 45.733, 46.133, 40.75, 47.783, 39.2728, 35.1311, 40.3, 46.8833, 49.2333, 45.37, 29.9142, 47.9803, 28.9797, 47.9833, 47.9833, 30.8839, 31.9694, 30.3758, 46.9283, 40.8236, 54.3333, 40.5583, 44.4667, 39.1167, 44.385, 44.7833, 37.7167, 44.95, 43.75, 41.8333, 45.0572, 40.3167, 41.9583, 44.5972, 48.3, 34.1394, 35.8842, 44.4989, 41.3, 40.8844, 44.6, 43.8833, 31.7222, 40.2994, 45.1333, 36.995, 46.2, 32.4833, -32.35, 32.3953, 33.9286, 31.2353, 30.0689, 46.6667, 50.0333, 49.4467, 50.7458, 36.8125, 38.3, 49.4833, 33.4286, 55.2, 45.4547, 38.4883, 38.2681, 40.1306, 34.6417, 44.95, 62.4167, 36.9139, 37.4533, 43.4447, 39.1333, 40.6167, 55.38, 33.7, 44.8167, 49.4667, 45.1333, 66.2667, 19.83, 46.3333, 31.646, 44.15, 37.7836, 37.7647, 53.625, 37.3475, 40.6742, 42.4833, 42.8733, 52.217, 42.47, 44.5075, 46.5333, 46.1833, 50.8333, 36.1878, 35.4583, -26.9586, 49.5628, 31.233, 28.4575, 28.3667, -36.6722, -36.6884, 17.45, 46.3, 66.9833, 21.48, 39.933, 39.8, -19.8, -22.217, 50.8989, 38.0167, 53.05, 36.8, 36.75, 40.2, 46.7, 47.45, 47.783, -35.0042, -1.45, 44.4394, -25.65, 15.85, 44.8167, 44.8, 35.5731, 39.0231, 44.2867, -34.3691, -28.43, 52.3667, 52.3833, -30.267, 47.9, 40.3533, 45.863, 35.23, 39.2483, 47.3833, 39.8183, 44.15, 38.52, 42.2611, 41.1167, 44.6714, 44.9906, 26.6928, 34.6892, 41.8814, 48.7178, 48.7939, -62.183, 54.1333, 43.1333, 46.1644, 33.5417, 35.5297, 54.233, 59.4, 50.917, 39.4575, 42.5039, 60.033, -19.9333, -2.633, 31.1, 39.0303, 61.1833, 40.8292, 55.85, 73.33, 33.1772, 12.6, 47.5369, -36.5483, 27.5969, 32.6475, 47.5, -30.8081, 44.0569, -36.7395, -36.7533, 50.4144, 44.1183, 32.95, 32.08, -3.87, -3.9, 2.95, 30.133, 32.3697, 35.3, 35.3, -4.383, 40.0503, 56.0281, 42.8914, 52.0019, 45.3167, 49.45, 31.8806, 39.5, 61.5633, 61.9358, 40.3444, 34.5675, 36.3219, 38.0336, 44.0342, 37.8431, 42.1244, -29.15, 35.5044, 41.317, 38.5908, 32.011, 37.0856, 41.3667, 41.3833, 40.5903, 39.9003, 4.22, 37.5733, 52.35, 52.3667, 49.433, 53.833, 63.93, 63.4, 57.12, 45.6667, 52.6206, 52.817, 60.2892, 60.3831, 60.4, 42.4061, 46.5869, 49.3319, 63.05, 60.1186, 37.8744, 52.6428, 49.883, 44.4536, 52.6325, 52.4639, 52.4056, 44.5761, 52.4683, 32.2667, 42.3353, 46.9331, 34.4219, 51.8231, 40.6683, 37.9161, 49.9183, 46.9906, 39.35, 46.05, 39.8, 47.75, 50.9006, 49.283, 45.0833, 56.15, 47.25, 33.3953, 41.8975, 36.6778, -26.467, 40.2575, 60.785, -28.248, 44.2833, 44.3064, 36.4583, 17.72, 66.9161, 32.0, 43.9092, 47.2622, -32.1083, 42.5881, 34.125, 42.5842, 39.5475, 40.2, 37.7, 57.8, 53.0, 23.283, 20.25, 23.25, 17.25, -1.183, -1.2, 53.1, 46.588, 43.46, -41.8739, 51.3, 45.9981, -32.0056, 35.281, 45.0403, -18.6844, 50.9208, 49.8, 32.3744, 50.6381, 42.0833, 47.875, 52.0667, 52.3167, 45.0733, 39.9356, 43.07, 40.7406, 40.7333, 46.8325, 34.2431, 41.7667, 37.5333, 51.6667, 39.3, 44.6333, 63.9944, 48.1969, 38.3, 44.5667, 41.0975, 37.0203, 38.2244, 31.2, 39.45, 38.5217, 43.8, 42.5414, 42.5844, 43.7072, 42.05, 60.8142, 36.235, 48.135, 42.65, 47.0167, 45.2769, 32.2442, 41.0469, 51.1667, 36.8628, 36.2472, 45.8328, 53.8167, 53.8333, 53.8167, 37.0769, 44.8078, 27.3, 52.68, 28.0, 46.8, 49.75, 43.3, 43.2981, 40.2, 45.9, 42.4167, 36.5297, 49.0167, 37.0536, 45.8069, 45.7508, 45.7717, 44.1242, 18.683, -24.3789, 30.4167, 1.166, 50.8833, -17.617, 42.1997, 33.9114, 38.867, 50.5833, 3.2, 3.2, 10.28, 65.5847, 42.6325, 52.5167, 39.8667, -25.9003, 37.0, 32.898, 33.5656, 45.3247, 13.8, 48.733, 53.0903, 55.417, 50.4333, 50.5317, 56.2, 25.233, 31.4475, 31.4269, 49.8756, 58.5167, 19.984, 42.83, 45.5833, 34.2169, 37.3711, -32.9, 34.85, 46.7708, 46.8, 46.7717, 45.5286, 38.5636, 39.7667, 11.87, 11.895, 51.0333, 47.6833, 47.15, 2.08, 38.4, 41.05, 41.5894, 33.4594, 1.433, 35.9833, 46.0, 37.25, 44.0667, 43.72, 74.5167, 61.6595, 64.4808, -24.4214, 47.6714, 43.1969, 48.0128, 53.77, 36.0931, 37.2017, 33.3631, 44.3833, 43.3167, 36.8047, 44.5, 38.5428, 38.9792, 49.85, 37.95, 48.5667, 38.6833, 33.0867, 43.6561, 35.6072, 46.4167, -11.1538, 44.3003, 33.4783, 38.7075, 36.7944, 43.5233, 54.367, 43.6231, 50.25, 65.05, 48.9775, 41.5536, 44.2906, 49.6167, 34.8544, 46.183, 31.2239, 34.5697, 37.4786, 35.1183, 60.0, 45.75, 30.1061, 51.45, 37.0997, 37.6131, 50.0367, 45.4167, 47.35, 42.95, 42.9544, 41.1667, 41.1667, 52.417, -29.1, 59.29, 59.22, 45.1667, 45.0908, 40.7597, 36.6669, 42.3842, 40.4864, 39.1742, 40.2636, 37.5928, 36.1472, 37.2556, 37.2958, 37.6411, 40.5017, 39.2775, 44.67, 41.0547, 38.5208, 42.2122, 38.6, 40.3803, 38.4667, 44.25, 35.1161, 37.7978, 34.8667, 45.5075, 34.6108, 52.1333, 52.1333, 52.15, 37.2825, 40.8142, 48.8719, 43.7167, 33.6131, 35.9239, 35.9403, 33.6186, 55.7031, 42.4333, 7.95, 45.8472, 44.5933, 44.6056, 52.65, 47.4333, -18.53, 2.817, 2.833, 50.95, 44.755, 11.16, 53.217, 48.067, 56.9667, 39.3886, 17.43, 38.111, 16.98, 51.8392, 51.4803, 57.85, 38.2119, 67.2669, 67.267, 37.03, -29.05, 29.7986, 30.7808, 40.5981, 39.93, 39.2, 51.5333, 50.7808, 51.17, 52.38, -6.7, 4.701, 56.233, 24.85, 58.3831, 49.933, 7.167, 48.9458, 50.2, 43.7383, 43.5667, 36.7236, 43.5253, 53.4, 37.493, 10.93, 53.865, 49.217, 65.68, 56.933, 11.583, 42.1225, 37.6167, -36.2, 35.2622, 55.49, -28.0336, 44.5, 57.9, 20.0, 55.67, 56.9, 56.1, 52.83, 52.03, 53.85, 57.915, 54.83, 54.0, 40.733, 66.15, 38.7, 46.47, -37.0016, -36.9113, 18.9, 19.117, 54.7167, -19.68, -28.66, -13.267, -9.1, 40.0167, 44.375, -64.783, 48.6667, 16.95, 8.05, 43.2278, 43.0778, 44.6833, 33.6403, 53.5, 53.5, 50.7333, 50.7333, 48.6928, 49.3833, 45.6361, 39.6567, 50.7067, 45.4, 7.53, 46.65, 42.0417, 34.6344, 35.0931, 35.1428, 36.2114, 40.8917, 38.9708, 38.0303, 43.4361, 38.9875, 53.2281, 29.3331, 57.2678, 29.1853, 61.6, -25.15, 57.76, -16.4333, -16.45, 44.83, -37.85, 42.1333, 42.2128, 21.333, 36.067, 35.6364, 35.695, 58.29, 18.4981, 54.267, 68.7715, 53.5803, 60.48, 60.4292, 55.063, 38.5, 11.73, 11.75, 33.2558, -16.0757, 62.76, 50.333, 50.4, 44.5856, 43.1561, 51.17, 44.4389, 33.8044, 6.48, 6.5, 5.27, 42.1667, 38.5458, 42.35, 42.3606, 34.0211, 40.535, 42.667, -27.4, 46.683, 47.68, 48.8217, 49.15, 7.68, 5.967, 36.5, 11.417, 36.383, 37.905, 39.9919, 46.2314, 35.98, 44.7219, 46.5667, 42.7158, -22.9117, 55.417, 50.733, 48.9947, 40.8547, 47.0667, 45.62, -30.0917, 44.8167, 50.78, 33.9431, 17.53, 35.341, 35.333, 48.7994, -20.0151, 55.5408, 32.325, 33.5511, 39.3447, 36.9647, 41.3831, 46.1825, 43.9167, 45.3667, -34.4869, 53.2833, 49.7333, 51.0833, 51.0833, 33.883, 45.2833, 38.5, 31.3944, 39.2167, 44.9414, 45.1672, 43.4053, 35.5303, 39.8, 45.8167, 45.675, 45.7881, 45.6622, 41.87, 39.9, 42.3497, 29.3167, 45.8833, 27.4467, 53.8134, 37.495, 41.8975, 44.0333, 41.8031, 45.0553, 31.1444, 61.4667, 57.0108, -1.0833, 41.8, 51.817, -35.4253, 46.3433, 46.4047, 62.22, 43.6667, 52.405, 46.8833, 35.1889, 45.8161, 49.9167, 49.8667, -30.47, 43.1333, 32.5158, 39.5656, -15.783, -15.867, 45.6603, 61.9067, 48.1667, 50.783, 56.28, 60.64, 51.733, 52.319, 35.62, 47.285, 51.883, 32.9544, 38.2611, 41.6853, 29.1417, 36.7444, -4.25, 37.2889, 32.75, 56.26, 63.46, 48.5156, 59.22, 52.43, 44.9878, 47.5, 48.85, 46.3797, 53.0464, 53.533, 47.5689, 53.5, 37.7092, 30.1592, 47.0, 44.9667, 44.3231, 48.45, 52.1167, 53.1667, 35.2283, -1.68, 63.3333, -29.9614, 41.9375, 39.3686, 31.1414, 31.0583, 6.53, -83.89, -25.655, 40.9461, 33.2064, 38.2575, 38.7167, 41.6681, 34.9786, 41.1583, 45.3261, -33.9486, -33.9575, 43.5525, 44.4, 46.4283, 51.5, 44.07, 54.1, -41.0025, -24.8353, 40.635, 41.5239, -36.7313, 40.6, 39.9436, 52.9833, 36.2047, 36.2147, 44.1614, 51.4156, 47.2472, 38.3083, 40.6331, 34.8822, 37.9442, -27.4808, -27.4178, -27.3917, -27.4778, 50.8167, 36.4731, 51.467, 35.8292, 43.1017, 45.7908, 44.9936, 46.72, 53.33, 46.2, 45.4442, 46.1, 50.3667, 50.3833, 60.4833, 50.9833, 57.8833, 51.8, 43.2, 42.0478, 44.6, 47.2875, 42.6333, 50.1, 59.65, 41.4083, 34.1333, 41.4333, -32.0012, -31.9759, -14.4, 45.1833, 45.4833, 45.7231, 39.765, 33.5214, 31.5447, 44.3253, 42.03, 32.375, 41.3667, 37.0678, 37.1275, 50.55, 28.6164, 28.4736, 38.7383, 50.6333, -32.3725, 39.4239, 41.15, -17.9475, 43.8094, 60.1, 52.3167, 33.1908, 42.2872, 44.8364, 48.0333, 38.9544, 25.9156, 35.5894, 40.8008, 45.5958, 43.5611, 31.7383, 40.5833, 48.5353, 43.55, 49.6314, 39.6097, 53.35, 46.5378, 39.0833, 45.05, 42.8819, 4.944, -18.637, 46.3003, 31.1681, 39.4247, 31.25, 31.1522, 43.9, 44.2844, 30.3919, 50.9, 37.6411, 39.2933, 15.2667, -1.039, 37.5247, 48.8167, 47.9631, 53.3567, 33.3761, 38.1872, 43.0361, 38.9803, 40.6158, 42.1197, 47.1694, 39.3, 41.75, 36.9306, 40.5003, 39.1333, 37.9033, 37.8233, 46.5167, 46.4333, 44.5167, 40.8125, 47.5108, 47.433, 50.8281, 44.8, -6.293, 19.21, 38.8247, -34.583, 41.15, 42.9486, 44.3547, 37.6667, 45.1969, 36.8003, 45.6044, 44.5075, 40.5819, 51.7, 55.8333, 55.8333, 40.2167, 50.55, -21.017, -31.37, -25.75, 42.1164, 50.75, 42.33, 48.767, 54.583, 41.6833, 39.717, 48.6753, 42.6006, 64.4014, 69.62, 64.4167, 58.483, -3.32, -1.333, -20.017, -20.15, 48.8, 37.53, 35.1411, 55.1333, 41.6764, -43.0903, 42.3653, 40.4808, 42.08, 46.8167, -33.3567, 48.6833, -24.8885, -24.8667, -37.7163, 36.7736, 37.5139, 30.9594, 49.3833, 24.233, 29.3414, 34.2006, 34.1867, 37.7, 65.56, 42.4833, 47.6167, 47.6167, -31.0, 44.7742, 44.7833, 44.7853, 24.95, 42.3558, 51.0317, 39.5, 37.0925, 44.0333, -17.7425, 32.5067, 42.5417, 39.3061, 41.7944, 42.6508, 44.4833, 40.7747, 36.0467, 39.2447, 36.0603, 44.4683, 40.7833, 43.3, 43.3333, 49.2667, 49.2833, 30.7586, 30.7406, 40.8803, -41.0661, 34.2103, 42.7772, 54.2333, 54.3833, 43.595, 43.2192, 48.1667, 49.25, -34.9997, 43.3656, 43.7, 43.8397, 39.8833, 40.183, 53.05, 61.3667, 41.7769, 45.5167, 35.1, 45.5397, 54.0, 28.945, 28.95, 28.6664, -42.7097, -33.655, -33.6858, 38.683, 55.8389, -28.77, -42.2811, 47.5833, 40.8414, 38.2611, 38.9, 42.9131, 46.0544, 47.7947, 45.9647, 53.45, 57.4, 35.4028, 53.2567, 42.82, 45.1331, 41.75, 52.817, 39.7403, 58.6667, 58.6656, 38.467, 36.5803, -80.0, 44.0908, 68.75, -28.6399, -28.6388, 32.6694, 52.367, 75.533, -26.183, 32.8964, 15.467, 48.0864, 39.6553, 43.5, 34.9817, 39.35, 21.52, 18.6, -46.83, 21.867, 22.87, -35.9383, -35.9371, -8.517, 39.5064, -16.05, 50.9167, 34.5822, 26.33, 33.8083, 44.2656, 36.5008, 40.2686, 23.26, 35.1072, -14.05, 40.8, 39.2331, 38.5669, 38.5714, 14.8, 22.31, -16.6, -16.8736, 31.2667, -16.9333, 39.2047, 30.1, 37.0422, 42.3167, 30.1333, -7.15, 50.43, 8.925, 40.9258, 44.2, 38.2769, 37.5531, 22.533, 22.65, -21.91, 43.6667, 49.1667, 39.8167, 43.6308, 51.1167, 51.1167, 51.1, 33.8586, 34.4833, 34.0906, 32.5133, 36.1092, 37.6128, 38.6278, 42.6314, 33.3064, -34.6345, 38.5961, 3.55, 3.4, 41.3111, 41.3075, 39.8997, 18.83, 28.4658, 55.25, 36.1414, 53.2833, -26.8017, 45.8833, 42.7778, -31.467, 38.7, 21.24, 21.4, 34.2167, 43.2667, -29.05, -27.7072, 44.05, 50.2167, 40.0111, 40.2847, 44.5733, 45.5506, 69.1, 69.1, 39.8667, 43.3333, 38.5667, 36.0519, 43.3306, 38.2167, 33.59, 32.0289, 34.2428, -34.0391, 53.2833, 45.53, 30.8458, 34.9039, 49.4667, 35.8833, 49.05, 49.15, 49.15, 32.7214, -2.25, 31.1903, 52.4167, 7.928, -20.05, -19.9225, 46.0958, 44.0667, 37.3167, -52.55, 49.95, 50.0167, 19.85, 43.8719, -23.0, -7.217, 32.6233, 11.9, 41.567, -22.75, -27.38, -7.0, 37.0158, -29.68, 41.924, -20.45, -24.05, 54.1333, 43.78, 48.0181, 34.3617, 42.3458, 45.5489, 45.5625, 21.5783, 32.8236, 37.8, 38.2486, 33.3, 37.0375, 38.8167, 29.6703, 53.0333, 52.95, 68.4333, 39.05, 39.0483, 40.6944, 35.9092, 40.138, 26.8639, 42.8453, -2.55, -13.47, 24.53, -15.667, -35.3049, -35.2667, -35.3, 44.7183, 41.4342, 21.033, 18.18, 30.1383, 35.5453, 52.4, 31.5589, 33.9153, 41.0167, 38.333, 40.6, 61.0183, 44.3489, 46.4847, -29.946, 40.7436, 38.46, 45.8833, -33.9057, 18.02, 36.0617, 41.6517, 43.3056, 35.5167, 32.6714, 44.5772, 40.1433, 63.3953, 34.9806, 44.7167, 38.46, 38.1678, 45.9167, 29.8706, 40.1706, 36.1533, 46.65, 40.883, 25.28, 22.667, -20.51, -33.9, -34.833, 48.7833, -77.22, -35.7549, -35.7529, -43.4886, -43.4892, 40.567, -32.833, 64.2333, 64.2333, 64.2333, 66.65, 66.5833, 37.2253, -40.6828, 35.2325, -31.633, 68.4667, -36.9655, 59.9833, 73.65, 73.333, 57.1333, -34.3728, 68.8667, 38.9536, 43.95, 64.95, -27.0314, 50.0, -33.5372, -38.4306, -38.4319, 58.65, -38.0573, -38.8556, 40.017, 70.1667, 69.0333, 46.6667, 61.7833, -38.4931, 50.7833, -34.18, -34.2, 51.9333, 51.9333, -28.5, -33.93, -33.965, 50.017, 50.1667, -35.8426, 58.63, 68.93, -18.71, 33.5311, -8.081, -5.206, -26.933, -4.577, -19.543, 15.2136, 38.2917, 48.1, 21.85, 39.93, 39.1, 39.75, 39.5, 46.8667, -6.787, 19.78, 42.517, 43.083, 49.1167, 49.0833, 48.4167, 48.85, 49.51, -8.378, 49.2333, 49.25, 41.367, 48.3667, 49.0167, 12.41, 47.0833, 1.833, -9.283, 45.42, -25.8, -19.8, -17.733, 49.8667, 49.9, 37.7308, 37.7797, -17.53, 43.2142, 60.1667, 41.367, 51.4878, 51.4, 49.1333, 49.2, 45.8608, -18.2553, 33.8161, 52.7167, 47.3333, 46.8706, 65.1892, 45.7667, -26.33, 45.15, 39.2883, 40.915, 54.933, 32.3478, 32.1783, 32.3336, 33.1281, 50.433, 52.8, 49.6333, 46.7447, 38.6308, 62.1, 62.1167, 49.4333, 49.4, 49.5, 41.4333, 39.9614, 38.0733, -21.93, -29.6889, -30.97, -24.8878, 48.9, -25.7964, 35.1756, 55.7, -7.333, -26.07, 43.4839, 39.1469, 41.0844, 38.4594, 49.173, -34.838, -36.773, 47.4494, 47.5089, 9.417, 33.6308, 35.0964, 28.4894, 42.065, 33.5972, 39.3594, 38.6583, 44.9667, 37.517, 46.425, 39.1253, 45.8678, 10.5, 29.7908, 34.2042, 47.7919, 32.1614, 32.7506, 36.2456, 36.851, 49.05, 53.7167, 48.2333, 40.8847, 36.1261, 30.1981, 49.0, 33.62, 23.167, 32.8878, 32.9947, 32.3222, 37.65, 42.2989, 44.5228, 37.6667, 46.9956, 47.2194, 43.5833, 44.3914, 16.31, 53.302, -66.283, 44.9711, 33.445, -28.97, 43.7447, -28.8755, -28.8775, 5.62, 42.7131, 42.7333, 42.8975, 46.8769, 59.2833, 38.0211, 36.6728, 47.3847, 42.0633, -34.67, 44.8, 39.95, 44.435, 39.833, -37.583, -37.5909, 42.5503, 49.3, 49.35, -37.0809, 44.7269, 37.3833, 39.2078, 33.9825, 51.2667, 39.4106, 52.5333, 37.75, 38.6514, 29.1344, -24.783, 14.9, 31.5022, -18.18, 35.6375, -28.596, -28.5, -28.48, -21.133, 37.47, 44.3667, -25.596, 28.3392, 52.1833, 18.3453, 37.4681, 41.9, 41.92, 39.6453, 38.9036, 48.3667, 48.8628, 43.3847, 42.1597, 38.1228, -4.86, -29.16, 4.8, 18.1189, 9.183, 25.95, 29.2, 18.5333, 46.93, -5.65, 41.1417, 45.3222, -29.533, 38.9, 38.9028, 34.0589, 55.0167, 41.5306, 38.7978, 43.5958, 37.6564, 37.7086, 34.2183, 48.9797, 34.9833, 47.4144, 40.3008, 45.2117, 41.5833, 39.7569, 37.7158, 41.8833, 42.05, 35.6667, -32.1297, -32.1267, 15.8, 22.71, 50.8667, 36.5408, 46.55, 40.5694, 51.2, 50.95, 47.85, 52.5833, 35.8297, 51.433, 39.1, 41.3136, 31.8075, 40.2914, 31.2581, 40.7325, 43.0431, 35.7553, 47.0644, 37.7067, 39.7242, 46.72, 55.217, 65.5667, 41.1222, 17.1833, 44.4, 46.3833, 32.8661, -15.7426, -62.42, -62.183, -38.3646, 59.25, -29.883, -32.95, 54.167, 51.4, 48.27, 56.5, 36.7408, -27.65, 18.1547, 24.93, 49.4, 49.777, 44.224, 48.95, 38.3, -32.7886, -32.8093, 52.42, 35.89, -26.9, 37.0, 36.9, 49.3833, 23.75, 36.97, 41.08, 41.4, -6.2, -6.2, 36.0286, -32.98, 25.2833, 53.55, 62.283, 47.5167, 15.8, 34.5, 33.617, 66.5906, 40.85, 40.9, 39.8447, 46.05, 44.5036, 44.5042, 36.9178, 43.735, 43.7667, 42.2031, 39.9353, -30.367, 36.95, -27.296, 49.2833, 40.0397, 46.5192, 19.36, 67.5111, 35.7061, 33.2058, 41.35, 43.9, 29.05, 34.68, 40.367, 38.733, 44.25, 28.2, 28.233, 25.85, 35.17, 37.933, 44.8497, 35.5, 41.3978, -13.1672, 35.6831, 12.6, 37.6703, 37.6769, 55.283, 41.55, -3.73, 50.2, 49.7833, 20.3, 29.52, 19.98, -27.117, 35.9086, 35.9333, 19.5, 47.8167, 47.65, 50.4667, 48.133, 27.5892, 56.9, -17.58, 23.13, 41.5833, 39.0831, 41.0164, 50.467, 46.8667, 34.0039, 36.9272, 39.4761, 48.3833, 32.78, 32.8986, 32.85, 38.3139, 38.3794, 38.65, 43.5833, 43.0603, -26.4139, 47.2833, 42.5503, 41.0347, 38.0328, 38.1386, 46.2833, 46.25, 28.9275, 18.3331, 37.0522, 35.2236, -36.4335, 47.9833, 43.0597, 45.6833, -20.0464, -20.0781, 48.4617, 41.6, 50.8167, 36.7775, 44.8, 44.75, 46.05, 65.0167, 48.067, 46.85, 46.4831, 46.9667, 36.8225, 41.6569, 47.05, 46.35, 46.3414, -43.95, 41.6875, 50.3333, 42.3833, 40.6, 31.4714, 44.4, 45.4667, 34.4225, 35.0311, 18.28, 47.0511, 42.1744, 44.8786, 36.3211, 50.067, 45.6528, 37.15, 52.917, 34.1847, 39.1814, 39.2203, 35.432, 47.8344, 55.3, 43.9833, 45.5167, 48.9333, 50.8, 43.2292, 43.2167, 45.5833, 45.9, 40.967, 30.667, 37.4, 33.75, 40.7394, 25.8, -31.333, 40.7667, 34.7319, 38.115, 49.65, 60.4, 63.03, 48.3667, 52.78, 52.533, 42.7572, 36.7672, 25.25, 25.25, 34.5964, 39.6261, 34.9, 42.8239, 37.9747, 68.75, 57.65, 35.1108, 40.3033, 48.5153, 63.35, 39.2167, 45.0167, 34.6847, 46.65, 46.65, 18.505, 55.6833, 34.54, 50.4667, 39.1547, 48.2733, 41.1519, 38.8219, 41.1522, 25.517, 18.783, 19.883, 16.51, 35.6, 49.7667, 41.77, 42.1397, 41.7861, 41.7372, 41.995, 42.1208, 41.7833, 42.4167, 41.8833, 16.58, 35.983, 27.1, 27.0833, 34.5019, 35.0489, 64.0917, 64.06, 42.2, 39.7119, 39.6911, 47.9967, 47.883, 18.52, 50.5728, 42.3, 28.633, 34.3317, 33.285, 34.4386, 34.4272, 34.3494, -15.683, -36.5833, 39.775, 39.8233, 39.3744, 49.1667, 49.0833, 49.1667, 43.9772, 42.7036, 42.5769, 38.7983, 17.55, 44.0328, 38.8, -19.117, 12.6333, 8.539, 35.6875, 4.9833, 37.9333, 47.843, 35.2, 48.5883, 51.2667, 33.9753, 38.3331, -20.2, 30.7806, 41.0517, 32.0, 32.0061, 62.1333, 47.0167, 29.2703, 52.0831, 61.5319, 14.233, 39.8, 51.0887, 43.7667, 48.083, 53.5, 46.45, 26.733, 53.7, 28.4675, 70.6167, 14.7333, 42.65, 13.3167, 36.62, 42.06, 41.783, 35.57, 36.63, 29.583, 35.82, 13.367, 48.983, 51.283, 45.517, 49.017, 35.733, 47.8206, -43.489, 37.1278, 17.7028, 17.7469, 1.9833, -10.45, 41.7594, 32.64, 62.8256, 10.483, 64.23, 37.9, 41.783, 34.83, 36.22, 46.86, 49.068, 58.7333, 58.7333, 53.55, 53.5667, 53.55, 58.7333, 41.3975, 53.833, 49.8333, 46.65, 7.45, 25.017, 49.083, 39.6, 45.1, 58.0833, 38.65, 17.45, 44.167, -7.733, -7.7, 51.633, 37.8131, 38.4442, 36.4661, 42.95, 47.63, 39.4203, 39.1169, 39.1033, 39.0431, 39.1, 43.3208, -11.083, -38.95, 47.4122, 38.1706, 39.6106, 33.9, -6.75, 44.067, 24.95, 28.2, -25.533, 28.52, 19.717, 27.13, 27.367, 27.393, 38.9892, 23.733, 37.3, 57.767, 45.0833, 32.8203, -32.2, 34.1369, 36.3225, 53.7167, 44.9167, 34.68, 34.9325, 48.3667, 50.0, 50.0167, -33.8226, -33.8364, 40.7244, 42.72, 41.1922, 44.8817, 39.2683, 39.2956, 34.1864, 41.7239, 35.4833, 35.4564, 33.6164, 39.2553, 39.3731, 36.5472, 33.6631, 44.9367, 44.3742, 46.1081, 35.11, 51.7917, 32.1678, 49.1333, 31.8708, 34.8878, 46.6108, 36.4486, 35.6408, 39.3739, 40.5208, 48.9672, 56.3333, 38.9239, 44.5781, 47.5711, 51.65, 51.9833, 64.05, 51.5167, 37.1319, 39.8667, 39.8833, 44.7592, 45.2, 32.3139, 34.6603, 38.4933, 41.7333, 28.4558, -22.8239, 50.05, -33.7011, 30.3636, 41.4131, 33.7942, 36.2903, 41.5175, 35.2203, -33.7081, 26.7422, 47.1889, 32.8339, 33.0561, 39.3672, 35.0028, 34.9319, 35.5014, 38.395, 44.6228, 41.7947, 35.0247, 30.8178, 51.15, 38.9408, 69.5833, 35.21, 37.1453, -20.6664, 54.1833, 46.7047, 32.9544, 44.4, 38.8, 45.205, 49.1167, 45.0167, 40.8797, 34.4289, 34.5989, 34.3833, 49.7167, 58.3667, 46.8, 46.7831, 70.4833, 70.4833, 70.4833, 36.1356, 35.3683, 40.9139, 40.9383, 39.8958, 50.6, -4.083, 39.9847, 45.15, 18.133, -31.5389, -31.484, -11.03, 42.6667, 43.95, 43.9667, 50.283, -17.42, 38.4461, 35.6414, 49.0667, 51.2, 51.2333, 1.0, -12.183, -3.833, 30.3875, 50.1333, 44.835, 44.5147, 44.4139, 44.3367, -13.7606, -13.7642, 47.6822, 47.7667, 42.55, 37.0911, -30.3107, 45.67, 47.0567, 39.8717, 39.8333, 11.033, 40.2, 40.15, 36.28, -38.3933, 39.3925, 42.6631, 30.5333, -37.7239, 37.2733, 41.9622, 44.6333, 55.2208, 53.6167, 54.4167, 43.2667, 42.5333, 44.35, 44.8611, 31.8281, 49.5667, 49.6333, 45.15, 45.9167, 45.2, 39.0911, 46.8833, 47.2428, 44.3158, 19.277, -6.03, 47.2167, -29.5407, 39.2425, 45.4833, 45.5794, 64.925, 64.8603, 38.9833, 30.5892, 35.0781, 44.5, 31.6419, -20.5534, 41.775, 58.1833, 58.1833, 40.6983, 42.0169, 6.9, -34.5, 38.2506, 23.2, 51.9333, 44.8711, 32.3978, 36.9936, 39.1014, 38.81, 22.1, 31.1681, 45.8944, 52.77, 31.2503, 33.9486, 35.9167, 35.6381, 45.725, 41.1453, 32.1667, 46.8814, 33.9706, 38.8169, 33.9831, 38.9422, 40.4, 32.7039, 38.4167, 29.6989, 31.8297, 33.4678, 37.1764, 39.1661, 45.6444, 32.5181, 41.4639, 33.65, 37.4333, 41.2864, 32.5161, 39.9833, 40.0781, 39.9914, 39.8167, 39.9047, 39.1875, 48.5472, 48.5833, 67.05, 70.4322, 45.8667, -9.347, 45.3667, -37.3417, 46.4667, 11.117, 39.3814, 47.8, 49.2667, 16.25, 34.2625, -31.297, -45.783, 49.7167, 49.6833, 41.7061, 41.5569, 9.57, -32.4, -8.25, -8.25, -19.033, -36.83, -23.43, -16.25, -23.4, 40.2394, 35.4072, 31.5514, 24.7833, 48.5558, 35.4111, 43.205, -31.38, 39.5514, 43.1953, 37.9833, 48.5397, 45.1539, 11.9333, -33.0664, -33.0682, -33.0818, -33.0833, 45.2325, 47.5361, 39.7994, 40.6211, 53.083, 43.3203, 53.91, 41.7333, 49.6167, 46.6644, 39.6556, 48.1794, 30.3303, 30.3567, 30.2364, 44.22, 36.3697, 18.9, 41.7706, 48.0803, 51.7667, 34.1942, 33.8314, 35.0833, 8.683, -29.004, -29.0347, -30.6143, 36.1075, 45.0108, 45.4167, 44.2, -15.4486, 47.8667, -28.1681, 46.7667, -36.2939, -36.2318, 49.3, -31.2712, -30.9776, -30.9753, -37.2906, 42.7167, 47.405, 18.0667, 60.3925, 60.4875, 40.2569, -34.6333, -34.6299, -34.6411, 42.1131, 40.2, 43.25, 31.5333, -27.35, 34.9939, 67.8333, 43.8, 47.05, 34.1122, 47.0833, 38.3139, 47.4667, 47.4678, 39.4833, 51.0833, 43.1872, 19.2, 42.9589, 64.2, 38.2022, 49.5167, 36.0975, -22.02, 31.985, 34.305, -31.317, 37.8442, -31.4, 48.5167, 60.4889, 60.5561, 39.6167, 44.9197, 41.5481, 34.8792, 51.841, 41.2, 49.3167, 34.5181, 45.8833, 45.8269, 48.9333, 48.95, 36.4197, 40.9886, 42.1342, 39.9389, 31.78, 43.9572, 45.0167, 45.0333, 49.1167, 49.05, 31.3456, 33.8, 52.0667, 52.0833, 52.0667, 34.1492, -18.053, -13.155, -25.467, -21.55, -37.433, -35.9887, 18.3267, 27.7839, 27.8, 27.6833, 27.7792, 35.2489, 36.9911, 40.2833, 47.0167, -13.33, -27.446, -32.3292, 41.9167, -36.2003, 32.1225, 32.0311, 50.0833, 50.0667, 37.3444, 37.3031, 46.55, 42.6, 38.4864, 40.55, -19.083, -19.0, 44.6342, 44.5078, 40.75, 19.06, 40.3708, 40.2403, 51.5167, 45.3167, 43.658, 6.35, 43.7917, 43.7178, 51.7775, 44.1094, 52.733, 47.17, 43.9611, 46.0336, 65.3458, 38.5731, 42.5167, 38.3703, 39.8358, 40.6242, 28.4567, 45.8003, 46.0625, 47.25, 47.9167, 47.9544, -34.3749, 44.1667, 38.6758, 45.1833, 39.0189, 48.2072, 49.7667, 49.7167, 49.6833, 39.7811, 42.7667, 50.1833, 39.8158, 41.8, 45.2964, 45.3333, 33.5972, 35.5497, 30.5272, 37.8106, 52.0333, 41.9903, 35.0592, 48.8167, -33.8449, -33.8451, -33.8087, 41.2708, 49.9167, 21.452, 18.43, -45.55, 38.2833, 17.38, 15.78, 44.2833, 36.683, 44.4333, 37.4903, -32.16, 57.18, 46.2333, 51.7667, 40.4506, 40.4953, 37.5222, 49.0992, 44.23, -38.1348, 49.6167, 49.5167, 49.4833, 44.8503, 31.4072, 37.7617, 48.2667, 38.8725, 44.1667, 40.4597, 40.6669, 53.033, 43.465, 42.8967, 46.5667, -5.167, 42.7, 40.0028, 41.9919, 27.75, 57.35, 42.4603, 41.7958, 41.7611, 41.7608, 53.6, 43.3894, 44.1, -41.7256, -41.7219, 38.8739, 38.9628, 48.1889, 49.1, 37.9806, 41.0372, 49.0833, 49.1, 30.7797, 37.745, 38.3636, 40.6092, 45.17, 37.9833, 51.0333, 45.3575, 44.1167, 45.6, 31.3072, 42.7364, -26.8094, 69.2833, 43.4167, 40.86, 47.8014, 48.9075, 33.6517, 40.1667, 33.1111, 33.5133, 36.0147, 35.9508, 29.6333, 29.6333, 54.6333, 54.5333, 45.6414, 39.0, 30.2408, 34.2097, 34.2083, 11.15, 49.6333, 43.8333, -18.2044, 37.6664, -7.633, -6.43, -28.63, 18.3347, -12.66, 28.6794, 42.99, 46.7833, 31.9461, 39.3333, 21.06, 26.98, 18.79, 35.995, 35.0883, 14.8, 7.9, 11.767, 40.0667, 24.78, 18.883, 29.0892, 44.15, -15.55, -15.65, 40.2333, 48.1503, 50.083, 37.2167, 24.765, 34.1925, 42.8833, 35.3117, 56.8331, 54.5, 38.4833, 49.0833, 34.005, 55.1, 10.5, 45.5333, 39.6419, 37.0167, 54.717, 42.4667, 37.6, 53.0333, 20.27, -31.6494, -31.6219, 44.4, -28.0706, 69.3667, 50.85, 43.9331, 20.95, 62.033, -34.967, -25.417, -25.517, 40.3667, 38.7586, 40.2667, -39.9322, -17.5736, -25.3139, 40.6742, -6.23, -18.75, 35.9803, 47.3706, 43.7744, 43.7331, 31.7672, 41.8328, 20.467, 48.6033, 53.8731, 32.9897, -13.6, -13.52, 52.3582, -16.4514, 38.3769, 49.6667, 49.6333, 49.55, 45.2333, 50.8167, 31.9544, -0.479, 28.45, 51.0783, 14.13, 38.9783, 59.66, 16.083, 49.7333, 34.5328, 32.9203, 46.6667, 14.733, 23.711, 25.4831, 52.75, 36.7, 43.583, 65.2667, -27.1605, -27.1839, 38.9386, 38.4547, 51.7, 36.0072, 36.0167, 45.3167, 45.3, 25.7, 38.9, 44.9464, 33.9881, 32.8978, 32.7333, 32.8519, 32.6808, 45.8667, 6.793, 34.77, 41.4086, 43.6561, 24.05, 40.4, -30.2761, -30.2772, 46.1833, 44.6167, 28.883, 39.2667, 39.2647, 33.412, 11.786, -20.7278, 16.044, 65.54, 36.43, 41.4, 46.0086, 41.3714, 40.05, 29.0567, 45.6611, 38.1, 34.1175, 50.2333, 40.3, 42.9281, 11.228, 50.367, 76.77, 44.7192, 42.9447, 42.5653, 42.5708, 36.5869, 37.6528, 40.1389, 45.8167, 40.4397, 19.52, 29.05, 10.867, 26.1667, 46.0264, 35.2342, 35.667, 51.3, 40.467, 48.083, 27.05, 45.1667, 33.75, 34.3011, 42.6781, 49.8817, 41.1144, 64.167, 48.26, -36.5353, 7.9833, 45.6, -9.083, -12.4239, -12.4227, 43.4136, -6.867, -6.5, 41.8, 49.55, 43.3667, 32.9711, 40.1, 55.867, 51.1, 51.1, 51.1, 30.2506, 47.8, 7.07, 46.1833, 41.6117, 47.6575, 51.2667, 41.2492, -68.583, 38.7167, 38.535, 32.1667, 46.8167, 64.05, 64.05, 64.05, 55.75, 30.98, 29.1828, 46.3153, 35.4717, 39.9061, 39.7633, 39.5936, 44.5564, 16.05, 37.85, 31.2, -30.667, 70.1917, 46.8, 40.8, 44.3736, 44.55, 39.2636, 40.0786, 44.1833, 42.2833, 44.3256, -39.4764, 42.3194, 58.4333, 58.4333, 36.4622, 44.8919, 48.4, 45.4167, 57.63, 47.489, 47.6, 10.333, 34.5569, 39.8344, 34.6525, 39.8289, 38.4, 39.354, 43.3042, 12.467, 52.0614, 46.8997, 37.3739, 35.8272, 43.9944, 43.0908, 66.0689, 49.4, 40.4044, 39.3, 43.5764, 43.1744, 49.1667, 49.2167, 46.3911, 48.8019, 43.5833, 49.4167, 47.9742, 41.0661, 41.2783, 41.3375, 31.73, 47.8017, 40.46, 39.5, 30.317, 32.2167, 35.285, 33.4797, -15.7442, 29.0181, 45.0417, -26.73, 40.3175, 42.2558, 42.8667, 42.8667, 65.2167, 37.37, 36.917, 31.8769, -26.15, 34.0092, 49.1833, 40.615, 61.79, 61.83, 38.7531, 39.3375, 64.0839, 63.9647, 50.1833, 49.0167, 48.9983, 37.6908, 29.3842, 29.3783, 29.3667, 34.4311, 39.46, 32.2531, 45.2167, 41.42, 59.6, 52.5083, 32.5192, 38.267, 31.417, -25.9261, -35.5575, -35.5269, 41.9897, 42.0364, 33.8167, 55.0, 37.783, 40.4056, -8.749, 47.3181, 33.1992, 33.2061, 39.5703, 32.9619, 39.8328, 39.7633, 39.7294, 39.75, 46.86, 42.0628, 69.33, 28.45, 28.82, 34.0464, 31.82, 42.07, -17.3706, 33.5597, 32.76, 44.45, 53.3917, 40.1833, 39.3011, 32.8569, 46.6667, 46.6833, 39.2872, 36.4381, 33.6267, 39.6725, 11.1, 30.4, 34.9772, 36.75, 41.5339, 41.7367, 45.9983, 42.4092, 44.7242, 46.8372, 42.2314, 42.2333, 51.2, 49.767, 45.8667, 38.4, 26.6033, 41.53, 35.6111, 48.1167, 48.1069, 47.9853, 37.63, 44.5817, 44.5833, 37.2269, -41.1708, -41.18, 34.2211, 68.65, 38.8128, 32.4, 37.48, -30.65, 52.1014, 30.7244, -25.17, 41.9342, 52.9267, 30.4347, 30.8428, 39.8717, 44.3867, 26.2833, 26.983, 48.7142, 37.3292, -18.23, -14.4, 36.9861, 42.8667, 43.1833, 35.2947, 39.5667, 40.6172, 39.7086, 27.483, 46.8911, 47.1944, 36.075, 52.05, -20.535, -7.3, -12.3, -29.6694, 52.586, -33.95, 49.4169, 13.373, 44.5339, 43.8906, 44.1342, 47.38, 65.3197, 39.05, 73.5, 35.1842, 39.0333, 50.7325, 28.6806, 48.5708, 44.0992, 59.05, 45.2128, -8.5667, 34.4092, 39.6261, 45.2575, 6.65, 43.0167, 34.5858, -62.183, 38.1, 30.033, 58.53, 35.083, 40.2442, 40.5086, 40.4378, 51.3167, 14.65, 50.9181, 9.6, 41.9667, 41.9667, 45.9167, 43.2336, 68.7781, 44.8, 45.7511, 41.3, -20.17, 45.917, 39.4, 45.5525, 41.835, 37.4389, 37.7858, 37.894, -2.7, -2.53, 24.55, 34.683, 33.8697, 11.55, 59.61, 48.6, 46.55, 46.733, 39.3575, 41.0072, 56.617, 51.65, 44.1331, 42.9608, 43.1, 37.7608, 41.9675, -6.167, 54.167, 39.6, 25.261, -32.517, 54.883, 55.12, 47.333, -4.18, 43.6, 41.8, -36.35, 50.75, -74.5, 53.7333, -75.117, -77.317, 44.5667, -80.37, -36.3697, 30.0719, 47.9431, 40.1275, 48.067, 19.1, 19.167, 39.83, 32.85, 17.483, 36.6206, 61.4, 38.2167, 46.6833, 39.3239, -33.5719, 40.1636, 59.9003, 20.517, 13.917, -15.3797, 36.79, 43.1639, 43.7822, 14.03, 14.033, 41.6833, 43.2242, 45.2167, 40.8833, 51.5131, 36.85, 18.3361, 17.6, 31.3214, 4.02, 42.1794, -25.9319, 31.345, 31.4889, 31.4583, 42.75, 42.7972, 48.1156, 50.1667, -13.8345, 47.62, 50.0983, -43.3167, 39.1467, 36.4819, 39.1333, 45.1872, 41.9856, 39.6269, 39.5633, 47.85, 40.33, 39.9717, 40.0222, 57.2, 43.6656, 48.0475, 59.7537, 40.4878, 62.09, 41.65, 36.2836, 42.5833, 51.133, 51.0233, 51.1167, 61.8869, 43.8081, 43.7306, 30.2133, 44.6331, 49.35, 35.567, 51.45, 46.3333, 45.8833, 46.6383, 45.0333, 62.2, 68.233, 52.1833, 30.05, 49.7833, 49.8333, 30.0481, 47.2442, 41.4167, 41.4917, 34.4833, 63.6772, 47.7333, 40.5667, 40.5333, 33.3597, 40.535, 36.45, 24.6278, 9.34, 25.255, -32.2206, -32.2385, 46.8167, 32.5575, 32.0628, 53.3639, 43.5397, 44.2436, 41.1783, 38.4558, 42.57, 42.54, 42.3978, 46.8667, 40.1678, 38.8522, 24.7706, 48.167, 69.4, 45.4539, 41.8678, 40.1839, 46.0167, 51.3953, 41.15, 44.317, 51.717, 49.096, 36.3, 36.9358, 43.4117, 46.8369, 46.7681, 46.8367, 46.8333, 9.3, 33.8847, 35.8731, 55.05, 24.267, -66.667, -12.635, 56.0039, 46.3167, 32.7481, 34.5011, 48.75, 48.7333, 50.2333, 45.6167, 54.0531, -45.9, -45.9, -32.0159, 43.9578, 43.37, 40.15, 59.19, 51.05, 42.4933, 37.9497, 42.8333, 35.3247, 47.3467, 41.1833, 42.6667, 56.4505, 53.1333, 73.9, 42.183, 48.5167, 45.0469, 44.8658, 48.0667, 37.2833, 37.2911, 24.05, 37.1431, 34.0, -33.35, -29.97, -37.8233, 43.1433, 43.9997, 44.1833, 54.7679, 45.6333, 39.6, 25.83, 38.5494, 51.2969, 40.6, 53.895, 51.1833, 55.7, 40.8, 37.9878, 62.867, 22.3667, -32.7103, 41.1072, 45.3833, 46.5022, 57.202, 37.615, 35.9986, 36.0003, 53.5, 70.1297, 55.33, 40.85, 45.717, 52.7, -12.805, 68.73, 56.85, 40.917, 50.25, 37.35, 59.02, 40.1, 45.5, 20.85, 40.117, -66.717, -67.4, 31.909, 38.4758, 64.7856, 64.7761, 64.7767, 50.9333, 49.5833, 39.65, 33.8089, 32.8692, 36.5575, 28.7569, 39.9278, 45.9169, 61.2967, 44.4856, 47.7, 50.6333, 50.6333, 49.5167, 49.4333, 37.75, 32.3989, 50.2833, 52.25, 32.2003, 44.9067, 46.4333, 51.9589, 42.1103, 48.4469, 46.5833, 45.0833, 43.8786, 44.3669, 42.2356, 45.1519, 42.6742, -33.033, -33.0, 39.3592, 46.4667, 43.1333, -38.1156, -38.1072, 44.2839, 41.7653, 39.3167, 39.7347, 42.0153, 44.8664, 38.55, 51.2817, 40.4681, 49.4558, 48.7208, 48.1008, 49.8531, 44.4828, 44.4667, 36.3092, 40.9656, 39.65, 38.85, 38.7833, 49.8, -36.1647, 36.213, 52.2833, -40.9928, 36.0164, 44.6722, 45.9267, 63.98, 41.3853, 46.3694, 43.3728, 43.6242, 38.8025, -34.7111, 55.95, 41.667, 32.505, -35.1121, 53.55, 53.5667, 53.5667, 53.5667, 53.3167, 53.3, 53.5667, 53.6667, 53.55, 53.55, 53.4167, 48.4239, 47.35, 47.2653, 39.6, 61.38, 61.36, 53.5833, 53.6, 53.5833, 53.5833, 34.9, 14.0, 51.1831, 53.1233, 53.1231, 39.8333, 39.1181, 56.89, 44.2333, 60.73, 51.25, 65.283, 66.3497, 33.6133, 48.8789, 60.4672, 64.6667, 58.507, -37.2091, 44.85, 47.6294, 51.4494, -6.66, 39.805, 47.85, 50.4717, 51.5042, 32.4, 26.13, 41.95, 45.8903, 56.8331, 47.7331, 64.7, 56.78, 41.033, 53.0831, 59.24, 48.82, -83.133, 54.95, 29.55, 38.607, 39.95, 34.1408, 38.2, 54.167, 51.1667, 51.1333, 48.6833, 50.9, -26.3, 38.3486, 42.3653, 37.8639, 0.533, 0.404, 52.633, 38.3306, 39.5997, 33.1461, 67.05, 58.1917, 30.3492, 37.3475, 41.9872, 42.0628, 45.5669, 33.9403, 46.32, -82.617, 30.85, 42.3161, 36.3644, 44.2139, 37.6797, 39.3811, 36.3097, 32.9161, 42.7753, 50.0167, 37.0058, 43.0, 49.9333, 38.8853, 49.3, 40.8603, 40.8289, 43.5992, 43.6292, 46.85, 35.8, 45.8356, 35.3925, 37.2775, 53.6833, 41.6878, 53.8833, 40.85, 46.7822, 51.1967, 46.0108, 46.9692, 47.0339, -38.2456, -17.5521, -41.0828, 46.35, 46.4167, -33.6501, 38.7297, 44.5333, 42.265, 44.7303, 44.15, 48.9903, 38.8681, 47.0092, 36.8, 61.25, 42.0997, 42.1594, 44.5431, 46.25, 55.1, 49.7167, 44.3186, 43.65, 32.7819, 54.067, 51.1333, 39.1506, 50.9292, 50.4825, 33.6692, 42.1717, 46.3992, 48.0164, 40.2872, 47.9239, 41.3814, 41.3461, 39.2922, 39.2953, 48.2019, 24.93, -16.5, -16.513, 28.0, 31.073, 24.1, 33.667, -41.943, 16.65, 32.8006, 24.95, 32.8856, 5.691, 33.6472, 32.7669, 32.8167, 9.98, 16.17, 37.7833, 37.8183, 33.2208, 13.617, 26.33, 30.5667, 36.9, 34.15, 32.633, 19.85, 34.5892, 34.6344, 35.0381, 28.97, 13.167, 13.2, 29.23, 33.5, 19.2, 31.7833, 31.8117, 31.8347, 31.8111, 24.77, 24.46, 22.58, 23.95, 24.76, 22.5, 35.5489, 36.3467, 18.76, 22.6, 23.78, 20.53, 23.18, 18.77, 49.1, 33.6667, -17.812, 20.33, 36.5928, 8.633, 22.26, 47.6581, 44.4972, 44.567, -0.5, 53.3892, 53.333, 63.483, 29.52, -23.5694, -29.93, -23.5267, 49.0667, 49.0, 48.4333, 43.4675, 40.6497, 45.55, 42.3667, 39.0, 53.617, 48.1383, 43.1025, 43.8544, 39.6811, 42.4694, 32.8711, 48.6833, 27.95, 31.7806, 36.6983, 38.4294, 38.3306, 41.5067, 50.95, -23.0314, 41.1833, -27.3, 27.9775, -30.53, -50.483, 46.6167, 40.4181, 42.0858, -29.8183, 46.8167, 50.9894, 47.8525, 50.7167, 38.2789, 36.4194, 36.3333, 58.45, 66.3797, 37.567, 61.1333, 45.3394, 69.05, 69.0419, 68.6025, 68.5708, 44.9094, 31.85, 30.283, 45.7083, 45.4, 31.2975, 37.7697, 47.6983, 53.3667, 49.2167, 49.2167, 53.6, 6.467, 12.0, 12.7, 39.3583, 47.3078, 43.0303, 49.1317, 54.2, 39.317, 61.2667, 39.0, 36.6, 48.533, 43.65, 54.3008, 50.9844, 38.3, 35.2164, 41.8036, 42.25, 42.08, 41.6281, 58.64, 58.6, 47.6367, 53.3, 10.89, 40.0458, 53.967, 31.933, -41.4506, 57.12, 51.33, 36.1422, 50.27, 39.71, 39.957, 41.867, 37.7686, 45.7181, 18.61, 49.86, 47.8867, 51.1844, 33.1211, 37.4667, 53.6492, 32.6167, 32.751, 51.883, 39.1078, 55.3167, 59.39, 59.38, 39.78, 38.8592, 51.2553, 35.9989, -33.83, -33.6825, -3.9, 38.2428, -14.91, 21.01, 60.2206, -42.933, 48.4333, 67.89, 31.398, 44.35, 68.47, 51.4, 43.6156, 40.8314, 44.5078, 44.5078, 48.692, 55.9, 45.2689, 34.8242, -29.02, 39.3831, 42.4153, 64.9111, 40.3767, 49.2167, 49.3833, 49.3833, 43.4036, 43.4075, 51.6667, -30.4, 51.15, 35.624, -41.08, 53.05, 52.7667, -31.6797, 33.1144, -34.1754, 35.1931, 32.0111, 44.1278, 30.4917, 33.5628, 61.2331, 39.5169, 45.7644, 79.9833, 37.8253, 39.6014, 56.4833, 48.8978, 36.4164, 40.8097, 51.9978, 45.2172, 54.1356, -52.4, 41.265, 37.9647, 38.0442, 42.5978, -29.183, 31.4625, 43.9167, 47.4581, 36.0717, 44.65, 61.4053, 40.0136, 47.9753, 47.9078, 25.8489, 31.445, 39.6381, 31.4156, 50.7417, 38.533, 38.6, 21.3167, 42.2611, 21.65, 43.35, 50.73, 33.2631, 48.7667, -32.2464, 44.8464, 52.9667, 12.07, 44.2914, 59.0267, 45.833, 57.2, 60.983, 22.35, 47.433, 64.8367, 64.8172, 64.8039, 64.8342, 40.0739, 47.6333, 44.6, 38.2736, 39.3478, 40.2703, 41.0211, 47.1906, 47.6153, 31.7322, 43.3167, 38.3806, 43.3428, 30.5467, 34.705, 39.4667, 40.6422, 43.6447, 56.0667, 59.533, 45.0203, 45.0319, 18.3103, -2.883, 43.62, 26.5581, 49.6833, 27.1353, 56.9, 58.16, 34.3667, 38.9333, 65.11, 39.4572, 39.4167, 44.8578, 40.0803, -36.8708, 41.95, 35.6392, 44.2939, 37.6475, 38.6783, 55.38, 60.6167, 35.12, -27.05, 60.26, 36.8839, 32.03, 3.92, -65.4, -22.805, 27.05, 63.7233, 62.5422, 30.8264, 46.9253, 44.3092, 40.2539, 40.7342, 37.7922, 40.9667, 44.6333, 44.6889, 41.0222, 44.6697, 36.6897, 36.7436, 40.2539, 37.3264, 45.3, 38.7667, 37.014, 57.9, 57.92, 62.2, 62.2, 42.1867, 65.33, -13.312, 56.7181, 28.9, 52.85, -3.864, 45.0364, 49.8667, -29.77, 34.2661, 41.7, 33.6847, 42.8503, 36.0097, 36.1006, 35.0583, 34.9914, 35.15, 45.6667, 32.6319, 24.47, 38.83, 29.755, -12.18, 47.8756, 47.27, 19.7, 19.5667, 23.6, 34.6528, 36.9614, 31.05, 41.22, 46.0931, 36.695, 51.15, 45.0331, 40.3667, 46.2919, 43.7, 43.7333, 48.2, 52.8, 30.6669, -3.85, 49.4833, -37.8775, 51.0167, 44.8325, -62.1, -77.9, 32.5339, 39.0875, 49.3333, 47.6456, 38.2306, 44.367, 36.6, 49.15, 47.817, -21.442, 50.4292, 49.9817, -28.817, 42.2642, 43.6806, 56.3, 43.9158, 59.72, 38.9664, 60.24, 41.0136, 41.0461, -41.6428, 36.3164, 62.04, 53.48, 68.0007, 43.78, 44.1217, 48.6172, 45.09, 51.0833, 51.05, 45.0667, 45.4581, 42.7, 32.9903, 42.4722, 47.1292, 47.5167, 42.3833, 38.9361, 39.84, 62.1031, 42.5519, 31.7108, -16.9267, 39.8811, 35.8717, 49.7667, 36.3642, 40.7167, 39.6, 62.58, 39.2814, 35.1611, 35.145, 44.8142, 35.1442, 57.69, 25.1422, 40.9317, 44.0517, 46.4581, 29.6339, 62.73, 46.9328, 39.3375, 48.8, 46.8217, 62.8228, 37.5894, 43.6197, 40.5739, 40.6483, 54.8103, 35.45, 35.4267, 45.8, -40.0911, 48.35, 42.9667, 42.0792, 54.6833, 54.7667, 54.6833, 60.6141, 59.06, 46.9728, -6.11, 38.7103, 33.0364, 38.2422, 43.8, 45.9336, 34.2933, 34.1853, 50.2392, 39.455, -19.88, 29.1333, -6.767, -27.583, 32.4333, 40.7831, 38.9128, 41.0, 49.7328, 61.85, 51.3333, 48.2975, 33.985, 36.9278, 57.093, 23.87, 41.53, 49.7167, 62.1167, 43.0167, 60.17, 30.74, 36.4328, 63.68, 63.76, 38.7, 43.7953, 43.77, 40.1167, 44.2781, 48.9333, 41.8183, -2.533, -33.3627, -33.3892, 61.4648, 50.15, 33.8228, 40.7131, 49.4833, 32.36, 44.0686, 52.4667, 48.7333, 43.2844, 35.2653, 45.5247, 45.3397, 47.3167, 47.9558, 48.7778, 44.2183, 46.0333, -26.213, -15.54, -14.93, -30.8453, -30.8389, 63.14, -32.1756, 46.2719, 33.0161, -3.767, 22.1833, -41.2039, 46.4833, 48.7783, 61.5, 48.9081, 52.2167, 54.3667, 54.3667, -32.783, 48.3042, 58.7667, 58.7667, 27.5139, 42.8833, 48.6167, 48.65, 53.8833, 66.2333, 66.25, 45.2969, 60.2333, 60.2333, 56.65, 56.65, 56.65, 67.4, 58.8333, 58.8333, 61.3167, 62.7167, 62.7167, 61.1833, 43.425, 72.0167, 31.4, 53.7167, 44.55, 34.6667, 61.7667, 61.8667, 61.7667, 60.0, 60.0, 60.0167, 54.45, 54.4167, 56.2333, 38.8333, 66.5664, 44.9983, 41.8367, 47.5636, 44.4139, 42.9736, 60.117, 33.6028, 35.8922, 42.4, 36.7939, 28.5033, 46.4856, 48.4583, 54.4, 67.5333, 41.0061, -20.55, 40.9842, -1.667, 24.91, 16.77, -21.217, 41.1183, 44.6481, 38.1847, 40.2986, 38.2022, -27.27, 50.1483, 31.0328, 35.1803, 39.5536, 40.1, 41.4003, 30.8186, 42.3297, 40.0953, 38.6756, 29.8233, 42.05, 43.4703, 35.9417, -38.1481, 62.52, 39.9425, -31.917, 59.7167, 54.0833, 35.8456, 34.3861, 30.2392, 38.3167, 38.2875, 37.5739, 40.4167, 39.4161, 45.8667, 45.9667, 45.9167, 37.5464, 42.4497, 64.08, 64.08, 60.14, 36.7647, 38.4583, 40.3142, 38.8672, 26.55, 28.9844, 42.2972, 27.8722, 48.2028, 50.9281, 48.0, 53.8292, 48.5, 45.05, 37.5422, 41.3331, 41.43, 43.3936, 41.3119, 33.8081, 38.5778, 39.3833, 47.2856, 45.33, 46.1333, 36.7672, 36.78, 48.4544, 36.9969, 48.5222, -41.9953, 40.505, 34.64, 31.3894, 33.7333, 51.117, 63.8, -34.2739, 46.45, 49.8, 49.2, 43.517, 38.9039, 41.63, 56.87, 63.19, 39.66, 71.0931, 39.1653, 36.7381, -20.03, 35.0667, 43.9906, 56.3, 55.23, 48.4983, 42.905, 32.7939, 32.35, 47.8306, 41.8714, 39.5092, 35.1333, 36.6667, 38.6803, 38.6586, 46.1358, 40.5764, 40.5756, 30.5997, 42.5836, 40.2842, 43.0428, 31.1853, 41.6, 47.2386, 26.1019, 26.1408, 26.1969, 26.0719, 37.2308, 40.6222, 44.41, 40.26, 26.585, 26.5361, 48.0119, 27.4419, 27.4981, 44.2444, 31.05, 61.2272, 39.05, 38.515, 37.8428, 35.3667, 35.3331, 49.5167, 31.8717, 30.9072, 30.9119, 34.4667, 36.5442, 33.0094, 35.2681, 41.0167, 40.9706, 32.9733, 32.8192, 32.7667, 32.8339, 46.05, 66.5706, -21.233, 48.1919, 27.33, 28.4444, 70.3167, 47.233, 35.216, 40.65, 32.7, 36.05, 33.583, 37.233, 34.45, 50.55, 46.1581, 33.8719, 38.8472, 34.2614, 41.8978, 43.3497, -8.5, -8.517, 32.63, 32.683, 45.6, 61.2928, 48.2, 48.5458, 36.8, 26.2667, -14.317, 32.93, 46.983, 26.083, 54.367, 33.88, -24.667, -37.5679, 49.15, 46.6275, 15.417, 64.5033, 34.0219, 34.422, 32.2261, 45.7833, 36.2967, 6.13, 6.1, 32.7744, 36.3661, 34.3006, 29.6814, 33.6461, 34.2719, 32.8347, 29.6919, 60.283, 45.5, 36.6633, 36.6542, 30.12, -22.809, 1.817, 36.8061, 43.8833, 64.7408, 46.2222, 43.85, 40.9464, -12.028, 48.7, 39.9133, 36.1833, 29.4631, 38.8203, 67.14, 35.5144, 40.03, 66.1667, 46.9728, 46.7, 41.1739, 29.3, 29.2733, 53.28, 63.7833, 48.7833, -1.87, -1.9, 35.7164, 40.7167, 48.95, 49.2667, 48.95, 48.9333, 52.75, 37.333, 48.8667, 37.771, 46.6, 42.7, 44.0569, 34.85, 25.867, 16.248, 10.33, 23.05, 52.567, -8.883, 52.517, 31.8667, 37.9931, 37.9272, 58.7167, 44.1011, 60.2064, 44.2203, 45.0317, 43.7464, 58.88, 40.7242, 43.6167, 59.433, 30.383, -0.467, 39.0, 47.483, 58.05, 38.28, 47.2333, 9.336, 41.3367, 38.9333, 47.6458, 47.6539, 51.1306, 45.8333, 48.9667, 31.617, 37.47, 35.8917, -25.0544, 48.8333, 48.7833, 41.8458, 38.665, 26.3, 35.2656, 44.1678, 42.8394, 36.85, 70.6333, 31.4144, 50.5167, 38.6825, 37.9458, 35.6878, -27.5456, 26.1, 61.4063, 40.35, 42.8456, 4.5, 60.65, 60.72, 62.4, 11.883, 24.75, 44.5564, 45.0333, 44.9072, 45.0133, 37.8683, -25.6258, 43.3144, 39.25, 37.08, 36.3, 58.7, 35.6306, 41.35, 14.033, 39.1, -38.085, -43.1639, -43.1589, 60.5173, 49.983, -37.22, 48.95, 44.567, 50.95, 39.18, -25.82, -25.42, 58.16, 13.5, 10.485, -34.92, -37.4, -36.582, 25.8, 25.37, -22.62, 29.096, 16.75, 25.767, -27.75, -35.696, 41.4511, 40.5314, 56.57, 31.0383, 42.8767, 46.25, 23.55, 13.483, 41.4514, 43.5706, 44.42, 52.383, -7.139, 6.117, -34.0, 6.5, 6.8, 39.7053, 47.0792, 33.3619, 38.6333, 30.6836, -18.3, -18.2922, 38.9331, 38.6892, 43.6333, 45.1333, -34.017, 52.8167, 47.6014, 49.7833, -28.7953, 50.8819, 42.2, 42.2056, 40.655, 55.7833, 43.2389, 51.7269, 49.7725, 45.0194, 45.0136, 77.617, 38.6683, 30.152, -21.7, 32.4, 25.146, 35.1, 36.24, 45.432, 31.033, 51.3, 45.5394, 41.5697, 69.3538, 36.151, 49.4, 49.3833, 40.4731, 47.6017, 65.33, 50.6008, 35.4, 46.52, 29.75, 43.5381, 43.5606, 32.9481, 33.1975, 35.9886, 37.0147, 51.1, 48.5653, -25.03, -25.0341, -79.983, 56.3667, 56.35, 44.2644, 44.3394, 32.7464, 64.9767, 37.0031, 50.9664, 51.565, 50.6333, 50.6333, 50.6333, 46.3292, -31.4628, 37.5081, 40.917, 41.9117, -38.65, 42.4167, 16.9, 40.0833, 68.6333, 68.6333, 58.4561, 51.2333, 51.3, 57.71, 68.6667, -23.8697, 40.8822, -23.8553, 50.1833, 43.9758, 38.8072, 45.4178, 47.03, 37.0014, 48.1925, 48.2138, 39.7358, 58.133, -12.2, 50.8833, 47.1156, 54.2389, 49.5667, 39.0753, 44.3333, 47.1064, 51.735, 41.5167, 49.65, 55.0989, 62.1086, 42.9403, 35.7269, 31.9881, 38.9689, 46.5186, 43.35, 43.3247, 54.79, 42.0833, 38.9339, 33.3217, 48.9833, 46.0089, 45.6583, 41.0097, 39.5181, 45.5261, 43.6833, 61.1, -28.95, 39.5039, 45.1667, -29.6953, -29.678, -29.7368, 32.2342, 30.2717, 46.14, 33.3767, 33.3503, 66.8167, 56.93, 65.28, 43.0492, 53.7983, -33.7622, 77.72, 6.166, 15.483, -23.567, -40.869, -48.783, 49.3167, 43.7667, 44.5667, 37.9, 45.8, 51.55, 52.4317, 60.08, -16.667, -16.633, -15.91, 40.18, 38.0, -18.217, 40.9567, 40.667, 53.6, 48.9761, 40.1064, 45.8081, 45.8167, 51.3, 36.8964, 50.1833, 17.3, 37.7081, 35.3444, 51.6333, -20.3422, 31.4403, 42.4036, 44.7667, -27.939, 40.1667, 48.2, 48.1806, 49.7833, 32.8833, 47.2417, 28.6617, 49.5753, 36.417, 15.742, 60.7192, 52.4, 52.45, 23.03, 12.55, 40.1, 29.5175, 47.95, 39.3669, 45.6214, 64.2381, 36.5914, 34.75, 43.9281, 51.5, -35.5147, -31.2994, -28.5211, -28.5481, 38.8, 53.3167, 42.095, 56.217, 26.75, 53.1, 46.245, 42.8947, 8.15, 8.3, 45.8833, 45.8833, 45.8833, 36.909, 51.2, 52.983, 54.3, 51.1631, 43.8667, 46.067, 0.52, 52.75, 33.294, -33.3949, 41.5575, 41.5272, -32.0486, 44.55, 49.7667, 57.7158, 40.9394, 50.8, 58.4, 58.3942, 48.6606, 51.08, -40.35, -34.8085, -34.7495, 44.75, 13.983, 44.3539, 45.3014, -12.2741, 42.4833, 38.4, -32.25, 42.5872, 42.5372, 46.2, 49.665, 42.7833, 43.5667, 48.4181, -29.6823, 33.1203, -33.283, 43.95, 59.6, 48.7903, -24.75, 53.5744, 53.3856, 37.1367, 37.133, 37.1894, 45.3833, 43.4158, 48.25, 47.1, 53.9, 55.1833, 48.3833, 49.2, 31.3028, 36.0956, 36.05, 36.0528, 37.2036, 30.4183, 48.9333, 47.0333, 47.75, 49.0333, 47.9667, 47.9428, 47.9217, 43.0622, 40.9717, 40.9611, 39.0422, 39.1342, 39.1197, 40.2669, 40.185, 45.1775, 47.7472, 47.7517, 46.6667, 43.7047, 47.9711, 42.8939, 53.1833, 53.15, 47.2436, 43.8833, 43.0175, 30.7189, 45.9414, 60.7275, 43.35, 34.5356, 41.65, 27.23, 39.4608, 13.067, 45.7728, 40.6019, 35.1664, 42.4244, 40.4861, 36.7394, 48.2675, 34.2594, 47.3, 32.9506, 67.0333, 49.0833, 40.7817, 47.4011, 44.1333, 42.6261, 43.95, 47.0258, 50.5167, 39.2042, 40.2306, 38.4306, 49.8833, 44.9167, 36.4261, 48.9167, 43.4667, 43.8925, 45.9917, 46.8008, 44.6542, 38.3353, 38.2922, 46.3872, 47.0833, 37.4, 47.0831, 41.061, 47.0, 42.2167, 42.2167, 39.0056, 38.3758, 36.6128, 40.7578, 45.6333, 50.4667, 47.4733, 47.4597, -33.53, 36.7425, 37.7333, 45.4167, -62.217, 50.48, 41.5461, 40.4022, 35.2353, 39.6439, 36.1056, 39.7858, 41.2981, 43.0167, 45.6167, 41.1019, 32.7019, 36.0811, 37.2592, 37.6025, 39.3475, 31.79, 33.0286, 33.3592, 34.8231, 35.64, 41.4167, 43.2025, 37.2, 34.8461, 33.1678, 45.4622, 34.85, 40.1, 34.1997, 38.8161, 44.9833, 33.4964, 44.4983, 44.5331, -37.2614, -16.7614, 54.5667, 46.55, 40.3833, 39.8789, 41.5167, 38.9906, 37.8331, 31.8931, 34.0219, 34.8831, 35.5206, 34.06, 43.2356, 54.0978, 54.25, 50.6258, 33.7608, 44.4167, -33.9029, 45.37, 48.6167, 36.5939, 49.0333, 44.4908, 44.5169, 54.5833, 65.9, 43.2333, -34.2487, 46.5667, 41.7203, 54.3381, 44.5175, 40.4864, 39.65, 53.6, -13.9747, -19.6, -31.48, 49.1139, 42.76, 42.4078, 48.1997, 54.0731, 43.3833, 41.3511, 43.7186, 47.2667, 41.7139, -38.2241, 55.0167, 42.7467, 37.4078, 31.1964, -42.9831, -42.9858, 43.35, 53.317, 50.2675, 61.28, 37.2822, 42.3647, 36.2631, -54.283, 40.4833, 26.82, 20.72, 40.6608, 20.67, -9.4333, 26.1, 31.925, -24.083, 41.18, -33.01, 13.4836, 25.93, 25.46, 16.47, 21.0, 9.027, 26.85, 32.383, 24.07, 23.217, 19.9, -4.28, -16.73, -22.783, 41.22, -23.43, 7.211, 14.5833, -10.817, 64.22, 43.4, 36.467, 43.55, 33.511, 51.7833, 49.4331, 64.9, 52.7, 25.333, 35.583, 35.2133, 48.448, 23.4, 10.583, 26.583, 57.133, 40.317, 30.3772, -32.3634, 62.1592, 49.95, 46.4119, 42.3833, 40.32, 40.78, 40.467, 24.65, -35.0778, -35.0479, 38.2, 48.1603, 65.0072, -30.9841, -31.0261, 38.5253, 36.7044, 40.2092, 43.3833, 34.3344, 34.3347, 50.2833, 47.02, 18.2583, 31.412, 53.03, 38.88, 32.17, 58.59, 17.9, 27.72, 59.32, 60.15, 58.4111, 51.8889, 33.6267, 35.8161, 32.8819, 41.6686, 35.8517, 46.65, 42.7858, -2.2, 36.6817, -30.2126, 38.617, 59.3831, 59.3867, 59.3831, 47.667, 26.233, 50.033, 52.95, -26.1831, 47.7, 39.6953, 35.2831, 38.98, 32.539, 64.1417, 64.1406, 48.5167, 44.367, 33.117, 40.533, 31.9175, 36.8, 19.15, 29.8894, 38.6197, 52.1667, 53.95, 50.367, 37.0, 38.033, 34.55, 52.7167, 25.6, 38.85, 51.4142, 42.8114, 39.65, 39.7078, 42.9667, 46.5667, 34.246, 57.29, 49.9475, 39.97, 55.3503, 32.8, 20.0, 27.433, 49.25, 41.45, 47.433, 65.0192, 59.2381, 59.4503, 59.2433, 60.7667, 36.1389, 36.77, 60.0977, 37.567, 41.817, 20.7603, 63.38, 52.4367, 34.2314, 44.4633, 15.317, 44.8772, 37.4725, 45.0333, 45.0, 44.65, 44.8833, 44.8833, -6.3, 41.567, 56.45, 51.5144, 29.4706, -75.45, 63.77, 64.27, 48.7714, 32.5111, -18.2292, 58.32, 68.7833, 68.7833, 68.7833, 56.67, 63.4667, 64.173, 35.117, 34.9, 34.717, 51.53, 6.117, 53.635, 53.4792, 34.85, 35.2, 61.1828, 61.0539, 52.0831, 43.9664, 39.933, 42.817, 46.2553, 31.7044, 39.7425, 34.0967, 43.1667, -37.6486, 39.3644, -20.3531, 43.25, 43.2333, 43.2833, 43.3, -37.825, 50.1833, 34.8872, 38.2794, 60.3008, 55.3, 30.5031, 35.585, 51.5608, 42.7561, 32.8442, 61.66, 42.15, 50.1667, 20.7947, 63.6, 39.6969, 44.1186, 47.1686, 49.8333, 48.3, 49.2, 49.2667, 36.3158, 36.3189, 30.233, 52.7214, 46.0667, 59.8167, 59.7733, 59.8083, 59.8439, 38.3706, 35.2028, 33.65, 39.6667, 39.7233, 52.4656, 21.0333, 39.8, 43.7053, 44.1167, 39.7706, 56.01, 48.9989, 44.25, 38.2553, 61.0167, 33.067, -18.0631, 65.8269, 35.57, 41.8042, 34.7167, 34.7433, 38.58, -17.917, 45.75, 43.8322, 47.4667, 50.3667, 47.6833, 48.783, 46.5, 45.7317, 37.7822, 40.8667, 41.6403, 40.0892, 48.5353, 26.2028, 26.2281, 46.4328, 45.3192, 62.62, 62.6331, 64.5867, 43.1647, 47.4828, 45.85, 51.7333, 37.7408, 41.6331, 40.2817, 40.2172, 42.6858, 36.2667, 44.6819, 37.4833, 44.3628, 42.0333, -83.0, 59.07, 58.2506, 34.3697, 44.3744, 43.3311, 41.9381, 41.7361, 40.4356, 42.6167, 44.4333, 53.4167, 47.6856, 34.395, 36.3756, 48.7167, 34.3519, -43.2006, 43.6747, 45.35, 42.5483, 47.8083, 45.6667, 51.65, 32.9667, -5.062, 31.7, 42.6422, 50.855, 40.6472, 29.7653, 36.3886, 44.7597, 40.6044, 71.9831, 32.6775, 24.067, 44.4169, 50.433, 12.189, 35.2167, 31.2547, 46.7225, 61.0667, 62.05, 63.95, 49.1667, 40.9317, 68.3167, 6.917, 61.15, 47.75, 40.3031, 34.7872, 46.0333, 42.7594, 48.5431, 48.5428, 50.2833, 50.2833, 19.4297, 43.0031, 53.2167, 50.6, -31.8846, 38.7817, 32.2842, 48.9667, 41.4764, 43.7139, 38.5172, 38.55, 47.5667, 65.2017, 40.4925, 40.8, 40.5233, 61.9872, 33.7044, 40.55, 50.7839, 38.8669, 44.4503, 38.8586, 37.6542, 46.0261, -34.5194, 60.85, 60.8333, 60.65, 42.6828, 42.5119, 42.5972, 46.5172, 55.2, 31.8328, 31.3625, 46.6311, 45.4486, 38.6175, 34.2333, 38.6003, 63.8675, -53.017, -53.1, 35.6842, 47.8667, 46.5917, 44.7053, 51.478, 49.0833, 38.9333, 27.3194, 34.3167, 40.4917, 34.3925, 44.8667, 40.175, 46.9075, 20.18, 24.7, 48.3758, 41.15, 62.42, 62.41, 49.35, 49.3667, 31.867, 50.9167, 33.6483, 44.9661, 37.55, 49.4, 48.6731, 50.1703, 49.1456, 49.9678, 52.4342, 61.1994, 51.0425, 69.6006, 54.6, -32.82, 34.6997, 34.5211, 36.5381, 46.7186, 46.6056, 54.1764, 37.9, 60.7528, 39.0717, 52.2478, 67.7414, 71.0633, 56.04, 56.03, 60.1044, 60.1042, 60.1667, 60.1, 60.2531, 29.867, 65.8078, 42.3208, 63.66, 63.65, 42.7742, 46.4833, 48.7, 45.0667, 49.0667, 52.683, 57.24, 34.73, 32.1808, 35.3297, 36.3481, 37.7558, 53.8, 46.1667, 41.2647, 36.0942, 33.8128, -89.0, 33.2372, 45.3653, 39.38, 35.3331, 34.21, -17.39, -17.5851, 50.4667, 50.9333, 34.8172, 44.3256, -19.9, 52.1278, 38.6656, 50.1, 51.0058, 46.665, 19.158, 45.8289, 45.8619, 45.8258, -28.2061, 37.7717, 36.3825, 34.8039, 48.08, -23.4422, 46.6667, 58.39, 50.8456, 51.0167, 57.42, 69.5667, 50.1517, 41.1056, 50.867, 51.5903, -25.322, 51.8578, 51.6267, 43.5908, 57.39, 37.9614, 45.9925, 46.0139, 40.95, 40.9528, 23.8, -38.1355, 35.28, 35.25, 35.0, 25.8175, 39.4833, 47.3864, 40.9, 35.7425, 34.6189, 41.3214, 31.9844, 24.25, 26.933, 57.2178, 27.8189, 39.0733, 35.0567, 31.8814, 31.9478, 50.4667, 44.5222, 44.8444, 40.265, 53.45, 34.0903, 45.8333, 39.2083, 58.6167, 58.6167, 54.105, 35.9672, 43.9064, 41.3061, 45.6833, 50.4833, 29.8286, -13.233, 37.5581, 35.283, -39.38, 50.7381, 44.3083, 53.45, 32.0161, 32.9203, 39.1611, 39.2333, 43.6542, 45.5139, 54.4517, 47.4389, 41.9353, 38.6644, 34.47, -33.41, -33.4915, 43.9325, 39.3617, 43.2994, 39.3756, 51.35, 19.7192, 32.2167, 44.0167, 34.833, 8.367, 45.9919, 43.3, 50.3683, 42.2269, 39.4, 48.3478, 47.8992, 33.367, 41.3072, 42.3, 34.4, 29.167, 33.317, 37.875, 32.217, 41.4, -9.8, 53.5333, 62.6162, -42.9, 41.5422, -42.8339, -42.8897, 34.9894, 32.7264, 32.7125, 42.8667, 46.63, 46.783, 56.92, 37.5317, 31.3747, 51.1833, 66.7417, -24.37, 51.9908, 50.3131, 51.535, 50.1364, 34.8358, 50.3242, 59.4033, 66.2167, 44.4167, 63.08, 38.6844, 59.03, 47.8017, 40.817, 54.3128, 40.9678, -42.717, 64.39, 66.7333, 55.733, 50.65, 50.65, 34.9094, 45.2236, 35.0567, 48.1989, 51.0, 40.4517, 49.321, 40.9667, 40.9167, 61.62, 60.91, 36.6831, 43.6667, 54.1667, 42.7461, 42.7989, 49.1289, 43.6478, 55.4908, 42.3528, 36.8483, 34.6808, 60.9167, 32.85, 38.0517, 49.3833, 25.9989, 33.3258, 34.8219, 57.15, 58.33, 63.595, 64.217, 47.05, -33.9795, 46.9914, 39.4578, 39.8333, 40.5453, 47.45, 47.8831, 50.7328, 15.333, 49.3292, 43.6058, 31.0767, 32.81, 59.7444, 59.7161, 59.7458, 59.6419, 25.4833, 25.5011, 52.47, 29.12, 29.3364, 29.36, 42.7919, 43.9281, 44.85, 46.6833, 37.7, 22.3, -9.417, 52.333, 21.3239, 21.3153, 46.9833, 65.5858, 45.6847, 52.7489, 36.865, 58.1072, 57.8, 41.0478, 40.4664, 53.3908, 39.3667, 41.4, 32.8111, 49.3667, 49.3667, 60.8983, 55.45, 76.5, -33.9306, 36.7167, 37.2992, 40.1592, 33.7092, 49.3667, 49.2833, 36.8492, 46.9667, 46.9728, 40.1, 52.4, 55.86, 31.8456, 43.4406, 52.167, 50.1519, 64.296, 48.6142, 57.89, -10.5844, 52.3667, 42.4172, 32.9375, 44.9406, 38.6667, 51.6, 40.6306, 41.3167, 39.9336, 35.7706, -36.6697, -36.6613, -33.8511, 38.52, 39.6678, 43.9481, -22.483, 67.0831, 37.133, 64.12, 64.09, 35.895, 37.9969, 43.4378, 47.6, 34.5128, 34.29, 47.6156, 33.817, 44.3119, 44.3592, 46.2061, 46.1236, 29.6408, 40.5831, 61.1833, 36.5644, 33.8847, 54.4, 29.5189, 29.6167, 29.6381, 30.0675, 29.98, 29.4717, 29.7456, 29.9167, 29.7667, 38.35, 48.017, 37.3858, 37.4664, 44.0122, 42.2292, 43.7828, 41.7175, 42.3167, 49.4833, 39.3533, 41.2167, 45.6, 42.9764, 39.1, 50.25, 41.9, 42.98, 19.92, 40.417, 35.38, 30.13, -9.89, -9.5, 20.18, 12.583, 23.983, 34.48, 47.0667, 61.73, 38.1042, 42.7831, 52.8167, 52.8667, 52.8833, 52.8167, 42.25, 56.0333, 30.005, 58.63, 21.15, 37.2594, 37.28, 42.0831, -20.8447, 34.0211, 37.1639, 39.1439, 20.38, 40.167, 26.65, 37.5, 16.75, 26.9, 61.1667, 18.33, 26.42, 46.9, 36.9167, 51.417, 44.6856, 45.77, 53.7667, 51.717, 18.1333, 37.8117, 52.2667, 42.7181, 47.5333, 42.7197, 34.1164, -36.1039, 50.5664, 47.2336, 38.283, 62.75, 62.75, 48.3425, 48.3847, 36.767, 56.39, 49.95, -36.2136, 39.7667, 36.5625, 45.05, 36.0028, 40.8556, 44.3564, 37.2275, 38.4014, 38.365, 45.9228, 38.3319, 30.7064, 36.07, 34.6439, 41.2403, 30.7439, 45.35, 30.0628, 31.4, 52.0678, 47.8667, 47.35, 27.15, 46.4625, 37.0153, 44.3636, 43.3167, 44.3981, 36.6992, 59.51, 49.383, 38.09, 37.9311, 44.9089, 38.0653, 53.2, 43.1667, 64.8667, -18.633, 41.665, 42.0, 41.6686, -32.4419, 37.15, 25.383, 41.4, 59.55, 43.7, 64.8292, 46.2942, 45.9353, 60.5956, -2.746, 47.1667, 0.61, 4.4, 40.0378, 45.3333, -20.01, -28.65, 38.8764, 35.417, 55.5831, 46.2447, 37.28, 33.9336, 43.8383, 43.5139, 43.3456, 43.5317, 43.5164, 39.7033, 37.9333, 42.3942, 60.38, 43.3708, 61.89, 61.87, 54.367, 44.6881, 64.45, 33.7572, 35.0, 67.47, 39.93, 69.3833, 69.3667, 49.4833, 37.1364, 24.5, 53.467, -22.83, 18.42, 18.35, -6.367, -25.733, 48.0428, 35.517, 33.65, 59.28, 54.183, 60.05, 33.633, 43.05, 47.4333, 47.4167, -11.583, 47.3833, 50.2167, 48.4167, -46.5, 47.6531, -22.333, -17.05, 48.0667, 38.3, 47.8056, 59.7494, 67.25, 67.33, 42.6286, 42.1039, 26.5, 26.724, 10.7, 62.6667, 62.7692, 63.0319, 8.44, 69.22, 69.2167, 69.2331, 48.0, 70.45, 40.6564, 37.9214, 26.4622, 44.3456, -5.533, 43.9, 32.8489, 40.5208, 32.8342, 1.617, 1.62, 24.667, 35.62, 72.4, 52.4167, 68.6069, 69.1403, 69.5756, 68.8489, 68.8483, 68.4319, 68.4142, 69.0478, 69.5072, 69.55, 69.0669, 69.0714, 37.467, 37.0, -26.9, 36.7981, 37.2364, 39.0647, 42.5269, 34.6989, 39.45, 39.4833, 39.4167, 39.0667, 39.825, 39.7164, 40.5972, 41.6317, 41.3656, 45.3833, 49.6167, 49.0333, 39.9, 42.3, 35.6236, 50.55, 50.5, 43.755, 39.8144, 66.0, 41.7417, 67.7, 33.7086, 22.717, 41.98, 52.97, 50.3667, 49.2978, 19.817, -18.6494, 48.7156, 46.6825, 46.6667, -23.867, 38.05, -25.8428, 59.9308, 61.9167, -17.5249, 47.2667, -1.967, 58.45, 43.7483, 46.67, 48.5614, 45.683, 59.555, 58.4667, 58.4667, 58.4667, 68.3, 68.3, 68.3167, -46.417, -29.7783, -29.7796, -29.7752, 57.4867, 28.8028, 35.6514, 53.85, 28.05, 19.567, 27.233, 37.9233, 42.9531, 41.6092, 41.6328, 42.5189, -17.717, 4.5667, 40.9, -27.6117, 45.4478, 63.75, 63.75, -20.3, -3.783, 64.52, -27.183, 34.633, 27.236, 20.68, -25.467, 55.633, 32.55, -11.3, 48.6167, 38.167, 24.256, 43.8167, 52.2667, 44.3247, 46.4656, 32.8167, 34.1472, 45.8183, 45.7858, 34.5853, 48.75, 34.6, 53.35, 40.1167, 32.8294, 18.4653, 47.6181, 78.7833, 78.8, 38.05, 56.0994, 39.83, 40.13, 40.133, 78.0667, 24.345, 38.433, 24.153, 54.9, -24.2591, 60.8167, 36.7, -2.705, 39.1, 36.573, 57.8667, 37.0, 24.9178, 49.5833, 55.5333, 53.85, 44.4167, 44.4189, 44.4167, 44.8128, -27.167, -67.17, -43.53, 18.717, 46.3197, 47.5833, 48.5833, 40.7939, 30.6, 37.75, 40.5, 40.9667, 45.685, -11.11, -12.51, -3.127, -4.267, -17.85, -21.2, 47.2256, 20.8, 42.4492, -13.35, 70.4831, -13.81, -18.95, -18.41, 53.983, 34.7633, 38.4931, 52.717, -25.0, 68.6081, 39.2833, -32.8999, 48.967, 60.6831, -22.317, 51.75, 52.2667, 69.1667, 34.15, 43.217, 34.683, 18.03, 20.7, 19.62, 16.77, 16.467, 19.0, 28.3089, 56.8331, 49.183, 45.3667, 38.267, 38.433, -0.35, 34.2, 23.2, -12.6594, -30.25, 45.6275, 41.9828, 33.2206, 31.5253, 36.3967, 37.3781, 37.5908, 43.4867, 45.3681, 45.5833, 30.4844, 31.9622, 39.7347, 30.2875, 30.2167, 30.3361, 30.2333, 30.3333, 39.08, 35.6214, 32.3206, 35.5931, 44.05, 42.2667, 35.1858, 38.7533, 41.5, 66.3797, 39.5667, 41.55, 28.4, -11.183, -33.8878, 37.7778, 42.805, 19.083, -4.783, 25.9, 26.817, 26.9, 44.35, -6.25, -6.183, 62.0167, 32.1103, 0.637, 19.55, 29.033, 56.683, 42.3031, -1.6, -31.117, 39.9233, 41.4992, 42.11, 46.9258, 46.8844, 37.25, 61.8592, 61.8564, 61.8856, -15.783, 56.3, -32.1011, 44.2167, 69.0, 65.98, 70.93, 70.9331, -0.353, 57.37, 41.9333, 41.9797, 60.25, 62.167, 63.44, -33.7964, 39.783, 44.567, 61.71, 25.6333, 46.2, 43.883, 30.5228, 33.9047, 52.8833, 34.4758, 53.2333, 52.9333, 52.8667, 62.6, -17.91, 23.4, 38.32, -2.567, 33.2544, 38.8417, 44.9381, 36.4236, 16.43, 29.9592, 21.7, 32.7692, 36.7222, 42.0347, 36.4161, 36.1222, 38.5911, 38.5853, 42.4942, -0.9, 33.517, 56.65, 49.6667, 35.7783, 31.6783, 50.9267, 36.48, 50.7167, 30.2003, 40.3611, 38.0333, 36.7506, 51.633, 34.7522, 42.7325, 42.7267, -32.4972, 39.1025, 49.2096, 40.7419, 31.7667, -35.083, -35.0936, -22.9494, 51.7967, 34.6578, 23.184, 41.2683, 31.65, 31.5075, 21.705, 38.1964, 47.7669, 53.5319, 31.35, -26.53, 21.917, 32.933, 27.117, 41.15, 22.62, 30.33, 37.033, 9.333, 40.345, 36.795, 36.817, 7.667, -26.6644, 36.6, 28.88, 29.3, 44.617, 22.02, 41.03, 0.45, 24.907, 13.0833, 41.133, 29.0, 39.767, 25.72, 25.068, 45.283, -19.83, -7.1, -17.73, 26.3, 62.6014, 39.6553, 39.3094, 49.85, 40.5333, -26.2, -26.139, 5.453, 37.5669, 35.9717, 60.4833, 30.2861, 40.3375, 44.0839, 33.7775, 16.7333, 40.3333, 52.283, 44.4233, 36.6003, 38.0633, 38.2547, 59.333, 60.8139, 66.6297, 18.31, 45.4731, 46.0167, 41.5033, 60.1781, 60.1244, 60.1542, 58.8653, -1.317, 33.5311, 44.6453, 35.8489, 35.8311, 31.4825, 30.8289, 39.7667, -33.97, 57.7514, 48.4333, 56.93, 20.18, 48.5617, 37.1467, 47.3144, 44.65, 47.4819, 47.3258, 55.41, -12.022, 64.73, 32.6161, 9.87, 6.165, 56.6, -33.83, 49.4667, 61.8792, -19.007, 41.7861, -7.169, -33.633, -33.45, -17.963, 9.994, 4.867, 70.77, 21.42, 46.65, 12.1, -21.8, -21.767, -24.393, 40.9931, -15.467, 33.0758, 33.0764, -20.6569, 50.9117, 21.57, 44.3833, 45.3497, 18.2264, 30.4453, 30.5108, 58.2989, 58.3567, 46.1333, 46.6, -34.546, 46.55, 41.3322, 41.0819, 63.6842, 63.685, 43.8, 57.333, -16.77, 42.4, -30.3081, 63.2317, 61.8456, 61.8919, 61.6777, 3.327, 44.0167, 46.95, 44.35, 62.4, 62.2, 62.4019, 45.1139, 53.2178, 60.3867, 9.58, 52.05, 48.05, 13.9833, 34.566, -14.45, 53.967, -33.9551, 43.8353, 11.138, 16.16, 37.967, 31.55, 51.1817, 50.0656, 20.5569, 37.6, 20.8997, -42.417, 19.7356, -3.645, -17.215, 35.67, 49.4253, 48.7708, -35.1, -35.1, 64.4256, 64.2831, 64.2814, 49.833, 49.2, 0.28, 56.9667, 56.9739, 16.95, 50.4, 55.033, 44.65, 64.2167, 64.3306, 55.12, 37.0, 37.068, 42.2347, 42.2833, 29.033, -27.7119, 63.327, -30.7847, -7.05, 2.155, 54.7167, 48.1892, 48.3042, 51.73, 51.7344, 44.7281, 50.5028, 56.73, 56.68, 64.3267, 50.6278, 54.57, -14.2964, -14.2961, 39.4, 40.6439, 41.1, 49.0667, 51.05, 62.4831, 48.3, 53.8, 48.65, 37.05, 50.6667, 50.7, 50.6667, 50.7167, 50.8167, 16.4833, -13.8, 50.067, 56.85, 37.0286, 22.1297, 51.0333, 50.7167, -5.9, 36.583, 14.017, 67.15, 11.13, 11.133, 21.45, 67.1297, 41.6767, 37.5264, 37.2506, 39.2, 30.05, 40.967, 37.7, 68.65, 61.8381, 41.1381, 10.38, 57.65, 38.6078, 38.7953, 34.433, 36.2133, 39.1208, 39.2972, 38.8439, 56.2, 21.12, 66.0933, 14.147, 20.9625, 49.4167, 49.4, 49.4, 70.5, 9.55, 48.45, 49.95, 24.9, 54.2, 49.8, 37.3, 44.95, 44.85, 39.02, 39.5, 55.15, 37.2, 45.6, 37.7, 69.4667, 69.4633, 53.7, 70.083, 46.883, 40.6, 50.0, 68.4419, 68.45, 68.44, 59.05, 61.5, -16.517, 62.3206, 18.55, 49.383, 50.202, 58.52, 56.18, 48.6775, 49.0392, 48.5833, 59.35, 28.9069, -32.44, -16.833, -20.7097, 40.562, 47.8331, 38.8, 59.66, 36.35, 38.7411, 62.1831, 51.633, -10.217, -10.2, -17.817, 33.895, 39.467, 66.337, 60.3667, 37.9842, 49.9167, 45.4, 15.467, 51.2978, 39.49, 41.3667, -33.6856, -33.6886, -14.4437, 27.7, 49.183, -33.7122, 50.23, 35.15, 39.85, 59.067, 47.8667, 32.5589, 62.4131, 63.1203, 54.8831, 41.08, 68.9967, 69.0167, 67.1386, 35.5, 54.1167, 43.7144, 14.4, 14.482, 38.78, 56.32, 45.767, 55.7331, 41.4, 39.3833, 39.3667, 40.7258, 19.4736, 38.8, 46.9, 47.65, 64.0, 12.572, 52.9981, 42.9389, 44.6661, 47.8967, 33.6667, 63.9667, 39.9833, 57.75, 48.5583, 35.6872, -36.098, 44.4, 44.4333, 47.8667, -41.2833, 39.9, 36.85, -31.6183, 42.25, 47.9422, 51.25, 47.5339, 53.7358, 67.9333, 49.95, 49.8667, 49.8667, 49.95, 49.8667, 49.85, 43.9014, 56.0333, 46.1333, 64.95, 53.5667, -6.15, 56.1, 55.25, 55.27, 66.5167, 66.5592, 65.8, 65.7831, 60.1531, 59.8692, 65.6725, 65.385, 41.8172, -31.077, 47.7242, 45.0, 45.0, 64.9831, 60.6692, 60.3667, 60.5797, 60.5917, 43.25, -4.1, 12.85, 34.3, 48.6692, 43.9072, 43.3606, 36.2253, 46.2111, 49.7833, 49.7833, 42.5608, 45.1967, 47.4172, 37.9567, 40.7592, 36.9031, 40.6489, 46.4864, 45.0667, 45.0667, 31.0158, 34.6033, 40.3967, 51.25, 40.7275, -15.95, -35.7236, 45.4, 49.2, 49.2167, 37.833, 30.25, 34.267, 35.7831, 51.9667, 30.0747, 34.5367, 52.8167, 52.8167, 60.27, 48.05, 46.75, 55.3567, 43.6842, 36.0333, 58.72, 41.2428, 41.0833, 44.4628, 39.4206, 36.15, 64.9156, 57.25, 57.25, 24.5667, 24.555, 24.5833, 19.7281, 26.45, 38.65, 47.617, -36.2304, -36.2254, 71.1333, 25.45, 49.9667, 15.6, 26.3, 25.667, 35.467, 46.633, 11.767, 49.433, 16.433, 37.5, 33.433, 38.55, 40.2167, 27.833, -34.675, 34.7558, 66.9767, 18.433, -16.1176, 50.82, 55.2339, 54.3756, 50.4, 16.63, -1.969, 39.3, -4.883, 62.2, 21.6792, 0.923, 45.85, -5.036, 48.1167, 60.32, 53.8333, 31.1333, 60.95, 42.9503, -3.433, 36.7, 52.6667, 49.1833, 45.9667, -28.3344, 31.0658, 37.7233, 56.9, 39.3167, 46.445, 59.3, -33.1414, 41.2453, -28.8, 49.6333, -15.6547, 38.4833, 40.667, 37.115, 37.4536, 49.6667, 51.5167, 10.05, 40.7167, 22.333, -26.5737, -26.5544, 35.8583, 59.367, 37.6361, 35.2, 35.2578, -35.6569, -35.7114, 41.2097, 36.5194, 41.4903, 44.2167, 44.25, 36.1033, 33.6775, 27.5311, 42.05, 27.5, 42.7239, 40.8606, 41.7436, 16.901, 36.2069, 47.7981, 32.356, -39.88, 18.297, 24.958, 27.901, 42.05, 58.6794, -62.217, 44.0167, 57.6131, 57.649, 53.0, 37.9283, 35.1967, 35.2975, 55.3333, 47.05, 50.2, 32.7247, 57.7667, 39.9, 69.733, 69.7255, 63.7833, 59.92, 48.15, 48.15, 41.73, 40.2058, 40.0972, 58.958, 44.6122, 58.6, 48.517, 45.083, 42.63, 59.33, 39.15, -33.98, 41.6167, 67.8497, 67.83, 43.8667, 39.6619, 0.5167, 31.495, 60.7806, 47.02, 63.58, 43.9, 28.2764, -0.1, 13.067, 25.933, 1.016, 44.933, 54.05, 54.0167, 54.05, 54.05, 58.1914, 67.4667, 67.6956, 67.7842, 68.0167, 68.1692, 68.2294, 31.96, 49.75, 38.7658, 38.8867, -6.083, 67.7317, 40.5, 41.22, 50.3667, 58.2003, 64.16, 62.1, 70.68, 42.2839, 46.65, 35.55, 55.7331, 41.5786, 42.1333, 42.2008, 42.1469, 62.1472, 55.58, 51.9833, 50.217, 50.8469, 51.1689, 53.9603, 51.5567, 51.7625, 53.5, 65.06, 49.6833, 48.1, 51.5203, 56.3167, 50.4333, 64.45, 48.2906, 59.87, 62.53, 62.5, 43.25, 52.25, 43.5, -29.78, 42.2833, 49.0275, 54.8, 46.3117, 41.3247, 38.8619, 35.8819, 35.8181, 67.5923, 34.7, 49.15, 50.3381, 40.8, 49.467, 55.033, 45.6, 35.67, 33.567, 54.3, 42.2, 44.4, 37.5142, 10.2333, 57.7511, 55.6831, 55.617, 33.2742, 35.667, 34.6, 60.45, 34.88, 64.75, -33.83, 40.55, 40.7, 59.5056, 61.2706, 63.8442, 63.8831, 40.4583, -4.717, 48.75, 53.283, 51.0831, 67.2789, 67.3, 55.083, 12.883, 69.53, 57.75, 48.606, 58.69, 50.8658, 50.9628, 37.5333, 55.1, 48.533, 56.45, 58.3, 68.73, 55.3, 69.6167, 69.5833, 48.433, 54.333, 46.3, 50.533, 52.867, 59.6631, 59.713, 38.9119, 51.233, 49.6, 47.6781, 38.3, 37.979, 37.5, 52.15, 42.95, -17.84, -28.2, 38.5086, 46.0714, 50.8833, 50.6333, 43.2831, 37.7333, 51.2675, 40.6, 60.35, 9.387, 64.75, 37.1, 41.75, 47.333, 7.3333, 66.8497, 46.633, 62.9344, 62.8831, 63.84, 48.8308, 50.0, 33.0583, 49.574, 48.6667, 63.45, 5.3544, 26.133, 56.84, 49.159, 13.167, 57.7331, 53.35, 54.2, -3.4, 25.15, 5.937, 47.633, 51.7528, 60.2864, 60.385, 60.4542, 60.3753, 60.5, 61.2331, 5.605, 67.25, 66.8667, 46.7667, 46.7667, -20.567, 5.2, 12.383, 60.6964, 60.8903, 66.7, 67.5697, -15.4818, 22.3167, 37.0, 66.0083, 37.5, 40.28, 48.217, 56.25, 11.25, 56.35, 7.5333, 9.467, 13.1625, 47.4333, 44.0331, 62.0346, 43.7167, 63.05, 63.16, 46.133, 55.0, 53.0, 43.6, 45.03, 49.383, 56.0331, 53.967, 67.37, 54.4, 56.65, 40.03, 57.133, 50.37, 46.53, 46.3792, 49.033, 40.0575, 48.05, 55.85, 62.8, 2.95, 45.3556, 56.33, 55.92, 62.2575, 62.2031, 59.31, 42.2, 47.9, 64.51, 50.2533, -27.63, 55.0, 45.433, 58.61, 48.4842, -26.1, 48.2517, 43.5667, 63.7169, 46.3, 48.03, 51.1617, 53.6956, 53.9717, 51.8553, 50.8503, 49.5192, 47.8069, 35.167, 53.55, 3.6333, 3.1167, 5.3333, 40.72, 3.62, 3.8, 48.881, 1.483, 58.983, 24.22, 47.58, 68.5333, 67.8167, 64.1189, -35.1712, 53.9031, 42.0333, 19.5494, 20.7583, 20.7008, -25.8428, 56.3, 39.1, 37.92, 42.533, 36.15, 32.817, 6.715, 26.333, 58.1, 48.5133, 58.717, 41.3, 60.3, 60.2581, 49.4289, 36.1, 43.4833, 59.517, 43.083, 25.017, 25.1, 35.9242, -15.7828, -15.7814, 49.2806, 28.82, 63.025, 62.9, 62.7983, -10.167, -10.2, 70.3289, 49.633, 54.367, 41.717, 49.933, 41.65, 34.144, 58.233, 55.4667, 37.8167, 45.25, -15.4875, 15.8, 52.0, 51.7667, -27.47, 7.467, 61.9489, 37.9, 42.95, 55.1, 40.23, 39.983, 53.2167, 60.7219, 39.417, 42.2, 42.9, 32.17, 58.1, 55.2833, 66.3681, 65.995, 66.1653, 60.9, 29.222, 53.3, 60.3933, 66.89, 66.9597, 61.4648, 63.4882, 8.7333, 8.7167, 35.1333, -18.933, -32.2258, -36.335, -33.1332, -36.8803, 36.2667, 58.08, 35.017, 49.5667, 35.34, 52.933, 47.333, 56.6, 36.13, 51.72, 44.85, 51.9, 48.2994, 45.3, 48.1333, 45.8167, 47.5667, 58.95, 27.167, 11.32, -34.133, -7.25, 49.3, -1.617, 45.65, 52.4667, 52.45, 44.6253, 41.0186, -33.73, 46.8167, 46.8667, 51.5333, 48.8, 48.2167, 51.8667, 48.2833, 54.7667, 63.1333, 45.6, 46.1833, 48.4167, 40.8072, -33.48, 40.7392, 48.25, -28.55, -24.1116, 68.5, -30.88, -6.73, 30.2192, 36.5192, 32.9069, 34.6639, 40.2964, 40.4122, 30.205, -27.81, 40.0633, 33.7997, 44.55, -50.333, 45.84, 45.5528, 41.6475, 35.0464, 33.5453, -34.456, 39.4689, 31.55, 48.3656, 48.3667, 39.2833, 60.9617, 49.35, -33.2, 67.76, -18.3325, 18.0331, 38.7667, 38.7303, 29.2694, 66.28, -18.233, 44.4667, 43.7022, 40.6, 40.75, 28.0206, 27.9914, 43.5492, 38.2044, 34.16, -37.8692, 41.825, 44.5994, 42.2414, 43.5667, 44.5833, 41.5269, 39.7489, 45.3333, 33.0642, 28.1042, 49.0667, 34.2467, 30.0206, -33.2833, 30.125, 38.0247, 30.1853, 33.8642, 44.3089, 32.3333, 48.8333, 44.1833, -37.2313, 39.9333, 35.2928, 32.8242, 42.5936, 38.9075, 38.9772, -33.1006, -33.1006, 34.45, 34.5031, 40.4167, 33.7542, -42.0067, 51.4333, 44.7167, 36.9825, 43.0803, 63.8933, 43.4483, 44.2489, 32.8067, 44.0644, 38.4931, 39.3183, -42.1178, 62.4528, 32.8522, 35.0967, 38.3167, -34.0398, 42.4308, 43.9981, 44.5619, 37.9411, 46.8667, 41.5167, -16.417, 38.0936, 47.0333, 37.4933, 38.07, -0.704, -21.94, 44.2394, 40.3597, 45.8333, -35.3288, 32.7228, 38.9, 45.6258, 38.9, 61.15, 40.7442, 40.6333, 40.7178, 40.6233, 40.6331, 18.283, 31.0717, 18.9167, 20.7894, 20.8292, 22.567, 22.8, 23.43, 39.7156, 44.4911, 40.05, 39.7333, 42.8278, 40.1203, 36.0828, 39.7556, 34.7411, -31.0164, 36.15, 47.13, 42.8153, 40.1167, 48.0833, 47.3767, 58.74, 57.67, 58.34, 42.55, 54.25, 54.25, 51.133, 48.7622, -32.97, 50.9, -33.28, 52.3667, 58.22, 37.0833, 49.1667, 42.9242, 42.9833, 47.83, 50.4, 29.8097, 65.0997, 31.58, 21.833, 38.75, 63.17, 52.2, 42.7803, 42.4486, 28.9517, 36.05, 22.033, 18.183, 45.5119, 22.5, 43.0608, 60.6219, 41.4233, 41.6117, 61.0392, 61.0439, 61.0569, 45.3833, 42.4333, 41.3408, 41.3119, -8.267, 61.0617, 27.5683, 47.8742, 39.65, 34.8831, 38.1817, -15.5748, 61.1, 38.4833, -27.1, 40.3442, 47.0736, 42.7667, 51.4167, 20.68, 18.433, 38.0636, -34.7, 28.53, 16.7, 30.55, -36.067, 33.2889, 16.75, 4.55, 20.91, -24.7, 27.9225, 35.6564, 16.77, 37.8339, 36.1667, 36.0719, 35.6542, 36.25, 36.0469, 35.5678, 67.26, 35.53, 47.4333, 49.5792, 40.1417, 35.1692, 55.617, -41.5492, -41.5397, -41.4194, 35.4783, 31.6756, 40.9017, 39.0847, 41.7833, 44.9231, 34.4989, 46.3333, 34.7508, 53.4117, 46.8167, 41.7019, 43.93, 42.6194, 37.3917, 33.3369, -28.6133, -37.8565, 33.0353, 52.421, 38.9583, 42.6992, 35.2436, 36.7711, 44.7583, 38.7642, 39.0083, 42.7172, 42.4167, 34.6097, 34.5583, -66.733, 64.64, 41.53, 54.2331, 61.6267, 16.42, 48.3, 42.2644, 25.41, 27.55, 21.12, 10.517, 16.32, 47.0831, 0.017, 43.8789, 20.73, 48.7667, -34.45, 22.68, 19.85, 45.3167, 45.2833, 53.75, 53.75, 53.6333, 19.54, 29.9175, 41.6378, 33.0536, 28.97, 40.5839, 37.3053, 26.2422, 37.9825, 37.7511, 38.0494, 28.75, 46.3667, 47.6667, 32.7675, 15.453, 46.25, 48.6167, 46.3547, 19.85, 28.6331, 20.15, 35.3811, 24.1667, 24.167, 20.37, 16.33, -34.972, 38.5333, 47.35, 47.35, 26.18, -22.1, 23.58, -29.383, 46.15, -23.13, 55.15, 55.15, 38.3014, 48.7833, 49.9167, -29.917, -29.9, 19.95, -22.0172, 16.1, 31.98, 47.4, 47.4167, 13.3333, 17.9, 16.75, 19.22, 37.2008, -22.2833, 21.67, 44.1014, 44.3544, 50.8833, 50.9167, 55.4167, 44.7, 39.2292, 36.4194, -22.2406, 39.3256, 47.5586, 38.2667, 38.3333, 54.75, 36.2292, 36.9028, 37.685, 40.3333, 43.6264, 49.05, 54.8, 51.1231, 47.2467, 48.2881, 53.8, 54.292, 28.8208, 31.1417, 36.8644, 38.8803, 53.2231, 37.9567, 13.133, 50.4831, 48.7664, -30.5963, 61.1833, 51.4, -27.8386, 51.317, 51.4358, 66.76, 37.5108, 44.85, 65.0975, 60.73, 29.7856, 51.783, 52.4569, 44.9833, 59.9592, 45.9397, -36.3608, 43.3597, 36.3817, 37.3789, 36.3333, -12.567, 46.6, 51.8833, 38.833, -69.5, 47.95, 59.3, 46.3619, 51.1344, 48.5406, 45.3667, 35.915, 35.7875, 54.2206, 60.72, -34.9482, 53.1025, 47.8606, 34.1742, 45.7192, 41.5167, -28.8836, -28.8789, 40.7244, 0.459, 42.5889, 38.4794, 34.0456, 54.883, 25.533, -28.95, 47.1, 52.0, 40.4897, 60.1331, 46.4, 62.2317, 72.333, 49.4667, 42.9831, 50.562, 56.76, 64.9, 51.8331, 49.1167, 45.3, 47.5, -23.85, 48.35, 49.6333, 49.6333, 49.6333, 49.7, -4.1, 39.433, -82.517, 56.373, 53.8631, 54.5003, 59.6167, 39.5608, 33.55, -23.08, 38.7756, 40.9475, 37.8564, 35.4139, 36.1325, 44.1, 46.3747, 46.4167, 40.5864, 47.0492, 33.3614, 44.2, 30.4064, 33.1228, 35.6503, 35.8458, 37.7767, 39.1828, 38.0408, 41.5747, 14.591, 47.9467, 42.7817, 16.27, 29.667, 28.42, 30.68, 24.37, 24.78, -41.8983, 48.4036, 47.9733, 48.41, 37.0222, 50.767, 10.6, 30.0592, 41.8017, 31.1631, 0.38, -13.3, 51.9256, -26.133, 50.933, 50.6892, 37.5544, 45.5, 53.85, 63.3206, 46.83, 56.4831, 49.367, 42.1231, -29.431, 44.3167, 21.9742, 21.9839, 26.833, 26.88, 52.6, 48.0681, 61.85, 50.6833, 50.6667, 66.4897, -13.789, 40.8667, 37.3833, 44.6331, 34.6667, 40.7083, 40.7247, -75.42, 50.4128, 34.1789, 46.95, 37.9864, 39.9167, 10.0, 39.1894, 24.86, 23.95, -43.63, 39.0878, 40.1514, 35.4606, 39.0294, 38.8825, 40.8508, 46.9558, 40.8233, -78.467, 36.2858, 47.4083, 61.1333, 52.2094, 49.7128, 35.6047, 57.9831, -25.48, 43.983, 39.7556, 36.3042, 36.2033, 47.2, 34.8261, 44.35, 44.3333, 47.0022, 41.6458, 52.517, 26.233, 15.38, 45.6333, -19.4, 40.77, 41.717, 58.4, 46.2667, 54.05, 43.6, 35.05, 48.23, 48.297, 49.45, 62.6594, 62.6592, 62.5456, 51.6344, 36.2358, 50.85, 51.15, 34.4978, 38.7167, 28.8728, 46.4444, 46.1, 37.5, 28.45, -28.807, -37.9543, 58.11, 49.0333, 55.0125, 30.0, 45.1278, 33.4992, -33.4901, 53.95, 33.9378, 48.3681, 44.0911, 41.4, 45.5697, 47.8139, 67.1833, 44.5, 38.9692, 40.8858, 45.9656, 43.0603, 43.0333, 37.4833, 40.0, 44.6167, 34.1942, 56.3831, 49.35, 47.2833, 34.8364, 34.9167, 34.7272, 39.7267, 42.2472, 43.5, 47.85, 24.35, 46.4333, 65.4236, 37.6922, 37.7119, 37.6928, -33.9272, 69.6, 44.1333, 44.0833, 30.2889, 16.62, 32.5811, -17.817, 45.4956, 30.7394, 45.6983, 36.3775, 43.7392, 43.55, 31.43, 37.8, 59.35, 46.0656, 46.22, 56.83, 56.08, 56.85, 58.22, 62.55, 30.7425, 41.6256, 53.3167, 53.2833, 53.3167, 38.4058, 38.4333, 35.7522, 47.0431, 46.1725, -12.785, 43.1392, 43.2, 37.3908, 41.1311, 36.6044, 41.1489, 41.2664, 45.3786, 38.1061, 3.117, 17.45, 62.11, 37.8717, 39.5328, 41.6381, 36.6167, 31.9833, 40.7478, 40.75, 41.6661, -27.6839, 50.5, 41.7344, 41.7456, 42.4519, 47.6167, 45.51, 60.2439, 50.5633, 50.0114, -4.033, 61.1217, 54.733, 46.6333, 43.82, 47.9361, 19.95, 6.17, 57.89, 49.2, 34.6539, 16.7667, 43.0333, 37.0872, 51.15, 43.0333, 38.1947, 39.8972, -23.383, -23.333, 37.9, 45.2833, 46.2667, -36.6722, 37.62, 46.7492, 40.1589, -23.4372, -23.4372, 68.9, 50.2667, 43.46, 47.269, 46.1506, 32.3847, 32.35, 34.0103, 25.1, 22.367, 51.43, 33.8117, 46.3675, 40.2578, 39.7506, 44.7136, 45.2219, 37.5167, 47.4167, 41.5386, 45.8883, 42.5667, 45.9647, 46.5, 40.7875, 37.4833, 52.7231, 47.45, -37.2822, 33.3667, 35.0097, 40.8333, 43.9144, 43.1667, 54.05, 70.3348, 14.8, 50.0364, 32.3094, -31.542, 26.017, 34.0347, 58.433, -25.4, -32.3322, 48.6333, 38.7708, 42.6722, 40.8167, 46.35, 34.0178, 47.0833, 53.2833, 43.8333, 35.8644, 37.3581, 13.8833, 34.0511, 33.9381, 37.0564, 37.0547, 36.9897, 8.824, 37.2319, 37.2028, 34.7675, -2.05, 34.5358, 25.7, 45.081, 54.4389, 38.0422, 45.9, 46.2667, 33.1356, 38.2333, 33.0125, 38.2281, 38.1811, 38.115, 41.2808, 43.179, 48.65, -26.0, 48.0667, 64.36, 43.1631, 36.9692, 40.435, 39.6667, 44.8375, 40.1906, 40.0681, 39.9, 60.2744, 68.0, 41.2647, 42.6408, 46.1442, 45.6, 44.9167, 44.9783, 45.5, 52.4832, 44.0828, 43.7925, -41.0556, -41.0567, -16.3842, 26.4986, -34.439, 44.55, 48.9, 30.3644, 29.5814, 31.1783, 19.897, 51.9281, 33.6542, 53.805, 50.02, 46.8833, 48.3167, 52.967, -18.5203, 45.5733, 43.95, 26.75, 50.95, 43.5875, 45.2833, 54.3, 30.9333, 51.7706, 43.9067, 45.785, 51.25, 31.4269, 31.2361, 46.0, 48.5667, -15.52, 43.1153, 61.7042, 38.2544, 49.652, 36.4192, 55.0, 5.5167, 65.5431, 41.4, 29.6756, 34.6269, 31.9297, 8.417, 50.2333, 50.3667, 32.0306, 50.65, 50.6, 33.8225, -41.1492, 51.8167, 38.8678, 55.7, 50.75, 8.617, 62.64, 25.43, 35.0, 65.7667, 65.75, 44.42, 35.85, 38.6661, 58.79, -15.3167, 34.05, 32.07, 45.5333, 42.7506, 48.45, 47.6981, 43.6658, 49.63, 47.8, 24.53, 25.6667, 47.0331, 28.88, -3.41, 15.1833, 29.58, 49.8167, 38.9, 36.2303, 64.58, 64.55, 48.2, 42.8294, 35.2983, 37.3817, 37.3208, 44.5167, 51.505, 59.9087, 58.6333, 56.05, 56.85, 56.8667, 56.8667, 56.85, 55.05, 43.2117, 40.0833, 45.7, 52.2117, 45.6667, 39.1258, 49.55, 29.2358, 37.1431, 46.6833, 50.2167, 50.2333, 32.3667, 46.7, -2.62, 35.667, 30.167, 62.9781, 63.1431, 47.3, 9.6053, 50.9053, -43.6578, 46.0667, 22.2, 0.051, -5.117, 22.15, 27.85, 53.0167, -37.4155, -9.66, -9.517, 8.53, 59.933, -21.667, 31.18, 16.2, 55.433, 68.3, -21.1706, 43.9181, -21.1172, 55.3, 45.85, 63.25, 46.3, 33.1544, 32.6847, -54.499, -33.7791, 10.308, 45.95, 17.77, -5.2, -5.217, 45.5, 51.5, 46.7781, 29.2, 36.9539, 40.8, 36.9878, 34.0919, 30.4653, 41.8292, 44.7983, 30.9392, 37.3475, 43.9906, 38.1025, 45.1, 43.1406, 44.5833, 38.7369, 43.1333, 45.0025, 34.4, 34.917, 44.6167, 44.6633, 13.0, 40.8508, 40.4117, 40.4667, 40.3778, 40.3, 40.4831, 40.7, 39.4, 40.4633, 36.4, 40.5603, 19.3, 18.167, 16.667, 52.6667, -25.798, -13.4, 59.55, 12.983, 53.467, -13.333, 34.1167, 52.1031, 34.82, 42.1833, 51.3167, 53.35, 33.295, 45.2667, 43.3181, 17.9722, 47.9, 42.9667, -15.7167, -23.12, -19.833, -4.6, 47.3172, 39.9, 11.85, 5.874, 13.23, 13.233, -18.05, 49.9681, 60.5181, 51.1833, 48.2175, -34.3745, -32.7427, 35.27, 35.5, 35.45, -2.5, 44.617, 57.783, 7.1, 7.0833, -3.483, 21.4783, 13.5, 21.2033, 40.52, 20.6419, 59.1578, -2.28, 21.483, 21.5, 70.7006, 55.0833, 0.57, -0.02, 0.0, 57.8, 57.1, 21.5286, 31.267, 7.704, 55.25, 65.19, 2.263, 42.1492, 36.6667, 48.5667, 51.0, 44.7181, -35.494, 38.35, 38.43, 8.15, 39.0, 65.15, 36.5994, 4.2, 58.07, 54.1, 43.9794, 43.265, 34.0583, 50.1667, 5.227, 57.3917, -3.229, -3.2167, 42.0078, 55.3717, 72.3794, 32.8567, 9.55, 46.0, -37.5976, 12.048, 48.7781, 44.45, 37.8172, 67.17, -33.467, 55.6, 55.5714, 47.5167, 44.8419, 47.7828, 48.3589, 47.8417, 42.2917, 48.3939, 60.6814, 34.3947, 52.1117, 47.933, 58.317, 57.82, 5.72, 37.1317, 39.6833, 37.6478, 36.4947, 10.37, 7.38, 7.4, 1.5, 12.141, -21.2, 37.1742, -3.133, 36.8, 53.354, 42.4733, 37.15, 42.9333, 37.4167, 37.335, 42.53, 21.983, 45.767, 58.0475, 46.8128, 3.933, 50.1028, 43.2625, -29.15, -19.7419, -32.5211, -31.82, 43.817, -36.8886, 12.917, -23.133, 38.25, 10.37, -13.7379, 10.367, -33.2894, 34.8911, 49.7, 39.1972, 39.1353, -5.811, 49.3, 14.55, 14.5, -12.0482, 38.6, 44.2114, 45.9511, 49.15, 44.0869, 46.3833, 46.2667, 46.3, -34.2508, 39.7889, 44.1542, 49.1, 64.9989, 8.97, 48.55, 36.1747, 49.473, 33.6989, 56.95, 39.5436, 47.7028, 21.3331, 50.65, 52.55, 46.3333, 37.1089, 40.7667, 41.7569, 40.8203, 51.35, 35.9172, 39.2583, 45.15, 60.5783, 61.5831, -74.95, 31.5769, 49.3667, 49.1167, 48.8, 19.05, 40.5411, 40.54, -26.533, 46.1833, 42.1619, 44.855, 49.9, 40.7964, 50.0, 49.2167, -25.921, -41.25, 42.0494, -5.369, 10.55, 10.25, 10.3, 13.47, 30.1925, 24.7258, -23.15, 42.5008, -21.1756, -21.1756, -24.98, 37.3036, -77.4167, 47.6308, 33.9, -32.684, 39.8253, -21.1906, 37.3, -16.995, 42.2636, 44.0575, 30.3125, 46.3333, 68.8, 52.65, 34.7392, 30.8356, 47.77, -22.31, 46.5, -22.92, 35.0833, 33.1139, -25.5, 50.65, 58.71, 33.8761, 39.4086, 45.4, 43.4417, 56.217, -19.4, -79.95, 40.433, 44.4906, 45.0983, -23.4, 34.1653, 43.4206, 40.58, 40.6167, 35.7072, 37.7747, 40.75, 44.5833, 44.6125, -46.883, 32.4714, 40.6161, 38.3778, 3.633, 37.5042, 37.5128, -22.017, 47.1, 53.45, 56.46, 38.4917, 52.7017, 64.6831, 54.175, -27.3002, 39.15, 31.3336, 18.133, 53.3242, -23.15, -26.6006, 44.3, 46.5311, 46.5458, 50.0167, 31.7, -40.9089, -29.6587, -29.6481, 29.7853, 69.72, 2.317, 41.3286, 43.305, -33.7654, 32.5403, 35.8036, 35.9156, 39.1342, 44.4706, 42.0647, 42.1128, 32.4567, 37.3339, 44.6411, 44.6381, 52.3333, 43.1803, 38.0131, 50.7344, 39.4019, 46.5, 39.4039, 36.7056, 43.1833, 32.6667, -37.8, 36.3444, 58.55, 40.0239, 52.3, 52.3, -37.056, -25.5161, 49.8333, 38.4486, 39.1458, 39.8383, 40.2411, 49.6333, -32.9131, 40.3458, -38.0, -37.933, -2.55, 12.37, 35.6, 20.52, 45.75, 58.1, 58.09, 36.267, 49.1333, 1.683, 20.667, 54.333, 30.7478, 41.2211, 43.1631, 40.1642, 43.1544, 44.6719, 42.9892, 42.6681, 44.9358, 54.0333, 46.2, -20.067, 47.167, 34.0044, 48.9, 49.75, 49.7667, 28.6836, 15.6167, 41.3914, 15.65, 48.85, 61.5664, -8.75, 4.813, 44.1747, 39.0228, 37.4031, 38.8722, 28.0372, 16.88, 21.317, 35.45, 36.25, 33.85, 49.6, 63.32, 39.4725, 39.4781, 48.067, -19.133, -10.25, 9.749, -19.983, 19.5361, 44.8933, 43.79, 33.9167, -67.6, 47.8214, 36.5697, 32.3833, 40.5158, -42.7636, -42.7567, 50.3258, 36.7581, 42.4292, 48.85, 30.1064, 7.565, 63.6167, 60.8833, 30.4, 38.6869, -3.417, 61.3208, 48.6008, 51.63, 36.7, 29.0, 23.1881, 41.8, -0.62, -8.933, -6.167, 34.8822, 26.1917, 26.1839, -16.4423, 53.4167, 53.3667, 44.8889, 31.1331, 42.6519, 61.4181, 35.6022, 33.0667, -11.0468, 39.1267, 34.7056, 31.1828, 26.565, 40.2064, 39.6339, 50.7167, 49.8, 41.9953, 33.4522, 29.7, 35.3364, 34.3097, 39.4136, 62.9575, 46.8167, 31.435, 39.3528, 40.0167, 52.2667, 49.0667, 52.5833, 40.3392, 44.2, 44.1792, 63.7175, 63.6492, 33.1903, 33.1803, 38.0844, 52.3833, 52.5333, 51.05, 45.1947, -77.8833, 45.9406, 38.3772, 63.6, 37.99, 45.5, 44.8872, 41.2514, 39.1333, 47.4825, 39.6522, 40.2156, 35.1447, 42.4106, 39.7844, 42.3092, 39.5833, 47.5808, 45.8383, 45.8133, 35.2361, 46.3911, 47.1358, 35.6722, 45.2214, 34.1142, 47.7619, 39.2814, 45.5114, 37.285, 47.2667, 44.4333, 54.1333, 54.1333, 31.4664, 41.6333, 41.1431, 34.3906, 33.5714, 38.4617, 33.536, 37.8333, 3.8, 36.283, 6.27, 45.1308, 42.2961, 42.3811, 41.8969, 40.3761, 50.0167, 50.0167, 48.4828, 37.2767, 37.2839, 29.81, -32.2208, 43.576, 46.9161, 53.35, 62.917, -26.6136, 40.0333, 35.505, 40.0489, 52.3425, 20.833, 50.5625, 46.73, 24.3, 33.8833, -37.6655, 28.1011, -37.8075, 28.1136, 52.95, 52.8167, 52.8167, 35.2778, 49.2833, 46.833, 46.3689, 45.155, 45.45, -32.366, -32.35, 34.4278, 45.6775, 59.23, 46.6011, 51.1331, -42.4928, 38.5039, 46.1047, 15.5333, 34.7261, 35.3447, 40.4575, 35.0564, 35.1297, 34.5731, 1.533, 15.867, 31.607, 30.9044, 50.3667, -32.833, -32.883, 9.817, 34.817, 21.5, 24.2, 23.383, -32.3937, -35.6902, 43.2358, 44.8742, 39.8544, 53.1031, -29.6939, 28.27, 63.4431, -8.467, 37.2858, -33.25, -33.3, -29.17, 37.2847, 41.2247, 39.8333, 38.3, 36.6206, 39.3619, 8.6, 20.97, 8.6, 32.3347, 32.55, 44.8317, -36.9077, -36.9106, 48.5131, 42.4947, -31.4756, 30.9833, 45.1786, 42.9194, 50.1167, 50.1167, 49.4667, 31.3331, 36.8, 2.45, 57.35, 0.08, 40.85, 29.63, 39.05, 37.055, 37.1997, 38.2, -22.27, 48.183, 6.8456, 37.4094, 8.87, 36.8331, 48.1075, 45.6, 44.5833, 44.6275, 41.2833, 48.8556, 32.3972, -34.5961, 49.0731, 4.25, 31.6181, 32.55, 37.1497, 39.1756, 19.4, 65.87, -53.42, 33.4044, 35.6936, 36.8833, 25.7906, 25.6475, 25.7553, 25.9069, 49.45, 31.47, 47.15, 52.05, 49.717, 39.4333, 49.3833, 49.4, 45.7667, 39.4953, 39.2931, 43.1167, 36.6086, 42.5933, 41.4603, 41.55, 40.1936, 49.6833, 37.6167, 44.7786, 44.7189, 45.5833, 45.0667, -12.5781, -12.605, 43.6333, 51.15, 32.68, 44.45, 31.6333, 43.6089, 44.0667, 32.0186, 44.6833, 31.9433, 44.75, 59.8339, 32.8753, 49.0, 28.2167, 37.5667, 43.4131, 35.1231, 46.3667, 66.68, 60.6294, 44.7706, 66.0, 45.4667, 61.733, 61.6869, 45.7533, -2.1167, 45.4717, 45.5833, 45.6167, 45.1219, 42.0664, 35.9328, 37.3, 45.2836, 46.7614, 57.0333, -34.2358, 50.5544, 44.5208, 26.2483, 46.4267, -26.6569, -26.6581, 38.4017, 39.1814, 42.8394, 38.8983, 43.3828, 42.5794, 39.0744, 38.4167, -44.7, 48.667, 36.3, -12.1239, 49.1333, -20.0464, 50.7167, 44.117, 41.8553, 33.0831, 46.875, 32.8703, 44.5178, 40.5375, 39.7194, 46.0228, 38.3064, 43.3167, 39.2739, 45.6503, 45.6478, 40.7692, 46.808, -33.4455, 41.1, 39.3667, 34.3903, 34.0836, 44.4667, 40.65, 44.1833, 36.74, 32.4419, 49.7131, 30.7794, 45.9428, 42.955, 43.0719, 43.1167, 32.9325, 38.3844, 24.173, 25.847, 24.3, 24.3, 45.3539, 27.05, 16.933, 38.65, 63.9033, 32.6053, 38.9547, 40.5156, 44.9333, 40.7328, 32.7167, 40.3458, 37.85, 44.2, 41.15, 32.7817, 48.1667, 48.7667, 8.3, 8.3, 42.6767, 40.4833, -34.822, -11.1456, 9.617, -78.55, 39.1247, 44.8833, 44.8831, 50.2667, 44.16, 48.0781, -32.8361, -32.8427, 45.8864, 46.0667, 40.9125, 48.4167, 48.1803, 48.2553, 38.633, 53.87, 33.7589, 46.0333, 49.1667, 53.7167, 28.083, 44.6614, 47.0167, 47.0167, 4.322, 4.4, -66.55, 62.5, 52.45, 61.4253, 35.48, 48.0167, 35.117, -10.683, 48.083, 43.3061, 49.1333, 43.1114, 26.2167, 49.15, 46.4333, 46.8983, 46.9244, 46.9208, 48.85, 32.4097, 44.5681, 43.7381, 44.5833, 41.9481, 34.9436, 43.7667, -26.4888, 39.06, 36.383, 47.4783, 61.1667, 62.0167, 66.95, 72.7831, 0.783, 20.23, 34.117, 24.783, 39.65, 31.733, 31.933, 46.2858, 53.1, 38.5744, 38.755, -1.53, 39.4194, 30.6794, 30.6833, 30.6264, 45.5656, 45.5464, 42.0431, -15.08, 47.0575, 60.51, 35.8439, 25.48, 22.75, 60.841, 37.7981, 44.6481, 37.6242, 37.4058, 53.95, 53.9, 53.75, 51.733, -30.15, 48.7603, 36.276, 52.133, 41.7681, 49.6506, 48.45, 47.2, -5.894, 35.0492, 35.0531, -29.2667, 34.817, 37.75, 44.9078, 57.583, 40.8442, 41.4653, 19.48, 57.94, -67.667, 21.1544, -4.033, 44.35, -2.5833, -2.0667, -2.05, 31.5414, 49.8167, 18.0908, 67.967, 33.2425, 26.883, 46.1, 46.1, 44.3831, 44.5647, 51.683, 36.8619, 46.15, -15.25, -15.3, 38.5833, 40.9442, 40.9361, 41.9139, 47.8453, 34.9797, 44.3167, 35.0169, 32.4936, 32.5156, 6.234, 50.4392, 43.4614, -36.2519, 41.7806, 46.31, 41.0731, 48.05, 35.2244, 34.0192, 45.7, 34.4614, 18.5, -7.88, 44.5817, 43.7806, 41.2781, 25.2, 44.3764, 36.1483, 36.5903, 36.5881, 36.5928, 25.87, 25.733, -16.717, 44.9342, -35.0, 37.5922, 34.6106, -2.0, 45.8667, -30.267, 44.2, 41.4667, 50.5333, -10.43, 39.333, 41.7, 37.5811, 32.26, 32.2997, 40.6475, 41.5092, 31.5519, 33.3328, 38.0111, 43.9667, 46.4667, 37.8736, 36.8667, 30.4922, 33.6361, 46.9667, 50.25, -24.8642, 41.5725, 42.3167, 45.6333, 47.2667, 45.5167, 45.5, 45.6667, 45.4667, 45.5167, 46.45, 41.8511, 38.4858, 43.8197, 38.505, 41.77, 44.1167, 47.9667, 48.4167, 43.912, 48.6, 46.5667, 49.2333, 45.3167, 39.1025, 45.2167, 36.9853, 44.2767, 43.65, -23.57, -28.1125, -28.0997, 44.4167, 42.8597, -30.6417, -37.98, 44.2169, 39.0461, 39.9511, 43.9167, 26.84, 33.4517, 46.8875, 45.1758, 43.6536, 45.6667, 50.3333, 50.3333, 46.4378, 60.5028, 54.2333, 50.1333, 51.2833, 51.2833, 51.2833, 51.2667, 14.5, 38.93, 45.8775, 61.0, -5.11, -21.9947, 43.8567, -29.2103, -29.2039, 60.96, 56.53, 49.1833, 49.1833, -29.4914, -29.4819, 34.7336, 19.7, 52.9333, 41.4558, 35.7297, 39.6428, 39.6203, 29.6833, 44.85, 44.5167, 41.0428, 35.0128, 51.7217, 39.7, 33.5544, 34.9067, 34.9333, 34.3175, -16.664, 45.4825, -6.82, -20.285, 39.5267, 37.1581, 37.1833, 48.35, 55.215, 35.1581, 44.9167, 41.8039, 39.4158, 36.2067, 36.1683, 44.5139, 42.8417, 44.5344, 40.8333, 45.59, 35.3669, -7.85, -11.217, 46.9, 63.32, -38.0737, 33.7183, -21.8167, -35.9093, -38.2094, 47.0219, 40.6167, 35.0711, 55.8331, 46.7281, 47.2078, 48.3667, -3.35, 53.57, 55.75, 55.9167, 51.6, 49.696, 35.8022, 48.05, 59.8394, 35.0336, 47.6833, 45.2667, 35.883, 71.533, 43.35, 46.3719, 61.5167, -1.87, -1.845, 76.2333, 76.2333, 34.4883, 31.1769, 8.567, 39.9056, 38.1433, 37.1872, 34.5208, 35.6494, 44.05, 45.7, 36.0306, -35.0639, -34.625, -37.8383, -36.745, -33.6185, -37.145, -37.5575, 47.4167, 47.75, -34.7122, -34.7253, -16.783, -29.7, -16.4181, 38.0631, 43.9833, -37.7473, -37.8333, 47.35, 41.7836, -36.9767, -20.6778, -20.7361, 47.9167, -34.9784, 36.3472, -28.0619, -28.1156, -37.7481, -37.6924, -51.823, -41.8444, 53.0167, -73.2, 42.9372, 37.3761, 44.9, -42.8967, 38.3894, -4.0, 39.5878, 46.9167, 46.5053, 3.533, 55.5, 43.733, 51.95, 23.317, -28.3, 45.0619, 44.8322, 36.4739, 41.8375, 40.7497, 37.1542, 43.1261, 36.3458, 43.05, 27.9378, 32.9539, 35.8444, 41.2708, -28.95, -10.267, 45.9997, 36.4992, 40.7053, 38.4106, 41.4075, 42.0981, 36.26, 42.6083, 37.8792, 39.6561, -27.3342, 37.3436, 39.9492, 45.3333, 45.2667, 34.5408, 32.8797, 37.3833, 35.655, 30.7053, 44.5247, 35.7586, 42.7314, 33.1689, 35.5572, 40.9486, 43.5858, 39.3167, 43.8769, 41.3206, 41.3325, 41.3156, 38.0583, 43.3325, 33.1964, 37.3542, 37.9286, 38.3483, 48.4403, 37.0733, 44.2667, 39.0642, 34.2308, 45.03, 43.6389, -0.95, 39.25, 60.85, 44.567, 42.3628, -32.5628, -32.5956, 64.849, 49.4667, 42.6, 42.6039, 47.1414, 45.25, 39.7986, 48.967, 48.1642, 48.3581, 51.9506, 52.3333, 52.1353, 37.217, 48.633, 50.37, -8.54, 48.283, 64.815, 43.47, 16.533, 29.4667, -22.92, 28.63, 32.6089, 34.2192, 33.9544, 32.4, 45.4, 44.1625, 47.4661, 47.4569, 42.0425, 37.5794, 42.2506, -28.5367, 47.8069, 53.5333, 30.203, 62.4103, 51.567, 38.12, 52.5189, 58.9333, 40.2342, 34.9364, -8.333, 33.4539, 42.2553, -28.9786, -33.5969, 48.35, 46.4122, 48.3864, 64.27, 67.94, 67.9681, 68.0617, 67.9728, 39.0, -26.8936, 38.0028, 37.9578, 37.7889, 55.5167, 43.8894, 48.95, 49.633, 36.4522, 34.0783, 35.9203, 38.167, 68.9667, 42.317, 33.25, 35.0714, 42.0264, 36.6122, -35.1234, 48.9739, -31.7651, 46.7, 6.577, -28.3395, 38.733, 41.4075, 34.7442, -14.7803, 49.45, 35.6147, 43.1711, 35.7781, 35.6567, 44.9667, -1.5, 42.183, 63.4353, 38.3311, -0.919, -17.417, 41.283, 44.9258, 36.2283, 12.7667, 65.382, -2.467, 27.2417, 25.367, 66.7628, 61.5245, 56.45, 43.08, 49.5833, 49.667, 49.4, 33.7544, 33.6833, 45.2436, 58.83, 69.8797, 68.4667, 68.55, 67.15, 45.9, 50.87, 67.8, 68.9, 48.65, 43.933, 66.17, 67.83, 76.85, 40.1942, -11.9, -11.4333, 8.4, 14.25, 7.733, 19.0614, 33.267, 60.4667, 60.3939, 62.3978, -3.368, -17.0, 53.1, 31.6164, -17.75, 65.47, -6.57, 49.75, 36.667, 32.732, 26.6, 48.5675, 55.97, 35.167, 21.1, 31.483, 32.1, 80.817, 46.45, 3.683, 26.2, 31.2667, 31.2739, 68.68, 56.55, 43.1, 57.593, -1.3, -1.317, 61.95, 62.88, 17.417, 14.967, 15.8, 8.533, 50.95, -0.27, -0.283, 50.25, 50.2667, 43.533, 31.87, 40.983, -26.6431, 64.2506, 34.78, 29.25, -3.25, 43.6039, 38.717, -15.1, 35.42, 20.4167, 18.767, 49.05, 49.2167, -26.6756, 28.6, 27.583, 30.8, 48.68, 11.7167, -17.8, 14.6167, 72.9833, 31.933, 22.633, 26.633, 47.3, 47.153, 41.2531, -5.667, 33.03, 27.3, 44.2333, 59.85, 38.2103, 38.2778, 26.1686, 26.1522, 23.3, 41.3939, 46.5067, 45.7667, 34.7, -36.9564, -36.9813, -33.6104, 49.55, 44.62, 44.67, 6.4167, -25.6875, 15.167, -32.0656, 67.6331, -1.13, -36.2144, -30.3401, -34.7325, -32.9342, 59.467, 68.4394, 41.4331, 42.7667, 42.7914, 33.9294, 38.3431, 31.2644, 36.1189, 40.68, 25.05, 57.64, 55.2333, 39.3, -5.767, -5.9167, 49.7667, 50.1833, 50.1833, 31.5889, 31.7722, 10.32, 38.9133, 66.75, 66.76, 66.77, 37.6094, -18.043, 45.4667, 40.7806, 36.8047, 31.9611, 58.7, 26.219, 37.1, 25.23, 28.383, 28.3833, 37.9, 59.5, 55.567, -31.82, 12.13, -4.386, 35.7197, 40.6986, 44.0261, 68.05, 59.4839, 34.7675, 50.15, 50.2167, 5.28, 44.2331, 47.0414, 29.58, 44.5378, 17.611, 7.45, 58.6581, 57.65, 14.45, -41.3, 49.4833, 49.5833, 49.5167, -25.43, 16.6, 35.1, 44.1917, 43.333, 64.55, 54.75, 49.167, 40.4178, 36.8639, 53.28, 39.7122, 47.4, -35.3365, 51.32, 52.0, -35.1165, 60.5683, 40.1358, 38.4478, 48.0667, 53.602, 48.6525, 48.7092, 47.0, 49.2942, 50.5, 50.6894, 47.9767, 50.8933, -70.667, 54.0889, 50.8967, 49.3444, -38.95, 52.9053, 49.5739, 49.8183, 49.3581, 50.4494, 50.75, 39.2467, 46.8333, 37.8394, 46.67, 44.633, 38.617, 45.7833, 37.5147, 40.0228, 40.6825, 39.6694, 40.0875, 36.1167, 34.2978, 46.3286, 43.8497, 44.0461, -27.73, -32.9185, -32.8905, 43.9708, -33.1131, 44.7158, 35.6108, 48.6758, 34.3933, 50.783, 32.5953, 35.07, 36.9425, -23.3683, 37.2811, -23.4169, 33.4544, 35.6042, 39.3933, 42.6008, 43.3772, 44.9489, 48.1842, 35.9833, 33.6025, 37.1319, 40.4783, 41.5, 41.5333, 38.0344, 38.9917, 41.0553, 41.7117, 43.5833, 38.9136, 32.3378, 54.6699, 46.1333, 52.68, 41.6333, 41.6764, 35.0678, 41.1925, 29.7192, 40.4719, 48.0333, 48.0167, 41.0172, 39.8942, 48.0333, 43.4833, 34.9456, 28.567, 28.583, 50.0, 46.5414, 43.1167, 39.0172, 42.5167, 46.4167, 29.2667, 43.0453, 37.4636, 41.3, 35.4486, 40.075, 45.01, 30.0375, 30.0375, 39.7333, 44.3589, 45.305, 36.5869, 44.9714, 37.95, 38.0047, 29.8167, 29.9167, 29.9933, 30.0494, 30.0333, 40.4878, 40.4719, -39.017, 40.6089, 40.9319, 48.1667, 34.7, 30.7267, 46.8925, 44.3006, 39.55, 40.7789, 40.6386, 40.7794, 18.47, 46.2325, 45.7333, 42.3803, 7.35, -11.9971, 12.2333, -36.3347, -36.3092, 43.1333, 43.1003, 43.1072, 43.1333, 43.25, 13.5, 9.767, 43.6333, 30.5317, 69.9333, 5.95, -89.0, 46.2, 46.2333, 35.1667, 47.2333, 50.2344, 50.6756, 57.3039, 49.3992, 49.7681, 52.6725, 53.1942, 37.967, 37.917, 61.9, 67.8497, 67.8497, 36.733, 46.9667, 58.567, 53.15, 58.35, 59.53, 55.2, 47.583, 42.767, 43.8581, 34.9553, 49.4167, 35.0317, 41.35, 60.0433, 14.517, 42.7472, 15.233, 53.3333, 53.3333, 53.3333, 43.3331, 48.8667, 48.283, -19.03, -10.75, 63.9167, 49.6, 40.0333, 29.2828, 36.39, 55.78, 54.8831, 50.9, 46.85, 66.767, 57.883, 48.333, 51.05, 56.2667, 62.43, 8.1, 61.7, 63.283, 4.94, 68.0708, 32.583, 31.4553, 51.92, 21.221, 48.15, 51.5167, 57.55, 37.2792, 64.5111, 46.4, 17.8667, -32.5226, -26.52, -37.9, -37.9039, 49.6, 53.067, -33.2815, -33.2815, 55.45, 52.5, 53.7139, 52.4408, 58.8925, 64.7978, 58.4353, 69.8333, 66.3683, 41.9725, 42.0289, 36.9033, -29.042, 41.9856, 36.95, 36.9839, 40.5492, 48.85, 48.85, -17.6706, 17.936, 65.2833, 65.2833, 65.2833, 62.28, 36.2131, 45.4856, 58.58, 58.61, -32.1981, 64.91, 64.93, 52.35, -31.6508, 37.8122, 45.0, 44.1647, 44.1, 39.8989, 51.55, 48.8742, 34.2447, 62.9614, 43.4386, 42.6958, 52.7667, 52.7667, 46.3667, 43.4167, 43.4133, 44.0303, 37.0, 45.55, 37.2331, 47.2667, 37.2328, 41.8564, 41.3333, 47.1333, 32.7, 27.233, 36.2347, 37.8547, 39.0667, 41.4933, 46.8167, 45.6358, 48.7667, 41.0569, 41.1214, 64.7581, 45.0375, -34.5993, 45.9167, 44.75, 39.0017, 36.1631, 39.7411, 34.1, 39.8114, 41.9928, 66.8333, 41.2667, 40.6517, 53.95, 54.0, 37.455, 42.5117, 41.5269, 52.683, 38.1317, 42.1908, 57.0167, 44.0667, 45.4, 47.6667, 46.2333, 45.8, 49.0667, 47.6, 46.1167, 46.8333, 53.005, 20.933, 20.93, 18.12, 33.3667, 33.367, -22.27, -22.2667, -22.267, 32.384, -31.183, 48.1, 43.89, 45.95, 46.783, 48.85, 45.8, 58.517, 45.3331, 56.969, 53.6, 50.6, 53.817, -70.767, 51.1, 55.083, 50.4, 45.8, 47.9, 67.6994, 36.6917, -34.9449, -34.9469, 49.6167, 57.083, 38.2297, 30.367, -35.45, -0.917, 70.2117, -21.13, -9.2, 42.45, -31.4492, -32.7244, 40.7064, 40.55, 40.7, 50.3403, 50.3608, -34.4767, -34.4761, 60.5083, 49.5042, 49.4267, 48.6331, 37.1, 64.1667, 6.967, 44.8831, 12.05, 66.5997, -0.5, 45.435, 56.25, 29.57, 48.0, -31.5495, 43.8764, 45.45, 78.923, 40.5939, 40.6333, 46.8667, 49.3167, 49.3667, 49.4333, 45.2817, 46.7, 42.4594, 44.4419, 42.0644, 46.1458, -27.4034, 41.3044, 39.9, 39.4133, 37.7214, 37.7983, 37.865, 37.7861, 42.2342, 39.1131, 32.2061, 32.9572, 50.1, 50.5, 43.7428, 46.8333, 43.4333, 43.4833, 39.3758, 34.9417, 36.8425, 34.9589, 33.3933, 37.9714, 41.8386, 41.0064, 36.1753, 36.0236, 36.0028, 41.0333, 25.8603, -42.3006, 17.05, 26.6, 46.8675, 39.8189, 41.2667, 30.6036, 48.3156, 48.2444, 47.3989, 49.4531, -1.91, 42.917, 60.367, 49.0, 5.4, 43.8, 58.6592, 4.63, 29.1639, 36.1839, 37.6761, 36.8167, 40.6328, 33.2097, 38.3083, 48.583, 52.2667, 32.1664, 44.4333, 44.3964, 25.9167, 51.0667, 52.2056, 47.7831, 35.5158, 43.1003, 41.1439, 44.8919, 13.6167, 16.7, 35.1075, 39.8, 43.5492, 38.2, 55.48, 34.6242, 46.48, 47.3328, 31.9206, 54.2, 9.5, 9.5, 51.233, 43.1878, 42.6467, -12.3263, 63.1831, 50.0892, 48.4603, 39.067, 41.1275, 44.7281, 41.1167, 41.1961, 41.2319, 57.87, 65.3667, 43.175, 53.967, 54.9, 36.947, 57.717, 20.6617, 43.6008, 48.4339, 58.567, 59.3667, 61.867, 41.12, 49.2081, 33.233, 34.4478, 29.57, 63.25, 45.5, 50.05, 33.7667, 34.667, 52.166, 27.1508, 36.1217, 35.4253, 27.259, 35.5342, 35.4167, 35.3889, 47.8333, 35.6239, 50.7333, 58.0667, 51.63, 52.6, 62.45, 66.25, 44.1758, 59.57, 36.5072, 47.3667, 56.66, 57.37, 56.2, 38.8875, 38.8317, 38.85, 53.1031, 61.86, 51.7833, 41.15, 67.5667, 67.5667, 61.8, 44.4569, 43.7025, 42.2058, 36.2469, 44.9214, 60.4, 68.5, 52.8, 42.167, 48.6117, -20.68, 49.1667, -32.55, 49.1833, 53.65, 34.9536, 37.1742, 44.7628, 31.8922, 40.3161, 33.3733, 48.5497, 38.7003, 60.983, 50.95, 54.667, 49.9325, -38.4861, 53.7667, 34.1797, 40.6, 56.62, 46.9733, 34.6, 41.3536, 41.3103, 48.4167, 48.4608, 48.4608, -37.1017, -37.1011, 49.017, 65.23, 44.9667, 45.05, 55.0167, 44.583, 36.95, 48.9, 45.4108, 42.0697, 62.8667, 62.8594, 49.1167, 63.9, 36.5028, 33.9478, -33.9644, 45.0331, 50.75, 44.7317, 42.4544, 46.9, -20.667, -21.6364, -21.6689, 34.0667, 34.0561, 44.0439, 44.0206, 46.8342, 32.725, -27.5553, 20.0167, 38.8894, 51.2403, 53.7667, 35.1542, 59.9, 32.6592, 48.9989, 48.6956, 19.2706, 50.6333, 62.6043, 61.9333, 32.6025, 47.033, 43.4033, -23.153, 44.133, 33.4886, 33.4617, 43.9167, 30.2264, -33.3211, -33.3813, -33.3815, 36.6167, 42.57, 35.7, 49.3667, -37.6922, -37.6917, 43.3333, 37.2722, 41.0, 38.53, 38.2222, 54.367, 59.28, 59.23, 59.27, 39.9808, 45.3558, 52.933, 40.2767, 51.8, 51.6831, -42.5519, 31.9556, 41.3619, 37.2353, 44.6, 44.6167, 60.8064, 18.85, 21.18, 63.205, 39.7458, 63.7003, 28.5453, 28.4339, 28.7797, 41.3089, 47.98, 52.5, 56.05, 48.725, 49.7167, 45.1167, 63.41, 32.3789, 45.8333, 43.9667, 44.8992, 41.5683, 39.5178, 65.95, 55.667, 54.5, 60.53, 62.2072, 43.2794, 34.683, 56.38, 38.0492, 41.0194, 41.1839, 51.3, 44.45, 40.533, 43.9333, 43.8667, 34.75, 41.4014, 44.0206, 43.9844, 45.5331, 41.3214, 39.2419, 55.6, 57.27, 52.4167, 59.9428, 24.963, 54.433, 42.3569, -40.6, 49.0333, 49.0333, 49.0333, 59.3, 57.133, 49.8167, 51.083, 57.45, 57.44, 50.455, 60.35, 49.8, 60.7, 68.12, 69.93, 76.8, 70.633, 79.55, 77.15, 67.47, 76.0, 76.2667, 74.667, 81.8, 66.48, 77.5, 80.83, 73.5167, 79.5, 70.9831, 16.5, 9.553, 43.4622, 43.533, 43.183, 69.256, 46.7886, 36.3339, 45.0333, 39.1, 38.6133, 45.4, 41.3283, 45.3833, 45.3167, 45.3167, 46.4314, 45.1, 61.0333, 41.1078, 12.353, 13.58, -20.7769, 31.917, 30.93, -25.18, 31.673, 48.483, 1.62, 48.3167, 34.78, 64.2306, 64.9283, 64.9375, 65.0331, 65.0056, 35.867, 38.0206, 40.1344, 42.3278, -7.9, -42.4842, 51.4833, -35.0694, 57.9256, 46.8819, 63.78, 69.0178, 66.34, 66.26, 39.0833, 36.5508, 40.7456, 66.3797, 43.3542, 51.317, 34.067, 44.0981, 37.7828, 38.7333, 37.39, 44.98, 44.5833, 38.6833, 43.6667, 43.0161, 43.65, 43.5833, 49.3167, 58.68, 51.75, 51.77, 36.3, 40.3283, 36.3022, 42.2667, 34.1981, 34.2008, 34.2067, 50.1167, 51.1667, 51.35, 59.5742, 49.8833, 47.6392, 38.7, 35.4833, 35.5125, 36.6597, 51.483, 44.2831, 30.7169, 31.4539, -63.3, 43.2783, -33.72, 22.18, 48.7167, 20.133, 37.5917, 46.6092, 44.0622, -0.883, 63.27, -30.82, 54.0206, 24.0, 45.3983, -12.614, -15.78, -36.5958, 34.0067, 37.0683, 33.8083, 37.05, 44.3456, 68.6, 34.7167, 46.15, 36.9208, 34.7606, 36.9261, 37.2425, -14.3306, 27.73, 66.81, 37.2689, 36.2614, 36.1664, 41.7525, 37.5831, 37.8175, 31.5536, 42.6922, 44.2667, 55.8455, 67.2097, 46.6167, 15.117, 28.7247, 55.967, 29.6439, 9.37, -2.88, 38.1103, 29.15, 39.0028, 31.7831, 46.1, 39.1136, 19.3175, 61.3378, 66.39, 66.39, 53.05, 50.05, 39.6, -10.19, 39.5606, 39.5556, 34.5883, 34.6294, -9.45, -64.8, 49.8667, -41.79, 40.8, -16.0008, 47.3058, 61.5889, 61.5961, 10.3, 34.5494, 37.8142, 33.8275, 33.8281, 33.3781, 7.127, 37.4436, 38.9, -0.68, 9.267, 56.02, 35.5544, 42.7767, 42.8175, 39.3686, 30.2492, 30.2119, 36.1203, 38.3036, 35.8333, 30.2678, 30.2061, -18.533, 40.9461, -2.17, 66.15, 66.15, 37.8156, 35.3514, 26.955, -21.6392, 36.7269, 36.82, 29.3272, 38.5911, 38.5556, 38.8522, -9.75, 40.88, 47.35, -17.53, 34.76, 58.7, -23.2028, -23.1725, -17.217, 33.867, 39.7536, 46.8333, 53.1167, 41.5022, 38.3833, -34.7977, 36.0336, 60.1117, 59.7842, 9.35, -19.7, -31.783, -40.9, -35.5695, 47.2697, -20.1078, 47.9167, 36.7278, 61.4442, -2.63, 33.6744, 48.8231, 36.2872, 48.9667, 40.2167, 39.6186, 67.73, 50.4667, 45.535, 34.1547, 39.2811, 39.345, 51.4, 39.5289, 42.1058, 44.7333, 34.2903, -33.1281, -33.1419, 35.8989, 37.483, 45.8667, 40.6703, 38.8167, 48.45, 45.9336, 41.4947, 46.9006, 39.0333, 36.7242, 48.4, 41.8, 40.7667, 44.8042, 43.8022, -3.083, -2.917, 37.8622, 34.2931, -33.7917, 25.45, 27.6089, 40.9333, 45.4, 45.35, 49.1517, 39.0736, 37.3678, 37.3278, 35.6083, 43.15, 39.6308, 34.1483, 36.2994, 42.35, 30.3961, 30.4636, 46.2667, 21.83, -43.817, -29.689, -32.8, 29.33, 22.33, 35.6278, 35.6697, 53.7167, 48.58, 48.5817, -22.38, 49.5333, -28.21, 44.0167, 46.1489, 1.417, 69.1648, 51.9833, 40.7967, -33.77, -32.6296, 42.4717, 30.333, 45.3222, 25.6, -7.017, 38.25, 47.22, 6.7833, 46.0258, 46.5372, 40.295, 38.3333, 38.3, 43.38, 69.35, 69.3667, 41.1247, 44.1328, -8.132, -9.4, 34.7253, 42.6283, 53.7831, 42.9294, 43.2458, 56.883, 52.3, 44.3192, 36.6692, 40.1217, 41.6653, 63.0322, 62.9453, 40.4547, 46.82, 44.0764, -29.2708, 53.0167, -32.333, -45.24, 34.2325, 34.2431, 39.9333, 41.2, 14.583, -26.82, 42.5333, 49.0, 56.2333, 49.7833, 49.8667, 49.7, -32.7235, 34.5025, 31.9356, -31.6669, 32.65, 28.8889, -33.3102, 45.05, 54.9833, 44.2333, 42.67, 65.1167, 31.4167, 35.5489, 46.1, 46.0, 50.692, 34.6153, -3.553, -23.6, -22.6, -77.95, 38.63, -35.867, 50.3667, -15.517, 32.3161, -22.55, 7.0333, -25.8, 33.8017, 67.0214, 66.7722, 45.5644, 52.0833, 51.7333, 68.4333, 69.6333, 62.8167, -31.78, 44.7275, 54.083, -12.983, -34.4478, 39.9708, 50.3, 48.9711, 45.8667, 5.297, 48.7667, 45.6906, 45.7206, 45.6703, 22.767, 39.5, 23.5, 25.633, 40.4167, 55.8239, 50.5333, 45.1, 42.6711, 42.6667, 42.6425, 37.6486, -9.02, -33.7195, 30.35, 30.4781, 49.7333, 49.4833, 49.4667, 31.7356, 53.13, 40.7039, 40.6675, 4.422, 62.55, 39.6667, 4.8, 51.9, 56.7, 59.0, -33.93, 48.7667, -46.517, 49.5125, 58.0167, 42.7381, 25.5819, 30.0986, 36.2886, 41.8394, 40.0739, 36.3897, 37.7342, 39.8058, 30.0719, 39.1172, 29.6603, -32.0, -31.9275, -31.9192, -31.95, 61.5314, 41.3503, 43.08, 44.5658, 48.05, 57.07, 43.87, 42.43, 33.994, -8.4, 38.2578, 17.53, 45.95, 45.95, 45.8833, 45.9833, 44.2333, 44.3167, 44.2833, 44.2333, 44.3667, 42.85, 38.9989, 56.8056, 48.0356, 38.465, 64.5697, 47.3167, 48.1833, 45.3725, 34.7994, 35.1392, 42.8833, -9.383, 53.0833, 54.8331, 52.9831, 51.317, 61.8167, 66.43, 47.1167, 69.7, 49.1169, 48.9067, 47.9353, -23.98, 36.1067, 40.4, 10.933, 12.9233, 19.1333, 16.433, 13.15, 32.7692, 39.8683, 40.0136, 40.0819, 39.9575, -15.667, -30.62, 49.2519, 45.0333, 40.8728, 40.9167, 46.3158, 44.0511, 17.539, 41.6264, 39.7394, 39.7533, 43.5167, 39.8386, 36.7764, 16.817, 11.547, 40.12, 33.4489, 33.6883, 33.55, 33.4278, 18.167, 7.883, 8.132, 20.8, 10.217, 44.92, 44.2369, 45.933, 10.583, 18.2, 43.3086, 33.3503, 32.6464, 30.5217, -1.1, -39.65, 32.8864, 34.8814, 46.5833, 39.0167, 51.45, 51.45, 43.0689, -7.03, 18.2708, 44.0167, 49.8667, 38.2322, 36.0969, 28.627, 62.2831, 63.3, 46.4922, 29.2353, 40.2461, 46.5, 46.0833, 44.3814, 49.1833, 48.617, 63.7508, 63.7331, -29.6, -23.917, 34.4931, -27.23, -27.02, 46.6167, -37.6, 60.3831, 35.5981, 39.475, 48.3, 40.1478, -25.33, -26.85, 30.367, -31.667, 52.4167, 38.8325, 49.2, 49.1833, 33.3658, 45.4756, 50.05, 50.7167, 38.7, 50.1833, 50.1833, 49.5167, 49.5167, 49.5167, 49.5167, -29.3899, 42.8744, 64.7, 37.5742, 49.0333, 34.2256, 41.1722, 34.175, 38.8833, 34.1167, 44.25, 43.5667, 51.6333, 50.5667, 45.1289, 46.7769, 50.9833, 55.5333, 43.0206, 39.2603, 51.8, 46.6694, 31.8903, 31.8311, 40.4369, 41.2578, 22.9833, 6.2167, -32.5336, 35.55, 25.52, 32.42, 32.42, 37.9056, 44.2581, 36.4819, 43.8822, 33.25, 52.117, 33.6906, 40.0097, 37.9344, 46.517, 40.7569, 44.0139, 36.8586, -17.35, -21.983, -15.85, -4.267, 61.4206, -11.4022, 49.1919, 57.633, 43.684, -13.745, -13.8, 35.2719, 37.62, 35.1597, -25.067, 65.3197, 65.833, 40.3547, 40.4847, 45.6375, 39.6222, 45.8944, 49.2, 49.2167, 49.2833, -5.18, 66.183, 58.3667, 44.09, 38.6956, 38.7333, 45.4167, 47.785, 40.6036, 44.2764, 33.1869, 32.0467, 34.1892, 44.5169, 39.245, 32.8919, -20.433, 46.5, 28.0236, 61.5333, 42.7489, 42.1389, 44.65, 44.65, 50.483, 53.65, 28.9606, 46.8167, 59.45, 40.3675, 40.4311, 38.81, 41.7394, 34.0933, 34.0989, 48.78, -27.98, -34.08, 43.4167, 43.35, 46.4178, 48.833, 42.1333, 47.3111, 49.05, 51.0667, 41.3392, 43.73, 43.7833, 35.8722, 41.9819, 50.35, 41.9097, 49.683, 52.4166, -42.733, 11.15, 42.7292, 36.2642, 42.8917, 42.9203, 44.7667, 42.433, 16.633, -29.13, 52.22, 50.4, 44.4, 36.033, 60.1, 6.9667, 45.65, 48.5167, 48.2667, 49.3167, 45.35, 48.033, 47.3, -4.82, 50.1667, 46.3167, 49.3333, 28.6575, 48.1333, -37.8017, 69.75, 49.3333, 45.0667, -27.4361, 34.1167, 48.4, 54.417, 41.95, 41.95, 43.8333, -38.0958, 38.5, 49.617, 47.2508, 42.35, 61.483, 80.6, 39.6, -33.5085, 48.7647, 52.3, 42.8944, 42.0694, 41.8667, 46.6, 35.0331, 69.2, 45.9042, 45.4586, -23.867, 3.558, 55.467, 7.35, 42.0347, 47.675, 47.6775, 49.6, 44.033, 54.367, 66.033, 46.4672, -25.83, 49.5067, 37.905, 34.0817, 38.645, 26.2333, 26.25, -19.21, 46.1972, 36.7231, 36.7367, 18.0258, 22.254, 72.6833, 72.6833, 42.5639, 37.741, -22.533, 42.44, 40.8778, 42.665, 42.6389, 0.0, 34.1381, 45.6572, 52.32, 40.917, 47.7, 18.533, 64.105, 42.9269, 35.1739, 47.9833, 30.8408, 48.1333, 36.7578, 36.7725, 48.1269, 34.7325, 49.0667, 46.1167, 43.395, 51.0333, 40.0978, 48.4667, 52.65, 43.29, 55.18, 42.553, 61.4656, 61.6303, 10.917, 49.2167, 38.4833, 44.1542, 43.5278, 36.4136, 60.785, 49.9833, 49.9, 49.9, 39.2833, 34.1742, 31.8833, 36.0678, 60.7667, 48.9994, 33.2511, 43.65, 40.4175, 50.517, -38.3148, 45.5406, 45.5908, 43.6497, 45.5181, 36.5878, 45.5511, 45.5606, 41.1331, 39.8053, 45.52, 45.5, -1.033, -30.05, -1.733, -9.18, -10.52, -10.717, 41.2, 33.073, -8.767, 38.7569, 47.65, 49.25, 49.3167, 49.2, 49.3, 62.6211, 56.2472, 50.3833, 60.2036, 60.1958, 48.1139, 48.1203, 27.8381, -43.1639, 29.9506, -32.5091, -32.528, 47.5667, -49.35, 18.6, 18.6, 11.667, 48.35, 65.25, 43.9186, 42.8833, 42.8667, 43.1833, 48.15, -33.985, -38.3906, -0.72, 31.985, 4.85, 50.6833, 45.65, -20.3725, 45.9833, 43.9483, 43.95, 44.0219, 42.975, 26.0942, 26.1658, 41.38, 44.25, -34.7225, -34.4906, -31.4336, -31.4399, 26.5578, 41.6264, 49.8333, 49.2833, -9.383, -29.23, 28.4342, 48.9978, 42.7519, 44.15, -33.1708, 48.6, 31.28, 60.0503, 50.65, -30.733, 19.583, 48.1161, -17.699, 43.3944, 43.25, 46.7781, 60.2033, 60.4056, 59.985, -27.386, 46.35, 42.65, 54.3, -14.1, -71.883, 33.1986, 51.8833, 48.3297, -28.333, 45.8, 46.3, -26.733, 35.0539, 29.0283, 40.63, -24.183, 46.9603, 46.9833, 46.8814, 37.8958, 38.083, 32.6058, 52.3833, 43.2261, 39.3619, 40.2383, 41.7267, 41.6267, 48.6833, 36.48, 46.1167, 45.8525, 43.035, 44.1667, 46.51, 44.7764, 46.5122, 49.8333, 49.8833, 49.8333, 42.8886, 48.5722, 42.8708, 42.7917, -41.6839, -15.833, 48.667, 21.22, 14.05, 11.8, 50.067, 29.9167, 50.0906, 50.0, 43.5, 43.0514, 43.31, 41.64, 57.72, 41.659, -22.7, 37.6456, 65.9233, 46.31, 46.3, 51.95, 56.05, 45.5447, 60.067, 42.9, -41.0867, 27.55, 22.13, 19.97, 19.95, 32.45, 34.5706, 33.8203, 34.6517, 43.9919, -26.733, -30.975, -22.117, 29.5711, 46.6539, 46.6833, 58.993, 42.0933, 43.4, 43.6725, 53.7739, -25.733, -25.917, -25.75, -25.17, 46.1758, 50.333, 49.583, -34.2971, 39.5989, 39.6092, 57.317, -29.67, 46.6461, 48.3511, 36.1883, 48.767, 41.3331, 50.583, 49.667, 43.0864, 46.0331, 38.2122, 18.041, 40.3986, 41.3661, 37.1244, 38.3567, 49.4667, 49.4667, 40.9275, 53.2167, 40.6514, 53.8333, 53.8833, 54.05, 53.8833, 53.8833, 32.161, 54.2833, 54.3, 54.2833, 44.3022, 60.033, 50.6833, 42.22, 37.72, 31.9633, 27.08, 21.3, 20.28, -69.383, 34.3667, 34.3694, -10.2, -20.4925, 42.7342, -33.8193, 46.2014, 44.1667, 37.3997, 41.7219, 13.4, 42.05, 42.2897, 40.2458, 70.25, 52.567, 36.3092, 45.3375, 47.267, 49.8, 42.4, 41.9, 57.8167, 49.7267, 47.8, 35.72, 27.92, 65.3667, 65.3992, 57.57, 61.8, 19.0333, 38.29, 38.2597, 15.683, 5.6, -45.4, 6.167, -22.5, -22.283, -47.735, 15.217, 9.967, -41.433, 20.83, 31.3, 19.75, 9.75, 45.85, -10.9, 48.5833, 48.6, 44.9, 37.0556, 35.1842, 51.4167, 37.475, 46.7603, 46.7439, -22.68, 40.817, 61.8017, 33.8556, 9.967, -53.0, 18.567, 20.25, -52.4, 26.9164, 26.9172, -35.367, 21.04, 28.96, 53.0, 62.0911, 52.1167, 34.9858, 42.065, 57.0, 54.367, 32.3664, 40.9247, 8.033, 41.65, 20.0256, 61.5356, 61.5667, 21.3814, 47.2, -1.5, 36.27, 37.233, 63.7356, 63.9331, 38.417, 39.0, 39.224, 42.8264, -30.0, 42.8081, 77.4667, -30.12, 28.335, 31.15, 60.7167, 60.7167, 45.083, 38.15, 43.48, 67.55, 36.067, 33.6, 40.4, 42.1, 21.95, 19.233, 47.383, 44.017, 27.95, 50.5667, 42.2167, 52.6706, 49.4, 34.2761, -34.0112, 38.5, 33.665, 65.4, 41.5992, 42.2667, 47.8667, 50.5333, 50.4333, 46.8, 46.8, 51.7967, -31.9, 50.6, 50.6, -42.0967, 31.717, -17.883, 34.3447, 35.9167, 20.617, 51.3906, 30.05, 53.0333, 53.0333, 53.0333, 30.251, 54.6167, 53.733, 47.8092, 47.9375, -26.6125, 39.9367, 47.2236, 30.5497, 39.9058, 39.9733, 39.9369, 50.0167, -33.433, 39.0669, -32.783, 27.52, -31.5086, 32.0706, 30.7836, -5.2, 13.7667, 34.133, 34.6, -41.2083, 28.967, 64.6656, 64.6117, 59.8206, -4.22, 61.0844, 40.3667, -20.1883, -20.1824, 61.9667, 25.9708, 48.3, 50.05, 42.7022, 42.7611, 46.8, -5.242, 52.4, 47.7467, 47.383, 34.9869, 64.1167, -31.18, 10.442, 29.626, 33.821, 42.5478, 40.3119, 34.78, -1.817, 52.4481, 40.6006, 43.6167, -25.9007, 45.8342, 46.7858, 48.55, 21.217, 47.91, 16.3, 22.3, -10.05, 35.7294, 35.8922, 35.7944, 45.7842, 36.5044, 39.8297, 18.767, 45.1, 33.0375, 33.0114, 34.1508, 25.53, 25.53, 36.9, 39.1483, 60.33, 57.84, 33.2222, 28.28, 41.6628, 29.5439, 35.3692, 53.45, 53.4167, 57.78, 44.9892, 44.9894, 40.0892, 40.1697, 16.77, 25.733, 62.8167, 62.0628, 40.3131, 65.9325, -29.2, -29.25, -27.617, 45.9717, 46.2, 44.115, 44.0433, 44.0728, -21.203, 11.867, 37.25, 51.1778, 25.617, 46.5, 40.825, 49.6833, 16.983, 36.9194, 36.8864, 49.0667, 66.45, 61.1167, 61.1392, 61.1444, 47.22, 47.7333, 62.71, 63.3778, 61.4225, 50.25, 40.7308, 41.0319, 44.2167, -33.5803, 41.8056, 49.65, 40.1178, 33.85, 26.7069, 46.6533, 48.9975, 51.5667, 47.2972, 20.7, 12.6336, 40.3814, 32.4936, 44.2961, 43.5658, 64.566, 66.9, 36.0686, 42.5242, 40.4269, 40.3667, 42.75, 75.3833, 63.82, 53.07, -8.05, -8.1255, 44.9086, -29.183, 40.1667, 43.245, -27.245, 40.5175, -37.0194, 44.8656, 45.3767, 34.0528, 44.2558, -21.9931, 32.7047, 48.8197, 49.6, 54.0, 37.4767, 44.5483, 31.895, 40.1519, 45.0275, 39.9833, 43.5361, 43.4258, 40.0978, 52.3167, 52.1833, 38.8272, 56.55, 40.7981, 40.7833, 47.3, 45.4667, 50.9333, 51.0667, 47.8881, 47.8769, 45.1769, 42.1233, 37.9, 41.0036, 44.6978, 39.4667, 41.4847, 36.71, 45.7125, 36.7, 45.7075, 32.4219, 29.9667, 44.6833, 36.1353, 52.4167, 40.3575, 44.6103, 43.5231, 33.6, 39.0633, 28.3294, 28.2939, 49.0433, 38.07, 44.7, 50.4, 50.4667, 50.4333, 50.4333, 50.4167, 47.68, 50.9917, 36.3825, 60.685, 48.8264, 49.3, 61.7161, 47.6758, -74.017, 32.32, 47.7167, 58.45, 46.6, 48.8042, 61.1592, 61.183, -0.892, 54.2892, 45.4833, -0.43, 11.75, -34.1711, -34.1983, 48.0667, 59.1332, 41.33, 42.5667, 39.4839, 39.5333, 39.5683, 68.0697, 40.9239, 38.567, 48.6469, 66.5167, 21.43, -22.483, 30.0564, 33.7158, -27.45, 74.7167, 74.7167, 61.6, 49.55, 46.1222, 48.77, 48.75, 41.1494, 50.9667, 50.9667, 50.95, 43.8083, 43.8339, 46.6667, 47.3333, 35.6256, -14.3, 63.817, 64.1331, 43.2064, 56.533, 48.6708, 52.3, 47.5633, 50.0333, 41.8847, 45.5986, 45.6308, 36.4, 57.0139, -38.4612, -11.0, 45.4164, 45.5378, 34.0608, 40.0261, -28.78, 46.8886, 37.2633, 43.0528, 38.7619, 44.7656, 46.3119, 37.0947, 43.3314, 37.9192, 41.9064, 45.6333, 43.8833, 37.505, 49.1667, 49.1833, -20.7289, -33.6022, -33.6004, 39.8544, 31.3656, 38.2061, 37.7131, 50.333, 42.9506, 43.1006, 45.2142, 32.5333, 42.45, 43.05, 45.5022, 38.15, 41.4197, 50.7167, 48.217, -29.12, 39.5447, 39.5122, 39.5264, 56.9625, 45.5, 45.4239, 32.13, 45.3331, 45.22, -23.12, 68.43, 59.18, 44.02, 48.45, 51.117, 32.2056, 57.25, 47.2489, -22.71, -9.967, -39.017, -33.085, -22.917, -51.617, -53.778, -32.017, 26.3769, 37.7219, -17.8, 21.933, 34.7397, 35.7178, 38.8172, 38.7872, 45.8783, 40.1167, 60.18, 32.0817, 58.917, 64.7097, 67.73, 47.1175, -24.167, 11.4167, -30.8967, 41.15, 40.9619, 43.4508, 33.9669, 33.9511, 33.9519, 43.0308, 43.0661, -33.8258, 44.8542, -28.45, 50.2833, 47.0, 47.4333, 45.7, 47.8, 48.25, 48.2167, 51.2167, 46.9833, -34.15, 50.583, 45.979, 24.7, 24.9, 41.0331, 35.38, 54.6, 40.8667, 44.1625, 37.3617, 36.4783, 37.3169, 43.9, 45.0853, 53.2333, 49.5, 19.3, 30.5653, -33.8, 65.1, 19.25, 45.6817, 31.8836, 48.5167, -37.1628, 7.1, 36.4706, 51.1833, 51.2333, -18.317, 27.7894, 50.4667, 44.0531, -34.483, 4.833, 41.9117, 43.6056, 41.0664, 41.785, 43.8578, 37.2167, 43.1167, 43.9042, 44.0667, 51.8, 44.1317, 29.7286, 46.3667, 32.8711, 42.1928, 49.1667, -23.3753, 44.925, 44.4667, 28.0286, 28.0836, 30.0239, 39.7594, 39.1008, 43.3636, 42.3969, 35.8361, 40.4333, 48.1833, 48.255, 38.0392, 32.6328, -34.5714, 49.5667, 49.5667, 36.9769, 52.3833, 52.4333, 52.4167, 35.8936, 38.8561, 37.5514, 40.55, 42.5475, 34.9869, 41.5181, 42.9717, 33.1581, 51.15, 43.43, 66.9833, 43.9833, 46.8203, 41.5944, 41.6431, 40.5514, 50.8667, 25.18, 39.6681, 52.5, 65.31, -19.683, -20.7767, 55.183, 50.6417, 36.4161, 45.4169, 47.19, 33.8103, 49.017, 16.05, 48.8811, 37.9572, -24.4619, 32.8978, 53.2, -26.5442, 57.5, 41.7831, -26.5719, 57.49, 34.2453, 41.6042, 42.8592, 34.3478, 42.5906, 39.3389, 54.085, 53.8833, -15.93, 25.97, 55.1, 65.04, -26.13, 33.6731, 33.655, 40.2878, 18.255, -14.7356, 58.06, 61.13, 51.4333, 62.5669, 62.5769, 47.2325, -32.904, 28.63, 32.4481, 45.4525, 48.8486, -41.7772, 38.4506, 43.2131, 43.2389, -34.5519, 44.7178, 47.8758, 30.9461, 51.6167, 51.5667, 41.8186, 43.35, 43.7833, -34.5267, -34.5106, 42.2033, 37.5019, 54.1667, 34.5431, 44.7511, 37.4747, 44.1, 53.933, 55.75, 50.6667, 49.0833, 49.0833, 52.25, 16.5, 54.85, 48.7272, 51.9108, 61.9667, -42.025, 63.24, 61.39, 54.1817, 51.9, 57.2, 47.25, 67.525, 33.3075, 36.6389, 32.8556, 14.1717, 36.65, 53.1303, -10.733, 49.218, 51.8067, 49.3856, -67.567, 46.4808, -38.12, 48.4714, 51.9606, 51.8917, -32.0069, -32.0089, 48.1819, -12.5, 39.0333, 37.6178, 46.4414, 42.3414, 49.85, 64.6847, 41.4272, 43.7639, 43.85, 48.25, 48.2167, 66.5789, 66.4981, 45.89, 45.08, 39.3419, 69.0833, 39.4286, 36.3464, -30.4829, 35.945, 38.7153, 25.3867, 46.05, 47.6167, 47.4869, 45.7189, -37.8, 51.5, 39.0, -37.3389, 40.2022, 42.2231, 52.5833, 44.4, 50.833, 48.9375, 46.2964, 48.3542, 54.095, 33.3678, 24.02, 57.9, 44.5308, 43.95, -23.5293, -17.917, 33.33, 33.583, 61.3667, 39.033, 60.4217, 60.3667, 42.6042, 49.6478, 36.2333, -14.47, 37.95, 43.8053, 39.6042, 42.7547, 40.1347, 38.8611, 41.2944, 31.8092, 44.2333, 45.2667, 50.7667, 36.855, 35.2578, 34.51, 38.8761, 38.9117, 53.78, 76.183, 77.2, 70.4003, -29.27, 40.7022, 32.5344, 39.2764, -36.1047, 51.85, 43.6253, 56.4833, 38.8417, 52.817, 50.101, 42.467, 58.1, 37.9, 46.2986, 46.5333, 37.9136, 45.2172, 40.4661, 58.3831, 51.57, 40.9583, 55.49, 38.15, 50.1167, 56.267, 48.6167, 49.2142, 19.05, 42.52, 27.87, 43.9333, 43.9333, 45.2167, -10.5, 58.02, 36.2, 45.8667, 33.0722, 48.9578, 72.0, 72.0, 45.85, 21.56, 48.4661, 38.5556, 38.5069, 38.5667, 38.6667, 38.6956, 42.4194, 34.6847, 45.5333, 45.7, 48.9417, 42.15, 47.25, 59.14, 32.815, 32.8547, 32.3, 33.267, 23.85, 39.4317, 41.8667, 43.5097, 36.25, 43.5331, 58.3333, 47.3667, 37.0, 38.0858, 29.05, 34.867, 36.2, 45.45, 60.317, 44.9, 43.9517, 34.1736, 34.3703, 43.3, 45.726, 39.7675, 3.883, 38.5067, 45.8489, 50.0392, 47.315, 34.5172, 43.0114, 44.42, 45.3167, 28.3378, 16.051, 47.3164, 38.1642, 46.8667, 41.2078, 49.82, 47.3036, 23.067, 67.34, 35.55, 38.9, 17.15, 57.667, 59.9, 10.451, 17.039, 42.1506, 40.9592, 40.9564, 59.91, 64.4942, 64.59, 48.7842, 56.683, 34.051, 66.5294, 37.6331, 38.6158, 38.6453, 43.1667, 34.9444, 44.905, 61.17, 61.09, 38.5328, 38.5, 38.9594, -16.15, 36.6594, 36.6636, 38.9139, 40.51, 16.167, 38.8, 27.45, 35.6836, 38.365, 39.4247, 43.3544, 43.9256, 35.6967, 38.3406, 66.8208, 66.8331, 67.1622, 67.3667, 67.215, 67.7475, 35.4572, 31.567, 47.2667, 50.6833, 50.7, -32.9869, 44.9333, 45.15, 45.1875, 48.6667, 66.8125, 43.6333, 60.3733, 60.3239, 40.7667, -24.85, 50.9667, 66.8483, 37.6511, 43.75, 25.367, 25.45, -31.433, -24.033, 48.8167, 48.8833, 36.8894, 43.6, 44.0444, 31.7456, 40.7364, 40.7781, 40.7708, 29.5622, 42.5167, 38.5006, 33.9978, -13.017, 47.8, 52.0367, 52.0792, 52.8581, 45.4, 31.35, 36.1, 53.25, 18.02, 39.5667, 57.35, -14.279, 36.4528, 37.37, -4.083, 46.5331, -27.3617, 41.817, 37.7, 41.283, 42.1831, 31.0619, 13.333, -71.7, -70.3, 24.8, -2.083, 35.247, 43.1792, 38.1917, 35.42, 5.9, 61.7881, 41.52, 57.0, 34.7436, 50.3531, 35.2239, 30.1414, 32.9744, 45.6833, 55.39, 59.29, 20.85, 49.1, 34.1419, 35.2106, 50.7, 48.2942, 53.25, 53.25, 53.25, 41.1167, 41.45, 43.4194, 55.2831, 38.9817, -24.7298, 44.4667, 40.4633, 50.5, 46.7953, 46.5456, 41.4667, 34.2878, 55.3167, 28.8147, 43.4569, 35.5347, 35.7047, 63.967, -5.85, 29.4, 16.53, 35.594, -31.37, 49.5033, 37.094, -33.68, 26.97, -30.83, 43.4644, 43.4917, 43.4292, 39.9578, 39.24, -2.433, 42.7, -13.72, -13.762, 13.967, 33.7442, 33.68, 34.4167, 34.4258, -17.8, 36.9906, 33.9958, -50.2, 4.6, 35.7667, 35.6194, 35.6169, 34.1208, 20.2, 23.48, 34.95, 36.971, 39.817, -21.96, 34.8994, 34.0075, 34.3119, 36.3478, 31.7625, 34.9358, 38.4381, 27.3, 26.2656, -36.567, 38.4786, 14.7833, 33.9778, 33.5286, 38.5039, -33.5, 45.5458, 42.8, -27.767, 42.8878, 20.03, 13.4833, 21.81, 7.069, 23.45, 44.4333, 44.4356, -21.53, 18.433, 44.5456, 31.55, 34.635, 18.217, 39.7, 29.98, 12.6, 12.583, 31.3711, 12.1167, 29.5253, 7.841, 29.5442, 29.3833, -40.783, 29.4508, 23.71, 34.1344, 21.53, 28.78, -41.151, 33.1819, -0.917, 7.8, 32.5722, 21.47, 32.7336, 32.8667, 32.8158, 32.7167, -24.667, 23.15, 7.68, 24.85, 7.9, 37.7706, 37.6197, 37.7281, 34.1061, 37.3117, -14.967, 27.26, -16.367, 15.73, 23.21, 33.7869, -16.267, 19.82, -13.067, 35.1086, -17.833, 9.9333, 37.3497, 23.05, 26.48, -31.571, -15.383, 25.55, -31.5, -26.667, -25.8, 9.917, 22.17, -49.307, 45.035, 18.13, -33.273, 0.862, 37.1953, 37.0533, 35.2372, 35.3056, 22.2075, 17.29, 29.8833, 43.9375, -33.083, -16.333, 44.1944, 21.05, 33.0956, -24.067, 4.747, 29.28, 23.91, 21.98, -34.588, 37.9983, 28.58, 31.1833, 13.7, 43.3075, 18.3469, 43.3606, 32.2714, -22.017, -6.6333, -0.133, -6.75, -23.217, -13.43, -22.1, -2.533, -28.4, -18.7, -23.5, -23.617, -21.483, -20.91, -15.81, 31.3972, 48.0667, 43.067, 58.367, 36.5331, 43.8667, 43.82, 44.3853, 64.28, 56.47, 27.4014, 46.017, 41.4528, 43.0333, 51.5667, 49.0833, 55.6, 32.05, 9.15, 9.3, 58.7605, 40.3, 38.517, 41.2, 38.4, 45.0839, -1.833, 61.71, 43.0, 51.3, 59.2856, 50.8167, 39.733, 31.4831, 31.6908, 33.167, 52.1167, 52.1167, 52.1667, 52.15, 52.1167, 71.97, 4.95, 4.95, 47.3667, -24.4, 58.4356, 67.5, 24.567, 12.683, 6.6536, 48.7833, 48.7833, 48.7833, 45.9481, 47.717, -31.7, 30.6264, 59.6483, 34.425, 48.55, 46.4867, 46.5333, 46.4833, 46.4794, -7.983, 47.4536, 46.4667, 39.51, 35.1525, 32.13, 16.55, 40.7, 7.98, 8.032, 57.7667, 39.6361, 57.83, 61.9458, 61.8406, 63.6936, 33.2106, 67.2853, 41.3003, 45.3667, 64.97, 46.4858, 19.233, -41.4639, 53.3, 45.7728, 40.9833, 49.9203, 47.68, 47.9608, 54.8, 54.8, 54.8, 49.9758, 51.9131, 51.7667, 52.3156, 54.5289, 49.7458, 53.6631, 49.4231, 50.7294, 47.33, 50.65, 45.0, 50.3, 47.2, 39.0167, 52.38, 47.6469, 50.4939, 51.8381, 50.3167, 48.7778, 49.0828, 49.3289, 47.5778, 50.6456, 50.0583, 48.3667, -79.9, 53.6442, 54.5181, 14.633, 39.2453, 48.8306, 39.7858, 39.6842, -32.0335, -32.0458, -32.0632, -37.871, 41.1117, 37.65, 51.5833, 40.4831, 52.3833, 46.5, 41.8706, 34.6736, 38.6886, -41.1708, 36.7458, 44.9469, -43.0425, 52.3667, 38.4747, 39.4872, 29.7714, 44.65, 35.4661, 35.2683, 45.9869, 47.5303, 47.6872, 47.4444, 47.65, 19.1336, 45.2536, 27.02, 40.3, 45.1833, 47.271, 39.1836, -26.5, 38.7042, 38.6753, 37.1317, 52.7833, 40.8592, 42.5333, 50.1167, 34.8956, 48.4958, 23.593, 52.9, 39.3167, 47.2142, 51.9056, 38.2, 64.0, 63.767, 46.4331, 13.4, 40.9478, 62.9367, 45.5167, 62.9167, 50.433, 66.25, 46.6722, 66.6033, 63.2, 45.51, 38.0, 42.4075, 59.4433, 53.133, 47.867, 35.3322, 36.5419, 40.7831, 40.8206, 50.1667, 40.3589, 32.4111, 35.1647, 44.4403, 51.4167, -6.967, 50.4167, 52.183, 50.867, 42.1569, 32.7131, 35.2317, 50.35, 54.1, 50.933, 35.591, 50.633, -29.83, 42.317, 38.267, 44.1383, 38.3333, 46.2833, -10.467, 69.2347, 13.55, 48.3333, 54.817, 16.667, 36.0, 12.534, -2.6, -24.27, 37.567, -1.268, 50.2167, 50.2167, 50.2167, 48.085, 49.567, -6.117, 51.1667, 54.633, 47.017, -15.883, -6.46, 53.9, 59.6, -11.63, 32.28, 32.42, -1.867, 44.2319, 40.9586, 43.3981, -19.467, 36.18, 36.178, 42.6833, -24.1542, 41.7, 65.9383, -29.23, 56.35, 60.38, 50.68, 39.12, 35.9297, 39.35, 37.4167, 37.37, 46.0, 53.7667, 40.8997, 60.3539, 60.1883, 60.1283, 52.8833, 42.6003, 70.167, -4.667, 37.4, 38.9822, 33.6325, 51.25, 34.72, 17.88, 37.317, 38.433, 36.5672, 56.08, 43.73, 32.7997, 28.284, 34.346, 40.0, 32.297, 39.07, 39.567, 36.4167, 22.25, 37.53, 39.1614, -18.367, 50.7333, 73.18, 50.1833, 35.215, 21.73, 31.4, 31.167, 46.5667, 45.217, -34.5683, 52.702, 23.4, 44.4, 22.783, 24.667, 27.33, 27.23, 55.367, 25.333, 47.5983, 38.8961, 39.3983, 17.467, 40.7142, 49.65, 37.135, 44.7631, 52.798, 46.5667, 46.5667, 40.0328, 48.65, 45.6167, 39.55, 39.5719, 44.6333, 43.1211, 43.75, 43.7694, 45.9667, 46.1833, 37.715, 43.2167, -41.3831, 30.6886, 53.381, 45.1333, -41.3886, 39.6828, 44.0833, 48.5042, 38.2, 39.4078, 39.5781, 39.5283, 35.4922, 35.3253, 43.1808, 60.72, 44.5478, 44.5, 40.0331, 47.2, 47.2381, 52.7167, 40.7672, 16.7, 30.73, 29.6, 62.1, 41.733, 22.55, -37.9075, 41.7167, 50.17, 68.8167, -36.4289, 45.4333, 42.6772, 34.3019, 44.7694, 44.8406, 44.8167, 48.3833, 33.7033, 46.95, 33.77, 46.4658, 38.033, 51.867, 25.6, 32.717, 31.1, 33.95, 68.95, -23.1, 53.85, 38.75, 33.45, 40.0589, 36.795, 48.45, 29.2, 57.0, 52.75, 32.18, 32.5, 37.667, 37.133, 29.533, 42.3703, 40.8217, 43.217, 66.25, 34.983, 42.1, 38.5528, 50.45, 17.667, 38.8, 47.5319, 50.833, 44.9667, 42.9383, 38.9161, 45.3767, 45.4, 34.2639, 32.4506, 32.5, 32.4267, 32.5428, 30.5667, 43.2667, 38.0, 29.3333, 42.317, 40.3944, 55.9331, 51.4833, 51.4167, -3.68, 45.8, 43.4047, 1.6, 1.55, 2.262, 2.3, 50.85, 35.18, 35.2, 33.068, 47.7283, 40.7361, 40.2706, 41.2294, 41.1014, 66.5997, 62.38, 52.25, 50.8544, 39.5833, 31.1831, 39.5678, 31.5553, 48.0728, 47.5783, 47.5667, 32.9167, 38.6319, 43.0019, -60.7083, 37.4, 41.3328, 11.43, 38.85, 68.7553, 64.6833, 63.0081, 37.917, 57.25, 11.35, 36.8775, 24.82, 41.2, 35.7606, 36.3697, 60.88, 62.76, 33.5636, 37.7617, 34.4722, 37.8089, 45.0058, 42.8589, 43.0022, 42.95, 50.55, 33.3667, 44.8728, 35.97, 61.5175, 40.6008, 43.1244, 42.75, -25.24, 51.983, 22.767, 39.1, 44.7, 45.0167, 49.3333, 49.35, 50.0017, 35.1167, 17.13, 54.4167, 58.08, 58.78, 11.12, 10.603, 48.9981, 55.54, 41.075, 46.85, 27.95, 28.33, 1.35, 56.74, -32.6133, 60.16, 38.5, 42.033, 28.0353, 40.1, 46.9167, 53.8833, 46.2167, 42.3964, 42.3914, 43.0558, 43.5878, 50.1333, 50.1167, 42.8931, 2.033, 43.183, -81.65, 54.5, 58.8875, 31.2, -27.78, 66.9167, 45.6656, 45.6689, 44.2842, 49.4833, 4.217, 57.0481, 57.05, 20.133, 39.75, 39.75, 37.8, 39.5, 29.2, 29.2, 43.2667, -8.35, 57.733, 63.1883, 59.4556, 46.25, 45.6228, 58.4, 58.49, 56.84, 53.1467, 64.62, 60.11, 36.933, 55.49, 44.9436, 68.2883, 65.2019, 47.6833, 42.0, 41.97, 58.39, 54.0, 56.65, 68.1503, 59.15, -24.983, 45.3367, 57.317, 61.9772, 37.3133, 38.9, 62.7089, 50.2917, 41.8586, 45.6333, 59.9081, 55.2833, 55.3, 55.3, 55.3, 52.97, 53.45, 45.17, 48.7167, 51.5, 71.0839, 48.65, 30.265, 30.3433, 44.4625, 42.0167, 41.0558, 42.67, 46.3, 52.35, 42.5667, 37.9833, 53.0, 46.5, 44.3667, 48.62, 37.5339, 54.8333, 54.8167, 35.5164, 44.0833, 37.1644, 40.7833, -40.8347, -40.8492, 30.0067, 34.4678, 35.9419, 38.8822, 39.7772, 34.1158, 38.7839, 40.6044, 53.3667, 50.0667, 54.75, 46.8367, 35.9106, 40.5453, 44.1333, 45.0997, 44.1333, 42.4667, 50.7333, 47.5414, 39.0403, 40.55, 34.5081, 49.0667, 34.5, 38.3989, 62.0303, 35.3333, -33.7844, -33.7676, 41.9667, 35.4519, 38.2364, 43.95, 32.71, 54.3, -3.7, 34.0828, 67.3678, 67.25, 67.8206, 68.0839, 39.425, 39.56, 42.6514, 59.75, 61.27, 59.19, 43.2078, -6.126, 52.1256, 42.695, 52.27, 61.5644, 33.23, 31.883, 24.467, 51.0606, 67.9, 38.25, 8.98, 13.0, 58.8842, 50.1167, -13.85, 40.9258, 43.4833, 39.9286, 60.4667, 49.2, 39.0, 51.1408, 56.2, 32.4033, 54.033, 51.63, 46.3575, 49.9, 53.0, 45.7831, 23.633, 38.2456, 49.45, 37.1167, -32.732, -34.08, 40.6153, 30.3367, 41.39, 42.95, 51.3531, 67.0167, -10.667, 39.383, 7.2, 32.65, 33.38, 47.05, 50.3756, 45.3242, 52.3167, 38.2994, 30.5831, 37.9672, 38.3167, 36.23, 21.333, 71.875, 47.6833, 49.7667, 46.0333, 41.775, 61.887, -23.48, 52.4, -0.933, 50.8833, 65.54, 61.7167, 36.77, 51.15, 53.1, 52.53, 46.533, 63.65, 43.58, 64.1108, 23.767, 20.6, 35.4831, 35.5333, 36.283, 36.712, 62.5333, -0.73, 49.65, 50.8982, 56.3333, -31.2319, -31.2353, 30.5403, 33.9947, -27.9832, 38.7506, 45.5833, 41.7072, 36.6953, 45.1994, 49.0167, 41.3333, 37.9667, 45.45, 45.5906, 40.6764, 42.4014, 44.6264, -17.6053, 19.0825, 38.8983, 44.0725, 44.9667, 45.0167, 42.7667, 26.0814, 42.5667, 33.3814, 38.4239, 45.8333, 47.5619, 49.4667, 47.5833, -30.9225, 42.15, 55.08, 49.0, 37.5122, 40.0797, 60.38, 33.9153, 39.5558, 61.1, 43.9364, 34.9078, 38.1167, 44.9083, 35.9067, 49.75, 49.75, 36.3894, 44.5139, 36.1981, 43.5, 25.52, 38.8008, 39.2836, 43.1653, 42.25, 46.1833, 43.1644, 50.4167, 40.4725, 40.2472, 57.57, 53.3667, 53.3667, 43.4231, 46.2667, 55.7, 43.5167, 43.53, 47.6667, 47.6831, 47.6217, 47.6811, 52.1833, 45.8236, 49.0167, 42.4306, 38.6667, 51.1, -29.667, 41.8161, 49.5, 49.45, 36.3628, 34.1311, 37.2353, 44.6667, 45.4, 44.2469, 37.3694, 39.8447, 37.2833, 36.4711, 43.3436, 39.9667, 42.9167, -24.123, 40.5711, 42.8222, 42.5333, 40.5931, 37.5625, 38.0406, 40.4403, 37.7, 33.4792, 38.25, 46.7833, 49.7, 49.7833, 49.7333, 49.7, 49.9, 47.8833, 43.4869, 44.7667, 32.9083, 47.1833, 42.0667, 35.37, 39.1833, 46.55, 67.45, 62.45, 55.87, 55.43, 59.2, 44.9667, 52.2331, 34.083, 37.2714, 41.5178, 48.9167, 59.95, 46.0556, 32.9403, 41.1247, 39.4833, 47.2767, 47.2833, -26.92, 43.9822, 47.1547, 59.95, 46.4167, 44.2206, 44.9589, 35.1767, 48.4564, 44.1708, 44.9528, 45.0167, 51.88, -28.6617, 41.9564, 34.1667, 41.4581, 58.0, 49.7333, -11.01, 56.5, 29.9381, 44.2667, 46.5, 47.8664, 51.3, 33.9333, 35.9247, 42.15, 39.0858, 35.81, 40.7933, 32.2822, 33.4692, 81.6, 38.1692, 58.9569, 50.1833, 49.2333, 52.8967, 45.05, 59.3, -37.0717, -37.068, 44.7892, 44.75, 28.4631, 18.25, 39.6253, 40.4883, 36.6736, 46.8947, 38.0053, 40.9167, 51.45, 47.688, 39.9714, 48.3508, 50.2892, 49.5333, 29.7236, 64.0225, 65.09, -35.2795, 65.0667, 44.2661, 45.3903, 32.2314, 48.5333, 75.42, 38.2144, 40.6278, 31.8347, 38.9764, 53.5994, 52.3333, 40.3764, 41.4039, 46.5136, 47.7333, 47.7372, 44.5114, 44.7344, 55.9333, 63.3833, 33.5575, 50.6, 46.05, 49.1333, 47.0333, 45.4333, 45.4333, 46.5833, 46.85, 46.2, 46.85, 46.8167, 45.1667, 45.1667, 46.6167, 45.5167, 46.7833, 46.7833, 45.5, 49.75, 46.4167, 46.7333, 45.6167, 45.2167, 47.05, 47.5667, 48.4, 45.65, 16.72, 43.8667, 48.62, 31.0372, 45.0417, 36.1175, 40.2333, 36.1625, 43.9, 45.15, 35.8953, 46.8536, 41.75, 47.86, 59.35, 59.34, 59.3533, 42.3997, 37.6967, 37.9994, 37.8892, 16.33, 59.2333, 53.5, 33.4311, 50.1167, 61.0008, 61.6467, 39.3669, 36.9742, 39.5861, 50.1167, 59.25, 57.15, 67.5, 63.97, 65.51, 63.6, 61.17, 66.7667, 64.95, 63.28, 63.3028, 39.5625, 42.6469, 58.33, 58.2, 65.7, 41.795, 62.8, 48.6667, 43.9667, 42.9108, 40.1, 59.95, 51.103, -42.155, -42.1558, 48.55, 36.4414, 43.3833, 43.3667, -35.256, -35.2836, -36.8472, 50.4, -42.7681, 42.95, 42.9833, 39.3047, 48.8283, 42.1, 40.1833, 42.1894, 39.5631, -32.7963, 42.0256, 46.7153, 58.083, 61.7, 35.8683, 46.9167, 63.85, 59.1513, 39.4344, 49.217, 41.0125, 61.9157, 27.1897, 36.6364, 47.0, 52.3667, 37.4833, 44.8797, 55.54, -32.58, 48.6833, 48.7703, 34.4744, 48.8292, -33.517, 65.0733, 55.917, 46.7167, 44.8592, 45.2833, 46.5333, 47.9833, 49.45, 45.6667, 48.5667, 45.0833, 45.1333, 45.1167, 51.3667, 51.3833, 47.95, 44.07, 29.8858, 45.5667, 46.05, 29.8722, 45.0833, -16.45, 47.45, 46.4833, 45.6667, 47.3667, 43.2, 43.2, 43.1167, 38.6856, 38.9286, 46.35, 38.8147, 48.3333, 47.9167, 45.5433, 48.6333, 46.2833, 46.05, 45.4117, 47.2, -20.887, 48.63, 46.3167, 51.9833, 47.4833, 48.1833, 46.0667, 46.1167, 46.1, 46.4833, 45.9667, 46.9833, 48.4833, 47.4331, 45.8667, 37.1069, 46.15, -28.0489, 56.6, -28.0361, 45.9156, 45.8833, 48.05, -15.933, -41.3225, 45.8667, 47.6, 45.9833, 45.5667, 45.8489, 45.95, 45.6911, 43.9903, 45.7333, 48.8833, 46.9167, 45.8, 47.0933, 47.6167, 47.5667, 47.5167, 34.5183, 31.9497, 46.9167, 39.7736, 46.0833, 46.2667, 5.5, -22.3472, 46.9167, 43.0333, -22.3458, 47.15, 48.6667, 54.3, 38.75, 38.7525, 38.6292, 38.6572, 38.6333, -28.18, 45.75, 46.55, 45.2, 44.7, 48.4089, 48.7383, 46.9167, 62.0528, 48.7375, 46.5833, 50.4367, 46.6833, 46.5333, 45.7333, 46.35, 46.9667, 44.9461, 46.4167, 44.9319, 57.1553, 47.2333, 44.3222, 27.7628, 59.9667, 27.7628, 27.9106, 38.7556, 54.333, 46.6667, 46.763, 46.25, -21.333, 45.55, 48.183, 48.6167, 46.2167, 45.2833, 48.6833, 45.7667, 46.3333, 46.6333, 47.85, 45.9333, 42.7667, 50.8, 47.5667, 46.1667, 46.1167, 46.6167, 46.0667, 35.3028, 37.4414, 52.95, 44.7167, -19.03, 46.6333, 46.6333, 65.9, 41.1128, 50.2667, 36.7297, 43.6728, 39.2494, 29.6219, 34.6167, 52.567, 68.62, 54.1, 56.5, 42.867, 44.383, 41.17, 32.917, 63.8467, 42.4, 45.8478, 63.85, 59.4617, 51.35, 45.1667, 32.76, 42.9675, 33.1481, 37.9, 3.131, 5.524, 6.167, -2.898, 0.461, -1.638, 49.1167, -8.489, 59.883, 55.233, 49.5667, 49.5667, 46.4333, 46.4333, 37.1397, 38.22, 45.1167, 33.0367, 42.9592, 42.7, 36.8861, 45.3036, 43.45, 42.2322, 39.7167, 34.6033, 34.333, 33.9364, 33.9667, 50.85, 48.8869, 40.3914, 44.4122, 43.0908, 51.7833, 51.9667, 62.5244, 62.43, 35.07, 62.675, 59.86, 46.3236, 47.8667, 38.4231, 39.5517, 43.8933, 47.55, 35.3694, 34.1953, 44.0761, 62.15, 43.6, 52.45, 49.433, 7.362, 33.7156, 47.4775, 69.5881, 69.5794, 60.4, 64.9025, -0.151, 33.3003, 46.7, 47.1928, 40.0314, 14.467, 40.45, 22.533, 63.6, -7.217, -7.38, -7.217, -27.159, 21.2, 9.117, 61.25, 9.8, 14.883, 44.9958, 41.1042, 46.1, 31.7078, 49.1, 49.1333, 42.9967, -7.83, 42.15, 40.4167, 65.5117, 0.064, 55.2833, 45.7167, 41.2214, 41.325, 62.78, 39.9508, -32.38, 38.3772, 45.0667, 61.7139, 52.8361, 38.6611, 42.8, 50.1, 36.05, 54.1333, 78.25, 59.83, 58.57, 77.8831, 62.0192, 59.4442, 56.8, 45.35, 55.1, 44.8, 62.3292, 51.45, 68.2453, 49.735, 68.15, 32.5806, 50.6139, -31.9558, 32.7333, 35.5733, -42.1236, 60.7278, 43.2436, -35.3766, -35.3406, -40.7292, -40.7314, 42.1836, 47.9161, 52.05, 52.1167, 43.4372, 43.4022, 43.6167, 48.9972, 38.9664, 43.3333, 47.8833, 50.3, 50.3, 50.2667, 60.0, 53.9167, -3.442, 41.7644, 46.1667, -33.9465, 46.1667, -33.8414, -33.8607, -33.8521, -34.0, 63.38, 61.6667, 33.2053, 63.04, 24.9, 44.4833, 44.4667, 60.35, -69.0, 40.6661, 43.05, 37.9928, 43.1111, 40.817, 61.3, 53.183, 53.4, 46.25, 46.9167, 47.1667, 47.2667, 46.4667, 46.0833, -28.283, 46.75, 37.067, 36.95, 49.8, 45.7167, 6.58, -5.083, 4.42, 38.08, 28.365, -28.7551, 46.73, 11.3, -18.0, 32.7225, 47.2472, 47.15, 47.2675, 38.3422, -31.7, 34.283, 48.15, 36.33, 35.9, 37.68, 36.3, 62.2333, 35.1503, -14.3333, 47.2, 9.664, -12.4, -12.3, 42.4, -17.55, 35.9369, 61.8167, 39.1678, 39.1667, 33.1714, 14.9, 46.6014, 53.6167, 25.033, 21.483, -39.7, 46.4, 49.05, 61.3044, 22.15, 27.0, 65.5831, 37.783, 36.25, 56.07, 60.68, 35.5, 55.95, 16.883, 37.1, 34.317, -14.483, 36.15, 60.95, 61.0267, 4.896, 56.38, 8.85, 53.8667, 42.517, 32.6875, 49.25, 62.32, 33.4164, 33.4411, 30.3975, 30.3961, 38.4331, 59.3831, 32.3994, 32.35, 36.0381, 59.77, 69.55, 9.557, 9.4, 22.8, 46.9589, 13.767, 52.7331, -24.8819, 41.7331, 25.7608, 27.95, 27.7053, 27.9619, 61.4656, 61.4667, 61.5175, 22.2, 43.9, -31.0867, -31.0742, 63.3783, 38.3167, -6.1, 65.1667, 65.1744, 34.2069, -19.634, -37.237, 30.733, -5.083, 52.5458, 35.7297, 35.78, 37.8283, 39.67, 55.383, 51.567, -2.8, 2.85, -19.455, 62.4503, 50.6394, 21.82, 10.82, -25.033, 36.3906, 14.917, 35.4478, 44.5167, 56.9, -34.4048, -6.5, -8.16, 1.35, 1.4, 42.85, -44.517, 35.8847, -30.7111, -30.7051, -31.8896, -31.8986, 3.2, 67.91, 33.3722, 49.567, 36.0153, -21.55, 40.4344, 64.92, -25.6408, 28.1522, -42.3003, 58.3, 58.25, 46.5, 48.6667, 57.2, 41.27, 65.5997, 54.85, 44.8, 52.8, 62.9, 45.6833, 55.2, 36.05, 34.983, 51.6667, 33.2422, -36.4378, 38.52, -6.0, -23.017, -27.55, 41.9003, 41.8756, 48.25, 59.583, 25.0069, 38.7, 37.1167, 39.6, 4.313, 4.3, 14.0333, 30.57, 35.9225, 42.7, 41.2333, 45.0333, 38.8183, 38.9078, 45.1017, 25.8, 36.465, 39.0, 67.47, 41.68, 41.75, -2.92, -21.255, 44.9044, 35.42, 18.91, 40.3544, 37.383, 36.9233, -3.3667, 37.3, -6.85, 60.47, 60.167, 50.9789, 14.05, 35.1333, 35.1011, 35.683, 18.5, 64.6831, 23.779, 28.73, 35.0233, 41.7767, 41.7636, 20.2, 40.983, 41.933, 57.9, 37.2, -21.7125, 48.85, 63.44, 35.3675, 37.9492, 37.9531, -5.3, 32.1, 18.25, 9.017, 49.198, -0.485, 49.15, -34.4061, 28.95, 33.4258, 31.0781, 36.03, -38.75, 28.4775, 28.0475, 36.5, 25.117, -13.536, -26.841, -9.15, -19.6423, 36.325, 68.7333, 67.302, 43.8111, 44.0647, -29.0479, 25.6097, 19.38, -17.85, 44.7833, 25.35, 21.419, 39.8, -5.083, -5.05, -22.41, 69.2, 29.4744, 37.2294, 42.467, 42.0, 40.8667, 45.0, 49.533, 73.55, 54.4667, 48.8, 48.8167, 54.5, 39.4467, 48.55, 48.55, 32.71, 39.45, 39.4519, 39.4708, -22.4518, 46.7939, 29.91, 47.07, 40.3494, 60.1667, 60.1667, 20.2, -16.183, 19.93, 40.85, 50.7, 53.7625, 50.7, 58.65, 35.58, 57.517, -26.3919, -26.3911, 49.7, 33.4367, 33.4536, -28.8544, 41.8017, -29.15, 19.82, 19.87, 26.617, -21.1642, 45.0331, 46.533, -24.62, 17.383, 35.55, -24.4935, 19.75, -27.9867, -27.9978, 40.6167, 15.3167, 19.1167, 43.1833, 44.2814, 46.7994, -84.6, 43.6483, 43.65, 43.7231, -25.93, 40.62, 40.5, 46.1, -21.4606, 39.3528, 45.6069, 45.6194, 53.8167, 53.9667, 43.2644, 29.7547, 48.0667, 48.1331, 41.7197, 8.467, 8.483, 49.483, 32.9028, 31.9172, 30.9139, 39.8644, 38.9667, 29.4822, 55.8, 47.5933, 55.75, 73.2333, 14.75, 35.4167, 35.3, 48.2211, 44.5667, 32.9206, 54.925, -36.4917, -36.5031, 44.15, 51.7667, 45.1219, -25.1256, 41.93, 36.465, 33.1806, 76.5167, 44.3667, 17.666, 48.5167, 48.3667, 48.3667, 48.4167, -10.5853, 56.7, 39.1, 30.35, 34.583, 41.883, 4.35, 48.31, -29.4448, -29.4345, -35.4408, 44.4122, 18.567, 18.57, 36.7664, 41.1167, 31.4461, 38.4461, 46.95, 45.85, 20.23, 59.7, 40.633, 71.58, 28.4114, 14.22, 45.4539, 45.4569, 42.8667, 58.867, 38.65, -15.6614, 44.0333, 45.4283, 29.237, 45.7667, 48.55, 48.5667, 43.2433, 50.7, 40.4447, 40.4333, -14.5229, 27.7, -9.133, 28.63, 47.3167, 65.5667, 48.3989, 41.8975, 41.4792, 41.7797, 44.6667, 40.2233, 41.3331, 41.415, 56.499, 49.8589, 56.32, 10.767, 24.293, 41.2667, 55.75, 28.6242, 41.63, 41.6267, 48.6, 46.35, 36.72, -2.225, 65.826, 56.533, 55.867, 20.98, 53.5, 58.85, -18.117, 52.683, 58.15, 32.1, 41.1386, 34.5786, -35.817, 57.6, 23.43, 47.73, 53.55, 49.0833, 55.233, 53.467, 43.75, 62.235, 63.8208, 63.3336, 40.3, 43.275, 43.2397, 42.833, 56.28, 41.833, 34.067, 35.683, 62.9572, 36.4667, 39.8844, 42.0356, 31.175, 41.65, 41.5886, 46.4833, 41.5631, 41.5667, 43.7, -23.383, 1.017, 63.98, 19.283, 42.617, 38.5, 16.717, 31.7119, 58.95, 55.117, 47.7833, 50.05, 63.95, 56.5, 39.95, 57.5, 37.8167, -22.6967, 48.7806, 26.17, 34.87, 35.27, 45.967, 43.6, 28.58, 51.2, 33.4203, 38.0511, 61.6511, 41.9, 40.5353, -37.572, -21.0344, 52.47, -27.5836, 38.7456, 39.0722, 38.9503, 39.0725, 54.8167, 46.1, 35.2667, 45.88, 45.033, 45.0, 68.22, 31.4028, 65.8881, 43.6667, 43.8667, 43.6667, 43.7667, 43.6333, 43.65, 37.7417, 43.6833, 43.8, 43.8167, 43.7833, 56.48, 62.49, 33.8017, 40.4833, 21.5167, 25.568, 35.7992, -29.35, 37.9769, 42.4881, 42.0803, 42.0647, 60.14, 62.017, 70.2456, 40.8206, 40.3, 53.05, 58.3831, 56.9631, 48.733, 48.7, 41.0, -23.1, 20.55, 35.483, 59.97, 27.838, 46.1167, 33.12, 43.1, 47.5, -33.35, 41.7511, 40.5333, 47.7817, 44.9167, 48.3706, 46.3308, 35.6031, 42.7, -19.2483, 30.7931, 43.9333, 39.3833, 36.717, 35.53, 33.92, 12.5, 41.0, 44.2394, 37.6819, 37.7967, 45.81, 33.2667, 42.3161, 68.75, 52.2689, 55.85, 55.8331, 7.517, -31.9861, 48.2333, 36.3919, 37.911, 40.0, 48.7667, 47.8781, 53.9642, 44.7167, 44.7408, 50.3, 38.2667, 49.0, -33.217, -43.2, 41.7108, 43.9994, 46.1, 40.0825, 41.9153, 44.1167, 40.1739, 40.2769, 44.1167, -38.387, 27.2, -20.783, 36.6511, 41.05, 40.6833, 42.8286, 54.0681, 38.655, 38.4661, 45.9469, 49.7517, 49.7492, 45.65, 36.9111, 37.35, -20.5, 37.1786, 37.1503, 37.2622, 14.767, 48.1333, 40.7864, 43.6333, 40.7264, 54.3, 42.7667, 34.45, 37.53, 42.8125, 32.67, 32.9, -29.86, -7.85, 8.5, 51.8333, 54.6167, 49.45, 62.7, 48.15, 46.35, 46.3833, 54.0994, 53.5833, -72.017, 69.5, 69.6539, 69.6767, 35.7636, 63.4106, 37.6258, 48.0317, 47.2842, 47.2333, -13.7542, 45.5533, 40.7333, 44.1111, 47.8669, 60.4333, 46.1989, 31.8075, 48.4806, 75.952, 48.7167, 39.8283, 42.75, 57.6, 52.6, 39.3, 39.3331, -8.1, 18.3283, 7.4667, 38.2597, 45.3667, 33.7569, 33.1353, 33.2367, 35.2058, 41.5522, 61.2944, 59.9844, 47.45, -22.77, -24.017, -22.97, -25.18, -34.03, 44.417, 34.733, 35.65, 33.85, 35.067, -14.819, -18.975, -5.683, 44.1, 40.9, -23.35, 60.9333, 39.6025, 32.2542, 32.2817, 32.1314, 32.25, 32.2581, 32.2292, 35.2006, -3.786, 50.8833, -35.4184, 17.638, 53.9, 69.4333, 69.45, 69.4333, 69.2, 54.233, 20.083, 33.0719, 45.1831, 41.96, 39.35, 34.5475, 50.45, 64.9167, 35.3453, 53.6667, 59.1789, 42.8333, 42.7603, 42.6394, 36.1994, 36.0394, 54.6, 31.5678, 17.3, -35.778, 55.1333, 7.3, 7.3, 49.65, 39.1, 53.533, 61.95, 34.7281, 36.83, 51.73, -42.4544, 33.95, 34.217, 34.2622, 44.2308, 45.0708, 64.2667, 31.693, 49.151, 46.3833, 63.117, 49.63, 58.817, 45.217, 58.0994, 45.22, 43.27, 34.3956, 40.05, 60.4542, 60.45, 60.5153, 37.5006, 48.9992, 43.75, 52.267, 42.933, 36.8136, 46.0, 47.5214, 49.1333, 49.3, 65.7831, 35.99, 33.2119, 33.2119, 41.3144, 39.7947, 50.377, 34.6147, 33.7025, 33.7, 59.4356, 64.2, 47.1333, 39.2475, 48.0092, 60.4167, 60.3667, 20.95, 34.7706, 44.55, 59.0269, 56.883, 52.4667, 36.5819, 46.15, 52.2731, 34.1281, 49.6833, 45.5472, 42.6906, 42.5458, 42.5808, 42.4819, 38.7086, 46.15, 39.0936, 38.2033, 51.3356, 34.9881, 47.0258, 47.1253, 44.15, 44.1431, 64.8656, -28.36, 37.6364, 32.3067, 44.2781, 31.08, 32.3542, 55.183, 42.9919, 30.0667, 55.017, 46.5833, 64.8, 44.0167, 57.15, 71.917, 42.3, -23.77, 44.5, 55.467, 58.547, -0.08, -19.73, -18.883, 47.7719, 55.3, 15.25, 15.25, 50.8, 38.083, 58.73, 46.1667, 48.95, 46.06, 46.0, 17.3833, 44.2667, 17.383, 54.5, -16.133, 53.75, 60.72, 52.9428, 34.767, 54.7167, 54.1667, 49.07, 60.5, 35.8889, 63.55, 49.0667, 36.35, -33.7, -5.067, 55.8, 43.783, 65.2, 39.1467, 45.1328, 39.1258, 47.917, 49.8, 44.8, 47.9, 51.8331, 39.4, 36.98, 41.92, 51.35, 48.933, 45.517, 47.75, 10.0333, 49.2, 64.3331, 59.3667, -35.3635, 63.01, 57.11, 37.483, 48.383, 57.77, 35.55, 59.81, 38.1, 40.1, 70.7667, 37.6, 39.62, 64.76, 61.6, 54.317, 37.5983, 48.77, 45.9167, 66.67, 63.79, 69.3694, 52.167, -31.53, 55.033, -16.36, 63.8833, 47.317, 60.28, 47.455, 56.04, 38.4444, 39.915, 39.45, 40.475, 37.5436, 34.6053, 36.3925, 45.2081, 42.6903, 35.2247, 32.0142, 52.2333, 34.3725, 40.0333, 64.8569, 53.5167, 51.0833, -27.5436, 44.9847, 40.7667, -72.2, -74.8, -75.867, -67.017, 52.8514, 56.65, 41.1, 32.442, 72.7831, 48.6147, -28.45, 20.25, 48.6525, 49.9, 38.8519, 39.4678, 37.7167, 40.8333, 39.7136, 37.4833, 37.7719, 45.2167, 47.2833, 59.86, 59.9, 49.0333, 47.45, 59.8425, 44.0928, 42.167, 51.25, -21.6119, 59.5667, 59.5667, -71.43, 38.3761, 39.9, 40.0839, 40.0986, 47.117, 37.13, 41.567, 38.6, 53.317, 52.75, 50.8, 49.4, 37.668, 56.48, -29.783, 43.9, 46.2, -28.51, 38.683, 29.4083, 31.717, -54.843, 73.0, 43.08, 60.724, 45.2539, 38.7, 41.6, 50.683, 49.98, 52.817, 53.42, 66.8, 57.08, 58.2, 57.717, 59.183, 56.217, 52.7, 54.4, 50.28, 61.683, 60.3831, 66.45, 64.566, 56.58, 66.55, 58.88, 64.266, 65.4331, 51.633, 65.97, 58.5, 62.23, 52.65, 40.3603, 41.0497, 55.533, 43.0833, 43.145, 55.95, 59.3, 59.3078, 69.7556, 70.0814, 36.55, 17.617, 49.5942, 18.2617, 60.75, 5.2739, 70.4167, 29.185, 33.233, 44.1, 53.717, 48.6331, 41.3, 55.3, 34.0697, 33.8722, 64.5008, -27.95, -24.73, 63.1, 63.0831, 63.1, 63.0417, 38.3956, 38.3775, -20.3, 58.55, 45.0483, 63.5, 56.8667, 61.8628, 59.7662, 39.6394, 39.6167, 69.93, 66.51, 42.4333, 61.1303, 30.85, 30.9667, 30.7825, 43.9814, 52.8333, 39.4806, 39.489, 39.4867, 43.3833, 51.9394, 30.5908, 47.3389, 42.8753, 42.8783, 42.5711, 9.35, -8.41, 57.783, 48.3119, 44.2831, 52.1703, 59.133, 59.02, 41.65, 20.683, 41.7, 37.4833, 37.3806, 49.384, 46.3833, 53.25, 45.2833, 55.0667, 33.2372, 46.9558, 42.4844, 40.0983, 34.5686, 41.3197, 36.4303, 9.233, 32.38, 17.78, 60.1331, 35.8167, 30.4833, 30.4167, 41.4525, 41.5114, 63.6667, 50.2, 19.5667, 48.05, 48.05, 45.9, -1.379, 47.432, 48.5167, 49.3667, 49.0667, 44.5, 45.4833, 48.9833, 38.45, 60.3331, 45.5608, 45.6778, 49.3, 49.2, 49.2, 45.6208, 49.25, 38.9581, 39.3167, 34.7167, -26.67, 45.1703, 54.0333, 58.36, 61.1725, 4.168, 52.0167, 60.3269, -17.233, 60.35, 41.6431, 47.1664, 36.9753, 38.4667, 31.0417, 34.2097, -28.367, 40.8494, -30.35, -26.88, 25.45, 57.11, 70.367, 70.3669, 45.7167, 45.45, 62.3081, 62.3217, 43.232, 65.8255, 44.8331, 52.25, 68.43, 64.45, 59.59, 58.44, 58.56, 57.79, 63.13, 50.05, 50.05, 50.1833, -18.65, 51.5833, 56.85, 56.93, 65.702, 53.5, 53.4833, 56.35, 60.8, 46.8, 44.75, 61.083, 48.0797, 47.317, 61.6514, 27.1006, 54.6667, 45.5, 45.4, 57.4, 20.9, 45.7667, 63.6653, 34.5539, -26.68, 58.083, 43.7953, 55.817, 56.7, 64.22, 63.15, 48.2, 56.083, 54.22, 62.233, 51.35, 67.5667, 58.9, 63.317, 53.87, 42.7625, -65.25, 40.4386, 40.4422, 33.7392, 34.1517, 40.1056, 42.7717, 50.2333, 45.8653, 40.0989, 50.2667, 50.2333, 39.9333, 50.2333, 50.35, 34.1647, 45.3831, 27.6528, 27.6531, 38.4319, 62.9214, 52.283, 49.617, 62.983, 56.7667, 63.4, 47.067, 57.9, 38.7436, 37.3522, 41.7, 45.5667, 46.1667, 38.1311, 32.3567, -20.76, 46.2167, 47.7667, 50.7, -18.1, 28.8608, 48.0333, 48.4167, 48.5333, 48.5167, 48.65, 48.3667, 48.45, 9.967, 28.8439, 28.8614, -16.403, 28.8461, 48.45, 21.2, 34.535, 34.5833, 45.9231, -35.555, 47.88, 51.3333, 43.983, 65.8797, 38.4875, 38.9, 38.2017, 43.8, 17.9833, 63.8406, -37.7408, 17.555, 42.0828, 42.2392, 62.5617, 60.4183, 63.0817, 53.1, 53.1833, 53.2833, 63.05, 80.167, 56.817, 41.3167, 54.483, 64.58, -12.694, 58.367, 63.7831, 46.6, 48.767, 44.2525, 24.48, -31.85, 17.983, 42.63, -25.767, 23.7, 28.83, -31.945, 27.62, -29.9, -21.27, -33.73, 47.35, 48.0458, 54.6331, 58.3831, 38.7386, 64.2, 65.8197, 43.15, 43.1333, 43.1667, 41.3931, 57.63, 59.08, 18.737, 36.5469, 63.2066, 60.633, 49.2331, 42.1703, -28.7, 13.576, 39.5061, 49.8333, 40.2444, -28.1, 39.3128, 45.2925, 40.9656, 38.0833, 60.5269, 43.5594, 62.3275, 49.5742, 58.567, -17.645, 36.3278, 57.6667, 51.95, 17.717, 58.1, 33.2294, 55.167, 55.2, 42.43, 59.45, -20.317, -14.863, 42.8717, 67.68, -17.15, 47.55, 55.167, 43.05, 56.117, 43.8, 53.24, 51.4414, 40.4667, 50.9167, 46.3, 44.9831, 48.0917, 46.0, 52.017, 48.783, 51.6581, 53.167, -27.37, 70.97, 53.317, 50.833, 59.3167, 54.1, 48.67, 67.483, 61.033, 58.85, 51.7, 48.6, 57.8458, 63.22, -78.45, -20.417, 60.467, 47.567, 42.4831, 43.2, -31.67, -27.8, 45.15, 50.4, 66.7981, 66.58, 60.72, 52.367, 61.0167, 55.9667, 40.7917, 52.9333, 39.0747, 31.6003, 31.6189, 53.1658, 46.3939, 34.9603, 20.504, 21.82, 39.6914, 14.4, 51.9667, 54.6667, 65.8833, -35.1583, -35.1311, -33.3075, 43.0833, 35.9675, 43.34, 50.8125, 41.2214, 46.3233, 36.9953, 38.4831, 48.8289, 47.961, -34.1944, 21.2717, 21.3356, 21.9592, 21.6369, -9.667, 70.6392, 52.8333, 52.8333, -8.641, 37.4, 1.75, 37.483, 34.233, 39.0147, 42.2647, 45.6, 36.9839, 19.2833, 45.417, 50.2608, 40.7442, 41.5514, 48.9303, 34.8992, 47.9167, 47.6181, 42.7392, 65.6239, -30.0372, -30.0236, 34.7544, -17.1347, 37.7433, 47.0744, 35.6647, 47.4753, 42.5833, 40.8433, -28.9231, -37.3807, 45.99, 46.0947, 51.6031, 37.9406, 45.5722, 41.5519, 34.9281, -35.1201, 42.1608, 37.6303, 37.3822, 32.8847, -23.6286, 34.3603, 50.8975, 44.5167, 42.1506, 42.1667, 42.1847, 39.2142, -4.067, 45.2406, 41.6717, -29.7029, 44.1481, 41.0444, 41.4439, 45.1094, -32.6722, -32.6814, 34.3, -36.4206, 53.7883, 55.7833, 54.1833, 48.65, 40.7908, 40.655, 32.067, 46.4353, 50.45, 50.1333, 44.4736, 36.9231, -41.4372, 51.5, -26.1317, 45.3833, -27.97, 39.1139, 49.4667, 39.1333, 39.1333, 53.517, 49.1, -24.9, -17.0156, 46.2667, 34.5958, 36.7, 38.7161, 32.6094, 32.6333, -34.9906, -36.2614, 41.8467, 45.2658, 46.4333, 38.7842, 53.5239, 33.4028, 38.835, 38.6811, 33.6044, 41.2019, 44.4, 53.3833, -38.2919, -38.2867, 48.8947, -11.6502, 41.2633, 37.9881, 35.0128, 42.6856, 53.2231, 50.6281, -28.2061, -28.2247, 49.8167, 50.65, 35.5892, 45.61, 53.1333, 44.0708, 47.2844, 38.9053, 39.8089, 41.2825, 38.6489, 33.7264, 40.1789, 38.6667, 39.5353, 38.9408, 45.3581, 39.15, 38.8483, 30.3236, 61.5333, 53.9167, 53.9167, 48.2064, 36.8581, 48.0581, 50.4978, 44.0697, 32.3778, -24.2914, 44.3167, 40.4256, 52.2531, 47.9333, 38.3664, 38.7003, 42.5544, 43.45, 46.2778, 49.1333, 49.1167, 43.1742, 43.9761, 43.9922, 44.9047, 47.6497, 35.7742, 45.05, 44.5272, 31.6725, 34.1583, 47.8039, 47.6, 47.7803, 55.7167, 35.8578, 51.6667, 51.6667, 40.7928, 36.9358, 36.9308, 60.1167, 17.988, 52.127, 7.7, 45.4247, 27.5478, 42.3492, 43.0064, 43.2742, 44.3547, 34.1747, 44.9258, 41.5183, 30.2947, 36.0825, 39.1114, 42.0019, -17.3871, 48.0, 47.9667, 49.9333, 32.4281, 42.9728, 31.2514, 31.25, 42.2361, 35.3042, 33.0725, 31.6772, 39.8986, 37.4167, 35.4867, 37.8133, 36.5758, 43.0847, 32.7483, 35.52, 6.95, 40.7367, 35.4814, 41.1667, 45.3331, 42.4686, 39.4031, 37.5833, 38.5358, 54.2194, -38.6357, 41.4789, 28.5175, 40.8639, 41.93, 49.6669, 49.2256, 36.767, 48.4, 50.4742, 50.7131, 50.9756, 49.383, 26.87, 64.315, -12.6778, -12.6267, 53.45, 44.2456, 44.8475, 49.555, 50.0867, 49.017, 51.2131, 48.1892, 26.199, 48.3667, 28.1136, 38.6989, -28.0, 43.0, 52.2058, 44.3564, 34.8422, 37.2778, -41.333, -32.5635, -32.5059, 47.8964, 41.1006, 43.7467, 41.7003, 48.85, 47.4289, 47.4333, 47.3978, 47.7042, 53.2153, 40.7206, 44.0083, 28.017, -29.73, -29.9, 51.85, 49.7678, 40.4528, 26.1781, 44.9511, 35.7667, 44.0761, 40.7333, 48.8744, 41.0669, 38.1311, 51.2192, 41.3497, 54.5294, 32.535, 46.3286, 43.9833, 40.1264, 43.9903, 42.2956, 40.8436, 48.9097, 39.5736, 42.9167, 39.0439, 44.6406, 44.6833, 44.25, -41.75, 50.4667, 40.3067, 43.0175, 43.3681, 45.0667, 44.6464, 43.6878, 39.9708, 41.9144, 45.4, 48.5003, 40.475, 37.9414, 42.1333, 35.1242, -21.05, 26.6847, 34.6428, 36.7425, 36.8781, 32.8789, 41.3906, 41.845, 37.5658, 49.0, 44.1925, -17.8964, 41.9442, 39.2911, 49.35, -33.9382, 44.65, 52.6333, 30.1192, -3.584, 49.65, 49.7, 45.4425, 44.4, 42.2494, 62.2333, 49.1833, 31.6508, 41.1947, 42.1106, 45.8081, 41.8128, 39.775, 40.0567, 40.1764, -36.7, 48.35, 40.6117, 37.2167, 44.6, 41.0, 50.1333, 34.5686, 47.4167, 54.4807, 54.1333, 54.15, 44.3675, 48.4081, 48.2833, 46.7531, 43.5575, 60.7167, 60.7333, 42.3369, 60.7167, 60.7333, 38.7167, 33.8214, 56.2333, 39.9961, 61.7067, 34.4094, 34.3361, 42.8508, 50.35, -30.8517, -30.8506, 39.3167, 44.5333, 39.4411, 35.1333, 43.7292, 45.1453, 45.05, 64.6833, 46.6333, 39.9667, 33.4561, 49.0167, 32.7822, 32.5564, 37.7889, 46.5436, 37.8511, 30.7167, 46.0436, 34.6333, 40.6194, 31.8611, 60.7764, 33.9839, -33.0539, -33.0303, 44.75, 46.9878, 43.5608, 15.65, 37.6544, 37.6833, 33.9786, 37.7461, 37.6167, 34.7325, 34.7744, 58.45, 33.9792, 43.6825, -7.967, 37.8333, 51.2167, 48.2331, 48.3, 48.17, 48.1229, 48.117, 52.117, 30.8714, 45.9167, 41.6667, 34.7061, 47.7681, -31.5631, 50.1667, 33.75, 42.75, 48.6631, 36.2656, 53.5667, 41.6358, 45.5231, 51.53, 53.5917, 41.3336, 44.3325, 34.6606, 32.2553, 35.2414, 36.7333, 41.665, 37.3017, 37.6667, 37.6731, 41.2433, 41.2486, 35.8528, 38.6586, 40.0375, 52.1833, 52.1333, -32.7932, 48.3333, -77.85, 41.7419, 51.2953, 48.1375, 48.1739, 38.0039, -16.288, 39.4194, 45.1167, 45.1078, 39.5231, 35.8686, 48.6061, 42.8167, 49.0833, 53.3833, 40.9467, 40.3517, 40.35, 40.2, 40.4333, 45.7081, 36.9811, 61.7481, 44.3842, 32.7019, 39.4833, 34.3208, 34.2675, 39.6728, 39.7739, 37.1317, 46.0289, -39.1297, 35.6939, 42.0167, 38.9667, 47.1603, -26.5914, 51.9333, 41.0267, 39.1881, 39.635, 43.2828, 46.2381, 35.1803, 39.1833, 40.1714, 33.9275, -22.567, -77.7, 43.8575, -25.4228, 35.6169, 35.6575, 38.5319, 39.4458, 42.2833, 44.9333, 42.3, -34.8361, 42.2833, 43.5606, 51.85, 50.0333, 52.95, 33.9111, 37.2889, 38.5278, 37.1681, 32.0444, 47.5589, 31.78, 43.7639, 40.9386, 40.9017, 43.3686, 43.3906, 31.9622, 47.4306, 49.9167, 49.9167, 49.95, 49.8833, 34.3739, 32.0997, 39.0589, 44.0422, 33.4847, 44.0875, 35.0281, 33.3497, 45.8833, 47.1333, 47.1667, 38.5253, 41.315, 28.0153, 28.0622, 48.4742, 34.9381, -22.3908, 47.9333, 43.9636, 43.6089, 44.3881, 44.3592, 45.6178, 67.4192, 36.9986, 45.8031, 36.9681, 51.5667, 46.2608, 53.8333, 33.1597, 51.883, -22.2425, 53.55, 53.1875, 51.3506, 51.55, 45.3833, 51.4478, 35.7217, -33.1336, 55.6167, 53.4631, 7.3833, 48.2958, 44.15, 45.6667, 45.6667, 49.5819, 35.9478, 45.0667, 37.4744, 37.4833, 45.3131, 48.1, 48.0944, 47.45, -17.2122, -34.403, 50.4333, 44.8, 36.445, 63.4903, -30.8917, -30.8408, 37.33, 56.7333, 39.183, -38.6078, 43.4978, 30.9592, 43.7833, 35.8375, 49.0333, 49.5833, 38.7833, 45.1569, 38.6828, 34.1819, 41.525, 37.4286, 42.2167, 39.3333, 43.1333, 43.6303, 46.1667, 38.8969, 39.5461, 44.4, 31.0931, 49.5, 47.45, -30.9672, 44.2, -31.1558, 40.7833, 40.8731, -33.617, 42.2706, 33.8167, 43.9658, 44.0108, 49.6056, 49.2189, 53.2775, 56.5333, 42.3869, 43.645, 56.4733, 40.0714, 46.5333, 46.0667, 43.7472, 46.6803, 33.3039, 39.8333, 63.2167, 51.7317, 54.6942, 51.1, 35.22, 35.28, -33.043, 33.4, 26.73, 30.6, 31.15, 52.467, 35.5247, 51.2258, 49.7714, 49.8006, 37.2, 39.03, 47.6789, 23.483, 43.8, 34.717, -33.9262, -18.283, 51.185, 47.25, -15.4872, 35.2547, 51.7667, -40.9972, 51.7667, -40.9942, 45.1217, 36.9617, 44.2542, 36.1308, 49.35, 30.95, -25.05, 19.72, 39.6167, 24.483, 34.3, 49.2, 27.9, 19.32, 35.73, 35.98, 29.25, 33.78, 43.95, 25.433, 37.07, 36.617, 36.03, 32.133, 22.35, 48.67, 16.833, 29.03, 44.583, 20.35, 50.1, 24.95, 34.283, 29.98, 18.0628, -21.95, 36.1306, 50.217, 51.8, 46.5897, 46.5683, 30.383, 59.5119, 6.5, 40.7, 44.483, 38.25, 34.167, -28.1664, -29.4333, 6.903, 40.1561, 36.3783, 37.8, -34.6223, 35.48, 39.217, 40.4, 21.867, 16.907, 37.48, 42.867, 42.8783, 35.567, 36.6, 3.87, 9.5167, 9.4833, 7.024, 57.417, 43.8333, 43.8333, -31.3865, -36.0294, -16.7, 30.667, -34.8313, 37.4, 37.8786, 31.9, 31.905, 32.9028, -27.2842, 32.083, 58.82, 55.77, 62.4667, 62.6667, 44.8542, 45.545, 44.5444, 44.5922, 44.9767, 45.3128, 49.8167, 37.5206, 36.1542, 36.2, 32.6803, 24.144, 34.733, 51.0059, -23.1364, 40.2, 38.9992, 34.4031, 45.183, 55.833, 28.8, 30.7, 27.8, 47.72, 38.467, 40.667, 43.95, 43.27, 36.18, 66.62, 66.5289, 66.3667, 29.2739, 41.9131, 61.25, 51.3833, 51.45, 51.45, 34.933, 5.55, 35.433, 35.2833, 9.258, 9.2, 40.3383, 35.433, 24.467, -33.0287, 25.967, 35.97, 36.53, 36.87, -31.8997, 40.8678, 51.2667, 51.2667, 41.2664, 39.9167, 39.9181, 57.0, 44.5003, -31.8836, 27.033, 37.75, -32.683, 41.2544, 33.595, -34.2493, 40.5614, -34.3167, 43.9333, 28.833, 39.817, 41.7036, 31.6953, 62.18, 61.5717, 23.6, 28.47, 25.68, 25.73, 38.75, 40.8, 34.8775, 34.1233, -22.2562, 29.38, 59.77, 63.667, 37.6, -25.1896, 38.233, 40.1236, 32.6114, 32.65, 32.8356, 32.7167, 32.7333, 32.6667, 40.267, 36.8, 35.05, -32.5819, -32.5707, 37.07, 33.0, 47.117, 39.83, 39.96, 31.2167, 22.783, 44.1, 32.9, 33.15, 45.8167, 45.73, 29.476, 47.4667, 41.55, 37.783, 49.3, 46.8667, 6.9, 53.5, 52.767, 20.0, 41.5167, 50.7, 43.733, 39.9444, 36.774, -6.222, 32.15, 26.8706, 47.8, 47.9, 39.9, 41.6667, 41.6617, 56.3, 50.117, 44.8167, 54.7, 52.9681, 50.6333, 51.0539, 53.7, 43.87, 47.333, 47.2, 35.017, 45.0669, 51.833, -3.26, 51.2, 49.667, 51.617, 49.217, 40.78, 42.417, 38.93, 21.22, 25.58, 27.33, 44.1667, 48.85, 54.38, 34.717, 47.8, 54.8, 66.7667, 27.45, 52.217, 65.2, 52.9, 31.35, 49.25, 37.48, -69.367, 31.17, 33.0, 50.233, 51.9333, 12.556, 52.2, 56.517, 40.3, 49.233, 53.067, 53.933, 65.467, 42.685, 13.8, 58.81, 54.0817, 50.733, 37.2092, 43.7331, 55.17, 45.25, 51.15, 48.717, 76.15, 47.3167, 41.45, 5.817, 47.9186, 47.9225, 22.75, 45.4, 32.88, 47.3831, 42.5, 47.4219, 44.2992, 35.0706, 27.7, -26.3, 54.467, -26.35, 49.033, 65.73], &quot;yaxis&quot;: &quot;y3&quot;, &quot;ybingroup&quot;: &quot;y&quot;, &quot;z&quot;: [0.0241, 0.1992, -0.0482, 0.0538, 0.0125, 0.3561, 0.0481, 0.0, 0.1419, 0.0273, 0.009, -0.0812, 0.0231, 0.0177, 0.0305, -0.0498, 0.5644, -0.0913, 0.0485, -0.0144, -0.0309, 0.0303, 0.0579, 0.0493, 0.1165, 0.0313, 0.0561, 0.051, -0.0483, 0.0833, -0.0374, 0.1766, -0.1306, -0.0616, -0.0867, 0.0321, 0.0, 0.1965, -0.0562, 0.2015, 0.1702, 0.1204, -0.0343, 0.031, 0.0971, 0.0739, 0.033, 0.0095, -0.0025, 0.0614, 0.0, -0.0513, -0.0298, 0.0649, 0.0, 0.0588, -0.6524, -1.2243, 0.0969, 0.0676, -0.0622, 0.4027, -0.8018, 1.3254, 0.0, -0.0227, -0.1171, 0.3579, -0.0185, 0.015, -0.0339, -0.0071, -0.0205, 0.1603, -0.0232, -0.0255, 0.2941, 0.4996, 0.2206, 0.1416, -0.0385, 0.079, 0.0, -0.0797, 0.15, 0.0062, -0.0929, 0.0347, 0.2039, -0.0924, 0.1602, -2.5898, 0.0322, 0.158, -0.0619, 0.4861, -0.0417, 0.0835, -0.0383, 0.2253, -0.0049, 0.2654, 0.0385, 0.0588, 0.1388, -0.0189, 0.1299, 0.012, 0.0115, 0.0781, -3.524, 0.1739, 0.0785, 0.0263, -0.3215, 0.2582, -1.4554, 0.0, -0.0038, 0.1477, 0.1141, 1.0691, 0.1234, -0.0443, 0.0, 0.169, 0.0, 0.0152, -0.1682, -0.0712, -0.0199, 0.0579, 0.1247, -0.0618, 0.0519, 0.0092, 0.0614, 0.013, -1.8761, 0.0521, -0.2528, -0.0174, 0.3023, 0.089, -0.2714, 0.0472, 0.0889, -0.0663, 0.1283, -4.0384, -0.1415, -0.0921, -1.3078, 1.5627, 0.0, 0.0, -0.337, 0.1652, 0.187, 0.1178, -0.0143, -0.297, -0.4855, 0.1176, 0.1037, 0.0124, 0.0319, 0.1424, 0.0, 0.1527, 0.0254, -0.1262, 0.0484, 0.3562, -0.0044, 0.0, 0.1, 0.1242, -0.3158, 0.0852, 0.0154, 0.0, 0.0, 0.0, 0.0749, 0.0464, 0.0357, -0.0499, 0.1337, 0.0094, -0.1259, 0.0, 0.1077, -1.4306, -0.0615, 0.0888, 0.0754, 0.2031, 0.0941, 0.0, 0.1285, 0.0208, -0.5837, 0.0811, 0.0176, -22.5058, 0.1504, 0.0475, 0.0707, 0.0647, -0.0119, -0.0835, -0.1058, 0.0, -0.0052, -0.4426, -0.1955, 0.1428, 0.0606, 0.0189, 0.0401, 0.2749, -0.1523, 0.0771, 0.0659, -0.0711, 0.0, -1.845, 0.0117, -0.126, 0.0988, 0.2245, 0.1368, 0.16, 0.0163, 0.5849, 0.1661, -0.4064, -0.2789, 0.0801, -0.1949, 0.0643, 0.0225, 0.0148, 0.0012, 0.0204, -0.3432, 0.1404, 0.0286, -0.1337, -0.1022, -0.1074, 0.0657, 0.0925, 0.0225, 0.1244, -0.1275, 0.0223, 0.0281, 0.1791, 0.0991, 0.0489, -0.0176, 0.0622, -0.072, 0.2311, 0.0452, 0.0705, 0.0, 0.0767, 0.0762, -0.3724, 0.221, 0.0157, 0.1452, 0.0, 0.4015, 0.0777, 0.0366, 0.0387, 0.0993, 0.1819, 0.045, 0.5611, 0.0, 0.0, 0.0746, 0.0793, 0.0285, 0.047, 0.0528, 0.0438, -0.0388, 0.0, 0.2248, -0.107, -0.7852, 0.0292, -0.0408, 0.0174, -0.0099, -0.3779, 0.053, 0.0025, 0.2341, -0.0094, -1.4813, 0.0412, -0.0335, 0.0268, -0.0013, 0.0014, -0.0072, -0.1228, -0.2115, 0.0316, -0.0839, 0.0696, 0.1109, 0.2924, 0.0451, 0.0, 0.0536, -0.034, 0.096, -0.0413, 0.0, 0.0856, 0.0162, 0.0298, 0.0, 0.0, -5.2333, 0.1853, 0.1505, 1.3402, 0.1548, 0.2335, 0.1393, -0.3489, 0.138, -3.36, -0.2629, 0.0124, 0.2017, 0.0424, 0.1665, -0.7314, 0.3342, 0.1157, 0.1364, 0.0, 0.6605, 0.0389, 0.018, 0.0694, -0.1528, 0.0254, 0.1247, 0.2061, 0.0, 0.0255, 0.062, 0.0955, -0.0391, 0.2333, -0.0816, -0.2535, -0.0209, 0.1217, 0.0, 0.0523, -0.0179, -1.2408, -1.4563, 0.1577, 0.0161, 0.0296, -0.0638, -0.0678, -0.0588, -0.0277, -0.1174, 0.0342, 0.7974, -0.3354, 0.0461, 0.1075, -1.0475, -0.3758, 0.5355, 0.4798, 0.0591, -0.0564, 0.0133, 0.0157, 0.1618, 0.0123, 0.0566, 0.0218, 0.1728, 0.1223, -0.0859, -0.0073, 0.0368, 0.8639, 0.0, 0.0091, -0.6673, 0.0116, 0.0159, 0.0424, -0.4443, 0.7067, -0.2149, -0.0228, -0.1188, -0.1897, -0.0403, 0.1657, 0.8379, 0.0405, 1.9414, 0.0438, -0.094, -0.8973, 0.0062, 0.0523, 0.1679, 0.0161, 0.0705, 0.4912, 0.0538, 0.0883, -0.1345, 0.1383, 0.2088, 0.3878, -0.4271, -0.0116, -0.0032, 1.0519, -0.0221, 0.1308, -0.0491, 0.0, -0.05, 0.0562, 0.46, -0.0544, -0.0738, 0.103, 0.0, 0.0055, 0.0555, 0.0, 0.0905, 0.0677, 0.0155, -2.4297, 0.0188, -2.3823, 0.0169, 0.0322, -0.0093, 0.042, -0.0993, 0.015, 0.0273, -0.0195, 0.0152, -0.0164, -0.0185, -0.1298, 0.012, 0.0, 0.1889, 0.2355, 0.0463, -0.213, 2.0494, -0.1004, 0.0958, 0.2532, -0.0035, -0.0422, -1.6403, -1.122, 0.1039, 0.3848, 0.1125, -0.0481, 0.3021, 0.0, -0.8812, -0.0252, 0.075, 0.0112, 0.0696, -0.0343, 0.0145, -0.2865, 0.0609, -0.0097, -0.0364, -0.75, 0.2341, -0.1092, 0.0201, 0.199, 0.3243, 0.0, 0.0785, 0.0103, -0.0568, 0.014, 0.3253, -0.3285, -0.5108, -0.1061, -0.0395, 0.6033, -0.0458, 0.1143, 0.0973, 0.03, 0.2691, 0.0, 0.0, -0.2246, 0.1608, 0.2227, 0.1483, -0.0151, -0.0635, 0.6799, -0.5533, 0.0527, 0.348, 0.0214, 0.1781, 0.1321, 0.0, -0.1861, -0.044, 0.2039, 0.1667, 0.0686, 0.0635, 0.025, 0.0314, 0.1981, 0.0804, -0.0151, 0.0, 0.1609, 0.1266, 0.0938, -0.1765, -0.7614, 0.0225, -0.0071, 0.0196, 0.0749, 0.0, -0.0285, 0.0547, 0.068, 0.0787, -0.0303, -0.0563, -0.0442, -0.0185, 0.1006, 0.5268, 0.0874, 0.01, 0.0684, -0.7361, 0.0059, 0.0905, -0.1144, 2.78, 0.1714, 0.037, -0.0473, 0.0971, 0.003, -0.0347, 0.263, -5.3615, 0.2437, 0.0554, 0.0, -0.1726, 0.0145, 0.0, 0.2173, -0.0061, 0.1205, 0.0, 0.7482, 0.0012, 0.1221, -0.2226, -0.0476, 1.0496, 0.1335, -1.1665, -0.0813, 0.0185, -0.0212, -0.0604, 0.0647, -0.0117, 0.2605, 0.1003, 0.6281, -0.0969, 0.012, -0.0441, 6.9167, 0.0, 0.0, -0.0019, 0.0492, 0.0216, 0.0694, 0.0519, -0.0342, -0.048, -0.0945, 0.2013, 0.0466, 0.0635, 0.1028, -0.1308, -0.0322, 0.0289, -0.2248, 0.091, -0.0885, -0.1027, 0.3349, -0.2573, -3.2655, -0.1247, -0.0137, -0.0655, -0.153, -0.1, 0.1767, 1.2453, -1.0426, 0.1844, -1.1464, 0.0742, 0.095, 0.3085, -1.3264, 0.0619, -0.3202, 4.7208, 0.017, 0.8611, 0.0978, 0.0672, 0.0471, 3.0125, -0.0076, -0.1158, -0.812, 0.132, 0.0696, -0.1069, -0.0285, 0.1729, 0.0, -0.0057, 0.0, 1.5462, -0.9102, 0.1057, 0.0726, -1.234, -0.297, 0.3087, 0.0223, 0.192, 0.0768, 0.0896, 0.0412, 0.0606, 0.0212, 0.0545, -0.0041, 0.0, -0.1271, -0.0077, 0.098, 0.0929, 0.5657, -0.6273, -0.3018, 0.2417, -0.0031, 0.0263, -0.1995, -0.0727, 0.9838, -0.2203, -0.0765, 0.023, -0.0322, 0.1725, 0.2318, -22.9083, -0.0422, -0.0388, 0.1149, 0.0693, 0.0024, -0.0519, -0.3306, 0.0481, -0.1145, -8.2675, -0.0303, -1.8052, 0.0932, 7.6767, 0.0493, 0.0182, -0.1827, 7.4708, 0.0655, 0.2363, -0.0476, 0.0726, -0.0227, 0.0976, -0.0239, 0.0092, -0.0755, -0.0303, 0.0, 0.0, -0.0861, 0.083, 0.0781, -0.1457, 0.0, 0.0213, -0.172, 0.2828, -0.4039, 0.8775, 0.0235, 0.1103, 0.0527, 0.1602, 0.3165, -0.084, 0.0146, 0.0644, 0.0789, -0.1016, 0.7922, 0.0, 0.0388, -0.2134, -0.2286, -1.8362, 0.1086, 0.0166, -0.1848, 0.0984, 0.0983, 0.1181, 0.101, 0.2724, 0.0298, -0.0624, -0.1595, -2.756, 0.0291, 0.0931, 0.2054, 0.4127, -0.6156, -0.0547, -1.9595, -0.2248, 0.1776, 0.0, -0.3419, 0.0715, -3.5642, 0.141, 0.0241, 0.0484, -0.0148, 0.299, 0.0118, 0.0299, -0.2422, -0.0707, -0.1651, -0.0149, -0.117, 1.503, -0.0066, 0.1, 0.0619, 0.0655, 0.0598, -0.0382, 0.1047, -1.8666, 0.0257, -0.4958, 0.4673, 0.044, 0.0522, 0.0, 0.0606, -0.001, -0.2183, 0.0803, -0.025, -0.0152, -0.012, -0.0311, 0.0636, -0.1833, 3.8775, 0.1013, 0.0572, -1.511, -0.0219, 0.0713, 0.0065, 0.2096, 0.1642, -0.0054, 0.2038, -0.0061, -1.1872, -0.0268, -0.0449, 0.0693, 0.1658, 0.1057, 1.9899, 0.081, 0.5034, -0.0088, 0.0596, 0.7238, 0.0112, -0.3637, -0.0507, 0.0702, 0.0357, 0.0, 0.1652, -0.0272, -0.0217, 0.1434, 0.1026, 0.3164, -0.0285, -0.0209, 0.0, 0.0512, -1.2175, -0.1592, 0.1161, 0.0608, -0.1057, -0.1329, 0.2944, 0.0, 0.2196, -0.0378, 0.0, 0.0406, 0.0745, -0.0214, 0.307, -0.0501, 0.0, 2.0641, 0.0621, 0.0582, -0.0664, -1.222, 0.0, 10.8, 0.0669, 0.141, 0.1537, -0.0075, 0.0155, -0.8231, -0.0474, 0.0754, 0.0125, -0.1144, 0.0155, 0.0549, 0.0086, 0.2302, 0.0605, 0.0074, -0.0126, 0.225, 0.0069, 0.0585, 0.0084, 0.01, 0.0157, -0.0245, 0.0239, 0.4846, -0.0027, 0.033, -0.0155, 0.0414, 0.004, 0.3517, 0.0105, 0.0094, 0.0568, 0.0098, -0.4863, 0.0303, -0.0284, -0.0901, 0.0, 0.0778, -0.063, -0.079, 0.0706, 0.2029, 0.0816, 0.0568, 0.1508, 0.0, -0.0421, 0.285, 0.1155, -0.0277, 0.2057, -0.0302, 0.0, -0.5549, 0.1169, -0.065, 0.2559, 0.0698, -0.3483, 0.0564, 0.135, -0.1222, 0.1395, -1.2186, 0.1315, 0.0087, 0.0, -0.619, 0.0459, 0.02, 0.5441, 0.132, 0.1631, 0.1118, -1.1691, -0.0732, 0.0008, -0.1053, 0.2036, 0.1116, -0.1543, -17.4175, -0.0501, 0.9552, 0.1821, -0.0291, -0.0495, 0.0, 0.0437, -0.0071, 0.0434, -0.6639, 0.3913, 0.6162, -2.0246, 0.3919, 0.0, -0.0407, 0.0031, 0.1004, 0.0, 0.036, -0.2148, 1.7185, 0.1299, -0.5389, 0.0084, 0.0073, -0.013, 0.1327, -0.1019, -0.0048, -0.0361, -0.0934, 0.1224, 0.0, 0.0482, -0.0621, 0.1103, -0.1554, 0.004, -0.026, -0.9649, 0.0145, 0.13, 0.7533, -0.1493, -0.0573, 0.1618, 0.0549, 0.0853, 0.0331, 0.8397, 0.1255, 0.168, 0.2723, -0.094, -0.1566, -0.0802, -0.0361, -0.0254, 0.0, 0.0347, -0.1043, 0.0151, 0.1173, -0.1211, -0.7664, -0.0114, -0.7041, 0.0765, 0.0, 0.1428, -0.0182, 0.0564, 0.5388, 0.2652, 0.0232, 0.0692, 0.0131, -0.014, 0.0046, 0.0893, -0.1228, 0.1049, -0.5756, -0.0491, 0.1708, -2.6031, 0.0557, 0.0, -0.1977, 0.0, -0.1324, 1.103, 0.114, -0.6226, 0.0569, 0.0551, 0.1851, 0.1903, 0.115, 0.1349, -0.0105, 0.1038, -1.1008, 0.0005, -0.0519, 0.0487, -0.6125, 0.0325, -0.0693, -0.0592, -0.0351, 0.0499, 0.0574, -0.0158, -0.0169, -0.1002, 0.2083, 0.103, -0.2042, -0.0458, 0.0012, -0.1243, -0.0106, -0.128, 0.0104, -0.0751, 0.085, 0.0, 0.0189, 0.1175, 0.017, -0.388, -0.2216, 0.2237, -0.0047, -0.025, 0.0222, 0.0, 0.0438, 0.0415, 0.0489, 0.0417, 0.2754, -0.3613, -1.6433, 0.0457, 0.0182, 0.0664, -0.0196, 1.1527, 0.0257, -0.0819, 0.1262, 2.2132, 0.0345, -0.0501, 0.2305, -0.0389, 0.0113, -0.2425, 0.015, -0.2518, -0.0209, 0.0, -1.2306, 0.0345, -0.2066, 0.4438, -0.0125, 0.0308, -0.3255, 0.1725, 0.5306, 0.2163, 0.1561, 0.2846, 0.0849, 0.0132, 0.2021, 0.0601, 0.0818, 0.174, 0.0617, 0.2677, 0.2089, 0.2762, 0.0975, 0.3483, 0.0652, 0.1178, 0.0036, 0.0, -0.0114, 0.0898, 0.0, -0.0739, -0.4615, -0.4382, 0.0779, -0.4484, -0.2555, -0.0334, 0.1406, -0.0809, 0.0, 0.1768, 0.1176, 0.1973, -0.3, 0.0629, 0.0805, 0.0153, -2.0698, 0.383, 0.041, 0.135, 0.0106, -0.0509, 0.0, -0.1566, 0.0, 0.059, 0.0741, -0.5167, 0.0, -0.5086, -0.0326, 0.4217, 0.007, 0.0297, -0.0913, 0.4916, 0.0871, 0.0, 0.2383, -0.3529, -0.3387, -0.0269, -0.0003, 0.3404, 0.2781, 0.4804, 0.0649, 0.1132, 0.1923, -0.0453, 0.3007, 0.0, 0.1263, 0.0964, 0.1844, 0.1013, -0.0049, 0.1606, 0.1823, -0.1586, 0.0387, -1.6847, 0.2319, -0.0864, 0.0518, 0.6557, 0.0337, -0.0603, -0.1339, -1.0177, 0.1279, 0.0519, 0.0084, -0.0073, 0.0051, 0.674, 0.0193, -0.6768, -0.0438, -0.3171, 0.3941, 0.0358, -1.1655, -0.6536, 0.0, -0.0702, 0.0027, 0.1481, 0.0156, 0.0765, 0.0545, -0.152, -0.0547, -0.8302, 0.1884, 0.0084, 0.108, 0.0606, 0.1108, 0.1336, 0.0426, -0.0092, 0.0604, 0.0, 0.0492, 0.4007, -0.066, -0.0722, -0.0932, -0.5197, 0.0291, 0.2517, 0.0599, -0.3651, -0.1195, -0.0029, 0.036, 0.0171, -0.0198, 0.0195, -0.4045, -0.4126, 0.0935, -0.0222, -1.2861, 0.0, -17.9092, 0.138, 0.0, -0.0532, -0.1115, -0.0838, -0.2591, -0.3107, 0.0717, -0.0926, 0.1656, 1.47, -0.0502, -0.3923, 0.0, 0.0337, 0.243, -0.0088, 0.0, 0.0001, 0.0436, 0.0487, -0.047, 0.3693, -0.1453, 0.0753, 0.3194, -0.7728, 0.0568, 0.1986, 0.1496, -0.0889, 0.0, 0.053, 0.0642, 0.3302, 0.0103, -0.0099, 0.1208, 0.0759, -1.8001, -0.1452, 0.2518, 0.0864, 0.0713, -0.5012, 0.0094, -0.0176, -0.0387, -0.3646, 0.0442, -0.0538, 1.1584, 0.021, -0.0692, -0.0843, 0.0649, 0.0, 0.2135, 0.0256, 0.0, 0.0011, -0.0193, 0.0112, 0.1286, -0.0952, 0.0457, 0.3178, -0.0327, 0.022, -0.0106, 0.006, 0.1886, 0.1022, -0.1322, 0.1554, 3.2319, -0.3272, 0.0441, -0.1786, 0.1219, 0.1392, -0.0043, 0.6946, 0.0293, 0.1061, -0.133, 0.0744, 0.0472, 1.9303, 0.0971, -0.8809, 0.0185, -0.0448, -0.09, 0.0477, 0.005, -0.4449, 0.0257, 0.1432, 0.2007, -0.0736, 0.1215, 0.0002, 0.0174, -1.0043, 0.0331, -0.2274, 0.0967, 0.0507, 0.0, -1.7, -0.0305, 0.1153, 0.0539, 0.1366, 0.088, -0.0202, -0.0133, 0.0735, 0.0, 0.0198, 0.042, -0.0314, -0.4, -0.6287, 0.0222, 0.0, 0.0292, 0.0092, 0.0916, 0.1073, 0.0778, -0.4341, 0.1741, 0.0692, -0.0216, 0.0591, -0.1819, 0.0789, -0.1134, 0.0042, -0.0575, -0.3507, 0.1, 0.1062, -0.0127, 0.3646, 0.1726, 0.022, -0.0368, -0.1391, 0.0066, -0.056, 0.0179, 0.0693, 0.9325, -0.0271, -0.0162, -0.0521, -0.2104, 0.1117, 0.1095, 0.6384, 2.606, 0.294, 0.0, 0.1999, 0.0623, -0.0858, -0.0174, 1.3473, -1.3764, -0.0291, -0.1455, -0.0656, 0.007, 0.1278, -0.0254, 0.017, -0.0161, 0.0145, 0.0046, 0.0085, -0.8046, 0.1671, 0.1682, 0.426, -0.0018, -0.1822, 2.6108, 0.0217, 0.0084, 0.0716, 0.0949, -0.0066, 0.7053, -0.1062, 0.0121, -0.2468, 0.2262, 0.6788, 0.0, 0.1278, 0.1235, -0.324, -0.0105, 0.1027, -0.5149, 0.9496, 8.5458, -1.2587, 0.0, 0.0, -0.2301, -0.0131, 0.0277, 0.0552, 0.0251, -0.081, 0.0301, 0.0181, -0.0462, 0.0158, 0.0424, -0.0075, 0.0425, -0.1481, -0.053, -0.7912, 0.0644, 0.0089, 0.0132, -0.0203, 0.0902, 0.0255, -0.0648, -0.2216, 0.1125, -0.023, -0.037, -0.1358, -0.1017, 0.5491, 0.0229, -0.3428, 0.0986, -0.0287, 2.2423, 0.9623, -0.0413, -0.0073, -0.1751, 0.3933, -0.0563, 5.3583, -0.7145, -0.131, 0.0328, -0.5217, -0.0389, -0.01, 0.249, 0.0, -1.8188, 0.2144, -0.0695, -0.0972, 0.7502, 0.2561, 0.0962, 0.0329, 0.0965, 0.1109, 0.0698, 0.1946, 0.0555, -0.8368, 0.0133, 2.7417, 0.173, 0.8158, 0.1113, 0.1693, 0.0155, -0.0038, 0.0233, -0.3024, 0.0, 0.0, 0.0626, 0.0, 0.0137, -0.0209, 0.0369, 0.1249, 0.0369, 0.0867, 0.0, 0.0811, -0.0234, -0.4257, 0.1177, -0.1489, 0.1272, -0.2097, 0.0, 0.0328, -0.1174, 0.2997, 0.1605, 0.0503, 0.0543, 0.4796, 0.0955, 0.6348, -0.2608, -3.3359, 0.0865, 0.0, 0.1741, -0.0178, -0.2071, 0.0862, -0.0206, 0.0646, 0.0844, 0.1273, -0.1013, -0.0765, 0.1819, 0.2584, -0.1665, 0.0066, -0.0892, 0.1772, 0.0479, -0.6467, 1.0098, -0.0127, -0.0113, 0.1228, -0.0332, 0.0159, -1.3377, 0.0614, 0.0221, 0.0201, 0.0, 0.0, -0.0644, 0.178, -0.0167, 0.2097, 0.0, 0.2334, 0.3416, -0.1781, 0.0383, 0.0466, -0.0144, 0.0483, -0.7451, 0.0938, -0.0784, -0.0199, -0.0978, 0.0574, -1.1085, -0.1264, -0.1782, -0.1258, 0.0, -0.0484, -0.1025, 0.0886, 5.8189, 0.0234, 0.0403, 0.0833, 0.028, 0.0349, -0.0142, 0.4189, -0.0379, 0.0122, 0.2054, -0.6201, 0.0659, 0.0281, 10.63, -0.1459, 0.0647, -0.0615, -0.2526, -0.2329, 0.0584, -0.0481, 0.0448, 0.0594, 0.0138, 0.0731, 0.5244, -0.208, -0.5579, -3.1631, 0.0386, 0.2025, 0.0132, 0.0589, -1.5416, 0.1368, 0.3546, -0.094, 0.1164, 0.0221, -0.0752, -0.0671, 0.0521, -0.1631, 0.1043, -0.3509, 0.1826, -0.069, -0.2298, 0.2755, 0.0052, 0.0766, -0.0001, 0.237, 0.0457, 0.0, 0.0462, -0.0833, 0.0752, -0.0973, 7.5733, -0.0628, -0.0703, 0.0033, 0.0231, 0.0681, -0.061, 0.0189, 0.115, -0.0904, 0.1044, 0.1294, -0.158, 0.0164, 0.2574, 1.204, -0.1258, 0.3485, 0.0235, 0.0698, 0.0214, 0.2805, -0.0645, 0.0153, 0.2206, -0.0707, 0.0593, 6.6709, -0.0912, 0.0742, -0.4833, 0.107, -0.1149, 0.0067, -0.1223, -0.0317, 0.2397, 0.0976, 0.1896, -0.566, 0.0994, 0.027, 0.0563, -0.0547, -0.0192, -0.6054, 0.324, 0.0191, 0.0177, 0.0265, 0.0037, -0.8136, -0.1304, 0.1909, -0.0068, 0.014, 0.0, 0.089, 0.0817, 0.0648, -0.0531, 0.0827, 0.0, 1.4029, 0.0418, 0.0055, -0.0464, -0.0094, -0.0233, -1.3818, 0.0226, -0.107, 0.0381, 0.0836, 0.0093, -0.4921, 0.0422, 0.0669, 0.0692, 0.3279, 0.0189, 2.45, 0.2932, 0.0017, 0.0695, -0.0847, -0.2577, 0.0, 0.0969, -0.0539, 0.2092, 0.0403, -0.0739, 0.0048, -0.1084, -0.0559, 0.0046, -0.0417, -0.1013, -0.0345, 0.0038, 0.0023, -0.0404, 0.1081, -0.1333, -0.0458, 0.1952, 0.1713, 0.0, -0.3348, 0.6123, -0.1127, 0.0515, 0.0717, -0.1054, 0.0664, 0.0374, 0.0596, 0.0939, -2.8237, 0.0471, 0.1036, 0.177, 0.0647, 0.1538, 0.0969, 0.0015, 0.1008, 0.0602, -0.0099, -0.5596, 0.3152, 0.4351, -0.0558, 0.3611, 0.0341, 0.0597, -6.9208, 0.0874, 0.3118, 0.1801, 0.0661, 0.0274, 0.0536, -5.3735, -0.1102, 1.0704, 0.0048, 0.0992, 0.0664, -0.0831, -0.13, 0.0482, -1.0579, -0.1918, -0.0935, 0.0213, -0.0702, -0.0471, 0.0213, -0.0208, 0.0633, -1.0187, -0.32, -0.2064, 0.0615, 0.096, -0.5275, -0.4076, 0.0743, -0.0396, -0.0543, -0.0192, -0.1086, -0.0634, -0.0643, 0.0, 0.0029, 0.0128, 0.069, 0.1342, -0.979, -0.0041, 0.0024, 0.0198, 0.0, 0.0173, 0.0204, 0.2254, 0.1704, 0.2017, 0.2393, -0.1097, 1.035, 0.0482, 0.0462, 0.1582, 0.0971, -0.0985, 0.023, 14.4783, -0.0716, 0.0624, -0.4454, 0.1015, 0.0228, -1.4127, 0.0155, -0.1809, -0.0327, -0.0846, 0.0144, 0.1134, -0.2971, 0.0649, 0.0614, 0.0933, 0.0638, -0.0885, 0.039, 0.0865, 0.0214, -0.0452, -0.1281, -0.086, 0.0496, 0.0345, 0.0264, 0.065, 0.0907, 0.065, 0.0453, 0.0696, 0.13, -0.0144, -0.2526, 0.0316, 0.0288, 0.0402, 0.069, -0.0215, 0.0547, 0.0, 0.6418, 0.3686, 0.0, 0.1472, 0.0528, -0.0661, 0.1113, -10.5673, 0.0, 0.0703, 0.0462, -0.0709, 0.0, -0.0696, 0.0849, 0.0695, -0.008, 0.0, 0.0, -0.0406, 0.2551, 0.7515, -0.0486, 0.0774, -0.0974, -0.1048, 0.0498, 0.0141, 0.0988, 0.0067, 0.256, 0.0299, 0.0974, 0.0627, -0.0246, 0.1109, 0.0928, 0.2755, -0.0704, 0.0498, 0.0198, 0.1885, -1.0115, 0.0596, 0.0726, 0.1114, 0.3921, 0.2492, 0.0802, 0.2139, 0.0942, -0.0385, 0.0961, -0.112, -0.0336, -2.8938, -0.0827, 2.1345, -0.0431, 0.0194, 0.199, 0.0, -0.4963, 0.0572, -0.0277, -0.0174, -0.0126, -0.2824, 0.113, 0.0, 0.0816, -0.0691, -0.1222, 0.032, -0.4991, 0.0404, -0.4423, -0.0242, 0.1289, -0.1082, -0.0082, 0.0028, -0.0844, -0.0143, -0.2544, 0.0981, -0.0151, 0.2042, -0.0883, 0.0623, -0.0651, 0.0115, -0.2073, 0.1502, 0.2192, 0.0344, 0.0941, 0.1239, -0.0345, 0.2307, 0.2014, -0.2267, -0.0007, -0.0001, 0.4294, 0.0349, 0.1385, 0.0854, 0.0891, 0.03, -0.6139, -0.1535, 0.0844, 0.1991, 0.1257, 0.0623, 0.0754, 0.0274, -0.2161, 0.2746, -0.0223, 0.0749, -0.0023, -0.0667, 0.078, -0.008, 0.1501, -3.2958, 0.1398, -0.9733, -0.0027, 0.0972, 0.0237, 0.0101, -0.0131, -0.162, 0.2403, -0.0021, 0.0168, 0.0236, -1.1451, -0.0299, 0.1065, 0.0792, 0.1308, 0.0007, -0.9326, -0.0037, -0.0343, 0.0136, 0.0558, -9.8711, -0.0272, 0.0597, -0.4132, -10.1233, 0.3203, -0.0315, -0.4391, 0.2229, 0.0531, -0.0927, 0.0959, 1.7299, -0.1644, -0.0352, -0.147, 0.0, -0.0953, 0.0417, 0.0, 0.1212, 0.1009, 0.022, 0.0295, 0.0325, 0.2349, 0.0597, 0.0365, -0.0349, 0.3762, 6.295, 0.0417, 0.2726, 0.1039, -0.253, -0.1057, -1.3433, 0.112, 0.1017, -0.4923, -0.083, -0.03, -0.066, 0.0557, 0.0853, -0.2863, -0.0529, -0.5018, 0.6598, 0.0691, 0.0402, 0.0932, 0.4153, 0.0001, 0.095, -0.0015, 0.1844, -0.5011, 0.0188, -0.026, -0.0408, 1.9496, 0.0493, -0.0076, -0.1139, 0.0654, 0.0104, 0.2545, 0.0118, 0.0451, 9.5633, -0.1064, 0.2077, -0.0501, 0.0384, 0.0394, -0.003, 0.1068, -0.1274, 0.046, -0.1185, 0.2715, 0.0904, 0.0031, -0.4636, -0.035, 0.1977, 0.0854, 0.0431, -0.8446, 0.2487, 0.0, -0.1568, -0.9459, 0.0579, 0.0081, -0.1106, 0.0, 0.197, 0.1176, 0.0103, 0.0431, -0.0323, -0.0518, 0.0679, 0.101, 0.0474, 0.0449, 0.1119, -0.0073, -0.1653, 0.032, 0.1594, -0.4088, 0.2391, -0.0136, 0.0, 0.9271, 0.101, 0.1499, 0.1139, -0.1508, 0.4867, 0.0008, 0.0, 0.0708, 0.0055, 0.7826, 0.0417, 0.1908, -0.0545, 0.0368, -0.1478, 0.2497, -0.0007, 0.076, -0.0203, -0.097, -0.1737, -0.0677, 0.0, 0.0277, 0.0, -0.131, 0.1557, 0.5479, 0.0814, 0.0399, -0.0288, 0.1627, -0.0555, 0.0508, -0.0285, -0.0858, 0.1788, 0.0278, 0.0589, 0.0, 0.0355, 0.504, 0.1308, 0.07, -0.1699, -0.2065, 0.0505, 0.0538, 0.1588, 0.0, 0.7646, -0.0508, -0.3232, -0.9794, -0.4065, -0.1772, -0.0429, -0.171, 0.1226, 0.0523, -0.0094, 0.0, -0.1121, 0.081, -0.0197, 0.1282, 0.015, 0.0009, 0.0373, -0.024, 0.0787, 0.0331, -2.9017, -0.267, -0.1268, 0.0516, -0.2435, 1.4629, 0.0016, 0.0257, -0.1863, 0.1315, 1.1488, -5.8233, 0.0101, 0.0599, 0.1739, 0.0, 0.1502, -0.024, -0.0167, -0.1889, -0.0016, -0.0299, -0.0706, 0.0665, 0.1326, -0.0155, 0.1544, -0.3751, 0.0488, 0.0002, -15.6373, -0.1075, 0.2062, 0.5293, -0.2704, 0.5214, -0.0346, 0.0334, 2.1467, -0.1095, 0.0, 0.0046, 0.0, -0.3722, 0.2354, -0.0459, 0.0648, 0.0144, -0.0144, -4.5435, -0.5038, 0.008, 0.0647, 0.5635, 0.0794, 0.0258, 0.0898, -0.011, 0.0584, -0.0408, -0.0132, -0.0774, -0.077, 0.2062, 8.4758, 0.3453, 1.0817, -0.6357, -0.0047, -0.0593, -0.0405, 1.0654, 3.5837, -0.1569, 0.1529, 0.0943, 0.0119, -0.1601, 0.0615, -0.7372, 0.0, -0.0753, 0.0, 0.0, 0.0201, 0.0304, -0.0154, 0.0, -0.2095, 0.1641, 0.2447, 0.0879, 0.0681, 0.0355, -0.5429, 0.0737, 0.0227, 0.048, 0.0097, -0.0153, 0.0219, 1.7925, 0.0571, 0.0043, -0.6057, 0.0505, -0.0558, 0.0321, 0.0122, -0.1908, 0.0548, -0.1421, 0.3582, 0.2718, 0.2697, -0.1732, -0.0365, 0.118, 0.0776, -0.0017, 0.0424, -0.0587, -1.1692, 0.0192, 0.037, 0.1051, -0.0236, 0.0, 0.0, 0.2006, -0.107, -0.1001, -0.1605, -0.0063, -0.3516, -0.0174, 0.036, 0.0594, 0.1116, 0.0242, -0.7891, 0.1367, -0.0119, 0.3358, -0.0332, -0.0273, 0.0459, 0.1119, -0.0367, -0.0424, 0.0, 0.0663, 0.3271, -0.0119, -0.4284, 0.0382, -0.0091, 0.1206, 0.1019, -0.0267, 0.1464, 0.0, 0.1982, 0.0, 1.7373, -0.1571, 0.0482, -0.0228, -0.0143, -0.1962, 0.3107, 0.2903, 0.2843, -0.0151, 0.1671, -4.065, 0.3296, -0.742, -0.5062, 0.0274, -0.1106, -0.0921, -0.009, -1.1332, 0.0266, 0.0965, -0.0734, 0.0086, 0.6241, 0.0225, 0.253, -4.6158, -0.0347, 0.1061, 0.0283, -0.1643, 0.0053, -0.0824, -0.0998, -0.2076, -0.4792, -3.7925, 0.0635, -0.0032, -0.158, -0.9395, 0.199, 0.0493, 0.0619, 0.0295, 0.0, 0.0473, 0.2072, -0.023, 0.1076, 0.0573, -0.046, -0.0002, 0.0269, 0.0285, 0.0341, 0.0699, 0.2398, -0.4733, 0.0075, -0.058, -0.0877, 0.0695, -0.1413, -0.0415, -0.0161, -0.0183, -0.1233, -0.0148, 0.02, -0.0198, 0.4836, -0.8569, -0.3938, 0.0242, 0.0584, 0.1495, 0.0996, -0.0495, 0.1521, -0.4333, 0.1917, 0.0461, 0.0954, 0.0234, 0.225, -0.0065, 0.0221, -0.1857, 0.0016, -0.3904, 0.0216, 0.893, -0.1846, 0.1514, 2.1075, 0.1746, 0.1985, 0.0, -0.0093, -0.0179, 0.1134, -0.0616, 0.0477, 0.1224, 0.0, -0.1263, 0.0, -0.3052, 0.0019, 0.0148, -2.0497, 0.0135, 0.0786, 0.4341, -0.0747, 0.2398, 0.15, 0.1093, -0.0265, 0.0072, 0.1236, 0.0736, 0.1881, -0.5423, -4.2708, 0.0784, 0.0983, -0.0108, -0.2509, 0.1217, -0.0253, 0.0, -0.0152, 0.008, 0.0491, 0.0418, -0.1297, 0.0753, 0.2291, 0.3439, -7.8417, 0.5326, 0.2381, -0.0537, -0.0534, -0.0713, 0.0272, 0.4502, 0.1119, -0.114, 0.0, -0.6219, 0.1754, 0.0751, -0.2564, 0.0253, 0.0147, 0.5289, -0.0174, -0.0261, 0.082, 0.005, 0.0285, -0.1764, -0.0101, -0.005, -0.0235, 0.4301, 0.422, 0.0515, -1.8604, -1.4, -0.0027, 0.0676, 0.0002, 0.1862, -1.2679, 0.0096, 0.1251, 0.0957, -0.5388, 1.1978, -0.024, -0.18, 1.0504, 0.0141, 0.0262, -0.1313, 0.0747, -0.6599, 0.0623, -0.0973, -0.0428, 0.0869, -0.0039, -0.0419, 0.0389, -0.1439, 0.0844, 0.3368, 0.0305, -0.0437, 0.1028, -0.1967, 0.0288, 1.556, 12.4522, 0.8709, 0.1694, 0.0514, 0.0363, -1.3135, 0.1419, -0.2032, 4.2279, -1.2094, 0.0903, -0.4115, -0.5553, -0.1284, -0.0156, 0.6808, 0.0576, 0.0788, 0.5194, 0.3403, 0.0296, 0.0, 0.0935, 0.0743, -1.7973, 0.2115, 0.0287, 0.0536, 0.092, 0.3453, -7.3982, -0.0032, 0.4165, 0.144, 0.7934, 0.1334, 0.2414, -0.213, -0.0163, -0.3213, -0.0136, -0.1049, -0.0427, 0.1533, -0.0117, 0.2761, -0.0091, 0.155, 0.0246, -0.0937, 0.0085, -0.0462, 0.0416, 0.0, 0.1271, 0.2806, 0.5684, -1.4628, 8.1155, -0.0596, 0.0746, 0.1323, 0.353, 0.1049, 0.0, 0.122, -0.0483, 0.0405, 0.0354, 0.0074, -0.7115, -0.6082, 0.0606, 0.0, 0.0305, 0.0399, 0.0429, 0.1222, -0.0946, 0.0, 0.0111, -0.0271, -0.1894, 0.0109, -0.066, 0.0877, 0.0155, 0.1371, 0.2567, 0.2407, -0.0794, -0.0139, 0.0187, 0.1064, -0.3705, 0.0045, 0.0972, 0.1673, 0.0346, 0.1903, -3.5873, 0.3733, 0.0, -0.941, 0.0194, 0.032, 0.0755, 0.2016, 0.0451, 0.1436, 0.0334, 0.05, 0.0642, 0.1258, -0.1331, 0.0687, 0.0577, 0.0268, -0.0523, 0.0158, 0.061, 0.0569, -0.174, -0.2584, -0.1083, 0.1713, 0.0606, -0.1672, -0.0258, 0.0257, -0.0424, 0.0316, 0.1384, 0.0574, -0.6643, 0.0046, -3.44, 0.5966, 0.0109, 0.0399, 0.0769, 0.0673, 0.2277, 0.0314, -1.0103, -0.0008, -0.0102, 0.044, 0.1198, -0.0403, 0.2284, 0.0088, 0.0838, -0.2279, -0.0361, 0.0533, 0.3939, 0.0423, 0.2649, -0.0158, 0.0433, 0.2, 0.0, 0.0626, -0.4052, 0.0907, -0.3727, 0.3068, 0.0474, 0.1132, -1.1078, -0.1666, -0.0968, 0.2515, 0.0615, 0.0, -1.1949, -0.0121, 0.0105, -0.3878, 0.2461, -0.016, 0.0568, 0.0019, -0.0259, -0.1049, -0.0198, 0.0633, 0.053, 0.0294, 0.2614, 0.3124, 0.0, -0.0242, 0.1239, -0.0798, 0.0853, 0.0195, -0.2233, -1.5543, 0.0588, 0.0852, 0.0276, 0.1011, -0.0929, 0.0548, 0.0969, 0.391, 1.2124, -0.0458, -0.0151, -0.0787, -0.296, -0.1304, 0.0003, 0.1062, 0.0761, 0.0212, 11.2258, -0.0074, -0.0003, -0.2759, -0.0009, -0.0091, 1.5249, -0.1469, 0.0042, -1.3881, 0.0389, -0.4934, 0.0024, 0.0038, -0.0808, 0.0, 0.0508, 0.0646, 0.0691, 0.0556, -0.3504, 0.0522, -0.0309, 0.1264, 0.1755, 0.0024, 0.0174, 0.5807, 0.0271, -0.036, 0.0, 0.0785, 1.0779, 0.0609, -0.0264, -0.0498, 0.1114, 0.0036, -0.0696, -0.0029, 1.0674, -0.0978, -0.7294, 0.0522, 0.188, 0.2686, 0.0047, 0.0627, 0.1793, 0.0414, -0.1307, -0.0033, 0.6478, 0.0, 0.2793, 0.0075, 0.0586, 0.0141, -0.0782, 0.0, 0.0, -0.0023, 0.0, -0.4353, 0.0566, -2.1725, -0.0734, -0.0967, 0.2165, 0.0, 0.0, -0.0816, 0.0581, 0.0539, -0.1019, 1.6125, 0.1307, -0.4864, -0.0387, 0.0163, 0.0784, 0.0485, -0.0447, -1.0003, 0.0851, 0.018, -2.1582, 0.2939, -0.1134, -0.1895, 0.1145, 0.3955, -3.324, -1.2083, 0.1462, -0.0832, 0.011, 0.2308, -0.1016, 0.247, 0.0448, 0.0884, -0.4298, 0.0135, 0.0804, 0.1483, 0.1164, 0.0712, 0.1056, 0.1166, 0.0554, 1.1663, 0.1863, -0.6719, -0.1657, 0.0241, 0.0132, 0.0054, 2.4986, 0.1271, 0.081, 0.0458, 0.4554, 0.1627, -0.0024, 0.1591, -0.0581, 0.0039, -0.0714, 0.0, 0.0006, 0.07, 4.4363, -0.114, 0.3011, 0.1208, -0.0974, -1.0444, 0.0685, 0.0043, 0.1079, -0.0086, 0.059, -18.3358, 0.5735, -0.1048, -0.0199, 0.3182, -0.1185, -0.0485, -0.0525, 0.0488, -0.0397, 0.0571, 0.024, 0.0425, 0.0403, 2.0223, -0.0145, -0.0349, -0.031, 7.9342, 0.1373, 0.1484, 0.0472, -0.0242, -0.6847, 0.0973, -0.0784, 0.241, 0.1163, 0.0896, 0.0084, 0.4483, 0.0281, 0.5031, 0.2486, -0.1927, 0.1647, -0.9088, 0.0168, -0.457, 0.19, 0.033, -0.0059, 0.2271, -0.0437, 0.1188, 0.3562, 0.0, 0.114, 0.0505, 0.3694, 0.0305, -0.0374, 0.0, 0.4384, 0.0678, -2.3174, 0.1599, -0.0157, 0.158, -0.0382, -0.2469, 0.1035, 0.1387, -0.0097, -0.2821, -0.585, -10.9142, 0.0, 0.095, -0.0323, 0.0863, 0.0923, -0.0632, 0.2269, -0.0238, 0.1168, -0.0078, -1.1314, -0.0449, 0.0, -0.0375, 0.2387, 0.0919, 0.0758, -1.3968, -0.0246, 0.1355, -0.0763, -0.0026, -0.1027, -0.2549, 0.0, -0.1107, -1.7927, -0.0239, -0.073, 0.048, 0.0884, -0.1122, 0.1408, 0.2106, 0.0, 0.0356, -0.1994, 0.1603, -0.0523, -0.0702, -0.0669, 0.1253, 0.234, 0.0634, 0.7268, -0.0297, 0.1268, -0.039, -0.152, -3.0352, 0.0498, -0.1061, 0.2131, 0.9424, -0.0618, 0.0119, 0.0954, 0.1672, -0.296, 0.0295, 0.0258, 0.0176, 0.0013, -0.0616, 0.2718, 6.0492, -0.0176, -0.1097, 0.0494, 0.0357, 6.6333, -0.1553, 0.0, 0.0303, 0.0144, -0.1005, 0.0361, 0.0251, 0.0363, 0.1643, 1.8516, 0.0, -0.1539, -0.0522, -0.0884, -0.2573, 0.1259, 0.0192, -0.0488, -0.0013, 0.0973, -0.1211, -0.1235, 2.6744, 0.0829, 0.1017, 0.1511, 0.2524, 0.0151, -4.2533, -0.0188, -0.1868, 0.0199, -0.3783, 0.04, 0.0296, -0.0641, -0.0141, 0.0188, 0.1165, 0.0638, -0.0458, 0.0, 0.0554, -3.4817, 0.0, -2.1363, 0.1793, 0.0216, 0.0217, 0.2321, -1.7883, 0.1134, -0.1058, 0.0697, 0.013, -0.338, 0.1331, -1.4399, -2.4283, 0.0796, 0.0612, 15.5118, 0.0406, 0.0629, 0.0925, -0.1041, 0.0575, -2.0796, 0.21, 0.2563, -0.0297, 0.0753, -0.2204, 0.0, 0.0607, 0.6833, -0.4183, 0.0, 0.2457, -0.3808, 0.0559, 0.0297, 0.1822, 0.0272, 0.0484, -0.5018, 0.0774, 1.3716, -0.222, 0.1702, 0.0758, 0.5144, -0.039, -0.0685, 0.0, 0.0303, -0.0369, 0.04, 0.14, -0.0017, -0.1045, 0.0857, -0.0643, 0.1159, 0.0499, 0.0295, -0.0224, 0.317, 0.0978, 0.4699, 0.3291, -2.8824, 0.3336, 0.3519, -1.1908, 3.5015, -0.306, 0.0513, 0.1127, -0.3503, 0.0, -2.5245, 0.0474, 0.0, -0.1536, 0.3747, 0.0964, 0.0174, -0.1303, 0.0321, 0.1328, 0.1301, 0.0991, 0.0157, -3.5286, -0.2432, -0.0408, -0.0165, 0.0043, 0.0123, 0.058, 0.0, 0.05, 0.0316, -0.0236, 0.0366, 0.1043, -0.2861, 0.0439, 0.2896, -0.0867, 0.0334, 0.0724, 0.1024, 0.309, -0.2378, 0.0855, 0.0871, 0.0, 0.62, -0.0829, -0.0959, 0.3024, -4.2988, 0.0925, 0.0674, -2.9443, 0.125, 0.0249, 0.2643, 1.2676, 0.0125, 0.7301, -0.6385, 0.0559, -0.3837, -0.1006, 0.0652, -0.0503, 1.34, 0.0264, -0.0419, 0.0208, 0.5704, 0.0919, -0.0842, 0.2529, 0.0294, 0.2385, 0.1028, -0.021, -0.0029, 0.0549, -0.063, -0.0952, 0.104, -0.2051, 0.0393, 0.111, 0.1487, 0.0, 0.0042, 0.06, -0.0327, -0.0016, 0.5798, 0.0194, -0.0185, 1.924, 0.0493, 1.5381, 0.0482, -0.2498, -0.0036, 0.0452, -0.0291, -0.0566, 0.0407, 0.0225, -0.1697, -0.0059, -0.0656, 0.0306, 0.0, -0.0083, 0.1223, 0.0319, -0.0474, -0.1705, -2.7805, 0.0479, 0.2298, -0.2911, 0.1466, 0.0353, 0.1423, 0.3274, -3.1192, -0.2363, -0.0799, 0.0467, 0.0911, 0.0122, -0.2136, 0.0621, 0.3087, 0.0457, -2.0574, -3.0783, -0.0176, 0.4947, 0.07, 0.1117, 0.1319, 0.0837, 0.252, 0.0368, -0.1485, 0.0091, -0.0071, 0.0845, 0.0876, -0.086, 0.0, -0.0592, -0.1021, -0.0451, 0.1223, 0.2136, 0.1615, -0.0123, 0.0, -0.0152, -0.1222, 0.0279, -0.1667, 0.0195, 0.0005, 0.0899, 0.0434, -0.0143, 0.0293, 0.0179, -0.0062, 0.508, 0.154, 0.0494, 0.0341, 0.0908, -0.0116, -3.2144, 0.0101, -0.0331, 0.0905, 0.0953, 0.0676, 0.0223, -0.0087, 0.0771, 0.0772, 0.0024, 0.0158, 0.01, 0.014, 0.5562, -0.0971, 0.0429, 0.878, 0.0186, 0.0441, -0.0067, 0.0464, 0.0669, 0.065, -0.1479, -0.2907, 0.0, -0.0302, 0.0899, 0.0251, 0.283, 0.4246, 0.0092, 0.0075, 0.4761, -0.1167, 0.0, 0.0308, 0.0575, 0.0227, -0.02, 0.1067, 0.054, -0.0082, 0.0885, 0.1002, 0.0502, 0.1087, -0.0218, -0.884, 0.0181, -0.1292, 0.0344, 0.0318, -1.8993, -0.0041, 0.3726, 0.1422, 0.0883, -0.0047, 0.0015, -0.0015, 0.0768, -0.4348, 0.4787, 0.0722, 0.0516, -0.3143, 0.6228, 0.6159, 0.0295, 0.0289, 0.0325, -0.1267, -0.3403, 0.0335, 0.0261, -0.0266, -0.2686, 0.3306, -0.4134, -0.0564, 0.4097, -0.5307, 0.1098, 0.0349, 0.6935, -0.0784, -1.1794, -0.0008, 0.0268, 0.0194, 0.0, 0.0, 5.995, -0.0028, -0.0064, -0.4455, 0.1634, -0.3886, -0.0812, 0.4638, 0.1785, 0.1747, 0.0641, -0.0496, 0.053, 2.3745, 0.0153, -0.1007, 0.0165, 0.0752, -0.0024, 0.0021, -3.8985, 0.0247, 0.2939, -0.0056, 0.0236, -0.1806, 0.1623, -0.3611, 0.3862, -0.022, -0.0509, 0.1571, 0.2743, 0.0211, 0.1968, 0.0204, -0.4587, -0.0934, 0.0292, 0.0018, 0.0394, 0.0486, -0.0147, 0.0318, 0.0261, 0.0313, 0.0637, -0.0612, -0.1306, 0.0733, -0.0709, 0.1022, -0.0245, -0.0782, -0.1604, 0.0083, 0.1008, -1.8845, 0.0466, 0.3227, -0.0552, -1.1497, 0.0408, 0.0191, 0.0368, -0.2367, -0.0416, 0.6951, 0.0, -0.042, 0.0378, -0.27, -1.624, 0.0891, 0.0, 0.0154, 0.2843, 0.066, 0.0631, -0.3309, 0.2278, 0.0208, 0.0618, 0.5655, -0.052, 0.0369, 3.7483, 0.0, 0.0273, -0.0009, 0.0, -0.2746, 0.0858, 0.0369, -1.8814, -0.1299, 0.0348, 0.0801, -0.3314, 0.6327, 0.0384, -0.0809, 0.2182, 0.0417, 0.0429, 0.0228, -0.0158, 0.1718, 0.0137, 0.0479, -0.1265, 0.0653, -0.0027, -4.4217, -0.0411, -0.0123, -0.0206, -0.5391, 0.004, -0.4543, -0.0299, 0.0061, -1.0704, 0.7469, -0.2918, -0.1048, 0.09, -1.4287, -0.222, 0.0425, -0.6626, 0.4306, 0.0462, 0.4166, 0.0644, 0.0579, -0.0638, -0.85, -0.1255, 0.0715, -0.7202, -0.0247, 0.0151, 0.2924, 0.3919, -0.1154, -0.192, 0.2799, 0.0676, -0.0124, 0.0651, 0.0476, 0.1511, -0.047, -0.2151, 0.0574, -0.0088, 0.0903, 0.082, 0.0791, 0.1569, 0.0772, 0.0, 0.3217, -0.0001, -13.005, 0.3723, 0.3399, 0.2389, -0.1052, 0.0952, 0.4447, 7.567, 0.1104, 0.2741, 0.1037, -0.8568, -0.0101, -0.0189, 0.0903, 0.127, -1.5547, 0.1281, 1.9017, 0.2371, -0.1257, 0.0115, 0.0, 0.1228, 0.0418, 0.0146, -0.0389, 0.0022, 0.0267, 0.0427, 0.0021, 0.0444, -0.0791, -0.0953, -0.0461, 0.032, 0.0593, 0.0926, -0.168, 0.0217, 0.0882, -0.0742, -0.012, 0.1297, 0.2934, -0.109, -0.0055, -0.0062, -1.1272, 0.1931, -0.1639, -0.0828, 0.1221, -0.0498, 0.0004, 0.0808, 0.0057, -0.078, 0.2051, 0.1051, -0.0174, 0.0461, -0.0489, -0.0278, -0.0314, 0.0312, 0.0655, 0.2388, 0.0269, 0.1484, -0.3733, -0.0546, 0.1893, -0.1045, 0.0847, 0.0937, 1.9894, 0.2826, -0.01, -0.1139, 0.6817, 0.0126, 0.0269, -0.1508, 0.0079, 0.0011, -0.6217, 0.0003, 0.1159, -0.016, 0.155, -1.4106, -0.0903, 0.9307, -0.019, 0.3961, 0.078, 1.2173, -0.041, 0.033, -0.0015, -0.013, 0.1426, 0.2453, 0.5023, -0.0176, -0.009, 0.0147, -0.0084, 0.0419, 0.2234, -0.0887, 0.1, 0.0, 0.0551, -0.0433, -0.4005, 0.0208, 0.0767, 0.0143, -0.1055, 0.0712, 0.04, 0.0449, -0.0586, -0.9758, 0.8188, -9.5633, 0.017, -0.0091, 0.0297, 0.0011, 0.0316, -0.1086, -0.036, 0.1331, -0.1919, 0.5454, 0.1083, 0.2493, 7.4527, 0.0179, 0.2618, 0.3095, 0.037, -0.0212, -1.2543, -0.0071, -0.0226, -0.0058, 0.0976, -0.4246, 0.0597, 0.0404, -4.4317, 0.2026, 0.634, 0.095, 0.0864, -0.0755, 0.0, 0.0158, -0.0518, 0.0573, 0.0339, 0.1183, -0.0632, -0.2838, 0.0726, 0.0555, 0.1202, -0.2865, -0.0631, 0.1377, -12.339, 0.0583, -0.0721, 0.0095, -0.007, 0.0629, 0.0345, -0.2729, 0.9818, 0.6933, 0.232, 0.0505, -0.0481, 0.1308, 0.1271, 0.045, -0.1053, 0.1057, 0.0139, 0.0884, -2.4992, -0.0635, 0.2502, 0.2438, 0.0112, 0.0947, 1.4056, -0.068, 0.0868, 0.4267, 0.2244, 0.0484, -0.1814, -0.0102, 0.0896, -0.0614, -1.745, 0.0673, 0.0737, 0.015, 0.0459, -0.0151, -0.1098, -0.0739, 0.081, 0.0266, -0.2814, 0.1057, 0.1903, -0.004, 0.0312, 0.0796, -0.0223, 0.0741, 0.055, 0.1007, 0.079, 0.4643, 0.1565, 0.0107, 0.0906, 0.0616, 0.0912, 0.4101, 0.0404, -0.0183, -0.1112, -0.078, 0.0, 0.001, 0.0064, 0.1276, -0.0226, 0.0821, -0.0707, 0.2328, -1.9276, -1.383, 0.0, -0.7011, 0.1377, 0.0532, -0.4978, 0.0306, -0.0014, -0.1976, -0.1137, 0.0041, 0.0137, -0.0631, 0.2, 0.0078, -0.0317, 0.0862, 0.0164, -2.35, -0.1063, 0.0289, 0.0162, 0.0847, 0.0328, -0.0222, 0.0395, 0.0916, 0.0267, 0.0, -0.0315, 0.1296, 0.0, 0.1442, 0.0068, 0.1185, 0.051, 0.006, 0.0887, 0.0017, 0.0784, 0.0084, 0.3884, 0.0855, 0.5661, -2.3008, 0.0423, 0.0762, 0.0175, 0.0508, 0.022, -0.3953, -0.5463, 0.0803, 0.0362, 0.0202, 0.2523, 1.0916, 0.0458, 0.1679, 0.1973, 0.0324, 0.0, 0.1527, -0.0291, 0.1082, 0.6867, -0.0481, -0.0317, 0.0166, 0.0392, 0.0836, 0.1735, 0.6025, 0.0, 0.0889, -0.094, 0.0067, 0.0645, -0.1993, 0.108, 1.9583, -0.0299, 0.0894, 0.0835, 0.0907, 0.0884, -0.0618, 0.0663, -0.0679, 0.0891, 0.0591, -0.0481, -0.0404, -2.2219, -0.1405, 0.1471, -0.0736, -0.3769, 0.0182, 0.0432, -0.0031, 1.9104, -0.0025, -4.6418, 0.0521, 0.1748, 0.1008, 0.0, -2.533, 0.3548, 0.1199, 0.0709, 0.0173, -0.1715, 0.0548, 0.0504, 0.3073, -0.0717, -0.1233, -0.0153, 0.439, -0.0519, 0.0255, -0.0044, 0.0747, 0.2155, 0.0614, 0.2556, 0.0481, 0.0835, 3.2086, 0.0687, 0.1082, 10.0575, -0.9982, 0.0725, 0.0875, -0.0686, -0.043, 0.0087, 0.0782, -1.3281, -0.581, 0.1334, 0.0, 0.1757, 0.0063, -0.0132, 0.0428, 0.0312, 0.0214, -0.0438, 0.0852, 0.2132, 0.026, 0.0908, 0.1773, -0.0648, 0.2004, 0.0986, 1.6722, 0.0027, 2.6081, 0.1241, -0.2821, -0.0299, -0.0148, 1.2776, -0.0164, -0.1033, 0.0815, -0.0143, 0.0629, 0.0036, -0.0938, 1.9931, 0.0948, -0.0531, 0.0847, -0.0451, 0.0337, -0.1371, 0.0108, 0.0887, 9.2708, 0.0692, 0.868, 0.1257, 0.0971, 0.5327, 0.1667, 0.0875, 0.0409, 0.3868, 0.1227, -0.0325, 0.2621, 0.0569, -0.0235, -0.0759, 0.0501, 0.0111, 0.023, -0.0038, 0.0317, -0.0545, 0.2172, 0.1058, -0.1072, 0.0162, -0.0331, 0.0, 0.0, 0.8732, 1.4716, -0.2586, 0.0722, 0.0499, 0.0593, -0.0239, 0.0081, 0.0098, -0.0067, 0.1171, 0.0068, -0.4889, -2.686, -0.133, 0.2771, -0.47, 0.196, -0.0744, 0.2852, 0.3023, -0.1699, -0.4716, -2.4183, 0.2398, 0.0, 0.1124, 0.0651, -2.073, 0.2928, 0.0151, -4.4919, 0.2142, 0.4666, 0.0, 0.1053, -0.0524, -0.2172, 0.0168, 2.0017, 0.1044, 0.2211, 0.0008, -0.4906, -0.9465, 1.4752, 0.1487, -0.7435, 0.032, -0.0473, 0.0, -0.2027, 0.0637, -0.1631, 0.727, 0.3364, 0.0913, -2.3987, -3.2829, 0.2153, 0.04, 0.0478, 0.0122, 0.513, 0.0666, 0.1149, 5.4833, 0.4763, 0.1366, 0.1232, -0.7493, 0.275, 0.1444, -0.1758, 0.0242, 0.0517, 0.1066, 0.7827, 0.0205, -0.2715, 0.0191, -0.2613, -0.5784, 0.1903, 0.391, 0.0679, 0.1322, 0.0873, 0.1242, 0.0805, 0.2378, -0.3947, 0.0097, -3.4029, 0.0492, 0.0238, -0.0317, -0.2144, 0.1413, 0.0, 0.0968, -0.0119, 0.1174, -0.0602, 0.0487, -0.0567, -0.0396, 0.0383, 0.0, 0.0002, 1.7817, 0.277, 0.0, 0.0321, 0.0189, -0.0126, -0.1971, 0.147, 3.4283, 0.0454, -0.4025, 0.0003, 1.4176, 0.1374, 0.0183, 0.0145, 0.2618, 0.0455, 0.3059, 0.0557, 0.004, -0.0238, 0.0, -0.0531, -0.1869, 0.0, 0.3749, -0.0961, 0.013, -0.1056, 0.0, -0.0666, 0.0454, 0.0257, -0.3633, 0.1402, 0.4912, -0.045, 0.0, 0.1392, 0.1234, 0.0107, 0.0821, 0.3637, -0.0227, 0.0044, -0.4436, 0.1084, -2.547, 0.0691, 0.2009, 0.0406, -0.0374, 2.0, 0.0048, -0.0619, 0.4581, 0.0, -0.0513, 0.0, -0.0613, 0.4576, -0.0973, 0.1126, 0.0267, -0.016, 0.0079, 1.1669, 0.1056, 0.0633, 0.0128, -0.6103, -0.0064, 0.3267, 0.0052, 0.0773, 0.0707, -0.127, 0.0758, 0.0147, -0.0893, -0.2083, 0.1029, 0.0842, 0.0094, 0.0067, -0.1416, 0.0217, 0.0338, -0.0547, -0.0647, 0.0, -0.0045, 0.0882, 0.1387, 0.1091, 0.0397, 0.0926, 0.1631, 0.0, 0.0495, 0.1027, 0.2762, 0.0186, -0.3608, 0.0724, 1.8558, 0.033, 0.0791, -0.0089, 0.0046, -0.1254, -6.0783, 0.0712, -0.1027, 0.0702, -0.0691, -0.3475, -0.4987, 0.0539, 0.0, 0.1154, -0.0239, 0.0388, 0.0145, 0.137, -0.4543, 0.1708, 0.0212, 0.1625, 0.1222, 0.0929, -0.0961, 0.0295, 0.1356, -0.0173, 0.1167, -0.0538, -1.7581, 0.0225, 0.3998, -0.1772, -0.8743, 0.0424, 0.0661, -0.0207, -0.3848, 0.0, 0.1302, 0.0, -0.0501, -0.0157, 3.4425, 0.2811, -0.0269, -2.2225, 0.0264, 0.0154, -0.222, -0.308, -0.2033, 0.4582, 0.1163, 0.0, 0.0043, 0.0437, -0.0059, -0.1251, 0.059, 0.0556, 0.1061, 0.233, -0.0485, 0.1279, 0.0672, -0.3023, 0.0262, 0.1777, 0.2209, 0.1167, 0.0005, -0.0596, 0.1495, 0.0026, -0.0461, 0.2309, 0.2664, -0.0958, -0.0296, 0.0105, -0.0272, -0.1308, 0.068, -0.0647, 0.0063, 0.0, 0.0985, 0.1206, 0.1562, 0.0735, 0.1109, -0.0402, -0.6393, -0.0066, 0.112, -0.0368, 0.0, -0.2597, 0.2957, 0.1464, 0.1355, 0.0373, -0.0148, -0.1013, 0.0996, 0.0111, 0.0338, 0.0405, 0.1654, 0.0153, 0.25, 0.0, -0.0562, 0.0237, -0.071, -0.1227, 0.0487, -1.0022, 0.1507, 0.5633, -0.0925, -0.038, -0.2137, -0.0283, 0.257, -0.0328, -0.1093, 0.0259, -0.111, 0.0748, -0.0536, -0.2914, 0.0, 1.9837, 0.0156, 0.1506, 0.0616, 0.2328, -1.3742, -6.53, 0.0031, 1.778, -0.1304, 0.2459, 0.0, -0.3364, -0.0089, 0.0812, 0.0, 0.6964, 0.1234, -0.5595, 0.0135, 0.0, 0.0709, -1.9844, -0.1983, 0.0378, 0.1697, 0.0281, -0.0511, -3.1261, -0.0189, 0.0939, 0.0792, 0.19, 0.0264, 0.1765, 0.0074, 3.6347, 0.1593, 0.0629, -2.1668, -0.0247, -0.2854, 0.1144, -1.08, -0.261, 0.0546, 1.6252, 0.0557, 2.521, 0.0072, 0.0557, -6.4147, -0.5117, 1.3969, 0.1142, 0.1784, 0.0366, 0.1788, 0.3084, 0.1275, 0.0, -0.0271, 0.0932, -0.0946, 0.2338, 0.2731, -0.1217, -2.8792, 0.0526, 0.0, -0.1652, 0.1318, -0.2277, -0.0013, 0.0499, 0.1071, -0.0356, 0.0, -0.2373, -0.0955, -0.5508, 0.345, 0.1174, -0.292, 0.0438, 0.6721, -0.0849, 0.0, -0.0602, -0.4621, -0.046, 0.0, 0.1076, -0.3283, 0.0387, 0.1651, -2.4696, -0.023, 0.0451, 0.0987, -9.9958, 0.0128, 0.2723, -0.3911, -0.2896, 0.2694, 0.0636, 0.029, 0.0657, 1.3612, 0.1056, 0.039, -1.5215, 0.0, 0.0696, -0.3653, 0.0032, 0.0591, 0.0712, -0.043, -0.0451, 0.0, -0.0967, 0.3208, -0.0393, 0.1283, 0.1667, 0.0581, -0.0046, 0.0553, -0.136, 0.3572, -1.2499, -0.0375, 0.0386, -0.1665, -2.1312, -0.648, -0.1406, 0.0349, -0.0761, -0.0737, 0.0358, 0.1628, 0.0, -0.0837, 0.057, 0.4296, -0.0491, 0.2816, -0.0513, -0.3815, 0.0984, 0.1267, 0.0223, -0.6014, -5.9325, -0.3133, 1.7659, 0.0016, 0.1069, -0.2612, 0.2922, -0.0157, 0.0, -0.0461, -0.2826, 0.0, 0.1581, -0.2051, 0.0, -0.861, 2.9859, 0.0147, -0.1912, 0.0977, 3.2758, -0.0746, 0.0269, 0.146, 0.0049, -0.0934, -0.5957, 0.4383, -1.251, -0.0164, -0.0217, 0.0091, 0.0757, -0.0275, 0.018, -0.0108, 0.0042, -0.044, 0.0059, 0.0206, 0.0026, 0.0649, -0.102, -0.0893, -0.0535, 0.0136, 0.1391, -0.0436, 0.0721, -0.1266, 0.0197, -0.0044, 0.014, 0.0097, -0.0516, 0.053, 0.2816, 0.0633, 4.3375, 0.0318, -0.5023, 0.0, -0.0126, 0.0993, 0.1749, 0.0369, -0.0738, 1.0911, 0.1902, -0.0658, 0.0335, 0.134, 0.0828, 0.0417, -0.3248, -0.0375, 0.0363, 0.0528, -0.5291, -0.1132, 0.0842, 0.0, -0.0094, -0.297, -0.0838, 0.0, -0.0168, 0.1761, 0.1068, 0.4028, -0.0624, -0.003, -0.0638, -0.6876, 0.0, -0.2855, 0.6988, 0.0648, 0.4295, 0.0356, -0.1913, -0.1905, -0.1176, 0.0321, -0.0007, 0.0071, -0.1174, -0.0056, 0.0176, 0.0454, 0.2131, 0.008, -0.0319, -0.0314, 0.041, 0.0205, -0.1028, -0.0984, -2.0028, 0.5661, -0.0039, -0.0016, 0.0224, -0.0373, -0.0311, -0.0, 0.044, -0.1692, -0.0395, 0.0269, 0.1008, 0.0499, -0.0646, -0.0708, 0.0, 0.0, 0.1307, -0.1147, 0.0957, -0.0469, 0.2315, -0.0595, 0.1149, 0.1607, 4.1138, -0.0255, 0.0, -0.0547, -0.1923, 2.5891, 0.0687, -0.3242, -0.0109, -0.3012, 0.0177, 0.0229, 0.0979, 0.0488, -0.0053, 0.6675, 0.2745, 0.1158, -0.3366, -0.0539, 0.1016, 0.0489, 0.0191, 0.0878, 0.0884, 0.1221, 0.08, 1.7258, 0.056, 0.2831, 0.034, -0.6515, -0.0461, 0.5903, -0.0614, 0.2395, 0.0293, 0.8361, -0.037, -0.0162, 0.2592, -0.0483, -1.9919, 0.0, 0.1675, 0.1501, 0.1829, -0.0437, 0.9294, 0.0311, 0.008, 0.1028, 0.7266, -0.0698, -0.4337, -0.1444, -0.1036, 0.0, 0.065, -0.0768, 0.0, -0.0827, 0.0358, 0.2767, 0.3607, 0.0945, -0.0118, -2.0305, -0.3571, 0.1767, 0.0947, -0.031, 0.0125, -0.1777, -0.1403, 0.0, 0.0788, 0.0276, 0.0552, 0.0, 0.4803, 0.1423, -0.734, 0.5866, 0.1954, 0.444, -0.017, 0.0333, -0.02, 0.0163, -0.0404, 0.0051, 0.036, 0.053, -0.088, 0.0961, -0.7089, 0.0239, -0.2639, 0.0348, 0.0401, 0.0454, -0.0031, -0.2777, 0.0159, -0.013, 0.1135, 0.0466, 0.0596, 0.3411, -0.0209, -0.0751, -0.2247, -0.171, -0.0377, -0.6979, 0.0062, 0.0, -0.0084, 0.0, 0.0368, 0.1522, 0.0382, -0.007, 0.011, 0.1475, 0.1927, 0.1367, -0.0053, 0.181, -0.0084, 7.8175, 0.1159, 0.4066, 0.0107, -0.0109, -0.0011, -0.0715, 0.2275, 0.1019, 0.0921, 0.1047, 0.141, 0.0437, 0.0443, -0.0705, -0.061, -0.2105, 0.0628, 0.0685, 0.3404, 0.0473, 0.1303, -0.2312, 0.0, -0.1093, 0.0, 0.0431, -0.0407, 0.0957, -0.1311, 0.1497, 0.0188, 0.0463, 1.6385, 0.0892, -0.0506, 0.0033, 0.003, -0.0157, -0.2771, 0.0979, 0.0629, 0.0325, 0.7052, -0.4151, 0.8021, 0.1606, -0.3608, -0.9456, -0.0011, 0.0054, 0.0, -0.1815, 0.0129, 0.0164, 0.3203, -0.0154, -0.0097, 0.0922, 0.0973, -0.1772, 0.0577, -0.0997, 0.0701, -4.2182, -0.0004, -0.0225, 0.0552, -0.0077, -0.1224, 0.53, -0.0803, 0.2141, -0.1399, 0.087, -0.2912, 0.03, -0.0111, -0.1308, 0.0715, 0.4434, 0.0184, -0.0021, 0.2996, -0.1308, 0.049, -0.3461, 0.8967, 0.0449, -0.1053, 0.3507, -0.2855, -0.2216, 0.0866, 0.0409, 0.0455, 0.0205, -0.2982, -0.0241, 0.0135, 0.0003, -0.1349, 0.0789, -0.0265, -0.0695, 0.5333, 0.0, 0.1041, 0.0383, -0.0153, 0.0895, -0.0002, -0.3832, -0.0349, -0.1921, 0.0, 0.0, 0.2904, 0.1261, -0.0097, -0.0002, 0.0, -0.0296, 0.0754, 0.3821, 0.0248, -1.3976, 0.0, 0.4989, -0.0291, -0.1429, -0.0027, 0.053, -0.3135, 0.5756, -0.0047, -0.1183, 0.0183, -0.0043, 0.2225, 0.2139, 0.2545, -0.0438, 0.07, 0.3648, -0.0018, 0.0646, -0.0203, -0.0101, 0.004, -0.3595, 0.0483, 0.1117, 0.0379, -0.0557, -0.1474, 0.0634, -0.0544, -0.4174, 0.1585, 0.3449, 0.0104, 0.0923, 0.0219, 0.0463, 0.0005, 0.019, 0.0951, 0.0209, -1.084, 0.0611, 0.0373, -0.3903, 0.0822, 0.0084, -0.3122, 0.0185, 0.1045, -0.2595, 0.0672, 0.0, 0.0023, -0.0256, -0.0114, 0.0954, 0.1592, 0.1225, -0.0147, 3.694, -0.6543, -0.0177, 0.0028, -0.0185, 0.1024, 1.1096, 0.9452, -0.0031, -0.2406, 0.0872, 0.0333, -1.808, -1.194, 0.0254, 0.0114, -0.0245, 0.2257, -0.1454, 0.057, 0.0611, 0.3684, -0.5262, -0.0737, 0.0135, 0.0896, -0.0037, 1.2031, 0.3, 0.1003, 0.0265, 0.0692, -0.1201, 0.0792, -0.0176, -0.1588, 0.053, -0.6064, 0.0058, -0.0673, -0.6942, 0.1137, -20.9236, 0.0339, 0.0435, 0.1412, -0.0189, -0.3362, 0.1042, 2.3925, -1.2822, -0.0044, 0.0515, -0.9348, 0.0824, -0.0758, -0.4142, 0.0, 0.0376, 0.0428, 0.0659, 0.1465, 0.0453, 0.2882, 0.1185, 0.273, 0.1068, 0.0133, 0.0863, -0.0812, -0.4909, 0.0022, 0.219, 0.2125, 0.1215, -0.0085, -1.5462, -0.0391, 0.0334, 0.0401, 0.055, -0.5252, -0.1427, -0.0026, 0.0986, -0.0637, -0.0574, 0.1575, 0.3702, 0.4915, 0.0129, -0.1881, 0.0371, 0.1533, -0.0414, 0.1171, 0.0798, 1.37, 0.0543, -0.0159, 0.0, -0.2605, -0.4707, -0.0739, 0.1318, -0.5352, -0.3802, 9.015, 0.4975, -1.5513, -0.0443, -0.1202, -0.0754, -0.1003, 0.1438, 0.1963, -0.0304, -0.0054, 0.0, 0.0189, -0.4257, -0.3781, -0.0594, -0.0678, 0.0, 0.054, -0.0446, -0.0589, 0.1349, 0.0, 0.1305, 0.1047, 0.0, 0.5166, 0.2496, 0.0643, 0.0314, 0.0131, 0.0855, 0.0, 0.0462, -0.0892, 0.1032, 0.0628, 0.0784, 0.0809, 0.094, 0.1853, -0.0079, -0.0299, 0.281, -0.0885, 0.1181, -0.1975, 0.4258, -0.1744, 1.0602, -1.49, 0.1005, 0.0207, 0.042, 0.0, 0.0007, 0.0521, -0.0299, 0.0124, 6.7022, -0.8141, -0.0105, 0.0159, 0.0403, 0.0387, 0.1624, -0.1121, 0.1798, 0.0147, -0.1569, 0.2477, 0.1543, -0.0843, 0.1378, 0.0, -0.0156, -0.0309, 0.0079, -0.7616, 0.3348, 0.1246, 0.0, 0.0951, 0.2177, 0.0166, -3.0675, 0.1046, 0.0453, 0.0627, 0.3808, 0.1882, 0.0887, -0.8278, 0.0477, -0.0069, -0.0231, 0.0021, 0.2714, 0.7851, 0.1569, 0.2398, 0.2823, 1.2006, 0.081, -0.1068, -0.4625, 0.1609, 0.2742, 0.0, 0.0055, 0.0013, 0.5077, -0.0379, 0.1681, 7.4175, -0.0775, -0.1779, -0.1588, -0.6672, 0.0, -0.0154, -0.0518, 0.0102, 0.0138, 0.0324, 0.1004, -0.6214, -0.1538, 0.001, 0.0348, 0.0, -0.0451, 0.094, 1.1361, 0.1686, 0.1484, 0.7135, -0.01, 0.062, 0.0094, 0.2894, -0.0446, -0.0197, 0.0134, -0.0464, -0.0189, 1.9747, -0.0179, 2.0193, -0.0898, -2.1333, -0.0234, 0.2257, 0.0032, -2.4115, -0.2567, -0.1975, 0.1614, -0.0477, 0.0, -0.0421, -0.0698, 0.0882, 0.2698, 0.0419, 0.0, 0.0251, 2.7219, 0.0567, 0.0407, 0.0547, 0.0143, 0.1469, -0.1059, -0.4029, -0.0338, -2.5856, -0.0234, -0.1175, -0.1433, 0.1275, 0.01, 0.1735, 0.0464, 1.4813, 0.6764, 0.1679, 0.3259, -0.1083, -0.3064, 0.2496, 0.1461, -0.0088, -0.01, 0.0477, -0.0397, 0.8755, -0.0333, -0.0483, 0.0597, 0.0974, -0.1302, 0.0402, 0.0666, -0.0039, -4.5959, 0.0447, 0.16, 0.0, 0.0022, 0.1947, 0.3623, 0.827, 0.0188, 0.1132, -0.0666, 0.0979, 0.0138, 0.3277, -0.0821, 0.0966, -0.2551, -0.0152, 0.0999, 0.5656, -0.1626, -0.8076, 0.1656, 0.7215, -0.3905, 0.0441, -20.1492, -0.0594, -0.0348, 0.1109, -0.4485, 0.3139, 0.0437, -0.1169, 0.1442, 0.0116, 0.0832, 0.0515, -0.0268, 0.2205, 0.1978, -0.0337, -0.0783, 0.1304, 0.0259, -0.0509, 0.0136, 0.0532, 0.0306, 0.0006, 0.0855, 0.0364, 0.043, 0.2709, -0.2758, 0.0, 0.0037, -0.1452, 0.0879, 0.0597, -0.0303, 0.1387, -0.2717, -0.4577, 0.2014, 0.9108, -0.1255, 0.5, 0.079, 0.3206, 0.7473, 0.1882, 0.0063, 0.0747, 0.2425, 0.1287, 0.0754, -1.036, 0.0, 0.0968, -1.4034, -0.218, 0.1447, 0.1282, 0.1266, 0.0757, 0.0009, 0.0441, 0.5279, 0.3294, -1.3714, 0.33, -0.0289, 0.6908, -0.2018, 0.0273, 0.1907, -0.1039, 0.2203, -7.3274, 0.1516, 0.4857, 0.3568, 0.3154, -0.0945, -1.4817, -0.0929, -3.9596, 0.4915, -0.6256, -0.1237, -0.2547, 0.0064, -0.0187, 0.065, 0.1061, -0.2893, -0.1033, 0.2865, -0.1516, 0.1263, -1.177, -0.0064, 0.4135, -0.0462, 0.025, 0.0, 0.1258, 0.0464, 0.026, -0.0313, 2.9081, 0.0502, 0.0483, -0.0007, -0.0058, 0.1192, 0.0049, 0.0859, -0.002, 0.2186, 0.0, -0.0216, 0.0097, 0.0324, 0.2156, -0.6471, 0.0492, -0.0482, 0.0, -0.0319, 0.3115, -0.368, -0.2245, -0.5377, -0.0861, -0.0005, 0.0, -0.0842, 0.1823, -0.0796, 0.2352, 0.0422, 0.0637, -0.192, 0.095, -0.1668, 0.1006, -1.1381, 0.0059, -0.2133, 0.2004, -0.1023, -0.5571, 0.0239, 1.2933, -0.1286, 0.0, 0.0408, 0.0403, 0.0771, -0.0034, -1.5047, -0.0173, -0.0027, 0.0362, 0.3987, -0.7497, 0.2139, 0.03, 0.3012, 1.0465, -0.0742, -0.1756, 0.0662, -0.0913, 0.0, -0.2154, 0.0, -0.0524, 0.0085, 0.0066, -0.9275, 0.4962, 0.6652, 0.0891, 0.0477, 0.1787, 0.0396, 0.326, 0.0, 0.06, 0.0042, -0.0687, 0.0695, 1.3439, 0.0169, 1.9218, -0.0891, -0.0254, -0.0907, 0.2448, 0.1616, 0.0516, 0.1208, -0.1311, -0.0745, -0.0259, -0.0706, 0.1305, 0.1316, 0.0036, -0.2237, 0.0264, 0.0935, -0.028, -0.0888, 3.085, -0.1809, 0.2275, 0.0894, 0.1524, 0.1123, 0.0109, 0.1537, -0.1159, 0.3053, 0.03, 0.1585, -0.0023, -1.8748, -2.2808, -4.2333, -0.004, 0.0237, -0.033, 0.2659, 0.0494, -0.0806, 0.0158, -0.0277, 0.0, 0.0031, 0.1512, -0.1622, -0.4337, -0.0306, 0.0172, -0.4175, 0.0432, -0.0816, 0.1941, -0.0705, 0.118, 0.0152, -0.0699, -0.0623, -0.1822, -0.0014, 0.002, 2.4942, 0.1661, -0.1777, -0.1627, 0.0512, 0.0, -0.2481, -0.0029, 0.1388, 0.0232, -0.0578, -0.0721, -0.0034, -0.0761, 0.027, 0.0206, 0.0289, -1.2688, 0.0162, 0.0239, -0.0694, -1.4973, 0.0089, 0.0822, -0.4706, -0.7658, -0.0251, -0.0129, 0.1019, 0.0845, 0.0497, 0.1079, 0.0116, 0.1933, -0.1197, 0.0705, 0.0212, 0.1538, 0.0644, 0.0306, -0.0958, 0.1111, 0.0332, 0.0287, -0.053, -0.0081, 0.002, -0.1468, -0.0156, 0.1078, 0.1669, 0.1999, 0.0059, 0.0782, 0.041, 0.0455, 7.1025, 0.0261, 0.19, 0.1305, 0.3674, -0.0658, -0.0255, -0.1139, -0.0023, -0.3519, 0.0, -0.0057, 0.0249, -0.0199, 0.0432, 0.0183, -0.1675, 0.2223, -0.0596, 0.0315, 0.0264, 0.2872, -0.14, 0.0585, 0.0988, -0.0408, 0.0038, 0.1002, 0.0662, 0.0, -0.016, 0.4146, 0.0544, 0.0151, 0.0557, 0.0479, -0.372, 0.468, -0.2286, 0.3988, 0.6922, -0.9291, 0.3007, -0.6289, 0.2075, 0.2686, -0.0618, 0.0901, -0.0936, 0.0439, -14.9867, -0.3844, -0.0205, 0.092, 0.0819, 0.0061, 0.0756, 0.0906, -0.7556, -0.0415, 0.0267, -0.0468, 0.0996, 0.0161, 1.4952, -0.0327, -0.0354, 0.088, -0.0406, -0.088, 0.2488, -0.0232, 0.0087, -0.0334, 0.3867, 0.0206, 0.0558, -0.0051, -0.3302, 0.0029, 0.5178, 0.008, 0.0209, 0.0, -4.4636, 0.0723, -0.2926, -17.4158, 4.98, 0.1005, 0.014, 0.0769, -0.0295, 0.0108, 0.1329, -1.1309, -0.0017, 0.136, -0.4642, -0.0036, -0.7826, 0.0651, 0.6628, 0.1428, 0.3891, 0.9893, -0.0404, -0.0438, 0.0177, 0.0998, -0.3744, 0.3111, -0.4475, 0.0075, -0.214, 0.2812, -0.0555, 0.0205, -0.4382, 0.1459, 0.071, 0.0, -4.4531, -0.1694, 0.0397, -0.0495, 0.2821, 0.0, 0.0, -0.0827, 0.0341, 0.1845, -0.0148, 0.0, -0.1305, -0.3151, -1.2297, -0.014, 0.0065, 0.3302, -0.2702, -7.2733, -0.174, 0.0, 0.0915, 0.1509, -0.0893, 1.5341, -0.0317, 0.0206, 10.3333, -0.1481, 0.1139, 0.0447, -0.0216, 0.2017, -0.0874, 0.0, 0.0, -0.035, 0.0167, 0.0278, -0.0794, -0.03, -0.0146, 0.0063, 0.0129, 0.0242, 0.0375, 0.1004, 0.0344, -0.0415, 0.2308, 0.0338, 0.0692, 0.0955, 0.0829, -0.3224, 0.1002, -0.3273, -0.5337, 0.0869, -0.009, -0.0132, 0.3764, -2.2667, 0.0154, 0.2892, 0.0746, -10.8925, 0.0811, 0.1693, 0.105, -0.004, 8.5183, 0.0042, 0.3452, 0.0103, 0.1748, 0.0549, 0.0105, 0.0628, 1.2191, 0.4454, 0.0, 0.088, 0.0403, -0.1184, 0.0, 0.5093, 0.4587, 0.0315, -0.0858, 0.1878, -0.0528, 0.301, -3.5242, 0.0286, 0.1502, 0.0292, -0.0492, -0.062, 3.0675, 0.0055, 0.0183, 0.062, -0.3249, 0.0277, 0.0252, 0.0539, 0.0735, 0.0734, 1.3139, 0.1706, 0.0714, -0.0109, -0.0241, 0.1717, 0.2629, 0.2265, 0.0389, 0.0254, 0.0312, 0.2225, -0.0125, 0.0289, 0.0155, 0.1166, 0.0, 0.4414, 0.5438, 0.6987, 0.0701, 0.2516, 0.0379, 0.1682, 0.0349, 0.1139, 0.0, -0.7262, 0.3031, -0.0332, 0.0361, 0.0547, 0.3391, -2.1206, 0.038, 0.1667, -0.066, 0.0, 0.0709, -0.063, 0.5783, 0.0019, 0.0612, -0.5098, 0.0171, -0.0477, -0.2335, 0.1005, 0.0494, 0.0229, -0.0027, 1.0168, -0.0406, -0.1265, 0.0282, 0.1295, -0.5302, 0.1322, 0.013, -0.3159, 0.0221, -0.1557, 0.0006, 0.0397, 0.0418, 0.0295, 0.0438, 0.0132, -0.8431, -0.1505, -0.0089, 0.1491, 0.0194, 0.1644, 0.0644, -0.2243, 0.8987, 0.0368, -0.0265, 0.0057, 0.0694, 0.8407, 0.0218, 1.7449, -0.051, -0.1163, -0.0056, -0.3781, 1.3498, 0.0237, -0.0471, -0.2638, -0.141, 0.1523, -0.0092, 0.0, 0.0762, 0.0032, 0.0392, -0.0129, 0.0907, 0.0886, -0.199, 0.037, 0.0438, 0.0857, -0.0245, -0.0089, 0.0414, -0.2232, 0.033, -0.2035, 0.082, 0.0, 0.0, 0.0, -0.1071, 0.3093, -0.0811, 0.0762, -0.5973, -0.0904, -0.2853, 0.0431, -0.1487, 0.0566, 0.0, -0.101, -0.0084, 0.105, 1.2552, 0.0414, 0.0094, 0.0532, -0.1421, 0.0, -0.1016, -0.4719, -0.0068, 0.6751, 0.0, -0.0647, 0.0011, 0.1113, 0.0554, -11.2117, -0.0225, -0.4632, 0.0763, 0.1618, 0.0, 0.0957, 0.2803, 0.0611, 0.3458, 2.6395, -0.1463, 0.0414, 0.0811, 0.5918, -0.0386, 0.529, -0.0427, 2.2867, 0.05, 0.3474, -0.0601, 0.0644, 0.284, -2.4646, 0.1059, -0.0013, 0.0, -0.1214, 0.2076, 0.109, -0.9914, 0.2833, -1.3489, -0.0836, -0.0384, -0.0556, -1.4535, 0.2662, 0.0, -0.0045, 0.0841, 0.5451, -0.0089, 1.6188, 0.4155, 0.0125, -0.0022, -0.1091, 0.0008, -0.0027, -0.0657, 0.434, 0.0147, 0.0449, 0.0869, 0.2129, -0.0198, 0.0349, -0.0176, 0.0456, -0.0274, 0.0402, -0.937, 0.0, 0.1238, 0.0264, 0.0541, 0.0053, 0.0208, 0.0663, 0.0012, 0.1832, 0.0631, 0.1489, 0.1258, 0.0499, 0.0935, 0.0126, -0.1567, -0.0211, 6.7933, 0.0, 0.1814, 0.1209, 0.0733, -0.0206, 0.2823, 0.1718, 1.3856, -0.0523, -0.4735, -21.182, 0.2997, 0.4742, 0.0, 0.2713, -0.0899, 0.0728, 0.4229, 0.2171, -7.9847, 0.0426, 0.1705, 0.1198, 0.1855, 0.2679, 0.0945, -0.0003, 0.1573, 0.1392, 0.1249, 0.0686, 0.126, 0.0082, -4.3067, 0.1407, 0.144, -0.1126, 0.1768, 0.0349, 0.241, 0.2352, 0.1369, -0.451, -0.0931, 0.1046, 0.0528, 0.5133, -0.2133, -0.0535, -0.1225, 0.0651, 0.118, 0.0454, 0.1176, 0.0, 0.3228, 0.0638, -0.534, -0.0694, 0.0143, 0.1142, -0.0746, 0.1515, -0.5214, -1.0347, -0.1858, -0.0442, 0.0591, 0.0157, 0.0, 0.2886, -0.2999, -0.0516, 0.1095, -0.0228, 0.0284, -1.4923, 0.0201, 0.115, 0.107, 1.0139, 3.7638, 0.0686, 0.0721, -0.5904, -0.0133, 0.0186, 0.0917, 0.067, 0.0362, 0.0349, -0.0328, -1.8365, -0.2845, 0.2192, 0.1402, -0.24, -0.2091, 1.2484, 0.2378, -0.0001, 0.0637, 0.0175, 0.1705, 0.2132, -0.1195, 0.3698, -0.002, 0.0727, 0.0781, 0.0113, -0.0616, 0.2841, -0.0473, 0.0546, 0.1225, -0.0145, -0.4062, 0.2807, -0.0538, 0.119, 0.2197, -0.0136, -0.0059, 0.1216, 0.1254, -0.1419, -0.0512, -0.6268, -0.2712, -0.9019, 0.1535, -0.0187, -1.3925, 0.0146, -0.0296, -0.1016, -0.1827, 0.0563, -0.0573, 0.079, 0.1837, 0.9092, 0.0392, 0.0156, -0.0044, 0.1035, -0.2315, 0.1113, -0.3142, -0.4373, 4.665, 0.1492, 0.0159, 0.2468, 0.2615, 0.0131, -0.0489, 0.0, 0.0548, 0.3067, 0.178, 0.2709, 0.0544, 0.0, 0.1179, 0.9927, 0.1479, 10.3183, -1.2019, -0.1063, -0.1052, -1.2912, -0.0763, 0.0311, 0.0152, 0.046, 0.0375, 0.0286, -0.0669, 0.0, 0.0264, 0.3442, -0.0246, -0.0311, 0.0818, 0.0034, -0.0524, 0.006, -0.0783, -0.5566, -0.0549, -0.1363, 0.0467, 0.329, 0.2327, 0.3597, 0.1222, 0.0179, 0.0268, -0.7251, 6.7725, -0.0037, -0.0365, 1.0855, 0.0286, 0.0098, -0.0586, -0.008, 0.0729, -0.0432, 0.2034, 0.003, 0.0085, 0.0771, 0.03, 0.3512, 0.0, 0.169, 0.0068, 0.1117, 0.1648, 1.28, 0.0597, 0.0759, 0.1784, 0.1246, 0.0344, 0.0395, 0.0264, 0.1442, 0.0242, -0.4047, -0.0046, 0.0008, 0.0256, -0.0187, 0.0, 0.1457, 0.3638, -0.0233, -0.382, 0.0595, 6.3808, 0.0655, 0.1869, -1.5133, 0.0563, 0.0, 0.0, 0.0529, -0.0042, 0.0669, 0.0222, -0.0777, -15.8311, 0.0762, -0.0106, -0.02, -0.0817, 0.0828, 0.0433, -3.1312, 0.5188, 0.0, 0.355, 0.1507, -0.0803, 0.0, -1.0525, -0.1332, 0.0229, 0.0115, 0.2561, 0.3284, 0.1694, 0.0, 0.0084, 0.908, -1.1872, 0.0365, 0.0835, 0.105, 0.0471, 0.0, 0.1567, -0.0311, 0.1714, -0.0597, -0.0251, 0.0249, 0.1127, 0.007, 0.0398, 0.1431, 0.0755, 0.0779, 8.3558, -0.0488, 0.1022, 0.74, 0.0, 0.0038, 0.0273, 0.6782, -0.0473, -1.4807, 0.0061, 0.1492, -0.116, 0.0174, 0.1745, -0.0185, -0.1036, 0.098, 0.1072, 0.1795, -0.0656, 2.0034, -0.081, -0.0622, 0.0558, -0.0474, 0.145, 0.0, -0.0063, 0.0684, 0.0, 0.3665, -0.0851, -0.5267, 0.0, 0.0554, -0.4583, 0.2023, 0.2865, -0.0818, 0.0073, 0.2625, 0.4399, 3.5725, 0.0646, -0.1728, 0.0228, -0.0841, 7.9842, 0.0, -0.0806, 0.0394, 0.0612, 0.1263, -0.0332, 0.119, 0.011, -0.0836, 0.0, 0.0031, -3.5958, -0.1449, 0.0873, 0.19, -0.0453, 0.7002, -0.0461, -0.0083, -0.0444, 0.0277, 0.3533, -0.0249, 0.0339, 0.0436, 0.1403, 0.0763, -0.9, 0.0859, 0.1316, 0.1183, 0.1047, 0.1704, -0.54, 0.0289, 0.0669, -0.1055, 0.5772, 0.0, -1.9317, -3.291, -0.0257, 0.4963, 0.1548, 0.285, 0.3441, 0.0111, -0.0556, -0.0223, 0.1383, 0.0329, -0.0621, -0.037, 0.0367, -0.0081, 0.0014, 0.2687, 0.0, -0.0667, -0.0627, 0.0051, 0.2625, 0.1193, 0.1124, 0.0263, 0.0, 0.0122, 0.0913, 0.0717, 0.0166, -0.9569, -0.0044, -1.4508, -0.4857, -0.0457, 0.1525, -0.0214, -3.37, -0.4065, 0.0408, -0.996, -0.084, 0.0324, 0.0292, 0.058, 0.014, -0.0155, -0.0186, 0.0058, -0.0257, 0.0013, 1.2021, -0.878, 0.02, 0.1052, 0.0649, 0.1702, 0.0569, 0.0165, -0.0348, 5.5083, 0.0718, -0.0383, 0.4662, -0.0605, -0.0667, 0.0213, -0.0819, 0.0809, 0.038, 0.1136, -0.0206, -0.0039, -0.0093, 0.1543, 0.114, 0.1522, 0.0798, 0.4882, -0.0872, -0.362, 0.0878, 0.0666, -0.0884, 0.0966, -0.0011, -0.0676, -0.3931, 0.0531, 0.0, -1.0131, 0.0, 0.095, 0.0103, 0.0733, 0.281, 0.6173, -0.9715, -0.3166, 0.1304, 0.2542, 8.49, -0.1723, 0.1135, 0.5774, 0.0039, 0.0965, 0.0777, 0.1524, 0.2165, -0.3645, -0.0841, 0.1823, 0.0336, 0.0376, 0.4353, 0.0352, 0.1042, 0.065, -4.23, 2.0964, 0.0202, 0.0601, -2.8218, -0.0326, 0.0317, -1.6041, -0.885, -0.0706, -0.1024, 0.0569, -4.3508, -0.0696, 0.0183, -0.2223, -0.4052, 0.026, 0.103, -0.1785, 0.062, 0.6739, -2.8942, 0.0787, -0.0041, 0.3994, 0.0375, 0.8994, 0.0064, -0.0533, 0.4072, 0.0416, 0.137, 0.0786, 0.1511, 0.0642, 0.0358, 0.0399, -0.0389, -1.8319, -0.0169, 0.7686, 0.0015, -0.1257, 0.0, -0.2404, 0.1988, 0.0716, 0.0708, 0.2678, 0.0645, -0.0401, -0.1178, -0.1969, 0.0048, 0.15, 0.2733, -0.0206, 0.0, 0.1601, -0.0182, -0.4907, -1.4083, 0.005, 0.0, 0.0031, 0.2245, 0.8563, 0.015, -0.1716, 0.0541, 0.3637, -0.6277, -1.4259, -0.084, 0.0402, 0.0185, -0.0544, -0.3481, 0.0, -0.1061, -0.3527, 0.0955, 0.0384, 0.0764, 0.216, 0.1156, -1.0859, 0.0502, -0.9704, -0.0042, -0.0297, 2.075, 0.2135, -0.0291, -6.9157, 0.273, 0.124, 0.1181, 0.1887, 0.0379, 0.4675, -0.455, 0.2284, 0.0891, -0.0458, -0.0125, 0.0449, 0.3143, 0.0665, -0.2291, 1.0414, 0.9237, 0.0, 0.128, 0.0136, 0.0506, 0.0429, 0.7913, -0.0325, 0.0441, 0.035, -0.1893, 0.1672, -0.0886, -0.2318, -0.0021, -0.0581, 0.0439, 0.0015, 0.3771, 0.1159, 0.6538, 0.0405, -0.1934, 0.0916, 0.2095, 0.0007, -0.2184, 0.0538, -0.0106, 0.0119, 0.0, -0.0023, -0.0072, 0.004, -0.0727, 0.029, -0.0902, -0.0687, 0.1018, 0.0121, 0.0881, 0.0805, 0.1566, -0.0083, -0.0257, 0.1075, -0.0843, -0.3813, 0.0178, 0.2111, -0.1212, -0.247, 0.2731, -0.047, -0.0764, -0.0805, 0.7717, -0.2835, 0.0894, -0.062, 0.0896, -0.1661, 0.9059, 0.2237, 0.0226, 0.138, 0.0764, 0.0443, 0.0442, -0.122, 0.2067, 0.0489, 0.6113, 0.2401, 0.0151, 2.2013, 0.0251, -0.2561, -0.015, 0.0067, 0.0797, 0.0494, 0.0084, 0.3466, 0.0814, 0.0, -0.6738, -0.6768, 0.0827, 0.0056, 0.0697, -3.1122, 0.0219, -0.0071, 0.0777, -0.3111, -0.5679, 0.221, 0.0622, -0.3238, 0.0, -2.9658, 0.0516, 0.1201, -0.08, 0.1133, 0.0038, -3.3991, -0.3971, -0.1151, 0.0468, 0.0, -0.2772, 0.9004, -0.0018, -0.1508, 0.087, 0.0019, 0.0, -0.0256, 0.1126, 0.2238, -0.3768, 0.0786, -0.2411, 0.6065, 0.0351, 0.0154, 0.0448, -0.0094, 0.0, -0.3001, -0.0116, -0.1904, -0.6749, 0.0745, 0.0543, 0.0406, 0.2026, -0.558, 0.1274, 0.0594, 0.0861, -0.7835, 0.0557, 0.3292, -0.007, 0.079, -0.6294, -0.0435, -0.1618, -0.0022, 0.0296, 0.2492, 0.7775, 0.0, 0.0, 0.161, 0.065, 0.0392, 0.0129, 0.0097, 0.952, -0.0078, -0.0134, -0.0334, 0.0459, -0.4683, 0.0128, 0.0397, 0.0153, -0.1197, 0.179, 0.3153, 0.0459, 0.0739, -0.011, 0.1097, -0.0746, 0.053, 0.0318, 0.0254, 0.0979, 0.2416, 4.5933, 0.0694, 0.0355, 0.1269, 0.0161, 0.2689, 0.0012, 0.0324, -0.3692, -0.0094, -0.1146, 0.007, 0.0004, -2.2576, -0.0835, 0.0378, 0.0, 0.3185, -0.0097, 0.0454, 0.1843, -0.0512, 0.1319, 0.054, 0.0178, -0.4134, 0.0166, 0.071, -0.0834, 0.011, -0.4026, 0.0334, -0.1522, 0.0139, -0.0015, 0.1127, 0.3747, -1.4609, 0.0426, 0.0, 0.0972, -0.0739, 0.0914, 0.3428, 0.2005, -0.1446, 0.5425, 0.0245, -0.01, 0.0049, 0.0139, 0.0917, -0.0143, -1.99, -1.673, -0.0456, -0.082, 0.0655, -0.4588, -0.0243, 0.1273, -0.1005, 0.0241, 0.1058, -0.4339, -0.0091, 0.3575, -0.4043, -1.8425, 0.0369, -1.1973, -0.2839, -0.0207, 0.0422, 0.0195, 0.0291, -0.2696, -0.0795, -0.0559, -0.0526, -0.0716, -0.0727, 0.0, -0.0152, -0.2192, -0.0003, 0.3815, -0.0552, 0.1851, -0.1564, 0.0314, 0.0031, -0.0294, -0.0068, 0.1058, 0.0, -0.0053, 0.4053, -0.0875, -0.241, -0.0746, 0.6273, -0.0906, 1.0, 0.0167, -0.0474, -0.0376, 0.1088, 0.2529, 0.0151, 0.0329, -0.1616, -0.0086, -1.9281, 0.0214, 0.0778, -0.0511, 0.0343, 1.8337, -0.0218, -0.2603, -0.0557, -0.0378, 0.2697, 0.5145, 0.2246, 0.4212, -0.0888, 0.4487, 0.1081, -1.3562, 0.0279, 0.0722, 0.1124, -0.012, 0.0152, 0.0535, -1.0868, 0.0079, -0.002, 0.1946, -2.5675, 0.0581, -1.839, 0.1503, -0.0589, 0.0424, 0.0, -10.7836, 0.1647, -0.1176, 0.2103, -0.0984, -0.1016, 0.0326, 0.1704, -0.18, -0.1518, 0.0579, -0.3528, -0.1066, -0.6001, -0.3866, -0.1263, 0.0, -0.0587, 0.2838, 0.1446, 0.1438, 0.0188, -0.0199, -0.0092, -0.0304, 0.5622, 0.0, 0.0621, 0.0219, 0.1084, -0.0199, 0.1962, -0.3047, 0.068, 0.1212, 2.415, 0.0886, 1.3855, -0.0491, 0.0, 0.1259, 0.5206, 0.1032, 0.1958, -0.267, 0.0911, -0.2332, 0.0101, 0.0717, -0.1511, 0.0443, -7.8157, 0.0341, 0.0793, -0.0204, -0.2886, 0.0686, 0.0961, 0.1124, 0.1376, 0.0372, 0.0408, 1.2258, 0.2762, 0.3117, 0.058, -0.3049, -0.3089, -0.2043, -0.0833, -0.3364, 0.1305, 0.0426, 0.4698, 0.0, 0.0054, 0.1646, 0.2091, 0.0332, 0.0027, -0.0154, -11.3, 0.0, -0.177, -0.1357, 0.1069, -0.0184, 0.1145, -0.0214, 0.0, -2.291, 0.299, 0.2883, 0.1866, 0.132, 0.1853, 0.1059, -0.0618, -0.3923, 0.0773, 0.0117, -0.1723, 0.1077, 0.8598, -0.0985, 0.0591, 0.0391, 0.122, 0.1921, 0.3176, 0.2305, -0.0549, 0.1324, 0.052, 1.9007, 0.0772, 0.1964, 0.0514, -0.0785, 0.0998, 0.0157, 0.0982, -0.0893, 0.0994, -0.2279, 0.077, 0.1523, 0.0, 0.0782, -0.4807, 0.0802, 0.1837, 0.1035, -0.6414, 0.0033, 0.4228, 0.1865, 0.0167, -0.0641, 0.0646, 0.2467, 0.1696, -0.5903, -0.1403, -3.2498, 0.1289, 0.0399, 0.2237, 0.0164, 0.0, 0.0498, 0.2828, 0.1215, 0.0, -0.7833, -0.1035, -0.1161, 0.2684, 0.0676, 0.0055, 0.3083, 0.0554, -0.0525, 0.0418, -0.2158, -0.0584, -0.0561, 0.2054, -0.0938, 0.0779, 0.0346, 0.0134, 0.3237, 0.4258, -0.2595, -0.4582, 0.0823, -0.0129, -0.0028, -0.8733, -0.0083, 0.4841, -0.738, 0.0287, -1.4849, -0.048, 0.3008, -0.1078, 0.2032, -0.1036, -0.0005, 0.042, 1.4334, 0.5312, 0.0051, -0.0094, 0.0, -0.1056, -0.518, 7.5158, 0.0954, 0.1868, -0.0075, 0.0359, 0.0, -0.1006, 0.1228, 0.0206, -0.0098, -0.0678, 0.0548, -0.0611, 0.071, -0.0035, 0.0239, 0.0451, 0.5574, -0.2528, 0.0801, 0.0, -0.0313, 0.0134, -0.3103, 0.0277, 0.035, 0.0347, -0.0691, 0.0362, 0.2953, -0.0266, 0.0878, 0.0498, -0.1005, 0.0335, -0.062, -0.5677, -0.2707, 0.1286, -0.0206, 0.0662, 0.0165, -0.0466, 0.0, 0.1562, 0.2842, -2.5334, -0.1248, 1.2625, -0.8378, -0.0326, 0.049, 0.028, -0.0588, 0.036, -0.0456, 0.0092, -0.0639, -0.1594, -0.2735, 0.2166, 0.2619, 0.0556, 0.2938, 0.1623, 0.0894, 0.0092, -0.6578, -0.34, -0.0282, 0.0622, 0.0496, 0.0241, 1.684, 0.0, 0.1099, -0.0133, 0.2358, 0.8354, -0.1681, -0.013, 0.5792, -0.0257, -0.3567, -0.0267, 0.0, -0.0502, 0.0, -0.2146, 0.8534, 0.372, -0.094, -0.3116, 0.1089, -0.0584, 0.0396, 0.1286, 0.0557, 0.0634, -0.1025, 0.159, -0.1696, 0.0767, -0.4479, 0.0055, -0.433, 0.0, -0.0859, -0.2113, 0.0, -0.6982, -0.1197, -0.2092, 1.4096, -0.119, -0.2223, -0.2605, -0.2978, -0.0551, -0.2005, 0.101, 0.1773, -0.0352, 0.0796, 0.0009, -0.0853, 0.0691, 0.0484, -0.074, -0.1382, 0.1529, 0.1644, 0.0154, 0.0025, 0.0243, 0.0567, 0.0082, 0.0256, -0.029, 0.1384, 0.0543, -0.1773, -0.0536, -0.0353, -0.1932, -0.0218, 0.0065, 0.8539, -0.6017, -0.279, 0.1084, 0.0064, 0.1142, -0.0711, -0.5377, -0.0058, -0.0366, 0.0064, 0.0, -0.0231, 0.1668, 0.2658, -0.4592, -0.008, -0.0873, 0.5269, 0.0431, 0.0002, 0.6, -3.51, 0.1273, 0.0121, -0.0396, 0.8191, -0.1079, -0.742, 0.952, 0.4493, 0.2177, 0.4307, 1.2573, 0.0925, -0.1154, 0.3111, 0.0825, 0.0498, 0.0273, -0.017, -0.0247, 0.1136, -0.2821, 0.0888, -0.0149, -0.073, 0.0764, 0.181, 0.0496, 0.0537, 0.0, 0.0, -0.0685, 0.0928, 0.3175, 0.3218, 0.1928, 0.0511, -0.2208, 0.0136, -0.1041, 0.097, 0.0442, 0.0932, 0.0924, -0.0247, 0.0548, 0.0494, -0.6459, 0.0375, -0.1297, -0.0087, 0.504, 0.1201, -0.4546, -0.0642, 2.2601, 0.1147, -0.2206, -0.1461, -0.0576, -0.0104, -0.2947, -0.0985, 0.0719, -1.094, 1.301, 0.3381, 0.0, -0.0525, 0.0, 0.0, 1.0664, 0.6717, 0.0499, -0.023, -0.0871, 0.1709, 0.1897, -0.1243, 0.0, 0.1226, -0.1146, 0.1326, -1.3062, 0.0, 0.0, 0.0131, 0.1841, 0.1194, 0.1603, 0.0598, 0.0, -0.1329, -0.0193, -0.5, 0.0, -0.0077, 0.1115, 0.2395, -21.7217, -0.0033, 0.0961, 0.1338, 0.0, 0.0927, 0.0489, 0.1443, 0.016, 0.0509, 0.06, 0.1721, -0.0267, 0.1001, 0.2076, 0.0146, -0.0462, -0.0465, 0.0, 0.0479, -0.1391, -0.124, -0.0026, 2.4263, -0.0558, 0.0246, -0.0374, -0.0398, 0.053, -0.0662, -0.1009, -0.215, 0.0375, 0.0319, -0.6887, 0.028, -0.0811, 0.042, 0.1141, 0.049, 0.0343, 0.1013, 0.003, -0.0275, 0.116, -0.0753, 0.0268, -0.0268, 0.1237, 0.2455, 0.0432, 0.0308, 0.0711, -0.0711, -0.2513, 0.1415, -0.1823, 0.1037, 0.0037, -0.0302, 0.1303, -0.0241, -0.0013, 0.0019, 0.0802, 0.0138, -0.1112, -0.0335, 0.0367, -0.0559, 0.0516, 0.0544, -0.0178, 1.8044, 0.032, 0.0439, 0.0015, -0.0043, 0.0542, -0.0575, -0.1147, -0.008, -0.1425, 4.2058, 0.021, -0.1334, 0.055, -0.3762, -0.0193, 0.8275, 0.029, 0.1317, 0.0334, 0.0318, -0.0366, 0.007, 0.0733, 0.032, -0.0069, -0.7193, 0.0708, 0.0153, 0.602, 0.0862, 0.0512, -1.4, 0.0906, 0.1667, -0.0217, -0.2668, 0.0542, -0.0072, -3.5359, -0.1875, -0.0576, -0.5785, 0.0526, -0.0915, 0.0886, -0.1985, -0.1568, -0.0315, -0.0353, -0.0315, 0.0639, -0.0828, 0.0, -0.4572, -1.652, -0.1746, -0.0039, 0.1006, 0.1333, 0.0751, -0.0726, 0.0, 0.0242, -1.0669, 0.0972, 0.1515, -0.1625, 0.0111, 0.1693, 0.2044, -0.3735, -1.0509, -0.0035, 0.2363, 0.0, -0.1485, 0.1521, 0.0691, 0.0196, -0.6201, -0.0344, 0.0391, 0.1435, 0.0373, 0.0387, -0.0713, -0.0099, 0.1405, -1.167, 0.0798, 0.0281, 0.0, 0.049, 0.362, 0.6249, 0.0942, 0.0599, 0.0011, 0.1472, 0.1439, 0.0462, 0.0948, 0.0451, 0.0953, -3.0623, 0.0132, 0.0325, -0.7504, 0.0011, -0.0412, 0.0403, -0.7909, 0.1287, -0.0011, 0.0532, 0.0524, 0.0256, -1.8048, -0.2707, -0.2612, -0.2597, 0.1092, 0.0727, 0.0013, -0.0974, -0.0112, -15.1529, 0.0254, 0.1587, 0.0195, 0.0704, 0.1635, 0.0767, 0.1438, 0.1166, 0.0, -0.0941, 0.1424, 0.0047, -0.0016, 0.0, 0.1057, 0.0, 0.1628, 0.0768, 0.0482, 0.16, -0.0367, 0.0979, 0.0, 0.0805, 0.0901, 0.1074, 0.1067, 0.0972, 0.0011, 0.0094, 0.0978, -0.0045, 0.1075, 0.6799, -0.0239, 0.0, 0.0229, 0.0147, -0.7349, 0.0796, 0.0743, -1.8765, 2.3308, -0.2978, 0.064, 0.0419, 0.6404, 0.0337, -0.0386, -0.0691, 0.0256, 0.0049, -0.1057, 0.1493, -0.1599, -0.6822, -0.0918, -0.2787, 0.1441, 0.0113, 0.0408, 0.0165, -0.0639, 0.0247, 0.7337, 0.0764, 0.0511, -0.0352, -0.0412, 0.2108, 0.2194, 0.1736, 0.0, 0.0, 0.0575, -0.0787, 0.3576, -0.1448, 1.619, 0.0846, 0.0281, -0.2254, 0.1184, 0.1574, 0.7698, 2.8205, -0.0665, -0.0645, 0.1862, 2.42, -0.0018, -0.1022, 0.1838, 0.4473, -0.1223, 0.0477, -0.1846, -0.0246, 0.0175, 0.0519, -0.0412, -0.0268, -0.0363, -0.4029, 0.0807, 0.0038, 0.0148, 0.3788, 0.043, 0.0221, 3.1421, -0.0383, -0.0423, 0.6758, 0.0235, 0.0298, 0.0067, -0.0354, -0.1885, 0.0421, 0.0644, -0.786, -0.5083, 0.0127, -0.2423, -0.0073, -0.0027, 0.1547, -0.0102, 0.0861, -0.0397, 0.0, -0.956, -0.0275, 0.0827, 0.1358, 0.1065, -0.0559, -0.0624, 0.1989, 0.0, 0.1143, -0.0797, -0.0796, 0.0761, -0.1471, -0.1559, -0.058, -0.0977, 3.9683, -0.0899, 0.1549, -1.5962, 0.0949, 0.0, -4.3501, 0.0065, -0.1246, 0.0119, 11.3333, -0.3629, 0.1167, 0.4728, 0.0411, -0.0049, -0.0333, -0.1347, 0.1088, 0.0063, 0.059, -0.1192, 0.1064, -0.0279, 0.1534, -0.2082, 0.0797, 0.1176, 0.0869, -0.138, 1.2833, -0.0753, 0.0254, -1.5411, 0.0199, -0.0576, -0.0521, 0.0668, 0.0711, 0.2741, -3.155, -6.47, 0.2888, -0.0741, 0.0907, 0.1183, -2.1361, -0.6568, 0.0488, 0.1329, 1.4391, 0.0179, 0.1033, 0.1627, -0.1073, 0.0707, 0.0066, -0.0757, 0.0113, 0.0835, -0.0089, -0.3372, 0.5352, -4.4544, 0.0805, 0.1445, -0.0516, -0.0123, 0.0, 0.1728, 0.1312, 0.0312, 0.0331, -0.0491, 0.1301, -0.0295, 1.3334, 0.1429, 0.0944, 0.0766, 0.2373, -5.281, -0.467, 0.0059, 0.2843, 0.115, 0.0966, 0.0579, -0.1106, -0.0588, -0.2226, -1.6167, 0.017, -0.0313, -0.1207, 0.0373, 0.0456, 0.0214, -0.0804, -0.029, -0.0997, 0.01, 0.0, 0.112, 0.3536, -0.3379, -0.248, -0.0615, 0.0398, -0.4517, -0.1794, 0.0113, -0.1597, 0.6093, 0.0939, -0.0332, 0.0037, -0.1888, -0.3343, 0.0874, -0.3159, 0.0186, -0.0676, 0.1461, 0.1923, 0.0, 0.0, 0.0792, 0.9738, 0.5293, 0.2667, 0.0377, 0.0651, 0.0, -0.8976, 0.0775, 0.0, 0.0813, -0.0955, 0.0, 0.0341, 0.0, -0.1752, -2.4472, -0.2185, 0.0, 0.0, -2.2644, 0.0805, -0.1403, -0.1478, -0.0776, 0.0586, -0.0852, 0.0, 0.188, 0.0444, 1.1357, -0.016, -0.1226, -0.0935, 0.033, -0.0087, 0.3016, -0.0986, -0.0527, 0.101, 0.0, -0.2575, 0.3947, -0.8848, 0.2399, -2.923, 0.0145, -0.0673, -0.0775, 0.1476, 0.138, -0.3583, 0.0075, 0.2954, -0.0233, 1.6189, -0.3434, 0.0293, 0.0764, 0.0418, -0.0012, -0.0016, -0.6276, 0.1367, -0.0305, 0.16, -0.0382, 0.0625, -1.6301, 0.0311, -0.0013, -0.0858, 0.0725, -0.0744, -0.0202, 0.3694, 0.3496, -0.0612, -0.0751, 0.0545, -0.2258, -0.4055, 0.4332, 0.0125, 0.0796, 0.0235, 0.1189, 0.0704, 0.1501, -0.1292, 0.0851, -0.0549, 0.0425, 1.3626, 0.0, 0.0022, 0.0, 0.0, -0.0389, -0.2287, -0.0462, 0.0267, 0.0849, 0.0604, 1.4032, -0.0386, -0.1349, 0.0373, -0.2605, -0.1625, -0.0716, 0.0708, -0.0387, 0.0864, -0.1234, -0.0539, 0.1498, 0.0, 0.0409, 0.0631, 0.0344, 0.4883, 0.0854, 0.0439, 0.0542, -0.5036, 0.0405, 0.1354, 0.4964, -0.8693, 0.0214, -0.8835, 0.0097, 0.3306, -0.012, -0.0027, -0.0422, 0.0, -0.2098, -0.0296, -0.0472, 0.0, -0.0801, -0.0168, -0.1681, -0.068, 0.0053, -0.3215, -0.1943, -0.2329, 0.0198, -0.0056, -0.009, 2.6696, -0.0941, 0.0717, -0.4077, -0.0532, -0.6308, 0.0439, 0.077, 0.0215, 0.1929, 0.2826, -0.0339, 0.1008, -0.017, -0.0105, 0.1004, 15.48, 0.0818, -0.0216, 0.1307, -0.0743, -0.2362, 0.1316, 0.3191, -2.0483, -0.4125, 0.5054, 0.1031, 0.0401, 0.0814, 0.2831, 0.0129, -0.07, 0.0189, 0.0605, 6.0597, -0.0057, 0.09, 0.0842, 0.18, 0.0596, 0.1318, 0.0793, -0.3288, 0.6744, 0.3307, 0.0381, 0.0071, -0.7945, -0.0158, 0.2767, -0.0353, 0.1676, 0.4312, -7.0161, 0.4011, 0.6565, -0.1411, 0.1631, 0.2286, 1.464, -0.0098, 0.0509, -0.0044, -0.0363, 0.0, 0.0, 0.0182, -0.5586, -0.4569, 0.1147, 0.152, 0.0342, 0.6807, 0.2521, -0.1182, -0.1978, 0.0795, 0.0234, -0.0423, 0.0167, 0.1803, 0.4497, 0.4982, -0.0558, 0.7706, -0.0059, -3.5754, 0.6358, -0.4288, 0.0, -0.0364, 0.0125, -0.0181, -0.0299, -0.1188, 0.0282, 0.0, -0.3011, -0.6818, -0.0238, 0.1729, -0.0234, -0.9667, -5.7533, -0.2585, 0.0228, -1.2416, -0.1155, 0.0, 0.004, 0.0, 0.0712, 0.5574, 1.6733, 2.1109, -0.2012, -0.3457, -0.0189, 0.046, 0.0, 0.2444, -0.3487, 0.0555, 0.0713, -0.0066, -0.0471, -0.05, -0.2751, 0.1379, 0.0046, 0.0895, -0.0569, 0.163, 0.1465, 0.062, 0.0, 0.0109, 0.1087, -0.1028, -0.139, 0.0717, 7.0488, -0.0027, 0.3364, 0.0861, -0.0137, 0.0329, 0.0631, 0.0969, 0.1641, -0.0135, 0.1248, -0.0492, 0.2583, 0.1707, -0.0032, 0.0102, 0.0561, -0.194, 0.0318, -0.0474, 0.5754, 0.0453, 0.1381, -0.0011, -0.0184, -0.1042, 0.157, 0.0985, 0.0236, 0.0362, 0.0212, -0.0038, -0.0593, 0.2615, 0.1746, 0.6963, 0.0911, 0.0651, -0.1374, 0.0, -1.0304, -0.2807, -0.0456, -0.0626, -0.1437, 0.0, 0.0, -0.1176, 0.021, 0.0226, 0.0629, -0.109, -0.0378, -0.0005, 0.0, -0.1126, -0.1061, 0.0875, 0.4849, 0.4689, -0.1303, 0.0383, -0.3372, -0.58, 0.0, -0.1796, -0.0387, 0.0757, 0.1295, 0.0702, -0.007, -0.0852, 0.0348, 0.0778, -0.2484, -0.6247, -0.1854, -3.7862, -0.0584, -0.0817, -0.3805, 0.0, -0.8545, 2.0528, -0.1544, -0.1246, 0.0325, -0.0246, 0.0061, -0.8178, 0.0, -6.7389, 0.0, -0.8301, 0.0678, -0.1184, -0.0899, -0.0729, -0.0868, 0.0354, -0.0445, -1.0479, -0.0736, 0.0051, 0.0241, 0.0414, 1.7358, -0.514, 0.0, -0.0676, -0.0146, 0.039, 0.007, -0.0132, -0.1002, 0.0086, -0.0438, -0.1356, -1.6524, -0.0196, 0.4789, -0.0003, -0.0349, -0.1962, -0.0312, -0.0912, -0.3146, -0.0286, 0.1949, 0.5067, 0.0107, 0.0161, 1.8582, 0.0092, 2.8858, 0.1396, -0.1394, -0.0127, -0.0178, -0.0283, -2.8949, -0.0229, -0.4079, -0.0764, 0.0, -0.0195, 0.0, 0.0014, -0.5117, 0.0345, 0.0712, 0.0, -0.2432, -0.0814, 0.0, -0.0642, -0.0637, -0.0778, 0.0447, 0.018, -0.5602, -0.1044, -0.3912, -0.1946, 0.1992, 0.1508, 0.076, 0.1977, -0.1057, -1.8354, 0.1329, 0.0361, -0.2218, 0.0531, 0.1329, -0.0042, 0.0, 0.0, -0.4153, -0.0416, -0.3368, -0.087, -0.0216, 0.5724, 0.0265, 0.008, 0.0563, -0.0769, 0.0536, -0.0766, -0.0518, -0.1588, 0.1907, 0.5113, -2.2853, -0.2619, 1.1412, 0.0426, -1.3122, 0.2193, -0.0635, -0.4304, -0.8859, -0.0258, -0.0679, -0.0017, 0.0, 0.2285, 0.0, -0.0243, 0.216, 0.064, 0.1045, -0.3199, 0.088, 0.0633, 0.1682, -0.0011, -1.1984, 0.066, 0.0, -0.0704, 0.068, -0.0233, 0.0, 0.0918, 0.0, 0.0352, 0.2585, 1.0954, -0.0441, -0.1408, 0.4517, 0.0109, 0.0768, -0.043, 0.8559, -0.0383, -0.0815, -0.0222, -0.1023, 3.0861, 0.0193, -0.0011, -0.0846, -0.0471, -0.0497, -0.2519, 0.0354, 0.0396, 0.4371, 0.2918, -0.1008, -0.0947, 0.1048, -0.0771, -0.8294, -0.1263, 0.0585, -0.2548, 0.0517, -0.1734, 0.6297, 0.1069, 0.0, -0.0634, -0.0616, -0.0488, 0.5272, -0.0691, 0.0181, -0.0201, 0.0, -0.6395, 0.0, -0.0554, -0.3128, 0.0, 0.0865, -0.0764, 0.0114, 0.0106, -0.1358, -0.0792, -0.0117, 0.1425, -0.0003, -0.7507, -0.1014, 0.0, 0.0, -0.1043, 0.127, 0.139, -0.773, -0.0715, -0.189, -0.1557, -0.0372, -0.0731, 0.0883, -0.0896, 0.0606, -0.0639, 0.0248, -0.0969, 0.2594, -0.0074, -0.036, -0.0242, 0.124, 0.022, 0.9223, -0.0905, 0.0876, -0.4074, -0.1036, 0.0563, 0.0058, -0.0268, 0.0086, -0.2957, -0.3777, -1.0272, 0.3857, 0.2048, -0.0065, 0.0, 0.0308, -0.1936, 0.018, -0.3296, -0.0266, 5.3658, -0.0036, -1.8638, -0.0966, 0.0242, 0.0026, -0.146, -2.3246, -0.1017, 0.0054, 0.0, 0.115, -0.0037, -0.0138, 0.0152, 0.0146, -0.0552, 0.2839, 0.0155, 0.3157, 0.3397, -0.0705, 1.2037, -0.0105, 0.0, 0.0077, -0.0125, -0.0076, 0.0518, -0.2506, 0.0, -4.585, -18.4733, -0.1222, -0.379, 0.1077, 0.0468, -0.0955, 0.6846, -1.153, 0.0, -0.0725, 0.0, 0.0, -0.2733, -0.63, -0.0392, 0.3416, 0.1213, 0.0835, 0.0261, 0.0118, -0.0029, 0.0021, -0.5834, 1.01, -0.2686, -0.4501, -0.0984, -0.3277, 0.2158, -0.5209, 0.2267, 0.0891, -1.7752, 0.0439, 0.0181, -0.0169, -0.0346, 0.1996, -0.0802, 0.0989, 0.0637, 0.1759, 0.0065, 0.0455, -0.2883, -0.0535, 0.0, -0.0622, -0.0414, 0.0701, -0.4227, 0.0273, -0.0309, 0.0, 0.276, -0.1753, 0.0, 0.3511, 0.3202, -0.1181, -0.0662, -0.0313, 0.0, 0.1074, -0.0086, -0.0631, 0.0, -0.0052, 0.4909, 0.3526, -0.0514, -0.0471, 0.1006, 0.0, 0.0722, 0.1095, -0.0295, 0.1709, -0.356, 1.692, -0.0173, 0.0572, 0.0, -0.0472, 0.0919, 0.3161, -0.0657, 0.0766, 0.096, 0.0177, 0.0645, 0.3927, -0.0828, 0.1081, 0.4014, -0.46, -0.0187, -0.0769, 0.0311, 0.0495, 0.0569, 0.0972, 0.1133, -1.0969, 1.0014, 0.0425, -0.0421, 0.0079, 0.0275, 0.1502, -1.6837, 0.146, 0.0791, -1.5368, 0.1909, -0.7521, 0.6246, 0.1745, 0.0, 0.2341, -0.1662, 0.0977, 0.04, 0.0164, 0.0602, 0.0242, 0.4433, 0.0246, 0.0, 0.0481, -0.0, -0.0077, 0.0078, 0.1966, 0.2672, 0.0739, -0.0217, 0.0036, 0.2681, 0.0635, -0.0078, 0.0186, -0.968, -0.0045, -0.1261, -0.184, -0.1198, 0.5765, 0.0389, -0.0213, 0.5803, 0.0, -0.0691, -0.0273, 1.2126, -0.1226, 0.0, -1.65, 0.1294, 0.1221, 0.2772, 0.5947, 0.3786, 0.0, 0.8633, -0.0653, -0.0982, -0.1096, -2.7374, 0.0412, 0.0782, 0.2438, 0.0348, 0.0926, 0.1258, 0.0112, 0.0776, 0.1065, -0.0313, -0.2452, 0.1279, -0.2135, -0.0221, 0.0459, 0.2674, 0.1995, 0.1679, 0.32, 0.0344, 0.0324, 0.2107, 0.0746, -1.2369, 0.0516, -0.0911, 0.0225, 0.0956, 0.0663, -0.1479, 0.1526, -0.0155, -0.1126, -0.0159, 0.0285, -9.8542, -1.0602, 0.0567, 0.0668, 0.0226, 0.0171, 0.0, 0.1293, -0.8213, -1.0079, 0.0693, 0.1234, 0.0742, 0.6177, 0.0179, -0.0774, 0.0611, -0.1821, -0.1646, 0.9485, 0.097, 0.0138, 0.0827, 0.2615, -0.4437, 0.0772, 0.1479, -0.0899, 0.0687, -0.0232, -1.8621, -0.0204, -0.1879, 0.1284, 0.0839, 0.1066, -0.0433, -1.5539, 0.0369, 0.1666, 0.0688, 0.4148, 0.0987, -0.0725, 0.0, -0.514, -0.0705, 0.0017, -1.3133, 0.012, 0.0949, -0.0212, 0.0172, 0.0, 0.071, 0.0, 0.0, -0.3691, 0.1179, -0.0028, -0.1193, 0.0457, 0.0, 0.0, -0.0291, -0.024, 0.091, 0.101, 0.016, 0.0677, -0.0065, -0.154, -0.0977, -0.0868, -0.1894, -0.0357, -1.091, -0.0091, 0.1656, -0.1216, 0.0774, 0.1444, 0.0258, 0.0958, -0.1635, -0.0635, -0.3288, -0.0174, -0.4217, 0.094, 0.0108, 0.1188, 0.2642, -0.6614, 0.0541, 0.1336, 0.2466, -0.0506, 0.0057, 0.0227, 0.0408, 0.1191, 0.0711, 0.0773, 0.0739, 0.058, 0.5262, 0.0811, -0.0992, 0.4614, 0.0447, 0.2815, 0.0015, -0.2681, 0.2296, -0.0082, 0.2825, 0.0733, 0.0641, -0.5478, 0.1253, 0.0807, 0.0662, 0.1376, 0.47, -0.197, -0.261, -0.0104, 0.0332, -0.67, -0.0292, -0.0005, 0.0338, -0.2256, 0.1111, 0.0846, 0.0157, 0.5021, 0.1386, 0.2563, -0.0096, -0.0512, -0.0782, 0.0293, -0.009, -0.0303, 0.0, 0.0166, 0.1248, -0.2075, 0.095, 0.0636, 0.1483, 0.1643, 0.3695, 0.0754, 0.5145, 0.1275, -19.8658, 0.0032, -0.7433, -0.0367, -0.1603, 0.0264, 0.0409, 0.0126, -0.8952, 0.0446, -0.1076, 0.141, 0.0357, -0.02, -0.0825, 0.2087, -0.0012, 0.0954, 0.2078, -0.0235, 0.0687, 0.0, -0.9363, 0.0718, 0.7257, -0.0009, 0.2019, -0.0389, 0.2425, -0.1571, -0.1706, 0.0641, 0.0295, 1.5247, 0.1719, 0.5664, -0.1868, 0.1039, 1.063, 1.6191, -0.0556, 0.5517, -0.0731, 0.0369, 0.0, 0.0, 0.0598, 0.0624, 0.0429, 0.1134, -0.0091, 0.1241, 0.007, 0.0, 0.0785, -0.0085, -3.1459, 0.0777, -0.0305, 0.137, -0.0956, 0.2238, 0.3372, 0.4225, 0.3167, 0.0, 0.0327, 0.1718, 0.1026, 0.0, -0.0484, -0.075, 0.4619, 0.0, -0.0407, 0.0084, 0.3845, 0.0837, 0.1804, -0.1917, 0.1173, -4.0691, -0.2887, -0.0337, 0.1062, 0.0877, 0.0235, -0.0461, -0.0316, 0.0772, 0.0242, 0.1148, 0.2313, 0.0519, -0.7632, -0.6615, 0.1676, -0.0797, 0.1333, 0.0361, 0.0541, -0.0776, 0.1009, -0.8004, -0.1457, -0.6493, -0.13, 0.0462, 0.1025, 0.1025, 0.0, 0.0909, 0.0579, 0.0295, 1.1087, 0.0, -0.0725, -0.0488, 0.0, 0.1108, 0.0, 0.1535, -0.0183, 0.0042, -0.7248, 0.5675, 0.0595, -0.2987, 0.1023, -0.2645, 0.0441, -0.3253, -0.0917, -0.0279, -0.0826, -0.0744, -0.0015, -0.081, 0.0362, 0.0293, 1.8371, -0.1908, 0.0113, 0.0624, 0.1806, 0.0422, 0.0418, 0.0438, -3.3958, 0.0594, -0.1003, 0.0891, 0.0081, -0.0238, 0.0515, -0.0128, 0.0246, -0.057, 0.0, -0.003, 0.4108, -0.0457, -0.0143, 0.0479, -0.0355, 0.049, -0.0007, -0.082, 0.0842, -0.0488, 0.0008, -0.0785, -0.0077, -0.0203, -0.0414, 0.0615, -0.0471, 0.0553, 0.0325, -1.3183, 0.0097, 2.6418, 0.0482, 8.015, -0.6187, 0.0, 0.049, 0.0124, 0.0109, 0.1958, 0.0654, 0.0015, -0.0406, -0.1938, -0.1988, 0.9623, -0.0248, 0.0761, -0.0304, -0.092, -0.0088, -0.0152, 0.0132, 0.1224, 0.0435, -0.0271, 0.0, -0.0544, 0.216, 0.0, -0.0575, 0.1013, 0.0363, 0.0001, 0.0171, -0.0749, 0.632, -0.0106, 0.0385, 0.0386, -0.0612, 0.5967, -0.0137, 0.2489, 0.2144, -1.3375, 0.0969, 0.3344, 0.0039, -0.0323, 0.4079, 0.0534, 0.0184, -0.075, -0.56, 0.0498, -2.87, 4.825, -0.0962, 0.0744, 0.0667, -0.0146, -0.1, 1.0976, -0.0865, 0.0216, -0.0953, 0.1867, 0.0086, -0.7612, 0.0202, -0.0093, -0.2061, -0.0313, 0.018, 0.0647, 0.1973, -0.0431, -0.3359, 0.1557, -0.0133, 0.0401, 0.0338, 0.0304, 0.0489, 0.0485, 0.1807, 0.187, 0.0014, 0.0602, 0.0654, 0.0416, 0.0523, -0.0004, -0.0018, 0.0283, -0.0515, 0.2596, 0.7928, -0.1724, -0.0573, 0.0, -0.3463, 0.0608, -0.927, 0.0224, -0.0763, 0.057, 0.0766, -0.0545, -0.0503, 0.06, -0.1071, 0.4962, 0.0797, -0.0263, 1.3051, -0.0627, -0.0271, 0.1079, 0.0, 0.0075, 0.0, -0.0227, 0.0, 0.016, -0.2021, -0.1962, 0.1456, 0.1863, 0.3656, 0.2811, -2.002, -0.0038, -2.8825, -0.0678, 0.0556, -0.2509, -8.5175, 0.122, -0.0332, -0.0297, 0.0, 0.0874, -0.1479, -0.0108, -0.1528, -0.1001, -0.0084, -0.0206, 0.0173, 0.4012, 0.1233, -0.7651, 0.0326, 0.0878, -5.0208, -0.0311, 0.0049, 0.0539, -0.0459, -0.0057, 0.0019, 0.1225, 0.2813, 0.0078, -0.5686, 0.2539, 0.0, 0.0684, 0.0295, 0.1095, 0.0194, 0.0643, 0.0321, 0.0, 0.0, 0.22, 0.0784, -0.103, -0.1581, 0.2394, 0.1105, 0.0718, 0.0412, 0.0009, -0.03, -0.0218, -0.1908, 0.5601, 0.0101, 0.0694, 0.0832, 0.157, 0.1735, 0.0526, -0.0906, -0.0166, 0.0163, 0.1484, 0.1405, 0.0405, 0.1247, -0.1144, 0.037, -0.0393, 0.0852, -0.0088, 0.4807, 0.0661, -0.0116, 0.0773, 0.2911, 6.055, -0.006, 0.5792, 0.0515, -0.0412, 0.2227, -0.8426, 0.1152, 0.0408, -1.3531, -6.0243, -0.0393, 4.7143, -0.127, -0.0359, 0.0823, -0.1016, -12.68, 0.0613, -0.1247, 0.0785, 0.2033, -0.0621, 0.0348, -0.0765, 0.0909, 2.245, 2.9658, -0.0249, -0.0962, -2.64, 0.0658, 0.1206, 0.0752, 0.0469, 0.1354, 0.2027, -0.0907, 0.0367, 0.0789, 0.0091, 0.0464, 0.03, 0.035, -0.0634, 0.1963, 0.3265, 0.0133, 0.0454, 0.1197, -0.0589, -0.0838, 0.3468, -0.7535, -0.0402, 0.185, 0.0933, 0.0553, -0.4873, -0.0744, -0.6592, -0.0743, 0.5271, 0.0355, -0.0087, 0.0292, -0.8815, -0.2664, -0.0031, -0.0735, -0.0177, 0.0131, 9.5617, 0.8365, -0.0277, 0.0179, 0.0157, -0.1267, -0.0446, -0.1899, 0.0106, -2.06, -0.4214, -0.3377, 0.0, 0.117, 0.0858, -0.4854, -0.0435, 0.0429, 0.0207, 0.1866, 0.0617, -0.0628, -0.0423, 0.0338, -0.0986, -0.2244, 0.3152, 0.1884, -0.4172, 0.0658, 0.012, -0.0343, -0.0864, 0.2687, -0.0582, -0.0577, 0.1762, -0.0523, 0.0539, 0.0436, -0.0068, -0.1163, 0.1105, -0.0009, 0.012, 0.3631, 0.0034, -0.0355, 0.1723, -0.0369, 0.0826, 0.0348, 0.0293, 0.5292, 1.2449, -0.0135, 0.0014, 0.0714, 0.4106, 0.1087, -0.0687, -0.4595, 0.0213, 0.0345, 0.0067, 0.0036, 0.0309, 0.1378, -0.005, 0.0971, 0.111, 0.1069, -0.0381, -0.5321, 0.9613, 0.0048, 0.1645, -0.042, 0.0624, -0.3419, -0.0511, 0.7971, 0.1431, 0.8588, 0.0182, 0.0252, -0.1425, 0.1063, -0.2318, 0.0173, -0.0041, 0.1117, 0.0325, 0.0866, -0.0256, -0.2865, -0.0775, 0.0275, -5.065, 0.1363, 0.0056, 7.6708, 0.0459, -0.0639, -0.0188, 0.0545, -0.0733, 0.0604, -0.745, 0.0, -0.0433, -0.0184, -0.0338, 0.0945, -0.0289, 0.0, 0.0112, 0.0, 0.043, -0.022, -2.2658, 0.0654, 0.0002, 0.088, -0.0782, 0.1071, 0.3832, -0.0543, -0.9279, -0.0139, 0.1725, 0.0005, 0.8979, -0.0822, 0.0246, -0.0529, -0.0345, -1.6529, -0.2816, -0.0159, 0.0408, 0.1253, -0.1782, 0.1321, 0.0157, 0.1577, 0.011, -0.1062, -0.1805, -0.0345, 0.0764, 5.41, 0.0, -1.5237, 0.1639, 0.08, 0.029, -0.311, 0.0772, 0.0384, 0.0072, 0.0751, 0.0454, 0.0378, -0.0129, -0.2154, 0.0546, 0.102, 0.0589, 0.0804, 0.1204, 0.0569, -0.0143, -0.0208, 0.0527, 0.0046, -0.0679, 0.1533, 0.0382, -1.6373, 0.0143, 0.514, 0.0, -0.1047, -0.0861, 0.0, 0.2372, -0.2896, 0.0001, 0.0368, -0.0363, 0.0881, 0.0013, 0.0275, -0.024, 0.0606, 0.0263, 0.2682, 0.6394, 0.0508, -0.0467, -0.0325, -0.0974, 0.0, 0.0377, 0.1235, 0.4578, 0.1094, 0.0177, -0.08, -0.2867, -0.74, -1.0815, 0.1594, 0.1917, -0.0212, -0.1809, -0.08, 0.2118, 0.044, -0.0045, 0.1502, 0.0, 0.3731, -1.6228, -0.1627, 0.0713, 0.0966, -0.2961, 0.0, 0.1212, 0.1374, 0.0964, 0.0772, -0.2652, 0.2383, 0.1904, 0.0006, -0.0066, 0.0721, 0.0, -0.0059, 0.0253, -0.3838, 0.4952, 0.1012, -0.0246, 0.0, 0.0563, -0.1495, 0.2045, 0.0344, 0.1716, 0.0, -3.3428, -0.0078, 0.2054, 0.0432, -0.0435, -0.0835, 0.4914, 0.0, 0.2183, 0.1045, -0.1062, -0.062, 0.0303, 0.0307, -0.2042, 0.0522, 0.1386, -0.0733, -0.0132, 0.0376, 0.0487, -0.7843, -0.0764, 0.6396, 0.0095, 0.2518, 0.1294, -0.1129, 0.1381, 1.0282, -0.0674, 0.308, -0.0478, 0.0359, 0.0354, 0.3111, 0.0, 0.0495, -0.0108, 0.001, -0.1347, 0.2222, 0.3276, 0.0455, 0.0712, 0.525, 0.7833, 0.0673, 0.0999, 0.0386, 0.1534, -3.3346, -0.038, -0.1767, -0.0012, 0.0331, 0.1181, 0.0414, 0.0012, 0.131, -0.0051, 0.0131, -0.2208, 0.0396, -0.112, -0.0808, -0.0354, 0.0016, 0.0335, -0.0414, 0.3279, 0.0957, 0.0746, 0.0, -0.7483, 0.092, 0.0637, 0.0806, 0.1963, 0.113, 0.0507, 0.0337, -0.0818, -0.1073, 0.0951, 0.0773, 0.2148, 0.0, 0.1445, 0.0, 0.0812, -0.1285, -0.4268, 0.0061, 0.0808, 0.0271, 0.0607, 0.0875, 0.0804, 0.1019, 0.0052, -2.1766, 0.0, 0.0331, 0.012, 0.1001, 0.0555, -0.0114, 0.3415, 0.5904, -0.0138, -0.0085, 0.0518, -0.0862, -0.0031, -0.3853, -0.0219, 0.2547, -0.0175, 0.3273, -0.0704, -0.1067, 0.0508, 0.0535, 0.0273, 0.0039, -0.075, 0.0194, 0.0, 0.2058, 0.0349, -0.0616, -0.0115, 0.0, 0.1542, -0.0093, 0.0394, 0.0599, 0.0167, 0.0758, 0.3427, 0.0067, -0.0129, -0.2968, 0.0076, -0.1154, 0.0048, -0.2574, -0.2611, -0.1697, -0.2283, -0.0319, 0.4308, -0.2986, 0.0, -0.0635, 0.0204, -0.0284, 0.1513, 0.0162, 0.1473, 0.1484, -0.1515, 0.3963, -0.019, 0.0348, -0.0192, -0.0493, -0.2082, 0.0, 0.0216, 0.225, -0.0474, 0.1263, 0.0367, 0.4635, 0.0687, 0.0359, 0.3506, -0.0158, 0.0582, 1.3738, 0.1576, 0.205, 0.0, 0.0205, -0.1889, 0.0066, -0.1074, 0.1176, 0.3713, -0.1447, 0.0, 0.0416, 0.1514, -0.1706, -0.051, 0.0298, -0.3105, 0.0445, -0.2189, 0.0214, -0.1132, 0.0134, 0.2717, 1.2167, -0.0068, 0.4411, 6.3342, -0.2125, 0.759, 0.029, -0.0065, 0.0923, 0.1386, -0.0319, 1.9104, 0.1797, 0.0686, -0.1373, -0.0442, 0.023, 0.0419, 0.046, -0.1142, -0.1115, 0.2691, 0.0481, 0.0624, -0.4857, 0.1702, 0.2788, 0.0583, 0.0801, 0.1167, 0.0714, 0.1984, 0.2195, 0.0023, 0.0, 0.0786, 0.0427, -0.0338, 0.0, 0.4618, 0.1085, 0.2416, 0.2487, 0.1205, -0.108, -0.0055, 0.0526, -0.0068, -0.078, 0.0054, 0.0619, 0.2216, 0.0708, -0.3146, -0.0534, 0.0953, 0.0783, 0.1733, 0.0109, 0.0018, 0.0385, 0.0367, -0.1128, 0.0432, 0.0109, 0.1823, 0.018, 0.0, 0.0557, -0.4091, -0.0596, 0.0, -0.0395, 0.0558, -0.0834, -0.1214, -2.9789, -0.0192, -3.0027, 0.1773, 0.2816, 0.0496, 0.0216, -0.1198, 0.0, -3.0517, -0.0206, -0.085, -0.0716, -0.2161, -0.021, -0.2859, -0.0339, 2.3104, -0.0004, -1.3947, 0.1185, -0.0602, -0.1339, 0.0084, 0.0471, -0.1077, 0.0777, 0.0485, -0.0051, 1.1806, -0.0537, 0.0758, 0.1782, 0.0, 0.0725, -0.0657, -0.0256, 0.3563, 0.7561, 0.1318, 0.0083, -0.5944, 0.1763, -0.0631, -0.0018, -0.0123, 0.0078, -0.4493, 0.019, 0.0334, 0.0, 0.0849, 0.0599, 0.0863, 0.1429, -2.5255, -0.0245, 0.1032, -0.4613, -0.0048, 0.0049, 0.0266, -0.0505, 0.067, -0.0067, 0.066, 0.0301, 0.0233, 0.0, -7.82, -0.1821, -0.0445, 0.0038, 0.1431, -3.581, 0.0419, 0.0218, -0.3755, 0.0088, -0.1055, 0.071, -0.0183, -0.8376, 0.0853, 0.0099, -0.0342, -0.0888, -0.3957, 0.0218, 0.0771, 0.0277, -0.0384, 0.0537, 0.0373, 0.0259, -0.1309, 0.229, 0.0421, -0.7661, -0.0252, 0.0246, 0.026, 0.2604, -0.3069, -2.4491, -0.1343, -0.0125, -0.0127, -0.0092, 0.0, 0.0112, 0.0774, -0.3371, 0.1461, 0.0695, 0.0621, -0.0442, -0.1183, 0.0094, 0.0354, -0.0615, 0.2287, 0.0135, -0.1776, 0.1471, -0.2997, 0.0255, 0.0103, -0.1157, 0.0515, 0.1028, 0.1031, 0.1312, 0.1558, -0.0052, 0.0444, 0.0192, 0.1167, -0.1653, -0.0768, -0.6867, 0.0784, 0.594, 0.0409, -0.1233, -0.1892, 0.3259, 0.0522, 0.0244, 1.8346, -0.297, 0.0432, 0.1275, 0.1309, 0.8153, 0.4779, 0.0346, 0.0481, -0.0069, -0.0741, 0.0227, -0.0763, -0.2703, -0.3749, 0.0373, 0.0628, -0.0435, 0.0545, 2.2957, 0.3545, -0.0133, 0.0254, 0.0349, 0.0983, -0.0648, 0.0201, -0.0637, 0.0525, -0.0291, 0.0674, -0.0601, 0.0156, 0.1186, 0.1926, 0.0849, -0.0109, 0.4234, -0.2165, 0.0014, 0.0115, 0.3077, 0.1475, 0.0577, 0.3012, 0.0, -0.0268, 0.0929, -0.0288, 0.0373, -0.0796, 0.3919, -0.2969, 0.0864, 2.5286, -0.0363, 0.0026, 0.1814, 0.1591, 0.2558, 1.0225, -7.054, -0.1322, -0.045, -1.1743, -0.021, 0.0741, 0.0201, -0.0127, -0.0026, 0.089, 6.9783, -0.0147, 0.1117, 0.0565, 0.1296, -0.1078, 0.0164, -0.4618, 0.0368, -1.2153, 1.4255, 0.0016, 0.0, -0.2605, 0.474, -0.0076, 0.0579, -0.0667, 0.4478, -0.0082, -0.0114, 0.1071, -0.1323, -0.4736, 0.0159, -0.0411, -0.0013, -1.1992, -0.0465, 0.0169, -0.1729, 0.0875, 0.0275, 0.3256, 0.0371, 0.2322, -0.1082, 0.0233, 0.1979, -0.2328, -1.1687, -0.0266, -0.0853, -4.4331, 0.1017, -0.007, 0.1061, -0.0096, -0.0012, 0.0, 0.0366, 0.1212, 0.0513, 0.0229, 0.3739, 1.7801, 1.314, 0.1422, 0.1536, -0.3241, 0.024, -0.0163, 0.0, 0.0719, -0.2344, 0.0269, 0.0691, 0.4329, 0.1649, 0.1002, -0.2103, 0.0452, 0.0, 0.0, 0.0494, 0.0015, 0.0289, -0.0838, -0.0218, 0.1911, 0.0145, -0.0466, 0.0025, 1.2507, 0.2839, -0.0869, 0.0201, 0.3287, 0.0023, -1.0283, 0.3205, 0.0, 0.0032, -0.0816, 0.1264, -0.066, -1.1806, 0.7671, 0.015, -0.3438, -0.0575, -0.9516, 1.1117, -0.1203, 0.0267, -0.0869, -0.0409, -0.0386, -0.0024, -0.0106, 0.2084, 0.1165, 0.5475, -0.2794, 0.0832, 0.1496, 0.1396, -0.0149, -0.0818, -0.0245, 0.0061, -0.0095, 0.1208, -0.9267, 0.3648, -3.3723, 0.0198, 0.2502, -0.0693, 0.0605, 0.0612, 0.1467, -0.0424, 0.0073, -0.1076, -0.1847, -0.0377, 0.0387, 0.4209, 0.0473, 0.1602, 0.0, 0.1548, 0.3152, -0.0108, 0.0205, -0.2763, -0.0139, -0.0622, -0.1069, -0.1597, 2.5209, -0.0079, 0.0925, 0.1433, 0.0157, -0.1565, -0.0963, 0.0299, -0.1671, 0.0144, -1.1965, 0.0103, 0.0, 0.0112, -0.0055, 0.0501, 0.3389, 0.0245, -0.0176, 0.0474, -0.0082, 0.04, 0.8341, 0.183, 0.0425, 0.3487, 16.648, 0.0601, 0.0073, -0.4378, 0.0078, -0.2248, 0.0778, -0.0176, -0.3276, 0.0703, 0.0103, 0.6326, 0.7152, 0.0511, 0.0, 0.0854, 0.0169, 0.3504, 0.0539, 0.0149, 0.1219, 0.0222, 0.1186, 0.0552, 0.1432, -0.0898, 0.0243, -0.0978, 0.0323, 0.1892, 0.0747, 0.0686, 0.054, 0.1714, -0.4294, -0.0213, 0.0709, 0.0578, 0.0576, 0.0606, -0.5482, -0.1662, -0.139, -0.0705, 0.0061, -0.1181, 0.0624, -0.0572, -0.2328, 0.0, -0.0312, 0.0288, -0.227, 0.0513, -0.0089, -1.2, 0.1119, 0.0108, 0.0675, 0.0086, -0.0066, 0.0092, -0.1348, 0.0776, -0.2828, 0.1665, 0.0961, -0.0089, 0.0584, 0.0271, 0.0574, 0.2225, 0.0287, -0.0848, 0.0208, 0.1548, -3.0075, 0.0132, 0.0406, 0.1031, 0.01, -0.0147, -0.1164, -0.0089, -0.0838, 0.6211, 0.0704, 0.0443, -0.0236, -0.3787, 0.1767, 0.2057, 0.0275, -0.88, 0.4282, 0.0037, 0.1615, -0.1472, 0.0052, 0.0698, 1.6998, 0.0371, -0.2019, 0.1482, 0.1662, 0.0477, -0.2894, 0.0136, -2.1858, 0.0, 0.0, 0.1744, 0.1338, -0.1061, -0.0129, 0.0179, 0.0, 0.1437, 2.5363, 0.1545, -0.0023, 0.0557, 0.0987, -9.5264, 0.2727, -0.0134, -0.5686, 0.1625, -0.4143, -0.0205, 0.093, 0.0726, -1.3161, 0.0971, -0.0797, -0.0949, 0.0087, 0.5117, 0.1637, -0.768, -0.7892, 0.0623, -0.0883, 0.092, -0.5348, 0.1527, 0.4662, -0.6688, -0.0699, 0.0586, -0.2714, -0.03, -0.5107, 0.0844, 0.0123, 0.0976, -0.0761, 0.0658, -0.0587, 1.3864, -0.2033, -0.052, -0.0153, 0.0212, 0.0125, 0.1496, 0.2172, 0.0289, -0.0451, 0.0073, 0.0, -0.6794, 0.0403, 0.5847, -0.0007, -0.055, 0.0261, -0.0123, 0.2262, -0.7574, 0.0128, 0.4879, -0.1409, 0.1526, 1.0836, 0.1059, -0.2633, 0.0346, -1.0527, -0.1622, -0.4034, 0.0651, -0.2142, 1.2028, 1.4316, 0.7244, 0.0223, -0.1029, 0.1085, -0.0785, -0.0873, 0.0033, 0.0733, -0.026, 0.2719, -3.9183, 0.0656, -0.5069, 0.0505, -0.0177, 0.0079, 0.0527, -0.688, -0.8657, 0.0236, 0.0279, -0.1657, -0.0269, -0.1123, -0.4595, -0.0382, -0.022, -0.0068, 0.0942, 0.0255, 0.2272, 0.3028, -0.919, -0.5867, 0.1702, 0.0822, 0.0411, 0.0, 0.1571, 0.2092, 0.0933, 1.425, 0.1183, 0.4721, 0.1718, -0.0276, 0.1062, 0.0706, 0.0653, 0.049, -0.0371, 0.0603, 0.0637, -0.2508, 0.3043, -0.0212, 0.15, 0.0027, 0.0265, 0.1504, 0.0588, 0.0259, 0.0, 2.4429, 0.2015, -0.0012, -0.9917, -0.004, -0.0381, 0.2917, 0.1138, -0.0556, 0.8029, 0.3065, 0.125, 0.1294, 0.0811, 0.0059, -0.1318, 0.1048, -0.0435, -0.037, -1.4236, 0.6435, -0.0163, 0.1794, -0.4011, 0.2029, -0.4259, 0.0536, 0.0326, -0.1139, -0.1674, -0.5281, -0.0021, -0.4726, -0.5745, -0.0496, -0.4333, -0.0178, 0.0297, -0.202, 0.0545, 0.3633, 0.0006, -0.2016, 0.0724, 0.0031, 0.0264, -1.55, 0.0462, 0.8973, 0.2283, -0.6154, 0.0607, 0.1856, 0.5236, 0.0405, 0.1567, 0.0107, 0.0356, 0.1334, 0.3215, 0.0835, 0.0, -0.1024, 0.0821, -0.0093, 0.0698, -0.0788, -0.0462, 0.0846, 0.0142, -0.0345, 0.208, 0.026, 0.2398, 0.1109, 0.0132, 0.0511, 0.5341, 0.1643, -0.2392, 0.0247, 0.1179, 0.105, -0.1433, -0.1442, -0.1157, 0.0751, -0.1245, 0.0588, 0.2089, -0.0831, -0.0217, -0.0501, -0.4722, -0.0044, -0.878, 0.0, -0.1126, 0.1393, 0.3665, -0.0656, -0.0021, -0.0721, -3.3008, 0.0205, 0.2681, -0.001, 0.0, 0.0369, 0.0673, 0.1142, 0.0673, 0.028, 0.0048, 0.1032, -0.015, 0.016, -0.0347, 0.0397, -0.088, 0.0, -0.0181, 0.0382, 0.2199, 0.0372, 0.0754, 0.7757, 0.4142, 0.1745, 0.1326, 0.0503, -0.1468, 0.069, -0.3196, -0.1017, 0.1668, -0.0106, 0.0, -0.0813, 0.0663, -0.0892, -0.0159, -0.0366, -0.0228, -0.4984, 0.0, 0.1441, 0.0312, -0.2123, 0.0029, -0.1629, -0.0597, 1.071, -0.0354, 8.3817, -22.1155, -0.2158, 0.1014, 0.3225, -0.9416, 0.0078, 0.0741, -0.0065, 0.0557, 0.2194, 0.1539, -0.1019, 0.2864, 0.0457, 0.0, -0.5431, 0.2567, 0.0536, 0.0817, -0.1387, -0.1384, 0.0, 0.0274, 0.0728, -0.1051, 0.1283, -0.0022, -0.2301, 0.0, -0.0342, 0.0468, -0.0664, -0.2107, -1.944, 0.0315, -0.0664, -0.9258, 0.3688, -0.0501, -0.0842, -0.759, 0.1404, 0.0677, -0.0274, -0.0564, 0.2071, 0.0472, 0.4334, 0.1838, 0.0415, -5.155, 0.8001, 0.2871, -3.3188, -4.249, 0.1185, 0.1357, 0.1808, 0.003, 0.0154, 0.108, 0.0, 0.1226, 0.0382, 0.011, 0.0, 0.127, -0.022, 0.0982, 0.2167, -1.0041, 1.314, 0.1303, -0.0871, -0.3814, -0.0154, -0.2634, 0.052, 0.0465, 0.3136, 0.0294, -0.5823, -0.0002, -0.0594, 0.0015, -0.0225, 0.2306, 0.0828, 0.007, -0.0078, -0.3455, 0.001, -0.1701, -0.1193, -0.0859, -4.5118, 0.3811, -0.0752, -0.5335, 0.1582, 0.3144, 0.0311, 0.0117, 0.3284, -0.0315, 0.4571, 0.2136, -0.2917, 0.0528, 0.0551, -0.1278, 0.2686, 1.1149, 0.4201, -7.9158, 0.0664, 0.0, 0.0322, 0.0007, -0.1421, 0.0506, -0.2812, 0.0129, -0.1436, -0.0133, -0.0097, -0.0064, -0.1215, -0.1233, 0.0271, -8.26, -0.0127, -0.001, 0.5903, 1.3791, -0.0034, 0.0, -0.052, 0.0201, 0.0457, 0.2113, 0.0869, 0.0992, 0.1266, 0.0207, 0.0541, 0.1604, 0.1121, 0.0969, 0.0306, -0.1164, -0.0241, 0.9241, -0.2924, -0.1915, 0.0, 0.0959, 0.0613, 0.1096, 0.1005, -0.0917, -0.0483, 0.0697, 0.2667, 0.0093, 0.0387, 0.0397, -2.7158, 0.0199, 0.2956, -0.0312, 0.0036, -0.1495, 0.225, 0.0105, -0.0341, 0.047, 0.0204, 0.0964, -0.0332, 0.1382, -0.1192, -0.215, -0.2241, 0.045, -0.0148, -0.1888, -0.3152, -0.0112, 0.1533, -0.2862, 0.0, 0.232, 0.3637, 0.0, -0.01, 0.0186, 1.2013, -0.1088, -0.089, -0.0022, 0.0394, 0.0681, 0.0244, -0.0219, -2.4363, 0.0041, 0.2101, 0.0, -0.1606, 0.008, -0.1138, 0.9619, 0.1366, -0.0885, 0.1847, 0.2214, 0.0, 0.0596, -0.1486, 0.0, -0.3134, -0.0289, -0.0228, 0.0163, 0.0, -0.0422, 0.0056, 0.0254, 0.0829, 0.0408, 0.0961, 0.4019, 0.7955, 0.0673, 0.3252, 0.0428, 1.1421, 1.8423, 0.0353, -0.0755, 0.0, 0.1363, 0.429, -0.1006, 0.1924, -0.0363, 0.0, 0.0269, 0.0153, -0.0464, 0.0536, -0.0216, 0.3364, -0.0793, 1.8519, -4.5592, 0.0352, 0.1059, -0.1142, 0.0079, 0.1233, -1.2608, 0.136, 0.0151, 0.0848, 0.0221, 0.2999, -0.897, 0.112, 0.8473, 0.0256, -0.1149, -0.0547, -0.3734, -1.0347, 0.1617, -0.2915, -0.0465, 0.1461, 1.5686, 0.0778, 0.6299, -0.0962, -0.0482, 0.065, -1.0267, -0.2909, 0.1442, 0.1312, 0.0604, 0.0884, -0.0303, 0.2394, 0.05, -0.1464, -0.6646, 0.0918, 0.0322, -0.1702, -0.2774, 0.1798, -0.3799, 0.0369, 0.0549, -0.1193, -0.0322, 0.007, 0.0012, 0.0533, 0.0114, -0.0325, 0.1275, -0.1693, 0.0094, 0.0548, 0.0897, -0.2305, 0.0788, -0.0362, 0.0579, -0.0207, 0.7155, -0.0502, 0.0305, -0.1878, 0.0467, -0.0109, 0.1685, 0.0787, -0.0221, -0.2053, 0.1265, 0.1046, 0.014, 0.075, 0.063, 0.1905, 0.0483, 0.0437, -0.0744, -0.7109, 0.0317, 0.0648, -0.082, 0.0518, 1.3902, 0.0137, 0.2039, 0.0833, 0.166, -0.0357, -0.0595, 0.1812, -0.7817, -0.1932, 0.0625, -0.1436, 0.0043, 0.103, 0.0264, -0.0252, 0.1674, 0.0, -0.1443, -0.024, 0.0233, 0.034, 0.0556, 0.16, 0.0, 0.0565, -0.0505, 0.0033, 0.1491, -0.004, -0.4385, -0.0064, -0.1112, 2.4855, 1.4521, 0.0, 0.0792, 0.0779, 0.0972, 0.0753, 0.0603, 0.0149, 0.0588, 0.1187, -0.4615, -0.3318, 0.0487, 0.0, -0.2007, -0.0732, 0.0344, -0.0733, -0.5085, 0.0834, 0.0461, -0.0031, 0.0164, -0.0156, 0.3436, 0.0134, 0.0, 0.0135, 0.2026, -0.57, 0.37, -0.9963, 0.0147, 0.0512, 0.6758, 0.0908, -0.0966, 0.2957, -0.0414, 1.3209, 0.0371, 0.0, -0.0665, -0.0221, 0.0423, 0.0, -0.5784, -0.0737, 0.0044, 0.1141, 0.0699, -0.9586, 0.0375, -0.7175, 0.0631, -0.0276, 0.1358, -0.0923, -0.3383, -0.0732, -0.011, -0.2202, -0.6583, -0.2865, -0.4123, -0.0616, 0.0062, -0.4051, -0.1239, -0.0359, -0.372, -0.0246, -0.1386, 0.3541, 0.4715, 0.0, 0.0, 0.0267, -0.0339, 0.0441, -0.1978, 0.2432, 0.1296, 0.2712, 0.0189, 0.0113, -0.2997, 0.008, 0.0525, 0.0678, -0.1537, 0.0, 0.0208, 0.0074, 0.039, 0.0, -0.2027, -0.1, 0.0032, -0.0336, 0.0105, 0.0, -0.266, -0.0138, 0.0512, 0.0546, 0.0872, -0.9299, -0.216, 0.433, 0.9255, -0.0328, 0.0607, 0.2347, 0.5852, -0.1807, 0.0438, 0.0178, 0.0255, 0.0334, 0.2428, 0.0, 0.0001, -0.8753, 0.3592, 0.4467, 0.0145, 0.2494, 0.1611, -0.068, -0.3723, -0.3067, 0.0418, 0.0437, 0.043, 0.0301, -0.5368, 0.5168, -0.0244, 0.0059, 0.5453, 2.055, 0.0451, 0.0749, 0.062, 0.0244, 0.0, 0.0405, 0.0, 0.1698, 0.067, -0.003, 0.0443, -0.1129, -0.0092, 0.1833, 0.0334, 0.1803, 0.1123, -0.0315, -0.096, -1.5494, 0.0357, -0.0342, -0.0675, 0.1039, -0.5528, -0.0197, 0.1437, 0.0114, 0.0277, 2.7711, 3.944, -0.2419, 0.2996, 0.0, -0.0872, 0.0762, -0.1423, -0.1131, -0.3116, 0.03, 0.1266, 0.0403, 0.0376, 0.0707, -0.7174, 0.0, 0.0278, -0.393, 0.0966, -0.1356, 0.0931, 0.1153, -0.0471, 0.0519, 0.011, -0.288, 0.0243, 0.0687, 0.0506, 0.0268, -0.9, 0.291, 0.0, 0.082, 0.0555, 0.0659, 0.0015, -0.2317, -0.2199, 0.5285, 0.1045, 0.0882, -0.302, 0.0403, -0.2055, 0.4206, 0.2822, 0.8248, 0.035, 0.058, 0.0334, 0.0421, 0.0, 0.1756, 0.6657, 0.1629, 0.0746, 0.0015, -0.0141, 0.0166, 0.0712, -0.3538, -0.0053, 0.0465, 0.3124, 0.1608, 0.0, 0.0118, 0.0075, 0.0607, 0.1549, -0.0116, 0.0118, -0.0452, -0.083, 0.0928, -0.155, -2.37, -0.0303, -0.1079, 0.6085, -0.0142, 0.5682, -0.0994, -0.0666, 0.3172, 0.0173, 0.0025, 0.1002, 0.0282, 0.0285, 0.1216, 0.1814, 0.0202, -0.1102, -1.3767, 0.0208, -0.0439, 0.3343, -0.2016, -0.1201, 0.0049, -0.1638, 0.0364, -0.003, -0.0077, 0.1583, 0.0193, 0.0977, 0.0031, -0.0163, -0.007, -0.0374, 0.0425, 0.0219, -0.03, -0.0016, -0.0039, 0.0125, -0.0916, 0.0, -0.0592, -0.3086, 0.0316, -0.0906, 0.0383, 0.0, 0.1765, -0.0743, 0.0, 0.0044, 0.0414, 0.0027, -1.0502, 0.1428, 0.0154, 0.0456, 0.0777, -0.0078, 0.0295, 2.707, 0.4423, 0.9103, 0.084, -0.2613, -0.113, 4.71, 0.066, 3.8845, -0.7606, 0.0634, -0.1041, -0.0128, -3.1352, 0.1277, 0.0881, -0.0374, 0.081, -0.0235, 0.1481, -0.2773, -0.0523, 0.0621, -0.0724, -3.0805, -0.0391, -0.1709, 0.0466, -0.4325, 0.1496, 0.0855, -0.0331, -0.1308, 0.1953, 0.062, -0.4619, 0.0254, -0.277, -0.1875, -0.046, -1.3593, -0.2914, 0.046, -1.2824, -0.1426, -0.0038, 0.0173, -0.9075, -0.0711, -0.3414, -1.8167, -0.0084, 0.0216, -0.0142, 0.043, -0.1025, 0.0476, 0.1656, -0.0291, -0.0339, 0.0642, -1.7509, 0.2503, 0.2488, -0.0346, 0.1324, 2.9642, -0.0355, -0.0997, 0.0918, 0.026, 0.4441, -1.3872, -0.464, -0.0295, 0.0837, 0.0676, 0.0164, 0.0816, -0.2199, -1.8208, 0.0932, 0.1024, 0.0027, -20.2325, -0.0161, 0.0457, 0.0424, 0.0656, -0.1098, 0.0343, -0.0198, -0.009, 0.0, -0.0037, -0.0024, -0.239, 0.1231, 0.0, 0.0645, -0.0364, -0.2299, -0.2014, 0.2069, 0.0142, -0.1253, -0.6726, 0.0234, -0.0502, -0.041, -0.0614, -1.3573, 0.0, 0.0117, 0.2871, 0.322, 0.1377, 0.177, 0.0226, 0.0091, -0.0698, 0.0428, 0.0202, 0.0121, -0.0132, 0.2045, -0.0025, -0.0793, -0.1012, -0.1341, 0.0298, 0.2283, -0.0294, -0.078, -0.057, -0.0856, -0.0441, -0.6387, 0.1949, 0.0076, 0.0754, -1.1075, 0.077, -0.0305, -0.0203, 0.0353, -0.0222, -0.0483, -0.5865, 0.3305, 0.2083, -0.0074, -0.0363, -0.3785, 0.0408, -0.115, -0.0682, -3.4229, 0.026, 0.1514, -0.0024, -0.1134, -0.0288, -0.0968, -0.1863, 0.4036, 0.0672, 0.24, -0.0441, -0.0062, 0.163, 0.0701, -0.0913, -0.1291, 1.8, -0.1687, 0.0441, 0.284, -0.0415, 0.0707, 0.0821, 0.0551, -0.0776, 0.0651, -0.0354, 0.0401, 0.0447, -0.0158, -0.0754, -1.3439, 0.0471, -0.0122, -0.9138, 0.2289, 0.0916, -0.0445, 0.0152, -0.0206, 0.0133, -0.1034, 0.1422, -0.1075, -0.1061, 0.1114, 0.0594, -0.9658, -0.0738, 0.075, 0.0335, -0.1328, 2.1559, 0.005, 0.2459, -0.6055, -0.041, 0.0252, 0.1939, 0.1506, 0.0978, -0.321, -0.0513, 0.0388, 0.1072, -0.5673, 0.037, 0.0116, 0.2759, -0.1003, 0.1223, 0.1774, -0.0297, 0.01, -1.6951, -0.1087, -0.3252, 0.0611, 0.0, -0.0464, 0.0873, 0.0641, -0.0429, 0.0, 0.1166, -0.2244, 0.0259, 0.0404, 0.2234, 0.0103, 2.2733, 0.083, -0.2226, 0.0355, 0.0136, 0.0919, 0.027, 0.0063, 0.038, 1.1924, 0.0279, 0.0541, -0.6535, 0.5895, -0.3056, 0.0327, 0.0146, 0.0081, 0.036, 0.1261, -5.4675, -0.138, -0.1783, -0.0403, -0.1273, -0.6795, 0.046, -0.9627, -1.68, 0.0077, 0.1876, 0.1019, 0.3301, -0.011, 0.046, -0.0376, 0.0424, 0.076, 0.0, 1.5465, -1.8617, 0.2682, -1.7182, -1.5092, 0.109, -2.0697, 0.022, -6.2158, -0.9217, 0.0545, 0.0992, 0.0879, 0.0783, 0.0772, 0.0741, -0.1846, 0.0632, 0.0877, 0.0468, -1.2177, 0.024, -0.2309, 0.0, -0.0857, 1.3842, 0.0215, -1.6057, -0.0221, -0.228, -0.0492, 0.0, -0.3688, -0.0773, 0.0491, -0.0611, 0.0623, 0.0013, 0.1874, -0.121, 0.0705, -0.0271, 0.0571, -0.0339, -0.0442, -3.4805, 0.0975, 0.2202, 0.0826, -7.1485, 0.2304, 0.3717, 0.0594, 0.0436, 0.1833, -0.1371, 0.0027, 0.093, -0.2288, -0.0235, 0.0067, 0.0042, 0.0, 0.0197, 0.0618, -0.7425, 0.0, 0.2018, 0.0319, -2.1549, -0.0698, -0.1022, 0.0714, 0.086, -0.465, 0.3578, 0.0059, -0.1269, 0.0305, 0.2569, -0.0837, -0.0398, 1.9878, 0.0355, -0.0761, -0.1074, -0.0216, 0.0355, 0.16, 0.0171, -0.2753, 0.0051, -0.2761, -0.0146, 0.0372, -0.0961, -0.0611, 0.1798, -0.015, 0.0045, -0.2333, 0.023, 0.0924, -0.0417, -7.3538, 0.0948, 1.2692, -0.0042, -0.288, -0.0318, 0.0807, 0.0726, -0.6855, 0.2881, 0.0449, -0.6575, -0.0082, 0.096, 0.2418, -2.6518, 6.7083, 0.011, -0.0863, -0.0063, 0.2808, 0.3319, 1.0134, -0.0359, 0.151, 0.0676, 0.1088, -0.0027, 0.013, -0.0305, 0.0164, 0.0648, -0.0757, -0.0613, -0.0144, 0.1534, -0.0068, 0.0733, -0.2008, 0.0076, 0.0743, -3.4728, -0.1014, -1.0084, -0.0811, 0.0, 0.0238, -0.0113, 0.0841, -0.045, -0.3221, -0.0509, 0.143, -1.1655, 0.0656, -0.0417, 0.0878, 0.0233, 0.1943, 0.0, -0.0345, 0.0, 0.0521, 0.8597, 0.0, -0.0717, -2.5775, 0.0079, 0.0913, 12.0375, -0.3182, -0.0799, 0.1152, -0.3685, 0.3941, 0.0346, 0.0501, -0.0876, 0.0138, 0.0032, -0.0019, 0.1596, -1.5882, 0.1247, -2.9621, 0.8393, -0.0894, 0.5957, 10.168, -1.3538, -0.0497, 0.1366, -0.1327, 0.2517, -0.0799, -0.021, 0.2104, -0.0076, -0.8378, -0.4935, -0.0049, 0.0297, 0.0495, -0.3321, 0.066, 0.132, -0.1691, 0.1379, -0.0264, -0.0493, -0.2635, -0.2266, 0.0539, 0.0071, 0.1162, 0.1986, 0.1075, 0.0973, -0.0865, -0.0964, -0.0674, -0.0292, -0.0382, -0.0794, -0.2446, 0.122, 0.0096, 0.0864, -0.126, -0.5838, -0.1072, -0.0035, -0.0084, -1.2114, 0.2841, -0.0123, -0.0195, 0.0063, 0.0491, -0.1323, -0.706, -0.4121, 0.0067, -0.0423, 0.0655, 0.1743, 0.0425, -0.2995, -0.014, 0.0346, 0.0618, 0.0432, -0.0131, 0.0543, 0.0381, 0.0328, -0.3378, -3.5606, -0.1339, -0.027, 0.6811, -0.1401, 0.2377, 0.0781, 0.1825, -0.8546, -0.963, -0.0987, 0.03, -0.1257, -0.0827, 0.1338, 0.0, 0.0, 0.0117, 0.0048, -0.0554, 0.0859, 0.8538, 0.2981, -3.137, 0.0353, 0.0234, 0.5157, -0.0823, 0.1445, 0.1343, -0.0463, -0.1274, 0.0432, -2.823, 0.0474, 0.0562, -0.0363, -0.0338, 0.6033, -0.1059, 0.191, -0.0433, 0.146, -0.0921, -0.2196, 0.1114, -0.1783, 0.359, 0.1686, 0.1415, 1.4033, -0.1753, -2.1848, 0.492, -0.2143, 0.1768, -3.0292, 0.0372, -0.1351, 0.0157, 0.0659, -0.0181, 0.0255, -0.0857, -0.0476, -0.0875, -0.0063, -0.0083, 0.1986, 0.0, -6.8108, 0.1056, -0.2996, 0.556, 0.0798, -0.0981, -0.0409, -0.4967, 0.0771, 0.0499, 0.0409, 0.0058, -0.1056, 0.0, -0.1522, 0.0026, 0.0079, -1.2824, 0.0294, -0.435, 0.0469, 0.0, 0.0475, 0.0941, -0.1957, -0.1528, -0.1042, -0.3376, 0.1731, -0.0362, -0.0254, -0.034, 0.0167, 0.0144, 0.0195, 0.1127, 0.2586, -0.0293, 0.4641, -0.3655, -0.0669, 0.0, 0.1397, -0.094, -0.0816, -0.0702, 0.0656, -0.0363, 0.108, -0.1102, 0.0246, 0.014, -0.1029, 0.0039, 0.3035, 0.1055, -2.2819, -0.0119, -0.0563, -0.4302, -0.2129, -0.1131, -0.0725, -0.1181, 0.0369, -0.0344, -0.0709, -0.5212, 0.0569, 0.0306, -0.1922, 0.0206, 0.2748, 0.1149, -0.0285, 0.5077, -0.2261, 1.4475, 0.0608, 0.0482, 0.0641, 0.261, 0.1362, -0.1571, 0.0768, 0.1267, -0.1685, -0.0411, -2.6023, 0.0248, -1.1391, -0.0505, 0.0657, 0.1082, 1.2877, 0.0507, 0.0408, -0.049, 0.1667, 0.1422, 0.1655, 0.0, -0.0876, -0.0001, -0.061, -0.0949, -0.1376, 0.0448, -0.1748, -0.1383, -0.8981, 0.3915, 0.1396, -2.3222, -0.0631, 0.307, -0.6925, 0.0419, -0.1192, 0.475, -11.3667, 0.1005, 0.1007, 0.0066, 0.0626, 0.025, 0.0386, 0.0872, -0.0735, -0.0735, 0.0404, 0.1266, -0.0428, 0.1288, 0.0071, 0.0, 0.0012, 0.1189, 0.1273, 0.0613, 0.0613, 0.0, -0.3205, 0.0325, -0.0062, 0.0173, 0.0097, 0.1797, -0.2484, 0.0445, 0.0128, 0.0634, 0.0715, -2.9762, 0.1019, -0.0872, -0.0734, 1.0025, -0.0335, -0.0722, 0.0381, 0.0589, 0.1948, 0.0758, -0.0323, 1.18, 0.1087, -0.0251, -0.0194, 0.0068, -0.0756, -0.165, -0.0623, 0.9104, 0.0242, -0.1313, 0.0287, -0.1097, 0.0733, 6.2817, 0.0269, -0.0757, 1.8682, -0.3552, 0.2885, 0.1243, 0.1033, -0.1337, 0.0399, 0.1174, 0.0586, 0.0267, -0.664, -0.0885, 0.0346, 0.0693, -1.0284, 0.4136, 0.1742, 0.1392, 0.1064, 0.0, 0.0, -0.0644, 0.1784, 0.0265, 0.3644, 0.0639, -0.648, 0.0, -0.8887, 0.0205, 0.0262, -0.0626, 0.0008, 0.0611, -0.0066, 0.1962, 0.2073, 0.1024, 0.1381, 0.0272, 0.2152, -0.0102, -0.0766, 0.0966, 0.0584, -0.0701, 0.0463, -0.0162, 0.1525, -0.2581, -0.0337, 0.0162, 0.0253, 0.1505, 0.0173, -0.1785, -0.1356, 0.0638, -0.0637, 0.1638, -0.0568, 0.1201, 0.0022, -1.0634, 0.1876, -0.0081, 0.1896, -0.3863, -0.0767, -0.0507, 0.4085, 0.0187, -0.0442, 1.2987, -0.0881, -0.3429, -0.1673, 0.0694, -0.085, -0.0692, 0.0404, 0.0857, 2.6495, -0.6708, -0.125, 0.0, 0.0682, 0.0, -0.4906, -0.0013, -0.1469, -0.0305, 0.0, -0.0868, 0.0, -0.0797, -0.0143, 0.0121, 0.2082, 0.0014, 0.0769, 0.0812, 0.0038, 0.0192, 0.1086, 0.0624, -4.2336, -0.2105, -1.0479, 0.0077, 0.0534, 0.1195, 1.2908, 0.0771, 0.1546, 0.2607, 0.0543, -0.569, 0.0282, -0.1137, 0.0662, 0.0, -0.0475, -0.0068, -0.0805, 0.0038, 0.0575, 0.005, 0.2366, -0.1251, 0.0, -0.0976, 0.0004, 0.1252, 0.104, 0.1067, 0.0, 0.0395, 0.0047, -0.7142, 0.0578, 0.0341, 0.0181, 0.0031, 0.17, -0.0916, 0.0445, 0.1179, -0.002, -0.0334, 0.1029, 0.1916, 0.0348, -0.0416, 0.0, 0.0, 0.0, 0.1546, 0.0823, 0.0379, -0.3698, -0.0193, -0.0019, 0.0179, 0.0441, 0.4717, 0.0127, 0.0426, 0.0644, -0.0534, 0.0802, 0.0231, 0.0415, 0.0664, 0.1393, 0.166, -0.0174, -0.1485, -0.5021, 0.1079, 0.0427, 0.0159, 0.035, 0.0667, -0.094, 0.9847, 0.0065, -0.0341, -0.1554, -0.1845, -0.0908, -0.1016, -0.1847, 0.0618, 0.0201, -0.3619, 0.1012, 0.2253, -2.1094, 0.0424, -0.0356, -0.4175, 0.1058, -0.2994, 0.1002, -0.0534, -0.5547, 0.003, -0.1915, 0.1543, 2.2318, 0.1322, 0.0, 0.0053, 0.0597, 0.1062, 0.0657, -0.0026, 0.024, -0.1605, 0.041, 0.1201, -0.0243, 0.0, 0.1148, -2.2921, -0.0238, -0.0478, 0.0617, 0.1071, -1.627, 0.1442, 0.1272, -0.0189, 0.1309, 0.4486, -0.0117, -1.8808, -1.5893, -0.0303, 0.023, 0.0524, -0.0111, 0.6543, -0.0281, -0.0987, -0.0497, 0.1949, -0.0708, -0.0769, 0.0417, 0.1207, -0.0212, 0.1259, -0.0144, -0.0443, 0.2604, 0.1695, -0.1284, 0.0673, -0.0056, 0.0, 0.2542, -0.0119, 0.1597, 0.1158, 0.0, -0.053, -0.0345, 0.6502, -6.8289, 0.509, 0.0, -0.0602, 0.0579, 0.188, 0.6692, -0.0362, 0.1058, 0.0933, 0.0919, 0.0938, 0.0131, -0.042, -1.618, -1.0962, -1.7659, -0.0972, -0.022, 0.0511, -0.0882, 0.2352, 0.3536, 0.3703, -0.1102, -0.0193, 0.1007, 0.0494, 0.3261, 0.0241, -0.2558, -0.12, -0.0055, -0.1072, 0.0, 0.1829, 0.0, 0.6014, 0.116, -0.0309, -0.0676, 1.2264, -0.6378, 0.0529, -0.0023, 0.0054, 0.2911, -0.373, 0.0918, 0.0008, -0.0144, 0.37, -0.4826, 1.0776, -0.2753, 0.1394, -0.0157, -0.0647, -0.0658, 0.1188, 0.0789, 0.1311, -0.0165, 0.0, 0.1921, 0.0568, 0.1237, 0.2795, 0.0098, 0.0475, -0.1442, -0.0207, -0.0024, 0.0331, 1.2557, -0.111, 0.0862, 0.1746, 0.2451, -3.3827, 0.035, 0.0606, -0.0601, -0.121, -0.0511, -0.0717, 0.0721, 0.0028, 0.0007, 0.0713, 0.0835, 0.0249, 0.0355, 0.0334, 0.0138, -0.3078, 0.0729, 0.0, -0.4183, -0.0854, 0.048, 0.0569, -0.4784, 0.0825, -0.8575, -1.9521, -1.1067, 0.0578, 0.0823, -0.9673, 0.0634, -0.0238, -0.0255, 0.0301, 0.0196, 0.0737, -0.016, 0.0169, -0.0093, -0.0322, 0.3527, -0.0118, -0.017, 0.0145, -0.0523, -0.1312, 0.0256, 0.3026, 0.1297, -0.0479, -0.0928, 0.0609, 0.0334, 0.0234, -0.1625, 0.0335, 0.0204, 0.0312, -0.1081, 0.2594, -2.4778, -0.0038, 0.0293, 0.1038, 0.1192, -0.0565, 2.0493, -0.0512, -0.059, 0.0195, 0.0683, -0.052, -0.0457, 0.0534, 0.0181, 0.0234, 0.0392, -0.0327, 0.0441, 0.2462, 0.2854, 0.1436, -0.4266, 0.0612, -0.6237, -0.6394, 0.0087, 0.1551, 1.745, -0.235, -0.2867, 0.0478, 0.0123, 0.1207, 0.129, 0.1641, 0.0726, 0.2056, 0.1687, 0.0514, 0.0805, -0.2026, -0.0307, -0.0115, -1.0836, -0.0642, -0.2865, 0.0137, -0.0862, 0.0023, 0.1759, 0.0012, -0.1649, 0.1217, 0.1414, 0.0335, -0.0733, 0.082, 0.0166, -0.0216, 0.2885, 0.0224, 0.4919, 0.0345, -0.0309, 0.1161, 0.0733, 0.0067, 0.135, -3.8769, -0.625, 0.1203, 0.1973, 0.0373, 0.1554, -1.3037, -2.4761, 0.0314, -0.0412, -0.0617, -0.0022, 0.1121, -0.1411, -0.0606, 1.5466, 0.1421, 0.0813, -0.0224, 0.0346, -0.0119, -0.0097, 0.0398, 0.0526, 0.3123, 0.0936, 0.0723, -0.0082, -0.0376, 0.1378, 0.2413, 0.0053, 0.0827, 0.1209, 0.3416, 0.1253, 0.0381, 0.2473, 0.155, 0.0, -0.0719, 0.137, 0.0657, -0.9888, 0.0637, -0.0777, -0.0631, 0.0664, -0.5674, 0.0, 0.0, -0.6138, -0.6881, 0.6657, 0.1105, 0.0271, 0.0506, -0.0066, -0.0775, -0.2318, 0.0628, -0.0457, 0.0607, -0.0767, 0.147, -0.0511, 0.0133, 0.6775, -0.014, -0.2254, 0.0584, 0.0016, -0.0063, -0.2158, -0.1441, -0.0924, -0.1532, -0.3865, 0.0769, 3.4357, 0.0081, 0.0414, -0.0568, 0.1491, 0.0, 1.1126, 0.1527, 0.222, -0.8972, 0.524, 0.5291, -0.0102, -0.1482, -0.2702, 0.0032, 0.1431, 0.0618, 0.1559, 0.0333, -0.1425, 0.0, -0.2876, 0.0473, 0.0088, 2.1108, -0.7845, 0.0, -0.0711, -1.1545, -0.4481, 0.0692, 0.1762, 0.1868, 9.3092, 0.0, -0.1068, 0.1591, 0.0, -0.0752, 0.088, 0.0893, 0.096, 0.1784, 0.0, 0.5247, 0.0144, -0.0751, -0.467, -1.3435, -0.0601, 0.0187, 0.0543, 0.6169, 0.1675, -0.0192, 0.0254, 0.0779, 0.0763, -0.0054, 0.0786, 0.0364, -0.0661, -0.0423, 0.0004, -0.3656, -0.0011, -0.0506, -0.0075, -0.1122, 0.1734, -0.2157, -0.0245, -0.1248, 0.0, 0.2031, 0.0077, 0.7801, -0.9791, 0.9709, 0.0518, 0.2648, 0.0038, 0.0414, -0.1544, -0.0976, -0.0015, 0.1751, -0.179, 0.0668, -0.0309, -0.0269, 0.0, 0.1364, 0.096, 0.1088, -0.052, 0.145, 0.0097, 0.0545, 0.0202, -0.0424, 0.1558, 0.1571, 0.1275, -0.5376, -0.419, 0.0123, -0.0413, 0.1641, 0.3244, 0.028, 0.0041, 7.931, -1.14, -0.0105, -1.6162, 0.1876, 0.1241, -0.1238, 0.0841, 0.2777, 0.0824, -0.0038, 0.0, 0.0985, -0.3194, 0.0402, 0.374, -0.0039, -0.0331, 0.0966, -0.0899, 0.1338, -0.014, 0.0702, -0.3593, -0.0883, 0.2072, 0.0383, 0.0604, 0.088, 0.0846, 0.2312, 0.066, -0.0117, 0.0748, 0.1591, -0.0985, -0.0019, -0.0162, 0.0133, -0.3519, 0.0127, 0.1302, 2.1054, 1.2932, 0.6525, -1.5469, 0.0715, 0.0264, 0.1616, 2.7303, 0.3339, -1.9273, 0.1009, -8.3122, -0.018, -1.4593, 0.2941, 0.3858, 0.2714, 0.0351, 0.3175, -0.0302, -0.3671, 0.0, 0.1368, 1.1848, -0.0298, 0.1324, -0.0852, 0.0819, -0.0658, 0.0159, 0.0, -0.0937, -0.1358, -0.0315, 0.0464, -0.0577, -0.0699, 0.0055, 0.1256, -0.0906, 0.0315, 0.0149, 0.162, 0.0513, -0.0443, 0.0415, -0.031, 0.0351, -0.1585, 0.0074, -0.4974, -0.062, -0.2409, 0.2872, 0.0289, -0.3021, 0.2087, 0.2163, 0.5005, -0.3178, -2.1981, 0.04, 0.0, -0.6243, 0.0356, 0.1123, 0.0138, 0.1926, 0.1409, 0.0365, 0.0148, 4.0083, 0.0349, -0.006, 0.3983, -0.0496, -0.0439, 0.0402, -0.2285, -0.0342, 0.0172, 0.031, 0.0597, -0.9564, -0.2094, 0.0039, 0.0292, 0.0473, -0.9283, -0.0577, 10.9692, 0.2882, -1.42, -0.0024, 0.1746, -0.1009, -0.3877, 0.1912, 0.1819, 1.7957, -0.3518, -0.0596, 0.042, -0.054, 0.4339, 0.0376, -0.0619, 0.1143, 0.1366, 0.0976, 0.0295, 5.4542, -0.9082, 0.107, -0.9405, 0.2252, 0.1303, 0.0855, -0.0433, 0.2612, 0.0211, 0.0684, 0.0611, -0.007, -0.0335, 0.006, 0.0355, 0.074, 0.0546, 0.0325, 0.0981, 0.0, -0.5433, 0.0607, -0.1332, 0.2351, 0.0859, -0.3401, -0.0865, 0.0382, 0.1097, 0.0, 0.05, 0.0385, -0.0238, 0.0214, -0.0771, 0.1262, -0.3427, -0.1769, -0.0479, -0.0859, 0.0902, 0.0214, -0.0621, -0.0136, -0.8718, -0.0359, 4.0305, 0.0989, 0.0666, 0.0805, -0.7882, -0.0207, 0.0853, -0.0004, -0.535, 0.1042, 0.0002, 0.2599, -1.3064, 0.0605, 0.0975, 0.4022, 0.0084, -19.1158, -0.0494, 0.0258, 0.1828, -0.0639, 0.0, 0.0018, 0.1684, 0.0009, -1.1592, -0.4607, -3.8924, 0.0, 0.0693, 0.0216, 1.5657, 0.0314, 1.4008, 0.015, 0.0472, 0.2752, 0.0369, 0.038, -3.3225, -1.051, 0.0321, 0.0218, 0.1333, 0.5321, -0.0928, -0.0063, -0.349, 0.0236, 0.0095, 0.0, -0.0031, -0.0152, 3.9042, 0.1327, -0.0246, 0.062, 0.1522, -0.0676, 0.0264, -0.2393, -0.0583, -0.3813, -0.0311, 0.1942, 0.0144, 0.0, 0.0601, 1.2274, 0.0528, 0.1715, -0.1091, 0.128, -0.0033, -0.0144, -0.0846, 0.0488, -0.0688, 0.0747, -0.0011, -0.0647, -0.263, -0.0111, -0.6454, 0.3971, 0.0836, -0.0039, -0.1063, 0.029, 0.0, -0.0292, -0.0166, -22.2383, -0.4666, 0.093, 0.1952, 0.0823, 0.1112, 0.0089, 0.3582, -0.0221, 0.1189, -0.0006, -0.0118, 0.0283, -0.0335, -0.0162, -0.1513, 0.0471, -0.0707, -0.0673, -0.2294, 0.0035, 0.1077, 0.0879, -0.0047, -0.0432, -0.0152, 0.0522, 0.0668, -0.1594, 0.0434, -0.0804, -0.0177, 0.0165, -0.0454, -0.0171, 0.0197, -0.0695, 4.8082, 0.0, 0.0811, -17.907, -0.0483, 0.0075, -0.2, 0.1009, 0.1313, 0.0734, -0.0577, 0.389, 0.1468, 0.0548, 0.1315, 0.0457, -0.021, 0.0333, 0.0594, 0.233, 0.3495, -0.1378, -0.0331, -0.5153, 0.0661, 0.0588, -0.1017, -0.0645, -0.0128, -0.0634, -0.0213, -0.4454, 0.0044, 0.0672, -0.3638, 0.0, 0.511, 0.0701, -0.1487, -0.0193, -0.0027, -0.1008, 0.1907, -0.3455, 0.0189, 0.0719, 0.111, -0.182, 0.0525, 0.0846, 0.048, 0.0352, 0.0918, -0.0135, 0.0901, 0.1143, 0.1188, 0.1218, 0.0257, -0.0023, 0.0241, -0.004, 0.0387, -0.0432, 0.0, -0.01, 0.0209, -0.1636, -0.0012, -0.2973, 1.3196, 0.0218, 0.1699, -0.6718, 0.0335, -0.1026, 9.415, 0.4182, -0.0513, 0.1215, -0.0065, -0.2603, -0.0364, -0.0237, 0.0458, 0.0792, 0.0426, 0.1, 0.0, 0.1572, 0.057, 0.0358, -0.0816, 0.1764, 0.0564, -0.2373, -2.8732, -0.2347, 0.2063, -0.0921, 0.0887, -0.1146, -0.4752, 0.0652, -0.0261, 0.0, -0.0443, 0.012, 0.0018, 0.1547, 0.1601, 0.002, -0.232, 0.23, 0.0542, -0.4363, -0.5014, 0.1221, 0.0903, 0.0091, 0.0409, -0.1319, 3.433, -0.5713, -0.1036, 0.1312, 0.0, -3.4217, 0.1502, 0.1437, 0.0046, -0.0014, -0.1309, -1.2755, 0.0847, -3.1683, -0.0607, 0.4417, -0.0627, 1.0271, 0.0154, 0.0324, -0.2862, 0.0999, 0.0, -0.0572, 0.0, 0.1491, -0.0245, -0.0423, -0.038, -0.2107, 0.5407, -0.114, -0.2562, -0.0285, 0.0174, 0.1279, 0.0192, 0.0621, -0.3393, -0.0506, 0.2213, -0.0407, -0.0751, 0.1095, 0.0302, -0.4725, 0.7636, 0.0156, -0.055, 0.0685, -0.071, 0.0994, 0.0055, 0.0393, 0.0297, -0.0284, 0.0, 0.1447, 0.1178, 0.243, 0.0, 0.0713, -0.0561, 0.0, 0.8069, 0.0741, 0.1995, 0.1662, 0.2149, 0.0184, 0.0321, 0.0528, 0.0496, 0.1692, 0.0449, 0.1751, 0.0, -0.0062, 0.0631, 0.0251, -0.096, 0.0371, -0.1118, -0.058, -0.0238, 0.0832, -0.0718, -0.0287, 0.1186, 0.2004, 0.0803, -0.5163, -0.0732, -1.3727, 0.1842, 0.5747, -0.1046, 0.0, 0.0062, 0.7418, 0.0818, -0.6043, 0.089, 0.0394, 0.9594, 0.0174, -0.7763, -0.0351, -0.2367, 0.0057, 0.0292, -0.1109, -0.0892, -0.1904, 0.065, -0.1014, -0.1166, 0.0101, 0.1116, -0.0337, 0.2331, 0.0742, 0.0517, -0.0447, -0.091, 0.0719, 0.1792, 0.0187, 0.0, 0.0, 0.0526, -0.1468, 1.4456, 0.1351, -0.0581, -0.7654, -0.0368, 0.009, 0.047, 1.5578, -0.021, -0.0791, -0.003, 0.0888, -3.9667, 0.0293, 0.0116, 0.3234, -0.4774, 0.0577, 0.1417, 3.0569, 0.0442, -0.0062, 0.1917, 0.0183, -0.02, 0.2375, 0.0182, 0.3008, 0.0181, -0.5388, -0.1898, 0.1744, -0.0547, -0.0669, -0.1545, 0.316, -0.0141, 0.023, 0.0352, 0.0, -0.0336, -0.0565, -0.0397, -0.0725, -0.221, 0.0, 0.6905, -0.0034, -0.7458, 0.0858, 0.0851, -0.0878, -0.2049, -0.2453, -0.2512, -0.0023, -0.075, -0.8717, 0.0564, 0.6211, 0.2134, 0.0065, 0.0, 0.0088, 0.2111, 0.0748, 0.1541, 0.1207, 0.0111, -0.0379, 0.0196, 0.3483, -0.0282, -0.0115, -0.1283, 0.0, 0.0873, 0.0224, 0.0884, 0.206, 0.0729, 0.0222, -0.0075, 0.0386, 0.2146, -0.2105, 0.053, 0.3277, 0.043, 0.4817, 0.1363, 0.0371, 0.3636, 0.9637, 0.2851, -0.041, 0.4189, -0.0874, 0.0048, 0.0152, -0.0908, -0.0742, -0.0351, 0.0, 1.2862, 0.0, -0.1498, -2.302, 0.0046, 0.0675, 0.1886, -0.6682, -0.4541, -0.1142, -0.0126, -0.051, 0.0, 0.0539, 0.017, -0.0287, -0.0032, -0.3988, 0.0296, 0.0051, -0.1059, 0.1605, 0.0777, 0.0269, 0.0399, 0.0, 0.6845, 0.0, 0.009, -0.0427, 0.0668, -0.0303, -0.9932, 0.0276, -0.038, 0.069, 0.0065, -0.0385, 0.3349, -0.105, 0.0004, -0.17, 0.4263, 0.4366, -0.0677, -0.0419, 0.019, -0.118, 0.0093, 0.0665, -0.1196, -0.0473, -0.0282, 0.0453, 0.0396, 0.785, 0.0247, -0.0128, -0.0802, 0.0908, 1.4386, 0.0036, 0.0, 0.2178, -0.0217, -0.1729, 0.08, 0.0064, 0.2076, 0.0921, -0.1722, 0.0813, 0.0621, 0.0163, -0.0287, -0.1487, 0.099, 0.4121, 0.1051, 0.0, 0.0847, 0.1525, 0.2213, 0.1789, 0.0721, 0.088, 0.0412, 1.6743, 0.1812, 0.0132, 0.1649, 0.0, 0.0194, 0.639, 0.0939, -0.2966, 0.1105, 0.0211, 0.1146, 0.3808, 0.023, 0.1, -0.0349, 0.3624, -0.025, 0.0458, -0.3009, -0.0035, 0.5848, 0.0906, -0.1732, -0.0844, 0.0771, 0.0094, -0.0391, -0.033, 0.0192, -0.0861, -0.2606, 1.65, -0.07, -0.0283, 0.6136, 0.0412, -0.0486, -0.0881, 0.0208, -0.0036, -0.4511, 0.5817, -0.0367, 0.0019, 0.0, 0.0384, 0.6258, 0.0803, -0.0463, -0.0395, 0.9725, 0.0044, 0.1973, 0.1531, 0.334, 0.0, -0.0158, -0.0114, -0.0165, 0.0835, 0.0, -0.0659, 0.4439, 0.2025, -0.9486, 0.1167, 0.3052, -0.2044, 0.0159, -0.0088, 0.0552, 0.0698, -0.4145, 0.01, -0.0378, -0.0047, 0.0129, 0.4203, 0.1135, -4.8388, 0.0104, -0.0429, 0.0257, -0.1457, 0.0566, -4.918, 0.0232, 0.0472, 0.0343, -0.0204, 0.0225, 0.0712, 0.1219, 0.0516, 0.0459, -0.1061, 0.0005, 0.0392, 0.1155, 0.1874, 0.0924, -0.0705, -0.0777, 0.0426, 0.1707, -0.0065, 0.0876, -0.0215, -0.1453, 0.1264, 0.4206, 0.101, 0.009, -0.0635, 0.0281, -0.1499, 0.0064, 0.1986, 0.1901, -0.0886, -0.0038, 0.0, 0.0134, 0.464, -0.0744, 0.0415, -1.2144, -0.0734, 0.3577, 0.0297, -0.0855, 0.0152, -0.5525, 0.2479, -0.5282, 0.0, 0.0254, 0.1189, 0.5339, -0.3187, -0.1648, 0.0369, 0.0966, 0.0063, -0.3793, 0.0194, -0.3175, 0.0418, 0.1949, 0.026, 0.0322, 0.5163, 0.1577, -0.226, 0.1053, 0.042, 0.0381, 0.1296, -0.5363, 0.0996, -0.0695, 0.1388, -0.1043, -1.1108, -0.1345, 0.0795, -0.0579, 0.0, -0.003, -11.4333, -0.0017, 0.1419, 0.0031, -0.1412, -0.3058, -1.0467, -0.236, 0.0576, 0.104, -0.014, 0.4166, -19.84, -19.9317, -0.0614, 0.3049, -1.0506, -1.6653, -0.2253, 0.2986, 0.0954, -0.0242, 0.0849, 0.1786, 0.0616, 0.1701, 0.1543, -0.0508, 0.0497, -0.0516, 0.8, -0.2332, -0.0532, -0.1171, 0.6823, -0.098, -0.0491, -0.0158, -0.0679, 0.0371, 0.3148, 0.0, 9.115, 0.075, 0.0488, -0.0224, 0.3792, 0.1206, 2.2094, -0.7225, 0.0065, 0.0327, 0.1644, -0.2304, -0.0381, 0.0879, 0.0816, 0.0188, 0.018, -0.0243, 0.0864, -0.2917, 0.0121, -0.0017, -1.0689, 0.0487, 0.0936, 0.056, 0.056, -0.4589, 0.0299, 1.3602, 0.0027, 0.3928, 0.3783, -0.0584, -0.2044, -0.1086, 0.0033, -0.0281, 0.0536, -0.1798, 0.0222, 0.067, 0.4153, -0.0292, 0.1187, 0.0, -0.3429, -1.9322, 0.3453, -0.557, 0.172, -1.1039, 1.1805, -2.2782, 0.0367, 0.0, -0.0946, -0.032, 0.0, 0.0986, -0.1049, -8.3388, 0.0699, 0.0887, -4.1721, -0.0384, 0.1295, 0.0494, -0.0241, -0.0488, 0.0, 0.0343, -0.3088, 0.0517, 0.0734, 0.0072, -0.0115, -0.0215, 0.518, -0.0239, 0.0931, -0.3051, 0.0165, 0.0128, 0.0195, 0.0382, 0.0012, 0.0604, 0.1259, 0.003, 0.1325, -0.0859, 0.0177, 0.6436, 0.4621, 0.0229, 0.8947, 0.2475, -0.6776, 0.0, 0.0292, 0.0644, -0.2378, 0.0829, 0.1096, -0.0803, -0.0902, 0.0414, 0.0304, -0.0632, 0.1503, 0.0162, -0.1872, 0.5303, -0.4393, -0.0471, -0.0686, -0.1167, -0.0881, 0.0241, -0.2045, 0.1119, 0.039, 0.0167, 0.1951, 0.348, -0.1123, -0.9515, -0.0656, 0.0378, 0.0096, 0.0291, 0.0276, 0.1701, 0.4268, 0.0599, -0.0768, 0.4676, 0.491, -0.0767, -0.3193, 0.1543, -0.0084, 0.212, 0.2877, -0.0089, -0.0428, -0.0989, 0.0, 0.0204, 0.0, 0.0586, 0.1896, 0.212, -0.097, 0.0354, -1.0319, 0.1183, -0.0747, -0.08, -0.0336, -0.0254, -0.0809, -0.2902, 0.0317, 0.0468, 0.03, 0.0986, 0.0229, 0.0868, 0.0028, -0.016, 0.019, 0.0422, 0.02, 0.1995, 0.0379, 0.3828, 0.0566, 0.0252, 0.0192, 0.0638, 0.1028, 0.0093, 0.0255, 0.0, 0.0064, 0.092, 0.0, -1.2853, -0.0957, -0.3303, -0.1474, -0.1164, 0.9676, 0.1364, -0.1246, -0.1039, 0.0348, 0.0463, -0.0271, -0.061, -0.0097, -0.186, 3.3135, -0.063, 0.0004, 0.0182, -2.7946, 0.4483, -0.0583, 0.0, -0.1419, -0.01, -0.172, 0.4935, 0.0353, 0.2135, 0.0738, -0.0809, -0.1096, -0.8122, -0.124, -0.0073, 0.6502, 0.2277, 0.3741, -0.4502, 0.1587, -0.0729, -0.6464, -0.059, 0.0, 0.093, -0.0175, 0.0862, -0.0745, -0.2717, 0.0076, -0.0004, 5.49, -0.0155, 0.0, 0.6291, 0.0106, 0.0217, 0.0714, 0.4558, 9.384, 0.0655, 0.0774, 0.0987, 0.0, 0.6585, 0.0, -0.1763, 0.1135, 0.0572, -0.0303, 0.4515, 0.095, -0.211, 1.1711, -0.0802, 0.0867, -0.2004, 0.0133, 0.0199, 0.0426, -6.0552, 0.352, -0.1924, -0.0519, -0.0214, -0.0758, 0.0, 0.0, 0.0804, -0.2794, 0.1215, 0.151, -0.0956, -0.0168, 0.0, 0.9811, 0.2719, -0.0487, -0.0411, 0.0273, -0.0023, 0.0, 0.3883, 0.0508, 0.1486, 0.3162, 0.3186, -0.1639, -0.1198, 0.2531, 0.0, 0.5582, 0.01, 1.2024, 0.0778, 0.1245, 0.0689, 0.0684, -0.0009, -0.0071, -0.0174, 0.2066, 0.1016, -0.0079, 0.1203, 0.0105, 0.0338, -0.278, 0.0241, -0.0312, -0.0835, 0.3406, -2.6992, 0.0914, 0.0333, -0.0352, 0.0161, 0.1055, 0.0293, 0.0, 0.0716, 0.4306, 0.3575, 0.0623, 0.0504, -0.2174, -0.0632, 0.016, 0.5305, -0.1852, 0.1663, 0.0629, -0.1662, 0.3892, -0.2636, -0.0003, 0.0742, 0.0718, 0.0308, -0.2341, 0.013, 0.0709, 0.1118, -0.0488, 0.0678, 0.1136, -0.0463, -0.0137, -0.0186, 0.006, 0.122, -0.1009, 0.0407, 0.1141, 0.1114, -0.062, -0.2686, 0.0, -0.0213, 0.0871, -0.0335, 0.4277, 0.0825, -0.2896, 0.0365, 0.4254, 0.1825, 5.0824, -0.1124, 0.1028, -0.075, 0.017, -0.1698, -0.2515, 0.0198, 0.0127, -0.3428, -0.1284, -0.0138, -0.0566, -0.3618, -0.0412, 0.0, -0.5178, 0.1039, 0.0434, -0.0455, 0.0807, -0.0784, -0.9645, 0.0426, -0.0106, 0.1519, 0.0209, 0.0077, -0.4175, 0.24, -0.0305, -0.0164, -0.0467, 0.0, -0.2236, 0.0, 0.104, -0.1161, 0.1054, -0.3279, -0.0851, 0.0028, -0.049, -0.0611, 0.6366, 0.0354, 0.0387, -0.0045, -1.1631, 0.0, -0.0665, -0.056, 0.2825, 0.0253, 0.0455, -0.3708, 0.027, 0.1848, 0.0838, 0.2259, -0.0142, 0.0436, 0.0314, 0.0216, -0.0986, 0.0967, -0.0139, -0.0144, -0.0402, 0.0972, -0.2428, -3.6104, 0.0053, -0.2286, 0.0007, 0.0403, -0.0037, 0.0246, -0.0772, -0.1221, 0.1216, 0.061, 0.0, 0.0043, 0.063, 0.0698, -0.1482, -0.0454, -8.758, -0.4676, 0.0677, 0.0239, 0.026, 0.0162, 0.1064, 0.1448, -1.0375, 0.0926, -0.1448, 0.8525, -0.9812, -0.1063, 0.0, 0.4165, -0.5368, 0.0373, -0.3923, -0.0132, -0.0305, -0.0011, -0.0521, -0.0249, 0.0093, 0.0288, 0.3527, -0.0055, -5.2592, 0.0099, 0.0, -0.5619, 0.0107, 0.0253, -0.0366, -0.7786, 0.0024, 0.0, -0.0633, 0.028, 0.1046, 0.0062, 1.1523, -0.2195, -0.0472, -0.0079, 0.2447, 0.5767, 0.1281, 0.675, -0.1811, -0.0119, 0.0476, 0.1225, 0.1052, -0.0243, -0.1184, 0.4121, -0.1739, 0.0599, -0.0519, 0.0, 0.1038, 0.0195, 0.0048, 0.1251, 0.0265, 0.1175, 0.0, 0.0837, 0.0324, 0.0603, 0.2962, 0.0545, 0.0437, 0.0142, -0.2155, 0.0157, 0.0, -0.0534, 0.0, -0.0247, -0.0616, 0.3259, -0.0339, -0.0465, 3.4818, 0.0656, 0.8868, 0.0198, 2.5225, -0.4882, 0.0, 0.2535, -0.013, 0.0573, 0.0502, -0.0036, -0.0586, 0.0348, -0.056, -0.1298, 0.1419, 0.0528, -0.0173, 0.0586, 0.1151, -0.0079, 0.0251, 0.0, 0.0281, -0.1603, -1.6508, 0.2188, 0.1628, -0.1948, 0.0166, 0.0886, -0.0536, 0.0, 0.0134, -0.0544, 0.0486, -0.0866, -0.4094, -0.2822, 0.0732, 0.0725, -0.0619, -0.0017, 0.0469, 0.0745, -0.3384, 0.0216, 0.0529, 0.1937, 0.0, 0.0419, -0.0364, 0.1111, 0.1328, -0.0313, -0.0389, -0.0047, 0.1471, 0.0007, 0.0705, 0.0851, -0.2431, -1.125, 0.0132, 2.85, 0.1325, -0.0325, 0.0057, -2.3958, -0.0622, 0.1161, -0.0579, 0.0254, -0.0105, -0.9998, -0.0187, -0.0598, 0.0106, -0.042, -0.033, -0.2123, 0.1374, 0.0116, -0.2456, 0.0096, -0.0663, -0.2084, 0.2536, 0.0362, 0.0808, 0.0329, 0.0, -0.013, 0.0142, 0.1156, -0.007, 0.056, 0.0887, 0.0825, 0.0689, -0.1199, 0.0904, -0.0453, 0.0191, 0.0488, 0.0, 0.008, -0.0017, 0.0645, -0.0136, 0.0, -0.0729, -0.051, 0.3273, 0.384, -0.1526, -0.0609, 0.3113, 0.0699, -0.1064, -0.0285, 0.2301, 0.1073, 0.3367, -0.0701, 0.0031, -0.0198, 0.0049, -0.0427, 0.1421, 0.015, 0.0706, 0.0943, 0.1061, 0.1306, 0.0231, -0.1965, 0.0591, 0.2804, 0.0551, -0.0384, 0.0683, 0.0605, 0.0306, -0.0139, 0.0483, 0.0297, 0.0086, 0.0527, 0.2058, -0.0409, -0.2066, -0.0658, -0.0731, 0.096, -0.0412, 0.2711, -4.6839, -0.2978, -0.0671, 0.0, -0.0088, 0.0926, 0.028, 0.0116, -0.0207, -0.4691, -0.5826, 0.0655, 0.0372, 0.1795, 0.0, 0.4701, 0.0, 0.0, 0.4813, -0.0906, -0.0076, 0.0748, -0.2607, 0.3499, -0.5202, 0.0581, 0.2277, -0.188, 0.0357, 0.0, 0.0, -0.0319, 0.2631, 0.137, -0.0508, 0.0888, 0.0737, -0.0459, -0.0908, -0.102, 0.4009, 0.0793, 0.0604, -0.0487, 0.0068, 1.0767, 0.2037, 0.0798, -0.5526, -0.0259, 0.0305, 0.0204, -0.3715, -1.3227, 0.0849, 0.1186, 0.1179, 0.0993, -0.0557, -0.0795, -0.0616, -0.0391, -0.0217, -0.0127, 0.2492, -0.09, 0.0497, 0.052, 0.1911, -0.0053, -0.0686, -0.0575, 0.0891, -0.1726, -5.2877, -0.1121, 0.0094, 0.1337, 4.9118, 0.1416, -0.0254, 0.0, 0.0977, 0.1325, -0.756, 0.022, -0.0087, -0.0046, 0.9711, 0.3284, 0.3812, 0.1158, -0.0064, -0.0383, 0.014, -0.0273, 0.0137, -0.0112, -0.0033, 0.056, -0.0338, 6.6, -0.0344, 0.0048, 0.0103, 0.039, -0.0153, 0.0065, 0.0175, -0.3762, 0.1149, -0.0007, 0.0381, -0.0004, -0.0279, 0.0288, 0.0014, 0.0778, -0.2521, -0.019, 0.0028, 0.0356, -0.2214, -0.0219, -12.0036, 0.0212, 0.0939, 0.59, -0.1167, 0.0844, -0.2472, 0.5852, -0.0425, -0.0088, -0.0328, 0.1459, 0.0561, -0.0126, 0.1066, 0.0578, 0.0327, -0.0208, -0.645, 0.0544, 0.2275, -0.0006, 0.1208, 0.1429, -0.136, 0.2591, -0.0014, -0.0611, -0.0027, 0.0161, -0.1013, 0.07, 0.5139, 0.1389, 0.0, 0.0257, 0.0154, 0.0922, 0.0241, 0.2767, -0.1202, 0.0478, -0.3844, 0.0708, 0.0017, -0.4402, 0.1942, -0.0561, 0.105, 0.0086, 0.0512, -0.0167, -0.0016, 0.0, 0.176, 0.024, 0.0333, -0.0529, 0.1865, -0.1051, -0.0201, -0.01, -0.5841, -0.0195, 2.1925, -0.6307, 0.0109, -0.0671, 0.0, -0.0872, -2.0417, -1.9209, -0.2307, 0.2266, 1.0622, 0.0066, 0.9178, 0.0521, 1.1167, 0.4892, 0.0475, 0.1326, -1.2222, -0.0412, 0.0262, 0.1912, 0.4647, 0.8183, 0.0863, 0.0282, -0.1354, 0.0051, -0.015, 0.2098, -0.0262, 0.0, -0.0842, 0.0115, 0.0244, 0.01, 0.4664, 0.0963, 0.3392, -0.0099, -1.5168, -0.035, 0.0392, -0.1059, 0.0545, -0.1375, 0.165, 0.0908, 0.1072, 0.2516, 0.2766, 0.2425, -0.0067, 0.0687, 0.0675, 0.0751, 2.4036, -0.2335, 0.0062, 0.4435, -0.0082, -0.0344, 0.2453, 0.0921, 0.0, 0.0146, 0.1977, -0.1862, 0.0783, -0.0328, 0.16, 0.121, -0.104, -0.0806, -0.0228, -0.897, 0.565, -0.0175, -0.1172, -0.001, -0.0644, 0.1731, 0.0228, 0.0833, -1.56, -0.0359, 0.4813, 0.02, -0.0282, 0.1517, -0.0645, 0.0, 0.1524, -0.1358, 0.0407, 0.0, 0.0434, -0.0028, -0.2701, 0.1826, 0.0212, 0.0, 0.0623, -0.1796, -0.076, 0.1695, -0.0538, 0.0775, 0.4298, 0.0963, 0.3415, 0.066, 0.05, 0.425, 0.1909, 0.0, 0.051, 0.0, 0.0248, -0.3159, 0.2434, 0.0374, 0.0817, 0.0846, 0.0917, -0.0019, 0.0741, 0.4639, 0.0769, 0.0395, 0.0629, 0.0702, 0.0604, 0.1314, 0.0138, -0.0681, 0.1707, 0.0909, 0.0891, -3.2004, 0.0271, -0.08, 0.1106, -0.684, 0.074, 0.0403, -0.1351, 0.0, 0.0098, -0.0319, 0.0974, -0.1084, 1.1988, 0.1134, 0.4786, 0.1534, 0.9918, 0.2005, -0.1093, 0.0769, -0.1221, -0.0384, 0.1568, 0.0517, -0.7094, 0.1153, -0.8631, -0.2535, 0.6135, -0.0038, 0.6711, -1.3523, -0.017, 0.0219, 0.0529, 0.0598, -0.0986, 0.0151, 0.09, 0.244, -0.1314, -2.7827, -0.4587, 0.2672, 0.0, 0.1018, 0.0963, -0.1096, 0.077, 0.0719, 0.1555, -0.4871, -0.0339, 0.356, 0.002, 0.0344, 0.3457, 0.1082, 0.078, 0.2868, 0.2583, -0.0294, 0.1052, 0.0431, 0.1103, -0.0976, 0.154, -0.221, 0.0, 0.0437, 0.0, 0.0276, -0.3162, -0.1143, -0.0621, -0.0118, 0.0434, 0.0197, 0.6634, 0.0938, 0.1383, 0.0, 0.0, 0.0, 0.0692, 0.0803, -0.0793, 0.1523, -0.0185, 0.0, 0.1947, 0.6069, -0.0784, -0.0275, 0.0215, 0.0136, 0.043, 0.0025, 3.1742, 0.0, 0.093, -0.7708, 0.1992, -0.2697, 0.1017, 0.1364, 0.0342, 0.1609, 1.1358, -0.5149, -0.0326, 0.0, 0.0803, 0.0, 0.4839, 0.0085, -0.0929, -0.1413, -0.0625, 0.2936, 0.0175, 0.0222, -0.0221, 0.0999, 0.0623, 0.0661, 0.5356, 0.123, 0.5148, 0.1666, -0.0031, 0.1516, -0.0697, 0.2149, 0.1132, 0.4686, -0.0982, -0.0524, 0.0257, 0.1273, 0.0821, 0.075, -1.3746, 0.0136, -0.0132, 0.2778, 0.0878, -0.0729, -0.1216, -0.3006, 0.077, -0.0203, -0.0311, -0.0054, -0.1463, -0.1201, -0.0631, 0.4018, 0.0231, 0.0053, 0.0241, -0.0232, 0.0, -0.0738, 0.1262, -3.4565, -0.2072, 0.0757, -0.0198, 0.1749, -0.1598, -0.0562, -0.0772, -0.1159, -0.0747, 0.1454, 0.1985, 0.5972, -8.0591, -0.256, 0.0513, -0.1566, -0.0408, 0.0425, 0.0588, 0.0945, 0.0, 0.051, -0.0273, -0.3272, -0.0732, -0.0487, 0.4696, 0.236, 0.07, -0.064, -0.1022, -0.0529, 0.0693, -0.2359, -0.1497, 0.1183, -0.0648, 0.0475, 0.0, 0.0417, -0.1257, 0.0, -0.2317, -0.0613, 0.0675, 0.0534, 0.0446, -0.0244, 0.0988, 0.0088, 0.0649, 0.0567, 0.006, 0.0775, 0.0, 0.1711, 0.0596, -0.8767, 0.0863, 1.3697, -0.1219, -0.105, 0.05, 1.5795, 0.1906, -0.0641, 1.6442, -0.0022, -0.4144, 0.0509, 0.0209, 0.0, 0.0551, 0.2433, 0.3592, 0.0, 0.0, 0.1523, 0.6472, 0.0115, 0.0148, -0.0483, -0.0844, 1.1142, 0.0475, -0.1532, -0.0951, -0.2399, -0.1142, 0.0085, -2.2578, -0.3817, 0.129, -0.1812, 0.1838, -0.1321, -0.0113, -0.8328, 0.1988, 0.2181, -0.0815, -0.6074, -0.3475, -0.0694, 0.2332, -0.1515, 0.2762, -0.8966, -0.0712, 1.8833, 0.1156, -0.3532, -0.0067, 0.0726, 0.0, -0.0243, 0.1884, 0.2863, 0.0746, 1.665, 0.0013, -0.0382, -0.2613, -0.0779, -0.0069, -0.1474, 0.0099, 0.0635, -0.1286, -0.0082, 0.1336, 0.0148, 0.0537, 0.0143, -0.0368, 0.0228, 0.0771, -0.0465, 0.0154, -0.0142, -0.0274, -0.3927, -0.0307, -0.0286, -0.0499, 0.0, -0.0087, -0.1379, 0.1722, -0.1014, 0.1026, 0.3161, 0.04, -0.0282, 0.045, 0.0299, 0.1316, -0.3116, 0.0082, -0.5548, -0.0535, 0.0381, 0.0, 0.3803, 0.037, -0.9386, -0.24, 0.0378, -0.0094, 0.0104, 0.0359, -0.1097, 0.1223, -0.0921, 0.1017, -0.0513, 0.1985, 0.7204, 0.1163, 1.5452, -6.9562, 1.729, -0.0627, -0.0496, 0.1531, -0.009, 0.036, -0.1209, -0.1038, -0.3885, -0.1308, -0.0615, 0.1005, -0.03, 0.0089, -0.0603, 0.1195, -0.071, -0.0222, 0.0398, -0.0142, 0.0337, -0.043, 0.2817, 0.0549, -0.0187, 0.1943, 0.0, -0.2414, 0.0852, 0.002, 1.25, -0.014, -1.2269, 0.1586, 0.0174, 0.0401, 0.2947, -0.1125, -0.0666, 0.0, 0.0075, -0.2127, 0.0, -0.2774, 0.0145, 0.1477, 8.9407, -0.0122, -0.0332, 0.0668, -0.1814, 0.0007, -0.0223, -0.1062, 0.1773, -0.0522, 0.0903, 0.0094, 0.0199, -0.0687, 0.325, 0.0798, -0.1314, 0.0503, 0.1061, -0.4319, -0.0024, 0.0707, 0.2182, 0.0479, -0.2839, 0.1311, -0.5576, -0.0688, -0.3256, -0.7386, -0.2766, -0.0082, 0.3244, 0.1599, 0.0766, 0.1125, 0.0048, -0.0611, -0.2064, 0.0, -0.2791, -0.0628, 0.1428, 0.1222, -0.0145, 0.0048, -0.1468, -0.4157, 0.1628, 0.2515, 0.0693, -0.0429, 0.1384, 0.1129, -0.0274, 0.1283, 0.2168, 0.0007, 0.1613, 0.0539, 0.7581, 0.056, -0.6673, 0.0, -0.0048, 0.29, 4.6858, -0.2585, 0.014, -0.1589, 0.1101, 0.2773, 0.0006, 0.3719, 0.3881, -3.7296, -1.9593, -0.07, 0.0851, 0.0284, -0.0561, 0.0145, 0.1447, -0.4611, 0.7105, 0.0168, 0.1615, 0.1176, -0.0157, 0.6241, 0.2727, 0.0342, -0.0175, 0.3613, -0.0433, -0.2041, -0.114, -0.0988, -0.0248, 0.0822, -0.1793, 0.1496, 0.0049, -0.494, 0.1541, -0.0865, 0.6656, 0.1003, -0.0082, 0.1066, 0.1661, 0.0818, 0.0515, -0.0754, -4.6311, 0.1886, -0.0358, 0.4994, 0.1202, -0.8371, -0.0368, 2.1806, 0.0241, 0.0143, -0.0293, -0.3508, -19.1671, 0.7658, -5.2942, 0.0471, 0.0, 0.0103, 4.55, 0.0223, 0.0269, 0.0519, 0.5454, 0.1215, 0.1288, 0.1118, 0.0467, -0.0962, -0.0405, -0.0108, 0.4052, -1.6097, 0.6939, 0.223, 0.1405, -0.0002, 0.1092, 0.2758, 0.046, -0.2377, -0.0104, -3.0142, 0.0617, -0.2436, -0.1049, -0.1531, -0.0284, 0.1349, -0.2598, 0.1828, -0.0591, 3.1664, 0.218, 0.0851, -0.0375, 0.0448, 0.1135, 0.0696, 0.1568, 0.1217, -0.0354, -0.0188, 0.024, -20.9018, 0.0376, -0.1769, 0.0888, 0.2473, -0.1409, 0.0439, -0.0513, -0.5965, -0.1408, -0.0575, -0.0554, -0.0539, -0.0898, -0.004, -0.0304, 0.0319, -0.0473, 0.0, -0.0626, -0.0475, -0.0696, 0.0968, -0.1758, 0.1542, -0.0794, 0.0109, -0.073, 0.1314, 0.0327, 0.0, 0.4148, 0.0939, -1.1803, 0.0567, -0.0056, -0.7144, 0.1026, -5.9848, 0.0084, 0.1592, 0.0315, 0.0737, 0.0765, -0.0708, 0.1939, 0.0286, -0.068, 0.0, -0.0428, -0.0005, 0.0035, 0.1176, 0.0, 0.3268, 0.0032, 0.9277, -0.0013, 0.005, 0.2768, 0.2725, 0.1303, -0.0016, 0.0049, 1.6637, -0.0096, -0.011, 0.1043, -0.0616, 0.0396, 0.025, 0.0146, 0.8827, 0.0233, 0.0609, -0.3168, -0.4384, 0.3679, 0.3144, 0.149, -0.0085, 0.3566, -0.0551, -0.0228, -0.0505, 0.1358, 0.1781, 0.0439, -0.4922, 0.1424, 0.2424, -0.0691, -0.1005, 0.1052, 0.0879, 0.2786, 0.1187, 0.0205, 0.0065, 0.2225, -0.0234, 0.0218, 0.0681, -0.0035, -0.0988, -0.0294, 0.0516, -0.1156, 0.1227, -0.029, 0.0155, -0.0903, -0.0927, 0.0384, -3.5932, 0.0156, -1.4458, -1.5657, 0.6397, 0.1391, 0.0387, 0.1105, -0.3653, 0.1959, 0.0823, 0.0, -0.8829, -0.5107, 0.57, 0.0, 0.3506, 0.1808, 0.106, 0.1399, 0.3396, 0.0006, -18.3975, 0.0028, 0.238, 0.0678, 0.0075, -0.0032, -0.0095, 0.0167, -0.1214, 0.006, 0.0549, 1.7562, 0.0487, 0.1474, 0.0224, 0.1463, 0.1376, 0.3194, -0.0466, 0.3465, -0.089, 0.0673, 0.114, -0.089, -0.0192, -0.0154, -0.3729, -0.0385, 0.0001, 5.5921, -0.0429, 0.5161, -0.1603, -0.2393, -0.0378, 0.1531, 0.2053, -0.1092, 0.0923, -0.3991, -0.5871, -0.0482, -0.0377, -0.0852, 0.0, -0.3281, -0.0576, 0.0, 0.8037, 0.0305, 0.0358, 0.0482, 0.2205, -0.3139, -0.0137, -2.1372, 0.3186, -0.9792, 0.1578, -0.0286, 0.1195, -0.328, 0.0027, 0.0404, 0.0347, 0.0222, -0.0205, 0.5881, 0.0301, 0.0653, 0.0223, -0.4946, 1.8855, 0.1895, -0.0713, -0.0522, 0.3696, -0.157, -0.0338, 0.0009, 0.595, -0.0041, 0.1167, -0.1086, 0.0, 1.1147, -0.1503, 0.7946, -0.2421, -0.2645, 0.0884, -0.1212, 0.354, 0.1146, 0.9613, -0.0234, 0.1755, 0.1294, -0.1078, 0.0624, 0.0395, -0.0134, 0.0414, 0.0123, -0.0176, -0.0379, 0.0, 0.1511, 0.2668, 0.1095, 0.4043, -0.0054, 0.0688, -0.1758, 0.1804, -10.7054, 0.0952, 0.5212, 0.1719, 0.0148, 0.0113, -0.0035, 0.0381, -18.1292, 0.0, 0.1796, -0.3097, 0.1174, -18.7733, 0.0899, 0.1967, -1.9117, -0.2653, 0.0361, -0.1243, 0.0503, -1.1348, 0.3706, 0.0293, -1.1465, 0.0208, 0.0821, -2.9468, 0.1153, 0.0731, 0.0505, -1.7105, 0.033, 0.0311, 0.3394, -0.6433, -1.4367, -20.17, 0.1059, -1.0813, 0.2073, 0.0858, -1.4916, -20.284, -1.3079, -0.0031, -1.0577, -0.0329, 0.055, -0.2385, -0.5654, -0.172, -0.0198, 0.3099, -0.0481, 0.005, 0.0139, 3.0377, -0.0874, 0.1174, 0.2961, 0.1455, 0.3096, -0.0618, -0.1273, 0.3294, 0.1178, -1.1568, 0.0894, 0.0508, 0.1786, 0.2912, 0.211, 0.0, 0.1468, -2.3172, 0.515, 0.0589, -19.22, 0.0249, -0.9204, -0.1639, 0.0288, -0.0441, 0.141, -23.7373, -0.043, -0.0782, 0.0598, -0.103, 0.0968, 0.0225, 0.0704, 0.0892, -1.4848, 0.0728, 0.1026, 0.5605, -0.1446, 0.0801, -0.3484, 0.1495, -1.4828, 0.0667, 0.1592, 0.1459, -0.0136, -1.4676, -0.1469, 0.4567, -13.123, 0.2116, -0.01, 0.1001, 0.0744, -0.0458, -0.067, 0.2114, 0.1097, -2.141, -0.0259, -3.3034, 0.2335, 0.2471, 0.0577, 0.0, -0.0017, 0.0873, 0.096, -0.4242, -21.5742, 0.0689, 0.3521, -0.1821, -0.0959, 0.3292, 0.079, -0.1317, 0.0118, 0.0221, -1.4674, -1.5281, -1.5856, 0.0615, 0.0726, 0.0157, -0.0166, -2.5, 0.0516, 0.0838, -1.4278, -0.2462, -0.0355, 0.0859, -0.0413, -0.0421, -0.0029, 0.0123, -0.2301, -0.0142, -0.0693, 0.1553, -0.2497, 0.027, -0.7096, 0.4903, 0.0179, 0.1969, -0.0515, -0.0636, -1.0094, -0.0318, 0.0264, 0.2081, 0.6317, 0.0722, 0.0, -0.0041, 0.1073, 0.0154, 0.0328, -0.0123, 0.0, -0.0351, -0.0185, -0.2929, -0.2289, -0.3645, -0.1036, 0.0, -0.1132, -0.1533, -0.0229, 0.1271, -0.293, -0.0255, 0.0081, -0.0352, 0.0422, -0.0205, -0.2859, 0.0567, 0.0715, -0.3037, -0.1466, -0.0778, -0.0152, 0.1376, -0.6226, -0.2095, -4.2119, 0.7014, -0.049, -0.0585, 0.1517, -0.3492, -0.0361, 0.4406, -0.1612, -0.5923, 0.2918, 0.121, -3.7408, -0.0831, 0.1262, -0.4474, 0.1252, -0.1472, 0.0, 0.4734, -0.1071, 0.0, -0.1119, -0.055, -0.0622, 0.0, -0.082, -0.0802, 0.0784, 0.1868, 0.0198, 0.1018, 0.0274, 0.0136, -0.392, 0.1123, -0.1629, 0.0043, 0.0842, 0.039, -0.0575, -0.0303, 0.0119, -0.0847, 0.0576, 0.0289, -4.85, 0.0389, 0.003, 0.0124, 0.006, -0.1007, 9.2913, -0.2821, 0.0178, -0.6324, -0.1156, 0.1189, -0.045, 0.0793, 0.0584, 0.2271, 0.0092, -0.2019, 0.0016, -4.5289, 0.0753, 0.1381, 0.0419, 0.0192, -0.051, -0.0661, -0.1251, -0.0683, -0.0534, -0.1066, -0.1208, -0.0555, -0.0349, -0.052, 0.015, 0.1059, -0.01, -0.3475, -0.0316, -0.4243, 0.0, 0.4045, -0.0569, 0.3234, 0.0466, -0.0789, -0.0551, 0.0052, 0.0148, 0.0352, 0.0669, 0.0521, -0.1452, -0.2559, 0.0017, 0.0, 0.7118, -0.0249, 0.6246, 0.1771, 0.1411, -0.0122, -0.1358, 0.0092, 0.0, 0.231, -0.0156, 0.0573, 0.0268, -0.6515, -0.0405, 0.0746, -0.0856, 0.1621, 0.0094, 0.1206, 0.0, 0.0033, 0.0624, 0.0558, -0.9787, -0.1427, 0.0105, 0.0112, -3.225, 0.1215, 0.0934, -0.3423, -0.06, 0.0124, -1.8669, 0.0635, 0.0121, 0.2294, 0.0871, 0.0588, -0.0343, -0.0164, -0.0449, 0.2181, -0.0304, -0.0166, 0.0816, -0.0121, 0.0012, -1.4096, 0.066, 0.3743, 0.2596, 0.0297, -0.0502, 0.1062, 0.2047, 0.1203, 0.0073, 0.0796, 0.0469, -0.0353, -0.0713, -0.0426, -0.0024, 0.0, 0.2925, 0.046, -0.0978, -0.0109, -0.4637, -0.3355, 0.1763, 0.0455, -0.0102, -0.0222, -0.0375, 0.0667, 0.0426, 0.0422, 0.0982, 0.0659, 0.0059, 0.0336, -0.2535, -0.0634, 0.1734, 0.0731, 0.0789, -0.2271, -0.0636, 0.0172, 0.1092, -0.2493, -0.021, 0.1093, -0.2911, 0.0, -1.1561, -0.0676, 0.1855, 0.1499, -0.0481, 0.1134, -0.0136, -0.1039, 0.0335, 0.0077, 0.0218, 0.0002, -0.1245, 0.231, -0.0331, 0.198, -0.0425, -0.0712, -0.1809, 0.3591, -0.2928, -0.3624, 0.0636, -0.0097, 0.0, -0.0034, 0.0144, 0.0, -0.0644, 0.0596, 0.0221, 0.0475, 0.0356, 0.1728, 0.8125, 0.1679, 0.1333, -1.11, -0.0088, -0.0238, 0.0468, 0.0779, -0.133, -0.5148, -0.0176, -0.0344, 1.3605, -0.0648, 0.1937, 0.1257, 0.0856, -0.3338, 0.5723, 0.0, 0.0811, -0.4527, -2.0268, 0.1188, -0.0887, 0.0391, 0.0566, 0.0029, 0.0707, 0.1269, 0.089, 0.0724, -0.2932, 0.2074, -0.3962, -0.0222, -0.0144, 0.2292, 0.0291, 0.0058, 0.0233, 0.1057, 0.0639, 0.1083, -0.0331, 0.0404, 0.094, 0.1041, -0.0219, -0.0047, -0.0076, 0.1097, -0.0024, 0.0033, 0.0171, 0.0991, -0.0787, -0.0124, 0.0496, 1.1106, 0.0482, 0.0655, 0.3653, -0.1299, 0.2217, 0.1337, 0.0059, -1.3963, -0.1433, 0.0266, -0.0527, -0.1008, -0.0518, 0.2567, -0.2186, 0.27, -0.082, 0.0695, 0.1078, 2.7375, -0.1027, -0.1295, -0.0501, -0.0944, -0.0194, 0.035, 0.0378, -0.1859, 0.2085, -0.0561, 0.0, -0.7314, 0.0117, -11.4767, 0.0757, 1.9089, -0.2486, 2.1653, 0.0107, -0.5008, -0.1158, 0.0, 0.0362, 0.0464, -0.1927, 0.0632, 0.256, -0.1696, 0.0235, -0.048, 0.0127, 0.0559, -0.0249, 0.1761, 0.0088, 0.0, -0.1048, 0.0543, 0.1553, 0.1015, 0.0197, -0.19, -0.0966, -0.0607, 0.0195, 0.3565, 0.0564, -0.0103, 0.0, 0.0976, -0.0013, 1.18, 0.037, 0.0064, 0.0542, -1.6608, 0.1647, 0.1285, -0.0151, 0.0826, -0.0091, -0.0905, 0.0384, 0.0308, 0.0793, 0.0857, 0.6319, 0.4681, 0.0089, -0.0268, -0.2867, -0.7608, 0.0, 0.2154, -0.0641, 0.35, 0.0745, 0.1801, 0.1014, -0.1759, 0.0659, 0.4135, 0.0754, 0.1481, 0.1361, -0.1679, 0.0857, -0.0364, 0.072, 0.0138, 0.0443, 0.0894, 0.0228, -0.0042, 0.1402, -0.0414, 0.0, -0.0108, -0.0426, 0.0696, -0.3201, -0.0355, -0.1233, -0.0088, 0.0924, 0.0885, -0.0944, -0.1276, 0.0, 0.1323, -0.3878, -0.1145, -0.1983, 0.2477, 0.0507, 0.0616, 0.0168, -0.115, -0.0873, -0.0494, -0.5555, -0.0828, -0.0417, 1.7407, -0.0037, -0.1586, -0.2155, 0.2901, -0.1717, -0.1001, -2.9923, -0.0905, 0.3624, 0.0199, 0.8924, 0.0254, 0.0478, 0.1186, -0.0553, 0.1109, -0.0901, 0.2968, 0.1372, 0.0, -0.1266, -0.6901, 0.6217, -0.0703, 0.4981, 0.066, -0.3812, -0.1121, 0.0928, 0.0091, -0.1089, -0.032, 0.0, 0.1073, 0.1355, -0.1284, 0.0327, -0.0787, -0.7033, -0.1607, 0.1587, 0.2688, 0.0635, 0.0628, -0.0389, 0.0781, -0.117, -0.1053, -0.0419, 0.1675, -2.2839, 0.0016, -0.1349, -0.015, 0.0, -0.0814, 0.2215, -0.0962, -0.0112, 0.2287, 2.1287, -0.1287, -0.0991, 0.0637, 0.1678, 0.1605, 0.4298, -0.0191, 0.6154, -0.6646, 0.0538, 0.1241, 0.0122, -0.0015, 0.0149, 0.0057, -0.8887, -0.1632, -0.0336, 0.2858, 0.2357, -0.098, -0.4343, -1.1158, 0.039, 0.5095, -0.3074, 0.0031, 0.0915, 0.0297, 0.0531, 1.0072, -0.239, -0.0982, 0.4115, -0.0078, -0.0396, 0.0198, -0.2668, -0.0173, 0.1636, 0.0186, 0.0079, -0.1383, 0.0, 0.1981, 0.1441, -0.0828, -0.0396, 0.2674, 0.1719, 0.0437, 0.2653, 0.0, -0.3726, 0.2874, 0.0097, -0.0895, 0.1043, -0.2654, -0.1562, 0.1274, 0.0093, 0.0565, 0.0027, -1.4281, 0.1904, -0.0356, -0.078, 0.0803, -0.2688, 0.3228, 0.0449, -0.0269, -1.1167, -3.3697, 0.2082, 0.0, -0.0598, 0.0886, -0.0051, 0.0259, -0.0024, -0.2985, 0.0191, -0.0827, -0.0714, 0.3487, 0.0287, -0.0699, 0.0341, 0.0374, 0.3423, -0.0512, 0.1943, -0.0461, -1.5779, -0.196, 0.0156, -0.0058, -0.0493, 0.0838, -8.9444, 0.0437, -0.002, -0.0372, 0.0461, 0.1198, 0.0, -0.0397, 0.007, -0.0575, -3.4158, 0.2336, 0.0775, -0.0129, 0.0298, -0.2179, 0.1012, 0.1034, 0.2085, -0.0133, -0.5093, 0.1809, 0.4523, -0.084, 0.13, -0.8266, -0.2985, 0.0438, -1.3897, 0.0451, -0.0198, 0.0047, -0.007, 0.0792, 0.0, 0.021, -0.0583, 0.2911, 0.092, 0.0, -0.0152, 0.0669, 0.1796, -0.0727, 0.1006, -0.0368, 0.0198, 0.0, 4.6225, 0.0711, 0.1974, 0.0912, -0.436, 0.0014, -0.1313, -1.0408, -0.9329, 0.3134, 0.1758, 0.0839, -0.1741, 0.0243, -0.0628, 0.0, -0.1571, 0.0834, -0.6682, 0.0938, -0.1346, 0.0444, -0.0429, -0.0409, 0.1969, 0.9121, -2.2425, -5.08, -0.0146, -0.0094, 0.0, -0.0333, -0.0087, 0.0652, 0.2624, 1.1313, -1.0623, 0.0687, -0.1106, -0.4782, 0.032, -0.3942, -0.8876, 0.1285, -0.0214, -0.0456, 0.0, 0.1086, 0.0135, -0.0215, 0.016, 0.4494, 0.0765, -0.0899, 0.0518, -0.8905, 0.1072, 0.3418, 0.0925, 0.0686, 0.4421, -0.5156, 0.0039, 0.2583, -0.517, 0.0704, -1.5044, -2.418, 0.7306, -0.0435, 0.3332, -0.1465, 0.0615, 0.1358, 0.0976, 0.1147, 0.0286, 0.0923, 0.5683, 0.0481, 0.0, 0.0064, -0.0215, -0.0851, 0.0968, 0.0, -0.0547, -0.0709, -0.0503, 0.5373, 1.1628, 0.0, 0.0205, -0.1544, 0.0123, -0.0819, -0.044, 0.0179, 0.3702, -0.6841, 0.5917, 0.0945, 0.0118, 0.0544, 0.1274, 0.0781, 0.0566, 0.0183, 0.0, 0.0453, 0.0112, 0.4372, -0.3485, -0.304, 0.014, 0.0, 0.1127, 0.2216, 0.15, 0.0871, 0.3363, -0.3915, -0.0564, -0.2955, -0.2082, 0.7372, -0.1103, -0.0399, -0.0498, -0.0165, -0.0563, 0.0885, 0.2556, 0.0447, 0.0538, -1.3517, 0.0119, -0.0267, -0.7219, 0.0535, 3.0261, 0.0791, 0.0235, -0.0879, -0.0069, 0.1273, 0.1994, 0.0493, 2.9348, 0.6762, -0.0058, 0.0524, -3.4425, 0.106, -0.0205, 0.1194, -0.0228, 0.4967, 0.0539, -0.1101, -0.0491, 0.043, 2.1271, 0.0514, -0.043, -0.0497, 0.0173, 0.0237, 0.0, 0.0659, -0.283, 0.0694, 0.0389, 0.0554, 0.2489, 0.1841, 0.0, 0.0084, -0.0381, -0.0236, 0.0503, -0.1682, -0.0725, 0.0919, 0.1037, -1.1245, -0.1068, 0.113, -0.0077, 0.0447, -0.0347, -0.3505, -0.1545, 0.0604, 0.4178, 0.1387, -0.0192, -0.0091, 5.0868, -0.0607, -0.1101, -0.0842, 0.2261, -0.1735, 0.3205, -0.0021, -0.0035, -0.0382, -0.5909, -0.3637, 0.0542, -0.1309, -0.0437, -0.9173, 0.0109, 0.127, -0.4823, 0.5297, -2.2988, -0.0355, 0.0275, -0.0295, -0.0424, -0.0513, -0.019, 0.3333, 0.0309, 0.0, 0.1397, 0.1934, -0.2587, 0.1424, 0.1298, -0.0116, 0.0099, 0.3574, 1.9094, 0.1777, 0.0886, 0.0, -0.0508, -0.0011, 0.0501, 0.2243, 0.015, -0.09, 0.0, 0.0031, 0.0533, -0.0407, -0.0752, 0.1489, 0.0733, -0.0441, 1.3125, -0.5405, 0.3226, -0.246, 0.0362, -0.653, 0.0724, 0.235, 0.0705, 0.0367, 0.0367, 0.6369, 0.1136, 0.0154, 0.4606, -1.3369, -0.1942, 0.0, -0.0461, 0.0993, 0.1421, -0.0265, 0.7238, -0.07, 0.0676, -0.0846, 0.7031, -0.0284, 1.5357, 0.667, -0.7317, 0.0127, 1.1148, -0.0335, -0.3377, -0.0381, 0.0693, 0.0, 0.2214, -0.2693, 0.0455, 0.1526, -8.6058, 0.0, 0.0, 0.0, -0.0423, 0.08, 0.0499, -1.905, 0.0, 0.1122, 0.0485, 0.1002, 0.4984, -0.0951, -0.0441, 0.0009, 0.0, 0.015, -0.4344, -0.3286, 0.2734, -0.067, -0.0038, 0.0207, 0.0406, 0.1254, -0.1785, 0.0, -0.0445, 0.0171, 0.8128, -0.0746, 0.1926, 0.0733, 0.2341, 0.0584, 0.378, -0.2024, 0.0822, -0.0779, 0.0063, 0.0797, 0.0952, -0.1167, -0.322, -2.0929, 0.0699, -0.216, -0.166, 0.1123, -0.1125, -0.0854, 0.0197, -0.0323, 0.1603, -0.0523, -1.514, 0.1772, -0.0561, -0.0573, -0.0447, 0.0585, 0.0409, -0.26, -0.0074, 0.1306, 1.3684, 0.011, -0.0395, 0.1725, 0.2857, 0.0, -0.0089, -0.0189, -0.1787, -0.193, -1.0732, -0.1745, 0.1207, -1.04, 0.0378, 0.1085, -0.1168, 0.6361, -0.0524, 0.1536, -1.2438, -0.0647, -3.6652, -0.1189, 0.0325, -0.0862, -0.1932, 0.3428, 0.0926, 0.0757, -0.0711, 0.0, -0.9573, 0.0347, 0.0286, 0.2133, -0.5684, 0.0866, 0.041, -0.0724, -0.0111, 0.0, -0.0698, 0.0075, 0.0397, 0.2363, -0.1007, 0.075, -0.0165, 0.0026, 0.1001, 0.0317, -0.0407, -0.0202, -0.1239, 0.11, -0.0302, 0.071, -0.1582, -0.0998, -0.0377, 0.0, -0.084, -0.2743, 1.1816, -0.2225, 0.0738, -0.487, 0.1219, 0.0441, -0.1068, 0.2831, -0.0893, -0.0749, 0.2099, 0.5463, 0.3529, 0.1659, -0.1337, 0.1377, -0.014, 0.0, 0.036, 1.0965, -0.0302, 0.1052, 0.1607, 0.1007, -0.0684, -0.006, -0.1198, -1.2044, 0.1106, -0.1882, 0.1751, 0.0292, 0.0119, -0.078, 0.0853, -0.0628, 0.0, 0.0, 0.2636, 0.3661, 0.0492, -0.0898, -0.0633, 0.3737, -0.0852, -0.008, 0.0, -0.1322, -0.0717, 1.0176, -0.0184, 0.0584, -0.1191, 0.148, 0.3062, 0.1491, 0.0201, -0.3553, -0.1475, -0.0103, -0.0153, -0.1667, 0.4235, -0.2029, -0.0343, 0.0304, -0.0761, 0.5333, -0.3576, -0.0646, -0.0211, -0.0623, 0.0594, 0.0181, -0.0572, 0.0, -0.0045, 0.1202, 0.0, 0.4687, -1.398, 4.5143, 1.8505, -0.0105, -0.1089, 0.0, 0.0223, 0.5685, 0.0103, 0.0486, 0.1075, -0.0162, 0.1381, 0.0339, 0.0421, 0.1048, 0.3046, 0.0889, 0.1219, 0.0, 0.125, 0.0747, -0.0931, -0.0563, 0.0381, 0.3454, -1.1143, 0.1001, -0.0522, 0.0728, 0.055, 0.0629, 0.5156, 0.9449, 0.2117, 0.536, -0.0101, -0.0265, 0.1592, 0.1357, 0.0134, 0.0, 0.0945, 0.0902, 0.0112, -0.5837, 0.0161, -0.0558, -0.2184, 0.0112, -0.4167, 0.0, 0.1395, -0.0615, -0.0046, 0.0995, 0.0, -0.3167, -4.6178, 0.5925, 0.078, -0.0526, -0.0521, 0.0684, -0.2088, -0.0764, -0.0677, -0.0262, -0.0013, -0.2043, 0.8519, -0.2959, -3.1007, -0.0776, 0.0361, -0.1345, -0.056, -0.0634, 2.6258, -0.0536, -0.099, -0.1806, 0.1086, -0.269, -0.139, -0.2785, 0.0748, -0.1451, 0.0962, 0.0796, -0.1429, 0.1466, 0.7116, 0.0589, 0.1216, -0.0306, -0.0236, -0.2361, -0.2419, 0.002, -0.068, 0.0154, 0.0377, -0.8029, -0.0156, 0.0, 0.2663, 0.076, -4.6155, -0.0709, -0.0319, 0.0, -0.6049, -0.0871, 0.1438, -0.0726, -0.0191, -0.37, -0.4, 0.805, 1.5569, -0.03, -0.0553, -1.73, 0.0428, -0.1371, 0.0745, -0.0258, -0.0773, -0.091, -0.1561, -0.4101, 0.0487, -0.1314, -0.7316, -0.1508, 0.0302, 0.3829, -0.0059, -0.1828, 1.8919, -4.5029, 0.0834, 0.0926, 0.0766, -1.074, 0.0658, 0.3034, 0.0229, -0.7386, 0.0479, 0.0779, 0.049, 0.0923, -0.1107, -0.1, -0.0386, 0.0109, -0.3592, -0.1092, 0.0617, -0.2318, 0.0293, 0.0337, 0.2163, 0.0501, 0.0999, 0.0359, 0.0449, 0.6025, -0.3284, 0.0228, -0.4059, 0.0342, -0.0048, -0.0654, 0.3525, 0.326, -0.0152, 0.1022, 0.7717, 0.0567, -0.2609, 0.0278, 0.7083, -0.0015, -0.0697, 0.0177, 0.0, 0.1731, 0.0278, -4.0964, 0.0727, -0.0175, -3.5388, -0.2903, 1.2369, 0.1437, -5.9282, 0.1201, 0.2003, -0.1584, -0.0597, 0.0192, -0.0699, 0.0403, 0.038, 0.799, 0.1072, -0.0036, 0.2028, -6.905, -0.0139, 0.1063, -0.0125, -0.0848, -0.1772, 0.0315, -0.3681, -0.0435, 0.0182, -0.087, -0.1888, 0.1677, -0.7893, 0.972, 0.2052, -1.4017, 5.3117, 0.0417, 0.1426, 0.0261, -0.0241, -0.0708, -0.1436, -0.1447, 0.7663, 0.0289, -0.0618, 0.0, 0.0537, 0.0, 0.0044, -0.06, -0.3352, -0.0729, -0.1, -0.5079, -3.9267, -0.1298, 0.1654, 0.0, 0.6937, -0.0927, -0.0782, 0.0887, 0.2889, -0.0754, -0.1013, 0.2681, 0.2782, -0.0313, -0.1144, -0.0262, -0.0183, -0.078, -0.0086, -0.3754, -0.0541, -0.2235, -0.5219, 0.0502, -1.6218, -0.1525, 0.1008, 0.1233, -0.1348, -0.1, -0.1019, -0.1792, 0.0323, -0.0678, -0.0594, -0.0194, -0.0827, 0.0179, -0.035, -0.0117, -0.0749, 0.2772, -0.08, -0.0799, 0.5509, -0.033, -0.0106, 0.0976, -0.014, -1.0994, -0.0633, 0.2465, 0.0174, -0.034, -0.2046, -0.0209, 0.1422, 0.0661, -0.4126, -0.0857, -0.0671, -0.0059, 0.1056, 0.0817, 0.0508, -0.0343, -0.0117, -0.0412, -0.1114, 0.0486, -0.119, -0.041, 0.036, -0.1584, -0.055, 0.0277, 0.152, 0.0754, -0.0379, 0.0388, -0.013, 0.0808, 0.085, 0.3995, 0.202, 0.869, 0.0, 0.0, -0.2223, -0.005, -0.0994, -0.0481, 0.0474, 0.0378, 0.0666, 0.2128, 0.1891, 0.0379, 0.056, -0.0462, 0.1557, 0.0795, 0.0518, 0.0875, 0.0474, -0.0066, -0.0301, 0.0578, -0.0013, 0.1849, 0.1606, 1.415, -0.0889, -0.0618, -0.2339, -0.0546, 0.0, 0.0509, -0.055, 0.0663, -0.0008, -0.0779, -0.0567, 0.6381, -0.0786, 1.244, 0.0, -0.5596, -0.0245, 0.2969, -0.0572, -0.735, 0.0518, -0.6573, -0.0929, 0.0099, -0.0003, -0.031, 0.1104, 0.0, 0.0, 0.0477, -0.055, 0.0872, -0.5948, 0.0668, -0.253, 0.0212, 1.5787, 0.0715, 0.016, -0.0259, -0.1005, 0.1003, 0.0226, -0.073, -0.0879, 0.5621, 0.0987, 0.0596, 0.2292, -0.1701, -0.2877, -0.0013, -0.3273, -0.0878, 0.2952, -0.0496, 0.143, -1.451, -0.0101, 0.084, -0.0592, -0.1755, -0.0123, -0.1797, -0.04, -1.0175, -0.1458, -0.067, 0.1151, 0.1638, 0.0234, -0.4745, 0.1355, -0.022, -0.0785, -0.1604, -0.0067, 0.5442, 0.0162, -0.0306, -0.2878, 0.0, -0.1416, 0.05, 0.1114, 0.0704, -0.1299, -0.0749, -0.5746, -0.0585, 0.121, -0.0284, -0.0081, 0.8689, 0.0095, 0.0, 0.4555, 0.0104, 0.0468, 0.0055, 0.0297, -0.0007, 0.1979, -0.0037, -0.059, -0.0057, 0.0393, -0.8376, -0.0362, -0.0806, -0.0271, 0.0298, -0.2596, 0.5674, -1.3835, -0.0142, -0.2723, -0.1134, -0.2249, -0.6249, 0.081, -0.1214, -0.0842, 0.0329, 0.0, 0.0815, 0.1189, 0.0083, 0.0195, 0.3913, -0.3187, -0.079, -0.0445, -0.1055, -0.0928, -0.0987, 0.2306, 0.1285, 0.1354, 0.1078, 0.0368, 0.0992, -0.0399, 0.5807, 0.0156, 0.0527, -0.1389, 0.0184, -0.1144, 2.0134, 0.0092, -0.2343, 0.0604, -0.0021, 0.0172, -0.0636, 3.6456, 0.0168, 0.0902, -0.5654, 0.1295, -0.0256, 0.0344, 0.0, -0.0052, -0.0277, -0.0149, -0.1048, 0.072, -0.26, 1.2187, 0.0, -0.0899, 0.0237, 0.1295, -0.009, -0.0328, 0.0836, 0.0269, -3.1043, -0.0662, 0.051, -0.0904, 0.0106, 0.0779, -0.0034, -0.0039, 0.2318, 0.0449, -3.325, 0.036, -0.2799, 0.0935, 1.0782, -0.0191, 0.0221, -0.0338, 0.1498, 0.0271, 0.0489, 0.4323, 0.0881, -0.6042, 0.1814, 0.0, -0.1269, 0.0504, -0.0751, -0.0168, -0.1025, 0.0623, -0.0119, 0.0559, 0.0022, 0.0587, 0.0042, 1.2256, 1.0027, 0.0322, 0.0982, 0.1143, -0.6478, 0.3135, 0.0003, -0.0407, 0.0559, 0.1559, -0.1191, 0.0564, -0.0535, -0.0935, -0.1908, -0.0361, 0.0883, 0.0997, 0.0181, -0.0366, -0.2633, 0.808, -1.3258, 0.1159, -0.3218, 0.1015, -0.0594, 0.2148, -0.2426, 0.0729, 0.2744, 0.309, 0.0434, -2.6875, -1.7458, 0.0194, -0.073, 0.045, -0.093, -0.1537, -0.0452, 0.0393, -0.0496, -0.0773, 0.0814, -0.2866, 1.424, 0.0953, 0.0, -0.2026, -0.0092, 0.0065, 0.0073, -0.2348, -0.1486, 0.3607, 0.0772, 0.0068, -0.7838, -0.3823, 0.0294, -0.017, 0.0683, 0.077, -0.0061, -0.7625, 0.0825, -0.0686, 0.028, -0.0225, -0.1771, -0.0814, 0.0516, 0.0157, 0.0254, 0.2187, 0.0619, 1.0485, 0.091, -1.6034, 0.0512, 0.0916, 0.0381, 0.0125, 0.0297, -0.0825, -0.1965, -0.0162, 0.0481, 0.0, -0.0441, -0.017, 0.09, 0.2797, -0.1057, 0.1239, 0.3335, 2.211, 1.2123, 0.199, -0.2212, 0.0446, -0.0259, 0.0472, 0.2309, 0.1326, -4.7922, 0.0318, 0.0867, 0.0, 0.0064, 1.0107, -0.018, 0.0739, -0.231, 0.5406, -0.041, 0.1109, 0.0548, 0.0702, 0.0244, -1.2455, -0.0121, 0.1092, -0.0511, 0.1973, 0.0399, 0.3012, -0.0013, 2.6158, -0.0668, 0.0261, 0.0361, 0.1071, -0.0077, 0.5553, 0.0078, -0.0257, 0.004, 0.0286, 0.1579, -0.0446, 0.0277, 0.1777, 0.1018, 2.6523, 0.1005, 0.0825, 0.1329, -0.0447, 0.0542, -0.8628, -0.1982, 0.0066, -0.0054, -1.0356, 0.1337, -2.1633, 0.1101, 0.0, -0.0272, -0.7513, 0.0337, 0.0382, 0.3393, 0.3263, -0.0228, -5.8658, -0.0278, -0.0896, 0.1375, 0.0796, 0.2513, -0.0759, -0.0423, -1.3581, 0.0625, 0.0077, 0.0477, 0.2201, -0.4477, -0.0382, -0.0866, -0.0087, 0.0197, 0.0071, -0.0872, 0.0011, 0.2073, 0.0004, 0.0, 0.1073, -0.0046, -0.2871, 0.0266, 0.03, -0.0097, 0.1917, 0.4431, -0.0765, 0.0884, 0.1661, 0.3007, 0.2935, -0.026, -1.5072, -0.0046, 0.5056, -0.1451, 0.1026, 1.8473, -0.1942, 1.1979, 0.2402, -0.0924, 0.0508, -0.1562, 0.0434, 0.1034, 0.4437, 0.088, 0.0008, -0.1464, 0.0557, 0.0578, 0.1357, 0.0241, 0.0611, 0.0499, -0.072, -0.077, 0.2025, -0.0528, 0.0956, 0.1025, 6.2467, -0.1131, 0.0807, 0.1329, 0.8222, 0.0982, 9.6725, 0.0305, -0.0392, 0.0, -0.087, 0.6344, 0.069, -0.0129, 0.0, 0.1624, 0.0996, -0.6114, 0.0185, -0.0796, -0.1689, -0.0076, -2.9293, -0.0056, -0.05, -1.0597, -0.1749, 0.1861, -0.201, -1.3917, 0.4829, 0.1268, -0.1839, 0.0, 0.2424, -0.0125, 0.1736, 0.1059, 0.0, 0.1974, -2.7505, 0.0129, -0.0098, -0.0846, 0.0587, 0.0846, 0.0, -0.062, -0.0459, 0.4036, 1.728, 0.0199, -0.0852, 0.0636, -0.0267, -0.1894, 0.1991, 0.0, 0.642, -0.0403, 0.0, 0.0, -0.6192, 0.0215, 0.1362, 0.096, -0.0377, 0.684, 0.1038, -0.2152, 12.2187, 0.4125, 0.7357, 0.0189, 0.3186, 0.0703, 0.003, -0.0111, 0.0457, 0.1024, -3.3472, 0.0, 0.0999, -0.0676, 0.2065, 0.0592, -0.0394, -0.0137, 0.0, 0.3534, 0.0332, -0.2019, -0.1635, -0.2456, 0.0366, 0.1461, 0.1338, 0.016, 0.0741, -0.115, -0.1522, -0.4532, 0.344, 0.4987, -0.1719, 0.2084, -0.0377, 0.0799, -0.0561, 0.0, 0.0315, 0.0685, -0.7262, 0.0144, 0.899, 0.0041, 0.0106, -0.0185, -0.0093, -2.3324, 0.2812, 0.0, -0.1978, -0.009, 2.0925, 0.0172, 0.0313, 0.1109, -0.0612, -0.1752, -0.2415, 0.0748, 0.0359, 1.5897, -0.1205, 0.1232, -0.1107, 0.0, 0.0105, -0.0207, 0.0555, 0.0343, 0.4648, -0.0056, -0.0192, -0.0143, 0.1134, -0.289, 0.3088, -0.0024, 0.1484, 0.0103, 0.2976, -0.0258, 0.0632, 0.0299, -0.0239, -0.0209, -0.039, -0.0111, -0.0047, 0.0353, 0.0233, -0.074, -0.3047, -0.4884, 0.0256, -0.0619, 0.0877, -0.6855, 0.1513, -0.1217, 0.1179, -0.053, 0.0414, -0.0151, -0.0928, -0.016, 0.0041, -0.0073, -0.431, -0.1708, 0.2878, 0.4463, 0.0101, 0.2109, -0.0094, -1.9317, -0.3769, 0.009, 0.0, -0.0875, 0.0247, 0.0996, 0.0263, 0.0553, 0.026, 0.0857, 0.3418, -0.1136, 0.0177, -0.1572, -0.0394, 0.0011, 0.0523, 0.0733, 0.3168, 0.1162, 0.3042, 0.0414, -0.267, 0.0248, 0.0174, 0.9258, -0.5322, 0.0711, 0.0492, -0.0113, 0.0875, 0.3235, -0.0782, -0.8107, 0.3777, 0.07, 0.025, -0.1563, -0.0211, -0.0012, -0.0249, 0.1275, -0.2225, 0.0158, -0.0202, 0.1092, -0.0656, -0.2111, -0.1325, -16.81, -0.0546, 0.0651, 0.0, -0.0265, -0.0233, -0.0104, -0.0732, 0.019, -0.0056, 0.0869, 0.0, 0.1586, 0.0131, 0.2608, 0.5458, 0.2207, 0.0187, 0.0473, 0.117, 0.0197, -0.0567, 0.0751, 0.0433, 0.0202, 0.0425, -0.0165, 0.0632, -0.0072, -0.0187, -0.1778, 0.0869, 0.0243, 0.1138, 0.0929, 0.0, -0.0017, -0.005, 0.5, 0.0409, 0.3129, 0.9516, -0.0318, 0.1255, 0.1606, -0.0641, 0.0689, 0.1513, -0.0518, 0.0354, 0.0374, 0.103, 0.1499, 0.0162, 0.0, 0.2608, -0.0058, 0.0049, -0.1098, -2.0611, 0.0674, -0.0304, 0.0469, -0.5161, -0.1624, 0.087, 0.1162, 0.1491, 0.0205, -1.9451, -0.047, -0.0455, -8.8033, 6.8275, 0.0097, -0.0257, -0.368, 0.0046, -0.0301, -0.0172, -0.08, -0.0538, -0.0476, -0.5568, 0.6688, 1.4992, 0.1275, -0.219, 0.0, 0.0101, -0.0239, -0.2536, -13.3933, 0.0314, -0.0316, 0.0131, -0.0557, 0.0125, 0.0524, 0.1011, 0.0, 7.0033, 0.0508, 0.0597, 0.0257, -0.1755, 0.1134, -0.9523, -0.332, 0.0942, 0.0092, 0.0731, 4.6019, 0.0626, 0.0666, 0.0081, 5.1375, 0.1225, 0.0138, 0.2961, -0.0617, 0.0, 0.2585, -0.0046, 0.0084, 0.0981, 0.0721, 0.0249, 0.0229, -0.0054, -4.324, 0.1894, 0.0304, 0.031, 0.0198, -0.0356, -0.25, 0.0495, 0.0843, 0.3789, -0.0062, -0.0345, 6.11, 0.182, 0.0869, -0.0951, 0.12, -0.0017, 0.0025, 0.0179, -0.0139, -0.6012, -0.207, 0.067, 0.1073, 0.0769, 0.1194, 0.025, 0.026, 0.1117, 0.0714, -0.1239, -0.2367, 0.0495, -0.0332, -0.0461, 0.1433, 0.0, 0.0, 0.0991, 0.0052, 0.0321, -0.0442, 0.018, 0.1065, 0.0141, 0.0121, 0.0011, 0.0957, -0.0707, 0.0108, 0.0431, 0.095, -1.595, 0.0245, 0.0, 0.0228, 0.1088, -0.0146, 0.0099, -0.0309, -0.0845, 3.1393, -0.4674, -0.4361, -0.1238, 0.0295, -0.0432, 0.0247, -0.0754, -0.149, -0.0383, 0.0076, 0.0345, 0.1138, -0.0396, 0.0906, 0.0855, 0.2328, 0.0, 0.0337, 0.0933, 0.1572, 0.0254, 0.1984, 0.0971, 0.1545, 0.0935, 0.1009, -0.1195, 0.0711, -0.0029, 0.105, 0.0, -0.1513, 0.105, 0.0859, 0.0944, -0.0521, -0.0074, -0.0107, -0.2246, 0.0466, -3.2322, -0.019, 0.1427, -0.0184, 0.0841, 0.0, 0.0954, 0.0042, -0.0631, -0.117, 0.0114, 0.0893, 0.1158, 1.0934, 0.1112, 0.0, 0.2844, -0.2107, 0.0628, 0.0334, 0.0749, -0.3353, 0.0596, 0.0245, 0.1161, 0.1126, 0.0, -0.153, 0.0139, -0.0326, 0.0916, 0.1119, 0.105, -0.0232, 0.3289, -0.2637, 2.2028, -0.0536, 0.0, -0.0862, 0.0494, -0.0308, 0.0918, 0.0244, 2.0764, -0.095, -0.0569, 0.3026, 0.7582, 0.2888, -0.0219, -0.3643, 0.0686, 0.0135, -0.0708, 0.01, 0.0977, 0.0113, -0.2962, -0.0386, 0.1494, 0.0339, 0.0521, -0.4992, 0.2859, -0.104, 0.3942, -0.3336, -0.0593, 0.0512, 0.0765, 0.2147, 0.1157, 0.1033, 0.072, 0.0562, 0.1765, 0.1152, 0.6205, -0.0828, -0.0728, 0.0837, 0.1296, -2.3522, 0.5272, -1.3648, 0.4783, -0.0781, 0.9333, 0.0285, -0.2825, 0.0, 0.0, -0.096, 0.0251, 0.0527, 0.0344, 0.0559, -0.4152, -0.5247, -0.3838, 0.0113, 0.0406, 0.0428, 0.0531, 0.0498, 0.0051, 0.7957, 0.5849, 0.078, 0.3352, 0.0799, 0.1316, 0.0517, -0.0065, -0.0686, 0.2448, 0.2369, -1.3867, 0.2192, 0.0783, 0.0, 0.0062, 0.0028, -0.0386, 0.0425, 0.0886, -0.0113, 0.0, 0.0544, 0.1868, 0.0414, -0.0432, -0.0802, -0.2502, 0.0756, -0.0699, -3.8506, 0.0, 0.2882, 0.1626, 0.0678, 0.164, 0.0693, 0.0917, 0.5638, 0.0825, 0.2442, 0.0969, 0.0, 0.1412, 0.096, 0.289, 0.0664, 0.1157, -0.485, 0.2714, -1.5512, 0.0, 0.2625, 0.1228, 0.0584, 0.0, -0.0116, 3.7488, 0.0922, 0.0097, -0.0259, -0.1016, 0.0429, 0.0, 0.0376, -0.0599, 0.0397, 0.0948, 0.0425, -0.0009, 0.3065, -0.0211, 0.2234, 0.0, 0.1943, 0.1607, -0.1428, 0.0, 0.0, 0.0035, -0.0341, 0.0378, 0.465, -0.0187, -0.1878, -0.0451, -0.1362, 0.0488, 0.5116, 0.1546, 0.0869, -0.1091, 0.0799, 0.1854, 0.0074, 0.034, -0.0242, 0.2001, -0.0211, 0.3628, 0.4435, 0.0562, 0.1496, 0.09, 0.0, 0.0427, -0.0031, 0.103, -0.1072, 0.155, 0.0485, -0.0889, 0.0495, 0.1006, -0.0233, -0.1447, -0.0327, 0.0384, 0.1825, 0.1523, 0.0045, 0.2788, 0.1507, -0.0415, -0.0432, 0.0816, 0.0377, -0.7868, 0.0, 0.0418, -1.2638, -0.1369, -0.2684, -0.2025, -0.0046, -0.0968, 0.2685, -0.0303, -0.0118, -0.0345, -0.0384, 0.0464, 0.002, -0.4568, -0.3898, -0.1107, 0.1129, 0.0, -1.0304, 0.0392, 0.1192, -0.0299, 0.1861, -0.0167, 0.0, -0.0358, 0.1045, 0.1074, 0.0346, -0.0611, 0.1675, -0.2599, 0.8638, -0.0969]}, {&quot;coloraxis&quot;: &quot;coloraxis&quot;, &quot;histfunc&quot;: &quot;avg&quot;, &quot;hovertemplate&quot;: &quot;Period=2000-2010&lt;br&gt;LONGITUDE=%{x}&lt;br&gt;LATITUDE=%{y}&lt;br&gt;avg of ESTIMATED YEAR INCREASE (C)=%{z}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;name&quot;: &quot;&quot;, &quot;nbinsx&quot;: 72, &quot;nbinsy&quot;: 36, &quot;type&quot;: &quot;histogram2d&quot;, &quot;x&quot;: [-121.2167, -121.4, -112.1081, -120.6475, 6.095, -52.85, 48.228, 114.95, 91.32, -89.51, 144.283, 1.832, -108.7833, -122.3667, 20.85, -112.9667, -88.5214, -98.4131, -123.8292, -123.7147, -99.1297, -112.8253, -101.8581, -123.1, -4.567, 42.657, -3.93, -3.926, -97.2128, -99.7475, -99.6822, -81.9647, -106.4278, 18.82, 9.2903, 43.25, 18.92, 131.4, 54.47, 54.651, 33.317, 34.133, -99.0631, -66.3667, -68.2592, -110.3167, -89.833, -105.36, -99.933, -40.14, -0.2, 90.5, 68.9, 110.375, 27.85, -98.0233, 11.0175, -118.2, -101.2519, -96.685, -96.5161, -176.65, 57.367, 35.4, 35.34, 30.417, -127.8667, -87.1814, -77.2344, 38.8, 38.7, 38.75, 25.7, -119.8961, 138.5204, 138.6216, 138.6331, 138.5869, 17.52, -83.4269, -111.3167, -3.3, -120.7667, -120.9447, 38.283, -66.7978, 39.9, 14.457, -0.28, -84.0158, -59.367, -84.0794, -89.9161, -58.416, -89.65, -54.833, -89.0644, -110.9297, 30.601, 7.967, 56.75, 56.8, 91.25, -121.7667, -121.7667, -95.87, -95.9817, 93.47, -103.7347, -103.7358, 20.17, 0.6, 114.52, 94.883, -124.0578, 43.05, -102.3, -37.9, -99.38, -112.2667, -113.1875, -66.2222, 138.4, 6.95, 72.633, 24.017, 24.2206, -104.48, -99.13, 48.762, -66.2642, 14.13, 127.45, 138.233, -81.6958, -41.067, 24.367, -99.8556, 3.533, -0.6, -9.63, 144.0883, -93.6675, -159.7667, 34.07, 138.15, 139.1, 27.85, 47.7294, -89.33, 140.1, 58.183, -14.38, 70.95, 54.117, -135.0, 77.033, 77.067, 78.45, -6.667, -81.5169, -103.1417, -81.4333, -81.4642, -103.2167, 32.967, 113.267, 54.2, 20.767, 57.15, 130.199, -18.0794, 64.333, 55.6, -86.7817, 122.02, -38.42, 24.2642, 24.2817, -105.955, -105.8614, -105.8614, -89.1175, -113.5778, 81.05, 46.583, -1.8631, -1.8606, 117.8808, -99.3011, -73.7472, -84.1489, 117.8022, -73.8092, -84.1944, -80.1994, -124.9833, -88.4811, -80.05, -64.0167, -114.4781, -111.1833, -93.3019, -92.7867, -104.1017, -88.0569, -98.0083, -104.2647, -78.1664, -79.8333, 150.79, -111.95, 8.9792, -106.6167, -106.4878, -106.6156, -106.6939, 146.9534, 146.9509, -106.0567, -141.4667, -73.9267, -6.22, 125.0331, -6.216, 13.0519, -80.6592, -112.0575, -112.0856, -123.5903, -117.495, -122.7236, -90.7417, 82.767, 117.933, 77.8667, 142.1667, 48.55, -106.9328, 0.117, 37.22, 37.2167, -62.2833, -62.3333, -62.3333, 8.63, 16.5333, -85.9481, -92.4611, -97.7847, -92.4489, -92.2956, 29.949, -95.3942, 25.93, 9.8, -76.205, 7.9128, 12.0442, -73.25, -77.7583, -69.943, 51.85, 76.867, 3.25, 3.1, 8.2797, -82.5436, -94.3053, -78.2667, -0.558, -0.4942, -0.5706, -98.0678, -88.155, -0.8481, -98.0247, 133.889, -91.0547, 21.2, 26.883, 134.4029, -119.9933, -69.025, 81.735, 81.9, -84.8744, -84.73, -78.7497, -85.7892, -79.1025, -109.1528, -81.3167, -75.4492, -93.3697, -102.8967, -111.7833, -102.8, -111.7833, -115.5181, -92.8022, -119.5944, -62.6, -79.8667, 19.5, -84.6492, -64.95, 19.13, 76.9331, -82.5067, -91.9194, 14.67, -2.4544, -2.3567, -72.926, -101.505, 124.567, -83.5906, -83.5644, -83.4281, -103.66, -116.7775, -109.1469, -111.7708, -109.1222, -116.7392, -85.3803, -121.7, -123.7533, 9.3467, 153.4556, -111.6369, 96.25, 68.967, -110.2878, -111.833, -111.7, -110.0167, 88.083, -111.0339, -56.1, 23.3581, 8.6331, -108.3794, 13.2631, 11.3131, -112.4819, -90.1642, -97.55, -98.9714, -91.3045, -90.1464, -78.3694, -78.4667, -78.3203, -67.4, -83.5161, -45.93, -120.5436, -120.5644, -99.3381, -98.9761, -99.2667, -99.2964, -99.3344, 27.033, -92.8417, 18.9, -98.6878, -104.3492, -98.7094, 147.4833, 14.04, 12.15, -95.2336, -77.9261, -97.7164, 21.07, 20.99, -3.5539, 136.4198, -149.1108, 8.1167, 49.485, 55.609, 41.634, 44.117, -3.85, 40.1, 39.7, 128.883, -116.4619, -101.7089, -88.4539, 43.833, 152.7111, -150.5033, -157.85, -4.08, 128.17, 128.083, -94.1664, 43.133, 61.7, -77.9781, 12.2939, -112.8036, -112.88, -84.2322, -92.3631, -93.5656, -93.7742, -93.6217, -89.2122, 131.983, -72.5375, -83.1, 32.9167, -103.3222, -22.949, -103.1819, -101.0286, -90.525, -94.36, 35.9833, 16.23, 16.4308, 116.07, -67.4333, 74.797, -104.7333, 38.517, -112.9569, -122.6136, -98.1989, 177.5667, -117.8425, -94.6342, -94.4383, 47.767, -91.2933, 37.3, 22.8, -149.905, -149.9847, -150.0278, -149.9664, -149.855, -149.7561, -149.7169, 125.317, -86.5225, -86.3939, 137.1692, 16.1199, 8.6, 144.9281, -82.6606, -87.2747, -94.4386, -94.4853, -82.7097, -149.3397, -108.9408, -85.7164, 72.333, 128.72, -97.9069, -93.2928, -97.9064, -74.7367, 16.1497, -112.2333, -102.5517, -79.5672, -83.8386, -112.2833, -83.125, 169.767, -107.3, -109.3292, -7.66, 12.083, -78.0231, -146.228, -105.2853, 13.9931, -75.55, -0.56, -111.9608, -95.4592, -95.4619, -84.9897, -134.5864, 70.18, -63.98, -122.4406, 11.517, -159.5333, -108.7689, 125.65, 109.03, 32.883, 32.68, -93.5822, 7.809, -76.4667, -76.5075, -65.5167, -89.2344, -131.5786, -134.1003, -134.8333, -85.8556, -83.7444, -83.6933, -83.7108, 117.05, -99.8258, -99.89, -81.1178, 50.23, 30.8, 47.483, -120.7533, -116.7644, -112.5417, -118.4164, -108.5306, -105.8919, -98.0283, 1.103, -89.1128, -89.15, -88.0994, -121.7525, 76.9, -95.615, -70.45, -70.4, -64.13, -76.716, 50.32, 49.3, 133.067, -111.3836, 114.4, 49.467, -116.673, 11.1825, 140.767, 7.3, -98.2922, -111.4814, -85.0206, -85.0333, 121.633, -78.8369, -171.781, -37.81, 151.9533, -88.4378, -76.1167, -121.2811, -94.0281, -82.3389, -78.8275, 169.67, -32.2997, 35.0167, -112.2711, -37.05, 21.35, 44.2, -113.0217, 49.4, 49.847, 61.6694, -96.75, -96.8047, 102.583, -102.1614, 41.138, 142.9811, -46.933, -112.5758, -89.4286, -97.0833, -122.8333, -119.25, -81.8739, -90.6264, -124.1086, 6.1958, -103.1667, -81.3508, -104.6575, 153.0078, -98.6117, -109.6192, -113.2989, -77.9822, -37.08, -113.5561, -113.3872, -85.15, -85.0167, 48.283, -97.1617, -97.0858, -97.2014, -4.1108, -66.7525, -71.567, -71.6, 11.85, 13.16, -54.0, 20.4831, -96.8253, 128.4517, 40.7331, 130.0831, -70.333, -70.3, -109.18, -111.6917, 17.8431, 142.333, -93.0589, -91.3444, 139.3357, 13.4367, 17.95, -120.2064, -97.1703, -97.0939, -97.0736, -89.3269, 134.6849, -6.65, 41.1167, -108.8694, 151.6158, 151.6697, -98.3486, -97.7078, -88.9, -85.1736, -99.7214, -99.9031, 9.9306, 171.5544, -100.1839, 9.9125, -67.7167, 9.68, -105.75, -115.9236, -98.8667, -120.3919, -121.4917, 37.983, 93.435, 11.3, -104.3836, -71.95, -101.6914, -115.1853, -96.1542, -109.9, -70.786, -67.928, 41.817, 30.917, -74.6167, 36.617, 102.783, -94.0667, -94.0667, 19.27, 12.59, 12.64, 119.933, -0.267, 10.782, 142.367, 12.15, -63.1, 17.37, 17.32, -71.9158, -71.9358, -83.6231, -79.8378, -82.5567, -82.5567, -82.6142, -82.5375, 58.3331, -93.1164, -99.7633, -77.4833, -82.6131, -122.7144, -82.35, -90.9161, -85.7789, -77.4344, -90.9189, -96.3811, -99.3742, -80.6958, -111.2739, -121.9794, -93.5911, -118.8253, -120.6861, 25.5, 25.5231, 25.5456, 33.9, 10.4367, -1.17, 56.583, 38.917, 131.067, -106.8381, -106.8683, -100.2333, 43.25, -75.2128, -75.2014, -112.5556, -105.95, 32.7831, 71.3667, 48.9, -96.5319, -123.8825, 132.067, 48.05, -6.0442, -57.63, 31.1, 1.12, -13.067, -13.07, 33.967, 68.3667, -95.1108, -113.5333, -113.3833, 33.4, -95.83, -86.9508, -84.5833, -81.0256, -82.0964, -83.3275, -95.7661, 23.7333, 23.7167, -91.6333, -91.5833, -99.0303, -94.1661, -84.5658, -84.1625, -84.2331, -84.5214, -92.5206, -84.3, -84.3022, -115.2333, -95.0039, -76.7381, -74.4242, -74.5672, -111.0, -133.7, -87.4389, -112.8333, -96.14, 14.37, -102.52, -100.43, -87.1964, -96.2597, -139.03, -102.2167, -101.0422, 51.9167, -119.5128, -121.0839, -76.5447, -95.7469, -85.4653, -4.5658, 174.8, -94.9222, 12.7156, 20.35, 10.8, 10.9431, -112.3964, -81.9633, -82.0386, -91.1358, -69.7972, -91.1342, -107.6211, -134.645, -119.9833, 9.6681, 70.3, 75.4, 7.4678, -97.9958, -88.3092, -147.7217, -76.7764, -104.75, -76.6592, -122.7686, -112.2656, -117.0675, -98.0847, -118.4914, -97.6983, -97.68, -97.7603, -97.7664, -117.0814, -98.0281, -92.9739, -73.7333, 3.169, 3.55, 144.4783, -118.4158, -92.8514, -92.65, -43.41, -115.9203, 16.17, -3.833, -4.68, -75.7861, -74.9667, -81.5267, 5.9417, 14.57, -74.22, 27.85, -103.8, 147.3758, -96.65, -108.0006, -59.883, -114.0167, -8.4192, -8.3719, 35.9, 27.817, -91.9533, -113.3719, -125.4667, 14.5, 127.381, 52.65, 105.85, -44.76, -109.28, 26.9167, -65.4667, -99.9, -107.25, 78.567, -123.1422, -75.9333, -75.9114, -77.7219, -6.8292, 40.98, -60.75, -60.75, 8.2467, 13.1333, 150.7281, -56.0667, -120.4, -113.0167, -106.5008, -113.9497, 115.5394, -107.55, -94.7258, 7.0853, -82.9939, 11.2817, 8.5769, 8.1939, 7.6981, 15.9, 10.5714, 9.717, 13.63, 10.083, 11.0817, 10.4467, 11.7267, 7.8725, 11.88, 8.8394, 11.6333, 7.967, 14.7006, 8.7656, 9.5, 12.8756, 8.75, 12.2753, 11.6, 9.1092, 80.767, -113.1744, 113.58, -54.1, -107.6578, -71.0, 120.62, 120.6, 28.9, -62.167, -81.2761, -58.167, -114.98, 57.317, 50.65, 23.5, -68.15, -68.2, -62.8, -70.5, -105.4767, -96.1833, -105.3394, 110.433, -87.0878, -75.45, -84.6175, 90.017, 147.5669, 106.6, 10.6056, 91.467, -72.7394, 74.5, 75.7, 105.53, 19.0167, 96.3667, 62.1831, 53.8, 76.267, 82.07, -116.0628, -104.2822, -102.3008, -119.0508, -119.0542, -73.0086, -114.2089, -111.4, -117.8086, -114.2175, -96.0833, -96.0, -104.25, -103.425, 57.417, 103.07, 43.15, 86.933, -58.3, -119.0883, -98.0389, -13.05, -99.3, -85.8506, -79.3167, -85.8506, -109.5167, -124.0333, -118.4042, -107.85, -120.6972, 7.53, 125.6589, 127.9867, 86.33, 75.0831, 19.785, 27.926, 68.75, 123.8653, -108.1439, 143.7911, -117.2167, -124.1667, 141.8114, -106.16, 153.5585, -99.9764, -7.31, -6.1534, -8.1789, -72.7836, -71.7, -103.7403, 143.561, 19.9, -76.6833, 9.52, 58.35, 20.67, -81.0306, 10.9217, 24.983, 21.0331, -77.8833, 56.378, 54.8333, 27.97, -124.4019, -115.5667, -115.5667, -115.55, -115.45, 77.583, 22.83, 100.567, -62.6833, -121.3861, -68.8186, 18.57, 18.9, 18.519, 100.617, 17.217, -16.652, -16.6333, -87.3622, -87.3572, 150.9864, -81.8742, -115.2333, 114.383, 115.57, 107.13, 132.18, 99.22, 19.1, 78.3667, -89.7269, 149.0654, 149.8117, 26.0, -39.3, 4.017, -158.0667, -83.8819, 145.2883, 2.1253, 2.0697, -85.3847, 18.5403, -88.9961, -96.6369, 79.4, 14.3, 109.6331, 109.53, -70.221, -121.4819, 90.367, 16.78, 12.85, 102.233, -121.5167, -113.1333, -159.7833, 27.65, -122.7022, -69.1467, 83.5167, -81.185, -120.2169, -91.5, -101.1578, -96.1664, -81.2422, -112.3, -113.2167, -69.359, 150.6096, -79.2333, -79.1, -45.267, -45.0, -119.9389, -86.1247, -72.0275, -72.5794, -114.45, -79.55, -79.6833, -88.1639, -156.6111, -60.25, 115.4056, -156.7814, 78.417, 69.517, 9.4306, -117.0219, -116.7858, -143.6333, 12.733, -96.0117, -96.0261, -98.5494, -41.302, -81.8433, -79.7714, 13.617, 106.067, 94.4, 113.283, -93.9667, 69.717, 121.98, 121.967, 7.5831, -59.683, 164.1, -34.617, -56.683, -110.4333, -56.983, -58.633, -56.717, -44.733, -67.133, -108.035, -112.5167, -118.9792, -112.4667, -5.515, 8.72, 32.467, -91.9144, -97.2564, -64.8667, -64.8333, 129.483, 104.117, 99.1, -78.1692, 9.8, 131.0252, -106.3167, 150.1872, -89.9806, -91.7811, -91.6386, -91.7944, -106.3775, -77.3478, -65.75, 149.5559, 149.654, 26.82, -108.0167, -16.7, 41.117, 6.183, 6.3167, -91.1469, -119.5083, -94.8981, -85.2667, -85.2511, -122.5286, -107.2667, -116.8917, 41.6, -94.5869, -94.6, -94.6172, -49.117, 24.217, 122.617, -82.3756, -82.3878, -83.3303, 98.083, 84.15, 112.367, 100.683, 104.5, 112.117, -79.3683, -76.8161, -90.8167, -115.2167, 90.53, -94.9908, -116.5594, -95.975, -55.8, -87.7853, -89.5989, -104.0158, -94.0475, -109.6333, -116.7583, -112.9833, -121.4333, -89.3783, -115.55, -109.5667, -107.5167, -116.15, -113.9333, -115.45, -101.4767, -120.3133, -76.4983, -105.65, -111.3922, -104.4275, -86.0508, -116.0833, -118.0517, -104.035, -107.0, -110.8292, -116.9667, -107.0667, -87.2119, -96.75, -79.4, -79.4, -83.7161, -116.7189, -70.7833, -80.7167, -76.6606, -76.9314, -80.6956, -116.9814, -116.95, -94.0997, -88.9186, -94.2928, -71.2, -71.1667, -96.4667, 2.1281, 4.95, -100.5308, -119.05, -108.1, -119.4, -119.4, -122.8203, -120.325, -112.4814, -99.8278, -106.5167, -111.7831, -111.35, -140.8667, -113.9422, -86.9117, -88.8478, -111.55, -111.0667, -131.4683, -109.2, -62.3333, -114.1833, -121.25, -118.2167, -146.5167, -2.27, -111.0467, -81.1231, -81.1939, -79.5233, -94.7244, -71.2833, -110.9075, -86.5708, -0.483, -71.2894, 9.6267, 139.4714, -107.3167, -81.8736, -91.0561, 152.9619, 8.9689, 34.783, 34.633, -97.7061, 149.8191, 78.47, 32.3, 105.867, 109.1, 116.283, 116.5, 34.9, -113.35, 3.1239, -7.8667, 90.917, 5.0, 5.1, 69.2, 21.1333, 74.817, 27.95, -72.3483, -99.7508, -48.467, -68.9892, 74.617, -87.8547, 20.2831, 20.4667, -76.5847, -79.9331, -122.0386, 150.9291, -58.92, -126.6833, -126.6, -57.583, -83.7747, 1.179, -111.8214, -74.8431, -78.7, -97.6375, -77.4, -89.8467, -90.423, -95.9167, -103.8511, -103.9339, -80.6711, -86.8819, -92.2764, -122.5114, -122.5372, -58.883, 12.2451, -96.2167, -82.9178, -117.5917, -104.0936, -10.0, 30.1, 128.467, -98.1125, -89.0311, 37.783, -43.9333, -43.917, -54.95, -76.9314, -75.0836, 32.95, 70.0294, -90.4919, -8.0, -94.9281, 145.9703, -67.1133, -98.4161, -97.4439, -112.9, 117.8603, -121.285, 144.3266, 7.5892, -121.2103, -121.5683, 117.367, 20.27, 102.2, -75.294, -2.167, -6.4, -1.35, 1.4, -70.033, -101.5325, -4.9858, -79.6822, -73.2469, 4.9353, -95.6167, -102.9833, -110.2403, -149.1542, -150.9858, -91.1125, -92.6006, -94.215, -88.9203, -76.3422, -93.6619, -71.9486, -118.4778, -86.4267, -51.51, -82.5967, 14.017, 123.783, -120.9336, 34.887, -122.0797, -122.17, -111.95, -111.9167, -116.475, -116.5875, 15.78, 36.783, -84.2908, -97.0333, -97.0167, 24.95, 28.983, 65.05, 14.69, 9.7, 12.7889, 9.933, 5.2264, 5.3331, 5.317, -89.5475, 11.4317, 179.32, -143.2833, -122.2606, 4.9789, 29.0344, 69.517, -71.1853, 13.5039, 13.3017, 13.7328, -71.1786, 13.4039, -88.9411, -111.385, 7.4167, -106.8325, 11.7114, -84.93, -85.6572, 7.0681, 7.4639, -114.65, -105.7833, 13.733, -65.0667, 14.7475, 6.683, -64.7333, 5.98, -87.0078, -99.0583, -100.3108, -110.5411, 29.45, -94.0269, -161.8292, 28.336, -71.6575, -86.3239, -151.5089, 34.7994, -118.1522, -101.7906, -86.1311, 116.9247, -70.8372, -118.4122, -70.9175, -81.6283, 49.4, 77.35, 85.833, 69.667, 99.0167, 136.117, 136.1, 23.167, 0.307, -1.53, 148.3036, -108.4, -120.3006, 116.1364, -116.63, -105.4855, 121.7803, 8.5278, 19.0, -92.9433, -89.4692, 5.4489, -123.35, -114.0331, -107.9833, -116.3333, -107.8886, -77.2578, -123.2078, -123.2333, -87.7503, -116.9169, -115.7167, -103.9583, -89.9333, -119.2419, -117.1167, -115.8, -80.9958, -145.7214, -93.7994, -90.9592, -112.35, -93.9983, -107.2, -123.6358, -95.4728, -107.0089, -106.2006, -109.2783, -101.4625, -119.95, -78.4356, -74.8667, -85.3625, -117.6919, -110.1253, -110.1075, -117.0131, -85.4822, -122.85, -152.297, -122.57, -88.0908, -110.0608, -82.6333, -109.2667, -105.8167, -111.3242, -84.6542, -101.4536, -102.1467, -91.0181, -111.2, -82.7711, -121.785, -121.7803, -109.9503, -89.9, -89.8667, -89.9, -112.8, -111.6639, 15.8606, 105.233, 84.95, 73.3, 134.267, 30.117, -2.9056, 13.6, -122.2833, -97.4472, -118.2333, -93.575, -108.5422, -108.5706, -108.4811, -106.7319, 12.917, -88.9167, 97.705, -110.2, -75.985, -106.3494, 40.5, -101.2667, 113.033, 113.0, -144.3636, -72.1233, -100.9167, 139.3472, 139.3486, -38.05, -98.6289, 59.266, -86.745, 5.25, 132.95, -7.8764, 55.533, -101.05, 10.0492, 24.7667, -11.617, -109.9289, 9.4892, 58.85, 42.621, 74.58, -97.8031, -80.2392, -118.3581, 27.28, 5.72, -100.7603, -100.8, -100.7969, -102.465, -99.235, -107.35, -15.654, -114.0, 24.5, 11.48, 21.37, -108.5086, -104.4042, 125.183, -95.8833, 15.7, 9.8, 18.2667, 18.27, 19.0167, 7.2762, 10.6864, 21.5792, 145.4306, 145.4672, -94.5175, -112.3531, -112.4369, -3.03, -118.2603, -80.4133, -78.8333, -110.5622, -81.3278, -81.3292, -109.8, -76.0, -97.2764, -97.2544, -111.1167, -107.6869, -107.6872, -112.2394, -125.1333, -89.0342, -121.8844, -58.3667, -111.5833, -109.9506, -124.1031, -105.2842, -107.7375, -82.3594, -113.4333, 132.143, -90.835, -109.7517, -112.9539, -113.7567, -121.8133, 66.967, 1.3781, 127.5, 15.75, -122.7928, -96.1406, -91.23, -83.9444, 23.933, -84.5553, -93.1947, -105.5717, -97.67, -136.7667, -98.4286, -57.1833, -81.1161, -109.4847, 7.3056, -121.8667, -85.2733, -120.6833, -110.6, -83.8706, -115.0131, -71.5667, -71.5833, 4.55, 26.3, 12.08, -113.5, -113.05, -91.4864, -92.4394, -107.9603, -104.895, -85.9625, -89.0864, -86.5214, -86.6167, -77.3639, -112.8639, -81.7025, -84.9886, -81.2264, -81.2078, -80.8831, -119.1217, -120.7103, -117.9336, -120.3375, -115.5444, -71.1136, -119.9167, -76.0275, -107.1678, -118.5, -93.6506, -106.7792, -123.1875, -121.7189, -111.1922, -119.2833, -119.2833, -119.2833, -109.5575, -85.1547, -106.9456, -81.3833, -114.5972, -89.9044, -89.8308, -114.7142, -3.3667, -120.5792, -119.6933, -119.2778, -120.6833, -128.5167, -54.85, -40.27, -60.65, -60.7, -116.9333, 9.3842, -4.331, 29.183, 32.15, -120.0936, 13.313, -92.88, 6.6114, 7.2706, 114.2331, -123.0747, -119.0142, 14.4667, 14.3589, -110.1, 14.367, 22.22, -98.7353, -89.8567, -121.0831, -101.3833, -0.6758, 37.35, 140.47, 106.933, 106.75, -74.15, 89.583, 89.367, 97.45, 40.567, -116.1, 2.067, 13.9, 11.3681, 35.533, -116.2022, -116.2406, -102.4806, -116.0542, 10.683, 57.308, 9.7356, 41.833, 15.82, 72.667, 28.617, -93.3911, -61.067, -88.9892, 14.05, 147.4803, 44.55, 11.3458, 34.1, -89.82, 84.4, 93.133, 74.633, 156.3, 105.42, 108.58, 56.021, 137.53, 11.2, 31.6, -23.25, 11.33, 149.2336, 149.2379, 72.8167, 72.85, 128.8667, -45.36, -50.43, -43.417, -44.11, -114.5667, -64.067, -53.1167, -2.783, -110.4358, -98.9508, -107.5833, -96.1661, -130.6333, -130.6333, -97.6528, -71.05, -71.0167, -116.3103, -116.3361, -82.1167, -94.8958, -121.9519, -102.1192, 7.2, -72.2667, -67.5833, -87.8125, -93.8906, -88.5622, -83.7706, -93.9258, -93.895, -81.6442, -74.3961, -92.7603, -87.2736, -75.3697, -123.3486, -7.7308, -114.7167, -89.4075, -154.565, -102.9622, 90.0167, 27.8, 12.95, -151.75, -0.7, -63.02, -79.9167, 0.95, 4.767, -101.4542, -101.395, -67.1294, 28.5, 16.2, 6.6728, 15.5078, 14.76, -2.92, -2.933, -116.4036, 136.3041, 13.85, 30.967, 116.5167, 9.42, -90.6775, -1.75, 10.0333, -106.8908, 17.43, 17.4, 17.63, -114.1833, -78.0981, -71.0667, -71.0106, -87.453, 24.833, 26.5, 35.85, 26.67, -100.4525, -5.03, 15.633, 7.717, -7.5, 3.883, -111.42, -105.2667, -112.1136, -105.5408, -114.8464, -122.0031, -111.3, -109.6903, 139.9039, -1.6, 1.6, -117.3544, -111.8903, 2.3667, 6.77, 145.9521, -118.2, -1.843, -114.0242, -14.68, 1.463, 4.206, 148.2152, -2.905, -109.4917, -97.8472, -96.6311, -91.1711, -86.2325, -86.4239, -83.6111, -103.4061, -78.6667, -118.45, 150.4019, -111.45, -111.3833, -115.0667, 115.767, -110.25, -112.0167, -92.7164, -107.7089, -84.9139, -108.1633, -102.2564, -111.155, -111.1608, -111.0453, -116.69, -100.4144, -111.9333, -82.5014, -1.7723, -85.1517, -78.7144, -78.65, -78.6403, -120.8031, 130.8092, -105.9483, -99.3492, -3.3958, -46.9333, -6.7331, 30.3, 149.7835, -94.2086, -94.1308, -94.1272, 17.7397, -79.7, 7.9731, -53.9667, -120.0833, -106.2314, -86.1161, -99.95, -99.9833, 20.48, -93.1969, -80.2333, -104.3828, -74.2453, -47.933, -47.933, -83.71, -69.812, 17.2, 129.333, 101.75, -104.7167, 12.88, 10.6, 10.556, -103.0072, -110.3517, -115.5581, -118.8803, -122.5942, -95.2917, -106.4472, 15.25, -82.2928, -98.9017, 15.27, -105.2992, 60.35, 9.73, -100.9408, 8.7992, 8.583, -122.6828, 9.167, -78.2886, -83.7397, -96.3972, 11.5, -113.2167, -86.7786, -119.7669, -4.16, 23.6831, -114.4833, -114.4333, -82.7358, -50.48, -64.15, 146.8651, -99.8628, -101.4467, -87.0486, -87.0517, -87.055, 21.98, -134.14, 151.745, -72.3069, -97.7761, -119.2286, -87.7547, -103.1039, -103.3678, -119.2892, -85.8008, -73.1289, -73.08, -108.9092, 116.1311, 116.1375, -70.9572, -97.5017, -64.55, -67.8442, -120.8, -70.7467, -0.167, 147.3869, -66.35, 149.8003, -104.3267, -112.5436, -112.0436, -111.6167, -104.8361, -81.07, -113.7167, -112.0622, -112.062, -88.0803, 8.6506, -91.8625, -113.3847, 17.9331, -91.2153, -122.1178, 153.0389, 153.1142, 153.1292, 153.0306, -116.25, -82.4044, -2.6, -96.3917, -93.8014, -97.75, -108.3483, 11.65, 34.2297, 14.5, -105.4072, -102.5667, -102.6833, -149.7667, -102.9014, -101.6833, 10.62, -113.8167, -71.005, -75.75, -75.6667, -105.83, -89.3867, 25.15, 154.27, -94.7381, -99.675, -94.7, -99.6333, -94.7372, 141.4694, 141.4676, -72.5667, -71.95, 12.2181, -100.2494, -73.8494, 4.9367, -93.0594, -88.1775, -79.0975, -90.4581, -124.2878, -96.7686, -124.2453, -81.673, -106.2333, -78.9517, -88.6531, -111.85, -82.3658, -82.4544, -122.1447, 117.0072, -85.0128, 122.2353, -120.6, 16.3097, -111.4667, -102.2681, -113.0133, -116.8981, -53.1167, -88.9583, -97.5039, -97.4186, -89.2586, -96.8283, -120.2486, -94.3417, -98.9456, -110.5833, -118.6889, -110.2944, -117.8667, -91.5919, -106.5333, -116.1333, -115.8017, 114.928, 135.945, -92.5336, -81.5022, -93.1331, -81.4597, -81.3908, -69.9333, -122.8494, -91.2711, 4.533, -84.5272, -112.1456, -112.1689, -112.1722, -109.2372, 101.1833, 122.772, 48.367, -79.6817, -56.8667, 7.0631, 7.9989, 9.9367, -109.5967, -112.5828, -80.1336, -122.6553, -80.22, -83.4706, -105.2969, -122.5633, -122.0036, -106.1167, -117.5333, -112.1997, -75.2044, -111.4333, -111.6914, -120.0975, -64.7667, 26.0831, -82.9697, 19.0206, 19.183, -4.5458, 44.1, -90.8467, 106.57, -103.95, -106.1275, -58.483, -111.9167, -78.7369, -106.6992, -103.3017, -99.6411, -93.1067, -93.84, -99.64, -103.5464, -119.79, -106.7211, -121.0833, -108.4333, -108.4167, -106.5833, -105.3833, 26.7, 27.48, -71.9075, -116.7, 120.7, 121.917, 52.8, -111.4167, 64.617, 8.1806, -114.7453, 10.455, 162.3, -173.2333, 41.533, 31.817, 28.617, 103.55, 119.7436, -110.7203, -114.5686, -121.4833, 147.3611, -112.7056, -120.1139, -114.4847, 134.3414, -121.3333, 115.6447, -117.1667, 152.3235, 145.0453, -114.1256, -91.1939, -92.1786, -122.8667, 55.783, -89.5158, -118.3575, -118.3481, 17.86, -57.6167, -57.6167, -107.5217, -107.5333, -107.5347, -98.8, -3.6325, 8.8156, -81.3358, -78.8, 139.5356, 139.5475, -97.3444, -113.7661, -102.2608, -72.9319, -88.2544, -73.1833, -91.1164, -79.4769, -102.2842, -79.4481, -73.15, -91.1253, -79.8, -122.9167, -98.2339, -98.2353, -121.6547, -97.2692, 145.9431, -116.6339, -125.9667, -118.9564, -87.2831, -121.9167, -123.8428, -109.45, -57.3333, -122.8833, 148.5984, -109.2756, -109.6667, -110.3708, -107.6, 29.067, -80.4067, -83.5919, 136.033, -139.05, -99.1433, 129.033, -106.9597, -113.8833, -113.9167, 50.835, 50.85, -102.0797, -103.8769, -82.0894, 146.8983, -82.1917, 115.3194, 115.4008, -5.0639, -53.3167, -79.9164, -94.405, -106.95, -98.8511, -114.8839, -90.5217, -100.5847, -112.5006, -109.2, -119.47, -1.9131, 47.12, 26.85, 62.467, 52.217, -97.0031, -104.1275, 7.8, 7.8117, 64.367, -85.1256, -119.4, -83.9319, -92.64, 153.6358, 153.6361, -83.7453, -56.367, -107.3078, 120.95, -116.0572, -115.625, -105.7089, -121.05, -92.0064, -84.95, -109.9, 148.3842, 148.3779, -39.333, -78.3158, -57.683, -80.6803, -119.9817, -94.1164, -95.9219, -112.46, -79.8567, -85.3967, -6.2567, -80.9981, -110.5167, -109.73, -82.6256, -42.6167, 55.4, 9.05, -90.1942, -90.1572, -115.1736, 145.7, 145.7458, -85.7167, 145.7833, -81.1572, -89.1856, -74.0331, -78.52, 103.6, -67.417, -1.2931, 27.3331, -120.3114, -121.8439, 88.333, 88.45, -46.38, -74.2831, -91.5028, -114.0167, -114.0167, -114.3667, -89.3158, -82.5883, -87.2669, -92.3486, -92.1636, -114.5264, -92.5545, -121.5597, -92.4833, 140.2432, -122.6014, -76.383, -76.4, -123.1167, -122.8045, -122.7958, -113.7128, -103.66, -98.3539, -113.1833, -114.7275, -113.8667, -113.3333, -123.7294, 19.767, -3.77, -77.85, -119.0833, -115.35, -50.13, -78.2167, -5.3167, -81.5794, -100.1433, -116.6753, -93.1264, -105.1333, -105.1333, -85.1833, -88.0828, -75.8417, -92.8236, -87.3167, -80.6564, 150.689, -88.1686, 8.669, -96.97, -100.4667, -88.35, -116.4631, -49.5, -84.2036, -84.2364, -72.512, -63.567, 138.1214, 147.4258, -96.4092, -149.7778, 169.167, -125.2667, -90.55, 11.7469, -47.133, -35.883, -116.4728, 14.65, -41.33, -45.6, -51.2, -40.38, -102.555, -51.05, 8.803, -54.617, -52.367, -114.6833, -121.05, -120.2342, -118.4217, -107.5528, -103.9744, -103.9917, -158.2236, -85.6561, -109.4833, -84.0975, -95.1817, -120.8433, -117.35, -77.9461, -76.8667, -100.0097, -112.8167, -112.8, -89.7333, -79.4406, -99.7008, -100.3883, 26.427, -80.6256, -77.2808, -78.933, -52.27, -104.78, -38.95, 149.2014, 149.1, -96.2697, -120.8678, -86.883, -104.6822, -82.6986, -110.5294, -93.0667, -91.7711, 33.617, -147.5147, -123.8853, -104.0658, -51.144, -74.3539, -105.2256, 151.1134, -98.59, -76.8464, -96.5917, -90.0361, -75.1097, -91.5158, -148.895, -101.9264, -110.5333, -109.8214, -109.7597, -115.2469, -122.1667, -98.1967, -121.0886, -109.5394, -103.75, 106.25, -41.9, 20.017, -125.2167, 166.43, 136.5959, 136.5938, 147.1444, 147.1453, 8.167, -75.9269, -70.0253, 17.85, -76.5333, -76.5333, -76.5333, -76.5333, -61.3833, -61.6167, 145.3106, -80.1567, -89.5706, 144.69, -75.6219, -66.8167, 139.7164, -64.1667, 139.917, -61.4833, 115.1358, -166.1333, -74.9358, 8.167, -63.5833, 153.4661, -125.2, 115.0189, 141.5437, -162.0667, 140.6725, 143.5128, 15.283, -124.7167, -107.8167, 169.75, -53.0833, -166.0333, 162.967, -128.4333, 22.15, 24.833, -131.0167, -131.0167, 32.4, 18.48, 18.602, -60.0667, 138.1327, -49.55, -105.5947, -79.109, -55.083, -80.616, -55.2, -81.254, -65.724, 145.7497, -111.2622, -65.6833, -105.11, 9.72, 8.47, -103.6783, -79.828, -103.9936, 3.133, 5.933, -66.65, 9.35, -64.3167, -64.2, 0.07, -74.574, -65.3167, 9.167, -70.5333, -16.746, -70.7833, -61.133, -43.333, 22.25, -42.15, -39.25, -99.35, -89.1658, -89.2497, -43.0, 2.31, -134.7, 68.0, -3.1873, -3.35, -113.25, -113.2833, 146.0197, -111.9019, -119.4667, -85.8333, -68.0172, -147.5003, -62.6833, 27.38, -89.8703, -116.3175, -2.95, -77.1894, -93.1011, -104.2225, -104.4433, -104.2581, -117.2794, 12.617, -106.5667, -104.3089, -89.3658, -136.3, -136.2, -98.15, -54.2667, -98.0333, -86.0586, -73.655, -88.1805, -42.6, 115.8869, 113.67, 122.9753, -98.5794, -3.6331, -114.65, -47.467, 30.12, -80.2742, -83.3919, -82.2194, -104.3789, -121.5825, -109.0469, -0.45, -56.031, -73.063, -99.1294, -99.1211, -66.917, -105.8964, -119.7728, -99.8733, -94.85, -85.0806, -93.4886, -85.1456, -111.2833, -110.28, -91.1181, 66.017, -101.5742, -119.7678, -121.9733, -75.5, -100.6742, -84.7925, -84.8486, -111.2192, -94.3397, -89.5389, -85.945, 10.227, -94.3047, -57.0333, -58.8167, -109.4122, -89.7, -91.1256, -113.3833, -78.7878, -7.58, -82.35, -111.7117, -111.5367, -110.4147, -107.8, -90.9983, -116.0481, -107.8, -111.5772, -111.71, -111.6, -122.0167, -122.4811, -92.4, -6.451, 110.517, -118.8092, -118.9297, -117.4181, -120.915, 119.5686, -90.7783, 122.12, 153.0493, 153.052, -67.606, -106.3461, -106.3167, -106.4636, -106.2925, -97.2328, -96.6036, -93.8578, -83.1805, -94.6147, -94.615, -95.8364, -58.65, 9.7356, -0.0714, -0.0406, 10.3944, -7.483, 141.3339, 141.4133, -114.8661, -117.6333, -117.7667, 144.2392, -97.0261, -120.5667, -111.0125, -112.3617, -115.9167, -104.9058, -122.4833, -122.9047, -112.7333, -109.3986, -103.515, -50.0, -79.2919, -92.4617, -47.95, -110.9303, -83.0956, -65.752, -65.8, -65.73, -48.967, 15.05, -54.487, -99.6328, 124.63, 124.88, -114.4069, -127.4667, -120.1106, -119.495, -77.4831, -114.8142, -67.2333, -97.7014, -72.5989, -123.6422, -83.5328, -43.35, -51.2, -52.4, -66.1658, 105.15, -100.17, 25.92, -35.417, -123.1392, -93.2844, 30.283, -107.8922, -85.2339, -120.1803, -99.7231, -101.0094, -113.1439, -112.9919, -113.0944, -97.4786, -81.0731, -117.6747, -118.6561, -76.3, -121.7561, -112.7764, -123.7719, -120.3, -114.1658, -109.0828, -91.7167, -91.5881, -77.4478, -101.5667, 133.6976, 133.6725, -86.9, 132.25, -85.4597, 41.05, -84.5364, 71.4, -119.3833, 15.2, 10.0333, -82.1769, 86.0, -106.1292, -94.1642, -82.6547, -73.3722, -95.9744, -92.89, -87.4219, -96.9033, -87.4261, -101.2119, -106.1444, -96.3331, -96.3131, -96.1258, -122.9528, 87.65, -144.7653, 133.0861, -98.0283, -81.63, -85.6847, -76.9, -87.2383, 136.8192, -58.88, -58.983, 138.7056, 145.1785, 37.967, -61.95, 19.43, 74.8, 31.3, 25.97, 56.133, -105.5956, -55.43, -66.562, -99.4, 40.2, 17.542, 12.307, 14.433, 151.3377, 151.349, -1.83, -5.3456, -65.1, -104.65, -77.85, -77.8, -107.9106, -111.25, 119.85, -108.0333, 102.0167, 73.099, -144.3411, -111.0667, -111.0667, -79.5861, -77.3667, -114.215, -114.2228, -86.955, -106.5781, -99.312, -99.3183, -98.7467, -77.6394, -66.283, -106.65, -70.414, -73.35, -88.3728, -88.2778, -113.35, -87.9858, -90.71, -148.4925, -96.88, -79.2969, -96.8042, -111.6819, 128.3, 125.217, 111.683, 127.25, 128.183, 123.97, 113.083, 112.867, 116.37, 128.573, 120.717, -93.5644, 24.0331, -88.2819, 130.1225, -102.33, 102.117, -95.4842, -95.4472, 76.6, 120.45, -43.35, 51.167, -74.9833, -74.85, -103.2, -114.47, -102.28, -52.617, -79.0794, -79.0642, -98.88, -108.4892, -83.35, -83.35, 36.233, -97.4547, -102.4717, 118.2667, -69.45, -101.12, -81.1833, 63.6, -93.2792, 4.45, -90.0681, -89.3536, -88.1653, -53.6667, -115.5289, -79.9319, -80.0403, -79.9333, -81.7186, -81.59, -85.7, -65.7833, -92.6717, 146.2558, -70.6333, -82.7464, -84.8258, -74.4233, -78.5225, -78.4656, -78.453, -63.1333, -63.1333, -98.7494, -64.9667, -78.6497, -80.9553, 148.3327, -66.3333, -66.3333, 143.3341, -89.4819, -76.4333, 146.2708, 1.5031, 70.0, -119.6833, -78.4756, -93.5833, -93.6311, -1.417, -148.5833, 1.383, 1.7167, 7.15, -71.0333, -79.4103, -69.9589, -86.92, -86.9333, -86.9242, -176.567, -69.9933, -125.45, -82.2167, -88.2503, -80.9, -84.7642, -84.5833, -98.6497, -85.2014, -83.5219, -99.11, 6.9878, -73.3953, -97.4061, -87.2217, 12.383, -84.4725, 30.9, -118.7172, -105.2672, -105.2783, 8.121, -80.5797, -120.0006, 61.533, -84.0133, -72.45, -75.7833, -72.4833, -123.75, 12.867, -121.7894, -121.8, -146.0561, -75.0833, 117.917, 104.017, 122.683, 105.75, -88.7108, 113.03, -83.8167, -66.6, -110.0, -110.0747, -79.8833, -103.51, 56.52, 112.5, 25.9, 23.267, 126.0, 117.0, -95.5378, -98.3628, -98.4244, -83.2069, 91.7333, 91.73, -112.0481, -104.8319, -76.8833, -74.7386, -119.9161, 161.283, 99.53, -81.9675, -121.2422, -110.9711, -80.0389, -90.7333, -76.0519, -81.1958, -60.95, -88.327, -121.6333, -110.9153, -59.6333, -84.6233, -117.7408, -104.8061, -102.3508, -104.8056, 69.783, 98.983, 99.833, -92.75, 140.1, -74.5333, -88.4814, -87.7853, -87.7522, -87.7775, -87.6094, -87.9336, -87.9047, -87.8667, -87.6333, -94.82, 139.067, 142.183, 142.2, -85.2711, -96.9717, -97.9144, -97.9158, -141.9211, -141.9294, -72.5333, -121.7789, -121.8211, -153.9325, -119.6483, -98.57, 3.83, 118.833, -106.083, -118.0303, -86.3431, -100.2183, -100.2831, -111.6981, 34.967, -72.0333, -93.1469, -93.5358, -93.5792, -93.485, -83.0036, -82.985, -121.9167, -121.7, -113.8289, -121.9953, -121.8936, -84.173, -99.5, -88.1469, 69.6, 66.2, 33.467, 81.182, -117.6931, -75.35, 106.767, 128.1, -109.2256, -109.0044, -120.2, -117.6361, 26.1331, 32.616, -85.5503, -81.9361, -109.35, -109.3572, 25.333, -142.0833, 28.9833, -103.3003, -103.3, -144.6647, 113.4831, -144.4408, -144.4397, 76.433, 98.6, -4.1474, -114.4167, 114.55, 108.217, -108.283, 17.55, -98.2525, 147.8831, 77.07, -87.15, 129.817, 127.43, 106.467, 127.15, 100.983, 19.6, 30.233, 32.7, 25.8, 140.85, -112.1919, 172.532, -86.4869, -80.4033, -64.8056, -64.7014, 105.683, -119.0125, -83.8986, -104.8222, -117.0858, -149.9061, 99.183, 116.92, 127.733, 126.883, 128.43, 128.0, 9.53, 13.615, -94.0667, -94.0667, -94.0667, -64.1, -64.1, -94.0667, -110.0856, -1.2, -71.1667, 151.8333, 101.517, 32.667, -104.4833, -95.38, 66.75, 109.017, 109.0, -100.3456, -107.5592, -104.9456, -101.9003, 59.8167, 42.12, -83.8217, -84.6961, -84.4189, -84.6717, -84.5167, -106.2333, -122.1067, -38.517, -105.595, -112.2786, -82.9547, -144.6422, 108.267, -111.8314, -87.7089, -111.7, -54.6, -103.467, -109.933, -109.833, -3.9194, -99.133, 130.9, -121.75, -86.6522, -86.6114, -117.7069, -95.5808, -8.9833, -77.9411, -91.2208, -100.8903, -53.9667, -113.6333, -113.7167, 138.5933, -95.0192, -93.7336, -79.4361, -97.7325, -83.5428, -87.845, -80.3522, -80.2289, -90.5572, -97.1256, -78.5506, -93.4425, -95.0717, -76.9286, -93.4036, -90.9053, -87.3356, -87.4194, -95.1667, -87.3353, -82.1897, -109.1375, -117.3089, 12.2406, -123.2058, -101.3619, 10.3481, -81.9008, -109.1, -85.45, -103.1997, -83.3967, -69.5231, -103.1539, -111.8167, -78.4633, -97.1275, -98.0536, -122.3292, -119.4833, -119.75, -78.4117, -122.5672, -106.4472, -124.2922, -115.25, -90.7756, -111.2833, -111.2667, -118.1525, -96.6872, -121.7167, -97.4061, -82.8864, -82.8236, -81.3483, -78.4878, -81.7233, 147.6425, 136.4937, -95.0839, -90.7444, -83.7658, -81.86, -90.7128, -96.5369, -81.6836, -84.7981, 136.5026, -81.0492, -120.9131, -108.5047, -109.3072, -106.1897, -105.6628, -105.5872, -98.9772, -93.7711, -88.8753, -88.7483, -90.2639, -78.2758, -90.9733, -121.5, -95.3397, -99.12, -82.4911, 140.505, -7.2333, -92.5253, -105.7353, -107.0667, -123.0175, -123.8925, -122.7, -111.85, -114.9697, -103.1992, -103.2161, -103.3167, 23.7, 23.5667, -68.5167, -68.5167, -68.5167, -120.3606, -85.7014, -111.3983, -111.1472, -105.3847, -63.133, -75.86, -71.8, -94.417, 145.7964, 145.8294, -68.78, -74.4333, -78.1667, -78.1833, 10.983, -66.18, -106.7611, -106.5833, -106.3322, -114.4333, -114.45, 9.6, 143.0686, 96.833, -62.083, -88.2269, -106.3667, 12.0978, -109.045, -108.9006, -109.3914, 143.1183, 143.1178, -116.7967, -116.8167, -120.62, -95.5664, -95.6356, 153.1187, -91.525, -0.32, -106.6167, -121.7689, -84.6594, -116.4917, 77.05, -8.467, -84.275, 143.7925, -101.0689, -78.7111, -78.6831, -95.0867, -95.15, 145.4094, -99.3289, -84.9925, -79.5333, -162.7325, -110.2833, -109.45, -122.1833, -120.13, -71.54, -99.4339, 8.4667, -99.6594, -66.2, -65.8167, -97.1742, -93.2556, -104.4, -109.35, -120.9481, -97.6561, -121.6056, -103.577, -44.25, 148.5818, -107.9797, -62.0167, -94.3919, -147.8803, -147.8483, -96.3647, -89.6653, 116.1717, -80.2167, -89.5572, 147.8464, -122.9503, -103.7, -103.7, -3.7642, -93.3189, 79.867, -57.9, -76.9628, -106.417, -104.1533, -98.5003, -100.8594, -112.9719, -104.8692, -108.7339, -104.6883, -103.267, -106.6336, 1.35, -89.8361, -81.1186, -87.0864, -98.3, -85.4897, -92.1072, -119.3242, -80.9958, -92.2183, -81.0167, -92.32, -106.6, -109.9139, -108.3833, -96.5731, -107.6389, -88.3847, -94.8397, -85.9228, -109.2675, -84.9378, -97.3278, -88.45, -108.0167, -91.3611, -84.9422, -82.8833, -83.0781, -82.8808, -82.9333, -82.92, -122.0269, -117.9019, -126.0833, -150.4094, 7.1667, -77.598, -77.6167, 149.0228, -113.4, 39.733, -116.175, -92.133, -83.4894, -57.997, -67.5, -124.9, -125.0333, -89.1003, -99.2372, -13.62, -58.23, -49.28, -43.433, -73.03, -57.417, -62.1, -57.3, -94.6833, -104.1906, -99.7081, -119.7492, -80.5833, -97.6697, -58.03, -97.6508, -122.055, -71.5011, -122.0692, -121.7422, -98.1008, 147.2283, 147.2133, -120.1817, -113.7172, -79.3664, -89.2414, -0.167, -73.9256, -8.818, -114.2167, -118.8828, -76.1756, -111.9614, -95.4831, -95.4139, -95.4828, -110.7167, 28.63, 6.62, -107.525, -111.55, -116.9131, -79.0558, -92.4294, 106.6, 134.7222, -85.5033, -109.9819, -71.6333, -79.7, 145.1861, 145.1861, -92.5336, 153.5053, -115.3, 148.9725, 149.1243, -124.4333, 149.2699, 149.2714, 148.3798, 148.3806, 140.8254, -74.9267, -98.0381, -76.85, -95.6039, -149.6661, -149.968, -124.2661, -124.3186, 148.0364, -73.5522, -105.5667, -101.2842, -90.3806, -70.33, -115.1167, -113.8333, -112.6, -99.743, -112.7333, -105.4844, -87.8833, -87.8672, -106.1667, -114.2167, -124.2025, -103.81, -109.9958, -83.3667, -77.3747, -119.5817, -42.36, -83.7747, -112.165, -64.217, -4.8458, -64.183, -145.4511, -145.7531, 19.9167, -69.2417, -112.1106, -72.3194, -88.6178, -8.491, -57.4, -83.5286, -87.1589, -86.2325, -57.9167, -57.95, -90.5858, -94.7492, -77.0692, -122.1697, -105.47, -73.2106, -74.75, 120.2, -105.5167, -105.4833, -110.2542, -109.15, -111.45, -111.45, -105.6975, -70.276, -74.204, -56.4, -43.26, -61.883, 146.3574, -66.3592, -97.5108, -97.4, -97.2833, -97.5056, -106.595, -121.7978, -115.5333, -105.4647, -121.4667, -44.61, -58.762, 117.8733, 147.8938, 147.8956, -96.4867, -96.3989, -124.95, -108.595, -108.5036, -108.6275, 12.15, -76.1833, 34.95, -57.5, -57.7, -84.0744, -123.3258, -123.19, -123.4575, -94.7078, -97.03, -81.7908, -81.8711, -101.7833, -74.1667, 7.216, 2.38, -123.0275, -123.0578, 14.3183, 11.1692, -0.65, -92.4533, -101.8606, -116.3919, -155.9361, -108.2778, -110.8167, -96.5483, -111.7869, -99.2183, -91.4594, -78.0417, -77.9711, -122.2042, -122.2419, -121.6333, -123.1172, -118.9997, 135.3741, -116.4325, -96.5097, -118.5333, -122.4119, -122.6914, -125.0, -124.9833, -125.0333, -97.8956, -87.3461, -123.2444, -117.7903, -81.7333, -83.8436, -89.7, -90.1114, -79.9883, -100.65, -77.1567, -83.4314, -124.1333, 148.6497, 148.6534, 148.7071, -107.5819, -57.7833, 91.964, -73.1, -72.0333, -114.7583, -101.06, -96.71, -115.65, 15.133, -112.0, -84.4375, -89.0028, 25.62, -2.2, -133.1408, -112.2833, -112.25, -107.5894, -107.5211, -80.0797, 10.0992, 23.87, 145.2637, -115.7833, -115.7667, -115.75, -109.6114, -102.3578, -102.4133, -119.8247, -92.4667, -86.835, -118.4667, -115.85, -74.3231, -116.8414, -0.5, -113.5581, -122.1328, -115.2833, -40.667, -103.4167, -86.8011, -120.9333, -123.6036, -106.9319, -97.9047, -124.2147, -124.2367, -102.4378, -102.4372, -120.7, -92.0939, -84.0347, -76.85, 147.0794, -106.9769, -81.2728, -114.1342, -116.5167, -105.6897, -94.3942, -116.5, -116.5333, -86.5225, -118.9833, -85.4186, -96.8719, 14.7, -105.2003, -83.9408, -120.7333, -84.6019, -88.1919, 21.95, 15.2, -76.8667, -95.4508, -97.4969, 152.87, -119.2167, -102.8031, -96.6028, -103.2936, -101.245, -104.0022, -107.05, -98.5547, -91.9481, -85.1344, -84.9972, -85.1314, -85.0814, -83.1053, -83.1053, -113.9167, -98.0333, -85.0142, 17.07, -120.75, -92.3478, -112.3333, -60.833, -114.4833, -105.3833, -118.95, 142.2447, -77.8769, -72.667, -36.58, -53.6, -39.08, -99.8311, -113.16, -109.5, -90.3775, -120.3667, -104.76, -98.95, -106.9703, -107.5178, 120.2667, -104.9214, -72.52, 79.767, -2.1381, -103.67, -99.233, -97.3433, 133.867, -56.117, -56.1, -100.8292, -104.5089, -5.25, -105.2, -107.475, -86.7964, -86.7972, -80.85, -83.1747, 124.8667, 50.4, -118.4139, 80.967, -64.2, -92.0222, -78.7561, -106.45, -84.1275, -131.6, 117.2331, 117.2217, 7.54, 145.6808, 24.4331, -104.2667, 21.3667, -103.05, 132.6, -71.233, -49.267, -49.167, -111.1, -115.4128, 143.8486, -80.9819, 123.8217, 131.7571, -100.4936, 106.65, -44.45, -96.7758, -123.16, -103.6119, -103.6114, -103.6333, -84.7931, -112.0558, -112.3753, 8.7067, -116.5872, 121.03, -72.0, -71.95, -3.802, 123.0086, -84.3031, -109.4667, -109.5167, -99.0833, -99.0667, -81.5333, 19.1, -97.3983, -89.9328, 104.579, 121.883, 10.8639, 122.98, -119.8914, 14.18, 120.35, -105.0333, -83.99, -94.7225, -110.3333, -17.5, -15.931, 29.0, -94.1953, -113.95, 104.417, -13.5831, 151.2634, -77.1133, -111.3794, -78.9353, -5.15, -102.6133, -102.55, -74.4667, 121.633, -123.2911, -84.7475, -97.0189, -84.74, -96.8556, -96.8681, 133.733, -6.473, -84.8872, -102.9661, -89.2028, 84.067, 69.3, 116.6714, 116.6619, -113.85, -122.05, 133.3782, 64.4, -77.2319, 36.516, 34.337, 108.199, 16.54, -80.1789, -73.4167, -92.3736, -73.4828, 124.333, -96.2319, -67.8614, 69.317, -83.3045, -57.5833, -111.25, -110.1272, 125.028, -18.67, -73.7206, -117.3389, -77.7178, -77.7133, -79.3886, -84.7708, -87.6483, -71.9833, -82.3039, -79.3361, 109.58, 100.3, 0.25, -113.95, -114.1764, -93.1675, -75.9, -120.1833, 62.283, 39.5, -113.5833, 99.65, -79.8767, -90.1064, 8.6775, -1.4106, -121.4461, -121.6036, 147.4984, 143.2, 130.8925, 130.8844, -110.1631, 39.2, 39.3, 59.8, 114.4, -81.6167, -94.3039, -113.4981, 113.333, 26.617, -100.05, -100.05, -100.05, -88.0775, 106.8, -90.5808, -118.1614, -105.9833, -97.1328, 77.95, -77.1833, -121.7761, -79.4322, -110.8833, 9.85, -139.4333, -139.1333, -84.0597, -139.1333, -120.1833, 101.12, -107.2658, -81.0483, -118.0022, -84.9947, -84.2186, -84.1911, -94.9314, -84.2264, -119.6447, 95.367, 107.5, 24.017, -148.4772, -110.6833, -105.7667, -124.4667, -103.7314, -115.5667, -115.5667, -118.9433, -107.3786, -122.3167, -117.1678, -83.2378, -83.1736, -130.0167, -130.0333, -116.8669, -108.5931, 38.4, -63.4667, -63.4167, 53.82, 21.615, 21.6, -97.5769, -84.93, -86.9503, -84.665, -88.8656, -86.9453, -88.9506, 66.5, 8.972, -91.7953, 3.483, 5.8878, -113.1139, -94.3872, -117.9803, -93.2044, -103.7858, -162.7639, -98.3167, -111.5289, -116.7475, -115.1517, -57.4333, -57.4, -112.7975, -117.6103, -114.0553, -108.9, -117.4283, -115.2711, -84.3847, -84.4289, 98.57, 9.4117, -76.8703, 70.2, 78.033, 40.176, -94.6175, 131.9182, -81.3106, -93.7903, -113.1833, -74.9128, -80.55, -123.4333, -123.4333, 97.37, 3.95, -105.2369, 28.68, -119.6542, -86.6661, 16.54, -112.5858, -108.0278, -145.6136, -145.7511, -145.105, -98.3833, -123.1, -112.7886, -112.8167, -106.3083, -100.9094, -100.9269, -100.7833, -100.9, -118.6828, -108.88, -107.7531, -61.1833, -107.7206, 69.283, 11.8564, -118.6303, -87.88, 95.6, 113.5319, 144.9458, 144.952, -118.6336, -119.6358, -95.3289, -96.5667, 29.083, -87.812, -81.3436, 115.167, -109.9372, -97.105, -97.1989, -104.8489, -102.8219, -104.6575, -104.8694, -105.0083, -104.9833, 4.7469, 1.7217, -75.4264, 139.6697, 98.883, -94.3481, 70.92, 48.3, 123.6611, -109.8517, -91.385, 22.66, -119.9333, -7.2581, -117.5844, -116.6222, -71.9167, -71.9667, -112.6519, -115.36, -115.1439, -116.1594, -119.77, -96.0833, 39.7, -86.4717, -91.4978, -93.2856, -93.6531, -93.7236, -83.9014, -83.01, -122.2547, -95.8372, -95.8464, -83.3308, -83.5333, 4.4667, 7.05, 22.9, -81.1292, -120.6714, -93.3333, -98.9, -98.8681, -98.9075, -119.0933, -104.7194, -104.7147, -107.3047, 146.4267, -117.4044, -71.1667, -109.2997, 24.017, 5.1867, -86.0939, -88.7756, 4.7808, -94.4008, -93.4692, -93.2869, -121.6108, -97.5606, 50.15, 87.35, -121.1431, -121.2939, -43.64, -56.45, -94.3553, -111.2167, -122.1333, -113.3664, -115.85, -109.2428, -116.0494, 56.25, 95.017, -102.8111, -102.8414, -87.3958, -114.2167, -70.181, 72.4, 49.18, 8.341, 12.627, 9.2081, 12.0864, 11.0431, 4.93, 15.99, 16.04, 26.87, 80.4, -105.0569, -111.4667, 8.2631, -99.1833, 10.4994, -105.1175, -158.5167, -112.6447, -79.3564, -113.0058, -106.0353, -112.5545, -4.7, 22.75, -102.312, -58.85, 122.117, 11.57, 115.517, -119.0394, 147.3347, -108.9678, -108.9719, -108.9106, -109.3045, -16.233, 13.7144, 41.85, -118.2, -120.1667, -77.2017, -108.9133, 19.71, -112.05, -112.7547, -107.1667, -44.87, 43.35, -115.4606, -89.5136, -88.6678, -88.6672, -84.7078, 40.201, 14.8, 14.77, 9.47, 3.25, 10.77, 11.93, 34.967, -66.1333, 12.217, -121.2011, -73.8344, 23.317, 13.583, -91.5511, -90.1161, -90.0, -99.9683, -105.5194, 35.767, 10.35, -86.7142, -120.0478, 51.565, 27.75, 159.07, 12.67, -114.6667, -108.4975, -57.733, 9.117, 59.65, 123.367, 39.7, -107.3, 77.37, 77.02, 142.9709, -112.35, -91.0278, -84.8911, 8.5056, -79.4058, 37.767, 108.617, 30.483, 109.98, 120.283, 106.6, -90.8125, -90.8239, -111.4667, -71.7333, -91.5639, -120.2331, 115.8247, -79.8694, 10.5012, -103.3, 100.6, 126.3114, -92.2192, -122.9631, -0.05, -0.033, 152.7187, -80.6667, -78.9333, -115.2, -66.6667, -85.4497, 9.72, -105.4017, 153.1906, -109.5394, -82.8206, -109.6061, -105.3667, -105.3856, -120.1031, -120.2, 131.1872, -119.8983, 4.5978, 147.0075, -75.5056, -87.8628, -75.4667, -69.1839, -108.9119, -86.1319, -106.4517, -120.8239, -59.25, -75.1225, -120.0828, -120.1056, 15.97, 22.933, -108.8875, -123.3275, -100.31, 10.1237, -111.8997, 13.61, -115.3167, -88.7064, 13.767, 13.8494, 13.6831, 12.0481, -118.3775, -111.1125, -97.9822, 22.6331, 23.517, 71.783, -112.6833, -91.2667, -72.4833, -113.1761, -76.25, -134.3833, 33.95, -128.1167, -92.75, -101.8333, -92.75, -102.2131, -108.3575, -111.5333, -119.1167, -144.6011, -121.9864, -120.5333, -112.1833, -106.7833, -109.8331, -106.7808, -112.24, -70.584, 55.364, 148.5753, -82.9036, -98.3047, -6.3192, -109.6553, -112.2006, -78.8989, -86.6983, -90.6461, -90.7036, -110.395, -80.9072, 18.867, 86.17, -121.1303, -119.0147, -112.9217, 6.7031, 70.07, -79.0917, 16.134, 98.1, -107.0, -104.9614, -92.2097, -92.0903, -92.2108, 123.3, -91.5317, -101.9725, -3.65, 140.017, 130.3725, -2.5258, -109.1214, -97.9592, -123.7667, -123.7333, -116.9667, -79.8833, -6.35, -83.6489, 149.3964, -124.1197, -123.0833, 128.2, 94.683, 2.33, -111.4747, -79.2722, -82.4047, -78.6881, -102.5869, -122.2736, -5.4386, 116.467, -101.605, -101.4672, -110.8667, -112.75, -91.9794, -83.9894, -107.8564, -104.6, -104.7, -107.7597, -96.3686, -56.5, 30.951, 144.2078, -70.95, -70.0964, -80.8167, -1.5846, -79.0931, -70.9278, -70.9483, 107.55, 68.8, -76.4042, 6.77, 68.1, -166.5433, -104.8667, 57.9, -89.1931, 42.717, 69.0833, 116.0594, -88.4111, -78.9, -116.3217, -2.198, -118.0106, -89.4089, -89.41, 123.9, 113.97, 134.5, 34.4, 141.3, 45.281, 124.0, 95.217, 72.95, 52.567, 121.77, 67.8, 64.083, -88.53, 67.833, 139.833, 138.733, 70.897, -102.7769, -141.2036, -117.8833, -141.1619, -141.1483, -110.3667, -122.3311, -106.9167, -115.4508, -97.4497, -105.2628, -100.4792, -122.6569, -89.2564, -149.44, -149.5436, -109.8964, -79.85, -79.85, -93.2167, -108.9833, -84.3333, -98.8175, -106.1833, -83.2058, -76.0669, -121.1869, -66.9919, -75.9744, -62.1667, 1.0267, -72.1269, -113.2239, -71.8908, -70.7539, -84.6892, -74.1433, -85.1322, -84.485, 27.833, 27.8, -111.6444, -71.6261, -122.5178, -61.9833, -110.2, 147.1322, 147.1317, -75.2297, -83.5036, -70.6697, -109.5167, -84.6336, -86.243, -91.4878, -119.8, 10.7375, -78.7289, 8.9792, 9.5339, 11.9883, 10.5003, -74.5, -105.8992, -105.8461, -114.4256, -111.435, -105.6, -101.6667, -120.0667, 144.7642, 1.332, -114.3833, 148.3467, -88.0728, 141.2657, -76.5517, -72.5572, -117.5883, 12.87, -70.5181, -103.8778, -103.9172, -110.4333, -98.1575, -78.5853, 138.6222, -3.35, -98.0633, 26.567, -80.2947, -80.3267, 137.7395, -113.5, -113.5167, -113.5167, -113.5833, -113.6, -113.5167, -113.4667, -113.4667, -114.1167, -114.1167, -113.75, -98.4714, -68.1833, -68.3167, -98.8578, 15.84, 15.72, -116.4833, -116.4667, -116.45, -117.8667, 32.333, 3.5619, 6.5844, 6.5756, -123.0833, -123.8236, -93.6461, -88.6244, 12.67, -79.7811, -79.7833, -79.7833, 17.57, -127.8333, -14.4, -179.1, -114.4706, 11.2358, 6.8605, -147.1, 6.5045, 145.8423, -118.1167, 7.5967, 5.3767, -69.86, -77.2292, 16.53, 10.9117, 11.5717, -115.183, -101.08, 101.067, -104.5461, 60.6331, 130.9667, -110.6167, 57.767, 132.983, 16.75, -149.3231, 135.88, 174.167, 41.7667, 34.95, 39.291, -82.855, 19.433, -106.55, -106.5833, -121.9, -114.7, -59.38, -92.5808, -93.0972, -100.5994, -94.0156, 35.267, 35.239, 38.517, -111.2128, -107.1842, 64.0697, -136.3436, -97.3683, -114.5411, -98.0747, -88.2861, -117.9239, -110.5086, 26.567, -103.6572, 44.3, -137.083, -92.7833, -90.2269, -82.2325, -85.8761, -104.6292, -76.205, -105.3381, -91.4536, -101.8867, -109.75, -101.2, -79.4742, -79.8528, -115.7425, -115.7886, -123.5992, -116.1167, -105.7, -115.4611, -99.5064, -95.7769, -117.9711, -112.8667, -106.4136, -106.9667, -93.5842, -116.1797, 5.7625, -98.5261, -120.54, -120.5303, 27.85, 133.5407, -82.5667, 134.888, -112.4342, -98.225, -102.2133, -92.4586, -103.1, 10.1317, -94.0353, -123.4008, -76.8358, -76.8919, -72.5294, -63.3333, -119.75, -102.4683, -87.0917, -80.4167, -80.4167, -80.4167, -111.5186, 9.017, -108.0333, -90.7847, 6.5653, 6.1831, -117.3319, -100.0106, -119.1561, -123.5906, -85.8453, -91.8586, -82.0558, -82.1794, -91.4556, -91.8667, -114.8361, -114.8467, 8.1094, -111.05, -68.1, -68.192, -113.42, 33.836, -99.13, 1.0, -71.532, -93.15, -116.9281, -72.05, -116.815, -76.641, -117.4111, -115.5617, -115.6833, -84.22, -108.0167, -96.8444, -92.8142, -75.766, -81.358, 25.333, 2.8667, 8.45, 0.067, 14.3, -117.6303, -117.5503, -108.3492, 30.233, 30.2, -110.72, 6.12, -106.5, -106.3708, -105.9608, -106.3758, -111.12, -110.98, -111.71, -98.9, -97.9553, -98.0364, -106.1878, -99.35, 46.9, -63.171, -105.36, -106.73, -71.65, -92.1958, -108.3906, 6.5, 37.45, 7.2267, 7.2, 41.8, 103.33, 148.1756, 29.95, -97.2333, -113.9333, -122.2175, -118.45, -111.5667, -91.3589, -1.667, 7.8356, -94.6833, -116.4664, -77.2914, -75.0106, -95.7797, -93.8333, -110.767, -110.6347, -77.5597, -96.2189, -96.1897, -78.2275, -110.0, -80.0833, 115.0414, -55.9, -112.4333, -99.3847, -52.51, 166.3, -97.6383, -101.5147, -76.0878, 115.2722, -85.5697, 8.4167, 8.7681, -56.1167, -86.4683, -97.8747, -97.9167, 92.15, 173.33, 14.283, -100.8833, -111.7111, -111.7344, 20.783, 20.8578, 23.5803, 23.3392, -72.8083, -72.8136, 109.467, -113.715, -117.1528, -85.8997, -113.6556, -113.7172, -120.3228, -120.2108, -117.7, -123.8167, -123.8, -114.9833, 7.55, 28.433, -111.5992, -87.1536, -119.5153, -71.0839, 8.9175, -126.2833, 58.6, 108.0167, 101.383, 115.367, 112.0, 9.3169, 10.9631, -99.8628, -99.8033, -98.8239, -81.9, -80.1825, -79.9567, 12.42, 9.5403, 92.417, 132.1771, -74.781, -108.2, 121.933, -4.4, 146.1089, 102.3, 48.35, -82.4261, 95.12, 39.527, 41.17, 140.117, -111.5978, -87.0939, -90.75, 9.2869, 7.6617, 10.065, -117.09, -117.9472, 53.6331, 7.6092, 51.6667, 51.862, 66.333, -113.9533, -3.2, 16.46, 16.45, 30.53, -96.1058, 8.1569, -106.0589, 121.8925, 121.8275, -42.25, -120.515, -42.8, -88.3, 24.6042, 24.7442, -71.15, -123.4333, 21.07, -9.682, -79.8167, 6.967, -83.845, -74.2858, -73.1153, -73.1156, 6.23, 158.7, -122.3186, -106.0344, -74.8289, -148.0256, -105.3611, -147.9242, -105.5108, -105.55, -102.9667, -126.55, -126.55, -94.7472, -94.7461, -110.2, -56.52, -0.621, -111.05, 128.8792, -91.2628, 139.0847, -95.5903, -85.09, -123.2206, -92.4303, -89.2358, -115.9622, -99.6353, -85.9333, -96.2644, -116.0056, -115.0167, -118.7333, -115.0644, -93.7917, -124.1603, 3.275, -70.4825, -100.0536, 10.5878, -92.6314, -75.1, -110.9508, -111.0306, -87.5783, -87.5206, -123.1033, 153.3964, -98.1619, -92.5303, 16.6831, -91.6169, -109.7833, 11.143, -78.3653, -122.195, -122.2803, -81.3183, -86.9533, -105.315, -87.0442, -1.5739, -7.9, -158.0667, -157.9917, -98.3417, -81.5, -3.42, -84.2842, -56.6, 126.3008, -114.0264, 4.0119, -111.0, 0.35, 11.8858, 10.53, 24.933, 12.81, 9.233, 56.483, 6.95, -147.51, -147.615, -147.8739, -147.8761, -147.7911, -97.1669, -117.65, -90.9667, -122.0678, -84.5894, -112.0944, -91.9553, -103.2247, -111.9855, -96.2078, -76.2231, -88.3264, -114.79, -87.8808, -87.8758, -118.4297, -80.1333, -97.5928, -94.4656, -105.9936, -98.4975, -118.4333, -87.1364, -1.633, -102.0367, -102.0192, 132.25, 13.37, -99.1372, -99.1356, -98.1203, 12.48, -117.1903, -120.05, 20.77, -118.7811, -118.7167, -123.4308, -95.5919, 147.2755, -78.6528, -73.3667, -85.3586, -119.0333, -96.0781, -70.5167, 12.82, 15.6167, -65.42, 5.3533, -119.4658, 110.77, -126.0, -64.4, 47.821, 27.983, -154.0767, -153.6206, -82.3606, -96.8111, -93.2661, -73.4169, -90.4103, -111.8, -83.3625, -64.6667, -70.1567, -111.9353, -93.17, -108.3086, -111.8167, -90.0, -108.2292, -85.1483, -78.3864, -72.9, -111.6833, -7.966, 18.96, -133.3667, -133.3833, 48.315, -3.7689, 53.7167, 10.1833, 102.339, -99.1342, -118.0667, -116.8989, -116.1, -87.8214, -91.8158, -94.1694, -94.1744, -94.3, -78.8583, -78.8803, -86.5411, -107.8639, -104.3, -81.5389, -38.96, 13.4389, 8.0044, 9.6, -87.9, -88.05, -108.6764, -119.175, 109.5, 116.63, -115.5347, -115.5356, -76.1356, -103.0667, 35.3831, 71.75, -96.1172, -80.3833, -80.3333, -67.0833, -81.4525, -91.4947, -115.0667, 145.3364, -123.3703, -57.1, 11.6208, -58.4, 170.817, -96.6608, -111.1325, -101.45, -99.6219, -90.3981, 27.85, 7.2794, 10.35, 13.717, 47.112, 12.9553, 11.8392, 27.9, -118.6758, -122.3019, -2.583, -120.0067, -83.0831, -112.3278, 17.91, -112.0333, -83.6686, -83.6622, -123.3253, 147.9664, 30.15, 15.6098, 11.25, 11.3742, -121.6658, -120.1075, -71.2906, -97.55, -97.5333, -109.95, -109.5714, -118.6333, -116.0669, -119.1783, -115.875, -121.0667, -122.4167, -119.6519, -113.3978, 5.5817, -71.7558, -96.7178, -83.2517, 125.5619, -110.2658, -117.9183, -113.8333, -120.1561, -110.4667, -103.0614, -111.7311, -111.675, -117.7289, -111.6664, 14.15, -80.9144, -109.4117, -96.5928, -101.2, -97.0644, 12.73, 13.1153, -110.6, -113.85, -108.3725, -156.6139, -81.9136, -114.8989, -74.8811, -102.8594, 9.4192, -82.5575, -73.0, 148.0024, -89.6833, -83.7694, -83.7494, -112.1833, -101.6833, -101.8833, -101.6833, 12.0125, 16.3997, -92.87, -88.4797, -86.3117, -36.81, -88.5758, -111.3881, -96.9242, 11.2, -88.2583, -124.0947, -79.74, -79.7239, 4.6608, -31.131, -44.41, -98.1628, -43.017, -48.567, 21.4, -105.285, 5.0278, 12.3506, 12.27, -56.6833, -117.4039, -101.3339, -80.2908, 9.849, 113.53, 15.72, -54.3, 9.2831, -80.7833, -82.1278, -100.1369, 14.61, -88.4533, -88.4864, 10.5142, -110.0564, -66.167, 147.9205, 5.9333, -114.85, -92.3989, -79.5144, -111.45, -111.4833, -89.4208, -98.0833, -112.1167, -120.7317, -87.3967, -93.6306, -81.9311, -81.9889, -123.1025, -92.9125, -71.15, -71.15, -124.3539, 12.0556, -97.595, -58.228, -47.33, -46.25, 128.1092, 128.1139, 16.9897, 152.5089, -106.6744, -38.6, 113.5333, -72.05, -114.8997, -103.8056, -114.9167, 26.633, -108.7189, -79.0644, -111.1167, -111.1167, -80.7694, -78.9667, -93.4333, -93.4333, -128.65, -128.65, -106.1614, -121.2417, -122.55, -123.4667, -123.4667, -113.3833, -111.2167, -111.2167, -111.2167, -134.8667, -122.6, -122.6, -100.3014, -117.6, -109.1667, -109.1667, -113.6833, -120.8417, -94.2, 69.5, -113.1833, 50.25, -98.3833, -121.2333, -121.35, -121.2333, -121.2333, -111.9333, -111.8667, -111.9667, -111.9333, -124.2833, -120.7333, -78.4, -116.0333, -145.2655, -68.283, -110.7703, -95.7244, -122.6728, -119.2461, -2.067, -111.7131, -118.915, -122.2167, -110.2167, -112.0422, 141.7017, -98.8392, -92.2875, -101.5697, -147.6261, -116.8167, -63.7833, -119.5681, -47.433, -86.8872, 13.4, -104.46, -93.341, 27.5, -75.7278, -86.21, -84.9033, -86.5067, -84.8825, 28.5, 8.6756, -96.4889, -83.3928, -84.3189, -79.8306, -78.4633, -98.945, -79.3092, -91.5442, -111.6, -86.8686, -86.0408, 145.1156, -105.8172, 21.517, -135.05, -124.85, -113.055, -99.02, -98.9089, -77.4508, -90.3086, -82.5333, -77.4389, -66.5333, -66.65, -66.6167, -66.6167, -95.8328, -79.312, 18.37, 14.4, -99.1128, -91.7028, -99.0108, -99.1422, -74.2511, -87.3083, -95.3808, -89.6039, -98.6175, 7.9342, 7.85, 9.2494, 14.5, -72.8667, -122.0158, -83.1189, -96.4669, -86.0264, -83.1719, -117.7111, -112.3347, -106.2, -68.3133, -112.9128, -80.0167, -119.7092, -119.7194, 8.41, -119.7072, -123.0231, 9.4417, 148.2794, -89.8308, -97.2208, -123.3417, -102.7231, -87.4203, -108.9333, 9.283, -68.6, -112.2, 43.7, -108.5667, 12.733, -78.1822, 13.28, 14.49, -78.9358, -79.8186, 23.995, -108.7331, -108.3483, -48.93, -111.85, -70.9475, 9.12, 9.27, -109.8014, -88.8589, -108.1514, -85.0, -110.6608, -120.1575, -123.7567, -78.9333, -96.0928, -87.4833, -104.7639, -104.8539, -123.8783, -105.0858, -105.0236, -103.8869, -94.2006, -109.8611, -85.0494, -82.1378, -112.4133, -105.7414, -97.7167, -68.6136, -147.3408, -80.2011, -80.1061, -80.1708, -80.1536, -92.105, -108.0514, -91.3339, -100.1103, -103.4775, -103.8156, -81.8614, -81.755, -85.7236, -106.4117, -80.3508, -80.3767, -100.6592, -93.1833, -149.6503, -96.7667, -123.2447, -94.7086, -94.3625, -115.4667, -81.6289, -102.9153, -102.9167, -104.2319, -104.2503, -99.535, -109.9855, -111.7428, -85.2167, -85.2064, -97.3181, -97.3614, -97.35, -97.45, -97.4761, -97.2975, -100.6667, -175.15, 16.7481, 120.2, -13.8631, 20.155, 131.983, 138.436, 139.933, 128.833, 136.217, 130.383, 133.25, 9.65, -98.4, -117.9789, -91.9414, -88.4569, -90.1544, -76.3847, 179.2, 179.217, -16.8997, -16.767, -64.95, 5.0442, 11.2667, 13.3544, 137.05, 127.75, -178.117, 115.83, 89.517, 119.283, -0.667, 69.867, 10.1, 149.9158, -123.7333, -99.1383, 75.633, 14.1594, 14.2239, -85.9878, -85.9622, 8.823, -108.0867, -66.15, -66.45, -99.7689, -5.95, -6.0, -101.4539, -85.6553, -83.86, -82.4942, -88.1375, -97.0592, -83.8303, -88.1342, -82.2756, 54.35, 28.02, -80.9139, -80.9183, -43.244, 127.833, -93.4661, -114.6667, -156.8756, -112.2292, -119.815, -114.7167, -90.3856, -82.8, 135.5648, -58.2333, -93.9803, -105.55, -90.3072, -82.1822, 20.65, -108.7939, -108.703, 10.1858, 100.133, -90.035, -94.8, -94.8592, -9.02, -171.75, -54.2167, 15.87, 15.85, -109.5661, 46.4167, -54.5667, -54.5833, -54.5667, 26.433, 73.917, 100.133, -123.5, 128.868, -77.1, 49.267, -99.0719, 119.133, 115.0, -0.005, -3.18, 112.47, -36.517, 11.4, -101.4814, -100.8122, -100.7247, 115.6839, -113.8667, -115.9694, 11.0803, -69.7889, -110.7036, -113.45, 14.39, -112.1975, -113.9333, 62.333, 13.583, 39.633, 11.067, 12.16, -78.6608, -95.2178, -55.3667, 13.37, -85.1292, -85.1197, -101.4394, -101.4197, 13.4342, -115.8167, 100.0, 53.97, -105.4481, 115.21, -64.4833, -64.4833, -123.9792, -80.7672, 43.767, -81.1433, -81.1558, -111.7792, -100.0569, -100.2667, -97.7019, -108.9722, -79.9542, -83.5369, 152.3289, 91.583, 45.1331, -70.7, 17.16, 3.45, 84.95, -94.2208, -84.7114, -84.7189, -84.7203, -84.7014, -119.3183, 151.6156, 151.6094, -90.8486, 29.867, 55.517, 37.37, 27.8, -98.3217, 35.4, 146.9172, 8.2015, 7.95, 148.2625, 11.433, 38.017, -112.1833, 20.02, 20.6, 12.65, 22.5, -66.844, -62.73, -72.031, -99.18, -63.794, -111.048, -99.75, -100.1, -63.758, -90.1486, -97.5964, 13.03, -85.8708, -77.0308, 6.1331, 99.4, 22.45, -103.4958, -97.7644, -91.2294, 8.93, 12.167, -92.3606, -78.489, 125.183, 22.4, -58.25, -58.15, -105.6997, -96.7758, -85.0375, 143.5306, -79.3228, -97.7172, 143.55, 143.5483, -120.8008, -75.3592, -79.8833, -72.2333, 22.383, -144.3503, -97.6167, -98.1167, -110.2669, -86.9333, 114.6975, 12.13, -121.1314, -121.1333, -121.1389, -119.3514, -124.7, -88.1222, -89.743, 11.1331, 8.5306, -99.9403, -100.2175, -118.4794, -114.6361, 9.715, 21.65, 3.8, 10.143, 1.9, 50.047, 10.268, 35.467, 0.147, -113.9275, -115.2111, -5.35, -123.5167, -123.5333, -88.3653, -112.7536, 15.07, 8.6506, 136.767, 41.35, 24.533, -5.6417, -5.6983, -112.7131, -108.2075, -92.7161, -88.2678, -100.4667, -110.3022, 128.28, 128.301, -178.6, -94.7, -94.7167, -105.4919, -105.5419, -95.0497, -94.9447, -147.5211, -121.5608, 9.0503, 4.9353, -83.1431, -97.0167, -97.05, -96.9833, -97.05, -111.5881, 115.8642, -94.8392, -113.9203, 38.383, 2.7631, 177.983, -111.1667, 42.5, -95.85, -95.85, -95.85, -135.8692, -117.7, -117.5167, -86.4175, -109.0528, 16.46, 151.2214, -91.0233, 151.2628, -84.4908, -79.7172, -101.81, 9.06, -85.9072, -106.6383, -106.6213, -75.0953, 52.583, -112.6681, -56.5, -113.05, -112.9333, 15.7081, -119.9411, -104.7183, -114.5333, -9.5458, -97.1167, -4.1858, -145.5328, -83.7022, -115.3231, -118.7006, -81.9522, -76.8042, -122.1383, -73.6167, -73.6781, -8.2858, -80.8325, -108.8794, -54.85, -121.2633, -95.4392, -95.7736, -155.1414, -107.3172, -112.7006, -80.7167, -149.6936, 26.33, -105.1, -98.315, -78.6014, 151.6936, 151.694, 151.7366, -97.7853, -82.1856, -90.0, -110.7711, -110.6519, 13.9831, 19.67, -74.3592, 9.4306, 140.1251, 104.3, 1.255, 73.817, 15.05, 18.967, -63.0, -70.167, -110.7078, -67.6167, -81.7167, -76.6333, -85.9667, 13.8, 9.95, -4.0197, -49.25, -49.217, -50.13, -117.4922, 29.833, 12.1, -111.3994, -91.0222, -120.8428, -116.9833, -88.0139, -109.8, -117.2331, -77.9647, -118.4167, -98.5903, -124.4242, -118.2833, 153.4283, -121.5, -148.4622, -118.4636, -126.05, -112.0917, -97.385, 10.1928, 94.9, -86.853, 30.95, 31.0, -99.03, 37.417, -97.4597, -53.9667, -101.7, -88.3603, -145.2669, -83.5097, -95.8744, -101.595, -101.6181, -113.3, -123.8903, -102.6667, 138.7989, 116.8269, 150.3256, -111.6833, -60.4167, -113.8958, -116.8458, 43.817, 83.367, -91.8047, -102.2036, -120.8961, 35.533, 35.6, -82.5667, -82.5667, 54.401, 136.8, 108.283, 30.933, 14.9531, 41.967, 123.05, 15.28, 126.163, 151.3289, -85.8825, -85.7922, 115.9839, 15.3667, 11.3075, 11.9942, -100.1514, 35.8164, 19.2, 19.1975, 12.5403, 0.46, -9.883, 149.7312, 149.7034, -106.0056, 1.4, 10.3, -75.5122, -121.7417, 136.8203, 47.75, -111.7275, -111.8547, 7.8331, 11.2253, -73.4667, -71.95, -97.4247, 153.0297, 152.9278, 152.9605, -87.9553, -98.5669, 26.5, -115.2667, -134.1833, 13.6306, -58.833, 10.6806, 14.3742, 142.6039, -3.6314, -3.617, -3.7892, -72.7167, -122.5772, -69.5167, -72.9333, -118.8833, -102.8222, -81.8311, -82.0439, -98.7444, -81.0678, -112.1503, -112.1547, -89.0422, -92.0442, -55.6667, -118.4667, -97.4, -97.1839, -97.0981, -86.2244, -98.32, -98.3136, -108.4664, -108.54, -108.5247, -105.8322, -105.8667, -67.7742, -66.8, -90.3444, -90.3283, -85.95, -92.5644, -89.6908, -85.5447, -99.2667, -99.2833, -93.4975, -116.1772, -97.3211, -116.1175, -149.287, -110.4333, -95.5517, -117.0258, -117.5667, -100.15, -105.6786, -59.483, -92.6886, -112.5075, -107.8992, -123.3236, -94.4139, -118.9631, -100.8439, -106.0931, -97.0553, -143.2833, -120.7844, -103.2072, -110.8333, -111.7333, -117.395, -108.8031, -121.0681, -75.4353, -122.8647, -94.4481, -114.7667, -107.2333, -70.2544, -106.5333, -121.0833, -124.0864, -84.6994, -82.9075, -82.9747, -79.9167, -123.5603, -87.9989, -122.5833, 15.45, 14.082, 15.4333, -73.35, -114.2206, -98.7803, -76.5542, -107.8533, -82.95, -96.0, -95.9833, -111.3822, -111.3847, -98.1331, -105.5119, -63.6167, -58.967, 9.2631, -98.5331, -104.6992, -78.2786, -92.3619, -86.8767, -82.8436, -85.7611, -94.4561, -72.5975, -70.8333, -121.7, -72.3731, -87.5814, -87.6225, -79.8047, -85.5022, -99.3022, -85.4892, -76.8917, -86.6086, -84.735, -91.06, -82.3628, -77.3983, -69.5833, -85.2422, -90.9853, -82.3461, -87.2028, -96.0983, -69.5953, -96.1639, -82.35, -84.65, -82.1711, -75.5761, -82.035, -64.9167, -82.1592, -90.0867, -88.1111, -88.0981, -88.1119, 150.0504, -92.9492, 145.9719, -130.7, -121.1667, -115.5333, -106.3333, -109.4703, -110.1544, -120.5, -110.9978, -109.4519, -82.2203, -91.9997, -109.45, -99.4339, 13.4075, 13.917, 12.1792, -89.8136, -75.85, 148.1718, 5.33, -103.6192, -96.1922, -97.5667, -108.0411, -108.0822, -130.7, 34.8164, -75.4, 146.0695, -90.7086, -79.5667, 8.3331, -92.7489, -82.9, -3.02, -120.9389, -123.9089, -105.8667, 24.05, 136.4631, 18.117, 13.1353, 11.072, -82.8892, 16.5592, 12.3256, -105.3503, -110.1333, -72.0389, -72.0494, -113.5472, -120.4833, -113.8694, 144.3345, -118.8, -71.0425, -120.2258, -92.5931, -95.1461, 147.0772, 147.0742, 45.6831, 9.1889, 12.86, -82.0894, -92.7594, -101.405, -36.5, -80.2167, -103.38, -3.1742, -103.38, 160.05, -104.8253, -54.25, -58.613, 144.7961, -105.96, -101.283, -69.755, 116.33, 111.667, 105.07, 113.483, -75.15, -39.0, -39.54, -45.2, -46.46, -70.756, -90.5275, -65.349, 48.517, 15.56, 35.3, 46.1, 7.467, -80.2167, 6.777, -2.6, -23.933, 110.3, 100.75, -82.59, -4.419, 110.083, -62.317, 106.733, 26.717, -89.0808, -89.1228, 149.5329, -145.4589, -94.3608, -85.3828, 9.6067, 43.83, 39.467, -92.7672, 77.317, 148.1075, -90.8842, 17.7083, 17.7, 150.2494, 150.254, 150.2687, -106.9672, -112.5833, -106.3292, -109.8667, -86.3297, -86.3294, 51.85, -65.9922, 37.279, -8.01, 115.67, 17.4697, -62.85, 18.37, 13.8, -135.7089, 8.3553, -100.3369, -97.4797, -97.395, -109.3092, -94.4972, -97.4142, 8.6197, -91.0958, -113.9333, -101.5053, 151.6787, 9.1831, 9.2017, 9.2014, 136.183, 78.25, -113.1833, 152.6414, 17.67, -106.9731, 62.35, 56.28, 38.195, 25.4281, 25.605, 135.1167, 141.7, 139.783, 141.517, -108.3247, -96.117, -93.4019, -80.3822, -112.6167, 33.983, 125.7, 49.6, -119.9333, 10.7717, -114.9239, -77.7297, -80.0667, -121.6306, 131.243, 14.14, 7.2644, -132.6983, 34.98, 110.25, 41.683, 119.7, -114.3333, 106.383, 126.967, 24.7314, -135.4494, -136.3614, -135.5094, -137.5833, -117.9528, 121.17, 10.8645, -155.3306, -156.5711, 43.767, 140.75, -156.2469, 78.32, -2.075, -88.0297, -87.6353, -83.7217, 35.6, -117.1094, -122.4433, -78.5333, -63.5833, -63.5167, -63.5, 108.517, 12.55, 11.9506, -96.9397, -26.217, 15.33, 19.63, -96.9406, -94.5889, 127.6636, 13.04, -81.25, -81.25, -81.25, 12.92, 12.92, 12.83, 24.4478, 24.1667, 9.4063, 36.75, 132.067, 137.717, 11.0694, 103.6, 11.0978, 81.133, -83.2772, 10.2428, 9.99, 9.8983, -99.6167, 48.533, 24.4944, 24.45, 25.1358, 25.04, 25.0419, 9.4081, -112.2642, 127.55, 93.517, -114.1642, -98.0853, -94.0347, -87.9914, -79.9333, 142.0636, -84.5247, 148.9536, 148.9508, -79.9167, 142.0644, -79.6922, -82.1114, 19.135, 23.6769, 14.7831, -90.3772, -74.8072, -99.3953, -98.6236, -0.1789, -72.0531, -93.2011, -81.1244, -76.3367, 14.99, -110.6833, -169.933, 8.9667, -156.0153, -105.1333, -86.7911, -89.5358, -88.4889, -89.4133, -102.8667, -114.8333, -122.55, -122.5667, -119.6369, -119.6289, 120.167, 22.9667, 22.9517, 22.9156, 23.2517, -110.7153, -95.8897, -109.3, -80.8667, -91.3719, 9.6794, 105.85, -72.2856, -81.0, -77.0325, 14.85, -99.3464, -106.9833, -110.18, 69.1167, 107.033, -140.9611, 24.1439, 24.12, -111.4167, -111.4139, 31.133, 126.767, -105.8328, -82.6428, -55.8333, -56.5167, 10.7, -65.2667, -107.6092, -86.4622, -86.4228, -111.7167, -95.2875, -99.2133, -108.7964, -108.6775, -97.6728, -97.6542, -109.8311, -116.8675, 18.0597, 17.9331, -101.2567, -118.2519, -63.1667, -107.5833, -88.5244, -103.9542, -76.8703, -76.8514, -74.1567, -103.8842, -103.7364, -103.9219, -103.7867, -93.1567, -81.0486, -83.2808, -112.5833, -99.8033, -82.9, -121.383, 18.12, 17.0106, -102.1175, -70.3164, -88.4114, -72.6825, -72.6506, -85.2892, -97.2608, -76.6833, -102.385, -119.1111, -80.0486, -86.1808, -120.65, -82.93, -82.8342, 146.7683, -86.4239, -60.9833, -119.6556, 115.8806, -99.8758, 11.133, 35.5, 119.554, -96.9575, 3.283, 2.9, -85.2875, 0.5717, -98.3836, -81.4697, -121.5517, -92.8689, -98.4272, 102.4667, -107.1958, -90.7314, 100.15, -68.96, -75.7167, -89.3392, -89.2531, -118.6525, 24.2331, 175.2, 124.83, -122.25, -121.5433, -100.0833, 100.433, -115.4225, 5.1978, -64.7667, -90.0656, -114.5617, -71.0603, -109.7617, -109.7633, -63.6, -63.6167, -155.2561, -96.485, -3.0281, -57.1833, 138.435, -122.9169, -83.4681, -115.95, -117.3, -75.1653, -122.835, -118.6292, -118.3342, -161.155, -107.2547, -110.8833, -101.0344, -152.0758, -115.6289, -123.165, -0.9839, -121.13, -97.3142, -99.3358, -122.115, -91.4442, 144.8545, -115.95, -115.7833, -115.7833, -116.0, -102.6928, -102.6944, -114.1378, -100.3486, -90.4542, -85.3397, -115.8086, -122.1547, -122.8731, -97.4203, -100.6197, -148.9942, 73.4, 73.717, -121.1683, -53.3833, -101.8075, -108.9558, -0.461, -61.7, -119.9, -98.6775, -110.75, -111.4261, -110.5644, -110.5581, -111.3392, -111.1006, -97.5903, -102.0383, -90.13, 108.05, 8.9808, -105.1667, 13.52, 13.67, -120.0833, -120.0167, 117.233, -85.6006, -121.4908, -83.7667, 8.65, 10.1331, 9.2342, 11.5208, 6.2589, 26.0528, 6.1044, 17.8372, 18.8167, 18.71, -83.7261, -86.8336, -90.59, -98.2661, -112.0017, -111.9636, 7.8931, 13.9246, 23.75, 4.7106, -114.6278, -120.4217, 10.9603, -144.1225, 26.23, 12.77, 24.9667, 24.9783, 24.93, 25.0494, 24.9167, 25.0708, 24.95, 24.9167, 24.9642, 25.0481, 25.0831, 25.0331, 31.333, -111.2167, 15.0853, -116.8939, -103.0733, 18.53, 18.55, -77.6083, -115.6333, -85.8833, -73.7167, -72.6, 1.683, 18.38, 101.6, -94.7964, -82.4492, -78.4119, -88.7244, -87.6456, -94.8, -118.45, 34.8167, -89.3381, -97.835, -98.2003, -1.017, -116.7614, -119.5639, 111.15, 25.1831, 62.228, -107.2667, -127.6333, -102.4003, -103.1086, -145.0, 8.6875, -96.9494, -125.2, -88.375, -98.371, 10.2692, -119.2636, -119.312, -119.2611, -107.1097, -120.8558, -90.0103, -116.0014, 151.9131, -72.6, 15.22, -138.9167, 6.5531, -100.9775, 0.333, 7.1556, 152.8817, 5.1453, -86.1056, -114.4833, -119.7831, -102.6472, -102.6547, -110.4833, -110.4806, -96.2833, 114.733, 141.6316, 102.9, -80.2858, -92.8389, -92.8347, -109.9667, -81.3819, -89.1911, -84.7475, -98.0311, -99.43, -105.667, -134.877, -116.7667, -17.8889, -93.7075, -83.1983, -83.2178, -86.2503, -86.3114, -121.0167, -99.455, -99.4894, -74.5642, -114.4667, -88.8647, -75.65, -122.8083, -117.1667, -117.1667, -0.6417, -79.9722, -123.3794, -74.6714, -116.4833, -118.1, -114.1667, -119.0383, -82.5972, -176.167, -115.2236, 136.25, -62.62, 6.3239, 7.6533, -101.8683, -109.7167, -97.1094, -107.5656, -89.4919, -83.6092, -90.3339, -122.99, -6.07, -97.0664, -84.6411, -94.89, 145.5249, -110.42, -103.5594, -99.8278, -115.0733, -93.6042, -99.8297, 110.47, -155.0828, -155.0531, -113.4667, 134.667, 126.333, -92.9928, 10.57, 138.8177, -70.9125, -87.905, -107.1533, 8.1064, -98.4814, -117.5333, 129.55, -81.0133, 143.317, 132.467, 75.733, 130.933, -110.3878, 130.75, 60.4, -139.033, -122.7, 147.5, -87.2881, -99.0528, 147.5033, 147.3278, -99.0525, -103.1314, -103.3539, -109.1, 85.717, 18.1664, -85.735, -93.3911, -97.4667, -148.6767, 4.1217, 11.8775, 9.4794, 10.5167, -77.3031, -77.3219, 11.9092, -155.6667, -121.8667, 13.75, -82.1836, 11.0117, 111.683, 9.5392, -106.0003, 170.983, 21.31, 13.8, 11.6, -110.1544, -91.1269, -96.3861, -96.3561, -112.25, -120.7736, -105.5167, -99.3803, 17.57, -115.05, -110.2, 12.58, -76.7683, -122.5667, -130.3667, -86.0967, -86.205, 12.8658, -70.675, -132.6222, -114.5739, -121.4214, -121.3622, -99.8136, 25.5831, -106.1, -102.1317, -80.1342, -80.2411, -80.4211, -89.4347, -89.4347, 31.183, -117.8, 20.7564, 41.667, 20.8692, 142.05, -95.5489, 150.9254, -112.0122, -95.755, -102.3411, -53.1, 13.1681, 11.6975, 9.0042, -1.683, 7.3567, -116.9211, -82.8003, -93.0625, -151.6347, -151.3256, -151.2083, -151.4908, -80.3833, -80.55, 104.37, 15.95, 74.45, -99.1383, -99.1742, -77.5136, -124.1069, -79.8667, -70.85, 159.967, 0.767, 25.9781, -156.6817, -157.9294, -157.9992, -115.0333, -163.4081, -121.5175, 6.5731, -101.2103, -135.4278, -135.1333, -123.6714, -87.685, 5.3456, -106.0667, -103.2792, -121.5, -121.4833, -149.6286, -60.2167, 25.0667, 142.3569, 120.1283, -106.2667, -77.2775, -75.8856, -93.5564, -121.2333, -110.2069, -87.5206, -110.88, -123.0806, 7.55, -123.8833, -123.9303, -115.2, 13.67, -99.5606, -88.6325, 109.783, 11.6992, -15.227, 8.2042, 15.87, 142.29, -121.3667, -115.2278, -110.4961, -122.4003, -112.6508, -120.5028, -111.45, -110.8617, -115.9092, 142.1731, 142.0687, 150.8567, -28.63, -95.52, -114.7561, 17.467, 59.3831, 79.933, 16.2397, -82.8311, -79.8317, -103.4739, -114.6833, -93.0486, -93.06, -114.6694, 35.85, -84.7747, -84.8922, -84.6739, -67.8417, -67.7928, -90.8161, -105.6319, -129.1333, -111.9781, -88.9867, -126.6667, -95.2417, -95.1667, -95.2819, -95.5561, -95.36, -95.0833, -95.28, -95.6564, 91.567, -109.075, -96.2714, -97.5242, -122.3814, -113.0033, -97.0031, -113.6167, -123.3, -100.4397, -83.7667, -66.5667, -121.4219, -121.0833, 114.0, 126.75, 115.5, 105.0, 118.15, -75.75, -77.5, 99.95, 110.08, -121.5833, 17.1, -98.6592, -71.4147, -102.3167, -102.4, -102.3167, -102.5833, -102.3167, -73.8, -121.9, -101.1772, 11.43, -91.467, -98.41, -6.9492, -6.9094, -0.3264, 144.2333, 144.1986, -95.5381, -101.34, -103.4897, -99.65, 126.25, 102.25, 117.533, -108.36, -99.35, 103.28, 102.767, -96.1, 135.083, -104.6028, 132.97, -0.3667, 126.65, -95.4456, -105.1167, -115.7833, -94.2203, -112.3006, 147.0329, 7.4844, -123.9897, 15.1, 15.09, -114.0217, -114.0575, 107.2, 12.94, 7.2667, 147.5394, -108.3167, -117.4736, -74.1667, -88.4253, -85.4981, -117.255, -119.2206, -82.5267, -82.555, -108.2444, -107.0889, -95.5422, -93.7522, -86.7861, -111.7131, -95.5861, -95.4, -79.1667, -99.505, 116.333, 6.6567, 18.1831, 33.7167, -90.1956, -119.5678, -98.1989, -98.2231, -113.2072, 18.84, -112.5, -88.6006, 9.0572, 102.7, -97.9125, -98.0297, -94.3675, -97.8606, 107.333, 16.45, -19.5667, -70.3039, -70.28, 118.8983, -83.3667, -130.0269, 68.417, 128.167, -114.1667, 28.2367, -107.2278, -107.1375, 24.8064, 107.755, 27.6331, -69.18, 119.97, -75.2, -113.9886, -73.25, -44.05, -53.11, 1.3842, 58.5, 56.433, 155.5831, -118.8786, -94.8278, -115.8319, -112.0125, -111.7847, -112.9422, -112.0672, -102.2939, -107.6667, -95.515, 15.23, -122.9653, 12.86, 12.3, 92.133, 12.2117, -116.7067, 86.57, -81.8, -81.8167, -107.5333, 122.4, -42.18, -99.53, -47.55, -39.3, -54.467, 7.6328, 137.817, 130.699, 106.17, -43.1667, 46.433, -81.4333, -61.7667, -61.7833, 47.283, -70.3833, -64.2, -68.9, 51.0, -3.5017, 40.333, 42.717, -69.55, -39.067, -109.81, -154.9089, 168.97, 168.23, -124.0575, -123.6853, 8.42, 8.623, 122.567, 30.9331, 30.9778, 31.0619, 31.0475, 4.494, -51.0667, 142.2164, 59.08, -118.1631, -114.1597, -81.4406, 11.7128, -47.5, 8.04, -115.5667, -101.655, -115.5786, 18.067, 18.07, 93.9, 126.35, 136.5, 25.7406, 27.4181, 27.27, 28.8992, 28.8475, 28.3039, 28.3031, 28.3053, 27.4489, 27.4175, 27.7608, 28.5975, 28.6331, 27.4964, 126.633, 35.4333, -49.217, -118.2036, -95.7003, -94.3861, -91.8781, -89.8214, -120.2833, -120.2833, -120.3167, -106.6167, -86.2958, -86.0678, -79.1186, -87.0881, -93.6481, -114.1667, -95.2, -53.8833, -110.75, -110.6833, -83.8083, -103.65, -74.2692, -74.7883, -153.7, -121.5383, 48.77, -116.2153, 75.8, 33.78, -82.5194, 121.65, 101.98, 9.6531, 9.705, -90.5, 146.1769, 11.5333, -107.2039, -60.4, -60.4, 148.5669, 24.0169, -113.7333, 146.0345, 11.4, -78.12, -101.9414, 7.87, -93.3981, 26.017, -154.4983, -78.0833, -78.0833, -133.4833, -133.4833, -133.5167, -133.5167, 168.333, 151.1121, 151.0819, -4.2231, -82.3125, -117.8214, 46.4, 9.6331, 5.767, 2.5, -95.4242, -85.0778, -91.505, -91.5431, -93.2536, -48.167, -99.0383, -68.55, -68.55, -68.55, -70.1, -73.3, 55.4, -53.233, 137.1, 60.72, -101.35, -50.633, 95.467, 35.85, -41.867, 61.2667, 123.459, -121.95, 104.35, -117.9964, -90.1892, -115.1219, -88.1144, -88.0842, -112.7333, -112.5019, 138.85, 75.45, -110.2667, -117.7231, -83.2389, -67.0525, -91.3753, -91.4083, -103.5333, -103.55, 69.43, 13.6331, 124.187, 141.3, -87.6894, 89.049, 71.25, 144.4406, 125.3167, 111.673, 36.154, -80.6364, -102.35, -102.35, -94.65, -111.3833, -111.3714, -111.3833, -71.8903, -109.433, -110.95, -93.5014, -58.9667, -73.1017, 32.2297, 30.55, 29.0831, 29.15, 12.083, -37.81, -40.28, -58.481, -55.983, -42.85, -41.883, -95.19, -95.1919, 121.85, -76.2461, -76.4492, -40.11, -21.95, -41.3, -49.52, -49.21, 9.567, -88.1958, -88.9703, 25.35, -50.86, 24.333, 27.4331, -106.55, 144.3088, 144.2995, 24.7, 60.45, -53.933, 107.3, -128.4, -140.15, 132.2333, 141.783, 131.783, -98.0, -95.1, -103.73, -16.4992, 53.45, 37.3, 28.85, 27.15, 27.167, -78.55, 129.3, 2.9453, 79.95, 132.8939, -68.75, -70.2583, -114.6586, -98.1561, -87.9278, -77.4239, -89.6678, -83.3131, -88.1681, -110.7614, -113.4089, -63.8333, -81.7019, -95.2736, -90.2286, -90.1978, -81.3928, -81.5147, -77.4008, -81.6667, -81.65, -82.7078, -88.8222, -82.2, -83.3178, -88.8456, -90.2214, -90.0778, -88.9167, -115.45, -84.4667, -79.6772, -108.5797, -116.0167, 17.0, -105.8, -116.0167, 68.3, -40.467, 119.1092, -3.8075, -72.0036, 82.033, -37.767, 47.667, -108.02, 75.8, 70.917, 17.27, 106.833, 106.867, 129.7167, -103.1872, 122.85, -96.917, 21.567, 66.35, -71.1239, 26.8, -84.9419, -86.5983, -80.4681, -99.4778, -79.1592, -98.6692, -98.685, -77.25, 24.8181, 24.7892, 25.33, -43.3, 54.9, 115.8794, -78.6333, 28.8, 84.27, -7.33, -8.6667, 102.335, 47.92, -115.4328, -121.4889, 90.233, 49.117, 19.68, 115.6658, 105.75, 120.9, -109.1789, 16.18, 57.7667, 45.4, 57.517, -82.9447, -87.3153, -84.4461, -117.8167, -118.0333, -118.3833, -142.0833, -51.71, 140.717, 140.483, -100.5725, -107.7361, -72.5022, -91.7108, -117.1167, 39.183, -94.3558, -97.7903, -94.4114, -81.4286, -83.4739, -92.1558, -92.1825, -88.8042, -107.8292, 131.1, 126.533, 23.733, -120.3333, -106.5439, -106.6872, -92.1289, 11.5842, 8.8, -111.2, -92.6642, -109.3464, -113.5167, -6.0556, -112.1114, -114.5192, -114.4564, 150.9093, -119.8386, -90.3431, -2.1943, 35.2167, 150.8, 150.8048, 150.8049, 136.1442, 12.96, -93.0703, 89.161, -120.2947, -81.8628, -102.318, -99.9181, -114.2347, 7.8806, 18.12, 84.083, 73.717, 114.967, 126.217, 101.82, 112.18, 111.917, -115.6206, 5.874, 5.883, 36.833, -109.9667, 152.4606, 117.05, 117.2, 108.967, 82.9, 100.8, 113.07, 33.183, 67.161, 121.117, 101.5, 98.483, 118.1, 61.805, 130.949, -43.11, -34.867, -46.17, 58.25, -83.0678, 73.017, 29.7267, -102.6803, -111.3228, -119.1333, -105.8833, 28.246, -55.188, -101.7508, -118.545, -98.4089, -112.6114, -103.4342, -116.5378, -81.8467, -169.5167, -78.8339, -6.483, -118.9594, -119.6458, -78.3011, -102.9297, -80.3492, -95.75, 27.383, 23.5006, 19.64, 20.1308, -109.0097, -73.4333, -88.1028, 19.9894, 19.9067, 19.8753, 9.5975, 36.917, -84.3544, -67.6494, -90.6589, -90.6464, -91.8628, -82.36, -105.9, 18.93, 14.0731, -71.15, 12.55, -110.7669, -94.5828, -94.5022, -106.9103, -93.6356, -106.4681, -106.9475, 13.4, -77.114, 13.96, -106.7403, 27.8633, 8.89, -75.423, -116.2747, 47.9, 23.87, 26.0989, -65.289, -122.0056, -76.729, -75.817, -78.87, -67.076, -84.209, 31.6, 136.22, -109.7536, -109.48, -85.367, -43.35, -65.098, -102.2625, -70.158, -116.5908, -116.5925, 141.7214, 141.7458, 6.41, -122.1667, -90.7483, -65.9114, -99.8045, -99.7664, -134.4111, -134.5694, -134.5639, -134.7658, -134.7467, -122.15, 8.0, -60.931, -67.1667, -120.4725, -119.7772, -80.0553, 16.9506, 16.9531, 43.117, -43.66, 112.9, 115.0311, 29.2378, 24.2906, 27.8881, 8.3727, 117.566, 145.8667, 142.72, 45.83, 25.6, 25.6783, -100.43, -118.4039, -87.993, 3.2203, 22.5544, 86.35, -93.0483, 69.212, 28.467, 105.9, 137.6953, 137.6628, -101.5147, 29.701, -13.508, 126.567, 130.55, 8.49, 8.9942, -156.575, 36.933, -157.9894, -156.4286, 173.7, -156.2128, -156.0489, 133.696, 145.5656, 10.1, 7.7367, 10.7889, 173.267, 173.3, -158.1058, 27.6667, 27.6783, 118.383, 34.78, -133.9, -133.66, 82.233, 41.1, 74.583, -77.1167, 23.4503, 116.77, 22.1, 22.026, -85.5519, 66.583, -156.9828, 114.165, 36.71, 121.4533, 28.467, 113.967, 117.432, 20.55, -114.3114, -114.2636, 18.0797, 6.2656, -85.1728, -85.0486, 12.7, 6.5267, 16.29, -158.7417, 10.1467, 36.3697, 126.6453, 126.6431, -111.2822, 22.0, 40.7, 166.2167, 40.3, 81.28, -116.0339, 26.667, 41.22, -120.3333, -120.45, -120.45, -120.4333, -120.3, 99.5333, 33.8, 45.367, 62.717, -112.5367, 141.8031, -159.6586, -115.0333, -115.1167, 136.633, 99.533, 65.85, 32.35, 2.93, 2.933, -156.5658, -157.8014, -157.7833, 39.67, -78.8036, -109.8936, -114.7075, 101.97, 126.6, 43.3, 22.4669, -87.8856, 125.97, -97.9597, -112.4383, 135.25, -94.7725, -94.5969, -94.7306, 95.633, -152.17, -16.051, -156.6753, -82.4667, -82.4333, -82.45, 1.167, 111.95, 73.15, 79.833, 56.333, 63.85, 107.62, 84.85, 25.5031, 25.5019, 78.067, 72.9, 86.42, 22.817, 22.4503, 22.45, 80.95, 38.93, 21.8483, 31.85, 12.914, 14.51, 14.85, 11.2975, 8.365, 13.4667, -97.8756, 116.0744, 139.8972, 116.7742, 43.115, 65.717, -110.3553, 138.55, -103.5428, 22.8031, 114.317, 31.133, 25.15, 51.577, 75.983, 36.017, -89.9492, 21.1939, -116.9167, 47.4, 36.4, 9.4433, -105.0953, 33.7831, 117.6064, 117.5553, 132.2737, 85.367, 150.3087, 19.03, 140.317, 10.6167, -96.2725, 22.1867, 23.0469, 23.0469, -155.1433, 23.8331, 23.0333, 23.0339, -159.0436, 138.767, -116.6333, -106.6375, -11.4, -11.44, 35.4797, 107.62, 62.117, 49.2, -110.1917, -94.3294, -99.0133, -155.3589, 19.75, 158.92, -12.22, -2.27, -72.3247, -118.9208, -102.9208, -116.7667, 18.13, -22.6, -117.6167, 7.8808, -90.0964, 140.3556, 140.3273, -65.2, 20.0167, 174.7667, 11.08, 117.7217, -110.8, -94.4553, -103.75, -94.455, -116.1222, -6.8467, -162.3, -119.3833, -119.3833, -119.4, -119.4, -119.4833, -119.5667, -117.9858, -96.5167, -122.9, 34.65, -127.95, 91.667, 86.22, 86.107, 27.7075, 27.1642, 24.6167, 24.5831, 22.7606, 22.5608, 22.1967, 24.5192, 24.1, -110.5328, 152.7717, 152.8235, 10.3364, -75.6333, 34.8164, -151.3228, -149.4, -151.2392, -150.3167, -110.0167, 122.433, -11.233, -6.6, -88.1386, -102.0975, -99.8628, -70.4697, -90.075, -119.1011, -94.3667, -94.3833, -87.8156, -87.9381, -120.6994, -122.2433, -122.5447, -87.4353, -102.965, -83.6061, -88.8917, -64.4833, -104.1108, -91.9928, -91.375, -113.6333, -91.9683, 143.9197, 36.4167, -119.8167, 101.367, 65.2, 56.967, 47.117, -103.0889, -118.4389, -109.05, -99.1081, -80.5972, -122.4167, 16.98, 125.883, 17.2333, -131.7117, -114.3603, -120.0569, 15.03, -89.8997, -87.505, -79.005, -96.25, -148.2711, -105.6167, -105.6, -81.8, -81.7522, -81.6833, -156.0589, 49.817, 118.617, 148.1405, 70.683, 50.267, 30.533, 36.1331, 32.549, 56.233, 44.0, 39.3, 7.083, 32.567, 102.883, 26.983, 102.833, 71.5, 48.283, 44.9667, 69.7331, 23.45, 66.633, -94.9831, -160.4375, 1.35, 130.9558, 20.7, -2.5789, 10.1439, 30.5331, -11.4, 30.139, 29.633, -155.2364, 23.967, -157.9525, -157.9453, 104.532, 20.4667, 18.786, -160.2, -128.4833, -97.7167, 119.3, -100.945, 37.083, -7.2667, -111.8667, -99.65, -81.4833, -102.7606, -97.6919, 51.1, -106.6167, -107.8, 14.8983, 136.4125, -103.6344, -94.3056, 24.767, -115.9667, 128.7092, -112.3833, 129.2, -103.2986, -103.3219, -107.0, -109.1833, -109.55, 114.167, 151.8398, 151.8456, -97.9294, -97.9544, 28.6, -98.1136, -113.9331, 137.6364, 137.5231, -101.6706, -82.5275, -84.5278, -71.5431, -71.5414, -71.5417, -93.5206, -76.6, -76.4833, -87.1153, -79.8283, -97.8497, -82.6667, -97.8167, -102.9714, -109.1022, -118.2258, 42.586, -121.1378, -107.0233, 36.259, 143.8831, 42.804, 46.699, 45.528, -123.2, -156.6294, -58.75, -79.5167, -5.31, -3.561, -111.5167, -99.3656, -77.5433, -77.5722, -79.2667, -102.7333, -88.6631, -93.8833, 108.0667, 29.9, 29.8977, -18.0667, 24.3525, -80.0, -92.5747, -92.5433, -2.905, -101.3369, 49.6331, 32.2, 133.533, 52.23, 34.167, 18.43, -81.3, 20.23, 20.34, -109.3167, -99.1228, -93.1981, 10.8117, 28.87, 103.97, 42.72, -81.4239, 34.75, -9.467, 131.317, 35.0, 142.583, -80.3833, -82.5414, -128.7, -128.6833, -128.6333, -152.3722, 24.2433, 24.9056, 24.8625, 24.8569, 24.2442, 24.1667, 25.7867, 24.8417, -111.5972, 10.2, -102.8031, -102.7233, 141.183, -164.5483, 106.45, 11.0383, 8.0681, 12.47, 9.05, 127.4, 22.7131, 14.333, 21.0667, -124.0747, -121.75, -121.7242, -121.5819, -144.9281, -133.075, -124.9833, 8.45, 10.4814, 5.4628, 10.3306, 13.8864, 6.0956, 29.333, 8.75, 12.9078, 160.8331, 16.6167, -138.2167, 16.3356, 15.25, 15.26, 14.2, 14.16, 41.83, 79.183, 24.0831, 26.9, 8.7564, -66.7, -105.0222, -90.2897, -93.1008, -122.4172, -83.9572, -83.9858, -86.6286, 135.217, 34.2, -149.4314, 7.6, 13.833, 14.9, 133.55, 80.5, 46.55, -111.9883, -152.4856, -152.3561, 12.5331, 12.65, -113.9653, 138.55, 0.0, 50.97, 47.65, 69.2, 20.3556, 22.2519, 22.3494, 23.1281, 22.9331, -86.1758, 136.433, 82.367, 69.383, 2.65, 93.367, -14.967, 49.08, 22.6, 13.84, 16.3097, 7.1583, 6.9717, -113.05, 35.233, 38.7, 25.033, 82.8831, 82.75, -140.2, 33.9, 89.283, 28.633, 137.033, 9.6378, 9.65, 10.146, -122.7064, 33.2, 128.0, 9.1908, 32.562, 39.15, 72.75, -83.6333, 24.07, -111.8842, -115.9336, -116.05, -116.0667, 20.8, 8.8317, 166.0, -5.557, 153.97, 86.133, 28.083, 134.4833, 21.1883, 21.1, 13.5, 11.4883, 88.68, -89.5797, 15.081, 21.2167, 48.9, 162.9533, 34.25, 15.47, 15.439, 32.667, 40.85, 32.067, 16.15, 116.217, 75.85, 116.051, 12.0092, 27.1881, 27.0517, 26.9528, 26.9617, 26.9667, 46.7167, -0.167, -162.6333, -65.0, 164.283, -5.467, 26.8133, 26.9442, 30.45, 141.7483, 114.1667, -157.57, 75.783, 46.57, 99.05, 100.05, 100.8025, -113.7667, 20.9331, 4.9859, 20.7, 17.77, 16.17, 15.883, 31.6, 40.2, 39.15, 35.45, 92.75, 79.233, 37.03, 43.8, 57.7831, 52.98, 45.167, 108.75, 135.3, 13.8539, 25.717, -106.3681, 14.1331, 80.033, 134.4, -113.8933, 14.15, 14.08, 7.8156, 21.3208, 21.1731, 14.1, 22.33, 33.4, 17.9897, 11.3219, 27.23, 12.2, 12.7256, 27.77, 21.35, 23.1425, 14.5, 33.22, 14.5056, 8.875, 9.0106, 9.4975, 8.7742, 9.3225, 9.7375, 9.6217, 2.317, 98.8667, 101.71, 101.55, 124.78, 103.22, 103.2, 16.085, 110.333, 54.65, 23.3, 12.17, -89.8, -89.8, -115.15, -115.1333, 30.17, 29.4739, 138.6783, 10.2369, -156.3211, -156.3561, 133.3027, 139.383, 130.699, -1.591, 126.8, 49.9, 66.083, 20.75, 20.7506, 11.9019, 26.533, 58.933, 102.683, 102.9, 126.6222, 128.71, 9.6933, 27.8081, 27.9081, 27.6367, 123.667, 123.7, -149.6114, 37.7, 77.283, 82.95, 134.633, 25.383, 132.33, 22.5, 65.4, 68.7831, 147.88, 124.5222, 78.067, 36.1667, 23.43, 80.367, 23.3767, 144.433, 55.4, 125.25, 63.6167, 21.03, 29.967, 42.6, 140.75, -68.4167, -77.75, 29.3192, 29.2258, 29.1553, 24.733, 47.966, 87.2, 5.9133, 18.02, 17.73, 10.1277, 10.8795, 167.7333, 167.7333, 126.9167, 115.7611, 145.0638, 135.5552, -88.0631, -115.6, 13.76, 135.733, 111.9667, 12.417, 36.333, 76.567, 94.5, 65.5, 86.0, 78.35, 69.6994, -73.35, -73.4333, -71.2333, 12.2831, 23.817, -13.217, -63.367, -64.833, 124.55, -74.3333, -113.75, -122.7189, -89.4153, -69.12, -117.8831, -72.4, -71.1167, -78.2833, -72.1667, -63.2833, -67.5667, -112.0167, -112.0167, -117.25, -70.8667, -72.9167, -71.75, -121.2967, 21.03, -103.8836, -108.8347, -68.7833, 29.75, -91.1236, 152.7161, 27.23, -92.065, -86.03, -91.8731, -85.4336, -85.3203, -86.9028, -86.9369, -91.9875, -86.0028, -50.33, -114.6147, 2.89, -43.883, -51.5, -79.2167, -72.3, 7.85, -118.0119, -85.4122, -107.3736, -97.3483, -117.7814, -57.771, -98.1114, -119.0644, 74.333, 7.8289, 71.5, 71.8667, 25.6342, -121.5833, 20.867, 22.35, 130.6358, -27.1, -27.3217, -103.7575, 21.13, -178.8, -95.1519, -110.4333, -110.6167, -74.3167, -82.0136, -71.4647, -92.6208, -109.98, 147.9961, -111.3208, -111.8125, -120.3678, -111.8333, -86.2692, -105.1206, -88.4981, -101.0489, -81.7144, -104.25, -117.1883, -92.7681, 146.3707, -93.2158, -107.3147, -82.5942, -79.7297, -85.205, -124.05, -118.6, 145.9124, -105.5833, -95.4322, -95.5275, -88.4347, -105.4706, -105.3553, 118.4647, 118.4625, -114.3603, -105.8167, -99.1442, 147.7975, -116.2167, -63.4833, -104.3753, -88.8967, -152.3106, -95.3247, -73.985, -91.173, -99.4603, -122.0047, -120.6392, 146.1772, -146.6789, -95.8864, -82.9508, 141.2652, -88.0594, -95.9572, -110.3986, -101.2492, -117.6333, 167.8, -102.6306, -94.3147, -102.6881, 10.246, -45.31, -95.3153, -74.9447, -90.2908, 140.5378, 140.5175, -101.9456, 16.25, 22.4, 25.25, -115.4855, -115.4, -115.5231, -93.9508, -93.9019, 99.517, -98.1847, -157.0064, -156.9486, -156.9203, 99.933, -82.6072, -71.5725, -76.2742, -90.7889, -76.2944, -85.8261, -82.6572, -118.2117, 115.33, -104.6036, -84.7283, 10.55, -108.6686, -108.7261, -76.4333, 10.9167, -121.9614, 17.87, 12.3, 8.5225, -95.9969, -133.05, -133.0667, 1.35, -98.3447, 18.17, -101.7167, 18.7, -107.0167, 13.06, -76.35, -124.4533, 5.31, -98.55, -101.5603, 105.97, 106.767, 48.817, 17.66, -87.9333, -84.5789, -74.4653, -13.6003, 103.883, 121.55, 120.533, -88.7594, 103.9667, -83.3606, -83.3075, -76.4933, -86.7297, 28.4756, 28.5656, 28.1542, 28.2117, -73.4333, -105.8667, -105.6069, -105.6747, 122.967, -99.4983, -97.7106, 22.45, 33.6331, -99.0994, -99.0967, 133.2138, 80.25, -109.2667, -61.1, -121.7136, 15.5944, 16.8994, -105.25, -69.667, -103.2153, -56.3, -92.6, -106.7414, -59.1, -117.4389, -93.55, -70.917, -105.11, -60.583, -15.3892, -120.9242, -122.0669, -115.1333, -115.1958, -115.1633, -105.1419, -115.0333, -115.1847, -105.2131, -71.1333, 20.27, 35.77, 9.7153, -120.3533, -114.5806, 22.233, 147.2144, 147.2033, 147.1222, 9.9094, -117.6989, -89.1236, -77.2139, -76.9003, -116.0333, -79.1883, -123.575, -79.1411, -82.0219, -71.6667, -79.4664, -79.3661, -112.0967, 6.1992, -71.1, -121.5011, -121.33, -112.0067, -113.0389, -112.1472, 122.4236, 144.7566, -96.4861, 16.826, -95.2514, -71.1658, -87.3508, -77.7928, -74.6692, -87.6056, -95.2117, -71.1239, -124.1333, -98.4572, -98.4172, 112.833, 16.41, -123.485, 20.7, 23.5167, -149.0364, -70.9167, -110.195, -81.4264, -100.15, -105.4, -71.65, 6.8, -79.367, -91.2528, -91.1914, -105.15, -57.85, -118.0747, -118.0167, -73.6833, -73.6833, -77.7, -96.8769, -104.1669, -85.0317, -96.86, -90.9686, -122.255, -98.3992, -103.5439, -103.8225, -103.4775, -103.5122, -74.7667, -70.15, -117.0233, -87.924, -98.2928, -17.755, -102.75, -120.1875, -110.4167, -110.3, -102.03, -57.895, -70.0333, -65.6, -66.817, -1.15, -105.2667, -105.2667, -109.2664, -55.6667, -71.2, -71.3, -106.5975, -72.7833, -72.7833, -101.78, -93.88, -113.2686, -97.3756, -122.6886, -103.743, -109.5, -3.7589, -113.35, -113.3622, -106.3169, -92.9158, 114.0967, -94.9189, -120.675, -119.6167, -119.55, 17.5331, -86.3181, -82.0383, -122.9014, -92.6936, -76.4667, -86.2631, -72.3047, 10.8506, 8.95, -1.4381, -94.2228, -114.4667, -99.4317, -1.55, -1.535, -84.1869, -81.8097, -93.2397, -111.6022, -94.3714, -94.3358, 5.7517, -119.1194, 123.733, 11.45, 12.5133, 138.4219, 10.317, 120.7031, 12.45, 12.2414, -86.2892, -106.2889, 11.7022, 13.615, 15.02, -92.2047, 28.333, 5.5194, -113.4333, -72.0667, 19.9575, -102.1575, -122.2208, -119.0264, -107.6592, -119.95, -41.383, 16.5, 93.383, 159.383, -110.6003, 8.0358, 9.5283, -71.8167, -81.5378, -84.2622, -84.3308, 10.8856, 114.88, 11.4878, 8.2317, -92.5947, -98.9439, -118.7192, 121.3303, 121.3186, -93.6453, 9.412, -5.6492, -101.3658, -118.9358, 28.7, -103.517, 134.3, -104.6333, -103.0822, -1.1831, 14.2, 8.3733, 22.35, 21.95, 3.089, 15.27, 45.767, 16.5331, -68.3833, -74.05, 31.58, -53.9, -112.8, -112.8, -112.8, -112.7667, -112.75, -70.0, 118.9, -174.45, -2.868, 8.1275, 10.2744, 65.7167, -111.8653, -102.3758, 30.28, -75.1389, -76.8786, -80.4042, -86.8086, -86.7658, -77.1708, -70.2167, -117.0156, -77.5692, -110.2894, -109.4578, -93.5675, -110.6667, -97.0136, -90.0517, -83.1136, -88.3903, -80.2597, -79.4386, -93.855, -84.6058, -80.312, -82.5328, -90.4006, -61.003, 0.195, -96.1458, -61.6, 91.133, 92.47, 107.8, 114.48, 112.38, 146.6694, 146.6672, -115.5392, -115.2239, -115.3181, -115.5667, -100.9294, 15.017, -85.533, -74.74, -90.8944, 9.45, 35.233, 3.67, 26.167, 14.217, 12.4342, -91.8831, -110.9667, 25.317, -97.1461, 30.0492, 12.8, 21.0167, 19.683, -111.3133, -111.4833, 147.9722, 10.345, -159.3683, -159.3405, 100.467, 14.09, -121.9333, -121.9167, 16.44, 33.781, -110.8, -106.5333, -112.5928, 33.0497, -84.0267, -84.1294, -59.95, 8.0614, -67.8833, -110.2736, -79.7594, 25.2333, -83.03, -103.7158, -99.56, 100.217, -77.6928, -89.3381, -81.3289, -96.8542, -98.13, -96.565, -121.2683, -112.6353, -96.7475, -112.6547, -68.5125, 168.383, -110.5833, -112.0794, -113.7125, -122.85, 14.1203, 8.7814, -113.65, -94.8, -87.8408, -83.8039, 7.0481, 26.7, 119.4, -103.4986, -107.0542, -119.0545, -105.1833, -97.6386, -78.7333, -118.5658, -80.425, -116.2278, 7.317, -104.39, 111.617, -15.15, -71.3667, -40.0667, 107.4, 126.917, 15.5331, -93.1497, -98.0858, -100.2306, -1.25, 118.067, 14.18, 14.286, -123.2333, 29.6144, 29.6717, 8.3953, -100.2675, -103.7667, -103.8833, -85.6292, -9.15, -81.7844, -97.6928, 15.3, 111.1, 119.92, -88.0728, 153.2616, 153.2628, 153.3409, 6.5681, -116.45, 8.4125, 100.267, -94.5347, -112.3631, 150.1498, 140.33, -102.3447, -93.7214, -93.5642, -115.8806, -111.8167, -107.4358, -143.3672, -109.0167, -130.2333, -114.9, -108.9444, -74.2261, -94.3694, -74.8686, -94.3444, -113.85, -118.51, -122.2167, -81.415, -134.6497, -124.5167, -92.2619, -92.15, -92.2389, -114.2625, -112.3069, -96.0506, -106.9333, -109.0233, -118.3608, -78.8125, -119.8808, -109.75, 30.267, 109.4, -148.7217, -148.5497, -121.7692, -121.8136, -121.8144, 150.9128, -130.9167, -64.9333, -64.7667, -82.965, -88.1897, 25.817, -110.5589, -94.9256, -110.4408, -85.3364, 17.0008, 10.31, 119.48, -107.9333, 31.233, 14.5169, 14.48, 13.95, 13.23, 13.88, 12.6, -98.6542, 0.595, 0.6183, -110.0667, -110.0667, -111.6433, -119.3667, -87.7958, 15.1783, 8.7875, 143.3047, -93.9489, -77.4336, -118.7325, -102.6361, -102.7969, -102.6586, -115.1872, -102.64, -121.2878, -89.5311, 35.617, 101.733, -81.9947, -82.3939, -95.7883, -86.3878, -111.8914, -111.8533, 153.1947, -120.8167, -111.4164, -111.8564, -111.8033, -107.915, -2.3308, -52.6667, -121.9031, 24.0525, 8.24, 9.6108, -79.2, 9.0631, 130.449, -114.5833, 23.25, -110.5022, 1.25, 14.73, 20.217, -120.4514, -81.15, -84.0769, -81.15, -0.1833, -81.15, -81.3706, -83.5097, -51.183, -51.133, -108.1833, -111.4333, -121.9667, -90.1814, 142.2991, 120.32, -121.812, -105.0736, 144.2769, 144.2769, -75.1333, -64.2333, -101.4956, 5.09, -122.9164, -94.7189, -94.7117, -94.65, -78.545, 106.75, -2.67, -118.1464, -124.0378, -74.0028, -92.5064, -119.1017, -70.1983, -113.4, -116.2175, -80.05, -94.8892, -63.55, -74.7789, -116.0833, -112.5167, 7.7469, -115.7, 143.2469, -107.8333, -85.3444, -110.7167, -122.76, -110.1333, -109.1, 100.617, 7.8206, -108.6531, 159.079, -111.333, -78.8825, 89.367, 29.37, 151.4595, -102.4, -111.8625, -147.9714, -122.675, -106.7667, -121.1167, -116.1878, -115.9667, -78.7981, -114.2667, -106.3214, -106.5214, -122.1472, -118.2353, -118.3889, -120.8667, -121.0531, -120.9297, -75.826, -121.9592, -121.9428, -106.7611, 147.433, -119.7833, -99.63, 3.763, -7.9031, -78.0061, -60.0, -73.0167, -89.0711, -82.3914, -85.6636, -82.3528, -85.7392, -85.6444, -111.7667, -98.9681, -0.006, -58.9833, 32.6, 21.32, 24.7006, -88.8314, -105.085, -105.9, -108.4042, -118.4767, -118.5692, -98.0256, 26.4478, 35.033, -90.92, -87.4178, -71.3636, -115.5964, -121.7003, -118.5397, -93.2469, -83.0344, -111.9167, 1.7268, -115.6186, -75.4825, 146.7856, 146.7883, 145.5592, -80.2161, 140.5978, 19.2331, 36.317, -91.1672, -89.8222, -92.4108, 102.161, 13.8819, -101.8136, 10.719, 33.0, -113.3167, 27.531, 19.65, 11.133, 146.3861, -92.4853, 80.883, -107.15, -115.9925, -118.85, -130.6167, 7.4133, -86.3942, -103.3719, 7.65, 9.267, -94.8942, -94.7544, -94.8261, 8.9667, 39.25, 167.13, -7.4558, 25.5083, -106.5678, 16.953, -109.2269, 44.5, 153.8167, 22.13, 22.11, 22.1192, -97.6578, -94.1786, -79.025, -79.0592, 124.617, -118.95, -84.7753, -108.9417, 145.1517, -124.4667, -115.0167, 13.2, -13.2, 18.09, 106.77, -111.25, -111.25, -84.0233, 14.4831, -78.3728, 111.033, 121.6, -76.05, -104.0669, -104.4811, -110.6833, -90.6656, -96.2022, 6.21, 6.38, 103.77, 8.3, 105.43, -42.28, 115.98, 23.95, -107.5472, 18.72, -120.9167, -98.4583, -86.3631, -79.2331, -79.2067, -76.0833, -1.993, 9.5235, 9.1503, 8.1, -101.0333, -101.0833, -101.0833, -101.0667, 26.317, -91.0986, -106.6667, -2.9681, -62.8, -123.0736, 18.45, -98.8433, -117.4803, -114.0214, -121.5833, -121.5833, -64.6833, -2.333, 4.5, 35.783, 20.7433, 27.3158, 107.483, 138.1786, 5.7617, 146.2711, -61.3833, 113.6, -51.072, -36.633, 113.592, -82.5167, -106.0167, -35.7, -35.783, 117.6, -45.917, 114.97, 81.15, -5.7, 149.1794, -113.6317, 149.2169, -123.1333, -84.6167, -130.0333, 4.8, -88.5586, -83.6528, 158.937, 123.979, -66.9, 145.8, -77.9833, -114.3167, -90.7653, -108.1, -120.0378, -120.1106, -96.7708, -96.9433, -83.4022, -97.45, -69.8878, -95.9203, -87.5239, -97.0925, -81.8464, -119.5, -89.3453, -111.1167, -85.3942, -96.1661, 98.217, -121.0011, -121.1461, 80.183, -101.5428, -3.6781, -3.5556, -3.7892, -3.7225, -3.4503, -3.7, 69.7, -123.5239, 139.067, -109.6642, 97.833, 97.933, 98.55, -101.1, 25.548, -64.1, 150.7831, 8.933, 125.817, -64.117, 11.5842, -1.77, -114.3, -99.4833, 59.083, -93.2325, -72.1167, -101.1444, -67.0461, 17.3, 47.55, 46.3167, 48.8, 55.5, -95.9675, 4.3, 13.083, 95.34, 11.98, 11.983, 44.033, 8.2117, -148.093, -56.0167, 11.2978, 137.6733, 151.5683, 135.19, 135.4, 135.333, 119.0, 40.083, 77.283, 171.3833, -158.1964, -159.7153, -156.9661, 22.971, -156.44, 37.83, 39.833, 39.8, 30.0681, -59.1833, 12.87, 15.58, 15.7, 35.9, 104.97, -158.2261, -158.1989, 130.3, 8.614, 67.3, 18.75, 8.709, 102.252, -112.2872, -4.4881, -123.5333, 11.5292, -69.574, 38.317, 38.08, 18.6, -89.9894, 73.533, 152.8519, 15.24, -2.1617, -117.0247, -118.8447, -118.6333, -123.85, 96.95, 15.9133, 15.8033, 40.102, 38.55, -7.34, 52.73, -103.7625, 31.65, 15.2, 149.7289, 8.525, 12.2544, -121.7789, 20.67, 18.717, 13.0731, -111.1833, -74.3081, 7.7356, -107.8714, -107.9556, -113.3042, -107.7286, 13.6994, 13.71, -92.8364, -2.3067, 112.867, 114.02, -86.1481, -111.3167, -118.9617, -91.535, -7.38, -7.5, 124.8, -86.168, 48.367, -105.9392, -60.017, -84.0236, -2.275, -86.0875, -91.4517, -83.8167, -71.4383, -108.1833, -108.3161, 110.13, 96.1, 106.283, 7.4472, -100.9097, 41.867, 6.8019, -102.4386, 31.38, 120.8436, 115.7119, 115.75, -63.77, 145.1859, 74.883, -134.967, 90.85, 0.37, 130.6834, 0.467, 151.2107, -99.5017, -99.4239, 112.67, -96.5814, -96.6097, -96.6778, -61.278, -52.8667, 120.9833, 121.0, 134.2263, 134.2339, -86.2939, -86.2514, -87.6522, -76.0, 116.145, -98.2039, -94.0211, -144.4792, -107.0167, -150.638, -96.4433, 8.514, -80.2003, -117.65, -80.4647, -117.45, -108.4786, -111.25, -157.8025, -70.5333, 14.55, -93.7053, -92.5789, -82.6167, -72.1856, -82.5178, 1.3667, -75.7, -111.6306, 10.79, 25.4914, 21.4831, 163.683, -93.4817, -110.6833, -113.6667, -104.317, -121.5767, -121.5803, 31.3, -123.8628, -67.2333, -95.7836, -85.8353, -109.4667, -123.9367, -109.4667, -122.5, 32.573, -68.733, -90.7489, -49.138, -67.65, -67.7, 7.08, -103.2717, -81.0517, 48.933, 29.57, -70.8644, 119.7497, 119.7497, 29.28, -89.9664, 163.6833, -93.6522, -117.25, -62.158, -81.7139, -75.4283, 115.9797, 145.4283, -88.6078, 10.8483, -104.0722, -61.1, -140.85, 30.333, 0.55, -90.7664, -85.1839, 15.32, -45.37, 148.0181, -71.12, 15.7, -42.82, -112.0303, 26.35, 13.15, 13.82, -97.1642, -81.4328, -73.1333, 5.2267, 87.75, -40.53, 165.117, 16.883, -87.6236, -51.91, -79.3875, -97.2567, -85.6586, -83.1333, -82.0289, -121.9667, -121.9486, 37.867, -87.2314, -89.9225, -83.0636, -97.0753, -54.033, -119.9869, -119.6047, -60.6, 37.6, 28.133, 13.66, -80.7167, -88.9989, -119.7667, -122.1242, 5.8875, 170.4167, -8.4558, 22.9, 133.6201, -119.9, -96.8581, 55.183, 11.9333, 28.22, 153.0903, -109.2333, -87.5483, -87.3794, -97.8, -8.0, 144.7094, 138.0684, 138.0637, -90.1158, 66.8194, 37.983, -88.7533, 5.3967, -94.3508, -82.6658, -92.6394, -93.2225, -95.7908, -92.9244, -92.9175, -97.6067, -92.9097, -90.1333, -90.1875, -105.0656, -101.7386, -122.1142, 10.8831, -77.9669, -77.9844, -110.3378, -86.453, -79.865, 77.5, -88.8636, 16.82, -55.8333, -55.8333, 143.732, 152.7156, -101.5167, -112.2275, -121.5853, -96.6364, -83.3669, -115.95, -121.5678, -94.8342, -57.1, -57.583, 120.367, 123.62, 0.2, 0.3, -73.6, 11.33, 59.633, 50.0, -111.65, -111.65, 31.717, 58.9, 84.217, -99.2306, -99.2939, -93.1953, -89.6511, -93.3269, -117.9942, -99.1861, -71.3933, -112.9981, -74.8458, -132.1667, -132.1333, -82.0167, 30.867, 115.633, 13.433, -100.825, -100.4167, 115.6, -77.8, -96.8022, -95.9733, -13.25, -74.7172, -13.25, -149.2542, 116.267, -75.74, -90.3483, -114.2722, -78.8617, -97.8725, -98.817, 133.067, 137.967, 132.783, 13.71, -88.3544, -88.2803, 179.75, -54.91, -63.153, 23.417, -155.5761, -102.6125, -90.0597, -109.45, 62.867, -101.2922, -104.5867, -86.35, -108.0947, 146.6239, 7.2306, -88.6406, -71.4425, -123.3167, -83.1819, -72.035, -135.8667, -135.1833, -81.4167, -83.7872, 10.65, 10.65, -97.3514, -142.5844, -120.4275, 128.82, -110.11, -105.0, -89.8192, 97.033, 30.65, 33.467, -95.7831, -98.2511, -98.2539, 136.076, -120.35, -116.1017, -102.2217, -112.1931, -142.9961, -103.3644, -79.4667, -79.3636, 132.9791, -107.2847, -79.5683, -90.4708, -98.1236, -100.5914, -109.2658, -106.5333, -99.5333, -117.72, -84.0678, -94.1167, -68.2608, -108.4447, -95.8675, -114.7733, -155.6103, -97.4011, -123.6011, -74.6, -128.7167, -58.1167, -103.8333, -79.8603, -121.8667, -122.1164, -148.9692, -151.6397, -96.5914, -96.5903, -107.8667, -88.5425, -122.3667, -122.2833, -120.2167, -123.1339, 166.7333, -119.2978, -119.2956, -97.6097, -137.5167, -82.9, -80.6803, -73.5833, -116.1047, -122.1383, -107.2833, -100.4444, -81.8561, -100.6203, -94.9669, -117.8656, -101.3686, -88.2533, -98.6422, -101.2767, -100.8072, -100.5922, -97.2392, -122.2558, -85.7811, -123.1622, -109.8589, -93.7747, -76.6089, -118.4247, -100.345, -121.4667, -113.3167, -108.5167, -108.5167, -114.0681, -90.8853, -80.1667, -96.4808, -92.1589, -116.5169, -116.0767, -76.6992, -65.1667, -0.242, -76.7586, -105.4333, 98.7, 2.733, -90.3439, -97.7458, -122.8722, -106.2061, -100.2228, -110.7167, -110.7167, -110.7167, -104.4514, -104.4761, -98.5528, -98.5694, -99.2497, 115.8075, 3.963, -103.5264, -103.3769, -108.0333, 34.433, 118.5372, -96.9772, -107.8853, 9.1414, 27.8294, -84.7931, 10.3769, 8.16, 116.12, -5.5333, 144.8321, -80.6439, 144.97, -80.6539, 55.967, -104.6, -2.9553, -100.9833, 35.367, -90.6417, -98.5825, 135.5, -54.183, -54.183, -103.625, -94.8022, 10.3481, -107.8722, 9.52, 147.1981, -95.7036, -110.05, -100.5372, -89.8733, -92.1822, -89.9864, -89.8036, -94.2494, 124.917, 2.217, -8.036, -99.7864, 7.3167, -122.945, -68.783, -68.85, -70.933, 112.433, 101.58, 110.52, 103.383, 142.4173, 139.3375, -97.5714, -91.9364, 4.2156, 13.0439, 140.383, -120.5117, -58.067, -58.1, -58.02, -120.8825, -120.5128, -80.235, -90.0722, -112.4333, -116.0225, -116.0278, -106.7422, -71.183, -89.63, -72.8278, -88.7442, -88.5667, -0.675, 149.8989, -87.4578, -100.1222, 9.7656, -123.3972, 118.2789, -89.6617, -101.7089, -120.7833, -80.7308, -120.8, -123.9167, 27.2167, 34.633, 103.833, 23.117, 37.65, 35.58, -108.0833, -107.7069, -108.4892, 15.55, 29.9, 9.0, 158.3064, -119.7681, 21.7, -120.0078, 15.3, -121.6147, 12.9203, -82.0372, 6.1256, 96.117, -96.4497, -109.8675, -91.8861, -99.183, -79.0411, -120.0181, 44.22, -121.9167, -110.87, -100.6392, -94.8833, -80.1336, -80.3164, -80.4331, -80.3836, -80.2803, -98.25, -80.2833, 104.68, -116.2667, -118.5833, 9.1, -105.9167, -103.3, -63.5667, -80.9047, -81.8475, -118.0197, -83.7144, -71.0186, -74.4489, -76.7633, -56.0833, -107.0333, -70.9211, -106.0167, -115.015, -121.5833, -63.1, 131.2988, -107.1833, -1.567, -4.73, -84.2011, -101.15, -102.0258, -79.9333, -102.1889, -102.0, -79.8833, 6.9914, -82.2156, -118.7667, -81.4386, -177.3833, -112.8333, -106.2772, -115.4114, 25.7331, 16.11, 21.8581, 9.8031, 2.0, 76.533, 27.3, 27.21, -93.6617, 9.1892, -71.1167, -75.0642, -95.9269, -83.6186, -88.7267, -83.6769, -96.6233, -96.6689, -104.9619, -111.5667, 142.0867, 13.9314, -101.6192, -81.2967, -105.8825, 150.1819, 150.1844, -147.1667, -113.0161, -84.2867, -71.6486, -75.425, -95.1842, -83.6844, -96.8983, -113.0167, 21.733, 2.233, 134.9078, 134.8919, -112.05, 3.017, -73.67, -73.7422, -83.2497, -83.25, -111.1633, -98.9814, -81.9197, -76.8028, -99.4006, -123.2711, -79.7197, -79.9667, -77.475, -75.87, -68.705, -68.6925, -80.8561, 13.574, -75.0667, -118.0825, -117.0347, -114.4667, -111.6333, 24.48, -118.8689, -85.8889, 9.2267, -87.1414, -118.4089, -87.9044, -88.0294, -118.1056, 153.59, 131.263, 153.967, -117.6328, -109.02, 54.017, 58.567, -152.2817, -97.9553, -93.2947, -119.7758, -98.9514, -78.7167, -95.4822, -73.6183, -95.3667, -121.6092, -107.7333, 43.1, -80.7833, -98.0603, -120.9833, -92.6167, -92.6167, 73.15, 73.0, -113.5003, -112.6167, -58.536, 137.5276, 6.533, 166.65, -97.7047, -93.2289, -99.2656, 135.15, 135.1515, -89.7322, -91.8667, -89.0339, -101.35, -101.2964, -101.2733, 103.083, 27.53, -90.2103, 91.7, 30.733, -84.1317, -84.1283, -84.1158, -65.4667, -65.4667, 113.987, 114.0, 93.017, 113.9, -149.4075, -64.5, 138.933, 152.833, 20.767, -100.6558, -100.6083, -100.8042, -122.2667, -113.9678, -114.0911, -114.05, -114.0925, -71.7167, 15.05, -98.0356, -120.1156, -98.0244, -103.7008, -115.5469, -98.0333, 147.9777, 26.6, 140.467, 11.2667, -37.15, -45.4167, -22.65, -49.6667, -52.7, -53.7167, -56.1331, 11.533, -99.2, 139.517, 125.295, 141.967, 125.166, 131.083, 131.417, -105.2919, 44.29, 6.9373, 20.35, -109.5458, -109.7542, 13.27, -92.4369, -88.2397, -88.0333, -88.0681, -100.4489, -100.4078, -113.1528, -44.01, -109.9514, -80.4972, -101.08, 5.9533, -113.9256, 10.9342, -120.9506, -120.3536, -122.0481, 30.067, 30.32, 119.7331, -101.5089, 6.62, 122.517, -74.155, 11.0083, 27.783, -76.118, -118.1619, -116.0794, 126.383, -122.5064, -107.6833, 9.2881, 83.783, 7.2617, -1.8853, -90.5233, 13.07, -159.3375, -156.9475, -157.0961, 39.617, 143.35, 147.417, -102.9122, -102.8072, -113.1667, -67.9442, 32.883, -79.9869, -101.433, -64.7833, -64.6833, 7.8167, -91.6719, 100.983, -93.9619, -80.3, 23.15, 107.9667, -119.6, -90.6381, -90.7197, -83.3942, -121.9944, -89.6681, -92.1164, -80.5233, -80.6206, -92.0319, -92.0406, -10.362, 7.8064, -86.4175, 150.2275, -122.4717, 7.48, -71.9233, -85.8417, -118.1053, -74.9333, -119.6481, -77.917, -37.06, 4.7381, -89.3169, -114.1706, -99.83, 11.0083, -85.265, -121.9103, -121.8453, -121.8556, -100.2, -100.3, -43.867, -95.7461, -56.2, -100.4389, -111.8381, -54.083, -57.65, 10.7, -111.5, -39.29, 16.4, 15.95, -106.1869, -86.2181, -86.4075, -87.2847, -80.3861, -74.265, -90.1058, -83.6975, -78.4494, -62.4667, -83.9858, -109.3075, -84.8275, -83.7833, -91.7556, -70.5833, -103.4667, 151.1247, -84.6139, -72.6006, -73.55, -74.0333, -73.75, -73.4167, 6.9, -75.8583, -107.6928, -107.8792, -97.2017, -107.8975, 2.43, 3.5831, -78.7333, -0.508, -68.2167, -75.55, -72.2333, -104.8675, -110.2333, -110.12, 11.2733, -111.5792, 30.17, 140.1956, -113.4167, -118.6706, 116.0072, 145.0964, -104.9292, -78.9664, -74.9697, -115.6667, -81.0872, -90.5097, -96.7478, -105.7517, -93.9603, -115.3303, -110.7169, -67.2819, -110.7119, -113.95, -105.5667, -105.5333, -92.7578, -92.8008, -149.4261, -115.0167, -101.6667, -80.6, -80.6, -80.6, -80.6167, -80.65, -4.2, -93.3147, -38.36, -84.8361, 148.0308, -110.5889, 116.0089, 116.0247, 14.51, -93.2697, -98.0833, 149.8458, -108.4133, -76.7358, -101.183, -84.2147, -132.1333, -117.6333, -81.6728, -79.9164, -79.9697, -91.1761, -114.2667, -117.2833, -111.6722, -106.045, 9.8358, 141.167, -111.445, -111.5167, -117.5019, 139.1837, -120.7236, 37.667, 44.318, -116.5622, -111.5872, -5.6156, -5.6, 41.867, -1.6858, -92.7672, -112.6833, -75.1833, -89.9744, -89.4614, -83.3325, -83.4028, -72.6236, -75.7264, -72.6144, -95.8744, -120.8447, -41.9, -41.217, -121.4833, 13.65, 142.7744, -102.7586, 150.1437, 150.1532, 146.4747, -107.8225, -109.8833, -89.4117, 37.6167, -116.85, -116.9558, -119.3192, -119.0667, 142.5, 37.5667, 37.5167, 18.111, -103.9439, -116.2333, -113.35, 8.1792, -113.8925, -93.215, -113.9667, -117.6833, 150.4217, 0.117, 17.8, -102.3164, 11.02, 11.057, -119.3333, -119.35, -87.2989, -83.7492, 16.067, -80.755, -94.8233, -95.4508, -106.2606, -106.3103, -94.1542, -77.3, -92.4703, -115.87, -109.7058, -115.2333, -119.3711, -115.5167, 138.8509, 117.6361, 146.2747, 150.2741, 146.4394, -66.9333, -123.0, 138.9273, 31.05, 126.1025, -120.2469, -80.75, 140.7739, 140.7833, -121.5667, 148.7721, 147.1342, -93.5781, 139.4875, 139.4817, -112.8167, 138.7088, -113.1989, 117.8425, 147.1428, 148.0908, -58.447, 145.5419, -127.05, -122.4353, -119.1783, -63.8333, 147.235, -120.6511, 23.667, -88.0064, 13.95, -121.95, -120.1678, 39.033, 36.0, 44.667, 29.18, 29.167, 72.733, 14.3014, 85.317, -93.3508, -93.4706, -81.8033, -83.4128, -111.7222, -92.2617, -115.7119, -92.3939, -115.8667, -81.5992, -105.8225, -115.5436, -92.0978, -110.3306, 31.7, 40.183, -121.5403, -80.6508, -94.2428, -87.7578, -89.9842, -115.645, -82.8183, -121.9142, -121.9303, -121.6425, -74.8417, -121.7167, -117.1667, -93.5878, -80.9925, -116.4194, -116.4203, -83.4411, -104.0233, -72.8153, -82.2711, -77.9053, -80.8483, -95.0056, -87.2019, -91.5647, -84.7697, -75.3794, -119.8833, -103.4578, -103.4583, -122.3081, -122.3328, -122.3156, -83.9333, -72.0792, -95.2236, -84.3369, -87.8956, -88.8533, -122.3867, -93.8972, -93.8789, -71.2994, -77.8883, -118.0711, -121.6278, -123.3258, 114.9, 129.6, -107.4444, 149.6149, 40.283, -124.8, -116.55, -121.9356, -121.7333, -112.2722, 8.867, 11.5442, 11.8092, 7.5914, -105.0, 7.7, 28.367, 58.5, 90.43, 118.687, 12.5, 25.9831, 104.717, 79.65, 30.4, -108.75, -85.0756, -102.7328, -102.7739, -102.7783, -110.2708, -112.9667, -113.3944, -115.645, -101.0458, -81.3264, -101.3364, 115.5142, 7.6392, -7.3667, -79.2472, 71.419, 24.8108, 25.0539, -3.983, 14.125, -125.7667, -85.3936, -111.6392, 157.267, -112.3, -99.6158, -88.0769, 148.9899, 120.7578, 120.6997, 11.783, -86.6625, 12.98, 9.4842, -86.65, 23.44, 23.6803, 24.0369, 24.1203, 115.9561, -1.1692, -1.2294, -0.8031, -100.7078, 100.167, -77.0803, -93.7019, -86.3728, 33.0497, 140.983, 134.183, -116.7506, -83.9683, -115.3597, -88.3083, 139.2592, 139.2273, 9.5717, 150.7937, 150.8363, 16.2, 3.321, 153.3809, 41.517, -91.0728, -91.0464, -87.64, -87.5997, -53.9833, -113.7939, -86.2367, -95.3339, -95.3614, -79.3, 33.8, 23.583, 21.0681, -79.6586, 119.91, 141.217, -121.1944, -99.17, 64.717, 32.917, -82.3161, 97.4, 12.486, -3.07, -125.6, 31.0, -97.7833, -78.8219, -78.9333, -109.7311, 151.35, 175.77, 55.5, 142.08, 156.68, 46.667, -179.3669, 144.7297, -169.8, -175.8, 68.55, -110.0617, 20.65, 13.12, -8.833, -155.5842, -0.3, 22.0331, 21.9464, -142.9967, 135.496, 178.7, 157.7, -94.6431, 177.45, 72.67, 146.726, -84.1667, 138.2, 129.866, 127.967, 124.88, 136.967, 79.05, 92.067, 16.967, 125.528, 127.683, 34.7167, -81.9197, 21.53, -61.6833, -61.6833, -81.5667, -3.821, 36.75, 36.817, 108.43, 104.783, 102.083, 100.167, 99.95, -115.1833, 36.067, -117.8167, 43.633, 10.98, 71.583, 152.9392, 11.2003, 127.083, -116.5753, 125.383, 39.283, 11.5706, 12.8458, 106.1667, 100.767, -123.8667, 115.917, 116.65, 106.083, 6.21, 177.5, -84.6167, 118.9, 108.217, 118.0, -1.6, -1.611, -70.0608, 176.133, 112.58, 112.7, -76.9667, 81.95, -122.2847, -122.2647, -81.7158, -81.7753, 105.95, -84.1144, -99.7692, -64.2333, -64.25, 135.833, 140.7402, 140.727, -119.5667, 114.15, -7.283, 118.3956, 53.0331, 35.83, 150.1358, 149.8302, 149.7552, 146.5592, 117.1797, -46.05, 28.05, 17.3883, 76.0, -71.4736, -93.8583, -89.3586, -83.2392, -86.6892, -77.467, -129.0333, 7.8656, -106.6, -35.2, -35.25, -61.8167, -61.8, -91.3408, -93.0956, -93.0856, -71.3439, 1.48, -76.97, 20.93, 21.05, 20.97, -109.9772, -78.2903, -122.8394, 178.559, -65.9, -4.0103, -107.6214, -87.1375, -96.6881, 13.11, 65.349, 68.39, 45.417, -104.12, 129.5, 129.55, 91.017, 71.367, 15.03, 15.445, -93.2583, -86.9653, -95.8867, -90.0814, -90.1736, 21.77, 5.7506, -114.6189, -106.5303, -99.5667, -99.4667, 22.55, 60.033, -110.7761, 105.05, -90.535, -114.1, 44.419, 134.5, 8.6314, 136.15, 79.983, 152.1612, -117.2, -117.4, -7.267, -1.85, -103.5097, 145.583, -149.0717, 88.82, 125.233, -88.5, -110.0511, -94.36, 89.07, -111.8319, -65.7833, 136.1174, 119.62, 150.0847, 9.1217, 9.1333, -74.955, -99.91, 13.306, 8.6808, 11.21, 6.95, 9.2731, 11.133, 13.4967, 9.4064, -8.25, 9.9803, 7.2303, -68.133, 12.8083, 10.6014, 11.8653, 8.1414, 9.0167, -121.0008, -112.5, -94.3736, 141.87, -105.95, 41.967, 34.7, -122.0325, -82.4625, -74.1694, -75.7514, -82.4128, -81.6236, -85.5033, -104.1886, -69.5367, 29.92, 151.7985, 151.707, -84.1722, -74.2219, 118.84, -103.4275, -83.4289, -121.2419, -118.5939, 0.05, -81.4997, -104.2575, -97.0036, -96.9103, -121.0178, 119.7989, -84.8178, -84.8594, -91.2744, -81.2192, -99.3333, -72.1811, -72.1911, -117.0475, -83.2008, -124.0553, -83.28, -117.8803, -76.8769, -76.493, -71.35, -71.2833, -97.3431, -88.1828, -74.7592, -93.0297, -80.9, -84.4464, -89.0703, -88.1183, -84.4706, -89.0817, -2.7864, -1.2158, -70.9333, -70.9583, -77.0481, -77.1108, -91.0578, -98.1189, -74.4364, -65.3333, -80.3614, -85.3953, -121.9667, -119.6828, 77.117, 77.2, -117.3667, -102.8692, -109.95, -92.7558, -81.6333, -63.35, -92.3122, -113.2897, -78.9158, -76.2108, -76.0717, -85.8831, -93.3792, -91.8839, -91.8839, -82.2156, -88.7189, -94.9392, -89.5325, -116.2933, -120.4864, -90.0167, -90.1303, -90.2511, -90.0289, -90.0833, -81.4317, -81.4236, 174.183, -103.8461, -103.8678, -77.3833, -91.3672, -101.4897, -80.9181, -94.4897, -73.9692, -73.7622, -73.8803, -95.38, -116.243, -114.4833, 13.567, 135.5726, 109.2, 141.6367, 141.6486, -78.9436, -78.9453, -79.05, 2.13, 1.091, 7.2, -86.4928, 89.667, -72.6167, -72.65, 33.35, -67.15, 8.8931, 6.4242, 11.9064, 9.9653, 10.2442, 7.3364, 9.2242, 7.1492, 34.683, 139.05, 22.5, 19.02, 19.03, 139.5, 31.9831, 29.8, 140.7164, 43.383, 45.45, 165.98, 34.45, 18.95, -86.2658, 4.4067, -93.1594, -81.4928, -114.4022, -71.65, -151.6655, 121.0, -98.0467, -9.35, -104.0167, -104.0, -104.0, 21.9, -124.65, 18.133, 24.9667, -105.55, -97.7675, -113.1522, 109.55, 99.0331, 138.2164, 34.4, 47.783, 60.067, 43.117, 31.9, 44.0, 57.55, 60.8694, 40.2, 118.333, 138.5057, -158.7042, 131.65, -110.9681, -110.8458, 143.13, 105.807, -113.95, 62.75, -105.0, 49.95, -86.2492, -165.44, -75.0833, 102.7167, 136.4926, 29.97, 145.9719, -109.7881, -126.6167, 151.5766, 151.5759, -82.3214, 8.4, -116.05, -116.05, 7.1525, 14.37, 8.6575, 7.1056, 11.0058, 10.5492, 21.8842, -73.2208, -97.4855, -76.1922, 167.939, -97.4353, -76.2833, -77.0075, -76.2289, -88.95, -72.55, 141.0733, 141.0672, -97.4647, -76.788, -126.8, -126.8, -126.75, 15.67, -84.0603, -75.3583, -111.6325, 16.1497, 121.7794, 121.7547, 19.48, 19.38, 129.9167, -76.4414, 116.6586, -109.0133, -110.0, -85.6997, -72.6567, -102.1703, -105.0133, -0.417, -94.2556, -117.8667, -85.6472, -87.5914, -118.525, -141.9292, -93.2253, -73.1708, -108.25, -108.25, -79.4167, -124.2436, -64.0, -71.1383, -105.25, -81.9372, -123.7167, -122.0167, -119.5047, -114.4208, -113.7667, -119.5097, -71.7333, -106.3667, -53.6667, 113.5936, -117.2, 94.117, -115.1164, -109.8389, -107.15, -98.7747, -85.775, -80.2158, -60.6667, -89.2417, -123.2833, -100.7494, -100.6694, -147.3253, -120.5306, 135.8784, -71.6303, -78.8467, -85.5997, 116.7222, -81.1494, -99.8361, -99.9386, -71.1667, -154.3333, 6.6592, -82.6167, -111.0519, -97.85, -97.85, -97.8, -97.8486, -75.5197, -72.0642, 1.283, -108.2864, -71.1736, 13.3025, 9.2105, -71.0833, -74.9833, -68.8, -1.25, -17.033, -17.05, -15.93, -7.5833, -7.583, 166.4333, 166.45, 3.794, 24.95, -66.3, 12.2917, 33.367, 27.267, 14.5, -52.35, 19.85, 90.681, 25.85, 27.633, 86.883, 11.833, 31.633, 106.65, 82.9, 48.1, 15.2, 48.8, 72.9494, -95.6436, 150.545, 150.5353, 20.7, 54.75, -115.9461, -108.5583, -107.95, -60.883, -75.417, -151.0017, 59.617, -71.7017, 130.8976, 150.229, -104.7553, 65.683, 66.1, 6.8703, 139.0056, 24.6567, 11.0567, 11.2553, -51.75, 80.767, -85.6753, 24.883, 72.9, 36.97, -109.8081, 12.54, 94.47, 21.7333, 147.1961, -116.9903, 34.733, 11.9331, -73.9808, -113.2667, -78.7239, -72.5056, -123.0833, -122.9667, -122.7517, -64.2667, -98.6564, -97.9667, -98.0919, 151.7413, -95.3844, -79.4, -122.2208, -122.2642, -122.2208, -122.1447, -113.8981, -100.9628, -100.9447, -90.5133, -87.1706, -100.6333, -98.0333, -122.4433, -79.7, -79.6333, -79.6833, -112.3342, -111.7517, -118.2594, -111.7553, -116.795, -81.1508, -122.85, -121.9833, -118.7017, -84.2375, -84.2486, -114.4714, -81.03, -81.0331, -96.717, 12.783, 11.0272, -100.5342, -82.2167, -92.7739, 8.5742, 149.8374, 11.5539, 10.2767, 9.3533, 12.4381, -55.51, 143.217, 49.65, 131.083, 26.5, 26.0331, 5.5553, -82.0778, -105.0608, -81.6214, -76.0333, -73.6269, -117.395, -117.3494, -75.1239, 31.55, 5.955, -121.7167, -103.425, -120.3333, -120.4264, -81.2833, -99.7833, 23.9331, -83.3056, -83.7136, -88.5036, -99.7633, -87.955, -116.1689, -93.38, -75.9872, -76.05, -121.9639, 10.33, -93.8061, 30.63, -102.3592, -118.6967, -102.3867, 72.967, -7.57, -7.567, -0.95, -103.2372, -91.875, -91.9131, 133.0581, 14.4831, 8.7864, 7.9264, 141.717, -101.7206, -75.4442, -111.9667, -112.0114, -112.0283, 16.17, -138.3, -102.7458, 82.95, 37.479, 55.383, -156.0442, -114.3158, 7.9933, 35.633, 143.2164, 135.5, 20.8, 9.5183, 131.617, -119.2275, -119.2303, 15.2, -88.5467, 143.15, -74.0667, -119.45, 133.917, 20.967, -80.8653, -98.315, -96.3033, 128.423, -97.6469, -97.3833, -97.6006, -96.025, -113.9667, 8.0506, 45.45, 28.9, 66.05, 52.583, -116.2828, 151.28, -113.8161, -121.4333, 16.44, 17.1, 16.3997, -94.7603, -94.8897, -94.7392, 8.2525, -93.0239, -114.1, -114.0833, -107.9667, -139.8333, -139.8333, -110.8328, -74.9839, -104.5561, -86.5631, -85.5161, -68.7006, 120.4167, 112.4331, 93.23, 70.883, -122.8064, -44.81, -119.5667, -60.85, -113.35, -119.55, -89.8297, -83.1036, -94.9297, -92.2422, -111.6539, -98.7664, -114.5739, -88.0817, 115.583, 6.3756, 20.4167, -102.1356, -82.4, -122.9033, 138.217, -96.0233, -95.8992, -119.5333, -119.5167, -119.5167, 147.6008, 147.598, 91.717, 160.53, -76.85, -76.7833, 73.3831, 142.967, 6.55, 140.9, -71.0333, -84.2233, -96.1258, 6.5331, 6.5392, -110.4667, 38.1167, -84.5308, -83.65, -86.4692, 118.4889, -100.1447, -123.615, -110.85, -178.717, 115.1117, 115.1092, -117.65, -117.6003, -116.9717, -117.0128, -89.2075, 135.4456, -86.5519, 2.9206, -126.0, -126.0, -158.0378, -117.1756, 48.3, -85.4492, -86.5486, -106.38, -106.3153, -155.8747, 17.9667, 9.6667, -110.7344, 21.9, -103.2683, -64.329, 4.833, -80.8733, -80.8581, -80.0833, -93.7394, 149.0828, 149.127, 149.1229, -72.2911, -81.9681, -0.65, 19.1667, 148.4667, 148.4589, -116.0, -112.6389, -103.7058, -103.7219, 81.95, -98.9517, 15.16, 15.05, -95.1464, -122.6047, 36.0, -111.7369, 55.1, 55.1, 147.8753, -112.8003, -124.0192, -117.4964, -79.4333, 25.7719, -97.1, -98.61, 9.7887, -122.1997, 9.6014, -81.3331, -81.325, -81.2436, -123.5317, 1.75, 99.8, 105.83, 2.359, -74.05, 19.0, -106.0925, -68.6744, -117.8389, -121.5531, -121.6183, 22.1, -92.7636, -92.8572, 30.417, 18.38, 6.0806, -81.3045, -92.8106, 135.517, 13.98, -93.7036, -93.7503, -97.55, 13.1, -83.4, 72.8, -78.8333, 139.383, -102.3464, -88.5581, -88.5569, 18.6331, -92.6467, -95.2725, 16.41, -106.5, 10.72, 10.7206, 91.867, 25.933, -97.5969, -73.05, -119.4333, -119.45, 163.17, 33.117, -96.4833, 11.933, 18.99, 10.2219, 12.7, 12.68, 12.65, 18.3, 10.8667, 164.17, 167.98, 90.62, 137.87, 40.68, 76.98, -178.4833, -94.43, -69.238, -78.0072, -76.4933, 75.25, 141.017, 19.8763, -107.8408, -123.9239, 107.983, -95.2808, -88.9106, -75.7167, -75.7167, -75.6667, -75.6667, -95.5464, -111.2806, -137.05, -92.4467, -1.512, -2.43, 167.2406, 5.413, -6.9, 29.33, 6.14, -5.05, 16.05, -1.93, 24.8864, 25.3506, 25.3756, 25.4831, 25.3967, 7.117, -107.6686, -107.6725, -109.6436, -7.8603, -40.04, 146.7106, -107.05, 142.3158, -152.5011, -113.0564, 13.07, 22.85, -107.6333, -114.4581, -99.59, 23.65, -5.8728, 28.783, 136.2, -93.2308, -120.245, -86.445, -118.5506, -90.5545, -80.9333, -109.0167, -84.18, -117.2467, -117.2333, -102.1167, 17.12, -1.5833, -1.27, -99.6522, -78.6108, -112.1333, -119.1753, -119.2069, -119.1375, -76.9947, -110.35, -110.5167, -110.4667, 8.2043, -125.1333, -93.8683, -93.1261, -119.3539, 156.483, 10.3689, -101.2061, -101.0367, -57.9, -119.3111, 18.96, -125.1, -98.75, -122.4717, -121.6744, -103.4819, 100.35, 33.42, 30.22, -88.0903, 9.9267, -98.78, 11.8803, -69.229, -56.06, 140.4864, 140.5212, -100.2989, -88.7719, -100.2981, 10.1381, 31.85, 32.4831, 11.0331, -111.4483, -80.3728, -111.4478, -170.7136, 89.08, 22.34, -109.9639, -115.1217, -116.0561, -81.2956, -109.7689, -113.0317, -75.8217, -82.7883, -99.85, -120.5403, -4.4297, 23.3928, 23.3953, -111.1333, 24.033, 18.8667, 105.167, -96.2536, 21.1, -81.6606, 104.68, 13.3514, -87.6225, -95.6039, -95.7233, -95.5717, 19.7667, -108.3506, -155.2922, 24.2106, 21.61, 21.62, 46.883, 2.7, -48.3, 2.7367, 2.6264, -118.0939, -118.0836, -36.7, -64.1, 144.0758, -121.8514, -149.0992, -149.0917, -64.083, -68.233, 38.3, -78.2644, -80.1489, -81.2061, -116.5097, -116.5053, 109.3, -116.84, -73.185, -122.1403, 119.73, 79.3, 65.7, -100.9736, -1.65, -1.6364, -89.0867, -85.6606, -85.6828, -117.0878, -116.1925, -105.6667, -101.4533, -101.5575, 25.633, -83.9614, 106.13, -65.7333, -65.7167, -65.7167, -112.4386, -101.3897, 64.133, 116.3308, -120.7658, 11.97, -103.2061, -103.2092, -103.2, -94.8778, -86.4858, -107.6236, -37.43, 17.4667, 117.7494, -46.867, 70.083, -121.6239, -121.7167, -110.35, -117.5478, -108.9494, 138.6281, -90.4978, 21.7028, 21.3708, 2.617, -51.183, -60.483, 174.983, 138.2864, -114.9161, 119.5811, -74.6167, -111.8219, -111.9, 29.4639, -56.73, -95.5586, 2.3367, -88.2958, -87.6672, 22.83, -106.0667, -121.5894, -114.2897, -104.7503, -81.5572, -81.4392, -103.2667, -122.2781, -109.9167, -114.1708, 148.2428, 148.1639, -120.4319, 69.383, -65.0667, -111.5083, -106.5833, -120.9167, -90.4506, -87.6803, -95.0678, -107.8667, -118.9425, -111.6167, 10.315, -116.9442, -41.783, -41.75, -112.8292, 151.0181, -102.17, -82.3475, -111.8, -64.3333, -64.35, -80.05, 11.6908, -79.6339, -95.2892, -95.5042, -88.12, 133.017, -113.8858, -118.1447, -103.7408, 44.7, -88.4781, -88.5319, -119.1167, 63.344, -105.13, -68.883, -57.152, -56.517, -120.6856, -120.6283, -101.5333, -44.96, -117.65, -52.4, 11.7808, -77.267, -103.9167, 24.82, 151.5919, 76.467, -120.925, 85.1, -37.267, 11.47, 101.1333, -68.4975, -92.1186, -122.8667, -76.4167, -0.42, -124.0833, -124.0833, -84.5919, -119.9972, -41.133, -38.217, -97.2814, -97.2292, -113.7622, 39.25, -78.0319, -108.6942, 21.183, 76.933, 10.8281, -96.3472, -96.1558, -88.9781, -145.4983, -145.5014, -88.1417, 6.95, -116.9311, 117.6836, -58.033, -111.3447, -111.3028, -111.6333, 77.633, -100.05, -117.45, -119.7167, -119.7333, 148.1902, -117.8969, -109.8378, 116.0189, -99.0897, -93.2833, 151.2443, -121.9333, -85.4333, -82.2986, -121.9833, 57.1, -103.5, -105.6886, 18.2, 18.23, 15.729, -105.4739, -80.381, -55.8333, -55.833, 166.5, -61.9, -114.4167, 167.217, -89.7994, -61.55, 134.2667, -136.2214, 27.92, -81.2744, 27.2219, 23.9669, -84.7928, -101.8667, -101.9, -135.45, -137.3667, -88.3325, -52.41, -121.2506, 10.883, 40.533, 116.0433, -74.6828, -122.7333, -97.2417, -77.25, 100.277, -118.8528, -118.6264, -118.7964, -118.8522, 81.9, 67.6, 122.067, -3.2258, -66.7333, -77.0628, -77.0564, -115.8008, 150.6783, -87.3167, -87.1869, -119.5833, -119.6, -102.5897, 45.02, -89.5664, -118.3, -89.6839, -75.133, -75.8, 50.3, 38.8, 116.92, -60.55, -72.0333, -71.017, -97.0481, 6.3864, 56.3, 2.8731, -80.4361, -83.5742, -97.2897, -94.1106, -87.5067, -100.8239, -77.0858, -89.92, -90.8236, -83.5736, -95.4097, -103.1736, 115.9, 115.9764, 115.8728, 26.3306, -89.1072, 12.5, -73.57, 30.85, 86.22, 12.91, 14.2, 71.515, -87.7355, -36.76, -122.6078, -77.3167, -77.3167, -77.25, -78.3667, -78.3167, -78.3, -78.3, -77.3925, -79.1361, -132.9372, -98.0097, -87.2658, 19.7, -70.5667, -70.05, -84.9767, -84.9511, -109.885, -106.7108, -82.1667, -40.483, 158.5833, 69.15, 158.65, 108.867, 34.2667, 60.77, 10.8608, 8.7419, 9.2878, 31.12, -112.0947, -105.85, 108.1, 100.8658, 99.9, 101.15, 100.0667, -89.1303, -75.2311, -74.8178, -75.0111, -75.1728, 46.352, 25.5, 8.4425, -73.0833, -78.2161, -113.3, -113.3, -101.6011, -88.308, -104.4936, -99.3106, -75.2042, -110.9167, -81.9167, -80.0272, 100.267, 104.844, -75.5011, -112.0825, -112.0817, -112.3667, -112.0039, 100.167, 98.4, 98.317, 106.633, 103.967, 9.73, 10.5164, 7.7, -61.35, -98.25, -114.0667, -105.14, -111.4017, -89.7083, -79.467, -73.086, -89.9775, -82.7189, -111.2667, -105.5164, -111.5833, -90.2167, -90.2167, -98.5325, -41.48, -65.7592, -112.7833, -78.1203, -79.9433, -100.535, 30.0167, -115.8006, -96.1817, -120.6422, -115.8333, -72.8333, -100.3531, -100.2856, -101.2667, 17.833, 22.5267, 22.5831, 30.38, 29.483, -107.8883, 30.9, 30.78, -121.4167, -62.383, -85.1936, -121.2025, -113.3333, -80.7014, 27.17, -58.317, -109.683, -63.883, -105.15, -121.0086, -98.9, -98.9, -97.0122, -118.8253, 142.167, -119.95, -96.0667, -96.0667, -114.0, -114.0, -114.0, 151.2448, -109.8581, 43.383, -119.0, -104.7978, -109.9219, -81.5356, -96.0, -92.0189, -104.1583, -91.9347, -112.25, -95.0833, -116.18, -111.2167, -111.2008, -116.6339, -104.5797, -127.7333, -122.4833, -102.5183, -108.4072, -100.5667, -94.1089, -104.8078, -104.8089, -116.1189, -111.8378, 160.7, 117.0831, 106.667, 119.78, 104.52, -104.0556, -71.2525, -121.1472, -121.1822, -102.2042, -111.8606, 26.117, -86.685, -108.4597, -114.45, 8.683, -88.1828, -96.3258, -112.7386, -84.2342, -44.91, -47.333, -41.783, 23.6231, 130.4217, 7.5881, 92.267, -118.81, 10.393, -76.22, -76.3, -82.6475, 78.28, -120.6831, -130.1, 21.49, 65.933, -79.9217, -80.2144, -116.4686, -90.8058, -69.9647, -122.6833, -122.6167, -80.6, 39.533, 24.5, -108.0514, -120.8244, -110.1, -120.6456, -74.4025, -72.4153, -102.8281, -103.5189, -114.8667, -84.33, -84.3711, -101.7022, -102.2153, -101.7461, -99.3808, 57.683, 14.1, -82.1422, -90.4656, -74.0914, -94.4544, -73.4667, 12.133, 37.23, -98.4772, -136.3667, -111.7339, -111.75, -94.2647, -75.4464, -110.9333, -110.9442, -104.5678, 23.32, 24.5833, 19.35, -104.5164, -3.467, 24.75, -116.9544, -97.8, -56.8833, -86.3358, -87.9714, -71.65, -81.5308, -76.6592, -70.6961, -4.1167, -70.7294, 13.267, 16.9333, -65.067, -1.15, -158.0892, -94.6614, -90.9683, -112.4086, -112.4444, -112.5711, -63.8333, -76.5108, 19.283, -14.917, 19.37, 141.63, 143.8, 131.3831, 129.38, 158.2167, -74.8, -68.4667, -70.1167, -67.3833, -4.733, -3.167, 11.9, -66.4333, -113.9792, -60.3333, -123.2667, -133.6264, -96.5553, -69.7167, 149.2747, -163.05, -55.4, -66.45, 153.5456, -150.0819, -79.9131, -119.1167, -123.9833, -82.5167, -77.15, 144.5361, -119.6333, 128.65, -93.5861, 78.03, 129.15, -70.3608, 58.0, 135.2928, -114.2842, -114.2803, 26.7, -111.8406, -115.7861, -115.25, 15.7, 32.4331, 33.4797, -100.2875, -111.7, -121.4464, 29.45, 98.672, 28.767, 149.2, -89.6119, -114.1906, -114.2419, 34.5664, 131.317, 71.75, 68.683, -117.5883, 23.53, -93.3169, -117.7658, -95.5661, -80.1083, -45.0, -108.0039, -97.1019, -66.5253, -100.931, -77.9667, -77.9667, -77.95, -6.6, -25.698, -55.7, -8.6164, -88.6364, -83.4181, 109.3, -88.9983, 36.3164, 12.95, -55.5833, 73.85, 142.5696, -155.5583, -120.11, -79.0089, -120.5667, -89.5453, -90.4056, -90.3247, -105.0731, -118.3833, 20.2331, -110.4667, -102.3894, -106.6464, -81.2667, -102.2711, 46.33, 9.484, 21.7967, 21.7864, 21.3792, -63.967, 143.1, -106.3333, -110.7175, 10.9769, -89.4342, -89.6997, -148.8389, -98.2833, -7.4167, -103.3519, -109.2056, -119.02, -135.1167, -116.4992, -91.5058, -70.25, -84.9925, -2.45, 141.4705, -122.9486, -122.6003, -70.3003, -122.6894, -86.5258, -122.4089, -122.5381, -8.6, -120.4719, 13.57, 13.6, -80.45, -51.16, -52.233, -35.43, -48.72, -48.583, -8.7, -16.35, -63.917, -82.8872, -52.8167, -124.9333, -124.75, -124.9333, -141.0061, -134.6447, -127.45, -78.2872, -154.3164, -154.3197, -154.32, -123.4317, -123.4983, -97.0592, 147.8333, -94.0206, 137.7144, -82.9703, -59.15, 70.25, -72.2, 92.717, -54.1667, -69.2622, -79.25, -79.25, 25.617, 142.2347, 8.78, -90.9719, 7.02, -127.3667, -61.3833, 118.6317, -82.7142, -82.7931, -82.4194, -97.3094, -97.3458, -74.6847, 129.5282, -80.4667, 135.8558, 152.8655, 152.911, -97.4264, -80.215, -123.5, -64.3, -122.8833, 147.217, 16.87, -96.4278, -107.8331, -124.5011, -78.9667, 138.0104, -124.3333, -80.2628, -148.0672, -57.2, 37.217, -122.7586, 168.32, -87.8636, -79.2167, -91.3856, 25.6283, 25.6114, 25.6589, 25.6017, -55.971, 10.067, 130.8, -46.367, 171.2, -98.55, -101.3744, 14.2586, 23.067, 14.2, -121.5, 27.067, -94.6264, -98.5686, 29.017, -116.855, -116.9833, -113.5744, -90.8411, 116.55, -116.6089, 13.0639, -113.5744, -123.1286, -75.5572, -73.92, -73.8842, -121.7706, -79.25, -105.035, -106.9883, -107.1333, -114.7111, -108.7592, -114.6881, -124.5, -124.55, -124.5, -124.0689, -102.6467, -124.0625, -73.2228, 147.2831, -54.383, 16.633, -58.783, 101.367, 99.8, -99.7908, 14.4192, 14.45, -115.5833, -90.4642, -91.135, -85.1967, 14.99, 12.445, -61.5, -98.7281, -145.03, 11.62, 14.4, -90.3017, -85.4278, -113.6, 107.967, 133.9, -99.31, -112.4322, -93.3878, -112.4208, -100.1617, -60.483, -55.476, -51.383, -104.3714, -68.0089, -68.05, 11.5383, -111.8825, -92.0747, -2.7031, 28.183, 28.217, 28.27, 31.27, -101.8561, 119.067, 15.767, 138.0014, -110.7547, -82.9239, 25.333, 22.73, -116.9636, -119.9061, -116.8353, -120.6953, 18.6, 21.5667, 32.383, 12.683, -75.3333, -95.6292, 38.15, -63.109, -93.5839, -89.4519, -87.8672, -87.5906, -120.5167, -120.5167, -89.7564, -159.4828, -105.6667, -78.555, -122.8, -122.6833, -122.7333, -122.6833, -122.6667, -122.7667, 37.149, -130.45, -130.45, -120.8081, -43.117, 13.42, -98.4942, -89.65, -97.66, 76.383, -111.0167, -111.025, -36.867, 148.555, -122.5164, 150.9127, -119.7581, -80.5167, -87.7622, -71.4325, -81.4, -123.2303, -111.6508, 24.467, -95.3297, -108.4908, 35.333, 22.7667, 70.367, 28.3331, -155.7078, -155.6272, -155.7022, -1.94, -4.367, 118.53, 27.0167, 26.9667, 79.43, 36.517, -98.2, -104.4983, -104.7169, -96.483, -67.5, -67.5, -57.9, -57.933, -65.904, -83.8, -83.017, -73.1, -113.55, -70.55, 118.73, -63.65, -86.3, -86.3, 13.92, -80.7842, -87.0422, -122.2981, -117.1861, -117.1086, 31.02, 128.15, 29.3181, -111.3064, -84.833, -70.967, -68.363, -74.15, -81.9983, -81.9914, -57.283, -114.28, -122.95, -152.735, -124.1333, -97.3842, -100.2472, 28.9, 13.483, -99.1925, -79.2825, 79.833, -155.8219, -156.6736, 28.1917, 28.0789, -158.1197, -155.8453, -77.9, 69.083, 25.7092, 26.4167, 127.283, 125.8, 125.67, -118.9361, 24.73, -118.8778, -69.2167, 54.083, 46.125, 59.4, 97.167, -46.05, -46.0331, -50.6831, 124.867, -64.0333, -64.0333, -64.0333, 120.333, 119.03, 118.95, 124.95, 108.617, 110.467, 123.917, 89.567, -103.9833, -124.0333, 7.9553, -124.4, -124.6167, -99.7578, 147.7937, -77.3, -114.2272, -164.65, -122.9336, -120.7833, -117.0833, -127.65, -128.0333, -71.3833, -71.3833, 11.1331, -112.9833, -112.8, 35.983, 36.883, -108.4922, -106.3833, -100.186, 11.5428, -122.5167, -122.5167, -122.5, 66.938, 9.883, -122.9136, -124.555, 144.2578, -123.812, -120.9475, -119.8525, -84.5836, -91.4281, -120.9419, -91.1919, -125.3, -70.683, -100.2389, -71.517, 150.6792, -88.7189, -83.5692, -39.3, 109.2167, 95.783, 118.867, 24.4106, 23.9, 23.5764, -149.7283, -106.7333, 130.0161, 130.0148, -127.2167, -80.9, -115.7461, -70.5475, 18.2, -87.7861, -87.8136, -84.5833, 13.698, -80.5864, 105.179, 13.456, -112.8833, -79.2189, -117.3333, -61.55, -75.513, 43.491, 35.488, -113.2594, -99.2903, -103.7492, 109.963, 8.5731, -74.2569, -122.1333, -97.7064, 153.0891, -121.7425, -120.7167, 81.667, 11.1058, -61.5, 70.783, 24.3, -78.6839, -89.5525, -78.7819, -78.6989, -103.0656, -96.7439, -105.2353, -68.38, 79.433, 24.37, -116.9158, -116.9081, -105.0044, 50.6667, -89.1022, 15.2, 14.43, -116.4975, -113.88, -111.1861, -98.2736, -117.6525, -111.7333, 13.17, -70.6719, -70.6722, -108.7722, 96.2, 89.233, -92.1167, 45.4, 28.5692, -88.1594, 26.5164, 26.3714, -177.917, -144.333, -109.2569, -77.7, -103.2828, -103.0536, -103.2108, -159.806, 31.05, 49.6, 11.4194, 55.933, -95.1361, 13.7, -92.8925, -98.55, 73.333, -104.4325, -104.4428, -55.3, -15.95, 21.3058, 12.98, 26.7781, 28.665, 29.3944, 23.633, -120.3164, -98.9214, 120.0458, -106.0, -107.1997, -93.7167, -111.2747, 36.0, -97.7833, -123.73, -112.6833, -104.575, -110.7456, 101.3406, -78.0753, -91.7486, -74.1028, 26.5081, 34.917, -81.8203, -115.4603, -121.1172, -71.1264, -75.9319, -75.9667, -105.7167, 30.82, 82.3, -34.917, -34.9233, -105.7364, -59.7, -79.2667, -104.2881, 153.0922, 153.1006, -122.6067, -122.2906, -122.2986, 144.5203, -98.5253, -103.3675, -117.1894, -121.1392, -108.7281, -104.9428, -105.2264, -101.7167, -113.1833, -122.2386, -95.0997, -95.0803, -103.9183, -122.2536, -121.9211, -117.3167, -117.8347, -103.7589, -98.5197, -113.8, -113.9, -106.2111, -115.2833, -105.5722, -55.0167, -121.7, -120.8, -93.8, -96.2658, -95.0161, -109.2572, -124.3006, -107.7167, -95.2419, -102.5533, -111.2667, -105.4164, -115.3375, -105.3333, -115.3444, -93.6381, -97.45, 127.5297, -97.1531, -111.8333, -115.4272, -112.5667, -100.6608, -92.61, -90.0003, -76.9153, -117.4131, -97.2947, -97.3297, 12.1031, 15.65, 10.6356, -104.6, -104.6667, -104.6667, -104.5833, 15.83, 7.6967, -79.6947, 10.5078, 4.03, -162.665, 13.633, 12.4708, 43.05, 10.4, -79.2333, 13.67, 43.7, 9.4706, 11.4425, 11.367, 134.049, -81.2975, 9.6758, 32.783, 140.7494, 140.6766, -1.7331, 5.6058, -77.7381, -106.0833, -119.7711, -119.7956, 19.84, -87.1753, -122.2144, -118.7314, -86.2167, -98.9, -44.467, -90.5803, -108.7769, -59.05, -94.9667, -94.9833, -64.6333, -89.8772, 15.97, 15.93, 1.1789, -118.1833, -111.7892, -111.8045, -64.8667, -121.6, -99.9106, -67.367, -21.9, -21.9, -116.7494, -116.75, 27.267, 7.9956, 7.383, 7.7942, 8.3308, 8.5833, -73.8686, -89.4508, -89.4653, 6.7, -6.2867, 145.3101, -94.2072, -91.7719, -108.2667, -89.7322, -114.7322, -96.7428, -123.7931, 32.02, -102.3192, -101.7886, -114.1581, -112.0775, -117.1597, -119.2633, -77.5114, -81.7936, -90.3889, -122.3772, -111.81, -72.1333, -93.97, -82.7958, 143.1167, -79.45, -77.3203, -123.1, -123.0833, 143.1425, 150.7794, 150.7761, -84.8778, -88.9322, -80.5206, -111.7, -108.0386, 83.55, -123.3572, -118.4981, -91.8875, -81.8833, -81.8833, -79.3333, -104.4478, -107.7583, -78.7492, 13.475, -107.7853, -107.7492, -107.7264, 24.04, -74.3667, -111.9125, -116.315, 14.45, -119.6917, 12.612, -68.5167, 99.667, -110.5481, -97.5881, 11.4844, -42.64, -67.8, -64.083, -64.261, -43.167, -69.283, -67.749, -52.083, -98.8117, -107.2667, -102.9622, -66.0542, -106.6347, -50.91, -99.983, -88.9514, -89.4986, -81.7119, -83.7972, -69.1775, -88.7444, -107.3, 18.23, -98.9658, 22.067, 17.44, 17.4697, -118.3714, -55.5433, -110.1, -101.375, -72.7158, 21.25, -118.2244, -117.3614, -117.3881, -117.4386, -108.3742, -108.4767, 151.1556, -92.6122, 32.18, -72.9833, -64.7833, -73.5, -69.55, -71.8333, 19.9, 26.133, 13.049, 46.733, 46.7, 40.5167, 119.53, 39.9, 40.117, -106.05, -114.0125, -79.9592, -77.6717, -79.9742, -82.0953, -122.0333, -67.1203, -83.7006, -81.3667, -87.7017, 19.9, -102.4333, -117.2064, -100.5358, -72.2667, 139.8054, 139.756, -87.7769, -112.8414, -101.3667, -59.75, -97.6619, -101.55, 11.8417, -54.3, -52.367, -89.0708, -104.9042, -86.2097, -70.9175, -72.8045, -77.6767, -92.4917, -70.9222, -8.25, -103.7506, -92.8181, -112.25, -86.1758, -89.0931, -105.9833, 150.4775, -123.4694, -79.69, -80.6333, -97.0567, -97.0464, -100.2119, -87.2269, -77.1486, -117.1142, -94.6292, -84.6919, -105.0472, -112.2167, -109.65, -109.7836, -103.6933, -81.7756, 117.0106, -57.8833, -77.7986, -79.8961, -114.9167, -114.9167, -77.8931, -80.3075, -118.6672, -110.6833, -119.6564, -81.0575, -90.5647, -85.6417, -114.0631, -107.2667, -96.1686, -136.2167, -118.85, -106.2453, -109.0528, -109.2394, -114.4375, -75.7222, -104.53, -123.3211, 80.2, 22.37, 63.417, 117.1456, 117.1583, 8.567, -82.9839, -83.8158, -112.2906, -91.2778, 2.533, 103.683, -99.8069, -99.5861, -91.7758, 148.6261, -90.8853, -111.7, 112.8, 148.7778, 12.5831, 18.46, 122.27, -85.1514, -88.085, -117.6569, -75.4117, -85.1611, -117.8644, -78.7728, 33.45, -4.6331, -115.25, -47.88, 108.53, 14.9, 21.57, 27.88, -111.1508, -111.1333, -109.9586, -65.6408, 11.65, -99.7333, 11.3833, 11.3517, -117.3625, -112.4333, -60.785, -100.5264, -99.3358, -95.7675, -95.7, -91.3756, -103.5272, -113.5906, -123.3658, -123.3547, 138.8342, -112.05, -93.0975, 12.1292, -93.2789, -108.0167, -107.9167, -113.4133, -80.4667, 138.6883, 138.6763, -99.6997, -121.7355, -131.6667, -119.1842, -89.245, -88.4122, 24.9831, 32.833, 10.87, -117.8, -6.333, -15.82, -121.0722, -2.5844, 147.4953, 14.55, 16.43, 12.0819, 43.6, 39.417, 39.82, 12.104, -104.5419, -104.5083, -104.5333, -6.3317, -100.4611, 145.2428, -6.35, 9.3406, 123.067, 11.1, -0.3581, 10.1742, -68.117, -96.2869, 176.32, 8.9694, 4.4467, 115.5022, 8.6358, 177.05, -106.0833, -86.5044, -108.5397, -108.7403, -153.94, -121.4639, -121.7167, -91.4278, 25.95, -79.0333, -78.8333, 26.015, 25.7119, 11.05, 11.78, -79.6697, -79.0333, -105.0703, -78.8858, 136.8772, -104.1981, -76.1908, -80.5936, -108.8372, -97.4769, 81.2167, -120.1333, -115.493, -115.4855, -123.0472, -109.3486, -107.85, 135.9, -110.6019, -110.5961, -84.5761, -99.9925, 23.25, 10.2233, 120.65, -105.6611, 97.83, 25.383, -70.5372, 141.633, 151.2763, 19.767, 102.967, 88.167, 26.3692, 26.4, 26.3667, -113.7575, 7.8842, -80.3069, -67.57, -91.75, -85.4528, -102.4794, -90.4792, -104.0939, -120.8639, -95.1428, -80.1333, -75.3667, -86.8883, -87.7103, -93.0947, -87.7319, -98.7053, -98.8092, -101.1664, 73.88, 57.433, 28.2003, -105.7106, -92.6889, -114.9911, -81.9394, 146.5094, -123.3158, -120.9833, -72.9781, -104.9742, 66.967, 14.26, 76.183, 38.7, -109.2561, -109.3442, -104.9483, -123.5356, -118.3047, 10.7881, 34.68, -115.6111, 13.4, 124.883, 22.0331, -123.4167, 7.1081, -101.28, -93.4039, -93.8386, -60.0167, -60.0, -73.2, 121.833, 57.7167, -110.9333, 9.0719, -125.2667, -125.25, -64.3833, -107.3528, -121.4169, -121.495, -121.3, -121.4, -121.5897, -122.1825, -94.9761, -117.8208, -120.8653, -123.3667, -113.9667, -116.7292, 24.95, 9.35, -76.3947, 12.94, -109.6808, -109.6353, -9.22, 130.3, 78.75, -120.2406, -119.0711, -111.0, -107.25, -119.2925, 46.2667, -83.9561, -84.0797, -92.4617, -62.5833, -55.8, -8.95, -106.1444, -110.8133, -109.23, 0.15, 133.333, 103.9, 64.217, 110.117, -111.6789, -86.8133, -91.1242, 5.091, -101.8067, -51.8, -72.5333, -122.4714, -122.8722, 5.4017, -114.0983, -109.4028, -84.5542, -72.0194, -65.8833, -82.26, -16.463, -116.5789, -86.8094, -70.8833, -98.4608, 3.2, -115.0908, 145.7167, 57.633, 22.23, 133.233, 104.133, 46.633, 16.66, 14.257, 54.091, -78.7203, -5.4981, -5.6614, 16.69, -146.9767, -146.14, 13.3158, 22.5, -6.752, 66.5294, -91.8036, -91.5364, -86.0856, -88.9461, -91.7225, -97.3081, -82.9464, -123.0011, 13.26, 13.23, -106.0158, -111.8547, -42.28, -121.6664, -121.6081, -111.4161, -79.5458, -97.65, -83.7819, -83.82, -80.4822, -75.5892, -92.8106, -71.7364, -73.0992, -80.6228, -75.5103, 28.6775, 28.6781, 29.1814, 29.2408, 29.615, -94.8047, 25.133, -53.2833, -119.2333, -119.2833, 121.6239, -64.0333, -113.9333, -113.9008, -119.8333, -141.62, 46.683, 23.1158, 23.6525, 23.71, -65.483, -102.2667, 15.3145, -108.5364, -101.017, -100.98, -57.967, -54.35, -123.4833, -123.55, -81.7711, -122.0667, -120.6661, -111.8172, -111.9694, -111.8964, -91.5256, -110.9167, -81.7747, -38.517, 13.0, 9.5531, 56.2, 57.95, 50.2167, 66.95, 58.217, 50.175, -89.3028, 9.8831, 128.3, 26.9167, 36.3, 150.6578, -94.1011, -4.833, -2.8, -107.15, 126.0, 47.009, -95.6603, -84.68, -108.2167, 118.067, 6.1833, 6.1042, 23.27, 16.29, -118.7242, 10.0042, -109.3222, -102.3917, -82.8045, -81.9833, -123.3, -88.6617, -80.87, -106.3656, 12.4714, 21.7167, -116.5628, -131.8167, -131.8167, -77.2758, -92.9936, -107.1667, -82.7167, -82.8192, 14.7831, -81.5658, 153.2089, -63.5667, -74.0056, -100.1, -93.3211, -77.4875, -82.7269, -108.7272, -103.5183, -106.2833, -85.9681, -160.5167, -81.2778, -70.7803, -79.0464, -101.5492, 127.467, 112.633, 69.233, 110.17, -5.32, -68.32, 7.2028, 38.847, -59.68, 108.67, -55.6, -3.8189, -3.7994, -3.8314, -111.7794, -54.717, -65.58, -65.435, -89.533, -117.8667, -117.8664, -98.1369, -119.6844, -119.8797, -119.0333, -119.8425, -63.2, -121.9911, -119.7222, -61.117, -105.7833, -105.9753, -106.0889, -117.9458, -105.9322, -110.1, -120.4333, -25.171, 18.35, -42.01, -120.4486, -107.1097, -118.4514, -118.4997, -119.1331, -120.5978, -110.8464, -104.6805, -122.6978, -97.8714, -64.266, -122.7119, -88.7833, -120.0778, -117.2306, -122.8103, -106.6981, -70.7, -93.7572, -8.1, -64.3, -8.4106, -70.737, -109.71, -121.9333, -121.9433, -42.16, -69.883, 9.45, -81.5206, 109.583, 68.0, -81.7, -81.717, -100.4922, -100.4942, -98.4539, -72.44, -98.4839, -98.5833, -65.1, -98.7028, -98.4719, -94.1072, -109.88, -117.2539, -95.5678, -105.28, -66.87, -66.75, -113.93, -110.4569, -71.158, -110.5261, -89.617, -72.2, -116.9794, -117.1831, -117.1333, -117.1394, -117.2258, -117.1667, -56.433, -109.85, -67.42, -98.15, -122.4269, -122.3647, -122.5053, -118.1, -122.3617, -65.633, -112.33, -60.95, -96.53, -110.03, -116.9583, -62.467, -64.667, -103.3283, -60.75, -121.9033, -109.66, -112.38, -68.418, -99.85, -68.7, -57.15, -56.3, -67.333, -67.803, 9.725, -96.38, -66.356, -77.672, -105.4244, -121.0578, -120.7939, -120.6414, -120.6619, -101.0222, -97.9494, 12.4464, -68.417, -58.383, 10.6258, -116.9736, -119.45, -116.9975, -57.083, -6.661, -110.25, -105.15, -68.403, -122.5372, -64.7, -113.93, -98.7167, -98.7589, -89.117, -2.0392, -1.7869, -109.2256, -47.883, -51.9833, -67.083, -38.21, -45.85, -56.71, -45.017, -44.3, -55.01, -39.85, -46.617, -46.65, -46.467, -47.55, -47.11, -55.41, -81.2811, 141.333, 45.533, 61.2167, 18.4331, 18.33, -74.2067, 60.88, 53.73, -82.5586, 29.667, -106.8053, -73.8167, 46.0331, -73.6511, -121.9, -89.7903, 73.483, 72.667, 18.38, 18.4, 5.6505, -97.6956, 125.767, 9.5028, 138.717, 13.13, -82.3, -82.3, 26.7, 11.1144, -128.9, 95.578, 73.267, -111.5436, -111.45, 129.717, -106.7167, -106.7167, -106.6, -106.6833, 114.08, -6.083, -6.08, -121.05, 31.77, 12.7075, 12.69, 18.39, 80.833, 100.983, -123.1333, -123.1333, -123.05, -120.6669, 22.883, -60.81, -89.055, 6.3631, -118.525, -87.9403, -89.735, -84.4089, -84.3333, -84.5167, -84.3572, 131.3, -83.7342, -104.3378, -114.6333, -79.14, -88.3214, -81.21, -81.0833, 104.7667, 72.9, 2.43, 2.467, 11.8667, -91.2494, 11.92, 28.9344, 28.8433, -170.4808, -81.6836, -81.5906, 28.18, -123.1322, -123.1331, -71.5333, 15.39, -90.4372, 101.733, 148.2644, -0.55, -122.8611, 8.9681, 8.6097, 7.7125, -66.8, -66.8167, -66.8, 9.7708, 142.0869, 11.0406, 9.1542, 10.655, 4.7903, 9.5492, 10.6444, 10.2556, 6.8403, 11.7856, 12.737, 10.767, -117.15, 6.4169, 15.47, -158.0819, -157.9933, -107.05, 13.523, -123.9056, 7.8442, 9.1239, -73.7, -110.0833, -110.0833, 9.8033, 9.6881, 12.0883, 10.7192, 11.1944, 10.2169, -116.6333, 169.983, 11.3883, 121.017, -112.1067, -105.4758, -111.2056, 150.8264, 150.9272, 145.2561, -122.6967, -108.0167, -111.3667, -124.1036, -109.4, -71.0833, -103.6397, -103.5931, -86.0536, -85.9997, -85.785, -111.9106, 147.4883, -86.2258, -103.7, -122.5247, 146.2722, -108.8333, -100.9175, -75.22, -90.9, -96.1456, -66.8333, -114.9217, -91.7164, -123.9236, -122.3008, -122.2553, -122.3139, -155.5114, -69.2278, 14.45, -81.3689, -115.9667, -123.7167, 14.779, -120.8847, 29.18, -93.1833, -93.2228, -96.1861, -111.7, -102.5167, -111.9667, -111.7644, -122.2355, 58.284, 11.733, -111.4333, -113.4472, -113.5203, 10.19, 130.3, 34.283, 9.7667, -6.15, -4.1269, -102.8675, 22.4908, -123.2833, 152.4167, 131.017, 114.28, -120.4994, -159.1125, 11.117, -100.0356, -122.1914, -151.7017, 25.217, -112.8797, -93.9367, -76.8617, -76.8642, -96.8667, -75.3222, -111.8975, -87.0144, -87.2422, -86.9786, -88.5994, 10.2269, 110.417, 80.3, 32.583, 78.35, -106.9153, -102.6597, -96.6531, 80.25, 159.98, 3.667, 53.495, -89.9592, 130.4, 140.9, -118.975, -79.925, -85.9428, -85.95, -40.183, 17.9033, 33.617, 29.683, 105.0, -106.8333, -7.95, 140.5, 27.35, 126.967, 116.894, -66.25, -66.2667, -66.25, -123.0639, 42.75, 106.133, -104.4, 72.433, 30.75, 54.517, -37.08, 51.3, 60.533, -38.96, 100.33, 136.233, 10.7683, -73.1047, 3.6917, -44.25, 5.4, 5.324, 45.0, -122.1333, 151.8875, -115.4667, -149.855, -110.9167, 78.35, 93.03, 156.13, -83.5983, -112.0, -5.8792, 14.9, -132.3, -97.0908, -149.3483, -149.6275, -149.4167, -123.3642, 55.517, -85.8989, -99.2897, 10.68, -88.8514, 28.533, 77.267, -118.9556, 63.63, 42.67, -119.1458, 21.88, 68.45, 47.158, 71.8, 50.842, 55.0333, 91.813, -87.2436, 47.167, -122.2333, 35.583, 143.2297, -78.3894, -100.2503, 112.77, 121.467, 121.433, -115.75, 127.967, 116.3367, -8.925, 116.683, -79.6333, 115.367, 113.6, 117.43, 111.47, 27.467, 55.517, -108.1, 113.5772, -97.9, -101.7514, -77.7211, 47.121, -122.4161, -108.4167, -119.2561, -88.6183, -2.668, -72.7333, -96.9481, -78.6372, -123.6333, -76.4667, -103.2922, -63.5, -63.5167, -117.0392, -87.7167, -87.8506, -77.25, -122.25, -105.2353, -111.6833, -101.8272, -1.4899, 146.3219, -92.0467, -111.8553, -85.2, -88.7739, -85.8033, -85.7914, -86.4775, -81.5325, -95.8528, 155.88, -107.7633, -107.4333, -124.0728, -123.1408, -95.38, -111.2189, 122.45, 120.82, 42.9, 123.517, 114.1, 144.1303, 27.05, -93.4333, 145.3947, -71.6833, -71.6833, -75.5067, -93.7503, -75.5, -94.7744, -92.3914, -106.9689, -106.8383, -106.9694, -123.9167, -96.6419, -116.3333, 120.25, -97.3161, 114.417, 116.033, -88.3217, 91.89, 133.017, 77.167, 125.133, 130.933, -137.2167, 31.43, -115.9667, 140.317, 135.75, -77.5214, -108.6917, 121.95, -123.7917, 80.083, 67.017, 140.217, 52.533, -106.105, -72.8689, 91.733, -166.0667, 138.4, 19.5331, -86.7944, -85.6344, -100.6, 75.9, 139.783, -110.5769, -112.5333, -0.283, -111.95, -114.4169, -114.4022, -114.2775, -110.95, -110.0075, -116.2128, -93.8411, -93.6667, -93.8186, -93.745, -93.7803, -93.8417, 103.9333, 67.8, 69.7, 74.533, -117.625, 23.3167, -110.25, -110.15, 13.35, 24.15, -95.7483, 98.9, 98.883, 111.985, 111.8, -87.8767, -2.62, -0.617, 6.089, -104.1467, -95.6431, -84.1506, -103.0214, -102.9847, 17.29, 22.25, 7.9975, -120.3706, -105.7833, -105.3542, -120.6228, -110.2847, 9.1953, 9.7417, -52.6833, -108.1333, -112.0611, -123.7803, 14.9167, -92.1975, 23.5383, 25.0925, 27.8025, 41.95, -122.7167, -5.683, -89.6231, 92.83, -79.4622, 33.93, 16.71, -83.0767, -117.5658, -101.3006, -107.6633, -122.7739, -121.5667, -123.3783, -116.8317, -108.1667, -121.1833, -119.35, -108.7167, -122.6486, -92.7458, -144.1914, -111.5842, -121.062, -118.6833, -57.519, 127.65, 100.983, 34.1331, 33.9833, 7.5969, -92.71, -117.7333, 13.4, 16.13, -74.231, -66.991, -110.2158, 14.36, -122.3733, 108.25, 103.994, 126.533, -91.2594, 35.167, -97.4972, 124.383, 18.0333, -114.1167, 7.3331, -96.3778, -96.3792, -96.1525, -96.7289, -96.6222, -91.8667, -91.9, -95.0653, 124.333, -148.783, 89.933, 6.8485, 16.5797, -53.6667, -97.0392, -96.9914, -121.5486, -124.4333, 100.7, -135.3267, -135.3647, 92.873, 37.0167, 37.017, 25.3167, 25.5, 20.0167, -42.25, 10.633, 19.0203, -135.3136, -135.3239, -113.7667, -122.2175, 13.45, 16.0, 16.75, 0.3489, 21.07, 15.12, 20.3024, 9.5667, 6.95, -150.4606, 14.32, -116.1878, 10.9964, -121.6, 21.65, 21.4, 13.84, 123.9667, 25.133, 14.6506, 5.2667, 31.6, -114.4681, 24.417, -151.2169, -122.185, 24.55, -143.9808, -3.6508, -123.3525, -116.2833, 5.0681, -114.7833, -114.7833, -114.7833, -114.7833, 78.65, 31.017, -112.9667, 28.2178, 19.15, -89.7697, -89.8222, -120.2944, -74.4167, -80.06, 26.32, 15.4, 14.6, -111.3, -107.2, 27.7, 27.55, 15.1, 20.95, 133.83, -96.8814, -113.8333, -127.1833, -127.1833, -78.3458, -88.4311, -111.1, -77.5828, 145.0847, -97.1689, -94.6428, -85.7892, -119.3511, -114.2272, -98.7783, -113.3472, -117.1739, -119.7475, -103.1667, -112.5, 32.0667, -119.6633, -86.5578, -111.5042, -110.6658, -116.7369, -110.6667, -133.7386, -110.5333, 15.7333, -121.8361, -116.1989, -111.65, -110.0839, -98.65, -79.995, -146.6931, -111.65, 138.2133, 138.2182, -77.6842, -75.3789, -119.55, -100.9111, -92.633, 155.93, -40.35, -106.8831, -106.8858, 26.6328, 27.7503, 27.1894, -122.9772, -105.9864, -111.5833, -108.3967, -85.2414, 19.41, 17.1, 17.63, -77.0128, 106.656, 5.2733, 23.406, 133.9797, 7.1414, 7.9978, 126.57, 93.783, 56.633, 14.4281, 44.1, 128.57, 1.13, 5.6367, -127.9333, 167.55, -121.5856, -114.8167, -111.0764, -151.0333, -151.1336, 138.1, 7.0942, 95.3, -110.7117, 108.267, 84.32, -91.8317, 9.833, 19.0831, -103.65, -78.2703, -84.6167, -84.615, -74.6531, -96.5403, -74.6694, -123.4958, -111.3667, 10.9069, -50.8, 35.583, 100.617, 103.567, 12.95, 12.95, 11.1842, -105.9136, -107.7667, -122.4622, -100.6503, -120.3872, -119.6, 103.9, 16.6, -56.8833, -73.1167, -2.4831, 20.9553, -47.43, 53.1, 131.117, 17.55, 30.7167, 22.05, 126.47, 94.52, 158.3, 111.55, 138.333, 62.1, 39.77, 28.3419, -98.2, -89.01, 24.1167, 24.15, 7.967, 5.07, -117.3833, -48.51, -100.25, -1.4084, -103.2833, 119.3281, 119.3564, -94.3411, -78.0078, -81.9808, -80.6403, -86.3164, -85.325, -78.8808, -108.7919, -57.6167, -106.5, -105.5333, -122.0333, -123.4761, -115.745, -86.2833, -73.3031, 145.9972, -155.7533, -119.9947, -72.9736, -87.8494, -64.6833, -77.4775, -116.9, 32.75, -97.1033, -108.8333, -112.07, -82.5936, -107.5286, -117.5167, -65.9, 153.087, 21.93, 140.3, -119.6331, -111.6044, 15.14, -92.8267, -119.7333, -155.55, -90.8164, -81.9139, -89.7167, -117.375, -85.475, -114.8833, -114.8833, -95.0597, -103.8722, -101.1847, -74.3617, -104.3, -81.3583, -86.7703, -112.1864, -95.1467, -121.9333, -95.2017, -121.3167, -78.2272, -106.4475, -93.7158, -85.6272, -107.55, -95.1394, -122.1667, -119.2333, 16.4331, -117.4167, -117.5264, -117.3214, -117.5281, -117.6267, -121.6833, -111.6833, -91.8761, -95.6, -121.4892, -119.8167, -114.3667, 17.9, -80.425, -104.585, -109.275, -93.4003, -64.85, -94.9864, -89.625, -102.7428, -89.6839, -102.6139, -86.8414, -72.5178, -83.8167, 148.0856, -75.2781, -99.7467, 150.5848, -84.8547, -110.6667, -114.2028, -122.4364, -114.18, -114.8111, -82.0019, -117.5333, -107.7833, -100.8761, -110.6167, -123.1667, -123.1667, -123.2833, -119.7211, -116.25, -114.4944, -114.3333, -123.0167, -117.5683, -120.25, 153.72, 152.32, 117.37, 120.55, 78.2, 19.6331, 117.7, 74.833, -80.7131, -72.2606, -81.4294, -98.5, -115.3928, -114.8667, 14.95, -88.6275, -99.8036, -73.5475, -120.075, -121.3372, -121.3333, -112.9833, 29.22, -83.9533, -110.2239, 14.88, -63.0833, -91.8633, -114.9342, -105.9439, -102.5947, -114.9258, -114.9272, -90.9269, 0.23, 151.9339, -97.2222, -83.8969, -97.1747, -112.7333, -100.5986, 31.3, -97.6167, -44.51, 34.93, -82.1164, -119.0167, 15.8, -121.7175, 37.883, -107.4656, -123.0667, -78.4442, -80.8808, -77.8672, -106.7597, -88.7822, -16.6497, -79.0844, 5.73, -113.8833, -122.3667, 5.3831, 42.02, 18.71, 142.7412, -122.8142, -122.8667, -16.2553, -96.81, -119.8836, -106.8233, -84.4792, -99.9483, -91.3706, -110.5, -98.8, -105.3, 26.354, -91.8872, -120.7264, 9.4592, -96.7667, 13.0431, -83.3061, 11.4508, 14.51, -87.1631, 136.9392, 17.1664, -99.4431, -87.7025, -98.2319, -58.55, -58.5667, 88.9, -98.2078, -103.2083, -100.9828, -81.6106, -77.4869, 56.0, -112.6, -112.7167, -80.6283, -78.0183, -114.0911, -121.0833, -89.5856, -114.0911, -94.3425, -129.9833, -136.6833, -111.5358, -107.8, -66.4667, -73.9333, -72.2333, -75.3333, -73.6, -71.9167, -73.6833, -71.2833, -73.85, -70.4667, -70.0167, -73.1333, -73.85, -68.6333, -70.5333, -73.8833, -95.0, -114.2167, 10.8833, 15.205, -97.5283, -92.7975, -92.8522, -97.095, -97.0914, -97.1083, -105.9167, -97.0953, -114.5594, -97.0894, -75.0367, -61.9833, -94.6486, -113.3939, 22.183, -88.9044, 18.05, 18.0597, 17.9514, -89.9903, -93.7722, -121.3178, -121.2258, -95.23, 10.2833, 15.0292, 26.7, -90.9108, -80.4744, -153.8958, -156.4333, -122.575, -73.9, -77.4042, -122.5342, -97.1667, -105.8333, 18.29, 16.18, 19.48, 12.1, 12.12, 12.1253, -107.42, -95.1933, -6.32, -6.3, 23.1, -72.2286, -106.9061, 9.8656, -89.2133, -117.145, 30.7, 16.886, 145.2908, 7.6331, -102.0775, -81.0, -81.0, 138.8901, 138.8934, 145.7308, -100.4, 146.0461, -113.4167, -113.2833, -81.65, -102.6003, 12.5603, -121.85, -111.2167, -120.8464, -121.1078, -109.3169, 134.2116, -88.1783, -99.4475, 93.0, 102.7, -94.2969, -110.9, 11.2, 10.8288, -105.1208, 21.65, -75.1906, 6.5585, -80.2514, -113.9167, -126.0667, -107.6333, -87.3356, 13.37, 27.57, 9.2167, 9.1825, -91.4172, 9.2008, -53.35, -22.7275, -72.0833, -73.0911, -75.0667, -73.15, -67.0667, -99.0167, -73.3, -71.3333, -74.35, -74.2833, -56.1, -69.3833, 6.0, -81.2883, -89.83, -73.3833, 59.617, -70.2167, -71.7333, -79.1667, -79.25, -90.5231, -90.4281, -73.35, -90.5169, -69.1, -94.0514, -73.75, -70.5167, -92.6467, 55.51, 4.9, -74.2, -70.9667, -71.5833, -71.5667, 9.4, -113.5611, -70.7, 148.5942, -169.565, -89.4894, -72.7667, -68.8167, -5.667, 148.2792, 148.2489, -74.0, -72.9167, -84.7228, -76.4292, -73.5833, -85.5464, -94.6122, -73.8833, -67.1167, -74.05, -117.5878, -52.75, -52.8, -109.3792, -91.2336, -94.9233, -74.55, -54.033, 149.5242, -55.3833, -109.1667, 149.5356, -67.8333, -67.8333, -111.45, -90.3833, -90.3736, -90.2706, -90.6558, -90.2333, -70.6833, -71.5, -63.9, -106.5144, -84.1333, -91.8694, -113.4294, -53.5667, -163.1711, -113.4331, -113.4305, -4.9989, -73.9167, -72.4333, -72.6167, -93.03, -170.2119, -111.2667, -93.0556, -170.2222, -60.15, -93.9656, -62.5833, -82.6261, 30.3, -82.6261, -82.6875, -90.6106, 8.6, -56.176, -71.2167, 55.483, 15.617, 15.617, -72.4167, -70.5, -115.1097, -70.95, -71.05, -69.8667, -67.25, -70.4833, -81.2, -70.55, -72.3333, -93.6369, -100.9792, 70.217, -107.4, -80.8, -80.8, -111.1833, -76.6014, -105.3614, -122.6564, -106.3714, -122.4383, -95.6567, 107.133, 118.33, 35.3164, 93.283, 131.15, 132.7, 8.4667, 46.25, -113.7394, -113.9269, 8.4667, 19.8667, 29.7331, -79.8489, -88.6067, -88.5497, -91.15, -96.9503, -95.6269, 101.549, 95.42, 102.293, 104.701, 101.445, 103.644, -122.1167, -84.9842, 117.412, -1.3, 63.317, -119.65, -63.8333, -63.8333, -91.6272, -80.8939, -85.39, -64.1833, -80.2325, -120.7897, -120.8167, -85.7067, -97.0625, -122.1333, -120.2456, -106.1667, -104.3811, 134.9, -80.3569, -80.4667, 34.667, 34.78, -111.7275, -111.5767, -104.3567, -104.4364, -73.1244, -114.6833, -114.45, 17.4408, 17.35, -68.64, 8.5589, 13.12, -120.0103, -115.0225, -110.3853, -77.9581, -121.4117, -115.8167, -111.5436, -112.1417, -108.9547, 117.65, -117.45, 127.35, -2.329, -117.19, -111.7406, 23.5317, 23.5342, 23.7667, 29.0167, 28.7503, 109.404, -111.0972, -92.0167, -114.8903, -97.9842, 100.133, 124.933, 59.483, 45.6, 113.717, 112.787, 112.717, 149.0703, 72.833, 99.15, 73.5, 125.5, 103.5, -88.3786, -97.3094, -121.75, -82.1969, -122.8333, -122.85, -72.3128, -35.71, 73.983, -120.6631, 111.473, -127.1667, -65.5333, -74.66, -74.6447, -74.6231, 148.17, -119.5986, 20.67, -120.8008, -72.0481, -72.6833, -148.9089, -72.0233, -1.2496, -80.6969, 140.217, 132.1, 138.117, 22.95, 15.4667, 18.63, 16.7167, 14.1903, 14.41, 19.5056, 60.6, 42.85, 90.8, 25.35, 133.1, 5.2681, 128.116, 14.6692, 16.033, 39.82, -120.8, -1.9581, 115.7619, 13.0667, -82.385, 148.0731, -150.8722, -116.3783, 143.5416, 148.125, 148.1253, -99.0897, -113.8389, -101.2167, -101.2333, -111.2792, -94.3831, -113.9667, 139.5981, -111.9642, -93.4194, -73.0333, -122.1667, -54.2167, -107.6833, -107.6833, -107.7333, -131.1833, 14.2331, 114.763, -105.375, -60.05, 151.1731, -60.05, 151.2633, 151.205, 151.0646, 151.2, 50.8667, -86.2114, 12.28, 91.88, -110.15, -110.0333, 88.367, 39.583, -96.1892, -101.7417, -76.1039, 68.683, 71.3, 48.4, 14.617, 20.1, 16.3167, 20.2333, 16.6333, 9.1831, -110.4333, -49.917, 10.533, 92.867, 8.75, 56.917, -112.1167, -111.5833, -82.6925, -96.0861, 1.5, 32.833, -7.37, 46.28, 36.619, 152.4507, 83.0, 125.0, -70.3, -113.9192, -122.4122, -122.4833, -122.5761, -104.0567, -55.983, 133.75, -98.5, -69.7, 128.75, 127.4, 7.4167, -119.43, -170.7167, 38.95, 123.853, -46.433, -46.4, 59.6, -149.617, -94.9644, -147.55, -120.1428, -120.15, -101.7981, 5.25, -85.2239, -127.7, 121.517, 40.544, 123.42, 51.8667, 28.1819, 113.55, 28.25, 28.2481, 112.55, 117.1, 85.62, 160.4, 134.783, 98.0, 99.15, 138.25, 134.05, -145.033, 137.25, -135.5667, 5.385, -1.775, 114.83, 98.2667, -125.8667, 72.217, -84.5197, -117.4858, -150.095, -86.135, -86.0572, -86.0811, -84.3289, -84.3556, -96.5608, -96.5578, 24.5831, -91.1842, -83.3344, -91.0278, -98.9592, 148.63, -93.5833, -0.863, -0.9, 5.4331, -95.6472, -13.683, 41.4667, 146.2564, 64.6167, -80.8242, -82.4006, -82.5403, 23.75, 23.75, 23.7733, 23.7569, -97.85, -98.767, -71.3, -71.2597, 150.8362, -143.3483, 23.5331, 140.3, -152.1, -152.1069, -117.7606, -43.969, -59.228, 130.983, 39.067, 11.9739, -5.9, -5.82, -75.9933, 118.15, 101.033, 105.117, 107.8, 117.333, 169.224, 12.6703, 10.0231, -98.98, 106.67, 46.95, -105.5864, -92.25, -83.9389, -81.15, 74.3831, 149.8197, -76.367, -70.76, 172.917, 71.383, 169.9, -77.5386, 134.5786, 152.512, 152.4834, 106.25, 18.61, -117.3589, 102.0, -5.5975, -64.7, -95.3883, 77.82, 149.7958, -82.7539, 146.4486, 26.7331, 26.45, 13.5831, -78.7, 94.55, 69.2694, -37.6331, 148.0025, 111.15, 89.917, -155.9667, -63.2333, 75.97, 140.1167, 139.867, -124.4, -124.4, -103.3611, 145.2672, -40.41, -45.567, 24.767, -71.0658, -71.0211, 73.283, -80.5211, 118.122, 117.9, 121.5833, -97.4092, -81.1717, -97.4156, -102.4761, -121.4, -115.9833, -117.5333, -106.6086, -106.6017, -114.8508, 21.133, -83.5603, 83.667, 78.73, 44.95, 44.767, 11.02, -63.406, -115.7375, 8.1197, -103.88, -83.9336, -96.1939, 60.517, -109.09, -64.7, 109.15, 130.0, 130.199, 12.3444, -87.217, -118.4222, 51.317, -15.2275, 90.383, -118.7497, -96.2328, -96.1778, -89.3, 27.55, 45.383, -131.3333, -112.025, 122.2281, 20.183, -153.3567, -84.2997, -107.8736, -86.7747, 105.2, 34.7831, -96.4, -62.617, 14.342, -118.7556, 117.157, 57.117, 147.5111, 147.5248, -107.817, -111.9217, -97.3183, -114.3289, -111.5333, -72.633, -16.3292, -16.5606, 1.333, 98.483, -71.939, -65.105, -78.524, -72.106, 134.1833, -87.7886, 17.8, 13.499, -107.3653, -107.3819, 152.0172, -80.8503, -96.97, -41.517, -111.7, -113.7383, -105.75, -104.843, -104.9, -42.817, -42.817, -42.97, 35.1, -103.595, -103.4061, 67.2694, 12.983, 15.0, 136.6, 25.667, -128.5833, -87.1, -128.6167, -79.5469, -53.9667, -96.2672, 151.2253, -87.3, -87.3089, -87.4081, 133.6377, -105.3022, -90.0342, -105.4953, -1.1167, -132.7333, -132.7333, 0.983, 33.583, -74.0614, 29.583, 12.5581, -124.2333, -5.33, 72.4, 153.0403, -94.0772, -94.0456, -94.0075, 151.1681, -118.4508, 92.783, 149.1192, 23.2667, 24.533, 27.4, 104.65, 8.683, 150.5709, 105.783, 143.815, 143.8197, -111.5333, 103.6833, 100.8, -81.85, -92.1942, -102.7972, -115.817, -108.2036, -108.6964, -108.1436, 23.0, -71.35, -71.2667, 115.0197, -107.0931, -121.2047, -121.1661, 139.9267, -101.25, -101.1, -101.1, -120.9447, -90.7747, -96.1833, -96.1667, -112.4264, 76.95, 76.95, 7.05, -84.3367, -87.7347, -87.7367, -122.6097, -95.6314, -97.8667, -115.285, -115.3594, -86.9322, -97.8667, -119.5333, -108.1472, -95.2475, -80.4833, -113.9, -86.6708, -3.95, 148.2859, 148.304, -121.6333, -113.2, -122.07, 119.1514, -85.6386, -118.8619, -99.2006, -68.8333, -110.5667, 54.025, -120.9833, -89.3333, -89.2833, -89.3333, 8.22, 117.167, 105.75, 78.233, -111.0878, 142.0567, 142.0098, 148.9422, -123.9022, -11.433, -11.43, -106.5536, -83.1667, -83.4767, 40.083, 33.6, 87.7, 128.9197, -98.5294, 1.45, -123.8519, -123.7619, -123.8031, -80.7333, 26.95, -109.3606, 130.4808, -109.1833, -101.0764, -121.2981, 0.276, 131.9667, 21.25, -81.3833, -81.3833, -121.3583, 142.7164, -111.7075, -111.6167, 132.3826, -8.167, -75.95, 87.08, 14.9, -121.4667, -167.9167, -102.9181, -77.1419, -79.4433, -86.625, -91.1269, -118.3667, -84.1108, -86.1086, 19.7831, 19.721, -6.869, 107.133, 12.3556, 10.63, 78.717, -96.6789, 9.452, 88.32, -80.8158, -80.6928, -79.6931, -71.2092, 137.05, -111.85, 113.943, 12.4313, 89.317, 72.2, -98.65, 49.4, -66.1678, -81.6333, 68.25, 23.933, -75.2225, -83.3319, -84.0744, 145.6004, -110.22, 8.0003, -112.75, -125.7667, 163.005, 84.4, -110.05, 30.3494, 24.1669, -143.0372, 36.567, -122.4167, -122.4497, -122.4, 75.283, 131.13, 72.867, 134.567, 139.767, -143.3467, -105.1833, -4.0492, -92.5806, -93.5653, -83.5333, -83.8014, -122.8167, -83.4764, 73.783, 43.733, 120.8, 82.08, -99.683, -114.7167, 141.55, -3.0, -110.0686, 109.75, -108.8, 135.87, 84.9167, -74.2167, 14.47, -112.1167, 117.7703, -119.4242, 109.78, 128.733, 122.267, -102.2333, -112.86, -117.0903, -145.1703, -111.6333, -112.3217, 145.5014, 152.8608, 141.8008, 96.1, 151.9134, -119.5453, -119.51, -95.6303, -95.6639, -95.6261, -126.1667, 14.4, -67.7214, 59.2167, 10.88, 7.733, 7.7, -106.0581, 24.2744, -79.4, -79.3667, -79.4, -79.4, -95.9333, -79.6333, -79.4667, 31.63, 10.2553, 16.28, -118.3411, -3.45, -103.4333, -103.411, -107.1814, -49.73, -0.7106, -111.2936, -104.1564, -104.2236, -104.1528, 13.01, -6.767, 11.78, 19.5006, 0.4914, 18.5833, 8.7917, 13.0708, 13.0625, 98.2, 98.3, -134.89, -102.8, 134.233, 42.75, -0.186, -117.85, 6.13, 5.9333, 0.7, -76.4431, -106.6833, -92.2783, -110.4203, -100.3908, -111.5378, -83.7781, -108.9, 146.7661, -94.1819, -115.9167, -88.8825, 137.2, 8.1, 34.0, 39.72, -61.6833, -95.6308, -121.3467, -121.5828, 21.338, -109.3683, -114.3031, -133.5, 10.6, 10.6167, 99.617, 147.9489, -89.5167, -81.3039, 12.488, -107.2333, 2.0167, 12.6292, 10.8914, -85.5825, -85.6442, -112.8667, -121.9333, -108.3833, -54.383, -65.266, -112.1636, -91.4378, 11.1, -93.6086, -111.9128, -77.5333, -101.0611, -74.8158, -77.5667, 140.8925, -60.33, -109.2, -51.7, -105.9725, 15.23, -110.95, -116.5886, -83.4083, 12.7689, -101.6961, -101.7758, -111.4747, 6.6467, 6.6592, 13.75, -119.305, -105.2333, -29.3167, -104.4869, -104.5567, -104.3378, -60.883, -68.4833, -122.8045, -115.4333, -122.7947, -130.8833, -110.5833, 35.8, 22.4, -92.2575, 13.15, 13.18, 13.22, -51.38, -38.133, 77.0, -113.2167, 113.1331, 136.567, 56.2, -69.1167, -72.5167, -72.6167, 61.5994, 13.3, 2.383, 19.0, 18.9281, 18.9131, -117.3908, 10.4533, 10.9333, 12.5408, -103.9006, -120.3167, 126.1485, -122.3886, -109.6667, -122.575, -115.6278, -121.2333, -85.0728, -85.9722, -115.9061, 82.946, -115.8833, -86.0003, -95.0881, -73.6833, -115.9167, -86.0122, 11.64, 33.7997, -120.2, -120.173, -79.03, -66.0164, -93.4136, -63.2667, 126.3867, -99.8617, -107.2317, -107.2681, -113.7942, -82.2517, -100.9583, 12.2719, 10.6692, 101.467, 30.35, 25.8, 23.9, 105.317, 136.517, 136.067, 134.017, -64.918, -57.821, 132.75, 39.1, 69.4, -149.483, -129.2167, -74.3386, -111.1697, -111.1961, -110.9442, -110.9553, -111.0053, -110.9536, -103.6867, -103.6031, -49.72, -106.3, 149.0937, 121.731, 57.4, -133.0167, -133.0333, -122.3667, 37.617, -98.367, -106.0411, 28.8167, -121.4744, -113.3847, -101.7614, 121.7, -125.5667, -86.2089, -110.0833, 17.9125, -76.0803, -72.2244, -95.8872, -95.9844, 100.63, -111.0497, -121.4003, 148.0141, -121.4833, -61.45, -61.5, 115.617, -90.3683, 10.23, 102.53, 147.4614, 92.433, -88.7658, -88.7714, -74.4383, -119.49, 100.2331, 38.731, 16.694, 39.233, 63.5, 25.417, -45.4, 131.983, 63.7, 7.65, 23.033, 68.22, -100.8972, 53.0, 22.1817, 22.2831, 22.2775, -120.855, -78.5817, -70.2561, -108.3894, 24.8831, 87.167, 89.2, -100.8636, -100.8883, -100.1167, -100.3167, -98.0956, 87.9331, -112.12, -87.6161, -87.6161, -116.2225, -88.2908, 13.328, -95.2803, -84.06, -117.7539, -151.4136, 93.78, -99.9189, -96.5994, 8.8189, -97.4, -112.0264, 18.7, 8.5206, 35.867, -122.6167, -113.7319, 20.617, -114.45, 6.8906, -116.0369, -54.8, -112.3261, -115.1953, -114.3461, -114.4569, -114.4869, -120.0403, -114.5, -106.3514, -116.1758, 8.9142, -120.3211, -91.6653, -91.7067, -111.6833, -110.2167, -87.5678, -146.9542, -78.9336, -80.0297, -95.2969, -90.0603, -95.4025, 124.667, -97.8703, -85.5833, -1.417, -63.9333, 25.5831, 65.5, 123.567, 30.07, 47.5, 113.617, -67.05, -47.95, 9.1569, 104.8667, 104.867, 4.35, 62.8, 130.62, 80.9331, -125.5333, 73.883, 13.24, 13.1, 102.8, -79.1667, 102.8, 134.4197, -179.983, 14.067, 142.78, 10.53, 136.15, 55.8331, 7.45, 6.35, 142.03, 74.02, -118.6333, 53.817, 54.6831, 25.433, 119.55, 94.333, 70.933, 31.17, -123.2103, -118.9339, -123.2008, 106.867, 92.08, 107.0, 107.6, 129.42, 19.22, 112.467, 89.933, 116.967, 96.85, 139.8, 84.517, 23.45, 150.4827, 12.78, 6.6538, 130.9, 9.95, 13.47, 129.32, 17.6664, -117.8, 34.5, 17.2197, 14.18, 48.333, -101.2908, 30.23, -119.5667, 34.33, 20.29, -152.14, 11.183, 28.67, -46.88, -160.8, 110.633, -101.1461, -123.4953, -91.0042, -79.7192, -93.0031, -80.5336, -81.6628, -89.0317, -117.8758, -88.0336, -114.3747, -85.7464, -109.2, -89.5308, -105.5667, -147.8611, -113.5333, 152.3375, -93.1772, -60.167, -71.483, -59.15, -61.467, 10.2908, -130.45, 130.157, -56.1667, -100.7264, 21.25, -121.6931, -76.7683, -109.2836, -107.2667, -83.2833, -109.4461, -106.8333, -94.8244, -63.0, -63.05, -120.3667, 17.63, 17.59, -90.4667, -66.4167, -104.6114, 142.783, 51.4, 138.3136, -108.4833, -108.4833, -68.93, -108.7422, 68.983, -88.2403, -83.7822, 81.617, 38.77, 60.567, 65.55, 120.033, 42.0, 133.233, 45.069, 14.8, -57.033, 87.5, -49.31, 29.4, -82.8186, 130.032, -68.296, 119.867, 97.514, -102.3122, 13.183, 14.041, 16.422, 109.02, 136.68, 156.7, 102.75, 57.683, 135.15, 162.467, 116.5, 85.62, 53.683, 134.4497, 143.2297, 121.48, 159.42, 87.75, 52.2667, 133.317, 56.9194, 159.17, 50.42, 115.167, -111.8972, -112.9367, 25.6, -106.8333, -103.4433, -75.3839, 15.7, 4.883, 4.8781, 27.0119, 27.9006, 139.867, 100.1, 11.0717, 17.35, 162.9742, -99.8325, 132.55, -79.8667, -79.1667, 90.367, 22.2667, 89.817, -118.4428, -83.5358, 26.4275, 24.83, 30.78, 21.8, 21.65, 21.6, 21.7678, -106.8, -121.9608, -121.9575, 57.5, 11.03, -93.0958, 29.8353, 10.89, 14.8, 9.0833, 7.3653, -106.3539, -106.3833, 31.98, 19.68, -73.6833, -146.3517, -83.2, -83.2767, -117.2439, -119.25, -0.3664, -0.482, -0.4731, -10.2219, -104.4914, -108.4983, -100.5517, -100.55, -100.5231, -100.6931, -70.62, -43.71, 26.033, -112.2492, 19.9167, 4.4292, 26.233, 16.37, -4.7667, -88.2, -4.85, -107.5, -107.5811, 1.175, -70.9333, -64.1, -4.5331, -74.1, -117.2, -117.2667, -117.0086, -98.0203, -120.2822, -95.4861, -75.4197, -85.6064, -85.6172, -96.3672, -114.5139, -66.0, -96.31, 25.0, -104.9244, -86.5167, -86.6833, -87.0058, -87.0378, 28.8325, 38.1, -117.8511, -77.7833, -77.7833, -48.476, 0.728, -107.85, -107.5833, 9.0356, -79.1333, 43.32, 102.2667, -67.4303, -122.6511, -123.1167, -123.1833, -123.1833, -122.6572, -123.25, -89.0953, -91.4833, -120.5667, -120.4861, 27.82, -84.4397, -124.0167, 12.36, 6.6455, -73.614, 24.9603, 25.0667, -178.95, 84.08, -121.7939, -67.9397, 43.35, -104.8372, -118.4892, 29.383, -84.5808, -116.3333, 21.82, 22.05, 82.867, 12.27, 31.1, 31.0844, -73.3833, 25.45, 27.8442, 27.9108, 27.825, 14.1942, 9.2019, 29.8331, -83.5828, 20.41, 16.63, 15.38, 18.26, -112.1333, -112.1167, -119.7833, 14.83, 14.73, 11.8572, -102.4633, 9.1468, -112.1, 7.9467, 30.6167, 46.3, 16.3, 21.5167, 25.65, -97.7647, 42.067, -100.875, 33.283, 37.383, 10.1083, -82.4364, -112.0667, 12.33, 21.533, 70.367, -73.3667, 12.0, -111.8492, 54.683, 12.0042, 27.95, 61.1, 164.23, 87.95, 46.7, 60.3, 96.97, 45.017, 133.4, 60.7994, 132.017, 59.2, -110.8833, -96.9194, -64.267, -109.5211, -109.5144, -88.1275, -99.3256, -112.435, -123.1903, -112.4269, -119.2, -119.3167, -112.4167, -119.2, -93.1869, -119.2667, -88.7239, 10.8667, -80.4031, -80.2428, -92.8397, -84.7464, 26.4281, 135.8, 33.267, 50.9, 8.3167, -20.2831, 17.833, 45.8, -85.0761, -113.6667, -8.8, 3.4, -91.7683, -90.8753, -90.8444, -42.86, -63.4833, -53.2167, -96.5667, -97.0181, -123.3333, -123.3167, -123.4667, -123.5167, -123.4333, -123.75, -123.2667, 98.583, -96.9214, -96.9303, 131.0145, -96.9217, -123.3, -100.21, -117.3058, -117.3833, -96.7864, 138.6217, 138.5997, -105.3686, -120.8333, 22.85, 20.13, -75.8211, -77.2664, -91.9811, -114.85, 102.5667, 27.2242, 145.0972, 120.356, 12.2167, -101.4969, -8.6239, 6.115, 24.4017, 25.8617, -111.7333, -111.7667, 70.617, 35.313, -7.7333, 26.9, 16.84, -60.098, 25.6, 121.6167, 13.667, 2.2, -123.4639, -99.48, -92.933, -6.07, -56.433, -15.867, -65.146, -63.683, -63.47, -65.387, -79.4333, 8.4617, -111.9167, 25.1, 21.8153, -87.4878, 19.72, -79.4167, -79.4167, -79.4, -70.615, 11.61, 105.671, -95.1322, 8.991, 28.6, -120.1858, -92.0078, -115.1333, 17.6, 124.206, -89.7689, -100.95, -96.4983, 26.87, -119.6483, -111.9481, -105.2186, -119.25, 27.6756, -90.8761, 23.5456, 5.5256, 23.517, -63.135, -119.2994, 18.3331, 83.233, 14.41, -117.2269, 30.217, 30.1, 12.05, 112.5831, -40.333, -2.6544, -40.863, -2.7331, 21.63, 176.9, 34.4, 44.65, 40.35, 131.9331, 4.9206, 3.5956, -98.75, 13.8, 9.0019, 7.6358, 13.9, 80.367, 9.5856, 44.346, 5.7067, 24.45, 29.88, 37.35, 94.5, 24.317, 39.9167, 26.5, 44.45, 64.016, 89.633, 39.2167, 39.27, 27.0192, 139.6, 106.867, -49.983, 40.2, 31.333, 21.9, 23.5333, 18.48, 20.4, 21.3167, -113.25, -146.7158, 28.8, 23.383, 36.45, -113.8333, -85.8258, -66.8667, -119.1189, -97.2169, -97.2283, -0.5239, -95.1494, -80.0772, 45.2, 31.35, -119.29, 33.483, 5.6331, 9.8044, -89.45, 147.4573, 147.3091, 117.3403, -98.2894, -95.3739, -119.8814, 9.1283, -96.6222, -111.4914, -113.4264, -158.1553, 9.3239, 8.9, 14.778, -157.8489, -157.8167, -157.7114, -159.6758, -158.0536, 120.333, -159.995, -111.1, 122.237, 136.9, 40.07, 139.917, 135.167, -99.8722, -96.8667, -77.0078, 166.65, 141.683, 8.3608, -106.2792, -74.1628, 13.4656, -94.1942, -112.7833, -78.5878, 148.1223, -83.075, 145.4281, -77.04, -94.57, -119.4592, -118.0569, -101.5853, -115.9314, -76.4386, -77.9831, -101.2094, 144.9654, -118.2869, -1.1081, -75.4631, -117.5314, -148.0872, -89.5989, -111.5097, -112.8097, 142.004, -71.2461, -104.7956, -102.2986, -80.6761, -98.3006, -98.3458, -80.7333, -96.4756, -75.1456, 129.38, 14.65, -96.3703, 138.95, -121.453, -107.9786, 144.1482, -74.9003, -74.2933, -86.9294, -122.1953, 116.6706, 116.6756, 126.75, 146.3056, 7.9075, -111.4078, -73.5053, 108.033, -120.4203, -101.9333, -109.4256, -90.2836, 145.5258, 9.183, 126.5839, 29.07, -78.5811, -115.4667, -120.2333, -114.8167, 12.667, -117.75, -117.7333, 28.33, 128.2175, -113.1667, -118.5786, -112.23, -86.9064, -83.6164, -83.6, -83.0183, 137.3995, 146.704, 142.405, -79.1494, -115.6789, -93.8008, -6.6108, -82.6222, -91.1386, -77.7678, -92.0997, -80.8106, -104.4333, -2.65, 142.4353, 142.4522, -95.33, 133.3796, -85.8678, -76.7769, -78.0044, -78.2203, -84.9672, -1.115, 9.4431, -86.2283, 152.1003, -115.6333, -99.95, -119.3519, -121.33, -109.4, -93.5264, -101.0267, -77.0525, -97.055, -91.7078, -87.1989, -82.7058, -80.1889, -97.5208, -83.4239, -77.4636, -82.8161, -86.8911, -117.2583, -77.0342, -96.1594, -77.0722, -106.0667, -94.3939, -92.5875, 9.9439, -102.4478, -103.7986, 131.5488, -105.2103, -7.1308, -123.4167, -90.1619, -82.4736, -88.9844, -92.4011, -80.3833, -89.1742, -89.17, -113.8167, -88.7364, -75.8753, -76.0217, -97.1494, -120.08, -83.0981, -64.65, -69.6544, -100.7283, -89.6311, -103.2892, -103.2597, -103.2867, -83.3897, -83.3656, -98.4139, -98.5261, -105.4667, -105.4, -87.7556, -121.7886, -121.7692, -128.8167, -128.8167, 102.563, 0.956, -88.6667, 28.017, -97.3269, -81.7994, -87.8828, -88.2492, -91.4711, -89.0592, -97.9964, -97.9883, -89.6256, -88.8889, -84.1453, 28.0, -89.3831, -87.8347, -82.9797, -76.525, -106.0317, 131.1166, -84.8, -84.7833, -84.7833, -96.8422, -83.4031, -111.4097, -82.3128, -82.26, -82.4, -97.0108, -87.7592, -82.0061, -88.6708, -78.875, -80.1656, -82.9683, -92.2319, -98.8797, -71.7383, -97.77, -98.6986, 158.2, -122.9383, -95.2039, -106.9333, -97.5228, -93.7972, -99.4192, -112.9, -80.4169, 9.0864, 143.5127, -85.1289, -122.4539, -82.5756, -96.1414, 117.75, 12.1856, 10.6094, 119.183, 11.7, 8.2594, 6.7917, 11.3092, 8.117, 104.28, -151.0833, 141.9208, -116.9697, -116.4267, 6.8125, 10.967, 10.9967, 7.6983, 36.476, -89.1167, -97.4178, -90.6828, 26.67, -79.2667, -79.3333, -1.6031, -75.9286, -100.2103, -97.4097, -110.6861, 174.8, 148.9503, 148.9708, -117.9933, -114.9736, -93.7367, -77.3872, -80.6119, -85.9572, -77.9475, -77.9919, -121.7833, -120.31, -120.2014, 12.0131, 10.4717, -114.0358, 103.867, -97.0042, 120.667, 26.87, 7.883, 10.767, 9.5439, -74.8081, -97.9708, -67.6664, -105.5333, -98.5706, -104.0503, -73.7075, -105.4661, 3.8631, -71.7989, 11.0617, -114.0836, -64.6667, -82.9433, -117.7183, -79.5856, -72.8036, -72.7161, -72.6322, -101.0192, 142.9378, -80.4725, -105.3053, -96.7775, 171.6, -69.7089, -119.75, -120.9, -88.0017, -88.0858, -88.1939, -116.4333, -70.6128, -75.635, -88.2464, -114.2631, -113.9847, -113.9942, -71.2008, -86.9919, -83.3017, -71.4333, -90.1805, -90.2344, -88.7725, -80.0994, -82.4547, -91.8347, -91.9025, -85.1808, -73.9608, -96.7142, -76.8, -106.3833, -69.1461, 122.3122, -71.9031, -80.7694, -123.2, 147.1962, -111.0975, -113.3833, -85.2042, 143.669, -103.8333, -103.8, -91.4181, -65.9917, -92.6, -87.7097, -87.0578, -104.9492, -96.5042, -88.0728, -105.1169, -80.7283, -80.6472, -122.6667, -122.5281, -105.1167, -111.15, -106.9, -122.95, -122.95, -118.7403, -53.5333, -0.6241, -115.7833, -115.7833, -71.545, -114.3594, -89.9167, -84.9789, -73.4011, -112.15, -135.0667, -135.1, -118.2347, -135.0333, -135.0833, -93.55, -109.9839, -103.15, -145.8894, -86.3542, -149.9978, -78.7914, -78.7286, -88.7247, -102.2667, 143.0742, 143.0893, -120.8375, -111.4167, -90.3789, -112.15, -86.6456, -98.7131, -83.4717, -109.9, -71.1406, -121.3833, -110.9833, -101.0925, -96.565, -122.7833, -106.1758, -108.3667, -80.3083, -110.8853, -110.9, -119.65, -87.0231, -87.0167, -101.445, -118.4628, -81.6, -121.8994, -83.7831, -97.375, -75.9653, -148.6858, -118.01, -85.4736, 137.5205, 137.5328, -81.1, -104.1567, -103.4914, 101.1, -97.4425, -97.35, -98.4928, -97.2211, -97.2667, -98.7125, -98.7458, -97.4431, -3.083, -110.5433, -112.7403, -121.6875, -14.4, -111.8833, -111.9731, 18.5667, 16.35, 16.4, 16.3883, 16.135, 16.567, 12.467, -89.1214, 4.6031, -113.6136, -118.7239, 143.3747, 143.385, -109.5, -112.4833, -103.2131, -117.1853, -94.4456, -105.6, -103.0192, -115.8008, -92.7489, -118.8408, 3.9, 8.1067, -75.7269, -123.7164, -78.0453, -109.8369, -112.1928, -84.15, -91.9978, -76.7039, 150.1786, -82.2761, -76.9217, -76.9833, -77.0306, -84.6106, -106.2039, -122.05, -122.15, 151.8359, -123.5333, 167.0, -72.1836, 8.6033, -103.7372, -103.6367, -105.0564, 149.965, -123.3425, -95.0833, -95.0358, 23.5, -122.3058, -114.6611, -100.2911, -110.8167, -118.35, -123.6364, -106.2153, -106.1, -75.15, -105.7333, -89.8489, -91.9914, -150.0542, -73.3819, -96.015, -84.9344, -83.85, -77.9206, -77.8789, -77.8997, -75.6008, -75.5414, -99.0556, -96.8619, -110.51, 146.4244, -77.9456, -115.0, -98.4889, -100.7892, 120.225, -113.5833, -86.5867, -89.3142, -78.1514, -90.4528, -123.3536, -116.6233, -86.0925, -78.1167, -84.9208, -83.7261, 17.1, -89.1547, 167.7, -95.1167, 142.6564, -109.0614, -93.5242, -88.5961, -82.95, -64.1667, -83.0667, 116.0308, -105.5833, -103.4881, -119.4167, -114.5833, -87.8469, -96.9408, -81.9153, -97.0369, -97.3489, -100.1069, -109.3758, -103.2017, -94.1661, -117.7514, -117.8081, -99.8403, -99.8422, -92.6561, -97.25, -97.2333, -97.1, -97.1333, -81.0928, -91.7089, -91.7022, -101.2439, -91.6364, -89.6244, -91.6703, -110.7208, -107.6492, -91.07, -55.3333, -55.3, -121.9778, -94.0183, -83.2911, -81.7331, -81.7542, -120.1886, -81.0317, 143.0836, 143.0386, -69.7117, -89.7667, -89.8056, -89.8369, -113.4514, -150.1069, -82.5389, -113.0136, -112.9333, -82.5597, -99.56, -126.2167, 115.1042, -79.8306, 12.65, 118.3358, 7.667, 12.4964, 23.533, 4.3417, -118.4989, 115.8808, 143.9167, 8.24, -65.15, -106.7469, -118.1333, -106.7906, -106.8, -107.1719, -105.6483, -105.1017, -105.2097, -105.5744, -91.2167, 137.9462, 150.8795, -109.65, -118.7033, -150.8714, 116.7186, 116.7267, 127.95, 127.433, 145.5965, -100.4794, -122.6447, -81.7072, -79.6, -84.8483, -86.0894, -55.55, -123.8833, -67.4044, -121.7942, -118.5744, -111.1494, -122.2561, -82.7333, -147.275, -80.7667, -72.5072, -67.55, -78.4678, -75.1644, -78.9833, -91.2325, -94.4, -99.4167, -112.8167, 151.3451, -77.7167, 146.5364, 136.8054, -71.4908, -81.9167, -81.8867, 19.467, -72.5822, -71.8731, -110.9167, -107.9508, -107.9686, 8.3667, 10.2306, 8.9867, -119.0, -72.9211, -95.5803, -132.3875, -102.2325, -59.3167, -60.45, -112.1167, -76.05, -117.6386, -105.7331, -92.9542, -94.1583, -84.05, -123.4333, 0.4308, 8.5281, 17.0, 93.08, 135.4519, 104.917, 110.63, 114.05, 118.583, 11.967, 9.433, -111.3703, 7.1058, 9.9589, 9.9292, 102.867, 113.53, 8.3806, 111.3, 87.65, 104.883, 147.2418, 0.9481, 7.783, 128.1247, 128.1503, -90.7964, -104.2, 145.7292, -104.2, -107.4061, -81.0869, -84.2011, -81.2275, 88.633, 33.633, -89.85, -83.9, 118.083, 108.933, 123.72, 102.267, -98.23, 107.63, 88.883, 114.52, 116.117, 105.183, 114.5, 101.767, 115.58, 114.05, 110.93, 116.82, 112.333, 114.58, 117.6, 20.0, 115.65, 117.15, 103.0, -115.6267, -124.1047, -63.65, -80.5481, 31.8, 87.6, -142.5, -120.5414, -120.5428, 130.667, -139.6711, -82.8011, 23.27, 34.167, 140.35, 131.45, 153.3633, -5.366, -106.9092, -79.2544, 107.383, 146.4328, 112.4, 126.65, 67.2, 111.967, 96.133, 129.5, -97.3633, 116.85, 109.5, 138.0833, -73.807, 67.083, -66.0833, -66.0833, 152.2482, 146.0306, 177.583, 51.583, 148.9113, -95.7292, 54.4, 54.277, -90.3817, 120.0931, 12.55, 44.32, 52.0694, -10.567, -114.4333, -114.3833, -115.5114, -115.2514, -118.3231, -110.4211, -122.4278, -110.6964, -107.9383, -83.6961, -104.1833, -108.7561, -108.6636, -113.5417, -111.3508, -80.8419, 38.063, 127.75, -2.6415, 150.7506, 44.5, -119.1575, -104.6128, 33.367, 29.983, 104.6, 111.3, 114.38, 128.9, 106.2, 122.2, 81.333, 94.7, 118.15, 23.47, 24.6531, 23.9167, 24.7278, -97.1556, -104.3881, -123.75, -116.5333, -116.35, 136.583, 139.65, 139.6667, 12.43, 12.5, -123.065, 133.333, 123.017, 138.7489, 117.35, 116.765, -97.5922, -102.4667, -102.4667, -73.7975, -97.5997, -76.75, -81.225, -76.8742, -92.3, -71.3331, -119.5897, -119.8208, -57.633, -79.0103, -80.6739, -112.3014, 148.2475, -86.3425, -109.8167, 108.767, 34.8, -122.6408, -106.3217, 14.95, 4.6817, 101.98, 110.4, 101.87, 112.7, 71.6, -114.1344, -116.4078, 131.8017, 113.08, 137.6697, 69.6, 130.9737, 109.7, -102.7217, -114.1883, -114.6167, -114.3942, -114.6, 97.033, 111.05, 139.5645, -123.8575, 112.98, 96.967, 96.6, 46.3, 114.57, 104.15, 61.4833, -102.567, 15.35, 95.3, 15.9781, 60.907, 84.9167, 46.667, 20.883, 19.9667, -82.385, 122.067, 42.62, 109.967, -102.28, -5.7333, 23.25, 111.9, -81.8922, 48.359, 39.225, 112.67, -99.2536, 35.02, 35.3, -1.0333, -1.0081, -132.8486, 129.467, 14.9831, 78.667, 13.3281, 12.1442, 127.3, 41.57, 12.8, 14.75, -1.45, -102.9956, 41.483, -45.65, 15.0, 49.483, 69.8, 81.217, 114.88, 122.533, 100.43, 110.4, 103.75, 80.0667, 72.867, 21.3, 113.65, 67.717, 105.1667, 123.4, 109.683, 27.867, 36.82, 30.033, 69.467, -96.5167, 105.67, 76.367, 112.57, 114.017, 28.733, 15.5333, -16.282, 57.4, 25.917, 18.617, 102.05, 39.733, -122.3903, 9.0, 15.13, 13.9006, 13.75, -112.9814, -106.5833, 19.7167, 59.67, 67.067, 82.2, 28.1, 32.667, 138.983, 31.8, -108.5244, -108.5528, -12.483, 20.35, 12.08, 8.5667, 41.883, 10.9867, -92.6661, -108.8389, 106.883, 27.8, 64.867, 150.9], &quot;xaxis&quot;: &quot;x2&quot;, &quot;xbingroup&quot;: &quot;x&quot;, &quot;y&quot;: [51.6833, 51.7, 44.3958, 49.0017, 50.7839, 68.7, 30.371, 44.017, 53.77, 20.65, 44.017, 50.143, 50.7, 49.0333, 13.85, 54.2833, 33.83, 45.4558, 46.9658, 47.2614, 45.7114, 42.9536, 33.84, 46.35, 52.133, 18.24, 5.25, 5.261, 38.9267, 32.3403, 32.4106, 36.6686, 36.2403, 68.36, 60.9181, 66.383, 65.9897, 31.583, 24.43, 24.433, 19.533, 12.733, 43.4892, 45.9833, 44.3739, 51.0667, 13.567, 22.5, 16.833, -2.88, 5.55, 56.28, 43.55, -6.973, 42.1, 34.8083, 44.0089, 34.4458, 30.3519, 34.7864, 47.2992, 51.8833, 22.5, 37.1, 36.98, 40.783, 51.6, 34.2553, 42.1014, 8.98, 9.0, 9.033, -33.57, 42.1761, -34.9524, -34.9211, -34.9697, -34.9254, 59.36, 31.1097, 49.05, 5.3, 41.25, 41.1936, 37.75, 18.1747, 43.433, 47.572, 27.88, 41.9164, -19.533, 41.8678, 37.0956, -34.559, 20.983, -25.45, 42.6475, 42.7292, 38.726, 16.967, -10.433, -10.6, 23.883, 49.25, 49.25, 48.5, 48.3006, 66.8797, 42.4244, 42.425, 30.72, 44.18, 51.1, 55.25, 42.5522, 39.733, 21.8833, -9.28, 21.95, 37.5167, 33.9433, 17.9556, 47.6, 52.083, 23.067, 62.533, 62.5344, 21.05, 22.95, 31.337, 18.1281, 47.53, 50.25, 38.033, 33.4925, -19.483, 57.867, 42.5522, 36.317, 32.767, 16.73, -38.4583, 46.5258, -18.8333, 44.47, 56.45, 35.05, 38.92, 41.47, 20.26, 39.717, 51.867, 19.75, 52.0, 42.967, 68.2167, 20.7, 20.7, 40.93, 61.4, 41.0803, 40.155, 40.9167, 41.0375, 40.1667, 34.567, 50.267, 54.0, 38.617, 50.2831, 32.033, 65.68, 43.15, 51.0, 33.1783, 14.08, -12.14, 63.0889, 63.0506, 32.9181, 37.4417, 37.4389, 35.7978, 34.2281, 40.5, 54.817, 38.9519, 39.0067, -35.0289, 32.7047, 42.6461, 31.5339, -34.9414, 42.7431, 31.5356, 35.3992, 49.3333, 46.6447, 43.1833, 46.85, 47.0036, 53.1167, 43.6064, 41.0656, 41.4, 38.3778, 41.6853, 45.2089, 43.2722, 43.9167, -34.5638, 45.5833, 48.2164, 35.1, 35.1344, 35.0419, 35.0217, -36.0692, -36.069, 36.0908, 62.8167, 42.4697, 39.17, 58.6167, 54.658, 48.6167, 37.7272, 45.0708, 45.0961, 40.1867, 46.2733, 39.6514, 41.2019, 52.517, 50.917, 60.4331, 50.9, 50.15, 32.9308, 48.45, 36.18, 36.3333, 82.5167, 82.5, 82.5, 44.92, -28.5667, 32.9453, 31.3206, 43.6514, 31.2489, 31.3928, 31.184, 45.8678, 40.85, 51.967, -9.879, 52.4864, 44.4931, 10.435, 42.2497, -4.193, -46.433, 46.55, 36.7167, 36.767, 40.67, 42.6158, 43.0683, 45.5333, 38.282, 38.3725, 38.2828, 27.7283, 33.1272, 51.1767, 27.7411, -23.7951, 35.9308, 5.02, -30.8, -21.0025, 42.9694, 47.0886, 25.441, 25.5, 36.3806, 34.165, 42.1003, 42.58, 41.4864, 40.8997, 33.0167, 40.6508, 40.7042, 42.1103, 52.3167, 42.0572, 52.4167, 39.7369, 42.7536, 43.9247, 46.0667, 44.15, 67.1297, 43.3864, 45.6, 59.16, 43.2331, 31.5358, 44.3272, 64.0, 36.8331, 36.8464, 11.526, 46.7253, -8.217, 45.1628, 45.0717, 45.0606, 30.3764, 32.8358, 33.8492, 40.4644, 33.8417, 32.8336, 36.7956, 47.7833, 44.4044, 50.7456, -28.8521, 40.5906, 46.4, 60.333, 40.3561, 30.717, 30.7, 49.25, 47.733, 43.7728, -9.867, 69.9775, 46.8667, 39.5008, 53.6881, 48.4067, 37.4403, 41.1203, 49.1, 39.4767, 36.63, 38.8664, 40.5228, 40.495, 40.2964, -39.01, 34.4417, -9.1, 41.49, 41.4914, 34.5872, 34.3622, 34.65, 34.8847, 34.5903, 57.433, 34.7961, 67.31, 36.8014, 44.6522, 36.7081, -19.4569, 61.25, 58.01, 29.3653, 41.3586, 33.3867, 65.67, 65.69, 53.0608, -13.8483, 60.9583, 49.7281, 25.285, 24.262, 20.296, 26.983, 35.18, 29.783, 24.55, -3.35, 36.5717, 35.2333, 46.235, 40.783, -27.6297, 62.1925, 67.0833, 14.513, -3.7, -3.7, 43.8836, 42.517, 69.75, 37.345, 48.0206, 42.7986, 42.8572, 32.0603, 45.3011, 41.9519, 42.0208, 41.9922, 35.1131, 60.9, 42.3861, 42.1, 34.9331, 46.4819, 16.741, 35.8742, 29.4608, 30.7094, 39.8914, 31.9833, 65.97, 60.9617, -8.53, 48.4667, 31.71, 49.6167, 47.8, 46.1314, 48.5119, 35.0619, 64.7831, 33.8647, 29.7878, 29.6692, -14.633, 42.1117, 44.9, 39.2167, 61.1747, 61.1561, 61.1689, 61.1781, 61.2169, 61.0883, 61.1025, 46.383, 31.3072, 31.3089, -30.449, 69.3237, 46.6331, 13.5761, 34.5283, 34.9092, 36.6519, 36.645, 34.4978, 61.6244, 42.4372, 40.1117, 40.733, 36.55, 45.4136, 45.2533, 45.4136, 41.0089, 69.3, 54.0167, 32.3483, 33.4408, 35.2014, 53.9167, 34.8117, -20.233, 49.7167, 37.2558, 33.557, 56.283, 42.3108, 65.02, 36.395, 53.0331, 45.55, 47.5, 38.2486, 29.1572, 29.1097, 41.6397, 57.4989, 41.0, -36.5, 38.5731, 56.717, 61.5833, 31.9381, 39.617, 32.72, 39.95, 39.95, 41.6775, 36.822, 38.9833, 38.9936, 44.75, 37.4814, 55.0389, 58.3183, 60.4667, 33.5872, 42.2228, 42.2417, 42.2947, 30.533, 41.5975, 32.7667, 38.1211, -14.83, 36.899, -18.8, 44.8197, 41.6847, 44.6867, 44.0397, 31.3336, 38.9933, 37.155, 43.008, 45.1603, 45.15, 42.4811, 37.9833, 69.08, 34.2208, -23.433, -23.5, 10.45, 7.812, -14.999, -12.35, 43.967, 31.9792, 36.05, 37.467, 33.555, 44.5792, 40.817, 45.73, 34.9142, 33.4625, 29.7258, 29.7333, 18.367, 35.7425, -13.8149, -5.61, -28.6217, 44.2769, 45.1833, 45.8092, 38.1869, 33.5619, 37.3261, 60.43, 67.7831, 29.6333, 37.5222, -10.917, 46.1331, 40.5, 40.5983, 34.09, 34.138, 46.7794, 28.25, 28.3081, 13.7, 38.6842, 30.907, -37.2775, -19.567, 42.5031, 43.0411, 50.9333, 40.3983, 45.1833, 27.2181, 37.5981, 40.9781, 51.4969, 34.1128, 27.1819, 41.1517, -27.5717, 33.5947, 38.6164, 43.6356, 36.2911, -8.41, 43.4622, 43.6231, 73.0333, 73.0, 38.25, 34.1772, 34.1922, 34.2281, 56.5289, 18.3494, -16.332, -16.4, 43.47, 63.38, 47.3, 38.1167, 48.3311, -16.6381, 64.5, 49.4167, -18.35, -18.5, 28.93, 32.7306, 66.0522, 60.083, 34.1433, 34.025, -30.311, 54.6817, 59.66, 45.7211, 44.3631, 32.6636, 32.7572, 43.3008, -23.4564, 54.35, 44.9831, 47.5867, -30.5273, -30.5264, 43.3131, 26.8339, 50.3, 34.6953, 36.1669, 36.0719, 54.6306, 7.0725, 41.4225, 49.9706, 46.7167, 46.78, 39.9167, 43.5936, 47.2667, 35.1792, 36.23, 48.6, 54.361, 51.383, 32.7547, 46.0167, 41.5697, 40.7808, 45.3783, 52.7833, -33.393, 10.15, 41.183, 3.017, 45.95, -3.333, 46.267, 61.1, 61.1, 65.5997, 59.67, 59.67, 47.167, 35.817, 59.6605, 43.767, 58.18, -15.717, 64.16, 64.17, 42.6178, 42.6617, 31.7003, 35.7044, 35.5953, 35.4186, 35.4944, 35.4319, 37.9667, 32.1292, 37.1942, 37.75, 38.4536, 42.2128, 40.8333, 46.5522, 33.2942, 37.7081, 46.5486, 41.0408, 46.0406, 41.7781, 44.0425, 41.2769, 37.2614, 36.4914, 41.0519, 61.2167, 61.265, 61.3006, 46.5, 59.8558, 53.92, 56.083, 15.283, 32.883, 39.1853, 39.2231, 33.1525, 41.567, 38.0722, 38.0667, 37.5167, 49.7333, 23.9667, 51.1331, 38.5, 44.5044, 46.1569, 44.717, 46.2831, 43.5667, -25.27, 27.1833, 7.58, 20.517, 20.52, 17.7, 51.8167, 39.5756, 54.8167, 54.6333, 35.15, 32.1633, 34.7753, 35.4322, 37.4225, 39.3428, 33.9481, 32.2211, 37.7333, 37.9667, 48.7667, 48.8, 42.5136, 33.1244, 33.3633, 44.9933, 45.0283, 33.7792, 39.8697, 33.8667, 33.875, 43.75, 41.4175, 34.6997, 39.3792, 39.4494, 50.8167, 59.5667, 31.1819, 54.7833, 34.3983, 59.1, 20.57, 17.2, 40.2839, 29.6617, -9.8, 50.8167, 39.7997, 47.1167, 37.0919, 38.9072, 42.9328, 40.3706, 32.5992, 55.4767, -37.0, 41.7069, 50.5917, -28.6, 48.4, 48.4264, 47.4931, 33.3644, 33.4669, 44.6825, 44.3206, 44.6981, 34.075, 58.3814, 74.1333, 47.9706, 42.483, 19.85, 53.4633, 40.8586, 41.7806, 64.8553, 35.3872, 39.7167, 42.7339, 45.2486, 46.6456, 39.4931, 30.6222, 44.5747, 30.1728, 30.1831, 30.3208, 30.4144, 39.5031, 29.7036, 43.6542, 45.65, 45.787, 47.8, -38.0287, 33.405, 36.8753, 36.9431, -22.35, 47.2533, 60.14, 57.2, 40.6592, 39.8592, 45.1667, 27.5947, 53.4917, 58.57, -13.13, 37.85, 53.2, -19.6169, 18.04, 36.835, -36.833, 50.5167, 43.3669, 43.3067, 59.4, 11.333, 47.7122, 48.9389, 54.45, 45.6, 0.831, 36.717, 51.72, -4.21, 29.76, 46.5331, 43.45, 51.75, 28.8, 39.8, 40.8892, 36.6833, 36.6619, 34.5328, 38.8831, 30.97, 46.1, 46.1, 48.7278, 47.1106, -33.8969, 48.9667, 44.03, 48.1333, 45.6481, 37.1697, -30.3381, 25.37, 46.8608, 50.5356, 43.8081, 50.675, 48.7856, 49.4728, 50.3333, 46.87, 51.9014, 50.867, 47.72, 50.2, 47.6658, 50.2853, 51.1342, 49.8517, 51.3925, 51.7867, 50.4519, 50.667, 51.5675, 50.3694, 47.0167, 47.7244, 52.1, 50.2717, 47.7667, 51.1067, 53.267, 34.5975, 54.47, -31.333, 41.0383, 48.3333, 16.375, 16.4, 28.3331, -38.733, 24.6589, -20.23, 27.71, 23.0, 26.267, 47.6667, 49.2667, 49.1333, 50.2833, 47.4167, 39.4047, 39.8311, 39.3794, 41.7, 41.6317, 42.2833, 30.8228, 31.367, -37.8817, 23.9, 44.4992, 46.117, 40.9339, 42.7, 50.8, 53.1, 46.1833, 61.6667, 37.6, 55.183, 44.833, 57.0, 35.2761, 46.3661, 30.8878, 35.4186, 35.4344, 41.8417, 39.0117, 34.45, 44.8428, 39.0019, 64.3, 64.3167, 46.3583, 43.9792, 38.433, 54.0, 51.55, 21.517, -37.75, 36.9092, 30.5661, -82.767, 49.2833, 43.9006, 44.2667, 43.8933, 33.9833, 42.7, 43.5556, 44.8, 38.9056, 47.59, -31.09, -20.1417, 42.67, 46.8, 50.078, 39.619, 52.533, -32.4569, 45.9497, -37.5127, 55.5833, 49.35, -27.4008, 26.95, -28.8353, 31.7414, 54.0508, 55.1806, 54.5, 43.1003, -45.917, 30.9844, -34.6398, 54.65, 39.1667, 47.08, 29.1, 5.77, 33.3, 49.8753, 70.067, 45.05, 45.0667, 27.218, 26.5833, 40.32, 43.1497, 51.1833, 51.1833, 51.2, 48.5667, 12.967, 4.73, 13.733, 46.35, 39.3975, 44.7978, 4.38, 4.4, 4.398, 13.667, 44.783, 13.338, 13.2, 34.14, 33.4528, -33.9181, 36.1617, 44.3, -8.217, 38.85, 34.35, 46.32, 25.13, 42.1, 55.3331, 43.4583, -30.9469, -24.1819, 53.117, -7.317, 48.322, 21.3167, 36.8825, -23.5544, 41.4192, 41.2928, 37.8194, 69.0589, 36.8831, 32.2631, 28.367, 78.1, 53.6167, 54.33, 8.62, 47.7722, 22.75, 41.13, 56.29, 31.9, 53.0667, 46.1, 22.0333, 46.233, 38.0281, 45.2883, 53.4331, 39.9917, 43.9456, 46.4, 30.9856, 36.5653, 33.2564, 49.8, 50.0333, 10.043, -30.3781, 47.55, 46.7167, -5.5, -12.15, 41.9111, 36.8978, 42.4281, 44.2033, 54.1, 44.4833, 44.3833, 42.1153, 71.3214, -38.32, -20.875, 71.2833, 48.167, 49.683, 52.3208, 34.8928, 34.8536, 70.1333, 54.367, 36.7619, 36.7683, 41.87, -21.698, 27.8986, 38.5311, 52.117, 48.917, 49.65, 46.683, 48.6333, 29.883, 20.451, 20.433, 47.55, -62.5, -74.7, -77.867, -63.317, 43.9333, -63.4, -62.233, -64.233, -60.733, -68.117, 44.38, 45.8, 42.2547, 50.9, 33.879, 52.8494, 47.417, 32.7314, 30.1742, 47.8, 47.8, 63.517, 1.117, 30.0, 43.0303, 1.9, -13.0545, 36.5167, -35.7234, 34.3061, 35.82, 35.7597, 35.8306, 42.6339, 42.3489, 47.6333, -33.4289, -33.412, -33.52, 66.8333, 13.4, 37.929, 35.55, 35.75, 30.5372, 37.2319, 34.385, 42.3667, 42.3075, 45.7717, 41.05, 40.6117, 41.633, 48.7094, 48.7167, 48.6703, -22.317, 56.4, -5.467, 31.8414, 31.7136, 36.8583, 46.833, 43.03, 45.733, 46.133, 40.75, 47.783, 39.2728, 35.1311, 46.8833, 49.2333, 45.37, 29.9142, 47.9803, 28.9797, 47.9833, 30.8839, 30.3758, 46.9283, 40.8236, 54.3333, 40.5583, 44.4667, 39.1167, 37.2486, 44.385, 44.7833, 37.7167, 44.95, 43.75, 41.8333, 45.0572, 41.295, 40.8208, 40.3167, 41.9583, 44.5972, 44.8019, 48.3, 35.8842, 44.4989, 40.05, 40.8844, 44.6, 43.8833, 31.7222, 40.2994, 45.1333, 45.1333, 37.6336, 36.995, 46.2, 32.4833, 34.7336, 35.5206, 32.3953, 33.9286, 33.9306, 30.0969, 31.2353, 30.0689, 46.8333, 46.6667, 50.0333, 49.4467, 50.7458, 36.8125, 49.4833, 33.4286, 55.2, 55.2, 45.4547, 38.4883, 38.2681, 40.1306, 39.6, 34.6417, 44.95, 62.4167, 36.9139, 37.4533, 43.4447, 39.1333, 40.6167, 55.38, 33.7, 44.8167, 49.4667, 48.8667, 45.1333, 66.2667, 31.646, 44.15, 37.7836, 37.7647, 37.3475, 40.6742, 42.4833, 42.8733, 38.8883, 52.217, 42.47, 44.5075, -24.3597, 50.8333, 36.1878, 35.4583, -26.9586, 49.5628, 31.233, 31.25, 28.4575, -36.6722, 17.45, 46.3, 34.567, 21.48, 39.933, 39.8, -19.8, 51.3833, 50.8989, 38.0167, 53.05, 36.8, 36.75, 40.2, 46.7, 47.45, 47.783, 42.2794, 48.8411, -1.45, 44.4394, 15.85, 43.5136, 44.8167, 44.8, 35.5731, 39.0231, 44.2867, -34.3691, -28.43, 52.3667, 52.3833, -30.267, 40.3533, 45.863, 35.23, 39.2483, 47.3833, 39.8183, 44.15, 38.52, 42.2611, 41.1167, 44.6714, 44.9906, 26.6928, 34.6892, 41.8814, 48.7178, 48.7939, -62.183, 46.1644, 30.0317, 29.7956, 33.5417, 35.5297, 54.233, 59.4, 50.917, 39.4575, 42.5039, 60.033, -19.9333, -19.833, -2.633, 39.0303, 40.8292, 55.85, 73.33, 33.1772, 12.6, 47.5033, -36.5483, 18.1164, 27.5969, 32.6475, 47.5, -30.8081, 44.0569, -36.7395, 50.4144, 44.1183, 44.03, 32.95, 32.08, -3.9, 2.95, 30.133, 32.3697, 35.3, 35.3, -4.383, 40.0503, 56.0281, 34.6489, 42.8914, 52.0019, 45.3167, 49.45, 31.8806, 61.5633, 61.9358, 40.3444, 34.5675, 36.3219, 38.0336, 41.2322, 32.6997, 44.0342, 37.8431, 42.1244, -29.15, 35.5044, 31.733, 41.317, 38.5908, 32.011, 37.0856, 37.1317, 41.3667, 41.3833, 40.5903, 39.9003, 4.22, 46.75, 37.5733, 52.35, 52.3667, 49.433, 53.833, 63.93, 57.12, 45.6667, 52.6206, 52.817, 60.2892, 60.3831, 60.4, 46.5869, 49.3319, 63.05, 60.1186, 37.8744, 52.6428, 70.8706, 49.883, 44.4536, 52.6325, 52.4639, 52.4056, 44.5761, 52.4683, 43.99, 42.3353, 46.9331, 34.4219, 51.8231, 40.6683, 37.9161, 49.9183, 46.9906, 39.35, 39.8, 4.6, 47.75, 50.9006, 49.283, 45.0833, 47.25, 33.3953, 35.4017, 41.8975, 36.6778, -26.467, 40.2575, 60.785, -28.248, 44.3064, 36.4583, 66.9161, 32.0, 43.9092, 47.2622, 44.5317, -32.1083, 42.5881, 34.125, 42.5842, 39.5475, 53.0, 23.283, 20.25, 23.25, 17.25, -1.183, -1.2, 53.1, 46.588, 43.46, -41.8739, 51.3, 45.9981, -32.0056, 35.281, 45.0403, -18.6844, 50.9208, 49.8, 32.3744, 32.355, 50.6381, 42.0833, 47.875, 52.0667, 52.3167, 45.0733, 39.9356, 40.7406, 40.7333, 46.8325, 34.2431, 41.7667, 29.4372, 30.3167, 37.2064, 39.3, 44.6333, 26.3283, 63.9944, 48.1969, 45.5556, 38.3, 34.4619, 44.5667, 41.0975, 37.2758, 44.6828, 37.0203, 38.2244, 31.2, 39.45, 38.5217, 43.8, 38.9253, 34.3789, 42.5414, 42.5844, 34.3194, 43.7072, 42.05, 60.8142, 38.0394, 36.235, 48.135, 37.75, 42.65, 47.0167, 45.2769, 36.475, 32.2442, 41.0469, 36.975, 51.1667, 36.8628, 36.2356, 36.2472, 45.8328, 53.8167, 53.8333, 53.8167, 52.0, 37.0769, 44.8078, 27.3, 52.68, 28.0, 46.8, 49.75, 43.2981, 45.9, 42.4167, 36.5297, 49.0167, 37.0536, 45.8069, 45.7508, 45.7717, 44.1242, 18.683, 30.4167, 1.166, 50.8833, 42.1997, 33.9114, 38.867, 50.5833, 3.2, 3.2, 65.5847, 42.6325, 52.5167, -25.8975, -25.9003, -54.0, 30.2625, 32.898, 33.5656, 13.8, 48.733, 53.0903, 55.417, 50.4333, 50.5317, 56.2, 25.233, 31.4475, 49.8756, 58.5167, 19.984, 42.83, 27.5842, 34.2169, 37.3711, -32.9, 34.85, 46.7708, 46.8, 46.8339, 45.5286, 38.5636, 39.7667, 11.895, 47.6833, 47.15, 2.08, 41.05, 41.5894, 33.4594, 1.433, 35.9833, 46.0, 37.25, 44.0667, 43.72, 74.5167, 61.6595, 60.0508, 64.4808, -24.4303, -24.4214, 47.6714, 43.1969, 48.0128, 53.77, 36.0931, 37.2017, 44.1, 40.2692, 33.355, 33.3631, 44.3833, 38.4167, 36.8047, 36.7542, 44.5, 38.5428, 38.5547, 38.9792, 49.85, 30.8489, 37.95, 48.5667, 38.6833, 33.0867, 47.4136, 37.8617, 43.6561, 35.6072, 46.4167, -11.1538, 44.3003, 33.4783, 38.7075, 36.7944, 43.5233, 54.367, 43.6231, 50.25, 65.05, 48.9775, 41.5536, 44.2906, 34.8544, 46.183, 31.2239, 34.5697, 37.4786, 35.1183, 60.0, 30.1061, 51.45, 37.0997, 37.6131, 50.0367, 45.4167, 35.6819, 47.35, 42.95, 41.8242, 42.9544, 41.1667, 41.1667, 52.417, -29.1, 59.22, 45.1667, 49.5667, 45.0908, 40.7597, 36.6669, 47.4694, 42.3842, 40.4864, 39.1742, 39.1333, 40.2636, 37.5928, 36.1472, 30.5872, 37.2556, 37.2958, 37.6411, 40.5017, 39.2775, 44.67, 41.0547, 38.5208, 42.2122, 38.6, 40.3803, 38.4667, 44.25, 35.1161, 37.7978, 41.2694, 45.5075, 34.6108, 52.1333, 52.1333, 52.15, 37.2825, 40.8142, 48.8719, 43.7167, 33.6131, 35.9239, 35.9403, 33.6186, 55.7031, 42.2208, 45.8472, 44.5933, 44.6056, 52.65, 47.4333, -18.53, 2.817, 2.833, 50.95, 44.755, 11.16, 53.217, 48.067, 39.3886, 38.111, 16.98, 51.8392, 51.4803, 57.85, 38.3208, 38.2119, 67.2831, 67.2669, 52.1167, 67.267, -29.05, 29.7986, 30.7808, 40.5981, 51.5333, 50.7808, 51.17, 52.38, -6.7, -6.5, 4.701, 56.233, 24.85, 58.3831, 49.933, 43.7667, 7.167, 46.3, 48.9458, 50.2, 43.7383, 43.5667, 36.7236, 43.5253, 53.4, 37.493, 53.865, 49.217, 65.68, 56.933, 45.667, 37.6167, -36.2, 35.2622, 55.49, -28.0336, 41.45, 44.5, 57.9, 20.0, 55.67, 56.9, 56.1, 52.83, 52.03, 53.85, 57.915, 54.83, 54.0, 40.733, 66.15, 46.47, -37.0016, -36.9113, 18.9, 19.117, 54.7167, -19.68, -28.66, -13.267, -9.1, 44.375, -64.783, 48.6667, 8.05, 43.2278, 43.0778, 44.6833, 33.6403, 53.5, 53.5, 33.8472, 50.7333, 50.7333, 48.6928, 48.6756, 49.3833, 39.0636, 45.6361, 39.6567, 50.733, 45.4, 46.65, 30.2528, 42.0417, 34.6344, 37.3578, 35.0931, 35.1428, 36.2114, 40.8917, 38.9708, 38.0303, 43.4361, 38.9875, 53.2281, 48.1333, 29.3331, 57.2678, 29.1853, 61.6, -25.15, 57.76, -16.45, 44.83, -37.85, 44.2667, 21.333, 36.067, 35.6364, 35.695, 18.4981, 54.267, 68.7715, 53.5803, 60.4292, 55.063, 11.73, 11.75, 33.2558, -16.0757, 62.76, 50.333, 50.4, 44.5856, 43.1561, 51.17, 44.4389, 33.8044, 6.48, 6.5, 5.27, 42.1667, 38.5458, 42.35, 42.3606, 40.535, 42.667, -27.4, 46.683, 47.68, 48.8217, 7.68, 5.967, 36.5, 11.417, 36.383, 37.905, 39.9919, 46.2314, 40.0353, 35.98, 44.7219, 46.5667, 42.7158, -22.9117, 55.417, 50.733, 48.9947, 40.8547, 47.0667, 45.62, -30.0362, 44.8167, 50.78, 33.9431, 17.53, 35.341, 35.333, -20.0151, 55.5408, 32.325, 33.5511, 35.1714, 39.3447, 37.2503, 36.9647, 41.3831, 46.1825, 43.9167, 45.3667, -34.4869, 49.7333, 49.8667, 51.0833, 33.883, 45.2833, 38.5, 31.3944, 44.9414, 45.1672, 43.4053, 35.5303, 45.675, 45.7881, 45.6622, 42.3497, 29.3167, 45.8833, 27.4467, 53.8134, 37.495, 41.8975, 41.95, 41.8031, 35.8644, -14.9408, 45.0553, 31.1444, 57.0108, -1.0833, 41.8, 51.817, -35.4253, 46.3433, 46.4047, 46.4006, 62.22, 43.6667, 52.405, 46.8833, 35.1889, 45.8161, 37.9561, 49.9167, 49.8667, -30.47, 36.5258, 43.1333, 32.5158, 39.5656, -15.783, -15.867, 34.8028, 45.6603, 48.1667, 50.783, 56.28, 50.2, 60.64, 51.733, 52.319, 35.62, 47.285, 32.9544, 38.2611, 41.6853, 29.1417, 36.7444, -4.25, 37.2889, 32.75, 56.26, 48.5156, 52.43, 47.5, 46.3797, 53.0464, 53.533, 47.5689, 53.5, 37.7092, 33.0097, 30.1592, 47.0, 44.9667, 35.9903, 44.3231, 48.45, 52.1167, 53.1667, 53.0833, 35.2283, -1.68, 63.3333, -29.9614, 41.9375, 39.3686, 31.1414, 31.145, 31.0583, 6.53, -83.89, -25.655, 40.9461, 33.2064, 38.2575, 38.7167, 41.6681, 41.5639, 38.2719, 34.9786, 41.1583, 41.12, 45.3261, -33.9486, -33.9575, 41.9539, 43.5525, 44.4, 46.4283, 51.5, 44.07, 54.1, -41.0025, 44.2833, -24.8353, 40.635, 41.6164, 41.5239, 40.6, 39.9436, 27.0436, 52.9833, 36.2047, 36.2147, 44.1614, 51.4156, 47.2472, 38.3083, 40.6331, 34.8822, 37.9442, -27.4808, -27.4178, -27.3917, -27.4778, 50.8167, 36.4731, 51.467, 35.8292, 43.1017, 45.7908, 44.9936, 46.72, 53.33, 46.2, 45.4442, 50.3667, 50.3833, 60.4833, 41.6111, 57.8833, 51.8, 49.6167, 42.0478, 44.6333, 44.6, 47.2875, 42.6333, 50.1, 59.65, 34.0497, 41.4083, 34.1333, 41.4333, 34.05, -32.0012, -31.9759, 45.1833, 45.4833, 65.4567, 32.0408, 40.8369, 45.7231, 39.765, 43.0519, 33.5214, 31.5447, 42.0464, 44.3253, 42.03, 32.375, 41.3667, 37.0678, 37.1275, 50.55, 28.6164, 28.4736, 38.7383, -32.3725, 39.4239, -17.9475, 43.8094, 60.1, 52.3167, 33.1908, 48.5617, 44.8364, 48.0333, 38.9544, 25.9008, 25.9156, 35.5894, 45.5958, 43.5611, 44.7336, 31.7383, 40.5833, 48.5353, 39.6097, 53.35, 46.5378, 39.0833, 45.05, 42.8819, 4.944, -18.637, 46.3003, 31.1681, 39.4247, 30.8078, 31.1522, 43.9, 44.2844, 30.3919, 50.9, 41.4619, 37.7064, 37.6411, 37.6417, 39.2933, 15.2667, -1.039, 29.767, 37.5247, 48.8167, 50.1739, 47.9631, 53.3567, 41.2469, 33.3761, 38.1872, 43.0361, 38.9803, 37.3417, 40.6158, 42.1197, 47.1694, 39.3, 41.75, 36.9306, 40.5003, 39.1333, 37.9033, 37.8233, 46.4333, 44.5167, 40.8125, 47.5108, 47.433, 50.8281, 44.8, 31.4106, -6.293, 19.21, 38.8247, -34.583, 41.15, 42.9486, 44.3547, 45.5161, 36.8314, 37.6667, 45.1969, 36.8003, 45.6044, 40.5819, 44.3814, 51.7, 55.8333, 55.8333, 40.2167, 50.55, -31.37, -25.75, 42.1164, 50.75, 42.33, 48.767, 54.583, 41.6833, 39.717, 48.6753, 42.6006, 64.4014, 69.62, 64.4167, 58.483, -1.333, -20.15, 48.8, -28.4967, 37.53, 35.1411, 55.1333, -43.0903, 42.3653, 40.4808, 42.08, -13.6714, 46.8167, -33.3567, 48.6833, -24.8885, -37.7163, 36.7736, 37.5139, 30.9594, 49.3833, 24.233, 29.3414, 34.2006, 34.1867, 65.56, 47.6167, 47.6167, 44.7742, 44.7833, 44.7853, 24.95, 42.3558, 51.0317, 37.0925, 44.0333, -17.7483, -17.7425, 32.5067, 42.5417, 39.3061, 41.7944, 42.6508, 44.4833, 40.7747, 36.0467, 39.2447, 36.0603, 44.4683, 40.7833, 43.3, 49.2833, 30.7586, 30.7406, 40.8803, 33.8936, -41.0661, 34.2103, 54.3833, 43.595, 36.065, 47.0, 43.2192, 45.2333, 48.1667, 49.25, -34.9997, 43.3656, 43.7, 43.8397, 39.8833, 40.183, 39.6467, 43.0675, 53.05, 61.3667, 41.7769, 35.1, 45.5397, 54.0, 53.9333, 28.945, 28.95, 35.1867, 41.0103, 28.6664, -42.7097, 35.7694, -33.655, -33.6858, 55.8389, 47.5833, 40.8414, 38.2611, 38.9, 42.9131, 32.7397, 46.0544, 47.7947, 45.9647, 53.45, 35.4028, 53.2567, 42.82, 45.1331, 41.75, 52.817, 34.8494, 39.7403, 58.6667, 58.6656, 38.467, 36.5803, -80.0, 32.2033, 44.0908, -28.6399, -28.6388, 32.6694, -26.183, 32.8964, 15.467, 48.0864, 47.8667, 39.6553, 43.5, 34.9817, 21.867, 22.87, -35.9383, -35.9371, -8.517, 39.5064, -16.05, 25.3903, 34.5822, 32.6583, 33.7411, 26.33, 33.8083, 44.2656, 36.5008, 40.2686, 52.3333, 23.26, 35.1072, -14.05, 40.8, 39.2331, 38.5669, 38.5714, 32.9736, -16.6, -16.8736, 31.2667, -16.9333, 39.2047, 37.0422, 42.3167, -7.15, 50.43, 8.925, 40.9258, 44.2, 38.2769, 37.5531, 22.533, 22.65, -21.91, 40.8764, 43.6308, 51.1167, 51.1167, 51.1, 33.8586, 34.0906, 37.5319, 32.5133, 36.1092, 37.6128, 38.6278, 42.6314, 33.3064, -34.6345, 38.5961, 3.55, 3.4, 50.15, 41.3111, 41.3075, 39.8997, 18.83, 28.4658, 55.25, 36.1414, 53.2833, 45.8833, 42.7778, -31.467, 38.7, 21.4, 34.2167, 43.2667, -29.05, 44.05, 50.2167, 40.0111, 40.2847, 44.5733, 45.5506, 69.1, 69.1, 39.8667, 36.0519, 43.3306, 33.59, 32.0289, 34.2428, -34.0391, 36.0661, 45.53, 30.8458, 49.4667, 49.15, 32.7214, -2.25, 31.1903, 31.2142, 7.928, -20.05, -19.9225, -42.6867, 46.0958, 61.1639, -52.55, 49.95, 19.85, 43.8719, -23.0, -7.217, 32.6233, 41.567, -21.75, -22.75, -27.38, -7.0, 37.0158, -29.68, 41.924, -20.45, -24.05, 54.1333, 43.78, 48.0181, 34.3617, 42.3458, 45.5489, 45.5625, 21.5783, 32.8236, 37.8, 34.63, 48.61, 38.2486, 33.3, 37.0375, 38.8167, 29.6703, 53.0333, 52.95, 68.4333, 39.0483, 40.6944, 35.9092, 40.138, 26.8639, 42.8453, -2.55, -13.47, 24.53, -15.667, -35.3049, -35.3, 44.7183, 41.4342, 21.033, 30.1383, 35.5453, 31.5589, 32.8042, 33.9153, 40.6, 61.0183, 44.3489, 46.4847, -29.946, 40.7436, 38.46, -33.9057, 36.0617, 41.6517, 43.3056, 32.6714, 44.5772, 40.1433, 63.3953, 34.9806, 44.7167, 38.46, 38.1678, 44.2297, 45.9167, 29.8706, 40.1706, 36.1533, 25.28, 22.667, -20.51, -34.833, 48.7833, -77.22, -35.7549, -35.7529, -43.4886, -43.4892, 40.567, 37.2908, 41.975, -32.833, 64.2333, 64.2333, 64.2333, 64.2333, 66.65, 66.5833, -14.9672, 25.6719, 37.2253, -40.6828, 35.2325, 68.4667, -36.9655, 59.9833, 73.333, 57.1333, -34.3728, 68.8667, 38.9536, 43.95, 64.95, -27.0314, 50.0, -33.5372, -38.4306, 58.65, -38.0573, -38.8556, 40.017, 70.1667, 69.0333, -73.517, 46.6667, 61.7833, -76.717, 50.7833, -34.18, -34.2, 51.9333, 51.9333, -28.5, -33.93, -33.965, 50.1667, -35.8426, -18.71, 33.5311, -8.081, -34.85, -5.206, -26.933, -4.577, -19.543, 15.2136, 38.2917, 48.1, 21.85, 39.93, 39.75, 33.3433, -6.787, 36.7386, 42.517, 43.083, 49.1167, 43.0, 48.4167, 48.85, 49.51, -8.378, 49.25, 41.367, 48.3667, 12.41, 47.0833, 1.833, -9.283, 45.42, -19.8, -17.733, 49.9, 37.7308, 37.7797, -17.53, 43.2142, 60.1667, 41.367, 51.4878, 51.4, 49.1333, 49.2, -18.2553, 33.8161, 52.7167, 47.3333, 46.8706, 65.1892, 45.7667, -26.33, 39.2883, 40.915, 54.933, 40.2258, 45.3028, 32.3478, 32.1783, 32.3336, 33.1281, 50.433, 52.8, 46.7447, 38.6308, 62.1, 62.1167, 49.4333, 49.4, 49.5, 39.9614, 41.4725, 38.0733, -21.93, -29.6889, -24.8878, -25.7964, 35.1756, 55.7, 53.2333, -7.333, -26.07, 34.6619, 43.4839, 39.1469, 41.0844, 40.0686, 38.4594, 49.173, -34.838, -36.773, 47.4494, 47.5089, 9.417, 33.6308, 35.0964, 28.4894, 42.065, 33.5972, 39.3594, 38.6583, 44.9667, 31.445, 37.1806, 37.517, 46.425, 39.1253, 45.8678, 10.5, 29.7908, 34.2042, 34.1231, 47.7919, 32.1614, 32.7506, 36.2456, 36.851, 37.1772, 53.7167, 48.2333, 40.8847, 36.1261, 30.1981, 49.0, 35.7192, 33.62, 23.167, 32.8878, 32.9947, 32.3222, 37.65, 42.2989, 44.5228, 37.6667, 46.9956, 47.2194, 40.2667, 43.5833, 44.3914, 16.31, 53.302, -66.283, 36.4108, 44.9711, 33.445, 40.0017, -28.97, 43.7447, 16.28, -28.8755, -28.8775, 5.62, 42.7131, 42.7333, 42.8975, 42.8614, 46.8769, 38.0211, 36.6728, 43.5861, 47.3847, 47.3778, 42.0633, -34.67, 44.8, 39.95, 39.9892, 44.435, 39.833, -37.583, -37.5909, 42.5503, 49.3, 49.35, -37.0809, 44.7269, 37.3833, 39.2078, 33.9825, 51.2667, 39.4106, 52.5333, 46.3075, 37.75, 38.6514, 29.1344, -24.783, 36.3856, 31.5022, -18.18, 32.4178, 35.6375, -28.596, -28.5, -28.48, -21.133, 37.47, -25.596, 28.3392, 12.48, 11.78, 37.8044, 52.1833, 37.4681, 41.92, 39.6453, 38.9036, 48.3667, 48.8628, 43.3847, 42.1597, 38.1228, -4.86, -29.16, 4.8, 18.1189, 9.183, 25.95, 46.93, -5.65, 41.1417, 45.3222, -29.533, 38.9028, 34.0589, 41.5306, 38.7978, 43.5958, 37.7083, 37.6564, 37.7086, 30.0164, 34.2183, 48.9797, 36.7878, 34.9833, 47.4144, 40.3008, 45.2117, 41.5833, 39.7569, 37.7158, 41.8833, 42.05, 41.5217, 35.6667, -32.1297, -32.1267, 15.8, 50.8667, 36.5408, 46.55, 40.5694, 51.2, 50.95, 46.2, 52.5833, 35.8297, 51.433, 41.3136, 31.8075, 40.2914, 40.8839, 31.2581, 40.7325, 35.8317, 43.0431, 35.7553, 47.0644, 37.7067, 34.6089, 34.6008, 39.7242, 46.72, 55.217, 65.5667, -13.3275, 41.1222, 29.105, 34.15, 44.4, 32.8661, -15.7426, -62.42, -62.183, -18.7569, -38.3646, 59.25, -29.883, -32.95, 54.167, 51.4, 48.27, 56.5, 36.7408, -27.65, 18.1547, 24.93, 49.4, 49.777, 44.224, 48.95, -32.7886, -32.8093, 52.42, 35.89, -26.9, 49.3833, -6.2, -6.2, 36.0286, 53.55, 62.283, 47.5167, 15.8, 33.617, 66.5906, 40.85, 40.9, 39.8447, 46.05, 44.5228, 44.5042, 40.6653, 36.9178, 43.735, 43.7667, 42.2031, 39.9353, -30.367, 36.95, -27.296, 49.2833, 40.0528, 40.0397, 50.2833, 46.5192, 19.36, 67.5111, 35.7061, 41.93, 35.6528, 33.2058, 41.35, 43.9, 29.05, 40.367, 38.733, 44.25, 28.2, 28.233, 25.85, 35.17, 37.933, 44.8497, 35.5, 41.3978, -13.1672, 35.6831, 12.6, 37.6703, 37.6769, 55.283, 41.55, -3.73, 50.2, 49.8167, 49.7833, 20.3, 29.52, 19.98, -27.117, 35.9086, 35.9333, 19.5, 37.1994, 47.8167, 47.65, 48.133, 27.5892, 41.0939, 56.9, -17.58, 23.13, 41.5833, 39.0831, 41.0164, 50.467, 34.0039, 36.9272, 39.4761, 48.3833, 41.6814, 32.78, 32.8986, 32.85, 38.3139, 38.3794, 38.65, 43.5833, 43.0603, -26.4139, 47.2833, 37.9589, 42.5503, 41.0347, 38.0328, 37.9975, 38.1386, 46.2833, 46.25, 28.9275, 18.3331, 37.0522, 35.2236, -36.4335, 47.9833, 47.9833, -36.2847, 43.0597, 45.6833, -20.0464, 48.4617, 41.6, 50.8167, 36.7775, 44.8, 44.8131, 46.05, 65.0167, 48.067, 46.85, 46.4831, 46.9667, 36.8225, 41.6569, 46.3344, 46.35, 46.3414, -43.95, 41.6875, 50.3333, 42.3833, 31.4714, 44.4, 34.7583, 34.77, 34.4225, 35.0311, 34.6403, 18.28, 47.0511, 44.8786, 29.3092, 36.3211, 50.067, 45.6528, 52.917, 34.1847, 39.1814, 39.2203, 35.432, 25.625, 47.8344, 55.3, 42.3264, 43.9833, 45.5167, 44.0108, 48.9333, 50.8, 43.2292, 43.2167, 65.0528, 45.9, 40.967, 30.667, 37.4, 33.75, 40.7394, 25.8, 35.3333, -31.333, 40.7667, 40.8111, 34.7319, 38.115, 60.4, 63.03, 48.3667, 42.583, 52.78, 52.533, 42.7572, 36.7481, 36.7672, 35.6197, 25.25, 25.25, 34.5964, 39.6261, 34.9, 42.8239, 37.9747, 68.75, 57.65, 35.1108, 40.3033, 48.5153, 34.7289, 63.35, 39.2167, 34.6847, 46.65, 18.505, 55.6833, 34.54, 50.4667, 39.1547, 48.2733, 41.1519, 38.8219, 41.1522, 25.517, 18.783, 19.883, 16.51, 35.6, 49.7667, 41.77, 42.1397, 41.7861, 41.7372, 41.8558, 41.995, 42.1208, 42.4167, 41.8833, 16.58, 35.983, 27.1, 27.0833, 34.9203, 34.5019, 35.0322, 35.0489, 64.0917, 64.06, 42.2, 39.7119, 39.6911, 57.7294, 47.9967, 18.52, 50.5728, 42.3, 28.633, 34.3317, 33.285, 34.4386, 34.4272, 34.3494, -15.683, -36.5833, 39.8667, 39.775, 39.8233, 39.7683, 39.3744, 39.3858, 49.1667, 49.0833, 43.9772, 42.7036, 42.5769, 38.7983, 17.55, 44.0328, 42.3, 38.8, -19.117, 8.539, 35.6875, 37.9333, 47.843, 35.2, 48.5883, 48.1731, 51.2667, 33.9753, 38.3331, -20.2, 30.7806, 41.0517, 32.0, 32.0061, 42.2, 62.1333, 47.0167, 29.2703, 29.2667, 62.5653, 52.0831, 61.5222, 61.5319, 14.233, 39.8, 51.0887, 43.7667, 48.083, 46.45, 26.733, 53.7, 28.4675, 70.6167, 42.65, 13.3167, 41.783, 36.63, 29.583, 35.82, 13.367, 48.983, 51.283, 45.517, 49.017, 35.733, 47.8206, -43.489, 35.7047, 37.1278, 17.7028, 17.7469, -10.45, 34.8083, 36.3689, 41.7594, 32.64, 62.8256, 10.483, 64.23, 37.9, 41.783, 34.83, 36.22, 46.86, 49.068, 58.7333, 58.7333, 58.7333, 53.55, 53.5667, 58.7333, 41.3975, 53.833, 49.8333, 7.45, 25.017, 49.083, 58.0833, 17.45, 44.167, -7.733, -7.7, 37.8131, 38.4442, 36.4661, 37.1408, 42.95, 47.63, 39.4203, 39.1169, 39.1033, 39.0431, 39.1, 41.2333, 43.3208, -11.083, 47.4122, 38.1706, 39.6106, 65.4939, -6.75, 40.8397, 43.7186, 24.95, -25.533, 19.717, 27.367, 27.393, 38.9892, 23.733, 57.767, 45.0833, 32.8203, 32.8517, 34.1369, 36.3225, 53.7167, 41.0489, 34.68, 34.9325, 48.3667, 50.0, 50.0167, -33.8226, 40.7244, 42.72, 41.1922, 44.8817, 34.6158, 46.4992, 39.2683, 39.2956, 34.1864, 41.7239, 36.6214, 35.4564, 33.6164, 39.2553, 35.5328, 39.3731, 36.4975, 36.6239, 33.6189, 36.5472, 33.6631, 44.9367, 33.8767, 44.3742, 46.1081, 35.11, 51.7917, 32.1678, 49.1333, 31.8708, 36.4594, 34.8878, 46.6108, 36.4486, 37.9667, 35.6408, 39.3739, 40.5208, 48.9672, 56.3333, 56.3167, 41.0467, 38.9239, 44.5781, 47.5711, 51.9833, 37.1319, 39.8667, 39.8833, 34.2711, 44.7592, 45.2, 32.3139, 34.6719, 34.6603, 38.4933, 41.6961, 28.4558, -22.8239, -33.7011, 30.3636, 33.7367, 34.5858, 41.4131, 33.7942, 36.2903, 41.5175, 35.2203, -33.7081, 26.7361, 47.1889, 32.8339, 33.0561, 39.3672, 35.0028, 34.9319, 35.5014, 38.395, 42.5492, 44.6228, 41.7947, 35.0247, 30.8178, 51.15, 38.9408, 35.21, 37.1453, -20.6664, 54.1833, 46.7047, 32.9544, 44.4, 38.8, 45.205, 49.1167, 45.0167, 40.8797, 34.4289, 34.5989, 34.3833, 46.8, 46.7831, 70.4833, 70.4833, 70.4833, 36.1356, 35.3683, 40.9139, 40.9383, 39.8958, -4.083, 39.9847, 45.15, 18.133, -31.5389, -31.484, -11.03, 42.6667, 43.95, 43.9667, 50.283, -17.42, 38.4461, 38.15, 35.6414, 51.2, 51.2333, 1.0, -10.0511, -12.183, -3.833, 30.3875, 50.1333, 44.835, 44.5147, 44.4139, 44.3367, -13.7606, -13.7642, 47.6822, 47.7667, 42.55, 37.0911, 37.0614, -30.3107, 42.2792, 45.67, 47.0567, 39.8717, 34.9225, 39.8333, 11.033, 40.15, 36.28, -38.2333, 39.3925, 42.6472, 42.6631, 30.3106, 30.5333, -37.7239, 37.2733, 41.9622, 44.6333, 55.2208, 54.4167, 43.2667, 42.5333, 44.35, 44.8611, 31.8281, 49.5667, 31.5061, 45.15, 45.9167, 28.7156, 38.4844, 44.4833, 45.2, 39.0911, 47.2428, 44.3158, 19.277, -6.03, -29.5407, 39.2367, 45.4833, 45.5794, 64.925, 64.8603, 30.5892, 35.0781, -33.3608, 44.5, 31.6419, -20.5534, 41.775, 58.1833, 58.1833, 40.6983, 42.0169, 6.9, -34.5, 38.2506, 23.2, 44.8711, 31.0522, 32.3978, 36.9936, 37.9478, 39.1014, 38.81, 22.1, 45.8944, 52.77, 31.2503, 33.9486, 35.6381, 45.725, 41.1453, 32.1667, 46.8814, 33.9706, 38.8169, 33.9831, 38.9422, 40.4, 32.7039, 38.4167, 29.6989, 31.8297, 33.4678, 37.1764, 39.1661, 45.6444, 32.5181, 41.4639, 33.65, 37.4333, 41.2864, 32.5161, 39.9833, 40.0781, 39.9914, 39.8167, 39.9047, 39.1875, 48.5472, 67.05, 70.4322, 45.8667, -9.347, 45.3667, -37.3417, 46.4667, 11.117, 39.3814, 16.25, 34.2625, -31.297, -45.783, 49.7167, 49.6833, 41.7061, 41.5569, 9.57, -32.4, -8.25, -19.033, -36.83, -23.43, -16.25, -23.4, 40.2394, 35.4072, 31.5514, 48.5558, 35.4111, 39.5592, -31.38, 39.5514, 37.9917, 43.1953, 37.9833, 48.5397, 45.1539, -33.0664, -33.0682, 45.2325, 47.5361, 39.7994, 40.6211, 53.083, 43.3203, 53.91, 49.6167, 46.6644, 39.6556, 48.1794, 30.3303, 30.3567, 30.2364, 51.9333, 44.22, 36.3697, 48.0803, 51.7667, 34.1942, 33.8314, 35.0833, 8.683, -29.0347, 36.1075, 45.0108, 45.4167, 44.2, -15.4461, -15.4486, 47.8947, -28.1681, 46.7667, -36.2939, -36.2318, 49.3, -31.3304, -31.2712, -30.9776, -30.9753, -37.2906, 42.7167, 47.405, 18.0667, 33.3192, 60.3925, 60.4875, 40.2569, 43.2717, -34.6299, 42.1131, 40.2, 31.5333, 31.9497, -27.35, 67.8333, 43.8, 47.05, 34.1122, 47.0833, 38.3139, 47.4667, 47.4678, 39.4833, 51.0833, 43.1872, 19.2, 42.9589, 64.2, 38.2022, 36.0975, -22.02, 31.985, 34.305, -31.317, 37.8442, -31.4, 60.4889, 60.5561, 39.6167, 44.9197, 41.5481, 44.0069, 34.8792, 51.841, 49.3167, 34.5181, 45.8269, 37.7928, 48.9333, 48.95, 36.4197, 40.9886, 42.1342, 39.9389, 31.78, 43.9572, 45.0167, 12.0, 49.1167, 49.05, 31.3456, 33.8, 52.0833, 52.0667, 34.1492, -18.053, -13.155, -25.467, -21.55, -37.433, -35.9887, 18.3267, 27.7839, 27.8, 27.6833, 27.7792, 35.2489, 36.9911, 40.2833, 39.64, 47.0167, -13.33, -27.446, -32.3292, -36.1828, -36.2003, 32.1225, 32.0311, 50.0667, 37.3444, 37.2553, 37.3031, 46.55, 42.6, 40.55, -19.083, -19.0, 42.9986, 44.4186, 44.6342, 44.5078, 39.8536, 19.06, 40.3708, 40.2403, 51.5167, 45.3167, 43.658, 6.35, 43.7917, 43.7178, 51.7775, 44.1094, 52.733, 47.17, 43.9611, 46.0336, 65.3458, 38.5731, 42.5167, 38.3703, 40.6242, 28.4567, 45.8003, 41.775, 41.7392, 46.0625, 44.1308, 47.25, 47.9167, 47.9544, -34.3749, 44.7442, 38.6758, 45.1833, 39.0189, 48.2072, 49.7667, 49.7167, 49.6833, 39.7811, 34.6603, 39.8158, 45.2964, 45.3333, 33.5972, 35.5497, 30.5272, 37.8106, 52.0333, 41.9903, 35.0592, 48.8167, -33.8449, -33.8451, -33.8087, 41.2708, 49.9167, 21.452, -45.5833, -45.55, 38.2833, 17.38, 15.78, 44.2833, 36.683, 44.4333, 37.4903, 37.6792, -32.16, 57.18, 55.4772, 51.7667, 51.7833, 40.4506, 40.4953, 37.5222, 49.0992, 44.23, -38.1348, 49.6167, 49.5167, 49.4833, 44.8503, 31.4072, 31.6728, 37.7617, 48.2667, 38.8725, 44.1667, 40.4597, 40.6669, 33.7403, 53.033, 43.465, 42.8967, 46.5667, -5.167, 42.7, 40.0028, 42.6333, 41.9919, 37.8256, 42.4603, 41.7958, 41.7803, 41.7611, 41.7608, 53.6, 43.3894, 37.83, 44.1, -41.7256, 38.8739, 38.9628, 48.1889, 49.1, 37.9806, 41.0372, 49.0833, 49.1, 30.7797, 37.745, 38.3636, 40.6092, 45.17, 38.7956, 31.8453, 51.0333, 38.7692, 45.3575, 44.1167, 45.6, 34.7833, 31.3072, 42.7364, -26.8094, 69.2833, 40.86, 47.8014, 48.9075, 33.6517, 48.9681, 40.1667, 28.5978, 33.1111, 36.0139, 35.9178, 36.0147, 35.9508, 29.6333, 29.6333, 54.6333, 54.5333, 45.6414, 39.0, 41.8833, 30.2408, 34.2083, 11.15, 49.6333, 41.2167, 43.8333, -18.2044, 37.6664, -7.633, -6.43, -28.63, -12.66, 28.6794, 42.99, 46.7833, 31.9461, 39.3333, 21.06, 18.79, 35.995, 35.0883, 14.8, 37.0969, 7.9, 11.767, 40.0667, 24.78, 18.883, 29.0892, 44.15, -15.55, -15.65, 40.2333, 48.1503, 50.083, 37.2167, 24.765, 34.1953, 34.1925, 42.8833, 35.3117, 56.8331, 54.5, 34.005, 55.1, 10.5, 45.5333, 39.6419, 37.0167, 34.2289, 53.0333, -31.6494, -31.6219, 44.4, -28.0706, 69.3667, 50.85, 43.9331, 20.95, 62.033, -34.967, -25.417, -25.517, 40.3667, 38.7586, -39.9322, 24.7425, -17.5736, -25.3139, 40.6742, -6.23, -18.75, 35.9803, 47.3706, 43.7744, 43.7331, 43.75, 31.7672, 41.8328, 48.6033, 53.8731, 32.9897, 10.85, -13.6, -13.52, 52.3582, -16.4514, 38.3769, 49.6667, 49.6333, 49.55, 49.5667, 45.2333, 50.8167, 27.6606, 31.9544, -0.479, 28.45, 51.0783, 14.13, 38.9783, 59.66, 16.083, 49.7333, 34.5328, 32.9203, 46.6667, 14.733, 23.711, 25.4831, 42.7256, 52.75, 43.583, 65.2667, -27.1605, 38.9386, 43.0497, 38.4547, 51.7, 36.0072, 36.0167, 45.3167, 38.9, 44.9464, 33.9881, 32.8978, 33.8333, 32.8519, 32.6808, 45.8667, 6.793, 34.77, 41.4086, 43.6561, 24.05, 40.4, -30.2761, -30.2772, 46.1833, 44.6167, -16.2636, 28.883, 39.2647, 33.412, 11.786, 16.044, 65.54, 36.43, 41.4, 46.0086, 41.3714, 40.05, 29.0567, 45.6611, 38.1, 34.1175, 50.2333, 40.3, 42.9281, 11.228, 76.77, 44.7192, 42.9447, 42.5653, 42.5708, 36.5869, 37.6528, 40.1389, 45.8167, 40.4397, 36.5728, 19.52, 29.05, 10.867, 54.3167, 46.0264, 35.2342, 35.667, 51.3, 40.467, 48.083, 45.1667, 33.75, 34.3011, 42.6781, 49.8817, 41.1144, 48.5406, 48.26, -36.5353, -9.083, -12.4239, -12.4227, 43.4136, -6.867, -6.5, 41.8, 49.55, 43.3667, 45.0833, 32.9711, 40.1, 55.867, 51.1, 51.1, 51.1, 30.2506, 47.8, 41.6117, 47.6575, 51.2667, 41.2492, -68.583, 38.7167, 38.535, 39.0981, 32.1667, 46.8167, 64.05, 64.05, 34.3761, 64.05, 55.75, 30.98, 44.8728, 29.1828, 46.3153, 35.4717, 39.9061, 39.7633, 30.105, 39.5936, 44.5564, 37.85, 31.2, -30.667, 70.1917, 46.8, 40.8, 61.25, 44.3736, 44.4667, 44.55, 39.2636, 40.0786, 42.2833, 44.3256, 42.3194, 42.3469, 58.4333, 58.4333, 36.4622, 44.8919, 48.4, 45.4167, 45.4167, 57.63, 47.489, 47.6, 33.2733, 40.8483, 34.5569, 35.6394, 39.8344, 34.6525, 39.8289, 38.4, 39.354, 43.3042, 12.467, 52.0614, 48.3556, 46.8997, 37.3739, 35.8272, 43.9944, 66.0689, 49.4, 40.4044, 43.5764, 43.1744, 49.1667, 49.2167, 46.3911, 48.8019, 46.0278, 43.5833, 47.9742, 41.0661, 41.2783, 41.3375, 31.73, 47.8017, 40.46, 39.5, 30.317, 35.285, 33.4797, -15.7442, 29.0181, 45.0417, 52.1833, 42.2558, 42.8667, 65.2167, 65.2167, 37.37, 36.917, 31.8769, -26.15, 34.0092, 40.615, 61.83, 39.3375, 38.7539, 64.0839, 64.1172, 63.9647, 50.1833, 49.0167, 48.9983, 49.05, 37.6908, 29.3842, 29.3783, 29.3667, 29.3667, 34.4311, 39.46, 32.2531, 45.2167, 32.2622, 59.6, 52.5083, 35.5317, 32.5192, 31.417, -25.9261, -35.5575, -35.5269, 41.9897, 41.8483, 42.0364, 33.8167, 37.783, 44.3514, 40.4056, -8.749, 47.3181, 33.1992, 33.2061, 39.5703, 32.9619, 39.8328, 39.7633, 39.7294, 39.75, 52.9614, 46.86, 42.0628, 69.33, 28.45, 34.0464, 31.82, 42.07, -17.3706, 45.5842, 33.5597, 32.76, 44.45, 53.3917, 39.3011, 32.8569, 46.6667, 46.6833, 39.2872, 36.4381, 36.5792, 33.6267, 39.6725, 41.5333, 11.1, 30.4, 34.9772, 41.5561, 41.5339, 41.7367, 45.9983, 42.4092, 44.7242, 46.8372, 46.8489, 42.2314, 42.2333, 51.2, 49.767, 45.8667, 26.6033, 41.53, 35.6111, 48.1167, 48.1069, 47.9853, 37.63, 44.5817, 44.5833, 37.2269, -41.1708, 34.2211, 68.65, 38.8128, -30.65, 52.1014, 30.7244, 41.9342, 52.9267, 34.05, 30.4347, 30.8428, 39.8717, 44.3867, 26.2833, 26.983, 48.7142, 37.3292, -18.23, -14.4, 36.9861, 42.8667, 43.1833, 35.2947, 39.5667, 40.6172, 39.7086, 25.617, 27.483, 46.8911, 47.1944, 36.075, 52.05, -20.535, -7.3, -12.3, 52.586, 13.373, 44.5339, 43.8906, 44.1342, 47.38, 65.2397, 65.3197, 39.05, 73.5, 35.1842, 39.0333, 50.7325, 28.6806, 48.5708, 44.0992, 59.05, 45.2128, 34.4092, 45.1581, 39.6261, 45.2575, 6.65, 43.0167, 34.5858, -62.183, 30.033, 58.53, 35.083, 37.0664, -37.0491, 40.2447, 40.2442, 40.5086, 40.4378, 14.65, 50.9181, 9.6, 41.9667, 41.9667, 37.1122, 43.2336, 68.7781, 44.8, 45.7511, 41.3, -20.17, 45.917, 45.5525, 41.835, 37.4389, 37.4361, 37.7858, 37.894, -2.7, -2.53, 24.55, 34.683, 33.8697, 59.61, 48.6, 46.55, 46.733, 39.3575, 41.0072, 56.617, 51.65, 44.1331, 42.9608, 43.1, 37.7608, 41.9675, -6.167, 54.167, 46.2536, 39.5619, 25.261, 54.883, 55.12, -4.18, 43.6, 37.4753, -36.35, 62.083, 50.75, -75.117, -77.317, 44.5667, -80.37, -76.42, -36.3697, 52.5167, 30.0719, 31.0286, 47.9431, 40.1275, 48.067, 19.1, 19.167, 39.83, 32.85, 17.483, 36.6206, 36.6269, 38.2167, 46.6833, 40.6458, 39.3239, -33.5719, 40.1636, 59.9003, 20.517, 13.917, -15.3797, 36.79, 43.7822, 14.03, 14.033, -30.3442, 41.6833, 45.2167, 40.8833, 18.3361, 31.3214, 4.02, 42.1794, -25.9319, 31.345, 31.4889, 31.4583, 42.75, 42.7972, 48.1156, 50.1667, -13.8345, 47.62, 50.0983, -43.3167, 39.1467, 36.4819, 39.1333, 45.1872, 37.7672, 41.9856, 39.6269, 39.5633, 47.85, 40.33, 39.9717, 40.0222, 57.2, 42.933, 39.9153, 43.6656, 48.0475, 59.7537, 40.4878, 62.09, 41.65, 36.2836, 51.133, 51.0233, 51.1167, 61.8869, 43.8081, 43.7306, 30.2133, 44.6331, 49.35, 35.567, 51.45, 46.3333, 45.8833, 46.6383, 45.0333, 62.2, 52.05, 52.1833, 49.8333, 30.2, 49.8333, 30.0481, 47.2442, 41.4167, 41.4917, 63.6772, 45.9444, 47.7333, 40.5667, 40.5333, 33.3597, 40.535, 36.45, 9.34, 25.255, -32.2206, 32.5575, 32.0628, 53.3639, 43.5397, 44.2436, 41.1783, 38.4558, 42.54, 42.3978, 40.1678, 24.7706, 48.167, 69.4, 45.4539, 41.8678, 40.1839, 51.3953, 41.15, 35.9667, 49.096, 36.3, 36.9358, 43.4117, 46.8369, 46.7681, 46.8367, 9.3, 33.8847, 35.8731, 55.05, -66.667, -12.635, 56.0039, 32.7481, 34.5011, 48.75, 48.7333, 50.2333, 45.6167, 54.0531, 41.9553, -32.0159, 43.9578, 47.8667, 43.37, 40.15, 51.05, 48.7167, 42.4933, 37.9497, 35.3247, 47.3467, 41.1833, 56.4505, 42.183, 45.0469, 44.8658, 54.3667, 48.0667, 44.6197, 42.9269, 37.2911, 24.05, 24.0, 37.1431, 34.0, -33.35, -29.97, -37.8233, 43.1433, 43.9997, 44.1833, 54.7679, 35.9706, 43.1717, 43.1092, 25.83, 38.5494, 41.5217, 51.2969, 40.6, 53.895, 51.1833, 55.7, 37.9878, 62.867, 22.3667, -32.7103, 41.1072, 45.3833, 46.5022, 57.202, 37.615, 35.9986, 36.0003, 53.5, 70.1297, 55.33, 45.717, 52.7, -12.805, 68.73, 56.85, 40.917, 50.25, 59.02, 40.1, 45.5, 20.85, 40.117, -66.717, -67.4, 31.909, 38.4758, 64.7856, 55.8, 64.7761, 64.7767, 49.5833, 45.3686, 39.65, 33.8089, 32.8692, 36.5575, 28.7569, 39.9278, 45.9169, 61.2967, 61.3192, 44.4856, 47.7, 47.7, 50.6333, 49.4333, 37.75, 32.3989, 50.2833, 32.2003, 38.7428, 47.2422, 44.9067, 37.3875, 46.4333, 51.9589, 42.1103, 48.4469, 44.6425, 43.8786, 44.3669, 42.2356, 45.1519, 42.6742, -33.033, -33.0, 33.4192, 42.8267, 39.3592, 46.4667, 43.1333, -38.1156, -38.1072, 42.3328, 44.2839, 41.7653, 39.3167, 39.7347, 42.0153, 44.8664, 38.55, 51.2817, 40.4681, 49.4558, 48.7208, 48.1008, 49.8531, 39.5, 44.4828, 44.4667, 36.3092, 40.9656, 39.65, 47.75, 38.85, -36.1647, 36.213, 52.2833, -40.9928, 37.0486, -37.0222, 36.0164, 44.6722, 45.9267, 63.98, 41.3853, 43.3728, 43.6242, 52.7833, 26.2981, 38.8025, -34.7111, 55.95, 26.5258, 41.667, 32.505, 32.6064, -35.1121, 53.55, 53.5667, 53.5667, 53.3167, 53.3, 53.5667, 53.6667, 53.6667, 53.55, 53.55, 53.4167, 48.4239, 47.35, 47.4167, 47.2653, 61.38, 61.36, 53.6, 53.5833, 53.5833, 34.9, 14.0, 51.1831, 53.1233, 53.1231, 39.8333, 40.1383, 47.7794, 39.1181, 56.89, 44.2325, 44.2333, 44.2333, 60.73, 51.25, 65.283, 66.3497, 33.6133, 48.8789, 60.4672, 64.6667, 58.507, -37.2091, 44.85, 47.6294, 51.4494, -6.66, 39.805, 47.85, 50.4717, 51.5042, 32.4, 26.13, 41.95, 45.8903, 56.8331, 47.7331, 64.7, 41.033, 53.0831, 59.24, 61.4494, 48.82, -83.133, 54.95, 29.55, 38.607, 34.1408, 54.167, 51.1667, 51.1333, 48.6833, 50.9, -26.3, 38.3486, 42.3653, 30.8694, 37.8639, 0.533, 0.404, 52.633, 39.5997, 33.1461, 67.05, 58.1917, 30.3492, 37.3475, 41.9872, 42.0628, 45.5669, 31.5908, 42.183, 33.9403, 46.32, -82.617, 30.85, 42.3161, 36.3644, 37.6797, 39.3811, 36.3097, 32.9161, 42.7753, 37.0058, 43.0, 49.9333, 39.0131, 38.8853, 40.8603, 40.8289, 43.5992, 46.85, 35.8, 45.8356, 35.3925, 37.2775, 44.7578, 53.6833, 41.6878, 40.85, 45.305, 46.7822, 51.1967, 46.0108, 46.9692, 47.0339, -31.333, -17.5521, 46.35, -33.6501, 46.5631, 38.7297, 42.265, 44.7303, 44.15, 48.9903, 38.8681, 47.0092, 42.0997, 42.1594, 44.5431, 46.25, 55.1, 44.3186, 38.87, 43.65, 43.65, 43.65, 32.7819, 54.067, 51.1333, 39.1506, 50.9292, 50.4825, 33.6692, 42.1717, 46.3992, 48.0164, 40.2872, 47.9239, 41.3814, 41.3461, 47.9753, 47.8833, 39.2922, 39.2953, 48.2019, 24.93, -16.5, -16.513, 28.0, 31.073, 24.1, 33.667, -41.943, 16.65, 32.8006, -50.267, 32.8856, 5.691, 33.6472, 32.7669, 32.8167, 9.98, 37.7833, 37.8183, 33.2208, 4.453, 13.357, 13.617, 30.5667, 36.9, 34.15, 32.633, 34.5892, 34.6344, 35.0381, 13.167, 13.2, 29.23, 33.5, 31.7833, 31.8117, 31.8347, 31.8111, 24.77, 24.46, 24.76, 22.5, 35.5489, 35.5483, 36.3467, 18.76, 49.1, -17.812, 20.33, 36.5928, 8.633, 47.6581, 44.4972, 44.567, -0.5, 53.3892, 53.333, 63.483, 29.52, -23.5694, -29.93, 49.0, 48.4333, 43.4675, 45.55, 42.3667, 37.1561, 53.617, 48.1383, 43.1025, 43.8544, 39.6811, 42.4694, 32.8711, 48.6833, 27.95, 31.7806, 36.6983, 38.4294, 38.3306, 41.5067, 50.95, 40.5019, -23.0314, -27.3, 50.1833, 27.9775, -30.53, -50.483, 46.6167, 40.4181, 42.0858, -29.8183, 46.1281, 46.8167, 47.8525, 50.7167, 38.2789, 36.4194, 36.3333, 58.45, 66.3797, 37.567, 61.1333, 45.3394, 45.35, 69.05, 69.0419, 68.6025, 68.5708, 44.9094, 44.9097, 30.283, 37.5764, 45.7083, 31.2975, 37.7697, 37.5586, 47.6983, 47.6744, 53.3667, 49.2167, 49.2167, 53.6, 6.467, 12.7, 39.3583, 45.1708, 47.3078, 43.0303, 49.1317, 54.2, 39.317, 61.2667, 48.533, 45.9, 43.65, 54.3008, 50.9844, 35.2164, 35.205, 41.8036, 42.25, 42.08, 41.6281, 58.6, 47.6367, 53.3, -26.2635, 10.89, 40.0458, 53.967, 31.933, -41.4506, 57.12, 51.33, 36.1422, 50.27, 39.71, 39.957, 41.867, 37.7686, 45.7181, 18.61, 49.86, 47.8867, 51.1844, 33.1211, 47.0378, 37.4667, 53.6492, 32.6167, 32.751, 51.883, 39.1078, 55.3167, 59.39, 59.38, 39.78, 38.8592, 51.2553, 35.9989, -33.83, -33.6825, -3.9, 38.2428, -14.91, 21.01, 60.2206, 60.2075, -42.933, 48.4333, 67.89, 31.398, 44.35, 51.4, 43.6156, 40.8314, 44.5078, 44.5078, 48.692, 55.9, 45.2689, 34.8242, 39.3831, 64.8464, 42.4153, 64.9111, 40.3689, 40.3667, 49.2167, 49.3833, 49.3833, 43.4036, 43.4075, 51.6667, -30.4, 35.624, 49.55, -31.6797, 33.1144, -34.1754, 35.1931, 32.0111, 44.1278, 30.4917, 33.5628, 39.5169, 45.7644, 79.9833, 37.8253, 39.6014, 48.9, 56.4833, 48.8978, 36.4164, 40.8097, 51.9978, 45.2172, 40.6864, 54.1356, 31.185, -52.4, 41.265, 41.2731, 37.9647, 38.0442, 42.5978, -29.183, 31.4625, 47.4581, 68.4908, 36.0717, 44.65, 61.4053, 40.0136, 47.9753, 47.9078, 25.8997, 31.445, 39.6381, 31.4156, 50.7417, 38.533, 21.3167, 21.3747, 42.2611, 43.35, 50.73, 33.2631, 48.7667, -32.2464, 44.8464, 54.1167, 52.9667, 12.07, 44.2914, 59.0267, 45.833, 57.2, 60.983, 22.35, 47.433, 64.9736, 64.8367, 64.8172, 64.8039, 64.8342, 40.0739, 47.6333, 44.6, 38.2736, 39.3478, 40.2703, 41.0211, 47.1906, 47.6153, 31.7322, 35.5417, 38.3806, 43.3428, 30.5467, 30.5486, 34.705, 39.4667, 40.6422, 43.6447, 39.2219, 36.2633, 56.0833, 35.9689, 59.533, 45.0203, 45.0319, -2.883, 43.62, 26.5581, 26.5547, 27.1353, 56.9, 33.4392, 38.9333, 65.11, 39.4572, 39.4167, 44.8578, 40.0803, -36.8708, 35.9808, 41.95, 35.6392, 44.2939, 37.6475, 41.65, 55.38, 60.6167, -27.05, 60.26, 36.8839, 32.03, 50.45, -65.4, -22.805, 27.05, 63.7233, 62.5422, 30.8264, 46.9253, 44.3092, 40.7342, 37.7922, 40.9667, 42.4669, 44.6333, 44.6889, 41.0222, 44.6697, 36.6897, 41.0, 37.7617, 36.7436, 40.2539, 37.3264, 45.3, 38.7667, 37.014, 57.92, 62.2, 62.2, -13.312, 56.7181, 28.9, 52.85, -3.864, 45.0364, 49.8667, 34.2661, 41.7, 33.6847, 42.8503, 36.0097, 36.1006, 36.2833, 35.0583, 34.9914, 35.15, 32.6319, 24.47, 29.755, -12.18, 53.3358, 47.8756, 47.27, 19.7, 19.5667, 34.6528, 36.9614, 31.05, 41.22, 46.1, 46.0931, 36.695, 51.15, 45.0331, 40.3667, 46.2919, 43.7, 43.7333, 52.8, 30.6669, 47.9461, 49.4833, -37.8775, 44.0494, 51.0167, 44.8325, -62.1, -77.9, 32.5339, 39.0875, 49.3333, 47.6456, 38.2306, 44.367, 60.4083, 49.15, 47.817, -21.442, 50.4292, 49.9817, -28.817, 42.2642, 43.6806, 56.3, 34.7331, 43.9158, 38.9664, 60.24, 49.8, 41.0136, 41.0461, 44.4183, -41.6428, 36.3164, 68.0007, 43.78, 44.1217, 47.4536, 48.6172, 45.09, 51.0833, 51.05, 45.0667, 45.4581, 42.7, 32.9903, 42.4722, 47.1292, 47.5167, 42.3833, 38.9361, 39.84, 62.1031, 42.5519, 34.5519, 31.7108, -18.1814, 39.8811, 35.8717, 49.7667, 36.3642, 40.7167, 39.2814, 35.1611, 35.145, 44.8142, 35.1442, 57.69, 25.1422, 40.9317, 44.0517, 46.4581, 29.6339, 62.73, 46.9328, 39.3375, 48.8, 46.8217, 62.8228, 36.2528, 43.6197, 40.5739, 40.6483, 54.8103, 35.4267, 45.8, -40.0911, 48.35, 43.0378, 42.9667, 42.0792, 54.6833, 54.7667, 54.6833, 60.6141, 59.06, 46.9728, 38.6786, 31.0425, -6.11, 38.7103, 33.0364, 38.2422, 43.8, 45.9336, 44.0042, 34.2933, 34.1853, 50.2392, 39.455, -19.88, 29.1333, -6.767, -27.583, 40.7831, 38.9128, 61.5831, 49.7328, 61.85, 51.3333, 48.2975, 33.985, 36.9278, 57.093, 23.87, 41.53, 49.7167, 62.1167, 43.0167, 30.74, 36.4328, 63.68, 43.7953, 43.77, 44.2781, 41.8183, -2.533, -33.3627, 61.4648, 50.15, 33.8228, 40.7131, 49.4833, 49.4833, 32.36, 44.0686, 52.4667, 39.0914, 44.6997, 43.2844, 35.2653, 35.3125, 45.5247, 45.3397, 47.3167, 47.3167, 47.9558, 44.2183, 46.0333, -26.213, -15.54, -14.93, -30.8453, -30.8389, 63.14, -32.1756, 46.2719, -3.767, 22.1833, 46.4833, 48.7783, 48.9081, 54.3667, -32.783, 48.3042, 35.1397, 58.7667, 58.7667, 27.5139, 42.8833, 48.65, 48.65, 66.2333, 66.25, 45.2969, 36.0117, 49.15, 60.2333, 60.2333, 49.7833, 56.65, 56.65, 56.65, 67.4, 58.8333, 58.8333, 44.1153, 61.3167, 62.7167, 62.7167, 61.1833, 43.425, 72.0167, 31.4, 53.7167, 44.55, 34.6667, 61.7667, 61.8667, 61.7667, 61.7667, 60.0, 60.0, 60.0167, 60.0333, 54.45, 56.2333, 38.8333, 58.3833, 66.5664, -71.317, 41.8367, 47.5636, 44.4139, 42.9736, 60.117, 33.6028, 35.8922, 42.4, 45.3333, 36.7939, -31.0867, 28.5033, 46.4856, 48.4583, 64.9592, 54.4, 67.5333, 41.0061, -20.55, 40.9842, -1.667, 24.91, 16.77, -21.217, 41.1183, 44.6481, 38.1847, 40.2986, 38.2022, -27.27, 50.1483, 31.0328, 35.1803, 39.5536, 41.4003, 42.3297, 40.0953, 38.6756, 29.8233, 42.05, 35.9417, 39.4689, -38.1481, 39.9425, -31.917, 59.7167, 54.0833, 35.8456, 34.3861, 30.2392, 38.2875, 37.5739, 40.4167, 39.4161, 45.8667, 45.9667, 45.9167, 45.9167, 37.5464, 42.4497, 64.08, 60.14, 36.7647, 38.4583, 36.9869, 36.7256, 40.3142, 38.8672, 28.9844, 42.2972, 27.8722, 48.2028, 48.0, 53.8292, 48.5, 45.05, 37.5422, 41.3331, 41.43, 43.4458, 41.3119, 33.8081, 38.5778, 39.3833, 47.2856, 45.33, 46.1333, 36.7672, 36.78, 48.4544, 36.9969, 48.5222, 47.6853, -41.9953, 43.975, 40.6558, 40.505, 34.64, 31.3894, 33.7333, 51.117, 63.8, 46.45, 49.8, 49.2, 43.517, 38.9039, 41.63, 63.19, 39.66, 38.2894, 71.0931, 39.1653, 36.7381, -20.03, 35.0667, 43.9906, 56.3, 55.23, 48.4983, 42.905, 32.7939, 32.35, 47.8306, 41.8714, 39.5092, 35.1333, 41.4453, 36.6667, 38.6803, 38.6586, 46.1358, 40.5764, 40.5756, 30.5997, 42.5836, 40.2842, 31.615, 27.5706, 43.0428, 31.1853, 31.1333, 47.2386, 65.0033, 26.1019, 26.1408, 26.1969, 26.0719, 37.7481, 37.2308, 40.6222, 30.8275, 44.41, 40.26, 26.585, 26.5361, 34.4406, 48.0119, 27.4419, 27.4981, 44.2444, 31.05, 61.2272, 39.05, 38.515, 37.8428, 35.3331, 49.5167, 31.8717, 30.9072, 30.9119, 34.4667, 34.3942, 36.5442, 33.0094, 35.2681, 41.0167, 40.9706, 32.9733, 32.8192, 32.8167, 32.7667, 32.8472, 32.8339, 46.05, -21.233, 48.1919, 27.33, 28.4444, 70.3167, 47.233, 35.216, 40.65, 32.7, 36.05, 33.583, 34.45, 50.55, 46.1581, 33.8719, 38.8472, 34.2614, 41.8978, 43.3497, -8.5, -8.517, 32.63, 32.683, 45.6, 61.2928, 48.2, 48.5458, 36.8, 26.2667, -14.317, 32.93, 46.983, 26.083, 54.367, -70.9, 33.88, -37.5679, 49.15, 46.6275, 15.417, 64.5033, 64.5056, 34.0219, 34.285, 34.422, 32.2261, 45.7833, 45.8333, 36.2967, 6.13, 6.1, 32.7744, 36.3661, 34.3006, 29.6814, 32.8369, 33.6461, 34.2719, 32.8347, 29.6919, 60.283, 45.5, 36.6633, 36.6542, -22.809, 1.817, 36.8061, 43.8833, 64.7408, 46.2222, 39.3817, 43.85, 40.9464, 40.7231, -12.028, 48.7, 39.9133, 36.1833, 29.4631, 38.8203, 67.14, 35.5144, 35.5283, 46.9728, 46.7, 41.1739, 29.3, 29.2733, 53.28, 63.7833, 48.7833, -1.87, -1.9, 35.7164, 40.7167, 48.95, 48.95, 48.9333, 52.75, 29.917, 37.333, 48.8667, 37.771, 42.1, 46.6, 44.0569, 34.85, 25.867, 16.248, 10.33, 23.05, -8.883, 52.517, 31.8667, 37.9931, 37.9272, -32.2433, 58.7167, 44.1011, 60.2064, 44.2203, 45.0317, 37.4, 58.88, 40.7242, 43.6167, 59.433, 30.383, -0.467, 47.483, 58.05, 35.6708, 38.28, 47.2333, 9.336, 41.3414, 41.3367, 47.6458, 47.6539, 51.1306, 48.9667, 31.617, 37.47, 35.8917, -25.0544, 48.8333, 48.7833, 41.8458, 38.665, 26.3, 35.2656, 35.1967, 44.1678, 36.85, 70.6333, 31.4144, 38.6825, 37.9458, 35.6878, -27.5456, 26.1, 40.35, 4.5, 60.72, 11.883, 24.75, 44.5564, 45.0333, 44.9072, 44.9081, 45.0133, 37.8683, -25.6167, -25.6258, 43.3144, 48.35, 39.25, 37.08, 58.7, 35.6306, 14.033, -43.1639, 60.5173, 49.983, -37.22, 48.95, 44.567, 50.95, -25.82, -25.42, 58.16, 13.5, 10.485, -34.92, -36.582, 25.8, -22.62, 29.096, 16.75, 25.767, -35.696, 41.4511, 40.5314, 56.57, 31.0383, 42.8767, 46.25, 23.55, 13.483, 39.2775, 41.4514, 43.5706, 44.42, 52.383, 36.8658, -7.139, 6.117, -34.0, 6.5, 6.8, 39.7053, 47.0792, 31.8967, -18.3039, 33.3169, 30.6836, -18.3, -18.2922, 38.9331, 38.6892, 43.6333, 45.1333, -34.017, 63.8375, 52.8167, 28.3667, 47.6014, 49.7833, -28.7953, 50.8819, 42.205, 42.2, 42.2056, 40.655, 55.7833, 43.2389, 35.0761, 51.7269, 49.7725, 45.0194, 45.0136, 34.0869, 38.6683, 30.152, -21.7, 32.4, 25.146, 35.1, 36.24, 45.432, 31.033, 35.208, 45.5394, 41.5697, 36.151, 49.4, 49.3833, 40.4731, 47.6017, 65.33, 50.6008, 35.4, 46.52, 29.75, 43.5381, 43.5606, 32.9481, 33.1975, 35.9886, 37.0147, 51.1, 48.5653, -25.03, -25.0341, -79.983, 56.3667, 56.35, 44.2644, 44.3394, 32.7464, 32.7017, 64.9767, 37.0031, 50.9664, 51.565, 38.2186, 50.6333, 50.6333, 50.6333, 50.6333, 46.3292, -31.4628, 37.5081, 46.1928, 40.917, 41.9117, -38.65, 42.4167, 16.9, 68.6333, 68.6333, 68.6333, 58.4561, 51.2333, 51.3, 36.065, 38.9539, 57.71, -23.8697, 40.8822, -23.8553, 43.9758, 38.8072, 45.4178, 47.03, 37.0014, 48.1925, 48.2138, 39.7358, 58.133, 47.8678, -12.2, 50.8833, 50.9333, 47.1156, 39.0753, 47.1064, 53.8333, 51.735, 49.65, 55.0989, 62.1086, 44.5358, 42.9403, 35.7269, 31.9881, 38.9689, 46.5186, 43.35, 43.3247, 54.79, 38.9339, 33.3217, 48.9833, 46.0089, 45.6583, 41.0097, 19.5189, 39.5181, 45.5261, 43.6833, 61.1, -28.95, 38.8833, 39.5039, 41.5631, -29.6953, -29.678, -29.7368, 32.2342, 30.2717, 46.14, 33.3767, 33.3503, 66.8167, 65.28, 43.0492, 53.7983, -33.7622, 77.72, 6.166, 15.483, -23.567, -22.5, -40.869, -48.783, 38.5778, 49.3167, 43.7667, 44.5667, 37.9, 45.8, 51.55, 52.4317, -16.667, -16.633, -15.91, 40.9567, 40.667, 53.6, 48.9761, 40.1064, 45.8081, 51.3, 36.8964, 50.1833, 37.7081, 35.3444, 51.6333, 31.4403, 42.4036, 44.7667, -27.939, 48.2, 64.4044, 48.1806, 49.7833, 47.2417, 28.6617, 49.5753, 36.417, 15.742, 52.4, 52.45, 23.03, 12.55, 29.5175, 47.95, 39.3669, 45.6214, 64.2381, 42.9164, 48.3056, 36.5992, 36.5914, 34.75, 43.9281, 51.5, -35.5147, -31.2994, -28.5211, 38.8, 53.3167, 42.095, 33.0736, 56.217, 26.75, 46.245, 42.8947, 40.7586, 8.15, 8.3, 45.8833, 45.8833, 36.909, 51.2, 52.983, 54.3, 51.1631, 46.067, 0.52, 52.75, 33.294, -33.3949, 41.5575, 41.5272, -32.0486, 44.55, 49.7667, 57.7158, 40.9394, 50.8, 58.4, 58.3942, 48.6606, 51.08, -40.35, -34.8085, -34.7495, 40.5092, 44.75, 13.983, 44.3539, 45.3014, -12.2741, 40.65, 42.5872, 42.5372, 46.2, 49.665, 42.7833, 43.5667, 48.4181, -29.7583, -29.6823, -29.6224, 43.3081, 33.1203, -33.283, 43.95, 59.6, 48.7903, -24.75, 53.5744, 53.3856, -37.295, 37.1367, 37.133, 37.1894, 45.3833, 43.4158, 48.25, 47.1, 55.1833, 31.3028, 36.0956, 35.7564, 34.2392, 37.8325, 36.0528, 35.9461, 37.2036, 30.4183, 48.9333, 49.0333, 47.9667, 47.9428, 47.9217, 43.0622, 40.9717, 40.9611, 39.0422, 39.1342, 39.1197, 40.2669, 40.185, 45.1775, 44.7167, 47.7472, 47.7517, 46.6667, 43.7047, 47.9711, 42.8939, 53.1833, 53.15, 47.2436, 43.0175, 30.7189, 45.9414, 60.7275, 43.35, 44.8136, 34.5356, 41.65, 27.23, 39.4608, 13.067, 45.7728, 40.6019, 35.1664, 42.4244, 40.4861, 36.7394, 48.2675, 34.2594, 32.9506, 67.0333, 40.7817, 47.4011, 44.1333, 49.8667, 42.6261, 47.0258, 39.2042, 40.2306, 38.4306, 36.4261, 48.9167, 43.4667, 43.8925, 37.4667, 45.9917, 46.8008, 44.6542, 38.3353, 38.2922, 39.7833, 46.3872, 38.2758, 47.0833, 47.0831, 41.061, 47.0, 42.2167, 39.0056, 38.3758, 36.6128, 40.7578, 45.6333, 50.4667, 50.5167, 47.4733, 47.4597, 36.7425, 37.7333, 45.4167, -62.217, 50.48, 41.5461, 40.4022, 37.1756, 35.2353, 39.6439, 36.1056, 39.7858, 41.2981, 42.5719, 43.0167, 45.6167, 41.1019, 32.7019, 32.7169, 36.0811, 37.2592, 37.6025, 39.3475, 36.0175, 31.79, 33.0286, 33.3592, 34.8231, 35.64, 45.4667, 43.2025, 33.4825, 34.8461, 37.2672, 33.1678, 45.4622, 33.0353, 34.85, 40.1, 34.1997, 38.8161, 34.2528, 44.9833, 34.2486, 33.4964, 44.4983, 44.5331, 44.4983, -37.2622, 40.3503, -16.7614, 54.5667, 46.55, 40.3833, 39.8789, 41.5167, 38.9906, 37.8331, 31.8931, 34.0219, 34.8831, 35.5206, 34.06, 43.2356, 54.0978, 54.25, 50.6258, 33.7608, 44.4167, -33.9029, 45.37, 36.5939, 41.1586, 49.0333, 44.4908, 44.5169, 54.5833, 65.9, 43.2333, -34.2487, 39.7378, 43.1833, 46.5667, 41.7203, 76.4167, 54.3381, 44.5175, 40.4864, 39.65, 53.6, -13.9747, -19.6, 49.1139, 42.76, 42.4078, 48.1997, 54.0731, 39.9364, 43.3833, 41.3511, 41.3275, 43.7186, 47.2667, 41.7139, -38.2241, 55.0167, 42.7467, 37.8444, 37.4078, 31.1964, -42.9831, -42.9858, 43.35, 50.2675, 61.28, 37.2822, 42.3647, 36.2631, -54.283, 40.4833, 20.72, 40.6608, 20.67, -9.4333, 31.925, -24.083, -33.01, 13.4836, 25.46, 21.0, 9.027, 26.85, 32.383, 24.07, 23.217, 19.9, -4.28, -16.73, -22.783, -23.43, 7.211, 14.5833, -10.817, 41.367, 64.22, 48.8, 43.4, 36.467, 43.55, 33.511, 49.4331, 64.9, 25.333, 35.583, 35.2133, 48.448, 23.4, 10.583, 26.583, 57.133, 30.4119, 30.3772, -32.3634, 62.1592, 46.4119, 42.3833, 60.3828, 40.78, 40.467, 31.9, 24.65, -35.0479, 48.1603, 65.0072, 65.01, -30.9537, -30.9841, -31.0261, 38.5253, 36.7044, 40.2092, 43.3833, 34.3344, 34.3347, 47.02, 18.2583, 31.412, 53.03, 32.17, 58.59, 17.9, 59.32, 60.15, 58.4111, 51.8889, 33.6267, 35.8489, 35.8161, 32.8819, 41.6686, 35.8517, 46.65, 42.7858, 37.4833, 36.6817, -30.2126, 59.3831, 59.3867, 59.3831, 47.667, 26.233, 52.95, -26.1831, 47.7, 39.6953, 35.2831, 38.98, 32.539, 64.1417, 64.1406, 48.5167, 44.367, 33.117, 40.533, 31.9175, 19.15, 29.8894, 38.6197, 52.1667, 50.367, 38.033, 25.6, 38.85, 49.5364, 42.8114, 39.7078, 42.9667, 46.5667, 34.246, 57.29, 49.9475, 55.3503, 32.8, 20.0, 27.433, 49.25, 43.5667, 41.45, 47.433, 65.0192, 59.2381, 59.4503, 59.2433, 60.7667, 36.1389, 36.77, 60.0977, 19.8211, 20.5803, 37.567, 41.817, 20.7603, 63.38, 52.4367, 42.9375, 34.2314, 44.4633, 15.317, 44.8772, 37.4725, 45.0333, 44.65, 44.8833, 44.8833, 41.567, 56.45, 51.5144, 29.4706, -75.45, 63.77, 64.27, 48.7714, 32.5111, -18.2292, 58.32, 68.7833, 68.7833, 68.7833, 56.67, 56.68, 56.68, 63.4453, 63.4667, 64.173, 35.117, 34.9, 34.717, 60.8181, 51.53, 60.8008, 6.117, 36.2572, 53.4806, 53.635, 53.4792, 32.5, 34.85, 60.9992, 61.0, 61.2164, 61.1828, 61.0539, 52.0831, 43.9664, 39.933, 42.817, 46.2553, 31.7044, 39.7425, 34.0967, 43.1667, -37.6486, 39.3644, -20.3658, -20.3531, 43.3, -37.825, 34.8872, 38.2794, 60.3008, 70.6805, 55.3, 30.5031, 39.6442, 35.585, 48.5281, 51.5608, 41.7675, 42.7561, 32.8442, 37.0225, 61.66, 42.15, -19.083, 50.1667, 20.7947, 63.6, 34.0678, 44.1186, 47.1686, 30.6153, 49.8333, 48.3, 49.2, 49.2667, 36.3158, 36.3189, 30.233, 59.8167, 59.7733, 59.8083, 59.8439, 38.3706, 35.2028, 33.65, 39.6667, 39.7233, 52.4656, 21.0333, 43.7053, 44.1167, 39.7706, 56.01, 48.9989, 44.25, 38.2553, 61.0167, 33.067, -18.0631, 65.8269, 65.8197, 34.7167, 34.7433, -17.917, 45.75, 40.2708, 43.8322, 47.4667, 50.3667, 48.783, 46.5, 45.7317, 37.7822, 39.0, 40.8667, 41.6403, 40.0892, 48.5353, 48.2383, 26.2028, 26.2281, 46.4328, 45.3192, 62.62, 62.6331, 43.1647, 47.4828, 46.35, 51.7333, 37.7408, 41.6331, 40.2817, 40.2172, 40.7514, 42.6858, 42.4247, 42.7433, 42.8003, 36.2667, 39.2189, 44.6819, 37.4833, 44.3628, 42.0333, -83.0, 59.07, 58.2506, 34.3697, 44.3744, 43.3311, 41.9381, 41.7361, 40.4356, 42.6167, 44.4333, 35.8783, 47.6856, 34.395, 36.3756, 48.7167, 34.3519, 34.3389, -43.2006, 43.6747, 45.35, 42.5483, -33.0789, 47.8083, 51.65, 32.9667, -5.062, 42.3806, 32.933, 31.7, 42.6422, 50.855, 40.6472, 29.7653, 36.3886, 44.7597, 40.6044, 71.9831, 32.6775, 44.4169, 50.433, 12.189, 35.2167, 31.2547, 31.2819, 46.7225, 61.0667, 62.05, 63.95, 49.1667, 40.9317, 68.3167, 6.917, 47.3889, 59.3494, 47.75, 40.3031, 34.7872, 42.7594, 48.5431, 48.5428, 50.2833, 50.2833, 19.4297, 43.0031, 53.2167, 50.6, -31.8846, 38.7817, 32.2842, 48.9667, 57.2667, 41.4764, 43.7139, 38.5172, 33.9228, 65.2017, 40.4925, 40.8, 40.5233, 61.9872, 33.7044, 40.55, 50.7839, 44.4503, 37.5194, 38.8586, 37.6542, 46.0261, -34.5194, 60.85, 60.8333, 60.8333, 60.65, 42.6828, 42.5119, 42.5972, 46.5172, 31.8328, 31.3625, 46.6311, 45.4486, 38.6175, 34.2333, 38.6003, 63.8675, -53.017, -53.1, 35.6842, 47.8667, 46.5917, 44.7053, 51.478, 49.0833, 38.9333, 27.3194, 34.3167, 40.4917, 34.3978, 34.3925, 44.8667, 44.6678, 40.175, 46.9075, 20.18, 24.7, 48.3758, 41.15, 62.42, 62.41, 49.35, 49.3667, 31.867, 33.6483, 44.9661, 37.55, 49.4, 48.6731, 49.1456, 49.9678, 52.4342, 61.1994, 51.0425, 69.6006, 54.6, -32.82, 34.6997, 33.2725, 34.5211, 36.5381, 46.7186, 46.6056, 54.1764, 67.4257, 37.9, 60.7528, 45.6453, 39.0717, 52.2478, 67.7414, 71.0633, 56.03, 60.2667, 60.1044, 59.9481, 60.2, 60.2, 60.1042, 60.1667, 60.1, 60.2028, 60.2531, 60.2, 60.2167, 29.867, 51.7833, 65.8078, 33.7381, 42.3208, 63.66, 63.65, 42.7742, 46.4833, 48.7, 45.0667, 49.0667, 52.683, 57.24, 34.73, 32.1808, 35.3297, 36.3481, 35.4442, 37.7558, 32.15, 53.8, 46.1667, 41.2647, 36.0942, 33.8128, -89.0, 33.2372, 45.3653, 39.38, 35.3331, 34.21, 50.4667, 50.9333, 34.8172, 44.3256, -19.9, 52.1278, 38.6656, 50.1, 46.665, 19.158, 48.6106, 45.8289, 45.8619, 45.8258, 37.7717, 36.3825, 34.8039, 48.08, -23.4422, 46.6667, 58.39, 69.5667, 50.1517, 41.1056, 50.867, 51.5903, -25.322, 51.8578, 43.5908, 52.3167, 37.9614, 46.0044, 46.0139, 40.95, 40.9528, 35.95, 23.8, -38.1355, 35.0, 25.8175, 47.3864, 47.3919, 40.9, 35.7425, 34.6189, 41.3214, 31.9844, 24.25, 26.933, 57.2178, 48.8833, 27.8189, 39.0733, 35.0567, 35.0836, 31.8814, 31.9156, 50.4667, 44.5222, 44.8444, 40.265, 53.45, 34.0903, 45.8333, 39.2083, 58.6167, 58.6167, 54.105, 35.9672, 43.9064, 41.3061, 55.4, 45.6833, 50.4833, 37.3147, 29.8286, -13.233, 37.5581, 35.283, -39.38, 62.6033, 50.7381, 44.3083, 53.45, 32.0161, 32.9203, 39.1611, 39.2333, 43.6542, 45.5139, 54.4517, 47.4389, 41.9353, 38.6644, -33.4915, 33.6183, 43.9325, 39.3617, 43.2994, 47.0375, 39.3756, 51.35, 19.645, 19.7192, 44.0167, 34.833, 8.367, 45.9919, 50.3683, -35.5194, 42.2269, 43.6408, 48.3478, 47.8992, 35.4842, 53.4, 33.367, 41.3072, 42.3, 34.4, 29.167, 33.317, 37.875, 32.217, 41.4, -9.8, 53.5333, -42.9, 41.5422, 34.9897, -42.8339, -42.8897, 34.9894, 32.7264, 32.7125, 42.8667, 46.783, 56.92, 37.5317, 31.3747, 51.1833, 66.7417, 51.9908, 50.3131, 51.535, 50.1364, 34.8358, 34.825, 50.3242, 66.2167, 44.4167, 63.08, 38.6844, 47.8017, 40.817, 54.3128, 40.9678, -42.717, 64.39, 66.7333, 55.733, 34.9094, 45.2236, 35.0567, 35.0708, 53.1833, 48.1989, 51.0, 40.4517, 49.321, 40.9667, 40.9167, 60.91, 36.6831, 43.6667, 54.1667, 42.7461, 42.7989, 49.1289, 43.6478, 55.4908, 42.3528, 36.8483, 36.8422, 34.6808, 60.9167, 32.85, 38.0517, 26.0283, 25.9989, 33.3258, 34.8219, 34.8222, 57.15, 70.7667, 63.595, 64.217, 63.8081, 47.05, 42.4897, -33.9795, 46.9914, 39.4578, 40.5453, 47.45, 51.7683, 47.8831, 50.7328, 15.333, 49.3292, 43.6058, 31.0767, 32.81, 59.7444, 59.7161, 59.7458, 59.6419, 25.4833, 25.5011, 52.47, 29.12, 14.283, 29.3364, 29.36, 42.7919, 43.9281, 44.85, 46.6833, -9.417, 52.333, 71.0106, 20.5089, 21.3239, 21.3153, 46.9833, 65.5858, 45.6847, 52.7489, 36.865, 58.1072, 57.8, 41.0478, 40.4664, 53.3908, 39.3667, 45.1125, 49.3667, 49.3667, 60.8983, 55.45, 76.5, -35.7151, -33.9306, 36.7167, 37.2992, 40.1592, 33.7092, 49.2833, 35.8103, 36.8492, 31.6753, 39.0308, 52.3331, 46.9667, 46.9728, 52.4, 55.86, 31.8456, 43.4406, 52.167, 50.1519, 64.296, 48.6142, 57.89, -10.5844, 52.3667, 42.4172, 32.9375, 44.9406, 38.6667, 40.6306, 41.3167, 39.9336, 35.7706, -36.6697, -36.6613, -33.8511, 38.52, 39.6678, 43.9481, -22.483, 67.0831, 37.133, 64.09, 35.895, 37.9969, 43.4378, 47.6, 34.5128, 34.29, 47.6156, 33.817, 44.3122, 44.3119, 44.3592, 46.2061, 46.1236, 29.6408, 40.5831, 61.1833, 36.5644, 33.8847, 54.4, 29.5189, 29.6167, 29.6381, 30.0675, 29.98, 29.4717, 29.7456, 29.6222, 48.017, 37.3858, 37.4664, 44.0122, 42.2292, 43.7828, 41.7175, 42.3167, 49.4833, 39.3533, 41.2167, 45.6, 42.9764, 48.9667, 41.9, 42.98, 40.417, 35.38, 30.13, -9.89, -9.5, 12.583, 34.48, 47.0667, 61.73, 38.1042, 42.7831, 52.8167, 52.8667, 52.8167, 52.8833, 52.8167, 42.25, 56.0333, 30.005, 58.63, 15.317, 21.15, 37.2594, 37.28, 42.0831, -20.8192, -20.8447, 34.0211, 37.1639, 39.1439, 20.38, 40.167, 26.65, 37.5, 26.9, 18.33, 26.42, 46.9, 36.9167, 51.417, 44.6856, 45.77, 53.7667, 51.717, 37.8117, 52.2667, 47.5333, 42.7197, 34.1164, -36.1039, 50.5664, 47.2336, 62.75, 62.75, 48.3425, 48.3847, 36.767, 56.39, 49.95, -36.2136, 39.7667, 36.5625, 45.05, 36.0028, 40.8556, 44.3564, 37.2275, 38.4014, 38.365, 45.9228, 38.3319, 30.7064, 36.07, 34.6439, 41.2403, 30.7439, 30.45, 45.35, 30.0628, 31.4, 52.0678, 47.8667, 27.15, 46.4625, 37.0153, 44.3636, 44.3981, 36.6992, 59.51, 51.1833, 43.34, 54.4767, 49.383, 38.09, 37.9311, 44.9089, 38.0653, 53.2, 43.1667, 64.8667, 41.665, 41.6686, -32.4419, 37.15, 55.9153, 25.383, 41.4, 43.7, 64.8292, 46.2942, 45.9353, 60.5956, -2.746, 47.1667, 0.61, 15.33, 4.4, 40.0378, 45.3333, -20.01, -28.65, 38.8764, 22.733, 23.233, 55.5831, 46.2447, 33.9336, 43.8383, 43.5139, 43.3456, 43.5317, 43.5164, 39.7033, 37.9333, 42.3942, 60.38, 43.3708, 61.89, 61.87, 54.367, 44.6881, 33.7572, 67.47, 69.3833, 69.3667, 37.0856, 53.467, -22.83, 18.35, -24.7167, -6.367, -25.733, 48.0428, 35.517, 33.65, 59.28, 60.05, 33.633, 43.05, 47.4333, 47.4167, -11.583, 47.3833, 50.2167, 48.4167, -46.5, 47.6531, -22.333, -17.05, 48.0667, -14.8, 47.8056, 59.7494, 67.25, 67.33, 42.6286, 42.1039, 26.5, 26.724, 10.7, 62.6667, 62.7692, 63.0319, 63.1417, 8.44, 69.2331, 48.0, 70.45, 40.6564, 37.9214, 26.4622, 44.3456, -5.533, 43.9, 32.8489, 40.5208, 32.8342, 1.617, 1.62, 24.667, 72.4, 52.4167, 68.9025, 68.6069, 69.1403, 69.5817, 69.5756, 68.8489, 68.8483, 68.4775, 68.4319, 68.4142, 69.0478, 69.5072, 69.55, 69.0714, 37.467, 37.0, -26.9, 36.7981, 37.2364, 39.0647, 42.5269, 34.6989, 39.45, 39.4833, 39.4167, 39.0667, 39.825, 39.7164, 40.5972, 41.6317, 41.3656, 45.3833, 49.6167, 49.0333, 39.9, 42.3, 35.6236, 50.55, 43.755, 39.8144, 66.0, 41.7417, 67.7, 33.7086, 22.717, 41.98, 37.8725, 14.75, 52.97, 49.2978, 49.3333, 19.817, -18.6494, 48.7156, 46.6825, 46.6667, 46.6667, -25.8428, 59.9308, 61.9167, -17.5249, 47.2667, 58.45, 43.7483, 46.67, 48.5614, 45.683, 59.555, 58.4667, 58.4667, 68.3, 68.3, 68.3167, 68.3167, -46.417, -29.7796, -29.7752, 57.4867, 28.8028, 35.6514, 53.85, 28.05, 19.567, 27.233, 37.9233, 42.9531, 41.6092, 41.6328, 42.5189, -17.717, 45.4478, 63.75, 63.75, 63.75, -20.3, -3.783, 64.52, -27.183, 34.633, 27.236, 20.68, -25.467, 55.633, 32.55, -11.3, 48.6167, 24.256, 43.8167, 52.2667, 44.3247, 46.4656, 34.1472, 45.8183, 45.7858, 49.9, 34.5853, 34.6, 53.35, 49.9833, 33.72, 32.8294, 18.4653, 47.6181, 47.6303, 78.7833, 78.8, 56.0994, 78.0667, 24.345, 38.433, 46.4911, 24.153, 54.9, -24.2591, 60.8167, -2.705, 36.573, 24.9178, 55.5333, 55.5333, 53.85, 44.4167, 44.4189, 44.4167, 44.8128, -27.167, 18.717, 46.3197, 47.5833, 40.7939, 30.6, 37.75, 40.9667, 40.9, 45.685, -11.11, -12.51, -3.127, -4.267, -17.85, -21.2, 47.24, 47.2256, 20.8, 42.44, 42.4492, -13.35, 70.4831, -13.81, -18.95, -18.41, 53.983, 34.7633, 38.4931, 52.717, -25.0, 42.217, 68.6081, 39.2833, -32.8831, -32.8999, 48.967, 60.6831, -22.317, 51.75, 52.2667, 69.1667, 34.15, 43.217, 34.683, 20.7, 16.467, 19.0, 28.3089, 56.8331, 49.183, 45.3667, 38.267, 38.433, -0.35, 34.2, 53.8242, 23.2, -12.6594, -30.25, 45.6275, 41.9828, 33.2206, 31.5253, 36.3967, 37.3781, 37.5908, 43.3194, 43.4867, 45.3681, 45.5833, 30.4844, 31.9622, 39.7133, 39.7347, 30.2875, 30.3361, 34.7967, 30.2333, 30.3333, 39.08, 35.7103, 35.3167, 37.5922, 35.6214, 32.3367, 32.3206, 35.5931, 44.05, 42.2667, 35.1858, 38.7533, 41.5, 66.3797, 39.5667, 41.55, 28.4, -11.183, -33.8878, 37.7778, 42.805, 19.083, -4.783, 29.317, 25.9, 26.817, 26.9, 44.35, -6.183, -6.1, 62.0167, 32.1103, 0.637, 19.55, 29.033, 56.683, 42.3031, -31.117, 36.4258, 39.9233, 41.4992, 46.7703, 42.11, 46.9258, 46.8844, 37.25, 61.8592, 61.8564, 61.8856, -15.783, 56.3, -32.1011, 44.2167, 69.0, 65.98, 70.93, 70.9331, -0.353, 57.37, 41.9797, 39.7358, 60.25, 62.167, 63.44, -33.7964, 39.783, 44.567, 40.8992, 61.71, 25.6333, 46.2, 43.883, 30.5228, 33.9047, 34.4758, 53.2333, 52.9333, 52.8667, 62.6, -17.91, -2.367, -2.567, 33.2544, 38.8417, 44.9381, 29.9592, 55.9167, 21.7, 32.7692, 36.7222, 42.0347, 36.4161, 36.1222, 38.5911, 38.5853, 42.9944, 42.4942, -0.9, 33.517, 56.65, 49.6667, 35.3886, 35.7783, 31.6783, 50.9267, 36.48, 50.7167, 30.2003, 40.3611, 38.0333, 36.7506, 34.7522, 42.7325, 42.7267, -32.4972, 37.5436, 39.1025, 49.2096, 31.7667, -35.083, -35.0936, -35.0936, -22.9494, 51.7967, 34.6578, 23.184, 41.2683, 31.5075, 21.705, 38.1964, 47.7669, 53.5319, -26.53, 21.917, 32.933, 27.117, 41.15, 22.62, 30.33, 37.033, 40.345, 36.795, 36.817, 7.667, 54.9167, -26.6644, 36.6, 29.3, 34.433, 44.617, 22.02, 41.03, 0.45, 24.907, 41.133, 29.0, 39.767, 25.72, 25.068, 45.283, -19.83, -7.1, -17.73, 20.867, 34.9831, 26.3, 62.6014, 39.6553, 39.3094, 49.85, 40.5333, -26.139, 5.453, 37.5669, 35.9717, 30.2861, 40.3375, 44.0839, 34.3592, 33.7775, 16.7333, 40.3161, 52.283, 44.4233, 44.5561, 36.6003, 38.0633, 25.1936, 38.2547, 59.333, 60.8139, 66.6297, 66.4989, 45.4731, 46.0167, 41.5033, 60.1781, 60.1244, 60.1542, 58.8653, -1.317, 33.5311, 44.6453, 35.8489, 35.8311, 31.4825, 30.8289, 39.7667, -33.97, 57.7514, 48.4333, 56.93, 48.5617, 37.4278, 37.1467, 47.3144, 44.65, 47.4819, 47.3258, 55.41, -12.022, 64.73, 32.6161, 62.1733, 9.87, 6.165, 34.1469, 56.6, -33.83, 61.8792, -19.007, 41.7861, -7.169, -33.633, -33.45, -17.963, 9.994, 4.867, 70.77, 46.6786, 46.65, 12.1, -21.767, -24.393, 40.9931, -15.467, 33.0758, 33.0764, -20.6672, -20.6569, 50.9117, 44.3833, 45.3497, 18.2264, 30.4453, 30.5108, 58.2989, 58.4003, 58.3567, 58.3869, 58.4058, 46.1333, 46.6, -34.546, 46.55, 41.3322, 41.0819, 26.86, 63.6842, 63.685, 57.333, -16.77, 42.4, -30.3081, 63.2317, 61.8456, 61.8919, 61.6777, 3.327, 44.0167, 46.95, 44.35, 62.4, 62.4019, 48.37, 45.1139, 37.7953, 53.2178, 60.3867, 48.05, 48.4089, 34.566, -14.45, 53.967, -33.9551, -33.9703, 43.8353, 11.138, 16.16, 37.967, 31.55, 51.1817, 50.0656, 20.5569, 37.6, 21.6792, 20.8997, -42.417, 20.8906, 19.7356, -3.645, -17.215, 35.67, 49.4253, 48.7708, -35.1, -35.1, 64.4256, 64.2831, 64.2814, 49.833, 0.28, 56.9667, 56.9739, 16.95, 50.4, 55.033, 44.65, 64.3306, 55.12, 37.0, 37.068, 42.2347, 29.033, 21.19, -27.7119, 63.327, -30.7847, 43.367, -7.05, 2.155, 54.7167, 48.1892, 48.3042, 51.73, 51.7344, 44.7281, 44.5897, 57.23, 50.5028, 56.68, 64.3267, 50.6278, 54.57, -14.2964, -14.2961, 40.6439, 49.0667, 51.05, 62.4831, 48.3, 53.8, 46.23, 48.65, 37.05, 50.6667, 50.7, 50.7, 50.7167, 50.8167, 16.4833, -13.8, 50.067, 56.85, 37.0286, -37.1169, 22.1297, 51.0333, 50.7167, 36.583, 14.017, 31.5, 67.15, 11.13, 11.133, 20.5222, 21.4233, 21.45, 67.1297, 41.6767, 37.5264, 37.2506, 30.05, 40.967, 68.65, 61.8381, 41.1381, 57.65, 38.6078, 38.7953, 34.433, 36.2133, 39.1208, 39.2972, 56.2, 66.0933, 14.147, 20.9625, 49.4167, 49.4, 49.4, 9.55, 54.2, 49.8, 10.917, 44.85, 39.5, 55.15, 45.6, 69.4667, 69.4633, 53.7, 40.6, 50.0, 59.0, 68.4419, 68.44, 59.05, 61.5, 62.3206, 18.55, 50.202, 58.52, 56.18, 48.6775, 49.0392, 59.35, 28.9069, -32.44, -35.09, -20.7097, 40.562, 38.8, 31.8353, 36.35, 38.7411, 62.1831, 51.633, -10.217, -17.817, 33.895, 39.467, 66.337, 37.9842, 62.3339, 49.9167, 45.4, 15.467, 51.2978, 39.49, 41.3667, -33.6856, -33.6886, -14.4437, 27.7, -33.7122, 50.23, 35.15, 47.8667, 32.5589, 62.4131, 63.12, 63.1203, 19.68, 54.8831, 68.9967, 69.0167, 67.1386, 35.5, 54.1167, 43.7144, 14.4, 14.482, 38.78, 56.32, 45.767, 55.7331, 35.8111, 39.3667, 40.7258, 19.4736, 46.9, 64.0, 12.572, 52.9981, 42.9389, 44.6661, 47.8967, 33.6667, -26.58, 63.9667, 57.75, 48.5583, 35.6872, -36.098, -36.1058, 44.4, 47.8667, -41.2833, 36.85, -31.6183, 42.25, 47.9422, 51.25, 47.9425, 47.5339, 53.7358, 67.9333, 49.95, 49.95, 49.8667, 49.95, 49.8667, 49.85, 43.9014, 56.0333, 46.1333, 64.95, 53.5667, 56.1, 55.25, 55.27, 66.5592, 66.7153, 65.8, 65.7831, 60.1714, 60.1531, 59.8692, 65.6725, 65.385, 41.8172, -31.0711, -31.077, 47.7242, 45.0, 64.9831, 60.6692, 60.3667, 60.5797, 60.5917, 43.25, -4.1, 12.85, 34.3, 36.76, 48.6692, 43.9072, 43.3606, 36.2253, 46.2111, 49.7833, 49.7833, 42.5608, 42.595, 45.1967, 47.4172, 37.9567, 40.7592, 36.9031, 40.6489, 46.4864, 45.0667, 31.0158, 34.6033, 40.3967, 51.25, 40.7275, -35.7236, 45.4, 49.2167, -2.767, 37.833, 30.25, 34.267, 31.8408, 35.7831, 51.9667, 30.0747, 34.5367, 52.8167, 60.27, 48.05, 46.75, 55.3567, 43.6842, 36.0333, 58.72, 41.2428, 44.4628, 39.4206, 36.15, 64.9156, 57.25, 57.25, 24.5667, 24.555, 24.5833, 19.7281, 26.45, 47.617, -36.2304, 28.65, 29.267, 25.45, 49.9667, 15.6, 26.167, 26.3, 25.667, 35.467, 46.633, 11.767, 49.433, 16.433, 37.5, 33.433, 38.55, 40.2167, 48.183, 27.833, 34.7558, 66.9767, 18.433, -16.1176, 50.82, 55.2339, 54.3756, 50.4, 16.63, -1.969, -4.883, 19.9697, 58.1, 21.6883, 21.6792, 0.923, 45.85, -5.036, 60.32, 53.8333, 31.1333, 60.95, 42.9503, -3.433, 52.6667, 52.85, 49.1833, 45.9667, 47.3714, 31.0658, 56.9, 39.3167, 46.445, 59.3, -33.1414, 41.2453, 45.3533, -28.8, 49.6333, -15.6547, 38.4833, 40.667, 37.115, 37.4536, 49.6667, 51.5167, 40.7167, 22.333, -26.5737, -26.5544, 35.8583, 35.8542, 59.367, 37.6361, 35.2578, -35.6569, -35.7114, 41.2097, 36.5194, 35.8575, 41.4903, 41.4911, 41.4783, 36.0086, 44.2167, 44.25, 36.1033, 33.6775, 27.5311, 42.05, 27.5, 42.7239, 40.8606, 41.7436, 16.901, 36.2069, 47.7981, 32.356, -39.88, 18.297, 24.958, 27.901, 42.05, 58.6794, -62.217, 44.0167, 57.6131, 57.649, 53.0, 37.9283, 35.1967, 35.2975, 47.05, 50.2, 32.7247, 30.4333, 57.7667, 69.733, 69.7255, 63.7833, 59.92, 48.15, 40.2058, 40.0972, 58.958, 44.6122, 58.6, 48.517, 45.083, 59.33, 39.15, -33.98, 41.6167, 67.8497, 67.83, 43.8667, 39.6619, 31.495, 60.7806, 47.02, 63.58, 43.9, 28.2764, -0.1, 13.067, 25.933, 1.016, 44.933, 43.4667, 32.7128, 54.0167, 54.05, 54.05, 58.1914, 67.9908, 67.6517, 67.6956, 67.7842, 67.9992, 68.0167, 68.1692, 68.2294, 31.96, 49.75, 38.7658, 38.8867, -6.083, 67.7317, 50.3667, 59.9708, 58.2003, 64.16, 62.1, 70.68, 42.2839, 46.65, 55.7331, 41.5786, 42.1333, 42.1469, 42.9533, 62.1472, 55.58, 51.9833, 50.217, 50.8469, 51.1689, 53.9603, 51.5567, 51.7625, 53.5, 48.1, 51.5203, 56.3167, 50.4333, 64.45, 48.2906, 59.87, 59.87, 62.53, 62.5, 43.25, 52.25, 43.5, -29.78, 49.0275, 54.8, 46.3117, 40.9025, 41.3247, 38.8619, 35.8819, 35.8181, 41.3053, 34.7, 49.15, 64.1942, 50.3381, 49.467, 45.6, 33.567, 54.3, 44.4, 37.5142, 57.7511, 57.8047, 55.6831, 55.617, 33.2742, 35.667, -75.0, 60.45, 64.75, 40.7, 59.5056, 61.2706, 61.2528, 63.8442, 63.8831, 40.4583, -4.717, 48.75, 53.283, 51.0831, 55.083, 12.883, 69.53, 57.75, 48.606, 58.69, 50.8658, 50.9628, 37.5333, 49.85, 55.1, 48.533, 58.3, 55.3, 69.6167, 48.433, 54.333, 46.3, 50.533, 59.6244, 59.6631, 59.713, 38.9119, 51.233, 49.6, 47.6781, 37.979, 52.15, 42.95, 37.7689, -28.2, 38.5086, 46.0714, 50.8833, 50.6333, 43.2831, 51.2675, 60.35, 9.387, 64.75, 41.75, 47.333, 7.3333, 62.9344, 62.8831, 63.84, 48.8308, 50.0, 33.0583, 49.574, 48.6667, 63.45, 5.3544, 26.133, 56.84, 49.159, 13.167, 57.7331, 53.35, 54.2, -3.4, 25.15, 5.937, 51.7528, 60.2864, 60.385, 60.4542, 60.3753, 60.5, 61.2331, 5.605, 66.8667, 46.7667, -20.567, 12.383, 60.6964, 60.8903, 67.5697, -15.4818, 22.3167, 66.0083, 11.25, 56.35, 7.5333, 9.467, 13.1625, 47.4333, 44.0331, 62.0346, 43.7167, 63.05, 63.16, 46.133, 53.0, 43.6, 45.03, 49.383, 56.0331, 53.967, 67.37, 54.4, 56.65, 40.03, 57.133, 50.37, 46.53, 46.3792, 50.1, 40.0575, 48.05, 55.85, 62.8, 45.3556, 56.33, 55.92, 63.1092, 62.2575, 62.2031, 59.31, 42.2, 47.9, 64.51, 50.2533, -27.63, 58.61, 48.4842, -26.1, 43.5667, 63.7169, 46.3, 48.03, 51.1617, 53.6956, 53.9717, 51.8553, 50.8503, 49.5192, 48.9364, 47.8069, 35.167, 3.6333, 2.746, 3.1167, 40.72, 3.62, 3.8, 48.881, 1.483, 58.983, 24.22, 47.58, 68.5333, 68.5333, 67.8167, 67.8167, 64.2975, 64.1189, -35.1712, 53.9031, 20.7583, 20.7008, -25.8428, 36.15, 32.817, 6.715, 26.333, 58.1, 58.717, 60.3, 60.2581, 49.4289, 59.517, 43.083, 25.017, 25.1, 35.9242, -15.7814, 49.2806, 63.025, 62.7983, 62.8919, -10.167, -10.2, 70.3289, 49.633, 54.367, 41.717, 49.933, 41.65, 34.144, 58.233, 55.4667, 37.8167, 45.25, -15.4875, 15.8, 51.7667, -27.47, 7.467, 61.9489, 42.95, 55.1, 39.983, 53.2167, 60.7219, 39.417, 42.2, 42.9, 58.1, 55.2833, 66.3681, 65.995, 66.1653, 58.967, 29.222, 53.3, 60.3933, 66.89, 66.9597, 61.4648, 63.4882, 8.7333, 8.7167, 35.1333, -32.2258, -36.335, -33.1332, 36.7764, 36.2667, 58.08, 35.017, 49.5667, 52.933, 47.333, 56.6, 51.72, 44.85, 51.9, 42.35, 48.2994, 45.3, 45.8167, 47.5667, 53.9167, 58.95, 27.167, -34.133, -7.25, -1.617, 45.65, 52.45, 44.6253, 41.0186, -33.73, 46.8167, 46.8667, 51.5333, 48.8, 48.2167, 51.8667, 48.2833, 54.7667, 54.7667, 63.1333, 45.6, 46.1833, 48.4167, 40.8072, -33.48, 45.7406, 40.7392, 48.25, -28.55, 45.465, -24.1116, -30.88, 30.2192, 36.5192, 30.0917, 32.9069, 34.6639, 40.2964, 40.4122, 30.205, 36.5411, -27.81, 40.0633, 33.7997, -19.65, -28.21, 44.55, -50.333, 45.84, 45.5528, 41.6475, 35.0464, 26.2283, 33.5453, -34.456, 36.3842, 39.4689, 31.55, 48.3656, 39.3, 39.2833, 60.9617, 49.35, -33.2, 67.76, -18.3325, 38.7667, 38.7303, 29.2694, 66.28, -18.233, 43.7022, 40.6, 40.75, 40.0333, 27.9914, 43.5492, 38.2044, 34.16, -37.8692, 41.825, 44.5994, 42.2414, 44.5833, 41.5269, 39.7489, 45.3333, 33.0642, 28.1042, 49.0667, 34.2467, 30.0206, -33.2833, 30.125, 38.0247, 30.1853, 33.8642, 44.3089, 48.8333, 44.1833, -37.2313, 39.9333, 35.2928, 32.8242, 42.5936, 38.9075, 38.9772, -33.1006, -33.1006, 34.5031, 40.4167, 33.7542, -42.0067, 51.4333, 44.7167, 36.9825, 43.0803, 63.8933, 43.4483, 44.2489, 32.8067, 44.0644, 38.4931, 39.3183, -42.1178, 62.4528, 32.8522, 35.0967, -34.0398, 42.4308, 43.9981, 44.5619, 37.9411, 41.5167, -16.417, 38.0936, 37.4933, 38.07, -0.704, -21.94, 44.2394, 40.3597, 34.2044, -35.3778, -35.3288, 32.7228, 38.9, 38.9, 61.15, 40.7442, 40.6333, 40.7178, 40.6233, 40.6331, 18.283, 31.0717, 20.8733, 20.7894, 20.8292, 22.567, 39.7156, 44.4911, 40.05, 42.8278, 40.1203, 36.0828, 39.7556, 34.7411, -31.0164, 43.1828, 36.15, 47.13, 42.6753, 42.8153, 40.1167, 48.0833, 47.3767, 58.74, 57.67, 58.34, 34.3086, 54.25, 54.25, 51.133, 48.7622, -32.97, 50.9, -33.28, 52.3667, 58.22, 37.0833, 42.9242, 47.83, 50.4, 29.8097, 31.58, 21.833, 38.75, 63.17, 52.2, 42.7803, 42.4486, 28.9517, 36.05, 22.033, 18.183, 45.5119, 22.5, 43.0581, 43.0608, 41.4233, 41.6117, 61.1978, 61.0392, 61.0439, 61.0569, 45.3833, 42.4333, 41.3408, 41.3119, -8.267, 27.5683, 47.8742, 39.65, 34.8831, 38.1817, 38.1922, -15.5748, 61.1, 38.4833, -27.1, 40.3442, 47.0736, 42.7667, 51.4167, 18.433, 38.0636, -34.7, 16.7, 32.6136, -36.067, 33.2889, 16.75, 4.55, 20.91, -24.7, 27.9225, 35.6564, 37.8339, 36.1667, 36.2117, 36.0719, 35.6542, 36.25, 36.0469, 35.5678, 48.3, 67.26, 35.53, 49.5792, 40.1417, 35.1692, 55.617, -41.5492, -41.5397, -41.4194, 48.2181, 35.4783, 31.6756, 40.9017, 39.0847, 41.7833, 40.2003, 44.9231, 40.1692, 34.4989, 46.3333, 34.7508, 34.7917, 45.3681, 53.4117, 46.8167, 41.7019, 43.93, 42.6194, 37.3917, 33.3369, -28.6133, -37.8565, 33.0353, 52.421, 38.9583, 42.6992, 35.2436, 36.7711, 44.7583, 38.7642, 39.0083, 42.7172, 42.4167, 34.6097, 34.5583, -66.733, 64.64, 39.7022, 41.53, 54.2331, 61.6267, 48.3, 42.2644, 26.7458, 25.41, 27.55, 10.517, 47.0831, 0.017, 43.8789, 43.8225, 20.73, -34.45, 45.3167, 45.2833, 53.75, 53.75, 53.6333, 29.9175, 41.6378, 33.0536, 29.9075, 40.5839, 37.3053, 26.2422, 37.9825, 37.8639, 37.7511, 38.0494, 46.3667, 47.6667, 32.7675, 15.453, 46.3547, 28.6331, 20.15, 35.3811, 24.1667, 24.167, 20.37, -34.972, 47.35, -22.1, -29.383, 46.15, 55.15, 55.15, 38.3014, 49.9167, -29.917, -29.9, 31.98, 47.4, 47.4167, 17.9, 16.75, 37.2008, 33.1728, 44.1014, 44.3544, 50.9167, 55.4167, 44.7, 44.6831, 39.2292, 36.4194, -22.2406, 39.3256, 47.5586, 38.2667, 38.3333, 54.75, 36.2292, 36.9028, 44.5328, 37.685, 40.3333, 36.2981, 43.6264, 48.1864, 54.8, 51.1231, 47.2467, 52.55, 48.2881, 53.8, 54.292, 31.7633, 28.8208, 31.1417, 36.8644, 38.9597, 38.8803, 53.2231, 37.9567, 13.133, 50.4831, 48.7664, -30.5963, 51.4, -27.8386, 51.317, 51.4358, 37.5108, 44.85, 65.0975, 68.155, 60.73, 29.7856, 51.783, 52.4569, 44.9833, 46.3, 59.9592, 45.9397, 43.3597, 36.3817, 37.3789, 36.3333, -12.567, 46.6, 38.833, -69.5, 46.3619, 51.1344, 48.5406, 45.3667, 35.915, 35.7875, 35.84, 54.2206, 60.72, 53.1025, 47.8606, 34.1742, 45.7192, 41.5167, -28.8836, -28.8789, 40.7244, 0.459, 42.5889, 38.4794, 34.0456, 54.883, 25.533, 47.1, 52.0, 40.4897, 60.1331, 46.4, 62.2317, 49.4667, 42.9831, 50.562, 56.76, 64.9, 51.8331, 49.1167, 45.3, -23.85, 48.35, 49.6333, 49.6333, 49.6333, 49.7, 49.6833, -4.1, 39.433, -82.517, 56.373, 53.8631, 54.5003, 59.6167, 39.5608, 33.55, -23.08, 38.7756, 40.9475, 37.8564, 35.4139, 35.3817, 36.1325, 44.1, 46.3747, 40.5864, 46.8847, 47.0492, 33.3614, 44.2, 30.4064, 33.1228, 33.8706, 35.6503, 35.8458, 37.7767, 39.1828, 38.0408, 35.7922, 43.2631, 41.5747, 14.591, 47.9467, 42.7817, 16.27, 29.667, 28.42, 30.68, 24.37, 24.78, -41.8997, -41.8983, 48.4036, 47.9733, 48.41, 48.3833, 37.0222, 50.767, 10.6, 41.8017, 31.1631, 0.38, -13.3, 51.9256, -26.133, 50.933, 50.6892, 37.5544, 45.5, 53.85, 46.0725, 63.3206, 46.83, 56.4831, 49.367, 42.1231, 41.3667, -29.431, 44.3167, 21.9742, 21.9839, 26.833, 61.85, 50.6833, 50.6667, 66.4897, -13.789, 40.8667, 37.3833, 44.6331, 34.6667, 40.7083, 40.7247, -75.42, 50.4128, 46.96, 34.1789, 37.9864, 39.9167, 10.0, 39.1894, 24.86, 23.95, 39.0878, 40.1514, 35.4606, 40.6953, 39.0294, 40.8483, 38.8825, 46.9681, 40.8508, 46.9558, 44.3753, -78.467, 53.95, 36.2858, 47.4083, 61.1333, 52.2094, 49.7128, 51.6167, 33.0, 35.6047, 42.8133, 57.9831, -25.48, 43.983, 39.7556, 36.3042, 36.2033, 47.2, 34.8261, 44.3333, 47.0022, 41.6458, 47.1083, 52.517, 42.1297, 26.233, 15.38, 45.6333, -19.4, 40.77, 41.717, 58.4, 39.8569, 26.535, 46.2667, 54.05, 43.6, 48.23, 48.297, 49.45, 62.6594, 62.5456, 51.6344, 36.2358, 50.85, 51.15, 34.4978, 38.7167, 28.8728, 46.4444, 46.1, 37.5, 28.45, 41.8128, -28.8343, -28.807, -28.7853, 58.11, 49.0333, 55.0125, 30.0, 45.1278, 33.4992, -33.4901, 53.95, 33.9378, 48.3681, 48.3894, 44.0911, 41.4, 45.5697, 66.0914, 47.8139, 67.1833, 44.5, 38.9692, 40.8858, 45.9656, 43.0603, 45.9514, 37.4833, 42.7081, 44.6167, 34.1942, 56.3831, 49.35, 34.8364, 34.9167, 34.7272, 46.0378, 39.7267, 41.8264, 41.0667, 46.7511, 34.2936, 42.2472, 39.2444, 43.5, 47.85, 24.35, 65.4236, 65.5225, 37.6922, 37.7119, 37.6928, -33.9272, 69.6, 44.1333, 44.0833, 30.2889, 32.5811, -17.817, 45.4956, 30.7394, 45.6983, 36.3775, 43.7392, 43.55, 31.43, 37.8, 59.35, 46.0656, 46.22, 56.83, 56.08, 56.85, 62.55, 30.7425, 41.6256, 41.6203, 53.3167, 53.3167, 38.4058, 38.4333, 35.7522, 47.0431, 46.1725, -12.785, 37.3908, 41.1311, 36.6044, 41.1489, 45.7475, 41.2664, 45.3786, 41.1531, 38.1061, 43.3217, 3.117, 17.45, 37.8717, 39.5328, 41.6381, 40.7478, 41.6661, 41.7872, -27.6839, 50.5, 45.8814, 41.7344, 41.7456, 37.3517, 42.4519, 47.6167, 45.51, 60.2439, 50.5633, 50.0114, -4.033, 61.1217, 54.733, 46.6333, 43.82, 47.9361, 6.17, 57.89, 49.2, 34.6539, 43.0333, 37.0872, 43.0333, 51.15, 43.0333, 38.1947, 39.8972, -23.383, -23.333, 37.9, 45.2833, 46.2667, 43.2119, -36.6722, 37.62, 46.7492, 40.1589, -23.4372, -23.4372, 68.9, 50.2667, 43.46, 47.269, 46.1506, 32.5183, 32.3847, 32.35, 34.0103, 22.367, 51.43, 33.8117, 46.3675, 40.2578, 39.7506, 44.7136, 45.2219, 37.5167, 41.5386, 42.5667, 45.9647, 46.5, 40.7875, 44.7833, 37.4833, 52.7231, 47.45, -37.2822, 33.3667, 35.0097, 40.8333, 43.9144, 43.1667, 54.05, 14.8, 50.0364, 32.3094, -31.542, 26.017, 34.0347, 58.433, -25.4, -32.3322, 48.6333, 38.7708, 66.0425, 42.6722, 40.8167, 46.35, 34.0178, 47.0833, 38.9453, 43.8333, 35.8644, 35.8583, 37.3581, 34.0511, 33.9381, 37.0564, 37.0547, 36.9897, 8.824, 37.2319, 37.2028, 34.7675, -2.05, 34.5358, 25.7, 45.081, 54.4389, 38.0422, 45.9, 46.2667, 33.1356, 33.0125, 38.2281, 32.975, 38.1811, 38.115, 40.8333, 41.2808, 43.179, 48.65, -26.0, 64.36, 43.1631, 36.9692, 40.435, 39.6667, 44.8375, 40.1906, 40.0681, 39.9, 60.2744, 68.0, 41.8553, 41.2647, 42.6408, 46.1442, 41.9992, 46.5642, 44.9783, 29.3731, 45.5, 52.4832, 44.0828, 43.7925, -41.0556, -41.0567, -16.3842, 26.4986, -34.439, 44.55, 48.9, 30.3644, 29.5814, 31.1783, 19.897, 51.9281, 33.6542, 53.805, 50.02, 46.8833, -11.591, 48.3167, 52.967, -18.5203, 45.5733, 26.75, 50.95, 43.5875, 45.2833, 54.3, 51.7706, 43.9067, 45.785, 51.25, 51.867, 31.4269, 31.2361, 31.3131, 46.0, 48.5667, -15.52, 43.1153, 61.7042, 38.2544, 49.652, 36.4192, 55.0, 5.5167, 65.62, 65.58, 65.5431, 29.6756, 30.2503, 34.6269, 34.6081, 8.417, 50.2333, 32.0306, 33.8225, -41.1492, 51.8167, 38.8678, 55.7, 8.617, 62.64, 25.43, 65.7667, 65.75, 44.42, 35.85, 38.6661, 34.05, 32.07, 45.5333, 42.9367, 42.7506, 62.4167, 47.6981, 43.6658, 49.63, 47.8, 24.53, 47.0331, 28.88, -3.41, 29.58, 49.8167, 36.2303, 64.55, 48.2, 42.8294, 35.2983, 37.3817, 37.3208, 44.5167, 51.505, 59.9087, 58.6333, 56.05, 56.85, 56.8667, 56.8667, 56.85, 55.05, 43.2117, 40.0833, 52.2117, 45.6667, 39.1258, 49.55, 29.2358, 34.2339, 37.1431, 50.2167, 50.2167, 32.3667, 46.7, 35.667, 30.167, 62.9781, 63.1431, 47.3, 9.6053, 50.9053, -43.6578, 46.0667, 22.2, 0.051, -5.117, 22.15, 27.85, 53.0167, -9.66, -9.517, 59.933, -21.667, 31.18, 16.2, 55.433, -21.1706, 43.9181, -21.1172, 55.3, 45.85, 63.25, 46.3, 33.1544, 32.6847, -54.499, 10.308, 45.95, -5.217, 45.5, 51.5, 46.7781, 29.2, 36.9539, 36.9878, 34.0919, 34.0356, 30.4653, 41.8292, 44.7983, 30.9392, 37.3475, 43.9906, 38.1025, 45.1, 43.1406, 44.5833, 38.7369, 45.0025, 34.917, 44.6167, 44.6633, 13.0, 40.8508, 40.4117, 40.4667, 40.3778, 40.3, 40.4831, 40.7, 39.4, 40.4633, 36.4, 40.5603, 19.3, 18.167, 16.667, 52.6667, -25.798, -13.4, 59.55, 12.983, 53.467, -13.333, 52.1031, 34.82, 42.1833, 51.3167, 53.35, 33.295, 45.2667, 43.3181, 17.9722, 47.9, 42.9667, -15.7167, -19.833, -4.6, 47.3172, 39.9, 11.85, 5.874, 13.23, 13.233, -18.05, 49.9681, 60.5181, 51.1833, 48.2175, -34.3745, -32.7427, 35.27, 35.5, 35.45, -2.5, 44.617, 57.783, 7.0833, 21.4783, 22.1306, 21.2033, 40.52, 20.6419, -2.28, 21.483, 21.5, 70.7006, 55.0833, 0.57, -0.02, 0.0, 57.8, 57.1, 21.5286, 21.5428, 31.267, 7.704, 55.25, 65.19, 3.755, 2.263, 42.1492, 36.6667, 48.5667, 44.7181, -35.494, 38.35, 38.43, 65.15, 36.5994, 4.2, -26.7528, 58.07, 54.1, 43.9794, 43.265, 34.0583, 50.1667, 5.227, 57.3917, 57.3844, -3.229, -3.2167, 55.3717, 72.3794, 32.8567, 9.55, 46.0, -37.5976, 12.048, 48.7781, 37.8172, 67.17, -33.467, 55.5714, 47.5167, 44.8419, 47.7828, 48.3589, 47.8417, 42.2917, 48.3939, 60.6814, 60.68, 34.3947, 52.1117, 58.317, 57.82, 37.1317, 39.6833, 37.6478, 36.4947, 7.38, 7.4, 1.5, 12.141, -21.2, 37.1742, -3.133, 42.1508, 53.354, 35.5158, 42.4733, 37.15, 42.9333, 37.4167, 37.335, 42.53, 21.983, 45.767, 58.0475, 46.8128, 3.933, 50.1028, 43.2625, -29.15, -19.7419, -32.5219, -32.5211, -31.82, -36.8886, 12.917, -23.133, 38.25, 10.37, -13.7379, 10.367, -33.2894, 34.8911, 34.8358, 49.7, 39.1972, 39.1028, 39.1353, -5.811, 65.4, 14.55, 14.5, -12.0482, -12.0569, 44.2114, 45.9511, 44.0869, 46.2667, -34.2508, 39.7889, 44.1542, 62.9861, 49.1, 64.9989, 36.1747, 49.473, 33.6989, 56.95, 39.5436, 56.9667, 47.7028, 53.45, 21.3331, 50.65, 52.55, 32.0389, 37.1089, 40.7667, 41.7569, 40.8203, 51.35, 35.9172, 39.2583, 45.15, 60.5783, 61.5831, -74.95, 31.5769, 49.3667, 48.8, 19.05, 40.5411, 40.54, -26.533, 44.0367, 46.1833, 42.1619, 44.855, 49.9, 40.7964, 50.0, 49.2167, -25.921, -41.25, 42.0494, -5.369, 10.25, 10.3, 13.47, 30.1925, 24.7258, 40.533, -23.15, 42.5008, -21.1756, -21.1756, -24.98, 37.3036, -77.4167, 47.6308, 33.9, -32.684, 25.9492, 39.8253, -21.1906, -17.0672, 42.2636, 44.0575, 30.3125, 46.3333, 68.8, -30.85, 52.65, 34.7392, 30.8356, 47.77, -22.31, -42.6619, 18.251, 46.5, -22.92, 33.1139, -25.5, 50.65, 58.71, 33.8761, 39.4086, 45.4, 43.4417, 56.217, -19.4, -79.95, 40.433, 45.0983, -23.4, 34.1653, 43.4206, 40.58, 40.6167, 35.7072, 44.5833, 44.6125, -46.883, 32.4714, 31.2114, 40.6161, 38.3778, 3.633, 37.5042, 37.5128, -22.017, 47.1, 53.45, 56.46, 44.2667, 43.7028, 38.6833, 38.4917, 52.7017, 64.6831, 54.175, 66.73, -27.3002, 39.15, 31.3336, 18.133, 53.3242, -23.15, -26.6006, 44.3, 46.5311, 46.5458, 50.0167, 31.7, -40.9089, -29.6587, -29.6481, 29.7853, 69.72, 2.317, 41.3286, 43.305, 32.5403, 35.8036, 35.9156, 39.1342, 44.4706, 42.0647, 42.1128, 36.1167, 37.3339, 44.6411, 44.6381, 39.6211, 43.1803, 38.0131, 50.7344, 39.4658, 39.4019, 46.5, 39.4039, 36.7056, -37.8, 36.3444, 58.55, 52.3, 52.3, -37.056, -25.5161, 49.8333, 38.4486, 39.1458, 39.8383, 40.2411, 49.6333, 39.1019, 40.3458, -38.0, -37.933, -2.55, 12.37, 35.3, 35.6, 45.75, 58.09, 36.267, 40.533, 49.1333, 49.1333, 1.683, 20.667, 54.333, 30.7478, 41.2211, 43.1631, 40.1642, 43.1544, 44.6719, 30.7358, 42.9892, 42.6681, 44.9358, 54.0, 54.0333, 46.2, -20.067, 47.167, -5.8, 34.0044, 34.1333, 48.9, 49.75, 28.1228, 28.6836, 15.6167, 41.3914, 15.65, 61.5664, -8.75, 4.813, 44.1747, 39.0228, 38.8722, 28.0372, 21.317, 35.45, 36.25, 33.85, 63.32, 39.4725, 39.4781, -19.133, -10.25, 9.749, -19.983, 19.5353, 44.8933, 43.79, 33.9167, -67.6, 47.8214, 36.5697, 32.3833, 40.5158, -42.7567, 50.3258, 36.7581, 42.4292, 48.85, 30.1064, 7.565, 63.6167, 60.8833, 30.4, 38.6869, -3.42, -3.417, 47.4989, 61.3208, 48.6008, 51.63, 29.0, 23.1881, 43.1708, 41.8, -0.62, -8.933, 34.8822, 26.1917, 26.1839, -16.4423, 53.4167, 44.8889, 31.1331, 42.6519, 61.4181, 35.6022, 33.0667, 33.1533, -11.0468, 39.1267, 34.7056, 31.1828, 26.565, 40.2064, 39.6339, 39.6, 50.7167, 41.9953, 33.4522, 29.7, 44.3769, 35.3364, 34.3097, 39.4136, 62.9575, 31.435, 39.3528, 40.0167, 52.2667, 49.0667, 52.5833, 40.3392, 44.2, 44.1792, 63.7175, 63.6492, 33.1903, 33.1803, 33.0, 38.0844, 52.3833, 52.5333, 51.05, 45.1947, -77.8833, 45.9406, 45.9306, 38.3772, 63.6, 32.0097, 37.99, 45.5, 44.8872, 41.2514, 39.1333, 47.4825, 39.6522, 40.2156, 35.1447, 42.4106, 39.7844, 42.3092, 47.5808, 45.8383, 45.8133, 35.2361, 46.3911, 47.1358, 35.6722, 45.2214, 34.1142, 38.3483, 39.2814, 45.5114, 37.285, 47.2667, 44.4333, 54.1333, 54.1333, 36.0183, 31.4664, 41.6333, 41.1431, 48.1197, 34.3906, 33.5714, 38.4617, 45.7, 33.536, 42.4422, 37.8333, 3.8, 36.283, 45.1308, 36.7925, 42.3811, 41.8969, 40.3761, 50.0167, 50.0167, 50.0333, 48.4828, 48.49, 37.2839, 34.7292, 29.81, -32.2208, 43.576, 46.9161, 46.8947, 53.35, 62.917, -26.6136, 35.505, 40.0489, 52.3425, 71.0331, 35.5208, 50.5625, 46.73, 24.3, 33.8833, -37.6655, 28.1011, -37.8075, 28.1136, 52.95, 52.8167, 35.2778, 49.2833, 46.833, 46.3689, 45.155, 45.45, -32.366, -32.35, 34.4278, 45.6775, 59.23, 46.6011, 51.1331, -42.4928, 38.5039, 46.1047, 34.7261, 35.3447, 40.4575, 35.0564, 35.1297, 34.5731, 1.533, 15.867, 31.607, 30.9044, 50.3667, 39.8075, -32.833, -32.883, 9.817, 34.817, 21.5, 24.2, 23.383, -32.3937, -35.6902, 43.2358, 44.8742, 39.8544, 53.1031, -8.467, 37.2858, -33.25, -33.3, -29.17, 37.2381, 37.2847, 41.2247, 46.1683, 38.3, 36.6239, 36.6206, 39.3619, 8.6, 20.97, 41.5097, 32.3347, 32.55, 44.8317, -36.9077, 35.3208, 32.3197, 48.5131, 42.4947, -31.4756, 45.1786, 42.9194, 50.1167, 28.6408, 50.1167, 49.4667, 31.3331, 36.8, 2.45, 57.35, 0.08, 40.85, 39.05, 37.055, 37.1997, 38.2, -22.27, 48.183, 6.8456, 37.4094, 36.8331, 48.1075, 45.6, 44.6275, 48.8556, 32.3911, 49.0731, 4.25, 31.6181, 37.1497, 39.1756, 19.4, 39.7808, 38.8489, 65.87, 48.8167, 33.4044, 35.6936, 36.8833, 25.8064, 25.7906, 25.6475, 25.7553, 25.9069, 49.45, 25.7167, 31.47, 47.15, 52.05, 49.717, 39.4333, 49.3833, 45.7667, 39.4953, 30.0603, 39.2931, 36.6086, 42.5933, 41.4603, 40.1936, 49.6833, 37.6167, 44.7786, 39.7833, 44.7189, 45.5833, 45.0667, -12.605, 43.6333, 51.15, 32.68, 43.6089, 44.0667, 32.0186, 44.6833, 31.9433, 32.0, 44.75, 59.8339, 32.8753, 49.0, 31.7842, 28.2167, 37.5667, 43.4131, 35.1231, 46.3667, 66.68, 60.6294, 44.7706, 66.0, 53.817, 61.733, 61.6869, 45.7533, 45.4717, 45.5833, 41.6725, 45.1219, 42.0664, 35.9328, 42.0811, 45.2267, 45.2836, 46.7614, 57.0333, -34.2358, 50.5544, 44.5208, 26.2483, 46.4267, -26.6569, -26.6581, 65.2222, 38.4017, 39.1814, 42.8394, 38.8983, 43.3828, 42.5794, 39.0744, 38.4167, 48.667, 36.3, -12.1239, -12.0931, 49.1333, 44.117, 41.8553, 41.7858, 33.0831, 32.7797, 46.875, 44.5178, 40.5375, 39.7194, 33.4136, 46.0228, 38.3064, 43.3167, 40.8847, 39.2739, 45.6503, 45.6478, 40.7692, 46.808, 39.3667, 34.3903, 34.0836, 44.4667, 40.65, 36.74, 36.2314, 32.4419, 49.7131, 30.7794, 45.9428, 42.955, 43.0719, 38.3844, 24.173, 25.847, 24.3, 45.3539, 27.05, 16.933, 23.633, 63.9033, 35.2722, 32.6053, 38.9547, 40.5156, 44.9333, 32.635, 40.7328, 32.7167, 40.3458, 37.85, 44.2, 41.15, 32.7817, 48.1667, 48.7667, 48.7667, 8.3, 8.3, 42.6767, 40.4833, -34.822, -34.748, 9.617, -78.55, 39.1247, 44.8831, 48.0781, -32.8361, -32.8427, 45.8864, 46.0667, 40.9125, 48.4167, 48.1803, 48.2553, 38.633, 53.87, 33.7589, 53.7167, 28.083, 44.6614, 44.6761, 44.6467, 47.0167, 47.0167, 4.322, 4.4, -66.55, 62.5, 61.4253, 48.0167, 35.117, -10.683, 48.083, 43.3061, 43.1114, 44.7342, 49.15, 46.8983, 46.9244, 46.85, 46.9208, 48.6, 32.4097, 43.7031, 44.5681, 43.7381, 41.9481, 34.9436, 43.7667, -26.4888, 39.06, 36.383, 47.4783, 65.5831, 61.1667, 70.75, 62.0167, 70.7331, 66.95, 72.7831, 0.783, 20.23, 34.117, 24.783, 39.65, 24.476, 31.733, 31.933, 46.2858, -70.7, 60.7022, 53.1, 38.5744, 38.755, -1.53, 39.4194, 30.6794, 30.6833, 30.6264, 45.5656, 45.5464, 42.0431, -15.08, 47.0575, 35.8439, 22.75, 60.841, 37.7981, 44.6481, 37.6242, 41.4589, 37.4058, 53.95, 53.9, 53.75, 48.7603, 36.276, 52.133, 41.7681, 49.6506, 48.45, -5.894, 35.0492, 35.0531, 34.817, 45.1783, 37.75, 44.9078, 57.583, 62.7442, 40.8442, 41.4653, 57.94, 22.1833, 21.115, 21.1544, -4.033, 44.35, -2.05, 31.5414, 31.6219, 49.8167, 18.0908, 67.967, 33.2425, 26.883, 46.1, 46.1, 44.3831, 44.5647, 51.683, 36.8619, 46.15, -15.25, 21.5333, 38.5833, 40.9442, 40.9361, 41.9139, 47.8453, 42.5994, 32.8833, 34.9797, 35.0169, 32.4936, 32.5156, 6.234, 50.4392, 43.4614, -36.2519, 41.7806, 46.31, 41.0731, 35.2244, 34.0192, 45.7, 34.4614, 18.5, -7.88, 44.5817, 43.7806, 41.2781, 25.2, 44.3764, 36.1483, 36.5903, 36.5881, 36.5928, 25.87, 25.733, -16.717, 44.9342, -35.0, 37.5922, 34.6106, -2.0, -30.267, 44.2, 41.4667, -10.43, 39.333, 41.7, 37.5811, 32.26, 32.2997, 36.1014, 40.6475, 41.5092, 31.5519, 33.3328, 38.0111, 46.4667, 30.4406, 37.8736, 36.8667, 30.4922, 33.6361, 46.9667, 50.25, -24.8642, 41.5725, 44.2553, 45.6333, 45.6667, 45.4667, 45.5167, 46.45, 41.8511, 38.5439, 38.4858, 43.8197, 38.505, 41.77, 44.1167, 48.4167, 43.912, 48.6, 46.5667, 45.3167, 39.1025, 45.2167, 36.9853, 44.2767, 43.65, -23.57, -28.0997, 44.4167, 42.8597, -30.6417, -37.98, 44.2169, 39.0461, 39.9511, 43.9167, 26.84, 33.4517, 46.8875, 45.1758, 32.7053, 39.3572, 43.6536, 45.1144, 43.6614, 45.6667, 50.3333, 50.3333, 46.4378, 46.4203, 60.5028, 54.2333, 50.1333, 51.2833, 51.2833, 51.2833, 51.3, 51.2667, 14.5, 45.8775, -5.11, 45.9903, -21.9947, 43.8567, -29.2103, -29.2039, 60.96, 45.89, 49.1833, -29.4914, 37.3006, 34.7336, 19.7, 41.7217, 52.9333, 41.4558, 35.7297, 39.6428, 39.6203, 29.6833, 44.85, 44.5167, 41.0428, 35.0128, 51.7217, 39.7, 34.9067, 34.9333, 34.3175, -16.664, 45.4825, -6.82, -20.285, 34.0864, 39.5267, 37.1581, 37.1833, 48.35, 55.215, 35.1581, 51.6667, 44.9167, 41.8039, 39.4158, 36.2067, 36.1683, 44.5139, 42.8417, 44.5344, 45.59, 35.3669, -7.85, -11.217, 46.9, 63.32, -38.0737, 33.7183, -35.9004, -35.9093, -38.2094, 47.0219, 40.6167, 35.0711, 55.8331, 46.8, 46.7281, 47.2078, 48.3667, 53.57, 55.75, 55.9167, 49.696, 35.8022, 48.05, 50.6667, 59.8394, 35.0336, 30.3392, 47.6833, 45.2667, -34.5253, 35.883, 43.35, 46.3719, -1.87, -1.845, 76.2333, 76.2333, 34.4883, 31.1769, 8.567, 39.9056, 38.1433, 37.1872, 34.5208, 34.6242, 35.6494, 44.05, 36.3689, 43.0283, 33.7011, 45.7, 37.0544, 36.0306, -35.0639, -34.625, -37.8383, -33.6185, -37.145, 47.4167, 47.75, -34.7253, -29.7, -16.4181, 38.0631, 43.9833, -37.7473, -37.8333, 47.35, -35.5293, -36.9767, 34.5467, -20.6778, -20.7361, 47.9167, -34.9784, 36.3472, -28.1156, -37.7481, -37.6924, -51.823, -41.8444, -73.2, 42.9372, 37.3761, 44.9, -42.8967, 38.3894, 42.833, 35.6558, -4.0, 46.9167, 46.5053, 3.533, 55.5, 43.733, 52.03, 51.95, 11.117, 66.3642, 23.317, 45.0619, 44.8322, 36.4739, 34.9047, 40.7497, 37.1542, 43.1261, 36.3458, 43.05, 27.9378, 32.9539, 35.4703, 35.8444, 41.2708, -28.95, -10.267, 45.9997, 36.4992, 40.7053, 38.4106, 42.0981, 36.26, 42.6083, 37.8817, 37.8792, 37.3436, 39.9492, 45.3333, 45.2667, 34.5408, 35.3789, 32.8672, 32.8797, 35.655, 30.7053, 44.5247, 35.7586, 42.7314, 38.1878, 33.1689, 35.5572, 40.9486, 43.5858, 41.1389, 39.3167, 43.8769, 43.875, 41.3206, 41.3325, 41.3156, 38.0583, 43.3325, 33.1964, 37.3542, 37.9286, 38.3483, 48.4403, 37.0711, 37.0733, 44.2667, 39.0642, 34.2308, 45.03, 43.6389, -0.95, 44.567, 42.3628, -32.5628, 64.849, 49.4667, 42.6, 47.1414, 45.25, 39.7986, 48.967, 48.1642, 48.3581, 51.9506, 52.3333, 52.1353, 37.217, 48.633, 50.37, -8.54, 48.283, 64.815, 16.533, 29.4667, -22.92, 28.63, 32.6089, 34.2192, 33.9558, 33.9544, 32.4, 45.4, 44.1625, 47.4569, 42.0425, 37.5794, 42.2506, -28.5367, 47.8069, 53.5333, 34.1944, 30.203, 62.5103, 62.4103, 51.567, 52.5189, 58.9333, 40.2342, 34.9364, -8.333, 53.5667, 33.4539, 42.2553, -28.9786, -33.5969, -33.5547, 48.35, 46.4122, 56.23, 48.3864, 46.4167, 67.94, 67.9681, 68.0617, 67.9728, -26.8936, 38.0028, 37.9578, 37.7889, 43.8894, 49.633, 36.4522, 34.0783, 35.9203, 68.9667, 42.317, 33.25, 43.2044, 35.0714, 42.0264, 36.6122, -35.1234, -35.065, 48.9739, -31.7416, -31.7651, 46.7, 6.577, -28.3395, 38.733, 41.4075, 41.4714, 34.7728, 34.7442, 49.45, 35.6147, 43.1711, 35.7781, 35.6567, 44.9667, -1.5, 42.183, 63.4353, 38.3311, -0.919, 41.283, 44.9258, 36.2283, 65.382, -2.467, 27.2417, 25.367, 66.7628, 56.45, 49.5833, 49.667, 49.4, 33.7544, 33.6833, 45.2436, 58.83, 69.8797, 68.55, 45.9, 50.87, 67.8, 68.9, 48.65, 66.17, 67.83, 76.85, 40.1942, 8.4, 14.25, 7.733, 19.0614, 33.267, 60.4667, 60.3939, 62.3978, -3.368, -17.0, 53.1, 31.6164, -17.75, 65.47, -6.57, 49.75, 36.667, 32.732, 26.6, 55.97, 35.167, 21.1, 31.483, 46.45, 3.683, 26.2, 31.2667, 31.2739, 68.68, 56.55, 56.55, 43.1, 57.593, -1.3, -1.317, 62.88, 17.417, 14.967, 15.8, 8.533, 50.95, -0.283, 50.2667, 43.533, 31.87, 40.983, -26.6431, 64.2506, -3.25, 43.6039, 38.717, -15.1, 64.4706, 64.7419, 20.4167, 18.767, 49.05, 28.6, 27.583, 30.8, 48.68, -17.8, 72.9833, 31.933, 22.633, 26.633, 47.3, 47.153, 41.2531, -5.667, 33.03, 27.3, 44.2333, 59.85, 38.2103, 38.2778, 26.1686, 26.1522, 23.3, 41.3939, 46.5067, 45.7667, 45.7667, 34.7, -36.9564, -36.9813, 49.55, 44.62, 15.167, -32.0656, 67.6331, -1.13, -36.2144, -30.3154, -30.3401, -34.7325, -32.9342, 60.9167, 59.467, 68.4394, 41.4331, 42.7914, 33.9294, 38.3431, 31.2644, 36.1189, 25.05, 55.2333, 50.2, 39.3, -5.767, -5.9167, 50.1833, 50.1833, 31.5889, 31.7722, 31.8142, 42.2825, 10.32, 38.9133, 66.75, 66.76, 66.77, 37.6094, 34.0483, 45.4981, -18.043, 45.4667, 40.7806, 36.8047, 30.3664, 31.9611, 58.7, 40.133, 26.219, 39.2, 25.23, 28.383, 28.3833, 59.5, 55.567, 12.13, -4.386, 41.5667, 35.7197, 40.6986, 44.0261, 44.0603, 68.05, 59.4839, 34.7675, 38.3894, 50.15, 50.2167, 44.2331, 31.533, 47.0414, 29.58, 44.5378, 51.3667, 17.611, 7.45, 58.6581, 57.65, 14.45, -32.7103, 49.5833, 49.5167, 16.6, 35.1, 44.1917, 43.333, 64.55, 54.75, 49.167, 39.3536, 40.4178, 36.8639, 53.28, 39.7122, 47.4, -35.3365, 51.32, -35.1165, 60.5683, 60.5669, 40.1358, 38.4478, 53.602, 48.6525, 48.7092, 47.0, 49.2942, 50.5, 50.6894, 50.8933, -70.667, 54.0889, 49.3444, -38.95, 52.9053, 49.5739, 49.8183, 49.3581, 50.75, 39.2467, 46.8333, 37.8394, 46.67, 40.4, 44.633, 38.617, 37.5147, 40.0228, 40.6825, 39.6694, 40.0875, 34.2978, 46.3286, 43.8497, 44.0461, -27.73, -32.9185, -32.8905, 36.5522, 43.9708, -33.1131, 44.7158, 35.6108, 48.6758, 34.3933, 50.783, 32.5953, 35.07, 36.9425, 36.8981, 37.2811, -23.4169, 33.4544, 30.3653, 35.6042, 39.3933, 42.6008, 43.3772, 44.9489, 48.1842, 35.9833, 44.6833, 41.9497, 33.6025, 34.7764, 37.1319, 41.5, 41.5333, 38.0344, 38.9917, 41.0553, 41.7117, 43.5833, 31.1922, 32.3378, 38.9136, 31.3128, 32.3378, 54.6699, 52.68, 41.6333, 41.6764, 35.0678, 35.0967, 41.1925, 29.7192, 40.4719, 48.0167, 41.0172, 39.8942, 43.4833, 34.9456, 28.567, 28.583, 50.0, 46.5414, 43.1167, 39.0172, 42.5167, 46.4167, 43.0453, 37.4636, 35.6808, 35.4486, 40.075, 30.9539, 45.01, 30.0375, 30.0375, 39.7333, 44.3589, 45.305, 36.5869, 44.9714, 38.0047, 29.8167, 29.9167, 29.9933, 30.0494, 30.0333, 40.4878, 40.4719, -39.017, 40.6089, 40.9319, 34.7, 30.7267, 46.8925, 29.0361, 44.3006, 40.7789, 40.6386, 40.7794, 46.5092, 46.2325, 45.7333, 7.35, -11.9971, 12.2333, -36.3347, -36.3092, 43.1003, 43.1072, 43.1333, 13.5, 9.767, 43.6333, 30.5317, -89.0, 46.2, 46.2333, 35.1667, 47.2333, 50.2344, 50.6756, 57.3039, 49.3992, 48.5342, 49.7681, 52.6725, 53.1942, 37.967, 37.917, 61.9, 67.8497, 67.8497, 36.733, 46.9667, 58.567, 53.15, 58.35, 59.53, 55.2, 47.583, 42.767, 41.8406, 43.8581, 34.9553, 35.0317, 47.0708, 41.35, 60.0433, 14.517, 42.7472, 15.233, 53.3333, 53.3333, 53.3333, 43.3331, 48.8667, 48.283, 63.9167, 40.0333, 29.2828, 36.39, 55.78, 54.8831, 50.9, 46.85, 66.767, 57.883, 48.333, 51.05, 56.2667, 22.867, 62.43, 61.7, 63.283, -35.1586, 68.0708, 32.583, 31.4553, 31.4208, 51.92, 21.221, 48.15, 28.817, 51.5167, 57.55, 37.2792, 64.5111, 46.4, 17.8667, -32.5226, -26.52, -37.9039, 32.6678, 49.6, -33.2815, -33.2815, 37.0156, 55.45, 52.5, 52.5, 53.7139, 63.15, 53.7644, 52.4408, 58.8925, 64.7978, 69.8333, 41.9725, 42.0289, 36.9033, -29.042, 41.9856, 36.95, 36.9839, 36.8708, 40.5492, 48.85, -17.6872, -17.6706, 35.2358, 17.936, 65.2833, 65.2833, 65.2833, 62.28, 36.2131, 40.1197, 45.4856, 58.58, -32.1981, -32.2147, 64.91, 64.93, 52.35, 37.4314, -31.6508, 37.8122, 45.0, 41.3589, 44.1647, 48.9675, 39.8989, 51.55, 47.8358, 48.8742, 45.1322, 33.2125, 34.2447, 62.9614, 43.4386, 42.6958, 52.7667, 52.7667, 46.3667, 43.4133, 47.05, 44.0303, 37.0, 35.8167, 48.8167, 45.55, 37.2331, 43.7897, 47.2667, 37.2328, 41.8564, 41.3333, 47.1333, -28.3008, 32.7, 27.233, 36.2347, 37.8547, 39.0667, 41.4933, 40.9936, 25.95, 46.8167, 45.6358, 48.7667, 41.0569, 41.1214, 64.7581, 45.0375, -34.5993, 44.75, 43.0219, 39.0017, -34.9469, 36.1631, 39.7411, 39.8114, 41.9928, 66.8333, 50.8289, 41.2667, 40.6517, 53.9667, 53.95, 54.0, 37.455, 42.5117, 41.5269, 52.683, 38.1317, 42.1908, 51.0517, 59.5667, 45.4, 45.8, 47.6, 53.005, 20.933, 20.93, 18.12, 33.3667, 33.367, -22.2667, -22.267, 32.384, -31.183, 48.1, 43.89, 46.783, 48.85, 45.8, -14.7, 45.3331, 56.969, 53.6, 50.6, 53.817, -70.767, 48.783, 51.1, 55.083, 50.4, 45.8, 47.9, 67.6994, 36.6917, -34.9449, -34.9469, 49.6167, 57.083, 47.5083, 38.2297, 30.367, -35.45, -0.917, 70.2117, 42.45, 44.77, -31.4492, -32.7244, 40.8067, 40.55, 40.7, 50.3608, -34.4761, 60.5083, 49.5042, 49.4267, 64.1667, 6.967, 44.8831, 12.05, 66.5997, -0.5, 45.435, 56.25, 29.57, 48.0, -31.5495, 43.8764, 45.45, 78.923, 40.5939, 46.8667, 33.8117, 43.3392, 49.3667, 49.4333, 45.2817, 46.7, 42.4594, 42.0644, 46.1458, -27.4034, 41.3044, 39.4133, 37.7214, 37.7983, 37.865, 37.7861, 42.2342, 38.87, 39.1131, 32.2061, 32.9572, 50.1, 50.5, 43.7428, 43.4333, 43.4833, 43.5167, 39.3758, 34.9417, 36.8425, 34.9589, 33.3933, 37.9714, 41.8386, 41.0064, 36.1753, 36.0236, 36.0028, 41.0333, 25.85, 25.8603, 17.05, 26.6, 46.8675, 39.8189, 41.2667, 30.6036, 48.3156, -33.6774, 48.2444, 47.3989, 49.1289, 49.4531, -1.91, 42.917, 60.367, 49.0, 5.4, 43.8, 58.6592, 29.1639, 36.1839, 37.6761, 36.8167, 40.6328, 33.2097, 33.2194, 38.3083, 46.633, 48.583, 52.2667, 32.1664, 44.4333, 44.3964, 25.9167, 51.0667, 47.7831, 35.5158, 33.2083, 43.1003, 41.1439, 44.8919, 33.1553, 16.7, 35.1075, 39.8, 43.5492, 55.48, 34.6242, 46.48, 31.8797, 47.3328, 31.9206, 54.2, 9.5, 9.5, 51.233, 43.1878, 42.68, 42.6467, -12.3263, 63.1831, 50.0892, 48.4603, 39.067, 41.1275, 44.7281, 41.1167, 41.1961, 41.2319, 57.87, 65.3667, 43.175, 54.9, 36.947, 57.717, 20.6617, 43.6008, 48.4339, 58.567, 59.3667, 61.867, 41.12, 49.2081, 33.233, 34.4478, 34.4483, 58.38, 48.1086, 63.25, 45.5, 50.05, 34.667, 52.166, 27.1508, 36.1217, 35.4253, 27.259, 35.5342, 35.4167, 35.3889, 35.6239, 50.7333, 58.0667, 51.63, 52.6, 62.45, 66.25, 44.1758, 59.57, 36.5072, 47.3667, 56.66, 57.37, 56.2, 38.8875, 38.8317, 38.85, 53.1031, 36.9756, 51.7833, 51.7667, 41.15, 67.5667, 67.5667, 44.4569, 43.7025, 42.2058, 36.2469, 44.9214, 44.9281, 60.4, 68.5, 52.8, 42.167, 48.6117, -20.68, 49.1667, -32.55, 53.65, 49.1833, 34.9536, 38.3422, 44.7628, 31.8922, 40.3161, 33.3733, 48.5497, 38.7003, 50.95, 49.9325, 53.7667, 34.1797, 30.2, 46.9733, 34.6, 41.3536, 41.3103, 48.4167, 48.4608, 48.4608, -37.1017, -37.1011, 49.017, 65.23, 44.9667, 45.05, 55.0167, 44.583, 62.8667, 36.95, 48.9, 45.4108, 42.0697, 62.8667, 62.8594, 49.1167, 63.9, 36.5028, 37.2669, 33.9478, -33.9644, 44.7317, 42.4544, 46.9, -20.667, -21.6364, -21.6689, 34.0667, 34.0561, 44.0439, 44.0206, 46.8342, -27.5553, 38.8894, 51.2403, 53.7667, 53.7667, 21.5739, 35.1542, 59.9, 32.6592, 31.0944, 48.9989, 48.6956, 19.2706, 50.6333, 62.6043, 32.6025, 47.033, 43.4033, -23.153, 44.133, 33.4886, 33.4617, 43.9167, 30.2264, -33.3211, -33.3813, -33.3815, 42.57, 29.4794, 35.7, 49.3667, -37.6922, -37.6917, 43.3333, 37.2722, 38.53, 38.2222, 54.367, 41.6236, 59.28, 59.23, 39.9808, 45.3558, 52.933, 40.2767, 51.8, 51.6831, -42.5519, 31.9556, 41.3619, 37.2353, 44.6, 60.8064, 18.85, 21.18, 63.205, 39.7458, 63.7003, 28.5453, 28.4339, 28.7797, 41.3089, 47.98, 52.5, 56.05, 48.725, 45.1167, 63.41, 32.3789, 44.8992, 41.5683, 39.5178, 39.49, 65.95, 48.0508, 48.0189, 54.5, 60.53, 62.1808, 26.7897, 43.2794, 34.683, 56.38, 38.0492, 41.0194, 41.1839, 51.3, 44.45, 40.533, 43.8667, 34.75, 41.4014, 44.0206, 43.9844, 45.5331, 41.3214, 39.2419, 57.27, 52.4167, 59.9419, 59.9428, 24.963, 54.433, 42.3569, -40.6, 49.0333, 49.0333, 59.3, 57.133, 49.8167, 51.083, 57.44, 50.455, 60.31, 60.33, 60.35, 49.8, 60.7, 68.12, 69.93, 79.55, 76.0, 66.48, 79.5, 70.9831, 16.5, 9.553, 41.9244, 43.4622, 43.533, 43.183, 69.256, 36.3339, 45.0333, 39.1, 38.6133, 41.3283, 45.3833, 45.3833, 45.3167, 45.3167, 46.4314, 41.7533, 61.0333, 41.1078, 12.353, 13.58, -20.7769, 31.917, 30.93, -25.18, 31.673, 48.483, 1.62, 34.78, 64.2306, 64.9283, 64.9375, 65.0331, 65.0056, 35.867, 38.0206, 38.0264, 40.1344, 42.3278, -7.9, -42.4842, 51.4833, -35.0694, 57.9256, 46.8819, 63.78, 66.26, 39.0833, 36.5508, 40.7456, 66.3797, 43.3542, 51.317, 34.067, 44.0981, 38.7333, 34.5528, 37.39, 44.98, 44.5833, 43.6667, 43.0161, 43.65, 43.5833, 49.3167, 58.68, 51.75, 51.77, 40.3283, 36.3022, 42.2667, 34.1981, 34.2008, 34.2067, 38.7853, 51.3833, 51.1667, 51.35, 59.5742, 49.8833, 35.5125, 36.6597, 34.6819, 51.483, 44.2831, 30.7169, 30.4267, -63.3, 43.2783, -33.72, 48.7167, 20.133, 37.5917, 46.6092, 44.0622, -0.883, 63.27, -30.82, 42.5806, 54.0206, 24.0, 45.3983, -12.614, -15.78, -36.5958, -36.6539, 34.0067, 37.0683, 33.8083, 44.3456, 68.6, 34.7167, 46.15, 36.9208, 34.7606, 36.9261, -14.3306, 27.73, 66.81, 44.5036, 37.2689, 36.2614, 41.7525, 35.0681, 33.0772, 37.5831, 37.8175, 31.5536, 42.6922, 55.8455, 67.2097, 67.205, 49.2167, 59.383, 46.6167, 15.117, 28.7247, 55.967, 29.6439, -2.88, 38.1103, 39.0028, 31.7831, 31.7797, 31.7425, 46.1, 39.1136, 19.3175, 61.3378, 66.39, 66.39, 50.05, 39.6, -10.19, 39.5606, 39.5556, 34.5883, 34.6294, -9.45, -64.8, -16.0008, 47.3058, 61.5889, 61.5961, -64.766, 10.3, 34.5494, 37.8142, 26.8261, 29.6319, 33.8275, 33.8281, 1.767, 33.3781, 7.127, 37.4436, -0.68, 9.267, 56.02, 35.5544, 42.7767, 42.8175, 39.3686, 30.2492, 30.2119, 36.1203, 38.3036, 35.8333, 30.2678, 30.2061, -18.533, 40.9461, -2.17, 66.1333, 66.15, 66.15, 37.8156, 35.3514, 26.955, -21.6392, 36.7269, 36.82, 29.3272, 29.3483, 29.3167, 38.5911, 38.5556, 38.8522, -9.75, 47.35, -23.1725, -17.217, 33.867, 39.7536, 46.8333, 53.1167, 41.5022, 38.3897, -34.7977, 36.0336, 60.1117, 59.7842, 9.35, -19.7, -31.783, -40.9, -35.5695, 47.2697, -20.1078, 47.9167, 36.7278, 37.1047, 61.4442, -2.63, 33.6744, 48.8231, 36.2872, 39.6186, 67.73, 50.4667, 45.535, 34.1547, 39.5144, 39.2811, 39.345, 51.4, 42.1058, 44.7333, 34.2903, -33.1281, -33.1419, 35.8989, 37.483, 45.8667, 40.6703, 38.8167, 48.45, 45.9336, 41.4947, 46.9006, 39.0333, 36.7242, 40.7667, 44.8042, 43.8022, -3.083, -2.917, 37.8622, -33.7917, 25.45, 27.6089, 40.9333, 45.4, 45.4167, 45.35, 49.1517, 39.0736, 37.3678, 37.3278, 35.6083, 43.15, 39.6308, 34.1483, 36.2994, 42.35, 30.3961, 30.4636, 46.2667, 25.29, 21.83, -43.817, -29.689, -32.8, 35.6278, 35.6697, 53.7167, -22.38, 49.5333, -28.21, 46.1489, 1.417, 51.9833, -33.77, -32.6296, 30.333, 45.3222, 25.6, -7.017, 47.22, 6.7833, 46.0258, 46.5372, 40.295, 38.3, 43.38, 69.35, 69.3667, 41.1247, 44.1328, -8.132, -9.4, 34.7253, 34.7156, 42.6283, 53.7831, 42.9294, 43.2458, 56.883, 52.3, 44.3192, 36.6692, 40.1217, 41.6653, 63.0322, 62.9453, 40.4547, 46.82, 44.0764, -29.2708, -32.333, 34.2325, 34.2431, 39.9333, 14.583, 49.0, 56.2333, 49.7833, 49.7, -32.7235, 34.5025, 31.9356, -31.6669, 28.8889, 31.4, -33.3102, 45.05, 54.9833, 38.4197, 44.2333, 65.1167, 31.4167, 35.5489, 46.1, 46.0, 50.692, 34.6153, -3.553, -23.6, -22.6, -77.95, -35.867, 50.3667, -15.517, 32.3161, -22.55, 7.0333, 57.9578, -25.8, 33.8017, 67.0214, 66.7722, 45.5644, 52.0833, 51.7333, 69.6333, 62.8167, 42.5319, -31.78, 44.7275, 54.083, -12.983, -34.4478, 39.9708, 50.3, 48.9711, 45.8667, 5.297, 45.6906, 45.7206, 45.6703, 45.6911, 22.767, 39.5, 25.633, 55.8239, 45.1, 42.6711, 42.6425, 37.6486, -33.7195, 30.35, 30.4781, 49.4833, 49.4667, 31.7356, 53.13, 40.7039, 55.6167, 40.6675, 4.422, 4.8, 51.9, 56.7, 59.0, -33.93, 48.7667, -46.517, 35.9986, 49.5125, 58.0167, 42.7381, 25.5819, 30.0986, 36.2886, 41.8394, 40.0739, 36.3897, 35.0556, 37.7342, 39.8058, 30.0719, 39.1172, 29.6603, -32.0, -31.9275, -31.9192, 61.5314, 41.3503, 43.08, 44.5658, 48.05, 57.07, 43.87, 42.43, 33.994, 45.0281, -8.4, 38.2578, 45.95, 45.95, 45.8833, 44.2333, 44.2333, 44.35, 44.3667, 37.2389, 38.9989, 56.8056, 48.0356, 38.465, 64.5697, 47.3167, 48.1833, 45.3725, 45.3614, 34.7994, 35.1392, 42.8833, -9.383, 53.0833, 54.8331, 52.9831, 51.317, 61.8167, 66.43, 49.1169, 48.9067, 47.9353, -23.98, 36.1067, 40.4, 10.933, 12.9233, 19.1333, 16.433, 13.15, 32.7692, 39.8683, 40.0136, 40.0819, 39.9575, -15.667, -30.62, 49.2519, 45.0333, 40.8728, 46.3167, 46.3158, 44.0511, 17.539, 41.6264, 39.7533, 40.6972, 43.5167, 39.8386, 36.7764, 16.817, 11.547, 40.12, 33.4489, 33.6883, 33.55, 33.4278, 18.167, 7.883, 8.132, 20.8, 10.217, 44.92, 44.2369, 45.933, 10.583, 18.2, 43.3086, 33.3503, 32.6464, 30.5217, -1.1, -39.65, 32.8864, 34.8814, 46.5833, 39.8744, 39.0167, 51.45, 51.45, 43.0689, -7.03, 18.2708, 49.8667, 38.2322, 36.0969, 28.627, 63.3, 46.4922, 29.2353, 40.2461, 46.5, 46.0833, 44.0194, 44.3814, 49.1833, 48.617, 63.7508, 63.7331, -29.6, -23.917, 34.4931, -27.23, -27.02, 46.6167, -37.6, 35.5981, 39.475, 48.3, 40.1478, -25.33, -26.85, 30.367, -31.667, 52.4167, 38.8325, 49.2, 49.1833, 33.3658, 45.4756, 50.05, 50.7167, 50.1833, 50.1833, 49.5167, 49.5167, 49.5167, -29.3899, 42.8744, 64.7, 36.6853, 31.8944, 34.1239, 37.5742, 49.0333, 34.2256, 41.1722, 34.175, 38.8833, 34.1167, 44.25, 43.5667, 43.54, 33.0164, 46.7769, 50.9833, 55.5333, 43.0206, 39.2603, 51.8, 46.6694, 31.8903, 31.8311, 40.4369, 41.2578, 6.2167, -32.5336, 35.55, 25.52, 32.42, 37.9056, 44.2581, 36.4708, 36.4819, 43.8822, 33.7275, 52.117, 33.6906, 40.0097, 37.9344, 46.517, 40.7569, 44.0139, 36.8586, 40.1311, -17.35, -21.983, -4.267, 61.4206, -11.4022, 49.1919, 57.633, 34.4044, 43.684, -13.745, -13.8, 35.2719, 37.62, 35.1597, -25.067, 65.3197, 65.833, 40.3547, 40.4847, 45.6375, 39.6222, 45.8944, 49.2, 49.2833, -5.18, 66.183, 58.3667, 38.0178, 38.6956, 45.4167, 47.785, 40.6036, 44.2764, 33.1869, 42.2614, 47.45, 32.0097, 32.0467, 34.1892, 44.5169, 34.1981, 39.245, -20.433, 46.5, 28.0236, 42.7489, 42.1389, 39.5669, 44.65, 50.483, 53.65, 28.9606, 59.45, 40.3675, 40.4311, 38.81, 41.7394, 34.0933, 34.0989, 48.78, -34.08, 43.4167, 43.35, 46.4178, 48.833, 42.1333, 47.3111, 49.05, 51.0667, 41.3392, 43.73, 43.7833, 28.7503, 35.8722, 41.9819, 50.35, 41.9097, 49.683, 52.4166, -42.733, 11.15, 21.5383, 42.7292, 36.2642, 42.8917, 42.875, 42.9203, 44.7667, 35.7469, 42.433, 16.633, -29.13, 52.22, 50.4, 44.4, 36.033, 6.9667, 45.65, 48.5167, 48.2667, 49.3167, 48.033, 47.3, -4.82, 50.1667, 47.0411, 46.3167, 49.3333, 56.3511, 28.6575, 48.1333, -37.8017, 69.75, 49.3333, 45.0667, -27.4361, 61.4169, 39.7275, 34.1167, 48.4, 41.95, 43.8333, -38.0958, 38.5, 49.617, 47.2508, 42.35, 61.483, 44.0069, 80.6, -33.5085, 48.7647, 48.7825, 52.3, 42.8944, 42.0694, 41.8667, 46.6, 35.0331, 69.2, 45.9042, 51.1333, 45.4586, -23.867, 3.558, 55.467, 7.35, 42.0347, 47.675, 47.6775, 49.6, 44.033, 54.367, 66.033, 46.4672, -25.83, 37.905, 34.0817, 38.645, 26.25, -19.21, 46.1972, 36.7367, 18.0258, 22.254, 72.6833, 72.6833, 72.7, 42.5639, 37.741, -22.533, 42.44, 40.8778, 42.665, 0.0, 34.1381, 52.32, 40.917, 47.7, 18.533, -33.3856, 64.105, 42.9269, 35.1739, 47.9833, 30.8408, 36.7578, 36.7725, 48.1269, 34.7325, 49.0667, 46.1167, 43.395, 40.0978, 48.4667, 43.29, 55.18, 42.553, 61.4656, 61.4789, 61.6303, 10.917, 49.2167, 38.4833, 46.8353, 44.1542, 43.5278, 36.4136, 60.785, 49.9, 39.2833, 34.1742, 31.8833, 36.0678, 60.7667, 48.9994, 33.2511, 43.65, 40.4175, 50.517, -38.3148, 45.5406, 45.5908, 43.6497, 45.5181, 36.5878, 45.5511, 45.5606, 41.1331, 39.8053, 45.52, 45.5, -1.033, -30.05, -1.733, -9.18, -10.52, -10.717, 41.2, 33.073, -8.767, 38.7569, 47.65, 49.3167, 49.2, 49.3, 62.6211, 56.2472, 50.3833, 41.8158, 60.2036, 60.195, 60.1958, 48.1139, 48.1203, 27.8381, -43.1639, 29.9506, -32.5091, 44.0469, 47.5667, -49.35, 18.6, 11.667, 48.35, 43.9186, 42.8833, 42.8667, -33.985, -38.3906, -0.72, 31.985, 4.85, 50.6833, 45.65, -20.3725, 43.9483, 44.0219, 42.975, 26.0942, 26.1658, 41.38, -14.2495, 44.25, -34.7225, -31.4336, -31.4399, 26.5578, 41.6264, 49.5333, 49.8333, 49.2833, -9.383, -29.23, 28.4342, 48.9978, 42.7519, 44.15, -33.1708, 48.6, 27.0997, 60.0503, 50.65, 19.583, 48.1161, -17.699, 43.3944, 43.25, 46.7781, 60.2033, 60.3914, 60.4056, 59.985, -27.386, 46.35, 42.65, -14.1, -71.883, 32.85, 33.1986, 48.3297, -28.333, 45.8, 46.3, -26.733, 35.0539, 29.0283, -24.183, 46.9603, 46.9833, 46.8814, 37.8958, 38.083, 32.6058, 52.3833, 43.2261, 39.3619, 40.2383, 41.7267, 41.6267, 37.4431, 46.1167, 45.8525, 43.035, 44.1667, 46.51, 44.7764, 46.5122, 49.8333, 49.8833, 49.8333, 42.8886, 48.5722, 42.8708, 42.7917, -41.6839, -15.833, 48.667, -23.5, 14.05, 11.8, 29.9167, 50.0906, 50.0, 43.5, 40.5914, 43.0514, 41.64, 57.72, 41.659, -22.7, 37.6456, 65.9233, 46.31, 46.3, 45.5447, 35.1303, 52.4333, 60.067, 42.9, 19.95, 34.5706, 33.8203, 34.6517, 43.9919, -26.733, -30.975, -22.117, 29.5711, 46.6539, 46.6833, 58.993, 42.0933, 43.6725, 53.7739, -25.733, -25.917, -25.75, -25.17, 46.1758, 50.333, 49.583, -34.2971, 39.6092, 31.6953, 57.317, -29.67, 48.575, 46.6461, 48.3511, 36.1883, 48.767, 41.3331, 50.583, 49.667, 38.8333, 43.0864, 46.0331, 18.041, 40.3986, 41.3661, 37.1244, 38.3567, 49.4667, 49.4667, 40.9275, 22.2181, 53.2167, 40.6514, 53.8333, 53.8833, 54.05, 53.8833, 53.8833, 53.8833, 32.161, 54.3, 54.2833, 44.3022, 60.033, 37.72, 31.9633, 21.3, 20.28, -69.383, 34.3667, 34.3694, -10.2, -20.4925, 42.7342, -33.8193, 46.2014, 44.1667, 37.3997, 41.7219, 13.4, 42.2897, 40.2458, 52.567, 36.3092, 45.3375, 47.267, 49.8, 41.9, 57.8167, 19.6669, 19.7456, 19.7717, 49.7267, 47.8, 27.92, 65.3667, 65.3992, 57.57, 61.8, 19.0333, 38.29, 38.2597, 15.683, 5.6, 6.167, -22.5, -22.283, -47.735, 15.217, 9.967, -41.433, 31.3, 19.75, 9.75, 45.85, 48.5833, 48.6, 44.9, 37.0556, 35.1842, 37.475, 46.7603, 46.7439, -22.68, 40.817, 61.8017, 33.8556, 9.967, -53.0, 18.567, 20.25, 26.9164, 26.9172, -35.367, 28.96, 53.0, 62.0911, 52.1167, 34.9858, 42.065, 57.0, 54.367, 32.3664, 40.9247, 8.033, 20.0256, 20.9286, 61.5356, 61.5667, 21.3814, 19.795, -1.5, 37.233, 63.7356, 63.9331, 38.417, 39.0, 39.224, 42.8264, -30.0, 42.8081, 77.4667, 17.25, 28.335, 22.667, 31.15, 60.7167, 60.7167, 63.0831, 45.083, 67.55, 67.55, 67.55, 36.067, 33.6, 40.4, 42.1, 21.95, 19.233, 47.383, 44.017, 50.5667, 42.2167, 52.6706, 49.3333, 49.4, 34.2761, -34.0112, 38.5, 33.665, 65.4, 41.5992, 42.2667, 47.8667, 50.5333, 50.4333, 46.8, 46.8, 51.7967, 50.6, 50.6, 31.717, -17.883, 34.3447, 35.9167, 20.617, 51.3906, 53.0333, 53.0333, 53.0333, 30.251, 53.733, 47.8092, 47.9375, -26.6125, 47.5139, 39.9367, 47.2236, 30.5497, 39.9058, 39.9733, 39.9369, 50.0167, -33.433, 39.0669, -32.783, -31.5086, 32.0706, 30.7836, -5.2, 13.7667, 34.133, 28.967, 64.6656, 64.6117, 59.8206, 61.0844, 40.3667, -20.1883, -20.1824, 61.9667, 25.9708, 37.6467, 43.3472, 50.05, 42.7022, 42.7611, 46.25, 46.8, 37.2008, -5.242, 47.383, 54.0, 34.9869, 64.1167, -31.18, 10.442, 29.626, 33.821, 42.5478, 40.3119, 34.78, -1.817, 52.4481, 40.6006, 43.6167, 32.2619, -25.9007, 46.7858, 48.55, 21.217, 47.91, 16.3, 22.3, 48.05, 35.7294, 32.1433, 35.8922, 35.7944, 45.7842, 36.5044, 39.8297, -34.67, 18.767, 45.1, 33.0375, 33.0114, 34.1508, 36.9, 39.1483, 60.33, 57.84, 33.2222, 28.28, 41.6628, 29.5439, 35.3692, 53.4167, 57.78, 44.9892, 44.9894, 40.0892, 16.77, 25.733, 62.8167, -22.55, 62.0628, 40.3131, 65.9325, 65.9764, -29.25, -27.617, 45.9717, 46.2, 44.115, 44.0433, 44.0728, -21.203, 11.867, 37.25, 51.1778, 25.617, 31.395, 46.5, 40.825, 49.6833, 16.983, 36.9194, 36.8864, 49.0667, 66.45, 61.1444, 47.22, 62.71, 63.3778, 61.4225, 50.25, 40.7308, 41.0319, -33.5803, 40.7, 41.8056, 49.65, 40.1178, 33.85, 26.7069, 46.6533, 49.4833, 48.9975, 47.2972, 12.6336, 40.3814, 32.4936, 44.2961, 43.5658, 64.566, 37.5972, 36.0686, 39.3036, 42.5242, 40.4269, 40.3667, 75.3833, 63.82, 53.07, -8.05, -8.1255, 44.9086, -29.183, 40.1667, 43.245, -27.2169, -27.245, 40.6508, 40.5158, 40.5175, -37.0194, 44.8656, 45.3767, 34.0528, 44.2558, 32.7047, 48.8197, 40.5708, 49.6, 54.0, 37.4767, 44.5486, 44.5483, 31.895, 40.1519, 45.0275, 39.9833, 43.5361, 43.4258, 40.0978, 52.3167, 52.1833, 38.8272, 56.55, 40.7981, 47.3, 45.4667, 50.9333, 51.0667, 47.8881, 47.8769, 45.1769, 42.1233, 37.9, 41.0036, 44.6978, 39.4667, 36.71, 45.7125, 36.7, 45.7075, 32.4219, 29.9667, -32.2028, 36.3558, 44.6833, 36.1353, 52.4167, 40.3575, 44.6103, 43.5231, 35.1311, 39.0633, 28.3294, 28.2939, 49.0433, 38.07, 44.7, 50.4667, 50.4333, 50.4333, 50.4167, 47.68, 50.9917, 36.3825, 48.8264, 49.3, 61.7161, 66.9, 47.6758, -74.017, 32.32, 47.7167, 58.45, 46.6, 48.8042, 61.1592, 61.183, -0.892, 36.2275, 54.2892, 11.75, -34.1711, -34.1983, 48.0667, 59.1332, 41.33, 42.5667, 39.4839, 39.5683, 68.0697, 40.9239, 47.4933, 48.6469, 66.5167, 21.43, -22.483, 30.0564, 33.7158, -27.45, 74.7167, 74.7167, 61.6, 46.1222, 48.77, 48.75, 41.1494, 50.9667, 43.8083, 43.8339, 46.6667, 47.3333, 35.6256, -14.3, 64.133, 64.1331, 43.2064, 43.0667, 56.533, 48.6708, 52.3, 47.5633, 48.9733, 50.0333, 41.8847, 45.5986, 45.6308, 29.717, 57.0139, -38.4612, 45.7575, 45.4164, 35.2333, 45.5378, 34.0608, 32.9964, 40.0261, -28.78, 46.8886, 37.2633, 43.0528, 38.7619, 44.7656, 46.3119, 34.925, 37.0947, 43.3314, 37.9192, 41.9064, 45.6333, 39.2422, 42.8783, -20.7017, 43.8833, 37.505, 49.1667, 49.1833, -20.7289, -33.6022, -33.6004, 39.8544, 31.3656, 38.2061, 54.5, 37.7131, 50.333, 42.9506, 43.1006, 45.2142, 42.45, 42.45, 43.05, 45.5022, 38.15, 41.4197, 48.217, 39.5447, 39.5122, 39.5264, 56.9625, 45.5, 43.6758, 45.4239, 45.3331, 43.4711, 44.02, 48.45, 51.117, 32.2056, 34.1936, 47.2489, -22.71, -9.967, -39.017, -33.085, -22.917, -51.617, -53.778, -32.017, 26.3769, 37.7219, 29.1853, 18.3906, 35.2522, -17.8, 21.933, 34.7397, 35.7178, 38.8172, 38.7872, 45.8783, 43.8864, 40.1167, 60.18, 32.0817, 58.917, 64.7097, 67.73, 47.1175, -30.8967, 53.0167, 47.4981, 40.9619, -34.083, 43.4508, 33.9669, 33.9511, 33.9519, 43.0308, 43.0661, -33.8258, 44.8542, -28.45, 57.9167, 50.2833, 45.7, 47.8, 46.9833, -34.15, 50.583, 45.979, 24.7, 24.9, 41.0331, 35.38, 54.6, 53.717, 40.8667, 44.1625, 37.3617, 36.4783, 37.3169, 36.1636, 43.9, 45.0853, 35.3736, 19.3, 30.5653, -33.8, 65.1, 45.6817, 31.8836, 48.5167, -37.1776, -37.1628, 39.0061, 36.4706, 51.1833, -18.317, 27.7894, 50.4667, 44.0531, -34.483, 4.833, 41.9117, 43.6056, 41.0664, 41.785, 43.8578, 43.1167, 43.9042, 43.2781, 51.8, 44.1317, 29.7286, 46.3667, 32.8711, 42.1928, 49.1667, -23.3753, 44.925, 34.96, 44.4667, 28.0286, 28.0836, 30.0239, 39.7594, 39.1008, 43.3636, 42.3969, 35.8361, 44.9917, 40.4333, 48.1833, 48.255, 38.0392, 32.6328, -34.5714, 49.5667, 35.9731, 36.9769, 52.3833, 52.4167, 35.855, 38.8561, 37.5514, 40.55, 42.5475, 34.9869, 41.5181, 35.8092, 42.9717, 51.15, 43.43, 66.9833, 43.9833, 46.8203, 41.5944, 41.5778, 41.6431, 40.5514, 25.18, 39.6681, 52.5, 65.31, -19.683, -20.7767, -20.7594, 55.183, 36.4161, 45.4169, 47.19, 33.8103, 49.017, 16.05, 48.6297, 48.8811, 37.9572, -24.4619, 32.8978, 50.2667, 53.2, -26.5442, 41.7831, 57.49, 12.58, 34.2453, 41.6042, 42.8592, 43.2339, 34.3478, 42.5906, 39.3389, 50.767, 54.085, 53.8833, -15.93, 25.97, 55.1, 65.04, -26.13, 33.6731, 33.655, 40.2878, 18.255, 58.06, 51.4333, 62.5669, 62.5769, 47.2325, 52.7833, -32.904, 32.4481, 45.4525, 48.8486, 48.85, 38.4506, 35.9028, 41.6097, 43.2131, 43.2389, -34.5519, 50.8333, 44.7178, 47.8758, 30.9461, 51.6167, 51.5667, 41.8186, 43.35, -34.5267, -34.5106, 42.2033, 37.5019, 54.1667, 34.5431, 44.7511, 37.4747, 44.1, 53.933, 55.75, 49.0833, 52.25, 16.5, 48.7272, 51.9108, -42.025, 63.24, 61.39, 54.1817, 51.9, 57.2, 47.25, 67.525, 33.38, 33.3075, 33.4, 36.6389, 32.8556, 14.1717, 36.65, 53.1303, -10.733, 49.218, 51.8067, 49.3856, -67.567, 46.4808, -38.12, 48.4714, 51.9606, -32.0069, 48.1819, -12.5, 39.0333, 37.6178, 46.4414, 46.3256, 64.6847, 41.4272, 43.7639, 37.2597, 43.85, 48.25, 48.2167, 66.5789, 66.4981, 45.89, 45.08, 39.3419, 69.0833, 39.4286, 36.3464, -30.4829, 35.945, 38.7153, 25.3867, 47.4869, 45.7189, 51.5, 39.0, 40.2022, 40.1731, 42.2231, 31.7611, 52.5833, 44.4, 48.2783, 48.8542, 46.2964, 48.3542, 57.783, 54.095, 27.783, 33.3678, 24.02, 57.9, 44.5308, 43.95, -23.5293, -17.917, 33.583, 39.033, 60.4217, 60.3667, 60.4331, 42.6042, 49.6478, 36.2333, -14.47, 43.8053, 39.6042, 42.7547, 40.1347, 38.8611, 41.2944, 31.8092, 44.2333, 45.2667, 36.855, 34.4536, 35.2578, 34.51, 38.8711, 38.8761, 38.9617, 53.78, 23.417, 70.4003, 40.7022, 32.5344, 39.2764, 35.4286, -36.1047, 40.2506, 51.85, 43.6253, 38.8417, 52.817, 50.101, 42.467, 58.1, 46.2986, 46.5333, 37.9136, 45.2172, 40.4661, 58.3831, 51.57, 40.9583, 55.49, 38.15, 50.1167, 48.6167, 49.2142, 27.87, 29.8881, 31.2803, 43.9333, 43.9333, 45.2167, -10.5, 36.2, 45.8667, 48.9578, 72.0, 72.0, 45.85, 48.4661, 38.5556, 38.5069, 38.5667, 38.6667, 38.6956, 39.4172, 42.4194, 34.6847, 39.6375, 45.5333, 45.7, 48.9417, 42.15, 47.25, 39.8958, 59.14, 32.815, 32.8547, 32.3, 33.267, 23.85, 39.4317, 46.3953, 41.8667, 41.4, 43.5097, 36.25, 43.4122, 43.5331, 46.8436, 58.3333, 47.3667, 37.0, 38.0858, 32.3167, 29.05, 34.867, 36.2, 45.45, 60.317, 44.9, 43.9517, 34.1736, 34.3703, 45.726, 39.7675, 3.883, 45.8333, 38.5067, 45.8489, 50.0392, 47.315, 34.5172, 43.0114, 44.42, 45.3167, 28.3378, 16.051, 47.3164, 38.1642, 46.8667, 41.2078, 49.82, 47.3036, 15.1167, 23.067, 67.34, 35.55, 17.15, 57.667, 59.9, 10.451, 17.039, 42.1506, 40.9592, 40.9564, 59.91, 64.4942, 64.59, 48.7842, 56.683, 34.051, 66.5294, 36.3561, 37.6331, 38.6158, 38.6453, 37.6344, 43.7447, 34.9444, 44.905, 61.17, 61.09, 38.5328, 38.9594, -16.15, 36.6594, 36.6636, 38.9139, 40.51, 38.8, 42.1611, 42.1236, 35.6836, 38.365, 39.4247, 43.3544, 43.9256, 35.6967, 38.3406, 66.8208, 66.8331, 67.1622, 67.215, 67.7475, 35.4572, 31.567, 47.2667, 50.6833, 50.7, -32.9869, 44.9333, 45.15, 45.1875, 48.6667, 66.8125, 29.1, 60.3733, 60.4631, 60.3239, -24.85, 50.9667, 66.8483, 37.6511, 25.367, 25.45, -31.433, -24.033, 48.8167, 48.8833, 36.8894, 43.6, 44.0444, 40.7364, 40.7781, 40.7708, 29.5622, 42.5167, 33.9978, -13.017, 47.8, 52.0792, 45.4, 23.317, 53.25, 39.5667, 57.35, -14.279, 36.4528, 46.5331, 41.817, 37.7, 41.283, -22.7433, 31.0619, 13.333, -71.7, 24.8, -2.083, 35.247, 43.1792, 30.23, 38.1917, 5.9, 61.7881, 61.8292, 41.52, 57.0, 34.7436, 50.3531, 35.2239, 30.1414, 32.9744, 45.6833, 49.1, 30.4528, 34.1419, 35.2106, 65.9606, 50.7, 48.2942, 53.25, 53.25, 37.5442, 46.1136, 41.1167, 41.45, 43.4194, 55.2831, 38.9817, -24.7298, 44.4667, 40.4633, 50.5, 46.7953, 34.6119, 34.6111, 47.5775, 46.5456, 41.4667, 34.2878, 55.3167, 28.8147, 43.4569, 35.5347, 35.7047, 63.967, -5.85, 38.25, 29.4, 35.594, -31.37, 49.5033, 37.094, -33.68, 26.97, -30.83, 43.4644, 43.4917, 43.4292, 39.9578, -2.433, -13.72, -13.762, 13.967, 33.7442, 33.68, 26.0839, 34.4167, 34.4142, 33.4833, 34.4258, -17.8, 36.9906, 33.9958, 4.6, 35.7667, 35.6194, 35.6169, 34.1208, 35.6008, 23.48, 34.95, 36.971, 39.817, -21.96, 34.8994, 37.8225, 34.0158, 34.0075, 34.3119, 36.3478, 31.7625, 34.9358, 38.4381, 26.2656, -36.567, 38.4786, 14.7833, 33.9778, 33.5286, 38.5039, 31.8728, -33.5, 45.5458, 42.8, -27.767, 42.8878, 7.069, 23.45, 44.4333, 44.4356, -21.53, 18.433, 44.5456, 34.635, 18.217, 39.7, 12.6, 12.583, 31.3711, 31.3706, 29.5253, 7.841, 29.5442, 29.3833, -40.783, 29.4508, 29.3389, 31.5069, 23.71, 34.1344, 28.8647, 21.53, -14.87, -14.867, 28.78, 33.3717, -41.151, 33.1819, -0.917, 7.8, 32.5722, 32.7336, 32.8667, 32.8158, 32.7672, 32.7167, -24.667, 23.15, 7.68, 24.85, 37.7706, 37.6197, 37.7281, 34.1061, 37.3117, -14.967, 27.26, -16.367, 15.73, 23.21, 33.7869, -16.267, -13.067, 35.1086, -17.833, 37.3497, 23.05, 26.48, -31.571, 25.55, -31.5, -26.667, -25.8, 9.917, -49.307, 45.035, 18.13, -33.273, 0.862, 37.1953, 37.0533, 37.1822, 35.2372, 35.3056, 22.2075, 29.8833, 43.9375, -33.083, -16.333, 44.1944, 32.685, 33.25, 33.0956, -24.067, 4.747, 23.91, 21.98, -34.588, 37.9983, -13.3, 28.58, 31.1833, 31.2842, 13.7, 43.3075, 43.3606, 32.2714, -22.017, -6.6333, -0.133, -6.75, -23.217, -13.43, -22.1, -2.533, -28.4, -18.7, -23.5, -23.617, -23.433, -21.483, -20.91, -15.81, 31.3972, 43.067, 58.367, 36.5331, 43.8667, 43.82, 44.3853, 64.28, 56.47, 27.4014, 46.017, 41.4528, 43.0333, 51.5667, 43.0078, 49.0833, 34.3961, 55.6, 32.05, 9.15, 9.3, 58.7605, 27.2169, 38.517, 45.0839, -1.833, 61.71, 43.0, 43.0, 51.3, 59.2856, 50.8167, 51.479, 39.733, 31.4831, 31.6908, 33.167, 52.1667, 52.1667, 52.15, 52.1167, 71.97, 4.95, 4.95, 47.3667, -24.4, 58.4356, 58.44, 67.5, 24.567, 12.683, 48.7833, 48.7833, 48.7833, 45.9481, 47.717, -31.7, 30.6264, 59.6483, 34.425, 43.375, 43.2619, 46.4867, 46.5333, 46.4833, 46.4794, -7.983, 34.6647, 47.4536, 46.4667, 39.51, 35.1525, 32.13, 32.1, 16.55, 40.7, 7.98, 8.032, 57.7667, 39.6361, 57.83, 61.9458, 61.8406, 63.6936, 33.3622, 33.2106, 67.2853, 41.3003, 41.3011, 45.3667, 64.97, 46.4858, 19.233, -41.4639, 53.3, 45.7728, 49.9203, 47.68, 47.9608, 54.8, 54.8, 54.8, 48.2003, -12.6167, 49.9758, 51.9131, 51.7667, 52.3156, 54.5289, 49.7458, 53.6631, 49.4231, 50.7294, 47.33, 50.65, 45.0, 50.3, 47.2, 21.495, 21.4994, 39.0167, 52.38, 41.1383, 47.6469, 50.4939, 43.8, 50.3167, 50.3, 48.7778, 49.0828, 49.3289, 47.5778, 50.6456, 50.0583, 48.3667, -79.9, 53.6442, 14.633, 39.2453, 48.8306, 39.6842, -32.0335, -32.0632, -37.871, 41.1117, 37.65, 51.5833, 40.4831, 52.3833, 46.5, 41.8644, 41.8706, 34.6736, 34.6942, 38.6886, 33.6228, -41.1708, 36.7458, 41.8167, 44.9469, -43.0425, 52.3667, 38.4747, 39.4872, 48.1, 29.7714, 44.65, 35.4661, 35.2683, 45.9869, 47.5303, 47.6872, 47.4444, 19.1336, 45.2536, 27.02, 27.1525, 45.1833, 49.45, 47.271, 39.1836, -26.5, 38.7042, 38.6753, 37.1317, 52.7833, 40.8592, 42.5333, 34.8956, 48.4958, 23.593, 52.9, 39.3167, 47.1828, 47.2142, 51.9056, 64.0, 63.767, 46.4331, 13.4, 40.9478, 39.295, 62.9367, 45.5167, 62.9167, 50.433, 66.25, 46.6722, 66.6033, 63.2, 45.51, 42.4075, 59.4433, 47.867, 35.3322, 36.5419, 40.7831, 40.8206, 50.1667, 40.3589, 31.91, 32.4111, 32.4567, 32.335, 35.1647, 44.4403, -6.967, 50.4167, 52.183, 50.867, 42.1569, 32.7131, 35.2317, 50.35, 54.1, 50.933, 35.591, 34.6314, 42.317, 38.267, 44.1383, 38.3333, 46.2403, 46.2833, -10.467, 69.2347, 13.55, 54.817, 16.667, 36.0, 12.534, -2.6, -24.27, 37.567, -1.268, 50.2167, 50.2167, 50.2167, 48.085, 49.567, -6.117, 51.1667, 54.633, 47.017, -15.883, -6.46, 53.9, 59.6, -11.63, 32.28, -1.867, 44.2319, 40.9586, 43.3981, -19.467, 36.18, 36.178, 40.567, 42.6833, -24.1542, 41.7, 65.9383, 49.9167, 56.35, 60.38, 50.68, 35.9297, 39.35, 37.4167, 46.0, 53.7667, 40.8997, 60.3539, 60.1883, 60.1283, 42.6003, -4.667, 38.9822, 33.6325, 34.72, 41.8431, 43.533, 38.433, 36.5672, 56.08, 43.73, 35.4867, 32.7997, 28.284, 34.346, 40.0, 32.297, 36.4167, 22.25, 39.1614, 41.217, 50.7333, 23.133, 73.18, 33.9283, 35.215, 21.73, 31.4, 31.167, 46.5667, 45.217, -34.5683, 52.702, 23.4, 44.4, 22.783, 24.667, 27.33, 27.23, 55.367, 25.333, 37.5, -25.8925, 47.5983, 38.8961, 39.3983, 17.467, 40.7142, 49.65, 37.135, 44.7631, 52.798, 46.5667, 35.3647, 40.0328, 48.65, 45.6167, 39.5719, 44.6333, 44.6333, 43.1211, 43.75, 43.7694, 45.9667, 46.1833, 37.715, 43.2167, 30.6886, 53.381, -41.3886, 39.6828, 48.5042, 38.2, 39.4078, 39.5781, 39.5283, 35.4922, 35.3253, 43.1808, 60.72, 44.5478, 44.5, 40.0331, 47.2381, 40.7672, 45.4511, 30.73, 29.6, 62.1, 41.733, 22.55, -37.9075, 50.17, 68.8167, -36.4289, 45.4333, 45.4333, 42.6772, 45.5325, 42.7, 43.6303, 34.3019, 44.7694, 44.8406, 44.76, 48.3833, 33.7033, 46.95, 33.77, 46.4658, 38.033, 51.867, 35.155, 25.6, 32.717, 31.1, 24.817, 33.95, 68.95, -23.1, 53.85, 38.75, 33.45, 40.0589, 36.795, 29.2, 41.7358, 32.5, 37.667, 37.133, 29.533, 42.3703, 40.8217, 43.217, 66.25, 34.983, 42.1, 38.5528, 33.6472, 50.45, 17.667, 38.8, 47.5319, 53.3333, 50.833, 44.9667, 42.9383, 38.9161, 45.3767, 45.4, 34.2639, 42.0181, 32.4506, 32.5, 32.4267, 32.5428, 32.3919, 32.4514, 30.5667, 38.0, 42.317, 32.5, 40.3944, 55.9331, 51.4833, 51.4167, -3.68, 45.8, 43.4047, 1.6, 1.55, 2.262, 2.3, 39.9811, 35.18, 35.2, 33.068, 47.7283, 40.7361, 40.2706, 41.2294, 41.1014, 62.38, 52.25, 50.8544, 39.5833, 33.4, 31.1831, 39.5678, 31.5553, 48.0728, 47.5783, 47.5667, 32.9167, 38.6319, 43.0019, 37.4, 41.3328, 68.7553, 64.6833, 63.0081, 37.917, 57.25, 11.35, 36.8775, 24.82, 35.7606, 36.3697, 62.76, 33.5636, 37.7617, 34.4722, 37.8089, 45.0058, 48.0667, 42.8589, 43.0022, 32.6333, 42.95, 50.55, 33.3667, 44.8728, 35.97, 61.5175, 40.6008, 43.1244, 42.75, -25.24, 51.983, 22.767, 44.7, 45.0167, 50.0017, 17.13, 54.4167, 58.08, 58.78, 11.12, 10.603, 48.9981, 55.54, 41.075, 27.95, 1.35, 38.5, 37.5014, 42.033, 28.0353, 40.1, 46.9167, 53.8833, 46.2167, 42.3964, 42.3914, 43.0558, 43.5878, 43.7347, 50.1333, 50.1167, 42.8931, 43.183, -81.65, 54.5, 58.8875, 31.2, 66.9167, 45.6656, 45.6689, 44.2842, 49.4833, 4.217, 57.0575, 57.0481, 20.133, 39.75, 39.75, 29.2, 29.2, 43.2667, -8.35, 57.733, 63.1883, 59.4547, 59.4556, 46.25, 45.6228, 58.4, 58.49, 56.84, 53.1467, 64.62, 60.11, 69.3777, 59.1831, 36.933, 60.4839, 55.49, 44.9436, 65.2019, 47.6833, 41.97, 42.017, 58.39, 54.0, 56.65, 68.1503, 59.15, -24.983, 45.3367, 57.317, 61.9772, 37.3133, 38.9, 62.7089, 50.2917, 41.8586, 45.6333, 59.9081, 55.2833, 55.3, 55.3, 55.3, 52.97, 53.45, 51.5, 71.0839, 48.65, 30.265, 30.3433, 44.4625, 42.0167, 41.0558, 42.67, 46.3, 52.35, 42.5667, 37.9833, 53.0, 53.03, 46.5, 44.3667, 48.62, 37.5339, 43.7167, 54.8333, 54.8167, 35.5164, 37.1644, 40.7833, 39.6633, -40.8347, 30.0067, 34.4678, 35.9419, 38.8822, 46.4394, 39.7772, 34.1158, 38.7839, 40.6044, 53.3667, 54.2833, 54.75, 46.8367, 35.9106, 40.5453, 44.1333, 45.0997, 44.1333, 58.1422, 42.4667, 50.7333, 47.5414, 39.0403, 40.55, 34.5081, 49.0667, 38.3989, 62.0303, 35.3333, -33.7844, -33.7676, 35.4519, 38.2364, 43.95, 32.71, 16.75, 54.3, -3.7, 34.0828, 34.3558, 67.3678, 67.8206, 68.0839, 39.425, 39.56, 42.6514, 45.7289, 35.2803, 59.75, 61.27, 59.19, 43.2078, -6.126, 52.1256, 42.695, 52.27, 61.1581, 61.5644, 33.23, 31.883, 24.467, 51.0606, 67.9, 38.25, 8.98, 58.8842, 50.1167, -13.85, 40.9258, 43.4833, 39.9286, 60.4667, 60.4194, 49.2, 51.1408, 56.2, 32.4033, 54.033, 51.63, 46.3575, 53.0, 45.7831, 23.633, 38.2456, 37.1167, 37.0556, 40.6153, 30.3367, 40.6239, 41.39, 42.95, 51.3531, 67.0167, -10.667, 7.2, 32.65, 47.05, 47.05, 50.3756, 45.3242, 52.3167, 38.2994, 30.5831, 37.9672, 38.3167, 21.333, 47.6833, 49.7667, 46.0333, 41.775, 69.7889, -23.48, 52.4, -0.933, 65.54, 61.7167, 57.917, 36.77, 51.15, 53.1, 52.53, 46.533, 63.65, 43.58, 64.1108, 23.767, 20.6, 35.4831, 35.5333, 36.283, 36.712, 46.2333, -0.73, 49.65, 50.8982, 56.3333, -31.2319, -31.2353, 30.5403, 33.9947, 38.7506, 26.47, 41.7072, 44.6392, 36.6953, 45.1994, 49.0167, 41.3333, 37.9667, 45.45, 45.5906, 40.6764, 42.4014, 44.6264, -17.6053, 19.0825, 38.8983, 44.0725, 42.9011, 45.0167, 39.8583, 42.7667, 26.2, 26.0814, 42.5667, 33.3814, 38.4239, 47.5619, 49.4667, 47.5833, -30.9225, 55.08, 49.0, 37.5122, 40.0797, 60.38, 33.9153, 39.5558, 61.1, 43.9364, 34.9078, 38.1167, 44.9083, 35.9067, 49.75, 49.75, 36.3894, 44.5139, 36.1981, 43.5, 25.52, 38.8008, 39.2836, 44.3606, 43.1653, 46.1833, 43.1644, 50.4167, 38.6553, 40.4725, 40.2472, 46.4578, 53.3667, 43.4231, 46.2667, 55.7, 43.5167, 47.6667, 47.4175, 47.6831, 47.6217, 47.6811, 52.1833, 51.8167, 45.8236, 49.0167, 42.4306, 38.6667, 51.1, -29.667, 41.8161, 36.3628, 34.1311, 37.2353, 44.6667, 44.2469, 39.8361, 37.3694, 39.8447, 37.2833, 36.4711, 43.3436, 39.9667, -24.123, 40.5711, 42.8222, -33.7065, 35.6764, 42.5333, 40.5931, 37.5625, 38.0406, 40.4403, 35.9325, 46.1833, 37.7, 33.4792, 46.7833, 49.7833, 49.7, 49.9, 43.4869, 44.7667, 32.9083, 47.1833, 42.0667, 35.37, 39.1833, 67.45, 62.45, 55.87, 55.43, 59.2, 44.9667, 52.2331, 34.083, 37.2714, 41.9983, 30.9172, 38.1669, 41.5178, 48.9167, 59.95, 46.0556, 32.9403, 41.1247, 39.4833, 47.2767, 47.2833, 51.2333, -26.92, 43.9822, 47.1547, 59.95, 46.4167, 42.6333, 44.2206, 35.1767, 48.4564, 44.1692, 44.1708, 44.9528, 51.88, -28.6617, 41.9564, 37.8603, 42.0414, 34.1667, 41.4581, 58.0, 49.7333, -11.01, 56.5, 29.9381, 44.2667, 46.5, 47.8664, 51.3, 35.9247, 42.15, 39.0858, 35.81, 40.7933, 32.2822, 33.4692, 81.6, 38.1692, 58.9569, 50.1833, 49.2333, 52.8967, 45.05, 59.3, -37.068, 44.7892, 44.75, 28.4631, 18.25, 39.6253, 40.4883, 36.6736, 46.8947, 38.0053, 40.9167, 51.45, 73.7667, 47.688, 39.9714, 48.3508, 50.2892, 49.5333, 54.2503, 29.7236, 64.0225, 65.09, 38.2692, -35.2795, 65.0667, 44.2661, 45.3903, 32.2314, 48.5333, 48.5667, 75.42, 38.2144, 40.6278, 31.8347, 31.2569, 38.9764, 53.5994, 52.35, 52.3333, 40.3764, 41.4039, 46.5136, 47.7333, 44.5114, 46.5131, 44.7344, 55.9333, 63.3833, 33.5575, 50.6, 49.1333, 45.4333, 46.5833, 46.85, 46.2, 46.8167, 45.1667, 46.7833, 45.5, 46.4167, 46.7333, 45.6167, 45.2167, 47.5667, 48.4, 45.65, 16.72, 43.8667, 51.6692, 48.62, 31.0372, 45.0417, 45.0456, 36.1175, 36.1181, 36.1347, 40.2333, 36.1208, 48.5394, 36.1625, 43.9, 45.15, 35.8953, 46.8536, 41.75, 44.87, 59.35, 59.34, 59.3533, 42.3997, 37.6967, 37.9994, 37.8892, 16.33, 59.2333, 68.58, 53.5, 33.4311, 39.0044, 61.0008, 61.6467, 39.3669, 41.5, 36.9742, 39.5861, 50.1167, 59.25, 67.5, 63.6, 64.95, 63.32, 63.28, 63.3028, 39.5625, 42.6469, 58.33, 58.2, 65.7, 41.795, 44.5767, 48.6667, 42.9108, 36.6019, 59.95, 51.103, -42.155, 48.55, 36.4414, 43.3833, 43.3667, -35.256, -35.2836, -36.8472, 50.4, -42.7681, 51.05, 51.0333, 42.9833, 39.3047, 48.8283, 42.1, 40.1833, 42.1894, 39.5631, 33.5406, -32.7963, 42.0256, 46.7153, 58.083, 61.7, 35.8683, 46.9167, 58.93, 59.1513, 39.4344, 49.217, 41.0125, 61.9157, 36.6364, 47.0, 52.3667, 37.4833, 44.8797, 55.54, -32.58, 48.6833, 48.7703, 34.4744, 48.8292, -33.517, 65.0733, 46.7167, 44.8592, 45.2833, 46.5333, 47.9833, 49.45, 45.6667, 48.5667, 45.1333, 45.1167, 51.3833, 47.95, 44.07, 29.8858, 29.8722, 45.0833, -16.45, 46.4833, 45.6667, 43.2, 43.1167, 38.6856, 38.9286, 46.35, 38.8147, 47.9167, 45.5433, 46.2833, 46.05, 45.4117, -20.887, 48.63, 46.3167, 46.0667, 46.1, 46.4833, 47.4331, 37.1069, 46.15, -28.0489, 56.6, 45.9156, 45.8833, 48.05, -15.933, -41.3381, -41.3225, 45.9833, 45.5667, 45.8489, 38.1417, 45.95, 45.6911, 43.9903, 45.7333, 48.8833, 45.8, 47.0933, 47.6167, 47.5667, 34.5183, 31.9497, 39.7736, 46.0833, 5.5, -22.3472, 46.9167, 43.0333, -22.3458, 47.15, 47.15, 54.3, 38.75, 38.7525, 38.6292, 38.6572, 38.6333, 45.75, 45.2, 44.7, 48.4089, 30.1333, 30.0858, 48.7383, 46.9167, 62.0528, 48.7411, 48.7375, 50.4367, 46.6833, 46.5333, 45.7333, 44.9461, 57.1575, 54.0167, 44.9319, 57.1553, 47.2333, 44.3222, 46.45, 27.7628, 59.9667, 27.7628, 27.9106, 38.7556, 54.333, 46.763, 46.25, -21.333, 48.183, 48.183, 48.6167, 46.2167, 47.3108, 45.7667, 46.3333, 47.85, 45.2167, 45.9333, 42.7667, 47.5667, 46.1667, 35.3028, 37.4414, 52.95, 44.7167, 46.6333, 46.6333, 50.2667, 36.7297, 40.0181, 43.6728, 39.2494, 40.9167, 29.6219, 52.567, 68.62, 54.1, 56.5, 44.383, 32.917, 63.8467, 42.4, 45.9111, 45.8478, 63.85, 51.35, 45.1667, 32.76, 39.5608, 42.9675, 38.2339, 34.5658, 33.1481, 3.131, 5.524, 6.167, -2.898, 0.461, -1.638, 49.1167, 30.0175, -8.489, 59.883, 55.233, 49.5667, 46.4333, 46.4333, 37.1397, 38.22, 34.4547, 45.1167, 33.0367, 42.9592, 42.7, 36.8861, 45.3036, 43.45, 42.2322, 39.7167, 34.6033, 34.333, 33.9364, 33.9667, 50.85, 50.88, 48.8869, 40.3914, 44.4122, 44.5169, 43.0908, 51.7833, 51.9667, 62.5244, 62.43, 44.9031, 62.675, 59.86, 46.3236, 38.4231, 39.5517, 34.0028, 43.8933, 47.55, 35.3694, 34.1953, 44.0761, 62.15, 52.45, 49.433, 7.362, 33.7156, 47.4775, 69.5881, 69.5794, 60.4, 64.9025, 64.9305, -0.151, 33.3003, 46.7, 47.1928, 40.0314, 14.467, 40.45, 22.533, 63.6, -7.217, -7.38, -7.217, -27.159, 21.2, 9.117, 61.25, 9.8, 14.883, 44.9958, 41.1042, 46.1, 31.7078, 49.1, 49.1333, 42.9967, -7.83, 42.15, 40.4167, 0.064, 55.2833, 45.7167, 41.2214, 41.325, 41.2003, 62.78, 39.9508, -32.38, 38.3772, 44.6122, 45.0667, 61.7139, 44.665, 52.8361, 38.6611, 42.8, 50.1, 36.05, 54.1333, 78.25, 59.83, 77.8831, 62.0192, 62.05, 59.4442, 56.8, 45.35, 55.1, 43.617, 44.8, 62.3292, 51.45, 68.2453, 49.735, 68.15, 48.6, 50.6139, -31.9558, 32.7333, 35.5733, -42.1236, 60.7278, 43.2436, -35.3766, -40.7292, -40.7314, 42.1836, 47.9161, 52.05, 52.1167, 43.4372, 43.4022, 43.6167, -17.1142, 48.9972, 38.9664, 43.3333, 46.15, 47.8833, 50.3, 50.3, 50.2667, 60.0, 53.9167, -3.442, 41.7644, 46.1667, -33.9465, 46.1667, -33.8414, -33.8607, -33.8521, -34.0, 61.6667, 33.2053, 63.04, 24.9, 44.4833, 44.4667, 60.35, -69.0, 40.6661, 37.9928, 43.1111, 40.817, 61.3, 53.183, 53.4, 46.25, 46.9167, 47.1667, 47.2667, 46.4667, 46.0833, -28.283, 46.75, 37.067, 36.95, 33.6, 49.8, 45.7167, 35.0197, 40.2353, 6.58, -5.083, 4.42, 38.08, 28.365, -28.7551, 46.73, 11.3, -18.0, 32.7225, 47.2472, 47.15, 47.2675, 38.3422, -31.7, 34.283, 58.7167, 48.15, 37.68, 36.3, 62.2333, 35.1503, -14.3333, 47.2, 9.664, -12.4, -12.3, 42.4, -17.55, 35.9369, 61.8167, 39.1678, 39.1667, 33.1714, 14.9, 46.6014, 53.6167, 25.033, 21.483, 46.4, 49.05, 61.3044, 22.15, 65.5831, 65.5739, 37.783, 36.25, 56.07, 60.68, 35.5, 55.95, 16.883, 37.1, 34.317, -14.483, 36.15, 60.95, 61.0267, 4.896, 56.38, 8.85, 53.8667, 42.517, 32.6875, 33.4781, 62.32, 33.4164, 33.5722, 33.4411, 30.3975, 30.3961, 38.435, 38.4331, 59.3831, 32.3994, 34.9058, 32.35, 36.0381, 59.77, 69.55, 9.557, 9.4, 22.8, 46.9589, 13.767, 52.7331, -24.8819, 41.7331, 25.7608, 27.7053, 27.9619, 61.4656, 61.4667, 61.4867, 61.5175, 22.2, 22.0, 43.9, 43.8583, -31.0742, 63.3783, 38.3167, -6.1, 65.1667, 65.1744, 34.2069, -19.634, -37.237, 30.733, -5.083, 52.5458, 35.7297, 35.78, 37.8283, 39.67, 55.383, 51.567, -2.8, 2.85, -19.455, 62.4503, 50.6394, 21.82, 10.82, -25.033, 36.3906, 14.917, 35.4478, 44.5167, 56.9, -34.4048, -6.5, -8.16, 1.35, 42.85, -44.517, 35.8847, -30.7051, -31.8896, -31.8986, 3.2, 67.91, 33.3722, 49.567, 36.0153, -21.55, 40.4344, 64.92, -25.6408, 28.1522, -42.3003, 58.3, 58.25, 46.5, 48.6667, 57.2, 41.27, 65.5997, -43.2397, 54.85, 52.8, 62.9, 45.6833, 55.2, 36.05, 34.983, 51.6667, 51.6667, 33.2422, -36.4378, -6.0, -23.017, -27.55, 41.9003, 41.8756, 59.583, 25.0069, 4.313, 4.3, 14.0333, 30.57, 35.9225, 30.5844, 46.9989, 42.7, 41.2333, 45.0333, 38.8183, 38.9078, 45.1017, 25.8, 36.465, 39.0, 67.47, 41.68, 41.75, -2.92, -21.255, 44.9044, 35.42, 18.91, 42.0028, 40.3544, 37.383, 36.9233, -3.3667, -6.85, 60.47, 60.167, 50.9789, 14.05, 35.1011, 35.683, 64.6831, 23.779, 35.0233, 41.7767, 41.7636, 20.2, 40.983, 41.933, 57.9, 37.2, -21.7125, 48.85, 63.44, 35.3675, 37.9492, 37.9531, -5.3, 32.1, 18.25, 9.017, 49.198, 34.4806, -0.485, 49.15, -34.4292, -34.4061, 28.95, 33.4258, 31.0781, 36.03, 41.7833, -38.75, 28.4775, 28.0475, 36.5, 25.117, -13.536, -26.841, -9.15, -45.594, -19.6423, 36.325, 68.7333, 67.302, 43.8111, 44.0647, -29.0479, 25.6097, 19.38, -17.85, 44.7833, 45.9347, 25.35, 21.419, 21.52, -5.083, -5.05, -22.41, 69.2, 29.3486, 29.4744, 37.2294, 42.467, 42.0, 45.0, 49.533, 54.4667, 48.8167, 54.5, 39.4467, 48.55, 32.71, -33.6908, 39.45, 39.4519, 39.4708, -22.4518, 46.7939, 29.91, 47.07, 40.3494, 60.1667, 60.1667, 20.2, -16.183, 40.85, 50.7, 53.7625, 58.65, 35.58, 57.517, -26.3911, 33.4367, 33.3739, 33.4536, -28.8544, 41.8017, 26.617, -21.1642, 45.0331, 46.533, -24.62, 17.383, 35.55, -24.4935, 19.75, -27.9867, -27.9978, 40.6167, 15.3167, 19.1167, 43.1833, 44.2814, 46.7994, -84.6, 43.6483, 43.7231, 43.7536, 40.5, 46.1, 46.05, -21.4606, 39.3528, 45.6069, 45.6194, -21.8125, 53.8167, 53.9667, 53.9667, 43.2644, 29.7547, 48.0667, 48.1331, 41.7197, 8.467, 8.483, 49.483, 32.9028, 31.9172, 31.8814, 39.8644, 29.4822, 55.8, 47.5806, 47.5933, 35.7636, 55.75, 73.2333, 35.3, 48.2211, 44.5667, 53.2167, 32.9206, 54.925, -36.4917, -36.5031, 44.15, 51.7667, 45.1219, -25.1256, 41.93, 36.465, 33.3144, 76.5167, 44.3667, 17.666, 48.5167, 48.3667, 48.4167, 48.3667, 56.7, 39.1, 34.583, 41.883, 48.31, -29.4448, -29.4345, -35.4408, 44.4122, 18.567, 18.57, 36.7664, 41.1167, 31.4461, 45.85, 59.7, 40.633, 71.58, 28.4114, 14.22, 45.4539, 45.4294, 45.4569, 42.8667, 58.867, 45.1569, -15.6614, 44.0333, 45.4283, 41.6294, 29.237, 43.8833, 45.7667, 48.55, 48.5667, 43.2433, 50.7, 40.4447, 40.4333, -14.5229, 27.7, -9.133, 28.63, 56.54, 47.3167, 65.5667, 48.3989, 41.8975, 41.4792, 38.125, 41.7797, 44.6667, 42.0283, 40.2233, 41.3331, 41.415, 56.499, 54.5, 49.8589, 56.32, 10.767, 34.3325, 24.293, 55.75, 28.6242, 28.6158, 41.63, 41.6267, 48.6, 46.35, -2.225, 65.826, 56.533, 55.867, 20.98, -18.117, 18.4356, 45.2333, 58.15, 32.1, 41.1386, 34.5786, 34.765, -35.817, 23.43, 47.73, 53.55, 49.0833, 5.3264, 55.233, 43.75, 62.235, 63.8208, 63.3336, 40.3, 43.2333, 43.275, 43.2397, 42.833, 56.28, 41.833, 34.067, 35.683, 62.9572, 36.4667, 39.8844, 42.0356, 31.175, 41.65, 41.5886, 46.4833, 41.5631, 43.7, -23.383, 1.017, 63.98, 19.283, 53.4333, 42.617, 16.717, 31.7119, 55.117, 50.05, 63.95, 56.5, 39.95, 57.5, 37.8167, -22.6967, 48.7806, 26.17, 45.967, 43.6, 51.2, 33.4203, 38.0511, 61.6511, 41.9, 40.5353, -37.572, -25.9714, -21.0344, 52.47, -27.5425, 38.6944, 38.7456, 39.0722, 38.9503, 39.0725, 54.8167, 46.1, 45.4353, 35.2667, 45.88, 45.033, 45.0, 31.4028, 65.8881, 43.6667, 43.8667, 43.6667, 43.6333, 37.7417, 43.6833, 43.7833, 56.48, 59.1842, 62.49, 33.8017, 40.4833, 21.5167, 25.568, 35.7992, -29.35, 37.9769, 38.3028, 42.4881, 42.0803, 42.0647, 60.14, 62.017, 57.72, 70.2456, 40.8206, 53.05, 58.3831, 56.9631, 56.9494, 48.733, 48.7, -23.1, 20.55, 35.483, 59.97, 27.838, 46.1167, 33.12, 43.1, 47.5, 41.7511, 40.5333, 47.7817, 44.9167, 48.3706, 46.3308, 35.6031, 42.7, -19.2483, 30.7931, 43.9333, 43.4719, 36.717, 33.92, 12.5, 41.0, 45.6167, 44.2394, 37.6819, 37.7967, 45.81, 33.2667, 42.3161, 68.75, 55.85, 55.8331, 7.517, -31.9861, 48.2333, 36.3919, 37.911, 40.0, 48.7667, 47.8781, 53.9642, 44.7408, 44.7608, 50.3, 38.2667, 49.0, -33.217, -43.2, 41.7108, 43.9994, 46.1, 40.0825, 41.9153, 44.1167, 40.1739, 40.2769, 44.1167, -21.84, -38.387, 27.2, -20.783, 36.6511, 41.05, 40.6833, 42.8286, 38.175, 54.0681, 38.655, 38.4661, 45.9469, 49.7517, 49.7492, 45.65, 36.9111, 37.35, -20.5, 37.1786, 37.1503, 37.2622, 14.767, 48.1333, 40.7864, 43.6333, 40.7264, 54.3, 42.7667, 34.45, 37.53, 42.8125, 32.67, 32.9, 32.8697, -29.86, -7.85, 8.5, 51.8333, 54.6167, 49.45, 62.7, 48.15, 46.35, 46.3833, 54.0994, 53.5833, -72.017, 69.5, 69.6539, 69.6767, 35.7636, 63.4106, 63.45, 48.0317, 47.2842, 47.2333, -13.7542, 45.5533, 40.7333, 44.1111, 47.8669, 60.4333, 46.1989, 31.8075, 48.4806, 75.952, 48.7167, 31.79, 39.8283, 42.75, 48.4667, 31.8606, 57.6, 52.6, 39.3, 39.3331, -8.1, 18.3283, 38.2597, 45.3667, -14.09, 33.7569, 33.1353, 33.2367, 35.7825, 35.2058, 41.5522, 61.2944, 59.9844, 47.45, -22.97, -25.18, -34.03, 44.417, 34.733, 35.65, 35.067, -14.819, -18.975, -5.683, 44.1, 40.9, -23.35, 60.9333, 39.6025, 32.2394, 32.2542, 32.2817, 32.1314, 32.2581, 32.2292, 35.2006, 35.1822, -3.786, 50.8833, -35.4184, 17.638, 53.9, 69.4333, 69.4333, 69.2, 54.233, 20.083, 33.0719, 45.1831, 41.96, 39.35, 34.5475, 50.45, 64.9167, 35.3453, 53.6667, 59.1789, 42.7603, 42.6394, 36.1994, 36.0394, 54.6, 31.5678, 44.0494, -35.778, 55.1333, 7.3, 7.3, 53.533, 34.7281, 36.83, 51.73, -42.4544, 34.217, 34.265, 34.2622, 44.2308, 45.0708, 64.2667, 31.693, 49.151, 63.117, 49.63, 58.817, -1.717, 45.217, 58.0994, 45.22, 49.117, 43.27, 34.3956, 40.05, 60.4542, 60.45, 60.5153, 37.5006, 34.6831, 44.2822, 48.9992, 43.75, 52.267, 42.933, 36.8136, 47.5214, 49.1333, 49.3, 45.05, 65.7831, 35.99, 33.2119, 33.2119, 41.3144, 39.7947, 50.377, 34.6147, 35.04, 33.7025, 59.4356, 64.2, 47.3014, 39.2475, 48.0092, 20.95, 34.7706, 44.55, 59.0269, 56.883, 52.4667, 36.5819, -26.467, 46.15, 52.2731, 34.1281, 49.6833, 45.5472, 42.6906, 42.5458, 42.5808, 42.4819, 38.7086, 46.15, 39.0936, 38.2033, 51.3356, 34.9881, 47.0258, 47.1253, 53.6333, 44.15, 44.1431, 64.8656, 37.6364, 39.3136, 32.3067, 31.08, 32.3542, 55.183, 42.9919, 30.0667, 55.017, 46.5833, 64.8, 57.15, 71.917, -23.77, 44.5, 55.467, -0.08, -19.73, 47.7719, 15.25, 15.25, 50.8, 38.083, 58.73, 46.1667, 48.95, 24.617, 46.06, 46.0, 17.3833, 44.2667, 17.383, 54.5, -16.133, 53.75, 60.72, 52.9428, 34.767, 54.7167, 54.1667, 54.1667, 49.07, 60.5, 35.8889, 63.55, 49.0667, -33.7, -5.067, 55.8, 43.783, 65.2, 39.1467, 45.1328, 39.1258, 47.917, 49.8, 47.9, 51.8331, 36.98, 41.92, 51.35, 48.933, 45.517, 47.75, 10.0333, 49.2, 64.3331, -35.3635, 57.11, 60.3185, 37.483, 48.383, 57.77, 35.55, 59.81, 70.7667, 37.6, 64.76, 61.6, 54.317, 37.5983, 48.77, 45.9167, 66.67, 63.79, 69.3694, 52.167, -31.53, -16.36, 63.8833, 47.317, 47.455, 40.7219, 38.4444, 39.915, 40.475, 37.5436, 34.6053, 36.3925, 45.2081, 42.6903, 35.2247, 32.0142, 52.2333, 34.3725, 40.0333, 64.8569, 53.5167, -27.5436, 44.9847, -72.2, -74.8, -75.867, -67.017, 52.8514, 56.65, 32.442, 72.7831, 48.6147, -28.45, 48.6525, 38.8519, 39.4678, 37.7167, 40.8333, 39.7136, 37.4833, 36.3481, 45.2167, 45.2333, 47.2833, 59.86, 59.9, 49.0333, 47.45, 44.0928, 42.167, 51.25, -21.6119, 59.5667, 59.5667, -71.43, 38.3761, 39.9, 40.0839, 40.0986, 47.117, 37.13, 41.567, 53.317, 52.75, 50.8, 49.4, 37.668, 56.48, -29.783, 43.9, -28.51, 38.683, 29.4083, 31.717, -54.843, 73.0, 60.724, 45.2539, 38.7, 50.683, 49.98, 53.42, 66.8, 57.08, 58.2, 57.717, 59.183, 56.217, 54.4, 50.28, 61.683, 60.3831, 66.45, 56.58, 66.55, 58.88, 65.4331, 51.633, 65.97, 58.5, 62.23, 52.65, 40.3603, 41.0497, 55.533, 37.6167, 35.36, 43.145, 55.95, 59.3, 59.3078, 69.7556, 70.0814, 36.55, 17.617, 49.5942, 60.75, 5.2739, 29.185, 33.233, 35.3667, 44.1, 53.717, 48.6331, 55.3, 34.0697, 33.8722, 64.5008, -27.95, -24.73, 63.1, 63.0831, 63.1, 63.0417, 36.0167, 38.3956, 38.3775, -20.3, 58.55, 45.0483, 70.0653, 63.5, 56.8667, 61.8628, 59.7662, 39.6394, 39.6167, 69.93, 66.51, 42.4333, 61.1303, 30.9667, 30.7825, 43.9814, 52.8333, 39.4806, 39.489, 39.4867, 51.9394, 30.5908, 47.3389, 42.8753, 42.8783, 42.4839, 42.5711, 9.35, -8.41, 57.783, 48.3119, 44.2831, 52.1703, 59.133, 59.02, 41.65, 20.683, 41.7, 37.4833, 37.3806, 49.384, 46.3833, -18.467, 53.25, 45.2833, 55.1, 55.0667, 33.2372, 46.9558, 42.4844, 39.3033, 40.0983, 34.5686, 34.5653, 41.3197, 36.4303, 9.233, 17.78, 60.1331, 35.8167, 30.4833, 30.4167, 41.4525, 41.5114, 63.6667, 50.2, 34.4456, 48.05, 48.05, -1.379, 47.432, 49.3667, 49.0667, 44.5, 48.9833, 38.45, 60.3331, 45.5608, 45.6778, 49.3, 49.2, 49.2, 45.6208, 49.25, 38.9581, 39.3167, 34.7167, 34.7586, -26.67, 45.1703, 54.0333, 58.36, 61.1725, 4.168, 60.3269, 60.2831, -17.233, 60.35, 41.6431, 47.1664, 38.4667, 31.0417, 34.2097, -28.367, 40.8494, 44.3667, -30.35, -26.88, 25.45, 57.11, 70.367, 70.3669, 45.7167, 45.45, 62.3081, 62.3217, 43.232, 65.8255, 44.8331, 52.25, 43.3656, 64.45, 59.59, 58.44, 63.13, 50.05, 50.1833, 51.5833, 56.85, 56.93, 65.702, 35.2775, 60.0435, 53.5, 63.518, 56.35, 60.8, 46.8, 44.75, 43.083, 34.5289, 61.083, 48.0797, 47.317, 50.067, 61.6514, 27.1006, 54.6667, 45.5, 57.4, 20.9, 45.7667, 63.6653, 34.5539, 58.083, 43.7953, 55.817, 56.7, 64.22, 63.15, 48.2, 56.083, 54.22, 62.233, 67.5667, 58.9, 63.317, 53.87, 53.35, 42.7625, -65.25, 40.4386, 40.4422, 33.7392, 34.1517, 40.1056, 45.8653, 40.0989, 50.2167, 50.2667, 39.9333, 50.2333, 31.0167, 50.35, 34.1647, 45.3831, 27.6528, 27.6531, 38.4319, 38.0944, 62.9214, 52.283, 49.617, 62.983, 56.7667, 63.4, 47.067, 57.9, 38.7436, 37.3522, 41.7, 46.1667, 38.1311, 32.385, 32.3567, -20.76, 46.2167, 47.7667, 50.7, 28.8608, 48.0333, 48.4167, 48.5333, 48.5167, 48.65, 48.3667, 48.45, 9.967, 28.8439, 28.8614, -16.403, 28.8461, 48.45, 21.2, 34.535, 34.5833, 45.9231, -35.555, -35.5544, 47.88, 51.3333, 43.983, 65.8797, 38.4875, 38.9, 38.2017, 43.8, 17.9833, 63.8406, -37.7408, 17.555, 42.0828, 34.6522, 42.2392, 62.5617, 60.4183, 63.0817, 53.1833, 53.2833, 56.817, -22.018, 41.3167, 54.483, 64.58, -12.694, 58.367, 63.7831, 46.6, 48.767, 44.2525, 24.48, 17.983, 42.63, -25.767, 23.7, -31.945, -29.9, -21.27, -33.73, 47.35, 48.0458, 54.1333, 54.6331, 58.3831, 38.7386, 64.2, 43.15, 43.1667, 43.1833, 41.3931, 57.63, 18.737, 36.5469, 63.2066, 49.2331, 39.8056, 42.1703, 53.15, -28.7, 13.576, 39.5061, 49.8333, 40.2444, -28.1, 39.3128, 45.2925, 40.9656, 38.0833, 60.5269, 43.5594, 62.3275, 49.5742, 58.567, -17.645, 36.3278, 57.6667, 17.717, 58.1, 33.2294, 55.167, 55.2, 42.43, 59.45, -20.317, 42.8506, -14.863, 42.8717, 67.68, -17.15, 55.167, 43.05, 56.117, 43.8, 53.24, 51.4414, 50.9167, 46.3, 44.9831, 48.0917, 46.0, 52.017, 52.1042, 48.783, 51.6581, 53.167, -27.37, 47.617, 70.97, 50.833, 59.3167, 54.1, 48.67, 67.483, 61.033, 51.7, 48.6, 57.8458, 63.22, -78.45, -20.417, 60.467, 47.567, 42.4831, 43.2, -31.67, -27.8, 45.15, 50.4, 66.7981, 60.72, 52.367, 61.0167, 55.9667, 40.7917, 52.9333, 39.0747, 31.6003, 31.6189, 53.1658, 46.3939, 34.9603, 20.504, 21.82, 39.6914, 14.4, 51.9667, 54.6667, 65.8833, -35.1583, -35.1311, -33.3075, 43.0833, 35.9675, 43.34, 50.8125, 41.2214, 36.9953, 38.4831, 21.4806, 48.8289, 49.3, 47.961, 21.4517, 21.2717, 21.3356, 21.9592, 21.6369, -9.667, 70.6392, 52.8333, -8.641, 37.4, 1.75, 37.483, 34.233, 39.0147, 42.2647, 36.9839, 19.2833, 45.417, 50.2608, 40.7442, 41.5514, 48.9303, 34.8992, 47.9167, 42.7392, -30.0372, 34.7544, -17.1347, 37.7433, 47.0744, 38.5653, 35.6647, 38.9111, 47.4753, 36.5956, 34.7314, 40.8433, -37.3807, 46.0947, 51.6031, 37.9406, 45.5722, 60.7986, 41.5519, 35.1722, 34.9281, -35.1201, 42.1608, 37.6303, 37.3822, 32.8847, 34.3603, 34.3997, 44.5167, 42.1506, 42.1847, -23.27, -22.983, 39.2142, -4.067, 45.2406, 41.6717, -29.7029, 44.1481, 41.0444, 41.4439, 45.1094, -32.6722, -32.6814, 34.3, -36.4206, 53.7883, 40.7908, 40.655, 32.067, 46.4353, 50.45, 44.4736, 36.9231, -41.4372, 51.5, -26.1317, -27.97, 39.1139, 49.4667, 39.1333, 39.1333, 53.517, 49.1, 49.1167, -24.9, -17.0156, 46.2667, 34.5958, 36.7, 36.0608, 32.6094, 32.6333, 38.4947, -34.9906, -43.0609, -36.2614, 41.8467, 45.2658, 38.7842, 53.5239, 33.4028, 38.835, 38.6811, 33.6044, 41.2019, 44.4, 53.3833, -38.2919, -38.2867, 48.8947, -11.6502, 41.2633, 37.9881, 35.0128, 42.6856, 38.7744, 53.2231, 50.6281, 35.5392, -28.2061, 49.8167, 50.65, 35.5892, 45.61, 53.1333, 44.0708, 47.2844, 38.9053, 39.8089, 41.2825, 38.6489, 33.7264, 40.1789, 34.9819, 39.5353, 38.9408, 33.7806, 45.3581, 39.15, 38.8483, 30.3236, 35.5553, 53.9167, 48.2064, 36.8581, 50.4978, 44.0697, 32.3778, -24.2914, 40.4256, 52.2531, 47.9333, 38.3664, 38.7003, 43.1878, 42.5544, 43.45, 46.2778, 46.2689, 49.1333, 43.1742, 43.9761, 43.9922, 44.9047, 47.6497, 35.7742, 45.05, 44.5272, 31.6725, 34.1583, 47.8039, 47.6, 47.7803, 33.7836, 33.8967, 35.8578, 35.8417, 51.6667, 51.6667, 40.7928, 36.9358, 36.9308, 60.1167, 60.1167, 17.988, 52.127, 46.5103, 7.7, 45.4247, 27.5478, 42.3492, 43.0064, 43.2742, 44.3547, 34.1747, 34.1678, 44.9258, 31.5242, 41.5183, 7.7, 30.2947, 36.0825, 39.1114, 42.0019, 37.4297, -17.3871, 48.0, 47.9667, 47.9667, 32.4281, 35.1667, 42.9728, 31.2514, 31.11, 31.25, 42.2361, 35.3042, 33.0725, 31.6772, 38.0803, 39.8986, 35.4867, 37.8133, 36.5758, 43.0847, 32.7483, 35.52, 6.95, 40.7367, 35.4814, 41.1667, 45.3331, 42.4686, 39.4031, 37.5833, 38.5358, 54.2194, -38.6357, 31.9514, 41.4789, 28.5175, 40.8639, 41.93, 49.6669, 49.2256, 36.767, 48.4, 50.4742, 50.7131, 50.9756, 49.383, 26.87, 64.315, -12.6778, 44.2456, 44.8475, 49.555, 49.017, 51.2131, 48.1892, 26.199, 48.3667, 28.1136, 38.6989, -28.0, 43.0, 42.9667, 52.2058, 44.3564, 34.8422, 37.2778, 39.5447, -41.333, -32.5635, -32.5059, 47.8964, 41.1006, 43.7467, 41.7003, 40.2753, 44.2294, 42.1172, 42.1094, 48.85, 47.4289, 47.3978, 47.7042, 53.2153, 40.7206, 30.75, 44.0083, 28.017, -29.9, 51.583, 51.85, 49.7678, 40.4528, 26.1781, 44.9511, 35.7667, 44.0761, 48.8744, 41.0669, 38.1311, 51.2192, 41.3497, 54.5294, 46.3286, 43.9833, 40.1264, 43.9903, 42.2956, 42.0931, 42.1578, 40.8436, 48.9097, -37.7067, 39.0439, 44.6406, 41.2211, -41.75, 43.8881, 50.4667, 40.3067, 43.0175, 43.3681, 43.4106, 45.0667, 43.6878, 39.9708, 41.9144, 45.8181, 48.5003, 48.5106, 42.9108, 40.475, 37.9414, 42.1333, 35.1242, 35.135, 37.0683, 26.6847, 34.6428, 36.7425, 36.8781, 32.8789, 41.3906, 41.845, 37.5658, 49.0, 44.1925, -17.8964, 41.9442, 39.2911, 49.35, -33.9382, 44.6617, 52.6333, 30.1192, -3.584, 49.65, 49.7, 45.4425, 18.4311, 62.2333, 31.6508, 41.1947, 42.1106, 45.8081, 41.8128, 39.775, 40.0567, 40.1764, 48.35, 40.6117, 37.2167, 44.6, 41.0, 50.1333, 50.1333, 34.5686, 47.4167, 54.4807, 54.1333, 54.15, 44.3675, 48.4081, 48.2833, 46.7531, 43.5575, 45.8833, 60.7167, 60.7333, 42.3369, 60.7167, 60.7333, 38.7167, 33.8214, 56.2333, 64.1539, 39.9961, 61.7067, 34.4094, 34.3361, 42.8508, 50.35, -30.8517, -30.8506, 39.3167, 44.5333, 39.4411, 35.1333, 36.4511, 43.7292, 42.6981, 45.05, 43.9806, 46.6333, 39.9667, 33.4561, 45.8619, 49.0167, 32.7822, 32.5564, 37.7889, 46.5344, 46.5436, 37.8511, 30.7044, 30.7167, 42.0681, 46.0436, 34.6333, 40.6194, 42.4356, 31.8611, 42.3417, 60.7764, 33.9839, 35.2897, -33.0539, -33.0303, 44.75, 46.9878, 43.5608, 15.65, 37.6544, 37.6833, 33.9786, 37.7461, 37.6167, 34.7325, 34.7744, 37.6553, 58.45, 45.2706, 33.9792, 43.6825, -7.967, 37.8333, 37.8747, 51.2167, 48.2331, 48.3, 48.17, 48.1229, 48.117, 52.117, 30.8714, 52.5053, 34.7061, 47.7681, -31.5631, -31.5194, 33.75, 42.75, 48.6631, 36.2656, 30.5347, 40.2, 38.9031, 41.6358, 45.5231, 34.3717, 51.53, 53.5917, 41.3336, 44.3325, 34.6606, 32.2553, 35.2414, 36.7333, 41.665, 37.3017, -22.4703, 37.6731, 41.2433, 41.2486, 35.8528, 38.6586, 40.0375, 52.1833, 52.1333, -32.7932, 48.3333, -77.85, 41.7419, 51.2953, 48.1375, 48.1739, 38.0039, -16.288, 39.4194, 45.1167, 45.1078, -33.283, 39.5231, 35.8686, 48.6061, 42.8167, 53.3833, 40.9467, 40.3517, 40.35, 40.2, 40.4333, 45.7081, 36.9811, 61.7481, 44.3842, 32.7019, 30.1694, 39.4833, 34.3208, 34.1425, 34.2675, 39.6728, 39.7739, 37.1317, 45.4078, 46.0289, -39.1297, 35.6939, 42.0167, 38.9667, 47.1603, -26.5914, 51.9333, 41.0267, 34.6203, 39.1881, 39.635, 43.2828, 46.2381, 35.1803, 39.1833, 40.1714, 33.9275, -22.567, 47.9117, -77.7, 43.8575, -25.4228, 35.6575, 38.5319, 39.4458, 42.2833, 44.9333, 42.3, -34.8361, 42.2833, 43.5606, 50.0333, 52.95, 33.9111, 37.2889, 38.5278, 37.1681, 43.9708, 32.0444, 47.5589, 31.78, 43.7639, 40.9386, 40.9017, 43.3686, 43.3906, 31.9622, 49.9167, 49.9167, 49.95, 49.8833, 34.3739, 32.1411, 32.0997, 39.0589, 44.0422, 33.4847, 44.0875, 35.0281, 33.3497, 45.8833, 47.1333, 47.1667, 38.5253, 41.315, 33.9664, 28.0153, 28.0622, 48.4742, 34.9381, -22.3617, -22.3908, 43.9636, 43.6089, 44.3881, 44.3592, 45.6178, 67.4192, 36.9986, 45.8031, 45.7833, 36.9681, 46.2608, 53.8333, -34.0281, 33.1597, 51.883, -22.2425, 53.55, 53.1875, 51.55, 51.4478, 35.7217, -33.1336, 7.3833, 48.2958, 45.6667, 35.9478, 45.0667, 37.4744, 37.4833, 45.3131, 48.1, 48.3083, 48.4886, 48.0944, 47.45, -17.2122, -34.403, 44.8, 36.445, 63.4903, -30.8917, -30.8408, 37.33, 39.183, -38.6078, 43.4978, 37.9906, 30.9592, 43.7833, 41.1644, 35.8375, 49.0333, 49.5833, 45.1569, 38.6828, 34.1819, 41.525, 37.4286, 42.2167, 64.7803, 43.1333, 43.6303, 46.1667, 38.8969, 39.5461, 44.4, 31.0931, 30.75, 36.4231, 47.45, -30.9672, 44.2, -19.4167, -31.1558, 41.9844, 40.7833, 40.8731, -33.617, 44.3747, 42.2706, 33.8167, 43.9658, 44.0108, 49.6056, 49.2189, 53.2775, 56.5333, 42.3869, 43.645, 56.4733, 40.0714, 47.7167, 46.5333, 49.5, 46.0667, 34.3617, 43.7472, 46.6803, 33.3039, 39.8333, 63.2167, 51.7317, 54.6942, 51.1, 35.22, -33.043, 33.4, 26.73, 30.6, 31.15, 50.033, 52.467, 35.5247, 51.2258, 49.7714, 49.8006, 37.2, 39.03, 47.6789, 23.483, 43.8, 34.717, -33.9262, 51.185, 47.25, -15.4872, -15.51, 35.2547, 51.7667, -40.9972, 51.7667, 45.1217, 36.9617, 44.2542, 36.1308, 30.95, -25.05, 19.72, 39.6167, 24.483, 34.3, 49.2, 27.9, 19.32, 35.73, 29.25, 33.78, 43.95, 25.433, 37.07, 36.617, 36.03, 32.133, 22.35, 48.67, 16.833, 29.03, 44.583, 50.1, 24.95, 34.283, 29.98, 48.9514, 44.3192, -21.95, 36.1306, 50.217, 51.8, 60.0833, 46.5897, 46.5683, 30.383, 59.5119, 43.1447, 6.5, 44.483, 38.25, 34.167, -29.4333, 6.903, 40.1561, 36.3783, 37.8, -34.6223, 35.48, 39.217, 40.4, 21.867, 16.907, 42.867, 42.8783, 35.567, 36.6, 9.4833, 7.024, 57.417, 43.8333, 43.8333, -31.3865, -36.0294, -16.7, 30.667, -34.8313, 37.8786, 31.9, 31.905, 32.9028, -27.2842, 32.083, 58.82, 55.77, 15.117, 62.4667, 62.45, 44.8542, 45.545, 44.5264, 44.5444, 44.5922, 44.9767, 45.3128, 36.6036, 49.8167, 37.5206, 37.5594, 36.1542, 45.1672, 32.6803, 24.144, 34.733, 51.0059, -23.1364, 40.2, 38.9992, 34.4031, 45.183, 55.833, 28.8, 30.7, 27.8, 47.72, 38.467, 40.667, 43.95, 43.27, 36.18, 66.62, 66.5289, 66.3667, 64.05, 29.2739, 41.9131, 61.25, 51.4333, 51.45, 34.933, 35.433, 35.2833, 9.258, 9.2, 40.3383, 35.433, 24.467, -33.0287, 25.967, -31.8997, 40.8678, 51.2667, 51.2667, 41.2664, 40.9153, 39.9167, 34.9386, 39.9181, 57.0, 44.5003, 37.75, 37.7592, -32.683, 43.2683, 41.2544, 33.595, -34.2493, 40.5614, 43.9333, 28.833, 39.817, 41.7036, 31.6953, 62.18, 61.5717, 23.6, 28.47, 25.73, 38.75, 40.8, 34.8775, 34.1233, -22.2562, 29.38, 59.77, 63.667, -25.1896, 38.233, 40.1236, 32.835, 32.65, 32.8356, 32.6667, 40.267, 35.05, -32.5707, 41.2897, 37.07, 33.0, 33.0, 47.117, 39.83, 35.867, 31.2167, 22.783, 44.1, 32.9, 45.8167, 29.476, 47.4667, 41.55, 37.783, 49.3, 39.2753, 6.9, 53.5, 52.767, 20.0, 41.5167, 50.7, 43.733, 39.9444, 36.774, -6.222, 32.15, 26.8706, 47.8, 47.9, 41.6667, 41.6617, 56.3, 50.117, 44.8167, 54.7, 52.9681, 51.0539, 53.7, 43.87, 47.333, 47.2, 35.017, 45.0669, 51.833, -3.26, 51.2, 49.667, 51.617, 49.217, 40.78, 42.417, 38.93, 21.22, 27.33, 44.1667, 48.85, 54.38, 34.717, 47.8, 54.8, 66.7667, 27.45, 52.217, 65.2, 52.9, 31.35, 49.25, 37.48, -69.367, 31.17, 33.0, 50.233, 51.9333, 12.556, 52.2, 56.517, 49.233, 53.933, 65.467, 42.685, 13.8, 58.81, 54.0817, 50.733, 37.2092, 40.7833, 43.7331, 55.17, 45.25, 51.15, 49.05, 48.717, 47.3167, 41.45, 47.9186, 47.9225, 22.75, 45.4, 32.88, 47.3831, 42.5, 47.4219, 44.2992, 35.0706, 27.7, -26.3, 54.467, 65.73], &quot;yaxis&quot;: &quot;y2&quot;, &quot;ybingroup&quot;: &quot;y&quot;, &quot;z&quot;: [-0.0253, 0.5011, -0.0842, -0.0535, -0.031, 0.1024, 0.0457, 0.0735, -0.0557, 0.0, 0.1085, -0.0125, 0.1632, -0.0277, -1.15, 0.1168, -0.0423, -0.0893, -0.0685, -0.5987, -1.5941, 0.0688, 0.1378, 0.4316, -0.0116, 0.0188, -0.0723, 0.0125, -0.0243, 0.2171, -0.0575, -0.1422, -0.1741, 0.0023, 0.0085, -1.4875, 0.0058, 0.0809, -1.2034, -0.0088, 0.0999, 0.041, -0.2237, -0.1112, 0.0532, 0.0, -0.0078, -0.05, -0.0277, -0.0069, -0.0971, -0.0456, -0.1336, 0.0117, 1.0131, 0.0, 0.1015, 0.0302, 0.0617, -0.0301, -0.1459, 0.8068, -0.0287, -0.0328, 0.0545, 0.4478, -0.0594, -0.3346, -0.0548, 0.0732, 0.07, 0.0506, 1.4978, 0.0013, 0.0693, 0.0671, 0.1544, 0.1374, 0.0112, -0.2033, 0.0, 0.0073, 0.0127, 0.4191, 0.2399, -0.0141, -0.0031, 0.0037, 0.1335, -0.031, 0.0885, -0.0387, 1.7732, 0.0722, 0.0651, 0.0947, 0.123, -2.5975, -0.1825, 0.0745, 0.0316, 0.0617, 0.0759, -0.1548, 0.1033, -0.0091, -0.9466, 0.212, -0.0735, -0.023, 0.0619, 0.0, 0.0349, -0.0184, -0.0276, -0.1149, 1.2375, 0.0503, 0.404, -0.0313, 0.2662, -0.0415, 0.0915, -0.833, 0.0259, 0.1454, 0.0281, -0.0606, -0.0553, -0.0373, -0.0056, 0.0236, 0.0524, -0.0003, 0.1967, -0.0236, -0.0054, -0.1459, -0.0386, 0.1208, 0.2108, 0.0042, -0.278, 0.1108, 0.076, 0.0973, 0.0757, 0.0126, 0.0097, 0.0, 0.0351, 0.2447, -0.1603, 0.1275, 0.0184, 0.5268, 0.0846, 0.0959, 0.147, 0.0207, 0.0, -0.2219, -0.0109, -0.0267, -0.0825, 0.0287, -0.0281, 0.0436, 0.0942, 0.0824, 0.0856, -0.0435, 0.0309, 0.0838, -0.0075, 0.0676, 0.0086, 0.0369, 0.0665, -1.0119, 0.0422, -0.096, 0.0796, 0.0497, 0.1858, 0.0567, -0.0034, -0.0004, -0.013, 0.0119, 0.047, -0.0224, -0.0093, 0.0305, -0.0297, 0.0289, 0.0187, -1.7168, -0.0647, 0.2706, 0.0636, -5.5899, -0.0984, -0.1012, -0.1364, -1.2853, -0.0943, -0.1618, -0.0568, -11.997, 0.0299, -0.0899, -0.5537, -0.0454, -0.0713, -0.0472, -0.0604, 0.0704, 0.0882, -0.327, -0.7924, 0.0373, 0.0, 0.081, 0.0534, -0.0025, -0.1965, 0.0866, 0.0, 0.0157, -0.0405, 0.0147, -0.0516, -0.1114, -0.1974, 0.0374, 0.1566, -0.0462, 0.0, -0.0272, 0.1099, 0.3588, 0.5029, -0.443, 0.2254, -0.018, 0.7758, 0.0475, 0.072, -0.0892, 0.0928, 0.0763, 0.0878, -0.0903, 0.0959, 0.8372, 0.1725, 0.0377, -0.0025, 0.2783, -0.0594, -0.0513, -0.0707, 0.1386, 0.0397, -0.108, 0.0, -0.9856, -0.0898, 0.0117, -0.0299, 0.1004, 0.0567, -0.0878, -0.4133, 0.0806, 0.0236, 0.1926, -0.3061, 0.2172, 4.725, 0.0193, -0.261, 0.0185, 0.1308, -0.0001, 0.0374, -0.0299, 0.2946, -0.2069, -0.2154, 3.2452, 0.0875, 0.0059, -0.1815, 1.2541, -2.1388, -0.0942, 0.0, -0.0995, -0.1247, 0.0119, 0.0304, 0.0596, -0.1955, -0.0369, 0.1993, -0.0523, 0.015, 0.0527, -0.0956, 0.0026, 1.1773, 0.0197, 0.3942, -0.1006, 0.0545, -0.2624, -0.0566, 0.0777, 0.1264, -3.886, 0.0517, 0.0895, -0.0963, 0.0829, -0.1667, -0.0223, -0.267, -0.0561, -0.0126, -0.2149, 0.0547, -0.1237, -0.2933, -0.0344, 0.2675, 0.4828, 0.1118, -0.0179, 0.0672, 0.0142, -0.0342, -0.1464, -0.0332, -0.0318, 0.1327, 0.4532, 0.0498, 0.5209, -0.0877, 0.2327, -0.2075, -0.0604, -0.0336, -0.0056, 0.0748, -0.0128, 0.3669, -0.0612, 0.0, -0.0075, -0.0253, -0.0907, 0.0231, 0.0267, -0.1365, 0.4012, 0.242, 0.0, 0.0, -0.2314, 0.0193, 2.4988, 0.1949, -0.4849, 0.1658, 0.0199, 0.0208, -0.1091, -0.0841, -0.2005, -0.0111, 0.0429, 0.0003, -0.0718, -4.8818, 0.417, -0.0159, 0.0189, 0.0205, 0.1425, -0.0923, 0.0745, -0.1759, 0.0274, 8.7805, -0.3475, -0.1347, -0.1061, -0.0378, 0.0249, -0.5709, 0.2025, -9.1617, -0.0062, -2.112, 0.5651, 0.1237, -0.061, -0.094, -0.1374, -0.0989, 0.0539, 0.2691, 0.0587, 0.6117, 1.3454, 1.3539, -0.0332, -0.098, -0.2773, 0.0065, -0.1008, 0.0509, 0.0, -0.0362, 0.1591, 0.0384, 0.0072, -2.8718, -0.6512, -0.0011, 0.0154, 0.06, -0.0668, 0.0898, 0.0244, 0.1776, 0.0, -0.1427, 0.127, -0.0922, -0.2589, -0.2122, -0.1561, -0.1882, -0.2296, -0.7181, -0.0809, 0.0836, -0.0321, 0.8331, 0.0135, 0.1314, -0.0184, -0.0055, 0.0445, -0.3396, 0.1586, -0.0823, 0.0257, 0.184, -0.0434, -0.0175, 0.0735, -0.0417, -0.7778, -2.5943, -1.774, 0.2741, 0.0623, -0.0277, -0.2335, 0.1242, 1.9168, -0.3452, 0.0575, 0.1138, -0.7388, -17.081, 0.0091, 0.0327, -0.039, -0.1698, -0.0156, 0.0168, -0.34, 0.0, 0.0347, 0.0503, 0.0204, -0.0186, 0.1483, -1.624, 0.0858, 0.039, 0.3687, -0.2504, 0.023, 0.0142, 0.0194, 0.039, -0.0834, -0.0076, -0.1601, 0.1589, 0.1486, -0.8712, 0.1885, -0.0922, -0.0467, 0.5228, 0.0223, -0.1407, -0.4119, -0.0256, 0.1147, -0.0941, 0.5036, 0.0064, 1.8358, 0.0412, 0.0276, 0.3876, -0.0713, -0.0582, -0.1394, 0.1396, -0.1615, -0.1003, -0.0369, -0.0414, -0.9075, -0.1821, 0.0044, 0.5487, 0.2149, 0.0373, -0.0156, -0.0291, 0.0759, 0.5759, 0.0278, 0.091, 0.0381, 0.0549, -0.1178, 0.0386, 0.0093, -0.003, 0.0431, 0.0, 0.0083, -0.322, -0.0242, -0.02, -0.1447, -0.2859, 0.0, 0.0277, -0.0609, -0.0302, -0.2338, -0.0626, 0.0632, 0.0601, -0.114, -0.4552, 0.0111, -0.0291, 0.0271, 0.0212, -5.33, -0.1142, -0.8488, -0.0026, -0.0624, -0.0597, 0.0292, -0.0065, 0.3258, 0.0491, 0.0555, 0.0299, -1.5617, -0.1571, -0.088, 0.0801, -0.0075, 0.053, -1.5282, -0.191, 0.0058, -0.0955, 0.0531, 0.1359, 0.05, -0.0965, 0.0802, 0.0663, 0.1492, 0.0877, -0.1375, -0.1008, 3.0735, 0.3677, -0.0067, 0.1909, 0.0, 0.0, 0.028, 0.0408, 0.0413, -0.0469, 0.0691, -0.1644, 0.1532, -0.157, -0.1653, 0.0636, 0.0904, 0.0667, 0.0411, -0.0297, -0.3086, -0.1884, 0.0436, -0.0118, 1.3428, 0.1347, -0.0055, 0.0231, -1.3638, -0.4406, -0.1229, 0.119, 0.3332, -0.0722, 0.3753, 0.0237, 0.1046, -0.0499, 0.0583, 0.0341, 0.2404, -0.3192, 0.0371, 0.0574, -0.2234, 0.0, 0.0295, -0.0665, 0.4709, 0.0185, -0.1435, 0.0, -0.0073, -0.3198, 1.6914, -0.0878, -0.0427, 0.314, 0.1407, -0.0002, -0.0417, 0.0422, -0.2357, 0.1602, 0.1469, -0.4113, 0.0233, 0.0696, 0.3957, 0.0772, -0.4296, -1.1, 0.0456, 0.0918, -0.3576, -0.0205, 0.0, 0.0188, 0.1634, 0.0289, 0.0908, 0.0362, 0.1472, 0.0166, -0.0664, -0.0998, 0.0, -0.9962, -0.2062, 0.091, 0.0444, 0.024, -0.1383, -0.0103, 0.0063, 0.0048, -0.0524, 0.1759, -0.2017, -0.217, -1.7045, 0.6624, -0.0635, 0.0868, -0.0867, -0.1189, -0.051, -0.1495, -0.1691, -0.0407, 8.2867, -0.0229, -0.0476, 0.0507, 0.0187, 0.0272, 0.102, 0.0207, 0.5493, -0.4269, 0.0, 0.0958, -0.0217, -0.2942, -0.0258, -0.3614, 0.0379, -0.0926, -0.0203, -0.0367, 0.0935, 0.0518, 0.1013, -0.1463, -0.0685, 0.0673, 0.0044, -0.0335, -0.0155, 0.197, -0.0447, 0.4127, 1.2387, 0.0546, 0.0056, -0.2218, 0.0919, -1.5227, 0.0184, 0.0345, 0.0049, -0.0928, -0.4033, 0.0318, 0.0142, 0.1487, 0.0116, -0.0015, -0.3592, -0.3237, -0.3045, -0.0036, 0.015, -0.8014, -0.0333, -0.003, -0.3358, -0.0094, 0.0773, -0.0819, -0.0647, 0.5566, 0.0297, 0.0304, 0.0, -0.2008, -0.0113, -0.201, 0.081, 0.0093, 0.3416, 0.1614, -0.0949, -0.0244, 0.2052, -0.1864, -0.0464, 0.1033, 0.0213, 0.1569, -0.308, -0.1659, -0.1219, 0.0182, -0.0242, 0.207, -0.009, 0.6792, 0.021, -0.0158, -0.9287, 0.0813, 0.043, -0.4207, -0.1189, -1.0081, 0.0134, -0.1145, 0.0905, 0.3781, 0.1362, 0.021, 0.0546, -0.1724, -0.0049, 0.0841, 0.1801, -0.228, -0.0546, -0.0316, 0.1724, -2.515, -1.1908, -0.1543, -0.2364, 0.0669, 0.0881, -0.145, 0.017, -0.0089, -0.0331, 0.1749, -0.0635, -0.0166, 0.0438, 0.0427, -0.068, -0.1575, 0.0257, 0.0, 0.0066, 0.0342, 0.0091, -1.1858, -0.1888, 0.1198, -1.0662, 0.2148, -1.385, 0.0378, -1.1685, -0.0111, 0.0, -0.0544, 0.1566, 0.0, 0.0412, 0.0082, 0.0947, 0.0822, -0.2253, 0.0, 0.0969, 0.3147, -0.0227, -0.0019, 0.0532, -0.0081, -0.0216, -0.0087, -2.819, -0.0425, 0.15, 0.0325, -0.1841, -0.0267, -2.0366, 0.1065, 0.0088, 0.088, 0.0, -0.0741, -0.0308, -0.0007, 0.0015, -0.1398, 0.0818, -0.0125, -0.1679, -0.0436, 0.0458, -0.1158, -0.8474, -0.0234, -0.0041, -0.0398, -1.9692, -0.0456, 0.0, -0.0024, -0.0166, 0.0017, 0.0216, -0.0025, -0.0562, -0.0177, -0.1828, -0.0264, -0.1443, 0.0032, 0.0031, 0.0005, -0.0177, 0.1347, 0.0657, -0.0102, -0.0199, 0.0349, -0.1778, -7.2775, 0.0641, 0.014, 0.0316, -0.0976, -0.1032, 0.0033, 0.0033, -0.0334, 0.0797, 0.0419, -0.3343, 0.0952, -0.0989, 0.2134, 0.0132, 1.0447, 0.0751, 0.0027, -5.9917, -5.0534, -0.115, 0.0, -0.2047, 0.0496, -0.1525, -0.3956, -0.2983, 0.1404, 0.0447, 0.0111, -0.2423, 0.2267, -2.8949, 0.0, 0.0446, -0.0405, -0.6327, 0.0123, -0.0422, 0.7224, 0.3836, -0.0364, -0.0262, -0.2015, -0.033, -0.0904, -0.0792, 0.0408, -0.411, -0.03, -0.0908, -0.5118, 0.0465, 0.149, -0.0141, -0.0266, 0.0152, 0.0141, 0.0878, 0.049, 0.0859, 0.1897, 0.0556, 3.2252, -0.1081, -1.1278, -0.2437, -0.074, -0.014, 0.0017, -0.0145, -0.0912, -0.0887, -0.0286, 0.053, 0.2692, 0.1721, 0.0454, 0.0444, 0.0185, -0.0569, 0.4265, 0.2964, 0.0548, 0.2297, -0.5473, -0.23, 0.0, 0.0392, 0.2464, 0.0406, -0.0081, 0.0409, 0.371, 0.0866, 0.0474, 0.0871, -0.0112, 0.0461, -0.0113, -0.1271, -0.0716, 0.1627, -0.0054, 0.0931, -0.0282, 0.0343, -0.0379, -6.1, 0.0266, -0.0245, -0.092, 0.0836, 0.0607, -0.1001, 0.024, -0.0017, 0.0378, -1.115, 0.0031, -0.0234, 0.0165, 0.0132, 0.0228, 0.8017, 0.1369, -0.0822, -0.2833, 0.0226, 0.4636, 0.0243, 0.1315, -0.0346, 0.0118, 0.1356, -0.9779, 0.2971, 0.1427, 0.0574, 0.0103, -0.1141, -0.4848, 0.0279, 0.0052, 0.0034, -0.0655, 0.0428, -0.1032, 0.034, -0.0078, 0.3331, 0.0542, -0.0129, 0.105, 0.0364, -0.1047, 0.1425, 0.0133, 0.0762, 0.0726, 0.0462, -0.0058, -0.0841, 0.0898, 0.1053, -0.0111, -0.021, -0.0077, 0.4892, -0.0883, 0.0128, -0.0584, -0.3314, -0.2239, -1.431, -0.1592, -1.1091, 1.6322, -0.2869, -2.8408, 0.0199, 0.024, -0.057, 0.0847, 0.029, -0.0135, -0.0365, 0.0075, -0.2631, 0.0183, 0.0483, 0.0441, 0.1072, -0.2117, -0.0698, 0.0699, -0.0014, 0.181, 0.2528, -3.1042, 0.0342, -0.1902, -0.0157, 0.1488, 0.0057, -0.2768, -0.0955, 0.0581, 0.0311, 0.0407, -0.0182, -0.0078, 0.1323, -0.0029, 0.0929, -0.0029, 0.0775, 0.1435, -0.207, -0.0377, 0.1058, -0.2157, -0.0276, -0.1389, -0.0654, -0.2079, -0.056, -0.2504, -0.0272, 0.1339, 0.0878, -0.1604, -0.0294, -2.0193, -0.0084, -0.1557, -0.6571, 0.014, -0.1754, -8.2193, -0.0467, 0.3044, -0.0434, 0.1462, -0.0425, 0.0802, -0.0154, 0.0454, 0.1179, -0.0327, -0.3962, -0.0187, -0.0726, -0.1074, -0.0856, -0.0911, 0.0781, 0.1116, 1.1624, -0.034, -0.2833, -3.1467, -0.037, -0.0727, 0.0267, 0.003, -0.0403, -0.1712, -0.0354, -0.0315, -0.2355, -0.0577, -0.0388, 0.4152, -0.0777, -0.5759, -0.0401, 0.9946, 0.0091, -1.0988, -0.1511, -0.0418, 0.0963, 0.3141, 0.0702, 0.0983, 0.0199, 0.1503, 0.0104, -0.0411, -1.2302, 0.1103, 0.1189, -0.0306, -0.3839, 0.196, -0.2406, 0.0161, -0.1771, -0.0642, -0.122, 0.8244, -0.0163, -0.0013, -0.0064, -0.2244, -0.4126, -0.0484, -0.0222, -0.0122, -0.075, -0.1024, -0.0905, -0.1577, 2.023, -0.1197, 0.5995, -0.0341, -0.1518, -0.0196, -0.0072, -0.1247, -0.6468, -0.0891, -0.0613, -0.0731, 0.0, -0.0747, 0.1253, -0.0071, -0.248, -0.0295, -0.0314, -0.149, -0.104, 0.6606, 0.3209, -1.4262, 0.0441, 0.0, 0.0042, -0.1013, -0.1739, -0.0366, -1.1325, -0.0459, 0.0139, -0.0511, 0.6262, 0.1183, 0.0248, -0.0329, -0.056, -0.0122, -0.0296, -0.1592, -0.0368, -0.5302, -0.0462, 0.0387, 0.0693, -0.3719, -0.106, -0.0859, -0.0222, -0.0701, 0.07, -0.1001, 0.1102, 0.0147, -0.0195, -0.756, -0.0715, 0.0132, 0.0158, -0.0367, -0.1926, 0.2411, -0.1806, 0.2681, 1.2978, -0.0111, 0.0327, -0.0778, 0.4886, -0.0831, 0.0142, 0.2466, 0.0299, -0.0259, 0.0858, -0.8482, -0.1568, 0.0379, 0.0482, -0.6163, 0.0514, -0.0292, 0.0345, 0.0129, -0.0732, -2.715, 0.1213, 0.0452, 2.3578, 0.0665, -0.0715, 0.0373, 0.0727, 0.0855, -0.2014, 0.0, 0.1882, 0.0493, -0.0053, -0.0102, 0.0, -0.0005, 0.0237, -0.0671, -0.0347, -0.1652, 0.0091, 0.0374, 0.5874, 0.0244, 0.0198, -0.0796, -0.0043, -0.0558, -0.2002, -6.5568, -0.0818, -0.0124, -0.019, -0.037, -0.1273, -0.1527, 0.2136, 0.3071, 0.0343, -0.1264, -0.0213, -0.0285, -0.0377, 0.0963, -1.6271, -0.0234, 0.0446, 0.5144, 0.0251, 0.0593, -0.9665, -0.0729, -0.0987, 0.2007, 0.029, -0.031, 0.0663, 0.0472, -0.3339, 0.0785, 0.6594, -0.3122, 0.0018, -0.629, -0.0682, 0.0, -0.1311, 0.3169, 0.1617, 0.0077, 0.0497, 0.0816, -0.0308, -0.0844, 0.0994, 0.0161, 0.0257, 0.1767, 0.0457, 0.0383, 0.0061, -0.3018, 0.1473, -0.0312, -0.1588, 0.0771, -0.6119, 0.0069, 0.006, -0.0887, -0.1389, -0.16, 0.0175, 0.1391, -0.1205, 0.2549, -0.2329, -0.3444, -0.2107, -0.346, 0.0797, -0.0287, -0.0541, -0.039, 0.0773, -0.5147, 0.1199, -0.0126, 0.0307, 0.0165, -0.1, -0.0941, 0.0776, -0.2129, -0.2543, 0.0396, -0.6198, 0.3213, -0.182, 0.1724, -0.1228, 0.0383, 0.0416, -0.0208, -0.0211, 0.0253, 0.2261, 0.0427, 0.0338, 0.3748, -0.0508, 0.5872, -0.62, -0.3686, 0.024, 0.0169, -0.1793, -0.0313, -0.0327, 0.011, 0.012, -0.0048, 0.005, 0.0182, -1.1572, -0.0374, -0.0185, -0.1203, -0.0036, -0.0129, 0.2381, -0.0703, -0.0345, -0.0749, -0.1372, 0.0, -0.0128, -0.2719, -0.0119, 0.4466, -0.0101, 0.0331, 0.0, -0.1947, 0.0635, 2.2423, -0.1307, -0.2439, 0.049, 0.0907, 0.4466, -0.1386, 0.0624, 0.7703, -0.1169, -0.1428, -0.0039, -0.0494, -0.03, -0.0137, -0.2645, 0.0079, 0.0642, 0.0117, 0.0245, 0.0153, 0.0122, 0.0006, -0.0532, -0.0399, -0.0197, -0.0033, 0.1954, 0.0824, 0.0098, -0.176, -0.0399, 0.0499, -0.0299, 0.0171, 0.0711, -0.0555, -0.0089, -0.0482, 0.1661, -0.8617, 0.1119, -0.0175, 0.0284, -0.0259, -0.0532, -0.4725, 0.0445, -0.1094, -0.4861, 0.022, 0.7017, -0.0174, -0.0283, -0.077, -0.1354, -1.5957, -2.1713, -0.0883, -1.1172, 0.0371, -0.0952, -1.6009, 0.4134, -0.1017, -0.0667, -0.4004, -0.0113, -0.3801, 0.1412, 0.0917, 0.0781, 0.7384, -0.0088, -0.0013, -0.0311, 0.0147, -0.2506, -0.0952, -0.039, -0.0649, 0.3291, -0.0878, -0.0329, 0.0095, 0.0448, 0.016, -0.1816, -0.4145, 0.0, -0.077, -0.0475, -0.0186, 0.131, -0.3113, -0.0484, -0.0512, 1.0803, -0.1827, -0.0216, 0.059, -0.0664, 0.0189, 0.1536, -0.5642, -0.0128, 0.004, -0.0297, -0.0242, 0.1183, 0.1074, -0.0298, -0.0183, -0.1022, -0.0729, 0.0973, -0.0612, -0.0028, 0.4003, 0.016, -0.0326, 0.2462, 0.2046, 0.0941, -0.0044, 0.1417, -0.0389, 0.0, -0.1272, 0.46, 0.0, -0.0227, 0.0578, 0.02, 0.0863, 0.09, 0.0158, 0.0047, 0.0, 0.0208, 0.0202, -0.2434, -0.0651, -0.0376, 0.0789, 0.0174, 0.0137, 0.1617, -0.2918, 0.0307, 1.3612, -0.0283, -0.1054, -0.1057, -1.0218, -0.093, -0.1071, 0.0082, -0.0378, 0.041, 0.0144, -0.0063, -0.0614, -0.3164, -0.4125, 0.0463, 0.3475, -0.0205, -0.0175, -0.0266, 0.0292, 0.1573, 0.2888, -1.0821, 0.0402, -0.0303, 5.6942, 0.0952, -0.4277, -0.0485, -0.0663, -0.0155, 0.0304, -0.2231, -0.43, -0.0537, 0.0, -0.1487, 0.2237, 0.0156, 0.0, -0.0392, -0.0883, 0.525, -0.0919, -0.013, -0.0664, -0.0489, -0.0371, -0.0389, -0.0382, -0.1169, -0.1135, -0.072, 0.0145, -0.043, 0.0458, -0.725, 0.1025, -0.1168, -0.0431, -0.0957, 0.0252, -0.0344, 0.0482, 0.0, 0.0273, 1.67, -0.4139, 0.0061, 0.2715, -0.611, -0.0006, -0.1843, 0.0154, -0.3354, -0.0317, -0.3738, 0.0973, -0.0573, 0.2086, -0.1451, -0.0289, -0.0593, -0.1203, 0.3081, 0.0, -0.0393, -11.595, 0.2397, -0.0284, 0.0385, -0.0695, -0.3494, 0.0143, -0.0776, -0.1667, -1.269, -0.034, -0.0026, 0.1543, -0.4033, -0.7478, -0.3903, -1.0116, -0.3233, 0.0638, 0.0031, -0.1287, -0.0415, 0.0084, -0.3418, -0.0494, -0.2082, 0.0476, -0.0283, 0.0344, 0.0422, -0.0375, -0.0324, -0.0559, -0.1639, 0.0347, -1.1257, -0.061, -0.0543, 0.0027, -0.2647, 0.0254, 0.0044, 0.0888, -0.3799, -0.0303, 0.035, -0.0139, -0.1291, -0.1528, -0.0779, -0.0655, 0.0144, -0.0568, 0.2628, 0.1005, 0.0242, 0.0403, 0.0, 0.0505, -0.0026, 0.0082, -0.6536, 0.0793, 0.0037, -0.0725, -0.3541, -0.0892, 0.2629, -1.0708, -0.0434, -0.062, 0.0663, -0.2341, 0.026, 1.8111, 0.0192, -0.0328, -0.062, -0.0392, 0.002, 0.081, 0.1344, -0.0195, 0.0162, 0.0795, 0.0364, -0.4988, 0.0072, 0.0446, -0.1805, 0.0436, 0.0962, 0.079, -0.0392, -0.0352, 0.0021, -0.1257, -1.338, 0.0435, -0.1649, 0.0171, 0.4662, 0.0564, 0.0539, -0.5188, -0.0398, -0.0326, -0.0084, 0.0029, 0.0334, -0.5647, -0.0077, 0.0667, -0.0041, -0.0397, 0.0023, -0.1561, 0.1568, 0.0572, 0.0291, 0.0276, 0.0859, 0.0284, -0.0083, -0.0872, 0.1075, 0.027, 0.1177, -0.0415, 0.0613, 0.0987, -0.0014, -0.0191, 0.046, 0.0088, -0.0436, -0.1368, 0.0363, 0.0586, 0.0472, -0.4957, -0.093, 0.0091, -0.0394, -0.0519, -0.3416, 0.0, 0.1361, -0.2052, -0.8086, -0.2025, -1.3125, -0.0578, -0.1465, -0.0786, -0.0235, 0.1141, 0.0547, -0.1302, -0.1049, -0.0801, -0.2191, -0.0578, -0.0054, 0.353, 0.1662, 0.0286, -0.0201, -0.1845, 0.1143, -1.157, 0.1788, -0.128, -0.1204, 0.0593, 2.2126, 0.0082, -0.0019, -0.0405, 0.0388, -1.3107, 0.0424, -0.0713, 0.0233, -0.0056, 0.0585, 0.0256, -0.3483, 0.0406, 0.0145, 0.64, -0.0047, 0.0223, 0.0811, 0.057, -0.0054, -0.387, 0.0572, 0.0728, -0.0948, 0.0122, 0.1698, -0.2488, -0.0472, -0.0317, -0.001, -0.1182, 0.2699, 0.0065, 0.0022, 0.0787, 0.0234, 2.3786, -0.6769, 0.0423, -0.0129, -0.6297, -0.043, 0.3108, -0.0563, -0.0198, -0.1636, -0.049, -0.0783, 0.0464, -4.0625, 0.0202, -0.0583, -0.006, -0.1286, 0.0489, -0.223, -0.1495, -0.1256, -0.0515, 0.0372, 0.0635, -0.0547, -0.0543, 0.0077, -0.0958, -0.0604, -0.1155, -0.023, 0.0308, -0.0101, -0.1707, 0.0, -0.7416, -0.437, 0.0272, -0.1185, -0.0621, -2.2919, -0.0351, 0.0314, 0.0233, -0.9694, 0.0388, 0.1739, -0.0798, -0.1258, -0.0138, -0.1082, -0.0915, -0.0123, -0.0542, -0.2426, -0.0024, -0.0028, -0.0854, -0.2632, -0.072, -0.1973, 0.0274, 0.0293, -0.0208, -21.0186, -0.0389, -0.2619, -0.1284, -0.0937, 0.1039, 0.0251, 0.0306, 0.0095, 0.044, 0.1216, -0.0015, -0.0258, -0.5799, 0.0428, 2.4583, 0.0156, 0.0573, 0.086, -0.1075, -0.0522, -0.0327, 0.2148, 0.9413, 0.0, 0.2498, -0.0786, 0.0764, 0.0398, -0.16, 0.0311, 0.0013, 0.0252, -2.2742, -0.0214, -0.617, 0.0307, 0.0149, 0.0529, -0.1366, -0.3617, -0.0592, 0.0303, -0.0961, -0.1594, 0.3523, -0.0209, 0.1347, 0.0016, -0.0055, -0.1193, 0.0696, 0.0036, 0.0674, 0.0243, 0.023, -0.0778, 0.014, 0.0066, -0.1866, 0.0038, 0.0, -0.0654, 0.2505, -0.0275, 0.1687, 0.0012, -0.1401, -0.0206, -0.0271, 0.0918, 0.0029, 0.0794, 2.0858, 0.0524, -0.001, 0.0, 0.1135, -0.0466, 0.0397, 0.1215, 0.0034, -0.2357, -0.1062, -0.1247, -0.1381, -0.2583, -0.0334, -0.1752, 0.0171, -4.833, 0.0022, 0.0553, -0.0146, -1.9641, -0.7191, 0.2521, -0.0105, -0.0095, -0.1433, 0.0486, 0.0298, -0.1487, -0.1599, -0.244, 2.3655, 0.14, -0.0435, -0.1806, 0.0341, -0.523, -0.1095, -0.0274, -0.1072, -0.0307, -0.1974, -0.0823, -0.0456, 0.2285, 0.0017, 0.0241, 0.0339, 0.0578, 0.0901, -0.7426, 0.0239, 0.0424, 0.0194, 0.0114, -0.0478, 0.0711, 0.0781, 0.0771, 0.0053, -0.1451, -0.0829, 0.0099, -0.4888, -0.579, -0.5141, -0.0069, 0.1875, 0.0076, 12.5508, -0.0359, -0.0012, -0.1067, -0.598, 0.3192, 0.0, -0.171, -0.3798, -0.115, -0.2156, 0.0138, 0.0017, -0.0421, 0.1825, 0.0249, 0.4583, 0.0508, -0.0024, -0.0599, -1.1941, 0.0771, 0.088, -0.3427, -0.1092, -0.8861, 0.0564, -0.0737, 0.066, 0.0481, -0.0112, -0.1316, 0.0009, -0.0106, -0.0067, -0.0742, 0.1052, 0.1067, 0.0042, -0.1457, -0.0744, -0.0873, 0.0006, -0.0367, -0.4111, -6.365, -0.0138, -0.0361, -0.6563, -0.051, -1.6165, -0.0215, -0.0416, 0.0262, -0.0561, -0.1994, -0.0845, -0.1998, -0.0716, -0.0422, 0.0423, 0.2148, -0.1073, 0.0517, -0.2055, -0.0455, 0.1402, 0.0657, 0.0614, 0.0911, -0.0083, -1.1675, -0.0288, -0.0173, -0.3274, -0.1274, -0.0103, -0.0076, -0.1981, -0.0219, 0.3407, -0.0547, -0.0108, -0.4942, -0.195, -2.5835, 0.0041, -0.4601, 0.0725, -0.4748, -0.09, 0.0135, 0.0056, -0.005, -0.0301, -0.0708, 0.0443, -0.0406, -0.1927, -0.0443, -0.111, 0.1022, -0.1286, 0.0182, 0.0393, 0.0004, 0.0019, 0.2006, 0.0114, -0.4728, -0.1451, 0.0931, -0.0291, -0.0333, -0.068, -0.3474, 0.0, -0.3791, -0.0751, -0.0743, -0.0671, -0.0693, -0.0477, -0.0281, -0.0592, 0.1557, -0.0979, 0.0512, 1.7784, 1.2991, -0.4499, -1.189, 0.19, 0.0603, 0.1003, -0.058, 0.0776, -0.3214, 0.0464, 0.0602, -0.2098, -0.08, 0.0968, 0.1654, 0.1621, 0.0755, 0.0599, 0.1555, 0.0515, -1.4355, 0.0124, -0.0995, -0.0684, 0.1591, -0.2686, -0.0334, 0.0208, -0.0369, 0.0158, 0.0456, 0.3396, -0.4256, 0.0455, 0.0751, -0.0959, 0.2854, 0.075, 0.2816, 0.013, -0.0293, -0.1953, -0.3872, -0.0654, -0.0458, -0.8584, -0.0044, -0.0629, 0.1058, -2.6319, -0.069, 0.0236, 0.1999, -0.1478, -0.179, -0.0843, -0.1195, -0.0049, 0.0646, 0.029, -0.143, 0.0581, 0.0143, -0.0442, -0.0635, -0.0372, -0.4129, 0.0305, -0.5183, 0.0, -0.0098, -0.011, 0.0008, -0.0207, 0.2829, -0.0896, 0.2079, 0.0767, -1.4228, 0.2094, 0.1444, -0.0211, -0.0626, -0.0583, -0.039, 0.0521, -0.0617, -1.1917, 0.0549, -0.3806, -1.1, -0.0397, -0.0749, -0.0225, 0.0, 0.2105, -0.1272, 0.2849, -0.2712, 0.4271, -0.0051, -0.2106, 0.0144, 0.0149, -0.0259, -0.335, -0.2332, -0.048, -0.0673, 0.122, 0.2394, -0.0513, 0.6018, -0.0425, -0.043, -0.0432, 0.0205, 0.0087, 0.0602, -0.0373, 0.0159, 0.0, -0.0037, 0.0129, 0.0096, 0.065, 0.0284, 0.4665, -0.028, -0.7557, 0.0999, 0.1391, 0.0, 0.0397, 0.0462, 0.004, 0.0092, 0.7829, 0.0605, -0.0925, -0.2458, 0.4283, -1.0004, 0.1357, 0.158, -0.0201, 0.1472, -0.0626, 0.1067, 0.1069, -0.2303, -0.0316, 0.028, -0.0125, -0.067, 0.0585, -0.24, -4.4467, -0.6056, -0.1217, -0.0074, 1.7434, -0.0249, -0.0908, -0.0219, 0.0461, 0.0033, -0.0027, -0.0352, -0.0215, 0.5648, 0.0224, 0.0644, 0.0, 0.099, 0.0658, -0.0574, 0.0416, -0.1384, -0.0009, 0.0135, 0.0384, -0.073, -0.1227, -0.0937, 0.0499, 0.0205, -2.9429, -0.0684, 0.0714, 0.0, 0.0059, -0.0462, -0.2957, 0.0001, -0.0586, -0.1298, 0.2403, 0.1738, 0.0463, 0.0494, -0.1379, -0.031, -0.1001, -0.0899, -0.2627, 0.0565, 0.3375, 0.2303, 0.1025, -0.0128, 0.0398, 0.0316, 0.0, 0.3837, 0.0212, -0.0571, 0.0035, -2.8031, 0.0033, -0.0054, -0.2595, -0.0227, 0.3482, 0.0283, 0.0439, 1.7279, 0.0651, 0.1469, -0.0433, -0.2617, 1.8481, 0.0509, 0.2846, 0.0252, -0.1391, -13.3136, -0.047, 0.1657, 0.0235, -0.0056, -0.1798, 0.0422, 0.0101, 0.0558, 0.0831, -0.3563, -0.1371, -0.0578, -0.0415, -0.0666, -0.1926, -0.0152, 0.0229, 0.0331, -0.0868, 0.0147, -0.0453, -0.0528, -0.0039, -0.0833, -0.0302, -0.0016, -0.0464, -0.0576, -0.0536, 1.0598, -0.3052, -0.0078, -0.3631, -0.1814, 0.0313, -0.0452, -8.7345, -0.0069, -0.2115, 0.5103, 0.0396, -0.044, 0.0335, 0.1394, -0.0936, 0.0048, 0.0696, 0.6606, 0.017, -0.1593, 2.1142, 0.0154, 0.074, -0.0659, 0.0, 0.0182, -1.2744, 0.05, 0.0744, 0.1231, -0.1432, -0.0078, 0.1702, -0.0328, -0.8505, 0.0321, 0.0801, 0.0175, 0.3144, -0.058, 0.0578, 0.0078, 0.0142, -0.031, -0.2853, 0.0589, 0.0755, -0.0831, -0.2786, -0.198, -0.0392, -0.1387, -0.1659, -0.0702, -0.0358, -0.0699, 0.011, -0.152, -0.9048, -0.0049, -0.0387, -0.5928, 0.0697, 0.0229, 0.0535, 0.0652, 0.0029, 0.0682, 0.0517, 0.0383, -0.0278, -0.0486, 0.0536, -0.2935, -0.086, 0.0338, 0.0799, 0.0223, 0.1166, -0.0572, 0.3755, 0.0481, 0.0709, -0.1138, 0.0307, -0.019, 0.0671, -0.0221, -0.0023, 0.1549, 2.1658, -0.058, 0.0068, -0.1898, 0.0496, 0.0096, -0.0467, 0.0137, -0.0387, 0.0065, 0.0024, -0.0972, 0.0278, 0.0231, 0.0848, 0.1528, -0.048, -0.3588, 0.2626, -1.15, -0.1889, -0.0029, 0.8528, 0.4092, -0.3417, -0.1577, 0.458, 0.6038, 0.0873, -0.0457, 0.0351, 0.0053, -0.0261, 0.0124, -0.0499, 0.048, -0.0572, 4.3812, -0.0966, -0.01, -0.0711, -5.1707, 0.3442, -0.0353, -0.106, -0.257, 0.0223, -0.1322, 0.0569, 0.0104, 0.0134, 0.3695, -0.0089, -0.0161, 0.0141, -0.0032, 0.0404, 0.027, -1.6951, -0.0143, -0.0032, -0.0454, -0.0755, 0.0073, -0.0252, 0.0818, -0.1364, -0.0422, 0.018, 0.0596, 0.0064, 0.0783, -0.009, 0.0147, 0.018, -0.2847, -0.0413, 0.0031, -0.1628, 0.4905, -0.4714, -0.0111, -0.1061, -0.0729, 1.679, 0.0586, 0.5084, 0.0324, 0.9944, -0.4538, -0.0883, 0.1893, 0.0815, 0.1103, 0.0082, 0.2335, -0.0249, -0.0765, -2.388, -0.1536, -0.3736, -2.2231, -0.1945, 0.0518, 0.0489, 0.0073, 0.0406, 0.2124, -0.0186, 0.118, -0.0818, 0.1765, -0.1611, 0.0314, 1.145, 0.0451, -0.1679, -0.0252, -0.3525, -0.009, 0.2361, -0.0043, -0.0582, 0.0579, -1.3139, 0.1686, 0.0396, -0.1895, 0.0001, 0.1655, -0.12, 0.0088, -0.0595, 6.2133, -0.0613, 0.0014, -0.156, -0.0036, -4.3189, 0.0253, -0.0537, 0.0105, -0.195, -0.1924, 0.1783, 0.0498, 0.1777, -0.0151, 0.0289, -0.0026, -0.506, 0.0119, -0.6679, -0.1788, 0.2272, 0.0069, 0.0493, 0.207, 0.0416, 0.1145, 0.1295, 0.0422, -0.0314, -0.0659, -0.0774, -0.0441, 0.0712, -0.0137, -0.059, 0.0281, -0.0255, 0.0014, 0.1155, 0.0142, 0.1092, -0.1532, -0.0554, 0.0481, -0.2599, 0.5923, -0.2134, 0.2567, 0.0309, 0.0223, -0.0516, -0.0534, -0.0266, -0.0783, -0.2105, -0.0981, -0.0602, -2.9056, -0.1002, -0.0086, -0.4367, -0.0546, 0.0212, 2.3017, -0.0079, 0.0, 0.0077, 0.0599, 0.1989, 0.0395, 0.0829, -0.0124, -0.428, 0.0557, -0.2741, -0.0006, -0.1186, 0.0088, 0.6, -0.0845, -0.0371, -0.6826, -0.1014, -0.1118, -0.0636, -0.0799, -0.0985, 0.0153, 0.0697, -1.2165, 0.4198, 0.0995, 0.0882, 0.1844, 0.0259, -0.087, -0.1503, 1.4821, 0.1925, 0.0664, -0.2152, 0.0, 0.0089, -0.0599, 0.0965, -0.065, 0.0653, -0.1195, -0.0423, -0.0143, 0.0083, 0.0129, -0.0043, 0.0787, 0.0, 0.0043, 0.331, 0.0777, 0.0588, 0.6101, 0.2552, 0.2739, -0.1688, -0.2872, -0.1175, -0.0117, -0.2831, -0.2698, 0.8247, -0.0639, 0.1642, 0.0677, -0.5038, -0.1161, 0.1, -0.0154, -0.1568, 0.005, -0.0094, -0.0648, -0.0802, -0.1184, -0.1499, -0.5304, -0.0624, 0.0646, 0.062, 0.0765, 0.1003, 0.8164, -2.3748, 0.0565, 0.0667, 0.3277, 0.0, 0.1356, 0.3425, 0.0798, 0.1223, -0.0211, -0.0678, -0.2172, 0.0263, 0.148, 0.2059, -0.1138, -0.095, -0.1425, -0.1014, 0.0, -0.1114, 0.2723, 0.0394, -0.0334, -0.0499, -0.0301, -0.1074, 0.023, 0.4705, 0.0034, 0.0389, 0.0613, 0.2991, -0.0914, 0.1203, 0.0023, 0.1112, -0.0186, 0.7457, 0.0097, -0.5871, 0.0717, 0.0513, -0.1672, -0.0498, 0.545, -0.5525, 0.069, 0.1662, -0.1931, 0.2547, 0.0175, 0.0264, 0.0182, 0.0681, 0.0435, 0.7141, 0.0, 0.0, -0.0866, 0.1314, 0.2132, -0.0494, -0.041, -0.1551, -0.8639, -0.0946, -0.0787, -0.0291, 0.1016, 0.0373, 0.0526, -0.6087, -0.142, -0.1622, -0.0985, -0.147, 0.0752, 0.118, -0.1216, 0.0136, -0.1161, -0.0248, -0.056, -0.1494, -0.5331, 0.0584, -0.1217, -0.0131, -0.2993, 0.0, -0.0706, 0.2494, 0.0813, 0.0886, 1.3928, -0.5336, 0.2936, 0.0924, 0.071, 0.0389, 0.012, 0.088, -0.0482, -0.0977, -0.0216, 0.0083, 0.1444, 0.0239, -0.0579, 0.479, 0.0637, 0.097, 0.0487, -0.041, -0.0573, -7.3954, -0.1754, 0.017, 0.4078, 0.0773, 0.0372, -0.0277, 0.0, 0.0148, -0.0235, 0.303, 0.1149, -2.4489, 0.0559, 0.0696, 0.032, -0.1282, -0.0641, -0.0251, -0.152, -0.0167, -6.41, 1.5116, 0.003, 0.1535, -0.2384, 0.1731, 0.0495, 0.0513, -0.0191, -0.0055, -1.4953, 0.2118, -0.1308, 0.0314, 0.0114, -0.2235, -0.0718, -0.1682, -0.0354, -1.9917, 0.0238, 0.0306, 0.0518, 0.0751, 0.0252, -0.1006, 0.0144, 0.1795, -0.0317, -0.1064, 0.3918, -0.2551, -0.0515, -0.0207, -0.0024, -0.5156, -1.6767, 0.06, -0.142, -0.536, -0.0281, -0.0471, 0.1407, 0.0, -0.0271, -0.0188, 0.039, -0.0514, -0.2171, 0.0, -0.0769, -0.0333, -0.0078, -0.0374, -0.0641, -0.0148, -0.0188, -0.241, -0.1097, 0.0845, 0.008, 0.3725, -0.659, 0.0027, -0.0286, -0.0379, 0.1023, 0.0355, -0.0476, -0.0172, 0.1012, -0.0454, -0.3956, -0.079, 0.0436, -0.106, 0.0252, -0.3618, 0.0, 0.1486, -0.1284, -0.0152, -0.0095, -0.0814, -0.0871, 0.0, -0.0033, -0.2466, 0.0423, 0.0077, 0.0, -0.0566, 0.1219, -0.0478, 0.3357, -0.091, -0.1613, 0.0265, -0.0979, 0.0556, -0.3058, 0.0414, 0.1982, 0.0515, 15.4242, -0.2954, 0.0, -0.0464, 0.0261, -0.0354, -0.0667, 0.0278, -0.0235, -0.0887, -0.0585, 0.0079, 0.1545, -0.0153, 0.1408, -0.0297, -0.0299, -0.0056, 0.2131, 0.0009, 0.0783, 0.0023, 0.0704, -0.0416, -0.7204, -0.1392, 0.0065, -0.2956, -0.0761, 0.0472, -0.4985, 0.0303, 0.0114, -0.0251, 0.0, 0.0954, 0.0543, -0.0739, -0.0871, -0.0846, -0.1107, -1.2154, -0.0564, -0.0706, -0.0564, -0.0349, 0.2588, 0.0952, 0.0059, -0.0001, -0.1221, 0.0699, 0.0, -0.0325, -0.1675, -0.1628, 0.6202, -0.0157, -0.5407, -0.5146, 0.0316, -0.0308, -0.1325, 0.0668, -0.0552, -0.0005, 0.0489, 0.0642, -0.0192, -0.5711, 0.0777, 1.5389, -0.8951, -0.0077, 0.0253, -0.081, -0.7494, -0.202, 0.0303, 0.0012, 0.0148, -0.0693, -0.0015, 0.1287, -0.0157, -0.0449, -0.2702, -0.0898, 0.3302, 0.0514, -0.4165, 0.0757, 0.1498, 0.0169, 0.0282, -0.2116, 0.2149, 0.1218, 0.0002, -0.0611, 0.2398, -0.0569, 0.0904, -0.186, 0.4245, -0.25, 0.0535, 0.0029, -0.0444, -0.5142, 0.0196, 3.9567, -0.1481, -0.0262, 0.0212, 0.0161, -0.1716, 0.0744, 0.0969, 0.0408, -0.0262, 0.029, 0.1436, 0.0, 0.0576, 0.5426, 0.0375, 0.0605, 0.0297, -0.0228, 0.1032, -0.638, -0.2092, -0.6504, -0.2819, 0.2705, 0.0338, -0.5208, -0.0569, -0.0493, -0.8227, -0.0191, -0.1574, 0.1311, -0.0605, 0.7102, -0.2667, -0.0218, 0.1105, 0.0322, 0.6392, -0.0221, -0.0563, 0.0364, 0.0436, -0.6651, 0.0122, -0.6499, 0.0332, -0.0709, -0.0376, -0.3535, 0.0953, -0.5435, -0.0014, 0.1577, -0.6498, -0.0273, -0.0742, 0.1739, -0.0314, -0.0207, -0.0319, 0.0665, -0.0206, 0.0338, -0.0044, 0.0691, 0.0188, 0.1629, 0.047, -0.0094, 0.0422, -1.0918, -0.0587, 0.0364, -0.0597, 0.2148, 0.0273, -0.6817, -0.0171, -0.2123, 1.1333, -0.0639, 0.3457, -0.0706, 0.6275, 0.0335, -0.0033, 0.0552, -0.1298, -0.0199, 0.077, -1.614, 0.0146, -0.2156, 0.0183, -1.0808, -0.0077, -0.04, -0.2881, -0.0097, 0.2767, 0.0399, -0.1218, -1.2565, -0.1166, -0.029, -1.3632, -1.1243, -0.0122, 0.0759, 0.0118, -1.0435, -0.3934, -0.1564, -0.16, -0.0791, -0.1759, 0.0851, 0.2387, -0.1834, 0.0019, 0.0583, -0.0938, -0.1645, -0.5493, -0.1252, -0.0342, 0.0, 0.004, 0.0, -0.0032, 0.0882, -0.2722, -0.0458, -0.0685, -0.015, -0.2191, -0.003, 0.1756, 0.0098, -0.0209, -0.5612, -0.4297, -0.0717, -0.6548, -0.1576, 0.0186, -0.0572, -1.4632, -0.1045, -0.1532, 0.2548, -0.1527, -0.0051, 0.0733, 0.137, -0.5916, -0.0267, -0.2875, 0.0716, -0.0039, 0.0255, 0.0389, -0.1745, -0.1775, -0.0213, -0.1425, 0.0, 0.0686, 0.0397, 0.0605, -0.1136, 0.015, -0.1959, -0.1351, -0.1555, 0.0245, -0.6428, -0.9188, -0.023, -0.3995, -0.1967, -0.0918, 0.0761, 0.1132, 0.0335, -0.0821, -0.0422, -0.0393, -0.0364, 0.0106, -0.2191, 0.0299, -0.0577, -0.2298, 0.0635, 0.3246, -0.0678, -0.0596, -0.0477, 0.0188, -0.1372, 0.0808, 0.082, -0.0994, 0.0764, 0.3363, 0.1753, -0.0116, -0.0187, -0.3779, -0.1253, 0.0342, 0.1176, -0.0833, 0.0209, 0.0621, 0.081, -0.0119, -0.0711, -0.0943, -0.0354, 0.1908, -0.0053, -0.2585, -0.8715, 0.2294, -0.8008, 0.419, -0.0411, -0.0232, 0.0246, -0.0511, -0.0369, 0.0872, 0.067, -0.13, -0.1569, 0.0049, 0.0055, 0.0121, -0.1309, 0.2532, -0.0051, -0.016, -0.2767, 0.0134, -1.2692, -0.0017, -0.0297, -0.0616, -0.1711, -0.0891, -0.0052, 0.0352, -0.2012, 0.0773, -0.0701, -1.0484, 0.2879, 0.3545, -2.5957, 0.1386, -0.0451, 0.2119, -0.0171, -0.1405, -0.0481, -0.1091, -0.1019, -0.0786, -0.3554, 0.1232, -0.0472, -0.1869, -5.7322, -0.0074, -0.1891, -2.27, -0.0306, -0.0121, -0.0744, -0.1196, -0.124, 0.0194, 0.0148, 0.4075, -0.5463, 0.1527, -0.0737, -0.2243, -0.3069, 0.0581, -0.0383, 0.4363, -0.0872, 0.0873, -0.0409, -0.0093, -0.0613, -0.1675, 0.027, -0.2813, 0.0007, 0.0252, -2.6929, 0.0498, 0.2859, 0.1525, -0.3479, -0.2844, 0.0053, -0.1166, -0.0427, 0.0632, -0.0935, -0.0558, -0.2135, 0.0291, 0.0319, -0.1112, 0.3208, -0.0042, -0.1515, 0.2983, -0.0406, -0.0124, -0.0537, 0.0169, -0.0116, -0.0953, 0.3001, -0.0061, -0.011, 0.3878, -0.0598, -0.0797, 0.0905, -0.1301, -0.3304, -0.0374, -0.1453, 0.0492, -0.016, -0.0217, -0.0115, 0.0166, -0.4117, 0.0005, -0.0754, -0.1613, 0.047, 0.0064, 0.0, -0.0815, 0.0693, -0.0523, 0.0955, -0.0763, 0.1093, 0.0297, -0.0125, 0.034, -0.0191, 0.8074, -1.0279, 1.1153, 0.0054, -0.0145, 0.0608, 0.0058, 0.1052, 0.0691, -0.0071, 0.0905, -0.0678, 0.0582, -0.0018, 0.3707, 0.0293, -0.1571, 0.0422, -0.1429, -0.0556, -0.0171, -0.2525, -0.0562, -0.0166, 0.3441, 0.0575, -0.0561, -0.444, -0.0285, -0.0057, 0.0575, 0.3167, 0.0192, 0.1365, -0.048, 0.1535, 0.0328, -0.0105, 0.0205, -0.0341, -0.1314, 0.0648, -0.0485, -0.0931, -3.6807, 0.174, -0.0911, -0.2165, 0.0334, 0.0154, -0.0063, -0.4871, 0.0248, 0.2893, -0.0005, -0.0127, -0.2455, 0.0522, -0.0331, 0.0577, 0.0219, 0.0296, 0.1185, 0.0834, 0.0852, 0.0556, 0.0131, -0.0769, -0.2219, -0.0137, 0.0, -0.0633, -0.1534, 0.0549, 0.4833, 0.106, 0.0914, -0.1712, -0.1012, -0.2104, 0.035, -2.0954, 0.0506, -0.0402, -0.1622, 0.0012, -0.0677, -0.0613, -0.1932, 0.0263, 0.1181, -0.0738, -1.7, 0.9795, 0.0512, -0.0252, 0.0062, -0.0232, -0.0167, 0.0629, 0.0486, 0.0395, 0.0977, -0.2032, -0.0675, -0.0132, -0.0257, -0.0971, -2.2274, 0.1602, 0.0215, 0.035, -0.0148, 0.0361, -0.4668, -0.1321, 0.0266, 0.0265, 0.4877, -0.0129, 0.0256, 0.7662, -0.0306, 0.0054, 0.1166, 0.0273, -0.0306, 0.0422, -0.0566, 0.1277, -0.0415, -0.0706, -0.0711, -0.0489, -0.0024, 0.1614, 0.5904, 0.0545, 0.0976, 0.0338, 0.0144, -0.1289, -0.0015, -1.25, -0.0406, -0.0835, -0.2068, -0.0405, 0.0923, 0.0317, 0.0188, 0.2343, 0.2876, -0.0924, -0.0017, -0.0222, -0.2403, -0.1315, -0.0966, -0.0002, 0.0, 0.0627, 0.0587, 0.0647, 0.1551, 0.4737, -0.0409, -0.0171, 0.0, 0.1263, -0.0401, -0.0327, -0.4986, 0.2877, 0.011, 0.002, -0.101, 0.0636, 0.0217, -0.0462, 0.0163, 0.0404, -0.0191, -0.0225, 0.3069, -0.097, 0.0021, -0.2481, -0.2723, -0.0454, -0.1259, -0.0701, -0.7169, -0.0054, -0.6118, 0.0121, -0.2699, -0.0696, -0.0416, -3.5136, -0.158, -0.0538, -0.0167, -0.0865, -0.4314, -0.1183, -0.0694, -0.1939, -1.0866, -0.0088, 3.5434, -0.6401, -0.1337, -0.072, -0.0071, 0.0073, 0.0809, -0.1323, -0.3748, -0.0403, 0.0269, 0.1308, 0.0961, -0.1642, -0.0516, -0.2173, -0.8094, 0.0567, -0.0714, 0.0, 1.26, 0.0189, -0.0344, -0.0108, 0.0847, 0.2709, 1.1471, 0.0461, -0.1632, -0.0016, -0.452, -0.9732, -0.1115, 0.0161, -0.0789, 0.0529, 0.1179, 0.003, 0.0982, 1.6629, -0.0212, 0.0, -0.4262, -0.1875, 0.0695, 0.3491, 0.0041, -0.0904, -0.1295, 0.0876, 0.0877, -0.6646, -0.0738, -0.0542, 0.0417, 0.0, 0.0903, 0.0865, 0.0228, -1.047, -0.2249, -0.0805, -0.0891, -0.1108, -0.6056, -0.017, -0.1226, -2.1953, -2.3783, 0.0164, -0.2722, 0.2477, 0.0149, -0.0468, -0.0009, 0.2021, 0.106, 0.3298, -0.0426, -0.0285, -0.0191, -0.0042, -0.0456, -0.1321, -0.229, -0.002, -2.1947, 0.7879, 0.0024, -0.0181, 0.0703, -0.0059, -0.098, 0.0, 0.0818, -0.2274, -0.3641, -0.0498, -0.0375, -0.1304, -0.1776, -0.0505, 0.016, 0.4035, 0.037, 0.002, 0.1215, 0.0035, 0.0185, 0.0935, -0.056, -0.4085, -0.6006, -0.2179, 0.0342, -0.0191, -0.021, 0.0189, -0.2402, -0.034, -0.0142, -0.1833, -0.0214, -0.0285, 0.0355, 0.1762, 0.0056, -0.1176, -0.0864, -0.2842, -0.0173, 0.0, 0.4729, 0.0451, -0.0231, 0.0256, -0.1509, 0.0153, 0.0172, 0.0838, -0.1295, -0.007, 0.1223, 0.5716, 0.057, 0.0572, -0.0746, -0.0611, -0.0054, -0.043, 0.0067, -1.0252, -0.1758, 0.6222, -0.1499, 0.0594, -0.0066, -0.2015, -0.0287, 0.0155, -0.0548, 0.0178, -0.0763, 0.2612, -0.0749, 0.1335, -0.0447, 0.0124, 0.0531, 0.0418, 0.2051, 0.0089, 0.2114, 0.3508, 0.5144, -0.0024, -0.0284, -0.0576, -0.0658, -0.1059, -0.1242, 0.0396, 0.1451, -0.0845, 0.0868, -0.0028, 0.0128, -0.1859, -0.1459, -0.0635, -0.0378, -0.0462, -0.0724, 0.0568, 0.0316, 0.0362, 0.0439, -0.0254, -0.004, 0.0031, 0.0616, -0.1082, -0.0184, -0.0507, -0.1144, 0.0, -0.2582, 0.3364, -0.665, 0.0336, -0.0046, 0.0389, -0.0152, 0.0198, 0.0689, 0.0309, -0.0411, -0.5798, 0.0, 0.0102, -0.0101, 0.0238, 0.0439, 0.1841, 0.0, 0.0411, 0.0344, 0.0439, 0.0623, 0.1147, -0.2957, -0.0493, 0.0075, -0.2421, -0.061, 0.3677, 0.0138, 0.2501, 0.0403, -0.0755, -0.3803, 0.0364, 0.026, 0.0913, 0.0392, -2.6818, -0.1444, -0.0866, -0.0335, 0.0262, 0.0269, 0.0872, -0.0654, -0.0453, -0.0576, -0.0441, -0.042, 0.0399, 0.1172, -0.0139, 0.0, -0.0751, 0.0685, -0.1276, 0.0854, 0.0531, 0.0391, 0.0367, -4.0663, 0.0103, -0.081, -0.1336, -0.068, 0.0363, -0.0413, 0.0179, 0.2515, -0.0165, -0.0697, 0.0768, 0.356, -0.0438, 0.0691, -0.0188, 0.1207, 0.0033, 0.1756, 0.0276, -0.1008, 0.1014, -0.0029, 0.1235, -0.0127, -0.002, 0.2538, -0.0512, 0.1361, 0.0075, -1.8506, -0.0343, -0.008, -0.3978, 0.5955, -0.0142, -0.0079, 0.0247, 0.0008, -0.2313, 0.027, 0.1006, -0.0067, 0.0531, 0.0, -1.2899, 0.5164, 0.0447, 0.0183, 0.1024, -0.0745, -0.0746, -0.0096, 0.0474, -0.082, -0.2525, -0.0347, -0.5236, 0.0154, 0.2495, -0.0235, -0.1298, 0.0292, -0.0174, -0.2672, 0.0211, -0.2045, -0.2026, -0.03, 0.1728, -1.6255, 0.0563, -0.2972, -0.008, -0.0036, -0.0852, 0.1789, 0.0403, -0.384, 0.0718, 0.0898, 0.0237, 0.0759, -0.036, -0.0974, 0.0879, 0.2557, 0.6423, -0.0403, -0.0303, 0.5422, -0.0678, -0.0659, 0.1231, 0.3532, -0.0805, -0.1332, -0.0547, -0.1913, 0.3439, 0.047, -7.211, 0.0803, 0.1328, 0.1675, -0.3622, -0.493, 0.024, -0.0586, -0.1045, 0.0151, -0.4087, -0.0404, -0.2512, -0.1451, 0.0466, 0.0064, 0.2519, 0.2521, -1.5712, 0.0126, -2.5972, -0.0182, -0.1842, 0.0286, -0.4015, -0.0532, 0.0546, 0.0705, -0.527, -0.1224, -0.2482, -0.0341, -0.0494, -0.6151, -0.0459, -0.0337, 0.2286, 0.052, -0.0118, 0.1757, -0.0, 0.0326, 0.946, 0.0069, 0.0345, -2.5776, -1.5323, -0.058, -0.0229, 0.0921, -0.016, 0.1571, -0.1277, -0.1004, 1.4247, 0.2318, 0.0079, -0.0163, -0.1279, 0.0282, -0.1214, -0.2955, -0.2651, -0.0521, -0.1108, -0.07, -0.4028, -0.0942, -0.0591, -0.0459, -0.1067, 0.0, 0.0237, -0.0889, 0.0633, 0.0341, 0.0568, -0.5467, 0.0535, -0.6504, 0.0517, 0.138, 0.0007, 0.1221, 0.7227, -0.0967, -3.5608, -0.0552, -0.4678, 0.0684, 0.0, -0.0552, -0.014, 0.1491, 0.1103, 0.0061, -0.0575, -0.0825, -0.1073, -0.116, 0.0752, -5.595, 0.0, -0.0491, -0.1212, 0.1818, 0.0985, 0.0152, -0.0463, -0.0108, 0.0705, -0.7838, 0.1293, 0.0791, -0.0315, -0.0201, -0.0973, 0.0646, 0.0084, -0.1771, -0.1558, -0.0496, -0.277, -0.1279, -0.0972, -1.1922, -0.2341, -0.0184, -0.1184, -0.2419, -0.1306, -0.1254, 0.1202, -0.0087, -0.0893, 0.1381, -0.121, -0.0252, -0.1243, -0.0439, -0.142, 0.0583, -0.0005, 0.0485, -0.0714, 0.4787, 0.2335, -0.0958, 0.014, -0.0932, 0.0875, -0.2749, 0.0882, 0.1174, 0.1523, -1.3492, -0.0132, 0.0203, 0.0493, -0.035, 0.0036, -0.3612, -0.1226, 0.0262, -0.1458, -0.1099, 0.0161, 0.1674, -0.0359, -0.0268, 0.0471, -0.0004, -1.2693, 0.3556, -0.0597, -0.0333, -0.1085, -0.0659, -0.3091, -0.0756, 0.0472, -0.0449, -0.2665, 0.0754, 0.3509, 0.0487, 0.0747, 0.1071, 0.0102, 0.2212, -0.0699, -0.0842, -0.0312, 0.2363, -0.0376, 0.0, 0.0843, 0.2112, -0.0547, -0.0509, -0.0408, 0.4029, -0.0198, 0.0237, 0.0902, 0.4275, -0.0081, -0.3764, -0.0681, -0.0299, 0.0595, 0.0183, -0.053, 0.0977, 0.0137, 0.5457, 0.0487, -0.06, 0.158, -0.2653, -0.3444, -0.092, -1.0118, -0.07, 0.0339, 0.0218, -0.0515, -0.0457, -1.3758, 0.0143, 0.0726, -0.007, -0.1493, -0.0947, 0.0399, 0.0354, -0.5718, -0.0448, -0.1348, -0.3077, 0.0093, 0.0231, 0.0534, 0.1084, 0.1716, -0.0592, -0.0373, -0.5646, -0.0052, -0.1332, -0.0042, -0.0641, 0.1107, 0.7994, -0.0211, -0.0482, -0.0155, -0.8126, -0.0252, -0.0614, 0.0199, 0.0622, -0.6131, -0.3499, 0.0279, -0.0041, 0.0646, 0.0063, 0.0329, 11.5233, 0.0277, 0.0132, 0.0427, 0.0374, -2.3427, -0.0362, 0.5383, 0.2317, 0.0, 0.2933, 0.0143, -0.3016, -0.075, -0.8864, 0.1059, 0.0083, 0.1128, 0.0839, -0.0084, -0.0629, -0.0138, -0.1976, -0.0587, 0.2262, -1.63, -0.11, 0.0524, -0.0409, 0.131, 0.0551, 0.0007, 0.0052, -0.4188, 0.0168, 0.0385, 0.0359, -0.0007, -0.0216, 2.0679, -0.2735, -0.0049, -0.045, 0.0437, -0.3153, 0.0438, 0.0156, -0.0048, -0.0687, 0.3317, 0.1182, -0.3404, -0.2769, 0.0217, 0.0425, -0.0647, -0.045, 0.1469, -0.0565, 0.1171, 0.0002, -0.1045, -0.0468, -0.1486, -0.0732, 0.1431, 0.0235, -0.0396, -0.05, 0.0023, 0.2356, -0.1972, -0.0472, -0.043, 0.1803, -0.0577, -0.0184, -0.0106, 0.0017, 0.003, 0.033, 0.0181, 0.184, -0.0693, 0.018, 0.1231, 0.0265, -0.1395, 0.0559, 0.1768, -0.2252, -0.0233, -0.0991, -0.0039, -1.3058, -0.5356, -0.0238, -0.3485, -0.2671, -0.3337, -0.0262, 0.0468, -0.0941, -0.0598, -0.0775, -0.6423, -0.3187, -0.1543, -0.0561, 0.0868, -0.063, 0.0155, -0.0277, 0.0084, -0.0218, -0.2639, 0.0241, 0.0407, -0.0437, -0.0209, 0.0017, -0.0421, -0.1946, -0.1051, -0.1686, 0.0166, 0.1937, 0.273, -0.0179, -0.7996, -0.1144, -0.012, 2.2639, -0.0118, 0.1299, 0.0829, -0.1577, 0.0263, -0.0422, 0.5384, -0.0385, 0.0229, 0.0253, -0.3014, -0.6925, 0.0066, 0.0475, -0.1014, -0.0771, -0.0256, -0.0165, -0.0179, 0.0406, 0.071, 0.0369, -0.323, -0.0739, -0.0515, -0.2357, 0.2077, 0.0555, 0.0946, -0.2438, -0.1067, 0.0274, 0.1212, 0.0, -0.0306, 0.0691, 0.0417, -0.1223, -0.1459, -5.1927, -0.0919, -1.3444, -0.0878, -0.2124, 0.0475, -0.0828, -0.0983, 0.0367, -0.1358, -0.0034, 0.0, 0.1343, 0.0892, 0.675, 0.0158, -1.8618, 0.0048, -0.1469, 0.0149, 0.0373, -0.0011, -0.037, 0.0397, -0.0755, 0.1423, 0.06, -0.0231, -1.0014, -0.0052, 0.0153, -0.1414, -0.0976, -0.044, 0.034, -0.2366, 0.154, 0.0657, -0.0175, 0.0771, 0.0571, -0.6294, -0.0594, 0.026, 0.0722, -0.01, -0.0044, -0.0397, 0.0352, -0.1458, -0.0165, 0.0, -0.0196, -0.1489, -0.3116, 0.0285, -0.1095, -0.2012, -7.0024, 0.0178, -0.0526, -0.3002, -0.2277, -0.1536, 0.0107, -7.2436, -0.1431, 0.1212, -0.1651, -0.2098, -0.2983, -0.3316, -0.4121, 0.0133, 16.7783, -0.1732, -0.0632, 2.3619, -0.1069, 0.2067, -0.0123, -4.1433, -0.174, -0.0696, -0.0759, 0.0, 0.0119, -0.4127, 0.2921, -1.0123, -0.0478, -0.1473, 0.0186, -0.0656, -0.1075, 0.0424, 0.0482, 0.1985, -4.3229, 0.4002, 0.01, -0.0688, 0.0367, 0.0376, 0.11, -0.0645, 0.2513, -0.0859, -0.009, -0.0007, -0.0912, 0.049, 0.2187, -0.0361, 0.0513, -0.1913, -0.034, -0.018, 0.1685, -0.2304, -0.0535, 0.0952, -0.0614, -0.0812, 0.0543, -0.038, 0.0899, 0.0346, -0.0443, -0.0084, -0.1143, 0.4704, -0.0387, 0.1073, -0.0498, 0.0359, -0.0102, -0.164, 0.068, -3.8045, 0.2231, -0.0205, 0.0478, 0.0132, -0.2092, 0.018, 0.3512, -0.4305, -0.0097, 4.6182, 0.0037, -0.5354, -0.0471, -0.039, 0.0563, 0.0791, 0.1719, -0.0395, 0.093, 0.0766, -0.0954, 0.0978, -0.5364, 1.192, 0.0, 0.0128, 0.2793, -0.0897, 0.1321, 0.1048, 0.0924, -0.5641, 0.0174, 0.0183, -0.0415, -0.1622, -0.6027, -0.0306, 0.0999, -0.3712, -0.223, -0.1406, 0.2251, -0.0582, 0.0739, -0.0669, -0.0105, -0.1854, 0.5349, -0.1858, 0.0939, 0.0823, -0.0442, -0.0206, -0.004, -0.0394, -0.1966, -0.0056, 0.5742, -6.8663, 0.0299, 0.0, 0.0185, -0.0927, 0.0914, 0.0317, -0.0168, 0.12, 0.0829, 0.0061, -0.3109, 0.1099, 0.113, 0.0502, 0.0492, -0.0209, 0.0211, 0.0047, -0.0069, -0.0402, -0.0074, 0.499, 0.0773, -0.1135, -0.1155, -0.0044, -0.1048, 0.2323, 0.1015, 0.0879, 0.6607, 0.04, 0.0121, -0.1574, 0.0408, -0.0066, -0.1143, -0.0827, -0.472, 0.3014, 0.425, -0.4469, 0.0706, -0.085, 0.0692, 0.0767, -0.0909, -0.1477, 0.0962, 0.1224, -0.0196, -0.5114, -0.0718, -0.0884, -0.0806, -0.0957, 0.0144, -0.1048, -0.1673, 0.0281, -0.0261, -0.0715, -0.1012, -0.1415, -0.0168, -0.1137, 0.0605, -0.0616, -0.0799, -2.3009, 0.1096, -0.0119, -0.8739, -0.0051, -0.057, -0.2319, 0.2469, -0.0248, 0.0849, 0.0149, -0.1629, -0.2718, -0.022, -0.2571, -0.049, -0.1103, 0.0443, -0.1382, 0.0994, -0.9413, -0.0736, -0.2175, -0.1537, 0.0, -0.2599, 0.1927, -0.2816, -0.7223, 0.0379, -0.3715, 0.0392, -0.0011, -0.0091, 0.057, -0.053, -0.0331, 0.281, -0.0571, -0.0914, -0.1289, -0.228, -0.3577, -0.3305, -0.1731, -0.123, 0.0687, 0.0295, 0.0339, 0.0046, -0.3101, 0.0471, 0.2941, -0.1003, -0.0426, -1.6378, 0.0683, 0.0493, -0.295, 0.0454, 0.063, 0.194, -0.2098, 0.0295, -0.0647, -0.1301, -0.0164, 0.1245, -0.0066, 0.1055, -0.0104, -0.2915, -0.0386, -0.0294, 0.1115, -0.0265, -0.2342, 0.0947, 0.1237, 0.5079, -0.0263, 0.0116, -0.0529, 0.0772, -0.0291, 0.0059, -0.1513, 0.1483, 0.0803, -0.0871, 0.0, -0.2139, 0.0136, 0.0083, -0.0312, -0.3149, -0.0032, -0.1256, -0.44, -0.142, -0.0184, 0.008, 0.0195, 0.0973, 0.0, 0.0594, -0.0011, 0.9595, -0.3754, -0.0054, -0.0698, -0.0486, -0.0467, -1.8033, 0.3039, -0.0362, 0.4703, -0.0005, -0.0166, -0.1868, -0.0776, 0.4317, -0.0068, 0.0135, 0.0393, -0.0833, -0.0568, 0.0692, -0.2095, -1.8606, 0.1631, 0.0398, -0.5807, -0.1535, -0.0367, -0.0467, 0.8848, 0.0, 0.8382, -0.7486, 0.0, -0.0106, 0.2274, 0.0278, 0.0784, -0.0345, -11.851, -0.0073, -0.1104, -0.1667, 0.1785, -0.1032, -0.3288, 0.0403, -0.0291, 0.1211, -0.2885, -0.0332, 0.0187, 0.0636, 2.0711, 0.0239, -0.707, -0.2025, 0.0462, -0.1948, -0.2039, 0.4002, -0.047, -0.0455, -0.4627, 0.0, 0.1166, -0.1361, -6.7533, -0.0907, -0.0111, -0.0259, -0.0157, -0.0084, 0.0588, 0.0606, 0.0848, 0.1255, 0.0193, -0.0082, -0.0284, 0.0, 0.0801, 0.0553, -0.0458, -0.0951, 0.0005, 0.0179, 0.0918, 0.1461, 0.0233, -0.1049, 0.3616, -0.1938, 0.0, -0.0708, -0.0104, 0.0063, -0.0319, 0.0106, -0.0026, 0.1018, -0.1005, 0.0814, -0.377, -0.1273, -0.264, 0.0054, 0.365, -0.3596, 0.0326, 0.0197, -0.0998, 0.0601, -0.0176, 0.0067, 0.0364, 0.0, -0.0205, 0.0564, -0.0672, -0.2163, -0.0889, 0.0154, 0.0422, 0.0599, 0.0399, 0.0615, 0.0, 0.0697, 0.0022, 0.0657, -0.0383, 0.0084, 0.0369, -8.925, 0.0043, 0.8231, -0.1236, 0.01, -0.8724, -0.0545, 0.0585, -0.0262, 0.368, -0.0142, 0.4021, -0.0476, -0.2218, -0.1398, -0.256, -0.05, -0.0804, -0.1199, -0.2444, -0.0955, 0.0263, 0.0139, 0.0405, -1.2141, 0.0544, 0.0011, 0.061, 0.929, -0.6296, -0.0578, 0.0344, -0.1155, -0.2227, -0.1457, 0.1165, -0.3547, -0.1184, -0.0925, -0.0813, 0.0938, -0.0517, -0.0779, -0.1159, -0.0156, -0.1288, -0.0948, -0.0851, 0.487, -0.1433, -0.2186, -0.0472, 0.0659, -0.2001, 0.002, 0.0143, -0.0236, -0.1784, -0.0928, -0.0306, 0.0, -0.118, -0.0845, -0.0692, -0.7057, -0.0453, -0.0144, 0.0424, 0.3643, 0.0691, -0.049, 0.0, -0.0073, -0.247, 0.018, -0.1865, -0.1946, 0.0478, -0.0459, -0.1164, 0.055, 0.0382, -0.0521, 0.0421, 0.1214, -0.1725, -0.0199, 0.1814, -0.0721, -0.1944, -0.4624, -0.1968, -0.1904, -0.1987, -0.2124, 0.0614, 1.75, -0.1223, 0.0046, -0.2629, -0.0836, -0.8307, -0.0448, 0.0587, 0.4476, -0.0322, 0.0187, 0.0139, 1.124, 0.1284, -0.1747, -0.1554, -0.2493, -0.853, 0.0, -0.4511, -0.3574, -0.1378, -0.0222, -0.1133, 0.026, -0.0031, -0.0416, 0.1113, -0.2352, -0.8823, -2.2513, 0.0757, -0.5053, -0.1435, -0.288, 0.0, -0.1142, 0.1022, 0.074, -0.0574, 0.0534, 0.0313, -0.5333, -0.204, 0.0155, 0.0891, 0.0173, 0.0848, 0.066, -0.0993, -0.0625, 0.0188, -0.1769, 0.1012, -0.1871, 0.2956, 0.0193, -0.0679, -0.1419, 0.0194, -0.0815, -0.1383, -0.0229, 0.0095, 0.0196, -0.0231, -0.122, -0.3721, 0.1416, -0.3944, -0.0881, -0.0431, 0.1459, 0.0228, -0.012, 0.0399, 0.0728, -0.0818, -0.073, -0.0031, 0.1327, -0.8853, 0.05, -0.043, -0.1229, -0.0036, 0.1718, -0.031, 0.0323, -0.1095, 0.0672, -0.4701, -0.1156, -0.435, 0.0779, 0.0298, -0.0337, 0.0406, -0.0195, 0.0362, 0.2091, -0.0168, 0.2279, 0.1795, 0.0776, 0.0252, 0.0393, 0.0838, 0.1141, -1.2128, 0.1539, -0.8514, -0.5316, 0.1021, -0.0733, 0.3325, 0.0582, -0.0376, -20.2175, 0.0309, -0.0338, 0.0883, 0.0615, 0.0, 0.0035, 0.0484, -0.0606, -1.1893, -0.2399, -0.133, -0.3511, -0.0115, 0.1141, 0.458, 0.0541, 0.0136, -0.0059, 0.031, 0.0264, -0.0242, -0.0788, -0.2236, -0.0763, 0.1031, -0.0765, -0.2129, -0.3971, 0.0601, -0.6105, 0.0261, -0.0571, -0.1833, 0.0264, 0.0101, -0.0695, -0.0178, -0.0602, -0.8585, -0.1063, 0.0049, 0.0055, -0.2608, -0.0578, -0.0518, -0.0309, 0.0166, 0.0571, -0.0517, 0.0276, -0.0148, -0.0412, 0.4312, 0.0282, 0.0451, 0.0, -0.1186, 0.1239, -0.1643, -0.0222, -0.1375, -0.0133, 0.1735, 0.4697, -0.3854, 0.0483, 0.0303, -0.0462, 0.0311, -0.3413, -0.1395, -0.1577, -0.2014, 0.172, 0.0551, 0.0487, -0.0983, -0.0224, 0.0348, 0.0023, -2.8389, -0.1571, 0.0552, -0.1298, 0.0193, 0.037, -0.0099, -0.0075, 0.0835, -0.9389, -0.0184, 0.1738, -0.148, -0.092, 0.0257, 0.0659, 0.0355, -0.0886, -0.141, 0.0831, 0.035, 0.0532, -0.3084, -0.158, -0.0534, -0.1786, 0.8038, -0.0067, 0.0277, -0.0317, 0.0053, 0.8753, 0.0985, 0.0312, 0.0039, -0.1586, -0.1171, 0.0335, -0.1193, -0.0472, 1.0794, -0.4046, -0.021, -0.0288, 0.0431, 0.0362, 0.0, -0.9918, 0.0038, 0.0487, 0.0401, 0.0723, 0.014, -0.2276, -0.1274, -0.0978, 0.5334, 0.0569, 0.1322, 0.0848, -0.0089, 0.0192, -0.0703, -0.5353, -0.3192, 0.1941, -0.0832, 0.133, -0.0273, -0.4758, -0.0747, -0.1257, -0.4719, 0.0091, -0.0732, 1.4493, -1.0943, -0.0366, 0.0056, 0.1212, 0.0239, 0.0231, 0.006, 0.0512, 0.1601, 0.081, -0.0109, -0.0423, 0.0573, -0.0004, 0.1416, 0.2232, -0.1659, 0.3603, 0.027, -0.0488, -0.0423, -0.014, 0.4571, 0.2519, 0.0599, 0.0392, 3.1172, 0.5711, -0.0729, -0.0814, -0.1709, 0.7625, -0.0899, -0.7103, -1.0612, -0.0896, 0.0109, -0.0685, 0.225, -0.0839, -0.0164, -0.524, 0.0421, 0.2534, 0.0072, 1.6086, -0.0408, -0.015, -1.283, 0.4771, 0.0026, 2.1939, -0.0463, -1.5531, -0.0659, 0.0547, -1.3658, -1.7626, -0.027, -0.1736, -0.0167, -0.0353, 0.0023, 0.2352, 0.1362, -0.0361, -0.1279, -0.5036, -0.284, -0.2847, -0.015, -0.0694, 0.0527, -0.0544, -0.1276, -0.0506, -0.153, 0.0434, 0.1346, 17.5364, 0.6069, 0.0632, -0.1135, 0.0365, 0.0054, -0.146, 0.1711, 0.1457, 0.0784, 0.002, -0.7116, -0.1155, -0.006, -0.0027, 7.7004, 1.47, -0.0207, -0.5092, 0.2935, 0.4448, 0.0955, -0.0635, -0.0666, -0.0814, 0.003, -0.0979, 0.0199, -0.237, 0.0296, -0.0801, -5.6057, -0.7874, -0.0023, -0.0371, 0.1563, 0.0275, 0.0068, -0.1094, -0.1372, -0.3535, 0.0324, -0.1245, 0.0614, -0.2339, -0.4682, -0.2719, 0.007, 0.0868, 0.1756, -0.0885, 0.0, 0.0, 0.0476, -0.0572, 0.0002, -0.0749, -0.1788, 0.0137, -0.1181, 0.026, 0.0075, -0.1077, -0.0074, -0.2342, -0.1864, 5.3558, -0.1083, 0.0814, -0.0613, -0.0608, 0.0299, 0.1098, -1.3807, -0.0168, 0.0007, -0.0447, -0.0921, -0.0337, 0.1535, -0.0044, -0.5038, -2.6364, 0.0405, -0.0816, 0.0, 0.0161, -0.0357, -20.5455, -0.0712, 0.0518, -0.0547, 0.056, -0.0011, 0.0, 0.0301, -0.0254, -0.3709, -0.0206, -0.7888, 0.0261, 0.0515, 0.0564, 0.01, 0.028, 0.0, 0.0323, 0.138, -0.0529, -0.1495, 0.1195, 0.2696, -0.1072, 0.4796, -0.1795, -0.0378, 0.1867, 0.0219, -0.0194, -0.0873, -0.081, 0.0192, 0.1168, -1.4808, -0.0919, 0.2465, -0.0149, -0.1804, 1.0619, -0.0235, -0.3091, -0.011, 0.0425, 0.0245, -0.0404, -3.038, -0.2161, -0.0699, -0.1161, -0.0687, 0.3875, 0.0318, -0.0329, -0.6264, -0.2703, -0.01, 0.0383, -0.0648, -0.2942, -0.2078, -0.2553, 0.1836, 0.0521, -0.0271, -0.1482, 0.1661, -0.6429, -0.053, -0.1548, 0.1156, 0.0905, 0.0807, -0.1106, -0.0134, -0.0419, 0.0096, 0.0066, -0.3462, 0.2145, -0.3244, 0.0398, 0.0, -0.1065, 0.0287, -0.004, 0.0559, -0.8698, 0.1592, 0.0011, 0.0965, 0.0474, 0.0782, 0.0047, 0.0929, -0.0385, -0.6079, 0.1456, 0.1843, -0.1227, -0.3769, -0.0415, 0.051, 0.0059, 0.0278, -0.062, -0.1686, 0.023, -0.0513, 0.0035, 0.0594, -0.2531, -0.0561, -0.0595, 0.1469, -0.0073, 1.5661, -0.046, 0.0041, 0.0255, -0.0013, -0.3156, -0.0378, 0.1066, -0.7867, 0.128, -0.5963, -0.0551, -0.401, 0.1603, -0.0648, -0.0418, 0.0521, 0.1205, 0.1784, -0.0392, 0.0116, 0.0, -1.5812, 0.0952, -0.1066, -0.0339, 0.0682, 0.1013, 0.1029, 0.0389, -0.3895, 0.0003, -0.219, -1.5994, -0.0689, 0.1039, 0.0071, -0.0183, -0.0951, -0.0807, -1.1168, 0.185, 0.3153, 0.1521, -0.0382, 0.0592, -0.1997, -0.047, -0.0467, 0.8477, -0.0393, 0.1901, 0.0408, 0.2165, 0.0564, -0.3206, -0.5526, -0.1585, 0.0805, 0.0531, 0.0, 0.0292, 0.017, 0.0042, 0.0078, -0.1032, 0.0784, 0.0808, -0.0277, 0.0599, -0.734, 0.225, -0.2976, 0.0309, 0.0427, 0.0892, 0.0191, 0.0472, -0.0295, -0.0002, 2.4328, -0.0918, -0.0698, -0.0223, 0.2348, -0.0648, 0.0139, 0.0075, -0.1236, 0.0615, 0.034, -0.1545, 0.1059, -0.0061, 0.7244, 0.0413, -0.0312, 0.2972, 0.0, 1.1033, -0.4211, 0.2188, 12.8983, 0.1712, -0.0959, 0.0241, -0.0019, -0.0407, 0.1163, 0.4114, -0.0471, 0.0569, 0.2208, -0.0108, 0.0335, -0.1678, -0.004, -0.0046, 0.0327, -0.0898, -0.1095, 0.0261, -0.5584, -0.0838, -0.0099, 0.0008, 0.0582, 0.1009, 0.1996, 0.3143, 0.0137, 0.0622, 0.0768, -0.2375, -0.0544, -0.0703, 1.0014, -0.0416, 0.0712, 0.1133, -0.015, 0.0616, -0.6522, 0.0491, 0.2332, 0.0472, -0.0835, 0.0795, -0.0117, 0.2001, -0.0246, 0.0711, 0.0841, 2.5242, 0.1021, 2.5502, 2.0619, 0.0058, 0.0313, -0.0726, 0.0232, 0.8483, -10.3967, 0.0288, -0.0235, 0.007, 0.2971, 0.2388, -0.0736, -0.1241, -0.758, -0.0095, -0.0951, 0.0035, 0.0811, 0.0546, 0.4797, -0.1174, -0.0577, 0.0239, 0.0452, -0.1822, 0.15, -0.0032, 0.0862, 0.0346, 0.0041, -0.1054, -0.4105, -0.5293, 0.233, -2.2479, 0.0893, 0.0359, -0.0707, -2.6655, -0.1865, 0.1253, -0.0563, 0.0844, -0.2633, -0.3383, -0.0706, -0.1485, -0.0257, -0.0077, -0.001, -0.2359, 0.0532, -0.078, -0.0503, 0.0021, -0.0753, 0.0941, 0.0094, -0.0631, -0.185, 0.6426, 0.1385, 0.0, 0.1586, 0.1933, 0.0785, -0.0889, -0.1067, -0.2769, -0.0225, -0.0517, -0.0652, 0.2669, -0.189, 0.0027, 0.2668, -0.0378, -0.2758, 0.1151, 0.0921, -0.029, 0.0901, 0.0852, -0.6344, 0.8793, 0.0482, -0.0067, -0.0258, 0.4651, -0.4077, -0.0786, -0.1043, 0.2392, 0.0944, 0.2862, 0.1651, -0.0643, -0.0445, -0.0862, -0.0046, -0.1893, -0.1523, -0.0695, -0.0217, -0.0035, -1.0063, 0.2008, 0.9752, -0.0576, -0.0661, 0.0926, -0.0763, 0.0679, 0.015, -0.0179, -0.0277, 0.0143, -0.1126, -0.0696, -0.1769, 0.4646, 0.3836, -0.3499, 0.0643, 0.0794, 0.0673, -0.2798, 0.0123, -0.0531, -0.1853, 0.0457, -0.0506, -0.0253, -0.1019, -0.0217, 0.023, -0.0516, -0.0098, -1.8983, 0.093, -0.4092, 0.0492, 0.0888, -7.126, -0.1699, -0.097, -0.0349, -2.7661, 0.1834, 1.1125, -0.0299, -0.1678, -1.635, -0.8431, 0.0698, 0.2502, -0.3876, -0.8807, 0.0059, 0.313, 0.044, -0.0293, -0.0166, -0.117, 0.1841, -0.0942, 0.0337, -0.0124, -0.2027, 0.2263, 0.0629, -0.2118, 1.6885, -0.8096, -0.5482, -0.3448, 0.071, 0.0281, 0.0512, 0.0, 0.0118, -0.9539, 2.1729, -0.0796, 0.0491, 0.0131, 0.4979, 0.0195, 0.0342, 0.1516, 0.0029, 0.0301, 0.1335, 0.6514, 0.1835, 0.1393, 1.6844, -0.1175, -0.0357, -2.8794, 0.0355, 0.2717, -0.0115, 0.0217, 0.0693, -0.9383, 0.009, -0.4603, 0.2496, 0.0044, -0.0894, 0.0501, -0.0696, -0.0523, 0.0, -0.136, 0.3084, 0.0659, 0.0105, -0.3091, -0.0609, -0.0419, -0.0049, -0.7791, -0.7461, -0.2319, -0.1816, -0.0185, 0.0502, -0.0166, 0.0702, 0.0775, 0.0334, 0.0453, 0.8193, -0.0884, -0.0111, -0.2769, -0.1267, -0.0576, -0.2291, -0.4918, -0.1086, -0.4424, -0.0877, -0.0158, -0.2174, 0.1453, -0.1992, -0.1375, 0.043, -0.1211, 0.0065, -0.0822, 0.0574, 0.0471, 0.1193, -0.0653, -0.1299, -0.0246, 0.0038, -0.4071, 0.0319, -0.0124, -0.3759, 1.2391, 0.1359, 0.0397, 0.0032, 0.1256, -0.03, 0.0178, 0.0687, 0.1082, -0.0386, -0.0123, 0.0352, 0.0087, -0.4727, 0.0336, -0.2128, 0.0966, -0.0172, 0.0302, -1.807, -0.034, 0.0008, 0.0731, -0.0166, 0.0525, 0.0285, 0.1142, -0.0727, -0.068, 0.0091, 1.567, -0.1993, -0.0796, 0.0085, -0.0224, 0.3437, 0.7815, -1.1888, 0.9843, -0.022, -0.5033, 0.0, 0.1303, -0.0724, -0.0451, 0.2497, 0.0054, 0.075, 0.0266, 0.0035, 0.0972, -0.0706, 0.0137, 0.0825, 0.0848, 0.0218, 0.004, 0.0011, -0.0375, 0.2066, -0.2527, -0.2857, 0.0, -0.2518, -0.0677, -0.2558, 0.2507, 0.057, -1.0241, -0.1749, 0.0458, -0.1358, 0.0059, 1.9821, -0.0703, -0.1329, -0.1384, -0.1474, -0.1552, -0.1062, -0.1008, 0.0983, -0.5136, -0.0944, -0.0558, 0.2165, -0.0427, -0.1272, -0.0287, -0.0976, -0.1188, -0.0571, 0.1286, 0.352, -0.0349, -0.5299, -0.0401, -2.3273, -0.2041, -0.0319, -0.673, -0.1156, -0.0122, -0.0553, -0.1006, 0.6587, 0.1171, -0.6341, -0.0125, -0.748, -0.0711, 0.2985, 0.3802, -0.066, -0.0335, -0.0388, 1.17, -0.0677, -0.0365, -0.0269, 0.4889, -0.0264, -0.0703, 0.0233, -0.0774, -0.017, 1.9526, -0.5628, -0.0306, -0.1491, -0.0588, -5.4717, -0.2386, 0.0182, -0.0339, 0.3484, -0.0093, 0.0542, 0.02, -0.2225, -0.056, -0.1236, -0.001, -0.0177, -0.3772, 2.261, -0.9508, 0.0087, -0.0144, 0.0173, -0.1085, -1.6267, 0.0729, -0.5419, -0.0377, -0.0565, -0.3236, -1.8691, 0.0114, 0.0337, 0.0806, -0.144, -0.8727, -0.0074, -0.0853, -1.9056, -0.3841, -1.6526, 0.0448, 0.0739, 0.1302, -0.0618, -0.1814, -0.0096, 2.5775, 0.6846, -0.0449, 0.0628, -0.4103, 0.1022, 0.2344, 0.0192, -0.2844, 0.0002, 0.099, -0.2034, 0.0052, -0.0241, -0.1632, 0.0784, 0.0, 0.018, 0.095, 0.0446, -0.0582, -1.3384, -0.2478, 0.2413, -1.8315, -0.0921, -0.0313, -0.0042, -0.0686, -0.6943, 1.3937, -0.5983, -0.1149, -0.0545, -0.4418, -0.0017, -0.0687, -0.0248, -0.0897, 0.0081, 0.0174, -0.0901, -0.0767, 0.0822, 0.0739, -0.008, 0.0087, -0.7438, -0.15, -1.0452, -0.0375, -0.0941, 0.157, 0.0673, 0.1475, -0.1924, -0.2319, 0.0022, -0.0899, 3.7181, 0.0964, 0.0066, -2.2233, -0.0706, -0.0082, -0.0308, -0.0021, -0.0205, 0.0221, -0.1951, -0.1297, 0.0041, -0.0647, -0.0813, -0.0296, 0.023, 0.2607, 0.0632, -0.2788, 0.0127, 0.1762, -0.0545, -0.0999, 0.3784, -4.2223, -0.0304, -0.0424, 0.2584, -0.1072, 0.027, 0.0447, 0.028, -0.0865, 0.0459, -0.0205, 0.1072, 0.0154, 0.0, 0.067, -0.037, -0.054, 0.0002, 0.0225, -1.0999, 0.0284, 0.0059, 0.0868, 0.0075, 0.1175, 0.1129, 0.0052, 0.0244, 0.0377, -0.0105, -0.0117, 0.0493, 0.0461, -0.0129, -0.8609, 0.0102, -0.2083, 0.0626, -0.0758, 0.333, -0.0001, -0.0367, -0.0025, 0.1047, 0.0498, 0.2321, -0.0071, 0.0558, -0.0099, 0.0501, 0.054, 0.1125, 0.0807, 0.1052, -0.1371, 0.2825, 0.166, -3.3725, -0.2155, -0.1993, -0.1659, -0.1602, 0.1144, -0.2334, -0.0601, 7.8495, -0.1091, 0.0405, 0.0655, -0.3102, -0.0637, -0.1406, -0.0696, -0.0086, 0.0517, 0.0726, 0.0062, -0.0028, 0.0299, 0.1094, 0.1732, -0.013, 0.0525, 0.0381, 0.0199, -0.0109, 0.2898, 0.0, 0.0335, -0.0146, -0.087, -0.0181, -0.0039, 0.1345, -0.4754, -0.0209, 0.018, 0.0788, -2.6523, 0.027, 0.0714, -0.0102, -0.5781, 0.0857, -0.061, 0.2706, -0.081, -0.0228, -0.0682, 0.0214, 0.0, 0.1331, 0.1444, 0.0479, 0.1248, -1.934, 0.0692, -0.2315, 0.0, 0.7726, -0.154, 0.0866, -0.1903, -0.0132, 0.0, -0.0176, 0.067, -0.3089, -0.5911, 0.0198, 0.0631, -0.0189, -0.3751, -0.1601, 0.0169, -0.0498, -0.1341, 3.1689, 0.009, 0.051, 0.0336, -0.2101, -0.021, -0.139, -0.361, -0.2552, 0.1672, -0.0373, -0.141, -0.1319, 0.0895, 0.0536, -0.0145, 0.1848, 0.2655, 0.0523, -0.636, -0.1571, 0.0319, -0.0728, -0.0673, -0.0108, -1.6406, -0.1085, 0.0081, 0.0519, 0.0526, -0.0053, -0.0349, 0.0294, 0.0016, 0.2074, 2.3122, -0.0601, 0.1145, 0.0273, -1.9748, 0.0266, -0.0903, -0.0186, 0.0, 0.0, -0.0205, 0.0, -0.0017, -0.0084, -0.0047, 0.0586, 0.3527, -0.0367, -0.2158, -0.0059, 0.1577, 0.0432, 0.0445, 0.0401, 0.2012, -0.0393, 0.3921, 0.0, -0.1, 0.0186, -0.0009, 0.0255, -0.1071, 0.4125, 0.1212, 0.0408, 0.2634, -0.0606, 0.0005, -0.0445, 0.0256, 0.0017, -0.0149, 1.8538, -0.0085, 0.0, -0.2645, -0.125, 0.1472, 0.0231, -0.0349, 0.0458, -0.0208, 0.0096, -0.5279, 0.0098, -1.9202, -0.0995, 0.4767, -0.1153, -0.0039, -0.0884, 0.1081, -0.038, -0.1535, 1.1576, 0.2487, 0.0699, -0.0372, 0.2661, -0.0292, 0.0108, 0.0349, 0.0468, -0.2098, 0.0114, 0.0512, 0.1117, 0.0362, 0.0744, 0.0362, -0.0863, -0.5382, -0.0293, -0.0209, -0.0838, 0.0078, 0.0435, 0.0717, 0.0602, 0.0098, 0.0315, -0.1323, -0.0782, -0.0903, -0.0167, 0.1101, 0.0092, -0.0003, -0.4633, -0.0345, -0.3359, 0.0342, 0.0968, -0.2792, 0.1874, -0.0007, -0.4931, -0.0925, -0.9438, 0.0743, -0.5289, -1.0417, -0.0937, -0.1014, 0.0499, 0.3831, -0.213, -0.0431, -0.0545, -0.0771, -0.2339, -0.4867, -0.0139, -0.1192, -0.0547, -0.3378, -0.3791, 0.1519, -0.1137, -0.0319, 0.0772, 0.4107, -0.0827, -0.6752, -1.1836, -0.6802, 0.0437, 0.0773, -0.1993, -0.0753, -0.7769, -0.2529, 0.0665, 0.0126, 0.0029, -0.0638, -0.0071, -0.1392, 0.0368, 0.028, -0.0387, -0.0788, -0.0005, -0.2753, -0.1974, -0.0425, -0.0835, -0.0466, 0.0013, 0.3013, 0.0605, -0.2053, 0.1063, 0.1169, -0.0075, 0.0245, 0.0035, 0.036, 0.0135, -1.9707, 0.0518, 0.0671, -0.0671, 0.0223, -0.1578, 0.0261, -0.0198, -0.0951, -0.1261, 0.1741, 0.9143, -1.598, 0.1129, -0.0997, 0.3786, -0.2066, 0.0108, -0.0007, 0.015, 0.2389, 0.0117, 0.0, -0.0235, 0.1864, -0.0006, -0.5152, -2.5817, 0.2661, -0.0346, -0.0262, 0.0055, 0.0, -0.0715, 0.0418, 0.013, -0.0079, -0.0156, 0.1804, -0.0806, 0.0519, -0.1588, -0.0815, -0.0309, -5.6822, 0.013, -0.0106, -0.3926, -0.0093, -0.6987, -0.1222, -0.0975, -0.151, -0.1055, -0.0408, -0.0511, 0.022, -0.0054, -0.1599, -0.0697, -0.019, -0.0756, 0.0789, -1.3518, -0.0712, 0.021, 0.0456, 0.316, -0.0302, -0.0632, -0.1531, -0.0979, 0.0915, -0.2924, 0.1196, -0.2402, -0.029, -0.1029, 0.1276, -0.0544, -0.0137, -0.1302, -0.9528, -0.1016, -0.038, -0.0327, 0.2478, 0.0198, -0.0558, 0.0097, 0.057, -0.1178, 1.1849, 0.0729, -1.3109, -0.098, -0.1454, 0.022, -0.2264, -0.0311, -0.1311, -0.2016, -0.0862, 0.1046, -0.0171, -0.008, 0.0088, -0.1849, 0.1382, -0.027, -0.6217, -0.0508, 0.0037, 0.0183, 0.0356, -0.006, 0.0312, 0.0275, 3.8975, 0.0888, -0.0605, -0.178, -0.047, -0.0325, -0.0316, 0.0487, -0.2548, 0.0323, -0.0551, 0.0913, -0.0003, 0.0171, 0.3594, -0.8033, 0.0363, 0.4092, 0.0466, -0.1083, -0.3471, -0.1364, 0.0936, 0.0668, 0.0, -0.003, -0.466, 0.0, 0.0, 0.0937, -1.0694, -0.0072, -0.1285, -0.0884, -0.0822, -0.012, -0.0534, 0.1208, 0.9605, -0.0339, -7.6188, -1.0717, 0.0265, 0.203, -0.0424, -1.3383, 0.0121, -0.005, 0.1293, -0.0114, -0.4173, -0.1777, -0.0345, -0.0556, -0.0138, -0.0265, 0.0515, -0.1243, 0.044, 0.0422, 2.4849, 0.0495, 0.019, -0.1038, -0.5035, -0.0005, 0.0351, -0.0847, -0.157, -0.2012, 0.0524, 0.258, -0.1233, -0.1021, -0.0524, 0.1732, -0.0046, -0.4222, 0.0101, 0.1816, -0.0269, 0.0387, 1.2034, -0.0228, -0.2596, 0.068, -0.0205, 0.0283, 0.0004, -0.0389, -8.0975, 0.058, -0.2162, -0.0871, -0.124, -0.1157, -0.4923, 0.0194, -0.4186, 0.0382, -0.065, -0.0705, -0.2647, -0.3332, 0.0269, -0.1941, -0.4602, 0.2308, 0.2055, 0.1344, -0.1221, 0.0208, 0.0623, -0.0836, 0.0004, 0.0753, -0.1241, 5.8833, 0.0017, -0.1831, -0.3251, 0.0049, 0.1524, -0.065, -0.145, 0.1679, -0.0625, -0.0387, 0.2037, 0.1403, -0.1908, 0.0634, -0.2886, -0.0854, -0.1756, -0.0503, 0.0579, -0.0026, 0.0673, 0.0788, 0.0708, 0.0, -0.0105, 0.0, -0.0063, -0.2344, -0.0716, -0.5062, -0.1133, -0.0726, -0.5565, 0.1694, -0.1313, -0.0606, 0.8085, 0.0751, 0.0828, 0.0039, -0.1593, -0.3789, -0.8385, -0.0861, 0.0661, -0.1169, -0.0666, -0.0379, 0.092, 0.0242, -0.8107, -0.6075, 0.1478, -0.0093, -0.3587, 0.0761, 0.017, 0.0, 0.0353, 0.0922, -0.0348, 0.1567, 0.0239, 0.0284, 0.0799, 0.3368, 0.1102, 0.0055, 0.0595, 0.0212, -0.0241, 0.0, 0.0, -0.0131, -0.0452, 0.0026, -8.957, -0.0357, -0.0741, 0.0778, 0.0229, 0.0313, 0.0541, -0.0924, 0.007, 0.002, 0.0046, -0.0165, -0.0693, 0.0606, -0.1782, -0.0763, 0.0264, 0.0122, 0.0186, 0.0578, -0.0065, 0.0521, -0.4579, -0.0954, 0.0358, 0.0332, -0.1181, 0.1839, -0.2888, -0.233, -0.1393, 0.0, 0.1669, -0.0368, 0.1894, -0.0898, -0.0519, -0.0797, -0.0143, 0.0821, 0.0619, -0.0944, -0.0702, -0.0792, -0.163, -0.2218, -0.0009, 0.0, -7.0022, 0.0183, -0.0177, -0.0775, 0.1885, -3.0014, -0.3078, 0.0497, 0.002, -2.485, -0.2272, -1.0081, 0.0597, -0.1767, -0.0402, 0.0, -0.7265, 0.1055, -0.4439, 0.0359, -0.1004, 0.0, 0.0244, 0.0779, -0.0213, -0.0288, 0.0, 0.0539, -0.7692, 0.3189, -0.009, 0.0033, -0.1727, -0.1418, -0.4385, -0.1946, 0.0159, 0.0267, -0.0767, 0.0809, 0.0399, 0.0707, 0.0197, -0.0294, 0.1803, -0.4776, -0.2235, 0.0, 0.3353, -0.0574, -0.0407, 0.0066, -0.0547, -0.0174, -0.2391, -0.0207, 0.0137, -0.136, -0.1162, -0.2647, -0.0125, -0.0831, 0.0314, -0.0152, -0.9278, -0.0747, 0.0069, -0.993, 0.462, 0.2155, 0.2333, 0.0308, -0.0666, 0.1061, -0.3252, 0.1525, -0.0588, 0.041, -0.0662, 0.3005, 0.0824, -0.0712, -0.051, 0.0841, 0.2676, 0.0141, -0.0962, -0.1189, 0.2306, 0.0, 0.0192, -0.0494, 0.0045, -0.007, -0.0872, -0.0762, 0.0005, 0.0077, -0.0672, -0.0758, -0.0955, 0.1135, 0.0158, 0.029, 0.0788, 0.0774, -0.0214, -0.7149, -0.0617, -0.0048, 0.0624, 0.0194, -0.106, 0.0757, 0.0179, -0.0827, -0.4665, -0.0368, -0.0535, 0.0248, 0.0316, -0.1798, -0.0092, -0.0779, -0.051, 0.1493, 0.0034, 0.1369, 0.3086, 0.0083, -2.2705, 0.0801, -0.0616, 3.5439, 0.0665, 0.0045, 0.0096, 0.0435, 0.0303, 0.1483, -0.0159, -0.1256, -0.2447, -1.1408, -0.002, -8.395, -0.0904, -0.0947, -0.0425, -0.2066, -0.0096, -10.3983, -0.0641, -0.3525, 0.0583, 0.3136, 0.0403, 0.1188, 0.0376, -0.8625, 0.0, 0.0098, 0.1478, -0.0985, -0.0132, -0.1034, 0.0419, -0.2873, -0.0203, -0.7817, -0.0826, -0.0419, 0.0455, 0.1941, -0.0057, 0.0651, -0.3497, 0.8838, 5.1475, 0.0317, -0.0391, -0.2727, 4.9792, 1.1524, -0.1084, -0.0455, 0.1704, 0.811, 0.1071, 0.0612, 0.0, 1.8305, 0.1498, 0.0926, -0.5705, 0.2744, -0.0667, 0.1817, 0.4232, 0.0482, -0.1578, -0.2435, -0.0156, -0.2663, -0.035, 0.0995, 0.0098, -0.0351, -0.0088, -0.0133, 0.0996, -0.6436, 0.0, 0.0303, -0.004, 0.0991, -0.1484, 0.0578, -0.4119, 0.0064, -0.1602, -0.3245, 0.0067, -0.1132, -0.0011, -0.0933, 0.1008, 0.149, 0.0706, 0.0167, 0.1228, 0.0508, 0.0899, 1.1799, 0.4299, 0.0445, -0.0006, 0.019, 0.0366, -0.1126, 0.1578, -0.1041, -0.1024, -0.057, 0.0407, -0.079, 0.1203, -0.3602, 0.1346, -0.1208, -0.1015, 0.2485, -0.1019, 0.1777, 0.0008, 0.2794, 0.3758, -0.0147, 0.0393, -9.5071, 0.4533, -0.0348, 0.0879, -0.0407, -0.0655, 0.0257, -0.0681, 0.0286, -0.0038, 0.0721, 0.0133, -0.0025, 0.0022, 0.0068, -0.0501, 0.0455, -0.0562, 0.0544, 0.0314, 0.3206, 0.146, -0.0404, -0.0766, -0.0568, 0.7351, -0.0464, -0.1535, -0.0786, 0.0144, -0.0682, 0.1534, -0.0087, -0.0482, -0.0583, 0.0114, 0.1381, -0.1054, 0.0089, 0.1601, -0.1592, 0.0838, -1.391, -0.0024, -0.0068, -0.1078, 0.0, -0.0001, 0.1224, -0.0601, 0.0884, 0.0726, 0.041, 0.0412, 0.1458, -1.1436, 0.0466, 0.1694, 0.1223, -4.649, -0.0035, 0.2847, 0.0, -0.0079, 0.0275, 0.0098, -0.0442, 0.0547, 14.5625, -0.229, 0.0945, 0.2902, -0.1526, -0.0478, 0.1139, -0.0011, -0.0823, 0.0, 0.0162, -0.1985, -0.1109, -0.0765, -0.0767, 0.1114, 0.3159, -0.2735, -0.0337, -0.0634, -0.0337, 0.0119, -0.0097, -0.4841, -0.138, 0.1913, 0.1311, 0.4574, -0.0181, 1.875, 0.122, 4.1942, 0.0041, -0.7925, 0.0, -0.0429, 0.0272, -0.1257, -0.1191, -0.1807, 0.0082, 0.1005, -0.0533, -1.4627, -0.0791, 0.1451, 0.023, 0.037, -0.1674, -0.0407, -0.0633, -0.585, -0.0076, -0.0152, -0.0297, 0.0776, -0.0122, -0.033, -0.0136, -0.0578, -0.0392, -0.0324, 0.0532, 0.5741, 0.3879, -0.0383, -0.1016, -0.0554, -0.1674, -0.0199, -0.0471, -2.0133, -0.3404, 0.1142, 0.2513, 0.0296, 0.0842, 0.025, -0.0591, 0.0129, 0.1863, 0.0999, 0.0405, -0.0258, 0.153, -0.0462, 0.7596, -0.1518, 0.0144, 0.0088, -0.0413, 0.0139, 0.0305, 0.1348, -0.0119, -0.0302, -0.1103, 0.4192, 0.2974, 0.029, 0.2542, 0.0743, -1.6528, 0.2753, 0.4982, -0.0401, -0.0629, 0.0406, 0.0859, 0.1456, 0.1547, 0.0343, -0.0131, 0.0764, -0.0069, -0.1057, -0.065, 0.0072, -0.0957, -0.0889, 0.0042, -0.0782, 0.0226, 0.201, 0.0535, 0.0002, 0.0329, 0.0745, 0.0131, 0.0793, -0.1799, 0.1067, 0.0254, 0.1719, -0.0247, 0.0223, -0.0183, 0.0229, -0.0476, 0.0413, -1.4325, -0.0925, 0.1943, -0.0517, -0.1162, -0.4661, 0.2471, 0.0761, -0.0289, -1.9127, -1.4014, -0.2745, -0.0027, -1.1568, -0.5523, 0.2013, 0.2973, 0.0673, -0.238, 0.2, 0.1206, -2.5719, -0.3309, 0.0471, 0.105, 0.118, -0.0297, -0.0165, 0.0002, -0.1732, -1.3621, -0.0406, -0.0267, -0.26, -0.0573, 0.0283, -0.0054, -0.601, -0.0297, -0.0421, 0.0312, -0.0521, 0.0491, -0.2168, 0.0, 0.0772, -0.0038, 0.0454, 0.0534, -0.0109, -0.0306, -0.0206, -0.5558, -0.3836, 0.0093, 0.0949, -0.0748, 0.0265, 0.0161, -0.0024, 0.0199, 0.0457, 0.0231, 0.0159, -0.0099, -0.1017, -0.0235, 0.0589, 0.0168, -0.0016, -0.0027, 0.1114, 0.0357, 0.0902, -0.044, 0.0162, -0.0908, 0.1176, -0.0246, 0.1346, 0.0117, 0.1183, -0.0756, 0.1286, -0.0992, 0.062, -0.0335, 0.08, 0.0174, 0.0207, 0.5858, 0.0243, 0.0, 0.112, 0.0144, 0.1958, -0.0288, -0.2154, -0.1344, -0.0202, 0.1261, 0.0312, -0.0081, 9.8892, -0.0661, -0.0575, -0.3622, 0.0333, 0.1387, -1.6766, -0.042, 0.0241, 0.037, -0.4123, 0.0225, 0.0635, -0.1259, -0.4958, -0.0947, 0.0712, 0.0319, -0.0892, 0.0453, 0.0208, -0.0686, -0.0736, 0.0026, -0.0195, -0.0479, 0.0142, -0.03, 0.0139, -0.0673, 0.0215, 0.0288, 0.0458, 0.0321, 0.0385, 0.0675, -1.0169, -0.3142, -0.0048, 0.0037, -0.0278, -0.0637, 0.0524, 0.1423, -0.2797, 0.0045, 0.0261, 0.0225, 0.1976, 0.1788, 1.6891, -0.0419, -0.2474, -0.0532, -1.8882, -0.0238, -0.0219, -0.0545, -0.1467, -1.1, 0.052, 0.1442, 0.0345, 0.0195, 0.0237, -0.0533, 0.0302, 0.1712, 0.0807, 0.0765, 0.0071, 0.0868, -0.1762, -0.1385, -0.0383, -1.9387, 0.0062, 0.0121, 0.0172, 0.0904, -0.9331, -0.0971, -0.6597, 0.0379, -0.2412, 0.048, 0.1203, -0.0488, 0.0295, 0.0396, 0.0, 0.5837, 0.0569, 0.0944, -0.0091, 0.0222, -0.1196, 0.0804, 0.0926, -5.7791, 0.046, -0.2912, -0.0442, -0.1202, 0.0124, -0.1186, -0.0577, -0.0615, -0.4331, 0.0197, 0.0143, 0.0438, 1.0006, -0.0868, -0.163, 0.3741, 0.0526, -0.0061, -0.1048, 0.1583, 0.0137, -0.2764, -0.0821, -0.041, 0.1799, 0.1475, 0.0241, 0.0561, -0.1549, -0.0157, -0.0333, 0.0525, 0.9084, 0.4622, 0.0749, 0.1647, -0.1821, -0.0192, -0.5128, -1.5929, 0.0571, 0.0219, 0.4281, -0.1963, -0.1132, -0.0095, 0.0218, -0.0455, 0.0991, 0.1789, 0.0566, -0.121, 0.0202, -0.1136, -0.0313, 0.0896, -0.012, 0.0966, 0.0077, 0.053, 0.0565, -0.0831, 0.1134, 0.0208, 0.1507, -0.0221, -0.0219, 0.0946, 0.1251, 0.0274, 0.0306, 0.05, 0.068, 0.6603, 0.0347, 0.0516, 0.3932, -0.3458, -0.0227, -0.0376, -0.2812, 0.0033, -0.2497, 0.0789, -0.0035, 0.0714, -0.0708, -0.0238, -0.0131, 0.0074, -0.2444, 5.2588, -0.1851, 0.1364, 0.1118, 0.0404, -0.0984, -0.4283, 0.0805, -0.0678, 0.0591, 0.1323, -0.016, 0.0291, 0.305, 0.1076, -0.0677, 0.177, -0.0993, 0.0067, 0.0125, 0.005, 0.1653, 0.0006, -0.1438, -0.3949, 0.0842, -0.0241, 0.2788, 0.062, -0.2796, 1.8459, 0.0137, -0.0947, -1.3464, 0.0114, -3.005, -0.0652, 0.2986, -0.0689, 0.0, -0.0596, 0.0, 0.0449, 0.0503, 0.9405, 0.0739, 0.0, 0.0701, 3.95, 0.0811, 0.9025, 0.0541, -0.0572, -0.3588, 0.0718, 0.0886, 0.0937, -0.0814, 0.0491, 0.0878, 0.1515, -0.1565, 0.1287, 0.0847, 0.0628, -0.0237, 0.0783, 0.1835, 0.2106, -0.5583, -0.348, -0.9892, 0.0269, -0.0486, -0.0469, 0.0497, -0.0075, -0.668, -0.5166, 0.0913, -0.0954, -0.0242, -0.1163, 0.0927, 0.0079, 0.0141, -1.433, -0.0802, 0.0956, 0.0903, 0.0047, -0.5496, 0.0485, 0.0401, 0.0434, 0.1132, 0.001, 0.0509, -0.0252, 0.0548, 0.0098, 0.1315, 0.1108, 0.176, 0.0, 0.0196, -0.4069, -0.0672, -0.3424, -0.0735, 0.0226, 0.2558, -0.121, -0.303, 0.2651, 0.1113, -0.0164, -0.0277, -0.0514, 0.1758, 0.0352, -0.0751, 0.0241, 0.0083, 0.014, -0.0111, 0.0696, -0.0545, -0.021, -0.0263, -0.2641, -0.0022, 0.1151, -0.0303, -0.0194, -0.3499, -0.0452, -0.0269, -0.0487, -0.2116, 0.0, 0.0294, -0.4657, 0.5566, 0.1604, -0.6033, 0.0214, 0.0793, -0.0599, -0.0756, -0.0117, 0.0507, 0.0125, -0.0077, -0.0444, -0.2691, 0.2013, 0.0523, -0.0744, 0.0589, 0.4152, 0.0067, -0.0486, 0.0, 0.276, 0.0036, 0.0472, -0.0013, -0.1083, -1.6716, 3.4, -0.0168, -0.0234, -0.2606, -1.2891, 0.0055, 0.001, 0.1357, 0.0288, 0.0296, 0.0847, 0.2603, 0.7513, -0.1169, -0.4608, -0.5284, 0.0733, 0.0729, 0.0097, 0.3025, -0.0117, -0.7162, -0.0143, 0.0871, 0.0084, 0.0863, -0.1085, 0.3535, 0.0305, 0.0401, 0.822, 0.0174, 0.0051, -0.1226, 0.0629, 0.0127, 0.0738, -0.0115, -0.0935, -0.0617, 0.0938, -0.0536, -0.091, -0.0552, 0.0871, 0.5598, 0.0938, 0.0478, -0.1058, 0.0444, -0.1359, -0.2229, -0.0575, 0.1456, -0.0762, -0.0675, 0.0213, 0.3974, 0.0139, -0.0014, -0.005, 1.2433, -0.2865, -0.084, 2.8869, 0.0322, -0.3479, 0.0811, 0.0428, 0.0137, 0.0551, 0.0118, -0.1014, -0.1412, -0.0341, 0.0215, -0.6, -0.0907, 0.0177, 0.0668, 0.0643, 0.0821, 0.0154, 0.0317, -0.0039, 0.0037, -0.0421, 0.0806, 0.0205, 0.0666, 0.0425, 0.0504, 0.0863, 0.0682, -0.0156, 0.0, 0.0805, 0.3773, -0.0074, 13.515, 0.1905, -0.0413, 0.008, 0.0498, -0.1731, -0.0009, 0.0, -0.1501, -0.0149, 0.0884, -0.0115, -0.3264, -0.0176, 0.0002, -0.0172, 0.0514, 0.1467, 0.0103, -0.004, 0.0814, -0.0184, -0.2037, -0.0022, -2.2361, 0.0474, -1.5686, 0.0028, 0.0634, -0.071, -0.6949, 0.0831, 0.2255, -0.0732, 0.0937, 0.0166, 0.029, -0.0186, -0.0098, 0.0397, -0.3446, -0.1943, -0.096, -0.0204, 0.0156, 0.0, 0.0433, -0.029, 0.1086, 0.0177, -0.0501, 0.0354, 0.093, 0.0545, 0.2491, -0.0043, -0.1364, 0.0378, 0.1464, -0.027, 0.0126, 0.0034, -0.0141, -0.0458, -0.061, 3.0593, -0.0694, -0.5486, -0.1168, 0.208, -0.082, 0.0, 0.4819, 0.0, -0.0544, -0.6368, 0.2148, -0.0129, -0.3943, -0.0393, 0.7928, -0.0157, -0.03, -0.0577, -0.0465, 0.091, -1.2679, -0.055, -0.0327, 0.0, -0.0271, -0.0084, 0.0816, 0.0475, -0.1131, 0.0613, 0.0139, -0.0282, 0.0316, 0.0605, 0.0517, -0.3946, -0.1518, -0.5406, -0.0762, -0.0006, 0.1449, 0.1025, -0.7499, 0.0165, -0.1109, -0.0183, -0.4269, -0.0018, -0.0927, 3.1468, -0.1237, -0.1178, 0.4459, 0.0023, -0.2858, -0.5252, -0.3925, -0.0903, 4.271, 0.0329, 0.1211, -0.0157, -0.0513, -0.033, 0.0178, 0.0552, 0.0166, 0.0, -0.103, 0.0331, -0.0125, -0.0446, -0.5079, -0.1907, 0.138, -0.0862, 0.3584, 0.1078, 0.0216, 0.0366, 0.0, -0.0798, -0.1474, -0.0256, 0.041, -0.0906, -0.516, -0.0676, 0.2823, -0.1564, 0.2044, -0.2887, 0.0398, 0.0433, 0.0579, -0.0975, 0.0114, 0.1658, 0.0434, -0.0756, -1.2887, 0.0714, 0.1143, 0.0708, 0.479, -0.0959, -0.1226, 0.0007, 0.0345, -0.0099, -0.0089, 0.0169, -0.0192, -0.3156, 0.0972, 0.0815, -0.4766, 0.0435, -0.075, -0.7891, -1.0351, 0.0311, -0.0246, 0.0343, 0.0449, 0.0717, 0.0642, -0.0025, -0.023, -0.076, 0.233, -0.1374, -0.0075, 0.0752, 0.0246, 0.0, -0.3134, 0.0, 0.6464, 0.3087, 0.0685, 0.0265, -0.007, -0.1101, 0.2192, -0.0653, -0.5987, -1.2366, 0.0356, -0.0591, -0.0499, 0.0257, 0.0993, -0.112, 11.2867, 0.0449, -0.0859, 0.2663, -0.075, -0.0023, -0.068, -0.1455, 0.0, -0.0231, -0.094, 0.3521, 0.0813, 0.0, -0.0674, 0.0, 0.0482, -0.3778, -0.0224, 0.1395, 0.0439, -0.0754, 0.0237, -0.0937, -0.0178, -0.0122, -0.2746, 0.0891, -1.059, -0.234, -0.1673, 0.1544, 0.0482, -0.2454, -0.1437, -0.0739, -0.1141, 0.0215, 0.0212, 0.151, -0.0971, -0.0059, 0.0046, 0.0129, -0.0196, 0.1043, -0.0293, -0.324, -0.0172, 0.0299, 0.0386, -0.0049, 0.3313, 0.0168, 0.106, -0.1932, -3.3037, -0.0583, 0.1421, 0.0754, 0.0672, 0.4902, 0.0307, 0.1376, 0.0835, -0.372, -0.0865, -0.0897, 0.0018, -0.1066, 0.0696, 0.0221, 0.1127, 0.082, 0.1095, 0.9883, -0.113, 0.2903, 0.0074, -0.0391, -0.3398, -0.0132, -0.2023, 0.0524, 0.0611, -0.0137, -0.0029, 0.1318, -0.1811, 0.0, 0.0367, 0.1467, 0.032, -0.3194, 0.0326, -0.057, 0.0799, -0.2632, 0.2671, 0.0, -0.0243, -0.0325, 0.3682, -3.713, 0.0739, -0.0651, -0.0288, -0.0094, 0.0351, -0.0723, -0.0596, 0.0292, 0.0324, 0.0, 0.0093, 0.0755, 0.0234, -0.2391, 0.098, 0.0599, 0.0162, -0.0188, -0.1134, -0.0798, 0.1543, -0.165, -0.2082, 0.2334, 0.0008, -0.0092, -0.0129, 0.0343, 0.007, 0.0048, 0.0291, 0.0761, 0.0206, 0.0858, 0.0138, -0.3661, -0.0297, -0.1406, 0.0, 0.0, 0.03, 0.0191, -0.0099, -0.2162, 0.8367, -0.0793, 0.0974, -0.0452, 0.0798, 0.1053, -0.0003, -0.0234, -0.022, -0.1792, 0.0761, -0.6696, -0.3741, 0.0, 0.0173, -0.0197, -0.0206, -0.0806, 0.0423, -0.1743, -0.1655, -0.3294, 0.022, 0.0449, -0.0057, 0.0882, -3.098, 0.0975, 0.1244, 0.0144, 0.2675, 0.0402, 0.4004, 0.357, 0.0777, -0.0228, 0.0102, 0.1184, -0.0604, -0.0597, -0.0476, -0.0399, 0.1798, 0.0096, 0.0119, 0.0149, -0.0392, -0.0791, -0.0325, -0.6658, 0.0791, -0.4365, -0.0221, -0.0431, 0.2219, -0.6132, 0.1318, 0.133, -5.3455, -0.1601, 0.4344, 0.2085, 0.006, -0.3464, 0.0097, -0.0249, 0.1176, 0.0715, 0.078, -0.2801, 0.0, -0.2884, -0.7581, 1.5381, 0.2548, 0.0008, -0.0542, 0.0414, -1.9, 0.0503, 0.0716, -0.1348, 0.0258, -0.0797, -0.0728, 0.0379, -0.0043, -0.0269, -0.0821, 0.0974, 0.0795, 0.1537, 0.0515, -0.1791, 0.0459, -0.0087, 0.0644, 0.0839, 0.0459, -0.0179, 0.0046, -0.0222, 0.0047, -0.0539, 0.0584, 0.0404, 0.0764, 0.0469, 1.5122, 0.0987, 0.0106, -0.1248, -0.085, 0.0083, 0.0461, 0.0378, 0.0302, 0.0287, 0.0297, 0.3537, -0.0997, 0.0072, 0.0837, 0.0803, 0.0287, -0.0327, -0.0169, 0.0204, -0.0127, -0.0069, 0.6209, -0.0008, 0.0344, 0.0465, 0.027, 0.1161, -0.2098, -0.038, 0.0003, 0.069, 0.0801, 0.0569, 0.3738, 0.0727, 0.0497, 0.0905, -0.0246, -0.4386, -0.1952, 0.0226, -0.0172, 0.1866, -0.0305, -0.0748, -0.0809, 0.0947, 0.1143, 0.032, 0.0119, -0.5072, -0.007, -0.0055, -0.0063, 0.3526, 0.0596, -0.0035, 1.8806, 0.0232, 0.0453, -0.0226, 0.8568, 0.0111, 0.0173, 0.027, -1.1431, -0.0926, -0.01, 0.0521, -0.0327, -0.0846, 0.0193, 0.0881, -0.0053, 0.1778, 0.0632, 0.0137, 0.1181, 0.0151, 0.1065, -0.1659, -0.0084, 0.2843, 0.5942, 0.0133, 0.2339, -0.4072, 0.0271, 0.0003, 0.0652, -0.0443, -0.0195, 0.2, 0.0851, 0.1191, -0.0133, 0.0296, 0.0775, 0.0463, 0.2315, 0.0001, -0.0765, 0.0494, -0.0004, 0.0232, 0.1066, 0.016, 0.0293, 0.2228, -0.4008, 0.0722, 0.1153, 0.0829, 0.0662, 0.1105, -0.1018, -0.3564, 0.0041, 0.1581, 0.0044, 0.0195, -3.5053, 0.0897, 0.0641, 0.1075, 0.0685, -0.019, 0.0902, 0.9063, -0.0221, 0.0659, 0.0593, 0.0309, -0.2542, -0.0112, 0.0538, 0.0144, 0.2838, 0.1389, 0.0379, -0.1535, 0.0464, -0.0095, 0.0796, 0.1677, -0.0077, -0.0792, 0.0911, -0.0923, -0.0198, -0.0839, 0.0764, -0.0046, 0.2073, 0.0082, 0.0008, 0.1244, -0.0234, 0.1587, 0.0037, 0.0329, 0.0722, 0.0934, 0.0025, -0.1395, 0.0449, 0.0023, 0.063, -0.032, 0.06, 0.0015, -0.0217, 0.1991, 0.0528, -0.0225, 0.147, 0.0858, 0.0386, -0.0512, 0.1112, -0.0045, 0.0335, -0.003, 0.0126, 0.1078, -0.0913, 0.4379, 0.1468, -0.015, -0.0094, 1.7014, -0.0822, 0.6387, -0.1098, 0.1661, 0.0803, 0.3663, 0.4756, -0.0591, 1.4177, -0.502, -0.1344, -5.5632, 0.3792, -1.2155, -0.0, 0.9797, 0.1805, 0.0386, -0.0429, 0.0221, 0.0766, -0.0955, -0.0004, 0.0489, 0.1933, -0.0383, -0.1613, -0.0506, -0.3884, -0.0078, -0.2736, 0.0, -0.1195, -0.0531, 0.0321, -0.7778, -0.0963, 0.0549, -0.0031, 0.0, -0.2664, 0.0135, -0.0494, 0.1449, -1.946, 0.0307, -0.0911, -0.0019, -0.0984, 0.0963, 0.0381, 0.059, 0.0008, -0.0012, -0.055, -0.2163, -0.0575, 0.1051, 0.6712, 0.041, -0.0154, -0.3524, 0.2065, 0.101, -0.1367, 0.0539, -0.0424, -0.0528, 0.1628, -0.0854, -0.254, -0.0473, 0.0, 0.3324, 0.0501, -0.3402, 0.0766, 0.0164, -0.1612, 0.0074, 0.0225, -0.0631, -0.0084, -0.0022, 0.0515, -0.0972, -0.1725, -0.0633, -1.3981, -0.107, -0.0827, 0.0318, 0.0171, -0.3438, -0.0283, -0.0141, -0.0058, 1.0053, -0.4811, 0.2382, -0.2809, 0.0224, -0.0733, 0.0413, -0.0064, -1.6663, -0.0786, 1.2989, 0.0014, -0.437, -0.0831, -0.0196, 0.0848, -0.1211, -0.0195, 0.6711, -0.1198, 0.0348, -0.0052, -0.0979, -0.0317, -0.0282, 0.1136, -0.0053, -0.0697, -3.1929, 0.0455, 0.2507, 0.0332, -0.1438, 0.1854, -0.124, 0.0, -0.1303, -0.0946, -0.1394, -0.1129, -0.1264, 0.0251, 0.0661, -0.3674, 0.064, 0.0, 0.0252, -0.0917, 0.0325, 0.0267, -0.1896, -0.0287, 0.1353, -0.0734, -0.1041, -0.005, -0.4177, -0.0258, 0.0, -0.2141, -0.027, 0.0163, 0.0102, -0.1101, 0.0104, 0.0075, -0.0385, 0.0, -0.0671, -0.1895, -0.0477, -0.0449, 0.696, -0.0776, 1.1416, -0.3377, -0.196, 0.2693, -0.09, -0.0207, -2.9325, -0.0368, 0.0638, -0.0432, 0.1896, -0.0244, 0.0836, -0.0462, -0.1526, 0.053, 0.0375, -0.0149, 0.0398, -0.0572, -0.0461, 0.0, -0.0258, -0.0244, -0.0204, 0.0, 0.1572, 0.0249, 0.1068, 0.4351, 0.0851, -0.2014, -0.07, 0.2045, -0.0381, 0.0503, 0.0699, 0.0293, -0.2305, 0.0, 0.0656, 0.0693, 0.011, 0.0538, 0.0099, -0.1541, -0.0269, -0.0745, -0.0009, -0.1001, -0.0133, 0.0174, -0.8876, -0.0712, 0.0786, 0.2299, 0.3602, 0.6833, 0.1695, -0.0256, -0.0129, 0.0343, -0.056, -0.2644, -0.0366, -0.0711, -0.1025, -0.0136, -0.0516, -0.1445, 0.0286, 0.0355, -0.004, -0.0502, -0.0416, -0.0532, 0.0022, -0.0082, -0.0121, 0.0543, 0.0367, 0.0571, -0.7876, 0.1028, -0.081, -0.0607, 0.0083, -0.3517, 0.0287, 0.0152, 0.0261, -0.0899, 0.0, 0.0355, -0.2252, -0.0611, -0.1965, -0.2703, -0.1059, -0.1869, 0.0994, 0.0505, -0.1064, 0.0745, 0.7637, -0.0238, 0.0427, -0.2238, -0.14, -0.0717, -0.1194, 0.0148, -5.0867, -0.306, 0.0081, 0.2521, 0.0094, -0.2133, 0.0627, -0.0161, -0.1762, 0.0278, 0.3602, -0.1324, -0.8181, 0.0331, 0.0372, -0.032, 0.0, -0.0921, -0.099, 0.3051, 0.0059, -0.0861, 0.4187, 0.0443, -0.1781, 0.0453, 0.0884, 0.0766, -0.6748, 0.202, -0.0613, -0.0801, 0.0142, -0.1669, -0.1658, -0.0881, -0.1067, 0.0007, -4.4966, -0.361, 0.0628, 0.0176, -0.0121, 0.6815, -0.0123, 0.0976, 0.2293, 0.1911, 0.0843, -0.0429, -0.0168, 0.0388, -0.0144, -0.0662, 0.0292, -0.7991, -0.0861, -0.0134, -0.0153, -0.0157, -6.1495, -0.1902, 0.0504, 0.0, 0.1888, -0.0947, -0.0469, -0.1172, -0.008, 0.02, -0.1339, -0.299, -0.1104, -0.2962, 0.0787, 0.0976, -0.0467, -0.0412, -0.0937, 0.0178, 0.1554, -0.0206, -1.8358, 0.0393, -0.0055, -0.3826, -0.0063, -0.1509, 0.0412, -0.0136, -0.2914, -1.3585, -0.0391, -0.0832, 0.0082, -0.1828, 0.0256, 0.0155, 0.2211, -0.3443, -0.1439, 0.0174, 0.0006, 0.0052, -0.031, 0.013, 0.0988, -0.005, 0.1926, -0.0125, 0.0088, 0.1521, -0.0755, -0.748, -0.0081, -0.0024, -0.0158, -0.088, 0.0103, -0.0503, -0.1556, 0.1037, -0.1059, -0.1466, -0.0398, -0.1396, -0.0549, -0.0321, -0.0095, 0.0583, 0.0, -0.1259, -0.0346, -2.5347, -0.0119, -0.0439, 0.0231, 0.1202, 0.0174, 0.0643, -0.0198, 0.0072, 0.1045, 0.0114, -0.3869, 0.1461, 0.0267, -0.1068, 0.0547, 0.0007, 0.1095, 0.0137, 0.0154, 0.1331, 0.1054, 0.0353, -0.2475, 0.0497, -0.0115, -0.132, 0.0095, 0.0375, 0.0165, -0.1998, 0.2149, 0.0046, -0.0273, 0.1062, 1.1927, 0.0457, 3.1222, 0.4875, 0.2741, 0.049, -0.0216, 0.0424, -0.1331, 0.2186, 0.019, 0.0653, -0.0426, 0.0699, 0.0522, -0.029, 1.3706, 0.077, -0.0406, 0.0265, 0.0032, -0.1553, -0.0156, -0.0152, -0.0477, -0.0289, -1.115, -0.1385, -0.9253, -0.0311, 0.0048, 0.0302, -0.472, -0.05, -0.0087, 0.1711, -0.222, 0.0026, -0.1424, 0.0033, -0.07, 0.0127, 0.011, -0.1555, -0.0027, 0.124, 0.0133, 0.1121, 0.0398, -0.1439, 0.0538, 0.4513, -0.0451, 0.0968, -0.1144, -0.1934, -0.0829, -0.0133, 0.2238, 0.104, 0.1979, 0.0098, -0.1856, -0.1289, -0.0797, 0.0226, 0.0051, -0.0116, -0.0406, -0.0224, -0.4672, 0.0038, 0.0269, 0.0087, 0.2047, 0.1867, -0.3667, 0.027, -0.0574, -0.0912, 0.0252, 0.0568, -0.0005, -0.0195, -5.6442, 0.1421, 0.0382, -0.0893, -0.0799, -0.111, 0.0275, -0.0036, -0.0209, -0.0602, 0.1397, 0.1956, -0.048, -0.0574, 0.0738, 0.0188, -0.0456, 0.5332, 0.0861, -0.084, -0.1284, 0.0202, -0.4583, -0.1614, -0.4117, 0.0042, -0.1795, -0.0967, -0.6833, -0.1821, 0.1768, -1.2646, -0.0359, -0.0933, -0.1603, 0.0289, -0.1041, 0.0, -0.1174, 0.1251, -0.3991, 0.0229, 1.9929, 0.192, -0.3214, 0.0116, -0.057, -1.0717, 0.3496, 0.1463, -0.0352, -0.1394, 0.0478, 0.0042, 0.3073, 0.1025, -0.0469, -0.265, 0.0, 0.0656, 0.0671, 0.004, -0.6262, 0.089, -0.587, 0.043, 0.0991, 0.1329, 0.0231, 0.7894, 0.0238, 0.0722, -0.021, -0.0672, 0.0, 0.0621, 0.1077, 0.0081, -0.0057, 0.2259, -0.0129, 0.1417, 0.1237, -3.8754, 0.1351, 0.0329, -0.0509, 0.0511, -0.0254, 0.0688, 0.1743, -0.105, 0.3253, 0.5637, 0.0921, -0.0581, -0.1054, -0.5559, 0.1667, -0.0929, -0.1426, -0.1927, -0.0307, -0.0258, -0.041, -0.0911, -0.9887, 0.0756, -0.0835, -0.5845, -0.0282, -0.105, -0.0409, 0.0531, -0.1451, -0.0677, -0.0116, -1.0855, 0.0046, -0.1039, -0.4403, -0.1048, -1.2903, -0.1842, 0.046, 0.113, -0.2275, 0.0152, -0.3318, 0.0816, 0.1879, -1.1963, -0.0446, -0.2716, -0.0237, 0.0023, 0.2352, -0.3516, -0.1838, 0.1266, -0.3824, 0.3079, -0.0635, -0.0037, -0.2852, -0.0797, 0.0284, 0.0641, 0.052, -0.0771, 0.132, -0.024, -0.1938, 0.0154, -3.52, -0.0041, 0.0195, 0.0983, 0.0097, 0.0, 0.0406, -0.0737, -0.2242, -0.034, -0.1464, -0.1107, 0.0168, 0.0122, -0.2048, -0.0384, 0.0839, -0.0933, 0.758, -0.0963, -0.7321, 0.0, -0.1093, 0.2326, 0.0394, -0.0079, -0.0057, -1.881, -0.1098, -0.1496, -0.0657, -0.2375, 0.1221, 0.5191, -3.2589, -0.1026, -0.105, -1.4829, 0.0018, -0.6489, -0.1097, 0.0259, -0.0175, 0.0362, 0.39, -0.0459, -0.6953, -0.0587, 0.6181, -0.0486, -0.0264, 0.0, 0.0451, 0.0429, 0.3547, -0.0467, 0.2052, 0.0245, 1.2963, 0.0969, 0.0, -0.1818, -0.059, 0.0387, 0.0327, -0.0968, -0.0592, 0.0388, 0.0521, -0.0468, 0.3786, 0.0584, 0.0161, 0.3224, 0.3119, 0.0106, -0.0086, 0.0686, -0.1709, -0.0779, 0.0027, 0.1063, -0.0206, -0.5621, 0.1545, -0.0224, 0.0179, -0.208, -0.7081, 0.0227, -0.0231, -0.098, 0.0353, -0.0776, -0.8592, 0.1262, 0.0512, -0.0674, -0.3615, -0.0315, 0.2211, -0.1188, 0.1081, -0.1378, -0.1199, -0.0645, 0.2314, 0.008, -0.0067, -0.1297, 0.0596, 0.0663, 0.1115, 0.0543, 1.1551, 0.0515, -0.183, -0.084, -0.7419, -0.044, -0.0478, -0.0816, -0.0373, -0.059, 0.3444, -0.0836, -0.0692, 0.0481, 0.0842, 0.0353, 0.0071, -0.1578, 0.0878, -0.0798, 0.2532, -0.074, 0.1961, -0.0388, 0.0282, -0.0334, -5.936, -0.0159, 0.0349, 0.0207, -0.2365, 0.0579, -0.0864, 0.0504, -0.0196, -0.0765, -0.2152, 0.0188, -0.0827, -0.2582, 0.0011, -0.484, 0.209, -0.1313, 0.0321, -8.9785, -0.361, -0.0552, 0.0231, -0.064, -0.1685, -0.1546, 0.0905, 0.0289, -2.7565, -0.0453, 0.0068, -0.0701, -0.274, 5.4825, -0.0367, -0.1184, -0.0522, -0.0088, -0.575, 0.0292, 0.0004, -0.0775, -0.0281, 0.0446, 0.0506, 0.0035, -0.1279, 0.156, -0.0949, -0.132, -0.0956, -0.0014, -0.0035, 0.0539, 0.0747, -0.0828, 0.0, 0.0455, 0.0718, 0.0057, -0.2104, 0.0168, -0.1212, -0.0349, -0.0519, -0.0553, -0.0431, -0.1602, -0.2175, 0.096, 0.1081, 0.0396, 0.0866, 0.1986, 0.0019, 0.0742, 0.035, -0.0727, -0.066, -0.0394, 0.1971, -0.7362, 0.0625, 0.0204, 0.0573, 0.0177, 0.0208, 0.0745, -0.0826, 0.0922, 0.0066, -0.0404, -0.0966, 0.2743, 0.0427, -0.0909, 0.0379, -0.1717, 0.0188, -0.0285, -0.033, 0.1057, 0.6322, -0.2734, -1.4628, -0.0259, 0.1208, -0.0005, 0.0891, 0.0108, -0.9145, -1.2443, -0.0656, -0.096, 0.0, 0.0167, -0.0173, 0.049, -0.0218, 0.0945, -0.1827, 0.0851, 0.0148, 0.1615, 0.0132, -0.0169, -0.0213, 0.0656, 0.1382, 0.0324, -0.4716, -0.0325, -0.0064, 0.0257, 0.1395, -0.7869, -0.1765, -0.1245, 0.0, -0.0074, -0.1099, -0.018, -0.0035, -0.3716, -0.1997, 0.0028, -0.1068, -0.2269, 0.1876, 0.011, -0.9018, 0.0834, 0.0684, -0.0593, -0.029, 0.0912, 0.0362, 0.0573, -0.038, -0.0256, -0.0335, 0.043, 0.0, 0.023, 0.0359, -0.0765, 0.0061, 0.5787, 0.0174, 0.085, 0.601, 0.0017, -0.1641, 0.0289, 0.094, 0.0143, -0.203, 0.0213, 0.0039, 0.4637, -0.3112, -0.0039, -0.0904, 0.0433, 0.0034, 0.0224, -0.0761, 0.035, 0.0, 0.0021, -0.2338, 0.0, -0.6535, 0.0218, -0.1737, 0.0, 0.0023, 0.0157, 0.0144, 0.0582, -0.1443, -0.2314, 0.0019, -0.1304, -0.0703, -0.0942, 0.0864, 0.0373, 0.098, 0.1289, -0.1709, 0.0433, 0.0513, 0.0315, 0.0198, -0.0009, 0.0557, 0.0277, -0.0731, -1.5791, -0.019, 0.0708, -0.2751, 0.0535, -0.0016, 0.0308, 0.5444, 0.048, -0.0007, 0.153, 0.2209, -0.1267, 0.009, 0.0195, 0.0007, -0.0296, -0.8073, 0.1634, 0.1403, 0.2908, -0.1204, 0.0, -0.0637, 0.0227, -0.0529, -0.023, 0.0411, 0.0, 0.0039, 0.0626, -0.0793, 0.1395, 0.1677, -0.0491, -0.0492, -0.1325, 0.3467, -0.1578, 0.0461, 0.0732, 0.0188, 0.0149, 0.089, 0.0191, 0.2498, -0.0417, 0.0242, -0.0271, -0.2696, -0.0816, -0.029, -0.0327, 0.0995, 0.0562, 0.0416, -0.0464, -0.3029, 0.2158, 0.189, 0.1012, 0.093, -0.1108, -0.036, 0.0362, 0.0807, 0.0, 0.0448, 0.0168, 0.006, -0.0254, -0.2427, 0.0135, 0.1301, -0.0627, 0.0274, 0.0309, -0.295, -0.0006, 0.1476, 0.0028, 0.0707, 0.0059, -0.0155, -0.6144, -0.3371, 0.0966, -0.0646, -0.0087, -0.0581, -0.0023, -0.0087, -0.0043, 0.0445, 0.1876, 0.0, 0.1415, -0.0201, 0.0536, 0.5631, -0.0149, -0.0925, 0.0543, 0.025, 0.0387, 0.0359, -0.0216, -0.1573, -0.0795, -0.0869, -0.1518, -0.0389, 0.0344, 0.0, 0.232, 0.1014, 0.0243, -0.0174, -0.1116, -0.1076, 0.3603, -0.0347, 1.3733, 1.55, -0.0059, 0.0812, 0.3917, -0.104, -0.0496, -0.0967, 0.0124, -0.0508, -0.0599, 0.3027, 0.0481, -0.0872, -0.1397, 0.0827, 0.0566, 0.0922, 0.1509, -0.1063, 0.0654, -0.0952, -0.7775, 1.1089, 0.0824, 0.0085, -0.3411, 0.0981, 0.0818, 0.0154, 0.0084, 0.063, -0.0389, -0.0257, 0.0146, 0.0185, -0.0214, 0.0, 0.0924, -0.042, 0.2637, -0.1007, 0.0041, 0.0237, 0.0389, 0.0445, 0.1129, -0.0498, -0.0786, -0.0484, -0.0728, -0.0289, -0.0009, -1.0048, -0.089, 0.3605, 0.1645, -1.5307, -0.0504, 0.0, 0.0057, 0.0379, -0.0143, 0.0449, -0.0158, 0.0, -0.0233, 0.4373, 0.0011, -1.4332, -0.1009, -0.0195, -0.1884, -0.0307, -0.0327, 0.297, -0.3338, -0.0265, 0.3843, 0.1238, 0.0436, -0.0888, 0.1053, -0.026, 0.0205, 0.0711, -0.0012, 0.104, 0.0298, -0.6824, 0.0937, -0.0855, -0.0583, 0.2978, 0.2507, -0.0275, 0.0539, 0.0231, -0.1357, 0.0546, 0.0007, 0.0691, 0.1711, 0.0534, 0.0354, 5.4975, 1.6509, -0.0479, 0.3226, 0.7988, 1.75, 0.1711, 0.0861, -0.3183, 0.0981, 0.0059, -1.3554, -0.0516, -0.016, 0.0186, -0.0143, 0.0674, -0.6191, -1.1445, 0.1219, -0.1053, 0.0281, -0.0091, -0.0099, -0.0174, 0.0054, 0.1684, 0.0292, -0.0123, 0.0484, 0.0295, 1.6553, 0.0327, 0.012, -0.0555, -0.024, 0.3921, -0.0126, 0.0324, 0.0132, 0.1459, -0.0001, 0.542, -0.0403, -1.9398, 0.0, 0.045, 0.2012, 0.072, -0.0407, -0.0839, 0.0021, 0.03, -0.0259, -0.0191, -0.0629, 0.0939, -0.0178, -0.0081, -0.0657, -0.0104, 0.0204, 0.0688, -0.9023, -1.242, -0.1517, -0.0196, 0.0238, -0.1193, -1.3963, -0.1908, 0.2985, 0.0234, 0.2055, 0.1004, 0.0204, -0.3804, 0.0252, -0.0729, -0.0713, 0.1251, -0.1649, 0.0393, -0.0088, 0.1542, 0.0875, -0.3328, 0.3865, -0.0354, -0.0945, 0.1342, -0.0707, 0.0148, 0.2253, 0.0479, -0.0955, -0.0953, -0.0507, 0.0, -0.0856, -0.2953, -0.1574, -0.1548, -0.0497, -0.0129, 0.0033, -0.0886, 0.0025, -0.0617, -0.0716, 0.0517, -0.0165, 0.0977, -0.8662, -0.0347, -0.1987, 0.0772, 0.0025, -0.8727, -0.1389, 0.2013, -0.0802, -0.1106, 0.2085, 0.0498, -0.1683, -0.0003, 0.0134, 0.0056, 0.0333, -0.0096, -0.2622, 0.1227, 0.0253, -0.0139, 0.0238, 0.1794, -0.4973, 0.0213, -0.0042, 0.011, -0.0742, -0.1495, -0.1046, 0.3436, -0.0432, -0.3997, -0.0997, 0.0247, -0.7288, -0.0449, 0.0, -1.6925, -0.0225, 0.0479, 0.0592, 0.0, -0.0391, 0.1609, 0.0862, 0.015, 0.1075, 0.0713, 0.1252, -0.0547, 0.1575, -0.2402, 0.0077, 0.0453, -0.1008, -0.0576, -12.83, -0.1606, 0.1012, -0.0249, -0.043, 0.0061, 0.0636, -1.1589, 0.0007, -0.0065, 0.0211, 0.043, 0.037, -0.0955, -0.0382, -0.067, 0.032, 0.0639, -0.4328, 0.8341, -1.0383, 0.4243, -0.0415, -0.0671, -3.2606, -0.0777, 0.1325, -0.0059, 0.0258, -0.1853, -0.0314, -0.04, 0.246, 0.5938, 0.4776, -0.4717, -0.1642, -0.2303, 0.0502, 0.2739, 0.1639, -0.785, 0.0152, 0.009, 0.1895, 0.0299, 0.0054, 0.0239, 0.0205, 0.018, -0.0467, 0.0128, 0.093, 0.2097, 0.0561, 0.5339, -0.0552, 0.0336, -0.108, -0.0148, 0.0595, -0.1512, 0.1189, -0.0429, -0.3957, -0.1262, -0.0488, 0.0703, 0.1534, -0.0851, -0.1223, -0.0113, 0.1421, -0.1946, -0.1215, -0.0079, -0.2669, -0.0454, 0.2352, 0.0289, -0.0287, 0.0354, -1.434, -0.1403, -0.3211, 0.6228, -0.0268, -0.435, 0.8017, -0.0245, -0.458, -0.0587, -0.0423, -0.1854, -0.113, -2.6721, -0.7558, 0.0422, -0.1526, -0.0599, 0.0063, -0.0115, -0.058, -0.0873, -0.0244, 0.0191, -0.2378, -0.1424, -0.2606, -0.1438, -0.1475, -0.117, -0.1236, -0.2768, -0.0949, 0.2194, -0.0242, 0.0927, -0.3788, -0.118, -0.2975, -0.0529, -0.0288, 0.0736, -0.0364, -0.0722, -0.1018, -0.2374, 0.0172, 0.1442, -6.0439, -0.1346, -0.5641, -0.0088, -0.3064, 0.0075, -0.1659, -0.1223, -0.2492, -0.0488, 0.0024, -0.0954, -0.1021, 0.0, -0.0249, -0.2617, -0.1523, 0.0204, -0.0454, -0.0189, 0.277, -1.1804, -0.055, 0.0, -0.2288, 0.0328, -0.0257, -0.5222, -0.1813, -0.2115, 0.0356, 0.1399, 0.0679, -0.0798, 0.1304, -0.3742, 0.0855, 0.0015, 0.0, 0.05, 0.0931, 0.0427, 0.0107, 0.0571, -0.0633, -0.2562, -0.1357, 0.0301, -0.1486, -0.7181, -0.048, -0.0522, 0.0281, -0.0324, -0.0538, -0.0762, -0.057, -0.1295, 0.0111, -0.0762, 0.0224, -0.6297, -0.0187, -0.0484, -0.0371, -1.2128, -0.0674, 0.0347, 0.0024, -0.0087, 0.1804, -0.0143, -0.0365, -0.0421, 0.1754, 0.0337, 0.2107, 0.0385, 0.1638, 0.0641, 0.0921, 0.0888, 0.0232, 0.0456, -0.0911, -0.4658, -0.0043, 0.0042, -0.0089, -0.0047, -0.1412, -0.0991, 0.0021, -0.1401, -0.0147, -0.3155, -3.9225, -0.105, -0.2299, -0.0389, 0.1001, 0.0254, 0.0399, 0.0888, 0.0164, -0.1185, -0.0404, 0.0269, 0.9891, -0.3734, -0.017, -0.1524, 0.0346, 0.0722, -0.0576, -0.0906, -0.1351, -0.0405, 0.0012, 0.0454, 0.0331, -0.0009, 0.0527, 0.0541, 0.1003, -0.2188, -0.0366, -0.089, -0.5821, 2.0668, -0.0066, 0.0223, -0.009, 0.0454, -0.7672, -0.0301, 0.0044, -0.0184, 0.0646, -0.0381, 0.0019, -0.7314, -0.3154, -0.196, 0.0551, 0.1628, -0.1394, 0.1127, -0.046, -0.1976, -0.3844, -0.8535, -0.1101, 0.0116, -0.0556, -0.0487, 0.0312, -0.0981, 0.1058, 0.0625, -0.0367, 0.0423, -0.012, -0.078, -0.0119, -1.313, 0.0271, -1.2145, -0.0189, -2.6164, 0.0474, 0.1587, 0.0081, -0.037, -0.0667, -0.01, -0.3981, -0.0596, -0.0116, 0.223, -0.0792, -0.086, 0.0479, -0.0404, -0.0545, -0.064, -0.1404, 0.6367, -0.0494, 0.0449, 0.0902, 0.0503, 0.0885, -0.0949, -0.051, -0.2756, -0.0247, -0.279, -0.027, 0.0815, 0.3663, -0.1908, -0.0055, 0.0667, -0.491, 0.1921, 0.0773, 0.0882, -0.0455, -0.0347, 0.0, -0.1425, 0.2148, 0.0351, 0.1995, 0.0, 0.1617, 0.0238, 0.195, 0.0618, 0.0052, -0.0554, -0.2319, -0.0091, 0.0453, 0.399, -0.2849, -0.1612, -0.0946, -0.3226, -0.6512, 0.0472, -0.0902, -0.2574, -0.1292, 0.1966, -0.0488, 0.9683, 1.05, 0.0337, 0.0114, 0.4316, 0.1578, -0.0505, -0.0753, 0.053, -0.1036, -0.0377, 0.0165, 0.0788, 0.0193, 0.0122, -0.4266, 0.1705, -12.4025, 0.0601, -0.032, -0.1902, -0.0313, -0.0842, 0.0773, 0.0248, -0.079, -0.1176, 0.0806, -0.9933, 0.1959, -0.0076, -0.091, -0.0832, -0.086, -0.355, -0.0999, -0.032, 0.0268, -0.008, 0.1629, 0.5638, 0.02, -0.0377, -0.1004, 0.0, 0.0428, -0.1131, 0.014, 0.0265, -0.075, 0.1195, 0.0, -0.0415, -0.0476, 0.0247, 0.0, -0.0552, -0.005, 0.1556, 0.2683, 0.0067, 0.0043, -0.2864, -0.0735, 0.0006, 0.1918, -0.2336, 0.1846, -0.0731, -0.0416, -0.0915, 3.3675, -0.1241, -0.323, 0.0226, 0.072, -0.2996, 0.1235, -0.0916, 0.0359, 0.0017, 0.1487, -0.0271, 0.1284, 0.0504, -0.6649, -0.0542, -0.1121, -0.1006, -0.0115, 0.0119, 0.0549, 0.057, -0.8083, -0.1078, 0.0684, 0.0467, 0.0703, -0.0943, -0.1315, -2.5105, -0.0897, -0.0187, 0.0355, -0.2883, 0.0064, 0.1359, 0.0667, -0.2414, -0.2579, -1.9166, -0.2707, -0.0186, -0.0881, 0.0863, -0.2862, 0.0944, -0.0141, 0.3651, -0.0143, 0.1515, 0.0381, -0.102, 0.1262, -0.065, 0.175, 0.7132, -0.0321, 0.014, 0.1054, 0.0088, 0.0838, 0.0262, -0.0685, 0.7369, -0.3124, -0.041, -0.1428, -0.1459, 0.29, -0.3075, 0.0242, 0.0681, 0.0088, -0.0821, -0.0937, -0.1065, 0.0007, -0.0302, 0.0875, -0.8833, 0.1879, -0.6142, 0.1075, 0.0002, -0.3816, 0.0096, -0.0392, 0.0026, 0.0092, -0.2348, -0.0229, 0.0759, 0.0026, -0.0928, -0.2574, 0.1461, -0.0019, -0.1508, 0.0479, -0.7648, 0.0149, -0.0644, -0.0516, 0.0684, -0.0391, -0.063, -1.4375, -0.0418, -0.182, -0.0521, 0.0685, 0.2117, -0.044, -0.1836, -0.3699, 0.0308, -0.2884, -2.0386, 0.2399, 0.0662, -0.0717, 0.0048, -1.028, -0.1353, 0.7535, 0.1244, 0.1067, 0.2069, 4.83, -0.0515, -0.1406, -0.1369, 0.7464, -0.2692, 0.1782, -0.1169, -0.0418, 0.0529, -0.1361, 0.0016, 0.0777, 0.0187, -0.048, -0.0214, -0.2148, 0.0, 0.0158, 0.1261, 0.1995, -0.0136, 0.0746, 0.0069, 0.0173, -0.0526, -0.1331, -0.0049, -1.949, 0.1681, -0.045, -0.1673, 0.0426, -0.0119, 0.0473, 0.0465, 0.0262, 0.0729, -0.0633, -0.0127, -0.209, 0.0029, 0.0089, -0.0181, -0.0398, -0.0053, -0.0795, -0.0356, -0.1987, 0.0941, 0.0164, -1.0931, -0.0469, 0.0483, -0.5278, -0.1442, -0.0087, -0.1687, -1.5636, -0.0357, 0.0015, -0.1478, -0.0067, -5.0527, -9.9708, -0.2819, 0.0438, 0.0343, -0.1257, 0.1281, 0.0166, 0.0375, 0.0, -0.18, -0.0652, -0.2553, -0.2062, -0.1187, 0.0, 0.0154, 0.0081, 0.0021, 0.0097, 0.0335, -1.2607, -1.5426, -0.1889, -0.2209, 0.0465, 0.1241, 0.7019, 0.0436, -0.0487, -0.032, -0.615, 0.0074, -0.0928, -0.1448, 0.0145, -0.0344, 0.0126, 0.0443, -0.1086, -0.0924, -0.0722, -0.0014, -0.0903, -0.3127, -0.3979, 0.0461, 0.3511, -0.0671, -0.0884, -0.4604, -0.4722, -0.5843, 0.0, -1.4766, 0.841, -0.0638, 0.2656, 0.1039, -0.2129, -0.2067, 0.0347, -0.4563, 0.1163, 0.0751, 0.4642, 0.1102, 0.0155, -0.6305, -0.135, 0.0543, -0.0281, 0.096, 0.0444, 0.0751, 0.0866, -0.0676, -0.0323, -0.0066, -0.0488, 0.0031, 0.0394, -0.0504, -0.1222, -0.0752, -0.0261, 0.1124, -0.064, 0.0195, 0.0147, 0.0475, -0.0528, -0.0217, -0.0039, 0.0, -0.2558, 0.0228, 0.0296, 0.0768, 0.0312, 0.0145, -0.2236, -0.1242, -0.0663, -0.0201, -0.752, -0.0541, 0.0264, 0.1478, 0.0273, -0.1281, 0.0095, 0.031, -0.0008, 0.0033, 0.0068, 0.0279, 0.006, 0.0876, -0.0029, 0.0463, 0.202, -0.0806, -0.0246, 0.0621, -0.186, -0.0476, -0.064, 0.0164, 0.1321, 0.0007, 0.1022, 0.1532, -0.0038, -0.0175, -0.6924, 0.0326, -0.049, -0.0724, -0.0438, -0.0311, 0.1046, 0.0206, 0.0232, -0.1384, 0.2271, 0.2072, 1.4456, 0.5934, 0.0721, 0.4986, 0.1632, -0.0256, 0.2659, -0.0719, -0.0233, -2.6119, -0.0733, 0.0467, 0.2459, -0.3747, -0.2454, -0.0505, 0.0225, 0.0019, 0.0464, 0.0067, -0.0598, 0.0114, 0.1416, 1.2878, -0.0172, 0.0707, 0.7784, 0.1501, -0.0153, -0.0602, 0.0371, 0.0265, 0.0255, 1.1539, -0.0739, 0.0835, 0.0708, 0.0668, -0.0596, 0.0469, 0.0471, 0.0902, 0.0914, 0.0604, 0.0083, 0.091, 0.4038, 0.0242, 0.0174, 0.0, -0.0534, -0.0115, 0.278, 0.1683, 0.0341, -0.0313, -0.0723, -0.069, 0.0606, 2.8973, 0.0143, 0.0339, -0.0048, 0.2306, 0.0483, -0.0613, -0.084, 0.4717, 0.1212, -0.0483, -0.0689, 0.0149, -0.0412, -0.108, 0.0869, -0.1689, -2.2566, -1.7888, -0.0529, -0.1277, 0.0078, -0.2291, 0.0282, 0.027, -0.0088, -0.1481, 0.019, -0.2034, -0.0633, -0.0061, -0.0014, 0.0102, -0.0263, -0.0541, -0.0057, 0.1972, -0.2028, 0.0611, -0.0372, -0.0645, 0.0075, 0.0114, 0.1899, 0.0681, 0.2126, -0.1754, -0.2591, -0.123, -0.0166, -0.0102, -0.1419, 0.028, 0.3351, 0.0232, -0.0205, -0.2029, 0.3098, 0.1166, -0.0384, -0.1625, 0.1323, -0.1534, -0.379, 0.0303, 0.0485, 0.021, 0.0488, 0.0679, 0.0491, 0.0006, 0.1013, -0.0654, 0.1113, 0.0, -0.1327, -0.0094, -0.1623, 0.0049, -0.0811, -0.2031, -0.0244, -0.0102, -0.0906, 0.0291, -0.0078, 0.0026, -0.0775, 0.0243, -0.0101, -0.007, 0.0898, 0.0432, -0.0048, 1.109, 0.2236, 0.0307, -0.0116, -0.3143, -0.0539, 0.0153, -0.0432, -0.0859, -0.0409, 0.0, -0.0247, 0.8751, 0.7929, -0.0899, 0.0199, -0.2424, -0.0832, 3.3782, 0.0661, 0.0383, 0.0263, -0.0092, -0.012, 0.0062, -0.0265, -0.5335, -0.0587, -0.0865, 0.1033, 4.0356, 0.0577, -0.0046, -0.0822, 0.0831, -0.0492, -0.1148, -0.0792, 0.0234, 0.1633, 0.1005, -0.1511, 0.0237, 0.0009, -0.0127, -0.1103, 0.0796, 0.0016, -0.4461, 0.0636, 0.0236, 0.156, 0.0353, -0.3407, -0.0758, 0.378, -0.1986, 0.0737, 0.5092, -0.5581, 0.08, 0.0384, -0.0025, 0.1533, 0.0113, 0.3478, -0.0979, 0.3101, -2.2205, 0.0068, 0.3708, -0.0337, -0.0151, 0.2861, 0.031, 0.0712, 0.3514, -0.0673, 0.0364, -0.0446, -0.0108, 0.1257, -0.0405, 0.0065, -0.0768, 0.0408, 0.0165, 0.0684, 0.0577, 0.0178, -0.2318, -0.1979, 0.2481, 0.0023, 0.2821, -0.1146, 0.1353, 0.2033, 0.1128, 0.0691, 0.1778, 0.3045, 0.1743, 0.1175, 0.0195, 0.2592, 0.0, -0.8892, -0.037, 0.1089, 1.96, -0.92, -0.0531, 0.0709, -0.0696, -0.3539, 0.2193, -0.0886, 0.2062, 0.2538, -0.0231, 0.1, -0.3597, 0.0729, 0.112, 0.3307, -0.0706, 0.0808, 0.0156, 0.0602, 0.1205, 0.0142, -0.0328, 0.022, 0.1779, -0.53, 0.0611, 0.0003, 0.0454, -0.245, 0.0573, 0.0306, 0.1866, 0.0431, -0.0398, 0.0137, -0.0145, 0.0274, 0.0407, -0.0338, 0.0291, -0.2301, -0.033, 0.0179, 0.0243, 0.0, 0.1605, -0.0107, 0.0464, -0.041, 0.033, 0.0888, 0.0957, 0.0563, 0.0558, 0.1015, 0.073, 0.0491, -0.0296, -0.0993, -0.0251, 0.0159, 0.0339, 0.0334, -0.0071, -0.0027, -0.014, -0.1508, 0.0865, 0.0164, 2.1129, 0.0173, -0.0315, 0.0428, -0.0816, 0.0341, 0.0422, -0.0771, -0.1074, 0.1697, -0.4308, 0.0908, 1.3883, 0.0234, -2.8007, 0.2314, -0.0249, -0.0124, 0.1111, 0.0977, 0.0028, 0.0581, 0.0997, 0.136, 0.0168, -0.7228, 0.0232, 0.1046, 0.0443, 0.0455, 0.1601, -0.0432, -0.9102, 0.0092, 0.0326, -0.0744, -0.1348, -0.0623, 0.0264, 0.0233, 0.0383, -0.0626, 0.0403, 0.0484, 0.0, 0.3931, 0.0483, 0.0823, -0.1982, -0.0915, -0.8067, 0.0026, -0.0622, 0.0, 0.003, 2.6042, 0.0284, -0.401, -0.0127, -0.121, -0.1895, 4.2525, -0.1267, 1.5759, -0.1065, -0.0066, -0.1316, 0.2023, 0.3178, 0.0837, 0.0135, -0.0255, -0.0968, 0.1103, 0.0203, -0.2114, 0.0082, 0.0581, -0.124, 0.0346, 0.2321, -0.2097, 0.0426, -0.1663, -0.2759, 0.5023, -0.2065, -0.7971, 0.0, -0.0841, -0.0038, 0.1142, 0.0035, -0.0056, 0.0451, -0.1884, -0.0466, -0.3032, -0.1265, 0.0462, -0.0918, -0.0175, 0.0659, -1.0784, -0.1612, -0.0177, -0.0537, -0.2971, -0.231, 0.0112, 0.047, 0.0987, -0.0161, -0.2063, 0.1107, -0.1264, 0.0123, -0.1035, -0.0304, -0.0214, -0.0828, -0.0108, -6.9458, -0.0121, -0.0576, 0.0387, -0.7542, 0.0759, 0.0089, -2.3379, -0.0323, 0.3777, -0.1483, -0.0055, -0.0909, -0.0297, 0.0999, 0.5974, 0.0174, 0.4741, -0.0651, -0.0208, 0.0057, 0.9489, -0.0364, 0.0636, 0.3528, -0.0942, -0.0093, 1.556, 0.0071, 0.0155, -0.0725, -0.0435, 0.0599, 0.0471, -0.1296, -0.0331, 0.0835, 0.0, -0.1319, -0.1902, -0.0551, 0.0, 0.0853, 0.1138, -8.2383, -0.2232, -0.0707, -0.1057, -0.1073, -0.0188, 0.0372, -0.6441, 0.0146, 0.0, -0.1872, -0.0936, 0.0, -0.0762, 0.1454, -0.0019, -0.2211, -0.0225, -0.1767, 0.0284, 0.0, -0.0085, 0.2314, 1.769, -0.0769, -0.0764, 0.0151, 0.2608, -2.0864, -0.0193, 0.0202, 0.3192, -0.0988, 0.1204, 0.0674, 0.107, -0.0058, 0.1408, -0.0697, 0.0489, 0.1527, 0.0362, 0.0728, -0.0801, -0.0849, -0.0377, -0.0306, -0.0324, -0.115, -0.1667, 1.2819, -0.537, 0.027, -0.0726, -0.1082, -0.162, 0.034, -0.0236, -0.1206, -0.2239, 0.1896, -0.5378, 0.2834, 0.0536, 0.0558, 0.0391, 0.0207, 0.1139, 0.0963, 0.0119, -0.0087, 0.2218, -0.1734, 0.0306, -0.0258, -0.1236, -0.1661, -0.1078, 0.0017, 0.0218, -0.0121, -1.5248, 0.0042, -0.0409, 0.0972, 0.0071, -0.0596, -0.0999, 0.252, -0.409, -0.2239, 0.2462, 0.0581, 0.017, 0.0333, 0.0318, 0.0761, 0.2266, 0.0159, -0.1753, -6.4855, 0.143, -0.0281, -0.0446, -0.0248, 0.2595, -0.0301, 0.0225, 0.0295, 0.0128, 0.0787, 0.0424, 0.0649, 0.1586, 0.0878, 0.1006, 0.0325, 0.1386, 0.0939, 0.0879, 0.1591, -0.6706, 0.1801, 0.0, 0.0231, -0.1077, 0.0061, -0.1566, -0.0316, -0.857, -0.0017, -0.38, -0.0578, -0.5502, -0.1107, 0.0589, 0.0373, 0.0251, 0.122, 0.0, -0.102, -0.0617, 0.0309, 0.0071, -0.0683, 0.083, -0.6969, 0.0, -0.584, 0.2441, -0.6695, 0.0835, 0.1129, 0.2427, 0.0915, 0.3015, 0.0442, -0.7385, 0.0847, -0.0417, -0.0597, 0.1362, 0.0068, -0.0066, 0.1488, -0.1014, 0.0634, -0.3257, -0.2135, -0.0016, 0.0552, 0.0383, 0.5642, 0.0418, -0.1546, -0.068, 0.0058, -0.0176, 1.7661, 0.0119, 0.1726, 0.0593, 0.0437, -0.7045, 0.0062, 0.0, -0.0457, 0.0552, 0.0462, 0.2257, -0.1073, 0.0383, -0.002, -0.1196, 0.0268, -0.0753, -0.1923, -0.1383, 0.0849, -0.0656, -0.1186, 0.0, -0.0477, 0.0311, -0.0558, -0.0899, -0.0179, -0.0259, -0.2898, -0.0049, 0.0152, 0.1909, 0.0104, -0.0191, 0.0053, 0.0766, 0.3076, 0.0616, -11.4408, -0.078, 2.0204, 0.0632, 1.2363, -0.177, 0.0189, -0.9014, 0.3233, -0.106, 0.0, 0.0975, -0.2055, 0.1107, 0.0385, -0.017, -0.1745, 0.037, -0.0595, 0.4301, 0.0136, 0.0218, -0.2566, 2.3141, -0.0012, 0.0555, 0.0333, -0.0135, -0.1644, 0.0099, -0.2761, -0.3665, 0.0061, 0.1369, 0.1331, -0.2218, -0.0192, -0.0547, -0.0237, -0.6356, -0.0487, -0.1959, -1.4713, -0.0499, -0.078, -0.1202, -0.3248, 0.038, 0.0464, -0.2955, -0.1211, -0.0982, 0.1422, 0.0755, -0.1571, -0.1241, -1.273, -0.0686, -0.0783, -0.1771, -0.3063, -1.4307, -0.0272, 0.0, -2.0425, 0.1522, 0.0468, 0.0, -0.1202, 0.0106, -0.0781, 0.3914, -0.0279, -0.1244, -5.521, 0.032, -0.0022, 0.0982, 0.0125, 0.0537, 0.0001, -0.0161, -0.0067, -0.0267, 0.1732, -5.0061, -0.0966, -0.6286, -0.6779, -0.0256, -0.022, 0.0047, 0.3073, -0.1127, -0.5298, 0.3716, 0.0021, -0.6855, 0.4987, -0.0213, -0.0413, -0.0184, 0.0038, 0.106, 0.1921, 0.0, 0.1301, 0.0072, 0.0422, 0.0576, -0.0698, -0.4192, -0.1892, 0.0, 0.2127, -0.0118, -0.9974, 0.0521, 0.0475, -0.1711, -0.0469, -0.0088, -0.0112, 0.0478, 0.036, -0.0247, 0.0486, -0.034, 0.007, -0.0498, 0.0571, 0.0964, 0.068, -0.1139, 0.0669, 0.047, 0.0609, 0.1136, -0.3929, -0.6354, 0.1088, -0.324, -0.0313, -0.0952, 0.1785, 0.1106, -0.1424, 0.0797, -1.3636, -0.1421, -0.1434, 0.3077, 0.0876, -0.2492, 0.2103, 0.0022, -0.0253, 0.0535, -0.0281, -0.2664, 0.1266, -0.1338, 0.0513, 0.2958, -0.0477, -0.1362, -0.1451, 0.4067, -0.7485, -1.5698, -0.0317, 0.0623, -0.2358, 0.052, 0.0173, -0.1392, -0.1071, -0.4035, 0.0014, 0.0145, 0.0927, 0.2941, 0.9223, 0.0266, 0.0626, -0.138, -0.0023, -0.0977, -0.1694, 0.008, -0.1563, 0.1638, -0.5214, -0.0139, -0.0895, 0.0003, 0.0256, 0.137, 0.0259, -0.0059, 0.6092, -0.0201, 0.0632, 0.0766, -0.0627, -0.0131, 0.0565, -0.0394, 0.289, 0.0997, 0.2542, -0.5834, -0.0318, 0.4884, 0.0815, -0.0273, 0.0624, 0.0426, 0.1488, 0.095, -0.0952, 0.1426, -0.0912, -0.1754, -0.2425, 0.0262, 0.8165, 0.2346, 0.0424, 0.0463, -0.0647, 0.1, 0.1008, -0.6679, -0.0587, -0.0505, 0.0631, 0.4345, -0.06, -0.0342, -0.1733, -0.7556, 0.8784, 0.0287, 0.0492, -0.0165, -0.4079, 0.0874, -0.1054, 0.3568, 0.0065, -0.09, -0.2179, -0.0196, 0.0624, -0.1949, -0.038, 0.0338, 0.1298, 0.0024, -0.0822, 0.2267, 0.0578, 0.0746, 0.3988, 0.3108, 0.0025, 0.023, 0.1498, -0.0244, 0.0, -1.7905, 0.1386, -0.071, -0.0086, 0.0978, 0.0041, 0.0539, -0.2553, -0.0164, 0.0527, -0.0079, -0.0529, 0.0407, -0.4101, 0.0298, 0.0245, 0.0402, -0.0941, 0.037, -0.3665, -0.0273, 0.1513, 0.0301, -0.0071, 0.0432, -0.013, 0.0459, -0.1317, -0.0826, -0.0896, 0.0192, -1.5764, 0.1985, -0.0662, -0.0388, 0.2156, -0.0759, 0.1152, 0.0747, -0.1234, -0.0047, 1.8306, 0.1799, 0.0761, 0.0868, -0.0348, -0.0108, -0.0418, 0.0005, 0.3523, 0.0083, -0.5747, -0.1592, 0.0265, -0.6663, -0.0831, 0.1049, -0.4994, -0.2163, -0.1106, -0.065, 0.3705, -0.0984, -0.0027, 0.5047, 0.1743, -0.025, 0.0135, -3.3534, -0.1211, 0.0608, 0.0598, -0.0657, 0.0597, 0.2065, 0.0425, 0.0393, 0.1905, 0.0561, 0.0261, 0.1495, -0.1098, 0.0146, -0.0301, -0.0977, -0.1461, -0.0399, -0.0476, -0.0071, 0.0632, 0.0361, -0.5501, -0.824, 0.0054, -0.0901, -0.2682, -0.041, -0.0019, 0.0944, 0.101, 0.1095, 0.1131, 0.2107, -0.07, -0.062, 0.0205, -0.0216, -0.0329, -0.2568, 0.0057, 0.0, 0.0026, 0.0991, -0.0341, 0.3198, 0.3452, -0.0062, 0.0012, 0.0239, 0.0642, -0.3171, 1.1087, -1.7553, 0.0215, -0.0581, 0.1354, 0.045, -0.0018, 0.0503, 0.0813, 0.0398, 0.0691, 0.0401, -0.0916, 0.0125, 0.0349, 0.0424, 0.0464, -0.174, -0.0192, -0.0172, -0.1813, -0.0273, -0.3337, -0.1531, -0.1653, -0.1366, 0.2122, 0.0803, -0.1054, -0.1586, 0.0378, -0.0229, 0.091, -0.0468, 0.0002, -0.0785, 0.0247, 0.0645, 1.0675, 0.3027, 0.0226, 0.0507, 0.0399, 0.0416, 0.0279, -0.1108, -0.035, -0.0387, -0.0029, -0.0462, -0.0263, -0.8475, -0.9257, -0.7365, -0.1078, 0.0034, 0.0436, -0.0063, -4.9956, -0.3281, 0.0386, 0.004, 0.0861, -0.1788, -0.1257, 0.0328, 0.1867, 0.7161, -0.3927, -0.1355, -0.0082, -0.0933, 12.3678, -0.2205, 0.0218, -0.1082, -0.132, -0.0894, 0.0502, -0.7658, -0.1638, 0.0213, -0.0879, 0.0, 0.0298, 0.0, -0.1078, 0.4151, 0.0872, -0.0053, 0.0537, 0.0878, 0.1001, -1.1477, -0.0406, 0.1727, 0.0777, -0.002, 0.0807, 0.0, 0.1083, -0.1633, 0.0222, 0.1988, 0.2532, 0.1219, 0.0358, 0.278, 0.1542, 0.1528, -0.0083, -1.2664, -0.0188, 0.0671, 0.1666, 0.2083, -0.132, -0.0546, -0.0006, 0.4216, -0.1957, -0.0438, 0.0687, 0.0078, -0.0249, -0.6169, -0.4375, 0.5247, -0.0736, 0.0015, 0.0708, -0.0446, -0.0124, -0.0057, 2.3644, -0.0773, 0.0151, 0.0119, -0.0422, 0.087, 0.0244, -0.0913, 0.0635, 0.0618, -0.0872, -0.3236, 0.4706, 0.3613, 0.0216, 0.0218, -0.0338, 0.0223, 0.0667, -0.3519, 0.0486, -0.1042, 0.0354, -0.1179, -0.2704, 0.0, -0.0782, -0.0183, -0.0003, -0.0038, -0.1039, -0.0531, 0.0278, -0.021, -0.1052, 0.0589, -0.094, -0.0129, -0.0324, -0.0145, 0.4797, 0.0208, 0.0126, 0.0098, -0.0382, -0.1035, -0.0938, 0.0574, 0.0748, 0.0564, -0.1096, -0.2981, 0.2193, 0.1088, -0.1248, 0.0926, -0.0497, -0.0121, 0.1121, 0.1826, -1.5626, 0.0533, -0.7842, 0.1388, -0.7223, 1.3766, -0.0578, -0.51, 0.0127, -0.0193, -0.0008, -0.0091, 0.009, 1.0814, -0.8383, 0.0365, -0.2796, 0.2126, -0.0043, 0.027, 0.0, 0.0118, 0.0784, 0.0224, -0.3239, 0.0139, 0.0253, 0.0836, 0.014, -0.0759, 0.1879, -0.0518, 0.0195, 0.0994, -0.017, -0.0109, 1.019, -0.0328, -0.0393, -0.5918, -0.4609, 0.0264, -0.3616, -0.5207, -0.1287, 0.0045, -0.0205, -1.0392, -1.2517, 0.147, 0.0033, -0.0488, 0.0157, 0.0307, -0.0195, -0.165, -0.0712, -0.0819, -0.1558, 0.0585, 0.1707, 0.0394, -0.5734, -0.0348, -0.3116, 0.2596, 0.0, 0.142, -0.0417, 0.0381, 0.132, 0.1352, 0.0048, -0.0163, 0.0105, 0.0489, -0.0883, -0.0999, -0.736, -0.2284, 0.153, 0.1968, 0.0272, -0.0378, -0.3621, 0.0945, 0.1024, 0.0252, 0.2638, 0.0097, 0.0709, -0.5563, -0.0377, -0.0495, 0.0658, -0.0552, -0.0271, -0.0025, 0.3722, -0.2507, 0.0661, -0.0132, -0.071, -4.446, -0.454, -0.0514, 0.0082, 0.0688, 0.0153, -0.2369, 0.0592, -0.0293, -0.8615, -0.0305, -0.0435, 0.178, 0.0764, -0.0695, 0.0008, -0.5382, -0.3055, -0.0938, 0.0983, -0.0562, -0.0395, 0.0458, 0.0982, 0.019, -0.0088, 0.0158, -0.0136, -0.8281, -0.0057, -0.873, 0.0492, -0.0448, 0.0177, 0.0344, 0.0312, -0.1155, -0.0043, -0.0238, 0.0666, 0.0562, 0.0861, 0.0476, -0.0558, 0.0586, -0.0006, 0.0301, 0.1061, -0.0357, 0.0266, 0.0736, 0.0002, 2.622, -0.0122, 1.0895, -0.1765, 0.0084, -0.0778, -0.093, 0.006, -0.061, -0.4147, 0.1567, 0.1347, 0.0181, 0.1256, 0.2273, -0.0933, -0.0928, 0.0022, 0.2723, -0.0954, 0.2105, -0.0732, -0.1845, -0.1239, -0.1382, 0.0785, 0.0466, -0.0146, -9.446, 0.0322, 0.1294, 0.0448, -0.1357, -0.0123, 0.0503, 0.1683, -0.022, -0.1611, -0.009, -0.0256, 0.0085, 0.0993, -0.1132, 0.0727, -0.0208, -0.4065, -0.3486, 0.0267, -0.0457, 0.0659, 0.4515, -0.2827, -0.0125, -0.0208, 0.0856, -0.0303, -1.7326, -0.022, 0.8043, -0.0358, -0.0205, 0.052, 0.5385, 1.0829, 0.031, -0.008, 0.0204, 0.018, 0.1239, 0.0681, -0.0213, -0.2394, -0.654, -0.0937, 0.0602, -0.0069, 0.0335, 0.0932, -0.0276, -0.4027, -0.0048, 0.0263, 0.0753, 0.0, -0.0651, 0.0602, -0.6845, -0.4509, 0.6822, -0.0529, -0.0097, -0.1448, 0.2106, 0.017, -0.446, -0.1216, -0.0733, -0.0505, -0.0327, -0.0217, -0.0195, -0.0728, -0.0685, -0.0614, 0.0266, 0.0, -0.0432, -0.0347, 0.0524, 0.0753, -0.0492, -0.0215, 0.0064, 0.2358, -0.5987, 0.0382, 0.0091, -0.3055, -0.1605, -0.0801, 0.0618, 0.0, 0.0172, 0.0482, 0.0066, 0.0797, -0.1077, -0.0259, -0.1293, 0.03, -0.0287, 0.0065, 0.2654, 0.0523, 0.0, 0.1494, 0.1588, -0.3659, 1.171, -0.1781, -0.1211, 0.0493, -0.1491, -0.0694, -0.0798, 0.1659, -0.0544, 0.0, -0.0213, 0.0394, 0.0255, 0.0652, -0.0059, -1.7177, -0.0599, -0.2785, 0.1352, 0.0121, -0.0628, -0.155, -0.0838, -0.4811, 0.0214, 0.585, -0.0398, 0.0379, -1.4593, -0.416, -0.0396, 1.5029, 0.0178, 0.0326, 0.008, 0.0165, -0.0365, 0.0163, 0.0829, -0.0419, 0.3946, -0.0583, 0.0467, 0.0292, -0.0027, 0.0813, -0.0577, 0.0537, -0.5216, 0.0933, 0.0, -0.0638, 0.0969, -0.0054, 0.0553, -0.0165, 0.0527, -0.1112, -0.0148, -0.2429, -0.1178, -0.053, -0.0693, -0.0015, -0.0169, 0.4124, 0.0175, 0.0112, 0.0145, 0.0389, -0.0792, -0.0476, -0.0229, -0.6903, -0.0647, -0.1441, 0.1144, -0.0392, -1.5612, 0.0347, -0.0586, -0.1619, -0.0638, -0.0357, -0.2104, 0.0, -1.2117, 0.7613, -0.2774, 0.3313, -0.034, -0.0972, 0.1259, -0.0164, -4.7815, -5.8893, -0.1027, 0.0, 0.2308, -0.0519, -0.7243, 0.1345, -0.6047, 0.0664, 0.2045, 0.9667, 0.0175, 0.0172, -2.2083, -0.2214, 0.0103, 1.168, -0.1052, 0.0012, 0.0088, -0.04, 0.0366, -0.0348, 0.0518, -0.0546, 0.1239, 0.0302, 0.152, -0.0061, 0.0188, 1.4347, -0.0481, -0.0284, -0.038, 0.3508, -0.1138, -0.0572, 0.0402, -0.0956, -0.4367, -1.6494, -0.2063, -0.0823, 0.0251, 0.0055, -0.0436, -0.2292, -0.027, 0.0079, -1.2272, -0.0611, -0.0427, 0.0253, -0.0458, 0.0355, -0.0254, -0.2406, -0.0499, 0.5221, -0.0007, -0.0858, -0.1051, 0.0222, -0.2311, -0.1031, 0.8917, 0.7647, 0.1142, -0.0149, -0.0297, -0.2024, -0.1192, -0.1218, -0.0567, -0.1005, 0.016, 0.424, 0.386, 0.0137, 0.0443, -0.0373, -1.1196, -0.0789, 7.5175, -0.1423, -0.8639, -0.0598, 0.8626, -0.087, -0.2745, 0.0238, 0.0546, 0.066, 0.6393, 1.0663, -0.2603, 1.8707, 1.1088, 0.0909, -0.1532, -0.0008, 0.0389, 0.0066, -0.0389, 1.9791, 0.0241, -0.0084, 0.0154, -0.0319, -0.0073, -1.0898, -0.1899, -0.159, -0.0348, 0.16, 0.2631, -0.0609, -0.4353, -0.0173, 0.0629, 0.2373, -0.0119, -0.3584, 0.2688, -0.2035, -0.2007, -0.0401, -0.2986, 0.0306, 0.0036, 0.003, 0.0063, -0.0823, -0.3997, -0.2046, -0.0683, -0.2585, -0.0279, -0.0648, -0.03, 1.1997, -0.0565, -0.1664, -2.8078, -0.073, -0.1299, -0.1376, 0.0577, -0.117, 0.0068, 0.0348, 0.0372, 0.0494, 0.0618, -0.0732, -0.0523, -0.078, -0.0175, -0.1258, -0.1028, -0.0392, 0.0205, -0.0987, -1.2937, 0.0715, -0.0689, -0.149, 0.0059, -0.9859, -0.049, -0.0799, -0.0263, 0.0259, -0.0633, 0.0131, -6.288, -0.0061, -0.0217, 0.0345, 0.0584, -0.0818, 0.1714, 0.0091, -0.0518, 0.0244, 0.0, 0.0212, -0.0225, 0.0578, 0.0355, -0.021, 0.0467, 0.0711, 0.0376, 0.3853, 0.0226, 0.0, 0.1129, -0.0631, 0.0345, -0.3172, -0.0403, 0.261, 0.012, -0.004, 0.1108, -0.1708, -0.0512, 0.3132, -0.2786, -0.1595, 0.0138, -0.0181, -0.0077, -0.0643, 0.0948, 0.3831, -0.7853, 0.0078, 0.0742, 0.0295, -0.2229, -0.0831, -0.3379, -0.125, 0.1133, -0.0491, -0.2188, 0.0, 0.8193, 0.0177, 0.3604, -0.1631, -0.0178, 0.2049, 0.0, 0.165, 0.0803, -0.0128, -0.1393, 0.0328, 0.3699, 0.0712, 0.2506, -0.0436, -0.0181, 0.9537, 0.0326, -0.187, 0.0436, -0.2465, -0.0994, -0.0075, -0.1556, 0.4513, -0.0801, -0.4856, -0.3803, 0.0351, -0.0517, 1.0821, 0.065, 0.1502, 0.1086, 0.0089, 0.001, -0.0683, -0.0838, -0.0429, -0.1181, 0.0106, -0.0259, 0.0924, 0.0746, 0.0617, 0.0376, -0.0416, -0.6967, -0.1105, 0.2533, -0.0368, -2.43, 0.058, 0.0654, 0.0358, -0.5726, 1.7308, 0.0802, 0.0576, 0.0962, -0.1713, -0.0532, -0.039, -0.1754, -1.747, 0.0, 0.1286, -0.1774, 0.1834, -1.1652, -0.2815, -0.1333, -0.106, 0.0921, -0.0571, -0.0902, -0.0397, 0.0983, -0.0497, -0.1111, -0.5068, 0.0245, 0.0948, -0.0488, 0.0269, 0.0824, -0.0784, 0.0208, 0.011, 0.0793, -1.7952, 0.0668, 0.0064, -0.5365, 1.2151, -0.819, -0.0637, -0.1243, 0.0068, 0.0149, -0.0251, -0.0384, 0.0272, 0.0178, 0.1443, 0.2484, -0.7649, 0.0328, 0.0568, -0.0307, 0.009, -0.0389, 0.0097, 0.1973, 0.0272, 0.0701, -0.0414, 0.0, 0.0096, 0.0114, -0.785, -2.3195, -0.1391, -0.0637, 0.0937, 0.0301, -0.0413, -0.0615, -0.0715, 0.0289, -0.086, -0.1694, -0.0306, 0.9925, -0.0876, 0.0729, 0.0198, 0.0396, 0.0505, 0.0168, 0.028, 0.1572, -0.2044, -0.0269, -0.3149, -0.1051, -0.0397, -0.1342, -0.1563, 0.1533, -0.1149, 0.1328, -0.1129, -0.6793, -0.235, 0.1023, 0.4692, -0.456, 0.0197, 0.0214, -0.0746, -0.003, 0.0107, 0.0183, 0.0407, -0.0345, -0.0511, -0.2103, 0.0103, -0.1015, 0.0107, 0.0, -0.0333, 0.0262, 0.0047, -0.0026, -0.0137, -0.1103, -0.0012, -0.0119, 0.0526, -0.2074, -0.0287, 0.0041, 0.0, 0.3321, -0.0034, -0.0288, -0.7223, -0.3734, 0.0, -0.2782, -0.6335, -0.0472, -0.0911, -0.0065, 0.0118, 0.3416, -0.4849, 0.1213, -0.0434, 0.0176, 0.0441, -0.0972, -0.0736, -0.0648, 0.0403, 0.1111, 0.0018, 0.104, 0.1334, 0.0, -0.0414, -1.3922, 0.1076, 0.0202, 0.1733, -0.0618, 0.0247, 0.0037, 0.024, -0.047, 0.0724, 0.6772, 0.0395, -0.1076, -0.1768, -0.031, -0.1877, 0.2933, -0.2525, 0.0407, 0.1656, -0.1177, 0.0345, -0.0862, -0.2747, 0.0125, -0.0221, 0.059, -0.1772, 6.6883, 0.0382, 0.034, 0.0301, -0.1936, 0.0034, 0.0552, 0.0387, 0.4541, -0.0916, 0.1351, -0.0191, 0.0479, 0.0659, 0.0133, 0.2348, -0.0059, -0.0345, -0.1101, 0.3728, 0.0314, -0.0384, 0.115, 1.4887, 0.1487, 1.4239, -0.1389, 0.0836, 0.283, -0.1209, 0.0372, -0.0362, 0.0196, -0.141, 0.9666, 0.1269, -0.2169, 0.1647, -0.238, 0.2636, -0.1032, 0.0376, -0.0889, 0.1941, -0.2006, -1.1318, 0.5946, -0.237, -0.0597, -0.0165, -0.4814, 0.2344, -1.0495, 0.022, 0.0372, 0.0946, 0.2334, 0.013, 0.0136, 0.2071, -0.5911, 0.0019, -0.0558, -0.3788, -0.1481, 0.0, 0.0009, -0.069, -0.1349, 0.2548, -0.4529, 0.0528, -0.0102, -0.157, 0.1714, -0.5237, -0.3017, 0.0594, 0.0051, -0.345, 0.1277, -0.0159, 0.4798, 0.2973, 0.016, 0.0092, -0.0282, 0.0217, -0.0366, 0.2599, -0.037, -0.22, 0.0305, 0.027, 0.0349, 1.9383, -0.0998, -0.1095, 0.7617, 0.0076, -0.568, -0.243, -0.0398, 0.8905, 1.3252, -0.1565, -0.0264, -0.0313, 0.057, 0.1013, 0.0344, -0.0973, 0.0015, 0.2127, -0.0816, 0.0726, 0.0076, -7.0688, -0.0874, 0.0053, 0.1233, -0.0521, 0.0041, 0.0068, -0.0828, -0.0644, -0.3202, 2.1278, 0.0013, -0.2432, 0.1134, 0.0, 0.0391, -0.0017, 0.1622, -0.0494, 0.0, 0.0169, 0.0, 0.186, 0.0441, 0.0, -0.1903, 0.0803, -0.0437, 0.0235, -0.047, 0.5403, -0.0099, -0.243, -1.5749, -0.105, 0.027, -0.0644, -0.0361, -0.1395, -0.1371, -0.3095, -0.0929, -0.0672, -0.5, -0.0145, 0.0371, -0.1275, -0.0299, -0.0615, -0.0362, 0.0361, 0.0787, -0.0543, 0.0099, 0.0045, 0.0538, -0.0461, -0.0686, -0.2447, -0.0547, -0.0888, 0.0608, -0.1434, 0.1227, 0.1749, 0.0622, 0.0553, 0.1208, 0.0212, 0.0193, 0.0275, -0.3151, -0.293, -0.7679, -0.1433, -0.0468, 0.0785, 0.0513, -0.4333, 0.0105, 0.1315, 2.3877, 0.0277, -0.0919, 0.0, 0.0306, -0.0069, 0.031, 0.0328, 0.0549, 0.2103, -0.4535, 0.093, -0.1021, -0.0029, 1.4, 0.2402, 0.0242, 0.0747, -0.0909, -0.0075, -0.0238, -0.0519, -0.1903, 0.0535, 0.0448, -0.5582, -0.2322, 0.052, -2.3882, -0.1227, 0.5391, -0.6963, 0.8372, 0.1088, -0.0119, 1.9455, -0.1887, -0.1075, 0.0759, 0.0132, 0.0045, 0.1523, -0.0192, -0.0975, -0.1382, 0.1335, -0.0623, 0.224, -0.7175, -0.0315, 0.0, 0.1275, 0.3018, 0.0433, 0.0025, 0.0281, 0.0825, 0.0182, -0.0088, 0.0, 0.7334, 0.0167, 0.038, 0.1315, 0.1105, 0.0494, -0.762, -0.1494, -0.0801, -0.0021, 0.0299, -0.0867, 0.0086, 0.0134, 0.6707, 0.0233, 0.1625, 0.03, 0.0127, 0.083, -0.0659, 0.0664, 0.0023, -0.0195, -0.1379, -0.0252, -0.1068, 0.0388, -0.079, -0.0181, 0.0376, 0.7758, -0.0437, -0.1527, -0.2039, -0.1152, -0.0304, -0.0295, 0.0401, 0.0278, -0.0756, 0.0, 0.1672, 0.5149, 0.0553, 0.0245, -0.0224, 0.1606, 0.0559, 0.1346, 0.1021, 0.0536, -0.1333, -0.0679, 0.1584, 0.0687, 0.8481, 0.0021, -6.09, -0.2285, 0.0336, -0.0465, -0.1114, -0.1424, 0.8224, 0.095, -0.0028, -0.0137, -10.355, 0.0588, -0.119, 0.2799, -0.0519, 0.0668, 0.0018, -0.072, -0.106, 0.0429, 0.1194, 0.0015, 0.0, -0.0709, -0.164, 0.0326, -0.2852, -0.0951, 0.35, -0.023, 0.0205, -0.0158, -0.4784, 0.0845, -0.0675, 0.1223, 0.1818, 1.6973, -0.0068, -0.1149, 0.2406, 0.1063, 0.0442, 0.11, 0.2523, -0.4815, 0.1758, -0.0122, 0.0, 0.0293, -0.0091, -0.038, -0.2862, -0.2649, -0.0303, 0.2068, 0.0263, 0.0319, -0.0264, -0.2129, 0.0, -1.3802, 0.0425, 0.0046, -0.0875, 0.2409, 0.0603, -0.4408, -0.0244, 0.0025, -0.0984, 0.0782, -0.3832, -0.0916, -0.1074, -0.0161, 0.0592, 0.3215, -0.3804, -0.0768, 0.1261, -0.024, 0.4551, -13.565, 0.0136, -0.0473, -0.0528, -0.3063, 0.0356, 0.0445, 0.0157, 0.0255, -0.017, 0.1411, -0.5047, -0.0343, -0.0764, 0.0189, -0.2346, -0.0955, 0.0711, -0.221, -0.4758, -0.0129, -0.0224, -0.3774, -0.0674, -0.0593, 0.0725, -0.2529, -0.0959, -1.1371, 0.079, 1.4484, -0.1297, 0.173, 0.1086, 0.0117, -0.1606, 0.0415, 0.0328, 0.0269, -0.0639, 0.0103, -0.0185, -0.5144, -0.0147, 0.1271, -0.0246, 0.0448, 0.1406, -0.3651, -0.224, 0.0154, 0.0714, -0.0072, -0.0845, 0.0357, -0.0843, -0.079, 0.7497, -0.4506, -0.1694, -0.0792, 0.0553, -0.9567, 0.0193, 0.0, -0.0083, 0.0514, -0.1094, -0.0559, -0.1191, -0.1459, -0.0459, 0.0387, -0.0647, -0.1031, -0.093, -0.2585, 0.0211, -0.0244, -0.0617, -0.2351, 0.2935, -0.2825, 0.0274, -0.0562, -0.1004, -0.0582, -0.1275, -0.0862, -1.1145, 0.0203, -0.0115, 0.0295, 0.0, 0.5624, 0.0, -0.0379, -0.1096, -0.9678, -0.0879, -0.0306, -0.2901, -1.7436, -0.0668, 0.1497, 0.0095, 0.0169, -0.0723, 0.0338, -0.1167, -0.0643, -0.0307, 0.0, -0.0252, -0.0129, -0.0074, -0.0158, 0.022, -0.145, 0.0, 0.0248, -0.2589, 0.0108, -6.7444, 0.0132, 0.0388, -2.4581, 0.0647, 0.0284, -0.0242, 0.0871, -0.3238, 0.0401, 0.2127, 0.0335, -0.0307, 0.1415, -0.0788, -0.1101, -0.0737, -0.0065, -0.0214, -0.0532, -0.1109, 0.0709, 0.2631, -0.1533, -0.1157, -0.1254, -0.5029, 0.0261, 0.158, 0.1667, -0.0562, -0.037, 0.0379, 0.0, -0.0765, -0.0104, -0.0697, -0.0496, 0.0072, 0.0308, 0.6447, 0.0464, 0.4472, 0.0338, -0.0421, -0.2146, -0.0262, -0.0361, 0.0066, -0.0137, 6.7875, -0.0227, -0.247, -0.1082, -0.0715, -1.26, -0.6198, 0.026, -2.9812, -0.1288, -0.3443, -0.1446, -0.0169, 0.0225, 0.0665, 1.3449, -0.3335, -0.4082, -0.1149, -0.0815, 0.0945, -0.0189, -0.2022, 0.0111, -0.112, -0.2502, -0.1165, -0.104, -0.603, 0.0379, 0.1224, 0.0766, 0.0264, -0.0847, -0.028, 0.376, 0.0424, 0.0349, 0.053, -2.3767, 0.0733, -0.0735, 1.2502, 0.0027, -0.1101, -0.0463, -0.1237, -0.8836, -0.1315, 0.352, 0.0789, -0.1467, -0.0277, 0.0031, 0.0171, -0.13, -0.0893, -0.1432, 0.2818, 0.0, 0.7874, 0.005, -0.3578, 0.0157, 0.0989, 0.0946, -0.1802, 0.0, -0.02, 0.0073, -0.0147, 0.1867, 0.0403, -0.0081, -0.0014, 0.0414, -0.0651, 0.0565, -0.0273, 1.3498, 0.0, -0.2623, 0.012, 0.026, 0.0168, 0.032, 0.071, 0.2389, -0.5533, -0.7728, -0.1004, 0.0166, -0.0725, 0.0271, 0.0742, 0.0244, -0.0059, -0.0162, -1.7401, -0.9529, -0.0011, -0.3546, 0.1955, 0.0016, 0.2854, 0.0179, -1.6539, 0.0192, 0.0463, -0.11, 1.2673, -2.3207, -0.0564, 0.1052, -0.0493, -0.0913, 0.9654, -0.0593, 0.0948, 0.0094, -0.2625, 0.0303, 0.1797, 0.0726, -0.158, -0.0749, -0.0138, 0.0424, -0.0803, 0.0789, 0.3063, 0.0357, 0.0045, -0.3365, -0.0343, -0.1078, 0.0, -0.0641, -0.0025, -0.2744, 0.0313, 0.1711, 0.0382, -0.2017, -0.1083, -0.0755, 0.0438, 0.0073, -0.0455, 0.0692, -0.0347, 0.004, -0.1135, -4.1942, -0.0442, 0.0218, -0.0579, 0.1966, -0.0989, 0.065, 0.014, -1.0902, 0.0629, -0.0455, 0.0274, -0.0938, 0.1898, 0.0209, -0.1096, -0.041, -0.5341, 0.042, -0.0295, -0.0359, -0.0101, -0.0199, -0.0649, -0.0398, -0.0291, 10.6783, -0.0871, -0.0022, -0.1382, 0.0234, -0.6741, 0.0222, 0.0424, -0.1385, -0.87, 0.0826, 0.0941, 0.1792, -0.0392, 0.0333, -0.1228, -0.0449, 0.0406, -0.1409, -0.8977, -0.0965, -0.066, -0.0733, 0.9178, -0.0433, -0.0966, -0.0747, -0.3531, -0.0434, 0.1538, 0.0168, -0.0493, -0.1873, 0.0636, 0.0212, 0.0958, 0.0727, 0.1095, 0.2247, -0.1431, -0.1637, 0.1814, -0.0211, -0.0059, -0.8437, -0.2786, -0.0257, -0.1974, -0.0001, -1.3596, 0.0462, 0.1081, 0.0138, 0.0023, -0.2264, -0.0074, -0.0461, -0.0632, 0.0, -0.0593, -0.1892, -0.2069, -0.6012, 0.0185, 0.2688, -0.031, 0.154, -0.3795, 0.0032, 1.5544, -0.0196, 0.0065, -0.5204, -1.4386, 0.0157, 0.0944, 0.0628, -0.0552, 0.0647, -3.0295, -0.0091, 0.003, -0.1076, -0.3964, -0.6136, 0.0092, 0.2095, -0.0278, -0.008, -0.0568, 0.0666, -0.6808, -0.147, -0.0315, -0.0672, 0.0, -0.0311, -0.1258, -0.0057, 0.1345, 0.0216, 0.0, -0.0756, -0.114, 0.0404, -0.063, -0.1413, 0.05, 0.0668, 0.0, 0.0, 0.0006, -0.0811, -0.0654, 0.0167, 0.0265, 0.0179, -0.0586, 0.0129, 0.0839, 0.0805, 0.1259, 0.0856, 0.0585, 0.0601, 0.0231, -0.0016, -0.0683, 0.0185, 0.0441, 0.1986, -0.2276, -0.0089, 0.1826, -0.0228, 0.019, -0.045, -0.0074, 0.0568, 0.0226, -0.0058, -0.0373, -0.0495, -0.082, 0.1026, -0.0346, -1.1041, -0.0581, -0.0321, -0.032, -0.0895, 0.2484, -0.0164, -0.1263, 0.0238, 0.0646, 0.0444, -0.3121, -0.0041, 0.093, -0.1518, 0.088, 0.0998, 0.127, 0.0188, -0.0263, -0.9574, -0.1812, -0.0252, -0.015, -0.0616, -0.4294, 0.0226, -0.4642, -0.1794, 0.053, -0.3721, 0.1273, -0.08, 0.0135, 0.132, 0.0151, 0.0213, 0.0201, 0.0693, 0.9874, -0.1116, 0.1558, -0.0166, -0.0841, 0.0855, 0.0853, 0.0111, 0.5656, 0.0, 0.0, -0.0441, 0.0143, 0.0186, 0.0395, -0.0295, -0.0609, 0.4678, -0.1217, -0.0699, 0.0192, 0.1942, 0.0264, -0.0239, 0.0814, -0.0433, -0.4331, -4.0796, -0.01, -0.1414, 0.0163, 0.0117, 0.0208, -0.1727, 0.0236, -0.4712, -0.3771, 0.0902, 0.1521, -0.0227, -0.0085, -0.1706, 0.1117, 0.0279, 0.0, 0.1122, 0.1978, 0.0074, -0.0589, -0.065, -0.0616, 0.0193, 0.062, -1.161, -0.0193, -0.0031, 0.415, -0.0356, -0.0227, 0.0, 0.7737, -0.0041, -0.0142, -0.0091, -0.0447, 0.0722, 0.1364, -0.0569, -0.0479, -0.4405, 0.1471, -3.0378, 0.0191, -0.05, -0.0253, 0.0, 0.0, -0.1445, -0.0443, -0.1887, -0.0046, 0.2775, 0.0609, -0.0645, 0.1599, -0.0638, -0.0093, 0.2792, -0.0136, -0.2894, 0.0008, -0.0108, 0.0943, 0.0365, -0.0697, 0.0, -0.7323, -0.0983, -0.1949, -1.9234, 0.3357, -0.0556, -0.7004, -0.1276, 0.2704, -0.0331, -0.2366, 0.1971, 1.0922, -0.0949, 0.0198, 0.0347, 0.067, 0.1559, -0.1089, -0.0793, -0.0288, -0.0096, -0.1383, 0.0524, 4.925, -0.0587, -2.0022, -0.0555, 0.0774, -0.0353, -0.0286, -0.0212, 0.0409, 0.0441, 0.0729, 0.0094, -0.0777, 0.1184, 0.0206, 0.0058, -0.1608, 0.0483, -0.077, -0.0224, 0.0148, 0.025, 0.0841, 0.1084, 0.0, 0.02, 0.1295, 0.0095, -0.0516, 0.0097, -0.8224, 0.1197, -0.016, -0.0141, -0.0001, -0.0114, -0.2368, -0.0577, -0.1025, -0.0575, -1.8894, -2.3391, -0.6852, -0.0141, -0.0997, 0.0238, 0.106, 1.434, 0.5714, -0.0009, 0.0177, 0.1499, 0.0871, -0.0974, 0.4845, 0.1195, 0.0707, 0.064, -0.0521, 0.0159, -0.0079, 0.06, 0.0423, -0.2467, 0.0651, 0.0673, 0.1746, 0.007, 0.0135, 0.113, -0.379, 0.0034, -0.0277, 0.0603, 0.6666, -0.0463, -0.1489, -0.0854, -0.0943, -0.2207, 0.0148, -0.1316, 0.0334, -0.0359, -0.205, 0.0288, -0.0782, -0.0002, -0.047, -0.0146, 0.0335, -5.491, 0.0182, 0.0172, -0.112, -0.0426, -0.3598, -0.0664, 0.0, 0.0319, -0.0856, 0.0095, 0.0451, -0.0167, -0.0763, -0.07, 0.225, 0.0452, -0.0831, 0.0944, 0.175, -0.299, -0.0078, 1.0434, 0.0312, 0.0287, -0.058, -0.0104, -0.0267, 0.2978, -0.0675, -0.0091, -0.2186, -0.0852, -0.1597, 0.0629, 0.0349, 0.0832, 0.1857, 0.0651, -0.2392, 0.001, -0.0036, 0.0202, -0.0197, -0.0177, -0.0235, -0.0959, 0.1427, -0.0565, 1.4309, 0.0211, 0.228, -0.0292, 0.0503, -0.0561, -0.3314, -1.712, -0.0938, 0.0089, -0.5184, 0.0312, -0.022, -0.017, -9.67, -0.0625, -1.1437, -0.8127, 0.1944, 0.0439, -0.7301, -0.1514, -0.0758, 0.0405, -0.6095, 0.0865, -0.0392, 0.0335, -0.0621, 0.1634, 0.0064, -3.58, 0.0633, 0.046, 0.0975, -0.0636, 0.0204, 0.0426, 0.0595, -0.1004, 0.0, -0.0174, -0.028, -0.0375, -0.4701, -0.0593, -0.0115, 0.0604, 0.0689, 0.0509, 0.1794, -0.0346, 0.0, 0.2236, 0.0443, -0.0531, 0.0249, 0.0125, 0.0343, -0.0552, -0.0811, -0.0657, 0.0152, -0.0152, 0.6118, 0.0632, 0.0441, -0.0919, 0.0257, 0.0427, 9.2492, 0.062, 0.0873, 0.1504, -0.0526, 0.2353, -0.1413, 0.1711, -0.0805, 0.0036, -0.0142, 0.1558, -0.0041, 0.0685, -0.0848, -0.2111, 0.0645, -0.0365, 0.2913, 0.0119, 0.009, 0.0594, -0.3986, -0.0391, 0.0811, 0.0113, -0.0151, -0.0207, 0.0292, -0.0529, 0.0219, 0.0103, 0.015, -0.0547, 0.6617, 0.0575, 0.04, 0.0604, 0.2109, 0.112, 0.1737, 0.0541, -0.0512, -0.0357, 1.1771, 0.0634, 0.0, -0.0282, -0.0553, 1.5462, -0.355, -0.0113, 0.4472, 1.1875, 0.0466, 0.1021, 0.1137, 0.1463, 0.126, 0.2263, 0.1026, 0.1068, 0.5615, 0.0286, 0.1232, -0.0112, -0.0217, -0.0223, 0.0014, 0.066, -0.0167, -0.2229, 0.0767, -0.6306, 0.1225, 0.0182, -0.0297, -0.0621, -0.1017, -0.0008, 0.2097, 1.1492, 0.6796, 0.0605, 0.0, 0.0779, -0.0178, 0.3051, 0.1709, 0.2162, -0.0421, 0.0, 0.0782, 0.057, 0.1239, -0.1216, -0.1834, 0.137, 0.0481, 0.1077, 0.2569, -0.2178, -0.1554, -0.0871, -0.1508, 0.0469, 0.0, 0.1596, 0.076, -0.0336, -0.0972, 0.3417, 0.0774, 0.0221, -0.0243, -0.3845, 0.0, 0.0301, 0.0224, -0.0495, -0.0188, -0.0592, -0.0089, -0.4246, 0.03, 0.0722, -0.0874, -0.0371, -0.0141, 0.096, -0.024, 0.0604, 0.0179, -0.0107, 0.0, -0.0197, -0.0395, -0.039, -0.0649, 0.0833, 0.0904, -0.0634, 0.0436, 1.1183, -0.0008, 0.0582, 0.0502, 0.0303, -0.6034, 0.2711, -0.0368, 0.0389, -0.044, -0.0194, -0.0633, -0.2378, 0.0994, 0.0964, -0.3, -0.1009, 0.2076, 0.4629, 0.0934, 0.0483, 0.2701, 0.0633, -1.5474, -0.5002, 0.019, -0.0366, -0.032, 0.0, 0.1414, -0.0078, 0.011, -0.1156, 22.2208, 0.203, -0.1693, 0.1837, 0.0013, 0.006, -0.0091, 1.1242, 0.001, 0.0996, 0.1926, 0.1386, 0.0146, -0.0097, -1.2559, 0.1978, -0.5294, -0.4155, -0.0212, 0.0762, 0.0004, 0.0707, 0.0, 0.0, -0.0364, -0.0169, -0.0336, -0.062, 0.0128, 0.095, 0.045, -0.0429, -0.0375, 0.008, 0.0574, 0.0819, -0.0288, 0.0371, 0.0517, 0.0133, -0.0096, -0.2418, -0.0076, 0.0287, 0.04, -0.4064, 0.1033, -0.0385, 0.0294, 0.089, 0.1208, 0.1048, 0.0912, -0.0983, -0.071, 0.0153, -0.2036, -0.0318, -0.0445, 0.0, -0.0372, -0.0835, 0.1711, 0.1392, 0.0125, 0.2144, -0.0524, 0.0219, 0.0176, 0.0128, 0.0357, -0.0695, -0.9483, -0.0629, -0.0109, -0.0445, 0.1624, -0.0357, -0.0325, -0.0126, -0.0436, -1.1328, -0.125, 0.0131, -0.243, 0.3204, -0.0211, -0.7486, -0.4125, -0.0817, -0.0283, -0.673, -0.0028, -0.0117, -0.0587, 0.0238, -0.132, 0.097, 0.023, -0.0301, -0.2798, 0.1451, -0.0226, 0.0057, 0.754, 0.0069, -0.0968, -0.0246, 1.0397, -0.0799, -0.2399, -0.0117, -0.4399, -0.1301, 0.0078, -0.9539, 1.1515, 0.1319, -0.0657, 0.0398, -0.0736, 1.1028, -0.0102, -0.0571, -0.072, 0.0819, -0.2368, -0.478, -3.3902, -0.0918, -0.1492, -0.037, -0.1401, -0.0366, -0.0277, 0.0, -0.0928, 0.0202, 0.2458, 0.0475, 0.6413, -0.0349, -0.0367, 1.7532, -0.0798, -0.0424, -0.077, 0.0275, -0.1076, -0.0795, 0.0171, -0.1424, 0.0027, 0.0379, -0.1462, -0.2794, 0.0046, -0.0139, 0.1576, 0.1661, 0.0252, 0.1026, 0.004, 0.3728, 0.0575, -0.0024, 0.013, 0.4745, 0.1222, 0.0441, -0.2782, 0.3949, -0.1842, -0.078, -0.1809, -0.5157, -0.0086, -0.1935, -0.0094, -0.1805, 0.467, 0.1103, -0.0321, -0.5758, -0.6142, -1.5419, -0.0436, -0.1015, -0.0192, 0.0913, -0.0315, -0.0325, 0.2227, -0.0958, 0.0568, 0.2802, 0.2156, 0.0635, -0.0975, -0.3298, 0.656, 0.0289, -0.0224, 0.0, -0.5665, -12.6625, 0.0247, 0.0773, 0.057, 0.0481, -0.0915, -0.0752, -0.0277, -0.0043, 1.9978, 0.0826, -0.0083, 0.07, 0.0416, 0.0523, -0.056, 0.0716, -0.0118, 0.0, 0.1541, 0.0248, 0.0726, -0.0945, 0.031, 0.0361, 0.0196, 0.1401, -0.1567, -0.0403, 0.1376, 0.031, 0.017, -1.0844, -0.0217, 0.1297, -0.0779, 0.0798, -0.1072, -1.0878, -0.044, 0.0536, -0.0058, 0.1975, -0.2716, -0.1326, 0.0472, -0.0473, -0.8008, -0.089, -0.1953, 1.0103, -0.2441, -0.0016, 0.0206, -0.0915, 0.6456, -0.0385, -0.1894, 0.4648, 0.0614, 0.0515, 0.0839, 0.0034, 0.0, 0.0277, 0.0079, -0.1187, 0.0399, -0.2946, 0.2148, -0.0322, -0.0133, 0.1322, -0.3315, -0.37, 0.0, 0.7014, 0.0187, 0.014, 0.039, 0.0702, -0.0469, 0.067, 0.034, 0.0429, -0.0319, -0.0682, -0.0228, -0.0539, 0.0589, 0.1483, 0.0218, -0.0773, 0.1808, 0.0996, -3.1481, -0.09, 0.0059, -0.0059, 0.0063, 0.5301, 0.0209, -0.0377, 0.0286, 0.0189, 0.0, -0.0528, 0.0487, -0.0441, -0.3232, -0.1987, -4.2475, 0.3324, 0.0858, -0.106, -0.1982, 0.0948, -0.0413, -0.0534, -0.3845, 0.0295, 0.0306, -0.0886, -0.1133, -1.6758, -0.3243, -0.0293, -0.0475, 0.0708, 0.0227, -0.1258, 0.085, -1.2916, -0.0901, -0.0887, -0.0466, -0.1211, -1.175, 0.0444, 0.0778, 0.103, 0.0658, 0.012, 0.0554, 0.0507, 0.0516, 0.0766, 0.0, -0.1603, -0.0734, -0.0316, -0.5623, 0.0, 0.0341, -0.0808, -0.0198, -0.1225, -0.0504, 0.0511, 0.1433, 0.0273, 0.1274, 0.0534, 0.2961, 0.1419, 0.0, 0.0311, 0.0, 0.0096, 0.0771, -0.144, 1.3822, -0.0786, 0.1177, 0.0104, -0.0055, -1.2533, 0.0421, -0.1027, 0.0117, -0.0188, 0.0926, 0.1063, -0.1784, 0.0682, 0.145, -2.7472, 0.1399, 0.3927, -0.0127, 0.0158, -0.1057, -0.0045, 0.0161, 0.3723, -1.7917, -0.0146, -0.0441, -0.0041, -1.6544, -0.3936, -0.0375, -0.0773, -0.2929, 0.0046, -0.4468, 0.0251, -0.0024, -0.1339, 0.5803, 0.5495, 0.0095, -0.0389, 0.0895, -0.117, 0.0193, -0.1694, 0.0293, 0.1497, 0.0769, -0.0763, -0.0034, -0.0104, 0.0506, -0.02, -0.1585, -0.4271, 0.1727, -0.0232, -0.0476, -0.1085, -0.0511, -0.4411, -0.0627, 0.1682, -0.0081, 0.0278, -0.0725, -0.4176, 1.129, 0.0, -0.0757, -0.0353, 0.0001, 0.0, -0.0081, -0.1844, -0.0354, -0.0382, -0.0683, 0.0877, 0.0491, 0.015, 0.0076, 0.2328, 0.1091, 0.0245, -0.0334, 0.0194, -0.03, 0.0226, 0.0249, 0.1023, -0.1251, -0.255, -0.0799, -0.8863, 0.0716, 0.1534, 0.0503, -0.033, -0.0103, -0.1918, -0.1744, 0.0609, -0.0358, -0.1073, -0.5612, -0.0262, -0.0134, 0.0404, 0.0548, 0.1104, 0.1573, -0.0205, 0.0, 0.2539, -0.0792, 0.0054, 0.0602, -0.0882, 0.0523, 0.0, -0.2545, 0.0931, 0.0191, -2.7659, -0.2338, 0.0738, 0.0745, 0.0919, -0.0067, -0.002, -0.0236, -0.1196, -0.099, -0.1126, -0.0516, 0.0984, -0.2056, -0.0186, -0.0905, 0.0602, -0.254, 1.9092, 0.3319, 0.0604, 5.097, -0.0379, -0.0718, 0.1151, 0.0145, -0.0306, -0.0444, -0.0789, -0.2129, -0.0365, -0.0577, 0.0735, 0.1686, 0.0388, 0.0082, 0.0821, -0.0024, -0.3336, -0.1432, -0.0209, -0.0202, 0.1304, 0.0, 0.0118, 0.0052, -0.2776, 0.0319, 0.0416, 0.4056, 0.0205, -0.6536, -0.0181, -0.342, 0.0245, -0.025, 0.0541, 0.3147, 0.0197, 0.0442, 0.8576, 0.0578, -0.0154, 2.453, -0.0045, 0.81, -0.271, 0.1957, 0.0586, -0.2681, 0.0122, 0.0938, -0.8268, 0.0336, 0.1346, -0.0237, -0.0817, 0.3104, -0.0144, 0.0485, 0.2576, 0.001, 0.0199, 0.0161, 0.0361, -0.0538, 0.0648, -0.0112, 0.0111, 0.0132, 0.0675, -0.0498, -0.0116, 0.0251, -0.0011, 0.0062, 0.0108, 0.1346, -0.0103, 0.0323, -0.0103, -0.008, -0.0778, -0.0667, -0.1043, -0.4643, -0.0071, -0.0008, 0.2542, 0.0266, 0.0033, -0.2179, -0.1075, -0.0255, -0.0835, 0.1498, -0.0247, -0.0961, 0.0481, 0.0643, 0.0368, 0.3042, -0.0565, -0.0445, -0.4121, -0.4597, -0.0696, 0.0564, 0.0779, -1.1627, -0.1939, -0.1095, 0.0739, 0.0407, 0.4613, -0.1148, 1.7917, 0.0618, -0.0073, 0.0323, -0.0506, 0.1958, -0.2443, 0.1392, 0.0407, -0.0046, -0.2968, 0.0485, 0.0204, -0.0489, -0.0374, -0.1184, -0.3533, 0.0426, -0.6584, 0.0329, -0.0079, 0.0206, -0.129, -0.004, 0.0408, 0.0695, 0.0274, 0.0795, 0.0188, 0.0224, 0.1344, 0.161, 0.0022, 0.1487, 0.0114, 0.021, 0.0789, -0.1568, -0.0058, -0.1145, -0.0524, -2.7462, 0.1191, -1.2824, 0.078, 0.0279, -0.0189, -0.1078, 0.5687, -0.0582, -0.1327, 0.0353, 0.0071, 0.0244, 0.0464, -0.0492, -0.2985, -0.2221, 0.237, -0.2801, -0.12, -0.0742, 0.0075, -0.0655, 0.0733, -0.0488, 0.0853, 0.0018, 0.0715, -0.0377, -0.0653, 0.2973, -0.024, -0.0376, -0.3033, -0.0253, 0.0229, -0.0196, -0.259, -0.0382, -0.022, 0.086, -0.0832, 0.0393, -0.0026, -0.2604, 0.0146, 0.063, 0.0414, 0.0887, 0.1091, 0.0065, 0.0107, 0.1477, 0.0053, 0.0438, 0.0631, 0.0, -0.0234, 0.0232, 0.0281, 0.0718, -0.2993, 0.0392, 1.4271, -0.0192, -0.2052, 0.0071, 0.0389, 0.0208, 0.1448, -0.0035, 0.1564, 0.0033, 0.5852, 0.0036, -0.077, 0.1929, -0.0828, 0.0901, 0.0781, -0.0935, -0.5139, -0.0533, 0.0285, -0.0193, -0.0202, 0.0256, 0.1315, -1.0468, -0.5602, -0.3947, 0.0393, -0.1756, -0.095, -0.0801, -0.1106, -0.0488, -0.0785, 0.0277, 0.0, -0.0304, -0.0012, 0.0783, -0.125, -0.147, 0.0119, -0.0771, -0.0467, -0.3474, -0.1263, -0.0827, -0.033, -0.07, -0.0272, -0.0374, -0.146, -0.0163, 0.5537, -1.2946, 0.0, 0.1412, 0.0056, -0.1379, 0.0, -0.0538, -0.0603, -0.1021, 1.5853, -0.0077, 0.0012, -0.0249, 0.0477, -0.0473, -0.1569, 0.0408, -0.0925, 0.0008, 0.0388, -0.0566, -0.0319, 0.0285, -0.0224, -0.038, 0.0, -0.071, 0.0344, -8.6567, -0.0476, 0.2223, 0.0219, -0.0396, -0.039, -0.0557, 0.0307, -0.6542, -0.1076, -0.6343, -5.2777, -0.0153, -0.104, 0.0008, 0.0107, -0.036, 0.0281, -0.0701, 0.4862, 1.68, 0.4008, -0.0685, -0.0924, -0.0753, 0.0476, -0.0882, -0.7997, -0.0291, -0.0416, -0.0512, -0.0532, -0.0187, 0.4276, 0.0015, -1.5058, -0.0621, 0.0321, -0.0257, 0.0748, -0.0931, -0.0477, 0.1092, 0.0247, -0.0023, 0.0984, 0.0116, 0.0123, 0.0896, -0.0323, 0.0181, -0.7206, -0.5956, -0.4222, -0.074, 0.0462, -0.0533, -0.1787, -0.049, -0.0975, -0.076, 0.0039, -0.0473, -1.1743, -0.4113, -0.083, -0.0461, 0.0, -0.138, -5.3827, 0.3577, -0.2775, -0.0796, -0.0757, -0.0509, -0.021, -0.1671, 0.3185, -0.5875, 1.4803, -0.3918, 0.0044, -0.1414, 0.0632, -0.8137, 0.0603, 0.0883, -0.408, -0.045, -0.0043, -0.1731, 0.0, -0.2447, 0.037, 0.4154, -0.0151, 0.0177, -0.0671, 0.0032, 0.1511, -0.0115, 0.0579, 0.0082, 0.492, 0.0293, 0.044, 0.0383, 0.0473, -0.1123, 0.0196, 0.0529, 0.4728, 0.1189, -0.1461, 0.0798, -0.2735, -0.5124, -0.1286, -14.5733, 0.1553, 0.0112, -0.1005, -0.107, -0.5923, -1.3169, 0.02, 0.4583, 0.3576, -0.069, 0.0799, 0.0545, 0.2004, -0.062, -0.2663, 0.0776, 0.0407, 0.0, 0.2175, -0.0508, -0.1925, -0.0999, -0.1426, -0.0167, -0.0102, -0.4212, 1.412, -0.0045, -0.0272, -0.1349, 0.0105, -0.1466, 0.193, 0.5363, -0.0467, -0.5139, 0.1042, -0.0007, -4.7, 0.0017, 0.0148, -0.0819, -0.0128, 0.4919, 0.001, -0.0122, 0.006, 0.0431, 0.0084, 0.0589, 0.433, -5.922, 0.2461, 0.3617, -0.1425, -0.0732, -0.1282, 0.0184, -0.2761, -0.2631, -1.3006, -0.0406, -0.2273, -0.2164, -0.0905, 0.0, -1.1948, -0.0802, -1.1139, -0.4575, 0.5124, -0.0213, 0.0227, 0.2056, 0.0172, 0.0269, 0.0151, -0.1643, -0.1166, -0.0207, 0.0081, 0.0004, 0.0856, -0.0136, -0.129, -0.0346, 0.0302, -0.3785, -0.2903, -0.0279, -0.5711, -0.1956, -0.0133, -0.0406, -0.058, 0.0163, -0.0456, -0.2679, 0.0, 0.0507, 0.01, -0.2064, 0.283, 0.0452, 0.0435, 0.1588, -0.414, -0.252, -0.0242, -0.0845, -0.3416, 0.0476, 0.058, -0.0252, -0.0324, -0.0752, 0.0204, 0.0596, 1.5111, 0.0435, 0.0773, -0.0181, -0.083, -9.5533, -0.4694, -0.0283, -0.3972, -0.0105, -0.043, -0.0944, -0.0365, -0.0504, -0.0532, 0.0368, -0.1038, -0.0722, 0.2389, -0.0286, 0.0787, -0.1045, 0.0, 0.0697, -0.2097, 0.094, -0.5718, 0.1079, 0.0204, -0.0634, -0.0469, -0.1143, 0.2629, -1.1057, -0.1483, -0.0231, -0.0267, -0.2733, -0.0678, -0.0334, 0.0273, 0.1919, 0.161, 0.1332, -0.018, -5.4495, -0.1275, 0.2285, 0.0951, -0.07, -0.0149, -0.1212, -5.2466, 0.0066, -0.0069, 0.8724, 0.0269, 0.0596, -0.0644, 0.3606, 0.0, 0.0165, -0.0992, 0.0202, -0.0075, -0.1565, -5.6032, -0.0422, 0.3138, -0.1502, -0.0325, -0.008, -0.0734, 0.4658, -0.0334, 0.083, 0.0152, -0.0284, -0.0166, -0.0168, -0.0908, -0.1418, -0.0199, -0.1694, -5.6595, 0.0008, 0.0744, 0.0, -0.0026, -0.0753, -0.1584, 0.5213, 0.1283, -0.0586, 0.0383, -0.1567, 0.399, 0.1787, -1.0156, 0.0445, 0.0944, -0.0473, -0.0506, 0.0288, -0.0316, 0.1232, -0.1527, -0.0527, -0.1237, -0.0171, -0.0214, -0.0833, -0.4195, -0.1306, -0.0225, 0.2599, -0.0124, -0.0273, -0.1245, 0.0048, 0.1369, -0.1455, -0.2978, 0.1491, 0.2382, 0.0, 0.3578, -0.0852, 0.0407, 0.0617, -0.0661, -0.1116, -0.0754, -0.1272, -0.1294, -0.2809, 0.0014, -0.2652, -0.2295, 0.1568, -0.3994, 0.057, 0.0601, 0.0366, 0.022, 0.0019, 0.0543, 0.0101, -0.2024, 0.0, 0.0529, 2.2177, 0.0532, -0.3336, 0.0139, -0.0093, 0.0455, -5.255, -0.9196, -0.4157, 0.046, -5.5146, 0.0205, 0.0076, 0.0207, 0.1344, -0.0902, -0.0053, -0.0226, 0.0943, 0.0732, -0.2224, -0.029, -0.0446, 0.025, 0.0458, -0.3567, 0.0639, 0.0639, 0.0576, 0.065, 0.0869, 0.0201, -0.011, -0.2551, 0.0431, 0.0607, -0.2547, 0.0404, 0.576, -0.0539, -0.1148, -0.3252, 0.0, 0.0109, -0.0172, -0.0031, -0.0191, 0.009, 0.0323, -0.0437, 0.2997, 0.0775, -0.0081, -0.2748, -0.243, -0.0277, -0.0547, -0.0106, -0.0056, 0.2439, -2.1841, -1.3958, -0.1573, -0.0023, -0.0591, -0.1387, -0.0683, -0.0283, 0.0343, -0.0972, -0.0514, 0.0767, 0.0415, -0.0562, 0.0021, -0.1764, -0.0439, -0.1299, 0.1792, 0.3651, -0.2247, 0.1244, 0.2806, -0.0173, -0.0288, 0.0269, 0.0177, 0.0249, -0.1595, -0.2913, 0.1972, -0.0375, -0.0185, -0.0312, -0.0941, -0.0227, 0.1613, 0.0726, 0.4034, 0.044, -0.0842, 2.2212, 0.1469, 0.0997, 0.1536, -0.4409, 0.0061, 0.167, -0.0309, 0.2996, -0.0475, -0.0726, -0.2024, 0.0116, 0.2677, -0.0736, 0.1196, -0.077, -0.0313, 0.0414, 0.04, 0.0154, 0.0081, -3.5383, 0.0134, -0.0178, -0.1313, -0.1091, -0.1226, 0.4883, 1.9199, 0.0, -0.1296, 0.0356, -0.8048, 0.2167, -0.0023, -0.0124, -0.149, -0.1664, -0.057, 0.0174, 0.0174, 0.318, 1.1625, 0.0569, -0.627, -0.0014, -0.1429, -0.1669, 0.0372, 0.0355, 0.0506, 0.0684, 0.0928, -0.0399, 0.1617, 0.0281, 0.1099, -0.025, 0.0, 0.0186, -0.3047, 0.3785, -0.0944, 0.5001, 0.0818, 0.0686, 0.182, -0.0869, 0.0908, 0.0354, 0.0228, 0.0165, 0.0136, -0.2096, -0.1122, -0.0476, -0.2562, -0.1476, 0.0439, 0.0577, 0.2234, -0.0801, -0.0767, 0.9331, -0.0432, -0.0428, -0.4115, 0.2287, -0.0966, -0.0216, -0.1545, -0.2155, 0.3176, 0.2136, -1.2772, -0.0664, -0.0326, 0.0002, -0.1549, -0.0454, -0.0622, 0.0202, 0.0352, -0.0268, 0.1044, -0.0006, 0.0242, 0.0186, 0.1206, 0.0606, 0.0317, -6.55, 0.0038, -0.0601, 0.3324, -0.0311, -0.1166, -0.1808, -0.0328, 0.0569, 0.0348, 0.0028, 0.0318, 0.0447, 0.0197, -0.3261, 0.0501, 0.0201, -0.0537, -0.0167, 0.0014, 0.0, 0.0132, -0.6021, 0.3249, 0.1563, -0.2555, -0.1113, 0.042, 0.0468, 0.0614, 0.0819, -0.0237, 0.0054, 0.0082, -0.0069, 0.2402, -0.0552, -0.2505, -0.049, -0.1162, -0.1565, -0.0236, 0.0786, 0.6354, -5.1271, -0.1632, 0.0373, 0.0374, -0.0229, 0.0279, 0.0997, 0.04, 0.07, 0.0037, 0.0114, 0.0451, -0.1275, 0.0, -0.0264, -0.002, -0.0508, 0.068, -0.035, 0.0, 0.0751, -0.0172, 0.2691, -0.0751, 0.037, -0.2168, -0.0664, 0.0892, 0.007, 0.1447, -0.0159, 0.0111, 0.0165, -0.0107, -0.0095, 0.0783, -0.0117, 0.038, 0.0882, -0.0665, 0.0298, -0.0506, 0.0389, -0.0147, 0.01, 0.011, -0.0778, -0.0256, -0.2434, 0.0629, 6.515, 0.0438, 0.0297, -0.1101, -0.3875, -0.1224, 0.0193, -0.1369, 0.0968, 0.2256, 0.0034, 0.0365, 0.0946, -0.0388, -0.1471, 0.001, -1.6978, -0.0534, 0.1024, 0.0765, -0.063, -0.2771, -0.0397, 0.0205, 0.0787, -0.0469, -0.173, 0.1519, 0.0343, 0.1669, 0.0, 0.0791, 0.0588, -14.0417, -0.1384, 0.0427, -0.1407, -0.1519, 0.041, 0.0196, 0.0185, 0.017, 1.0362, 0.0514, 0.0102, 0.0432, -8.381, 0.2143, -0.032, 0.1081, 0.0131, -0.0114, -0.0511, 0.0262, -0.0444, -0.1158, -0.0769, 0.0501, -0.4205, 0.0309, -0.0891, 0.0989, 0.0273, 0.0849, 0.0246, -0.0019, 0.028, 0.0456, 0.0175, 0.0059, 0.1463, 0.0244, 0.3347, -0.1881, 0.0576, 0.0949, 0.104, -0.0656, -0.0506, -0.236, 0.1073, 0.0525, -0.0427, -0.0249, 0.0178, 0.0428, -1.3303, -7.2354, -0.0403, -0.0585, -0.0013, -0.0115, 0.0, 0.0814, 0.3321, 0.0399, 0.0317, 0.0143, 0.0694, -0.0938, -0.0865, -0.2137, 0.1994, -0.0572, -0.0213, -0.2118, 0.1668, 0.0929, 0.1333, -0.09, 0.0465, 0.075, -0.1821, 0.0, -0.0161, 0.0712, -0.4844, 0.0951, -0.1362, -0.0333, 0.0184, -0.0393, 0.0357, 0.2818, -0.0188, 0.0474, 0.1577, 0.0559, -0.0057, 0.1235, 0.0199, -0.019, -0.137, 0.0, -0.3309, -0.165, -0.0569, -0.5872, 0.0293, -0.0193, 0.1211, 0.3865, -0.0048, 0.0648, 0.0575, -0.0321, 0.003, -0.2374, 0.6693, -0.0989, -0.1098, 0.0, 0.0813, 0.4526, 0.0, -0.1564, 0.2073, 0.0244, 0.1046, 0.704, -0.0538, -0.2014, -0.1504, 0.0444, -0.1296, 0.0, 0.006, 0.0247, -0.0412, -0.0433, 0.3583, -0.493, 0.0195, 0.0248, 1.4925, 0.1122, -0.2163, 0.112, 0.0353, 0.1097, -0.0118, 0.059, 0.0827, 0.0634, 4.2333, 0.1662, 0.1391, 0.0198, -1.6355, 1.0324, -0.0922, -0.108, 0.1097, 0.0488, 0.6578, 0.007, -0.0573, -0.2987, 0.0707, 0.0157, 0.0342, -0.6392, -0.0631, -0.0272, 0.0158, 1.8812, -0.1072, -0.0788, -0.0585, 0.0061, 0.0626, -0.023, -0.0205, 0.0067, -0.0516, 0.5438, 0.2401, 0.138, -0.1399, -0.0008, -0.0003, -0.4439, 0.1999, -0.3252, 0.0734, -0.0165, 0.0169, -0.4254, -0.1006, -0.1321, 0.7187, 0.0117, -0.6362, 0.0342, 0.4052, 0.2654, -0.085, 0.0169, -0.018, 0.0375, 0.1248, 0.0506, -0.0222, 0.1572, 0.0124, 0.0, 0.0416, 1.4729, -0.0166, -0.019, 0.0348, 0.0093, 0.0295, 0.6007, -0.1012, 0.0603, 0.0269, -0.0357, -0.1819, -0.0638, -0.0892, -0.0793, -0.1722, -1.7843, 0.0327, -0.0639, 0.5006, 0.2334, -0.0661, 0.1827, 0.0071, -0.0361, 0.0834, -0.073, -1.4277, 0.251, 0.0861, -0.0009, -1.5846, -0.0445, -0.0001, 0.0729, -0.104, -0.2054, -0.0303, -0.893, -0.0151, 0.0867, -0.0819, -0.0084, 0.1211, -0.3151, -0.2668, 0.2817, -0.195, 1.3323, -0.7851, 1.2588, 0.0266, 0.0483, 0.0698, 0.0789, -0.0045, 0.027, -0.103, 3.16, -0.1109, 0.2876, -0.1403, 0.0088, -0.0535, 0.0372, 0.0031, 0.1631, -0.1812, -0.2879, 0.0436, 0.0183, -0.1927, -0.0817, -0.0025, 0.0859, 0.0709, -0.0261, 0.0, 0.1618, 0.127, -0.0867, -0.0706, 0.0112, 0.1231, 0.085, 0.086, 0.1935, 0.0463, 0.0339, -0.0471, -0.2186, -0.1974, -0.1001, 0.0027, -0.4661, 0.0318, -0.102, -0.0811, -0.0158, 0.0114, -0.7375, 0.4352, -2.7635, -0.0059, -0.1148, 0.176, -0.5512, -0.107, 0.0973, -0.0051, 0.0995, 0.0659, 1.1468, -0.0011, -0.8599, -0.123, -1.3341, -0.1753, 0.0241, -0.1135, -0.0302, -0.2481, 0.027, 0.0, -0.1755, -0.0063, -0.0009, 0.0072, 0.0, -0.0172, 0.0, 0.0148, -0.0865, 0.0922, -0.3168, -0.0292, -0.0265, 0.0597, -0.0272, 0.0254, 0.1868, -0.0078, 0.0597, 0.1082, 0.0623, -0.0453, -1.0276, 0.0633, 0.355, 0.5585, 0.1423, -0.0956, 0.1285, 0.0609, 0.0375, 0.0021, -0.0522, 0.3074, 0.0638, -0.0621, 0.0534, -0.0672, -0.2635, -0.2174, -0.0261, -0.0998, -0.138, 0.0598, 0.1236, 0.0, 0.0863, 0.0262, -0.2022, -0.0709, 0.0214, -0.0806, 0.0663, 0.0, -0.1299, 0.3347, -0.0093, -0.0793, -0.0655, 0.0089, 0.0865, -0.004, -0.8788, 0.16, 0.1443, 0.1444, -0.0175, -0.1502, 0.141, -0.0208, -0.0394, -0.003, -0.0717, 0.023, 0.6055, 0.0803, 0.0673, 0.0954, -0.1905, -0.6566, -0.0626, 0.1507, -0.0885, -0.046, 0.2184, 0.0059, 0.0793, -0.0169, 0.0877, 0.1472, 0.0, 0.0, -0.0945, -0.0954, -0.1692, -0.0309, 0.0669, -0.032, -0.1231, 0.1034, 0.0249, -0.16, 0.0335, -1.0178, -0.0368, -0.0195, -0.3929, -0.6131, -0.0515, -0.0325, 0.0674, -0.6663, -0.0476, 0.0651, 0.0414, 0.1768, 0.0789, -0.1972, 0.0044, 0.0181, 2.2775, 0.0093, -0.2338, -0.0532, -0.0548, 0.0558, 0.0977, 0.0271, 0.0056, 0.013, 0.0302, 0.0448, -1.1909, 0.05, -0.0112, 0.0114, 0.0, 0.0521, 0.1026, -0.0184, -0.0313, 0.1216, -0.0523, 0.01, -0.055, -0.0762, -0.0186, -0.0586, -0.1389, -0.0149, 0.042, -0.0842, -0.0321, -0.256, -0.1967, -3.441, 0.0814, 0.0311, 0.0408, 0.0065, 0.1703, -0.091, 0.4082, 0.0476, 0.0311, -0.0714, -0.119, 0.3748, -0.507, -0.0321, -0.0391, 0.2075, 0.1111, 0.0499, 0.0161, -0.1153, -0.024, 1.2565, -0.7356, -0.0184, 0.0066, -1.5298, -0.105, -0.0416, -0.0432, 0.0706, 0.2689, -0.0894, -0.3427, -0.0407, 0.0234, -0.0032, -0.1532, -0.0177, 0.0281, -0.0629, 0.0627, -0.0549, -0.0529, -0.0364, 0.0, -0.0311, -0.0951, -0.3456, 0.0154, -0.074, -0.1199, 0.0192, -0.57, -0.032, 0.0255, -0.018, -0.0156, 0.0, -0.0259, -0.0601, 0.1637, -0.0616, -5.8171, -0.161, -0.0401, -0.0699, -0.0854, -0.0605, 0.0019, -8.581, -0.0153, 0.0005, 0.5854, -0.6522, -0.0731, 0.0245, 0.069, -1.2538, 0.0865, -0.1316, 0.0888, -15.3264, 0.0482, -0.3874, 0.0884, 0.0241, 1.951, 0.5087, 0.052, 0.0152, -0.0173, -0.036, 0.1056, -0.0154, -0.0357, -0.0084, 0.0653, -0.0494, -0.1224, -0.0645, -0.2262, 0.0682, -0.1222, -0.0998, 0.0851, 0.0, -1.4912, 0.0, 0.0482, -0.0438, -0.2522, -0.077, 0.2953, 0.0763, -0.0239, -0.0786, 0.0639, 0.0244, 0.4706, -1.4228, 0.0906, 0.0925, 0.2165, -0.029, -0.4834, 0.0233, 0.761, 0.1962, -0.1221, 0.0574, 0.3795, 0.0, 0.7293, 0.0466, 0.0733, 0.0682, 0.0845, -0.0102, 0.0083, 0.0308, 0.0639, 0.0399, 0.0238, -0.5057, -1.0497, -0.0675, -0.0787, 0.1437, 0.0498, 0.0365, -0.3336, -0.0881, 0.2074, 0.0248, 0.2386, 0.0639, 0.0189, 0.0268, 0.0476, 0.178, 0.172, 0.0984, 0.024, -0.0235, 0.0426, 0.7265, -0.1784, 0.0149, 0.0718, 0.9213, 0.0178, -2.2658, -0.0277, 0.3062, -0.7709, -0.0079, -0.0828, 0.0221, -0.0104, 0.0557, 0.0852, -1.531, 0.0792, 0.0126, -0.2888, 0.0769, -0.0506, -0.0658, -0.0055, 0.0736, -0.0301, -0.0214, -0.029, -0.1094, 0.1122, -0.051, 0.0086, 1.775, -0.0404, 0.0479, 0.0, 0.1504, 0.108, -0.0669, -0.4689, -0.0713, 0.0086, 0.0559, 0.0146, -0.2781, 0.0306, 0.042, -0.2649, -0.0103, -0.0387, 1.6321, -0.028, 0.1034, 0.6021, 0.0718, -0.982, -0.1157, -1.3825, 0.0988, 0.0273, -0.0037, 0.019, -0.1015, 0.028, 0.0063, 0.2464, 0.0944, -0.4422, -0.7372, 0.0963, 0.1943, -0.1529, -0.0269, -0.0049, -0.0246, 0.0074, 0.0041, 0.0728, 0.1913, -0.0561, -2.6533, -0.016, 0.002, 0.0283, 0.1689, -0.1493, -0.0533, -0.2446, -0.479, -0.0772, 0.0, -0.0786, -0.1011, -0.1915, -0.0075, 0.0193, -0.0673, -0.0781, -0.088, -0.0623, -0.0701, -0.0061, 0.0207, 0.0721, -0.0419, -0.4456, 0.0058, 0.0974, -0.086, 0.1125, 0.0, -0.3904, 1.1192, 0.0984, 1.1544, 0.7034, 0.028, 0.0687, 0.0045, -0.0202, -0.0332, -0.4663, 0.0056, 0.012, 0.0914, 0.0839, 0.0332, -0.0244, 0.1813, 0.0159, -0.1296, -0.0259, -0.0967, -0.0056, 0.0448, -0.0766, 0.0117, 0.0259, -0.1733, 0.09, 0.015, -0.1577, -0.111, 0.1272, 0.0232, -0.0404, 0.1047, -0.0091, 0.9706, 0.0111, 1.7316, 0.0977, 0.0383, 0.0561, -0.0305, -0.122, -0.1071, 0.0305, 0.1617, 0.0081, 0.0045, 0.0256, 0.1347, 0.0786, 0.1048, 0.0617, -0.0134, -0.2145, -0.111, 0.0296, 0.0679, 0.0, 0.0521, -0.0189, -0.0318, -0.0002, -0.2282, 0.0195, 0.0389, 0.1966, 0.0255, 0.0461, -0.0824, 0.0804, -0.0539, 0.0577, 0.0143, -18.108, -0.0151, 1.1968, 0.0192, -0.4499, 0.121, -0.1114, -0.0847, -0.1126, 0.0075, -0.9018, -0.259, -0.4739, -0.0039, -0.096, -0.1227, -0.0196, -0.0294, -0.418, 0.0018, -0.0522, -0.1495, -0.2525, 0.0188, -0.105, -0.2612, -0.0866, -0.2269, -0.1488, 0.055, -0.1889, 0.0205, 0.1715, -0.0824, 0.0511, 0.0366, 0.0287, -0.1043, -0.0455, 0.0566, -0.1189, -0.023, -1.0979, -0.6661, 0.0244, 0.0165, 0.0291, -0.0199, -0.2336, -0.1817, -0.0591, 0.0992, -0.0753, 0.1404, 0.0631, 0.1503, -0.3079, -0.2784, 0.2177, -0.031, 0.0284, 0.1295, -1.161, 0.0734, 0.0038, -0.0074, 0.0502, 0.0299, -0.2238, 0.1249, -0.0321, -0.1235, -0.1058, 0.0156, 0.0407, 0.0847, -0.0117, 1.875, 0.0428, 0.0428, -0.0082, 0.0548, -0.0183, 0.0464, 0.2165, 0.0849, 17.6879, 0.1121, 0.2636, 0.1125, 0.025, 0.0207, -0.1339, 0.1317, 0.1386, 0.0445, 0.1, -0.0194, 0.1073, 0.06, 0.0763, -0.113, 0.1096, 0.1656, 0.236, -0.4196, -0.0469, 0.0125, 0.4875, 0.0962, -0.1488, 0.0413, 0.064, 0.0245, 0.0473, 0.108, -0.0029, -0.0669, 0.0503, -0.009, 0.234, 0.0894, 0.1896, 2.5686, 0.0982, 0.0492, 0.2031, 0.1198, 0.1294, 0.0345, -0.8412, 1.7067, -0.7395, -1.4642, -1.4142, 0.0424, -0.6671, 0.0369, -0.0853, 0.0236, -0.0875, -0.0152, 0.0688, 0.0241, -0.0265, 0.1074, 0.14, -0.1254, -0.0851, -0.0063, 0.0906, 0.0621, -0.1086, 0.0, -0.187, -0.2849, 0.7248, -0.05, -0.0148, -0.0076, 0.0435, -0.1465, -0.033, 0.0003, -0.1033, -0.0655, -1.5133, 0.0285, 0.0011, 0.0123, -0.0698, 0.048, -0.0116, 0.0678, 0.0225, -0.0127, 0.0618, 0.01, -0.0513, -0.0112, -0.0142, 0.0541, -0.003, 0.0293, -0.0069, -0.2838, 0.2382, 0.0093, -0.0749, -1.6307, 0.0, -0.8208, 0.0583, -1.0239, -0.3823, -0.0064, 0.0293, 1.354, 0.0, -0.3615, 0.0114, 0.1876, -0.0133, -0.7471, 0.0269, 0.0872, 0.1307, 0.0097, 0.4995, 0.0562, -0.015, -0.0977, -0.0588, -0.8497, -7.189, -0.1029, 0.0289, -0.2575, -0.0355, -0.061, -0.0205, -0.0171, -0.0573, -0.008, -0.0654, -0.4677, 0.0, 0.0023, 0.0, -0.0188, 0.018, -0.0, 0.0718, 0.0983, 0.0877, 0.5933, 0.0063, 0.0564, -0.0206, 0.0123, -0.0861, 0.0967, 0.0976, -0.0795, -0.0649, -0.1474, 1.7152, 0.9325, -0.0413, 0.0131, 0.0254, 0.0224, 0.0192, 0.009, 0.0772, -1.2183, 0.0346, 0.1052, -0.0704, 0.0124, -0.1572, 0.1579, 0.0498, 0.0643, 0.0341, -0.0183, 0.1066, 0.1851, 0.0457, -0.0504, 0.1226, -0.2194, -1.4132, -0.1391, 0.115, 0.0537, 0.0806, -0.0076, 0.0038, 0.522, 0.0, 0.105, -0.8454, -0.6778, -0.205, -0.0073, 0.0123, -0.4836, 0.0046, -0.0908, 0.0023, 0.018, 0.1244, -0.0092, 0.0536, -0.04, 0.0031, 0.1127, 0.2779, 0.0443, 0.0014, 0.0811, -0.0529, -3.5299, 0.2379, 0.1034, 0.5593, 0.1991, -0.1088, -0.0985, -0.1005, -0.64, -0.0659, -0.0344, 0.3144, -0.1128, -0.0732, -0.1107, -0.1843, -0.1156, -0.2675, -0.0904, 0.0919, 0.0065, -0.029, -0.0072, 0.0628, 0.003, -0.5484, -0.2262, -0.1085, 0.1164, -0.6702, 0.5904, -0.0167, 0.0356, 0.3418, 0.0897, 0.0589, -0.1331, -0.1177, -0.0008, -0.0104, 0.0903, 1.3467, 0.1185, -0.1373, -2.8336, -0.207, -0.1392, -0.0427, -0.031, -0.0282, -0.0037, -0.0348, 0.0064, 0.5333, 0.0789, 0.1002, 0.0013, 0.0742, 0.0411, -0.0291, 0.3971, 0.2069, 0.0832, -0.1485, 0.4162, 0.1249, -0.0081, -0.1154, -0.2663, -0.0506, -0.0775, 0.0353, 1.3649, -0.0223, 0.086, 0.0168, 0.0514, 0.025, -0.0379, -0.1437, 0.0262, 0.0583, 0.0454, -0.0145, -0.1039, 0.1499, -0.4322, -0.1357, 0.1538, -0.1027, 0.0171, -0.0277, -0.011, 0.0982, 0.0002, 0.029, -0.1921, -0.6821, 0.1386, 0.0, 0.0463, 0.0085, 0.1182, 0.1137, 0.0522, 0.2387, -5.9595, -0.0246, -3.4533, -0.014, 0.0151, -0.0147, 0.0307, 0.0599, 1.2067, -0.2528, 0.021, 0.0391, 0.0032, -0.6367, 0.7836, 0.0793, 0.2836, -0.075, 0.0514, 0.1305, 0.0266, -0.1164, -1.0031, -0.1402, 3.6333, 0.1464, -0.0792, -0.1503, -0.0395, 0.037, -0.0423, 0.0028, -0.4786, 0.075, 0.0295, -0.1788, 0.0184, 0.2515, 0.0165, 0.0624, 0.048, 0.0144, 0.1161, 0.0613, 0.0361, -0.0537, 0.0587, -0.0198, -0.1372, -0.0364, 0.0785, 0.0169, 0.0696, 0.0858, 0.0367, 0.0013, -0.1639, -0.01, -0.125, -0.3871, 0.0647, -0.079, 0.0, 0.0898, -0.0156, -0.1164, 1.2498, -0.6705, 0.2319, -0.1377, 0.1002, -0.1061, 0.0745, 0.0629, 0.238, 0.0811, -0.2764, 0.0279, 0.0631, -0.1028, 0.0552, 0.1001, -0.0617, 0.0056, 0.1347, 0.7166, 2.0896, 0.0072, 0.0, 2.1683, 0.0619, -0.129, 0.0518, -0.5421, -0.0526, 0.0696, 0.0286, -0.0036, 0.0111, 0.0203, -0.1435, -0.0929, -0.0622, 0.0399, 0.7935, 0.0204, -0.0086, 0.0344, 0.0119, 0.1047, -9.28, 0.0104, -0.1012, -2.6386, -0.021, -0.0812, 0.2586, 0.3434, -1.0505, -0.0996, -0.0636, 0.3875, 0.0115, -0.6389, -0.0397, -0.0222, 0.0577, -0.0556, -0.0216, 0.2481, 0.0088, 0.0218, 0.0036, -0.0566, -0.0674, 0.0807, -0.1284, -0.1309, 0.1425, -0.038, 0.0555, -0.1381, 0.029, 0.0486, 0.0897, -0.0812, -0.0182, -0.0719, 0.028, 0.0673, 0.0012, -0.085, -0.1589, -0.2331, 0.0016, 0.0374, 0.1842, -0.5645, 0.0041, -0.0797, 0.0529, -0.0478, 0.0965, 0.0469, 0.0154, -0.5347, 0.1018, -0.113, -0.0395, 0.0494, -0.0062, 0.0399, -0.0419, 0.2465, 0.0812, 0.0, 1.0113, -0.1266, -0.1172, 0.0698, 0.0672, 0.3498, -0.0687, -0.085, 0.3554, 0.015, 0.0855, -0.1748, -0.1008, 0.1158, 0.0222, 0.503, 0.0403, 0.0606, 0.0093, -0.1294, -0.06, 0.0182, -0.2367, 0.5801, -0.2723, -0.072, 0.0, -0.0817, 0.1277, 1.7217, -0.0512, 0.1015, 0.0206, -0.0647, 0.0429, 0.7447, -0.3197, 1.6192, 0.0395, -0.1144, -0.0059, -0.058, -0.6281, 0.2436, 0.1582, 0.1847, 0.0368, -0.0573, 0.1115, -0.0539, 0.438, -0.122, 0.0381, 0.0398, 0.5466, 0.1952, -0.031, -0.1185, 0.0, 0.2634, 0.1081, 0.0045, -0.1429, 0.0636, -0.0862, 0.0372, 0.1256, 0.042, -0.8622, -0.1451, -0.1283, -0.1375, 0.0412, -0.0448, -0.0595, 0.2999, -0.003, -0.1187, -0.1066, -0.1338, 0.0079, -0.0955, -0.0791, -0.5737, 0.0318, -0.0431, 0.0, 0.4216, 0.0672, -0.1351, 0.4825, -0.1585, 0.0487, 0.1878, 0.2189, -0.0765, -0.2517, -0.011, -0.0041, 1.0152, -0.3199, -0.0455, -0.1122, 0.0737, 0.0184, 0.0, -0.0508, -2.617, -0.0378, 1.1871, 0.0, -0.5082, 0.0282, -0.0805, -0.1025, -0.0382, -0.1111, 0.4365, 0.0214, -0.5504, 0.0124, -0.0881, -0.1214, -0.1051, -0.0, 0.0581, -0.4473, -0.2128, -0.035, 0.0, -0.2001, -0.0755, -0.0018, -0.0243, -0.0393, -0.0981, -1.2359, -0.108, -0.0231, -1.0852, 0.0791, -0.1763, -0.0755, -0.8334, -0.123, -0.4211, -0.0631, -0.0731, 0.0, -0.0358, -0.0142, 0.0185, -0.0108, -0.1314, 0.0, -0.0122, 0.071, -0.4158, -0.1828, -2.8856, -0.024, 1.5385, 0.0464, 0.0755, -0.262, -0.0648, -0.1015, 0.0078, -0.1328, -0.0572, -0.144, -0.0056, 0.1605, 0.0159, -0.0191, -0.2048, -0.1918, -0.5367, 0.0005, -0.3322, 0.0028, 0.0907, -0.1822, -0.0542, -0.1249, -0.0895, -1.0599, -0.0389, 0.1636, -0.5767, 0.0225, -2.5861, -0.1114, 0.0737, -0.1349, 0.5377, 0.0149, -0.0184, 0.0963, -0.1418, 0.1745, -0.0503, -0.0533, -0.0195, 0.1411, -0.4689, -0.0064, -0.0684, -0.532, 0.0019, -0.0268, 0.0086, -0.1334, 0.0374, 1.6472, 0.0484, -0.0378, 1.3819, 0.0686, 0.0066, 0.0026, -6.9789, 0.0163, -0.087, -1.0333, -0.0473, 0.099, 0.2918, -0.3582, -0.8154, -0.1863, -0.0321, -3.176, -1.2093, -0.335, -0.0755, 0.0122, -0.0737, -0.0075, -0.037, 0.0236, 0.1132, 0.0584, 0.235, -2.2767, 1.1153, 0.1882, 0.016, 0.2536, -0.021, 0.0142, -0.0835, -0.017, -0.0965, -0.0239, -0.3576, -0.0832, -0.0025, 0.0296, 0.0383, -0.2052, 0.0119, -0.1327, -0.0238, -1.6089, 4.8183, -0.115, 0.0021, -0.0151, -0.2766, -0.1008, 0.3487, -0.7862, 0.1919, 0.0797, 0.6159, -0.076, -0.1418, 0.2582, 0.0, -0.0318, 0.0021, -0.0082, -0.0663, 0.0314, -0.021, -0.0636, -0.0974, -0.0623, -0.5075, -0.1342, 0.0329, -0.0079, 0.1051, 0.0239, -0.4245, -1.0652, 0.0103, -0.0263, 0.0161, -0.1274, 0.0238, -3.5237, 0.0861, 0.0436, -0.6756, -0.0339, -0.0131, 0.1296, -2.7871, -0.1038, -0.0175, 0.0609, -0.0967, -0.0591, 0.0088, -0.204, 0.3067, 0.4077, 0.0486, -0.1618, -0.1005, -0.2669, -0.0596, -0.0846, -0.0072, -0.0554, -0.1302, -0.1272, -0.0766, -0.0818, -0.2015, -0.2096, 0.0634, 0.0219, 0.0155, 0.002, 0.1642, 0.0119, -0.0349, 0.0622, -0.0206, 0.3394, -0.2505, -0.1633, -0.1595, 0.548, 0.1338, -0.1515, 0.1364, -0.3358, 0.0948, 0.0, 0.0192, -0.2762, 0.0799, 0.0401, -0.1716, -0.1399, 0.2555, 0.0371, -0.1756, 0.0609, -0.1054, -0.0909, 0.2265, -0.081, -0.2061, 0.0251, -0.7379, 0.0941, -0.2415, -0.0519, -0.9062, -2.4832, 0.0578, -0.1699, 0.0269, -0.139, -0.0877, 0.0459, -1.226, 0.015, -0.1834, -0.0467, 0.087, -0.0019, -0.2395, -0.1203, -0.4591, -0.2971, 0.0839, -0.1616, 0.0199, 1.5875, -0.0357, -0.0974, -0.0562, -0.0302, -0.042, 0.1667, -0.2091, -0.1032, -0.5302, -0.1955, 0.0062, -0.0539, 0.0476, -0.4843, 0.1309, -0.1079, -0.0037, 0.0049, -3.4472, 0.0125, -0.0059, 0.0024, -0.1517, -0.1509, 0.0231, 0.0137, 0.1759, -0.0962, -0.7537, -0.1138, 0.0932, 0.0053, -0.0671, -0.0793, -0.0595, 0.0, -0.055, -0.0732, -0.5712, -0.0989, -0.0141, -2.7283, -0.0149, 0.0264, 0.025, 0.0593, 0.0334, -0.33, 0.5589, -0.495, 0.0725, 0.0164, 0.1227, 0.2199, 0.0744, -0.0102, 0.0275, 0.3744, -0.0688, -0.0223, -0.8533, 0.0479, 0.0062, 0.1087, 0.0134, -0.0894, 0.0586, -0.0101, -0.0433, 0.0015, -0.5945, 0.1613, -0.0824, 1.2202, -0.164, -0.0645, -0.1737, -0.0934, 0.0838, -0.03, -0.3276, -0.1109, -0.3885, -0.111, -0.0322, 0.0, 0.0817, 0.4736, 0.0354, 0.0045, -0.0672, 0.0554, -2.8946, 0.0465, 0.0112, 0.0278, 0.0042, -1.4863, 0.0325, 0.0132, 0.0232, -0.0949, -0.3393, -0.2744, 0.0419, -0.7747, -0.0373, -0.1547, -0.0196, -0.0708, 0.0732, 0.0195, 0.1544, 0.0338, -0.0452, 0.3939, 0.014, -2.0043, 0.2632, -0.1123, 0.0732, -0.0884, -0.1021, 0.0176, 0.0092, -0.9355, -0.0237, -0.1383, -0.0589, 0.0214, -0.05, 0.3856, -0.1002, -0.3773, -0.0788, -0.1275, 5.1831, -0.0388, 0.043, -0.0629, -0.0124, -0.0311, -0.0773, -0.1972, -0.0552, 0.0145, -0.0831, -0.1791, -0.0675, -0.1188, 0.0404, -1.14, -0.0392, -0.38, -0.0302, -0.0755, -0.3188, -0.0795, -0.0641, -0.1932, 0.0059, -0.1546, -0.0074, -0.151, 0.1097, -0.1035, 0.0457, -0.0573, 0.3344, -0.292, 0.0644, 0.0049, -0.1825, -0.0677, -0.0973, 0.1051, -0.1515, 0.0125, 0.0858, -0.3054, 0.0502, 0.8694, 0.2958, -0.0133, 0.0432, 0.007, 0.1006, -0.0091, -0.0228, -0.004, -0.016, -0.0386, 0.0, 0.0741, -0.0216, 0.0265, -0.1609, -0.0354, 1.6518, -0.001, -0.1117, -0.1082, -0.2737, -0.3158, 0.0569, 0.0057, 0.0654, 0.0539, -0.0427, -0.0384, -0.5063, 0.0398, 1.0364, 0.054, 0.0579, 0.0241, -0.0906, 0.0197, 0.0018, -0.835, 0.0, -0.0107, 0.0204, -0.2783, 0.0322, 0.0017, -0.0376, -0.0739, -0.2655, 0.9733, -3.2275, -0.1027, -0.0474, 0.0294, 0.0428, -0.2463, 0.0, -0.1278, -0.0751, 0.0, -0.0485, 0.0844, 0.1065, 0.0419, 0.0482, -0.4694, -0.0166, -0.0264, -0.1503, -0.1505, 0.0261, -0.1305, -0.1432, 0.0943, -0.0561, -0.0094, 0.0288, 0.7145, 0.0255, -0.1004, -0.2042, -0.2358, -0.1537, -0.5836, -0.3294, 0.1808, -0.1038, -0.078, 0.0113, -0.156, 0.0131, 0.3566, 0.0227, -0.6733, 0.0415, 0.1486, 0.0294, 0.0446, 0.146, 0.0386, 0.0812, -1.1053, 0.0472, -0.0923, -0.1279, -0.0171, -0.1228, 0.0509, 0.2113, -0.0586, 0.0208, 0.141, 0.0, 0.1323, -0.1993, -0.0343, 0.0501, -0.0537, -0.0084, -0.0453, -0.0028, -0.0686, 0.8141, -0.0084, -0.0524, 0.0181, 0.1308, 0.2678, 0.1588, 0.0272, 0.0006, 0.1166, 0.3275, 0.1062, 0.0546, 0.1245, 0.1207, 0.205, 0.0528, 0.0453, 0.0386, 0.0425, 0.1724, 0.0516, 0.0406, 0.1153, -0.0233, 0.1099, 0.0714, 0.0191, -0.0281, 0.0087, 0.0775, -0.2018, -0.2706, 0.0012, 0.0217, -0.1158, -0.0388, -0.6817, 0.0105, -0.0474, 0.0309, -0.0976, -0.315, 0.1911, -0.138, 0.0887, 0.0911, 0.0139, 0.0851, -0.1101, 0.2175, 0.0223, 0.1, 0.1682, -3.7319, 0.0128, 0.0101, 0.0163, 0.0422, 0.0041, 0.1153, 0.0018, -0.0226, 0.0506, 0.2279, 0.0052, 0.1066, 0.0206, 0.1284, -0.035, -0.356, 0.1553, -0.0964, -0.8212, -0.0137, 0.0318, 0.1148, 0.0316, 0.0961, 0.0466, -0.1662, -0.0245, 2.5011, -0.9734, -0.0935, -0.0876, 0.0883, 0.0004, -0.1121, -0.3296, -0.273, 0.113, 0.6902, 0.8622, -0.0477, -0.1317, -0.0317, 0.0192, 0.0355, -0.0026, 0.0076, -0.0874, -0.0507, 0.2708, -0.5405, -0.0761, 0.0752, 0.0416, 0.0255, 0.1246, 0.0189, 0.055, 0.0943, -0.8529, 0.1598, 0.0137, 0.0357, -0.3308, -0.0979, 0.6365, -0.0004, 1.1469, -0.3704, 0.1492, 0.0622, 0.0948, 0.0534, 0.0927, 0.0605, -0.2241, 0.0591, 0.0036, 0.0435, 0.0035, -0.0231, 0.0902, -0.0696, 0.1567, 0.0317, 1.6093, 0.1032, 0.1814, 0.0463, 0.5213, -0.012, -0.1673, 0.0, 0.1727, -0.574, -0.0124, -0.0013, 0.034, -0.0276, -0.0533, 0.0823, -0.1963, -0.0494, 0.0965, 0.0267, 0.1163, 0.0913, 0.104, 0.1048, 0.0164, 0.0291, 0.0096, 0.027, -0.2161, 0.0596, 0.1191, 0.0147, 0.1834, 0.0139, -0.0849, -2.5135, 0.1269, 0.1261, 0.2431, 0.0375, -0.0021, 0.0164, -0.2899, 0.0723, 0.1255, 0.0, 0.2941, 0.1527, 0.2918, 0.4491, -0.0356, 0.0134, 0.1722, 0.0024, -0.0123, -0.0075, 0.222, -0.0939, 0.282, -0.5392, -0.0447, 0.0628, 0.3338, 0.0574, 0.0122, 0.0, 0.0822, 0.0066, -0.0617, 0.0553, -0.1308, -0.0851, 0.6281, -0.6919, -0.0164, 0.008, -0.5017, -0.0423, -0.0132, -0.0231, 0.0042, 0.0096, 0.1666, 0.0017, 0.0227, -0.1096, -0.0262, -2.0379, 0.1089, 0.079, 0.0156, 0.0281, -0.0012, -0.1447, 0.0817, 0.1133, 0.0961, 0.0468, 0.1306, 0.0251, 0.0736, -0.002, 0.0916, 0.01, 0.0264, 0.0756, 0.0778, 0.0325, 0.0074, 0.0342, -0.0033, 0.0, 0.0865, 0.1936, -0.0863, 0.0561, -0.1742, 0.0049, 0.0468, 0.0868, 1.0683, 0.1249, 0.3829, -1.4678, -0.2295, 0.0957, -0.0442, 0.0031, 0.0097, -0.0335, 0.0099, -0.0094, 0.0793, 0.0377, -0.0334, -0.6186, -0.6613, 0.064, 0.0818, -0.0015, -0.0468, 0.0036, 0.0286, 0.0573, -0.0451, -4.3624, -0.0096, -0.1403, -0.0118, 0.077, 0.9925, 0.5239, 0.0762]}, {&quot;coloraxis&quot;: &quot;coloraxis&quot;, &quot;histfunc&quot;: &quot;avg&quot;, &quot;hovertemplate&quot;: &quot;Period=2010-2020&lt;br&gt;LONGITUDE=%{x}&lt;br&gt;LATITUDE=%{y}&lt;br&gt;avg of ESTIMATED YEAR INCREASE (C)=%{z}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;name&quot;: &quot;&quot;, &quot;nbinsx&quot;: 72, &quot;nbinsy&quot;: 36, &quot;type&quot;: &quot;histogram2d&quot;, &quot;x&quot;: [-121.2167, -121.4, -112.1081, -120.6475, 3.8103, 6.095, 6.025, -52.85, 48.228, 116.0, 114.95, 91.32, 144.283, 1.832, -122.3667, 20.85, -112.9667, -88.5214, -98.4131, -123.8292, -99.1297, -112.8253, -101.8581, -123.1, -4.567, 42.657, -3.93, -3.926, -97.2128, -99.7475, -99.6822, -81.9647, -106.4278, 18.82, 9.2903, 43.25, 18.92, 131.4, 54.47, 54.651, 33.317, 34.133, -99.0631, -68.2592, -110.3167, -89.833, -99.933, -40.14, -0.2, 90.5, 68.9, 110.375, 27.85, -98.0233, -118.2, -101.2519, -96.685, -96.5161, -176.65, 57.367, 35.4, 35.34, 30.417, -96.6692, -127.8667, -87.1814, -77.2344, 38.8, 38.7, 38.75, -119.8961, 138.5204, 138.6216, 138.6331, 138.5869, 17.52, -83.4269, -3.3, -120.7667, 38.283, -66.7978, 39.9, 14.457, -0.28, -84.0158, -59.367, -84.0794, -58.416, -89.65, -54.833, -89.0644, -110.9297, 30.601, 7.967, 56.75, 56.8, 91.25, -121.7667, -121.7667, -95.87, -95.9817, 93.47, -103.7347, -103.7358, 20.17, 114.52, 94.883, -124.0578, 43.05, -102.3, -37.9, -112.2667, -113.1875, -66.2222, 138.4, 6.95, 72.633, 24.017, 24.2206, 48.762, -66.2642, 14.13, 127.45, 138.233, -41.067, 24.367, -99.8556, 3.533, -0.6, -9.63, 144.0883, -93.6675, -159.7667, 34.07, 138.15, 139.1, 27.85, 47.7294, 140.1, 58.183, -14.38, 70.95, 54.117, 77.033, 77.067, 78.45, -6.667, -103.1417, -81.4333, -81.4642, -103.2167, 32.967, 113.267, 54.2, 20.767, 57.15, 130.199, -18.0794, 64.333, 55.6, -86.7817, 122.02, -38.42, 24.2642, -105.8833, -105.8614, -105.8614, -89.1175, -113.5778, 81.05, 46.583, -1.8631, -1.8606, 117.8808, -99.3011, -73.7472, -84.1489, 117.8022, -73.8092, -84.1944, -80.1994, -124.9833, -88.4811, -114.4781, -111.1833, -93.3019, -92.7867, -98.0083, -104.2647, -78.1664, 150.79, -111.95, 8.9792, -106.6167, -106.4878, -106.6156, -106.6939, 146.9509, -106.0567, -141.4667, -73.9267, 125.0331, -6.216, 13.0519, -80.6592, -112.0856, -123.5903, -117.495, -122.7236, -90.7417, 82.767, 117.933, 77.8667, 142.1667, 48.55, 0.117, 37.22, 37.2167, -62.3333, -85.9481, -92.4611, -97.7847, -92.4489, -92.2956, 29.949, -95.3942, 25.93, 9.8, -76.205, 7.9128, -73.25, -77.7583, -69.943, 51.85, 76.867, 3.25, 3.1, -82.5436, -94.3053, -78.2667, -0.558, -0.5, -0.4942, -0.5706, -88.155, -0.8481, -98.0247, 133.889, -91.0547, 21.2, 26.883, -119.9933, -69.025, 81.735, 81.9, -84.8744, -84.73, -78.7497, -79.1025, -81.3167, -75.4492, -93.3697, -102.8967, -111.7833, -102.8, -115.5181, -92.8022, -119.5944, -62.6, -84.6492, 19.13, 76.9331, -82.5067, -91.9194, 14.67, -2.4544, -2.3567, -72.926, -101.505, 13.08, 124.567, -83.5644, -83.4281, -103.66, -116.7775, -109.1469, -111.7708, -150.9283, -103.7808, -109.1222, -116.7392, -85.3803, -121.7, -123.7533, 9.3467, 153.4556, -111.6369, 96.25, 68.967, -52.2, -110.2878, -111.833, -111.7, 88.083, -111.0339, -56.1, 23.3581, 8.6331, -108.3794, 11.3131, -112.4819, -90.1642, -91.3045, -90.1464, -78.3694, -78.4667, -78.3203, -67.4, -83.5161, -120.5644, -99.3381, -98.9761, -99.2667, -99.2964, -99.3344, 27.033, -92.8417, -98.7094, 147.4833, 14.04, 14.04, -95.2336, -77.9261, -97.7164, 21.07, 20.99, -3.5539, 136.4198, -149.1108, 8.1167, 49.485, 55.609, 41.634, 44.117, -3.85, 40.1, 39.7, 128.883, -116.4619, -101.7089, -88.4539, 43.833, 76.767, 152.7111, -150.5033, -157.85, -4.08, 128.17, 128.083, -94.1664, 43.133, 61.7, -77.9781, 12.2939, -112.8036, -92.3631, -93.5656, -93.7742, -93.6217, -89.2122, 131.983, -72.5375, -83.1, 32.9167, -22.949, -103.1819, -101.0286, -90.525, -94.36, 35.9833, 16.46, 16.4308, 116.07, -67.4333, 74.797, -112.9569, -122.6136, -98.1989, 177.5667, -117.8425, -94.6342, -94.4383, -91.2933, 37.3, -149.905, -149.9847, -150.0278, -149.9664, -149.855, -149.7561, -149.7169, 125.317, -86.5225, -86.3939, 137.1692, 16.1199, -82.6606, -87.2747, -94.4853, -82.7097, -149.3397, -108.9408, -85.7164, 72.333, 128.72, -93.2928, -97.9064, -74.7367, 16.1497, -112.2333, -102.5517, -79.5672, -112.2833, -83.125, 169.767, -7.66, 12.083, -78.0231, -146.228, -105.2853, 13.9931, -75.55, -111.9608, -95.4592, -95.4619, -84.9897, -134.5864, -63.98, -122.4406, 11.517, -159.5333, -108.7689, 125.65, 109.03, 32.883, 32.68, -93.5822, 40.417, 7.809, -76.4667, -89.2344, -131.5786, -134.1003, -85.8556, -83.7444, -83.6933, -83.7108, 117.05, -99.8258, -99.89, -81.1178, 30.8, 47.5, 47.483, -120.7533, -116.7644, -112.5417, -118.4164, -108.5306, -105.8919, -98.0283, 1.103, -89.1128, -89.15, -121.7525, 76.9, -95.615, -95.7006, -70.45, -70.4, -64.13, -76.716, 49.3, 133.067, -111.3836, 114.4, 49.467, -116.673, 68.867, 11.1825, 140.767, -98.2922, -111.4814, -85.0206, -85.0333, 121.633, -78.8369, -171.781, -37.81, 151.9533, -88.4378, -76.1167, -121.2811, -94.0281, -82.3389, -78.8275, 169.67, 35.0167, -112.2711, 21.35, 44.2, -113.0217, 49.4, 49.847, 61.6694, -96.75, -96.8047, 102.583, -102.1614, 41.138, 142.9811, -46.933, -89.4286, -97.0833, -122.8333, -119.25, -81.8739, -124.1086, 6.1958, -81.3508, 153.0078, -98.6117, -109.6192, -113.2989, -77.9822, -113.5561, -113.3872, -85.0167, 48.283, -97.0858, -97.2014, -4.1108, -66.7525, -71.567, -71.6, 11.85, 13.16, -54.0, -96.8253, 128.4517, 40.7331, 130.0831, -70.333, -70.3, -111.6917, 17.8431, 142.333, -93.0589, 66.833, -91.3444, 139.3357, 13.4367, 17.95, -120.2064, -97.1703, -97.0939, -97.0736, -89.3269, 134.6849, -6.65, 41.1167, -108.8694, 151.6158, 151.6697, -97.7078, -88.9, -85.1736, -99.9031, 9.9306, 171.5544, -100.1839, 9.9125, -67.7167, -105.75, -115.9236, -98.8667, -120.3919, -121.4917, 37.983, 93.435, 11.3, -104.3836, -71.95, -101.6914, -115.1853, -96.1542, -70.786, -67.928, 41.817, 30.917, -74.6167, 102.783, -94.0667, -94.0667, 19.27, 12.59, 12.64, 119.933, 43.783, -0.267, 10.782, 142.367, 12.15, -63.1, 17.37, 17.32, -71.9158, -71.9358, -79.8378, -82.5567, -82.5567, -82.6142, -82.5375, 58.3331, -93.1164, -99.7633, -77.4833, -82.6131, -122.7144, -90.9161, -85.7789, -77.4344, -90.9189, -96.3811, -99.3742, -80.6958, -111.2739, -121.9794, -93.5911, -118.8253, -120.6861, 25.5, 25.5231, 25.5456, 33.9, 10.4367, -1.17, 56.583, 38.917, 131.067, -106.8381, -106.8683, -100.2333, 14.19, 43.25, -75.2128, -75.2014, -112.5556, -105.95, 32.7831, 71.3667, 48.9, -96.5319, -123.8825, 132.067, 48.05, -6.0442, -57.63, 31.1, 1.12, -13.067, 33.967, 68.3667, -113.5333, -113.3833, 33.4, -95.83, -86.9508, -84.5833, -82.0964, -83.3275, -95.7661, 23.7333, 23.7167, 18.317, -91.6333, -99.0303, -94.1661, -84.5658, -84.1625, -84.5214, -92.5206, -84.3, -84.3022, -115.2333, -95.0039, -76.7381, -74.4242, -74.5672, -111.0, -133.7, -87.4389, -112.8333, -96.14, 14.37, -87.1964, -96.2597, -101.0422, 51.9167, -119.5128, -121.0839, -76.5447, -95.7469, -85.4653, -4.5658, 174.8, -94.9222, 12.7156, 10.8, 10.9431, -112.3964, -81.9633, -82.0386, -91.1358, -69.7972, -91.1342, -107.6211, -134.645, -119.9833, 70.3, 75.4, -88.3092, -147.7217, -76.7764, -104.75, -76.6592, -122.7686, -112.2656, -117.0675, -98.0847, -118.4914, -97.6983, -97.68, -97.7603, -97.7664, -117.0814, -98.0281, -92.9739, -73.7333, 3.169, 3.55, 144.4783, -118.4158, -92.8514, -92.65, -43.41, -115.9203, 16.17, -3.833, -4.68, -4.6992, -75.7861, -81.5267, 5.9417, 14.57, 27.85, 147.3758, -108.0006, -59.883, -114.0167, -8.4192, -8.3719, 35.9, 27.817, -91.9533, 14.5, 127.381, 52.65, 105.85, -44.76, 26.9167, -65.4667, -99.9, 78.567, -123.1422, -75.9333, -75.9114, -77.7219, -6.8292, 40.98, -60.75, 8.2467, 13.1333, 150.7281, -56.0667, -120.4, -113.0167, -106.5008, -113.9497, 115.5394, -94.7258, 7.0853, -82.9939, 11.2817, 8.1939, 7.6981, 15.9, 10.5714, 9.717, 13.63, 10.083, 11.0817, 10.4467, 7.8725, 8.8394, 11.6333, 7.967, 14.7006, 8.7656, 9.5, 12.8756, 8.75, 12.2753, 80.767, -113.1744, 113.58, -54.1, -107.6578, -71.0, 120.62, 120.6, 28.9, -62.167, -81.2761, -58.167, 57.317, 50.65, 23.5, -68.2, -68.15, -68.2, -105.4767, -96.1833, -105.3394, 110.433, -87.0878, -75.45, -84.6175, 90.017, 147.5669, 106.6, 91.467, -72.7394, 75.7, 105.53, 19.0167, 96.3667, 62.1831, 76.267, 82.07, -116.0628, -104.2822, -102.3008, -119.0508, -119.0542, -73.0086, -114.2089, -111.4, -117.8086, -114.2175, -96.0833, -96.0, -104.25, -103.425, 57.417, 103.07, 43.15, 86.933, -58.3, -119.0883, -98.0389, -13.05, -99.3, -85.8506, -79.3167, -92.3906, -85.8506, -109.5167, -124.0333, -118.4042, -107.85, -120.6972, 7.53, 127.9867, 86.33, 75.0831, 19.785, 27.926, 68.75, 123.8653, -108.1439, 143.7911, -117.2167, -124.1667, 141.8114, 153.5585, -99.9764, -7.31, -6.1534, -8.1789, -72.7836, -71.7, -103.7403, 143.561, 19.9, -76.6833, 9.52, 58.35, 20.67, -81.0306, 10.9217, 24.983, 21.0331, -77.8833, 56.378, 54.8333, 27.97, -124.4019, -115.5667, -115.5667, -115.55, -115.45, 77.583, 77.633, 22.83, 100.567, -121.3861, -68.8186, 18.57, 18.9, 18.519, 100.617, 17.217, -16.652, -16.6333, -87.3622, -87.3572, 150.9864, -81.8742, -115.2333, 114.383, 115.57, 132.18, 99.22, 19.1, 78.3667, -89.7269, -71.1, 149.8117, 26.0, -39.3, 4.017, -83.8819, 145.2883, 2.1253, 2.0697, -62.92, -85.3847, 18.5403, -96.6369, 79.4, 14.3, 109.6331, 109.53, -70.221, -121.4819, 90.367, 16.78, 12.85, 102.233, 17.88, -121.5167, -113.1333, -159.7833, 27.65, -122.7022, -69.1467, 83.5167, -120.2169, -91.5, -101.1578, -81.2422, -112.3, -113.2167, -69.359, -43.16, 150.6096, -79.1, -45.267, -45.0, -119.9389, -86.1247, -72.0275, -72.5794, -114.45, -79.55, -88.1639, -156.6111, -60.25, 115.4056, -156.7814, 78.417, 69.517, 9.4306, -117.0219, -116.7858, -143.6333, 12.733, -96.0117, -96.0261, -98.5494, -41.302, -81.8433, -79.7714, 13.617, 106.067, 94.4, 113.283, -93.9667, 69.717, 121.98, 121.967, 7.5831, -59.683, 164.1, -34.617, -56.683, -110.4333, -56.983, -58.633, -56.717, -44.733, -67.133, -108.035, -112.5167, -118.9792, -112.4667, -5.515, 8.72, -91.9144, -97.2564, -64.8333, 129.483, 104.117, 99.1, -78.1692, 9.8, 131.0252, -106.3167, 150.1872, -89.9806, -91.7811, -91.6386, -91.7944, -106.3775, -77.3478, -69.8564, -65.75, 149.5559, 149.654, -108.0167, -16.7, 41.117, 6.183, 6.3167, -91.2069, -91.1469, -119.5083, -94.8981, -85.2667, -85.2511, -122.5286, -107.2667, -116.8917, 41.6, -94.5869, -94.6, -94.6172, -49.117, 24.217, 122.617, -82.3756, -82.3878, -83.3303, 98.083, 84.15, 112.367, 100.683, 104.5, 112.117, -79.3683, -76.8161, -115.2167, 90.53, -94.9908, -116.5594, -95.975, -55.8, -87.7853, -94.0475, -109.6333, -116.7583, -112.9833, -121.4333, -89.3783, -115.55, -109.5667, -107.5167, -116.15, -113.9333, -115.45, -101.4767, -120.3133, -76.4983, -105.65, -111.3922, -104.4275, -86.0508, -116.0833, -118.0517, -104.035, -107.0, -110.8292, -116.9667, -107.0667, -96.75, -79.4, -83.7161, -70.7833, -80.7167, -76.6606, -76.9314, -116.95, -88.9186, -94.2928, -71.2, -71.1667, 4.95, -100.5308, -119.4, -120.325, -112.4814, -99.8278, -106.5167, -111.35, -140.8667, -113.9422, -88.8478, -111.55, -111.0667, -131.4683, -109.2, -62.3333, -114.1833, -121.25, -118.2167, -146.5167, -2.27, -111.0461, -111.0467, -81.1231, -81.1939, 17.9164, -94.7244, -110.9075, -86.5708, -0.483, -71.2894, 139.4714, -107.3167, -81.8736, -91.0561, 152.9619, 8.9689, 34.783, 34.633, -97.7061, 149.8191, 78.47, 105.867, 109.1, 116.283, 116.5, 34.9, -113.35, 3.1239, -7.8667, 5.0, 5.1, 21.1333, 74.817, 27.95, -72.3483, -99.7508, -48.467, -68.9892, 74.617, -87.8547, 20.2831, 20.4667, -76.5847, -79.9331, -122.0386, 150.9291, -58.92, -126.6, -57.583, -83.7747, 1.179, -111.8214, -97.6375, -77.4, -89.8467, -90.423, -95.9167, -103.8511, -103.9339, -86.8819, -92.2764, -122.5114, -122.5372, -58.883, -96.2167, -82.9178, -117.5917, 8.17, -10.0, 30.1, 128.467, -98.1125, -89.0311, 37.783, -43.9333, -43.917, -54.95, -76.9314, -75.0836, 32.95, 70.0294, -90.4919, -8.0, -94.9281, -98.4161, -97.4439, -112.9, 117.8603, -121.285, 144.3266, 7.5892, -121.2103, -121.5683, 117.367, 20.27, 102.2, -75.294, -2.167, -6.4, -1.35, 1.4, -70.033, -101.5325, -4.9858, -79.6822, -73.2469, 4.9353, -95.6167, -110.2403, -149.1542, -150.9858, -91.1125, -92.6006, -76.3422, -93.6619, -71.9486, -118.4778, -86.4267, -51.51, -82.5967, 14.017, 123.783, -120.9336, 34.887, -122.0797, -122.17, -111.95, -111.9167, -116.475, -116.5875, 15.78, -84.2908, -97.0333, -97.0167, 24.95, 28.983, 65.05, 14.69, 9.7, 12.7889, 9.933, 5.2264, 5.3331, -89.5475, 179.32, -143.2833, -122.2606, 4.9789, 29.0344, -71.1853, 13.5039, 13.3017, 13.7328, -71.1786, 13.4039, -88.9411, -111.385, 7.4167, -106.8325, 11.7114, -84.93, -85.6572, 7.0681, 7.4639, -114.65, -105.7833, -65.0667, 14.7475, 6.683, -64.7333, 5.98, -87.0078, -99.0583, -100.3108, -110.5411, -94.0269, -161.8292, 28.336, -71.6575, -86.3239, -151.5089, 34.7994, -118.1522, -86.1311, 116.9247, -70.8372, -118.4122, -70.9175, -81.6283, 49.4, 77.35, 85.833, 69.667, 99.0167, 136.117, 136.1, 23.167, 0.307, -1.53, 148.3036, -108.4, -120.3006, 116.1364, -116.63, -105.4855, 121.7803, 19.0, -92.9433, -89.4692, 5.4489, -123.35, -114.0331, -116.3333, -107.8886, -77.2578, -123.2078, -123.2333, -87.7503, -116.9169, -115.7167, -103.9583, -89.9333, -119.2419, -117.1167, -115.8, -80.9958, -145.7214, -93.7994, -90.9592, -112.35, -93.9983, -107.2, -123.6358, -95.4728, -107.0089, -106.2006, -109.2783, -101.4625, -119.95, -78.4356, -74.8667, -85.3625, -117.6919, -110.1253, -110.1075, -117.0131, -85.4822, -122.85, -152.297, -122.57, -88.0908, -110.0608, -82.6333, -109.2667, -105.8167, -111.3242, -84.6542, -101.4536, -102.1467, -91.0181, -82.7711, -121.785, -121.7803, -109.9503, -89.9, -89.8667, -89.9, -112.8, -111.6639, 15.8606, 105.233, 84.95, 73.3, 134.267, 30.117, -2.8, -2.9056, 13.6, -122.2833, -97.4472, -118.2333, -93.575, -108.5422, -108.5706, -108.4811, -106.7319, 12.917, -88.9167, 97.705, -75.985, -106.3494, 40.5, 113.033, 113.0, -144.3636, -72.1233, 139.3472, -38.05, -98.6289, 59.266, -86.745, 5.25, 132.95, -7.8764, 55.533, 10.0492, 24.7667, -11.617, -109.9289, 58.85, 42.621, 74.58, -97.8031, -80.2392, -118.3581, 5.72, -100.7603, -100.8, -100.7969, -100.7592, -102.465, -99.235, -107.35, -15.654, -114.0, 24.5, 11.48, 21.37, -108.5086, -104.4042, 125.183, 15.7, 9.8, 18.2667, 18.27, 19.0167, 10.6864, 16.5797, 21.5792, 145.4306, -94.5175, -112.3531, -112.4369, -3.03, -118.2603, -80.4133, -78.8333, -110.5622, -81.3278, -109.8, -76.0, -97.2764, -97.2544, -111.1167, -107.6869, -107.6872, -112.2394, -89.0342, -121.8844, -111.5833, -104.8017, -109.9506, -124.1031, -105.2842, -107.7375, -113.4333, 132.143, -90.835, -109.7517, -112.9539, -113.7567, -121.8133, 66.967, 1.3781, 127.5, -122.7928, -83.9444, 23.933, -84.5553, -93.1947, -105.5717, -97.67, -136.7667, -98.4286, -57.1833, -81.1161, -109.4847, 7.3056, -121.8667, -85.2733, -120.6833, -110.6, -83.8706, -71.5667, 4.55, 26.3, 12.08, -113.5, -113.05, -91.4864, -92.4394, -107.9603, -104.895, -85.9625, -89.0864, -86.5214, -86.6167, -84.9886, -81.2264, -81.2078, -80.8831, -119.1217, -120.7103, -117.9336, -120.3375, -115.5444, -71.1136, -119.9167, -76.0275, -107.1678, -118.5, -93.6506, -106.7792, -123.1875, -121.7189, -111.1922, -119.2833, -119.2833, -119.2833, -109.5575, -85.1547, -106.9456, -114.5972, -89.9044, -89.8308, -114.7142, -120.5792, -119.6933, -119.2778, -120.6833, -128.5167, -40.27, -60.65, -60.7, -4.331, 29.183, 32.15, -120.0936, 7.2706, -123.0747, 21.64, -119.0142, 14.4667, 14.3589, -110.1, 14.367, -98.7353, -121.0831, -101.3833, -0.6758, 37.35, 140.47, 106.933, 106.75, -74.15, 89.583, 89.367, 97.45, 40.567, -116.1, 2.067, 13.9, 11.3681, 35.533, -116.2022, -116.2406, -102.4806, -116.0542, 10.683, 57.308, 41.833, 15.82, 72.667, -15.483, -93.3911, -61.067, -88.9892, 14.05, 147.4803, 44.55, 11.3458, 34.1, 84.4, 93.133, 74.633, 156.3, 105.42, 108.58, 56.021, 137.53, 11.2, 31.6, -23.25, 11.33, 149.2336, 149.2379, 72.8167, 72.85, 128.8667, -45.36, -50.43, -43.417, -44.11, -114.5667, -64.067, -53.1167, -2.783, -110.4358, -107.5833, -96.1661, -107.8989, -130.6333, -130.6333, -97.6528, -71.0167, -116.3103, -116.3361, -82.1167, -94.8958, -121.9519, -102.1192, 7.2, -72.2667, -67.5833, -87.8125, -93.8906, -88.5622, -83.7706, -93.9258, -93.895, -81.6442, -74.3961, -87.2736, -75.3697, -123.3486, -114.7167, -89.4075, -154.565, 90.0167, 12.95, -151.75, -0.7, -63.02, -79.9167, 0.95, 4.767, -101.4542, -101.395, -67.1294, 28.5, 6.6728, 15.43, 15.5078, 14.76, -2.92, -2.933, -116.4036, 136.3041, 13.85, 30.967, 116.5167, -90.6775, -1.75, 106.5, -106.8908, 17.43, 17.4, 17.63, -114.1833, -78.0981, -71.0667, -71.0106, -87.453, 24.833, 26.67, -100.4525, -5.03, 15.633, 7.717, -7.5, 3.883, -111.42, -105.2667, -112.1136, -105.5408, -122.0031, -111.3, -109.6903, 139.9039, -1.6, 1.6, -117.3544, -111.8903, 2.3667, 6.77, 145.9521, -118.2, -1.843, -114.0242, -14.68, 1.463, 4.206, 148.2152, -2.905, -109.4917, -97.8472, -96.6311, -91.1711, -86.2325, -86.4239, -83.6111, -103.4061, -118.45, 150.4019, -111.45, -111.3833, -115.0667, 115.767, -110.25, -112.0167, -92.7164, -107.7089, -84.9139, -108.1633, -102.2564, -111.155, -111.1608, -111.0453, -116.69, -100.4144, -100.4519, -111.9333, -82.5014, -1.7723, -85.1517, -78.7144, -78.6403, -120.8031, 130.8092, -105.9483, -99.3492, -3.3958, -46.9333, -6.7331, 30.3, 149.7835, -94.2086, -94.1308, -94.1272, 17.7397, 7.9731, -53.9667, -120.0833, -106.2314, -86.1161, -99.95, -93.1969, -80.2333, -104.3828, -74.2453, -47.933, -47.933, -83.71, -69.812, 7.86, 17.2, 129.333, 101.75, -104.7167, 12.88, 10.6, 10.556, -103.0072, -110.3517, -118.8803, -122.5942, -95.2917, 15.25, -82.2928, -98.9017, -97.6939, 15.27, -105.2992, 60.35, 9.73, 8.7992, 8.583, -122.6828, 9.167, -78.2886, -83.7397, -96.3972, -113.2167, -86.7786, -119.7669, 23.6831, -114.4833, -114.4333, -82.7358, -50.48, -64.15, 146.8651, -101.4467, -87.0486, -87.0517, -87.055, 21.98, -134.14, -72.3069, -97.7761, -119.2286, -87.7547, -103.1039, -103.3678, -119.2892, -85.8008, -73.1289, -73.08, -108.9092, 116.1311, 116.1375, -70.9572, -97.5017, -64.55, -67.8442, -120.8, -70.7467, -0.167, 147.3869, -66.35, 149.8003, -104.3267, -112.5436, -112.0436, -111.6167, -104.8361, -81.07, -113.7167, -112.0622, -112.062, -88.0803, 8.6506, -91.8625, -113.3847, 17.9331, -91.2153, -122.1178, 153.0389, 153.1142, 153.1292, 153.0306, -82.4044, -2.6, -96.3917, -93.8014, -97.75, 34.2297, 14.5, -105.4072, -102.5667, -102.6833, -149.7667, -102.9014, 10.62, -113.8167, -77.9333, -71.005, -75.75, -75.6667, -105.83, -89.3867, 25.15, 154.27, -94.7381, -99.675, -94.7, -99.6333, -94.7372, 141.4694, 141.4676, -72.5667, -71.95, 12.2181, -100.2494, -73.8494, 4.9367, -93.0594, -88.1775, -79.0975, -90.4581, -124.2878, -96.7686, -81.673, -106.2333, -78.9517, -88.6531, -111.85, -82.3658, -82.4544, -122.1447, 117.0072, -85.0128, 122.2353, -120.6, 16.3097, -102.2681, -113.0133, -116.8981, -53.1167, -97.4186, -89.2586, -96.8283, -120.2486, -94.3417, -98.9456, -110.5833, -118.6889, -110.2944, -117.8667, -91.5919, -106.5333, -116.1333, -115.8017, 114.928, 135.945, -92.5336, -81.5022, -93.1331, -81.4597, -81.3908, -69.9333, -122.8494, 4.533, -84.5272, -112.1456, -112.1689, -112.1722, -109.2372, 101.1833, 122.772, 48.367, -79.6817, -56.8667, 7.0631, 7.9989, -109.5967, -80.1336, -122.6553, -80.22, -83.4706, -105.2969, -122.5633, -122.0036, -106.1167, -117.5333, -112.1997, -75.2044, -111.4333, -111.6914, -120.0975, -64.7667, 26.0831, -82.9697, 19.0206, 19.183, -4.5458, 44.1, -90.8467, 106.57, -106.1275, -58.483, -111.9167, -78.7369, -106.6992, -103.3017, -99.6411, -93.1067, -93.84, -99.64, -103.5464, -109.1675, -119.79, -106.7211, -121.0833, -108.4333, -108.4167, -106.5833, -105.3833, 31.583, -71.9075, 120.7, 121.917, 52.8, 52.45, -111.4167, 64.617, -114.7453, 10.455, 162.3, -173.2333, 41.533, 31.817, 28.617, 103.55, 119.7436, -110.7203, -114.5686, 147.3611, -112.7056, -120.1139, -114.4847, 134.3414, -121.3333, 115.6447, -117.1667, 152.3235, 145.0453, -114.1256, -92.1786, 55.783, -118.3575, -118.3481, 17.86, -57.6167, -107.5217, -107.5333, -107.5347, -3.6325, 8.8156, -81.3358, 139.5356, -97.3444, -113.7661, -102.2608, -72.9319, -88.2544, -73.1833, -91.1164, -79.4769, -102.2842, -79.4481, -73.15, -91.1253, -79.8, -122.9167, -98.2339, -98.2353, -121.6547, -97.2692, 145.9431, -82.2692, -116.6339, -125.9667, -118.9564, -87.2831, -121.9167, -109.45, -57.3333, 148.5984, -109.2756, -109.6667, -110.3708, -107.6, 29.067, -80.4067, -83.5919, 136.033, -139.05, -99.1433, 129.033, -106.9597, -113.8833, -113.9167, 50.835, 50.85, -102.0797, -103.8769, -82.0894, 146.8983, -82.1917, 115.3194, 115.4008, -5.0639, 146.2808, -53.3167, -79.9164, -94.405, -99.2706, -106.95, -98.8511, -114.8839, -90.5217, -100.5847, -112.5006, -109.2, -119.47, -1.9131, 47.12, 26.85, 62.467, 52.217, -97.0031, -104.1275, 7.8, 7.8117, 64.367, -85.1256, -119.4, -83.9319, -92.64, 153.6358, -56.367, -107.3078, 120.95, -116.0572, -115.625, -105.7089, -121.05, -92.0064, -84.95, 148.3842, 148.3779, -39.333, -78.3158, -57.683, -6.3392, -6.3667, -80.6803, -119.9817, -94.1164, -95.9219, -79.8567, -85.3967, -6.2567, -110.5167, -82.6256, -42.6167, 55.4, 9.05, -90.1942, -90.1572, -115.1736, 145.7, 145.7458, -85.7167, 145.7833, -89.1856, -74.0331, 103.6, -67.417, -1.2931, 27.3331, -120.3114, -121.8439, 88.333, 88.45, -46.38, -74.2831, -91.5028, -114.0167, -114.0167, -89.3158, -82.5883, -87.2669, -92.3486, -92.1636, -114.5264, -92.5545, -121.5597, -92.4833, -122.6014, -76.383, -76.4, -123.1167, -122.8045, -122.7958, -113.7128, -100.075, -74.9506, -98.3539, -114.7275, -113.3333, -123.7294, 19.767, -77.85, -99.3464, -119.0833, -115.35, -50.13, -5.3167, -81.5794, -100.1433, -116.6753, -93.1264, -105.1333, -105.1333, -88.0828, -75.8417, -92.8236, 150.689, -88.1686, 28.7, 8.669, -88.35, -116.4631, -49.5, -84.2036, -84.2364, -72.512, -63.567, 138.1214, 147.4258, -149.7778, 169.167, -125.2667, -90.55, -47.133, -35.883, -116.4728, 14.65, -41.33, -45.6, -51.2, -40.38, -102.555, -51.05, 8.803, -54.617, -52.367, -114.6833, -120.2342, -118.4217, -107.5528, -103.9744, -109.4833, -84.0975, -95.1817, -120.8433, -117.35, -77.9461, -76.8667, -100.0097, -112.8167, -112.8, -89.7333, -79.4406, -99.7008, 26.427, -80.6256, -77.2808, -78.933, -52.27, 149.2014, 149.1, -96.2697, -120.8678, -86.883, -104.6822, -82.6986, -110.5294, -93.0667, -79.2386, -91.7711, 33.617, -86.7072, -147.5147, -123.8853, -104.0658, -51.144, -74.3539, -105.2256, 151.1134, -76.8464, -96.5917, -90.0361, -75.1097, -91.5158, -148.895, -101.9264, -110.5333, -109.8214, -109.7597, -115.2469, -122.1667, -98.1967, -121.0886, -109.5394, -133.6789, 106.25, -41.9, 20.017, -125.2167, 166.43, 136.5959, 147.1444, 147.1453, 8.167, -75.9269, -70.0253, 17.85, -76.5333, -76.5333, -76.5333, -76.5333, -61.3833, -61.6167, 145.3106, -80.1567, -89.5706, 144.69, -75.6219, 29.55, -66.8167, 139.7164, -64.1667, 139.917, -61.4833, 115.1358, -74.9358, 8.167, -63.5833, 153.4661, -125.2, 115.0189, 141.5437, 143.5128, 15.283, -124.7167, -107.8167, 169.75, -53.0833, 162.967, -128.4333, 145.17, -131.0167, 18.602, -60.0667, 138.1327, -49.55, -105.5947, -79.109, -55.083, -80.616, -55.2, -65.724, 145.7497, -111.2622, 9.72, 8.47, -103.6783, -79.828, -103.9936, 3.133, 5.933, -66.65, 9.35, -64.3167, -64.2, 0.07, -74.574, -65.3167, 9.167, -70.5333, -16.746, -70.7833, -61.133, -66.9, -43.333, 22.25, -42.15, -39.25, -99.35, -89.1658, -89.2497, -43.0, 2.31, 68.0, -3.1873, -3.35, -113.2833, 146.0197, -111.9019, -119.4667, -85.8333, -68.0172, -147.5003, -62.6833, -89.8703, -2.95, -77.1894, -93.1011, -104.2225, -104.4433, -104.2581, -117.2794, 12.617, -104.3089, -89.3658, -136.2, -98.15, -98.0333, -86.0586, -73.655, -88.1805, -42.6, 115.8869, 113.67, 122.9753, -114.65, -47.467, -80.2742, -83.3919, -121.5825, -109.0469, -0.45, -56.031, -73.063, -99.1211, -66.917, -105.8964, -119.7728, -99.8733, -94.85, -85.0806, -93.4886, -111.2833, -110.28, -91.1181, 66.017, -101.5742, -119.7678, -121.9733, -75.5, -100.6742, -84.7925, -84.8486, -111.2192, -94.3397, -89.5389, -85.945, 10.227, -94.3047, -57.0333, -109.4122, -89.7, -91.1256, -113.3833, -78.7878, -7.58, -82.35, -111.7117, -111.5367, -110.4147, -107.8, -90.9983, -116.0481, -107.8, -111.5772, -111.71, -111.6, -122.0167, -122.4811, -6.451, 110.517, -118.8092, -118.9297, -117.4181, -120.915, 122.12, 153.0493, 153.052, -67.606, -106.3461, -106.3167, -106.4636, -106.2925, -97.2328, -96.6036, -83.1805, -94.6147, -94.615, -95.8364, -58.65, -0.0714, -0.0406, -7.483, 141.3339, 141.4133, -114.8661, -117.6333, -117.7667, 144.2392, -86.0514, -97.0261, -120.5667, -111.0125, -112.3617, -104.9058, -122.4833, -122.9047, -112.7333, -103.515, -50.0, -79.2919, -85.933, -92.4617, -47.95, -110.9303, -83.0956, -65.752, -65.8, -48.967, 15.05, -54.487, 124.63, 124.88, -114.4069, -127.4667, -120.1106, -119.495, -77.4831, -114.8142, -67.2333, -97.7014, -72.5989, -123.6422, -83.5328, -43.35, -51.2, -52.4, 105.15, 25.92, -35.417, 30.283, -107.8922, -85.2339, -120.1803, -99.7231, -101.0094, -113.1439, -112.9919, -113.0944, -97.4786, -81.0731, -117.6747, -118.6561, -76.3, -121.7561, -112.7764, -123.7719, -120.3, -114.1658, -109.0828, -91.7167, -91.5881, -77.4478, -101.5667, 133.6976, 133.6725, -86.9, 132.25, -85.4597, -84.5364, 71.4, 15.2, 10.0333, -82.1769, 86.0, -94.1642, -82.6547, -73.3722, -95.9744, -92.89, -87.4219, -96.9033, -101.2119, -96.3331, -96.3131, -122.9528, 87.65, -144.7653, 133.0861, -98.0283, -81.63, -85.6847, -76.9, -87.2383, 136.8192, -58.88, -58.983, 138.7056, 145.1785, 37.967, -61.95, 74.8, 25.97, 56.133, -105.5956, -55.43, -66.562, 40.2, 17.542, 12.307, 14.433, 151.3377, 151.349, -1.83, -5.3456, -65.1, -77.85, -107.9106, 60.6167, 119.85, -108.0333, 102.0167, 73.099, -144.3411, -111.0667, -111.0667, -79.5861, -77.3667, -114.215, -114.2228, -86.955, -106.5781, -99.312, -99.3183, -98.7467, -77.6394, -66.283, -106.65, -73.35, -88.3728, -88.2778, -113.35, -87.9858, -148.4925, -96.88, -79.2969, -96.8042, 128.3, 125.217, 111.683, 127.25, 128.183, 123.97, 113.083, 112.867, 116.37, 128.573, 120.717, -93.5644, -88.2819, 130.1225, 102.117, -95.4842, -95.4472, 76.6, 120.45, -43.35, 51.167, -74.9833, -52.617, -79.0794, -79.0642, -108.4892, -83.35, -83.35, 36.233, -102.4717, 118.2667, -81.1833, 63.6, -93.2792, 4.45, -88.1653, -53.6667, -115.5289, -79.9319, -80.0403, -79.9333, -81.7186, -81.59, -65.7833, -92.6717, 146.2558, -70.6333, -82.7464, -84.8258, -74.4233, -78.5225, -78.4656, -78.453, -63.1333, -63.1333, -98.7494, -64.9667, -78.6497, -80.9553, 148.3327, -66.3333, -66.3333, 143.3341, -89.4819, -76.4333, 146.2708, 1.5031, -78.4756, -93.6311, -1.417, -148.5833, 1.383, 1.7167, 7.15, -71.0333, -79.4103, -69.9589, -86.92, -86.9242, -176.567, -69.9933, -125.45, -82.2167, -88.2503, -80.9, -84.7642, -84.5833, -85.2014, -83.5219, 6.9878, -73.3953, -97.4061, -87.2217, 12.383, -84.4725, -118.7172, -105.2672, -105.2783, 8.121, -80.5797, -120.0006, 61.533, -84.0133, -75.7833, -72.4833, -123.75, 12.867, -121.7894, -121.8, -146.0561, -75.0833, 117.917, 104.017, 122.683, -88.7108, 113.03, -83.8167, -110.0, -110.0747, -79.8833, -103.51, 56.52, 112.5, 25.9, 23.267, 126.0, -95.5378, -98.3628, -83.2069, 91.7333, 91.73, -112.0481, -76.8833, -74.7386, -119.9161, 161.283, 99.53, -81.9675, -121.2422, -110.9711, -80.0389, -90.7333, -76.0519, -81.1958, -60.95, -88.327, -121.6333, -59.6333, -84.6233, -117.7408, -104.8061, -99.7278, -102.3508, -104.8056, 69.783, 98.983, 99.833, 140.1, -74.5333, -88.4814, -87.7853, -87.7522, -87.7775, -87.6094, -87.9336, -87.9047, -87.8667, -87.6333, 139.067, 142.183, 142.2, -85.2711, -96.9717, -97.9144, -97.9158, -141.9211, -141.9294, -72.5333, -121.7789, -121.8211, -153.9325, -119.6483, 12.533, 3.83, 118.833, -106.083, -118.0303, -86.3431, -100.2183, -100.2831, 34.967, -72.0333, -93.1469, -93.5358, -93.5792, -93.485, -82.985, -121.9167, -121.7, -113.8289, -121.9953, -121.8936, -84.173, -99.5, -88.1469, 69.6, 33.467, 81.182, -117.6931, -75.35, 106.767, 128.1, -109.2256, -109.0044, -117.6361, -112.4567, 32.583, 32.616, -85.5503, -81.9361, -109.35, 25.333, -142.0833, 28.9833, -103.3003, -103.3, -144.6647, 113.4831, -144.4408, -144.4397, 76.433, 98.6, -4.1474, -114.4167, 114.55, 108.217, -108.283, 17.55, -98.2525, 147.8831, -87.15, 129.817, 127.43, 106.467, 127.15, 100.983, 19.6, 30.233, 32.7, 25.8, 140.85, -112.1919, 172.532, -86.4869, -80.4033, -64.8056, -64.7014, 105.683, -119.0125, -83.8986, -104.8222, -117.0858, -149.9061, 99.183, 116.92, 127.733, 126.883, 128.43, 128.0, 9.53, 13.615, -94.0667, -94.0667, -94.0667, -64.1, -64.1, -110.0856, -1.2, -71.1667, 151.8333, 101.517, 32.667, -104.4833, 66.75, 109.017, 109.0, -100.3456, -107.5592, -104.9456, -101.9003, 59.8167, 42.12, -83.8217, -84.6961, -84.4189, -84.6717, -84.5167, -106.2333, -122.1067, -38.517, -105.595, -82.9547, -144.6422, 108.267, 62.9, -111.8314, -87.7089, -63.537, -111.7, -103.467, -109.933, -109.833, -3.9194, -3.9283, -99.133, 130.9, -121.75, -90.9808, -86.6522, -86.6114, -117.7069, -95.5808, -8.9833, -77.9411, -91.2208, -100.8903, -53.9667, -113.6333, 138.5933, -95.0192, -79.4361, -97.7325, -83.5428, -87.845, -80.3522, -80.2289, -90.5572, -78.5506, -93.4425, -95.0717, -93.4036, -90.9053, -87.3356, -87.4194, -95.1667, -87.3353, -82.1897, -109.1375, -117.3089, 12.2406, -123.2058, 10.3481, -109.1, -85.45, -103.1997, -83.3967, -103.1539, -111.8167, -78.4633, -97.1275, -98.0536, -122.3292, -119.75, -78.4117, -106.4472, -124.2922, -115.25, -90.7756, -111.2833, -111.2667, -118.1525, -96.6872, -121.7167, -149.1828, -97.4061, -82.8864, -82.8236, -78.4878, -81.7233, 3.1, 147.6425, 136.4937, -95.0839, -90.7444, -83.7658, -81.86, -90.7128, -81.6836, -84.7981, 136.5026, -81.0492, -120.9131, -108.5047, -109.3072, -106.1897, -105.6628, -105.5872, -93.7711, -88.8753, -88.7483, -90.2639, -78.2758, -90.9733, -121.5, -95.3397, -99.12, -82.4911, 140.505, -92.5253, -105.7353, -107.0667, -123.0175, -123.8925, -122.7, -111.85, -103.1992, -103.2161, -103.3167, 23.7, 23.5667, -68.5167, -68.5167, -120.3606, -85.7014, -111.3983, -111.1472, -105.3847, -63.133, -71.8, -94.417, 145.7964, 145.8294, -68.78, -74.4333, -78.1667, -78.1833, 10.983, -66.18, -106.7611, -106.5833, -106.3322, 143.0686, 96.833, -62.083, -88.2269, -109.045, -108.9006, 143.1183, -116.7967, -95.5664, -95.6356, -132.8333, 153.1187, -91.525, -106.6167, -121.7689, -84.6594, -116.4917, 77.05, -8.467, -84.275, 143.7925, -101.0689, -78.7111, -95.0867, 145.4094, -99.3289, -84.9925, -79.5333, -162.7325, -110.2833, -109.45, -122.1833, -120.13, -71.54, -99.4339, 8.4667, -99.6594, -97.1742, -93.2556, -104.4, -109.35, -120.9481, -121.6056, -103.577, -44.25, 148.5818, -107.9797, -62.0167, -94.3919, -147.8803, -147.8483, -96.3647, -89.6653, 116.1717, -80.2167, -89.5572, 147.8464, -122.9503, -103.7, -103.7, -3.7642, 79.867, -57.9, -106.417, -104.1533, -98.5003, -112.9719, -104.8692, -108.7339, -104.6883, -103.267, -84.7664, -106.6336, -89.8361, -81.1186, -76.2667, -87.0864, -98.3, -76.1269, -85.4897, -92.1072, -119.3242, -80.9958, -92.2183, -81.0167, -92.32, -106.6, -109.9139, -108.3833, -96.5731, -107.6389, -88.3847, -94.8397, -85.9228, -109.2675, -84.9378, -97.3278, -88.45, -108.0167, -84.9422, -82.8833, -83.0781, -82.8808, -82.9333, -82.92, -83.0286, -122.0269, -117.9019, -126.0833, -150.4094, 7.1667, 149.0228, -113.4, 39.733, -116.175, -92.133, -83.4894, -57.997, -67.5, -124.9, -13.62, -58.23, -49.28, -43.433, -73.03, -57.417, -62.1, -57.3, -94.6833, -104.1906, -99.7081, -119.7492, -80.5833, -97.6697, -58.03, -97.6508, -122.055, -71.5011, -122.0692, -121.7422, 147.2283, 147.2133, -120.1817, -113.7172, -79.3664, -89.2414, -0.167, -73.9256, -8.818, -114.2167, -76.1756, -111.9614, -95.4831, -95.4139, -95.4828, -110.7167, 28.63, 6.62, -107.525, -116.9131, -79.0558, -92.4294, 106.6, 134.7222, -85.5033, -109.9819, -71.6333, 145.1861, 145.1861, -92.5336, 153.5053, -115.3, 148.9725, 149.1243, -124.4333, 149.2699, 149.2714, 148.3798, 148.3806, 140.8254, -74.9267, -98.0381, -76.85, -95.6039, -149.968, -124.2661, -124.3186, 148.0364, -105.5667, -101.2842, -90.3806, -113.8333, -112.6, -112.7333, -105.4844, -87.8833, -87.8672, -106.1667, -114.2167, -124.2025, -109.9958, -83.3667, -77.3747, -119.5817, -42.36, -83.7747, -112.165, -64.217, -4.8458, -145.4511, -145.7531, 19.9167, -69.2417, -72.3194, -88.6178, -8.491, -57.4, -83.5286, -87.1589, -86.2325, -57.9167, -57.95, -90.5858, -94.7492, -77.0692, -122.1697, -73.2106, -74.75, 120.2, -105.5167, -105.4833, -110.2542, -109.15, -111.45, -111.45, -105.6975, -70.276, -74.204, -56.4, 146.3574, -66.3592, -97.5108, -97.4, -97.2833, -97.5056, -106.595, -121.7978, -115.5333, -105.4647, -121.4667, -44.61, -58.762, 117.8733, 147.8938, -96.4867, -96.3989, -124.95, -108.595, -108.5036, -108.6275, 34.95, -57.5, -57.7, -84.0744, -123.3258, -123.19, -123.4575, -94.7078, -81.7908, -81.8711, -74.1667, 7.216, 2.38, -123.0275, -123.0578, 14.3183, -0.65, -92.4533, -101.8606, -116.3919, -155.9361, -108.2778, -110.8167, -96.5483, -111.7869, -99.2183, -91.4594, -78.0417, -77.9711, -122.2042, -122.2419, -121.6333, -123.1172, -118.9997, 135.3741, -116.4325, -96.5097, -118.5333, -122.4119, -122.6914, -125.0, -124.9833, -125.0333, -97.8956, -87.3461, -123.2444, -117.7903, -81.7333, -83.8436, -89.7, -79.9883, -100.65, -77.1567, -83.4314, -124.1333, 148.6497, 148.6534, 148.7071, -107.5819, -57.7833, 91.964, -73.1, -72.0333, -97.2128, -114.7583, -115.65, 15.133, -112.0, -84.4375, -89.0028, -2.2, -133.1408, -112.2833, -112.25, -107.5894, -107.5211, -80.0797, 23.87, 145.2637, -115.7833, -115.7667, -109.6114, -102.3578, -102.4133, -119.8247, -118.4667, -115.85, -74.3231, -116.8414, -0.5, -113.5581, -122.1328, -115.2833, -40.667, -86.8011, -120.9333, -123.6036, -106.9319, -97.9047, -124.2147, -124.2367, -102.4378, -102.4372, -120.7, -92.0939, -84.0347, 147.0794, -106.9769, -114.1342, -116.5167, -105.6897, -94.3942, -116.5, -86.5225, -118.9833, -85.4186, -96.8719, -105.2003, -83.9408, -120.7333, -84.6019, -88.1919, 21.95, 15.2, -76.8667, -95.4508, -97.4969, -119.2167, -102.8031, -96.6028, -103.2936, -101.245, -104.0022, -107.05, -98.5547, -91.9481, -85.1344, -84.9972, -85.1314, -85.0814, -83.1053, -83.1053, -98.0333, -85.0142, 17.07, -120.75, -92.3478, -112.3333, -60.833, -114.4833, -105.3833, -118.95, 142.2447, -77.8769, -72.667, -36.58, -53.6, -113.16, -109.5, -90.3775, -120.3667, -106.9703, -107.5178, 120.2667, -104.9214, -72.52, 79.767, -2.1381, -99.233, -97.3433, 133.867, -56.117, -56.1, -100.8292, -104.5089, -5.25, -105.2, -107.475, -86.7964, -86.7972, -83.1747, 124.8667, 50.4, -118.4139, 80.967, -64.2, -92.0222, -78.7561, -106.45, -84.1275, -131.6, 117.2217, 145.6808, 24.4331, -104.2667, 21.3667, 132.6, -71.233, -49.267, -49.167, -111.1, -115.4128, 143.8486, -80.9819, 123.8217, 131.7571, -100.4936, 106.65, -44.45, -96.7758, -123.16, -103.6119, -103.6114, -103.6333, -84.7931, -112.0558, -112.3753, 8.7067, -116.5872, 121.03, -72.0, -71.95, -3.802, 123.0086, -84.3031, -109.4667, -109.5167, -99.0833, -99.0667, 19.1, -97.3983, -89.9328, 104.579, 121.883, 10.8639, 122.98, -119.8914, 14.18, 120.35, -105.0333, -94.7225, -110.3333, -17.5, -15.931, 29.0, -94.1953, -113.95, 104.417, -13.5831, 151.2634, -77.1133, -111.3794, -78.9353, -5.15, -102.55, 121.633, -123.2911, -84.7475, -97.0189, -84.74, -96.8556, -96.8681, 133.733, -6.473, -102.9661, 84.067, 116.6714, 116.6619, -113.85, -122.05, 133.3782, 64.4, -77.2319, 36.516, 34.337, 108.199, -80.1789, -73.4167, -92.3736, -73.4828, 124.333, -96.2319, -67.8614, 69.317, -83.3045, -57.5833, -111.25, -110.1272, 125.028, 44.117, -18.67, -73.7206, -117.3389, -77.7178, -77.7133, -79.3886, -84.7708, -87.6483, -71.9833, -82.3039, -79.3361, 109.58, 100.3, 0.25, -113.95, -114.1764, -93.1675, -75.9, -120.1833, 62.283, 39.5, -113.5833, 99.65, -79.8767, -90.1064, 8.6775, -1.4106, -121.4461, -121.6036, 147.4984, 130.8925, 130.8844, -110.1631, 39.2, 39.3, 59.8, 114.4, -94.3039, -113.4981, 113.333, 26.617, -100.05, -100.05, -100.05, -88.0775, -90.5808, -118.1614, -97.1328, 77.95, -77.1833, -121.7761, -79.4322, -110.8833, 9.85, -139.4333, -139.1333, -84.0597, -139.1333, -120.1833, 101.12, -107.2658, -81.0483, -118.0022, -84.9947, -84.2186, -84.1911, -94.9314, -84.2264, -119.6447, 95.367, 107.5, 24.017, -148.4772, -110.6833, -105.7667, -124.4667, -115.5667, -115.5667, -118.9433, -107.3786, -117.1678, -83.2378, -83.1736, -130.0167, -130.0333, -116.8669, -108.5931, 38.4, -63.4667, 53.82, 21.615, 21.6, -97.5769, -84.93, -86.9503, -84.665, -88.8656, -86.9453, -88.9506, 8.972, -91.7953, 3.483, 5.8878, -113.1139, -94.3872, -93.2044, -162.7639, -98.3167, -111.5289, -116.7475, -115.1517, -57.4333, -57.4, -112.7975, -117.6103, -114.0553, -108.9, -117.4333, -117.4283, -84.3847, -84.4289, 98.57, -76.8703, 70.2, 78.033, 40.176, -94.6175, 131.9182, -81.3106, -93.7903, -113.1833, -74.9128, -80.55, -123.4333, -123.4333, 97.37, 3.95, -105.2369, -119.6542, -86.6661, 16.55, 16.54, -112.5858, -108.0278, -145.6136, -145.7511, -145.105, -98.3833, -123.1, -112.7886, -112.8167, -106.3083, -100.9094, -100.9269, -100.7833, -118.6828, -108.88, -107.7531, -61.1833, -107.7206, 69.283, 11.8564, -118.6303, -87.88, 95.6, 113.5319, 144.9458, -118.6336, -119.6358, -95.3289, -96.5667, 29.083, -87.812, -81.3436, 115.167, -109.9372, -97.105, -97.1989, -104.8489, -102.8219, -104.6575, -104.8694, -105.0083, 4.7469, 1.7217, -75.4264, 139.6697, 98.883, -94.3481, 70.92, 48.3, 123.6611, -109.8517, -91.385, 22.66, -119.9333, -7.2581, -117.5844, -116.6222, -71.9167, -71.9667, -112.6519, -115.36, -115.1439, -116.1594, -119.77, -96.0833, -86.4717, -91.4978, -93.2856, -93.6531, -93.7236, -83.9014, -83.01, -122.2547, -95.6056, -95.8372, -95.8464, -83.3308, -83.5333, 4.4667, 7.05, 22.9, -81.1292, -120.6714, -93.3333, -98.9, -98.8681, -98.9075, -104.7194, -104.7147, -107.3047, 146.4267, -117.4044, -71.1667, 24.017, 5.1867, -86.0939, -88.7756, 4.7808, -94.4008, -93.2869, -121.6108, -97.5606, 50.15, 87.35, -121.1431, -121.2939, -43.64, -56.45, -94.3553, -111.2167, -122.1333, -113.3664, -115.85, -109.2428, -116.0494, 56.25, 95.017, -102.8111, -102.8414, -87.3958, -70.181, 49.18, 8.341, 12.627, 15.99, 26.87, 80.4, -105.0569, -111.4667, 8.2631, 10.4994, -105.1175, -112.6447, -79.3564, -113.0058, -106.0353, -112.5545, -4.7, 22.75, -102.312, -58.85, 122.117, 115.517, -119.0394, 147.3347, -108.9678, -108.9719, -108.9106, -109.3045, -16.233, 13.7144, 41.85, -118.2, -120.1667, -77.2017, -108.9133, 19.71, -112.05, -112.7547, -107.1667, -44.87, 43.35, -89.5136, -88.6678, -88.6672, 40.201, 14.8, 14.77, 9.47, 3.25, 10.77, 34.967, 12.217, -73.8344, 23.317, 13.583, -91.5511, -90.1161, -90.0, -99.9683, -105.5194, 35.767, 10.35, -86.7142, -120.0478, 51.565, 27.75, 159.07, 12.67, -114.6667, -57.733, 9.117, 59.65, 123.367, 39.7, -107.3, 77.37, 77.02, -112.35, -91.0278, -84.8911, 8.5056, -79.4058, 37.767, 108.617, 30.483, 109.98, 120.283, 106.6, -90.8125, -90.8239, -111.4667, -91.5639, -120.2331, 115.8247, -79.8694, -103.3, 100.6, 126.3114, -92.2192, -122.9631, -0.05, -0.033, 152.7187, -80.6667, -115.2, 3.3, -66.6667, -85.4497, 9.72, 153.1906, -109.5394, -82.8206, -109.6061, -105.3856, -120.1031, 131.1872, -119.8983, 4.5978, 147.0075, -75.5056, -87.8628, -75.4667, -69.1839, -108.9119, -86.1319, -106.4517, -120.8239, -59.25, -75.1225, -120.0828, -120.1056, 15.97, 22.933, -108.8875, -123.3275, -100.31, 10.1237, 13.61, -115.3167, -88.7064, 13.767, 13.8494, 13.6831, 12.0481, -118.3775, -111.1125, -97.9822, 22.6331, 23.517, 71.783, -112.6833, -72.4833, -113.1761, -76.25, 33.95, -128.1167, -92.75, -101.8333, -102.2131, -108.3575, -111.5333, -119.1167, -144.6011, -121.9864, -120.5333, -112.1833, -106.7833, -109.8331, -106.7808, -112.24, -70.584, 55.364, 148.5753, -82.9036, -98.3047, -6.3192, -109.6553, -112.2006, -78.8989, -86.6983, -90.6461, -90.7036, -110.395, -80.9072, 18.867, 86.17, -121.1303, -112.9217, -79.0917, 16.134, 98.1, -107.0, -104.9614, -92.2097, -92.2108, 123.3, -91.5317, -101.9725, 140.017, 130.3725, -2.5258, -109.1214, -97.9592, -123.7667, -123.7333, -116.9667, -79.8833, -6.35, -83.6489, 149.3964, -124.1197, -123.0833, 128.2, 94.683, 2.33, -111.4747, -79.2722, -82.4047, -78.6881, -102.5869, -122.2736, -5.4386, 116.467, -101.605, -101.4672, -110.8667, -112.75, -91.9794, -83.9894, -107.8564, -104.6, -104.7, -107.7597, -96.3686, -96.3203, -56.5, 30.951, -70.95, -70.0964, -1.5846, -79.0931, -70.9278, -70.9483, 107.55, 68.8, -76.4042, 6.77, -166.5433, -104.8667, 57.9, -89.1931, 42.717, 69.0833, 116.0594, -88.4111, -116.3217, -2.198, -118.0106, -89.4089, -89.41, 123.9, 113.97, 134.5, 141.3, 45.281, 124.0, 95.217, 72.95, 52.567, 121.77, 64.083, 67.833, 139.833, 138.733, 70.897, -102.7769, -141.2036, -117.8833, -141.1619, -141.1483, -110.3667, -122.3311, -106.9167, -115.4508, -105.2628, -100.4792, -122.6569, -89.2564, -149.44, -149.5436, -109.8964, -79.85, -79.85, -93.2167, -108.9833, -98.8175, -83.2058, -121.1869, -66.9919, -75.9744, 1.0267, -72.1269, -113.2239, -71.8908, -84.6892, -74.1433, -85.1322, -84.485, 27.833, 27.8, -111.6444, -71.6261, -61.9833, -110.2, 147.1322, 147.1317, -75.2297, -83.5036, -70.6697, -109.5167, -84.6336, -91.5164, -86.243, -91.4878, -119.8, -78.7289, 11.9883, 10.5003, -74.5, -105.8461, -114.4256, -111.435, -105.6, -101.6667, -120.0667, 144.7642, 1.332, -114.3833, 148.3467, -88.0728, -79.7433, 141.2657, -76.5517, -72.5572, -117.5883, 12.87, -70.5181, -98.7661, -103.8778, -103.9172, -110.4333, -98.1575, -78.5853, 138.6222, -3.35, -98.0633, 26.567, -99.7836, -80.2947, -80.3267, 137.7395, -113.5167, -113.5167, -113.5833, -113.6, -113.5167, -113.4667, -113.4667, -114.1167, -114.1167, -113.75, -98.4714, -68.3167, 15.84, 15.72, -116.4667, -116.4667, -116.45, -117.8667, 32.333, 3.5619, 6.5844, 6.5756, -123.0833, -123.8236, -93.6461, -88.6244, 12.67, -79.7811, -79.7833, 17.57, -127.8333, -14.4, -179.1, -114.4706, 11.2358, -147.1, 6.5045, 145.8423, -118.1167, 7.5967, 5.3767, -69.86, -77.2292, 16.53, -115.183, 101.067, -104.5461, 60.6331, 130.9667, 57.767, 132.983, 16.75, -149.3231, 135.88, 174.167, 41.7667, 34.95, 39.291, -82.855, 19.433, -106.55, -106.5833, -121.9, -92.5808, -93.0972, -100.5994, -94.0156, 35.239, 38.517, -107.1842, 64.0697, -136.3436, -97.3683, -114.5411, -98.0747, -88.2861, -110.5086, 26.567, -103.6572, 44.3, -137.083, -90.2269, -82.2325, -78.6481, -85.8761, -104.6292, -76.205, -105.3381, -91.4536, -101.8867, -109.75, -101.2, -79.4742, -79.8528, -115.7425, -115.7886, -123.5828, -116.1167, -105.7, -115.4611, -99.5064, -95.7769, -117.9711, -112.8667, -106.4136, -106.9667, -93.5842, -116.1797, 5.7625, -98.5261, -120.54, -120.5303, 27.85, 133.5407, -82.5667, 134.888, -112.4342, -98.225, -92.4586, -103.1, 10.1317, -94.0353, -123.4008, -76.8358, -76.8919, -72.5294, -63.3333, -102.4683, -87.0917, -80.4167, -80.4167, 9.017, -90.7847, 6.1831, -117.3319, -100.0106, -123.5906, -85.8453, -91.8586, -82.0558, -82.1794, -91.4556, -91.8667, -114.8361, -114.8467, 8.1094, -68.1, -68.192, 33.836, 1.0, -71.532, -116.9281, -72.05, -76.641, -117.4111, -115.5617, -115.6833, -84.22, -108.0167, -96.8444, -92.8142, -75.766, -81.358, 25.333, 2.8667, 8.45, 0.067, 14.3, -117.6303, -117.5503, -108.3492, 30.233, 30.2, -106.5, -106.3708, -106.3758, -98.0364, -106.1878, 46.9, -63.171, -106.73, -71.65, -92.1958, -108.3906, 6.5, 7.2267, 7.2, 41.8, 103.33, 148.1756, -113.9333, -122.2175, -118.45, -111.5667, -91.3589, -1.667, 7.8356, -94.6833, -116.4664, -77.2914, -75.0106, -95.7797, -110.767, -110.6347, -77.5597, -96.2189, -96.1897, -80.0833, 115.0414, -55.9, -112.4333, -99.3847, -52.51, 166.3, -97.6383, -85.5697, 8.4167, -56.1167, -97.8747, 92.15, 173.33, 14.283, -100.8833, -111.7111, -111.7344, 20.783, 20.8578, 23.5803, 23.3392, -72.8083, -72.8136, 109.467, -113.715, -117.1528, -85.8997, -113.7172, -120.3228, -120.2108, -123.8167, -123.8, -114.9833, 28.433, -111.5992, -87.1536, -119.5153, -71.0839, 8.9175, -126.2833, 58.6, 108.0167, 101.383, 115.367, 112.0, 9.3169, 10.9631, -99.8628, -99.8033, -98.8239, -81.9, -80.1825, -79.9567, 12.42, 92.417, 132.1771, -74.781, -108.2, 121.933, 102.3, 48.35, -82.4261, 95.12, 39.527, 41.17, 140.117, -111.5978, 10.065, -117.09, -117.9472, 53.6331, 7.6092, 51.6667, 51.862, 66.333, -113.9533, -3.2, 16.46, 16.45, 30.53, -96.1058, 8.1569, -106.0589, 121.8925, 121.8275, -42.25, -120.515, -42.8, 24.6042, 24.8331, 24.7442, -71.15, -123.4333, 21.07, -9.682, 6.933, 6.967, -83.845, -74.2858, -73.1153, -73.1156, 6.23, 158.7, -122.3186, -106.0344, -74.8289, -148.0256, -105.3611, -147.9242, -105.5108, -105.55, -102.9667, -102.9667, -126.55, -126.55, -94.7472, -94.7461, -110.2, -56.52, -0.621, -111.05, 128.8792, -91.2628, 139.0847, -85.09, -123.2206, -92.4303, -89.2358, -115.9622, -99.6353, -85.9333, -96.2644, -116.0056, -115.0167, -115.0644, -93.7917, -124.1603, 3.275, -70.4825, -100.0536, -92.6314, -110.9508, -111.0306, -87.5783, -87.5206, -123.1033, 153.3964, -92.5303, 16.6831, -91.6169, -109.7833, -78.3653, -122.195, -122.2803, -81.3183, -86.9533, -105.315, -87.0442, 47.15, -7.9, -158.0667, -98.3417, -3.42, 126.3008, -114.0264, 4.0119, -111.0, 0.35, 10.53, 24.933, 12.81, 9.233, 56.483, 6.95, -147.51, -147.615, -147.8739, -147.8761, -147.7911, -97.1669, -117.65, -122.0678, -84.5894, -112.0944, -91.9553, -103.2247, -111.9855, -76.2231, -88.3264, -114.79, -87.8808, -87.8758, -118.4297, -80.1333, -97.5928, -94.4656, -105.9936, -98.4975, -118.4333, -87.1364, -1.633, -102.0367, -102.0192, 132.25, 13.37, -99.1372, -99.1356, -98.1203, -117.1903, -120.05, -118.7811, -118.7167, -95.5919, 147.2755, -78.6528, -73.3667, -85.3586, -119.0333, -70.5167, 12.82, 15.6167, -65.42, 5.3533, -119.4658, 110.77, -126.0, -64.4, 27.983, -154.0767, -82.3606, -96.8111, -93.2661, -92.4075, -73.4169, -90.4103, -111.8, -83.3625, -70.1567, -111.9353, -93.17, -108.3086, -111.8167, -90.0, -108.2292, -85.1483, -78.3864, -72.9, -111.6833, -7.966, 18.96, -133.3667, -133.3833, 48.315, -3.7689, 53.7167, 10.1833, 102.339, -99.1342, -118.0667, -116.8989, -116.1, 19.167, -87.8214, -91.8158, -94.1694, -94.1744, -94.3, -78.8583, -78.8803, -86.5411, -107.8639, -81.5389, -38.96, 13.4389, 8.0044, 9.6, -87.9, -88.05, -119.175, 109.5, 116.63, 91.417, -115.5347, -115.5356, -76.1356, 35.3831, 71.75, -96.1172, -80.3833, -80.3333, -81.4525, -91.4947, -115.0667, 145.3364, -123.3703, -57.1, 11.6208, -58.4, 170.817, -111.1325, -101.45, -99.6219, -90.3981, 27.85, 7.2794, 10.35, 13.717, 47.112, 12.9553, 11.8392, 27.9, -118.6758, -122.3019, -120.0067, 8.1125, -83.0831, 14.17, -112.3278, 17.91, -112.0333, -83.6686, -83.6622, -123.3253, 147.9664, 30.15, -121.6658, -120.1075, -71.2906, -97.55, -109.95, -109.5714, -118.6333, -116.0669, -119.1783, -115.875, -121.0667, -122.4167, -119.6519, -113.3978, 5.5817, -71.7558, -96.7178, 125.5619, -110.2658, -117.9183, -120.1561, -110.4667, -103.0614, -111.7311, -111.675, -117.7289, -111.6664, 14.15, -80.9144, -109.4117, -96.5928, -101.2, -97.0644, 12.73, 13.1153, -110.6, -113.85, -108.3725, -156.6139, -81.9136, -114.8989, -74.8811, -102.8594, 9.4192, -82.5575, -73.0, 148.0024, -89.6833, -83.7694, -83.7494, -112.1833, -101.6833, -101.8833, 12.0125, 16.3997, -92.87, -88.4797, -86.3117, -36.81, 11.2, -88.2583, -124.0947, -79.74, -79.7239, 4.6608, -31.131, -44.41, -98.1628, -43.017, -48.567, -105.285, 5.0278, 12.27, -117.4039, -101.3339, 9.849, 113.53, 9.2831, -80.7833, -82.1278, -100.1369, 14.61, -88.4533, -88.4669, -88.4864, -110.0564, -66.167, 147.9205, 5.9333, -92.3989, -79.5144, -111.4833, -89.4208, -98.0833, -112.1167, -120.7317, -87.3967, -93.6306, -81.9889, -123.1025, -92.9125, -71.15, -124.3539, 12.0556, -97.595, -58.228, -47.33, -46.25, 128.1092, 16.9897, 152.5089, -106.6744, -38.6, 113.5333, -72.05, -103.8056, 26.633, -108.7189, -79.0644, -111.1167, -78.9667, -93.4333, -93.4333, -128.65, -128.65, -106.1614, -121.2417, -122.55, -123.4667, -113.3833, -111.2167, -111.2167, -134.8667, -122.6, -122.6, -100.3014, -117.6, -109.1667, -109.1667, -120.8417, -94.2, 69.5, -113.1833, 50.25, -98.3833, -121.2333, -121.2333, -121.2333, -111.9667, -111.9333, -124.2833, -120.7333, -78.4, -116.0333, -145.2655, -120.2175, -68.283, -110.7703, -95.7244, -122.6728, -119.2461, -2.067, -111.7131, -118.915, -122.2167, -110.2167, -112.0422, 141.7017, -98.8392, -92.2875, -101.5697, -147.6261, -116.8167, -63.7833, -119.5681, -54.58, -47.433, -86.8872, 13.4, -93.341, 27.5, -75.7278, -86.21, -84.9033, -86.5067, 8.6756, -83.3928, -84.3189, -79.8306, -78.4633, -98.945, -91.5442, -111.6, -86.8686, -86.0408, 145.1156, 16.21, -105.8172, -124.85, -113.055, -99.02, -98.9089, -77.4508, -90.3086, -82.5333, -77.4667, -66.5333, -66.6167, -66.6167, -112.5258, -95.8328, -79.312, 18.42, 18.37, 14.4, -99.1128, -91.7028, -99.0108, -99.1422, -74.2511, -87.3083, -95.3808, -89.6039, -98.6175, -76.3311, 7.85, 14.5, -72.8667, -122.0158, -83.1189, -96.4669, -86.0264, -83.1719, -117.7111, -112.3347, -106.2, -68.3133, -112.9128, -119.7092, -119.7194, 8.41, -119.7072, -123.0231, 9.4417, 148.2794, -89.8308, -97.2208, -123.3417, -102.7231, -108.9333, 9.283, -112.2, 43.7, 12.733, -78.1822, 14.49, -78.9358, -79.8186, 23.995, -108.7331, -108.3483, -48.93, -111.85, -70.9475, 9.12, -109.8014, -88.8589, -108.1514, -85.0, -110.6608, -120.1575, -123.7567, -78.9333, -96.0928, -87.4833, -104.7639, -104.8539, -123.8783, -105.0858, -105.0236, -103.8869, -94.2006, -109.8611, -85.0494, -82.1378, -112.4133, -105.7414, -97.7167, -68.6136, -147.3408, -80.2011, -80.1061, -80.1708, -80.1536, -92.105, -108.0514, -91.3339, -100.1103, -103.4775, -103.8156, -81.8614, -81.755, -85.7236, -106.4117, -80.3508, -80.3767, -100.6592, -93.1833, -149.6503, -96.7667, -123.2447, -94.7086, -94.3625, -115.4667, -81.6289, -102.9153, -102.9167, -104.2319, -104.2503, -99.535, -109.9855, -111.7428, -85.2167, -85.2064, -97.3181, -97.3614, -97.35, -97.45, -97.4761, -97.2975, -175.15, 120.2, -13.8631, 131.983, 138.436, 139.933, 128.833, 136.217, 130.383, 133.25, 9.65, -98.4, -117.9789, -91.9414, -76.3939, -88.4569, -90.1544, -76.3847, 179.2, 179.217, -16.8997, -16.767, -64.95, 5.0442, 11.2667, 13.3544, 137.05, 127.75, -178.117, 115.83, 89.517, 119.283, 119.5, -0.667, 69.867, 10.1, 149.9158, -123.7333, 75.633, 14.2239, -85.9878, -85.9622, 8.823, -66.15, -66.45, -99.7689, -5.95, -6.0, -101.4539, -85.6553, -83.86, -88.1375, -97.0592, -83.8303, -88.1342, -82.2756, 54.35, 28.02, -80.9139, -80.9183, -43.244, 127.833, -93.4661, -90.3861, -114.6667, -156.8756, -112.2292, -119.815, -114.7167, -90.3856, -82.8, -58.2333, -93.9803, -105.55, -90.3072, -82.1822, 20.65, -108.7939, -108.703, 100.133, -90.035, -94.8, -94.8592, -171.75, 15.87, 15.85, -109.5661, 46.4167, -54.5667, -54.5833, -54.5667, 73.917, 100.133, -123.5, 128.868, -77.1, 49.267, -98.9869, 119.133, 115.0, -0.005, -3.18, 112.47, 11.4, -101.4814, -100.8122, -100.7247, -86.5483, 115.6839, -113.8667, -115.9694, 11.0803, -69.7889, -110.7036, -113.45, 14.39, -112.1975, -113.9333, 62.333, 13.583, 39.633, 11.067, -78.6608, -95.2178, 13.37, -85.1292, -85.1197, -101.4394, -101.4197, 13.4342, -115.8167, 100.0, 53.97, -105.4481, 115.21, -64.4833, -64.4833, -123.9792, -80.7672, 43.767, -81.1433, -81.1558, -111.7792, -100.0569, -100.2667, -97.7019, -108.9722, -79.9542, -83.5369, 91.583, 45.1331, 17.17, 17.16, 3.45, 84.95, -94.2208, -84.7114, -84.7189, -84.7203, -84.7014, -119.3183, 151.6156, -90.8486, 29.867, 55.517, 37.37, 27.8, 35.4, 146.9172, 7.95, 148.2625, 11.433, 38.017, 12.65, 22.5, -66.844, -62.73, -72.031, -63.794, -111.048, -99.75, -100.1, -63.758, -90.1486, -97.5964, -85.8708, -77.0308, 6.1331, 6.15, 99.4, 22.45, -103.4958, -97.7644, -91.2294, 8.93, 12.167, -92.3606, 125.183, 22.4, -58.25, -105.6997, -96.7758, -85.0375, 143.5306, -79.3228, -97.7172, -120.8008, -75.3592, -79.8833, -72.2333, 22.383, -144.3503, -97.6167, -98.1167, -110.2669, -86.9333, 114.6975, 12.13, -121.1314, -121.1333, -121.1389, -119.3514, -124.7, -88.1222, -89.743, 130.833, -99.9403, -100.2175, -118.4794, 9.715, 21.65, 3.8, 10.143, 1.9, 50.047, 10.268, 35.467, 0.147, -113.9275, -115.2111, -5.35, -123.5333, -112.7536, 15.07, 8.6506, 136.767, 41.35, 24.533, -5.6417, -5.6983, -112.7131, -108.2075, -92.7161, -88.2678, -100.4667, -110.3022, 128.28, 128.301, -178.6, -94.7, -94.7167, -105.4919, -105.5419, -95.0497, -94.9447, -147.5211, -121.5608, 9.0503, 4.9353, -83.1431, -97.05, -96.9833, -97.05, -111.5881, 115.8642, -94.8392, -113.9203, 38.383, 2.7631, 177.983, -111.1667, 42.5, -95.85, -95.85, -135.8692, -117.7, -117.5167, -86.4175, -109.0528, 16.46, 151.2214, -91.0233, 151.2628, -84.4908, -79.7172, -101.81, 9.06, -106.6383, -106.6213, 52.583, -112.6681, -56.5, -112.9333, -119.9411, -104.7183, -114.5333, -4.1858, -145.5328, -83.7022, -115.3231, -118.7006, -81.9522, -73.6167, -73.6781, -8.2858, -80.8325, -108.8794, -121.2633, -95.4392, -155.1414, -107.3172, -112.7006, -80.7167, -149.6936, -105.1, -78.6014, 151.6936, 151.694, 151.7366, -82.1856, -90.0, -110.7933, -110.6519, 13.9831, 19.67, 140.1251, 104.3, 1.255, 73.817, 15.05, 18.967, -63.0, -110.7078, -67.6167, 14.63, -81.7167, -85.9667, 13.8, 9.95, -4.0197, 26.97, -49.25, -49.217, -50.13, 29.833, 12.1, -111.3994, -120.8428, -116.9833, -77.9647, -77.9919, -118.4167, -98.5903, -124.4242, -118.2833, 153.4283, -121.5, -148.4622, -118.4636, -126.05, -112.0917, -97.385, 10.1928, 94.9, -86.853, 30.95, 31.0, 37.417, -97.4597, -53.9667, -101.7, -88.3603, -145.2669, -83.5097, -95.8744, -101.595, -101.6181, -113.3, -123.8903, -102.6667, 150.3256, -111.6833, -60.4167, -113.8958, -116.8458, 43.817, 83.367, -91.8047, -102.2036, -120.8961, 35.533, 35.6, -82.5667, -82.5667, 54.401, 136.8, 108.283, 30.933, 14.9531, 41.967, 15.28, 126.163, 151.3289, -85.8825, -85.7922, 115.9839, 15.3667, 11.9942, -100.1514, 35.8164, 19.2, 19.1975, 12.5403, 0.46, -9.883, 149.7312, 149.7034, -106.0056, 1.4, 10.3, -75.5122, -121.7417, 136.8203, 47.75, -111.7275, -111.8547, 7.8331, 11.2253, 153.0297, 152.9278, 152.9605, -87.9553, -98.5669, 26.5, -115.2667, -134.1833, 13.6306, -58.833, 10.6806, 14.3742, 142.6039, -3.6314, -3.617, -3.7892, -72.7167, -122.5772, -69.5167, -72.9333, -118.8833, -102.8222, -81.8311, -82.0439, -98.7444, -81.0678, -112.1503, -112.1547, -89.0422, -92.0442, -97.4, -97.1839, -97.0981, -98.3136, -108.4664, -108.54, -108.5247, -105.8322, -105.8667, -67.7742, -66.8, -90.3444, -90.3283, -92.5644, -89.6908, -85.5447, -99.2667, -99.2833, -93.4975, -116.1772, -97.3211, -116.1175, -149.287, -110.4333, -95.5517, -117.5667, -105.6786, -59.483, -92.6886, -112.5075, -107.8992, -107.8992, -123.3236, -118.9631, -106.0931, -97.0553, -143.2833, -120.7844, -103.2072, -110.8333, -111.7333, -117.395, -108.8031, -121.0681, -75.4353, -122.8647, -94.4481, -114.7667, -107.2333, -70.2544, -106.5333, -121.0833, -124.0864, -84.6994, -82.9075, -79.9167, -123.5603, -87.9989, -122.5833, 15.45, 14.082, 15.4333, -114.2206, -98.7803, -76.5542, -107.8533, -82.95, -95.9833, -111.3822, -111.3847, -98.1331, -105.5119, -58.967, -98.5331, -104.6992, -78.2786, -92.3619, -86.8767, -82.8436, -85.7611, -94.4561, -72.5975, -70.8333, -89.1006, -121.7, -72.3731, -87.5814, -87.6225, -79.8047, -85.5022, -99.3022, -85.4892, -76.8917, -86.6086, -91.06, -82.3628, -77.3983, -69.5833, -85.2422, -90.9853, -82.3461, -87.2028, -96.0983, -69.5953, -96.1639, -82.35, -84.65, -82.1711, -75.5761, -82.035, -64.9167, -82.1592, -90.0867, -88.1111, -88.0981, -88.1119, 150.0504, -92.9492, 145.9719, -130.7, -121.1667, -115.5333, -109.4703, -120.5, -110.9978, -109.4519, -82.2203, -91.9997, -109.45, -99.4339, 13.4075, 13.917, -89.8136, -75.85, 148.1718, 5.33, -103.6192, -96.1922, -97.5667, -108.0411, -108.0822, -130.7, 34.8164, -75.4, 146.0695, -90.7086, -79.5667, 8.3331, -92.7489, -82.9, -120.9389, -105.8667, 24.05, 6.55, 136.4631, 18.117, 13.1353, 11.072, -82.8892, 12.3256, -105.3503, -110.1333, -72.0389, -72.0494, -113.5472, -120.4833, -113.8694, 144.3345, -71.0425, -120.2258, 147.0742, 45.6831, 13.933, 9.1889, 12.86, -82.0894, -92.7594, -101.405, -36.5, -80.2167, -103.38, -3.1742, -103.38, 160.05, -104.8253, -54.25, -58.613, 144.7961, -101.283, -69.755, 116.33, 111.667, 105.07, 113.483, -75.15, -39.0, -39.54, -45.2, -46.46, -70.756, -90.5275, -65.349, 48.517, 15.56, 35.3, 46.1, 7.467, -80.2167, 6.777, -2.6, -105.3925, -23.933, 110.3, 100.75, -82.59, -4.419, 110.083, -62.317, 106.733, 26.717, -89.0808, 149.5329, -145.4589, -94.3608, -85.3828, 9.6067, 39.467, -92.7672, 77.317, 148.1075, -90.8842, 17.7083, 17.7, 16.53, 150.2494, 150.254, 150.2687, -106.9672, -112.5833, -106.3292, -109.8667, -86.3297, -86.3294, 51.85, -65.9922, 37.279, -8.01, 40.65, 115.67, -62.85, 18.37, 13.8, -135.7089, 8.3553, -100.3369, -97.4797, -97.395, -109.3092, -94.4972, -97.4142, 8.6197, -91.0958, -113.9333, -101.5053, 151.6787, 9.1831, 9.2017, 9.2014, 136.183, 78.25, 152.6414, 17.67, -106.9731, 62.35, 56.28, 38.195, 25.4281, 25.605, 135.1167, 141.7, 139.783, 141.517, -108.3247, -96.117, -93.4019, -80.3822, 98.817, 33.983, 125.7, 49.6, -119.9333, -114.9239, -77.7297, -121.6306, 131.243, 14.14, 7.2644, -132.6983, 110.25, 41.683, 119.7, 106.383, 126.967, 24.7314, -135.4494, -136.3614, -135.5094, -137.5833, -117.9528, 121.17, -155.3306, -156.5711, 43.767, 140.75, -156.2469, 78.32, -88.0297, -87.6353, -83.7217, 35.6, -117.1094, -122.4433, -78.5333, -63.5167, -63.5, 108.517, 12.55, 11.9506, -96.9397, -26.217, 15.33, 19.63, -96.9406, -94.5889, 127.6636, 13.04, 15.5, -81.25, -81.25, -81.25, 12.92, 12.83, 24.4478, 9.4063, 36.75, 132.067, 137.717, 11.0694, 103.6, 11.0978, 81.133, -83.2772, 10.2428, 9.99, 9.8983, -99.6167, 48.533, 24.4944, 24.45, 25.1358, 25.0419, -112.2642, 127.55, 93.517, -114.1642, -98.0853, -94.0347, -87.9914, -79.9333, 142.0636, -84.5247, 148.9536, -79.9167, -79.6922, -82.1114, 19.135, 23.6769, 14.7831, -90.3772, -74.8072, -98.6236, -0.1789, -72.0531, -93.2011, -76.3367, 14.99, -110.6833, -169.933, 8.9667, -156.0153, -105.1333, -86.7911, -89.5358, -88.4889, -89.4133, -114.8333, -122.55, -122.5667, -119.6369, -119.6289, 120.167, 114.3, 22.9667, 22.9517, 22.9156, 23.2517, -110.7153, -109.3, -80.8667, -91.3719, 9.6794, 105.85, -72.2856, -77.0325, 14.85, -99.3464, -106.9833, -110.18, 69.1167, 107.033, -140.9611, 24.1439, 24.12, -111.4167, -111.4139, 31.133, 126.767, -105.8328, -82.6428, -55.8333, 10.7, -107.6092, -86.4228, -111.7167, -91.5056, -95.2875, -99.2133, -108.7964, -108.6775, -97.6728, -97.6542, -109.8311, -116.8675, 18.0597, 17.9331, -118.2519, -63.1667, -88.5244, -103.9542, -76.8703, -76.8514, -74.1567, -103.8842, -103.7364, -103.9219, -103.7867, -93.1567, -81.0486, -83.2808, -112.5833, -99.8033, -82.9, -121.383, 18.12, 17.0106, -102.1175, -70.3164, -88.4114, -72.6825, -72.6506, -85.2892, -97.2608, -76.6833, -102.385, -119.1111, -80.0486, -86.1808, -120.65, -82.93, -82.8342, 146.7683, -86.4239, -60.9833, -119.6556, 115.8806, -99.8758, 11.133, 35.5, 119.554, -96.9575, 3.283, 2.9, -85.2875, 0.5717, -98.3836, -81.4697, -121.5517, -92.8689, -98.4272, 102.4667, 100.15, -68.96, -89.3392, -89.2531, -118.6525, 24.2331, 175.2, 124.83, -121.5433, -100.0833, 100.433, -115.4225, 5.1978, -114.5617, -71.0603, -109.7633, -63.6, -63.6167, -155.2561, -96.485, 138.435, -122.9169, -83.4681, -115.95, -117.3, -75.1653, -118.6292, -118.3342, -161.155, -107.2547, -110.8833, -101.0344, -152.0758, -115.6289, -123.165, -0.9839, -99.3169, -121.13, -97.3142, -99.3358, -122.115, -91.4442, 144.8545, -115.7833, -115.7833, -102.6928, -102.6944, -114.1378, -100.3486, -90.4542, 105.767, -85.3397, -115.8086, -122.1547, -122.8731, -97.4203, -100.6197, -148.9942, 73.4, 73.717, -121.1683, -101.8075, -0.461, -61.7, -119.9, -98.6775, -110.75, -111.4261, -110.5644, -110.5581, -111.3392, -111.1006, -97.5903, -102.0383, 108.05, 8.9808, -105.1667, 13.67, -120.0167, 117.233, -85.6006, -121.4908, 8.65, 9.2342, 11.5208, 6.2589, 26.0528, 6.1044, 17.8372, 18.8167, -83.7261, -86.8336, -90.59, -98.2661, -112.0017, -111.9636, 7.8931, 13.9246, 23.75, -114.6278, -120.4217, 10.9603, -144.1225, 12.69, 12.77, 24.9667, 24.9783, 24.93, 25.0494, 24.9167, 25.0708, 24.95, 24.9167, 24.9642, 25.0481, 25.0831, 25.0331, 31.333, -111.2167, 15.0853, -116.8939, -103.0733, 18.53, 18.55, -77.6083, -115.6333, -73.7167, 18.38, 101.6, -94.7964, -82.4492, -78.4119, -88.7244, -87.6456, -94.8, -118.45, 34.8167, -97.835, -1.017, -116.7614, -119.5639, 111.15, 25.1831, 62.228, -127.6333, -102.4003, -103.1086, -145.0, -96.9494, -125.2, -88.375, -98.371, 10.2692, -119.2636, -119.312, -119.2611, -107.1097, -120.8558, -90.0103, -116.0014, -72.6, 18.92, -138.9167, 6.5531, -100.9775, 0.333, 152.8817, 5.1453, 10.3717, -86.1056, -114.4833, -119.7831, -102.6472, -102.6547, -110.4833, -110.4806, -96.2833, 114.733, 102.9, -80.2858, -92.8389, -92.8347, -109.9667, -81.3819, -89.1911, -84.7475, -105.667, -134.877, -116.7667, -17.8889, -93.7075, -83.1983, -83.2178, -86.2503, -86.3131, -86.3114, -121.0167, -99.455, -99.4894, -74.5642, -88.8647, -75.65, -122.8083, -117.1667, -117.1667, -0.6417, -79.9722, -123.3794, -116.4833, -118.1, -119.0383, -82.5972, -176.167, -115.2236, 136.25, -62.62, 7.6533, -97.1094, -107.5656, -89.4919, -83.6092, -90.3339, -6.07, -97.0664, -84.6411, -94.89, 145.5249, -110.42, -103.5594, -99.8278, -93.6042, -99.8297, 110.47, -155.0828, -155.0833, -155.0531, -113.4667, 134.667, 126.333, -92.9928, 138.8177, -70.9125, -87.905, -107.1533, 8.1064, -98.4814, -117.5333, 129.55, -81.0133, 143.317, 132.467, 75.733, 130.933, -110.3878, 130.75, -139.033, -122.7, 9.5423, 147.5, -99.0528, 147.5033, 147.3278, -99.0525, -103.1314, -103.3539, -109.1, 85.717, 18.1664, -85.735, -93.3911, -97.4667, -148.6767, 4.1217, 11.8775, 9.4794, -77.3031, -77.3219, -155.6667, -121.8667, 13.75, -82.1836, 11.0117, -87.5414, 111.683, 9.5392, -106.0003, 170.983, 21.31, 13.02, 11.6, -110.1544, -91.1269, -96.3861, -96.3561, -112.25, -120.7736, -105.5167, -99.3803, 17.57, -115.05, -110.2, 17.44, 12.58, -76.7683, -122.5667, -130.3667, -86.0967, -86.205, -70.675, -132.6222, -114.5739, -121.4214, -121.3622, -99.8136, 25.5831, -102.1317, -80.1342, -80.2411, -89.4347, -89.4347, 31.183, -117.8, 41.667, 20.8692, 142.05, -95.5489, 150.9254, -112.0122, -95.755, -102.3411, -53.1, 13.1681, 11.6975, -1.683, -116.9211, -82.8003, -93.0625, -151.6347, -151.3256, -151.2083, -151.4908, -80.3833, -80.55, 104.37, 15.95, 74.45, -99.1383, -99.1742, -77.5136, -124.1069, 159.967, 25.9781, -156.6817, -157.9294, -157.9992, -115.0333, -163.4081, -121.5175, 6.5731, -101.2103, -135.4278, -135.1333, -123.6714, -87.685, 5.3456, -106.0667, -103.2792, -121.5, -121.4833, -149.6286, -60.2167, 25.0667, 142.3569, 120.1283, -106.2667, -77.2775, -93.5564, -121.2333, -110.2069, -87.5206, -110.88, -123.0806, 7.55, -123.8833, -123.9303, 13.67, -99.5606, -88.6325, 109.783, -15.227, 15.87, 142.29, -121.3667, -115.2278, -110.4961, -122.4003, -112.6508, -120.5028, -111.45, -110.8617, -115.9092, 142.1731, 142.0687, 150.8567, -28.63, -95.52, -114.7561, 17.467, 59.3831, 79.933, 16.21, 16.2397, -82.8311, -79.8317, -103.4739, -114.6833, -93.0486, -93.06, -114.6694, 35.85, -84.7747, -84.8922, -84.6739, -67.8417, -67.7928, -90.8161, -105.6319, -129.1333, -111.9781, -88.9867, -91.9625, -126.6667, -95.2417, -95.1667, -95.2819, -95.5561, -95.36, -95.0833, -95.28, -95.6564, 91.567, -109.075, -96.2714, -97.5242, -122.3814, -113.0033, -97.0031, -113.6167, -123.3, -100.4397, 14.2442, -83.7667, -121.4219, -121.0833, 114.0, 126.75, 115.5, 105.0, 118.15, 99.95, 110.08, -121.5833, 17.1, -98.6592, -71.4147, -102.4, -102.3167, -102.5833, -102.3167, -73.8, -101.1772, 11.43, -91.467, -6.9492, -6.9094, -0.3264, 144.2333, -101.34, -103.4897, 126.25, 102.25, 117.533, 103.28, 102.767, -96.1, 135.083, -104.6028, 132.97, -0.3667, 126.65, -95.4456, -115.7833, -112.3006, 147.0329, 7.4844, -123.9897, 15.1, 15.09, -114.0217, -114.0575, 12.94, 7.2667, 147.5394, -108.3167, -117.4736, -78.0025, -88.4253, -85.4981, -117.255, -119.2206, -82.5267, -82.555, -108.2444, -107.0889, -95.5422, -93.7522, -86.7861, -111.7131, -95.5861, -95.4, -99.505, 116.333, 6.6567, 18.1831, 33.7167, -90.1956, -119.5678, -98.1989, -98.2231, -113.2072, 18.84, -112.5, -88.6006, 9.0572, 102.7, -97.9125, -98.0297, -97.8606, 107.333, 16.45, -70.3039, -70.28, 118.8983, -130.0269, 68.417, 128.167, -114.1667, -107.2278, -107.1375, 24.8064, 107.755, 27.6331, -69.18, 119.97, -75.2, -113.9886, -73.25, -44.05, -53.11, 1.3842, 58.5, 56.433, 155.5831, -118.8786, -94.8278, -115.8319, -112.0125, -111.7847, -112.9422, -112.0672, -102.2939, -107.6667, 15.23, -122.9653, 12.86, 12.3, 92.133, -116.7067, 86.57, -81.8167, -107.5333, 122.4, -42.18, -47.55, -39.3, -54.467, 137.817, 130.699, 106.17, -43.1667, 46.433, -61.7667, -61.7833, 47.283, -64.2, -68.9, 51.0, -3.5017, 40.333, 42.717, -69.55, -39.067, -154.9089, 168.97, 168.23, -91.0094, -123.6853, 8.42, 8.623, 122.567, 30.9331, 30.9778, 31.0619, 31.0475, 4.494, -51.05, -51.0667, 142.2164, 59.08, -118.1631, -114.1597, -81.4406, -47.5, -115.5667, -101.655, -115.5786, 18.067, 93.9, 126.35, 136.5, 25.7406, 27.4181, 27.27, 28.8992, 28.8475, 27.3831, 28.3039, 28.3031, 28.3053, 27.4489, 27.4175, 27.7608, 28.6331, 27.1228, 27.4964, 126.633, 35.4333, -49.217, -118.2036, -95.7003, -94.3861, -89.8214, -120.2833, -120.2833, -120.3167, -106.6167, -86.2958, -86.0678, -79.1186, -87.0881, -93.6481, -114.1667, -95.2, -53.8833, -110.75, -110.6833, -83.8083, -103.65, -74.2692, -74.7883, -121.5383, 48.77, -116.2153, 75.8, 33.78, -82.5194, 121.65, 101.98, 9.705, -90.5, 146.1769, 11.5333, -107.2039, -60.4, 148.5669, 24.0169, -113.7333, 146.0345, 11.4, -78.12, -101.9414, 7.87, -93.3981, 26.017, -78.0833, -78.0833, -78.0833, -133.4833, -133.5167, 168.333, 151.1121, 151.0819, -4.2231, -82.3125, -117.8214, 46.4, 9.6331, 5.767, 2.5, -95.4242, -85.0778, -91.505, -91.5431, -93.2536, -48.167, -99.0383, -68.55, -68.55, -68.55, -70.1, -73.3, 55.4, -53.233, 137.1, 60.72, -50.633, 95.467, -41.867, 72.633, 123.459, -121.95, 104.35, -90.1892, -115.1219, -88.1144, -88.0842, -112.7333, -112.5019, 138.85, 75.45, -110.2667, -117.7231, -83.2389, -67.0525, -91.4083, -103.5333, -103.55, 69.43, 13.6331, 124.187, 141.3, -87.6894, 89.049, 71.25, 144.4406, 125.3167, 111.673, 36.154, -80.6364, -102.35, -94.65, -111.3833, -111.3714, -111.3833, -71.8903, -109.433, -93.5014, -58.9667, -73.1017, 32.2297, 30.55, 29.0831, 29.15, 12.083, -37.81, -40.28, -58.481, -55.983, -42.85, -41.883, -95.19, -95.1919, 121.85, -76.2461, -76.4492, -40.11, -21.95, -41.3, -49.52, -49.21, 9.567, -88.1958, -88.9703, 25.35, -50.86, 24.333, 27.4331, -106.55, 144.3088, 144.2995, 40.967, 24.7, 60.45, -53.933, 107.3, -128.4, -140.15, 141.783, 131.783, -16.4992, 53.45, 37.3, 28.85, 27.15, 27.167, -78.55, 129.3, 2.9453, 79.95, 132.8939, -68.75, -70.2583, -114.6586, -98.1561, -87.9278, -77.4239, -89.6678, -83.3131, -88.1681, -110.7614, -113.4089, -81.7019, -95.2736, -90.2286, -90.1978, -81.3928, -81.5147, -77.4008, -81.6667, -81.65, -82.7078, -88.8222, -82.2, -83.3178, -88.8456, -90.2214, -90.0778, -88.9167, -115.45, -84.4667, -79.6772, -108.5797, -116.0167, 17.0, -105.8, -116.0167, 68.3, -40.467, -88.4317, 119.1092, -3.8075, -72.0036, 82.033, -37.767, 47.667, 75.8, 70.917, 17.27, 106.833, 106.867, 129.7167, -103.1872, 122.85, -96.917, 21.567, 66.35, 169.65, -71.1239, 103.7, 26.8, -84.9419, -86.5983, -80.4681, -99.4778, -79.1592, -98.6692, -98.685, -77.25, 24.8181, 24.7892, 25.33, -43.3, 54.9, 115.8794, 28.8, 84.27, -7.33, -8.6667, 102.335, 47.92, -115.4328, -121.4889, 90.233, 49.117, 19.68, 115.6658, 105.75, 120.9, -109.1789, 16.18, 57.7667, 45.4, 57.517, -82.9447, -87.3153, -84.4461, -118.0333, -142.0833, -51.71, 140.717, 140.483, -100.5725, -107.7361, -72.5022, -91.7108, -117.1167, 39.183, -94.3558, -97.7903, -94.4114, -71.5008, -81.4286, -83.4739, -92.1558, -92.1825, -88.8042, -107.8292, 131.1, 126.533, 23.733, -120.3333, -106.5439, -106.6872, -92.1289, 11.5842, 8.8, -92.6642, -109.3464, -113.5167, -6.0556, -112.1114, -114.5192, -114.4564, 150.9093, -119.8386, -90.3431, -2.1943, 35.2167, 150.8049, 136.1442, -93.0703, 89.161, -120.2947, -81.8628, -102.318, -99.9181, -114.2347, 18.12, 84.083, 73.717, 114.967, 126.217, 101.82, 112.18, 111.917, -115.6206, 5.874, 5.883, 36.833, -109.9667, 152.4606, -91.3311, 117.05, 117.2, 108.967, 82.9, 100.8, 113.07, 33.183, 67.161, 121.117, 101.5, 98.483, 118.1, 61.805, 130.949, -43.11, -34.867, -46.17, 58.25, -83.0678, 73.017, 29.7267, -102.6803, -111.3228, -105.8833, 28.246, -55.188, -101.7508, -118.545, -98.4089, -112.6114, -103.4342, -116.5378, -81.8467, -78.8339, -6.483, -118.9594, -119.6458, -78.3011, -102.9297, -80.3492, -95.75, 27.383, 23.5006, 19.64, 20.1308, -109.0097, -73.4333, -88.1028, 19.9894, 19.9067, 19.8753, 9.5975, 36.917, -84.3544, -67.6494, -90.6589, -90.6464, -91.8628, -82.36, -105.9, 14.0731, -71.15, -110.7669, -94.5828, -94.5022, -106.9103, -93.6356, -106.9475, -77.114, 13.96, -106.7403, 27.8633, -75.423, -116.2747, 47.9, 26.0989, -65.289, -122.0056, -76.729, -75.817, -78.87, -67.076, -84.209, 31.6, 136.22, -109.7536, -109.48, -85.367, -43.35, -65.098, -102.2625, -70.158, -116.5908, -116.5925, 141.7214, -122.1667, -90.7483, -65.9114, -99.8045, -99.7664, -134.4111, -134.5694, -134.5639, -134.7658, -134.7467, -122.15, 8.0, -60.931, -67.1667, -120.4725, -119.7772, -80.0553, 16.9506, 16.9531, 43.117, -43.66, 112.9, 115.0311, 29.2378, 24.2906, 27.8881, 8.3727, 117.566, 145.8667, 142.72, 25.6, 25.6783, -100.43, -118.4039, -87.993, 3.2203, 22.5544, 86.35, -93.0483, 69.212, 28.467, 105.9, 137.6628, 29.701, -13.508, 126.567, 130.55, 8.49, 8.9942, -156.575, 36.933, -157.9894, -156.4286, 173.7, -156.0489, 133.696, -155.9258, 145.5656, 10.1, 7.7367, 10.7889, 173.267, 173.3, -158.1058, 27.6667, 27.6783, 118.383, -133.66, 82.233, 41.1, 74.583, -77.1167, 23.4503, 116.77, 22.1, 22.026, -85.5519, 66.583, 114.165, 36.71, 121.4533, 28.467, 113.967, 117.432, 20.55, -114.3114, -114.2636, 18.0797, 6.2656, -85.1728, -85.0486, 12.7, 6.5267, 16.29, 16.29, -158.7417, 36.3697, 126.6453, -111.2822, 22.0, 40.7, 166.2167, 40.3, 81.28, -116.0339, 26.667, 41.22, -120.3333, -120.45, -120.45, 99.5333, 33.8, 45.367, 62.717, -112.5367, 141.8031, -159.6586, -115.0333, -115.1167, 22.469, 136.633, 99.533, 65.85, 32.35, 2.93, 2.933, -156.5658, -157.8014, -157.7833, 39.67, -78.8036, -109.8936, -114.7075, 101.97, 126.6, 43.3, 22.4669, -87.8856, 125.97, -97.9597, -112.4383, 135.25, -94.7725, -94.5969, -94.7306, 95.633, -152.17, -16.051, 24.8, -156.6753, 154.8, -82.4667, -82.45, 1.167, 60.133, 73.15, 79.833, 107.62, 84.85, 25.5031, 25.5019, 78.067, 83.167, 72.9, 86.42, 22.817, 22.4503, 22.45, 80.95, 38.93, 31.85, 12.914, 14.51, 14.85, 11.2975, 8.365, 13.4667, 116.0744, 139.8972, 116.7742, 43.115, 65.717, -110.3553, 138.55, -103.5428, 22.8031, 31.133, 25.15, 51.577, 75.983, 36.017, 120.658, 37.583, 38.15, -89.9492, 21.1939, -116.9167, 47.4, 36.4, 9.4433, -105.0953, 33.7831, 117.6064, 117.5553, 132.2737, 85.367, 85.617, 150.3087, 19.03, 140.317, 10.6167, -96.2725, 22.1867, 23.0469, 23.0469, 23.8331, 23.0333, 23.0339, -159.0436, 138.767, -106.6375, -11.4, -11.44, 35.4797, 107.62, 62.117, 49.2, 41.15, -110.1917, -94.3294, -99.0133, -155.3589, 19.75, -12.22, -2.27, -72.3247, -118.9208, -102.9208, -116.7667, 18.13, -22.6, -90.0964, 140.3556, 140.3273, -65.2, 20.0167, 174.7667, 11.08, 117.7217, -110.8, -103.75, -94.455, -116.1222, -162.3, -119.3833, -119.4, -119.5667, -117.9858, -96.5167, -122.9, -127.95, 91.667, 86.22, 86.107, 27.1642, 24.6167, 24.5831, 22.7606, 22.5608, 22.1967, 24.5192, 24.1, -110.5328, 152.7717, 152.8235, 10.3364, -75.6333, 34.8164, -150.4483, -149.4, -151.2392, -150.3167, -110.0167, 122.433, -11.233, -6.6, -88.1386, -102.0975, -99.8628, -70.4697, -119.1011, -121.9022, -94.3667, -94.3833, -87.8156, -87.9381, -122.2433, -122.5447, -83.6061, -64.4833, -104.1108, -91.9928, -91.375, -91.9683, 143.9197, 36.4167, 101.367, 65.2, 56.967, 47.117, -103.0889, -118.4389, -99.1081, -122.4167, 16.98, 125.883, -131.7117, -114.3603, -119.96, -120.0569, 15.03, -89.8997, -87.505, -79.005, -96.25, -148.2711, -105.6167, -105.6, -105.6, -81.8, -81.7522, -81.6833, 49.817, 118.617, 148.1405, 70.683, 50.267, 30.533, 36.1331, 32.549, 56.233, 44.0, 39.3, 7.083, 32.567, 102.883, 26.983, 102.833, 71.5, 48.283, 44.9667, 69.7331, 23.45, 66.633, -94.9831, -160.4375, 130.9558, 20.7, -2.5789, 10.1439, 30.5331, -11.4, 30.139, 29.633, -155.2364, 23.967, -157.9525, -157.9453, 104.532, 20.4667, 18.786, -160.2, -97.7167, 119.3, -100.945, 37.083, -111.8667, -81.4833, -102.7606, -97.6919, 51.1, -106.6167, -107.8, 14.8983, 136.4125, -103.6344, -94.3056, 24.767, -115.9667, -112.3833, 129.2, -103.2986, -103.3219, -109.1833, -109.55, 114.167, 151.8398, -97.9294, -97.9544, 28.6, -98.1136, -113.9331, 137.5231, -101.6706, -82.5275, -84.5278, -71.5431, -71.5414, -71.5417, -93.5206, -76.6, -87.1153, -97.8497, -82.6667, -97.8167, -102.9714, -109.1022, -118.2258, 42.586, -121.1378, -107.0233, 36.259, 143.8831, 42.804, 46.699, 45.528, -123.2, -156.6294, -58.75, 31.133, -5.31, -3.561, -77.5433, -77.5722, -98.49, -102.7333, -93.8833, 108.0667, 29.9, 29.8977, -18.0667, 24.3525, -80.0, -92.5747, -92.5433, -2.905, -101.3369, 49.6331, 32.2, 133.533, 52.23, 42.717, 34.167, 20.23, 20.34, -109.3167, -99.1228, -93.1981, 10.8117, 28.87, 103.97, 42.72, -81.4239, -9.467, 131.317, 35.0, 142.583, -80.3833, -82.5414, -128.7, -128.6833, -128.6333, -152.3722, 24.2433, 24.9056, 24.8625, 24.8569, 24.2442, 25.7867, -111.5972, 10.2, -102.8031, -102.7233, 141.183, -164.5483, 106.45, 11.0383, 8.0681, 12.47, 9.05, 127.4, 22.7131, 14.333, 21.0667, -121.75, -121.7242, -121.5819, -144.9281, -133.075, 8.45, 10.4814, 5.4628, 10.3306, 13.8864, 6.0956, 29.333, 8.75, 12.9078, 160.8331, 16.6167, 15.25, 15.26, 14.2, 14.16, 41.83, 79.183, -66.7, -105.0222, -90.2897, -93.1008, -122.4172, -83.9572, -83.9858, -86.6286, 135.217, 34.2, -149.4314, 7.6, 13.833, 14.9, 133.55, 80.5, 46.55, -111.9883, -152.4856, -152.3561, 12.5331, 12.65, -113.9653, 138.55, 0.0, 50.97, 47.65, 20.3556, 22.2519, 22.3494, 23.1281, 22.9331, -86.1758, 136.433, 82.367, 69.383, 2.65, 93.367, -14.967, 49.08, 22.6, 13.84, 16.3097, 7.1583, 6.9717, -113.05, 35.233, 38.7, 25.033, 82.8831, 82.75, -140.2, 33.9, 89.283, 28.633, 137.033, 9.6378, 9.6481, 9.65, 10.146, -122.7064, 33.2, 128.0, 9.1908, 32.562, 39.15, 72.75, -83.6333, -116.0667, 20.8, 20.7667, 166.0, -5.557, 153.97, 86.133, 28.083, 134.4833, 21.1883, 21.1, 13.5, 11.4883, 88.68, -89.5797, 15.081, 21.2167, 25.2331, 48.9, 162.9533, 34.25, 15.47, 15.439, 32.667, 40.85, 32.067, 16.15, 116.217, 75.85, 116.051, 43.15, 12.0092, 27.1881, 27.0517, 26.9528, 26.9617, 46.7167, -0.167, -162.6333, -65.0, 164.283, -5.467, 26.8133, 26.9442, 32.883, 30.45, 141.7483, 114.1667, -157.57, 75.783, 46.57, 99.05, 100.05, 100.8025, -113.7667, 20.9331, 4.9859, 20.7, 17.77, 16.17, 15.883, 31.6, 40.2, 39.15, 35.45, 92.75, 79.233, 37.03, 43.8, 57.7831, 52.98, 45.167, 108.75, 135.3, 13.8539, 25.717, -106.3681, 14.1331, 80.033, 134.4, -113.8933, 14.15, 14.08, 14.11, 7.8156, 21.3208, 21.1731, 14.1, 22.33, 33.4, 17.9897, 11.3219, 12.2, 12.7256, 21.35, 23.1425, 14.5, 33.22, 14.5056, 8.875, 9.0106, 9.4975, 8.7742, 9.3225, 9.7375, 9.6217, 2.317, 98.8667, 101.71, 101.55, 124.78, 103.22, 103.2, 16.085, 110.333, 54.65, 23.3, 12.17, -89.8, -89.8, 78.667, -115.15, -115.1333, 30.17, 138.6783, 10.2369, -156.3211, -156.3561, 133.3027, 139.383, 130.699, -1.591, -80.0856, 126.8, 49.9, 66.083, 20.75, 20.7506, 11.9019, 26.533, 58.933, 102.683, 102.9, 126.6222, 128.71, 27.8081, 27.9081, 27.6367, 123.667, 123.7, -149.6114, 37.7, 77.283, 82.95, 134.633, 25.383, 132.33, 22.5, 65.4, 68.7831, 147.88, 124.5222, 78.067, 36.1667, 80.367, 144.433, 55.4, 125.25, 63.6167, 21.03, 29.967, 42.6, 140.75, 46.05, -68.4167, -77.75, 29.3192, 29.2258, 29.1553, 24.733, 47.966, 87.2, 18.02, 17.73, 10.1277, 10.8795, 167.7333, 126.9167, 115.7611, 145.0638, 135.5552, -88.0631, -102.1431, -115.6, 13.76, 135.733, 111.9667, 12.417, 36.333, 76.567, 23.02, 94.5, 65.5, 86.0, 78.35, 69.6994, -73.35, -73.4333, -71.2333, 12.2831, 23.817, -13.217, -63.367, -64.833, 124.55, -74.3333, -113.75, -122.7189, -69.12, -117.8831, -72.4, -71.1167, -78.2833, -72.1667, -63.2833, -67.5667, -112.0167, -117.25, -70.8667, -72.9167, -71.75, -121.2967, -103.8836, -108.8347, -91.1236, 152.7161, -92.065, -86.03, -91.8731, -85.4336, -85.3203, -86.9028, -86.9369, -91.9875, -86.0028, -50.33, -114.6147, 2.89, -43.883, -51.5, -79.2167, -118.0119, -85.4122, -97.3483, -117.7814, -57.771, -98.1114, -119.0644, 74.333, 7.8289, 71.5, 71.8667, 25.6342, -121.5833, 20.867, 22.35, 130.6358, -27.1, -27.3217, -103.7575, 21.13, -178.8, -95.1519, -110.4333, -110.6167, -74.3167, -82.0136, -71.4647, -92.6208, -109.98, -111.3208, -111.8125, -111.8333, -86.2692, -105.1206, -101.0489, -92.7681, 146.3707, -93.2158, -107.3147, -82.5942, -79.7297, -85.205, -124.05, -118.6, 145.9124, -105.5833, -95.5275, -105.4706, -105.3553, 118.4647, 118.4625, -114.3603, -105.8167, -99.1442, 147.7975, -63.4833, -104.3753, -88.8967, -152.3106, -95.3247, -73.985, -91.173, -99.4603, -122.0047, 146.1772, -95.8864, -82.9508, 141.2652, -95.9572, -110.3986, -101.2492, -117.6333, 167.8, -102.6306, -94.3147, -102.6881, 10.246, -45.31, -95.3153, -90.2908, 140.5378, 140.5175, -101.9456, 16.25, 22.4, -115.4855, -115.4, -93.9508, -93.9019, 99.517, -98.1847, -157.0064, 99.933, -82.6072, -71.5725, -76.2742, -90.7889, -76.2944, -85.8261, -82.6572, -118.2117, 115.33, -104.6036, -84.7283, -108.6686, -108.7261, -76.4333, 10.9167, -121.9614, 17.87, 12.3, 8.5225, -95.9969, -133.05, -133.0667, 1.35, -98.3447, -101.7167, -76.35, -124.4533, 5.31, -101.5603, 105.97, 106.767, 48.817, 13.13, 17.66, -87.9333, -84.5789, -74.4653, -13.6003, 121.55, 120.533, -88.7594, 103.9667, -83.3606, -83.3075, -76.4933, -86.7297, 28.4756, 28.5656, 28.1542, 28.2117, -73.4333, -105.8667, -105.6069, -105.5319, -105.6747, 122.967, -99.4983, 22.45, 33.6331, -99.0967, 133.2138, 80.25, -109.2667, -61.1, -121.7136, 16.8994, -105.25, -69.667, -103.2153, -92.6, -106.7414, -117.4389, -60.583, -15.3892, -120.9242, -122.0669, -115.1333, -115.1958, -115.1633, -105.1419, -115.0333, -115.1847, -105.2131, -78.617, -71.1333, 20.27, 35.77, 9.7153, -120.3533, -114.5806, 22.233, 147.2144, 147.2033, 147.1222, 9.9094, -117.6989, -89.1236, -76.9003, -116.0333, -79.1883, -123.575, -79.1411, -82.0219, -71.6667, -79.4664, -79.3661, -112.0967, 6.1992, -71.1, -121.5011, -121.33, -112.0067, -113.0389, -112.1472, 122.4236, 144.7566, -96.4861, 16.826, -95.2514, -71.1658, -87.3508, -77.7928, -87.6056, -95.2117, -71.1239, -98.4172, 112.833, 16.41, -123.485, 20.7, -149.0364, -70.9167, -110.195, -81.4264, -71.65, 6.8, -71.728, -79.367, -91.31, -91.2528, -91.1914, -118.0747, -118.0167, -73.6833, -73.6833, -77.7, -96.8769, -104.1669, -85.0317, -96.86, -90.9686, -122.255, -98.3992, -103.5439, -103.8225, -103.4775, -103.5122, -74.7667, -87.924, -98.2928, -17.755, -120.1875, -110.4167, -110.3, -57.895, -70.0333, -65.6, -66.817, -1.15, -105.2667, -105.2667, -109.2664, -55.6667, -71.2, -71.3, -106.5975, -72.7833, -113.2686, -97.3756, -122.6886, -103.743, -109.5, -3.7589, -113.35, -113.3622, -106.3169, -92.9158, 114.0967, -94.9189, -120.675, -119.6167, -119.55, 17.5331, -86.3181, -82.0383, -122.9014, -92.6936, -76.4667, -86.2631, -72.3047, 10.8506, 8.95, -1.4381, -94.2228, -114.4667, -1.535, -84.1869, -81.8097, -93.2397, -111.6022, -94.3714, -94.3358, 5.7517, -119.1194, 123.733, 11.45, 12.5133, 138.4219, 10.317, 120.7031, 12.45, 12.2414, -86.2892, -106.2889, 13.615, 15.02, -92.2047, 5.5194, -113.4333, -72.0667, 19.9575, -102.1575, -122.2208, -119.0264, -107.6592, -119.95, -41.383, 16.5, 93.383, 159.383, -110.6003, 8.0358, -71.8167, -81.5378, -84.2622, -84.3308, 114.88, 11.4878, 8.2317, -92.5947, -118.7192, 121.3303, 121.3186, -93.6453, 9.412, -5.6492, -101.3658, -118.9358, 28.7, 134.3, -104.6333, -103.0822, -1.1831, 14.2, 22.35, 21.95, 3.089, 45.767, 16.5331, -68.3833, -74.05, -53.9, -112.8, -112.7667, -112.75, -70.0, 118.9, -174.45, -2.868, 8.1275, 10.2744, 65.7167, -111.8653, -102.3758, -75.1389, -76.8786, -80.4042, -86.8086, -86.7658, -77.1708, -117.0156, -77.5692, -109.2261, -109.4114, -110.2894, -109.4578, -93.5675, -110.6667, -97.0136, -90.0517, -83.1136, -88.3903, -80.2597, -79.4386, -84.6058, -80.312, -82.5328, -90.4006, -61.003, 0.195, -96.1458, -61.6, 91.133, 92.47, 107.8, 114.48, 112.38, 146.6694, -115.5392, -115.2239, -115.3181, -115.5667, -100.9294, 15.017, -85.533, -74.74, 9.45, 35.233, 3.67, 26.167, 14.217, 12.4342, -91.8831, -110.9667, 25.317, -97.1461, 30.0492, 12.8, 21.0167, 19.683, -111.3133, -111.4833, 147.9722, -159.3683, -159.3405, 100.467, 14.09, -78.8208, -121.9333, 16.44, 33.781, -110.8, -106.5333, -112.5928, 33.0497, -84.0267, -84.1294, -59.95, 8.0614, -67.8833, -110.2736, -79.7594, 25.2333, -83.03, -103.7158, 100.217, -77.6928, -89.3381, -81.3289, -96.8542, -98.13, -96.565, -96.7667, -121.2683, -112.6353, -96.7475, -112.6547, -68.5125, 168.383, -110.5833, -112.0794, -113.7125, -122.85, 14.1203, -113.65, -94.8, -87.8408, -83.8039, 7.0481, 119.4, -103.4986, -107.0542, -119.0545, -105.1833, -118.5658, -80.425, -116.2278, 7.317, -104.39, 111.617, -15.15, -71.3667, -40.0667, 107.4, 126.917, 15.5331, -93.1497, -98.0858, -1.25, 118.067, 14.18, 14.286, 39.517, 29.6144, 29.6142, 29.6717, 8.3953, -100.2675, -103.8833, -85.6292, -9.15, -81.7844, -97.6928, 15.3, 111.1, 119.92, -88.0728, 153.2616, 153.3409, 6.5681, -116.45, 8.4125, 100.267, -94.5347, -112.3631, 140.33, -102.3447, -93.7214, -93.5642, -115.8806, -111.8167, -107.4358, -143.3672, -109.0167, -130.2333, -114.9, -108.9444, -94.3694, -74.8686, -94.3444, -113.85, -118.51, -122.2167, -81.415, -134.6497, -124.5167, -92.2619, -92.15, -92.2389, -114.2625, -112.3069, -96.0506, -106.9333, -109.0233, -118.3608, -78.8125, -119.8808, -109.75, 30.267, 109.4, -148.7217, -121.7692, -70.1594, -121.8144, -130.9167, -64.9333, -82.965, 25.817, -110.5589, -94.9256, -110.4408, -85.3364, 17.0008, 37.6, 119.48, -107.9333, 31.233, 14.5169, 14.48, 13.95, 13.88, 12.6, -98.6542, 0.595, 0.6183, -110.0667, -110.0667, -111.6433, -119.3667, -87.7958, 8.7875, 143.3047, -78.6814, -93.9489, -77.4336, -118.7325, -102.6361, -102.7969, -102.6586, -115.1872, -102.64, -121.2878, -89.5311, 35.617, 101.733, -81.9947, -82.3939, -95.7883, -86.3878, -111.8914, -111.8533, 153.1947, -111.4164, -111.8564, -111.8033, -107.915, -2.3308, -121.9031, 24.0525, 8.24, -79.2, 9.0631, -114.5833, 23.25, -110.5022, 1.25, 20.217, -120.4514, -81.15, -84.0769, -81.15, -0.1833, -81.3706, -83.5097, -51.183, -51.133, -108.1833, -111.4333, -121.9667, -90.1814, 142.2991, 120.32, -121.812, -105.0736, 144.2769, 144.2769, -75.1333, -64.2333, -101.4956, 5.09, -122.9164, -94.7189, -94.7117, -94.65, -78.545, 106.75, -118.1464, -124.0378, -74.0028, -92.5064, -119.1017, -70.1983, -113.4, -116.2175, -80.05, -94.8892, -116.0833, -112.5167, 7.7469, -115.7, -107.8333, -85.3444, -110.7167, -122.76, -110.1333, -109.1333, 100.617, 7.8206, -108.6531, 159.079, -111.333, -78.8825, 17.66, 89.367, -102.4, -111.8625, -147.9714, -122.675, -106.7667, -121.1167, -116.1878, -115.9667, -78.7981, -114.2667, -106.3214, -106.5214, -122.1472, -118.2353, -118.3889, -120.8667, -121.0531, -75.826, -121.9592, -121.9428, -106.7611, -119.7833, 3.763, -7.9031, -78.0061, -60.0, -73.0167, -89.0711, -82.3914, -85.6636, -82.3528, -85.7392, -85.6444, -111.7667, -98.9681, -0.006, 32.6, 24.7006, -105.085, -105.9, -108.4042, -118.4767, -118.5692, -98.0256, 26.4478, 35.033, -90.92, -87.4178, -71.3636, -115.5964, -121.7003, -93.2469, -83.0344, -111.9167, 1.7268, -75.4825, 146.7856, 145.5592, -80.2161, 140.5978, 19.2331, 36.317, -91.1672, -89.8222, -92.4108, 102.161, 13.567, 13.8819, -101.8136, 10.719, 33.0, -113.3167, 27.531, 19.65, 11.133, 146.3861, -92.4853, 80.883, -107.15, -115.9925, -118.85, -130.6167, 7.4133, -86.3942, -103.3719, 7.65, 9.267, -94.8942, -94.7544, -94.8261, 8.9667, 39.25, 167.13, -7.4558, 25.5083, -106.5678, 16.953, -109.2269, 44.5, 22.13, 22.11, 22.1192, -97.6578, -94.1786, -79.025, -79.0592, 124.617, -118.95, -108.9417, 145.1517, -115.0167, 13.2, -13.2, 18.09, 106.77, -111.25, -111.25, -84.0233, 14.4831, -78.3728, 111.033, 121.6, -76.05, -104.0669, -110.6833, 6.21, 6.38, 103.77, 8.3, -42.28, 115.98, 23.95, -107.5472, 17.67, 18.65, 18.72, -120.9167, -98.4583, -86.3631, -79.2331, -79.2067, -76.0833, -1.993, 9.1503, 8.1, -101.0833, -101.0833, -101.0667, 26.317, -91.0986, -106.6667, -2.9681, -62.8, -123.0736, 18.45, -117.4803, -114.0214, -121.5833, -121.5833, -64.6833, -2.333, 4.5, 35.783, 20.7433, 27.3158, 107.483, 138.1786, 5.7617, 146.2711, 113.6, -51.072, -36.633, 113.592, -82.5167, -35.7, -35.783, 117.6, -45.917, 114.97, 81.15, -5.7, 149.1794, -113.6317, 149.2169, -123.1333, -130.0333, 4.8, -88.5586, -83.6528, 158.937, 123.979, -66.9, -90.7653, -120.0378, -120.1106, -96.7708, -96.9433, -83.4022, -97.45, -69.8878, -95.9203, -87.5239, -97.0925, -81.8464, -119.5, -89.3453, -111.1167, -85.3942, -96.1661, 98.217, -121.0011, -121.1461, 80.183, -101.5428, -3.6781, -3.5556, -3.7892, -3.7225, -3.4503, -3.7, 69.7, -123.5239, 139.067, 97.833, 97.933, 98.55, -101.1, 25.548, -64.1, 150.7831, 8.933, 125.817, -64.117, 11.5842, -1.77, -114.3, 59.083, -93.2325, -72.1167, -101.1444, -67.0461, 47.55, 46.3167, 48.8, -76.1353, 55.5, -95.9675, 4.3, 13.083, 95.34, 11.98, 11.983, 44.033, 8.2117, -148.093, -56.0167, 137.6733, 151.5683, 135.19, 135.4, 135.333, 119.0, 40.083, 77.283, 171.3833, 12.617, -158.1964, -159.7153, -156.9661, 22.971, -156.44, 39.833, 39.8, 30.0681, 12.87, 15.58, 15.7, 35.9, 104.97, -158.2261, -158.1989, -158.2042, 130.3, 67.3, 18.75, 8.709, 102.252, -112.2872, -4.4881, -123.5333, -69.574, 38.317, 125.08, 18.6, -89.9894, 73.533, 152.8519, 15.24, -2.1617, -117.0247, -118.8447, -118.6333, -123.85, 96.95, 15.9133, 15.8033, 40.102, 38.55, -7.34, 52.73, 31.65, 15.2, 149.7289, 8.525, 12.2544, -121.7789, 20.67, 18.717, 13.08, 12.98, 13.0731, -111.1833, -74.3081, -107.8714, -107.9556, -107.7286, 13.6994, 13.71, -92.8364, 44.7, 112.867, 114.02, -86.1481, -111.3167, -118.9617, -91.535, -7.38, 124.8, -86.168, 48.367, -105.9392, -60.017, -84.0236, -2.275, -86.0875, -91.4517, -71.4383, -108.1833, -108.3161, 110.13, 96.1, 106.283, -100.9097, 41.867, 41.9, 6.8019, 120.8436, 115.7119, -63.77, 145.1859, 74.883, -134.967, 90.85, 0.37, 130.6834, 0.467, 151.2107, -99.5017, -99.4239, 112.67, -96.5814, -96.6097, -96.6778, -61.278, -52.8667, 120.9833, 134.2339, -86.2939, -86.2514, -87.6522, -76.0, 116.145, -94.0211, -107.0167, -150.638, -96.4433, 8.514, -80.2003, -80.4647, -117.45, -108.4786, -111.25, -157.8025, -70.5333, 14.55, -93.7053, -92.5789, -82.6167, -82.5178, 1.3667, -75.7, -111.6306, 21.4831, 163.683, -93.4817, -110.6833, -113.6667, -104.317, -121.5767, -121.5803, 31.3, -123.8628, -95.7836, -85.8353, -109.4667, -122.5, 32.573, -68.733, -90.7489, -49.138, -67.65, -67.7, 7.08, -103.2717, -81.0517, 48.933, -70.8644, 119.7497, 119.7497, -89.9664, 163.6833, -117.25, -62.158, -81.7139, -75.4283, 115.9797, 145.4283, -88.6078, -140.85, 30.333, 0.55, -90.7664, -85.1839, 15.32, -45.37, 148.0181, -71.12, 15.7, -42.82, -112.0303, 13.15, 13.82, -97.1642, -81.4328, -73.1333, 5.2267, 87.75, -40.53, 165.117, 16.883, -87.6236, -51.91, -79.3875, -85.6586, -83.1333, -82.0289, -121.9667, -121.9486, 37.867, -87.2314, -89.9225, -83.0636, -97.0753, -54.033, -119.9869, -119.6047, -60.6, 37.6, 28.133, 13.66, -80.7167, -88.9989, -119.7667, -122.1242, 5.8875, 170.4167, -8.4558, 22.9, 133.6201, -119.9, -96.8581, -103.9214, 55.183, 11.9333, 153.0903, -109.2333, -87.5483, -87.3794, -97.8, -8.0, 144.7094, 138.0684, 138.0637, -90.1158, 66.8194, -88.7533, 5.3967, -94.3508, -82.6658, -92.6394, -93.2225, -95.7908, -92.9244, -92.9175, -97.6067, -92.9097, -90.1333, -90.1875, -105.0656, -101.7386, -122.1142, 10.8831, -77.9669, -77.9844, -110.3378, -86.453, -79.865, -101.6333, 77.5, -88.8636, -55.8333, -55.8333, 143.732, 152.7156, -112.2275, -96.6364, -83.3669, -121.5678, -94.8342, -57.1, -57.583, 120.367, 123.62, 0.2, 11.35, 11.33, 59.633, 50.0, -111.65, 31.717, 58.9, 84.217, -99.2306, -99.2939, -93.1953, -89.6511, -93.3269, -117.9942, -99.1861, -71.3933, -112.9981, -74.8458, -132.1667, -82.0167, 30.867, 115.633, 13.433, -100.825, -100.4167, 115.6, -77.8, -96.8022, -95.9733, -13.25, -74.7172, -13.25, -149.2542, 116.267, -75.74, -90.3483, -114.2722, -97.8725, -98.817, 133.067, 137.967, 132.783, 13.71, -88.2803, 179.75, -54.91, -63.153, 23.417, -155.5761, -102.6125, -90.0597, -109.45, 62.867, -101.2922, -104.5867, -86.35, -67.1378, -108.0947, 146.6239, -122.5939, -71.4425, -83.1819, -72.035, -135.8667, -135.1833, -81.4167, -83.7872, -97.3514, -142.5844, -120.4275, 128.82, -105.0, -89.8192, 97.033, 30.65, 23.617, -95.7831, -98.2511, -98.2539, 136.076, -116.1017, -102.2217, -112.1931, -142.9961, -103.3644, -79.3636, 132.9791, -107.2847, -79.5683, -90.4708, -98.1236, -100.5914, -109.2658, -106.5333, -99.5333, -117.72, -84.0678, -94.1167, -68.2608, -108.4447, -95.8675, -114.7733, -155.6103, -97.4011, -123.6011, -74.6, -128.7167, -58.1167, -103.8333, -79.8603, -121.8667, -122.1164, -148.9692, -151.6397, -96.5903, -107.8667, -122.3667, -122.2833, -123.1339, 166.7333, -119.2956, -97.6097, -137.5167, -82.9, -80.6803, -73.5833, -116.1047, -107.2833, -100.4444, -81.8561, -100.6203, -117.8656, -101.3686, -88.2533, -98.6422, -101.2767, -100.8072, -97.2392, -122.2558, -85.7811, -123.1622, -109.8589, -93.7747, -76.6089, -118.4247, -100.345, -121.4667, -113.3167, -108.5167, -114.0681, -90.8853, -96.4808, -92.1589, -116.5169, -116.0767, -76.6992, -65.1667, -0.242, -76.7586, -105.4333, 98.7, 2.733, -90.3439, -97.7458, -122.8722, -106.2061, -100.2228, -110.7167, -110.7167, -104.4514, -104.4761, -98.5528, -98.5694, -99.2497, 115.8075, 3.963, -103.5264, -103.3769, 34.433, 118.5372, -96.9772, -107.8853, 9.1414, 9.2764, 27.8294, -84.7931, 95.833, 10.3769, 116.12, -5.5333, 144.8321, -80.6439, 144.97, -80.6539, -104.6, -2.9553, -100.9833, -90.6417, -98.5825, 135.5, -54.183, -54.183, -103.625, -94.8022, 10.3481, -107.8722, 147.1981, -95.7036, -110.05, -100.5372, -92.1822, -89.9864, -89.8036, -94.2494, 124.917, 2.217, -8.036, -99.7864, -122.945, -68.783, -70.933, 112.433, 101.58, 110.52, 103.383, 142.4173, 139.3375, -97.5714, -91.9364, 4.2156, 13.0439, 140.383, -120.5117, -58.067, -58.1, -58.02, -120.8825, -120.5128, -90.0722, -112.4333, -116.0225, -116.0278, -71.183, -89.63, -72.8278, -88.7442, -88.5667, -0.675, 149.8989, -87.4578, -100.1222, 9.7656, -123.3972, 118.2789, -89.6617, -101.7089, -120.7833, -80.7308, -120.8, -123.9167, 27.2167, 34.633, 103.833, 23.117, 35.58, -108.0833, -107.7069, -108.4892, 15.55, 9.0, -119.7681, -111.0231, 21.7, -120.0078, 15.3, -121.6147, 12.9203, -82.0819, -82.0372, 6.1256, 96.117, -109.8675, -91.8861, -99.183, -79.0411, -120.0181, 44.22, -121.9167, -94.8833, -80.1336, -80.3164, -80.4331, -80.3836, -80.2803, -98.25, 104.68, -116.2667, -118.5833, 9.1, -105.9167, 40.483, -103.3, -70.9086, -80.9047, -118.0197, -71.0186, -74.4489, -76.7633, -56.0833, -107.0333, -70.9211, -106.0167, -115.015, -121.5833, -63.1, 131.2988, -107.1833, -1.567, -4.73, -84.2011, -101.15, -102.0258, -102.1889, -102.0, -79.8833, 6.9914, -82.2156, -118.7667, -81.4386, -112.8333, -106.2772, -115.4114, 25.7331, 16.11, 76.533, 27.3, 27.21, -93.6617, 9.1892, -71.1167, -75.0642, -95.9269, -88.7267, -83.6769, -96.6233, -104.9619, -111.5667, 142.0867, 13.9314, -101.6192, -81.2967, -105.8825, 150.1819, -147.1667, -95.1842, -83.6844, -96.8983, -113.0167, 21.733, 2.233, -112.05, 3.017, -73.67, -73.7422, -83.2497, -83.25, -111.1633, -98.9814, -81.9197, -76.8028, -99.4006, -123.2711, -79.7197, -77.475, -68.6925, -68.6747, -80.8561, 13.574, -75.0667, -118.0825, -117.0347, -114.4667, -111.6333, 24.48, -118.8689, -85.8889, -118.4089, -87.9044, -88.0294, -118.1056, 153.59, 131.263, 153.967, -117.6328, 54.017, 58.567, -152.2817, -97.9553, -93.2947, -119.7758, -98.9514, -95.4822, -73.6183, -121.6092, -107.7333, 43.1, -98.0603, -120.9833, -92.6167, 73.15, 73.0, -113.5003, -112.6167, -58.536, 137.5276, 6.533, 166.65, -97.7047, -93.2289, -91.8122, -99.2656, 135.1515, -89.7322, -89.0339, -101.35, -101.2964, -101.2733, 103.083, 27.53, 91.7, 30.733, -84.1283, -84.1158, -65.4667, 113.987, 114.0, 93.017, 113.9, -64.5, 138.933, 152.833, 20.767, -100.6558, -100.6083, -100.8042, -122.2667, -113.9678, -114.0911, -114.05, -114.0925, -71.7167, 15.05, -98.0356, -120.1156, -103.7008, -115.5469, -98.0333, 147.9777, 26.6, 140.467, 11.2667, -37.15, -45.4167, -22.65, -49.6667, -52.7, -53.7167, -56.1331, 139.517, 125.295, 141.967, 125.166, 131.083, 131.417, -105.2919, 44.29, 6.9373, 20.35, -109.5458, -109.7542, -92.4369, -88.2397, -88.0333, -88.0681, -100.4489, -100.4078, -113.1528, -44.01, -109.9514, -80.4972, 5.9533, 10.9342, -120.9506, -120.3536, -122.0481, 30.067, 30.32, 119.7331, -101.5089, 6.62, 122.517, -74.155, 27.783, -76.118, -118.1619, -116.0794, 126.383, -122.5064, -107.6833, 83.783, 7.2617, -1.8853, -90.5233, -159.3375, 45.85, -156.9475, -157.0961, 39.617, 143.35, 147.417, -102.8072, -113.1667, 32.883, -79.9869, -101.433, -64.7833, -64.6833, -91.6719, 100.983, -93.9619, -80.3, 23.15, -119.6, -90.6381, -90.7197, -121.9944, -89.6681, -92.1164, -80.5233, -80.6206, -92.0406, -10.362, 7.8064, -86.4175, 150.2275, -122.4717, -71.9233, -85.8417, -118.1053, -74.9333, -119.6481, -77.917, -37.06, 4.7381, -89.3169, -114.1706, -85.265, -121.9103, -121.8453, -121.8556, -100.2, -100.3, -43.867, -95.7461, -56.2, -100.4389, -111.8381, -54.083, -57.65, 10.7, -111.5, -39.29, 16.4, 15.95, -106.1869, -86.2181, -86.4075, -87.2847, -80.3861, -74.265, -90.1058, -83.6975, -78.4494, -83.9858, -109.3075, -84.8275, -83.7833, -91.7556, 151.1247, -84.6139, -72.6006, -73.75, -73.4167, -73.4167, -107.6928, -107.8792, -97.2017, -107.8975, 3.5831, -78.7333, -0.508, -68.2167, -75.55, -119.42, -104.8683, -110.2333, -110.12, -111.5792, 140.1956, -113.4167, -118.6706, -80.2172, 145.0964, -104.9292, -78.9664, -74.9697, -115.6667, -81.0872, -90.5097, -96.7478, -105.7517, -93.9603, -115.3303, -110.7169, -67.2819, -110.7119, -113.95, -105.5667, -105.5333, -92.7578, -92.8008, -149.4261, -80.6, -80.6, -80.6, -80.6167, -80.65, -4.2, -93.3147, 14.59, -38.36, -84.8361, 148.0308, -110.5889, 116.0247, 14.51, -93.2697, -98.0833, 149.8458, -108.4133, -76.7358, -101.183, -84.2147, -117.6333, -81.6728, -79.9164, -79.9697, -91.1761, -114.2667, -117.2833, -111.6722, -106.045, 9.8358, 141.167, -111.445, -111.5167, -117.5019, 139.1837, -120.7236, 44.318, -116.5622, -111.5872, -5.6156, -5.6, 41.867, -1.6858, -92.7672, -112.6833, -89.9744, -89.4614, -83.3325, -83.4028, -75.7264, -72.6144, -95.8744, -120.8447, -41.9, -41.217, 41.8, -121.4833, 13.65, 142.7744, -102.7586, 150.1437, 150.1532, 146.4747, -107.8225, -109.8833, -89.4117, 37.6167, -116.85, -116.9558, -119.3192, -119.0667, 142.5, 37.5667, 37.5167, 18.111, -103.9439, -80.7647, -116.2333, 17.0, -113.35, 8.1792, -113.8925, -93.215, -113.9667, -117.6833, 150.4217, 0.117, 17.8, 11.02, 11.057, -119.3333, -119.35, -87.2989, -83.7492, 16.067, -80.755, -95.4508, -106.2606, -106.3103, -94.1542, -77.3, -92.4703, -115.87, -109.7058, -115.2333, -119.3711, -115.5167, 138.8509, 146.2747, 150.2741, 146.4394, -123.0, 138.9273, 126.1025, -120.2469, -80.75, 140.7739, 140.7833, -121.5667, 148.7721, 147.1342, -93.5781, 139.4875, 139.4817, -112.8167, 138.7088, -113.1989, 117.8425, 147.1428, 148.0908, -58.447, 145.5419, -127.05, -122.4353, -119.1783, 147.235, -120.6511, 23.667, -88.0064, 13.95, -121.95, -120.1678, 39.033, 36.0, 29.18, 29.167, 72.733, 14.3014, 85.317, -93.3508, -93.4706, -81.8033, -83.4128, -111.7222, -92.2617, -92.3939, -115.8667, -81.5992, -105.8225, -92.0978, -110.3306, 31.7, 40.183, -121.5403, -80.6508, -94.2428, -87.7578, -89.9842, -115.645, -82.8183, -121.9142, -121.9303, -121.6425, -74.8417, -121.7167, -117.1667, -93.5878, -80.9925, -116.4194, -116.4203, -83.4411, -104.0233, -72.8153, -82.2711, -77.9053, -80.8483, -95.0056, -87.2019, -91.5647, -84.7697, -75.3794, -119.8833, -103.4578, -103.4583, -122.3081, -122.3328, -122.3156, -83.9333, -72.0792, -95.2236, -84.3369, -87.8956, -88.8533, -93.8972, -93.8789, -71.2994, -77.8883, -118.0711, -121.6278, -123.3258, 114.9, 129.6, 149.6149, 40.283, -124.8, -116.55, -121.9356, -121.7333, -112.2722, 8.867, 11.5442, 11.8092, -105.0, 7.7, 28.367, 58.5, 90.43, 118.687, 12.5, 104.717, 79.65, -85.0756, -102.7328, -102.7739, -102.7783, -110.2708, -112.9667, -113.3944, -115.8114, -115.645, -101.0458, -81.3264, 115.5142, 7.6392, -7.3667, -79.2472, 71.419, 24.8108, -3.983, 14.125, -125.7667, -85.3936, -111.6392, 157.267, -112.3, -88.0769, 148.9899, 120.6997, 11.783, -86.6625, 12.98, 9.4842, -86.65, 23.44, 23.6803, 24.0369, 24.1203, 115.9561, -1.1692, -1.2294, -0.8031, -100.7078, 100.167, -77.0803, -93.7019, -86.3728, 73.967, 33.0497, 140.983, 134.183, -116.7506, -83.9683, -115.3597, -88.3083, 139.2592, 139.2273, 150.7937, 150.8363, 16.2, 3.321, 153.3809, 41.517, -91.0728, -91.0464, -87.64, -87.5997, 143.5036, -113.7939, -86.2367, -95.3339, -95.3614, -79.3, 23.583, 21.0681, -79.6586, 119.91, 141.217, -121.1944, -99.17, 64.717, 32.917, -82.3161, 97.4, 12.486, -3.07, -125.6, 31.0, -78.8219, -78.9333, -109.7311, 151.35, 175.77, 55.5, 142.08, 156.68, 46.667, -179.3669, 144.7297, -169.8, -175.8, 68.55, -110.0617, 20.65, 13.12, -0.3, 22.0331, 21.9464, -142.9967, 135.496, 178.7, 157.7, -94.6431, 177.45, 72.67, 146.726, -84.1667, 138.2, 129.866, 127.967, 124.88, 136.967, 79.05, 92.067, 16.967, 125.528, 127.683, -81.9197, 21.53, -61.6833, -61.6833, -81.5667, -3.821, 36.75, 108.43, 104.783, 102.083, 100.167, 99.95, -115.1833, -117.8167, 43.633, 10.98, 71.583, 127.083, -116.5753, 125.383, 39.283, 11.5706, 12.8458, 106.1667, 100.767, -123.8667, 115.917, 116.65, 106.083, 6.21, 177.5, -84.6167, 118.9, 118.8, 108.217, 118.0, -1.6, -1.611, -70.0608, 176.133, 112.58, 112.7, 81.95, -122.2847, -122.2647, -81.7158, -81.7753, 105.95, -99.7692, -64.2333, 135.833, 140.727, 114.15, -7.283, 118.3956, 53.0331, 150.1358, 149.8302, 146.5126, 146.5592, 117.1797, -46.05, 28.05, 17.3883, 76.0, -71.4736, -93.8583, -89.3586, -86.6781, -86.6892, -77.467, -129.0333, 7.8656, -106.6, -35.2, -35.25, -61.8167, -61.8, -91.3408, -93.0956, -93.0856, -71.3439, 1.48, -76.97, 20.93, 21.05, 20.97, -109.9772, -78.2903, -122.8394, 178.559, -4.0103, -87.1375, -96.6881, 13.11, 65.349, -1.1, 68.39, 45.417, 129.5, 129.55, 91.017, 71.367, 15.03, 15.445, -93.2583, -86.9653, -95.8867, -90.0814, -90.1736, 21.77, 5.7506, -114.6189, -106.5303, 22.55, 60.033, -90.535, -114.1, 44.419, 8.6314, 136.15, 79.983, 152.1612, -117.2, -117.4, -7.267, -1.85, -103.5097, 145.583, -149.0717, 88.82, 125.233, -88.5, -110.0511, -94.36, 89.07, -111.8319, 136.1174, 119.62, 150.0847, 9.1333, -74.955, -99.91, 13.306, 8.6808, 11.21, 6.95, 11.133, 9.4064, -8.25, 9.9803, -68.133, 12.8083, 11.8653, 9.0167, -121.0008, -112.5, -94.3736, 141.87, -105.95, 41.967, 34.7, -122.0325, -82.4625, -74.1694, -75.7514, -82.4128, -81.6236, -85.5033, -87.3744, -104.1886, -69.5367, 151.7985, 151.707, -84.1722, -74.2219, 118.84, -103.4275, -83.4289, -121.2419, -118.5939, -97.0036, -96.9103, -121.0178, 119.7989, -84.8178, -84.8594, -91.2744, -81.2192, -99.3333, -72.1811, -72.1911, -117.0475, -83.2008, -124.0553, -83.28, -117.8803, -76.8769, -76.493, -71.2833, -97.3431, -88.1828, -93.0297, -84.4464, -89.0703, -84.4706, -89.0817, -2.7864, -70.9583, -77.0481, -77.1108, -91.0578, -98.1189, -98.0286, -74.4364, -65.3333, -80.3614, -85.3953, -121.9667, -119.6828, 77.117, 77.2, -117.3667, -102.8692, -109.95, -92.7558, -81.6333, -63.35, -92.3122, -113.2897, -78.9158, -76.0717, -85.8831, -93.3792, -91.8839, -82.2156, -88.7189, -89.5325, -116.2933, -120.4864, -90.0167, -90.1303, -90.2511, -90.0289, -90.0833, -81.4236, 174.183, -103.8678, -77.3833, -91.3672, -101.4897, -70.0003, -80.9181, -94.4897, -73.9692, -73.7622, -73.8803, -95.38, -116.243, -114.4833, 13.567, 135.5726, 109.2, 141.6486, -78.9436, -78.9453, 2.13, 1.091, 7.2, -86.4928, 89.667, -72.6167, -72.65, 6.4242, 11.9064, 9.9653, 10.2442, 7.3364, 9.2242, 7.1492, 34.683, 139.05, 22.5, 19.02, 19.03, 139.5, 31.9831, 29.8, 140.7164, 43.383, 45.45, 165.98, 18.95, -86.2658, 4.4067, -93.1594, -81.4928, -114.4022, -71.65, -151.6655, 121.0, -9.35, -104.0167, -104.0, 21.9, -124.65, 18.133, -105.55, -97.7675, -113.1522, 109.55, 99.0331, 138.2164, 47.783, 60.067, 43.117, 31.9, 44.0, 57.55, 60.8694, 40.2, 118.333, 138.5057, -158.7042, 131.65, -110.9681, -110.8458, 143.13, 105.807, -113.95, 62.75, 49.95, -86.2492, -165.44, -75.0833, 102.7167, 136.4926, 145.9719, -109.7881, -126.6167, 151.5766, -82.3214, 8.4, -116.05, 7.1525, 14.37, 8.6575, 11.0058, 10.5492, 21.8842, -73.2208, -97.4855, -76.1922, 167.939, -97.4353, -76.2833, -77.0075, -76.2289, -88.95, -72.55, 141.0733, -97.4647, -76.788, -126.8, -126.8, -126.75, 15.67, -84.0603, -75.3583, -111.6325, 16.1497, 16.12, 18.65, 121.7794, 121.7547, 19.48, 19.38, 129.9167, -76.4414, 116.6586, -110.0, -85.6997, -72.6567, -102.1703, -105.0133, -0.417, -94.2556, -117.8667, -85.6472, -87.5914, -118.525, -141.9292, -93.2253, -73.1708, -108.25, -108.25, -79.4167, -124.2436, -64.0, -71.1383, -105.25, -81.9372, -123.7167, -122.0167, -119.5047, -114.4208, -113.7667, -119.5097, -71.7333, -106.3667, -72.3622, 113.5936, -117.2, 94.117, -115.1164, -109.8389, -107.15, -98.7747, -85.775, -80.2158, -60.6667, -123.2833, -100.7494, -100.6694, -147.3253, -120.5306, 135.8784, -71.6303, -78.8467, -85.5997, 116.7222, -81.1494, -99.8361, -99.9386, -71.1667, -154.3333, 6.6592, -82.6167, -111.0519, -97.85, -97.8486, -75.5197, -72.0642, 1.283, -71.1736, 13.3025, 9.2105, -71.0833, -74.9833, -1.25, -17.033, -17.05, -15.93, -7.5833, -7.583, 166.4333, 166.45, 3.794, 24.95, 33.367, 27.267, 14.5, -52.35, 31.25, 19.85, 90.681, 25.85, 27.633, 86.883, 11.833, 31.633, 106.65, 82.9, 48.1, 15.2, 48.8, 72.9494, 150.5353, 20.7, 54.75, -115.9461, -108.5583, -107.95, -60.883, -75.417, -151.0017, 59.617, -71.7017, 130.8976, 150.229, -104.7553, 65.683, 6.8703, 139.0056, 24.6567, 11.0567, 11.2553, -51.75, 80.767, -85.7881, -85.6753, 24.883, 72.9, -109.8081, 12.54, 94.47, 21.7333, 147.1961, -116.9903, 11.9331, -113.2667, -78.7239, -72.5056, -123.0833, -122.9667, -98.6564, -100.4175, -97.9667, -98.0919, 151.7413, -95.3844, -79.4, -122.2208, -122.2642, -122.2208, -122.1447, -113.8981, -100.9628, -100.9447, -90.5133, -87.1706, -98.0333, -122.4433, -79.6833, -112.3342, -111.7517, -118.2594, -111.7553, -116.795, -81.1508, -122.85, -121.9833, -118.7017, -84.2375, -84.2486, -114.4714, -81.03, -81.0331, -96.717, 12.783, 11.0272, -100.5342, -92.7739, 149.8374, 10.2767, 9.3533, 12.4381, -55.51, 143.217, 49.65, 131.083, 5.5553, -82.0778, -105.0608, -81.6214, -76.0333, -117.395, -117.3494, -75.1239, 5.955, -103.425, -120.3333, -120.4264, -81.2833, 23.9331, -83.3056, -83.7136, -88.5036, -99.7633, -87.955, -116.1689, -75.9872, -76.05, -121.9639, 10.33, -93.8061, 30.63, -102.3592, -118.6967, -102.3867, 72.967, -7.567, -0.95, -103.2372, -91.875, 133.0581, 14.4831, 8.7864, 7.9264, 141.717, -101.7206, -75.4442, -111.9667, -112.0114, -111.9369, -102.7458, 82.95, 37.479, 55.383, -156.0442, -114.3158, 35.633, 143.2164, 135.5, 20.8, 9.5183, 131.617, -119.2275, -119.2303, -88.5467, 143.15, -74.0667, -119.45, 133.917, 20.967, -80.8653, -98.315, -96.3033, 128.423, -97.6469, -97.3833, -97.6006, -96.025, -113.9667, 8.0506, 156.2, 45.45, 66.05, 52.583, -116.2828, 151.28, -113.8161, -121.4333, 16.44, 17.1, 16.3997, -94.8897, -94.7392, 8.2525, -114.1, -114.0833, -107.9667, -139.8333, -139.8333, -110.8328, -74.9839, -104.5561, -86.5631, -68.7006, -78.4517, 120.4167, 112.4331, 93.23, -122.8064, -44.81, -60.85, -113.35, -119.55, -89.8297, -83.1036, -94.9297, -98.7664, -114.5739, -88.0817, 32.983, 115.583, 10.033, 6.3756, 20.4167, -102.1356, -82.4, -122.9033, 138.217, -95.8992, -119.5167, -119.5167, 147.6008, 91.717, 160.53, -76.7833, 73.3831, 155.783, 142.967, 140.9, -71.0333, -84.2233, -96.1258, 6.5331, 6.5392, -110.4667, 38.1167, -84.5308, -83.65, -86.4692, 118.4889, -100.1447, -123.615, -110.85, -178.717, 115.1117, 115.1092, -117.6003, -116.9717, -117.0128, -89.2075, 135.4456, -86.5519, 2.9206, -126.0, -126.0, -117.1756, 48.3, -85.4492, -86.5486, -106.38, -106.3153, -155.8747, 17.9667, 9.6667, -110.7344, 21.9, -103.2683, -64.329, 4.833, -80.8733, -80.8581, -80.0833, -93.7394, 149.0828, 149.127, 149.1229, -72.2911, -81.9681, -0.65, 19.1667, 148.4667, 148.4589, -116.0, -112.6389, -103.7058, -103.7219, 81.95, -98.9517, 15.16, 15.05, -95.1464, -122.6047, 36.0, -111.7369, 55.1, 147.8753, -112.8003, -124.0192, -117.4964, -79.4333, -97.1, -122.1997, 9.6014, -81.3331, -81.325, -81.2436, -123.5317, 1.75, 99.8, 105.83, 2.359, -74.05, 19.0, -106.0925, -117.8389, -121.5531, -121.6183, 22.1, -92.7636, -92.8572, 30.417, 18.38, 6.0806, -81.3045, -67.07, -92.8106, 135.517, -94.9597, 13.98, -93.7036, -93.7503, -97.55, 13.1, -83.4, -78.8333, 139.383, -102.3464, -88.5581, -88.5569, 18.6331, -92.6467, -95.2725, 16.41, 10.72, 10.7206, 91.867, -73.05, -119.4333, 163.17, 33.117, 11.933, 18.98, 18.99, 10.2219, 12.7, 18.3, 10.8667, 164.17, 167.98, 90.62, 137.87, 40.68, 76.98, -178.4833, -69.238, -78.0072, -76.4933, 75.25, 141.017, -107.8408, -123.9239, 107.983, -95.2808, -88.9106, -75.7167, -75.7167, -75.6667, -75.6667, -95.5464, -111.2806, -137.05, 26.017, -92.4467, -1.512, -2.43, 167.2406, 5.413, -6.9, 6.14, -5.05, 16.05, -1.93, 25.3506, 25.3756, 25.4831, 25.3967, 7.117, -107.6725, -109.6436, -7.8603, -7.8631, -40.04, 146.7106, -107.05, 142.3158, -113.0564, 22.8, 22.85, -107.6333, -114.4581, 23.65, -5.8728, 28.783, 136.2, -93.2308, -120.245, -86.445, -118.5506, -90.5545, -109.0167, -84.18, -117.2467, -117.2333, -102.1167, 17.12, -1.5833, -1.27, -99.6522, -78.6108, -112.1333, -119.1753, -119.2069, -119.1375, -76.9947, -110.35, -110.5167, -110.4667, -93.8683, -93.1261, -119.3539, 156.483, -101.2061, -101.0367, -57.9, -155.3683, -125.1, -122.4717, -120.5031, -121.6744, -103.4819, 100.35, 33.42, -88.0903, 9.9267, 11.8803, -69.229, -56.06, 140.5212, -100.2989, -88.7719, -100.2981, 31.85, 32.4831, 11.0331, -111.4483, -111.4478, -170.7136, 89.08, 22.34, -109.9639, -115.1217, -116.0561, -81.2956, -109.7689, -113.0317, -75.8217, -82.7883, -99.85, -120.5403, -4.4297, 23.3928, 23.3953, -111.1333, 24.033, 18.8667, 105.167, -96.2536, 21.1, -87.6225, -95.6039, -95.7233, -95.5717, 19.7667, -108.3506, -155.2922, 21.61, 46.883, 2.7, -48.3, 2.7367, 2.6264, -118.0939, -118.0836, -36.7, -64.1, 144.0758, -121.8514, -149.0992, -149.0917, -64.083, 38.3, -78.2644, -80.1489, -81.2061, -116.5097, -116.5053, 109.3, -116.84, -73.185, -122.1403, 119.73, 79.3, 65.7, -100.9736, -1.65, -1.6364, -89.0867, -85.6606, -85.6828, -117.0878, -116.1925, -101.5575, 25.633, -83.9614, 106.13, -65.7333, -65.7167, -112.4386, -101.3897, 64.133, -120.7658, 11.97, -103.2061, -103.2092, -103.2, -86.4858, -107.6236, -37.43, 17.4667, 117.7494, -46.867, 70.083, -121.6239, -121.7167, -117.5478, -108.9494, 138.6281, -90.4978, -57.133, 21.7028, 21.3708, 2.617, -51.183, -60.483, 174.983, 138.2864, -114.9161, 119.5811, -74.6167, -111.8219, -111.9, 29.4639, -56.73, -95.5586, 2.3367, -88.2958, -87.6672, 22.83, -121.5894, -114.2897, -104.7503, -81.5572, -81.4392, -103.2667, -122.2781, -109.9167, -114.1708, 148.2428, 148.1639, -120.4319, 69.383, -65.0667, -111.5083, -106.5833, -120.9167, -90.4506, -87.6803, -95.0678, -107.8667, -118.9425, -111.6167, 10.315, -116.9442, -41.783, -41.75, 151.0181, -82.3475, -111.8, -64.3333, -64.35, -80.05, 11.6908, -79.6339, -95.2892, -95.5042, -88.12, 133.017, -113.8858, -118.1447, -103.7408, 44.7, -88.4781, -88.5319, -119.1167, 63.344, -57.152, -56.517, -120.6856, -120.6283, -44.96, -52.4, -77.267, 151.5919, 76.467, -120.925, 85.1, -37.267, 11.47, 101.1333, -68.4975, -92.1186, -122.8667, -76.4167, -0.42, -124.0833, -124.0833, -84.5919, -41.133, -38.217, -97.2814, -97.2292, -113.7622, 39.25, -78.0319, -108.6942, 21.183, 76.933, -96.3472, -96.1558, -88.9781, -145.4983, -145.5014, -88.1417, 6.95, -116.9311, 117.6836, -58.033, -111.3447, -111.3028, -111.6333, 77.633, -117.45, -119.7167, 148.1902, -117.8969, -109.8378, 116.0189, -99.0897, -93.2833, 151.2443, -121.9333, -85.4333, -82.2986, -121.9833, 57.1, -105.6886, 18.2, 18.23, 15.729, -105.4739, -80.381, -55.8333, -55.833, 166.5, -61.9, -114.4167, 167.217, -61.55, 134.2667, -136.2214, -81.2744, 27.2219, 23.9669, -84.7928, -101.8667, -101.9, -135.45, -137.3667, -88.3325, -52.41, -121.2506, 10.883, 40.533, 116.0433, -122.7333, -97.2417, -77.25, 100.277, -118.8528, -118.6264, -118.7964, -118.8522, 81.9, 67.6, 122.067, -3.2258, -82.9967, -77.0564, 150.6783, -87.3167, -87.1869, -119.5833, -119.6, -102.5897, 45.02, -89.5664, -118.3, -89.6839, -75.133, -75.8, 50.3, 38.8, 116.92, -60.55, -72.0333, -71.017, -97.0481, 6.3864, 56.3, 2.8731, -80.4361, -83.5742, -94.1106, -79.0031, -87.5067, -100.8239, -77.0858, -89.92, -90.8236, -83.5736, -95.4097, -103.1736, 115.9, 115.9764, 115.8728, -89.1072, 12.5, -73.57, 86.22, 14.2, 71.933, 71.515, -87.7355, -36.76, -122.6078, -77.3167, -77.25, -78.3, -78.3, -77.3925, -79.1361, -132.9372, -98.0097, 19.7, -84.9767, -84.9511, -109.885, -106.7108, -40.483, 158.5833, 69.15, 158.65, 108.867, 34.2667, 60.77, 8.7419, 9.2878, -112.0947, -105.85, 108.1, 100.8658, 99.9, 101.15, 100.0667, -89.1303, -75.2311, -74.8178, -75.0111, -75.1728, 46.352, 8.4425, -73.0833, -78.2161, -113.3, -113.3, -101.6011, -88.308, -104.4936, -99.3106, -75.2042, -110.9167, -81.9167, -80.0272, 100.267, 104.844, -75.5011, -112.0825, -112.0817, -112.3667, -112.0039, 100.167, 98.4, 98.317, 106.633, 103.967, 9.73, 7.7, -61.35, -114.0667, -105.14, -111.4017, -89.7083, -79.467, -73.086, -89.9775, -82.7189, -111.2667, -105.5164, -111.5833, -90.2167, -90.2167, -98.5325, -41.48, -112.7833, -78.1203, -79.9433, -100.535, 30.0167, -115.8006, -96.1817, -120.6422, -115.8333, -72.8333, -100.3531, -100.2856, 17.833, 22.5267, 22.5831, -107.8883, -121.4167, 22.4331, 22.55, -85.1936, -121.2025, -113.3333, -80.7014, -58.317, -63.883, -105.15, -121.0086, -98.9, -118.8253, 142.167, -96.0667, -96.0667, -114.0, -114.0, -114.0, -109.8581, 43.383, -119.0, -104.7978, -109.9219, -81.5356, -96.0, -92.0189, -91.9347, -112.25, -95.0833, -116.18, -111.2167, -111.2008, -116.6339, -104.5797, -127.7333, -102.5183, -108.4072, -94.1089, -104.8078, -104.8089, -116.1189, -111.8378, 160.7, 117.0831, 106.667, 119.78, -104.0556, -71.2525, -121.1472, -121.1822, -102.2042, -111.8606, 26.117, -86.685, -108.4597, -114.45, 8.683, -88.1828, -96.3258, -112.7386, -84.2342, -44.91, -47.333, -41.783, 23.6231, 130.4217, 7.5881, 92.267, -118.81, 10.393, -76.22, -76.3, -82.6475, 78.28, -120.6831, -130.1, 21.49, 65.933, -94.7025, -79.9217, -80.2144, -116.4686, -90.8058, -69.9647, -122.6833, -80.6, 39.533, 24.5, -108.0514, -120.8244, -120.7333, -110.1, -120.6456, -74.4025, -72.4153, -102.8281, -103.5189, -114.8667, -84.33, -84.3711, -101.7022, -102.2153, -101.7461, -99.3808, 57.683, 14.1, -82.1422, -90.4656, -74.0914, -73.4667, 12.133, 37.23, -98.4772, -136.3667, -111.7339, -111.75, -94.2647, -75.4464, -110.9333, -110.9442, -104.5678, 24.5833, 19.35, -104.5164, -3.467, 24.75, -116.9544, -56.8833, -86.3358, -87.9714, -81.5308, -76.6592, -70.6961, -4.1167, -70.7294, 13.267, 16.9333, -65.067, -1.15, -158.0892, -94.6614, -90.9683, -112.4086, -112.4444, -112.5711, -63.8333, -76.5108, 19.283, -14.917, 141.63, 143.8, 131.3831, 129.38, 158.2167, -68.4667, -70.1167, -67.3833, -4.733, -3.167, 11.9, -66.4333, -113.9792, -60.3333, -123.2667, -133.6264, -96.5553, -69.7167, 149.2747, -55.4, -66.45, 153.5456, -150.0819, -79.9131, -119.1167, -82.5167, -77.15, -119.6333, 128.65, -93.5861, 129.15, -70.3608, 58.0, -114.2842, -114.2803, -111.8406, -115.7861, -115.25, 15.7, 32.4331, 33.4797, -100.2875, -111.7, -121.4464, 29.45, 98.672, 28.767, -89.6119, -114.1906, -114.2419, 34.5664, 71.75, 68.683, -117.5883, -93.3169, -117.7658, -95.5661, -80.1083, -45.0, -108.0039, -97.1019, -66.5253, -100.931, -77.9667, -77.9667, -77.95, -6.6, -25.698, -55.7, -8.6164, -88.6364, -83.4181, -83.2556, 109.3, -88.9983, 36.3164, 12.95, 73.85, 142.5696, -155.5583, -79.0089, -120.5667, -89.5453, -90.4056, -90.3247, -105.0731, -118.3833, 20.2331, -110.4667, -102.3894, -106.6464, -102.2711, 46.33, 9.484, 21.7967, 21.7864, 21.3792, -63.967, 143.1, -106.3333, -110.7175, -89.4342, -89.6997, -148.8389, -98.2833, -7.4167, -103.3519, -109.2056, -116.4992, -91.5058, -84.9925, -2.45, 141.4705, -122.9486, -122.6003, -70.3003, -122.6894, -86.5258, -122.4089, -122.5381, -120.4719, 13.57, 13.6, -80.45, -51.16, -52.233, -35.43, -48.72, -48.583, -16.35, -63.917, -82.8872, -124.9333, -124.75, -141.0061, -134.6447, -127.45, -78.2872, -154.3164, -154.3197, -154.32, -123.4983, -97.0592, -96.8231, -94.0206, 137.7144, -82.9703, -59.15, 70.25, 92.717, -69.2622, -79.25, -79.25, 25.617, 142.2347, 8.78, -90.9719, -127.3667, 118.6317, -82.7142, -82.7931, -82.4194, -97.3094, -97.3458, -74.6847, 129.5282, -80.4667, 152.8655, -97.4264, -80.215, -123.5, -64.3, -122.8833, 147.217, -96.4278, -107.8331, -124.5011, 138.0104, -124.3333, -80.2628, -148.0672, 37.217, -122.7586, 168.32, -87.8636, -79.2167, 25.6283, 25.6114, 25.6589, 25.6017, -55.971, 10.067, 130.8, -46.367, 171.2, -98.55, -101.3744, 23.067, 14.2, -121.5, 27.067, -98.5686, -116.855, -116.9833, -113.5744, -90.8411, 116.55, -116.6089, 13.0639, -113.5744, -123.1286, -75.5572, -73.92, -73.8842, -121.7706, -79.25, -117.0292, -105.035, -107.1333, -106.9894, -114.7111, -108.7592, -114.6881, -124.5, -124.5, -73.2228, -54.383, 16.633, -58.783, 101.367, 99.8, -99.7908, 14.45, -115.5833, -90.4642, -91.135, 14.99, 12.445, -61.5, -98.7281, -145.03, 14.4, -90.3017, -85.4278, -113.6, 107.967, 133.9, -112.4322, -93.3878, -112.4208, -60.483, -55.476, -51.383, -104.3714, -68.0089, -68.05, 11.5383, -111.8825, -92.0747, -2.7031, 28.183, 28.217, -101.8561, 119.067, 15.767, -110.7547, -82.9239, 25.333, -116.9636, -119.9061, -116.8353, -120.6953, 18.6, 21.5667, 32.383, 12.683, -75.3333, -95.6292, 38.15, -63.109, -93.5839, -89.4519, -87.8672, -87.5906, -120.5167, -120.5167, -89.7564, -159.4828, 38.064, -105.6667, -78.555, -122.6833, -122.6667, -122.7667, 37.149, -130.45, -130.45, -120.8081, -43.117, -98.4942, -89.65, 76.383, -111.0167, -111.025, -36.867, 148.555, -122.5164, 150.9127, -119.7581, -87.7622, -71.4325, -81.4, -123.2303, -111.6508, -108.4908, 35.333, 70.367, 28.3331, -155.5453, -155.7078, -155.6272, -155.7022, -1.94, -4.367, 118.53, 27.0167, 26.9667, 79.43, 36.517, -98.2, -104.4983, -104.7169, -96.483, -67.5, -67.5, -57.9, -57.933, -65.904, -83.8, -83.017, -73.1, -113.55, -70.55, 118.73, -86.3, -86.2833, -76.1164, -80.7842, -87.0422, -122.2981, -117.1861, -117.1086, 128.15, 29.3181, -111.3064, -70.967, -68.363, -74.15, -81.9983, -81.9914, -57.283, -152.735, -124.1333, 28.0603, -100.2472, 28.9, 13.483, -99.1925, -98.9603, -79.2825, 79.833, -155.8219, -156.6736, 28.1917, 28.0789, -155.8453, -77.9, 69.083, 25.7092, 127.283, 125.8, 125.67, -88.71, -118.9361, -118.8778, -69.2167, 54.083, 46.125, 59.4, 97.167, -46.05, -46.0331, -50.6831, 124.867, -64.0333, -64.0333, -64.0333, 120.333, 118.95, 124.95, 108.617, 110.467, 123.917, 89.567, -103.9833, -124.0333, -124.4, -124.6167, 147.7937, -77.3, -114.2272, -164.65, -122.9336, -120.7833, -117.0833, -127.65, -128.0333, -71.3833, -71.3833, 11.1331, -112.9833, -112.8, 35.983, 36.883, -108.4922, -106.3833, -100.186, 11.5428, -122.5167, -122.5, 66.938, 9.883, -122.9136, -124.555, 144.2578, -123.812, -120.9475, -119.8525, -91.4281, -120.9419, -91.1919, -125.3, -70.683, -100.2389, -71.517, 150.6792, -88.7189, -83.5692, -39.3, 109.2167, 95.783, 118.867, 24.4106, 23.9, 23.5764, -149.7283, -106.7333, 130.0161, 130.0148, -127.2167, -80.9, -115.7461, -70.5475, 18.2, -87.7861, -87.8136, -84.5833, 10.8167, -80.5864, 105.179, 13.456, -112.8833, -79.2189, -117.3333, -61.55, -75.513, 43.491, 35.488, -113.2594, -103.7492, 109.963, 8.5731, -122.1333, -97.7064, -121.7425, -120.7167, 81.667, 11.1058, -61.5, 70.783, 24.3, -78.6839, -89.5525, -78.7819, -78.6989, -96.7439, -105.2353, 79.433, 24.37, -116.9158, 50.6667, -89.1022, 14.43, -116.4975, -111.1861, -98.2736, -117.6525, -111.7333, 13.17, -70.6719, -70.6722, -108.7722, 96.2, 89.233, -92.1167, 45.4, 28.5692, -88.1594, 26.5164, 26.3714, -177.917, -144.333, -109.2569, -77.7, -103.2828, -103.0536, -103.2108, -159.806, 31.05, 49.6, 70.3, 55.933, -95.1361, 13.7, -92.8925, 73.333, -104.4325, -104.4428, 21.4667, 21.3681, 21.3058, 12.98, 28.665, 29.3944, 23.633, -120.3164, -98.9214, 120.0458, -106.0, -107.2411, -107.1997, -93.7167, -111.2747, -97.7833, -123.73, -112.6833, -104.575, -110.7456, 101.3406, -78.0753, -91.7486, 26.5081, 34.917, -81.8203, -115.4603, -121.1172, -71.1264, -75.9667, -105.7167, 30.82, 82.3, -34.917, -34.9233, -59.7, -104.2881, 153.0922, -122.6067, -122.2906, -122.2986, 144.5203, -98.5253, -103.3675, -117.1894, -121.1392, -108.7281, -104.9428, -105.2264, -122.2386, -95.0997, -95.0803, -122.2536, -121.9211, -117.3167, -117.8347, -103.7589, -98.5197, -113.8, -113.9, -106.2111, -115.2833, -105.5722, -121.7, -120.8, -93.8, -96.2658, -95.0161, -109.2572, -124.3006, -107.7167, -95.2419, -102.5533, -111.2667, -105.4164, -115.3375, -105.3333, -115.3444, -93.6381, 127.5297, -97.1531, -111.8333, -115.4272, -100.6608, -92.61, -90.0003, -76.9153, -117.4131, -97.2947, -97.3297, 12.1031, 15.65, -104.6, -104.6667, -104.6667, 15.83, 7.6967, -79.6947, 10.5078, 4.03, 4.15, -162.665, 13.633, 12.4708, 43.05, 10.4, 13.67, 43.7, 11.4425, 11.367, 134.049, -81.2975, 9.6758, 32.783, 140.6766, -1.7331, -77.7381, -106.0833, -119.7711, -119.7956, 19.84, -87.1753, -122.2144, -118.7314, -44.467, -90.5803, -108.7769, -59.05, -94.9667, -94.9833, -64.6333, -89.8772, 15.97, 1.1789, -118.1833, -118.1833, -111.7892, -111.8045, -122.9133, -121.6, -67.367, -21.9, -21.9, -116.7494, -116.75, 27.267, 7.9956, 7.383, 7.7942, 8.3308, 8.5833, -73.8686, -89.4508, -89.4653, 6.7, 145.3101, -66.117, -94.2072, -91.7719, -108.2667, -89.7322, -114.7322, -96.7428, -123.7931, -102.3192, -101.7886, -114.1581, -112.0775, -117.1597, -119.2633, -77.5114, -81.7936, -90.3889, -122.3772, -111.81, -72.1333, -93.97, -82.7958, 143.1167, -79.45, -77.3203, -123.1, -123.0833, 143.1425, 150.7794, 150.7761, -84.8778, -80.5206, -111.7, 83.55, -123.3572, -118.4981, -91.8875, -81.8833, -79.3333, -104.4478, -107.7583, -78.7492, 13.475, -107.7261, -107.7492, -107.7264, 24.04, -74.3667, -111.9125, -116.315, 14.45, 18.13, 17.92, -119.6917, 12.612, -68.5167, 99.667, -110.5481, -97.5881, -42.64, -67.8, -64.261, -43.167, -69.283, -67.749, -52.083, -98.8117, -107.2667, -102.9622, -66.0542, -106.6347, -50.91, -99.983, -89.4986, -81.7119, -69.1775, -88.7444, -107.3, 18.23, 22.067, 17.44, 17.4697, -118.3714, -62.9, -55.5433, -110.1, -101.375, -72.7158, 21.25, -118.2244, -117.3881, -117.4386, -108.3742, -108.4767, 151.1556, -92.6122, -72.9833, -64.7833, -73.5, -69.55, -71.8333, 26.133, 13.049, 46.733, 46.7, 40.5167, 119.53, 39.9, 40.117, -106.05, -114.0125, -79.9592, -77.6717, -79.9742, -82.0953, -122.0333, 20.24, -67.1203, -83.7006, -81.3667, -87.7017, 19.9, -102.4333, -117.2064, -100.5358, -72.2667, 139.8054, 139.756, -87.7769, -112.8414, -101.3667, -59.75, -111.6314, -97.6619, -101.55, -54.3, -52.367, -89.0708, -104.9042, -86.2097, -70.9175, -72.8045, -77.6767, -92.4917, -70.9222, -8.25, -92.8181, -112.25, -86.1758, -89.0931, -105.9833, 150.4775, -123.4694, -79.69, -97.0567, -97.0464, -100.2119, -87.2269, -117.1142, -94.6292, -84.6919, -105.0472, -112.2167, -109.65, -109.7836, -103.6933, -81.7756, 117.0106, -57.8833, -77.7986, -79.8961, -114.9167, -114.9167, -77.6805, -77.8931, -80.3075, -118.6672, -110.6833, -119.6564, -81.0575, -90.5647, -85.6417, -114.0631, -107.2667, -96.1686, -136.2167, -118.85, -106.2453, -109.0528, -109.2394, -114.4375, -75.7222, -123.3211, 80.2, 22.37, 63.417, 117.1456, 117.1583, 8.567, -82.9839, -112.2906, -91.2778, 2.533, 103.683, -99.8069, -91.7758, 148.6261, -90.8853, -111.7, 112.8, 148.7778, 12.5831, 18.46, 122.27, -85.1514, -88.085, -117.6569, -75.4117, -85.1611, -117.8644, -78.7728, 33.45, -4.6331, -47.88, 108.53, 14.9, 21.57, -111.1508, -109.9586, 11.65, 11.3833, 11.3517, -117.3625, -112.4333, -60.785, -100.5264, -99.3358, -95.7, -91.3756, -103.5272, -113.5906, -123.3658, -123.3547, 138.8342, -112.05, -93.0975, 12.1292, -93.2789, -107.9167, -113.4133, -80.4667, 138.6763, -121.7355, -131.6667, -119.1842, -89.245, -88.4122, 24.9831, 32.833, -15.82, -121.0722, -2.5844, 147.4953, 14.55, 16.43, 12.0819, 43.6, 39.417, 39.82, -104.5419, -104.5083, -104.5333, -6.3317, -100.4611, 145.2428, -6.35, 9.3406, 123.067, 11.1, -0.3581, 10.1742, -68.117, -96.2869, 176.32, 8.9694, 4.4467, 4.3125, 115.5022, 8.6358, 177.05, -106.0833, -86.5044, -108.5397, -108.7403, -153.94, -121.4639, -121.7167, -91.4278, 25.95, -79.0333, -78.8333, 26.015, 25.7119, -79.6697, -79.0333, -105.0703, -78.8858, 136.8772, -104.1981, -76.1908, -80.5936, -97.4769, 81.2167, -120.1333, -115.493, -115.4855, -123.0472, -109.3486, 135.9, 44.567, -110.6019, -110.5961, -99.9925, 23.25, 10.2233, 120.65, -105.6611, 97.83, 25.383, -70.6564, 141.633, 151.2763, 19.767, 102.967, 88.167, 26.4, 7.8842, -80.3069, -67.57, -91.75, -85.4528, -102.4794, -90.4792, -104.0939, -120.8639, -95.1428, -75.3667, -86.8883, -87.7103, -93.0947, -87.7319, -98.7053, -98.8092, -101.1664, 73.88, 57.433, 28.2003, -105.7106, -92.6889, -114.9911, -81.9394, 146.5094, -123.3158, -120.9833, -72.9781, -104.9742, 66.967, 14.26, 38.7, -109.2561, -109.3442, -104.9483, -123.5356, -118.3047, 10.7881, 34.68, -115.6111, 13.4, 124.883, 22.0331, -123.4167, 7.1081, -93.4039, -93.8386, -60.0167, -60.0, -73.2, 121.833, 57.7167, -110.9333, 9.0719, -125.25, -107.3528, -121.4169, -121.495, -121.3, -121.4, -121.5897, -122.1825, -94.9761, -117.8208, -120.8653, -123.3667, -113.9667, -116.7292, 9.35, -76.3947, 12.94, -109.6808, -109.6353, -9.22, 130.3, 78.75, -119.0711, -107.25, -119.2925, 46.2667, -83.9561, -84.0797, -92.4617, -62.5833, -55.8, -8.95, -110.8133, 0.15, 133.333, 103.9, 64.217, 110.117, -111.6789, -86.8133, -91.1242, 5.091, -101.8067, -51.8, -72.5333, -122.4714, -122.8722, 5.4017, -114.0983, -109.4028, -84.5542, -72.0194, -65.8833, -82.26, -16.463, -116.5789, -86.8094, -70.8833, 3.2, -115.0908, 145.7167, 57.633, 22.23, 133.233, 104.133, 46.633, 16.66, 14.257, 54.091, -5.4981, -5.6614, 16.69, -146.9767, -146.14, 13.3158, 22.5, -6.752, 66.5294, -91.8036, -91.5364, -88.9461, -91.7225, -97.3081, -123.0011, 13.23, -111.8547, -121.6664, -121.6081, -111.4161, -79.5458, -97.65, -83.7819, -83.82, -80.4822, -75.5892, -92.8106, -71.7364, -73.0992, -80.6228, -75.5103, 28.6775, 28.6781, 29.1814, 29.2408, 29.615, -94.8047, 25.133, -119.2333, -119.2833, 121.6239, -64.0333, -113.9333, -113.9008, -119.8333, -141.62, 46.683, 23.1158, 23.6525, 23.71, -65.483, -102.2667, 15.3145, -108.5364, -101.017, -100.98, -57.967, -54.35, -123.55, -81.7711, -122.0667, -120.6661, -111.9694, -111.8964, -91.5256, -110.9167, -81.7747, -38.517, 13.0, 56.2, 57.95, 50.2167, 66.95, 58.217, 50.175, -89.3028, 9.8831, 128.3, 26.9167, 36.3, 150.6578, -94.1011, -4.833, -2.8, 126.0, 47.009, -95.6603, -84.68, -108.2167, -79.45, 118.067, 6.1833, 6.1042, 23.27, -118.7242, 10.0042, -109.3222, -102.3917, -82.8045, -81.9833, -123.3, -88.6617, -80.87, 12.4714, 21.7167, -116.5628, -131.8167, -131.8167, -131.8167, -77.2758, -92.9936, -107.1667, -82.7167, -82.8192, 14.7831, -81.5658, 153.2089, -74.0056, -93.3211, -77.4875, -82.7269, -108.7272, -103.5183, -106.2833, -85.9681, -160.4661, -81.2778, -70.7803, -79.0464, -101.5492, 127.467, 112.633, 69.233, 110.17, -5.32, -68.32, 7.2028, 38.847, -59.68, 108.67, -55.6, -3.8189, -3.7994, -3.8314, -111.7794, -54.717, -65.58, -65.435, -89.533, -117.8667, -117.8664, -98.1369, -119.6844, -119.8797, -119.0333, -119.8425, -63.2, -121.9911, -119.7222, -61.1, -61.117, -105.7833, -105.9753, -106.0889, -117.9458, -105.9322, -120.4333, -25.171, 18.35, -42.01, -120.4486, -107.1097, -118.4514, -118.4997, -120.5978, -110.8464, -104.6805, -122.6978, -97.8714, -64.266, -122.7119, -88.7833, -120.0778, -117.2306, -122.8103, -106.6981, -70.7, -93.7572, -64.3, -8.4106, -70.737, -121.9333, -121.9433, -42.16, -69.883, -81.5206, 109.583, -81.7, -81.717, -100.4922, -100.4942, -98.4539, -72.44, -98.4839, -98.5833, -65.1, -98.7028, -98.4719, -94.1072, -95.5678, -66.87, -66.75, -110.4569, -71.158, -110.5261, -89.617, -72.2, -116.9794, -117.1831, -117.1333, -117.1394, -117.2258, -117.1667, -56.433, -67.42, -67.4167, -122.4269, -122.3647, -122.5053, -118.1, -65.633, -60.95, -116.9583, -62.467, -64.667, -103.3283, -60.75, -68.418, -68.7, -57.15, -67.333, -67.803, 9.725, -66.356, -77.672, -120.7939, -120.6414, -120.6619, -101.0222, -97.9494, -68.417, -58.383, -116.9736, -119.45, -116.9975, -57.083, -6.661, -68.403, -122.5372, -64.7, -98.7589, -89.117, -2.0392, -1.7869, -109.2256, -47.883, -51.9833, -67.083, -38.21, -45.85, -56.71, -45.017, -44.3, -55.01, -39.85, -46.617, -46.65, -46.467, -47.55, -47.11, -55.41, -25.1, -81.2811, 141.333, 45.533, 61.2167, 18.4331, 18.33, -74.2067, 45.233, 60.88, 53.73, -82.5586, -73.8167, 46.0331, -73.6511, -89.7903, 72.667, 18.38, 18.4, 5.6505, -97.6956, 125.767, 138.717, 13.13, -82.3, -82.3, 11.1144, -128.9, 95.578, -111.5436, -111.45, 129.717, -106.7167, -106.7167, -106.6, 114.08, -6.083, -6.08, -121.05, 12.7075, 12.69, 18.39, 80.833, 100.983, -123.1333, -123.1333, -123.05, -120.6669, 22.883, -60.81, -89.055, 6.3631, -118.525, -87.9403, -89.735, -84.4089, -84.3333, -84.5167, -84.3572, 131.3, -83.7342, -104.3378, -114.6333, -79.14, -88.3214, -81.21, -81.0833, 104.7667, 21.77, 2.43, 2.467, 11.8667, -91.2494, 11.92, 28.9344, 28.8433, -81.6836, -81.5906, 28.18, -123.1322, -123.1331, -71.5333, 15.39, -90.4372, 101.733, 148.2644, -0.55, -122.8611, 8.9681, 7.7125, -66.8, -66.8167, -66.8, 9.7708, 142.0869, 10.655, 4.7903, 11.817, 9.5492, 11.7856, 12.737, 10.767, -117.15, 6.4169, 15.47, -158.0819, -157.9933, -107.05, 13.523, -123.9056, 9.1239, -73.7, -110.0833, 9.8033, 12.0883, 10.7192, 11.1944, -116.6333, 169.983, 11.3883, 121.017, -112.1067, -105.4758, -111.1189, -111.2056, 150.8264, 150.9272, 145.2561, -122.6967, -108.0167, -124.1036, -71.0833, -103.6397, -103.5931, -86.0536, -85.9997, -111.9106, 147.4883, -86.2258, -103.7, 146.2722, -108.8333, -100.9175, -75.22, -90.9, -114.9217, -91.7164, -123.9236, -122.3008, -122.2553, -122.3139, -155.5114, 14.45, -81.3689, -115.9667, -123.7167, 14.779, -120.8847, -93.1833, -93.2228, -96.1861, -111.7, -102.5167, -111.9667, -111.7644, -122.2355, 58.284, 11.733, -111.4333, -113.4472, -113.5203, 10.19, 130.3, 34.283, 9.7667, -6.15, -4.1269, -4.1153, -102.8675, -99.0403, 22.4908, -123.2833, 152.4167, 131.017, 114.28, -120.4994, -159.1125, -100.0356, -122.1914, -151.7017, 25.217, -112.8797, -76.8617, -76.8642, -75.3222, -111.8975, -87.0144, -87.2422, -86.9786, -88.5994, 110.417, 80.3, 32.583, 78.35, -102.6597, -96.6531, 80.25, 159.98, 3.667, 53.495, -89.9592, 130.4, 140.9, -118.975, -85.9428, -40.183, 17.9033, 33.617, 29.683, 105.0, -106.8333, -7.95, 140.5, 126.967, 116.894, -66.25, -66.2667, -66.25, -123.0639, 42.75, 106.133, 72.433, 45.5, 54.517, -37.08, 51.3, 60.533, -38.96, 100.33, 136.233, -73.1047, 3.6917, -44.25, 5.324, 45.0, -122.1333, 151.8875, -115.4667, -149.855, -110.9167, 78.35, 93.03, 156.13, -83.5983, -112.0, -5.8792, 14.9, -132.3, -97.0908, -149.3483, -149.6275, -149.4167, -123.3642, 72.517, 55.517, -85.8989, 10.68, -88.8514, 28.533, 77.267, -118.9556, 63.63, 42.67, -119.1458, 21.88, 68.45, 47.158, 50.842, 68.583, 55.0333, 91.813, -87.2436, 47.167, 35.583, -78.3894, -100.2503, 112.77, 121.467, 121.433, -115.75, 127.967, 116.3367, -8.925, 116.683, -79.6333, 115.367, 113.6, 117.43, 111.47, 27.467, 55.517, -108.1, 113.5772, -101.7514, -77.7211, 47.121, -122.4161, -119.2561, -88.6183, -2.668, -72.7333, -96.9481, -78.6372, -123.6333, -76.4667, -103.2922, -63.5167, -117.0392, -87.8506, -77.25, -122.25, -105.2353, -111.6833, -101.8272, -1.4899, 146.3219, -92.0467, -111.8553, -88.7739, -85.8033, -85.7914, -86.4775, -81.5325, -86.7247, -95.8528, 155.88, -107.7633, -107.4333, -123.1408, -95.38, -111.2189, 122.45, 120.82, 42.9, 123.517, 114.1, 144.1303, 27.05, -93.4333, 145.3947, -71.6833, -75.5067, -93.7503, -75.5, -94.7744, -92.3914, -106.9689, -106.8383, -106.9694, -123.9167, -96.6419, -116.3333, 120.25, -97.3161, 114.417, 116.033, -88.3217, 91.89, 133.017, 77.167, 125.133, 130.933, -137.2167, 140.317, 135.75, -77.5214, 121.95, -123.7917, 80.083, 140.217, 52.533, -106.105, -72.8689, 91.733, 138.4, 19.5331, -86.7944, -85.6344, -100.6, 75.9, 139.783, -110.5769, -112.5333, -0.283, -111.95, -114.4169, -108.1097, -114.2775, -110.95, -110.0075, -116.2128, -93.8411, -93.6667, -93.8186, -93.745, -93.7803, -93.8417, 69.7, 74.533, -117.625, 23.3167, -110.15, 13.35, 24.15, -95.7483, 98.9, 98.883, 111.985, 111.8, -87.8767, -2.62, -0.617, 6.089, -104.1467, -95.6431, -84.1506, -103.0214, -102.9847, 17.29, 22.25, 7.9975, -120.3706, -105.7833, -110.2847, 9.1953, 9.7417, -108.1333, -112.0611, -123.7803, 14.9167, -92.1975, 23.5383, 25.0925, 27.8025, 41.95, -122.7167, -5.683, -89.6231, 92.83, -79.4622, 33.93, 16.71, -83.0767, -117.5658, -101.3006, -107.6633, -122.7739, -121.5667, -123.3783, -116.8317, -108.1667, -121.1833, -119.35, -108.7167, -122.6486, -92.7458, -111.5842, -121.062, -118.6833, -57.519, 127.65, 100.983, 34.1331, 33.9833, 7.5969, -117.7333, 16.13, -74.231, -66.991, -110.2158, 14.36, -122.3733, 108.25, 103.994, 126.533, -91.2594, 35.167, -97.4972, 124.383, 18.0333, 7.3331, -96.3778, -96.3792, -96.1525, -96.7289, -96.6222, -91.8667, -91.9, -95.0653, 124.333, -148.783, 6.8485, 16.5797, -53.6667, -97.0392, -96.9914, -121.5486, -124.4333, 100.7, -135.3267, -135.3647, 92.873, 37.0167, 37.017, 25.3167, 25.5, 20.0167, -42.25, 10.633, 19.0203, -135.3136, -135.3239, -113.7667, -122.2175, 13.45, 16.75, 0.3489, 21.07, 15.12, 20.3024, 9.5667, 6.95, -150.4606, 14.32, -116.1878, 10.9964, -121.6, 21.65, 21.4, 13.84, 123.9667, 25.133, 14.6506, 31.6, -114.4681, 24.417, -151.2169, -82.9925, -122.185, 24.55, -3.6508, -123.3525, -116.2833, 5.0681, -114.7833, -114.7833, -114.7833, 78.65, 31.017, 28.2178, 19.15, -89.7697, -89.8222, -120.2944, -74.4167, -88.2978, -80.06, 26.32, 15.4, 14.6, -111.3, -107.2, 27.7, 27.55, 15.1, 20.95, 133.83, -96.8814, -113.8333, -127.1833, -127.1833, -78.3458, -88.4311, -111.1, -77.5828, 145.0847, -97.1689, -85.7892, -119.3511, -114.2272, -98.7783, -113.3472, -117.1739, -112.5, 32.0667, -86.5578, -111.5042, -110.6658, -116.7369, -110.6667, -133.7386, -110.5333, 15.7333, -111.65, -110.0839, -98.65, -79.995, -146.6931, -111.65, 138.2182, -75.3789, -77.6667, -119.55, -100.9111, -92.633, 155.93, -40.35, -106.8831, -106.8858, 26.6328, 27.7503, 27.1894, -122.9772, -105.9864, -111.5833, -108.3967, -85.2414, 19.41, 17.1, 17.63, -77.0128, 106.656, 5.2733, 23.406, 133.9797, 7.1414, 7.9978, 126.57, 93.783, 56.633, 14.4281, 44.1, 128.57, 1.13, 5.6367, -127.9333, 167.55, -121.5856, -114.8167, -151.1336, 138.1, 95.3, -110.7117, 84.32, -91.8317, 9.833, 19.0831, -103.65, -78.2703, -84.6167, -84.615, -96.5403, -74.6694, -123.4958, -111.3667, 10.9069, -50.8, 35.583, 100.617, 103.567, 12.95, 12.95, -105.9136, -107.7667, -122.4622, -100.6503, -120.3872, -119.6, 103.9, 16.6, -56.8833, -73.1167, -2.4831, 20.9553, -47.43, 53.1, 131.117, 17.55, 30.7167, 22.05, 126.47, 94.52, 158.3, 111.55, 138.333, 62.1, 39.77, 28.3419, -98.2, 24.1167, 24.15, 7.967, 5.07, -117.3833, -48.51, -103.2833, 119.3281, 119.3564, -94.3411, -78.0078, -81.9808, -80.6403, -86.3164, -85.325, -78.8808, -106.5, -105.5333, -122.0333, -123.4761, -115.745, -86.2833, -73.3031, 145.9972, -155.7533, -119.9947, -72.9736, -87.8494, -77.4775, -116.9, 32.75, -97.1033, -108.8333, -108.8, -82.5936, -107.5286, 153.087, 21.93, 140.3, -119.6331, -111.6044, 15.14, -92.8267, -119.7333, -90.8164, -81.9139, -89.7167, -117.375, -85.475, -114.8833, -114.8833, 34.017, -95.0597, -103.8722, -81.3583, -86.7703, -112.1864, -95.1467, -97.3414, -121.9333, -95.2017, -78.2272, -93.7158, -85.6272, 14.47, -107.55, -95.1394, -122.1667, -119.2333, 16.4331, -117.4167, -117.5264, -117.3214, -117.5281, -117.6267, -121.6833, -111.6833, -91.8761, -95.6, -119.8167, 17.9, -80.425, -104.585, -109.275, -93.4003, -94.9864, -89.625, -89.6839, -102.6139, -86.8414, -72.5178, -83.8167, 148.0856, -75.2781, -99.7467, 150.5848, -84.8547, -110.6667, -114.2028, -122.4364, -114.18, -114.8111, -82.0019, -117.5333, -107.7833, -100.8761, -110.6167, -123.1667, -123.2833, -119.7211, -116.25, -114.4944, -114.3333, -123.0167, -117.5683, -120.25, 153.72, 152.32, 117.37, 120.55, 78.2, 19.6331, 117.7, 74.833, -80.7131, -72.2606, -81.4294, -98.5, -115.3928, -114.8667, 14.95, -88.6275, -99.8036, -73.5475, -120.075, -121.3372, -121.3333, -112.9833, -83.9533, -110.2239, -63.0833, -91.8633, -114.9342, -90.9489, -105.9439, -102.5947, -114.9258, -114.9272, -90.9269, 151.9339, -83.8969, -97.1747, -112.7333, -100.5986, 31.3, -44.51, 34.93, -82.1164, -119.0167, 15.8, -121.7175, -78.4442, -80.8808, -77.8672, -106.7597, -88.7822, -16.6497, -79.0844, 5.73, -113.8833, 5.3831, 42.02, 18.71, 142.7412, -122.8142, -122.8667, -16.2553, -119.8836, -106.8233, -84.4792, -99.9483, -110.5, -105.3, 26.354, -91.8872, -120.7264, 13.0431, 11.4508, 14.51, -87.1631, 136.9392, -98.2319, -58.55, -58.5667, 88.9, -98.2078, -103.2083, -100.9828, -81.6106, -77.4869, 56.0, -112.6, -80.6283, -78.0183, -114.0911, -121.0833, -89.5856, -114.0911, -129.9833, -107.8, -73.9333, -72.2333, -75.3333, -73.6, -71.9167, -73.6833, -71.2833, -73.85, -70.4667, -70.0167, -73.1333, -73.85, -70.5333, -73.8833, -114.2167, 10.8833, 15.205, -97.5283, -92.8522, -97.095, -97.0914, -97.1083, -105.9167, -97.0953, -114.5594, -97.0894, -113.3939, 22.183, -88.9044, 18.05, 18.0597, 17.9514, -89.9903, -93.7722, -121.3178, -121.2258, 10.2833, 15.0292, -90.9108, -80.4744, -153.8958, -156.4333, -122.575, -73.9, -77.4042, -122.5342, -97.1667, -105.8333, 18.29, 16.18, 19.48, 12.1, 12.12, 12.1253, -107.42, -95.1933, -6.32, -6.3, 23.1, -72.2286, -106.9061, 9.8656, -89.2133, -117.145, 30.7, 16.886, 145.2908, 7.6331, -102.0775, -81.0, 138.8934, 145.7308, -100.4, 146.0461, -113.2833, -81.65, -102.6003, 12.5603, -121.85, -111.2167, -120.8464, -121.1078, -109.3169, 134.2116, -88.1783, -99.4475, 93.0, 102.7, -94.2969, -110.9, 11.2, 10.8288, -105.1208, 21.65, -75.1906, 6.5585, -80.2397, -80.2514, -113.9167, -126.0667, -107.6333, -87.3356, 13.37, 9.2167, 9.1825, -91.4172, 9.2008, -53.35, -22.7275, -72.0833, -73.0911, -75.0667, -73.15, -99.0167, -73.3, -71.3333, -74.35, -74.2833, -56.1, 6.0, -81.2883, -73.3833, 59.617, -70.2167, -71.7333, -90.5231, -90.4281, -73.35, -90.5169, -94.0514, -73.75, -70.5167, -92.6467, 55.51, 4.9, -74.2, -70.9667, -71.5833, -71.5667, 9.4, -113.5611, -70.7, 148.5942, -169.565, -89.4894, -72.7667, -5.667, 148.2792, -74.0, -72.9167, -84.7228, -76.4292, -73.5833, -85.5464, -94.6122, -67.1167, -74.05, -117.5878, -52.75, -52.8, -109.3792, -91.2336, -94.9233, -74.55, -54.033, 149.5242, -55.3833, -109.1667, 149.5356, -67.8333, -67.8333, -90.3736, -90.2706, -90.6558, -90.2333, -70.6833, -71.5, -63.9, -106.5144, -84.1333, -91.8694, -113.4294, -113.4331, -113.4305, -73.9167, -72.4333, -72.6167, -170.2119, -111.2667, -93.0556, -170.2222, -60.15, -93.9656, -62.5833, -82.6261, 30.3, -82.6261, -82.6875, -90.6106, 8.6, -56.176, -71.2167, 55.483, 15.617, 15.617, -72.4167, -70.5, -115.1097, -70.95, -71.05, -67.25, -70.4833, -81.2, -72.3333, -93.6369, -100.9792, 70.217, -107.4, -80.8, -80.8, -76.6014, -105.3614, -122.6564, -106.3714, -122.4383, 118.33, 35.3164, 93.283, 131.15, 132.7, 8.4667, 46.25, -113.7394, -113.9269, 8.4667, 29.7331, -79.8489, -88.6067, -88.5497, -91.15, -96.9503, -95.6269, 101.549, 95.42, 102.293, 104.701, 101.445, 103.644, -84.9842, 117.412, -1.3, 63.317, -119.65, -63.8333, -63.8333, -91.6272, -80.8939, -85.39, -80.2325, -120.7897, -120.8167, -97.0625, -122.1333, -120.2456, -106.1667, -104.3811, 134.9, -80.3569, -80.4667, 34.667, 34.78, -111.7275, -104.3567, -104.4364, -73.1244, -114.6833, 17.4408, 17.35, -68.64, 8.5589, 13.12, -120.0103, -115.0225, -77.9581, -109.5631, -121.4117, -115.8167, -111.5436, -112.1417, -108.9547, 117.65, 127.35, -2.329, -111.7406, 23.5317, 23.5342, 23.7667, 29.0167, 28.7503, 109.404, -92.0167, -114.8903, -97.9842, 100.133, 124.933, 59.483, 45.6, 113.717, 112.787, 112.717, 149.0703, 72.833, 99.15, 73.5, 125.5, 103.5, -88.3786, -97.3094, -121.75, -35.71, -120.6631, 111.473, -127.1667, -74.66, -74.6231, 148.17, -119.5986, -120.8008, -72.0481, -72.6833, -148.9089, -72.0233, -1.2496, -80.6969, 140.217, 132.1, 138.117, 22.95, 15.4667, 18.63, 16.7167, 14.1903, 14.41, 19.5056, 42.85, 90.8, 25.35, 133.1, 5.2681, 128.116, 14.6692, 16.033, 39.82, -120.8, -1.9581, 115.7619, 13.0667, 148.0731, -150.8722, -116.3783, 143.5416, 148.125, -99.0897, -113.8389, -101.2333, -111.2792, -94.3831, -113.9667, 139.5981, -93.4194, -73.0333, -122.1667, -54.2167, -107.6833, -107.6833, -107.7333, 114.763, -105.375, -60.05, 151.1731, -60.05, 151.2633, 151.205, 151.0646, 151.2, 50.8667, -86.2114, 12.28, 91.88, -110.15, -110.0333, 88.367, 39.583, -96.1892, -101.7417, -76.1039, 68.683, 71.3, 48.4, 14.617, 20.1, 16.3167, 20.2333, 16.6333, 9.1831, -110.4333, -49.917, 10.533, 8.75, 56.917, -82.6925, -96.0861, 1.5, 32.833, -7.37, 46.28, 36.619, 152.4507, 83.0, 125.0, -70.3, -113.9192, -122.4122, -122.4833, -122.5761, -104.0567, 133.75, -98.5, 128.75, 127.4, 7.4167, -119.43, -170.7167, 38.95, 123.853, -46.433, -46.4, -149.617, -120.1428, -120.15, -101.7981, 5.25, -85.2239, 121.517, 40.544, 123.42, 51.8667, 28.1819, 113.55, 28.25, 28.2481, 112.55, 117.1, 85.62, 160.4, 134.783, 98.0, 99.15, 138.25, 134.05, -145.033, 137.25, -135.5667, 5.385, -1.775, 114.83, 98.2667, 72.217, -84.5197, -117.4858, -150.095, -86.135, -86.0572, -86.0811, -84.3289, -84.3556, -96.5608, -96.5578, 24.5831, -91.1842, -83.3344, -91.0278, -98.9592, 148.63, -93.5833, -0.863, 5.4331, -95.6472, -13.683, 41.4667, 146.2564, 64.6167, -82.4006, -82.5403, 23.75, 23.75, 23.7733, 23.7569, -97.85, -98.767, -71.2597, 150.8362, 140.3, -152.1, -152.1069, -117.7606, -43.969, -59.228, 130.983, 11.9739, -5.9, -5.82, 118.15, 101.033, 107.8, 117.333, 169.224, 12.6703, 10.0231, 106.67, 46.95, -105.5864, -92.25, -83.9389, 74.3831, 149.8197, -76.367, -70.76, 172.917, 71.383, 169.9, -77.5386, 134.5786, 152.512, 106.25, 18.61, -117.3589, 102.0, -5.5975, -64.7, 77.82, 15.25, 149.7958, -82.7539, 146.4486, 26.7331, 26.45, 94.55, 69.2694, -37.6331, 148.0025, 89.917, -63.2333, 75.97, 140.1167, 139.867, -124.4, -103.3611, 145.2672, -40.41, -45.567, 24.767, -71.0211, 73.283, 118.122, 117.9, 121.5833, -81.1717, -85.3089, -97.4156, -102.4761, -121.4, -115.9833, -117.5333, -106.6086, -106.6017, -114.8508, 21.133, -83.5603, 83.667, 78.73, 44.95, 44.767, 11.02, -63.406, -115.7375, 8.1197, -83.9336, -96.1939, 60.517, -109.09, -64.7, 109.15, 130.0, 130.199, 12.3444, -87.217, -118.4222, 51.317, 90.383, -96.2328, -96.1778, 27.55, 45.383, -112.025, 122.2281, 20.183, -153.3567, -84.2997, -107.8736, -86.7747, 105.2, 14.342, -118.7556, 117.157, 57.117, 43.233, 147.5111, -107.817, -111.9217, -111.5333, -72.633, -16.3292, -16.5606, 1.333, 98.483, -71.939, -65.105, -78.524, -72.106, 134.1833, -87.7886, -107.3653, -107.3819, 152.0172, -80.8503, -41.517, -111.7, -113.7383, -105.75, -104.843, -104.9, -42.817, -42.97, 35.1, -103.595, -103.4061, 67.2694, 12.983, 15.0, 136.6, 25.667, -128.5833, -128.6167, -79.5469, -53.9667, -96.2672, 151.2253, -87.3, -87.3089, -87.4081, 133.6377, -105.3022, -90.0342, -105.4953, -1.1167, -132.7333, -132.7333, 0.983, -74.0614, 29.583, 12.5581, -124.2333, -5.33, 72.4, 153.0403, -94.0772, -94.0456, -94.0075, 151.1681, -118.4508, 92.783, 23.2667, 24.533, 104.65, 8.683, 150.5709, 105.783, 143.815, -111.5333, 103.6833, 100.8, -81.85, -92.1942, -102.7972, -115.817, -108.2036, -108.6964, -108.1436, 23.0, -71.35, -71.2667, 115.0197, -107.0931, -121.2047, -121.1661, 139.9267, -101.1, -101.1, -120.9447, -90.7747, -96.1667, 76.95, 76.95, 7.05, -84.3367, -87.7347, -87.7367, -83.8611, -122.6097, -95.6314, -97.8667, -115.285, -115.3594, -86.9322, -97.8667, -119.5333, -108.1472, -95.2475, -113.9, -86.6708, -3.95, 148.2859, 148.304, -121.6333, -113.2, -122.07, -85.6386, -118.8619, -99.2006, -68.8333, -110.5667, 54.025, -120.9833, -89.3167, -89.2833, -89.3333, 8.22, 117.167, 78.233, -111.0878, 142.0567, 142.0098, 148.9422, -11.433, -11.43, -106.5536, -83.1667, -83.4767, 40.083, 33.6, 87.7, 128.9197, -98.5294, 1.45, -123.8519, -123.7619, -123.8031, -80.7333, 26.95, -109.3606, 130.4808, -109.1833, -101.0764, -121.2981, 0.276, 131.9667, 21.25, -81.3833, -81.3833, -81.3833, -121.3583, 142.7164, -111.7075, -111.6167, 132.3826, -8.167, -75.95, 87.08, 14.9, -121.4667, -102.9181, -77.1419, -79.4433, -86.625, -91.1269, -118.3667, -84.1108, -86.1086, 19.7831, 19.721, -6.869, 107.133, 12.3556, 78.717, -96.6789, 9.452, 88.32, -80.8158, -80.6928, -79.6931, -71.2092, 137.05, -111.85, 4.05, 113.943, 12.4313, 89.317, 72.2, 49.4, -66.1678, -81.6333, 68.25, 23.933, -83.3319, -84.0744, 145.6004, -112.75, -125.7667, 163.005, 84.4, -110.05, 30.3494, 24.1669, -143.0372, 36.567, -122.4167, -122.4497, -122.4, 75.283, 131.13, 134.567, 139.767, -143.3467, -105.1833, -4.0492, -92.5806, -83.8014, -83.4764, 73.783, 120.8, 82.08, -121.6908, -99.683, -114.7167, 141.55, -3.0, -110.0686, 126.3, 109.75, 135.87, 84.9167, -74.2167, 14.47, -112.1167, 117.7703, 109.78, 128.733, 122.267, -102.2333, -112.86, -117.0903, -145.1703, -111.6333, -112.3217, 152.8608, 96.1, 151.9134, -119.5453, -95.6303, -95.6639, -95.6261, -126.1667, 14.4, -67.7214, 59.2167, 7.733, -106.0581, 24.2744, -79.3667, -79.4, -95.9333, -79.6333, -79.4667, 31.63, 10.2553, 16.28, -118.3411, -3.45, -103.4333, -103.411, -107.1814, -49.73, -0.7106, -111.2936, -104.1564, -104.1528, 13.01, -6.767, 19.5006, 0.4914, 18.5833, 8.7917, 13.0625, 98.2, 98.3, -134.89, 134.233, 42.75, -0.186, -117.85, 6.13, 5.9333, 0.7, 16.57, -76.4431, -106.6833, -92.2783, -110.4203, -100.3908, -111.5378, -83.7781, -108.9, 146.7661, -94.1819, -115.9167, -88.8825, 137.2, 8.1, 34.0, 39.72, -61.6833, -95.6308, -121.3467, -121.5828, 21.338, -109.3683, -114.3031, -133.5, 10.6167, 99.617, 147.9489, -81.3039, 12.488, -107.2333, 2.0167, -85.5825, -85.6442, -112.8667, -121.9333, -108.3833, -54.383, -65.266, -91.4378, -93.6086, -111.9128, -77.5333, -101.0611, -75.1567, -74.8158, -77.5667, 140.8925, -60.33, -105.9725, -110.95, -116.5886, -83.4083, 12.7689, -101.6961, -101.7758, -111.4747, 6.6467, 6.6592, 13.75, -119.305, -105.2333, -104.4869, -104.5567, -104.3378, -60.883, -122.8045, -115.4333, -122.7947, -130.8833, -110.5833, 35.8, 22.4, -92.2575, 13.15, -51.38, -38.133, 77.0, 113.1331, 136.567, 56.2, -72.5167, 61.5994, 13.3, 2.383, 18.9281, 18.9131, -117.3908, 10.4533, 10.9333, 12.5408, -103.9006, -120.3167, 126.1485, -122.3886, -109.6667, -122.575, -115.6278, -121.2333, -85.0728, -85.9722, -115.9061, 82.946, -115.8833, -86.0003, -95.0881, -73.6833, -115.9167, -86.0122, 11.64, 33.7997, -120.2, -79.03, -66.0164, -93.4136, 126.3867, -99.8617, -107.2317, -107.2681, -113.7942, -82.2517, 12.2719, 10.6692, 101.467, 105.317, 136.517, 136.067, 134.017, -64.918, -57.821, 132.75, 39.1, -149.483, -129.2167, -111.1697, -111.1961, -110.9442, -110.9553, -111.0053, -110.9536, -103.6867, -103.6031, -49.72, 149.0937, 121.731, 57.4, -133.0167, -133.0333, -122.3667, 37.617, -98.367, -106.0411, 28.8167, -121.4744, -113.3847, -101.7614, 121.7, -86.2089, -110.0833, 17.9125, -72.2244, -95.8872, -95.9844, 100.63, -111.0497, -121.4003, 148.0141, -61.45, -61.5, 140.083, 115.617, -90.3683, 10.23, 102.53, 147.4614, 92.433, -88.7658, -88.7714, -74.4383, -119.49, 100.2331, 38.731, 16.694, 39.233, 63.5, 25.417, 131.983, 63.7, 7.65, 23.033, 68.22, -100.8972, 53.0, 22.1817, 22.2831, 22.2775, -120.855, -78.5817, -70.2561, -108.3894, 87.167, 89.2, -100.8636, -100.8883, -98.0956, 87.9331, -112.12, -87.6161, -87.6161, -116.2225, -88.2908, 13.328, -95.2803, -84.06, 93.78, -99.9189, -96.5994, -97.4, -112.0264, 18.7, 8.5206, 35.867, -113.7319, 20.617, -114.45, 6.8906, -116.0369, -54.8, -112.3261, -115.1953, -114.3461, -114.4569, -114.4869, -114.5, -106.3514, 8.9142, -120.3211, -91.6653, -91.7067, -111.6833, -110.2167, -87.5678, -146.9542, -78.9336, -80.0297, -95.2969, -90.0603, -95.4025, 124.667, -97.8703, -85.5833, 65.5, 123.567, 47.5, 113.617, -67.05, -47.95, -48.217, 9.1569, 104.8667, 104.867, 4.35, 62.8, 130.62, 80.9331, -125.5333, 73.883, 102.8, -79.1667, 102.8, 134.4197, -179.983, 14.067, 142.78, 10.53, 136.15, 55.8331, 7.45, 6.35, 142.03, 74.02, -118.6333, 53.817, 54.6831, 25.433, 119.55, 94.333, 70.933, 31.17, -123.2103, -118.9339, -123.2008, 106.867, 92.08, 107.0, 107.6, 129.42, 112.467, 89.933, 116.967, 96.85, 84.517, 23.45, 150.4827, 12.78, 6.6538, 130.9, 9.95, 13.47, 129.32, 17.6664, -117.8, 34.5, 14.18, 48.333, -101.2908, 30.23, -119.5667, 34.33, 20.28, 20.29, 11.183, -46.88, -160.8, 110.633, -101.1461, -123.4953, 15.81, -79.7192, -93.0031, -80.5336, -81.6628, -89.0317, -117.8758, -88.0336, -114.3747, -85.7464, -72.2578, -89.5308, -105.5667, -147.8611, -113.5333, 152.3375, -93.1772, -60.167, -71.483, -59.15, -61.467, 10.2908, -130.45, 130.157, -56.1667, -100.7264, 21.25, -121.6931, -76.7683, -109.2836, -107.2667, -83.2833, -109.4461, -106.8333, -94.8244, -63.05, -120.3667, 17.63, 17.59, -90.4667, -66.4167, -104.6114, 142.783, 51.4, 138.3136, -108.4833, -108.4833, -108.7422, 68.983, -88.2403, -83.7822, 81.617, 60.567, 65.55, 120.033, 42.0, 133.233, 45.069, -57.033, 87.5, -49.31, 29.4, -82.8186, 130.032, -68.296, 119.867, 97.514, 13.183, 14.041, 16.422, 109.02, 136.68, 156.7, 57.683, 135.15, 162.467, 116.5, 85.62, 53.683, 134.4497, 143.2297, 143.2, 121.48, 159.42, 87.75, 57.617, 52.2667, 133.317, 56.9194, 159.17, 50.42, 115.167, -111.8972, -112.9367, 25.6, -106.8333, -103.4433, 15.7, 4.883, 4.8781, 27.0119, 27.9006, 139.867, 100.1, 17.35, 162.9742, 132.55, -79.8667, -79.1667, 90.367, 22.2667, 89.817, -118.4428, -83.5358, 26.4275, 21.65, 21.6, 21.7678, -106.8, -121.9575, 57.5, 11.03, -93.0958, 29.8353, 10.89, 7.3653, -106.3539, -106.3833, 31.98, 19.68, -146.3517, -83.2767, -117.2439, -0.3664, -0.482, -0.4731, -10.2219, -104.4914, -108.4983, -100.5517, -100.55, -100.5231, -100.6931, -70.62, -43.71, 26.033, -112.2492, 19.9167, 4.4292, 26.233, 16.37, -4.7667, -88.2, -4.85, -107.5, -107.5811, 1.175, -70.9333, -64.1, -4.5331, -74.1, -117.2, -117.0086, -98.0203, -95.4861, -85.6064, -85.6172, -96.3672, -114.5139, -66.0, 25.0, -104.9244, -86.5167, -86.6833, -87.0058, 28.8325, 38.1, -117.8511, -77.7833, -77.7833, -48.476, 0.728, -107.85, -107.5833, 43.32, 102.2667, -122.6511, -123.1167, -123.1833, -123.1833, -122.6572, -123.25, -89.0953, -91.4833, -120.4861, -84.4397, -124.0167, 12.36, 6.6455, -73.614, 24.9603, 25.0667, -178.95, 84.08, -121.7939, -67.9397, 43.35, -104.8372, -118.4892, 29.383, -84.5808, -116.3333, 82.867, 12.27, 31.1, 31.0844, -73.3833, 25.45, 27.8442, 27.9108, 27.825, 14.1942, 29.8331, -83.5828, 18.28, 16.63, 15.38, 16.59, 18.26, -112.1333, -119.7833, 14.83, 14.73, 11.8572, -102.4633, 9.1468, -112.1, 7.9467, 30.6167, 46.3, 16.3, 21.5167, 25.65, -97.7647, 42.067, -100.875, 33.283, 37.383, 10.1083, -82.4364, 12.33, 21.533, 70.367, -73.3667, -111.8492, 54.683, 27.95, 61.1, 164.23, 87.95, 46.7, 60.3, 96.97, 45.017, 133.4, 60.7994, 132.017, 59.2, -110.8833, -96.9194, -64.267, -109.5211, -109.5144, -88.1275, -112.435, -123.1903, -112.4269, -119.2, -119.3167, -112.4167, -93.1869, -119.2667, -88.7239, 10.8667, -80.4031, -80.2428, -92.8397, -84.7464, 26.4281, 135.8, 33.267, 50.9, 8.3167, -20.2831, 17.833, 45.8, -113.6667, 3.4, -91.7683, -90.8753, -42.86, -96.5667, -97.0181, -123.3333, -123.3167, -123.4667, -123.5167, -123.4333, -123.75, 98.583, -96.9214, -96.9303, 131.0145, -96.9217, -123.3, -117.3058, -117.3833, -96.7864, 138.5997, -105.3686, 22.85, 20.13, -75.8211, -77.2664, -91.9811, -114.85, 102.5667, 27.2242, 145.0972, 120.356, 12.2167, -101.4969, -8.6239, 6.115, 24.4017, 25.8617, -111.7333, -111.7667, 70.617, 35.313, -7.7333, 16.84, -60.098, 25.6, 121.6167, 13.667, 2.2, -123.4639, -92.933, -56.433, -15.867, -65.146, -63.683, -63.47, -65.387, 8.4617, -111.9167, 25.1, 21.8153, -87.4633, -87.4878, 19.72, -79.4167, -79.4, -70.615, 11.61, 105.671, -95.1322, 34.783, 28.6, -120.1858, -92.0078, -115.1333, 17.6, 124.206, -89.7689, -119.6483, -111.9481, -105.2186, -119.25, 27.6756, -90.8761, 23.5456, 23.517, -63.135, -119.2994, 18.3331, 83.233, 14.4, 14.41, -117.2269, 30.217, 30.1, 12.05, 112.5831, -40.333, -2.6544, -40.863, -2.7331, 21.63, 176.9, 51.1, 34.4, 44.65, 40.35, 131.9331, 4.9206, 3.5956, 13.8, 13.9, 80.367, 44.346, 5.7067, 24.45, 94.5, 24.317, 39.9167, 44.45, 64.016, 89.633, 39.2167, 27.0192, 139.6, 106.867, -49.983, 40.2, 31.333, 21.9, 23.5333, 21.3167, -146.7158, 28.8, 34.567, 36.45, -2.508, -85.8258, -66.8667, -119.1189, -97.2169, -97.2283, -0.5239, -95.1494, -80.0772, 45.2, 31.35, -119.29, 33.483, 5.6331, 5.6217, 9.8044, -89.45, 147.4573, 117.3403, -98.2894, -119.8814, 9.1283, -111.4914, -158.1553, 9.3239, 8.9, 14.778, -157.8489, -157.8167, -157.7114, -159.6758, -158.0536, 120.333, -159.995, -111.1, 122.237, 136.9, 139.917, 135.167, -99.8722, -96.8667, -77.0078, 166.65, 141.683, 8.3608, -106.2792, -74.1628, -94.1942, -112.7833, -78.5878, 148.1223, -83.075, 145.4281, -77.04, -94.57, -119.4592, -118.0569, -101.5853, -115.9314, -76.4386, -77.9831, -101.2094, 144.9654, -118.2869, -75.4631, -117.5314, -148.0872, -89.5989, -111.5097, -112.8097, 142.004, -71.2461, -104.7956, -102.2986, -80.6761, -98.3006, -98.3458, -96.4756, -75.1456, 129.38, 14.65, -96.3703, 138.95, -121.453, -107.9786, 144.1482, -74.9003, -74.2933, -86.9294, -122.1953, 116.6706, 126.75, 146.3056, -111.4078, -73.5053, 108.033, -120.4203, -109.4256, -90.2836, 9.183, 126.5839, -78.5811, -115.4667, -120.2333, -114.8167, 12.667, -117.7333, 128.2175, -113.1667, -118.5786, -112.23, -86.9064, -83.6164, -83.6, -83.0183, 137.3995, 146.704, 142.405, -79.1494, -93.8008, -6.6108, -82.6222, -91.1386, -77.7678, -92.0997, -80.8106, 142.4522, -95.33, 133.3796, -85.8678, -76.7769, -78.0044, -78.2203, -84.9672, -86.2283, 152.1003, -115.6333, -99.95, -119.3519, -121.33, -109.4, -93.5264, -101.0267, -90.9753, -77.0525, -97.055, -91.7078, -87.1989, -82.7058, -80.1889, -97.5208, -83.4239, -77.4636, -82.8161, -86.8911, -77.0342, -96.1594, -77.0722, -95.7133, -106.0667, -94.3939, -92.5875, 9.9439, -102.4478, -103.7986, 131.5488, -105.2103, -7.1308, -123.4167, -90.1619, -82.4736, -88.9844, -92.4011, -89.17, -113.8167, -88.7364, -75.8753, -76.0217, -97.1494, -120.08, -83.0981, -64.65, -69.6544, -100.7283, -89.6311, -103.2892, -103.2597, -103.2867, -83.3897, -83.3656, -98.4139, -98.5261, -105.4, -87.7556, -121.7886, -121.7692, -128.8167, -128.8167, 102.563, 0.956, -88.6667, 28.017, -97.3269, -81.7994, -88.2492, -91.4711, -89.0592, -97.9883, -89.6256, -88.8889, -84.1453, -89.3831, -82.9797, -93.5297, -76.525, -106.0317, 131.1166, -84.8, -84.7833, -96.8422, -83.4031, -111.4097, -82.3128, -82.26, -82.4, -97.0108, -87.7592, -82.0061, -88.6708, -78.875, -80.1656, -82.9683, -92.2319, -98.8797, -97.77, -98.6986, -98.775, 158.2, -122.9383, -106.9333, -111.9125, -97.5228, -93.7972, -99.4192, -112.9, -80.4169, 143.5127, -85.1289, -122.4539, -82.5756, -96.1414, 117.75, 12.1856, 10.6094, 119.183, 11.7, 8.2594, 6.7917, 8.117, 104.28, -151.0833, 141.9208, -116.9697, -116.4267, 6.8125, 10.967, 36.476, -89.1167, -97.4178, -90.6828, -79.2667, -79.3333, -1.6031, -100.2103, -97.4097, -110.6861, 174.8, 148.9503, -114.9736, -93.7367, -77.3872, -85.9572, -77.9475, -77.9919, -121.7833, 9.6353, -120.31, -120.2014, 12.0131, 10.4717, -114.0358, 103.867, 7.883, 10.767, -74.8081, -97.9708, -67.6664, -105.5333, -98.5706, -104.0503, -73.7075, -105.4661, 3.8631, -71.7989, 11.0617, -114.0836, -64.6667, -82.9433, -117.7183, -72.8036, -72.7161, -72.6322, -101.0192, 142.9378, -76.9883, -80.4725, -105.3053, -96.7775, 171.6, -69.7089, -119.75, -120.9, -88.0017, -88.1939, -116.4333, -70.6128, -75.635, -88.2464, -114.2631, -113.9847, -113.9942, -71.2008, -86.9919, -83.3017, -90.1805, -90.2344, -88.7725, -80.0994, -82.4547, -91.8347, -91.9025, -85.1808, -73.9608, -96.7142, -76.8, -69.1461, 122.3122, -71.9031, -80.7694, -123.2, 147.1962, -111.0975, -85.2042, 143.669, -103.8333, -103.8, -65.9917, -104.6281, -92.6, -104.9492, -96.5042, -88.0728, -105.1169, -158.0333, -80.7283, -80.6472, -122.6667, -122.5281, -105.1167, -111.15, -106.9, -122.95, -122.95, -118.7403, -53.5333, -0.6241, -115.7833, -71.545, -114.3594, -84.9789, -73.4011, -112.15, -135.0667, -135.1, -135.0333, -135.0833, -93.55, -109.9839, -82.8047, -145.8894, -86.3542, -78.7914, -78.7286, -88.7247, 143.0742, 143.0893, -120.8375, -111.4167, -90.3789, -112.15, -86.6456, -98.7131, -83.4717, -109.9, -71.1406, -121.3833, -110.9833, -101.0925, -96.565, -106.1758, -108.3667, -80.3083, -110.8853, -110.9, -119.65, -87.0231, -87.0167, -101.445, -118.4628, -81.6, -121.8994, -83.7831, -97.375, -75.9653, -148.6858, -118.01, -85.4736, 137.5205, -81.1, -104.1567, -103.4914, 101.1, -97.4425, -98.4928, -97.2211, -97.2667, -98.7125, -98.7458, -97.4431, -3.083, -110.5433, -112.7403, -121.6875, -14.4, -111.8833, 18.5667, 16.35, 16.4, 16.567, 12.467, -89.1214, 4.6031, -113.6136, -118.7239, 143.3747, 143.385, -109.5, -112.4833, -103.2131, -94.4456, -105.6, -103.0192, -115.8008, -92.7489, -118.8408, 3.9, 8.1067, -75.7269, -123.7164, -78.0453, -109.8369, -112.1928, -91.9978, -76.7039, 150.1786, -82.2761, -76.9217, -76.9833, -77.0306, -112.3375, -106.2039, -122.05, 151.8359, -123.5333, 167.0, -72.1836, -103.7372, -103.6367, -105.0564, 149.965, -123.3425, -95.0358, 23.5, -122.3058, -100.2911, -110.8167, -118.35, -106.2153, -106.1, -75.15, -105.7333, -89.8489, -150.0542, -73.3819, -96.015, -84.9344, -83.85, -77.9206, -77.8789, -77.8997, -75.6008, -75.5414, -99.0556, -96.8619, -110.51, 146.4244, -77.9456, -115.0, -98.4889, -100.7892, 120.225, -113.5833, -86.5867, -89.3142, -78.1514, -90.4528, -123.3536, -116.6233, -86.0925, -78.1167, -84.9208, 17.1, -89.1547, 167.7, -95.1167, 142.6564, -109.0614, -88.5961, -93.5314, -82.95, -83.0667, 116.0308, -105.5833, -103.4881, -119.4167, -87.8469, -96.9408, -81.9153, -97.0369, -97.3489, -100.1069, -109.3758, -103.2017, -94.1661, -117.7514, -117.8081, -99.8403, -99.8422, -94.0586, -97.25, -97.1, -97.1333, -81.0928, -91.7089, -91.7022, -101.2439, -89.6244, -91.6703, -94.0203, -110.7208, -107.6492, -91.07, -55.3333, -121.9778, -94.0183, -83.2911, -81.7542, -120.1886, -81.0317, 143.0836, 143.0386, -69.7117, -89.7667, -89.8056, -89.8369, -113.4514, -150.1069, -82.5389, -113.0136, -112.9333, -82.5597, -99.56, 115.1042, -79.8306, 12.65, 118.3358, 7.667, 12.4964, 23.533, 4.3417, -118.4989, 8.24, -78.5278, -106.7469, -118.1333, -106.8, -107.1719, -105.6483, -105.1017, -105.2097, -105.5744, -91.2167, 137.9462, -109.65, -118.7033, -150.8714, 116.7186, 127.95, 127.433, 145.5965, -100.4794, -122.6447, -81.7072, -84.8483, -86.0894, -55.55, -67.4044, -121.7942, -118.5744, -103.5678, -111.1494, -122.2561, -147.275, -80.7667, -72.5072, -67.55, -78.4678, -91.2325, -94.4, -99.4167, -112.8167, 151.3451, -77.7167, 146.5364, 136.8054, -71.4908, -81.9167, -81.8867, 19.467, -72.5822, -71.8731, -110.9167, -107.9508, -107.9686, 8.3667, 10.2306, 8.9867, -119.0, -72.9211, -95.5803, -132.3875, -102.2325, -59.3167, -60.45, -112.1167, -76.05, -117.6386, -105.7331, -92.9542, -94.1583, -84.05, 0.4308, 17.0, 93.08, 135.4519, 104.917, 110.63, 114.05, 118.583, 11.967, 9.433, -111.3703, 9.9589, 102.867, 12.8731, 113.53, 8.3806, 111.3, 87.65, 147.2418, 7.783, 128.1247, 128.1503, -90.7964, -104.2, 145.7292, -104.2, -81.0869, -84.2011, -81.2275, 88.633, 33.633, -83.9, 118.083, 108.933, 123.72, 102.267, -98.23, 107.63, 88.883, 114.52, 116.117, 105.183, 114.5, 101.767, 115.58, 114.05, 110.93, 116.82, 112.333, 114.58, 117.6, 20.0, 115.65, 117.15, 103.0, -115.6267, -124.1047, -63.65, -80.5481, 31.8, 87.6, -120.5428, 130.667, -139.6711, -82.8011, 23.27, 34.167, 140.35, 131.45, 153.3633, -5.366, -106.9092, 109.5, -79.2544, 107.383, 146.4328, 112.4, 126.65, 111.967, 96.133, 129.5, -97.3633, 116.85, 109.5, 138.0833, -73.807, 67.083, -66.0833, -66.0833, 152.2482, 146.0306, 177.583, 51.583, 148.9113, -95.7292, 54.4, 54.277, -90.3817, 120.0931, 12.55, 44.32, 52.0694, -10.567, -114.4333, -114.3833, -115.4961, -115.2514, -118.3231, -110.4211, -122.4278, -110.6964, -107.9383, -83.6961, -104.1833, -108.7561, -108.6636, -113.5417, -111.3508, -92.6667, -80.8419, 38.063, 127.75, -2.6415, 150.7506, 44.5, -119.1575, -104.6128, 104.6, 111.3, 114.38, 128.9, 106.2, 122.2, 81.333, 118.15, 23.47, 24.6531, 24.7278, -97.1556, -104.3881, -123.75, -116.5333, -116.35, 136.583, 139.65, 12.43, 12.5, -123.065, 133.333, 123.017, 138.7489, 117.35, 116.765, -102.4667, -73.7975, -97.5997, -76.75, -81.225, -76.8742, -71.3331, 128.4, -119.5897, -119.8208, -57.633, -79.0103, -80.6739, -112.3014, 148.2475, -86.3425, -109.8167, 108.767, 34.8, -122.6408, 14.95, 4.6817, 101.98, 110.4, 101.87, 112.7, -114.1344, -116.3878, -116.4078, 131.8017, 113.08, 137.6697, 69.6, 130.9737, 109.7, -102.7217, -114.1883, -114.6167, -114.3942, 97.033, 111.05, 139.5645, -123.8575, 112.98, 96.967, 46.3, 114.57, 104.15, 61.4833, -102.567, 15.35, 95.3, 15.9781, 60.907, 84.9167, 46.667, 20.883, 19.9667, -82.385, 122.067, 42.62, 109.967, -102.28, -5.7333, 111.9, -81.8922, 48.359, 39.225, 112.67, 35.02, -1.0333, -1.0081, -132.8486, 129.467, 14.9831, 78.667, 13.3281, 12.1442, 127.3, 41.57, 12.8, 14.75, -1.45, 41.483, -45.65, 15.0, 49.483, 69.8, 81.217, 114.88, 122.533, 100.43, 110.4, 103.75, 80.0667, 72.867, 21.3, 113.65, 67.717, 105.1667, 123.4, 109.683, 27.867, 36.82, 30.033, 69.467, 105.67, 76.367, 112.57, 114.017, 28.733, 15.5333, -16.282, 57.4, 25.917, 18.617, 117.483, 102.05, 39.733, -122.3903, 9.0, 15.13, 13.9006, 13.75, -112.9814, -106.5833, 19.7167, 59.67, 67.067, 82.2, 28.1, 32.667, 138.983, 31.8, -108.5244, -108.5528, -12.483, 20.35, 12.08, 8.5667, 41.883, 10.9867, 33.75, -92.6661, -108.8389, 106.883, 64.867, 13.233, 150.9], &quot;xaxis&quot;: &quot;x&quot;, &quot;xbingroup&quot;: &quot;x&quot;, &quot;y&quot;: [51.6833, 51.7, 44.3958, 49.0017, 55.3992, 50.7839, 50.7992, 68.7, 30.371, 43.9, 44.017, 53.77, 44.017, 50.143, 49.0333, 13.85, 54.2833, 33.83, 45.4558, 46.9658, 45.7114, 42.9536, 33.84, 46.35, 52.133, 18.24, 5.25, 5.261, 38.9267, 32.3403, 32.4106, 36.6686, 36.2403, 68.36, 60.9181, 66.383, 65.9897, 31.583, 24.43, 24.433, 19.533, 12.733, 43.4892, 44.3739, 51.0667, 13.567, 16.833, -2.88, 5.55, 56.28, 43.55, -6.973, 42.1, 34.8083, 34.4458, 30.3519, 34.7864, 47.2992, 51.8833, 22.5, 37.1, 36.98, 40.783, 34.7986, 51.6, 34.2553, 42.1014, 8.98, 9.0, 9.033, 42.1761, -34.9524, -34.9211, -34.9697, -34.9254, 59.36, 31.1097, 5.3, 41.25, 37.75, 18.1747, 43.433, 47.572, 27.88, 41.9164, -19.533, 41.8678, -34.559, 20.983, -25.45, 42.6475, 42.7292, 38.726, 16.967, -10.433, -10.6, 23.883, 49.25, 49.25, 48.5, 48.3006, 66.8797, 42.4244, 42.425, 30.72, 51.1, 55.25, 42.5522, 39.733, 21.8833, -9.28, 37.5167, 33.9433, 17.9556, 47.6, 52.083, 23.067, 62.533, 62.5344, 31.337, 18.1281, 47.53, 50.25, 38.033, -19.483, 57.867, 42.5522, 36.317, 32.767, 16.73, -38.4583, 46.5258, -18.8333, 44.47, 56.45, 35.05, 38.92, 41.47, 39.717, 51.867, 19.75, 52.0, 42.967, 20.7, 20.7, 40.93, 61.4, 40.155, 40.9167, 41.0375, 40.1667, 34.567, 50.267, 54.0, 38.617, 50.2831, 32.033, 65.68, 43.15, 51.0, 33.1783, 14.08, -12.14, 63.0889, 37.4667, 37.4417, 37.4389, 35.7978, 34.2281, 40.5, 54.817, 38.9519, 39.0067, -35.0289, 32.7047, 42.6461, 31.5339, -34.9414, 42.7431, 31.5356, 35.3992, 49.3333, 46.6447, 47.0036, 53.1167, 43.6064, 41.0656, 41.6853, 45.2089, 43.2722, -34.5638, 45.5833, 48.2164, 35.1, 35.1344, 35.0419, 35.0217, -36.069, 36.0908, 62.8167, 42.4697, 58.6167, 54.658, 48.6167, 37.7272, 45.0961, 40.1867, 46.2733, 39.6514, 41.2019, 52.517, 50.917, 60.4331, 50.9, 50.15, 48.45, 36.18, 36.3333, 82.5, 32.9453, 31.3206, 43.6514, 31.2489, 31.3928, 31.184, 45.8678, 40.85, 51.967, -9.879, 52.4864, 10.435, 42.2497, -4.193, -46.433, 46.55, 36.7167, 36.767, 42.6158, 43.0683, 45.5333, 38.282, 38.367, 38.3725, 38.2828, 33.1272, 51.1767, 27.7411, -23.7951, 35.9308, 5.02, -30.8, 42.9694, 47.0886, 25.441, 25.5, 36.3806, 34.165, 42.1003, 41.4864, 33.0167, 40.6508, 40.7042, 42.1103, 52.3167, 42.0572, 39.7369, 42.7536, 43.9247, 46.0667, 43.3864, 59.16, 43.2331, 31.5358, 44.3272, 64.0, 36.8331, 36.8464, 11.526, 46.7253, 55.65, -8.217, 45.0717, 45.0606, 30.3764, 32.8358, 33.8492, 40.4644, 70.3464, 30.3703, 33.8417, 32.8336, 36.7956, 47.7833, 44.4044, 50.7456, -28.8521, 40.5906, 46.4, 60.333, -3.2, 40.3561, 30.717, 30.7, 47.733, 43.7728, -9.867, 69.9775, 46.8667, 39.5008, 48.4067, 37.4403, 41.1203, 36.63, 38.8664, 40.5228, 40.495, 40.2964, -39.01, 34.4417, 41.4914, 34.5872, 34.3622, 34.65, 34.8847, 34.5903, 57.433, 34.7961, 36.7081, -19.4569, 61.26, 61.25, 29.3653, 41.3586, 33.3867, 65.67, 65.69, 53.0608, -13.8483, 60.9583, 49.7281, 25.285, 24.262, 20.296, 26.983, 35.18, 29.783, 24.55, -3.35, 36.5717, 35.2333, 46.235, 40.783, 30.383, -27.6297, 62.1925, 67.0833, 14.513, -3.7, -3.7, 43.8836, 42.517, 69.75, 37.345, 48.0206, 42.7986, 45.3011, 41.9519, 42.0208, 41.9922, 35.1131, 60.9, 42.3861, 42.1, 34.9331, 16.741, 35.8742, 29.4608, 30.7094, 39.8914, 31.9833, 60.96, 60.9617, -8.53, 48.4667, 31.71, 46.1314, 48.5119, 35.0619, 64.7831, 33.8647, 29.7878, 29.6692, 42.1117, 44.9, 61.1747, 61.1561, 61.1689, 61.1781, 61.2169, 61.0883, 61.1025, 46.383, 31.3072, 31.3089, -30.449, 69.3237, 34.5283, 34.9092, 36.645, 34.4978, 61.6244, 42.4372, 40.1117, 40.733, 36.55, 45.2533, 45.4136, 41.0089, 69.3, 54.0167, 32.3483, 33.4408, 53.9167, 34.8117, -20.233, 33.557, 56.283, 42.3108, 65.02, 36.395, 53.0331, 45.55, 38.2486, 29.1572, 29.1097, 41.6397, 57.4989, -36.5, 38.5731, 56.717, 61.5833, 31.9381, 39.617, 32.72, 39.95, 39.95, 41.6775, 51.483, 36.822, 38.9833, 37.4814, 55.0389, 58.3183, 33.5872, 42.2228, 42.2417, 42.2947, 30.533, 41.5975, 32.7667, 38.1211, 36.899, -18.867, -18.8, 44.8197, 41.6847, 44.6867, 44.0397, 31.3336, 38.9933, 37.155, 43.008, 45.1603, 45.15, 37.9833, 69.08, 34.2208, 34.2253, -23.433, -23.5, 10.45, 7.812, -12.35, 43.967, 31.9792, 36.05, 37.467, 33.555, 39.083, 44.5792, 40.817, 34.9142, 33.4625, 29.7258, 29.7333, 18.367, 35.7425, -13.8149, -5.61, -28.6217, 44.2769, 45.1833, 45.8092, 38.1869, 33.5619, 37.3261, 60.43, 29.6333, 37.5222, 46.1331, 40.5, 40.5983, 34.09, 34.138, 46.7794, 28.25, 28.3081, 13.7, 38.6842, 30.907, -37.2775, -19.567, 43.0411, 50.9333, 40.3983, 45.1833, 27.2181, 40.9781, 51.4969, 27.1819, -27.5717, 33.5947, 38.6164, 43.6356, 36.2911, 43.4622, 43.6231, 73.0, 38.25, 34.1922, 34.2281, 56.5289, 18.3494, -16.332, -16.4, 43.47, 63.38, 47.3, 48.3311, -16.6381, 64.5, 49.4167, -18.35, -18.5, 32.7306, 66.0522, 60.083, 34.1433, 50.217, 34.025, -30.311, 54.6817, 59.66, 45.7211, 44.3631, 32.6636, 32.7572, 43.3008, -23.4564, 54.35, 44.9831, 47.5867, -30.5273, -30.5264, 26.8339, 50.3, 34.6953, 36.0719, 54.6306, 7.0725, 41.4225, 49.9706, 46.7167, 39.9167, 43.5936, 47.2667, 35.1792, 36.23, 48.6, 54.361, 51.383, 32.7547, 46.0167, 41.5697, 40.7808, 45.3783, -33.393, 10.15, 41.183, 3.017, 45.95, 46.267, 61.1, 61.1, 65.5997, 59.67, 59.67, 47.167, 55.367, 35.817, 59.6605, 43.767, 58.18, -15.717, 64.16, 64.17, 42.6178, 42.6617, 35.7044, 35.5953, 35.4186, 35.4944, 35.4319, 37.9667, 32.1292, 37.1942, 37.75, 38.4536, 42.2128, 46.5522, 33.2942, 37.7081, 46.5486, 41.0408, 46.0406, 41.7781, 44.0425, 41.2769, 37.2614, 36.4914, 41.0519, 61.2167, 61.265, 61.3006, 46.5, 59.8558, 53.92, 56.083, 15.283, 32.883, 39.1853, 39.2231, 33.1525, 59.61, 41.567, 38.0722, 38.0667, 37.5167, 49.7333, 23.9667, 51.1331, 38.5, 44.5044, 46.1569, 44.717, 46.2831, 43.5667, -25.27, 27.1833, 7.58, 20.517, 17.7, 51.8167, 54.8167, 54.6333, 35.15, 32.1633, 34.7753, 35.4322, 39.3428, 33.9481, 32.2211, 37.7333, 37.9667, 13.217, 48.7667, 42.5136, 33.1244, 33.3633, 44.9933, 33.7792, 39.8697, 33.8667, 33.875, 43.75, 41.4175, 34.6997, 39.3792, 39.4494, 50.8167, 59.5667, 31.1819, 54.7833, 34.3983, 59.1, 40.2839, 29.6617, 39.7997, 47.1167, 37.0919, 38.9072, 42.9328, 40.3706, 32.5992, 55.4767, -37.0, 41.7069, 50.5917, 48.4, 48.4264, 47.4931, 33.3644, 33.4669, 44.6825, 44.3206, 44.6981, 34.075, 58.3814, 74.1333, 42.483, 19.85, 41.7806, 64.8553, 35.3872, 39.7167, 42.7339, 45.2486, 46.6456, 39.4931, 30.6222, 44.5747, 30.1728, 30.1831, 30.3208, 30.4144, 39.5031, 29.7036, 43.6542, 45.65, 45.787, 47.8, -38.0287, 33.405, 36.8753, 36.9431, -22.35, 47.2533, 60.14, 57.2, 40.6592, 40.6556, 39.8592, 27.5947, 53.4917, 58.57, 37.85, -19.6169, 36.835, -36.833, 50.5167, 43.3669, 43.3067, 59.4, 11.333, 47.7122, 45.6, 0.831, 36.717, 51.72, -4.21, 46.5331, 43.45, 51.75, 39.8, 40.8892, 36.6833, 36.6619, 34.5328, 38.8831, 30.97, 46.1, 48.7278, 47.1106, -33.8969, 48.9667, 44.03, 48.1333, 45.6481, 37.1697, -30.3381, 46.8608, 50.5356, 43.8081, 50.675, 49.4728, 50.3333, 46.87, 51.9014, 50.867, 47.72, 50.2, 47.6658, 50.2853, 49.8517, 51.7867, 50.4519, 50.667, 51.5675, 50.3694, 47.0167, 47.7244, 52.1, 50.2717, 53.267, 34.5975, 54.47, -31.333, 41.0383, 48.3333, 16.375, 16.4, 28.3331, -38.733, 24.6589, -20.23, 23.0, 26.267, 47.6667, 49.1333, 49.2667, 49.1333, 39.4047, 39.8311, 39.3794, 41.7, 41.6317, 42.2833, 30.8228, 31.367, -37.8817, 23.9, 46.117, 40.9339, 50.8, 53.1, 46.1833, 61.6667, 37.6, 44.833, 57.0, 35.2761, 46.3661, 30.8878, 35.4186, 35.4344, 41.8417, 39.0117, 34.45, 44.8428, 39.0019, 64.3, 64.3167, 46.3583, 43.9792, 38.433, 54.0, 51.55, 21.517, -37.75, 36.9092, 30.5661, -82.767, 49.2833, 43.9006, 44.2667, 44.9633, 43.8933, 33.9833, 42.7, 43.5556, 44.8, 38.9056, 47.59, -20.1417, 42.67, 46.8, 50.078, 39.619, 52.533, -32.4569, 45.9497, -37.5127, 55.5833, 49.35, -27.4008, -28.8353, 31.7414, 54.0508, 55.1806, 54.5, 43.1003, -45.917, 30.9844, -34.6398, 54.65, 39.1667, 47.08, 29.1, 5.77, 33.3, 49.8753, 70.067, 45.05, 45.0667, 27.218, 26.5833, 40.32, 43.1497, 51.1833, 51.1833, 51.2, 48.5667, 12.967, 12.95, 4.73, 13.733, 39.3975, 44.7978, 4.38, 4.4, 4.398, 13.667, 44.783, 13.338, 13.2, 34.14, 33.4528, -33.9181, 36.1617, 44.3, -8.217, 38.85, 46.32, 25.13, 42.1, 55.3331, 43.4583, 18.2, -24.1819, 53.117, -7.317, 48.322, 36.8825, -23.5544, 41.4192, 41.2928, -0.981, 37.8194, 69.0589, 32.2631, 28.367, 78.1, 53.6167, 54.33, 8.62, 47.7722, 22.75, 41.13, 56.29, 31.9, 59.42, 53.0667, 46.1, 22.0333, 46.233, 38.0281, 45.2883, 53.4331, 43.9456, 46.4, 30.9856, 33.2564, 49.8, 50.0333, 10.043, -11.08, -30.3781, 46.7167, -5.5, -12.15, 41.9111, 36.8978, 42.4281, 44.2033, 54.1, 44.4833, 42.1153, 71.3214, -38.32, -20.875, 71.2833, 48.167, 49.683, 52.3208, 34.8928, 34.8536, 70.1333, 54.367, 36.7619, 36.7683, 41.87, -21.698, 27.8986, 38.5311, 52.117, 48.917, 49.65, 46.683, 48.6333, 29.883, 20.451, 20.433, 47.55, -62.5, -74.7, -77.867, -63.317, 43.9333, -63.4, -62.233, -64.233, -60.733, -68.117, 44.38, 45.8, 42.2547, 50.9, 33.879, 52.8494, 32.7314, 30.1742, 47.8, 63.517, 1.117, 30.0, 43.0303, 1.9, -13.0545, 36.5167, -35.7234, 34.3061, 35.82, 35.7597, 35.8306, 42.6339, 42.3489, 43.9317, 47.6333, -33.4289, -33.412, 66.8333, 13.4, 37.929, 35.55, 35.75, 30.4292, 30.5372, 37.2319, 34.385, 42.3667, 42.3075, 45.7717, 41.05, 40.6117, 41.633, 48.7094, 48.7167, 48.6703, -22.317, 56.4, -5.467, 31.8414, 31.7136, 36.8583, 46.833, 43.03, 45.733, 46.133, 40.75, 47.783, 39.2728, 35.1311, 49.2333, 45.37, 29.9142, 47.9803, 28.9797, 47.9833, 30.8839, 40.8236, 54.3333, 40.5583, 44.4667, 39.1167, 37.2486, 44.385, 44.7833, 37.7167, 44.95, 43.75, 41.8333, 45.0572, 41.295, 40.8208, 40.3167, 41.9583, 44.5972, 44.8019, 48.3, 35.8842, 44.4989, 40.05, 40.8844, 44.6, 43.8833, 40.2994, 45.1333, 37.6336, 46.2, 32.4833, 34.7336, 35.5206, 33.9306, 31.2353, 30.0689, 46.8333, 46.6667, 50.7458, 36.8125, 55.2, 38.4883, 38.2681, 40.1306, 39.6, 44.95, 62.4167, 36.9139, 43.4447, 39.1333, 40.6167, 55.38, 33.7, 44.8167, 49.4667, 48.8667, 45.1333, 66.2667, 31.646, 44.1497, 44.15, 37.7836, 37.7647, 59.37, 40.6742, 42.8733, 38.8883, 52.217, 42.47, -24.3597, 50.8333, 36.1878, 35.4583, -26.9586, 49.5628, 31.233, 31.25, 28.4575, -36.6722, 17.45, 34.567, 21.48, 39.933, 39.8, -19.8, 51.3833, 50.8989, 38.0167, 36.8, 36.75, 46.7, 47.45, 47.783, 42.2794, 48.8411, -1.45, 44.4394, 15.85, 43.5136, 44.8167, 44.8, 35.5731, 39.0231, 44.2867, -34.3691, -28.43, 52.3833, -30.267, 40.3533, 45.863, 35.23, 39.8183, 44.15, 38.52, 42.2611, 41.1167, 44.6714, 44.9906, 34.6892, 41.8814, 48.7178, 48.7939, -62.183, 30.0317, 29.7956, 33.5417, 52.318, 54.233, 59.4, 50.917, 39.4575, 42.5039, 60.033, -19.9333, -19.833, -2.633, 39.0303, 40.8292, 55.85, 73.33, 33.1772, 12.6, 47.5033, 27.5969, 32.6475, 47.5, -30.8081, 44.0569, -36.7395, 50.4144, 44.1183, 44.03, 32.95, 32.08, -3.9, 2.95, 30.133, 32.3697, 35.3, 35.3, -4.383, 40.0503, 56.0281, 34.6489, 42.8914, 52.0019, 45.3167, 31.8806, 61.5633, 61.9358, 40.3444, 34.5675, 41.2322, 32.6997, 44.0342, 37.8431, 42.1244, -29.15, 35.5044, 31.733, 41.317, 38.5908, 32.011, 37.0856, 37.1317, 41.3667, 41.3833, 40.5903, 39.9003, 4.22, 37.5733, 52.35, 52.3667, 49.433, 53.833, 63.93, 57.12, 45.6667, 52.6206, 52.817, 60.2892, 60.3831, 46.5869, 63.05, 60.1186, 37.8744, 52.6428, 70.8706, 44.4536, 52.6325, 52.4639, 52.4056, 44.5761, 52.4683, 43.99, 42.3353, 46.9331, 34.4219, 51.8231, 40.6683, 37.9161, 49.9183, 46.9906, 39.35, 39.8, 47.75, 50.9006, 49.283, 45.0833, 47.25, 33.3953, 35.4017, 41.8975, 36.6778, 40.2575, 60.785, -28.248, 44.3064, 36.4583, 66.9161, 32.0, 43.9092, 44.5317, -32.1083, 42.5881, 34.125, 42.5842, 39.5475, 53.0, 23.283, 20.25, 23.25, 17.25, -1.183, -1.2, 53.1, 46.588, 43.46, -41.8739, 51.3, 45.9981, -32.0056, 35.281, 45.0403, -18.6844, 49.8, 32.3744, 32.355, 50.6381, 42.0833, 47.875, 52.3167, 45.0733, 39.9356, 40.7406, 40.7333, 46.8325, 34.2431, 41.7667, 29.4372, 30.3167, 37.2064, 39.3, 44.6333, 26.3283, 63.9944, 48.1969, 45.5556, 38.3, 34.4619, 44.5667, 41.0975, 37.2758, 44.6828, 37.0203, 38.2244, 31.2, 39.45, 38.5217, 43.8, 38.9253, 34.3789, 42.5414, 42.5844, 34.3194, 43.7072, 42.05, 60.8142, 38.0394, 36.235, 48.135, 37.75, 42.65, 47.0167, 45.2769, 36.475, 32.2442, 41.0469, 36.975, 36.8628, 36.2356, 36.2472, 45.8328, 53.8167, 53.8333, 53.8167, 52.0, 37.0769, 44.8078, 27.3, 52.68, 28.0, 46.8, 49.75, 43.3, 43.2981, 45.9, 42.4167, 36.5297, 49.0167, 37.0536, 45.8069, 45.7508, 45.7717, 44.1242, 18.683, 30.4167, 1.166, 42.1997, 33.9114, 38.867, 3.2, 3.2, 65.5847, 42.6325, -25.8975, -54.0, 30.2625, 32.898, 33.5656, 13.8, 48.733, 53.0903, 55.417, 50.5317, 56.2, 25.233, 31.4475, 58.5167, 19.984, 42.83, 27.5842, 34.2169, 37.3711, 34.85, 46.7708, 46.8, 46.8339, 46.7717, 45.5286, 38.5636, 39.7667, 11.895, 47.6833, 47.15, 2.08, 41.05, 41.5894, 33.4594, 1.433, 46.0, 37.25, 44.0667, 43.72, 74.5167, 60.0508, 61.85, 64.4808, -24.4303, 47.6714, 43.1969, 48.0128, 53.77, 36.0931, 37.2017, 44.1, 40.2692, 33.355, 44.3833, 38.4167, 36.8047, 36.7542, 44.5, 38.5428, 38.5547, 38.9792, 30.8489, 37.95, 38.6833, 39.0292, 33.0867, 47.4136, 37.8617, 43.6561, 46.4167, -11.1538, 44.3003, 33.4783, 38.7075, 36.7944, 43.5233, 54.367, 43.6231, 50.25, 48.9775, 34.8544, 46.183, 31.2239, 34.5697, 37.4786, 35.1183, 60.0, 30.1061, 51.45, 37.0997, 37.6131, 50.0367, 45.4167, 35.6819, 47.35, 42.95, 41.8242, 41.1667, 52.417, -29.1, 59.22, 45.1667, 49.5667, 45.0908, 40.7597, 36.6669, 47.4694, 42.3842, 40.4864, 39.1742, 39.1333, 30.5872, 37.2556, 37.2958, 37.6411, 40.5017, 39.2775, 44.67, 41.0547, 38.5208, 42.2122, 38.6, 40.3803, 38.4667, 44.25, 35.1161, 37.7978, 41.2694, 45.5075, 34.6108, 52.1333, 52.1333, 52.15, 37.2825, 40.8142, 48.8719, 33.6131, 35.9239, 35.9403, 33.6186, 42.2208, 45.8472, 44.5933, 44.6056, 52.65, -18.53, 2.817, 2.833, 11.16, 53.217, 48.067, 39.3886, 51.4803, 38.3208, 65.8197, 38.2119, 67.2831, 67.2669, 52.1167, 67.267, 29.7986, 40.5981, 51.5333, 50.7808, 51.17, 52.38, -6.7, -6.5, 4.701, 56.233, 24.85, 58.3831, 49.933, 43.7667, 7.167, 46.3, 48.9458, 50.2, 43.7383, 43.5667, 36.7236, 43.5253, 53.4, 37.493, 49.217, 65.68, 56.933, 11.583, 37.6167, -36.2, 35.2622, 55.49, -28.0336, 41.45, 44.5, 57.9, 55.67, 56.9, 56.1, 52.83, 52.03, 53.85, 57.915, 54.83, 54.0, 40.733, 66.15, 46.47, -37.0016, -36.9113, 18.9, 19.117, 54.7167, -19.68, -28.66, -13.267, -9.1, 44.375, -64.783, 48.6667, 8.05, 43.2278, 44.6833, 33.6403, 39.1025, 53.5, 53.5, 33.8472, 50.7333, 48.6928, 48.6756, 49.3833, 39.0636, 45.6361, 39.6567, 50.733, 45.4, 46.65, 30.2528, 42.0417, 34.6344, 37.3578, 35.0931, 35.1428, 36.2114, 40.8917, 38.0303, 43.4361, 38.9875, 48.1333, 29.3331, 57.2678, 61.6, 57.76, -16.45, 44.83, -37.85, 44.2667, 21.333, 36.067, 35.6364, 35.695, 18.4981, 54.267, 53.5803, 60.48, 60.4292, 55.063, 11.73, 11.75, 33.2558, -16.0757, 62.76, 50.333, 50.4, 43.1561, 51.17, 23.9, 33.8044, 6.48, 6.5, 5.27, 42.1667, 38.5458, 42.35, 42.3606, 40.535, 42.667, 47.68, 48.8217, 7.68, 5.967, 36.5, 11.417, 36.383, 37.905, 39.9919, 46.2314, 40.0353, 44.7219, 46.5667, 42.7158, -22.9117, 55.417, 50.733, 48.9947, 40.8547, 47.0667, 45.62, -30.0362, 44.8167, 50.78, 33.9431, 17.53, 35.341, 35.333, -20.0151, 55.5408, 32.325, 33.5511, 35.1714, 39.3447, 37.2503, 36.9647, 41.3831, 46.1825, 45.3667, -34.4869, 49.7333, 49.8667, 51.0833, 33.883, 45.2833, 38.5, 31.3944, 44.9414, 45.1672, 43.4053, 35.5303, 45.675, 45.7881, 45.6622, 42.3497, 29.3167, 29.61, 45.8833, 27.4467, 53.8134, 37.495, 41.8975, 41.8031, 35.8644, -14.9408, 45.0553, 31.1444, 57.0108, -1.0833, 41.8, 51.817, -35.4253, 46.3433, 46.4047, 46.4006, 62.22, 52.405, 46.8833, 35.1889, 45.8161, 37.9561, 49.9167, 36.5258, 43.1333, 32.5158, 39.5656, -15.783, -15.867, 34.8028, 45.6603, 61.9067, 48.1667, 50.783, 56.28, 50.2, 60.64, 51.733, 52.319, 35.62, 47.285, 38.2611, 41.6853, 29.1417, -4.25, 37.2889, 32.75, 36.4119, 56.26, 48.5156, 52.43, 47.5, 53.0464, 53.533, 47.5689, 53.5, 37.7092, 33.0097, 30.1592, 44.9667, 35.9903, 44.3231, 52.1167, 53.1667, 53.0833, 35.2283, -1.68, 63.3333, -29.9614, 39.3686, 31.1414, 31.145, 31.0583, 6.53, -83.89, 40.9461, 33.2064, 38.2575, 38.7167, 41.6681, 41.5639, 38.2719, 34.9786, 41.1583, 41.12, 45.3261, -33.9486, -33.9575, 41.9539, 43.5525, 44.4, 46.4283, 51.5, 44.07, 54.1, -41.0025, 44.2833, -24.8353, 40.635, 41.6164, 41.5239, 40.6, 39.9436, 27.0436, 52.9833, 36.2047, 36.2147, 44.1614, 51.4156, 47.2472, 38.3083, 40.6331, 34.8822, 37.9442, -27.4808, -27.4178, -27.3917, -27.4778, 36.4731, 51.467, 35.8292, 43.1017, 45.7908, 53.33, 46.2, 45.4442, 50.3667, 50.3833, 60.4833, 41.6111, 51.8, 49.6167, 43.2, 42.0478, 44.6333, 44.6, 47.2875, 42.6333, 50.1, 59.65, 34.0497, 41.4083, 34.1333, 41.4333, 34.05, -32.0012, -31.9759, 45.1833, 45.4833, 65.4567, 32.0408, 40.8369, 45.7231, 39.765, 43.0519, 33.5214, 31.5447, 42.0464, 44.3253, 32.375, 41.3667, 37.0678, 37.1275, 50.55, 28.6164, 28.4736, 38.7383, -32.3725, 39.4239, -17.9475, 43.8094, 60.1, 33.1908, 48.5617, 44.8364, 48.0333, 25.9156, 35.5894, 45.5958, 43.5611, 44.7336, 31.7383, 40.5833, 48.5353, 39.6097, 53.35, 46.5378, 39.0833, 45.05, 42.8819, 4.944, -18.637, 46.3003, 31.1681, 39.4247, 30.8078, 31.1522, 43.9, 44.2844, 50.9, 41.4619, 37.7064, 37.6411, 37.6417, 39.2933, 15.2667, -1.039, 29.767, 37.5247, 48.8167, 50.1739, 47.9631, 41.2469, 38.1872, 43.0361, 38.9803, 37.3417, 40.6158, 42.1197, 47.1694, 39.3, 41.75, 36.9306, 40.5003, 39.1333, 37.9033, 37.8233, 46.4333, 44.5167, 40.8125, 47.5108, 47.433, 50.8281, 44.8, 31.4106, -6.293, 38.8247, -34.583, 41.15, 42.9486, 44.3547, 45.5161, 36.8314, 37.6667, 45.1969, 36.8003, 45.6044, 44.5075, 40.5819, 44.3814, 51.7, 55.8333, 55.8333, 40.2167, 50.55, -21.017, 42.1164, 42.33, 48.767, 54.583, 53.617, 41.6833, 39.717, 42.6006, 64.4014, 69.62, 64.4167, 58.483, -1.333, -20.15, 48.8, -28.4967, 37.53, 35.1411, -43.0903, 42.3653, 40.4808, 42.08, -13.6714, 46.8167, -33.3567, 48.6833, -24.8885, -37.7163, 36.7736, 30.9594, 24.233, 34.2006, 34.1867, 65.56, 47.6167, 44.7742, 44.7833, 44.7853, 42.3558, 51.0317, 37.0925, -17.7483, 32.5067, 42.5417, 39.3061, 41.7944, 42.6508, 44.4833, 40.7747, 36.0467, 39.2447, 36.0603, 44.4683, 40.7833, 43.3, 49.2833, 30.7586, 30.7406, 40.8803, 33.8936, -41.0661, 35.9253, 34.2103, 54.3833, 43.595, 36.065, 47.0, 45.2333, 48.1667, -34.9997, 43.3656, 43.7, 43.8397, 39.8833, 40.183, 39.6467, 43.0675, 53.05, 61.3667, 41.7769, 35.1, 45.5397, 54.0, 53.9333, 28.945, 28.95, 35.1867, 41.0103, 28.6664, -42.7097, 35.7694, -33.655, -33.6858, 55.8389, -42.2811, 47.5833, 40.8414, 38.2611, 35.5914, 38.9, 42.9131, 32.7397, 46.0544, 47.7947, 45.9647, 53.45, 35.4028, 53.2567, 42.82, 45.1331, 41.75, 52.817, 34.8494, 39.7403, 58.6667, 58.6656, 38.467, 36.5803, -80.0, 32.2033, 44.0908, -28.6399, -26.183, 32.8964, 15.467, 48.0864, 47.8667, 39.6553, 43.5, 34.9817, 21.867, -35.9383, -35.9371, -8.517, 39.5064, -16.05, 39.4719, 39.4831, 25.3903, 34.5822, 32.6583, 33.7411, 33.8083, 44.2656, 36.5008, 52.3333, 35.1072, -14.05, 40.8, 39.2331, 38.5669, 38.5714, 32.9736, -16.6, -16.8736, 31.2667, -16.9333, 37.0422, 42.3167, 50.43, 8.925, 40.9258, 44.2, 38.2769, 37.5531, 22.533, 22.65, -21.91, 40.8764, 43.6308, 51.1167, 51.1167, 33.8586, 34.0906, 37.5319, 32.5133, 36.1092, 37.6128, 38.6278, 42.6314, 33.3064, 38.5961, 3.55, 3.4, 50.15, 41.3111, 41.3075, 39.8997, 41.2519, 41.8275, 28.4658, 36.1414, 45.8833, 42.7778, -31.467, 21.4, 36.0286, 34.2167, 43.2667, -29.05, 50.2167, 40.0111, 40.2847, 44.5733, 45.5506, 69.1, 69.1, 36.0519, 43.3306, 33.59, -34.0391, 36.0661, 48.033, 45.53, 49.15, 32.7214, -2.25, 31.1903, 31.2142, 7.928, -20.05, -19.9225, -42.6867, 61.1639, -52.55, 49.95, 19.85, -23.0, -7.217, 32.6233, 41.567, -21.75, -22.75, -27.38, -7.0, 37.0158, -29.68, 41.924, -20.45, -24.05, 54.1333, 48.0181, 34.3617, 42.3458, 45.5489, 37.8, 34.63, 48.61, 38.2486, 33.3, 37.0375, 38.8167, 29.6703, 53.0333, 52.95, 68.4333, 39.0483, 40.6944, 40.138, 26.8639, 42.8453, -2.55, -13.47, -35.3049, -35.3, 44.7183, 41.4342, 21.033, 30.1383, 35.5453, 31.5589, 32.8042, 35.9494, 33.9153, 40.6, 37.8994, 61.0183, 44.3489, 46.4847, -29.946, 40.7436, 38.46, -33.9057, 41.6517, 43.3056, 32.6714, 44.5772, 40.1433, 63.3953, 34.9806, 44.7167, 38.46, 38.1678, 44.2297, 45.9167, 29.8706, 40.1706, 36.1533, 58.55, 22.667, -20.51, -34.833, 48.7833, -77.22, -35.7549, -43.4886, -43.4892, 40.567, 37.2908, 41.975, -32.833, 64.2333, 64.2333, 64.2333, 64.2333, 66.65, 66.5833, -14.9672, 25.6719, 37.2253, -40.6828, 35.2325, -31.633, 68.4667, -36.9655, 59.9833, 73.333, 57.1333, -34.3728, 38.9536, 43.95, 64.95, -27.0314, 50.0, -33.5372, -38.4306, -38.8556, 40.017, 70.1667, 69.0333, -73.517, 46.6667, -76.717, 50.7833, -42.1986, 51.9333, -33.965, 50.1667, -35.8426, -18.71, 33.5311, -8.081, -34.85, -5.206, -26.933, -19.543, 15.2136, 38.2917, 39.93, 39.75, 33.3433, -6.787, 36.7386, 42.517, 43.083, 49.1167, 43.0, 48.4167, 48.85, 49.51, -8.378, 49.25, 41.367, 48.3667, 12.41, 47.0833, 1.833, 10.5, -9.283, 45.42, -19.8, -17.733, 49.9, 37.7308, 37.7797, -17.53, 43.2142, 41.367, 51.4878, 51.4, 49.2, -18.2553, 33.8161, 52.7167, 47.3333, 46.8706, 65.1892, 45.7667, 39.2883, 54.933, 40.2258, 45.3028, 32.3478, 32.1783, 32.3336, 33.1281, 50.433, 46.7447, 38.6308, 62.1167, 49.4333, 49.5, 39.9614, 41.4725, 38.0733, -21.93, -29.6889, -24.8878, -25.7964, 53.2333, -7.333, 34.6619, 43.4839, 40.0686, 38.4594, 49.173, -34.838, -36.773, 47.5089, 9.417, 33.6308, 35.0964, 28.4894, 42.065, 33.5972, 39.3594, 44.9667, 31.445, 37.1806, 37.517, 46.425, 39.1253, 45.8678, 10.5, 29.7908, 34.2042, 34.1231, 47.7919, 32.1614, 32.7506, 36.2456, 36.851, 37.1772, 53.7167, 40.8847, 36.1261, 30.1981, 49.0, 35.7192, 33.62, 23.167, 32.8878, 32.9947, 32.3222, 37.65, 42.2989, 44.5228, 37.6667, 46.9956, 47.2194, 40.2667, 43.5833, 44.3914, 53.302, -66.283, 36.4108, 44.9711, 33.445, 40.0017, 16.28, -28.8755, -28.8775, 5.62, 42.7131, 42.7333, 42.8975, 42.8614, 46.8769, 38.0211, 43.5861, 47.3847, 47.3778, 42.0633, -34.67, 39.95, 39.9892, 39.833, -37.583, -37.5909, 42.5503, 49.3, 49.35, -37.0809, 39.88, 44.7269, 37.3833, 39.2078, 33.9825, 39.4106, 52.5333, 46.3075, 37.75, 29.1344, -24.783, 36.3856, 14.9, 31.5022, -18.18, 32.4178, 35.6375, -28.596, -28.5, -21.133, 37.47, -25.596, 12.48, 11.78, 37.8044, 52.1833, 37.4681, 41.92, 39.6453, 38.9036, 48.3667, 48.8628, 43.3847, 42.1597, 38.1228, -4.86, -29.16, 4.8, 9.183, 46.93, -5.65, -29.533, 38.9028, 34.0589, 41.5306, 38.7978, 43.5958, 37.7083, 37.6564, 37.7086, 30.0164, 34.2183, 48.9797, 36.7878, 34.9833, 47.4144, 40.3008, 45.2117, 41.5833, 39.7569, 37.7158, 41.8833, 42.05, 41.5217, 35.6667, -32.1297, -32.1267, 15.8, 50.8667, 36.5408, 40.5694, 51.2, 46.2, 52.5833, 35.8297, 51.433, 31.8075, 40.2914, 40.8839, 31.2581, 40.7325, 35.8317, 43.0431, 47.0644, 34.6089, 34.6008, 46.72, 55.217, 65.5667, -13.3275, 41.1222, 29.105, 34.15, 44.4, 32.8661, -15.7426, -62.42, -62.183, -18.7569, -38.3646, 59.25, -29.883, 54.167, 48.27, 56.5, 36.7408, -27.65, 18.1547, 49.4, 49.777, 44.224, 48.95, -32.7886, -32.8093, 52.42, 35.89, -26.9, -6.2, 36.0286, 25.2833, 62.283, 47.5167, 15.8, 33.617, 66.5906, 40.85, 40.9, 39.8447, 46.05, 44.5228, 44.5042, 40.6653, 36.9178, 43.735, 43.7667, 42.2031, 39.9353, -30.367, 36.95, 49.2833, 40.0528, 40.0397, 50.2833, 46.5192, 67.5111, 35.7061, 41.93, 35.6528, 41.35, 43.9, 29.05, 40.367, 38.733, 44.25, 28.2, 28.233, 25.85, 35.17, 37.933, 44.8497, 41.3978, -13.1672, 12.6, 37.6703, 37.6769, 55.283, 41.55, -3.73, 50.2, 49.8167, -27.117, 35.9086, 35.9333, 37.1994, 47.8167, 47.65, 48.133, 41.0939, 56.9, 41.5833, 39.0831, 41.0164, 50.467, 39.4761, 48.3833, 41.6814, 32.78, 32.8986, 32.85, 38.3139, 38.3794, 43.5833, 43.0603, -26.4139, 47.2833, 37.9589, 42.5503, 41.0347, 38.0328, 37.9975, 38.1386, 46.2833, 46.25, 28.9275, 18.3331, 37.0522, 35.2236, -36.4335, 47.9833, 47.9833, -36.2847, 43.0597, 45.6833, -20.0464, 48.4617, 36.7775, 44.8131, 46.05, 65.0167, 48.067, 46.85, 46.4831, 46.9667, 36.8225, 41.6569, 46.3344, 46.3414, -43.95, 41.6875, 50.3333, 42.3833, 31.4714, 44.4, 34.7583, 34.77, 35.0311, 34.6403, 47.0511, 44.8786, 29.3092, 36.3211, 50.067, 45.6528, 34.1847, 39.1814, 39.2203, 35.432, 25.625, 47.8344, 55.3, 42.3264, 45.5167, 44.0108, 48.9333, 50.8, 43.2292, 43.2167, 65.0528, 45.9, 40.967, 30.667, 37.4, 40.7394, 25.8, 35.3333, 40.7667, 40.8111, 34.7319, 38.115, 60.4, 63.03, 48.3667, 42.583, 52.78, 42.7572, 36.7481, 35.6197, 25.25, 25.25, 34.5964, 34.9, 42.8239, 37.9747, 68.75, 57.65, 35.1108, 40.3033, 48.5153, 34.7289, 63.35, 39.2167, 34.6847, 46.65, 18.505, 55.6833, 50.4667, 39.1547, 48.2733, 41.1519, 35.5461, 38.8219, 41.1522, 25.517, 18.783, 19.883, 35.6, 49.7667, 41.77, 42.1397, 41.7861, 41.7372, 41.8558, 41.995, 42.1208, 42.4167, 41.8833, 35.983, 27.1, 27.0833, 34.9203, 34.5019, 35.0322, 35.0489, 64.0917, 64.06, 42.2, 39.7119, 39.6911, 57.7294, 47.9967, 47.883, 50.5728, 42.3, 28.633, 34.3317, 33.285, 34.4386, 34.4272, -15.683, -36.5833, 39.8667, 39.775, 39.8233, 39.7683, 39.3858, 49.1667, 49.0833, 43.9772, 42.7036, 42.5769, 38.7983, 17.55, 44.0328, 42.3, -19.117, 8.539, 35.6875, 37.9333, 47.843, 35.2, 48.5883, 48.1731, 33.9753, 34.7569, -13.55, -20.2, 30.7806, 41.0517, 32.0, 42.2, 62.1333, 47.0167, 29.2703, 29.2667, 62.5653, 52.0831, 61.5222, 61.5319, 14.233, 39.8, 51.0887, 43.7667, 48.083, 46.45, 26.733, 53.7, 28.4675, 70.6167, 13.3167, 41.783, 36.63, 29.583, 35.82, 13.367, 48.983, 51.283, 45.517, 49.017, 35.733, 47.8206, -43.489, 35.7047, 37.1278, 17.7028, 17.7469, -10.45, 34.8083, 36.3689, 41.7594, 32.64, 62.8256, 10.483, 64.23, 37.9, 41.783, 34.83, 36.22, 46.86, 49.068, 58.7333, 58.7333, 58.7333, 53.55, 53.5667, 41.3975, 53.833, 49.8333, 7.45, 25.017, 49.083, 58.0833, 44.167, -7.733, -7.7, 37.8131, 38.4442, 36.4661, 37.1408, 42.95, 47.63, 39.4203, 39.1169, 39.1033, 39.0431, 39.1, 41.2333, 43.3208, -11.083, 47.4122, 39.6106, 65.4939, -6.75, 44.067, 40.8397, 43.7186, 8.122, 24.95, 19.717, 27.367, 27.393, 38.9892, 38.9892, 23.733, 57.767, 45.0833, 46.1694, 32.8203, 32.8517, 34.1369, 36.3225, 53.7167, 41.0489, 34.68, 34.9325, 48.3667, 50.0, -33.8226, 40.7244, 41.1922, 44.8817, 34.6158, 46.4992, 39.2683, 39.2956, 34.1864, 36.6214, 35.4564, 33.6164, 35.5328, 39.3731, 36.4975, 36.6239, 33.6189, 36.5472, 33.6631, 44.9367, 33.8767, 44.3742, 46.1081, 51.7917, 49.1333, 31.8708, 36.4594, 34.8878, 36.4486, 37.9667, 35.6408, 39.3739, 40.5208, 48.9672, 56.3167, 41.0467, 44.5781, 47.5711, 51.9833, 37.1319, 39.8667, 39.8833, 34.2711, 44.7592, 45.2, 64.2453, 32.3139, 34.6719, 34.6603, 41.6961, 28.4558, 45.8, -22.8239, -33.7011, 30.3636, 33.7367, 34.5858, 41.4131, 33.7942, 41.5175, 35.2203, -33.7081, 26.7361, 47.1889, 32.8339, 33.0561, 39.3672, 35.0028, 34.9319, 38.395, 42.5492, 44.6228, 41.7947, 35.0247, 30.8178, 51.15, 38.9408, 35.21, 37.1453, -20.6664, 46.7047, 32.9544, 44.4, 38.8, 45.205, 49.1167, 45.0167, 34.4289, 34.5989, 34.3833, 46.8, 46.7831, 70.4833, 70.4833, 36.1356, 35.3683, 40.9139, 40.9383, 39.8958, -4.083, 45.15, 18.133, -31.5389, -31.484, -11.03, 42.6667, 43.95, 43.9667, 50.283, -17.42, 38.4461, 38.15, 35.6414, -10.0511, -12.183, -3.833, 30.3875, 44.5147, 44.4139, -13.7606, 47.6822, 37.0911, 37.0614, 56.0, -30.3107, 42.2792, 47.0567, 39.8717, 34.9225, 39.8333, 11.033, 40.15, 36.28, -38.2333, 39.3925, 42.6472, 30.3106, -37.7239, 37.2733, 41.9622, 44.6333, 55.2208, 54.4167, 43.2667, 42.5333, 44.35, 44.8611, 31.8281, 49.5667, 31.5061, 28.7156, 38.4844, 44.4833, 45.2, 39.0911, 44.3158, 19.277, -6.03, -29.5407, 39.2367, 45.4833, 45.5794, 64.925, 64.8603, 30.5892, 35.0781, -33.3608, 44.5, 31.6419, -20.5534, 41.775, 58.1833, 58.1833, 40.6983, 6.9, -34.5, 23.2, 44.8711, 31.0522, 36.9936, 37.9478, 39.1014, 38.81, 22.1, 31.1681, 45.8944, 31.2503, 33.9486, 35.9167, 35.6381, 45.725, 35.7108, 41.1453, 32.1667, 46.8814, 33.9706, 38.8169, 33.9831, 38.9422, 40.4, 32.7039, 38.4167, 29.6989, 31.8297, 33.4678, 37.1764, 39.1661, 45.6444, 32.5181, 41.4639, 33.65, 37.4333, 32.5161, 39.9833, 40.0781, 39.9914, 39.8167, 39.9047, 40.025, 39.1875, 48.5472, 67.05, 70.4322, 45.8667, -37.3417, 46.4667, 11.117, 39.3814, 16.25, 34.2625, -31.297, -45.783, 49.7167, 9.57, -32.4, -8.25, -19.033, -36.83, -23.43, -16.25, -23.4, 40.2394, 35.4072, 31.5514, 48.5558, 35.4111, 39.5592, -31.38, 39.5514, 37.9917, 43.1953, 37.9833, 48.5397, -33.0664, -33.0682, 45.2325, 47.5361, 39.7994, 40.6211, 53.083, 43.3203, 53.91, 49.6167, 39.6556, 48.1794, 30.3303, 30.3567, 30.2364, 51.9333, 44.22, 36.3697, 48.0803, 34.1942, 33.8314, 35.0833, 8.683, -29.0347, 36.1075, 45.0108, 45.4167, -15.4461, -15.4486, 47.8947, -28.1681, 46.7667, -36.2939, -36.2318, 49.3, -31.3304, -31.2712, -30.9776, -30.9753, -37.2906, 42.7167, 47.405, 18.0667, 33.3192, 60.4875, 40.2569, 43.2717, -34.6299, 40.2, 31.5333, 31.9497, 43.8, 47.05, 47.0833, 38.3139, 47.4667, 47.4678, 39.4833, 51.0833, 43.1872, 42.9589, 64.2, 38.2022, 36.0975, -22.02, 31.985, 34.305, -31.317, 37.8442, 60.4889, 60.5561, 39.6167, 44.9197, 44.0069, 34.8792, 51.841, 49.3167, 34.5181, 45.8269, 37.7928, 48.9333, 48.95, 36.4197, 40.9886, 42.1342, 39.9389, 43.9572, 45.0167, 12.0, 49.1167, 49.05, 31.3456, 33.8, 52.0833, 52.0667, 34.1492, -18.053, -13.155, -25.467, -35.9887, 18.3267, 27.7839, 27.8, 27.6833, 27.7792, 35.2489, 36.9911, 40.2833, 39.64, 47.0167, -13.33, -27.446, -32.3292, -36.1828, 32.1225, 32.0311, 50.0667, 37.3444, 37.2553, 37.3031, 40.55, -19.083, -19.0, 42.9986, 44.4186, 44.6342, 44.5078, 39.8536, 40.3708, 40.2403, 45.3167, 43.658, 6.35, 43.7917, 43.7178, 51.7775, 52.733, 47.17, 43.9611, 46.0336, 65.3458, 38.5731, 42.5167, 38.3703, 40.6242, 28.4567, 45.8003, 41.775, 41.7392, 46.0625, 44.1308, 47.25, 47.9167, 47.9544, -34.3749, 44.7442, 38.6758, 45.1833, 39.0189, 48.2072, 49.7667, 49.7167, 49.6833, 39.7811, 34.6603, 39.8158, 45.2964, 45.3333, 33.5972, 35.5497, 37.8106, 52.0333, 41.9903, 35.0592, 48.8167, -33.8449, -33.8451, -33.8087, 41.2708, 49.9167, 21.452, -45.5833, -45.55, 36.0642, 38.2833, 44.2833, 36.683, 44.4333, 37.4903, 37.6792, 57.18, 55.4772, 51.7667, 51.7833, 40.4506, 40.4953, 37.5222, 44.23, -38.1348, 49.6167, 49.5167, 44.8503, 31.4072, 31.6728, 37.7617, 44.1667, 40.4597, 40.6669, 33.7403, 53.033, 43.465, 42.8967, 46.5667, -5.167, 40.0028, 42.6333, 41.9919, 37.8256, 42.4603, 41.7958, 41.7803, 41.7611, 41.7608, 53.6, 43.3894, 37.83, -41.7256, 38.8739, 48.1889, 49.1, 37.9806, 41.0372, 49.0833, 30.7797, 37.745, 38.3636, 40.6092, 38.7956, 31.8453, 51.0333, 38.7692, 45.3575, 44.1167, 45.6, 34.7833, 31.3072, 42.7364, 69.2833, 40.86, 47.8014, 48.9075, 33.6517, 48.9681, 40.1667, 28.5978, 33.1111, 36.0139, 35.9178, 36.0147, 35.9508, 29.6333, 29.6333, 54.5333, 45.6414, 39.0, 41.8833, 30.2408, 34.2083, 11.15, 49.6333, 41.2167, 43.8333, -18.2044, 37.6664, -7.633, -6.43, -28.63, 42.99, 46.7833, 31.9461, 39.3333, 35.995, 35.0883, 14.8, 37.0969, 7.9, 11.767, 40.0667, 18.883, 29.0892, 44.15, -15.55, -15.65, 40.2333, 48.1503, 50.083, 37.2167, 24.765, 34.1953, 34.1925, 35.3117, 56.8331, 54.5, 34.005, 55.1, 10.5, 45.5333, 39.6419, 37.0167, 34.2289, 53.0333, -31.6219, -28.0706, 69.3667, 50.85, 43.9331, 62.033, -34.967, -25.417, -25.517, 40.3667, 38.7586, -39.9322, 24.7425, -17.5736, -25.3139, 40.6742, -6.23, -18.75, 35.9803, 47.3706, 43.7744, 43.7331, 43.75, 31.7672, 41.8328, 48.6033, 53.8731, 32.9897, 10.85, -13.6, -13.52, 52.3582, -16.4514, 38.3769, 49.6667, 49.6333, 49.55, 49.5667, 50.8167, 27.6606, 31.9544, -0.479, 28.45, 51.0783, 14.13, 38.9783, 59.66, 16.083, 49.7333, 32.9203, 46.6667, 14.733, 23.711, 25.4831, 42.7256, 52.75, 43.583, 65.2667, -27.1605, 38.9386, 43.0497, 38.4547, 51.7, 36.0167, 38.9, 44.9464, 33.9881, 32.8978, 33.8333, 32.8519, 32.6808, 45.8667, 6.793, 41.4086, 24.05, -30.2761, -30.2772, 46.1833, 44.6167, -16.2636, 28.883, 39.2647, 33.412, 11.786, 16.044, 36.43, 41.4, 46.0086, 41.3714, 40.05, 29.0567, 45.6611, 38.1, 34.1175, 50.2333, 40.3, 42.9281, 11.228, 50.367, 76.77, 44.7192, 42.9447, 42.5653, 42.5708, 36.5869, 37.6528, 40.1389, 45.8167, 40.4397, 36.5728, 19.52, 29.05, 10.867, 54.3167, 46.0264, 35.2342, 35.667, 51.3, 40.467, 48.083, 45.1667, 33.75, 34.3011, 42.6781, 49.8817, 41.1144, 48.5406, 48.26, -36.5353, -12.4239, -12.4227, 43.4136, -6.867, -6.5, 41.8, 49.55, 45.0833, 32.9711, 40.1, 55.867, 51.1, 51.1, 51.1, 30.2506, 41.6117, 47.6575, 41.2492, -68.583, 38.7167, 38.535, 39.0981, 32.1667, 46.8167, 64.05, 64.05, 34.3761, 64.05, 55.75, 30.98, 44.8728, 29.1828, 46.3153, 35.4717, 39.9061, 39.7633, 30.105, 39.5936, 44.5564, 37.85, 31.2, -30.667, 70.1917, 46.8, 40.8, 61.25, 44.4667, 44.55, 39.2636, 40.0786, 44.3256, 42.3194, 42.3469, 58.4333, 58.4333, 36.4622, 44.8919, 48.4, 45.4167, 57.63, 47.489, 47.6, 33.2733, 40.8483, 34.5569, 35.6394, 39.8344, 34.6525, 39.8289, 39.354, 43.3042, 12.467, 52.0614, 48.3556, 46.8997, 35.8272, 66.0689, 49.4, 40.4044, 43.5764, 43.1744, 49.1667, 49.2167, 46.3911, 48.8019, 46.0278, 43.5833, 47.9667, 47.9742, 41.2783, 41.3375, 31.73, 40.46, 39.5, 30.317, 35.285, 33.4797, -15.7442, 29.0181, 45.0417, 52.1833, 42.2558, 42.8667, 65.2167, 65.2167, 37.37, 36.917, 31.8769, 34.0092, 40.615, 61.79, 61.83, 39.3375, 38.7539, 64.0839, 64.1172, 63.9647, 50.1833, 49.0167, 48.9983, 49.05, 37.6908, 29.3842, 29.3783, 29.3667, 34.4311, 39.46, 32.2531, 45.2167, 32.2622, 59.6, 52.5083, 35.5317, 32.5192, 31.417, -25.9261, -35.5575, 41.9897, 41.8483, 42.0364, 33.8167, 37.783, 44.3514, 40.4056, -8.749, 47.3181, 33.1992, 33.2061, 39.5703, 32.9619, 39.8328, 39.7633, 39.7294, 52.9614, 46.86, 42.0628, 69.33, 28.45, 34.0464, 31.82, 42.07, -17.3706, 45.5842, 33.5597, 32.76, 44.45, 53.3917, 39.3011, 32.8569, 46.6667, 46.6833, 39.2872, 36.4381, 36.5792, 33.6267, 39.6725, 41.5333, 30.4, 34.9772, 41.5561, 41.5339, 41.7367, 45.9983, 42.4092, 44.7242, 46.8572, 46.8372, 46.8489, 42.2314, 42.2333, 51.2, 49.767, 45.8667, 26.6033, 41.53, 35.6111, 48.1167, 48.1069, 47.9853, 44.5817, 44.5833, 37.2269, -41.1708, 34.2211, 68.65, -30.65, 52.1014, 30.7244, 41.9342, 52.9267, 34.05, 30.8428, 39.8717, 44.3867, 26.2833, 26.983, 48.7142, 37.3292, -18.23, -14.4, 36.9861, 42.8667, 43.1833, 35.2947, 39.5667, 40.6172, 39.7086, 25.617, 27.483, 46.8911, 47.1944, 36.075, -20.535, -12.3, 52.586, 13.373, 65.2397, 39.05, 73.5, 35.1842, 39.0333, 50.7325, 48.5708, 44.0992, 45.2128, 34.4092, 45.1581, 39.6261, 45.2575, 6.65, 43.0167, 34.5858, -62.183, 30.033, 35.083, 37.0664, -37.0491, 40.2447, 40.2442, 40.5086, 40.4378, 14.65, 50.9181, 9.6, 41.9667, 41.9667, 37.1122, 43.2336, 68.7781, 44.8, 45.7511, 41.3, -20.17, 45.917, 41.835, 37.4389, 37.4361, 37.894, -2.7, -2.53, 24.55, 34.683, 33.8697, 48.6, 46.733, 41.0072, 56.617, 51.65, 44.1331, 42.9608, 43.1, 37.7608, 41.9675, -6.167, 54.167, 46.2536, 39.5619, 25.261, 54.883, 55.12, -4.18, 43.6, -36.35, 62.083, 50.75, -75.117, -77.317, 44.5667, -80.37, -76.42, 52.5167, 30.0719, 31.0286, 47.9431, 40.1275, 48.067, 19.1, 19.167, 39.83, 32.85, 17.483, 36.6206, 36.6269, 38.2167, 40.6458, 39.3239, -33.5719, 40.1636, 20.517, 13.917, -15.3797, 36.79, 43.7822, 14.03, 14.033, -30.3442, 41.6833, 40.8833, 13.033, 18.3361, 31.3214, 4.02, -25.9319, 31.345, 31.4889, 31.4583, 42.7972, 48.1156, -13.8345, 47.62, 50.0983, -43.3167, 39.1467, 36.4819, 39.1333, 45.1872, 37.7672, 41.9856, 39.6269, 39.5633, 47.85, 40.33, 39.9717, 40.0222, 57.2, 42.933, 39.9153, 43.6656, 48.0475, 59.7537, 62.09, 41.65, 36.2836, 51.133, 51.0233, 51.1167, 61.8869, 43.8081, 43.7306, 30.2133, 44.6331, 49.35, 35.567, 51.45, 45.8833, 46.6383, 45.0333, 52.05, 52.1833, 49.8333, 30.2, 30.0481, 47.2442, 41.4167, 41.4917, 63.6772, 45.9444, 47.7333, 40.5667, 40.5333, 33.3597, 40.535, 36.45, 9.34, 25.255, -32.2206, 32.5575, 32.0628, 53.3639, 43.5397, 44.2436, 41.1783, 38.4558, 42.54, 42.3978, 40.1678, 24.7706, 48.167, 69.4, 45.4539, 40.1839, 35.9667, 49.096, 36.3, 36.9358, 43.4117, 46.8369, 46.8367, 9.3, 33.8847, 35.8731, -66.667, -12.635, 56.0039, 32.7481, 34.5011, 48.75, 48.7333, 50.2333, 45.6167, 54.0531, 41.9553, -32.0159, 43.9578, 47.8667, 43.37, 40.15, 51.05, 48.7167, 42.4933, 37.9497, 35.3247, 47.3467, 41.1833, 56.4505, 42.183, 45.0469, 44.8658, 54.3667, 48.0667, 44.6197, 42.9269, 37.2911, 24.05, 24.0, 37.1431, 34.0, 33.9208, -33.35, -29.97, 43.1433, 43.9997, 54.7679, 35.9706, 43.1717, 43.1092, 25.83, 38.5494, 41.5217, 51.2969, 53.895, 51.1833, 55.7, 37.9878, 62.867, 22.3667, -32.7103, 41.1072, 46.5022, 57.202, 37.615, 35.9986, 36.0003, 53.5, 70.1297, 55.33, 52.7, -12.805, 68.73, 56.85, 40.917, 50.25, 59.02, 45.5, 40.117, -66.717, -67.4, 31.909, 38.4758, 64.7856, 55.8, 64.7761, 64.7767, 49.5833, 45.3686, 39.65, 33.8089, 36.5575, 28.7569, 39.9278, 45.9169, 61.2967, 61.3192, 44.4856, 47.7, 47.7, 50.6333, 49.4333, 32.3989, 32.2003, 47.2422, 44.9067, 37.3875, 51.9589, 42.1103, 48.4469, 44.6425, 44.3669, 42.2356, 45.1519, 42.6742, -33.033, -33.0, 33.4192, 42.8267, 46.4667, 43.1333, -38.1156, -38.1072, 42.3328, 44.2839, 41.7653, 39.3167, 39.7347, 44.7878, 42.0153, 44.8664, 38.55, 40.4681, 48.1008, 49.8531, 39.5, 44.4667, 36.3092, 40.9656, 39.65, 47.75, 38.85, -36.1647, 36.213, 52.2833, -40.9928, 37.0486, 36.4742, -37.0222, 36.0164, 44.6722, 45.9267, 63.98, 41.3853, 46.3694, 43.3728, 43.6242, 52.7833, 26.2981, 38.8025, -34.7111, 55.95, 26.5258, 41.667, 40.2764, 32.505, 32.6064, -35.1121, 53.5667, 53.5667, 53.3167, 53.3, 53.5667, 53.6667, 53.6667, 53.55, 53.55, 53.4167, 48.4239, 47.4167, 61.38, 61.36, 53.5833, 53.5833, 53.5833, 34.9, 14.0, 51.1831, 53.1233, 53.1231, 39.8333, 40.1383, 47.7794, 39.1181, 56.89, 44.2325, 44.2333, 60.73, 51.25, 65.283, 66.3497, 33.6133, 48.8789, 64.6667, 58.507, -37.2091, 44.85, 47.6294, 51.4494, -6.66, 39.805, 47.85, 32.4, 41.95, 45.8903, 56.8331, 47.7331, 41.033, 53.0831, 59.24, 61.4494, 48.82, -83.133, 54.95, 29.55, 38.607, 34.1408, 54.167, 51.1667, 51.1333, 48.6833, 38.3486, 42.3653, 30.8694, 37.8639, 0.404, 52.633, 33.1461, 67.05, 58.1917, 30.3492, 37.3475, 41.9872, 42.0628, 31.5908, 42.183, 33.9403, 46.32, -82.617, 42.3161, 36.3644, 34.6044, 37.6797, 39.3811, 36.3097, 32.9161, 42.7753, 37.0058, 43.0, 49.9333, 39.0131, 38.8853, 40.8603, 40.8289, 43.6425, 46.85, 35.8, 45.8356, 35.3925, 37.2775, 44.7578, 53.6833, 41.6878, 40.85, 45.305, 46.7822, 51.1967, 46.0108, 46.9692, 47.0339, -31.333, -17.5521, 46.35, -33.6501, 46.5631, 38.7297, 44.7303, 44.15, 48.9903, 38.8681, 47.0092, 42.0997, 42.1594, 44.5431, 46.25, 44.3186, 38.87, 43.65, 43.65, 54.067, 39.1506, 50.4825, 33.6692, 42.1717, 48.0164, 40.2872, 47.9239, 41.3814, 41.3461, 47.9753, 47.8833, 39.2922, 39.2953, 48.2019, -16.5, -16.513, 31.073, 33.667, -41.943, 32.8006, -50.267, 5.691, 33.6472, 32.7669, 32.8167, 9.98, 37.7833, 37.8183, 33.2208, 4.453, 13.357, 13.617, 30.5667, 36.9, 34.15, 32.633, 34.5892, 34.6344, 35.0381, 13.167, 13.2, 31.7833, 31.8117, 31.8111, 35.5483, 36.3467, 49.1, -17.812, 36.5928, 8.633, 47.6581, 44.4972, 44.567, 53.3892, 53.333, 63.483, 29.52, -23.5694, 48.4333, 43.4675, 45.55, 42.3667, 37.1561, 53.617, 48.1383, 43.1025, 43.8544, 39.6811, 42.4694, 32.8711, 27.95, 31.7806, 36.6983, 38.4294, 38.3306, 40.5019, -23.0314, -27.3, 50.1833, 27.9775, -30.53, -50.483, 46.6167, 46.1281, 46.8167, 50.7167, 36.4194, 58.45, 66.3797, 37.567, 61.1333, 45.3394, 45.35, 69.05, 69.0419, 68.6025, 68.5708, 44.9094, 44.9097, 30.283, 37.5764, 45.7083, 31.2975, 37.5586, 47.6983, 47.6744, 49.2167, 49.2167, 53.6, 12.7, 39.3583, 45.1708, 47.3078, 43.0303, 49.1317, 54.2, 39.317, 61.2667, 48.533, 45.9, 43.65, 54.3008, 50.9844, 35.2164, 35.205, 41.8036, 42.25, 42.08, 41.6281, 58.6, 53.3, -26.2635, 10.89, 40.0458, 53.967, 57.12, 51.33, 36.1422, 50.27, 39.71, 39.957, 41.867, 37.7686, 51.1844, 33.1211, 47.0378, 37.4667, 53.6492, 32.6167, 32.751, 51.883, 39.1078, 55.3167, 59.39, 59.38, 39.78, 38.8592, 51.2553, 35.9989, -33.83, -33.6825, -3.9, 38.2428, -14.91, 60.2206, 60.1831, 60.2075, -42.933, 48.4333, 67.89, 31.398, 51.417, 51.4, 43.6156, 40.8314, 44.5078, 44.5078, 48.692, 55.9, 45.2689, 34.8242, 39.3831, 64.8464, 42.4153, 64.9111, 40.3689, 40.3667, 49.2167, 49.2167, 49.3833, 49.3833, 43.4036, 43.4075, 51.6667, -30.4, 35.624, 49.55, -31.6797, 33.1144, -34.1754, 32.0111, 44.1278, 30.4917, 33.5628, 39.5169, 45.7644, 79.9833, 37.8253, 39.6014, 48.9, 48.8978, 36.4164, 40.8097, 51.9978, 45.2172, 40.6864, 31.185, 41.265, 41.2731, 37.9647, 38.0442, 42.5978, -29.183, 47.4581, 68.4908, 36.0717, 44.65, 40.0136, 47.9753, 47.9078, 25.8997, 31.445, 39.6381, 31.4156, 40.617, 38.533, 21.3167, 42.2611, 50.73, -32.2464, 44.8464, 54.1167, 52.9667, 12.07, 59.0267, 45.833, 57.2, 60.983, 22.35, 47.433, 64.9736, 64.8367, 64.8172, 64.8039, 64.8342, 40.0739, 47.6333, 38.2736, 39.3478, 40.2703, 41.0211, 47.1906, 47.6153, 35.5417, 38.3806, 43.3428, 30.5467, 30.5486, 34.705, 39.4667, 40.6422, 43.6447, 39.2219, 36.2633, 56.0833, 35.9689, 59.533, 45.0203, 45.0319, -2.883, 43.62, 26.5581, 26.5547, 27.1353, 33.4392, 38.9333, 39.4572, 39.4167, 40.0803, -36.8708, 35.9808, 41.95, 35.6392, 44.2939, 41.65, 55.38, 60.6167, -27.05, 60.26, 36.8839, 32.03, 50.45, -65.4, 27.05, 63.7233, 30.8264, 46.9253, 44.3092, 32.775, 40.7342, 37.7922, 40.9667, 42.4669, 44.6889, 41.0222, 44.6697, 36.6897, 41.0, 37.7617, 36.7436, 40.2539, 37.3264, 45.3, 38.7667, 37.014, 57.92, 62.2, 62.2, -13.312, 56.7181, 28.9, 52.85, -3.864, 45.0364, 49.8667, 34.2661, 41.7, 18.0, 33.6847, 42.8503, 36.0097, 36.1006, 36.2833, 35.0583, 34.9914, 35.15, 32.6319, 29.755, -12.18, 53.3358, 47.8756, 47.27, 19.7, 19.5667, 36.9614, 31.05, 41.22, 23.033, 46.1, 46.0931, 36.695, 45.0331, 40.3667, 46.2919, 43.7, 43.7333, 30.6669, 47.9461, 49.4833, -37.8775, 44.0494, 51.0167, 44.8325, -62.1, -77.9, 39.0875, 49.3333, 47.6456, 38.2306, 44.367, 60.4083, 49.15, 47.817, -21.442, 50.4292, 49.9817, -28.817, 42.2642, 43.6806, 34.7331, 61.1781, 43.9158, 59.72, 38.9664, 60.24, 49.8, 41.0136, 41.0461, 44.4183, -41.6428, 36.3164, 47.4536, 48.6172, 45.09, 51.0833, 45.0667, 45.4581, 42.7, 32.9903, 42.4722, 47.1292, 47.5167, 42.3833, 38.9361, 39.84, 62.1031, 42.5519, 34.5519, -18.1814, 39.8811, 35.8717, 36.3642, 40.7167, 39.2814, 35.1611, 35.145, 44.8142, 35.1442, 57.69, 25.1422, 40.9317, 44.0517, 46.4581, 29.6339, 62.73, 46.9328, 39.3375, 48.8, 46.8217, 62.8228, 36.2528, 43.6197, 40.5739, 40.6483, 54.8103, 35.4267, 45.8, -40.0911, 48.35, 43.0378, 42.9667, 42.0792, 54.6833, 54.7667, 60.6141, 59.06, 46.9728, 38.6786, 31.0425, -6.11, 43.8, 45.9336, 44.0042, 34.2933, 34.1853, 50.2392, 39.455, -19.88, 29.1333, -6.767, -27.583, 38.9128, 61.5831, 61.85, 48.2975, 33.985, 57.093, 23.87, 62.1167, 43.0167, 30.74, 36.4328, 63.68, 43.7953, 43.7667, 43.77, 41.8183, -2.533, -33.3627, 61.4648, 33.8228, 40.7131, 49.4833, 32.36, 44.0686, 52.4667, 39.0914, 44.6997, 43.2844, 35.3125, 45.5247, 45.3397, 47.3167, 47.9558, 44.2183, 46.0333, -26.213, -15.54, -14.93, -30.8453, 63.14, -32.1756, 46.2719, -3.767, 22.1833, 46.4833, 48.9081, -32.783, 48.3042, 35.1397, 58.7667, 42.8833, 48.65, 48.65, 66.2333, 66.25, 45.2969, 36.0117, 49.15, 60.2333, 49.7833, 56.65, 56.65, 67.4, 58.8333, 58.8333, 44.1153, 61.3167, 62.7167, 62.7167, 43.425, 72.0167, 31.4, 53.7167, 44.55, 34.6667, 61.7667, 61.7667, 61.7667, 60.0167, 60.0333, 54.45, 56.2333, 38.8333, 58.3833, 66.5664, 44.9983, -71.317, 41.8367, 47.5636, 44.4139, 42.9736, 60.117, 33.6028, 35.8922, 42.4, 45.3333, 36.7939, -31.0867, 28.5033, 46.4856, 48.4583, 64.9592, 54.4, 67.5333, 41.0061, -25.52, -20.55, 40.9842, -1.667, 16.77, -21.217, 41.1183, 44.6481, 38.1847, 40.2986, 50.1483, 35.1803, 39.5536, 41.4003, 42.3297, 40.0953, 29.8233, 42.05, 35.9417, 39.4689, -38.1481, 62.52, 39.9425, 54.0833, 35.8456, 34.3861, 30.2392, 38.2875, 37.5739, 40.4167, 39.4167, 45.8667, 45.9167, 45.9167, 36.9414, 37.5464, 42.4497, 64.08, 64.08, 60.14, 36.7647, 38.4583, 36.9869, 36.7256, 40.3142, 38.8672, 28.9844, 42.2972, 27.8722, 42.5192, 48.0, 48.5, 45.05, 37.5422, 41.3331, 41.43, 43.4458, 41.3119, 33.8081, 38.5778, 39.3833, 47.2856, 45.33, 36.7672, 36.78, 48.4544, 36.9969, 48.5222, 47.6853, -41.9953, 43.975, 40.6558, 40.505, 34.64, 33.7333, 51.117, 46.45, 49.8, 43.517, 38.9039, 63.19, 39.66, 38.2894, 71.0931, 39.1653, 36.7381, -20.03, 35.0667, 43.9906, 56.3, 48.4983, 42.905, 32.7939, 32.35, 47.8306, 41.8714, 39.5092, 35.1333, 41.4453, 36.6667, 38.6803, 38.6586, 46.1358, 40.5764, 40.5756, 30.5997, 42.5836, 40.2842, 31.615, 27.5706, 43.0428, 31.1853, 31.1333, 47.2386, 65.0033, 26.1019, 26.1408, 26.1969, 26.0719, 37.7481, 37.2308, 40.6222, 30.8275, 44.41, 40.26, 26.585, 26.5361, 34.4406, 48.0119, 27.4419, 27.4981, 44.2444, 31.05, 61.2272, 39.05, 38.515, 37.8428, 35.3331, 49.5167, 31.8717, 30.9072, 30.9119, 34.4667, 34.3942, 36.5442, 33.0094, 35.2681, 41.0167, 40.9706, 32.9733, 32.8192, 32.8167, 32.7667, 32.8472, 32.8339, -21.233, 27.33, 28.4444, 47.233, 35.216, 40.65, 32.7, 36.05, 33.583, 34.45, 50.55, 46.1581, 33.8719, 38.8472, 43.305, 34.2614, 41.8978, 43.3497, -8.5, -8.517, 32.63, 32.683, 45.6, 61.2928, 48.2, 48.5458, 36.8, 26.2667, -14.317, 32.93, 46.983, 26.083, 26.0, 54.367, -70.9, 33.88, -37.5679, 49.15, 15.417, 64.5056, 34.0219, 34.285, 34.422, 45.7833, 45.8333, 36.2967, 6.13, 6.1, 32.7744, 36.3661, 34.3006, 32.8369, 33.6461, 34.2719, 32.8347, 29.6919, 60.283, 45.5, 36.6633, 36.6542, -22.809, 1.817, 36.8061, 42.3994, 43.8833, 64.7408, 46.2222, 39.3817, 43.85, 40.9464, 40.7231, 48.7, 39.9133, 36.1833, 29.4631, 38.8203, 67.14, 35.5144, 35.5283, 46.7, 41.1739, 29.3, 29.2733, 63.7833, -1.87, -1.9, 35.7164, 40.7167, 48.95, 48.95, 48.9333, 29.917, 37.333, 48.8667, 37.771, 42.1, 46.6, 44.0344, 34.85, 25.867, 16.248, 10.33, 23.05, 52.517, 31.8667, 37.9931, 37.9272, 45.8981, -32.2433, 58.7167, 44.1011, 60.2064, 44.2203, 45.0317, 37.4, 58.88, 40.7242, 43.6167, 59.433, 30.383, -0.467, 47.483, 35.6708, 38.28, 9.336, 41.3414, 41.3367, 47.6458, 47.6539, 51.1306, 48.9667, 31.617, 37.47, 35.8917, -25.0544, 48.8333, 48.7833, 41.8458, 38.665, 26.3, 35.2656, 35.1967, 44.1678, 36.85, 70.6333, 31.4144, 38.6825, 37.9458, 35.6878, 26.1, 40.35, 60.65, 60.72, 11.883, 24.75, 44.5564, 45.0333, 44.9072, 44.9081, 45.0133, 37.8683, -25.6167, 43.3144, 48.35, 39.25, 37.08, 58.7, 14.033, -43.1639, 49.983, -37.22, 48.95, 44.567, 58.16, 13.5, 10.485, -34.92, -36.582, -22.62, 29.096, 16.75, 25.767, -35.696, 41.4511, 40.5314, 31.0383, 42.8767, 46.25, 46.2, 23.55, 13.483, 39.2775, 41.4514, 43.5706, 44.42, 52.383, 36.8658, 6.117, -34.0, 6.5, 39.7053, 47.0792, 31.8967, -18.3039, 33.3169, 30.6836, 38.9331, 38.6892, 43.6333, 45.1333, -34.017, 63.8375, 52.8167, 28.3667, 47.6014, 49.7833, -28.7953, 50.8819, 42.205, 42.2, 42.2056, 40.655, 55.7833, 43.2389, 35.0761, -3.8, 45.0194, 45.0136, 34.0869, 30.152, -21.7, 32.4, 25.146, 35.1, 36.24, 45.432, 31.033, 35.208, 45.5394, 41.5697, 36.151, 49.3833, 47.6017, 65.33, 50.6008, 35.4, 46.52, 29.75, 43.5381, 43.5606, 32.9481, 33.1975, 35.9886, 37.0147, 51.1, 48.5653, -25.03, -25.0341, -79.983, 56.3667, 56.35, 44.2644, 44.3394, 32.7464, 32.7017, 64.9767, 37.0031, 50.9664, 51.565, 38.2186, 50.6333, 50.6333, 50.6333, 46.3292, -31.4628, 37.5081, 46.1928, 40.917, 41.9117, -38.65, 42.4167, 16.9, 68.6333, 68.6333, 58.4561, 51.2333, 51.3, 36.065, 38.9539, 57.71, -23.8697, 40.8822, -23.8553, 43.9758, 38.8072, 45.4178, 47.03, 48.1925, 48.2138, 58.133, 47.8678, -12.2, 50.9333, 39.0753, 47.1064, 53.8333, 55.0989, 62.1086, 44.5358, 42.9403, 35.7269, 31.9881, 43.35, 43.3247, 54.79, 38.9339, 33.3217, 46.0089, 45.6583, 19.5189, 39.5181, 45.5261, 43.6833, 61.1, 38.8833, 41.5631, -29.6953, -29.678, -29.7368, 30.2717, 46.14, 33.3947, 33.3503, 66.8167, 65.28, -33.7622, 77.72, 6.166, 15.483, -23.567, -22.5, -40.869, 38.5778, 49.3167, 57.57, 43.7667, 37.9, 45.8, 51.55, 52.4317, 60.08, -16.667, -16.633, -15.91, 40.667, 53.6, 48.9761, 45.8081, 51.3, 35.3444, 35.4244, 51.6333, 31.4403, 42.4036, 44.7667, -27.939, 48.2, 64.4044, 48.1806, 49.7833, 47.2417, 28.6617, 49.5753, 36.417, 15.742, 52.4, 52.45, 12.55, 29.5175, 47.95, 39.3669, 45.6214, 64.2381, 42.9164, 48.3056, 36.5992, 36.5914, 34.75, 43.9281, 51.5, -28.5211, 38.8, 53.3167, 42.095, 33.0736, 56.217, 26.75, 46.245, 42.8947, 40.7586, 8.15, 8.3, 45.8833, 45.8833, 36.909, 51.2, 52.983, 54.3, 51.1631, 46.067, 52.75, 33.294, -33.3949, 41.5575, 41.5272, -32.0486, 44.55, 57.7158, 40.9394, 50.8, 58.4, 58.3942, 48.6606, 51.08, -40.35, -34.8085, -34.7495, 40.5092, 44.75, 13.983, 44.3539, 45.3014, -12.2741, 40.65, 42.5872, 42.5372, 46.2, 49.665, -29.7583, -29.6823, -29.6224, 43.3081, 33.1203, -33.283, 43.95, 59.6, 48.7903, -24.75, 53.5744, 53.3856, -37.295, 37.1367, 37.133, 37.1894, 45.3833, 43.4158, 48.25, 47.1, 55.1833, 31.3028, 36.0956, 35.7564, 34.2392, 37.8325, 36.0528, 35.9461, 37.2036, 30.4183, 47.9667, 47.9428, 47.9217, 40.9611, 39.0422, 39.1342, 39.1197, 40.2669, 40.185, 45.1775, 44.7167, 47.7472, 47.7517, 43.7047, 47.9711, 42.8939, 53.1833, 53.15, 47.2436, 43.0175, 30.7189, 45.9414, 60.7275, 43.35, 44.8136, 41.65, 39.4608, 13.067, 45.7728, 40.6019, 35.1664, 35.1664, 42.4244, 36.7394, 34.2594, 32.9506, 67.0333, 40.7817, 47.4011, 44.1333, 49.8667, 42.6261, 47.0258, 39.2042, 40.2306, 38.4306, 36.4261, 48.9167, 43.4667, 43.8925, 37.4667, 45.9917, 46.8008, 44.6542, 38.3353, 39.7833, 46.3872, 38.2758, 47.0833, 47.0831, 41.061, 47.0, 39.0056, 38.3758, 36.6128, 40.7578, 45.6333, 50.5167, 47.4733, 47.4597, 36.7425, 37.7333, -62.217, 41.5461, 40.4022, 37.1756, 35.2353, 39.6439, 36.1056, 39.7858, 41.2981, 42.5719, 43.0167, 46.8736, 45.6167, 41.1019, 32.7019, 32.7169, 36.0811, 37.2592, 37.6025, 39.3475, 36.0175, 31.79, 33.3592, 34.8231, 35.64, 45.4667, 43.2025, 33.4825, 34.8461, 37.2672, 33.1678, 45.4622, 33.0353, 34.85, 40.1, 34.1997, 38.8161, 34.2528, 44.9833, 34.2486, 33.4964, 44.4983, 44.5331, 44.4983, -37.2622, 40.3503, -16.7614, 54.5667, 46.55, 40.3833, 41.5167, 37.8331, 31.8931, 34.0219, 34.8831, 35.5206, 34.06, 43.2356, 54.0978, 54.25, 33.7608, 44.4167, -33.9029, 45.37, 36.5939, 41.1586, 49.0333, 44.4908, 44.5169, 54.5833, 65.9, 43.2333, -34.2487, 39.7378, 43.1833, 46.5667, 41.7203, 76.4167, 44.5175, 39.65, 53.6, 53.2167, -13.9747, -19.6, 49.1139, 42.76, 42.4078, 54.0731, 39.9364, 43.3833, 41.3511, 41.3275, 43.7186, 47.2667, 41.7139, -38.2241, 42.7467, 37.8444, -42.9858, 43.35, 53.317, 50.2675, 61.28, 37.2822, 42.3647, 36.2631, -54.283, 40.4833, 20.72, 40.6608, 20.67, -9.4333, 31.925, -24.083, -33.01, 13.4836, 21.0, 9.027, 26.85, 32.383, 24.07, 23.217, 19.9, -4.28, -16.73, -22.783, -23.43, 7.211, 14.5833, -10.817, 41.367, 64.22, 48.8, 43.4, 36.467, 43.55, 33.511, 49.4331, 38.6867, 64.9, 25.333, 35.583, 35.2133, 48.448, 23.4, 10.583, 26.583, 57.133, 30.4119, -32.3634, 62.1592, 46.4119, 42.3833, 60.3828, 40.467, 31.9, 24.65, -35.0479, 48.1603, 65.0072, 65.01, 57.72, -30.9537, -30.9841, -31.0261, 38.5253, 36.7044, 40.2092, 43.3833, 34.3344, 34.3347, 47.02, 18.2583, 31.412, 53.03, 55.6, 32.17, 17.9, 59.32, 60.15, 58.4111, 51.8889, 33.6267, 35.8489, 35.8161, 32.8819, 41.6686, 35.8517, 46.65, 42.7858, 37.4833, 36.6817, -30.2126, 59.3831, 59.3867, 59.3831, 47.667, 26.233, -26.1831, 47.7, 39.6953, 35.2831, 38.98, 32.539, 64.1417, 64.1406, 48.5167, 44.367, 33.117, 40.533, 31.9175, 19.15, 29.8894, 38.6197, 53.95, 50.367, 38.033, 25.6, 38.85, 42.8114, 39.7078, 46.5667, 34.246, 57.29, 49.9475, 55.3503, 20.0, 27.433, 49.25, 41.45, 47.433, 65.0192, 59.2381, 59.4503, 59.2433, 60.7667, 36.1389, 36.77, 19.8211, 20.5803, 37.567, 41.817, 20.7603, 63.38, 42.9375, 34.2314, 44.4633, 15.317, 44.8772, 37.4725, 45.0333, 44.8833, 44.8833, 41.567, 56.45, 51.5144, 29.4706, -75.45, 63.77, 64.27, 48.7714, 32.5111, -18.2292, 58.32, 63.73, 68.7833, 68.7833, 68.7833, 56.67, 56.68, 63.4453, 64.173, 35.117, 34.9, 34.717, 60.8181, 51.53, 60.8008, 6.117, 36.2572, 53.4806, 53.635, 53.4792, 32.5, 34.85, 60.9992, 61.0, 61.2164, 61.0539, 43.9664, 39.933, 42.817, 46.2553, 31.7044, 39.7425, 34.0967, 43.1667, -37.6486, 39.3644, -20.3658, 43.3, 34.8872, 38.2794, 60.3008, 70.6805, 55.3, 30.5031, 39.6442, 48.5281, 51.5608, 41.7675, 42.7561, 37.0225, 61.66, 42.15, -19.083, 50.1667, 20.7947, 63.6, 34.0678, 44.1186, 47.1686, 30.6153, 48.3, 49.2, 49.2667, 36.3158, 36.3189, 30.233, 30.6, 59.8167, 59.7733, 59.8083, 59.8439, 38.3706, 33.65, 39.6667, 39.7233, 52.4656, 21.0333, 43.7053, 39.7706, 56.01, 48.9989, 44.25, 38.2553, 61.0167, 33.067, -18.0631, 65.8269, 65.8197, 34.7167, 34.7433, -17.917, 45.75, 40.2708, 43.8322, 47.4667, 48.783, 45.7317, 39.0, 40.8667, 36.2747, 41.6403, 40.0892, 48.5353, 48.2383, 26.2028, 26.2281, 46.4328, 45.3192, 62.62, 62.6331, 47.4828, 46.35, 37.7408, 41.6331, 40.2817, 40.2172, 40.7514, 42.6858, 42.4247, 42.7433, 42.8003, 36.2667, 39.2189, 44.6819, 37.4833, 44.3628, 42.0333, -83.0, 59.07, 58.2506, 34.3697, 44.3744, 43.3311, 41.9381, 41.7361, 40.4356, 42.6167, 44.4333, 35.8783, 47.6856, 34.395, 36.3756, 48.7167, 34.3519, 34.3389, -43.2006, 43.6747, 45.35, 42.5483, -33.0789, 47.8083, 51.65, 32.9667, -5.062, 42.3806, 32.933, 31.7, 42.6422, 50.855, 40.6472, 29.7653, 36.3886, 44.7597, 40.6044, 71.9831, 50.433, 12.189, 31.2547, 31.2819, 46.7225, 61.0667, 62.05, 63.95, 40.9317, 68.3167, 6.917, 47.3889, 59.3494, 34.7872, 42.7594, 48.5428, 50.2833, 50.2833, 19.4297, 43.0031, -31.8846, 38.7817, 32.2842, 48.9667, 57.2667, 41.4764, 38.5172, 33.9228, 65.2017, 40.4925, 40.8, 40.5233, 61.9872, 33.7044, 40.55, 50.7839, 38.8669, 44.4503, 37.5194, 38.8586, 37.6542, 46.0261, -34.5194, 60.8333, 60.8333, 42.6828, 42.5119, 42.5972, 46.5172, 31.8328, 20.967, 31.3625, 46.6311, 45.4486, 38.6175, 34.2333, 38.6003, 63.8675, -53.017, -53.1, 35.6842, 46.5917, 51.478, 49.0833, 38.9333, 27.3194, 34.3167, 40.4917, 34.3978, 34.3925, 44.8667, 44.6678, 40.175, 46.9075, 24.7, 48.3758, 41.15, 62.41, 49.3667, 31.867, 33.6483, 44.9661, 49.4, 49.1456, 49.9678, 52.4342, 61.1994, 51.0425, 69.6006, 54.6, 34.6997, 33.2725, 34.5211, 36.5381, 46.7186, 46.6056, 54.1764, 67.4257, 37.9, 45.6453, 39.0717, 52.2478, 67.7414, 56.04, 56.03, 60.2667, 60.1044, 59.9481, 60.2, 60.2, 60.1042, 60.1667, 60.1, 60.2028, 60.2531, 60.2, 60.2167, 29.867, 51.7833, 65.8078, 33.7381, 42.3208, 63.66, 63.65, 42.7742, 46.4833, 45.0667, 57.24, 34.73, 32.1808, 35.3297, 36.3481, 35.4442, 37.7558, 32.15, 53.8, 46.1667, 36.0942, -89.0, 33.2372, 45.3653, 39.38, 35.3331, 34.21, 50.9333, 34.8172, 44.3256, -19.9, 38.6656, 50.1, 46.665, 19.158, 48.6106, 45.8289, 45.8619, 45.8258, 37.7717, 36.3825, 34.8039, 48.08, 46.6667, 57.42, 69.5667, 50.1517, 41.1056, 50.867, -25.322, 51.8578, 51.6267, 43.5908, 52.3167, 37.9614, 46.0044, 46.0139, 40.95, 40.9528, 35.95, 23.8, 35.0, 25.8175, 47.3864, 47.3919, 40.9, 35.7425, 34.6189, 41.3214, 26.933, 57.2178, 48.8833, 27.8189, 39.0733, 35.0567, 35.0836, 31.8814, 31.9478, 31.9156, 50.4667, 44.5222, 44.8444, 40.265, 34.0903, 45.8333, 39.2083, 58.6167, 58.6167, 54.105, 35.9672, 43.9064, 55.4, 45.6833, 37.3147, 29.8286, -13.233, 37.5581, 35.283, -39.38, 50.7381, 32.0161, 32.9203, 39.1611, 39.2333, 43.6542, 54.4517, 47.4389, 41.9353, 38.6644, -33.4915, 33.6183, 43.9325, 39.3617, 47.0375, 39.3756, 51.35, 19.645, 19.7333, 19.7192, 44.0167, 34.833, 8.367, 45.9919, -35.5194, 42.2269, 43.6408, 48.3478, 47.8992, 35.4842, 53.4, 33.367, 41.3072, 42.3, 34.4, 29.167, 33.317, 37.875, 32.217, -9.8, 53.5333, 62.2207, -42.9, 34.9897, -42.8339, -42.8897, 34.9894, 32.7264, 32.7125, 42.8667, 46.783, 56.92, 37.5317, 31.3747, 51.1833, 66.7417, 51.9908, 50.3131, 51.535, 34.8358, 34.825, 66.2167, 44.4167, 63.08, 38.6844, 47.8017, 35.5567, 40.817, 54.3128, 40.9678, -42.717, 64.39, 55.5, 55.733, 34.9094, 45.2236, 35.0567, 35.0708, 53.1833, 48.1989, 51.0, 40.4517, 49.321, 40.9667, 40.9167, 61.62, 60.91, 36.6831, 43.6667, 54.1667, 42.7461, 42.7989, 43.6478, 55.4908, 42.3528, 36.8483, 36.8422, 34.6808, 60.9167, 38.0517, 26.0283, 25.9989, 34.8219, 34.8222, 57.15, 70.7667, 64.217, 63.8081, 47.05, 42.4897, -33.9795, 46.9914, 39.4578, 40.5453, 47.45, 51.7683, 47.8831, 15.333, 43.6058, 31.0767, 32.81, 59.7444, 59.7161, 59.7458, 59.6419, 25.4833, 25.5011, 52.47, 29.12, 14.283, 29.3364, 29.36, 42.7919, 43.9281, -9.417, 71.0106, 20.5089, 21.3239, 21.3153, 46.9833, 65.5858, 45.6847, 52.7489, 36.865, 58.1072, 57.8, 41.0478, 40.4664, 53.3908, 39.3667, 45.1125, 49.3667, 49.3667, 60.8983, 55.45, 76.5, -35.7151, -33.9306, 36.7167, 37.2992, 33.7092, 49.2833, 35.8103, 36.8492, 31.6753, 39.0308, 52.3331, 46.9667, 46.9728, 55.86, 31.8456, 43.4406, 52.167, 64.296, 57.89, -10.5844, 52.3667, 42.4172, 32.9375, 44.9406, 38.6667, 40.6306, 41.3167, 39.9336, 35.7706, -36.6697, -36.6613, -33.8511, 38.52, 39.6678, 43.9481, -22.483, 67.0831, 37.133, 64.12, 64.09, 35.895, 37.9969, 43.4378, 47.6, 34.5128, 34.29, 47.6156, 33.817, 44.3122, 44.3119, 44.3592, 46.2061, 46.1236, 29.6408, 40.5831, 61.1833, 36.5644, 33.8847, 37.3186, 54.4, 29.5189, 29.6167, 29.6381, 30.0675, 29.98, 29.4717, 29.7456, 29.6222, 48.017, 37.3858, 37.4664, 44.0122, 42.2292, 43.7828, 41.7175, 42.3167, 49.4833, 39.3533, 51.4392, 41.2167, 42.9764, 48.9667, 41.9, 42.98, 40.417, 35.38, 30.13, 12.583, 34.48, 47.0667, 61.73, 38.1042, 42.7831, 52.8667, 52.8167, 52.8833, 52.8167, 42.25, 30.005, 58.63, 15.317, 37.2594, 37.28, 42.0831, -20.8192, 37.1639, 39.1439, 40.167, 26.65, 37.5, 26.42, 46.9, 36.9167, 51.417, 44.6856, 45.77, 53.7667, 51.717, 37.8117, 47.5333, 34.1164, -36.1039, 50.5664, 47.2336, 62.75, 62.75, 48.3425, 48.3847, 56.39, 49.95, -36.2136, 39.7667, 36.5625, 40.5153, 36.0028, 40.8556, 44.3564, 37.2275, 38.4014, 38.365, 45.9228, 38.3319, 30.7064, 36.07, 34.6439, 41.2403, 30.7439, 30.45, 30.0628, 31.4, 52.0678, 47.8667, 27.15, 46.4625, 37.0153, 44.3636, 44.3981, 36.6992, 59.51, 51.1833, 43.34, 54.4767, 49.383, 38.09, 37.9311, 38.0653, 53.2, 43.1667, 41.665, 41.6686, -32.4419, 55.9153, 25.383, 41.4, 43.7, 46.2942, 45.9353, 60.5956, -2.746, 47.1667, 0.61, 15.33, 4.4, 40.0378, 45.3333, -20.01, -28.65, 38.8764, 22.733, 23.233, 55.5831, 46.2447, 33.9336, 43.8383, 43.5139, 43.3456, 43.5317, 43.5164, 39.7033, 37.9333, 60.38, 43.3708, 61.89, 61.87, 54.367, 33.7572, 67.47, 69.3667, 37.0856, 53.467, -22.83, -24.7167, -6.367, -25.733, 35.517, 33.65, 59.28, 60.05, 33.633, 47.4333, 47.4167, -11.583, 50.2167, 48.4167, -46.5, 47.6531, -22.333, -17.05, 48.0667, -14.8, 59.7494, 67.25, 67.33, 41.4256, 42.1039, 26.5, 26.724, 10.7, 62.6667, 62.7692, 63.0319, 63.1417, 8.44, 69.2167, 69.2331, 48.0, 70.45, 40.6564, 37.9214, 26.4622, -5.533, 32.8489, 40.5208, 32.8342, 1.617, 24.667, 72.4, 52.4167, 68.9025, 68.6069, 69.1403, 69.5817, 69.5756, 68.4, 68.8489, 68.8483, 68.4775, 68.4319, 68.4142, 69.0478, 69.55, 69.0669, 69.0714, 37.467, 37.0, -26.9, 36.7981, 37.2364, 39.0647, 34.6989, 39.45, 39.4833, 39.4167, 39.0667, 39.825, 39.7164, 40.5972, 41.6317, 41.3656, 45.3833, 49.6167, 49.0333, 39.9, 42.3, 35.6236, 50.55, 43.755, 39.8144, 41.7417, 67.7, 33.7086, 22.717, 41.98, 37.8725, 14.75, 52.97, 49.3333, 19.817, -18.6494, 48.7156, 46.6825, 46.6667, -25.8428, 59.9308, 61.9167, -17.5249, 47.2667, 58.45, 43.7483, 46.67, 48.5614, 45.683, 58.4667, 58.4667, 58.4667, 68.3, 68.3167, -46.417, -29.7796, -29.7752, 57.4867, 28.8028, 35.6514, 53.85, 28.05, 19.567, 27.233, 37.9233, 42.9531, 41.6092, 41.6328, 42.5189, -17.717, 45.4478, 63.75, 63.75, 63.75, -20.3, -3.783, 64.52, -27.183, 34.633, 27.236, -25.467, 55.633, -11.3, 38.167, 24.256, 43.8167, 52.2667, 46.4656, 34.1472, 45.8183, 45.7858, 49.9, 34.5853, 34.6, 53.35, 49.9833, 33.72, 32.8294, 18.4653, 47.6303, 78.7833, 78.8, 56.0994, 78.0667, 24.345, 38.433, 46.4911, 24.153, 54.9, -24.2591, 60.8167, -2.705, 36.573, 24.9178, 55.5333, 53.85, 44.4167, 44.4189, 44.4167, 44.8128, -27.167, 46.3197, 47.5833, 40.7939, 30.6, 37.75, 40.9667, 40.9, 45.685, -11.11, -12.51, -3.127, -4.267, -17.85, -21.2, 47.24, 47.2256, 20.8, 42.44, 42.4492, -13.35, 70.4831, -13.81, -18.95, -18.41, 53.983, 34.7633, 38.4931, 52.717, -25.0, 42.217, 68.6081, 39.2833, -32.8831, -32.8999, 56.95, 48.967, 60.6831, -22.317, 51.75, 52.2667, 69.1667, 43.217, 34.683, 28.3089, 56.8331, 49.183, 45.3667, 38.267, 38.433, -0.35, 34.2, 53.8242, 23.2, -12.6594, -30.25, 45.6275, 41.9828, 33.2206, 31.5253, 36.3967, 37.3781, 37.5908, 43.3194, 43.4867, 45.3681, 30.4844, 31.9622, 39.7133, 39.7347, 30.2875, 30.3361, 34.7967, 30.2333, 30.3333, 39.08, 35.7103, 35.3167, 37.5922, 35.6214, 32.3367, 32.3206, 35.5931, 44.05, 42.2667, 35.1858, 38.7533, 41.5, 66.3797, 39.5667, 41.55, 28.4, -11.183, 47.0083, -33.8878, 37.7778, 42.805, 19.083, -4.783, 29.317, 26.817, 26.9, 44.35, -6.183, -6.1, 62.0167, 32.1103, 0.637, 19.55, 29.033, 56.683, 5.9167, 42.3031, -1.6, -31.117, 36.4258, 39.9233, 41.4992, 46.7703, 42.11, 46.9258, 46.8844, 37.25, 61.8592, 61.8564, 61.8856, -15.783, 56.3, -32.1011, 69.0, 65.98, 70.93, 70.9331, -0.353, 57.37, 41.9797, 39.7358, 60.25, 62.167, 63.44, -33.7964, 39.783, 44.567, 40.8992, 61.71, 25.6333, 46.2, 43.883, 30.5228, 33.9047, 34.4758, 52.9333, 62.6, -17.91, -2.367, -2.567, 33.2544, 38.8417, 44.9381, 29.9592, 55.9167, 21.7, 32.7692, 36.7222, 42.0347, 44.4169, 36.4161, 36.1222, 38.5911, 38.5853, 42.9944, 42.4942, -0.9, 33.517, 56.65, 49.6667, 35.3886, 35.7783, 31.6783, 50.9267, 36.48, 30.2003, 40.3611, 38.0333, 36.7506, 34.7522, 42.7325, 42.7267, -32.4972, 37.5436, 39.1025, 49.2096, 31.7667, -35.0936, -22.9494, 34.6578, 23.184, 41.2683, 31.5075, 21.705, 38.1964, 47.7669, -26.53, 21.917, 32.933, 27.117, 41.15, 22.62, 30.33, 37.033, 40.345, 36.795, 36.817, 7.667, 54.9167, -26.6644, 45.0831, 36.6, 29.3, 34.433, 44.617, 22.02, 41.03, 0.45, 24.907, 41.133, 29.0, 39.767, 25.72, 25.068, 45.283, -19.83, -7.1, -17.73, 20.867, 34.9831, 26.3, 62.6014, 39.6553, 39.3094, 40.5333, -26.139, 5.453, 37.5669, 35.9717, 30.2861, 40.3375, 44.0839, 34.3592, 33.7775, 40.3161, 52.283, 44.4233, 44.5561, 36.6003, 38.0633, 25.1936, 38.2547, 59.333, 60.8139, 66.6297, 66.4989, 45.4731, 46.0167, 41.5033, 60.1781, 60.1244, 60.1542, 58.8653, -1.317, 33.5311, 44.6453, 35.8489, 35.8311, 31.4825, 30.8289, 39.7667, 57.7514, 48.4333, 48.5617, 37.4278, 37.1467, 47.3144, 44.65, 47.3258, -12.022, 64.73, 32.6161, 62.1733, 6.165, 34.1469, 56.6, 61.8792, -19.007, 41.7861, -7.169, -33.633, -33.45, -17.963, 9.994, 4.867, 70.77, 46.6786, 46.65, 12.1, -21.767, -24.393, 40.9931, -15.467, 33.0758, 33.0764, -20.6672, 44.3833, 45.3497, 18.2264, 30.4453, 30.5108, 58.2989, 58.4003, 58.3567, 58.3869, 58.4058, 46.1333, 46.6, -34.546, 46.55, 41.3322, 41.0819, 26.86, 63.6842, 63.685, 57.333, -16.77, 42.4, -30.3081, 63.2317, 61.8456, 61.8919, 61.6777, 3.327, 44.0167, 46.95, 62.4, 62.4019, 48.37, 45.1139, 37.7953, 53.2178, 60.3867, 48.05, 48.4089, 34.566, -14.45, 53.967, -33.9703, 11.138, 16.16, 37.967, 31.55, 51.1817, 50.0656, 20.5569, 37.6, 21.6792, 20.8997, -42.417, 19.7356, -3.645, 19.5336, -17.215, 35.67, 49.4253, 48.7708, -35.1, -35.1, 64.4256, 64.2831, 64.2814, 49.833, 56.9739, 16.95, 50.4, 55.033, 44.65, 64.3306, 55.12, 37.0, 37.068, 42.2347, 29.033, -27.7119, 63.327, -30.7847, 43.367, -7.05, 2.155, 54.7167, 48.1892, 48.3042, 51.73, 51.7344, 44.7281, 44.5897, 57.23, 50.5028, 56.73, 56.68, 64.3267, 54.57, -14.2964, 40.6439, 49.0667, 51.05, 62.4831, 48.3, 53.8, 46.23, 48.65, 37.05, 50.6667, 50.7, 50.7, 16.4833, -13.8, 50.067, 56.85, 37.0286, -37.1169, 22.1297, 51.0333, 50.7167, -5.9, 36.583, 14.017, 31.5, 67.15, 11.13, 11.133, 20.5222, 21.4233, 21.45, 67.1297, 41.6767, 37.5264, 37.2506, 30.05, 40.967, 68.65, 61.8381, 41.1381, 57.65, 38.6078, 38.7953, 34.433, 36.2133, 39.1208, 39.2972, 56.2, 66.0933, 14.147, -14.8, 20.9625, 1.0833, 49.4167, 49.4, 9.55, 49.95, 49.8, 10.917, 55.15, 45.6, 69.4667, 69.4633, 53.7, 70.083, 40.6, 50.0, 59.0, 68.4419, 68.44, 59.05, 61.5, 18.55, 50.202, 58.52, 56.18, 48.6775, 49.0392, 59.35, -32.44, -35.09, -20.7097, 40.562, 38.8, 31.8353, 36.35, 38.7411, 62.1831, -10.217, -17.817, 33.895, 39.467, 66.337, -1.417, 57.35, 54.833, 37.9842, 62.3339, 49.9167, 45.4, 15.467, 51.2978, 39.49, 41.3667, -33.6856, -33.6886, -14.4437, 27.7, 49.183, -33.7122, 50.23, 35.15, 47.8667, 32.5589, 62.4131, 63.12, 63.1203, 54.8831, 68.9967, 69.0167, 67.1386, 35.5, 43.7144, 14.4, 14.482, 38.78, 56.32, 45.767, 55.7331, 49.8, 35.8111, 39.3667, 40.7258, 19.4736, 46.9, 12.572, 52.9981, 42.9389, 44.6661, 47.8967, 33.6667, -26.58, 63.9667, 35.6872, -36.098, -36.1058, 44.4, 47.8667, -41.2833, 36.85, -31.6183, 42.25, 51.25, 47.9425, 47.5339, 67.9333, 49.95, 49.95, 49.85, 43.9014, 56.0333, 46.1333, 53.5667, 56.1, 55.25, 55.27, 66.7153, 65.8, 65.7831, 60.1714, 60.1531, 59.8692, 65.6725, 65.385, 41.8172, -31.0711, -31.077, 47.7242, 45.0, 64.9831, 60.7236, 60.3667, 60.5797, 60.5917, 43.25, -4.1, 12.85, 34.3, 36.76, 48.6692, 43.9072, 43.3606, 46.2111, 42.0944, 49.7833, 49.7833, 42.5608, 42.595, 47.4172, 37.9567, 40.6489, 45.0667, 31.0158, 34.6033, 40.3967, 40.7275, -35.7236, 45.4, -2.767, 37.833, 30.25, 34.267, 31.8408, 35.7831, 30.0747, 52.8167, 60.27, 48.05, 55.3567, 43.6842, 36.0067, 36.0333, 58.72, 41.2428, 44.4628, 39.4206, 36.15, 64.9156, 57.25, 57.25, 57.25, 24.5667, 24.555, 24.5833, 26.45, 47.617, -36.2304, 28.65, 29.267, 25.45, 49.9667, 15.6, 26.167, 26.3, 25.667, 35.467, 46.633, 11.767, 49.433, 16.433, 37.5, 33.433, 38.55, 40.2167, 48.183, 27.833, 34.7558, 66.9767, -16.1176, 50.82, 55.2339, 54.3756, 50.4, 16.63, -1.969, -4.883, 19.9697, 58.1, 21.6883, 21.6792, 0.923, 45.85, -5.036, 60.32, 31.1333, 60.95, 42.9503, -3.433, 52.85, 45.9667, 47.3714, 31.0658, 56.9, 39.3167, 46.445, 59.3, -33.1414, 41.2453, 45.3533, -28.8, 49.6333, 38.4833, 40.667, 37.115, 37.4536, 51.5167, 40.7167, 22.333, -26.5737, 35.8583, 35.8542, 59.367, 37.6361, 35.2578, -35.7114, 41.2097, 36.5194, 35.8575, 41.4903, 41.4911, 41.4783, 36.0086, 44.2167, 36.1033, 27.5311, 42.05, 27.5, 42.7239, 40.8606, 41.7436, 16.901, 36.2069, 47.7981, 32.356, -39.88, 18.297, 24.958, 27.901, 42.05, 58.6794, -62.217, -29.617, 57.6131, 57.649, 35.1967, 35.2975, 37.0175, 50.2, 30.4333, 57.7667, 69.733, 69.7255, 63.7833, 59.92, 48.15, 40.2058, 40.0972, 58.958, 44.6122, 58.6, 48.517, 45.083, 59.33, 52.667, 39.15, 67.8497, 67.83, 43.8667, 39.6619, 31.495, 60.7806, 47.02, 63.58, 43.9, 28.2764, 13.067, 25.933, 1.016, 44.933, 43.4667, 32.7128, 54.0167, 54.05, 54.05, 58.1914, 67.9908, 67.6517, 67.6956, 67.7842, 67.9992, 68.1692, 31.96, 49.75, 38.7658, 38.8867, -6.083, 67.7317, 50.3667, 59.9708, 58.2003, 64.16, 62.1, 70.68, 42.2839, 46.65, 55.7331, 42.1333, 42.1469, 42.9533, 62.1472, 55.58, 50.217, 50.8469, 51.1689, 53.9603, 51.5567, 51.7625, 53.5, 48.1, 51.5203, 56.3167, 50.4333, 59.87, 59.87, 62.53, 62.5, 43.25, 52.25, 54.8, 46.3117, 40.9025, 41.3247, 38.8619, 35.8819, 35.8181, 41.3053, 34.7, 49.15, 64.1942, 50.3381, 49.467, 45.6, 33.567, 54.3, 44.4, 37.5142, 57.7511, 57.8047, 55.6831, 55.617, 33.2742, 35.667, -75.0, 60.45, 64.75, 59.5056, 61.2706, 61.2528, 63.8442, 63.8831, 40.4583, -4.717, 48.75, 53.283, 51.0831, 55.083, 12.883, 69.53, 57.75, 48.606, 58.69, 50.8658, 50.9628, 37.5333, 49.85, 55.1, 48.533, 58.3, 55.3, 69.6167, 48.433, 54.333, 46.3, 50.533, 59.6244, 59.6631, 59.6631, 59.713, 38.9119, 51.233, 49.6, 47.6781, 37.979, 52.15, 42.95, 37.7689, 50.6333, 43.2831, 40.6, 60.35, 9.387, 64.75, 41.75, 47.333, 7.3333, 62.9344, 62.8831, 63.84, 48.8308, 50.0, 33.0583, 49.574, 48.6667, 61.0831, 63.45, 5.3544, 26.133, 56.84, 49.159, 13.167, 57.7331, 53.35, 54.2, -3.4, 25.15, 5.937, 47.633, 51.7528, 60.2864, 60.385, 60.4542, 60.3753, 61.2331, 5.605, 66.8667, 46.7667, -20.567, 12.383, 60.6964, 60.8903, 66.7, 67.5697, -15.4818, 22.3167, 66.0083, 11.25, 56.35, 7.5333, 9.467, 13.1625, 47.4333, 44.0331, 62.0346, 43.7167, 63.05, 63.16, 46.133, 53.0, 43.6, 45.03, 49.383, 56.0331, 53.967, 67.37, 54.4, 56.65, 40.03, 57.133, 50.37, 46.53, 46.3792, 50.1, 40.0575, 48.05, 55.85, 62.8, 45.3556, 56.33, 55.92, 56.02, 63.1092, 62.2575, 62.2031, 59.31, 42.2, 47.9, 64.51, 50.2533, 58.61, 48.4842, 43.5667, 63.7169, 46.3, 48.03, 51.1617, 53.6956, 53.9717, 51.8553, 50.8503, 49.5192, 48.9364, 47.8069, 35.167, 3.6333, 2.746, 3.1167, 40.72, 3.62, 3.8, 48.881, 1.483, 58.983, 24.22, 47.58, 68.5333, 68.5333, 44.467, 67.8167, 67.8167, 64.2975, -35.1712, 53.9031, 20.7583, 20.7008, -25.8428, 36.15, 32.817, 6.715, 38.6311, 26.333, 58.1, 58.717, 60.3, 60.2581, 49.4289, 59.517, 43.083, 25.017, 25.1, 35.9242, -15.7814, 63.025, 62.7983, 62.8919, -10.167, -10.2, 70.3289, 49.633, 54.367, 41.717, 49.933, 41.65, 34.144, 58.233, 55.4667, 37.8167, 45.25, -15.4875, 15.8, 51.7667, 7.467, 42.95, 55.1, 39.983, 53.2167, 60.7219, 39.417, 42.2, 42.9, 32.17, 58.1, 55.2833, 66.3681, 65.995, 66.1653, 58.967, 29.222, 53.3, 66.89, 66.9597, 61.4648, 63.4882, 8.7333, 35.1333, -32.2258, -36.335, -33.1332, 36.7764, 43.4403, 36.2667, 58.08, 35.017, 49.5667, 52.933, 47.333, 56.6, 36.13, 51.72, 44.85, 51.9, 42.35, 48.2994, 45.3, 45.8167, 47.5667, 53.9167, 58.95, 27.167, -34.133, -7.25, -1.617, 45.65, 52.45, 44.6253, -33.73, 46.8167, 46.8667, 51.5333, 48.8, 48.2167, 51.8667, 48.2833, 54.7667, 63.1333, 45.6, 46.1833, 48.4167, 40.8072, 45.7406, 40.7392, 45.465, -24.1116, 30.2192, 36.5192, 30.0917, 32.9069, 34.6639, 40.2964, 40.4122, 30.205, 36.5411, -27.81, 40.0633, 33.7997, -19.65, -28.21, 44.55, 45.5528, 41.6475, 26.2283, 33.5453, -34.456, 36.3842, 39.4689, 31.55, 48.3656, 39.3, 39.2833, 60.9617, 49.35, -33.2, 67.76, -18.3325, 38.7667, 38.7303, 29.2694, 66.28, -18.233, 43.7022, 40.6, 40.75, 40.0333, 27.9914, 43.5492, 38.2044, 34.16, 41.825, 44.5994, 44.5833, 41.5269, 39.7489, 33.0642, 30.0206, -33.2833, 30.125, 38.0247, 30.1853, 33.8642, 44.3089, 48.8333, 44.1833, -37.2313, 39.9333, 32.8242, 38.9075, 38.9772, -33.1006, -33.1006, 34.5031, 40.4167, 33.7542, -42.0067, 44.7167, 36.9825, 43.0803, 63.8933, 43.4483, 44.2489, 32.8067, 44.0644, 38.4931, -42.1178, 32.8522, 35.0967, -34.0398, 43.9981, 44.5619, 37.9411, 41.5167, -16.417, 38.0936, 37.4933, 38.07, -0.704, -21.94, 44.2394, 34.2044, -35.3778, -35.3288, 32.7228, 38.9, 38.9, 40.7442, 40.6333, 40.6233, 40.6331, 18.283, 31.0717, 20.8733, 22.567, 39.7156, 44.4911, 40.05, 42.8278, 40.1203, 36.0828, 39.7556, 34.7411, -31.0164, 43.1828, 36.15, 42.6753, 42.8153, 40.1167, 48.0833, 47.3767, 58.74, 57.67, 58.34, 34.3086, 54.25, 54.25, 51.133, 48.7622, 50.9, 37.0833, 42.9242, 47.83, 29.8097, 31.58, 21.833, 38.75, 58.35, 63.17, 52.2, 42.7803, 42.4486, 28.9517, 22.033, 18.183, 45.5119, 22.5, 43.0581, 43.0608, 41.4233, 41.6117, 61.1978, 61.0392, 61.0439, 61.0569, 45.3833, 42.4333, 41.3408, 41.2847, 41.3119, -8.267, 27.5683, 39.65, 34.8831, 38.1922, -15.5748, 61.1, 38.4833, -27.1, 40.3442, 42.7667, 51.4167, 18.433, 38.0636, 16.7, 32.6136, 33.2889, -24.7, 27.9225, 35.6564, 37.8339, 36.1667, 36.2117, 36.0719, 35.6542, 36.25, 36.0469, 35.5678, -0.9, 48.3, 67.26, 35.53, 49.5792, 40.1417, 35.1692, 55.617, -41.5492, -41.5397, -41.4194, 48.2181, 35.4783, 31.6756, 39.0847, 41.7833, 40.2003, 44.9231, 40.1692, 34.4989, 46.3333, 34.7508, 34.7917, 45.3681, 53.4117, 46.8167, 41.7019, 43.93, 42.6194, 37.3917, 33.3369, -28.6133, -37.8565, 33.0353, 52.421, 38.9583, 42.6992, 35.2436, 36.7711, 38.7642, 39.0083, 42.7172, 34.5583, -66.733, 64.64, 39.7022, 41.53, 61.6267, 48.3, 42.2644, 26.7458, 10.517, 47.0831, 10.558, 0.017, 43.8658, 43.8789, 43.8225, 45.3167, 45.2833, 53.75, 53.75, 53.6333, 29.9175, 41.6378, 33.0536, 29.9075, 40.5839, 37.3053, 26.2422, 37.9825, 37.8639, 37.7511, 38.0494, 46.3667, 15.453, 46.3547, 28.6331, 35.3811, 24.1667, 24.167, -34.972, 47.35, -22.1, -29.383, 46.15, 55.15, 55.15, 38.3014, 49.9167, -29.917, -29.9, 31.98, 47.4167, 37.2008, 33.1728, 44.1014, 44.3544, 50.9167, 55.4167, 44.7, 44.6831, 39.2292, 36.4194, -22.2406, 39.3256, 47.5586, 38.2667, 38.3333, 54.75, 36.2292, 36.9028, 44.5328, 37.685, 40.3333, 36.2981, 43.6264, 48.1864, 54.8, 51.1231, 47.2467, 52.55, 54.292, 31.7633, 28.8208, 31.1417, 36.8644, 38.9597, 38.8803, 53.2231, 37.9567, 13.133, 50.4831, 48.7664, -30.5963, 51.4, -27.8386, 51.317, 51.4358, 37.5108, 44.85, 68.155, 60.73, 29.7856, 52.4569, 44.9833, 46.3, 59.9592, 45.9397, 43.3597, 36.3817, 37.3789, 36.3333, -12.567, 46.6, 38.833, -69.5, 46.3619, 51.1344, 45.3667, 35.915, 35.7875, 35.84, 60.72, 53.1025, 47.8606, 34.1742, 41.5167, -28.8836, -28.8789, 40.7244, 0.459, 42.5889, 38.4794, 34.0456, 54.883, 47.1, 52.0, 40.4897, 60.1331, 46.4, 49.4667, 42.9831, 50.562, 64.9, 51.8331, 49.1167, 45.3, 48.35, 49.6333, 49.7, 49.6833, -4.1, 39.433, -82.517, 56.373, 53.8631, 54.5003, 59.6167, 39.5608, 33.55, 38.7756, 40.9475, 37.8564, 35.4139, 35.3817, 36.1325, 46.3747, 40.5864, 47.0111, 46.9056, 46.8847, 47.0492, 33.3614, 44.2, 30.4064, 33.1228, 33.8706, 35.6503, 35.8458, 37.7767, 38.0408, 35.7922, 43.2631, 41.5747, 14.591, 47.9467, 42.7817, 16.27, 29.667, 28.42, 30.68, 24.37, 24.78, -41.8997, 48.4036, 47.9733, 48.41, 48.3833, 37.0222, 50.767, 10.6, 41.8017, 0.38, -13.3, 51.9256, -26.133, 50.933, 50.6892, 37.5544, 45.5, 53.85, 46.0725, 63.3206, 46.83, 56.4831, 49.367, 42.1231, 41.3667, -29.431, 21.9742, 21.9839, 26.833, 61.85, 35.4083, 50.6833, 66.4897, -13.789, 40.8667, 37.3833, 44.6331, 34.6667, 40.7083, 40.7247, -75.42, 50.4128, 46.96, 34.1789, 37.9864, 39.9167, 10.0, 39.1894, 23.95, 39.0878, 40.1514, 35.4606, 40.6953, 39.0294, 40.8483, 40.85, 38.8825, 46.9681, 40.8508, 46.9558, 44.3753, -78.467, 53.95, 36.2858, 47.4083, 61.1333, 52.2094, 51.6167, 33.0, 35.6047, 42.8133, 57.9831, 43.983, 39.7556, 36.3042, 36.2033, 47.2, 47.0022, 41.6458, 47.1083, 52.517, 42.1297, 26.233, 15.38, 45.6333, -19.4, 40.77, 41.717, 58.4, 39.8569, 26.535, 54.05, 43.6, 48.23, 48.297, 52.7, 62.6594, 62.6592, 62.5456, 51.6344, 36.2358, 51.15, 34.4978, 38.7167, 28.8728, 46.4444, 46.1, 37.5, 28.45, 41.8128, -28.8343, -28.7853, 58.11, 49.0333, 55.0125, 30.0, 45.1278, 33.4992, 53.95, 33.9378, 48.3681, 48.3894, 44.0911, 41.4, 45.5697, 66.0914, 47.8139, 67.1833, 44.5, 38.9692, 45.9656, 43.0603, 45.9514, 37.4833, 42.7081, 44.6167, 34.1942, 56.3831, 49.35, 34.8364, 34.9167, 34.7272, 46.0378, 39.7267, 41.8264, 41.0667, 46.7511, 34.2936, 42.2472, 39.2444, 43.5, 47.85, 24.35, 65.4236, 37.6922, 44.4717, 37.6928, 69.6, 44.1333, 30.2889, -17.817, 45.4956, 30.7394, 45.6983, 36.3775, 43.7392, 52.433, 31.43, 37.8, 59.35, 46.0656, 46.22, 56.83, 56.85, 62.55, 30.7425, 41.6256, 41.6203, 53.3167, 53.3167, 38.4058, 38.4333, 35.7522, 46.1725, -12.785, 43.1392, 37.3908, 41.1311, 36.6044, 41.1489, 45.7475, 41.2664, 45.3786, 41.1531, 38.1061, 43.3217, 3.117, 17.45, 37.8717, 39.5328, 41.6381, 40.7478, 41.6661, 41.7872, -27.6839, 45.8814, 41.7344, 41.7456, 37.3517, 42.4519, 45.51, 60.2439, 50.5633, -4.033, 61.1217, 46.6333, 43.82, 47.9361, 6.17, 49.2, 34.6539, 43.0333, 37.0872, 43.0333, 51.15, 38.1947, 39.8972, -23.383, -23.333, 37.9, 45.2833, 46.2667, 43.2119, -36.6722, 37.62, 46.7492, 40.1589, -23.4372, -23.4372, 68.9, 50.2667, 43.46, 47.269, 46.1506, 32.5183, 32.3847, 32.35, 34.0103, 22.367, 33.8117, 46.3675, 40.2578, 39.7506, 44.7136, 45.2219, 37.5167, 41.5386, 42.5667, 45.9647, 44.7833, 37.4833, 52.7231, 47.45, 33.3667, 35.0097, 40.8333, 43.9144, 43.1667, 54.0167, 14.8, 50.0364, 32.3094, -31.542, 26.017, 34.0347, 62.23, 58.433, 48.6333, 38.7708, 66.0425, 42.6722, 40.8167, 46.35, 34.0178, 47.0833, 38.9453, 43.8333, 35.8644, 35.8583, 37.3581, 34.0511, 33.9381, 37.0564, 37.0547, 8.824, 37.2319, 37.2028, 34.7675, 34.5358, 45.081, 54.4389, 38.0422, 45.9, 46.2667, 33.1356, 33.0125, 38.2281, 32.975, 38.1811, 38.115, 40.8333, 41.2808, 43.179, -26.0, 43.1631, 40.435, 39.6667, 44.8375, 40.1906, 40.0681, 39.9, 60.2744, 68.0, 41.8553, 41.2647, 42.6408, 46.1442, 41.9992, 44.9783, 29.3731, 45.5, 52.4832, 43.7925, -41.0556, -16.3842, 26.4986, -34.439, 44.55, 48.9, 30.3644, 29.5814, 31.1783, 19.897, -14.933, 51.9281, 33.6542, 53.805, 50.02, 46.8833, -11.591, 48.3167, 52.967, -18.5203, 45.5733, 26.75, 50.95, 43.5875, 45.2833, 54.3, 51.7706, 43.9067, 45.785, 51.25, 51.867, 31.4269, 31.2361, 31.3131, 46.0, 48.5667, -15.52, 43.1153, 61.7042, 38.2544, 49.652, 36.4192, 55.0, 65.62, 65.58, 65.5431, 29.6756, 30.2503, 34.6269, 34.6081, 8.417, 50.2333, 33.8225, -41.1492, 38.8678, 55.7, 8.617, 62.64, 25.43, 65.7667, 65.75, 44.42, 35.85, 38.6661, 34.05, 32.07, 45.5333, 42.9367, 62.4167, 49.63, 47.8, 24.53, 47.0331, -3.41, 29.58, 49.8167, 36.2303, 59.4, 64.58, 64.55, 48.2, 42.8294, 35.2983, 37.3817, 37.3208, 44.5167, 51.505, 58.6333, 56.05, 56.8667, 56.8667, 56.85, 55.05, 43.2117, 40.0833, 52.2117, 45.6667, 39.1258, 49.55, 34.2339, 37.1431, 50.2167, 50.2167, 32.3667, 46.7, 35.667, 30.167, 62.9781, 63.1431, 47.3, 9.6053, 50.9053, -43.6578, 22.2, 0.051, -5.117, 22.15, 27.85, -9.66, -9.517, 59.933, -21.667, 31.18, 16.2, 55.433, -21.1706, 43.9181, -21.1172, 55.3, 63.25, 46.3, 33.1544, 32.6847, -54.499, 10.308, 45.95, 46.7781, 36.9539, 36.9878, 34.0919, 34.0356, 30.4653, 41.8292, 44.7983, 30.9392, 37.3475, 43.9906, 38.1025, 45.1, 43.1406, 44.5833, 38.7369, 45.0025, 34.917, 44.6167, 44.6633, 13.0, 40.8508, 40.4117, 40.4667, 40.3778, 40.3, 40.4831, 40.7, 39.4, 40.4633, 36.4, 19.3, 18.167, 16.667, 52.6667, -25.798, -13.4, 59.55, 12.983, 53.467, -13.333, 52.1031, 34.82, 42.1833, 53.35, 33.295, 45.2667, 43.3181, 17.9722, 42.9667, -15.7167, -19.833, 40.8344, -4.6, 47.3172, 39.9, 11.85, 5.874, 13.23, 13.233, -18.05, 49.9681, 60.5181, 51.1833, -34.3745, -32.7427, 35.27, 35.5, 35.45, -2.5, 44.617, 57.783, 7.0833, -3.483, 21.4783, 22.1306, 21.2033, 40.52, 20.6419, 21.483, 21.5, 70.7006, 0.57, -0.02, 0.0, 57.8, 57.1, 21.5286, 21.5428, 21.5261, 31.267, 55.25, 65.19, 3.755, 2.263, 42.1492, 36.6667, 48.5667, -35.494, 38.35, 8.15, 65.15, 36.5994, 4.2, -26.7528, 58.07, 54.1, 43.9794, 43.265, 34.0583, 50.1667, 5.227, 57.3917, 57.3844, -3.229, -3.2167, 55.3717, 72.3794, 9.55, 46.0, -37.5976, 12.048, 48.7781, 37.8172, 67.17, -33.467, 55.61, 55.6, 55.5714, 47.5167, 44.8419, 48.3589, 47.8417, 48.3939, 60.6814, 60.68, 34.3947, 47.933, 58.317, 57.82, 37.1317, 39.6833, 37.6478, 36.4947, 7.38, 1.5, 12.141, -21.2, 37.1742, -3.133, 42.1508, 53.354, 35.5158, 42.4733, 42.9333, 37.4167, 37.335, 42.53, 21.983, 45.767, 46.8128, 3.933, 4.0, 50.1028, -19.7419, -32.5219, -31.82, -36.8886, 12.917, -23.133, 38.25, 10.37, -13.7379, 10.367, -33.2894, 34.8911, 34.8358, 49.7, 39.1972, 39.1028, 39.1353, -5.811, 65.4, 14.55, -12.0569, 44.2114, 45.9511, 44.0869, 46.2667, -34.2508, 44.1542, 49.1, 64.9989, 36.1747, 49.473, 33.6989, 39.5436, 56.9667, 47.7028, 53.45, 21.3331, 50.65, 52.55, 32.0389, 37.1089, 40.7667, 40.8203, 51.35, 35.9172, 39.2583, 61.5831, -74.95, 31.5769, 49.3667, 48.8, 19.05, 40.5411, 40.54, -26.533, 44.0367, 42.1619, 44.855, 49.9, 49.2167, -25.921, -41.25, 42.0494, -5.369, 10.25, 10.3, 13.47, 30.1925, 24.7258, 40.533, 42.5008, -21.1756, -21.1756, 37.3036, -77.4167, 33.9, -32.684, 25.9492, 39.8253, -21.1906, -17.0672, 42.2636, 68.8, -30.85, 52.65, 34.7392, 30.8356, 47.77, -22.31, -42.6619, 18.251, 46.5, -22.92, 33.1139, 50.65, 58.71, 33.8761, 39.4086, 45.4, 43.4417, 56.217, -19.4, -79.95, 40.433, 45.0983, -23.4, 34.1653, 40.58, 40.6167, 35.7072, 44.5833, 44.6125, -46.883, 32.4714, 31.2114, 40.6161, 38.3778, 3.633, 37.5042, 37.5128, -22.017, 47.1, 53.45, 56.46, 44.2667, 43.7028, 38.6833, 38.4917, 52.7017, 64.6831, 54.175, 66.73, -27.3002, 39.15, 31.3336, 46.2911, 18.133, 53.3242, -26.6006, 44.3, 46.5311, 46.5458, 50.0167, 31.7, -40.9089, -29.6587, -29.6481, 29.7853, 69.72, 41.3286, 43.305, 32.5403, 35.8036, 35.9156, 39.1342, 44.4706, 42.0647, 42.1128, 36.1167, 37.3339, 44.6411, 44.6381, 39.6211, 43.1803, 38.0131, 50.7344, 39.4658, 39.4019, 46.5, 39.4039, 36.7056, 43.1833, -37.8, 36.3444, 52.3, 52.3, -37.056, -25.5161, 38.4486, 39.8383, 40.2411, 39.1019, 40.3458, -38.0, -37.933, -2.55, 12.37, 35.3, 58.1, 58.09, 36.267, 40.533, 49.1333, 1.683, 20.667, 54.333, 30.7478, 41.2211, 43.1631, 40.1642, 43.1544, 44.6719, 30.7358, 42.9892, 42.6681, 44.9358, 54.0, 46.2, -20.067, 47.167, -5.8, 34.0044, 34.1333, 48.9, 49.75, 28.1228, 28.6836, 15.6167, 41.3914, 15.65, 61.5664, -8.75, 4.813, 44.1747, 39.0228, 28.0372, 21.317, 35.45, 36.25, 33.85, 63.32, 39.4781, -19.133, -10.25, 9.749, -19.983, 19.5353, 44.8933, 43.79, 33.9167, -67.6, 47.8214, 36.5697, 32.3833, 18.1875, 40.5158, -42.7567, 46.5044, 42.4292, 30.1064, 7.565, 63.6167, 60.8833, 30.4, 38.6869, 47.4989, 61.3208, 48.6008, 51.63, 23.1881, 43.1708, 41.8, -0.62, -6.167, 34.8822, 26.1917, 26.1839, -16.4423, 44.8889, 31.1331, 42.6519, 61.4181, 35.6022, 33.1533, -11.0468, 39.1267, 34.7056, 31.1828, 26.565, 40.2064, 39.6339, 39.6, 50.7167, 41.9953, 33.4522, 29.7, 44.3769, 35.3364, 34.3097, 39.4136, 62.9575, 31.435, 39.3528, 40.0167, 52.2667, 49.0667, 52.5833, 40.3392, 44.2, 44.1792, 63.7175, 63.6492, 33.1803, 33.0, 52.3833, 52.5333, 45.1947, -77.8833, 45.9306, 38.3772, 63.6, 32.0097, 37.99, 45.5, 44.8872, 39.1333, 47.4825, 39.6522, 40.2156, 42.4106, 39.7844, 42.3092, 47.5808, 45.8383, 45.8133, 46.3911, 47.1358, 35.6722, 45.2214, 34.1142, 38.3483, 39.2814, 45.5114, 37.285, 47.2667, 44.4333, 54.1333, 36.0183, 31.4664, 41.1431, 48.1197, 34.3906, 33.5714, 38.4617, 45.7, 33.536, 42.4422, 37.8333, 3.8, 36.283, 45.1308, 36.7925, 42.3811, 41.8969, 40.3761, 50.0167, 50.0333, 48.4828, 48.49, 37.2839, 34.7292, 29.81, -32.2208, 43.576, 46.9161, 46.8947, 62.917, -26.6136, 35.505, 40.0489, 52.3425, 47.6992, 71.0331, 35.5208, 20.833, 50.5625, 24.3, 33.8833, -37.6655, 28.1011, -37.8075, 28.1136, 52.8167, 35.2778, 49.2833, 46.3689, 45.155, 45.45, -32.366, -32.35, 34.4278, 45.6775, 59.23, 46.6011, -42.4928, 38.5039, 46.1047, 34.7261, 40.4575, 35.0564, 35.1297, 34.5731, 1.533, 15.867, 31.607, 30.9044, 39.8075, -32.833, 9.817, 34.817, 21.5, 24.2, 23.383, -32.3937, -35.6902, 43.2358, 44.8742, 39.8544, 53.1031, -8.467, 37.2858, -33.25, -33.3, -29.17, 37.2381, 37.2847, 46.1683, 38.3, 36.6239, 36.6206, 8.6, 20.97, 41.5097, 32.3347, 32.55, 44.8317, -36.9077, 35.3208, 32.3197, 48.5131, 42.4947, -31.4756, 45.1786, 42.9194, 50.1167, 28.6408, 50.1167, 49.4667, 31.3331, 36.8, 2.45, 57.35, 40.85, 39.05, 37.055, 37.1997, 38.2, 48.183, 37.4094, 35.0364, 36.8331, 48.1075, 45.6, 44.6275, 48.8556, 32.3972, 32.3911, 49.0731, 4.25, 37.1497, 39.1756, 19.4, 39.7808, 38.8489, 65.87, 48.8167, 36.8833, 25.8064, 25.7906, 25.6475, 25.7553, 25.9069, 49.45, 31.47, 47.15, 52.05, 49.717, 39.4333, 52.883, 49.3833, 41.8819, 39.4953, 39.2931, 42.5933, 41.4603, 40.1936, 49.6833, 37.6167, 44.7786, 39.7833, 44.7189, 45.5833, 45.0667, -12.605, 43.6333, 51.15, 32.68, 43.6089, 44.0667, 32.0186, 31.9433, 32.0, 44.75, 59.8339, 32.8753, 49.0, 31.7842, 37.5667, 43.4131, 35.1231, 46.3667, 66.68, 53.817, 61.733, 61.6869, 45.7533, 45.4717, 45.5833, 41.6725, 45.1219, 35.9328, 42.0811, 45.2267, 46.7614, 57.0333, -34.2358, 50.5544, 44.5208, 26.2483, 46.4267, -26.6569, 65.2222, 43.3828, 42.5794, 39.0744, 38.4167, 48.667, 36.3, 49.1333, 44.117, 41.8553, 41.7858, 33.0831, 32.7797, 46.875, 44.5178, 40.5375, 39.7194, 33.4136, 46.0228, 38.3064, 40.8847, 45.6478, 45.6403, 40.7692, 46.808, 39.3667, 34.3903, 34.0836, 44.4667, 40.65, 36.74, 36.2314, 32.4419, 45.9428, 42.955, 43.0719, 38.3844, 24.173, 25.847, 24.3, 45.3539, 16.933, 23.633, 63.9033, 35.2722, 32.6053, 38.9547, 40.5156, 32.635, 40.7328, 40.3458, 37.85, 44.2, 32.7817, 48.1667, 48.7667, 8.3, 8.3, 42.6767, 40.4833, -34.822, -34.748, 9.617, -78.55, 39.1247, 44.8831, 44.16, 48.0781, -32.8427, 45.8864, 40.9125, 48.4167, 48.1803, 48.2553, 38.633, 53.87, 53.7167, 28.083, 44.6761, 44.6467, 47.0167, 4.322, 4.4, -66.55, 62.5, 48.0167, 35.117, -10.683, 48.083, 43.3061, 43.1114, 44.7342, 49.15, 46.8983, 46.9244, 46.85, 46.9208, 48.6, 32.4097, 43.7031, 44.5681, 41.9481, 34.9436, 43.7667, -26.4888, 39.06, 36.383, 47.4783, 65.5831, 61.1667, 70.75, 62.0167, 70.7331, 66.95, 72.7831, 34.117, 24.783, 39.65, 24.476, 31.733, 31.933, 46.2858, -70.7, 60.7022, 53.1, 38.5744, 38.755, 39.4194, 30.6794, 30.6833, 30.6264, 45.5656, 45.5464, 42.0431, -15.08, 47.0575, 35.8439, 60.841, 44.6481, 37.6242, 41.4589, 37.4058, 53.95, 53.9, 53.75, 48.7603, 36.276, 52.133, 41.7681, 48.45, -5.894, 35.0492, 35.0531, 34.817, 45.1783, 37.75, 57.583, 62.7442, 40.8442, 41.4653, 22.1833, -67.667, 21.115, 21.1544, -4.033, 44.35, -2.05, 31.6219, 49.8167, 67.967, 33.2425, 26.883, 46.1, 46.1, 44.5647, 51.683, 36.8619, 46.15, -15.25, 38.5833, 40.9442, 40.9361, 47.8453, 42.5994, 32.8833, 34.9797, 35.0169, 32.5156, 6.234, 50.4392, 43.4614, -36.2519, 41.7806, 41.0731, 35.2244, 34.0192, 45.7, 34.4614, 18.5, -7.88, 44.5817, 43.7806, 41.2781, 36.1483, 36.5903, 36.5881, 36.5928, 25.87, 25.733, -16.717, 44.9342, -35.0, 37.5922, 34.6106, -2.0, -30.267, 44.2, 41.4667, -10.43, 39.333, 41.7, 37.5811, 32.26, 32.2997, 36.1014, 40.6475, 41.5092, 31.5519, 33.3328, 38.0111, 30.4406, 37.8736, 36.8667, 30.4922, 33.6361, -24.8642, 41.5725, 44.2553, 45.4667, 45.5167, 45.5167, 38.5439, 38.4858, 43.8197, 38.505, 44.1167, 48.4167, 43.912, 48.6, 46.5667, 44.8186, 39.0564, 45.2167, 36.9853, 43.65, -28.0997, 44.4167, 42.8597, 40.5319, -37.98, 44.2169, 39.0461, 39.9511, 43.9167, 26.84, 33.4517, 46.8875, 45.1758, 32.7053, 39.3572, 43.6536, 45.1144, 43.6614, 45.6667, 50.3333, 50.3333, 46.4378, 46.4203, 60.5028, 51.2833, 51.2833, 51.2833, 51.3, 51.2667, 14.5, 45.8775, 61.0, -5.11, 45.9903, -21.9947, 43.8567, -29.2039, 60.96, 45.89, 49.1833, -29.4914, 37.3006, 34.7336, 19.7, 41.7217, 41.4558, 35.7297, 39.6428, 39.6203, 29.6833, 44.85, 44.5167, 41.0428, 35.0128, 51.7217, 39.7, 34.9067, 34.9333, 34.3175, -16.664, 45.4825, -20.285, 34.0864, 39.5267, 37.1581, 37.1833, 48.35, 55.215, 35.1581, 51.6667, 41.8039, 39.4158, 36.2067, 36.1683, 42.8417, 44.5344, 45.59, 35.3669, -7.85, -11.217, 53.45, 46.9, 63.32, -38.0737, 33.7183, -35.9004, -35.9093, -38.2094, 47.0219, 40.6167, 35.0711, 55.8331, 46.8, 46.7281, 47.2078, 48.3667, 53.57, 55.75, 55.9167, 49.696, 35.8022, 41.2986, 48.05, 57.28, 50.6667, 59.8394, 35.0336, 30.3392, 47.6833, 45.2667, -34.5253, 35.883, 43.35, -1.87, -1.845, 76.2333, 76.2333, 34.4883, 31.1769, 8.567, 39.9056, 37.1872, 34.5208, 34.6242, 35.6494, 44.05, 36.3689, 43.0283, 33.7011, 45.7, 37.0544, 36.0306, -35.0639, -37.8383, -33.6185, -37.145, 47.75, -34.7253, -16.4181, 38.0631, 43.9833, -37.7473, -37.8333, 47.35, -35.5293, -36.9767, 34.5467, -20.6778, -20.7361, 47.9167, -34.9784, 36.3472, -28.1156, -37.7481, -37.6924, -51.823, -41.8444, -73.2, 42.9372, 37.3761, -42.8967, 38.3894, 42.833, 35.6558, -4.0, 46.9167, 46.5053, 3.533, 55.5, 52.03, 51.95, 11.117, 66.3642, 23.317, 45.0619, 44.8322, 36.4739, 34.9047, 40.7497, 37.1542, 36.3458, 43.05, 27.9378, 32.9539, 35.8444, 41.2708, -28.95, -10.267, 45.9997, 36.4992, 40.7053, 38.4106, 42.0981, 36.26, 42.6083, 37.8817, 37.8792, 37.3436, 39.9492, 45.3333, 45.2667, 34.5408, 35.3789, 32.8672, 32.8797, 35.655, 30.7053, 44.5247, 35.7586, 42.7314, 38.1878, 33.1689, 35.5572, 40.9486, 43.5858, 41.1389, 39.3167, 43.8769, 43.875, 41.3206, 41.3325, 41.3156, 38.0583, 43.3325, 33.1964, 37.3542, 37.9286, 38.3483, 37.0711, 37.0733, 44.2667, 39.0642, 34.2308, 45.03, 43.6389, -0.95, 44.567, -32.5628, 64.849, 49.4667, 42.6, 47.1414, 45.25, 39.7986, 48.967, 48.1642, 48.3581, 52.3333, 52.1353, 37.217, 48.633, 50.37, -8.54, 48.283, 16.533, 29.4667, 32.6089, 34.2192, 33.9558, 33.9544, 32.4, 45.4, 44.1625, 47.4661, 47.4569, 42.0425, 37.5794, -28.5367, 47.8069, 53.5333, 34.1944, 30.203, 62.5103, 51.567, 52.5189, 58.9333, 40.2342, 34.9364, -8.333, 53.5667, 42.2553, -28.9786, -33.5547, 48.35, 46.4122, 56.23, 48.3864, 46.4167, 67.94, 67.9681, 68.0617, 67.9728, -26.8936, 38.0028, 37.9578, 37.7889, 43.8894, 49.633, 36.4522, 34.0783, 35.9203, 38.167, 68.9667, 42.317, 33.25, 43.2044, 35.0714, 42.0264, 36.6122, -35.1234, -35.065, -31.7416, -31.7651, 46.7, 6.577, -28.3395, 38.733, 41.4075, 41.4714, 34.7728, 34.7442, -14.7803, 35.6147, 43.1711, 35.7781, 35.6567, 44.9667, 42.183, 63.4353, 38.3311, -0.919, 41.283, 44.9258, 36.2283, 65.382, -2.467, 27.2417, 25.367, 66.7628, 56.45, 49.5833, 49.667, 33.7544, 33.6833, 45.2436, 58.83, 69.8797, 68.55, 45.9, 50.87, 67.8, 68.9, 48.65, 66.17, 67.83, 76.85, 40.1942, 8.4, 14.25, 33.267, 60.4667, 60.3939, 62.3978, -3.368, -17.0, 53.1, 31.6164, -17.75, 65.47, -6.57, 49.75, 36.667, 32.732, 26.6, 55.97, 35.167, 21.1, 31.483, 46.45, 3.683, 26.2, 31.2739, 68.68, 56.55, 56.55, 43.1, 57.593, -1.3, 62.88, 17.417, 14.967, 15.8, 8.533, 50.95, 50.2667, 43.533, 31.87, 40.983, -3.25, 43.6039, 38.717, -15.1, 64.4706, 64.7419, 20.4167, 18.767, 49.05, 28.6, 27.583, 30.8, 48.68, -17.8, 72.9833, 31.933, 32.1, 22.633, 26.633, 47.3, 47.153, 41.2531, -5.667, 33.03, 27.3, 59.85, 38.2103, 38.2778, 26.1686, 26.1522, 23.3, 46.5067, 45.7667, 34.7, -36.9813, 44.62, 15.167, -32.0656, 67.6331, -36.2144, -30.3154, -34.7071, -34.7325, -32.9342, 60.9167, 59.467, 68.4394, 41.4331, 42.7914, 33.9294, 38.3431, 36.1136, 36.1189, 25.05, 55.2333, 50.2, 39.3, -5.767, -5.9167, 50.1833, 50.1833, 31.5889, 31.7722, 31.8142, 42.2825, 10.32, 38.9133, 66.75, 66.76, 66.77, 37.6094, 34.0483, 45.4981, -18.043, 40.7806, 30.3664, 31.9611, 58.7, 40.133, 10.9, 26.219, 39.2, 28.383, 28.3833, 59.5, 55.567, 12.13, -4.386, 41.5667, 35.7197, 40.6986, 44.0261, 44.0603, 68.05, 59.4839, 34.7675, 38.3894, 44.2331, 31.533, 44.5378, 51.3667, 17.611, 58.6581, 57.65, 14.45, -32.7103, 49.5833, 49.5167, 16.6, 35.1, 44.1917, 43.333, 64.55, 54.75, 49.167, 39.3536, 40.4178, 36.8639, 53.28, 39.7122, -35.3365, 51.32, -35.1165, 60.5669, 40.1358, 38.4478, 53.602, 48.6525, 48.7092, 47.0, 50.5, 50.8933, -70.667, 54.0889, -38.95, 52.9053, 49.8183, 50.75, 39.2467, 46.8333, 37.8394, 46.67, 40.4, 44.633, 38.617, 37.5147, 40.0228, 40.6825, 39.6694, 40.0875, 34.2978, 46.3286, 37.9325, 43.8497, 44.0461, -32.9185, -32.8905, 36.5522, 43.9708, -33.1131, 44.7158, 35.6108, 48.6758, 34.3933, 36.9425, 36.8981, 37.2811, -23.4169, 33.4544, 30.3653, 35.6042, 39.3933, 42.6008, 43.3772, 44.9489, 48.1842, 35.9833, 44.6833, 41.9497, 33.6025, 34.7764, 37.1319, 41.5333, 38.0344, 38.9917, 41.7117, 31.1922, 32.3378, 31.3128, 32.3378, 54.6699, 41.6764, 35.0678, 35.0967, 41.1925, 29.7192, 29.7044, 40.4719, 48.0167, 41.0172, 39.8942, 43.4833, 34.9456, 28.567, 28.583, 50.0, 46.5414, 43.1167, 39.0172, 42.5167, 46.4167, 43.0453, 37.4636, 35.6808, 40.075, 30.9539, 45.01, 30.0375, 39.7333, 44.3589, 36.5869, 44.9714, 38.0047, 29.8167, 29.9167, 29.9933, 30.0494, 30.0333, 40.4719, -39.017, 40.9319, 34.7, 30.7267, 46.8925, 44.6353, 29.0361, 44.3006, 40.7789, 40.6386, 40.7794, 46.5092, 46.2325, 45.7333, 7.35, -11.9971, 12.2333, -36.3092, 43.1003, 43.1072, 13.5, 9.767, 43.6333, 30.5317, -89.0, 46.2, 46.2333, 50.6756, 57.3039, 49.3992, 48.5342, 49.7681, 52.6725, 53.1942, 37.967, 37.917, 61.9, 67.8497, 67.8497, 36.733, 46.9667, 58.567, 53.15, 58.35, 59.53, 55.2, 42.767, 41.8406, 43.8581, 34.9553, 35.0317, 47.0708, 41.35, 60.0433, 14.517, 15.233, 53.3333, 53.3333, 43.3331, 48.8667, 48.283, 40.0333, 29.2828, 36.39, 55.78, 54.8831, 50.9, 66.767, 57.883, 48.333, 51.05, 56.2667, 22.867, 62.43, 61.7, 63.283, -35.1586, 68.0708, 32.583, 31.4553, 31.4208, 51.92, 21.221, 48.15, 28.817, 57.55, 37.2792, 64.5111, 46.4, 17.8667, -32.5226, -37.9039, 32.6678, 49.6, -33.2815, 37.0156, 55.45, 52.5, 53.7139, 63.15, 53.7644, 58.8925, 64.7978, 69.8333, 41.9725, 42.0289, 36.9033, -29.042, 41.9856, 36.95, 36.9839, 36.8708, 40.5492, 48.85, -17.6872, 35.2358, 17.936, 65.2833, 65.2833, 65.2833, 62.28, 36.2131, 40.1197, 45.4856, 58.58, 58.61, 59.77, -32.1981, -32.2147, 64.91, 64.93, 52.35, 37.4314, -31.6508, 45.0, 41.3589, 44.1647, 48.9675, 39.8989, 51.55, 47.8358, 48.8742, 45.1322, 33.2125, 34.2447, 62.9614, 43.4386, 42.6958, 52.7667, 52.7667, 46.3667, 43.4133, 47.05, 44.0303, 37.0, 35.8167, 48.8167, 45.55, 37.2331, 43.7897, 47.2667, 37.2328, 41.8564, 41.3333, 43.6028, -28.3008, 32.7, 27.233, 36.2347, 37.8547, 39.0667, 41.4933, 40.9936, 25.95, 46.8167, 48.7667, 41.0569, 41.1214, 64.7581, 45.0375, -34.5993, 44.75, 43.0219, 39.0017, -34.9469, 36.1631, 39.7411, 39.8114, 41.9928, 66.8333, 50.8289, 41.2667, 40.6517, 53.9667, 37.455, 42.5117, 41.5269, 52.683, 42.1908, 51.0517, 59.5667, 45.4, 45.8, 53.005, 20.933, 20.93, 18.12, 33.3667, 33.367, -22.2667, -22.267, 32.384, -31.183, 46.783, 48.85, 45.8, -14.7, 58.517, 45.3331, 56.969, 53.6, 50.6, 53.817, -70.767, 48.783, 51.1, 55.083, 50.4, 45.8, 47.9, 67.6994, -34.9469, 49.6167, 57.083, 47.5083, 38.2297, 30.367, -35.45, -0.917, 70.2117, 42.45, 44.77, -31.4492, -32.7244, 40.8067, 40.55, 50.3608, -34.4761, 60.5083, 49.5042, 49.4267, 64.1667, 6.967, 30.3489, 44.8831, 12.05, 66.5997, 45.435, 56.25, 29.57, 48.0, -31.5495, 43.8764, 78.923, 46.8667, 33.8117, 43.3392, 49.3667, 49.4333, 42.4594, 44.4419, 42.0644, 46.1458, -27.4034, 41.3044, 39.4133, 37.7214, 37.7983, 37.865, 37.7861, 42.2342, 38.87, 39.1131, 32.2061, 32.9572, 50.5, 43.7428, 43.5167, 39.3758, 34.9417, 36.8425, 34.9589, 33.3933, 37.9714, 41.8386, 41.0064, 36.1753, 36.0236, 36.0028, 41.0333, 25.85, 25.8603, 17.05, 26.6, 46.8675, 39.8189, 30.6036, -33.6774, 47.3989, 49.1289, 49.4531, -1.91, 42.917, 60.367, 49.0, 58.6592, 29.1639, 36.1839, 37.6761, 36.8167, 33.2097, 33.2194, 38.3083, 48.583, 32.1664, 44.4333, 44.3964, 25.9167, 47.7831, 35.5158, 33.2083, 43.1003, 41.1439, 44.8919, 33.1553, 35.1075, 39.8, 43.5492, 55.48, 34.6242, 46.48, 31.8797, 47.3328, 31.9206, 54.2, 9.5, 51.233, 43.1878, 42.68, -12.3263, 63.1831, 50.0892, 48.4603, 39.067, 41.1275, 44.7281, 41.1167, 41.1961, 41.2458, 43.175, 54.9, 36.947, 57.717, 20.6617, 43.6008, 58.567, 59.3667, 61.867, 41.12, 49.2081, 33.233, 34.4478, 34.4483, 48.1086, 63.25, 45.5, 50.05, 34.667, 52.166, 27.1508, 36.1217, 35.4253, 27.259, 35.5342, 35.4167, 35.3889, 35.6239, 50.7333, 58.0667, 52.7, 51.63, 62.45, 66.25, 44.1758, 59.57, 36.5072, 47.3667, 56.66, 57.37, 56.2, 38.8317, 38.85, 53.1031, 51.7833, 51.7667, 41.15, 67.5667, 67.5667, 44.4569, 43.7025, 42.2058, 36.2469, 44.9281, 42.0736, 60.4, 68.5, 52.8, 48.6117, -20.68, -32.55, 53.65, 49.1833, 34.9536, 38.3422, 44.7628, 33.3733, 48.5497, 38.7003, 60.983, 50.95, 54.667, 49.9325, 53.7667, 34.1797, 30.2, 46.9733, 34.6, 41.3103, 48.4608, 48.4608, -37.1017, 49.017, 65.23, 45.05, 55.0167, 62.5, 44.583, 36.95, 48.9, 45.4108, 42.0697, 62.8667, 62.8594, 49.1167, 63.9, 36.5028, 37.2669, 33.9478, -33.9644, 44.7317, 42.4544, 46.9, -20.667, -21.6364, -21.6689, 34.0561, 44.0439, 44.0206, 46.8342, -27.5553, 38.8894, 51.2403, 53.7667, 53.7667, 35.1542, 59.9, 32.6592, 31.0944, 48.9989, 48.6956, 19.2706, 50.6333, 62.6043, 32.6025, 47.033, 43.4033, -23.153, 44.133, 33.4886, 33.4617, 43.9167, 30.2264, -33.3211, -33.3813, -33.3815, 42.57, 29.4794, 35.7, 49.3667, -37.6922, -37.6917, 43.3333, 37.2722, 38.53, 38.2222, 54.367, 41.6236, 59.28, 59.23, 39.9808, 45.3558, 52.933, 40.2767, 51.6831, -42.5519, 31.9556, 41.3619, 37.2353, 44.6, 18.85, 39.7458, 63.7003, 28.5453, 28.4339, 28.7797, 41.3089, 47.98, 52.5, 56.05, 48.725, 45.1167, 63.41, 32.3789, 41.5683, 39.5178, 39.49, 65.95, 48.0508, 48.0189, 54.5, 60.53, 62.1808, 26.7897, -18.04, 43.2794, 34.683, 38.5019, 56.38, 38.0492, 41.0194, 41.1839, 51.3, 44.45, 43.8667, 34.75, 41.4014, 44.0206, 43.9844, 45.5331, 41.3214, 39.2419, 57.27, 59.9419, 59.9428, 24.963, -40.6, 49.0333, 59.3, 57.133, 51.083, 57.45, 57.44, 50.455, 60.31, 49.8, 60.7, 68.12, 69.93, 79.55, 76.0, 66.48, 79.5, 70.9831, 9.553, 41.9244, 43.4622, 43.533, 43.183, 36.3339, 45.0333, 39.1, 38.6133, 41.3283, 45.3833, 45.3833, 45.3167, 45.3167, 46.4314, 41.7533, 61.0333, -26.817, 41.1078, 12.353, 13.58, -20.7769, 31.917, 30.93, 31.673, 48.483, 1.62, 34.78, 64.9283, 64.9375, 65.0331, 65.0056, 35.867, 38.0264, 40.1344, 42.3278, 42.3331, -7.9, -42.4842, 51.4833, -35.0694, 46.8819, 66.34, 66.26, 39.0833, 36.5508, 66.3797, 43.3542, 51.317, 34.067, 44.0981, 38.7333, 34.5528, 37.39, 44.98, 43.6667, 43.0161, 43.65, 43.5833, 49.3167, 58.68, 51.75, 51.77, 40.3283, 36.3022, 42.2667, 34.1981, 34.2008, 34.2067, 38.7853, 51.3833, 51.1667, 51.35, 35.5125, 36.6597, 34.6819, 51.483, 30.7169, 30.4267, -63.3, 20.0386, 48.7167, 37.5917, 38.7583, 46.6092, 44.0622, -0.883, 63.27, 42.5806, 54.0206, 45.3983, -12.614, -15.78, -36.6539, 34.0067, 37.0683, 33.8083, 68.6, 34.7167, 46.15, 36.9208, 36.9261, -14.3306, 27.73, 66.81, 44.5036, 37.2689, 36.2614, 41.7525, 35.0681, 33.0772, 37.5831, 37.8175, 31.5536, 42.6922, 55.8455, 67.2097, 67.205, 49.2167, 59.383, 46.6167, 15.117, 28.7247, 55.967, 39.0028, 31.7831, 31.7797, 31.7425, 46.1, 39.1136, 19.3175, 66.39, 50.05, 39.6, -10.19, 39.5606, 39.5556, 34.5883, 34.6294, -9.45, -64.8, -16.0008, 47.3058, 61.5889, 61.5961, -64.766, 34.5494, 37.8142, 26.8261, 29.6319, 33.8275, 33.8281, 1.767, 33.3781, 7.127, 37.4436, -0.68, 9.267, 56.02, 35.5544, 42.7767, 42.8175, 39.3686, 30.2492, 30.2119, 36.1203, 38.3036, 30.2061, -18.533, 40.9461, -2.17, 66.1333, 66.15, 37.8156, 35.3514, 26.955, 36.7269, 36.82, 29.3272, 29.3483, 29.3167, 38.5556, 38.8522, -9.75, 47.35, -23.1725, -17.217, 33.867, 39.7536, 46.8333, 41.5022, 38.3897, -34.7977, 36.0336, -25.633, 60.1117, 59.7842, 9.35, -19.7, -31.783, -40.9, -35.5695, 47.2697, -20.1078, 47.9167, 36.7278, 37.1047, 61.4442, -2.63, 33.6744, 48.8231, 36.2872, 39.6186, 67.73, 45.535, 34.1547, 39.5144, 39.2811, 39.345, 51.4, 42.1058, 44.7333, 34.2903, -33.1281, -33.1419, 35.8989, 37.483, 45.8667, 40.6703, 38.8167, 48.45, 45.9336, 41.4947, 46.9006, 39.0333, 36.7242, 40.7667, 44.8042, 43.8022, -3.083, -2.917, -33.7917, 27.6089, 40.9333, 45.4, 45.4167, 45.35, 49.1517, 39.0736, 37.3678, 37.3278, 35.6083, 43.15, 39.6308, 34.1483, 36.2994, 42.35, 30.3961, 30.4636, 46.2667, 25.29, -29.689, -32.8, 35.6278, 35.6697, -22.38, -28.21, 1.417, -32.6296, 30.333, 45.3222, 25.6, -7.017, 47.22, 6.7833, 46.0258, 46.5372, 40.295, 38.3, 43.38, 69.35, 69.3667, 41.1247, -8.132, -9.4, 34.7253, 34.7156, 42.6283, 53.7831, 42.9294, 43.2458, 56.883, 52.3, 36.6692, 40.1217, 41.6653, 63.0322, 62.9453, 40.4547, 46.82, 44.0764, -29.2708, -32.333, 34.2325, 34.2431, 39.9333, 14.583, 56.2333, 49.7833, -32.7235, 34.5025, 31.9356, -31.6669, 28.8889, 31.4, -33.3102, 45.05, 54.9833, 38.4197, 44.2333, 65.1167, 35.5489, 46.1, 46.0, 50.692, 34.6153, -3.553, -23.6, -22.6, -77.95, -35.867, 50.3667, -15.517, -22.55, 7.0333, 57.9578, 33.8017, 67.0214, 66.7722, 45.5644, 52.0833, 51.7333, 69.6333, 62.8167, 42.5319, -31.78, 44.7275, 54.083, -12.983, -34.4478, 50.3, 48.9711, 45.8667, 5.297, 45.6906, 45.7206, 45.6703, 45.6911, 22.767, 39.5, 25.633, 55.8239, 36.7381, 42.6425, -33.7195, 30.35, 30.4781, 49.4833, 49.4667, 31.7356, 53.13, 40.7039, 55.6167, 40.6675, 4.422, 4.8, 51.9, 56.7, 59.0, -33.93, 48.7667, -46.517, 35.9986, 49.5125, 58.0167, 42.7381, 25.5819, 30.0986, 41.8394, 42.4647, 40.0739, 36.3897, 35.0556, 37.7342, 39.8058, 30.0719, 39.1172, 29.6603, -32.0, -31.9275, -31.9192, 41.3503, 43.08, 44.5658, 57.07, 42.43, 34.033, 33.994, 45.0281, -8.4, 38.2578, 45.95, 45.8833, 44.35, 44.3667, 37.2389, 38.9989, 56.8056, 48.0356, 64.5697, 45.3725, 45.3614, 34.7994, 35.1392, -9.383, 53.0833, 54.8331, 52.9831, 51.317, 61.8167, 66.43, 48.9067, 47.9353, 36.1067, 40.4, 10.933, 12.9233, 19.1333, 16.433, 13.15, 32.7692, 39.8683, 40.0136, 40.0819, 39.9575, -15.667, 49.2519, 45.0333, 40.8728, 46.3167, 46.3158, 44.0511, 17.539, 41.6264, 39.7533, 40.6972, 43.5167, 39.8386, 36.7764, 16.817, 11.547, 40.12, 33.4489, 33.6883, 33.55, 33.4278, 18.167, 7.883, 8.132, 20.8, 10.217, 44.92, 45.933, 10.583, 43.3086, 33.3503, 32.6464, 30.5217, -1.1, -39.65, 32.8864, 34.8814, 46.5833, 39.8744, 39.0167, 51.45, 51.45, 43.0689, -7.03, 49.8667, 38.2322, 36.0969, 28.627, 63.3, 46.4922, 29.2353, 40.2461, 46.5, 46.0833, 44.0194, 44.3814, 48.617, 63.7508, 63.7331, 34.4931, 46.6167, 60.4167, 60.3831, 35.5981, 39.475, 48.3, 40.1478, -26.85, -31.667, 52.4167, 38.8325, 49.1833, 45.4756, 50.05, 50.1833, 50.1833, 49.5167, 49.5167, 49.5167, 42.8744, 64.7, 36.6853, 31.8944, 34.1239, 37.5742, 49.0333, 34.2256, 34.175, 38.8833, 34.1167, 44.25, 43.5667, 43.54, 33.0164, 46.7769, 50.9833, 43.0206, 39.2603, 46.6694, 31.8903, 31.8311, 40.4369, 41.2578, 6.2167, -32.5336, 35.55, 25.52, 37.9056, 44.2581, 36.4708, 36.4819, 43.8822, 33.7275, 52.117, 33.6906, 40.0097, 37.9344, 46.517, 40.7569, 44.0139, 36.8586, 40.1311, -17.35, -21.983, -4.267, 61.4206, -11.4022, 49.1919, 57.633, 34.4044, 43.684, -13.745, -13.8, 35.2719, 37.62, 35.1597, -25.067, 65.3197, 65.833, 37.39, 40.3547, 40.4847, 45.6375, 39.6222, 45.8944, 49.2, -5.18, 66.183, 58.3667, 38.0178, 38.6956, 38.7333, 45.4167, 47.785, 40.6036, 44.2764, 33.1869, 42.2614, 47.45, 32.0097, 32.0467, 34.1892, 44.5169, 34.1981, 39.245, -20.433, 46.5, 28.0236, 42.7489, 42.1389, 44.65, 50.483, 53.65, 28.9606, 59.45, 40.3675, 40.4311, 38.81, 41.7394, 34.0933, 34.0989, 48.78, 43.4167, 43.35, 46.4178, 48.833, 42.1333, 47.3111, 51.0667, 41.3392, 43.73, 28.7503, 35.8722, 41.9819, 50.35, 41.9097, 49.683, 52.4166, -42.733, 11.15, 21.5383, 42.7292, 36.2642, 42.8917, 42.875, 42.9203, 44.7667, 35.7469, 42.433, 16.633, 52.22, 50.4, 44.4, 36.033, 6.9667, 48.5167, 48.2667, 49.3167, 48.033, 47.3, -4.82, 50.1667, 47.0411, 46.3167, 49.3333, 56.3511, 28.6575, 48.1333, -37.8017, 49.3333, 45.0667, -27.4361, 61.4169, 39.7275, 34.1167, 41.95, 43.8333, 38.5, 49.617, 47.2508, 61.483, 44.0069, 80.6, 48.7647, 48.7825, 42.8944, 42.0694, 41.8667, 46.6, 35.0331, 69.2, 45.9042, 51.1333, 45.4586, -23.867, 3.558, 55.467, 42.0347, 47.675, 47.6775, 49.6, 54.367, 66.033, 46.4672, 37.905, 34.0817, 38.645, 26.25, -19.21, 46.1972, 36.7367, 18.0258, 22.254, 72.6833, 72.6833, 72.7, 42.5639, 37.741, -22.533, 42.44, 40.8778, 42.665, 42.6389, 0.0, 34.1381, 52.32, 40.917, 18.533, -33.3856, 64.105, 35.1739, 47.9833, 30.8408, 36.7578, 36.7725, 48.1269, 34.7325, 49.0667, 46.1167, 43.395, 40.0978, 43.29, 55.18, 42.553, 61.4656, 61.4789, 61.6303, 10.917, 49.2167, 38.4833, 46.8353, 43.5278, 36.4136, 60.785, 49.9, 39.2833, 34.1742, 31.8833, 48.9994, 33.2511, 40.4175, 50.517, -38.3148, 45.5406, 45.5908, 43.6497, 45.5181, 36.5878, 45.5511, 45.5606, 39.8053, 45.52, 45.5, -1.033, -30.05, -1.733, -9.18, -10.52, -10.717, 33.073, -8.767, 38.7569, 49.3167, 49.2, 62.6211, 56.2472, 50.3833, 41.8158, 60.2036, 60.195, 60.1958, 48.1203, 27.8381, 28.3044, 29.9506, -32.5091, 44.0469, 47.5667, -49.35, 11.667, 43.9186, 42.8833, 42.8667, -33.985, -38.3906, -0.72, 31.985, 50.6833, -20.3725, 43.9483, 44.0219, 42.975, 26.0942, 26.1658, 41.38, -14.2495, 44.25, -31.4336, 26.5578, 41.6264, 49.5333, 49.8333, 49.2833, -9.383, 28.4342, 48.9978, 42.7519, -33.1708, 48.6, 27.0997, 60.0503, 19.583, 48.1161, -17.699, 43.3944, 43.25, 60.2033, 60.3914, 60.4056, 59.985, -27.386, 46.35, 42.65, -14.1, -71.883, 32.85, 33.1986, -28.333, 45.8, 46.3, -26.733, 29.0283, 46.9603, 46.9833, 46.8814, 37.8958, 38.083, 32.6058, 52.3833, 43.2261, 39.3619, 40.2383, 41.7267, 41.6267, 37.4431, 46.1167, 33.0175, 45.8525, 44.1667, 43.0353, 46.51, 44.7764, 46.5122, 49.8333, 49.8333, 42.7917, -15.833, 48.667, -23.5, 14.05, 11.8, 29.9167, 50.0, 43.5, 40.5914, 43.0514, 57.72, 41.659, -22.7, 37.6456, 65.9233, 46.3, 45.5447, 35.1303, 52.4333, 60.067, 42.9, 34.5706, 33.8203, 34.6517, -26.733, -30.975, -22.117, 29.5711, 46.6539, 46.6833, 58.993, 42.0933, 43.6725, 53.7739, -25.733, -25.917, 46.1758, 50.333, 49.583, 39.6092, 31.6953, 57.317, 48.575, 46.6461, 48.3511, 36.1883, 48.767, 41.3331, 50.583, 49.667, 38.8333, 43.0864, 46.0331, 18.041, 40.3986, 41.3661, 37.1244, 38.3567, 49.4667, 49.4667, 40.9275, 22.2181, 26.294, 53.2167, 40.6514, 53.8833, 53.8833, 53.8833, 32.161, 54.2833, 54.2833, 44.3022, 60.033, 31.9633, 21.3, -69.383, 34.3667, 34.3694, -10.2, -20.4925, 42.7342, -33.8193, 46.2014, 37.3997, 41.7219, 13.4, 42.2897, 40.2458, 45.3375, 47.267, 41.9, 57.8167, 19.6828, 19.6669, 19.7456, 19.7717, 49.7267, 47.8, 27.92, 65.3667, 65.3992, 57.57, 61.8, 19.0333, 38.29, 38.2597, 15.683, 5.6, 6.167, -22.5, -22.283, -47.735, 15.217, 9.967, -41.433, 31.3, 19.75, 9.75, 48.5833, 48.6, 43.5697, 37.0556, 35.1842, 37.475, 46.7603, 46.7439, 40.817, 61.8017, 33.8556, -53.0, 18.567, 20.25, 26.9164, 26.9172, -35.367, 62.0911, 52.1167, 64.6633, 42.065, 57.0, 54.367, 32.3664, 35.8989, 40.9247, 8.033, 20.0256, 20.9286, 61.5356, 61.5667, 19.795, -1.5, 37.233, 63.7356, 38.417, 39.0, 39.224, 32.0339, 42.8264, 42.8081, 77.4667, 17.25, 28.335, 22.667, 31.15, 60.7167, 60.7167, 63.0831, 45.083, 67.55, 67.55, 67.55, 36.067, 40.4, 42.1, 21.95, 19.233, 47.383, 44.017, 50.5667, 42.2167, 49.3333, 49.4, -34.0112, 38.5, 33.665, 65.4, 41.5992, 42.2667, 47.8667, 50.5333, 50.4333, 46.8, 46.8, 51.7967, 50.6, 50.6, 31.717, -17.883, 34.3447, 35.9167, 20.617, 51.3906, 53.0333, 53.0333, 30.251, 53.733, 47.8092, 47.9375, -26.6125, 47.5139, 39.9367, 47.2236, 39.9058, 39.9733, 39.9369, 50.0167, -33.433, 39.0669, -32.783, -31.5086, 32.0706, 30.7836, -5.2, 13.7667, 34.133, 28.967, 64.6656, 64.6117, 59.8206, 61.0844, 40.3667, -20.1883, -20.1824, 61.9667, 25.9708, 37.6467, 43.3472, 50.05, 42.7022, 42.7611, 46.25, 59.3167, 37.2008, -5.242, 47.383, 54.0, 34.9869, 64.1167, -31.18, 10.442, 29.626, 33.821, 42.5478, 34.78, -1.817, 52.4481, 43.6167, 32.2619, 46.7858, 48.55, 21.217, 47.91, 16.3, 22.3, 48.05, 35.7294, 32.1433, 35.8922, 35.7944, 36.5044, 39.8297, 18.767, 45.1, 33.0375, 36.9, 39.1483, 57.84, 33.2222, 41.6628, 29.5439, 35.3692, 53.4167, 57.78, 44.9892, 44.9894, 40.0892, 16.77, 25.733, 62.8167, -22.55, 62.0628, 40.3131, 65.9325, 65.9764, -29.25, -27.617, 45.9717, 46.2, 44.115, 44.0433, 44.0728, -21.203, 11.867, 37.25, 39.0, 25.617, 31.395, 46.5, 40.825, 16.983, 36.9194, 36.8864, 61.1167, 61.1392, 61.1444, 47.22, 63.3778, 61.4225, 50.25, 40.7308, 41.0319, -33.5803, 40.7, 41.8036, 41.8056, 49.65, 40.1178, 26.7069, 46.6533, 49.4833, 48.9975, 47.2972, 12.6336, 40.3814, 32.4936, 43.5658, 64.566, 37.5972, 36.0686, 39.3036, 42.5242, 40.3667, 75.3833, 63.82, 53.07, -8.05, -8.1255, -29.183, 43.245, -27.2169, 40.6508, 40.5158, 40.5175, -37.0194, 44.8656, 45.3767, 34.0528, 44.2558, 32.7047, 48.8197, 40.5708, 37.4767, 44.5486, 44.5483, 40.1519, 45.0275, 39.9833, 43.5361, 43.4258, 40.0978, 52.3167, 52.1833, 38.8272, 56.55, 40.7981, 45.4667, 50.9333, 51.0667, 47.8881, 47.8769, 45.1769, 42.1233, 37.9, 41.0036, 44.6978, 39.4667, 36.71, 45.7125, 36.7, 45.7075, 32.4219, -32.2028, 36.3558, 44.6833, 36.1353, 40.3575, 44.6103, 43.5231, 35.1311, 39.0633, 28.3294, 28.2939, 49.0433, 38.07, 50.4667, 50.4333, 50.4333, 47.68, 50.9917, 36.3825, 48.8264, 49.3, 49.217, 61.7161, 66.9, 47.6758, -74.017, 32.32, 58.45, 46.6, 61.1592, 61.183, -0.892, 36.2275, 54.2892, 11.75, -34.1983, 48.0667, 41.33, 42.5667, 39.4839, 39.5683, 68.0697, 40.9239, 47.4933, 48.6469, -22.483, 30.0564, 33.7158, -27.45, 74.7167, 74.7167, 61.6, 46.1222, 48.77, 41.1494, 50.9667, 50.9667, 43.8083, 43.8339, 45.3033, 47.3333, -14.3, 64.133, 64.1331, 43.2064, 43.0667, 56.533, 48.6708, 52.3, 47.5633, 48.9733, 50.0333, 41.8847, 45.5986, 45.6308, 29.717, -38.4612, -11.0, 45.7575, 45.4164, 35.2333, 45.5378, 34.0608, 32.9964, 40.0261, 46.8886, 37.2633, 43.0528, 38.7619, 44.7656, 46.3119, 34.925, 37.0947, 43.3314, 37.9192, 41.9064, 45.6333, 39.2422, 42.8783, -20.7017, 43.8833, 37.505, 49.1667, 49.1833, -20.7289, -33.6022, -33.6004, 39.8544, 38.2061, 54.5, 50.333, 42.9506, 43.1006, 45.2142, 42.45, 43.05, 45.5022, 38.15, 41.4197, 48.217, 39.5572, 39.5122, 39.5264, 56.9625, 45.5, 43.6758, 45.4239, 45.3331, 68.43, 59.18, 43.4711, 44.02, 48.45, 51.117, 32.2056, 34.1936, -22.71, -9.967, -33.085, -22.917, -51.617, -53.778, -32.017, 26.3769, 37.7219, 29.1853, 18.3906, 35.2522, -17.8, 21.933, 35.7178, 38.8172, 45.8783, 43.8864, 40.1167, 60.18, 58.917, 64.7097, 67.73, 47.1175, -24.167, -30.8967, 53.0167, 47.4981, 40.9619, -34.083, 43.4508, 33.9511, 33.9519, 43.0308, 43.0661, -33.8258, 44.8542, 57.9167, 50.2833, 45.7, 47.8, 46.9833, 50.583, 45.979, 24.7, 24.9, 41.0331, 35.38, 54.6, 53.717, 40.8667, 44.1625, 37.3617, 36.4783, 37.3169, 36.1636, 43.9, 63.81, 45.0853, 35.3736, 19.3, 30.5653, -33.8, 65.1, 45.6817, 31.8836, 48.5167, -37.1776, -37.1628, 39.0061, 36.4706, 51.1833, -18.317, 32.8117, 27.7894, 50.4667, -34.483, 4.833, 41.9117, 43.6056, 41.0664, 41.785, 43.8578, 43.1167, 43.9042, 43.2781, 51.8, 29.7286, 46.3667, 32.8711, 42.1928, 49.1667, -23.3753, 44.925, 34.96, 28.0286, 28.0836, 30.0239, 39.7594, 43.3636, 42.3969, 35.8361, 44.9917, 40.4333, 48.1833, 48.255, 38.0392, 32.6328, -34.5714, 49.5667, 35.9731, 36.9769, 52.3833, 52.4167, 35.8936, 35.855, 38.8561, 37.5514, 40.55, 42.5475, 34.9869, 41.5181, 35.8092, 42.9717, 51.15, 43.43, 66.9833, 43.9833, 46.8203, 41.5944, 41.5778, 41.6431, 40.5514, 39.6681, 52.5, 65.31, -19.683, -20.7767, -20.7594, 55.183, 36.4161, 47.19, 33.8103, 49.017, 16.05, 48.6297, 37.9572, -24.4619, 32.8978, 50.2667, 53.2, -26.5442, 41.7831, 57.49, 12.58, 34.2453, 41.6042, 42.8592, 43.2339, 34.3478, 42.5906, 39.3389, 50.767, 54.085, -15.93, 25.97, 55.1, 65.04, 33.6731, 40.2878, 58.06, 62.5669, 62.5769, 47.2325, 52.7833, -32.904, 32.4481, 45.4525, 48.85, 38.4506, 35.9028, 41.6097, 43.2131, 43.2389, -34.5519, 50.8333, 44.7178, 47.8758, 30.9461, 51.5667, 41.8186, 43.35, -34.5106, 37.5019, 54.1667, 34.5431, 44.7511, 37.4747, 44.1, 53.933, 16.5, 48.7272, 51.9108, -42.025, 63.24, 61.39, 54.1817, 51.9, 57.2, 47.25, 33.38, 33.3075, 33.4, 36.6389, 32.8556, 14.1717, 36.65, 53.1303, -10.733, 49.218, 51.8067, 49.3856, -67.567, 46.4808, -38.12, 48.4714, 51.9606, 51.8917, -32.0069, 48.1819, -12.5, 39.0333, 37.6178, 46.4414, 46.3256, 64.6847, 41.4272, 43.7639, 37.2597, 43.85, 48.25, 48.2167, 66.5789, 66.4981, 39.3419, 69.0833, 39.4286, 36.3464, -30.4829, 35.945, 38.7153, 25.3867, 45.7189, 51.5, 39.0, 40.2022, 40.1731, 42.2231, 31.7611, 44.4, 50.833, 48.2783, 48.8542, 48.3542, 57.783, 54.095, 27.783, 33.3678, 24.02, 57.9, 44.4947, 43.95, -23.5293, -17.917, 33.583, 39.033, 60.3667, 49.6478, 36.2333, -14.47, 43.8053, 39.6042, 42.7547, 40.1347, 38.8611, 41.2944, 31.8092, 45.2667, 36.855, 34.4536, 35.2578, 34.51, 38.8711, 38.8761, 38.9617, 53.78, 23.417, 70.4003, 40.7022, 32.5344, 39.2764, 35.4286, -36.1047, 40.2506, 51.85, 43.6253, 38.8417, 52.817, 50.101, 58.1, 46.2986, 46.5333, 37.9136, 45.2172, 40.4661, 58.3831, 51.57, 40.9583, 55.49, 38.15, 50.1167, 48.6167, 49.2142, 29.8881, 31.2803, 43.9333, 43.9333, 45.2167, -10.5, 36.2, 45.8667, 48.9578, 72.0, 48.4661, 38.5556, 38.5069, 38.5667, 38.6667, 38.6956, 39.4172, 42.4194, 34.6847, 39.6375, 45.5333, 45.7, 48.9417, 47.25, 39.8958, 59.14, 32.815, 32.8547, 32.3, 33.267, 23.85, 46.3953, 41.4, 43.5097, 36.25, 43.4122, 43.5331, 46.8436, 58.3333, 47.3667, 37.0, 32.3167, 34.867, 36.2, 45.45, 60.317, 44.9, 43.9517, 34.1736, 34.3703, 45.726, 39.7675, 3.883, 45.8333, 38.5067, 45.8489, 50.0392, 47.315, 34.5172, 43.0114, 44.42, 45.3167, 28.3378, 16.051, 47.3164, 38.1642, 46.8667, 49.82, 47.3036, 15.1167, 23.067, 67.34, 35.55, 17.15, 57.667, 59.9, 10.451, 17.039, 40.9592, 40.9564, 59.91, 64.4942, 64.59, 48.7842, 56.683, 34.051, 66.5294, 36.3561, 37.6331, 38.6453, 37.6344, 43.7447, 44.905, 61.09, 38.9594, 36.6594, 36.6636, 38.9139, 40.51, 38.8, 42.1611, 42.1236, 35.6836, 38.365, 39.4247, 43.3544, 43.9256, 35.6967, 38.3406, 66.8208, 66.8331, 67.1622, 67.215, 67.7475, 35.4572, 31.567, 50.6833, 50.7, -32.9869, 44.9333, 45.15, 45.1875, 48.6667, 66.8125, 29.1, 60.3733, 60.4631, 60.3239, -24.85, 50.9667, 66.8483, 37.6511, 25.367, 25.45, -31.433, -24.033, 48.8833, 36.8894, 43.6, 44.0444, 40.7781, 40.7708, 29.5622, 42.5167, 33.9978, -13.017, 47.8, 45.4, 23.317, 53.25, 39.5667, 57.35, -14.279, 36.4528, 46.5331, 41.817, 37.7, 41.283, -22.7433, 31.0619, 13.333, -71.7, -2.083, 35.247, 43.1792, 30.23, 38.1917, 21.933, 5.9, 61.7881, 61.8292, 41.52, 34.7436, 50.3531, 35.2239, 30.1414, 32.9744, 45.6833, 49.1, 30.4528, 34.1419, 65.9606, 50.7, 48.2942, 53.25, 53.25, 53.25, 37.5442, 46.1136, 41.1167, 41.45, 43.4194, 55.2831, 38.9817, -24.7298, 40.4633, 46.7953, 34.6119, 34.6111, 47.5775, 46.5456, 41.4667, 34.2878, 55.3472, 28.8147, 43.4569, 35.5347, 35.7047, 63.967, -5.85, 38.25, 29.4, 35.594, -31.37, 49.5033, 37.094, -33.68, 26.97, -30.83, 43.4644, 43.4917, 43.4292, 39.9578, -2.433, -13.72, -13.762, 13.967, 33.7442, 33.68, 26.0839, 34.4167, 34.4142, 33.4833, 34.4258, -17.8, 36.9906, 33.9958, 4.6, 4.6, 35.7667, 35.6194, 35.6169, 34.1208, 35.6008, 34.95, 36.971, 39.817, -21.96, 34.8994, 37.8225, 34.0158, 34.0075, 36.3478, 31.7625, 34.9358, 38.4381, 26.2656, -36.567, 38.4786, 14.7833, 33.9778, 33.5286, 38.5039, 31.8728, -33.5, 45.5458, -27.767, 42.8878, 7.069, 44.4333, 44.4356, -21.53, 18.433, 34.635, 18.217, 12.6, 12.583, 31.3711, 31.3706, 29.5253, 7.841, 29.5442, 29.3833, -40.783, 29.4508, 29.3389, 31.5069, 28.8647, -14.87, -14.867, 33.3717, -41.151, 33.1819, -0.917, 7.8, 32.5722, 32.7336, 32.8667, 32.8158, 32.7672, 32.7167, -24.667, 7.68, 7.9, 37.7706, 37.6197, 37.7281, 34.1061, -14.967, -16.367, 33.7869, -16.267, -13.067, 35.1086, -17.833, -31.571, -31.5, -26.667, 9.917, -49.307, 45.035, -33.273, 0.862, 37.1822, 35.2372, 35.3056, 22.2075, 29.8833, -33.083, -16.333, 32.685, 33.25, 33.0956, -24.067, 4.747, -34.588, 37.9983, -13.3, 31.2842, 13.7, 43.3075, 43.3606, 32.2714, -22.017, -6.6333, -0.133, -6.75, -23.217, -13.43, -22.1, -2.533, -28.4, -18.7, -23.5, -23.617, -23.433, -21.483, -20.91, -15.81, 16.9, 31.3972, 43.067, 58.367, 36.5331, 43.8667, 43.82, 44.3853, 54.133, 64.28, 56.47, 27.4014, 43.0333, 51.5667, 43.0078, 34.3961, 32.05, 9.15, 9.3, 58.7605, 27.2169, 38.517, -1.833, 61.71, 43.0, 43.0, 59.2856, 50.8167, 51.479, 31.4831, 31.6908, 33.167, 52.1667, 52.1667, 52.15, 71.97, 4.95, 4.95, 47.3667, 58.4356, 58.44, 67.5, 24.567, 12.683, 48.7833, 48.7833, 48.7833, 45.9481, 47.717, -31.7, 30.6264, 59.6483, 34.425, 43.375, 43.2619, 46.4867, 46.5333, 46.4833, 46.4794, -7.983, 34.6647, 47.4536, 46.4667, 39.51, 35.1525, 32.13, 32.1, 16.55, 65.75, 7.98, 8.032, 57.7667, 39.6361, 57.83, 61.9458, 61.8406, 33.3622, 33.2106, 67.2853, 41.3003, 41.3011, 45.3667, 64.97, 46.4858, 19.233, -41.4639, 53.3, 45.7728, 49.9203, 47.9608, 54.8, 54.8, 54.8, 48.2003, -12.6167, 51.7667, 52.3156, 50.567, 54.5289, 50.7294, 47.33, 50.65, 45.0, 50.3, 47.2, 21.495, 21.4994, 39.0167, 52.38, 41.1383, 50.4939, 43.8, 50.3, 48.7778, 49.3289, 47.5778, 50.6456, 48.3667, -79.9, 53.6442, 14.633, 39.2453, 48.8306, 39.7858, 39.6842, -32.0335, -32.0632, -37.871, 41.1117, 37.65, 40.4831, 46.5, 41.8644, 41.8706, 34.6736, 34.6942, 33.6228, -41.1708, 36.7458, 41.8167, -43.0425, 52.3667, 38.4747, 39.4872, 48.1, 35.4661, 35.2683, 45.9869, 47.5303, 47.6872, 47.4444, 19.1336, 27.02, 27.1525, 45.1833, 49.45, 47.271, 39.1836, 38.7042, 38.6753, 37.1317, 52.7833, 40.8592, 42.5333, 34.8956, 48.4958, 23.593, 52.9, 39.3167, 47.1828, 47.2142, 51.9056, 64.0, 63.767, 46.4331, 13.4, 40.9478, 40.9478, 39.295, 36.1903, 62.9367, 45.5167, 62.9167, 50.433, 66.25, 46.6722, 66.6033, 45.51, 42.4075, 59.4433, 47.867, 35.3322, 40.7831, 40.8206, 40.3589, 31.91, 32.4111, 32.4567, 32.335, 35.1647, -6.967, 50.4167, 52.183, 50.867, 32.7131, 35.2317, 50.35, 54.1, 50.933, 35.591, 34.6314, 42.317, 38.267, 44.1383, 46.2403, -10.467, 69.2347, 13.55, 54.817, 16.667, 36.0, 12.534, -2.6, 37.567, -1.268, 50.2167, 50.2167, 50.2167, 48.085, 49.567, -6.117, 54.633, 55.533, -15.883, -6.46, 53.9, 59.6, -11.63, 32.28, -1.867, 40.9586, 43.3981, -19.467, 36.178, 40.567, 42.6833, -24.1542, 41.7, 65.9383, 49.9167, 56.35, 60.38, 50.68, 35.9297, 39.35, 37.4167, 46.0, 53.7667, 40.8997, 60.3539, 60.1883, 60.1283, 42.6003, 70.167, -4.667, 38.9822, 34.72, 41.8431, 43.533, 38.433, 36.5672, 56.08, 43.73, 35.4867, 32.7997, 28.284, 34.346, 32.297, 39.567, 36.4167, 22.25, 39.1614, 41.217, 23.133, 33.9283, 35.215, 21.73, 31.4, 31.167, 46.5667, 45.217, -34.5683, 52.702, 23.4, 44.4, 22.783, 24.667, 27.33, 27.23, 55.367, 25.333, 37.5, -25.8925, 38.8961, 39.3983, 17.467, 40.7142, 37.135, 44.7631, 52.798, 46.5667, 35.3647, 40.0328, 48.65, 45.6167, 39.5719, 44.6333, 43.1211, 43.7694, 45.9667, 46.1833, 37.715, 43.2167, 30.6886, 53.381, -41.3886, 39.6828, 48.5042, 39.4078, 39.5781, 39.5283, 35.4922, 35.3253, 36.1661, 43.1808, 60.72, 44.5478, 44.5, 47.2381, 40.7672, 45.4511, 30.73, 29.6, 62.1, 41.733, 22.55, -37.9075, 50.17, 68.8167, -36.4289, 45.4333, 42.6772, 45.5325, 42.7, 43.6303, 34.3019, 44.7694, 44.8406, 44.76, 48.3833, 33.7033, 46.95, 33.77, 46.4658, 38.033, 51.867, 35.155, 25.6, 32.717, 31.1, 24.817, 33.95, 68.95, 38.75, 33.45, 40.0589, 29.2, 41.7358, 32.5, 37.133, 29.533, 42.3703, 40.8217, 43.217, 34.983, 42.1, 38.5528, 33.6472, 50.45, 17.667, 38.8, 47.5319, 53.3333, 50.833, 44.9667, 42.9383, 43.2372, 45.3767, 45.4, 34.2639, 42.0181, 32.4506, 32.5, 32.4267, 32.5428, 32.3919, 32.4514, 42.317, 32.5, 40.3944, 55.9331, 51.4167, -3.68, 45.8, 43.4047, 1.6, 1.55, 2.262, 2.3, 39.9811, 35.18, 35.2, 33.068, 47.7283, 40.7361, 40.2706, 41.2294, 41.1014, 62.38, 52.25, 50.8544, 39.5833, 33.4, 31.5553, 48.0728, 47.5783, 32.9167, 38.6319, 43.0019, 37.4, 41.3328, 68.7553, 64.6833, 63.0081, 37.917, 57.25, 11.35, 36.8775, 24.82, 35.7606, 36.3697, 62.76, 33.5636, 37.7617, 34.4722, 37.8089, 45.0058, 48.0667, 42.8589, 43.0022, 32.6333, 42.95, 50.55, 33.3667, 44.8728, 35.97, 40.6008, 43.1244, 42.75, -25.24, 51.983, 22.767, 44.7, 45.0167, 50.0017, 54.4167, 58.78, 11.12, 10.603, 48.9981, 55.54, 41.075, 27.95, 1.35, 38.5, 37.5014, 42.033, 28.0353, 40.1, 46.9167, 46.2167, 42.3964, 42.3914, 43.0558, 43.5878, 43.7347, 50.1333, 50.1167, 42.8931, 43.183, -81.65, 58.8875, 31.2, 66.9167, 45.6656, 45.6689, 44.2842, 49.4833, 4.217, 57.0575, 57.0481, 20.133, 39.75, 39.75, 29.2, 29.2, 43.2667, -8.35, 57.733, 63.1883, 59.4547, 59.4556, 46.25, 45.6228, 58.4, 56.84, 53.1467, 64.62, 60.11, 69.3777, 59.1831, 36.933, 60.4839, 55.49, 44.9436, 65.2019, 47.6833, 41.97, 42.017, 58.39, 54.0, 56.65, 68.1503, -24.983, 45.3367, 57.317, 61.9772, 37.0875, 37.3133, 38.9, 50.2917, 41.8586, 45.6333, 59.9081, 55.3, 55.3, 55.3, 52.97, 53.45, 71.0839, 48.65, 30.265, 30.3433, 44.4625, 42.0167, 43.3339, 41.0558, 42.67, 46.3, 52.35, 42.5667, 37.9833, 53.0, 53.03, 46.5, 44.3667, 48.62, 37.5339, 43.7167, 54.8333, 54.8167, 35.5164, 37.1644, 40.7833, 39.6633, -40.8347, 30.0067, 35.9419, 38.8822, 46.4394, 39.7772, 34.1158, 38.7839, 54.2833, 54.75, 35.9106, 40.5453, 44.1333, 45.0997, 44.1333, 58.1422, 42.4667, 50.7333, 40.55, 34.5081, 49.0667, 38.3989, 62.0303, 35.3333, -33.7676, 38.2364, 35.455, 43.95, 32.71, 16.75, 54.3, -3.7, 34.0828, 34.3558, 67.3678, 67.8206, 68.0839, 39.425, 39.56, 42.6514, 45.7289, 35.2803, 59.75, 61.27, 59.19, 43.2078, -6.126, 52.1256, 42.695, 52.27, 61.1581, 61.5644, 33.23, 31.883, 24.467, 51.0606, 67.9, 38.25, 8.98, 58.8842, 50.1167, -13.85, 40.9258, 43.4833, 60.4194, 49.2, 56.2, 32.4033, 51.63, 46.3575, 53.0, 45.7831, 23.633, 38.2456, 37.1167, 37.0556, 30.3367, 40.6239, 41.39, 42.95, 51.3531, 67.0167, -10.667, 7.2, 32.65, 47.05, 47.05, 45.3242, 52.3167, 38.2994, 30.5831, 37.9672, 38.3167, 21.333, 47.6833, 49.7667, 46.0333, 41.775, 69.7889, -23.48, 52.4, -0.933, 65.54, 61.7167, 57.917, 36.77, 51.15, 53.1, 52.53, 46.533, 63.65, 43.58, 64.1108, 23.767, 35.4831, 35.5333, 36.283, 36.712, 46.2333, -0.73, 56.3333, -31.2319, -31.2353, 30.5403, 33.9947, 38.7506, 26.47, 41.7072, 44.6392, 36.6953, 41.3333, 37.9667, 45.45, 45.5906, 40.6764, 42.4014, 44.6264, -17.6053, 19.0825, 38.8983, 44.0725, 42.9011, 39.8583, 42.7667, 26.2, 26.0814, 42.5667, 42.4667, 38.4239, 47.5619, -30.9225, 55.08, 49.0, 37.5122, 40.0797, 60.38, 33.9153, 39.5558, 43.9364, 34.9078, 38.1167, 44.9083, 35.9067, 49.75, 49.75, 54.417, 36.3894, 44.5139, 38.8008, 39.2836, 44.3606, 43.1653, 35.5419, 46.1833, 43.1644, 38.6553, 40.2472, 46.4578, 57.57, 53.3667, 43.4231, 46.2667, 55.7, 43.5167, 47.6667, 47.4175, 47.6831, 47.6217, 47.6811, 52.1833, 51.8167, 45.8236, 49.0167, 38.6667, -29.667, 41.8161, 36.3628, 34.1311, 37.2353, 44.2469, 39.8361, 39.8447, 37.2833, 36.4711, 43.3436, 39.9667, -24.123, 40.5711, 42.8222, -33.7065, 35.6764, 42.5333, 40.5931, 37.5625, 38.0406, 40.4403, 35.9325, 46.1833, 37.7, 33.4792, 46.7833, 49.7833, 49.9, 43.4869, 44.7667, 32.9083, 47.1833, 42.0667, 35.37, 39.1833, 67.45, 62.45, 55.87, 55.43, 59.2, 44.9667, 52.2331, 34.083, 37.2714, 41.9983, 30.9172, 38.1669, 41.5178, 48.9167, 59.95, 46.0556, 32.9403, 41.1247, 39.4833, 47.2767, 47.2833, 51.2333, 43.9822, 47.1547, 46.4167, 42.6333, 44.2206, 44.9589, 35.1767, 48.4564, 44.1692, 44.1708, 44.9528, -28.6617, 37.8603, 42.0414, 34.1667, 41.4581, 58.0, -11.01, 56.5, 29.9381, 44.2667, 46.5, 47.8664, 39.0858, 35.81, 40.7933, 32.2822, 33.4692, 81.6, 38.1692, 58.9569, 50.1833, 52.8967, 45.05, 59.3, -37.068, 44.7892, 44.75, 28.4631, 39.6253, 40.4883, 36.6736, 46.8947, 40.9167, 73.7667, 47.688, 39.9714, 48.3508, 54.2503, 64.0225, 65.09, 38.2692, -35.2795, 32.2314, 48.5333, 48.5667, 75.42, 38.2144, 40.6278, 31.8347, 31.2569, 38.9764, 53.5994, 52.35, 40.3764, 41.4039, 46.5136, 47.7333, 44.5114, 46.5131, 55.9333, 50.6, 45.4333, 46.5833, 46.85, 46.2, 46.8167, 45.1667, 46.7833, 45.5, 46.4167, 46.7333, 45.6167, 45.2167, 48.4, 45.65, 43.8667, 51.6692, 48.62, 31.0372, 45.0456, 36.1175, 36.1181, 36.1347, 40.2333, 36.1208, 48.5394, 36.1625, 46.8536, 41.75, 44.87, 59.35, 59.34, 59.3533, 42.3997, 37.6967, 37.9994, 37.8892, 59.2333, 68.58, 33.4311, 39.0044, 61.0008, 61.6467, 39.3669, 41.5, 36.9742, 39.5861, 50.1167, 59.25, 67.5, 63.6, 64.95, 63.32, 63.28, 63.3028, 39.5625, 42.6469, 58.33, 58.2, 65.7, 41.795, 44.5767, 48.6667, 42.9108, 36.6019, 59.95, 51.103, -42.155, 48.55, 36.4414, 43.3667, -35.2836, -36.8472, 50.4, -42.7681, 51.0333, 42.9833, 39.3047, 48.8283, 42.1, 40.1833, 42.1894, 39.5631, 33.5406, -32.7963, 42.0256, 46.7153, 58.083, 61.7, 35.8683, 46.9167, 58.93, 59.1513, 39.4344, 49.217, 41.0125, 61.9157, 27.1897, 36.6364, 47.0, 52.3667, 37.4833, 44.8797, 55.54, 48.6833, 48.7703, 34.4744, 48.8292, -33.517, 65.0733, 46.7167, 44.8592, 45.2833, 46.5333, 49.45, 45.6667, 48.5667, 45.1333, 45.1167, 51.3833, 44.07, 29.8858, 45.0833, -16.45, 46.4833, 45.6667, 38.6856, 38.9286, 46.35, 38.8147, 45.5433, 46.2833, 46.05, 45.4117, -20.887, 48.63, 46.3167, 46.0667, 46.1, 46.4833, 47.4331, 37.1069, 46.15, -28.0489, 56.6, 45.9156, 45.8833, -15.933, -41.3381, 45.9833, 45.5667, 45.8489, 38.1417, 45.95, 45.6911, 43.9903, 48.8833, 45.8, 47.0933, 47.6167, 47.5667, 34.5183, 31.9497, 39.7736, 46.0833, 5.5, -22.3472, 46.9167, 43.0333, -22.3458, 47.15, 47.15, 38.7525, 38.6292, 38.6572, 38.6333, 45.75, 45.2, 44.7, 48.4089, 30.1333, 30.0858, 48.7383, 48.7411, 48.7375, 46.6833, 46.5333, 45.7333, 57.1575, 54.0167, 44.9319, 57.1553, 47.2333, 44.3222, 46.45, 27.7628, 59.9667, 27.7628, 27.9106, 38.7556, 54.333, 46.763, 46.25, -21.333, 48.183, 48.183, 48.6167, 46.2167, 47.3108, 45.7667, 46.3333, 45.2167, 45.9333, 42.7667, 46.1667, 35.3028, 37.4414, 52.95, 44.7167, 46.6333, 46.6333, 36.7297, 40.0181, 43.6728, 39.2494, 40.9167, 68.62, 54.1, 56.5, 44.383, 32.917, 63.8467, 42.4, 45.9111, 45.8478, 63.85, 45.1667, 32.76, 39.5608, 42.9675, 38.2339, 34.5658, 33.1481, 3.131, 5.524, 6.167, -2.898, 0.461, -1.638, 30.0175, -8.489, 59.883, 55.233, 49.5667, 46.4333, 46.4333, 37.1397, 38.22, 34.4547, 33.0367, 42.9592, 42.7, 45.3036, 43.45, 42.2322, 39.7167, 34.6033, 34.333, 33.9364, 33.9667, 50.85, 50.88, 48.8869, 44.4122, 44.5169, 43.0908, 51.7833, 62.5244, 62.43, 44.9031, 62.675, 59.86, 46.3236, 38.4231, 34.0028, 33.9733, 43.8933, 47.55, 35.3694, 34.1953, 44.0761, 62.15, 49.433, 7.362, 47.4775, 69.5881, 69.5794, 60.4, 64.9025, 64.9305, -0.151, 46.7, 47.1928, 40.0314, 14.467, 40.45, 22.533, 63.6, -7.217, -7.38, -7.217, -27.159, 21.2, 9.117, 61.25, 9.8, 14.883, 44.9958, 41.1042, 46.1, -7.83, 40.4167, 0.064, 55.2833, 41.2214, 41.2003, 62.78, 39.9508, 38.3772, 44.6122, 45.0667, 61.7139, 44.665, 52.8361, 38.6611, 42.8, 50.1, 36.05, 54.1333, 78.25, 59.83, 77.8831, 62.0192, 62.05, 59.4442, 45.35, 55.1, 43.617, 44.8, 62.3292, 51.45, 68.2453, 49.735, 68.15, 48.6, 50.6139, -31.9558, 32.7333, -42.1236, 60.7278, 43.2436, -35.3766, -40.7292, 42.1836, 47.9161, 52.1167, 43.4372, 43.4022, 43.6167, -17.1142, 38.9664, 43.3333, 46.15, 47.8833, 50.3, 50.3, 50.2667, -3.442, 41.7644, 46.1667, -33.9465, 46.1667, -33.8414, -33.8607, -33.8521, -34.0, 61.6667, 33.2053, 63.04, 24.9, 44.4833, 44.4667, 60.35, -69.0, 40.6661, 37.9928, 43.1111, 40.817, 61.3, 53.183, 53.4, 46.25, 46.9167, 47.1667, 47.2667, 46.4667, 46.0833, -28.283, 46.75, 36.95, 33.6, 35.0197, 40.2353, 6.58, -5.083, 4.42, 38.08, 28.365, -28.7551, 46.73, 11.3, -18.0, 32.7225, 47.2472, 47.15, 47.2675, 38.3422, 34.283, 58.7167, 37.68, 36.3, 62.2333, 35.1503, -14.3333, 47.2, 9.664, -12.4, -12.3, -17.55, 39.1678, 39.1667, 33.1714, 14.9, 46.6014, 25.033, 21.483, 46.4, 49.05, 61.3044, 22.15, 65.5831, 65.5739, 37.783, 36.25, 56.07, 60.68, 35.5, 55.95, 16.883, 37.1, 34.317, -14.483, 36.15, 60.95, 61.0267, 4.896, 56.38, 8.85, 42.517, 32.6875, 33.4781, 62.32, 33.4164, 33.5722, 33.4411, 30.3975, 30.3961, 38.435, 38.4331, 59.3831, 32.3994, 34.9058, 32.35, 36.0381, 59.77, 69.55, 9.557, 22.8, 46.9589, 13.767, 52.7331, -24.8819, 41.7331, 27.7053, 27.9619, 61.4656, 61.4667, 61.4867, 61.5175, 22.2, 22.0, 43.8583, -31.0742, -6.1, 65.1667, 65.1744, 34.2069, -19.634, -37.237, 30.733, 52.5458, 35.7297, 35.78, 39.67, 55.383, -2.8, 2.85, -19.455, 62.4503, 50.6394, 10.82, -25.033, 36.3906, 14.917, 35.4478, 56.9, -34.4048, -6.5, -8.16, 1.35, 42.85, -44.517, 35.8847, -30.7051, -31.8896, 3.2, 67.91, 33.3722, 49.567, 36.0153, -21.55, 64.92, 65.72, -25.6408, 28.1522, -42.3003, 58.3, 58.25, 57.2, 41.27, 65.5997, -43.2397, 52.8, 45.6833, 55.2, 36.05, 34.983, 51.6667, 33.2422, -36.4378, -6.0, -23.017, -27.55, 41.8756, 59.583, 4.313, 4.3, 14.0333, 35.9225, 38.0014, 30.5844, 46.9989, 42.7, 41.2333, 45.0333, 38.8183, 38.9078, 45.1017, 25.8, 36.465, 39.0, 67.47, 41.68, 41.75, -2.92, -21.255, 44.9044, 35.42, 42.0028, 40.3544, 37.383, 36.9233, -3.3667, -6.85, 60.47, 60.167, 50.9789, 14.05, 35.1011, 35.683, 23.779, 41.7767, 41.7636, 40.983, 41.933, 37.2, -21.7125, 48.85, 63.44, 35.3675, 37.9492, 37.9531, -5.3, 49.198, 34.4806, -0.485, 49.15, 54.633, -34.4292, 28.95, 33.4258, 41.7833, -38.75, 28.4775, 28.0475, 36.5, 25.117, -13.536, -26.841, -9.15, -45.594, -19.6423, 36.325, 43.8111, 44.0647, -29.0479, 25.6097, -17.85, 44.7833, 45.9347, 25.35, 21.419, 21.52, -5.05, -22.41, 69.2, 29.3486, 29.4744, 37.2294, 42.467, 42.0, 45.0, 49.533, 54.4667, 54.5, 39.4467, 48.55, 32.71, -33.6908, 39.45, 39.4519, 39.4708, -22.4518, 46.7939, 29.91, 47.07, 40.3494, 60.1667, 60.1667, 20.2, 40.85, 50.7, 53.7625, 58.65, 35.58, 57.517, -26.3911, 33.4367, 33.3739, 33.4536, -28.8544, 41.8017, 26.617, 45.0331, 46.533, 17.383, 35.55, -24.4935, 19.75, -27.9867, 40.6167, 15.3167, 19.1167, 43.1833, 44.2814, 46.7994, -84.6, 43.6483, 43.7231, 43.7536, 40.5, 46.1, 46.05, -21.4606, 39.3528, 45.6069, 45.6194, -21.8125, 53.9667, 53.9667, 43.2644, 29.7547, 48.1331, 8.467, 8.483, 49.483, 32.9028, 31.9172, 31.8814, 30.9139, 39.8644, 29.4822, 55.8, 47.5806, 47.5933, 35.7636, 55.75, 73.2333, 35.3, 48.2211, 53.2167, 32.9206, 54.925, -36.4917, -36.5031, 44.15, 51.7667, 45.1219, 41.93, 36.465, 33.3144, 76.5167, 44.3667, 17.666, 48.5167, 48.3667, 48.4167, 48.3667, 56.7, 39.1, 41.883, 48.31, -29.4448, -29.4345, -35.4408, 18.567, 18.57, 36.7664, 41.1167, 31.4461, 45.85, 59.7, 40.633, 71.58, 28.4114, 14.22, 45.4539, 45.4294, 45.4569, 42.8667, 58.867, 45.1569, -15.6614, 44.0333, 45.4283, 41.6294, 29.237, 43.8833, 45.7667, 48.5667, 48.55, 48.5667, 43.2433, 50.7, 40.4447, 40.4333, -14.5229, 27.7, -9.133, 28.63, 56.54, 47.3167, 48.3989, 41.8975, 41.4792, 38.125, 41.7797, 44.6667, 42.0283, 40.2233, 41.3331, 41.415, 56.499, 54.5, 49.8589, 10.767, 34.3325, 24.293, 55.75, 28.6242, 28.6158, 41.63, 41.6267, 48.6, 46.35, 36.72, -2.225, 65.826, 56.533, 55.867, -18.117, 18.4356, 45.2333, 58.15, 32.1, 34.5786, 34.765, -35.817, 53.55, 49.0833, 5.3264, 55.233, 43.75, 62.235, 63.8208, 63.3336, 40.3, 43.2333, 43.275, 43.2397, 42.833, 56.28, 34.067, 35.683, 62.9572, 36.4667, 39.8844, 42.0356, 41.5886, 41.5631, 43.7, 1.017, 63.98, 47.7, 19.283, 53.4333, 42.617, 16.717, 31.7119, 58.95, 55.117, 63.95, 56.5, 39.95, 57.5, 37.8167, -22.6967, 26.17, 45.967, 43.6, 51.2, 33.4203, 38.0511, 61.6511, 41.9, 40.5353, -25.9714, 52.47, -27.5425, 38.6944, 39.0722, 38.9503, 39.0725, 54.8167, 46.1, 45.4353, 35.2667, 45.033, 31.4028, 65.8881, 43.8667, 43.6667, 37.7417, 43.6833, 43.7833, 56.48, 59.1842, 62.49, 33.8017, 40.4833, 21.5167, 25.568, 35.7992, -29.35, 37.9769, 38.3028, 42.4881, 42.0647, 60.14, 62.017, 70.2456, 40.8206, 53.05, 58.3831, 56.9494, 48.733, 48.7, -23.1, 35.483, 59.97, 27.838, 46.1167, 33.12, 43.1, 47.5, 57.64, 41.7511, 40.5333, 47.7817, 44.9167, 48.3706, 46.3308, 35.6031, 42.7, -19.2483, 30.7931, 43.9333, 43.4719, 36.717, 33.92, 12.5, 41.0, 45.6167, 44.2394, 37.6819, 37.7967, 45.81, 33.2667, 42.3161, 68.75, 55.8331, 7.517, -31.9861, 36.3919, 37.911, 40.0, 48.7667, 44.7408, 44.7608, 50.3, 38.2667, 49.0, -33.217, -43.2, 43.9994, 40.0825, 41.9153, 44.1167, 40.1739, 43.2761, 40.2769, 44.1167, -21.84, -38.387, 36.6511, 40.6833, 42.8286, 38.175, 54.0681, 38.655, 38.4661, 45.9469, 49.7517, 49.7492, 45.65, 36.9111, 37.35, 37.1786, 37.1503, 37.2622, 14.767, 40.7864, 43.6333, 40.7264, 54.3, 42.7667, 34.45, 37.53, 42.8125, 32.67, -29.86, -7.85, 8.5, 54.6167, 49.45, 62.7, 46.35, 54.0994, 53.5833, -72.017, 69.6539, 69.6767, 35.7636, 63.4106, 63.45, 48.0317, 47.2842, 47.2333, -13.7542, 45.5533, 40.7333, 44.1111, 47.8669, 60.4333, 46.1989, 31.8075, 48.4806, 75.952, 48.7167, 31.79, 39.8283, 42.75, 48.4667, 31.8606, 57.6, 52.6, 39.3, -8.1, 18.3283, 38.2597, -14.09, 33.7569, 33.1353, 33.2367, 35.7825, 35.2058, 61.2944, 59.9844, 47.45, 44.417, 34.733, 35.65, 35.067, -14.819, -18.975, -5.683, 44.1, -23.35, 60.9333, 32.2394, 32.2542, 32.2817, 32.1314, 32.2581, 32.2292, 35.2006, 35.1822, -3.786, -35.4184, 17.638, 53.9, 69.4333, 69.4333, 69.2, 54.233, 20.083, 33.0719, 45.1831, 41.96, 39.35, 34.5475, 50.45, 35.3453, 53.6667, 59.1789, 42.6394, 36.1994, 36.0394, 54.6, 31.5678, 44.0494, -35.778, 7.3, 7.3, 49.65, 53.533, 34.7281, 36.83, 51.73, -42.4544, 34.217, 34.265, 34.2622, 44.2308, 45.0708, 64.2667, 31.693, 49.151, 63.117, 49.63, 58.817, 45.217, 58.0994, 45.22, 49.117, 43.27, 34.3956, 40.05, 60.4542, 60.45, 60.5153, 37.5006, 34.6831, 44.2822, 48.9992, 52.267, 42.933, 36.8136, 47.5214, 45.05, 65.7831, 35.99, 33.2119, 33.2119, 41.3144, 39.7947, 50.377, 34.6147, 35.04, 64.2, 47.3014, 39.2475, 20.95, 34.7706, 44.55, 59.0269, 56.883, 36.5819, -26.467, 46.15, 52.2731, 34.1281, 49.6833, 45.5472, 42.6906, 42.5458, 42.5808, 42.4819, 46.15, 39.0936, 51.3356, 34.9881, 47.0258, 47.1253, 53.6333, 44.15, 44.1431, 64.8656, 37.6364, 39.3136, 32.3067, 31.08, 32.3542, 55.183, 42.9919, 30.0667, 57.15, 71.917, 44.5, 55.467, -0.08, -19.73, -18.883, 47.7719, 15.25, 15.25, 50.8, 38.083, 58.73, 46.1667, 48.95, 24.617, 17.3833, 44.2667, 17.383, 54.5, -16.133, 53.75, 60.72, 52.9428, 34.767, 54.7167, 54.1667, 54.1667, 49.07, 60.5, 35.8889, 63.55, 49.0667, -33.7, -5.067, 55.8, 43.783, 65.2, 39.1467, 45.1328, 39.1258, 47.917, 49.8, 47.9, 51.8331, 36.98, 51.35, 48.933, 45.517, 47.75, 49.2, 64.3331, -35.3635, 57.11, 60.3185, 37.483, 48.383, 57.77, 35.55, 59.81, 70.7667, 37.6, 61.6, 54.317, 37.5983, 48.77, 45.9167, 66.67, 63.83, 63.79, 52.167, -16.36, 63.8833, 47.317, 47.455, 40.7219, 56.04, 39.915, 40.475, 37.5436, 34.6053, 36.3925, 45.2081, 42.6903, 35.2247, 32.0142, 43.7917, 34.3725, 40.0333, 64.8569, 53.5167, -27.5436, 44.9847, -72.2, -74.8, -75.867, -67.017, 52.8514, 56.65, 32.442, 72.7831, 48.6147, -28.45, 48.6525, 38.8519, 39.4678, 37.7167, 40.8333, 39.7136, 37.4833, 36.3481, 45.2333, 47.2833, 59.86, 59.9, 49.0333, 47.45, 44.0928, 42.167, 51.25, -21.6119, 59.5667, 59.5667, 38.3761, 39.9, 40.0839, 40.0986, 47.117, 41.567, 53.317, 52.75, 50.8, 49.4, 37.668, -29.783, 43.9, -28.51, 38.683, 29.4083, 31.717, -54.843, 73.0, 60.724, 38.7, 50.683, 49.98, 53.42, 66.8, 57.08, 57.717, 59.183, 56.217, 54.4, 50.28, 61.683, 60.3831, 66.45, 64.566, 56.58, 66.55, 58.88, 64.266, 65.4331, 51.633, 65.97, 58.5, 62.23, 52.65, 40.3603, 41.0497, 55.533, 37.6167, 35.36, 55.95, 59.3, 59.3078, 69.7556, 70.0814, 36.55, 17.617, 60.75, 5.2739, 33.233, 35.3667, 44.1, 53.717, 48.6331, 55.3, 34.0697, 33.8722, 64.5008, 63.0831, 63.1, 63.0417, 36.0167, 38.3775, -20.3, 58.55, 45.0483, 70.0653, 63.5, 59.7662, 39.6394, 39.6167, 69.93, 66.51, 61.1303, 30.7825, 43.9814, 39.4806, 39.489, 39.4867, 51.9394, 30.5908, 47.3389, 42.8753, 42.8783, 42.4839, 42.5711, 9.35, -8.41, 57.783, 48.3119, 44.2831, 52.1703, 59.133, 59.02, 41.65, 20.683, 41.7, 37.4833, 37.3806, 49.384, 46.3833, -18.467, 53.25, 45.2833, 55.1, 33.2372, 46.9558, 39.3033, 34.5686, 34.5653, 41.3197, 36.4303, 9.233, 60.1331, 35.8167, 30.4833, 30.4167, 41.4525, 63.6667, 50.2, 34.4456, 48.05, 48.05, -1.379, 47.432, 49.3667, 49.0667, 38.45, 60.3331, 45.6778, 49.3, 49.2, 49.2, 45.6208, 49.25, 38.9581, 39.3167, 34.7586, 45.1703, 54.0333, 58.36, 61.1725, 4.168, 60.3269, 60.2831, -17.233, 60.35, 41.6431, 47.1664, 38.4667, 31.0417, 34.2097, -28.367, 40.8494, 44.3667, 25.45, 57.11, 70.367, 70.3669, 45.7167, 45.45, 62.3081, 62.3217, 43.232, 65.8255, 52.25, 43.3656, 68.43, 59.59, 58.44, 57.79, 63.13, 50.05, 51.5833, 56.85, 56.93, 65.702, 35.2775, 60.0435, 53.5, 63.518, 56.35, 60.8, 46.8, 44.75, 43.083, 34.5289, 61.083, 48.0797, 47.317, 50.067, 61.6514, 27.1006, 45.5, 57.4, 20.9, 45.7667, 34.5539, 58.083, 55.817, 56.7, 64.22, 63.15, 48.2, 56.083, 54.22, 62.233, 67.5667, 58.9, 63.317, 53.87, 53.35, 42.7625, -65.25, 40.4386, 40.4422, 33.7392, 40.1056, 45.8653, 40.0989, 50.2167, 50.2667, 39.9333, 31.0167, 50.35, 34.1647, 45.3831, 27.6528, 27.6531, 38.4319, 38.0944, 62.9214, 52.283, 49.617, 62.983, 56.7667, 63.4, 47.067, 57.9, 37.3522, 46.1667, 38.1311, 32.385, -20.76, 50.7, 28.8608, 48.0333, 48.4167, 48.5333, 48.5167, 48.65, 48.3667, 9.967, 28.8439, 28.8614, -16.403, 28.8461, 48.45, 34.535, 34.5833, 45.9231, -35.5544, 47.88, 43.983, 65.8797, 38.4875, 38.9, 38.2017, 43.8, 17.9833, 63.8406, -37.7408, 17.555, 42.0828, 34.6522, 42.2392, 62.5617, 60.4183, 63.0817, 53.1833, 53.2833, 56.817, -22.018, 41.3167, 64.58, -12.694, 58.367, 63.7831, 46.6, 48.767, 44.2525, 17.983, -25.767, 23.7, -31.945, -29.9, -21.27, -33.73, 48.0458, 54.1333, 54.6331, 58.3831, 38.6786, 38.7386, 64.2, 43.15, 43.1833, 41.3931, 57.63, 18.737, 36.5469, 60.633, 49.2331, 39.8056, 42.1703, 53.15, -28.7, 13.576, 39.5061, 39.3128, 45.2925, 40.9656, 38.0833, 60.5269, 43.5594, 62.3275, 58.567, -17.645, 36.3278, 57.6667, 17.717, 58.09, 58.1, 33.2294, 55.167, 55.2, 42.43, 59.45, -20.317, 42.8506, -14.863, 42.8717, 67.68, -17.15, 56.2, 55.167, 43.05, 56.117, 43.8, 53.24, 51.4414, 46.3, 46.0, 52.017, 48.783, 51.6581, 53.167, 70.97, 50.833, 59.3167, 48.67, 67.483, 61.033, 51.7, 57.8458, 63.22, -78.45, -20.417, 60.467, 47.567, 42.4831, 43.2, 45.15, 66.7981, 60.72, 57.55, 61.0167, 10.083, 40.7917, 52.9333, 39.0747, 31.6003, 31.6189, 53.1658, 46.3939, 34.9603, 20.504, 21.82, 39.6914, 14.4, 51.9667, 51.9814, 54.6667, 65.8833, -35.1583, -33.3075, 43.0833, 43.34, 50.8125, 36.9953, 21.4806, 48.8289, 49.3, 47.961, 21.4517, 21.2717, 21.3356, 21.9592, 21.6369, -9.667, 70.6392, 52.8333, -8.641, 37.4, 37.483, 34.233, 39.0147, 42.2647, 36.9839, 19.2833, 45.417, 50.2608, 40.7442, 41.5514, 34.8992, 47.9167, 42.7392, -30.0372, 34.7544, -17.1347, 37.7433, 47.0744, 38.5653, 35.6647, 38.9111, 47.4753, 36.5956, 34.7314, 40.8433, -37.3807, 46.0947, 37.9406, 45.5722, 60.7986, 41.5519, 35.1722, 34.9281, -35.1201, 42.1608, 37.6303, 37.3822, 32.8847, 34.3603, 34.3997, 42.1506, 42.1847, -23.27, -22.983, 39.2142, -4.067, 45.2406, 41.6717, -29.7029, 44.1481, 41.0444, 41.4439, 45.1094, -32.6722, 34.3, -36.4206, 40.7908, 40.655, 32.067, 46.4353, 44.4736, 36.9231, 51.5, -26.1317, 39.1139, 49.4667, 39.1333, 39.1333, 53.517, 49.1167, -17.0156, 46.2667, 34.5958, 36.7, 36.0608, 32.6094, 32.6333, 38.4947, -34.9906, -43.0609, -36.2614, 41.8467, 38.7842, 53.5239, 33.4028, 38.835, 38.6811, 33.6044, 41.2019, -38.2867, 48.8947, -11.6502, 41.2633, 37.9881, 35.0128, 42.6856, 38.7744, 35.5392, -28.2061, 49.8167, 50.65, 35.5892, 45.61, 53.1333, 44.0708, 47.2844, 38.5417, 38.9053, 39.8089, 41.2825, 38.6489, 33.7264, 40.1789, 34.9819, 39.5353, 38.9408, 33.7806, 45.3581, 38.8483, 30.3236, 35.5553, 42.5739, 53.9167, 48.2064, 36.8581, 50.4978, 44.0697, 32.3778, -24.2914, 40.4256, 52.2531, 47.9333, 38.3664, 38.7003, 43.1878, 42.5544, 46.2689, 49.1333, 43.1742, 43.9761, 43.9922, 44.9047, 47.6497, 35.7742, 45.05, 44.5272, 31.6725, 34.1583, 47.8039, 47.6, 47.7803, 33.7836, 33.8967, 35.8578, 35.8417, 51.6667, 40.7928, 36.9358, 36.9308, 60.1167, 60.1167, 17.988, 52.127, 46.5103, 7.7, 45.4247, 27.5478, 43.0064, 43.2742, 44.3547, 34.1678, 44.9258, 31.5242, 41.5183, 30.2947, 39.1114, 39.2103, 42.0019, 37.4297, -17.3871, 48.0, 47.9667, 32.4281, 35.1667, 42.9728, 31.2514, 31.11, 31.25, 42.2361, 35.3042, 33.0725, 31.6772, 38.0803, 39.8986, 35.4867, 37.8133, 36.5758, 32.7483, 35.52, 35.5083, 6.95, 40.7367, 41.1667, 41.1092, 45.3331, 42.4686, 39.4031, 37.5833, 38.5358, -38.6357, 31.9514, 41.4789, 28.5175, 40.8639, 41.93, 49.6669, 49.2256, 36.767, 48.4, 50.4742, 50.7131, 49.383, 26.87, 64.315, -12.6778, 44.2456, 44.8475, 49.555, 49.017, 26.199, 48.3667, 28.1136, 38.6989, 43.0, 42.9667, 52.2058, 34.8422, 37.2778, 39.5447, -41.333, -32.5635, 41.1006, 43.7467, 41.7003, 44.2294, 42.1172, 42.1094, 48.85, 48.8794, 47.4289, 47.3978, 47.7042, 53.2153, 40.7206, 30.75, 51.583, 51.85, 40.4528, 26.1781, 44.9511, 35.7667, 44.0761, 48.8744, 41.0669, 38.1311, 51.2192, 41.3497, 54.5294, 46.3286, 43.9833, 40.1264, 43.9903, 42.0931, 42.1578, 40.8436, 48.9097, -37.7067, 39.5736, 39.0439, 44.6406, 41.2211, -41.75, 43.8881, 50.4667, 40.3067, 43.0175, 43.4106, 45.0667, 43.6878, 39.9708, 41.9144, 45.8181, 48.5003, 48.5106, 42.9108, 40.475, 37.9414, 35.1242, 35.135, 37.0683, 26.6847, 34.6428, 36.7425, 36.8781, 32.8789, 41.3906, 41.845, 37.5658, 44.1925, -17.8964, 41.9442, 39.2911, 49.35, -33.9382, 44.6617, 30.1192, -3.584, 49.65, 49.7, 18.4311, 42.2494, 62.2333, 42.1106, 45.8081, 41.8128, 39.775, 21.4833, 40.0567, 40.1764, 48.35, 40.6117, 37.2167, 44.6, 41.0, 50.1333, 50.1333, 34.5686, 47.4167, 54.4807, 54.1333, 44.3675, 48.4081, 46.7531, 43.5575, 45.8833, 60.7167, 60.7333, 60.7167, 60.7333, 38.7167, 33.8214, 37.1025, 64.1539, 39.9961, 34.4094, 34.3361, 42.8508, -30.8517, -30.8506, 39.3167, 44.5333, 39.4411, 35.1333, 36.4511, 43.7292, 42.6981, 45.05, 43.9806, 46.6333, 39.9667, 33.4561, 45.8619, 32.7822, 32.5564, 37.7889, 46.5344, 46.5436, 37.8511, 30.7044, 30.7167, 42.0681, 46.0436, 34.6333, 40.6194, 42.4356, 31.8611, 42.3417, 60.7764, 33.9839, 35.2897, -33.0539, 44.75, 46.9878, 43.5608, 15.65, 37.6544, 33.9786, 37.7461, 37.6167, 34.7325, 34.7744, 37.6553, 58.45, 45.2706, 33.9792, 43.6825, -7.967, 37.8333, 51.2167, 48.2331, 48.3, 48.117, 52.117, 30.8714, 52.5053, 34.7061, 47.7681, -31.5631, -31.5194, 33.75, 42.75, 48.6631, 30.5347, 40.2, 38.9031, 41.6358, 45.5231, 34.3717, 51.53, 53.5917, 41.3336, 44.3325, 34.6606, 32.2553, 35.2414, 41.665, 37.3017, -22.4703, 37.6731, 41.2433, 41.2486, 35.8528, 35.7553, 40.0375, 52.1833, -32.7932, 48.3333, -77.85, 41.7419, 48.1375, 48.1739, 38.0039, -16.288, 39.4194, 45.1078, -33.283, 39.5231, 48.6061, 42.8167, 53.3833, 40.3517, 40.35, 40.2, 40.4333, 45.7081, 61.7481, 44.3842, 32.7019, 30.1694, 39.4833, 34.3208, 34.1425, 34.2675, 39.6728, 39.7739, 37.1317, 45.4078, 46.0289, -39.1297, 35.6939, 42.0167, 38.9667, 47.1603, -26.5914, 51.9333, 41.0267, 34.6203, 39.1881, 39.635, 43.2828, 46.2381, 35.1803, 39.1833, 40.1714, -22.567, 47.9117, -77.7, 43.8575, -25.4228, 35.6575, 39.4458, 38.5331, 42.2833, 42.3, -34.8361, 42.2833, 43.5606, 50.0333, 33.9111, 37.2889, 38.5278, 37.1681, 43.9708, 32.0444, 47.5589, 31.78, 43.7639, 40.9386, 40.9017, 43.3686, 43.3906, 47.4306, 49.9167, 49.95, 49.8833, 34.3739, 32.1411, 32.0997, 39.0589, 33.4847, 44.0875, 35.855, 35.0281, 33.3497, 45.8833, 47.1333, 38.5253, 41.315, 33.9664, 28.0622, 48.4742, 34.9381, -22.3617, -22.3908, 43.9636, 43.6089, 44.3881, 44.3592, 45.6178, 67.4192, 36.9986, 45.8031, 45.7833, 36.9681, 46.2608, -34.0281, 33.1597, 51.883, -22.2425, 53.55, 53.1875, 51.55, 51.4478, 35.7217, 48.2958, 40.0417, 35.9478, 45.0667, 37.4833, 45.3131, 48.1, 48.3083, 48.4886, 48.0944, 47.45, -17.2122, 44.8, 36.445, 63.4903, -30.8917, 37.33, 39.183, -38.6078, 43.4978, 37.9906, 30.9592, 41.1644, 35.8375, 49.0333, 45.1569, 38.6828, 34.1819, 40.075, 41.525, 37.4286, 64.7803, 43.1333, 43.6303, 46.1667, 38.8969, 31.0931, 30.75, 36.4231, 47.45, -30.9672, 44.2, -19.4167, -31.1558, 41.9844, 40.7833, 40.8731, -33.617, 44.3747, 42.2706, 33.8167, 43.9658, 44.0108, 49.6056, 49.2189, 53.2775, 56.5333, 42.3869, 43.645, 56.4733, 40.0714, 47.7167, 46.5333, 49.5, 46.0667, 34.3617, 43.7472, 46.6803, 33.3039, 39.8333, 51.7317, 51.1, 35.22, -33.043, 33.4, 26.73, 30.6, 31.15, 50.033, 52.467, 35.5247, 49.7714, 37.2, 52.8053, 39.03, 47.6789, 23.483, 43.8, -33.9262, 47.25, -15.4872, -15.51, 35.2547, 51.7667, -40.9972, 51.7667, 36.9617, 44.2542, 36.1308, 30.95, -25.05, 39.6167, 24.483, 34.3, 49.2, 27.9, 19.32, 35.73, 29.25, 33.78, 43.95, 25.433, 37.07, 36.617, 36.03, 32.133, 22.35, 48.67, 16.833, 29.03, 44.583, 50.1, 24.95, 34.283, 29.98, 48.9514, 44.3192, -21.95, 36.1306, 50.217, 51.8, 46.5683, 30.383, 59.5119, 43.1447, 6.5, 44.483, 38.25, 34.167, -29.4333, 6.903, 40.1561, 36.5, 36.3783, 37.8, -34.6223, 35.48, 39.217, 21.867, 16.907, 42.867, 42.8783, 35.567, 36.6, 9.4833, 7.024, 57.417, 43.8333, 43.8333, -31.3865, -36.0294, -16.7, 30.667, -34.8313, 37.8786, 31.9, 31.905, 32.9028, -27.2842, 32.083, 58.82, 55.77, 15.117, 62.4667, 62.45, 44.9628, 45.545, 44.5264, 44.5444, 44.5922, 44.9767, 45.3128, 36.6036, 49.8167, 37.5206, 37.5594, 36.1542, 45.1672, 36.2, 32.6803, 24.144, 34.733, 51.0059, -23.1364, 40.2, 38.9992, 34.4031, 28.8, 30.7, 27.8, 47.72, 38.467, 40.667, 43.95, 36.18, 66.62, 66.5289, 64.05, 29.2739, 41.9131, 61.25, 51.4333, 51.45, 34.933, 35.433, 9.258, 9.2, 40.3383, 35.433, 24.467, -33.0287, 25.967, -31.8997, 51.2667, 41.2664, 40.9153, 39.9167, 34.9386, 39.9181, 44.5003, 27.033, 37.75, 37.7592, -32.683, 43.2683, 41.2544, 33.595, -34.2493, 40.5614, 43.9333, 28.833, 39.817, 41.7036, 62.18, 61.5717, 23.6, 28.47, 25.73, 38.75, 34.8775, 34.1294, 34.1233, -22.2562, 29.38, 59.77, 63.667, -25.1896, 38.233, 40.1236, 32.835, 32.65, 32.8356, 40.267, 35.05, -32.5707, 41.2897, 37.07, 33.0, 47.117, 39.83, 35.867, 31.2167, 22.783, 44.1, 32.9, 45.8167, 29.476, 47.4667, 41.55, 37.783, 49.3, 39.2753, 6.9, 53.5, 52.767, 20.0, 41.5167, 43.733, 39.9444, 36.774, -6.222, 32.15, 47.8, 41.6667, 41.6617, 56.3, 50.117, 44.8167, 54.7, 52.9681, 51.0539, 53.7, 43.87, 47.333, 47.2, 35.017, 51.833, -3.26, 51.2, 49.667, 51.617, 49.217, 40.78, 42.417, 38.93, 21.22, 27.33, 44.1667, 48.85, 54.38, 34.717, 47.8, 54.8, 66.7667, 27.45, 52.217, 65.2, 52.9, 31.35, 37.48, -69.367, 31.17, 33.0, 50.233, 51.9333, 12.556, 52.2, 56.517, 49.233, 53.067, 53.933, 65.467, 42.685, 13.8, 58.81, 54.0817, 50.733, 37.2092, 40.7833, 43.7331, 55.17, 45.25, 51.15, 49.05, 48.717, 47.3167, 41.45, 47.9186, 47.9225, 22.75, 45.4, 32.88, 47.3831, 42.5, 47.4219, 53.533, 44.2992, 35.0706, 27.7, 54.467, 49.033, 65.73], &quot;yaxis&quot;: &quot;y&quot;, &quot;ybingroup&quot;: &quot;y&quot;, &quot;z&quot;: [0.0331, 0.1657, 0.1207, 0.7417, -0.0261, 1.6493, 0.0205, -0.1099, 0.0471, -16.6, 0.2201, 0.1621, -0.004, 0.1601, -1.734, -0.2102, -0.0496, 0.1743, -0.1003, 0.0916, -0.1374, 0.0412, 0.0103, 0.1157, 0.1078, 0.1555, -0.018, 0.0311, 0.0152, 0.1312, -0.1331, 0.0946, -0.0116, 0.0668, 0.2788, -0.3634, 0.0795, 0.0729, -0.4778, 0.0865, -0.0014, -0.0173, -0.0347, -1.3024, -0.018, 0.0466, 0.1536, -1.3475, 0.0169, 0.2149, 0.0164, 0.1062, 0.4442, -0.0366, 0.0744, -0.0045, -12.8673, -0.1198, 0.8365, -0.0201, 0.1089, -0.4169, 0.1113, 0.0109, 0.1135, 0.0574, -0.9303, 0.28, 0.3864, 0.0497, 0.0298, 0.0595, 0.0464, 0.0731, 0.0168, 0.2746, 0.1788, 0.1086, 0.0989, 0.0465, -0.0503, 0.008, 0.2925, -0.6573, -0.0073, 0.5318, -0.0624, 0.0693, 0.0835, 0.0712, -0.073, -0.3187, 0.0451, -0.0614, 0.0744, -0.1857, -0.0487, 0.5155, 0.0618, -0.1496, 0.6882, -0.0025, 0.2197, 0.0912, -7.6167, 0.182, 0.2684, 0.1347, 0.1046, -0.2433, 0.0355, 0.0838, -0.0777, 0.1221, -0.1027, 0.1988, 0.0174, 0.5788, 0.1886, 0.0659, 0.0203, -0.0929, -0.1163, 0.0507, 0.547, 0.1699, -0.1176, 0.0333, -0.0248, -0.2108, 0.0607, 0.2915, 0.2709, -0.2124, 0.0679, 0.0592, -0.3946, 0.0649, 0.0781, -0.2344, -0.1249, 0.0373, 0.0877, 0.0242, -0.1981, 0.09, -0.2315, 0.0023, 0.0259, 0.0387, 0.0079, -0.2303, 0.101, -0.0652, 0.1421, -0.1139, 0.0881, 0.0412, 0.0537, -0.0533, 0.1267, 0.0582, 0.1408, 0.1274, -5.2249, 0.0689, 0.0424, 0.0578, -0.0663, -0.0244, 0.0155, 0.0436, 0.0429, -0.0418, 0.0095, -1.1373, 0.2244, -0.0372, -0.0077, 0.1651, 0.2319, -0.3957, -0.2929, -0.0347, -0.2511, -0.0876, -0.0631, -0.4038, 0.0151, -0.0261, 0.0494, 0.0363, 0.1378, 0.537, -0.0989, 0.0179, 0.082, 0.1032, 0.0866, 0.5829, -0.0946, 0.1295, 0.1042, 0.2752, 0.0376, -0.0395, 0.1347, 0.0374, 0.1314, -0.0284, 0.1671, 0.0972, 0.1389, -0.0525, -0.2513, 0.1697, -1.5474, -1.4207, 0.0405, 0.1199, 0.0822, 0.1, 0.0917, 0.103, -0.0422, -0.3463, 0.2654, 0.1993, 0.0, 0.2499, 0.091, -0.1039, 0.0082, 0.0408, 0.0657, 0.0414, 0.0982, -0.1371, 0.0759, -1.0352, -0.084, -0.009, 0.0527, 0.0161, 0.1242, 0.1044, -0.06, 0.2017, 0.3008, 0.0, 0.0908, 0.6912, -4.103, -1.0223, 0.1189, 0.1451, 0.5273, -0.1573, -0.0027, -0.362, 0.0601, 0.0152, -0.3742, 0.0428, 0.038, 0.0776, -0.0454, 0.0134, -0.6972, 0.7107, 0.0, 0.0721, 0.1375, -0.083, 0.1459, -0.1824, 0.0764, 0.0901, 0.0, 0.0, 0.0512, -0.132, -0.0919, 0.0353, 0.1429, 0.2174, 0.2096, 0.4622, -0.0208, 0.0978, 0.1588, 0.1191, 0.132, 0.0819, 0.1639, 0.5958, 0.2866, 0.1619, 0.7786, 0.0, -0.0207, 0.0281, 0.0741, 0.0999, 0.0501, -0.0375, -0.0104, -0.2926, 0.0663, 0.1611, 0.0573, -0.0753, -0.6991, -0.8159, -0.0169, -0.0314, -0.017, 0.0, 0.1241, 0.0811, -0.0326, -0.0429, -0.3406, -0.1394, -13.7892, 0.2382, -0.0034, 0.0458, 0.046, 0.0, 0.1439, 0.0, -0.1949, -0.042, 0.1152, -0.218, 1.875, -0.4908, 0.2938, 0.1602, 0.0243, 0.0366, 0.0704, -0.1201, -1.741, 0.0514, -0.0656, 0.0566, 0.4213, -0.0141, 0.2562, 0.0448, 0.0754, 0.131, 0.2745, 0.1491, 0.03, -0.1709, 0.0355, -0.0227, -0.037, 0.1774, -0.1472, 0.1593, 0.0008, -0.0314, -0.0533, -0.0212, -0.017, -0.0835, 0.0369, -0.0752, -1.2791, -4.0324, -0.0337, -0.1284, 0.0755, 10.9518, -0.0198, -0.39, 0.0, 0.1481, 0.1351, -0.3664, -0.0664, 0.1506, 0.026, 0.1072, 0.3403, 0.1705, 0.3729, 0.0526, 0.0, 0.1023, -0.0967, 0.2543, 0.2983, 0.2428, 0.2411, 0.1116, 0.2902, -0.1014, 0.1765, 0.1808, 0.0856, 0.4258, 0.1144, 0.1153, -0.0357, 0.1297, 0.0, 0.0173, 0.2668, 0.7097, 0.0318, -0.1726, -0.1251, -0.0961, 0.0695, -21.47, 0.0, 0.1034, -0.1131, -0.0457, -0.0046, -0.0302, 0.873, -0.0764, 0.4146, 0.1286, 0.2253, -0.5881, -0.1653, -0.3897, 0.0485, -0.0065, -9.5564, -1.3592, 0.124, 0.4195, 0.2742, 0.3241, -0.7296, 0.2542, 0.1576, -0.3518, 0.0095, -0.0317, 0.0438, 0.0, -0.3532, 0.1595, 0.1499, 0.1401, -0.0479, -0.0454, -0.0699, -0.1679, -0.0395, 0.0408, 0.0751, 0.0185, 0.0083, 0.0232, 0.0514, -0.0493, 0.0258, 0.0633, 0.036, 0.0492, -0.0569, 0.1748, 0.0, -0.1243, -0.1002, -0.1016, -0.1412, -0.0446, 0.0349, 0.4342, 0.0551, 0.0454, 0.0656, 0.1382, 0.2033, 0.1512, 0.0858, 0.1144, 0.1308, -0.0564, 0.0472, 0.003, 0.0462, -0.5057, 0.171, 0.0547, 0.1375, -0.661, -1.4702, 0.1618, -0.1076, -0.1703, 0.0, 0.0104, 0.0711, 0.1276, 0.1554, -0.9503, 0.1646, 0.1495, 0.1457, 0.0422, -0.2802, 0.043, 0.0244, 0.0041, 5.2531, 0.03, 0.044, 0.0153, 0.1071, -0.0536, -0.0497, -0.8448, 0.1813, 0.1053, 0.1351, 0.0819, -0.0455, 0.163, 0.1186, -1.4679, 0.2322, 0.0372, -0.0143, 0.0761, -0.1302, -0.097, -1.223, 0.0067, 0.0687, 1.46, -0.0521, 0.0478, 0.0367, 0.1877, 0.6021, -0.3892, -0.1472, 0.146, 0.116, 0.038, -0.0054, -0.0297, 0.338, 0.1782, 0.2134, -0.0828, -3.3552, 0.0168, 0.3443, 0.2078, 0.0822, 0.0248, 3.1533, 0.0072, 0.1013, -0.0855, 0.184, 0.1186, 0.0469, -0.1142, 0.1851, 0.1582, -0.2387, -0.4112, 0.1361, -0.0671, 0.0568, 0.106, -0.4357, 0.2063, -0.0587, -0.0304, -0.0758, -0.0076, 0.2228, 0.1321, -1.3927, 0.1472, 0.2513, 0.0277, -0.0979, 0.0438, 0.0386, -0.1666, 0.1501, 0.0483, 0.0527, 1.0558, 0.1603, 0.2403, -2.3767, -0.1707, -0.067, -8.1233, 0.3004, 0.1699, -0.2499, 0.0207, 2.2135, 0.0123, 0.7199, -0.0292, 0.0778, 0.0757, -0.0934, -0.2016, 0.0108, 0.1193, 0.1318, 0.1218, 0.1527, 0.0428, 0.0902, -0.0526, 0.1173, 0.1783, 0.1492, -0.136, -0.0028, 0.1822, -0.1557, -0.1506, -0.3149, 0.0329, -0.0016, 0.0991, 0.0486, 0.1201, -0.1726, 0.0, 0.1242, 0.0, 0.0804, 0.1608, 0.0497, -0.0057, -0.1849, 0.3247, 0.0827, 0.1929, -0.0559, 0.0, 0.0161, 2.2876, 0.011, 0.0307, -0.1082, -0.0665, 0.0762, -0.0124, -0.0928, 0.1565, 0.1047, 0.0173, 0.0829, 0.3276, -0.4081, 0.0804, -1.6659, -0.0285, 0.0136, 0.0, -0.0567, -0.2156, -0.0304, 0.0139, 0.0076, -0.014, 0.1462, -0.0132, -1.1564, -0.5452, 0.0, -0.1562, -0.4106, -0.0147, 0.1468, -0.1109, 0.1299, 0.0308, 0.4697, 0.142, 0.1145, 0.0338, 0.0754, -0.0238, 0.0201, -0.0931, 0.2097, 0.1407, 0.1797, -0.0741, 0.2067, -8.8408, 0.0416, 0.1226, 0.1376, 0.1619, 0.0141, -0.0898, -0.0171, 0.1411, 0.2238, 0.0807, -0.0357, 0.2251, -0.098, 0.1647, 0.3609, 0.1072, 0.1068, -0.0393, -0.1071, -0.0412, 0.0203, 0.1569, -2.8697, 0.0502, 0.029, -0.0071, 0.3083, -0.308, -0.0523, -0.0876, 0.0808, -0.121, -0.1871, 0.0002, 1.8784, -0.3276, 0.0264, 0.0353, 0.0109, -0.0368, 0.0386, -0.1079, 2.2349, 0.1589, -0.9999, 0.072, 0.1049, -0.1195, 0.0018, 0.6794, 2.5183, 0.1615, 0.2943, 0.1054, 8.055, 0.1089, 0.2157, 0.1577, 0.217, 0.0742, 0.0591, 0.0917, 0.0844, -0.076, 0.072, 0.0534, 0.0729, -0.0006, -0.1361, 0.3255, 0.0934, 0.025, -0.0612, 0.0624, 0.123, -0.0681, 0.0, 0.0805, 0.1059, 0.0327, -0.7278, 0.0859, 0.0742, -0.1392, 0.0, 0.1497, 0.1602, 0.0628, -0.1816, 0.1028, 0.1155, -0.0156, 0.073, 0.0014, -0.1704, 0.0691, -0.01, 0.2338, 0.1324, 0.0, 0.2767, 0.2443, 0.212, 0.1458, 0.1999, 0.1086, 0.2828, 0.1753, 0.2011, 0.2988, 0.1854, 0.2611, 0.1812, -3.2213, 0.0, 0.2113, 0.2364, 0.3046, 0.0375, 0.157, 0.0868, 0.0151, -0.207, 0.0383, -0.1042, -0.0106, 0.0661, 0.1296, -0.049, -0.0188, 0.098, -0.7884, -0.1409, -0.2353, -0.5377, 0.1254, -0.0478, 0.0358, 0.1901, -0.0816, 0.7435, 0.8062, -0.0037, 0.0519, 0.0822, 0.1721, -0.0746, -2.9445, 0.2598, -0.596, 0.2512, 0.0355, 0.1426, 0.11, 0.8382, 0.2748, -0.0729, 0.1269, 0.0883, -0.0764, 0.0866, 0.0491, 0.0313, -0.7975, -0.1708, -0.248, -0.0571, -0.1259, 0.0559, 0.2289, -0.0199, -0.0235, -0.6638, 0.0491, 0.0018, -0.1097, 0.0167, -7.9253, -0.1424, -0.2684, -0.1043, 0.0861, 0.1565, -0.0572, 0.0305, 0.0636, 0.1678, 0.1407, -0.1132, 0.1802, 0.2209, 0.0717, 0.0234, 0.0671, -8.89, 0.078, 0.0198, 0.165, 0.1702, 0.1056, -0.1684, 0.1516, -0.5782, 0.1207, -0.9638, 0.0417, 0.0273, 0.1435, 0.1546, 0.0123, -0.2726, -0.1497, -0.3474, 0.126, 0.1823, 0.4993, -0.1266, -0.209, 0.0159, -0.2462, -0.3518, 0.1336, 0.2535, 0.7432, -0.0407, 0.0702, 0.0479, -0.0195, -0.1649, 0.0465, 0.1398, -0.1338, -0.0814, -0.5241, 0.0744, 0.09, 0.165, -0.0012, 0.0, 0.1316, -0.0017, 0.1207, 0.1223, 0.0952, 0.0659, 0.2787, 0.0529, 0.1123, 0.0631, 0.0773, -0.0022, -0.4991, -0.2018, 0.1832, 0.0536, 0.1751, 0.3372, 0.2691, 0.3286, 0.1621, 0.0, 0.0372, 0.0152, -0.3142, 0.0244, 0.143, 0.2064, 0.0619, 0.1046, 0.1285, -0.0156, 0.1255, 0.0992, 0.0206, 0.0, -0.9421, 0.0569, -0.2398, -0.4681, 0.155, 0.0, 0.1698, -0.0568, -0.1184, -0.0657, 0.0231, 0.1254, 0.0237, 0.0085, 0.9567, -0.1392, -0.194, 0.0479, 0.0911, 0.0081, 0.0956, -0.233, -0.1175, 0.0057, -0.1132, -0.0773, 0.3865, -0.6772, 0.0534, 0.4068, -2.99, 0.0705, 0.1576, 0.1019, 0.0669, 0.351, 0.1611, -0.0509, -0.0285, 0.1233, 0.0944, 0.2557, 0.0951, 0.2152, 0.2788, 0.2395, 0.236, -0.2088, 0.0739, -0.1891, 0.0768, 0.1409, 0.1469, 0.1364, 0.0553, 0.1231, 0.0722, 0.099, 0.1282, 0.1747, -0.0227, -0.1118, -0.091, 0.0318, 0.0197, -0.0928, -0.1393, 0.2326, -0.0371, 0.0126, -0.1615, 0.1114, 0.0858, -0.0946, -0.2733, 0.0023, 0.0598, 0.0779, 0.5823, 0.3819, 0.0125, 0.0308, -0.0241, -0.045, -0.1037, -0.0797, -0.1033, 0.1563, 0.1686, -1.1451, 0.0, 0.1526, 0.016, -0.9891, 2.832, 0.1334, 0.0814, 0.0623, -0.0887, -0.0185, 0.0666, 0.1642, -0.0005, -0.0337, 0.6153, -0.1607, -0.1273, 0.1018, 0.1406, -0.0164, 0.1135, 0.2201, 0.0417, 0.2388, -0.0832, 0.2133, 0.2921, 0.0369, 0.2645, 0.0967, 0.1596, -0.6853, 0.4878, 0.0393, -0.0934, 0.4203, -2.5959, 0.1053, -0.1053, -0.2815, 0.0445, 0.059, 0.2485, -0.0135, 0.0284, 0.0492, 0.0893, 0.0779, 0.0899, 0.0856, -0.0717, 0.058, 0.0088, 0.0991, 0.3274, -0.1513, -0.1233, 0.075, 0.0946, -0.1833, 0.1134, 0.1009, 0.111, 0.0154, -1.9011, -0.1221, 0.1372, -0.2066, 0.1577, 0.0761, 0.1232, 0.1045, 0.1999, 0.0795, 0.1437, -0.164, 0.047, -0.0707, -0.0031, 0.0481, -0.1901, -0.0181, -0.0285, 0.018, -2.9981, 0.0559, -0.072, 0.1005, 0.1086, 0.3654, 0.1182, 0.0193, -2.8086, 0.1254, 0.053, 0.9844, -0.0227, -1.338, 0.0435, 0.0947, 0.1341, 0.0, 0.4588, 0.1697, 0.0122, 0.1484, -0.0299, 0.243, -0.007, 0.1296, -0.1188, 0.0928, 0.1503, -0.1275, 0.0274, -0.0376, 0.0645, 0.1362, 0.1294, 0.0176, 0.0993, 0.3808, 0.1084, -0.1683, 0.2297, -0.021, 0.1926, -0.5979, -0.1364, 0.0145, -0.4882, -0.0995, -0.7699, 0.0295, -0.052, 0.0761, -0.0508, -0.213, 0.1937, 0.4001, -10.5817, 0.1204, 0.0764, -0.1511, 0.3046, 0.0, 0.0309, 0.1695, 0.1, -0.0329, -0.1648, 0.0267, -0.0842, 0.0108, -0.1334, 0.0427, 0.1226, 0.0039, 0.0233, 0.0666, 0.0912, -0.0134, 0.3929, 0.1349, -0.1551, 0.0712, 0.1172, -0.144, -0.0745, 0.2093, 0.0994, -0.1408, 0.0843, 0.0679, 0.0048, -0.0638, -0.9642, 0.0134, -0.2163, 0.1426, -0.1327, 0.0375, -0.4986, -0.0007, 0.2349, 0.0169, 0.0695, 2.54, 0.0893, 0.1696, 0.0003, 0.0546, 0.1, 0.0709, -0.0598, -1.0208, -0.0585, -0.1774, -0.0122, 0.0168, 1.3983, -1.3802, -0.0803, -0.0244, -0.0661, 0.1538, 0.2718, 0.417, 0.0583, -0.1972, 0.1015, 0.1289, 0.9713, 0.0828, -0.0281, 0.7615, 0.1493, 0.0529, 0.1801, 0.1398, 0.0302, 0.054, 0.1342, 0.1034, 0.0736, 0.1047, 0.0024, -0.005, 9.4333, 0.0, -0.4443, -0.38, -0.3246, 0.0773, 0.2046, -0.1809, 0.2884, -0.0527, 0.1569, 0.1599, -0.0888, -0.1376, -0.1484, 0.086, 0.0404, 0.0351, -0.2043, 0.2982, 0.2011, 0.3246, -0.1165, 0.2322, -0.0786, 0.0456, -0.135, 0.816, 0.3334, -0.1324, 0.3953, 0.7855, 0.0, 0.1039, 0.1044, -1.5042, 0.2315, 0.1781, 0.18, -0.1805, 0.1491, -0.0532, -0.0954, 0.2344, -0.0444, 0.566, 0.1046, 0.4744, 0.0484, 0.3373, -0.0218, 0.0113, -0.1287, -0.0238, -0.2388, 0.0901, -0.0383, 0.0439, -0.0488, 0.0151, -0.0401, 0.0327, -0.1985, 0.0024, -0.0188, 0.2353, 0.167, -0.0774, 0.0918, 0.289, -0.1449, -0.0733, -0.2832, -0.0269, 0.1483, 0.2349, -0.0278, 0.0877, -0.1021, 0.1309, -0.1627, 0.0, -0.199, -0.0139, 0.3655, 0.0694, -0.2138, 0.0681, 0.0893, 0.1928, 0.095, 0.0, 0.1063, 0.1095, 0.1653, 0.3959, -0.3142, -0.1142, 0.106, 0.0082, -0.3777, 0.2099, -0.3475, -0.2436, 0.0534, 0.1061, -0.125, 0.1242, 0.0, -0.8257, 0.0552, 0.126, 0.0, 0.0205, 0.1, -0.0095, 0.1258, 0.0, 0.137, 0.076, -0.3057, 0.1157, 0.0791, -0.0664, -0.2481, -0.0061, -0.0338, -0.235, -0.0617, 0.1533, 0.1431, 0.1691, -0.1058, -0.1282, 2.6227, -0.0524, 0.0845, 0.0679, 0.4262, -0.0165, 0.1701, 0.0525, 0.0872, -2.2336, -1.2771, 0.0216, 0.0598, 0.1093, -0.0263, -0.0917, -0.3469, -0.069, 0.0227, -0.0932, 1.3429, -0.0571, -0.1169, 0.0419, -0.1091, -0.0256, 0.0277, 0.1127, -0.0538, 0.3729, -0.2229, 0.1563, 0.0073, 0.0324, 0.0167, 0.0842, -0.0203, -0.0088, 0.0, -0.2399, 0.1478, 0.1713, -1.3661, 0.2102, 0.0006, 0.0264, 0.0588, -0.1235, -0.0131, 0.0266, 0.0405, -0.052, 0.8514, -0.0415, -0.0788, -0.0985, -0.2664, 0.1148, 0.0713, 0.0346, 0.1224, 0.1197, -0.309, 0.1183, 0.2451, 0.0377, 0.7239, -0.0854, 0.0883, -0.4174, 0.0578, 0.0826, 0.0, 0.167, 0.2271, 0.1224, 0.0223, 0.0, -0.2619, 0.0849, 0.1013, -0.3159, 0.0474, 0.1503, 0.0456, -0.0024, -0.1301, -0.0842, 0.0679, 0.0901, 0.0566, 0.0749, 0.1993, 0.1914, 0.1057, -0.0968, 0.0687, 0.162, 0.0187, 0.0397, -0.0347, 0.0541, -0.078, 0.1085, 0.0582, -0.0085, 0.0973, 0.0411, 0.1457, 0.0701, 0.1061, 0.109, 0.1894, 0.0, -0.0023, 0.0, -0.09, -2.4218, -0.0044, -0.5254, 1.0683, 0.1668, 0.0913, 0.1116, 0.116, 0.1119, 0.0751, 0.5559, -0.4192, 0.6282, 0.0982, 0.2071, 0.0825, -0.0767, -0.0993, -0.0708, 0.7858, 3.5112, -0.0763, -0.1745, -0.0663, 0.1081, 0.163, 0.0504, 0.1166, -0.5996, 0.0311, 0.1365, -0.0086, 0.019, 0.0104, -0.1615, 0.1178, -0.0498, 0.0329, 0.0775, -0.0071, 0.0792, 0.0666, 0.0, -0.095, -0.0406, -0.0412, 0.129, 0.042, 0.1213, -0.1027, 8.765, -1.3906, 0.0305, 0.0708, -2.8419, 0.0168, 0.0502, 0.0253, 0.1812, 0.3969, 0.0987, -0.0105, 0.0594, -0.5836, -0.4327, 0.0986, 0.2058, 0.1178, -0.0913, 0.0422, 0.0271, 0.0656, -0.2271, -0.1078, 0.1742, 0.0307, -1.4602, 1.2955, 0.034, -0.0686, 0.0632, 0.1163, 0.0352, 0.2069, -0.0083, 0.2006, -0.1021, 0.0411, -0.0124, 0.1506, 0.2342, -1.3753, 0.0611, 0.0176, -0.1211, 0.0796, 0.2159, 0.0532, -2.4359, 0.1381, -1.0114, 0.0, 0.1159, 0.1753, -0.024, 0.2339, 0.8372, 0.0304, -0.0277, -0.038, 0.0393, 0.2668, -1.4863, -1.2761, 0.02, 0.0541, 0.0117, 0.0839, 0.1975, 0.0903, -0.2012, -0.271, 0.089, 0.0949, -0.246, 0.0239, -0.0163, 0.761, 1.3636, 0.1241, 0.1152, 0.0235, 0.3015, -0.1636, 0.0313, -0.2806, 0.0042, -0.2676, 0.1724, 0.1033, 0.1891, -0.0904, -0.1386, 0.1072, 0.0296, -0.1725, -0.0559, 0.0475, -0.4389, 0.1851, -0.3959, 0.0, 0.1582, -0.0884, 0.0179, 0.1894, -0.0111, -0.0367, 0.1126, -0.0568, 0.0358, -0.1102, 0.1358, 0.0625, -0.0312, 0.5955, 0.1267, 0.2504, 0.0238, -0.1636, -1.1148, -0.1091, -0.5437, 0.0749, -0.1201, -0.0109, 0.3, -0.4796, 0.185, 0.0, -0.1156, 0.177, 0.0431, 0.0417, 0.0341, 0.0491, 0.1222, 0.1215, 0.2362, -0.081, -0.0962, -6.4, 0.1539, -0.4732, -0.383, -0.6276, 0.0984, -1.2424, 0.2318, 0.0012, 0.0, 0.3061, 0.1711, -0.1111, 0.013, 0.0954, 0.0675, -0.0196, -0.1612, 0.1053, 0.0113, -0.195, 0.0563, 0.0921, 0.0038, 0.0406, 0.3716, 0.0812, -0.0102, -0.0014, -0.1662, 0.1218, -0.269, 0.0577, 0.0989, 0.1235, -0.0518, 0.2995, 0.0499, 0.0034, 0.1659, 1.5433, 1.2406, -0.0423, 0.0291, 0.1597, 0.0625, 0.0741, -0.0153, -0.067, 0.0629, 0.0846, -0.0588, 0.0283, -0.0743, -0.1177, 0.01, 0.1542, 0.0217, -0.1132, -0.1283, -0.1135, -0.0403, -0.0674, -0.0658, -0.0763, 0.0424, 0.1251, -0.0485, -0.0084, 0.1694, -0.6708, 0.7892, -0.0172, -0.0203, 0.0195, 0.2115, -0.1625, -0.1939, -0.4407, -0.7744, 0.0424, -0.406, 0.1683, -0.1529, -0.0414, -0.1154, 0.1135, 0.2686, -0.0226, 0.1385, -0.1171, 0.0426, -0.1157, -0.015, 0.0, -0.0063, 1.3336, 0.0749, 0.4837, 0.1219, -0.1345, 0.0, 0.0316, -0.001, 0.1437, -0.1356, 1.0082, 0.212, 0.2195, 0.014, 0.0127, -0.3996, 0.1196, -0.0179, 0.087, -9.6583, -0.0466, -0.2312, 0.2354, -0.0612, -0.1255, -0.2303, 0.2036, 0.2077, 0.1165, 0.1844, -0.4891, 0.1785, 0.0061, 0.0202, -0.0164, 0.132, 0.1921, 0.0668, -0.1576, 0.13, -0.7137, -0.0512, 0.1311, -0.0504, 0.1468, 0.116, 0.2612, -0.1739, 0.4576, -0.0168, -0.1678, 0.5974, 0.1359, -0.0781, -0.0737, 0.0773, -0.0888, -0.0255, -0.0347, -0.1466, -0.0697, 0.0954, -0.0792, 0.3902, -2.09, -0.2412, 0.0, -0.2669, 0.0099, -0.0457, 0.0724, 0.0, 0.0209, 0.0745, 0.0502, 0.1146, 0.0146, 0.3055, 0.0, -0.0716, 0.1715, -0.0914, 0.0949, -0.1746, 0.0882, 0.0762, -0.036, 0.192, 0.1305, 0.0798, 0.1019, -0.0217, 0.1602, 0.075, -1.643, 0.1227, -0.0154, -0.0078, 0.0945, -0.0593, -0.0526, -0.3653, 0.3092, -0.1176, 0.1862, -0.1011, -0.8347, -0.072, -0.1356, -0.1151, -0.1919, -0.0594, -2.6182, 0.0822, -0.1039, -0.0874, -0.7939, -0.0733, 0.0681, 0.1201, 0.1432, -1.8206, -0.3663, 0.1012, -0.0147, 0.1141, 0.148, -0.1947, -0.0714, 0.0735, 0.1829, 0.0087, -0.0698, 0.2225, 0.2153, -0.0594, 0.0994, 0.0676, 0.1278, 0.2026, 0.2214, -0.0042, -0.0473, 0.0639, 0.0, 0.1638, -0.0083, 0.0, 0.3086, -0.2866, 0.037, -0.0779, -0.0596, -0.0218, 0.0288, 0.0107, 0.0972, -0.0489, 0.1007, 0.1575, -0.0751, 0.0892, 0.0935, -1.2631, 0.0886, 0.0715, -0.0522, 0.2405, 0.2156, 0.1784, 0.1819, 0.0, 0.0073, 0.071, -0.0602, 0.1458, 0.1053, 0.019, 0.0918, 0.0778, 0.0455, 0.3001, -2.6495, 2.3617, -0.0771, 0.1274, 0.0743, 0.0913, 0.1231, 0.1273, 0.0833, 0.3462, 0.0659, -2.1333, 0.1415, 0.0835, 0.0622, -0.067, 0.1065, 0.0657, -1.4524, -0.1323, 0.1339, 0.0316, 0.9183, 0.197, 1.9075, 0.058, 0.0784, 0.0927, 0.0525, -0.0008, 0.0799, -0.0393, -0.2605, 0.0162, -0.2202, 0.0657, -2.0388, -12.1833, -0.0261, -0.3259, 0.0309, -0.1127, 0.3237, 1.2805, -0.1127, 0.2112, -0.0787, -2.3026, 0.0317, 0.2176, 0.124, -1.5523, -0.2468, 0.0773, 0.1247, -0.3242, 0.0498, 0.1748, 0.7835, -1.3168, 0.0472, -0.0028, 0.3142, 0.0993, 0.0995, 0.2082, 0.6026, 0.0725, 0.0219, -0.0293, 0.1519, 0.1323, -0.0607, 0.0856, 0.128, -0.1034, 0.3499, 0.0607, -0.1205, 0.0839, 0.0388, 0.0591, -0.1802, 0.1478, 0.0175, -0.0037, 0.1044, 0.194, 0.0949, 0.091, 0.0404, -0.0079, -0.047, -0.082, -0.107, -0.783, -0.2914, 0.1031, 0.0087, 0.1494, -0.0933, -0.0055, -0.0767, 0.3074, -0.001, 0.0809, 0.6104, 0.0452, -0.0397, 0.0597, 0.0535, 0.0025, 0.0439, 0.0806, 0.1379, -0.0698, -0.5585, 0.1066, 0.0756, 0.0519, 0.0546, 0.1502, 0.0524, -0.0131, 0.272, 0.2027, -0.9689, -0.0938, 0.1276, -0.0567, 0.2921, -0.0327, -0.0058, 0.2367, -0.0036, -0.0528, 0.06, 0.0217, 0.1205, 0.5467, -0.0343, 1.0733, -0.011, -0.5107, 0.0307, -0.0385, -0.1099, 0.1113, -0.1234, 0.0732, -0.2719, 0.1521, -0.0166, 0.0132, 0.3371, 1.8792, -0.0019, 0.1621, 0.1056, -0.1842, -0.0494, 0.1436, 0.3808, 0.1497, 0.0507, 0.1294, 0.0365, 0.1626, -0.2725, 0.0961, 0.0518, -0.0357, 0.0715, 0.0074, -0.1147, 0.006, 0.0928, -0.0129, 0.1179, 0.0781, 0.0908, -0.1248, -0.0625, 0.808, -0.0106, -0.27, 0.1768, -0.2613, -0.0436, -0.0379, 0.151, -0.076, -0.0109, -0.0696, 0.3278, 0.0669, 0.0737, 0.0649, -0.9337, 0.0261, 0.0777, -0.2651, 0.0017, 0.2148, 0.0441, 0.2112, 0.925, -0.1004, 0.1089, 0.1291, 0.1549, 0.2489, 0.0326, 0.029, 0.0697, 0.6811, -0.0297, -0.0686, -0.5993, -0.0378, -0.0694, 0.1037, 0.0977, 0.0185, 0.0505, -0.497, 0.1089, 0.1231, 0.103, 0.2998, 0.0677, 0.0959, 0.041, 0.2044, 0.0534, 0.0585, -0.252, -0.1028, 0.0349, 0.0, 0.0738, 0.1113, 0.0873, 0.1732, 0.0196, 0.1542, 0.1479, 0.6596, 0.1083, 0.1943, -0.0862, 0.1652, -0.9795, -0.1531, -0.2047, 0.0062, -0.1085, -0.1098, 0.1237, 0.1516, -0.4121, -9.885, -0.1277, 0.1612, -0.6031, 0.1604, 0.1675, 0.0055, -0.0158, 0.2698, 0.0633, 0.3305, 0.0737, 0.0905, -0.0773, 0.0851, -0.0032, 0.1418, 0.0858, 0.5255, 0.2459, 1.3242, -0.3559, 0.0306, 0.8571, 0.124, -0.311, 0.5989, 0.4695, 0.154, 0.0702, -0.0462, -0.0384, 0.0968, 0.0923, -0.2759, 0.9572, 0.284, 0.1481, -0.0823, 0.1057, 0.0302, -2.6489, -0.2878, 0.5785, 0.0043, 0.1431, 0.0812, -0.0181, 0.1356, -0.8275, 0.2194, 0.1786, -0.0336, 0.2936, -0.1342, 2.3181, -0.1135, -2.7266, 0.0665, 0.0833, 0.0018, 0.0958, -0.1264, 0.1469, 0.0948, -0.1655, 0.0791, -0.1881, -0.0266, 0.1035, -0.0195, -0.1069, -0.2107, -0.02, 0.0143, 12.1143, 0.0754, 0.0668, 0.2034, 0.1116, 0.4352, 0.1868, 0.0126, 0.0442, -0.0278, 2.104, 0.0653, 0.5389, 0.0473, 0.0803, 0.0, 0.0467, 0.0236, 0.0555, 0.1321, 0.0531, -0.2551, 0.0743, -0.4515, -0.164, -5.5974, -0.038, -0.1513, -0.2607, 0.0256, 0.1399, 0.0045, 0.0343, 0.2608, 0.3031, -0.5005, 0.0391, -1.1238, 0.1078, -0.3781, -0.0907, 0.0188, 0.2212, -0.4359, 0.0934, 0.16, -0.0645, 0.0214, -0.0001, 0.1219, -0.0084, 0.0161, 0.0919, 0.0346, 0.0484, -0.6125, 0.0254, -0.0615, 0.0685, -0.0761, 0.0015, 0.0189, -0.4916, 0.0311, 0.0873, 0.0608, 0.0754, -0.1971, 0.1007, 0.1069, 0.0766, -0.3442, -0.0118, 0.0059, -0.1099, 0.0603, 0.2171, -0.1624, 0.1858, -0.3154, -0.1578, -0.1342, -0.0263, -0.1179, 0.1622, -0.6733, 0.0218, -0.1654, -0.2356, 0.1095, 0.0208, 0.1271, 0.1072, -0.0488, -0.0108, 0.0113, 0.0015, 0.0647, -0.18, 0.0573, -0.6414, -0.0023, 0.0167, 0.0884, 0.1725, -0.4152, -0.3494, -0.1641, 0.2961, 0.011, -1.0834, 0.2757, -0.0243, -0.1483, 0.0354, 0.0137, 0.0496, 0.1832, 0.1831, -0.0072, -0.1437, 0.1761, -1.2961, -0.0875, -0.1944, -0.0594, 0.0298, 0.7571, 0.4146, -0.037, 0.1561, 0.4022, -0.0318, 0.1009, -0.1111, 0.1402, -0.0056, 0.1289, 0.0559, 0.1041, -0.3569, 0.0302, 0.6534, 0.1097, 0.0101, -0.0114, 0.1334, -0.039, 0.0452, 0.0809, -0.0443, 0.0971, 2.477, 0.2229, 0.2601, -0.0026, 0.6411, -1.6567, 0.1358, -0.4245, -0.0164, -1.9216, 0.0539, 0.049, 0.0702, -0.2827, 0.0581, 2.6703, 0.0965, -1.5105, 0.1602, 0.2863, 0.1842, 0.0, -0.1514, 0.2301, 0.0512, -0.0831, 0.0625, 0.1073, -0.4389, -0.0921, 0.1089, 0.1003, -1.1769, 0.0781, 0.0072, 0.0748, 0.0485, 0.1947, 0.1849, -0.0243, -0.265, 0.1231, 0.1615, -0.0616, 0.0057, -0.0622, -0.1008, -0.0488, 0.2802, -0.1623, -0.1643, -0.1256, 0.1393, -0.79, 0.0969, 0.8908, 0.0831, 0.025, 5.6645, -0.1092, 0.0234, 0.3038, 0.0123, -0.1723, -0.594, 0.0846, 0.1449, 0.2091, 0.071, -0.5139, -0.0125, 0.1211, 0.1091, 0.9214, 0.0815, -0.0733, 0.0938, -0.0917, -0.0847, -0.2842, 0.0063, -0.1246, 0.1427, -1.0798, 0.1038, 0.0606, -0.0053, 0.1903, 0.0709, 0.029, 0.0465, 0.4793, 0.0147, -0.0795, -0.127, 0.3922, 0.5215, -0.0758, -0.5356, 1.5997, -0.0639, 0.021, 0.129, 0.0033, 0.0499, -0.0049, -0.0182, -0.0221, -0.0484, 0.2224, 0.1552, 0.0346, 0.1177, 0.1308, 0.2039, -0.0147, 0.0481, 0.3047, 0.1233, 0.071, 0.1232, 0.1095, 0.0856, -0.0666, -0.0546, -0.029, -0.9109, -0.028, 0.0235, 0.0623, -0.0938, -0.0046, -6.7775, -0.0271, 0.8918, 0.1263, -0.5157, -0.4295, 0.1176, 0.0319, -0.0394, -0.0394, -0.0073, -0.4066, 0.0803, -0.0924, -0.4677, -0.0276, -0.0158, -0.1132, 0.1657, -7.4748, 0.0451, -0.1498, 0.1905, 0.2752, -0.1011, -0.8671, 0.1202, -0.0826, 0.1001, 0.2048, 0.0518, 0.0894, 0.0871, -1.7567, -0.2517, -1.0538, -0.217, 0.0, -0.4871, -0.0598, 0.3287, 0.1172, 0.2769, 0.1504, -0.6433, 0.1459, 0.0468, 0.0584, 0.0, 0.2805, -0.2597, 0.0774, -0.7819, -0.0581, -0.0478, 0.1633, 0.0991, 0.1013, 0.1072, -1.3269, 0.1128, 0.0489, 0.0162, -0.0459, -0.141, -0.5363, 0.035, 0.1178, 0.0471, 0.1074, 0.043, 0.0077, 0.0227, -0.0195, 0.0, -3.3112, -10.474, -0.002, 0.0127, 0.2508, 0.2223, 0.103, -0.311, -0.1385, 0.2581, 0.3128, 0.126, 0.0924, 0.106, 0.2775, -0.0904, -0.4891, 0.0071, 0.0706, 0.0293, -0.0539, 0.1304, 0.1776, -0.6833, -0.0358, -0.3114, 0.0948, 0.1169, -0.1481, 0.2149, -1.6872, -0.1143, -1.3351, -0.4108, 0.0827, 0.0296, 0.088, -0.037, 0.0419, -0.0492, 0.0, 1.002, 0.1073, 0.1386, 0.5295, 0.0864, 0.084, 9.91, -0.0769, 0.3058, -0.1303, -1.6569, 0.0941, -0.0109, 0.0209, 0.0103, 0.0381, -0.1303, -0.3518, -1.3954, 0.0175, 1.3353, 0.1596, 2.3136, -0.5214, -0.2329, 0.0861, 0.0769, -0.1875, 0.0277, -0.1076, 0.0414, 0.2041, 0.1544, 0.1329, 0.0252, 0.0, 0.0663, -0.2066, 0.1165, -0.0227, -0.1755, -0.1446, -0.3004, -0.0524, 0.0556, -12.0462, -0.0202, 0.5485, 0.0966, 0.0714, 0.0726, 0.1206, 0.0, -2.4917, 0.0011, 0.2415, 0.2286, -0.1136, 0.114, 0.0561, 0.0165, -0.0162, 0.1481, 0.0171, -0.0095, -0.0386, -0.0213, -1.0322, 0.1128, 0.2408, 0.3665, 0.1304, -0.3726, -0.5007, 0.149, 0.0348, 0.1649, -0.0758, 0.0854, 0.2012, 0.0936, 0.0807, 0.241, -0.0043, 0.0364, 0.2943, 0.2017, 0.4017, 0.0493, -0.0834, -0.1994, 0.2263, 0.0908, -0.8714, 0.0778, 0.2067, 3.4093, 0.1069, 0.1417, 0.1962, 0.134, 0.0788, 0.2901, 0.1231, 0.0, -4.7892, 0.1214, 0.0866, 0.1233, 0.0224, -0.1044, 0.1314, -0.0571, -0.0183, -0.0298, -0.2029, -0.0267, 0.0286, 0.043, 0.0591, 0.0698, -0.3033, -0.0712, -0.2656, -0.0195, -0.0936, -0.0709, -0.1041, -0.0425, -0.05, 0.4603, 0.0898, -0.4169, 0.0928, 0.2773, -0.1863, -0.0345, -9.7667, 0.1373, 0.2281, 0.1099, -0.1723, -6.3882, 1.0145, 0.0277, 0.1123, -0.1154, 0.2065, 0.1467, 0.0695, 0.1205, -0.0425, -0.0501, 0.031, 0.7315, -0.0209, 0.0105, 0.0055, 0.0024, 0.0555, -0.2819, 0.1389, 0.0673, 0.1505, 0.1105, 1.1624, 0.0967, -0.0953, 0.6569, 0.1935, 0.0202, 0.0864, 0.2887, 0.346, 0.0462, -0.0617, -0.2489, 0.0976, -2.9639, -1.4561, 0.1395, 0.2683, -0.2226, 0.046, -0.7996, 0.1831, -0.403, 0.0082, 0.0572, 0.7032, 0.193, -0.968, 0.3202, 0.0428, 0.8515, -0.5527, 0.0846, 0.242, 0.2913, 0.0058, 0.322, 0.0283, 0.0832, 0.5488, -0.1713, 0.0382, 0.073, 0.1043, 0.0356, 0.6641, -0.2241, 0.0618, -2.1799, 0.0911, -0.0784, 0.0348, 0.0791, 0.0502, 0.0258, 0.0522, 0.0048, 0.0792, 0.1111, -0.3141, 0.1711, 0.3326, 0.0527, -0.0611, 0.1675, 0.1941, 0.0978, 0.0114, -0.0266, 0.2178, -0.0666, -4.9242, -0.2288, 0.0209, -0.3234, -0.2702, -0.1311, -0.6094, 0.0744, 0.1416, -0.4751, -0.0633, 0.0819, 0.0214, -0.0484, -0.0232, -0.0084, 0.155, 0.0043, 0.1149, -0.0104, 0.0753, -0.8213, 0.0387, 0.0747, 0.5141, 0.0863, 0.1192, 0.1456, 0.0002, -0.0983, 0.3027, 0.1515, -2.0474, 0.0402, -0.0502, -0.018, 0.1128, 0.1168, -0.5497, 0.0829, 0.0746, -1.549, 0.058, -0.0227, 0.1038, -0.4001, 0.103, 0.1326, 0.1316, -0.0742, 0.1425, 0.0692, -2.4274, 0.4149, 6.1733, -0.0314, 0.0596, -0.0144, -0.997, -2.2707, 0.1415, -0.2188, -0.0673, 0.1341, 0.1057, 0.0598, 0.0186, 0.0, 0.0562, -0.041, 0.0847, 0.1263, -0.036, 0.2694, 0.1289, -0.0943, 0.1176, -0.3738, 0.079, -1.0325, 0.8565, 0.2014, -0.0417, 0.1811, -0.0406, 0.1225, 0.1228, -0.0328, 0.0004, 0.0743, 0.3002, 0.0658, -0.1892, 0.018, -1.9975, 0.0814, 0.1156, 0.1066, 0.0449, -0.0755, 0.096, 0.0363, 0.0328, 0.1124, 0.1088, -0.023, 0.1556, 0.0, -1.8842, 0.0535, -0.182, 0.0342, 0.1067, -0.0098, 0.0, -0.0063, 0.0699, 0.1397, 0.3952, 0.0833, 0.7063, 0.9123, 0.1803, 0.0351, 0.6081, 0.1145, -0.4138, -0.1076, -0.4006, 0.06, 0.4861, -0.0451, -0.0238, -0.0664, 0.1037, 0.1994, -0.2812, 0.0863, 0.033, -0.1828, 0.1213, 0.173, 0.0187, 3.3993, -0.0168, 0.216, 0.7187, 0.1746, -0.1543, 0.0629, 0.1581, 0.1096, -1.9611, -0.4372, 0.0909, 0.158, -0.1401, 0.1436, 0.1698, 0.2087, -0.0063, -0.1483, -0.0731, -1.0964, 0.1793, -0.0274, -0.0219, 0.1126, 0.1862, 0.042, -0.0233, -0.5376, 0.0451, -0.1118, -0.1517, -0.0177, 0.0093, -0.0749, -0.0449, -0.1007, 0.1002, 0.1617, -0.1149, 0.2011, 0.1307, 0.0181, 0.0465, 0.0788, 0.0315, 0.0734, -0.0561, -0.053, -0.0271, 0.0763, 0.0392, -0.0184, -0.1241, 0.3615, -0.0746, 0.0496, 0.1453, 0.0301, -0.1674, 0.1928, 0.1514, -0.0153, 0.0493, -0.0238, -0.0803, -0.0161, 0.0706, 0.0371, 0.1543, -0.6722, 0.0547, 0.0893, -3.3022, -0.082, -0.2259, 0.3321, 0.0228, 14.36, -0.0606, -0.1035, -0.0704, -0.0646, 0.1326, -0.5131, -0.3991, 0.108, 0.0413, 0.7913, 0.1615, 3.3319, -0.0118, -3.7343, 0.0688, 0.1561, 0.0445, -0.0409, 1.53, -0.114, 0.0861, 0.1509, -2.8658, 0.1288, -0.2909, -0.0324, -0.1012, -0.0283, -0.0268, 0.1201, 0.0159, 0.0674, -0.0013, 0.1005, 0.065, 0.1206, -0.104, -4.8275, 0.0356, 0.0096, 0.1182, -0.0901, 0.0909, -0.0435, -0.0268, 0.0917, 0.1271, 0.641, 0.0576, 0.0715, 0.0819, -1.7246, 0.0023, 0.1872, 0.0961, 0.1567, 0.7899, 0.1379, 0.0991, 0.0158, -0.0593, -0.0054, 0.1245, 0.1133, 0.1071, 0.1129, 0.1094, 0.0936, -0.832, 0.0281, 0.3708, 0.4448, 0.1134, 0.0157, 0.0676, -0.1175, 0.0266, -0.0023, 0.5778, 0.3094, 0.0293, -0.1537, 0.0146, 0.1661, -0.107, 0.1156, 0.0777, 0.2899, 0.3968, 0.0652, 0.0358, 0.0917, 0.0433, 0.0257, 0.0462, 0.0813, -2.006, -0.0149, -0.1193, 0.0093, 0.0715, 0.0284, -0.0646, 0.1143, 0.3785, -0.2613, -0.0789, 0.9682, 0.0182, 0.017, 0.1181, 0.1082, -2.4878, -0.9898, 0.0281, -0.1155, -0.1558, 0.1022, 0.1912, 0.0708, 0.0859, 0.0, 0.245, 0.1699, 0.2301, 0.0, 0.031, -0.0781, 0.7865, 0.0443, -0.0138, -1.0204, 0.1734, 0.0678, 0.1353, 0.1584, 0.0017, 0.1296, 0.0624, 0.0074, 0.0301, 0.0396, -0.1896, -0.043, 0.1191, -0.054, 0.0513, -0.415, -0.2314, 0.0652, 0.1019, 0.4175, 0.1948, 0.0564, 0.0807, 0.0448, 0.2294, 0.0773, -0.0361, -0.1317, -0.1706, 0.0513, 0.0978, -0.7529, 0.1085, 0.0225, 0.1949, -0.2093, -0.2174, -0.1284, -0.2089, -0.0379, 0.1493, -0.1026, -0.1773, -0.035, -0.2007, -0.0592, 0.2413, 0.0602, 0.2579, 0.1309, -0.5991, 0.0441, -0.0141, 0.0487, 0.1813, 0.0, -0.0533, 1.0781, 0.1086, 0.0828, 0.1722, 0.0974, 0.1048, 0.0168, 0.195, -0.0836, 0.1359, 0.0029, -0.0578, -0.1901, -0.0185, 0.0191, -0.0103, 0.0884, 0.1061, 0.078, 0.1041, 0.0, 0.1491, 0.0556, 0.1126, -0.0743, -0.0409, -0.1315, 0.0727, -0.731, 0.1285, 0.0483, 0.0791, 0.0557, 0.2292, 1.2145, 1.3865, 0.0252, 0.1036, -0.0139, 0.0933, 0.0941, -0.3259, 0.1436, -0.0168, -0.1414, -0.0292, -0.0285, 0.1264, 0.0019, 0.1491, 0.0975, -0.0322, 0.2436, 0.3203, 0.0221, 0.0853, 0.0866, 0.2491, 0.7543, 0.0, -0.0371, 0.0608, 0.1298, 0.5032, 4.5467, -0.0032, -0.5598, -0.0833, 0.0823, -0.1251, -0.0437, 0.1722, -1.5367, 0.1601, 1.0117, 0.0, 0.0169, -0.137, 0.1742, 0.6815, 0.2349, -0.0448, -0.0717, 0.0599, 0.0575, 0.0772, -0.0644, 0.1083, 1.385, 0.1282, 0.3204, -0.0016, 0.042, 0.0734, 0.0782, 0.1609, 0.123, 1.0588, 0.0389, 0.0446, 0.0865, -0.237, 0.1181, 0.0543, 0.0704, 0.1218, 0.0459, 0.0281, 0.0343, 0.1011, 0.0824, -0.1066, 0.0449, 0.1028, 0.1891, 0.236, 1.5733, -0.5418, 0.0976, -0.0284, -0.1235, -0.5068, -0.1069, 0.0405, 0.0221, 0.0783, -0.0004, 0.2456, 0.0411, 0.0839, 0.0666, 0.182, 0.072, -1.6572, -0.0211, -0.0352, 0.1359, -0.0378, 0.0615, -0.2038, 0.0634, 0.1499, 0.1611, -0.0552, -0.0806, -0.4001, -0.0767, 0.2742, -0.1728, -0.0216, -0.0525, 0.1127, 0.1298, -0.0403, 0.1314, 0.0879, 0.1112, 0.1453, 0.1512, 0.2085, 0.1754, 0.0822, 0.2181, 0.18, 0.0578, 0.0718, -0.3533, -0.0744, 0.0397, 0.0138, 0.3801, 0.0728, 0.0419, -0.0606, 1.8097, 0.0685, -0.0051, 0.0661, 0.143, -0.7561, 0.1071, 0.0386, -0.015, 0.1164, 0.061, 0.1002, 0.0697, 0.0578, 0.3739, 0.0762, -0.2913, -0.0919, -0.0244, 0.149, 0.0688, 0.0918, 0.1223, -0.0075, -0.0213, 0.0867, 0.0029, -0.0304, 0.1057, -0.1076, -0.1236, -0.1756, 0.1093, -0.0336, 0.0602, -0.0338, 0.2357, 0.0001, 1.1223, -0.1831, 0.184, 0.0491, 0.11, -0.1153, 0.0859, 0.0645, 0.0227, 0.2732, 0.0631, 0.0445, 0.2718, 0.0084, 0.0977, -0.6704, 0.0847, -0.126, -0.104, -0.0936, -0.1388, 0.0477, -0.1095, 0.216, 0.0964, 0.1085, -0.3098, -0.203, -2.7783, 0.194, -0.0899, 2.623, -0.0216, -2.1343, -0.2452, 0.2385, -0.1345, -0.3713, 0.0774, 0.1721, 0.2599, -0.1855, 0.1318, 0.41, 0.0545, -6.3401, -0.0251, -0.0139, -0.0236, -0.0669, -0.057, -0.069, -0.1819, 0.0528, 0.0717, 0.1692, -0.1056, 0.0957, 0.1425, 0.0013, -0.0527, 0.1592, 0.1091, 0.1596, -0.0219, 0.1354, -0.0298, -0.0406, 0.1342, 0.0657, 0.154, 0.0486, -0.0534, -0.0868, 0.0371, 0.1796, 0.0436, 0.086, 0.0058, -0.0166, -0.061, 0.1308, 0.0465, -0.0702, -13.7364, -0.0526, 0.2309, 0.0771, -0.9261, 0.1099, 0.1397, -0.2803, 0.1082, -0.0628, 0.032, -2.2212, 0.0489, -0.2885, 0.1128, 0.021, -0.0112, 0.1429, -0.5217, -0.0133, 0.1438, 0.0089, 0.2105, -0.0263, -0.1635, 0.0987, 0.0726, -0.2197, -0.0309, -0.2879, 0.0751, 0.1164, -5.4221, 0.0796, 0.0461, 0.1353, 0.0412, 0.1924, 0.0826, 0.0676, 0.2715, -0.0055, 0.061, 0.0765, 0.0003, 0.0028, -0.1615, 0.0835, 0.1933, -0.1574, 0.0, 0.1078, 0.2423, -0.0147, -3.285, -0.096, 0.1234, -0.0005, 0.0009, -0.1571, -0.0452, -0.1507, 0.1222, 0.0777, -0.0788, 0.2375, 0.0899, 0.1598, 0.6679, 0.1268, 0.0, -0.0499, -0.3933, 0.1661, 0.0444, 0.1296, 0.0474, 0.0338, 0.039, 0.0675, 0.0131, 0.0095, 0.3869, 0.1128, 0.4126, 0.0138, 0.1027, -0.1668, 0.1021, 0.0908, 0.0718, 0.0043, 0.1003, 0.0192, -0.0486, -0.1655, 0.0887, 0.1202, -0.092, -3.2835, -0.0708, -0.0312, 0.1598, 0.6852, -0.0369, 0.0036, 0.1262, 0.0997, 0.0029, 0.1855, 0.0669, 0.0874, -0.0704, 0.0664, -0.0443, -0.0338, -2.0629, -1.2147, 0.7385, -0.0574, 0.0711, 0.3198, 0.1753, -0.1971, -0.3187, -0.4599, -0.4316, 0.0317, 0.0528, -4.698, 0.0179, -0.0236, -0.0357, 0.6546, 0.0236, 0.0614, 0.0146, -2.1598, -0.2849, 0.0943, 0.2172, -0.1751, -0.0376, -0.0565, -0.0458, 0.0, 0.1511, -0.0416, -0.0262, -0.8969, 0.0, -5.7607, 0.0, 0.1274, -0.0227, 0.1208, 0.4312, 0.3076, 0.3401, -13.8508, 0.1287, 0.1838, -0.0909, 0.057, 0.1794, 0.0374, 0.2279, 0.0861, 0.0023, 0.0, 1.8542, 0.1096, 0.0829, 0.2852, 0.0442, 0.2832, 0.0092, -0.1103, 0.115, -0.1131, 0.0418, -0.0498, -0.6484, 0.0989, -0.087, 0.0315, 0.0454, -0.0147, -0.0483, 0.0, 0.0379, -0.0264, -0.0017, -0.0093, 0.004, -4.0983, 0.0, 1.3778, -0.2327, 0.0557, -0.0002, -2.0003, 0.0738, 0.0698, 0.0687, -0.1365, -6.1992, 0.0836, 0.0, 0.0253, 0.119, 0.1525, -0.1797, 0.1011, -0.0189, 0.1399, 0.2211, 0.1952, 0.0238, 0.3517, -0.0026, -0.0083, -0.0657, 0.0086, -0.1573, -0.0631, 0.1557, -0.3416, -0.3384, -0.209, -0.0329, -0.1261, -0.0884, 0.1716, 0.1151, 0.1327, 0.0961, -0.0148, -0.4916, -2.3403, -0.0782, 0.0006, 0.257, 0.1302, 0.0176, 0.3661, -0.1914, -0.0708, 0.1411, 0.0, -0.0621, 0.1875, -0.0158, 0.0133, 0.1975, -0.0516, 0.1136, -0.0799, 0.0875, 0.1548, 0.0594, -0.1122, -0.0355, 0.0133, 0.1271, -0.0046, 0.0754, -0.0013, 0.0937, 0.0888, 0.0711, 3.7558, -0.0375, -0.0907, 0.0724, 0.296, 0.1933, 0.0366, 2.7412, 2.2675, 0.0369, 0.0485, 0.119, 0.1646, 0.1815, -0.2087, 0.0464, -0.0727, -0.0006, 0.0523, -0.028, 0.0656, -0.1497, 0.0212, 0.0095, 0.1077, 0.2168, 0.0924, 0.454, 0.0938, 0.2634, 0.0748, 0.2682, 0.1297, 0.2368, -0.025, 0.1569, 0.131, 0.0815, -0.0447, -0.5896, 0.0446, -0.2015, 0.098, 0.5761, 0.0743, -0.5973, 0.7897, 0.0349, 0.0625, 0.1274, 0.0591, -0.7866, 0.0138, -0.2264, 0.0936, 0.126, -1.148, 0.2166, 0.25, -0.172, -0.0679, -0.1608, -0.0576, -0.0483, 0.0775, 0.2551, -0.1375, 0.043, 0.0385, -0.333, -0.1662, 0.0745, 0.092, 0.0412, 0.1334, -0.1699, 0.1901, -0.1181, 0.0268, -0.4612, -0.0112, -0.0045, 0.0953, 0.1552, 0.119, 0.4039, -1.0738, 0.1044, 0.0701, 0.2334, 0.1385, 0.1697, -0.4834, -0.003, 0.1237, -0.0672, 0.4995, -0.0455, 0.0074, 0.2953, 0.0537, 0.073, -0.1827, 0.1107, 0.2247, -0.0125, 0.1165, -0.1979, 0.0711, 0.012, 0.0545, 0.1735, 0.067, 0.1234, -0.0748, 0.114, 0.0486, -0.1051, 0.0306, 0.096, 0.0685, 2.2558, 0.0511, 0.0077, 0.3284, -0.1564, -0.2433, 0.4074, -0.0413, 0.0627, 0.0574, 1.9343, -0.0152, 0.0912, 0.0293, -3.3454, -0.0299, 0.0571, 0.0756, -0.073, 2.4358, 0.1257, 0.1038, 0.142, 0.2521, 0.2856, -0.0591, 0.1486, 0.2374, 0.0779, -0.0156, 0.1522, -0.7759, -0.0024, -0.0299, -0.08, 1.2033, -0.1719, -2.6614, 0.1252, 0.0, -0.6735, 0.0371, -0.1352, 0.1309, 0.0203, 0.3037, 0.1491, 0.0932, 0.1002, 0.1142, 0.0789, 0.0951, -0.0461, 0.4233, 0.0649, 0.2206, 0.0, -2.973, 0.0897, -0.0905, -0.2889, 0.0214, 0.0766, -0.0922, -0.0354, 0.2742, 0.2096, 0.3181, 3.3618, 0.1666, -1.0304, 0.0744, 0.3255, 0.0362, 0.2481, -0.0504, -0.1347, -0.1617, 0.0856, 0.137, -0.1167, 0.031, 0.0169, 1.3408, -0.002, -0.1324, 0.0, 0.2275, 0.058, -1.5362, 0.0, -0.1291, 0.2158, 0.0825, 0.1162, 0.3597, 0.0481, -0.6138, -0.0769, -0.0271, 0.1016, 0.106, -0.0128, 0.0616, -0.418, 0.1657, -0.1028, 0.072, -0.0289, -0.0574, -0.0991, 0.0438, -0.3385, 0.1251, -0.0311, 0.1042, -12.9045, -0.0604, 0.1843, -0.0306, -0.1047, -0.1255, -0.6386, 0.1008, -0.0743, -0.0818, 0.0901, -0.1064, 0.0199, 0.1825, 0.3582, -0.3738, -0.1159, 0.0527, -1.3612, 0.0829, -0.0428, -0.025, 0.0582, 0.1002, 0.1089, 0.1724, -0.3252, 0.1007, 0.0865, 0.0201, -0.0781, 0.0537, -0.0849, 0.2408, 0.0524, -0.0598, 0.1395, 0.1171, 0.0716, 0.0304, -0.2359, -0.0131, 0.0199, 0.2718, 0.0006, 0.3038, 0.1939, 1.3362, 0.1598, -0.521, -0.0692, -0.1869, -0.2608, 0.1659, -0.2505, 0.3635, 0.2813, 0.0115, 1.7149, -0.229, -0.3732, -0.0686, 0.0, 0.1999, 0.1889, -11.9764, -0.1977, 2.5528, -0.1001, -0.093, -0.2032, -0.2482, -0.102, 0.1562, 0.0, 0.0493, 0.034, 0.0566, -0.0962, -0.3318, 0.0663, 0.0745, 0.065, -0.0431, -0.0967, -0.6629, 0.1197, 0.0007, -0.0464, -1.5604, -0.1193, 0.1344, -0.0137, 0.1107, 0.1918, -0.0045, -0.1635, 0.0, 0.0662, 0.101, -0.0916, 0.1238, 0.1017, 0.0587, -10.08, -0.0001, 0.0492, 0.1861, 0.0294, 0.1158, -2.9125, 0.009, 0.0464, -0.0464, 0.264, 0.0598, -0.2721, -0.1727, 0.1411, -0.5947, 0.0506, -0.0606, 0.0706, 0.0563, 0.0457, -0.6664, 0.0824, 0.004, -0.5955, -0.6361, -3.1197, 0.0033, 0.03, 0.0391, -0.129, 0.0189, -0.0538, 0.4265, -0.9596, -0.1511, 0.0, 0.1296, 0.0908, 0.3047, -0.2022, 0.3958, -0.1178, 4.525, 0.1097, 0.1975, 0.0854, 0.1169, -0.1473, 0.005, 0.453, -0.0867, -0.1461, 0.1626, 0.0531, 0.0348, 0.3587, 0.2915, 0.2252, -7.9792, 1.3357, 0.0877, 0.0696, -0.1421, -0.0755, -0.4169, 0.0, 0.621, -0.0714, 0.0713, -0.0288, -0.0091, 0.1111, 0.0632, 0.0043, 0.4523, 0.4136, 0.1001, 0.0171, 0.0476, 0.0246, 0.176, 0.1248, 0.2348, 0.2303, 0.0044, 0.0595, -0.0221, -0.0369, -0.0162, -0.0381, 0.0424, 0.0344, 0.1053, 0.1924, 0.2473, -0.0574, -2.7008, -0.032, 0.0165, 0.0863, 0.1688, 0.5316, 0.058, -0.1118, -0.0692, 0.1483, -0.3413, -12.2108, 0.5473, -0.0621, -0.0166, -0.03, -0.0697, 0.0848, 0.1961, 0.0435, 0.1378, 0.0651, 0.0874, -0.031, 0.0982, 0.06, -1.1655, -0.7363, -1.013, 0.0687, -0.0655, 0.2502, 0.1016, -0.0369, 1.2367, -0.0011, 0.1875, 0.0959, 0.0673, 0.0072, 0.1844, -3.5678, 0.1043, -0.03, -0.185, -0.17, 0.1636, 0.1808, 0.0774, 0.0726, -0.0786, -0.0257, -0.0035, -0.2635, -0.1073, 0.0204, -0.1466, -0.1541, 0.2363, -0.2885, 0.1434, 0.0869, -0.2945, 0.1228, -0.0783, -5.1542, -2.8123, 0.157, -0.2949, -0.1483, -0.1929, 0.0535, 0.1852, -0.3552, 0.0121, -0.1622, 0.0042, 0.0784, 0.1761, 0.0682, 0.0778, 0.0439, 0.1418, 0.023, -0.1485, 0.1061, 0.002, 0.1978, 0.0285, 0.0901, -0.0637, -0.0991, -0.7323, 0.0191, -0.0174, 0.0, 0.0612, 0.1699, -0.0504, -0.0785, 0.4839, 0.955, 0.1127, -0.0337, -0.1271, -0.2108, -0.0648, -0.0028, 0.0811, -0.1696, -0.0225, 0.1667, 0.2055, 0.048, 0.0745, -0.0758, 0.262, 0.0212, 0.1256, 0.0763, 0.0759, -0.1402, 0.0, 0.1209, -0.2657, 0.0542, 0.019, -0.23, 1.3175, 0.0942, 0.0431, 0.1321, 0.2401, -0.0347, 0.095, 0.2249, 0.0561, -0.0364, -0.0689, 1.6436, 0.0785, -0.6763, -0.265, -0.1777, 0.0141, -0.0348, 0.0761, 0.3255, 0.0837, -0.1017, -0.0438, 0.033, 0.0523, 0.0817, -0.0012, -15.2125, -0.2199, -0.0892, 0.0681, 0.1251, 0.0, 0.0518, 0.0843, 0.2535, 0.7269, 0.0589, 0.276, 0.6756, -0.0671, 0.1503, -0.1524, 0.054, -0.0913, 0.1727, -0.5832, 0.0555, 0.2778, 0.3679, 0.2365, 0.2123, 0.3424, 0.1816, 0.0, -0.055, -0.3373, 0.5204, 0.0143, -1.1262, 0.6335, 0.2309, 0.1545, 0.1093, 0.3929, 0.0148, -0.006, -0.0282, 0.1178, 0.2366, 0.033, -0.0045, 0.0231, 0.0751, 0.2424, 0.1409, 0.0535, 0.0109, -0.1117, -0.3105, -0.0021, 0.019, -0.0342, 0.105, 0.0, 0.1961, -0.5727, 0.0435, 0.152, 2.6791, -0.0433, -0.0059, -0.5583, 0.1643, 0.2954, -1.608, 0.0, 0.0268, 0.1055, 0.083, -0.1169, -0.1105, -0.0423, 0.1884, 0.0, 0.0, -1.189, -0.0692, 0.1607, -0.1476, 0.087, 1.0098, 0.0564, 0.2579, -0.0625, 0.384, 0.0349, -0.0182, -0.0673, -0.0381, 0.1365, 0.0895, -0.2414, -0.0787, -0.0603, 0.124, 0.037, -0.045, 0.0504, 0.0172, 0.0622, 0.678, 0.023, -0.488, -0.2915, 0.049, -0.0694, -0.0652, -0.0891, 0.0309, 0.0627, -0.0121, 1.7041, 0.0928, 0.1889, -0.0454, -0.0501, 0.0915, -0.8522, 0.0708, -0.2394, 0.019, 0.1111, 0.1379, -0.0987, 0.0512, 0.0314, 0.059, -0.0178, 0.0188, 0.1394, 0.1528, 0.1365, 0.0406, 0.4211, -0.0741, 0.0632, 0.0063, -0.3762, 0.0668, 0.075, 0.048, 0.165, -0.1018, 0.0421, 0.1956, -0.2943, 0.0, 0.4412, -0.1617, -0.0707, 0.2531, 0.4668, 0.3987, 0.3131, -0.3277, -0.1227, 0.1067, 0.2739, -0.0057, 0.8851, -0.0155, -2.0093, 0.0058, 0.14, 0.0172, -0.1315, 0.1182, 0.2035, 0.2153, 0.1878, 1.7136, 0.4083, 0.0638, -0.1287, -0.033, 0.1294, -0.9648, 1.9582, -0.1247, 0.0215, -0.0217, 0.3094, -0.1138, -0.2506, 0.1628, 0.1276, 0.2046, -0.0308, -0.0187, 0.0507, 0.0541, -0.9812, -0.4004, -0.2058, 0.0, 0.2288, 0.1783, -0.6668, 1.1767, 0.1493, 0.1738, 0.004, 2.8, -0.0853, 0.481, 0.3659, -0.0872, -0.6317, -3.1423, -0.0613, -0.041, 0.1416, -0.0642, -0.1711, -0.6003, 0.0, 0.2746, 0.0833, 0.1394, -0.145, -0.0381, 0.0543, -0.1443, 0.116, -0.0061, 0.1183, -3.4796, 0.1652, 0.1119, 1.2967, 0.2516, 0.1246, 0.0713, -0.0933, -0.4782, -0.2035, 0.0915, 1.0565, 0.9565, -0.2273, -0.0089, 0.3624, 0.0404, 0.227, 0.133, 0.1137, 0.362, 0.2357, 0.3665, -0.0351, 0.1751, 0.0215, 0.1141, -0.158, 0.0893, 0.2866, 0.1356, 0.0947, 0.0344, -0.0468, -0.4517, -0.5427, 0.1345, 0.0, -0.0377, -0.0656, 1.0228, -0.2466, 0.1498, 0.7575, 0.021, -0.1595, 0.0637, 0.0, -0.0877, 0.244, 0.4219, 2.0461, 0.0019, 0.0357, 0.2101, -0.1123, 0.1755, 0.0401, 0.1867, 0.2302, 0.1265, 0.2841, 0.0733, 0.1003, 0.0714, -0.1005, 0.0, -0.582, 0.0, 0.0112, 0.0131, -0.0008, 0.0511, 0.0159, 0.0198, 0.0511, -0.0305, -0.1619, -0.0642, 0.0221, -0.06, 0.1279, 0.1206, 0.0172, 0.0131, 0.092, 0.1151, 0.0097, 0.7378, 0.13, -0.0312, -0.0753, 0.147, 0.0933, 0.083, 0.0129, 0.0961, -0.0111, 0.1754, 0.1054, 0.0689, 0.0669, 0.5491, 0.0558, -0.0466, -0.1679, 0.0628, -0.2034, 0.3999, 0.22, 0.1357, -0.0405, -0.1467, 0.4352, 0.0802, 0.0925, -0.0413, -0.019, 0.0733, 0.1039, -0.2209, 0.022, -1.9753, -0.0528, -0.0456, -0.0189, -0.116, -0.1608, 2.299, 0.2439, -0.1445, -0.0483, 0.0347, -0.3308, 0.0387, -0.1566, 0.016, 0.0, 0.1105, -0.0099, 0.1552, 2.31, -0.0714, 0.0033, 0.1341, 0.0293, 0.1837, -2.4258, -0.0064, -0.0208, 0.2135, 0.122, 0.1356, -0.6805, 0.1738, 0.009, 0.1225, -0.0895, -0.064, -0.0526, -0.2758, 0.0155, 0.211, 1.5868, 0.0046, 0.0206, 0.0693, 1.1433, -0.0574, 0.0334, 0.1054, -0.0782, 0.2627, 0.1018, 0.0822, -0.1885, -0.212, 0.0838, -0.2279, -0.1567, 0.1093, -0.3852, -0.0131, 0.0735, 0.1375, 0.0808, -0.0083, 0.0176, 0.0819, -0.4066, -0.0034, 0.0822, -0.3142, 0.0283, -0.3289, -0.4372, -12.7533, -0.1992, 0.0, -0.5182, -0.1365, 0.1345, 0.088, 0.0581, -0.0454, -3.0964, -0.099, 0.0, 0.0726, 0.4429, -0.0399, -0.0644, 0.6561, -0.2928, 0.0853, -5.1878, -1.2, -0.3158, 0.0298, -0.0904, 0.0128, 0.4467, 0.1839, -0.0864, -0.1379, 0.0, 0.1671, -0.0135, 0.0975, 1.7646, -0.0745, 0.1102, 0.0797, 0.0, 0.0799, 0.0294, -0.1858, -0.0588, 0.1397, 0.1308, -0.0296, 0.0511, 0.2339, 0.9845, -0.3053, 0.2345, 0.3541, 0.6639, -0.5931, 0.0864, -0.8337, 0.1009, -0.0065, 0.0608, 0.1071, -0.0052, -0.1072, -0.1505, 0.0805, 0.0052, -0.1759, -0.0331, -0.0379, 0.0076, -0.0174, -0.0357, 0.1083, 0.0585, 0.0302, -0.2649, 0.0891, 0.0, 0.2099, 0.0, 0.0903, 0.0, -0.0299, 0.0632, 0.127, 0.3789, 0.0, -2.98, 0.0, -0.1408, 0.0, 0.1252, -15.1925, 0.0, 0.1629, 0.1856, -1.2114, 0.0858, 0.0118, 0.0446, -0.0001, -0.8779, 0.0878, -0.0512, 0.1391, -0.1979, 0.0269, 0.3192, -0.1926, 0.0912, 0.0479, -0.0055, -0.0185, -2.1513, 0.1546, 0.028, 0.0895, -0.1641, -0.4103, 0.1307, 0.1476, 0.1707, 0.1569, 0.0535, 0.1666, 0.0563, -0.07, -0.0323, 0.1443, 0.0003, 0.0129, 0.1854, 0.0061, -0.1949, 0.1231, -0.0668, -0.8437, 0.0367, 0.1256, 0.0082, 0.1349, 0.0, 0.7936, 0.0808, -0.1335, 0.412, 0.1054, -0.0714, -4.6278, 0.1356, -0.0716, -0.5321, 0.0811, -0.1279, 0.0401, -0.0666, -0.1044, -0.0438, 0.1193, 0.008, 0.0194, -0.0108, -0.1731, 0.3846, -0.0752, 0.3105, 0.0079, -0.6975, -0.2965, -0.2334, 0.3085, 0.1398, 0.1251, 0.238, 0.1255, 0.0246, 0.0124, 0.0139, -0.0656, -0.2257, -0.086, 0.1603, 0.1551, 0.2484, 0.4028, 0.0491, 0.1613, 0.1783, -0.1227, 0.3915, -0.0743, 0.0614, 0.0859, -0.0087, -1.9106, 0.1818, 0.1558, -0.0168, 1.906, 0.2299, -2.1569, 0.206, -0.0088, -1.3997, -0.0315, -0.0316, -0.0614, -0.0604, -0.1594, -0.0646, -0.0252, -0.1848, -0.6195, -0.0543, 0.1219, 0.0, 0.0665, 0.0899, 0.0693, 0.0892, 0.0675, -3.0675, -0.0452, 0.1633, 0.1273, -0.0769, -0.0786, -0.0397, -0.0804, 0.0, 0.0306, 0.0066, -0.0876, -0.4261, 0.151, 0.1421, 0.1986, 0.0808, -0.5278, 0.0878, 0.1599, 0.1237, 0.093, -7.0, 0.0631, -0.1771, 0.0521, 0.0376, -0.4941, 0.0065, 0.0904, 0.0618, 0.1463, 0.0162, -10.9725, -0.1446, -0.0455, 0.0648, 0.0187, -0.0734, 1.4236, 0.0847, 0.1256, -0.0566, 0.1173, -0.179, 0.2532, -0.8749, 0.124, -0.3084, 0.097, 0.1372, 0.0737, -0.1615, 0.1991, 0.0844, 0.1253, -0.0184, 0.0917, 0.1018, -0.0163, 0.0688, 0.035, -0.2886, 0.0356, 0.1582, 0.0271, 0.065, 0.0787, -0.0269, 0.2951, -0.1318, -0.5396, 0.0512, -1.0407, 0.1431, 0.0795, -3.7563, 0.031, -0.239, -3.723, -0.1984, 0.0528, -0.0451, -0.0482, 0.129, -0.0452, 0.0127, -0.2484, 0.1718, 0.062, -2.6251, 0.0835, 0.1215, 0.2319, 1.3825, -0.0448, -0.0955, -0.2847, -0.1049, -0.0004, 0.0817, 0.1819, -0.0842, 0.0518, 0.1092, 0.1927, 0.0177, 0.1057, -0.5741, 0.0109, 0.027, 0.1571, 0.1356, 0.0311, 0.0122, -0.056, 0.0371, -0.0511, 0.0236, 0.3267, 0.0364, 0.1215, -0.596, 0.0364, -1.8282, -0.5416, -2.1504, -0.2145, 0.1133, 0.1471, 0.1079, 0.1295, -0.0379, 0.0819, -4.2834, -0.0803, 0.1482, 0.1014, 0.1197, 0.1246, -0.0935, 0.0, 0.2462, 0.0153, -0.0454, -0.1278, -0.1194, -0.1111, -0.1147, -0.111, -3.0175, 0.1187, -0.1214, -2.3388, 0.0732, -0.5742, 0.1029, -0.0512, 0.0009, 0.1784, 0.0947, 0.1805, -0.0391, 0.2374, -0.1099, 0.252, 0.0, 0.0979, 0.0627, 0.1171, 0.2733, 0.2714, 0.0446, -0.075, -0.0244, 0.1596, -0.0782, 0.1544, -0.3602, -0.0406, -0.0368, -0.1676, -0.0594, 0.0877, 0.0, 0.2351, 1.6702, 0.1016, -0.1573, 0.035, 0.0428, -0.0333, 0.1586, 0.0369, 0.0614, -0.0162, -0.0665, 0.0345, -1.0727, -0.5276, 0.1024, 0.2379, 0.2297, 0.1017, -3.2176, -0.2406, -0.0671, 0.2379, -0.0061, 0.1033, 0.1028, 0.3695, 0.5583, -0.0969, 0.0447, -0.0036, 0.0494, 0.0, 0.3043, -0.4081, -0.3712, 0.5388, -0.1601, -0.1853, 0.017, 0.13, -0.0219, 0.2864, 5.1327, 0.0234, -0.0325, 0.0549, -0.0454, 0.0659, 0.1787, 0.0968, 0.0484, -0.0882, 0.1256, 0.0583, 0.1654, 0.0362, -0.0769, -0.0638, -0.3918, -0.1681, 0.1473, 0.1806, 0.0605, -0.581, -0.6643, 0.0047, -0.0267, 0.2499, -0.0114, 0.4984, 0.243, 0.1928, -0.0444, -0.0739, -0.1308, -0.1297, 2.4853, -0.0274, -0.0876, -0.0245, 0.012, 0.0914, 0.107, 0.0584, 0.0775, 0.107, -0.4598, -0.2295, 0.2959, 0.1961, 0.069, 0.0918, 0.0984, 0.2647, 0.1193, -0.044, 0.1081, -0.0536, -0.1052, -0.0061, 0.0, -0.2128, -0.0164, 0.0348, -0.0379, -0.1226, -0.0581, -0.0639, -0.096, -0.151, 1.5408, 0.4403, -0.1074, -0.4194, -0.1423, 0.2908, -0.0856, -1.2049, 0.0, 0.1059, 0.142, 0.3023, 0.2145, -0.0129, 0.119, 3.9588, 0.1377, 0.6116, 0.0364, -0.0147, 0.2224, 0.1586, -0.1526, 0.4308, -0.1031, -0.0584, 0.1052, 0.798, 0.0814, 0.0301, 0.0208, 0.0304, 0.0298, -0.2849, 0.2947, 0.019, 0.2157, -0.5715, 0.0, -0.0704, -0.5652, 0.3678, 0.2087, 2.5246, -2.5633, 0.0744, -0.2937, -0.3792, -0.332, 0.2099, 0.4458, -0.0442, -0.0387, -0.0879, 0.1141, -0.373, -0.0243, 0.0998, 0.0943, 0.0958, 0.1548, 0.1559, -0.0144, 0.9008, 1.66, 0.7807, 0.2152, 0.0221, -0.032, 0.0911, 0.2001, 0.1595, -0.0764, 0.396, -0.0205, 0.0, 0.0948, -0.0573, -0.0893, -0.0126, -0.0486, 0.0392, 0.1184, 0.0, 0.2109, 0.1074, -0.2983, -0.0027, 0.1297, 0.4315, 0.0542, -0.1419, -0.0321, 0.0381, 0.0051, 0.0, 1.4049, -7.42, 0.0403, -0.2124, 0.1325, -0.477, 0.247, -0.3123, 0.2934, -0.0343, 0.2869, 0.006, -0.0264, -0.0188, 0.1008, 0.4985, -0.0869, 0.0438, -1.02, 0.1528, -0.0785, 2.4758, 0.0192, 0.1427, 0.1731, 0.048, 0.1774, 0.0989, -0.1478, 0.1153, -0.0253, 0.0316, 0.0179, 0.0843, -6.0025, 0.1412, 0.1125, 0.1303, 0.1247, -0.0688, -0.6965, 0.0992, 0.0896, 2.0475, 0.1825, 0.035, 0.2812, 0.3565, 0.1102, -0.031, 0.0464, 0.073, -0.3673, 0.0973, -0.3429, -1.4767, 0.7554, -0.4562, -0.2409, 0.0985, 0.0341, 0.1431, -2.565, 0.0306, 0.1394, 0.0792, -0.4478, -0.129, -0.075, -0.0344, 0.1506, 0.1174, 0.4819, 0.0451, 0.0824, -0.3088, -0.1373, -0.0808, -0.2153, -0.0501, -0.1718, -0.0371, -0.1671, -0.3783, -0.06, 0.0, 0.1733, -0.2953, 0.3826, 0.0767, -0.2071, 0.1212, 0.0502, 0.0182, -0.1834, 0.0056, -1.5935, 0.17, 0.0656, 0.4001, 0.1751, 0.0211, -0.7597, 0.1266, -0.0308, 0.0796, -0.1922, -0.018, -0.0688, 0.1187, 0.1378, 0.1296, -0.0694, -0.0002, 0.0274, -0.1177, 0.1071, 0.147, -0.6533, -0.0839, -0.1284, 0.0574, -3.1052, -0.1196, 0.0, 0.1137, 0.0574, -0.0701, 0.4817, -0.0126, 0.1599, -0.1455, -0.0582, -0.1606, -0.1294, -0.0666, -10.837, 0.1052, 0.0587, -0.0668, -0.0712, -0.1703, -1.4297, -1.2112, 0.1131, -0.2015, -0.0573, -0.0312, -0.099, -0.0373, 0.0841, -0.9915, -0.0869, 0.1146, 0.1506, -0.4625, -0.1004, 0.1766, 0.1125, 0.1533, -0.4943, -0.0493, 0.1148, -1.0623, -0.0612, 0.0895, 0.1196, 0.1482, 0.0813, -0.1155, -0.0251, -0.6943, -0.1643, -10.4717, 0.0, 0.0687, -0.102, 0.132, 0.073, -0.0814, -0.0632, -0.0537, 0.046, 0.1278, 0.0, 0.0865, 0.1377, 0.106, -0.393, 0.1086, 0.0148, -2.2564, 0.094, 0.0073, 0.11, -0.0934, 0.2117, 0.2304, -0.0457, 0.3905, -0.0514, -0.1737, 0.0166, -0.0549, -0.0553, -0.3568, -0.0466, 0.0639, 0.0203, -0.1015, 0.1336, -0.8503, -0.0466, -0.2734, 0.0628, -0.3829, -0.1514, 0.1378, 0.2201, -1.1421, 0.0116, 0.1484, 0.167, 0.049, -0.125, 0.2493, -0.0358, 0.0704, -0.0151, -0.277, 0.1786, 0.1161, 1.6419, 1.8415, -0.0664, 0.1114, 0.0569, 0.0281, 0.1662, 0.1709, 0.099, 0.1324, -0.0258, -0.0631, 0.0358, -0.5843, 0.0465, 0.1106, 2.2167, 0.0404, 0.1061, -0.7533, 0.0668, 0.0725, 0.099, 0.0878, 0.1812, 0.087, -0.1413, 0.171, 0.1147, -0.7105, 0.2442, 0.1539, 0.8075, 0.0071, 0.0256, -0.2142, -0.0343, 0.1085, -16.162, 0.0321, 0.0666, 0.1004, 0.0097, 0.0064, -0.0431, -0.3405, 0.0366, 0.0118, 0.1527, 0.0905, 0.1109, 0.1162, 0.058, 0.1367, 0.128, 0.4415, 0.2864, 0.016, 0.715, 0.0841, 0.0422, 0.0213, 0.0412, 0.1417, -0.4286, 0.0565, 0.073, 0.0, 0.2323, -0.6553, 0.2213, 0.1231, 0.0767, 0.0962, 0.064, 0.1634, 0.1278, 2.6994, 0.0661, 0.0538, 0.0, -1.9935, 0.2781, 0.0, 0.2997, 0.1968, 0.2553, 0.1851, -0.0312, -0.0892, -0.9984, 0.07, 0.0172, -0.0468, 0.0827, -0.0828, 0.1324, -0.0376, 0.1628, 0.4295, 0.0, 0.1619, 0.0301, -0.0111, 0.1235, 0.3082, 0.2728, 0.0595, 0.1055, 0.2036, 0.0912, -4.7794, 0.0852, -0.0052, 0.0746, 0.0259, 0.0279, 0.0848, 0.1622, 0.0809, 2.2403, -0.5234, 0.1177, -1.7146, 0.1119, -0.1295, 0.1261, -0.1751, 0.0, 0.3264, 0.1494, 0.2666, 0.0985, 0.0542, 0.2141, 0.1168, 0.1146, 0.122, 0.1711, 0.086, 0.1413, 0.1417, 0.0979, 0.1018, 0.0938, 0.0601, 0.447, 0.0368, 0.0129, 0.0354, -0.1994, 0.0434, 0.0878, -0.0899, -0.1703, 0.0756, -0.1088, -0.1682, 0.0392, 0.1054, 0.203, 0.1276, 0.0679, 0.0305, 0.0949, 0.0, -0.6117, 0.0359, 0.2223, 0.3308, 0.0, -0.5645, -0.1486, 0.0334, 0.2996, -0.2694, 0.0917, 1.043, 0.1494, 0.0832, 0.1117, 0.1876, 0.2181, 0.1749, 0.0306, 0.1256, -0.0684, 0.1972, 0.3275, -0.0556, -1.9916, -0.0215, -1.7878, 0.1699, 0.1778, 0.0712, -0.4545, 0.0764, 0.0748, -0.1773, -0.2436, -0.0541, -0.0953, 0.0515, 0.0572, 0.0872, -0.1124, 0.0832, -0.0135, 0.1269, 0.0144, 0.1979, -0.2398, -0.1826, -0.1058, 1.9285, -0.0827, -0.0552, 0.126, 0.1451, 0.0559, 0.469, -0.0663, 0.0482, -0.4753, 0.2069, -0.117, -0.111, 0.1315, -0.0132, -0.5062, 0.0242, 0.0885, 0.1852, 0.1089, -12.1, -1.2668, 0.1647, 0.1615, 0.1666, 0.0453, 0.0925, 0.0784, -0.015, 0.1974, 0.5309, -0.005, -0.0596, 0.2386, -12.9367, 0.0229, 0.1102, 0.1541, 0.055, 0.1696, -1.7608, 0.0651, 0.0781, 0.0657, 0.046, 0.1578, 0.0672, -0.2879, -0.2907, 0.0504, -0.4091, 0.0108, 0.0934, 0.0, -0.5982, -0.5968, 0.6173, -0.3419, 0.1432, 0.0528, -0.211, 0.1222, -9.6375, 0.139, -0.1391, -0.1007, 1.7834, -0.0158, -0.0151, -0.0355, -0.3701, -0.1155, -0.052, 0.1707, -0.2645, -0.0107, -0.0187, -0.0952, 0.1196, 0.0941, 0.0107, 0.038, 0.0313, 0.1345, -0.0177, -0.1145, -0.0294, -0.0586, -0.0874, -0.0318, -0.4928, 0.0298, 0.0081, -0.6037, 0.129, -0.8061, 0.0927, 0.1594, -0.3061, 0.0136, 0.0455, -0.1183, -0.0452, 0.5409, -0.0137, 0.2355, 0.0009, 0.0677, 0.0313, -0.0398, 0.3485, -0.0497, 2.0575, -0.0393, 0.2493, 0.1607, -0.0915, 0.0034, -0.0325, 0.2771, 0.008, 0.1949, 0.102, 0.0276, -0.0949, -0.0243, 0.0981, -0.0021, 0.2713, 0.046, -0.363, 0.2077, 0.0786, -0.0186, 0.0035, 0.0, -0.2155, -0.2927, -0.0567, -0.0959, 0.1621, 0.0829, 0.0558, 0.183, -0.1386, -0.0158, 0.141, 0.3022, 0.0869, 0.1022, -0.0342, 0.0, 0.1156, 0.1174, 0.0074, -0.104, 0.0075, -0.0415, -0.1107, 0.1286, -0.0424, 0.4241, -0.0387, 0.0096, 9.6582, -1.8168, 0.0895, -0.0716, 0.0673, 0.2564, 0.317, 0.0, 0.0888, 0.0459, -0.0063, 0.0398, -0.1079, 0.161, 0.0626, 0.1404, -0.1993, 0.1397, -0.1186, 0.1189, 0.535, 0.2513, -0.6787, 0.0981, 0.1141, 0.1025, 0.0403, 0.1125, -0.0286, 0.0866, 0.1157, 0.0262, 0.1396, 0.6494, 0.1501, -0.0458, 0.0353, -0.2224, 0.1737, 0.3137, 0.0258, 0.1277, 0.1823, -0.0576, -0.0499, 0.061, 0.1368, 0.0454, -0.0487, -0.1014, -0.0393, 0.1916, 0.6808, 0.0708, -0.0404, 0.0653, 0.3926, -1.176, 0.0, 0.2306, 0.0, 0.1421, -0.0079, 0.0, 0.1566, 0.0, 0.2215, -2.411, 0.2025, -0.8871, 0.0, 0.0, 0.1084, -0.052, 0.2054, 0.0455, 0.0603, -1.227, 0.0787, -0.014, 0.0828, -0.1349, 0.1716, 0.0873, 0.1072, 0.0172, -0.1101, 0.0237, -0.1435, 0.0135, 0.339, -1.4317, -1.9319, -0.1374, 0.124, 0.012, 0.1483, 0.0302, 0.0409, 0.0544, 0.0207, -0.0167, 0.0021, -0.0547, 0.1351, -0.1854, 0.089, 0.1925, -1.1333, -0.0774, 0.0123, -0.1068, 0.1624, 0.1625, -0.0705, -0.2847, 0.0, 0.4016, 0.0504, -0.0611, -0.0808, 0.1038, -0.0097, 0.7223, -0.7683, 0.023, 0.026, -0.3123, -0.0765, 0.0999, 0.0918, -1.0203, 0.1408, 0.0119, 0.1813, -0.1422, -0.0402, 0.1115, 0.0217, -0.3033, 0.1371, 0.0112, 0.0523, 0.1129, -0.0292, -0.0042, 0.1475, 0.1133, -0.2978, 0.0, 0.124, -1.2728, -0.1868, 5.7978, -0.0518, 0.0895, -0.2562, 0.1178, -0.0387, -0.0458, 2.1285, 0.0661, 0.1033, -0.0268, 0.0723, 0.0981, 0.396, 0.0552, -0.0048, 0.0704, -0.7475, 0.1172, -0.0134, 0.0841, -0.0897, 0.1449, 0.0, 1.3883, 2.1843, -0.1112, -0.2409, 0.1554, 0.0313, -0.0176, -0.0727, -0.1272, -0.0458, 0.2069, 0.0838, 0.0824, 0.0977, 0.088, 0.0575, 0.085, -0.6271, 0.0627, -0.0375, -0.01, 0.1897, 0.1318, -0.0099, 0.1644, 0.1341, 0.0168, 0.0242, 0.0674, 0.1005, 0.106, -0.3679, 0.0413, 0.0656, -0.0611, 2.7751, 0.031, -0.1214, 0.0536, 0.044, -0.1956, 0.1153, -0.9203, 0.0618, -0.0536, 0.2036, 0.4731, 0.1299, -1.0682, 1.1853, 0.0167, 0.1994, 0.2363, -4.7629, 0.1334, 0.2241, 0.1097, 0.1219, 0.0043, 0.1789, 0.0, 0.1338, 0.0056, 0.3589, 0.0675, 0.6315, 0.0, 0.6632, 0.0, -0.1917, 0.0, -0.0542, -0.108, 0.0295, -13.2921, -0.0552, 0.2535, 0.0637, 0.0976, 0.0, 0.157, 0.222, 0.1456, 0.1341, -0.0594, -0.2721, -0.1723, 0.1863, 0.209, 0.0369, 0.1757, -4.5877, 0.0, 0.2496, 0.1612, 0.1483, 0.3959, 0.0643, -0.0126, -0.1267, -0.8869, 0.188, -0.4628, -0.0105, -0.0287, -0.0622, 0.1227, -0.1204, 0.87, -0.0649, 0.0882, -1.9561, 0.0008, 0.1143, 0.0124, 0.1666, 0.9227, 0.2568, 0.2954, 0.3954, 0.1209, -0.0237, 0.0008, 0.018, -0.0011, -0.0115, -0.0595, 0.1011, 0.0456, 0.0113, 0.1052, 0.1239, -0.02, 0.0322, 0.5864, 0.0199, 0.0407, 0.2392, 0.0701, 0.1502, 0.0774, 0.0566, 0.0664, 0.1035, -0.0915, 0.4445, 0.225, -3.414, -0.217, 0.0901, 0.0669, -0.0178, 0.093, 0.0457, -0.0009, 0.0639, 0.0399, 0.1989, 0.0625, 0.1246, -0.3553, 0.0014, 0.1159, 0.227, -0.0923, -0.1944, -0.7376, 0.2139, 0.1895, 0.0204, 0.121, 0.0058, 0.0554, 0.1313, 0.0301, 0.0452, 0.1071, -0.0911, 0.0965, 0.0528, 2.0639, 0.1047, 0.0846, -0.0583, 0.0809, 0.2394, -0.5833, 0.0599, 0.0, 0.1015, 0.0627, 0.106, -0.0958, -0.0719, -0.0803, 0.0277, -0.0067, -0.2342, -0.3519, -0.0891, -0.1338, -1.3794, -0.1804, -1.1833, 0.0343, -0.858, 0.7736, -0.0959, -0.9888, 0.0235, -0.1681, 0.8014, 0.0024, 0.037, 0.0459, 0.0751, 0.2222, 0.0797, 0.2164, 0.2113, -0.025, -0.2423, 0.0312, 0.0, 0.0965, 0.1024, 0.0321, 0.1552, 0.0204, -1.1151, 0.0792, 0.1186, 0.1152, 0.0876, 0.1456, 0.2321, 0.1069, -0.0112, 0.2362, 0.1154, 0.129, -0.2156, -0.0988, -0.6216, -0.1137, -13.982, -0.1495, -1.259, -0.1177, 0.3291, 0.5208, 0.0024, 0.0083, 0.0639, 0.1932, -0.0668, 0.1028, -0.2526, -0.0467, 0.1472, 0.0543, 0.3179, -0.9112, 0.0435, 0.279, 0.0847, -0.0728, -0.0267, -0.021, 0.0654, 0.063, 0.1161, 0.0629, 0.1474, -11.7318, 0.2012, -0.0139, -0.0245, 0.4322, 0.1511, 0.0146, 0.0615, -0.0963, 2.0968, -0.0661, -0.029, 0.2962, 0.0, -0.7387, 0.1062, -0.1604, 0.0405, 0.0926, 1.7968, 0.097, 0.5517, 0.0425, 0.0078, -0.0767, 0.1313, 0.002, 0.2078, -0.088, -0.2049, 0.1171, 0.6918, -0.0731, 0.0778, 0.5277, -0.1886, -0.0677, 0.3222, 0.343, 0.0127, -0.0439, -0.0591, 0.656, 0.0589, -0.0636, -0.0569, -0.048, -0.068, -0.0029, 0.117, 0.07, -0.1004, -0.0359, 0.0978, 0.0482, 0.449, -0.048, 0.0602, 0.0141, 0.0807, 3.1499, 0.3136, 6.1808, 0.0539, 0.077, -0.0153, -0.0433, 0.0442, -0.0441, -1.0934, 0.0621, 0.0022, 0.0657, 0.0705, 0.2752, 0.1062, 0.0, -0.0936, 0.1185, 0.5211, 0.1925, 0.2378, 0.0815, 0.0, 0.1023, -0.1129, 0.5094, 1.1624, -0.5008, 0.136, 0.0737, 0.101, 0.2421, -0.0677, -0.9714, -0.1834, -13.879, 0.0422, -0.1112, -0.3659, -0.425, 0.0495, -0.0254, 0.0259, -0.2227, -0.3473, 0.3596, 0.1555, -0.6697, -0.3357, 0.0191, -0.9121, 0.1573, -1.8, 0.0, 0.1225, -6.1217, 0.2828, -0.0297, 0.0, -0.1453, -0.0515, -0.4928, 0.1063, 0.055, 0.2926, -0.3628, -0.1478, 0.0366, 0.1781, 0.0897, 0.1427, 0.855, -0.0472, 0.0309, 0.0861, -0.2545, -0.2394, -7.5442, 0.0, 0.0005, -3.6077, -0.0182, 0.0923, 0.1234, 0.0117, -17.3383, 0.0, 0.2766, 0.1609, -0.2282, 1.782, 0.4345, -0.0621, 0.2493, 0.0296, 0.1208, 0.109, 0.1292, 0.0529, 0.019, -0.0047, -0.0166, -0.2646, -0.0363, -0.0117, -0.1694, 0.0, 0.1138, 0.091, 0.158, -0.0591, -0.0961, 0.1556, 0.0627, 0.0921, 0.0742, 0.028, -0.4263, 0.2854, -0.068, 0.2672, 0.1973, 0.1393, 0.2673, -0.2916, -0.2952, -0.1254, 0.1933, 0.1625, -0.4461, -0.0035, 0.1344, -17.7, 0.0287, 0.0, -0.1007, -0.1649, -0.6175, -0.2741, -1.5294, 0.152, 0.1962, 0.0556, 0.2143, 0.1817, 1.2899, 0.0267, 0.0, -0.0473, -0.0655, 0.0, 0.0318, -0.022, 0.3144, -0.0608, -0.0421, 0.071, 0.0378, -0.0704, 0.0, -0.2326, -0.1963, 0.3402, 0.0314, -0.0252, 1.7325, 0.0778, -0.0565, 0.1096, 0.2477, 0.0012, -0.0746, 0.0, 0.1209, 0.1986, -0.1679, 0.0869, -0.1284, -0.1427, 0.0288, 0.0824, 0.0819, 0.1095, -0.0284, 0.1626, 1.4211, 0.0721, -0.1514, 1.2516, -0.0458, 0.0805, -0.0729, 0.0766, 0.0238, -0.2251, -0.0149, -1.4877, 0.229, 0.125, 0.0935, 0.061, 0.1571, -0.1707, -0.9622, 0.0515, 0.112, 0.1195, -0.129, 0.1565, -0.3341, -0.2979, -0.0596, -0.913, 0.0573, 0.8023, 0.2215, 0.1515, 0.1131, 0.1539, 0.0501, 0.0586, 0.1667, 0.3933, -0.1057, -0.0736, -0.0202, 0.1076, -0.0664, 0.3643, 0.1553, 0.1358, 0.2308, 0.0, 0.209, -4.3171, 0.0072, 0.6435, 1.1453, 0.4889, -3.3427, 0.0961, -0.0752, -0.2628, -1.3827, 0.2041, 0.0727, 1.175, -0.0777, 0.1105, -0.2042, 0.0147, 0.0514, -0.0484, -0.0582, 0.1223, 0.0613, -0.1315, 0.0633, 0.0848, 0.1682, 0.1423, -0.0545, 0.0595, -0.1026, -0.2235, 0.0484, -0.2944, 0.0679, 0.0807, 0.017, 0.0789, -0.0653, 0.1714, -0.412, 0.1481, -0.2459, -0.0351, 0.0244, 0.1686, 0.1832, 0.1321, 0.1567, 0.6197, 0.0829, 0.2371, 0.1019, 0.0558, 0.0604, 0.0784, 0.069, 0.0561, 0.0454, -0.0344, 0.1397, 0.0829, 0.1019, 0.0743, 0.0675, 0.1032, 0.6818, 0.0502, -0.2448, -0.0169, 0.0776, 0.0595, -0.0041, -0.7911, 0.1402, -0.1403, -0.0104, 0.0, 0.0883, 0.094, 0.0851, 0.0706, 0.0754, 0.1444, -0.0355, -0.2415, 0.0, -0.0725, -0.0019, -0.2062, 0.1435, -0.1584, 0.0306, -0.0693, 0.1021, -0.0733, -0.0728, 0.0303, 0.1023, 0.2932, -7.2415, 0.2297, -0.0766, -0.0682, -0.0036, 0.0133, 0.1052, -0.0865, 0.0844, -0.0066, -0.3356, 0.1403, 0.311, 0.0548, 0.1089, -0.0731, 0.0981, 0.1789, -0.0674, 0.2643, -0.0594, 0.0202, 0.0682, 0.1551, -1.3271, -0.0309, -0.0438, 0.3943, 0.1881, 0.0521, 0.0462, 0.3798, 0.0978, 0.5462, 0.1234, 0.0708, 0.0916, -0.0345, -14.4067, -0.1667, -0.1338, 0.1218, 0.0, -0.1628, -0.0221, -0.084, 0.0555, -0.0891, 0.1034, 0.1386, -0.0041, 0.1268, -1.7583, -0.2873, 0.2142, 0.0801, 0.0879, 0.076, 0.0736, 0.0054, -0.1393, -0.1752, 0.0678, 0.7582, 0.2051, 0.0867, 0.0553, 0.0, 0.0947, 0.2494, 0.0583, -0.0395, 0.52, 0.7386, 0.1191, -0.3005, 0.0496, 0.1408, -0.0094, 0.0206, 0.0314, 0.2191, 0.0388, 0.2268, 0.1092, 0.625, 0.1035, -0.0777, 0.0681, -0.1371, 0.4316, -0.1016, 0.1687, 0.0554, 0.0522, 0.0011, -0.1199, 0.2802, -0.74, 0.0353, 0.1478, 0.1174, 0.0234, 0.0395, -0.0055, 0.124, 2.2997, 0.0207, 0.1199, 0.0813, 0.0852, 0.0776, 0.1345, -0.09, 0.1255, 0.0977, 0.0896, 0.0232, 0.0194, 0.0703, -0.028, -0.3969, 2.7917, 0.2129, -0.0137, 0.0334, 0.0955, 0.0749, 0.0164, 0.0317, 0.042, 0.1733, 0.1181, 0.5035, 0.1471, 0.1393, 0.818, -0.1374, -10.3492, -0.0756, 0.1785, 0.1966, -1.759, 2.0181, 0.0401, 0.0744, -1.0312, -0.1011, 0.0689, -0.0582, 0.1726, 0.0641, 0.2238, -0.1469, -0.6877, -0.0083, -0.0055, 0.2585, -0.0312, -0.0429, 0.0356, 0.1303, 0.1697, 0.0642, 0.0896, 0.0803, 0.0443, 0.113, 0.0795, 0.0973, -0.0452, 0.1038, 0.2824, -0.08, 0.0718, 2.5717, 0.0549, -0.6873, -0.1537, 0.1232, 0.1218, 0.0524, 0.1333, 0.0527, 0.0873, 0.1098, 0.1933, 0.1203, -1.1275, 0.018, -0.0026, 0.0136, 0.2212, 0.2536, 0.1469, 0.1463, -0.28, 0.1232, 0.0, 0.071, 0.0892, 0.0241, 0.0443, 0.1281, -12.505, -0.1906, -1.4223, -0.4774, 0.1691, -0.1025, 0.1544, 0.1381, 0.0984, 0.8612, 0.0961, -0.016, -0.0686, -0.247, 0.1607, -0.0503, 0.0417, -0.1086, 0.1364, 0.1081, 0.7708, -0.2431, -0.0216, 0.0563, 0.1868, 0.0533, -0.0647, -0.0394, -1.0214, 0.0927, 0.1892, 0.183, -0.0556, 0.0762, 0.0789, 0.1057, 0.0852, 0.1207, 0.0908, -0.8633, -1.9291, 0.0359, 0.1569, 0.0, 0.0163, -0.2822, 0.1551, 0.1952, 0.1525, 0.1545, 0.1277, 0.0493, -0.027, -1.2676, -0.2721, 0.1753, -4.7054, 0.3201, 0.0503, -0.021, 0.0987, -0.041, -3.1592, 0.0176, 0.0018, 0.0961, 0.0979, 0.2065, 0.2407, -0.0055, 0.2276, 0.1932, -0.1, -0.0934, 0.1947, 0.0745, 0.0, 0.2961, 0.257, 0.1564, 0.1108, 0.2036, 0.1679, -0.0495, 0.2368, -2.5443, 0.0307, 0.0671, -2.2533, -0.0131, -0.114, -0.0291, -0.0309, -0.0741, -0.02, -1.8, -1.1458, 0.0653, 0.0354, -0.1315, -0.0194, 0.0, -0.725, 0.0765, -0.034, -0.0417, 0.0888, 0.0138, -0.0063, 0.1167, -0.1961, 0.0966, -0.0094, 0.0102, 0.2702, 0.0522, 0.0486, -0.0187, 0.0043, 0.1356, -0.1082, -0.1371, -0.0034, -0.5375, 0.0879, 0.0, -0.0001, -0.0205, 0.2097, 0.2278, 0.0346, 0.0, 0.0899, 0.3031, -0.1653, -0.2548, 0.0744, -4.4408, 0.0532, 0.0483, -0.0164, 0.0377, -1.0416, -0.0211, 0.2578, 1.1812, 0.0719, 0.1017, 0.1671, -1.5262, 0.0187, 0.1949, 0.117, -0.0357, 0.1594, 0.1712, 0.2325, -0.0925, 0.0, 0.2183, -0.3664, -0.1599, 0.0853, 0.1125, 0.0735, 0.0929, 0.0795, -0.003, 0.1302, -1.4875, 0.2162, 0.0755, 0.0428, 0.5822, 0.0161, -1.7806, -1.923, -0.2988, 0.1348, 0.2123, -0.1437, -0.0417, 0.4857, -0.0054, 0.0688, -0.037, 0.7696, -3.075, 0.01, -2.3354, 0.18, 0.2391, 0.0901, 0.1603, 2.4694, 0.1341, 0.6581, 0.1415, 0.1764, 0.0262, -2.0637, 0.5032, 0.0851, -0.0761, -0.4558, 0.0128, -0.7254, 0.0208, 0.0549, 0.0529, -2.5731, -0.0765, 0.2816, -0.0717, 0.0906, -0.0955, 0.0797, 1.81, -0.1039, 0.0842, -0.0802, 0.1038, 0.0761, 0.0665, 0.0433, 0.047, 0.0433, -0.1235, -0.1331, 0.1409, 0.129, -1.4965, 0.1229, -0.076, -0.1799, 0.0465, 0.3511, -0.0706, -0.158, -0.9906, 0.0449, 0.1374, -0.2427, 0.2718, 0.2033, 0.1881, 0.12, 0.0791, 0.2707, 0.0931, 0.1197, -2.6429, 0.1976, 0.1083, 0.5571, 0.0245, 0.1321, 0.1887, 0.1457, 0.0147, 0.1261, 0.3363, 0.2433, 0.3268, -0.3083, 0.0852, 0.0291, 0.0193, -0.0548, 0.0324, 0.1354, -0.1457, -0.1178, 0.024, 0.1491, -1.3574, -0.0479, -0.0443, -0.094, 0.0868, 0.2393, -0.8379, -0.1399, -0.1277, 0.0315, 0.0051, 0.0507, 0.0956, 0.0321, 0.0818, 0.0424, -0.0071, 0.0288, -0.0213, -3.62, -0.6931, 0.0, 0.2301, 0.1657, 0.1392, 0.1313, -4.251, 0.1354, 0.2374, -0.0481, -0.0344, -0.0221, -0.81, 0.2607, 0.0036, 0.0, 0.0929, 0.4709, 0.1201, 0.1083, 0.0726, 0.1415, 0.115, 0.0724, 0.1098, -0.0522, 0.0041, -0.014, -0.1827, 0.5095, 0.0, 0.0185, 0.1111, 0.0162, 0.1996, 0.0257, 0.0191, -0.9953, -0.155, 0.2917, -2.4954, 0.0163, -0.0388, 0.4417, -1.1519, 0.2237, 2.1353, 0.1303, 0.122, -0.1784, -0.0233, -0.1204, 0.206, 0.127, 0.0833, 0.1241, 0.0678, -0.0977, -0.7844, 0.655, -0.1918, -0.1844, -0.2353, -1.0864, 0.2152, -0.0304, -0.0679, 0.443, -0.0528, -0.0449, 0.11, 0.182, -0.174, -0.2485, -0.1009, 0.143, -0.6976, 0.137, 0.1287, 0.0138, -0.0336, 0.6613, 0.0862, 0.0365, 0.1399, 0.0, 0.0152, 0.0992, 0.0673, 0.0678, 0.028, 0.0374, 0.1035, 0.0854, -0.0527, -0.0514, -0.0696, 0.0359, -0.1144, 1.1793, 0.0538, -0.0394, 0.0486, -0.0986, 0.005, 0.0989, 0.0712, 0.0166, -0.132, 0.0233, 0.018, 0.1549, 0.0565, -0.1459, 0.155, 0.4114, 0.0422, 0.055, 1.8517, 0.1063, -0.3472, 0.0925, 0.0451, -0.1071, 0.0824, 0.1964, 0.6295, 1.655, -0.1605, 0.1281, -0.2272, 0.0063, 0.0099, 0.0858, 0.1294, 0.01, 0.0981, 0.1401, 0.0655, -0.0351, 0.1545, 0.4891, 0.0575, 0.0499, -1.2876, 0.0303, 0.1993, 0.1795, 0.23, 0.0026, 0.2161, -0.0262, 0.0, 0.064, 0.007, -0.0888, 0.1347, -0.2313, -3.9486, 0.2317, 0.2279, 0.0576, 0.0729, -0.0115, 0.0482, 0.0565, 0.1053, -0.0934, 0.2346, 0.2008, -0.1552, 0.1153, 0.5584, 0.207, 2.1454, 0.2255, 0.0848, 0.1203, 0.0865, 0.4184, 0.1677, 0.2345, -0.0309, 0.0988, -0.0365, 0.1321, 0.118, 0.198, 0.088, -0.0107, 0.2973, 0.5959, 0.1911, -0.28, 0.1803, 0.5904, 0.0683, 0.2439, 0.0, 0.1993, -2.4754, 0.1891, -0.0295, 0.7101, -0.2379, -0.1042, -0.0303, 0.0082, 0.1461, 0.1722, 0.0973, -0.0173, 0.0723, -0.4629, -5.5522, 0.0, 0.22, 0.1435, 0.0449, 0.1436, -1.2739, 0.0634, 0.2697, 0.3056, 0.2147, 0.2655, 0.1767, 0.096, -0.0686, 0.026, 0.0934, 0.2302, -1.659, -0.138, -0.2305, 0.3159, -0.0047, 0.0689, 0.392, 0.0832, -0.1181, 2.0449, 0.0874, -0.0116, 0.2034, 0.1372, 0.2105, 0.1703, 0.1332, 0.1213, -2.7438, -0.0179, -2.2022, 0.0923, 0.1507, -0.2319, -0.5198, 0.5654, 0.1353, 0.1842, -0.0393, 0.0, 0.0, 0.4477, 0.108, 0.093, 0.0335, 0.2064, -0.0379, -0.0319, 0.1493, 0.2227, -0.2832, -0.0405, -2.7125, -1.109, -0.081, -0.1205, 0.0608, 0.1695, 0.0567, 0.1746, -0.8541, 0.0818, 0.2109, 0.2445, 0.0002, 0.3618, 0.1572, -2.7164, 0.0573, 0.0502, -0.4388, 0.3581, 0.3962, -0.0182, 0.0429, -0.7142, 0.3622, 0.0574, -0.0207, 0.0598, -2.0201, 0.3417, 0.1473, 0.4884, 0.0, 0.1537, 0.1048, 0.0185, 0.4976, -0.3525, 0.0519, 0.045, 0.1262, 0.1301, -0.1653, 0.0075, 0.0323, 0.0, 0.6629, -0.0081, 0.0969, -0.0726, 0.0684, -0.0596, 0.0391, -0.1237, 0.7423, -0.0871, 0.6969, 0.0989, 0.1493, 0.0895, 0.0552, 0.0785, -0.4499, 0.1668, 0.0991, 0.0593, -0.0563, 0.0594, 2.3788, 0.0401, 0.2195, 0.057, 0.1401, -2.5881, 0.1775, 0.1965, 0.1629, -0.2554, -0.0085, 0.1624, 0.3011, 0.0376, 0.1285, 0.1104, -0.0093, 0.1696, 0.0215, 0.0732, -0.1014, 0.2753, 0.2118, 0.1992, -0.1459, 0.1425, 0.3742, -1.8012, 0.2272, 0.2725, 0.0004, 0.2434, 0.2124, 0.1923, 1.1625, 0.1249, 0.0261, -0.1103, 0.0865, -0.1059, 0.2985, 0.0769, 0.1049, 0.1402, 0.147, -0.8316, -0.1254, -0.1259, -6.9858, -0.4698, -2.2162, -0.0881, -0.0824, 0.1245, 0.0687, 0.2888, 0.0833, 0.0681, -0.0999, 0.0785, 0.2619, -0.026, -0.2408, 0.0942, -0.0479, 0.0988, -0.9925, 0.1494, -0.0556, 0.1665, 0.0295, 0.1373, 0.2178, -0.0558, 0.1265, -2.1251, 0.3082, 0.0235, 0.0501, 0.0907, 0.6361, -0.5539, 0.1503, 0.0427, -0.4731, 0.14, 0.0, -3.1324, 0.043, 0.0865, -0.2161, 0.0, 0.0049, -0.0516, 0.022, -0.0067, -0.0926, -0.2621, -0.0022, 0.1706, 0.2238, 0.0071, 0.0102, 0.7137, -0.2439, -2.5553, 0.0973, 0.1272, 0.085, 0.1218, 0.0712, 0.0935, 0.0757, -1.7095, 1.3747, 1.4864, 0.0343, 0.0678, 0.9292, 0.1057, 0.0616, 0.0253, 0.0, 0.1133, 0.3668, 0.0877, 0.1597, 0.2159, -0.5693, 0.2257, -5.0378, 0.2555, 0.0817, 0.0754, -0.0331, 0.0369, -0.1431, -0.1413, -0.2354, 0.0061, 0.126, -0.2654, 0.0926, -0.0052, 0.0796, -0.1555, -0.0412, 0.0464, -1.282, -0.1177, -0.2701, -0.2371, -0.345, -0.0625, -0.4181, -0.1957, 0.0549, -0.1193, -1.4161, -0.1203, -1.1066, 0.1113, -0.0617, 0.0195, -0.1381, 0.0795, -0.0338, -0.213, 0.1227, 0.1383, 0.0797, -0.0036, 0.0059, 0.1186, -0.3807, 1.5028, 0.1055, -0.0312, 0.1075, 1.2367, -0.0661, -0.011, -1.3537, 0.0654, 0.0, 0.0668, 0.0491, -0.3968, 0.0799, 0.1528, -0.7539, -0.5841, -0.0708, -0.0823, -0.0044, 0.0598, 0.2141, -0.0313, 0.107, 0.042, 0.0252, -0.1623, -0.0902, 0.0965, 0.5689, 1.4084, 0.1466, -0.1121, 0.0573, 0.1859, 0.0169, 0.395, 0.0462, -0.1026, -0.0291, -0.189, 0.0766, 0.2329, 0.1037, 0.0, 0.0836, 0.2353, -0.1899, 0.0, 0.0661, 0.0497, 0.0084, -0.1082, 0.054, 0.0482, -0.0278, -0.1339, 0.08, 0.0953, 0.0232, 0.0896, -0.0167, -0.5398, -0.0808, 0.3101, -0.1697, 0.6453, -0.1387, -0.0536, 0.026, -0.1303, -0.0857, 0.0877, 0.2109, -0.1617, 0.2412, -0.0551, 0.117, -0.0201, -0.0752, -0.0382, -0.0349, 0.1214, 0.0, -0.1073, -0.1748, 0.054, 0.2208, 0.0193, 0.1675, 0.3673, -0.0228, 0.0979, -0.0296, -0.0068, 0.006, -0.6643, 0.0862, 0.0365, 0.1188, -0.1353, 0.0159, -0.0497, 0.098, 0.2974, 0.0879, 0.0899, -0.148, -0.0916, -0.6762, -0.0404, -0.1509, -0.0306, -0.1141, 0.0812, 0.1702, 0.235, 0.1976, -0.0306, 0.1309, 0.0847, 0.0103, 1.5433, 0.1724, -0.0676, 0.0764, -0.2328, 0.0134, 0.3354, 0.0748, 0.0442, 0.0, 0.0709, -0.067, -0.0288, -0.0699, -0.0328, 0.1, 0.0782, -0.4196, 0.25, -0.0879, -0.0093, -0.0822, -0.0612, 0.0412, 0.1743, 0.1205, 0.1292, -0.5218, 0.0423, 0.2156, 0.0484, 0.0604, 0.1791, 0.0149, 0.0225, 0.043, -0.1025, -0.3083, 0.1661, 0.0888, -0.6795, 0.1187, 0.1099, -0.0433, 0.1103, -0.0444, 0.2254, 0.0854, 0.0, -0.0189, -0.0335, 0.136, 0.1744, 0.7611, 0.1158, 0.1171, 0.0176, 0.1881, -0.1551, -0.144, 0.0, -0.2132, 0.0422, 0.0378, 0.2056, -0.0264, 0.0976, 0.2045, -0.0101, 0.0333, 0.0124, -0.913, 0.0917, 0.3639, -0.1669, 0.1081, 1.5109, 0.1113, 0.122, 0.0588, -0.3394, 0.0167, 0.1533, -0.0399, 0.069, -0.3083, 0.0219, 0.1975, 0.1824, 0.026, -0.1876, 0.0974, 0.0702, 0.5138, 0.2618, -0.23, -0.2132, 0.0975, 0.0, 0.0021, -0.0224, -0.188, -0.0239, 0.2261, 0.3464, 0.1157, 0.132, 0.3376, -0.3023, -2.3283, 0.0386, 0.0878, -0.1498, 0.1441, 0.0759, -0.1087, -0.0608, -0.0819, 0.0804, 0.1171, -0.4358, -0.0129, -0.3847, 0.6385, 0.0, -3.1418, 0.0044, 0.0013, 0.1439, -0.1425, 0.0827, 0.0186, 0.0084, -0.0616, -0.07, 0.09, 0.2436, -0.0323, 0.1027, -0.1526, 0.107, 0.0991, -0.1238, 0.104, 0.0701, -0.0448, 0.3457, -0.0937, 0.158, -0.1882, 0.0303, 0.1362, -0.2049, -0.2146, 0.071, -0.0499, 0.0875, -0.146, 0.0092, 1.7842, 0.031, 0.0029, 0.0448, -0.0248, 0.0164, 0.9904, 0.1256, 0.1269, 0.0883, 0.2348, 0.0963, 0.1363, -0.052, -0.0156, -0.0246, 0.1993, -0.08, -0.4018, 0.236, 1.925, -0.0439, -0.164, 0.0937, -0.0106, 0.1501, 0.0784, -0.0633, 0.1032, 0.0, 0.0284, 0.0461, 0.0997, 0.1709, -0.0709, 0.1378, 0.2287, 0.0618, 0.2076, 0.2049, 3.0067, -0.1354, 0.0002, 0.0435, 0.0122, 0.0197, 0.0727, -0.1626, 0.1472, -0.0591, 0.0511, 0.136, 0.1058, 0.137, 0.0252, 0.2961, 0.0107, 1.3596, 0.0347, 0.2266, -0.1794, 0.0586, 0.1467, -0.1601, 0.2053, 0.2296, 0.1127, -0.3704, -0.1308, 0.6141, -0.0017, 2.1253, 0.0726, 0.082, 0.1747, 0.1438, 0.406, -0.0092, -0.1973, -0.0778, 0.0829, 0.0623, 0.6842, -0.2514, 0.1613, 0.0889, 0.8462, -0.507, -0.6738, -0.1985, -0.3379, -0.0601, -0.2179, -0.1236, 0.1867, 0.1171, 0.0939, 0.1956, 0.3217, 0.0495, 0.121, -0.0437, 0.0, -0.0238, 0.0618, 0.1458, 0.0965, 0.1162, 0.036, -0.0259, -0.1052, 0.0839, -0.0552, -0.1144, 0.0882, 0.0663, -0.0425, 0.0, 0.0693, -0.0936, 0.1296, 0.107, -0.0223, 0.0892, -0.0693, -0.012, -0.0137, -0.1653, -0.0781, -0.0042, 0.0816, -0.2708, 0.3133, 0.0877, -0.3021, 0.0292, 0.2725, 0.1296, -0.019, -0.12, 0.0313, 0.2449, 0.1189, -0.1115, -0.0523, 0.0952, 0.1861, 0.131, 0.2342, 0.2543, -0.0116, -0.0727, -0.4401, -0.0865, 0.1749, -0.1519, 0.217, 0.0355, 0.0619, 0.0668, 0.243, -0.0507, 0.0332, 0.0771, 0.5583, -0.0533, 0.009, 0.9286, 0.6763, 0.1289, 0.0817, -0.0005, -0.3462, 0.0319, -0.1059, -2.2389, 0.26, -0.21, 0.0962, 0.0337, -0.0327, -0.0073, 0.0159, 0.1058, 0.0869, 0.0211, 0.1132, -0.0748, -0.099, 0.0035, 0.0, 0.1144, -0.0529, -0.0165, 0.0192, -0.1366, -0.1265, -0.0356, 0.1664, -0.0483, 0.0538, 0.2221, 0.0082, -0.0148, 0.2494, -0.0986, 0.1612, 0.1685, -0.0028, -0.008, 0.0463, -5.745, -0.2056, 0.0439, -0.0124, 0.2057, -0.0606, -0.0658, 0.1024, -0.2158, 0.5238, 0.2399, -0.0365, 0.2263, 0.0152, 0.0813, 0.3857, 0.1267, -0.7571, 0.255, -0.0075, 0.1359, 0.7189, -0.091, 0.1784, -0.0181, -0.0038, -0.21, 0.0696, 0.1522, -1.1794, 0.4084, 0.2428, 0.1484, -0.0643, 0.114, 0.1101, 0.1874, 0.0434, 0.2207, 0.0938, -0.109, 0.0579, 0.1688, 0.0016, -8.792, -0.1474, 0.0279, 0.0896, -0.0245, 0.1157, -0.0742, -0.3291, -0.0539, -0.0407, -1.3363, 0.6315, -0.0786, 0.1198, 0.0208, 0.1112, 0.0831, 0.1686, -0.1271, -0.0261, -0.1387, 0.0135, 0.0536, 0.1735, -0.0817, 0.1259, -0.147, 0.1506, 0.0031, 0.0648, 0.0702, 0.1512, 0.0548, 0.2608, 0.1104, -0.0823, 0.137, 0.0179, 3.6521, 0.2653, -0.2061, -0.2799, 1.0529, -0.1003, 0.127, 0.0027, 0.0311, 0.1517, 0.0961, 0.1576, 0.119, 0.3134, 0.0, 0.2867, 0.1892, 0.1037, 0.0781, 0.7726, -0.021, -0.0685, -0.0145, 0.1091, -0.364, -0.1025, 0.0282, -1.633, 0.0552, -0.053, -0.0131, -0.1665, 0.0552, -0.1331, 0.0228, -0.2633, 1.6041, -0.0739, -0.0013, 0.0215, 0.0915, -0.0747, -0.0172, -0.0917, 0.0478, -0.007, 0.0864, 0.2331, 0.0763, 0.074, 0.0937, 0.1052, -0.0299, 0.1655, 0.1859, 0.0176, 0.2175, 0.0647, 0.2977, -0.0348, -0.1918, -0.1672, 0.0728, -0.4457, 0.0614, -0.0587, 0.143, 0.0612, 0.1391, 0.1195, 0.1563, -0.0747, 0.0366, 0.1301, -0.0495, 0.0026, 0.2433, 0.2612, 0.0787, 0.2493, 1.3434, -0.4144, -1.3494, 1.2637, 0.1615, 0.0992, -0.0132, 0.015, -0.0183, 0.1128, 0.1979, 0.1976, 0.1474, -0.0117, 0.6229, 0.0919, -0.5429, 0.1234, 0.0306, -0.0366, -0.1231, 0.1098, 0.0975, 0.3089, 0.0716, 0.1106, 0.2342, 0.1042, 0.0875, 0.051, -0.3335, 0.0178, -0.0729, 0.1948, 0.052, 0.0495, 0.0, 5.9082, 0.2202, -0.0545, 0.0987, 0.1075, 0.1084, 0.0376, 0.0983, 0.0513, 0.0782, 0.6399, 0.0948, 0.0656, 0.101, 0.1413, 0.0467, 0.177, 0.0396, 0.1511, 0.1028, 0.3767, 0.0919, -0.0386, 0.1152, 0.1812, 1.3708, 0.0383, 7.2307, -0.3746, 0.0622, 0.1347, 0.0378, 0.1619, 0.2135, 0.0267, 0.444, 0.1957, 0.0811, -0.5824, -0.1599, -0.009, 0.0661, 0.152, -0.3059, 0.0224, -0.1171, 0.1326, 0.0703, -0.0297, -0.0913, -0.1618, 0.0345, 0.1078, -0.1553, 0.1908, 0.0328, -0.85, -0.0875, 0.0047, 0.0644, 0.1178, 0.0782, -0.0313, -0.4689, 0.0752, -10.8412, -2.9472, 0.0462, 0.0299, 0.3261, 0.0118, 0.1902, 0.1627, 0.0143, -0.3211, 0.2217, 0.2403, 0.0177, -0.1145, -0.0042, 0.0044, 0.9086, 0.0698, 0.0832, 0.1763, -0.9789, -0.304, 0.187, 0.2095, -0.2456, 0.0204, 0.0173, 0.1258, -0.333, 0.0, 0.0205, -0.1129, 0.0536, 0.1876, 0.0, 0.0123, 0.0012, 0.223, 0.0458, -0.2108, 0.0643, 0.0573, 0.1276, 0.0276, 0.0, -0.2263, -0.0155, 0.3315, 1.8408, 0.0726, 0.1805, -0.0049, 0.0888, -0.1896, -0.0924, 0.013, 0.0294, 0.1445, 0.1476, -0.2549, -0.0297, -0.3895, 0.1562, -0.1373, 0.0505, -0.2018, -1.0226, 0.1733, 0.1264, 0.0, 0.0, -4.9225, -0.1034, 0.1132, -0.2148, 0.141, -0.6282, 0.0659, -0.0298, 0.1281, 0.1734, 0.3206, -0.3115, -1.5962, -0.3969, -0.4744, -0.0768, 0.0124, 1.7483, 0.5994, 0.0978, 0.196, 0.0462, 0.4706, 0.2329, -0.0438, 0.1524, 0.1218, -0.1887, 0.0313, 0.1368, 0.1299, 0.2661, 0.1514, 0.1827, -0.0018, -3.7039, 0.0191, -0.195, -0.0156, 0.4197, -0.0139, 0.0368, -0.3744, 0.6803, 0.1077, 0.0197, 0.3836, 0.0844, 0.1671, 0.0894, -0.703, 0.0191, -0.2433, -0.0121, 0.1314, 0.0343, 0.056, -1.1713, -0.0906, 0.262, 0.1695, 0.0219, -0.0407, 0.1038, -2.8973, -0.1743, -0.048, 0.0331, 0.0079, 0.0923, 0.0971, -0.0481, 0.0564, -6.6284, -0.0829, -0.0519, 0.2805, 1.2651, 0.0726, -0.092, 0.1126, 0.0565, 0.0465, 0.0684, 0.1238, -0.1829, 0.0556, 0.1247, 0.0973, 0.0889, 0.0551, 0.0623, -0.0259, 0.0856, -0.1785, 0.0592, 0.0252, 0.0156, 0.0008, 0.244, 0.029, 0.107, -0.023, -0.0532, -0.1513, -0.077, -0.5341, 0.0585, -0.0463, -0.3813, -0.0534, 0.0128, -0.388, 0.4456, 0.0, 0.0284, 0.5342, -0.0305, -0.2858, 0.1279, 0.2414, 0.0, -0.0412, 0.215, -0.6115, -7.1333, 0.153, 0.0508, -0.5396, 0.133, 0.0213, -0.5857, -0.0517, 0.4764, 0.0556, 0.1124, -0.1415, 0.176, 0.2236, 0.0425, 0.1318, -0.0174, 0.6167, -0.0079, -0.209, 0.0541, 0.1658, -0.2089, 0.0816, 0.0461, 0.0595, 0.0388, 0.0865, 0.3003, 0.0472, 0.1259, 0.1318, 0.0535, -0.0126, 0.108, -0.171, 0.0449, 0.2147, 0.2262, 1.3017, 0.0222, -0.0023, 0.0216, -2.1872, 0.1032, -0.5898, 0.1123, 0.1052, 0.5667, 0.0411, 0.1075, 0.9582, 0.3478, 0.0412, -0.229, -0.7418, 0.1447, 0.028, 0.1317, 0.0, 0.0, 0.2717, -0.7157, -0.1356, -0.0249, -0.2843, -0.0858, 0.5155, 0.1706, 0.1074, -1.8704, 0.1979, 0.1707, -0.0177, 0.1072, -0.1677, -0.0119, -0.3647, -0.009, 0.0114, 0.7716, -0.6372, 0.0167, -0.0889, 0.1414, 0.1396, -0.0709, -0.0861, 0.1078, 0.1173, 0.3738, 0.106, 0.2062, -0.2294, 0.0088, 0.0, 0.0557, 0.0417, -0.0853, -0.843, 0.0755, 0.0421, -0.0192, -0.1593, -0.1801, 0.0059, 0.0608, 0.1132, -14.1375, -0.0209, -0.0616, -0.0754, -0.0203, 0.0018, 0.0156, -1.3358, 0.0705, 0.0452, -0.1241, -0.1413, -0.0639, -0.2202, -0.0556, 0.0, -0.2612, -1.4027, -0.0543, 0.014, 0.1422, 0.1628, 0.1852, -0.0751, 0.0719, 0.1116, 0.0328, 0.1842, 0.2766, 0.0102, 0.1191, 0.0682, 0.1267, 0.1404, 0.0634, -2.556, 0.2893, -10.1356, 0.2964, -0.0029, 0.1351, 0.4996, 0.0771, 0.0641, 0.2265, -0.1058, -0.6911, -0.064, -0.1229, 0.0841, -0.427, -0.0454, 0.0715, 0.0427, 0.1164, -0.0214, -0.1097, 0.1782, 0.0368, -0.0782, 0.1841, 0.0, -0.4551, 0.0462, 0.3206, 0.0904, 0.153, 0.337, 0.0628, 0.0201, 0.0529, -0.2185, 0.0763, 0.0039, -0.0069, 0.4448, -8.4267, 0.4433, 0.0349, 0.0281, 0.145, 0.6681, 0.4576, 0.2187, 0.2448, -0.2644, -0.038, -0.4049, 0.1508, 0.1962, 0.2031, -0.288, 0.1217, -0.1652, 0.9028, 0.1689, 0.3203, -0.0929, 0.2446, 0.1293, 0.0646, 0.0004, 0.0916, 0.1202, 0.0896, 0.0527, 0.1279, 0.089, 0.4408, 0.0659, 0.077, -0.3128, 0.2613, -0.024, -0.1348, 0.0811, 0.0979, 0.1007, 0.2566, 0.0, 0.0442, 1.2288, 0.1272, 0.525, -1.0628, -0.101, 0.2246, 0.0784, 0.0266, -0.1712, -0.2321, 0.4223, -0.548, 0.0354, 0.0906, 0.8132, -0.2705, 0.186, -0.0244, 0.3984, -0.0261, 0.099, -0.1409, 0.0144, -0.0817, -0.0134, -0.0519, -0.0126, -0.0123, -0.3545, -0.1196, 0.0383, -0.3247, 0.1841, 0.1714, -0.0318, 0.0399, -0.7978, 0.0264, 0.0806, 0.0, 0.0667, -0.018, -0.503, -1.2171, 0.0819, 0.089, 0.2038, -0.0029, 0.0086, 0.124, -0.0415, -0.2847, 0.0723, 0.0048, -0.0215, 0.3504, 0.0, 0.1972, 0.0384, 0.0009, -0.0461, -0.377, 0.0298, 0.1977, 0.007, 0.1387, -0.0934, -2.018, -0.0615, -0.2076, 0.007, -0.1161, -0.0491, -0.1383, -4.8275, 0.0011, -0.1158, 0.1343, -1.3167, -0.0282, -0.0274, 1.1662, -0.2648, 0.194, 0.0089, -0.2821, -2.5047, 0.0539, 0.2746, 0.0687, 0.102, 0.0335, 0.1267, 0.0283, 0.1188, 0.0713, 0.0777, 0.0905, 0.7613, -0.0032, -0.3082, -0.4983, -0.1576, 0.1522, 0.0553, -0.0854, -0.0767, 0.0779, 0.0301, -0.114, -0.195, 0.4734, 0.3908, 0.1878, 0.0392, -0.1619, -1.8351, 0.1761, -0.0077, 0.3618, 0.1774, 0.0971, 0.0921, -0.1223, 0.305, 0.0943, -0.0327, 0.266, 0.1038, 0.1018, 0.02, -0.9667, 0.0681, 0.1509, 0.0781, 0.1442, 0.0985, 0.0609, -0.1148, 1.3789, 0.3237, 0.1712, 0.068, 0.0447, 0.1562, 0.1525, 0.8132, -0.0466, -0.0264, 0.1288, -0.0954, 0.0946, -0.5503, 0.1681, -0.1724, 0.1348, -1.8478, 0.0364, 0.3312, 0.3015, 0.1231, -0.1594, -0.0478, 3.45, -0.9199, 0.1746, 0.1038, 0.271, 0.3536, 0.5457, -0.0291, 0.0082, -1.546, -3.3765, 0.0151, -0.164, 0.0143, -0.038, -0.3359, 0.195, 0.1188, -0.1423, 0.0481, 0.088, 0.0557, -1.9939, -0.1478, -9.3808, -1.9661, -0.0438, -0.0228, -0.066, -0.0055, -0.1707, -0.1613, 0.1253, -0.6252, 0.0823, 0.0277, 0.0107, 0.0456, 0.0719, 0.1108, 0.094, -0.0257, -0.2473, -15.005, -0.0334, -0.113, 0.0612, 0.1988, 0.0754, -0.1532, 0.0256, 0.0172, 0.1675, 0.0427, 0.0516, -0.3223, 0.0399, 0.1021, 0.1221, -0.3192, -0.1706, -0.0078, -0.0386, -0.0479, -0.0892, -0.0557, 0.0316, 0.0118, 0.1262, -0.0757, -0.0965, 0.0591, 0.1271, 0.2902, 0.0538, -0.3929, 0.0, 0.0133, 0.11, 1.0718, 0.2085, -0.1848, -0.8166, 0.0716, 0.2153, 0.1695, 0.259, -0.0808, -0.0262, -0.0726, 0.5294, -0.1693, -0.034, 0.588, 0.0789, 0.1136, -0.3002, 0.1924, -0.1476, 0.0692, -0.129, -0.1099, -0.0617, 0.0144, 0.0434, 0.0363, 0.0311, 0.0615, -0.7708, -0.0598, -0.0352, -0.0981, 0.0558, 0.1381, 0.3198, -0.0531, 0.1301, 0.0818, 0.137, 0.1535, -0.0727, -0.1025, 0.0671, 0.2838, 0.0126, 0.1995, 0.0885, 0.1447, 5.9117, 0.1298, 0.1681, 0.1029, 0.1061, 0.0908, 0.0933, 0.0924, 0.252, -0.0418, 0.1337, 0.0771, 0.1461, 0.0418, 0.1714, -0.1897, 0.1691, 0.0517, -0.0118, -0.095, -17.6767, 0.0202, 0.2521, -0.0219, 0.1539, 0.0063, 0.087, 0.0542, 0.1139, -0.3393, 0.1311, -0.0559, 0.1018, 0.1237, 0.1139, 0.2879, 0.3086, 0.1006, -0.1354, 0.0723, -0.0247, 0.2428, -7.5642, 0.1493, -0.9491, 0.0821, -0.1111, 0.2644, 0.1196, 0.1452, -0.4026, 0.0875, 0.1072, 0.3617, 0.1465, 0.1528, 0.1331, 0.1555, 0.1562, -0.4012, 0.3411, 0.1936, -0.036, 0.1916, 0.1091, -0.0192, -0.2936, -2.4719, 0.3959, 0.0656, -0.0405, -3.0586, 0.001, -0.3809, 0.101, 0.2259, 0.0736, -1.2995, 0.0729, -0.496, 0.0609, 0.0277, 0.0852, -0.0114, -0.235, 0.0, 0.0386, 0.0134, 0.0098, -3.28, 0.0535, 0.1415, 0.0059, 0.183, 0.0622, 0.0289, 0.0525, 0.1318, 0.1012, 0.0975, 0.5769, 0.1674, -0.0647, 0.0236, -0.4663, -0.0484, -0.0563, -0.0103, -0.0987, -0.0744, -0.3035, -0.0983, 0.1009, 0.2288, 0.0813, 0.2079, -0.033, 0.196, 0.6635, -0.0817, -0.0371, 0.1196, -0.1047, 0.2577, 0.0251, 0.1111, 0.0968, 5.9358, -0.0991, 0.1998, 0.122, 0.0016, -0.0799, 0.098, -0.009, -0.0591, 0.0648, 0.317, -0.0458, -0.1949, -0.4328, -0.6921, 0.2275, 0.089, 0.0117, 0.1044, 0.0886, 0.1769, -0.9089, 0.1149, -0.472, 0.0343, -0.1031, 0.1692, 0.2065, 0.0, 0.1108, 0.1324, -0.8086, 0.0502, -0.0352, 0.376, -0.0269, 0.0092, -0.2711, -0.0451, -0.0011, -1.9282, 1.1646, 0.0896, 0.0893, -0.025, 0.0, -0.0892, -0.0087, 0.0252, 0.0282, 0.1011, 0.0616, 0.0455, 0.0402, -0.2456, 0.1076, -0.0958, -0.0947, -0.2099, 0.0852, 0.0284, 0.0162, -0.5915, -0.0423, -0.0662, 0.093, 0.1585, 0.1405, -0.1716, -0.1412, -0.0792, -0.1825, 0.0727, 0.0082, 0.0503, -0.1125, -0.0936, 0.0855, 0.2401, 0.1801, 2.1339, -0.1336, 0.0788, 0.1108, 0.7567, -0.0206, -0.0084, -0.0464, -0.3426, -0.0131, -0.5076, -0.0261, 0.6556, -5.9983, -0.0583, 0.0973, -0.3453, 0.0829, 0.049, 0.0146, -0.056, 0.1249, -0.0052, -0.1276, -0.1825, -0.0134, 0.085, 0.0667, -0.036, 0.0, 0.0805, 0.0786, 0.1657, 0.7552, 1.3424, 0.2408, 0.1251, 0.0396, 0.0506, 0.1579, 0.8137, 0.1551, -0.1756, -0.1155, 0.0357, 0.0037, -0.2777, 0.2628, 1.2347, -0.4865, 0.1101, 1.0635, 0.0414, 0.0735, 0.3288, 0.0556, -0.2266, 0.0239, 0.2667, -0.0433, 0.1385, 0.0306, 0.9307, 0.7327, 0.1068, 0.095, 0.0386, 0.7496, 0.1638, 0.0425, -0.0157, -0.0004, 0.6806, 0.0891, 0.1215, 0.0257, 0.0038, -0.3552, 0.0232, 1.4065, -0.0012, 0.0924, -0.093, -10.5259, -2.7894, -0.076, -0.5691, -0.0595, 6.6667, 0.349, 0.1075, 0.1667, -0.0369, 0.0793, -0.1663, 0.0908, 0.0507, 0.1151, 0.1105, 0.0456, 0.1173, 0.2032, 0.0423, 0.0644, -0.2003, 0.1008, 0.0, 0.8079, 0.092, 0.1061, 0.2623, 0.1707, -0.0739, -0.305, 0.1185, 0.1225, 0.1476, 0.0824, -0.8581, 0.0201, 0.1058, -0.21, -0.5794, -0.0758, 0.1997, -0.5939, 0.0692, 0.091, 0.104, 0.5125, 0.062, 0.0964, 0.0856, 0.1186, 0.1398, 0.1354, 0.0156, -0.068, -0.336, 0.1676, -0.1229, 0.1822, -11.59, -0.4232, 0.0082, 0.0428, 0.1412, -0.4562, -0.0464, -0.2073, -0.1604, -0.2988, 0.089, 0.0921, -1.5867, 0.0942, 0.1793, -1.5967, 0.1308, -2.0299, -0.8056, 0.0743, -0.0809, 0.0202, -4.995, 0.0511, 0.1829, 0.0797, 0.0493, 0.0654, 0.0751, 0.7414, 0.4373, 1.9109, 0.0844, 0.1652, -0.15, -0.516, -0.2333, -0.0506, 0.0965, 0.0852, -0.1458, 0.027, 0.0124, -0.248, -0.0412, -0.0663, -0.2252, 0.4787, -0.3351, -0.8422, -0.2072, -0.1999, -0.2375, 0.2846, -0.1072, 0.0, -0.1706, -0.1248, 1.3382, 0.1182, -0.0516, -0.0872, -0.1101, -0.0556, 0.1932, 0.1082, 0.097, 0.1293, 0.0775, 0.0835, 0.1143, 0.0912, 0.1788, 0.1216, 0.0755, 0.0497, 0.0916, 0.1002, 0.2696, 0.0494, 0.1121, 0.071, 0.0796, -0.1074, 0.067, 0.3895, 0.0717, 0.2225, -0.036, -0.0352, -1.4622, 1.7725, 0.0039, -0.0547, -0.1226, -0.3328, -0.4073, 0.1387, -0.0759, -0.1001, -0.0714, 0.5724, -0.2143, 0.2633, 0.3024, 0.0991, 0.1192, 0.0513, 0.0179, 0.0499, 0.0678, 0.0671, -0.0746, 0.0877, 0.1193, 0.0585, 0.0926, -0.0208, 0.0337, 0.1166, -0.2866, -0.1146, -0.3564, 0.2426, -0.0508, -0.0087, 0.0784, 0.0, -0.1608, 0.1694, 0.0718, 0.0873, 0.0605, 0.0625, 0.1828, 0.0149, 0.1159, 0.1491, 0.1271, -9.5845, -0.2781, 0.1104, 0.0611, 0.0181, 0.0984, -0.0182, 0.1142, 0.0239, -0.087, -0.1227, -0.0289, -0.002, 0.0677, 0.0888, 0.1424, -0.059, -0.01, 0.0673, 0.1494, 0.0572, 0.1364, 0.0651, 0.4301, 0.1392, -0.0796, 0.0194, 0.025, 0.1556, 0.1163, 0.1087, 0.0021, 0.192, 0.2106, -0.0137, 0.092, 0.0922, 0.1657, 0.0564, 0.0729, -0.0101, -0.0008, -1.489, 0.0049, 0.225, 0.0338, 0.1226, 0.3372, 0.1058, 0.0765, 0.1368, 0.0037, -0.0029, -0.0021, -0.1253, 0.1724, 0.0021, 0.132, -0.0882, -0.1079, -0.0918, -0.2371, 0.0897, 0.165, -0.0187, -0.03, -0.0785, 0.1271, 0.0192, -0.0943, 0.0808, 0.0276, 0.0298, -0.2648, 0.0837, 0.0411, 1.7972, -0.1114, 0.0404, -0.0444, 1.4111, 0.1252, 0.1638, -0.099, 0.1372, 0.081, 0.0, 0.0131, 0.0445, 0.1223, -0.165, 0.0441, -0.0857, 0.0307, -0.6019, 0.1438, -0.094, 0.2903, -0.0973, -0.1376, 0.0025, 0.1219, -0.0707, -0.0874, -0.1465, 0.1306, 0.1181, 0.1053, -1.1939, -0.0236, -0.0131, 0.0188, 0.0035, -0.0051, -0.5823, -0.0871, 0.1315, 0.5277, 0.0909, 0.0886, 0.0978, 0.1733, 0.1816, 0.0775, -0.0926, 0.0866, 0.1633, 0.1001, -0.0243, -0.0223, 0.18, -0.1567, -0.1243, 0.1972, 0.077, -0.0085, 0.1147, 0.0868, 0.1342, 0.0564, 0.0805, 0.0861, -0.0819, -0.002, -0.012, 0.0504, 0.0192, -0.435, -0.0734, 0.0311, -0.0358, 0.0588, 0.0124, 0.1045, -0.0268, 0.1254, 0.007, 0.0099, 0.1075, 0.3352, 1.1044, 0.0273, 0.5127, 0.0451, -0.2643, -0.0754, 0.2571, -0.0186, 0.1335, -0.2075, 0.8958, 0.1309, -0.0288, -1.8772, 0.1539, 0.1072, 0.0666, 0.4238, 0.0751, 0.106, 0.0987, -0.119, 0.3299, 0.1587, 0.0015, 0.1162, -0.8254, 0.0114, 0.021, 0.1001, 0.074, 0.1045, 0.1, 0.0537, 0.0725, 0.0733, 0.1904, 0.0988, 0.1259, 0.0871, 0.127, 0.227, -0.0525, -0.1387, 0.164, 0.097, -0.9632, 0.0528, -0.2344, -0.8566, 0.003, 0.0639, 0.0408, 0.6468, 0.0445, 0.061, 0.008, 0.0689, -0.0514, 0.0972, 0.0499, 0.1595, 0.1523, 0.6438, 1.45, -0.5135, 0.1056, 0.2667, -1.3768, -0.072, 0.0861, 0.3208, 0.1133, 0.0203, 0.026, 0.0674, -0.9826, -0.0175, 0.4479, -0.0733, -0.4596, 0.201, -1.8608, 0.0041, -0.0181, -1.4866, -0.0262, 0.1534, 0.0345, 0.0, -0.2401, 0.2306, 0.0408, 0.0998, -0.0357, -0.1969, 0.0341, 0.1156, 0.1023, 0.112, 0.0565, 0.0584, 0.0774, 0.1774, 0.0598, 0.1394, -0.181, -0.0202, -0.4438, -1.94, -7.8877, -0.6098, 0.1019, 0.1473, 0.0554, 0.0596, 0.0448, 0.0642, 0.0687, -0.0844, -0.0009, 0.0674, 0.1212, 0.0496, 0.2919, -0.145, 0.0577, 0.1325, 0.1092, -0.0968, -0.0692, 0.1155, 0.0886, 0.0321, 0.0338, -0.1577, -0.1296, 0.0, 0.0982, -11.0, 0.0189, 0.1222, -0.1715, 0.075, 0.0032, 0.0, 0.2582, 0.1315, 0.1485, 0.1254, 0.1206, 0.2262, 0.1541, -0.0306, 0.2951, -0.1241, 0.0796, 0.0447, 0.0528, -0.0203, 0.023, 0.0883, 0.1181, 0.274, -0.0046, -0.1588, -0.0348, -0.0139, 0.2344, 0.0438, -0.0676, -0.0784, -0.0225, 0.0436, 0.1678, 0.1031, 0.1392, -0.1523, 0.1533, 0.0257, 0.0108, -0.1259, -0.6465, -0.3122, 0.0237, 0.0, 0.056, -0.7757, 0.0203, -0.0006, 0.2059, 0.0, 0.0, -0.051, 0.1488, 0.0465, 0.0702, 0.1738, 0.2611, 0.0737, 0.2408, 0.0293, 0.6386, 0.0644, 0.4284, 0.1027, -0.3495, 0.1062, -1.3936, -0.0129, 0.0689, -0.0273, -0.2467, 0.0857, 0.9834, -0.0595, -0.46, -0.0729, 0.0478, 0.0236, -0.2123, 0.2163, -0.0925, -0.077, 0.0739, 0.2143, 0.052, 0.067, 0.0702, 0.0574, 0.0545, -0.9673, 0.006, -0.0521, -0.0057, 0.3255, 0.0943, 0.2, -0.1083, -0.031, 0.0124, 0.0931, 0.0928, -0.0102, 0.2033, -0.466, 0.276, 0.0048, -0.168, 0.2589, 0.1283, -0.071, -0.2401, 0.1993, 0.127, 0.0554, 0.3033, 0.0614, 0.0803, 0.3324, -0.1424, 0.0888, 0.128, -0.0391, -0.1676, 0.0945, -1.0607, 0.013, 0.1144, 0.0908, -0.0701, 0.0, 0.036, 0.1225, -0.696, 0.2606, -0.0673, -0.1049, 0.0874, 0.0016, 0.0761, -0.2446, -0.0707, -0.0309, -0.0156, 0.1239, 0.8893, 1.7123, -0.0011, 0.0951, 0.1016, 0.0, 0.1426, 0.0211, 0.0305, 0.1708, 0.0724, -0.1113, 0.0049, 0.1553, 0.1043, 0.0187, 0.1818, 0.0896, -0.0425, -0.0651, -0.0357, 0.2409, -0.0214, 0.1811, 0.1472, 0.1413, 0.1049, -0.4935, 0.2539, 0.122, 0.1002, -0.0151, 0.3659, -0.0946, -0.0301, -0.1823, -0.0447, -0.0013, 0.1094, 0.165, 0.0884, -0.0048, -0.022, -0.0889, 0.0661, 0.0181, -0.1986, -0.1155, -0.048, 0.0191, 0.2038, -0.0068, 0.0584, -0.1604, 0.144, 0.0433, 0.0195, -1.7498, 0.0157, 0.1078, -1.0967, 0.1782, 0.1903, 0.1037, 0.1816, 0.0579, 0.0525, -0.3124, 0.2329, -0.0025, -0.0311, -0.0927, 0.1807, 0.0, -0.0603, -0.0572, -0.0662, -0.297, -0.045, 0.0453, 0.1166, 0.0621, 0.1077, 0.0376, -0.0983, -0.066, -0.0138, 0.0158, -0.1972, 0.2397, -0.0351, 0.5154, -0.3513, 0.0719, 0.2054, -0.7192, 0.2036, -1.2878, 0.2452, 0.0477, 0.0366, 0.0721, 0.8013, 0.0, -0.0123, 0.0886, -1.1289, 0.1642, -0.1012, -1.3299, 0.0634, 0.0458, 0.0218, -0.0633, -0.1356, -0.0463, 0.1536, -0.0236, -0.0702, 0.2841, 0.0563, -0.0241, 1.1611, -0.0252, 0.1142, 0.1554, 0.3529, 0.0865, 0.3509, 0.1503, 0.1621, 0.2065, -0.0404, -0.1348, -0.8795, -0.5645, -0.3001, 0.069, -0.0045, 0.0579, 0.0515, 0.1877, 0.0512, 0.4156, 0.0591, -0.0205, 0.0624, -0.0831, 0.1087, -0.0132, -0.0027, 0.1117, 0.0475, 0.4163, 2.2207, -0.068, -0.7648, 1.4628, 0.0313, 0.0657, 0.0874, 0.1178, 0.3057, -0.0319, 0.2076, 0.3832, 0.1377, 0.2647, 0.1166, 0.0268, -0.08, -0.04, 0.082, 0.0892, -0.0634, 0.1739, 0.0838, 0.0939, -0.0132, -0.2883, 0.1017, 0.0037, 0.0748, 0.1219, -0.6971, 0.1849, 0.8719, 0.1027, -0.0678, -0.4226, 0.2766, 0.0, 0.0, 4.7567, 0.0291, 0.5248, 0.036, -0.1658, 0.1009, -0.0655, 0.0074, -0.0292, 0.1604, -0.0557, 0.0238, 0.0368, -0.1009, 0.3356, -0.1296, 0.1071, 0.5942, 0.1847, -0.0427, -0.0854, -0.4542, -0.0683, -0.2536, 0.1175, 0.0214, -0.1536, 0.1335, 0.129, 0.1856, 0.1068, -0.443, 0.0378, 0.0403, 0.3693, -0.0641, 0.0686, -0.2803, -0.0253, 0.2218, 0.2025, 0.3605, 0.0795, 0.1455, 0.0, -0.014, 0.1515, -0.2994, 0.0259, -0.1055, -0.0759, 0.3566, -0.0063, 0.0173, -0.11, 0.0545, 0.001, -0.0914, 0.0892, -0.0852, -0.0814, -0.0741, 0.4587, -0.0475, -0.0006, 0.1118, 0.0, -0.0624, -0.0168, -0.0514, 0.0, -0.1034, 0.221, 2.3385, -0.4901, -0.2767, -0.0466, -0.0505, -0.4101, 0.0343, -0.3159, -0.0052, -0.0047, 0.0725, -0.0675, 0.0981, -0.6224, -2.2699, 0.1656, -0.1339, 0.1013, 0.2004, 1.8342, -4.1759, -2.3554, 0.0285, 0.1197, -2.6339, -0.3152, 0.1661, -0.1292, 0.1374, -0.0075, 0.1287, 0.1071, 0.2084, -0.5238, 0.049, 0.0411, 0.0756, 0.0, -0.029, 0.3113, 0.0565, -0.0909, 0.0714, 0.2127, -0.0198, 0.0642, 0.1834, 0.0448, 0.1409, 0.2014, 0.2105, -0.1333, 0.0203, 0.0148, -0.1332, 0.0489, -0.0381, -0.059, 0.2506, -0.1999, 0.3866, 0.6295, 0.0001, 0.1733, 0.0229, 0.1242, -0.1107, 0.5074, 0.0214, -0.0481, -2.125, -0.0375, 0.2706, 0.1961, -0.015, 0.0822, 0.0706, 0.164, 0.1388, 0.1587, -0.0317, -0.0477, -0.0693, 0.2986, 0.161, -0.1341, 0.0956, -0.0662, 0.0519, 0.0788, 0.0825, 0.2821, 0.1014, 1.7506, 0.0996, 0.0999, 0.0195, 0.1275, 0.0949, -0.4945, 0.1926, 0.2456, 0.1319, -0.005, 0.1393, -0.0664, 0.0386, 0.4106, 0.1327, 0.1647, 0.2023, -0.5823, 0.0027, -0.8029, 0.0051, 0.1975, 0.0795, 0.0499, 0.1368, 0.0795, 0.1786, 0.143, 0.0519, 0.1583, -0.6675, 0.083, 0.0965, 0.1466, 0.1067, 0.0824, 0.0502, -0.1227, -0.2063, -0.0753, -0.2096, 0.4564, -0.0098, -0.0152, 0.779, 0.0086, 0.0631, -0.2182, 0.0278, 0.0048, -1.6712, -0.1455, 0.083, -0.215, -0.0336, -0.8073, 0.0912, 0.1857, 0.0, -0.0022, -0.1108, -0.1773, 0.1272, -0.0548, 0.0021, 0.1244, 0.0585, 0.0835, -0.5224, 0.2304, 0.0725, 0.1284, 0.0735, -0.0905, -0.7521, 0.1789, 0.0904, 0.1104, 0.48, -0.3071, 0.0238, -0.4956, -0.2293, 0.0755, 0.2332, 0.0, 0.0, 2.0701, 0.0, -0.0622, -0.12, -0.0514, 7.315, -0.0104, 0.1236, 0.0, -0.0231, 0.0413, 0.1739, 0.4415, -0.0509, 0.1556, 0.1029, 0.2034, 0.2008, 0.2315, -0.0019, 0.0042, 1.3275, -0.889, 0.0729, 0.1704, -4.1747, 0.2527, 0.0013, -0.1127, 0.1253, 0.1255, -0.1407, -0.0451, 0.1611, 0.045, 0.0876, 0.1556, 0.4627, -1.2737, 0.1937, -1.2958, 0.0591, 0.0084, 0.3076, 2.431, -0.3057, -0.029, -0.0459, 0.1215, 0.1279, 0.0648, 0.2611, 0.0103, 0.2403, 0.0909, 0.0862, 0.0122, 0.6996, 0.0654, 0.0897, 0.2246, 0.2082, 0.2123, 0.0691, -0.6572, 0.0156, 0.0811, -0.1947, -0.1062, 1.8098, -4.1158, 0.1593, -0.0561, 0.1101, -0.0238, 0.092, 0.3831, 0.0089, 0.0431, 0.0256, -0.0088, 0.06, 0.6897, 0.0472, 0.1372, -0.0608, 0.1078, -0.7295, 0.1182, 0.005, -0.0468, 0.0706, -0.4987, 0.0888, 0.0501, 0.1515, 0.1195, 0.3176, 0.0112, 0.1372, 0.2951, 0.6269, 3.9175, 0.973, -0.0812, 0.0228, 0.063, 0.232, 0.1789, -0.3008, 0.1529, 0.1263, 0.1715, 1.1975, 0.0093, -0.1013, 0.0883, 0.1764, 0.0005, -0.5937, -0.1259, -0.6611, -0.357, 0.2727, 0.1755, -0.067, -5.2492, 0.2794, 0.0567, 0.0691, 0.0407, 0.0, -0.0659, 0.072, 0.1898, 0.0084, -0.0519, -0.6883, 0.103, 0.112, 0.1232, 0.1901, 0.1624, 0.1679, 0.3721, -0.1006, 0.0311, 0.2295, 0.1578, -0.0943, 0.0644, 0.2336, 0.0744, 0.2589, 0.1515, -1.6058, -0.1075, -0.1357, -0.5499, 0.1457, 0.2032, 0.1828, 0.8843, -0.0388, 0.0824, -6.1512, 0.2245, -0.1724, 0.014, 0.0048, 0.2379, -0.3379, -0.1277, 0.0809, -0.0966, -0.0976, -0.0973, 0.1724, 0.3928, -18.168, 0.2207, -0.1067, 0.1576, 0.0712, -0.197, -0.0187, -0.0795, -1.1765, 0.2283, 0.0, 0.6121, 0.2417, 0.525, -0.0672, 0.1894, 0.1512, 0.0338, -0.0251, 0.0592, 0.0898, -0.0388, 0.2693, 0.0256, 0.0145, -0.0954, 0.0205, 0.0136, 0.0768, 0.1079, 0.0836, -0.1983, -0.0621, -0.1036, -0.1696, -0.1673, 0.5141, 0.581, 0.0492, 0.9504, 0.0211, -0.0022, 0.0357, 0.0192, -0.2451, -0.0803, -0.0115, -0.0082, 0.0315, 0.0089, -0.0023, 0.1398, 0.1145, -1.4711, 0.0966, 0.0386, 0.1712, 0.1257, 0.0314, 6.1138, 0.0831, 0.0198, -0.0301, 0.0323, -10.5572, -7.4262, 0.0838, 0.1149, 0.104, 0.127, 0.0347, 0.1276, 0.0819, -0.0638, -0.054, 0.126, 0.0707, -0.0685, 0.043, -0.0462, 0.0518, -0.0108, -0.2368, 0.1567, 0.1354, -0.006, -0.1662, 0.2483, 0.0973, 0.0333, -0.2931, 0.1455, 0.0152, -0.0626, 1.0335, 0.5319, -0.023, 0.0876, 0.118, -0.5528, -2.4324, 0.2209, -0.1537, -0.2153, 0.11, -0.0338, 0.151, 0.0891, -0.0991, 0.0752, 0.0826, 0.0421, 0.2933, 0.0, 0.0177, 0.385, 0.0371, 0.006, 0.0137, 0.0083, 0.0977, -0.3831, 0.1351, -1.369, 0.0793, 0.0446, -0.3065, 0.0523, 0.1605, 0.0291, 0.2315, -0.0073, -0.1254, 0.1995, 0.076, 0.101, 0.5061, -0.1129, -0.4391, 0.0, 0.0461, -0.1086, 0.0978, 0.4866, 0.0327, 0.0123, 0.2054, -0.3636, 0.0064, -0.0034, -0.0091, -0.0547, 0.1369, 0.0853, 1.086, -1.8021, 0.3345, -1.1161, 0.0381, 0.4969, 0.1167, 0.107, 0.1925, -0.1754, -0.027, 0.1315, 0.5129, 0.2436, -0.1103, -0.5101, -0.0001, 0.194, 0.1453, -0.2995, 0.1254, 0.1084, 0.0916, 0.0794, 0.2104, 0.0973, 0.0453, -0.0791, -0.0229, 0.1027, 0.1412, -0.0009, 0.0747, 0.0, -0.018, 0.0507, 0.057, 0.1276, 0.0501, 0.0799, -2.8266, -0.3884, 0.5222, 0.2386, -0.0532, 0.1634, 0.2571, 0.0301, 0.0208, 0.0213, -0.0536, 0.3758, 0.6929, 1.7392, 0.0195, 0.1211, 0.0604, 0.0766, 0.142, 0.0, 0.1139, 0.0463, 0.0071, 0.0179, 0.2017, 0.1632, 0.0451, 0.0474, 0.0802, 0.1, 0.0247, 0.0196, 0.4474, -0.2295, 0.0717, -0.1566, 0.4562, -0.7117, -0.0125, 0.1547, -0.1083, -0.1518, 0.1008, 0.0659, -6.0879, 0.5101, -0.1038, 0.0927, 0.1334, 0.292, 0.0596, 0.2493, 0.1907, 0.1389, 0.1135, 0.1031, 7.895, 0.1166, 0.0526, 0.68, -0.0829, -0.0079, -0.3214, 0.0861, 0.1562, 0.0977, -0.7562, 0.3342, -0.7813, 0.0383, 0.1548, -0.7266, 0.1161, -1.1568, -0.1279, 0.0344, 0.2271, 0.3855, -0.0419, -0.0404, 0.0636, 0.0454, 0.1006, 0.0995, -0.0161, -0.1328, 0.5102, 0.1465, 0.02, 0.0755, 0.0871, 0.0024, 0.1059, 0.0949, 0.6967, 1.5883, 0.0902, 0.128, 0.0605, 0.0414, 0.0677, 0.0282, 0.5797, -0.0684, -0.8068, -0.0565, 0.1613, 0.0481, -0.1371, 0.0073, 0.0, 0.0851, -0.0362, 0.2548, -14.4858, -0.0204, 0.0658, 0.0611, -0.1035, -0.1149, 0.1872, 0.1482, 0.5874, 0.6759, -0.1038, 0.0, 0.2087, 0.037, 0.1384, 0.0859, -0.2374, 0.2696, 0.069, 0.0864, 0.081, 0.026, -0.9309, -0.0156, 0.1578, 0.1214, -0.2634, -0.0658, 0.2338, 0.0113, 0.2341, 0.1001, -0.2285, 0.1213, 0.0701, 0.0946, 0.2331, 0.7814, 0.1656, 0.139, 0.0691, 0.0415, 0.2764, 0.0813, -0.2465, -0.0328, -0.0936, 0.0133, -1.0144, 0.8451, 0.1363, 0.6987, 0.2232, 0.0684, -0.0907, -0.5477, -0.4433, -0.0072, -0.8187, -0.1564, 0.5452, 0.0068, 0.2171, 0.0738, 0.2691, 0.1337, 0.033, 0.0061, 0.0815, 0.0377, 0.3165, 0.4421, 0.0067, 0.0317, -0.112, -0.3119, 0.941, 0.0, 0.0131, 0.1778, 0.7331, 0.156, -0.1478, -2.7631, 0.6436, -0.1529, 0.6211, -0.3491, -0.0259, -0.0152, 0.1333, -0.212, -0.0091, -0.0407, -1.6565, -0.2302, 0.0494, -0.0012, 0.1099, -0.0525, 0.1489, 0.1499, 0.0672, -0.1352, -0.0043, -0.0028, -0.0264, 0.1891, -0.2411, -0.113, -0.0878, 0.4951, 0.057, -0.099, -0.0539, -0.0661, -0.041, 4.047, -0.1369, 0.0398, 0.1024, 0.0936, 0.056, -0.1267, 0.097, 0.1411, -0.0925, -0.2384, 0.0117, 6.1495, 0.208, 0.1515, 0.1257, -0.1308, 0.0935, -0.1384, -0.1534, 0.0987, 0.0617, -0.0005, 2.5001, 0.0356, -0.3151, 0.166, 0.1034, 0.1018, 0.0, 0.1498, 0.0484, 0.1008, 0.0324, -0.0564, -0.0527, 0.0278, -0.1106, 0.0316, 0.0374, 0.0135, -0.0142, -0.0075, 0.0729, 0.1048, 0.797, 0.0024, 0.0315, 0.2327, -0.132, 0.0734, 0.0047, 0.0, -0.0774, 0.0645, 0.0897, 0.1366, 0.051, 0.081, 0.25, 0.6698, -0.0691, 0.2288, 0.0051, 0.031, 0.111, 0.0436, 0.1042, 0.0093, 0.0, 0.1495, 0.0038, -0.0111, -0.0179, 0.0279, 0.0693, 0.1064, 0.0482, -6.889, 0.1191, -0.0136, -0.0172, 0.1294, 0.0289, -0.2277, -0.3299, -0.1672, -0.0542, -0.0095, 0.108, 0.0091, -3.0929, -0.0316, 0.8973, 0.1537, 0.136, -0.4977, -0.1404, -0.0477, 0.1798, 0.096, -1.1208, -0.3073, 0.1496, 0.0, 0.0, 0.1029, 0.0408, -0.0145, 0.0205, 0.065, 0.0725, 0.0579, 0.1258, -0.0837, 0.0426, -0.056, -0.1839, -0.7124, -0.1437, -4.6667, 0.0613, -0.0332, 0.1251, 0.1228, 0.056, 0.1747, -0.2343, -5.6075, -0.0348, -0.0172, 0.1183, -0.6404, 0.0914, 0.0786, 0.1747, 0.1594, -0.0705, -0.0012, -0.1049, 0.0619, -0.0145, 2.5583, 0.1999, -0.6459, 0.0857, -0.0063, -0.0282, 0.0441, 0.1615, -0.0218, -0.1109, 0.0813, 0.1576, -0.029, 0.0398, 0.1887, -0.0535, 0.0404, 0.7092, 0.2189, 0.9929, -0.0411, 0.0842, 0.0066, 0.1389, -0.0081, -0.6761, 0.1312, 0.0355, 0.1301, -0.3401, 0.9535, 0.1035, 0.0398, 0.1169, 0.1181, 0.1726, 0.2841, 3.8633, 0.0649, 0.2743, -0.1379, 0.0103, 0.0358, -0.1346, 0.171, -0.1888, 0.0959, 0.3382, 0.0825, 0.5572, 0.0172, 0.0, -3.975, 0.0471, 0.0337, 0.3457, -0.1225, -0.0031, 0.1647, 0.1037, 0.1429, 0.0807, -0.0206, 0.7157, 0.0077, -0.2516, 0.0212, -0.3543, 0.1038, -11.2027, -0.5194, -0.1015, 0.2296, -0.0247, 0.0852, 0.1295, -0.0321, 0.079, -0.0247, -0.315, 0.1068, -0.0108, -0.0684, 0.314, 0.1029, -0.0302, 0.1398, -0.2182, -0.2556, -0.7231, -0.0587, -0.0847, 0.2077, 0.1134, -0.549, 0.1285, -0.0072, -0.3318, 0.6937, 1.8554, 0.0541, 0.0592, 0.0863, -0.0076, 0.2052, -0.0387, 0.0537, -0.0178, 0.0787, 0.0921, 0.0252, 0.0815, -0.1115, 0.1241, 0.1061, 0.0546, -0.1808, -0.2471, -0.2627, 0.0437, 0.12, 0.058, -0.1583, -0.06, -1.5142, 0.1012, 0.0093, 0.0872, -0.3342, 0.1135, -0.3273, -0.0984, -0.1308, 0.4429, -0.0169, 0.0768, -0.4344, -0.1157, 0.0893, 0.0424, -0.2255, 0.1069, -0.0954, -0.0273, 0.0183, -0.0256, 0.1342, 0.0678, 0.0971, 0.2152, 0.3817, -0.0127, -0.0812, 0.0252, 0.0744, 0.122, 0.0866, -0.2793, 0.1918, -0.281, -0.1853, 0.0899, -0.0204, 0.7836, -0.0194, -0.0256, 0.145, -0.0075, 0.1885, -0.3514, -0.0751, -0.028, -0.1413, 0.1779, -0.0757, -0.8894, -0.2715, 0.0797, 0.0024, 0.2976, 0.0604, -0.0434, -0.0423, -0.0324, 0.125, -0.3034, 0.0444, 0.0899, 0.0252, 0.0889, 0.4816, -0.1457, 0.0821, 0.1372, 0.3067, -0.1328, -0.0228, 0.1616, 0.1684, -0.0176, -1.5718, 0.0724, -0.1443, 0.0424, 0.1272, -0.5384, 0.0398, 0.1527, 0.0581, -0.1112, 0.1252, -0.1287, -0.0765, -1.2814, 0.2601, -0.1247, -0.0742, 0.0089, 0.2411, 0.0733, -0.0559, -0.0923, -0.0733, 0.0282, 0.1185, 0.1265, -0.0811, 0.1125, 0.0678, 0.0931, 0.091, 0.1877, 0.3037, 0.1345, 0.1638, 0.454, -0.5193, 0.0694, -1.2954, 0.0517, 0.0615, -0.137, -0.1104, 0.103, 0.1166, 0.1603, 0.6165, 0.3955, -0.0253, 0.5217, 0.2554, 0.3814, 0.0775, 0.0755, -0.1159, 0.0841, 0.0659, -0.583, -0.2279, 0.0468, 0.0565, 0.0006, -0.0249, 0.1153, 0.0525, 0.0102, 0.0374, -0.1852, 0.081, 0.0556, -0.612, -0.0318, -0.0358, -1.9744, 0.0047, -0.0464, 0.0697, -0.929, 0.0977, -0.0407, -0.02, 0.0244, -0.289, -0.1111, 0.0147, 0.2383, 0.5193, 0.1428, -0.3177, 0.1851, 0.1751, 0.1776, 0.0121, 0.0, 0.039, 0.3698, 0.0943, 0.1249, 0.0601, 0.0, -0.0318, 0.0632, 0.204, 0.1381, 0.099, 0.1762, -0.0737, -0.0146, 0.184, 0.1414, 0.1474, 0.0207, 0.4175, 0.037, -0.054, 0.3177, -0.0135, 0.1704, 0.1442, 0.2403, -0.0589, 0.0379, -0.0377, 0.1087, -0.0516, -0.1808, 0.0, 0.4089, 0.0044, 0.0286, -0.1946, -0.7924, 0.0165, -0.0643, 0.1179, 0.1453, -0.6135, 0.2466, 0.1902, 0.0288, 0.0475, 0.0226, -0.0348, 0.2463, 0.0895, -0.0134, -0.0903, 0.226, 0.0947, -0.9371, 0.1798, -0.0399, 2.8178, -0.4451, 0.1159, -0.3473, 0.2565, 0.0603, 0.0776, 0.0296, 0.0567, -0.1247, 0.0703, 0.1354, -0.7159, -0.2022, -0.9247, 0.0, 0.0183, -0.1709, 1.9492, -0.1996, 0.0683, -0.0104, 0.1531, 0.2027, 0.1328, 0.2306, 0.2484, 0.0518, 0.0803, 0.0407, -2.0282, 0.1916, -0.0116, -0.3895, 0.2437, -0.9109, -0.048, -0.0691, 0.0035, 0.2999, -0.0153, 0.1159, -0.0047, -0.009, -0.0055, 2.7289, -0.1679, 0.1403, -0.0869, -0.076, -0.0815, -0.0062, 0.159, -0.0081, 0.1222, -1.9164, 0.0275, -0.1046, -0.5379, 0.1051, 0.0282, 0.069, 0.1055, 0.1878, 0.033, 0.1531, 0.1371, -0.1221, 0.0968, -0.0477, 0.0522, 0.1296, 0.0727, -0.0717, 0.0333, 0.0424, 0.1529, -0.0765, 0.1334, -0.513, 0.1172, 0.1308, 0.1448, 0.1061, 0.0, 0.0639, 0.0979, 0.1203, 0.2217, 0.0064, -0.0162, 0.0924, -0.0456, 0.0829, 0.039, 0.065, 0.04, 0.0263, 0.0353, 0.0854, 0.1047, 0.0813, -0.01, 0.3207, -0.1031, -1.5942, 0.0918, 0.1045, 0.0315, -0.1426, 0.034, -1.3908, 0.1103, -0.2645, 0.034, 0.0237, 0.0792, 0.2026, 0.2696, -6.9, 0.1545, -0.0582, -0.2418, -0.1603, 0.0523, 0.2, -0.0732, -0.0351, -0.0438, 0.0632, 0.0879, 0.1025, -1.102, -2.5537, 0.0901, -0.0178, 0.0056, 0.3459, -0.7881, -3.8172, 0.1842, -0.0565, 0.0851, -6.2529, -0.2681, 0.1234, 0.0858, 0.0528, 0.0713, -0.0795, -0.2667, -1.2254, 0.2065, -0.1282, -2.9538, -0.2802, 0.1667, -0.0885, 0.0728, 0.0832, 0.1495, 0.2072, 0.1089, -0.0148, 0.1924, 0.2156, 0.0595, 0.1732, 0.1134, 0.1022, 0.3928, 0.1081, 0.0944, 0.0162, -0.0486, 0.2361, -0.322, 0.4272, 0.2713, -0.09, -0.2431, -0.5552, 0.0389, 0.1859, -0.0985, 0.1289, 0.2922, 0.0136, -0.0036, 0.0479, 0.2148, 0.5944, 0.0649, 1.0589, 0.17, -0.0028, -0.0231, -0.0559, 0.1191, 0.0063, 0.124, 0.0696, -0.127, 0.0, 0.1984, 3.8133, 0.0, 0.0114, 0.1221, -0.0158, 0.1059, 0.1235, 0.1103, 0.1182, 0.2722, 0.0692, 0.2219, 0.2016, -2.3616, 0.146, 0.0317, -0.0841, 0.8345, -0.2324, -0.0861, -0.1714, -0.1214, -0.0334, 0.1021, 0.1992, -0.0608, -0.22, -0.5796, 2.5087, 0.0765, -0.0189, 0.0007, 0.0319, -0.0063, 0.1137, 0.1942, 0.1416, -0.1341, 0.0127, 0.1086, 0.0013, 0.1643, -0.1657, 0.0423, -2.4146, 0.0, 0.4204, -0.0205, 0.0693, -0.0217, 0.0488, 0.0466, 0.1119, 0.1704, -0.1438, -0.0015, 0.2204, 0.0949, 0.0508, 0.0006, -0.0839, -0.5588, 0.2023, -0.1525, -0.1388, 0.1538, 0.0, 0.0453, -3.7187, 0.0286, 0.1443, 0.0151, -6.6367, 0.1746, 0.0771, 0.0228, -0.1137, 0.0154, -0.1391, -0.1168, -0.1117, 0.0132, -0.0511, 0.7627, -0.1349, -0.2997, -0.0261, 0.1142, -0.0415, 0.103, -0.0885, -0.9062, 0.0, 0.0, 0.1689, 0.1858, 0.1253, -0.9374, -2.7706, 0.0164, -0.101, -0.0032, 0.1034, 0.0465, -0.0136, -0.1239, -0.0068, -0.2451, 0.0908, -0.1797, 0.0888, 0.3303, -0.1228, -0.9973, -0.0954, -0.1085, 0.1446, 0.1232, -0.5065, 0.169, 0.0417, -0.0401, 0.7532, 0.1215, 0.2037, 0.0094, -0.053, 0.1341, -0.2035, 0.1231, 0.1209, 0.1148, 0.1036, 0.0963, -12.705, -2.4082, 0.2923, 0.1205, 0.1193, -4.0558, -0.2264, 0.114, 0.0502, -0.0472, 0.1308, 0.0514, 0.0446, 0.0121, -0.1182, 0.036, -1.6774, -1.1804, 0.1247, 0.1401, 0.0129, 0.0942, 0.0252, -3.5144, -0.1014, -0.2795, 0.0238, 0.1393, 0.1078, 0.0336, -0.0692, 0.102, 0.3659, -0.0044, 0.0558, -6.8308, 0.1162, 0.0259, -0.0824, -0.123, 0.0893, 1.3632, -0.0972, -0.1521, 0.1815, -0.0156, 1.9695, 0.0967, 0.2195, -0.8686, -0.2738, -0.0422, -0.0295, 0.2892, 0.1218, 0.0522, 0.1804, 0.2212, 0.0289, 0.6384, 0.0476, 0.0925, 0.0609, -0.4333, 0.1833, -0.105, 0.0028, 0.1815, 0.0377, 0.0213, 0.0321, -0.0825, 0.0822, 0.1255, -0.0606, 0.0902, 0.081, 0.0687, 0.0511, -0.01, 0.1442, 0.0934, 0.1765, -0.3438, -0.701, 0.104, -0.1586, -0.0952, -0.4827, -1.9264, 0.2575, 0.0702, 0.0693, -1.2064, 0.2399, 0.0409, 0.0878, 0.1159, -0.0258, 0.0622, -0.0031, 0.3651, 0.108, 0.5032, 0.196, -0.1797, 0.062, 0.1699, 0.166, 0.8253, -0.0234, -0.2774, 0.0728, 0.0249, 0.0, -0.1069, -0.0369, -0.0484, -0.1753, 0.0412, -0.0437, 0.0, -0.2992, 0.2364, 0.0631, 0.106, 0.9798, 0.0037, 0.2111, 0.1022, -0.1422, 0.2235, -0.0108, 0.0193, 0.1167, 0.1661, 0.2738, -2.4336, 0.1169, 0.0649, 0.41, 0.1828, 0.085, 0.1389, 0.0179, -1.2469, 0.2791, 0.1974, -0.0813, 0.0409, -0.0881, -0.0046, -0.8665, -0.0444, 0.0999, 0.0183, 0.2542, -0.084, 0.0874, 0.07, 0.621, -1.1709, -0.0141, -0.0881, 0.1061, 0.0, 0.0, 0.0351, 0.1392, 0.0657, 0.1411, 0.0589, 0.019, 0.5467, 0.0139, 0.0781, 1.2796, 0.16, 0.0905, 1.4261, 0.0536, 0.3191, -0.0125, 0.274, 0.0591, -0.1803, 0.1887, 0.1146, 0.1128, -0.5653, -0.2875, 0.1234, 0.1737, 0.1, 0.5098, 0.0481, -0.0207, 0.1176, 0.4388, -0.3353, 0.1239, -0.0348, -0.0113, 0.7277, 0.7934, 0.0914, -0.08, -0.0673, 0.4242, -0.0881, -0.3449, -0.3785, -0.2206, -0.187, -0.4677, 0.2437, -3.1075, -0.2328, 0.8437, 0.0737, 0.3026, -0.0319, -1.3738, 0.0698, -0.7023, 0.0338, 0.0993, 0.0702, -0.0292, 0.1197, 0.0, -0.145, 0.1203, 0.0492, 0.1808, 0.2767, -0.0937, 0.0182, -0.652, -1.6979, 0.0348, 0.0412, 0.0209, 0.6605, -0.1249, 0.0786, 0.0684, 3.98, -1.0314, 0.1421, -0.0004, 0.2183, 5.0579, -0.0811, -0.0104, 0.1059, -0.0588, -0.0979, -0.0967, 0.2338, 0.1024, 0.044, -0.1447, -0.068, -0.0753, 0.1333, 0.0718, 0.1235, 0.0334, -0.0002, -0.6463, -0.1263, 0.3108, 0.0156, 0.7358, 0.0, 0.1002, -0.0115, -0.195, -0.0932, 0.1627, -0.0147, 0.1197, 0.2431, 0.1733, 0.201, -0.0832, 0.0, 0.0676, 0.22, -0.0044, 0.0959, 0.0725, 0.1045, -0.1612, -0.0721, 0.1263, -0.0371, -0.0844, -0.7583, 0.059, 0.7374, -0.056, 0.006, -0.0276, -1.5369, 0.2178, 0.0762, 0.1215, 0.0837, 0.0655, 0.0532, 0.3648, 0.2344, -0.1442, -0.0052, 0.0187, 0.0805, 0.1723, 0.0104, 0.0, -0.0808, -0.0504, 0.1906, 0.2439, 0.4727, 0.7284, -0.0771, 0.3655, -0.0557, 0.0061, -0.086, 0.1332, -0.0227, -0.113, -2.8357, 0.0299, -0.0957, 0.131, 2.22, -2.4329, 0.306, 0.0729, 0.2774, -2.0719, 0.146, 0.0247, -0.012, 0.1119, 0.0204, -0.0801, -0.2107, 0.0179, -0.1004, 0.0556, -0.0052, 0.0168, 0.0167, -0.3251, -0.1075, 0.1168, 0.0, 0.057, -0.01, -0.0846, 0.0517, 0.1527, 0.259, 0.0857, -0.1776, 0.0697, 0.1646, -1.2398, -0.0932, 0.0736, -0.673, 0.041, -0.7605, 1.769, 0.2276, -0.094, -1.2843, 0.0194, 0.278, 0.0301, 0.0, 0.0106, -0.0217, 0.061, 0.0069, 0.2596, 0.079, 0.3043, 1.83, 0.1839, -0.0182, -0.2943, 0.0, 0.1566, 0.1465, -3.7675, -0.0872, 0.2037, 0.0199, 0.0657, 0.0446, -0.2989, -0.0737, 0.3578, 0.1555, 0.0693, 0.087, 0.3302, -0.1327, 0.0, 0.1022, 0.0831, 0.7054, -0.0253, -0.0177, -0.0806, 0.1568, 1.2774, 0.1362, 0.2609, -0.2668, 0.1348, 0.1167, 0.1981, 0.044, -0.1543, 0.0243, 0.0278, -2.1823, -0.0137, 0.1293, -0.2325, 0.203, -1.3815, 0.1219, 0.1056, -0.0333, 0.0875, -0.0269, 0.006, 0.2381, 0.2406, 0.0427, 0.0479, -0.0092, 0.1043, 0.3734, 0.0089, -0.1405, 0.0355, -15.11, 0.0646, -1.002, 0.0734, -0.0249, -5.5057, 0.0658, 0.12, -0.004, 0.4432, 0.0183, 0.0338, -0.0909, -0.0558, 0.0784, -0.6554, 0.0103, 0.153, 0.0479, 0.0348, 0.1442, 0.0966, 0.0819, -0.1171, -0.0389, -0.2412, 0.2225, -0.0117, -0.2218, -0.1114, 0.1418, 0.1257, 0.133, 0.2087, -0.0401, -0.029, 0.3957, -0.2836, -0.1472, 0.1782, 0.1161, 0.1057, -0.1432, 0.0372, -0.966, -0.1953, 0.015, 0.4526, 0.0011, 0.1884, 0.324, -0.6064, 0.1837, 0.1028, 0.0, 3.0957, 0.0791, 0.1016, -0.0193, 0.1042, -0.2003, 0.1484, 0.0503, -0.0175, 0.1316, -0.0382, 0.2507, 0.082, 0.0633, -1.1916, 0.0904, 0.0238, 0.0845, 0.0854, 0.0545, 1.5983, -0.0776, -0.0753, -0.1837, -0.3926, 0.0388, -0.1909, 0.0429, -0.0975, 0.0486, 0.2816, 0.0749, -0.0772, -0.0166, 0.2078, 0.2243, 0.1737, 0.0057, 0.043, -0.2453, 0.1317, -1.2717, -0.064, 0.0, 0.1166, -0.1393, -0.1074, -0.176, 0.1397, -0.0294, 0.0276, 0.0, -0.2688, -0.1229, -0.5679, 0.0728, 0.0007, 0.0696, 0.0605, 0.081, 0.0148, 0.1962, 0.4418, 0.0397, 0.0287, 0.0158, 0.1823, 0.0, -0.3834, 0.2164, 0.1524, -0.0368, 0.0934, 0.0121, -0.3631, -0.0525, 0.0043, -0.071, 0.0804, 0.2401, -1.0525, 0.1257, 0.125, 0.0938, 0.0384, 0.1338, 0.2214, -0.0747, 0.0662, 0.37, 0.0139, -0.236, -1.3087, 0.0998, 0.0699, 0.0, 0.0302, 0.0879, -2.1014, 0.0571, -0.9737, -0.03, -1.1904, 0.0382, -0.1405, 3.1097, 0.0253, 0.1695, 0.0868, 1.0803, 0.1769, 0.1535, -0.051, 2.2033, 0.0235, 2.3612, -0.2197, 0.0732, 0.1247, 0.6295, 0.1136, 0.1011, 0.165, 0.1089, 0.1037, 0.1133, 0.0787, -0.0538, 0.3333, 0.0522, 0.1101, 0.0874, 0.1664, 0.1061, 0.0666, -0.1181, 0.0925, -0.5962, 0.0225, -0.066, -0.2338, -1.2018, 0.0336, 0.077, 0.2181, 0.0805, -0.0004, -0.0072, 0.0849, 0.0305, -0.0721, 0.2893, 0.1103, 1.235, 0.0754, 0.3035, 0.1597, -0.255, 0.2195, 0.1401, 0.6751, -0.2806, 0.1076, -0.2978, 0.0463, 0.1843, -0.2311, 0.078, 0.1855, 0.0865, 0.0691, -0.1682, 0.3056, -0.3669, -0.0964, 0.0646, -0.0191, -0.5804, 0.1914, 0.072, -0.0904, 0.0, -1.6368, 0.1664, 0.1366, -0.1542, -0.1406, 0.1043, 0.122, 0.2668, 0.1355, -0.1096, 0.1191, -0.0166, 0.1231, 0.0756, 0.022, 0.2218, 0.0108, 0.1788, 0.0, 0.08, -1.0648, 0.1128, 1.8306, -0.691, 0.0252, 0.0496, 0.1324, 0.0594, -0.1503, -0.018, 0.0, 0.1674, 0.2677, 0.0918, 0.0883, 0.1633, 0.1238, 0.1875, -0.4104, 0.1102, 0.1338, 0.4, 0.1285, 0.123, 0.0593, 0.0193, 0.138, 0.0464, 0.642, 0.1072, 0.11, 0.398, 0.0516, 0.0834, 0.1794, 0.0, 0.1053, 0.0, 0.2116, 0.244, 0.3928, 0.1216, 0.1571, -1.06, 0.1388, 0.157, 0.0193, 0.095, -0.0016, 0.109, 0.0288, 0.0272, 0.1489, 0.111, 0.0551, 0.5061, 0.042, 0.0918, 0.3555, 0.0022, 0.0994, -0.0577, 0.0094, 0.0275, 0.198, 0.0034, -0.0129, 0.0034, -1.3989, -0.0284, -0.3034, 0.0519, -0.0423, -0.0116, 0.0753, 0.0859, -0.0194, 0.088, 0.1499, 0.1827, 0.1554, 0.3616, 0.1702, 0.1642, 0.261, 0.0593, 0.0431, 0.3925, 0.1175, 0.0238, 0.2372, 0.6041, 0.0301, -0.001, 0.1006, 0.0013, 0.0124, -0.065, 0.0935, 0.0406, -0.2453, 0.1012, 0.1301, 0.0832, 0.0, 0.104, 0.0334, 0.0602, 0.1656, 0.1195, 0.1003, -0.0295, -0.0906, 0.0284, 0.1452, 0.8086, 0.0, 0.1108, 0.0572, 0.0796, 0.2207, -0.0238, 0.0241, 0.0448, 0.0434, 0.0726, 0.1569, 0.0771, -0.8575, -0.147, 0.425, 0.1018, 0.1772, 0.6861, 0.007, 2.0544, 0.0799, 0.0982, 0.1139, 0.1951, 0.7103, -0.2647, -0.3087, -0.0097, 0.0957, 0.0418, -1.3118, -0.0033, 0.0958, -0.5379, -0.1305, -0.2307, 0.0485, 0.0303, 0.1756, -0.154, -0.0928, -0.0837, -0.009, -0.2204, -0.0236, 0.0, 1.1564, 0.0605, -0.4554, 0.083, 3.0667, -1.0408, 0.0107, 0.2096, 0.0759, -0.1226, -0.0066, 0.1715, 0.0, -0.2338, -0.0564, 2.5386, -0.079, 0.0984, -0.1348, 0.113, -1.4456, -1.4944, -7.875, 0.0134, 0.0254, 0.3005, 0.0434, 0.0184, 0.1935, -0.0727, 0.1896, 0.2864, 0.1723, 0.0753, -0.0709, -0.1204, -0.1937, -0.6153, -3.4945, -0.0892, 0.05, 0.0943, -0.0113, 0.0367, 0.1802, 0.1, 0.1761, 0.1602, 0.1429, -0.0649, -0.3498, 0.0753, 0.5227, -0.1044, 0.1422, 0.0774, 0.0, 0.1571, 0.1835, 0.0676, 0.1821, -3.3447, 0.1348, 0.7322, -0.3421, 0.0758, 0.7575, -0.2849, 0.1053, 0.2059, 0.0, -0.5584, 0.0, -0.2786, -0.1607, 0.0152, -0.0441, -0.0031, 0.2072, 0.219, 0.2609, 0.2292, 0.2175, 0.0746, 0.0081, 0.2314, 0.0729, 0.0469, 0.1006, 0.2553, 0.1356, 0.2118, -0.1168, -0.0181, 0.1863, 0.239, 0.0, 0.2143, 0.0652, 0.0112, 0.2219, 0.0404, 0.1829, -0.118, -1.0533, 0.0743, 0.1855, 1.8074, 0.0943, 0.1035, 0.1058, 0.0325, -0.1786, -0.2172, -0.0727, 0.143, 0.1496, 0.0815, 0.0131, 0.0453, -0.1678, 0.0154, -0.0644, -0.0456, -0.1115, -0.1735, 0.1031, 0.0692, 0.0684, -0.043, 0.0884, 0.0825, 0.0777, -0.2598, 0.1099, 0.1053, 0.1163, 0.2392, 0.162, -0.0144, 0.0087, -0.1379, 0.5153, -0.1025, 0.0957, 0.0, 0.0205, 0.0789, 0.2274, 0.1219, 0.0535, -0.0099, 0.2259, 0.0446, 0.0828, 0.0, 0.018, 0.0846, -0.9642, -0.5013, -0.1902, 0.1269, 0.0776, 0.1931, -0.0342, -0.0133, -0.0208, 0.3601, -0.2892, 0.0973, 0.2949, -1.7429, 0.0243, -0.0411, 0.0111, -0.1368, 0.0785, 0.2193, 0.1486, 0.1221, 0.0792, 0.1728, 0.0552, -0.0921, 0.0925, -0.1307, -0.1006, 2.22, 0.0314, 0.0544, 0.009, 0.4444, 0.0629, 0.0616, 0.2996, -0.1146, -0.3739, 2.2925, 0.001, -2.7405, 0.0605, -0.0186, 0.0785, -0.0428, 0.1602, 0.0418, -0.2509, -0.2317, -1.1471, 0.2873, -1.6462, 0.0876, 0.5046, -0.4509, 0.0514, 0.0681, -0.1235, -0.955, 0.9857, -0.0025, 0.0271, -0.6904, -0.1611, 0.5758, 0.11, 0.0483, 0.1258, 0.0492, 0.08, 0.4479, -0.0112, 0.0695, 0.2082, 0.3844, 0.1398, 0.0973, 0.0045, 3.055, 0.284, -0.0114, -0.1223, 1.5295, 0.2163, 0.1561, 0.2703, 0.0469, 0.4651, -0.238, -0.0268, -0.0162, 0.0307, 0.0791, 0.0388, 0.0369, 0.1396, 0.0, 0.1682, -0.4783, 0.0852, -0.1051, 0.3349, 0.0969, 0.079, -0.0336, -0.1221, 0.1715, 0.0018, 0.1293, 0.1012, 0.1163, 0.0652, 0.1915, -0.0497, 0.0538, 0.0675, -0.115, 0.1018, -0.0816, 0.0662, -0.014, -0.2311, 0.0618, -0.0565, -0.064, 0.0404, -0.1336, 0.0768, 0.0765, 0.0815, -0.1117, 0.1017, -0.2366, 0.0254, 0.0, 0.1112, 0.0, 0.0769, -0.0795, 0.0, -0.0546, -1.9765, 0.1553, -0.0642, 0.0785, 1.2287, -0.7336, 0.0318, 0.0458, -0.0455, 0.0079, 0.0005, 0.0753, 0.1179, 0.0854, 0.0067, -0.1057, -0.0194, 0.0769, 0.0303, 0.0947, -0.057, -0.0863, 0.0987, 0.2118, 0.1076, 0.2092, 0.0884, 0.0912, 0.1748, 0.1489, 0.0851, -0.1977, -0.0726, -0.2758, 0.1211, -0.0947, 0.0432, -0.0576, -0.1467, -0.4502, 0.0783, -0.0339, 0.0657, 0.2069, 0.16, 0.166, 0.0934, 0.109, -0.0062, 0.0674, 0.0214, 0.1029, 0.1022, 0.3338, 0.0457, 0.0012, -0.0034, 0.1658, 0.1996, -0.0242, 0.0817, 0.0714, -0.3723, -0.018, 0.2433, 0.0832, -0.1215, 0.056, 0.1254, -0.0896, 0.0601, 0.0507, -0.1657, 0.0193, 0.1936, -0.0448, 0.1335, -0.6088, 0.3262, 0.0025, 0.1299, 0.017, -0.0054, -0.1198, -0.7419, 0.0806, -0.0137, -0.0024, 0.1256, -0.0178, -0.0659, 0.2013, 0.3478, 0.0623, 0.1411, -0.166, 0.0791, 0.0811, 0.0611, 0.1741, -0.0942, -0.203, 0.0406, 0.0171, -0.1195, -0.2019, -0.2183, -0.1143, -0.0999, 0.0, 0.2286, 0.1378, 0.0, 0.1393, 0.378, 0.138, 0.0153, 0.0996, 0.1325, 0.1194, -0.083, -0.0246, 0.0293, 0.1088, 0.2295, 0.0445, 2.189, 0.0247, 0.0722, -0.0099, 0.0536, -0.9777, 0.9015, 0.1173, 0.6674, -0.0259, -0.1098, 0.0887, 0.1164, 0.1316, 0.0, -0.0363, 0.1083, -0.0037, 0.5454, 0.1722, 0.0287, 0.1365, 0.044, 0.0243, 0.0742, -0.0226, 0.0489, 0.0688, 0.3646, 0.373, -0.6482, 1.3301, 0.0929, -0.1092, -0.0523, 0.0, -0.0364, 0.2978, 0.0589, -1.6986, -0.0118, -0.0545, -0.4118, -0.2436, -0.0024, 0.1714, -0.0691, -0.04, -0.0867, -0.0491, -0.06, -0.1717, -0.161, -0.0112, 0.1484, 0.1054, 0.0, -0.0142, 0.43, -0.0942, -0.0443, 0.314, 0.1523, 0.0708, 0.1234, 0.134, 0.0394, 0.024, -0.344, 0.0522, -0.4049, -0.2106, -0.2169, 0.3188, 0.1976, 0.1756, 0.1534, 0.0572, 0.0859, 2.9067, 0.0, -0.1436, 0.0838, 0.4918, 0.4952, 0.1653, 0.1386, 0.2952, 0.2383, 0.0254, 0.1332, 0.1194, -0.2565, 0.183, 0.2168, -0.0407, 0.2102, 0.0755, 0.0023, 0.06, 0.1736, 0.31, 0.0496, 0.1899, -0.0287, 1.5192, -0.0045, 0.0163, 0.1417, 0.3284, 0.0269, 0.1801, -0.0408, -0.5154, 0.0058, 0.1784, 0.1489, 0.1389, 0.0809, 0.8674, -0.2856, 0.0971, -0.1169, 0.1804, 0.8772, 0.0626, 0.0882, 0.2038, -0.0685, 0.1121, -0.1599, 0.0689, -0.0795, 0.0962, 0.0037, 0.1429, 0.1169, 0.0852, 0.1107, -0.2817, 0.0253, 0.157, 0.1666, 0.0965, 0.0317, -0.0908, 0.078, 0.0123, -0.0116, 0.0149, 1.6217, -0.3418, -0.0337, 0.0375, -0.0837, 0.1309, 0.1098, 0.1796, 0.1702, -0.3185, -6.3917, 0.0951, 1.7363, 0.0394, 0.0452, 0.1197, -0.1764, 0.0797, -0.2896, 0.0788, 0.0028, -0.8339, 0.9646, 0.0792, 0.0661, 0.0446, 0.0441, -0.0158, 0.0539, 1.1456, -0.0567, 0.0451, 0.1658, 1.3648, 0.2263, -0.166, 0.075, -0.8218, 0.0399, -0.0055, 0.2014, 0.1823, 0.1323, -0.0074, 0.0644, 0.2737, 0.1272, -0.0982, 0.0358, 0.1776, 0.1076, 0.0082, 0.1365, 0.0887, 0.3591, -0.0584, 0.1596, 0.07, 0.0325, -1.1828, 0.2052, -0.0032, 0.0908, 0.0703, 0.1798, 0.298, 0.4123, -0.0383, 0.1203, 0.0862, 0.0, -0.079, -0.0117, 0.1248, 0.0631, 0.045, 0.0651, -0.0747, 0.1239, 0.2292, -0.8376, 0.0756, 0.0995, 0.099, -0.047, -0.1792, -0.0769, 0.1644, 0.0452, 0.7303, -0.0489, 0.0875, 0.0814, 0.1454, 0.129, 0.048, 0.0582, -0.1761, 0.2014, -0.0436, 0.1515, -0.0323, 0.1558, 0.131, 0.0337, 0.178, -0.0215, 0.0478, 0.0788, -0.6752, -0.1409, 0.1959, -0.0027, 0.0767, 0.997, 2.2043, 0.1332, -0.048, -0.7516, 0.0312, 0.1002, 0.0689, 0.1176, 0.1385, -0.0478, -0.7277, -0.0817, 0.0324, 0.0442, 0.1949, -0.2338, -0.0891, 0.0803, 0.0997, -0.3831, 0.8398, 0.0639, 3.7038, 0.0442, -0.0887, 0.1817, 0.1236, -0.0076, 0.2722, 0.0688, 0.1207, 0.0112, 0.0705, -0.076, 0.1046, -2.811, 0.0664, 0.0452, -0.0339, -0.0186, -1.6992, -0.0984, -0.2305, 0.0521, 0.0671, -8.0721, -0.0562, -0.1263, 0.1319, -0.0612, 0.1069, -0.0259, -1.1374, 0.0, -0.0569, -0.0923, 0.1175, -0.126, 0.0815, 0.6763, 0.0107, 0.066, 0.0557, -0.0157, -0.0425, -0.0859, -0.1361, -0.0289, 0.0891, 0.0951, 0.0198, 1.5068, 0.0974, 0.0021, 0.0271, -0.2751, -0.0097, -0.0215, 0.0762, 0.167, -0.3149, 0.2079, -0.0512, -0.3679, 0.1203, 0.16, 0.0826, 0.0108, 0.1667, 0.3192, 0.0453, 0.1808, 0.1077, 0.1485, -0.0078, 0.0152, 0.0728, 0.0, -0.0672, 0.0938, 0.0239, 0.0778, 0.1345, 0.0922, 0.1344, 0.2586, 0.2176, -0.9738, -0.2486, 0.1146, 0.2659, 0.2496, -0.0616, 0.3008, -0.0757, 0.0274, -0.0917, 0.0546, 0.0517, 0.1333, -0.1567, -0.0132, 0.2817, -0.075, -0.9, 0.1128, 0.0313, -0.4946, -0.1308, -4.7296, 0.0545, -0.2288, 11.2625, -0.0113, 0.0377, -0.0871, 0.0586, -2.2546, 0.0376, 0.0364, -0.0885, 0.0657, 0.0518, 0.1042, -0.1621, -0.0042, 0.1835, 0.0801, 0.314, 0.0875, 1.3922, 0.0837, -0.0504, 0.1338, 0.0129, -0.0599, 0.037, 0.1665, 0.0161, 0.0647, 0.0184, 0.2135, 0.0369, 0.0645, 0.0, 0.0077, -0.0705, 0.0679, 1.0123, -0.0941, 0.1141, -0.1619, 0.1495, 0.086, -0.0049, 0.305, 1.8982, 0.0783, 0.1491, 0.0262, -0.0968, -0.2324, -0.155, 0.0067, -0.0571, 0.0, -0.0588, 0.1697, 0.0115, -0.0439, -0.068, -0.1609, -0.0864, 0.176, 0.1219, -0.1023, -0.0432, 0.0077, -0.0944, -0.0881, -0.2618, -0.2979, -0.0865, -0.4711, -0.1233, -0.2054, -1.2384, -1.0616, -0.2871, 0.2026, 0.4463, -1.5291, 0.0, 0.1125, 0.3491, 0.2533, 0.0426, 0.0002, 0.0, -0.0297, -0.0443, 0.1094, -0.0045, 0.0235, -0.0682, 0.0316, -0.0179, -0.0672, 0.2579, 0.1802, -0.7372, -0.0537, -0.1052, 0.2414, 0.086, 2.5388, -0.0167, -0.0837, 0.1317, 0.5346, 0.0925, 0.1376, -0.0511, 0.029, 0.0949, -0.1991, -0.3062, 0.0546, 0.1118, -4.8131, -3.7931, -3.7997, 3.9625, 0.1438, -0.067, 0.0669, -0.0699, 0.2107, -0.0938, -0.1095, 0.186, -0.147, 0.1025, -0.5152, 0.2364, 0.0355, 0.1811, -0.0588, -2.8667, 0.0756, 0.0661, 0.2356, 0.4749, -0.0488, -0.0575, -4.474, 0.2054, 0.1185, 0.113, 0.0913, 0.1118, 0.0206, -0.0131, 0.0838, -0.0931, 0.1016, 0.1637, 0.0113, -0.0014, 0.0, 1.9964, -0.0204, 0.1401, -0.0297, 0.5913, 0.0662, 0.0443, 0.0541, 0.5165, 0.0906, -0.1601, 0.2067, -0.1271, 0.1793, -0.0305, 0.1799, 0.0995, 0.0182, -0.8062, 0.0, -0.7641, -0.4665, -0.4565, -0.0419, -0.3351, -0.2886, -0.2628, -0.2054, -0.1595, 0.3291, -0.1225, 0.0306, -0.4532, -0.6923, 0.0367, -0.1301, -0.9522, 0.064, -0.1353, 0.1731, -0.6462, -0.1204, 0.0739, -0.1341, 1.189, -0.1421, 2.1696, -0.1929, -0.2062, 0.0714, -0.1548, 0.2428, 0.4387, 0.0, 0.6822, 0.0893, 0.0346, -0.6376, -0.3518, 0.0, 0.0864, -0.4001, -0.1916, -0.0522, -0.4213, -0.2294, 0.0777, -2.9264, 0.0, 0.0998, -0.0078, 0.1564, -0.1993, 0.0689, 0.0828, -0.0613, 0.0552, -0.239, -0.5618, -0.7484, 0.0046, -0.0729, 0.05, 0.4956, -0.3401, -0.1627, 0.0437, -0.0516, 0.0584, 0.1234, 0.2693, -0.063, -0.0515, -0.1331, -0.2053, -0.3909, 0.5186, -0.1624, -0.0997, 0.4844, -0.2359, -0.0827, -0.1351, -0.113, 0.0876, 0.1246, 0.1972, -0.5365, 0.2208, -0.1571, -0.3842, 0.0, 0.2475, 0.1249, -0.3787, -0.999, -0.001, 0.4659, -0.1569, -0.1251, -2.6014, 0.2091, -0.6782, -0.1494, 0.008, 0.0346, 0.0138, -2.0658, -0.0889, 0.0959, -0.0309, 0.1494, 0.0696, 0.0602, 0.1069, 0.0696, 0.2072, 0.1238, 0.0718, 0.075, -0.0644, 0.1751, -0.6183, 0.0, 0.077, 0.144, -0.004, -0.1464, 0.3375, 0.0234, -0.0127, 0.0779, 0.0761, 0.0683, 0.1465, 0.0956, 0.1188, 0.0778, 0.1254, 0.0, -0.4789, -0.0201, -0.1622, -0.2533, -0.0208, 0.2394, 0.0014, -0.025, 0.2591, 0.1352, -0.0909, 0.1057, 0.0732, 0.1159, -0.1703, 0.0234, 0.0383, -0.097, 0.0869, 0.7801, -0.5049, 0.0691, -0.062, -1.492, -0.2604, 0.1221, 0.748, -0.8044, 0.2982, 0.2108, 0.0811, -0.2163, 0.1685, -0.5906, 0.1308, 0.0881, 0.2358, 0.0068, -0.086, 0.24, 0.0885, 0.0635, -0.2096, 0.0, -0.099, 0.0, 0.4716, 0.1194, 0.0816, -0.115, 0.403, -0.2018, 0.0339, -0.1254, 0.0289, 0.1028, 0.0256, 0.1065, 0.0936, 0.2497, -0.0074, 0.0587, 0.037, 0.052, 0.048, -0.1507, -0.2288, 0.1191, -0.0689, 0.0568, 0.0838, -0.0114, 0.0029, -0.089, 0.0581, 0.0659, 0.4681, -0.1212, -0.1014, 0.9102, -0.4338, -0.7348, 0.1025, 0.0345, 0.011, 0.077, 0.1845, 0.1653, 0.1179, 0.098, 1.7957, 0.1432, 0.1357, -1.2798, 0.1329, 0.3868, 0.0684, 0.0984, -0.1043, 0.0638, 0.2657, -0.0408, 0.0944, 1.5908, -0.0718, -0.1437, 3.1308, 0.1449, 0.1689, 0.0868, 0.0164, 2.1831, 0.0744, -0.0728, 0.0699, -0.0243, 0.0546, 0.0478, -0.0801, -0.2562, 0.1428, 0.0, -0.2599, 0.6794, -0.0056, 0.1249, -0.0451, -0.6418, 0.1051, -0.1347, 0.141, 0.092, -0.5862, -0.037, 0.064, 0.1185, 0.0003, -1.3555, 0.0441, 0.0487, 0.2207, 0.1325, -0.0157, -0.3201, -0.0733, 0.0724, 0.0785, -1.6553, 0.2311, 0.1663, 0.4012, 0.2143, 0.0091, -0.0919, 0.0473, 1.2044, 0.1062, -0.7614, 1.0901, 0.0591, 0.0472, 0.0538, 0.0047, 0.0655, 0.0525, 0.0605, 0.2385, 0.4135, 0.0698, 0.0091, 0.0439, 0.0992, 0.0877, 0.1029, -0.0446, 0.0737, -0.5364, 0.0552, 0.133, 0.1554, 1.7342, 0.1226, 0.0531, 0.0277, 0.0651, 0.4049, 0.0402, 0.0351, 0.1121, -0.0108, 0.0056, -0.1374, 0.0944, 0.0247, 0.0081, -0.1165, 1.8575, -0.0005, -3.7144, 0.0771, 0.0816, 0.1042, 0.0756, -0.886, 0.0823, 0.1695, 0.0764, 0.0683, 0.0872, 0.0718, 0.0866, 0.9078, 0.15, 0.0113, -0.1263, -0.0678, 0.0318, 0.0186, -1.0113, 0.2542, 0.1361, 0.1416, 0.1595, 0.2221, 0.0968, -0.0173, -0.0259, 0.1959, 0.3186, 0.1063, 0.0977, -1.8793, -0.0582, -0.9258, 0.0737, -0.0382, 0.3093, 0.0491, -0.0664, 0.1865, 0.0576, 0.187, 0.17, 0.1122, 0.0, 0.0, 0.153, 0.0809, -0.0842, -0.1167, 0.2212, 0.041, -0.191, 0.3139, 0.0556, 0.0939, 0.0886, 0.0903, 0.2954, -0.6245, -0.0127, 0.1903, 0.2041, 0.0938, -0.0489, -0.0164, 0.1255, 0.1936, 0.0663, 0.0291, 0.0, 0.0675, -1.6847, 0.117, 0.0605, 0.036, -0.098, 0.0428, 0.0459, -0.07, 0.1019, 0.0656, 0.051, 0.1023, -0.1095, 0.0, 0.3547, 0.1324, -0.0427, 0.1486, 0.0, 0.2096, 0.2131, 2.1409, 0.1607, 0.0413, 0.15, 0.0588, -0.0069, 0.0296, 0.1388, -0.0844, 0.0499, 0.0, 0.0776, -0.0156, 0.0394, 0.084, -0.8556, 0.0406, 0.107, -0.0495, 0.5516, 0.0382, -0.1147, 0.0247, 0.0164, 0.0807, 0.0136, -0.0493, 0.1411, 0.0874, 0.0757, 0.0797, 0.0603, 0.637, 0.4062, 0.123, 0.0061, 0.1504, 0.115, 0.0595, 0.5167, -0.0175, 0.0351, -0.4323, -0.1146, -0.0264, 0.0653, -0.1108, -1.0221, 0.0694, 0.1343, -0.0717, 0.2527, 0.0517, 0.1466, 0.0146, 0.0209, 0.1305, -0.0431, 0.0849, -0.2486, 0.0837, 0.084, 1.258, -0.6014, -0.1129, -0.2274, 0.0062, 0.0717, 0.1972, 0.0551, 0.0356, -0.0485, -0.2484, 0.1264, 0.1082, -0.2144, 0.1167, 0.0225, -0.0027, -0.0111, -0.081, 0.125, -0.0217, 0.0393, 0.0, 0.0701, 0.2151, -0.1506, -0.0873, -0.2299, 0.1246, -0.2748, -0.4776, 0.072, 0.097, 0.5218, 0.1453, 0.1168, 0.0273, 0.5894, 0.0428, 0.2187, 3.4717, 0.1001, -0.2317, 0.1549, 0.053, 0.1868, -0.4958, 0.0685, -0.2249, -0.0489, -0.0104, 0.0729, -0.1803, 0.0263, 0.7206, 0.1782, -0.1199, 0.0381, -15.73, 0.087, 2.6196, 0.1877, -1.2072, -0.0657, -2.3413, 0.2942, -4.0195, -2.5452, -0.4808, 0.1048, -0.0143, 0.0254, -0.0166, 0.2017, 0.0529, 0.0843, 0.0, -0.8087, 0.1158, -2.3367, 0.12, 0.1403, 0.2113, 0.1038, 0.0081, -0.0905, -0.1413, -0.0497, -0.0771, 0.0008, -0.0497, -2.7039, -0.0928, -0.4665, -0.4753, -0.1753, 0.1025, 0.0439, -0.0476, 0.04, 0.249, -0.1569, -0.1415, 0.1577, 0.0846, 0.0, 0.0873, 0.0661, 0.0412, 8.8771, -0.1887, 0.0824, 0.913, 0.1286, 0.1475, -0.2099, 0.0041, 0.0099, 0.026, -6.7373, -0.3383, 1.2912, 0.4925, -0.1911, 0.2747, 1.6133, 0.1864, 0.066, 0.1106, -0.068, 0.1493, -0.0589, -0.1344, -0.0577, -0.192, 0.0603, 0.0535, 0.1006, -0.2844, -0.532, -0.1437, -0.4581, 0.159, 0.0444, 0.8733, 0.1968, 0.4917, -2.601, -1.7862, 0.5396, 0.9105, 1.4997, -0.0224, -1.302, 0.1131, 0.1199, 0.0825, 0.0, -0.0107, 0.0726, 0.029, 0.1021, -0.5636, 0.635, -0.0424, -0.3118, 0.0285, -0.0903, -0.0197, 0.0001, -0.6146, -1.5411, -0.027, -0.1368, -0.5253, 0.1074, 0.2821, 0.5234, 0.1077, 0.0902, -0.073, 0.0654, -0.2733, 0.2439, 0.1132, -0.8193, -0.0767, 0.0408, 0.0806, 0.0, 0.0709, 0.1595, -0.0007, 1.2808, -0.0051, 0.055, -0.6767, 0.2747, 0.0068, -0.0137, -0.1082, 0.104, 0.1413, 0.1378, 0.0931, -0.1094, -0.1145, 0.0407, 0.0, 0.0859, 0.9562, 0.1718, -1.2891, 0.0255, 0.0591, -0.0076, 0.0896, 0.0367, 0.1006, 0.1666, 0.0572, -0.0382, 0.08, 0.0417, 0.1882, 0.0871, 0.1468, 0.1387, 0.4396, 0.0809, 0.1115, 0.0843, 0.0801, 0.0216, 0.1403, 0.0777, 0.1112, 0.337, -0.039, 0.1119, -0.0421, -0.08, -0.0332, 0.1071, 0.0912, 0.1761, 0.1135, 0.1491, 0.0479, 0.0146, -2.861, 0.0534, 0.0452, -0.1406, 0.0649, 0.0689, -7.2137, 0.2758, 0.0359, 0.0, 0.1315, 0.1748, 0.2141, 0.1063, 0.0, 0.0503, 0.3675, 0.1046, 0.0871, 0.2161, 0.1423, 0.161, 0.0451, 0.0512, -0.0119, 0.0602, 1.0671, 0.1541, -0.1511, 0.3364, 0.1139, 0.0788, -1.4634, -1.3074, -0.0793, -0.3439, -1.0544, -0.0642, -0.0129, 1.8814, 0.1888, 0.1022, 0.1228, -0.631, 0.0855, 0.1217, 0.9294, -0.1219, 0.1683, -0.0159, -0.0463, 0.2229, 0.0791, -0.0296, 0.0914, 0.293, 0.192, 0.1279, 0.3114, 1.8314, -0.1961, 0.0614, 0.0778, -0.0617, 0.0685, -0.5098, 0.7839, 0.348, 0.0, 0.0836, 0.095, 0.0758, -0.0158, -0.1057, -0.1429, 0.3509, 0.0374, 0.066, 0.0025, 0.0983, -0.1648, 0.07, -0.3469, 0.1663, -0.1592, -0.1216, -0.1821, 0.1704, 0.1398, 0.1503, 0.0773, 0.061, 0.2035, 0.2248, 0.1015, 0.2695, 0.1752, 0.0298, 0.1, -0.1806, -0.0802, -0.1206, 0.2025, 0.2121, -0.9777, 0.3726, 0.1396, -0.0294, -0.0276, 0.1157, -0.132, -0.0186, -0.1652, -0.0147, 0.0, 0.1104, 0.0097, -9.8375, 0.1205, -0.0046, 0.0755, 0.3159, 0.1626, -0.0898, -0.1901, 0.0875, 0.1441, 0.1454, 0.1212, 0.1181, -0.0013, -0.0017, -0.0112, -0.2557, 0.1541, 0.0953, 0.0775, 0.1655, 0.083, 0.0761, 0.6645, 0.0673, -0.2473, 0.6917, 0.0733, 0.0873, -0.0767, 0.083, 0.0672, -0.402, -0.0126, 0.3915, 0.2182, 0.0241, 0.0024, -0.0084, 0.1066, 0.2067, 0.1149, -4.67, 0.0884, 0.0556, 0.0848, 0.0893, 0.0973, 0.076, -0.7385, -0.4548, 0.0209, -0.066, -0.1054, -0.0717, 0.1503, -0.0711, -0.0003, 0.0461, 0.178, -3.6295, 0.0843, 0.1031, -0.0284, 0.109, -0.3239, 0.0625, -0.22, -0.416, 0.0702, 0.1086, 0.0753, 1.8748, 0.1945, 0.2331, 0.1783, 0.098, 0.0731, 0.0489, 0.022, 0.0631, 0.0747, -0.0192, -0.0405, -3.5672, 0.0908, 0.25, 0.2304, 0.0443, -0.31, -0.5242, -0.0584, -0.0585, -0.4848, 0.1143, 0.024, -0.1628, 0.0277, 0.0, -0.5252, -1.3904, 0.1338, 0.3182, -0.2354, 0.1033, 0.0707, -0.1898, 0.1039, 0.1162, -0.4499, 0.2832, -0.0901, -0.0102, -0.0517, 0.3149, 0.0005, 0.0751, 0.0929, 0.0892, 0.8198, -1.3957, 0.0193, -0.2276, -0.2407, -0.0478, 0.0354, -0.0033, 0.1203, 0.0708, -0.2106, 0.0467, 0.2113, 0.0112, 0.1935, 0.1275, -0.0357, 0.1516, -0.8613, -0.0503, -0.0991, -2.6494, 0.031, -0.0262, 0.1772, 0.1439, 0.0, 0.1674, 0.0175, 0.1073, -0.1333, 0.0189, 0.1648, -0.0698, 0.1176, -0.0221, -0.035, 0.1454, 0.0795, 0.0505, 0.1441, -0.0515, -0.0157, 0.1918, -0.0595, 0.2686, 0.2225, -0.6701, 0.0062, 0.1478, 0.1892, 0.1208, 0.207, -1.2407, 0.0874, -0.1902, 0.034, 0.0399, 0.1113, -0.1716, -0.0633, 0.0155, 1.0234, -5.2307, 0.0335, 0.0455, 0.0073, 0.1486, 0.091, -0.1169, -0.1093, -0.1907, 0.0403, -0.1533, -0.1906, -0.2566, 0.0943, 0.0166, 0.0, -0.0014, 0.0209, -0.0442, 0.4281, -0.1459, -1.3696, -0.0428, -0.1527, -0.1876, 0.2172, -0.1853, -0.1657, 0.331, 0.0716, 0.1394, 0.0502, 0.1069, -3.673, 0.1065, -0.003, 0.0997, -0.1275, -0.0473, 0.0719, -0.0385, 0.2259, 0.0963, 0.2841, 0.0673, 0.0225, 0.3916, 0.158, -0.2012, 0.0066, 0.0788, 0.0848, 0.0032, -0.0558, 0.1055, 0.1568, -1.6038, 0.101, -2.1097, 0.0, 0.1166, -0.1361, 0.15, 2.6709, 0.1484, 0.1413, 0.1131, 0.1635, 0.207, 0.2166, 0.167, -1.9125, 0.0894, 0.2144, 1.1851, 0.1136, 0.4711, 0.2456, 0.2644, 0.0, -0.7453, -0.0471, 0.1949, -0.4389, -0.0779, 0.1049, 0.0235, 0.0777, 0.0, 0.1589, 0.2703, 0.1633, 0.7664, 0.3015, -0.0162, 0.0193, 0.0, -0.0029, 0.0794, -6.37, 0.2583, -0.0101, 0.0, -0.0941, 0.0723, 0.2239, -0.0077, 0.0305, 0.0432, 0.4139, -0.9893, 0.1332, -0.0919, 0.1391, 0.0228, 0.3151, 0.1477, -0.042, 0.0, 0.0, 3.1564, -0.0573, 0.1547, 0.0651, -0.5208, 0.0263, 0.084, 0.9011, 0.089, 0.0813, -0.258, -0.115, 0.0821, 0.175, 0.1917, -0.1424, -0.2912, -0.0469, 0.0078, -0.0078, -0.8348, -0.1767, -0.3291, -0.0299, 0.0855, -0.011, 0.1318, 0.107, 0.122, -0.0077, 0.0128, -0.1877, -0.129, 0.0377, 0.1, 1.0535, 0.2462, 0.0567, 0.2364, 0.0768, 0.0487, 0.0908, -0.4163, 0.057, 0.2112, 0.3104, 0.211, -0.2171, 0.053, -1.3766, 0.0615, 0.0069, -0.1611, 0.0848, 0.0601, 0.0321, 0.076, -1.3657, 0.0513, -0.1513, 0.1047, 0.973, 0.0777, -0.2405, 0.0471, 0.1041, 0.0035, 0.086, -0.1743, 0.1585, 0.1578, 0.0879, -0.5575, 0.076, 0.1685, 0.1648, 0.0052, 0.0063, 0.068, 0.0499, -9.7675, -0.1445, 0.0616, 0.1842, -0.0186, 0.059, 0.1718, 0.2044, 0.148, -0.0544, 0.1097, -1.4743, -1.5343, 0.108, 0.1051, 0.1561, 0.0754, 0.2076, -0.0392, 0.0483, 0.1607, 1.5365, -0.0442, 0.0867, -0.0279, 0.8596, -0.5723, 0.2074, 0.2702, 0.0909, 0.0702, 0.0989, 0.107, -0.0458, -0.0919, -0.0313, -0.1141, -0.0405, -0.0815, 0.3086, -0.9596, 0.1237, 1.8741, -0.0507, 0.0319, 0.1518, 0.265, 0.106, 0.126, 0.0482, 0.0968, 0.0763, 0.1879, -0.4347, 0.0029, 0.1075, 2.4982, -0.1155, 0.1404, 2.2218, -0.0555, 0.2873, 0.0886, -0.0128, 0.0836, 0.0531, 0.0, 0.0464, 0.4374, 0.3228, -0.0041, 0.1188, 0.0433, 0.0956, -0.2204, -0.1323, -0.0029, 0.1448, 0.0, -0.0429, 0.0899, 0.2053, 0.0975, 0.1694, -0.7614, 0.0839, 0.1647, 0.0, 1.653, 0.0005, 0.1282, -0.3088, -0.032, 0.1032, 0.8635, 0.0571, 0.201, 0.0, -0.2417, 0.1774, 0.0629, -0.241, -0.5828, 0.1463, 0.131, 0.1185, 0.0088, 0.1273, 0.107, 0.2598, -0.0183, -0.0106, -0.0058, 0.1278, -5.347, 0.2021, 0.1196, 1.1262, 0.0804, -0.041, 0.0, 0.2138, 0.2479, 0.0, 0.1632, -0.0537, -0.0482, 0.2057, -1.2382, 1.3028, -2.2865, 1.4953, 0.0193, 0.9816, 0.099, 0.1039, 0.2109, -0.179, 0.1733, -0.0646, 0.1074, -17.335, -0.5254, -1.3024, 0.1523, 0.2087, -0.6294, 0.515, 0.0523, -0.2328, 0.0916, -1.0157, 0.1644, -0.0774, 0.2103, 0.1959, -0.0162, -0.0051, 0.2025, 0.0609, -0.0597, 0.0457, -0.0027, -0.1235, -0.0061, -0.0519, -0.0043, 0.1484, 0.2662, 0.0713, 0.076, 0.0955, 0.0659, -0.0229, -0.9414, 0.0905, 0.0884, -0.0119, 0.0486, 0.1472, 0.3238, 0.1733, 0.0775, 0.0732, 0.1475, 0.0528, -0.4509, 0.4355, 0.4033, 0.0346, 0.4857, 0.0204, 0.1009, -0.1457, 0.0213, 0.0707, 0.4931, -0.3203, -0.0526, 0.0867, 0.0985, -1.7154, -1.1132, -0.3459, -0.4487, 0.2307, 0.1245, 0.0305, 0.1255, 0.0573, 0.0994, 0.1587, 0.5704, -0.0914, 0.0209, -0.0577, 0.1508, 0.0312, 0.0, -0.0149, 0.5825, 0.1031, -0.4239, 0.1236, 0.0665, 0.047, 0.0906, -0.0294, -0.0118, 0.1642, 0.1322, 0.1247, 0.19, 0.0037, -0.9968, 0.0801, -0.1291, 0.1774, -0.0259, 0.1049, 0.1554, 0.1519, 0.0495, 0.0425, 0.1638, 0.095, 0.008, 0.0128, 0.0326, 0.1409, 0.096, 0.1293, -0.2549, 0.1825, 0.1747, -7.3367, 0.0296, 0.2322, -0.3124, -0.0708, 0.1129, 0.2087, 0.1587, 0.0, 0.0441, 0.1741, 0.0793, -0.0679, -0.1087, 0.0249, 0.0235, -0.016, -0.0256, 0.0216, 0.0175, 0.1029, 0.1233, -0.1036, 0.1906, 0.1681, -0.0068, 0.3826, 0.1742, -0.2896, 0.0, 0.2282, 0.1607, 0.0995, 0.3614, -0.3515, 0.1582, 0.1083, -0.6933, 0.0913, 0.0957, -0.3726, 0.2853, -0.3096, -1.2389, 0.0432, -1.4044, 0.1098, 0.1819, 0.1701, 0.4242, 0.1236, 0.1713, -0.0907, -0.0315, -3.4794, 0.2087, 0.1955, 0.0786, -0.0018, 0.1146, -0.2307, 0.0639, 0.0944, -0.2408, 0.0876, 0.3657, 0.0718, 0.1406, -0.162, 0.3873, -0.0442, -1.6129, 0.1073, -1.6503, 0.1654, 0.009, -0.4331, -2.2254, -0.115, -0.0804, 0.0148, 0.1237, -0.0132, -0.819, 0.0887, -0.0582, 0.0, 0.022, -0.0853, 0.0988, 0.3504, -0.1507, 0.1407, -0.0057, -10.6175, 0.0873, -1.0293, 0.7177, 0.0612, -0.8552, 0.1636, 0.2717, 0.0615, 0.1435, 0.081, -0.025, 0.06, 0.0714, 0.2515, -0.0377, 0.0327, 0.0731, 0.0732, 0.1921, -0.079, -0.4816, 0.0888, 0.0593, -0.0066, 0.1312, 0.0751, -1.778, -0.0168, -0.0116, -0.0485, 0.2455, 0.1163, -0.0415, 0.1827, -0.8887, 0.1507, 0.0637, -0.092, -0.0726, 0.217, 0.0903, 0.0558, 0.0915, 0.0066, 0.1203, 0.0475, 0.1034, -0.1114, 0.1498, 0.0952, 0.0661, -0.0549, 0.0143, -0.0029, -0.0045, 1.4467, -0.0141, 0.1885, -0.1029, 0.3028, 0.0821, 0.0244, 0.0091, 0.1104, 0.0131, 0.154, 0.0, -10.7867, -0.2447, 0.1397, -0.0441, 0.1722, 0.0713, 0.0493, -0.7767, 0.0098, 0.1273, 1.1453, -0.1366, 0.1826, 0.0952, 0.0117, -0.0931, 0.1154, 0.1116, 0.2319, 0.0577, 0.0178, 0.0476, 0.0991, -0.0123, 0.0588, 0.1485, 0.0468, 0.0057, 0.0548, 0.0185, 0.034, -0.057, -0.5333, 0.0, 0.018, 0.2662, -0.3588, -12.2775, -0.1664, 0.0308, -3.104, 0.0443, -0.276, -0.0433, 0.1124, -0.055, -0.2051, 0.0862, 0.2017, 0.1069, -0.0969, 0.04, 0.0539, -0.7323, -0.0179, -4.5785, -0.0238, -1.0012, -0.0564, -0.052, -0.1647, 0.1915, 0.3868, -0.0067, -0.4844, 0.0161, 0.164, -0.1553, 0.0104, -0.1624, -0.1504, -3.6225, -0.0827, -0.1635, -0.0201, 0.1933, -0.1087, 0.0371, 0.3157, 0.2403, 0.2633, 0.1785, -17.3564, 0.0423, -0.1892, -0.0666, -0.2854, -0.0326, -0.0984, -0.1169, -0.0146, -0.0496, 0.2061, 0.057, 0.0375, -0.1428, 0.0669, 0.0938, -0.1875, 0.551, -0.1184, 0.1043, 0.185, 0.0144, -0.0062, 0.0107, 0.5498, 0.0911, 0.1291, -0.0416, 0.0853, 0.0829, 0.1355, -0.1439, 0.0, 0.0954, 0.1846, -1.7386, -1.9309, -0.1266, 0.1497, -0.0854, 0.0851, -0.0162, 0.0355, 0.096, -0.0798, -0.0792, 0.0612, 0.0504, -0.6972, -0.6638, 1.7763, 0.1534, -0.3437, 0.0994, 0.1914, 0.1093, -0.0949, 0.1146, 0.0608, 0.2892, 0.2084, 0.0596, 0.104, -0.0088, -0.0563, 0.0388, -13.5483, -0.2151, 0.0667, 0.153, 0.0775, 0.0638, -0.0926, -0.0772, -0.0032, 0.1004, -6.2195, 1.1178, 0.1133, 0.109, 0.1538, 0.0, 0.3879, 0.2066, 0.2438, 0.1625, 0.1784, 0.2356, 0.1469, 0.1897, -0.0666, 0.4206, 0.0255, -6.4321, 0.004, 0.0252, 0.2058, 0.0374, -0.2378, 0.0248, 0.0873, 0.0, -0.0188, 1.9608, -0.2208, -0.3135, -0.1676, 0.1109, 0.2484, 0.0, -0.0178, -0.035, -0.0914, 0.0114, -0.0263, 0.0941, 0.0, -0.0361, 0.0353, 0.81, 0.2678, 0.071, 0.0406, 0.2057, 0.2163, -0.0547, 0.0, 0.4885, -0.0645, -0.0849, -0.2684, -0.043, 0.1327, -0.0692, -0.0889, 0.2175, -0.1088, -0.0844, 0.0688, 0.0, -0.0999, -0.0852, -0.1646, 1.6258, 0.053, 3.6659, -2.7105, 0.0837, 0.0842, 0.0088, 0.0083, -0.8872, 0.0884, -1.3934, -0.0941, 0.0492, 0.0, -0.3297, -0.0414, 0.0155, 0.0217, -0.0039, -0.1019, 0.0032, -0.2695, 0.0421, 0.0269, -0.0295, 0.1278, -0.0304, 0.0128, 0.0079, 0.4739, 0.1338, -0.034, 0.0402, -0.0979, -0.3347, -0.0699, 0.0824, 0.0805, 0.3227, 0.1025, 0.069, 0.1732, 1.4764, -0.0538, -0.0414, -0.2193, 0.0, 0.098, -0.0758, -1.9794, 0.0857, 0.0, -1.1685, 0.0596, 0.035, 0.1528, 0.0939, 0.0573, 0.1267, 0.0419, 0.0382, 0.0952, -0.8725, -0.7579, -0.076, -0.1392, -1.3048, 0.4399, 1.0295, -0.039, 0.0931, 0.1118, -4.2022, 0.5454, -0.046, -11.1267, 0.0866, 0.3373, -0.0104, 0.1721, 0.0624, -0.0478, 0.1774, 1.1517, 0.0384, 0.0674, -0.0279, 0.0472, 0.0191, -0.0787, -0.0805, -0.0117, -0.1741, 0.1775, 0.1131, -0.0218, -0.0682, 0.1206, 0.067, 0.1826, 0.044, 0.4608, 0.1636, 0.0788, 0.1927, -0.0582, 0.3381, 0.0928, 0.1206, -0.0818, 0.4717, 0.1876, 1.3933, 0.1343, 0.2066, 0.0508, -0.3127, -0.1904, -0.0686, -0.0532, -0.0609, -0.0711, -0.0788, -0.1809, -9.1467, -0.0495, 0.3294, 0.0813, 0.042, -0.453, 0.1022, 0.0159, 0.1225, 0.2197, 0.2502, -0.5867, 0.3873, 0.2385, 0.4841, 0.0595, 0.0977, 0.1962, 0.4644, 0.169, 0.1845, 0.0605, 0.6902, -0.0198, 0.0167, 0.1897, -0.0295, -0.1153, 0.1931, -0.0451, 0.2749, -0.0573, 0.1333, -1.0407, 0.3611, -0.0232, -0.0013, 0.0632, 0.1148, -0.8424, -0.0463, -0.0023, 0.1306, 0.0407, 0.0783, -0.0074, 0.2016, 0.0064, 0.0, -0.0821, 0.0451, 0.0015, 0.0145, 0.011, 0.8035, 0.0, 0.0348, -0.0047, -0.0023, 0.0927, -0.0512, 0.0746, 0.0794, -11.815, 0.0736, -0.1717, 0.0, 0.9925, -0.0286, 0.1259, 0.0512, 0.1291, 0.0707, 0.1363, 0.0218, 0.0936, -0.4206, -0.1473, 0.1566, 0.0464, 0.1367, 0.0806, -0.0412, 0.553, 0.1715, -0.3445, 0.0026, 0.0748, 0.0531, -0.9968, 0.0926, 0.4204, 0.1423, -0.0604, -2.604, 0.2448, -0.3482, -0.3538, 0.355, 0.3893, 0.0748, 0.0656, -0.038, -0.3434, 0.3955, 0.0829, 0.0292, -0.0856, -0.1266, 0.1135, -0.1407, 0.2396, -0.0928, -0.1533, -0.078, 1.2213, -0.0334, -0.1086, 0.0447, 0.0606, -0.0748, -0.0524, 0.0, -0.1637, -0.1136, -0.2273, 0.2947, -0.661, 0.2206, 0.0, 0.0448, -0.1046, -0.1076, 0.0623, 0.0093, -0.1498, 0.5333, 0.1221, 0.0984, 0.0245, 0.1902, 0.0144, 0.1278, 0.2184, 1.3496, -0.0938, -0.1476, 0.6288, -0.0772, 0.0944, -0.674, 0.1261, 0.013, -0.0111, -0.2878, 0.1732, -0.0475, 0.1062, 0.2565, 0.0676, 0.5188, 0.5373, 0.2175, 0.151, 0.1179, 0.1217, 0.0059, -0.0378, 0.0849, 0.2767, -0.0685, -0.6122, -0.0287, -0.0475, -0.0341, -0.1689, 0.0816, -0.0093, -0.0738, 0.3192, -0.0681, -0.07, 0.1663, 0.0637, -0.023, 0.0516, 0.1657, 0.0573, 0.1104, -5.4425, -0.1508, 0.2082, -0.0059, -0.0365, -0.0138, 0.4266, 0.3678, -0.524, -0.1296, -0.1645, -0.0434, -0.0615, -0.0003, 0.0123, -0.0056, 0.1826, 2.2391, 0.1384, 0.0935, -0.07, 0.1026, 0.0366, 0.2269, -0.1205, -0.0939, -0.0023, -0.1381, -0.0804, 0.1641, 0.0019, 0.2897, 0.0, -0.1087, -0.0913, -0.6391, 0.0404, -0.2121, 0.0, 0.1941, -0.3634, -1.1504, -0.0875, -0.1557, 0.1057, 0.0078, 1.785, 0.0693, -0.1515, 0.0319, 0.0331, 0.1941, -0.0371, 0.1322, 0.2143, 0.1235, 0.2017, 0.1847, 0.0174, 0.0, 0.1712, 0.1739, 0.104, 0.098, 0.2308, 0.0431, 0.1055, 0.1559, 0.0317, 0.0, 0.0114, -0.0547, 0.1518, -0.1161, 0.1171, -0.0127, 0.1963, 0.1073, 0.141, 0.0507, 0.4453, 0.1652, 0.1182, 0.5024, 0.0894, 0.3784, 0.2392, 0.0422, 0.0377, 0.0508, 0.1744, 0.0856, 0.0226, -0.0492, 0.0922, 0.3038, 0.2069, 0.6597, 0.2571, 0.149, 0.327, -0.1364, 0.1116, 0.0139, 0.0711, -0.4069, 0.1405, 0.1781, 0.0567, 0.3443, -0.1245, 0.0, -2.3606, 0.0682, 0.0583, 0.1005, 0.1247, 0.1571, -12.8, -0.8007, 0.0905, -0.0024, 0.2867, -0.3389, 0.124, 0.0039, 0.2, -0.0793, 0.2574, 0.1052, 0.0342, 0.0988, 0.2328, -0.1322, -0.1124, 0.1337, 0.0961, 0.122, -1.5384, 7.0, -0.0064, -0.1879, 0.0109, -0.1003, -0.4201, -0.0793, -0.0472, -1.6649, -0.0733, -0.275, -0.0629, -0.0787, -0.6937, -0.1314, 0.0212, 0.1248, 0.0417, 0.0403, 0.2424, 0.1853, -4.244, 0.0826, 0.0844, 0.0489, -10.592, 0.1439, 0.0616, 0.1489, -0.5845, 0.1121, 0.1462, 0.1996, -0.014, -0.2396, 0.1596, 0.1742, 0.0324, 0.0677, 0.154, 0.1153, 0.187, 0.0566, 0.0662, 0.1013, -0.3755, -3.3325, 0.3986, -0.0058, 0.148, 0.0818, 0.0615, -0.0348, 0.0303, 0.1173, 0.0535, 0.0, -0.0263, 0.1361, -0.0417, -0.4419, -0.4567, -0.0505, -0.516, 0.1737, 0.0072, -0.155, -0.6798, -0.0031, 0.0494, -0.7711, -0.1799, 0.0639, 0.0099, 0.1862, -0.1564, 0.1869, 0.0106, 0.0751, 0.0937, 0.1317, 0.8548, 0.1051, -0.0751, -0.0093, 0.211, 0.035, -0.0396, 0.0897, 1.5767, 3.3057, 0.0121, 0.1169, 0.1707, 0.0773, 0.1623, 0.0796, 0.0834, 0.1048, 0.0391, 0.1187, 0.0693, 0.1423, 0.2381, -0.2556, -0.066, 0.1438, 0.0684, -0.1327, 0.0733, 0.1387, -0.1691, 0.0935, 0.0345, -3.6932, 0.0041, 0.0659, 0.6894, 0.0227, 0.1002, 0.0415, -1.0587, 0.1144, 0.1005, 0.1398, 0.101, -0.0631, 0.0266, 0.2148, 0.16, 0.1215, 0.09, 0.1161, 0.0303, 0.11, 0.2361, 0.2812, 0.224, -0.0412, 0.0067, 0.7845, 0.3768, 0.0716, 0.0129, -0.4969, 0.5197, -0.0286, 0.0093, 0.1984, -0.1272, 0.1647, -0.071, -0.0088, 0.1959, 0.12, 0.0593, 0.1359, 0.112, 0.074, 0.2042, -0.0483, 0.075, -0.4865, 0.1053, -0.3413, -0.016, 0.2131, -0.0286, 0.3248, 0.1175, 0.1656, 0.2607, 0.0474, -0.0503, 0.1309, 0.2047, -8.5999, 0.0598, 0.0267, 0.2224, -0.0309, -0.0147, 0.306, 0.2353, 0.084, -0.0195, 0.0334, -0.1115, 0.0194, 0.1505, -2.238, -0.4546, 0.0, 0.0756, -0.1081, -0.1124, -0.1687, -0.1457, 0.033, 0.1645, 0.113, 0.0974, 0.0788, -0.0432, -0.1517, -0.4004, -1.6784, 0.1224, 0.0576]}],                        {&quot;annotations&quot;: [{&quot;font&quot;: {}, &quot;showarrow&quot;: false, &quot;text&quot;: &quot;Period=2010-2020&quot;, &quot;textangle&quot;: 90, &quot;x&quot;: 0.98, &quot;xanchor&quot;: &quot;left&quot;, &quot;xref&quot;: &quot;paper&quot;, &quot;y&quot;: 0.11375, &quot;yanchor&quot;: &quot;middle&quot;, &quot;yref&quot;: &quot;paper&quot;}, {&quot;font&quot;: {}, &quot;showarrow&quot;: false, &quot;text&quot;: &quot;Period=2000-2010&quot;, &quot;textangle&quot;: 90, &quot;x&quot;: 0.98, &quot;xanchor&quot;: &quot;left&quot;, &quot;xref&quot;: &quot;paper&quot;, &quot;y&quot;: 0.37124999999999997, &quot;yanchor&quot;: &quot;middle&quot;, &quot;yref&quot;: &quot;paper&quot;}, {&quot;font&quot;: {}, &quot;showarrow&quot;: false, &quot;text&quot;: &quot;Period=1990-2000&quot;, &quot;textangle&quot;: 90, &quot;x&quot;: 0.98, &quot;xanchor&quot;: &quot;left&quot;, &quot;xref&quot;: &quot;paper&quot;, &quot;y&quot;: 0.62875, &quot;yanchor&quot;: &quot;middle&quot;, &quot;yref&quot;: &quot;paper&quot;}, {&quot;font&quot;: {}, &quot;showarrow&quot;: false, &quot;text&quot;: &quot;Period=1980-1990&quot;, &quot;textangle&quot;: 90, &quot;x&quot;: 0.98, &quot;xanchor&quot;: &quot;left&quot;, &quot;xref&quot;: &quot;paper&quot;, &quot;y&quot;: 0.88625, &quot;yanchor&quot;: &quot;middle&quot;, &quot;yref&quot;: &quot;paper&quot;}], &quot;coloraxis&quot;: {&quot;cmid&quot;: 0, &quot;colorbar&quot;: {&quot;len&quot;: 0.5, &quot;title&quot;: {&quot;text&quot;: &quot;avg of ESTIMATED YEAR INCREASE (C)&quot;}}, &quot;colorscale&quot;: [[0.0, &quot;rgb(5,48,97)&quot;], [0.1, &quot;rgb(33,102,172)&quot;], [0.2, &quot;rgb(67,147,195)&quot;], [0.3, &quot;rgb(146,197,222)&quot;], [0.4, &quot;rgb(209,229,240)&quot;], [0.5, &quot;rgb(247,247,247)&quot;], [0.6, &quot;rgb(253,219,199)&quot;], [0.7, &quot;rgb(244,165,130)&quot;], [0.8, &quot;rgb(214,96,77)&quot;], [0.9, &quot;rgb(178,24,43)&quot;], [1.0, &quot;rgb(103,0,31)&quot;]]}, &quot;height&quot;: 1500, &quot;legend&quot;: {&quot;tracegroupgap&quot;: 0}, &quot;template&quot;: {&quot;data&quot;: {&quot;bar&quot;: [{&quot;error_x&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}, &quot;error_y&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}, &quot;marker&quot;: {&quot;line&quot;: {&quot;color&quot;: &quot;#E5ECF6&quot;, &quot;width&quot;: 0.5}}, &quot;type&quot;: &quot;bar&quot;}], &quot;barpolar&quot;: [{&quot;marker&quot;: {&quot;line&quot;: {&quot;color&quot;: &quot;#E5ECF6&quot;, &quot;width&quot;: 0.5}}, &quot;type&quot;: &quot;barpolar&quot;}], &quot;carpet&quot;: [{&quot;aaxis&quot;: {&quot;endlinecolor&quot;: &quot;#2a3f5f&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;minorgridcolor&quot;: &quot;white&quot;, &quot;startlinecolor&quot;: &quot;#2a3f5f&quot;}, &quot;baxis&quot;: {&quot;endlinecolor&quot;: &quot;#2a3f5f&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;minorgridcolor&quot;: &quot;white&quot;, &quot;startlinecolor&quot;: &quot;#2a3f5f&quot;}, &quot;type&quot;: &quot;carpet&quot;}], &quot;choropleth&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;type&quot;: &quot;choropleth&quot;}], &quot;contour&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;contour&quot;}], &quot;contourcarpet&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;type&quot;: &quot;contourcarpet&quot;}], &quot;heatmap&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;heatmap&quot;}], &quot;heatmapgl&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;heatmapgl&quot;}], &quot;histogram&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;histogram&quot;}], &quot;histogram2d&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;histogram2d&quot;}], &quot;histogram2dcontour&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;histogram2dcontour&quot;}], &quot;mesh3d&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;type&quot;: &quot;mesh3d&quot;}], &quot;parcoords&quot;: [{&quot;line&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;parcoords&quot;}], &quot;pie&quot;: [{&quot;automargin&quot;: true, &quot;type&quot;: &quot;pie&quot;}], &quot;scatter&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatter&quot;}], &quot;scatter3d&quot;: [{&quot;line&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatter3d&quot;}], &quot;scattercarpet&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattercarpet&quot;}], &quot;scattergeo&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattergeo&quot;}], &quot;scattergl&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattergl&quot;}], &quot;scattermapbox&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattermapbox&quot;}], &quot;scatterpolar&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatterpolar&quot;}], &quot;scatterpolargl&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatterpolargl&quot;}], &quot;scatterternary&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatterternary&quot;}], &quot;surface&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;surface&quot;}], &quot;table&quot;: [{&quot;cells&quot;: {&quot;fill&quot;: {&quot;color&quot;: &quot;#EBF0F8&quot;}, &quot;line&quot;: {&quot;color&quot;: &quot;white&quot;}}, &quot;header&quot;: {&quot;fill&quot;: {&quot;color&quot;: &quot;#C8D4E3&quot;}, &quot;line&quot;: {&quot;color&quot;: &quot;white&quot;}}, &quot;type&quot;: &quot;table&quot;}]}, &quot;layout&quot;: {&quot;annotationdefaults&quot;: {&quot;arrowcolor&quot;: &quot;#2a3f5f&quot;, &quot;arrowhead&quot;: 0, &quot;arrowwidth&quot;: 1}, &quot;autotypenumbers&quot;: &quot;strict&quot;, &quot;coloraxis&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;colorscale&quot;: {&quot;diverging&quot;: [[0, &quot;#8e0152&quot;], [0.1, &quot;#c51b7d&quot;], [0.2, &quot;#de77ae&quot;], [0.3, &quot;#f1b6da&quot;], [0.4, &quot;#fde0ef&quot;], [0.5, &quot;#f7f7f7&quot;], [0.6, &quot;#e6f5d0&quot;], [0.7, &quot;#b8e186&quot;], [0.8, &quot;#7fbc41&quot;], [0.9, &quot;#4d9221&quot;], [1, &quot;#276419&quot;]], &quot;sequential&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;sequentialminus&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]]}, &quot;colorway&quot;: [&quot;#636efa&quot;, &quot;#EF553B&quot;, &quot;#00cc96&quot;, &quot;#ab63fa&quot;, &quot;#FFA15A&quot;, &quot;#19d3f3&quot;, &quot;#FF6692&quot;, &quot;#B6E880&quot;, &quot;#FF97FF&quot;, &quot;#FECB52&quot;], &quot;font&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}, &quot;geo&quot;: {&quot;bgcolor&quot;: &quot;white&quot;, &quot;lakecolor&quot;: &quot;white&quot;, &quot;landcolor&quot;: &quot;#E5ECF6&quot;, &quot;showlakes&quot;: true, &quot;showland&quot;: true, &quot;subunitcolor&quot;: &quot;white&quot;}, &quot;hoverlabel&quot;: {&quot;align&quot;: &quot;left&quot;}, &quot;hovermode&quot;: &quot;closest&quot;, &quot;mapbox&quot;: {&quot;style&quot;: &quot;light&quot;}, &quot;paper_bgcolor&quot;: &quot;white&quot;, &quot;plot_bgcolor&quot;: &quot;#E5ECF6&quot;, &quot;polar&quot;: {&quot;angularaxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}, &quot;bgcolor&quot;: &quot;#E5ECF6&quot;, &quot;radialaxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}}, &quot;scene&quot;: {&quot;xaxis&quot;: {&quot;backgroundcolor&quot;: &quot;#E5ECF6&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;gridwidth&quot;: 2, &quot;linecolor&quot;: &quot;white&quot;, &quot;showbackground&quot;: true, &quot;ticks&quot;: &quot;&quot;, &quot;zerolinecolor&quot;: &quot;white&quot;}, &quot;yaxis&quot;: {&quot;backgroundcolor&quot;: &quot;#E5ECF6&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;gridwidth&quot;: 2, &quot;linecolor&quot;: &quot;white&quot;, &quot;showbackground&quot;: true, &quot;ticks&quot;: &quot;&quot;, &quot;zerolinecolor&quot;: &quot;white&quot;}, &quot;zaxis&quot;: {&quot;backgroundcolor&quot;: &quot;#E5ECF6&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;gridwidth&quot;: 2, &quot;linecolor&quot;: &quot;white&quot;, &quot;showbackground&quot;: true, &quot;ticks&quot;: &quot;&quot;, &quot;zerolinecolor&quot;: &quot;white&quot;}}, &quot;shapedefaults&quot;: {&quot;line&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}}, &quot;ternary&quot;: {&quot;aaxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}, &quot;baxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}, &quot;bgcolor&quot;: &quot;#E5ECF6&quot;, &quot;caxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}}, &quot;title&quot;: {&quot;x&quot;: 0.05}, &quot;xaxis&quot;: {&quot;automargin&quot;: true, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;, &quot;title&quot;: {&quot;standoff&quot;: 15}, &quot;zerolinecolor&quot;: &quot;white&quot;, &quot;zerolinewidth&quot;: 2}, &quot;yaxis&quot;: {&quot;automargin&quot;: true, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;, &quot;title&quot;: {&quot;standoff&quot;: 15}, &quot;zerolinecolor&quot;: &quot;white&quot;, &quot;zerolinewidth&quot;: 2}}}, &quot;title&quot;: {&quot;text&quot;: &quot;Estimated Yearly Temp. Increase from 1980 to 2020 by 10 Year Periods&quot;}, &quot;width&quot;: 1000, &quot;xaxis&quot;: {&quot;anchor&quot;: &quot;y&quot;, &quot;domain&quot;: [0.0, 0.98], &quot;title&quot;: {&quot;text&quot;: &quot;LONGITUDE&quot;}}, &quot;xaxis2&quot;: {&quot;anchor&quot;: &quot;y2&quot;, &quot;domain&quot;: [0.0, 0.98], &quot;matches&quot;: &quot;x&quot;, &quot;showticklabels&quot;: false}, &quot;xaxis3&quot;: {&quot;anchor&quot;: &quot;y3&quot;, &quot;domain&quot;: [0.0, 0.98], &quot;matches&quot;: &quot;x&quot;, &quot;showticklabels&quot;: false}, &quot;xaxis4&quot;: {&quot;anchor&quot;: &quot;y4&quot;, &quot;domain&quot;: [0.0, 0.98], &quot;matches&quot;: &quot;x&quot;, &quot;showticklabels&quot;: false}, &quot;yaxis&quot;: {&quot;anchor&quot;: &quot;x&quot;, &quot;domain&quot;: [0.0, 0.2275], &quot;title&quot;: {&quot;text&quot;: &quot;LATITUDE&quot;}}, &quot;yaxis2&quot;: {&quot;anchor&quot;: &quot;x2&quot;, &quot;domain&quot;: [0.2575, 0.485], &quot;matches&quot;: &quot;y&quot;, &quot;title&quot;: {&quot;text&quot;: &quot;LATITUDE&quot;}}, &quot;yaxis3&quot;: {&quot;anchor&quot;: &quot;x3&quot;, &quot;domain&quot;: [0.515, 0.7425], &quot;matches&quot;: &quot;y&quot;, &quot;title&quot;: {&quot;text&quot;: &quot;LATITUDE&quot;}}, &quot;yaxis4&quot;: {&quot;anchor&quot;: &quot;x4&quot;, &quot;domain&quot;: [0.7725, 1.0], &quot;matches&quot;: &quot;y&quot;, &quot;title&quot;: {&quot;text&quot;: &quot;LATITUDE&quot;}}},                        {&quot;responsive&quot;: true}                    )                };                            &lt;/script&gt;        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

&lt;p&gt;Cool, so what does this faceted plot tell us?&lt;/p&gt;
&lt;ul&gt;
  &lt;li&gt;The 90’s were really rought for the Antarctic - we have +10 degree yearly delta estimates even!&lt;/li&gt;
  &lt;li&gt;The more gradual yearly temp deltas as we approach the equator appear even more subtle when calculated within the decade, indicating that the overall delta estimates are likely skewed by particularly bad sub-periods—the pixel map of continents is replaced by more diffuse demarcations of more severe changes.&lt;/li&gt;
&lt;/ul&gt;

&lt;h1 id=&quot;graphing-function-3---histogram&quot;&gt;Graphing Function 3 - Histogram&lt;/h1&gt;

&lt;p&gt;So, this final function comes about mostly because the marginal histogram functionality for density heatmaps don’t play nice with averages instead of counts. So to answer the most literal and reduced version of what we’ve been asking, we’re going to make a plain-old histogram to show “What is the relationship between latitude band and estimated yearly temperature change?”&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;lat_bar&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat_start&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;start_year&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;end_year&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;**&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;kwargs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
    
    &lt;span class=&quot;s&quot;&gt;&quot;&quot;&quot;
    Function to create an interactive, histogram of estimated average increase
    in temperature over a provided latitude range, for a  specified time span 
    in years.
    
    Parameters
    ----------
    lat_start - int: the start of the latitude range to query for
    lat_end - int: the end of the latitude range to query for
    start_year: str - start year for the query
    start_year: str - end year for the query
    kwargs: variable arguments fed to the plotly graphing function
    
    Returns
    -------
    fig - the plotly fig generated by the function
    &quot;&quot;&quot;&lt;/span&gt;    
    
    &lt;span class=&quot;c1&quot;&gt;#use prior defined query function to build our df
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_query&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat_start&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#year range filter
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Year&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;start_year&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Year&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;&amp;lt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;end_year&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#group our df by station
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;groupby&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;NAME&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;LATITUDE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;LONGITUDE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]).&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;apply&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coef&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;reset_index&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#rename new column 
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rename&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;columns&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;ESTIMATED YEAR INCREASE (C)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;})&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#round temp values
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;round&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#rename new column 
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;rename&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;columns&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;ESTIMATED YEAR INCREASE (C)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;})&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#round temp values
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;round&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;c1&quot;&gt;#output strings
&lt;/span&gt;    &lt;span class=&quot;n&quot;&gt;str_lat1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat_start&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;str_lat2&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat_end&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;str_start&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;start_year&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    &lt;span class=&quot;n&quot;&gt;str_end&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;end_year&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;px&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;histogram&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;coefs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;LATITUDE&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;ESTIMATED YEAR INCREASE (C)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
            &lt;span class=&quot;n&quot;&gt;nbins&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;abs&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat_end&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_start&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;),&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;histfunc&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'avg'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
                    &lt;span class=&quot;n&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Estimated Yearly Temp. Change by Latitude from &quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;str_start&lt;/span&gt; 
                    &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot; to &quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;str_end&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot; between &quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;str_lat1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot; and &quot;&lt;/span&gt;
                    &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;str_lat2&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\u00b0&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
    &lt;span class=&quot;k&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;
    
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_bar&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;lat_start&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=-&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;90&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;lat_end&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;start_year&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;1960&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;end_year&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;2010&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;show&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;pio&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;write_html&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;hw1_hist1&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; &lt;span class=&quot;c1&quot;&gt;#comment out if not saving
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;html&gt;
&lt;head&gt;&lt;meta charset=&quot;utf-8&quot; /&gt;&lt;/head&gt;
&lt;body&gt;
    &lt;div&gt;                        &lt;script type=&quot;text/javascript&quot;&gt;window.PlotlyConfig = {MathJaxConfig: 'local'};&lt;/script&gt;
        &lt;script type=&quot;text/javascript&quot;&gt;/**
* plotly.js v1.58.4
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
!function(t){if(&quot;object&quot;==typeof exports&amp;&amp;&quot;undefined&quot;!=typeof module)module.exports=t();else if(&quot;function&quot;==typeof define&amp;&amp;define.amd)define([],t);else{(&quot;undefined&quot;!=typeof window?window:&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:this).Plotly=t()}}((function(){return function t(e,r,n){function i(o,s){if(!r[o]){if(!e[o]){var l=&quot;function&quot;==typeof require&amp;&amp;require;if(!s&amp;&amp;l)return l(o,!0);if(a)return a(o,!0);var c=new Error(&quot;Cannot find module '&quot;+o+&quot;'&quot;);throw c.code=&quot;MODULE_NOT_FOUND&quot;,c}var u=r[o]={exports:{}};e[o][0].call(u.exports,(function(t){return i(e[o][1][t]||t)}),u,u.exports,t,e,r,n)}return r[o].exports}for(var a=&quot;function&quot;==typeof require&amp;&amp;require,o=0;o&lt;n.length;o++)i(n[o]);return i}({1:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../src/lib&quot;),i={&quot;X,X div&quot;:&quot;direction:ltr;font-family:'Open Sans', verdana, arial, sans-serif;margin:0;padding:0;&quot;,&quot;X input,X button&quot;:&quot;font-family:'Open Sans', verdana, arial, sans-serif;&quot;,&quot;X input:focus,X button:focus&quot;:&quot;outline:none;&quot;,&quot;X a&quot;:&quot;text-decoration:none;&quot;,&quot;X a:hover&quot;:&quot;text-decoration:none;&quot;,&quot;X .crisp&quot;:&quot;shape-rendering:crispEdges;&quot;,&quot;X .user-select-none&quot;:&quot;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;&quot;,&quot;X svg&quot;:&quot;overflow:hidden;&quot;,&quot;X svg a&quot;:&quot;fill:#447adb;&quot;,&quot;X svg a:hover&quot;:&quot;fill:#3c6dc5;&quot;,&quot;X .main-svg&quot;:&quot;position:absolute;top:0;left:0;pointer-events:none;&quot;,&quot;X .main-svg .draglayer&quot;:&quot;pointer-events:all;&quot;,&quot;X .cursor-default&quot;:&quot;cursor:default;&quot;,&quot;X .cursor-pointer&quot;:&quot;cursor:pointer;&quot;,&quot;X .cursor-crosshair&quot;:&quot;cursor:crosshair;&quot;,&quot;X .cursor-move&quot;:&quot;cursor:move;&quot;,&quot;X .cursor-col-resize&quot;:&quot;cursor:col-resize;&quot;,&quot;X .cursor-row-resize&quot;:&quot;cursor:row-resize;&quot;,&quot;X .cursor-ns-resize&quot;:&quot;cursor:ns-resize;&quot;,&quot;X .cursor-ew-resize&quot;:&quot;cursor:ew-resize;&quot;,&quot;X .cursor-sw-resize&quot;:&quot;cursor:sw-resize;&quot;,&quot;X .cursor-s-resize&quot;:&quot;cursor:s-resize;&quot;,&quot;X .cursor-se-resize&quot;:&quot;cursor:se-resize;&quot;,&quot;X .cursor-w-resize&quot;:&quot;cursor:w-resize;&quot;,&quot;X .cursor-e-resize&quot;:&quot;cursor:e-resize;&quot;,&quot;X .cursor-nw-resize&quot;:&quot;cursor:nw-resize;&quot;,&quot;X .cursor-n-resize&quot;:&quot;cursor:n-resize;&quot;,&quot;X .cursor-ne-resize&quot;:&quot;cursor:ne-resize;&quot;,&quot;X .cursor-grab&quot;:&quot;cursor:-webkit-grab;cursor:grab;&quot;,&quot;X .modebar&quot;:&quot;position:absolute;top:2px;right:2px;&quot;,&quot;X .ease-bg&quot;:&quot;-webkit-transition:background-color 0.3s ease 0s;-moz-transition:background-color 0.3s ease 0s;-ms-transition:background-color 0.3s ease 0s;-o-transition:background-color 0.3s ease 0s;transition:background-color 0.3s ease 0s;&quot;,&quot;X .modebar--hover&gt;:not(.watermark)&quot;:&quot;opacity:0;-webkit-transition:opacity 0.3s ease 0s;-moz-transition:opacity 0.3s ease 0s;-ms-transition:opacity 0.3s ease 0s;-o-transition:opacity 0.3s ease 0s;transition:opacity 0.3s ease 0s;&quot;,&quot;X:hover .modebar--hover .modebar-group&quot;:&quot;opacity:1;&quot;,&quot;X .modebar-group&quot;:&quot;float:left;display:inline-block;box-sizing:border-box;padding-left:8px;position:relative;vertical-align:middle;white-space:nowrap;&quot;,&quot;X .modebar-btn&quot;:&quot;position:relative;font-size:16px;padding:3px 4px;height:22px;cursor:pointer;line-height:normal;box-sizing:border-box;&quot;,&quot;X .modebar-btn svg&quot;:&quot;position:relative;top:2px;&quot;,&quot;X .modebar.vertical&quot;:&quot;display:flex;flex-direction:column;flex-wrap:wrap;align-content:flex-end;max-height:100%;&quot;,&quot;X .modebar.vertical svg&quot;:&quot;top:-1px;&quot;,&quot;X .modebar.vertical .modebar-group&quot;:&quot;display:block;float:none;padding-left:0px;padding-bottom:8px;&quot;,&quot;X .modebar.vertical .modebar-group .modebar-btn&quot;:&quot;display:block;text-align:center;&quot;,&quot;X [data-title]:before,X [data-title]:after&quot;:&quot;position:absolute;-webkit-transform:translate3d(0, 0, 0);-moz-transform:translate3d(0, 0, 0);-ms-transform:translate3d(0, 0, 0);-o-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);display:none;opacity:0;z-index:1001;pointer-events:none;top:110%;right:50%;&quot;,&quot;X [data-title]:hover:before,X [data-title]:hover:after&quot;:&quot;display:block;opacity:1;&quot;,&quot;X [data-title]:before&quot;:&quot;content:'';position:absolute;background:transparent;border:6px solid transparent;z-index:1002;margin-top:-12px;border-bottom-color:#69738a;margin-right:-6px;&quot;,&quot;X [data-title]:after&quot;:&quot;content:attr(data-title);background:#69738a;color:white;padding:8px 10px;font-size:12px;line-height:12px;white-space:nowrap;margin-right:-18px;border-radius:2px;&quot;,&quot;X .vertical [data-title]:before,X .vertical [data-title]:after&quot;:&quot;top:0%;right:200%;&quot;,&quot;X .vertical [data-title]:before&quot;:&quot;border:6px solid transparent;border-left-color:#69738a;margin-top:8px;margin-right:-30px;&quot;,&quot;X .select-outline&quot;:&quot;fill:none;stroke-width:1;shape-rendering:crispEdges;&quot;,&quot;X .select-outline-1&quot;:&quot;stroke:white;&quot;,&quot;X .select-outline-2&quot;:&quot;stroke:black;stroke-dasharray:2px 2px;&quot;,Y:&quot;font-family:'Open Sans', verdana, arial, sans-serif;position:fixed;top:50px;right:20px;z-index:10000;font-size:10pt;max-width:180px;&quot;,&quot;Y p&quot;:&quot;margin:0;&quot;,&quot;Y .notifier-note&quot;:&quot;min-width:180px;max-width:250px;border:1px solid #fff;z-index:3000;margin:0;background-color:#8c97af;background-color:rgba(140,151,175,0.9);color:#fff;padding:10px;overflow-wrap:break-word;word-wrap:break-word;-ms-hyphens:auto;-webkit-hyphens:auto;hyphens:auto;&quot;,&quot;Y .notifier-close&quot;:&quot;color:#fff;opacity:0.8;float:right;padding:0 5px;background:none;border:none;font-size:20px;font-weight:bold;line-height:20px;&quot;,&quot;Y .notifier-close:hover&quot;:&quot;color:#444;text-decoration:none;cursor:pointer;&quot;};for(var a in i){var o=a.replace(/^,/,&quot; ,&quot;).replace(/X/g,&quot;.js-plotly-plot .plotly&quot;).replace(/Y/g,&quot;.plotly-notifier&quot;);n.addStyleRule(o,i[a])}},{&quot;../src/lib&quot;:778}],2:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/aggregate&quot;)},{&quot;../src/transforms/aggregate&quot;:1365}],3:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/bar&quot;)},{&quot;../src/traces/bar&quot;:929}],4:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/barpolar&quot;)},{&quot;../src/traces/barpolar&quot;:942}],5:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/box&quot;)},{&quot;../src/traces/box&quot;:952}],6:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/components/calendars&quot;)},{&quot;../src/components/calendars&quot;:641}],7:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/candlestick&quot;)},{&quot;../src/traces/candlestick&quot;:961}],8:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/carpet&quot;)},{&quot;../src/traces/carpet&quot;:980}],9:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/choropleth&quot;)},{&quot;../src/traces/choropleth&quot;:994}],10:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/choroplethmapbox&quot;)},{&quot;../src/traces/choroplethmapbox&quot;:1001}],11:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/cone&quot;)},{&quot;../src/traces/cone&quot;:1007}],12:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/contour&quot;)},{&quot;../src/traces/contour&quot;:1022}],13:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/contourcarpet&quot;)},{&quot;../src/traces/contourcarpet&quot;:1033}],14:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/core&quot;)},{&quot;../src/core&quot;:755}],15:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/densitymapbox&quot;)},{&quot;../src/traces/densitymapbox&quot;:1041}],16:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/filter&quot;)},{&quot;../src/transforms/filter&quot;:1366}],17:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/funnel&quot;)},{&quot;../src/traces/funnel&quot;:1051}],18:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/funnelarea&quot;)},{&quot;../src/traces/funnelarea&quot;:1060}],19:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/groupby&quot;)},{&quot;../src/transforms/groupby&quot;:1367}],20:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/heatmap&quot;)},{&quot;../src/traces/heatmap&quot;:1073}],21:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/heatmapgl&quot;)},{&quot;../src/traces/heatmapgl&quot;:1083}],22:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram&quot;)},{&quot;../src/traces/histogram&quot;:1095}],23:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram2d&quot;)},{&quot;../src/traces/histogram2d&quot;:1101}],24:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/histogram2dcontour&quot;)},{&quot;../src/traces/histogram2dcontour&quot;:1105}],25:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/image&quot;)},{&quot;../src/traces/image&quot;:1113}],26:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./core&quot;);n.register([t(&quot;./bar&quot;),t(&quot;./box&quot;),t(&quot;./heatmap&quot;),t(&quot;./histogram&quot;),t(&quot;./histogram2d&quot;),t(&quot;./histogram2dcontour&quot;),t(&quot;./contour&quot;),t(&quot;./scatterternary&quot;),t(&quot;./violin&quot;),t(&quot;./funnel&quot;),t(&quot;./waterfall&quot;),t(&quot;./image&quot;),t(&quot;./pie&quot;),t(&quot;./sunburst&quot;),t(&quot;./treemap&quot;),t(&quot;./funnelarea&quot;),t(&quot;./scatter3d&quot;),t(&quot;./surface&quot;),t(&quot;./isosurface&quot;),t(&quot;./volume&quot;),t(&quot;./mesh3d&quot;),t(&quot;./cone&quot;),t(&quot;./streamtube&quot;),t(&quot;./scattergeo&quot;),t(&quot;./choropleth&quot;),t(&quot;./scattergl&quot;),t(&quot;./splom&quot;),t(&quot;./pointcloud&quot;),t(&quot;./heatmapgl&quot;),t(&quot;./parcoords&quot;),t(&quot;./parcats&quot;),t(&quot;./scattermapbox&quot;),t(&quot;./choroplethmapbox&quot;),t(&quot;./densitymapbox&quot;),t(&quot;./sankey&quot;),t(&quot;./indicator&quot;),t(&quot;./table&quot;),t(&quot;./carpet&quot;),t(&quot;./scattercarpet&quot;),t(&quot;./contourcarpet&quot;),t(&quot;./ohlc&quot;),t(&quot;./candlestick&quot;),t(&quot;./scatterpolar&quot;),t(&quot;./scatterpolargl&quot;),t(&quot;./barpolar&quot;)]),n.register([t(&quot;./aggregate&quot;),t(&quot;./filter&quot;),t(&quot;./groupby&quot;),t(&quot;./sort&quot;)]),n.register([t(&quot;./calendars&quot;)]),e.exports=n},{&quot;./aggregate&quot;:2,&quot;./bar&quot;:3,&quot;./barpolar&quot;:4,&quot;./box&quot;:5,&quot;./calendars&quot;:6,&quot;./candlestick&quot;:7,&quot;./carpet&quot;:8,&quot;./choropleth&quot;:9,&quot;./choroplethmapbox&quot;:10,&quot;./cone&quot;:11,&quot;./contour&quot;:12,&quot;./contourcarpet&quot;:13,&quot;./core&quot;:14,&quot;./densitymapbox&quot;:15,&quot;./filter&quot;:16,&quot;./funnel&quot;:17,&quot;./funnelarea&quot;:18,&quot;./groupby&quot;:19,&quot;./heatmap&quot;:20,&quot;./heatmapgl&quot;:21,&quot;./histogram&quot;:22,&quot;./histogram2d&quot;:23,&quot;./histogram2dcontour&quot;:24,&quot;./image&quot;:25,&quot;./indicator&quot;:27,&quot;./isosurface&quot;:28,&quot;./mesh3d&quot;:29,&quot;./ohlc&quot;:30,&quot;./parcats&quot;:31,&quot;./parcoords&quot;:32,&quot;./pie&quot;:33,&quot;./pointcloud&quot;:34,&quot;./sankey&quot;:35,&quot;./scatter3d&quot;:36,&quot;./scattercarpet&quot;:37,&quot;./scattergeo&quot;:38,&quot;./scattergl&quot;:39,&quot;./scattermapbox&quot;:40,&quot;./scatterpolar&quot;:41,&quot;./scatterpolargl&quot;:42,&quot;./scatterternary&quot;:43,&quot;./sort&quot;:44,&quot;./splom&quot;:45,&quot;./streamtube&quot;:46,&quot;./sunburst&quot;:47,&quot;./surface&quot;:48,&quot;./table&quot;:49,&quot;./treemap&quot;:50,&quot;./violin&quot;:51,&quot;./volume&quot;:52,&quot;./waterfall&quot;:53}],27:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/indicator&quot;)},{&quot;../src/traces/indicator&quot;:1121}],28:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/isosurface&quot;)},{&quot;../src/traces/isosurface&quot;:1127}],29:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/mesh3d&quot;)},{&quot;../src/traces/mesh3d&quot;:1132}],30:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/ohlc&quot;)},{&quot;../src/traces/ohlc&quot;:1137}],31:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/parcats&quot;)},{&quot;../src/traces/parcats&quot;:1146}],32:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/parcoords&quot;)},{&quot;../src/traces/parcoords&quot;:1156}],33:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/pie&quot;)},{&quot;../src/traces/pie&quot;:1167}],34:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/pointcloud&quot;)},{&quot;../src/traces/pointcloud&quot;:1176}],35:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/sankey&quot;)},{&quot;../src/traces/sankey&quot;:1182}],36:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatter3d&quot;)},{&quot;../src/traces/scatter3d&quot;:1220}],37:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattercarpet&quot;)},{&quot;../src/traces/scattercarpet&quot;:1227}],38:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattergeo&quot;)},{&quot;../src/traces/scattergeo&quot;:1235}],39:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattergl&quot;)},{&quot;../src/traces/scattergl&quot;:1248}],40:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scattermapbox&quot;)},{&quot;../src/traces/scattermapbox&quot;:1258}],41:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterpolar&quot;)},{&quot;../src/traces/scatterpolar&quot;:1266}],42:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterpolargl&quot;)},{&quot;../src/traces/scatterpolargl&quot;:1273}],43:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/scatterternary&quot;)},{&quot;../src/traces/scatterternary&quot;:1281}],44:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/transforms/sort&quot;)},{&quot;../src/transforms/sort&quot;:1369}],45:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/splom&quot;)},{&quot;../src/traces/splom&quot;:1290}],46:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/streamtube&quot;)},{&quot;../src/traces/streamtube&quot;:1298}],47:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/sunburst&quot;)},{&quot;../src/traces/sunburst&quot;:1306}],48:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/surface&quot;)},{&quot;../src/traces/surface&quot;:1315}],49:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/table&quot;)},{&quot;../src/traces/table&quot;:1323}],50:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/treemap&quot;)},{&quot;../src/traces/treemap&quot;:1332}],51:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/violin&quot;)},{&quot;../src/traces/violin&quot;:1344}],52:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/volume&quot;)},{&quot;../src/traces/volume&quot;:1352}],53:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;../src/traces/waterfall&quot;)},{&quot;../src/traces/waterfall&quot;:1360}],54:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).eye||[0,0,1],r=t.center||[0,0,0],s=t.up||[0,1,0],l=t.distanceLimits||[0,1/0],c=t.mode||&quot;turntable&quot;,u=n(),f=i(),h=a();return u.setDistanceLimits(l[0],l[1]),u.lookAt(0,e,r,s),f.setDistanceLimits(l[0],l[1]),f.lookAt(0,e,r,s),h.setDistanceLimits(l[0],l[1]),h.lookAt(0,e,r,s),new o({turntable:u,orbit:f,matrix:h},c)};var n=t(&quot;turntable-camera-controller&quot;),i=t(&quot;orbit-camera-controller&quot;),a=t(&quot;matrix-camera-controller&quot;);function o(t,e){this._controllerNames=Object.keys(t),this._controllerList=this._controllerNames.map((function(e){return t[e]})),this._mode=e,this._active=t[e],this._active||(this._mode=&quot;turntable&quot;,this._active=t.turntable),this.modes=this._controllerNames,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}var s=o.prototype;[[&quot;flush&quot;,1],[&quot;idle&quot;,1],[&quot;lookAt&quot;,4],[&quot;rotate&quot;,4],[&quot;pan&quot;,4],[&quot;translate&quot;,4],[&quot;setMatrix&quot;,2],[&quot;setDistanceLimits&quot;,2],[&quot;setDistance&quot;,2]].forEach((function(t){for(var e=t[0],r=[],n=0;n&lt;t[1];++n)r.push(&quot;a&quot;+n);var i=&quot;var cc=this._controllerList;for(var i=0;i&lt;cc.length;++i){cc[i].&quot;+t[0]+&quot;(&quot;+r.join()+&quot;)}&quot;;s[e]=Function.apply(null,r.concat(i))})),s.recalcMatrix=function(t){this._active.recalcMatrix(t)},s.getDistance=function(t){return this._active.getDistance(t)},s.getDistanceLimits=function(t){return this._active.getDistanceLimits(t)},s.lastT=function(){return this._active.lastT()},s.setMode=function(t){if(t!==this._mode){var e=this._controllerNames.indexOf(t);if(!(e&lt;0)){var r=this._active,n=this._controllerList[e],i=Math.max(r.lastT(),n.lastT());r.recalcMatrix(i),n.setMatrix(i,r.computedMatrix),this._active=n,this._mode=t,this.computedMatrix=this._active.computedMatrix,this.computedEye=this._active.computedEye,this.computedUp=this._active.computedUp,this.computedCenter=this._active.computedCenter,this.computedRadius=this._active.computedRadius}}},s.getMode=function(){return this._mode}},{&quot;matrix-camera-controller&quot;:480,&quot;orbit-camera-controller&quot;:501,&quot;turntable-camera-controller&quot;:581}],55:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-array&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-shape&quot;),t(&quot;elementary-circuits-directed-graph&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,null)}(this,(function(t,e,r,n,i){&quot;use strict&quot;;function a(t){return t.target.depth}function o(t,e){return t.sourceLinks.length?t.depth:e-1}function s(t){return function(){return t}}i=i&amp;&amp;i.hasOwnProperty(&quot;default&quot;)?i.default:i;var l=&quot;function&quot;==typeof Symbol&amp;&amp;&quot;symbol&quot;==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&amp;&amp;&quot;function&quot;==typeof Symbol&amp;&amp;t.constructor===Symbol&amp;&amp;t!==Symbol.prototype?&quot;symbol&quot;:typeof t};function c(t,e){return f(t.source,e.source)||t.index-e.index}function u(t,e){return f(t.target,e.target)||t.index-e.index}function f(t,e){return t.partOfCycle===e.partOfCycle?t.y0-e.y0:&quot;top&quot;===t.circularLinkType||&quot;bottom&quot;===e.circularLinkType?-1:1}function h(t){return t.value}function p(t){return(t.y0+t.y1)/2}function d(t){return p(t.source)}function g(t){return p(t.target)}function m(t){return t.index}function v(t){return t.nodes}function y(t){return t.links}function x(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function b(t,e){return e(t)}function _(t,e,r){var n=0;if(null===r){for(var a=[],o=0;o&lt;t.links.length;o++){var s=t.links[o],l=s.source.index,c=s.target.index;a[l]||(a[l]=[]),a[c]||(a[c]=[]),-1===a[l].indexOf(c)&amp;&amp;a[l].push(c)}var u=i(a);u.sort((function(t,e){return t.length-e.length}));var f={};for(o=0;o&lt;u.length;o++){var h=u[o].slice(-2);f[h[0]]||(f[h[0]]={}),f[h[0]][h[1]]=!0}t.links.forEach((function(t){var e=t.target.index,r=t.source.index;e===r||f[r]&amp;&amp;f[r][e]?(t.circular=!0,t.circularLinkID=n,n+=1):t.circular=!1}))}else t.links.forEach((function(t){t.source[r]&lt;t.target[r]?t.circular=!1:(t.circular=!0,t.circularLinkID=n,n+=1)}))}function w(t,e){var r=0,n=0;t.links.forEach((function(i){i.circular&amp;&amp;(i.source.circularLinkType||i.target.circularLinkType?i.circularLinkType=i.source.circularLinkType?i.source.circularLinkType:i.target.circularLinkType:i.circularLinkType=r&lt;n?&quot;top&quot;:&quot;bottom&quot;,&quot;top&quot;==i.circularLinkType?r+=1:n+=1,t.nodes.forEach((function(t){b(t,e)!=b(i.source,e)&amp;&amp;b(t,e)!=b(i.target,e)||(t.circularLinkType=i.circularLinkType)})))})),t.links.forEach((function(t){t.circular&amp;&amp;(t.source.circularLinkType==t.target.circularLinkType&amp;&amp;(t.circularLinkType=t.source.circularLinkType),H(t,e)&amp;&amp;(t.circularLinkType=t.source.circularLinkType))}))}function T(t){var e=Math.abs(t.y1-t.y0),r=Math.abs(t.target.x0-t.source.x1);return Math.atan(r/e)}function k(t,e){var r=0;t.sourceLinks.forEach((function(t){r=t.circular&amp;&amp;!H(t,e)?r+1:r}));var n=0;return t.targetLinks.forEach((function(t){n=t.circular&amp;&amp;!H(t,e)?n+1:n})),r+n}function M(t){var e=t.source.sourceLinks,r=0;e.forEach((function(t){r=t.circular?r+1:r}));var n=t.target.targetLinks,i=0;return n.forEach((function(t){i=t.circular?i+1:i})),!(r&gt;1||i&gt;1)}function A(t,e,r){return t.sort(E),t.forEach((function(n,i){var a,o,s=0;if(H(n,r)&amp;&amp;M(n))n.circularPathData.verticalBuffer=s+n.width/2;else{for(var l=0;l&lt;i;l++)if(a=t[i],o=t[l],!(a.source.column&lt;o.target.column||a.target.column&gt;o.source.column)){var c=t[l].circularPathData.verticalBuffer+t[l].width/2+e;s=c&gt;s?c:s}n.circularPathData.verticalBuffer=s+n.width/2}})),t}function S(t,r,i,a){var o=e.min(t.links,(function(t){return t.source.y0}));t.links.forEach((function(t){t.circular&amp;&amp;(t.circularPathData={})})),A(t.links.filter((function(t){return&quot;top&quot;==t.circularLinkType})),r,a),A(t.links.filter((function(t){return&quot;bottom&quot;==t.circularLinkType})),r,a),t.links.forEach((function(e){if(e.circular){if(e.circularPathData.arcRadius=e.width+10,e.circularPathData.leftNodeBuffer=5,e.circularPathData.rightNodeBuffer=5,e.circularPathData.sourceWidth=e.source.x1-e.source.x0,e.circularPathData.sourceX=e.source.x0+e.circularPathData.sourceWidth,e.circularPathData.targetX=e.target.x0,e.circularPathData.sourceY=e.y0,e.circularPathData.targetY=e.y1,H(e,a)&amp;&amp;M(e))e.circularPathData.leftSmallArcRadius=10+e.width/2,e.circularPathData.leftLargeArcRadius=10+e.width/2,e.circularPathData.rightSmallArcRadius=10+e.width/2,e.circularPathData.rightLargeArcRadius=10+e.width/2,&quot;bottom&quot;==e.circularLinkType?(e.circularPathData.verticalFullExtent=e.source.y1+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=e.source.y0-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius);else{var s=e.source.column,l=e.circularLinkType,c=t.links.filter((function(t){return t.source.column==s&amp;&amp;t.circularLinkType==l}));&quot;bottom&quot;==e.circularLinkType?c.sort(L):c.sort(C);var u=0;c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&amp;&amp;(e.circularPathData.leftSmallArcRadius=10+e.width/2+u,e.circularPathData.leftLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),s=e.target.column,c=t.links.filter((function(t){return t.target.column==s&amp;&amp;t.circularLinkType==l})),&quot;bottom&quot;==e.circularLinkType?c.sort(P):c.sort(I),u=0,c.forEach((function(t,n){t.circularLinkID==e.circularLinkID&amp;&amp;(e.circularPathData.rightSmallArcRadius=10+e.width/2+u,e.circularPathData.rightLargeArcRadius=10+e.width/2+n*r+u),u+=t.width})),&quot;bottom&quot;==e.circularLinkType?(e.circularPathData.verticalFullExtent=Math.max(i,e.source.y1,e.target.y1)+25+e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent-e.circularPathData.rightLargeArcRadius):(e.circularPathData.verticalFullExtent=o-25-e.circularPathData.verticalBuffer,e.circularPathData.verticalLeftInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.leftLargeArcRadius,e.circularPathData.verticalRightInnerExtent=e.circularPathData.verticalFullExtent+e.circularPathData.rightLargeArcRadius)}e.circularPathData.leftInnerExtent=e.circularPathData.sourceX+e.circularPathData.leftNodeBuffer,e.circularPathData.rightInnerExtent=e.circularPathData.targetX-e.circularPathData.rightNodeBuffer,e.circularPathData.leftFullExtent=e.circularPathData.sourceX+e.circularPathData.leftLargeArcRadius+e.circularPathData.leftNodeBuffer,e.circularPathData.rightFullExtent=e.circularPathData.targetX-e.circularPathData.rightLargeArcRadius-e.circularPathData.rightNodeBuffer}if(e.circular)e.path=function(t){var e=&quot;&quot;;e=&quot;top&quot;==t.circularLinkType?&quot;M&quot;+t.circularPathData.sourceX+&quot; &quot;+t.circularPathData.sourceY+&quot; L&quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.sourceY+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftSmallArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.leftFullExtent+&quot; &quot;+(t.circularPathData.sourceY-t.circularPathData.leftSmallArcRadius)+&quot; L&quot;+t.circularPathData.leftFullExtent+&quot; &quot;+t.circularPathData.verticalLeftInnerExtent+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftLargeArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; L&quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightLargeArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.rightFullExtent+&quot; &quot;+t.circularPathData.verticalRightInnerExtent+&quot; L&quot;+t.circularPathData.rightFullExtent+&quot; &quot;+(t.circularPathData.targetY-t.circularPathData.rightSmallArcRadius)+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightSmallArcRadius+&quot; 0 0 0 &quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.targetY+&quot; L&quot;+t.circularPathData.targetX+&quot; &quot;+t.circularPathData.targetY:&quot;M&quot;+t.circularPathData.sourceX+&quot; &quot;+t.circularPathData.sourceY+&quot; L&quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.sourceY+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftSmallArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.leftFullExtent+&quot; &quot;+(t.circularPathData.sourceY+t.circularPathData.leftSmallArcRadius)+&quot; L&quot;+t.circularPathData.leftFullExtent+&quot; &quot;+t.circularPathData.verticalLeftInnerExtent+&quot; A&quot;+t.circularPathData.leftLargeArcRadius+&quot; &quot;+t.circularPathData.leftLargeArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.leftInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; L&quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.verticalFullExtent+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightLargeArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.rightFullExtent+&quot; &quot;+t.circularPathData.verticalRightInnerExtent+&quot; L&quot;+t.circularPathData.rightFullExtent+&quot; &quot;+(t.circularPathData.targetY+t.circularPathData.rightSmallArcRadius)+&quot; A&quot;+t.circularPathData.rightLargeArcRadius+&quot; &quot;+t.circularPathData.rightSmallArcRadius+&quot; 0 0 1 &quot;+t.circularPathData.rightInnerExtent+&quot; &quot;+t.circularPathData.targetY+&quot; L&quot;+t.circularPathData.targetX+&quot; &quot;+t.circularPathData.targetY;return e}(e);else{var f=n.linkHorizontal().source((function(t){return[t.source.x0+(t.source.x1-t.source.x0),t.y0]})).target((function(t){return[t.target.x0,t.y1]}));e.path=f(e)}}))}function E(t,e){return z(t)==z(e)?&quot;bottom&quot;==t.circularLinkType?L(t,e):C(t,e):z(e)-z(t)}function C(t,e){return t.y0-e.y0}function L(t,e){return e.y0-t.y0}function I(t,e){return t.y1-e.y1}function P(t,e){return e.y1-t.y1}function z(t){return t.target.column-t.source.column}function O(t){return t.target.x0-t.source.x1}function D(t,e){var r=T(t),n=O(e)/Math.tan(r);return&quot;up&quot;==q(t)?t.y1+n:t.y1-n}function R(t,e){var r=T(t),n=O(e)/Math.tan(r);return&quot;up&quot;==q(t)?t.y1-n:t.y1+n}function F(t,e,r,n){t.links.forEach((function(i){if(!i.circular&amp;&amp;i.target.column-i.source.column&gt;1){var a=i.source.column+1,o=i.target.column-1,s=1,l=o-a+1;for(s=1;a&lt;=o;a++,s++)t.nodes.forEach((function(o){if(o.column==a){var c,u=s/(l+1),f=Math.pow(1-u,3),h=3*u*Math.pow(1-u,2),p=3*Math.pow(u,2)*(1-u),d=Math.pow(u,3),g=f*i.y0+h*i.y0+p*i.y1+d*i.y1,m=g-i.width/2,v=g+i.width/2;m&gt;o.y0&amp;&amp;m&lt;o.y1?(c=o.y1-m+10,c=&quot;bottom&quot;==o.circularLinkType?c:-c,o=N(o,c,e,r),t.nodes.forEach((function(t){b(t,n)!=b(o,n)&amp;&amp;t.column==o.column&amp;&amp;B(o,t)&amp;&amp;N(t,c,e,r)}))):(v&gt;o.y0&amp;&amp;v&lt;o.y1||m&lt;o.y0&amp;&amp;v&gt;o.y1)&amp;&amp;(c=v-o.y0+10,o=N(o,c,e,r),t.nodes.forEach((function(t){b(t,n)!=b(o,n)&amp;&amp;t.column==o.column&amp;&amp;t.y0&lt;o.y1&amp;&amp;t.y1&gt;o.y1&amp;&amp;N(t,c,e,r)})))}}))}}))}function B(t,e){return t.y0&gt;e.y0&amp;&amp;t.y0&lt;e.y1||(t.y1&gt;e.y0&amp;&amp;t.y1&lt;e.y1||t.y0&lt;e.y0&amp;&amp;t.y1&gt;e.y1)}function N(t,e,r,n){return t.y0+e&gt;=r&amp;&amp;t.y1+e&lt;=n&amp;&amp;(t.y0=t.y0+e,t.y1=t.y1+e,t.targetLinks.forEach((function(t){t.y1=t.y1+e})),t.sourceLinks.forEach((function(t){t.y0=t.y0+e}))),t}function j(t,e,r,n){t.nodes.forEach((function(i){n&amp;&amp;i.y+(i.y1-i.y0)&gt;e&amp;&amp;(i.y=i.y-(i.y+(i.y1-i.y0)-e));var a=t.links.filter((function(t){return b(t.source,r)==b(i,r)})),o=a.length;o&gt;1&amp;&amp;a.sort((function(t,e){if(!t.circular&amp;&amp;!e.circular){if(t.target.column==e.target.column)return t.y1-e.y1;if(!V(t,e))return t.y1-e.y1;if(t.target.column&gt;e.target.column){var r=R(e,t);return t.y1-r}if(e.target.column&gt;t.target.column)return R(t,e)-e.y1}return t.circular&amp;&amp;!e.circular?&quot;top&quot;==t.circularLinkType?-1:1:e.circular&amp;&amp;!t.circular?&quot;top&quot;==e.circularLinkType?1:-1:t.circular&amp;&amp;e.circular?t.circularLinkType===e.circularLinkType&amp;&amp;&quot;top&quot;==t.circularLinkType?t.target.column===e.target.column?t.target.y1-e.target.y1:e.target.column-t.target.column:t.circularLinkType===e.circularLinkType&amp;&amp;&quot;bottom&quot;==t.circularLinkType?t.target.column===e.target.column?e.target.y1-t.target.y1:t.target.column-e.target.column:&quot;top&quot;==t.circularLinkType?-1:1:void 0}));var s=i.y0;a.forEach((function(t){t.y0=s+t.width/2,s+=t.width})),a.forEach((function(t,e){if(&quot;bottom&quot;==t.circularLinkType){for(var r=e+1,n=0;r&lt;o;r++)n+=a[r].width;t.y0=i.y1-n-t.width/2}}))}))}function U(t,e,r){t.nodes.forEach((function(e){var n=t.links.filter((function(t){return b(t.target,r)==b(e,r)})),i=n.length;i&gt;1&amp;&amp;n.sort((function(t,e){if(!t.circular&amp;&amp;!e.circular){if(t.source.column==e.source.column)return t.y0-e.y0;if(!V(t,e))return t.y0-e.y0;if(e.source.column&lt;t.source.column){var r=D(e,t);return t.y0-r}if(t.source.column&lt;e.source.column)return D(t,e)-e.y0}return t.circular&amp;&amp;!e.circular?&quot;top&quot;==t.circularLinkType?-1:1:e.circular&amp;&amp;!t.circular?&quot;top&quot;==e.circularLinkType?1:-1:t.circular&amp;&amp;e.circular?t.circularLinkType===e.circularLinkType&amp;&amp;&quot;top&quot;==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:t.source.column-e.source.column:t.circularLinkType===e.circularLinkType&amp;&amp;&quot;bottom&quot;==t.circularLinkType?t.source.column===e.source.column?t.source.y1-e.source.y1:e.source.column-t.source.column:&quot;top&quot;==t.circularLinkType?-1:1:void 0}));var a=e.y0;n.forEach((function(t){t.y1=a+t.width/2,a+=t.width})),n.forEach((function(t,r){if(&quot;bottom&quot;==t.circularLinkType){for(var a=r+1,o=0;a&lt;i;a++)o+=n[a].width;t.y1=e.y1-o-t.width/2}}))}))}function V(t,e){return q(t)==q(e)}function q(t){return t.y0-t.y1&gt;0?&quot;up&quot;:&quot;down&quot;}function H(t,e){return b(t.source,e)==b(t.target,e)}function G(t,r,n){var i=t.nodes,a=t.links,o=!1,s=!1;if(a.forEach((function(t){&quot;top&quot;==t.circularLinkType?o=!0:&quot;bottom&quot;==t.circularLinkType&amp;&amp;(s=!0)})),0==o||0==s){var l=e.min(i,(function(t){return t.y0})),c=(n-r)/(e.max(i,(function(t){return t.y1}))-l);i.forEach((function(t){var e=(t.y1-t.y0)*c;t.y0=(t.y0-l)*c,t.y1=t.y0+e})),a.forEach((function(t){t.y0=(t.y0-l)*c,t.y1=(t.y1-l)*c,t.width=t.width*c}))}}t.sankeyCircular=function(){var t,n,i=0,a=0,b=1,T=1,M=24,A=m,E=o,C=v,L=y,I=32,P=2,z=null;function O(){var t={nodes:C.apply(null,arguments),links:L.apply(null,arguments)};D(t),_(t,A,z),R(t),B(t),w(t,A),N(t,I,A),V(t);for(var e=4,r=0;r&lt;e;r++)j(t,T,A),U(t,T,A),F(t,a,T,A),j(t,T,A),U(t,T,A);return G(t,a,T),S(t,P,T,A),t}function D(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,A);return t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;&quot;object&quot;!==(&quot;undefined&quot;==typeof n?&quot;undefined&quot;:l(n))&amp;&amp;(n=t.source=x(e,n)),&quot;object&quot;!==(&quot;undefined&quot;==typeof i?&quot;undefined&quot;:l(i))&amp;&amp;(i=t.target=x(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)})),t}function R(t){t.nodes.forEach((function(t){t.partOfCycle=!1,t.value=Math.max(e.sum(t.sourceLinks,h),e.sum(t.targetLinks,h)),t.sourceLinks.forEach((function(e){e.circular&amp;&amp;(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)})),t.targetLinks.forEach((function(e){e.circular&amp;&amp;(t.partOfCycle=!0,t.circularLinkType=e.circularLinkType)}))}))}function B(t){var e,r,n;for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.depth=n,t.sourceLinks.forEach((function(t){r.indexOf(t.target)&lt;0&amp;&amp;!t.circular&amp;&amp;r.push(t.target)}))}));for(e=t.nodes,r=[],n=0;e.length;++n,e=r,r=[])e.forEach((function(t){t.height=n,t.targetLinks.forEach((function(t){r.indexOf(t.source)&lt;0&amp;&amp;!t.circular&amp;&amp;r.push(t.source)}))}));t.nodes.forEach((function(t){t.column=Math.floor(E.call(null,t,n))}))}function N(o,s,l){var c=r.nest().key((function(t){return t.column})).sortKeys(e.ascending).entries(o.nodes).map((function(t){return t.values}));!function(r){if(n){var s=1/0;c.forEach((function(t){var e=T*n/(t.length+1);s=e&lt;s?e:s})),t=s}var l=e.min(c,(function(r){return(T-a-(r.length-1)*t)/e.sum(r,h)}));l*=.3,o.links.forEach((function(t){t.width=t.value*l}));var u=function(t){var r=0,n=0,i=0,a=0,o=e.max(t.nodes,(function(t){return t.column}));return t.links.forEach((function(t){t.circular&amp;&amp;(&quot;top&quot;==t.circularLinkType?r+=t.width:n+=t.width,0==t.target.column&amp;&amp;(a+=t.width),t.source.column==o&amp;&amp;(i+=t.width))})),{top:r=r&gt;0?r+25+10:r,bottom:n=n&gt;0?n+25+10:n,left:a=a&gt;0?a+25+10:a,right:i=i&gt;0?i+25+10:i}}(o),f=function(t,r){var n=e.max(t.nodes,(function(t){return t.column})),o=b-i,s=T-a,l=o/(o+r.right+r.left),c=s/(s+r.top+r.bottom);return i=i*l+r.left,b=0==r.right?b:b*l,a=a*c+r.top,T*=c,t.nodes.forEach((function(t){t.x0=i+t.column*((b-i-M)/n),t.x1=t.x0+M})),c}(o,u);l*=f,o.links.forEach((function(t){t.width=t.value*l})),c.forEach((function(t){var e=t.length;t.forEach((function(t,n){t.depth==c.length-1&amp;&amp;1==e||0==t.depth&amp;&amp;1==e?(t.y0=T/2-t.value*l,t.y1=t.y0+t.value*l):t.partOfCycle?0==k(t,r)?(t.y0=T/2+n,t.y1=t.y0+t.value*l):&quot;top&quot;==t.circularLinkType?(t.y0=a+n,t.y1=t.y0+t.value*l):(t.y0=T-t.value*l-n,t.y1=t.y0+t.value*l):0==u.top||0==u.bottom?(t.y0=(T-a)/e*n,t.y1=t.y0+t.value*l):(t.y0=(T-a)/2-e/2+n,t.y1=t.y0+t.value*l)}))}))}(l),y();for(var u=1,m=s;m&gt;0;--m)v(u*=.99,l),y();function v(t,r){var n=c.length;c.forEach((function(i){var a=i.length,o=i[0].depth;i.forEach((function(i){var s;if(i.sourceLinks.length||i.targetLinks.length)if(i.partOfCycle&amp;&amp;k(i,r)&gt;0);else if(0==o&amp;&amp;1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else if(o==n-1&amp;&amp;1==a)s=i.y1-i.y0,i.y0=T/2-s/2,i.y1=T/2+s/2;else{var l=e.mean(i.sourceLinks,g),c=e.mean(i.targetLinks,d),u=((l&amp;&amp;c?(l+c)/2:l||c)-p(i))*t;i.y0+=u,i.y1+=u}}))}))}function y(){c.forEach((function(e){var r,n,i,o=a,s=e.length;for(e.sort(f),i=0;i&lt;s;++i)(n=o-(r=e[i]).y0)&gt;0&amp;&amp;(r.y0+=n,r.y1+=n),o=r.y1+t;if((n=o-t-T)&gt;0)for(o=r.y0-=n,r.y1-=n,i=s-2;i&gt;=0;--i)(n=(r=e[i]).y1+t-o)&gt;0&amp;&amp;(r.y0-=n,r.y1-=n),o=r.y0}))}}function V(t){t.nodes.forEach((function(t){t.sourceLinks.sort(u),t.targetLinks.sort(c)})),t.nodes.forEach((function(t){var e=t.y0,r=e,n=t.y1,i=n;t.sourceLinks.forEach((function(t){t.circular?(t.y0=n-t.width/2,n-=t.width):(t.y0=e+t.width/2,e+=t.width)})),t.targetLinks.forEach((function(t){t.circular?(t.y1=i-t.width/2,i-=t.width):(t.y1=r+t.width/2,r+=t.width)}))}))}return O.nodeId=function(t){return arguments.length?(A=&quot;function&quot;==typeof t?t:s(t),O):A},O.nodeAlign=function(t){return arguments.length?(E=&quot;function&quot;==typeof t?t:s(t),O):E},O.nodeWidth=function(t){return arguments.length?(M=+t,O):M},O.nodePadding=function(e){return arguments.length?(t=+e,O):t},O.nodes=function(t){return arguments.length?(C=&quot;function&quot;==typeof t?t:s(t),O):C},O.links=function(t){return arguments.length?(L=&quot;function&quot;==typeof t?t:s(t),O):L},O.size=function(t){return arguments.length?(i=a=0,b=+t[0],T=+t[1],O):[b-i,T-a]},O.extent=function(t){return arguments.length?(i=+t[0][0],b=+t[1][0],a=+t[0][1],T=+t[1][1],O):[[i,a],[b,T]]},O.iterations=function(t){return arguments.length?(I=+t,O):I},O.circularLinkGap=function(t){return arguments.length?(P=+t,O):P},O.nodePaddingRatio=function(t){return arguments.length?(n=+t,O):n},O.sortNodes=function(t){return arguments.length?(z=t,O):z},O.update=function(t){return w(t,A),V(t),t.links.forEach((function(t){t.circular&amp;&amp;(t.circularLinkType=t.y0+t.y1&lt;T?&quot;top&quot;:&quot;bottom&quot;,t.source.circularLinkType=t.circularLinkType,t.target.circularLinkType=t.circularLinkType)})),j(t,T,A,!1),U(t,T,A),S(t,P,T,A),t},O},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,a)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=o,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:156,&quot;d3-collection&quot;:157,&quot;d3-shape&quot;:165,&quot;elementary-circuits-directed-graph&quot;:179}],56:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-array&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-shape&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3)}(this,(function(t,e,r,n){&quot;use strict&quot;;function i(t){return t.target.depth}function a(t,e){return t.sourceLinks.length?t.depth:e-1}function o(t){return function(){return t}}function s(t,e){return c(t.source,e.source)||t.index-e.index}function l(t,e){return c(t.target,e.target)||t.index-e.index}function c(t,e){return t.y0-e.y0}function u(t){return t.value}function f(t){return(t.y0+t.y1)/2}function h(t){return f(t.source)*t.value}function p(t){return f(t.target)*t.value}function d(t){return t.index}function g(t){return t.nodes}function m(t){return t.links}function v(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function y(t){return[t.source.x1,t.y0]}function x(t){return[t.target.x0,t.y1]}t.sankey=function(){var t=0,n=0,i=1,y=1,x=24,b=8,_=d,w=a,T=g,k=m,M=32;function A(){var t={nodes:T.apply(null,arguments),links:k.apply(null,arguments)};return S(t),E(t),C(t),L(t),I(t),t}function S(t){t.nodes.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var e=r.map(t.nodes,_);t.links.forEach((function(t,r){t.index=r;var n=t.source,i=t.target;&quot;object&quot;!=typeof n&amp;&amp;(n=t.source=v(e,n)),&quot;object&quot;!=typeof i&amp;&amp;(i=t.target=v(e,i)),n.sourceLinks.push(t),i.targetLinks.push(t)}))}function E(t){t.nodes.forEach((function(t){t.value=Math.max(e.sum(t.sourceLinks,u),e.sum(t.targetLinks,u))}))}function C(e){var r,n,a;for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.depth=a,t.sourceLinks.forEach((function(t){n.indexOf(t.target)&lt;0&amp;&amp;n.push(t.target)}))}));for(r=e.nodes,n=[],a=0;r.length;++a,r=n,n=[])r.forEach((function(t){t.height=a,t.targetLinks.forEach((function(t){n.indexOf(t.source)&lt;0&amp;&amp;n.push(t.source)}))}));var o=(i-t-x)/(a-1);e.nodes.forEach((function(e){e.x1=(e.x0=t+Math.max(0,Math.min(a-1,Math.floor(w.call(null,e,a))))*o)+x}))}function L(t){var i=r.nest().key((function(t){return t.x0})).sortKeys(e.ascending).entries(t.nodes).map((function(t){return t.values}));!function(){var r=e.max(i,(function(t){return t.length})),a=2/3*(y-n)/(r-1);b&gt;a&amp;&amp;(b=a);var o=e.min(i,(function(t){return(y-n-(t.length-1)*b)/e.sum(t,u)}));i.forEach((function(t){t.forEach((function(t,e){t.y1=(t.y0=e)+t.value*o}))})),t.links.forEach((function(t){t.width=t.value*o}))}(),d();for(var a=1,o=M;o&gt;0;--o)l(a*=.99),d(),s(a),d();function s(t){i.forEach((function(r){r.forEach((function(r){if(r.targetLinks.length){var n=(e.sum(r.targetLinks,h)/e.sum(r.targetLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function l(t){i.slice().reverse().forEach((function(r){r.forEach((function(r){if(r.sourceLinks.length){var n=(e.sum(r.sourceLinks,p)/e.sum(r.sourceLinks,u)-f(r))*t;r.y0+=n,r.y1+=n}}))}))}function d(){i.forEach((function(t){var e,r,i,a=n,o=t.length;for(t.sort(c),i=0;i&lt;o;++i)(r=a-(e=t[i]).y0)&gt;0&amp;&amp;(e.y0+=r,e.y1+=r),a=e.y1+b;if((r=a-b-y)&gt;0)for(a=e.y0-=r,e.y1-=r,i=o-2;i&gt;=0;--i)(r=(e=t[i]).y1+b-a)&gt;0&amp;&amp;(e.y0-=r,e.y1-=r),a=e.y0}))}}function I(t){t.nodes.forEach((function(t){t.sourceLinks.sort(l),t.targetLinks.sort(s)})),t.nodes.forEach((function(t){var e=t.y0,r=e;t.sourceLinks.forEach((function(t){t.y0=e+t.width/2,e+=t.width})),t.targetLinks.forEach((function(t){t.y1=r+t.width/2,r+=t.width}))}))}return A.update=function(t){return I(t),t},A.nodeId=function(t){return arguments.length?(_=&quot;function&quot;==typeof t?t:o(t),A):_},A.nodeAlign=function(t){return arguments.length?(w=&quot;function&quot;==typeof t?t:o(t),A):w},A.nodeWidth=function(t){return arguments.length?(x=+t,A):x},A.nodePadding=function(t){return arguments.length?(b=+t,A):b},A.nodes=function(t){return arguments.length?(T=&quot;function&quot;==typeof t?t:o(t),A):T},A.links=function(t){return arguments.length?(k=&quot;function&quot;==typeof t?t:o(t),A):k},A.size=function(e){return arguments.length?(t=n=0,i=+e[0],y=+e[1],A):[i-t,y-n]},A.extent=function(e){return arguments.length?(t=+e[0][0],i=+e[1][0],n=+e[0][1],y=+e[1][1],A):[[t,n],[i,y]]},A.iterations=function(t){return arguments.length?(M=+t,A):M},A},t.sankeyCenter=function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?e.min(t.sourceLinks,i)-1:0},t.sankeyLeft=function(t){return t.depth},t.sankeyRight=function(t,e){return e-1-t.height},t.sankeyJustify=a,t.sankeyLinkHorizontal=function(){return n.linkHorizontal().source(y).target(x)},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-array&quot;:156,&quot;d3-collection&quot;:157,&quot;d3-shape&quot;:165}],57:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./quad&quot;)},{&quot;./quad&quot;:58}],58:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;clamp&quot;),a=t(&quot;parse-rect&quot;),o=t(&quot;array-bounds&quot;),s=t(&quot;pick-by-alias&quot;),l=t(&quot;defined&quot;),c=t(&quot;flatten-vertex-data&quot;),u=t(&quot;is-obj&quot;),f=t(&quot;dtype&quot;),h=t(&quot;math-log2&quot;);function p(t,e){for(var r=e[0],n=e[1],a=1/(e[2]-r),o=1/(e[3]-n),s=new Array(t.length),l=0,c=t.length/2;l&lt;c;l++)s[2*l]=i((t[2*l]-r)*a,0,1),s[2*l+1]=i((t[2*l+1]-n)*o,0,1);return s}e.exports=function(t,e){e||(e={}),t=c(t,&quot;float64&quot;),e=s(e,{bounds:&quot;range bounds dataBox databox&quot;,maxDepth:&quot;depth maxDepth maxdepth level maxLevel maxlevel levels&quot;,dtype:&quot;type dtype format out dst output destination&quot;});var r=l(e.maxDepth,255),i=l(e.bounds,o(t,2));i[0]===i[2]&amp;&amp;i[2]++,i[1]===i[3]&amp;&amp;i[3]++;var d,g=p(t,i),m=t.length&gt;&gt;&gt;1;e.dtype||(e.dtype=&quot;array&quot;),&quot;string&quot;==typeof e.dtype?d=new(f(e.dtype))(m):e.dtype&amp;&amp;(d=e.dtype,Array.isArray(d)&amp;&amp;(d.length=m));for(var v=0;v&lt;m;++v)d[v]=v;var y=[],x=[],b=[],_=[];!function t(e,n,i,a,o,s){if(!a.length)return null;var l=y[o]||(y[o]=[]),c=b[o]||(b[o]=[]),u=x[o]||(x[o]=[]),f=l.length;if(++o&gt;r||s&gt;1073741824){for(var h=0;h&lt;a.length;h++)l.push(a[h]),c.push(s),u.push(null,null,null,null);return f}if(l.push(a[0]),c.push(s),a.length&lt;=1)return u.push(null,null,null,null),f;for(var p=.5*i,d=e+p,m=n+p,v=[],_=[],w=[],T=[],k=1,M=a.length;k&lt;M;k++){var A=a[k],S=g[2*A],E=g[2*A+1];S&lt;d?E&lt;m?v.push(A):_.push(A):E&lt;m?w.push(A):T.push(A)}return s&lt;&lt;=2,u.push(t(e,n,p,v,o,s),t(e,m,p,_,o,s+1),t(d,n,p,w,o,s+2),t(d,m,p,T,o,s+3)),f}(0,0,1,d,0,1);for(var w=0,T=0;T&lt;y.length;T++){var k=y[T];if(d.set)d.set(k,w);else for(var M=0,A=k.length;M&lt;A;M++)d[M+w]=k[M];var S=w+y[T].length;_[T]=[w,S],w=S}return d.range=function(){var e,r=[],n=arguments.length;for(;n--;)r[n]=arguments[n];if(u(r[r.length-1])){var o=r.pop();r.length||null==o.x&amp;&amp;null==o.l&amp;&amp;null==o.left||(r=[o],e={}),e=s(o,{level:&quot;level maxLevel&quot;,d:&quot;d diam diameter r radius px pxSize pixel pixelSize maxD size minSize&quot;,lod:&quot;lod details ranges offsets&quot;})}else e={};r.length||(r=i);var c=a.apply(void 0,r),f=[Math.min(c.x,c.x+c.width),Math.min(c.y,c.y+c.height),Math.max(c.x,c.x+c.width),Math.max(c.y,c.y+c.height)],d=f[0],g=f[1],m=f[2],v=f[3],b=p([d,g,m,v],i),_=b[0],w=b[1],T=b[2],k=b[3],M=l(e.level,y.length);if(null!=e.d){var A;&quot;number&quot;==typeof e.d?A=[e.d,e.d]:e.d.length&amp;&amp;(A=e.d),M=Math.min(Math.max(Math.ceil(-h(Math.abs(A[0])/(i[2]-i[0]))),Math.ceil(-h(Math.abs(A[1])/(i[3]-i[1])))),M)}if(M=Math.min(M,y.length),e.lod)return E(_,w,T,k,M);var S=[];function C(e,r,n,i,a,o){if(null!==a&amp;&amp;null!==o&amp;&amp;!(_&gt;e+n||w&gt;r+n||T&lt;e||k&lt;r||i&gt;=M||a===o)){var s=y[i];void 0===o&amp;&amp;(o=s.length);for(var l=a;l&lt;o;l++){var c=s[l],u=t[2*c],f=t[2*c+1];u&gt;=d&amp;&amp;u&lt;=m&amp;&amp;f&gt;=g&amp;&amp;f&lt;=v&amp;&amp;S.push(c)}var h=x[i],p=h[4*a+0],b=h[4*a+1],A=h[4*a+2],E=h[4*a+3],I=L(h,a+1),P=.5*n,z=i+1;C(e,r,P,z,p,b||A||E||I),C(e,r+P,P,z,b,A||E||I),C(e+P,r,P,z,A,E||I),C(e+P,r+P,P,z,E,I)}}function L(t,e){for(var r=null,n=0;null===r;)if(r=t[4*e+n],++n&gt;t.length)return null;return r}return C(0,0,1,0,0,1),S},d;function E(t,e,r,i,a){for(var o=[],s=0;s&lt;a;s++){var l=b[s],c=_[s][0],u=C(t,e,s),f=C(r,i,s),h=n.ge(l,u),p=n.gt(l,f,h,l.length-1);o[s]=[h+c,p+c]}return o}function C(t,e,r){for(var n=1,i=.5,a=.5,o=.5,s=0;s&lt;r;s++)n&lt;&lt;=2,n+=t&lt;i?e&lt;a?0:1:e&lt;a?2:3,o*=.5,i+=t&lt;i?-o:o,a+=e&lt;a?-o:o;return n}}},{&quot;array-bounds&quot;:70,&quot;binary-search-bounds&quot;:96,clamp:120,defined:170,dtype:175,&quot;flatten-vertex-data&quot;:244,&quot;is-obj&quot;:468,&quot;math-log2&quot;:479,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511}],59:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;);function i(t){var e=0;if(t&amp;&amp;t.length&gt;0){e+=Math.abs(a(t[0]));for(var r=1;r&lt;t.length;r++)e-=Math.abs(a(t[r]))}return e}function a(t){var e,r,n,i,a,s,l=0,c=t.length;if(c&gt;2){for(s=0;s&lt;c;s++)s===c-2?(n=c-2,i=c-1,a=0):s===c-1?(n=c-1,i=0,a=1):(n=s,i=s+1,a=s+2),e=t[n],r=t[i],l+=(o(t[a][0])-o(e[0]))*Math.sin(o(r[1]));l=6378137*l*6378137/2}return l}function o(t){return t*Math.PI/180}r.default=function(t){return n.geomReduce(t,(function(t,e){return t+function(t){var e,r=0;switch(t.type){case&quot;Polygon&quot;:return i(t.coordinates);case&quot;MultiPolygon&quot;:for(e=0;e&lt;t.coordinates.length;e++)r+=i(t.coordinates[e]);return r;case&quot;Point&quot;:case&quot;MultiPoint&quot;:case&quot;LineString&quot;:case&quot;MultiLineString&quot;:return 0}return 0}(e)}),0)}},{&quot;@turf/meta&quot;:63}],60:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;);r.default=function(t){var e=[1/0,1/0,-1/0,-1/0];return n.coordEach(t,(function(t){e[0]&gt;t[0]&amp;&amp;(e[0]=t[0]),e[1]&gt;t[1]&amp;&amp;(e[1]=t[1]),e[2]&lt;t[0]&amp;&amp;(e[2]=t[0]),e[3]&lt;t[1]&amp;&amp;(e[3]=t[1])})),e}},{&quot;@turf/meta&quot;:63}],61:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/meta&quot;),i=t(&quot;@turf/helpers&quot;);r.default=function(t,e){void 0===e&amp;&amp;(e={});var r=0,a=0,o=0;return n.coordEach(t,(function(t){r+=t[0],a+=t[1],o++})),i.point([r/o,a/o],e.properties)}},{&quot;@turf/helpers&quot;:62,&quot;@turf/meta&quot;:63}],62:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){void 0===r&amp;&amp;(r={});var n={type:&quot;Feature&quot;};return(0===r.id||r.id)&amp;&amp;(n.id=r.id),r.bbox&amp;&amp;(n.bbox=r.bbox),n.properties=e||{},n.geometry=t,n}function i(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;Point&quot;,coordinates:t},e,r)}function a(t,e,r){void 0===r&amp;&amp;(r={});for(var i=0,a=t;i&lt;a.length;i++){var o=a[i];if(o.length&lt;4)throw new Error(&quot;Each LinearRing of a Polygon must have 4 or more Positions.&quot;);for(var s=0;s&lt;o[o.length-1].length;s++)if(o[o.length-1][s]!==o[0][s])throw new Error(&quot;First and last Position are not equivalent.&quot;)}return n({type:&quot;Polygon&quot;,coordinates:t},e,r)}function o(t,e,r){if(void 0===r&amp;&amp;(r={}),t.length&lt;2)throw new Error(&quot;coordinates must be an array of two or more positions&quot;);return n({type:&quot;LineString&quot;,coordinates:t},e,r)}function s(t,e){void 0===e&amp;&amp;(e={});var r={type:&quot;FeatureCollection&quot;};return e.id&amp;&amp;(r.id=e.id),e.bbox&amp;&amp;(r.bbox=e.bbox),r.features=t,r}function l(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiLineString&quot;,coordinates:t},e,r)}function c(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPoint&quot;,coordinates:t},e,r)}function u(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;MultiPolygon&quot;,coordinates:t},e,r)}function f(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t*n}function h(t,e){void 0===e&amp;&amp;(e=&quot;kilometers&quot;);var n=r.factors[e];if(!n)throw new Error(e+&quot; units is invalid&quot;);return t/n}function p(t){return 180*(t%(2*Math.PI))/Math.PI}function d(t){return!isNaN(t)&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)&amp;&amp;!/^\s*$/.test(t)}Object.defineProperty(r,&quot;__esModule&quot;,{value:!0}),r.earthRadius=6371008.8,r.factors={centimeters:100*r.earthRadius,centimetres:100*r.earthRadius,degrees:r.earthRadius/111325,feet:3.28084*r.earthRadius,inches:39.37*r.earthRadius,kilometers:r.earthRadius/1e3,kilometres:r.earthRadius/1e3,meters:r.earthRadius,metres:r.earthRadius,miles:r.earthRadius/1609.344,millimeters:1e3*r.earthRadius,millimetres:1e3*r.earthRadius,nauticalmiles:r.earthRadius/1852,radians:1,yards:r.earthRadius/1.0936},r.unitsFactors={centimeters:100,centimetres:100,degrees:1/111325,feet:3.28084,inches:39.37,kilometers:.001,kilometres:.001,meters:1,metres:1,miles:1/1609.344,millimeters:1e3,millimetres:1e3,nauticalmiles:1/1852,radians:1/r.earthRadius,yards:1/1.0936},r.areaFactors={acres:247105e-9,centimeters:1e4,centimetres:1e4,feet:10.763910417,inches:1550.003100006,kilometers:1e-6,kilometres:1e-6,meters:1,metres:1,miles:386e-9,millimeters:1e6,millimetres:1e6,yards:1.195990046},r.feature=n,r.geometry=function(t,e,r){switch(void 0===r&amp;&amp;(r={}),t){case&quot;Point&quot;:return i(e).geometry;case&quot;LineString&quot;:return o(e).geometry;case&quot;Polygon&quot;:return a(e).geometry;case&quot;MultiPoint&quot;:return c(e).geometry;case&quot;MultiLineString&quot;:return l(e).geometry;case&quot;MultiPolygon&quot;:return u(e).geometry;default:throw new Error(t+&quot; is invalid&quot;)}},r.point=i,r.points=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return i(t,e)})),r)},r.polygon=a,r.polygons=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return a(t,e)})),r)},r.lineString=o,r.lineStrings=function(t,e,r){return void 0===r&amp;&amp;(r={}),s(t.map((function(t){return o(t,e)})),r)},r.featureCollection=s,r.multiLineString=l,r.multiPoint=c,r.multiPolygon=u,r.geometryCollection=function(t,e,r){return void 0===r&amp;&amp;(r={}),n({type:&quot;GeometryCollection&quot;,geometries:t},e,r)},r.round=function(t,e){if(void 0===e&amp;&amp;(e=0),e&amp;&amp;!(e&gt;=0))throw new Error(&quot;precision must be a positive number&quot;);var r=Math.pow(10,e||0);return Math.round(t*r)/r},r.radiansToLength=f,r.lengthToRadians=h,r.lengthToDegrees=function(t,e){return p(h(t,e))},r.bearingToAzimuth=function(t){var e=t%360;return e&lt;0&amp;&amp;(e+=360),e},r.radiansToDegrees=p,r.degreesToRadians=function(t){return t%360*Math.PI/180},r.convertLength=function(t,e,r){if(void 0===e&amp;&amp;(e=&quot;kilometers&quot;),void 0===r&amp;&amp;(r=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;length must be a positive number&quot;);return f(h(t,e),r)},r.convertArea=function(t,e,n){if(void 0===e&amp;&amp;(e=&quot;meters&quot;),void 0===n&amp;&amp;(n=&quot;kilometers&quot;),!(t&gt;=0))throw new Error(&quot;area must be a positive number&quot;);var i=r.areaFactors[e];if(!i)throw new Error(&quot;invalid original units&quot;);var a=r.areaFactors[n];if(!a)throw new Error(&quot;invalid final units&quot;);return t/i*a},r.isNumber=d,r.isObject=function(t){return!!t&amp;&amp;t.constructor===Object},r.validateBBox=function(t){if(!t)throw new Error(&quot;bbox is required&quot;);if(!Array.isArray(t))throw new Error(&quot;bbox must be an Array&quot;);if(4!==t.length&amp;&amp;6!==t.length)throw new Error(&quot;bbox must be an Array of 4 or 6 numbers&quot;);t.forEach((function(t){if(!d(t))throw new Error(&quot;bbox must only contain numbers&quot;)}))},r.validateId=function(t){if(!t)throw new Error(&quot;id is required&quot;);if(-1===[&quot;string&quot;,&quot;number&quot;].indexOf(typeof t))throw new Error(&quot;id must be a number or a string&quot;)},r.radians2degrees=function(){throw new Error(&quot;method has been renamed to `radiansToDegrees`&quot;)},r.degrees2radians=function(){throw new Error(&quot;method has been renamed to `degreesToRadians`&quot;)},r.distanceToDegrees=function(){throw new Error(&quot;method has been renamed to `lengthToDegrees`&quot;)},r.distanceToRadians=function(){throw new Error(&quot;method has been renamed to `lengthToRadians`&quot;)},r.radiansToDistance=function(){throw new Error(&quot;method has been renamed to `radiansToLength`&quot;)},r.bearingToAngle=function(){throw new Error(&quot;method has been renamed to `bearingToAzimuth`&quot;)},r.convertDistance=function(){throw new Error(&quot;method has been renamed to `convertLength`&quot;)}},{}],63:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=t(&quot;@turf/helpers&quot;);function i(t,e,r){if(null!==t)for(var n,a,o,s,l,c,u,f,h=0,p=0,d=t.type,g=&quot;FeatureCollection&quot;===d,m=&quot;Feature&quot;===d,v=g?t.features.length:1,y=0;y&lt;v;y++){l=(f=!!(u=g?t.features[y].geometry:m?t.geometry:t)&amp;&amp;&quot;GeometryCollection&quot;===u.type)?u.geometries.length:1;for(var x=0;x&lt;l;x++){var b=0,_=0;if(null!==(s=f?u.geometries[x]:u)){c=s.coordinates;var w=s.type;switch(h=!r||&quot;Polygon&quot;!==w&amp;&amp;&quot;MultiPolygon&quot;!==w?0:1,w){case null:break;case&quot;Point&quot;:if(!1===e(c,p,y,b,_))return!1;p++,b++;break;case&quot;LineString&quot;:case&quot;MultiPoint&quot;:for(n=0;n&lt;c.length;n++){if(!1===e(c[n],p,y,b,_))return!1;p++,&quot;MultiPoint&quot;===w&amp;&amp;b++}&quot;LineString&quot;===w&amp;&amp;b++;break;case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:for(n=0;n&lt;c.length;n++){for(a=0;a&lt;c[n].length-h;a++){if(!1===e(c[n][a],p,y,b,_))return!1;p++}&quot;MultiLineString&quot;===w&amp;&amp;b++,&quot;Polygon&quot;===w&amp;&amp;_++}&quot;Polygon&quot;===w&amp;&amp;b++;break;case&quot;MultiPolygon&quot;:for(n=0;n&lt;c.length;n++){for(_=0,a=0;a&lt;c[n].length;a++){for(o=0;o&lt;c[n][a].length-h;o++){if(!1===e(c[n][a][o],p,y,b,_))return!1;p++}_++}b++}break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;s.geometries.length;n++)if(!1===i(s.geometries[n],e,r))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}}}}}function a(t,e){var r;switch(t.type){case&quot;FeatureCollection&quot;:for(r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r].properties,r);r++);break;case&quot;Feature&quot;:e(t.properties,0)}}function o(t,e){if(&quot;Feature&quot;===t.type)e(t,0);else if(&quot;FeatureCollection&quot;===t.type)for(var r=0;r&lt;t.features.length&amp;&amp;!1!==e(t.features[r],r);r++);}function s(t,e){var r,n,i,a,o,s,l,c,u,f,h=0,p=&quot;FeatureCollection&quot;===t.type,d=&quot;Feature&quot;===t.type,g=p?t.features.length:1;for(r=0;r&lt;g;r++){for(s=p?t.features[r].geometry:d?t.geometry:t,c=p?t.features[r].properties:d?t.properties:{},u=p?t.features[r].bbox:d?t.bbox:void 0,f=p?t.features[r].id:d?t.id:void 0,o=(l=!!s&amp;&amp;&quot;GeometryCollection&quot;===s.type)?s.geometries.length:1,i=0;i&lt;o;i++)if(null!==(a=l?s.geometries[i]:s))switch(a.type){case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;MultiPoint&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:if(!1===e(a,h,c,u,f))return!1;break;case&quot;GeometryCollection&quot;:for(n=0;n&lt;a.geometries.length;n++)if(!1===e(a.geometries[n],h,c,u,f))return!1;break;default:throw new Error(&quot;Unknown Geometry Type&quot;)}else if(!1===e(null,h,c,u,f))return!1;h++}}function l(t,e){s(t,(function(t,r,i,a,o){var s,l=null===t?null:t.type;switch(l){case null:case&quot;Point&quot;:case&quot;LineString&quot;:case&quot;Polygon&quot;:return!1!==e(n.feature(t,i,{bbox:a,id:o}),r,0)&amp;&amp;void 0}switch(l){case&quot;MultiPoint&quot;:s=&quot;Point&quot;;break;case&quot;MultiLineString&quot;:s=&quot;LineString&quot;;break;case&quot;MultiPolygon&quot;:s=&quot;Polygon&quot;}for(var c=0;c&lt;t.coordinates.length;c++){var u={type:s,coordinates:t.coordinates[c]};if(!1===e(n.feature(u,i),r,c))return!1}}))}function c(t,e){l(t,(function(t,r,a){var o=0;if(t.geometry){var s=t.geometry.type;if(&quot;Point&quot;!==s&amp;&amp;&quot;MultiPoint&quot;!==s){var l,c=0,u=0,f=0;return!1!==i(t,(function(i,s,h,p,d){if(void 0===l||r&gt;c||p&gt;u||d&gt;f)return l=i,c=r,u=p,f=d,void(o=0);var g=n.lineString([l,i],t.properties);if(!1===e(g,r,a,d,o))return!1;o++,l=i}))&amp;&amp;void 0}}}))}function u(t,e){if(!t)throw new Error(&quot;geojson is required&quot;);l(t,(function(t,r,i){if(null!==t.geometry){var a=t.geometry.type,o=t.geometry.coordinates;switch(a){case&quot;LineString&quot;:if(!1===e(t,r,i,0,0))return!1;break;case&quot;Polygon&quot;:for(var s=0;s&lt;o.length;s++)if(!1===e(n.lineString(o[s],t.properties),r,i,s))return!1}}}))}r.coordEach=i,r.coordReduce=function(t,e,r,n){var a=r;return i(t,(function(t,n,i,o,s){a=0===n&amp;&amp;void 0===r?t:e(a,t,n,i,o,s)}),n),a},r.propEach=a,r.propReduce=function(t,e,r){var n=r;return a(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.featureEach=o,r.featureReduce=function(t,e,r){var n=r;return o(t,(function(t,i){n=0===i&amp;&amp;void 0===r?t:e(n,t,i)})),n},r.coordAll=function(t){var e=[];return i(t,(function(t){e.push(t)})),e},r.geomEach=s,r.geomReduce=function(t,e,r){var n=r;return s(t,(function(t,i,a,o,s){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o,s)})),n},r.flattenEach=l,r.flattenReduce=function(t,e,r){var n=r;return l(t,(function(t,i,a){n=0===i&amp;&amp;0===a&amp;&amp;void 0===r?t:e(n,t,i,a)})),n},r.segmentEach=c,r.segmentReduce=function(t,e,r){var n=r,i=!1;return c(t,(function(t,a,o,s,l){n=!1===i&amp;&amp;void 0===r?t:e(n,t,a,o,s,l),i=!0})),n},r.lineEach=u,r.lineReduce=function(t,e,r){var n=r;return u(t,(function(t,i,a,o){n=0===i&amp;&amp;void 0===r?t:e(n,t,i,a,o)})),n},r.findSegment=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.segmentIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s-1),n.lineString([c[s],c[s+1]],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s-1),n.lineString([c[o][s],c[o][s+1]],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s-1),n.lineString([c[a][s],c[a][s+1]],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s-1),n.lineString([c[a][o][s],c[a][o][s+1]],l,e)}throw new Error(&quot;geojson is invalid&quot;)},r.findPoint=function(t,e){if(e=e||{},!n.isObject(e))throw new Error(&quot;options is invalid&quot;);var r,i=e.featureIndex||0,a=e.multiFeatureIndex||0,o=e.geometryIndex||0,s=e.coordIndex||0,l=e.properties;switch(t.type){case&quot;FeatureCollection&quot;:i&lt;0&amp;&amp;(i=t.features.length+i),l=l||t.features[i].properties,r=t.features[i].geometry;break;case&quot;Feature&quot;:l=l||t.properties,r=t.geometry;break;case&quot;Point&quot;:case&quot;MultiPoint&quot;:return null;case&quot;LineString&quot;:case&quot;Polygon&quot;:case&quot;MultiLineString&quot;:case&quot;MultiPolygon&quot;:r=t;break;default:throw new Error(&quot;geojson is invalid&quot;)}if(null===r)return null;var c=r.coordinates;switch(r.type){case&quot;Point&quot;:return n.point(c,l,e);case&quot;MultiPoint&quot;:return a&lt;0&amp;&amp;(a=c.length+a),n.point(c[a],l,e);case&quot;LineString&quot;:return s&lt;0&amp;&amp;(s=c.length+s),n.point(c[s],l,e);case&quot;Polygon&quot;:return o&lt;0&amp;&amp;(o=c.length+o),s&lt;0&amp;&amp;(s=c[o].length+s),n.point(c[o][s],l,e);case&quot;MultiLineString&quot;:return a&lt;0&amp;&amp;(a=c.length+a),s&lt;0&amp;&amp;(s=c[a].length+s),n.point(c[a][s],l,e);case&quot;MultiPolygon&quot;:return a&lt;0&amp;&amp;(a=c.length+a),o&lt;0&amp;&amp;(o=c[a].length+o),s&lt;0&amp;&amp;(s=c[a][o].length-s),n.point(c[a][o][s],l,e)}throw new Error(&quot;geojson is invalid&quot;)}},{&quot;@turf/helpers&quot;:62}],64:[function(t,e,r){&quot;use strict&quot;;var n=&quot;undefined&quot;==typeof WeakMap?t(&quot;weak-map&quot;):WeakMap,i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=new n;e.exports=function(t){var e=o.get(t),r=e&amp;&amp;(e._triangleBuffer.handle||e._triangleBuffer.buffer);if(!r||!t.isBuffer(r)){var n=i(t,new Float32Array([-1,-1,-1,4,4,-1]));(e=a(t,[{buffer:n,type:t.FLOAT,size:2}]))._triangleBuffer=n,o.set(t,e)}e.bind(),t.drawArrays(t.TRIANGLES,0,3),e.unbind()}},{&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358,&quot;weak-map&quot;:602}],65:[function(t,e,r){e.exports=function(t){var e=0,r=0,n=0,i=0;return t.map((function(t){var a=(t=t.slice())[0],o=a.toUpperCase();if(a!=o)switch(t[0]=o,a){case&quot;a&quot;:t[6]+=n,t[7]+=i;break;case&quot;v&quot;:t[1]+=i;break;case&quot;h&quot;:t[1]+=n;break;default:for(var s=1;s&lt;t.length;)t[s++]+=n,t[s++]+=i}switch(o){case&quot;Z&quot;:n=e,i=r;break;case&quot;H&quot;:n=t[1];break;case&quot;V&quot;:i=t[1];break;case&quot;M&quot;:n=e=t[1],i=r=t[2];break;default:n=t[t.length-2],i=t[t.length-1]}return t}))}},{}],66:[function(t,e,r){var n=t(&quot;pad-left&quot;);e.exports=function(t,e,r){e=&quot;number&quot;==typeof e?e:1,r=r||&quot;: &quot;;var i=t.split(/\r?\n/),a=String(i.length+e-1).length;return i.map((function(t,i){var o=i+e,s=String(o).length;return n(o,a-s)+r+t})).join(&quot;\n&quot;)}},{&quot;pad-left&quot;:502}],67:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[0];for(var r=t[0].length,n=[t[0]],a=[0],o=1;o&lt;e;++o)if(n.push(t[o]),i(n,r)){if(a.push(o),a.length===r+1)return a}else n.pop();return a};var n=t(&quot;robust-orientation&quot;);function i(t,e){for(var r=new Array(e+1),i=0;i&lt;t.length;++i)r[i]=t[i];for(i=0;i&lt;=t.length;++i){for(var a=t.length;a&lt;=e;++a){for(var o=new Array(e),s=0;s&lt;e;++s)o[s]=Math.pow(a+1-i,s);r[a]=o}if(n.apply(void 0,r))return!0}return!1}},{&quot;robust-orientation&quot;:548}],68:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return n(e).filter((function(r){for(var n=new Array(r.length),a=0;a&lt;r.length;++a)n[a]=e[r[a]];return i(n)*t&lt;1}))};var n=t(&quot;delaunay-triangulate&quot;),i=t(&quot;circumradius&quot;)},{circumradius:119,&quot;delaunay-triangulate&quot;:171}],69:[function(t,e,r){e.exports=function(t,e){return i(n(t,e))};var n=t(&quot;alpha-complex&quot;),i=t(&quot;simplicial-complex-boundary&quot;)},{&quot;alpha-complex&quot;:68,&quot;simplicial-complex-boundary&quot;:555}],70:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(!t||null==t.length)throw Error(&quot;Argument should be an array&quot;);e=null==e?1:Math.floor(e);for(var r=Array(2*e),n=0;n&lt;e;n++){for(var i=-1/0,a=1/0,o=n,s=t.length;o&lt;s;o+=e)t[o]&gt;i&amp;&amp;(i=t[o]),t[o]&lt;a&amp;&amp;(a=t[o]);r[n]=a,r[e+n]=i}return r}},{}],71:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;array-bounds&quot;);e.exports=function(t,e,r){if(!t||null==t.length)throw Error(&quot;Argument should be an array&quot;);null==e&amp;&amp;(e=1);null==r&amp;&amp;(r=n(t,e));for(var i=0;i&lt;e;i++){var a=r[e+i],o=r[i],s=i,l=t.length;if(a===1/0&amp;&amp;o===-1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===a?1:t[s]===o?0:.5;else if(a===1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===a?1:0;else if(o===-1/0)for(s=i;s&lt;l;s+=e)t[s]=t[s]===o?0:1;else{var c=a-o;for(s=i;s&lt;l;s+=e)isNaN(t[s])||(t[s]=0===c?.5:(t[s]-o)/c)}}return t}},{&quot;array-bounds&quot;:70}],72:[function(t,e,r){e.exports=function(t,e){var r=&quot;number&quot;==typeof t,n=&quot;number&quot;==typeof e;r&amp;&amp;!n?(e=t,t=0):r||n||(t=0,e=0);var i=(e|=0)-(t|=0);if(i&lt;0)throw new Error(&quot;array length must be positive&quot;);for(var a=new Array(i),o=0,s=t;o&lt;i;o++,s++)a[o]=s;return a}},{}],73:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;object-assign&quot;);
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh &lt;feross@feross.org&gt; &lt;http://feross.org&gt;
 * @license  MIT
 */function i(t,e){if(t===e)return 0;for(var r=t.length,n=e.length,i=0,a=Math.min(r,n);i&lt;a;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r&lt;n?-1:n&lt;r?1:0}function a(t){return r.Buffer&amp;&amp;&quot;function&quot;==typeof r.Buffer.isBuffer?r.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}var o=t(&quot;util/&quot;),s=Object.prototype.hasOwnProperty,l=Array.prototype.slice,c=&quot;foo&quot;===function(){}.name;function u(t){return Object.prototype.toString.call(t)}function f(t){return!a(t)&amp;&amp;(&quot;function&quot;==typeof r.ArrayBuffer&amp;&amp;(&quot;function&quot;==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&amp;&amp;(t instanceof DataView||!!(t.buffer&amp;&amp;t.buffer instanceof ArrayBuffer))))}var h=e.exports=y,p=/\s*function\s+([^\(\s]*)\s*/;function d(t){if(o.isFunction(t)){if(c)return t.name;var e=t.toString().match(p);return e&amp;&amp;e[1]}}function g(t,e){return&quot;string&quot;==typeof t?t.length&lt;e?t:t.slice(0,e):t}function m(t){if(c||!o.isFunction(t))return o.inspect(t);var e=d(t);return&quot;[Function&quot;+(e?&quot;: &quot;+e:&quot;&quot;)+&quot;]&quot;}function v(t,e,r,n,i){throw new h.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function y(t,e){t||v(t,!0,e,&quot;==&quot;,h.ok)}function x(t,e,r,n){if(t===e)return!0;if(a(t)&amp;&amp;a(e))return 0===i(t,e);if(o.isDate(t)&amp;&amp;o.isDate(e))return t.getTime()===e.getTime();if(o.isRegExp(t)&amp;&amp;o.isRegExp(e))return t.source===e.source&amp;&amp;t.global===e.global&amp;&amp;t.multiline===e.multiline&amp;&amp;t.lastIndex===e.lastIndex&amp;&amp;t.ignoreCase===e.ignoreCase;if(null!==t&amp;&amp;&quot;object&quot;==typeof t||null!==e&amp;&amp;&quot;object&quot;==typeof e){if(f(t)&amp;&amp;f(e)&amp;&amp;u(t)===u(e)&amp;&amp;!(t instanceof Float32Array||t instanceof Float64Array))return 0===i(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(a(t)!==a(e))return!1;var s=(n=n||{actual:[],expected:[]}).actual.indexOf(t);return-1!==s&amp;&amp;s===n.expected.indexOf(e)||(n.actual.push(t),n.expected.push(e),function(t,e,r,n){if(null==t||null==e)return!1;if(o.isPrimitive(t)||o.isPrimitive(e))return t===e;if(r&amp;&amp;Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=b(t),a=b(e);if(i&amp;&amp;!a||!i&amp;&amp;a)return!1;if(i)return t=l.call(t),e=l.call(e),x(t,e,r);var s,c,u=T(t),f=T(e);if(u.length!==f.length)return!1;for(u.sort(),f.sort(),c=u.length-1;c&gt;=0;c--)if(u[c]!==f[c])return!1;for(c=u.length-1;c&gt;=0;c--)if(s=u[c],!x(t[s],e[s],r,n))return!1;return!0}(t,e,r,n))}return r?t===e:t==e}function b(t){return&quot;[object Arguments]&quot;==Object.prototype.toString.call(t)}function _(t,e){if(!t||!e)return!1;if(&quot;[object RegExp]&quot;==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&amp;&amp;!0===e.call({},t)}function w(t,e,r,n){var i;if(&quot;function&quot;!=typeof e)throw new TypeError('&quot;block&quot; argument must be a function');&quot;string&quot;==typeof r&amp;&amp;(n=r,r=null),i=function(t){var e;try{t()}catch(t){e=t}return e}(e),n=(r&amp;&amp;r.name?&quot; (&quot;+r.name+&quot;).&quot;:&quot;.&quot;)+(n?&quot; &quot;+n:&quot;.&quot;),t&amp;&amp;!i&amp;&amp;v(i,r,&quot;Missing expected exception&quot;+n);var a=&quot;string&quot;==typeof n,s=!t&amp;&amp;i&amp;&amp;!r;if((!t&amp;&amp;o.isError(i)&amp;&amp;a&amp;&amp;_(i,r)||s)&amp;&amp;v(i,r,&quot;Got unwanted exception&quot;+n),t&amp;&amp;i&amp;&amp;r&amp;&amp;!_(i,r)||!t&amp;&amp;i)throw i}h.AssertionError=function(t){this.name=&quot;AssertionError&quot;,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=function(t){return g(m(t.actual),128)+&quot; &quot;+t.operator+&quot; &quot;+g(m(t.expected),128)}(this),this.generatedMessage=!0);var e=t.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var r=new Error;if(r.stack){var n=r.stack,i=d(e),a=n.indexOf(&quot;\n&quot;+i);if(a&gt;=0){var o=n.indexOf(&quot;\n&quot;,a+1);n=n.substring(o+1)}this.stack=n}}},o.inherits(h.AssertionError,Error),h.fail=v,h.ok=y,h.equal=function(t,e,r){t!=e&amp;&amp;v(t,e,r,&quot;==&quot;,h.equal)},h.notEqual=function(t,e,r){t==e&amp;&amp;v(t,e,r,&quot;!=&quot;,h.notEqual)},h.deepEqual=function(t,e,r){x(t,e,!1)||v(t,e,r,&quot;deepEqual&quot;,h.deepEqual)},h.deepStrictEqual=function(t,e,r){x(t,e,!0)||v(t,e,r,&quot;deepStrictEqual&quot;,h.deepStrictEqual)},h.notDeepEqual=function(t,e,r){x(t,e,!1)&amp;&amp;v(t,e,r,&quot;notDeepEqual&quot;,h.notDeepEqual)},h.notDeepStrictEqual=function t(e,r,n){x(e,r,!0)&amp;&amp;v(e,r,n,&quot;notDeepStrictEqual&quot;,t)},h.strictEqual=function(t,e,r){t!==e&amp;&amp;v(t,e,r,&quot;===&quot;,h.strictEqual)},h.notStrictEqual=function(t,e,r){t===e&amp;&amp;v(t,e,r,&quot;!==&quot;,h.notStrictEqual)},h.throws=function(t,e,r){w(!0,t,e,r)},h.doesNotThrow=function(t,e,r){w(!1,t,e,r)},h.ifError=function(t){if(t)throw t},h.strict=n((function t(e,r){e||v(e,!0,r,&quot;==&quot;,t)}),h,{equal:h.strictEqual,deepEqual:h.deepStrictEqual,notEqual:h.notStrictEqual,notDeepEqual:h.notDeepStrictEqual}),h.strict.strict=h.strict;var T=Object.keys||function(t){var e=[];for(var r in t)s.call(t,r)&amp;&amp;e.push(r);return e}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;object-assign&quot;:499,&quot;util/&quot;:76}],74:[function(t,e,r){&quot;function&quot;==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}},{}],75:[function(t,e,r){e.exports=function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;&quot;function&quot;==typeof t.copy&amp;&amp;&quot;function&quot;==typeof t.fill&amp;&amp;&quot;function&quot;==typeof t.readUInt8}},{}],76:[function(t,e,r){(function(e,n){(function(){var i=/%[sdj%]/g;r.format=function(t){if(!v(t)){for(var e=[],r=0;r&lt;arguments.length;r++)e.push(s(arguments[r]));return e.join(&quot; &quot;)}r=1;for(var n=arguments,a=n.length,o=String(t).replace(i,(function(t){if(&quot;%%&quot;===t)return&quot;%&quot;;if(r&gt;=a)return t;switch(t){case&quot;%s&quot;:return String(n[r++]);case&quot;%d&quot;:return Number(n[r++]);case&quot;%j&quot;:try{return JSON.stringify(n[r++])}catch(t){return&quot;[Circular]&quot;}default:return t}})),l=n[r];r&lt;a;l=n[++r])g(l)||!b(l)?o+=&quot; &quot;+l:o+=&quot; &quot;+s(l);return o},r.deprecate=function(t,i){if(y(n.process))return function(){return r.deprecate(t,i).apply(this,arguments)};if(!0===e.noDeprecation)return t;var a=!1;return function(){if(!a){if(e.throwDeprecation)throw new Error(i);e.traceDeprecation?console.trace(i):console.error(i),a=!0}return t.apply(this,arguments)}};var a,o={};function s(t,e){var n={seen:[],stylize:c};return arguments.length&gt;=3&amp;&amp;(n.depth=arguments[2]),arguments.length&gt;=4&amp;&amp;(n.colors=arguments[3]),d(e)?n.showHidden=e:e&amp;&amp;r._extend(n,e),y(n.showHidden)&amp;&amp;(n.showHidden=!1),y(n.depth)&amp;&amp;(n.depth=2),y(n.colors)&amp;&amp;(n.colors=!1),y(n.customInspect)&amp;&amp;(n.customInspect=!0),n.colors&amp;&amp;(n.stylize=l),u(n,t,n.depth)}function l(t,e){var r=s.styles[e];return r?&quot;\x1b[&quot;+s.colors[r][0]+&quot;m&quot;+t+&quot;\x1b[&quot;+s.colors[r][1]+&quot;m&quot;:t}function c(t,e){return t}function u(t,e,n){if(t.customInspect&amp;&amp;e&amp;&amp;T(e.inspect)&amp;&amp;e.inspect!==r.inspect&amp;&amp;(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(n,t);return v(i)||(i=u(t,i,n)),i}var a=function(t,e){if(y(e))return t.stylize(&quot;undefined&quot;,&quot;undefined&quot;);if(v(e)){var r=&quot;'&quot;+JSON.stringify(e).replace(/^&quot;|&quot;$/g,&quot;&quot;).replace(/'/g,&quot;\\'&quot;).replace(/\\&quot;/g,'&quot;')+&quot;'&quot;;return t.stylize(r,&quot;string&quot;)}if(m(e))return t.stylize(&quot;&quot;+e,&quot;number&quot;);if(d(e))return t.stylize(&quot;&quot;+e,&quot;boolean&quot;);if(g(e))return t.stylize(&quot;null&quot;,&quot;null&quot;)}(t,e);if(a)return a;var o=Object.keys(e),s=function(t){var e={};return t.forEach((function(t,r){e[t]=!0})),e}(o);if(t.showHidden&amp;&amp;(o=Object.getOwnPropertyNames(e)),w(e)&amp;&amp;(o.indexOf(&quot;message&quot;)&gt;=0||o.indexOf(&quot;description&quot;)&gt;=0))return f(e);if(0===o.length){if(T(e)){var l=e.name?&quot;: &quot;+e.name:&quot;&quot;;return t.stylize(&quot;[Function&quot;+l+&quot;]&quot;,&quot;special&quot;)}if(x(e))return t.stylize(RegExp.prototype.toString.call(e),&quot;regexp&quot;);if(_(e))return t.stylize(Date.prototype.toString.call(e),&quot;date&quot;);if(w(e))return f(e)}var c,b=&quot;&quot;,k=!1,M=[&quot;{&quot;,&quot;}&quot;];(p(e)&amp;&amp;(k=!0,M=[&quot;[&quot;,&quot;]&quot;]),T(e))&amp;&amp;(b=&quot; [Function&quot;+(e.name?&quot;: &quot;+e.name:&quot;&quot;)+&quot;]&quot;);return x(e)&amp;&amp;(b=&quot; &quot;+RegExp.prototype.toString.call(e)),_(e)&amp;&amp;(b=&quot; &quot;+Date.prototype.toUTCString.call(e)),w(e)&amp;&amp;(b=&quot; &quot;+f(e)),0!==o.length||k&amp;&amp;0!=e.length?n&lt;0?x(e)?t.stylize(RegExp.prototype.toString.call(e),&quot;regexp&quot;):t.stylize(&quot;[Object]&quot;,&quot;special&quot;):(t.seen.push(e),c=k?function(t,e,r,n,i){for(var a=[],o=0,s=e.length;o&lt;s;++o)E(e,String(o))?a.push(h(t,e,r,n,String(o),!0)):a.push(&quot;&quot;);return i.forEach((function(i){i.match(/^\d+$/)||a.push(h(t,e,r,n,i,!0))})),a}(t,e,n,s,o):o.map((function(r){return h(t,e,n,s,r,k)})),t.seen.pop(),function(t,e,r){if(t.reduce((function(t,e){return e.indexOf(&quot;\n&quot;)&gt;=0&amp;&amp;0,t+e.replace(/\u001b\[\d\d?m/g,&quot;&quot;).length+1}),0)&gt;60)return r[0]+(&quot;&quot;===e?&quot;&quot;:e+&quot;\n &quot;)+&quot; &quot;+t.join(&quot;,\n  &quot;)+&quot; &quot;+r[1];return r[0]+e+&quot; &quot;+t.join(&quot;, &quot;)+&quot; &quot;+r[1]}(c,b,M)):M[0]+b+M[1]}function f(t){return&quot;[&quot;+Error.prototype.toString.call(t)+&quot;]&quot;}function h(t,e,r,n,i,a){var o,s,l;if((l=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=l.set?t.stylize(&quot;[Getter/Setter]&quot;,&quot;special&quot;):t.stylize(&quot;[Getter]&quot;,&quot;special&quot;):l.set&amp;&amp;(s=t.stylize(&quot;[Setter]&quot;,&quot;special&quot;)),E(n,i)||(o=&quot;[&quot;+i+&quot;]&quot;),s||(t.seen.indexOf(l.value)&lt;0?(s=g(r)?u(t,l.value,null):u(t,l.value,r-1)).indexOf(&quot;\n&quot;)&gt;-1&amp;&amp;(s=a?s.split(&quot;\n&quot;).map((function(t){return&quot;  &quot;+t})).join(&quot;\n&quot;).substr(2):&quot;\n&quot;+s.split(&quot;\n&quot;).map((function(t){return&quot;   &quot;+t})).join(&quot;\n&quot;)):s=t.stylize(&quot;[Circular]&quot;,&quot;special&quot;)),y(o)){if(a&amp;&amp;i.match(/^\d+$/))return s;(o=JSON.stringify(&quot;&quot;+i)).match(/^&quot;([a-zA-Z_][a-zA-Z_0-9]*)&quot;$/)?(o=o.substr(1,o.length-2),o=t.stylize(o,&quot;name&quot;)):(o=o.replace(/'/g,&quot;\\'&quot;).replace(/\\&quot;/g,'&quot;').replace(/(^&quot;|&quot;$)/g,&quot;'&quot;),o=t.stylize(o,&quot;string&quot;))}return o+&quot;: &quot;+s}function p(t){return Array.isArray(t)}function d(t){return&quot;boolean&quot;==typeof t}function g(t){return null===t}function m(t){return&quot;number&quot;==typeof t}function v(t){return&quot;string&quot;==typeof t}function y(t){return void 0===t}function x(t){return b(t)&amp;&amp;&quot;[object RegExp]&quot;===k(t)}function b(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t}function _(t){return b(t)&amp;&amp;&quot;[object Date]&quot;===k(t)}function w(t){return b(t)&amp;&amp;(&quot;[object Error]&quot;===k(t)||t instanceof Error)}function T(t){return&quot;function&quot;==typeof t}function k(t){return Object.prototype.toString.call(t)}function M(t){return t&lt;10?&quot;0&quot;+t.toString(10):t.toString(10)}r.debuglog=function(t){if(y(a)&amp;&amp;(a=e.env.NODE_DEBUG||&quot;&quot;),t=t.toUpperCase(),!o[t])if(new RegExp(&quot;\\b&quot;+t+&quot;\\b&quot;,&quot;i&quot;).test(a)){var n=e.pid;o[t]=function(){var e=r.format.apply(r,arguments);console.error(&quot;%s %d: %s&quot;,t,n,e)}}else o[t]=function(){};return o[t]},r.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:&quot;cyan&quot;,number:&quot;yellow&quot;,boolean:&quot;yellow&quot;,undefined:&quot;grey&quot;,null:&quot;bold&quot;,string:&quot;green&quot;,date:&quot;magenta&quot;,regexp:&quot;red&quot;},r.isArray=p,r.isBoolean=d,r.isNull=g,r.isNullOrUndefined=function(t){return null==t},r.isNumber=m,r.isString=v,r.isSymbol=function(t){return&quot;symbol&quot;==typeof t},r.isUndefined=y,r.isRegExp=x,r.isObject=b,r.isDate=_,r.isError=w,r.isFunction=T,r.isPrimitive=function(t){return null===t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||&quot;symbol&quot;==typeof t||&quot;undefined&quot;==typeof t},r.isBuffer=t(&quot;./support/isBuffer&quot;);var A=[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;];function S(){var t=new Date,e=[M(t.getHours()),M(t.getMinutes()),M(t.getSeconds())].join(&quot;:&quot;);return[t.getDate(),A[t.getMonth()],e].join(&quot; &quot;)}function E(t,e){return Object.prototype.hasOwnProperty.call(t,e)}r.log=function(){console.log(&quot;%s - %s&quot;,S(),r.format.apply(r,arguments))},r.inherits=t(&quot;inherits&quot;),r._extend=function(t,e){if(!e||!b(e))return t;for(var r=Object.keys(e),n=r.length;n--;)t[r[n]]=e[r[n]];return t}}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;./support/isBuffer&quot;:75,_process:526,inherits:74}],77:[function(t,e,r){e.exports=function(t){return atob(t)}},{}],78:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=e.length,a=new Array(r+1),o=0;o&lt;r;++o){for(var s=new Array(r+1),l=0;l&lt;=r;++l)s[l]=t[l][o];a[o]=s}a[r]=new Array(r+1);for(o=0;o&lt;=r;++o)a[r][o]=1;var c=new Array(r+1);for(o=0;o&lt;r;++o)c[o]=e[o];c[r]=1;var u=n(a,c),f=i(u[r+1]);0===f&amp;&amp;(f=1);var h=new Array(r+1);for(o=0;o&lt;=r;++o)h[o]=i(u[o])/f;return h};var n=t(&quot;robust-linear-solve&quot;);function i(t){for(var e=0,r=0;r&lt;t.length;++r)e+=t[r];return e}},{&quot;robust-linear-solve&quot;:547}],79:[function(t,e,r){&quot;use strict&quot;;r.byteLength=function(t){var e=c(t),r=e[0],n=e[1];return 3*(r+n)/4-n},r.toByteArray=function(t){var e,r,n=c(t),o=n[0],s=n[1],l=new a(function(t,e,r){return 3*(e+r)/4-r}(0,o,s)),u=0,f=s&gt;0?o-4:o;for(r=0;r&lt;f;r+=4)e=i[t.charCodeAt(r)]&lt;&lt;18|i[t.charCodeAt(r+1)]&lt;&lt;12|i[t.charCodeAt(r+2)]&lt;&lt;6|i[t.charCodeAt(r+3)],l[u++]=e&gt;&gt;16&amp;255,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e;2===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;2|i[t.charCodeAt(r+1)]&gt;&gt;4,l[u++]=255&amp;e);1===s&amp;&amp;(e=i[t.charCodeAt(r)]&lt;&lt;10|i[t.charCodeAt(r+1)]&lt;&lt;4|i[t.charCodeAt(r+2)]&gt;&gt;2,l[u++]=e&gt;&gt;8&amp;255,l[u++]=255&amp;e);return l},r.fromByteArray=function(t){for(var e,r=t.length,i=r%3,a=[],o=0,s=r-i;o&lt;s;o+=16383)a.push(u(t,o,o+16383&gt;s?s:o+16383));1===i?(e=t[r-1],a.push(n[e&gt;&gt;2]+n[e&lt;&lt;4&amp;63]+&quot;==&quot;)):2===i&amp;&amp;(e=(t[r-2]&lt;&lt;8)+t[r-1],a.push(n[e&gt;&gt;10]+n[e&gt;&gt;4&amp;63]+n[e&lt;&lt;2&amp;63]+&quot;=&quot;));return a.join(&quot;&quot;)};for(var n=[],i=[],a=&quot;undefined&quot;!=typeof Uint8Array?Uint8Array:Array,o=&quot;ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/&quot;,s=0,l=o.length;s&lt;l;++s)n[s]=o[s],i[o.charCodeAt(s)]=s;function c(t){var e=t.length;if(e%4&gt;0)throw new Error(&quot;Invalid string. Length must be a multiple of 4&quot;);var r=t.indexOf(&quot;=&quot;);return-1===r&amp;&amp;(r=e),[r,r===e?0:4-r%4]}function u(t,e,r){for(var i,a,o=[],s=e;s&lt;r;s+=3)i=(t[s]&lt;&lt;16&amp;16711680)+(t[s+1]&lt;&lt;8&amp;65280)+(255&amp;t[s+2]),o.push(n[(a=i)&gt;&gt;18&amp;63]+n[a&gt;&gt;12&amp;63]+n[a&gt;&gt;6&amp;63]+n[63&amp;a]);return o.join(&quot;&quot;)}i[&quot;-&quot;.charCodeAt(0)]=62,i[&quot;_&quot;.charCodeAt(0)]=63},{}],80:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]).add(e[0].mul(t[1])),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:90}],81:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t[0].mul(e[1]).cmp(e[0].mul(t[1]))}},{}],82:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]),t[1].mul(e[0]))}},{&quot;./lib/rationalize&quot;:90}],83:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-rat&quot;),i=t(&quot;./lib/is-bn&quot;),a=t(&quot;./lib/num-to-bn&quot;),o=t(&quot;./lib/str-to-bn&quot;),s=t(&quot;./lib/rationalize&quot;),l=t(&quot;./div&quot;);e.exports=function t(e,r){if(n(e))return r?l(e,t(r)):[e[0].clone(),e[1].clone()];var c,u,f=0;if(i(e))c=e.clone();else if(&quot;string&quot;==typeof e)c=o(e);else{if(0===e)return[a(0),a(1)];if(e===Math.floor(e))c=a(e);else{for(;e!==Math.floor(e);)e*=Math.pow(2,256),f-=256;c=a(e)}}if(n(r))c.mul(r[1]),u=r[0].clone();else if(i(r))u=r.clone();else if(&quot;string&quot;==typeof r)u=o(r);else if(r)if(r===Math.floor(r))u=a(r);else{for(;r!==Math.floor(r);)r*=Math.pow(2,256),f+=256;u=a(r)}else u=a(1);f&gt;0?c=c.ushln(f):f&lt;0&amp;&amp;(u=u.ushln(-f));return s(c,u)}},{&quot;./div&quot;:82,&quot;./is-rat&quot;:84,&quot;./lib/is-bn&quot;:88,&quot;./lib/num-to-bn&quot;:89,&quot;./lib/rationalize&quot;:90,&quot;./lib/str-to-bn&quot;:91}],84:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/is-bn&quot;);e.exports=function(t){return Array.isArray(t)&amp;&amp;2===t.length&amp;&amp;n(t[0])&amp;&amp;n(t[1])}},{&quot;./lib/is-bn&quot;:88}],85:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;);e.exports=function(t){return t.cmp(new n(0))}},{&quot;bn.js&quot;:99}],86:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./bn-sign&quot;);e.exports=function(t){var e=t.length,r=t.words,i=0;if(1===e)i=r[0];else if(2===e)i=r[0]+67108864*r[1];else for(var a=0;a&lt;e;a++){var o=r[a];i+=o*Math.pow(67108864,a)}return n(t)*i}},{&quot;./bn-sign&quot;:85}],87:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;double-bits&quot;),i=t(&quot;bit-twiddle&quot;).countTrailingZeros;e.exports=function(t){var e=i(n.lo(t));if(e&lt;32)return e;var r=i(n.hi(t));if(r&gt;20)return 52;return r+32}},{&quot;bit-twiddle&quot;:97,&quot;double-bits&quot;:173}],88:[function(t,e,r){&quot;use strict&quot;;t(&quot;bn.js&quot;);e.exports=function(t){return t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;Boolean(t.words)}},{&quot;bn.js&quot;:99}],89:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;),i=t(&quot;double-bits&quot;);e.exports=function(t){var e=i.exponent(t);return e&lt;52?new n(t):new n(t*Math.pow(2,52-e)).ushln(e-52)}},{&quot;bn.js&quot;:99,&quot;double-bits&quot;:173}],90:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./num-to-bn&quot;),i=t(&quot;./bn-sign&quot;);e.exports=function(t,e){var r=i(t),a=i(e);if(0===r)return[n(0),n(1)];if(0===a)return[n(0),n(0)];a&lt;0&amp;&amp;(t=t.neg(),e=e.neg());var o=t.gcd(e);if(o.cmpn(1))return[t.div(o),e.div(o)];return[t,e]}},{&quot;./bn-sign&quot;:85,&quot;./num-to-bn&quot;:89}],91:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bn.js&quot;);e.exports=function(t){return new n(t)}},{&quot;bn.js&quot;:99}],92:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[0]),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:90}],93:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/bn-sign&quot;);e.exports=function(t){return n(t[0])*n(t[1])}},{&quot;./lib/bn-sign&quot;:85}],94:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/rationalize&quot;);e.exports=function(t,e){return n(t[0].mul(e[1]).sub(t[1].mul(e[0])),t[1].mul(e[1]))}},{&quot;./lib/rationalize&quot;:90}],95:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/bn-to-num&quot;),i=t(&quot;./lib/ctz&quot;);e.exports=function(t){var e=t[0],r=t[1];if(0===e.cmpn(0))return 0;var a=e.abs().divmod(r.abs()),o=a.div,s=n(o),l=a.mod,c=e.negative!==r.negative?-1:1;if(0===l.cmpn(0))return c*s;if(s){var u=i(s)+4,f=n(l.ushln(u).divRound(r));return c*(s+f*Math.pow(2,-u))}var h=r.bitLength()-l.bitLength()+53;f=n(l.ushln(h).divRound(r));return h&lt;1023?c*f*Math.pow(2,-h):(f*=Math.pow(2,-1023),c*f*Math.pow(2,1023-h))}},{&quot;./lib/bn-to-num&quot;:86,&quot;./lib/ctz&quot;:87}],96:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i){var a=[&quot;function &quot;,t,&quot;(a,l,h,&quot;,n.join(&quot;,&quot;),&quot;){&quot;,i?&quot;&quot;:&quot;var i=&quot;,r?&quot;l-1&quot;:&quot;h+1&quot;,&quot;;while(l&lt;=h){var m=(l+h)&gt;&gt;&gt;1,x=a[m]&quot;];return i?e.indexOf(&quot;c&quot;)&lt;0?a.push(&quot;;if(x===y){return m}else if(x&lt;=y){&quot;):a.push(&quot;;var p=c(x,y);if(p===0){return m}else if(p&lt;=0){&quot;):a.push(&quot;;if(&quot;,e,&quot;){i=m;&quot;),r?a.push(&quot;l=m+1}else{h=m-1}&quot;):a.push(&quot;h=m-1}else{l=m+1}&quot;),a.push(&quot;}&quot;),i?a.push(&quot;return -1};&quot;):a.push(&quot;return i};&quot;),a.join(&quot;&quot;)}function i(t,e,r,i){return new Function([n(&quot;A&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],i),n(&quot;P&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],i),&quot;function dispatchBsearch&quot;,r,&quot;(a,y,c,l,h){if(typeof(c)==='function'){return P(a,(l===void 0)?0:l|0,(h===void 0)?a.length-1:h|0,y,c)}else{return A(a,(c===void 0)?0:c|0,(l===void 0)?a.length-1:l|0,y)}}return dispatchBsearch&quot;,r].join(&quot;&quot;))()}e.exports={ge:i(&quot;&gt;=&quot;,!1,&quot;GE&quot;),gt:i(&quot;&gt;&quot;,!1,&quot;GT&quot;),lt:i(&quot;&lt;&quot;,!0,&quot;LT&quot;),le:i(&quot;&lt;=&quot;,!0,&quot;LE&quot;),eq:i(&quot;-&quot;,!0,&quot;EQ&quot;,!0)}},{}],97:[function(t,e,r){&quot;use strict&quot;;function n(t){var e=32;return(t&amp;=-t)&amp;&amp;e--,65535&amp;t&amp;&amp;(e-=16),16711935&amp;t&amp;&amp;(e-=8),252645135&amp;t&amp;&amp;(e-=4),858993459&amp;t&amp;&amp;(e-=2),1431655765&amp;t&amp;&amp;(e-=1),e}r.INT_BITS=32,r.INT_MAX=2147483647,r.INT_MIN=-1&lt;&lt;31,r.sign=function(t){return(t&gt;0)-(t&lt;0)},r.abs=function(t){var e=t&gt;&gt;31;return(t^e)-e},r.min=function(t,e){return e^(t^e)&amp;-(t&lt;e)},r.max=function(t,e){return t^(t^e)&amp;-(t&lt;e)},r.isPow2=function(t){return!(t&amp;t-1||!t)},r.log2=function(t){var e,r;return e=(t&gt;65535)&lt;&lt;4,e|=r=((t&gt;&gt;&gt;=e)&gt;255)&lt;&lt;3,e|=r=((t&gt;&gt;&gt;=r)&gt;15)&lt;&lt;2,(e|=r=((t&gt;&gt;&gt;=r)&gt;3)&lt;&lt;1)|(t&gt;&gt;&gt;=r)&gt;&gt;1},r.log10=function(t){return t&gt;=1e9?9:t&gt;=1e8?8:t&gt;=1e7?7:t&gt;=1e6?6:t&gt;=1e5?5:t&gt;=1e4?4:t&gt;=1e3?3:t&gt;=100?2:t&gt;=10?1:0},r.popCount=function(t){return 16843009*((t=(858993459&amp;(t-=t&gt;&gt;&gt;1&amp;1431655765))+(t&gt;&gt;&gt;2&amp;858993459))+(t&gt;&gt;&gt;4)&amp;252645135)&gt;&gt;&gt;24},r.countTrailingZeros=n,r.nextPow2=function(t){return t+=0===t,--t,t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)+1},r.prevPow2=function(t){return t|=t&gt;&gt;&gt;1,t|=t&gt;&gt;&gt;2,t|=t&gt;&gt;&gt;4,t|=t&gt;&gt;&gt;8,(t|=t&gt;&gt;&gt;16)-(t&gt;&gt;&gt;1)},r.parity=function(t){return t^=t&gt;&gt;&gt;16,t^=t&gt;&gt;&gt;8,t^=t&gt;&gt;&gt;4,27030&gt;&gt;&gt;(t&amp;=15)&amp;1};var i=new Array(256);!function(t){for(var e=0;e&lt;256;++e){var r=e,n=e,i=7;for(r&gt;&gt;&gt;=1;r;r&gt;&gt;&gt;=1)n&lt;&lt;=1,n|=1&amp;r,--i;t[e]=n&lt;&lt;i&amp;255}}(i),r.reverse=function(t){return i[255&amp;t]&lt;&lt;24|i[t&gt;&gt;&gt;8&amp;255]&lt;&lt;16|i[t&gt;&gt;&gt;16&amp;255]&lt;&lt;8|i[t&gt;&gt;&gt;24&amp;255]},r.interleave2=function(t,e){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t&amp;=65535)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e&amp;=65535)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1},r.deinterleave2=function(t,e){return(t=65535&amp;((t=16711935&amp;((t=252645135&amp;((t=858993459&amp;((t=t&gt;&gt;&gt;e&amp;1431655765)|t&gt;&gt;&gt;1))|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;16))&lt;&lt;16&gt;&gt;16},r.interleave3=function(t,e,r){return t=1227133513&amp;((t=3272356035&amp;((t=251719695&amp;((t=4278190335&amp;((t&amp;=1023)|t&lt;&lt;16))|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2),(t|=(e=1227133513&amp;((e=3272356035&amp;((e=251719695&amp;((e=4278190335&amp;((e&amp;=1023)|e&lt;&lt;16))|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))&lt;&lt;1)|(r=1227133513&amp;((r=3272356035&amp;((r=251719695&amp;((r=4278190335&amp;((r&amp;=1023)|r&lt;&lt;16))|r&lt;&lt;8))|r&lt;&lt;4))|r&lt;&lt;2))&lt;&lt;2},r.deinterleave3=function(t,e){return(t=1023&amp;((t=4278190335&amp;((t=251719695&amp;((t=3272356035&amp;((t=t&gt;&gt;&gt;e&amp;1227133513)|t&gt;&gt;&gt;2))|t&gt;&gt;&gt;4))|t&gt;&gt;&gt;8))|t&gt;&gt;&gt;16))&lt;&lt;22&gt;&gt;22},r.nextCombination=function(t){var e=t|t-1;return e+1|(~e&amp;-~e)-1&gt;&gt;&gt;n(t)+1}},{}],98:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;clamp&quot;);e.exports=function(t,e){e||(e={});var r,o,s,l,c,u,f,h,p,d,g,m=null==e.cutoff?.25:e.cutoff,v=null==e.radius?8:e.radius,y=e.channel||0;if(ArrayBuffer.isView(t)||Array.isArray(t)){if(!e.width||!e.height)throw Error(&quot;For raw data width and height should be provided by options&quot;);r=e.width,o=e.height,l=t,u=e.stride?e.stride:Math.floor(t.length/r/o)}else window.HTMLCanvasElement&amp;&amp;t instanceof window.HTMLCanvasElement?(f=(h=t).getContext(&quot;2d&quot;),r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.CanvasRenderingContext2D&amp;&amp;t instanceof window.CanvasRenderingContext2D?(h=t.canvas,f=t,r=h.width,o=h.height,p=f.getImageData(0,0,r,o),l=p.data,u=4):window.ImageData&amp;&amp;t instanceof window.ImageData&amp;&amp;(p=t,r=t.width,o=t.height,l=p.data,u=4);if(s=Math.max(r,o),window.Uint8ClampedArray&amp;&amp;l instanceof window.Uint8ClampedArray||window.Uint8Array&amp;&amp;l instanceof window.Uint8Array)for(c=l,l=Array(r*o),d=0,g=c.length;d&lt;g;d++)l[d]=c[d*u+y]/255;else if(1!==u)throw Error(&quot;Raw data can have only 1 value per pixel&quot;);var x=Array(r*o),b=Array(r*o),_=Array(s),w=Array(s),T=Array(s+1),k=Array(s);for(d=0,g=r*o;d&lt;g;d++){var M=l[d];x[d]=1===M?0:0===M?i:Math.pow(Math.max(0,.5-M),2),b[d]=1===M?i:0===M?0:Math.pow(Math.max(0,M-.5),2)}a(x,r,o,_,w,k,T),a(b,r,o,_,w,k,T);var A=window.Float32Array?new Float32Array(r*o):new Array(r*o);for(d=0,g=r*o;d&lt;g;d++)A[d]=n(1-((x[d]-b[d])/v+m),0,1);return A};var i=1e20;function a(t,e,r,n,i,a,s){for(var l=0;l&lt;e;l++){for(var c=0;c&lt;r;c++)n[c]=t[c*e+l];for(o(n,i,a,s,r),c=0;c&lt;r;c++)t[c*e+l]=i[c]}for(c=0;c&lt;r;c++){for(l=0;l&lt;e;l++)n[l]=t[c*e+l];for(o(n,i,a,s,e),l=0;l&lt;e;l++)t[c*e+l]=Math.sqrt(i[l])}}function o(t,e,r,n,a){r[0]=0,n[0]=-i,n[1]=+i;for(var o=1,s=0;o&lt;a;o++){for(var l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);l&lt;=n[s];)s--,l=(t[o]+o*o-(t[r[s]]+r[s]*r[s]))/(2*o-2*r[s]);r[++s]=o,n[s]=l,n[s+1]=+i}for(o=0,s=0;o&lt;a;o++){for(;n[s+1]&lt;o;)s++;e[o]=(o-r[s])*(o-r[s])+t[r[s]]}}},{clamp:120}],99:[function(t,e,r){!function(e,r){&quot;use strict&quot;;function n(t,e){if(!t)throw new Error(e||&quot;Assertion failed&quot;)}function i(t,e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}function a(t,e,r){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&amp;&amp;(&quot;le&quot;!==e&amp;&amp;&quot;be&quot;!==e||(r=e,e=10),this._init(t||0,e||10,r||&quot;be&quot;))}var o;&quot;object&quot;==typeof e?e.exports=a:r.BN=a,a.BN=a,a.wordSize=26;try{o=t(&quot;buffer&quot;).Buffer}catch(t){}function s(t,e,r){for(var n=0,i=Math.min(t.length,r),a=e;a&lt;i;a++){var o=t.charCodeAt(a)-48;n&lt;&lt;=4,n|=o&gt;=49&amp;&amp;o&lt;=54?o-49+10:o&gt;=17&amp;&amp;o&lt;=22?o-17+10:15&amp;o}return n}function l(t,e,r,n){for(var i=0,a=Math.min(t.length,r),o=e;o&lt;a;o++){var s=t.charCodeAt(o)-48;i*=n,i+=s&gt;=49?s-49+10:s&gt;=17?s-17+10:s}return i}a.isBN=function(t){return t instanceof a||null!==t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;t.constructor.wordSize===a.wordSize&amp;&amp;Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)&gt;0?t:e},a.min=function(t,e){return t.cmp(e)&lt;0?t:e},a.prototype._init=function(t,e,r){if(&quot;number&quot;==typeof t)return this._initNumber(t,e,r);if(&quot;object&quot;==typeof t)return this._initArray(t,e,r);&quot;hex&quot;===e&amp;&amp;(e=16),n(e===(0|e)&amp;&amp;e&gt;=2&amp;&amp;e&lt;=36);var i=0;&quot;-&quot;===(t=t.toString().replace(/\s+/g,&quot;&quot;))[0]&amp;&amp;i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),&quot;-&quot;===t[0]&amp;&amp;(this.negative=1),this.strip(),&quot;le&quot;===r&amp;&amp;this._initArray(this.toArray(),e,r)},a.prototype._initNumber=function(t,e,r){t&lt;0&amp;&amp;(this.negative=1,t=-t),t&lt;67108864?(this.words=[67108863&amp;t],this.length=1):t&lt;4503599627370496?(this.words=[67108863&amp;t,t/67108864&amp;67108863],this.length=2):(n(t&lt;9007199254740992),this.words=[67108863&amp;t,t/67108864&amp;67108863,1],this.length=3),&quot;le&quot;===r&amp;&amp;this._initArray(this.toArray(),e,r)},a.prototype._initArray=function(t,e,r){if(n(&quot;number&quot;==typeof t.length),t.length&lt;=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i&lt;this.length;i++)this.words[i]=0;var a,o,s=0;if(&quot;be&quot;===r)for(i=t.length-1,a=0;i&gt;=0;i-=3)o=t[i]|t[i-1]&lt;&lt;8|t[i-2]&lt;&lt;16,this.words[a]|=o&lt;&lt;s&amp;67108863,this.words[a+1]=o&gt;&gt;&gt;26-s&amp;67108863,(s+=24)&gt;=26&amp;&amp;(s-=26,a++);else if(&quot;le&quot;===r)for(i=0,a=0;i&lt;t.length;i+=3)o=t[i]|t[i+1]&lt;&lt;8|t[i+2]&lt;&lt;16,this.words[a]|=o&lt;&lt;s&amp;67108863,this.words[a+1]=o&gt;&gt;&gt;26-s&amp;67108863,(s+=24)&gt;=26&amp;&amp;(s-=26,a++);return this.strip()},a.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r&lt;this.length;r++)this.words[r]=0;var n,i,a=0;for(r=t.length-6,n=0;r&gt;=e;r-=6)i=s(t,r,r+6),this.words[n]|=i&lt;&lt;a&amp;67108863,this.words[n+1]|=i&gt;&gt;&gt;26-a&amp;4194303,(a+=24)&gt;=26&amp;&amp;(a-=26,n++);r+6!==e&amp;&amp;(i=s(t,e,r+6),this.words[n]|=i&lt;&lt;a&amp;67108863,this.words[n+1]|=i&gt;&gt;&gt;26-a&amp;4194303),this.strip()},a.prototype._parseBase=function(t,e,r){this.words=[0],this.length=1;for(var n=0,i=1;i&lt;=67108863;i*=e)n++;n--,i=i/e|0;for(var a=t.length-r,o=a%n,s=Math.min(a,a-o)+r,c=0,u=r;u&lt;s;u+=n)c=l(t,u,u+n,e),this.imuln(i),this.words[0]+c&lt;67108864?this.words[0]+=c:this._iaddn(c);if(0!==o){var f=1;for(c=l(t,u,t.length,e),u=0;u&lt;o;u++)f*=e;this.imuln(f),this.words[0]+c&lt;67108864?this.words[0]+=c:this._iaddn(c)}},a.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e&lt;this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},a.prototype.clone=function(){var t=new a(null);return this.copy(t),t},a.prototype._expand=function(t){for(;this.length&lt;t;)this.words[this.length++]=0;return this},a.prototype.strip=function(){for(;this.length&gt;1&amp;&amp;0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&amp;&amp;0===this.words[0]&amp;&amp;(this.negative=0),this},a.prototype.inspect=function(){return(this.red?&quot;&lt;BN-R: &quot;:&quot;&lt;BN: &quot;)+this.toString(16)+&quot;&gt;&quot;};var c=[&quot;&quot;,&quot;0&quot;,&quot;00&quot;,&quot;000&quot;,&quot;0000&quot;,&quot;00000&quot;,&quot;000000&quot;,&quot;0000000&quot;,&quot;00000000&quot;,&quot;000000000&quot;,&quot;0000000000&quot;,&quot;00000000000&quot;,&quot;000000000000&quot;,&quot;0000000000000&quot;,&quot;00000000000000&quot;,&quot;000000000000000&quot;,&quot;0000000000000000&quot;,&quot;00000000000000000&quot;,&quot;000000000000000000&quot;,&quot;0000000000000000000&quot;,&quot;00000000000000000000&quot;,&quot;000000000000000000000&quot;,&quot;0000000000000000000000&quot;,&quot;00000000000000000000000&quot;,&quot;000000000000000000000000&quot;,&quot;0000000000000000000000000&quot;],u=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(t,e,r){r.negative=e.negative^t.negative;var n=t.length+e.length|0;r.length=n,n=n-1|0;var i=0|t.words[0],a=0|e.words[0],o=i*a,s=67108863&amp;o,l=o/67108864|0;r.words[0]=s;for(var c=1;c&lt;n;c++){for(var u=l&gt;&gt;&gt;26,f=67108863&amp;l,h=Math.min(c,e.length-1),p=Math.max(0,c-t.length+1);p&lt;=h;p++){var d=c-p|0;u+=(o=(i=0|t.words[d])*(a=0|e.words[p])+f)/67108864|0,f=67108863&amp;o}r.words[c]=0|f,l=0|u}return 0!==l?r.words[c]=0|l:r.length--,r.strip()}a.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||&quot;hex&quot;===t){r=&quot;&quot;;for(var i=0,a=0,o=0;o&lt;this.length;o++){var s=this.words[o],l=(16777215&amp;(s&lt;&lt;i|a)).toString(16);r=0!==(a=s&gt;&gt;&gt;24-i&amp;16777215)||o!==this.length-1?c[6-l.length]+l+r:l+r,(i+=2)&gt;=26&amp;&amp;(i-=26,o--)}for(0!==a&amp;&amp;(r=a.toString(16)+r);r.length%e!=0;)r=&quot;0&quot;+r;return 0!==this.negative&amp;&amp;(r=&quot;-&quot;+r),r}if(t===(0|t)&amp;&amp;t&gt;=2&amp;&amp;t&lt;=36){var h=u[t],p=f[t];r=&quot;&quot;;var d=this.clone();for(d.negative=0;!d.isZero();){var g=d.modn(p).toString(t);r=(d=d.idivn(p)).isZero()?g+r:c[h-g.length]+g+r}for(this.isZero()&amp;&amp;(r=&quot;0&quot;+r);r.length%e!=0;)r=&quot;0&quot;+r;return 0!==this.negative&amp;&amp;(r=&quot;-&quot;+r),r}n(!1,&quot;Base should be between 2 and 36&quot;)},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&amp;&amp;1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length&gt;2&amp;&amp;n(!1,&quot;Number can only safely store up to 53 bits&quot;),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return n(&quot;undefined&quot;!=typeof o),this.toArrayLike(o,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,r){var i=this.byteLength(),a=r||Math.max(1,i);n(i&lt;=a,&quot;byte array longer than desired length&quot;),n(a&gt;0,&quot;Requested array length &lt;= 0&quot;),this.strip();var o,s,l=&quot;le&quot;===e,c=new t(a),u=this.clone();if(l){for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[s]=o;for(;s&lt;a;s++)c[s]=0}else{for(s=0;s&lt;a-i;s++)c[s]=0;for(s=0;!u.isZero();s++)o=u.andln(255),u.iushrn(8),c[a-s-1]=o}return c},Math.clz32?a.prototype._countBits=function(t){return 32-Math.clz32(t)}:a.prototype._countBits=function(t){var e=t,r=0;return e&gt;=4096&amp;&amp;(r+=13,e&gt;&gt;&gt;=13),e&gt;=64&amp;&amp;(r+=7,e&gt;&gt;&gt;=7),e&gt;=8&amp;&amp;(r+=4,e&gt;&gt;&gt;=4),e&gt;=2&amp;&amp;(r+=2,e&gt;&gt;&gt;=2),r+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,r=0;return 0==(8191&amp;e)&amp;&amp;(r+=13,e&gt;&gt;&gt;=13),0==(127&amp;e)&amp;&amp;(r+=7,e&gt;&gt;&gt;=7),0==(15&amp;e)&amp;&amp;(r+=4,e&gt;&gt;&gt;=4),0==(3&amp;e)&amp;&amp;(r+=2,e&gt;&gt;&gt;=2),0==(1&amp;e)&amp;&amp;r++,r},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e&lt;this.length;e++){var r=this._zeroBits(this.words[e]);if(t+=r,26!==r)break}return t},a.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},a.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},a.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},a.prototype.isNeg=function(){return 0!==this.negative},a.prototype.neg=function(){return this.clone().ineg()},a.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},a.prototype.iuor=function(t){for(;this.length&lt;t.length;)this.words[this.length++]=0;for(var e=0;e&lt;t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},a.prototype.ior=function(t){return n(0==(this.negative|t.negative)),this.iuor(t)},a.prototype.or=function(t){return this.length&gt;t.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length&gt;t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length&gt;t.length?t:this;for(var r=0;r&lt;e.length;r++)this.words[r]=this.words[r]&amp;t.words[r];return this.length=e.length,this.strip()},a.prototype.iand=function(t){return n(0==(this.negative|t.negative)),this.iuand(t)},a.prototype.and=function(t){return this.length&gt;t.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length&gt;t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,r;this.length&gt;t.length?(e=this,r=t):(e=t,r=this);for(var n=0;n&lt;r.length;n++)this.words[n]=e.words[n]^r.words[n];if(this!==e)for(;n&lt;e.length;n++)this.words[n]=e.words[n];return this.length=e.length,this.strip()},a.prototype.ixor=function(t){return n(0==(this.negative|t.negative)),this.iuxor(t)},a.prototype.xor=function(t){return this.length&gt;t.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length&gt;t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r&gt;0&amp;&amp;e--;for(var i=0;i&lt;e;i++)this.words[i]=67108863&amp;~this.words[i];return r&gt;0&amp;&amp;(this.words[i]=~this.words[i]&amp;67108863&gt;&gt;26-r),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1&lt;&lt;i:this.words[r]&amp;~(1&lt;&lt;i),this.strip()},a.prototype.iadd=function(t){var e,r,n;if(0!==this.negative&amp;&amp;0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&amp;&amp;0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length&gt;t.length?(r=this,n=t):(r=t,n=this);for(var i=0,a=0;a&lt;n.length;a++)e=(0|r.words[a])+(0|n.words[a])+i,this.words[a]=67108863&amp;e,i=e&gt;&gt;&gt;26;for(;0!==i&amp;&amp;a&lt;r.length;a++)e=(0|r.words[a])+i,this.words[a]=67108863&amp;e,i=e&gt;&gt;&gt;26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;a&lt;r.length;a++)this.words[a]=r.words[a];return this},a.prototype.add=function(t){var e;return 0!==t.negative&amp;&amp;0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&amp;&amp;0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length&gt;t.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i&gt;0?(r=this,n=t):(r=t,n=this);for(var a=0,o=0;o&lt;n.length;o++)a=(e=(0|r.words[o])-(0|n.words[o])+a)&gt;&gt;26,this.words[o]=67108863&amp;e;for(;0!==a&amp;&amp;o&lt;r.length;o++)a=(e=(0|r.words[o])+a)&gt;&gt;26,this.words[o]=67108863&amp;e;if(0===a&amp;&amp;o&lt;r.length&amp;&amp;r!==this)for(;o&lt;r.length;o++)this.words[o]=r.words[o];return this.length=Math.max(this.length,o),r!==this&amp;&amp;(this.negative=1),this.strip()},a.prototype.sub=function(t){return this.clone().isub(t)};var p=function(t,e,r){var n,i,a,o=t.words,s=e.words,l=r.words,c=0,u=0|o[0],f=8191&amp;u,h=u&gt;&gt;&gt;13,p=0|o[1],d=8191&amp;p,g=p&gt;&gt;&gt;13,m=0|o[2],v=8191&amp;m,y=m&gt;&gt;&gt;13,x=0|o[3],b=8191&amp;x,_=x&gt;&gt;&gt;13,w=0|o[4],T=8191&amp;w,k=w&gt;&gt;&gt;13,M=0|o[5],A=8191&amp;M,S=M&gt;&gt;&gt;13,E=0|o[6],C=8191&amp;E,L=E&gt;&gt;&gt;13,I=0|o[7],P=8191&amp;I,z=I&gt;&gt;&gt;13,O=0|o[8],D=8191&amp;O,R=O&gt;&gt;&gt;13,F=0|o[9],B=8191&amp;F,N=F&gt;&gt;&gt;13,j=0|s[0],U=8191&amp;j,V=j&gt;&gt;&gt;13,q=0|s[1],H=8191&amp;q,G=q&gt;&gt;&gt;13,Y=0|s[2],W=8191&amp;Y,X=Y&gt;&gt;&gt;13,Z=0|s[3],J=8191&amp;Z,K=Z&gt;&gt;&gt;13,Q=0|s[4],$=8191&amp;Q,tt=Q&gt;&gt;&gt;13,et=0|s[5],rt=8191&amp;et,nt=et&gt;&gt;&gt;13,it=0|s[6],at=8191&amp;it,ot=it&gt;&gt;&gt;13,st=0|s[7],lt=8191&amp;st,ct=st&gt;&gt;&gt;13,ut=0|s[8],ft=8191&amp;ut,ht=ut&gt;&gt;&gt;13,pt=0|s[9],dt=8191&amp;pt,gt=pt&gt;&gt;&gt;13;r.negative=t.negative^e.negative,r.length=19;var mt=(c+(n=Math.imul(f,U))|0)+((8191&amp;(i=(i=Math.imul(f,V))+Math.imul(h,U)|0))&lt;&lt;13)|0;c=((a=Math.imul(h,V))+(i&gt;&gt;&gt;13)|0)+(mt&gt;&gt;&gt;26)|0,mt&amp;=67108863,n=Math.imul(d,U),i=(i=Math.imul(d,V))+Math.imul(g,U)|0,a=Math.imul(g,V);var vt=(c+(n=n+Math.imul(f,H)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,G)|0)+Math.imul(h,H)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,G)|0)+(i&gt;&gt;&gt;13)|0)+(vt&gt;&gt;&gt;26)|0,vt&amp;=67108863,n=Math.imul(v,U),i=(i=Math.imul(v,V))+Math.imul(y,U)|0,a=Math.imul(y,V),n=n+Math.imul(d,H)|0,i=(i=i+Math.imul(d,G)|0)+Math.imul(g,H)|0,a=a+Math.imul(g,G)|0;var yt=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,X)|0)+Math.imul(h,W)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,X)|0)+(i&gt;&gt;&gt;13)|0)+(yt&gt;&gt;&gt;26)|0,yt&amp;=67108863,n=Math.imul(b,U),i=(i=Math.imul(b,V))+Math.imul(_,U)|0,a=Math.imul(_,V),n=n+Math.imul(v,H)|0,i=(i=i+Math.imul(v,G)|0)+Math.imul(y,H)|0,a=a+Math.imul(y,G)|0,n=n+Math.imul(d,W)|0,i=(i=i+Math.imul(d,X)|0)+Math.imul(g,W)|0,a=a+Math.imul(g,X)|0;var xt=(c+(n=n+Math.imul(f,J)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,K)|0)+Math.imul(h,J)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,K)|0)+(i&gt;&gt;&gt;13)|0)+(xt&gt;&gt;&gt;26)|0,xt&amp;=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,V))+Math.imul(k,U)|0,a=Math.imul(k,V),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,G)|0)+Math.imul(_,H)|0,a=a+Math.imul(_,G)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,X)|0)+Math.imul(y,W)|0,a=a+Math.imul(y,X)|0,n=n+Math.imul(d,J)|0,i=(i=i+Math.imul(d,K)|0)+Math.imul(g,J)|0,a=a+Math.imul(g,K)|0;var bt=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,tt)|0)+Math.imul(h,$)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,tt)|0)+(i&gt;&gt;&gt;13)|0)+(bt&gt;&gt;&gt;26)|0,bt&amp;=67108863,n=Math.imul(A,U),i=(i=Math.imul(A,V))+Math.imul(S,U)|0,a=Math.imul(S,V),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,G)|0)+Math.imul(k,H)|0,a=a+Math.imul(k,G)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(_,W)|0,a=a+Math.imul(_,X)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(y,J)|0,a=a+Math.imul(y,K)|0,n=n+Math.imul(d,$)|0,i=(i=i+Math.imul(d,tt)|0)+Math.imul(g,$)|0,a=a+Math.imul(g,tt)|0;var _t=(c+(n=n+Math.imul(f,rt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,nt)|0)+Math.imul(h,rt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,nt)|0)+(i&gt;&gt;&gt;13)|0)+(_t&gt;&gt;&gt;26)|0,_t&amp;=67108863,n=Math.imul(C,U),i=(i=Math.imul(C,V))+Math.imul(L,U)|0,a=Math.imul(L,V),n=n+Math.imul(A,H)|0,i=(i=i+Math.imul(A,G)|0)+Math.imul(S,H)|0,a=a+Math.imul(S,G)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,X)|0)+Math.imul(k,W)|0,a=a+Math.imul(k,X)|0,n=n+Math.imul(b,J)|0,i=(i=i+Math.imul(b,K)|0)+Math.imul(_,J)|0,a=a+Math.imul(_,K)|0,n=n+Math.imul(v,$)|0,i=(i=i+Math.imul(v,tt)|0)+Math.imul(y,$)|0,a=a+Math.imul(y,tt)|0,n=n+Math.imul(d,rt)|0,i=(i=i+Math.imul(d,nt)|0)+Math.imul(g,rt)|0,a=a+Math.imul(g,nt)|0;var wt=(c+(n=n+Math.imul(f,at)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ot)|0)+Math.imul(h,at)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ot)|0)+(i&gt;&gt;&gt;13)|0)+(wt&gt;&gt;&gt;26)|0,wt&amp;=67108863,n=Math.imul(P,U),i=(i=Math.imul(P,V))+Math.imul(z,U)|0,a=Math.imul(z,V),n=n+Math.imul(C,H)|0,i=(i=i+Math.imul(C,G)|0)+Math.imul(L,H)|0,a=a+Math.imul(L,G)|0,n=n+Math.imul(A,W)|0,i=(i=i+Math.imul(A,X)|0)+Math.imul(S,W)|0,a=a+Math.imul(S,X)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,K)|0)+Math.imul(k,J)|0,a=a+Math.imul(k,K)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(_,$)|0,a=a+Math.imul(_,tt)|0,n=n+Math.imul(v,rt)|0,i=(i=i+Math.imul(v,nt)|0)+Math.imul(y,rt)|0,a=a+Math.imul(y,nt)|0,n=n+Math.imul(d,at)|0,i=(i=i+Math.imul(d,ot)|0)+Math.imul(g,at)|0,a=a+Math.imul(g,ot)|0;var Tt=(c+(n=n+Math.imul(f,lt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ct)|0)+Math.imul(h,lt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ct)|0)+(i&gt;&gt;&gt;13)|0)+(Tt&gt;&gt;&gt;26)|0,Tt&amp;=67108863,n=Math.imul(D,U),i=(i=Math.imul(D,V))+Math.imul(R,U)|0,a=Math.imul(R,V),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,G)|0)+Math.imul(z,H)|0,a=a+Math.imul(z,G)|0,n=n+Math.imul(C,W)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(L,W)|0,a=a+Math.imul(L,X)|0,n=n+Math.imul(A,J)|0,i=(i=i+Math.imul(A,K)|0)+Math.imul(S,J)|0,a=a+Math.imul(S,K)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,tt)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,tt)|0,n=n+Math.imul(b,rt)|0,i=(i=i+Math.imul(b,nt)|0)+Math.imul(_,rt)|0,a=a+Math.imul(_,nt)|0,n=n+Math.imul(v,at)|0,i=(i=i+Math.imul(v,ot)|0)+Math.imul(y,at)|0,a=a+Math.imul(y,ot)|0,n=n+Math.imul(d,lt)|0,i=(i=i+Math.imul(d,ct)|0)+Math.imul(g,lt)|0,a=a+Math.imul(g,ct)|0;var kt=(c+(n=n+Math.imul(f,ft)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,ht)|0)+Math.imul(h,ft)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,ht)|0)+(i&gt;&gt;&gt;13)|0)+(kt&gt;&gt;&gt;26)|0,kt&amp;=67108863,n=Math.imul(B,U),i=(i=Math.imul(B,V))+Math.imul(N,U)|0,a=Math.imul(N,V),n=n+Math.imul(D,H)|0,i=(i=i+Math.imul(D,G)|0)+Math.imul(R,H)|0,a=a+Math.imul(R,G)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,X)|0)+Math.imul(z,W)|0,a=a+Math.imul(z,X)|0,n=n+Math.imul(C,J)|0,i=(i=i+Math.imul(C,K)|0)+Math.imul(L,J)|0,a=a+Math.imul(L,K)|0,n=n+Math.imul(A,$)|0,i=(i=i+Math.imul(A,tt)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,tt)|0,n=n+Math.imul(T,rt)|0,i=(i=i+Math.imul(T,nt)|0)+Math.imul(k,rt)|0,a=a+Math.imul(k,nt)|0,n=n+Math.imul(b,at)|0,i=(i=i+Math.imul(b,ot)|0)+Math.imul(_,at)|0,a=a+Math.imul(_,ot)|0,n=n+Math.imul(v,lt)|0,i=(i=i+Math.imul(v,ct)|0)+Math.imul(y,lt)|0,a=a+Math.imul(y,ct)|0,n=n+Math.imul(d,ft)|0,i=(i=i+Math.imul(d,ht)|0)+Math.imul(g,ft)|0,a=a+Math.imul(g,ht)|0;var Mt=(c+(n=n+Math.imul(f,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(f,gt)|0)+Math.imul(h,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(h,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Mt&gt;&gt;&gt;26)|0,Mt&amp;=67108863,n=Math.imul(B,H),i=(i=Math.imul(B,G))+Math.imul(N,H)|0,a=Math.imul(N,G),n=n+Math.imul(D,W)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(R,W)|0,a=a+Math.imul(R,X)|0,n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,K)|0)+Math.imul(z,J)|0,a=a+Math.imul(z,K)|0,n=n+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(L,$)|0,a=a+Math.imul(L,tt)|0,n=n+Math.imul(A,rt)|0,i=(i=i+Math.imul(A,nt)|0)+Math.imul(S,rt)|0,a=a+Math.imul(S,nt)|0,n=n+Math.imul(T,at)|0,i=(i=i+Math.imul(T,ot)|0)+Math.imul(k,at)|0,a=a+Math.imul(k,ot)|0,n=n+Math.imul(b,lt)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(_,lt)|0,a=a+Math.imul(_,ct)|0,n=n+Math.imul(v,ft)|0,i=(i=i+Math.imul(v,ht)|0)+Math.imul(y,ft)|0,a=a+Math.imul(y,ht)|0;var At=(c+(n=n+Math.imul(d,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(d,gt)|0)+Math.imul(g,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(g,gt)|0)+(i&gt;&gt;&gt;13)|0)+(At&gt;&gt;&gt;26)|0,At&amp;=67108863,n=Math.imul(B,W),i=(i=Math.imul(B,X))+Math.imul(N,W)|0,a=Math.imul(N,X),n=n+Math.imul(D,J)|0,i=(i=i+Math.imul(D,K)|0)+Math.imul(R,J)|0,a=a+Math.imul(R,K)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,tt)|0)+Math.imul(z,$)|0,a=a+Math.imul(z,tt)|0,n=n+Math.imul(C,rt)|0,i=(i=i+Math.imul(C,nt)|0)+Math.imul(L,rt)|0,a=a+Math.imul(L,nt)|0,n=n+Math.imul(A,at)|0,i=(i=i+Math.imul(A,ot)|0)+Math.imul(S,at)|0,a=a+Math.imul(S,ot)|0,n=n+Math.imul(T,lt)|0,i=(i=i+Math.imul(T,ct)|0)+Math.imul(k,lt)|0,a=a+Math.imul(k,ct)|0,n=n+Math.imul(b,ft)|0,i=(i=i+Math.imul(b,ht)|0)+Math.imul(_,ft)|0,a=a+Math.imul(_,ht)|0;var St=(c+(n=n+Math.imul(v,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(v,gt)|0)+Math.imul(y,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(y,gt)|0)+(i&gt;&gt;&gt;13)|0)+(St&gt;&gt;&gt;26)|0,St&amp;=67108863,n=Math.imul(B,J),i=(i=Math.imul(B,K))+Math.imul(N,J)|0,a=Math.imul(N,K),n=n+Math.imul(D,$)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(R,$)|0,a=a+Math.imul(R,tt)|0,n=n+Math.imul(P,rt)|0,i=(i=i+Math.imul(P,nt)|0)+Math.imul(z,rt)|0,a=a+Math.imul(z,nt)|0,n=n+Math.imul(C,at)|0,i=(i=i+Math.imul(C,ot)|0)+Math.imul(L,at)|0,a=a+Math.imul(L,ot)|0,n=n+Math.imul(A,lt)|0,i=(i=i+Math.imul(A,ct)|0)+Math.imul(S,lt)|0,a=a+Math.imul(S,ct)|0,n=n+Math.imul(T,ft)|0,i=(i=i+Math.imul(T,ht)|0)+Math.imul(k,ft)|0,a=a+Math.imul(k,ht)|0;var Et=(c+(n=n+Math.imul(b,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(b,gt)|0)+Math.imul(_,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(_,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Et&gt;&gt;&gt;26)|0,Et&amp;=67108863,n=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(N,$)|0,a=Math.imul(N,tt),n=n+Math.imul(D,rt)|0,i=(i=i+Math.imul(D,nt)|0)+Math.imul(R,rt)|0,a=a+Math.imul(R,nt)|0,n=n+Math.imul(P,at)|0,i=(i=i+Math.imul(P,ot)|0)+Math.imul(z,at)|0,a=a+Math.imul(z,ot)|0,n=n+Math.imul(C,lt)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(L,lt)|0,a=a+Math.imul(L,ct)|0,n=n+Math.imul(A,ft)|0,i=(i=i+Math.imul(A,ht)|0)+Math.imul(S,ft)|0,a=a+Math.imul(S,ht)|0;var Ct=(c+(n=n+Math.imul(T,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(T,gt)|0)+Math.imul(k,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(k,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Ct&gt;&gt;&gt;26)|0,Ct&amp;=67108863,n=Math.imul(B,rt),i=(i=Math.imul(B,nt))+Math.imul(N,rt)|0,a=Math.imul(N,nt),n=n+Math.imul(D,at)|0,i=(i=i+Math.imul(D,ot)|0)+Math.imul(R,at)|0,a=a+Math.imul(R,ot)|0,n=n+Math.imul(P,lt)|0,i=(i=i+Math.imul(P,ct)|0)+Math.imul(z,lt)|0,a=a+Math.imul(z,ct)|0,n=n+Math.imul(C,ft)|0,i=(i=i+Math.imul(C,ht)|0)+Math.imul(L,ft)|0,a=a+Math.imul(L,ht)|0;var Lt=(c+(n=n+Math.imul(A,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(A,gt)|0)+Math.imul(S,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(S,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Lt&gt;&gt;&gt;26)|0,Lt&amp;=67108863,n=Math.imul(B,at),i=(i=Math.imul(B,ot))+Math.imul(N,at)|0,a=Math.imul(N,ot),n=n+Math.imul(D,lt)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(R,lt)|0,a=a+Math.imul(R,ct)|0,n=n+Math.imul(P,ft)|0,i=(i=i+Math.imul(P,ht)|0)+Math.imul(z,ft)|0,a=a+Math.imul(z,ht)|0;var It=(c+(n=n+Math.imul(C,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(C,gt)|0)+Math.imul(L,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(L,gt)|0)+(i&gt;&gt;&gt;13)|0)+(It&gt;&gt;&gt;26)|0,It&amp;=67108863,n=Math.imul(B,lt),i=(i=Math.imul(B,ct))+Math.imul(N,lt)|0,a=Math.imul(N,ct),n=n+Math.imul(D,ft)|0,i=(i=i+Math.imul(D,ht)|0)+Math.imul(R,ft)|0,a=a+Math.imul(R,ht)|0;var Pt=(c+(n=n+Math.imul(P,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(P,gt)|0)+Math.imul(z,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(z,gt)|0)+(i&gt;&gt;&gt;13)|0)+(Pt&gt;&gt;&gt;26)|0,Pt&amp;=67108863,n=Math.imul(B,ft),i=(i=Math.imul(B,ht))+Math.imul(N,ft)|0,a=Math.imul(N,ht);var zt=(c+(n=n+Math.imul(D,dt)|0)|0)+((8191&amp;(i=(i=i+Math.imul(D,gt)|0)+Math.imul(R,dt)|0))&lt;&lt;13)|0;c=((a=a+Math.imul(R,gt)|0)+(i&gt;&gt;&gt;13)|0)+(zt&gt;&gt;&gt;26)|0,zt&amp;=67108863;var Ot=(c+(n=Math.imul(B,dt))|0)+((8191&amp;(i=(i=Math.imul(B,gt))+Math.imul(N,dt)|0))&lt;&lt;13)|0;return c=((a=Math.imul(N,gt))+(i&gt;&gt;&gt;13)|0)+(Ot&gt;&gt;&gt;26)|0,Ot&amp;=67108863,l[0]=mt,l[1]=vt,l[2]=yt,l[3]=xt,l[4]=bt,l[5]=_t,l[6]=wt,l[7]=Tt,l[8]=kt,l[9]=Mt,l[10]=At,l[11]=St,l[12]=Et,l[13]=Ct,l[14]=Lt,l[15]=It,l[16]=Pt,l[17]=zt,l[18]=Ot,0!==c&amp;&amp;(l[19]=c,r.length++),r};function d(t,e,r){return(new g).mulp(t,e,r)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=h),a.prototype.mulTo=function(t,e){var r=this.length+t.length;return 10===this.length&amp;&amp;10===t.length?p(this,t,e):r&lt;63?h(this,t,e):r&lt;1024?function(t,e,r){r.negative=e.negative^t.negative,r.length=t.length+e.length;for(var n=0,i=0,a=0;a&lt;r.length-1;a++){var o=i;i=0;for(var s=67108863&amp;n,l=Math.min(a,e.length-1),c=Math.max(0,a-t.length+1);c&lt;=l;c++){var u=a-c,f=(0|t.words[u])*(0|e.words[c]),h=67108863&amp;f;s=67108863&amp;(h=h+s|0),i+=(o=(o=o+(f/67108864|0)|0)+(h&gt;&gt;&gt;26)|0)&gt;&gt;&gt;26,o&amp;=67108863}r.words[a]=s,n=o,o=i}return 0!==n?r.words[a]=n:r.length--,r.strip()}(this,t,e):d(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),r=a.prototype._countBits(t)-1,n=0;n&lt;t;n++)e[n]=this.revBin(n,r,t);return e},g.prototype.revBin=function(t,e,r){if(0===t||t===r-1)return t;for(var n=0,i=0;i&lt;e;i++)n|=(1&amp;t)&lt;&lt;e-i-1,t&gt;&gt;=1;return n},g.prototype.permute=function(t,e,r,n,i,a){for(var o=0;o&lt;a;o++)n[o]=e[t[o]],i[o]=r[t[o]]},g.prototype.transform=function(t,e,r,n,i,a){this.permute(a,t,e,r,n,i);for(var o=1;o&lt;i;o&lt;&lt;=1)for(var s=o&lt;&lt;1,l=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),u=0;u&lt;i;u+=s)for(var f=l,h=c,p=0;p&lt;o;p++){var d=r[u+p],g=n[u+p],m=r[u+p+o],v=n[u+p+o],y=f*m-h*v;v=f*v+h*m,m=y,r[u+p]=d+m,n[u+p]=g+v,r[u+p+o]=d-m,n[u+p+o]=g-v,p!==s&amp;&amp;(y=l*f-c*h,h=l*h+c*f,f=y)}},g.prototype.guessLen13b=function(t,e){var r=1|Math.max(e,t),n=1&amp;r,i=0;for(r=r/2|0;r;r&gt;&gt;&gt;=1)i++;return 1&lt;&lt;i+1+n},g.prototype.conjugate=function(t,e,r){if(!(r&lt;=1))for(var n=0;n&lt;r/2;n++){var i=t[n];t[n]=t[r-n-1],t[r-n-1]=i,i=e[n],e[n]=-e[r-n-1],e[r-n-1]=-i}},g.prototype.normalize13b=function(t,e){for(var r=0,n=0;n&lt;e/2;n++){var i=8192*Math.round(t[2*n+1]/e)+Math.round(t[2*n]/e)+r;t[n]=67108863&amp;i,r=i&lt;67108864?0:i/67108864|0}return t},g.prototype.convert13b=function(t,e,r,i){for(var a=0,o=0;o&lt;e;o++)a+=0|t[o],r[2*o]=8191&amp;a,a&gt;&gt;&gt;=13,r[2*o+1]=8191&amp;a,a&gt;&gt;&gt;=13;for(o=2*e;o&lt;i;++o)r[o]=0;n(0===a),n(0==(-8192&amp;a))},g.prototype.stub=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=0;return e},g.prototype.mulp=function(t,e,r){var n=2*this.guessLen13b(t.length,e.length),i=this.makeRBT(n),a=this.stub(n),o=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),u=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(t.words,t.length,o,n),this.convert13b(e.words,e.length,c,n),this.transform(o,a,s,l,n,i),this.transform(c,a,u,f,n,i);for(var p=0;p&lt;n;p++){var d=s[p]*u[p]-l[p]*f[p];l[p]=s[p]*f[p]+l[p]*u[p],s[p]=d}return this.conjugate(s,l,n),this.transform(s,l,h,a,n,i),this.conjugate(h,a,n),this.normalize13b(h,n),r.negative=t.negative^e.negative,r.length=t.length+e.length,r.strip()},a.prototype.mul=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},a.prototype.mulf=function(t){var e=new a(null);return e.words=new Array(this.length+t.length),d(this,t,e)},a.prototype.imul=function(t){return this.clone().mulTo(t,this)},a.prototype.imuln=function(t){n(&quot;number&quot;==typeof t),n(t&lt;67108864);for(var e=0,r=0;r&lt;this.length;r++){var i=(0|this.words[r])*t,a=(67108863&amp;i)+(67108863&amp;e);e&gt;&gt;=26,e+=i/67108864|0,e+=a&gt;&gt;&gt;26,this.words[r]=67108863&amp;a}return 0!==e&amp;&amp;(this.words[r]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),r=0;r&lt;e.length;r++){var n=r/26|0,i=r%26;e[r]=(t.words[n]&amp;1&lt;&lt;i)&gt;&gt;&gt;i}return e}(t);if(0===e.length)return new a(1);for(var r=this,n=0;n&lt;e.length&amp;&amp;0===e[n];n++,r=r.sqr());if(++n&lt;e.length)for(var i=r.sqr();n&lt;e.length;n++,i=i.sqr())0!==e[n]&amp;&amp;(r=r.mul(i));return r},a.prototype.iushln=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e,r=t%26,i=(t-r)/26,a=67108863&gt;&gt;&gt;26-r&lt;&lt;26-r;if(0!==r){var o=0;for(e=0;e&lt;this.length;e++){var s=this.words[e]&amp;a,l=(0|this.words[e])-s&lt;&lt;r;this.words[e]=l|o,o=s&gt;&gt;&gt;26-r}o&amp;&amp;(this.words[e]=o,this.length++)}if(0!==i){for(e=this.length-1;e&gt;=0;e--)this.words[e+i]=this.words[e];for(e=0;e&lt;i;e++)this.words[e]=0;this.length+=i}return this.strip()},a.prototype.ishln=function(t){return n(0===this.negative),this.iushln(t)},a.prototype.iushrn=function(t,e,r){var i;n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0),i=e?(e-e%26)/26:0;var a=t%26,o=Math.min((t-a)/26,this.length),s=67108863^67108863&gt;&gt;&gt;a&lt;&lt;a,l=r;if(i-=o,i=Math.max(0,i),l){for(var c=0;c&lt;o;c++)l.words[c]=this.words[c];l.length=o}if(0===o);else if(this.length&gt;o)for(this.length-=o,c=0;c&lt;this.length;c++)this.words[c]=this.words[c+o];else this.words[0]=0,this.length=1;var u=0;for(c=this.length-1;c&gt;=0&amp;&amp;(0!==u||c&gt;=i);c--){var f=0|this.words[c];this.words[c]=u&lt;&lt;26-a|f&gt;&gt;&gt;a,u=f&amp;s}return l&amp;&amp;0!==u&amp;&amp;(l.words[l.length++]=u),0===this.length&amp;&amp;(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=t%26,r=(t-e)/26,i=1&lt;&lt;e;return!(this.length&lt;=r)&amp;&amp;!!(this.words[r]&amp;i)},a.prototype.imaskn=function(t){n(&quot;number&quot;==typeof t&amp;&amp;t&gt;=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,&quot;imaskn works only with positive numbers&quot;),this.length&lt;=r)return this;if(0!==e&amp;&amp;r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863&gt;&gt;&gt;e&lt;&lt;e;this.words[this.length-1]&amp;=i}return this.strip()},a.prototype.maskn=function(t){return this.clone().imaskn(t)},a.prototype.iaddn=function(t){return n(&quot;number&quot;==typeof t),n(t&lt;67108864),t&lt;0?this.isubn(-t):0!==this.negative?1===this.length&amp;&amp;(0|this.words[0])&lt;t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},a.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e&lt;this.length&amp;&amp;this.words[e]&gt;=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(n(&quot;number&quot;==typeof t),n(t&lt;67108864),t&lt;0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&amp;&amp;this.words[0]&lt;0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e&lt;this.length&amp;&amp;this.words[e]&lt;0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},a.prototype.addn=function(t){return this.clone().iaddn(t)},a.prototype.subn=function(t){return this.clone().isubn(t)},a.prototype.iabs=function(){return this.negative=0,this},a.prototype.abs=function(){return this.clone().iabs()},a.prototype._ishlnsubmul=function(t,e,r){var i,a,o=t.length+r;this._expand(o);var s=0;for(i=0;i&lt;t.length;i++){a=(0|this.words[i+r])+s;var l=(0|t.words[i])*e;s=((a-=67108863&amp;l)&gt;&gt;26)-(l/67108864|0),this.words[i+r]=67108863&amp;a}for(;i&lt;this.length-r;i++)s=(a=(0|this.words[i+r])+s)&gt;&gt;26,this.words[i+r]=67108863&amp;a;if(0===s)return this.strip();for(n(-1===s),s=0,i=0;i&lt;this.length;i++)s=(a=-(0|this.words[i])+s)&gt;&gt;26,this.words[i]=67108863&amp;a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var r=(this.length,t.length),n=this.clone(),i=t,o=0|i.words[i.length-1];0!==(r=26-this._countBits(o))&amp;&amp;(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var s,l=n.length-i.length;if(&quot;mod&quot;!==e){(s=new a(null)).length=l+1,s.words=new Array(s.length);for(var c=0;c&lt;s.length;c++)s.words[c]=0}var u=n.clone()._ishlnsubmul(i,1,l);0===u.negative&amp;&amp;(n=u,s&amp;&amp;(s.words[l]=1));for(var f=l-1;f&gt;=0;f--){var h=67108864*(0|n.words[i.length+f])+(0|n.words[i.length+f-1]);for(h=Math.min(h/o|0,67108863),n._ishlnsubmul(i,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(i,1,f),n.isZero()||(n.negative^=1);s&amp;&amp;(s.words[f]=h)}return s&amp;&amp;s.strip(),n.strip(),&quot;div&quot;!==e&amp;&amp;0!==r&amp;&amp;n.iushrn(r),{div:s||null,mod:n}},a.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&amp;&amp;0===t.negative?(s=this.neg().divmod(t,e),&quot;mod&quot;!==e&amp;&amp;(i=s.div.neg()),&quot;div&quot;!==e&amp;&amp;(o=s.mod.neg(),r&amp;&amp;0!==o.negative&amp;&amp;o.iadd(t)),{div:i,mod:o}):0===this.negative&amp;&amp;0!==t.negative?(s=this.divmod(t.neg(),e),&quot;mod&quot;!==e&amp;&amp;(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&amp;t.negative)?(s=this.neg().divmod(t.neg(),e),&quot;div&quot;!==e&amp;&amp;(o=s.mod.neg(),r&amp;&amp;0!==o.negative&amp;&amp;o.isub(t)),{div:s.div,mod:o}):t.length&gt;this.length||this.cmp(t)&lt;0?{div:new a(0),mod:this}:1===t.length?&quot;div&quot;===e?{div:this.divn(t.words[0]),mod:null}:&quot;mod&quot;===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,o,s},a.prototype.div=function(t){return this.divmod(t,&quot;div&quot;,!1).div},a.prototype.mod=function(t){return this.divmod(t,&quot;mod&quot;,!1).mod},a.prototype.umod=function(t){return this.divmod(t,&quot;mod&quot;,!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var r=0!==e.div.negative?e.mod.isub(t):e.mod,n=t.ushrn(1),i=t.andln(1),a=r.cmp(n);return a&lt;0||1===i&amp;&amp;0===a?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){n(t&lt;=67108863);for(var e=(1&lt;&lt;26)%t,r=0,i=this.length-1;i&gt;=0;i--)r=(e*r+(0|this.words[i]))%t;return r},a.prototype.idivn=function(t){n(t&lt;=67108863);for(var e=0,r=this.length-1;r&gt;=0;r--){var i=(0|this.words[r])+67108864*e;this.words[r]=i/t|0,e=i%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new a(1),o=new a(0),s=new a(0),l=new a(1),c=0;e.isEven()&amp;&amp;r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var u=r.clone(),f=e.clone();!e.isZero();){for(var h=0,p=1;0==(e.words[0]&amp;p)&amp;&amp;h&lt;26;++h,p&lt;&lt;=1);if(h&gt;0)for(e.iushrn(h);h-- &gt;0;)(i.isOdd()||o.isOdd())&amp;&amp;(i.iadd(u),o.isub(f)),i.iushrn(1),o.iushrn(1);for(var d=0,g=1;0==(r.words[0]&amp;g)&amp;&amp;d&lt;26;++d,g&lt;&lt;=1);if(d&gt;0)for(r.iushrn(d);d-- &gt;0;)(s.isOdd()||l.isOdd())&amp;&amp;(s.iadd(u),l.isub(f)),s.iushrn(1),l.iushrn(1);e.cmp(r)&gt;=0?(e.isub(r),i.isub(s),o.isub(l)):(r.isub(e),s.isub(i),l.isub(o))}return{a:s,b:l,gcd:r.iushln(c)}},a.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,o=new a(1),s=new a(0),l=r.clone();e.cmpn(1)&gt;0&amp;&amp;r.cmpn(1)&gt;0;){for(var c=0,u=1;0==(e.words[0]&amp;u)&amp;&amp;c&lt;26;++c,u&lt;&lt;=1);if(c&gt;0)for(e.iushrn(c);c-- &gt;0;)o.isOdd()&amp;&amp;o.iadd(l),o.iushrn(1);for(var f=0,h=1;0==(r.words[0]&amp;h)&amp;&amp;f&lt;26;++f,h&lt;&lt;=1);if(f&gt;0)for(r.iushrn(f);f-- &gt;0;)s.isOdd()&amp;&amp;s.iadd(l),s.iushrn(1);e.cmp(r)&gt;=0?(e.isub(r),o.isub(s)):(r.isub(e),s.isub(o))}return(i=0===e.cmpn(1)?o:s).cmpn(0)&lt;0&amp;&amp;i.iadd(t),i},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),r=t.clone();e.negative=0,r.negative=0;for(var n=0;e.isEven()&amp;&amp;r.isEven();n++)e.iushrn(1),r.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=e.cmp(r);if(i&lt;0){var a=e;e=r,r=a}else if(0===i||0===r.cmpn(1))break;e.isub(r)}return r.iushln(n)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&amp;this.words[0])},a.prototype.isOdd=function(){return 1==(1&amp;this.words[0])},a.prototype.andln=function(t){return this.words[0]&amp;t},a.prototype.bincn=function(t){n(&quot;number&quot;==typeof t);var e=t%26,r=(t-e)/26,i=1&lt;&lt;e;if(this.length&lt;=r)return this._expand(r+1),this.words[r]|=i,this;for(var a=i,o=r;0!==a&amp;&amp;o&lt;this.length;o++){var s=0|this.words[o];a=(s+=a)&gt;&gt;&gt;26,s&amp;=67108863,this.words[o]=s}return 0!==a&amp;&amp;(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&amp;&amp;0===this.words[0]},a.prototype.cmpn=function(t){var e,r=t&lt;0;if(0!==this.negative&amp;&amp;!r)return-1;if(0===this.negative&amp;&amp;r)return 1;if(this.strip(),this.length&gt;1)e=1;else{r&amp;&amp;(t=-t),n(t&lt;=67108863,&quot;Number is too big&quot;);var i=0|this.words[0];e=i===t?0:i&lt;t?-1:1}return 0!==this.negative?0|-e:e},a.prototype.cmp=function(t){if(0!==this.negative&amp;&amp;0===t.negative)return-1;if(0===this.negative&amp;&amp;0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},a.prototype.ucmp=function(t){if(this.length&gt;t.length)return 1;if(this.length&lt;t.length)return-1;for(var e=0,r=this.length-1;r&gt;=0;r--){var n=0|this.words[r],i=0|t.words[r];if(n!==i){n&lt;i?e=-1:n&gt;i&amp;&amp;(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)&gt;=0},a.prototype.gte=function(t){return this.cmp(t)&gt;=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)&lt;=0},a.prototype.lte=function(t){return this.cmp(t)&lt;=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new w(t)},a.prototype.toRed=function(t){return n(!this.red,&quot;Already a number in reduction context&quot;),n(0===this.negative,&quot;red works only with positives&quot;),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return n(this.red,&quot;fromRed works only with numbers in reduction context&quot;),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return n(!this.red,&quot;Already a number in reduction context&quot;),this._forceRed(t)},a.prototype.redAdd=function(t){return n(this.red,&quot;redAdd works only with red numbers&quot;),this.red.add(this,t)},a.prototype.redIAdd=function(t){return n(this.red,&quot;redIAdd works only with red numbers&quot;),this.red.iadd(this,t)},a.prototype.redSub=function(t){return n(this.red,&quot;redSub works only with red numbers&quot;),this.red.sub(this,t)},a.prototype.redISub=function(t){return n(this.red,&quot;redISub works only with red numbers&quot;),this.red.isub(this,t)},a.prototype.redShl=function(t){return n(this.red,&quot;redShl works only with red numbers&quot;),this.red.shl(this,t)},a.prototype.redMul=function(t){return n(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return n(this.red,&quot;redMul works only with red numbers&quot;),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return n(this.red,&quot;redSqr works only with red numbers&quot;),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return n(this.red,&quot;redISqr works only with red numbers&quot;),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return n(this.red,&quot;redSqrt works only with red numbers&quot;),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return n(this.red,&quot;redInvm works only with red numbers&quot;),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return n(this.red,&quot;redNeg works only with red numbers&quot;),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return n(this.red&amp;&amp;!t.red,&quot;redPow(normalNum)&quot;),this.red._verify1(this),this.red.pow(this,t)};var m={k256:null,p224:null,p192:null,p25519:null};function v(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){v.call(this,&quot;k256&quot;,&quot;ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f&quot;)}function x(){v.call(this,&quot;p224&quot;,&quot;ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001&quot;)}function b(){v.call(this,&quot;p192&quot;,&quot;ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff&quot;)}function _(){v.call(this,&quot;25519&quot;,&quot;7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed&quot;)}function w(t){if(&quot;string&quot;==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),&quot;modulus must be greater than 1&quot;),this.m=t,this.prime=null}function T(t){w.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&amp;&amp;(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},v.prototype.ireduce=function(t){var e,r=t;do{this.split(r,this.tmp),e=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(e&gt;this.n);var n=e&lt;this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n&gt;0?r.isub(this.p):r.strip(),r},v.prototype.split=function(t,e){t.iushrn(this.n,0,e)},v.prototype.imulK=function(t){return t.imul(this.k)},i(y,v),y.prototype.split=function(t,e){for(var r=Math.min(t.length,9),n=0;n&lt;r;n++)e.words[n]=t.words[n];if(e.length=r,t.length&lt;=9)return t.words[0]=0,void(t.length=1);var i=t.words[9];for(e.words[e.length++]=4194303&amp;i,n=10;n&lt;t.length;n++){var a=0|t.words[n];t.words[n-10]=(4194303&amp;a)&lt;&lt;4|i&gt;&gt;&gt;22,i=a}i&gt;&gt;&gt;=22,t.words[n-10]=i,0===i&amp;&amp;t.length&gt;10?t.length-=10:t.length-=9},y.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,r=0;r&lt;t.length;r++){var n=0|t.words[r];e+=977*n,t.words[r]=67108863&amp;e,e=64*n+(e/67108864|0)}return 0===t.words[t.length-1]&amp;&amp;(t.length--,0===t.words[t.length-1]&amp;&amp;t.length--),t},i(x,v),i(b,v),i(_,v),_.prototype.imulK=function(t){for(var e=0,r=0;r&lt;t.length;r++){var n=19*(0|t.words[r])+e,i=67108863&amp;n;n&gt;&gt;&gt;=26,t.words[r]=i,e=n}return 0!==e&amp;&amp;(t.words[t.length++]=e),t},a._prime=function(t){if(m[t])return m[t];var e;if(&quot;k256&quot;===t)e=new y;else if(&quot;p224&quot;===t)e=new x;else if(&quot;p192&quot;===t)e=new b;else{if(&quot;p25519&quot;!==t)throw new Error(&quot;Unknown prime &quot;+t);e=new _}return m[t]=e,e},w.prototype._verify1=function(t){n(0===t.negative,&quot;red works only with positives&quot;),n(t.red,&quot;red works only with red numbers&quot;)},w.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),&quot;red works only with positives&quot;),n(t.red&amp;&amp;t.red===e.red,&quot;red works only with red numbers&quot;)},w.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},w.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},w.prototype.add=function(t,e){this._verify2(t,e);var r=t.add(e);return r.cmp(this.m)&gt;=0&amp;&amp;r.isub(this.m),r._forceRed(this)},w.prototype.iadd=function(t,e){this._verify2(t,e);var r=t.iadd(e);return r.cmp(this.m)&gt;=0&amp;&amp;r.isub(this.m),r},w.prototype.sub=function(t,e){this._verify2(t,e);var r=t.sub(e);return r.cmpn(0)&lt;0&amp;&amp;r.iadd(this.m),r._forceRed(this)},w.prototype.isub=function(t,e){this._verify2(t,e);var r=t.isub(e);return r.cmpn(0)&lt;0&amp;&amp;r.iadd(this.m),r},w.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},w.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},w.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},w.prototype.isqr=function(t){return this.imul(t,t.clone())},w.prototype.sqr=function(t){return this.mul(t,t)},w.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new a(1)).iushrn(2);return this.pow(t,r)}for(var i=this.m.subn(1),o=0;!i.isZero()&amp;&amp;0===i.andln(1);)o++,i.iushrn(1);n(!i.isZero());var s=new a(1).toRed(this),l=s.redNeg(),c=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new a(2*u*u).toRed(this);0!==this.pow(u,c).cmp(l);)u.redIAdd(l);for(var f=this.pow(u,i),h=this.pow(t,i.addn(1).iushrn(1)),p=this.pow(t,i),d=o;0!==p.cmp(s);){for(var g=p,m=0;0!==g.cmp(s);m++)g=g.redSqr();n(m&lt;d);var v=this.pow(f,new a(1).iushln(d-m-1));h=h.redMul(v),f=v.redSqr(),p=p.redMul(f),d=m}return h},w.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},w.prototype.pow=function(t,e){if(e.isZero())return new a(1).toRed(this);if(0===e.cmpn(1))return t.clone();var r=new Array(16);r[0]=new a(1).toRed(this),r[1]=t;for(var n=2;n&lt;r.length;n++)r[n]=this.mul(r[n-1],t);var i=r[0],o=0,s=0,l=e.bitLength()%26;for(0===l&amp;&amp;(l=26),n=e.length-1;n&gt;=0;n--){for(var c=e.words[n],u=l-1;u&gt;=0;u--){var f=c&gt;&gt;u&amp;1;i!==r[0]&amp;&amp;(i=this.sqr(i)),0!==f||0!==o?(o&lt;&lt;=1,o|=f,(4===++s||0===n&amp;&amp;0===u)&amp;&amp;(i=this.mul(i,r[o]),s=0,o=0)):s=0}l=26}return i},w.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},w.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new T(t)},i(T,w),T.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},T.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},T.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)&gt;=0?a=i.isub(this.m):i.cmpn(0)&lt;0&amp;&amp;(a=i.iadd(this.m)),a._forceRed(this)},T.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var r=t.mul(e),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)&gt;=0?o=i.isub(this.m):i.cmpn(0)&lt;0&amp;&amp;(o=i.iadd(this.m)),o._forceRed(this)},T.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(&quot;undefined&quot;==typeof e||e,this)},{buffer:108}],100:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e,r,n,i=t.length,a=0;for(e=0;e&lt;i;++e)a+=t[e].length;var o=new Array(a),s=0;for(e=0;e&lt;i;++e){var l=t[e],c=l.length;for(r=0;r&lt;c;++r){var u=o[s++]=new Array(c-1),f=0;for(n=0;n&lt;c;++n)n!==r&amp;&amp;(u[f++]=l[n]);if(1&amp;r){var h=u[1];u[1]=u[0],u[0]=h}}}return o}},{}],101:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){switch(arguments.length){case 1:return f(t);case 2:return&quot;function&quot;==typeof e?c(t,t,e,!0):h(t,e);case 3:return c(t,e,r,!1);default:throw new Error(&quot;box-intersect: Invalid arguments&quot;)}};var n,i=t(&quot;typedarray-pool&quot;),a=t(&quot;./lib/sweep&quot;),o=t(&quot;./lib/intersect&quot;);function s(t,e){for(var r=0;r&lt;t;++r)if(!(e[r]&lt;=e[r+t]))return!0;return!1}function l(t,e,r,n){for(var i=0,a=0,o=0,l=t.length;o&lt;l;++o){var c=t[o];if(!s(e,c)){for(var u=0;u&lt;2*e;++u)r[i++]=c[u];n[a++]=o}}return a}function c(t,e,r,n){var s=t.length,c=e.length;if(!(s&lt;=0||c&lt;=0)){var u=t[0].length&gt;&gt;&gt;1;if(!(u&lt;=0)){var f,h=i.mallocDouble(2*u*s),p=i.mallocInt32(s);if((s=l(t,u,h,p))&gt;0){if(1===u&amp;&amp;n)a.init(s),f=a.sweepComplete(u,r,0,s,h,p,0,s,h,p);else{var d=i.mallocDouble(2*u*c),g=i.mallocInt32(c);(c=l(e,u,d,g))&gt;0&amp;&amp;(a.init(s+c),f=1===u?a.sweepBipartite(u,r,0,s,h,p,0,c,d,g):o(u,r,n,s,h,p,c,d,g),i.free(d),i.free(g))}i.free(h),i.free(p)}return f}}}function u(t,e){n.push([t,e])}function f(t){return n=[],c(t,t,u,!0),n}function h(t,e){return n=[],c(t,e,u,!1),n}},{&quot;./lib/intersect&quot;:103,&quot;./lib/sweep&quot;:107,&quot;typedarray-pool&quot;:595}],102:[function(t,e,r){&quot;use strict&quot;;var n=[&quot;d&quot;,&quot;ax&quot;,&quot;vv&quot;,&quot;rs&quot;,&quot;re&quot;,&quot;rb&quot;,&quot;ri&quot;,&quot;bs&quot;,&quot;be&quot;,&quot;bb&quot;,&quot;bi&quot;];function i(t){var e=&quot;bruteForce&quot;+(t?&quot;Full&quot;:&quot;Partial&quot;),r=[],i=n.slice();t||i.splice(3,0,&quot;fp&quot;);var a=[&quot;function &quot;+e+&quot;(&quot;+i.join()+&quot;){&quot;];function o(e,i){var o=function(t,e,r){var i=&quot;bruteForce&quot;+(t?&quot;Red&quot;:&quot;Blue&quot;)+(e?&quot;Flip&quot;:&quot;&quot;)+(r?&quot;Full&quot;:&quot;&quot;),a=[&quot;function &quot;,i,&quot;(&quot;,n.join(),&quot;){&quot;,&quot;var &quot;,&quot;es&quot;,&quot;=2*&quot;,&quot;d&quot;,&quot;;&quot;],o=&quot;for(var i=rs,rp=es*rs;i&lt;re;++i,rp+=es){var x0=rb[ax+rp],x1=rb[ax+rp+d],xi=ri[i];&quot;,s=&quot;for(var j=bs,bp=es*bs;j&lt;be;++j,bp+=es){var y0=bb[ax+bp],&quot;+(r?&quot;y1=bb[ax+bp+d],&quot;:&quot;&quot;)+&quot;yi=bi[j];&quot;;return t?a.push(o,&quot;Q&quot;,&quot;:&quot;,s):a.push(s,&quot;Q&quot;,&quot;:&quot;,o),r?a.push(&quot;if(y1&lt;x0||x1&lt;y0)continue;&quot;):e?a.push(&quot;if(y0&lt;=x0||x1&lt;y0)continue;&quot;):a.push(&quot;if(y0&lt;x0||x1&lt;y0)continue;&quot;),a.push(&quot;for(var k=ax+1;k&lt;d;++k){var r0=rb[k+rp],r1=rb[k+d+rp],b0=bb[k+bp],b1=bb[k+d+bp];if(r1&lt;b0||b1&lt;r0)continue Q;}var rv=vv(&quot;),e?a.push(&quot;yi,xi&quot;):a.push(&quot;xi,yi&quot;),a.push(&quot;);if(rv!==void 0)return rv;}}}&quot;),{name:i,code:a.join(&quot;&quot;)}}(e,i,t);r.push(o.code),a.push(&quot;return &quot;+o.name+&quot;(&quot;+n.join()+&quot;);&quot;)}a.push(&quot;if(re-rs&gt;be-bs){&quot;),t?(o(!0,!1),a.push(&quot;}else{&quot;),o(!1,!1)):(a.push(&quot;if(fp){&quot;),o(!0,!0),a.push(&quot;}else{&quot;),o(!0,!1),a.push(&quot;}}else{if(fp){&quot;),o(!1,!0),a.push(&quot;}else{&quot;),o(!1,!1),a.push(&quot;}&quot;)),a.push(&quot;}}return &quot;+e);var s=r.join(&quot;&quot;)+a.join(&quot;&quot;);return new Function(s)()}r.partial=i(!1),r.full=i(!0)},{}],103:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,u,w,T,k,M){!function(t,e){var r=8*i.log2(e+1)*(t+1)|0,a=i.nextPow2(6*r);v.length&lt;a&amp;&amp;(n.free(v),v=n.mallocInt32(a));var o=i.nextPow2(2*r);y.length&lt;o&amp;&amp;(n.free(y),y=n.mallocDouble(o))}(t,a+T);var A,S=0,E=2*t;x(S++,0,0,a,0,T,r?16:0,-1/0,1/0),r||x(S++,0,0,T,0,a,1,-1/0,1/0);for(;S&gt;0;){var C=6*(S-=1),L=v[C],I=v[C+1],P=v[C+2],z=v[C+3],O=v[C+4],D=v[C+5],R=2*S,F=y[R],B=y[R+1],N=1&amp;D,j=!!(16&amp;D),U=u,V=w,q=k,H=M;if(N&amp;&amp;(U=k,V=M,q=u,H=w),!(2&amp;D&amp;&amp;(P=p(t,L,I,P,U,V,B),I&gt;=P)||4&amp;D&amp;&amp;(I=d(t,L,I,P,U,V,F))&gt;=P)){var G=P-I,Y=O-z;if(j){if(t*G*(G+Y)&lt;1&lt;&lt;22){if(void 0!==(A=l.scanComplete(t,L,e,I,P,U,V,z,O,q,H)))return A;continue}}else{if(t*Math.min(G,Y)&lt;128){if(void 0!==(A=o(t,L,e,N,I,P,U,V,z,O,q,H)))return A;continue}if(t*G*Y&lt;1&lt;&lt;22){if(void 0!==(A=l.scanBipartite(t,L,e,N,I,P,U,V,z,O,q,H)))return A;continue}}var W=f(t,L,I,P,U,V,F,B);if(I&lt;W)if(t*(W-I)&lt;128){if(void 0!==(A=s(t,L+1,e,I,W,U,V,z,O,q,H)))return A}else if(L===t-2){if(void 0!==(A=N?l.sweepBipartite(t,e,z,O,q,H,I,W,U,V):l.sweepBipartite(t,e,I,W,U,V,z,O,q,H)))return A}else x(S++,L+1,I,W,z,O,N,-1/0,1/0),x(S++,L+1,z,O,I,W,1^N,-1/0,1/0);if(W&lt;P){var X=c(t,L,z,O,q,H),Z=q[E*X+L],J=h(t,L,X,O,q,H,Z);if(J&lt;O&amp;&amp;x(S++,L,W,P,J,O,(4|N)+(j?16:0),Z,B),z&lt;X&amp;&amp;x(S++,L,W,P,z,X,(2|N)+(j?16:0),F,Z),X+1===J){if(void 0!==(A=j?_(t,L,e,W,P,U,V,X,q,H[X]):b(t,L,e,N,W,P,U,V,X,q,H[X])))return A}else if(X&lt;J){var K;if(j){if(K=g(t,L,W,P,U,V,Z),W&lt;K){var Q=h(t,L,W,K,U,V,Z);if(L===t-2){if(W&lt;Q&amp;&amp;void 0!==(A=l.sweepComplete(t,e,W,Q,U,V,X,J,q,H)))return A;if(Q&lt;K&amp;&amp;void 0!==(A=l.sweepBipartite(t,e,Q,K,U,V,X,J,q,H)))return A}else W&lt;Q&amp;&amp;x(S++,L+1,W,Q,X,J,16,-1/0,1/0),Q&lt;K&amp;&amp;(x(S++,L+1,Q,K,X,J,0,-1/0,1/0),x(S++,L+1,X,J,Q,K,1,-1/0,1/0))}}else K=N?m(t,L,W,P,U,V,Z):g(t,L,W,P,U,V,Z),W&lt;K&amp;&amp;(L===t-2?A=N?l.sweepBipartite(t,e,X,J,q,H,W,K,U,V):l.sweepBipartite(t,e,W,K,U,V,X,J,q,H):(x(S++,L+1,W,K,X,J,N,-1/0,1/0),x(S++,L+1,X,J,W,K,1^N,-1/0,1/0)))}}}}};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;bit-twiddle&quot;),a=t(&quot;./brute&quot;),o=a.partial,s=a.full,l=t(&quot;./sweep&quot;),c=t(&quot;./median&quot;),u=t(&quot;./partition&quot;),f=u(&quot;!(lo&gt;=p0)&amp;&amp;!(p1&gt;=hi)&quot;,[&quot;p0&quot;,&quot;p1&quot;]),h=u(&quot;lo===p0&quot;,[&quot;p0&quot;]),p=u(&quot;lo&lt;p0&quot;,[&quot;p0&quot;]),d=u(&quot;hi&lt;=p0&quot;,[&quot;p0&quot;]),g=u(&quot;lo&lt;=p0&amp;&amp;p0&lt;=hi&quot;,[&quot;p0&quot;]),m=u(&quot;lo&lt;p0&amp;&amp;p0&lt;=hi&quot;,[&quot;p0&quot;]),v=n.mallocInt32(1024),y=n.mallocDouble(1024);function x(t,e,r,n,i,a,o,s,l){var c=6*t;v[c]=e,v[c+1]=r,v[c+2]=n,v[c+3]=i,v[c+4]=a,v[c+5]=o;var u=2*t;y[u]=s,y[u+1]=l}function b(t,e,r,n,i,a,o,s,l,c,u){var f=2*t,h=l*f,p=c[h+e];t:for(var d=i,g=i*f;d&lt;a;++d,g+=f){var m=o[g+e],v=o[g+e+t];if(!(p&lt;m||v&lt;p)&amp;&amp;(!n||p!==m)){for(var y,x=s[d],b=e+1;b&lt;t;++b){m=o[g+b],v=o[g+b+t];var _=c[h+b],w=c[h+b+t];if(v&lt;_||w&lt;m)continue t}if(void 0!==(y=n?r(u,x):r(x,u)))return y}}}function _(t,e,r,n,i,a,o,s,l,c){var u=2*t,f=s*u,h=l[f+e];t:for(var p=n,d=n*u;p&lt;i;++p,d+=u){var g=o[p];if(g!==c){var m=a[d+e],v=a[d+e+t];if(!(h&lt;m||v&lt;h)){for(var y=e+1;y&lt;t;++y){m=a[d+y],v=a[d+y+t];var x=l[f+y],b=l[f+y+t];if(v&lt;x||b&lt;m)continue t}var _=r(g,c);if(void 0!==_)return _}}}}},{&quot;./brute&quot;:102,&quot;./median&quot;:104,&quot;./partition&quot;:105,&quot;./sweep&quot;:107,&quot;bit-twiddle&quot;:97,&quot;typedarray-pool&quot;:595}],104:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,o,s){if(a&lt;=r+1)return r;var l=r,c=a,u=a+r&gt;&gt;&gt;1,f=2*t,h=u,p=o[f*u+e];for(;l&lt;c;){if(c-l&lt;8){i(t,e,l,c,o,s),p=o[f*u+e];break}var d=c-l,g=Math.random()*d+l|0,m=o[f*g+e],v=Math.random()*d+l|0,y=o[f*v+e],x=Math.random()*d+l|0,b=o[f*x+e];m&lt;=y?b&gt;=y?(h=v,p=y):m&gt;=b?(h=g,p=m):(h=x,p=b):y&gt;=b?(h=v,p=y):b&gt;=m?(h=g,p=m):(h=x,p=b);for(var _=f*(c-1),w=f*h,T=0;T&lt;f;++T,++_,++w){var k=o[_];o[_]=o[w],o[w]=k}var M=s[c-1];s[c-1]=s[h],s[h]=M,h=n(t,e,l,c-1,o,s,p);for(_=f*(c-1),w=f*h,T=0;T&lt;f;++T,++_,++w){k=o[_];o[_]=o[w],o[w]=k}M=s[c-1];if(s[c-1]=s[h],s[h]=M,u&lt;h){for(c=h-1;l&lt;c&amp;&amp;o[f*(c-1)+e]===p;)c-=1;c+=1}else{if(!(h&lt;u))break;for(l=h+1;l&lt;c&amp;&amp;o[f*l+e]===p;)l+=1}}return n(t,e,r,u,o,s,o[f*u+e])};var n=t(&quot;./partition&quot;)(&quot;lo&lt;p0&quot;,[&quot;p0&quot;]);function i(t,e,r,n,i,a){for(var o=2*t,s=o*(r+1)+e,l=r+1;l&lt;n;++l,s+=o)for(var c=i[s],u=l,f=o*(l-1);u&gt;r&amp;&amp;i[f+e]&gt;c;--u,f-=o){for(var h=f,p=f+o,d=0;d&lt;o;++d,++h,++p){var g=i[h];i[h]=i[p],i[p]=g}var m=a[u];a[u]=a[u-1],a[u-1]=m}}},{&quot;./partition&quot;:105}],105:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=&quot;abcdef&quot;.split(&quot;&quot;).concat(e),n=[];t.indexOf(&quot;lo&quot;)&gt;=0&amp;&amp;n.push(&quot;lo=e[k+n]&quot;);t.indexOf(&quot;hi&quot;)&gt;=0&amp;&amp;n.push(&quot;hi=e[k+o]&quot;);return r.push(&quot;for(var j=2*a,k=j*c,l=k,m=c,n=b,o=a+b,p=c;d&gt;p;++p,k+=j){var _;if($)if(m===p)m+=1,l+=j;else{for(var s=0;j&gt;s;++s){var t=e[k+s];e[k+s]=e[l],e[l++]=t}var u=f[p];f[p]=f[m],f[m++]=u}}return m&quot;.replace(&quot;_&quot;,n.join()).replace(&quot;$&quot;,t)),Function.apply(void 0,r)}},{}],106:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e&lt;=128?n(0,e-1,t):function t(e,r,u){var f=(r-e+1)/6|0,h=e+f,p=r-f,d=e+r&gt;&gt;1,g=d-f,m=d+f,v=h,y=g,x=d,b=m,_=p,w=e+1,T=r-1,k=0;l(v,y,u)&amp;&amp;(k=v,v=y,y=k);l(b,_,u)&amp;&amp;(k=b,b=_,_=k);l(v,x,u)&amp;&amp;(k=v,v=x,x=k);l(y,x,u)&amp;&amp;(k=y,y=x,x=k);l(v,b,u)&amp;&amp;(k=v,v=b,b=k);l(x,b,u)&amp;&amp;(k=x,x=b,b=k);l(y,_,u)&amp;&amp;(k=y,y=_,_=k);l(y,x,u)&amp;&amp;(k=y,y=x,x=k);l(b,_,u)&amp;&amp;(k=b,b=_,_=k);for(var M=u[2*y],A=u[2*y+1],S=u[2*b],E=u[2*b+1],C=2*v,L=2*x,I=2*_,P=2*h,z=2*d,O=2*p,D=0;D&lt;2;++D){var R=u[C+D],F=u[L+D],B=u[I+D];u[P+D]=R,u[z+D]=F,u[O+D]=B}a(g,e,u),a(m,r,u);for(var N=w;N&lt;=T;++N)if(c(N,M,A,u))N!==w&amp;&amp;i(N,w,u),++w;else if(!c(N,S,E,u))for(;;){if(c(T,S,E,u)){c(T,M,A,u)?(o(N,w,T,u),++w,--T):(i(N,T,u),--T);break}if(--T&lt;N)break}s(e,w-1,M,A,u),s(r,T+1,S,E,u),w-2-e&lt;=32?n(e,w-2,u):t(e,w-2,u);r-(T+2)&lt;=32?n(T+2,r,u):t(T+2,r,u);T-w&lt;=32?n(w,T,u):t(w,T,u)}(0,e-1,t)};function n(t,e,r){for(var n=2*(t+1),i=t+1;i&lt;=e;++i){for(var a=r[n++],o=r[n++],s=i,l=n-2;s-- &gt;t;){var c=r[l-2],u=r[l-1];if(c&lt;a)break;if(c===a&amp;&amp;u&lt;o)break;r[l]=c,r[l+1]=u,l-=2}r[l]=a,r[l+1]=o}}function i(t,e,r){e*=2;var n=r[t*=2],i=r[t+1];r[t]=r[e],r[t+1]=r[e+1],r[e]=n,r[e+1]=i}function a(t,e,r){e*=2,r[t*=2]=r[e],r[t+1]=r[e+1]}function o(t,e,r,n){e*=2,r*=2;var i=n[t*=2],a=n[t+1];n[t]=n[e],n[t+1]=n[e+1],n[e]=n[r],n[e+1]=n[r+1],n[r]=i,n[r+1]=a}function s(t,e,r,n,i){e*=2,i[t*=2]=i[e],i[e]=r,i[t+1]=i[e+1],i[e+1]=n}function l(t,e,r){e*=2;var n=r[t*=2],i=r[e];return!(n&lt;i)&amp;&amp;(n!==i||r[t+1]&gt;r[e+1])}function c(t,e,r,n){var i=n[t*=2];return i&lt;e||i===e&amp;&amp;n[t+1]&lt;r}},{}],107:[function(t,e,r){&quot;use strict&quot;;e.exports={init:function(t){var e=i.nextPow2(t);o.length&lt;e&amp;&amp;(n.free(o),o=n.mallocInt32(e));s.length&lt;e&amp;&amp;(n.free(s),s=n.mallocInt32(e));l.length&lt;e&amp;&amp;(n.free(l),l=n.mallocInt32(e));c.length&lt;e&amp;&amp;(n.free(c),c=n.mallocInt32(e));u.length&lt;e&amp;&amp;(n.free(u),u=n.mallocInt32(e));f.length&lt;e&amp;&amp;(n.free(f),f=n.mallocInt32(e));var r=8*e;h.length&lt;r&amp;&amp;(n.free(h),h=n.mallocDouble(r))},sweepBipartite:function(t,e,r,n,i,u,f,g,m,v){for(var y=0,x=2*t,b=t-1,_=x-1,w=r;w&lt;n;++w){var T=u[w],k=x*w;h[y++]=i[k+b],h[y++]=-(T+1),h[y++]=i[k+_],h[y++]=T}for(w=f;w&lt;g;++w){T=v[w]+(1&lt;&lt;28);var M=x*w;h[y++]=m[M+b],h[y++]=-T,h[y++]=m[M+_],h[y++]=T}var A=y&gt;&gt;&gt;1;a(h,A);var S=0,E=0;for(w=0;w&lt;A;++w){var C=0|h[2*w+1];if(C&gt;=1&lt;&lt;28)p(l,c,E--,C=C-(1&lt;&lt;28)|0);else if(C&gt;=0)p(o,s,S--,C);else if(C&lt;=-(1&lt;&lt;28)){C=-C-(1&lt;&lt;28)|0;for(var L=0;L&lt;S;++L){if(void 0!==(I=e(o[L],C)))return I}d(l,c,E++,C)}else{C=-C-1|0;for(L=0;L&lt;E;++L){var I;if(void 0!==(I=e(C,l[L])))return I}d(o,s,S++,C)}}},sweepComplete:function(t,e,r,n,i,g,m,v,y,x){for(var b=0,_=2*t,w=t-1,T=_-1,k=r;k&lt;n;++k){var M=g[k]+1&lt;&lt;1,A=_*k;h[b++]=i[A+w],h[b++]=-M,h[b++]=i[A+T],h[b++]=M}for(k=m;k&lt;v;++k){M=x[k]+1&lt;&lt;1;var S=_*k;h[b++]=y[S+w],h[b++]=1|-M,h[b++]=y[S+T],h[b++]=1|M}var E=b&gt;&gt;&gt;1;a(h,E);var C=0,L=0,I=0;for(k=0;k&lt;E;++k){var P=0|h[2*k+1],z=1&amp;P;if(k&lt;E-1&amp;&amp;P&gt;&gt;1==h[2*k+3]&gt;&gt;1&amp;&amp;(z=2,k+=1),P&lt;0){for(var O=-(P&gt;&gt;1)-1,D=0;D&lt;I;++D){if(void 0!==(R=e(u[D],O)))return R}if(0!==z)for(D=0;D&lt;C;++D){if(void 0!==(R=e(o[D],O)))return R}if(1!==z)for(D=0;D&lt;L;++D){var R;if(void 0!==(R=e(l[D],O)))return R}0===z?d(o,s,C++,O):1===z?d(l,c,L++,O):2===z&amp;&amp;d(u,f,I++,O)}else{O=(P&gt;&gt;1)-1;0===z?p(o,s,C--,O):1===z?p(l,c,L--,O):2===z&amp;&amp;p(u,f,I--,O)}}},scanBipartite:function(t,e,r,n,i,l,c,u,f,g,m,v){var y=0,x=2*t,b=e,_=e+t,w=1,T=1;n?T=1&lt;&lt;28:w=1&lt;&lt;28;for(var k=i;k&lt;l;++k){var M=k+w,A=x*k;h[y++]=c[A+b],h[y++]=-M,h[y++]=c[A+_],h[y++]=M}for(k=f;k&lt;g;++k){M=k+T;var S=x*k;h[y++]=m[S+b],h[y++]=-M}var E=y&gt;&gt;&gt;1;a(h,E);var C=0;for(k=0;k&lt;E;++k){var L=0|h[2*k+1];if(L&lt;0){var I=!1;if((M=-L)&gt;=1&lt;&lt;28?(I=!n,M-=1&lt;&lt;28):(I=!!n,M-=1),I)d(o,s,C++,M);else{var P=v[M],z=x*M,O=m[z+e+1],D=m[z+e+1+t];t:for(var R=0;R&lt;C;++R){var F=o[R],B=x*F;if(!(D&lt;c[B+e+1]||c[B+e+1+t]&lt;O)){for(var N=e+2;N&lt;t;++N)if(m[z+N+t]&lt;c[B+N]||c[B+N+t]&lt;m[z+N])continue t;var j,U=u[F];if(void 0!==(j=n?r(P,U):r(U,P)))return j}}}}else p(o,s,C--,L-w)}},scanComplete:function(t,e,r,n,i,s,l,c,u,f,p){for(var d=0,g=2*t,m=e,v=e+t,y=n;y&lt;i;++y){var x=y+(1&lt;&lt;28),b=g*y;h[d++]=s[b+m],h[d++]=-x,h[d++]=s[b+v],h[d++]=x}for(y=c;y&lt;u;++y){x=y+1;var _=g*y;h[d++]=f[_+m],h[d++]=-x}var w=d&gt;&gt;&gt;1;a(h,w);var T=0;for(y=0;y&lt;w;++y){var k=0|h[2*y+1];if(k&lt;0){if((x=-k)&gt;=1&lt;&lt;28)o[T++]=x-(1&lt;&lt;28);else{var M=p[x-=1],A=g*x,S=f[A+e+1],E=f[A+e+1+t];t:for(var C=0;C&lt;T;++C){var L=o[C],I=l[L];if(I===M)break;var P=g*L;if(!(E&lt;s[P+e+1]||s[P+e+1+t]&lt;S)){for(var z=e+2;z&lt;t;++z)if(f[A+z+t]&lt;s[P+z]||s[P+z+t]&lt;f[A+z])continue t;var O=r(I,M);if(void 0!==O)return O}}}}else{for(x=k-(1&lt;&lt;28),C=T-1;C&gt;=0;--C)if(o[C]===x){for(z=C+1;z&lt;T;++z)o[z-1]=o[z];break}--T}}}};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;bit-twiddle&quot;),a=t(&quot;./sort&quot;),o=n.mallocInt32(1024),s=n.mallocInt32(1024),l=n.mallocInt32(1024),c=n.mallocInt32(1024),u=n.mallocInt32(1024),f=n.mallocInt32(1024),h=n.mallocDouble(8192);function p(t,e,r,n){var i=e[n],a=t[r-1];t[i]=a,e[a]=i}function d(t,e,r,n){t[r]=n,e[n]=r}},{&quot;./sort&quot;:106,&quot;bit-twiddle&quot;:97,&quot;typedarray-pool&quot;:595}],108:[function(t,e,r){},{}],109:[function(t,e,r){arguments[4][108][0].apply(r,arguments)},{dup:108}],110:[function(t,e,r){&quot;use strict&quot;;var n,i=&quot;object&quot;==typeof Reflect?Reflect:null,a=i&amp;&amp;&quot;function&quot;==typeof i.apply?i.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};n=i&amp;&amp;&quot;function&quot;==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(t,e){return new Promise((function(r,n){function i(){void 0!==a&amp;&amp;t.removeListener(&quot;error&quot;,a),r([].slice.call(arguments))}var a;&quot;error&quot;!==e&amp;&amp;(a=function(r){t.removeListener(e,i),n(r)},t.once(&quot;error&quot;,a)),t.once(e,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function c(t){if(&quot;function&quot;!=typeof t)throw new TypeError('The &quot;listener&quot; argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function f(t,e,r,n){var i,a,o,s;if(c(r),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&amp;&amp;(t.emit(&quot;newListener&quot;,e,r.listener?r.listener:r),a=t._events),o=a[e]),void 0===o)o=a[e]=r,++t._eventsCount;else if(&quot;function&quot;==typeof o?o=a[e]=n?[r,o]:[o,r]:n?o.unshift(r):o.push(r),(i=u(t))&gt;0&amp;&amp;o.length&gt;i&amp;&amp;!o.warned){o.warned=!0;var l=new Error(&quot;Possible EventEmitter memory leak detected. &quot;+o.length+&quot; &quot;+String(e)+&quot; listeners added. Use emitter.setMaxListeners() to increase limit&quot;);l.name=&quot;MaxListenersExceededWarning&quot;,l.emitter=t,l.type=e,l.count=o.length,s=l,console&amp;&amp;console.warn&amp;&amp;console.warn(s)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function d(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:&quot;function&quot;==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r&lt;e.length;++r)e[r]=t[r].listener||t[r];return e}(i):m(i,i.length)}function g(t){var e=this._events;if(void 0!==e){var r=e[t];if(&quot;function&quot;==typeof r)return 1;if(void 0!==r)return r.length}return 0}function m(t,e){for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n];return r}Object.defineProperty(s,&quot;defaultMaxListeners&quot;,{enumerable:!0,get:function(){return l},set:function(t){if(&quot;number&quot;!=typeof t||t&lt;0||o(t))throw new RangeError('The value of &quot;defaultMaxListeners&quot; is out of range. It must be a non-negative number. Received '+t+&quot;.&quot;);l=t}}),s.init=function(){void 0!==this._events&amp;&amp;this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(t){if(&quot;number&quot;!=typeof t||t&lt;0||o(t))throw new RangeError('The value of &quot;n&quot; is out of range. It must be a non-negative number. Received '+t+&quot;.&quot;);return this._maxListeners=t,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(t){for(var e=[],r=1;r&lt;arguments.length;r++)e.push(arguments[r]);var n=&quot;error&quot;===t,i=this._events;if(void 0!==i)n=n&amp;&amp;void 0===i.error;else if(!n)return!1;if(n){var o;if(e.length&gt;0&amp;&amp;(o=e[0]),o instanceof Error)throw o;var s=new Error(&quot;Unhandled error.&quot;+(o?&quot; (&quot;+o.message+&quot;)&quot;:&quot;&quot;));throw s.context=o,s}var l=i[t];if(void 0===l)return!1;if(&quot;function&quot;==typeof l)a(l,this,e);else{var c=l.length,u=m(l,c);for(r=0;r&lt;c;++r)a(u[r],this,e)}return!0},s.prototype.addListener=function(t,e){return f(this,t,e,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(t,e){return f(this,t,e,!0)},s.prototype.once=function(t,e){return c(e),this.on(t,p(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){return c(e),this.prependListener(t,p(this,t,e)),this},s.prototype.removeListener=function(t,e){var r,n,i,a,o;if(c(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,t,r.listener||e));else if(&quot;function&quot;!=typeof r){for(i=-1,a=r.length-1;a&gt;=0;a--)if(r[a]===e||r[a].listener===e){o=r[a].listener,i=a;break}if(i&lt;0)return this;0===i?r.shift():function(t,e){for(;e+1&lt;t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&amp;&amp;(n[t]=r[0]),void 0!==n.removeListener&amp;&amp;this.emit(&quot;removeListener&quot;,t,o||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&amp;&amp;(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,a=Object.keys(r);for(n=0;n&lt;a.length;++n)&quot;removeListener&quot;!==(i=a[n])&amp;&amp;this.removeAllListeners(i);return this.removeAllListeners(&quot;removeListener&quot;),this._events=Object.create(null),this._eventsCount=0,this}if(&quot;function&quot;==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n&gt;=0;n--)this.removeListener(t,e[n]);return this},s.prototype.listeners=function(t){return d(this,t,!0)},s.prototype.rawListeners=function(t){return d(this,t,!1)},s.listenerCount=function(t,e){return&quot;function&quot;==typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},s.prototype.listenerCount=g,s.prototype.eventNames=function(){return this._eventsCount&gt;0?n(this._events):[]}},{}],111:[function(t,e,r){(function(e){(function(){
/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh &lt;https://feross.org&gt;
 * @license  MIT
 */
&quot;use strict&quot;;var e=t(&quot;base64-js&quot;),n=t(&quot;ieee754&quot;);r.Buffer=a,r.SlowBuffer=function(t){+t!=t&amp;&amp;(t=0);return a.alloc(+t)},r.INSPECT_MAX_BYTES=50;function i(t){if(t&gt;2147483647)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;');var e=new Uint8Array(t);return e.__proto__=a.prototype,e}function a(t,e,r){if(&quot;number&quot;==typeof t){if(&quot;string&quot;==typeof e)throw new TypeError('The &quot;string&quot; argument must be of type string. Received type number');return l(t)}return o(t,e,r)}function o(t,e,r){if(&quot;string&quot;==typeof t)return function(t,e){&quot;string&quot;==typeof e&amp;&amp;&quot;&quot;!==e||(e=&quot;utf8&quot;);if(!a.isEncoding(e))throw new TypeError(&quot;Unknown encoding: &quot;+e);var r=0|f(t,e),n=i(r),o=n.write(t,e);o!==r&amp;&amp;(n=n.slice(0,o));return n}(t,e);if(ArrayBuffer.isView(t))return c(t);if(null==t)throw TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t);if(B(t,ArrayBuffer)||t&amp;&amp;B(t.buffer,ArrayBuffer))return function(t,e,r){if(e&lt;0||t.byteLength&lt;e)throw new RangeError('&quot;offset&quot; is outside of buffer bounds');if(t.byteLength&lt;e+(r||0))throw new RangeError('&quot;length&quot; is outside of buffer bounds');var n;n=void 0===e&amp;&amp;void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r);return n.__proto__=a.prototype,n}(t,e,r);if(&quot;number&quot;==typeof t)throw new TypeError('The &quot;value&quot; argument must not be of type number. Received type number');var n=t.valueOf&amp;&amp;t.valueOf();if(null!=n&amp;&amp;n!==t)return a.from(n,e,r);var o=function(t){if(a.isBuffer(t)){var e=0|u(t.length),r=i(e);return 0===r.length||t.copy(r,0,0,e),r}if(void 0!==t.length)return&quot;number&quot;!=typeof t.length||N(t.length)?i(0):c(t);if(&quot;Buffer&quot;===t.type&amp;&amp;Array.isArray(t.data))return c(t.data)}(t);if(o)return o;if(&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.toPrimitive&amp;&amp;&quot;function&quot;==typeof t[Symbol.toPrimitive])return a.from(t[Symbol.toPrimitive](&quot;string&quot;),e,r);throw new TypeError(&quot;The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type &quot;+typeof t)}function s(t){if(&quot;number&quot;!=typeof t)throw new TypeError('&quot;size&quot; argument must be of type number');if(t&lt;0)throw new RangeError('The value &quot;'+t+'&quot; is invalid for option &quot;size&quot;')}function l(t){return s(t),i(t&lt;0?0:0|u(t))}function c(t){for(var e=t.length&lt;0?0:0|u(t.length),r=i(e),n=0;n&lt;e;n+=1)r[n]=255&amp;t[n];return r}function u(t){if(t&gt;=2147483647)throw new RangeError(&quot;Attempt to allocate Buffer larger than maximum size: 0x&quot;+2147483647..toString(16)+&quot; bytes&quot;);return 0|t}function f(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||B(t,ArrayBuffer))return t.byteLength;if(&quot;string&quot;!=typeof t)throw new TypeError('The &quot;string&quot; argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var r=t.length,n=arguments.length&gt;2&amp;&amp;!0===arguments[2];if(!n&amp;&amp;0===r)return 0;for(var i=!1;;)switch(e){case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:return r;case&quot;utf8&quot;:case&quot;utf-8&quot;:return D(t).length;case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return 2*r;case&quot;hex&quot;:return r&gt;&gt;&gt;1;case&quot;base64&quot;:return R(t).length;default:if(i)return n?-1:D(t).length;e=(&quot;&quot;+e).toLowerCase(),i=!0}}function h(t,e,r){var n=!1;if((void 0===e||e&lt;0)&amp;&amp;(e=0),e&gt;this.length)return&quot;&quot;;if((void 0===r||r&gt;this.length)&amp;&amp;(r=this.length),r&lt;=0)return&quot;&quot;;if((r&gt;&gt;&gt;=0)&lt;=(e&gt;&gt;&gt;=0))return&quot;&quot;;for(t||(t=&quot;utf8&quot;);;)switch(t){case&quot;hex&quot;:return A(this,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return T(this,e,r);case&quot;ascii&quot;:return k(this,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return M(this,e,r);case&quot;base64&quot;:return w(this,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return S(this,e,r);default:if(n)throw new TypeError(&quot;Unknown encoding: &quot;+t);t=(t+&quot;&quot;).toLowerCase(),n=!0}}function p(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function d(t,e,r,n,i){if(0===t.length)return-1;if(&quot;string&quot;==typeof r?(n=r,r=0):r&gt;2147483647?r=2147483647:r&lt;-2147483648&amp;&amp;(r=-2147483648),N(r=+r)&amp;&amp;(r=i?0:t.length-1),r&lt;0&amp;&amp;(r=t.length+r),r&gt;=t.length){if(i)return-1;r=t.length-1}else if(r&lt;0){if(!i)return-1;r=0}if(&quot;string&quot;==typeof e&amp;&amp;(e=a.from(e,n)),a.isBuffer(e))return 0===e.length?-1:g(t,e,r,n,i);if(&quot;number&quot;==typeof e)return e&amp;=255,&quot;function&quot;==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):g(t,[e],r,n,i);throw new TypeError(&quot;val must be string, number or Buffer&quot;)}function g(t,e,r,n,i){var a,o=1,s=t.length,l=e.length;if(void 0!==n&amp;&amp;(&quot;ucs2&quot;===(n=String(n).toLowerCase())||&quot;ucs-2&quot;===n||&quot;utf16le&quot;===n||&quot;utf-16le&quot;===n)){if(t.length&lt;2||e.length&lt;2)return-1;o=2,s/=2,l/=2,r/=2}function c(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(i){var u=-1;for(a=r;a&lt;s;a++)if(c(t,a)===c(e,-1===u?0:a-u)){if(-1===u&amp;&amp;(u=a),a-u+1===l)return u*o}else-1!==u&amp;&amp;(a-=a-u),u=-1}else for(r+l&gt;s&amp;&amp;(r=s-l),a=r;a&gt;=0;a--){for(var f=!0,h=0;h&lt;l;h++)if(c(t,a+h)!==c(e,h)){f=!1;break}if(f)return a}return-1}function m(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))&gt;i&amp;&amp;(n=i):n=i;var a=e.length;n&gt;a/2&amp;&amp;(n=a/2);for(var o=0;o&lt;n;++o){var s=parseInt(e.substr(2*o,2),16);if(N(s))return o;t[r+o]=s}return o}function v(t,e,r,n){return F(D(e,t.length-r),t,r,n)}function y(t,e,r,n){return F(function(t){for(var e=[],r=0;r&lt;t.length;++r)e.push(255&amp;t.charCodeAt(r));return e}(e),t,r,n)}function x(t,e,r,n){return y(t,e,r,n)}function b(t,e,r,n){return F(R(e),t,r,n)}function _(t,e,r,n){return F(function(t,e){for(var r,n,i,a=[],o=0;o&lt;t.length&amp;&amp;!((e-=2)&lt;0);++o)r=t.charCodeAt(o),n=r&gt;&gt;8,i=r%256,a.push(i),a.push(n);return a}(e,t.length-r),t,r,n)}function w(t,r,n){return 0===r&amp;&amp;n===t.length?e.fromByteArray(t):e.fromByteArray(t.slice(r,n))}function T(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i&lt;r;){var a,o,s,l,c=t[i],u=null,f=c&gt;239?4:c&gt;223?3:c&gt;191?2:1;if(i+f&lt;=r)switch(f){case 1:c&lt;128&amp;&amp;(u=c);break;case 2:128==(192&amp;(a=t[i+1]))&amp;&amp;(l=(31&amp;c)&lt;&lt;6|63&amp;a)&gt;127&amp;&amp;(u=l);break;case 3:a=t[i+1],o=t[i+2],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;(l=(15&amp;c)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;o)&gt;2047&amp;&amp;(l&lt;55296||l&gt;57343)&amp;&amp;(u=l);break;case 4:a=t[i+1],o=t[i+2],s=t[i+3],128==(192&amp;a)&amp;&amp;128==(192&amp;o)&amp;&amp;128==(192&amp;s)&amp;&amp;(l=(15&amp;c)&lt;&lt;18|(63&amp;a)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;s)&gt;65535&amp;&amp;l&lt;1114112&amp;&amp;(u=l)}null===u?(u=65533,f=1):u&gt;65535&amp;&amp;(u-=65536,n.push(u&gt;&gt;&gt;10&amp;1023|55296),u=56320|1023&amp;u),n.push(u),i+=f}return function(t){var e=t.length;if(e&lt;=4096)return String.fromCharCode.apply(String,t);var r=&quot;&quot;,n=0;for(;n&lt;e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}r.kMaxLength=2147483647,a.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}(),a.TYPED_ARRAY_SUPPORT||&quot;undefined&quot;==typeof console||&quot;function&quot;!=typeof console.error||console.error(&quot;This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.&quot;),Object.defineProperty(a.prototype,&quot;parent&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,&quot;offset&quot;,{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}}),&quot;undefined&quot;!=typeof Symbol&amp;&amp;null!=Symbol.species&amp;&amp;a[Symbol.species]===a&amp;&amp;Object.defineProperty(a,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}),a.poolSize=8192,a.from=function(t,e,r){return o(t,e,r)},a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,a.alloc=function(t,e,r){return function(t,e,r){return s(t),t&lt;=0?i(t):void 0!==e?&quot;string&quot;==typeof r?i(t).fill(e,r):i(t).fill(e):i(t)}(t,e,r)},a.allocUnsafe=function(t){return l(t)},a.allocUnsafeSlow=function(t){return l(t)},a.isBuffer=function(t){return null!=t&amp;&amp;!0===t._isBuffer&amp;&amp;t!==a.prototype},a.compare=function(t,e){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),B(e,Uint8Array)&amp;&amp;(e=a.from(e,e.offset,e.byteLength)),!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError('The &quot;buf1&quot;, &quot;buf2&quot; arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i&lt;o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r&lt;n?-1:n&lt;r?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case&quot;hex&quot;:case&quot;utf8&quot;:case&quot;utf-8&quot;:case&quot;ascii&quot;:case&quot;latin1&quot;:case&quot;binary&quot;:case&quot;base64&quot;:case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return!0;default:return!1}},a.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);var r;if(void 0===e)for(e=0,r=0;r&lt;t.length;++r)e+=t[r].length;var n=a.allocUnsafe(e),i=0;for(r=0;r&lt;t.length;++r){var o=t[r];if(B(o,Uint8Array)&amp;&amp;(o=a.from(o)),!a.isBuffer(o))throw new TypeError('&quot;list&quot; argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},a.byteLength=f,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError(&quot;Buffer size must be a multiple of 16-bits&quot;);for(var e=0;e&lt;t;e+=2)p(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError(&quot;Buffer size must be a multiple of 32-bits&quot;);for(var e=0;e&lt;t;e+=4)p(this,e,e+3),p(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError(&quot;Buffer size must be a multiple of 64-bits&quot;);for(var e=0;e&lt;t;e+=8)p(this,e,e+7),p(this,e+1,e+6),p(this,e+2,e+5),p(this,e+3,e+4);return this},a.prototype.toString=function(){var t=this.length;return 0===t?&quot;&quot;:0===arguments.length?T(this,0,t):h.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError(&quot;Argument must be a Buffer&quot;);return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t=&quot;&quot;,e=r.INSPECT_MAX_BYTES;return t=this.toString(&quot;hex&quot;,0,e).replace(/(.{2})/g,&quot;$1 &quot;).trim(),this.length&gt;e&amp;&amp;(t+=&quot; ... &quot;),&quot;&lt;Buffer &quot;+t+&quot;&gt;&quot;},a.prototype.compare=function(t,e,r,n,i){if(B(t,Uint8Array)&amp;&amp;(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The &quot;target&quot; argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&amp;&amp;(e=0),void 0===r&amp;&amp;(r=t?t.length:0),void 0===n&amp;&amp;(n=0),void 0===i&amp;&amp;(i=this.length),e&lt;0||r&gt;t.length||n&lt;0||i&gt;this.length)throw new RangeError(&quot;out of range index&quot;);if(n&gt;=i&amp;&amp;e&gt;=r)return 0;if(n&gt;=i)return-1;if(e&gt;=r)return 1;if(this===t)return 0;for(var o=(i&gt;&gt;&gt;=0)-(n&gt;&gt;&gt;=0),s=(r&gt;&gt;&gt;=0)-(e&gt;&gt;&gt;=0),l=Math.min(o,s),c=this.slice(n,i),u=t.slice(e,r),f=0;f&lt;l;++f)if(c[f]!==u[f]){o=c[f],s=u[f];break}return o&lt;s?-1:s&lt;o?1:0},a.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},a.prototype.indexOf=function(t,e,r){return d(this,t,e,r,!0)},a.prototype.lastIndexOf=function(t,e,r){return d(this,t,e,r,!1)},a.prototype.write=function(t,e,r,n){if(void 0===e)n=&quot;utf8&quot;,r=this.length,e=0;else if(void 0===r&amp;&amp;&quot;string&quot;==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error(&quot;Buffer.write(string, encoding, offset[, length]) is no longer supported&quot;);e&gt;&gt;&gt;=0,isFinite(r)?(r&gt;&gt;&gt;=0,void 0===n&amp;&amp;(n=&quot;utf8&quot;)):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r&gt;i)&amp;&amp;(r=i),t.length&gt;0&amp;&amp;(r&lt;0||e&lt;0)||e&gt;this.length)throw new RangeError(&quot;Attempt to write outside buffer bounds&quot;);n||(n=&quot;utf8&quot;);for(var a=!1;;)switch(n){case&quot;hex&quot;:return m(this,t,e,r);case&quot;utf8&quot;:case&quot;utf-8&quot;:return v(this,t,e,r);case&quot;ascii&quot;:return y(this,t,e,r);case&quot;latin1&quot;:case&quot;binary&quot;:return x(this,t,e,r);case&quot;base64&quot;:return b(this,t,e,r);case&quot;ucs2&quot;:case&quot;ucs-2&quot;:case&quot;utf16le&quot;:case&quot;utf-16le&quot;:return _(this,t,e,r);default:if(a)throw new TypeError(&quot;Unknown encoding: &quot;+n);n=(&quot;&quot;+n).toLowerCase(),a=!0}},a.prototype.toJSON=function(){return{type:&quot;Buffer&quot;,data:Array.prototype.slice.call(this._arr||this,0)}};function k(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(127&amp;t[i]);return n}function M(t,e,r){var n=&quot;&quot;;r=Math.min(t.length,r);for(var i=e;i&lt;r;++i)n+=String.fromCharCode(t[i]);return n}function A(t,e,r){var n=t.length;(!e||e&lt;0)&amp;&amp;(e=0),(!r||r&lt;0||r&gt;n)&amp;&amp;(r=n);for(var i=&quot;&quot;,a=e;a&lt;r;++a)i+=O(t[a]);return i}function S(t,e,r){for(var n=t.slice(e,r),i=&quot;&quot;,a=0;a&lt;n.length;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}function E(t,e,r){if(t%1!=0||t&lt;0)throw new RangeError(&quot;offset is not uint&quot;);if(t+e&gt;r)throw new RangeError(&quot;Trying to access beyond buffer length&quot;)}function C(t,e,r,n,i,o){if(!a.isBuffer(t))throw new TypeError('&quot;buffer&quot; argument must be a Buffer instance');if(e&gt;i||e&lt;o)throw new RangeError('&quot;value&quot; argument is out of bounds');if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;)}function L(t,e,r,n,i,a){if(r+n&gt;t.length)throw new RangeError(&quot;Index out of range&quot;);if(r&lt;0)throw new RangeError(&quot;Index out of range&quot;)}function I(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||L(t,0,r,4),n.write(t,e,r,i,23,4),r+4}function P(t,e,r,i,a){return e=+e,r&gt;&gt;&gt;=0,a||L(t,0,r,8),n.write(t,e,r,i,52,8),r+8}a.prototype.slice=function(t,e){var r=this.length;(t=~~t)&lt;0?(t+=r)&lt;0&amp;&amp;(t=0):t&gt;r&amp;&amp;(t=r),(e=void 0===e?r:~~e)&lt;0?(e+=r)&lt;0&amp;&amp;(e=0):e&gt;r&amp;&amp;(e=r),e&lt;t&amp;&amp;(e=t);var n=this.subarray(t,e);return n.__proto__=a.prototype,n},a.prototype.readUIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n},a.prototype.readUIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t+--e],i=1;e&gt;0&amp;&amp;(i*=256);)n+=this[t+--e]*i;return n},a.prototype.readUInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]|this[t+1]&lt;&lt;8},a.prototype.readUInt16BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,2,this.length),this[t]&lt;&lt;8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),(this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),16777216*this[t]+(this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3])},a.prototype.readIntLE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=this[t],i=1,a=0;++a&lt;e&amp;&amp;(i*=256);)n+=this[t+a]*i;return n&gt;=(i*=128)&amp;&amp;(n-=Math.pow(2,8*e)),n},a.prototype.readIntBE=function(t,e,r){t&gt;&gt;&gt;=0,e&gt;&gt;&gt;=0,r||E(t,e,this.length);for(var n=e,i=1,a=this[t+--n];n&gt;0&amp;&amp;(i*=256);)a+=this[t+--n]*i;return a&gt;=(i*=128)&amp;&amp;(a-=Math.pow(2,8*e)),a},a.prototype.readInt8=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,1,this.length),128&amp;this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t]|this[t+1]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt16BE=function(t,e){t&gt;&gt;&gt;=0,e||E(t,2,this.length);var r=this[t+1]|this[t]&lt;&lt;8;return 32768&amp;r?4294901760|r:r},a.prototype.readInt32LE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]|this[t+1]&lt;&lt;8|this[t+2]&lt;&lt;16|this[t+3]&lt;&lt;24},a.prototype.readInt32BE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),this[t]&lt;&lt;24|this[t+1]&lt;&lt;16|this[t+2]&lt;&lt;8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,4,this.length),n.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t&gt;&gt;&gt;=0,e||E(t,8,this.length),n.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||C(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,a=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(i*=256);)this[e+a]=t/i&amp;255;return e+r},a.prototype.writeUIntBE=function(t,e,r,n){(t=+t,e&gt;&gt;&gt;=0,r&gt;&gt;&gt;=0,n)||C(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,a=1;for(this[e+i]=255&amp;t;--i&gt;=0&amp;&amp;(a*=256);)this[e+i]=t/a&amp;255;return e+r},a.prototype.writeUInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,1,255,0),this[e]=255&amp;t,e+1},a.prototype.writeUInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,65535,0),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeUInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,65535,0),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeUInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,4294967295,0),this[e+3]=t&gt;&gt;&gt;24,this[e+2]=t&gt;&gt;&gt;16,this[e+1]=t&gt;&gt;&gt;8,this[e]=255&amp;t,e+4},a.prototype.writeUInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,4294967295,0),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var a=0,o=1,s=0;for(this[e]=255&amp;t;++a&lt;r&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a-1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e&gt;&gt;&gt;=0,!n){var i=Math.pow(2,8*r-1);C(this,t,e,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[e+a]=255&amp;t;--a&gt;=0&amp;&amp;(o*=256);)t&lt;0&amp;&amp;0===s&amp;&amp;0!==this[e+a+1]&amp;&amp;(s=1),this[e+a]=(t/o&gt;&gt;0)-s&amp;255;return e+r},a.prototype.writeInt8=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,1,127,-128),t&lt;0&amp;&amp;(t=255+t+1),this[e]=255&amp;t,e+1},a.prototype.writeInt16LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,32767,-32768),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,e+2},a.prototype.writeInt16BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,2,32767,-32768),this[e]=t&gt;&gt;&gt;8,this[e+1]=255&amp;t,e+2},a.prototype.writeInt32LE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,2147483647,-2147483648),this[e]=255&amp;t,this[e+1]=t&gt;&gt;&gt;8,this[e+2]=t&gt;&gt;&gt;16,this[e+3]=t&gt;&gt;&gt;24,e+4},a.prototype.writeInt32BE=function(t,e,r){return t=+t,e&gt;&gt;&gt;=0,r||C(this,t,e,4,2147483647,-2147483648),t&lt;0&amp;&amp;(t=4294967295+t+1),this[e]=t&gt;&gt;&gt;24,this[e+1]=t&gt;&gt;&gt;16,this[e+2]=t&gt;&gt;&gt;8,this[e+3]=255&amp;t,e+4},a.prototype.writeFloatLE=function(t,e,r){return I(this,t,e,!0,r)},a.prototype.writeFloatBE=function(t,e,r){return I(this,t,e,!1,r)},a.prototype.writeDoubleLE=function(t,e,r){return P(this,t,e,!0,r)},a.prototype.writeDoubleBE=function(t,e,r){return P(this,t,e,!1,r)},a.prototype.copy=function(t,e,r,n){if(!a.isBuffer(t))throw new TypeError(&quot;argument should be a Buffer&quot;);if(r||(r=0),n||0===n||(n=this.length),e&gt;=t.length&amp;&amp;(e=t.length),e||(e=0),n&gt;0&amp;&amp;n&lt;r&amp;&amp;(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e&lt;0)throw new RangeError(&quot;targetStart out of bounds&quot;);if(r&lt;0||r&gt;=this.length)throw new RangeError(&quot;Index out of range&quot;);if(n&lt;0)throw new RangeError(&quot;sourceEnd out of bounds&quot;);n&gt;this.length&amp;&amp;(n=this.length),t.length-e&lt;n-r&amp;&amp;(n=t.length-e+r);var i=n-r;if(this===t&amp;&amp;&quot;function&quot;==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,r,n);else if(this===t&amp;&amp;r&lt;e&amp;&amp;e&lt;n)for(var o=i-1;o&gt;=0;--o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,n),e);return i},a.prototype.fill=function(t,e,r,n){if(&quot;string&quot;==typeof t){if(&quot;string&quot;==typeof e?(n=e,e=0,r=this.length):&quot;string&quot;==typeof r&amp;&amp;(n=r,r=this.length),void 0!==n&amp;&amp;&quot;string&quot;!=typeof n)throw new TypeError(&quot;encoding must be a string&quot;);if(&quot;string&quot;==typeof n&amp;&amp;!a.isEncoding(n))throw new TypeError(&quot;Unknown encoding: &quot;+n);if(1===t.length){var i=t.charCodeAt(0);(&quot;utf8&quot;===n&amp;&amp;i&lt;128||&quot;latin1&quot;===n)&amp;&amp;(t=i)}}else&quot;number&quot;==typeof t&amp;&amp;(t&amp;=255);if(e&lt;0||this.length&lt;e||this.length&lt;r)throw new RangeError(&quot;Out of range index&quot;);if(r&lt;=e)return this;var o;if(e&gt;&gt;&gt;=0,r=void 0===r?this.length:r&gt;&gt;&gt;0,t||(t=0),&quot;number&quot;==typeof t)for(o=e;o&lt;r;++o)this[o]=t;else{var s=a.isBuffer(t)?t:a.from(t,n),l=s.length;if(0===l)throw new TypeError('The value &quot;'+t+'&quot; is invalid for argument &quot;value&quot;');for(o=0;o&lt;r-e;++o)this[o+e]=s[o%l]}return this};var z=/[^+/0-9A-Za-z-_]/g;function O(t){return t&lt;16?&quot;0&quot;+t.toString(16):t.toString(16)}function D(t,e){var r;e=e||1/0;for(var n=t.length,i=null,a=[],o=0;o&lt;n;++o){if((r=t.charCodeAt(o))&gt;55295&amp;&amp;r&lt;57344){if(!i){if(r&gt;56319){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}if(o+1===n){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);continue}i=r;continue}if(r&lt;56320){(e-=3)&gt;-1&amp;&amp;a.push(239,191,189),i=r;continue}r=65536+(i-55296&lt;&lt;10|r-56320)}else i&amp;&amp;(e-=3)&gt;-1&amp;&amp;a.push(239,191,189);if(i=null,r&lt;128){if((e-=1)&lt;0)break;a.push(r)}else if(r&lt;2048){if((e-=2)&lt;0)break;a.push(r&gt;&gt;6|192,63&amp;r|128)}else if(r&lt;65536){if((e-=3)&lt;0)break;a.push(r&gt;&gt;12|224,r&gt;&gt;6&amp;63|128,63&amp;r|128)}else{if(!(r&lt;1114112))throw new Error(&quot;Invalid code point&quot;);if((e-=4)&lt;0)break;a.push(r&gt;&gt;18|240,r&gt;&gt;12&amp;63|128,r&gt;&gt;6&amp;63|128,63&amp;r|128)}}return a}function R(t){return e.toByteArray(function(t){if((t=(t=t.split(&quot;=&quot;)[0]).trim().replace(z,&quot;&quot;)).length&lt;2)return&quot;&quot;;for(;t.length%4!=0;)t+=&quot;=&quot;;return t}(t))}function F(t,e,r,n){for(var i=0;i&lt;n&amp;&amp;!(i+r&gt;=e.length||i&gt;=t.length);++i)e[i+r]=t[i];return i}function B(t,e){return t instanceof e||null!=t&amp;&amp;null!=t.constructor&amp;&amp;null!=t.constructor.name&amp;&amp;t.constructor.name===e.name}function N(t){return t!=t}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;base64-js&quot;:79,buffer:111,ieee754:442}],112:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/monotone&quot;),i=t(&quot;./lib/triangulation&quot;),a=t(&quot;./lib/delaunay&quot;),o=t(&quot;./lib/filter&quot;);function s(t){return[Math.min(t[0],t[1]),Math.max(t[0],t[1])]}function l(t,e){return t[0]-e[0]||t[1]-e[1]}function c(t,e,r){return e in t?t[e]:r}e.exports=function(t,e,r){Array.isArray(e)?(r=r||{},e=e||[]):(r=e||{},e=[]);var u=!!c(r,&quot;delaunay&quot;,!0),f=!!c(r,&quot;interior&quot;,!0),h=!!c(r,&quot;exterior&quot;,!0),p=!!c(r,&quot;infinity&quot;,!1);if(!f&amp;&amp;!h||0===t.length)return[];var d=n(t,e);if(u||f!==h||p){for(var g=i(t.length,function(t){return t.map(s).sort(l)}(e)),m=0;m&lt;d.length;++m){var v=d[m];g.addTriangle(v[0],v[1],v[2])}return u&amp;&amp;a(t,g),h?f?p?o(g,0,p):g.cells():o(g,1,p):o(g,-1)}return d}},{&quot;./lib/delaunay&quot;:113,&quot;./lib/filter&quot;:114,&quot;./lib/monotone&quot;:115,&quot;./lib/triangulation&quot;:116}],113:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-in-sphere&quot;)[4];t(&quot;binary-search-bounds&quot;);function i(t,e,r,i,a,o){var s=e.opposite(i,a);if(!(s&lt;0)){if(a&lt;i){var l=i;i=a,a=l,l=o,o=s,s=l}e.isConstraint(i,a)||n(t[i],t[a],t[o],t[s])&lt;0&amp;&amp;r.push(i,a)}}e.exports=function(t,e){for(var r=[],a=t.length,o=e.stars,s=0;s&lt;a;++s)for(var l=o[s],c=1;c&lt;l.length;c+=2){if(!((p=l[c])&lt;s)&amp;&amp;!e.isConstraint(s,p)){for(var u=l[c-1],f=-1,h=1;h&lt;l.length;h+=2)if(l[h-1]===p){f=l[h];break}f&lt;0||n(t[s],t[p],t[u],t[f])&lt;0&amp;&amp;r.push(s,p)}}for(;r.length&gt;0;){for(var p=r.pop(),d=(s=r.pop(),u=-1,f=-1,l=o[s],1);d&lt;l.length;d+=2){var g=l[d-1],m=l[d];g===p?f=m:m===p&amp;&amp;(u=g)}u&lt;0||f&lt;0||(n(t[s],t[p],t[u],t[f])&gt;=0||(e.flip(s,p),i(t,e,r,u,s,f),i(t,e,r,s,f,u),i(t,e,r,f,p,u),i(t,e,r,p,u,f)))}}},{&quot;binary-search-bounds&quot;:96,&quot;robust-in-sphere&quot;:546}],114:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;binary-search-bounds&quot;);function a(t,e,r,n,i,a,o){this.cells=t,this.neighbor=e,this.flags=n,this.constraint=r,this.active=i,this.next=a,this.boundary=o}function o(t,e){return t[0]-e[0]||t[1]-e[1]||t[2]-e[2]}e.exports=function(t,e,r){var n=function(t,e){for(var r=t.cells(),n=r.length,i=0;i&lt;n;++i){var s=(v=r[i])[0],l=v[1],c=v[2];l&lt;c?l&lt;s&amp;&amp;(v[0]=l,v[1]=c,v[2]=s):c&lt;s&amp;&amp;(v[0]=c,v[1]=s,v[2]=l)}r.sort(o);var u=new Array(n);for(i=0;i&lt;u.length;++i)u[i]=0;var f=[],h=[],p=new Array(3*n),d=new Array(3*n),g=null;e&amp;&amp;(g=[]);var m=new a(r,p,d,u,f,h,g);for(i=0;i&lt;n;++i)for(var v=r[i],y=0;y&lt;3;++y){s=v[y],l=v[(y+1)%3];var x=p[3*i+y]=m.locate(l,s,t.opposite(l,s)),b=d[3*i+y]=t.isConstraint(s,l);x&lt;0&amp;&amp;(b?h.push(i):(f.push(i),u[i]=1),e&amp;&amp;g.push([l,s,-1]))}return m}(t,r);if(0===e)return r?n.cells.concat(n.boundary):n.cells;var i=1,s=n.active,l=n.next,c=n.flags,u=n.cells,f=n.constraint,h=n.neighbor;for(;s.length&gt;0||l.length&gt;0;){for(;s.length&gt;0;){var p=s.pop();if(c[p]!==-i){c[p]=i;u[p];for(var d=0;d&lt;3;++d){var g=h[3*p+d];g&gt;=0&amp;&amp;0===c[g]&amp;&amp;(f[3*p+d]?l.push(g):(s.push(g),c[g]=i))}}}var m=l;l=s,s=m,l.length=0,i=-i}var v=function(t,e,r){for(var n=0,i=0;i&lt;t.length;++i)e[i]===r&amp;&amp;(t[n++]=t[i]);return t.length=n,t}(u,c,e);if(r)return v.concat(n.boundary);return v},a.prototype.locate=(n=[0,0,0],function(t,e,r){var a=t,s=e,l=r;return e&lt;r?e&lt;t&amp;&amp;(a=e,s=r,l=t):r&lt;t&amp;&amp;(a=r,s=t,l=e),a&lt;0?-1:(n[0]=a,n[1]=s,n[2]=l,i.eq(this.cells,n,o))})},{&quot;binary-search-bounds&quot;:96}],115:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;robust-orientation&quot;)[3];function a(t,e,r,n,i){this.a=t,this.b=e,this.idx=r,this.lowerIds=n,this.upperIds=i}function o(t,e,r,n){this.a=t,this.b=e,this.type=r,this.idx=n}function s(t,e){var r=t.a[0]-e.a[0]||t.a[1]-e.a[1]||t.type-e.type;return r||(0!==t.type&amp;&amp;(r=i(t.a,t.b,e.b))?r:t.idx-e.idx)}function l(t,e){return i(t.a,t.b,e)}function c(t,e,r,a,o){for(var s=n.lt(e,a,l),c=n.gt(e,a,l),u=s;u&lt;c;++u){for(var f=e[u],h=f.lowerIds,p=h.length;p&gt;1&amp;&amp;i(r[h[p-2]],r[h[p-1]],a)&gt;0;)t.push([h[p-1],h[p-2],o]),p-=1;h.length=p,h.push(o);var d=f.upperIds;for(p=d.length;p&gt;1&amp;&amp;i(r[d[p-2]],r[d[p-1]],a)&lt;0;)t.push([d[p-2],d[p-1],o]),p-=1;d.length=p,d.push(o)}}function u(t,e){var r;return(r=t.a[0]&lt;e.a[0]?i(t.a,t.b,e.a):i(e.b,e.a,t.a))?r:(r=e.b[0]&lt;t.b[0]?i(t.a,t.b,e.b):i(e.b,e.a,t.b))||t.idx-e.idx}function f(t,e,r){var i=n.le(t,r,u),o=t[i],s=o.upperIds,l=s[s.length-1];o.upperIds=[l],t.splice(i+1,0,new a(r.a,r.b,r.idx,[l],s))}function h(t,e,r){var i=r.a;r.a=r.b,r.b=i;var a=n.eq(t,r,u),o=t[a];t[a-1].upperIds=o.upperIds,t.splice(a,1)}e.exports=function(t,e){for(var r=t.length,n=e.length,i=[],l=0;l&lt;r;++l)i.push(new o(t[l],null,0,l));for(l=0;l&lt;n;++l){var u=e[l],p=t[u[0]],d=t[u[1]];p[0]&lt;d[0]?i.push(new o(p,d,2,l),new o(d,p,1,l)):p[0]&gt;d[0]&amp;&amp;i.push(new o(d,p,2,l),new o(p,d,1,l))}i.sort(s);for(var g=i[0].a[0]-(1+Math.abs(i[0].a[0]))*Math.pow(2,-52),m=[new a([g,1],[g,0],-1,[],[],[],[])],v=[],y=(l=0,i.length);l&lt;y;++l){var x=i[l],b=x.type;0===b?c(v,m,t,x.a,x.idx):2===b?f(m,t,x):h(m,t,x)}return v}},{&quot;binary-search-bounds&quot;:96,&quot;robust-orientation&quot;:548}],116:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;);function i(t,e){this.stars=t,this.edges=e}e.exports=function(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=[];return new i(r,e)};var a=i.prototype;function o(t,e,r){for(var n=1,i=t.length;n&lt;i;n+=2)if(t[n-1]===e&amp;&amp;t[n]===r)return t[n-1]=t[i-2],t[n]=t[i-1],void(t.length=i-2)}a.isConstraint=function(){var t=[0,0];function e(t,e){return t[0]-e[0]||t[1]-e[1]}return function(r,i){return t[0]=Math.min(r,i),t[1]=Math.max(r,i),n.eq(this.edges,t,e)&gt;=0}}(),a.removeTriangle=function(t,e,r){var n=this.stars;o(n[t],e,r),o(n[e],r,t),o(n[r],t,e)},a.addTriangle=function(t,e,r){var n=this.stars;n[t].push(e,r),n[e].push(r,t),n[r].push(t,e)},a.opposite=function(t,e){for(var r=this.stars[e],n=1,i=r.length;n&lt;i;n+=2)if(r[n]===t)return r[n-1];return-1},a.flip=function(t,e){var r=this.opposite(t,e),n=this.opposite(e,t);this.removeTriangle(t,e,r),this.removeTriangle(e,t,n),this.addTriangle(t,n,r),this.addTriangle(e,r,n)},a.edges=function(){for(var t=this.stars,e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;a+=2)e.push([i[a],i[a+1]]);return e},a.cells=function(){for(var t=this.stars,e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;a+=2){var s=i[a],l=i[a+1];r&lt;Math.min(s,l)&amp;&amp;e.push([r,s,l])}return e}},{&quot;binary-search-bounds&quot;:96}],117:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=1,r=1;r&lt;t.length;++r)for(var n=0;n&lt;r;++n)if(t[r]&lt;t[n])e=-e;else if(t[n]===t[r])return 0;return e}},{}],118:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;dup&quot;),i=t(&quot;robust-linear-solve&quot;);function a(t,e){for(var r=0,n=t.length,i=0;i&lt;n;++i)r+=t[i]*e[i];return r}function o(t){var e=t.length;if(0===e)return[];t[0].length;var r=n([t.length+1,t.length+1],1),o=n([t.length+1],1);r[e][e]=0;for(var s=0;s&lt;e;++s){for(var l=0;l&lt;=s;++l)r[l][s]=r[s][l]=2*a(t[s],t[l]);o[s]=a(t[s],t[s])}var c=i(r,o),u=0,f=c[e+1];for(s=0;s&lt;f.length;++s)u+=f[s];var h=new Array(e);for(s=0;s&lt;e;++s){f=c[s];var p=0;for(l=0;l&lt;f.length;++l)p+=f[l];h[s]=p/u}return h}function s(t){if(0===t.length)return[];for(var e=t[0].length,r=n([e]),i=o(t),a=0;a&lt;t.length;++a)for(var s=0;s&lt;e;++s)r[s]+=t[a][s]*i[a];return r}s.barycenetric=o,e.exports=s},{dup:176,&quot;robust-linear-solve&quot;:547}],119:[function(t,e,r){e.exports=function(t){for(var e=n(t),r=0,i=0;i&lt;t.length;++i)for(var a=t[i],o=0;o&lt;e.length;++o)r+=Math.pow(a[o]-e[o],2);return Math.sqrt(r/t.length)};var n=t(&quot;circumcenter&quot;)},{circumcenter:118}],120:[function(t,e,r){e.exports=function(t,e,r){return e&lt;r?t&lt;e?e:t&gt;r?r:t:t&lt;r?r:t&gt;e?e:t}},{}],121:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n;if(r){n=e;for(var i=new Array(e.length),a=0;a&lt;e.length;++a){var o=e[a];i[a]=[o[0],o[1],r[a]]}e=i}var s=function(t,e,r){var n=d(t,[],p(t));return v(e,n,r),!!n}(t,e,!!r);for(;y(t,e,!!r);)s=!0;if(r&amp;&amp;s){n.length=0,r.length=0;for(a=0;a&lt;e.length;++a){o=e[a];n.push([o[0],o[1]]),r.push(o[2])}}return s};var n=t(&quot;union-find&quot;),i=t(&quot;box-intersect&quot;),a=t(&quot;robust-segment-intersect&quot;),o=t(&quot;big-rat&quot;),s=t(&quot;big-rat/cmp&quot;),l=t(&quot;big-rat/to-float&quot;),c=t(&quot;rat-vec&quot;),u=t(&quot;nextafter&quot;),f=t(&quot;./lib/rat-seg-intersect&quot;);function h(t){var e=l(t);return[u(e,-1/0),u(e,1/0)]}function p(t){for(var e=new Array(t.length),r=0;r&lt;t.length;++r){var n=t[r];e[r]=[u(n[0],-1/0),u(n[1],-1/0),u(n[0],1/0),u(n[1],1/0)]}return e}function d(t,e,r){for(var a=e.length,o=new n(a),s=[],l=0;l&lt;e.length;++l){var c=e[l],f=h(c[0]),p=h(c[1]);s.push([u(f[0],-1/0),u(p[0],-1/0),u(f[1],1/0),u(p[1],1/0)])}i(s,(function(t,e){o.link(t,e)}));var d=!0,g=new Array(a);for(l=0;l&lt;a;++l){(v=o.find(l))!==l&amp;&amp;(d=!1,t[v]=[Math.min(t[l][0],t[v][0]),Math.min(t[l][1],t[v][1])])}if(d)return null;var m=0;for(l=0;l&lt;a;++l){var v;(v=o.find(l))===l?(g[l]=m,t[m++]=t[l]):g[l]=-1}t.length=m;for(l=0;l&lt;a;++l)g[l]&lt;0&amp;&amp;(g[l]=g[o.find(l)]);return g}function g(t,e){return t[0]-e[0]||t[1]-e[1]}function m(t,e){var r=t[0]-e[0]||t[1]-e[1];return r||(t[2]&lt;e[2]?-1:t[2]&gt;e[2]?1:0)}function v(t,e,r){if(0!==t.length){if(e)for(var n=0;n&lt;t.length;++n){var i=e[(o=t[n])[0]],a=e[o[1]];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}else for(n=0;n&lt;t.length;++n){var o;i=(o=t[n])[0],a=o[1];o[0]=Math.min(i,a),o[1]=Math.max(i,a)}r?t.sort(m):t.sort(g);var s=1;for(n=1;n&lt;t.length;++n){var l=t[n-1],c=t[n];(c[0]!==l[0]||c[1]!==l[1]||r&amp;&amp;c[2]!==l[2])&amp;&amp;(t[s++]=c)}t.length=s}}function y(t,e,r){var n=function(t,e){for(var r=new Array(e.length),n=0;n&lt;e.length;++n){var i=e[n],a=t[i[0]],o=t[i[1]];r[n]=[u(Math.min(a[0],o[0]),-1/0),u(Math.min(a[1],o[1]),-1/0),u(Math.max(a[0],o[0]),1/0),u(Math.max(a[1],o[1]),1/0)]}return r}(t,e),h=function(t,e,r){var n=[];return i(r,(function(r,i){var o=e[r],s=e[i];if(o[0]!==s[0]&amp;&amp;o[0]!==s[1]&amp;&amp;o[1]!==s[0]&amp;&amp;o[1]!==s[1]){var l=t[o[0]],c=t[o[1]],u=t[s[0]],f=t[s[1]];a(l,c,u,f)&amp;&amp;n.push([r,i])}})),n}(t,e,n),g=p(t),m=function(t,e,r,n){var o=[];return i(r,n,(function(r,n){var i=e[r];if(i[0]!==n&amp;&amp;i[1]!==n){var s=t[n],l=t[i[0]],c=t[i[1]];a(l,c,s,s)&amp;&amp;o.push([r,n])}})),o}(t,e,n,g),y=d(t,function(t,e,r,n,i){var a,u,h=t.map((function(t){return[o(t[0]),o(t[1])]}));for(a=0;a&lt;r.length;++a){var p=r[a];u=p[0];var d=p[1],g=e[u],m=e[d],v=f(c(t[g[0]]),c(t[g[1]]),c(t[m[0]]),c(t[m[1]]));if(v){var y=t.length;t.push([l(v[0]),l(v[1])]),h.push(v),n.push([u,y],[d,y])}}for(n.sort((function(t,e){if(t[0]!==e[0])return t[0]-e[0];var r=h[t[1]],n=h[e[1]];return s(r[0],n[0])||s(r[1],n[1])})),a=n.length-1;a&gt;=0;--a){var x=e[u=(S=n[a])[0]],b=x[0],_=x[1],w=t[b],T=t[_];if((w[0]-T[0]||w[1]-T[1])&lt;0){var k=b;b=_,_=k}x[0]=b;var M,A=x[1]=S[1];for(i&amp;&amp;(M=x[2]);a&gt;0&amp;&amp;n[a-1][0]===u;){var S,E=(S=n[--a])[1];i?e.push([A,E,M]):e.push([A,E]),A=E}i?e.push([A,_,M]):e.push([A,_])}return h}(t,e,h,m,r));return v(e,y,r),!!y||(h.length&gt;0||m.length&gt;0)}},{&quot;./lib/rat-seg-intersect&quot;:122,&quot;big-rat&quot;:83,&quot;big-rat/cmp&quot;:81,&quot;big-rat/to-float&quot;:95,&quot;box-intersect&quot;:101,nextafter:496,&quot;rat-vec&quot;:530,&quot;robust-segment-intersect&quot;:551,&quot;union-find&quot;:596}],122:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var a=s(e,t),f=s(n,r),h=u(a,f);if(0===o(h))return null;var p=s(t,r),d=u(f,p),g=i(d,h),m=c(a,g);return l(t,m)};var n=t(&quot;big-rat/mul&quot;),i=t(&quot;big-rat/div&quot;),a=t(&quot;big-rat/sub&quot;),o=t(&quot;big-rat/sign&quot;),s=t(&quot;rat-vec/sub&quot;),l=t(&quot;rat-vec/add&quot;),c=t(&quot;rat-vec/muls&quot;);function u(t,e){return a(n(t[0],e[1]),n(t[1],e[0]))}},{&quot;big-rat/div&quot;:82,&quot;big-rat/mul&quot;:92,&quot;big-rat/sign&quot;:93,&quot;big-rat/sub&quot;:94,&quot;rat-vec/add&quot;:529,&quot;rat-vec/muls&quot;:531,&quot;rat-vec/sub&quot;:532}],123:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;clamp&quot;);function i(t,e){null==e&amp;&amp;(e=!0);var r=t[0],i=t[1],a=t[2],o=t[3];return null==o&amp;&amp;(o=e?1:255),e&amp;&amp;(r*=255,i*=255,a*=255,o*=255),16777216*(r=255&amp;n(r,0,255))+((i=255&amp;n(i,0,255))&lt;&lt;16)+((a=255&amp;n(a,0,255))&lt;&lt;8)+(o=255&amp;n(o,0,255))}e.exports=i,e.exports.to=i,e.exports.from=function(t,e){var r=(t=+t)&gt;&gt;&gt;24,n=(16711680&amp;t)&gt;&gt;&gt;16,i=(65280&amp;t)&gt;&gt;&gt;8,a=255&amp;t;return!1===e?[r,n,i,a]:[r/255,n/255,i/255,a/255]}},{clamp:120}],124:[function(t,e,r){&quot;use strict&quot;;e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],125:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-rgba&quot;),i=t(&quot;clamp&quot;),a=t(&quot;dtype&quot;);e.exports=function(t,e){&quot;float&quot;!==e&amp;&amp;e||(e=&quot;array&quot;),&quot;uint&quot;===e&amp;&amp;(e=&quot;uint8&quot;),&quot;uint_clamped&quot;===e&amp;&amp;(e=&quot;uint8_clamped&quot;);var r=new(a(e))(4),o=&quot;uint8&quot;!==e&amp;&amp;&quot;uint8_clamped&quot;!==e;return t.length&amp;&amp;&quot;string&quot;!=typeof t||((t=n(t))[0]/=255,t[1]/=255,t[2]/=255),function(t){return t instanceof Uint8Array||t instanceof Uint8ClampedArray||!!(Array.isArray(t)&amp;&amp;(t[0]&gt;1||0===t[0])&amp;&amp;(t[1]&gt;1||0===t[1])&amp;&amp;(t[2]&gt;1||0===t[2])&amp;&amp;(!t[3]||t[3]&gt;1))}(t)?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:255,o&amp;&amp;(r[0]/=255,r[1]/=255,r[2]/=255,r[3]/=255),r):(o?(r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=null!=t[3]?t[3]:1):(r[0]=i(Math.floor(255*t[0]),0,255),r[1]=i(Math.floor(255*t[1]),0,255),r[2]=i(Math.floor(255*t[2]),0,255),r[3]=null==t[3]?255:i(Math.floor(255*t[3]),0,255)),r)}},{clamp:120,&quot;color-rgba&quot;:127,dtype:175}],126:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;color-name&quot;),i=t(&quot;is-plain-obj&quot;),a=t(&quot;defined&quot;);e.exports=function(t){var e,s,l=[],c=1;if(&quot;string&quot;==typeof t)if(n[t])l=n[t].slice(),s=&quot;rgb&quot;;else if(&quot;transparent&quot;===t)c=0,s=&quot;rgb&quot;,l=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(t)){var u=(p=t.slice(1)).length;c=1,u&lt;=4?(l=[parseInt(p[0]+p[0],16),parseInt(p[1]+p[1],16),parseInt(p[2]+p[2],16)],4===u&amp;&amp;(c=parseInt(p[3]+p[3],16)/255)):(l=[parseInt(p[0]+p[1],16),parseInt(p[2]+p[3],16),parseInt(p[4]+p[5],16)],8===u&amp;&amp;(c=parseInt(p[6]+p[7],16)/255)),l[0]||(l[0]=0),l[1]||(l[1]=0),l[2]||(l[2]=0),s=&quot;rgb&quot;}else if(e=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(t)){var f=e[1],h=&quot;rgb&quot;===f,p=f.replace(/a$/,&quot;&quot;);s=p;u=&quot;cmyk&quot;===p?4:&quot;gray&quot;===p?1:3;l=e[2].trim().split(/\s*,\s*/).map((function(t,e){if(/%$/.test(t))return e===u?parseFloat(t)/100:&quot;rgb&quot;===p?255*parseFloat(t)/100:parseFloat(t);if(&quot;h&quot;===p[e]){if(/deg$/.test(t))return parseFloat(t);if(void 0!==o[t])return o[t]}return parseFloat(t)})),f===p&amp;&amp;l.push(1),c=h||void 0===l[u]?1:l[u],l=l.slice(0,u)}else t.length&gt;10&amp;&amp;/[0-9](?:\s|\/)/.test(t)&amp;&amp;(l=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),s=t.match(/([a-z])/gi).join(&quot;&quot;).toLowerCase());else if(isNaN(t))if(i(t)){var d=a(t.r,t.red,t.R,null);null!==d?(s=&quot;rgb&quot;,l=[d,a(t.g,t.green,t.G),a(t.b,t.blue,t.B)]):(s=&quot;hsl&quot;,l=[a(t.h,t.hue,t.H),a(t.s,t.saturation,t.S),a(t.l,t.lightness,t.L,t.b,t.brightness)]),c=a(t.a,t.alpha,t.opacity,1),null!=t.opacity&amp;&amp;(c/=100)}else(Array.isArray(t)||r.ArrayBuffer&amp;&amp;ArrayBuffer.isView&amp;&amp;ArrayBuffer.isView(t))&amp;&amp;(l=[t[0],t[1],t[2]],s=&quot;rgb&quot;,c=4===t.length?t[3]:1);else s=&quot;rgb&quot;,l=[t&gt;&gt;&gt;16,(65280&amp;t)&gt;&gt;&gt;8,255&amp;t];return{space:s,values:l,alpha:c}};var o={red:0,orange:60,yellow:120,green:180,blue:240,purple:300}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;color-name&quot;:124,defined:170,&quot;is-plain-obj&quot;:469}],127:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-parse&quot;),i=t(&quot;color-space/hsl&quot;),a=t(&quot;clamp&quot;);e.exports=function(t){var e,r=n(t);return r.space?((e=Array(3))[0]=a(r.values[0],0,255),e[1]=a(r.values[1],0,255),e[2]=a(r.values[2],0,255),&quot;h&quot;===r.space[0]&amp;&amp;(e=i.rgb(e)),e.push(a(r.alpha,0,1)),e):[]}},{clamp:120,&quot;color-parse&quot;:126,&quot;color-space/hsl&quot;:128}],128:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./rgb&quot;);e.exports={name:&quot;hsl&quot;,min:[0,0,0],max:[360,100,100],channel:[&quot;hue&quot;,&quot;saturation&quot;,&quot;lightness&quot;],alias:[&quot;HSL&quot;],rgb:function(t){var e,r,n,i,a,o=t[0]/360,s=t[1]/100,l=t[2]/100;if(0===s)return[a=255*l,a,a];e=2*l-(r=l&lt;.5?l*(1+s):l+s-l*s),i=[0,0,0];for(var c=0;c&lt;3;c++)(n=o+1/3*-(c-1))&lt;0?n++:n&gt;1&amp;&amp;n--,a=6*n&lt;1?e+6*(r-e)*n:2*n&lt;1?r:3*n&lt;2?e+(r-e)*(2/3-n)*6:e,i[c]=255*a;return i}},n.hsl=function(t){var e,r,n=t[0]/255,i=t[1]/255,a=t[2]/255,o=Math.min(n,i,a),s=Math.max(n,i,a),l=s-o;return s===o?e=0:n===s?e=(i-a)/l:i===s?e=2+(a-n)/l:a===s&amp;&amp;(e=4+(n-i)/l),(e=Math.min(60*e,360))&lt;0&amp;&amp;(e+=360),r=(o+s)/2,[e,100*(s===o?0:r&lt;=.5?l/(s+o):l/(2-s-o)),100*r]}},{&quot;./rgb&quot;:129}],129:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;rgb&quot;,min:[0,0,0],max:[255,255,255],channel:[&quot;red&quot;,&quot;green&quot;,&quot;blue&quot;],alias:[&quot;RGB&quot;]}},{}],130:[function(t,e,r){e.exports={jet:[{index:0,rgb:[0,0,131]},{index:.125,rgb:[0,60,170]},{index:.375,rgb:[5,255,255]},{index:.625,rgb:[255,255,0]},{index:.875,rgb:[250,0,0]},{index:1,rgb:[128,0,0]}],hsv:[{index:0,rgb:[255,0,0]},{index:.169,rgb:[253,255,2]},{index:.173,rgb:[247,255,2]},{index:.337,rgb:[0,252,4]},{index:.341,rgb:[0,252,10]},{index:.506,rgb:[1,249,255]},{index:.671,rgb:[2,0,253]},{index:.675,rgb:[8,0,253]},{index:.839,rgb:[255,0,251]},{index:.843,rgb:[255,0,245]},{index:1,rgb:[255,0,6]}],hot:[{index:0,rgb:[0,0,0]},{index:.3,rgb:[230,0,0]},{index:.6,rgb:[255,210,0]},{index:1,rgb:[255,255,255]}],cool:[{index:0,rgb:[0,255,255]},{index:1,rgb:[255,0,255]}],spring:[{index:0,rgb:[255,0,255]},{index:1,rgb:[255,255,0]}],summer:[{index:0,rgb:[0,128,102]},{index:1,rgb:[255,255,102]}],autumn:[{index:0,rgb:[255,0,0]},{index:1,rgb:[255,255,0]}],winter:[{index:0,rgb:[0,0,255]},{index:1,rgb:[0,255,128]}],bone:[{index:0,rgb:[0,0,0]},{index:.376,rgb:[84,84,116]},{index:.753,rgb:[169,200,200]},{index:1,rgb:[255,255,255]}],copper:[{index:0,rgb:[0,0,0]},{index:.804,rgb:[255,160,102]},{index:1,rgb:[255,199,127]}],greys:[{index:0,rgb:[0,0,0]},{index:1,rgb:[255,255,255]}],yignbu:[{index:0,rgb:[8,29,88]},{index:.125,rgb:[37,52,148]},{index:.25,rgb:[34,94,168]},{index:.375,rgb:[29,145,192]},{index:.5,rgb:[65,182,196]},{index:.625,rgb:[127,205,187]},{index:.75,rgb:[199,233,180]},{index:.875,rgb:[237,248,217]},{index:1,rgb:[255,255,217]}],greens:[{index:0,rgb:[0,68,27]},{index:.125,rgb:[0,109,44]},{index:.25,rgb:[35,139,69]},{index:.375,rgb:[65,171,93]},{index:.5,rgb:[116,196,118]},{index:.625,rgb:[161,217,155]},{index:.75,rgb:[199,233,192]},{index:.875,rgb:[229,245,224]},{index:1,rgb:[247,252,245]}],yiorrd:[{index:0,rgb:[128,0,38]},{index:.125,rgb:[189,0,38]},{index:.25,rgb:[227,26,28]},{index:.375,rgb:[252,78,42]},{index:.5,rgb:[253,141,60]},{index:.625,rgb:[254,178,76]},{index:.75,rgb:[254,217,118]},{index:.875,rgb:[255,237,160]},{index:1,rgb:[255,255,204]}],bluered:[{index:0,rgb:[0,0,255]},{index:1,rgb:[255,0,0]}],rdbu:[{index:0,rgb:[5,10,172]},{index:.35,rgb:[106,137,247]},{index:.5,rgb:[190,190,190]},{index:.6,rgb:[220,170,132]},{index:.7,rgb:[230,145,90]},{index:1,rgb:[178,10,28]}],picnic:[{index:0,rgb:[0,0,255]},{index:.1,rgb:[51,153,255]},{index:.2,rgb:[102,204,255]},{index:.3,rgb:[153,204,255]},{index:.4,rgb:[204,204,255]},{index:.5,rgb:[255,255,255]},{index:.6,rgb:[255,204,255]},{index:.7,rgb:[255,153,255]},{index:.8,rgb:[255,102,204]},{index:.9,rgb:[255,102,102]},{index:1,rgb:[255,0,0]}],rainbow:[{index:0,rgb:[150,0,90]},{index:.125,rgb:[0,0,200]},{index:.25,rgb:[0,25,255]},{index:.375,rgb:[0,152,255]},{index:.5,rgb:[44,255,150]},{index:.625,rgb:[151,255,0]},{index:.75,rgb:[255,234,0]},{index:.875,rgb:[255,111,0]},{index:1,rgb:[255,0,0]}],portland:[{index:0,rgb:[12,51,131]},{index:.25,rgb:[10,136,186]},{index:.5,rgb:[242,211,56]},{index:.75,rgb:[242,143,56]},{index:1,rgb:[217,30,30]}],blackbody:[{index:0,rgb:[0,0,0]},{index:.2,rgb:[230,0,0]},{index:.4,rgb:[230,210,0]},{index:.7,rgb:[255,255,255]},{index:1,rgb:[160,200,255]}],earth:[{index:0,rgb:[0,0,130]},{index:.1,rgb:[0,180,180]},{index:.2,rgb:[40,210,40]},{index:.4,rgb:[230,230,50]},{index:.6,rgb:[120,70,20]},{index:1,rgb:[255,255,255]}],electric:[{index:0,rgb:[0,0,0]},{index:.15,rgb:[30,0,100]},{index:.4,rgb:[120,0,100]},{index:.6,rgb:[160,90,0]},{index:.8,rgb:[230,200,0]},{index:1,rgb:[255,250,220]}],alpha:[{index:0,rgb:[255,255,255,0]},{index:1,rgb:[255,255,255,1]}],viridis:[{index:0,rgb:[68,1,84]},{index:.13,rgb:[71,44,122]},{index:.25,rgb:[59,81,139]},{index:.38,rgb:[44,113,142]},{index:.5,rgb:[33,144,141]},{index:.63,rgb:[39,173,129]},{index:.75,rgb:[92,200,99]},{index:.88,rgb:[170,220,50]},{index:1,rgb:[253,231,37]}],inferno:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[31,12,72]},{index:.25,rgb:[85,15,109]},{index:.38,rgb:[136,34,106]},{index:.5,rgb:[186,54,85]},{index:.63,rgb:[227,89,51]},{index:.75,rgb:[249,140,10]},{index:.88,rgb:[249,201,50]},{index:1,rgb:[252,255,164]}],magma:[{index:0,rgb:[0,0,4]},{index:.13,rgb:[28,16,68]},{index:.25,rgb:[79,18,123]},{index:.38,rgb:[129,37,129]},{index:.5,rgb:[181,54,122]},{index:.63,rgb:[229,80,100]},{index:.75,rgb:[251,135,97]},{index:.88,rgb:[254,194,135]},{index:1,rgb:[252,253,191]}],plasma:[{index:0,rgb:[13,8,135]},{index:.13,rgb:[75,3,161]},{index:.25,rgb:[125,3,168]},{index:.38,rgb:[168,34,150]},{index:.5,rgb:[203,70,121]},{index:.63,rgb:[229,107,93]},{index:.75,rgb:[248,148,65]},{index:.88,rgb:[253,195,40]},{index:1,rgb:[240,249,33]}],warm:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[172,0,187]},{index:.25,rgb:[219,0,170]},{index:.38,rgb:[255,0,130]},{index:.5,rgb:[255,63,74]},{index:.63,rgb:[255,123,0]},{index:.75,rgb:[234,176,0]},{index:.88,rgb:[190,228,0]},{index:1,rgb:[147,255,0]}],cool:[{index:0,rgb:[125,0,179]},{index:.13,rgb:[116,0,218]},{index:.25,rgb:[98,74,237]},{index:.38,rgb:[68,146,231]},{index:.5,rgb:[0,204,197]},{index:.63,rgb:[0,247,146]},{index:.75,rgb:[0,255,88]},{index:.88,rgb:[40,255,8]},{index:1,rgb:[147,255,0]}],&quot;rainbow-soft&quot;:[{index:0,rgb:[125,0,179]},{index:.1,rgb:[199,0,180]},{index:.2,rgb:[255,0,121]},{index:.3,rgb:[255,108,0]},{index:.4,rgb:[222,194,0]},{index:.5,rgb:[150,255,0]},{index:.6,rgb:[0,255,55]},{index:.7,rgb:[0,246,150]},{index:.8,rgb:[50,167,222]},{index:.9,rgb:[103,51,235]},{index:1,rgb:[124,0,186]}],bathymetry:[{index:0,rgb:[40,26,44]},{index:.13,rgb:[59,49,90]},{index:.25,rgb:[64,76,139]},{index:.38,rgb:[63,110,151]},{index:.5,rgb:[72,142,158]},{index:.63,rgb:[85,174,163]},{index:.75,rgb:[120,206,163]},{index:.88,rgb:[187,230,172]},{index:1,rgb:[253,254,204]}],cdom:[{index:0,rgb:[47,15,62]},{index:.13,rgb:[87,23,86]},{index:.25,rgb:[130,28,99]},{index:.38,rgb:[171,41,96]},{index:.5,rgb:[206,67,86]},{index:.63,rgb:[230,106,84]},{index:.75,rgb:[242,149,103]},{index:.88,rgb:[249,193,135]},{index:1,rgb:[254,237,176]}],chlorophyll:[{index:0,rgb:[18,36,20]},{index:.13,rgb:[25,63,41]},{index:.25,rgb:[24,91,59]},{index:.38,rgb:[13,119,72]},{index:.5,rgb:[18,148,80]},{index:.63,rgb:[80,173,89]},{index:.75,rgb:[132,196,122]},{index:.88,rgb:[175,221,162]},{index:1,rgb:[215,249,208]}],density:[{index:0,rgb:[54,14,36]},{index:.13,rgb:[89,23,80]},{index:.25,rgb:[110,45,132]},{index:.38,rgb:[120,77,178]},{index:.5,rgb:[120,113,213]},{index:.63,rgb:[115,151,228]},{index:.75,rgb:[134,185,227]},{index:.88,rgb:[177,214,227]},{index:1,rgb:[230,241,241]}],&quot;freesurface-blue&quot;:[{index:0,rgb:[30,4,110]},{index:.13,rgb:[47,14,176]},{index:.25,rgb:[41,45,236]},{index:.38,rgb:[25,99,212]},{index:.5,rgb:[68,131,200]},{index:.63,rgb:[114,156,197]},{index:.75,rgb:[157,181,203]},{index:.88,rgb:[200,208,216]},{index:1,rgb:[241,237,236]}],&quot;freesurface-red&quot;:[{index:0,rgb:[60,9,18]},{index:.13,rgb:[100,17,27]},{index:.25,rgb:[142,20,29]},{index:.38,rgb:[177,43,27]},{index:.5,rgb:[192,87,63]},{index:.63,rgb:[205,125,105]},{index:.75,rgb:[216,162,148]},{index:.88,rgb:[227,199,193]},{index:1,rgb:[241,237,236]}],oxygen:[{index:0,rgb:[64,5,5]},{index:.13,rgb:[106,6,15]},{index:.25,rgb:[144,26,7]},{index:.38,rgb:[168,64,3]},{index:.5,rgb:[188,100,4]},{index:.63,rgb:[206,136,11]},{index:.75,rgb:[220,174,25]},{index:.88,rgb:[231,215,44]},{index:1,rgb:[248,254,105]}],par:[{index:0,rgb:[51,20,24]},{index:.13,rgb:[90,32,35]},{index:.25,rgb:[129,44,34]},{index:.38,rgb:[159,68,25]},{index:.5,rgb:[182,99,19]},{index:.63,rgb:[199,134,22]},{index:.75,rgb:[212,171,35]},{index:.88,rgb:[221,210,54]},{index:1,rgb:[225,253,75]}],phase:[{index:0,rgb:[145,105,18]},{index:.13,rgb:[184,71,38]},{index:.25,rgb:[186,58,115]},{index:.38,rgb:[160,71,185]},{index:.5,rgb:[110,97,218]},{index:.63,rgb:[50,123,164]},{index:.75,rgb:[31,131,110]},{index:.88,rgb:[77,129,34]},{index:1,rgb:[145,105,18]}],salinity:[{index:0,rgb:[42,24,108]},{index:.13,rgb:[33,50,162]},{index:.25,rgb:[15,90,145]},{index:.38,rgb:[40,118,137]},{index:.5,rgb:[59,146,135]},{index:.63,rgb:[79,175,126]},{index:.75,rgb:[120,203,104]},{index:.88,rgb:[193,221,100]},{index:1,rgb:[253,239,154]}],temperature:[{index:0,rgb:[4,35,51]},{index:.13,rgb:[23,51,122]},{index:.25,rgb:[85,59,157]},{index:.38,rgb:[129,79,143]},{index:.5,rgb:[175,95,130]},{index:.63,rgb:[222,112,101]},{index:.75,rgb:[249,146,66]},{index:.88,rgb:[249,196,65]},{index:1,rgb:[232,250,91]}],turbidity:[{index:0,rgb:[34,31,27]},{index:.13,rgb:[65,50,41]},{index:.25,rgb:[98,69,52]},{index:.38,rgb:[131,89,57]},{index:.5,rgb:[161,112,59]},{index:.63,rgb:[185,140,66]},{index:.75,rgb:[202,174,88]},{index:.88,rgb:[216,209,126]},{index:1,rgb:[233,246,171]}],&quot;velocity-blue&quot;:[{index:0,rgb:[17,32,64]},{index:.13,rgb:[35,52,116]},{index:.25,rgb:[29,81,156]},{index:.38,rgb:[31,113,162]},{index:.5,rgb:[50,144,169]},{index:.63,rgb:[87,173,176]},{index:.75,rgb:[149,196,189]},{index:.88,rgb:[203,221,211]},{index:1,rgb:[254,251,230]}],&quot;velocity-green&quot;:[{index:0,rgb:[23,35,19]},{index:.13,rgb:[24,64,38]},{index:.25,rgb:[11,95,45]},{index:.38,rgb:[39,123,35]},{index:.5,rgb:[95,146,12]},{index:.63,rgb:[152,165,18]},{index:.75,rgb:[201,186,69]},{index:.88,rgb:[233,216,137]},{index:1,rgb:[255,253,205]}],cubehelix:[{index:0,rgb:[0,0,0]},{index:.07,rgb:[22,5,59]},{index:.13,rgb:[60,4,105]},{index:.2,rgb:[109,1,135]},{index:.27,rgb:[161,0,147]},{index:.33,rgb:[210,2,142]},{index:.4,rgb:[251,11,123]},{index:.47,rgb:[255,29,97]},{index:.53,rgb:[255,54,69]},{index:.6,rgb:[255,85,46]},{index:.67,rgb:[255,120,34]},{index:.73,rgb:[255,157,37]},{index:.8,rgb:[241,191,57]},{index:.87,rgb:[224,220,93]},{index:.93,rgb:[218,241,142]},{index:1,rgb:[227,253,198]}]}},{}],131:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./colorScale&quot;),i=t(&quot;lerp&quot;);function a(t){return[t[0]/255,t[1]/255,t[2]/255,t[3]]}function o(t){for(var e,r=&quot;#&quot;,n=0;n&lt;3;++n)r+=(&quot;00&quot;+(e=(e=t[n]).toString(16))).substr(e.length);return r}function s(t){return&quot;rgba(&quot;+t.join(&quot;,&quot;)+&quot;)&quot;}e.exports=function(t){var e,r,l,c,u,f,h,p,d,g;t||(t={});p=(t.nshades||72)-1,h=t.format||&quot;hex&quot;,(f=t.colormap)||(f=&quot;jet&quot;);if(&quot;string&quot;==typeof f){if(f=f.toLowerCase(),!n[f])throw Error(f+&quot; not a supported colorscale&quot;);u=n[f]}else{if(!Array.isArray(f))throw Error(&quot;unsupported colormap option&quot;,f);u=f.slice()}if(u.length&gt;p+1)throw new Error(f+&quot; map requires nshades to be at least size &quot;+u.length);d=Array.isArray(t.alpha)?2!==t.alpha.length?[1,1]:t.alpha.slice():&quot;number&quot;==typeof t.alpha?[t.alpha,t.alpha]:[1,1];e=u.map((function(t){return Math.round(t.index*p)})),d[0]=Math.min(Math.max(d[0],0),1),d[1]=Math.min(Math.max(d[1],0),1);var m=u.map((function(t,e){var r=u[e].index,n=u[e].rgb.slice();return 4===n.length&amp;&amp;n[3]&gt;=0&amp;&amp;n[3]&lt;=1||(n[3]=d[0]+(d[1]-d[0])*r),n})),v=[];for(g=0;g&lt;e.length-1;++g){c=e[g+1]-e[g],r=m[g],l=m[g+1];for(var y=0;y&lt;c;y++){var x=y/c;v.push([Math.round(i(r[0],l[0],x)),Math.round(i(r[1],l[1],x)),Math.round(i(r[2],l[2],x)),i(r[3],l[3],x)])}}v.push(u[u.length-1].rgb.concat(d[1])),&quot;hex&quot;===h?v=v.map(o):&quot;rgbaString&quot;===h?v=v.map(s):&quot;float&quot;===h&amp;&amp;(v=v.map(a));return v}},{&quot;./colorScale&quot;:130,lerp:472}],132:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a){var o=n(e,r,a);if(0===o){var s=i(n(t,e,r)),c=i(n(t,e,a));if(s===c){if(0===s){var u=l(t,e,r),f=l(t,e,a);return u===f?0:u?1:-1}return 0}return 0===c?s&gt;0||l(t,e,a)?-1:1:0===s?c&gt;0||l(t,e,r)?1:-1:i(c-s)}var h=n(t,e,r);return h&gt;0?o&gt;0&amp;&amp;n(t,e,a)&gt;0?1:-1:h&lt;0?o&gt;0||n(t,e,a)&gt;0?1:-1:n(t,e,a)&gt;0||l(t,e,r)?1:-1};var n=t(&quot;robust-orientation&quot;),i=t(&quot;signum&quot;),a=t(&quot;two-sum&quot;),o=t(&quot;robust-product&quot;),s=t(&quot;robust-sum&quot;);function l(t,e,r){var n=a(t[0],-e[0]),i=a(t[1],-e[1]),l=a(r[0],-e[0]),c=a(r[1],-e[1]),u=s(o(n,l),o(i,c));return u[u.length-1]&gt;=0}},{&quot;robust-orientation&quot;:548,&quot;robust-product&quot;:549,&quot;robust-sum&quot;:553,signum:554,&quot;two-sum&quot;:583}],133:[function(t,e,r){e.exports=function(t,e){var r=t.length,a=t.length-e.length;if(a)return a;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return t[0]+t[1]-e[0]-e[1]||n(t[0],t[1])-n(e[0],e[1]);case 3:var o=t[0]+t[1],s=e[0]+e[1];if(a=o+t[2]-(s+e[2]))return a;var l=n(t[0],t[1]),c=n(e[0],e[1]);return n(l,t[2])-n(c,e[2])||n(l+t[2],o)-n(c+e[2],s);case 4:var u=t[0],f=t[1],h=t[2],p=t[3],d=e[0],g=e[1],m=e[2],v=e[3];return u+f+h+p-(d+g+m+v)||n(u,f,h,p)-n(d,g,m,v,d)||n(u+f,u+h,u+p,f+h,f+p,h+p)-n(d+g,d+m,d+v,g+m,g+v,m+v)||n(u+f+h,u+f+p,u+h+p,f+h+p)-n(d+g+m,d+g+v,d+m+v,g+m+v);default:for(var y=t.slice().sort(i),x=e.slice().sort(i),b=0;b&lt;r;++b)if(a=y[b]-x[b])return a;return 0}};var n=Math.min;function i(t,e){return t-e}},{}],134:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;compare-cell&quot;),i=t(&quot;cell-orientation&quot;);e.exports=function(t,e){return n(t,e)||i(t)-i(e)}},{&quot;cell-orientation&quot;:117,&quot;compare-cell&quot;:133}],135:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/ch1d&quot;),i=t(&quot;./lib/ch2d&quot;),a=t(&quot;./lib/chnd&quot;);e.exports=function(t){var e=t.length;if(0===e)return[];if(1===e)return[[0]];var r=t[0].length;if(0===r)return[];if(1===r)return n(t);if(2===r)return i(t);return a(t,r)}},{&quot;./lib/ch1d&quot;:136,&quot;./lib/ch2d&quot;:137,&quot;./lib/chnd&quot;:138}],136:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=0,r=0,n=1;n&lt;t.length;++n)t[n][0]&lt;t[e][0]&amp;&amp;(e=n),t[n][0]&gt;t[r][0]&amp;&amp;(r=n);return e&lt;r?[[e],[r]]:e&gt;r?[[r],[e]]:[[e]]}},{}],137:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=n(t),r=e.length;if(r&lt;=2)return[];for(var i=new Array(r),a=e[r-1],o=0;o&lt;r;++o){var s=e[o];i[o]=[a,s],a=s}return i};var n=t(&quot;monotone-convex-hull-2d&quot;)},{&quot;monotone-convex-hull-2d&quot;:482}],138:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){try{return n(t,!0)}catch(o){var r=i(t);if(r.length&lt;=e)return[];var a=function(t,e){for(var r=t.length,n=new Array(r),i=0;i&lt;e.length;++i)n[i]=t[e[i]];var a=e.length;for(i=0;i&lt;r;++i)e.indexOf(i)&lt;0&amp;&amp;(n[a++]=t[i]);return n}(t,r);return function(t,e){for(var r=t.length,n=e.length,i=0;i&lt;r;++i)for(var a=t[i],o=0;o&lt;a.length;++o){var s=a[o];if(s&lt;n)a[o]=e[s];else{s-=n;for(var l=0;l&lt;n;++l)s&gt;=e[l]&amp;&amp;(s+=1);a[o]=s}}return t}(n(a,!0),r)}};var n=t(&quot;incremental-convex-hull&quot;),i=t(&quot;affine-hull&quot;)},{&quot;affine-hull&quot;:67,&quot;incremental-convex-hull&quot;:459}],139:[function(t,e,r){e.exports={AFG:&quot;afghan&quot;,ALA:&quot;\\b\\wland&quot;,ALB:&quot;albania&quot;,DZA:&quot;algeria&quot;,ASM:&quot;^(?=.*americ).*samoa&quot;,AND:&quot;andorra&quot;,AGO:&quot;angola&quot;,AIA:&quot;anguill?a&quot;,ATA:&quot;antarctica&quot;,ATG:&quot;antigua&quot;,ARG:&quot;argentin&quot;,ARM:&quot;armenia&quot;,ABW:&quot;^(?!.*bonaire).*\\baruba&quot;,AUS:&quot;australia&quot;,AUT:&quot;^(?!.*hungary).*austria|\\baustri.*\\bemp&quot;,AZE:&quot;azerbaijan&quot;,BHS:&quot;bahamas&quot;,BHR:&quot;bahrain&quot;,BGD:&quot;bangladesh|^(?=.*east).*paki?stan&quot;,BRB:&quot;barbados&quot;,BLR:&quot;belarus|byelo&quot;,BEL:&quot;^(?!.*luxem).*belgium&quot;,BLZ:&quot;belize|^(?=.*british).*honduras&quot;,BEN:&quot;benin|dahome&quot;,BMU:&quot;bermuda&quot;,BTN:&quot;bhutan&quot;,BOL:&quot;bolivia&quot;,BES:&quot;^(?=.*bonaire).*eustatius|^(?=.*carib).*netherlands|\\bbes.?islands&quot;,BIH:&quot;herzegovina|bosnia&quot;,BWA:&quot;botswana|bechuana&quot;,BVT:&quot;bouvet&quot;,BRA:&quot;brazil&quot;,IOT:&quot;british.?indian.?ocean&quot;,BRN:&quot;brunei&quot;,BGR:&quot;bulgaria&quot;,BFA:&quot;burkina|\\bfaso|upper.?volta&quot;,BDI:&quot;burundi&quot;,CPV:&quot;verde&quot;,KHM:&quot;cambodia|kampuchea|khmer&quot;,CMR:&quot;cameroon&quot;,CAN:&quot;canada&quot;,CYM:&quot;cayman&quot;,CAF:&quot;\\bcentral.african.republic&quot;,TCD:&quot;\\bchad&quot;,CHL:&quot;\\bchile&quot;,CHN:&quot;^(?!.*\\bmac)(?!.*\\bhong)(?!.*\\btai)(?!.*\\brep).*china|^(?=.*peo)(?=.*rep).*china&quot;,CXR:&quot;christmas&quot;,CCK:&quot;\\bcocos|keeling&quot;,COL:&quot;colombia&quot;,COM:&quot;comoro&quot;,COG:&quot;^(?!.*\\bdem)(?!.*\\bd[\\.]?r)(?!.*kinshasa)(?!.*zaire)(?!.*belg)(?!.*l.opoldville)(?!.*free).*\\bcongo&quot;,COK:&quot;\\bcook&quot;,CRI:&quot;costa.?rica&quot;,CIV:&quot;ivoire|ivory&quot;,HRV:&quot;croatia&quot;,CUB:&quot;\\bcuba&quot;,CUW:&quot;^(?!.*bonaire).*\\bcura(c|\xe7)ao&quot;,CYP:&quot;cyprus&quot;,CSK:&quot;czechoslovakia&quot;,CZE:&quot;^(?=.*rep).*czech|czechia|bohemia&quot;,COD:&quot;\\bdem.*congo|congo.*\\bdem|congo.*\\bd[\\.]?r|\\bd[\\.]?r.*congo|belgian.?congo|congo.?free.?state|kinshasa|zaire|l.opoldville|drc|droc|rdc&quot;,DNK:&quot;denmark&quot;,DJI:&quot;djibouti&quot;,DMA:&quot;dominica(?!n)&quot;,DOM:&quot;dominican.rep&quot;,ECU:&quot;ecuador&quot;,EGY:&quot;egypt&quot;,SLV:&quot;el.?salvador&quot;,GNQ:&quot;guine.*eq|eq.*guine|^(?=.*span).*guinea&quot;,ERI:&quot;eritrea&quot;,EST:&quot;estonia&quot;,ETH:&quot;ethiopia|abyssinia&quot;,FLK:&quot;falkland|malvinas&quot;,FRO:&quot;faroe|faeroe&quot;,FJI:&quot;fiji&quot;,FIN:&quot;finland&quot;,FRA:&quot;^(?!.*\\bdep)(?!.*martinique).*france|french.?republic|\\bgaul&quot;,GUF:&quot;^(?=.*french).*guiana&quot;,PYF:&quot;french.?polynesia|tahiti&quot;,ATF:&quot;french.?southern&quot;,GAB:&quot;gabon&quot;,GMB:&quot;gambia&quot;,GEO:&quot;^(?!.*south).*georgia&quot;,DDR:&quot;german.?democratic.?republic|democratic.?republic.*germany|east.germany&quot;,DEU:&quot;^(?!.*east).*germany|^(?=.*\\bfed.*\\brep).*german&quot;,GHA:&quot;ghana|gold.?coast&quot;,GIB:&quot;gibraltar&quot;,GRC:&quot;greece|hellenic|hellas&quot;,GRL:&quot;greenland&quot;,GRD:&quot;grenada&quot;,GLP:&quot;guadeloupe&quot;,GUM:&quot;\\bguam&quot;,GTM:&quot;guatemala&quot;,GGY:&quot;guernsey&quot;,GIN:&quot;^(?!.*eq)(?!.*span)(?!.*bissau)(?!.*portu)(?!.*new).*guinea&quot;,GNB:&quot;bissau|^(?=.*portu).*guinea&quot;,GUY:&quot;guyana|british.?guiana&quot;,HTI:&quot;haiti&quot;,HMD:&quot;heard.*mcdonald&quot;,VAT:&quot;holy.?see|vatican|papal.?st&quot;,HND:&quot;^(?!.*brit).*honduras&quot;,HKG:&quot;hong.?kong&quot;,HUN:&quot;^(?!.*austr).*hungary&quot;,ISL:&quot;iceland&quot;,IND:&quot;india(?!.*ocea)&quot;,IDN:&quot;indonesia&quot;,IRN:&quot;\\biran|persia&quot;,IRQ:&quot;\\biraq|mesopotamia&quot;,IRL:&quot;(^ireland)|(^republic.*ireland)&quot;,IMN:&quot;^(?=.*isle).*\\bman&quot;,ISR:&quot;israel&quot;,ITA:&quot;italy&quot;,JAM:&quot;jamaica&quot;,JPN:&quot;japan&quot;,JEY:&quot;jersey&quot;,JOR:&quot;jordan&quot;,KAZ:&quot;kazak&quot;,KEN:&quot;kenya|british.?east.?africa|east.?africa.?prot&quot;,KIR:&quot;kiribati&quot;,PRK:&quot;^(?=.*democrat|people|north|d.*p.*.r).*\\bkorea|dprk|korea.*(d.*p.*r)&quot;,KWT:&quot;kuwait&quot;,KGZ:&quot;kyrgyz|kirghiz&quot;,LAO:&quot;\\blaos?\\b&quot;,LVA:&quot;latvia&quot;,LBN:&quot;lebanon&quot;,LSO:&quot;lesotho|basuto&quot;,LBR:&quot;liberia&quot;,LBY:&quot;libya&quot;,LIE:&quot;liechtenstein&quot;,LTU:&quot;lithuania&quot;,LUX:&quot;^(?!.*belg).*luxem&quot;,MAC:&quot;maca(o|u)&quot;,MDG:&quot;madagascar|malagasy&quot;,MWI:&quot;malawi|nyasa&quot;,MYS:&quot;malaysia&quot;,MDV:&quot;maldive&quot;,MLI:&quot;\\bmali\\b&quot;,MLT:&quot;\\bmalta&quot;,MHL:&quot;marshall&quot;,MTQ:&quot;martinique&quot;,MRT:&quot;mauritania&quot;,MUS:&quot;mauritius&quot;,MYT:&quot;\\bmayotte&quot;,MEX:&quot;\\bmexic&quot;,FSM:&quot;fed.*micronesia|micronesia.*fed&quot;,MCO:&quot;monaco&quot;,MNG:&quot;mongolia&quot;,MNE:&quot;^(?!.*serbia).*montenegro&quot;,MSR:&quot;montserrat&quot;,MAR:&quot;morocco|\\bmaroc&quot;,MOZ:&quot;mozambique&quot;,MMR:&quot;myanmar|burma&quot;,NAM:&quot;namibia&quot;,NRU:&quot;nauru&quot;,NPL:&quot;nepal&quot;,NLD:&quot;^(?!.*\\bant)(?!.*\\bcarib).*netherlands&quot;,ANT:&quot;^(?=.*\\bant).*(nether|dutch)&quot;,NCL:&quot;new.?caledonia&quot;,NZL:&quot;new.?zealand&quot;,NIC:&quot;nicaragua&quot;,NER:&quot;\\bniger(?!ia)&quot;,NGA:&quot;nigeria&quot;,NIU:&quot;niue&quot;,NFK:&quot;norfolk&quot;,MNP:&quot;mariana&quot;,NOR:&quot;norway&quot;,OMN:&quot;\\boman|trucial&quot;,PAK:&quot;^(?!.*east).*paki?stan&quot;,PLW:&quot;palau&quot;,PSE:&quot;palestin|\\bgaza|west.?bank&quot;,PAN:&quot;panama&quot;,PNG:&quot;papua|new.?guinea&quot;,PRY:&quot;paraguay&quot;,PER:&quot;peru&quot;,PHL:&quot;philippines&quot;,PCN:&quot;pitcairn&quot;,POL:&quot;poland&quot;,PRT:&quot;portugal&quot;,PRI:&quot;puerto.?rico&quot;,QAT:&quot;qatar&quot;,KOR:&quot;^(?!.*d.*p.*r)(?!.*democrat)(?!.*people)(?!.*north).*\\bkorea(?!.*d.*p.*r)&quot;,MDA:&quot;moldov|b(a|e)ssarabia&quot;,REU:&quot;r(e|\xe9)union&quot;,ROU:&quot;r(o|u|ou)mania&quot;,RUS:&quot;\\brussia|soviet.?union|u\\.?s\\.?s\\.?r|socialist.?republics&quot;,RWA:&quot;rwanda&quot;,BLM:&quot;barth(e|\xe9)lemy&quot;,SHN:&quot;helena&quot;,KNA:&quot;kitts|\\bnevis&quot;,LCA:&quot;\\blucia&quot;,MAF:&quot;^(?=.*collectivity).*martin|^(?=.*france).*martin(?!ique)|^(?=.*french).*martin(?!ique)&quot;,SPM:&quot;miquelon&quot;,VCT:&quot;vincent&quot;,WSM:&quot;^(?!.*amer).*samoa&quot;,SMR:&quot;san.?marino&quot;,STP:&quot;\\bs(a|\xe3)o.?tom(e|\xe9)&quot;,SAU:&quot;\\bsa\\w*.?arabia&quot;,SEN:&quot;senegal&quot;,SRB:&quot;^(?!.*monte).*serbia&quot;,SYC:&quot;seychell&quot;,SLE:&quot;sierra&quot;,SGP:&quot;singapore&quot;,SXM:&quot;^(?!.*martin)(?!.*saba).*maarten&quot;,SVK:&quot;^(?!.*cze).*slovak&quot;,SVN:&quot;slovenia&quot;,SLB:&quot;solomon&quot;,SOM:&quot;somali&quot;,ZAF:&quot;south.africa|s\\\\..?africa&quot;,SGS:&quot;south.?georgia|sandwich&quot;,SSD:&quot;\\bs\\w*.?sudan&quot;,ESP:&quot;spain&quot;,LKA:&quot;sri.?lanka|ceylon&quot;,SDN:&quot;^(?!.*\\bs(?!u)).*sudan&quot;,SUR:&quot;surinam|dutch.?guiana&quot;,SJM:&quot;svalbard&quot;,SWZ:&quot;swaziland&quot;,SWE:&quot;sweden&quot;,CHE:&quot;switz|swiss&quot;,SYR:&quot;syria&quot;,TWN:&quot;taiwan|taipei|formosa|^(?!.*peo)(?=.*rep).*china&quot;,TJK:&quot;tajik&quot;,THA:&quot;thailand|\\bsiam&quot;,MKD:&quot;macedonia|fyrom&quot;,TLS:&quot;^(?=.*leste).*timor|^(?=.*east).*timor&quot;,TGO:&quot;togo&quot;,TKL:&quot;tokelau&quot;,TON:&quot;tonga&quot;,TTO:&quot;trinidad|tobago&quot;,TUN:&quot;tunisia&quot;,TUR:&quot;turkey&quot;,TKM:&quot;turkmen&quot;,TCA:&quot;turks&quot;,TUV:&quot;tuvalu&quot;,UGA:&quot;uganda&quot;,UKR:&quot;ukrain&quot;,ARE:&quot;emirates|^u\\.?a\\.?e\\.?$|united.?arab.?em&quot;,GBR:&quot;united.?kingdom|britain|^u\\.?k\\.?$&quot;,TZA:&quot;tanzania&quot;,USA:&quot;united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)&quot;,UMI:&quot;minor.?outlying.?is&quot;,URY:&quot;uruguay&quot;,UZB:&quot;uzbek&quot;,VUT:&quot;vanuatu|new.?hebrides&quot;,VEN:&quot;venezuela&quot;,VNM:&quot;^(?!.*republic).*viet.?nam|^(?=.*socialist).*viet.?nam&quot;,VGB:&quot;^(?=.*\\bu\\.?\\s?k).*virgin|^(?=.*brit).*virgin|^(?=.*kingdom).*virgin&quot;,VIR:&quot;^(?=.*\\bu\\.?\\s?s).*virgin|^(?=.*states).*virgin&quot;,WLF:&quot;futuna|wallis&quot;,ESH:&quot;western.sahara&quot;,YEM:&quot;^(?!.*arab)(?!.*north)(?!.*sana)(?!.*peo)(?!.*dem)(?!.*south)(?!.*aden)(?!.*\\bp\\.?d\\.?r).*yemen&quot;,YMD:&quot;^(?=.*peo).*yemen|^(?!.*rep)(?=.*dem).*yemen|^(?=.*south).*yemen|^(?=.*aden).*yemen|^(?=.*\\bp\\.?d\\.?r).*yemen&quot;,YUG:&quot;yugoslavia&quot;,ZMB:&quot;zambia|northern.?rhodesia&quot;,EAZ:&quot;zanzibar&quot;,ZWE:&quot;zimbabwe|^(?!.*northern).*rhodesia&quot;}},{}],140:[function(t,e,r){e.exports=[&quot;xx-small&quot;,&quot;x-small&quot;,&quot;small&quot;,&quot;medium&quot;,&quot;large&quot;,&quot;x-large&quot;,&quot;xx-large&quot;,&quot;larger&quot;,&quot;smaller&quot;]},{}],141:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;condensed&quot;,&quot;semi-condensed&quot;,&quot;extra-condensed&quot;,&quot;ultra-condensed&quot;,&quot;expanded&quot;,&quot;semi-expanded&quot;,&quot;extra-expanded&quot;,&quot;ultra-expanded&quot;]},{}],142:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;italic&quot;,&quot;oblique&quot;]},{}],143:[function(t,e,r){e.exports=[&quot;normal&quot;,&quot;bold&quot;,&quot;bolder&quot;,&quot;lighter&quot;,&quot;100&quot;,&quot;200&quot;,&quot;300&quot;,&quot;400&quot;,&quot;500&quot;,&quot;600&quot;,&quot;700&quot;,&quot;800&quot;,&quot;900&quot;]},{}],144:[function(t,e,r){&quot;use strict&quot;;e.exports={parse:t(&quot;./parse&quot;),stringify:t(&quot;./stringify&quot;)}},{&quot;./parse&quot;:146,&quot;./stringify&quot;:147}],145:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font-size-keywords&quot;);e.exports={isSize:function(t){return/^[\d\.]/.test(t)||-1!==t.indexOf(&quot;/&quot;)||-1!==n.indexOf(t)}}},{&quot;css-font-size-keywords&quot;:140}],146:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;unquote&quot;),i=t(&quot;css-global-keywords&quot;),a=t(&quot;css-system-font-keywords&quot;),o=t(&quot;css-font-weight-keywords&quot;),s=t(&quot;css-font-style-keywords&quot;),l=t(&quot;css-font-stretch-keywords&quot;),c=t(&quot;string-split-by&quot;),u=t(&quot;./lib/util&quot;).isSize;e.exports=h;var f=h.cache={};function h(t){if(&quot;string&quot;!=typeof t)throw new Error(&quot;Font argument must be a string.&quot;);if(f[t])return f[t];if(&quot;&quot;===t)throw new Error(&quot;Cannot parse an empty string.&quot;);if(-1!==a.indexOf(t))return f[t]={system:t};for(var e,r={style:&quot;normal&quot;,variant:&quot;normal&quot;,weight:&quot;normal&quot;,stretch:&quot;normal&quot;,lineHeight:&quot;normal&quot;,size:&quot;1rem&quot;,family:[&quot;serif&quot;]},h=c(t,/\s+/);e=h.shift();){if(-1!==i.indexOf(e))return[&quot;style&quot;,&quot;variant&quot;,&quot;weight&quot;,&quot;stretch&quot;].forEach((function(t){r[t]=e})),f[t]=r;if(-1===s.indexOf(e))if(&quot;normal&quot;!==e&amp;&amp;&quot;small-caps&quot;!==e)if(-1===l.indexOf(e)){if(-1===o.indexOf(e)){if(u(e)){var d=c(e,&quot;/&quot;);if(r.size=d[0],null!=d[1]?r.lineHeight=p(d[1]):&quot;/&quot;===h[0]&amp;&amp;(h.shift(),r.lineHeight=p(h.shift())),!h.length)throw new Error(&quot;Missing required font-family.&quot;);return r.family=c(h.join(&quot; &quot;),/\s*,\s*/).map(n),f[t]=r}throw new Error(&quot;Unknown or unsupported font token: &quot;+e)}r.weight=e}else r.stretch=e;else r.variant=e;else r.style=e}throw new Error(&quot;Missing required font-size.&quot;)}function p(t){var e=parseFloat(t);return e.toString()===t?e:t}},{&quot;./lib/util&quot;:145,&quot;css-font-stretch-keywords&quot;:141,&quot;css-font-style-keywords&quot;:142,&quot;css-font-weight-keywords&quot;:143,&quot;css-global-keywords&quot;:148,&quot;css-system-font-keywords&quot;:149,&quot;string-split-by&quot;:568,unquote:598}],147:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;),i=t(&quot;./lib/util&quot;).isSize,a=g(t(&quot;css-global-keywords&quot;)),o=g(t(&quot;css-system-font-keywords&quot;)),s=g(t(&quot;css-font-weight-keywords&quot;)),l=g(t(&quot;css-font-style-keywords&quot;)),c=g(t(&quot;css-font-stretch-keywords&quot;)),u={normal:1,&quot;small-caps&quot;:1},f={serif:1,&quot;sans-serif&quot;:1,monospace:1,cursive:1,fantasy:1,&quot;system-ui&quot;:1},h=&quot;1rem&quot;,p=&quot;serif&quot;;function d(t,e){if(t&amp;&amp;!e[t]&amp;&amp;!a[t])throw Error(&quot;Unknown keyword `&quot;+t+&quot;`&quot;);return t}function g(t){for(var e={},r=0;r&lt;t.length;r++)e[t[r]]=1;return e}e.exports=function(t){if((t=n(t,{style:&quot;style fontstyle fontStyle font-style slope distinction&quot;,variant:&quot;variant font-variant fontVariant fontvariant var capitalization&quot;,weight:&quot;weight w font-weight fontWeight fontweight&quot;,stretch:&quot;stretch font-stretch fontStretch fontstretch width&quot;,size:&quot;size s font-size fontSize fontsize height em emSize&quot;,lineHeight:&quot;lh line-height lineHeight lineheight leading&quot;,family:&quot;font family fontFamily font-family fontfamily type typeface face&quot;,system:&quot;system reserved default global&quot;})).system)return t.system&amp;&amp;d(t.system,o),t.system;if(d(t.style,l),d(t.variant,u),d(t.weight,s),d(t.stretch,c),null==t.size&amp;&amp;(t.size=h),&quot;number&quot;==typeof t.size&amp;&amp;(t.size+=&quot;px&quot;),!i)throw Error(&quot;Bad size value `&quot;+t.size+&quot;`&quot;);t.family||(t.family=p),Array.isArray(t.family)&amp;&amp;(t.family.length||(t.family=[p]),t.family=t.family.map((function(t){return f[t]?t:'&quot;'+t+'&quot;'})).join(&quot;, &quot;));var e=[];return e.push(t.style),t.variant!==t.style&amp;&amp;e.push(t.variant),t.weight!==t.variant&amp;&amp;t.weight!==t.style&amp;&amp;e.push(t.weight),t.stretch!==t.weight&amp;&amp;t.stretch!==t.variant&amp;&amp;t.stretch!==t.style&amp;&amp;e.push(t.stretch),e.push(t.size+(null==t.lineHeight||&quot;normal&quot;===t.lineHeight||t.lineHeight+&quot;&quot;==&quot;1&quot;?&quot;&quot;:&quot;/&quot;+t.lineHeight)),e.push(t.family),e.filter(Boolean).join(&quot; &quot;)}},{&quot;./lib/util&quot;:145,&quot;css-font-stretch-keywords&quot;:141,&quot;css-font-style-keywords&quot;:142,&quot;css-font-weight-keywords&quot;:143,&quot;css-global-keywords&quot;:148,&quot;css-system-font-keywords&quot;:149,&quot;pick-by-alias&quot;:511}],148:[function(t,e,r){e.exports=[&quot;inherit&quot;,&quot;initial&quot;,&quot;unset&quot;]},{}],149:[function(t,e,r){e.exports=[&quot;caption&quot;,&quot;icon&quot;,&quot;menu&quot;,&quot;message-box&quot;,&quot;small-caption&quot;,&quot;status-bar&quot;]},{}],150:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a){var o=i-1,s=i*i,l=o*o,c=(1+2*i)*l,u=i*l,f=s*(3-2*i),h=s*o;if(t.length){a||(a=new Array(t.length));for(var p=t.length-1;p&gt;=0;--p)a[p]=c*t[p]+u*e[p]+f*r[p]+h*n[p];return a}return c*t+u*e+f*r+h*n},e.exports.derivative=function(t,e,r,n,i,a){var o=6*i*i-6*i,s=3*i*i-4*i+1,l=-6*i*i+6*i,c=3*i*i-2*i;if(t.length){a||(a=new Array(t.length));for(var u=t.length-1;u&gt;=0;--u)a[u]=o*t[u]+s*e[u]+l*r[u]+c*n[u];return a}return o*t+s*e+l*r[u]+c*n}},{}],151:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/thunk.js&quot;);function i(){this.argTypes=[],this.shimArgs=[],this.arrayArgs=[],this.arrayBlockIndices=[],this.scalarArgs=[],this.offsetArgs=[],this.offsetArgIndex=[],this.indexArgs=[],this.shapeArgs=[],this.funcName=&quot;&quot;,this.pre=null,this.body=null,this.post=null,this.debug=!1}e.exports=function(t){var e=new i;e.pre=t.pre,e.body=t.body,e.post=t.post;var r=t.args.slice(0);e.argTypes=r;for(var a=0;a&lt;r.length;++a){var o=r[a];if(&quot;array&quot;===o||&quot;object&quot;==typeof o&amp;&amp;o.blockIndices){if(e.argTypes[a]=&quot;array&quot;,e.arrayArgs.push(a),e.arrayBlockIndices.push(o.blockIndices?o.blockIndices:0),e.shimArgs.push(&quot;array&quot;+a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].count&gt;0)throw new Error(&quot;cwise: pre() block may not reference array args&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].count&gt;0)throw new Error(&quot;cwise: post() block may not reference array args&quot;)}else if(&quot;scalar&quot;===o)e.scalarArgs.push(a),e.shimArgs.push(&quot;scalar&quot;+a);else if(&quot;index&quot;===o){if(e.indexArgs.push(a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].count&gt;0)throw new Error(&quot;cwise: pre() block may not reference array index&quot;);if(a&lt;e.body.args.length&amp;&amp;e.body.args[a].lvalue)throw new Error(&quot;cwise: body() block may not write to array index&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].count&gt;0)throw new Error(&quot;cwise: post() block may not reference array index&quot;)}else if(&quot;shape&quot;===o){if(e.shapeArgs.push(a),a&lt;e.pre.args.length&amp;&amp;e.pre.args[a].lvalue)throw new Error(&quot;cwise: pre() block may not write to array shape&quot;);if(a&lt;e.body.args.length&amp;&amp;e.body.args[a].lvalue)throw new Error(&quot;cwise: body() block may not write to array shape&quot;);if(a&lt;e.post.args.length&amp;&amp;e.post.args[a].lvalue)throw new Error(&quot;cwise: post() block may not write to array shape&quot;)}else{if(&quot;object&quot;!=typeof o||!o.offset)throw new Error(&quot;cwise: Unknown argument type &quot;+r[a]);e.argTypes[a]=&quot;offset&quot;,e.offsetArgs.push({array:o.array,offset:o.offset}),e.offsetArgIndex.push(a)}}if(e.arrayArgs.length&lt;=0)throw new Error(&quot;cwise: No array arguments specified&quot;);if(e.pre.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in pre() block&quot;);if(e.body.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in body() block&quot;);if(e.post.args.length&gt;r.length)throw new Error(&quot;cwise: Too many arguments in post() block&quot;);return e.debug=!!t.printCode||!!t.debug,e.funcName=t.funcName||&quot;cwise&quot;,e.blockSize=t.blockSize||64,n(e)}},{&quot;./lib/thunk.js&quot;:153}],152:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;uniq&quot;);function i(t,e,r){var n,i,a=t.length,o=e.arrayArgs.length,s=e.indexArgs.length&gt;0,l=[],c=[],u=0,f=0;for(n=0;n&lt;a;++n)c.push([&quot;i&quot;,n,&quot;=0&quot;].join(&quot;&quot;));for(i=0;i&lt;o;++i)for(n=0;n&lt;a;++n)f=u,u=t[n],0===n?c.push([&quot;d&quot;,i,&quot;s&quot;,n,&quot;=t&quot;,i,&quot;p&quot;,u].join(&quot;&quot;)):c.push([&quot;d&quot;,i,&quot;s&quot;,n,&quot;=(t&quot;,i,&quot;p&quot;,u,&quot;-s&quot;,f,&quot;*t&quot;,i,&quot;p&quot;,f,&quot;)&quot;].join(&quot;&quot;));for(c.length&gt;0&amp;&amp;l.push(&quot;var &quot;+c.join(&quot;,&quot;)),n=a-1;n&gt;=0;--n)u=t[n],l.push([&quot;for(i&quot;,n,&quot;=0;i&quot;,n,&quot;&lt;s&quot;,u,&quot;;++i&quot;,n,&quot;){&quot;].join(&quot;&quot;));for(l.push(r),n=0;n&lt;a;++n){for(f=u,u=t[n],i=0;i&lt;o;++i)l.push([&quot;p&quot;,i,&quot;+=d&quot;,i,&quot;s&quot;,n].join(&quot;&quot;));s&amp;&amp;(n&gt;0&amp;&amp;l.push([&quot;index[&quot;,f,&quot;]-=s&quot;,f].join(&quot;&quot;)),l.push([&quot;++index[&quot;,u,&quot;]&quot;].join(&quot;&quot;))),l.push(&quot;}&quot;)}return l.join(&quot;\n&quot;)}function a(t,e,r){for(var n=t.body,i=[],a=[],o=0;o&lt;t.args.length;++o){var s=t.args[o];if(!(s.count&lt;=0)){var l=new RegExp(s.name,&quot;g&quot;),c=&quot;&quot;,u=e.arrayArgs.indexOf(o);switch(e.argTypes[o]){case&quot;offset&quot;:var f=e.offsetArgIndex.indexOf(o);u=e.offsetArgs[f].array,c=&quot;+q&quot;+f;case&quot;array&quot;:c=&quot;p&quot;+u+c;var h=&quot;l&quot;+o,p=&quot;a&quot;+u;if(0===e.arrayBlockIndices[u])1===s.count?&quot;generic&quot;===r[u]?s.lvalue?(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)),n=n.replace(l,h),a.push([p,&quot;.set(&quot;,c,&quot;,&quot;,h,&quot;)&quot;].join(&quot;&quot;))):n=n.replace(l,[p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)):n=n.replace(l,[p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;)):&quot;generic&quot;===r[u]?(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;.get(&quot;,c,&quot;)&quot;].join(&quot;&quot;)),n=n.replace(l,h),s.lvalue&amp;&amp;a.push([p,&quot;.set(&quot;,c,&quot;,&quot;,h,&quot;)&quot;].join(&quot;&quot;))):(i.push([&quot;var &quot;,h,&quot;=&quot;,p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;)),n=n.replace(l,h),s.lvalue&amp;&amp;a.push([p,&quot;[&quot;,c,&quot;]=&quot;,h].join(&quot;&quot;)));else{for(var d=[s.name],g=[c],m=0;m&lt;Math.abs(e.arrayBlockIndices[u]);m++)d.push(&quot;\\s*\\[([^\\]]+)\\]&quot;),g.push(&quot;$&quot;+(m+1)+&quot;*t&quot;+u+&quot;b&quot;+m);if(l=new RegExp(d.join(&quot;&quot;),&quot;g&quot;),c=g.join(&quot;+&quot;),&quot;generic&quot;===r[u])throw new Error(&quot;cwise: Generic arrays not supported in combination with blocks!&quot;);n=n.replace(l,[p,&quot;[&quot;,c,&quot;]&quot;].join(&quot;&quot;))}break;case&quot;scalar&quot;:n=n.replace(l,&quot;Y&quot;+e.scalarArgs.indexOf(o));break;case&quot;index&quot;:n=n.replace(l,&quot;index&quot;);break;case&quot;shape&quot;:n=n.replace(l,&quot;shape&quot;)}}}return[i.join(&quot;\n&quot;),n,a.join(&quot;\n&quot;)].join(&quot;\n&quot;).trim()}function o(t){for(var e=new Array(t.length),r=!0,n=0;n&lt;t.length;++n){var i=t[n],a=i.match(/\d+/);a=a?a[0]:&quot;&quot;,0===i.charAt(0)?e[n]=&quot;u&quot;+i.charAt(1)+a:e[n]=i.charAt(0)+a,n&gt;0&amp;&amp;(r=r&amp;&amp;e[n]===e[n-1])}return r?e[0]:e.join(&quot;&quot;)}e.exports=function(t,e){for(var r=e[1].length-Math.abs(t.arrayBlockIndices[0])|0,s=new Array(t.arrayArgs.length),l=new Array(t.arrayArgs.length),c=0;c&lt;t.arrayArgs.length;++c)l[c]=e[2*c],s[c]=e[2*c+1];var u=[],f=[],h=[],p=[],d=[];for(c=0;c&lt;t.arrayArgs.length;++c){t.arrayBlockIndices[c]&lt;0?(h.push(0),p.push(r),u.push(r),f.push(r+t.arrayBlockIndices[c])):(h.push(t.arrayBlockIndices[c]),p.push(t.arrayBlockIndices[c]+r),u.push(0),f.push(t.arrayBlockIndices[c]));for(var g=[],m=0;m&lt;s[c].length;m++)h[c]&lt;=s[c][m]&amp;&amp;s[c][m]&lt;p[c]&amp;&amp;g.push(s[c][m]-h[c]);d.push(g)}var v=[&quot;SS&quot;],y=[&quot;'use strict'&quot;],x=[];for(m=0;m&lt;r;++m)x.push([&quot;s&quot;,m,&quot;=SS[&quot;,m,&quot;]&quot;].join(&quot;&quot;));for(c=0;c&lt;t.arrayArgs.length;++c){v.push(&quot;a&quot;+c),v.push(&quot;t&quot;+c),v.push(&quot;p&quot;+c);for(m=0;m&lt;r;++m)x.push([&quot;t&quot;,c,&quot;p&quot;,m,&quot;=t&quot;,c,&quot;[&quot;,h[c]+m,&quot;]&quot;].join(&quot;&quot;));for(m=0;m&lt;Math.abs(t.arrayBlockIndices[c]);++m)x.push([&quot;t&quot;,c,&quot;b&quot;,m,&quot;=t&quot;,c,&quot;[&quot;,u[c]+m,&quot;]&quot;].join(&quot;&quot;))}for(c=0;c&lt;t.scalarArgs.length;++c)v.push(&quot;Y&quot;+c);if(t.shapeArgs.length&gt;0&amp;&amp;x.push(&quot;shape=SS.slice(0)&quot;),t.indexArgs.length&gt;0){var b=new Array(r);for(c=0;c&lt;r;++c)b[c]=&quot;0&quot;;x.push([&quot;index=[&quot;,b.join(&quot;,&quot;),&quot;]&quot;].join(&quot;&quot;))}for(c=0;c&lt;t.offsetArgs.length;++c){var _=t.offsetArgs[c],w=[];for(m=0;m&lt;_.offset.length;++m)0!==_.offset[m]&amp;&amp;(1===_.offset[m]?w.push([&quot;t&quot;,_.array,&quot;p&quot;,m].join(&quot;&quot;)):w.push([_.offset[m],&quot;*t&quot;,_.array,&quot;p&quot;,m].join(&quot;&quot;)));0===w.length?x.push(&quot;q&quot;+c+&quot;=0&quot;):x.push([&quot;q&quot;,c,&quot;=&quot;,w.join(&quot;+&quot;)].join(&quot;&quot;))}var T=n([].concat(t.pre.thisVars).concat(t.body.thisVars).concat(t.post.thisVars));for((x=x.concat(T)).length&gt;0&amp;&amp;y.push(&quot;var &quot;+x.join(&quot;,&quot;)),c=0;c&lt;t.arrayArgs.length;++c)y.push(&quot;p&quot;+c+&quot;|=0&quot;);t.pre.body.length&gt;3&amp;&amp;y.push(a(t.pre,t,l));var k=a(t.body,t,l),M=function(t){for(var e=0,r=t[0].length;e&lt;r;){for(var n=1;n&lt;t.length;++n)if(t[n][e]!==t[0][e])return e;++e}return e}(d);M&lt;r?y.push(function(t,e,r,n){for(var a=e.length,o=r.arrayArgs.length,s=r.blockSize,l=r.indexArgs.length&gt;0,c=[],u=0;u&lt;o;++u)c.push([&quot;var offset&quot;,u,&quot;=p&quot;,u].join(&quot;&quot;));for(u=t;u&lt;a;++u)c.push([&quot;for(var j&quot;+u+&quot;=SS[&quot;,e[u],&quot;]|0;j&quot;,u,&quot;&gt;0;){&quot;].join(&quot;&quot;)),c.push([&quot;if(j&quot;,u,&quot;&lt;&quot;,s,&quot;){&quot;].join(&quot;&quot;)),c.push([&quot;s&quot;,e[u],&quot;=j&quot;,u].join(&quot;&quot;)),c.push([&quot;j&quot;,u,&quot;=0&quot;].join(&quot;&quot;)),c.push([&quot;}else{s&quot;,e[u],&quot;=&quot;,s].join(&quot;&quot;)),c.push([&quot;j&quot;,u,&quot;-=&quot;,s,&quot;}&quot;].join(&quot;&quot;)),l&amp;&amp;c.push([&quot;index[&quot;,e[u],&quot;]=j&quot;,u].join(&quot;&quot;));for(u=0;u&lt;o;++u){for(var f=[&quot;offset&quot;+u],h=t;h&lt;a;++h)f.push([&quot;j&quot;,h,&quot;*t&quot;,u,&quot;p&quot;,e[h]].join(&quot;&quot;));c.push([&quot;p&quot;,u,&quot;=(&quot;,f.join(&quot;+&quot;),&quot;)&quot;].join(&quot;&quot;))}for(c.push(i(e,r,n)),u=t;u&lt;a;++u)c.push(&quot;}&quot;);return c.join(&quot;\n&quot;)}(M,d[0],t,k)):y.push(i(d[0],t,k)),t.post.body.length&gt;3&amp;&amp;y.push(a(t.post,t,l)),t.debug&amp;&amp;console.log(&quot;-----Generated cwise routine for &quot;,e,&quot;:\n&quot;+y.join(&quot;\n&quot;)+&quot;\n----------&quot;);var A=[t.funcName||&quot;unnamed&quot;,&quot;_cwise_loop_&quot;,s[0].join(&quot;s&quot;),&quot;m&quot;,M,o(l)].join(&quot;&quot;);return new Function([&quot;function &quot;,A,&quot;(&quot;,v.join(&quot;,&quot;),&quot;){&quot;,y.join(&quot;\n&quot;),&quot;} return &quot;,A].join(&quot;&quot;))()}},{uniq:597}],153:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./compile.js&quot;);e.exports=function(t){var e=[&quot;'use strict'&quot;,&quot;var CACHED={}&quot;],r=[],i=t.funcName+&quot;_cwise_thunk&quot;;e.push([&quot;return function &quot;,i,&quot;(&quot;,t.shimArgs.join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));for(var a=[],o=[],s=[[&quot;array&quot;,t.arrayArgs[0],&quot;.shape.slice(&quot;,Math.max(0,t.arrayBlockIndices[0]),t.arrayBlockIndices[0]&lt;0?&quot;,&quot;+t.arrayBlockIndices[0]+&quot;)&quot;:&quot;)&quot;].join(&quot;&quot;)],l=[],c=[],u=0;u&lt;t.arrayArgs.length;++u){var f=t.arrayArgs[u];r.push([&quot;t&quot;,f,&quot;=array&quot;,f,&quot;.dtype,&quot;,&quot;r&quot;,f,&quot;=array&quot;,f,&quot;.order&quot;].join(&quot;&quot;)),a.push(&quot;t&quot;+f),a.push(&quot;r&quot;+f),o.push(&quot;t&quot;+f),o.push(&quot;r&quot;+f+&quot;.join()&quot;),s.push(&quot;array&quot;+f+&quot;.data&quot;),s.push(&quot;array&quot;+f+&quot;.stride&quot;),s.push(&quot;array&quot;+f+&quot;.offset|0&quot;),u&gt;0&amp;&amp;(l.push(&quot;array&quot;+t.arrayArgs[0]+&quot;.shape.length===array&quot;+f+&quot;.shape.length+&quot;+(Math.abs(t.arrayBlockIndices[0])-Math.abs(t.arrayBlockIndices[u]))),c.push(&quot;array&quot;+t.arrayArgs[0]+&quot;.shape[shapeIndex+&quot;+Math.max(0,t.arrayBlockIndices[0])+&quot;]===array&quot;+f+&quot;.shape[shapeIndex+&quot;+Math.max(0,t.arrayBlockIndices[u])+&quot;]&quot;))}for(t.arrayArgs.length&gt;1&amp;&amp;(e.push(&quot;if (!(&quot;+l.join(&quot; &amp;&amp; &quot;)+&quot;)) throw new Error('cwise: Arrays do not all have the same dimensionality!')&quot;),e.push(&quot;for(var shapeIndex=array&quot;+t.arrayArgs[0]+&quot;.shape.length-&quot;+Math.abs(t.arrayBlockIndices[0])+&quot;; shapeIndex--\x3e0;) {&quot;),e.push(&quot;if (!(&quot;+c.join(&quot; &amp;&amp; &quot;)+&quot;)) throw new Error('cwise: Arrays do not all have the same shape!')&quot;),e.push(&quot;}&quot;)),u=0;u&lt;t.scalarArgs.length;++u)s.push(&quot;scalar&quot;+t.scalarArgs[u]);return r.push([&quot;type=[&quot;,o.join(&quot;,&quot;),&quot;].join()&quot;].join(&quot;&quot;)),r.push(&quot;proc=CACHED[type]&quot;),e.push(&quot;var &quot;+r.join(&quot;,&quot;)),e.push([&quot;if(!proc){&quot;,&quot;CACHED[type]=proc=compile([&quot;,a.join(&quot;,&quot;),&quot;])}&quot;,&quot;return proc(&quot;,s.join(&quot;,&quot;),&quot;)}&quot;].join(&quot;&quot;)),t.debug&amp;&amp;console.log(&quot;-----Generated thunk:\n&quot;+e.join(&quot;\n&quot;)+&quot;\n----------&quot;),new Function(&quot;compile&quot;,e.join(&quot;\n&quot;))(n.bind(void 0,t))}},{&quot;./compile.js&quot;:152}],154:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;type/value/is&quot;),a=t(&quot;type/value/ensure&quot;),o=t(&quot;type/plain-function/ensure&quot;),s=t(&quot;es5-ext/object/copy&quot;),l=t(&quot;es5-ext/object/normalize-options&quot;),c=t(&quot;es5-ext/object/map&quot;),u=Function.prototype.bind,f=Object.defineProperty,h=Object.prototype.hasOwnProperty;n=function(t,e,r){var n,i=a(e)&amp;&amp;o(e.value);return delete(n=s(e)).writable,delete n.value,n.get=function(){return!r.overwriteDefinition&amp;&amp;h.call(this,t)?i:(e.value=u.call(i,r.resolveContext?r.resolveContext(this):this),f(this,t,e),this[t])},n},e.exports=function(t){var e=l(arguments[1]);return i(e.resolveContext)&amp;&amp;o(e.resolveContext),c(t,(function(t,r){return n(r,t,e)}))}},{&quot;es5-ext/object/copy&quot;:196,&quot;es5-ext/object/map&quot;:204,&quot;es5-ext/object/normalize-options&quot;:205,&quot;type/plain-function/ensure&quot;:589,&quot;type/value/ensure&quot;:593,&quot;type/value/is&quot;:594}],155:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;type/value/is&quot;),i=t(&quot;type/plain-function/is&quot;),a=t(&quot;es5-ext/object/assign&quot;),o=t(&quot;es5-ext/object/normalize-options&quot;),s=t(&quot;es5-ext/string/#/contains&quot;);(e.exports=function(t,e){var r,i,l,c,u;return arguments.length&lt;2||&quot;string&quot;!=typeof t?(c=e,e=t,t=null):c=arguments[2],n(t)?(r=s.call(t,&quot;c&quot;),i=s.call(t,&quot;e&quot;),l=s.call(t,&quot;w&quot;)):(r=l=!0,i=!1),u={value:e,configurable:r,enumerable:i,writable:l},c?a(o(c),u):u}).gs=function(t,e,r){var l,c,u,f;return&quot;string&quot;!=typeof t?(u=r,r=e,e=t,t=null):u=arguments[3],n(e)?i(e)?n(r)?i(r)||(u=r,r=void 0):r=void 0:(u=e,e=r=void 0):e=void 0,n(t)?(l=s.call(t,&quot;c&quot;),c=s.call(t,&quot;e&quot;)):(l=!0,c=!1),f={get:e,set:r,configurable:l,enumerable:c},u?a(o(u),f):f}},{&quot;es5-ext/object/assign&quot;:193,&quot;es5-ext/object/normalize-options&quot;:205,&quot;es5-ext/string/#/contains&quot;:212,&quot;type/plain-function/is&quot;:590,&quot;type/value/is&quot;:594}],156:[function(t,e,r){!function(t,n){n(&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?r:t.d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){return t&lt;e?-1:t&gt;e?1:t&gt;=e?0:NaN}function r(t){var r;return 1===t.length&amp;&amp;(r=t,t=function(t,n){return e(r(t),n)}),{left:function(e,r,n,i){for(null==n&amp;&amp;(n=0),null==i&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&lt;0?n=a+1:i=a}return n},right:function(e,r,n,i){for(null==n&amp;&amp;(n=0),null==i&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&gt;0?i=a:n=a+1}return n}}}var n=r(e),i=n.right,a=n.left;function o(t,e){return[t,e]}function s(t){return null===t?NaN:+t}function l(t,e){var r,n,i=t.length,a=0,o=-1,l=0,c=0;if(null==e)for(;++o&lt;i;)isNaN(r=s(t[o]))||(c+=(n=r-l)*(r-(l+=n/++a)));else for(;++o&lt;i;)isNaN(r=s(e(t[o],o,t)))||(c+=(n=r-l)*(r-(l+=n/++a)));if(a&gt;1)return c/(a-1)}function c(t,e){var r=l(t,e);return r?Math.sqrt(r):r}function u(t,e){var r,n,i,a=t.length,o=-1;if(null==e){for(;++o&lt;a;)if(null!=(r=t[o])&amp;&amp;r&gt;=r)for(n=i=r;++o&lt;a;)null!=(r=t[o])&amp;&amp;(n&gt;r&amp;&amp;(n=r),i&lt;r&amp;&amp;(i=r))}else for(;++o&lt;a;)if(null!=(r=e(t[o],o,t))&amp;&amp;r&gt;=r)for(n=i=r;++o&lt;a;)null!=(r=e(t[o],o,t))&amp;&amp;(n&gt;r&amp;&amp;(n=r),i&lt;r&amp;&amp;(i=r));return[n,i]}var f=Array.prototype,h=f.slice,p=f.map;function d(t){return function(){return t}}function g(t){return t}function m(t,e,r){t=+t,e=+e,r=(i=arguments.length)&lt;2?(e=t,t=0,1):i&lt;3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((e-t)/r)),a=new Array(i);++n&lt;i;)a[n]=t+n*r;return a}var v=Math.sqrt(50),y=Math.sqrt(10),x=Math.sqrt(2);function b(t,e,r){var n=(e-t)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),a=n/Math.pow(10,i);return i&gt;=0?(a&gt;=v?10:a&gt;=y?5:a&gt;=x?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a&gt;=v?10:a&gt;=y?5:a&gt;=x?2:1)}function _(t,e,r){var n=Math.abs(e-t)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),a=n/i;return a&gt;=v?i*=10:a&gt;=y?i*=5:a&gt;=x&amp;&amp;(i*=2),e&lt;t?-i:i}function w(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function T(t,e,r){if(null==r&amp;&amp;(r=s),n=t.length){if((e=+e)&lt;=0||n&lt;2)return+r(t[0],0,t);if(e&gt;=1)return+r(t[n-1],n-1,t);var n,i=(n-1)*e,a=Math.floor(i),o=+r(t[a],a,t);return o+(+r(t[a+1],a+1,t)-o)*(i-a)}}function k(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a&lt;i;)if(null!=(r=t[a])&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=t[a])&amp;&amp;n&gt;r&amp;&amp;(n=r)}else for(;++a&lt;i;)if(null!=(r=e(t[a],a,t))&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=e(t[a],a,t))&amp;&amp;n&gt;r&amp;&amp;(n=r);return n}function M(t){if(!(i=t.length))return[];for(var e=-1,r=k(t,A),n=new Array(r);++e&lt;r;)for(var i,a=-1,o=n[e]=new Array(i);++a&lt;i;)o[a]=t[a][e];return n}function A(t){return t.length}t.bisect=i,t.bisectRight=i,t.bisectLeft=a,t.ascending=e,t.bisector=r,t.cross=function(t,e,r){var n,i,a,s,l=t.length,c=e.length,u=new Array(l*c);for(null==r&amp;&amp;(r=o),n=a=0;n&lt;l;++n)for(s=t[n],i=0;i&lt;c;++i,++a)u[a]=r(s,e[i]);return u},t.descending=function(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN},t.deviation=c,t.extent=u,t.histogram=function(){var t=g,e=u,r=w;function n(n){var a,o,s=n.length,l=new Array(s);for(a=0;a&lt;s;++a)l[a]=t(n[a],a,n);var c=e(l),u=c[0],f=c[1],h=r(l,u,f);Array.isArray(h)||(h=_(u,f,h),h=m(Math.ceil(u/h)*h,f,h));for(var p=h.length;h[0]&lt;=u;)h.shift(),--p;for(;h[p-1]&gt;f;)h.pop(),--p;var d,g=new Array(p+1);for(a=0;a&lt;=p;++a)(d=g[a]=[]).x0=a&gt;0?h[a-1]:u,d.x1=a&lt;p?h[a]:f;for(a=0;a&lt;s;++a)u&lt;=(o=l[a])&amp;&amp;o&lt;=f&amp;&amp;g[i(h,o,0,p)].push(n[a]);return g}return n.value=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:d(e),n):t},n.domain=function(t){return arguments.length?(e=&quot;function&quot;==typeof t?t:d([t[0],t[1]]),n):e},n.thresholds=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:Array.isArray(t)?d(h.call(t)):d(t),n):r},n},t.thresholdFreedmanDiaconis=function(t,r,n){return t=p.call(t,s).sort(e),Math.ceil((n-r)/(2*(T(t,.75)-T(t,.25))*Math.pow(t.length,-1/3)))},t.thresholdScott=function(t,e,r){return Math.ceil((r-e)/(3.5*c(t)*Math.pow(t.length,-1/3)))},t.thresholdSturges=w,t.max=function(t,e){var r,n,i=t.length,a=-1;if(null==e){for(;++a&lt;i;)if(null!=(r=t[a])&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=t[a])&amp;&amp;r&gt;n&amp;&amp;(n=r)}else for(;++a&lt;i;)if(null!=(r=e(t[a],a,t))&amp;&amp;r&gt;=r)for(n=r;++a&lt;i;)null!=(r=e(t[a],a,t))&amp;&amp;r&gt;n&amp;&amp;(n=r);return n},t.mean=function(t,e){var r,n=t.length,i=n,a=-1,o=0;if(null==e)for(;++a&lt;n;)isNaN(r=s(t[a]))?--i:o+=r;else for(;++a&lt;n;)isNaN(r=s(e(t[a],a,t)))?--i:o+=r;if(i)return o/i},t.median=function(t,r){var n,i=t.length,a=-1,o=[];if(null==r)for(;++a&lt;i;)isNaN(n=s(t[a]))||o.push(n);else for(;++a&lt;i;)isNaN(n=s(r(t[a],a,t)))||o.push(n);return T(o.sort(e),.5)},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a&lt;i;)o+=t[a].length;for(r=new Array(o);--i&gt;=0;)for(e=(n=t[i]).length;--e&gt;=0;)r[--o]=n[e];return r},t.min=k,t.pairs=function(t,e){null==e&amp;&amp;(e=o);for(var r=0,n=t.length-1,i=t[0],a=new Array(n&lt;0?0:n);r&lt;n;)a[r]=e(i,i=t[++r]);return a},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.quantile=T,t.range=m,t.scan=function(t,r){if(n=t.length){var n,i,a=0,o=0,s=t[o];for(null==r&amp;&amp;(r=e);++a&lt;n;)(r(i=t[a],s)&lt;0||0!==r(s,s))&amp;&amp;(s=i,o=a);return 0===r(s,s)?o:void 0}},t.shuffle=function(t,e,r){for(var n,i,a=(null==r?t.length:r)-(e=null==e?0:+e);a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.sum=function(t,e){var r,n=t.length,i=-1,a=0;if(null==e)for(;++i&lt;n;)(r=+t[i])&amp;&amp;(a+=r);else for(;++i&lt;n;)(r=+e(t[i],i,t))&amp;&amp;(a+=r);return a},t.ticks=function(t,e,r){var n,i,a,o,s=-1;if(r=+r,(t=+t)===(e=+e)&amp;&amp;r&gt;0)return[t];if((n=e&lt;t)&amp;&amp;(i=t,t=e,e=i),0===(o=b(t,e,r))||!isFinite(o))return[];if(o&gt;0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++s&lt;i;)a[s]=(t+s)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++s&lt;i;)a[s]=(t-s)/o;return n&amp;&amp;a.reverse(),a},t.tickIncrement=b,t.tickStep=_,t.transpose=M,t.variance=l,t.zip=function(){return M(arguments)},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],157:[function(t,e,r){!function(t,n){n(&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?r:t.d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(){}function r(t,r){var n=new e;if(t instanceof e)t.each((function(t,e){n.set(e,t)}));else if(Array.isArray(t)){var i,a=-1,o=t.length;if(null==r)for(;++a&lt;o;)n.set(a,t[a]);else for(;++a&lt;o;)n.set(r(i=t[a],a,t),i)}else if(t)for(var s in t)n.set(s,t[s]);return n}function n(){return{}}function i(t,e,r){t[e]=r}function a(){return r()}function o(t,e,r){t.set(e,r)}function s(){}e.prototype=r.prototype={constructor:e,has:function(t){return&quot;$&quot;+t in this},get:function(t){return this[&quot;$&quot;+t]},set:function(t,e){return this[&quot;$&quot;+t]=e,this},remove:function(t){var e=&quot;$&quot;+t;return e in this&amp;&amp;delete this[e]},clear:function(){for(var t in this)&quot;$&quot;===t[0]&amp;&amp;delete this[t]},keys:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push(e.slice(1));return t},values:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push(this[e]);return t},entries:function(){var t=[];for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t.push({key:e.slice(1),value:this[e]});return t},size:function(){var t=0;for(var e in this)&quot;$&quot;===e[0]&amp;&amp;++t;return t},empty:function(){for(var t in this)if(&quot;$&quot;===t[0])return!1;return!0},each:function(t){for(var e in this)&quot;$&quot;===e[0]&amp;&amp;t(this[e],e.slice(1),this)}};var l=r.prototype;function c(t,e){var r=new s;if(t instanceof s)t.each((function(t){r.add(t)}));else if(t){var n=-1,i=t.length;if(null==e)for(;++n&lt;i;)r.add(t[n]);else for(;++n&lt;i;)r.add(e(t[n],n,t))}return r}s.prototype=c.prototype={constructor:s,has:l.has,add:function(t){return this[&quot;$&quot;+(t+=&quot;&quot;)]=t,this},remove:l.remove,clear:l.clear,values:l.keys,size:l.size,empty:l.empty,each:l.each},t.nest=function(){var t,e,s,l=[],c=[];function u(n,i,a,o){if(i&gt;=l.length)return null!=t&amp;&amp;n.sort(t),null!=e?e(n):n;for(var s,c,f,h=-1,p=n.length,d=l[i++],g=r(),m=a();++h&lt;p;)(f=g.get(s=d(c=n[h])+&quot;&quot;))?f.push(c):g.set(s,[c]);return g.each((function(t,e){o(m,e,u(t,i,a,o))})),m}return s={object:function(t){return u(t,0,n,i)},map:function(t){return u(t,0,a,o)},entries:function(t){return function t(r,n){if(++n&gt;l.length)return r;var i,a=c[n-1];return null!=e&amp;&amp;n&gt;=l.length?i=r.entries():(i=[],r.each((function(e,r){i.push({key:r,values:t(e,n)})}))),null!=a?i.sort((function(t,e){return a(t.key,e.key)})):i}(u(t,0,a,o),0)},key:function(t){return l.push(t),s},sortKeys:function(t){return c[l.length-1]=t,s},sortValues:function(e){return t=e,s},rollup:function(t){return e=t,s}}},t.set=c,t.map=r,t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],158:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e,r){t.prototype=e.prototype=r,r.constructor=t}function r(t,e){var r=Object.create(t.prototype);for(var n in e)r[n]=e[n];return r}function n(){}var i=&quot;\\s*([+-]?\\d+)\\s*&quot;,a=&quot;\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*&quot;,o=&quot;\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*&quot;,s=/^#([0-9a-f]{3,8})$/,l=new RegExp(&quot;^rgb\\(&quot;+[i,i,i]+&quot;\\)$&quot;),c=new RegExp(&quot;^rgb\\(&quot;+[o,o,o]+&quot;\\)$&quot;),u=new RegExp(&quot;^rgba\\(&quot;+[i,i,i,a]+&quot;\\)$&quot;),f=new RegExp(&quot;^rgba\\(&quot;+[o,o,o,a]+&quot;\\)$&quot;),h=new RegExp(&quot;^hsl\\(&quot;+[a,o,o]+&quot;\\)$&quot;),p=new RegExp(&quot;^hsla\\(&quot;+[a,o,o,a]+&quot;\\)$&quot;),d={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 g(){return this.rgb().formatHex()}function m(){return this.rgb().formatRgb()}function v(t){var e,r;return t=(t+&quot;&quot;).trim().toLowerCase(),(e=s.exec(t))?(r=e[1].length,e=parseInt(e[1],16),6===r?y(e):3===r?new w(e&gt;&gt;8&amp;15|e&gt;&gt;4&amp;240,e&gt;&gt;4&amp;15|240&amp;e,(15&amp;e)&lt;&lt;4|15&amp;e,1):8===r?x(e&gt;&gt;24&amp;255,e&gt;&gt;16&amp;255,e&gt;&gt;8&amp;255,(255&amp;e)/255):4===r?x(e&gt;&gt;12&amp;15|e&gt;&gt;8&amp;240,e&gt;&gt;8&amp;15|e&gt;&gt;4&amp;240,e&gt;&gt;4&amp;15|240&amp;e,((15&amp;e)&lt;&lt;4|15&amp;e)/255):null):(e=l.exec(t))?new w(e[1],e[2],e[3],1):(e=c.exec(t))?new w(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=u.exec(t))?x(e[1],e[2],e[3],e[4]):(e=f.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=h.exec(t))?A(e[1],e[2]/100,e[3]/100,1):(e=p.exec(t))?A(e[1],e[2]/100,e[3]/100,e[4]):d.hasOwnProperty(t)?y(d[t]):&quot;transparent&quot;===t?new w(NaN,NaN,NaN,0):null}function y(t){return new w(t&gt;&gt;16&amp;255,t&gt;&gt;8&amp;255,255&amp;t,1)}function x(t,e,r,n){return n&lt;=0&amp;&amp;(t=e=r=NaN),new w(t,e,r,n)}function b(t){return t instanceof n||(t=v(t)),t?new w((t=t.rgb()).r,t.g,t.b,t.opacity):new w}function _(t,e,r,n){return 1===arguments.length?b(t):new w(t,e,r,null==n?1:n)}function w(t,e,r,n){this.r=+t,this.g=+e,this.b=+r,this.opacity=+n}function T(){return&quot;#&quot;+M(this.r)+M(this.g)+M(this.b)}function k(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?&quot;rgb(&quot;:&quot;rgba(&quot;)+Math.max(0,Math.min(255,Math.round(this.r)||0))+&quot;, &quot;+Math.max(0,Math.min(255,Math.round(this.g)||0))+&quot;, &quot;+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?&quot;)&quot;:&quot;, &quot;+t+&quot;)&quot;)}function M(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))&lt;16?&quot;0&quot;:&quot;&quot;)+t.toString(16)}function A(t,e,r,n){return n&lt;=0?t=e=r=NaN:r&lt;=0||r&gt;=1?t=e=NaN:e&lt;=0&amp;&amp;(t=NaN),new C(t,e,r,n)}function S(t){if(t instanceof C)return new C(t.h,t.s,t.l,t.opacity);if(t instanceof n||(t=v(t)),!t)return new C;if(t instanceof C)return t;var e=(t=t.rgb()).r/255,r=t.g/255,i=t.b/255,a=Math.min(e,r,i),o=Math.max(e,r,i),s=NaN,l=o-a,c=(o+a)/2;return l?(s=e===o?(r-i)/l+6*(r&lt;i):r===o?(i-e)/l+2:(e-r)/l+4,l/=c&lt;.5?o+a:2-o-a,s*=60):l=c&gt;0&amp;&amp;c&lt;1?0:s,new C(s,l,c,t.opacity)}function E(t,e,r,n){return 1===arguments.length?S(t):new C(t,e,r,null==n?1:n)}function C(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}function L(t,e,r){return 255*(t&lt;60?e+(r-e)*t/60:t&lt;180?r:t&lt;240?e+(r-e)*(240-t)/60:e)}e(n,v,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:g,formatHex:g,formatHsl:function(){return S(this).formatHsl()},formatRgb:m,toString:m}),e(w,_,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new w(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5&lt;=this.r&amp;&amp;this.r&lt;255.5&amp;&amp;-.5&lt;=this.g&amp;&amp;this.g&lt;255.5&amp;&amp;-.5&lt;=this.b&amp;&amp;this.b&lt;255.5&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},hex:T,formatHex:T,formatRgb:k,toString:k})),e(C,E,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new C(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new C(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h&lt;0),e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r&lt;.5?r:1-r)*e,i=2*r-n;return new w(L(t&gt;=240?t-240:t+120,i,n),L(t,i,n),L(t&lt;120?t+240:t-120,i,n),this.opacity)},displayable:function(){return(0&lt;=this.s&amp;&amp;this.s&lt;=1||isNaN(this.s))&amp;&amp;0&lt;=this.l&amp;&amp;this.l&lt;=1&amp;&amp;0&lt;=this.opacity&amp;&amp;this.opacity&lt;=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?&quot;hsl(&quot;:&quot;hsla(&quot;)+(this.h||0)+&quot;, &quot;+100*(this.s||0)+&quot;%, &quot;+100*(this.l||0)+&quot;%&quot;+(1===t?&quot;)&quot;:&quot;, &quot;+t+&quot;)&quot;)}}));var I=Math.PI/180,P=180/Math.PI,z=6/29,O=3*z*z;function D(t){if(t instanceof F)return new F(t.l,t.a,t.b,t.opacity);if(t instanceof H)return G(t);t instanceof w||(t=b(t));var e,r,n=U(t.r),i=U(t.g),a=U(t.b),o=B((.2225045*n+.7168786*i+.0606169*a)/1);return n===i&amp;&amp;i===a?e=r=o:(e=B((.4360747*n+.3850649*i+.1430804*a)/.96422),r=B((.0139322*n+.0971045*i+.7141733*a)/.82521)),new F(116*o-16,500*(e-o),200*(o-r),t.opacity)}function R(t,e,r,n){return 1===arguments.length?D(t):new F(t,e,r,null==n?1:n)}function F(t,e,r,n){this.l=+t,this.a=+e,this.b=+r,this.opacity=+n}function B(t){return t&gt;.008856451679035631?Math.pow(t,1/3):t/O+4/29}function N(t){return t&gt;z?t*t*t:O*(t-4/29)}function j(t){return 255*(t&lt;=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function U(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function V(t){if(t instanceof H)return new H(t.h,t.c,t.l,t.opacity);if(t instanceof F||(t=D(t)),0===t.a&amp;&amp;0===t.b)return new H(NaN,0&lt;t.l&amp;&amp;t.l&lt;100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*P;return new H(e&lt;0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function q(t,e,r,n){return 1===arguments.length?V(t):new H(t,e,r,null==n?1:n)}function H(t,e,r,n){this.h=+t,this.c=+e,this.l=+r,this.opacity=+n}function G(t){if(isNaN(t.h))return new F(t.l,0,0,t.opacity);var e=t.h*I;return new F(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}e(F,R,r(n,{brighter:function(t){return new F(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new F(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return new w(j(3.1338561*(e=.96422*N(e))-1.6168667*(t=1*N(t))-.4906146*(r=.82521*N(r))),j(-.9787684*e+1.9161415*t+.033454*r),j(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}})),e(H,q,r(n,{brighter:function(t){return new H(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new H(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return G(this).rgb()}}));var Y=-.14861,W=1.78277,X=-.29227,Z=-.90649,J=1.97294,K=J*Z,Q=J*W,$=W*X-Z*Y;function tt(t){if(t instanceof rt)return new rt(t.h,t.s,t.l,t.opacity);t instanceof w||(t=b(t));var e=t.r/255,r=t.g/255,n=t.b/255,i=($*n+K*e-Q*r)/($+K-Q),a=n-i,o=(J*(r-i)-X*a)/Z,s=Math.sqrt(o*o+a*a)/(J*i*(1-i)),l=s?Math.atan2(o,a)*P-120:NaN;return new rt(l&lt;0?l+360:l,s,i,t.opacity)}function et(t,e,r,n){return 1===arguments.length?tt(t):new rt(t,e,r,null==n?1:n)}function rt(t,e,r,n){this.h=+t,this.s=+e,this.l=+r,this.opacity=+n}e(rt,et,r(n,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new rt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*I,e=+this.l,r=isNaN(this.s)?0:this.s*e*(1-e),n=Math.cos(t),i=Math.sin(t);return new w(255*(e+r*(Y*n+W*i)),255*(e+r*(X*n+Z*i)),255*(e+r*(J*n)),this.opacity)}})),t.color=v,t.cubehelix=et,t.gray=function(t,e){return new F(t,0,0,null==e?1:e)},t.hcl=q,t.hsl=E,t.lab=R,t.lch=function(t,e,r,n){return 1===arguments.length?V(t):new H(r,e,t,null==n?1:n)},t.rgb=_,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],159:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e={value:function(){}};function r(){for(var t,e=0,r=arguments.length,i={};e&lt;r;++e){if(!(t=arguments[e]+&quot;&quot;)||t in i||/[\s.]/.test(t))throw new Error(&quot;illegal type: &quot;+t);i[t]=[]}return new n(i)}function n(t){this._=t}function i(t,e){return t.trim().split(/^|\s+/).map((function(t){var r=&quot;&quot;,n=t.indexOf(&quot;.&quot;);if(n&gt;=0&amp;&amp;(r=t.slice(n+1),t=t.slice(0,n)),t&amp;&amp;!e.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);return{type:t,name:r}}))}function a(t,e){for(var r,n=0,i=t.length;n&lt;i;++n)if((r=t[n]).name===e)return r.value}function o(t,r,n){for(var i=0,a=t.length;i&lt;a;++i)if(t[i].name===r){t[i]=e,t=t.slice(0,i).concat(t.slice(i+1));break}return null!=n&amp;&amp;t.push({name:r,value:n}),t}n.prototype=r.prototype={constructor:n,on:function(t,e){var r,n=this._,s=i(t+&quot;&quot;,n),l=-1,c=s.length;if(!(arguments.length&lt;2)){if(null!=e&amp;&amp;&quot;function&quot;!=typeof e)throw new Error(&quot;invalid callback: &quot;+e);for(;++l&lt;c;)if(r=(t=s[l]).type)n[r]=o(n[r],t.name,e);else if(null==e)for(r in n)n[r]=o(n[r],t.name,null);return this}for(;++l&lt;c;)if((r=(t=s[l]).type)&amp;&amp;(r=a(n[r],t.name)))return r},copy:function(){var t={},e=this._;for(var r in e)t[r]=e[r].slice();return new n(t)},call:function(t,e){if((r=arguments.length-2)&gt;0)for(var r,n,i=new Array(r),a=0;a&lt;r;++a)i[a]=arguments[a+2];if(!this._.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);for(a=0,r=(n=this._[t]).length;a&lt;r;++a)n[a].value.apply(e,i)},apply:function(t,e,r){if(!this._.hasOwnProperty(t))throw new Error(&quot;unknown type: &quot;+t);for(var n=this._[t],i=0,a=n.length;i&lt;a;++i)n[i].value.apply(e,r)}},t.dispatch=r,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],160:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-quadtree&quot;),t(&quot;d3-collection&quot;),t(&quot;d3-dispatch&quot;),t(&quot;d3-timer&quot;)):i(n.d3=n.d3||{},n.d3,n.d3,n.d3,n.d3)}(this,(function(t,e,r,n,i){&quot;use strict&quot;;function a(t){return function(){return t}}function o(){return 1e-6*(Math.random()-.5)}function s(t){return t.x+t.vx}function l(t){return t.y+t.vy}function c(t){return t.index}function u(t,e){var r=t.get(e);if(!r)throw new Error(&quot;missing: &quot;+e);return r}function f(t){return t.x}function h(t){return t.y}var p=Math.PI*(3-Math.sqrt(5));t.forceCenter=function(t,e){var r;function n(){var n,i,a=r.length,o=0,s=0;for(n=0;n&lt;a;++n)o+=(i=r[n]).x,s+=i.y;for(o=o/a-t,s=s/a-e,n=0;n&lt;a;++n)(i=r[n]).x-=o,i.y-=s}return null==t&amp;&amp;(t=0),null==e&amp;&amp;(e=0),n.initialize=function(t){r=t},n.x=function(e){return arguments.length?(t=+e,n):t},n.y=function(t){return arguments.length?(e=+t,n):e},n},t.forceCollide=function(t){var r,n,i=1,c=1;function u(){for(var t,a,u,h,p,d,g,m=r.length,v=0;v&lt;c;++v)for(a=e.quadtree(r,s,l).visitAfter(f),t=0;t&lt;m;++t)u=r[t],d=n[u.index],g=d*d,h=u.x+u.vx,p=u.y+u.vy,a.visit(y);function y(t,e,r,n,a){var s=t.data,l=t.r,c=d+l;if(!s)return e&gt;h+c||n&lt;h-c||r&gt;p+c||a&lt;p-c;if(s.index&gt;u.index){var f=h-s.x-s.vx,m=p-s.y-s.vy,v=f*f+m*m;v&lt;c*c&amp;&amp;(0===f&amp;&amp;(v+=(f=o())*f),0===m&amp;&amp;(v+=(m=o())*m),v=(c-(v=Math.sqrt(v)))/v*i,u.vx+=(f*=v)*(c=(l*=l)/(g+l)),u.vy+=(m*=v)*c,s.vx-=f*(c=1-c),s.vy-=m*c)}}}function f(t){if(t.data)return t.r=n[t.data.index];for(var e=t.r=0;e&lt;4;++e)t[e]&amp;&amp;t[e].r&gt;t.r&amp;&amp;(t.r=t[e].r)}function h(){if(r){var e,i,a=r.length;for(n=new Array(a),e=0;e&lt;a;++e)i=r[e],n[i.index]=+t(i,e,r)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?1:+t)),u.initialize=function(t){r=t,h()},u.iterations=function(t){return arguments.length?(c=+t,u):c},u.strength=function(t){return arguments.length?(i=+t,u):i},u.radius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),h(),u):t},u},t.forceLink=function(t){var e,n,i,s,l,f=c,h=function(t){return 1/Math.min(s[t.source.index],s[t.target.index])},p=a(30),d=1;function g(r){for(var i=0,a=t.length;i&lt;d;++i)for(var s,c,u,f,h,p,g,m=0;m&lt;a;++m)c=(s=t[m]).source,f=(u=s.target).x+u.vx-c.x-c.vx||o(),h=u.y+u.vy-c.y-c.vy||o(),f*=p=((p=Math.sqrt(f*f+h*h))-n[m])/p*r*e[m],h*=p,u.vx-=f*(g=l[m]),u.vy-=h*g,c.vx+=f*(g=1-g),c.vy+=h*g}function m(){if(i){var a,o,c=i.length,h=t.length,p=r.map(i,f);for(a=0,s=new Array(c);a&lt;h;++a)(o=t[a]).index=a,&quot;object&quot;!=typeof o.source&amp;&amp;(o.source=u(p,o.source)),&quot;object&quot;!=typeof o.target&amp;&amp;(o.target=u(p,o.target)),s[o.source.index]=(s[o.source.index]||0)+1,s[o.target.index]=(s[o.target.index]||0)+1;for(a=0,l=new Array(h);a&lt;h;++a)o=t[a],l[a]=s[o.source.index]/(s[o.source.index]+s[o.target.index]);e=new Array(h),v(),n=new Array(h),y()}}function v(){if(i)for(var r=0,n=t.length;r&lt;n;++r)e[r]=+h(t[r],r,t)}function y(){if(i)for(var e=0,r=t.length;e&lt;r;++e)n[e]=+p(t[e],e,t)}return null==t&amp;&amp;(t=[]),g.initialize=function(t){i=t,m()},g.links=function(e){return arguments.length?(t=e,m(),g):t},g.id=function(t){return arguments.length?(f=t,g):f},g.iterations=function(t){return arguments.length?(d=+t,g):d},g.strength=function(t){return arguments.length?(h=&quot;function&quot;==typeof t?t:a(+t),v(),g):h},g.distance=function(t){return arguments.length?(p=&quot;function&quot;==typeof t?t:a(+t),y(),g):p},g},t.forceManyBody=function(){var t,r,n,i,s=a(-30),l=1,c=1/0,u=.81;function p(i){var a,o=t.length,s=e.quadtree(t,f,h).visitAfter(g);for(n=i,a=0;a&lt;o;++a)r=t[a],s.visit(m)}function d(){if(t){var e,r,n=t.length;for(i=new Array(n),e=0;e&lt;n;++e)r=t[e],i[r.index]=+s(r,e,t)}}function g(t){var e,r,n,a,o,s=0,l=0;if(t.length){for(n=a=o=0;o&lt;4;++o)(e=t[o])&amp;&amp;(r=Math.abs(e.value))&amp;&amp;(s+=e.value,l+=r,n+=r*e.x,a+=r*e.y);t.x=n/l,t.y=a/l}else{(e=t).x=e.data.x,e.y=e.data.y;do{s+=i[e.data.index]}while(e=e.next)}t.value=s}function m(t,e,a,s){if(!t.value)return!0;var f=t.x-r.x,h=t.y-r.y,p=s-e,d=f*f+h*h;if(p*p/u&lt;d)return d&lt;c&amp;&amp;(0===f&amp;&amp;(d+=(f=o())*f),0===h&amp;&amp;(d+=(h=o())*h),d&lt;l&amp;&amp;(d=Math.sqrt(l*d)),r.vx+=f*t.value*n/d,r.vy+=h*t.value*n/d),!0;if(!(t.length||d&gt;=c)){(t.data!==r||t.next)&amp;&amp;(0===f&amp;&amp;(d+=(f=o())*f),0===h&amp;&amp;(d+=(h=o())*h),d&lt;l&amp;&amp;(d=Math.sqrt(l*d)));do{t.data!==r&amp;&amp;(p=i[t.data.index]*n/d,r.vx+=f*p,r.vy+=h*p)}while(t=t.next)}}return p.initialize=function(e){t=e,d()},p.strength=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:a(+t),d(),p):s},p.distanceMin=function(t){return arguments.length?(l=t*t,p):Math.sqrt(l)},p.distanceMax=function(t){return arguments.length?(c=t*t,p):Math.sqrt(c)},p.theta=function(t){return arguments.length?(u=t*t,p):Math.sqrt(u)},p},t.forceRadial=function(t,e,r){var n,i,o,s=a(.1);function l(t){for(var a=0,s=n.length;a&lt;s;++a){var l=n[a],c=l.x-e||1e-6,u=l.y-r||1e-6,f=Math.sqrt(c*c+u*u),h=(o[a]-f)*i[a]*t/f;l.vx+=c*h,l.vy+=u*h}}function c(){if(n){var e,r=n.length;for(i=new Array(r),o=new Array(r),e=0;e&lt;r;++e)o[e]=+t(n[e],e,n),i[e]=isNaN(o[e])?0:+s(n[e],e,n)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(+t)),null==e&amp;&amp;(e=0),null==r&amp;&amp;(r=0),l.initialize=function(t){n=t,c()},l.strength=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:a(+t),c(),l):s},l.radius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),c(),l):t},l.x=function(t){return arguments.length?(e=+t,l):e},l.y=function(t){return arguments.length?(r=+t,l):r},l},t.forceSimulation=function(t){var e,a=1,o=.001,s=1-Math.pow(o,1/300),l=0,c=.6,u=r.map(),f=i.timer(d),h=n.dispatch(&quot;tick&quot;,&quot;end&quot;);function d(){g(),h.call(&quot;tick&quot;,e),a&lt;o&amp;&amp;(f.stop(),h.call(&quot;end&quot;,e))}function g(r){var n,i,o=t.length;void 0===r&amp;&amp;(r=1);for(var f=0;f&lt;r;++f)for(a+=(l-a)*s,u.each((function(t){t(a)})),n=0;n&lt;o;++n)null==(i=t[n]).fx?i.x+=i.vx*=c:(i.x=i.fx,i.vx=0),null==i.fy?i.y+=i.vy*=c:(i.y=i.fy,i.vy=0);return e}function m(){for(var e,r=0,n=t.length;r&lt;n;++r){if((e=t[r]).index=r,null!=e.fx&amp;&amp;(e.x=e.fx),null!=e.fy&amp;&amp;(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var i=10*Math.sqrt(r),a=r*p;e.x=i*Math.cos(a),e.y=i*Math.sin(a)}(isNaN(e.vx)||isNaN(e.vy))&amp;&amp;(e.vx=e.vy=0)}}function v(e){return e.initialize&amp;&amp;e.initialize(t),e}return null==t&amp;&amp;(t=[]),m(),e={tick:g,restart:function(){return f.restart(d),e},stop:function(){return f.stop(),e},nodes:function(r){return arguments.length?(t=r,m(),u.each(v),e):t},alpha:function(t){return arguments.length?(a=+t,e):a},alphaMin:function(t){return arguments.length?(o=+t,e):o},alphaDecay:function(t){return arguments.length?(s=+t,e):+s},alphaTarget:function(t){return arguments.length?(l=+t,e):l},velocityDecay:function(t){return arguments.length?(c=1-t,e):1-c},force:function(t,r){return arguments.length&gt;1?(null==r?u.remove(t):u.set(t,v(r)),e):u.get(t)},find:function(e,r,n){var i,a,o,s,l,c=0,u=t.length;for(null==n?n=1/0:n*=n,c=0;c&lt;u;++c)(o=(i=e-(s=t[c]).x)*i+(a=r-s.y)*a)&lt;n&amp;&amp;(l=s,n=o);return l},on:function(t,r){return arguments.length&gt;1?(h.on(t,r),e):h.on(t)}}},t.forceX=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a&lt;o;++a)(i=e[a]).vx+=(n[a]-i.x)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a&lt;o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:a(+t),s(),o):i},o.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),s(),o):t},o},t.forceY=function(t){var e,r,n,i=a(.1);function o(t){for(var i,a=0,o=e.length;a&lt;o;++a)(i=e[a]).vy+=(n[a]-i.y)*r[a]*t}function s(){if(e){var a,o=e.length;for(r=new Array(o),n=new Array(o),a=0;a&lt;o;++a)r[a]=isNaN(n[a]=+t(e[a],a,e))?0:+i(e[a],a,e)}}return&quot;function&quot;!=typeof t&amp;&amp;(t=a(null==t?0:+t)),o.initialize=function(t){e=t,s()},o.strength=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:a(+t),s(),o):i},o.y=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:a(+e),s(),o):t},o},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-collection&quot;:157,&quot;d3-dispatch&quot;:159,&quot;d3-quadtree&quot;:164,&quot;d3-timer&quot;:168}],161:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e){return t.parent===e.parent?1:2}function r(t,e){return t+e.x}function n(t,e){return Math.max(t,e.y)}function i(t){var e=0,r=t.children,n=r&amp;&amp;r.length;if(n)for(;--n&gt;=0;)e+=r[n].value;else e=1;t.value=e}function a(t,e){var r,n,i,a,s,u=new c(t),f=+t.value&amp;&amp;(u.value=t.value),h=[u];for(null==e&amp;&amp;(e=o);r=h.pop();)if(f&amp;&amp;(r.value=+r.data.value),(i=e(r.data))&amp;&amp;(s=i.length))for(r.children=new Array(s),a=s-1;a&gt;=0;--a)h.push(n=r.children[a]=new c(i[a])),n.parent=r,n.depth=r.depth+1;return u.eachBefore(l)}function o(t){return t.children}function s(t){t.data=t.data.data}function l(t){var e=0;do{t.height=e}while((t=t.parent)&amp;&amp;t.height&lt;++e)}function c(t){this.data=t,this.depth=this.height=0,this.parent=null}c.prototype=a.prototype={constructor:c,count:function(){return this.eachAfter(i)},each:function(t){var e,r,n,i,a=this,o=[a];do{for(e=o.reverse(),o=[];a=e.pop();)if(t(a),r=a.children)for(n=0,i=r.length;n&lt;i;++n)o.push(r[n])}while(o.length);return this},eachAfter:function(t){for(var e,r,n,i=this,a=[i],o=[];i=a.pop();)if(o.push(i),e=i.children)for(r=0,n=e.length;r&lt;n;++r)a.push(e[r]);for(;i=o.pop();)t(i);return this},eachBefore:function(t){for(var e,r,n=this,i=[n];n=i.pop();)if(t(n),e=n.children)for(r=e.length-1;r&gt;=0;--r)i.push(e[r]);return this},sum:function(t){return this.eachAfter((function(e){for(var r=+t(e.data)||0,n=e.children,i=n&amp;&amp;n.length;--i&gt;=0;)r+=n[i].value;e.value=r}))},sort:function(t){return this.eachBefore((function(e){e.children&amp;&amp;e.children.sort(t)}))},path:function(t){for(var e=this,r=function(t,e){if(t===e)return t;var r=t.ancestors(),n=e.ancestors(),i=null;t=r.pop(),e=n.pop();for(;t===e;)i=t,t=r.pop(),e=n.pop();return i}(e,t),n=[e];e!==r;)e=e.parent,n.push(e);for(var i=n.length;t!==r;)n.splice(i,0,t),t=t.parent;return n},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){var t=[];return this.each((function(e){t.push(e)})),t},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(r){r!==t&amp;&amp;e.push({source:r.parent,target:r})})),e},copy:function(){return a(this).eachBefore(s)}};var u=Array.prototype.slice;function f(t){for(var e,r,n=0,i=(t=function(t){for(var e,r,n=t.length;n;)r=Math.random()*n--|0,e=t[n],t[n]=t[r],t[r]=e;return t}(u.call(t))).length,a=[];n&lt;i;)e=t[n],r&amp;&amp;d(r,e)?++n:(r=m(a=h(a,e)),n=0);return r}function h(t,e){var r,n;if(g(e,t))return[e];for(r=0;r&lt;t.length;++r)if(p(e,t[r])&amp;&amp;g(v(t[r],e),t))return[t[r],e];for(r=0;r&lt;t.length-1;++r)for(n=r+1;n&lt;t.length;++n)if(p(v(t[r],t[n]),e)&amp;&amp;p(v(t[r],e),t[n])&amp;&amp;p(v(t[n],e),t[r])&amp;&amp;g(y(t[r],t[n],e),t))return[t[r],t[n],e];throw new Error}function p(t,e){var r=t.r-e.r,n=e.x-t.x,i=e.y-t.y;return r&lt;0||r*r&lt;n*n+i*i}function d(t,e){var r=t.r-e.r+1e-6,n=e.x-t.x,i=e.y-t.y;return r&gt;0&amp;&amp;r*r&gt;n*n+i*i}function g(t,e){for(var r=0;r&lt;e.length;++r)if(!d(t,e[r]))return!1;return!0}function m(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return v(t[0],t[1]);case 3:return y(t[0],t[1],t[2])}var e}function v(t,e){var r=t.x,n=t.y,i=t.r,a=e.x,o=e.y,s=e.r,l=a-r,c=o-n,u=s-i,f=Math.sqrt(l*l+c*c);return{x:(r+a+l/f*u)/2,y:(n+o+c/f*u)/2,r:(f+i+s)/2}}function y(t,e,r){var n=t.x,i=t.y,a=t.r,o=e.x,s=e.y,l=e.r,c=r.x,u=r.y,f=r.r,h=n-o,p=n-c,d=i-s,g=i-u,m=l-a,v=f-a,y=n*n+i*i-a*a,x=y-o*o-s*s+l*l,b=y-c*c-u*u+f*f,_=p*d-h*g,w=(d*b-g*x)/(2*_)-n,T=(g*m-d*v)/_,k=(p*x-h*b)/(2*_)-i,M=(h*v-p*m)/_,A=T*T+M*M-1,S=2*(a+w*T+k*M),E=w*w+k*k-a*a,C=-(A?(S+Math.sqrt(S*S-4*A*E))/(2*A):E/S);return{x:n+w+T*C,y:i+k+M*C,r:C}}function x(t,e,r){var n,i,a,o,s=t.x-e.x,l=t.y-e.y,c=s*s+l*l;c?(i=e.r+r.r,i*=i,o=t.r+r.r,i&gt;(o*=o)?(n=(c+o-i)/(2*c),a=Math.sqrt(Math.max(0,o/c-n*n)),r.x=t.x-n*s-a*l,r.y=t.y-n*l+a*s):(n=(c+i-o)/(2*c),a=Math.sqrt(Math.max(0,i/c-n*n)),r.x=e.x+n*s-a*l,r.y=e.y+n*l+a*s)):(r.x=e.x+r.r,r.y=e.y)}function b(t,e){var r=t.r+e.r-1e-6,n=e.x-t.x,i=e.y-t.y;return r&gt;0&amp;&amp;r*r&gt;n*n+i*i}function _(t){var e=t._,r=t.next._,n=e.r+r.r,i=(e.x*r.r+r.x*e.r)/n,a=(e.y*r.r+r.y*e.r)/n;return i*i+a*a}function w(t){this._=t,this.next=null,this.previous=null}function T(t){if(!(i=t.length))return 0;var e,r,n,i,a,o,s,l,c,u,h;if((e=t[0]).x=0,e.y=0,!(i&gt;1))return e.r;if(r=t[1],e.x=-r.r,r.x=e.r,r.y=0,!(i&gt;2))return e.r+r.r;x(r,e,n=t[2]),e=new w(e),r=new w(r),n=new w(n),e.next=n.previous=r,r.next=e.previous=n,n.next=r.previous=e;t:for(s=3;s&lt;i;++s){x(e._,r._,n=t[s]),n=new w(n),l=r.next,c=e.previous,u=r._.r,h=e._.r;do{if(u&lt;=h){if(b(l._,n._)){r=l,e.next=r,r.previous=e,--s;continue t}u+=l._.r,l=l.next}else{if(b(c._,n._)){(e=c).next=r,r.previous=e,--s;continue t}h+=c._.r,c=c.previous}}while(l!==c.next);for(n.previous=e,n.next=r,e.next=r.previous=r=n,a=_(e);(n=n.next)!==r;)(o=_(n))&lt;a&amp;&amp;(e=n,a=o);r=e.next}for(e=[r._],n=r;(n=n.next)!==r;)e.push(n._);for(n=f(e),s=0;s&lt;i;++s)(e=t[s]).x-=n.x,e.y-=n.y;return n.r}function k(t){return null==t?null:M(t)}function M(t){if(&quot;function&quot;!=typeof t)throw new Error;return t}function A(){return 0}function S(t){return function(){return t}}function E(t){return Math.sqrt(t.value)}function C(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function L(t,e){return function(r){if(n=r.children){var n,i,a,o=n.length,s=t(r)*e||0;if(s)for(i=0;i&lt;o;++i)n[i].r+=s;if(a=T(n),s)for(i=0;i&lt;o;++i)n[i].r-=s;r.r=a+s}}}function I(t){return function(e){var r=e.parent;e.r*=t,r&amp;&amp;(e.x=r.x+t*e.x,e.y=r.y+t*e.y)}}function P(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}function z(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&amp;&amp;(n-e)/t.value;++s&lt;l;)(a=o[s]).y0=r,a.y1=i,a.x0=e,a.x1=e+=a.value*c}var O={depth:-1},D={};function R(t){return t.id}function F(t){return t.parentId}function B(t,e){return t.parent===e.parent?1:2}function N(t){var e=t.children;return e?e[0]:t.t}function j(t){var e=t.children;return e?e[e.length-1]:t.t}function U(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function V(t,e,r){return t.a.parent===e.parent?t.a:r}function q(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function H(t,e,r,n,i){for(var a,o=t.children,s=-1,l=o.length,c=t.value&amp;&amp;(i-r)/t.value;++s&lt;l;)(a=o[s]).x0=e,a.x1=n,a.y0=r,a.y1=r+=a.value*c}q.prototype=Object.create(c.prototype);var G=(1+Math.sqrt(5))/2;function Y(t,e,r,n,i,a){for(var o,s,l,c,u,f,h,p,d,g,m,v=[],y=e.children,x=0,b=0,_=y.length,w=e.value;x&lt;_;){l=i-r,c=a-n;do{u=y[b++].value}while(!u&amp;&amp;b&lt;_);for(f=h=u,m=u*u*(g=Math.max(c/l,l/c)/(w*t)),d=Math.max(h/m,m/f);b&lt;_;++b){if(u+=s=y[b].value,s&lt;f&amp;&amp;(f=s),s&gt;h&amp;&amp;(h=s),m=u*u*g,(p=Math.max(h/m,m/f))&gt;d){u-=s;break}d=p}v.push(o={value:u,dice:l&lt;c,children:y.slice(x,b)}),o.dice?z(o,r,n,i,w?n+=c*u/w:a):H(o,r,n,w?r+=l*u/w:i,a),w-=u,x=b}return v}var W=function t(e){function r(t,r,n,i,a){Y(e,t,r,n,i,a)}return r.ratio=function(e){return t((e=+e)&gt;1?e:1)},r}(G);var X=function t(e){function r(t,r,n,i,a){if((o=t._squarify)&amp;&amp;o.ratio===e)for(var o,s,l,c,u,f=-1,h=o.length,p=t.value;++f&lt;h;){for(l=(s=o[f]).children,c=s.value=0,u=l.length;c&lt;u;++c)s.value+=l[c].value;s.dice?z(s,r,n,i,n+=(a-n)*s.value/p):H(s,r,n,r+=(i-r)*s.value/p,a),p-=s.value}else t._squarify=o=Y(e,t,r,n,i,a),o.ratio=e}return r.ratio=function(e){return t((e=+e)&gt;1?e:1)},r}(G);t.cluster=function(){var t=e,i=1,a=1,o=!1;function s(e){var s,l=0;e.eachAfter((function(e){var i=e.children;i?(e.x=function(t){return t.reduce(r,0)/t.length}(i),e.y=function(t){return 1+t.reduce(n,0)}(i)):(e.x=s?l+=t(e,s):0,e.y=0,s=e)}));var c=function(t){for(var e;e=t.children;)t=e[0];return t}(e),u=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(e),f=c.x-t(c,u)/2,h=u.x+t(u,c)/2;return e.eachAfter(o?function(t){t.x=(t.x-e.x)*i,t.y=(e.y-t.y)*a}:function(t){t.x=(t.x-f)/(h-f)*i,t.y=(1-(e.y?t.y/e.y:1))*a})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(o=!1,i=+t[0],a=+t[1],s):o?null:[i,a]},s.nodeSize=function(t){return arguments.length?(o=!0,i=+t[0],a=+t[1],s):o?[i,a]:null},s},t.hierarchy=a,t.pack=function(){var t=null,e=1,r=1,n=A;function i(i){return i.x=e/2,i.y=r/2,t?i.eachBefore(C(t)).eachAfter(L(n,.5)).eachBefore(I(1)):i.eachBefore(C(E)).eachAfter(L(A,1)).eachAfter(L(n,i.r/Math.min(e,r))).eachBefore(I(Math.min(e,r)/(2*i.r))),i}return i.radius=function(e){return arguments.length?(t=k(e),i):t},i.size=function(t){return arguments.length?(e=+t[0],r=+t[1],i):[e,r]},i.padding=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:S(+t),i):n},i},t.packEnclose=f,t.packSiblings=function(t){return T(t),t},t.partition=function(){var t=1,e=1,r=0,n=!1;function i(i){var a=i.height+1;return i.x0=i.y0=r,i.x1=t,i.y1=e/a,i.eachBefore(function(t,e){return function(n){n.children&amp;&amp;z(n,n.x0,t*(n.depth+1)/e,n.x1,t*(n.depth+2)/e);var i=n.x0,a=n.y0,o=n.x1-r,s=n.y1-r;o&lt;i&amp;&amp;(i=o=(i+o)/2),s&lt;a&amp;&amp;(a=s=(a+s)/2),n.x0=i,n.y0=a,n.x1=o,n.y1=s}}(e,a)),n&amp;&amp;i.eachBefore(P),i}return i.round=function(t){return arguments.length?(n=!!t,i):n},i.size=function(r){return arguments.length?(t=+r[0],e=+r[1],i):[t,e]},i.padding=function(t){return arguments.length?(r=+t,i):r},i},t.stratify=function(){var t=R,e=F;function r(r){var n,i,a,o,s,u,f,h=r.length,p=new Array(h),d={};for(i=0;i&lt;h;++i)n=r[i],s=p[i]=new c(n),null!=(u=t(n,i,r))&amp;&amp;(u+=&quot;&quot;)&amp;&amp;(d[f=&quot;$&quot;+(s.id=u)]=f in d?D:s);for(i=0;i&lt;h;++i)if(s=p[i],null!=(u=e(r[i],i,r))&amp;&amp;(u+=&quot;&quot;)){if(!(o=d[&quot;$&quot;+u]))throw new Error(&quot;missing: &quot;+u);if(o===D)throw new Error(&quot;ambiguous: &quot;+u);o.children?o.children.push(s):o.children=[s],s.parent=o}else{if(a)throw new Error(&quot;multiple roots&quot;);a=s}if(!a)throw new Error(&quot;no root&quot;);if(a.parent=O,a.eachBefore((function(t){t.depth=t.parent.depth+1,--h})).eachBefore(l),a.parent=null,h&gt;0)throw new Error(&quot;cycle&quot;);return a}return r.id=function(e){return arguments.length?(t=M(e),r):t},r.parentId=function(t){return arguments.length?(e=M(t),r):e},r},t.tree=function(){var t=B,e=1,r=1,n=null;function i(i){var l=function(t){for(var e,r,n,i,a,o=new q(t,0),s=[o];e=s.pop();)if(n=e._.children)for(e.children=new Array(a=n.length),i=a-1;i&gt;=0;--i)s.push(r=e.children[i]=new q(n[i],i)),r.parent=e;return(o.parent=new q(null,0)).children=[o],o}(i);if(l.eachAfter(a),l.parent.m=-l.z,l.eachBefore(o),n)i.eachBefore(s);else{var c=i,u=i,f=i;i.eachBefore((function(t){t.x&lt;c.x&amp;&amp;(c=t),t.x&gt;u.x&amp;&amp;(u=t),t.depth&gt;f.depth&amp;&amp;(f=t)}));var h=c===u?1:t(c,u)/2,p=h-c.x,d=e/(u.x+h+p),g=r/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*g}))}return i}function a(e){var r=e.children,n=e.parent.children,i=e.i?n[e.i-1]:null;if(r){!function(t){for(var e,r=0,n=0,i=t.children,a=i.length;--a&gt;=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(e);var a=(r[0].z+r[r.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-a):e.z=a}else i&amp;&amp;(e.z=i.z+t(e._,i._));e.parent.A=function(e,r,n){if(r){for(var i,a=e,o=e,s=r,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=j(s),a=N(a),s&amp;&amp;a;)l=N(l),(o=j(o)).a=e,(i=s.z+f-a.z-c+t(s._,a._))&gt;0&amp;&amp;(U(V(s,e,n),e,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&amp;&amp;!j(o)&amp;&amp;(o.t=s,o.m+=f-u),a&amp;&amp;!N(l)&amp;&amp;(l.t=a,l.m+=c-h,n=e)}return n}(e,i,e.parent.A||n[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(t){t.x*=e,t.y=t.depth*r}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(n=!1,e=+t[0],r=+t[1],i):n?null:[e,r]},i.nodeSize=function(t){return arguments.length?(n=!0,e=+t[0],r=+t[1],i):n?[e,r]:null},i},t.treemap=function(){var t=W,e=!1,r=1,n=1,i=[0],a=A,o=A,s=A,l=A,c=A;function u(t){return t.x0=t.y0=0,t.x1=r,t.y1=n,t.eachBefore(f),i=[0],e&amp;&amp;t.eachBefore(P),t}function f(e){var r=i[e.depth],n=e.x0+r,u=e.y0+r,f=e.x1-r,h=e.y1-r;f&lt;n&amp;&amp;(n=f=(n+f)/2),h&lt;u&amp;&amp;(u=h=(u+h)/2),e.x0=n,e.y0=u,e.x1=f,e.y1=h,e.children&amp;&amp;(r=i[e.depth+1]=a(e)/2,n+=c(e)-r,u+=o(e)-r,(f-=s(e)-r)&lt;n&amp;&amp;(n=f=(n+f)/2),(h-=l(e)-r)&lt;u&amp;&amp;(u=h=(u+h)/2),t(e,n,u,f,h))}return u.round=function(t){return arguments.length?(e=!!t,u):e},u.size=function(t){return arguments.length?(r=+t[0],n=+t[1],u):[r,n]},u.tile=function(e){return arguments.length?(t=M(e),u):t},u.padding=function(t){return arguments.length?u.paddingInner(t).paddingOuter(t):u.paddingInner()},u.paddingInner=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:S(+t),u):a},u.paddingOuter=function(t){return arguments.length?u.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):u.paddingTop()},u.paddingTop=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:S(+t),u):o},u.paddingRight=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?t:S(+t),u):s},u.paddingBottom=function(t){return arguments.length?(l=&quot;function&quot;==typeof t?t:S(+t),u):l},u.paddingLeft=function(t){return arguments.length?(c=&quot;function&quot;==typeof t?t:S(+t),u):c},u},t.treemapBinary=function(t,e,r,n,i){var a,o,s=t.children,l=s.length,c=new Array(l+1);for(c[0]=o=a=0;a&lt;l;++a)c[a+1]=o+=s[a].value;!function t(e,r,n,i,a,o,l){if(e&gt;=r-1){var u=s[e];return u.x0=i,u.y0=a,u.x1=o,void(u.y1=l)}var f=c[e],h=n/2+f,p=e+1,d=r-1;for(;p&lt;d;){var g=p+d&gt;&gt;&gt;1;c[g]&lt;h?p=g+1:d=g}h-c[p-1]&lt;c[p]-h&amp;&amp;e+1&lt;p&amp;&amp;--p;var m=c[p]-f,v=n-m;if(o-i&gt;l-a){var y=(i*v+o*m)/n;t(e,p,m,i,a,y,l),t(p,r,v,y,a,o,l)}else{var x=(a*v+l*m)/n;t(e,p,m,i,a,o,x),t(p,r,v,i,x,o,l)}}(0,l,t.value,e,r,n,i)},t.treemapDice=z,t.treemapResquarify=X,t.treemapSlice=H,t.treemapSliceDice=function(t,e,r,n,i){(1&amp;t.depth?H:z)(t,e,r,n,i)},t.treemapSquarify=W,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],162:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-color&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t,e,r,n,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*r+(1+3*t+3*a-3*o)*n+o*i)/6}function n(t){var e=t.length-1;return function(n){var i=n&lt;=0?n=0:n&gt;=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i&gt;0?t[i-1]:2*a-o,l=i&lt;e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,l)}}function i(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)&lt;0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],l=t[(i+2)%e];return r((n-i/e)*e,a,o,s,l)}}function a(t){return function(){return t}}function o(t,e){return function(r){return t+r*e}}function s(t,e){var r=e-t;return r?o(t,r&gt;180||r&lt;-180?r-360*Math.round(r/360):r):a(isNaN(t)?e:t)}function l(t){return 1==(t=+t)?c:function(e,r){return r-e?function(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(n){return Math.pow(t+n*e,r)}}(e,r,t):a(isNaN(e)?r:e)}}function c(t,e){var r=e-t;return r?o(t,r):a(isNaN(t)?e:t)}var u=function t(r){var n=l(r);function i(t,r){var i=n((t=e.rgb(t)).r,(r=e.rgb(r)).r),a=n(t.g,r.g),o=n(t.b,r.b),s=c(t.opacity,r.opacity);return function(e){return t.r=i(e),t.g=a(e),t.b=o(e),t.opacity=s(e),t+&quot;&quot;}}return i.gamma=t,i}(1);function f(t){return function(r){var n,i,a=r.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;n&lt;a;++n)i=e.rgb(r[n]),o[n]=i.r||0,s[n]=i.g||0,l[n]=i.b||0;return o=t(o),s=t(s),l=t(l),i.opacity=1,function(t){return i.r=o(t),i.g=s(t),i.b=l(t),i+&quot;&quot;}}}var h=f(n),p=f(i);function d(t,e){e||(e=[]);var r,n=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(r=0;r&lt;n;++r)i[r]=t[r]*(1-a)+e[r]*a;return i}}function g(t){return ArrayBuffer.isView(t)&amp;&amp;!(t instanceof DataView)}function m(t,e){var r,n=e?e.length:0,i=t?Math.min(n,t.length):0,a=new Array(i),o=new Array(n);for(r=0;r&lt;i;++r)a[r]=T(t[r],e[r]);for(;r&lt;n;++r)o[r]=e[r];return function(t){for(r=0;r&lt;i;++r)o[r]=a[r](t);return o}}function v(t,e){var r=new Date;return t=+t,e=+e,function(n){return r.setTime(t*(1-n)+e*n),r}}function y(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function x(t,e){var r,n={},i={};for(r in null!==t&amp;&amp;&quot;object&quot;==typeof t||(t={}),null!==e&amp;&amp;&quot;object&quot;==typeof e||(e={}),e)r in t?n[r]=T(t[r],e[r]):i[r]=e[r];return function(t){for(r in n)i[r]=n[r](t);return i}}var b=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_=new RegExp(b.source,&quot;g&quot;);function w(t,e){var r,n,i,a=b.lastIndex=_.lastIndex=0,o=-1,s=[],l=[];for(t+=&quot;&quot;,e+=&quot;&quot;;(r=b.exec(t))&amp;&amp;(n=_.exec(e));)(i=n.index)&gt;a&amp;&amp;(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:y(r,n)})),a=_.lastIndex;return a&lt;e.length&amp;&amp;(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length&lt;2?l[0]?function(t){return function(e){return t(e)+&quot;&quot;}}(l[0].x):function(t){return function(){return t}}(e):(e=l.length,function(t){for(var r,n=0;n&lt;e;++n)s[(r=l[n]).i]=r.x(t);return s.join(&quot;&quot;)})}function T(t,r){var n,i=typeof r;return null==r||&quot;boolean&quot;===i?a(r):(&quot;number&quot;===i?y:&quot;string&quot;===i?(n=e.color(r))?(r=n,u):w:r instanceof e.color?u:r instanceof Date?v:g(r)?d:Array.isArray(r)?m:&quot;function&quot;!=typeof r.valueOf&amp;&amp;&quot;function&quot;!=typeof r.toString||isNaN(r)?x:y)(t,r)}var k,M,A,S,E=180/Math.PI,C={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function L(t,e,r,n,i,a){var o,s,l;return(o=Math.sqrt(t*t+e*e))&amp;&amp;(t/=o,e/=o),(l=t*r+e*n)&amp;&amp;(r-=t*l,n-=e*l),(s=Math.sqrt(r*r+n*n))&amp;&amp;(r/=s,n/=s,l/=s),t*n&lt;e*r&amp;&amp;(t=-t,e=-e,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(e,t)*E,skewX:Math.atan(l)*E,scaleX:o,scaleY:s}}function I(t,e,r,n){function i(t){return t.length?t.pop()+&quot; &quot;:&quot;&quot;}return function(a,o){var s=[],l=[];return a=t(a),o=t(o),function(t,n,i,a,o,s){if(t!==i||n!==a){var l=o.push(&quot;translate(&quot;,null,e,null,r);s.push({i:l-4,x:y(t,i)},{i:l-2,x:y(n,a)})}else(i||a)&amp;&amp;o.push(&quot;translate(&quot;+i+e+a+r)}(a.translateX,a.translateY,o.translateX,o.translateY,s,l),function(t,e,r,a){t!==e?(t-e&gt;180?e+=360:e-t&gt;180&amp;&amp;(t+=360),a.push({i:r.push(i(r)+&quot;rotate(&quot;,null,n)-2,x:y(t,e)})):e&amp;&amp;r.push(i(r)+&quot;rotate(&quot;+e+n)}(a.rotate,o.rotate,s,l),function(t,e,r,a){t!==e?a.push({i:r.push(i(r)+&quot;skewX(&quot;,null,n)-2,x:y(t,e)}):e&amp;&amp;r.push(i(r)+&quot;skewX(&quot;+e+n)}(a.skewX,o.skewX,s,l),function(t,e,r,n,a,o){if(t!==r||e!==n){var s=a.push(i(a)+&quot;scale(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);o.push({i:s-4,x:y(t,r)},{i:s-2,x:y(e,n)})}else 1===r&amp;&amp;1===n||a.push(i(a)+&quot;scale(&quot;+r+&quot;,&quot;+n+&quot;)&quot;)}(a.scaleX,a.scaleY,o.scaleX,o.scaleY,s,l),a=o=null,function(t){for(var e,r=-1,n=l.length;++r&lt;n;)s[(e=l[r]).i]=e.x(t);return s.join(&quot;&quot;)}}}var P=I((function(t){return&quot;none&quot;===t?C:(k||(k=document.createElement(&quot;DIV&quot;),M=document.documentElement,A=document.defaultView),k.style.transform=t,t=A.getComputedStyle(M.appendChild(k),null).getPropertyValue(&quot;transform&quot;),M.removeChild(k),L(+(t=t.slice(7,-1).split(&quot;,&quot;))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))}),&quot;px, &quot;,&quot;px)&quot;,&quot;deg)&quot;),z=I((function(t){return null==t?C:(S||(S=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;)),S.setAttribute(&quot;transform&quot;,t),(t=S.transform.baseVal.consolidate())?L((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):C)}),&quot;, &quot;,&quot;)&quot;,&quot;)&quot;),O=Math.SQRT2;function D(t){return((t=Math.exp(t))+1/t)/2}function R(t){return function(r,n){var i=t((r=e.hsl(r)).h,(n=e.hsl(n)).h),a=c(r.s,n.s),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.s=a(t),r.l=o(t),r.opacity=s(t),r+&quot;&quot;}}}var F=R(s),B=R(c);function N(t){return function(r,n){var i=t((r=e.hcl(r)).h,(n=e.hcl(n)).h),a=c(r.c,n.c),o=c(r.l,n.l),s=c(r.opacity,n.opacity);return function(t){return r.h=i(t),r.c=a(t),r.l=o(t),r.opacity=s(t),r+&quot;&quot;}}}var j=N(s),U=N(c);function V(t){return function r(n){function i(r,i){var a=t((r=e.cubehelix(r)).h,(i=e.cubehelix(i)).h),o=c(r.s,i.s),s=c(r.l,i.l),l=c(r.opacity,i.opacity);return function(t){return r.h=a(t),r.s=o(t),r.l=s(Math.pow(t,n)),r.opacity=l(t),r+&quot;&quot;}}return n=+n,i.gamma=r,i}(1)}var q=V(s),H=V(c);t.interpolate=T,t.interpolateArray=function(t,e){return(g(e)?d:m)(t,e)},t.interpolateBasis=n,t.interpolateBasisClosed=i,t.interpolateCubehelix=q,t.interpolateCubehelixLong=H,t.interpolateDate=v,t.interpolateDiscrete=function(t){var e=t.length;return function(r){return t[Math.max(0,Math.min(e-1,Math.floor(r*e)))]}},t.interpolateHcl=j,t.interpolateHclLong=U,t.interpolateHsl=F,t.interpolateHslLong=B,t.interpolateHue=function(t,e){var r=s(+t,+e);return function(t){var e=r(t);return e-360*Math.floor(e/360)}},t.interpolateLab=function(t,r){var n=c((t=e.lab(t)).l,(r=e.lab(r)).l),i=c(t.a,r.a),a=c(t.b,r.b),o=c(t.opacity,r.opacity);return function(e){return t.l=n(e),t.a=i(e),t.b=a(e),t.opacity=o(e),t+&quot;&quot;}},t.interpolateNumber=y,t.interpolateNumberArray=d,t.interpolateObject=x,t.interpolateRgb=u,t.interpolateRgbBasis=h,t.interpolateRgbBasisClosed=p,t.interpolateRound=function(t,e){return t=+t,e=+e,function(r){return Math.round(t*(1-r)+e*r)}},t.interpolateString=w,t.interpolateTransformCss=P,t.interpolateTransformSvg=z,t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h&lt;1e-12)n=Math.log(c/o)/O,r=function(t){return[i+t*u,a+t*f,o*Math.exp(O*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),g=(c*c-o*o-4*h)/(2*c*2*p),m=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(g*g+1)-g);n=(v-m)/O,r=function(t){var e,r=t*n,s=D(m),l=o/(2*p)*(s*(e=O*r+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[i+l*u,a+l*f,o*s/D(O*r+m)]}}return r.duration=1e3*n,r},t.piecewise=function(t,e){for(var r=0,n=e.length-1,i=e[0],a=new Array(n&lt;0?0:n);r&lt;n;)a[r]=t(i,i=e[++r]);return function(t){var e=Math.max(0,Math.min(n-1,Math.floor(t*=n)));return a[e](t-e)}},t.quantize=function(t,e){for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=t(n/(e-1));return r},Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-color&quot;:158}],163:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e=Math.PI,r=2*e,n=r-1e-6;function i(){this._x0=this._y0=this._x1=this._y1=null,this._=&quot;&quot;}function a(){return new i}i.prototype=a.prototype={constructor:i,moveTo:function(t,e){this._+=&quot;M&quot;+(this._x0=this._x1=+t)+&quot;,&quot;+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&amp;&amp;(this._x1=this._x0,this._y1=this._y0,this._+=&quot;Z&quot;)},lineTo:function(t,e){this._+=&quot;L&quot;+(this._x1=+t)+&quot;,&quot;+(this._y1=+e)},quadraticCurveTo:function(t,e,r,n){this._+=&quot;Q&quot;+ +t+&quot;,&quot;+ +e+&quot;,&quot;+(this._x1=+r)+&quot;,&quot;+(this._y1=+n)},bezierCurveTo:function(t,e,r,n,i,a){this._+=&quot;C&quot;+ +t+&quot;,&quot;+ +e+&quot;,&quot;+ +r+&quot;,&quot;+ +n+&quot;,&quot;+(this._x1=+i)+&quot;,&quot;+(this._y1=+a)},arcTo:function(t,r,n,i,a){t=+t,r=+r,n=+n,i=+i,a=+a;var o=this._x1,s=this._y1,l=n-t,c=i-r,u=o-t,f=s-r,h=u*u+f*f;if(a&lt;0)throw new Error(&quot;negative radius: &quot;+a);if(null===this._x1)this._+=&quot;M&quot;+(this._x1=t)+&quot;,&quot;+(this._y1=r);else if(h&gt;1e-6)if(Math.abs(f*l-c*u)&gt;1e-6&amp;&amp;a){var p=n-o,d=i-s,g=l*l+c*c,m=p*p+d*d,v=Math.sqrt(g),y=Math.sqrt(h),x=a*Math.tan((e-Math.acos((g+h-m)/(2*v*y)))/2),b=x/y,_=x/v;Math.abs(b-1)&gt;1e-6&amp;&amp;(this._+=&quot;L&quot;+(t+b*u)+&quot;,&quot;+(r+b*f)),this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,0,&quot;+ +(f*p&gt;u*d)+&quot;,&quot;+(this._x1=t+_*l)+&quot;,&quot;+(this._y1=r+_*c)}else this._+=&quot;L&quot;+(this._x1=t)+&quot;,&quot;+(this._y1=r);else;},arc:function(t,i,a,o,s,l){t=+t,i=+i,l=!!l;var c=(a=+a)*Math.cos(o),u=a*Math.sin(o),f=t+c,h=i+u,p=1^l,d=l?o-s:s-o;if(a&lt;0)throw new Error(&quot;negative radius: &quot;+a);null===this._x1?this._+=&quot;M&quot;+f+&quot;,&quot;+h:(Math.abs(this._x1-f)&gt;1e-6||Math.abs(this._y1-h)&gt;1e-6)&amp;&amp;(this._+=&quot;L&quot;+f+&quot;,&quot;+h),a&amp;&amp;(d&lt;0&amp;&amp;(d=d%r+r),d&gt;n?this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,1,&quot;+p+&quot;,&quot;+(t-c)+&quot;,&quot;+(i-u)+&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,1,&quot;+p+&quot;,&quot;+(this._x1=f)+&quot;,&quot;+(this._y1=h):d&gt;1e-6&amp;&amp;(this._+=&quot;A&quot;+a+&quot;,&quot;+a+&quot;,0,&quot;+ +(d&gt;=e)+&quot;,&quot;+p+&quot;,&quot;+(this._x1=t+a*Math.cos(s))+&quot;,&quot;+(this._y1=i+a*Math.sin(s))))},rect:function(t,e,r,n){this._+=&quot;M&quot;+(this._x0=this._x1=+t)+&quot;,&quot;+(this._y0=this._y1=+e)+&quot;h&quot;+ +r+&quot;v&quot;+ +n+&quot;h&quot;+-r+&quot;Z&quot;},toString:function(){return this._}},t.path=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],164:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;function e(t,e,r,n){if(isNaN(e)||isNaN(r))return t;var i,a,o,s,l,c,u,f,h,p=t._root,d={data:n},g=t._x0,m=t._y0,v=t._x1,y=t._y1;if(!p)return t._root=d,t;for(;p.length;)if((c=e&gt;=(a=(g+v)/2))?g=a:v=a,(u=r&gt;=(o=(m+y)/2))?m=o:y=o,i=p,!(p=p[f=u&lt;&lt;1|c]))return i[f]=d,t;if(s=+t._x.call(null,p.data),l=+t._y.call(null,p.data),e===s&amp;&amp;r===l)return d.next=p,i?i[f]=d:t._root=d,t;do{i=i?i[f]=new Array(4):t._root=new Array(4),(c=e&gt;=(a=(g+v)/2))?g=a:v=a,(u=r&gt;=(o=(m+y)/2))?m=o:y=o}while((f=u&lt;&lt;1|c)==(h=(l&gt;=o)&lt;&lt;1|s&gt;=a));return i[h]=p,i[f]=d,t}function r(t,e,r,n,i){this.node=t,this.x0=e,this.y0=r,this.x1=n,this.y1=i}function n(t){return t[0]}function i(t){return t[1]}function a(t,e,r){var a=new o(null==e?n:e,null==r?i:r,NaN,NaN,NaN,NaN);return null==t?a:a.addAll(t)}function o(t,e,r,n,i,a){this._x=t,this._y=e,this._x0=r,this._y0=n,this._x1=i,this._y1=a,this._root=void 0}function s(t){for(var e={data:t.data},r=e;t=t.next;)r=r.next={data:t.data};return e}var l=a.prototype=o.prototype;l.copy=function(){var t,e,r=new o(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=s(n),r;for(t=[{source:n,target:r._root=new Array(4)}];n=t.pop();)for(var i=0;i&lt;4;++i)(e=n.source[i])&amp;&amp;(e.length?t.push({source:e,target:n.target[i]=new Array(4)}):n.target[i]=s(e));return r},l.add=function(t){var r=+this._x.call(null,t),n=+this._y.call(null,t);return e(this.cover(r,n),r,n,t)},l.addAll=function(t){var r,n,i,a,o=t.length,s=new Array(o),l=new Array(o),c=1/0,u=1/0,f=-1/0,h=-1/0;for(n=0;n&lt;o;++n)isNaN(i=+this._x.call(null,r=t[n]))||isNaN(a=+this._y.call(null,r))||(s[n]=i,l[n]=a,i&lt;c&amp;&amp;(c=i),i&gt;f&amp;&amp;(f=i),a&lt;u&amp;&amp;(u=a),a&gt;h&amp;&amp;(h=a));if(c&gt;f||u&gt;h)return this;for(this.cover(c,u).cover(f,h),n=0;n&lt;o;++n)e(this,s[n],l[n],t[n]);return this},l.cover=function(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var r=this._x0,n=this._y0,i=this._x1,a=this._y1;if(isNaN(r))i=(r=Math.floor(t))+1,a=(n=Math.floor(e))+1;else{for(var o,s,l=i-r,c=this._root;r&gt;t||t&gt;=i||n&gt;e||e&gt;=a;)switch(s=(e&lt;n)&lt;&lt;1|t&lt;r,(o=new Array(4))[s]=c,c=o,l*=2,s){case 0:i=r+l,a=n+l;break;case 1:r=i-l,a=n+l;break;case 2:i=r+l,n=a-l;break;case 3:r=i-l,n=a-l}this._root&amp;&amp;this._root.length&amp;&amp;(this._root=c)}return this._x0=r,this._y0=n,this._x1=i,this._y1=a,this},l.data=function(){var t=[];return this.visit((function(e){if(!e.length)do{t.push(e.data)}while(e=e.next)})),t},l.extent=function(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},l.find=function(t,e,n){var i,a,o,s,l,c,u,f=this._x0,h=this._y0,p=this._x1,d=this._y1,g=[],m=this._root;for(m&amp;&amp;g.push(new r(m,f,h,p,d)),null==n?n=1/0:(f=t-n,h=e-n,p=t+n,d=e+n,n*=n);c=g.pop();)if(!(!(m=c.node)||(a=c.x0)&gt;p||(o=c.y0)&gt;d||(s=c.x1)&lt;f||(l=c.y1)&lt;h))if(m.length){var v=(a+s)/2,y=(o+l)/2;g.push(new r(m[3],v,y,s,l),new r(m[2],a,y,v,l),new r(m[1],v,o,s,y),new r(m[0],a,o,v,y)),(u=(e&gt;=y)&lt;&lt;1|t&gt;=v)&amp;&amp;(c=g[g.length-1],g[g.length-1]=g[g.length-1-u],g[g.length-1-u]=c)}else{var x=t-+this._x.call(null,m.data),b=e-+this._y.call(null,m.data),_=x*x+b*b;if(_&lt;n){var w=Math.sqrt(n=_);f=t-w,h=e-w,p=t+w,d=e+w,i=m.data}}return i},l.remove=function(t){if(isNaN(a=+this._x.call(null,t))||isNaN(o=+this._y.call(null,t)))return this;var e,r,n,i,a,o,s,l,c,u,f,h,p=this._root,d=this._x0,g=this._y0,m=this._x1,v=this._y1;if(!p)return this;if(p.length)for(;;){if((c=a&gt;=(s=(d+m)/2))?d=s:m=s,(u=o&gt;=(l=(g+v)/2))?g=l:v=l,e=p,!(p=p[f=u&lt;&lt;1|c]))return this;if(!p.length)break;(e[f+1&amp;3]||e[f+2&amp;3]||e[f+3&amp;3])&amp;&amp;(r=e,h=f)}for(;p.data!==t;)if(n=p,!(p=p.next))return this;return(i=p.next)&amp;&amp;delete p.next,n?(i?n.next=i:delete n.next,this):e?(i?e[f]=i:delete e[f],(p=e[0]||e[1]||e[2]||e[3])&amp;&amp;p===(e[3]||e[2]||e[1]||e[0])&amp;&amp;!p.length&amp;&amp;(r?r[h]=p:this._root=p),this):(this._root=i,this)},l.removeAll=function(t){for(var e=0,r=t.length;e&lt;r;++e)this.remove(t[e]);return this},l.root=function(){return this._root},l.size=function(){var t=0;return this.visit((function(e){if(!e.length)do{++t}while(e=e.next)})),t},l.visit=function(t){var e,n,i,a,o,s,l=[],c=this._root;for(c&amp;&amp;l.push(new r(c,this._x0,this._y0,this._x1,this._y1));e=l.pop();)if(!t(c=e.node,i=e.x0,a=e.y0,o=e.x1,s=e.y1)&amp;&amp;c.length){var u=(i+o)/2,f=(a+s)/2;(n=c[3])&amp;&amp;l.push(new r(n,u,f,o,s)),(n=c[2])&amp;&amp;l.push(new r(n,i,f,u,s)),(n=c[1])&amp;&amp;l.push(new r(n,u,a,o,f)),(n=c[0])&amp;&amp;l.push(new r(n,i,a,u,f))}return this},l.visitAfter=function(t){var e,n=[],i=[];for(this._root&amp;&amp;n.push(new r(this._root,this._x0,this._y0,this._x1,this._y1));e=n.pop();){var a=e.node;if(a.length){var o,s=e.x0,l=e.y0,c=e.x1,u=e.y1,f=(s+c)/2,h=(l+u)/2;(o=a[0])&amp;&amp;n.push(new r(o,s,l,f,h)),(o=a[1])&amp;&amp;n.push(new r(o,f,l,c,h)),(o=a[2])&amp;&amp;n.push(new r(o,s,h,f,u)),(o=a[3])&amp;&amp;n.push(new r(o,f,h,c,u))}i.push(e)}for(;e=i.pop();)t(e.node,e.x0,e.y0,e.x1,e.y1);return this},l.x=function(t){return arguments.length?(this._x=t,this):this._x},l.y=function(t){return arguments.length?(this._y=t,this):this._y},t.quadtree=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],165:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-path&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t){return function(){return t}}var n=Math.abs,i=Math.atan2,a=Math.cos,o=Math.max,s=Math.min,l=Math.sin,c=Math.sqrt,u=Math.PI,f=u/2,h=2*u;function p(t){return t&gt;1?0:t&lt;-1?u:Math.acos(t)}function d(t){return t&gt;=1?f:t&lt;=-1?-f:Math.asin(t)}function g(t){return t.innerRadius}function m(t){return t.outerRadius}function v(t){return t.startAngle}function y(t){return t.endAngle}function x(t){return t&amp;&amp;t.padAngle}function b(t,e,r,n,i,a,o,s){var l=r-t,c=n-e,u=o-i,f=s-a,h=f*l-u*c;if(!(h*h&lt;1e-12))return[t+(h=(u*(e-a)-f*(t-i))/h)*l,e+h*c]}function _(t,e,r,n,i,a,s){var l=t-r,u=e-n,f=(s?a:-a)/c(l*l+u*u),h=f*u,p=-f*l,d=t+h,g=e+p,m=r+h,v=n+p,y=(d+m)/2,x=(g+v)/2,b=m-d,_=v-g,w=b*b+_*_,T=i-a,k=d*v-m*g,M=(_&lt;0?-1:1)*c(o(0,T*T*w-k*k)),A=(k*_-b*M)/w,S=(-k*b-_*M)/w,E=(k*_+b*M)/w,C=(-k*b+_*M)/w,L=A-y,I=S-x,P=E-y,z=C-x;return L*L+I*I&gt;P*P+z*z&amp;&amp;(A=E,S=C),{cx:A,cy:S,x01:-h,y01:-p,x11:A*(i/T-1),y11:S*(i/T-1)}}function w(t){this._context=t}function T(t){return new w(t)}function k(t){return t[0]}function M(t){return t[1]}function A(){var t=k,n=M,i=r(!0),a=null,o=T,s=null;function l(r){var l,c,u,f=r.length,h=!1;for(null==a&amp;&amp;(s=o(u=e.path())),l=0;l&lt;=f;++l)!(l&lt;f&amp;&amp;i(c=r[l],l,r))===h&amp;&amp;((h=!h)?s.lineStart():s.lineEnd()),h&amp;&amp;s.point(+t(c,l,r),+n(c,l,r));if(u)return s=null,u+&quot;&quot;||null}return l.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),l):t},l.y=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:r(+t),l):n},l.defined=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(!!t),l):i},l.curve=function(t){return arguments.length?(o=t,null!=a&amp;&amp;(s=o(a)),l):o},l.context=function(t){return arguments.length?(null==t?a=s=null:s=o(a=t),l):a},l}function S(){var t=k,n=null,i=r(0),a=M,o=r(!0),s=null,l=T,c=null;function u(r){var u,f,h,p,d,g=r.length,m=!1,v=new Array(g),y=new Array(g);for(null==s&amp;&amp;(c=l(d=e.path())),u=0;u&lt;=g;++u){if(!(u&lt;g&amp;&amp;o(p=r[u],u,r))===m)if(m=!m)f=u,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),h=u-1;h&gt;=f;--h)c.point(v[h],y[h]);c.lineEnd(),c.areaEnd()}m&amp;&amp;(v[u]=+t(p,u,r),y[u]=+i(p,u,r),c.point(n?+n(p,u,r):v[u],a?+a(p,u,r):y[u]))}if(d)return c=null,d+&quot;&quot;||null}function f(){return A().defined(o).curve(l).context(s)}return u.x=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),n=null,u):t},u.x0=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),u):t},u.x1=function(t){return arguments.length?(n=null==t?null:&quot;function&quot;==typeof t?t:r(+t),u):n},u.y=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),a=null,u):i},u.y0=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),u):i},u.y1=function(t){return arguments.length?(a=null==t?null:&quot;function&quot;==typeof t?t:r(+t),u):a},u.lineX0=u.lineY0=function(){return f().x(t).y(i)},u.lineY1=function(){return f().x(t).y(a)},u.lineX1=function(){return f().x(n).y(i)},u.defined=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(!!t),u):o},u.curve=function(t){return arguments.length?(l=t,null!=s&amp;&amp;(c=l(s)),u):l},u.context=function(t){return arguments.length?(null==t?s=c=null:c=l(s=t),u):s},u}function E(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN}function C(t){return t}w.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var L=P(T);function I(t){this._curve=t}function P(t){function e(e){return new I(t(e))}return e._curve=t,e}function z(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(P(t)):e()._curve},t}function O(){return z(A().curve(L))}function D(){var t=S().curve(L),e=t.curve,r=t.lineX0,n=t.lineX1,i=t.lineY0,a=t.lineY1;return t.angle=t.x,delete t.x,t.startAngle=t.x0,delete t.x0,t.endAngle=t.x1,delete t.x1,t.radius=t.y,delete t.y,t.innerRadius=t.y0,delete t.y0,t.outerRadius=t.y1,delete t.y1,t.lineStartAngle=function(){return z(r())},delete t.lineX0,t.lineEndAngle=function(){return z(n())},delete t.lineX1,t.lineInnerRadius=function(){return z(i())},delete t.lineY0,t.lineOuterRadius=function(){return z(a())},delete t.lineY1,t.curve=function(t){return arguments.length?e(P(t)):e()._curve},t}function R(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}I.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}};var F=Array.prototype.slice;function B(t){return t.source}function N(t){return t.target}function j(t){var n=B,i=N,a=k,o=M,s=null;function l(){var r,l=F.call(arguments),c=n.apply(this,l),u=i.apply(this,l);if(s||(s=r=e.path()),t(s,+a.apply(this,(l[0]=c,l)),+o.apply(this,l),+a.apply(this,(l[0]=u,l)),+o.apply(this,l)),r)return s=null,r+&quot;&quot;||null}return l.source=function(t){return arguments.length?(n=t,l):n},l.target=function(t){return arguments.length?(i=t,l):i},l.x=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:r(+t),l):a},l.y=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),l):o},l.context=function(t){return arguments.length?(s=null==t?null:t,l):s},l}function U(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e=(e+n)/2,r,e,i,n,i)}function V(t,e,r,n,i){t.moveTo(e,r),t.bezierCurveTo(e,r=(r+i)/2,n,r,n,i)}function q(t,e,r,n,i){var a=R(e,r),o=R(e,r=(r+i)/2),s=R(n,r),l=R(n,i);t.moveTo(a[0],a[1]),t.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}var H={draw:function(t,e){var r=Math.sqrt(e/u);t.moveTo(r,0),t.arc(0,0,r,0,h)}},G={draw:function(t,e){var r=Math.sqrt(e/5)/2;t.moveTo(-3*r,-r),t.lineTo(-r,-r),t.lineTo(-r,-3*r),t.lineTo(r,-3*r),t.lineTo(r,-r),t.lineTo(3*r,-r),t.lineTo(3*r,r),t.lineTo(r,r),t.lineTo(r,3*r),t.lineTo(-r,3*r),t.lineTo(-r,r),t.lineTo(-3*r,r),t.closePath()}},Y=Math.sqrt(1/3),W=2*Y,X={draw:function(t,e){var r=Math.sqrt(e/W),n=r*Y;t.moveTo(0,-r),t.lineTo(n,0),t.lineTo(0,r),t.lineTo(-n,0),t.closePath()}},Z=Math.sin(u/10)/Math.sin(7*u/10),J=Math.sin(h/10)*Z,K=-Math.cos(h/10)*Z,Q={draw:function(t,e){var r=Math.sqrt(.8908130915292852*e),n=J*r,i=K*r;t.moveTo(0,-r),t.lineTo(n,i);for(var a=1;a&lt;5;++a){var o=h*a/5,s=Math.cos(o),l=Math.sin(o);t.lineTo(l*r,-s*r),t.lineTo(s*n-l*i,l*n+s*i)}t.closePath()}},$={draw:function(t,e){var r=Math.sqrt(e),n=-r/2;t.rect(n,n,r,r)}},tt=Math.sqrt(3),et={draw:function(t,e){var r=-Math.sqrt(e/(3*tt));t.moveTo(0,2*r),t.lineTo(-tt*r,-r),t.lineTo(tt*r,-r),t.closePath()}},rt=-.5,nt=Math.sqrt(3)/2,it=1/Math.sqrt(12),at=3*(it/2+1),ot={draw:function(t,e){var r=Math.sqrt(e/at),n=r/2,i=r*it,a=n,o=r*it+r,s=-a,l=o;t.moveTo(n,i),t.lineTo(a,o),t.lineTo(s,l),t.lineTo(rt*n-nt*i,nt*n+rt*i),t.lineTo(rt*a-nt*o,nt*a+rt*o),t.lineTo(rt*s-nt*l,nt*s+rt*l),t.lineTo(rt*n+nt*i,rt*i-nt*n),t.lineTo(rt*a+nt*o,rt*o-nt*a),t.lineTo(rt*s+nt*l,rt*l-nt*s),t.closePath()}},st=[H,G,X,$,Q,et,ot];function lt(){}function ct(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}function ut(t){this._context=t}function ft(t){this._context=t}function ht(t){this._context=t}function pt(t,e){this._basis=new ut(t),this._beta=e}ut.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ct(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ft.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ct(this,t,e)}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}},pt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,r=t.length-1;if(r&gt;0)for(var n,i=t[0],a=e[0],o=t[r]-i,s=e[r]-a,l=-1;++l&lt;=r;)n=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(i+n*o),this._beta*e[l]+(1-this._beta)*(a+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};var dt=function t(e){function r(t){return 1===e?new ut(t):new pt(t,e)}return r.beta=function(e){return t(+e)},r}(.85);function gt(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}function mt(t,e){this._context=t,this._k=(1-e)/6}mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:gt(this,this._x1,this._y1)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var vt=function t(e){function r(t){return new mt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function yt(t,e){this._context=t,this._k=(1-e)/6}yt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var xt=function t(e){function r(t){return new yt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function bt(t,e){this._context=t,this._k=(1-e)/6}bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:gt(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var _t=function t(e){function r(t){return new bt(t,e)}return r.tension=function(e){return t(+e)},r}(0);function wt(t,e,r){var n=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a&gt;1e-12){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a&gt;1e-12){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*c+t._x1*t._l23_2a-e*t._l12_2a)/u,o=(o*c+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(n,i,a,o,t._x2,t._y2)}function Tt(t,e){this._context=t,this._alpha=e}Tt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var kt=function t(e){function r(t){return e?new Tt(t,e):new mt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Mt(t,e){this._context=t,this._alpha=e}Mt.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var At=function t(e){function r(t){return e?new Mt(t,e):new yt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function St(t,e){this._context=t,this._alpha=e}St.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&amp;&amp;3===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,n=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wt(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var Et=function t(e){function r(t){return e?new St(t,e):new bt(t,0)}return r.alpha=function(e){return t(+e)},r}(.5);function Ct(t){this._context=t}function Lt(t){return t&lt;0?-1:1}function It(t,e,r){var n=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(n||i&lt;0&amp;&amp;-0),o=(r-t._y1)/(i||n&lt;0&amp;&amp;-0),s=(a*i+o*n)/(n+i);return(Lt(a)+Lt(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Pt(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}function zt(t,e,r){var n=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-n)/3;t._context.bezierCurveTo(n+s,i+s*e,a-s,o-s*r,a,o)}function Ot(t){this._context=t}function Dt(t){this._context=new Rt(t)}function Rt(t){this._context=t}function Ft(t){this._context=t}function Bt(t){var e,r,n=t.length-1,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=t[0]+2*t[1],e=1;e&lt;n-1;++e)i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e&lt;n;++e)r=i[e]/a[e-1],a[e]-=r,o[e]-=r*o[e-1];for(i[n-1]=o[n-1]/a[n-1],e=n-2;e&gt;=0;--e)i[e]=(o[e]-i[e+1])/a[e];for(a[n-1]=(t[n]+i[n-1])/2,e=0;e&lt;n-1;++e)a[e]=2*t[e+1]-i[e+1];return[i,a]}function Nt(t,e){this._context=t,this._t=e}function jt(t,e){if((i=t.length)&gt;1)for(var r,n,i,a=1,o=t[e[0]],s=o.length;a&lt;i;++a)for(n=o,o=t[e[a]],r=0;r&lt;s;++r)o[r][1]+=o[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Ut(t){for(var e=t.length,r=new Array(e);--e&gt;=0;)r[e]=e;return r}function Vt(t,e){return t[e]}function qt(t){var e=t.map(Ht);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function Ht(t){for(var e,r=-1,n=0,i=t.length,a=-1/0;++r&lt;i;)(e=+t[r][1])&gt;a&amp;&amp;(a=e,n=r);return n}function Gt(t){var e=t.map(Yt);return Ut(t).sort((function(t,r){return e[t]-e[r]}))}function Yt(t){for(var e,r=0,n=-1,i=t.length;++n&lt;i;)(e=+t[n][1])&amp;&amp;(r+=e);return r}Ct.prototype={areaStart:lt,areaEnd:lt,lineStart:function(){this._point=0},lineEnd:function(){this._point&amp;&amp;this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},Ot.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:zt(this,this._t0,Pt(this,this._t0))}(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line=1-this._line},point:function(t,e){var r=NaN;if(e=+e,(t=+t)!==this._x1||e!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,zt(this,Pt(this,r=It(this,t,e)),r);break;default:zt(this,this._t0,r=It(this,t,e))}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}}},(Dt.prototype=Object.create(Ot.prototype)).point=function(t,e){Ot.prototype.point.call(this,e,t)},Rt.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,r,n,i,a){this._context.bezierCurveTo(e,t,n,r,a,i)}},Ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),2===r)this._context.lineTo(t[1],e[1]);else for(var n=Bt(t),i=Bt(e),a=0,o=1;o&lt;r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],t[o],e[o]);(this._line||0!==this._line&amp;&amp;1===r)&amp;&amp;this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}},Nt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0&lt;this._t&amp;&amp;this._t&lt;1&amp;&amp;2===this._point&amp;&amp;this._context.lineTo(this._x,this._y),(this._line||0!==this._line&amp;&amp;1===this._point)&amp;&amp;this._context.closePath(),this._line&gt;=0&amp;&amp;(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:if(this._t&lt;=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}}this._x=t,this._y=e}},t.arc=function(){var t=g,o=m,w=r(0),T=null,k=v,M=y,A=x,S=null;function E(){var r,g,m=+t.apply(this,arguments),v=+o.apply(this,arguments),y=k.apply(this,arguments)-f,x=M.apply(this,arguments)-f,E=n(x-y),C=x&gt;y;if(S||(S=r=e.path()),v&lt;m&amp;&amp;(g=v,v=m,m=g),v&gt;1e-12)if(E&gt;h-1e-12)S.moveTo(v*a(y),v*l(y)),S.arc(0,0,v,y,x,!C),m&gt;1e-12&amp;&amp;(S.moveTo(m*a(x),m*l(x)),S.arc(0,0,m,x,y,C));else{var L,I,P=y,z=x,O=y,D=x,R=E,F=E,B=A.apply(this,arguments)/2,N=B&gt;1e-12&amp;&amp;(T?+T.apply(this,arguments):c(m*m+v*v)),j=s(n(v-m)/2,+w.apply(this,arguments)),U=j,V=j;if(N&gt;1e-12){var q=d(N/m*l(B)),H=d(N/v*l(B));(R-=2*q)&gt;1e-12?(O+=q*=C?1:-1,D-=q):(R=0,O=D=(y+x)/2),(F-=2*H)&gt;1e-12?(P+=H*=C?1:-1,z-=H):(F=0,P=z=(y+x)/2)}var G=v*a(P),Y=v*l(P),W=m*a(D),X=m*l(D);if(j&gt;1e-12){var Z,J=v*a(z),K=v*l(z),Q=m*a(O),$=m*l(O);if(E&lt;u&amp;&amp;(Z=b(G,Y,Q,$,J,K,W,X))){var tt=G-Z[0],et=Y-Z[1],rt=J-Z[0],nt=K-Z[1],it=1/l(p((tt*rt+et*nt)/(c(tt*tt+et*et)*c(rt*rt+nt*nt)))/2),at=c(Z[0]*Z[0]+Z[1]*Z[1]);U=s(j,(m-at)/(it-1)),V=s(j,(v-at)/(it+1))}}F&gt;1e-12?V&gt;1e-12?(L=_(Q,$,G,Y,v,V,C),I=_(J,K,W,X,v,V,C),S.moveTo(L.cx+L.x01,L.cy+L.y01),V&lt;j?S.arc(L.cx,L.cy,V,i(L.y01,L.x01),i(I.y01,I.x01),!C):(S.arc(L.cx,L.cy,V,i(L.y01,L.x01),i(L.y11,L.x11),!C),S.arc(0,0,v,i(L.cy+L.y11,L.cx+L.x11),i(I.cy+I.y11,I.cx+I.x11),!C),S.arc(I.cx,I.cy,V,i(I.y11,I.x11),i(I.y01,I.x01),!C))):(S.moveTo(G,Y),S.arc(0,0,v,P,z,!C)):S.moveTo(G,Y),m&gt;1e-12&amp;&amp;R&gt;1e-12?U&gt;1e-12?(L=_(W,X,J,K,m,-U,C),I=_(G,Y,Q,$,m,-U,C),S.lineTo(L.cx+L.x01,L.cy+L.y01),U&lt;j?S.arc(L.cx,L.cy,U,i(L.y01,L.x01),i(I.y01,I.x01),!C):(S.arc(L.cx,L.cy,U,i(L.y01,L.x01),i(L.y11,L.x11),!C),S.arc(0,0,m,i(L.cy+L.y11,L.cx+L.x11),i(I.cy+I.y11,I.cx+I.x11),C),S.arc(I.cx,I.cy,U,i(I.y11,I.x11),i(I.y01,I.x01),!C))):S.arc(0,0,m,D,O,C):S.lineTo(W,X)}else S.moveTo(0,0);if(S.closePath(),r)return S=null,r+&quot;&quot;||null}return E.centroid=function(){var e=(+t.apply(this,arguments)+ +o.apply(this,arguments))/2,r=(+k.apply(this,arguments)+ +M.apply(this,arguments))/2-u/2;return[a(r)*e,l(r)*e]},E.innerRadius=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),E):t},E.outerRadius=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),E):o},E.cornerRadius=function(t){return arguments.length?(w=&quot;function&quot;==typeof t?t:r(+t),E):w},E.padRadius=function(t){return arguments.length?(T=null==t?null:&quot;function&quot;==typeof t?t:r(+t),E):T},E.startAngle=function(t){return arguments.length?(k=&quot;function&quot;==typeof t?t:r(+t),E):k},E.endAngle=function(t){return arguments.length?(M=&quot;function&quot;==typeof t?t:r(+t),E):M},E.padAngle=function(t){return arguments.length?(A=&quot;function&quot;==typeof t?t:r(+t),E):A},E.context=function(t){return arguments.length?(S=null==t?null:t,E):S},E},t.area=S,t.areaRadial=D,t.curveBasis=function(t){return new ut(t)},t.curveBasisClosed=function(t){return new ft(t)},t.curveBasisOpen=function(t){return new ht(t)},t.curveBundle=dt,t.curveCardinal=vt,t.curveCardinalClosed=xt,t.curveCardinalOpen=_t,t.curveCatmullRom=kt,t.curveCatmullRomClosed=At,t.curveCatmullRomOpen=Et,t.curveLinear=T,t.curveLinearClosed=function(t){return new Ct(t)},t.curveMonotoneX=function(t){return new Ot(t)},t.curveMonotoneY=function(t){return new Dt(t)},t.curveNatural=function(t){return new Ft(t)},t.curveStep=function(t){return new Nt(t,.5)},t.curveStepAfter=function(t){return new Nt(t,1)},t.curveStepBefore=function(t){return new Nt(t,0)},t.line=A,t.lineRadial=O,t.linkHorizontal=function(){return j(U)},t.linkRadial=function(){var t=j(q);return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t},t.linkVertical=function(){return j(V)},t.pie=function(){var t=C,e=E,n=null,i=r(0),a=r(h),o=r(0);function s(r){var s,l,c,u,f,p=r.length,d=0,g=new Array(p),m=new Array(p),v=+i.apply(this,arguments),y=Math.min(h,Math.max(-h,a.apply(this,arguments)-v)),x=Math.min(Math.abs(y)/p,o.apply(this,arguments)),b=x*(y&lt;0?-1:1);for(s=0;s&lt;p;++s)(f=m[g[s]=s]=+t(r[s],s,r))&gt;0&amp;&amp;(d+=f);for(null!=e?g.sort((function(t,r){return e(m[t],m[r])})):null!=n&amp;&amp;g.sort((function(t,e){return n(r[t],r[e])})),s=0,c=d?(y-p*b)/d:0;s&lt;p;++s,v=u)l=g[s],u=v+((f=m[l])&gt;0?f*c:0)+b,m[l]={data:r[l],index:s,value:f,startAngle:v,endAngle:u,padAngle:x};return m}return s.value=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(+e),s):t},s.sortValues=function(t){return arguments.length?(e=t,n=null,s):e},s.sort=function(t){return arguments.length?(n=t,e=null,s):n},s.startAngle=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),s):i},s.endAngle=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?t:r(+t),s):a},s.padAngle=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:r(+t),s):o},s},t.pointRadial=R,t.radialArea=D,t.radialLine=O,t.stack=function(){var t=r([]),e=Ut,n=jt,i=Vt;function a(r){var a,o,s=t.apply(this,arguments),l=r.length,c=s.length,u=new Array(c);for(a=0;a&lt;c;++a){for(var f,h=s[a],p=u[a]=new Array(l),d=0;d&lt;l;++d)p[d]=f=[0,+i(r[d],h,d,r)],f.data=r[d];p.key=h}for(a=0,o=e(u);a&lt;c;++a)u[o[a]].index=a;return n(u,o),u}return a.keys=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(F.call(e)),a):t},a.value=function(t){return arguments.length?(i=&quot;function&quot;==typeof t?t:r(+t),a):i},a.order=function(t){return arguments.length?(e=null==t?Ut:&quot;function&quot;==typeof t?t:r(F.call(t)),a):e},a.offset=function(t){return arguments.length?(n=null==t?jt:t,a):n},a},t.stackOffsetDiverging=function(t,e){if((s=t.length)&gt;0)for(var r,n,i,a,o,s,l=0,c=t[e[0]].length;l&lt;c;++l)for(a=o=0,r=0;r&lt;s;++r)(i=(n=t[e[r]][l])[1]-n[0])&gt;0?(n[0]=a,n[1]=a+=i):i&lt;0?(n[1]=o,n[0]=o+=i):(n[0]=0,n[1]=i)},t.stackOffsetExpand=function(t,e){if((n=t.length)&gt;0){for(var r,n,i,a=0,o=t[0].length;a&lt;o;++a){for(i=r=0;r&lt;n;++r)i+=t[r][a][1]||0;if(i)for(r=0;r&lt;n;++r)t[r][a][1]/=i}jt(t,e)}},t.stackOffsetNone=jt,t.stackOffsetSilhouette=function(t,e){if((r=t.length)&gt;0){for(var r,n=0,i=t[e[0]],a=i.length;n&lt;a;++n){for(var o=0,s=0;o&lt;r;++o)s+=t[o][n][1]||0;i[n][1]+=i[n][0]=-s/2}jt(t,e)}},t.stackOffsetWiggle=function(t,e){if((i=t.length)&gt;0&amp;&amp;(n=(r=t[e[0]]).length)&gt;0){for(var r,n,i,a=0,o=1;o&lt;n;++o){for(var s=0,l=0,c=0;s&lt;i;++s){for(var u=t[e[s]],f=u[o][1]||0,h=(f-(u[o-1][1]||0))/2,p=0;p&lt;s;++p){var d=t[e[p]];h+=(d[o][1]||0)-(d[o-1][1]||0)}l+=f,c+=h*f}r[o-1][1]+=r[o-1][0]=a,l&amp;&amp;(a-=c/l)}r[o-1][1]+=r[o-1][0]=a,jt(t,e)}},t.stackOrderAppearance=qt,t.stackOrderAscending=Gt,t.stackOrderDescending=function(t){return Gt(t).reverse()},t.stackOrderInsideOut=function(t){var e,r,n=t.length,i=t.map(Yt),a=qt(t),o=0,s=0,l=[],c=[];for(e=0;e&lt;n;++e)r=a[e],o&lt;s?(o+=i[r],l.push(r)):(s+=i[r],c.push(r));return c.reverse().concat(l)},t.stackOrderNone=Ut,t.stackOrderReverse=function(t){return Ut(t).reverse()},t.symbol=function(){var t=r(H),n=r(64),i=null;function a(){var r;if(i||(i=r=e.path()),t.apply(this,arguments).draw(i,+n.apply(this,arguments)),r)return i=null,r+&quot;&quot;||null}return a.type=function(e){return arguments.length?(t=&quot;function&quot;==typeof e?e:r(e),a):t},a.size=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:r(+t),a):n},a.context=function(t){return arguments.length?(i=null==t?null:t,a):i},a},t.symbolCircle=H,t.symbolCross=G,t.symbolDiamond=X,t.symbolSquare=$,t.symbolStar=Q,t.symbolTriangle=et,t.symbolWye=ot,t.symbols=st,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-path&quot;:163}],166:[function(t,e,r){!function(n,i){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?i(r,t(&quot;d3-time&quot;)):i((n=n||self).d3=n.d3||{},n.d3)}(this,(function(t,e){&quot;use strict&quot;;function r(t){if(0&lt;=t.y&amp;&amp;t.y&lt;100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function n(t){if(0&lt;=t.y&amp;&amp;t.y&lt;100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function i(t,e,r){return{y:t,m:e,d:r,H:0,M:0,S:0,L:0}}function a(t){var a=t.dateTime,o=t.date,l=t.time,c=t.periods,u=t.days,f=t.shortDays,h=t.months,yt=t.shortMonths,xt=p(c),bt=d(c),_t=p(u),wt=d(u),Tt=p(f),kt=d(f),Mt=p(h),At=d(h),St=p(yt),Et=d(yt),Ct={a:function(t){return f[t.getDay()]},A:function(t){return u[t.getDay()]},b:function(t){return yt[t.getMonth()]},B:function(t){return h[t.getMonth()]},c:null,d:D,e:D,f:j,H:R,I:F,j:B,L:N,m:U,M:V,p:function(t){return c[+(t.getHours()&gt;=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:mt,s:vt,S:q,u:H,U:G,V:Y,w:W,W:X,x:null,X:null,y:Z,Y:J,Z:K,&quot;%&quot;:gt},Lt={a:function(t){return f[t.getUTCDay()]},A:function(t){return u[t.getUTCDay()]},b:function(t){return yt[t.getUTCMonth()]},B:function(t){return h[t.getUTCMonth()]},c:null,d:Q,e:Q,f:nt,H:$,I:tt,j:et,L:rt,m:it,M:at,p:function(t){return c[+(t.getUTCHours()&gt;=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:mt,s:vt,S:ot,u:st,U:lt,V:ct,w:ut,W:ft,x:null,X:null,y:ht,Y:pt,Z:dt,&quot;%&quot;:gt},It={a:function(t,e,r){var n=Tt.exec(e.slice(r));return n?(t.w=kt[n[0].toLowerCase()],r+n[0].length):-1},A:function(t,e,r){var n=_t.exec(e.slice(r));return n?(t.w=wt[n[0].toLowerCase()],r+n[0].length):-1},b:function(t,e,r){var n=St.exec(e.slice(r));return n?(t.m=Et[n[0].toLowerCase()],r+n[0].length):-1},B:function(t,e,r){var n=Mt.exec(e.slice(r));return n?(t.m=At[n[0].toLowerCase()],r+n[0].length):-1},c:function(t,e,r){return Ot(t,a,e,r)},d:M,e:M,f:I,H:S,I:S,j:A,L:L,m:k,M:E,p:function(t,e,r){var n=xt.exec(e.slice(r));return n?(t.p=bt[n[0].toLowerCase()],r+n[0].length):-1},q:T,Q:z,s:O,S:C,u:m,U:v,V:y,w:g,W:x,x:function(t,e,r){return Ot(t,o,e,r)},X:function(t,e,r){return Ot(t,l,e,r)},y:_,Y:b,Z:w,&quot;%&quot;:P};function Pt(t,e){return function(r){var n,i,a,o=[],l=-1,c=0,u=t.length;for(r instanceof Date||(r=new Date(+r));++l&lt;u;)37===t.charCodeAt(l)&amp;&amp;(o.push(t.slice(c,l)),null!=(i=s[n=t.charAt(++l)])?n=t.charAt(++l):i=&quot;e&quot;===n?&quot; &quot;:&quot;0&quot;,(a=e[n])&amp;&amp;(n=a(r,i)),o.push(n),c=l+1);return o.push(t.slice(c,l)),o.join(&quot;&quot;)}}function zt(t,a){return function(o){var s,l,c=i(1900,void 0,1);if(Ot(c,t,o+=&quot;&quot;,0)!=o.length)return null;if(&quot;Q&quot;in c)return new Date(c.Q);if(&quot;s&quot;in c)return new Date(1e3*c.s+(&quot;L&quot;in c?c.L:0));if(a&amp;&amp;!(&quot;Z&quot;in c)&amp;&amp;(c.Z=0),&quot;p&quot;in c&amp;&amp;(c.H=c.H%12+12*c.p),void 0===c.m&amp;&amp;(c.m=&quot;q&quot;in c?c.q:0),&quot;V&quot;in c){if(c.V&lt;1||c.V&gt;53)return null;&quot;w&quot;in c||(c.w=1),&quot;Z&quot;in c?(l=(s=n(i(c.y,0,1))).getUTCDay(),s=l&gt;4||0===l?e.utcMonday.ceil(s):e.utcMonday(s),s=e.utcDay.offset(s,7*(c.V-1)),c.y=s.getUTCFullYear(),c.m=s.getUTCMonth(),c.d=s.getUTCDate()+(c.w+6)%7):(l=(s=r(i(c.y,0,1))).getDay(),s=l&gt;4||0===l?e.timeMonday.ceil(s):e.timeMonday(s),s=e.timeDay.offset(s,7*(c.V-1)),c.y=s.getFullYear(),c.m=s.getMonth(),c.d=s.getDate()+(c.w+6)%7)}else(&quot;W&quot;in c||&quot;U&quot;in c)&amp;&amp;(&quot;w&quot;in c||(c.w=&quot;u&quot;in c?c.u%7:&quot;W&quot;in c?1:0),l=&quot;Z&quot;in c?n(i(c.y,0,1)).getUTCDay():r(i(c.y,0,1)).getDay(),c.m=0,c.d=&quot;W&quot;in c?(c.w+6)%7+7*c.W-(l+5)%7:c.w+7*c.U-(l+6)%7);return&quot;Z&quot;in c?(c.H+=c.Z/100|0,c.M+=c.Z%100,n(c)):r(c)}}function Ot(t,e,r,n){for(var i,a,o=0,l=e.length,c=r.length;o&lt;l;){if(n&gt;=c)return-1;if(37===(i=e.charCodeAt(o++))){if(i=e.charAt(o++),!(a=It[i in s?e.charAt(o++):i])||(n=a(t,r,n))&lt;0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return Ct.x=Pt(o,Ct),Ct.X=Pt(l,Ct),Ct.c=Pt(a,Ct),Lt.x=Pt(o,Lt),Lt.X=Pt(l,Lt),Lt.c=Pt(a,Lt),{format:function(t){var e=Pt(t+=&quot;&quot;,Ct);return e.toString=function(){return t},e},parse:function(t){var e=zt(t+=&quot;&quot;,!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=Pt(t+=&quot;&quot;,Lt);return e.toString=function(){return t},e},utcParse:function(t){var e=zt(t+=&quot;&quot;,!0);return e.toString=function(){return t},e}}}var o,s={&quot;-&quot;:&quot;&quot;,_:&quot; &quot;,0:&quot;0&quot;},l=/^\s*\d+/,c=/^%/,u=/[\\^$*+?|[\]().{}]/g;function f(t,e,r){var n=t&lt;0?&quot;-&quot;:&quot;&quot;,i=(n?-t:t)+&quot;&quot;,a=i.length;return n+(a&lt;r?new Array(r-a+1).join(e)+i:i)}function h(t){return t.replace(u,&quot;\\$&amp;&quot;)}function p(t){return new RegExp(&quot;^(?:&quot;+t.map(h).join(&quot;|&quot;)+&quot;)&quot;,&quot;i&quot;)}function d(t){for(var e={},r=-1,n=t.length;++r&lt;n;)e[t[r].toLowerCase()]=r;return e}function g(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function m(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.u=+n[0],r+n[0].length):-1}function v(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.U=+n[0],r+n[0].length):-1}function y(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.V=+n[0],r+n[0].length):-1}function x(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.W=+n[0],r+n[0].length):-1}function b(t,e,r){var n=l.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function _(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.y=+n[0]+(+n[0]&gt;68?1900:2e3),r+n[0].length):-1}function w(t,e,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return n?(t.Z=n[1]?0:-(n[2]+(n[3]||&quot;00&quot;)),r+n[0].length):-1}function T(t,e,r){var n=l.exec(e.slice(r,r+1));return n?(t.q=3*n[0]-3,r+n[0].length):-1}function k(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function M(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function A(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.m=0,t.d=+n[0],r+n[0].length):-1}function S(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function E(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function C(t,e,r){var n=l.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function L(t,e,r){var n=l.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function I(t,e,r){var n=l.exec(e.slice(r,r+6));return n?(t.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function P(t,e,r){var n=c.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function z(t,e,r){var n=l.exec(e.slice(r));return n?(t.Q=+n[0],r+n[0].length):-1}function O(t,e,r){var n=l.exec(e.slice(r));return n?(t.s=+n[0],r+n[0].length):-1}function D(t,e){return f(t.getDate(),e,2)}function R(t,e){return f(t.getHours(),e,2)}function F(t,e){return f(t.getHours()%12||12,e,2)}function B(t,r){return f(1+e.timeDay.count(e.timeYear(t),t),r,3)}function N(t,e){return f(t.getMilliseconds(),e,3)}function j(t,e){return N(t,e)+&quot;000&quot;}function U(t,e){return f(t.getMonth()+1,e,2)}function V(t,e){return f(t.getMinutes(),e,2)}function q(t,e){return f(t.getSeconds(),e,2)}function H(t){var e=t.getDay();return 0===e?7:e}function G(t,r){return f(e.timeSunday.count(e.timeYear(t)-1,t),r,2)}function Y(t,r){var n=t.getDay();return t=n&gt;=4||0===n?e.timeThursday(t):e.timeThursday.ceil(t),f(e.timeThursday.count(e.timeYear(t),t)+(4===e.timeYear(t).getDay()),r,2)}function W(t){return t.getDay()}function X(t,r){return f(e.timeMonday.count(e.timeYear(t)-1,t),r,2)}function Z(t,e){return f(t.getFullYear()%100,e,2)}function J(t,e){return f(t.getFullYear()%1e4,e,4)}function K(t){var e=t.getTimezoneOffset();return(e&gt;0?&quot;-&quot;:(e*=-1,&quot;+&quot;))+f(e/60|0,&quot;0&quot;,2)+f(e%60,&quot;0&quot;,2)}function Q(t,e){return f(t.getUTCDate(),e,2)}function $(t,e){return f(t.getUTCHours(),e,2)}function tt(t,e){return f(t.getUTCHours()%12||12,e,2)}function et(t,r){return f(1+e.utcDay.count(e.utcYear(t),t),r,3)}function rt(t,e){return f(t.getUTCMilliseconds(),e,3)}function nt(t,e){return rt(t,e)+&quot;000&quot;}function it(t,e){return f(t.getUTCMonth()+1,e,2)}function at(t,e){return f(t.getUTCMinutes(),e,2)}function ot(t,e){return f(t.getUTCSeconds(),e,2)}function st(t){var e=t.getUTCDay();return 0===e?7:e}function lt(t,r){return f(e.utcSunday.count(e.utcYear(t)-1,t),r,2)}function ct(t,r){var n=t.getUTCDay();return t=n&gt;=4||0===n?e.utcThursday(t):e.utcThursday.ceil(t),f(e.utcThursday.count(e.utcYear(t),t)+(4===e.utcYear(t).getUTCDay()),r,2)}function ut(t){return t.getUTCDay()}function ft(t,r){return f(e.utcMonday.count(e.utcYear(t)-1,t),r,2)}function ht(t,e){return f(t.getUTCFullYear()%100,e,2)}function pt(t,e){return f(t.getUTCFullYear()%1e4,e,4)}function dt(){return&quot;+0000&quot;}function gt(){return&quot;%&quot;}function mt(t){return+t}function vt(t){return Math.floor(+t/1e3)}function yt(e){return o=a(e),t.timeFormat=o.format,t.timeParse=o.parse,t.utcFormat=o.utcFormat,t.utcParse=o.utcParse,o}yt({dateTime:&quot;%x, %X&quot;,date:&quot;%-m/%-d/%Y&quot;,time:&quot;%-I:%M:%S %p&quot;,periods:[&quot;AM&quot;,&quot;PM&quot;],days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;]});var xt=Date.prototype.toISOString?function(t){return t.toISOString()}:t.utcFormat(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);var bt=+new Date(&quot;2000-01-01T00:00:00.000Z&quot;)?function(t){var e=new Date(t);return isNaN(e)?null:e}:t.utcParse(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);t.isoFormat=xt,t.isoParse=bt,t.timeFormatDefaultLocale=yt,t.timeFormatLocale=a,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{&quot;d3-time&quot;:167}],167:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e=new Date,r=new Date;function n(t,i,a,o){function s(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return s.floor=function(e){return t(e=new Date(+e)),e},s.ceil=function(e){return t(e=new Date(e-1)),i(e,1),t(e),e},s.round=function(t){var e=s(t),r=s.ceil(t);return t-e&lt;r-t?e:r},s.offset=function(t,e){return i(t=new Date(+t),null==e?1:Math.floor(e)),t},s.range=function(e,r,n){var a,o=[];if(e=s.ceil(e),n=null==n?1:Math.floor(n),!(e&lt;r&amp;&amp;n&gt;0))return o;do{o.push(a=new Date(+e)),i(e,n),t(e)}while(a&lt;e&amp;&amp;e&lt;r);return o},s.filter=function(e){return n((function(r){if(r&gt;=r)for(;t(r),!e(r);)r.setTime(r-1)}),(function(t,r){if(t&gt;=t)if(r&lt;0)for(;++r&lt;=0;)for(;i(t,-1),!e(t););else for(;--r&gt;=0;)for(;i(t,1),!e(t););}))},a&amp;&amp;(s.count=function(n,i){return e.setTime(+n),r.setTime(+i),t(e),t(r),Math.floor(a(e,r))},s.every=function(t){return t=Math.floor(t),isFinite(t)&amp;&amp;t&gt;0?t&gt;1?s.filter(o?function(e){return o(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}var i=n((function(){}),(function(t,e){t.setTime(+t+e)}),(function(t,e){return e-t}));i.every=function(t){return t=Math.floor(t),isFinite(t)&amp;&amp;t&gt;0?t&gt;1?n((function(e){e.setTime(Math.floor(e/t)*t)}),(function(e,r){e.setTime(+e+r*t)}),(function(e,r){return(r-e)/t})):i:null};var a=i.range,o=n((function(t){t.setTime(t-t.getMilliseconds())}),(function(t,e){t.setTime(+t+1e3*e)}),(function(t,e){return(e-t)/1e3}),(function(t){return t.getUTCSeconds()})),s=o.range,l=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds())}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getMinutes()})),c=l.range,u=n((function(t){t.setTime(t-t.getMilliseconds()-1e3*t.getSeconds()-6e4*t.getMinutes())}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getHours()})),f=u.range,h=n((function(t){t.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/864e5}),(function(t){return t.getDate()-1})),p=h.range;function d(t){return n((function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),(function(t,e){t.setDate(t.getDate()+7*e)}),(function(t,e){return(e-t-6e4*(e.getTimezoneOffset()-t.getTimezoneOffset()))/6048e5}))}var g=d(0),m=d(1),v=d(2),y=d(3),x=d(4),b=d(5),_=d(6),w=g.range,T=m.range,k=v.range,M=y.range,A=x.range,S=b.range,E=_.range,C=n((function(t){t.setDate(1),t.setHours(0,0,0,0)}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t,e){return e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())}),(function(t){return t.getMonth()})),L=C.range,I=n((function(t){t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t,e){return e.getFullYear()-t.getFullYear()}),(function(t){return t.getFullYear()}));I.every=function(t){return isFinite(t=Math.floor(t))&amp;&amp;t&gt;0?n((function(e){e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,r){e.setFullYear(e.getFullYear()+r*t)})):null};var P=I.range,z=n((function(t){t.setUTCSeconds(0,0)}),(function(t,e){t.setTime(+t+6e4*e)}),(function(t,e){return(e-t)/6e4}),(function(t){return t.getUTCMinutes()})),O=z.range,D=n((function(t){t.setUTCMinutes(0,0,0)}),(function(t,e){t.setTime(+t+36e5*e)}),(function(t,e){return(e-t)/36e5}),(function(t){return t.getUTCHours()})),R=D.range,F=n((function(t){t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+e)}),(function(t,e){return(e-t)/864e5}),(function(t){return t.getUTCDate()-1})),B=F.range;function N(t){return n((function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCDate(t.getUTCDate()+7*e)}),(function(t,e){return(e-t)/6048e5}))}var j=N(0),U=N(1),V=N(2),q=N(3),H=N(4),G=N(5),Y=N(6),W=j.range,X=U.range,Z=V.range,J=q.range,K=H.range,Q=G.range,$=Y.range,tt=n((function(t){t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCMonth(t.getUTCMonth()+e)}),(function(t,e){return e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())}),(function(t){return t.getUTCMonth()})),et=tt.range,rt=n((function(t){t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)}),(function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()}),(function(t){return t.getUTCFullYear()}));rt.every=function(t){return isFinite(t=Math.floor(t))&amp;&amp;t&gt;0?n((function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,r){e.setUTCFullYear(e.getUTCFullYear()+r*t)})):null};var nt=rt.range;t.timeDay=h,t.timeDays=p,t.timeFriday=b,t.timeFridays=S,t.timeHour=u,t.timeHours=f,t.timeInterval=n,t.timeMillisecond=i,t.timeMilliseconds=a,t.timeMinute=l,t.timeMinutes=c,t.timeMonday=m,t.timeMondays=T,t.timeMonth=C,t.timeMonths=L,t.timeSaturday=_,t.timeSaturdays=E,t.timeSecond=o,t.timeSeconds=s,t.timeSunday=g,t.timeSundays=w,t.timeThursday=x,t.timeThursdays=A,t.timeTuesday=v,t.timeTuesdays=k,t.timeWednesday=y,t.timeWednesdays=M,t.timeWeek=g,t.timeWeeks=w,t.timeYear=I,t.timeYears=P,t.utcDay=F,t.utcDays=B,t.utcFriday=G,t.utcFridays=Q,t.utcHour=D,t.utcHours=R,t.utcMillisecond=i,t.utcMilliseconds=a,t.utcMinute=z,t.utcMinutes=O,t.utcMonday=U,t.utcMondays=X,t.utcMonth=tt,t.utcMonths=et,t.utcSaturday=Y,t.utcSaturdays=$,t.utcSecond=o,t.utcSeconds=s,t.utcSunday=j,t.utcSundays=W,t.utcThursday=H,t.utcThursdays=K,t.utcTuesday=V,t.utcTuesdays=Z,t.utcWednesday=q,t.utcWednesdays=J,t.utcWeek=j,t.utcWeeks=W,t.utcYear=rt,t.utcYears=nt,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],168:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).d3=t.d3||{})}(this,(function(t){&quot;use strict&quot;;var e,r,n=0,i=0,a=0,o=0,s=0,l=0,c=&quot;object&quot;==typeof performance&amp;&amp;performance.now?performance:Date,u=&quot;object&quot;==typeof window&amp;&amp;window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function f(){return s||(u(h),s=c.now()+l)}function h(){s=0}function p(){this._call=this._time=this._next=null}function d(t,e,r){var n=new p;return n.restart(t,e,r),n}function g(){f(),++n;for(var t,r=e;r;)(t=s-r._time)&gt;=0&amp;&amp;r._call.call(null,t),r=r._next;--n}function m(){s=(o=c.now())+l,n=i=0;try{g()}finally{n=0,function(){var t,n,i=e,a=1/0;for(;i;)i._call?(a&gt;i._time&amp;&amp;(a=i._time),t=i,i=i._next):(n=i._next,i._next=null,i=t?t._next=n:e=n);r=t,y(a)}(),s=0}}function v(){var t=c.now(),e=t-o;e&gt;1e3&amp;&amp;(l-=e,o=t)}function y(t){n||(i&amp;&amp;(i=clearTimeout(i)),t-s&gt;24?(t&lt;1/0&amp;&amp;(i=setTimeout(m,t-c.now()-l)),a&amp;&amp;(a=clearInterval(a))):(a||(o=c.now(),a=setInterval(v,1e3)),n=1,u(m)))}p.prototype=d.prototype={constructor:p,restart:function(t,n,i){if(&quot;function&quot;!=typeof t)throw new TypeError(&quot;callback is not a function&quot;);i=(null==i?f():+i)+(null==n?0:+n),this._next||r===this||(r?r._next=this:e=this,r=this),this._call=t,this._time=i,y()},stop:function(){this._call&amp;&amp;(this._call=null,this._time=1/0,y())}},t.interval=function(t,e,r){var n=new p,i=e;return null==e?(n.restart(t,e,r),n):(e=+e,r=null==r?f():+r,n.restart((function a(o){o+=i,n.restart(a,i+=e,r),t(o)}),e,r),n)},t.now=f,t.timeout=function(t,e,r){var n=new p;return e=null==e?0:+e,n.restart((function(r){n.stop(),t(r+e)}),e,r),n},t.timer=d,t.timerFlush=g,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],169:[function(t,e,r){!function(){var t={version:&quot;3.5.17&quot;},r=[].slice,n=function(t){return r.call(t)},i=this.document;function a(t){return t&amp;&amp;(t.ownerDocument||t.document||t).documentElement}function o(t){return t&amp;&amp;(t.ownerDocument&amp;&amp;t.ownerDocument.defaultView||t.document&amp;&amp;t||t.defaultView)}if(i)try{n(i.documentElement.childNodes)[0].nodeType}catch(t){n=function(t){for(var e=t.length,r=new Array(e);e--;)r[e]=t[e];return r}}if(Date.now||(Date.now=function(){return+new Date}),i)try{i.createElement(&quot;DIV&quot;).style.setProperty(&quot;opacity&quot;,0,&quot;&quot;)}catch(t){var s=this.Element.prototype,l=s.setAttribute,c=s.setAttributeNS,u=this.CSSStyleDeclaration.prototype,f=u.setProperty;s.setAttribute=function(t,e){l.call(this,t,e+&quot;&quot;)},s.setAttributeNS=function(t,e,r){c.call(this,t,e,r+&quot;&quot;)},u.setProperty=function(t,e,r){f.call(this,t,e+&quot;&quot;,r)}}function h(t,e){return t&lt;e?-1:t&gt;e?1:t&gt;=e?0:NaN}function p(t){return null===t?NaN:+t}function d(t){return!isNaN(t)}function g(t){return{left:function(e,r,n,i){for(arguments.length&lt;3&amp;&amp;(n=0),arguments.length&lt;4&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&lt;0?n=a+1:i=a}return n},right:function(e,r,n,i){for(arguments.length&lt;3&amp;&amp;(n=0),arguments.length&lt;4&amp;&amp;(i=e.length);n&lt;i;){var a=n+i&gt;&gt;&gt;1;t(e[a],r)&gt;0?i=a:n=a+1}return n}}}t.ascending=h,t.descending=function(t,e){return e&lt;t?-1:e&gt;t?1:e&gt;=t?0:NaN},t.min=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i&lt;a;)if(null!=(n=t[i])&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=t[i])&amp;&amp;r&gt;n&amp;&amp;(r=n)}else{for(;++i&lt;a;)if(null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=e.call(t,t[i],i))&amp;&amp;r&gt;n&amp;&amp;(r=n)}return r},t.max=function(t,e){var r,n,i=-1,a=t.length;if(1===arguments.length){for(;++i&lt;a;)if(null!=(n=t[i])&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=t[i])&amp;&amp;n&gt;r&amp;&amp;(r=n)}else{for(;++i&lt;a;)if(null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;=n){r=n;break}for(;++i&lt;a;)null!=(n=e.call(t,t[i],i))&amp;&amp;n&gt;r&amp;&amp;(r=n)}return r},t.extent=function(t,e){var r,n,i,a=-1,o=t.length;if(1===arguments.length){for(;++a&lt;o;)if(null!=(n=t[a])&amp;&amp;n&gt;=n){r=i=n;break}for(;++a&lt;o;)null!=(n=t[a])&amp;&amp;(r&gt;n&amp;&amp;(r=n),i&lt;n&amp;&amp;(i=n))}else{for(;++a&lt;o;)if(null!=(n=e.call(t,t[a],a))&amp;&amp;n&gt;=n){r=i=n;break}for(;++a&lt;o;)null!=(n=e.call(t,t[a],a))&amp;&amp;(r&gt;n&amp;&amp;(r=n),i&lt;n&amp;&amp;(i=n))}return[r,i]},t.sum=function(t,e){var r,n=0,i=t.length,a=-1;if(1===arguments.length)for(;++a&lt;i;)d(r=+t[a])&amp;&amp;(n+=r);else for(;++a&lt;i;)d(r=+e.call(t,t[a],a))&amp;&amp;(n+=r);return n},t.mean=function(t,e){var r,n=0,i=t.length,a=-1,o=i;if(1===arguments.length)for(;++a&lt;i;)d(r=p(t[a]))?n+=r:--o;else for(;++a&lt;i;)d(r=p(e.call(t,t[a],a)))?n+=r:--o;if(o)return n/o},t.quantile=function(t,e){var r=(t.length-1)*e+1,n=Math.floor(r),i=+t[n-1],a=r-n;return a?i+a*(t[n]-i):i},t.median=function(e,r){var n,i=[],a=e.length,o=-1;if(1===arguments.length)for(;++o&lt;a;)d(n=p(e[o]))&amp;&amp;i.push(n);else for(;++o&lt;a;)d(n=p(r.call(e,e[o],o)))&amp;&amp;i.push(n);if(i.length)return t.quantile(i.sort(h),.5)},t.variance=function(t,e){var r,n,i=t.length,a=0,o=0,s=-1,l=0;if(1===arguments.length)for(;++s&lt;i;)d(r=p(t[s]))&amp;&amp;(o+=(n=r-a)*(r-(a+=n/++l)));else for(;++s&lt;i;)d(r=p(e.call(t,t[s],s)))&amp;&amp;(o+=(n=r-a)*(r-(a+=n/++l)));if(l&gt;1)return o/(l-1)},t.deviation=function(){var e=t.variance.apply(this,arguments);return e?Math.sqrt(e):e};var m=g(h);function v(t){return t.length}t.bisectLeft=m.left,t.bisect=t.bisectRight=m.right,t.bisector=function(t){return g(1===t.length?function(e,r){return h(t(e),r)}:t)},t.shuffle=function(t,e,r){(a=arguments.length)&lt;3&amp;&amp;(r=t.length,a&lt;2&amp;&amp;(e=0));for(var n,i,a=r-e;a;)i=Math.random()*a--|0,n=t[a+e],t[a+e]=t[i+e],t[i+e]=n;return t},t.permute=function(t,e){for(var r=e.length,n=new Array(r);r--;)n[r]=t[e[r]];return n},t.pairs=function(t){for(var e=0,r=t.length-1,n=t[0],i=new Array(r&lt;0?0:r);e&lt;r;)i[e]=[n,n=t[++e]];return i},t.transpose=function(e){if(!(a=e.length))return[];for(var r=-1,n=t.min(e,v),i=new Array(n);++r&lt;n;)for(var a,o=-1,s=i[r]=new Array(a);++o&lt;a;)s[o]=e[o][r];return i},t.zip=function(){return t.transpose(arguments)},t.keys=function(t){var e=[];for(var r in t)e.push(r);return e},t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.entries=function(t){var e=[];for(var r in t)e.push({key:r,value:t[r]});return e},t.merge=function(t){for(var e,r,n,i=t.length,a=-1,o=0;++a&lt;i;)o+=t[a].length;for(r=new Array(o);--i&gt;=0;)for(e=(n=t[i]).length;--e&gt;=0;)r[--o]=n[e];return r};var y=Math.abs;function x(t){for(var e=1;t*e%1;)e*=10;return e}function b(t,e){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],enumerable:!1})}function _(){this._=Object.create(null)}t.range=function(t,e,r){if(arguments.length&lt;3&amp;&amp;(r=1,arguments.length&lt;2&amp;&amp;(e=t,t=0)),(e-t)/r==1/0)throw new Error(&quot;infinite range&quot;);var n,i=[],a=x(y(r)),o=-1;if(t*=a,e*=a,(r*=a)&lt;0)for(;(n=t+r*++o)&gt;e;)i.push(n/a);else for(;(n=t+r*++o)&lt;e;)i.push(n/a);return i},t.map=function(t,e){var r=new _;if(t instanceof _)t.forEach((function(t,e){r.set(t,e)}));else if(Array.isArray(t)){var n,i=-1,a=t.length;if(1===arguments.length)for(;++i&lt;a;)r.set(i,t[i]);else for(;++i&lt;a;)r.set(e.call(t,n=t[i],i),n)}else for(var o in t)r.set(o,t[o]);return r};function w(t){return&quot;__proto__&quot;==(t+=&quot;&quot;)||&quot;\0&quot;===t[0]?&quot;\0&quot;+t:t}function T(t){return&quot;\0&quot;===(t+=&quot;&quot;)[0]?t.slice(1):t}function k(t){return w(t)in this._}function M(t){return(t=w(t))in this._&amp;&amp;delete this._[t]}function A(){var t=[];for(var e in this._)t.push(T(e));return t}function S(){var t=0;for(var e in this._)++t;return t}function E(){for(var t in this._)return!1;return!0}function C(){this._=Object.create(null)}function L(t){return t}function I(t,e,r){return function(){var n=r.apply(e,arguments);return n===e?t:n}}function P(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var r=0,n=z.length;r&lt;n;++r){var i=z[r]+e;if(i in t)return i}}b(_,{has:k,get:function(t){return this._[w(t)]},set:function(t,e){return this._[w(t)]=e},remove:M,keys:A,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:T(e),value:this._[e]});return t},size:S,empty:E,forEach:function(t){for(var e in this._)t.call(this,T(e),this._[e])}}),t.nest=function(){var e,r,n={},i=[],a=[];function o(t,a,s){if(s&gt;=i.length)return r?r.call(n,a):e?a.sort(e):a;for(var l,c,u,f,h=-1,p=a.length,d=i[s++],g=new _;++h&lt;p;)(f=g.get(l=d(c=a[h])))?f.push(c):g.set(l,[c]);return t?(c=t(),u=function(e,r){c.set(e,o(t,r,s))}):(c={},u=function(e,r){c[e]=o(t,r,s)}),g.forEach(u),c}return n.map=function(t,e){return o(e,t,0)},n.entries=function(e){return function t(e,r){if(r&gt;=i.length)return e;var n=[],o=a[r++];return e.forEach((function(e,i){n.push({key:e,values:t(i,r)})})),o?n.sort((function(t,e){return o(t.key,e.key)})):n}(o(t.map,e,0),0)},n.key=function(t){return i.push(t),n},n.sortKeys=function(t){return a[i.length-1]=t,n},n.sortValues=function(t){return e=t,n},n.rollup=function(t){return r=t,n},n},t.set=function(t){var e=new C;if(t)for(var r=0,n=t.length;r&lt;n;++r)e.add(t[r]);return e},b(C,{has:k,add:function(t){return this._[w(t+=&quot;&quot;)]=!0,t},remove:M,values:A,size:S,empty:E,forEach:function(t){for(var e in this._)t.call(this,T(e))}}),t.behavior={},t.rebind=function(t,e){for(var r,n=1,i=arguments.length;++n&lt;i;)t[r=arguments[n]]=I(t,e,e[r]);return t};var z=[&quot;webkit&quot;,&quot;ms&quot;,&quot;moz&quot;,&quot;Moz&quot;,&quot;o&quot;,&quot;O&quot;];function O(){}function D(){}function R(t){var e=[],r=new _;function n(){for(var r,n=e,i=-1,a=n.length;++i&lt;a;)(r=n[i].on)&amp;&amp;r.apply(this,arguments);return t}return n.on=function(n,i){var a,o=r.get(n);return arguments.length&lt;2?o&amp;&amp;o.on:(o&amp;&amp;(o.on=null,e=e.slice(0,a=e.indexOf(o)).concat(e.slice(a+1)),r.remove(n)),i&amp;&amp;e.push(r.set(n,{on:i})),t)},n}function F(){t.event.preventDefault()}function B(){for(var e,r=t.event;e=r.sourceEvent;)r=e;return r}function N(e){for(var r=new D,n=0,i=arguments.length;++n&lt;i;)r[arguments[n]]=R(r);return r.of=function(n,i){return function(a){try{var o=a.sourceEvent=t.event;a.target=e,t.event=a,r[a.type].apply(n,i)}finally{t.event=o}}},r}t.dispatch=function(){for(var t=new D,e=-1,r=arguments.length;++e&lt;r;)t[arguments[e]]=R(t);return t},D.prototype.on=function(t,e){var r=t.indexOf(&quot;.&quot;),n=&quot;&quot;;if(r&gt;=0&amp;&amp;(n=t.slice(r+1),t=t.slice(0,r)),t)return arguments.length&lt;2?this[t].on(n):this[t].on(n,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&amp;&amp;this[t].on(n,null);return this}},t.event=null,t.requote=function(t){return t.replace(j,&quot;\\$&amp;&quot;)};var j=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,U={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var r in e)t[r]=e[r]};function V(t){return U(t,Y),t}var q=function(t,e){return e.querySelector(t)},H=function(t,e){return e.querySelectorAll(t)},G=function(t,e){var r=t.matches||t[P(t,&quot;matchesSelector&quot;)];return(G=function(t,e){return r.call(t,e)})(t,e)};&quot;function&quot;==typeof Sizzle&amp;&amp;(q=function(t,e){return Sizzle(t,e)[0]||null},H=Sizzle,G=Sizzle.matchesSelector),t.selection=function(){return t.select(i.documentElement)};var Y=t.selection.prototype=[];function W(t){return&quot;function&quot;==typeof t?t:function(){return q(t,this)}}function X(t){return&quot;function&quot;==typeof t?t:function(){return H(t,this)}}Y.select=function(t){var e,r,n,i,a=[];t=W(t);for(var o=-1,s=this.length;++o&lt;s;){a.push(e=[]),e.parentNode=(n=this[o]).parentNode;for(var l=-1,c=n.length;++l&lt;c;)(i=n[l])?(e.push(r=t.call(i,i.__data__,l,o)),r&amp;&amp;&quot;__data__&quot;in i&amp;&amp;(r.__data__=i.__data__)):e.push(null)}return V(a)},Y.selectAll=function(t){var e,r,i=[];t=X(t);for(var a=-1,o=this.length;++a&lt;o;)for(var s=this[a],l=-1,c=s.length;++l&lt;c;)(r=s[l])&amp;&amp;(i.push(e=n(t.call(r,r.__data__,l,a))),e.parentNode=r);return V(i)};var Z=&quot;http://www.w3.org/1999/xhtml&quot;,J={svg:&quot;http://www.w3.org/2000/svg&quot;,xhtml:Z,xlink:&quot;http://www.w3.org/1999/xlink&quot;,xml:&quot;http://www.w3.org/XML/1998/namespace&quot;,xmlns:&quot;http://www.w3.org/2000/xmlns/&quot;};function K(e,r){return e=t.ns.qualify(e),null==r?e.local?function(){this.removeAttributeNS(e.space,e.local)}:function(){this.removeAttribute(e)}:&quot;function&quot;==typeof r?e.local?function(){var t=r.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}:function(){var t=r.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}:e.local?function(){this.setAttributeNS(e.space,e.local,r)}:function(){this.setAttribute(e,r)}}function Q(t){return t.trim().replace(/\s+/g,&quot; &quot;)}function $(e){return new RegExp(&quot;(?:^|\\s+)&quot;+t.requote(e)+&quot;(?:\\s+|$)&quot;,&quot;g&quot;)}function tt(t){return(t+&quot;&quot;).trim().split(/^|\s+/)}function et(t,e){var r=(t=tt(t).map(rt)).length;return&quot;function&quot;==typeof e?function(){for(var n=-1,i=e.apply(this,arguments);++n&lt;r;)t[n](this,i)}:function(){for(var n=-1;++n&lt;r;)t[n](this,e)}}function rt(t){var e=$(t);return function(r,n){if(i=r.classList)return n?i.add(t):i.remove(t);var i=r.getAttribute(&quot;class&quot;)||&quot;&quot;;n?(e.lastIndex=0,e.test(i)||r.setAttribute(&quot;class&quot;,Q(i+&quot; &quot;+t))):r.setAttribute(&quot;class&quot;,Q(i.replace(e,&quot; &quot;)))}}function nt(t,e,r){return null==e?function(){this.style.removeProperty(t)}:&quot;function&quot;==typeof e?function(){var n=e.apply(this,arguments);null==n?this.style.removeProperty(t):this.style.setProperty(t,n,r)}:function(){this.style.setProperty(t,e,r)}}function it(t,e){return null==e?function(){delete this[t]}:&quot;function&quot;==typeof e?function(){var r=e.apply(this,arguments);null==r?delete this[t]:this[t]=r}:function(){this[t]=e}}function at(e){return&quot;function&quot;==typeof e?e:(e=t.ns.qualify(e)).local?function(){return this.ownerDocument.createElementNS(e.space,e.local)}:function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Z&amp;&amp;t.documentElement.namespaceURI===Z?t.createElement(e):t.createElementNS(r,e)}}function ot(){var t=this.parentNode;t&amp;&amp;t.removeChild(this)}function st(t){return{__data__:t}}function lt(t){return function(){return G(this,t)}}function ct(t){return arguments.length||(t=h),function(e,r){return e&amp;&amp;r?t(e.__data__,r.__data__):!e-!r}}function ut(t,e){for(var r=0,n=t.length;r&lt;n;r++)for(var i,a=t[r],o=0,s=a.length;o&lt;s;o++)(i=a[o])&amp;&amp;e(i,o,r);return t}function ft(t){return U(t,ht),t}t.ns={prefix:J,qualify:function(t){var e=t.indexOf(&quot;:&quot;),r=t;return e&gt;=0&amp;&amp;&quot;xmlns&quot;!==(r=t.slice(0,e))&amp;&amp;(t=t.slice(e+1)),J.hasOwnProperty(r)?{space:J[r],local:t}:t}},Y.attr=function(e,r){if(arguments.length&lt;2){if(&quot;string&quot;==typeof e){var n=this.node();return(e=t.ns.qualify(e)).local?n.getAttributeNS(e.space,e.local):n.getAttribute(e)}for(r in e)this.each(K(r,e[r]));return this}return this.each(K(e,r))},Y.classed=function(t,e){if(arguments.length&lt;2){if(&quot;string&quot;==typeof t){var r=this.node(),n=(t=tt(t)).length,i=-1;if(e=r.classList){for(;++i&lt;n;)if(!e.contains(t[i]))return!1}else for(e=r.getAttribute(&quot;class&quot;);++i&lt;n;)if(!$(t[i]).test(e))return!1;return!0}for(e in t)this.each(et(e,t[e]));return this}return this.each(et(t,e))},Y.style=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=&quot;&quot;),t)this.each(nt(r,t[r],e));return this}if(n&lt;2){var i=this.node();return o(i).getComputedStyle(i,null).getPropertyValue(t)}r=&quot;&quot;}return this.each(nt(t,e,r))},Y.property=function(t,e){if(arguments.length&lt;2){if(&quot;string&quot;==typeof t)return this.node()[t];for(e in t)this.each(it(e,t[e]));return this}return this.each(it(t,e))},Y.text=function(t){return arguments.length?this.each(&quot;function&quot;==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?&quot;&quot;:e}:null==t?function(){this.textContent=&quot;&quot;}:function(){this.textContent=t}):this.node().textContent},Y.html=function(t){return arguments.length?this.each(&quot;function&quot;==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?&quot;&quot;:e}:null==t?function(){this.innerHTML=&quot;&quot;}:function(){this.innerHTML=t}):this.node().innerHTML},Y.append=function(t){return t=at(t),this.select((function(){return this.appendChild(t.apply(this,arguments))}))},Y.insert=function(t,e){return t=at(t),e=W(e),this.select((function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)}))},Y.remove=function(){return this.each(ot)},Y.data=function(t,e){var r,n,i=-1,a=this.length;if(!arguments.length){for(t=new Array(a=(r=this[0]).length);++i&lt;a;)(n=r[i])&amp;&amp;(t[i]=n.__data__);return t}function o(t,r){var n,i,a,o=t.length,u=r.length,f=Math.min(o,u),h=new Array(u),p=new Array(u),d=new Array(o);if(e){var g,m=new _,v=new Array(o);for(n=-1;++n&lt;o;)(i=t[n])&amp;&amp;(m.has(g=e.call(i,i.__data__,n))?d[n]=i:m.set(g,i),v[n]=g);for(n=-1;++n&lt;u;)(i=m.get(g=e.call(r,a=r[n],n)))?!0!==i&amp;&amp;(h[n]=i,i.__data__=a):p[n]=st(a),m.set(g,!0);for(n=-1;++n&lt;o;)n in v&amp;&amp;!0!==m.get(v[n])&amp;&amp;(d[n]=t[n])}else{for(n=-1;++n&lt;f;)i=t[n],a=r[n],i?(i.__data__=a,h[n]=i):p[n]=st(a);for(;n&lt;u;++n)p[n]=st(r[n]);for(;n&lt;o;++n)d[n]=t[n]}p.update=h,p.parentNode=h.parentNode=d.parentNode=t.parentNode,s.push(p),l.push(h),c.push(d)}var s=ft([]),l=V([]),c=V([]);if(&quot;function&quot;==typeof t)for(;++i&lt;a;)o(r=this[i],t.call(r,r.parentNode.__data__,i));else for(;++i&lt;a;)o(r=this[i],t);return l.enter=function(){return s},l.exit=function(){return c},l},Y.datum=function(t){return arguments.length?this.property(&quot;__data__&quot;,t):this.property(&quot;__data__&quot;)},Y.filter=function(t){var e,r,n,i=[];&quot;function&quot;!=typeof t&amp;&amp;(t=lt(t));for(var a=0,o=this.length;a&lt;o;a++){i.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var s=0,l=r.length;s&lt;l;s++)(n=r[s])&amp;&amp;t.call(n,n.__data__,s,a)&amp;&amp;e.push(n)}return V(i)},Y.order=function(){for(var t=-1,e=this.length;++t&lt;e;)for(var r,n=this[t],i=n.length-1,a=n[i];--i&gt;=0;)(r=n[i])&amp;&amp;(a&amp;&amp;a!==r.nextSibling&amp;&amp;a.parentNode.insertBefore(r,a),a=r);return this},Y.sort=function(t){t=ct.apply(this,arguments);for(var e=-1,r=this.length;++e&lt;r;)this[e].sort(t);return this.order()},Y.each=function(t){return ut(this,(function(e,r,n){t.call(e,e.__data__,r,n)}))},Y.call=function(t){var e=n(arguments);return t.apply(e[0]=this,e),this},Y.empty=function(){return!this.node()},Y.node=function(){for(var t=0,e=this.length;t&lt;e;t++)for(var r=this[t],n=0,i=r.length;n&lt;i;n++){var a=r[n];if(a)return a}return null},Y.size=function(){var t=0;return ut(this,(function(){++t})),t};var ht=[];function pt(t){var e,r;return function(n,i,a){var o,s=t[a].update,l=s.length;for(a!=r&amp;&amp;(r=a,e=0),i&gt;=e&amp;&amp;(e=i+1);!(o=s[e])&amp;&amp;++e&lt;l;);return o}}function dt(e,r,i){var a=&quot;__on&quot;+e,o=e.indexOf(&quot;.&quot;),s=mt;o&gt;0&amp;&amp;(e=e.slice(0,o));var l=gt.get(e);function c(){var t=this[a];t&amp;&amp;(this.removeEventListener(e,t,t.$),delete this[a])}return l&amp;&amp;(e=l,s=vt),o?r?function(){var t=s(r,n(arguments));c.call(this),this.addEventListener(e,this[a]=t,t.$=i),t._=r}:c:r?O:function(){var r,n=new RegExp(&quot;^__on([^.]+)&quot;+t.requote(e)+&quot;$&quot;);for(var i in this)if(r=i.match(n)){var a=this[i];this.removeEventListener(r[1],a,a.$),delete this[i]}}}t.selection.enter=ft,t.selection.enter.prototype=ht,ht.append=Y.append,ht.empty=Y.empty,ht.node=Y.node,ht.call=Y.call,ht.size=Y.size,ht.select=function(t){for(var e,r,n,i,a,o=[],s=-1,l=this.length;++s&lt;l;){n=(i=this[s]).update,o.push(e=[]),e.parentNode=i.parentNode;for(var c=-1,u=i.length;++c&lt;u;)(a=i[c])?(e.push(n[c]=r=t.call(i.parentNode,a.__data__,c,s)),r.__data__=a.__data__):e.push(null)}return V(o)},ht.insert=function(t,e){return arguments.length&lt;2&amp;&amp;(e=pt(this)),Y.insert.call(this,t,e)},t.select=function(t){var e;return&quot;string&quot;==typeof t?(e=[q(t,i)]).parentNode=i.documentElement:(e=[t]).parentNode=a(t),V([e])},t.selectAll=function(t){var e;return&quot;string&quot;==typeof t?(e=n(H(t,i))).parentNode=i.documentElement:(e=n(t)).parentNode=null,V([e])},Y.on=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=!1),t)this.each(dt(r,t[r],e));return this}if(n&lt;2)return(n=this.node()[&quot;__on&quot;+t])&amp;&amp;n._;r=!1}return this.each(dt(t,e,r))};var gt=t.map({mouseenter:&quot;mouseover&quot;,mouseleave:&quot;mouseout&quot;});function mt(e,r){return function(n){var i=t.event;t.event=n,r[0]=this.__data__;try{e.apply(this,r)}finally{t.event=i}}}function vt(t,e){var r=mt(t,e);return function(t){var e=t.relatedTarget;e&amp;&amp;(e===this||8&amp;e.compareDocumentPosition(this))||r.call(this,t)}}i&amp;&amp;gt.forEach((function(t){&quot;on&quot;+t in i&amp;&amp;gt.remove(t)}));var yt,xt=0;function bt(e){var r=&quot;.dragsuppress-&quot;+ ++xt,n=&quot;click&quot;+r,i=t.select(o(e)).on(&quot;touchmove&quot;+r,F).on(&quot;dragstart&quot;+r,F).on(&quot;selectstart&quot;+r,F);if(null==yt&amp;&amp;(yt=!(&quot;onselectstart&quot;in e)&amp;&amp;P(e.style,&quot;userSelect&quot;)),yt){var s=a(e).style,l=s[yt];s[yt]=&quot;none&quot;}return function(t){if(i.on(r,null),yt&amp;&amp;(s[yt]=l),t){var e=function(){i.on(n,null)};i.on(n,(function(){F(),e()}),!0),setTimeout(e,0)}}}t.mouse=function(t){return wt(t,B())};var _t=this.navigator&amp;&amp;/WebKit/.test(this.navigator.userAgent)?-1:0;function wt(e,r){r.changedTouches&amp;&amp;(r=r.changedTouches[0]);var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();if(_t&lt;0){var a=o(e);if(a.scrollX||a.scrollY){var s=(n=t.select(&quot;body&quot;).append(&quot;svg&quot;).style({position:&quot;absolute&quot;,top:0,left:0,margin:0,padding:0,border:&quot;none&quot;},&quot;important&quot;))[0][0].getScreenCTM();_t=!(s.f||s.e),n.remove()}}return _t?(i.x=r.pageX,i.y=r.pageY):(i.x=r.clientX,i.y=r.clientY),[(i=i.matrixTransform(e.getScreenCTM().inverse())).x,i.y]}var l=e.getBoundingClientRect();return[r.clientX-l.left-e.clientLeft,r.clientY-l.top-e.clientTop]}function Tt(){return t.event.changedTouches[0].identifier}t.touch=function(t,e,r){if(arguments.length&lt;3&amp;&amp;(r=e,e=B().changedTouches),e)for(var n,i=0,a=e.length;i&lt;a;++i)if((n=e[i]).identifier===r)return wt(t,n)},t.behavior.drag=function(){var e=N(a,&quot;drag&quot;,&quot;dragstart&quot;,&quot;dragend&quot;),r=null,n=s(O,t.mouse,o,&quot;mousemove&quot;,&quot;mouseup&quot;),i=s(Tt,t.touch,L,&quot;touchmove&quot;,&quot;touchend&quot;);function a(){this.on(&quot;mousedown.drag&quot;,n).on(&quot;touchstart.drag&quot;,i)}function s(n,i,a,o,s){return function(){var l,c=this,u=t.event.target.correspondingElement||t.event.target,f=c.parentNode,h=e.of(c,arguments),p=0,d=n(),g=&quot;.drag&quot;+(null==d?&quot;&quot;:&quot;-&quot;+d),m=t.select(a(u)).on(o+g,x).on(s+g,b),v=bt(u),y=i(f,d);function x(){var t,e,r=i(f,d);r&amp;&amp;(t=r[0]-y[0],e=r[1]-y[1],p|=t|e,y=r,h({type:&quot;drag&quot;,x:r[0]+l[0],y:r[1]+l[1],dx:t,dy:e}))}function b(){i(f,d)&amp;&amp;(m.on(o+g,null).on(s+g,null),v(p),h({type:&quot;dragend&quot;}))}l=r?[(l=r.apply(c,arguments)).x-y[0],l.y-y[1]]:[0,0],h({type:&quot;dragstart&quot;})}}return a.origin=function(t){return arguments.length?(r=t,a):r},t.rebind(a,e,&quot;on&quot;)},t.touches=function(t,e){return arguments.length&lt;2&amp;&amp;(e=B().touches),e?n(e).map((function(e){var r=wt(t,e);return r.identifier=e.identifier,r})):[]};var kt=1e-6,Mt=1e-12,At=Math.PI,St=2*At,Et=St-kt,Ct=At/2,Lt=At/180,It=180/At;function Pt(t){return t&gt;0?1:t&lt;0?-1:0}function zt(t,e,r){return(e[0]-t[0])*(r[1]-t[1])-(e[1]-t[1])*(r[0]-t[0])}function Ot(t){return t&gt;1?0:t&lt;-1?At:Math.acos(t)}function Dt(t){return t&gt;1?Ct:t&lt;-1?-Ct:Math.asin(t)}function Rt(t){return((t=Math.exp(t))+1/t)/2}function Ft(t){return(t=Math.sin(t/2))*t}var Bt=Math.SQRT2;t.interpolateZoom=function(t,e){var r,n,i=t[0],a=t[1],o=t[2],s=e[0],l=e[1],c=e[2],u=s-i,f=l-a,h=u*u+f*f;if(h&lt;Mt)n=Math.log(c/o)/Bt,r=function(t){return[i+t*u,a+t*f,o*Math.exp(Bt*t*n)]};else{var p=Math.sqrt(h),d=(c*c-o*o+4*h)/(2*o*2*p),g=(c*c-o*o-4*h)/(2*c*2*p),m=Math.log(Math.sqrt(d*d+1)-d),v=Math.log(Math.sqrt(g*g+1)-g);n=(v-m)/Bt,r=function(t){var e,r=t*n,s=Rt(m),l=o/(2*p)*(s*(e=Bt*r+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[i+l*u,a+l*f,o*s/Rt(Bt*r+m)]}}return r.duration=1e3*n,r},t.behavior.zoom=function(){var e,r,n,a,s,l,c,u,f,h={x:0,y:0,k:1},p=[960,500],d=Ut,g=250,m=0,v=&quot;mousedown.zoom&quot;,y=&quot;mousemove.zoom&quot;,x=&quot;mouseup.zoom&quot;,b=&quot;touchstart.zoom&quot;,_=N(w,&quot;zoomstart&quot;,&quot;zoom&quot;,&quot;zoomend&quot;);function w(t){t.on(v,I).on(jt+&quot;.zoom&quot;,z).on(&quot;dblclick.zoom&quot;,O).on(b,P)}function T(t){return[(t[0]-h.x)/h.k,(t[1]-h.y)/h.k]}function k(t){h.k=Math.max(d[0],Math.min(d[1],t))}function M(t,e){e=function(t){return[t[0]*h.k+h.x,t[1]*h.k+h.y]}(e),h.x+=t[0]-e[0],h.y+=t[1]-e[1]}function A(e,n,i,a){e.__chart__={x:h.x,y:h.y,k:h.k},k(Math.pow(2,a)),M(r=n,i),e=t.select(e),g&gt;0&amp;&amp;(e=e.transition().duration(g)),e.call(w.event)}function S(){c&amp;&amp;c.domain(l.range().map((function(t){return(t-h.x)/h.k})).map(l.invert)),f&amp;&amp;f.domain(u.range().map((function(t){return(t-h.y)/h.k})).map(u.invert))}function E(t){m++||t({type:&quot;zoomstart&quot;})}function C(t){S(),t({type:&quot;zoom&quot;,scale:h.k,translate:[h.x,h.y]})}function L(t){--m||(t({type:&quot;zoomend&quot;}),r=null)}function I(){var e=this,r=_.of(e,arguments),n=0,i=t.select(o(e)).on(y,l).on(x,c),a=T(t.mouse(e)),s=bt(e);function l(){n=1,M(t.mouse(e),a),C(r)}function c(){i.on(y,null).on(x,null),s(n),L(r)}vs.call(e),E(r)}function P(){var e,r=this,n=_.of(r,arguments),i={},a=0,o=&quot;.zoom-&quot;+t.event.changedTouches[0].identifier,l=&quot;touchmove&quot;+o,c=&quot;touchend&quot;+o,u=[],f=t.select(r),p=bt(r);function d(){var n=t.touches(r);return e=h.k,n.forEach((function(t){t.identifier in i&amp;&amp;(i[t.identifier]=T(t))})),n}function g(){var e=t.event.target;t.select(e).on(l,m).on(c,y),u.push(e);for(var n=t.event.changedTouches,o=0,f=n.length;o&lt;f;++o)i[n[o].identifier]=null;var p=d(),g=Date.now();if(1===p.length){if(g-s&lt;500){var v=p[0];A(r,v,i[v.identifier],Math.floor(Math.log(h.k)/Math.LN2)+1),F()}s=g}else if(p.length&gt;1){v=p[0];var x=p[1],b=v[0]-x[0],_=v[1]-x[1];a=b*b+_*_}}function m(){var o,l,c,u,f=t.touches(r);vs.call(r);for(var h=0,p=f.length;h&lt;p;++h,u=null)if(c=f[h],u=i[c.identifier]){if(l)break;o=c,l=u}if(u){var d=(d=c[0]-o[0])*d+(d=c[1]-o[1])*d,g=a&amp;&amp;Math.sqrt(d/a);o=[(o[0]+c[0])/2,(o[1]+c[1])/2],l=[(l[0]+u[0])/2,(l[1]+u[1])/2],k(g*e)}s=null,M(o,l),C(n)}function y(){if(t.event.touches.length){for(var e=t.event.changedTouches,r=0,a=e.length;r&lt;a;++r)delete i[e[r].identifier];for(var s in i)return void d()}t.selectAll(u).on(o,null),f.on(v,I).on(b,P),p(),L(n)}g(),E(n),f.on(v,null).on(b,g)}function z(){var i=_.of(this,arguments);a?clearTimeout(a):(vs.call(this),e=T(r=n||t.mouse(this)),E(i)),a=setTimeout((function(){a=null,L(i)}),50),F(),k(Math.pow(2,.002*Nt())*h.k),M(r,e),C(i)}function O(){var e=t.mouse(this),r=Math.log(h.k)/Math.LN2;A(this,e,T(e),t.event.shiftKey?Math.ceil(r)-1:Math.floor(r)+1)}return jt||(jt=&quot;onwheel&quot;in i?(Nt=function(){return-t.event.deltaY*(t.event.deltaMode?120:1)},&quot;wheel&quot;):&quot;onmousewheel&quot;in i?(Nt=function(){return t.event.wheelDelta},&quot;mousewheel&quot;):(Nt=function(){return-t.event.detail},&quot;MozMousePixelScroll&quot;)),w.event=function(e){e.each((function(){var e=_.of(this,arguments),n=h;bs?t.select(this).transition().each(&quot;start.zoom&quot;,(function(){h=this.__chart__||{x:0,y:0,k:1},E(e)})).tween(&quot;zoom:zoom&quot;,(function(){var i=p[0],a=p[1],o=r?r[0]:i/2,s=r?r[1]:a/2,l=t.interpolateZoom([(o-h.x)/h.k,(s-h.y)/h.k,i/h.k],[(o-n.x)/n.k,(s-n.y)/n.k,i/n.k]);return function(t){var r=l(t),n=i/r[2];this.__chart__=h={x:o-r[0]*n,y:s-r[1]*n,k:n},C(e)}})).each(&quot;interrupt.zoom&quot;,(function(){L(e)})).each(&quot;end.zoom&quot;,(function(){L(e)})):(this.__chart__=h,E(e),C(e),L(e))}))},w.translate=function(t){return arguments.length?(h={x:+t[0],y:+t[1],k:h.k},S(),w):[h.x,h.y]},w.scale=function(t){return arguments.length?(h={x:h.x,y:h.y,k:null},k(+t),S(),w):h.k},w.scaleExtent=function(t){return arguments.length?(d=null==t?Ut:[+t[0],+t[1]],w):d},w.center=function(t){return arguments.length?(n=t&amp;&amp;[+t[0],+t[1]],w):n},w.size=function(t){return arguments.length?(p=t&amp;&amp;[+t[0],+t[1]],w):p},w.duration=function(t){return arguments.length?(g=+t,w):g},w.x=function(t){return arguments.length?(c=t,l=t.copy(),h={x:0,y:0,k:1},w):c},w.y=function(t){return arguments.length?(f=t,u=t.copy(),h={x:0,y:0,k:1},w):f},t.rebind(w,_,&quot;on&quot;)};var Nt,jt,Ut=[0,1/0];function Vt(){}function qt(t,e,r){return this instanceof qt?(this.h=+t,this.s=+e,void(this.l=+r)):arguments.length&lt;2?t instanceof qt?new qt(t.h,t.s,t.l):le(&quot;&quot;+t,ce,qt):new qt(t,e,r)}t.color=Vt,Vt.prototype.toString=function(){return this.rgb()+&quot;&quot;},t.hsl=qt;var Ht=qt.prototype=new Vt;function Gt(t,e,r){var n,i;function a(t){return Math.round(255*function(t){return t&gt;360?t-=360:t&lt;0&amp;&amp;(t+=360),t&lt;60?n+(i-n)*t/60:t&lt;180?i:t&lt;240?n+(i-n)*(240-t)/60:n}(t))}return t=isNaN(t)?0:(t%=360)&lt;0?t+360:t,e=isNaN(e)||e&lt;0?0:e&gt;1?1:e,n=2*(r=r&lt;0?0:r&gt;1?1:r)-(i=r&lt;=.5?r*(1+e):r+e-r*e),new ne(a(t+120),a(t),a(t-120))}function Yt(e,r,n){return this instanceof Yt?(this.h=+e,this.c=+r,void(this.l=+n)):arguments.length&lt;2?e instanceof Yt?new Yt(e.h,e.c,e.l):$t(e instanceof Zt?e.l:(e=ue((e=t.rgb(e)).r,e.g,e.b)).l,e.a,e.b):new Yt(e,r,n)}Ht.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new qt(this.h,this.s,this.l/t)},Ht.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new qt(this.h,this.s,t*this.l)},Ht.rgb=function(){return Gt(this.h,this.s,this.l)},t.hcl=Yt;var Wt=Yt.prototype=new Vt;function Xt(t,e,r){return isNaN(t)&amp;&amp;(t=0),isNaN(e)&amp;&amp;(e=0),new Zt(r,Math.cos(t*=Lt)*e,Math.sin(t)*e)}function Zt(t,e,r){return this instanceof Zt?(this.l=+t,this.a=+e,void(this.b=+r)):arguments.length&lt;2?t instanceof Zt?new Zt(t.l,t.a,t.b):t instanceof Yt?Xt(t.h,t.c,t.l):ue((t=ne(t)).r,t.g,t.b):new Zt(t,e,r)}Wt.brighter=function(t){return new Yt(this.h,this.c,Math.min(100,this.l+Jt*(arguments.length?t:1)))},Wt.darker=function(t){return new Yt(this.h,this.c,Math.max(0,this.l-Jt*(arguments.length?t:1)))},Wt.rgb=function(){return Xt(this.h,this.c,this.l).rgb()},t.lab=Zt;var Jt=18,Kt=Zt.prototype=new Vt;function Qt(t,e,r){var n=(t+16)/116,i=n+e/500,a=n-r/200;return new ne(re(3.2404542*(i=.95047*te(i))-1.5371385*(n=1*te(n))-.4985314*(a=1.08883*te(a))),re(-.969266*i+1.8760108*n+.041556*a),re(.0556434*i-.2040259*n+1.0572252*a))}function $t(t,e,r){return t&gt;0?new Yt(Math.atan2(r,e)*It,Math.sqrt(e*e+r*r),t):new Yt(NaN,NaN,t)}function te(t){return t&gt;.206893034?t*t*t:(t-4/29)/7.787037}function ee(t){return t&gt;.008856?Math.pow(t,1/3):7.787037*t+4/29}function re(t){return Math.round(255*(t&lt;=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function ne(t,e,r){return this instanceof ne?(this.r=~~t,this.g=~~e,void(this.b=~~r)):arguments.length&lt;2?t instanceof ne?new ne(t.r,t.g,t.b):le(&quot;&quot;+t,ne,Gt):new ne(t,e,r)}function ie(t){return new ne(t&gt;&gt;16,t&gt;&gt;8&amp;255,255&amp;t)}function ae(t){return ie(t)+&quot;&quot;}Kt.brighter=function(t){return new Zt(Math.min(100,this.l+Jt*(arguments.length?t:1)),this.a,this.b)},Kt.darker=function(t){return new Zt(Math.max(0,this.l-Jt*(arguments.length?t:1)),this.a,this.b)},Kt.rgb=function(){return Qt(this.l,this.a,this.b)},t.rgb=ne;var oe=ne.prototype=new Vt;function se(t){return t&lt;16?&quot;0&quot;+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function le(t,e,r){var n,i,a,o=0,s=0,l=0;if(n=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(i=n[2].split(&quot;,&quot;),n[1]){case&quot;hsl&quot;:return r(parseFloat(i[0]),parseFloat(i[1])/100,parseFloat(i[2])/100);case&quot;rgb&quot;:return e(he(i[0]),he(i[1]),he(i[2]))}return(a=pe.get(t))?e(a.r,a.g,a.b):(null==t||&quot;#&quot;!==t.charAt(0)||isNaN(a=parseInt(t.slice(1),16))||(4===t.length?(o=(3840&amp;a)&gt;&gt;4,o|=o&gt;&gt;4,s=240&amp;a,s|=s&gt;&gt;4,l=15&amp;a,l|=l&lt;&lt;4):7===t.length&amp;&amp;(o=(16711680&amp;a)&gt;&gt;16,s=(65280&amp;a)&gt;&gt;8,l=255&amp;a)),e(o,s,l))}function ce(t,e,r){var n,i,a=Math.min(t/=255,e/=255,r/=255),o=Math.max(t,e,r),s=o-a,l=(o+a)/2;return s?(i=l&lt;.5?s/(o+a):s/(2-o-a),n=t==o?(e-r)/s+(e&lt;r?6:0):e==o?(r-t)/s+2:(t-e)/s+4,n*=60):(n=NaN,i=l&gt;0&amp;&amp;l&lt;1?0:n),new qt(n,i,l)}function ue(t,e,r){var n=ee((.4124564*(t=fe(t))+.3575761*(e=fe(e))+.1804375*(r=fe(r)))/.95047),i=ee((.2126729*t+.7151522*e+.072175*r)/1);return Zt(116*i-16,500*(n-i),200*(i-ee((.0193339*t+.119192*e+.9503041*r)/1.08883)))}function fe(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function he(t){var e=parseFloat(t);return&quot;%&quot;===t.charAt(t.length-1)?Math.round(2.55*e):e}oe.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,r=this.g,n=this.b,i=30;return e||r||n?(e&amp;&amp;e&lt;i&amp;&amp;(e=i),r&amp;&amp;r&lt;i&amp;&amp;(r=i),n&amp;&amp;n&lt;i&amp;&amp;(n=i),new ne(Math.min(255,e/t),Math.min(255,r/t),Math.min(255,n/t))):new ne(i,i,i)},oe.darker=function(t){return new ne((t=Math.pow(.7,arguments.length?t:1))*this.r,t*this.g,t*this.b)},oe.hsl=function(){return ce(this.r,this.g,this.b)},oe.toString=function(){return&quot;#&quot;+se(this.r)+se(this.g)+se(this.b)};var pe=t.map({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 de(t){return&quot;function&quot;==typeof t?t:function(){return t}}function ge(t){return function(e,r,n){return 2===arguments.length&amp;&amp;&quot;function&quot;==typeof r&amp;&amp;(n=r,r=null),me(e,r,t,n)}}function me(e,r,i,a){var o={},s=t.dispatch(&quot;beforesend&quot;,&quot;progress&quot;,&quot;load&quot;,&quot;error&quot;),l={},c=new XMLHttpRequest,u=null;function f(){var t,e=c.status;if(!e&amp;&amp;function(t){var e=t.responseType;return e&amp;&amp;&quot;text&quot;!==e?t.response:t.responseText}(c)||e&gt;=200&amp;&amp;e&lt;300||304===e){try{t=i.call(o,c)}catch(t){return void s.error.call(o,t)}s.load.call(o,t)}else s.error.call(o,c)}return this.XDomainRequest&amp;&amp;!(&quot;withCredentials&quot;in c)&amp;&amp;/^(http(s)?:)?\/\//.test(e)&amp;&amp;(c=new XDomainRequest),&quot;onload&quot;in c?c.onload=c.onerror=f:c.onreadystatechange=function(){c.readyState&gt;3&amp;&amp;f()},c.onprogress=function(e){var r=t.event;t.event=e;try{s.progress.call(o,c)}finally{t.event=r}},o.header=function(t,e){return t=(t+&quot;&quot;).toLowerCase(),arguments.length&lt;2?l[t]:(null==e?delete l[t]:l[t]=e+&quot;&quot;,o)},o.mimeType=function(t){return arguments.length?(r=null==t?null:t+&quot;&quot;,o):r},o.responseType=function(t){return arguments.length?(u=t,o):u},o.response=function(t){return i=t,o},[&quot;get&quot;,&quot;post&quot;].forEach((function(t){o[t]=function(){return o.send.apply(o,[t].concat(n(arguments)))}})),o.send=function(t,n,i){if(2===arguments.length&amp;&amp;&quot;function&quot;==typeof n&amp;&amp;(i=n,n=null),c.open(t,e,!0),null==r||&quot;accept&quot;in l||(l.accept=r+&quot;,*/*&quot;),c.setRequestHeader)for(var a in l)c.setRequestHeader(a,l[a]);return null!=r&amp;&amp;c.overrideMimeType&amp;&amp;c.overrideMimeType(r),null!=u&amp;&amp;(c.responseType=u),null!=i&amp;&amp;o.on(&quot;error&quot;,i).on(&quot;load&quot;,(function(t){i(null,t)})),s.beforesend.call(o,c),c.send(null==n?null:n),o},o.abort=function(){return c.abort(),o},t.rebind(o,s,&quot;on&quot;),null==a?o:o.get(function(t){return 1===t.length?function(e,r){t(null==e?r:null)}:t}(a))}pe.forEach((function(t,e){pe.set(t,ie(e))})),t.functor=de,t.xhr=ge(L),t.dsv=function(t,e){var r=new RegExp('[&quot;'+t+&quot;\n]&quot;),n=t.charCodeAt(0);function i(t,r,n){arguments.length&lt;3&amp;&amp;(n=r,r=null);var i=me(t,e,null==r?a:o(r),n);return i.row=function(t){return arguments.length?i.response(null==(r=t)?a:o(t)):r},i}function a(t){return i.parse(t.responseText)}function o(t){return function(e){return i.parse(e.responseText,t)}}function s(e){return e.map(l).join(t)}function l(t){return r.test(t)?'&quot;'+t.replace(/\&quot;/g,'&quot;&quot;')+'&quot;':t}return i.parse=function(t,e){var r;return i.parseRows(t,(function(t,n){if(r)return r(t,n-1);var i=new Function(&quot;d&quot;,&quot;return {&quot;+t.map((function(t,e){return JSON.stringify(t)+&quot;: d[&quot;+e+&quot;]&quot;})).join(&quot;,&quot;)+&quot;}&quot;);r=e?function(t,r){return e(i(t),r)}:i}))},i.parseRows=function(t,e){var r,i,a={},o={},s=[],l=t.length,c=0,u=0;function f(){if(c&gt;=l)return o;if(i)return i=!1,a;var e=c;if(34===t.charCodeAt(e)){for(var r=e;r++&lt;l;)if(34===t.charCodeAt(r)){if(34!==t.charCodeAt(r+1))break;++r}return c=r+2,13===(s=t.charCodeAt(r+1))?(i=!0,10===t.charCodeAt(r+2)&amp;&amp;++c):10===s&amp;&amp;(i=!0),t.slice(e+1,r).replace(/&quot;&quot;/g,'&quot;')}for(;c&lt;l;){var s,u=1;if(10===(s=t.charCodeAt(c++)))i=!0;else if(13===s)i=!0,10===t.charCodeAt(c)&amp;&amp;(++c,++u);else if(s!==n)continue;return t.slice(e,c-u)}return t.slice(e)}for(;(r=f())!==o;){for(var h=[];r!==a&amp;&amp;r!==o;)h.push(r),r=f();e&amp;&amp;null==(h=e(h,u++))||s.push(h)}return s},i.format=function(e){if(Array.isArray(e[0]))return i.formatRows(e);var r=new C,n=[];return e.forEach((function(t){for(var e in t)r.has(e)||n.push(r.add(e))})),[n.map(l).join(t)].concat(e.map((function(e){return n.map((function(t){return l(e[t])})).join(t)}))).join(&quot;\n&quot;)},i.formatRows=function(t){return t.map(s).join(&quot;\n&quot;)},i},t.csv=t.dsv(&quot;,&quot;,&quot;text/csv&quot;),t.tsv=t.dsv(&quot;\t&quot;,&quot;text/tab-separated-values&quot;);var ve,ye,xe,be,_e=this[P(this,&quot;requestAnimationFrame&quot;)]||function(t){setTimeout(t,17)};function we(t,e,r){var n=arguments.length;n&lt;2&amp;&amp;(e=0),n&lt;3&amp;&amp;(r=Date.now());var i=r+e,a={c:t,t:i,n:null};return ye?ye.n=a:ve=a,ye=a,xe||(be=clearTimeout(be),xe=1,_e(Te)),a}function Te(){var t=ke(),e=Me()-t;e&gt;24?(isFinite(e)&amp;&amp;(clearTimeout(be),be=setTimeout(Te,e)),xe=0):(xe=1,_e(Te))}function ke(){for(var t=Date.now(),e=ve;e;)t&gt;=e.t&amp;&amp;e.c(t-e.t)&amp;&amp;(e.c=null),e=e.n;return t}function Me(){for(var t,e=ve,r=1/0;e;)e.c?(e.t&lt;r&amp;&amp;(r=e.t),e=(t=e).n):e=t?t.n=e.n:ve=e.n;return ye=t,r}function Ae(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}t.timer=function(){we.apply(this,arguments)},t.timer.flush=function(){ke(),Me()},t.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var Se=[&quot;y&quot;,&quot;z&quot;,&quot;a&quot;,&quot;f&quot;,&quot;p&quot;,&quot;n&quot;,&quot;\xb5&quot;,&quot;m&quot;,&quot;&quot;,&quot;k&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;,&quot;P&quot;,&quot;E&quot;,&quot;Z&quot;,&quot;Y&quot;].map((function(t,e){var r=Math.pow(10,3*y(8-e));return{scale:e&gt;8?function(t){return t/r}:function(t){return t*r},symbol:t}}));function Ee(e){var r=e.decimal,n=e.thousands,i=e.grouping,a=e.currency,o=i&amp;&amp;n?function(t,e){for(var r=t.length,a=[],o=0,s=i[0],l=0;r&gt;0&amp;&amp;s&gt;0&amp;&amp;(l+s+1&gt;e&amp;&amp;(s=Math.max(1,e-l)),a.push(t.substring(r-=s,r+s)),!((l+=s+1)&gt;e));)s=i[o=(o+1)%i.length];return a.reverse().join(n)}:L;return function(e){var n=Ce.exec(e),i=n[1]||&quot; &quot;,s=n[2]||&quot;&gt;&quot;,l=n[3]||&quot;-&quot;,c=n[4]||&quot;&quot;,u=n[5],f=+n[6],h=n[7],p=n[8],d=n[9],g=1,m=&quot;&quot;,v=&quot;&quot;,y=!1,x=!0;switch(p&amp;&amp;(p=+p.substring(1)),(u||&quot;0&quot;===i&amp;&amp;&quot;=&quot;===s)&amp;&amp;(u=i=&quot;0&quot;,s=&quot;=&quot;),d){case&quot;n&quot;:h=!0,d=&quot;g&quot;;break;case&quot;%&quot;:g=100,v=&quot;%&quot;,d=&quot;f&quot;;break;case&quot;p&quot;:g=100,v=&quot;%&quot;,d=&quot;r&quot;;break;case&quot;b&quot;:case&quot;o&quot;:case&quot;x&quot;:case&quot;X&quot;:&quot;#&quot;===c&amp;&amp;(m=&quot;0&quot;+d.toLowerCase());case&quot;c&quot;:x=!1;case&quot;d&quot;:y=!0,p=0;break;case&quot;s&quot;:g=-1,d=&quot;r&quot;}&quot;$&quot;===c&amp;&amp;(m=a[0],v=a[1]),&quot;r&quot;!=d||p||(d=&quot;g&quot;),null!=p&amp;&amp;(&quot;g&quot;==d?p=Math.max(1,Math.min(21,p)):&quot;e&quot;!=d&amp;&amp;&quot;f&quot;!=d||(p=Math.max(0,Math.min(20,p)))),d=Le.get(d)||Ie;var b=u&amp;&amp;h;return function(e){var n=v;if(y&amp;&amp;e%1)return&quot;&quot;;var a=e&lt;0||0===e&amp;&amp;1/e&lt;0?(e=-e,&quot;-&quot;):&quot;-&quot;===l?&quot;&quot;:l;if(g&lt;0){var c=t.formatPrefix(e,p);e=c.scale(e),n=c.symbol+v}else e*=g;var _,w,T=(e=d(e,p)).lastIndexOf(&quot;.&quot;);if(T&lt;0){var k=x?e.lastIndexOf(&quot;e&quot;):-1;k&lt;0?(_=e,w=&quot;&quot;):(_=e.substring(0,k),w=e.substring(k))}else _=e.substring(0,T),w=r+e.substring(T+1);!u&amp;&amp;h&amp;&amp;(_=o(_,1/0));var M=m.length+_.length+w.length+(b?0:a.length),A=M&lt;f?new Array(M=f-M+1).join(i):&quot;&quot;;return b&amp;&amp;(_=o(A+_,A.length?f-w.length:1/0)),a+=m,e=_+w,(&quot;&lt;&quot;===s?a+e+A:&quot;&gt;&quot;===s?A+a+e:&quot;^&quot;===s?A.substring(0,M&gt;&gt;=1)+a+e+A.substring(M):a+(b?e:A+e))+n}}}t.formatPrefix=function(e,r){var n=0;return(e=+e)&amp;&amp;(e&lt;0&amp;&amp;(e*=-1),r&amp;&amp;(e=t.round(e,Ae(e,r))),n=1+Math.floor(1e-12+Math.log(e)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),Se[8+n/3]};var Ce=/(?:([^{])?([&lt;&gt;=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,Le=t.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(e,r){return(e=t.round(e,Ae(e,r))).toFixed(Math.max(0,Math.min(20,Ae(e*(1+1e-15),r))))}});function Ie(t){return t+&quot;&quot;}var Pe=t.time={},ze=Date;function Oe(){this._=new Date(arguments.length&gt;1?Date.UTC.apply(this,arguments):arguments[0])}Oe.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){De.setUTCDate.apply(this._,arguments)},setDay:function(){De.setUTCDay.apply(this._,arguments)},setFullYear:function(){De.setUTCFullYear.apply(this._,arguments)},setHours:function(){De.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){De.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){De.setUTCMinutes.apply(this._,arguments)},setMonth:function(){De.setUTCMonth.apply(this._,arguments)},setSeconds:function(){De.setUTCSeconds.apply(this._,arguments)},setTime:function(){De.setTime.apply(this._,arguments)}};var De=Date.prototype;function Re(t,e,r){function n(e){var r=t(e),n=a(r,1);return e-r&lt;n-e?r:n}function i(r){return e(r=t(new ze(r-1)),1),r}function a(t,r){return e(t=new ze(+t),r),t}function o(t,n,a){var o=i(t),s=[];if(a&gt;1)for(;o&lt;n;)r(o)%a||s.push(new Date(+o)),e(o,1);else for(;o&lt;n;)s.push(new Date(+o)),e(o,1);return s}t.floor=t,t.round=n,t.ceil=i,t.offset=a,t.range=o;var s=t.utc=Fe(t);return s.floor=s,s.round=Fe(n),s.ceil=Fe(i),s.offset=Fe(a),s.range=function(t,e,r){try{ze=Oe;var n=new Oe;return n._=t,o(n,e,r)}finally{ze=Date}},t}function Fe(t){return function(e,r){try{ze=Oe;var n=new Oe;return n._=e,t(n,r)._}finally{ze=Date}}}function Be(e){var r=e.dateTime,n=e.date,i=e.time,a=e.periods,o=e.days,s=e.shortDays,l=e.months,c=e.shortMonths;function u(t){var e=t.length;function r(r){for(var n,i,a,o=[],s=-1,l=0;++s&lt;e;)37===t.charCodeAt(s)&amp;&amp;(o.push(t.slice(l,s)),null!=(i=Ne[n=t.charAt(++s)])&amp;&amp;(n=t.charAt(++s)),(a=_[n])&amp;&amp;(n=a(r,null==i?&quot;e&quot;===n?&quot; &quot;:&quot;0&quot;:i)),o.push(n),l=s+1);return o.push(t.slice(l,s)),o.join(&quot;&quot;)}return r.parse=function(e){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null};if(f(r,t,e,0)!=e.length)return null;&quot;p&quot;in r&amp;&amp;(r.H=r.H%12+12*r.p);var n=null!=r.Z&amp;&amp;ze!==Oe,i=new(n?Oe:ze);return&quot;j&quot;in r?i.setFullYear(r.y,0,r.j):&quot;W&quot;in r||&quot;U&quot;in r?(&quot;w&quot;in r||(r.w=&quot;W&quot;in r?1:0),i.setFullYear(r.y,0,1),i.setFullYear(r.y,0,&quot;W&quot;in r?(r.w+6)%7+7*r.W-(i.getDay()+5)%7:r.w+7*r.U-(i.getDay()+6)%7)):i.setFullYear(r.y,r.m,r.d),i.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),n?i._:i},r.toString=function(){return t},r}function f(t,e,r,n){for(var i,a,o,s=0,l=e.length,c=r.length;s&lt;l;){if(n&gt;=c)return-1;if(37===(i=e.charCodeAt(s++))){if(o=e.charAt(s++),!(a=w[o in Ne?e.charAt(s++):o])||(n=a(t,r,n))&lt;0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}u.utc=function(t){var e=u(t);function r(t){try{var r=new(ze=Oe);return r._=t,e(r)}finally{ze=Date}}return r.parse=function(t){try{ze=Oe;var r=e.parse(t);return r&amp;&amp;r._}finally{ze=Date}},r.toString=e.toString,r},u.multi=u.utc.multi=or;var h=t.map(),p=qe(o),d=He(o),g=qe(s),m=He(s),v=qe(l),y=He(l),x=qe(c),b=He(c);a.forEach((function(t,e){h.set(t.toLowerCase(),e)}));var _={a:function(t){return s[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return c[t.getMonth()]},B:function(t){return l[t.getMonth()]},c:u(r),d:function(t,e){return Ve(t.getDate(),e,2)},e:function(t,e){return Ve(t.getDate(),e,2)},H:function(t,e){return Ve(t.getHours(),e,2)},I:function(t,e){return Ve(t.getHours()%12||12,e,2)},j:function(t,e){return Ve(1+Pe.dayOfYear(t),e,3)},L:function(t,e){return Ve(t.getMilliseconds(),e,3)},m:function(t,e){return Ve(t.getMonth()+1,e,2)},M:function(t,e){return Ve(t.getMinutes(),e,2)},p:function(t){return a[+(t.getHours()&gt;=12)]},S:function(t,e){return Ve(t.getSeconds(),e,2)},U:function(t,e){return Ve(Pe.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Ve(Pe.mondayOfYear(t),e,2)},x:u(n),X:u(i),y:function(t,e){return Ve(t.getFullYear()%100,e,2)},Y:function(t,e){return Ve(t.getFullYear()%1e4,e,4)},Z:ir,&quot;%&quot;:function(){return&quot;%&quot;}},w={a:function(t,e,r){g.lastIndex=0;var n=g.exec(e.slice(r));return n?(t.w=m.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(t,e,r){p.lastIndex=0;var n=p.exec(e.slice(r));return n?(t.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(t,e,r){x.lastIndex=0;var n=x.exec(e.slice(r));return n?(t.m=b.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(t,e,r){v.lastIndex=0;var n=v.exec(e.slice(r));return n?(t.m=y.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(t,e,r){return f(t,_.c.toString(),e,r)},d:Qe,e:Qe,H:tr,I:tr,j:$e,L:nr,m:Ke,M:er,p:function(t,e,r){var n=h.get(e.slice(r,r+=2).toLowerCase());return null==n?-1:(t.p=n,r)},S:rr,U:Ye,w:Ge,W:We,x:function(t,e,r){return f(t,_.x.toString(),e,r)},X:function(t,e,r){return f(t,_.X.toString(),e,r)},y:Ze,Y:Xe,Z:Je,&quot;%&quot;:ar};return u}Pe.year=Re((function(t){return(t=Pe.day(t)).setMonth(0,1),t}),(function(t,e){t.setFullYear(t.getFullYear()+e)}),(function(t){return t.getFullYear()})),Pe.years=Pe.year.range,Pe.years.utc=Pe.year.utc.range,Pe.day=Re((function(t){var e=new ze(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e}),(function(t,e){t.setDate(t.getDate()+e)}),(function(t){return t.getDate()-1})),Pe.days=Pe.day.range,Pe.days.utc=Pe.day.utc.range,Pe.dayOfYear=function(t){var e=Pe.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},[&quot;sunday&quot;,&quot;monday&quot;,&quot;tuesday&quot;,&quot;wednesday&quot;,&quot;thursday&quot;,&quot;friday&quot;,&quot;saturday&quot;].forEach((function(t,e){e=7-e;var r=Pe[t]=Re((function(t){return(t=Pe.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t}),(function(t,e){t.setDate(t.getDate()+7*Math.floor(e))}),(function(t){var r=Pe.year(t).getDay();return Math.floor((Pe.dayOfYear(t)+(r+e)%7)/7)-(r!==e)}));Pe[t+&quot;s&quot;]=r.range,Pe[t+&quot;s&quot;].utc=r.utc.range,Pe[t+&quot;OfYear&quot;]=function(t){var r=Pe.year(t).getDay();return Math.floor((Pe.dayOfYear(t)+(r+e)%7)/7)}})),Pe.week=Pe.sunday,Pe.weeks=Pe.sunday.range,Pe.weeks.utc=Pe.sunday.utc.range,Pe.weekOfYear=Pe.sundayOfYear;var Ne={&quot;-&quot;:&quot;&quot;,_:&quot; &quot;,0:&quot;0&quot;},je=/^\s*\d+/,Ue=/^%/;function Ve(t,e,r){var n=t&lt;0?&quot;-&quot;:&quot;&quot;,i=(n?-t:t)+&quot;&quot;,a=i.length;return n+(a&lt;r?new Array(r-a+1).join(e)+i:i)}function qe(e){return new RegExp(&quot;^(?:&quot;+e.map(t.requote).join(&quot;|&quot;)+&quot;)&quot;,&quot;i&quot;)}function He(t){for(var e=new _,r=-1,n=t.length;++r&lt;n;)e.set(t[r].toLowerCase(),r);return e}function Ge(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+1));return n?(t.w=+n[0],r+n[0].length):-1}function Ye(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r));return n?(t.U=+n[0],r+n[0].length):-1}function We(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r));return n?(t.W=+n[0],r+n[0].length):-1}function Xe(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+4));return n?(t.y=+n[0],r+n[0].length):-1}function Ze(t,e,r){je.lastIndex=0;var n,i=je.exec(e.slice(r,r+2));return i?(t.y=(n=+i[0])+(n&gt;68?1900:2e3),r+i[0].length):-1}function Je(t,e,r){return/^[+-]\d{4}$/.test(e=e.slice(r,r+5))?(t.Z=-e,r+5):-1}function Ke(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.m=n[0]-1,r+n[0].length):-1}function Qe(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.d=+n[0],r+n[0].length):-1}function $e(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+3));return n?(t.j=+n[0],r+n[0].length):-1}function tr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.H=+n[0],r+n[0].length):-1}function er(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.M=+n[0],r+n[0].length):-1}function rr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+2));return n?(t.S=+n[0],r+n[0].length):-1}function nr(t,e,r){je.lastIndex=0;var n=je.exec(e.slice(r,r+3));return n?(t.L=+n[0],r+n[0].length):-1}function ir(t){var e=t.getTimezoneOffset(),r=e&gt;0?&quot;-&quot;:&quot;+&quot;,n=y(e)/60|0,i=y(e)%60;return r+Ve(n,&quot;0&quot;,2)+Ve(i,&quot;0&quot;,2)}function ar(t,e,r){Ue.lastIndex=0;var n=Ue.exec(e.slice(r,r+1));return n?r+n[0].length:-1}function or(t){for(var e=t.length,r=-1;++r&lt;e;)t[r][0]=this(t[r][0]);return function(e){for(var r=0,n=t[r];!n[1](e);)n=t[++r];return n[0](e)}}t.locale=function(t){return{numberFormat:Ee(t),timeFormat:Be(t)}};var sr=t.locale({decimal:&quot;.&quot;,thousands:&quot;,&quot;,grouping:[3],currency:[&quot;$&quot;,&quot;&quot;],dateTime:&quot;%a %b %e %X %Y&quot;,date:&quot;%m/%d/%Y&quot;,time:&quot;%H:%M:%S&quot;,periods:[&quot;AM&quot;,&quot;PM&quot;],days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;]});function lr(){}t.format=sr.numberFormat,t.geo={},lr.prototype={s:0,t:0,add:function(t){ur(t,this.t,cr),ur(cr.s,this.s,this),this.s?this.t+=cr.t:this.s=cr.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var cr=new lr;function ur(t,e,r){var n=r.s=t+e,i=n-t,a=n-i;r.t=t-a+(e-i)}function fr(t,e){t&amp;&amp;pr.hasOwnProperty(t.type)&amp;&amp;pr[t.type](t,e)}t.geo.stream=function(t,e){t&amp;&amp;hr.hasOwnProperty(t.type)?hr[t.type](t,e):fr(t,e)};var hr={Feature:function(t,e){fr(t.geometry,e)},FeatureCollection:function(t,e){for(var r=t.features,n=-1,i=r.length;++n&lt;i;)fr(r[n].geometry,e)}},pr={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)t=r[n],e.point(t[0],t[1],t[2])},LineString:function(t,e){dr(t.coordinates,e,0)},MultiLineString:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)dr(r[n],e,0)},Polygon:function(t,e){gr(t.coordinates,e)},MultiPolygon:function(t,e){for(var r=t.coordinates,n=-1,i=r.length;++n&lt;i;)gr(r[n],e)},GeometryCollection:function(t,e){for(var r=t.geometries,n=-1,i=r.length;++n&lt;i;)fr(r[n],e)}};function dr(t,e,r){var n,i=-1,a=t.length-r;for(e.lineStart();++i&lt;a;)n=t[i],e.point(n[0],n[1],n[2]);e.lineEnd()}function gr(t,e){var r=-1,n=t.length;for(e.polygonStart();++r&lt;n;)dr(t[r],e,1);e.polygonEnd()}t.geo.area=function(e){return mr=0,t.geo.stream(e,Cr),mr};var mr,vr,yr,xr,br,_r,wr,Tr,kr,Mr,Ar,Sr,Er=new lr,Cr={sphere:function(){mr+=4*At},point:O,lineStart:O,lineEnd:O,polygonStart:function(){Er.reset(),Cr.lineStart=Lr},polygonEnd:function(){var t=2*Er;mr+=t&lt;0?4*At+t:t,Cr.lineStart=Cr.lineEnd=Cr.point=O}};function Lr(){var t,e,r,n,i;function a(t,e){e=e*Lt/2+At/4;var a=(t*=Lt)-r,o=a&gt;=0?1:-1,s=o*a,l=Math.cos(e),c=Math.sin(e),u=i*c,f=n*l+u*Math.cos(s),h=u*o*Math.sin(s);Er.add(Math.atan2(h,f)),r=t,n=l,i=c}Cr.point=function(o,s){Cr.point=a,r=(t=o)*Lt,n=Math.cos(s=(e=s)*Lt/2+At/4),i=Math.sin(s)},Cr.lineEnd=function(){a(t,e)}}function Ir(t){var e=t[0],r=t[1],n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}function Pr(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function zr(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Or(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Dr(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function Rr(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}function Fr(t){return[Math.atan2(t[1],t[0]),Dt(t[2])]}function Br(t,e){return y(t[0]-e[0])&lt;kt&amp;&amp;y(t[1]-e[1])&lt;kt}t.geo.bounds=function(){var e,r,n,i,a,o,s,l,c,u,f,h={point:p,lineStart:g,lineEnd:m,polygonStart:function(){h.point=v,h.lineStart=x,h.lineEnd=b,c=0,Cr.polygonStart()},polygonEnd:function(){Cr.polygonEnd(),h.point=p,h.lineStart=g,h.lineEnd=m,Er&lt;0?(e=-(n=180),r=-(i=90)):c&gt;kt?i=90:c&lt;-kt&amp;&amp;(r=-90),f[0]=e,f[1]=n}};function p(t,a){u.push(f=[e=t,n=t]),a&lt;r&amp;&amp;(r=a),a&gt;i&amp;&amp;(i=a)}function d(t,o){var s=Ir([t*Lt,o*Lt]);if(l){var c=zr(l,s),u=zr([c[1],-c[0],0],c);Rr(u),u=Fr(u);var f=t-a,h=f&gt;0?1:-1,d=u[0]*It*h,g=y(f)&gt;180;if(g^(h*a&lt;d&amp;&amp;d&lt;h*t))(m=u[1]*It)&gt;i&amp;&amp;(i=m);else if(g^(h*a&lt;(d=(d+360)%360-180)&amp;&amp;d&lt;h*t)){var m;(m=-u[1]*It)&lt;r&amp;&amp;(r=m)}else o&lt;r&amp;&amp;(r=o),o&gt;i&amp;&amp;(i=o);g?t&lt;a?_(e,t)&gt;_(e,n)&amp;&amp;(n=t):_(t,n)&gt;_(e,n)&amp;&amp;(e=t):n&gt;=e?(t&lt;e&amp;&amp;(e=t),t&gt;n&amp;&amp;(n=t)):t&gt;a?_(e,t)&gt;_(e,n)&amp;&amp;(n=t):_(t,n)&gt;_(e,n)&amp;&amp;(e=t)}else p(t,o);l=s,a=t}function g(){h.point=d}function m(){f[0]=e,f[1]=n,h.point=p,l=null}function v(t,e){if(l){var r=t-a;c+=y(r)&gt;180?r+(r&gt;0?360:-360):r}else o=t,s=e;Cr.point(t,e),d(t,e)}function x(){Cr.lineStart()}function b(){v(o,s),Cr.lineEnd(),y(c)&gt;kt&amp;&amp;(e=-(n=180)),f[0]=e,f[1]=n,l=null}function _(t,e){return(e-=t)&lt;0?e+360:e}function w(t,e){return t[0]-e[0]}function T(t,e){return e[0]&lt;=e[1]?e[0]&lt;=t&amp;&amp;t&lt;=e[1]:t&lt;e[0]||e[1]&lt;t}return function(a){if(i=n=-(e=r=1/0),u=[],t.geo.stream(a,h),c=u.length){u.sort(w);for(var o=1,s=[g=u[0]];o&lt;c;++o)T((p=u[o])[0],g)||T(p[1],g)?(_(g[0],p[1])&gt;_(g[0],g[1])&amp;&amp;(g[1]=p[1]),_(p[0],g[1])&gt;_(g[0],g[1])&amp;&amp;(g[0]=p[0])):s.push(g=p);for(var l,c,p,d=-1/0,g=(o=0,s[c=s.length-1]);o&lt;=c;g=p,++o)p=s[o],(l=_(g[1],p[0]))&gt;d&amp;&amp;(d=l,e=p[0],n=g[1])}return u=f=null,e===1/0||r===1/0?[[NaN,NaN],[NaN,NaN]]:[[e,r],[n,i]]}}(),t.geo.centroid=function(e){vr=yr=xr=br=_r=wr=Tr=kr=Mr=Ar=Sr=0,t.geo.stream(e,Nr);var r=Mr,n=Ar,i=Sr,a=r*r+n*n+i*i;return a&lt;Mt&amp;&amp;(r=wr,n=Tr,i=kr,yr&lt;kt&amp;&amp;(r=xr,n=br,i=_r),(a=r*r+n*n+i*i)&lt;Mt)?[NaN,NaN]:[Math.atan2(n,r)*It,Dt(i/Math.sqrt(a))*It]};var Nr={sphere:O,point:jr,lineStart:Vr,lineEnd:qr,polygonStart:function(){Nr.lineStart=Hr},polygonEnd:function(){Nr.lineStart=Vr}};function jr(t,e){t*=Lt;var r=Math.cos(e*=Lt);Ur(r*Math.cos(t),r*Math.sin(t),Math.sin(e))}function Ur(t,e,r){++vr,xr+=(t-xr)/vr,br+=(e-br)/vr,_r+=(r-_r)/vr}function Vr(){var t,e,r;function n(n,i){n*=Lt;var a=Math.cos(i*=Lt),o=a*Math.cos(n),s=a*Math.sin(n),l=Math.sin(i),c=Math.atan2(Math.sqrt((c=e*l-r*s)*c+(c=r*o-t*l)*c+(c=t*s-e*o)*c),t*o+e*s+r*l);yr+=c,wr+=c*(t+(t=o)),Tr+=c*(e+(e=s)),kr+=c*(r+(r=l)),Ur(t,e,r)}Nr.point=function(i,a){i*=Lt;var o=Math.cos(a*=Lt);t=o*Math.cos(i),e=o*Math.sin(i),r=Math.sin(a),Nr.point=n,Ur(t,e,r)}}function qr(){Nr.point=jr}function Hr(){var t,e,r,n,i;function a(t,e){t*=Lt;var a=Math.cos(e*=Lt),o=a*Math.cos(t),s=a*Math.sin(t),l=Math.sin(e),c=n*l-i*s,u=i*o-r*l,f=r*s-n*o,h=Math.sqrt(c*c+u*u+f*f),p=r*o+n*s+i*l,d=h&amp;&amp;-Ot(p)/h,g=Math.atan2(h,p);Mr+=d*c,Ar+=d*u,Sr+=d*f,yr+=g,wr+=g*(r+(r=o)),Tr+=g*(n+(n=s)),kr+=g*(i+(i=l)),Ur(r,n,i)}Nr.point=function(o,s){t=o,e=s,Nr.point=a,o*=Lt;var l=Math.cos(s*=Lt);r=l*Math.cos(o),n=l*Math.sin(o),i=Math.sin(s),Ur(r,n,i)},Nr.lineEnd=function(){a(t,e),Nr.lineEnd=qr,Nr.point=jr}}function Gr(t,e){function r(r,n){return r=t(r,n),e(r[0],r[1])}return t.invert&amp;&amp;e.invert&amp;&amp;(r.invert=function(r,n){return(r=e.invert(r,n))&amp;&amp;t.invert(r[0],r[1])}),r}function Yr(){return!0}function Wr(t,e,r,n,i){var a=[],o=[];if(t.forEach((function(t){if(!((e=t.length-1)&lt;=0)){var e,r=t[0],n=t[e];if(Br(r,n)){i.lineStart();for(var s=0;s&lt;e;++s)i.point((r=t[s])[0],r[1]);i.lineEnd()}else{var l=new Zr(r,t,null,!0),c=new Zr(r,null,l,!1);l.o=c,a.push(l),o.push(c),l=new Zr(n,t,null,!1),c=new Zr(n,null,l,!0),l.o=c,a.push(l),o.push(c)}}})),o.sort(e),Xr(a),Xr(o),a.length){for(var s=0,l=r,c=o.length;s&lt;c;++s)o[s].e=l=!l;for(var u,f,h=a[0];;){for(var p=h,d=!0;p.v;)if((p=p.n)===h)return;u=p.z,i.lineStart();do{if(p.v=p.o.v=!0,p.e){if(d)for(s=0,c=u.length;s&lt;c;++s)i.point((f=u[s])[0],f[1]);else n(p.x,p.n.x,1,i);p=p.n}else{if(d)for(s=(u=p.p.z).length-1;s&gt;=0;--s)i.point((f=u[s])[0],f[1]);else n(p.x,p.p.x,-1,i);p=p.p}u=(p=p.o).z,d=!d}while(!p.v);i.lineEnd()}}}function Xr(t){if(e=t.length){for(var e,r,n=0,i=t[0];++n&lt;e;)i.n=r=t[n],r.p=i,i=r;i.n=r=t[0],r.p=i}}function Zr(t,e,r,n){this.x=t,this.z=e,this.o=r,this.e=n,this.v=!1,this.n=this.p=null}function Jr(e,r,n,i){return function(a,o){var s,l=r(o),c=a.invert(i[0],i[1]),u={point:f,lineStart:p,lineEnd:d,polygonStart:function(){u.point=b,u.lineStart=_,u.lineEnd=w,s=[],g=[]},polygonEnd:function(){u.point=f,u.lineStart=p,u.lineEnd=d,s=t.merge(s);var e=function(t,e){var r=t[0],n=t[1],i=[Math.sin(r),-Math.cos(r),0],a=0,o=0;Er.reset();for(var s=0,l=e.length;s&lt;l;++s){var c=e[s],u=c.length;if(u)for(var f=c[0],h=f[0],p=f[1]/2+At/4,d=Math.sin(p),g=Math.cos(p),m=1;;){m===u&amp;&amp;(m=0);var v=(t=c[m])[0],y=t[1]/2+At/4,x=Math.sin(y),b=Math.cos(y),_=v-h,w=_&gt;=0?1:-1,T=w*_,k=T&gt;At,M=d*x;if(Er.add(Math.atan2(M*w*Math.sin(T),g*b+M*Math.cos(T))),a+=k?_+w*St:_,k^h&gt;=r^v&gt;=r){var A=zr(Ir(f),Ir(t));Rr(A);var S=zr(i,A);Rr(S);var E=(k^_&gt;=0?-1:1)*Dt(S[2]);(n&gt;E||n===E&amp;&amp;(A[0]||A[1]))&amp;&amp;(o+=k^_&gt;=0?1:-1)}if(!m++)break;h=v,d=x,g=b,f=t}}return(a&lt;-kt||a&lt;kt&amp;&amp;Er&lt;-kt)^1&amp;o}(c,g);s.length?(x||(o.polygonStart(),x=!0),Wr(s,$r,e,n,o)):e&amp;&amp;(x||(o.polygonStart(),x=!0),o.lineStart(),n(null,null,1,o),o.lineEnd()),x&amp;&amp;(o.polygonEnd(),x=!1),s=g=null},sphere:function(){o.polygonStart(),o.lineStart(),n(null,null,1,o),o.lineEnd(),o.polygonEnd()}};function f(t,r){var n=a(t,r);e(t=n[0],r=n[1])&amp;&amp;o.point(t,r)}function h(t,e){var r=a(t,e);l.point(r[0],r[1])}function p(){u.point=h,l.lineStart()}function d(){u.point=f,l.lineEnd()}var g,m,v=Qr(),y=r(v),x=!1;function b(t,e){m.push([t,e]);var r=a(t,e);y.point(r[0],r[1])}function _(){y.lineStart(),m=[]}function w(){b(m[0][0],m[0][1]),y.lineEnd();var t,e=y.clean(),r=v.buffer(),n=r.length;if(m.pop(),g.push(m),m=null,n)if(1&amp;e){var i,a=-1;if((n=(t=r[0]).length-1)&gt;0){for(x||(o.polygonStart(),x=!0),o.lineStart();++a&lt;n;)o.point((i=t[a])[0],i[1]);o.lineEnd()}}else n&gt;1&amp;&amp;2&amp;e&amp;&amp;r.push(r.pop().concat(r.shift())),s.push(r.filter(Kr))}return u}}function Kr(t){return t.length&gt;1}function Qr(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,r){t.push([e,r])},lineEnd:O,buffer:function(){var r=e;return e=[],t=null,r},rejoin:function(){e.length&gt;1&amp;&amp;e.push(e.pop().concat(e.shift()))}}}function $r(t,e){return((t=t.x)[0]&lt;0?t[1]-Ct-kt:Ct-t[1])-((e=e.x)[0]&lt;0?e[1]-Ct-kt:Ct-e[1])}var tn=Jr(Yr,(function(t){var e,r=NaN,n=NaN,i=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(a,o){var s=a&gt;0?At:-At,l=y(a-r);y(l-At)&lt;kt?(t.point(r,n=(n+o)/2&gt;0?Ct:-Ct),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),t.point(a,n),e=0):i!==s&amp;&amp;l&gt;=At&amp;&amp;(y(r-i)&lt;kt&amp;&amp;(r-=i*kt),y(a-s)&lt;kt&amp;&amp;(a-=s*kt),n=function(t,e,r,n){var i,a,o=Math.sin(t-r);return y(o)&gt;kt?Math.atan((Math.sin(e)*(a=Math.cos(n))*Math.sin(r)-Math.sin(n)*(i=Math.cos(e))*Math.sin(t))/(i*a*o)):(e+n)/2}(r,n,a,o),t.point(i,n),t.lineEnd(),t.lineStart(),t.point(s,n),e=0),t.point(r=a,n=o),i=s},lineEnd:function(){t.lineEnd(),r=n=NaN},clean:function(){return 2-e}}}),(function(t,e,r,n){var i;if(null==t)i=r*Ct,n.point(-At,i),n.point(0,i),n.point(At,i),n.point(At,0),n.point(At,-i),n.point(0,-i),n.point(-At,-i),n.point(-At,0),n.point(-At,i);else if(y(t[0]-e[0])&gt;kt){var a=t[0]&lt;e[0]?At:-At;i=r*a/2,n.point(-a,i),n.point(0,i),n.point(a,i)}else n.point(e[0],e[1])}),[-At,-At/2]);function en(t){var e=Math.cos(t),r=e&gt;0,n=y(e)&gt;kt;return Jr(i,(function(t){var e,s,l,c,u;return{lineStart:function(){c=l=!1,u=1},point:function(f,h){var p,d=[f,h],g=i(f,h),m=r?g?0:o(f,h):g?o(f+(f&lt;0?At:-At),h):0;if(!e&amp;&amp;(c=l=g)&amp;&amp;t.lineStart(),g!==l&amp;&amp;(p=a(e,d),(Br(e,p)||Br(d,p))&amp;&amp;(d[0]+=kt,d[1]+=kt,g=i(d[0],d[1]))),g!==l)u=0,g?(t.lineStart(),p=a(d,e),t.point(p[0],p[1])):(p=a(e,d),t.point(p[0],p[1]),t.lineEnd()),e=p;else if(n&amp;&amp;e&amp;&amp;r^g){var v;m&amp;s||!(v=a(d,e,!0))||(u=0,r?(t.lineStart(),t.point(v[0][0],v[0][1]),t.point(v[1][0],v[1][1]),t.lineEnd()):(t.point(v[1][0],v[1][1]),t.lineEnd(),t.lineStart(),t.point(v[0][0],v[0][1])))}!g||e&amp;&amp;Br(e,d)||t.point(d[0],d[1]),e=d,l=g,s=m},lineEnd:function(){l&amp;&amp;t.lineEnd(),e=null},clean:function(){return u|(c&amp;&amp;l)&lt;&lt;1}}}),Bn(t,6*Lt),r?[0,-t]:[-At,t-At]);function i(t,r){return Math.cos(t)*Math.cos(r)&gt;e}function a(t,r,n){var i=[1,0,0],a=zr(Ir(t),Ir(r)),o=Pr(a,a),s=a[0],l=o-s*s;if(!l)return!n&amp;&amp;t;var c=e*o/l,u=-e*s/l,f=zr(i,a),h=Dr(i,c);Or(h,Dr(a,u));var p=f,d=Pr(h,p),g=Pr(p,p),m=d*d-g*(Pr(h,h)-1);if(!(m&lt;0)){var v=Math.sqrt(m),x=Dr(p,(-d-v)/g);if(Or(x,h),x=Fr(x),!n)return x;var b,_=t[0],w=r[0],T=t[1],k=r[1];w&lt;_&amp;&amp;(b=_,_=w,w=b);var M=w-_,A=y(M-At)&lt;kt;if(!A&amp;&amp;k&lt;T&amp;&amp;(b=T,T=k,k=b),A||M&lt;kt?A?T+k&gt;0^x[1]&lt;(y(x[0]-_)&lt;kt?T:k):T&lt;=x[1]&amp;&amp;x[1]&lt;=k:M&gt;At^(_&lt;=x[0]&amp;&amp;x[0]&lt;=w)){var S=Dr(p,(-d+v)/g);return Or(S,h),[x,Fr(S)]}}}function o(e,n){var i=r?t:At-t,a=0;return e&lt;-i?a|=1:e&gt;i&amp;&amp;(a|=2),n&lt;-i?a|=4:n&gt;i&amp;&amp;(a|=8),a}}function rn(t,e,r,n){return function(i){var a,o=i.a,s=i.b,l=o.x,c=o.y,u=0,f=1,h=s.x-l,p=s.y-c;if(a=t-l,h||!(a&gt;0)){if(a/=h,h&lt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}else if(h&gt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}if(a=r-l,h||!(a&lt;0)){if(a/=h,h&lt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}else if(h&gt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}if(a=e-c,p||!(a&gt;0)){if(a/=p,p&lt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}else if(p&gt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}if(a=n-c,p||!(a&lt;0)){if(a/=p,p&lt;0){if(a&gt;f)return;a&gt;u&amp;&amp;(u=a)}else if(p&gt;0){if(a&lt;u)return;a&lt;f&amp;&amp;(f=a)}return u&gt;0&amp;&amp;(i.a={x:l+u*h,y:c+u*p}),f&lt;1&amp;&amp;(i.b={x:l+f*h,y:c+f*p}),i}}}}}}function nn(e,r,n,i){return function(l){var c,u,f,h,p,d,g,m,v,y,x,b=l,_=Qr(),w=rn(e,r,n,i),T={point:A,lineStart:function(){T.point=S,u&amp;&amp;u.push(f=[]);y=!0,v=!1,g=m=NaN},lineEnd:function(){c&amp;&amp;(S(h,p),d&amp;&amp;v&amp;&amp;_.rejoin(),c.push(_.buffer()));T.point=A,v&amp;&amp;l.lineEnd()},polygonStart:function(){l=_,c=[],u=[],x=!0},polygonEnd:function(){l=b,c=t.merge(c);var r=function(t){for(var e=0,r=u.length,n=t[1],i=0;i&lt;r;++i)for(var a,o=1,s=u[i],l=s.length,c=s[0];o&lt;l;++o)a=s[o],c[1]&lt;=n?a[1]&gt;n&amp;&amp;zt(c,a,t)&gt;0&amp;&amp;++e:a[1]&lt;=n&amp;&amp;zt(c,a,t)&lt;0&amp;&amp;--e,c=a;return 0!==e}([e,i]),n=x&amp;&amp;r,a=c.length;(n||a)&amp;&amp;(l.polygonStart(),n&amp;&amp;(l.lineStart(),k(null,null,1,l),l.lineEnd()),a&amp;&amp;Wr(c,o,r,k,l),l.polygonEnd()),c=u=f=null}};function k(t,o,l,c){var u=0,f=0;if(null==t||(u=a(t,l))!==(f=a(o,l))||s(t,o)&lt;0^l&gt;0)do{c.point(0===u||3===u?e:n,u&gt;1?i:r)}while((u=(u+l+4)%4)!==f);else c.point(o[0],o[1])}function M(t,a){return e&lt;=t&amp;&amp;t&lt;=n&amp;&amp;r&lt;=a&amp;&amp;a&lt;=i}function A(t,e){M(t,e)&amp;&amp;l.point(t,e)}function S(t,e){var r=M(t=Math.max(-1e9,Math.min(1e9,t)),e=Math.max(-1e9,Math.min(1e9,e)));if(u&amp;&amp;f.push([t,e]),y)h=t,p=e,d=r,y=!1,r&amp;&amp;(l.lineStart(),l.point(t,e));else if(r&amp;&amp;v)l.point(t,e);else{var n={a:{x:g,y:m},b:{x:t,y:e}};w(n)?(v||(l.lineStart(),l.point(n.a.x,n.a.y)),l.point(n.b.x,n.b.y),r||l.lineEnd(),x=!1):r&amp;&amp;(l.lineStart(),l.point(t,e),x=!1)}g=t,m=e,v=r}return T};function a(t,i){return y(t[0]-e)&lt;kt?i&gt;0?0:3:y(t[0]-n)&lt;kt?i&gt;0?2:1:y(t[1]-r)&lt;kt?i&gt;0?1:0:i&gt;0?3:2}function o(t,e){return s(t.x,e.x)}function s(t,e){var r=a(t,1),n=a(e,1);return r!==n?r-n:0===r?e[1]-t[1]:1===r?t[0]-e[0]:2===r?t[1]-e[1]:e[0]-t[0]}}function an(t){var e=0,r=At/3,n=Ln(t),i=n(e,r);return i.parallels=function(t){return arguments.length?n(e=t[0]*At/180,r=t[1]*At/180):[e/At*180,r/At*180]},i}function on(t,e){var r=Math.sin(t),n=(r+Math.sin(e))/2,i=1+r*(2*n-r),a=Math.sqrt(i)/n;function o(t,e){var r=Math.sqrt(i-2*n*Math.sin(e))/n;return[r*Math.sin(t*=n),a-r*Math.cos(t)]}return o.invert=function(t,e){var r=a-e;return[Math.atan2(t,r)/n,Dt((i-(t*t+r*r)*n*n)/(2*n))]},o}t.geo.clipExtent=function(){var t,e,r,n,i,a,o={stream:function(t){return i&amp;&amp;(i.valid=!1),(i=a(t)).valid=!0,i},extent:function(s){return arguments.length?(a=nn(t=+s[0][0],e=+s[0][1],r=+s[1][0],n=+s[1][1]),i&amp;&amp;(i.valid=!1,i=null),o):[[t,e],[r,n]]}};return o.extent([[0,0],[960,500]])},(t.geo.conicEqualArea=function(){return an(on)}).raw=on,t.geo.albers=function(){return t.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},t.geo.albersUsa=function(){var e,r,n,i,a=t.geo.albers(),o=t.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s=t.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,r){e=[t,r]}};function c(t){var a=t[0],o=t[1];return e=null,r(a,o),e||(n(a,o),e)||i(a,o),e}return c.invert=function(t){var e=a.scale(),r=a.translate(),n=(t[0]-r[0])/e,i=(t[1]-r[1])/e;return(i&gt;=.12&amp;&amp;i&lt;.234&amp;&amp;n&gt;=-.425&amp;&amp;n&lt;-.214?o:i&gt;=.166&amp;&amp;i&lt;.234&amp;&amp;n&gt;=-.214&amp;&amp;n&lt;-.115?s:a).invert(t)},c.stream=function(t){var e=a.stream(t),r=o.stream(t),n=s.stream(t);return{point:function(t,i){e.point(t,i),r.point(t,i),n.point(t,i)},sphere:function(){e.sphere(),r.sphere(),n.sphere()},lineStart:function(){e.lineStart(),r.lineStart(),n.lineStart()},lineEnd:function(){e.lineEnd(),r.lineEnd(),n.lineEnd()},polygonStart:function(){e.polygonStart(),r.polygonStart(),n.polygonStart()},polygonEnd:function(){e.polygonEnd(),r.polygonEnd(),n.polygonEnd()}}},c.precision=function(t){return arguments.length?(a.precision(t),o.precision(t),s.precision(t),c):a.precision()},c.scale=function(t){return arguments.length?(a.scale(t),o.scale(.35*t),s.scale(t),c.translate(a.translate())):a.scale()},c.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),u=+t[0],f=+t[1];return r=a.translate(t).clipExtent([[u-.455*e,f-.238*e],[u+.455*e,f+.238*e]]).stream(l).point,n=o.translate([u-.307*e,f+.201*e]).clipExtent([[u-.425*e+kt,f+.12*e+kt],[u-.214*e-kt,f+.234*e-kt]]).stream(l).point,i=s.translate([u-.205*e,f+.212*e]).clipExtent([[u-.214*e+kt,f+.166*e+kt],[u-.115*e-kt,f+.234*e-kt]]).stream(l).point,c},c.scale(1070)};var sn,ln,cn,un,fn,hn,pn={point:O,lineStart:O,lineEnd:O,polygonStart:function(){ln=0,pn.lineStart=dn},polygonEnd:function(){pn.lineStart=pn.lineEnd=pn.point=O,sn+=y(ln/2)}};function dn(){var t,e,r,n;function i(t,e){ln+=n*t-r*e,r=t,n=e}pn.point=function(a,o){pn.point=i,t=r=a,e=n=o},pn.lineEnd=function(){i(t,e)}}var gn={point:function(t,e){t&lt;cn&amp;&amp;(cn=t);t&gt;fn&amp;&amp;(fn=t);e&lt;un&amp;&amp;(un=e);e&gt;hn&amp;&amp;(hn=e)},lineStart:O,lineEnd:O,polygonStart:O,polygonEnd:O};function mn(){var t=vn(4.5),e=[],r={point:n,lineStart:function(){r.point=i},lineEnd:o,polygonStart:function(){r.lineEnd=s},polygonEnd:function(){r.lineEnd=o,r.point=n},pointRadius:function(e){return t=vn(e),r},result:function(){if(e.length){var t=e.join(&quot;&quot;);return e=[],t}}};function n(r,n){e.push(&quot;M&quot;,r,&quot;,&quot;,n,t)}function i(t,n){e.push(&quot;M&quot;,t,&quot;,&quot;,n),r.point=a}function a(t,r){e.push(&quot;L&quot;,t,&quot;,&quot;,r)}function o(){r.point=n}function s(){e.push(&quot;Z&quot;)}return r}function vn(t){return&quot;m0,&quot;+t+&quot;a&quot;+t+&quot;,&quot;+t+&quot; 0 1,1 0,&quot;+-2*t+&quot;a&quot;+t+&quot;,&quot;+t+&quot; 0 1,1 0,&quot;+2*t+&quot;z&quot;}var yn,xn={point:bn,lineStart:_n,lineEnd:wn,polygonStart:function(){xn.lineStart=Tn},polygonEnd:function(){xn.point=bn,xn.lineStart=_n,xn.lineEnd=wn}};function bn(t,e){xr+=t,br+=e,++_r}function _n(){var t,e;function r(r,n){var i=r-t,a=n-e,o=Math.sqrt(i*i+a*a);wr+=o*(t+r)/2,Tr+=o*(e+n)/2,kr+=o,bn(t=r,e=n)}xn.point=function(n,i){xn.point=r,bn(t=n,e=i)}}function wn(){xn.point=bn}function Tn(){var t,e,r,n;function i(t,e){var i=t-r,a=e-n,o=Math.sqrt(i*i+a*a);wr+=o*(r+t)/2,Tr+=o*(n+e)/2,kr+=o,Mr+=(o=n*t-r*e)*(r+t),Ar+=o*(n+e),Sr+=3*o,bn(r=t,n=e)}xn.point=function(a,o){xn.point=i,bn(t=r=a,e=n=o)},xn.lineEnd=function(){i(t,e)}}function kn(t){var e=4.5,r={point:n,lineStart:function(){r.point=i},lineEnd:o,polygonStart:function(){r.lineEnd=s},polygonEnd:function(){r.lineEnd=o,r.point=n},pointRadius:function(t){return e=t,r},result:O};function n(r,n){t.moveTo(r+e,n),t.arc(r,n,e,0,St)}function i(e,n){t.moveTo(e,n),r.point=a}function a(e,r){t.lineTo(e,r)}function o(){r.point=n}function s(){t.closePath()}return r}function Mn(t){var e=.5,r=Math.cos(30*Lt),n=16;function i(t){return(n?o:a)(t)}function a(e){return En(e,(function(r,n){r=t(r,n),e.point(r[0],r[1])}))}function o(e){var r,i,a,o,l,c,u,f,h,p,d,g,m={point:v,lineStart:y,lineEnd:b,polygonStart:function(){e.polygonStart(),m.lineStart=_},polygonEnd:function(){e.polygonEnd(),m.lineStart=y}};function v(r,n){r=t(r,n),e.point(r[0],r[1])}function y(){f=NaN,m.point=x,e.lineStart()}function x(r,i){var a=Ir([r,i]),o=t(r,i);s(f,h,u,p,d,g,f=o[0],h=o[1],u=r,p=a[0],d=a[1],g=a[2],n,e),e.point(f,h)}function b(){m.point=v,e.lineEnd()}function _(){y(),m.point=w,m.lineEnd=T}function w(t,e){x(r=t,e),i=f,a=h,o=p,l=d,c=g,m.point=x}function T(){s(f,h,u,p,d,g,i,a,r,o,l,c,n,e),m.lineEnd=b,b()}return m}function s(n,i,a,o,l,c,u,f,h,p,d,g,m,v){var x=u-n,b=f-i,_=x*x+b*b;if(_&gt;4*e&amp;&amp;m--){var w=o+p,T=l+d,k=c+g,M=Math.sqrt(w*w+T*T+k*k),A=Math.asin(k/=M),S=y(y(k)-1)&lt;kt||y(a-h)&lt;kt?(a+h)/2:Math.atan2(T,w),E=t(S,A),C=E[0],L=E[1],I=C-n,P=L-i,z=b*I-x*P;(z*z/_&gt;e||y((x*I+b*P)/_-.5)&gt;.3||o*p+l*d+c*g&lt;r)&amp;&amp;(s(n,i,a,o,l,c,C,L,S,w/=M,T/=M,k,m,v),v.point(C,L),s(C,L,S,w,T,k,u,f,h,p,d,g,m,v))}}return i.precision=function(t){return arguments.length?(n=(e=t*t)&gt;0&amp;&amp;16,i):Math.sqrt(e)},i}function An(t){var e=Mn((function(e,r){return t([e*It,r*It])}));return function(t){return In(e(t))}}function Sn(t){this.stream=t}function En(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function Cn(t){return Ln((function(){return t}))()}function Ln(e){var r,n,i,a,o,s,l=Mn((function(t,e){return[(t=r(t,e))[0]*c+a,o-t[1]*c]})),c=150,u=480,f=250,h=0,p=0,d=0,g=0,m=0,v=tn,y=L,x=null,b=null;function _(t){return[(t=i(t[0]*Lt,t[1]*Lt))[0]*c+a,o-t[1]*c]}function w(t){return(t=i.invert((t[0]-a)/c,(o-t[1])/c))&amp;&amp;[t[0]*It,t[1]*It]}function T(){i=Gr(n=On(d,g,m),r);var t=r(h,p);return a=u-t[0]*c,o=f+t[1]*c,k()}function k(){return s&amp;&amp;(s.valid=!1,s=null),_}return _.stream=function(t){return s&amp;&amp;(s.valid=!1),(s=In(v(n,l(y(t))))).valid=!0,s},_.clipAngle=function(t){return arguments.length?(v=null==t?(x=t,tn):en((x=+t)*Lt),k()):x},_.clipExtent=function(t){return arguments.length?(b=t,y=t?nn(t[0][0],t[0][1],t[1][0],t[1][1]):L,k()):b},_.scale=function(t){return arguments.length?(c=+t,T()):c},_.translate=function(t){return arguments.length?(u=+t[0],f=+t[1],T()):[u,f]},_.center=function(t){return arguments.length?(h=t[0]%360*Lt,p=t[1]%360*Lt,T()):[h*It,p*It]},_.rotate=function(t){return arguments.length?(d=t[0]%360*Lt,g=t[1]%360*Lt,m=t.length&gt;2?t[2]%360*Lt:0,T()):[d*It,g*It,m*It]},t.rebind(_,l,&quot;precision&quot;),function(){return r=e.apply(this,arguments),_.invert=r.invert&amp;&amp;w,T()}}function In(t){return En(t,(function(e,r){t.point(e*Lt,r*Lt)}))}function Pn(t,e){return[t,e]}function zn(t,e){return[t&gt;At?t-St:t&lt;-At?t+St:t,e]}function On(t,e,r){return t?e||r?Gr(Rn(t),Fn(e,r)):Rn(t):e||r?Fn(e,r):zn}function Dn(t){return function(e,r){return[(e+=t)&gt;At?e-St:e&lt;-At?e+St:e,r]}}function Rn(t){var e=Dn(t);return e.invert=Dn(-t),e}function Fn(t,e){var r=Math.cos(t),n=Math.sin(t),i=Math.cos(e),a=Math.sin(e);function o(t,e){var o=Math.cos(e),s=Math.cos(t)*o,l=Math.sin(t)*o,c=Math.sin(e),u=c*r+s*n;return[Math.atan2(l*i-u*a,s*r-c*n),Dt(u*i+l*a)]}return o.invert=function(t,e){var o=Math.cos(e),s=Math.cos(t)*o,l=Math.sin(t)*o,c=Math.sin(e),u=c*i-l*a;return[Math.atan2(l*i+c*a,s*r+u*n),Dt(u*r-s*n)]},o}function Bn(t,e){var r=Math.cos(t),n=Math.sin(t);return function(i,a,o,s){var l=o*e;null!=i?(i=Nn(r,i),a=Nn(r,a),(o&gt;0?i&lt;a:i&gt;a)&amp;&amp;(i+=o*St)):(i=t+o*St,a=t-.5*l);for(var c,u=i;o&gt;0?u&gt;a:u&lt;a;u-=l)s.point((c=Fr([r,-n*Math.cos(u),-n*Math.sin(u)]))[0],c[1])}}function Nn(t,e){var r=Ir(e);r[0]-=t,Rr(r);var n=Ot(-r[1]);return((-r[2]&lt;0?-n:n)+2*Math.PI-kt)%(2*Math.PI)}function jn(e,r,n){var i=t.range(e,r-kt,n).concat(r);return function(t){return i.map((function(e){return[t,e]}))}}function Un(e,r,n){var i=t.range(e,r-kt,n).concat(r);return function(t){return i.map((function(e){return[e,t]}))}}function Vn(t){return t.source}function qn(t){return t.target}t.geo.path=function(){var e,r,n,i,a,o=4.5;function s(e){return e&amp;&amp;(&quot;function&quot;==typeof o&amp;&amp;i.pointRadius(+o.apply(this,arguments)),a&amp;&amp;a.valid||(a=n(i)),t.geo.stream(e,a)),i.result()}function l(){return a=null,s}return s.area=function(e){return sn=0,t.geo.stream(e,n(pn)),sn},s.centroid=function(e){return xr=br=_r=wr=Tr=kr=Mr=Ar=Sr=0,t.geo.stream(e,n(xn)),Sr?[Mr/Sr,Ar/Sr]:kr?[wr/kr,Tr/kr]:_r?[xr/_r,br/_r]:[NaN,NaN]},s.bounds=function(e){return fn=hn=-(cn=un=1/0),t.geo.stream(e,n(gn)),[[cn,un],[fn,hn]]},s.projection=function(t){return arguments.length?(n=(e=t)?t.stream||An(t):L,l()):e},s.context=function(t){return arguments.length?(i=null==(r=t)?new mn:new kn(t),&quot;function&quot;!=typeof o&amp;&amp;i.pointRadius(o),l()):r},s.pointRadius=function(t){return arguments.length?(o=&quot;function&quot;==typeof t?t:(i.pointRadius(+t),+t),s):o},s.projection(t.geo.albersUsa()).context(null)},t.geo.transform=function(t){return{stream:function(e){var r=new Sn(e);for(var n in t)r[n]=t[n];return r}}},Sn.prototype={point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},t.geo.projection=Cn,t.geo.projectionMutator=Ln,(t.geo.equirectangular=function(){return Cn(Pn)}).raw=Pn.invert=Pn,t.geo.rotation=function(t){function e(e){return(e=t(e[0]*Lt,e[1]*Lt))[0]*=It,e[1]*=It,e}return t=On(t[0]%360*Lt,t[1]*Lt,t.length&gt;2?t[2]*Lt:0),e.invert=function(e){return(e=t.invert(e[0]*Lt,e[1]*Lt))[0]*=It,e[1]*=It,e},e},zn.invert=Pn,t.geo.circle=function(){var t,e,r=[0,0],n=6;function i(){var t=&quot;function&quot;==typeof r?r.apply(this,arguments):r,n=On(-t[0]*Lt,-t[1]*Lt,0).invert,i=[];return e(null,null,1,{point:function(t,e){i.push(t=n(t,e)),t[0]*=It,t[1]*=It}}),{type:&quot;Polygon&quot;,coordinates:[i]}}return i.origin=function(t){return arguments.length?(r=t,i):r},i.angle=function(r){return arguments.length?(e=Bn((t=+r)*Lt,n*Lt),i):t},i.precision=function(r){return arguments.length?(e=Bn(t*Lt,(n=+r)*Lt),i):n},i.angle(90)},t.geo.distance=function(t,e){var r,n=(e[0]-t[0])*Lt,i=t[1]*Lt,a=e[1]*Lt,o=Math.sin(n),s=Math.cos(n),l=Math.sin(i),c=Math.cos(i),u=Math.sin(a),f=Math.cos(a);return Math.atan2(Math.sqrt((r=f*o)*r+(r=c*u-l*f*s)*r),l*u+c*f*s)},t.geo.graticule=function(){var e,r,n,i,a,o,s,l,c,u,f,h,p=10,d=p,g=90,m=360,v=2.5;function x(){return{type:&quot;MultiLineString&quot;,coordinates:b()}}function b(){return t.range(Math.ceil(i/g)*g,n,g).map(f).concat(t.range(Math.ceil(l/m)*m,s,m).map(h)).concat(t.range(Math.ceil(r/p)*p,e,p).filter((function(t){return y(t%g)&gt;kt})).map(c)).concat(t.range(Math.ceil(o/d)*d,a,d).filter((function(t){return y(t%m)&gt;kt})).map(u))}return x.lines=function(){return b().map((function(t){return{type:&quot;LineString&quot;,coordinates:t}}))},x.outline=function(){return{type:&quot;Polygon&quot;,coordinates:[f(i).concat(h(s).slice(1),f(n).reverse().slice(1),h(l).reverse().slice(1))]}},x.extent=function(t){return arguments.length?x.majorExtent(t).minorExtent(t):x.minorExtent()},x.majorExtent=function(t){return arguments.length?(i=+t[0][0],n=+t[1][0],l=+t[0][1],s=+t[1][1],i&gt;n&amp;&amp;(t=i,i=n,n=t),l&gt;s&amp;&amp;(t=l,l=s,s=t),x.precision(v)):[[i,l],[n,s]]},x.minorExtent=function(t){return arguments.length?(r=+t[0][0],e=+t[1][0],o=+t[0][1],a=+t[1][1],r&gt;e&amp;&amp;(t=r,r=e,e=t),o&gt;a&amp;&amp;(t=o,o=a,a=t),x.precision(v)):[[r,o],[e,a]]},x.step=function(t){return arguments.length?x.majorStep(t).minorStep(t):x.minorStep()},x.majorStep=function(t){return arguments.length?(g=+t[0],m=+t[1],x):[g,m]},x.minorStep=function(t){return arguments.length?(p=+t[0],d=+t[1],x):[p,d]},x.precision=function(t){return arguments.length?(v=+t,c=jn(o,a,90),u=Un(r,e,v),f=jn(l,s,90),h=Un(i,n,v),x):v},x.majorExtent([[-180,-90+kt],[180,90-kt]]).minorExtent([[-180,-80-kt],[180,80+kt]])},t.geo.greatArc=function(){var e,r,n=Vn,i=qn;function a(){return{type:&quot;LineString&quot;,coordinates:[e||n.apply(this,arguments),r||i.apply(this,arguments)]}}return a.distance=function(){return t.geo.distance(e||n.apply(this,arguments),r||i.apply(this,arguments))},a.source=function(t){return arguments.length?(n=t,e=&quot;function&quot;==typeof t?null:t,a):n},a.target=function(t){return arguments.length?(i=t,r=&quot;function&quot;==typeof t?null:t,a):i},a.precision=function(){return arguments.length?a:0},a},t.geo.interpolate=function(t,e){return r=t[0]*Lt,n=t[1]*Lt,i=e[0]*Lt,a=e[1]*Lt,o=Math.cos(n),s=Math.sin(n),l=Math.cos(a),c=Math.sin(a),u=o*Math.cos(r),f=o*Math.sin(r),h=l*Math.cos(i),p=l*Math.sin(i),d=2*Math.asin(Math.sqrt(Ft(a-n)+o*l*Ft(i-r))),g=1/Math.sin(d),(m=d?function(t){var e=Math.sin(t*=d)*g,r=Math.sin(d-t)*g,n=r*u+e*h,i=r*f+e*p,a=r*s+e*c;return[Math.atan2(i,n)*It,Math.atan2(a,Math.sqrt(n*n+i*i))*It]}:function(){return[r*It,n*It]}).distance=d,m;var r,n,i,a,o,s,l,c,u,f,h,p,d,g,m},t.geo.length=function(e){return yn=0,t.geo.stream(e,Hn),yn};var Hn={sphere:O,point:O,lineStart:function(){var t,e,r;function n(n,i){var a=Math.sin(i*=Lt),o=Math.cos(i),s=y((n*=Lt)-t),l=Math.cos(s);yn+=Math.atan2(Math.sqrt((s=o*Math.sin(s))*s+(s=r*a-e*o*l)*s),e*a+r*o*l),t=n,e=a,r=o}Hn.point=function(i,a){t=i*Lt,e=Math.sin(a*=Lt),r=Math.cos(a),Hn.point=n},Hn.lineEnd=function(){Hn.point=Hn.lineEnd=O}},lineEnd:O,polygonStart:O,polygonEnd:O};function Gn(t,e){function r(e,r){var n=Math.cos(e),i=Math.cos(r),a=t(n*i);return[a*i*Math.sin(e),a*Math.sin(r)]}return r.invert=function(t,r){var n=Math.sqrt(t*t+r*r),i=e(n),a=Math.sin(i),o=Math.cos(i);return[Math.atan2(t*a,n*o),Math.asin(n&amp;&amp;r*a/n)]},r}var Yn=Gn((function(t){return Math.sqrt(2/(1+t))}),(function(t){return 2*Math.asin(t/2)}));(t.geo.azimuthalEqualArea=function(){return Cn(Yn)}).raw=Yn;var Wn=Gn((function(t){var e=Math.acos(t);return e&amp;&amp;e/Math.sin(e)}),L);function Xn(t,e){var r=Math.cos(t),n=function(t){return Math.tan(At/4+t/2)},i=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(n(e)/n(t)),a=r*Math.pow(n(t),i)/i;if(!i)return Kn;function o(t,e){a&gt;0?e&lt;-Ct+kt&amp;&amp;(e=-Ct+kt):e&gt;Ct-kt&amp;&amp;(e=Ct-kt);var r=a/Math.pow(n(e),i);return[r*Math.sin(i*t),a-r*Math.cos(i*t)]}return o.invert=function(t,e){var r=a-e,n=Pt(i)*Math.sqrt(t*t+r*r);return[Math.atan2(t,r)/i,2*Math.atan(Math.pow(a/n,1/i))-Ct]},o}function Zn(t,e){var r=Math.cos(t),n=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),i=r/n+t;if(y(n)&lt;kt)return Pn;function a(t,e){var r=i-e;return[r*Math.sin(n*t),i-r*Math.cos(n*t)]}return a.invert=function(t,e){var r=i-e;return[Math.atan2(t,r)/n,i-Pt(n)*Math.sqrt(t*t+r*r)]},a}(t.geo.azimuthalEquidistant=function(){return Cn(Wn)}).raw=Wn,(t.geo.conicConformal=function(){return an(Xn)}).raw=Xn,(t.geo.conicEquidistant=function(){return an(Zn)}).raw=Zn;var Jn=Gn((function(t){return 1/t}),Math.atan);function Kn(t,e){return[t,Math.log(Math.tan(At/4+e/2))]}function Qn(t){var e,r=Cn(t),n=r.scale,i=r.translate,a=r.clipExtent;return r.scale=function(){var t=n.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.translate=function(){var t=i.apply(r,arguments);return t===r?e?r.clipExtent(null):r:t},r.clipExtent=function(t){var o=a.apply(r,arguments);if(o===r){if(e=null==t){var s=At*n(),l=i();a([[l[0]-s,l[1]-s],[l[0]+s,l[1]+s]])}}else e&amp;&amp;(o=null);return o},r.clipExtent(null)}(t.geo.gnomonic=function(){return Cn(Jn)}).raw=Jn,Kn.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Ct]},(t.geo.mercator=function(){return Qn(Kn)}).raw=Kn;var $n=Gn((function(){return 1}),Math.asin);(t.geo.orthographic=function(){return Cn($n)}).raw=$n;var ti=Gn((function(t){return 1/(1+t)}),(function(t){return 2*Math.atan(t)}));function ei(t,e){return[Math.log(Math.tan(At/4+e/2)),-t]}function ri(t){return t[0]}function ni(t){return t[1]}function ii(t){for(var e=t.length,r=[0,1],n=2,i=2;i&lt;e;i++){for(;n&gt;1&amp;&amp;zt(t[r[n-2]],t[r[n-1]],t[i])&lt;=0;)--n;r[n++]=i}return r.slice(0,n)}function ai(t,e){return t[0]-e[0]||t[1]-e[1]}(t.geo.stereographic=function(){return Cn(ti)}).raw=ti,ei.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Ct]},(t.geo.transverseMercator=function(){var t=Qn(ei),e=t.center,r=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):[(t=e())[1],-t[0]]},t.rotate=function(t){return t?r([t[0],t[1],t.length&gt;2?t[2]+90:90]):[(t=r())[0],t[1],t[2]-90]},r([0,0,90])}).raw=ei,t.geom={},t.geom.hull=function(t){var e=ri,r=ni;if(arguments.length)return n(t);function n(t){if(t.length&lt;3)return[];var n,i=de(e),a=de(r),o=t.length,s=[],l=[];for(n=0;n&lt;o;n++)s.push([+i.call(this,t[n],n),+a.call(this,t[n],n),n]);for(s.sort(ai),n=0;n&lt;o;n++)l.push([s[n][0],-s[n][1]]);var c=ii(s),u=ii(l),f=u[0]===c[0],h=u[u.length-1]===c[c.length-1],p=[];for(n=c.length-1;n&gt;=0;--n)p.push(t[s[c[n]][2]]);for(n=+f;n&lt;u.length-h;++n)p.push(t[s[u[n]][2]]);return p}return n.x=function(t){return arguments.length?(e=t,n):e},n.y=function(t){return arguments.length?(r=t,n):r},n},t.geom.polygon=function(t){return U(t,oi),t};var oi=t.geom.polygon.prototype=[];function si(t,e,r){return(r[0]-e[0])*(t[1]-e[1])&lt;(r[1]-e[1])*(t[0]-e[0])}function li(t,e,r,n){var i=t[0],a=r[0],o=e[0]-i,s=n[0]-a,l=t[1],c=r[1],u=e[1]-l,f=n[1]-c,h=(s*(l-c)-f*(i-a))/(f*o-s*u);return[i+h*o,l+h*u]}function ci(t){var e=t[0],r=t[t.length-1];return!(e[0]-r[0]||e[1]-r[1])}oi.area=function(){for(var t,e=-1,r=this.length,n=this[r-1],i=0;++e&lt;r;)t=n,n=this[e],i+=t[1]*n[0]-t[0]*n[1];return.5*i},oi.centroid=function(t){var e,r,n=-1,i=this.length,a=0,o=0,s=this[i-1];for(arguments.length||(t=-1/(6*this.area()));++n&lt;i;)e=s,s=this[n],r=e[0]*s[1]-s[0]*e[1],a+=(e[0]+s[0])*r,o+=(e[1]+s[1])*r;return[a*t,o*t]},oi.clip=function(t){for(var e,r,n,i,a,o,s=ci(t),l=-1,c=this.length-ci(this),u=this[c-1];++l&lt;c;){for(e=t.slice(),t.length=0,i=this[l],a=e[(n=e.length-s)-1],r=-1;++r&lt;n;)si(o=e[r],u,i)?(si(a,u,i)||t.push(li(a,o,u,i)),t.push(o)):si(a,u,i)&amp;&amp;t.push(li(a,o,u,i)),a=o;s&amp;&amp;t.push(t[0]),u=i}return t};var ui,fi,hi,pi,di,gi=[],mi=[];function vi(){Ri(this),this.edge=this.site=this.circle=null}function yi(t){var e=gi.pop()||new vi;return e.site=t,e}function xi(t){Ei(t),hi.remove(t),gi.push(t),Ri(t)}function bi(t){var e=t.circle,r=e.x,n=e.cy,i={x:r,y:n},a=t.P,o=t.N,s=[t];xi(t);for(var l=a;l.circle&amp;&amp;y(r-l.circle.x)&lt;kt&amp;&amp;y(n-l.circle.cy)&lt;kt;)a=l.P,s.unshift(l),xi(l),l=a;s.unshift(l),Ei(l);for(var c=o;c.circle&amp;&amp;y(r-c.circle.x)&lt;kt&amp;&amp;y(n-c.circle.cy)&lt;kt;)o=c.N,s.push(c),xi(c),c=o;s.push(c),Ei(c);var u,f=s.length;for(u=1;u&lt;f;++u)c=s[u],l=s[u-1],zi(c.edge,l.site,c.site,i);l=s[0],(c=s[f-1]).edge=Ii(l.site,c.site,null,i),Si(l),Si(c)}function _i(t){for(var e,r,n,i,a=t.x,o=t.y,s=hi._;s;)if((n=wi(s,o)-a)&gt;kt)s=s.L;else{if(!((i=a-Ti(s,o))&gt;kt)){n&gt;-kt?(e=s.P,r=s):i&gt;-kt?(e=s,r=s.N):e=r=s;break}if(!s.R){e=s;break}s=s.R}var l=yi(t);if(hi.insert(e,l),e||r){if(e===r)return Ei(e),r=yi(e.site),hi.insert(l,r),l.edge=r.edge=Ii(e.site,l.site),Si(e),void Si(r);if(r){Ei(e),Ei(r);var c=e.site,u=c.x,f=c.y,h=t.x-u,p=t.y-f,d=r.site,g=d.x-u,m=d.y-f,v=2*(h*m-p*g),y=h*h+p*p,x=g*g+m*m,b={x:(m*y-p*x)/v+u,y:(h*x-g*y)/v+f};zi(r.edge,c,d,b),l.edge=Ii(c,t,null,b),r.edge=Ii(t,d,null,b),Si(e),Si(r)}else l.edge=Ii(e.site,l.site)}}function wi(t,e){var r=t.site,n=r.x,i=r.y,a=i-e;if(!a)return n;var o=t.P;if(!o)return-1/0;var s=(r=o.site).x,l=r.y,c=l-e;if(!c)return s;var u=s-n,f=1/a-1/c,h=u/c;return f?(-h+Math.sqrt(h*h-2*f*(u*u/(-2*c)-l+c/2+i-a/2)))/f+n:(n+s)/2}function Ti(t,e){var r=t.N;if(r)return wi(r,e);var n=t.site;return n.y===e?n.x:1/0}function ki(t){this.site=t,this.edges=[]}function Mi(t,e){return e.angle-t.angle}function Ai(){Ri(this),this.x=this.y=this.arc=this.site=this.cy=null}function Si(t){var e=t.P,r=t.N;if(e&amp;&amp;r){var n=e.site,i=t.site,a=r.site;if(n!==a){var o=i.x,s=i.y,l=n.x-o,c=n.y-s,u=a.x-o,f=2*(l*(m=a.y-s)-c*u);if(!(f&gt;=-Mt)){var h=l*l+c*c,p=u*u+m*m,d=(m*h-c*p)/f,g=(l*p-u*h)/f,m=g+s,v=mi.pop()||new Ai;v.arc=t,v.site=i,v.x=d+o,v.y=m+Math.sqrt(d*d+g*g),v.cy=m,t.circle=v;for(var y=null,x=di._;x;)if(v.y&lt;x.y||v.y===x.y&amp;&amp;v.x&lt;=x.x){if(!x.L){y=x.P;break}x=x.L}else{if(!x.R){y=x;break}x=x.R}di.insert(y,v),y||(pi=v)}}}}function Ei(t){var e=t.circle;e&amp;&amp;(e.P||(pi=e.N),di.remove(e),mi.push(e),Ri(e),t.circle=null)}function Ci(t,e){var r=t.b;if(r)return!0;var n,i,a=t.a,o=e[0][0],s=e[1][0],l=e[0][1],c=e[1][1],u=t.l,f=t.r,h=u.x,p=u.y,d=f.x,g=f.y,m=(h+d)/2,v=(p+g)/2;if(g===p){if(m&lt;o||m&gt;=s)return;if(h&gt;d){if(a){if(a.y&gt;=c)return}else a={x:m,y:l};r={x:m,y:c}}else{if(a){if(a.y&lt;l)return}else a={x:m,y:c};r={x:m,y:l}}}else if(i=v-(n=(h-d)/(g-p))*m,n&lt;-1||n&gt;1)if(h&gt;d){if(a){if(a.y&gt;=c)return}else a={x:(l-i)/n,y:l};r={x:(c-i)/n,y:c}}else{if(a){if(a.y&lt;l)return}else a={x:(c-i)/n,y:c};r={x:(l-i)/n,y:l}}else if(p&lt;g){if(a){if(a.x&gt;=s)return}else a={x:o,y:n*o+i};r={x:s,y:n*s+i}}else{if(a){if(a.x&lt;o)return}else a={x:s,y:n*s+i};r={x:o,y:n*o+i}}return t.a=a,t.b=r,!0}function Li(t,e){this.l=t,this.r=e,this.a=this.b=null}function Ii(t,e,r,n){var i=new Li(t,e);return ui.push(i),r&amp;&amp;zi(i,t,e,r),n&amp;&amp;zi(i,e,t,n),fi[t.i].edges.push(new Oi(i,t,e)),fi[e.i].edges.push(new Oi(i,e,t)),i}function Pi(t,e,r){var n=new Li(t,null);return n.a=e,n.b=r,ui.push(n),n}function zi(t,e,r,n){t.a||t.b?t.l===r?t.b=n:t.a=n:(t.a=n,t.l=e,t.r=r)}function Oi(t,e,r){var n=t.a,i=t.b;this.edge=t,this.site=e,this.angle=r?Math.atan2(r.y-e.y,r.x-e.x):t.l===e?Math.atan2(i.x-n.x,n.y-i.y):Math.atan2(n.x-i.x,i.y-n.y)}function Di(){this._=null}function Ri(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function Fi(t,e){var r=e,n=e.R,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.R=n.L,r.R&amp;&amp;(r.R.U=r),n.L=r}function Bi(t,e){var r=e,n=e.L,i=r.U;i?i.L===r?i.L=n:i.R=n:t._=n,n.U=i,r.U=n,r.L=n.R,r.L&amp;&amp;(r.L.U=r),n.R=r}function Ni(t){for(;t.L;)t=t.L;return t}function ji(t,e){var r,n,i,a=t.sort(Ui).pop();for(ui=[],fi=new Array(t.length),hi=new Di,di=new Di;;)if(i=pi,a&amp;&amp;(!i||a.y&lt;i.y||a.y===i.y&amp;&amp;a.x&lt;i.x))a.x===r&amp;&amp;a.y===n||(fi[a.i]=new ki(a),_i(a),r=a.x,n=a.y),a=t.pop();else{if(!i)break;bi(i.arc)}e&amp;&amp;(function(t){for(var e,r=ui,n=rn(t[0][0],t[0][1],t[1][0],t[1][1]),i=r.length;i--;)(!Ci(e=r[i],t)||!n(e)||y(e.a.x-e.b.x)&lt;kt&amp;&amp;y(e.a.y-e.b.y)&lt;kt)&amp;&amp;(e.a=e.b=null,r.splice(i,1))}(e),function(t){for(var e,r,n,i,a,o,s,l,c,u,f=t[0][0],h=t[1][0],p=t[0][1],d=t[1][1],g=fi,m=g.length;m--;)if((a=g[m])&amp;&amp;a.prepare())for(l=(s=a.edges).length,o=0;o&lt;l;)n=(u=s[o].end()).x,i=u.y,e=(c=s[++o%l].start()).x,r=c.y,(y(n-e)&gt;kt||y(i-r)&gt;kt)&amp;&amp;(s.splice(o,0,new Oi(Pi(a.site,u,y(n-f)&lt;kt&amp;&amp;d-i&gt;kt?{x:f,y:y(e-f)&lt;kt?r:d}:y(i-d)&lt;kt&amp;&amp;h-n&gt;kt?{x:y(r-d)&lt;kt?e:h,y:d}:y(n-h)&lt;kt&amp;&amp;i-p&gt;kt?{x:h,y:y(e-h)&lt;kt?r:p}:y(i-p)&lt;kt&amp;&amp;n-f&gt;kt?{x:y(r-p)&lt;kt?e:f,y:p}:null),a.site,null)),++l)}(e));var o={cells:fi,edges:ui};return hi=di=ui=fi=null,o}function Ui(t,e){return e.y-t.y||e.x-t.x}ki.prototype.prepare=function(){for(var t,e=this.edges,r=e.length;r--;)(t=e[r].edge).b&amp;&amp;t.a||e.splice(r,1);return e.sort(Mi),e.length},Oi.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},Di.prototype={insert:function(t,e){var r,n,i;if(t){if(e.P=t,e.N=t.N,t.N&amp;&amp;(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;r=t}else this._?(t=Ni(this._),e.P=null,e.N=t,t.P=t.L=e,r=t):(e.P=e.N=null,this._=e,r=null);for(e.L=e.R=null,e.U=r,e.C=!0,t=e;r&amp;&amp;r.C;)r===(n=r.U).L?(i=n.R)&amp;&amp;i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.R&amp;&amp;(Fi(this,r),r=(t=r).U),r.C=!1,n.C=!0,Bi(this,n)):(i=n.L)&amp;&amp;i.C?(r.C=i.C=!1,n.C=!0,t=n):(t===r.L&amp;&amp;(Bi(this,r),r=(t=r).U),r.C=!1,n.C=!0,Fi(this,n)),r=t.U;this._.C=!1},remove:function(t){t.N&amp;&amp;(t.N.P=t.P),t.P&amp;&amp;(t.P.N=t.N),t.N=t.P=null;var e,r,n,i=t.U,a=t.L,o=t.R;if(r=a?o?Ni(o):a:o,i?i.L===t?i.L=r:i.R=r:this._=r,a&amp;&amp;o?(n=r.C,r.C=t.C,r.L=a,a.U=r,r!==o?(i=r.U,r.U=t.U,t=r.R,i.L=t,r.R=o,o.U=r):(r.U=i,i=r,t=r.R)):(n=t.C,t=r),t&amp;&amp;(t.U=i),!n)if(t&amp;&amp;t.C)t.C=!1;else{do{if(t===this._)break;if(t===i.L){if((e=i.R).C&amp;&amp;(e.C=!1,i.C=!0,Fi(this,i),e=i.R),e.L&amp;&amp;e.L.C||e.R&amp;&amp;e.R.C){e.R&amp;&amp;e.R.C||(e.L.C=!1,e.C=!0,Bi(this,e),e=i.R),e.C=i.C,i.C=e.R.C=!1,Fi(this,i),t=this._;break}}else if((e=i.L).C&amp;&amp;(e.C=!1,i.C=!0,Bi(this,i),e=i.L),e.L&amp;&amp;e.L.C||e.R&amp;&amp;e.R.C){e.L&amp;&amp;e.L.C||(e.R.C=!1,e.C=!0,Fi(this,e),e=i.L),e.C=i.C,i.C=e.L.C=!1,Bi(this,i),t=this._;break}e.C=!0,t=i,i=i.U}while(!t.C);t&amp;&amp;(t.C=!1)}}},t.geom.voronoi=function(t){var e=ri,r=ni,n=e,i=r,a=Vi;if(t)return o(t);function o(t){var e=new Array(t.length),r=a[0][0],n=a[0][1],i=a[1][0],o=a[1][1];return ji(s(t),a).cells.forEach((function(a,s){var l=a.edges,c=a.site;(e[s]=l.length?l.map((function(t){var e=t.start();return[e.x,e.y]})):c.x&gt;=r&amp;&amp;c.x&lt;=i&amp;&amp;c.y&gt;=n&amp;&amp;c.y&lt;=o?[[r,o],[i,o],[i,n],[r,n]]:[]).point=t[s]})),e}function s(t){return t.map((function(t,e){return{x:Math.round(n(t,e)/kt)*kt,y:Math.round(i(t,e)/kt)*kt,i:e}}))}return o.links=function(t){return ji(s(t)).edges.filter((function(t){return t.l&amp;&amp;t.r})).map((function(e){return{source:t[e.l.i],target:t[e.r.i]}}))},o.triangles=function(t){var e=[];return ji(s(t)).cells.forEach((function(r,n){for(var i,a,o,s,l=r.site,c=r.edges.sort(Mi),u=-1,f=c.length,h=c[f-1].edge,p=h.l===l?h.r:h.l;++u&lt;f;)h,i=p,p=(h=c[u].edge).l===l?h.r:h.l,n&lt;i.i&amp;&amp;n&lt;p.i&amp;&amp;(o=i,s=p,((a=l).x-s.x)*(o.y-a.y)-(a.x-o.x)*(s.y-a.y)&lt;0)&amp;&amp;e.push([t[n],t[i.i],t[p.i]])})),e},o.x=function(t){return arguments.length?(n=de(e=t),o):e},o.y=function(t){return arguments.length?(i=de(r=t),o):r},o.clipExtent=function(t){return arguments.length?(a=null==t?Vi:t,o):a===Vi?null:a},o.size=function(t){return arguments.length?o.clipExtent(t&amp;&amp;[[0,0],t]):a===Vi?null:a&amp;&amp;a[1]},o};var Vi=[[-1e6,-1e6],[1e6,1e6]];function qi(t){return t.x}function Hi(t){return t.y}function Gi(t,e,r,n,i,a){if(!t(e,r,n,i,a)){var o=.5*(r+i),s=.5*(n+a),l=e.nodes;l[0]&amp;&amp;Gi(t,l[0],r,n,o,s),l[1]&amp;&amp;Gi(t,l[1],o,n,i,s),l[2]&amp;&amp;Gi(t,l[2],r,s,o,a),l[3]&amp;&amp;Gi(t,l[3],o,s,i,a)}}function Yi(t,e,r,n,i,a,o){var s,l=1/0;return function t(c,u,f,h,p){if(!(u&gt;a||f&gt;o||h&lt;n||p&lt;i)){if(d=c.point){var d,g=e-c.x,m=r-c.y,v=g*g+m*m;if(v&lt;l){var y=Math.sqrt(l=v);n=e-y,i=r-y,a=e+y,o=r+y,s=d}}for(var x=c.nodes,b=.5*(u+h),_=.5*(f+p),w=(r&gt;=_)&lt;&lt;1|e&gt;=b,T=w+4;w&lt;T;++w)if(c=x[3&amp;w])switch(3&amp;w){case 0:t(c,u,f,b,_);break;case 1:t(c,b,f,h,_);break;case 2:t(c,u,_,b,p);break;case 3:t(c,b,_,h,p)}}}(t,n,i,a,o),s}function Wi(e,r){e=t.rgb(e),r=t.rgb(r);var n=e.r,i=e.g,a=e.b,o=r.r-n,s=r.g-i,l=r.b-a;return function(t){return&quot;#&quot;+se(Math.round(n+o*t))+se(Math.round(i+s*t))+se(Math.round(a+l*t))}}function Xi(t,e){var r,n={},i={};for(r in t)r in e?n[r]=$i(t[r],e[r]):i[r]=t[r];for(r in e)r in t||(i[r]=e[r]);return function(t){for(r in n)i[r]=n[r](t);return i}}function Zi(t,e){return t=+t,e=+e,function(r){return t*(1-r)+e*r}}function Ji(t,e){var r,n,i,a=Ki.lastIndex=Qi.lastIndex=0,o=-1,s=[],l=[];for(t+=&quot;&quot;,e+=&quot;&quot;;(r=Ki.exec(t))&amp;&amp;(n=Qi.exec(e));)(i=n.index)&gt;a&amp;&amp;(i=e.slice(a,i),s[o]?s[o]+=i:s[++o]=i),(r=r[0])===(n=n[0])?s[o]?s[o]+=n:s[++o]=n:(s[++o]=null,l.push({i:o,x:Zi(r,n)})),a=Qi.lastIndex;return a&lt;e.length&amp;&amp;(i=e.slice(a),s[o]?s[o]+=i:s[++o]=i),s.length&lt;2?l[0]?(e=l[0].x,function(t){return e(t)+&quot;&quot;}):function(){return e}:(e=l.length,function(t){for(var r,n=0;n&lt;e;++n)s[(r=l[n]).i]=r.x(t);return s.join(&quot;&quot;)})}t.geom.delaunay=function(e){return t.geom.voronoi().triangles(e)},t.geom.quadtree=function(t,e,r,n,i){var a,o=ri,s=ni;if(a=arguments.length)return o=qi,s=Hi,3===a&amp;&amp;(i=r,n=e,r=e=0),l(t);function l(t){var l,c,u,f,h,p,d,g,m,v=de(o),x=de(s);if(null!=e)p=e,d=r,g=n,m=i;else if(g=m=-(p=d=1/0),c=[],u=[],h=t.length,a)for(f=0;f&lt;h;++f)(l=t[f]).x&lt;p&amp;&amp;(p=l.x),l.y&lt;d&amp;&amp;(d=l.y),l.x&gt;g&amp;&amp;(g=l.x),l.y&gt;m&amp;&amp;(m=l.y),c.push(l.x),u.push(l.y);else for(f=0;f&lt;h;++f){var b=+v(l=t[f],f),_=+x(l,f);b&lt;p&amp;&amp;(p=b),_&lt;d&amp;&amp;(d=_),b&gt;g&amp;&amp;(g=b),_&gt;m&amp;&amp;(m=_),c.push(b),u.push(_)}var w=g-p,T=m-d;function k(t,e,r,n,i,a,o,s){if(!isNaN(r)&amp;&amp;!isNaN(n))if(t.leaf){var l=t.x,c=t.y;if(null!=l)if(y(l-r)+y(c-n)&lt;.01)M(t,e,r,n,i,a,o,s);else{var u=t.point;t.x=t.y=t.point=null,M(t,u,l,c,i,a,o,s),M(t,e,r,n,i,a,o,s)}else t.x=r,t.y=n,t.point=e}else M(t,e,r,n,i,a,o,s)}function M(t,e,r,n,i,a,o,s){var l=.5*(i+o),c=.5*(a+s),u=r&gt;=l,f=n&gt;=c,h=f&lt;&lt;1|u;t.leaf=!1,u?i=l:o=l,f?a=c:s=c,k(t=t.nodes[h]||(t.nodes[h]={leaf:!0,nodes:[],point:null,x:null,y:null}),e,r,n,i,a,o,s)}w&gt;T?m=d+w:g=p+T;var A={leaf:!0,nodes:[],point:null,x:null,y:null,add:function(t){k(A,t,+v(t,++f),+x(t,f),p,d,g,m)},visit:function(t){Gi(t,A,p,d,g,m)},find:function(t){return Yi(A,t[0],t[1],p,d,g,m)}};if(f=-1,null==e){for(;++f&lt;h;)k(A,t[f],c[f],u[f],p,d,g,m);--f}else t.forEach(A.add);return c=u=t=l=null,A}return l.x=function(t){return arguments.length?(o=t,l):o},l.y=function(t){return arguments.length?(s=t,l):s},l.extent=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=+t[0][0],r=+t[0][1],n=+t[1][0],i=+t[1][1]),l):null==e?null:[[e,r],[n,i]]},l.size=function(t){return arguments.length?(null==t?e=r=n=i=null:(e=r=0,n=+t[0],i=+t[1]),l):null==e?null:[n-e,i-r]},l},t.interpolateRgb=Wi,t.interpolateObject=Xi,t.interpolateNumber=Zi,t.interpolateString=Ji;var Ki=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Qi=new RegExp(Ki.source,&quot;g&quot;);function $i(e,r){for(var n,i=t.interpolators.length;--i&gt;=0&amp;&amp;!(n=t.interpolators[i](e,r)););return n}function ta(t,e){var r,n=[],i=[],a=t.length,o=e.length,s=Math.min(t.length,e.length);for(r=0;r&lt;s;++r)n.push($i(t[r],e[r]));for(;r&lt;a;++r)i[r]=t[r];for(;r&lt;o;++r)i[r]=e[r];return function(t){for(r=0;r&lt;s;++r)i[r]=n[r](t);return i}}t.interpolate=$i,t.interpolators=[function(t,e){var r=typeof e;return(&quot;string&quot;===r?pe.has(e.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(e)?Wi:Ji:e instanceof Vt?Wi:Array.isArray(e)?ta:&quot;object&quot;===r&amp;&amp;isNaN(e)?Xi:Zi)(t,e)}],t.interpolateArray=ta;var ea=function(){return L},ra=t.map({linear:ea,poly:function(t){return function(e){return Math.pow(e,t)}},quad:function(){return sa},cubic:function(){return la},sin:function(){return ua},exp:function(){return fa},circle:function(){return ha},elastic:function(t,e){var r;arguments.length&lt;2&amp;&amp;(e=.45);arguments.length?r=e/St*Math.asin(1/t):(t=1,r=e/4);return function(n){return 1+t*Math.pow(2,-10*n)*Math.sin((n-r)*St/e)}},back:function(t){t||(t=1.70158);return function(e){return e*e*((t+1)*e-t)}},bounce:function(){return pa}}),na=t.map({in:L,out:aa,&quot;in-out&quot;:oa,&quot;out-in&quot;:function(t){return oa(aa(t))}});function ia(t){return function(e){return e&lt;=0?0:e&gt;=1?1:t(e)}}function aa(t){return function(e){return 1-t(1-e)}}function oa(t){return function(e){return.5*(e&lt;.5?t(2*e):2-t(2-2*e))}}function sa(t){return t*t}function la(t){return t*t*t}function ca(t){if(t&lt;=0)return 0;if(t&gt;=1)return 1;var e=t*t,r=e*t;return 4*(t&lt;.5?r:3*(t-e)+r-.75)}function ua(t){return 1-Math.cos(t*Ct)}function fa(t){return Math.pow(2,10*(t-1))}function ha(t){return 1-Math.sqrt(1-t*t)}function pa(t){return t&lt;1/2.75?7.5625*t*t:t&lt;2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t&lt;2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function da(t,e){return e-=t,function(r){return Math.round(t+e*r)}}function ga(t){var e,r,n,i=[t.a,t.b],a=[t.c,t.d],o=va(i),s=ma(i,a),l=va(((e=a)[0]+=(n=-s)*(r=i)[0],e[1]+=n*r[1],e))||0;i[0]*a[1]&lt;a[0]*i[1]&amp;&amp;(i[0]*=-1,i[1]*=-1,o*=-1,s*=-1),this.rotate=(o?Math.atan2(i[1],i[0]):Math.atan2(-a[0],a[1]))*It,this.translate=[t.e,t.f],this.scale=[o,l],this.skew=l?Math.atan2(s,l)*It:0}function ma(t,e){return t[0]*e[0]+t[1]*e[1]}function va(t){var e=Math.sqrt(ma(t,t));return e&amp;&amp;(t[0]/=e,t[1]/=e),e}t.ease=function(t){var e=t.indexOf(&quot;-&quot;),n=e&gt;=0?t.slice(0,e):t,i=e&gt;=0?t.slice(e+1):&quot;in&quot;;return n=ra.get(n)||ea,ia((i=na.get(i)||L)(n.apply(null,r.call(arguments,1))))},t.interpolateHcl=function(e,r){e=t.hcl(e),r=t.hcl(r);var n=e.h,i=e.c,a=e.l,o=r.h-n,s=r.c-i,l=r.l-a;isNaN(s)&amp;&amp;(s=0,i=isNaN(i)?r.c:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o&gt;180?o-=360:o&lt;-180&amp;&amp;(o+=360);return function(t){return Xt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateHsl=function(e,r){e=t.hsl(e),r=t.hsl(r);var n=e.h,i=e.s,a=e.l,o=r.h-n,s=r.s-i,l=r.l-a;isNaN(s)&amp;&amp;(s=0,i=isNaN(i)?r.s:i);isNaN(o)?(o=0,n=isNaN(n)?r.h:n):o&gt;180?o-=360:o&lt;-180&amp;&amp;(o+=360);return function(t){return Gt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateLab=function(e,r){e=t.lab(e),r=t.lab(r);var n=e.l,i=e.a,a=e.b,o=r.l-n,s=r.a-i,l=r.b-a;return function(t){return Qt(n+o*t,i+s*t,a+l*t)+&quot;&quot;}},t.interpolateRound=da,t.transform=function(e){var r=i.createElementNS(t.ns.prefix.svg,&quot;g&quot;);return(t.transform=function(t){if(null!=t){r.setAttribute(&quot;transform&quot;,t);var e=r.transform.baseVal.consolidate()}return new ga(e?e.matrix:ya)})(e)},ga.prototype.toString=function(){return&quot;translate(&quot;+this.translate+&quot;)rotate(&quot;+this.rotate+&quot;)skewX(&quot;+this.skew+&quot;)scale(&quot;+this.scale+&quot;)&quot;};var ya={a:1,b:0,c:0,d:1,e:0,f:0};function xa(t){return t.length?t.pop()+&quot;,&quot;:&quot;&quot;}function ba(e,r){var n=[],i=[];return e=t.transform(e),r=t.transform(r),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(&quot;translate(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);n.push({i:i-4,x:Zi(t[0],e[0])},{i:i-2,x:Zi(t[1],e[1])})}else(e[0]||e[1])&amp;&amp;r.push(&quot;translate(&quot;+e+&quot;)&quot;)}(e.translate,r.translate,n,i),function(t,e,r,n){t!==e?(t-e&gt;180?e+=360:e-t&gt;180&amp;&amp;(t+=360),n.push({i:r.push(xa(r)+&quot;rotate(&quot;,null,&quot;)&quot;)-2,x:Zi(t,e)})):e&amp;&amp;r.push(xa(r)+&quot;rotate(&quot;+e+&quot;)&quot;)}(e.rotate,r.rotate,n,i),function(t,e,r,n){t!==e?n.push({i:r.push(xa(r)+&quot;skewX(&quot;,null,&quot;)&quot;)-2,x:Zi(t,e)}):e&amp;&amp;r.push(xa(r)+&quot;skewX(&quot;+e+&quot;)&quot;)}(e.skew,r.skew,n,i),function(t,e,r,n){if(t[0]!==e[0]||t[1]!==e[1]){var i=r.push(xa(r)+&quot;scale(&quot;,null,&quot;,&quot;,null,&quot;)&quot;);n.push({i:i-4,x:Zi(t[0],e[0])},{i:i-2,x:Zi(t[1],e[1])})}else 1===e[0]&amp;&amp;1===e[1]||r.push(xa(r)+&quot;scale(&quot;+e+&quot;)&quot;)}(e.scale,r.scale,n,i),e=r=null,function(t){for(var e,r=-1,a=i.length;++r&lt;a;)n[(e=i[r]).i]=e.x(t);return n.join(&quot;&quot;)}}function _a(t,e){return e=(e-=t=+t)||1/e,function(r){return(r-t)/e}}function wa(t,e){return e=(e-=t=+t)||1/e,function(r){return Math.max(0,Math.min(1,(r-t)/e))}}function Ta(t){for(var e=t.source,r=t.target,n=function(t,e){if(t===e)return t;var r=ka(t),n=ka(e),i=r.pop(),a=n.pop(),o=null;for(;i===a;)o=i,i=r.pop(),a=n.pop();return o}(e,r),i=[e];e!==n;)e=e.parent,i.push(e);for(var a=i.length;r!==n;)i.splice(a,0,r),r=r.parent;return i}function ka(t){for(var e=[],r=t.parent;null!=r;)e.push(t),t=r,r=r.parent;return e.push(t),e}function Ma(t){t.fixed|=2}function Aa(t){t.fixed&amp;=-7}function Sa(t){t.fixed|=4,t.px=t.x,t.py=t.y}function Ea(t){t.fixed&amp;=-5}t.interpolateTransform=ba,t.layout={},t.layout.bundle=function(){return function(t){for(var e=[],r=-1,n=t.length;++r&lt;n;)e.push(Ta(t[r]));return e}},t.layout.chord=function(){var e,r,n,i,a,o,s,l={},c=0;function u(){var l,u,h,p,d,g={},m=[],v=t.range(i),y=[];for(e=[],r=[],l=0,p=-1;++p&lt;i;){for(u=0,d=-1;++d&lt;i;)u+=n[p][d];m.push(u),y.push(t.range(i)),l+=u}for(a&amp;&amp;v.sort((function(t,e){return a(m[t],m[e])})),o&amp;&amp;y.forEach((function(t,e){t.sort((function(t,r){return o(n[e][t],n[e][r])}))})),l=(St-c*i)/l,u=0,p=-1;++p&lt;i;){for(h=u,d=-1;++d&lt;i;){var x=v[p],b=y[x][d],_=n[x][b],w=u,T=u+=_*l;g[x+&quot;-&quot;+b]={index:x,subindex:b,startAngle:w,endAngle:T,value:_}}r[x]={index:x,startAngle:h,endAngle:u,value:m[x]},u+=c}for(p=-1;++p&lt;i;)for(d=p-1;++d&lt;i;){var k=g[p+&quot;-&quot;+d],M=g[d+&quot;-&quot;+p];(k.value||M.value)&amp;&amp;e.push(k.value&lt;M.value?{source:M,target:k}:{source:k,target:M})}s&amp;&amp;f()}function f(){e.sort((function(t,e){return s((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)}))}return l.matrix=function(t){return arguments.length?(i=(n=t)&amp;&amp;n.length,e=r=null,l):n},l.padding=function(t){return arguments.length?(c=t,e=r=null,l):c},l.sortGroups=function(t){return arguments.length?(a=t,e=r=null,l):a},l.sortSubgroups=function(t){return arguments.length?(o=t,e=null,l):o},l.sortChords=function(t){return arguments.length?(s=t,e&amp;&amp;f(),l):s},l.chords=function(){return e||u(),e},l.groups=function(){return r||u(),r},l},t.layout.force=function(){var e,r,n,i,a,o,s={},l=t.dispatch(&quot;start&quot;,&quot;tick&quot;,&quot;end&quot;),c=[1,1],u=.9,f=Ca,h=La,p=-30,d=Ia,g=.1,m=.64,v=[],y=[];function x(t){return function(e,r,n,i){if(e.point!==t){var a=e.cx-t.x,o=e.cy-t.y,s=i-r,l=a*a+o*o;if(s*s/m&lt;l){if(l&lt;d){var c=e.charge/l;t.px-=a*c,t.py-=o*c}return!0}if(e.point&amp;&amp;l&amp;&amp;l&lt;d){c=e.pointCharge/l;t.px-=a*c,t.py-=o*c}}return!e.charge}}function b(e){e.px=t.event.x,e.py=t.event.y,s.resume()}return s.tick=function(){if((n*=.99)&lt;.005)return e=null,l.end({type:&quot;end&quot;,alpha:n=0}),!0;var r,s,f,h,d,m,b,_,w,T=v.length,k=y.length;for(s=0;s&lt;k;++s)h=(f=y[s]).source,(m=(_=(d=f.target).x-h.x)*_+(w=d.y-h.y)*w)&amp;&amp;(_*=m=n*a[s]*((m=Math.sqrt(m))-i[s])/m,w*=m,d.x-=_*(b=h.weight+d.weight?h.weight/(h.weight+d.weight):.5),d.y-=w*b,h.x+=_*(b=1-b),h.y+=w*b);if((b=n*g)&amp;&amp;(_=c[0]/2,w=c[1]/2,s=-1,b))for(;++s&lt;T;)(f=v[s]).x+=(_-f.x)*b,f.y+=(w-f.y)*b;if(p)for(!function t(e,r,n){var i=0,a=0;if(e.charge=0,!e.leaf)for(var o,s=e.nodes,l=s.length,c=-1;++c&lt;l;)null!=(o=s[c])&amp;&amp;(t(o,r,n),e.charge+=o.charge,i+=o.charge*o.cx,a+=o.charge*o.cy);if(e.point){e.leaf||(e.point.x+=Math.random()-.5,e.point.y+=Math.random()-.5);var u=r*n[e.point.index];e.charge+=e.pointCharge=u,i+=u*e.point.x,a+=u*e.point.y}e.cx=i/e.charge,e.cy=a/e.charge}(r=t.geom.quadtree(v),n,o),s=-1;++s&lt;T;)(f=v[s]).fixed||r.visit(x(f));for(s=-1;++s&lt;T;)(f=v[s]).fixed?(f.x=f.px,f.y=f.py):(f.x-=(f.px-(f.px=f.x))*u,f.y-=(f.py-(f.py=f.y))*u);l.tick({type:&quot;tick&quot;,alpha:n})},s.nodes=function(t){return arguments.length?(v=t,s):v},s.links=function(t){return arguments.length?(y=t,s):y},s.size=function(t){return arguments.length?(c=t,s):c},s.linkDistance=function(t){return arguments.length?(f=&quot;function&quot;==typeof t?t:+t,s):f},s.distance=s.linkDistance,s.linkStrength=function(t){return arguments.length?(h=&quot;function&quot;==typeof t?t:+t,s):h},s.friction=function(t){return arguments.length?(u=+t,s):u},s.charge=function(t){return arguments.length?(p=&quot;function&quot;==typeof t?t:+t,s):p},s.chargeDistance=function(t){return arguments.length?(d=t*t,s):Math.sqrt(d)},s.gravity=function(t){return arguments.length?(g=+t,s):g},s.theta=function(t){return arguments.length?(m=t*t,s):Math.sqrt(m)},s.alpha=function(t){return arguments.length?(t=+t,n?t&gt;0?n=t:(e.c=null,e.t=NaN,e=null,l.end({type:&quot;end&quot;,alpha:n=0})):t&gt;0&amp;&amp;(l.start({type:&quot;start&quot;,alpha:n=t}),e=we(s.tick)),s):n},s.start=function(){var t,e,r,n=v.length,l=y.length,u=c[0],d=c[1];for(t=0;t&lt;n;++t)(r=v[t]).index=t,r.weight=0;for(t=0;t&lt;l;++t)&quot;number&quot;==typeof(r=y[t]).source&amp;&amp;(r.source=v[r.source]),&quot;number&quot;==typeof r.target&amp;&amp;(r.target=v[r.target]),++r.source.weight,++r.target.weight;for(t=0;t&lt;n;++t)r=v[t],isNaN(r.x)&amp;&amp;(r.x=g(&quot;x&quot;,u)),isNaN(r.y)&amp;&amp;(r.y=g(&quot;y&quot;,d)),isNaN(r.px)&amp;&amp;(r.px=r.x),isNaN(r.py)&amp;&amp;(r.py=r.y);if(i=[],&quot;function&quot;==typeof f)for(t=0;t&lt;l;++t)i[t]=+f.call(this,y[t],t);else for(t=0;t&lt;l;++t)i[t]=f;if(a=[],&quot;function&quot;==typeof h)for(t=0;t&lt;l;++t)a[t]=+h.call(this,y[t],t);else for(t=0;t&lt;l;++t)a[t]=h;if(o=[],&quot;function&quot;==typeof p)for(t=0;t&lt;n;++t)o[t]=+p.call(this,v[t],t);else for(t=0;t&lt;n;++t)o[t]=p;function g(r,i){if(!e){for(e=new Array(n),c=0;c&lt;n;++c)e[c]=[];for(c=0;c&lt;l;++c){var a=y[c];e[a.source.index].push(a.target),e[a.target.index].push(a.source)}}for(var o,s=e[t],c=-1,u=s.length;++c&lt;u;)if(!isNaN(o=s[c][r]))return o;return Math.random()*i}return s.resume()},s.resume=function(){return s.alpha(.1)},s.stop=function(){return s.alpha(0)},s.drag=function(){if(r||(r=t.behavior.drag().origin(L).on(&quot;dragstart.force&quot;,Ma).on(&quot;drag.force&quot;,b).on(&quot;dragend.force&quot;,Aa)),!arguments.length)return r;this.on(&quot;mouseover.force&quot;,Sa).on(&quot;mouseout.force&quot;,Ea).call(r)},t.rebind(s,l,&quot;on&quot;)};var Ca=20,La=1,Ia=1/0;function Pa(e,r){return t.rebind(e,r,&quot;sort&quot;,&quot;children&quot;,&quot;value&quot;),e.nodes=e,e.links=Ba,e}function za(t,e){for(var r=[t];null!=(t=r.pop());)if(e(t),(i=t.children)&amp;&amp;(n=i.length))for(var n,i;--n&gt;=0;)r.push(i[n])}function Oa(t,e){for(var r=[t],n=[];null!=(t=r.pop());)if(n.push(t),(a=t.children)&amp;&amp;(i=a.length))for(var i,a,o=-1;++o&lt;i;)r.push(a[o]);for(;null!=(t=n.pop());)e(t)}function Da(t){return t.children}function Ra(t){return t.value}function Fa(t,e){return e.value-t.value}function Ba(e){return t.merge(e.map((function(t){return(t.children||[]).map((function(e){return{source:t,target:e}}))})))}t.layout.hierarchy=function(){var t=Fa,e=Da,r=Ra;function n(i){var a,o=[i],s=[];for(i.depth=0;null!=(a=o.pop());)if(s.push(a),(c=e.call(n,a,a.depth))&amp;&amp;(l=c.length)){for(var l,c,u;--l&gt;=0;)o.push(u=c[l]),u.parent=a,u.depth=a.depth+1;r&amp;&amp;(a.value=0),a.children=c}else r&amp;&amp;(a.value=+r.call(n,a,a.depth)||0),delete a.children;return Oa(i,(function(e){var n,i;t&amp;&amp;(n=e.children)&amp;&amp;n.sort(t),r&amp;&amp;(i=e.parent)&amp;&amp;(i.value+=e.value)})),s}return n.sort=function(e){return arguments.length?(t=e,n):t},n.children=function(t){return arguments.length?(e=t,n):e},n.value=function(t){return arguments.length?(r=t,n):r},n.revalue=function(t){return r&amp;&amp;(za(t,(function(t){t.children&amp;&amp;(t.value=0)})),Oa(t,(function(t){var e;t.children||(t.value=+r.call(n,t,t.depth)||0),(e=t.parent)&amp;&amp;(e.value+=t.value)}))),t},n},t.layout.partition=function(){var e=t.layout.hierarchy(),r=[1,1];function n(t,n){var i=e.call(this,t,n);return function t(e,r,n,i){var a=e.children;if(e.x=r,e.y=e.depth*i,e.dx=n,e.dy=i,a&amp;&amp;(o=a.length)){var o,s,l,c=-1;for(n=e.value?n/e.value:0;++c&lt;o;)t(s=a[c],r,l=s.value*n,i),r+=l}}(i[0],0,r[0],r[1]/function t(e){var r=e.children,n=0;if(r&amp;&amp;(i=r.length))for(var i,a=-1;++a&lt;i;)n=Math.max(n,t(r[a]));return 1+n}(i[0])),i}return n.size=function(t){return arguments.length?(r=t,n):r},Pa(n,e)},t.layout.pie=function(){var e=Number,r=Na,n=0,i=St,a=0;function o(s){var l,c=s.length,u=s.map((function(t,r){return+e.call(o,t,r)})),f=+(&quot;function&quot;==typeof n?n.apply(this,arguments):n),h=(&quot;function&quot;==typeof i?i.apply(this,arguments):i)-f,p=Math.min(Math.abs(h)/c,+(&quot;function&quot;==typeof a?a.apply(this,arguments):a)),d=p*(h&lt;0?-1:1),g=t.sum(u),m=g?(h-c*d)/g:0,v=t.range(c),y=[];return null!=r&amp;&amp;v.sort(r===Na?function(t,e){return u[e]-u[t]}:function(t,e){return r(s[t],s[e])}),v.forEach((function(t){y[t]={data:s[t],value:l=u[t],startAngle:f,endAngle:f+=l*m+d,padAngle:p}})),y}return o.value=function(t){return arguments.length?(e=t,o):e},o.sort=function(t){return arguments.length?(r=t,o):r},o.startAngle=function(t){return arguments.length?(n=t,o):n},o.endAngle=function(t){return arguments.length?(i=t,o):i},o.padAngle=function(t){return arguments.length?(a=t,o):a},o};var Na={};function ja(t){return t.x}function Ua(t){return t.y}function Va(t,e,r){t.y0=e,t.y=r}t.layout.stack=function(){var e=L,r=Ga,n=Ya,i=Va,a=ja,o=Ua;function s(l,c){if(!(p=l.length))return l;var u=l.map((function(t,r){return e.call(s,t,r)})),f=u.map((function(t){return t.map((function(t,e){return[a.call(s,t,e),o.call(s,t,e)]}))})),h=r.call(s,f,c);u=t.permute(u,h),f=t.permute(f,h);var p,d,g,m,v=n.call(s,f,c),y=u[0].length;for(g=0;g&lt;y;++g)for(i.call(s,u[0][g],m=v[g],f[0][g][1]),d=1;d&lt;p;++d)i.call(s,u[d][g],m+=f[d-1][g][1],f[d][g][1]);return l}return s.values=function(t){return arguments.length?(e=t,s):e},s.order=function(t){return arguments.length?(r=&quot;function&quot;==typeof t?t:qa.get(t)||Ga,s):r},s.offset=function(t){return arguments.length?(n=&quot;function&quot;==typeof t?t:Ha.get(t)||Ya,s):n},s.x=function(t){return arguments.length?(a=t,s):a},s.y=function(t){return arguments.length?(o=t,s):o},s.out=function(t){return arguments.length?(i=t,s):i},s};var qa=t.map({&quot;inside-out&quot;:function(e){var r,n,i=e.length,a=e.map(Wa),o=e.map(Xa),s=t.range(i).sort((function(t,e){return a[t]-a[e]})),l=0,c=0,u=[],f=[];for(r=0;r&lt;i;++r)n=s[r],l&lt;c?(l+=o[n],u.push(n)):(c+=o[n],f.push(n));return f.reverse().concat(u)},reverse:function(e){return t.range(e.length).reverse()},default:Ga}),Ha=t.map({silhouette:function(t){var e,r,n,i=t.length,a=t[0].length,o=[],s=0,l=[];for(r=0;r&lt;a;++r){for(e=0,n=0;e&lt;i;e++)n+=t[e][r][1];n&gt;s&amp;&amp;(s=n),o.push(n)}for(r=0;r&lt;a;++r)l[r]=(s-o[r])/2;return l},wiggle:function(t){var e,r,n,i,a,o,s,l,c,u=t.length,f=t[0],h=f.length,p=[];for(p[0]=l=c=0,r=1;r&lt;h;++r){for(e=0,i=0;e&lt;u;++e)i+=t[e][r][1];for(e=0,a=0,s=f[r][0]-f[r-1][0];e&lt;u;++e){for(n=0,o=(t[e][r][1]-t[e][r-1][1])/(2*s);n&lt;e;++n)o+=(t[n][r][1]-t[n][r-1][1])/s;a+=o*t[e][r][1]}p[r]=l-=i?a/i*s:0,l&lt;c&amp;&amp;(c=l)}for(r=0;r&lt;h;++r)p[r]-=c;return p},expand:function(t){var e,r,n,i=t.length,a=t[0].length,o=1/i,s=[];for(r=0;r&lt;a;++r){for(e=0,n=0;e&lt;i;e++)n+=t[e][r][1];if(n)for(e=0;e&lt;i;e++)t[e][r][1]/=n;else for(e=0;e&lt;i;e++)t[e][r][1]=o}for(r=0;r&lt;a;++r)s[r]=0;return s},zero:Ya});function Ga(e){return t.range(e.length)}function Ya(t){for(var e=-1,r=t[0].length,n=[];++e&lt;r;)n[e]=0;return n}function Wa(t){for(var e,r=1,n=0,i=t[0][1],a=t.length;r&lt;a;++r)(e=t[r][1])&gt;i&amp;&amp;(n=r,i=e);return n}function Xa(t){return t.reduce(Za,0)}function Za(t,e){return t+e[1]}function Ja(t,e){return Ka(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function Ka(t,e){for(var r=-1,n=+t[0],i=(t[1]-n)/e,a=[];++r&lt;=e;)a[r]=i*r+n;return a}function Qa(e){return[t.min(e),t.max(e)]}function $a(t,e){return t.value-e.value}function to(t,e){var r=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=r,r._pack_prev=e}function eo(t,e){t._pack_next=e,e._pack_prev=t}function ro(t,e){var r=e.x-t.x,n=e.y-t.y,i=t.r+e.r;return.999*i*i&gt;r*r+n*n}function no(t){if((e=t.children)&amp;&amp;(l=e.length)){var e,r,n,i,a,o,s,l,c=1/0,u=-1/0,f=1/0,h=-1/0;if(e.forEach(io),(r=e[0]).x=-r.r,r.y=0,x(r),l&gt;1&amp;&amp;((n=e[1]).x=n.r,n.y=0,x(n),l&gt;2))for(oo(r,n,i=e[2]),x(i),to(r,i),r._pack_prev=i,to(i,n),n=r._pack_next,a=3;a&lt;l;a++){oo(r,n,i=e[a]);var p=0,d=1,g=1;for(o=n._pack_next;o!==n;o=o._pack_next,d++)if(ro(o,i)){p=1;break}if(1==p)for(s=r._pack_prev;s!==o._pack_prev&amp;&amp;!ro(s,i);s=s._pack_prev,g++);p?(d&lt;g||d==g&amp;&amp;n.r&lt;r.r?eo(r,n=o):eo(r=s,n),a--):(to(r,i),n=i,x(i))}var m=(c+u)/2,v=(f+h)/2,y=0;for(a=0;a&lt;l;a++)(i=e[a]).x-=m,i.y-=v,y=Math.max(y,i.r+Math.sqrt(i.x*i.x+i.y*i.y));t.r=y,e.forEach(ao)}function x(t){c=Math.min(t.x-t.r,c),u=Math.max(t.x+t.r,u),f=Math.min(t.y-t.r,f),h=Math.max(t.y+t.r,h)}}function io(t){t._pack_next=t._pack_prev=t}function ao(t){delete t._pack_next,delete t._pack_prev}function oo(t,e,r){var n=t.r+r.r,i=e.x-t.x,a=e.y-t.y;if(n&amp;&amp;(i||a)){var o=e.r+r.r,s=i*i+a*a,l=.5+((n*=n)-(o*=o))/(2*s),c=Math.sqrt(Math.max(0,2*o*(n+s)-(n-=s)*n-o*o))/(2*s);r.x=t.x+l*i+c*a,r.y=t.y+l*a-c*i}else r.x=t.x+n,r.y=t.y}function so(t,e){return t.parent==e.parent?1:2}function lo(t){var e=t.children;return e.length?e[0]:t.t}function co(t){var e,r=t.children;return(e=r.length)?r[e-1]:t.t}function uo(t,e,r){var n=r/(e.i-t.i);e.c-=n,e.s+=r,t.c+=n,e.z+=r,e.m+=r}function fo(t,e,r){return t.a.parent===e.parent?t.a:r}function ho(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function po(t,e){var r=t.x+e[3],n=t.y+e[0],i=t.dx-e[1]-e[3],a=t.dy-e[0]-e[2];return i&lt;0&amp;&amp;(r+=i/2,i=0),a&lt;0&amp;&amp;(n+=a/2,a=0),{x:r,y:n,dx:i,dy:a}}function go(t){var e=t[0],r=t[t.length-1];return e&lt;r?[e,r]:[r,e]}function mo(t){return t.rangeExtent?t.rangeExtent():go(t.range())}function vo(t,e,r,n){var i=r(t[0],t[1]),a=n(e[0],e[1]);return function(t){return a(i(t))}}function yo(t,e){var r,n=0,i=t.length-1,a=t[n],o=t[i];return o&lt;a&amp;&amp;(r=n,n=i,i=r,r=a,a=o,o=r),t[n]=e.floor(a),t[i]=e.ceil(o),t}function xo(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:bo}t.layout.histogram=function(){var e=!0,r=Number,n=Qa,i=Ja;function a(a,o){for(var s,l,c=[],u=a.map(r,this),f=n.call(this,u,o),h=i.call(this,f,u,o),p=(o=-1,u.length),d=h.length-1,g=e?1:1/p;++o&lt;d;)(s=c[o]=[]).dx=h[o+1]-(s.x=h[o]),s.y=0;if(d&gt;0)for(o=-1;++o&lt;p;)(l=u[o])&gt;=f[0]&amp;&amp;l&lt;=f[1]&amp;&amp;((s=c[t.bisect(h,l,1,d)-1]).y+=g,s.push(a[o]));return c}return a.value=function(t){return arguments.length?(r=t,a):r},a.range=function(t){return arguments.length?(n=de(t),a):n},a.bins=function(t){return arguments.length?(i=&quot;number&quot;==typeof t?function(e){return Ka(e,t)}:de(t),a):i},a.frequency=function(t){return arguments.length?(e=!!t,a):e},a},t.layout.pack=function(){var e,r=t.layout.hierarchy().sort($a),n=0,i=[1,1];function a(t,a){var o=r.call(this,t,a),s=o[0],l=i[0],c=i[1],u=null==e?Math.sqrt:&quot;function&quot;==typeof e?e:function(){return e};if(s.x=s.y=0,Oa(s,(function(t){t.r=+u(t.value)})),Oa(s,no),n){var f=n*(e?1:Math.max(2*s.r/l,2*s.r/c))/2;Oa(s,(function(t){t.r+=f})),Oa(s,no),Oa(s,(function(t){t.r-=f}))}return function t(e,r,n,i){var a=e.children;if(e.x=r+=i*e.x,e.y=n+=i*e.y,e.r*=i,a)for(var o=-1,s=a.length;++o&lt;s;)t(a[o],r,n,i)}(s,l/2,c/2,e?1:1/Math.max(2*s.r/l,2*s.r/c)),o}return a.size=function(t){return arguments.length?(i=t,a):i},a.radius=function(t){return arguments.length?(e=null==t||&quot;function&quot;==typeof t?t:+t,a):e},a.padding=function(t){return arguments.length?(n=+t,a):n},Pa(a,r)},t.layout.tree=function(){var e=t.layout.hierarchy().sort(null).value(null),r=so,n=[1,1],i=null;function a(t,a){var c=e.call(this,t,a),u=c[0],f=function(t){var e,r={A:null,children:[t]},n=[r];for(;null!=(e=n.pop());)for(var i,a=e.children,o=0,s=a.length;o&lt;s;++o)n.push((a[o]=i={_:a[o],parent:e,children:(i=a[o].children)&amp;&amp;i.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:o}).a=i);return r.children[0]}(u);if(Oa(f,o),f.parent.m=-f.z,za(f,s),i)za(u,l);else{var h=u,p=u,d=u;za(u,(function(t){t.x&lt;h.x&amp;&amp;(h=t),t.x&gt;p.x&amp;&amp;(p=t),t.depth&gt;d.depth&amp;&amp;(d=t)}));var g=r(h,p)/2-h.x,m=n[0]/(p.x+r(p,h)/2+g),v=n[1]/(d.depth||1);za(u,(function(t){t.x=(t.x+g)*m,t.y=t.depth*v}))}return c}function o(t){var e=t.children,n=t.parent.children,i=t.i?n[t.i-1]:null;if(e.length){!function(t){var e,r=0,n=0,i=t.children,a=i.length;for(;--a&gt;=0;)(e=i[a]).z+=r,e.m+=r,r+=e.s+(n+=e.c)}(t);var a=(e[0].z+e[e.length-1].z)/2;i?(t.z=i.z+r(t._,i._),t.m=t.z-a):t.z=a}else i&amp;&amp;(t.z=i.z+r(t._,i._));t.parent.A=function(t,e,n){if(e){for(var i,a=t,o=t,s=e,l=a.parent.children[0],c=a.m,u=o.m,f=s.m,h=l.m;s=co(s),a=lo(a),s&amp;&amp;a;)l=lo(l),(o=co(o)).a=t,(i=s.z+f-a.z-c+r(s._,a._))&gt;0&amp;&amp;(uo(fo(s,t,n),t,i),c+=i,u+=i),f+=s.m,c+=a.m,h+=l.m,u+=o.m;s&amp;&amp;!co(o)&amp;&amp;(o.t=s,o.m+=f-u),a&amp;&amp;!lo(l)&amp;&amp;(l.t=a,l.m+=c-h,n=t)}return n}(t,i,t.parent.A||n[0])}function s(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function l(t){t.x*=n[0],t.y=t.depth*n[1]}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t)?l:null,a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null==(n=t)?null:l,a):i?n:null},Pa(a,e)},t.layout.cluster=function(){var e=t.layout.hierarchy().sort(null).value(null),r=so,n=[1,1],i=!1;function a(a,o){var s,l=e.call(this,a,o),c=l[0],u=0;Oa(c,(function(e){var n=e.children;n&amp;&amp;n.length?(e.x=function(t){return t.reduce((function(t,e){return t+e.x}),0)/t.length}(n),e.y=function(e){return 1+t.max(e,(function(t){return t.y}))}(n)):(e.x=s?u+=r(e,s):0,e.y=0,s=e)}));var f=function t(e){var r=e.children;return r&amp;&amp;r.length?t(r[0]):e}(c),h=function t(e){var r,n=e.children;return n&amp;&amp;(r=n.length)?t(n[r-1]):e}(c),p=f.x-r(f,h)/2,d=h.x+r(h,f)/2;return Oa(c,i?function(t){t.x=(t.x-c.x)*n[0],t.y=(c.y-t.y)*n[1]}:function(t){t.x=(t.x-p)/(d-p)*n[0],t.y=(1-(c.y?t.y/c.y:1))*n[1]}),l}return a.separation=function(t){return arguments.length?(r=t,a):r},a.size=function(t){return arguments.length?(i=null==(n=t),a):i?null:n},a.nodeSize=function(t){return arguments.length?(i=null!=(n=t),a):i?n:null},Pa(a,e)},t.layout.treemap=function(){var e,r=t.layout.hierarchy(),n=Math.round,i=[1,1],a=null,o=ho,s=!1,l=&quot;squarify&quot;,c=.5*(1+Math.sqrt(5));function u(t,e){for(var r,n,i=-1,a=t.length;++i&lt;a;)n=(r=t[i]).value*(e&lt;0?0:e),r.area=isNaN(n)||n&lt;=0?0:n}function f(t){var e=t.children;if(e&amp;&amp;e.length){var r,n,i,a=o(t),s=[],c=e.slice(),h=1/0,g=&quot;slice&quot;===l?a.dx:&quot;dice&quot;===l?a.dy:&quot;slice-dice&quot;===l?1&amp;t.depth?a.dy:a.dx:Math.min(a.dx,a.dy);for(u(c,a.dx*a.dy/t.value),s.area=0;(i=c.length)&gt;0;)s.push(r=c[i-1]),s.area+=r.area,&quot;squarify&quot;!==l||(n=p(s,g))&lt;=h?(c.pop(),h=n):(s.area-=s.pop().area,d(s,g,a,!1),g=Math.min(a.dx,a.dy),s.length=s.area=0,h=1/0);s.length&amp;&amp;(d(s,g,a,!0),s.length=s.area=0),e.forEach(f)}}function h(t){var e=t.children;if(e&amp;&amp;e.length){var r,n=o(t),i=e.slice(),a=[];for(u(i,n.dx*n.dy/t.value),a.area=0;r=i.pop();)a.push(r),a.area+=r.area,null!=r.z&amp;&amp;(d(a,r.z?n.dx:n.dy,n,!i.length),a.length=a.area=0);e.forEach(h)}}function p(t,e){for(var r,n=t.area,i=0,a=1/0,o=-1,s=t.length;++o&lt;s;)(r=t[o].area)&amp;&amp;(r&lt;a&amp;&amp;(a=r),r&gt;i&amp;&amp;(i=r));return e*=e,(n*=n)?Math.max(e*i*c/n,n/(e*a*c)):1/0}function d(t,e,r,i){var a,o=-1,s=t.length,l=r.x,c=r.y,u=e?n(t.area/e):0;if(e==r.dx){for((i||u&gt;r.dy)&amp;&amp;(u=r.dy);++o&lt;s;)(a=t[o]).x=l,a.y=c,a.dy=u,l+=a.dx=Math.min(r.x+r.dx-l,u?n(a.area/u):0);a.z=!0,a.dx+=r.x+r.dx-l,r.y+=u,r.dy-=u}else{for((i||u&gt;r.dx)&amp;&amp;(u=r.dx);++o&lt;s;)(a=t[o]).x=l,a.y=c,a.dx=u,c+=a.dy=Math.min(r.y+r.dy-c,u?n(a.area/u):0);a.z=!1,a.dy+=r.y+r.dy-c,r.x+=u,r.dx-=u}}function g(t){var n=e||r(t),a=n[0];return a.x=a.y=0,a.value?(a.dx=i[0],a.dy=i[1]):a.dx=a.dy=0,e&amp;&amp;r.revalue(a),u([a],a.dx*a.dy/a.value),(e?h:f)(a),s&amp;&amp;(e=n),n}return g.size=function(t){return arguments.length?(i=t,g):i},g.padding=function(t){if(!arguments.length)return a;function e(e){var r=t.call(g,e,e.depth);return null==r?ho(e):po(e,&quot;number&quot;==typeof r?[r,r,r,r]:r)}function r(e){return po(e,t)}var n;return o=null==(a=t)?ho:&quot;function&quot;==(n=typeof t)?e:&quot;number&quot;===n?(t=[t,t,t,t],r):r,g},g.round=function(t){return arguments.length?(n=t?Math.round:Number,g):n!=Number},g.sticky=function(t){return arguments.length?(s=t,e=null,g):s},g.ratio=function(t){return arguments.length?(c=t,g):c},g.mode=function(t){return arguments.length?(l=t+&quot;&quot;,g):l},Pa(g,r)},t.random={normal:function(t,e){var r=arguments.length;return r&lt;2&amp;&amp;(e=1),r&lt;1&amp;&amp;(t=0),function(){var r,n,i;do{i=(r=2*Math.random()-1)*r+(n=2*Math.random()-1)*n}while(!i||i&gt;1);return t+e*r*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var e=t.random.normal.apply(t,arguments);return function(){return Math.exp(e())}},bates:function(e){var r=t.random.irwinHall(e);return function(){return r()/e}},irwinHall:function(t){return function(){for(var e=0,r=0;r&lt;t;r++)e+=Math.random();return e}}},t.scale={};var bo={floor:L,ceil:L};function _o(e,r,n,i){var a=[],o=[],s=0,l=Math.min(e.length,r.length)-1;for(e[l]&lt;e[0]&amp;&amp;(e=e.slice().reverse(),r=r.slice().reverse());++s&lt;=l;)a.push(n(e[s-1],e[s])),o.push(i(r[s-1],r[s]));return function(r){var n=t.bisect(e,r,1,l)-1;return o[n](a[n](r))}}function wo(e,r){return t.rebind(e,r,&quot;range&quot;,&quot;rangeRound&quot;,&quot;interpolate&quot;,&quot;clamp&quot;)}function To(t,e){return yo(t,xo(ko(t,e)[2])),yo(t,xo(ko(t,e)[2])),t}function ko(t,e){null==e&amp;&amp;(e=10);var r=go(t),n=r[1]-r[0],i=Math.pow(10,Math.floor(Math.log(n/e)/Math.LN10)),a=e/n*i;return a&lt;=.15?i*=10:a&lt;=.35?i*=5:a&lt;=.75&amp;&amp;(i*=2),r[0]=Math.ceil(r[0]/i)*i,r[1]=Math.floor(r[1]/i)*i+.5*i,r[2]=i,r}function Mo(e,r){return t.range.apply(t,ko(e,r))}function Ao(e,r,n){var i=ko(e,r);if(n){var a=Ce.exec(n);if(a.shift(),&quot;s&quot;===a[8]){var o=t.formatPrefix(Math.max(y(i[0]),y(i[1])));return a[7]||(a[7]=&quot;.&quot;+Eo(o.scale(i[2]))),a[8]=&quot;f&quot;,n=t.format(a.join(&quot;&quot;)),function(t){return n(o.scale(t))+o.symbol}}a[7]||(a[7]=&quot;.&quot;+function(t,e){var r=Eo(e[2]);return t in So?Math.abs(r-Eo(Math.max(y(e[0]),y(e[1]))))+ +(&quot;e&quot;!==t):r-2*(&quot;%&quot;===t)}(a[8],i)),n=a.join(&quot;&quot;)}else n=&quot;,.&quot;+Eo(i[2])+&quot;f&quot;;return t.format(n)}t.scale.linear=function(){return function t(e,r,n,i){var a,o;function s(){var t=Math.min(e.length,r.length)&gt;2?_o:vo,s=i?wa:_a;return a=t(e,r,s,n),o=t(r,e,s,$i),l}function l(t){return a(t)}return l.invert=function(t){return o(t)},l.domain=function(t){return arguments.length?(e=t.map(Number),s()):e},l.range=function(t){return arguments.length?(r=t,s()):r},l.rangeRound=function(t){return l.range(t).interpolate(da)},l.clamp=function(t){return arguments.length?(i=t,s()):i},l.interpolate=function(t){return arguments.length?(n=t,s()):n},l.ticks=function(t){return Mo(e,t)},l.tickFormat=function(t,r){return Ao(e,t,r)},l.nice=function(t){return To(e,t),s()},l.copy=function(){return t(e,r,n,i)},s()}([0,1],[0,1],$i,!1)};var So={s:1,g:1,p:1,r:1,e:1};function Eo(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}t.scale.log=function(){return function e(r,n,i,a){function o(t){return(i?Math.log(t&lt;0?0:t):-Math.log(t&gt;0?0:-t))/Math.log(n)}function s(t){return i?Math.pow(n,t):-Math.pow(n,-t)}function l(t){return r(o(t))}return l.invert=function(t){return s(r.invert(t))},l.domain=function(t){return arguments.length?(i=t[0]&gt;=0,r.domain((a=t.map(Number)).map(o)),l):a},l.base=function(t){return arguments.length?(n=+t,r.domain(a.map(o)),l):n},l.nice=function(){var t=yo(a.map(o),i?Math:Lo);return r.domain(t),a=t.map(s),l},l.ticks=function(){var t=go(a),e=[],r=t[0],l=t[1],c=Math.floor(o(r)),u=Math.ceil(o(l)),f=n%1?2:n;if(isFinite(u-c)){if(i){for(;c&lt;u;c++)for(var h=1;h&lt;f;h++)e.push(s(c)*h);e.push(s(c))}else for(e.push(s(c));c++&lt;u;)for(h=f-1;h&gt;0;h--)e.push(s(c)*h);for(c=0;e[c]&lt;r;c++);for(u=e.length;e[u-1]&gt;l;u--);e=e.slice(c,u)}return e},l.tickFormat=function(e,r){if(!arguments.length)return Co;arguments.length&lt;2?r=Co:&quot;function&quot;!=typeof r&amp;&amp;(r=t.format(r));var i=Math.max(1,n*e/l.ticks().length);return function(t){var e=t/s(Math.round(o(t)));return e*n&lt;n-.5&amp;&amp;(e*=n),e&lt;=i?r(t):&quot;&quot;}},l.copy=function(){return e(r.copy(),n,i,a)},wo(l,r)}(t.scale.linear().domain([0,1]),10,!0,[1,10])};var Co=t.format(&quot;.0e&quot;),Lo={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};function Io(t){return function(e){return e&lt;0?-Math.pow(-e,t):Math.pow(e,t)}}t.scale.pow=function(){return function t(e,r,n){var i=Io(r),a=Io(1/r);function o(t){return e(i(t))}return o.invert=function(t){return a(e.invert(t))},o.domain=function(t){return arguments.length?(e.domain((n=t.map(Number)).map(i)),o):n},o.ticks=function(t){return Mo(n,t)},o.tickFormat=function(t,e){return Ao(n,t,e)},o.nice=function(t){return o.domain(To(n,t))},o.exponent=function(t){return arguments.length?(i=Io(r=t),a=Io(1/r),e.domain(n.map(i)),o):r},o.copy=function(){return t(e.copy(),r,n)},wo(o,e)}(t.scale.linear(),1,[0,1])},t.scale.sqrt=function(){return t.scale.pow().exponent(.5)},t.scale.ordinal=function(){return function e(r,n){var i,a,o;function s(t){return a[((i.get(t)||(&quot;range&quot;===n.t?i.set(t,r.push(t)):NaN))-1)%a.length]}function l(e,n){return t.range(r.length).map((function(t){return e+n*t}))}return s.domain=function(t){if(!arguments.length)return r;r=[],i=new _;for(var e,a=-1,o=t.length;++a&lt;o;)i.has(e=t[a])||i.set(e,r.push(e));return s[n.t].apply(s,n.a)},s.range=function(t){return arguments.length?(a=t,o=0,n={t:&quot;range&quot;,a:arguments},s):a},s.rangePoints=function(t,e){arguments.length&lt;2&amp;&amp;(e=0);var i=t[0],c=t[1],u=r.length&lt;2?(i=(i+c)/2,0):(c-i)/(r.length-1+e);return a=l(i+u*e/2,u),o=0,n={t:&quot;rangePoints&quot;,a:arguments},s},s.rangeRoundPoints=function(t,e){arguments.length&lt;2&amp;&amp;(e=0);var i=t[0],c=t[1],u=r.length&lt;2?(i=c=Math.round((i+c)/2),0):(c-i)/(r.length-1+e)|0;return a=l(i+Math.round(u*e/2+(c-i-(r.length-1+e)*u)/2),u),o=0,n={t:&quot;rangeRoundPoints&quot;,a:arguments},s},s.rangeBands=function(t,e,i){arguments.length&lt;2&amp;&amp;(e=0),arguments.length&lt;3&amp;&amp;(i=e);var c=t[1]&lt;t[0],u=t[c-0],f=t[1-c],h=(f-u)/(r.length-e+2*i);return a=l(u+h*i,h),c&amp;&amp;a.reverse(),o=h*(1-e),n={t:&quot;rangeBands&quot;,a:arguments},s},s.rangeRoundBands=function(t,e,i){arguments.length&lt;2&amp;&amp;(e=0),arguments.length&lt;3&amp;&amp;(i=e);var c=t[1]&lt;t[0],u=t[c-0],f=t[1-c],h=Math.floor((f-u)/(r.length-e+2*i));return a=l(u+Math.round((f-u-(r.length-e)*h)/2),h),c&amp;&amp;a.reverse(),o=Math.round(h*(1-e)),n={t:&quot;rangeRoundBands&quot;,a:arguments},s},s.rangeBand=function(){return o},s.rangeExtent=function(){return go(n.a[0])},s.copy=function(){return e(r,n)},s.domain(r)}([],{t:&quot;range&quot;,a:[[]]})},t.scale.category10=function(){return t.scale.ordinal().range(Po)},t.scale.category20=function(){return t.scale.ordinal().range(zo)},t.scale.category20b=function(){return t.scale.ordinal().range(Oo)},t.scale.category20c=function(){return t.scale.ordinal().range(Do)};var Po=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(ae),zo=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(ae),Oo=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(ae),Do=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(ae);function Ro(){return 0}t.scale.quantile=function(){return function e(r,n){var i;function a(){var e=0,a=n.length;for(i=[];++e&lt;a;)i[e-1]=t.quantile(r,e/a);return o}function o(e){if(!isNaN(e=+e))return n[t.bisect(i,e)]}return o.domain=function(t){return arguments.length?(r=t.map(p).filter(d).sort(h),a()):r},o.range=function(t){return arguments.length?(n=t,a()):n},o.quantiles=function(){return i},o.invertExtent=function(t){return(t=n.indexOf(t))&lt;0?[NaN,NaN]:[t&gt;0?i[t-1]:r[0],t&lt;i.length?i[t]:r[r.length-1]]},o.copy=function(){return e(r,n)},a()}([],[])},t.scale.quantize=function(){return function t(e,r,n){var i,a;function o(t){return n[Math.max(0,Math.min(a,Math.floor(i*(t-e))))]}function s(){return i=n.length/(r-e),a=n.length-1,o}return o.domain=function(t){return arguments.length?(e=+t[0],r=+t[t.length-1],s()):[e,r]},o.range=function(t){return arguments.length?(n=t,s()):n},o.invertExtent=function(t){return[t=(t=n.indexOf(t))&lt;0?NaN:t/i+e,t+1/i]},o.copy=function(){return t(e,r,n)},s()}(0,1,[0,1])},t.scale.threshold=function(){return function e(r,n){function i(e){if(e&lt;=e)return n[t.bisect(r,e)]}return i.domain=function(t){return arguments.length?(r=t,i):r},i.range=function(t){return arguments.length?(n=t,i):n},i.invertExtent=function(t){return t=n.indexOf(t),[r[t-1],r[t]]},i.copy=function(){return e(r,n)},i}([.5],[0,1])},t.scale.identity=function(){return function t(e){function r(t){return+t}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=t.map(r),r):e},r.ticks=function(t){return Mo(e,t)},r.tickFormat=function(t,r){return Ao(e,t,r)},r.copy=function(){return t(e)},r}([0,1])},t.svg={},t.svg.arc=function(){var t=Bo,e=No,r=Ro,n=Fo,i=jo,a=Uo,o=Vo;function s(){var s=Math.max(0,+t.apply(this,arguments)),c=Math.max(0,+e.apply(this,arguments)),u=i.apply(this,arguments)-Ct,f=a.apply(this,arguments)-Ct,h=Math.abs(f-u),p=u&gt;f?0:1;if(c&lt;s&amp;&amp;(d=c,c=s,s=d),h&gt;=Et)return l(c,p)+(s?l(s,1-p):&quot;&quot;)+&quot;Z&quot;;var d,g,m,v,y,x,b,_,w,T,k,M,A=0,S=0,E=[];if((v=(+o.apply(this,arguments)||0)/2)&amp;&amp;(m=n===Fo?Math.sqrt(s*s+c*c):+n.apply(this,arguments),p||(S*=-1),c&amp;&amp;(S=Dt(m/c*Math.sin(v))),s&amp;&amp;(A=Dt(m/s*Math.sin(v)))),c){y=c*Math.cos(u+S),x=c*Math.sin(u+S),b=c*Math.cos(f-S),_=c*Math.sin(f-S);var C=Math.abs(f-u-2*S)&lt;=At?0:1;if(S&amp;&amp;qo(y,x,b,_)===p^C){var L=(u+f)/2;y=c*Math.cos(L),x=c*Math.sin(L),b=_=null}}else y=x=0;if(s){w=s*Math.cos(f-A),T=s*Math.sin(f-A),k=s*Math.cos(u+A),M=s*Math.sin(u+A);var I=Math.abs(u-f+2*A)&lt;=At?0:1;if(A&amp;&amp;qo(w,T,k,M)===1-p^I){var P=(u+f)/2;w=s*Math.cos(P),T=s*Math.sin(P),k=M=null}}else w=T=0;if(h&gt;kt&amp;&amp;(d=Math.min(Math.abs(c-s)/2,+r.apply(this,arguments)))&gt;.001){g=s&lt;c^p?0:1;var z=d,O=d;if(h&lt;At){var D=null==k?[w,T]:null==b?[y,x]:li([y,x],[k,M],[b,_],[w,T]),R=y-D[0],F=x-D[1],B=b-D[0],N=_-D[1],j=1/Math.sin(Math.acos((R*B+F*N)/(Math.sqrt(R*R+F*F)*Math.sqrt(B*B+N*N)))/2),U=Math.sqrt(D[0]*D[0]+D[1]*D[1]);O=Math.min(d,(s-U)/(j-1)),z=Math.min(d,(c-U)/(j+1))}if(null!=b){var V=Ho(null==k?[w,T]:[k,M],[y,x],c,z,p),q=Ho([b,_],[w,T],c,z,p);d===z?E.push(&quot;M&quot;,V[0],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,g,&quot; &quot;,V[1],&quot;A&quot;,c,&quot;,&quot;,c,&quot; 0 &quot;,1-p^qo(V[1][0],V[1][1],q[1][0],q[1][1]),&quot;,&quot;,p,&quot; &quot;,q[1],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 0,&quot;,g,&quot; &quot;,q[0]):E.push(&quot;M&quot;,V[0],&quot;A&quot;,z,&quot;,&quot;,z,&quot; 0 1,&quot;,g,&quot; &quot;,q[0])}else E.push(&quot;M&quot;,y,&quot;,&quot;,x);if(null!=k){var H=Ho([y,x],[k,M],s,-O,p),G=Ho([w,T],null==b?[y,x]:[b,_],s,-O,p);d===O?E.push(&quot;L&quot;,G[0],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,G[1],&quot;A&quot;,s,&quot;,&quot;,s,&quot; 0 &quot;,p^qo(G[1][0],G[1][1],H[1][0],H[1][1]),&quot;,&quot;,1-p,&quot; &quot;,H[1],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,H[0]):E.push(&quot;L&quot;,G[0],&quot;A&quot;,O,&quot;,&quot;,O,&quot; 0 0,&quot;,g,&quot; &quot;,H[0])}else E.push(&quot;L&quot;,w,&quot;,&quot;,T)}else E.push(&quot;M&quot;,y,&quot;,&quot;,x),null!=b&amp;&amp;E.push(&quot;A&quot;,c,&quot;,&quot;,c,&quot; 0 &quot;,C,&quot;,&quot;,p,&quot; &quot;,b,&quot;,&quot;,_),E.push(&quot;L&quot;,w,&quot;,&quot;,T),null!=k&amp;&amp;E.push(&quot;A&quot;,s,&quot;,&quot;,s,&quot; 0 &quot;,I,&quot;,&quot;,1-p,&quot; &quot;,k,&quot;,&quot;,M);return E.push(&quot;Z&quot;),E.join(&quot;&quot;)}function l(t,e){return&quot;M0,&quot;+t+&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 1,&quot;+e+&quot; 0,&quot;+-t+&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 1,&quot;+e+&quot; 0,&quot;+t}return s.innerRadius=function(e){return arguments.length?(t=de(e),s):t},s.outerRadius=function(t){return arguments.length?(e=de(t),s):e},s.cornerRadius=function(t){return arguments.length?(r=de(t),s):r},s.padRadius=function(t){return arguments.length?(n=t==Fo?Fo:de(t),s):n},s.startAngle=function(t){return arguments.length?(i=de(t),s):i},s.endAngle=function(t){return arguments.length?(a=de(t),s):a},s.padAngle=function(t){return arguments.length?(o=de(t),s):o},s.centroid=function(){var r=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,n=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-Ct;return[Math.cos(n)*r,Math.sin(n)*r]},s};var Fo=&quot;auto&quot;;function Bo(t){return t.innerRadius}function No(t){return t.outerRadius}function jo(t){return t.startAngle}function Uo(t){return t.endAngle}function Vo(t){return t&amp;&amp;t.padAngle}function qo(t,e,r,n){return(t-r)*e-(e-n)*t&gt;0?0:1}function Ho(t,e,r,n,i){var a=t[0]-e[0],o=t[1]-e[1],s=(i?n:-n)/Math.sqrt(a*a+o*o),l=s*o,c=-s*a,u=t[0]+l,f=t[1]+c,h=e[0]+l,p=e[1]+c,d=(u+h)/2,g=(f+p)/2,m=h-u,v=p-f,y=m*m+v*v,x=r-n,b=u*p-h*f,_=(v&lt;0?-1:1)*Math.sqrt(Math.max(0,x*x*y-b*b)),w=(b*v-m*_)/y,T=(-b*m-v*_)/y,k=(b*v+m*_)/y,M=(-b*m+v*_)/y,A=w-d,S=T-g,E=k-d,C=M-g;return A*A+S*S&gt;E*E+C*C&amp;&amp;(w=k,T=M),[[w-l,T-c],[w*r/x,T*r/x]]}function Go(t){var e=ri,r=ni,n=Yr,i=Wo,a=i.key,o=.7;function s(a){var s,l=[],c=[],u=-1,f=a.length,h=de(e),p=de(r);function d(){l.push(&quot;M&quot;,i(t(c),o))}for(;++u&lt;f;)n.call(this,s=a[u],u)?c.push([+h.call(this,s,u),+p.call(this,s,u)]):c.length&amp;&amp;(d(),c=[]);return c.length&amp;&amp;d(),l.length?l.join(&quot;&quot;):null}return s.x=function(t){return arguments.length?(e=t,s):e},s.y=function(t){return arguments.length?(r=t,s):r},s.defined=function(t){return arguments.length?(n=t,s):n},s.interpolate=function(t){return arguments.length?(a=&quot;function&quot;==typeof t?i=t:(i=Yo.get(t)||Wo).key,s):a},s.tension=function(t){return arguments.length?(o=t,s):o},s}t.svg.line=function(){return Go(L)};var Yo=t.map({linear:Wo,&quot;linear-closed&quot;:Xo,step:function(t){var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];for(;++e&lt;r;)i.push(&quot;H&quot;,(n[0]+(n=t[e])[0])/2,&quot;V&quot;,n[1]);r&gt;1&amp;&amp;i.push(&quot;H&quot;,n[0]);return i.join(&quot;&quot;)},&quot;step-before&quot;:Zo,&quot;step-after&quot;:Jo,basis:$o,&quot;basis-open&quot;:function(t){if(t.length&lt;4)return Wo(t);var e,r=[],n=-1,i=t.length,a=[0],o=[0];for(;++n&lt;3;)e=t[n],a.push(e[0]),o.push(e[1]);r.push(ts(ns,a)+&quot;,&quot;+ts(ns,o)),--n;for(;++n&lt;i;)e=t[n],a.shift(),a.push(e[0]),o.shift(),o.push(e[1]),is(r,a,o);return r.join(&quot;&quot;)},&quot;basis-closed&quot;:function(t){var e,r,n=-1,i=t.length,a=i+4,o=[],s=[];for(;++n&lt;4;)r=t[n%i],o.push(r[0]),s.push(r[1]);e=[ts(ns,o),&quot;,&quot;,ts(ns,s)],--n;for(;++n&lt;a;)r=t[n%i],o.shift(),o.push(r[0]),s.shift(),s.push(r[1]),is(e,o,s);return e.join(&quot;&quot;)},bundle:function(t,e){var r=t.length-1;if(r)for(var n,i,a=t[0][0],o=t[0][1],s=t[r][0]-a,l=t[r][1]-o,c=-1;++c&lt;=r;)n=t[c],i=c/r,n[0]=e*n[0]+(1-e)*(a+i*s),n[1]=e*n[1]+(1-e)*(o+i*l);return $o(t)},cardinal:function(t,e){return t.length&lt;3?Wo(t):t[0]+Ko(t,Qo(t,e))},&quot;cardinal-open&quot;:function(t,e){return t.length&lt;4?Wo(t):t[1]+Ko(t.slice(1,-1),Qo(t,e))},&quot;cardinal-closed&quot;:function(t,e){return t.length&lt;3?Xo(t):t[0]+Ko((t.push(t[0]),t),Qo([t[t.length-2]].concat(t,[t[1]]),e))},monotone:function(t){return t.length&lt;3?Wo(t):t[0]+Ko(t,function(t){var e,r,n,i,a=[],o=function(t){var e=0,r=t.length-1,n=[],i=t[0],a=t[1],o=n[0]=as(i,a);for(;++e&lt;r;)n[e]=(o+(o=as(i=a,a=t[e+1])))/2;return n[e]=o,n}(t),s=-1,l=t.length-1;for(;++s&lt;l;)e=as(t[s],t[s+1]),y(e)&lt;kt?o[s]=o[s+1]=0:(r=o[s]/e,n=o[s+1]/e,(i=r*r+n*n)&gt;9&amp;&amp;(i=3*e/Math.sqrt(i),o[s]=i*r,o[s+1]=i*n));s=-1;for(;++s&lt;=l;)i=(t[Math.min(l,s+1)][0]-t[Math.max(0,s-1)][0])/(6*(1+o[s]*o[s])),a.push([i||0,o[s]*i||0]);return a}(t))}});function Wo(t){return t.length&gt;1?t.join(&quot;L&quot;):t+&quot;Z&quot;}function Xo(t){return t.join(&quot;L&quot;)+&quot;Z&quot;}function Zo(t){for(var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];++e&lt;r;)i.push(&quot;V&quot;,(n=t[e])[1],&quot;H&quot;,n[0]);return i.join(&quot;&quot;)}function Jo(t){for(var e=0,r=t.length,n=t[0],i=[n[0],&quot;,&quot;,n[1]];++e&lt;r;)i.push(&quot;H&quot;,(n=t[e])[0],&quot;V&quot;,n[1]);return i.join(&quot;&quot;)}function Ko(t,e){if(e.length&lt;1||t.length!=e.length&amp;&amp;t.length!=e.length+2)return Wo(t);var r=t.length!=e.length,n=&quot;&quot;,i=t[0],a=t[1],o=e[0],s=o,l=1;if(r&amp;&amp;(n+=&quot;Q&quot;+(a[0]-2*o[0]/3)+&quot;,&quot;+(a[1]-2*o[1]/3)+&quot;,&quot;+a[0]+&quot;,&quot;+a[1],i=t[1],l=2),e.length&gt;1){s=e[1],a=t[l],l++,n+=&quot;C&quot;+(i[0]+o[0])+&quot;,&quot;+(i[1]+o[1])+&quot;,&quot;+(a[0]-s[0])+&quot;,&quot;+(a[1]-s[1])+&quot;,&quot;+a[0]+&quot;,&quot;+a[1];for(var c=2;c&lt;e.length;c++,l++)a=t[l],s=e[c],n+=&quot;S&quot;+(a[0]-s[0])+&quot;,&quot;+(a[1]-s[1])+&quot;,&quot;+a[0]+&quot;,&quot;+a[1]}if(r){var u=t[l];n+=&quot;Q&quot;+(a[0]+2*s[0]/3)+&quot;,&quot;+(a[1]+2*s[1]/3)+&quot;,&quot;+u[0]+&quot;,&quot;+u[1]}return n}function Qo(t,e){for(var r,n=[],i=(1-e)/2,a=t[0],o=t[1],s=1,l=t.length;++s&lt;l;)r=a,a=o,o=t[s],n.push([i*(o[0]-r[0]),i*(o[1]-r[1])]);return n}function $o(t){if(t.length&lt;3)return Wo(t);var e=1,r=t.length,n=t[0],i=n[0],a=n[1],o=[i,i,i,(n=t[1])[0]],s=[a,a,a,n[1]],l=[i,&quot;,&quot;,a,&quot;L&quot;,ts(ns,o),&quot;,&quot;,ts(ns,s)];for(t.push(t[r-1]);++e&lt;=r;)n=t[e],o.shift(),o.push(n[0]),s.shift(),s.push(n[1]),is(l,o,s);return t.pop(),l.push(&quot;L&quot;,n),l.join(&quot;&quot;)}function ts(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}Yo.forEach((function(t,e){e.key=t,e.closed=/-closed$/.test(t)}));var es=[0,2/3,1/3,0],rs=[0,1/3,2/3,0],ns=[0,1/6,2/3,1/6];function is(t,e,r){t.push(&quot;C&quot;,ts(es,e),&quot;,&quot;,ts(es,r),&quot;,&quot;,ts(rs,e),&quot;,&quot;,ts(rs,r),&quot;,&quot;,ts(ns,e),&quot;,&quot;,ts(ns,r))}function as(t,e){return(e[1]-t[1])/(e[0]-t[0])}function os(t){for(var e,r,n,i=-1,a=t.length;++i&lt;a;)r=(e=t[i])[0],n=e[1]-Ct,e[0]=r*Math.cos(n),e[1]=r*Math.sin(n);return t}function ss(t){var e=ri,r=ri,n=0,i=ni,a=Yr,o=Wo,s=o.key,l=o,c=&quot;L&quot;,u=.7;function f(s){var f,h,p,d=[],g=[],m=[],v=-1,y=s.length,x=de(e),b=de(n),_=e===r?function(){return h}:de(r),w=n===i?function(){return p}:de(i);function T(){d.push(&quot;M&quot;,o(t(m),u),c,l(t(g.reverse()),u),&quot;Z&quot;)}for(;++v&lt;y;)a.call(this,f=s[v],v)?(g.push([h=+x.call(this,f,v),p=+b.call(this,f,v)]),m.push([+_.call(this,f,v),+w.call(this,f,v)])):g.length&amp;&amp;(T(),g=[],m=[]);return g.length&amp;&amp;T(),d.length?d.join(&quot;&quot;):null}return f.x=function(t){return arguments.length?(e=r=t,f):r},f.x0=function(t){return arguments.length?(e=t,f):e},f.x1=function(t){return arguments.length?(r=t,f):r},f.y=function(t){return arguments.length?(n=i=t,f):i},f.y0=function(t){return arguments.length?(n=t,f):n},f.y1=function(t){return arguments.length?(i=t,f):i},f.defined=function(t){return arguments.length?(a=t,f):a},f.interpolate=function(t){return arguments.length?(s=&quot;function&quot;==typeof t?o=t:(o=Yo.get(t)||Wo).key,l=o.reverse||o,c=o.closed?&quot;M&quot;:&quot;L&quot;,f):s},f.tension=function(t){return arguments.length?(u=t,f):u},f}function ls(t){return t.radius}function cs(t){return[t.x,t.y]}function us(t){return function(){var e=t.apply(this,arguments),r=e[0],n=e[1]-Ct;return[r*Math.cos(n),r*Math.sin(n)]}}function fs(){return 64}function hs(){return&quot;circle&quot;}function ps(t){var e=Math.sqrt(t/At);return&quot;M0,&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,&quot;+-e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,&quot;+e+&quot;Z&quot;}t.svg.line.radial=function(){var t=Go(os);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},Zo.reverse=Jo,Jo.reverse=Zo,t.svg.area=function(){return ss(L)},t.svg.area.radial=function(){var t=ss(os);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},t.svg.chord=function(){var t=Vn,e=qn,r=ls,n=jo,i=Uo;function a(r,n){var i,a,c=o(this,t,r,n),u=o(this,e,r,n);return&quot;M&quot;+c.p0+s(c.r,c.p1,c.a1-c.a0)+(a=u,((i=c).a0==a.a0&amp;&amp;i.a1==a.a1?l(c.r,c.p1,c.r,c.p0):l(c.r,c.p1,u.r,u.p0)+s(u.r,u.p1,u.a1-u.a0)+l(u.r,u.p1,c.r,c.p0))+&quot;Z&quot;)}function o(t,e,a,o){var s=e.call(t,a,o),l=r.call(t,s,o),c=n.call(t,s,o)-Ct,u=i.call(t,s,o)-Ct;return{r:l,a0:c,a1:u,p0:[l*Math.cos(c),l*Math.sin(c)],p1:[l*Math.cos(u),l*Math.sin(u)]}}function s(t,e,r){return&quot;A&quot;+t+&quot;,&quot;+t+&quot; 0 &quot;+ +(r&gt;At)+&quot;,1 &quot;+e}function l(t,e,r,n){return&quot;Q 0,0 &quot;+n}return a.radius=function(t){return arguments.length?(r=de(t),a):r},a.source=function(e){return arguments.length?(t=de(e),a):t},a.target=function(t){return arguments.length?(e=de(t),a):e},a.startAngle=function(t){return arguments.length?(n=de(t),a):n},a.endAngle=function(t){return arguments.length?(i=de(t),a):i},a},t.svg.diagonal=function(){var t=Vn,e=qn,r=cs;function n(n,i){var a=t.call(this,n,i),o=e.call(this,n,i),s=(a.y+o.y)/2,l=[a,{x:a.x,y:s},{x:o.x,y:s},o];return&quot;M&quot;+(l=l.map(r))[0]+&quot;C&quot;+l[1]+&quot; &quot;+l[2]+&quot; &quot;+l[3]}return n.source=function(e){return arguments.length?(t=de(e),n):t},n.target=function(t){return arguments.length?(e=de(t),n):e},n.projection=function(t){return arguments.length?(r=t,n):r},n},t.svg.diagonal.radial=function(){var e=t.svg.diagonal(),r=cs,n=e.projection;return e.projection=function(t){return arguments.length?n(us(r=t)):r},e},t.svg.symbol=function(){var t=hs,e=fs;function r(r,n){return(ds.get(t.call(this,r,n))||ps)(e.call(this,r,n))}return r.type=function(e){return arguments.length?(t=de(e),r):t},r.size=function(t){return arguments.length?(e=de(t),r):e},r};var ds=t.map({circle:ps,cross:function(t){var e=Math.sqrt(t/5)/2;return&quot;M&quot;+-3*e+&quot;,&quot;+-e+&quot;H&quot;+-e+&quot;V&quot;+-3*e+&quot;H&quot;+e+&quot;V&quot;+-e+&quot;H&quot;+3*e+&quot;V&quot;+e+&quot;H&quot;+e+&quot;V&quot;+3*e+&quot;H&quot;+-e+&quot;V&quot;+e+&quot;H&quot;+-3*e+&quot;Z&quot;},diamond:function(t){var e=Math.sqrt(t/(2*ms)),r=e*ms;return&quot;M0,&quot;+-e+&quot;L&quot;+r+&quot;,0 0,&quot;+e+&quot; &quot;+-r+&quot;,0Z&quot;},square:function(t){var e=Math.sqrt(t)/2;return&quot;M&quot;+-e+&quot;,&quot;+-e+&quot;L&quot;+e+&quot;,&quot;+-e+&quot; &quot;+e+&quot;,&quot;+e+&quot; &quot;+-e+&quot;,&quot;+e+&quot;Z&quot;},&quot;triangle-down&quot;:function(t){var e=Math.sqrt(t/gs),r=e*gs/2;return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,&quot;+-r+&quot; &quot;+-e+&quot;,&quot;+-r+&quot;Z&quot;},&quot;triangle-up&quot;:function(t){var e=Math.sqrt(t/gs),r=e*gs/2;return&quot;M0,&quot;+-r+&quot;L&quot;+e+&quot;,&quot;+r+&quot; &quot;+-e+&quot;,&quot;+r+&quot;Z&quot;}});t.svg.symbolTypes=ds.keys();var gs=Math.sqrt(3),ms=Math.tan(30*Lt);Y.transition=function(t){for(var e,r,n=bs||++Ts,i=As(t),a=[],o=_s||{time:Date.now(),ease:ca,delay:0,duration:250},s=-1,l=this.length;++s&lt;l;){a.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u&lt;f;)(r=c[u])&amp;&amp;Ss(r,u,i,n,o),e.push(r)}return xs(a,i,n)},Y.interrupt=function(t){return this.each(null==t?vs:ys(As(t)))};var vs=ys(As());function ys(t){return function(){var e,r,n;(e=this[t])&amp;&amp;(n=e[r=e.active])&amp;&amp;(n.timer.c=null,n.timer.t=NaN,--e.count?delete e[r]:delete this[t],e.active+=.5,n.event&amp;&amp;n.event.interrupt.call(this,this.__data__,n.index))}}function xs(t,e,r){return U(t,ws),t.namespace=e,t.id=r,t}var bs,_s,ws=[],Ts=0;function ks(t,e,r,n){var i=t.id,a=t.namespace;return ut(t,&quot;function&quot;==typeof r?function(t,o,s){t[a][i].tween.set(e,n(r.call(t,t.__data__,o,s)))}:(r=n(r),function(t){t[a][i].tween.set(e,r)}))}function Ms(t){return null==t&amp;&amp;(t=&quot;&quot;),function(){this.textContent=t}}function As(t){return null==t?&quot;__transition__&quot;:&quot;__transition_&quot;+t+&quot;__&quot;}function Ss(t,e,r,n,i){var a,o,s,l,c,u=t[r]||(t[r]={active:0,count:0}),f=u[n];function h(r){var i=u.active,h=u[i];for(var d in h&amp;&amp;(h.timer.c=null,h.timer.t=NaN,--u.count,delete u[i],h.event&amp;&amp;h.event.interrupt.call(t,t.__data__,h.index)),u)if(+d&lt;n){var g=u[d];g.timer.c=null,g.timer.t=NaN,--u.count,delete u[d]}o.c=p,we((function(){return o.c&amp;&amp;p(r||1)&amp;&amp;(o.c=null,o.t=NaN),1}),0,a),u.active=n,f.event&amp;&amp;f.event.start.call(t,t.__data__,e),c=[],f.tween.forEach((function(r,n){(n=n.call(t,t.__data__,e))&amp;&amp;c.push(n)})),l=f.ease,s=f.duration}function p(i){for(var a=i/s,o=l(a),h=c.length;h&gt;0;)c[--h].call(t,o);if(a&gt;=1)return f.event&amp;&amp;f.event.end.call(t,t.__data__,e),--u.count?delete u[n]:delete t[r],1}f||(a=i.time,o=we((function(t){var e=f.delay;if(o.t=e+a,e&lt;=t)return h(t-e);o.c=h}),0,a),f=u[n]={tween:new _,time:a,timer:o,delay:i.delay,duration:i.duration,ease:i.ease,index:e},i=null,++u.count)}ws.call=Y.call,ws.empty=Y.empty,ws.node=Y.node,ws.size=Y.size,t.transition=function(e,r){return e&amp;&amp;e.transition?bs?e.transition(r):e:t.selection().transition(e)},t.transition.prototype=ws,ws.select=function(t){var e,r,n,i=this.id,a=this.namespace,o=[];t=W(t);for(var s=-1,l=this.length;++s&lt;l;){o.push(e=[]);for(var c=this[s],u=-1,f=c.length;++u&lt;f;)(n=c[u])&amp;&amp;(r=t.call(n,n.__data__,u,s))?(&quot;__data__&quot;in n&amp;&amp;(r.__data__=n.__data__),Ss(r,u,a,i,n[a][i]),e.push(r)):e.push(null)}return xs(o,a,i)},ws.selectAll=function(t){var e,r,n,i,a,o=this.id,s=this.namespace,l=[];t=X(t);for(var c=-1,u=this.length;++c&lt;u;)for(var f=this[c],h=-1,p=f.length;++h&lt;p;)if(n=f[h]){a=n[s][o],r=t.call(n,n.__data__,h,c),l.push(e=[]);for(var d=-1,g=r.length;++d&lt;g;)(i=r[d])&amp;&amp;Ss(i,d,s,o,a),e.push(i)}return xs(l,s,o)},ws.filter=function(t){var e,r,n=[];&quot;function&quot;!=typeof t&amp;&amp;(t=lt(t));for(var i=0,a=this.length;i&lt;a;i++){n.push(e=[]);for(var o,s=0,l=(o=this[i]).length;s&lt;l;s++)(r=o[s])&amp;&amp;t.call(r,r.__data__,s,i)&amp;&amp;e.push(r)}return xs(n,this.namespace,this.id)},ws.tween=function(t,e){var r=this.id,n=this.namespace;return arguments.length&lt;2?this.node()[n][r].tween.get(t):ut(this,null==e?function(e){e[n][r].tween.remove(t)}:function(i){i[n][r].tween.set(t,e)})},ws.attr=function(e,r){if(arguments.length&lt;2){for(r in e)this.attr(r,e[r]);return this}var n=&quot;transform&quot;==e?ba:$i,i=t.ns.qualify(e);function a(){this.removeAttribute(i)}function o(){this.removeAttributeNS(i.space,i.local)}function s(t){return null==t?a:(t+=&quot;&quot;,function(){var e,r=this.getAttribute(i);return r!==t&amp;&amp;(e=n(r,t),function(t){this.setAttribute(i,e(t))})})}function l(t){return null==t?o:(t+=&quot;&quot;,function(){var e,r=this.getAttributeNS(i.space,i.local);return r!==t&amp;&amp;(e=n(r,t),function(t){this.setAttributeNS(i.space,i.local,e(t))})})}return ks(this,&quot;attr.&quot;+e,r,i.local?l:s)},ws.attrTween=function(e,r){var n=t.ns.qualify(e);return this.tween(&quot;attr.&quot;+e,n.local?function(t,e){var i=r.call(this,t,e,this.getAttributeNS(n.space,n.local));return i&amp;&amp;function(t){this.setAttributeNS(n.space,n.local,i(t))}}:function(t,e){var i=r.call(this,t,e,this.getAttribute(n));return i&amp;&amp;function(t){this.setAttribute(n,i(t))}})},ws.style=function(t,e,r){var n=arguments.length;if(n&lt;3){if(&quot;string&quot;!=typeof t){for(r in n&lt;2&amp;&amp;(e=&quot;&quot;),t)this.style(r,t[r],e);return this}r=&quot;&quot;}function i(){this.style.removeProperty(t)}function a(e){return null==e?i:(e+=&quot;&quot;,function(){var n,i=o(this).getComputedStyle(this,null).getPropertyValue(t);return i!==e&amp;&amp;(n=$i(i,e),function(e){this.style.setProperty(t,n(e),r)})})}return ks(this,&quot;style.&quot;+t,e,a)},ws.styleTween=function(t,e,r){function n(n,i){var a=e.call(this,n,i,o(this).getComputedStyle(this,null).getPropertyValue(t));return a&amp;&amp;function(e){this.style.setProperty(t,a(e),r)}}return arguments.length&lt;3&amp;&amp;(r=&quot;&quot;),this.tween(&quot;style.&quot;+t,n)},ws.text=function(t){return ks(this,&quot;text&quot;,t,Ms)},ws.remove=function(){var t=this.namespace;return this.each(&quot;end.transition&quot;,(function(){var e;this[t].count&lt;2&amp;&amp;(e=this.parentNode)&amp;&amp;e.removeChild(this)}))},ws.ease=function(e){var r=this.id,n=this.namespace;return arguments.length&lt;1?this.node()[n][r].ease:(&quot;function&quot;!=typeof e&amp;&amp;(e=t.ease.apply(t,arguments)),ut(this,(function(t){t[n][r].ease=e})))},ws.delay=function(t){var e=this.id,r=this.namespace;return arguments.length&lt;1?this.node()[r][e].delay:ut(this,&quot;function&quot;==typeof t?function(n,i,a){n[r][e].delay=+t.call(n,n.__data__,i,a)}:(t=+t,function(n){n[r][e].delay=t}))},ws.duration=function(t){var e=this.id,r=this.namespace;return arguments.length&lt;1?this.node()[r][e].duration:ut(this,&quot;function&quot;==typeof t?function(n,i,a){n[r][e].duration=Math.max(1,t.call(n,n.__data__,i,a))}:(t=Math.max(1,t),function(n){n[r][e].duration=t}))},ws.each=function(e,r){var n=this.id,i=this.namespace;if(arguments.length&lt;2){var a=_s,o=bs;try{bs=n,ut(this,(function(t,r,a){_s=t[i][n],e.call(t,t.__data__,r,a)}))}finally{_s=a,bs=o}}else ut(this,(function(a){var o=a[i][n];(o.event||(o.event=t.dispatch(&quot;start&quot;,&quot;end&quot;,&quot;interrupt&quot;))).on(e,r)}));return this},ws.transition=function(){for(var t,e,r,n=this.id,i=++Ts,a=this.namespace,o=[],s=0,l=this.length;s&lt;l;s++){o.push(t=[]);for(var c,u=0,f=(c=this[s]).length;u&lt;f;u++)(e=c[u])&amp;&amp;Ss(e,u,a,i,{time:(r=e[a][n]).time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration}),t.push(e)}return xs(o,a,i)},t.svg.axis=function(){var e,r=t.scale.linear(),i=Es,a=6,o=6,s=3,l=[10],c=null;function u(n){n.each((function(){var n,u=t.select(this),f=this.__chart__||r,h=this.__chart__=r.copy(),p=null==c?h.ticks?h.ticks.apply(h,l):h.domain():c,d=null==e?h.tickFormat?h.tickFormat.apply(h,l):L:e,g=u.selectAll(&quot;.tick&quot;).data(p,h),m=g.enter().insert(&quot;g&quot;,&quot;.domain&quot;).attr(&quot;class&quot;,&quot;tick&quot;).style(&quot;opacity&quot;,kt),v=t.transition(g.exit()).style(&quot;opacity&quot;,kt).remove(),y=t.transition(g.order()).style(&quot;opacity&quot;,1),x=Math.max(a,0)+s,b=mo(h),_=u.selectAll(&quot;.domain&quot;).data([0]),w=(_.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;domain&quot;),t.transition(_));m.append(&quot;line&quot;),m.append(&quot;text&quot;);var T,k,M,A,S=m.select(&quot;line&quot;),E=y.select(&quot;line&quot;),C=g.select(&quot;text&quot;).text(d),I=m.select(&quot;text&quot;),P=y.select(&quot;text&quot;),z=&quot;top&quot;===i||&quot;left&quot;===i?-1:1;if(&quot;bottom&quot;===i||&quot;top&quot;===i?(n=Ls,T=&quot;x&quot;,M=&quot;y&quot;,k=&quot;x2&quot;,A=&quot;y2&quot;,C.attr(&quot;dy&quot;,z&lt;0?&quot;0em&quot;:&quot;.71em&quot;).style(&quot;text-anchor&quot;,&quot;middle&quot;),w.attr(&quot;d&quot;,&quot;M&quot;+b[0]+&quot;,&quot;+z*o+&quot;V0H&quot;+b[1]+&quot;V&quot;+z*o)):(n=Is,T=&quot;y&quot;,M=&quot;x&quot;,k=&quot;y2&quot;,A=&quot;x2&quot;,C.attr(&quot;dy&quot;,&quot;.32em&quot;).style(&quot;text-anchor&quot;,z&lt;0?&quot;end&quot;:&quot;start&quot;),w.attr(&quot;d&quot;,&quot;M&quot;+z*o+&quot;,&quot;+b[0]+&quot;H0V&quot;+b[1]+&quot;H&quot;+z*o)),S.attr(A,z*a),I.attr(M,z*x),E.attr(k,0).attr(A,z*a),P.attr(T,0).attr(M,z*x),h.rangeBand){var O=h,D=O.rangeBand()/2;f=h=function(t){return O(t)+D}}else f.rangeBand?f=h:v.call(n,h,f);m.call(n,f,h),y.call(n,h,h)}))}return u.scale=function(t){return arguments.length?(r=t,u):r},u.orient=function(t){return arguments.length?(i=t in Cs?t+&quot;&quot;:Es,u):i},u.ticks=function(){return arguments.length?(l=n(arguments),u):l},u.tickValues=function(t){return arguments.length?(c=t,u):c},u.tickFormat=function(t){return arguments.length?(e=t,u):e},u.tickSize=function(t){var e=arguments.length;return e?(a=+t,o=+arguments[e-1],u):a},u.innerTickSize=function(t){return arguments.length?(a=+t,u):a},u.outerTickSize=function(t){return arguments.length?(o=+t,u):o},u.tickPadding=function(t){return arguments.length?(s=+t,u):s},u.tickSubdivide=function(){return arguments.length&amp;&amp;u},u};var Es=&quot;bottom&quot;,Cs={top:1,right:1,bottom:1,left:1};function Ls(t,e,r){t.attr(&quot;transform&quot;,(function(t){var n=e(t);return&quot;translate(&quot;+(isFinite(n)?n:r(t))+&quot;,0)&quot;}))}function Is(t,e,r){t.attr(&quot;transform&quot;,(function(t){var n=e(t);return&quot;translate(0,&quot;+(isFinite(n)?n:r(t))+&quot;)&quot;}))}t.svg.brush=function(){var e,r,n=N(h,&quot;brushstart&quot;,&quot;brush&quot;,&quot;brushend&quot;),i=null,a=null,s=[0,0],l=[0,0],c=!0,u=!0,f=zs[0];function h(e){e.each((function(){var e=t.select(this).style(&quot;pointer-events&quot;,&quot;all&quot;).style(&quot;-webkit-tap-highlight-color&quot;,&quot;rgba(0,0,0,0)&quot;).on(&quot;mousedown.brush&quot;,m).on(&quot;touchstart.brush&quot;,m),r=e.selectAll(&quot;.background&quot;).data([0]);r.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;background&quot;).style(&quot;visibility&quot;,&quot;hidden&quot;).style(&quot;cursor&quot;,&quot;crosshair&quot;),e.selectAll(&quot;.extent&quot;).data([0]).enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;extent&quot;).style(&quot;cursor&quot;,&quot;move&quot;);var n=e.selectAll(&quot;.resize&quot;).data(f,L);n.exit().remove(),n.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;resize &quot;+t})).style(&quot;cursor&quot;,(function(t){return Ps[t]})).append(&quot;rect&quot;).attr(&quot;x&quot;,(function(t){return/[ew]$/.test(t)?-3:null})).attr(&quot;y&quot;,(function(t){return/^[ns]/.test(t)?-3:null})).attr(&quot;width&quot;,6).attr(&quot;height&quot;,6).style(&quot;visibility&quot;,&quot;hidden&quot;),n.style(&quot;display&quot;,h.empty()?&quot;none&quot;:null);var o,s=t.transition(e),l=t.transition(r);i&amp;&amp;(o=mo(i),l.attr(&quot;x&quot;,o[0]).attr(&quot;width&quot;,o[1]-o[0]),d(s)),a&amp;&amp;(o=mo(a),l.attr(&quot;y&quot;,o[0]).attr(&quot;height&quot;,o[1]-o[0]),g(s)),p(s)}))}function p(t){t.selectAll(&quot;.resize&quot;).attr(&quot;transform&quot;,(function(t){return&quot;translate(&quot;+s[+/e$/.test(t)]+&quot;,&quot;+l[+/^s/.test(t)]+&quot;)&quot;}))}function d(t){t.select(&quot;.extent&quot;).attr(&quot;x&quot;,s[0]),t.selectAll(&quot;.extent,.n&gt;rect,.s&gt;rect&quot;).attr(&quot;width&quot;,s[1]-s[0])}function g(t){t.select(&quot;.extent&quot;).attr(&quot;y&quot;,l[0]),t.selectAll(&quot;.extent,.e&gt;rect,.w&gt;rect&quot;).attr(&quot;height&quot;,l[1]-l[0])}function m(){var f,m,v=this,y=t.select(t.event.target),x=n.of(v,arguments),b=t.select(v),_=y.datum(),w=!/^(n|s)$/.test(_)&amp;&amp;i,T=!/^(e|w)$/.test(_)&amp;&amp;a,k=y.classed(&quot;extent&quot;),M=bt(v),A=t.mouse(v),S=t.select(o(v)).on(&quot;keydown.brush&quot;,L).on(&quot;keyup.brush&quot;,I);if(t.event.changedTouches?S.on(&quot;touchmove.brush&quot;,P).on(&quot;touchend.brush&quot;,O):S.on(&quot;mousemove.brush&quot;,P).on(&quot;mouseup.brush&quot;,O),b.interrupt().selectAll(&quot;*&quot;).interrupt(),k)A[0]=s[0]-A[0],A[1]=l[0]-A[1];else if(_){var E=+/w$/.test(_),C=+/^n/.test(_);m=[s[1-E]-A[0],l[1-C]-A[1]],A[0]=s[E],A[1]=l[C]}else t.event.altKey&amp;&amp;(f=A.slice());function L(){32==t.event.keyCode&amp;&amp;(k||(f=null,A[0]-=s[1],A[1]-=l[1],k=2),F())}function I(){32==t.event.keyCode&amp;&amp;2==k&amp;&amp;(A[0]+=s[1],A[1]+=l[1],k=0,F())}function P(){var e=t.mouse(v),r=!1;m&amp;&amp;(e[0]+=m[0],e[1]+=m[1]),k||(t.event.altKey?(f||(f=[(s[0]+s[1])/2,(l[0]+l[1])/2]),A[0]=s[+(e[0]&lt;f[0])],A[1]=l[+(e[1]&lt;f[1])]):f=null),w&amp;&amp;z(e,i,0)&amp;&amp;(d(b),r=!0),T&amp;&amp;z(e,a,1)&amp;&amp;(g(b),r=!0),r&amp;&amp;(p(b),x({type:&quot;brush&quot;,mode:k?&quot;move&quot;:&quot;resize&quot;}))}function z(t,n,i){var a,o,h=mo(n),p=h[0],d=h[1],g=A[i],m=i?l:s,v=m[1]-m[0];if(k&amp;&amp;(p-=g,d-=v+g),a=(i?u:c)?Math.max(p,Math.min(d,t[i])):t[i],k?o=(a+=g)+v:(f&amp;&amp;(g=Math.max(p,Math.min(d,2*f[i]-a))),g&lt;a?(o=a,a=g):o=g),m[0]!=a||m[1]!=o)return i?r=null:e=null,m[0]=a,m[1]=o,!0}function O(){P(),b.style(&quot;pointer-events&quot;,&quot;all&quot;).selectAll(&quot;.resize&quot;).style(&quot;display&quot;,h.empty()?&quot;none&quot;:null),t.select(&quot;body&quot;).style(&quot;cursor&quot;,null),S.on(&quot;mousemove.brush&quot;,null).on(&quot;mouseup.brush&quot;,null).on(&quot;touchmove.brush&quot;,null).on(&quot;touchend.brush&quot;,null).on(&quot;keydown.brush&quot;,null).on(&quot;keyup.brush&quot;,null),M(),x({type:&quot;brushend&quot;})}b.style(&quot;pointer-events&quot;,&quot;none&quot;).selectAll(&quot;.resize&quot;).style(&quot;display&quot;,null),t.select(&quot;body&quot;).style(&quot;cursor&quot;,y.style(&quot;cursor&quot;)),x({type:&quot;brushstart&quot;}),P()}return h.event=function(i){i.each((function(){var i=n.of(this,arguments),a={x:s,y:l,i:e,j:r},o=this.__chart__||a;this.__chart__=a,bs?t.select(this).transition().each(&quot;start.brush&quot;,(function(){e=o.i,r=o.j,s=o.x,l=o.y,i({type:&quot;brushstart&quot;})})).tween(&quot;brush:brush&quot;,(function(){var t=ta(s,a.x),n=ta(l,a.y);return e=r=null,function(e){s=a.x=t(e),l=a.y=n(e),i({type:&quot;brush&quot;,mode:&quot;resize&quot;})}})).each(&quot;end.brush&quot;,(function(){e=a.i,r=a.j,i({type:&quot;brush&quot;,mode:&quot;resize&quot;}),i({type:&quot;brushend&quot;})})):(i({type:&quot;brushstart&quot;}),i({type:&quot;brush&quot;,mode:&quot;resize&quot;}),i({type:&quot;brushend&quot;}))}))},h.x=function(t){return arguments.length?(f=zs[!(i=t)&lt;&lt;1|!a],h):i},h.y=function(t){return arguments.length?(f=zs[!i&lt;&lt;1|!(a=t)],h):a},h.clamp=function(t){return arguments.length?(i&amp;&amp;a?(c=!!t[0],u=!!t[1]):i?c=!!t:a&amp;&amp;(u=!!t),h):i&amp;&amp;a?[c,u]:i?c:a?u:null},h.extent=function(t){var n,o,c,u,f;return arguments.length?(i&amp;&amp;(n=t[0],o=t[1],a&amp;&amp;(n=n[0],o=o[0]),e=[n,o],i.invert&amp;&amp;(n=i(n),o=i(o)),o&lt;n&amp;&amp;(f=n,n=o,o=f),n==s[0]&amp;&amp;o==s[1]||(s=[n,o])),a&amp;&amp;(c=t[0],u=t[1],i&amp;&amp;(c=c[1],u=u[1]),r=[c,u],a.invert&amp;&amp;(c=a(c),u=a(u)),u&lt;c&amp;&amp;(f=c,c=u,u=f),c==l[0]&amp;&amp;u==l[1]||(l=[c,u])),h):(i&amp;&amp;(e?(n=e[0],o=e[1]):(n=s[0],o=s[1],i.invert&amp;&amp;(n=i.invert(n),o=i.invert(o)),o&lt;n&amp;&amp;(f=n,n=o,o=f))),a&amp;&amp;(r?(c=r[0],u=r[1]):(c=l[0],u=l[1],a.invert&amp;&amp;(c=a.invert(c),u=a.invert(u)),u&lt;c&amp;&amp;(f=c,c=u,u=f))),i&amp;&amp;a?[[n,c],[o,u]]:i?[n,o]:a&amp;&amp;[c,u])},h.clear=function(){return h.empty()||(s=[0,0],l=[0,0],e=r=null),h},h.empty=function(){return!!i&amp;&amp;s[0]==s[1]||!!a&amp;&amp;l[0]==l[1]},t.rebind(h,n,&quot;on&quot;)};var Ps={n:&quot;ns-resize&quot;,e:&quot;ew-resize&quot;,s:&quot;ns-resize&quot;,w:&quot;ew-resize&quot;,nw:&quot;nwse-resize&quot;,ne:&quot;nesw-resize&quot;,se:&quot;nwse-resize&quot;,sw:&quot;nesw-resize&quot;},zs=[[&quot;n&quot;,&quot;e&quot;,&quot;s&quot;,&quot;w&quot;,&quot;nw&quot;,&quot;ne&quot;,&quot;se&quot;,&quot;sw&quot;],[&quot;e&quot;,&quot;w&quot;],[&quot;n&quot;,&quot;s&quot;],[]],Os=Pe.format=sr.timeFormat,Ds=Os.utc,Rs=Ds(&quot;%Y-%m-%dT%H:%M:%S.%LZ&quot;);function Fs(t){return t.toISOString()}function Bs(e,r,n){function i(t){return e(t)}function a(e,n){var i=(e[1]-e[0])/n,a=t.bisect(js,i);return a==js.length?[r.year,ko(e.map((function(t){return t/31536e6})),n)[2]]:a?r[i/js[a-1]&lt;js[a]/i?a-1:a]:[qs,ko(e,n)[2]]}return i.invert=function(t){return Ns(e.invert(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain().map(Ns)},i.nice=function(t,e){var r=i.domain(),n=go(r),o=null==t?a(n,10):&quot;number&quot;==typeof t&amp;&amp;a(n,t);function s(r){return!isNaN(r)&amp;&amp;!t.range(r,Ns(+r+1),e).length}return o&amp;&amp;(t=o[0],e=o[1]),i.domain(yo(r,e&gt;1?{floor:function(e){for(;s(e=t.floor(e));)e=Ns(e-1);return e},ceil:function(e){for(;s(e=t.ceil(e));)e=Ns(+e+1);return e}}:t))},i.ticks=function(t,e){var r=go(i.domain()),n=null==t?a(r,10):&quot;number&quot;==typeof t?a(r,t):!t.range&amp;&amp;[{range:t},e];return n&amp;&amp;(t=n[0],e=n[1]),t.range(r[0],Ns(+r[1]+1),e&lt;1?1:e)},i.tickFormat=function(){return n},i.copy=function(){return Bs(e.copy(),r,n)},wo(i,e)}function Ns(t){return new Date(t)}Os.iso=Date.prototype.toISOString&amp;&amp;+new Date(&quot;2000-01-01T00:00:00.000Z&quot;)?Fs:Rs,Fs.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},Fs.toString=Rs.toString,Pe.second=Re((function(t){return new ze(1e3*Math.floor(t/1e3))}),(function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))}),(function(t){return t.getSeconds()})),Pe.seconds=Pe.second.range,Pe.seconds.utc=Pe.second.utc.range,Pe.minute=Re((function(t){return new ze(6e4*Math.floor(t/6e4))}),(function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))}),(function(t){return t.getMinutes()})),Pe.minutes=Pe.minute.range,Pe.minutes.utc=Pe.minute.utc.range,Pe.hour=Re((function(t){var e=t.getTimezoneOffset()/60;return new ze(36e5*(Math.floor(t/36e5-e)+e))}),(function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))}),(function(t){return t.getHours()})),Pe.hours=Pe.hour.range,Pe.hours.utc=Pe.hour.utc.range,Pe.month=Re((function(t){return(t=Pe.day(t)).setDate(1),t}),(function(t,e){t.setMonth(t.getMonth()+e)}),(function(t){return t.getMonth()})),Pe.months=Pe.month.range,Pe.months.utc=Pe.month.utc.range;var js=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],Us=[[Pe.second,1],[Pe.second,5],[Pe.second,15],[Pe.second,30],[Pe.minute,1],[Pe.minute,5],[Pe.minute,15],[Pe.minute,30],[Pe.hour,1],[Pe.hour,3],[Pe.hour,6],[Pe.hour,12],[Pe.day,1],[Pe.day,2],[Pe.week,1],[Pe.month,1],[Pe.month,3],[Pe.year,1]],Vs=Os.multi([[&quot;.%L&quot;,function(t){return t.getMilliseconds()}],[&quot;:%S&quot;,function(t){return t.getSeconds()}],[&quot;%I:%M&quot;,function(t){return t.getMinutes()}],[&quot;%I %p&quot;,function(t){return t.getHours()}],[&quot;%a %d&quot;,function(t){return t.getDay()&amp;&amp;1!=t.getDate()}],[&quot;%b %d&quot;,function(t){return 1!=t.getDate()}],[&quot;%B&quot;,function(t){return t.getMonth()}],[&quot;%Y&quot;,Yr]]),qs={range:function(e,r,n){return t.range(Math.ceil(e/n)*n,+r,n).map(Ns)},floor:L,ceil:L};Us.year=Pe.year,Pe.scale=function(){return Bs(t.scale.linear(),Us,Vs)};var Hs=Us.map((function(t){return[t[0].utc,t[1]]})),Gs=Ds.multi([[&quot;.%L&quot;,function(t){return t.getUTCMilliseconds()}],[&quot;:%S&quot;,function(t){return t.getUTCSeconds()}],[&quot;%I:%M&quot;,function(t){return t.getUTCMinutes()}],[&quot;%I %p&quot;,function(t){return t.getUTCHours()}],[&quot;%a %d&quot;,function(t){return t.getUTCDay()&amp;&amp;1!=t.getUTCDate()}],[&quot;%b %d&quot;,function(t){return 1!=t.getUTCDate()}],[&quot;%B&quot;,function(t){return t.getUTCMonth()}],[&quot;%Y&quot;,Yr]]);function Ys(t){return JSON.parse(t.responseText)}function Ws(t){var e=i.createRange();return e.selectNode(i.body),e.createContextualFragment(t.responseText)}Hs.year=Pe.year.utc,Pe.scale.utc=function(){return Bs(t.scale.linear(),Hs,Gs)},t.text=ge((function(t){return t.responseText})),t.json=function(t,e){return me(t,&quot;application/json&quot;,Ys,e)},t.html=function(t,e){return me(t,&quot;text/html&quot;,Ws,e)},t.xml=ge((function(t){return t.responseXML})),&quot;object&quot;==typeof e&amp;&amp;e.exports?e.exports=t:this.d3=t}()},{}],170:[function(t,e,r){e.exports=function(){for(var t=0;t&lt;arguments.length;t++)if(void 0!==arguments[t])return arguments[t]}},{}],171:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;incremental-convex-hull&quot;),i=t(&quot;uniq&quot;);function a(t,e){this.point=t,this.index=e}function o(t,e){for(var r=t.point,n=e.point,i=r.length,a=0;a&lt;i;++a){var o=n[a]-r[a];if(o)return o}return 0}e.exports=function(t,e){var r=t.length;if(0===r)return[];var s=t[0].length;if(s&lt;1)return[];if(1===s)return function(t,e,r){if(1===t)return r?[[-1,0]]:[];var n=e.map((function(t,e){return[t[0],e]}));n.sort((function(t,e){return t[0]-e[0]}));for(var i=new Array(t-1),a=1;a&lt;t;++a){var o=n[a-1],s=n[a];i[a-1]=[o[1],s[1]]}r&amp;&amp;i.push([-1,i[0][1]],[i[t-1][1],-1]);return i}(r,t,e);for(var l=new Array(r),c=1,u=0;u&lt;r;++u){for(var f=t[u],h=new Array(s+1),p=0,d=0;d&lt;s;++d){var g=f[d];h[d]=g,p+=g*g}h[s]=p,l[u]=new a(h,u),c=Math.max(p,c)}i(l,o),r=l.length;var m=new Array(r+s+1),v=new Array(r+s+1),y=(s+1)*(s+1)*c,x=new Array(s+1);for(u=0;u&lt;=s;++u)x[u]=0;x[s]=y,m[0]=x.slice(),v[0]=-1;for(u=0;u&lt;=s;++u){(h=x.slice())[u]=1,m[u+1]=h,v[u+1]=-1}for(u=0;u&lt;r;++u){var b=l[u];m[u+s+1]=b.point,v[u+s+1]=b.index}var _=n(m,!1);_=e?_.filter((function(t){for(var e=0,r=0;r&lt;=s;++r){var n=v[t[r]];if(n&lt;0&amp;&amp;++e&gt;=2)return!1;t[r]=n}return!0})):_.filter((function(t){for(var e=0;e&lt;=s;++e){var r=v[t[e]];if(r&lt;0)return!1;t[e]=r}return!0}));if(1&amp;s)for(u=0;u&lt;_.length;++u){h=(b=_[u])[0];b[0]=b[1],b[1]=h}return _}},{&quot;incremental-convex-hull&quot;:459,uniq:597}],172:[function(t,e,r){&quot;use strict&quot;;e.exports=a;var n=(a.canvas=document.createElement(&quot;canvas&quot;)).getContext(&quot;2d&quot;),i=o([32,126]);function a(t,e){Array.isArray(t)&amp;&amp;(t=t.join(&quot;, &quot;));var r,a={},s=16,l=.05;e&amp;&amp;(2===e.length&amp;&amp;&quot;number&quot;==typeof e[0]?r=o(e):Array.isArray(e)?r=e:(e.o?r=o(e.o):e.pairs&amp;&amp;(r=e.pairs),e.fontSize&amp;&amp;(s=e.fontSize),null!=e.threshold&amp;&amp;(l=e.threshold))),r||(r=i),n.font=s+&quot;px &quot;+t;for(var c=0;c&lt;r.length;c++){var u=r[c],f=n.measureText(u[0]).width+n.measureText(u[1]).width,h=n.measureText(u).width;if(Math.abs(f-h)&gt;s*l){var p=(h-f)/s;a[u]=1e3*p}}return a}function o(t){for(var e=[],r=t[0];r&lt;=t[1];r++)for(var n=String.fromCharCode(r),i=t[0];i&lt;t[1];i++){var a=n+String.fromCharCode(i);e.push(a)}return e}a.createPairs=o,a.ascii=i},{}],173:[function(t,e,r){(function(t){(function(){var r=!1;if(&quot;undefined&quot;!=typeof Float64Array){var n=new Float64Array(1),i=new Uint32Array(n.buffer);if(n[0]=1,r=!0,1072693248===i[1]){e.exports=function(t){return n[0]=t,[i[0],i[1]]},e.exports.pack=function(t,e){return i[0]=t,i[1]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[0]},e.exports.hi=function(t){return n[0]=t,i[1]}}else if(1072693248===i[0]){e.exports=function(t){return n[0]=t,[i[1],i[0]]},e.exports.pack=function(t,e){return i[1]=t,i[0]=e,n[0]},e.exports.lo=function(t){return n[0]=t,i[1]},e.exports.hi=function(t){return n[0]=t,i[0]}}else r=!1}if(!r){var a=new t(8);e.exports=function(t){return a.writeDoubleLE(t,0,!0),[a.readUInt32LE(0,!0),a.readUInt32LE(4,!0)]},e.exports.pack=function(t,e){return a.writeUInt32LE(t,0,!0),a.writeUInt32LE(e,4,!0),a.readDoubleLE(0,!0)},e.exports.lo=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(0,!0)},e.exports.hi=function(t){return a.writeDoubleLE(t,0,!0),a.readUInt32LE(4,!0)}}e.exports.sign=function(t){return e.exports.hi(t)&gt;&gt;&gt;31},e.exports.exponent=function(t){return(e.exports.hi(t)&lt;&lt;1&gt;&gt;&gt;21)-1023},e.exports.fraction=function(t){var r=e.exports.lo(t),n=e.exports.hi(t),i=1048575&amp;n;return 2146435072&amp;n&amp;&amp;(i+=1&lt;&lt;20),[r,i]},e.exports.denormalized=function(t){return!(2146435072&amp;e.exports.hi(t))}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{buffer:111}],174:[function(t,e,r){var n=t(&quot;abs-svg-path&quot;),i=t(&quot;normalize-svg-path&quot;),a={M:&quot;moveTo&quot;,C:&quot;bezierCurveTo&quot;};e.exports=function(t,e){t.beginPath(),i(n(e)).forEach((function(e){var r=e[0],n=e.slice(1);t[a[r]].apply(t,n)})),t.closePath()}},{&quot;abs-svg-path&quot;:65,&quot;normalize-svg-path&quot;:497}],175:[function(t,e,r){e.exports=function(t){switch(t){case&quot;int8&quot;:return Int8Array;case&quot;int16&quot;:return Int16Array;case&quot;int32&quot;:return Int32Array;case&quot;uint8&quot;:return Uint8Array;case&quot;uint16&quot;:return Uint16Array;case&quot;uint32&quot;:return Uint32Array;case&quot;float32&quot;:return Float32Array;case&quot;float64&quot;:return Float64Array;case&quot;array&quot;:return Array;case&quot;uint8_clamped&quot;:return Uint8ClampedArray}}},{}],176:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){switch(&quot;undefined&quot;==typeof e&amp;&amp;(e=0),typeof t){case&quot;number&quot;:if(t&gt;0)return function(t,e){var r,n;for(r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}(0|t,e);break;case&quot;object&quot;:if(&quot;number&quot;==typeof t.length)return function t(e,r,n){var i=0|e[n];if(i&lt;=0)return[];var a,o=new Array(i);if(n===e.length-1)for(a=0;a&lt;i;++a)o[a]=r;else for(a=0;a&lt;i;++a)o[a]=t(e,r,n+1);return o}(t,e,0)}return[]}},{}],177:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r){r=r||2;var n,s,l,c,u,p,d,m=e&amp;&amp;e.length,v=m?e[0]*r:t.length,y=i(t,0,v,r,!0),x=[];if(!y||y.next===y.prev)return x;if(m&amp;&amp;(y=function(t,e,r,n){var o,s,l,c,u,p=[];for(o=0,s=e.length;o&lt;s;o++)l=e[o]*n,c=o&lt;s-1?e[o+1]*n:t.length,(u=i(t,l,c,n,!1))===u.next&amp;&amp;(u.steiner=!0),p.push(g(u));for(p.sort(f),o=0;o&lt;p.length;o++)h(p[o],r),r=a(r,r.next);return r}(t,e,y,r)),t.length&gt;80*r){n=l=t[0],s=c=t[1];for(var b=r;b&lt;v;b+=r)(u=t[b])&lt;n&amp;&amp;(n=u),(p=t[b+1])&lt;s&amp;&amp;(s=p),u&gt;l&amp;&amp;(l=u),p&gt;c&amp;&amp;(c=p);d=0!==(d=Math.max(l-n,c-s))?1/d:0}return o(y,x,r,n,s,d),x}function i(t,e,r,n,i){var a,o;if(i===E(t,e,r,n)&gt;0)for(a=e;a&lt;r;a+=n)o=M(a,t[a],t[a+1],o);else for(a=r-n;a&gt;=e;a-=n)o=M(a,t[a],t[a+1],o);return o&amp;&amp;x(o,o.next)&amp;&amp;(A(o),o=o.next),o}function a(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!x(n,n.next)&amp;&amp;0!==y(n.prev,n,n.next))n=n.next;else{if(A(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function o(t,e,r,n,i,f,h){if(t){!h&amp;&amp;f&amp;&amp;function(t,e,r,n){var i=t;do{null===i.z&amp;&amp;(i.z=d(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e&lt;c&amp;&amp;(s++,n=n.nextZ);e++);for(l=c;s&gt;0||l&gt;0&amp;&amp;n;)0!==s&amp;&amp;(0===l||!n||r.z&lt;=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o&gt;1)}(i)}(t,n,i,f);for(var p,g,m=t;t.prev!==t.next;)if(p=t.prev,g=t.next,f?l(t,n,i,f):s(t))e.push(p.i/r),e.push(t.i/r),e.push(g.i/r),A(t),t=g.next,m=g.next;else if((t=g)===m){h?1===h?o(t=c(a(t),e,r),e,r,n,i,f,2):2===h&amp;&amp;u(t,e,r,n,i,f):o(a(t),e,r,n,i,f,1);break}}}function s(t){var e=t.prev,r=t,n=t.next;if(y(e,r,n)&gt;=0)return!1;for(var i=t.next.next;i!==t.prev;){if(m(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&amp;&amp;y(i.prev,i,i.next)&gt;=0)return!1;i=i.next}return!0}function l(t,e,r,n){var i=t.prev,a=t,o=t.next;if(y(i,a,o)&gt;=0)return!1;for(var s=i.x&lt;a.x?i.x&lt;o.x?i.x:o.x:a.x&lt;o.x?a.x:o.x,l=i.y&lt;a.y?i.y&lt;o.y?i.y:o.y:a.y&lt;o.y?a.y:o.y,c=i.x&gt;a.x?i.x&gt;o.x?i.x:o.x:a.x&gt;o.x?a.x:o.x,u=i.y&gt;a.y?i.y&gt;o.y?i.y:o.y:a.y&gt;o.y?a.y:o.y,f=d(s,l,e,r,n),h=d(c,u,e,r,n),p=t.prevZ,g=t.nextZ;p&amp;&amp;p.z&gt;=f&amp;&amp;g&amp;&amp;g.z&lt;=h;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;y(p.prev,p,p.next)&gt;=0)return!1;if(p=p.prevZ,g!==t.prev&amp;&amp;g!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&amp;&amp;y(g.prev,g,g.next)&gt;=0)return!1;g=g.nextZ}for(;p&amp;&amp;p.z&gt;=f;){if(p!==t.prev&amp;&amp;p!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,p.x,p.y)&amp;&amp;y(p.prev,p,p.next)&gt;=0)return!1;p=p.prevZ}for(;g&amp;&amp;g.z&lt;=h;){if(g!==t.prev&amp;&amp;g!==t.next&amp;&amp;m(i.x,i.y,a.x,a.y,o.x,o.y,g.x,g.y)&amp;&amp;y(g.prev,g,g.next)&gt;=0)return!1;g=g.nextZ}return!0}function c(t,e,r){var n=t;do{var i=n.prev,o=n.next.next;!x(i,o)&amp;&amp;b(i,n,n.next,o)&amp;&amp;T(i,o)&amp;&amp;T(o,i)&amp;&amp;(e.push(i.i/r),e.push(n.i/r),e.push(o.i/r),A(n),A(n.next),n=t=o),n=n.next}while(n!==t);return a(n)}function u(t,e,r,n,i,s){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&amp;&amp;v(l,c)){var u=k(l,c);return l=a(l,l.next),u=a(u,u.next),o(l,e,r,n,i,s),void o(u,e,r,n,i,s)}c=c.next}l=l.next}while(l!==t)}function f(t,e){return t.x-e.x}function h(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a&lt;=n.y&amp;&amp;a&gt;=n.next.y&amp;&amp;n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s&lt;=i&amp;&amp;s&gt;o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x&lt;n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,h=1/0;n=r;do{i&gt;=n.x&amp;&amp;n.x&gt;=u&amp;&amp;i!==n.x&amp;&amp;m(a&lt;f?i:o,a,u,f,a&lt;f?o:i,a,n.x,n.y)&amp;&amp;(l=Math.abs(a-n.y)/(i-n.x),T(n,t)&amp;&amp;(l&lt;h||l===h&amp;&amp;(n.x&gt;r.x||n.x===r.x&amp;&amp;p(r,n)))&amp;&amp;(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e)){var r=k(e,t);a(e,e.next),a(r,r.next)}}function p(t,e){return y(t.prev,t,e.prev)&lt;0&amp;&amp;y(e.next,t,t.next)&lt;0}function d(t,e,r,n,i){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t=32767*(t-r)*i)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e=32767*(e-n)*i)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1}function g(t){var e=t,r=t;do{(e.x&lt;r.x||e.x===r.x&amp;&amp;e.y&lt;r.y)&amp;&amp;(r=e),e=e.next}while(e!==t);return r}function m(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)&gt;=0&amp;&amp;(t-o)*(n-s)-(r-o)*(e-s)&gt;=0&amp;&amp;(r-o)*(a-s)-(i-o)*(n-s)&gt;=0}function v(t,e){return t.next.i!==e.i&amp;&amp;t.prev.i!==e.i&amp;&amp;!function(t,e){var r=t;do{if(r.i!==t.i&amp;&amp;r.next.i!==t.i&amp;&amp;r.i!==e.i&amp;&amp;r.next.i!==e.i&amp;&amp;b(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&amp;&amp;(T(t,e)&amp;&amp;T(e,t)&amp;&amp;function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y&gt;a!=r.next.y&gt;a&amp;&amp;r.next.y!==r.y&amp;&amp;i&lt;(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&amp;&amp;(n=!n),r=r.next}while(r!==t);return n}(t,e)&amp;&amp;(y(t.prev,t,e.prev)||y(t,e.prev,e))||x(t,e)&amp;&amp;y(t.prev,t,t.next)&gt;0&amp;&amp;y(e.prev,e,e.next)&gt;0)}function y(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function x(t,e){return t.x===e.x&amp;&amp;t.y===e.y}function b(t,e,r,n){var i=w(y(t,e,r)),a=w(y(t,e,n)),o=w(y(r,n,t)),s=w(y(r,n,e));return i!==a&amp;&amp;o!==s||(!(0!==i||!_(t,r,e))||(!(0!==a||!_(t,n,e))||(!(0!==o||!_(r,t,n))||!(0!==s||!_(r,e,n)))))}function _(t,e,r){return e.x&lt;=Math.max(t.x,r.x)&amp;&amp;e.x&gt;=Math.min(t.x,r.x)&amp;&amp;e.y&lt;=Math.max(t.y,r.y)&amp;&amp;e.y&gt;=Math.min(t.y,r.y)}function w(t){return t&gt;0?1:t&lt;0?-1:0}function T(t,e){return y(t.prev,t,t.next)&lt;0?y(t,e,t.next)&gt;=0&amp;&amp;y(t,t.prev,e)&gt;=0:y(t,e,t.prev)&lt;0||y(t,t.next,e)&lt;0}function k(t,e){var r=new S(t.i,t.x,t.y),n=new S(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function M(t,e,r,n){var i=new S(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function A(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&amp;&amp;(t.prevZ.nextZ=t.nextZ),t.nextZ&amp;&amp;(t.nextZ.prevZ=t.prevZ)}function S(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function E(t,e,r,n){for(var i=0,a=e,o=r-n;a&lt;r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}e.exports=n,e.exports.default=n,n.deviation=function(t,e,r,n){var i=e&amp;&amp;e.length,a=i?e[0]*r:t.length,o=Math.abs(E(t,0,a,r));if(i)for(var s=0,l=e.length;s&lt;l;s++){var c=e[s]*r,u=s&lt;l-1?e[s+1]*r:t.length;o-=Math.abs(E(t,c,u,r))}var f=0;for(s=0;s&lt;n.length;s+=3){var h=n[s]*r,p=n[s+1]*r,d=n[s+2]*r;f+=Math.abs((t[h]-t[d])*(t[p+1]-t[h+1])-(t[h]-t[p])*(t[d+1]-t[h+1]))}return 0===o&amp;&amp;0===f?0:Math.abs((f-o)/o)},n.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i&lt;t.length;i++){for(var a=0;a&lt;t[i].length;a++)for(var o=0;o&lt;e;o++)r.vertices.push(t[i][a][o]);i&gt;0&amp;&amp;(n+=t[i-1].length,r.holes.push(n))}return r}},{}],178:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.length;if(&quot;number&quot;!=typeof e){e=0;for(var i=0;i&lt;r;++i){var a=t[i];e=Math.max(e,a[0],a[1])}e=1+(0|e)}e|=0;var o=new Array(e);for(i=0;i&lt;e;++i)o[i]=[];for(i=0;i&lt;r;++i){a=t[i];o[a[0]].push(a[1]),o[a[1]].push(a[0])}for(var s=0;s&lt;e;++s)n(o[s],(function(t,e){return t-e}));return o};var n=t(&quot;uniq&quot;)},{uniq:597}],179:[function(t,e,r){var n=t(&quot;strongly-connected-components&quot;);e.exports=function(t,e){var r,i=[],a=[],o=[],s={},l=[];function c(t){var e,n,i=!1;for(a.push(t),o[t]=!0,e=0;e&lt;l[t].length;e++)(n=l[t][e])===r?(u(r,a),i=!0):o[n]||(i=c(n));if(i)!function t(e){o[e]=!1,s.hasOwnProperty(e)&amp;&amp;Object.keys(s[e]).forEach((function(r){delete s[e][r],o[r]&amp;&amp;t(r)}))}(t);else for(e=0;e&lt;l[t].length;e++){n=l[t][e];var f=s[n];f||(f={},s[n]=f),f[n]=!0}return a.pop(),i}function u(t,r){var n=[].concat(r).concat(t);e?e(c):i.push(n)}function f(e){!function(e){for(var r=0;r&lt;t.length;r++)r&lt;e&amp;&amp;(t[r]=[]),t[r]=t[r].filter((function(t){return t&gt;=e}))}(e);for(var r,i=n(t).components.filter((function(t){return t.length&gt;1})),a=1/0,o=0;o&lt;i.length;o++)for(var s=0;s&lt;i[o].length;s++)i[o][s]&lt;a&amp;&amp;(a=i[o][s],r=o);var l=i[r];return!!l&amp;&amp;{leastVertex:a,adjList:t.map((function(t,e){return-1===l.indexOf(e)?[]:t.filter((function(t){return-1!==l.indexOf(t)}))}))}}r=0;for(var h=t.length;r&lt;h;){var p=f(r);if(r=p.leastVertex,l=p.adjList){for(var d=0;d&lt;l.length;d++)for(var g=0;g&lt;l[d].length;g++){var m=l[d][g];o[+m]=!1,s[m]={}}c(r),r+=1}else r=h}return e?void 0:i}},{&quot;strongly-connected-components&quot;:569}],180:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../object/valid-value&quot;);e.exports=function(){return n(this).length=0,this}},{&quot;../../object/valid-value&quot;:211}],181:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Array.from:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:182,&quot;./shim&quot;:183}],182:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e,r=Array.from;return&quot;function&quot;==typeof r&amp;&amp;(e=r(t=[&quot;raz&quot;,&quot;dwa&quot;]),Boolean(e&amp;&amp;e!==t&amp;&amp;&quot;dwa&quot;===e[1]))}},{}],183:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es6-symbol&quot;).iterator,i=t(&quot;../../function/is-arguments&quot;),a=t(&quot;../../function/is-function&quot;),o=t(&quot;../../number/to-pos-integer&quot;),s=t(&quot;../../object/valid-callable&quot;),l=t(&quot;../../object/valid-value&quot;),c=t(&quot;../../object/is-value&quot;),u=t(&quot;../../string/is-string&quot;),f=Array.isArray,h=Function.prototype.call,p={configurable:!0,enumerable:!0,writable:!0,value:null},d=Object.defineProperty;e.exports=function(t){var e,r,g,m,v,y,x,b,_,w,T=arguments[1],k=arguments[2];if(t=Object(l(t)),c(T)&amp;&amp;s(T),this&amp;&amp;this!==Array&amp;&amp;a(this))e=this;else{if(!T){if(i(t))return 1!==(v=t.length)?Array.apply(null,t):((m=new Array(1))[0]=t[0],m);if(f(t)){for(m=new Array(v=t.length),r=0;r&lt;v;++r)m[r]=t[r];return m}}m=[]}if(!f(t))if(void 0!==(_=t[n])){for(x=s(_).call(t),e&amp;&amp;(m=new e),b=x.next(),r=0;!b.done;)w=T?h.call(T,k,b.value,r):b.value,e?(p.value=w,d(m,r,p)):m[r]=w,b=x.next(),++r;v=r}else if(u(t)){for(v=t.length,e&amp;&amp;(m=new e),r=0,g=0;r&lt;v;++r)w=t[r],r+1&lt;v&amp;&amp;(y=w.charCodeAt(0))&gt;=55296&amp;&amp;y&lt;=56319&amp;&amp;(w+=t[++r]),w=T?h.call(T,k,w,g):w,e?(p.value=w,d(m,g,p)):m[g]=w,++g;v=g}if(void 0===v)for(v=o(t.length),e&amp;&amp;(m=new e(v)),r=0;r&lt;v;++r)w=T?h.call(T,k,t[r],r):t[r],e?(p.value=w,d(m,r,p)):m[r]=w;return e&amp;&amp;(p.value=null,m.length=v),m}},{&quot;../../function/is-arguments&quot;:184,&quot;../../function/is-function&quot;:185,&quot;../../number/to-pos-integer&quot;:191,&quot;../../object/is-value&quot;:200,&quot;../../object/valid-callable&quot;:209,&quot;../../object/valid-value&quot;:211,&quot;../../string/is-string&quot;:215,&quot;es6-symbol&quot;:225}],184:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=n.call(function(){return arguments}());e.exports=function(t){return n.call(t)===i}},{}],185:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);e.exports=function(t){return&quot;function&quot;==typeof t&amp;&amp;i(n.call(t))}},{}],186:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){}},{}],187:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Math.sign:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:188,&quot;./shim&quot;:189}],188:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t=Math.sign;return&quot;function&quot;==typeof t&amp;&amp;(1===t(10)&amp;&amp;-1===t(-20))}},{}],189:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t=Number(t),isNaN(t)||0===t?t:t&gt;0?1:-1}},{}],190:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../math/sign&quot;),i=Math.abs,a=Math.floor;e.exports=function(t){return isNaN(t)?0:0!==(t=Number(t))&amp;&amp;isFinite(t)?n(t)*a(i(t)):t}},{&quot;../math/sign&quot;:187}],191:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./to-integer&quot;),i=Math.max;e.exports=function(t){return i(0,n(t))}},{&quot;./to-integer&quot;:190}],192:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./valid-callable&quot;),i=t(&quot;./valid-value&quot;),a=Function.prototype.bind,o=Function.prototype.call,s=Object.keys,l=Object.prototype.propertyIsEnumerable;e.exports=function(t,e){return function(r,c){var u,f=arguments[2],h=arguments[3];return r=Object(i(r)),n(c),u=s(r),h&amp;&amp;u.sort(&quot;function&quot;==typeof h?a.call(h,r):void 0),&quot;function&quot;!=typeof t&amp;&amp;(t=u[t]),o.call(t,u,(function(t,n){return l.call(r,t)?o.call(c,f,r[t],t,r,n):e}))}}},{&quot;./valid-callable&quot;:209,&quot;./valid-value&quot;:211}],193:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.assign:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:194,&quot;./shim&quot;:195}],194:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e=Object.assign;return&quot;function&quot;==typeof e&amp;&amp;(e(t={foo:&quot;raz&quot;},{bar:&quot;dwa&quot;},{trzy:&quot;trzy&quot;}),t.foo+t.bar+t.trzy===&quot;razdwatrzy&quot;)}},{}],195:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../keys&quot;),i=t(&quot;../valid-value&quot;),a=Math.max;e.exports=function(t,e){var r,o,s,l=a(arguments.length,2);for(t=Object(i(t)),s=function(n){try{t[n]=e[n]}catch(t){r||(r=t)}},o=1;o&lt;l;++o)n(e=arguments[o]).forEach(s);if(void 0!==r)throw r;return t}},{&quot;../keys&quot;:201,&quot;../valid-value&quot;:211}],196:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../array/from&quot;),i=t(&quot;./assign&quot;),a=t(&quot;./valid-value&quot;);e.exports=function(t){var e=Object(a(t)),r=arguments[1],o=Object(arguments[2]);if(e!==t&amp;&amp;!r)return e;var s={};return r?n(r,(function(e){(o.ensure||e in t)&amp;&amp;(s[e]=t[e])})):i(s,t),s}},{&quot;../array/from&quot;:181,&quot;./assign&quot;:193,&quot;./valid-value&quot;:211}],197:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o,s=Object.create;t(&quot;./set-prototype-of/is-implemented&quot;)()||(n=t(&quot;./set-prototype-of/shim&quot;)),e.exports=n?1!==n.level?s:(i={},a={},o={configurable:!1,enumerable:!1,writable:!0,value:void 0},Object.getOwnPropertyNames(Object.prototype).forEach((function(t){a[t]=&quot;__proto__&quot;!==t?o:{configurable:!0,enumerable:!1,writable:!0,value:void 0}})),Object.defineProperties(i,a),Object.defineProperty(n,&quot;nullPolyfill&quot;,{configurable:!1,enumerable:!1,writable:!1,value:i}),function(t,e){return s(null===t?i:t,e)}):s},{&quot;./set-prototype-of/is-implemented&quot;:207,&quot;./set-prototype-of/shim&quot;:208}],198:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./_iterate&quot;)(&quot;forEach&quot;)},{&quot;./_iterate&quot;:192}],199:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;),i={function:!0,object:!0};e.exports=function(t){return n(t)&amp;&amp;i[typeof t]||!1}},{&quot;./is-value&quot;:200}],200:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../function/noop&quot;)();e.exports=function(t){return t!==n&amp;&amp;null!==t}},{&quot;../function/noop&quot;:186}],201:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.keys:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:202,&quot;./shim&quot;:203}],202:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){try{return Object.keys(&quot;primitive&quot;),!0}catch(t){return!1}}},{}],203:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../is-value&quot;),i=Object.keys;e.exports=function(t){return i(n(t)?Object(t):t)}},{&quot;../is-value&quot;:200}],204:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./valid-callable&quot;),i=t(&quot;./for-each&quot;),a=Function.prototype.call;e.exports=function(t,e){var r={},o=arguments[2];return n(e),i(t,(function(t,n,i,s){r[n]=a.call(e,o,t,n,i,s)})),r}},{&quot;./for-each&quot;:198,&quot;./valid-callable&quot;:209}],205:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;),i=Array.prototype.forEach,a=Object.create,o=function(t,e){var r;for(r in t)e[r]=t[r]};e.exports=function(t){var e=a(null);return i.call(arguments,(function(t){n(t)&amp;&amp;o(Object(t),e)})),e}},{&quot;./is-value&quot;:200}],206:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?Object.setPrototypeOf:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:207,&quot;./shim&quot;:208}],207:[function(t,e,r){&quot;use strict&quot;;var n=Object.create,i=Object.getPrototypeOf,a={};e.exports=function(){var t=Object.setPrototypeOf,e=arguments[0]||n;return&quot;function&quot;==typeof t&amp;&amp;i(t(e(null),a))===a}},{}],208:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;../is-object&quot;),a=t(&quot;../valid-value&quot;),o=Object.prototype.isPrototypeOf,s=Object.defineProperty,l={configurable:!0,enumerable:!1,writable:!0,value:void 0};n=function(t,e){if(a(t),null===e||i(e))return t;throw new TypeError(&quot;Prototype must be null or an object&quot;)},e.exports=function(t){var e,r;return t?(2===t.level?t.set?(r=t.set,e=function(t,e){return r.call(n(t,e),e),t}):e=function(t,e){return n(t,e).__proto__=e,t}:e=function t(e,r){var i;return n(e,r),(i=o.call(t.nullPolyfill,e))&amp;&amp;delete t.nullPolyfill.__proto__,null===r&amp;&amp;(r=t.nullPolyfill),e.__proto__=r,i&amp;&amp;s(t.nullPolyfill,&quot;__proto__&quot;,l),e},Object.defineProperty(e,&quot;level&quot;,{configurable:!1,enumerable:!1,writable:!1,value:t.level})):null}(function(){var t,e=Object.create(null),r={},n=Object.getOwnPropertyDescriptor(Object.prototype,&quot;__proto__&quot;);if(n){try{(t=n.set).call(e,r)}catch(t){}if(Object.getPrototypeOf(e)===r)return{set:t,level:2}}return e.__proto__=r,Object.getPrototypeOf(e)===r?{level:2}:((e={}).__proto__=r,Object.getPrototypeOf(e)===r&amp;&amp;{level:1})}()),t(&quot;../create&quot;)},{&quot;../create&quot;:197,&quot;../is-object&quot;:199,&quot;../valid-value&quot;:211}],209:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){if(&quot;function&quot;!=typeof t)throw new TypeError(t+&quot; is not a function&quot;);return t}},{}],210:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-object&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not an Object&quot;);return t}},{&quot;./is-object&quot;:199}],211:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-value&quot;);e.exports=function(t){if(!n(t))throw new TypeError(&quot;Cannot use null or undefined&quot;);return t}},{&quot;./is-value&quot;:200}],212:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?String.prototype.contains:t(&quot;./shim&quot;)},{&quot;./is-implemented&quot;:213,&quot;./shim&quot;:214}],213:[function(t,e,r){&quot;use strict&quot;;var n=&quot;razdwatrzy&quot;;e.exports=function(){return&quot;function&quot;==typeof n.contains&amp;&amp;(!0===n.contains(&quot;dwa&quot;)&amp;&amp;!1===n.contains(&quot;foo&quot;))}},{}],214:[function(t,e,r){&quot;use strict&quot;;var n=String.prototype.indexOf;e.exports=function(t){return n.call(this,t,arguments[1])&gt;-1}},{}],215:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString,i=n.call(&quot;&quot;);e.exports=function(t){return&quot;string&quot;==typeof t||t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;(t instanceof String||n.call(t)===i)||!1}},{}],216:[function(t,e,r){&quot;use strict&quot;;var n=Object.create(null),i=Math.random;e.exports=function(){var t;do{t=i().toString(36).slice(2)}while(n[t]);return t}},{}],217:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/set-prototype-of&quot;),a=t(&quot;es5-ext/string/#/contains&quot;),o=t(&quot;d&quot;),s=t(&quot;es6-symbol&quot;),l=t(&quot;./&quot;),c=Object.defineProperty;n=e.exports=function(t,e){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);l.call(this,t),e=e?a.call(e,&quot;key+value&quot;)?&quot;key+value&quot;:a.call(e,&quot;key&quot;)?&quot;key&quot;:&quot;value&quot;:&quot;value&quot;,c(this,&quot;__kind__&quot;,o(&quot;&quot;,e))},i&amp;&amp;i(n,l),delete n.prototype.constructor,n.prototype=Object.create(l.prototype,{_resolve:o((function(t){return&quot;value&quot;===this.__kind__?this.__list__[t]:&quot;key+value&quot;===this.__kind__?[t,this.__list__[t]]:t}))}),c(n.prototype,s.toStringTag,o(&quot;c&quot;,&quot;Array Iterator&quot;))},{&quot;./&quot;:220,d:155,&quot;es5-ext/object/set-prototype-of&quot;:206,&quot;es5-ext/string/#/contains&quot;:212,&quot;es6-symbol&quot;:225}],218:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/object/valid-callable&quot;),a=t(&quot;es5-ext/string/is-string&quot;),o=t(&quot;./get&quot;),s=Array.isArray,l=Function.prototype.call,c=Array.prototype.some;e.exports=function(t,e){var r,u,f,h,p,d,g,m,v=arguments[2];if(s(t)||n(t)?r=&quot;array&quot;:a(t)?r=&quot;string&quot;:t=o(t),i(e),f=function(){h=!0},&quot;array&quot;!==r)if(&quot;string&quot;!==r)for(u=t.next();!u.done;){if(l.call(e,v,u.value,f),h)return;u=t.next()}else for(d=t.length,p=0;p&lt;d&amp;&amp;(g=t[p],p+1&lt;d&amp;&amp;(m=g.charCodeAt(0))&gt;=55296&amp;&amp;m&lt;=56319&amp;&amp;(g+=t[++p]),l.call(e,v,g,f),!h);++p);else c.call(t,(function(t){return l.call(e,v,t,f),h}))}},{&quot;./get&quot;:219,&quot;es5-ext/function/is-arguments&quot;:184,&quot;es5-ext/object/valid-callable&quot;:209,&quot;es5-ext/string/is-string&quot;:215}],219:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/string/is-string&quot;),a=t(&quot;./array&quot;),o=t(&quot;./string&quot;),s=t(&quot;./valid-iterable&quot;),l=t(&quot;es6-symbol&quot;).iterator;e.exports=function(t){return&quot;function&quot;==typeof s(t)[l]?t[l]():n(t)?new a(t):i(t)?new o(t):new a(t)}},{&quot;./array&quot;:217,&quot;./string&quot;:222,&quot;./valid-iterable&quot;:223,&quot;es5-ext/function/is-arguments&quot;:184,&quot;es5-ext/string/is-string&quot;:215,&quot;es6-symbol&quot;:225}],220:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/array/#/clear&quot;),a=t(&quot;es5-ext/object/assign&quot;),o=t(&quot;es5-ext/object/valid-callable&quot;),s=t(&quot;es5-ext/object/valid-value&quot;),l=t(&quot;d&quot;),c=t(&quot;d/auto-bind&quot;),u=t(&quot;es6-symbol&quot;),f=Object.defineProperty,h=Object.defineProperties;e.exports=n=function(t,e){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);h(this,{__list__:l(&quot;w&quot;,s(t)),__context__:l(&quot;w&quot;,e),__nextIndex__:l(&quot;w&quot;,0)}),e&amp;&amp;(o(e.on),e.on(&quot;_add&quot;,this._onAdd),e.on(&quot;_delete&quot;,this._onDelete),e.on(&quot;_clear&quot;,this._onClear))},delete n.prototype.constructor,h(n.prototype,a({_next:l((function(){var t;if(this.__list__)return this.__redo__&amp;&amp;void 0!==(t=this.__redo__.shift())?t:this.__nextIndex__&lt;this.__list__.length?this.__nextIndex__++:void this._unBind()})),next:l((function(){return this._createResult(this._next())})),_createResult:l((function(t){return void 0===t?{done:!0,value:void 0}:{done:!1,value:this._resolve(t)}})),_resolve:l((function(t){return this.__list__[t]})),_unBind:l((function(){this.__list__=null,delete this.__redo__,this.__context__&amp;&amp;(this.__context__.off(&quot;_add&quot;,this._onAdd),this.__context__.off(&quot;_delete&quot;,this._onDelete),this.__context__.off(&quot;_clear&quot;,this._onClear),this.__context__=null)})),toString:l((function(){return&quot;[object &quot;+(this[u.toStringTag]||&quot;Object&quot;)+&quot;]&quot;}))},c({_onAdd:l((function(t){t&gt;=this.__nextIndex__||(++this.__nextIndex__,this.__redo__?(this.__redo__.forEach((function(e,r){e&gt;=t&amp;&amp;(this.__redo__[r]=++e)}),this),this.__redo__.push(t)):f(this,&quot;__redo__&quot;,l(&quot;c&quot;,[t])))})),_onDelete:l((function(t){var e;t&gt;=this.__nextIndex__||(--this.__nextIndex__,this.__redo__&amp;&amp;(-1!==(e=this.__redo__.indexOf(t))&amp;&amp;this.__redo__.splice(e,1),this.__redo__.forEach((function(e,r){e&gt;t&amp;&amp;(this.__redo__[r]=--e)}),this)))})),_onClear:l((function(){this.__redo__&amp;&amp;i.call(this.__redo__),this.__nextIndex__=0}))}))),f(n.prototype,u.iterator,l((function(){return this})))},{d:155,&quot;d/auto-bind&quot;:154,&quot;es5-ext/array/#/clear&quot;:180,&quot;es5-ext/object/assign&quot;:193,&quot;es5-ext/object/valid-callable&quot;:209,&quot;es5-ext/object/valid-value&quot;:211,&quot;es6-symbol&quot;:225}],221:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;es5-ext/function/is-arguments&quot;),i=t(&quot;es5-ext/object/is-value&quot;),a=t(&quot;es5-ext/string/is-string&quot;),o=t(&quot;es6-symbol&quot;).iterator,s=Array.isArray;e.exports=function(t){return!!i(t)&amp;&amp;(!!s(t)||(!!a(t)||(!!n(t)||&quot;function&quot;==typeof t[o])))}},{&quot;es5-ext/function/is-arguments&quot;:184,&quot;es5-ext/object/is-value&quot;:200,&quot;es5-ext/string/is-string&quot;:215,&quot;es6-symbol&quot;:225}],222:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/set-prototype-of&quot;),a=t(&quot;d&quot;),o=t(&quot;es6-symbol&quot;),s=t(&quot;./&quot;),l=Object.defineProperty;n=e.exports=function(t){if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);t=String(t),s.call(this,t),l(this,&quot;__length__&quot;,a(&quot;&quot;,t.length))},i&amp;&amp;i(n,s),delete n.prototype.constructor,n.prototype=Object.create(s.prototype,{_next:a((function(){if(this.__list__)return this.__nextIndex__&lt;this.__length__?this.__nextIndex__++:void this._unBind()})),_resolve:a((function(t){var e,r=this.__list__[t];return this.__nextIndex__===this.__length__?r:(e=r.charCodeAt(0))&gt;=55296&amp;&amp;e&lt;=56319?r+this.__list__[this.__nextIndex__++]:r}))}),l(n.prototype,o.toStringTag,a(&quot;c&quot;,&quot;String Iterator&quot;))},{&quot;./&quot;:220,d:155,&quot;es5-ext/object/set-prototype-of&quot;:206,&quot;es6-symbol&quot;:225}],223:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-iterable&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not iterable&quot;);return t}},{&quot;./is-iterable&quot;:221}],224:[function(t,e,r){(function(n,i){(function(){
/*!
 * @overview es6-promise - a tiny implementation of Promises/A+.
 * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
 * @license   Licensed under MIT license
 *            See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE
 * @version   v4.2.8+1e68dce6
 */
!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?e.exports=n():t.ES6Promise=n()}(this,(function(){&quot;use strict&quot;;function e(t){return&quot;function&quot;==typeof t}var r=Array.isArray?Array.isArray:function(t){return&quot;[object Array]&quot;===Object.prototype.toString.call(t)},a=0,o=void 0,s=void 0,l=function(t,e){g[a]=t,g[a+1]=e,2===(a+=2)&amp;&amp;(s?s(m):_())};var c=&quot;undefined&quot;!=typeof window?window:void 0,u=c||{},f=u.MutationObserver||u.WebKitMutationObserver,h=&quot;undefined&quot;==typeof self&amp;&amp;&quot;undefined&quot;!=typeof n&amp;&amp;&quot;[object process]&quot;==={}.toString.call(n),p=&quot;undefined&quot;!=typeof Uint8ClampedArray&amp;&amp;&quot;undefined&quot;!=typeof importScripts&amp;&amp;&quot;undefined&quot;!=typeof MessageChannel;function d(){var t=setTimeout;return function(){return t(m,1)}}var g=new Array(1e3);function m(){for(var t=0;t&lt;a;t+=2){(0,g[t])(g[t+1]),g[t]=void 0,g[t+1]=void 0}a=0}var v,y,x,b,_=void 0;function w(t,e){var r=this,n=new this.constructor(M);void 0===n[k]&amp;&amp;D(n);var i=r._state;if(i){var a=arguments[i-1];l((function(){return z(i,n,a,r._result)}))}else I(r,n,t,e);return n}function T(t){if(t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;t.constructor===this)return t;var e=new this(M);return S(e,t),e}h?_=function(){return n.nextTick(m)}:f?(y=0,x=new f(m),b=document.createTextNode(&quot;&quot;),x.observe(b,{characterData:!0}),_=function(){b.data=y=++y%2}):p?((v=new MessageChannel).port1.onmessage=m,_=function(){return v.port2.postMessage(0)}):_=void 0===c&amp;&amp;&quot;function&quot;==typeof t?function(){try{var t=Function(&quot;return this&quot;)().require(&quot;vertx&quot;);return&quot;undefined&quot;!=typeof(o=t.runOnLoop||t.runOnContext)?function(){o(m)}:d()}catch(t){return d()}}():d();var k=Math.random().toString(36).substring(2);function M(){}function A(t,r,n){r.constructor===t.constructor&amp;&amp;n===w&amp;&amp;r.constructor.resolve===T?function(t,e){1===e._state?C(t,e._result):2===e._state?L(t,e._result):I(e,void 0,(function(e){return S(t,e)}),(function(e){return L(t,e)}))}(t,r):void 0===n?C(t,r):e(n)?function(t,e,r){l((function(t){var n=!1,i=function(t,e,r,n){try{t.call(e,r,n)}catch(t){return t}}(r,e,(function(r){n||(n=!0,e!==r?S(t,r):C(t,r))}),(function(e){n||(n=!0,L(t,e))}),t._label);!n&amp;&amp;i&amp;&amp;(n=!0,L(t,i))}),t)}(t,r,n):C(t,r)}function S(t,e){if(t===e)L(t,new TypeError(&quot;You cannot resolve a promise with itself&quot;));else if(i=typeof(n=e),null===n||&quot;object&quot;!==i&amp;&amp;&quot;function&quot;!==i)C(t,e);else{var r=void 0;try{r=e.then}catch(e){return void L(t,e)}A(t,e,r)}var n,i}function E(t){t._onerror&amp;&amp;t._onerror(t._result),P(t)}function C(t,e){void 0===t._state&amp;&amp;(t._result=e,t._state=1,0!==t._subscribers.length&amp;&amp;l(P,t))}function L(t,e){void 0===t._state&amp;&amp;(t._state=2,t._result=e,l(E,t))}function I(t,e,r,n){var i=t._subscribers,a=i.length;t._onerror=null,i[a]=e,i[a+1]=r,i[a+2]=n,0===a&amp;&amp;t._state&amp;&amp;l(P,t)}function P(t){var e=t._subscribers,r=t._state;if(0!==e.length){for(var n=void 0,i=void 0,a=t._result,o=0;o&lt;e.length;o+=3)n=e[o],i=e[o+r],n?z(r,n,i,a):i(a);t._subscribers.length=0}}function z(t,r,n,i){var a=e(n),o=void 0,s=void 0,l=!0;if(a){try{o=n(i)}catch(t){l=!1,s=t}if(r===o)return void L(r,new TypeError(&quot;A promises callback cannot return that same promise.&quot;))}else o=i;void 0!==r._state||(a&amp;&amp;l?S(r,o):!1===l?L(r,s):1===t?C(r,o):2===t&amp;&amp;L(r,o))}var O=0;function D(t){t[k]=O++,t._state=void 0,t._result=void 0,t._subscribers=[]}var R=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(M),this.promise[k]||D(this.promise),r(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?C(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&amp;&amp;C(this.promise,this._result))):L(this.promise,new Error(&quot;Array Methods must be provided an Array&quot;))}return t.prototype._enumerate=function(t){for(var e=0;void 0===this._state&amp;&amp;e&lt;t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var r=this._instanceConstructor,n=r.resolve;if(n===T){var i=void 0,a=void 0,o=!1;try{i=t.then}catch(t){o=!0,a=t}if(i===w&amp;&amp;void 0!==t._state)this._settledAt(t._state,e,t._result);else if(&quot;function&quot;!=typeof i)this._remaining--,this._result[e]=t;else if(r===F){var s=new r(M);o?L(s,a):A(s,t,i),this._willSettleAt(s,e)}else this._willSettleAt(new r((function(e){return e(t)})),e)}else this._willSettleAt(n(t),e)},t.prototype._settledAt=function(t,e,r){var n=this.promise;void 0===n._state&amp;&amp;(this._remaining--,2===t?L(n,r):this._result[e]=r),0===this._remaining&amp;&amp;C(n,this._result)},t.prototype._willSettleAt=function(t,e){var r=this;I(t,void 0,(function(t){return r._settledAt(1,e,t)}),(function(t){return r._settledAt(2,e,t)}))},t}();var F=function(){function t(e){this[k]=O++,this._result=this._state=void 0,this._subscribers=[],M!==e&amp;&amp;(&quot;function&quot;!=typeof e&amp;&amp;function(){throw new TypeError(&quot;You must pass a resolver function as the first argument to the promise constructor&quot;)}(),this instanceof t?function(t,e){try{e((function(e){S(t,e)}),(function(e){L(t,e)}))}catch(e){L(t,e)}}(this,e):function(){throw new TypeError(&quot;Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.&quot;)}())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var r=this.constructor;return e(t)?this.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){throw e}))})):this.then(t,t)},t}();return F.prototype.then=w,F.all=function(t){return new R(this,t).promise},F.race=function(t){var e=this;return r(t)?new e((function(r,n){for(var i=t.length,a=0;a&lt;i;a++)e.resolve(t[a]).then(r,n)})):new e((function(t,e){return e(new TypeError(&quot;You must pass an array to race.&quot;))}))},F.resolve=T,F.reject=function(t){var e=new this(M);return L(e,t),e},F._setScheduler=function(t){s=t},F._setAsap=function(t){l=t},F._asap=l,F.polyfill=function(){var t=void 0;if(&quot;undefined&quot;!=typeof i)t=i;else if(&quot;undefined&quot;!=typeof self)t=self;else try{t=Function(&quot;return this&quot;)()}catch(t){throw new Error(&quot;polyfill failed because global object is unavailable in this environment&quot;)}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if(&quot;[object Promise]&quot;===r&amp;&amp;!e.cast)return}t.Promise=F},F.Promise=F,F}))}).call(this)}).call(this,t(&quot;_process&quot;),&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{_process:526}],225:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?t(&quot;ext/global-this&quot;).Symbol:t(&quot;./polyfill&quot;)},{&quot;./is-implemented&quot;:226,&quot;./polyfill&quot;:231,&quot;ext/global-this&quot;:238}],226:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ext/global-this&quot;),i={object:!0,symbol:!0};e.exports=function(){var t,e=n.Symbol;if(&quot;function&quot;!=typeof e)return!1;t=e(&quot;test symbol&quot;);try{String(t)}catch(t){return!1}return!!i[typeof e.iterator]&amp;&amp;(!!i[typeof e.toPrimitive]&amp;&amp;!!i[typeof e.toStringTag])}},{&quot;ext/global-this&quot;:238}],227:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return!!t&amp;&amp;(&quot;symbol&quot;==typeof t||!!t.constructor&amp;&amp;(&quot;Symbol&quot;===t.constructor.name&amp;&amp;&quot;Symbol&quot;===t[t.constructor.toStringTag]))}},{}],228:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=Object.create,a=Object.defineProperty,o=Object.prototype,s=i(null);e.exports=function(t){for(var e,r,i=0;s[t+(i||&quot;&quot;)];)++i;return s[t+=i||&quot;&quot;]=!0,a(o,e=&quot;@@&quot;+t,n.gs(null,(function(t){r||(r=!0,a(this,e,n(t)),r=!1)}))),e}},{d:155}],229:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=t(&quot;ext/global-this&quot;).Symbol;e.exports=function(t){return Object.defineProperties(t,{hasInstance:n(&quot;&quot;,i&amp;&amp;i.hasInstance||t(&quot;hasInstance&quot;)),isConcatSpreadable:n(&quot;&quot;,i&amp;&amp;i.isConcatSpreadable||t(&quot;isConcatSpreadable&quot;)),iterator:n(&quot;&quot;,i&amp;&amp;i.iterator||t(&quot;iterator&quot;)),match:n(&quot;&quot;,i&amp;&amp;i.match||t(&quot;match&quot;)),replace:n(&quot;&quot;,i&amp;&amp;i.replace||t(&quot;replace&quot;)),search:n(&quot;&quot;,i&amp;&amp;i.search||t(&quot;search&quot;)),species:n(&quot;&quot;,i&amp;&amp;i.species||t(&quot;species&quot;)),split:n(&quot;&quot;,i&amp;&amp;i.split||t(&quot;split&quot;)),toPrimitive:n(&quot;&quot;,i&amp;&amp;i.toPrimitive||t(&quot;toPrimitive&quot;)),toStringTag:n(&quot;&quot;,i&amp;&amp;i.toStringTag||t(&quot;toStringTag&quot;)),unscopables:n(&quot;&quot;,i&amp;&amp;i.unscopables||t(&quot;unscopables&quot;))})}},{d:155,&quot;ext/global-this&quot;:238}],230:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d&quot;),i=t(&quot;../../../validate-symbol&quot;),a=Object.create(null);e.exports=function(t){return Object.defineProperties(t,{for:n((function(e){return a[e]?a[e]:a[e]=t(String(e))})),keyFor:n((function(t){var e;for(e in i(t),a)if(a[e]===t)return e}))})}},{&quot;../../../validate-symbol&quot;:232,d:155}],231:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o=t(&quot;d&quot;),s=t(&quot;./validate-symbol&quot;),l=t(&quot;ext/global-this&quot;).Symbol,c=t(&quot;./lib/private/generate-name&quot;),u=t(&quot;./lib/private/setup/standard-symbols&quot;),f=t(&quot;./lib/private/setup/symbol-registry&quot;),h=Object.create,p=Object.defineProperties,d=Object.defineProperty;if(&quot;function&quot;==typeof l)try{String(l()),a=!0}catch(t){}else l=null;i=function(t){if(this instanceof i)throw new TypeError(&quot;Symbol is not a constructor&quot;);return n(t)},e.exports=n=function t(e){var r;if(this instanceof t)throw new TypeError(&quot;Symbol is not a constructor&quot;);return a?l(e):(r=h(i.prototype),e=void 0===e?&quot;&quot;:String(e),p(r,{__description__:o(&quot;&quot;,e),__name__:o(&quot;&quot;,c(e))}))},u(n),f(n),p(i.prototype,{constructor:o(n),toString:o(&quot;&quot;,(function(){return this.__name__}))}),p(n.prototype,{toString:o((function(){return&quot;Symbol (&quot;+s(this).__description__+&quot;)&quot;})),valueOf:o((function(){return s(this)}))}),d(n.prototype,n.toPrimitive,o(&quot;&quot;,(function(){var t=s(this);return&quot;symbol&quot;==typeof t?t:t.toString()}))),d(n.prototype,n.toStringTag,o(&quot;c&quot;,&quot;Symbol&quot;)),d(i.prototype,n.toStringTag,o(&quot;c&quot;,n.prototype[n.toStringTag])),d(i.prototype,n.toPrimitive,o(&quot;c&quot;,n.prototype[n.toPrimitive]))},{&quot;./lib/private/generate-name&quot;:228,&quot;./lib/private/setup/standard-symbols&quot;:229,&quot;./lib/private/setup/symbol-registry&quot;:230,&quot;./validate-symbol&quot;:232,d:155,&quot;ext/global-this&quot;:238}],232:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is-symbol&quot;);e.exports=function(t){if(!n(t))throw new TypeError(t+&quot; is not a symbol&quot;);return t}},{&quot;./is-symbol&quot;:227}],233:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?WeakMap:t(&quot;./polyfill&quot;)},{&quot;./is-implemented&quot;:234,&quot;./polyfill&quot;:236}],234:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e;if(&quot;function&quot;!=typeof WeakMap)return!1;try{t=new WeakMap([[e={},&quot;one&quot;],[{},&quot;two&quot;],[{},&quot;three&quot;]])}catch(t){return!1}return&quot;[object WeakMap]&quot;===String(t)&amp;&amp;(&quot;function&quot;==typeof t.set&amp;&amp;(t.set({},1)===t&amp;&amp;(&quot;function&quot;==typeof t.delete&amp;&amp;(&quot;function&quot;==typeof t.has&amp;&amp;&quot;one&quot;===t.get(e)))))}},{}],235:[function(t,e,r){&quot;use strict&quot;;e.exports=&quot;function&quot;==typeof WeakMap&amp;&amp;&quot;[object WeakMap]&quot;===Object.prototype.toString.call(new WeakMap)},{}],236:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;es5-ext/object/is-value&quot;),a=t(&quot;es5-ext/object/set-prototype-of&quot;),o=t(&quot;es5-ext/object/valid-object&quot;),s=t(&quot;es5-ext/object/valid-value&quot;),l=t(&quot;es5-ext/string/random-uniq&quot;),c=t(&quot;d&quot;),u=t(&quot;es6-iterator/get&quot;),f=t(&quot;es6-iterator/for-of&quot;),h=t(&quot;es6-symbol&quot;).toStringTag,p=t(&quot;./is-native-implemented&quot;),d=Array.isArray,g=Object.defineProperty,m=Object.prototype.hasOwnProperty,v=Object.getPrototypeOf;e.exports=n=function(){var t,e=arguments[0];if(!(this instanceof n))throw new TypeError(&quot;Constructor requires 'new'&quot;);return t=p&amp;&amp;a&amp;&amp;WeakMap!==n?a(new WeakMap,v(this)):this,i(e)&amp;&amp;(d(e)||(e=u(e))),g(t,&quot;__weakMapData__&quot;,c(&quot;c&quot;,&quot;$weakMap$&quot;+l())),e?(f(e,(function(e){s(e),t.set(e[0],e[1])})),t):t},p&amp;&amp;(a&amp;&amp;a(n,WeakMap),n.prototype=Object.create(WeakMap.prototype,{constructor:c(n)})),Object.defineProperties(n.prototype,{delete:c((function(t){return!!m.call(o(t),this.__weakMapData__)&amp;&amp;(delete t[this.__weakMapData__],!0)})),get:c((function(t){if(m.call(o(t),this.__weakMapData__))return t[this.__weakMapData__]})),has:c((function(t){return m.call(o(t),this.__weakMapData__)})),set:c((function(t,e){return g(o(t),this.__weakMapData__,c(&quot;c&quot;,e)),this})),toString:c((function(){return&quot;[object WeakMap]&quot;}))}),g(n.prototype,h,c(&quot;c&quot;,&quot;WeakMap&quot;))},{&quot;./is-native-implemented&quot;:235,d:155,&quot;es5-ext/object/is-value&quot;:200,&quot;es5-ext/object/set-prototype-of&quot;:206,&quot;es5-ext/object/valid-object&quot;:210,&quot;es5-ext/object/valid-value&quot;:211,&quot;es5-ext/string/random-uniq&quot;:216,&quot;es6-iterator/for-of&quot;:218,&quot;es6-iterator/get&quot;:219,&quot;es6-symbol&quot;:225}],237:[function(t,e,r){var n=function(){if(&quot;object&quot;==typeof self&amp;&amp;self)return self;if(&quot;object&quot;==typeof window&amp;&amp;window)return window;throw new Error(&quot;Unable to resolve global `this`&quot;)};e.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,&quot;__global__&quot;,{get:function(){return this},configurable:!0})}catch(t){return n()}try{return __global__||n()}finally{delete Object.prototype.__global__}}()},{}],238:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;./is-implemented&quot;)()?globalThis:t(&quot;./implementation&quot;)},{&quot;./implementation&quot;:237,&quot;./is-implemented&quot;:239}],239:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){return&quot;object&quot;==typeof globalThis&amp;&amp;(!!globalThis&amp;&amp;globalThis.Array===Array)}},{}],240:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n=e||0,i=r||1;return[[t[12]+t[0],t[13]+t[1],t[14]+t[2],t[15]+t[3]],[t[12]-t[0],t[13]-t[1],t[14]-t[2],t[15]-t[3]],[t[12]+t[4],t[13]+t[5],t[14]+t[6],t[15]+t[7]],[t[12]-t[4],t[13]-t[5],t[14]-t[6],t[15]-t[7]],[n*t[12]+t[8],n*t[13]+t[9],n*t[14]+t[10],n*t[15]+t[11]],[i*t[12]-t[8],i*t[13]-t[9],i*t[14]-t[10],i*t[15]-t[11]]]}},{}],241:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-string-blank&quot;);e.exports=function(t){var e=typeof t;if(&quot;string&quot;===e){var r=t;if(0===(t=+t)&amp;&amp;n(r))return!1}else if(&quot;number&quot;!==e)return!1;return t-t&lt;1}},{&quot;is-string-blank&quot;:470}],242:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){switch(arguments.length){case 0:return new o([0],[0],0);case 1:return&quot;number&quot;==typeof t?new o(n=l(t),n,0):new o(t,l(t.length),0);case 2:if(&quot;number&quot;==typeof e){var n=l(t.length);return new o(t,n,+e)}r=0;case 3:if(t.length!==e.length)throw new Error(&quot;state and velocity lengths must match&quot;);return new o(t,e,r)}};var n=t(&quot;cubic-hermite&quot;),i=t(&quot;binary-search-bounds&quot;);function a(t,e,r){return Math.min(e,Math.max(t,r))}function o(t,e,r){this.dimension=t.length,this.bounds=[new Array(this.dimension),new Array(this.dimension)];for(var n=0;n&lt;this.dimension;++n)this.bounds[0][n]=-1/0,this.bounds[1][n]=1/0;this._state=t.slice().reverse(),this._velocity=e.slice().reverse(),this._time=[r],this._scratch=[t.slice(),t.slice(),t.slice(),t.slice(),t.slice()]}var s=o.prototype;function l(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=0;return e}s.flush=function(t){var e=i.gt(this._time,t)-1;e&lt;=0||(this._time.splice(0,e),this._state.splice(0,e*this.dimension),this._velocity.splice(0,e*this.dimension))},s.curve=function(t){var e=this._time,r=e.length,o=i.le(e,t),s=this._scratch[0],l=this._state,c=this._velocity,u=this.dimension,f=this.bounds;if(o&lt;0)for(var h=u-1,p=0;p&lt;u;++p,--h)s[p]=l[h];else if(o&gt;=r-1){h=l.length-1;var d=t-e[r-1];for(p=0;p&lt;u;++p,--h)s[p]=l[h]+d*c[h]}else{h=u*(o+1)-1;var g=e[o],m=e[o+1]-g||1,v=this._scratch[1],y=this._scratch[2],x=this._scratch[3],b=this._scratch[4],_=!0;for(p=0;p&lt;u;++p,--h)v[p]=l[h],x[p]=c[h]*m,y[p]=l[h+u],b[p]=c[h+u]*m,_=_&amp;&amp;v[p]===y[p]&amp;&amp;x[p]===b[p]&amp;&amp;0===x[p];if(_)for(p=0;p&lt;u;++p)s[p]=v[p];else n(v,x,y,b,(t-g)/m,s)}var w=f[0],T=f[1];for(p=0;p&lt;u;++p)s[p]=a(w[p],T[p],s[p]);return s},s.dcurve=function(t){var e=this._time,r=e.length,a=i.le(e,t),o=this._scratch[0],s=this._state,l=this._velocity,c=this.dimension;if(a&gt;=r-1)for(var u=s.length-1,f=(e[r-1],0);f&lt;c;++f,--u)o[f]=l[u];else{u=c*(a+1)-1;var h=e[a],p=e[a+1]-h||1,d=this._scratch[1],g=this._scratch[2],m=this._scratch[3],v=this._scratch[4],y=!0;for(f=0;f&lt;c;++f,--u)d[f]=s[u],m[f]=l[u]*p,g[f]=s[u+c],v[f]=l[u+c]*p,y=y&amp;&amp;d[f]===g[f]&amp;&amp;m[f]===v[f]&amp;&amp;0===m[f];if(y)for(f=0;f&lt;c;++f)o[f]=0;else{n.derivative(d,m,g,v,(t-h)/p,o);for(f=0;f&lt;c;++f)o[f]/=p}}return o},s.lastT=function(){var t=this._time;return t[t.length-1]},s.stable=function(){for(var t=this._velocity,e=t.length,r=this.dimension-1;r&gt;=0;--r)if(t[--e])return!1;return!0},s.jump=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1];this._time.push(e,t);for(var u=0;u&lt;2;++u)for(var f=0;f&lt;r;++f)n.push(n[o++]),i.push(0);this._time.push(t);for(f=r;f&gt;0;--f)n.push(a(l[f-1],c[f-1],arguments[f])),i.push(0)}},s.push=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=t-e,l=this.bounds,c=l[0],u=l[1],f=s&gt;1e-6?1/s:0;this._time.push(t);for(var h=r;h&gt;0;--h){var p=a(c[h-1],u[h-1],arguments[h]);n.push(p),i.push((p-n[o++])*f)}}},s.set=function(t){var e=this.dimension;if(!(t&lt;this.lastT()||arguments.length!==e+1)){var r=this._state,n=this._velocity,i=this.bounds,o=i[0],s=i[1];this._time.push(t);for(var l=e;l&gt;0;--l)r.push(a(o[l-1],s[l-1],arguments[l])),n.push(0)}},s.move=function(t){var e=this.lastT(),r=this.dimension;if(!(t&lt;=e||arguments.length!==r+1)){var n=this._state,i=this._velocity,o=n.length-this.dimension,s=this.bounds,l=s[0],c=s[1],u=t-e,f=u&gt;1e-6?1/u:0;this._time.push(t);for(var h=r;h&gt;0;--h){var p=arguments[h];n.push(a(l[h-1],c[h-1],n[o++]+p)),i.push(p*f)}}},s.idle=function(t){var e=this.lastT();if(!(t&lt;e)){var r=this.dimension,n=this._state,i=this._velocity,o=n.length-r,s=this.bounds,l=s[0],c=s[1],u=t-e;this._time.push(t);for(var f=r-1;f&gt;=0;--f)n.push(a(l[f],c[f],n[o]+u*i[o])),i.push(0),o+=1}}},{&quot;binary-search-bounds&quot;:243,&quot;cubic-hermite&quot;:150}],243:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i,a){var o=[&quot;function &quot;,t,&quot;(a,l,h,&quot;,n.join(&quot;,&quot;),&quot;){&quot;,a?&quot;&quot;:&quot;var i=&quot;,r?&quot;l-1&quot;:&quot;h+1&quot;,&quot;;while(l&lt;=h){var m=(l+h)&gt;&gt;&gt;1,x=a&quot;,i?&quot;.get(m)&quot;:&quot;[m]&quot;];return a?e.indexOf(&quot;c&quot;)&lt;0?o.push(&quot;;if(x===y){return m}else if(x&lt;=y){&quot;):o.push(&quot;;var p=c(x,y);if(p===0){return m}else if(p&lt;=0){&quot;):o.push(&quot;;if(&quot;,e,&quot;){i=m;&quot;),r?o.push(&quot;l=m+1}else{h=m-1}&quot;):o.push(&quot;h=m-1}else{l=m+1}&quot;),o.push(&quot;}&quot;),a?o.push(&quot;return -1};&quot;):o.push(&quot;return i};&quot;),o.join(&quot;&quot;)}function i(t,e,r,i){return new Function([n(&quot;A&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],!1,i),n(&quot;B&quot;,&quot;x&quot;+t+&quot;y&quot;,e,[&quot;y&quot;],!0,i),n(&quot;P&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],!1,i),n(&quot;Q&quot;,&quot;c(x,y)&quot;+t+&quot;0&quot;,e,[&quot;y&quot;,&quot;c&quot;],!0,i),&quot;function dispatchBsearch&quot;,r,&quot;(a,y,c,l,h){if(a.shape){if(typeof(c)==='function'){return Q(a,(l===undefined)?0:l|0,(h===undefined)?a.shape[0]-1:h|0,y,c)}else{return B(a,(c===undefined)?0:c|0,(l===undefined)?a.shape[0]-1:l|0,y)}}else{if(typeof(c)==='function'){return P(a,(l===undefined)?0:l|0,(h===undefined)?a.length-1:h|0,y,c)}else{return A(a,(c===undefined)?0:c|0,(l===undefined)?a.length-1:l|0,y)}}}return dispatchBsearch&quot;,r].join(&quot;&quot;))()}e.exports={ge:i(&quot;&gt;=&quot;,!1,&quot;GE&quot;),gt:i(&quot;&gt;&quot;,!1,&quot;GT&quot;),lt:i(&quot;&lt;&quot;,!0,&quot;LT&quot;),le:i(&quot;&lt;=&quot;,!0,&quot;LE&quot;),eq:i(&quot;-&quot;,!0,&quot;EQ&quot;,!0)}},{}],244:[function(t,e,r){var n=t(&quot;dtype&quot;);e.exports=function(t,e,r){if(!t)throw new TypeError(&quot;must specify data as first parameter&quot;);if(r=0|+(r||0),Array.isArray(t)&amp;&amp;t[0]&amp;&amp;&quot;number&quot;==typeof t[0][0]){var i,a,o,s,l=t[0].length,c=t.length*l;e&amp;&amp;&quot;string&quot;!=typeof e||(e=new(n(e||&quot;float32&quot;))(c+r));var u=e.length-r;if(c!==u)throw new Error(&quot;source length &quot;+c+&quot; (&quot;+l+&quot;x&quot;+t.length+&quot;) does not match destination length &quot;+u);for(i=0,o=r;i&lt;t.length;i++)for(a=0;a&lt;l;a++)e[o++]=null===t[i][a]?NaN:t[i][a]}else if(e&amp;&amp;&quot;string&quot;!=typeof e)e.set(t,r);else{var f=n(e||&quot;float32&quot;);if(Array.isArray(t)||&quot;array&quot;===e)for(e=new f(t.length+r),i=0,o=r,s=e.length;o&lt;s;o++,i++)e[o]=null===t[i]?NaN:t[i];else 0===r?e=new f(t):(e=new f(t.length+r)).set(t,r)}return e}},{dtype:175}],245:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font/stringify&quot;),i=[32,126];e.exports=function(t){var e=(t=t||{}).shape?t.shape:t.canvas?[t.canvas.width,t.canvas.height]:[512,512],r=t.canvas||document.createElement(&quot;canvas&quot;),a=t.font,o=&quot;number&quot;==typeof t.step?[t.step,t.step]:t.step||[32,32],s=t.chars||i;a&amp;&amp;&quot;string&quot;!=typeof a&amp;&amp;(a=n(a));if(Array.isArray(s)){if(2===s.length&amp;&amp;&quot;number&quot;==typeof s[0]&amp;&amp;&quot;number&quot;==typeof s[1]){for(var l=[],c=s[0],u=0;c&lt;=s[1];c++)l[u++]=String.fromCharCode(c);s=l}}else s=String(s).split(&quot;&quot;);e=e.slice(),r.width=e[0],r.height=e[1];var f=r.getContext(&quot;2d&quot;);f.fillStyle=&quot;#000&quot;,f.fillRect(0,0,r.width,r.height),f.font=a,f.textAlign=&quot;center&quot;,f.textBaseline=&quot;middle&quot;,f.fillStyle=&quot;#fff&quot;;var h=o[0]/2,p=o[1]/2;for(c=0;c&lt;s.length;c++)f.fillText(s[c],h,p),(h+=o[0])&gt;e[0]-o[0]/2&amp;&amp;(h=o[0]/2,p+=o[1]);return r}},{&quot;css-font/stringify&quot;:147}],246:[function(t,e,r){&quot;use strict&quot;;function n(t,e){e||(e={}),(&quot;string&quot;==typeof t||Array.isArray(t))&amp;&amp;(e.family=t);var r=Array.isArray(e.family)?e.family.join(&quot;, &quot;):e.family;if(!r)throw Error(&quot;`family` must be defined&quot;);var s=e.size||e.fontSize||e.em||48,l=e.weight||e.fontWeight||&quot;&quot;,c=(t=[e.style||e.fontStyle||&quot;&quot;,l,s].join(&quot; &quot;)+&quot;px &quot;+r,e.origin||&quot;top&quot;);if(n.cache[r]&amp;&amp;s&lt;=n.cache[r].em)return i(n.cache[r],c);var u=e.canvas||n.canvas,f=u.getContext(&quot;2d&quot;),h={upper:void 0!==e.upper?e.upper:&quot;H&quot;,lower:void 0!==e.lower?e.lower:&quot;x&quot;,descent:void 0!==e.descent?e.descent:&quot;p&quot;,ascent:void 0!==e.ascent?e.ascent:&quot;h&quot;,tittle:void 0!==e.tittle?e.tittle:&quot;i&quot;,overshoot:void 0!==e.overshoot?e.overshoot:&quot;O&quot;},p=Math.ceil(1.5*s);u.height=p,u.width=.5*p,f.font=t;var d={top:0};f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillStyle=&quot;black&quot;,f.fillText(&quot;H&quot;,0,0);var g=a(f.getImageData(0,0,p,p));f.clearRect(0,0,p,p),f.textBaseline=&quot;bottom&quot;,f.fillText(&quot;H&quot;,0,p);var m=a(f.getImageData(0,0,p,p));d.lineHeight=d.bottom=p-m+g,f.clearRect(0,0,p,p),f.textBaseline=&quot;alphabetic&quot;,f.fillText(&quot;H&quot;,0,p);var v=p-a(f.getImageData(0,0,p,p))-1+g;d.baseline=d.alphabetic=v,f.clearRect(0,0,p,p),f.textBaseline=&quot;middle&quot;,f.fillText(&quot;H&quot;,0,.5*p);var y=a(f.getImageData(0,0,p,p));d.median=d.middle=p-y-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=&quot;hanging&quot;,f.fillText(&quot;H&quot;,0,.5*p);var x=a(f.getImageData(0,0,p,p));d.hanging=p-x-1+g-.5*p,f.clearRect(0,0,p,p),f.textBaseline=&quot;ideographic&quot;,f.fillText(&quot;H&quot;,0,p);var b=a(f.getImageData(0,0,p,p));if(d.ideographic=p-b-1+g,h.upper&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.upper,0,0),d.upper=a(f.getImageData(0,0,p,p)),d.capHeight=d.baseline-d.upper),h.lower&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.lower,0,0),d.lower=a(f.getImageData(0,0,p,p)),d.xHeight=d.baseline-d.lower),h.tittle&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.tittle,0,0),d.tittle=a(f.getImageData(0,0,p,p))),h.ascent&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.ascent,0,0),d.ascent=a(f.getImageData(0,0,p,p))),h.descent&amp;&amp;(f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.descent,0,0),d.descent=o(f.getImageData(0,0,p,p))),h.overshoot){f.clearRect(0,0,p,p),f.textBaseline=&quot;top&quot;,f.fillText(h.overshoot,0,0);var _=o(f.getImageData(0,0,p,p));d.overshoot=_-v}for(var w in d)d[w]/=s;return d.em=s,n.cache[r]=d,i(d,c)}function i(t,e){var r={};for(var n in&quot;string&quot;==typeof e&amp;&amp;(e=t[e]),t)&quot;em&quot;!==n&amp;&amp;(r[n]=t[n]-e);return r}function a(t){for(var e=t.height,r=t.data,n=3;n&lt;r.length;n+=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}function o(t){for(var e=t.height,r=t.data,n=r.length-1;n&gt;0;n-=4)if(0!==r[n])return Math.floor(.25*(n-3)/e)}e.exports=n,n.canvas=document.createElement(&quot;canvas&quot;),n.cache={}},{}],247:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return new s(t||g,null)};function n(t,e,r,n,i,a){this._color=t,this.key=e,this.value=r,this.left=n,this.right=i,this._count=a}function i(t){return new n(t._color,t.key,t.value,t.left,t.right,t._count)}function a(t,e){return new n(t,e.key,e.value,e.left,e.right,e._count)}function o(t){t._count=1+(t.left?t.left._count:0)+(t.right?t.right._count:0)}function s(t,e){this._compare=t,this.root=e}var l=s.prototype;function c(t,e){var r;if(e.left&amp;&amp;(r=c(t,e.left)))return r;return(r=t(e.key,e.value))||(e.right?c(t,e.right):void 0)}function u(t,e,r,n){if(e(t,n.key)&lt;=0){var i;if(n.left)if(i=u(t,e,r,n.left))return i;if(i=r(n.key,n.value))return i}if(n.right)return u(t,e,r,n.right)}function f(t,e,r,n,i){var a,o=r(t,i.key),s=r(e,i.key);if(o&lt;=0){if(i.left&amp;&amp;(a=f(t,e,r,n,i.left)))return a;if(s&gt;0&amp;&amp;(a=n(i.key,i.value)))return a}if(s&gt;0&amp;&amp;i.right)return f(t,e,r,n,i.right)}function h(t,e){this.tree=t,this._stack=e}Object.defineProperty(l,&quot;keys&quot;,{get:function(){var t=[];return this.forEach((function(e,r){t.push(e)})),t}}),Object.defineProperty(l,&quot;values&quot;,{get:function(){var t=[];return this.forEach((function(e,r){t.push(r)})),t}}),Object.defineProperty(l,&quot;length&quot;,{get:function(){return this.root?this.root._count:0}}),l.insert=function(t,e){for(var r=this._compare,i=this.root,l=[],c=[];i;){var u=r(t,i.key);l.push(i),c.push(u),i=u&lt;=0?i.left:i.right}l.push(new n(0,t,e,null,null,1));for(var f=l.length-2;f&gt;=0;--f){i=l[f];c[f]&lt;=0?l[f]=new n(i._color,i.key,i.value,l[f+1],i.right,i._count+1):l[f]=new n(i._color,i.key,i.value,i.left,l[f+1],i._count+1)}for(f=l.length-1;f&gt;1;--f){var h=l[f-1];i=l[f];if(1===h._color||1===i._color)break;var p=l[f-2];if(p.left===h)if(h.left===i){if(!(d=p.right)||0!==d._color){if(p._color=0,p.left=h.right,h._color=1,h.right=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f&gt;=3)(g=l[f-3]).left===p?g.left=h:g.right=h;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else{if(!(d=p.right)||0!==d._color){if(h.right=i.left,p._color=0,p.left=i.right,i._color=1,i.left=h,i.right=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f&gt;=3)(g=l[f-3]).left===p?g.left=i:g.right=i;break}h._color=1,p.right=a(1,d),p._color=0,f-=1}else if(h.right===i){if(!(d=p.left)||0!==d._color){if(p._color=0,p.right=h.left,h._color=1,h.left=p,l[f-2]=h,l[f-1]=i,o(p),o(h),f&gt;=3)(g=l[f-3]).right===p?g.right=h:g.left=h;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}else{var d;if(!(d=p.left)||0!==d._color){var g;if(h.left=i.right,p._color=0,p.right=i.left,i._color=1,i.right=h,i.left=p,l[f-2]=i,l[f-1]=h,o(p),o(h),o(i),f&gt;=3)(g=l[f-3]).right===p?g.right=i:g.left=i;break}h._color=1,p.left=a(1,d),p._color=0,f-=1}}return l[0]._color=1,new s(r,l[0])},l.forEach=function(t,e,r){if(this.root)switch(arguments.length){case 1:return c(t,this.root);case 2:return u(e,this._compare,t,this.root);case 3:if(this._compare(e,r)&gt;=0)return;return f(e,r,this._compare,t,this.root)}},Object.defineProperty(l,&quot;begin&quot;,{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.left;return new h(this,t)}}),Object.defineProperty(l,&quot;end&quot;,{get:function(){for(var t=[],e=this.root;e;)t.push(e),e=e.right;return new h(this,t)}}),l.at=function(t){if(t&lt;0)return new h(this,[]);for(var e=this.root,r=[];;){if(r.push(e),e.left){if(t&lt;e.left._count){e=e.left;continue}t-=e.left._count}if(!t)return new h(this,r);if(t-=1,!e.right)break;if(t&gt;=e.right._count)break;e=e.right}return new h(this,[])},l.ge=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&lt;=0&amp;&amp;(i=n.length),r=a&lt;=0?r.left:r.right}return n.length=i,new h(this,n)},l.gt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&lt;0&amp;&amp;(i=n.length),r=a&lt;0?r.left:r.right}return n.length=i,new h(this,n)},l.lt=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&gt;0&amp;&amp;(i=n.length),r=a&lt;=0?r.left:r.right}return n.length=i,new h(this,n)},l.le=function(t){for(var e=this._compare,r=this.root,n=[],i=0;r;){var a=e(t,r.key);n.push(r),a&gt;=0&amp;&amp;(i=n.length),r=a&lt;0?r.left:r.right}return n.length=i,new h(this,n)},l.find=function(t){for(var e=this._compare,r=this.root,n=[];r;){var i=e(t,r.key);if(n.push(r),0===i)return new h(this,n);r=i&lt;=0?r.left:r.right}return new h(this,[])},l.remove=function(t){var e=this.find(t);return e?e.remove():this},l.get=function(t){for(var e=this._compare,r=this.root;r;){var n=e(t,r.key);if(0===n)return r.value;r=n&lt;=0?r.left:r.right}};var p=h.prototype;function d(t,e){t.key=e.key,t.value=e.value,t.left=e.left,t.right=e.right,t._color=e._color,t._count=e._count}function g(t,e){return t&lt;e?-1:t&gt;e?1:0}Object.defineProperty(p,&quot;valid&quot;,{get:function(){return this._stack.length&gt;0}}),Object.defineProperty(p,&quot;node&quot;,{get:function(){return this._stack.length&gt;0?this._stack[this._stack.length-1]:null},enumerable:!0}),p.clone=function(){return new h(this.tree,this._stack.slice())},p.remove=function(){var t=this._stack;if(0===t.length)return this.tree;var e=new Array(t.length),r=t[t.length-1];e[e.length-1]=new n(r._color,r.key,r.value,r.left,r.right,r._count);for(var l=t.length-2;l&gt;=0;--l){(r=t[l]).left===t[l+1]?e[l]=new n(r._color,r.key,r.value,e[l+1],r.right,r._count):e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count)}if((r=e[e.length-1]).left&amp;&amp;r.right){var c=e.length;for(r=r.left;r.right;)e.push(r),r=r.right;var u=e[c-1];e.push(new n(r._color,u.key,u.value,r.left,r.right,r._count)),e[c-1].key=r.key,e[c-1].value=r.value;for(l=e.length-2;l&gt;=c;--l)r=e[l],e[l]=new n(r._color,r.key,r.value,r.left,e[l+1],r._count);e[c-1].left=e[c]}if(0===(r=e[e.length-1])._color){var f=e[e.length-2];f.left===r?f.left=null:f.right===r&amp;&amp;(f.right=null),e.pop();for(l=0;l&lt;e.length;++l)e[l]._count--;return new s(this.tree._compare,e[0])}if(r.left||r.right){r.left?d(r,r.left):r.right&amp;&amp;d(r,r.right),r._color=1;for(l=0;l&lt;e.length-1;++l)e[l]._count--;return new s(this.tree._compare,e[0])}if(1===e.length)return new s(this.tree._compare,null);for(l=0;l&lt;e.length;++l)e[l]._count--;var h=e[e.length-2];return function(t){for(var e,r,n,s,l=t.length-1;l&gt;=0;--l){if(e=t[l],0===l)return void(e._color=1);if((r=t[l-1]).left===e){if((n=r.right).right&amp;&amp;0===n.right._color){if(s=(n=r.right=i(n)).right=i(n.right),r.right=n.left,n.left=r,n.right=s,n._color=r._color,e._color=1,r._color=1,s._color=1,o(r),o(n),l&gt;1)(c=t[l-2]).left===r?c.left=n:c.right=n;return void(t[l-1]=n)}if(n.left&amp;&amp;0===n.left._color){if(s=(n=r.right=i(n)).left=i(n.left),r.right=s.left,n.left=s.right,s.left=r,s.right=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l&gt;1)(c=t[l-2]).left===r?c.left=s:c.right=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.right=a(0,n));r.right=a(0,n);continue}n=i(n),r.right=n.left,n.left=r,n._color=r._color,r._color=0,o(r),o(n),l&gt;1&amp;&amp;((c=t[l-2]).left===r?c.left=n:c.right=n),t[l-1]=n,t[l]=r,l+1&lt;t.length?t[l+1]=e:t.push(e),l+=2}else{if((n=r.left).left&amp;&amp;0===n.left._color){if(s=(n=r.left=i(n)).left=i(n.left),r.left=n.right,n.right=r,n.left=s,n._color=r._color,e._color=1,r._color=1,s._color=1,o(r),o(n),l&gt;1)(c=t[l-2]).right===r?c.right=n:c.left=n;return void(t[l-1]=n)}if(n.right&amp;&amp;0===n.right._color){if(s=(n=r.left=i(n)).right=i(n.right),r.left=s.right,n.right=s.left,s.right=r,s.left=n,s._color=r._color,r._color=1,n._color=1,e._color=1,o(r),o(n),o(s),l&gt;1)(c=t[l-2]).right===r?c.right=s:c.left=s;return void(t[l-1]=s)}if(1===n._color){if(0===r._color)return r._color=1,void(r.left=a(0,n));r.left=a(0,n);continue}var c;n=i(n),r.left=n.right,n.right=r,n._color=r._color,r._color=0,o(r),o(n),l&gt;1&amp;&amp;((c=t[l-2]).right===r?c.right=n:c.left=n),t[l-1]=n,t[l]=r,l+1&lt;t.length?t[l+1]=e:t.push(e),l+=2}}}(e),h.left===r?h.left=null:h.right=null,new s(this.tree._compare,e[0])},Object.defineProperty(p,&quot;key&quot;,{get:function(){if(this._stack.length&gt;0)return this._stack[this._stack.length-1].key},enumerable:!0}),Object.defineProperty(p,&quot;value&quot;,{get:function(){if(this._stack.length&gt;0)return this._stack[this._stack.length-1].value},enumerable:!0}),Object.defineProperty(p,&quot;index&quot;,{get:function(){var t=0,e=this._stack;if(0===e.length){var r=this.tree.root;return r?r._count:0}e[e.length-1].left&amp;&amp;(t=e[e.length-1].left._count);for(var n=e.length-2;n&gt;=0;--n)e[n+1]===e[n].right&amp;&amp;(++t,e[n].left&amp;&amp;(t+=e[n].left._count));return t},enumerable:!0}),p.next=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.right)for(e=e.right;e;)t.push(e),e=e.left;else for(t.pop();t.length&gt;0&amp;&amp;t[t.length-1].right===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,&quot;hasNext&quot;,{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].right)return!0;for(var e=t.length-1;e&gt;0;--e)if(t[e-1].left===t[e])return!0;return!1}}),p.update=function(t){var e=this._stack;if(0===e.length)throw new Error(&quot;Can't update empty node!&quot;);var r=new Array(e.length),i=e[e.length-1];r[r.length-1]=new n(i._color,i.key,t,i.left,i.right,i._count);for(var a=e.length-2;a&gt;=0;--a)(i=e[a]).left===e[a+1]?r[a]=new n(i._color,i.key,i.value,r[a+1],i.right,i._count):r[a]=new n(i._color,i.key,i.value,i.left,r[a+1],i._count);return new s(this.tree._compare,r[0])},p.prev=function(){var t=this._stack;if(0!==t.length){var e=t[t.length-1];if(e.left)for(e=e.left;e;)t.push(e),e=e.right;else for(t.pop();t.length&gt;0&amp;&amp;t[t.length-1].left===e;)e=t[t.length-1],t.pop()}},Object.defineProperty(p,&quot;hasPrev&quot;,{get:function(){var t=this._stack;if(0===t.length)return!1;if(t[t.length-1].left)return!0;for(var e=t.length-1;e&gt;0;--e)if(t[e-1].right===t[e])return!0;return!1}})},{}],248:[function(t,e,r){var n=[.9999999999998099,676.5203681218851,-1259.1392167224028,771.3234287776531,-176.6150291621406,12.507343278686905,-.13857109526572012,9984369578019572e-21,1.5056327351493116e-7],i=[.9999999999999971,57.15623566586292,-59.59796035547549,14.136097974741746,-.4919138160976202,3399464998481189e-20,4652362892704858e-20,-9837447530487956e-20,.0001580887032249125,-.00021026444172410488,.00021743961811521265,-.0001643181065367639,8441822398385275e-20,-26190838401581408e-21,36899182659531625e-22];function a(t){if(t&lt;0)return Number(&quot;0/0&quot;);for(var e=i[0],r=i.length-1;r&gt;0;--r)e+=i[r]/(t+r);var n=t+607/128+.5;return.5*Math.log(2*Math.PI)+(t+.5)*Math.log(n)-n+Math.log(e)-Math.log(t)}e.exports=function t(e){if(e&lt;.5)return Math.PI/(Math.sin(Math.PI*e)*t(1-e));if(e&gt;100)return Math.exp(a(e));e-=1;for(var r=n[0],i=1;i&lt;9;i++)r+=n[i]/(e+i);var o=e+7+.5;return Math.sqrt(2*Math.PI)*Math.pow(o,e+.5)*Math.exp(-o)*r},e.exports.log=a},{}],249:[function(t,e,r){e.exports=function(t,e){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;must specify type string&quot;);if(e=e||{},&quot;undefined&quot;==typeof document&amp;&amp;!e.canvas)return null;var r=e.canvas||document.createElement(&quot;canvas&quot;);&quot;number&quot;==typeof e.width&amp;&amp;(r.width=e.width);&quot;number&quot;==typeof e.height&amp;&amp;(r.height=e.height);var n,i=e;try{var a=[t];0===t.indexOf(&quot;webgl&quot;)&amp;&amp;a.push(&quot;experimental-&quot;+t);for(var o=0;o&lt;a.length;o++)if(n=r.getContext(a[o],i))return n}catch(t){n=null}return n||null}},{}],250:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=new u(t);return r.update(e),r};var n=t(&quot;./lib/text.js&quot;),i=t(&quot;./lib/lines.js&quot;),a=t(&quot;./lib/background.js&quot;),o=t(&quot;./lib/cube.js&quot;),s=t(&quot;./lib/ticks.js&quot;),l=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]);function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function u(t){this.gl=t,this.pixelRatio=1,this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.autoTicks=!0,this.tickSpacing=[1,1,1],this.tickEnable=[!0,!0,!0],this.tickFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickAlign=[&quot;auto&quot;,&quot;auto&quot;,&quot;auto&quot;],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[10,10,10],this.lastCubeProps={cubeEdges:[0,0,0],axis:[0,0,0]},this.labels=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],this.labelEnable=[!0,!0,!0],this.labelFont=&quot;sans-serif&quot;,this.labelSize=[20,20,20],this.labelAngle=[0,0,0],this.labelAlign=[&quot;auto&quot;,&quot;auto&quot;,&quot;auto&quot;],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[10,10,10],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[0,0,0],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!1,!1,!1],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._firstInit=!0,this._text=null,this._lines=null,this._background=a(t)}var f=u.prototype;function h(){this.primalOffset=[0,0,0],this.primalMinor=[0,0,0],this.mirrorOffset=[0,0,0],this.mirrorMinor=[0,0,0]}f.update=function(t){function e(e,r,n){if(n in t){var i,a=t[n],o=this[n];(e?Array.isArray(a)&amp;&amp;Array.isArray(a[0]):Array.isArray(a))?this[n]=i=[r(a[0]),r(a[1]),r(a[2])]:this[n]=i=[r(a),r(a),r(a)];for(var s=0;s&lt;3;++s)if(i[s]!==o[s])return!0}return!1}t=t||{};var r,a=e.bind(this,!1,Number),o=e.bind(this,!1,Boolean),l=e.bind(this,!1,String),c=e.bind(this,!0,(function(t){if(Array.isArray(t)){if(3===t.length)return[+t[0],+t[1],+t[2],1];if(4===t.length)return[+t[0],+t[1],+t[2],+t[3]]}return[0,0,0,1]})),u=!1,f=!1;if(&quot;bounds&quot;in t)for(var h=t.bounds,p=0;p&lt;2;++p)for(var d=0;d&lt;3;++d)h[p][d]!==this.bounds[p][d]&amp;&amp;(f=!0),this.bounds[p][d]=h[p][d];if(&quot;ticks&quot;in t){r=t.ticks,u=!0,this.autoTicks=!1;for(p=0;p&lt;3;++p)this.tickSpacing[p]=0}else a(&quot;tickSpacing&quot;)&amp;&amp;(this.autoTicks=!0,f=!0);if(this._firstInit&amp;&amp;(&quot;ticks&quot;in t||&quot;tickSpacing&quot;in t||(this.autoTicks=!0),f=!0,u=!0,this._firstInit=!1),f&amp;&amp;this.autoTicks&amp;&amp;(r=s.create(this.bounds,this.tickSpacing),u=!0),u){for(p=0;p&lt;3;++p)r[p].sort((function(t,e){return t.x-e.x}));s.equal(r,this.ticks)?u=!1:this.ticks=r}o(&quot;tickEnable&quot;),l(&quot;tickFont&quot;)&amp;&amp;(u=!0),a(&quot;tickSize&quot;),a(&quot;tickAngle&quot;),a(&quot;tickPad&quot;),c(&quot;tickColor&quot;);var g=l(&quot;labels&quot;);l(&quot;labelFont&quot;)&amp;&amp;(g=!0),o(&quot;labelEnable&quot;),a(&quot;labelSize&quot;),a(&quot;labelPad&quot;),c(&quot;labelColor&quot;),o(&quot;lineEnable&quot;),o(&quot;lineMirror&quot;),a(&quot;lineWidth&quot;),c(&quot;lineColor&quot;),o(&quot;lineTickEnable&quot;),o(&quot;lineTickMirror&quot;),a(&quot;lineTickLength&quot;),a(&quot;lineTickWidth&quot;),c(&quot;lineTickColor&quot;),o(&quot;gridEnable&quot;),a(&quot;gridWidth&quot;),c(&quot;gridColor&quot;),o(&quot;zeroEnable&quot;),c(&quot;zeroLineColor&quot;),a(&quot;zeroLineWidth&quot;),o(&quot;backgroundEnable&quot;),c(&quot;backgroundColor&quot;),this._text?this._text&amp;&amp;(g||u)&amp;&amp;this._text.update(this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont):this._text=n(this.gl,this.bounds,this.labels,this.labelFont,this.ticks,this.tickFont),this._lines&amp;&amp;u&amp;&amp;(this._lines.dispose(),this._lines=null),this._lines||(this._lines=i(this.gl,this.bounds,this.ticks))};var p=[new h,new h,new h];function d(t,e,r,n,i){for(var a=t.primalOffset,o=t.primalMinor,s=t.mirrorOffset,l=t.mirrorMinor,c=n[e],u=0;u&lt;3;++u)if(e!==u){var f=a,h=s,p=o,d=l;c&amp;1&lt;&lt;u&amp;&amp;(f=s,h=a,p=l,d=o),f[u]=r[0][u],h[u]=r[1][u],i[u]&gt;0?(p[u]=-1,d[u]=0):(p[u]=0,d[u]=1)}}var g=[0,0,0],m={model:l,view:l,projection:l,_ortho:!1};f.isOpaque=function(){return!0},f.isTransparent=function(){return!1},f.drawTransparent=function(t){};var v=[0,0,0],y=[0,0,0],x=[0,0,0];f.draw=function(t){t=t||m;for(var e=this.gl,r=t.model||l,n=t.view||l,i=t.projection||l,a=this.bounds,s=t._ortho||!1,u=o(r,n,i,a,s),f=u.cubeEdges,h=u.axis,b=n[12],_=n[13],w=n[14],T=n[15],k=(s?2:1)*this.pixelRatio*(i[3]*b+i[7]*_+i[11]*w+i[15]*T)/e.drawingBufferHeight,M=0;M&lt;3;++M)this.lastCubeProps.cubeEdges[M]=f[M],this.lastCubeProps.axis[M]=h[M];var A=p;for(M=0;M&lt;3;++M)d(p[M],M,this.bounds,f,h);e=this.gl;var S,E=g;for(M=0;M&lt;3;++M)this.backgroundEnable[M]?E[M]=h[M]:E[M]=0;this._background.draw(r,n,i,a,E,this.backgroundColor),this._lines.bind(r,n,i,this);for(M=0;M&lt;3;++M){var C=[0,0,0];h[M]&gt;0?C[M]=a[1][M]:C[M]=a[0][M];for(var L=0;L&lt;2;++L){var I=(M+1+L)%3,P=(M+1+(1^L))%3;this.gridEnable[I]&amp;&amp;this._lines.drawGrid(I,P,this.bounds,C,this.gridColor[I],this.gridWidth[I]*this.pixelRatio)}for(L=0;L&lt;2;++L){I=(M+1+L)%3,P=(M+1+(1^L))%3;this.zeroEnable[P]&amp;&amp;Math.min(a[0][P],a[1][P])&lt;=0&amp;&amp;Math.max(a[0][P],a[1][P])&gt;=0&amp;&amp;this._lines.drawZero(I,P,this.bounds,C,this.zeroLineColor[P],this.zeroLineWidth[P]*this.pixelRatio)}}for(M=0;M&lt;3;++M){this.lineEnable[M]&amp;&amp;this._lines.drawAxisLine(M,this.bounds,A[M].primalOffset,this.lineColor[M],this.lineWidth[M]*this.pixelRatio),this.lineMirror[M]&amp;&amp;this._lines.drawAxisLine(M,this.bounds,A[M].mirrorOffset,this.lineColor[M],this.lineWidth[M]*this.pixelRatio);var z=c(v,A[M].primalMinor),O=c(y,A[M].mirrorMinor),D=this.lineTickLength;for(L=0;L&lt;3;++L){var R=k/r[5*L];z[L]*=D[L]*R,O[L]*=D[L]*R}this.lineTickEnable[M]&amp;&amp;this._lines.drawAxisTicks(M,A[M].primalOffset,z,this.lineTickColor[M],this.lineTickWidth[M]*this.pixelRatio),this.lineTickMirror[M]&amp;&amp;this._lines.drawAxisTicks(M,A[M].mirrorOffset,O,this.lineTickColor[M],this.lineTickWidth[M]*this.pixelRatio)}this._lines.unbind(),this._text.bind(r,n,i,this.pixelRatio);var F,B;function N(t){(B=[0,0,0])[t]=1}function j(t,e,r){var n=(t+1)%3,i=(t+2)%3,a=e[n],o=e[i],s=r[n],l=r[i];a&gt;0&amp;&amp;l&gt;0||a&gt;0&amp;&amp;l&lt;0||a&lt;0&amp;&amp;l&gt;0||a&lt;0&amp;&amp;l&lt;0?N(n):(o&gt;0&amp;&amp;s&gt;0||o&gt;0&amp;&amp;s&lt;0||o&lt;0&amp;&amp;s&gt;0||o&lt;0&amp;&amp;s&lt;0)&amp;&amp;N(i)}for(M=0;M&lt;3;++M){var U=A[M].primalMinor,V=A[M].mirrorMinor,q=c(x,A[M].primalOffset);for(L=0;L&lt;3;++L)this.lineTickEnable[M]&amp;&amp;(q[L]+=k*U[L]*Math.max(this.lineTickLength[L],0)/r[5*L]);var H=[0,0,0];if(H[M]=1,this.tickEnable[M]){-3600===this.tickAngle[M]?(this.tickAngle[M]=0,this.tickAlign[M]=&quot;auto&quot;):this.tickAlign[M]=-1,F=1,&quot;auto&quot;===(S=[this.tickAlign[M],.5,F])[0]?S[0]=0:S[0]=parseInt(&quot;&quot;+S[0]),B=[0,0,0],j(M,U,V);for(L=0;L&lt;3;++L)q[L]+=k*U[L]*this.tickPad[L]/r[5*L];this._text.drawTicks(M,this.tickSize[M],this.tickAngle[M],q,this.tickColor[M],H,B,S)}if(this.labelEnable[M]){F=0,B=[0,0,0],this.labels[M].length&gt;4&amp;&amp;(N(M),F=1),&quot;auto&quot;===(S=[this.labelAlign[M],.5,F])[0]?S[0]=0:S[0]=parseInt(&quot;&quot;+S[0]);for(L=0;L&lt;3;++L)q[L]+=k*U[L]*this.labelPad[L]/r[5*L];q[M]+=.5*(a[0][M]+a[1][M]),this._text.drawLabel(M,this.labelSize[M],this.labelAngle[M],q,this.labelColor[M],[0,0,0],B,S)}}this._text.unbind()},f.dispose=function(){this._text.dispose(),this._lines.dispose(),this._background.dispose(),this._lines=null,this._text=null,this._background=null,this.gl=null}},{&quot;./lib/background.js&quot;:251,&quot;./lib/cube.js&quot;:252,&quot;./lib/lines.js&quot;:253,&quot;./lib/text.js&quot;:255,&quot;./lib/ticks.js&quot;:256}],251:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=[],r=[],s=0,l=0;l&lt;3;++l)for(var c=(l+1)%3,u=(l+2)%3,f=[0,0,0],h=[0,0,0],p=-1;p&lt;=1;p+=2){r.push(s,s+2,s+1,s+1,s+2,s+3),f[l]=p,h[l]=p;for(var d=-1;d&lt;=1;d+=2){f[c]=d;for(var g=-1;g&lt;=1;g+=2)f[u]=g,e.push(f[0],f[1],f[2],h[0],h[1],h[2]),s+=1}var m=c;c=u,u=m}var v=n(t,new Float32Array(e)),y=n(t,new Uint16Array(r),t.ELEMENT_ARRAY_BUFFER),x=i(t,[{buffer:v,type:t.FLOAT,size:3,offset:0,stride:24},{buffer:v,type:t.FLOAT,size:3,offset:12,stride:24}],y),b=a(t);return b.attributes.position.location=0,b.attributes.normal.location=1,new o(t,v,x,b)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders&quot;).bg;function o(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n}var s=o.prototype;s.draw=function(t,e,r,n,i,a){for(var o=!1,s=0;s&lt;3;++s)o=o||i[s];if(o){var l=this.gl;l.enable(l.POLYGON_OFFSET_FILL),l.polygonOffset(1,2),this.shader.bind(),this.shader.uniforms={model:t,view:e,projection:r,bounds:n,enable:i,colors:a},this.vao.bind(),this.vao.draw(this.gl.TRIANGLES,36),this.vao.unbind(),l.disable(l.POLYGON_OFFSET_FILL)}},s.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:254,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],252:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,a,p){i(s,e,t),i(s,r,s);for(var y=0,x=0;x&lt;2;++x){u[2]=a[x][2];for(var b=0;b&lt;2;++b){u[1]=a[b][1];for(var _=0;_&lt;2;++_)u[0]=a[_][0],h(l[y],u,s),y+=1}}var w=-1;for(x=0;x&lt;8;++x){for(var T=l[x][3],k=0;k&lt;3;++k)c[x][k]=l[x][k]/T;p&amp;&amp;(c[x][2]*=-1),T&lt;0&amp;&amp;(w&lt;0||c[x][2]&lt;c[w][2])&amp;&amp;(w=x)}if(w&lt;0){w=0;for(var M=0;M&lt;3;++M){for(var A=(M+2)%3,S=(M+1)%3,E=-1,C=-1,L=0;L&lt;2;++L){var I=(z=L&lt;&lt;M)+(L&lt;&lt;A)+(1-L&lt;&lt;S),P=z+(1-L&lt;&lt;A)+(L&lt;&lt;S);o(c[z],c[I],c[P],f)&lt;0||(L?E=1:C=1)}if(E&lt;0||C&lt;0)C&gt;E&amp;&amp;(w|=1&lt;&lt;M);else{for(L=0;L&lt;2;++L){I=(z=L&lt;&lt;M)+(L&lt;&lt;A)+(1-L&lt;&lt;S),P=z+(1-L&lt;&lt;A)+(L&lt;&lt;S);var z,O=d([l[z],l[I],l[P],l[z+(1&lt;&lt;A)+(1&lt;&lt;S)]]);L?E=O:C=O}C&gt;E&amp;&amp;(w|=1&lt;&lt;M)}}}var D=7^w,R=-1;for(x=0;x&lt;8;++x)x!==w&amp;&amp;x!==D&amp;&amp;(R&lt;0||c[R][1]&gt;c[x][1])&amp;&amp;(R=x);var F=-1;for(x=0;x&lt;3;++x){if((N=R^1&lt;&lt;x)!==w&amp;&amp;N!==D)F&lt;0&amp;&amp;(F=N),(S=c[N])[0]&lt;c[F][0]&amp;&amp;(F=N)}var B=-1;for(x=0;x&lt;3;++x){var N;if((N=R^1&lt;&lt;x)!==w&amp;&amp;N!==D&amp;&amp;N!==F)B&lt;0&amp;&amp;(B=N),(S=c[N])[0]&gt;c[B][0]&amp;&amp;(B=N)}var j=g;j[0]=j[1]=j[2]=0,j[n.log2(F^R)]=R&amp;F,j[n.log2(R^B)]=R&amp;B;var U=7^B;U===w||U===D?(U=7^F,j[n.log2(B^U)]=U&amp;B):j[n.log2(F^U)]=U&amp;F;var V=m,q=w;for(M=0;M&lt;3;++M)V[M]=q&amp;1&lt;&lt;M?-1:1;return v};var n=t(&quot;bit-twiddle&quot;),i=t(&quot;gl-mat4/multiply&quot;),a=t(&quot;split-polygon&quot;),o=t(&quot;robust-orientation&quot;),s=new Array(16),l=new Array(8),c=new Array(8),u=new Array(3),f=[0,0,0];function h(t,e,r){for(var n=0;n&lt;4;++n){t[n]=r[12+n];for(var i=0;i&lt;3;++i)t[n]+=e[i]*r[4*i+n]}}!function(){for(var t=0;t&lt;8;++t)l[t]=[1,1,1,1],c[t]=[1,1,1]}();var p=[[0,0,1,0,0],[0,0,-1,1,0],[0,-1,0,1,0],[0,1,0,1,0],[-1,0,0,1,0],[1,0,0,1,0]];function d(t){for(var e=0;e&lt;p.length;++e)if((t=a.positive(t,p[e])).length&lt;3)return 0;var r=t[0],n=r[0]/r[3],i=r[1]/r[3],o=0;for(e=1;e+1&lt;t.length;++e){var s=t[e],l=t[e+1],c=s[0]/s[3]-n,u=s[1]/s[3]-i,f=l[0]/l[3]-n,h=l[1]/l[3]-i;o+=Math.abs(c*h-u*f)}return o}var g=[1,1,1],m=[0,0,0],v={cubeEdges:g,axis:m}},{&quot;bit-twiddle&quot;:97,&quot;gl-mat4/multiply&quot;:295,&quot;robust-orientation&quot;:548,&quot;split-polygon&quot;:566}],253:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var o=[],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[0,0,0];o.push(0,0,1,0,1,1,0,0,-1,0,0,-1,0,1,1,0,1,-1);for(var f=0;f&lt;3;++f){for(var h=o.length/3|0,d=0;d&lt;r[f].length;++d){var g=+r[f][d].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}var m=o.length/3|0;s[f]=h,l[f]=m-h;h=o.length/3|0;for(var v=0;v&lt;r[f].length;++v){g=+r[f][v].x;o.push(g,0,1,g,1,1,g,0,-1,g,0,-1,g,1,1,g,1,-1)}m=o.length/3|0;c[f]=h,u[f]=m-h}var y=n(t,new Float32Array(o)),x=i(t,[{buffer:y,type:t.FLOAT,size:3,stride:0,offset:0}]),b=a(t);return b.attributes.position.location=0,new p(t,y,x,b,l,s,u,c)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders&quot;).line,o=[0,0,0],s=[0,0,0],l=[0,0,0],c=[0,0,0],u=[1,1];function f(t){return t[0]=t[1]=t[2]=0,t}function h(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function p(t,e,r,n,i,a,o,s){this.gl=t,this.vertBuffer=e,this.vao=r,this.shader=n,this.tickCount=i,this.tickOffset=a,this.gridCount=o,this.gridOffset=s}var d=p.prototype;d.bind=function(t,e,r){this.shader.bind(),this.shader.uniforms.model=t,this.shader.uniforms.view=e,this.shader.uniforms.projection=r,u[0]=this.gl.drawingBufferWidth,u[1]=this.gl.drawingBufferHeight,this.shader.uniforms.screenShape=u,this.vao.bind()},d.unbind=function(){this.vao.unbind()},d.drawAxisLine=function(t,e,r,n,i){var a=f(s);this.shader.uniforms.majorAxis=s,a[t]=e[1][t]-e[0][t],this.shader.uniforms.minorAxis=a;var o,u=h(c,r);u[t]+=e[0][t],this.shader.uniforms.offset=u,this.shader.uniforms.lineWidth=i,this.shader.uniforms.color=n,(o=f(l))[(t+2)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6),(o=f(l))[(t+1)%3]=1,this.shader.uniforms.screenAxis=o,this.vao.draw(this.gl.TRIANGLES,6)},d.drawAxisTicks=function(t,e,r,n,i){if(this.tickCount[t]){var a=f(o);a[t]=1,this.shader.uniforms.majorAxis=a,this.shader.uniforms.offset=e,this.shader.uniforms.minorAxis=r,this.shader.uniforms.color=n,this.shader.uniforms.lineWidth=i;var s=f(l);s[t]=1,this.shader.uniforms.screenAxis=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t])}},d.drawGrid=function(t,e,r,n,i,a){if(this.gridCount[t]){var u=f(s);u[e]=r[1][e]-r[0][e],this.shader.uniforms.minorAxis=u;var p=h(c,n);p[e]+=r[0][e],this.shader.uniforms.offset=p;var d=f(o);d[t]=1,this.shader.uniforms.majorAxis=d;var g=f(l);g[t]=1,this.shader.uniforms.screenAxis=g,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,this.gridCount[t],this.gridOffset[t])}},d.drawZero=function(t,e,r,n,i,a){var o=f(s);this.shader.uniforms.majorAxis=o,o[t]=r[1][t]-r[0][t],this.shader.uniforms.minorAxis=o;var u=h(c,n);u[t]+=r[0][t],this.shader.uniforms.offset=u;var p=f(l);p[e]=1,this.shader.uniforms.screenAxis=p,this.shader.uniforms.lineWidth=a,this.shader.uniforms.color=i,this.vao.draw(this.gl.TRIANGLES,6)},d.dispose=function(){this.vao.dispose(),this.vertBuffer.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:254,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],254:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, majorAxis, minorAxis, screenAxis;\nuniform float lineWidth;\nuniform vec2 screenShape;\n\nvec3 project(vec3 p) {\n  vec4 pp = projection * view * model * vec4(p, 1.0);\n  return pp.xyz / max(pp.w, 0.0001);\n}\n\nvoid main() {\n  vec3 major = position.x * majorAxis;\n  vec3 minor = position.y * minorAxis;\n\n  vec3 vPosition = major + minor + offset;\n  vec3 pPosition = project(vPosition);\n  vec3 offset = project(vPosition + screenAxis * position.z);\n\n  vec2 screen = normalize((offset - pPosition).xy * screenShape) / screenShape;\n\n  gl_Position = vec4(pPosition + vec3(0.5 * screen * lineWidth, 0), 1.0);\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = color;\n}&quot;]);r.line=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;}])};var s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\nuniform vec3 offset, axis, alignDir, alignOpt;\nuniform float scale, angle, pixelScale;\nuniform vec2 resolution;\n\nvec3 project(vec3 p) {\n  vec4 pp = projection * view * model * vec4(p, 1.0);\n  return pp.xyz / max(pp.w, 0.0001);\n}\n\nfloat computeViewAngle(vec3 a, vec3 b) {\n  vec3 A = project(a);\n  vec3 B = project(b);\n\n  return atan(\n    (B.y - A.y) * resolution.y,\n    (B.x - A.x) * resolution.x\n  );\n}\n\nconst float PI = 3.141592;\nconst float TWO_PI = 2.0 * PI;\nconst float HALF_PI = 0.5 * PI;\nconst float ONE_AND_HALF_PI = 1.5 * PI;\n\nint option = int(floor(alignOpt.x + 0.001));\nfloat hv_ratio =       alignOpt.y;\nbool enableAlign =    (alignOpt.z != 0.0);\n\nfloat mod_angle(float a) {\n  return mod(a, PI);\n}\n\nfloat positive_angle(float a) {\n  return mod_angle((a &lt; 0.0) ?\n    a + TWO_PI :\n    a\n  );\n}\n\nfloat look_upwards(float a) {\n  float b = positive_angle(a);\n  return ((b &gt; HALF_PI) &amp;&amp; (b &lt;= ONE_AND_HALF_PI)) ?\n    b - PI :\n    b;\n}\n\nfloat look_horizontal_or_vertical(float a, float ratio) {\n  // ratio controls the ratio between being horizontal to (vertical + horizontal)\n  // if ratio is set to 0.5 then it is 50%, 50%.\n  // when using a higher ratio e.g. 0.75 the result would\n  // likely be more horizontal than vertical.\n\n  float b = positive_angle(a);\n\n  return\n    (b &lt; (      ratio) * HALF_PI) ? 0.0 :\n    (b &lt; (2.0 - ratio) * HALF_PI) ? -HALF_PI :\n    (b &lt; (2.0 + ratio) * HALF_PI) ? 0.0 :\n    (b &lt; (4.0 - ratio) * HALF_PI) ? HALF_PI :\n                                    0.0;\n}\n\nfloat roundTo(float a, float b) {\n  return float(b * floor((a + 0.5 * b) / b));\n}\n\nfloat look_round_n_directions(float a, int n) {\n  float b = positive_angle(a);\n  float div = TWO_PI / float(n);\n  float c = roundTo(b, div);\n  return look_upwards(c);\n}\n\nfloat applyAlignOption(float rawAngle, float delta) {\n  return\n    (option &gt;  2) ? look_round_n_directions(rawAngle + delta, option) :       // option 3-n: round to n directions\n    (option == 2) ? look_horizontal_or_vertical(rawAngle + delta, hv_ratio) : // horizontal or vertical\n    (option == 1) ? rawAngle + delta :       // use free angle, and flip to align with one direction of the axis\n    (option == 0) ? look_upwards(rawAngle) : // use free angle, and stay upwards\n    (option ==-1) ? 0.0 :                    // useful for backward compatibility, all texts remains horizontal\n                    rawAngle;                // otherwise return back raw input angle\n}\n\nbool isAxisTitle = (axis.x == 0.0) &amp;&amp;\n                   (axis.y == 0.0) &amp;&amp;\n                   (axis.z == 0.0);\n\nvoid main() {\n  //Compute world offset\n  float axisDistance = position.z;\n  vec3 dataPosition = axisDistance * axis + offset;\n\n  float beta = angle; // i.e. user defined attributes for each tick\n\n  float axisAngle;\n  float clipAngle;\n  float flip;\n\n  if (enableAlign) {\n    axisAngle = (isAxisTitle) ? HALF_PI :\n                      computeViewAngle(dataPosition, dataPosition + axis);\n    clipAngle = computeViewAngle(dataPosition, dataPosition + alignDir);\n\n    axisAngle += (sin(axisAngle) &lt; 0.0) ? PI : 0.0;\n    clipAngle += (sin(clipAngle) &lt; 0.0) ? PI : 0.0;\n\n    flip = (dot(vec2(cos(axisAngle), sin(axisAngle)),\n                vec2(sin(clipAngle),-cos(clipAngle))) &gt; 0.0) ? 1.0 : 0.0;\n\n    beta += applyAlignOption(clipAngle, flip * PI);\n  }\n\n  //Compute plane offset\n  vec2 planeCoord = position.xy * pixelScale;\n\n  mat2 planeXform = scale * mat2(\n     cos(beta), sin(beta),\n    -sin(beta), cos(beta)\n  );\n\n  vec2 viewOffset = 2.0 * planeXform * planeCoord / resolution;\n\n  //Compute clip position\n  vec3 clipPosition = project(dataPosition);\n\n  //Apply text offset in clip coordinates\n  clipPosition += vec3(viewOffset, 0.0);\n\n  //Done\n  gl_Position = vec4(clipPosition, 1.0);\n}&quot;]),l=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = color;\n}&quot;]);r.text=function(t){return i(t,s,l,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;}])};var c=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec3 normal;\n\nuniform mat4 model, view, projection;\nuniform vec3 enable;\nuniform vec3 bounds[2];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n\n  vec3 signAxis = sign(bounds[1] - bounds[0]);\n\n  vec3 realNormal = signAxis * normal;\n\n  if(dot(realNormal, enable) &gt; 0.0) {\n    vec3 minRange = min(bounds[0], bounds[1]);\n    vec3 maxRange = max(bounds[0], bounds[1]);\n    vec3 nPosition = mix(minRange, maxRange, 0.5 * (position + 1.0));\n    gl_Position = projection * view * model * vec4(nPosition, 1.0);\n  } else {\n    gl_Position = vec4(0,0,0,0);\n  }\n\n  colorChannel = abs(realNormal);\n}&quot;]),u=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec4 colors[3];\n\nvarying vec3 colorChannel;\n\nvoid main() {\n  gl_FragColor = colorChannel.x * colors[0] +\n                 colorChannel.y * colors[1] +\n                 colorChannel.z * colors[2];\n}&quot;]);r.bg=function(t){return i(t,c,u,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}])}},{&quot;gl-shader&quot;:335,glslify:257}],255:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;e.exports=function(t,e,r,a,s,l){var u=n(t),f=i(t,[{buffer:u,size:3}]),h=o(t);h.attributes.position.location=0;var p=new c(t,h,u,f);return p.update(e,r,a,s,l),p};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;vectorize-text&quot;),o=t(&quot;./shaders&quot;).text,s=window||r.global||{},l=s.__TEXT_CACHE||{};s.__TEXT_CACHE={};function c(t,e,r,n){this.gl=t,this.shader=e,this.buffer=r,this.vao=n,this.tickOffset=this.tickCount=this.labelOffset=this.labelCount=null}var u=c.prototype,f=[0,0];u.bind=function(t,e,r,n){this.vao.bind(),this.shader.bind();var i=this.shader.uniforms;i.model=t,i.view=e,i.projection=r,i.pixelScale=n,f[0]=this.gl.drawingBufferWidth,f[1]=this.gl.drawingBufferHeight,this.shader.uniforms.resolution=f},u.unbind=function(){this.vao.unbind()},u.update=function(t,e,r,n,i){var o=[];function s(t,e,r,n,i,s){var c=l[r];c||(c=l[r]={});var u=c[e];u||(u=c[e]=function(t,e){try{return a(t,e)}catch(e){return console.warn('error vectorizing text:&quot;'+t+'&quot; error:',e),{cells:[],positions:[]}}}(e,{triangles:!0,font:r,textAlign:&quot;center&quot;,textBaseline:&quot;middle&quot;,lineSpacing:i,styletags:s}));for(var f=(n||12)/12,h=u.positions,p=u.cells,d=0,g=p.length;d&lt;g;++d)for(var m=p[d],v=2;v&gt;=0;--v){var y=h[m[v]];o.push(f*y[0],-f*y[1],t)}}for(var c=[0,0,0],u=[0,0,0],f=[0,0,0],h=[0,0,0],p={breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},d=0;d&lt;3;++d){f[d]=o.length/3|0,s(.5*(t[0][d]+t[1][d]),e[d],r[d],12,1.25,p),h[d]=(o.length/3|0)-f[d],c[d]=o.length/3|0;for(var g=0;g&lt;n[d].length;++g)n[d][g].text&amp;&amp;s(n[d][g].x,n[d][g].text,n[d][g].font||i,n[d][g].fontSize||12,1.25,p);u[d]=(o.length/3|0)-c[d]}this.buffer.update(o),this.tickOffset=c,this.tickCount=u,this.labelOffset=f,this.labelCount=h},u.drawTicks=function(t,e,r,n,i,a,o,s){this.tickCount[t]&amp;&amp;(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.tickCount[t],this.tickOffset[t]))},u.drawLabel=function(t,e,r,n,i,a,o,s){this.labelCount[t]&amp;&amp;(this.shader.uniforms.axis=a,this.shader.uniforms.color=i,this.shader.uniforms.angle=r,this.shader.uniforms.scale=e,this.shader.uniforms.offset=n,this.shader.uniforms.alignDir=o,this.shader.uniforms.alignOpt=s,this.vao.draw(this.gl.TRIANGLES,this.labelCount[t],this.labelOffset[t]))},u.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()}}).call(this)}).call(this,t(&quot;_process&quot;))},{&quot;./shaders&quot;:254,_process:526,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358,&quot;vectorize-text&quot;:600}],256:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=t+&quot;&quot;,n=r.indexOf(&quot;.&quot;),i=0;n&gt;=0&amp;&amp;(i=r.length-n-1);var a=Math.pow(10,i),o=Math.round(t*e*a),s=o+&quot;&quot;;if(s.indexOf(&quot;e&quot;)&gt;=0)return s;var l=o/a,c=o%a;o&lt;0?(l=0|-Math.ceil(l),c=0|-c):(l=0|Math.floor(l),c|=0);var u=&quot;&quot;+l;if(o&lt;0&amp;&amp;(u=&quot;-&quot;+u),i){for(var f=&quot;&quot;+c;f.length&lt;i;)f=&quot;0&quot;+f;return u+&quot;.&quot;+f}return u}r.create=function(t,e){for(var r=[],i=0;i&lt;3;++i){for(var a=[],o=(t[0][i],t[1][i],0);o*e[i]&lt;=t[1][i];++o)a.push({x:o*e[i],text:n(e[i],o)});for(o=-1;o*e[i]&gt;=t[0][i];--o)a.push({x:o*e[i],text:n(e[i],o)});r.push(a)}return r},r.equal=function(t,e){for(var r=0;r&lt;3;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n&lt;t[r].length;++n){var i=t[r][n],a=e[r][n];if(i.x!==a.x||i.text!==a.text||i.font!==a.font||i.fontColor!==a.fontColor||i.fontSize!==a.fontSize||i.dx!==a.dx||i.dy!==a.dy)return!1}}return!0}},{}],257:[function(t,e,r){e.exports=function(t){&quot;string&quot;==typeof t&amp;&amp;(t=[t]);for(var e=[].slice.call(arguments,1),r=[],n=0;n&lt;t.length-1;n++)r.push(t[n],e[n]||&quot;&quot;);return r.push(t[n]),r.join(&quot;&quot;)}},{}],258:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,l,f){var h=e.model||c,p=e.view||c,v=e.projection||c,y=e._ortho||!1,x=t.bounds,b=(f=f||a(h,p,v,x,y)).axis;o(u,p,h),o(u,v,u);for(var _=g,w=0;w&lt;3;++w)_[w].lo=1/0,_[w].hi=-1/0,_[w].pixelsPerDataUnit=1/0;var T=n(s(u,u));s(u,u);for(var k=0;k&lt;3;++k){var M=(k+1)%3,A=(k+2)%3,S=m;t:for(w=0;w&lt;2;++w){var E=[];if(b[k]&lt;0!=!!w){S[k]=x[w][k];for(var C=0;C&lt;2;++C){S[M]=x[C^w][M];for(var L=0;L&lt;2;++L)S[A]=x[L^C^w][A],E.push(S.slice())}var I=y?5:4;for(C=I;C===I;++C){if(0===E.length)continue t;E=i.positive(E,T[C])}for(C=0;C&lt;E.length;++C){A=E[C];var P=d(m,u,A,r,l);for(L=0;L&lt;3;++L)_[L].lo=Math.min(_[L].lo,A[L]),_[L].hi=Math.max(_[L].hi,A[L]),L!==k&amp;&amp;(_[L].pixelsPerDataUnit=Math.min(_[L].pixelsPerDataUnit,Math.abs(P[L])))}}}}return _};var n=t(&quot;extract-frustum-planes&quot;),i=t(&quot;split-polygon&quot;),a=t(&quot;./lib/cube.js&quot;),o=t(&quot;gl-mat4/multiply&quot;),s=t(&quot;gl-mat4/transpose&quot;),l=t(&quot;gl-vec4/transformMat4&quot;),c=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),u=new Float32Array(16);function f(t,e,r){this.lo=t,this.hi=e,this.pixelsPerDataUnit=r}var h=[0,0,0,1],p=[0,0,0,1];function d(t,e,r,n,i){for(var a=0;a&lt;3;++a){for(var o=h,s=p,c=0;c&lt;3;++c)s[c]=o[c]=r[c];s[3]=o[3]=1,s[a]+=1,l(s,s,e),s[3]&lt;0&amp;&amp;(t[a]=1/0),o[a]-=1,l(o,o,e),o[3]&lt;0&amp;&amp;(t[a]=1/0);var u=(o[0]/o[3]-s[0]/s[3])*n,f=(o[1]/o[3]-s[1]/s[3])*i;t[a]=.25*Math.sqrt(u*u+f*f)}return t}var g=[new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0),new f(1/0,-1/0,1/0)],m=[0,0,0]},{&quot;./lib/cube.js&quot;:252,&quot;extract-frustum-planes&quot;:240,&quot;gl-mat4/multiply&quot;:295,&quot;gl-mat4/transpose&quot;:306,&quot;gl-vec4/transformMat4&quot;:429,&quot;split-polygon&quot;:566}],259:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=t(&quot;ndarray-ops&quot;),a=t(&quot;ndarray&quot;),o=[&quot;uint8&quot;,&quot;uint8_clamped&quot;,&quot;uint16&quot;,&quot;uint32&quot;,&quot;int8&quot;,&quot;int16&quot;,&quot;int32&quot;,&quot;float32&quot;];function s(t,e,r,n,i){this.gl=t,this.type=e,this.handle=r,this.length=n,this.usage=i}var l=s.prototype;function c(t,e,r,n,i,a){var o=i.length*i.BYTES_PER_ELEMENT;if(a&lt;0)return t.bufferData(e,i,n),o;if(o+a&gt;r)throw new Error(&quot;gl-buffer: If resizing buffer, must not specify offset&quot;);return t.bufferSubData(e,a,i),r}function u(t,e){for(var r=n.malloc(t.length,e),i=t.length,a=0;a&lt;i;++a)r[a]=t[a];return r}l.bind=function(){this.gl.bindBuffer(this.type,this.handle)},l.unbind=function(){this.gl.bindBuffer(this.type,null)},l.dispose=function(){this.gl.deleteBuffer(this.handle)},l.update=function(t,e){if(&quot;number&quot;!=typeof e&amp;&amp;(e=-1),this.bind(),&quot;object&quot;==typeof t&amp;&amp;&quot;undefined&quot;!=typeof t.shape){var r=t.dtype;if(o.indexOf(r)&lt;0&amp;&amp;(r=&quot;float32&quot;),this.type===this.gl.ELEMENT_ARRAY_BUFFER)r=gl.getExtension(&quot;OES_element_index_uint&quot;)&amp;&amp;&quot;uint16&quot;!==r?&quot;uint32&quot;:&quot;uint16&quot;;if(r===t.dtype&amp;&amp;function(t,e){for(var r=1,n=e.length-1;n&gt;=0;--n){if(e[n]!==r)return!1;r*=t[n]}return!0}(t.shape,t.stride))0===t.offset&amp;&amp;t.data.length===t.shape[0]?this.length=c(this.gl,this.type,this.length,this.usage,t.data,e):this.length=c(this.gl,this.type,this.length,this.usage,t.data.subarray(t.offset,t.shape[0]),e);else{var s=n.malloc(t.size,r),l=a(s,t.shape);i.assign(l,t),this.length=c(this.gl,this.type,this.length,this.usage,e&lt;0?s:s.subarray(0,t.size),e),n.free(s)}}else if(Array.isArray(t)){var f;f=this.type===this.gl.ELEMENT_ARRAY_BUFFER?u(t,&quot;uint16&quot;):u(t,&quot;float32&quot;),this.length=c(this.gl,this.type,this.length,this.usage,e&lt;0?f:f.subarray(0,t.length),e),n.free(f)}else if(&quot;object&quot;==typeof t&amp;&amp;&quot;number&quot;==typeof t.length)this.length=c(this.gl,this.type,this.length,this.usage,t,e);else{if(&quot;number&quot;!=typeof t&amp;&amp;void 0!==t)throw new Error(&quot;gl-buffer: Invalid data type&quot;);if(e&gt;=0)throw new Error(&quot;gl-buffer: Cannot specify offset when resizing buffer&quot;);(t|=0)&lt;=0&amp;&amp;(t=1),this.gl.bufferData(this.type,0|t,this.usage),this.length=t}},e.exports=function(t,e,r,n){if(r=r||t.ARRAY_BUFFER,n=n||t.DYNAMIC_DRAW,r!==t.ARRAY_BUFFER&amp;&amp;r!==t.ELEMENT_ARRAY_BUFFER)throw new Error(&quot;gl-buffer: Invalid type for webgl buffer, must be either gl.ARRAY_BUFFER or gl.ELEMENT_ARRAY_BUFFER&quot;);if(n!==t.DYNAMIC_DRAW&amp;&amp;n!==t.STATIC_DRAW&amp;&amp;n!==t.STREAM_DRAW)throw new Error(&quot;gl-buffer: Invalid usage for buffer, must be either gl.DYNAMIC_DRAW, gl.STATIC_DRAW or gl.STREAM_DRAW&quot;);var i=t.createBuffer(),a=new s(t,r,i,0,n);return a.update(e),a}},{ndarray:495,&quot;ndarray-ops&quot;:490,&quot;typedarray-pool&quot;:595}],260:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-vec3&quot;);e.exports=function(t,e){var r=t.positions,i=t.vectors,a={positions:[],vertexIntensity:[],vertexIntensityBounds:t.vertexIntensityBounds,vectors:[],cells:[],coneOffset:t.coneOffset,colormap:t.colormap};if(0===t.positions.length)return e&amp;&amp;(e[0]=[0,0,0],e[1]=[0,0,0]),a;for(var o=0,s=1/0,l=-1/0,c=1/0,u=-1/0,f=1/0,h=-1/0,p=null,d=null,g=[],m=1/0,v=!1,y=0;y&lt;r.length;y++){var x=r[y];s=Math.min(x[0],s),l=Math.max(x[0],l),c=Math.min(x[1],c),u=Math.max(x[1],u),f=Math.min(x[2],f),h=Math.max(x[2],h);var b=i[y];if(n.length(b)&gt;o&amp;&amp;(o=n.length(b)),y){var _=2*n.distance(p,x)/(n.length(d)+n.length(b));_?(m=Math.min(m,_),v=!1):v=!0}v||(p=x,d=b),g.push(b)}var w=[s,c,f],T=[l,u,h];e&amp;&amp;(e[0]=w,e[1]=T),0===o&amp;&amp;(o=1);var k=1/o;isFinite(m)||(m=1),a.vectorScale=m;var M=t.coneSize||.5;t.absoluteConeSize&amp;&amp;(M=t.absoluteConeSize*k),a.coneScale=M;y=0;for(var A=0;y&lt;r.length;y++)for(var S=(x=r[y])[0],E=x[1],C=x[2],L=g[y],I=n.length(L)*k,P=0;P&lt;8;P++){a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.positions.push([S,E,C,A++]),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vectors.push(L),a.vertexIntensity.push(I,I,I),a.vertexIntensity.push(I,I,I);var z=a.positions.length;a.cells.push([z-6,z-5,z-4],[z-3,z-2,z-1])}return a};var i=t(&quot;./lib/shaders&quot;);e.exports.createMesh=t(&quot;./create_mesh&quot;),e.exports.createConeMesh=function(t,r){return e.exports.createMesh(t,r,{shaders:i,traceType:&quot;cone&quot;})}},{&quot;./create_mesh&quot;:261,&quot;./lib/shaders&quot;:262,&quot;gl-vec3&quot;:377}],261:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;gl-mat4/multiply&quot;),l=t(&quot;gl-mat4/invert&quot;),c=t(&quot;ndarray&quot;),u=t(&quot;colormap&quot;),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e,r,n,i,a,o,s,l,c,u){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.pickShader=n,this.trianglePositions=i,this.triangleVectors=a,this.triangleColors=s,this.triangleUVs=l,this.triangleIds=o,this.triangleVAO=c,this.triangleCount=0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.traceType=u,this.tubeScale=1,this.coneScale=2,this.vectorScale=1,this.coneOffset=.25,this._model=f,this._view=f,this._projection=f,this._resolution=[1,1]}var p=h.prototype;function d(t,e){var r=n(t,e.meshShader.vertex,e.meshShader.fragment,null,e.meshShader.attributes);return r.attributes.position.location=0,r.attributes.color.location=2,r.attributes.uv.location=3,r.attributes.vector.location=4,r}function g(t,e){var r=n(t,e.pickShader.vertex,e.pickShader.fragment,null,e.pickShader.attributes);return r.attributes.position.location=0,r.attributes.id.location=1,r.attributes.vector.location=4,r}p.isOpaque=function(){return this.opacity&gt;=1},p.isTransparent=function(){return this.opacity&lt;1},p.pickSlots=1,p.setPickBase=function(t){this.pickId=t},p.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,&quot;lightPosition&quot;in t&amp;&amp;(this.lightPosition=t.lightPosition),&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity),&quot;ambient&quot;in t&amp;&amp;(this.ambientLight=t.ambient),&quot;diffuse&quot;in t&amp;&amp;(this.diffuseLight=t.diffuse),&quot;specular&quot;in t&amp;&amp;(this.specularLight=t.specular),&quot;roughness&quot;in t&amp;&amp;(this.roughness=t.roughness),&quot;fresnel&quot;in t&amp;&amp;(this.fresnel=t.fresnel),void 0!==t.tubeScale&amp;&amp;(this.tubeScale=t.tubeScale),void 0!==t.vectorScale&amp;&amp;(this.vectorScale=t.vectorScale),void 0!==t.coneScale&amp;&amp;(this.coneScale=t.coneScale),void 0!==t.coneOffset&amp;&amp;(this.coneOffset=t.coneOffset),t.colormap&amp;&amp;(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t){for(var e=u({colormap:t,nshades:256,format:&quot;rgba&quot;}),r=new Uint8Array(1024),n=0;n&lt;256;++n){for(var i=e[n],a=0;a&lt;3;++a)r[4*n+a]=i[a];r[4*n+3]=255*i[3]}return c(r,[256,256,4],[4,0,1])}(t.colormap)),this.texture.generateMipmap());var r=t.cells,n=t.positions,i=t.vectors;if(n&amp;&amp;r&amp;&amp;i){var a=[],o=[],s=[],l=[],f=[];this.cells=r,this.positions=n,this.vectors=i;var h=t.meshColor||[1,1,1,1],p=t.vertexIntensity,d=1/0,g=-1/0;if(p)if(t.vertexIntensityBounds)d=+t.vertexIntensityBounds[0],g=+t.vertexIntensityBounds[1];else for(var m=0;m&lt;p.length;++m){var v=p[m];d=Math.min(d,v),g=Math.max(g,v)}else for(m=0;m&lt;n.length;++m){v=n[m][2];d=Math.min(d,v),g=Math.max(g,v)}this.intensity=p||function(t){for(var e=t.length,r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n][2];return r}(n),this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(m=0;m&lt;n.length;++m)for(var y=n[m],x=0;x&lt;3;++x)!isNaN(y[x])&amp;&amp;isFinite(y[x])&amp;&amp;(this.bounds[0][x]=Math.min(this.bounds[0][x],y[x]),this.bounds[1][x]=Math.max(this.bounds[1][x],y[x]));var b=0;t:for(m=0;m&lt;r.length;++m){var _=r[m];switch(_.length){case 3:for(x=0;x&lt;3;++x){y=n[T=_[x]];for(var w=0;w&lt;3;++w)if(isNaN(y[w])||!isFinite(y[w]))continue t}for(x=0;x&lt;3;++x){var T;y=n[T=_[2-x]];a.push(y[0],y[1],y[2],y[3]);var k=i[T];o.push(k[0],k[1],k[2],k[3]||0);var M,A=h;3===A.length?s.push(A[0],A[1],A[2],1):s.push(A[0],A[1],A[2],A[3]),M=p?[(p[T]-d)/(g-d),0]:[(y[2]-d)/(g-d),0],l.push(M[0],M[1]),f.push(m)}b+=1}}this.triangleCount=b,this.trianglePositions.update(a),this.triangleVectors.update(o),this.triangleColors.update(s),this.triangleUVs.update(l),this.triangleIds.update(new Uint32Array(f))}},p.drawTransparent=p.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var c={model:r,view:n,projection:i,inverseModel:f.slice(),clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],opacity:this.opacity,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,texture:0};c.inverseModel=l(c.inverseModel,c.model),e.disable(e.CULL_FACE),this.texture.bind(0);var u=new Array(16);s(u,c.view,c.model),s(u,c.projection,u),l(u,u);for(o=0;o&lt;3;++o)c.eyePosition[o]=u[12+o]/u[15];var h=u[15];for(o=0;o&lt;3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o&lt;3;++o){for(var p=u[12+o],d=0;d&lt;3;++d)p+=u[4*d+o]*this.lightPosition[d];c.lightPosition[o]=p/h}if(this.triangleCount&gt;0){var g=this.triShader;g.bind(),g.uniforms=c,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()}},p.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||f,n=t.view||f,i=t.projection||f,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s={model:r,view:n,projection:i,clipBounds:a,tubeScale:this.tubeScale,vectorScale:this.vectorScale,coneScale:this.coneScale,coneOffset:this.coneOffset,pickId:this.pickId/255},l=this.pickShader;l.bind(),l.uniforms=s,this.triangleCount&gt;0&amp;&amp;(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind())},p.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions[r[1]].slice(0,3),i={position:n,dataCoordinate:n,index:Math.floor(r[1]/48)};return&quot;cone&quot;===this.traceType?i.index=Math.floor(r[1]/48):&quot;streamtube&quot;===this.traceType&amp;&amp;(i.intensity=this.intensity[r[1]],i.velocity=this.vectors[r[1]].slice(0,3),i.divergence=this.vectors[r[1]][3],i.index=e),i},p.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.pickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleVectors.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleIds.dispose()},e.exports=function(t,e,r){var n=r.shaders;1===arguments.length&amp;&amp;(t=(e=t).gl);var s=d(t,n),l=g(t,n),u=o(t,c(new Uint8Array([255,255,255,255]),[1,1,4]));u.generateMipmap(),u.minFilter=t.LINEAR_MIPMAP_LINEAR,u.magFilter=t.LINEAR;var f=i(t),p=i(t),m=i(t),v=i(t),y=i(t),x=a(t,[{buffer:f,type:t.FLOAT,size:4},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:m,type:t.FLOAT,size:4},{buffer:v,type:t.FLOAT,size:2},{buffer:p,type:t.FLOAT,size:4}]),b=new h(t,u,s,l,f,p,y,m,v,x,r.traceType||&quot;cone&quot;);return b.update(e),b}},{colormap:131,&quot;gl-buffer&quot;:259,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/multiply&quot;:295,&quot;gl-shader&quot;:335,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495}],262:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n//   segment + 0 top vertex\n//   segment + 1 perimeter vertex a+1\n//   segment + 2 perimeter vertex a\n//   segment + 3 center base vertex\n//   segment + 4 perimeter vertex a\n//   segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n  const float segmentCount = 8.0;\n\n  float index = rawIndex - floor(rawIndex /\n    (segmentCount * 6.0)) *\n    (segmentCount * 6.0);\n\n  float segment = floor(0.001 + index/6.0);\n  float segmentIndex = index - (segment*6.0);\n\n  normal = -normalize(d);\n\n  if (segmentIndex &gt; 2.99 &amp;&amp; segmentIndex &lt; 3.01) {\n    return mix(vec3(0.0), -d, coneOffset);\n  }\n\n  float nextAngle = (\n    (segmentIndex &gt; 0.99 &amp;&amp;  segmentIndex &lt; 1.01) ||\n    (segmentIndex &gt; 4.99 &amp;&amp;  segmentIndex &lt; 5.01)\n  ) ? 1.0 : 0.0;\n  float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n  vec3 v1 = mix(d, vec3(0.0), coneOffset);\n  vec3 v2 = v1 - d;\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d)*0.25;\n  vec3 y = v * sin(angle) * length(d)*0.25;\n  vec3 v3 = v2 + x + y;\n  if (segmentIndex &lt; 3.0) {\n    vec3 tx = u * sin(angle);\n    vec3 ty = v * -cos(angle);\n    vec3 tangent = tx + ty;\n    normal = normalize(cross(v3 - v1, tangent));\n  }\n\n  if (segmentIndex == 0.0) {\n    return mix(d, vec3(0.0), coneOffset);\n  }\n  return v3;\n}\n\nattribute vec3 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, coneScale, coneOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  // Scale the vector magnitude to stay constant with\n  // model &amp; view changes.\n  vec3 normal;\n  vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector), position.w, coneOffset, normal);\n  vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * conePosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  // vec4 m_position  = model * vec4(conePosition, 1.0);\n  vec4 t_position  = view * conePosition;\n  gl_Position      = projection * t_position;\n\n  f_color          = color;\n  f_data           = conePosition.xyz;\n  f_position       = position.xyz;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * opacity;\n}\n&quot;]),o=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the cone vertex and normal at the given index.\n//\n// The returned vertex is for a cone with its top at origin and height of 1.0,\n// pointing in the direction of the vector attribute.\n//\n// Each cone is made up of a top vertex, a center base vertex and base perimeter vertices.\n// These vertices are used to make up the triangles of the cone by the following:\n//   segment + 0 top vertex\n//   segment + 1 perimeter vertex a+1\n//   segment + 2 perimeter vertex a\n//   segment + 3 center base vertex\n//   segment + 4 perimeter vertex a\n//   segment + 5 perimeter vertex a+1\n// Where segment is the number of the radial segment * 6 and a is the angle at that radial segment.\n// To go from index to segment, floor(index / 6)\n// To go from segment to angle, 2*pi * (segment/segmentCount)\n// To go from index to segment index, index - (segment*6)\n//\nvec3 getConePosition(vec3 d, float rawIndex, float coneOffset, out vec3 normal) {\n\n  const float segmentCount = 8.0;\n\n  float index = rawIndex - floor(rawIndex /\n    (segmentCount * 6.0)) *\n    (segmentCount * 6.0);\n\n  float segment = floor(0.001 + index/6.0);\n  float segmentIndex = index - (segment*6.0);\n\n  normal = -normalize(d);\n\n  if (segmentIndex &gt; 2.99 &amp;&amp; segmentIndex &lt; 3.01) {\n    return mix(vec3(0.0), -d, coneOffset);\n  }\n\n  float nextAngle = (\n    (segmentIndex &gt; 0.99 &amp;&amp;  segmentIndex &lt; 1.01) ||\n    (segmentIndex &gt; 4.99 &amp;&amp;  segmentIndex &lt; 5.01)\n  ) ? 1.0 : 0.0;\n  float angle = 2.0 * 3.14159 * ((segment + nextAngle) / segmentCount);\n\n  vec3 v1 = mix(d, vec3(0.0), coneOffset);\n  vec3 v2 = v1 - d;\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d)*0.25;\n  vec3 y = v * sin(angle) * length(d)*0.25;\n  vec3 v3 = v2 + x + y;\n  if (segmentIndex &lt; 3.0) {\n    vec3 tx = u * sin(angle);\n    vec3 ty = v * -cos(angle);\n    vec3 tangent = tx + ty;\n    normal = normalize(cross(v3 - v1, tangent));\n  }\n\n  if (segmentIndex == 0.0) {\n    return mix(d, vec3(0.0), coneOffset);\n  }\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float vectorScale, coneScale, coneOffset;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  vec3 normal;\n  vec3 XYZ = getConePosition(mat3(model) * ((vectorScale * coneScale) * vector.xyz), position.w, coneOffset, normal);\n  vec4 conePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n  gl_Position = projection * view * conePosition;\n  f_id        = id;\n  f_position  = position.xyz;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;vector&quot;,type:&quot;vec3&quot;}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;},{name:&quot;vector&quot;,type:&quot;vec3&quot;}]}},{glslify:263}],263:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],264:[function(t,e,r){e.exports={0:&quot;NONE&quot;,1:&quot;ONE&quot;,2:&quot;LINE_LOOP&quot;,3:&quot;LINE_STRIP&quot;,4:&quot;TRIANGLES&quot;,5:&quot;TRIANGLE_STRIP&quot;,6:&quot;TRIANGLE_FAN&quot;,256:&quot;DEPTH_BUFFER_BIT&quot;,512:&quot;NEVER&quot;,513:&quot;LESS&quot;,514:&quot;EQUAL&quot;,515:&quot;LEQUAL&quot;,516:&quot;GREATER&quot;,517:&quot;NOTEQUAL&quot;,518:&quot;GEQUAL&quot;,519:&quot;ALWAYS&quot;,768:&quot;SRC_COLOR&quot;,769:&quot;ONE_MINUS_SRC_COLOR&quot;,770:&quot;SRC_ALPHA&quot;,771:&quot;ONE_MINUS_SRC_ALPHA&quot;,772:&quot;DST_ALPHA&quot;,773:&quot;ONE_MINUS_DST_ALPHA&quot;,774:&quot;DST_COLOR&quot;,775:&quot;ONE_MINUS_DST_COLOR&quot;,776:&quot;SRC_ALPHA_SATURATE&quot;,1024:&quot;STENCIL_BUFFER_BIT&quot;,1028:&quot;FRONT&quot;,1029:&quot;BACK&quot;,1032:&quot;FRONT_AND_BACK&quot;,1280:&quot;INVALID_ENUM&quot;,1281:&quot;INVALID_VALUE&quot;,1282:&quot;INVALID_OPERATION&quot;,1285:&quot;OUT_OF_MEMORY&quot;,1286:&quot;INVALID_FRAMEBUFFER_OPERATION&quot;,2304:&quot;CW&quot;,2305:&quot;CCW&quot;,2849:&quot;LINE_WIDTH&quot;,2884:&quot;CULL_FACE&quot;,2885:&quot;CULL_FACE_MODE&quot;,2886:&quot;FRONT_FACE&quot;,2928:&quot;DEPTH_RANGE&quot;,2929:&quot;DEPTH_TEST&quot;,2930:&quot;DEPTH_WRITEMASK&quot;,2931:&quot;DEPTH_CLEAR_VALUE&quot;,2932:&quot;DEPTH_FUNC&quot;,2960:&quot;STENCIL_TEST&quot;,2961:&quot;STENCIL_CLEAR_VALUE&quot;,2962:&quot;STENCIL_FUNC&quot;,2963:&quot;STENCIL_VALUE_MASK&quot;,2964:&quot;STENCIL_FAIL&quot;,2965:&quot;STENCIL_PASS_DEPTH_FAIL&quot;,2966:&quot;STENCIL_PASS_DEPTH_PASS&quot;,2967:&quot;STENCIL_REF&quot;,2968:&quot;STENCIL_WRITEMASK&quot;,2978:&quot;VIEWPORT&quot;,3024:&quot;DITHER&quot;,3042:&quot;BLEND&quot;,3088:&quot;SCISSOR_BOX&quot;,3089:&quot;SCISSOR_TEST&quot;,3106:&quot;COLOR_CLEAR_VALUE&quot;,3107:&quot;COLOR_WRITEMASK&quot;,3317:&quot;UNPACK_ALIGNMENT&quot;,3333:&quot;PACK_ALIGNMENT&quot;,3379:&quot;MAX_TEXTURE_SIZE&quot;,3386:&quot;MAX_VIEWPORT_DIMS&quot;,3408:&quot;SUBPIXEL_BITS&quot;,3410:&quot;RED_BITS&quot;,3411:&quot;GREEN_BITS&quot;,3412:&quot;BLUE_BITS&quot;,3413:&quot;ALPHA_BITS&quot;,3414:&quot;DEPTH_BITS&quot;,3415:&quot;STENCIL_BITS&quot;,3553:&quot;TEXTURE_2D&quot;,4352:&quot;DONT_CARE&quot;,4353:&quot;FASTEST&quot;,4354:&quot;NICEST&quot;,5120:&quot;BYTE&quot;,5121:&quot;UNSIGNED_BYTE&quot;,5122:&quot;SHORT&quot;,5123:&quot;UNSIGNED_SHORT&quot;,5124:&quot;INT&quot;,5125:&quot;UNSIGNED_INT&quot;,5126:&quot;FLOAT&quot;,5386:&quot;INVERT&quot;,5890:&quot;TEXTURE&quot;,6401:&quot;STENCIL_INDEX&quot;,6402:&quot;DEPTH_COMPONENT&quot;,6406:&quot;ALPHA&quot;,6407:&quot;RGB&quot;,6408:&quot;RGBA&quot;,6409:&quot;LUMINANCE&quot;,6410:&quot;LUMINANCE_ALPHA&quot;,7680:&quot;KEEP&quot;,7681:&quot;REPLACE&quot;,7682:&quot;INCR&quot;,7683:&quot;DECR&quot;,7936:&quot;VENDOR&quot;,7937:&quot;RENDERER&quot;,7938:&quot;VERSION&quot;,9728:&quot;NEAREST&quot;,9729:&quot;LINEAR&quot;,9984:&quot;NEAREST_MIPMAP_NEAREST&quot;,9985:&quot;LINEAR_MIPMAP_NEAREST&quot;,9986:&quot;NEAREST_MIPMAP_LINEAR&quot;,9987:&quot;LINEAR_MIPMAP_LINEAR&quot;,10240:&quot;TEXTURE_MAG_FILTER&quot;,10241:&quot;TEXTURE_MIN_FILTER&quot;,10242:&quot;TEXTURE_WRAP_S&quot;,10243:&quot;TEXTURE_WRAP_T&quot;,10497:&quot;REPEAT&quot;,10752:&quot;POLYGON_OFFSET_UNITS&quot;,16384:&quot;COLOR_BUFFER_BIT&quot;,32769:&quot;CONSTANT_COLOR&quot;,32770:&quot;ONE_MINUS_CONSTANT_COLOR&quot;,32771:&quot;CONSTANT_ALPHA&quot;,32772:&quot;ONE_MINUS_CONSTANT_ALPHA&quot;,32773:&quot;BLEND_COLOR&quot;,32774:&quot;FUNC_ADD&quot;,32777:&quot;BLEND_EQUATION_RGB&quot;,32778:&quot;FUNC_SUBTRACT&quot;,32779:&quot;FUNC_REVERSE_SUBTRACT&quot;,32819:&quot;UNSIGNED_SHORT_4_4_4_4&quot;,32820:&quot;UNSIGNED_SHORT_5_5_5_1&quot;,32823:&quot;POLYGON_OFFSET_FILL&quot;,32824:&quot;POLYGON_OFFSET_FACTOR&quot;,32854:&quot;RGBA4&quot;,32855:&quot;RGB5_A1&quot;,32873:&quot;TEXTURE_BINDING_2D&quot;,32926:&quot;SAMPLE_ALPHA_TO_COVERAGE&quot;,32928:&quot;SAMPLE_COVERAGE&quot;,32936:&quot;SAMPLE_BUFFERS&quot;,32937:&quot;SAMPLES&quot;,32938:&quot;SAMPLE_COVERAGE_VALUE&quot;,32939:&quot;SAMPLE_COVERAGE_INVERT&quot;,32968:&quot;BLEND_DST_RGB&quot;,32969:&quot;BLEND_SRC_RGB&quot;,32970:&quot;BLEND_DST_ALPHA&quot;,32971:&quot;BLEND_SRC_ALPHA&quot;,33071:&quot;CLAMP_TO_EDGE&quot;,33170:&quot;GENERATE_MIPMAP_HINT&quot;,33189:&quot;DEPTH_COMPONENT16&quot;,33306:&quot;DEPTH_STENCIL_ATTACHMENT&quot;,33635:&quot;UNSIGNED_SHORT_5_6_5&quot;,33648:&quot;MIRRORED_REPEAT&quot;,33901:&quot;ALIASED_POINT_SIZE_RANGE&quot;,33902:&quot;ALIASED_LINE_WIDTH_RANGE&quot;,33984:&quot;TEXTURE0&quot;,33985:&quot;TEXTURE1&quot;,33986:&quot;TEXTURE2&quot;,33987:&quot;TEXTURE3&quot;,33988:&quot;TEXTURE4&quot;,33989:&quot;TEXTURE5&quot;,33990:&quot;TEXTURE6&quot;,33991:&quot;TEXTURE7&quot;,33992:&quot;TEXTURE8&quot;,33993:&quot;TEXTURE9&quot;,33994:&quot;TEXTURE10&quot;,33995:&quot;TEXTURE11&quot;,33996:&quot;TEXTURE12&quot;,33997:&quot;TEXTURE13&quot;,33998:&quot;TEXTURE14&quot;,33999:&quot;TEXTURE15&quot;,34e3:&quot;TEXTURE16&quot;,34001:&quot;TEXTURE17&quot;,34002:&quot;TEXTURE18&quot;,34003:&quot;TEXTURE19&quot;,34004:&quot;TEXTURE20&quot;,34005:&quot;TEXTURE21&quot;,34006:&quot;TEXTURE22&quot;,34007:&quot;TEXTURE23&quot;,34008:&quot;TEXTURE24&quot;,34009:&quot;TEXTURE25&quot;,34010:&quot;TEXTURE26&quot;,34011:&quot;TEXTURE27&quot;,34012:&quot;TEXTURE28&quot;,34013:&quot;TEXTURE29&quot;,34014:&quot;TEXTURE30&quot;,34015:&quot;TEXTURE31&quot;,34016:&quot;ACTIVE_TEXTURE&quot;,34024:&quot;MAX_RENDERBUFFER_SIZE&quot;,34041:&quot;DEPTH_STENCIL&quot;,34055:&quot;INCR_WRAP&quot;,34056:&quot;DECR_WRAP&quot;,34067:&quot;TEXTURE_CUBE_MAP&quot;,34068:&quot;TEXTURE_BINDING_CUBE_MAP&quot;,34069:&quot;TEXTURE_CUBE_MAP_POSITIVE_X&quot;,34070:&quot;TEXTURE_CUBE_MAP_NEGATIVE_X&quot;,34071:&quot;TEXTURE_CUBE_MAP_POSITIVE_Y&quot;,34072:&quot;TEXTURE_CUBE_MAP_NEGATIVE_Y&quot;,34073:&quot;TEXTURE_CUBE_MAP_POSITIVE_Z&quot;,34074:&quot;TEXTURE_CUBE_MAP_NEGATIVE_Z&quot;,34076:&quot;MAX_CUBE_MAP_TEXTURE_SIZE&quot;,34338:&quot;VERTEX_ATTRIB_ARRAY_ENABLED&quot;,34339:&quot;VERTEX_ATTRIB_ARRAY_SIZE&quot;,34340:&quot;VERTEX_ATTRIB_ARRAY_STRIDE&quot;,34341:&quot;VERTEX_ATTRIB_ARRAY_TYPE&quot;,34342:&quot;CURRENT_VERTEX_ATTRIB&quot;,34373:&quot;VERTEX_ATTRIB_ARRAY_POINTER&quot;,34466:&quot;NUM_COMPRESSED_TEXTURE_FORMATS&quot;,34467:&quot;COMPRESSED_TEXTURE_FORMATS&quot;,34660:&quot;BUFFER_SIZE&quot;,34661:&quot;BUFFER_USAGE&quot;,34816:&quot;STENCIL_BACK_FUNC&quot;,34817:&quot;STENCIL_BACK_FAIL&quot;,34818:&quot;STENCIL_BACK_PASS_DEPTH_FAIL&quot;,34819:&quot;STENCIL_BACK_PASS_DEPTH_PASS&quot;,34877:&quot;BLEND_EQUATION_ALPHA&quot;,34921:&quot;MAX_VERTEX_ATTRIBS&quot;,34922:&quot;VERTEX_ATTRIB_ARRAY_NORMALIZED&quot;,34930:&quot;MAX_TEXTURE_IMAGE_UNITS&quot;,34962:&quot;ARRAY_BUFFER&quot;,34963:&quot;ELEMENT_ARRAY_BUFFER&quot;,34964:&quot;ARRAY_BUFFER_BINDING&quot;,34965:&quot;ELEMENT_ARRAY_BUFFER_BINDING&quot;,34975:&quot;VERTEX_ATTRIB_ARRAY_BUFFER_BINDING&quot;,35040:&quot;STREAM_DRAW&quot;,35044:&quot;STATIC_DRAW&quot;,35048:&quot;DYNAMIC_DRAW&quot;,35632:&quot;FRAGMENT_SHADER&quot;,35633:&quot;VERTEX_SHADER&quot;,35660:&quot;MAX_VERTEX_TEXTURE_IMAGE_UNITS&quot;,35661:&quot;MAX_COMBINED_TEXTURE_IMAGE_UNITS&quot;,35663:&quot;SHADER_TYPE&quot;,35664:&quot;FLOAT_VEC2&quot;,35665:&quot;FLOAT_VEC3&quot;,35666:&quot;FLOAT_VEC4&quot;,35667:&quot;INT_VEC2&quot;,35668:&quot;INT_VEC3&quot;,35669:&quot;INT_VEC4&quot;,35670:&quot;BOOL&quot;,35671:&quot;BOOL_VEC2&quot;,35672:&quot;BOOL_VEC3&quot;,35673:&quot;BOOL_VEC4&quot;,35674:&quot;FLOAT_MAT2&quot;,35675:&quot;FLOAT_MAT3&quot;,35676:&quot;FLOAT_MAT4&quot;,35678:&quot;SAMPLER_2D&quot;,35680:&quot;SAMPLER_CUBE&quot;,35712:&quot;DELETE_STATUS&quot;,35713:&quot;COMPILE_STATUS&quot;,35714:&quot;LINK_STATUS&quot;,35715:&quot;VALIDATE_STATUS&quot;,35716:&quot;INFO_LOG_LENGTH&quot;,35717:&quot;ATTACHED_SHADERS&quot;,35718:&quot;ACTIVE_UNIFORMS&quot;,35719:&quot;ACTIVE_UNIFORM_MAX_LENGTH&quot;,35720:&quot;SHADER_SOURCE_LENGTH&quot;,35721:&quot;ACTIVE_ATTRIBUTES&quot;,35722:&quot;ACTIVE_ATTRIBUTE_MAX_LENGTH&quot;,35724:&quot;SHADING_LANGUAGE_VERSION&quot;,35725:&quot;CURRENT_PROGRAM&quot;,36003:&quot;STENCIL_BACK_REF&quot;,36004:&quot;STENCIL_BACK_VALUE_MASK&quot;,36005:&quot;STENCIL_BACK_WRITEMASK&quot;,36006:&quot;FRAMEBUFFER_BINDING&quot;,36007:&quot;RENDERBUFFER_BINDING&quot;,36048:&quot;FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE&quot;,36049:&quot;FRAMEBUFFER_ATTACHMENT_OBJECT_NAME&quot;,36050:&quot;FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL&quot;,36051:&quot;FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE&quot;,36053:&quot;FRAMEBUFFER_COMPLETE&quot;,36054:&quot;FRAMEBUFFER_INCOMPLETE_ATTACHMENT&quot;,36055:&quot;FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT&quot;,36057:&quot;FRAMEBUFFER_INCOMPLETE_DIMENSIONS&quot;,36061:&quot;FRAMEBUFFER_UNSUPPORTED&quot;,36064:&quot;COLOR_ATTACHMENT0&quot;,36096:&quot;DEPTH_ATTACHMENT&quot;,36128:&quot;STENCIL_ATTACHMENT&quot;,36160:&quot;FRAMEBUFFER&quot;,36161:&quot;RENDERBUFFER&quot;,36162:&quot;RENDERBUFFER_WIDTH&quot;,36163:&quot;RENDERBUFFER_HEIGHT&quot;,36164:&quot;RENDERBUFFER_INTERNAL_FORMAT&quot;,36168:&quot;STENCIL_INDEX8&quot;,36176:&quot;RENDERBUFFER_RED_SIZE&quot;,36177:&quot;RENDERBUFFER_GREEN_SIZE&quot;,36178:&quot;RENDERBUFFER_BLUE_SIZE&quot;,36179:&quot;RENDERBUFFER_ALPHA_SIZE&quot;,36180:&quot;RENDERBUFFER_DEPTH_SIZE&quot;,36181:&quot;RENDERBUFFER_STENCIL_SIZE&quot;,36194:&quot;RGB565&quot;,36336:&quot;LOW_FLOAT&quot;,36337:&quot;MEDIUM_FLOAT&quot;,36338:&quot;HIGH_FLOAT&quot;,36339:&quot;LOW_INT&quot;,36340:&quot;MEDIUM_INT&quot;,36341:&quot;HIGH_INT&quot;,36346:&quot;SHADER_COMPILER&quot;,36347:&quot;MAX_VERTEX_UNIFORM_VECTORS&quot;,36348:&quot;MAX_VARYING_VECTORS&quot;,36349:&quot;MAX_FRAGMENT_UNIFORM_VECTORS&quot;,37440:&quot;UNPACK_FLIP_Y_WEBGL&quot;,37441:&quot;UNPACK_PREMULTIPLY_ALPHA_WEBGL&quot;,37442:&quot;CONTEXT_LOST_WEBGL&quot;,37443:&quot;UNPACK_COLORSPACE_CONVERSION_WEBGL&quot;,37444:&quot;BROWSER_DEFAULT_WEBGL&quot;}},{}],265:[function(t,e,r){var n=t(&quot;./1.0/numbers&quot;);e.exports=function(t){return n[t]}},{&quot;./1.0/numbers&quot;:264}],266:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),o=i(e,[{buffer:r,type:e.FLOAT,size:3,offset:0,stride:40},{buffer:r,type:e.FLOAT,size:4,offset:12,stride:40},{buffer:r,type:e.FLOAT,size:3,offset:28,stride:40}]),l=a(e);l.attributes.position.location=0,l.attributes.color.location=1,l.attributes.offset.location=2;var c=new s(e,r,o,l);return c.update(t),c};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders/index&quot;),o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.shader=n,this.buffer=e,this.vao=r,this.pixelRatio=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lineWidth=[1,1,1],this.capSize=[10,10,10],this.lineCount=[0,0,0],this.lineOffset=[0,0,0],this.opacity=1,this.hasAlpha=!1}var l=s.prototype;function c(t,e){for(var r=0;r&lt;3;++r)t[0][r]=Math.min(t[0][r],e[r]),t[1][r]=Math.max(t[1][r],e[r])}l.isOpaque=function(){return!this.hasAlpha},l.isTransparent=function(){return this.hasAlpha},l.drawTransparent=l.draw=function(t){var e=this.gl,r=this.shader.uniforms;this.shader.bind();var n=r.view=t.view||o,i=r.projection=t.projection||o;r.model=t.model||o,r.clipBounds=this.clipBounds,r.opacity=this.opacity;var a=n[12],s=n[13],l=n[14],c=n[15],u=(t._ortho||!1?2:1)*this.pixelRatio*(i[3]*a+i[7]*s+i[11]*l+i[15]*c)/e.drawingBufferHeight;this.vao.bind();for(var f=0;f&lt;3;++f)e.lineWidth(this.lineWidth[f]*this.pixelRatio),r.capSize=this.capSize[f]*u,this.lineCount[f]&amp;&amp;e.drawArrays(e.LINES,this.lineOffset[f],this.lineCount[f]);this.vao.unbind()};var u=function(){for(var t=new Array(3),e=0;e&lt;3;++e){for(var r=[],n=1;n&lt;=2;++n)for(var i=-1;i&lt;=1;i+=2){var a=[0,0,0];a[(n+e)%3]=i,r.push(a)}t[e]=r}return t}();function f(t,e,r,n){for(var i=u[n],a=0;a&lt;i.length;++a){var o=i[a];t.push(e[0],e[1],e[2],r[0],r[1],r[2],r[3],o[0],o[1],o[2])}return i.length}l.update=function(t){&quot;lineWidth&quot;in(t=t||{})&amp;&amp;(this.lineWidth=t.lineWidth,Array.isArray(this.lineWidth)||(this.lineWidth=[this.lineWidth,this.lineWidth,this.lineWidth])),&quot;capSize&quot;in t&amp;&amp;(this.capSize=t.capSize,Array.isArray(this.capSize)||(this.capSize=[this.capSize,this.capSize,this.capSize])),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=+t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0));var e=t.color||[[0,0,0],[0,0,0],[0,0,0]],r=t.position,n=t.error;if(Array.isArray(e[0])||(e=[e,e,e]),r&amp;&amp;n){var i=[],a=r.length,o=0;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.lineCount=[0,0,0];for(var s=0;s&lt;3;++s){this.lineOffset[s]=o;t:for(var l=0;l&lt;a;++l){for(var u=r[l],h=0;h&lt;3;++h)if(isNaN(u[h])||!isFinite(u[h]))continue t;var p=n[l],d=e[s];if(Array.isArray(d[0])&amp;&amp;(d=e[l]),3===d.length?d=[d[0],d[1],d[2],1]:4===d.length&amp;&amp;(d=[d[0],d[1],d[2],d[3]],!this.hasAlpha&amp;&amp;d[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),!isNaN(p[0][s])&amp;&amp;!isNaN(p[1][s])){var g;if(p[0][s]&lt;0)(g=u.slice())[s]+=p[0][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s);if(p[1][s]&gt;0)(g=u.slice())[s]+=p[1][s],i.push(u[0],u[1],u[2],d[0],d[1],d[2],d[3],0,0,0,g[0],g[1],g[2],d[0],d[1],d[2],d[3],0,0,0),c(this.bounds,g),o+=2+f(i,g,d,s)}}this.lineCount[s]=o-this.lineOffset[s]}this.buffer.update(i)}},l.dispose=function(){this.shader.dispose(),this.buffer.dispose(),this.vao.dispose()}},{&quot;./shaders/index&quot;:268,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],267:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],268:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, offset;\nattribute vec4 color;\nuniform mat4 model, view, projection;\nuniform float capSize;\nvarying vec4 fragColor;\nvarying vec3 fragPosition;\n\nvoid main() {\n  vec4 worldPosition  = model * vec4(position, 1.0);\n  worldPosition       = (worldPosition / worldPosition.w) + vec4(capSize * offset, 0.0);\n  gl_Position         = projection * view * worldPosition;\n  fragColor           = color;\n  fragPosition        = position;\n}&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float opacity;\nvarying vec3 fragPosition;\nvarying vec4 fragColor;\n\nvoid main() {\n  if (\n    outOfRange(clipBounds[0], clipBounds[1], fragPosition) ||\n    fragColor.a * opacity == 0.\n  ) discard;\n\n  gl_FragColor = opacity * fragColor;\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;offset&quot;,type:&quot;vec3&quot;}])}},{&quot;gl-shader&quot;:335,glslify:267}],269:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-texture2d&quot;);e.exports=function(t,e,r,n){i||(i=t.FRAMEBUFFER_UNSUPPORTED,a=t.FRAMEBUFFER_INCOMPLETE_ATTACHMENT,o=t.FRAMEBUFFER_INCOMPLETE_DIMENSIONS,s=t.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT);var c=t.getExtension(&quot;WEBGL_draw_buffers&quot;);!l&amp;&amp;c&amp;&amp;function(t,e){var r=t.getParameter(e.MAX_COLOR_ATTACHMENTS_WEBGL);l=new Array(r+1);for(var n=0;n&lt;=r;++n){for(var i=new Array(r),a=0;a&lt;n;++a)i[a]=t.COLOR_ATTACHMENT0+a;for(a=n;a&lt;r;++a)i[a]=t.NONE;l[n]=i}}(t,c);Array.isArray(e)&amp;&amp;(n=r,r=0|e[1],e=0|e[0]);if(&quot;number&quot;!=typeof e)throw new Error(&quot;gl-fbo: Missing shape parameter&quot;);var u=t.getParameter(t.MAX_RENDERBUFFER_SIZE);if(e&lt;0||e&gt;u||r&lt;0||r&gt;u)throw new Error(&quot;gl-fbo: Parameters are too large for FBO&quot;);var f=1;if(&quot;color&quot;in(n=n||{})){if((f=Math.max(0|n.color,0))&lt;0)throw new Error(&quot;gl-fbo: Must specify a nonnegative number of colors&quot;);if(f&gt;1){if(!c)throw new Error(&quot;gl-fbo: Multiple draw buffer extension not supported&quot;);if(f&gt;t.getParameter(c.MAX_COLOR_ATTACHMENTS_WEBGL))throw new Error(&quot;gl-fbo: Context does not support &quot;+f+&quot; draw buffers&quot;)}}var h=t.UNSIGNED_BYTE,p=t.getExtension(&quot;OES_texture_float&quot;);if(n.float&amp;&amp;f&gt;0){if(!p)throw new Error(&quot;gl-fbo: Context does not support floating point textures&quot;);h=t.FLOAT}else n.preferFloat&amp;&amp;f&gt;0&amp;&amp;p&amp;&amp;(h=t.FLOAT);var g=!0;&quot;depth&quot;in n&amp;&amp;(g=!!n.depth);var m=!1;&quot;stencil&quot;in n&amp;&amp;(m=!!n.stencil);return new d(t,e,r,h,f,g,m,c)};var i,a,o,s,l=null;function c(t){return[t.getParameter(t.FRAMEBUFFER_BINDING),t.getParameter(t.RENDERBUFFER_BINDING),t.getParameter(t.TEXTURE_BINDING_2D)]}function u(t,e){t.bindFramebuffer(t.FRAMEBUFFER,e[0]),t.bindRenderbuffer(t.RENDERBUFFER,e[1]),t.bindTexture(t.TEXTURE_2D,e[2])}function f(t){switch(t){case i:throw new Error(&quot;gl-fbo: Framebuffer unsupported&quot;);case a:throw new Error(&quot;gl-fbo: Framebuffer incomplete attachment&quot;);case o:throw new Error(&quot;gl-fbo: Framebuffer incomplete dimensions&quot;);case s:throw new Error(&quot;gl-fbo: Framebuffer incomplete missing attachment&quot;);default:throw new Error(&quot;gl-fbo: Framebuffer failed for unspecified reason&quot;)}}function h(t,e,r,i,a,o){if(!i)return null;var s=n(t,e,r,a,i);return s.magFilter=t.NEAREST,s.minFilter=t.NEAREST,s.mipSamples=1,s.bind(),t.framebufferTexture2D(t.FRAMEBUFFER,o,t.TEXTURE_2D,s.handle,0),s}function p(t,e,r,n,i){var a=t.createRenderbuffer();return t.bindRenderbuffer(t.RENDERBUFFER,a),t.renderbufferStorage(t.RENDERBUFFER,n,e,r),t.framebufferRenderbuffer(t.FRAMEBUFFER,i,t.RENDERBUFFER,a),a}function d(t,e,r,n,i,a,o,s){this.gl=t,this._shape=[0|e,0|r],this._destroyed=!1,this._ext=s,this.color=new Array(i);for(var d=0;d&lt;i;++d)this.color[d]=null;this._color_rb=null,this.depth=null,this._depth_rb=null,this._colorType=n,this._useDepth=a,this._useStencil=o;var g=this,m=[0|e,0|r];Object.defineProperties(m,{0:{get:function(){return g._shape[0]},set:function(t){return g.width=t}},1:{get:function(){return g._shape[1]},set:function(t){return g.height=t}}}),this._shapeVector=m,function(t){var e=c(t.gl),r=t.gl,n=t.handle=r.createFramebuffer(),i=t._shape[0],a=t._shape[1],o=t.color.length,s=t._ext,d=t._useStencil,g=t._useDepth,m=t._colorType;r.bindFramebuffer(r.FRAMEBUFFER,n);for(var v=0;v&lt;o;++v)t.color[v]=h(r,i,a,m,r.RGBA,r.COLOR_ATTACHMENT0+v);0===o?(t._color_rb=p(r,i,a,r.RGBA4,r.COLOR_ATTACHMENT0),s&amp;&amp;s.drawBuffersWEBGL(l[0])):o&gt;1&amp;&amp;s.drawBuffersWEBGL(l[o]);var y=r.getExtension(&quot;WEBGL_depth_texture&quot;);y?d?t.depth=h(r,i,a,y.UNSIGNED_INT_24_8_WEBGL,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g&amp;&amp;(t.depth=h(r,i,a,r.UNSIGNED_SHORT,r.DEPTH_COMPONENT,r.DEPTH_ATTACHMENT)):g&amp;&amp;d?t._depth_rb=p(r,i,a,r.DEPTH_STENCIL,r.DEPTH_STENCIL_ATTACHMENT):g?t._depth_rb=p(r,i,a,r.DEPTH_COMPONENT16,r.DEPTH_ATTACHMENT):d&amp;&amp;(t._depth_rb=p(r,i,a,r.STENCIL_INDEX,r.STENCIL_ATTACHMENT));var x=r.checkFramebufferStatus(r.FRAMEBUFFER);if(x!==r.FRAMEBUFFER_COMPLETE){t._destroyed=!0,r.bindFramebuffer(r.FRAMEBUFFER,null),r.deleteFramebuffer(t.handle),t.handle=null,t.depth&amp;&amp;(t.depth.dispose(),t.depth=null),t._depth_rb&amp;&amp;(r.deleteRenderbuffer(t._depth_rb),t._depth_rb=null);for(v=0;v&lt;t.color.length;++v)t.color[v].dispose(),t.color[v]=null;t._color_rb&amp;&amp;(r.deleteRenderbuffer(t._color_rb),t._color_rb=null),u(r,e),f(x)}u(r,e)}(this)}var g=d.prototype;function m(t,e,r){if(t._destroyed)throw new Error(&quot;gl-fbo: Can't resize destroyed FBO&quot;);if(t._shape[0]!==e||t._shape[1]!==r){var n=t.gl,i=n.getParameter(n.MAX_RENDERBUFFER_SIZE);if(e&lt;0||e&gt;i||r&lt;0||r&gt;i)throw new Error(&quot;gl-fbo: Can't resize FBO, invalid dimensions&quot;);t._shape[0]=e,t._shape[1]=r;for(var a=c(n),o=0;o&lt;t.color.length;++o)t.color[o].shape=t._shape;t._color_rb&amp;&amp;(n.bindRenderbuffer(n.RENDERBUFFER,t._color_rb),n.renderbufferStorage(n.RENDERBUFFER,n.RGBA4,t._shape[0],t._shape[1])),t.depth&amp;&amp;(t.depth.shape=t._shape),t._depth_rb&amp;&amp;(n.bindRenderbuffer(n.RENDERBUFFER,t._depth_rb),t._useDepth&amp;&amp;t._useStencil?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t._shape[0],t._shape[1]):t._useDepth?n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_COMPONENT16,t._shape[0],t._shape[1]):t._useStencil&amp;&amp;n.renderbufferStorage(n.RENDERBUFFER,n.STENCIL_INDEX,t._shape[0],t._shape[1])),n.bindFramebuffer(n.FRAMEBUFFER,t.handle);var s=n.checkFramebufferStatus(n.FRAMEBUFFER);s!==n.FRAMEBUFFER_COMPLETE&amp;&amp;(t.dispose(),u(n,a),f(s)),u(n,a)}}Object.defineProperties(g,{shape:{get:function(){return this._destroyed?[0,0]:this._shapeVector},set:function(t){if(Array.isArray(t)||(t=[0|t,0|t]),2!==t.length)throw new Error(&quot;gl-fbo: Shape vector must be length 2&quot;);var e=0|t[0],r=0|t[1];return m(this,e,r),[e,r]},enumerable:!1},width:{get:function(){return this._destroyed?0:this._shape[0]},set:function(t){return m(this,t|=0,this._shape[1]),t},enumerable:!1},height:{get:function(){return this._destroyed?0:this._shape[1]},set:function(t){return t|=0,m(this,this._shape[0],t),t},enumerable:!1}}),g.bind=function(){if(!this._destroyed){var t=this.gl;t.bindFramebuffer(t.FRAMEBUFFER,this.handle),t.viewport(0,0,this._shape[0],this._shape[1])}},g.dispose=function(){if(!this._destroyed){this._destroyed=!0;var t=this.gl;t.deleteFramebuffer(this.handle),this.handle=null,this.depth&amp;&amp;(this.depth.dispose(),this.depth=null),this._depth_rb&amp;&amp;(t.deleteRenderbuffer(this._depth_rb),this._depth_rb=null);for(var e=0;e&lt;this.color.length;++e)this.color[e].dispose(),this.color[e]=null;this._color_rb&amp;&amp;(t.deleteRenderbuffer(this._color_rb),this._color_rb=null)}}},{&quot;gl-texture2d&quot;:353}],270:[function(t,e,r){var n=t(&quot;sprintf-js&quot;).sprintf,i=t(&quot;gl-constants/lookup&quot;),a=t(&quot;glsl-shader-name&quot;),o=t(&quot;add-line-numbers&quot;);e.exports=function(t,e,r){&quot;use strict&quot;;var s=a(e)||&quot;of unknown name (see npm glsl-shader-name)&quot;,l=&quot;unknown type&quot;;void 0!==r&amp;&amp;(l=r===i.FRAGMENT_SHADER?&quot;fragment&quot;:&quot;vertex&quot;);for(var c=n(&quot;Error compiling %s shader %s:\n&quot;,l,s),u=n(&quot;%s%s&quot;,c,t),f=t.split(&quot;\n&quot;),h={},p=0;p&lt;f.length;p++){var d=f[p];if(&quot;&quot;!==d&amp;&amp;&quot;\0&quot;!==d){var g=parseInt(d.split(&quot;:&quot;)[2]);if(isNaN(g))throw new Error(n(&quot;Could not parse error: %s&quot;,d));h[g]=d}}var m=o(e).split(&quot;\n&quot;);for(p=0;p&lt;m.length;p++)if(h[p+3]||h[p+2]||h[p+1]){var v=m[p];if(c+=v+&quot;\n&quot;,h[p+1]){var y=h[p+1];y=y.substr(y.split(&quot;:&quot;,3).join(&quot;:&quot;).length+1).trim(),c+=n(&quot;^^^ %s\n\n&quot;,y)}}return{long:c.trim(),short:u.trim()}}},{&quot;add-line-numbers&quot;:66,&quot;gl-constants/lookup&quot;:265,&quot;glsl-shader-name&quot;:431,&quot;sprintf-js&quot;:567}],271:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.gl,n=o(r,l.vertex,l.fragment),i=o(r,l.pickVertex,l.pickFragment),a=s(r),u=s(r),f=s(r),h=s(r),p=new c(t,n,i,a,u,f,h);return p.update(e),t.addObject(p),p};var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;iota-array&quot;),a=t(&quot;typedarray-pool&quot;),o=t(&quot;gl-shader&quot;),s=t(&quot;gl-buffer&quot;),l=t(&quot;./lib/shaders&quot;);function c(t,e,r,n,i,a,o){this.plot=t,this.shader=e,this.pickShader=r,this.positionBuffer=n,this.weightBuffer=i,this.colorBuffer=a,this.idBuffer=o,this.xData=[],this.yData=[],this.shape=[0,0],this.bounds=[1/0,1/0,-1/0,-1/0],this.pickOffset=0}var u,f=c.prototype,h=[0,0,1,0,0,1,1,0,1,1,0,1];f.draw=(u=[1,0,0,0,1,0,0,0,1],function(){var t=this.plot,e=this.shader,r=this.bounds,n=this.numVertices;if(!(n&lt;=0)){var i=t.gl,a=t.dataBox,o=r[2]-r[0],s=r[3]-r[1],l=a[2]-a[0],c=a[3]-a[1];u[0]=2*o/l,u[4]=2*s/c,u[6]=2*(r[0]-a[0])/l-1,u[7]=2*(r[1]-a[1])/c-1,e.bind();var f=e.uniforms;f.viewTransform=u,f.shape=this.shape;var h=e.attributes;this.positionBuffer.bind(),h.position.pointer(),this.weightBuffer.bind(),h.weight.pointer(i.UNSIGNED_BYTE,!1),this.colorBuffer.bind(),h.color.pointer(i.UNSIGNED_BYTE,!0),i.drawArrays(i.TRIANGLES,0,n)}}),f.drawPick=function(){var t=[1,0,0,0,1,0,0,0,1],e=[0,0,0,0];return function(r){var n=this.plot,i=this.pickShader,a=this.bounds,o=this.numVertices;if(!(o&lt;=0)){var s=n.gl,l=n.dataBox,c=a[2]-a[0],u=a[3]-a[1],f=l[2]-l[0],h=l[3]-l[1];t[0]=2*c/f,t[4]=2*u/h,t[6]=2*(a[0]-l[0])/f-1,t[7]=2*(a[1]-l[1])/h-1;for(var p=0;p&lt;4;++p)e[p]=r&gt;&gt;8*p&amp;255;this.pickOffset=r,i.bind();var d=i.uniforms;d.viewTransform=t,d.pickOffset=e,d.shape=this.shape;var g=i.attributes;return this.positionBuffer.bind(),g.position.pointer(),this.weightBuffer.bind(),g.weight.pointer(s.UNSIGNED_BYTE,!1),this.idBuffer.bind(),g.pickId.pointer(s.UNSIGNED_BYTE,!1),s.drawArrays(s.TRIANGLES,0,o),r+this.shape[0]*this.shape[1]}}}(),f.pick=function(t,e,r){var n=this.pickOffset,i=this.shape[0]*this.shape[1];if(r&lt;n||r&gt;=n+i)return null;var a=r-n,o=this.xData,s=this.yData;return{object:this,pointId:a,dataCoord:[o[a%this.shape[0]],s[a/this.shape[0]|0]]}},f.update=function(t){var e=(t=t||{}).shape||[0,0],r=t.x||i(e[0]),o=t.y||i(e[1]),s=t.z||new Float32Array(e[0]*e[1]),l=!1!==t.zsmooth;this.xData=r,this.yData=o;var c,u,f,p,d=t.colorLevels||[0],g=t.colorValues||[0,0,0,1],m=d.length,v=this.bounds;l?(c=v[0]=r[0],u=v[1]=o[0],f=v[2]=r[r.length-1],p=v[3]=o[o.length-1]):(c=v[0]=r[0]+(r[1]-r[0])/2,u=v[1]=o[0]+(o[1]-o[0])/2,f=v[2]=r[r.length-1]+(r[r.length-1]-r[r.length-2])/2,p=v[3]=o[o.length-1]+(o[o.length-1]-o[o.length-2])/2);var y=1/(f-c),x=1/(p-u),b=e[0],_=e[1];this.shape=[b,_];var w=(l?(b-1)*(_-1):b*_)*(h.length&gt;&gt;&gt;1);this.numVertices=w;for(var T=a.mallocUint8(4*w),k=a.mallocFloat32(2*w),M=a.mallocUint8(2*w),A=a.mallocUint32(w),S=0,E=l?b-1:b,C=l?_-1:_,L=0;L&lt;C;++L){var I,P;l?(I=x*(o[L]-u),P=x*(o[L+1]-u)):(I=L&lt;_-1?x*(o[L]-(o[L+1]-o[L])/2-u):x*(o[L]-(o[L]-o[L-1])/2-u),P=L&lt;_-1?x*(o[L]+(o[L+1]-o[L])/2-u):x*(o[L]+(o[L]-o[L-1])/2-u));for(var z=0;z&lt;E;++z){var O,D;l?(O=y*(r[z]-c),D=y*(r[z+1]-c)):(O=z&lt;b-1?y*(r[z]-(r[z+1]-r[z])/2-c):y*(r[z]-(r[z]-r[z-1])/2-c),D=z&lt;b-1?y*(r[z]+(r[z+1]-r[z])/2-c):y*(r[z]+(r[z]-r[z-1])/2-c));for(var R=0;R&lt;h.length;R+=2){var F,B,N,j,U=h[R],V=h[R+1],q=s[l?(L+V)*b+(z+U):L*b+z],H=n.le(d,q);if(H&lt;0)F=g[0],B=g[1],N=g[2],j=g[3];else if(H===m-1)F=g[4*m-4],B=g[4*m-3],N=g[4*m-2],j=g[4*m-1];else{var G=(q-d[H])/(d[H+1]-d[H]),Y=1-G,W=4*H,X=4*(H+1);F=Y*g[W]+G*g[X],B=Y*g[W+1]+G*g[X+1],N=Y*g[W+2]+G*g[X+2],j=Y*g[W+3]+G*g[X+3]}T[4*S]=255*F,T[4*S+1]=255*B,T[4*S+2]=255*N,T[4*S+3]=255*j,k[2*S]=.5*O+.5*D,k[2*S+1]=.5*I+.5*P,M[2*S]=U,M[2*S+1]=V,A[S]=L*b+z,S+=1}}}this.positionBuffer.update(k),this.weightBuffer.update(M),this.colorBuffer.update(T),this.idBuffer.update(A),a.free(k),a.free(T),a.free(M),a.free(A)},f.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.positionBuffer.dispose(),this.weightBuffer.dispose(),this.colorBuffer.dispose(),this.idBuffer.dispose(),this.plot.removeObject(this)}},{&quot;./lib/shaders&quot;:272,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335,&quot;iota-array&quot;:463,&quot;typedarray-pool&quot;:595}],272:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;);e.exports={fragment:n([&quot;precision lowp float;\n#define GLSLIFY 1\nvarying vec4 fragColor;\nvoid main() {\n  gl_FragColor = vec4(fragColor.rgb * fragColor.a, fragColor.a);\n}\n&quot;]),vertex:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 color;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragColor;\n\nvoid main() {\n  vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n  fragColor = color;\n  gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n&quot;]),pickFragment:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nuniform vec2 shape;\nuniform vec4 pickOffset;\n\nvoid main() {\n  vec2 d = step(.5, vWeight);\n  vec4 id = fragId + pickOffset;\n  id.x += d.x + d.y*shape.x;\n\n  id.y += floor(id.x / 256.0);\n  id.x -= floor(id.x / 256.0) * 256.0;\n\n  id.z += floor(id.y / 256.0);\n  id.y -= floor(id.y / 256.0) * 256.0;\n\n  id.w += floor(id.z / 256.0);\n  id.z -= floor(id.z / 256.0) * 256.0;\n\n  gl_FragColor = id/255.;\n}\n&quot;]),pickVertex:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\nattribute vec2 weight;\n\nuniform vec2 shape;\nuniform mat3 viewTransform;\n\nvarying vec4 fragId;\nvarying vec2 vWeight;\n\nvoid main() {\n  vWeight = weight;\n\n  fragId = pickId;\n\n  vec3 vPosition = viewTransform * vec3( position + (weight-.5)/(shape-1.) , 1.0);\n  gl_Position = vec4(vPosition.xy, 0, vPosition.z);\n}\n&quot;])}},{glslify:273}],273:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],274:[function(t,e,r){var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, nextPosition;\nattribute float arcLength, lineWidth;\nattribute vec4 color;\n\nuniform vec2 screenShape;\nuniform float pixelRatio;\nuniform mat4 model, view, projection;\n\nvarying vec4 fragColor;\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\n\nvec4 project(vec3 p) {\n  return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n  vec4 startPoint = project(position);\n  vec4 endPoint   = project(nextPosition);\n\n  vec2 A = startPoint.xy / startPoint.w;\n  vec2 B =   endPoint.xy /   endPoint.w;\n\n  float clipAngle = atan(\n    (B.y - A.y) * screenShape.y,\n    (B.x - A.x) * screenShape.x\n  );\n\n  vec2 offset = 0.5 * pixelRatio * lineWidth * vec2(\n    sin(clipAngle),\n    -cos(clipAngle)\n  ) / screenShape;\n\n  gl_Position = vec4(startPoint.xy + startPoint.w * offset, startPoint.zw);\n\n  worldPosition = position;\n  pixelArcLength = arcLength;\n  fragColor = color;\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3      clipBounds[2];\nuniform sampler2D dashTexture;\nuniform float     dashScale;\nuniform float     opacity;\n\nvarying vec3    worldPosition;\nvarying float   pixelArcLength;\nvarying vec4    fragColor;\n\nvoid main() {\n  if (\n    outOfRange(clipBounds[0], clipBounds[1], worldPosition) ||\n    fragColor.a * opacity == 0.\n  ) discard;\n\n  float dashWeight = texture2D(dashTexture, vec2(dashScale * pixelArcLength, 0)).r;\n  if(dashWeight &lt; 0.5) {\n    discard;\n  }\n  gl_FragColor = fragColor * opacity;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\n#define FLOAT_MAX  1.70141184e38\n#define FLOAT_MIN  1.17549435e-38\n\n// https://github.com/mikolalysenko/glsl-read-float/blob/master/index.glsl\nvec4 packFloat(float v) {\n  float av = abs(v);\n\n  //Handle special cases\n  if(av &lt; FLOAT_MIN) {\n    return vec4(0.0, 0.0, 0.0, 0.0);\n  } else if(v &gt; FLOAT_MAX) {\n    return vec4(127.0, 128.0, 0.0, 0.0) / 255.0;\n  } else if(v &lt; -FLOAT_MAX) {\n    return vec4(255.0, 128.0, 0.0, 0.0) / 255.0;\n  }\n\n  vec4 c = vec4(0,0,0,0);\n\n  //Compute exponent and mantissa\n  float e = floor(log2(av));\n  float m = av * pow(2.0, -e) - 1.0;\n\n  //Unpack mantissa\n  c[1] = floor(128.0 * m);\n  m -= c[1] / 128.0;\n  c[2] = floor(32768.0 * m);\n  m -= c[2] / 32768.0;\n  c[3] = floor(8388608.0 * m);\n\n  //Unpack exponent\n  float ebias = e + 127.0;\n  c[0] = floor(ebias / 2.0);\n  ebias -= c[0] * 2.0;\n  c[1] += floor(ebias) * 128.0;\n\n  //Unpack sign bit\n  c[0] += 128.0 * step(0.0, -v);\n\n  //Scale back to range\n  return c / 255.0;\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform float pickId;\nuniform vec3 clipBounds[2];\n\nvarying vec3 worldPosition;\nvarying float pixelArcLength;\nvarying vec4 fragColor;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], worldPosition)) discard;\n\n  gl_FragColor = vec4(pickId/255.0, packFloat(pixelArcLength).xyz);\n}&quot;]),l=[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;nextPosition&quot;,type:&quot;vec3&quot;},{name:&quot;arcLength&quot;,type:&quot;float&quot;},{name:&quot;lineWidth&quot;,type:&quot;float&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;}];r.createShader=function(t){return i(t,a,o,null,l)},r.createPickShader=function(t){return i(t,a,s,null,l)}},{&quot;gl-shader&quot;:335,glslify:276}],275:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl||t.scene&amp;&amp;t.scene.gl,r=f(e);r.attributes.position.location=0,r.attributes.nextPosition.location=1,r.attributes.arcLength.location=2,r.attributes.lineWidth.location=3,r.attributes.color.location=4;var o=h(e);o.attributes.position.location=0,o.attributes.nextPosition.location=1,o.attributes.arcLength.location=2,o.attributes.lineWidth.location=3,o.attributes.color.location=4;for(var s=n(e),l=i(e,[{buffer:s,size:3,offset:0,stride:48},{buffer:s,size:3,offset:12,stride:48},{buffer:s,size:1,offset:24,stride:48},{buffer:s,size:1,offset:28,stride:48},{buffer:s,size:4,offset:32,stride:48}]),u=c(new Array(1024),[256,1,4]),p=0;p&lt;1024;++p)u.data[p]=255;var d=a(e,u);d.wrap=e.REPEAT;var g=new v(e,r,o,s,l,d);return g.update(t),g};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;gl-texture2d&quot;),o=new Uint8Array(4),s=new Float32Array(o.buffer);var l=t(&quot;binary-search-bounds&quot;),c=t(&quot;ndarray&quot;),u=t(&quot;./lib/shaders&quot;),f=u.createShader,h=u.createPickShader,p=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function d(t,e){for(var r=0,n=0;n&lt;3;++n){var i=t[n]-e[n];r+=i*i}return Math.sqrt(r)}function g(t){for(var e=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],r=0;r&lt;3;++r)e[0][r]=Math.max(t[0][r],e[0][r]),e[1][r]=Math.min(t[1][r],e[1][r]);return e}function m(t,e,r,n){this.arcLength=t,this.position=e,this.index=r,this.dataCoordinate=n}function v(t,e,r,n,i,a){this.gl=t,this.shader=e,this.pickShader=r,this.buffer=n,this.vao=i,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.points=[],this.arcLength=[],this.vertexCount=0,this.bounds=[[0,0,0],[0,0,0]],this.pickId=0,this.lineWidth=1,this.texture=a,this.dashScale=1,this.opacity=1,this.hasAlpha=!1,this.dirty=!0,this.pixelRatio=1}var y=v.prototype;y.isTransparent=function(){return this.hasAlpha},y.isOpaque=function(){return!this.hasAlpha},y.pickSlots=1,y.setPickBase=function(t){this.pickId=t},y.drawTransparent=y.draw=function(t){if(this.vertexCount){var e=this.gl,r=this.shader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,clipBounds:g(this.clipBounds),dashTexture:this.texture.bind(),dashScale:this.dashScale/this.arcLength[this.arcLength.length-1],opacity:this.opacity,screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.drawPick=function(t){if(this.vertexCount){var e=this.gl,r=this.pickShader,n=this.vao;r.bind(),r.uniforms={model:t.model||p,view:t.view||p,projection:t.projection||p,pickId:this.pickId,clipBounds:g(this.clipBounds),screenShape:[e.drawingBufferWidth,e.drawingBufferHeight],pixelRatio:this.pixelRatio},n.bind(),n.draw(e.TRIANGLE_STRIP,this.vertexCount),n.unbind()}},y.update=function(t){var e,r;this.dirty=!0;var n=!!t.connectGaps;&quot;dashScale&quot;in t&amp;&amp;(this.dashScale=t.dashScale),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=+t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0));var i=[],a=[],o=[],s=0,u=0,f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],h=t.position||t.positions;if(h){var p=t.color||t.colors||[0,0,0,1],g=t.lineWidth||1,m=!1;t:for(e=1;e&lt;h.length;++e){var v,y,x,b=h[e-1],_=h[e];for(a.push(s),o.push(b.slice()),r=0;r&lt;3;++r){if(isNaN(b[r])||isNaN(_[r])||!isFinite(b[r])||!isFinite(_[r])){if(!n&amp;&amp;i.length&gt;0){for(var w=0;w&lt;24;++w)i.push(i[i.length-12]);u+=2,m=!0}continue t}f[0][r]=Math.min(f[0][r],b[r],_[r]),f[1][r]=Math.max(f[1][r],b[r],_[r])}Array.isArray(p[0])?(v=p.length&gt;e-1?p[e-1]:p.length&gt;0?p[p.length-1]:[0,0,0,1],y=p.length&gt;e?p[e]:p.length&gt;0?p[p.length-1]:[0,0,0,1]):v=y=p,3===v.length&amp;&amp;(v=[v[0],v[1],v[2],1]),3===y.length&amp;&amp;(y=[y[0],y[1],y[2],1]),!this.hasAlpha&amp;&amp;v[3]&lt;1&amp;&amp;(this.hasAlpha=!0),x=Array.isArray(g)?g.length&gt;e-1?g[e-1]:g.length&gt;0?g[g.length-1]:[0,0,0,1]:g;var T=s;if(s+=d(b,_),m){for(r=0;r&lt;2;++r)i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3]);u+=2,m=!1}i.push(b[0],b[1],b[2],_[0],_[1],_[2],T,x,v[0],v[1],v[2],v[3],b[0],b[1],b[2],_[0],_[1],_[2],T,-x,v[0],v[1],v[2],v[3],_[0],_[1],_[2],b[0],b[1],b[2],s,-x,y[0],y[1],y[2],y[3],_[0],_[1],_[2],b[0],b[1],b[2],s,x,y[0],y[1],y[2],y[3]),u+=4}}if(this.buffer.update(i),a.push(s),o.push(h[h.length-1].slice()),this.bounds=f,this.vertexCount=u,this.points=o,this.arcLength=a,&quot;dashes&quot;in t){var k=t.dashes.slice();for(k.unshift(0),e=1;e&lt;k.length;++e)k[e]=k[e-1]+k[e];var M=c(new Array(1024),[256,1,4]);for(e=0;e&lt;256;++e){for(r=0;r&lt;4;++r)M.set(e,0,r,0);1&amp;l.le(k,k[k.length-1]*e/255)?M.set(e,0,0,0):M.set(e,0,0,255)}this.texture.setPixels(M)}},y.dispose=function(){this.shader.dispose(),this.vao.dispose(),this.buffer.dispose()},y.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=function(t,e,r,n){return o[0]=n,o[1]=r,o[2]=e,o[3]=t,s[0]}(t.value[0],t.value[1],t.value[2],0),r=l.le(this.arcLength,e);if(r&lt;0)return null;if(r===this.arcLength.length-1)return new m(this.arcLength[this.arcLength.length-1],this.points[this.points.length-1].slice(),r);for(var n=this.points[r],i=this.points[Math.min(r+1,this.points.length-1)],a=(e-this.arcLength[r])/(this.arcLength[r+1]-this.arcLength[r]),c=1-a,u=[0,0,0],f=0;f&lt;3;++f)u[f]=c*n[f]+a*i[f];var h=Math.min(a&lt;.5?r:r+1,this.points.length-1);return new m(e,u,h,this.points[h])}},{&quot;./lib/shaders&quot;:274,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495}],276:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],277:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15];return t[0]=s*(h*v-p*m)-f*(l*v-c*m)+g*(l*p-c*h),t[1]=-(n*(h*v-p*m)-f*(i*v-a*m)+g*(i*p-a*h)),t[2]=n*(l*v-c*m)-s*(i*v-a*m)+g*(i*c-a*l),t[3]=-(n*(l*p-c*h)-s*(i*p-a*h)+f*(i*c-a*l)),t[4]=-(o*(h*v-p*m)-u*(l*v-c*m)+d*(l*p-c*h)),t[5]=r*(h*v-p*m)-u*(i*v-a*m)+d*(i*p-a*h),t[6]=-(r*(l*v-c*m)-o*(i*v-a*m)+d*(i*c-a*l)),t[7]=r*(l*p-c*h)-o*(i*p-a*h)+u*(i*c-a*l),t[8]=o*(f*v-p*g)-u*(s*v-c*g)+d*(s*p-c*f),t[9]=-(r*(f*v-p*g)-u*(n*v-a*g)+d*(n*p-a*f)),t[10]=r*(s*v-c*g)-o*(n*v-a*g)+d*(n*c-a*s),t[11]=-(r*(s*p-c*f)-o*(n*p-a*f)+u*(n*c-a*s)),t[12]=-(o*(f*m-h*g)-u*(s*m-l*g)+d*(s*h-l*f)),t[13]=r*(f*m-h*g)-u*(n*m-i*g)+d*(n*h-i*f),t[14]=-(r*(s*m-l*g)-o*(n*m-i*g)+d*(n*l-i*s)),t[15]=r*(s*h-l*f)-o*(n*h-i*f)+u*(n*l-i*s),t}},{}],278:[function(t,e,r){e.exports=function(t){var e=new Float32Array(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}},{}],279:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],280:[function(t,e,r){e.exports=function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],281:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],c=t[8],u=t[9],f=t[10],h=t[11],p=t[12],d=t[13],g=t[14],m=t[15];return(e*o-r*a)*(f*m-h*g)-(e*s-n*a)*(u*m-h*d)+(e*l-i*a)*(u*g-f*d)+(r*s-n*o)*(c*m-h*p)-(r*l-i*o)*(c*g-f*p)+(n*l-i*s)*(c*d-u*p)}},{}],282:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r+r,s=n+n,l=i+i,c=r*o,u=n*o,f=n*s,h=i*o,p=i*s,d=i*l,g=a*o,m=a*s,v=a*l;return t[0]=1-f-d,t[1]=u+v,t[2]=h-m,t[3]=0,t[4]=u-v,t[5]=1-c-d,t[6]=p+g,t[7]=0,t[8]=h+m,t[9]=p-g,t[10]=1-c-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],283:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o=r[0],s=r[1],l=r[2],c=Math.sqrt(o*o+s*s+l*l);if(Math.abs(c)&lt;1e-6)return null;return o*=c=1/c,s*=c,l*=c,n=Math.sin(e),i=Math.cos(e),a=1-i,t[0]=o*o*a+i,t[1]=s*o*a+l*n,t[2]=l*o*a-s*n,t[3]=0,t[4]=o*s*a-l*n,t[5]=s*s*a+i,t[6]=l*s*a+o*n,t[7]=0,t[8]=o*l*a+s*n,t[9]=s*l*a-o*n,t[10]=l*l*a+i,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],284:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=n+n,l=i+i,c=a+a,u=n*s,f=n*l,h=n*c,p=i*l,d=i*c,g=a*c,m=o*s,v=o*l,y=o*c;return t[0]=1-(p+g),t[1]=f+y,t[2]=h-v,t[3]=0,t[4]=f-y,t[5]=1-(u+g),t[6]=d+m,t[7]=0,t[8]=h+v,t[9]=d-m,t[10]=1-(u+p),t[11]=0,t[12]=r[0],t[13]=r[1],t[14]=r[2],t[15]=1,t}},{}],285:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],286:[function(t,e,r){e.exports=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}},{}],287:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=n,t[6]=r,t[7]=0,t[8]=0,t[9]=-r,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],288:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=0,t[2]=-r,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=r,t[9]=0,t[10]=n,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],289:[function(t,e,r){e.exports=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=0,t[4]=-r,t[5]=n,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],290:[function(t,e,r){e.exports=function(t,e,r,n,i,a,o){var s=1/(r-e),l=1/(i-n),c=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(r+e)*s,t[9]=(i+n)*l,t[10]=(o+a)*c,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*c,t[15]=0,t}},{}],291:[function(t,e,r){e.exports=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}},{}],292:[function(t,e,r){e.exports={create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),copy:t(&quot;./copy&quot;),identity:t(&quot;./identity&quot;),transpose:t(&quot;./transpose&quot;),invert:t(&quot;./invert&quot;),adjoint:t(&quot;./adjoint&quot;),determinant:t(&quot;./determinant&quot;),multiply:t(&quot;./multiply&quot;),translate:t(&quot;./translate&quot;),scale:t(&quot;./scale&quot;),rotate:t(&quot;./rotate&quot;),rotateX:t(&quot;./rotateX&quot;),rotateY:t(&quot;./rotateY&quot;),rotateZ:t(&quot;./rotateZ&quot;),fromRotation:t(&quot;./fromRotation&quot;),fromRotationTranslation:t(&quot;./fromRotationTranslation&quot;),fromScaling:t(&quot;./fromScaling&quot;),fromTranslation:t(&quot;./fromTranslation&quot;),fromXRotation:t(&quot;./fromXRotation&quot;),fromYRotation:t(&quot;./fromYRotation&quot;),fromZRotation:t(&quot;./fromZRotation&quot;),fromQuat:t(&quot;./fromQuat&quot;),frustum:t(&quot;./frustum&quot;),perspective:t(&quot;./perspective&quot;),perspectiveFromFieldOfView:t(&quot;./perspectiveFromFieldOfView&quot;),ortho:t(&quot;./ortho&quot;),lookAt:t(&quot;./lookAt&quot;),str:t(&quot;./str&quot;)}},{&quot;./adjoint&quot;:277,&quot;./clone&quot;:278,&quot;./copy&quot;:279,&quot;./create&quot;:280,&quot;./determinant&quot;:281,&quot;./fromQuat&quot;:282,&quot;./fromRotation&quot;:283,&quot;./fromRotationTranslation&quot;:284,&quot;./fromScaling&quot;:285,&quot;./fromTranslation&quot;:286,&quot;./fromXRotation&quot;:287,&quot;./fromYRotation&quot;:288,&quot;./fromZRotation&quot;:289,&quot;./frustum&quot;:290,&quot;./identity&quot;:291,&quot;./invert&quot;:293,&quot;./lookAt&quot;:294,&quot;./multiply&quot;:295,&quot;./ortho&quot;:296,&quot;./perspective&quot;:297,&quot;./perspectiveFromFieldOfView&quot;:298,&quot;./rotate&quot;:299,&quot;./rotateX&quot;:300,&quot;./rotateY&quot;:301,&quot;./rotateZ&quot;:302,&quot;./scale&quot;:303,&quot;./str&quot;:304,&quot;./translate&quot;:305,&quot;./transpose&quot;:306}],293:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*g-f*d,M=u*m-h*d,A=u*v-p*d,S=f*m-h*g,E=f*v-p*g,C=h*v-p*m,L=y*C-x*E+b*S+_*A-w*M+T*k;if(!L)return null;return L=1/L,t[0]=(s*C-l*E+c*S)*L,t[1]=(i*E-n*C-a*S)*L,t[2]=(g*T-m*w+v*_)*L,t[3]=(h*w-f*T-p*_)*L,t[4]=(l*A-o*C-c*M)*L,t[5]=(r*C-i*A+a*M)*L,t[6]=(m*b-d*T-v*x)*L,t[7]=(u*T-h*b+p*x)*L,t[8]=(o*E-s*A+c*k)*L,t[9]=(n*A-r*E-a*k)*L,t[10]=(d*w-g*b+v*y)*L,t[11]=(f*b-u*w-p*y)*L,t[12]=(s*M-o*S-l*k)*L,t[13]=(r*S-n*M+i*k)*L,t[14]=(g*x-d*_-m*y)*L,t[15]=(u*_-f*x+h*y)*L,t}},{}],294:[function(t,e,r){var n=t(&quot;./identity&quot;);e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g=e[0],m=e[1],v=e[2],y=i[0],x=i[1],b=i[2],_=r[0],w=r[1],T=r[2];if(Math.abs(g-_)&lt;1e-6&amp;&amp;Math.abs(m-w)&lt;1e-6&amp;&amp;Math.abs(v-T)&lt;1e-6)return n(t);f=g-_,h=m-w,p=v-T,d=1/Math.sqrt(f*f+h*h+p*p),a=x*(p*=d)-b*(h*=d),o=b*(f*=d)-y*p,s=y*h-x*f,(d=Math.sqrt(a*a+o*o+s*s))?(a*=d=1/d,o*=d,s*=d):(a=0,o=0,s=0);l=h*s-p*o,c=p*a-f*s,u=f*o-h*a,(d=Math.sqrt(l*l+c*c+u*u))?(l*=d=1/d,c*=d,u*=d):(l=0,c=0,u=0);return t[0]=a,t[1]=l,t[2]=f,t[3]=0,t[4]=o,t[5]=c,t[6]=h,t[7]=0,t[8]=s,t[9]=u,t[10]=p,t[11]=0,t[12]=-(a*g+o*m+s*v),t[13]=-(l*g+c*m+u*v),t[14]=-(f*g+h*m+p*v),t[15]=1,t}},{&quot;./identity&quot;:291}],295:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],m=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*m,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,x=r[4],b=r[5],_=r[6],w=r[7],t[4]=x*n+b*s+_*f+w*g,t[5]=x*i+b*l+_*h+w*m,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,x=r[8],b=r[9],_=r[10],w=r[11],t[8]=x*n+b*s+_*f+w*g,t[9]=x*i+b*l+_*h+w*m,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,x=r[12],b=r[13],_=r[14],w=r[15],t[12]=x*n+b*s+_*f+w*g,t[13]=x*i+b*l+_*h+w*m,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}},{}],296:[function(t,e,r){e.exports=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t}},{}],297:[function(t,e,r){e.exports=function(t,e,r,n,i){var a=1/Math.tan(e/2),o=1/(n-i);return t[0]=a/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=(i+n)*o,t[11]=-1,t[12]=0,t[13]=0,t[14]=2*i*n*o,t[15]=0,t}},{}],298:[function(t,e,r){e.exports=function(t,e,r,n){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),c=2/(i+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=c,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(i-a)*c*.5,t[10]=n/(r-n),t[11]=-1,t[12]=0,t[13]=0,t[14]=n*r/(r-n),t[15]=0,t}},{}],299:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S,E=n[0],C=n[1],L=n[2],I=Math.sqrt(E*E+C*C+L*L);if(Math.abs(I)&lt;1e-6)return null;E*=I=1/I,C*=I,L*=I,i=Math.sin(r),a=Math.cos(r),o=1-a,s=e[0],l=e[1],c=e[2],u=e[3],f=e[4],h=e[5],p=e[6],d=e[7],g=e[8],m=e[9],v=e[10],y=e[11],x=E*E*o+a,b=C*E*o+L*i,_=L*E*o-C*i,w=E*C*o-L*i,T=C*C*o+a,k=L*C*o+E*i,M=E*L*o+C*i,A=C*L*o-E*i,S=L*L*o+a,t[0]=s*x+f*b+g*_,t[1]=l*x+h*b+m*_,t[2]=c*x+p*b+v*_,t[3]=u*x+d*b+y*_,t[4]=s*w+f*T+g*k,t[5]=l*w+h*T+m*k,t[6]=c*w+p*T+v*k,t[7]=u*w+d*T+y*k,t[8]=s*M+f*A+g*S,t[9]=l*M+h*A+m*S,t[10]=c*M+p*A+v*S,t[11]=u*M+d*A+y*S,e!==t&amp;&amp;(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t}},{}],300:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t}},{}],301:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[8],u=e[9],f=e[10],h=e[11];e!==t&amp;&amp;(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i-c*n,t[1]=o*i-u*n,t[2]=s*i-f*n,t[3]=l*i-h*n,t[8]=a*n+c*i,t[9]=o*n+u*i,t[10]=s*n+f*i,t[11]=l*n+h*i,t}},{}],302:[function(t,e,r){e.exports=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]);return t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t}},{}],303:[function(t,e,r){e.exports=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}},{}],304:[function(t,e,r){e.exports=function(t){return&quot;mat4(&quot;+t[0]+&quot;, &quot;+t[1]+&quot;, &quot;+t[2]+&quot;, &quot;+t[3]+&quot;, &quot;+t[4]+&quot;, &quot;+t[5]+&quot;, &quot;+t[6]+&quot;, &quot;+t[7]+&quot;, &quot;+t[8]+&quot;, &quot;+t[9]+&quot;, &quot;+t[10]+&quot;, &quot;+t[11]+&quot;, &quot;+t[12]+&quot;, &quot;+t[13]+&quot;, &quot;+t[14]+&quot;, &quot;+t[15]+&quot;)&quot;}},{}],305:[function(t,e,r){e.exports=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],m=r[1],v=r[2];e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*m+f*v+e[12],t[13]=i*g+l*m+h*v+e[13],t[14]=a*g+c*m+p*v+e[14],t[15]=o*g+u*m+d*v+e[15]);return t}},{}],306:[function(t,e,r){e.exports=function(t,e){if(t===e){var r=e[1],n=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=r,t[6]=e[9],t[7]=e[13],t[8]=n,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t}},{}],307:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;barycentric&quot;),i=t(&quot;polytope-closest-point/lib/closest_point_2d.js&quot;);function a(t,e){for(var r=[0,0,0,0],n=0;n&lt;4;++n)for(var i=0;i&lt;4;++i)r[i]+=t[4*n+i]*e[n];return r}function o(t,e,r,n,i){for(var o=a(n,a(r,a(e,[t[0],t[1],t[2],1]))),s=0;s&lt;3;++s)o[s]/=o[3];return[.5*i[0]*(1+o[0]),.5*i[1]*(1-o[1])]}function s(t,e){for(var r=[0,0,0],n=0;n&lt;t.length;++n)for(var i=t[n],a=e[n],o=0;o&lt;3;++o)r[o]+=a*i[o];return r}e.exports=function(t,e,r,a,l,c){if(1===t.length)return[0,t[0].slice()];for(var u=new Array(t.length),f=0;f&lt;t.length;++f)u[f]=o(t[f],r,a,l,c);var h=0,p=1/0;for(f=0;f&lt;u.length;++f){for(var d=0,g=0;g&lt;2;++g)d+=Math.pow(u[f][g]-e[g],2);d&lt;p&amp;&amp;(p=d,h=f)}var m=function(t,e){if(2===t.length){for(var r=0,a=0,o=0;o&lt;2;++o)r+=Math.pow(e[o]-t[0][o],2),a+=Math.pow(e[o]-t[1][o],2);return r=Math.sqrt(r),a=Math.sqrt(a),r+a&lt;1e-6?[1,0]:[a/(r+a),r/(a+r)]}if(3===t.length){var s=[0,0];return i(t[0],t[1],t[2],e,s),n(t,s)}return[]}(u,e),v=0;for(f=0;f&lt;3;++f){if(m[f]&lt;-.001||m[f]&gt;1.0001)return null;v+=m[f]}if(Math.abs(v-1)&gt;.001)return null;return[h,s(t,m),m]}},{barycentric:78,&quot;polytope-closest-point/lib/closest_point_2d.js&quot;:525}],308:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position, normal;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model\n           , view\n           , projection\n           , inverseModel;\nuniform vec3 eyePosition\n           , lightPosition;\n\nvarying vec3 f_normal\n           , f_lightDirection\n           , f_eyeDirection\n           , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvec4 project(vec3 p) {\n  return projection * view * model * vec4(p, 1.0);\n}\n\nvoid main() {\n  gl_Position      = project(position);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * vec4(position , 1.0);\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal  = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  f_color          = color;\n  f_data           = position;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\n//#pragma glslify: beckmann = require(glsl-specular-beckmann) // used in gl-surface3d\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness\n            , fresnel\n            , kambient\n            , kdiffuse\n            , kspecular;\nuniform sampler2D texture;\n\nvarying vec3 f_normal\n           , f_lightDirection\n           , f_eyeDirection\n           , f_data;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (f_color.a == 0.0 ||\n    outOfRange(clipBounds[0], clipBounds[1], f_data)\n  ) discard;\n\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  //float specular = max(0.0, beckmann(L, V, N, roughness)); // used in gl-surface3d\n\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = vec4(f_color.rgb, 1.0) * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * f_color.a;\n}\n&quot;]),o=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\n\nuniform mat4 model, view, projection;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n  f_color = color;\n  f_data  = position;\n  f_uv    = uv;\n}&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec3 f_data;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_data)) discard;\n\n  gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}&quot;]),l=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 uv;\nattribute float pointSize;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0.0, 0.0 ,0.0 ,0.0);\n  } else {\n    gl_Position = projection * view * model * vec4(position, 1.0);\n  }\n  gl_PointSize = pointSize;\n  f_color = color;\n  f_uv = uv;\n}&quot;]),c=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D texture;\nuniform float opacity;\n\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  vec2 pointR = gl_PointCoord.xy - vec2(0.5, 0.5);\n  if(dot(pointR, pointR) &gt; 0.25) {\n    discard;\n  }\n  gl_FragColor = f_color * texture2D(texture, f_uv) * opacity;\n}&quot;]),u=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n  f_id        = id;\n  f_position  = position;\n}&quot;]),f=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]),h=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3  position;\nattribute float pointSize;\nattribute vec4  id;\n\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0.0, 0.0, 0.0, 0.0);\n  } else {\n    gl_Position  = projection * view * model * vec4(position, 1.0);\n    gl_PointSize = pointSize;\n  }\n  f_id         = id;\n  f_position   = position;\n}&quot;]),p=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec3 position;\n\nuniform mat4 model, view, projection;\n\nvoid main() {\n  gl_Position = projection * view * model * vec4(position, 1.0);\n}&quot;]),d=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform vec3 contourColor;\n\nvoid main() {\n  gl_FragColor = vec4(contourColor, 1.0);\n}\n&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;}]},r.wireShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;}]},r.pointShader={vertex:l,fragment:c,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;pointSize&quot;,type:&quot;float&quot;}]},r.pickShader={vertex:u,fragment:f,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}]},r.pointPickShader={vertex:h,fragment:f,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;pointSize&quot;,type:&quot;float&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}]},r.contourShader={vertex:p,fragment:d,attributes:[{name:&quot;position&quot;,type:&quot;vec3&quot;}]}},{glslify:310}],309:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;normals&quot;),l=t(&quot;gl-mat4/multiply&quot;),c=t(&quot;gl-mat4/invert&quot;),u=t(&quot;ndarray&quot;),f=t(&quot;colormap&quot;),h=t(&quot;simplicial-complex-contour&quot;),p=t(&quot;typedarray-pool&quot;),d=t(&quot;./lib/shaders&quot;),g=t(&quot;./lib/closest-point&quot;),m=d.meshShader,v=d.wireShader,y=d.pointShader,x=d.pickShader,b=d.pointPickShader,_=d.contourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function T(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,T,k,M,A,S){this.gl=t,this.pixelRatio=1,this.cells=[],this.positions=[],this.intensity=[],this.texture=e,this.dirty=!0,this.triShader=r,this.lineShader=n,this.pointShader=i,this.pickShader=a,this.pointPickShader=o,this.contourShader=s,this.trianglePositions=l,this.triangleColors=u,this.triangleNormals=h,this.triangleUVs=f,this.triangleIds=c,this.triangleVAO=p,this.triangleCount=0,this.lineWidth=1,this.edgePositions=d,this.edgeColors=m,this.edgeUVs=v,this.edgeIds=g,this.edgeVAO=y,this.edgeCount=0,this.pointPositions=x,this.pointColors=_,this.pointUVs=T,this.pointSizes=k,this.pointIds=b,this.pointVAO=M,this.pointCount=0,this.contourLineWidth=1,this.contourPositions=A,this.contourVAO=S,this.contourCount=0,this.contourColor=[0,0,0],this.contourEnable=!0,this.pickVertex=!0,this.pickId=1,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.lightPosition=[1e5,1e5,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.opacity=1,this.hasAlpha=!1,this.opacityscale=!1,this._model=w,this._view=w,this._projection=w,this._resolution=[1,1]}var k=T.prototype;function M(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;r&lt;e.length;++r){if(e.length&lt;2)return 1;if(e[r][0]===t)return e[r][1];if(e[r][0]&gt;t&amp;&amp;r&gt;0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}function A(t){var e=n(t,m.vertex,m.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.normal.location=4,e}function S(t){var e=n(t,v.vertex,v.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e}function E(t){var e=n(t,y.vertex,y.fragment);return e.attributes.position.location=0,e.attributes.color.location=2,e.attributes.uv.location=3,e.attributes.pointSize.location=4,e}function C(t){var e=n(t,x.vertex,x.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e}function L(t){var e=n(t,b.vertex,b.fragment);return e.attributes.position.location=0,e.attributes.id.location=1,e.attributes.pointSize.location=4,e}function I(t){var e=n(t,_.vertex,_.fragment);return e.attributes.position.location=0,e}k.isOpaque=function(){return!this.hasAlpha},k.isTransparent=function(){return this.hasAlpha},k.pickSlots=1,k.setPickBase=function(t){this.pickId=t},k.highlight=function(t){if(t&amp;&amp;this.contourEnable){for(var e=h(this.cells,this.intensity,t.intensity),r=e.cells,n=e.vertexIds,i=e.vertexWeights,a=r.length,o=p.mallocFloat32(6*a),s=0,l=0;l&lt;a;++l)for(var c=r[l],u=0;u&lt;2;++u){var f=c[0];2===c.length&amp;&amp;(f=c[u]);for(var d=n[f][0],g=n[f][1],m=i[f],v=1-m,y=this.positions[d],x=this.positions[g],b=0;b&lt;3;++b)o[s++]=m*y[b]+v*x[b]}this.contourCount=s/3|0,this.contourPositions.update(o.subarray(0,s)),p.free(o)}else this.contourCount=0},k.update=function(t){t=t||{};var e=this.gl;this.dirty=!0,&quot;contourEnable&quot;in t&amp;&amp;(this.contourEnable=t.contourEnable),&quot;contourColor&quot;in t&amp;&amp;(this.contourColor=t.contourColor),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;lightPosition&quot;in t&amp;&amp;(this.lightPosition=t.lightPosition),this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity,this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0)),&quot;opacityscale&quot;in t&amp;&amp;(this.opacityscale=t.opacityscale,this.hasAlpha=!0),&quot;ambient&quot;in t&amp;&amp;(this.ambientLight=t.ambient),&quot;diffuse&quot;in t&amp;&amp;(this.diffuseLight=t.diffuse),&quot;specular&quot;in t&amp;&amp;(this.specularLight=t.specular),&quot;roughness&quot;in t&amp;&amp;(this.roughness=t.roughness),&quot;fresnel&quot;in t&amp;&amp;(this.fresnel=t.fresnel),t.texture?(this.texture.dispose(),this.texture=o(e,t.texture)):t.colormap&amp;&amp;(this.texture.shape=[256,256],this.texture.minFilter=e.LINEAR_MIPMAP_LINEAR,this.texture.magFilter=e.LINEAR,this.texture.setPixels(function(t,e){for(var r=f({colormap:t,nshades:256,format:&quot;rgba&quot;}),n=new Uint8Array(1024),i=0;i&lt;256;++i){for(var a=r[i],o=0;o&lt;3;++o)n[4*i+o]=a[o];n[4*i+3]=e?255*M(i/255,e):255*a[3]}return u(n,[256,256,4],[4,0,1])}(t.colormap,this.opacityscale)),this.texture.generateMipmap());var r=t.cells,n=t.positions;if(n&amp;&amp;r){var i=[],a=[],l=[],c=[],h=[],p=[],d=[],g=[],m=[],v=[],y=[],x=[],b=[],_=[];this.cells=r,this.positions=n;var w=t.vertexNormals,T=t.cellNormals,k=void 0===t.vertexNormalsEpsilon?1e-6:t.vertexNormalsEpsilon,A=void 0===t.faceNormalsEpsilon?1e-6:t.faceNormalsEpsilon;t.useFacetNormals&amp;&amp;!T&amp;&amp;(T=s.faceNormals(r,n,A)),T||w||(w=s.vertexNormals(r,n,k));var S=t.vertexColors,E=t.cellColors,C=t.meshColor||[1,1,1,1],L=t.vertexUVs,I=t.vertexIntensity,P=t.cellUVs,z=t.cellIntensity,O=1/0,D=-1/0;if(!L&amp;&amp;!P)if(I)if(t.vertexIntensityBounds)O=+t.vertexIntensityBounds[0],D=+t.vertexIntensityBounds[1];else for(var R=0;R&lt;I.length;++R){var F=I[R];O=Math.min(O,F),D=Math.max(D,F)}else if(z)if(t.cellIntensityBounds)O=+t.cellIntensityBounds[0],D=+t.cellIntensityBounds[1];else for(R=0;R&lt;z.length;++R){F=z[R];O=Math.min(O,F),D=Math.max(D,F)}else for(R=0;R&lt;n.length;++R){F=n[R][2];O=Math.min(O,F),D=Math.max(D,F)}this.intensity=I||(z||function(t){for(var e=t.length,r=new Array(e),n=0;n&lt;e;++n)r[n]=t[n][2];return r}(n)),this.pickVertex=!(z||E);var B=t.pointSizes,N=t.pointSize||1;this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(R=0;R&lt;n.length;++R)for(var j=n[R],U=0;U&lt;3;++U)!isNaN(j[U])&amp;&amp;isFinite(j[U])&amp;&amp;(this.bounds[0][U]=Math.min(this.bounds[0][U],j[U]),this.bounds[1][U]=Math.max(this.bounds[1][U],j[U]));var V=0,q=0,H=0;t:for(R=0;R&lt;r.length;++R){var G=r[R];switch(G.length){case 1:for(j=n[W=G[0]],U=0;U&lt;3;++U)if(isNaN(j[U])||!isFinite(j[U]))continue t;v.push(j[0],j[1],j[2]),X=S?S[W]:E?E[R]:C,this.opacityscale&amp;&amp;I?a.push(X[0],X[1],X[2],this.opacity*M((I[W]-O)/(D-O),this.opacityscale)):3===X.length?y.push(X[0],X[1],X[2],this.opacity):(y.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),Z=L?L[W]:I?[(I[W]-O)/(D-O),0]:P?P[R]:z?[(z[R]-O)/(D-O),0]:[(j[2]-O)/(D-O),0],x.push(Z[0],Z[1]),B?b.push(B[W]):b.push(N),_.push(R),H+=1;break;case 2:for(U=0;U&lt;2;++U){j=n[W=G[U]];for(var Y=0;Y&lt;3;++Y)if(isNaN(j[Y])||!isFinite(j[Y]))continue t}for(U=0;U&lt;2;++U){j=n[W=G[U]];p.push(j[0],j[1],j[2]),X=S?S[W]:E?E[R]:C,this.opacityscale&amp;&amp;I?a.push(X[0],X[1],X[2],this.opacity*M((I[W]-O)/(D-O),this.opacityscale)):3===X.length?d.push(X[0],X[1],X[2],this.opacity):(d.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)),Z=L?L[W]:I?[(I[W]-O)/(D-O),0]:P?P[R]:z?[(z[R]-O)/(D-O),0]:[(j[2]-O)/(D-O),0],g.push(Z[0],Z[1]),m.push(R)}q+=1;break;case 3:for(U=0;U&lt;3;++U)for(j=n[W=G[U]],Y=0;Y&lt;3;++Y)if(isNaN(j[Y])||!isFinite(j[Y]))continue t;for(U=0;U&lt;3;++U){var W,X,Z,J;j=n[W=G[2-U]];i.push(j[0],j[1],j[2]),(X=S?S[W]:E?E[R]:C)?this.opacityscale&amp;&amp;I?a.push(X[0],X[1],X[2],this.opacity*M((I[W]-O)/(D-O),this.opacityscale)):3===X.length?a.push(X[0],X[1],X[2],this.opacity):(a.push(X[0],X[1],X[2],X[3]*this.opacity),X[3]&lt;1&amp;&amp;(this.hasAlpha=!0)):a.push(.5,.5,.5,1),Z=L?L[W]:I?[(I[W]-O)/(D-O),0]:P?P[R]:z?[(z[R]-O)/(D-O),0]:[(j[2]-O)/(D-O),0],c.push(Z[0],Z[1]),J=w?w[W]:T[R],l.push(J[0],J[1],J[2]),h.push(R)}V+=1}}this.pointCount=H,this.edgeCount=q,this.triangleCount=V,this.pointPositions.update(v),this.pointColors.update(y),this.pointUVs.update(x),this.pointSizes.update(b),this.pointIds.update(new Uint32Array(_)),this.edgePositions.update(p),this.edgeColors.update(d),this.edgeUVs.update(g),this.edgeIds.update(new Uint32Array(m)),this.trianglePositions.update(i),this.triangleColors.update(a),this.triangleUVs.update(c),this.triangleNormals.update(l),this.triangleIds.update(new Uint32Array(h))}},k.drawTransparent=k.draw=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);var s={model:r,view:n,projection:i,inverseModel:w.slice(),clipBounds:a,kambient:this.ambientLight,kdiffuse:this.diffuseLight,kspecular:this.specularLight,roughness:this.roughness,fresnel:this.fresnel,eyePosition:[0,0,0],lightPosition:[0,0,0],contourColor:this.contourColor,texture:0};s.inverseModel=c(s.inverseModel,s.model),e.disable(e.CULL_FACE),this.texture.bind(0);var u=new Array(16);l(u,s.view,s.model),l(u,s.projection,u),c(u,u);for(o=0;o&lt;3;++o)s.eyePosition[o]=u[12+o]/u[15];var f,h=u[15];for(o=0;o&lt;3;++o)h+=this.lightPosition[o]*u[4*o+3];for(o=0;o&lt;3;++o){for(var p=u[12+o],d=0;d&lt;3;++d)p+=u[4*d+o]*this.lightPosition[d];s.lightPosition[o]=p/h}this.triangleCount&gt;0&amp;&amp;((f=this.triShader).bind(),f.uniforms=s,this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind());this.edgeCount&gt;0&amp;&amp;this.lineWidth&gt;0&amp;&amp;((f=this.lineShader).bind(),f.uniforms=s,this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind());this.pointCount&gt;0&amp;&amp;((f=this.pointShader).bind(),f.uniforms=s,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind());this.contourEnable&amp;&amp;this.contourCount&gt;0&amp;&amp;this.contourLineWidth&gt;0&amp;&amp;((f=this.contourShader).bind(),f.uniforms=s,this.contourVAO.bind(),e.drawArrays(e.LINES,0,this.contourCount),this.contourVAO.unbind())},k.drawPick=function(t){t=t||{};for(var e=this.gl,r=t.model||w,n=t.view||w,i=t.projection||w,a=[[-1e6,-1e6,-1e6],[1e6,1e6,1e6]],o=0;o&lt;3;++o)a[0][o]=Math.max(a[0][o],this.clipBounds[0][o]),a[1][o]=Math.min(a[1][o],this.clipBounds[1][o]);this._model=[].slice.call(r),this._view=[].slice.call(n),this._projection=[].slice.call(i),this._resolution=[e.drawingBufferWidth,e.drawingBufferHeight];var s,l={model:r,view:n,projection:i,clipBounds:a,pickId:this.pickId/255};((s=this.pickShader).bind(),s.uniforms=l,this.triangleCount&gt;0&amp;&amp;(this.triangleVAO.bind(),e.drawArrays(e.TRIANGLES,0,3*this.triangleCount),this.triangleVAO.unbind()),this.edgeCount&gt;0&amp;&amp;(this.edgeVAO.bind(),e.lineWidth(this.lineWidth*this.pixelRatio),e.drawArrays(e.LINES,0,2*this.edgeCount),this.edgeVAO.unbind()),this.pointCount&gt;0)&amp;&amp;((s=this.pointPickShader).bind(),s.uniforms=l,this.pointVAO.bind(),e.drawArrays(e.POINTS,0,this.pointCount),this.pointVAO.unbind())},k.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;for(var e=t.value[0]+256*t.value[1]+65536*t.value[2],r=this.cells[e],n=this.positions,i=new Array(r.length),a=0;a&lt;r.length;++a)i[a]=n[r[a]];var o=t.coord[0],s=t.coord[1];if(!this.pickVertex){var l=this.positions[r[0]],c=this.positions[r[1]],u=this.positions[r[2]],f=[(l[0]+c[0]+u[0])/3,(l[1]+c[1]+u[1])/3,(l[2]+c[2]+u[2])/3];return{_cellCenter:!0,position:[o,s],index:e,cell:r,cellId:e,intensity:this.intensity[e],dataCoordinate:f}}var h=g(i,[o*this.pixelRatio,this._resolution[1]-s*this.pixelRatio],this._model,this._view,this._projection,this._resolution);if(!h)return null;var p=h[2],d=0;for(a=0;a&lt;r.length;++a)d+=p[a]*this.intensity[r[a]];return{position:h[1],index:r[h[0]],cell:r,cellId:e,intensity:d,dataCoordinate:this.positions[r[h[0]]]}},k.dispose=function(){this.texture.dispose(),this.triShader.dispose(),this.lineShader.dispose(),this.pointShader.dispose(),this.pickShader.dispose(),this.pointPickShader.dispose(),this.triangleVAO.dispose(),this.trianglePositions.dispose(),this.triangleColors.dispose(),this.triangleUVs.dispose(),this.triangleNormals.dispose(),this.triangleIds.dispose(),this.edgeVAO.dispose(),this.edgePositions.dispose(),this.edgeColors.dispose(),this.edgeUVs.dispose(),this.edgeIds.dispose(),this.pointVAO.dispose(),this.pointPositions.dispose(),this.pointColors.dispose(),this.pointUVs.dispose(),this.pointSizes.dispose(),this.pointIds.dispose(),this.contourVAO.dispose(),this.contourPositions.dispose(),this.contourShader.dispose()},e.exports=function(t,e){1===arguments.length&amp;&amp;(t=(e=t).gl);var r=t.getExtension(&quot;OES_standard_derivatives&quot;)||t.getExtension(&quot;MOZ_OES_standard_derivatives&quot;)||t.getExtension(&quot;WEBKIT_OES_standard_derivatives&quot;);if(!r)throw new Error(&quot;derivatives not supported&quot;);var n=A(t),s=S(t),l=E(t),c=C(t),f=L(t),h=I(t),p=o(t,u(new Uint8Array([255,255,255,255]),[1,1,4]));p.generateMipmap(),p.minFilter=t.LINEAR_MIPMAP_LINEAR,p.magFilter=t.LINEAR;var d=i(t),g=i(t),m=i(t),v=i(t),y=i(t),x=a(t,[{buffer:d,type:t.FLOAT,size:3},{buffer:y,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:g,type:t.FLOAT,size:4},{buffer:m,type:t.FLOAT,size:2},{buffer:v,type:t.FLOAT,size:3}]),b=i(t),_=i(t),w=i(t),k=i(t),M=a(t,[{buffer:b,type:t.FLOAT,size:3},{buffer:k,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:_,type:t.FLOAT,size:4},{buffer:w,type:t.FLOAT,size:2}]),P=i(t),z=i(t),O=i(t),D=i(t),R=i(t),F=a(t,[{buffer:P,type:t.FLOAT,size:3},{buffer:R,type:t.UNSIGNED_BYTE,size:4,normalized:!0},{buffer:z,type:t.FLOAT,size:4},{buffer:O,type:t.FLOAT,size:2},{buffer:D,type:t.FLOAT,size:1}]),B=i(t),N=a(t,[{buffer:B,type:t.FLOAT,size:3}]),j=new T(t,p,n,s,l,c,f,h,d,y,g,m,v,x,b,k,_,w,M,P,R,z,O,D,F,B,N);return j.update(e),j}},{&quot;./lib/closest-point&quot;:307,&quot;./lib/shaders&quot;:308,colormap:131,&quot;gl-buffer&quot;:259,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/multiply&quot;:295,&quot;gl-shader&quot;:335,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495,normals:498,&quot;simplicial-complex-contour&quot;:556,&quot;typedarray-pool&quot;:595}],310:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],311:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[0,0,0,1,1,0,1,1]),s=i(e,a.boxVert,a.lineFrag);return new o(t,r,s)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;./shaders&quot;);function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawBox=(s=[0,0],l=[0,0],function(t,e,r,n,i){var a=this.plot,o=this.shader,c=a.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,o.uniforms.lo=s,o.uniforms.hi=l,o.uniforms.color=i,c.drawArrays(c.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:314,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],312:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),a=i(e,o.gridVert,o.gridFrag),l=i(e,o.tickVert,o.gridFrag);return new s(t,r,a,l)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;binary-search-bounds&quot;),o=t(&quot;./shaders&quot;);function s(t,e,r,n){this.plot=t,this.vbo=e,this.shader=r,this.tickShader=n,this.ticks=[[],[]]}function l(t,e){return t-e}var c,u,f,h,p,d=s.prototype;d.draw=(c=[0,0],u=[0,0],f=[0,0],function(){for(var t=this.plot,e=this.vbo,r=this.shader,n=this.ticks,i=t.gl,a=t._tickBounds,o=t.dataBox,s=t.viewBox,l=t.gridLineWidth,h=t.gridLineColor,p=t.gridLineEnable,d=t.pixelRatio,g=0;g&lt;2;++g){var m=a[g],v=a[g+2]-m,y=.5*(o[g+2]+o[g]),x=o[g+2]-o[g];u[g]=2*v/x,c[g]=2*(m-y)/x}r.bind(),e.bind(),r.attributes.dataCoord.pointer(),r.uniforms.dataShift=c,r.uniforms.dataScale=u;var b=0;for(g=0;g&lt;2;++g){f[0]=f[1]=0,f[g]=1,r.uniforms.dataAxis=f,r.uniforms.lineWidth=l[g]/(s[g+2]-s[g])*d,r.uniforms.color=h[g];var _=6*n[g].length;p[g]&amp;&amp;_&amp;&amp;i.drawArrays(i.TRIANGLES,b,_),b+=_}}),d.drawTickMarks=function(){var t=[0,0],e=[0,0],r=[1,0],n=[0,1],i=[0,0],o=[0,0];return function(){for(var s=this.plot,c=this.vbo,u=this.tickShader,f=this.ticks,h=s.gl,p=s._tickBounds,d=s.dataBox,g=s.viewBox,m=s.pixelRatio,v=s.screenBox,y=v[2]-v[0],x=v[3]-v[1],b=g[2]-g[0],_=g[3]-g[1],w=0;w&lt;2;++w){var T=p[w],k=p[w+2]-T,M=.5*(d[w+2]+d[w]),A=d[w+2]-d[w];e[w]=2*k/A,t[w]=2*(T-M)/A}e[0]*=b/y,t[0]*=b/y,e[1]*=_/x,t[1]*=_/x,u.bind(),c.bind(),u.attributes.dataCoord.pointer();var S=u.uniforms;S.dataShift=t,S.dataScale=e;var E=s.tickMarkLength,C=s.tickMarkWidth,L=s.tickMarkColor,I=6*f[0].length,P=Math.min(a.ge(f[0],(d[0]-p[0])/(p[2]-p[0]),l),f[0].length),z=Math.min(a.gt(f[0],(d[2]-p[0])/(p[2]-p[0]),l),f[0].length),O=0+6*P,D=6*Math.max(0,z-P),R=Math.min(a.ge(f[1],(d[1]-p[1])/(p[3]-p[1]),l),f[1].length),F=Math.min(a.gt(f[1],(d[3]-p[1])/(p[3]-p[1]),l),f[1].length),B=I+6*R,N=6*Math.max(0,F-R);i[0]=2*(g[0]-E[1])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[1]*m/y,o[1]=C[1]*m/x,N&amp;&amp;(S.color=L[1],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,B,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[1]-E[0])/x-1,o[0]=C[0]*m/y,o[1]=E[0]*m/x,D&amp;&amp;(S.color=L[0],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,O,D)),i[0]=2*(g[2]+E[3])/y-1,i[1]=(g[3]+g[1])/x-1,o[0]=E[3]*m/y,o[1]=C[3]*m/x,N&amp;&amp;(S.color=L[3],S.tickScale=o,S.dataAxis=n,S.screenOffset=i,h.drawArrays(h.TRIANGLES,B,N)),i[0]=(g[2]+g[0])/y-1,i[1]=2*(g[3]+E[2])/x-1,o[0]=C[2]*m/y,o[1]=E[2]*m/x,D&amp;&amp;(S.color=L[2],S.tickScale=o,S.dataAxis=r,S.screenOffset=i,h.drawArrays(h.TRIANGLES,O,D))}}(),d.update=(h=[1,1,-1,-1,1,-1],p=[1,-1,1,1,-1,-1],function(t){for(var e=t.ticks,r=t.bounds,n=new Float32Array(18*(e[0].length+e[1].length)),i=(this.plot.zeroLineEnable,0),a=[[],[]],o=0;o&lt;2;++o)for(var s=a[o],l=e[o],c=r[o],u=r[o+2],f=0;f&lt;l.length;++f){var d=(l[f].x-c)/(u-c);s.push(d);for(var g=0;g&lt;6;++g)n[i++]=d,n[i++]=h[g],n[i++]=p[g]}this.ticks=a,this.vbo.update(n)}),d.dispose=function(){this.vbo.dispose(),this.shader.dispose(),this.tickShader.dispose()}},{&quot;./shaders&quot;:314,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],313:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[-1,-1,-1,1,1,-1,1,1]),s=i(e,a.lineVert,a.lineFrag);return new o(t,r,s)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;./shaders&quot;);function o(t,e,r){this.plot=t,this.vbo=e,this.shader=r}var s,l,c=o.prototype;c.bind=function(){var t=this.shader;this.vbo.bind(),this.shader.bind(),t.attributes.coord.pointer(),t.uniforms.screenBox=this.plot.screenBox},c.drawLine=(s=[0,0],l=[0,0],function(t,e,r,n,i,a){var o=this.plot,c=this.shader,u=o.gl;s[0]=t,s[1]=e,l[0]=r,l[1]=n,c.uniforms.start=s,c.uniforms.end=l,c.uniforms.width=i*o.pixelRatio,c.uniforms.color=a,u.drawArrays(u.TRIANGLE_STRIP,0,4)}),c.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:314,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],314:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=n([&quot;precision lowp float;\n#define GLSLIFY 1\nuniform vec4 color;\nvoid main() {\n  gl_FragColor = vec4(color.xyz * color.w, color.w);\n}\n&quot;]);e.exports={lineVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 start, end;\nuniform float width;\n\nvec2 perp(vec2 v) {\n  return vec2(v.y, -v.x);\n}\n\nvec2 screen(vec2 v) {\n  return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n  vec2 delta = normalize(perp(start - end));\n  vec2 offset = mix(start, end, 0.5 * (coord.y+1.0));\n  gl_Position = vec4(screen(offset + 0.5 * width * delta * coord.x), 0, 1);\n}\n&quot;]),lineFrag:i,textVert:n([&quot;#define GLSLIFY 1\nattribute vec3 textCoordinate;\n\nuniform vec2 dataScale, dataShift, dataAxis, screenOffset, textScale;\nuniform float angle;\n\nvoid main() {\n  float dataOffset  = textCoordinate.z;\n  vec2 glyphOffset  = textCoordinate.xy;\n  mat2 glyphMatrix = mat2(cos(angle), sin(angle), -sin(angle), cos(angle));\n  vec2 screenCoordinate = dataAxis * (dataScale * dataOffset + dataShift) +\n    glyphMatrix * glyphOffset * textScale + screenOffset;\n  gl_Position = vec4(screenCoordinate, 0, 1);\n}\n&quot;]),textFrag:i,gridVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale;\nuniform float lineWidth;\n\nvoid main() {\n  vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n  pos += 10.0 * dataCoord.y * vec2(dataAxis.y, -dataAxis.x) + dataCoord.z * lineWidth;\n  gl_Position = vec4(pos, 0, 1);\n}\n&quot;]),gridFrag:i,boxVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 coord;\n\nuniform vec4 screenBox;\nuniform vec2 lo, hi;\n\nvec2 screen(vec2 v) {\n  return 2.0 * (v - screenBox.xy) / (screenBox.zw - screenBox.xy) - 1.0;\n}\n\nvoid main() {\n  gl_Position = vec4(screen(mix(lo, hi, coord)), 0, 1);\n}\n&quot;]),tickVert:n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 dataCoord;\n\nuniform vec2 dataAxis, dataShift, dataScale, screenOffset, tickScale;\n\nvoid main() {\n  vec2 pos = dataAxis * (dataScale * dataCoord.x + dataShift);\n  gl_Position = vec4(pos + tickScale*dataCoord.yz + screenOffset, 0, 1);\n}\n&quot;])}},{glslify:316}],315:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e),a=i(e,s.textVert,s.textFrag);return new l(t,r,a)};var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-shader&quot;),a=t(&quot;text-cache&quot;),o=t(&quot;binary-search-bounds&quot;),s=t(&quot;./shaders&quot;);function l(t,e,r){this.plot=t,this.vbo=e,this.shader=r,this.tickOffset=[[],[]],this.tickX=[[],[]],this.labelOffset=[0,0],this.labelCount=[0,0]}var c,u,f,h,p,d,g=l.prototype;g.drawTicks=(c=[0,0],u=[0,0],f=[0,0],function(t){var e=this.plot,r=this.shader,n=this.tickX[t],i=this.tickOffset[t],a=e.gl,s=e.viewBox,l=e.dataBox,h=e.screenBox,p=e.pixelRatio,d=e.tickEnable,g=e.tickPad,m=e.tickColor,v=e.tickAngle,y=e.labelEnable,x=e.labelPad,b=e.labelColor,_=e.labelAngle,w=this.labelOffset[t],T=this.labelCount[t],k=o.lt(n,l[t]),M=o.le(n,l[t+2]);c[0]=c[1]=0,c[t]=1,u[t]=(s[2+t]+s[t])/(h[2+t]-h[t])-1;var A=2/h[2+(1^t)]-h[1^t];u[1^t]=A*s[1^t]-1,d[t]&amp;&amp;(u[1^t]-=A*p*g[t],k&lt;M&amp;&amp;i[M]&gt;i[k]&amp;&amp;(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=m[t],r.uniforms.angle=v[t],a.drawArrays(a.TRIANGLES,i[k],i[M]-i[k]))),y[t]&amp;&amp;T&amp;&amp;(u[1^t]-=A*p*x[t],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t],r.uniforms.angle=_[t],a.drawArrays(a.TRIANGLES,w,T)),u[1^t]=A*s[2+(1^t)]-1,d[t+2]&amp;&amp;(u[1^t]+=A*p*g[t+2],k&lt;M&amp;&amp;i[M]&gt;i[k]&amp;&amp;(r.uniforms.dataAxis=c,r.uniforms.screenOffset=u,r.uniforms.color=m[t+2],r.uniforms.angle=v[t+2],a.drawArrays(a.TRIANGLES,i[k],i[M]-i[k]))),y[t+2]&amp;&amp;T&amp;&amp;(u[1^t]+=A*p*x[t+2],r.uniforms.dataAxis=f,r.uniforms.screenOffset=u,r.uniforms.color=b[t+2],r.uniforms.angle=_[t+2],a.drawArrays(a.TRIANGLES,w,T))}),g.drawTitle=function(){var t=[0,0],e=[0,0];return function(){var r=this.plot,n=this.shader,i=r.gl,a=r.screenBox,o=r.titleCenter,s=r.titleAngle,l=r.titleColor,c=r.pixelRatio;if(this.titleCount){for(var u=0;u&lt;2;++u)e[u]=2*(o[u]*c-a[u])/(a[2+u]-a[u])-1;n.bind(),n.uniforms.dataAxis=t,n.uniforms.screenOffset=e,n.uniforms.angle=s,n.uniforms.color=l,i.drawArrays(i.TRIANGLES,this.titleOffset,this.titleCount)}}}(),g.bind=(h=[0,0],p=[0,0],d=[0,0],function(){var t=this.plot,e=this.shader,r=t._tickBounds,n=t.dataBox,i=t.screenBox,a=t.viewBox;e.bind();for(var o=0;o&lt;2;++o){var s=r[o],l=r[o+2]-s,c=.5*(n[o+2]+n[o]),u=n[o+2]-n[o],f=a[o],g=a[o+2]-f,m=i[o],v=i[o+2]-m;p[o]=2*l/u*g/v,h[o]=2*(s-c)/u*g/v}d[1]=2*t.pixelRatio/(i[3]-i[1]),d[0]=d[1]*(i[3]-i[1])/(i[2]-i[0]),e.uniforms.dataScale=p,e.uniforms.dataShift=h,e.uniforms.textScale=d,this.vbo.bind(),e.attributes.textCoordinate.pointer()}),g.update=function(t){var e,r,n,i,o,s=[],l=t.ticks,c=t.bounds;for(o=0;o&lt;2;++o){var u=[Math.floor(s.length/3)],f=[-1/0],h=l[o];for(e=0;e&lt;h.length;++e){var p=h[e],d=p.x,g=p.text,m=p.font||&quot;sans-serif&quot;;i=p.fontSize||12;for(var v=1/(c[o+2]-c[o]),y=c[o],x=g.split(&quot;\n&quot;),b=0;b&lt;x.length;b++)for(n=a(m,x[b]).data,r=0;r&lt;n.length;r+=2)s.push(n[r]*i,-n[r+1]*i-b*i*1.2,(d-y)*v);u.push(Math.floor(s.length/3)),f.push(d)}this.tickOffset[o]=u,this.tickX[o]=f}for(o=0;o&lt;2;++o){for(this.labelOffset[o]=Math.floor(s.length/3),n=a(t.labelFont[o],t.labels[o],{textAlign:&quot;center&quot;}).data,i=t.labelSize[o],e=0;e&lt;n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.labelCount[o]=Math.floor(s.length/3)-this.labelOffset[o]}for(this.titleOffset=Math.floor(s.length/3),n=a(t.titleFont,t.title).data,i=t.titleSize,e=0;e&lt;n.length;e+=2)s.push(n[e]*i,-n[e+1]*i,0);this.titleCount=Math.floor(s.length/3)-this.titleOffset,this.vbo.update(s)},g.dispose=function(){this.vbo.dispose(),this.shader.dispose()}},{&quot;./shaders&quot;:314,&quot;binary-search-bounds&quot;:96,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335,&quot;text-cache&quot;:575}],316:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],317:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=n(e,[e.drawingBufferWidth,e.drawingBufferHeight]),c=new l(e,r);return c.grid=i(c),c.text=a(c),c.line=o(c),c.box=s(c),c.update(t),c};var n=t(&quot;gl-select-static&quot;),i=t(&quot;./lib/grid&quot;),a=t(&quot;./lib/text&quot;),o=t(&quot;./lib/line&quot;),s=t(&quot;./lib/box&quot;);function l(t,e){this.gl=t,this.pickBuffer=e,this.screenBox=[0,0,t.drawingBufferWidth,t.drawingBufferHeight],this.viewBox=[0,0,0,0],this.dataBox=[-10,-10,10,10],this.gridLineEnable=[!0,!0],this.gridLineWidth=[1,1],this.gridLineColor=[[0,0,0,1],[0,0,0,1]],this.pixelRatio=1,this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickEnable=[!0,!0,!0,!0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[15,15,15,15],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelEnable=[!0,!0,!0,!0],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.titleCenter=[0,0],this.titleEnable=!0,this.titleAngle=0,this.titleColor=[0,0,0,1],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[4,4],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderLineEnable=[!0,!0,!0,!0],this.borderLineWidth=[2,2,2,2],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.grid=null,this.text=null,this.line=null,this.box=null,this.objects=[],this.overlays=[],this._tickBounds=[1/0,1/0,-1/0,-1/0],this.static=!1,this.dirty=!1,this.pickDirty=!1,this.pickDelay=120,this.pickRadius=10,this._pickTimeout=null,this._drawPick=this.drawPick.bind(this),this._depthCounter=0}var c=l.prototype;function u(t){for(var e=t.slice(),r=0;r&lt;e.length;++r)e[r]=e[r].slice();return e}function f(t,e){return t.x-e.x}c.setDirty=function(){this.dirty=this.pickDirty=!0},c.setOverlayDirty=function(){this.dirty=!0},c.nextDepthValue=function(){return this._depthCounter++/65536},c.draw=function(){var t=this.gl,e=this.screenBox,r=this.viewBox,n=this.dataBox,i=this.pixelRatio,a=this.grid,o=this.line,s=this.text,l=this.objects;if(this._depthCounter=0,this.pickDirty&amp;&amp;(this._pickTimeout&amp;&amp;clearTimeout(this._pickTimeout),this.pickDirty=!1,this._pickTimeout=setTimeout(this._drawPick,this.pickDelay)),this.dirty){if(this.dirty=!1,t.bindFramebuffer(t.FRAMEBUFFER,null),t.enable(t.SCISSOR_TEST),t.disable(t.DEPTH_TEST),t.depthFunc(t.LESS),t.depthMask(!1),t.enable(t.BLEND),t.blendEquation(t.FUNC_ADD,t.FUNC_ADD),t.blendFunc(t.ONE,t.ONE_MINUS_SRC_ALPHA),this.borderColor){t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]);var c=this.borderColor;t.clearColor(c[0]*c[3],c[1]*c[3],c[2]*c[3],c[3]),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}t.scissor(r[0],r[1],r[2]-r[0],r[3]-r[1]),t.viewport(r[0],r[1],r[2]-r[0],r[3]-r[1]);var u=this.backgroundColor;t.clearColor(u[0]*u[3],u[1]*u[3],u[2]*u[3],u[3]),t.clear(t.COLOR_BUFFER_BIT),a.draw();var f=this.zeroLineEnable,h=this.zeroLineColor,p=this.zeroLineWidth;if(f[0]||f[1]){o.bind();for(var d=0;d&lt;2;++d)if(f[d]&amp;&amp;n[d]&lt;=0&amp;&amp;n[d+2]&gt;=0){var g=e[d]-n[d]*(e[d+2]-e[d])/(n[d+2]-n[d]);0===d?o.drawLine(g,e[1],g,e[3],p[d],h[d]):o.drawLine(e[0],g,e[2],g,p[d],h[d])}}for(d=0;d&lt;l.length;++d)l[d].draw();t.viewport(e[0],e[1],e[2]-e[0],e[3]-e[1]),t.scissor(e[0],e[1],e[2]-e[0],e[3]-e[1]),this.grid.drawTickMarks(),o.bind();var m=this.borderLineEnable,v=this.borderLineWidth,y=this.borderLineColor;for(m[1]&amp;&amp;o.drawLine(r[0],r[1]-.5*v[1]*i,r[0],r[3]+.5*v[3]*i,v[1],y[1]),m[0]&amp;&amp;o.drawLine(r[0]-.5*v[0]*i,r[1],r[2]+.5*v[2]*i,r[1],v[0],y[0]),m[3]&amp;&amp;o.drawLine(r[2],r[1]-.5*v[1]*i,r[2],r[3]+.5*v[3]*i,v[3],y[3]),m[2]&amp;&amp;o.drawLine(r[0]-.5*v[0]*i,r[3],r[2]+.5*v[2]*i,r[3],v[2],y[2]),s.bind(),d=0;d&lt;2;++d)s.drawTicks(d);this.titleEnable&amp;&amp;s.drawTitle();var x=this.overlays;for(d=0;d&lt;x.length;++d)x[d].draw();t.disable(t.SCISSOR_TEST),t.disable(t.BLEND),t.depthMask(!0)}},c.drawPick=function(){if(!this.static){var t=this.pickBuffer;this.gl,this._pickTimeout=null,t.begin();for(var e=1,r=this.objects,n=0;n&lt;r.length;++n)e=r[n].drawPick(e);t.end()}},c.pick=function(t,e){if(!this.static){var r=this.pixelRatio,n=this.pickPixelRatio,i=this.viewBox,a=0|Math.round((t-i[0]/r)*n),o=0|Math.round((e-i[1]/r)*n),s=this.pickBuffer.query(a,o,this.pickRadius);if(!s)return null;for(var l=s.id+(s.value[0]&lt;&lt;8)+(s.value[1]&lt;&lt;16)+(s.value[2]&lt;&lt;24),c=this.objects,u=0;u&lt;c.length;++u){var f=c[u].pick(a,o,l);if(f)return f}return null}},c.setScreenBox=function(t){var e=this.screenBox,r=this.pixelRatio;e[0]=0|Math.round(t[0]*r),e[1]=0|Math.round(t[1]*r),e[2]=0|Math.round(t[2]*r),e[3]=0|Math.round(t[3]*r),this.setDirty()},c.setDataBox=function(t){var e=this.dataBox;(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3])&amp;&amp;(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],this.setDirty())},c.setViewBox=function(t){var e=this.pixelRatio,r=this.viewBox;r[0]=0|Math.round(t[0]*e),r[1]=0|Math.round(t[1]*e),r[2]=0|Math.round(t[2]*e),r[3]=0|Math.round(t[3]*e);var n=this.pickPixelRatio;this.pickBuffer.shape=[0|Math.round((t[2]-t[0])*n),0|Math.round((t[3]-t[1])*n)],this.setDirty()},c.update=function(t){t=t||{};var e=this.gl;this.pixelRatio=t.pixelRatio||1;var r=this.pixelRatio;this.pickPixelRatio=Math.max(r,1),this.setScreenBox(t.screenBox||[0,0,e.drawingBufferWidth/r,e.drawingBufferHeight/r]);this.screenBox;this.setViewBox(t.viewBox||[.125*(this.screenBox[2]-this.screenBox[0])/r,.125*(this.screenBox[3]-this.screenBox[1])/r,.875*(this.screenBox[2]-this.screenBox[0])/r,.875*(this.screenBox[3]-this.screenBox[1])/r]);var n=this.viewBox,i=(n[2]-n[0])/(n[3]-n[1]);this.setDataBox(t.dataBox||[-10,-10/i,10,10/i]),this.borderColor=!1!==t.borderColor&amp;&amp;(t.borderColor||[0,0,0,0]).slice(),this.backgroundColor=(t.backgroundColor||[0,0,0,0]).slice(),this.gridLineEnable=(t.gridLineEnable||[!0,!0]).slice(),this.gridLineWidth=(t.gridLineWidth||[1,1]).slice(),this.gridLineColor=u(t.gridLineColor||[[.5,.5,.5,1],[.5,.5,.5,1]]),this.zeroLineEnable=(t.zeroLineEnable||[!0,!0]).slice(),this.zeroLineWidth=(t.zeroLineWidth||[4,4]).slice(),this.zeroLineColor=u(t.zeroLineColor||[[0,0,0,1],[0,0,0,1]]),this.tickMarkLength=(t.tickMarkLength||[0,0,0,0]).slice(),this.tickMarkWidth=(t.tickMarkWidth||[0,0,0,0]).slice(),this.tickMarkColor=u(t.tickMarkColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.titleCenter=(t.titleCenter||[.5*(n[0]+n[2])/r,(n[3]+120)/r]).slice(),this.titleEnable=!(&quot;titleEnable&quot;in t)||!!t.titleEnable,this.titleAngle=t.titleAngle||0,this.titleColor=(t.titleColor||[0,0,0,1]).slice(),this.labelPad=(t.labelPad||[15,15,15,15]).slice(),this.labelAngle=(t.labelAngle||[0,Math.PI/2,0,3*Math.PI/2]).slice(),this.labelEnable=(t.labelEnable||[!0,!0,!0,!0]).slice(),this.labelColor=u(t.labelColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.tickPad=(t.tickPad||[15,15,15,15]).slice(),this.tickAngle=(t.tickAngle||[0,0,0,0]).slice(),this.tickEnable=(t.tickEnable||[!0,!0,!0,!0]).slice(),this.tickColor=u(t.tickColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]),this.borderLineEnable=(t.borderLineEnable||[!0,!0,!0,!0]).slice(),this.borderLineWidth=(t.borderLineWidth||[2,2,2,2]).slice(),this.borderLineColor=u(t.borderLineColor||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]);var a=t.ticks||[[],[]],o=this._tickBounds;o[0]=o[1]=1/0,o[2]=o[3]=-1/0;for(var s=0;s&lt;2;++s){var l=a[s].slice(0);0!==l.length&amp;&amp;(l.sort(f),o[s]=Math.min(o[s],l[0].x),o[s+2]=Math.max(o[s+2],l[l.length-1].x))}this.grid.update({bounds:o,ticks:a}),this.text.update({bounds:o,ticks:a,labels:t.labels||[&quot;x&quot;,&quot;y&quot;],labelSize:t.labelSize||[12,12],labelFont:t.labelFont||[&quot;sans-serif&quot;,&quot;sans-serif&quot;],title:t.title||&quot;&quot;,titleSize:t.titleSize||18,titleFont:t.titleFont||&quot;sans-serif&quot;}),this.static=!!t.static,this.setDirty()},c.dispose=function(){this.box.dispose(),this.grid.dispose(),this.text.dispose(),this.line.dispose();for(var t=this.objects.length-1;t&gt;=0;--t)this.objects[t].dispose();this.objects.length=0;for(t=this.overlays.length-1;t&gt;=0;--t)this.overlays[t].dispose();this.overlays.length=0,this.gl=null},c.addObject=function(t){this.objects.indexOf(t)&lt;0&amp;&amp;(this.objects.push(t),this.setDirty())},c.removeObject=function(t){for(var e=this.objects,r=0;r&lt;e.length;++r)if(e[r]===t){e.splice(r,1),this.setDirty();break}},c.addOverlay=function(t){this.overlays.indexOf(t)&lt;0&amp;&amp;(this.overlays.push(t),this.setOverlayDirty())},c.removeOverlay=function(t){for(var e=this.overlays,r=0;r&lt;e.length;++r)if(e[r]===t){e.splice(r,1),this.setOverlayDirty();break}}},{&quot;./lib/box&quot;:311,&quot;./lib/grid&quot;:312,&quot;./lib/line&quot;:313,&quot;./lib/text&quot;:315,&quot;gl-select-static&quot;:334}],318:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){t=t||document.body,e=e||{};var r=[.01,1/0];&quot;distanceLimits&quot;in e&amp;&amp;(r[0]=e.distanceLimits[0],r[1]=e.distanceLimits[1]);&quot;zoomMin&quot;in e&amp;&amp;(r[0]=e.zoomMin);&quot;zoomMax&quot;in e&amp;&amp;(r[1]=e.zoomMax);var c=i({center:e.center||[0,0,0],up:e.up||[0,1,0],eye:e.eye||[0,0,10],mode:e.mode||&quot;orbit&quot;,distanceLimits:r}),u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],f=0,h=t.clientWidth,p=t.clientHeight,d={keyBindingMode:&quot;rotate&quot;,enableWheel:!0,view:c,element:t,delay:e.delay||16,rotateSpeed:e.rotateSpeed||1,zoomSpeed:e.zoomSpeed||1,translateSpeed:e.translateSpeed||1,flipX:!!e.flipX,flipY:!!e.flipY,modes:c.modes,_ortho:e._ortho||e.projection&amp;&amp;&quot;orthographic&quot;===e.projection.type||!1,tick:function(){var e=n(),r=this.delay,i=e-2*r;c.idle(e-r),c.recalcMatrix(i),c.flush(e-(100+2*r));for(var a=!0,o=c.computedMatrix,s=0;s&lt;16;++s)a=a&amp;&amp;u[s]===o[s],u[s]=o[s];var l=t.clientWidth===h&amp;&amp;t.clientHeight===p;return h=t.clientWidth,p=t.clientHeight,a?!l:(f=Math.exp(c.computedRadius[0]),!0)},lookAt:function(t,e,r){c.lookAt(c.lastT(),t,e,r)},rotate:function(t,e,r){c.rotate(c.lastT(),t,e,r)},pan:function(t,e,r){c.pan(c.lastT(),t,e,r)},translate:function(t,e,r){c.translate(c.lastT(),t,e,r)}};return Object.defineProperties(d,{matrix:{get:function(){return c.computedMatrix},set:function(t){return c.setMatrix(c.lastT(),t),c.computedMatrix},enumerable:!0},mode:{get:function(){return c.getMode()},set:function(t){var e=c.computedUp.slice(),r=c.computedEye.slice(),i=c.computedCenter.slice();if(c.setMode(t),&quot;turntable&quot;===t){var a=n();c._active.lookAt(a,r,i,e),c._active.lookAt(a+500,r,i,[0,0,1]),c._active.flush(a)}return c.getMode()},enumerable:!0},center:{get:function(){return c.computedCenter},set:function(t){return c.lookAt(c.lastT(),null,t),c.computedCenter},enumerable:!0},eye:{get:function(){return c.computedEye},set:function(t){return c.lookAt(c.lastT(),t),c.computedEye},enumerable:!0},up:{get:function(){return c.computedUp},set:function(t){return c.lookAt(c.lastT(),null,null,t),c.computedUp},enumerable:!0},distance:{get:function(){return f},set:function(t){return c.setDistance(c.lastT(),t),t},enumerable:!0},distanceLimits:{get:function(){return c.getDistanceLimits(r)},set:function(t){return c.setDistanceLimits(t),t},enumerable:!0}}),t.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault(),!1})),d._lastX=-1,d._lastY=-1,d._lastMods={shift:!1,control:!1,alt:!1,meta:!1},d.enableMouseListeners=function(){function e(e,r,i,a){var o=d.keyBindingMode;if(!1!==o){var s=&quot;rotate&quot;===o,l=&quot;pan&quot;===o,u=&quot;zoom&quot;===o,h=!!a.control,p=!!a.alt,g=!!a.shift,m=!!(1&amp;e),v=!!(2&amp;e),y=!!(4&amp;e),x=1/t.clientHeight,b=x*(r-d._lastX),_=x*(i-d._lastY),w=d.flipX?1:-1,T=d.flipY?1:-1,k=Math.PI*d.rotateSpeed,M=n();if(-1!==d._lastX&amp;&amp;-1!==d._lastY&amp;&amp;((s&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||m&amp;&amp;!h&amp;&amp;!p&amp;&amp;g)&amp;&amp;c.rotate(M,w*k*b,-T*k*_,0),(l&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||v||m&amp;&amp;h&amp;&amp;!p&amp;&amp;!g)&amp;&amp;c.pan(M,-d.translateSpeed*b*f,d.translateSpeed*_*f,0),u&amp;&amp;m&amp;&amp;!h&amp;&amp;!p&amp;&amp;!g||y||m&amp;&amp;!h&amp;&amp;p&amp;&amp;!g)){var A=-d.zoomSpeed*_/window.innerHeight*(M-c.lastT())*100;c.pan(M,0,0,f*(Math.exp(A)-1))}return d._lastX=r,d._lastY=i,d._lastMods=a,!0}}d.mouseListener=a(t,e),t.addEventListener(&quot;touchstart&quot;,(function(r){var n=s(r.changedTouches[0],t);e(0,n[0],n[1],d._lastMods),e(1,n[0],n[1],d._lastMods)}),!!l&amp;&amp;{passive:!0}),t.addEventListener(&quot;touchmove&quot;,(function(r){var n=s(r.changedTouches[0],t);e(1,n[0],n[1],d._lastMods),r.preventDefault()}),!!l&amp;&amp;{passive:!1}),t.addEventListener(&quot;touchend&quot;,(function(t){e(0,d._lastX,d._lastY,d._lastMods)}),!!l&amp;&amp;{passive:!0}),d.wheelListener=o(t,(function(t,e){if(!1!==d.keyBindingMode&amp;&amp;d.enableWheel){var r=d.flipX?1:-1,i=d.flipY?1:-1,a=n();if(Math.abs(t)&gt;Math.abs(e))c.rotate(a,0,0,-t*r*Math.PI*d.rotateSpeed/window.innerWidth);else if(!d._ortho){var o=-d.zoomSpeed*i*e/window.innerHeight*(a-c.lastT())/20;c.pan(a,0,0,f*(Math.exp(o)-1))}}}),!0)},d.enableMouseListeners(),d};var n=t(&quot;right-now&quot;),i=t(&quot;3d-view&quot;),a=t(&quot;mouse-change&quot;),o=t(&quot;mouse-wheel&quot;),s=t(&quot;mouse-event-offset&quot;),l=t(&quot;has-passive-events&quot;)},{&quot;3d-view&quot;:54,&quot;has-passive-events&quot;:441,&quot;mouse-change&quot;:483,&quot;mouse-event-offset&quot;:484,&quot;mouse-wheel&quot;:486,&quot;right-now&quot;:542}],319:[function(t,e,r){var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision mediump float;\n#define GLSLIFY 1\nattribute vec2 position;\nvarying vec2 uv;\nvoid main() {\n  uv = position;\n  gl_Position = vec4(position, 0, 1);\n}&quot;]),o=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform sampler2D accumBuffer;\nvarying vec2 uv;\n\nvoid main() {\n  vec4 accum = texture2D(accumBuffer, 0.5 * (uv + 1.0));\n  gl_FragColor = min(vec4(1,1,1,1), accum);\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec2&quot;}])}},{&quot;gl-shader&quot;:335,glslify:320}],320:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],321:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./camera.js&quot;),i=t(&quot;gl-axes3d&quot;),a=t(&quot;gl-axes3d/properties&quot;),o=t(&quot;gl-spikes3d&quot;),s=t(&quot;gl-select-static&quot;),l=t(&quot;gl-fbo&quot;),c=t(&quot;a-big-triangle&quot;),u=t(&quot;mouse-change&quot;),f=t(&quot;gl-mat4/perspective&quot;),h=t(&quot;gl-mat4/ortho&quot;),p=t(&quot;./lib/shader&quot;),d=t(&quot;is-mobile&quot;)({tablet:!0,featureDetect:!0});function g(){this.mouse=[-1,-1],this.screen=null,this.distance=1/0,this.index=null,this.dataCoordinate=null,this.dataPosition=null,this.object=null,this.data=null}function m(t){var e=Math.round(Math.log(Math.abs(t))/Math.log(10));if(e&lt;0){var r=Math.round(Math.pow(10,-e));return Math.ceil(t*r)/r}if(e&gt;0){r=Math.round(Math.pow(10,e));return Math.ceil(t/r)*r}return Math.ceil(t)}function v(t){return&quot;boolean&quot;!=typeof t||t}e.exports={createScene:function(t){(t=t||{}).camera=t.camera||{};var e=t.canvas;if(!e){if(e=document.createElement(&quot;canvas&quot;),t.container)t.container.appendChild(e);else document.body.appendChild(e)}var r=t.gl;r||(t.glOptions&amp;&amp;(d=!!t.glOptions.preserveDrawingBuffer),r=function(t,e){var r=null;try{(r=t.getContext(&quot;webgl&quot;,e))||(r=t.getContext(&quot;experimental-webgl&quot;,e))}catch(t){return null}return r}(e,t.glOptions||{premultipliedAlpha:!0,antialias:!0,preserveDrawingBuffer:d}));if(!r)throw new Error(&quot;webgl not supported&quot;);var y=t.bounds||[[-10,-10,-10],[10,10,10]],x=new g,b=l(r,r.drawingBufferWidth,r.drawingBufferHeight,{preferFloat:!d}),_=p(r),w=t.cameraObject&amp;&amp;!0===t.cameraObject._ortho||t.camera.projection&amp;&amp;&quot;orthographic&quot;===t.camera.projection.type||!1,T={eye:t.camera.eye||[2,0,0],center:t.camera.center||[0,0,0],up:t.camera.up||[0,1,0],zoomMin:t.camera.zoomMax||.1,zoomMax:t.camera.zoomMin||100,mode:t.camera.mode||&quot;turntable&quot;,_ortho:w},k=t.axes||{},M=i(r,k);M.enable=!k.disable;var A=t.spikes||{},S=o(r,A),E=[],C=[],L=[],I=[],P=!0,z=!0,O=new Array(16),D=new Array(16),R={view:null,projection:O,model:D,_ortho:!1},F=(z=!0,[r.drawingBufferWidth,r.drawingBufferHeight]),B=t.cameraObject||n(e,T),N={gl:r,contextLost:!1,pixelRatio:t.pixelRatio||1,canvas:e,selection:x,camera:B,axes:M,axesPixels:null,spikes:S,bounds:y,objects:E,shape:F,aspect:t.aspectRatio||[1,1,1],pickRadius:t.pickRadius||10,zNear:t.zNear||.01,zFar:t.zFar||1e3,fovy:t.fovy||Math.PI/4,clearColor:t.clearColor||[0,0,0,0],autoResize:v(t.autoResize),autoBounds:v(t.autoBounds),autoScale:!!t.autoScale,autoCenter:v(t.autoCenter),clipToBounds:v(t.clipToBounds),snapToData:!!t.snapToData,onselect:t.onselect||null,onrender:t.onrender||null,onclick:t.onclick||null,cameraParams:R,oncontextloss:null,mouseListener:null,_stopped:!1,getAspectratio:function(){return{x:this.aspect[0],y:this.aspect[1],z:this.aspect[2]}},setAspectratio:function(t){this.aspect[0]=t.x,this.aspect[1]=t.y,this.aspect[2]=t.z,z=!0},setBounds:function(t,e){this.bounds[0][t]=e.min,this.bounds[1][t]=e.max},setClearColor:function(t){this.clearColor=t},clearRGBA:function(){this.gl.clearColor(this.clearColor[0],this.clearColor[1],this.clearColor[2],this.clearColor[3]),this.gl.clear(this.gl.COLOR_BUFFER_BIT|this.gl.DEPTH_BUFFER_BIT)}},j=[r.drawingBufferWidth/N.pixelRatio|0,r.drawingBufferHeight/N.pixelRatio|0];function U(){if(!N._stopped&amp;&amp;N.autoResize){var t=e.parentNode,r=1,n=1;t&amp;&amp;t!==document.body?(r=t.clientWidth,n=t.clientHeight):(r=window.innerWidth,n=window.innerHeight);var i=0|Math.ceil(r*N.pixelRatio),a=0|Math.ceil(n*N.pixelRatio);if(i!==e.width||a!==e.height){e.width=i,e.height=a;var o=e.style;o.position=o.position||&quot;absolute&quot;,o.left=&quot;0px&quot;,o.top=&quot;0px&quot;,o.width=r+&quot;px&quot;,o.height=n+&quot;px&quot;,P=!0}}}N.autoResize&amp;&amp;U();function V(){for(var t=E.length,e=I.length,n=0;n&lt;e;++n)L[n]=0;t:for(n=0;n&lt;t;++n){var i=E[n],a=i.pickSlots;if(a){for(var o=0;o&lt;e;++o)if(L[o]+a&lt;255){C[n]=o,i.setPickBase(L[o]+1),L[o]+=a;continue t}var l=s(r,F);C[n]=e,I.push(l),L.push(a),i.setPickBase(1),e+=1}else C[n]=-1}for(;e&gt;0&amp;&amp;0===L[e-1];)L.pop(),I.pop().dispose()}function q(){if(N.contextLost)return!0;r.isContextLost()&amp;&amp;(N.contextLost=!0,N.mouseListener.enabled=!1,N.selection.object=null,N.oncontextloss&amp;&amp;N.oncontextloss())}window.addEventListener(&quot;resize&quot;,U),N.update=function(t){N._stopped||(t=t||{},P=!0,z=!0)},N.add=function(t){N._stopped||(t.axes=M,E.push(t),C.push(-1),P=!0,z=!0,V())},N.remove=function(t){if(!N._stopped){var e=E.indexOf(t);e&lt;0||(E.splice(e,1),C.pop(),P=!0,z=!0,V())}},N.dispose=function(){if(!N._stopped&amp;&amp;(N._stopped=!0,window.removeEventListener(&quot;resize&quot;,U),e.removeEventListener(&quot;webglcontextlost&quot;,q),N.mouseListener.enabled=!1,!N.contextLost)){M.dispose(),S.dispose();for(var t=0;t&lt;E.length;++t)E[t].dispose();b.dispose();for(t=0;t&lt;I.length;++t)I[t].dispose();_.dispose(),r=null,M=null,S=null,E=[]}},N._mouseRotating=!1,N._prevButtons=0,N.enableMouseListeners=function(){N.mouseListener=u(e,(function(t,e,r){if(!N._stopped){var n=I.length,i=E.length,a=x.object;x.distance=1/0,x.mouse[0]=e,x.mouse[1]=r,x.object=null,x.screen=null,x.dataCoordinate=x.dataPosition=null;var o=!1;if(t&amp;&amp;N._prevButtons)N._mouseRotating=!0;else{N._mouseRotating&amp;&amp;(z=!0),N._mouseRotating=!1;for(var s=0;s&lt;n;++s){var l=I[s].query(e,j[1]-r-1,N.pickRadius);if(l){if(l.distance&gt;x.distance)continue;for(var c=0;c&lt;i;++c){var u=E[c];if(C[c]===s){var f=u.pick(l);f&amp;&amp;(x.buttons=t,x.screen=l.coord,x.distance=l.distance,x.object=u,x.index=f.distance,x.dataPosition=f.position,x.dataCoordinate=f.dataCoordinate,x.data=f,o=!0)}}}}}a&amp;&amp;a!==x.object&amp;&amp;(a.highlight&amp;&amp;a.highlight(null),P=!0),x.object&amp;&amp;(x.object.highlight&amp;&amp;x.object.highlight(x.data),P=!0),(o=o||x.object!==a)&amp;&amp;N.onselect&amp;&amp;N.onselect(x),1&amp;t&amp;&amp;!(1&amp;N._prevButtons)&amp;&amp;N.onclick&amp;&amp;N.onclick(x),N._prevButtons=t}}))},e.addEventListener(&quot;webglcontextlost&quot;,q);var H=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],G=[H[0].slice(),H[1].slice()];function Y(){if(!q()){U();var t=N.camera.tick();R.view=N.camera.matrix,P=P||t,z=z||t,M.pixelRatio=N.pixelRatio,S.pixelRatio=N.pixelRatio;var e=E.length,n=H[0],i=H[1];n[0]=n[1]=n[2]=1/0,i[0]=i[1]=i[2]=-1/0;for(var o=0;o&lt;e;++o){(L=E[o]).pixelRatio=N.pixelRatio,L.axes=N.axes,P=P||!!L.dirty,z=z||!!L.dirty;var s=L.bounds;if(s)for(var l=s[0],u=s[1],p=0;p&lt;3;++p)n[p]=Math.min(n[p],l[p]),i[p]=Math.max(i[p],u[p])}var d=N.bounds;if(N.autoBounds)for(p=0;p&lt;3;++p){if(i[p]&lt;n[p])n[p]=-1,i[p]=1;else{n[p]===i[p]&amp;&amp;(n[p]-=1,i[p]+=1);var g=.05*(i[p]-n[p]);n[p]=n[p]-g,i[p]=i[p]+g}d[0][p]=n[p],d[1][p]=i[p]}var v=!1;for(p=0;p&lt;3;++p)v=v||G[0][p]!==d[0][p]||G[1][p]!==d[1][p],G[0][p]=d[0][p],G[1][p]=d[1][p];if(z=z||v,P=P||v){if(v){var y=[0,0,0];for(o=0;o&lt;3;++o)y[o]=m((d[1][o]-d[0][o])/10);M.autoTicks?M.update({bounds:d,tickSpacing:y}):M.update({bounds:d})}var T=r.drawingBufferWidth,k=r.drawingBufferHeight;F[0]=T,F[1]=k,j[0]=0|Math.max(T/N.pixelRatio,1),j[1]=0|Math.max(k/N.pixelRatio,1),function(t,e){var r=t.bounds,n=t.cameraParams,i=n.projection,a=n.model,o=t.gl.drawingBufferWidth,s=t.gl.drawingBufferHeight,l=t.zNear,c=t.zFar,u=t.fovy,p=o/s;e?(h(i,-p,p,-1,1,l,c),n._ortho=!0):(f(i,u,p,l,c),n._ortho=!1);for(var d=0;d&lt;16;++d)a[d]=0;a[15]=1;var g=0;for(d=0;d&lt;3;++d)g=Math.max(g,r[1][d]-r[0][d]);for(d=0;d&lt;3;++d)t.autoScale?a[5*d]=t.aspect[d]/(r[1][d]-r[0][d]):a[5*d]=1/g,t.autoCenter&amp;&amp;(a[12+d]=.5*-a[5*d]*(r[0][d]+r[1][d]))}(N,w);for(o=0;o&lt;e;++o){(L=E[o]).axesBounds=d,N.clipToBounds&amp;&amp;(L.clipBounds=d)}x.object&amp;&amp;(N.snapToData?S.position=x.dataCoordinate:S.position=x.dataPosition,S.bounds=d),z&amp;&amp;(z=!1,function(){if(!q()){r.colorMask(!0,!0,!0,!0),r.depthMask(!0),r.disable(r.BLEND),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL);for(var t=E.length,e=I.length,n=0;n&lt;e;++n){var i=I[n];i.shape=j,i.begin();for(var a=0;a&lt;t;++a)if(C[a]===n){var o=E[a];o.drawPick&amp;&amp;(o.pixelRatio=1,o.drawPick(R))}i.end()}}}()),N.axesPixels=a(N.axes,R,T,k),N.onrender&amp;&amp;N.onrender(),r.bindFramebuffer(r.FRAMEBUFFER,null),r.viewport(0,0,T,k),N.clearRGBA(),r.depthMask(!0),r.colorMask(!0,!0,!0,!0),r.enable(r.DEPTH_TEST),r.depthFunc(r.LEQUAL),r.disable(r.BLEND),r.disable(r.CULL_FACE);var A=!1;M.enable&amp;&amp;(A=A||M.isTransparent(),M.draw(R)),S.axes=M,x.object&amp;&amp;S.draw(R),r.disable(r.CULL_FACE);for(o=0;o&lt;e;++o){(L=E[o]).axes=M,L.pixelRatio=N.pixelRatio,L.isOpaque&amp;&amp;L.isOpaque()&amp;&amp;L.draw(R),L.isTransparent&amp;&amp;L.isTransparent()&amp;&amp;(A=!0)}if(A){b.shape=F,b.bind(),r.clear(r.DEPTH_BUFFER_BIT),r.colorMask(!1,!1,!1,!1),r.depthMask(!0),r.depthFunc(r.LESS),M.enable&amp;&amp;M.isTransparent()&amp;&amp;M.drawTransparent(R);for(o=0;o&lt;e;++o){(L=E[o]).isOpaque&amp;&amp;L.isOpaque()&amp;&amp;L.draw(R)}r.enable(r.BLEND),r.blendEquation(r.FUNC_ADD),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.colorMask(!0,!0,!0,!0),r.depthMask(!1),r.clearColor(0,0,0,0),r.clear(r.COLOR_BUFFER_BIT),M.isTransparent()&amp;&amp;M.drawTransparent(R);for(o=0;o&lt;e;++o){var L;(L=E[o]).isTransparent&amp;&amp;L.isTransparent()&amp;&amp;L.drawTransparent(R)}r.bindFramebuffer(r.FRAMEBUFFER,null),r.blendFunc(r.ONE,r.ONE_MINUS_SRC_ALPHA),r.disable(r.DEPTH_TEST),_.bind(),b.color[0].bind(0),_.uniforms.accumBuffer=0,c(r),r.disable(r.BLEND)}P=!1;for(o=0;o&lt;e;++o)E[o].dirty=!1}}}return N.enableMouseListeners(),function t(){if(N._stopped||N.contextLost)return;Y(),requestAnimationFrame(t)}(),N.redraw=function(){N._stopped||(P=!0,Y())},N},createCamera:n}},{&quot;./camera.js&quot;:318,&quot;./lib/shader&quot;:319,&quot;a-big-triangle&quot;:64,&quot;gl-axes3d&quot;:250,&quot;gl-axes3d/properties&quot;:258,&quot;gl-fbo&quot;:269,&quot;gl-mat4/ortho&quot;:296,&quot;gl-mat4/perspective&quot;:297,&quot;gl-select-static&quot;:334,&quot;gl-spikes3d&quot;:345,&quot;is-mobile&quot;:467,&quot;mouse-change&quot;:483}],322:[function(t,e,r){var n=t(&quot;glslify&quot;);r.pointVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform float pointCloud;\n\nhighp float rand(vec2 co) {\n  highp float a = 12.9898;\n  highp float b = 78.233;\n  highp float c = 43758.5453;\n  highp float d = dot(co.xy, vec2(a, b));\n  highp float e = mod(d, 3.14);\n  return fract(sin(e) * c);\n}\n\nvoid main() {\n  vec3 hgPosition = matrix * vec3(position, 1);\n  gl_Position  = vec4(hgPosition.xy, 0, hgPosition.z);\n    // if we don't jitter the point size a bit, overall point cloud\n    // saturation 'jumps' on zooming, which is disturbing and confusing\n  gl_PointSize = pointSize * ((19.5 + rand(position)) / 20.0);\n  if(pointCloud != 0.0) { // pointCloud is truthy\n    // get the same square surface as circle would be\n    gl_PointSize *= 0.886;\n  }\n}&quot;]),r.pointFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color, borderColor;\nuniform float centerFraction;\nuniform float pointCloud;\n\nvoid main() {\n  float radius;\n  vec4 baseColor;\n  if(pointCloud != 0.0) { // pointCloud is truthy\n    if(centerFraction == 1.0) {\n      gl_FragColor = color;\n    } else {\n      gl_FragColor = mix(borderColor, color, centerFraction);\n    }\n  } else {\n    radius = length(2.0 * gl_PointCoord.xy - 1.0);\n    if(radius &gt; 1.0) {\n      discard;\n    }\n    baseColor = mix(borderColor, color, step(radius, centerFraction));\n    gl_FragColor = vec4(baseColor.rgb * baseColor.a, baseColor.a);\n  }\n}\n&quot;]),r.pickVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 position;\nattribute vec4 pickId;\n\nuniform mat3 matrix;\nuniform float pointSize;\nuniform vec4 pickOffset;\n\nvarying vec4 fragId;\n\nvoid main() {\n  vec3 hgPosition = matrix * vec3(position, 1);\n  gl_Position  = vec4(hgPosition.xy, 0, hgPosition.z);\n  gl_PointSize = pointSize;\n\n  vec4 id = pickId + pickOffset;\n  id.y += floor(id.x / 256.0);\n  id.x -= floor(id.x / 256.0) * 256.0;\n\n  id.z += floor(id.y / 256.0);\n  id.y -= floor(id.y / 256.0) * 256.0;\n\n  id.w += floor(id.z / 256.0);\n  id.z -= floor(id.z / 256.0) * 256.0;\n\n  fragId = id;\n}\n&quot;]),r.pickFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragId;\n\nvoid main() {\n  float radius = length(2.0 * gl_PointCoord.xy - 1.0);\n  if(radius &gt; 1.0) {\n    discard;\n  }\n  gl_FragColor = fragId / 255.0;\n}\n&quot;])},{glslify:323}],323:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],324:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;typedarray-pool&quot;),o=t(&quot;./lib/shader&quot;);function s(t,e,r,n,i){this.plot=t,this.offsetBuffer=e,this.pickBuffer=r,this.shader=n,this.pickShader=i,this.sizeMin=.5,this.sizeMinCap=2,this.sizeMax=20,this.areaRatio=1,this.pointCount=0,this.color=[1,0,0,1],this.borderColor=[0,0,0,1],this.blend=!1,this.pickOffset=0,this.points=null}e.exports=function(t,e){var r=t.gl,a=i(r),l=i(r),c=n(r,o.pointVertex,o.pointFragment),u=n(r,o.pickVertex,o.pickFragment),f=new s(t,a,l,c,u);return f.update(e),t.addObject(f),f};var l,c,u=s.prototype;u.dispose=function(){this.shader.dispose(),this.pickShader.dispose(),this.offsetBuffer.dispose(),this.pickBuffer.dispose(),this.plot.removeObject(this)},u.update=function(t){var e;function r(e,r){return e in t?t[e]:r}t=t||{},this.sizeMin=r(&quot;sizeMin&quot;,.5),this.sizeMax=r(&quot;sizeMax&quot;,20),this.color=r(&quot;color&quot;,[1,0,0,1]).slice(),this.areaRatio=r(&quot;areaRatio&quot;,1),this.borderColor=r(&quot;borderColor&quot;,[0,0,0,1]).slice(),this.blend=r(&quot;blend&quot;,!1);var n=t.positions.length&gt;&gt;&gt;1,i=t.positions instanceof Float32Array,o=t.idToIndex instanceof Int32Array&amp;&amp;t.idToIndex.length&gt;=n,s=t.positions,l=i?s:a.mallocFloat32(s.length),c=o?t.idToIndex:a.mallocInt32(n);if(i||l.set(s),!o)for(l.set(s),e=0;e&lt;n;e++)c[e]=e;this.points=s,this.offsetBuffer.update(l),this.pickBuffer.update(c),i||a.free(l),o||a.free(c),this.pointCount=n,this.pickOffset=0},u.unifiedDraw=(l=[1,0,0,0,1,0,0,0,1],c=[0,0,0,0],function(t){var e=void 0!==t,r=e?this.pickShader:this.shader,n=this.plot.gl,i=this.plot.dataBox;if(0===this.pointCount)return t;var a=i[2]-i[0],o=i[3]-i[1],s=function(t,e){var r,n=0,i=t.length&gt;&gt;&gt;1;for(r=0;r&lt;i;r++){var a=t[2*r],o=t[2*r+1];a&gt;=e[0]&amp;&amp;a&lt;=e[2]&amp;&amp;o&gt;=e[1]&amp;&amp;o&lt;=e[3]&amp;&amp;n++}return n}(this.points,i),u=this.plot.pickPixelRatio*Math.max(Math.min(this.sizeMinCap,this.sizeMin),Math.min(this.sizeMax,this.sizeMax/Math.pow(s,.33333)));l[0]=2/a,l[4]=2/o,l[6]=-2*i[0]/a-1,l[7]=-2*i[1]/o-1,this.offsetBuffer.bind(),r.bind(),r.attributes.position.pointer(),r.uniforms.matrix=l,r.uniforms.color=this.color,r.uniforms.borderColor=this.borderColor,r.uniforms.pointCloud=u&lt;5,r.uniforms.pointSize=u,r.uniforms.centerFraction=Math.min(1,Math.max(0,Math.sqrt(1-this.areaRatio))),e&amp;&amp;(c[0]=255&amp;t,c[1]=t&gt;&gt;8&amp;255,c[2]=t&gt;&gt;16&amp;255,c[3]=t&gt;&gt;24&amp;255,this.pickBuffer.bind(),r.attributes.pickId.pointer(n.UNSIGNED_BYTE),r.uniforms.pickOffset=c,this.pickOffset=t);var f=n.getParameter(n.BLEND),h=n.getParameter(n.DITHER);return f&amp;&amp;!this.blend&amp;&amp;n.disable(n.BLEND),h&amp;&amp;n.disable(n.DITHER),n.drawArrays(n.POINTS,0,this.pointCount),f&amp;&amp;!this.blend&amp;&amp;n.enable(n.BLEND),h&amp;&amp;n.enable(n.DITHER),t+this.pointCount}),u.draw=u.unifiedDraw,u.drawPick=u.unifiedDraw,u.pick=function(t,e,r){var n=this.pickOffset,i=this.pointCount;if(r&lt;n||r&gt;=n+i)return null;var a=r-n,o=this.points;return{object:this,pointId:a,dataCoord:[o[2*a],o[2*a+1]]}}},{&quot;./lib/shader&quot;:322,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335,&quot;typedarray-pool&quot;:595}],325:[function(t,e,r){e.exports=function(t,e,r,n){var i,a,o,s,l,c=e[0],u=e[1],f=e[2],h=e[3],p=r[0],d=r[1],g=r[2],m=r[3];(a=c*p+u*d+f*g+h*m)&lt;0&amp;&amp;(a=-a,p=-p,d=-d,g=-g,m=-m);1-a&gt;1e-6?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-n)*i)/o,l=Math.sin(n*i)/o):(s=1-n,l=n);return t[0]=s*c+l*p,t[1]=s*u+l*d,t[2]=s*f+l*g,t[3]=s*h+l*m,t}},{}],326:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t||0===t?t.toString():&quot;&quot;}},{}],327:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;vectorize-text&quot;);e.exports=function(t,e,r){var a=i[e];a||(a=i[e]={});if(t in a)return a[t];var o={textAlign:&quot;center&quot;,textBaseline:&quot;middle&quot;,lineHeight:1,font:e,lineSpacing:1.25,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0},triangles:!0},s=n(t,o);o.triangles=!1;var l,c,u=n(t,o);if(r&amp;&amp;1!==r){for(l=0;l&lt;s.positions.length;++l)for(c=0;c&lt;s.positions[l].length;++c)s.positions[l][c]/=r;for(l=0;l&lt;u.positions.length;++l)for(c=0;c&lt;u.positions[l].length;++c)u.positions[l][c]/=r}var f=[[1/0,1/0],[-1/0,-1/0]],h=u.positions.length;for(l=0;l&lt;h;++l){var p=u.positions[l];for(c=0;c&lt;2;++c)f[0][c]=Math.min(f[0][c],p[c]),f[1][c]=Math.max(f[1][c],p[c])}return a[t]=[s,u,f]};var i={}},{&quot;vectorize-text&quot;:600}],328:[function(t,e,r){var n=t(&quot;gl-shader&quot;),i=t(&quot;glslify&quot;),a=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform vec4 highlightId;\nuniform float highlightScale;\nuniform mat4 model, view, projection;\nuniform vec3 clipBounds[2];\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float scale = 1.0;\n    if(distance(highlightId, id) &lt; 0.0001) {\n      scale = highlightScale;\n    }\n\n    vec4 worldPosition = model * vec4(position, 1);\n    vec4 viewPosition = view * worldPosition;\n    viewPosition = viewPosition / viewPosition.w;\n    vec4 clipPosition = projection * (viewPosition + scale * vec4(glyph.x, -glyph.y, 0, 0));\n\n    gl_Position = clipPosition;\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = position;\n  }\n}&quot;]),o=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float highlightScale, pixelRatio;\nuniform vec4 highlightId;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float scale = pixelRatio;\n    if(distance(highlightId.bgr, id.bgr) &lt; 0.001) {\n      scale *= highlightScale;\n    }\n\n    vec4 worldPosition = model * vec4(position, 1.0);\n    vec4 viewPosition = view * worldPosition;\n    vec4 clipPosition = projection * viewPosition;\n    clipPosition /= clipPosition.w;\n\n    gl_Position = clipPosition + vec4(screenSize * scale * vec2(glyph.x, -glyph.y), 0.0, 0.0);\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = position;\n  }\n}&quot;]),s=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nattribute vec3 position;\nattribute vec4 color;\nattribute vec2 glyph;\nattribute vec4 id;\n\nuniform float highlightScale;\nuniform vec4 highlightId;\nuniform vec3 axes[2];\nuniform mat4 model, view, projection;\nuniform vec2 screenSize;\nuniform vec3 clipBounds[2];\nuniform float scale, pixelRatio;\n\nvarying vec4 interpColor;\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], position)) {\n\n    gl_Position = vec4(0,0,0,0);\n  } else {\n    float lscale = pixelRatio * scale;\n    if(distance(highlightId, id) &lt; 0.0001) {\n      lscale *= highlightScale;\n    }\n\n    vec4 clipCenter   = projection * view * model * vec4(position, 1);\n    vec3 dataPosition = position + 0.5*lscale*(axes[0] * glyph.x + axes[1] * glyph.y) * clipCenter.w * screenSize.y;\n    vec4 clipPosition = projection * view * model * vec4(dataPosition, 1);\n\n    gl_Position = clipPosition;\n    interpColor = color;\n    pickId = id;\n    dataCoordinate = dataPosition;\n  }\n}\n&quot;]),l=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float opacity;\n\nvarying vec4 interpColor;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (\n    outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate) ||\n    interpColor.a * opacity == 0.\n  ) discard;\n  gl_FragColor = interpColor * opacity;\n}\n&quot;]),c=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 fragClipBounds[2];\nuniform float pickGroup;\n\nvarying vec4 pickId;\nvarying vec3 dataCoordinate;\n\nvoid main() {\n  if (outOfRange(fragClipBounds[0], fragClipBounds[1], dataCoordinate)) discard;\n\n  gl_FragColor = vec4(pickGroup, pickId.bgr);\n}&quot;]),u=[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;glyph&quot;,type:&quot;vec2&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;}],f={vertex:a,fragment:l,attributes:u},h={vertex:o,fragment:l,attributes:u},p={vertex:s,fragment:l,attributes:u},d={vertex:a,fragment:c,attributes:u},g={vertex:o,fragment:c,attributes:u},m={vertex:s,fragment:c,attributes:u};function v(t,e){var r=n(t,e),i=r.attributes;return i.position.location=0,i.color.location=1,i.glyph.location=2,i.id.location=3,r}r.createPerspective=function(t){return v(t,f)},r.createOrtho=function(t){return v(t,h)},r.createProject=function(t){return v(t,p)},r.createPickPerspective=function(t){return v(t,d)},r.createPickOrtho=function(t){return v(t,g)},r.createPickProject=function(t){return v(t,m)}},{&quot;gl-shader&quot;:335,glslify:329}],329:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],330:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-string-blank&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;typedarray-pool&quot;),s=t(&quot;gl-mat4/multiply&quot;),l=t(&quot;./lib/shaders&quot;),c=t(&quot;./lib/glyphs&quot;),u=t(&quot;./lib/get-simple-string&quot;),f=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function h(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];return t[0]=e[0]*r+e[4]*n+e[8]*i+e[12]*a,t[1]=e[1]*r+e[5]*n+e[9]*i+e[13]*a,t[2]=e[2]*r+e[6]*n+e[10]*i+e[14]*a,t[3]=e[3]*r+e[7]*n+e[11]*i+e[15]*a,t}function p(t,e,r,n){return h(n,n),h(n,n),h(n,n)}function d(t,e){this.index=t,this.dataCoordinate=this.position=e}function g(t){return!0===t||t&gt;1?1:t}function m(t,e,r,n,i,a,o,s,l,c,u,f){this.gl=t,this.pixelRatio=1,this.shader=e,this.orthoShader=r,this.projectShader=n,this.pointBuffer=i,this.colorBuffer=a,this.glyphBuffer=o,this.idBuffer=s,this.vao=l,this.vertexCount=0,this.lineVertexCount=0,this.opacity=1,this.hasAlpha=!1,this.lineWidth=0,this.projectScale=[2/3,2/3,2/3],this.projectOpacity=[1,1,1],this.projectHasAlpha=!1,this.pickId=0,this.pickPerspectiveShader=c,this.pickOrthoShader=u,this.pickProjectShader=f,this.points=[],this._selectResult=new d(0,[0,0,0]),this.useOrtho=!0,this.bounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.axesProject=[!0,!0,!0],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.highlightId=[1,1,1,1],this.highlightScale=2,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.dirty=!0}e.exports=function(t){var e=t.gl,r=l.createPerspective(e),n=l.createOrtho(e),o=l.createProject(e),s=l.createPickPerspective(e),c=l.createPickOrtho(e),u=l.createPickProject(e),f=i(e),h=i(e),p=i(e),d=i(e),g=a(e,[{buffer:f,size:3,type:e.FLOAT},{buffer:h,size:4,type:e.FLOAT},{buffer:p,size:2,type:e.FLOAT},{buffer:d,size:4,type:e.UNSIGNED_BYTE,normalized:!0}]),v=new m(e,r,n,o,f,h,p,d,g,s,c,u);return v.update(t),v};var v=m.prototype;v.pickSlots=1,v.setPickBase=function(t){this.pickId=t},v.isTransparent=function(){if(this.hasAlpha)return!0;for(var t=0;t&lt;3;++t)if(this.axesProject[t]&amp;&amp;this.projectHasAlpha)return!0;return!1},v.isOpaque=function(){if(!this.hasAlpha)return!0;for(var t=0;t&lt;3;++t)if(this.axesProject[t]&amp;&amp;!this.projectHasAlpha)return!0;return!1};var y=[0,0],x=[0,0,0],b=[0,0,0],_=[0,0,0,1],w=[0,0,0,1],T=f.slice(),k=[0,0,0],M=[[0,0,0],[0,0,0]];function A(t){return t[0]=t[1]=t[2]=0,t}function S(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=1,t}function E(t,e,r,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[r]=n,t}function C(t,e,r,n){var i,a=e.axesProject,o=e.gl,l=t.uniforms,c=r.model||f,u=r.view||f,h=r.projection||f,d=e.axesBounds,g=function(t){for(var e=M,r=0;r&lt;2;++r)for(var n=0;n&lt;3;++n)e[r][n]=Math.max(Math.min(t[r][n],1e8),-1e8);return e}(e.clipBounds);i=e.axes&amp;&amp;e.axes.lastCubeProps?e.axes.lastCubeProps.axis:[1,1,1],y[0]=2/o.drawingBufferWidth,y[1]=2/o.drawingBufferHeight,t.bind(),l.view=u,l.projection=h,l.screenSize=y,l.highlightId=e.highlightId,l.highlightScale=e.highlightScale,l.clipBounds=g,l.pickGroup=e.pickId/255,l.pixelRatio=n;for(var m=0;m&lt;3;++m)if(a[m]){l.scale=e.projectScale[m],l.opacity=e.projectOpacity[m];for(var v=T,C=0;C&lt;16;++C)v[C]=0;for(C=0;C&lt;4;++C)v[5*C]=1;v[5*m]=0,i[m]&lt;0?v[12+m]=d[0][m]:v[12+m]=d[1][m],s(v,c,v),l.model=v;var L=(m+1)%3,I=(m+2)%3,P=A(x),z=A(b);P[L]=1,z[I]=1;var O=p(0,0,0,S(_,P)),D=p(0,0,0,S(w,z));if(Math.abs(O[1])&gt;Math.abs(D[1])){var R=O;O=D,D=R,R=P,P=z,z=R;var F=L;L=I,I=F}O[0]&lt;0&amp;&amp;(P[L]=-1),D[1]&gt;0&amp;&amp;(z[I]=-1);var B=0,N=0;for(C=0;C&lt;4;++C)B+=Math.pow(c[4*L+C],2),N+=Math.pow(c[4*I+C],2);P[L]/=Math.sqrt(B),z[I]/=Math.sqrt(N),l.axes[0]=P,l.axes[1]=z,l.fragClipBounds[0]=E(k,g[0],m,-1e8),l.fragClipBounds[1]=E(k,g[1],m,1e8),e.vao.bind(),e.vao.draw(o.TRIANGLES,e.vertexCount),e.lineWidth&gt;0&amp;&amp;(o.lineWidth(e.lineWidth*n),e.vao.draw(o.LINES,e.lineVertexCount,e.vertexCount)),e.vao.unbind()}}var L=[[-1e8,-1e8,-1e8],[1e8,1e8,1e8]];function I(t,e,r,n,i,a,o){var s=r.gl;if((a===r.projectHasAlpha||o)&amp;&amp;C(e,r,n,i),a===r.hasAlpha||o){t.bind();var l=t.uniforms;l.model=n.model||f,l.view=n.view||f,l.projection=n.projection||f,y[0]=2/s.drawingBufferWidth,y[1]=2/s.drawingBufferHeight,l.screenSize=y,l.highlightId=r.highlightId,l.highlightScale=r.highlightScale,l.fragClipBounds=L,l.clipBounds=r.axes.bounds,l.opacity=r.opacity,l.pickGroup=r.pickId/255,l.pixelRatio=i,r.vao.bind(),r.vao.draw(s.TRIANGLES,r.vertexCount),r.lineWidth&gt;0&amp;&amp;(s.lineWidth(r.lineWidth*i),r.vao.draw(s.LINES,r.lineVertexCount,r.vertexCount)),r.vao.unbind()}}function P(t,e,r,i){var a;a=Array.isArray(t)?e&lt;t.length?t[e]:void 0:t,a=u(a);var o=!0;n(a)&amp;&amp;(a=&quot;\u25bc&quot;,o=!1);var s=c(a,r,i);return{mesh:s[0],lines:s[1],bounds:s[2],visible:o}}v.draw=function(t){I(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,this.pixelRatio,!1,!1)},v.drawTransparent=function(t){I(this.useOrtho?this.orthoShader:this.shader,this.projectShader,this,t,this.pixelRatio,!0,!1)},v.drawPick=function(t){I(this.useOrtho?this.pickOrthoShader:this.pickPerspectiveShader,this.pickProjectShader,this,t,1,!0,!0)},v.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=t.value[2]+(t.value[1]&lt;&lt;8)+(t.value[0]&lt;&lt;16);if(e&gt;=this.pointCount||e&lt;0)return null;var r=this.points[e],n=this._selectResult;n.index=e;for(var i=0;i&lt;3;++i)n.position[i]=n.dataCoordinate[i]=r[i];return n},v.highlight=function(t){if(t){var e=t.index,r=255&amp;e,n=e&gt;&gt;8&amp;255,i=e&gt;&gt;16&amp;255;this.highlightId=[r/255,n/255,i/255,0]}else this.highlightId=[1,1,1,1]},v.update=function(t){if(&quot;perspective&quot;in(t=t||{})&amp;&amp;(this.useOrtho=!t.perspective),&quot;orthographic&quot;in t&amp;&amp;(this.useOrtho=!!t.orthographic),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;project&quot;in t)if(Array.isArray(t.project))this.axesProject=t.project;else{var e=!!t.project;this.axesProject=[e,e,e]}if(&quot;projectScale&quot;in t)if(Array.isArray(t.projectScale))this.projectScale=t.projectScale.slice();else{var r=+t.projectScale;this.projectScale=[r,r,r]}if(this.projectHasAlpha=!1,&quot;projectOpacity&quot;in t){if(Array.isArray(t.projectOpacity))this.projectOpacity=t.projectOpacity.slice();else{r=+t.projectOpacity;this.projectOpacity=[r,r,r]}for(var n=0;n&lt;3;++n)this.projectOpacity[n]=g(this.projectOpacity[n]),this.projectOpacity[n]&lt;1&amp;&amp;(this.projectHasAlpha=!0)}this.hasAlpha=!1,&quot;opacity&quot;in t&amp;&amp;(this.opacity=g(t.opacity),this.opacity&lt;1&amp;&amp;(this.hasAlpha=!0)),this.dirty=!0;var i,a,s=t.position,l=t.font||&quot;normal&quot;,c=t.alignment||[0,0];if(2===c.length)i=c[0],a=c[1];else{i=[],a=[];for(n=0;n&lt;c.length;++n)i[n]=c[n][0],a[n]=c[n][1]}var u=[1/0,1/0,1/0],f=[-1/0,-1/0,-1/0],h=t.glyph,p=t.color,d=t.size,m=t.angle,v=t.lineColor,y=-1,x=0,b=0,_=0;if(s.length){_=s.length;t:for(n=0;n&lt;_;++n){for(var w=s[n],T=0;T&lt;3;++T)if(isNaN(w[T])||!isFinite(w[T]))continue t;var k=(N=P(h,n,l,this.pixelRatio)).mesh,M=N.lines,A=N.bounds;x+=3*k.cells.length,b+=2*M.edges.length}}var S=x+b,E=o.mallocFloat(3*S),C=o.mallocFloat(4*S),L=o.mallocFloat(2*S),I=o.mallocUint32(S);if(S&gt;0){var z=0,O=x,D=[0,0,0,1],R=[0,0,0,1],F=Array.isArray(p)&amp;&amp;Array.isArray(p[0]),B=Array.isArray(v)&amp;&amp;Array.isArray(v[0]);t:for(n=0;n&lt;_;++n){y+=1;for(w=s[n],T=0;T&lt;3;++T){if(isNaN(w[T])||!isFinite(w[T]))continue t;f[T]=Math.max(f[T],w[T]),u[T]=Math.min(u[T],w[T])}k=(N=P(h,n,l,this.pixelRatio)).mesh,M=N.lines,A=N.bounds;var N,j=N.visible;if(j)if(Array.isArray(p)){if(3===(U=F?n&lt;p.length?p[n]:[0,0,0,0]:p).length){for(T=0;T&lt;3;++T)D[T]=U[T];D[3]=1}else if(4===U.length){for(T=0;T&lt;4;++T)D[T]=U[T];!this.hasAlpha&amp;&amp;U[3]&lt;1&amp;&amp;(this.hasAlpha=!0)}}else D[0]=D[1]=D[2]=0,D[3]=1;else D=[1,1,1,0];if(j)if(Array.isArray(v)){var U;if(3===(U=B?n&lt;v.length?v[n]:[0,0,0,0]:v).length){for(T=0;T&lt;3;++T)R[T]=U[T];R[T]=1}else if(4===U.length){for(T=0;T&lt;4;++T)R[T]=U[T];!this.hasAlpha&amp;&amp;U[3]&lt;1&amp;&amp;(this.hasAlpha=!0)}}else R[0]=R[1]=R[2]=0,R[3]=1;else R=[1,1,1,0];var V=.5;j?Array.isArray(d)?V=n&lt;d.length?+d[n]:12:d?V=+d:this.useOrtho&amp;&amp;(V=12):V=0;var q=0;Array.isArray(m)?q=n&lt;m.length?+m[n]:0:m&amp;&amp;(q=+m);var H=Math.cos(q),G=Math.sin(q);for(w=s[n],T=0;T&lt;3;++T)f[T]=Math.max(f[T],w[T]),u[T]=Math.min(u[T],w[T]);var Y=i,W=a;Y=0;Array.isArray(i)?Y=n&lt;i.length?i[n]:0:i&amp;&amp;(Y=i);W=0;Array.isArray(a)?W=n&lt;a.length?a[n]:0:a&amp;&amp;(W=a);var X=[Y*=Y&gt;0?1-A[0][0]:Y&lt;0?1+A[1][0]:1,W*=W&gt;0?1-A[0][1]:W&lt;0?1+A[1][1]:1],Z=k.cells||[],J=k.positions||[];for(T=0;T&lt;Z.length;++T)for(var K=Z[T],Q=0;Q&lt;3;++Q){for(var $=0;$&lt;3;++$)E[3*z+$]=w[$];for($=0;$&lt;4;++$)C[4*z+$]=D[$];I[z]=y;var tt=J[K[Q]];L[2*z]=V*(H*tt[0]-G*tt[1]+X[0]),L[2*z+1]=V*(G*tt[0]+H*tt[1]+X[1]),z+=1}for(Z=M.edges,J=M.positions,T=0;T&lt;Z.length;++T)for(K=Z[T],Q=0;Q&lt;2;++Q){for($=0;$&lt;3;++$)E[3*O+$]=w[$];for($=0;$&lt;4;++$)C[4*O+$]=R[$];I[O]=y;tt=J[K[Q]];L[2*O]=V*(H*tt[0]-G*tt[1]+X[0]),L[2*O+1]=V*(G*tt[0]+H*tt[1]+X[1]),O+=1}}}this.bounds=[u,f],this.points=s,this.pointCount=s.length,this.vertexCount=x,this.lineVertexCount=b,this.pointBuffer.update(E),this.colorBuffer.update(C),this.glyphBuffer.update(L),this.idBuffer.update(I),o.free(E),o.free(C),o.free(L),o.free(I)},v.dispose=function(){this.shader.dispose(),this.orthoShader.dispose(),this.pickPerspectiveShader.dispose(),this.pickOrthoShader.dispose(),this.vao.dispose(),this.pointBuffer.dispose(),this.colorBuffer.dispose(),this.glyphBuffer.dispose(),this.idBuffer.dispose()}},{&quot;./lib/get-simple-string&quot;:326,&quot;./lib/glyphs&quot;:327,&quot;./lib/shaders&quot;:328,&quot;gl-buffer&quot;:259,&quot;gl-mat4/multiply&quot;:295,&quot;gl-vao&quot;:358,&quot;is-string-blank&quot;:470,&quot;typedarray-pool&quot;:595}],331:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;);r.boxVertex=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec2 vertex;\n\nuniform vec2 cornerA, cornerB;\n\nvoid main() {\n  gl_Position = vec4(mix(cornerA, cornerB, vertex), 0, 1);\n}\n&quot;]),r.boxFragment=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nuniform vec4 color;\n\nvoid main() {\n  gl_FragColor = color;\n}\n&quot;])},{glslify:332}],332:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],333:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-shader&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;./lib/shaders&quot;);function o(t,e,r){this.plot=t,this.boxBuffer=e,this.boxShader=r,this.enabled=!0,this.selectBox=[1/0,1/0,-1/0,-1/0],this.borderColor=[0,0,0,1],this.innerFill=!1,this.innerColor=[0,0,0,.25],this.outerFill=!0,this.outerColor=[0,0,0,.5],this.borderWidth=10}e.exports=function(t,e){var r=t.gl,s=i(r,[0,0,0,1,1,0,1,1]),l=n(r,a.boxVertex,a.boxFragment),c=new o(t,s,l);return c.update(e),t.addOverlay(c),c};var s=o.prototype;s.draw=function(){if(this.enabled){var t=this.plot,e=this.selectBox,r=this.borderWidth,n=(this.innerFill,this.innerColor),i=(this.outerFill,this.outerColor),a=this.borderColor,o=t.box,s=t.screenBox,l=t.dataBox,c=t.viewBox,u=t.pixelRatio,f=(e[0]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],h=(e[1]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1],p=(e[2]-l[0])*(c[2]-c[0])/(l[2]-l[0])+c[0],d=(e[3]-l[1])*(c[3]-c[1])/(l[3]-l[1])+c[1];if(f=Math.max(f,c[0]),h=Math.max(h,c[1]),p=Math.min(p,c[2]),d=Math.min(d,c[3]),!(p&lt;f||d&lt;h)){o.bind();var g=s[2]-s[0],m=s[3]-s[1];if(this.outerFill&amp;&amp;(o.drawBox(0,0,g,h,i),o.drawBox(0,h,f,d,i),o.drawBox(0,d,g,m,i),o.drawBox(p,h,g,d,i)),this.innerFill&amp;&amp;o.drawBox(f,h,p,d,n),r&gt;0){var v=r*u;o.drawBox(f-v,h-v,p+v,h+v,a),o.drawBox(f-v,d-v,p+v,d+v,a),o.drawBox(f-v,h-v,f+v,d+v,a),o.drawBox(p-v,h-v,p+v,d+v,a)}}}},s.update=function(t){t=t||{},this.innerFill=!!t.innerFill,this.outerFill=!!t.outerFill,this.innerColor=(t.innerColor||[0,0,0,.5]).slice(),this.outerColor=(t.outerColor||[0,0,0,.5]).slice(),this.borderColor=(t.borderColor||[0,0,0,1]).slice(),this.borderWidth=t.borderWidth||0,this.selectBox=(t.selectBox||this.selectBox).slice()},s.dispose=function(){this.boxBuffer.dispose(),this.boxShader.dispose(),this.plot.removeOverlay(this)}},{&quot;./lib/shaders&quot;:331,&quot;gl-buffer&quot;:259,&quot;gl-shader&quot;:335}],334:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=e[0],a=e[1],o=n(t,r,a,{}),s=i.mallocUint8(r*a*4);return new l(t,o,s)};var n=t(&quot;gl-fbo&quot;),i=t(&quot;typedarray-pool&quot;),a=t(&quot;ndarray&quot;),o=t(&quot;bit-twiddle&quot;).nextPow2;function s(t,e,r,n,i){this.coord=[t,e],this.id=r,this.value=n,this.distance=i}function l(t,e,r){this.gl=t,this.fbo=e,this.buffer=r,this._readTimeout=null;var n=this;this._readCallback=function(){n.gl&amp;&amp;(e.bind(),t.readPixels(0,0,e.shape[0],e.shape[1],t.RGBA,t.UNSIGNED_BYTE,n.buffer),n._readTimeout=null)}}var c=l.prototype;Object.defineProperty(c,&quot;shape&quot;,{get:function(){return this.gl?this.fbo.shape.slice():[0,0]},set:function(t){if(this.gl){this.fbo.shape=t;var e=this.fbo.shape[0],r=this.fbo.shape[1];if(r*e*4&gt;this.buffer.length){i.free(this.buffer);for(var n=this.buffer=i.mallocUint8(o(r*e*4)),a=0;a&lt;r*e*4;++a)n[a]=255}return t}}}),c.begin=function(){var t=this.gl;this.shape;t&amp;&amp;(this.fbo.bind(),t.clearColor(1,1,1,1),t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT))},c.end=function(){var t=this.gl;t&amp;&amp;(t.bindFramebuffer(t.FRAMEBUFFER,null),this._readTimeout||clearTimeout(this._readTimeout),this._readTimeout=setTimeout(this._readCallback,1))},c.query=function(t,e,r){if(!this.gl)return null;var n=this.fbo.shape.slice();t|=0,e|=0,&quot;number&quot;!=typeof r&amp;&amp;(r=1);var i=0|Math.min(Math.max(t-r,0),n[0]),o=0|Math.min(Math.max(t+r,0),n[0]),l=0|Math.min(Math.max(e-r,0),n[1]),c=0|Math.min(Math.max(e+r,0),n[1]);if(o&lt;=i||c&lt;=l)return null;var u=[o-i,c-l],f=a(this.buffer,[u[0],u[1],4],[4,4*n[0],1],4*(i+n[0]*l)),h=function(t,e,r){for(var n=1e8,i=-1,a=-1,o=t.shape[0],s=t.shape[1],l=0;l&lt;o;l++)for(var c=0;c&lt;s;c++){var u=t.get(l,c,0),f=t.get(l,c,1),h=t.get(l,c,2),p=t.get(l,c,3);if(u&lt;255||f&lt;255||h&lt;255||p&lt;255){var d=e-l,g=r-c,m=d*d+g*g;m&lt;n&amp;&amp;(n=m,i=l,a=c)}}return[i,a,n]}(f.hi(u[0],u[1],1),r,r),p=h[0],d=h[1];return p&lt;0||Math.pow(this.radius,2)&lt;h[2]?null:new s(p+i|0,d+l|0,f.get(p,d,0),[f.get(p,d,1),f.get(p,d,2),f.get(p,d,3)],Math.sqrt(h[2]))},c.dispose=function(){this.gl&amp;&amp;(this.fbo.dispose(),i.free(this.buffer),this.gl=null,this._readTimeout&amp;&amp;clearTimeout(this._readTimeout))}},{&quot;bit-twiddle&quot;:97,&quot;gl-fbo&quot;:269,ndarray:495,&quot;typedarray-pool&quot;:595}],335:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/create-uniforms&quot;),i=t(&quot;./lib/create-attributes&quot;),a=t(&quot;./lib/reflect&quot;),o=t(&quot;./lib/shader-cache&quot;),s=t(&quot;./lib/runtime-reflect&quot;),l=t(&quot;./lib/GLError&quot;);function c(t){this.gl=t,this.gl.lastAttribCount=0,this._vref=this._fref=this._relink=this.vertShader=this.fragShader=this.program=this.attributes=this.uniforms=this.types=null}var u=c.prototype;function f(t,e){return t.name&lt;e.name?-1:1}u.bind=function(){var t;this.program||this._relink();var e=this.gl.getProgramParameter(this.program,this.gl.ACTIVE_ATTRIBUTES),r=this.gl.lastAttribCount;if(e&gt;r)for(t=r;t&lt;e;t++)this.gl.enableVertexAttribArray(t);else if(r&gt;e)for(t=e;t&lt;r;t++)this.gl.disableVertexAttribArray(t);this.gl.lastAttribCount=e,this.gl.useProgram(this.program)},u.dispose=function(){for(var t=this.gl.lastAttribCount,e=0;e&lt;t;e++)this.gl.disableVertexAttribArray(e);this.gl.lastAttribCount=0,this._fref&amp;&amp;this._fref.dispose(),this._vref&amp;&amp;this._vref.dispose(),this.attributes=this.types=this.vertShader=this.fragShader=this.program=this._relink=this._fref=this._vref=null},u.update=function(t,e,r,c){if(!e||1===arguments.length){var u=t;t=u.vertex,e=u.fragment,r=u.uniforms,c=u.attributes}var h=this,p=h.gl,d=h._vref;h._vref=o.shader(p,p.VERTEX_SHADER,t),d&amp;&amp;d.dispose(),h.vertShader=h._vref.shader;var g=this._fref;if(h._fref=o.shader(p,p.FRAGMENT_SHADER,e),g&amp;&amp;g.dispose(),h.fragShader=h._fref.shader,!r||!c){var m=p.createProgram();if(p.attachShader(m,h.fragShader),p.attachShader(m,h.vertShader),p.linkProgram(m),!p.getProgramParameter(m,p.LINK_STATUS)){var v=p.getProgramInfoLog(m);throw new l(v,&quot;Error linking program:&quot;+v)}r=r||s.uniforms(p,m),c=c||s.attributes(p,m),p.deleteProgram(m)}(c=c.slice()).sort(f);var y,x=[],b=[],_=[];for(y=0;y&lt;c.length;++y){var w=c[y];if(w.type.indexOf(&quot;mat&quot;)&gt;=0){for(var T=0|w.type.charAt(w.type.length-1),k=new Array(T),M=0;M&lt;T;++M)k[M]=_.length,b.push(w.name+&quot;[&quot;+M+&quot;]&quot;),&quot;number&quot;==typeof w.location?_.push(w.location+M):Array.isArray(w.location)&amp;&amp;w.location.length===T&amp;&amp;&quot;number&quot;==typeof w.location[M]?_.push(0|w.location[M]):_.push(-1);x.push({name:w.name,type:w.type,locations:k})}else x.push({name:w.name,type:w.type,locations:[_.length]}),b.push(w.name),&quot;number&quot;==typeof w.location?_.push(0|w.location):_.push(-1)}var A=0;for(y=0;y&lt;_.length;++y)if(_[y]&lt;0){for(;_.indexOf(A)&gt;=0;)A+=1;_[y]=A}var S=new Array(r.length);function E(){h.program=o.program(p,h._vref,h._fref,b,_);for(var t=0;t&lt;r.length;++t)S[t]=p.getUniformLocation(h.program,r[t].name)}E(),h._relink=E,h.types={uniforms:a(r),attributes:a(c)},h.attributes=i(p,h,x,_),Object.defineProperty(h,&quot;uniforms&quot;,n(p,h,r,S))},e.exports=function(t,e,r,n,i){var a=new c(t);return a.update(e,r,n,i),a}},{&quot;./lib/GLError&quot;:336,&quot;./lib/create-attributes&quot;:337,&quot;./lib/create-uniforms&quot;:338,&quot;./lib/reflect&quot;:339,&quot;./lib/runtime-reflect&quot;:340,&quot;./lib/shader-cache&quot;:341}],336:[function(t,e,r){function n(t,e,r){this.shortMessage=e||&quot;&quot;,this.longMessage=r||&quot;&quot;,this.rawError=t||&quot;&quot;,this.message=&quot;gl-shader: &quot;+(e||t||&quot;&quot;)+(r?&quot;\n&quot;+r:&quot;&quot;),this.stack=(new Error).stack}n.prototype=new Error,n.prototype.name=&quot;GLError&quot;,n.prototype.constructor=n,e.exports=n},{}],337:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,i){for(var a={},l=0,c=r.length;l&lt;c;++l){var u=r[l],f=u.name,h=u.type,p=u.locations;switch(h){case&quot;bool&quot;:case&quot;int&quot;:case&quot;float&quot;:o(t,e,p[0],i,1,a,f);break;default:if(h.indexOf(&quot;vec&quot;)&gt;=0){if((d=h.charCodeAt(h.length-1)-48)&lt;2||d&gt;4)throw new n(&quot;&quot;,&quot;Invalid data type for attribute &quot;+f+&quot;: &quot;+h);o(t,e,p[0],i,d,a,f)}else{if(!(h.indexOf(&quot;mat&quot;)&gt;=0))throw new n(&quot;&quot;,&quot;Unknown data type for attribute &quot;+f+&quot;: &quot;+h);var d;if((d=h.charCodeAt(h.length-1)-48)&lt;2||d&gt;4)throw new n(&quot;&quot;,&quot;Invalid data type for attribute &quot;+f+&quot;: &quot;+h);s(t,e,p,i,d,a,f)}}}return a};var n=t(&quot;./GLError&quot;);function i(t,e,r,n,i,a){this._gl=t,this._wrapper=e,this._index=r,this._locations=n,this._dimension=i,this._constFunc=a}var a=i.prototype;function o(t,e,r,n,a,o,s){for(var l=[&quot;gl&quot;,&quot;v&quot;],c=[],u=0;u&lt;a;++u)l.push(&quot;x&quot;+u),c.push(&quot;x&quot;+u);l.push(&quot;if(x0.length===void 0){return gl.vertexAttrib&quot;+a+&quot;f(v,&quot;+c.join()+&quot;)}else{return gl.vertexAttrib&quot;+a+&quot;fv(v,x0)}&quot;);var f=Function.apply(null,l),h=new i(t,e,r,n,a,f);Object.defineProperty(o,s,{set:function(e){return t.disableVertexAttribArray(n[r]),f(t,n[r],e),e},get:function(){return h},enumerable:!0})}function s(t,e,r,n,i,a,s){for(var l=new Array(i),c=new Array(i),u=0;u&lt;i;++u)o(t,e,r[u],n,i,l,u),c[u]=l[u];Object.defineProperty(l,&quot;location&quot;,{set:function(t){if(Array.isArray(t))for(var e=0;e&lt;i;++e)c[e].location=t[e];else for(e=0;e&lt;i;++e)c[e].location=t+e;return t},get:function(){for(var t=new Array(i),e=0;e&lt;i;++e)t[e]=n[r[e]];return t},enumerable:!0}),l.pointer=function(e,a,o,s){e=e||t.FLOAT,a=!!a,o=o||i*i,s=s||0;for(var l=0;l&lt;i;++l){var c=n[r[l]];t.vertexAttribPointer(c,i,e,a,o,s+l*i),t.enableVertexAttribArray(c)}};var f=new Array(i),h=t[&quot;vertexAttrib&quot;+i+&quot;fv&quot;];Object.defineProperty(a,s,{set:function(e){for(var a=0;a&lt;i;++a){var o=n[r[a]];if(t.disableVertexAttribArray(o),Array.isArray(e[0]))h.call(t,o,e[a]);else{for(var s=0;s&lt;i;++s)f[s]=e[i*a+s];h.call(t,o,f)}}return e},get:function(){return l},enumerable:!0})}a.pointer=function(t,e,r,n){var i=this._gl,a=this._locations[this._index];i.vertexAttribPointer(a,this._dimension,t||i.FLOAT,!!e,r||0,n||0),i.enableVertexAttribArray(a)},a.set=function(t,e,r,n){return this._constFunc(this._locations[this._index],t,e,r,n)},Object.defineProperty(a,&quot;location&quot;,{get:function(){return this._locations[this._index]},set:function(t){return t!==this._locations[this._index]&amp;&amp;(this._locations[this._index]=0|t,this._wrapper.program=null),0|t}})},{&quot;./GLError&quot;:336}],338:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./reflect&quot;),i=t(&quot;./GLError&quot;);function a(t){return new Function(&quot;y&quot;,&quot;return function(){return y}&quot;)(t)}function o(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}e.exports=function(t,e,r,s){function l(t,e,r){switch(r){case&quot;bool&quot;:case&quot;int&quot;:case&quot;sampler2D&quot;:case&quot;samplerCube&quot;:return&quot;gl.uniform1i(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;case&quot;float&quot;:return&quot;gl.uniform1f(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;default:var n=r.indexOf(&quot;vec&quot;);if(!(0&lt;=n&amp;&amp;n&lt;=1&amp;&amp;r.length===4+n)){if(0===r.indexOf(&quot;mat&quot;)&amp;&amp;4===r.length){var a;if((a=r.charCodeAt(r.length-1)-48)&lt;2||a&gt;4)throw new i(&quot;&quot;,&quot;Invalid uniform dimension type for matrix &quot;+name+&quot;: &quot;+r);return&quot;gl.uniformMatrix&quot;+a+&quot;fv(locations[&quot;+e+&quot;],false,obj&quot;+t+&quot;)&quot;}throw new i(&quot;&quot;,&quot;Unknown uniform data type for &quot;+name+&quot;: &quot;+r)}if((a=r.charCodeAt(r.length-1)-48)&lt;2||a&gt;4)throw new i(&quot;&quot;,&quot;Invalid data type&quot;);switch(r.charAt(0)){case&quot;b&quot;:case&quot;i&quot;:return&quot;gl.uniform&quot;+a+&quot;iv(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;case&quot;v&quot;:return&quot;gl.uniform&quot;+a+&quot;fv(locations[&quot;+e+&quot;],obj&quot;+t+&quot;)&quot;;default:throw new i(&quot;&quot;,&quot;Unrecognized data type for vector &quot;+name+&quot;: &quot;+r)}}}function c(e){for(var n=[&quot;return function updateProperty(obj){&quot;],i=function t(e,r){if(&quot;object&quot;!=typeof r)return[[e,r]];var n=[];for(var i in r){var a=r[i],o=e;parseInt(i)+&quot;&quot;===i?o+=&quot;[&quot;+i+&quot;]&quot;:o+=&quot;.&quot;+i,&quot;object&quot;==typeof a?n.push.apply(n,t(o,a)):n.push([o,a])}return n}(&quot;&quot;,e),a=0;a&lt;i.length;++a){var o=i[a],c=o[0],u=o[1];s[u]&amp;&amp;n.push(l(c,u,r[u].type))}return n.push(&quot;return obj}&quot;),new Function(&quot;gl&quot;,&quot;locations&quot;,n.join(&quot;\n&quot;))(t,s)}function u(n,l,u){if(&quot;object&quot;==typeof u){var h=f(u);Object.defineProperty(n,l,{get:a(h),set:c(u),enumerable:!0,configurable:!1})}else s[u]?Object.defineProperty(n,l,{get:(p=u,new Function(&quot;gl&quot;,&quot;wrapper&quot;,&quot;locations&quot;,&quot;return function(){return gl.getUniform(wrapper.program,locations[&quot;+p+&quot;])}&quot;)(t,e,s)),set:c(u),enumerable:!0,configurable:!1}):n[l]=function(t){switch(t){case&quot;bool&quot;:return!1;case&quot;int&quot;:case&quot;sampler2D&quot;:case&quot;samplerCube&quot;:case&quot;float&quot;:return 0;default:var e=t.indexOf(&quot;vec&quot;);if(0&lt;=e&amp;&amp;e&lt;=1&amp;&amp;t.length===4+e){if((r=t.charCodeAt(t.length-1)-48)&lt;2||r&gt;4)throw new i(&quot;&quot;,&quot;Invalid data type&quot;);return&quot;b&quot;===t.charAt(0)?o(r,!1):o(r,0)}if(0===t.indexOf(&quot;mat&quot;)&amp;&amp;4===t.length){var r;if((r=t.charCodeAt(t.length-1)-48)&lt;2||r&gt;4)throw new i(&quot;&quot;,&quot;Invalid uniform dimension type for matrix &quot;+name+&quot;: &quot;+t);return o(r*r,0)}throw new i(&quot;&quot;,&quot;Unknown uniform data type for &quot;+name+&quot;: &quot;+t)}}(r[u].type);var p}function f(t){var e;if(Array.isArray(t)){e=new Array(t.length);for(var r=0;r&lt;t.length;++r)u(e,r,t[r])}else for(var n in e={},t)u(e,n,t[n]);return e}var h=n(r,!0);return{get:a(f(h)),set:c(h),enumerable:!0,configurable:!0}}},{&quot;./GLError&quot;:336,&quot;./reflect&quot;:339}],339:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r={},n=0;n&lt;t.length;++n)for(var i=t[n].name.split(&quot;.&quot;),a=r,o=0;o&lt;i.length;++o){var s=i[o].split(&quot;[&quot;);if(s.length&gt;1){s[0]in a||(a[s[0]]=[]),a=a[s[0]];for(var l=1;l&lt;s.length;++l){var c=parseInt(s[l]);l&lt;s.length-1||o&lt;i.length-1?(c in a||(l&lt;s.length-1?a[c]=[]:a[c]={}),a=a[c]):a[c]=e?n:t[n].type}}else o&lt;i.length-1?(s[0]in a||(a[s[0]]={}),a=a[s[0]]):a[s[0]]=e?n:t[n].type}return r}},{}],340:[function(t,e,r){&quot;use strict&quot;;r.uniforms=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),n=[],i=0;i&lt;r;++i){var o=t.getActiveUniform(e,i);if(o){var s=a(t,o.type);if(o.size&gt;1)for(var l=0;l&lt;o.size;++l)n.push({name:o.name.replace(&quot;[0]&quot;,&quot;[&quot;+l+&quot;]&quot;),type:s});else n.push({name:o.name,type:s})}}return n},r.attributes=function(t,e){for(var r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),n=[],i=0;i&lt;r;++i){var o=t.getActiveAttrib(e,i);o&amp;&amp;n.push({name:o.name,type:a(t,o.type)})}return n};var n={FLOAT:&quot;float&quot;,FLOAT_VEC2:&quot;vec2&quot;,FLOAT_VEC3:&quot;vec3&quot;,FLOAT_VEC4:&quot;vec4&quot;,INT:&quot;int&quot;,INT_VEC2:&quot;ivec2&quot;,INT_VEC3:&quot;ivec3&quot;,INT_VEC4:&quot;ivec4&quot;,BOOL:&quot;bool&quot;,BOOL_VEC2:&quot;bvec2&quot;,BOOL_VEC3:&quot;bvec3&quot;,BOOL_VEC4:&quot;bvec4&quot;,FLOAT_MAT2:&quot;mat2&quot;,FLOAT_MAT3:&quot;mat3&quot;,FLOAT_MAT4:&quot;mat4&quot;,SAMPLER_2D:&quot;sampler2D&quot;,SAMPLER_CUBE:&quot;samplerCube&quot;},i=null;function a(t,e){if(!i){var r=Object.keys(n);i={};for(var a=0;a&lt;r.length;++a){var o=r[a];i[t[o]]=n[o]}}return i[e]}},{}],341:[function(t,e,r){&quot;use strict&quot;;r.shader=function(t,e,r){return u(t).getShaderReference(e,r)},r.program=function(t,e,r,n,i){return u(t).getProgram(e,r,n,i)};var n=t(&quot;./GLError&quot;),i=t(&quot;gl-format-compiler-error&quot;),a=new(&quot;undefined&quot;==typeof WeakMap?t(&quot;weakmap-shim&quot;):WeakMap),o=0;function s(t,e,r,n,i,a,o){this.id=t,this.src=e,this.type=r,this.shader=n,this.count=a,this.programs=[],this.cache=o}function l(t){this.gl=t,this.shaders=[{},{}],this.programs={}}s.prototype.dispose=function(){if(0==--this.count){for(var t=this.cache,e=t.gl,r=this.programs,n=0,i=r.length;n&lt;i;++n){var a=t.programs[r[n]];a&amp;&amp;(delete t.programs[n],e.deleteProgram(a))}e.deleteShader(this.shader),delete t.shaders[this.type===e.FRAGMENT_SHADER|0][this.src]}};var c=l.prototype;function u(t){var e=a.get(t);return e||(e=new l(t),a.set(t,e)),e}c.getShaderReference=function(t,e){var r=this.gl,a=this.shaders[t===r.FRAGMENT_SHADER|0],l=a[e];if(l&amp;&amp;r.isShader(l.shader))l.count+=1;else{var c=function(t,e,r){var a=t.createShader(e);if(t.shaderSource(a,r),t.compileShader(a),!t.getShaderParameter(a,t.COMPILE_STATUS)){var o=t.getShaderInfoLog(a);try{var s=i(o,r,e)}catch(t){throw console.warn(&quot;Failed to format compiler error: &quot;+t),new n(o,&quot;Error compiling shader:\n&quot;+o)}throw new n(o,s.short,s.long)}return a}(r,t,e);l=a[e]=new s(o++,e,t,c,[],1,this)}return l},c.getProgram=function(t,e,r,i){var a=[t.id,e.id,r.join(&quot;:&quot;),i.join(&quot;:&quot;)].join(&quot;@&quot;),o=this.programs[a];return o&amp;&amp;this.gl.isProgram(o)||(this.programs[a]=o=function(t,e,r,i,a){var o=t.createProgram();t.attachShader(o,e),t.attachShader(o,r);for(var s=0;s&lt;i.length;++s)t.bindAttribLocation(o,a[s],i[s]);if(t.linkProgram(o),!t.getProgramParameter(o,t.LINK_STATUS)){var l=t.getProgramInfoLog(o);throw new n(l,&quot;Error linking program: &quot;+l)}return o}(this.gl,t.shader,e.shader,r,i),t.programs.push(a),e.programs.push(a)),o}},{&quot;./GLError&quot;:336,&quot;gl-format-compiler-error&quot;:270,&quot;weakmap-shim&quot;:605}],342:[function(t,e,r){&quot;use strict&quot;;function n(t){this.plot=t,this.enable=[!0,!0,!1,!1],this.width=[1,1,1,1],this.color=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.center=[1/0,1/0]}e.exports=function(t,e){var r=new n(t);return r.update(e),t.addOverlay(r),r};var i=n.prototype;i.update=function(t){t=t||{},this.enable=(t.enable||[!0,!0,!1,!1]).slice(),this.width=(t.width||[1,1,1,1]).slice(),this.color=(t.color||[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]]).map((function(t){return t.slice()})),this.center=(t.center||[1/0,1/0]).slice(),this.plot.setOverlayDirty()},i.draw=function(){var t=this.enable,e=this.width,r=this.color,n=this.center,i=this.plot,a=i.line,o=i.dataBox,s=i.viewBox;if(a.bind(),o[0]&lt;=n[0]&amp;&amp;n[0]&lt;=o[2]&amp;&amp;o[1]&lt;=n[1]&amp;&amp;n[1]&lt;=o[3]){var l=s[0]+(n[0]-o[0])/(o[2]-o[0])*(s[2]-s[0]),c=s[1]+(n[1]-o[1])/(o[3]-o[1])*(s[3]-s[1]);t[0]&amp;&amp;a.drawLine(l,c,s[0],c,e[0],r[0]),t[1]&amp;&amp;a.drawLine(l,c,l,s[1],e[1],r[1]),t[2]&amp;&amp;a.drawLine(l,c,s[2],c,e[2],r[2]),t[3]&amp;&amp;a.drawLine(l,c,l,s[3],e[3],r[3])}},i.dispose=function(){this.plot.removeOverlay(this)}},{}],343:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],344:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=t(&quot;gl-shader&quot;),a=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nattribute vec3 position, color;\nattribute float weight;\n\nuniform mat4 model, view, projection;\nuniform vec3 coordinates[3];\nuniform vec4 colors[3];\nuniform vec2 screenShape;\nuniform float lineWidth;\n\nvarying vec4 fragColor;\n\nvoid main() {\n  vec3 vertexPosition = mix(coordinates[0],\n    mix(coordinates[2], coordinates[1], 0.5 * (position + 1.0)), abs(position));\n\n  vec4 clipPos = projection * view * model * vec4(vertexPosition, 1.0);\n  vec2 clipOffset = (projection * view * model * vec4(color, 0.0)).xy;\n  vec2 delta = weight * clipOffset * screenShape;\n  vec2 lineOffset = normalize(vec2(delta.y, -delta.x)) / screenShape;\n\n  gl_Position   = vec4(clipPos.xy + clipPos.w * 0.5 * lineWidth * lineOffset, clipPos.z, clipPos.w);\n  fragColor     = color.x * colors[0] + color.y * colors[1] + color.z * colors[2];\n}\n&quot;]),o=n([&quot;precision mediump float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n  gl_FragColor = fragColor;\n}&quot;]);e.exports=function(t){return i(t,a,o,null,[{name:&quot;position&quot;,type:&quot;vec3&quot;},{name:&quot;color&quot;,type:&quot;vec3&quot;},{name:&quot;weight&quot;,type:&quot;float&quot;}])}},{&quot;gl-shader&quot;:335,glslify:343}],345:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-buffer&quot;),i=t(&quot;gl-vao&quot;),a=t(&quot;./shaders/index&quot;);e.exports=function(t,e){var r=[];function o(t,e,n,i,a,o){var s=[t,e,n,0,0,0,1];s[i+3]=1,s[i]=a,r.push.apply(r,s),s[6]=-1,r.push.apply(r,s),s[i]=o,r.push.apply(r,s),r.push.apply(r,s),s[6]=1,r.push.apply(r,s),s[i]=a,r.push.apply(r,s)}o(0,0,0,0,0,1),o(0,0,0,1,0,1),o(0,0,0,2,0,1),o(1,0,0,1,-1,1),o(1,0,0,2,-1,1),o(0,1,0,0,-1,1),o(0,1,0,2,-1,1),o(0,0,1,0,-1,1),o(0,0,1,1,-1,1);var l=n(t,r),c=i(t,[{type:t.FLOAT,buffer:l,size:3,offset:0,stride:28},{type:t.FLOAT,buffer:l,size:3,offset:12,stride:28},{type:t.FLOAT,buffer:l,size:1,offset:24,stride:28}]),u=a(t);u.attributes.position.location=0,u.attributes.color.location=1,u.attributes.weight.location=2;var f=new s(t,l,c,u);return f.update(e),f};var o=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];function s(t,e,r,n){this.gl=t,this.buffer=e,this.vao=r,this.shader=n,this.pixelRatio=1,this.bounds=[[-1e3,-1e3,-1e3],[1e3,1e3,1e3]],this.position=[0,0,0],this.lineWidth=[2,2,2],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.enabled=[!0,!0,!0],this.drawSides=[!0,!0,!0],this.axes=null}var l=s.prototype,c=[0,0,0],u=[0,0,0],f=[0,0];l.isTransparent=function(){return!1},l.drawTransparent=function(t){},l.draw=function(t){var e=this.gl,r=this.vao,n=this.shader;r.bind(),n.bind();var i,a=t.model||o,s=t.view||o,l=t.projection||o;this.axes&amp;&amp;(i=this.axes.lastCubeProps.axis);for(var h=c,p=u,d=0;d&lt;3;++d)i&amp;&amp;i[d]&lt;0?(h[d]=this.bounds[0][d],p[d]=this.bounds[1][d]):(h[d]=this.bounds[1][d],p[d]=this.bounds[0][d]);f[0]=e.drawingBufferWidth,f[1]=e.drawingBufferHeight,n.uniforms.model=a,n.uniforms.view=s,n.uniforms.projection=l,n.uniforms.coordinates=[this.position,h,p],n.uniforms.colors=this.colors,n.uniforms.screenShape=f;for(d=0;d&lt;3;++d)n.uniforms.lineWidth=this.lineWidth[d]*this.pixelRatio,this.enabled[d]&amp;&amp;(r.draw(e.TRIANGLES,6,6*d),this.drawSides[d]&amp;&amp;r.draw(e.TRIANGLES,12,18+12*d));r.unbind()},l.update=function(t){t&amp;&amp;(&quot;bounds&quot;in t&amp;&amp;(this.bounds=t.bounds),&quot;position&quot;in t&amp;&amp;(this.position=t.position),&quot;lineWidth&quot;in t&amp;&amp;(this.lineWidth=t.lineWidth),&quot;colors&quot;in t&amp;&amp;(this.colors=t.colors),&quot;enabled&quot;in t&amp;&amp;(this.enabled=t.enabled),&quot;drawSides&quot;in t&amp;&amp;(this.drawSides=t.drawSides))},l.dispose=function(){this.vao.dispose(),this.buffer.dispose(),this.shader.dispose()}},{&quot;./shaders/index&quot;:344,&quot;gl-buffer&quot;:259,&quot;gl-vao&quot;:358}],346:[function(t,e,r){var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n  float segmentCount = 8.0;\n\n  float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d);\n  vec3 y = v * sin(angle) * length(d);\n  vec3 v3 = x + y;\n\n  normal = normalize(v3);\n\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 color, position;\nattribute vec2 uv;\n\nuniform float vectorScale, tubeScale;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 eyePosition, lightPosition;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  // Scale the vector magnitude to stay constant with\n  // model &amp; view changes.\n  vec3 normal;\n  vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n  vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * tubePosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  f_lightDirection = lightPosition - cameraCoordinate.xyz;\n  f_eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  f_normal = normalize((vec4(normal, 0.0) * inverseModel).xyz);\n\n  // vec4 m_position  = model * vec4(tubePosition, 1.0);\n  vec4 t_position  = view * tubePosition;\n  gl_Position      = projection * t_position;\n\n  f_color          = color;\n  f_data           = tubePosition.xyz;\n  f_position       = position.xyz;\n  f_uv             = uv;\n}\n&quot;]),a=n([&quot;#extension GL_OES_standard_derivatives : enable\n\nprecision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat cookTorranceSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness,\n  float fresnel) {\n\n  float VdotN = max(dot(viewDirection, surfaceNormal), 0.0);\n  float LdotN = max(dot(lightDirection, surfaceNormal), 0.0);\n\n  //Half angle vector\n  vec3 H = normalize(lightDirection + viewDirection);\n\n  //Geometric term\n  float NdotH = max(dot(surfaceNormal, H), 0.0);\n  float VdotH = max(dot(viewDirection, H), 0.000001);\n  float LdotH = max(dot(lightDirection, H), 0.000001);\n  float G1 = (2.0 * NdotH * VdotN) / VdotH;\n  float G2 = (2.0 * NdotH * LdotN) / LdotH;\n  float G = min(1.0, min(G1, G2));\n  \n  //Distribution term\n  float D = beckmannDistribution(NdotH, roughness);\n\n  //Fresnel term\n  float F = pow(1.0 - VdotN, fresnel);\n\n  //Multiply terms and done\n  return  G * F * D / max(3.14159265 * VdotN, 0.000001);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform sampler2D texture;\n\nvarying vec3 f_normal, f_lightDirection, f_eyeDirection, f_data, f_position;\nvarying vec4 f_color;\nvarying vec2 f_uv;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n  vec3 N = normalize(f_normal);\n  vec3 L = normalize(f_lightDirection);\n  vec3 V = normalize(f_eyeDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = min(1.0, max(0.0, cookTorranceSpecular(L, V, N, roughness, fresnel)));\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  vec4 surfaceColor = f_color * texture2D(texture, f_uv);\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = litColor * opacity;\n}\n&quot;]),o=n([&quot;precision highp float;\n\nprecision highp float;\n#define GLSLIFY 1\n\nvec3 getOrthogonalVector(vec3 v) {\n  // Return up-vector for only-z vector.\n  // Return ax + by + cz = 0, a point that lies on the plane that has v as a normal and that isn't (0,0,0).\n  // From the above if-statement we have ||a|| &gt; 0  U  ||b|| &gt; 0.\n  // Assign z = 0, x = -b, y = a:\n  // a*-b + b*a + c*0 = -ba + ba + 0 = 0\n  if (v.x*v.x &gt; v.z*v.z || v.y*v.y &gt; v.z*v.z) {\n    return normalize(vec3(-v.y, v.x, 0.0));\n  } else {\n    return normalize(vec3(0.0, v.z, -v.y));\n  }\n}\n\n// Calculate the tube vertex and normal at the given index.\n//\n// The returned vertex is for a tube ring with its center at origin, radius of length(d), pointing in the direction of d.\n//\n// Each tube segment is made up of a ring of vertices.\n// These vertices are used to make up the triangles of the tube by connecting them together in the vertex array.\n// The indexes of tube segments run from 0 to 8.\n//\nvec3 getTubePosition(vec3 d, float index, out vec3 normal) {\n  float segmentCount = 8.0;\n\n  float angle = 2.0 * 3.14159 * (index / segmentCount);\n\n  vec3 u = getOrthogonalVector(d);\n  vec3 v = normalize(cross(u, d));\n\n  vec3 x = u * cos(angle) * length(d);\n  vec3 y = v * sin(angle) * length(d);\n  vec3 v3 = x + y;\n\n  normal = normalize(v3);\n\n  return v3;\n}\n\nattribute vec4 vector;\nattribute vec4 position;\nattribute vec4 id;\n\nuniform mat4 model, view, projection;\nuniform float tubeScale;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  vec3 normal;\n  vec3 XYZ = getTubePosition(mat3(model) * (tubeScale * vector.w * normalize(vector.xyz)), position.w, normal);\n  vec4 tubePosition = model * vec4(position.xyz, 1.0) + vec4(XYZ, 0.0);\n\n  gl_Position = projection * view * tubePosition;\n  f_id        = id;\n  f_position  = position.xyz;\n}\n&quot;]),s=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3  clipBounds[2];\nuniform float pickId;\n\nvarying vec3 f_position;\nvarying vec4 f_id;\n\nvoid main() {\n  if (outOfRange(clipBounds[0], clipBounds[1], f_position)) discard;\n\n  gl_FragColor = vec4(pickId, f_id.xyz);\n}&quot;]);r.meshShader={vertex:i,fragment:a,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;color&quot;,type:&quot;vec4&quot;},{name:&quot;uv&quot;,type:&quot;vec2&quot;},{name:&quot;vector&quot;,type:&quot;vec4&quot;}]},r.pickShader={vertex:o,fragment:s,attributes:[{name:&quot;position&quot;,type:&quot;vec4&quot;},{name:&quot;id&quot;,type:&quot;vec4&quot;},{name:&quot;vector&quot;,type:&quot;vec4&quot;}]}},{glslify:347}],347:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],348:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-vec3&quot;),i=t(&quot;gl-vec4&quot;),a=[&quot;xyz&quot;,&quot;xzy&quot;,&quot;yxz&quot;,&quot;yzx&quot;,&quot;zxy&quot;,&quot;zyx&quot;],o=function(t,e,r,a){for(var o=0,s=0;s&lt;t.length;s++)for(var l=t[s].velocities,c=0;c&lt;l.length;c++)o=Math.max(o,n.length(l[c]));var u=t.map((function(t){return function(t,e,r,a){for(var o=t.points,s=t.velocities,l=t.divergences,c=[],u=[],f=[],h=[],p=[],d=[],g=0,m=0,v=i.create(),y=i.create(),x=0;x&lt;o.length;x++){var b=o[x],_=s[x],w=l[x];0===e&amp;&amp;(w=.05*r),m=n.length(_)/a,v=i.create(),n.copy(v,_),v[3]=w;for(var T=0;T&lt;8;T++)p[T]=[b[0],b[1],b[2],T];if(h.length&gt;0)for(T=0;T&lt;8;T++){var k=(T+1)%8;c.push(h[T],p[T],p[k],p[k],h[k],h[T]),f.push(y,v,v,v,y,y),d.push(g,m,m,m,g,g);var M=c.length;u.push([M-6,M-5,M-4],[M-3,M-2,M-1])}var A=h;h=p,p=A;var S=y;y=v,v=S;var E=g;g=m,m=E}return{positions:c,cells:u,vectors:f,vertexIntensity:d}}(t,r,a,o)})),f=[],h=[],p=[],d=[];for(s=0;s&lt;u.length;s++){var g=u[s],m=f.length;f=f.concat(g.positions),p=p.concat(g.vectors),d=d.concat(g.vertexIntensity);for(c=0;c&lt;g.cells.length;c++){var v=g.cells[c],y=[];h.push(y);for(var x=0;x&lt;v.length;x++)y.push(v[x]+m)}}return{positions:f,cells:h,vectors:p,vertexIntensity:d,colormap:e}},s=function(t,e){var r,n=t.length;for(r=0;r&lt;n;r++){var i=t[r];if(i===e)return r;if(i&gt;e)return r-1}return r},l=function(t,e,r){return t&lt;e?e:t&gt;r?r:t},c=function(t){var e=1/0;t.sort((function(t,e){return t-e}));for(var r=t.length,n=1;n&lt;r;n++){var i=Math.abs(t[n]-t[n-1]);i&lt;e&amp;&amp;(e=i)}return e};e.exports=function(t,e){var r=t.startingPositions,i=t.maxLength||1e3,u=t.tubeSize||1,f=t.absoluteTubeSize,h=t.gridFill||&quot;+x+y+z&quot;,p={};-1!==h.indexOf(&quot;-x&quot;)&amp;&amp;(p.reversedX=!0),-1!==h.indexOf(&quot;-y&quot;)&amp;&amp;(p.reversedY=!0),-1!==h.indexOf(&quot;-z&quot;)&amp;&amp;(p.reversedZ=!0),p.filled=a.indexOf(h.replace(/-/g,&quot;&quot;).replace(/\+/g,&quot;&quot;));var d=t.getVelocity||function(e){return function(t,e,r){var i=e.vectors,a=e.meshgrid,o=t[0],c=t[1],u=t[2],f=a[0].length,h=a[1].length,p=a[2].length,d=s(a[0],o),g=s(a[1],c),m=s(a[2],u),v=d+1,y=g+1,x=m+1;if(d=l(d,0,f-1),v=l(v,0,f-1),g=l(g,0,h-1),y=l(y,0,h-1),m=l(m,0,p-1),x=l(x,0,p-1),d&lt;0||g&lt;0||m&lt;0||v&gt;f-1||y&gt;h-1||x&gt;p-1)return n.create();var b,_,w,T,k,M,A=a[0][d],S=a[0][v],E=a[1][g],C=a[1][y],L=a[2][m],I=(o-A)/(S-A),P=(c-E)/(C-E),z=(u-L)/(a[2][x]-L);switch(isFinite(I)||(I=.5),isFinite(P)||(P=.5),isFinite(z)||(z=.5),r.reversedX&amp;&amp;(d=f-1-d,v=f-1-v),r.reversedY&amp;&amp;(g=h-1-g,y=h-1-y),r.reversedZ&amp;&amp;(m=p-1-m,x=p-1-x),r.filled){case 5:k=m,M=x,w=g*p,T=y*p,b=d*p*h,_=v*p*h;break;case 4:k=m,M=x,b=d*p,_=v*p,w=g*p*f,T=y*p*f;break;case 3:w=g,T=y,k=m*h,M=x*h,b=d*h*p,_=v*h*p;break;case 2:w=g,T=y,b=d*h,_=v*h,k=m*h*f,M=x*h*f;break;case 1:b=d,_=v,k=m*f,M=x*f,w=g*f*p,T=y*f*p;break;default:b=d,_=v,w=g*f,T=y*f,k=m*f*h,M=x*f*h}var O=i[b+w+k],D=i[b+w+M],R=i[b+T+k],F=i[b+T+M],B=i[_+w+k],N=i[_+w+M],j=i[_+T+k],U=i[_+T+M],V=n.create(),q=n.create(),H=n.create(),G=n.create();n.lerp(V,O,B,I),n.lerp(q,D,N,I),n.lerp(H,R,j,I),n.lerp(G,F,U,I);var Y=n.create(),W=n.create();n.lerp(Y,V,H,P),n.lerp(W,q,G,P);var X=n.create();return n.lerp(X,Y,W,z),X}(e,t,p)},g=t.getDivergence||function(t,e){var r=n.create(),i=1e-4;n.add(r,t,[i,0,0]);var a=d(r);n.subtract(a,a,e),n.scale(a,a,1/i),n.add(r,t,[0,i,0]);var o=d(r);n.subtract(o,o,e),n.scale(o,o,1/i),n.add(r,t,[0,0,i]);var s=d(r);return n.subtract(s,s,e),n.scale(s,s,1/i),n.add(r,a,o),n.add(r,r,s),r},m=[],v=e[0][0],y=e[0][1],x=e[0][2],b=e[1][0],_=e[1][1],w=e[1][2],T=function(t){var e=t[0],r=t[1],n=t[2];return!(e&lt;v||e&gt;b||r&lt;y||r&gt;_||n&lt;x||n&gt;w)},k=10*n.distance(e[0],e[1])/i,M=k*k,A=1,S=0,E=r.length;E&gt;1&amp;&amp;(A=function(t){for(var e=[],r=[],n=[],i={},a={},o={},s=t.length,l=0;l&lt;s;l++){var u=t[l],f=u[0],h=u[1],p=u[2];i[f]||(e.push(f),i[f]=!0),a[h]||(r.push(h),a[h]=!0),o[p]||(n.push(p),o[p]=!0)}var d=c(e),g=c(r),m=c(n),v=Math.min(d,g,m);return isFinite(v)?v:1}(r));for(var C=0;C&lt;E;C++){var L=n.create();n.copy(L,r[C]);var I=[L],P=[],z=d(L),O=L;P.push(z);var D=[],R=g(L,z),F=n.length(R);isFinite(F)&amp;&amp;F&gt;S&amp;&amp;(S=F),D.push(F),m.push({points:I,velocities:P,divergences:D});for(var B=0;B&lt;100*i&amp;&amp;I.length&lt;i&amp;&amp;T(L);){B++;var N=n.clone(z),j=n.squaredLength(N);if(0===j)break;if(j&gt;M&amp;&amp;n.scale(N,N,k/Math.sqrt(j)),n.add(N,N,L),z=d(N),n.squaredDistance(O,N)-M&gt;-1e-4*M){I.push(N),O=N,P.push(z);R=g(N,z),F=n.length(R);isFinite(F)&amp;&amp;F&gt;S&amp;&amp;(S=F),D.push(F)}L=N}}var U=o(m,t.colormap,S,A);return f?U.tubeScale=f:(0===S&amp;&amp;(S=1),U.tubeScale=.5*u*A/S),U};var u=t(&quot;./lib/shaders&quot;),f=t(&quot;gl-cone3d&quot;).createMesh;e.exports.createTubeMesh=function(t,e){return f(t,e,{shaders:u,traceType:&quot;streamtube&quot;})}},{&quot;./lib/shaders&quot;:346,&quot;gl-cone3d&quot;:260,&quot;gl-vec3&quot;:377,&quot;gl-vec4&quot;:413}],349:[function(t,e,r){var n=t(&quot;gl-shader&quot;),i=t(&quot;glslify&quot;),a=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute vec3 f;\nattribute vec3 normal;\n\nuniform vec3 objectOffset;\nuniform mat4 model, view, projection, inverseModel;\nuniform vec3 lightPosition, eyePosition;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  vec3 localCoordinate = vec3(uv.zw, f.x);\n  worldCoordinate = objectOffset + localCoordinate;\n  vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n  vec4 clipPosition = projection * view * worldPosition;\n  gl_Position = clipPosition;\n  kill = f.y;\n  value = f.z;\n  planeCoordinate = uv.xy;\n\n  vColor = texture2D(colormap, vec2(value, value));\n\n  //Lighting geometry parameters\n  vec4 cameraCoordinate = view * worldPosition;\n  cameraCoordinate.xyz /= cameraCoordinate.w;\n  lightDirection = lightPosition - cameraCoordinate.xyz;\n  eyeDirection   = eyePosition - cameraCoordinate.xyz;\n  surfaceNormal  = normalize((vec4(normal,0) * inverseModel).xyz);\n}\n&quot;]),o=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nfloat beckmannDistribution(float x, float roughness) {\n  float NdotH = max(x, 0.0001);\n  float cos2Alpha = NdotH * NdotH;\n  float tan2Alpha = (cos2Alpha - 1.0) / cos2Alpha;\n  float roughness2 = roughness * roughness;\n  float denom = 3.141592653589793 * roughness2 * cos2Alpha * cos2Alpha;\n  return exp(tan2Alpha / roughness2) / denom;\n}\n\nfloat beckmannSpecular(\n  vec3 lightDirection,\n  vec3 viewDirection,\n  vec3 surfaceNormal,\n  float roughness) {\n  return beckmannDistribution(dot(surfaceNormal, normalize(lightDirection + viewDirection)), roughness);\n}\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec3 lowerBound, upperBound;\nuniform float contourTint;\nuniform vec4 contourColor;\nuniform sampler2D colormap;\nuniform vec3 clipBounds[2];\nuniform float roughness, fresnel, kambient, kdiffuse, kspecular, opacity;\nuniform float vertexColor;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  if (\n    kill &gt; 0.0 ||\n    vColor.a == 0.0 ||\n    outOfRange(clipBounds[0], clipBounds[1], worldCoordinate)\n  ) discard;\n\n  vec3 N = normalize(surfaceNormal);\n  vec3 V = normalize(eyeDirection);\n  vec3 L = normalize(lightDirection);\n\n  if(gl_FrontFacing) {\n    N = -N;\n  }\n\n  float specular = max(beckmannSpecular(L, V, N, roughness), 0.);\n  float diffuse  = min(kambient + kdiffuse * max(dot(N, L), 0.0), 1.0);\n\n  //decide how to interpolate color \u2014 in vertex or in fragment\n  vec4 surfaceColor =\n    step(vertexColor, .5) * texture2D(colormap, vec2(value, value)) +\n    step(.5, vertexColor) * vColor;\n\n  vec4 litColor = surfaceColor.a * vec4(diffuse * surfaceColor.rgb + kspecular * vec3(1,1,1) * specular,  1.0);\n\n  gl_FragColor = mix(litColor, contourColor, contourTint) * opacity;\n}\n&quot;]),s=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec4 uv;\nattribute float f;\n\nuniform vec3 objectOffset;\nuniform mat3 permutation;\nuniform mat4 model, view, projection;\nuniform float height, zOffset;\nuniform sampler2D colormap;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 lightDirection, eyeDirection, surfaceNormal;\nvarying vec4 vColor;\n\nvoid main() {\n  vec3 dataCoordinate = permutation * vec3(uv.xy, height);\n  worldCoordinate = objectOffset + dataCoordinate;\n  vec4 worldPosition = model * vec4(worldCoordinate, 1.0);\n\n  vec4 clipPosition = projection * view * worldPosition;\n  clipPosition.z += zOffset;\n\n  gl_Position = clipPosition;\n  value = f + objectOffset.z;\n  kill = -1.0;\n  planeCoordinate = uv.zw;\n\n  vColor = texture2D(colormap, vec2(value, value));\n\n  //Don't do lighting for contours\n  surfaceNormal   = vec3(1,0,0);\n  eyeDirection    = vec3(0,1,0);\n  lightDirection  = vec3(0,0,1);\n}\n&quot;]),l=i([&quot;precision highp float;\n#define GLSLIFY 1\n\nbool outOfRange(float a, float b, float p) {\n  return ((p &gt; max(a, b)) || \n          (p &lt; min(a, b)));\n}\n\nbool outOfRange(vec2 a, vec2 b, vec2 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y));\n}\n\nbool outOfRange(vec3 a, vec3 b, vec3 p) {\n  return (outOfRange(a.x, b.x, p.x) ||\n          outOfRange(a.y, b.y, p.y) ||\n          outOfRange(a.z, b.z, p.z));\n}\n\nbool outOfRange(vec4 a, vec4 b, vec4 p) {\n  return outOfRange(a.xyz, b.xyz, p.xyz);\n}\n\nuniform vec2 shape;\nuniform vec3 clipBounds[2];\nuniform float pickId;\n\nvarying float value, kill;\nvarying vec3 worldCoordinate;\nvarying vec2 planeCoordinate;\nvarying vec3 surfaceNormal;\n\nvec2 splitFloat(float v) {\n  float vh = 255.0 * v;\n  float upper = floor(vh);\n  float lower = fract(vh);\n  return vec2(upper / 255.0, floor(lower * 16.0) / 16.0);\n}\n\nvoid main() {\n  if ((kill &gt; 0.0) ||\n      (outOfRange(clipBounds[0], clipBounds[1], worldCoordinate))) discard;\n\n  vec2 ux = splitFloat(planeCoordinate.x / shape.x);\n  vec2 uy = splitFloat(planeCoordinate.y / shape.y);\n  gl_FragColor = vec4(pickId, ux.x, uy.x, ux.y + (uy.y/16.0));\n}\n&quot;]);r.createShader=function(t){var e=n(t,a,o,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createPickShader=function(t){var e=n(t,a,l,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;vec3&quot;},{name:&quot;normal&quot;,type:&quot;vec3&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e.attributes.normal.location=2,e},r.createContourShader=function(t){var e=n(t,s,o,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;float&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e},r.createPickContourShader=function(t){var e=n(t,s,l,null,[{name:&quot;uv&quot;,type:&quot;vec4&quot;},{name:&quot;f&quot;,type:&quot;float&quot;}]);return e.attributes.uv.location=0,e.attributes.f.location=1,e}},{&quot;gl-shader&quot;:335,glslify:350}],350:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],351:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.gl,r=y(e),n=b(e),s=x(e),l=_(e),c=i(e),u=a(e,[{buffer:c,size:4,stride:40,offset:0},{buffer:c,size:3,stride:40,offset:16},{buffer:c,size:3,stride:40,offset:28}]),f=i(e),h=a(e,[{buffer:f,size:4,stride:20,offset:0},{buffer:f,size:1,stride:20,offset:16}]),p=i(e),d=a(e,[{buffer:p,size:2,type:e.FLOAT}]),g=o(e,1,256,e.RGBA,e.UNSIGNED_BYTE);g.minFilter=e.LINEAR,g.magFilter=e.LINEAR;var m=new A(e,[0,0],[[0,0,0],[0,0,0]],r,n,c,u,g,s,l,f,h,p,d,[0,0,0]),v={levels:[[],[],[]]};for(var w in t)v[w]=t[w];return v.colormap=v.colormap||&quot;jet&quot;,m.update(v),m};var n=t(&quot;bit-twiddle&quot;),i=t(&quot;gl-buffer&quot;),a=t(&quot;gl-vao&quot;),o=t(&quot;gl-texture2d&quot;),s=t(&quot;typedarray-pool&quot;),l=t(&quot;colormap&quot;),c=t(&quot;ndarray-ops&quot;),u=t(&quot;ndarray-pack&quot;),f=t(&quot;ndarray&quot;),h=t(&quot;surface-nets&quot;),p=t(&quot;gl-mat4/multiply&quot;),d=t(&quot;gl-mat4/invert&quot;),g=t(&quot;binary-search-bounds&quot;),m=t(&quot;ndarray-gradient&quot;),v=t(&quot;./lib/shaders&quot;),y=v.createShader,x=v.createContourShader,b=v.createPickShader,_=v.createPickContourShader,w=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],T=[[0,0],[0,1],[1,0],[1,1],[1,0],[0,1]],k=[[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0]];function M(t,e,r,n,i){this.position=t,this.index=e,this.uv=r,this.level=n,this.dataCoordinate=i}!function(){for(var t=0;t&lt;3;++t){var e=k[t],r=(t+2)%3;e[(t+1)%3+0]=1,e[r+3]=1,e[t+6]=1}}();function A(t,e,r,n,i,a,o,l,c,u,h,p,d,g,m){this.gl=t,this.shape=e,this.bounds=r,this.objectOffset=m,this.intensityBounds=[],this._shader=n,this._pickShader=i,this._coordinateBuffer=a,this._vao=o,this._colorMap=l,this._contourShader=c,this._contourPickShader=u,this._contourBuffer=h,this._contourVAO=p,this._contourOffsets=[[],[],[]],this._contourCounts=[[],[],[]],this._vertexCount=0,this._pickResult=new M([0,0,0],[0,0],[0,0],[0,0,0],[0,0,0]),this._dynamicBuffer=d,this._dynamicVAO=g,this._dynamicOffsets=[0,0,0],this._dynamicCounts=[0,0,0],this.contourWidth=[1,1,1],this.contourLevels=[[1],[1],[1]],this.contourTint=[0,0,0],this.contourColor=[[.5,.5,.5,1],[.5,.5,.5,1],[.5,.5,.5,1]],this.showContour=!0,this.showSurface=!0,this.enableHighlight=[!0,!0,!0],this.highlightColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.highlightTint=[1,1,1],this.highlightLevel=[-1,-1,-1],this.enableDynamic=[!0,!0,!0],this.dynamicLevel=[NaN,NaN,NaN],this.dynamicColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.dynamicTint=[1,1,1],this.dynamicWidth=[1,1,1],this.axesBounds=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]],this.surfaceProject=[!1,!1,!1],this.contourProject=[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],this.colorBounds=[!1,!1],this._field=[f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0]),f(s.mallocFloat(1024),[0,0])],this.pickId=1,this.clipBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.snapToData=!1,this.pixelRatio=1,this.opacity=1,this.lightPosition=[10,1e4,0],this.ambientLight=.8,this.diffuseLight=.8,this.specularLight=2,this.roughness=.5,this.fresnel=1.5,this.vertexColor=0,this.dirty=!0}var S=A.prototype;S.genColormap=function(t,e){var r=!1,n=u([l({colormap:t,nshades:256,format:&quot;rgba&quot;}).map((function(t,n){var i=e?function(t,e){if(!e)return 1;if(!e.length)return 1;for(var r=0;r&lt;e.length;++r){if(e.length&lt;2)return 1;if(e[r][0]===t)return e[r][1];if(e[r][0]&gt;t&amp;&amp;r&gt;0){var n=(e[r][0]-t)/(e[r][0]-e[r-1][0]);return e[r][1]*(1-n)+n*e[r-1][1]}}return 1}(n/255,e):t[3];return i&lt;1&amp;&amp;(r=!0),[t[0],t[1],t[2],255*i]}))]);return c.divseq(n,255),this.hasAlphaScale=r,n},S.isTransparent=function(){return this.opacity&lt;1||this.hasAlphaScale},S.isOpaque=function(){return!this.isTransparent()},S.pickSlots=1,S.setPickBase=function(t){this.pickId=t};var E=[0,0,0],C={showSurface:!1,showContour:!1,projections:[w.slice(),w.slice(),w.slice()],clipBounds:[[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]],[[0,0,0],[0,0,0]]]};function L(t,e){var r,n,i,a=e.axes&amp;&amp;e.axes.lastCubeProps.axis||E,o=e.showSurface,s=e.showContour;for(r=0;r&lt;3;++r)for(o=o||e.surfaceProject[r],n=0;n&lt;3;++n)s=s||e.contourProject[r][n];for(r=0;r&lt;3;++r){var l=C.projections[r];for(n=0;n&lt;16;++n)l[n]=0;for(n=0;n&lt;4;++n)l[5*n]=1;l[5*r]=0,l[12+r]=e.axesBounds[+(a[r]&gt;0)][r],p(l,t.model,l);var c=C.clipBounds[r];for(i=0;i&lt;2;++i)for(n=0;n&lt;3;++n)c[i][n]=t.clipBounds[i][n];c[0][r]=-1e8,c[1][r]=1e8}return C.showSurface=o,C.showContour=s,C}var I={model:w,view:w,projection:w,inverseModel:w.slice(),lowerBound:[0,0,0],upperBound:[0,0,0],colorMap:0,clipBounds:[[0,0,0],[0,0,0]],height:0,contourTint:0,contourColor:[0,0,0,1],permutation:[1,0,0,0,1,0,0,0,1],zOffset:-1e-4,objectOffset:[0,0,0],kambient:1,kdiffuse:1,kspecular:1,lightPosition:[1e3,1e3,1e3],eyePosition:[0,0,0],roughness:1,fresnel:1,opacity:1,vertexColor:0},P=w.slice(),z=[1,0,0,0,1,0,0,0,1];function O(t,e){t=t||{};var r=this.gl;r.disable(r.CULL_FACE),this._colorMap.bind(0);var n=I;n.model=t.model||w,n.view=t.view||w,n.projection=t.projection||w,n.lowerBound=[this.bounds[0][0],this.bounds[0][1],this.colorBounds[0]||this.bounds[0][2]],n.upperBound=[this.bounds[1][0],this.bounds[1][1],this.colorBounds[1]||this.bounds[1][2]],n.objectOffset=this.objectOffset,n.contourColor=this.contourColor[0],n.inverseModel=d(n.inverseModel,n.model);for(var i=0;i&lt;2;++i)for(var a=n.clipBounds[i],o=0;o&lt;3;++o)a[o]=Math.min(Math.max(this.clipBounds[i][o],-1e8),1e8);n.kambient=this.ambientLight,n.kdiffuse=this.diffuseLight,n.kspecular=this.specularLight,n.roughness=this.roughness,n.fresnel=this.fresnel,n.opacity=this.opacity,n.height=0,n.permutation=z,n.vertexColor=this.vertexColor;var s=P;for(p(s,n.view,n.model),p(s,n.projection,s),d(s,s),i=0;i&lt;3;++i)n.eyePosition[i]=s[12+i]/s[15];var l=s[15];for(i=0;i&lt;3;++i)l+=this.lightPosition[i]*s[4*i+3];for(i=0;i&lt;3;++i){var c=s[12+i];for(o=0;o&lt;3;++o)c+=s[4*o+i]*this.lightPosition[o];n.lightPosition[i]=c/l}var u=L(n,this);if(u.showSurface){for(this._shader.bind(),this._shader.uniforms=n,this._vao.bind(),this.showSurface&amp;&amp;this._vertexCount&amp;&amp;this._vao.draw(r.TRIANGLES,this._vertexCount),i=0;i&lt;3;++i)this.surfaceProject[i]&amp;&amp;this.vertexCount&amp;&amp;(this._shader.uniforms.model=u.projections[i],this._shader.uniforms.clipBounds=u.clipBounds[i],this._vao.draw(r.TRIANGLES,this._vertexCount));this._vao.unbind()}if(u.showContour){var f=this._contourShader;n.kambient=1,n.kdiffuse=0,n.kspecular=0,n.opacity=1,f.bind(),f.uniforms=n;var h=this._contourVAO;for(h.bind(),i=0;i&lt;3;++i)for(f.uniforms.permutation=k[i],r.lineWidth(this.contourWidth[i]*this.pixelRatio),o=0;o&lt;this.contourLevels[i].length;++o)o===this.highlightLevel[i]?(f.uniforms.contourColor=this.highlightColor[i],f.uniforms.contourTint=this.highlightTint[i]):0!==o&amp;&amp;o-1!==this.highlightLevel[i]||(f.uniforms.contourColor=this.contourColor[i],f.uniforms.contourTint=this.contourTint[i]),this._contourCounts[i][o]&amp;&amp;(f.uniforms.height=this.contourLevels[i][o],h.draw(r.LINES,this._contourCounts[i][o],this._contourOffsets[i][o]));for(i=0;i&lt;3;++i)for(f.uniforms.model=u.projections[i],f.uniforms.clipBounds=u.clipBounds[i],o=0;o&lt;3;++o)if(this.contourProject[i][o]){f.uniforms.permutation=k[o],r.lineWidth(this.contourWidth[o]*this.pixelRatio);for(var g=0;g&lt;this.contourLevels[o].length;++g)g===this.highlightLevel[o]?(f.uniforms.contourColor=this.highlightColor[o],f.uniforms.contourTint=this.highlightTint[o]):0!==g&amp;&amp;g-1!==this.highlightLevel[o]||(f.uniforms.contourColor=this.contourColor[o],f.uniforms.contourTint=this.contourTint[o]),this._contourCounts[o][g]&amp;&amp;(f.uniforms.height=this.contourLevels[o][g],h.draw(r.LINES,this._contourCounts[o][g],this._contourOffsets[o][g]))}for(h.unbind(),(h=this._dynamicVAO).bind(),i=0;i&lt;3;++i)if(0!==this._dynamicCounts[i])for(f.uniforms.model=n.model,f.uniforms.clipBounds=n.clipBounds,f.uniforms.permutation=k[i],r.lineWidth(this.dynamicWidth[i]*this.pixelRatio),f.uniforms.contourColor=this.dynamicColor[i],f.uniforms.contourTint=this.dynamicTint[i],f.uniforms.height=this.dynamicLevel[i],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]),o=0;o&lt;3;++o)this.contourProject[o][i]&amp;&amp;(f.uniforms.model=u.projections[o],f.uniforms.clipBounds=u.clipBounds[o],h.draw(r.LINES,this._dynamicCounts[i],this._dynamicOffsets[i]));h.unbind()}}S.draw=function(t){return O.call(this,t,!1)},S.drawTransparent=function(t){return O.call(this,t,!0)};var D={model:w,view:w,projection:w,inverseModel:w,clipBounds:[[0,0,0],[0,0,0]],height:0,shape:[0,0],pickId:0,lowerBound:[0,0,0],upperBound:[0,0,0],zOffset:0,objectOffset:[0,0,0],permutation:[1,0,0,0,1,0,0,0,1],lightPosition:[0,0,0],eyePosition:[0,0,0]};function R(t,e){return Array.isArray(t)?[e(t[0]),e(t[1]),e(t[2])]:[e(t),e(t),e(t)]}function F(t){return Array.isArray(t)?3===t.length?[t[0],t[1],t[2],1]:[t[0],t[1],t[2],t[3]]:[0,0,0,1]}function B(t){if(Array.isArray(t)){if(Array.isArray(t))return[F(t[0]),F(t[1]),F(t[2])];var e=F(t);return[e.slice(),e.slice(),e.slice()]}}S.drawPick=function(t){t=t||{};var e=this.gl;e.disable(e.CULL_FACE);var r=D;r.model=t.model||w,r.view=t.view||w,r.projection=t.projection||w,r.shape=this._field[2].shape,r.pickId=this.pickId/255,r.lowerBound=this.bounds[0],r.upperBound=this.bounds[1],r.objectOffset=this.objectOffset,r.permutation=z;for(var n=0;n&lt;2;++n)for(var i=r.clipBounds[n],a=0;a&lt;3;++a)i[a]=Math.min(Math.max(this.clipBounds[n][a],-1e8),1e8);var o=L(r,this);if(o.showSurface){for(this._pickShader.bind(),this._pickShader.uniforms=r,this._vao.bind(),this._vao.draw(e.TRIANGLES,this._vertexCount),n=0;n&lt;3;++n)this.surfaceProject[n]&amp;&amp;(this._pickShader.uniforms.model=o.projections[n],this._pickShader.uniforms.clipBounds=o.clipBounds[n],this._vao.draw(e.TRIANGLES,this._vertexCount));this._vao.unbind()}if(o.showContour){var s=this._contourPickShader;s.bind(),s.uniforms=r;var l=this._contourVAO;for(l.bind(),a=0;a&lt;3;++a)for(e.lineWidth(this.contourWidth[a]*this.pixelRatio),s.uniforms.permutation=k[a],n=0;n&lt;this.contourLevels[a].length;++n)this._contourCounts[a][n]&amp;&amp;(s.uniforms.height=this.contourLevels[a][n],l.draw(e.LINES,this._contourCounts[a][n],this._contourOffsets[a][n]));for(n=0;n&lt;3;++n)for(s.uniforms.model=o.projections[n],s.uniforms.clipBounds=o.clipBounds[n],a=0;a&lt;3;++a)if(this.contourProject[n][a]){s.uniforms.permutation=k[a],e.lineWidth(this.contourWidth[a]*this.pixelRatio);for(var c=0;c&lt;this.contourLevels[a].length;++c)this._contourCounts[a][c]&amp;&amp;(s.uniforms.height=this.contourLevels[a][c],l.draw(e.LINES,this._contourCounts[a][c],this._contourOffsets[a][c]))}l.unbind()}},S.pick=function(t){if(!t)return null;if(t.id!==this.pickId)return null;var e=this._field[2].shape,r=this._pickResult,n=e[0]*(t.value[0]+(t.value[2]&gt;&gt;4)/16)/255,i=Math.floor(n),a=n-i,o=e[1]*(t.value[1]+(15&amp;t.value[2])/16)/255,s=Math.floor(o),l=o-s;i+=1,s+=1;var c=r.position;c[0]=c[1]=c[2]=0;for(var u=0;u&lt;2;++u)for(var f=u?a:1-a,h=0;h&lt;2;++h)for(var p=i+u,d=s+h,m=f*(h?l:1-l),v=0;v&lt;3;++v)c[v]+=this._field[v].get(p,d)*m;for(var y=this._pickResult.level,x=0;x&lt;3;++x)if(y[x]=g.le(this.contourLevels[x],c[x]),y[x]&lt;0)this.contourLevels[x].length&gt;0&amp;&amp;(y[x]=0);else if(y[x]&lt;this.contourLevels[x].length-1){var b=this.contourLevels[x][y[x]],_=this.contourLevels[x][y[x]+1];Math.abs(b-c[x])&gt;Math.abs(_-c[x])&amp;&amp;(y[x]+=1)}for(r.index[0]=a&lt;.5?i:i+1,r.index[1]=l&lt;.5?s:s+1,r.uv[0]=n/e[0],r.uv[1]=o/e[1],v=0;v&lt;3;++v)r.dataCoordinate[v]=this._field[v].get(r.index[0],r.index[1]);return r},S.padField=function(t,e){var r=e.shape.slice(),n=t.shape.slice();c.assign(t.lo(1,1).hi(r[0],r[1]),e),c.assign(t.lo(1).hi(r[0],1),e.hi(r[0],1)),c.assign(t.lo(1,n[1]-1).hi(r[0],1),e.lo(0,r[1]-1).hi(r[0],1)),c.assign(t.lo(0,1).hi(1,r[1]),e.hi(1)),c.assign(t.lo(n[0]-1,1).hi(1,r[1]),e.lo(r[0]-1)),t.set(0,0,e.get(0,0)),t.set(0,n[1]-1,e.get(0,r[1]-1)),t.set(n[0]-1,0,e.get(r[0]-1,0)),t.set(n[0]-1,n[1]-1,e.get(r[0]-1,r[1]-1))},S.update=function(t){t=t||{},this.objectOffset=t.objectOffset||this.objectOffset,this.dirty=!0,&quot;contourWidth&quot;in t&amp;&amp;(this.contourWidth=R(t.contourWidth,Number)),&quot;showContour&quot;in t&amp;&amp;(this.showContour=R(t.showContour,Boolean)),&quot;showSurface&quot;in t&amp;&amp;(this.showSurface=!!t.showSurface),&quot;contourTint&quot;in t&amp;&amp;(this.contourTint=R(t.contourTint,Boolean)),&quot;contourColor&quot;in t&amp;&amp;(this.contourColor=B(t.contourColor)),&quot;contourProject&quot;in t&amp;&amp;(this.contourProject=R(t.contourProject,(function(t){return R(t,Boolean)}))),&quot;surfaceProject&quot;in t&amp;&amp;(this.surfaceProject=t.surfaceProject),&quot;dynamicColor&quot;in t&amp;&amp;(this.dynamicColor=B(t.dynamicColor)),&quot;dynamicTint&quot;in t&amp;&amp;(this.dynamicTint=R(t.dynamicTint,Number)),&quot;dynamicWidth&quot;in t&amp;&amp;(this.dynamicWidth=R(t.dynamicWidth,Number)),&quot;opacity&quot;in t&amp;&amp;(this.opacity=t.opacity),&quot;opacityscale&quot;in t&amp;&amp;(this.opacityscale=t.opacityscale),&quot;colorBounds&quot;in t&amp;&amp;(this.colorBounds=t.colorBounds),&quot;vertexColor&quot;in t&amp;&amp;(this.vertexColor=t.vertexColor?1:0),&quot;colormap&quot;in t&amp;&amp;this._colorMap.setPixels(this.genColormap(t.colormap,this.opacityscale));var e=t.field||t.coords&amp;&amp;t.coords[2]||null,r=!1;if(e||(e=this._field[2].shape[0]||this._field[2].shape[2]?this._field[2].lo(1,1).hi(this._field[2].shape[0]-2,this._field[2].shape[1]-2):this._field[2].hi(0,0)),&quot;field&quot;in t||&quot;coords&quot;in t){var i=(e.shape[0]+2)*(e.shape[1]+2);i&gt;this._field[2].data.length&amp;&amp;(s.freeFloat(this._field[2].data),this._field[2].data=s.mallocFloat(n.nextPow2(i))),this._field[2]=f(this._field[2].data,[e.shape[0]+2,e.shape[1]+2]),this.padField(this._field[2],e),this.shape=e.shape.slice();for(var a=this.shape,o=0;o&lt;2;++o)this._field[2].size&gt;this._field[o].data.length&amp;&amp;(s.freeFloat(this._field[o].data),this._field[o].data=s.mallocFloat(this._field[2].size)),this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2]);if(t.coords){var l=t.coords;if(!Array.isArray(l)||3!==l.length)throw new Error(&quot;gl-surface: invalid coordinates for x/y&quot;);for(o=0;o&lt;2;++o){var c=l[o];for(v=0;v&lt;2;++v)if(c.shape[v]!==a[v])throw new Error(&quot;gl-surface: coords have incorrect shape&quot;);this.padField(this._field[o],c)}}else if(t.ticks){var u=t.ticks;if(!Array.isArray(u)||2!==u.length)throw new Error(&quot;gl-surface: invalid ticks&quot;);for(o=0;o&lt;2;++o){var p=u[o];if((Array.isArray(p)||p.length)&amp;&amp;(p=f(p)),p.shape[0]!==a[o])throw new Error(&quot;gl-surface: invalid tick length&quot;);var d=f(p.data,a);d.stride[o]=p.stride[0],d.stride[1^o]=0,this.padField(this._field[o],d)}}else{for(o=0;o&lt;2;++o){var g=[0,0];g[o]=1,this._field[o]=f(this._field[o].data,[a[0]+2,a[1]+2],g,0)}this._field[0].set(0,0,0);for(var v=0;v&lt;a[0];++v)this._field[0].set(v+1,0,v);for(this._field[0].set(a[0]+1,0,a[0]-1),this._field[1].set(0,0,0),v=0;v&lt;a[1];++v)this._field[1].set(0,v+1,v);this._field[1].set(0,a[1]+1,a[1]-1)}var y=this._field,x=f(s.mallocFloat(3*y[2].size*2),[3,a[0]+2,a[1]+2,2]);for(o=0;o&lt;3;++o)m(x.pick(o),y[o],&quot;mirror&quot;);var b=f(s.mallocFloat(3*y[2].size),[a[0]+2,a[1]+2,3]);for(o=0;o&lt;a[0]+2;++o)for(v=0;v&lt;a[1]+2;++v){var _=x.get(0,o,v,0),w=x.get(0,o,v,1),k=x.get(1,o,v,0),M=x.get(1,o,v,1),A=x.get(2,o,v,0),S=x.get(2,o,v,1),E=k*S-M*A,C=A*w-S*_,L=_*M-w*k,I=Math.sqrt(E*E+C*C+L*L);I&lt;1e-8?(I=Math.max(Math.abs(E),Math.abs(C),Math.abs(L)))&lt;1e-8?(L=1,C=E=0,I=1):I=1/I:I=1/Math.sqrt(I),b.set(o,v,0,E*I),b.set(o,v,1,C*I),b.set(o,v,2,L*I)}s.free(x.data);var P=[1/0,1/0,1/0],z=[-1/0,-1/0,-1/0],O=1/0,D=-1/0,F=(a[0]-1)*(a[1]-1)*6,N=s.mallocFloat(n.nextPow2(10*F)),j=0,U=0;for(o=0;o&lt;a[0]-1;++o)t:for(v=0;v&lt;a[1]-1;++v){for(var V=0;V&lt;2;++V)for(var q=0;q&lt;2;++q)for(var H=0;H&lt;3;++H){var G=this._field[H].get(1+o+V,1+v+q);if(isNaN(G)||!isFinite(G))continue t}for(H=0;H&lt;6;++H){var Y=o+T[H][0],W=v+T[H][1],X=this._field[0].get(Y+1,W+1),Z=this._field[1].get(Y+1,W+1);G=this._field[2].get(Y+1,W+1),E=b.get(Y+1,W+1,0),C=b.get(Y+1,W+1,1),L=b.get(Y+1,W+1,2),t.intensity&amp;&amp;(J=t.intensity.get(Y,W));var J=t.intensity?t.intensity.get(Y,W):G+this.objectOffset[2];N[j++]=Y,N[j++]=W,N[j++]=X,N[j++]=Z,N[j++]=G,N[j++]=0,N[j++]=J,N[j++]=E,N[j++]=C,N[j++]=L,P[0]=Math.min(P[0],X+this.objectOffset[0]),P[1]=Math.min(P[1],Z+this.objectOffset[1]),P[2]=Math.min(P[2],G+this.objectOffset[2]),O=Math.min(O,J),z[0]=Math.max(z[0],X+this.objectOffset[0]),z[1]=Math.max(z[1],Z+this.objectOffset[1]),z[2]=Math.max(z[2],G+this.objectOffset[2]),D=Math.max(D,J),U+=1}}for(t.intensityBounds&amp;&amp;(O=+t.intensityBounds[0],D=+t.intensityBounds[1]),o=6;o&lt;j;o+=10)N[o]=(N[o]-O)/(D-O);this._vertexCount=U,this._coordinateBuffer.update(N.subarray(0,j)),s.freeFloat(N),s.free(b.data),this.bounds=[P,z],this.intensity=t.intensity||this._field[2],this.intensityBounds[0]===O&amp;&amp;this.intensityBounds[1]===D||(r=!0),this.intensityBounds=[O,D]}if(&quot;levels&quot;in t){var K=t.levels;for(K=Array.isArray(K[0])?K.slice():[[],[],K],o=0;o&lt;3;++o)K[o]=K[o].slice(),K[o].sort((function(t,e){return t-e}));for(o=0;o&lt;3;++o)for(v=0;v&lt;K[o].length;++v)K[o][v]-=this.objectOffset[o];t:for(o=0;o&lt;3;++o){if(K[o].length!==this.contourLevels[o].length){r=!0;break}for(v=0;v&lt;K[o].length;++v)if(K[o][v]!==this.contourLevels[o][v]){r=!0;break t}}this.contourLevels=K}if(r){y=this._field,a=this.shape;for(var Q=[],$=0;$&lt;3;++$){var tt=this.contourLevels[$],et=[],rt=[],nt=[0,0,0];for(o=0;o&lt;tt.length;++o){var it=h(this._field[$],tt[o]);et.push(Q.length/5|0),U=0;t:for(v=0;v&lt;it.cells.length;++v){var at=it.cells[v];for(H=0;H&lt;2;++H){var ot=it.positions[at[H]],st=ot[0],lt=0|Math.floor(st),ct=st-lt,ut=ot[1],ft=0|Math.floor(ut),ht=ut-ft,pt=!1;e:for(var dt=0;dt&lt;3;++dt){nt[dt]=0;var gt=($+dt+1)%3;for(V=0;V&lt;2;++V){var mt=V?ct:1-ct;for(Y=0|Math.min(Math.max(lt+V,0),a[0]),q=0;q&lt;2;++q){var vt=q?ht:1-ht;if(W=0|Math.min(Math.max(ft+q,0),a[1]),G=dt&lt;2?this._field[gt].get(Y,W):(this.intensity.get(Y,W)-this.intensityBounds[0])/(this.intensityBounds[1]-this.intensityBounds[0]),!isFinite(G)||isNaN(G)){pt=!0;break e}var yt=mt*vt;nt[dt]+=yt*G}}}if(pt){if(H&gt;0){for(var xt=0;xt&lt;5;++xt)Q.pop();U-=1}continue t}Q.push(nt[0],nt[1],ot[0],ot[1],nt[2]),U+=1}}rt.push(U)}this._contourOffsets[$]=et,this._contourCounts[$]=rt}var bt=s.mallocFloat(Q.length);for(o=0;o&lt;Q.length;++o)bt[o]=Q[o];this._contourBuffer.update(bt),s.freeFloat(bt)}},S.dispose=function(){this._shader.dispose(),this._vao.dispose(),this._coordinateBuffer.dispose(),this._colorMap.dispose(),this._contourBuffer.dispose(),this._contourVAO.dispose(),this._contourShader.dispose(),this._contourPickShader.dispose(),this._dynamicBuffer.dispose(),this._dynamicVAO.dispose();for(var t=0;t&lt;3;++t)s.freeFloat(this._field[t].data)},S.highlight=function(t){var e,r;if(!t)return this._dynamicCounts=[0,0,0],this.dyanamicLevel=[NaN,NaN,NaN],void(this.highlightLevel=[-1,-1,-1]);for(e=0;e&lt;3;++e)this.enableHighlight[e]?this.highlightLevel[e]=t.level[e]:this.highlightLevel[e]=-1;for(r=this.snapToData?t.dataCoordinate:t.position,e=0;e&lt;3;++e)r[e]-=this.objectOffset[e];if(this.enableDynamic[0]&amp;&amp;r[0]!==this.dynamicLevel[0]||this.enableDynamic[1]&amp;&amp;r[1]!==this.dynamicLevel[1]||this.enableDynamic[2]&amp;&amp;r[2]!==this.dynamicLevel[2]){for(var n=0,i=this.shape,a=s.mallocFloat(12*i[0]*i[1]),o=0;o&lt;3;++o)if(this.enableDynamic[o]){this.dynamicLevel[o]=r[o];var l=(o+1)%3,c=(o+2)%3,u=this._field[o],f=this._field[l],p=this._field[c],d=h(u,r[o]),g=d.cells,m=d.positions;for(this._dynamicOffsets[o]=n,e=0;e&lt;g.length;++e)for(var v=g[e],y=0;y&lt;2;++y){var x=m[v[y]],b=+x[0],_=0|b,w=0|Math.min(_+1,i[0]),T=b-_,k=1-T,M=+x[1],A=0|M,S=0|Math.min(A+1,i[1]),E=M-A,C=1-E,L=k*C,I=k*E,P=T*C,z=T*E,O=L*f.get(_,A)+I*f.get(_,S)+P*f.get(w,A)+z*f.get(w,S),D=L*p.get(_,A)+I*p.get(_,S)+P*p.get(w,A)+z*p.get(w,S);if(isNaN(O)||isNaN(D)){y&amp;&amp;(n-=1);break}a[2*n+0]=O,a[2*n+1]=D,n+=1}this._dynamicCounts[o]=n-this._dynamicOffsets[o]}else this.dynamicLevel[o]=NaN,this._dynamicCounts[o]=0;this._dynamicBuffer.update(a.subarray(0,2*n)),s.freeFloat(a)}}},{&quot;./lib/shaders&quot;:349,&quot;binary-search-bounds&quot;:96,&quot;bit-twiddle&quot;:97,colormap:131,&quot;gl-buffer&quot;:259,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/multiply&quot;:295,&quot;gl-texture2d&quot;:353,&quot;gl-vao&quot;:358,ndarray:495,&quot;ndarray-gradient&quot;:488,&quot;ndarray-ops&quot;:490,&quot;ndarray-pack&quot;:491,&quot;surface-nets&quot;:570,&quot;typedarray-pool&quot;:595}],352:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;css-font&quot;),i=t(&quot;pick-by-alias&quot;),a=t(&quot;regl&quot;),o=t(&quot;gl-util/context&quot;),s=t(&quot;es6-weak-map&quot;),l=t(&quot;color-normalize&quot;),c=t(&quot;font-atlas&quot;),u=t(&quot;typedarray-pool&quot;),f=t(&quot;parse-rect&quot;),h=t(&quot;is-plain-obj&quot;),p=t(&quot;parse-unit&quot;),d=t(&quot;to-px&quot;),g=t(&quot;detect-kerning&quot;),m=t(&quot;object-assign&quot;),v=t(&quot;font-measure&quot;),y=t(&quot;flatten-vertex-data&quot;),x=t(&quot;bit-twiddle&quot;).nextPow2,b=new s,_=!1;if(document.body){var w=document.body.appendChild(document.createElement(&quot;div&quot;));w.style.font=&quot;italic small-caps bold condensed 16px/2 cursive&quot;,getComputedStyle(w).fontStretch&amp;&amp;(_=!0),document.body.removeChild(w)}var T=function(t){!function(t){return&quot;function&quot;==typeof t&amp;&amp;t._gl&amp;&amp;t.prop&amp;&amp;t.texture&amp;&amp;t.buffer}(t)?this.gl=o(t):(t={regl:t},this.gl=t.regl._gl),this.shader=b.get(this.gl),this.shader?this.regl=this.shader.regl:this.regl=t.regl||a({gl:this.gl}),this.charBuffer=this.regl.buffer({type:&quot;uint8&quot;,usage:&quot;stream&quot;}),this.sizeBuffer=this.regl.buffer({type:&quot;float&quot;,usage:&quot;stream&quot;}),this.shader||(this.shader=this.createShader(),b.set(this.gl,this.shader)),this.batch=[],this.fontSize=[],this.font=[],this.fontAtlas=[],this.draw=this.shader.draw.bind(this),this.render=function(){this.regl._refresh(),this.draw(this.batch)},this.canvas=this.gl.canvas,this.update(h(t)?t:{})};T.prototype.createShader=function(){var t=this.regl,e=t({blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},stencil:{enable:!1},depth:{enable:!1},count:t.prop(&quot;count&quot;),offset:t.prop(&quot;offset&quot;),attributes:{charOffset:{offset:4,stride:8,buffer:t.this(&quot;sizeBuffer&quot;)},width:{offset:0,stride:8,buffer:t.this(&quot;sizeBuffer&quot;)},char:t.this(&quot;charBuffer&quot;),position:t.this(&quot;position&quot;)},uniforms:{atlasSize:function(t,e){return[e.atlas.width,e.atlas.height]},atlasDim:function(t,e){return[e.atlas.cols,e.atlas.rows]},atlas:function(t,e){return e.atlas.texture},charStep:function(t,e){return e.atlas.step},em:function(t,e){return e.atlas.em},color:t.prop(&quot;color&quot;),opacity:t.prop(&quot;opacity&quot;),viewport:t.this(&quot;viewportArray&quot;),scale:t.this(&quot;scale&quot;),align:t.prop(&quot;align&quot;),baseline:t.prop(&quot;baseline&quot;),translate:t.this(&quot;translate&quot;),positionOffset:t.prop(&quot;positionOffset&quot;)},primitive:&quot;points&quot;,viewport:t.this(&quot;viewport&quot;),vert:&quot;\n\t\t\tprecision highp float;\n\t\t\tattribute float width, charOffset, char;\n\t\t\tattribute vec2 position;\n\t\t\tuniform float fontSize, charStep, em, align, baseline;\n\t\t\tuniform vec4 viewport;\n\t\t\tuniform vec4 color;\n\t\t\tuniform vec2 atlasSize, atlasDim, scale, translate, positionOffset;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvoid main () {\n\t\t\t\t&quot;+(T.normalViewport?&quot;&quot;:&quot;vec2 positionOffset = vec2(positionOffset.x,- positionOffset.y);&quot;)+&quot;\n\n\t\t\t\tvec2 offset = floor(em * (vec2(align + charOffset, baseline)\n\t\t\t\t\t+ positionOffset))\n\t\t\t\t\t/ (viewport.zw * scale.xy);\n\n\t\t\t\tvec2 position = (position + translate) * scale;\n\t\t\t\tposition += offset * scale;\n\n\t\t\t\t&quot;+(T.normalViewport?&quot;position.y = 1. - position.y;&quot;:&quot;&quot;)+&quot;\n\n\t\t\t\tcharCoord = position * viewport.zw + viewport.xy;\n\n\t\t\t\tgl_Position = vec4(position * 2. - 1., 0, 1);\n\n\t\t\t\tgl_PointSize = charStep;\n\n\t\t\t\tcharId.x = mod(char, atlasDim.x);\n\t\t\t\tcharId.y = floor(char / atlasDim.x);\n\n\t\t\t\tcharWidth = width * em;\n\n\t\t\t\tfontColor = color / 255.;\n\t\t\t}&quot;,frag:&quot;\n\t\t\tprecision highp float;\n\t\t\tuniform sampler2D atlas;\n\t\t\tuniform float fontSize, charStep, opacity;\n\t\t\tuniform vec2 atlasSize;\n\t\t\tuniform vec4 viewport;\n\t\t\tvarying vec4 fontColor;\n\t\t\tvarying vec2 charCoord, charId;\n\t\t\tvarying float charWidth;\n\n\t\t\tfloat lightness(vec4 color) {\n\t\t\t\treturn color.r * 0.299 + color.g * 0.587 + color.b * 0.114;\n\t\t\t}\n\n\t\t\tvoid main () {\n\t\t\t\tvec2 uv = gl_FragCoord.xy - charCoord + charStep * .5;\n\t\t\t\tfloat halfCharStep = floor(charStep * .5 + .5);\n\n\t\t\t\t// invert y and shift by 1px (FF expecially needs that)\n\t\t\t\tuv.y = charStep - uv.y;\n\n\t\t\t\t// ignore points outside of character bounding box\n\t\t\t\tfloat halfCharWidth = ceil(charWidth * .5);\n\t\t\t\tif (floor(uv.x) &gt; halfCharStep + halfCharWidth ||\n\t\t\t\t\tfloor(uv.x) &lt; halfCharStep - halfCharWidth) return;\n\n\t\t\t\tuv += charId * charStep;\n\t\t\t\tuv = uv / atlasSize;\n\n\t\t\t\tvec4 color = fontColor;\n\t\t\t\tvec4 mask = texture2D(atlas, uv);\n\n\t\t\t\tfloat maskY = lightness(mask);\n\t\t\t\t// float colorY = lightness(color);\n\t\t\t\tcolor.a *= maskY;\n\t\t\t\tcolor.a *= opacity;\n\n\t\t\t\t// color.a += .1;\n\n\t\t\t\t// antialiasing, see yiq color space y-channel formula\n\t\t\t\t// color.rgb += (1. - color.rgb) * (1. - mask.rgb);\n\n\t\t\t\tgl_FragColor = color;\n\t\t\t}&quot;});return{regl:t,draw:e,atlas:{}}},T.prototype.update=function(t){var e=this;if(&quot;string&quot;==typeof t)t={text:t};else if(!t)return;null!=(t=i(t,{position:&quot;position positions coord coords coordinates&quot;,font:&quot;font fontFace fontface typeface cssFont css-font family fontFamily&quot;,fontSize:&quot;fontSize fontsize size font-size&quot;,text:&quot;text texts chars characters value values symbols&quot;,align:&quot;align alignment textAlign textbaseline&quot;,baseline:&quot;baseline textBaseline textbaseline&quot;,direction:&quot;dir direction textDirection&quot;,color:&quot;color colour fill fill-color fillColor textColor textcolor&quot;,kerning:&quot;kerning kern&quot;,range:&quot;range dataBox&quot;,viewport:&quot;vp viewport viewBox viewbox viewPort&quot;,opacity:&quot;opacity alpha transparency visible visibility opaque&quot;,offset:&quot;offset positionOffset padding shift indent indentation&quot;},!0)).opacity&amp;&amp;(Array.isArray(t.opacity)?this.opacity=t.opacity.map((function(t){return parseFloat(t)})):this.opacity=parseFloat(t.opacity)),null!=t.viewport&amp;&amp;(this.viewport=f(t.viewport),T.normalViewport&amp;&amp;(this.viewport.y=this.canvas.height-this.viewport.y-this.viewport.height),this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null==this.viewport&amp;&amp;(this.viewport={x:0,y:0,width:this.gl.drawingBufferWidth,height:this.gl.drawingBufferHeight},this.viewportArray=[this.viewport.x,this.viewport.y,this.viewport.width,this.viewport.height]),null!=t.kerning&amp;&amp;(this.kerning=t.kerning),null!=t.offset&amp;&amp;(&quot;number&quot;==typeof t.offset&amp;&amp;(t.offset=[t.offset,0]),this.positionOffset=y(t.offset)),t.direction&amp;&amp;(this.direction=t.direction),t.range&amp;&amp;(this.range=t.range,this.scale=[1/(t.range[2]-t.range[0]),1/(t.range[3]-t.range[1])],this.translate=[-t.range[0],-t.range[1]]),t.scale&amp;&amp;(this.scale=t.scale),t.translate&amp;&amp;(this.translate=t.translate),this.scale||(this.scale=[1/this.viewport.width,1/this.viewport.height]),this.translate||(this.translate=[0,0]),this.font.length||t.font||(t.font=T.baseFontSize+&quot;px sans-serif&quot;);var r,a=!1,o=!1;if(t.font&amp;&amp;(Array.isArray(t.font)?t.font:[t.font]).forEach((function(t,r){if(&quot;string&quot;==typeof t)try{t=n.parse(t)}catch(e){t=n.parse(T.baseFontSize+&quot;px &quot;+t)}else t=n.parse(n.stringify(t));var i=n.stringify({size:T.baseFontSize,family:t.family,stretch:_?t.stretch:void 0,variant:t.variant,weight:t.weight,style:t.style}),s=p(t.size),l=Math.round(s[0]*d(s[1]));if(l!==e.fontSize[r]&amp;&amp;(o=!0,e.fontSize[r]=l),!(e.font[r]&amp;&amp;i==e.font[r].baseString||(a=!0,e.font[r]=T.fonts[i],e.font[r]))){var c=t.family.join(&quot;, &quot;),u=[t.style];t.style!=t.variant&amp;&amp;u.push(t.variant),t.variant!=t.weight&amp;&amp;u.push(t.weight),_&amp;&amp;t.weight!=t.stretch&amp;&amp;u.push(t.stretch),e.font[r]={baseString:i,family:c,weight:t.weight,stretch:t.stretch,style:t.style,variant:t.variant,width:{},kerning:{},metrics:v(c,{origin:&quot;top&quot;,fontSize:T.baseFontSize,fontStyle:u.join(&quot; &quot;)})},T.fonts[i]=e.font[r]}})),(a||o)&amp;&amp;this.font.forEach((function(r,i){var a=n.stringify({size:e.fontSize[i],family:r.family,stretch:_?r.stretch:void 0,variant:r.variant,weight:r.weight,style:r.style});if(e.fontAtlas[i]=e.shader.atlas[a],!e.fontAtlas[i]){var o=r.metrics;e.shader.atlas[a]=e.fontAtlas[i]={fontString:a,step:2*Math.ceil(e.fontSize[i]*o.bottom*.5),em:e.fontSize[i],cols:0,rows:0,height:0,width:0,chars:[],ids:{},texture:e.regl.texture()}}null==t.text&amp;&amp;(t.text=e.text)})),&quot;string&quot;==typeof t.text&amp;&amp;t.position&amp;&amp;t.position.length&gt;2){for(var s=Array(.5*t.position.length),h=0;h&lt;s.length;h++)s[h]=t.text;t.text=s}if(null!=t.text||a){if(this.textOffsets=[0],Array.isArray(t.text)){this.count=t.text[0].length,this.counts=[this.count];for(var b=1;b&lt;t.text.length;b++)this.textOffsets[b]=this.textOffsets[b-1]+t.text[b-1].length,this.count+=t.text[b].length,this.counts.push(t.text[b].length);this.text=t.text.join(&quot;&quot;)}else this.text=t.text,this.count=this.text.length,this.counts=[this.count];r=[],this.font.forEach((function(t,n){T.atlasContext.font=t.baseString;for(var i=e.fontAtlas[n],a=0;a&lt;e.text.length;a++){var o=e.text.charAt(a);if(null==i.ids[o]&amp;&amp;(i.ids[o]=i.chars.length,i.chars.push(o),r.push(o)),null==t.width[o]&amp;&amp;(t.width[o]=T.atlasContext.measureText(o).width/T.baseFontSize,e.kerning)){var s=[];for(var l in t.width)s.push(l+o,o+l);m(t.kerning,g(t.family,{pairs:s}))}}}))}if(t.position)if(t.position.length&gt;2){for(var w=!t.position[0].length,k=u.mallocFloat(2*this.count),M=0,A=0;M&lt;this.counts.length;M++){var S=this.counts[M];if(w)for(var E=0;E&lt;S;E++)k[A++]=t.position[2*M],k[A++]=t.position[2*M+1];else for(var C=0;C&lt;S;C++)k[A++]=t.position[M][0],k[A++]=t.position[M][1]}this.position.call?this.position({type:&quot;float&quot;,data:k}):this.position=this.regl.buffer({type:&quot;float&quot;,data:k}),u.freeFloat(k)}else this.position.destroy&amp;&amp;this.position.destroy(),this.position={constant:t.position};if(t.text||a){var L=u.mallocUint8(this.count),I=u.mallocFloat(2*this.count);this.textWidth=[];for(var P=0,z=0;P&lt;this.counts.length;P++){for(var O=this.counts[P],D=this.font[P]||this.font[0],R=this.fontAtlas[P]||this.fontAtlas[0],F=0;F&lt;O;F++){var B=this.text.charAt(z),N=this.text.charAt(z-1);if(L[z]=R.ids[B],I[2*z]=D.width[B],F){var j=I[2*z-2],U=I[2*z],V=I[2*z-1]+.5*j+.5*U;if(this.kerning){var q=D.kerning[N+B];q&amp;&amp;(V+=.001*q)}I[2*z+1]=V}else I[2*z+1]=.5*I[2*z];z++}this.textWidth.push(I.length?.5*I[2*z-2]+I[2*z-1]:0)}t.align||(t.align=this.align),this.charBuffer({data:L,type:&quot;uint8&quot;,usage:&quot;stream&quot;}),this.sizeBuffer({data:I,type:&quot;float&quot;,usage:&quot;stream&quot;}),u.freeUint8(L),u.freeFloat(I),r.length&amp;&amp;this.font.forEach((function(t,r){var n=e.fontAtlas[r],i=n.step,a=Math.floor(T.maxAtlasSize/i),o=Math.min(a,n.chars.length),s=Math.ceil(n.chars.length/o),l=x(o*i),u=x(s*i);n.width=l,n.height=u,n.rows=s,n.cols=o,n.em&amp;&amp;n.texture({data:c({canvas:T.atlasCanvas,font:n.fontString,chars:n.chars,shape:[l,u],step:[i,i]})})}))}if(t.align&amp;&amp;(this.align=t.align,this.alignOffset=this.textWidth.map((function(t,r){var n=Array.isArray(e.align)?e.align.length&gt;1?e.align[r]:e.align[0]:e.align;if(&quot;number&quot;==typeof n)return n;switch(n){case&quot;right&quot;:case&quot;end&quot;:return-t;case&quot;center&quot;:case&quot;centre&quot;:case&quot;middle&quot;:return.5*-t}return 0}))),null==this.baseline&amp;&amp;null==t.baseline&amp;&amp;(t.baseline=0),null!=t.baseline&amp;&amp;(this.baseline=t.baseline,Array.isArray(this.baseline)||(this.baseline=[this.baseline]),this.baselineOffset=this.baseline.map((function(t,r){var n=(e.font[r]||e.font[0]).metrics,i=0;return i+=.5*n.bottom,i+=&quot;number&quot;==typeof t?t-n.baseline:-n[t],T.normalViewport||(i*=-1),i}))),null!=t.color)if(t.color||(t.color=&quot;transparent&quot;),&quot;string&quot;!=typeof t.color&amp;&amp;isNaN(t.color)){var H;if(&quot;number&quot;==typeof t.color[0]&amp;&amp;t.color.length&gt;this.counts.length){var G=t.color.length;H=u.mallocUint8(G);for(var Y=(t.color.subarray||t.color.slice).bind(t.color),W=0;W&lt;G;W+=4)H.set(l(Y(W,W+4),&quot;uint8&quot;),W)}else{var X=t.color.length;H=u.mallocUint8(4*X);for(var Z=0;Z&lt;X;Z++)H.set(l(t.color[Z]||0,&quot;uint8&quot;),4*Z)}this.color=H}else this.color=l(t.color,&quot;uint8&quot;);if(t.position||t.text||t.color||t.baseline||t.align||t.font||t.offset||t.opacity)if(this.color.length&gt;4||this.baselineOffset.length&gt;1||this.align&amp;&amp;this.align.length&gt;1||this.fontAtlas.length&gt;1||this.positionOffset.length&gt;2){var J=Math.max(.5*this.position.length||0,.25*this.color.length||0,this.baselineOffset.length||0,this.alignOffset.length||0,this.font.length||0,this.opacity.length||0,.5*this.positionOffset.length||0);this.batch=Array(J);for(var K=0;K&lt;this.batch.length;K++)this.batch[K]={count:this.counts.length&gt;1?this.counts[K]:this.counts[0],offset:this.textOffsets.length&gt;1?this.textOffsets[K]:this.textOffsets[0],color:this.color?this.color.length&lt;=4?this.color:this.color.subarray(4*K,4*K+4):[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[K]:this.opacity,baseline:null!=this.baselineOffset[K]?this.baselineOffset[K]:this.baselineOffset[0],align:this.align?null!=this.alignOffset[K]?this.alignOffset[K]:this.alignOffset[0]:0,atlas:this.fontAtlas[K]||this.fontAtlas[0],positionOffset:this.positionOffset.length&gt;2?this.positionOffset.subarray(2*K,2*K+2):this.positionOffset}}else this.count?this.batch=[{count:this.count,offset:0,color:this.color||[0,0,0,255],opacity:Array.isArray(this.opacity)?this.opacity[0]:this.opacity,baseline:this.baselineOffset[0],align:this.alignOffset?this.alignOffset[0]:0,atlas:this.fontAtlas[0],positionOffset:this.positionOffset}]:this.batch=[]},T.prototype.destroy=function(){},T.prototype.kerning=!0,T.prototype.position={constant:new Float32Array(2)},T.prototype.translate=null,T.prototype.scale=null,T.prototype.font=null,T.prototype.text=&quot;&quot;,T.prototype.positionOffset=[0,0],T.prototype.opacity=1,T.prototype.color=new Uint8Array([0,0,0,255]),T.prototype.alignOffset=[0,0],T.normalViewport=!1,T.maxAtlasSize=1024,T.atlasCanvas=document.createElement(&quot;canvas&quot;),T.atlasContext=T.atlasCanvas.getContext(&quot;2d&quot;,{alpha:!1}),T.baseFontSize=64,T.fonts={},e.exports=T},{&quot;bit-twiddle&quot;:97,&quot;color-normalize&quot;:125,&quot;css-font&quot;:144,&quot;detect-kerning&quot;:172,&quot;es6-weak-map&quot;:233,&quot;flatten-vertex-data&quot;:244,&quot;font-atlas&quot;:245,&quot;font-measure&quot;:246,&quot;gl-util/context&quot;:354,&quot;is-plain-obj&quot;:469,&quot;object-assign&quot;:499,&quot;parse-rect&quot;:504,&quot;parse-unit&quot;:506,&quot;pick-by-alias&quot;:511,regl:540,&quot;to-px&quot;:578,&quot;typedarray-pool&quot;:595}],353:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ndarray&quot;),i=t(&quot;ndarray-ops&quot;),a=t(&quot;typedarray-pool&quot;);e.exports=function(t){if(arguments.length&lt;=1)throw new Error(&quot;gl-texture2d: Missing arguments for texture2d constructor&quot;);o||c(t);if(&quot;number&quot;==typeof arguments[1])return v(t,arguments[1],arguments[2],arguments[3]||t.RGBA,arguments[4]||t.UNSIGNED_BYTE);if(Array.isArray(arguments[1]))return v(t,0|arguments[1][0],0|arguments[1][1],arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(&quot;object&quot;==typeof arguments[1]){var e=arguments[1],r=u(e)?e:e.raw;if(r)return y(t,r,0|e.width,0|e.height,arguments[2]||t.RGBA,arguments[3]||t.UNSIGNED_BYTE);if(e.shape&amp;&amp;e.data&amp;&amp;e.stride)return x(t,e)}throw new Error(&quot;gl-texture2d: Invalid arguments for texture2d constructor&quot;)};var o=null,s=null,l=null;function c(t){o=[t.LINEAR,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_NEAREST],s=[t.NEAREST,t.LINEAR,t.NEAREST_MIPMAP_NEAREST,t.NEAREST_MIPMAP_LINEAR,t.LINEAR_MIPMAP_NEAREST,t.LINEAR_MIPMAP_LINEAR],l=[t.REPEAT,t.CLAMP_TO_EDGE,t.MIRRORED_REPEAT]}function u(t){return&quot;undefined&quot;!=typeof HTMLCanvasElement&amp;&amp;t instanceof HTMLCanvasElement||&quot;undefined&quot;!=typeof HTMLImageElement&amp;&amp;t instanceof HTMLImageElement||&quot;undefined&quot;!=typeof HTMLVideoElement&amp;&amp;t instanceof HTMLVideoElement||&quot;undefined&quot;!=typeof ImageData&amp;&amp;t instanceof ImageData}var f=function(t,e){i.muls(t,e,255)};function h(t,e,r){var n=t.gl,i=n.getParameter(n.MAX_TEXTURE_SIZE);if(e&lt;0||e&gt;i||r&lt;0||r&gt;i)throw new Error(&quot;gl-texture2d: Invalid texture size&quot;);return t._shape=[e,r],t.bind(),n.texImage2D(n.TEXTURE_2D,0,t.format,e,r,0,t.format,t.type,null),t._mipLevels=[0],t}function p(t,e,r,n,i,a){this.gl=t,this.handle=e,this.format=i,this.type=a,this._shape=[r,n],this._mipLevels=[0],this._magFilter=t.NEAREST,this._minFilter=t.NEAREST,this._wrapS=t.CLAMP_TO_EDGE,this._wrapT=t.CLAMP_TO_EDGE,this._anisoSamples=1;var o=this,s=[this._wrapS,this._wrapT];Object.defineProperties(s,[{get:function(){return o._wrapS},set:function(t){return o.wrapS=t}},{get:function(){return o._wrapT},set:function(t){return o.wrapT=t}}]),this._wrapVector=s;var l=[this._shape[0],this._shape[1]];Object.defineProperties(l,[{get:function(){return o._shape[0]},set:function(t){return o.width=t}},{get:function(){return o._shape[1]},set:function(t){return o.height=t}}]),this._shapeVector=l}var d=p.prototype;function g(t,e){return 3===t.length?1===e[2]&amp;&amp;e[1]===t[0]*t[2]&amp;&amp;e[0]===t[2]:1===e[0]&amp;&amp;e[1]===t[0]}function m(t){var e=t.createTexture();return t.bindTexture(t.TEXTURE_2D,e),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.NEAREST),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),e}function v(t,e,r,n,i){var a=t.getParameter(t.MAX_TEXTURE_SIZE);if(e&lt;0||e&gt;a||r&lt;0||r&gt;a)throw new Error(&quot;gl-texture2d: Invalid texture shape&quot;);if(i===t.FLOAT&amp;&amp;!t.getExtension(&quot;OES_texture_float&quot;))throw new Error(&quot;gl-texture2d: Floating point textures not supported on this platform&quot;);var o=m(t);return t.texImage2D(t.TEXTURE_2D,0,n,e,r,0,n,i,null),new p(t,o,e,r,n,i)}function y(t,e,r,n,i,a){var o=m(t);return t.texImage2D(t.TEXTURE_2D,0,i,i,a,e),new p(t,o,r,n,i,a)}function x(t,e){var r=e.dtype,o=e.shape.slice(),s=t.getParameter(t.MAX_TEXTURE_SIZE);if(o[0]&lt;0||o[0]&gt;s||o[1]&lt;0||o[1]&gt;s)throw new Error(&quot;gl-texture2d: Invalid texture size&quot;);var l=g(o,e.stride.slice()),c=0;&quot;float32&quot;===r?c=t.FLOAT:&quot;float64&quot;===r?(c=t.FLOAT,l=!1,r=&quot;float32&quot;):&quot;uint8&quot;===r?c=t.UNSIGNED_BYTE:(c=t.UNSIGNED_BYTE,l=!1,r=&quot;uint8&quot;);var u,h,d=0;if(2===o.length)d=t.LUMINANCE,o=[o[0],o[1],1],e=n(e.data,o,[e.stride[0],e.stride[1],1],e.offset);else{if(3!==o.length)throw new Error(&quot;gl-texture2d: Invalid shape for texture&quot;);if(1===o[2])d=t.ALPHA;else if(2===o[2])d=t.LUMINANCE_ALPHA;else if(3===o[2])d=t.RGB;else{if(4!==o[2])throw new Error(&quot;gl-texture2d: Invalid shape for pixel coords&quot;);d=t.RGBA}}c!==t.FLOAT||t.getExtension(&quot;OES_texture_float&quot;)||(c=t.UNSIGNED_BYTE,l=!1);var v=e.size;if(l)u=0===e.offset&amp;&amp;e.data.length===v?e.data:e.data.subarray(e.offset,e.offset+v);else{var y=[o[2],o[2]*o[0],1];h=a.malloc(v,r);var x=n(h,o,y,0);&quot;float32&quot;!==r&amp;&amp;&quot;float64&quot;!==r||c!==t.UNSIGNED_BYTE?i.assign(x,e):f(x,e),u=h.subarray(0,v)}var b=m(t);return t.texImage2D(t.TEXTURE_2D,0,d,o[0],o[1],0,d,c,u),l||a.free(h),new p(t,b,o[0],o[1],d,c)}Object.defineProperties(d,{minFilter:{get:function(){return this._minFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&amp;&amp;o.indexOf(t)&gt;=0&amp;&amp;(e.getExtension(&quot;OES_texture_float_linear&quot;)||(t=e.NEAREST)),s.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown filter mode &quot;+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,t),this._minFilter=t}},magFilter:{get:function(){return this._magFilter},set:function(t){this.bind();var e=this.gl;if(this.type===e.FLOAT&amp;&amp;o.indexOf(t)&gt;=0&amp;&amp;(e.getExtension(&quot;OES_texture_float_linear&quot;)||(t=e.NEAREST)),s.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown filter mode &quot;+t);return e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,t),this._magFilter=t}},mipSamples:{get:function(){return this._anisoSamples},set:function(t){var e=this._anisoSamples;if(this._anisoSamples=0|Math.max(t,1),e!==this._anisoSamples){var r=this.gl.getExtension(&quot;EXT_texture_filter_anisotropic&quot;);r&amp;&amp;this.gl.texParameterf(this.gl.TEXTURE_2D,r.TEXTURE_MAX_ANISOTROPY_EXT,this._anisoSamples)}return this._anisoSamples}},wrapS:{get:function(){return this._wrapS},set:function(t){if(this.bind(),l.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,t),this._wrapS=t}},wrapT:{get:function(){return this._wrapT},set:function(t){if(this.bind(),l.indexOf(t)&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);return this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,t),this._wrapT=t}},wrap:{get:function(){return this._wrapVector},set:function(t){if(Array.isArray(t)||(t=[t,t]),2!==t.length)throw new Error(&quot;gl-texture2d: Must specify wrap mode for rows and columns&quot;);for(var e=0;e&lt;2;++e)if(l.indexOf(t[e])&lt;0)throw new Error(&quot;gl-texture2d: Unknown wrap mode &quot;+t);this._wrapS=t[0],this._wrapT=t[1];var r=this.gl;return this.bind(),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,this._wrapS),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,this._wrapT),t}},shape:{get:function(){return this._shapeVector},set:function(t){if(Array.isArray(t)){if(2!==t.length)throw new Error(&quot;gl-texture2d: Invalid texture shape&quot;)}else t=[0|t,0|t];return h(this,0|t[0],0|t[1]),[0|t[0],0|t[1]]}},width:{get:function(){return this._shape[0]},set:function(t){return h(this,t|=0,this._shape[1]),t}},height:{get:function(){return this._shape[1]},set:function(t){return t|=0,h(this,this._shape[0],t),t}}}),d.bind=function(t){var e=this.gl;return void 0!==t&amp;&amp;e.activeTexture(e.TEXTURE0+(0|t)),e.bindTexture(e.TEXTURE_2D,this.handle),void 0!==t?0|t:e.getParameter(e.ACTIVE_TEXTURE)-e.TEXTURE0},d.dispose=function(){this.gl.deleteTexture(this.handle)},d.generateMipmap=function(){this.bind(),this.gl.generateMipmap(this.gl.TEXTURE_2D);for(var t=Math.min(this._shape[0],this._shape[1]),e=0;t&gt;0;++e,t&gt;&gt;&gt;=1)this._mipLevels.indexOf(e)&lt;0&amp;&amp;this._mipLevels.push(e)},d.setPixels=function(t,e,r,o){var s=this.gl;this.bind(),Array.isArray(e)?(o=r,r=0|e[1],e=0|e[0]):(e=e||0,r=r||0),o=o||0;var l=u(t)?t:t.raw;if(l){this._mipLevels.indexOf(o)&lt;0?(s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,this.type,l),this._mipLevels.push(o)):s.texSubImage2D(s.TEXTURE_2D,o,e,r,this.format,this.type,l)}else{if(!(t.shape&amp;&amp;t.stride&amp;&amp;t.data))throw new Error(&quot;gl-texture2d: Unsupported data type&quot;);if(t.shape.length&lt;2||e+t.shape[1]&gt;this._shape[1]&gt;&gt;&gt;o||r+t.shape[0]&gt;this._shape[0]&gt;&gt;&gt;o||e&lt;0||r&lt;0)throw new Error(&quot;gl-texture2d: Texture dimensions are out of bounds&quot;);!function(t,e,r,o,s,l,c,u){var h=u.dtype,p=u.shape.slice();if(p.length&lt;2||p.length&gt;3)throw new Error(&quot;gl-texture2d: Invalid ndarray, must be 2d or 3d&quot;);var d=0,m=0,v=g(p,u.stride.slice());&quot;float32&quot;===h?d=t.FLOAT:&quot;float64&quot;===h?(d=t.FLOAT,v=!1,h=&quot;float32&quot;):&quot;uint8&quot;===h?d=t.UNSIGNED_BYTE:(d=t.UNSIGNED_BYTE,v=!1,h=&quot;uint8&quot;);if(2===p.length)m=t.LUMINANCE,p=[p[0],p[1],1],u=n(u.data,p,[u.stride[0],u.stride[1],1],u.offset);else{if(3!==p.length)throw new Error(&quot;gl-texture2d: Invalid shape for texture&quot;);if(1===p[2])m=t.ALPHA;else if(2===p[2])m=t.LUMINANCE_ALPHA;else if(3===p[2])m=t.RGB;else{if(4!==p[2])throw new Error(&quot;gl-texture2d: Invalid shape for pixel coords&quot;);m=t.RGBA}p[2]}m!==t.LUMINANCE&amp;&amp;m!==t.ALPHA||s!==t.LUMINANCE&amp;&amp;s!==t.ALPHA||(m=s);if(m!==s)throw new Error(&quot;gl-texture2d: Incompatible texture format for setPixels&quot;);var y=u.size,x=c.indexOf(o)&lt;0;x&amp;&amp;c.push(o);if(d===l&amp;&amp;v)0===u.offset&amp;&amp;u.data.length===y?x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data):x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,u.data.subarray(u.offset,u.offset+y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,u.data.subarray(u.offset,u.offset+y));else{var b;b=l===t.FLOAT?a.mallocFloat32(y):a.mallocUint8(y);var _=n(b,p,[p[2],p[2]*p[0],1]);d===t.FLOAT&amp;&amp;l===t.UNSIGNED_BYTE?f(_,u):i.assign(_,u),x?t.texImage2D(t.TEXTURE_2D,o,s,p[0],p[1],0,s,l,b.subarray(0,y)):t.texSubImage2D(t.TEXTURE_2D,o,e,r,p[0],p[1],s,l,b.subarray(0,y)),l===t.FLOAT?a.freeFloat32(b):a.freeUint8(b)}}(s,e,r,o,this.format,this.type,this._mipLevels,t)}}},{ndarray:495,&quot;ndarray-ops&quot;:490,&quot;typedarray-pool&quot;:595}],354:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;);function i(t){if(t.container)if(t.container==document.body)document.body.style.width||(t.canvas.width=t.width||t.pixelRatio*r.innerWidth),document.body.style.height||(t.canvas.height=t.height||t.pixelRatio*r.innerHeight);else{var e=t.container.getBoundingClientRect();t.canvas.width=t.width||e.right-e.left,t.canvas.height=t.height||e.bottom-e.top}}function a(t){return&quot;function&quot;==typeof t.getContext&amp;&amp;&quot;width&quot;in t&amp;&amp;&quot;height&quot;in t}function o(){var t=document.createElement(&quot;canvas&quot;);return t.style.position=&quot;absolute&quot;,t.style.top=0,t.style.left=0,t}e.exports=function(t){var e;if(t?&quot;string&quot;==typeof t&amp;&amp;(t={container:t}):t={},a(t)?t={container:t}:t=&quot;string&quot;==typeof(e=t).nodeName&amp;&amp;&quot;function&quot;==typeof e.appendChild&amp;&amp;&quot;function&quot;==typeof e.getBoundingClientRect?{container:t}:function(t){return&quot;function&quot;==typeof t.drawArrays||&quot;function&quot;==typeof t.drawElements}(t)?{gl:t}:n(t,{container:&quot;container target element el canvas holder parent parentNode wrapper use ref root node&quot;,gl:&quot;gl context webgl glContext&quot;,attrs:&quot;attributes attrs contextAttributes&quot;,pixelRatio:&quot;pixelRatio pxRatio px ratio pxratio pixelratio&quot;,width:&quot;w width&quot;,height:&quot;h height&quot;},!0),t.pixelRatio||(t.pixelRatio=r.pixelRatio||1),t.gl)return t.gl;if(t.canvas&amp;&amp;(t.container=t.canvas.parentNode),t.container){if(&quot;string&quot;==typeof t.container){var s=document.querySelector(t.container);if(!s)throw Error(&quot;Element &quot;+t.container+&quot; is not found&quot;);t.container=s}a(t.container)?(t.canvas=t.container,t.container=t.canvas.parentNode):t.canvas||(t.canvas=o(),t.container.appendChild(t.canvas),i(t))}else if(!t.canvas){if(&quot;undefined&quot;==typeof document)throw Error(&quot;Not DOM environment. Use headless-gl.&quot;);t.container=document.body||document.documentElement,t.canvas=o(),t.container.appendChild(t.canvas),i(t)}if(!t.gl)try{t.gl=t.canvas.getContext(&quot;webgl&quot;,t.attrs)}catch(e){try{t.gl=t.canvas.getContext(&quot;experimental-webgl&quot;,t.attrs)}catch(e){t.gl=t.canvas.getContext(&quot;webgl-experimental&quot;,t.attrs)}}return t.gl}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;pick-by-alias&quot;:511}],355:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){e?e.bind():t.bindBuffer(t.ELEMENT_ARRAY_BUFFER,null);var n=0|t.getParameter(t.MAX_VERTEX_ATTRIBS);if(r){if(r.length&gt;n)throw new Error(&quot;gl-vao: Too many vertex attributes&quot;);for(var i=0;i&lt;r.length;++i){var a=r[i];if(a.buffer){var o=a.buffer,s=a.size||4,l=a.type||t.FLOAT,c=!!a.normalized,u=a.stride||0,f=a.offset||0;o.bind(),t.enableVertexAttribArray(i),t.vertexAttribPointer(i,s,l,c,u,f)}else{if(&quot;number&quot;==typeof a)t.vertexAttrib1f(i,a);else if(1===a.length)t.vertexAttrib1f(i,a[0]);else if(2===a.length)t.vertexAttrib2f(i,a[0],a[1]);else if(3===a.length)t.vertexAttrib3f(i,a[0],a[1],a[2]);else{if(4!==a.length)throw new Error(&quot;gl-vao: Invalid vertex attribute&quot;);t.vertexAttrib4f(i,a[0],a[1],a[2],a[3])}t.disableVertexAttribArray(i)}}for(;i&lt;n;++i)t.disableVertexAttribArray(i)}else{t.bindBuffer(t.ARRAY_BUFFER,null);for(i=0;i&lt;n;++i)t.disableVertexAttribArray(i)}}},{}],356:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./do-bind.js&quot;);function i(t){this.gl=t,this._elements=null,this._attributes=null,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(){n(this.gl,this._elements,this._attributes)},i.prototype.update=function(t,e,r){this._elements=e,this._attributes=t,this._elementsType=r||this.gl.UNSIGNED_SHORT},i.prototype.dispose=function(){},i.prototype.unbind=function(){},i.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._elements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t){return new i(t)}},{&quot;./do-bind.js&quot;:355}],357:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./do-bind.js&quot;);function i(t,e,r,n,i,a){this.location=t,this.dimension=e,this.a=r,this.b=n,this.c=i,this.d=a}function a(t,e,r){this.gl=t,this._ext=e,this.handle=r,this._attribs=[],this._useElements=!1,this._elementsType=t.UNSIGNED_SHORT}i.prototype.bind=function(t){switch(this.dimension){case 1:t.vertexAttrib1f(this.location,this.a);break;case 2:t.vertexAttrib2f(this.location,this.a,this.b);break;case 3:t.vertexAttrib3f(this.location,this.a,this.b,this.c);break;case 4:t.vertexAttrib4f(this.location,this.a,this.b,this.c,this.d)}},a.prototype.bind=function(){this._ext.bindVertexArrayOES(this.handle);for(var t=0;t&lt;this._attribs.length;++t)this._attribs[t].bind(this.gl)},a.prototype.unbind=function(){this._ext.bindVertexArrayOES(null)},a.prototype.dispose=function(){this._ext.deleteVertexArrayOES(this.handle)},a.prototype.update=function(t,e,r){if(this.bind(),n(this.gl,e,t),this.unbind(),this._attribs.length=0,t)for(var a=0;a&lt;t.length;++a){var o=t[a];&quot;number&quot;==typeof o?this._attribs.push(new i(a,1,o)):Array.isArray(o)&amp;&amp;this._attribs.push(new i(a,o.length,o[0],o[1],o[2],o[3]))}this._useElements=!!e,this._elementsType=r||this.gl.UNSIGNED_SHORT},a.prototype.draw=function(t,e,r){r=r||0;var n=this.gl;this._useElements?n.drawElements(t,e,this._elementsType,r):n.drawArrays(t,r,e)},e.exports=function(t,e){return new a(t,e,e.createVertexArrayOES())}},{&quot;./do-bind.js&quot;:355}],358:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/vao-native.js&quot;),i=t(&quot;./lib/vao-emulated.js&quot;);function a(t){this.bindVertexArrayOES=t.bindVertexArray.bind(t),this.createVertexArrayOES=t.createVertexArray.bind(t),this.deleteVertexArrayOES=t.deleteVertexArray.bind(t)}e.exports=function(t,e,r,o){var s,l=t.createVertexArray?new a(t):t.getExtension(&quot;OES_vertex_array_object&quot;);return(s=l?n(t,l):i(t)).update(e,r,o),s}},{&quot;./lib/vao-emulated.js&quot;:356,&quot;./lib/vao-native.js&quot;:357}],359:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t}},{}],360:[function(t,e,r){e.exports=function(t,e){var r=n(t[0],t[1],t[2]),o=n(e[0],e[1],e[2]);i(r,r),i(o,o);var s=a(r,o);return s&gt;1?0:Math.acos(s)};var n=t(&quot;./fromValues&quot;),i=t(&quot;./normalize&quot;),a=t(&quot;./dot&quot;)},{&quot;./dot&quot;:370,&quot;./fromValues&quot;:376,&quot;./normalize&quot;:387}],361:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}},{}],362:[function(t,e,r){e.exports=function(t){var e=new Float32Array(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}},{}],363:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}},{}],364:[function(t,e,r){e.exports=function(){var t=new Float32Array(3);return t[0]=0,t[1]=0,t[2]=0,t}},{}],365:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t}},{}],366:[function(t,e,r){e.exports=t(&quot;./distance&quot;)},{&quot;./distance&quot;:367}],367:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}},{}],368:[function(t,e,r){e.exports=t(&quot;./divide&quot;)},{&quot;./divide&quot;:369}],369:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t}},{}],370:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}},{}],371:[function(t,e,r){e.exports=1e-6},{}],372:[function(t,e,r){e.exports=function(t,e){var r=t[0],i=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(r-o)&lt;=n*Math.max(1,Math.abs(r),Math.abs(o))&amp;&amp;Math.abs(i-s)&lt;=n*Math.max(1,Math.abs(i),Math.abs(s))&amp;&amp;Math.abs(a-l)&lt;=n*Math.max(1,Math.abs(a),Math.abs(l))};var n=t(&quot;./epsilon&quot;)},{&quot;./epsilon&quot;:371}],373:[function(t,e,r){e.exports=function(t,e){return t[0]===e[0]&amp;&amp;t[1]===e[1]&amp;&amp;t[2]===e[2]}},{}],374:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}},{}],375:[function(t,e,r){e.exports=function(t,e,r,i,a,o){var s,l;e||(e=3);r||(r=0);l=i?Math.min(i*e+r,t.length):t.length;for(s=r;s&lt;l;s+=e)n[0]=t[s],n[1]=t[s+1],n[2]=t[s+2],a(n,n,o),t[s]=n[0],t[s+1]=n[1],t[s+2]=n[2];return t};var n=t(&quot;./create&quot;)()},{&quot;./create&quot;:364}],376:[function(t,e,r){e.exports=function(t,e,r){var n=new Float32Array(3);return n[0]=t,n[1]=e,n[2]=r,n}},{}],377:[function(t,e,r){e.exports={EPSILON:t(&quot;./epsilon&quot;),create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),angle:t(&quot;./angle&quot;),fromValues:t(&quot;./fromValues&quot;),copy:t(&quot;./copy&quot;),set:t(&quot;./set&quot;),equals:t(&quot;./equals&quot;),exactEquals:t(&quot;./exactEquals&quot;),add:t(&quot;./add&quot;),subtract:t(&quot;./subtract&quot;),sub:t(&quot;./sub&quot;),multiply:t(&quot;./multiply&quot;),mul:t(&quot;./mul&quot;),divide:t(&quot;./divide&quot;),div:t(&quot;./div&quot;),min:t(&quot;./min&quot;),max:t(&quot;./max&quot;),floor:t(&quot;./floor&quot;),ceil:t(&quot;./ceil&quot;),round:t(&quot;./round&quot;),scale:t(&quot;./scale&quot;),scaleAndAdd:t(&quot;./scaleAndAdd&quot;),distance:t(&quot;./distance&quot;),dist:t(&quot;./dist&quot;),squaredDistance:t(&quot;./squaredDistance&quot;),sqrDist:t(&quot;./sqrDist&quot;),length:t(&quot;./length&quot;),len:t(&quot;./len&quot;),squaredLength:t(&quot;./squaredLength&quot;),sqrLen:t(&quot;./sqrLen&quot;),negate:t(&quot;./negate&quot;),inverse:t(&quot;./inverse&quot;),normalize:t(&quot;./normalize&quot;),dot:t(&quot;./dot&quot;),cross:t(&quot;./cross&quot;),lerp:t(&quot;./lerp&quot;),random:t(&quot;./random&quot;),transformMat4:t(&quot;./transformMat4&quot;),transformMat3:t(&quot;./transformMat3&quot;),transformQuat:t(&quot;./transformQuat&quot;),rotateX:t(&quot;./rotateX&quot;),rotateY:t(&quot;./rotateY&quot;),rotateZ:t(&quot;./rotateZ&quot;),forEach:t(&quot;./forEach&quot;)}},{&quot;./add&quot;:359,&quot;./angle&quot;:360,&quot;./ceil&quot;:361,&quot;./clone&quot;:362,&quot;./copy&quot;:363,&quot;./create&quot;:364,&quot;./cross&quot;:365,&quot;./dist&quot;:366,&quot;./distance&quot;:367,&quot;./div&quot;:368,&quot;./divide&quot;:369,&quot;./dot&quot;:370,&quot;./epsilon&quot;:371,&quot;./equals&quot;:372,&quot;./exactEquals&quot;:373,&quot;./floor&quot;:374,&quot;./forEach&quot;:375,&quot;./fromValues&quot;:376,&quot;./inverse&quot;:378,&quot;./len&quot;:379,&quot;./length&quot;:380,&quot;./lerp&quot;:381,&quot;./max&quot;:382,&quot;./min&quot;:383,&quot;./mul&quot;:384,&quot;./multiply&quot;:385,&quot;./negate&quot;:386,&quot;./normalize&quot;:387,&quot;./random&quot;:388,&quot;./rotateX&quot;:389,&quot;./rotateY&quot;:390,&quot;./rotateZ&quot;:391,&quot;./round&quot;:392,&quot;./scale&quot;:393,&quot;./scaleAndAdd&quot;:394,&quot;./set&quot;:395,&quot;./sqrDist&quot;:396,&quot;./sqrLen&quot;:397,&quot;./squaredDistance&quot;:398,&quot;./squaredLength&quot;:399,&quot;./sub&quot;:400,&quot;./subtract&quot;:401,&quot;./transformMat3&quot;:402,&quot;./transformMat4&quot;:403,&quot;./transformQuat&quot;:404}],378:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}},{}],379:[function(t,e,r){e.exports=t(&quot;./length&quot;)},{&quot;./length&quot;:380}],380:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return Math.sqrt(e*e+r*r+n*n)}},{}],381:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t}},{}],382:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t}},{}],383:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t}},{}],384:[function(t,e,r){e.exports=t(&quot;./multiply&quot;)},{&quot;./multiply&quot;:385}],385:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t}},{}],386:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}},{}],387:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;a&gt;0&amp;&amp;(a=1/Math.sqrt(a),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a);return t}},{}],388:[function(t,e,r){e.exports=function(t,e){e=e||1;var r=2*Math.random()*Math.PI,n=2*Math.random()-1,i=Math.sqrt(1-n*n)*e;return t[0]=Math.cos(r)*i,t[1]=Math.sin(r)*i,t[2]=n*e,t}},{}],389:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[1],a=r[2],o=e[1]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=e[0],t[1]=i+o*c-s*l,t[2]=a+o*l+s*c,t}},{}],390:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[2],o=e[0]-i,s=e[2]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+s*l+o*c,t[1]=e[1],t[2]=a+s*c-o*l,t}},{}],391:[function(t,e,r){e.exports=function(t,e,r,n){var i=r[0],a=r[1],o=e[0]-i,s=e[1]-a,l=Math.sin(n),c=Math.cos(n);return t[0]=i+o*c-s*l,t[1]=a+o*l+s*c,t[2]=e[2],t}},{}],392:[function(t,e,r){e.exports=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}},{}],393:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t}},{}],394:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t}},{}],395:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e,t[1]=r,t[2]=n,t}},{}],396:[function(t,e,r){e.exports=t(&quot;./squaredDistance&quot;)},{&quot;./squaredDistance&quot;:398}],397:[function(t,e,r){e.exports=t(&quot;./squaredLength&quot;)},{&quot;./squaredLength&quot;:399}],398:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2];return r*r+n*n+i*i}},{}],399:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2];return e*e+r*r+n*n}},{}],400:[function(t,e,r){e.exports=t(&quot;./subtract&quot;)},{&quot;./subtract&quot;:401}],401:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t}},{}],402:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t}},{}],403:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,t[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,t[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,t[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,t}},{}],404:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t}},{}],405:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t[3]=e[3]+r[3],t}},{}],406:[function(t,e,r){e.exports=function(t){var e=new Float32Array(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}},{}],407:[function(t,e,r){e.exports=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}},{}],408:[function(t,e,r){e.exports=function(){var t=new Float32Array(4);return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t}},{}],409:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.sqrt(r*r+n*n+i*i+a*a)}},{}],410:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]/r[0],t[1]=e[1]/r[1],t[2]=e[2]/r[2],t[3]=e[3]/r[3],t}},{}],411:[function(t,e,r){e.exports=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}},{}],412:[function(t,e,r){e.exports=function(t,e,r,n){var i=new Float32Array(4);return i[0]=t,i[1]=e,i[2]=r,i[3]=n,i}},{}],413:[function(t,e,r){e.exports={create:t(&quot;./create&quot;),clone:t(&quot;./clone&quot;),fromValues:t(&quot;./fromValues&quot;),copy:t(&quot;./copy&quot;),set:t(&quot;./set&quot;),add:t(&quot;./add&quot;),subtract:t(&quot;./subtract&quot;),multiply:t(&quot;./multiply&quot;),divide:t(&quot;./divide&quot;),min:t(&quot;./min&quot;),max:t(&quot;./max&quot;),scale:t(&quot;./scale&quot;),scaleAndAdd:t(&quot;./scaleAndAdd&quot;),distance:t(&quot;./distance&quot;),squaredDistance:t(&quot;./squaredDistance&quot;),length:t(&quot;./length&quot;),squaredLength:t(&quot;./squaredLength&quot;),negate:t(&quot;./negate&quot;),inverse:t(&quot;./inverse&quot;),normalize:t(&quot;./normalize&quot;),dot:t(&quot;./dot&quot;),lerp:t(&quot;./lerp&quot;),random:t(&quot;./random&quot;),transformMat4:t(&quot;./transformMat4&quot;),transformQuat:t(&quot;./transformQuat&quot;)}},{&quot;./add&quot;:405,&quot;./clone&quot;:406,&quot;./copy&quot;:407,&quot;./create&quot;:408,&quot;./distance&quot;:409,&quot;./divide&quot;:410,&quot;./dot&quot;:411,&quot;./fromValues&quot;:412,&quot;./inverse&quot;:414,&quot;./length&quot;:415,&quot;./lerp&quot;:416,&quot;./max&quot;:417,&quot;./min&quot;:418,&quot;./multiply&quot;:419,&quot;./negate&quot;:420,&quot;./normalize&quot;:421,&quot;./random&quot;:422,&quot;./scale&quot;:423,&quot;./scaleAndAdd&quot;:424,&quot;./set&quot;:425,&quot;./squaredDistance&quot;:426,&quot;./squaredLength&quot;:427,&quot;./subtract&quot;:428,&quot;./transformMat4&quot;:429,&quot;./transformQuat&quot;:430}],414:[function(t,e,r){e.exports=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t}},{}],415:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return Math.sqrt(e*e+r*r+n*n+i*i)}},{}],416:[function(t,e,r){e.exports=function(t,e,r,n){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+n*(r[0]-i),t[1]=a+n*(r[1]-a),t[2]=o+n*(r[2]-o),t[3]=s+n*(r[3]-s),t}},{}],417:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.max(e[0],r[0]),t[1]=Math.max(e[1],r[1]),t[2]=Math.max(e[2],r[2]),t[3]=Math.max(e[3],r[3]),t}},{}],418:[function(t,e,r){e.exports=function(t,e,r){return t[0]=Math.min(e[0],r[0]),t[1]=Math.min(e[1],r[1]),t[2]=Math.min(e[2],r[2]),t[3]=Math.min(e[3],r[3]),t}},{}],419:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r[0],t[1]=e[1]*r[1],t[2]=e[2]*r[2],t[3]=e[3]*r[3],t}},{}],420:[function(t,e,r){e.exports=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t}},{}],421:[function(t,e,r){e.exports=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=r*r+n*n+i*i+a*a;o&gt;0&amp;&amp;(o=1/Math.sqrt(o),t[0]=r*o,t[1]=n*o,t[2]=i*o,t[3]=a*o);return t}},{}],422:[function(t,e,r){var n=t(&quot;./normalize&quot;),i=t(&quot;./scale&quot;);e.exports=function(t,e){return e=e||1,t[0]=Math.random(),t[1]=Math.random(),t[2]=Math.random(),t[3]=Math.random(),n(t,t),i(t,t,e),t}},{&quot;./normalize&quot;:421,&quot;./scale&quot;:423}],423:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t}},{}],424:[function(t,e,r){e.exports=function(t,e,r,n){return t[0]=e[0]+r[0]*n,t[1]=e[1]+r[1]*n,t[2]=e[2]+r[2]*n,t[3]=e[3]+r[3]*n,t}},{}],425:[function(t,e,r){e.exports=function(t,e,r,n,i){return t[0]=e,t[1]=r,t[2]=n,t[3]=i,t}},{}],426:[function(t,e,r){e.exports=function(t,e){var r=e[0]-t[0],n=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return r*r+n*n+i*i+a*a}},{}],427:[function(t,e,r){e.exports=function(t){var e=t[0],r=t[1],n=t[2],i=t[3];return e*e+r*r+n*n+i*i}},{}],428:[function(t,e,r){e.exports=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t[3]=e[3]-r[3],t}},{}],429:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}},{}],430:[function(t,e,r){e.exports=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2],c=r[3],u=c*n+s*a-l*i,f=c*i+l*n-o*a,h=c*a+o*i-s*n,p=-o*n-s*i-l*a;return t[0]=u*c+p*-o+f*-l-h*-s,t[1]=f*c+p*-s+h*-o-u*-l,t[2]=h*c+p*-l+u*-s-f*-o,t[3]=e[3],t}},{}],431:[function(t,e,r){var n=t(&quot;glsl-tokenizer&quot;),i=t(&quot;atob-lite&quot;);e.exports=function(t){for(var e=Array.isArray(t)?t:n(t),r=0;r&lt;e.length;r++){var a=e[r];if(&quot;preprocessor&quot;===a.type){var o=a.data.match(/\#define\s+SHADER_NAME(_B64)?\s+(.+)$/);if(o&amp;&amp;o[2]){var s=o[1],l=o[2];return(s?i(l):l).trim()}}}}},{&quot;atob-lite&quot;:77,&quot;glsl-tokenizer&quot;:438}],432:[function(t,e,r){e.exports=function(t){var e,r,c,u=0,f=0,h=999,p=[],d=[],g=1,m=0,v=0,y=!1,x=!1,b=&quot;&quot;,_=a,w=n;&quot;300 es&quot;===(t=t||{}).version&amp;&amp;(_=s,w=o);var T={},k={};for(u=0;u&lt;_.length;u++)T[_[u]]=!0;for(u=0;u&lt;w.length;u++)k[w[u]]=!0;return function(t){return d=[],null!==t?function(t){u=0,t.toString&amp;&amp;(t=t.toString());var r;b+=t.replace(/\r\n/g,&quot;\n&quot;),c=b.length;for(;e=b[u],u&lt;c;){switch(r=u,h){case 0:u=C();break;case 1:case 2:u=E();break;case 3:u=L();break;case 4:u=z();break;case 11:u=P();break;case 5:u=O();break;case 9999:u=D();break;case 9:u=S();break;case 999:u=A()}if(r!==u)switch(b[r]){case&quot;\n&quot;:m=0,++g;break;default:++m}}return f+=u,b=b.slice(u),d}(t):function(t){p.length&amp;&amp;M(p.join(&quot;&quot;));return h=10,M(&quot;(eof)&quot;),d}()};function M(t){t.length&amp;&amp;d.push({type:l[h],data:t,position:v,line:g,column:m})}function A(){return p=p.length?[]:p,&quot;/&quot;===r&amp;&amp;&quot;*&quot;===e?(v=f+u-1,h=0,r=e,u+1):&quot;/&quot;===r&amp;&amp;&quot;/&quot;===e?(v=f+u-1,h=1,r=e,u+1):&quot;#&quot;===e?(h=2,v=f+u,u):/\s/.test(e)?(h=9,v=f+u,u):(y=/\d/.test(e),x=/[^\w_]/.test(e),v=f+u,h=y?4:x?3:9999,u)}function S(){return/[^\s]/g.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function E(){return&quot;\r&quot;!==e&amp;&amp;&quot;\n&quot;!==e||&quot;\\&quot;===r?(p.push(e),r=e,u+1):(M(p.join(&quot;&quot;)),h=999,u)}function C(){return&quot;/&quot;===e&amp;&amp;&quot;*&quot;===r?(p.push(e),M(p.join(&quot;&quot;)),h=999,u+1):(p.push(e),r=e,u+1)}function L(){if(&quot;.&quot;===r&amp;&amp;/\d/.test(e))return h=5,u;if(&quot;/&quot;===r&amp;&amp;&quot;*&quot;===e)return h=0,u;if(&quot;/&quot;===r&amp;&amp;&quot;/&quot;===e)return h=1,u;if(&quot;.&quot;===e&amp;&amp;p.length){for(;I(p););return h=5,u}if(&quot;;&quot;===e||&quot;)&quot;===e||&quot;(&quot;===e){if(p.length)for(;I(p););return M(e),h=999,u+1}var t=2===p.length&amp;&amp;&quot;=&quot;!==e;if(/[\w_\d\s]/.test(e)||t){for(;I(p););return h=999,u}return p.push(e),r=e,u+1}function I(t){for(var e,r,n=0;;){if(e=i.indexOf(t.slice(0,t.length+n).join(&quot;&quot;)),r=i[e],-1===e){if(n--+t.length&gt;0)continue;r=t.slice(0,1).join(&quot;&quot;)}return M(r),v+=r.length,(p=p.slice(r.length)).length}}function P(){return/[^a-fA-F0-9]/.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function z(){return&quot;.&quot;===e||/[eE]/.test(e)?(p.push(e),h=5,r=e,u+1):&quot;x&quot;===e&amp;&amp;1===p.length&amp;&amp;&quot;0&quot;===p[0]?(h=11,p.push(e),r=e,u+1):/[^\d]/.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function O(){return&quot;f&quot;===e&amp;&amp;(p.push(e),r=e,u+=1),/[eE]/.test(e)?(p.push(e),r=e,u+1):(&quot;-&quot;!==e&amp;&amp;&quot;+&quot;!==e||!/[eE]/.test(r))&amp;&amp;/[^\d]/.test(e)?(M(p.join(&quot;&quot;)),h=999,u):(p.push(e),r=e,u+1)}function D(){if(/[^\d\w_]/.test(e)){var t=p.join(&quot;&quot;);return h=k[t]?8:T[t]?7:6,M(p.join(&quot;&quot;)),h=999,u}return p.push(e),r=e,u+1}};var n=t(&quot;./lib/literals&quot;),i=t(&quot;./lib/operators&quot;),a=t(&quot;./lib/builtins&quot;),o=t(&quot;./lib/literals-300es&quot;),s=t(&quot;./lib/builtins-300es&quot;),l=[&quot;block-comment&quot;,&quot;line-comment&quot;,&quot;preprocessor&quot;,&quot;operator&quot;,&quot;integer&quot;,&quot;float&quot;,&quot;ident&quot;,&quot;builtin&quot;,&quot;keyword&quot;,&quot;whitespace&quot;,&quot;eof&quot;,&quot;integer&quot;]},{&quot;./lib/builtins&quot;:434,&quot;./lib/builtins-300es&quot;:433,&quot;./lib/literals&quot;:436,&quot;./lib/literals-300es&quot;:435,&quot;./lib/operators&quot;:437}],433:[function(t,e,r){var n=t(&quot;./builtins&quot;);n=n.slice().filter((function(t){return!/^(gl\_|texture)/.test(t)})),e.exports=n.concat([&quot;gl_VertexID&quot;,&quot;gl_InstanceID&quot;,&quot;gl_Position&quot;,&quot;gl_PointSize&quot;,&quot;gl_FragCoord&quot;,&quot;gl_FrontFacing&quot;,&quot;gl_FragDepth&quot;,&quot;gl_PointCoord&quot;,&quot;gl_MaxVertexAttribs&quot;,&quot;gl_MaxVertexUniformVectors&quot;,&quot;gl_MaxVertexOutputVectors&quot;,&quot;gl_MaxFragmentInputVectors&quot;,&quot;gl_MaxVertexTextureImageUnits&quot;,&quot;gl_MaxCombinedTextureImageUnits&quot;,&quot;gl_MaxTextureImageUnits&quot;,&quot;gl_MaxFragmentUniformVectors&quot;,&quot;gl_MaxDrawBuffers&quot;,&quot;gl_MinProgramTexelOffset&quot;,&quot;gl_MaxProgramTexelOffset&quot;,&quot;gl_DepthRangeParameters&quot;,&quot;gl_DepthRange&quot;,&quot;trunc&quot;,&quot;round&quot;,&quot;roundEven&quot;,&quot;isnan&quot;,&quot;isinf&quot;,&quot;floatBitsToInt&quot;,&quot;floatBitsToUint&quot;,&quot;intBitsToFloat&quot;,&quot;uintBitsToFloat&quot;,&quot;packSnorm2x16&quot;,&quot;unpackSnorm2x16&quot;,&quot;packUnorm2x16&quot;,&quot;unpackUnorm2x16&quot;,&quot;packHalf2x16&quot;,&quot;unpackHalf2x16&quot;,&quot;outerProduct&quot;,&quot;transpose&quot;,&quot;determinant&quot;,&quot;inverse&quot;,&quot;texture&quot;,&quot;textureSize&quot;,&quot;textureProj&quot;,&quot;textureLod&quot;,&quot;textureOffset&quot;,&quot;texelFetch&quot;,&quot;texelFetchOffset&quot;,&quot;textureProjOffset&quot;,&quot;textureLodOffset&quot;,&quot;textureProjLod&quot;,&quot;textureProjLodOffset&quot;,&quot;textureGrad&quot;,&quot;textureGradOffset&quot;,&quot;textureProjGrad&quot;,&quot;textureProjGradOffset&quot;])},{&quot;./builtins&quot;:434}],434:[function(t,e,r){e.exports=[&quot;abs&quot;,&quot;acos&quot;,&quot;all&quot;,&quot;any&quot;,&quot;asin&quot;,&quot;atan&quot;,&quot;ceil&quot;,&quot;clamp&quot;,&quot;cos&quot;,&quot;cross&quot;,&quot;dFdx&quot;,&quot;dFdy&quot;,&quot;degrees&quot;,&quot;distance&quot;,&quot;dot&quot;,&quot;equal&quot;,&quot;exp&quot;,&quot;exp2&quot;,&quot;faceforward&quot;,&quot;floor&quot;,&quot;fract&quot;,&quot;gl_BackColor&quot;,&quot;gl_BackLightModelProduct&quot;,&quot;gl_BackLightProduct&quot;,&quot;gl_BackMaterial&quot;,&quot;gl_BackSecondaryColor&quot;,&quot;gl_ClipPlane&quot;,&quot;gl_ClipVertex&quot;,&quot;gl_Color&quot;,&quot;gl_DepthRange&quot;,&quot;gl_DepthRangeParameters&quot;,&quot;gl_EyePlaneQ&quot;,&quot;gl_EyePlaneR&quot;,&quot;gl_EyePlaneS&quot;,&quot;gl_EyePlaneT&quot;,&quot;gl_Fog&quot;,&quot;gl_FogCoord&quot;,&quot;gl_FogFragCoord&quot;,&quot;gl_FogParameters&quot;,&quot;gl_FragColor&quot;,&quot;gl_FragCoord&quot;,&quot;gl_FragData&quot;,&quot;gl_FragDepth&quot;,&quot;gl_FragDepthEXT&quot;,&quot;gl_FrontColor&quot;,&quot;gl_FrontFacing&quot;,&quot;gl_FrontLightModelProduct&quot;,&quot;gl_FrontLightProduct&quot;,&quot;gl_FrontMaterial&quot;,&quot;gl_FrontSecondaryColor&quot;,&quot;gl_LightModel&quot;,&quot;gl_LightModelParameters&quot;,&quot;gl_LightModelProducts&quot;,&quot;gl_LightProducts&quot;,&quot;gl_LightSource&quot;,&quot;gl_LightSourceParameters&quot;,&quot;gl_MaterialParameters&quot;,&quot;gl_MaxClipPlanes&quot;,&quot;gl_MaxCombinedTextureImageUnits&quot;,&quot;gl_MaxDrawBuffers&quot;,&quot;gl_MaxFragmentUniformComponents&quot;,&quot;gl_MaxLights&quot;,&quot;gl_MaxTextureCoords&quot;,&quot;gl_MaxTextureImageUnits&quot;,&quot;gl_MaxTextureUnits&quot;,&quot;gl_MaxVaryingFloats&quot;,&quot;gl_MaxVertexAttribs&quot;,&quot;gl_MaxVertexTextureImageUnits&quot;,&quot;gl_MaxVertexUniformComponents&quot;,&quot;gl_ModelViewMatrix&quot;,&quot;gl_ModelViewMatrixInverse&quot;,&quot;gl_ModelViewMatrixInverseTranspose&quot;,&quot;gl_ModelViewMatrixTranspose&quot;,&quot;gl_ModelViewProjectionMatrix&quot;,&quot;gl_ModelViewProjectionMatrixInverse&quot;,&quot;gl_ModelViewProjectionMatrixInverseTranspose&quot;,&quot;gl_ModelViewProjectionMatrixTranspose&quot;,&quot;gl_MultiTexCoord0&quot;,&quot;gl_MultiTexCoord1&quot;,&quot;gl_MultiTexCoord2&quot;,&quot;gl_MultiTexCoord3&quot;,&quot;gl_MultiTexCoord4&quot;,&quot;gl_MultiTexCoord5&quot;,&quot;gl_MultiTexCoord6&quot;,&quot;gl_MultiTexCoord7&quot;,&quot;gl_Normal&quot;,&quot;gl_NormalMatrix&quot;,&quot;gl_NormalScale&quot;,&quot;gl_ObjectPlaneQ&quot;,&quot;gl_ObjectPlaneR&quot;,&quot;gl_ObjectPlaneS&quot;,&quot;gl_ObjectPlaneT&quot;,&quot;gl_Point&quot;,&quot;gl_PointCoord&quot;,&quot;gl_PointParameters&quot;,&quot;gl_PointSize&quot;,&quot;gl_Position&quot;,&quot;gl_ProjectionMatrix&quot;,&quot;gl_ProjectionMatrixInverse&quot;,&quot;gl_ProjectionMatrixInverseTranspose&quot;,&quot;gl_ProjectionMatrixTranspose&quot;,&quot;gl_SecondaryColor&quot;,&quot;gl_TexCoord&quot;,&quot;gl_TextureEnvColor&quot;,&quot;gl_TextureMatrix&quot;,&quot;gl_TextureMatrixInverse&quot;,&quot;gl_TextureMatrixInverseTranspose&quot;,&quot;gl_TextureMatrixTranspose&quot;,&quot;gl_Vertex&quot;,&quot;greaterThan&quot;,&quot;greaterThanEqual&quot;,&quot;inversesqrt&quot;,&quot;length&quot;,&quot;lessThan&quot;,&quot;lessThanEqual&quot;,&quot;log&quot;,&quot;log2&quot;,&quot;matrixCompMult&quot;,&quot;max&quot;,&quot;min&quot;,&quot;mix&quot;,&quot;mod&quot;,&quot;normalize&quot;,&quot;not&quot;,&quot;notEqual&quot;,&quot;pow&quot;,&quot;radians&quot;,&quot;reflect&quot;,&quot;refract&quot;,&quot;sign&quot;,&quot;sin&quot;,&quot;smoothstep&quot;,&quot;sqrt&quot;,&quot;step&quot;,&quot;tan&quot;,&quot;texture2D&quot;,&quot;texture2DLod&quot;,&quot;texture2DProj&quot;,&quot;texture2DProjLod&quot;,&quot;textureCube&quot;,&quot;textureCubeLod&quot;,&quot;texture2DLodEXT&quot;,&quot;texture2DProjLodEXT&quot;,&quot;textureCubeLodEXT&quot;,&quot;texture2DGradEXT&quot;,&quot;texture2DProjGradEXT&quot;,&quot;textureCubeGradEXT&quot;]},{}],435:[function(t,e,r){var n=t(&quot;./literals&quot;);e.exports=n.slice().concat([&quot;layout&quot;,&quot;centroid&quot;,&quot;smooth&quot;,&quot;case&quot;,&quot;mat2x2&quot;,&quot;mat2x3&quot;,&quot;mat2x4&quot;,&quot;mat3x2&quot;,&quot;mat3x3&quot;,&quot;mat3x4&quot;,&quot;mat4x2&quot;,&quot;mat4x3&quot;,&quot;mat4x4&quot;,&quot;uvec2&quot;,&quot;uvec3&quot;,&quot;uvec4&quot;,&quot;samplerCubeShadow&quot;,&quot;sampler2DArray&quot;,&quot;sampler2DArrayShadow&quot;,&quot;isampler2D&quot;,&quot;isampler3D&quot;,&quot;isamplerCube&quot;,&quot;isampler2DArray&quot;,&quot;usampler2D&quot;,&quot;usampler3D&quot;,&quot;usamplerCube&quot;,&quot;usampler2DArray&quot;,&quot;coherent&quot;,&quot;restrict&quot;,&quot;readonly&quot;,&quot;writeonly&quot;,&quot;resource&quot;,&quot;atomic_uint&quot;,&quot;noperspective&quot;,&quot;patch&quot;,&quot;sample&quot;,&quot;subroutine&quot;,&quot;common&quot;,&quot;partition&quot;,&quot;active&quot;,&quot;filter&quot;,&quot;image1D&quot;,&quot;image2D&quot;,&quot;image3D&quot;,&quot;imageCube&quot;,&quot;iimage1D&quot;,&quot;iimage2D&quot;,&quot;iimage3D&quot;,&quot;iimageCube&quot;,&quot;uimage1D&quot;,&quot;uimage2D&quot;,&quot;uimage3D&quot;,&quot;uimageCube&quot;,&quot;image1DArray&quot;,&quot;image2DArray&quot;,&quot;iimage1DArray&quot;,&quot;iimage2DArray&quot;,&quot;uimage1DArray&quot;,&quot;uimage2DArray&quot;,&quot;image1DShadow&quot;,&quot;image2DShadow&quot;,&quot;image1DArrayShadow&quot;,&quot;image2DArrayShadow&quot;,&quot;imageBuffer&quot;,&quot;iimageBuffer&quot;,&quot;uimageBuffer&quot;,&quot;sampler1DArray&quot;,&quot;sampler1DArrayShadow&quot;,&quot;isampler1D&quot;,&quot;isampler1DArray&quot;,&quot;usampler1D&quot;,&quot;usampler1DArray&quot;,&quot;isampler2DRect&quot;,&quot;usampler2DRect&quot;,&quot;samplerBuffer&quot;,&quot;isamplerBuffer&quot;,&quot;usamplerBuffer&quot;,&quot;sampler2DMS&quot;,&quot;isampler2DMS&quot;,&quot;usampler2DMS&quot;,&quot;sampler2DMSArray&quot;,&quot;isampler2DMSArray&quot;,&quot;usampler2DMSArray&quot;])},{&quot;./literals&quot;:436}],436:[function(t,e,r){e.exports=[&quot;precision&quot;,&quot;highp&quot;,&quot;mediump&quot;,&quot;lowp&quot;,&quot;attribute&quot;,&quot;const&quot;,&quot;uniform&quot;,&quot;varying&quot;,&quot;break&quot;,&quot;continue&quot;,&quot;do&quot;,&quot;for&quot;,&quot;while&quot;,&quot;if&quot;,&quot;else&quot;,&quot;in&quot;,&quot;out&quot;,&quot;inout&quot;,&quot;float&quot;,&quot;int&quot;,&quot;uint&quot;,&quot;void&quot;,&quot;bool&quot;,&quot;true&quot;,&quot;false&quot;,&quot;discard&quot;,&quot;return&quot;,&quot;mat2&quot;,&quot;mat3&quot;,&quot;mat4&quot;,&quot;vec2&quot;,&quot;vec3&quot;,&quot;vec4&quot;,&quot;ivec2&quot;,&quot;ivec3&quot;,&quot;ivec4&quot;,&quot;bvec2&quot;,&quot;bvec3&quot;,&quot;bvec4&quot;,&quot;sampler1D&quot;,&quot;sampler2D&quot;,&quot;sampler3D&quot;,&quot;samplerCube&quot;,&quot;sampler1DShadow&quot;,&quot;sampler2DShadow&quot;,&quot;struct&quot;,&quot;asm&quot;,&quot;class&quot;,&quot;union&quot;,&quot;enum&quot;,&quot;typedef&quot;,&quot;template&quot;,&quot;this&quot;,&quot;packed&quot;,&quot;goto&quot;,&quot;switch&quot;,&quot;default&quot;,&quot;inline&quot;,&quot;noinline&quot;,&quot;volatile&quot;,&quot;public&quot;,&quot;static&quot;,&quot;extern&quot;,&quot;external&quot;,&quot;interface&quot;,&quot;long&quot;,&quot;short&quot;,&quot;double&quot;,&quot;half&quot;,&quot;fixed&quot;,&quot;unsigned&quot;,&quot;input&quot;,&quot;output&quot;,&quot;hvec2&quot;,&quot;hvec3&quot;,&quot;hvec4&quot;,&quot;dvec2&quot;,&quot;dvec3&quot;,&quot;dvec4&quot;,&quot;fvec2&quot;,&quot;fvec3&quot;,&quot;fvec4&quot;,&quot;sampler2DRect&quot;,&quot;sampler3DRect&quot;,&quot;sampler2DRectShadow&quot;,&quot;sizeof&quot;,&quot;cast&quot;,&quot;namespace&quot;,&quot;using&quot;]},{}],437:[function(t,e,r){e.exports=[&quot;&lt;&lt;=&quot;,&quot;&gt;&gt;=&quot;,&quot;++&quot;,&quot;--&quot;,&quot;&lt;&lt;&quot;,&quot;&gt;&gt;&quot;,&quot;&lt;=&quot;,&quot;&gt;=&quot;,&quot;==&quot;,&quot;!=&quot;,&quot;&amp;&amp;&quot;,&quot;||&quot;,&quot;+=&quot;,&quot;-=&quot;,&quot;*=&quot;,&quot;/=&quot;,&quot;%=&quot;,&quot;&amp;=&quot;,&quot;^^&quot;,&quot;^=&quot;,&quot;|=&quot;,&quot;(&quot;,&quot;)&quot;,&quot;[&quot;,&quot;]&quot;,&quot;.&quot;,&quot;!&quot;,&quot;~&quot;,&quot;*&quot;,&quot;/&quot;,&quot;%&quot;,&quot;+&quot;,&quot;-&quot;,&quot;&lt;&quot;,&quot;&gt;&quot;,&quot;&amp;&quot;,&quot;^&quot;,&quot;|&quot;,&quot;?&quot;,&quot;:&quot;,&quot;=&quot;,&quot;,&quot;,&quot;;&quot;,&quot;{&quot;,&quot;}&quot;]},{}],438:[function(t,e,r){var n=t(&quot;./index&quot;);e.exports=function(t,e){var r=n(e),i=[];return i=(i=i.concat(r(t))).concat(r(null))}},{&quot;./index&quot;:432}],439:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],440:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n,i=t(&quot;is-browser&quot;);n=&quot;function&quot;==typeof r.matchMedia?!r.matchMedia(&quot;(hover: none)&quot;).matches:i,e.exports=n}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;is-browser&quot;:464}],441:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;is-browser&quot;);e.exports=n&amp;&amp;function(){var t=!1;try{var e=Object.defineProperty({},&quot;passive&quot;,{get:function(){t=!0}});window.addEventListener(&quot;test&quot;,null,e),window.removeEventListener(&quot;test&quot;,null,e)}catch(e){t=!1}return t}()},{&quot;is-browser&quot;:464}],442:[function(t,e,r){r.read=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1&lt;&lt;s)-1,c=l&gt;&gt;1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&amp;(1&lt;&lt;-u)-1,p&gt;&gt;=-u,u+=s;u&gt;0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&amp;(1&lt;&lt;-u)-1,a&gt;&gt;=-u,u+=n;u&gt;0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},r.write=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1&lt;&lt;c)-1,f=u&gt;&gt;1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e&lt;0||0===e&amp;&amp;1/e&lt;0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))&lt;1&amp;&amp;(o--,l*=2),(e+=o+f&gt;=1?h/l:h*Math.pow(2,1-f))*l&gt;=2&amp;&amp;(o++,l/=2),o+f&gt;=u?(s=0,o=u):o+f&gt;=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i&gt;=8;t[r+p]=255&amp;s,p+=d,s/=256,i-=8);for(o=o&lt;&lt;i|s,c+=i;c&gt;0;t[r+p]=255&amp;o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g}},{}],443:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./types&quot;);e.exports=function(t,e){var r;for(r in n)if(n[r].detect(t,e))return r}},{&quot;./types&quot;:446}],444:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;fs&quot;),i=t(&quot;path&quot;),a=t(&quot;./types&quot;),o=t(&quot;./detector&quot;);function s(t,e){var r=o(t,e);if(r in a){var n=a[r].calculate(t,e);if(!1!==n)return n.type=r,n}throw new TypeError(&quot;unsupported file type: &quot;+r+&quot; (file: &quot;+e+&quot;)&quot;)}e.exports=function(t,e){if(r.isBuffer(t))return s(t);if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;invalid invocation&quot;);var a=i.resolve(t);if(&quot;function&quot;!=typeof e)return s(function(t){var e=n.openSync(t,&quot;r&quot;),i=n.fstatSync(e).size,a=Math.min(i,524288),o=r.alloc(a);return n.readSync(e,o,0,a,0),n.closeSync(e),o}(a),a);!function(t,e){n.open(t,&quot;r&quot;,(function(i,a){if(i)return e(i);n.fstat(a,(function(i,o){if(i)return e(i);var s=o.size;if(s&lt;=0)return e(new Error(&quot;File size is not greater than 0 \u2014\u2014 &quot;+t));var l=Math.min(s,524288),c=r.alloc(l);n.read(a,c,0,l,0,(function(t){if(t)return e(t);n.close(a,(function(t){e(t,c)}))}))}))}))}(a,(function(t,r){if(t)return e(t);var n;try{n=s(r,a)}catch(e){t=e}e(t,n)}))},e.exports.types=Object.keys(a)}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;./detector&quot;:443,&quot;./types&quot;:446,buffer:111,fs:109,path:507}],445:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){return r=r||0,t[&quot;readUInt&quot;+e+(n?&quot;BE&quot;:&quot;LE&quot;)].call(t,r)}},{}],446:[function(t,e,r){&quot;use strict&quot;;var n={bmp:t(&quot;./types/bmp&quot;),cur:t(&quot;./types/cur&quot;),dds:t(&quot;./types/dds&quot;),gif:t(&quot;./types/gif&quot;),icns:t(&quot;./types/icns&quot;),ico:t(&quot;./types/ico&quot;),jpg:t(&quot;./types/jpg&quot;),png:t(&quot;./types/png&quot;),psd:t(&quot;./types/psd&quot;),svg:t(&quot;./types/svg&quot;),tiff:t(&quot;./types/tiff&quot;),webp:t(&quot;./types/webp&quot;)};e.exports=n},{&quot;./types/bmp&quot;:447,&quot;./types/cur&quot;:448,&quot;./types/dds&quot;:449,&quot;./types/gif&quot;:450,&quot;./types/icns&quot;:451,&quot;./types/ico&quot;:452,&quot;./types/jpg&quot;:453,&quot;./types/png&quot;:454,&quot;./types/psd&quot;:455,&quot;./types/svg&quot;:456,&quot;./types/tiff&quot;:457,&quot;./types/webp&quot;:458}],447:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return&quot;BM&quot;===t.toString(&quot;ascii&quot;,0,2)},calculate:function(t){return{width:t.readUInt32LE(18),height:Math.abs(t.readInt32LE(22))}}}},{}],448:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return 0===t.readUInt16LE(0)&amp;&amp;2===t.readUInt16LE(2)},calculate:t(&quot;./ico&quot;).calculate}},{&quot;./ico&quot;:452}],449:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return 542327876===t.readUInt32LE(0)},calculate:function(t){return{height:t.readUInt32LE(12),width:t.readUInt32LE(16)}}}},{}],450:[function(t,e,r){&quot;use strict&quot;;var n=/^GIF8[79]a/;e.exports={detect:function(t){var e=t.toString(&quot;ascii&quot;,0,6);return n.test(e)},calculate:function(t){return{width:t.readUInt16LE(6),height:t.readUInt16LE(8)}}}},{}],451:[function(t,e,r){&quot;use strict&quot;;var n={ICON:32,&quot;ICN#&quot;:32,&quot;icm#&quot;:16,icm4:16,icm8:16,&quot;ics#&quot;:16,ics4:16,ics8:16,is32:16,s8mk:16,icp4:16,icl4:32,icl8:32,il32:32,l8mk:32,icp5:32,ic11:32,ich4:48,ich8:48,ih32:48,h8mk:48,icp6:64,ic12:32,it32:128,t8mk:128,ic07:128,ic08:256,ic13:256,ic09:512,ic14:512,ic10:1024};function i(t,e){var r=e+4;return[t.toString(&quot;ascii&quot;,e,r),t.readUInt32BE(r)]}function a(t){var e=n[t];return{width:e,height:e,type:t}}e.exports={detect:function(t){return&quot;icns&quot;===t.toString(&quot;ascii&quot;,0,4)},calculate:function(t){var e,r,n,o=t.length,s=8,l=t.readUInt32BE(4);if(r=a((e=i(t,s))[0]),(s+=e[1])===l)return r;for(n={width:r.width,height:r.height,images:[r]};s&lt;l&amp;&amp;s&lt;o;)r=a((e=i(t,s))[0]),s+=e[1],n.images.push(r);return n}}},{}],452:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=t.readUInt8(e);return 0===r?256:r}function i(t,e){var r=6+16*e;return{width:n(t,r),height:n(t,r+1)}}e.exports={detect:function(t){return 0===t.readUInt16LE(0)&amp;&amp;1===t.readUInt16LE(2)},calculate:function(t){var e,r=t.readUInt16LE(4),n=i(t,0);if(1===r)return n;for(n.images=[{width:n.width,height:n.height}],e=1;e&lt;r;e+=1)n.images.push(i(t,e));return n}}},{}],453:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../readUInt&quot;);function i(t){return&quot;45786966&quot;===t.toString(&quot;hex&quot;,2,6)}function a(t,e){return{height:t.readUInt16BE(e),width:t.readUInt16BE(e+2)}}function o(t,e){var r=t.slice(2,e),i=r.toString(&quot;hex&quot;,6,8),a=&quot;4d4d&quot;===i;if(a||&quot;4949&quot;===i)return function(t,e){for(var r,i,a=n(t,16,14,e),o=0;o&lt;a;o++){if(i=(r=16+12*o)+12,r&gt;t.length)return;var s=t.slice(r,i);if(274===n(s,16,0,e)){if(3!==n(s,16,2,e))return;if(1!==n(s,32,4,e))return;return n(s,16,8,e)}}}(r,a)}function s(t,e){if(e&gt;t.length)throw new TypeError(&quot;Corrupt JPG, exceeded buffer limits&quot;);if(255!==t[e])throw new TypeError(&quot;Invalid JPG, marker table corrupted&quot;)}e.exports={detect:function(t){return&quot;ffd8&quot;===t.toString(&quot;hex&quot;,0,2)},calculate:function(t){var e,r,n;for(t=t.slice(4);t.length;){if(r=t.readUInt16BE(0),i(t)&amp;&amp;(e=o(t,r)),s(t,r),192===(n=t[r+1])||193===n||194===n){var l=a(t,r+5);return e?{width:l.width,height:l.height,orientation:e}:l}t=t.slice(r+2)}throw new TypeError(&quot;Invalid JPG, no size found&quot;)}}},{&quot;../readUInt&quot;:445}],454:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){if(&quot;PNG\r\n\x1a\n&quot;===t.toString(&quot;ascii&quot;,1,8)){var e=t.toString(&quot;ascii&quot;,12,16);if(&quot;CgBI&quot;===e&amp;&amp;(e=t.toString(&quot;ascii&quot;,28,32)),&quot;IHDR&quot;!==e)throw new TypeError(&quot;invalid png&quot;);return!0}},calculate:function(t){return&quot;CgBI&quot;===t.toString(&quot;ascii&quot;,12,16)?{width:t.readUInt32BE(32),height:t.readUInt32BE(36)}:{width:t.readUInt32BE(16),height:t.readUInt32BE(20)}}}},{}],455:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){return&quot;8BPS&quot;===t.toString(&quot;ascii&quot;,0,4)},calculate:function(t){return{width:t.readUInt32BE(18),height:t.readUInt32BE(14)}}}},{}],456:[function(t,e,r){&quot;use strict&quot;;var n=/&lt;svg\s([^&gt;&quot;']|&quot;[^&quot;]*&quot;|'[^']*')*&gt;/;var i={root:n,width:/\swidth=(['&quot;])([^%]+?)\1/,height:/\sheight=(['&quot;])([^%]+?)\1/,viewbox:/\sviewBox=(['&quot;])(.+?)\1/},a={cm:96/2.54,mm:96/2.54/10,m:96/2.54*100,pt:96/72,pc:96/72/12,em:16,ex:8};function o(t){var e=/([0-9.]+)([a-z]*)/.exec(t);if(e)return Math.round(parseFloat(e[1])*(a[e[2]]||1))}function s(t){var e=t.split(&quot; &quot;);return{width:o(e[2]),height:o(e[3])}}e.exports={detect:function(t){return n.test(t)},calculate:function(t){var e=t.toString(&quot;utf8&quot;).match(i.root);if(e){var r=function(t){var e=t.match(i.width),r=t.match(i.height),n=t.match(i.viewbox);return{width:e&amp;&amp;o(e[2]),height:r&amp;&amp;o(r[2]),viewbox:n&amp;&amp;s(n[2])}}(e[0]);if(r.width&amp;&amp;r.height)return function(t){return{width:t.width,height:t.height}}(r);if(r.viewbox)return function(t){var e=t.viewbox.width/t.viewbox.height;return t.width?{width:t.width,height:Math.floor(t.width/e)}:t.height?{width:Math.floor(t.height*e),height:t.height}:{width:t.viewbox.width,height:t.viewbox.height}}(r)}throw new TypeError(&quot;invalid svg&quot;)}}},{}],457:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;fs&quot;),i=t(&quot;../readUInt&quot;);function a(t,e){var r=i(t,16,8,e);return(i(t,16,10,e)&lt;&lt;16)+r}function o(t){if(t.length&gt;24)return t.slice(12)}e.exports={detect:function(t){var e=t.toString(&quot;hex&quot;,0,4);return&quot;49492a00&quot;===e||&quot;4d4d002a&quot;===e},calculate:function(t,e){if(!e)throw new TypeError(&quot;Tiff doesn't support buffer&quot;);var s=&quot;BE&quot;===function(t){var e=t.toString(&quot;ascii&quot;,0,2);return&quot;II&quot;===e?&quot;LE&quot;:&quot;MM&quot;===e?&quot;BE&quot;:void 0}(t),l=function(t,e){for(var r,n,s,l={};t&amp;&amp;t.length&amp;&amp;(r=i(t,16,0,e),n=i(t,16,2,e),s=i(t,32,4,e),0!==r);)1!==s||3!==n&amp;&amp;4!==n||(l[r]=a(t,e)),t=o(t);return l}(function(t,e,a){var o=i(t,32,4,a),s=1024,l=n.statSync(e).size;o+s&gt;l&amp;&amp;(s=l-o-10);var c=r.alloc(s),u=n.openSync(e,&quot;r&quot;);return n.readSync(u,c,0,s,o),c.slice(2)}(t,e,s),s),c=l[256],u=l[257];if(!c||!u)throw new TypeError(&quot;Invalid Tiff, missing tags&quot;);return{width:c,height:u}}}}).call(this)}).call(this,t(&quot;buffer&quot;).Buffer)},{&quot;../readUInt&quot;:445,buffer:111,fs:109}],458:[function(t,e,r){&quot;use strict&quot;;e.exports={detect:function(t){var e=&quot;RIFF&quot;===t.toString(&quot;ascii&quot;,0,4),r=&quot;WEBP&quot;===t.toString(&quot;ascii&quot;,8,12),n=&quot;VP8&quot;===t.toString(&quot;ascii&quot;,12,15);return e&amp;&amp;r&amp;&amp;n},calculate:function(t){var e=t.toString(&quot;ascii&quot;,12,16);if(t=t.slice(20,30),&quot;VP8X&quot;===e){var r=t[0];return!(!(0==(192&amp;r))||!(0==(1&amp;r)))&amp;&amp;function(t){return{width:1+t.readUIntLE(4,3),height:1+t.readUIntLE(7,3)}}(t)}if(&quot;VP8 &quot;===e&amp;&amp;47!==t[0])return function(t){return{width:16383&amp;t.readInt16LE(6),height:16383&amp;t.readInt16LE(8)}}(t);var n=t.toString(&quot;hex&quot;,3,6);return&quot;VP8L&quot;===e&amp;&amp;&quot;9d012a&quot;!==n&amp;&amp;function(t){return{width:1+((63&amp;t[2])&lt;&lt;8|t[1]),height:1+((15&amp;t[4])&lt;&lt;10|t[3]&lt;&lt;2|(192&amp;t[2])&gt;&gt;6)}}(t)}}},{}],459:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=t.length;if(0===r)throw new Error(&quot;Must have at least d+1 points&quot;);var i=t[0].length;if(r&lt;=i)throw new Error(&quot;Must input at least d+1 points&quot;);var o=t.slice(0,i+1),s=n.apply(void 0,o);if(0===s)throw new Error(&quot;Input not in general position&quot;);for(var l=new Array(i+1),u=0;u&lt;=i;++u)l[u]=u;s&lt;0&amp;&amp;(l[0]=1,l[1]=0);var f=new a(l,new Array(i+1),!1),h=f.adjacent,p=new Array(i+2);for(u=0;u&lt;=i;++u){for(var d=l.slice(),g=0;g&lt;=i;++g)g===u&amp;&amp;(d[g]=-1);var m=d[0];d[0]=d[1],d[1]=m;var v=new a(d,new Array(i+1),!0);h[u]=v,p[u]=v}p[i+1]=f;for(u=0;u&lt;=i;++u){d=h[u].vertices;var y=h[u].adjacent;for(g=0;g&lt;=i;++g){var x=d[g];if(x&lt;0)y[g]=f;else for(var b=0;b&lt;=i;++b)h[b].vertices.indexOf(x)&lt;0&amp;&amp;(y[g]=h[b])}}var _=new c(i,o,p),w=!!e;for(u=i+1;u&lt;r;++u)_.insert(t[u],w);return _.boundary()};var n=t(&quot;robust-orientation&quot;),i=t(&quot;simplicial-complex&quot;).compareCells;function a(t,e,r){this.vertices=t,this.adjacent=e,this.boundary=r,this.lastVisited=-1}function o(t,e,r){this.vertices=t,this.cell=e,this.index=r}function s(t,e){return i(t.vertices,e.vertices)}a.prototype.flip=function(){var t=this.vertices[0];this.vertices[0]=this.vertices[1],this.vertices[1]=t;var e=this.adjacent[0];this.adjacent[0]=this.adjacent[1],this.adjacent[1]=e};var l=[];function c(t,e,r){this.dimension=t,this.vertices=e,this.simplices=r,this.interior=r.filter((function(t){return!t.boundary})),this.tuple=new Array(t+1);for(var i=0;i&lt;=t;++i)this.tuple[i]=this.vertices[i];var a=l[t];a||(a=l[t]=function(t){for(var e=[&quot;function orient(){var tuple=this.tuple;return test(&quot;],r=0;r&lt;=t;++r)r&gt;0&amp;&amp;e.push(&quot;,&quot;),e.push(&quot;tuple[&quot;,r,&quot;]&quot;);e.push(&quot;)}return orient&quot;);var i=new Function(&quot;test&quot;,e.join(&quot;&quot;)),a=n[t+1];return a||(a=n),i(a)}(t)),this.orient=a}var u=c.prototype;u.handleBoundaryDegeneracy=function(t,e){var r=this.dimension,n=this.vertices.length-1,i=this.tuple,a=this.vertices,o=[t];for(t.lastVisited=-n;o.length&gt;0;){(t=o.pop()).vertices;for(var s=t.adjacent,l=0;l&lt;=r;++l){var c=s[l];if(c.boundary&amp;&amp;!(c.lastVisited&lt;=-n)){for(var u=c.vertices,f=0;f&lt;=r;++f){var h=u[f];i[f]=h&lt;0?e:a[h]}var p=this.orient();if(p&gt;0)return c;c.lastVisited=-n,0===p&amp;&amp;o.push(c)}}}return null},u.walk=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,a=this.tuple,o=e?this.interior.length*Math.random()|0:this.interior.length-1,s=this.interior[o];t:for(;!s.boundary;){for(var l=s.vertices,c=s.adjacent,u=0;u&lt;=n;++u)a[u]=i[l[u]];s.lastVisited=r;for(u=0;u&lt;=n;++u){var f=c[u];if(!(f.lastVisited&gt;=r)){var h=a[u];a[u]=t;var p=this.orient();if(a[u]=h,p&lt;0){s=f;continue t}f.boundary?f.lastVisited=-r:f.lastVisited=r}}return}return s},u.addPeaks=function(t,e){var r=this.vertices.length-1,n=this.dimension,i=this.vertices,l=this.tuple,c=this.interior,u=this.simplices,f=[e];e.lastVisited=r,e.vertices[e.vertices.indexOf(-1)]=r,e.boundary=!1,c.push(e);for(var h=[];f.length&gt;0;){var p=(e=f.pop()).vertices,d=e.adjacent,g=p.indexOf(r);if(!(g&lt;0))for(var m=0;m&lt;=n;++m)if(m!==g){var v=d[m];if(v.boundary&amp;&amp;!(v.lastVisited&gt;=r)){var y=v.vertices;if(v.lastVisited!==-r){for(var x=0,b=0;b&lt;=n;++b)y[b]&lt;0?(x=b,l[b]=t):l[b]=i[y[b]];if(this.orient()&gt;0){y[x]=r,v.boundary=!1,c.push(v),f.push(v),v.lastVisited=r;continue}v.lastVisited=-r}var _=v.adjacent,w=p.slice(),T=d.slice(),k=new a(w,T,!0);u.push(k);var M=_.indexOf(e);if(!(M&lt;0)){_[M]=k,T[g]=v,w[m]=-1,T[m]=e,d[m]=k,k.flip();for(b=0;b&lt;=n;++b){var A=w[b];if(!(A&lt;0||A===r)){for(var S=new Array(n-1),E=0,C=0;C&lt;=n;++C){var L=w[C];L&lt;0||C===b||(S[E++]=L)}h.push(new o(S,k,b))}}}}}}h.sort(s);for(m=0;m+1&lt;h.length;m+=2){var I=h[m],P=h[m+1],z=I.index,O=P.index;z&lt;0||O&lt;0||(I.cell.adjacent[I.index]=P.cell,P.cell.adjacent[P.index]=I.cell)}},u.insert=function(t,e){var r=this.vertices;r.push(t);var n=this.walk(t,e);if(n){for(var i=this.dimension,a=this.tuple,o=0;o&lt;=i;++o){var s=n.vertices[o];a[o]=s&lt;0?t:r[s]}var l=this.orient(a);l&lt;0||(0!==l||(n=this.handleBoundaryDegeneracy(n,t)))&amp;&amp;this.addPeaks(t,n)}},u.boundary=function(){for(var t=this.dimension,e=[],r=this.simplices,n=r.length,i=0;i&lt;n;++i){var a=r[i];if(a.boundary){for(var o=new Array(t),s=a.vertices,l=0,c=0,u=0;u&lt;=t;++u)s[u]&gt;=0?o[l++]=s[u]:c=1&amp;u;if(c===(1&amp;t)){var f=o[0];o[0]=o[1],o[1]=f}e.push(o)}}return e}},{&quot;robust-orientation&quot;:548,&quot;simplicial-complex&quot;:558}],460:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;);function i(t,e,r,n,i){this.mid=t,this.left=e,this.right=r,this.leftPoints=n,this.rightPoints=i,this.count=(e?e.count:0)+(r?r.count:0)+n.length}e.exports=function(t){if(!t||0===t.length)return new v(null);return new v(m(t))};var a=i.prototype;function o(t,e){t.mid=e.mid,t.left=e.left,t.right=e.right,t.leftPoints=e.leftPoints,t.rightPoints=e.rightPoints,t.count=e.count}function s(t,e){var r=m(e);t.mid=r.mid,t.left=r.left,t.right=r.right,t.leftPoints=r.leftPoints,t.rightPoints=r.rightPoints,t.count=r.count}function l(t,e){var r=t.intervals([]);r.push(e),s(t,r)}function c(t,e){var r=t.intervals([]),n=r.indexOf(e);return n&lt;0?0:(r.splice(n,1),s(t,r),1)}function u(t,e,r){for(var n=0;n&lt;t.length&amp;&amp;t[n][0]&lt;=e;++n){var i=r(t[n]);if(i)return i}}function f(t,e,r){for(var n=t.length-1;n&gt;=0&amp;&amp;t[n][1]&gt;=e;--n){var i=r(t[n]);if(i)return i}}function h(t,e){for(var r=0;r&lt;t.length;++r){var n=e(t[r]);if(n)return n}}function p(t,e){return t-e}function d(t,e){var r=t[0]-e[0];return r||t[1]-e[1]}function g(t,e){var r=t[1]-e[1];return r||t[0]-e[0]}function m(t){if(0===t.length)return null;for(var e=[],r=0;r&lt;t.length;++r)e.push(t[r][0],t[r][1]);e.sort(p);var n=e[e.length&gt;&gt;1],a=[],o=[],s=[];for(r=0;r&lt;t.length;++r){var l=t[r];l[1]&lt;n?a.push(l):n&lt;l[0]?o.push(l):s.push(l)}var c=s,u=s.slice();return c.sort(d),u.sort(g),new i(n,m(a),m(o),c,u)}function v(t){this.root=t}a.intervals=function(t){return t.push.apply(t,this.leftPoints),this.left&amp;&amp;this.left.intervals(t),this.right&amp;&amp;this.right.intervals(t),t},a.insert=function(t){var e=this.count-this.leftPoints.length;if(this.count+=1,t[1]&lt;this.mid)this.left?4*(this.left.count+1)&gt;3*(e+1)?l(this,t):this.left.insert(t):this.left=m([t]);else if(t[0]&gt;this.mid)this.right?4*(this.right.count+1)&gt;3*(e+1)?l(this,t):this.right.insert(t):this.right=m([t]);else{var r=n.ge(this.leftPoints,t,d),i=n.ge(this.rightPoints,t,g);this.leftPoints.splice(r,0,t),this.rightPoints.splice(i,0,t)}},a.remove=function(t){var e=this.count-this.leftPoints;if(t[1]&lt;this.mid)return this.left?4*(this.right?this.right.count:0)&gt;3*(e-1)?c(this,t):2===(s=this.left.remove(t))?(this.left=null,this.count-=1,1):(1===s&amp;&amp;(this.count-=1),s):0;if(t[0]&gt;this.mid)return this.right?4*(this.left?this.left.count:0)&gt;3*(e-1)?c(this,t):2===(s=this.right.remove(t))?(this.right=null,this.count-=1,1):(1===s&amp;&amp;(this.count-=1),s):0;if(1===this.count)return this.leftPoints[0]===t?2:0;if(1===this.leftPoints.length&amp;&amp;this.leftPoints[0]===t){if(this.left&amp;&amp;this.right){for(var r=this,i=this.left;i.right;)r=i,i=i.right;if(r===this)i.right=this.right;else{var a=this.left,s=this.right;r.count-=i.count,r.right=i.left,i.left=a,i.right=s}o(this,i),this.count=(this.left?this.left.count:0)+(this.right?this.right.count:0)+this.leftPoints.length}else this.left?o(this,this.left):o(this,this.right);return 1}for(a=n.ge(this.leftPoints,t,d);a&lt;this.leftPoints.length&amp;&amp;this.leftPoints[a][0]===t[0];++a)if(this.leftPoints[a]===t){this.count-=1,this.leftPoints.splice(a,1);for(s=n.ge(this.rightPoints,t,g);s&lt;this.rightPoints.length&amp;&amp;this.rightPoints[s][1]===t[1];++s)if(this.rightPoints[s]===t)return this.rightPoints.splice(s,1),1}return 0},a.queryPoint=function(t,e){if(t&lt;this.mid){if(this.left)if(r=this.left.queryPoint(t,e))return r;return u(this.leftPoints,t,e)}if(t&gt;this.mid){var r;if(this.right)if(r=this.right.queryPoint(t,e))return r;return f(this.rightPoints,t,e)}return h(this.leftPoints,e)},a.queryInterval=function(t,e,r){var n;if(t&lt;this.mid&amp;&amp;this.left&amp;&amp;(n=this.left.queryInterval(t,e,r)))return n;if(e&gt;this.mid&amp;&amp;this.right&amp;&amp;(n=this.right.queryInterval(t,e,r)))return n;return e&lt;this.mid?u(this.leftPoints,e,r):t&gt;this.mid?f(this.rightPoints,t,r):h(this.leftPoints,r)};var y=v.prototype;y.insert=function(t){this.root?this.root.insert(t):this.root=new i(t[0],null,null,[t],[t])},y.remove=function(t){if(this.root){var e=this.root.remove(t);return 2===e&amp;&amp;(this.root=null),0!==e}return!1},y.queryPoint=function(t,e){if(this.root)return this.root.queryPoint(t,e)},y.queryInterval=function(t,e,r){if(t&lt;=e&amp;&amp;this.root)return this.root.queryInterval(t,e,r)},Object.defineProperty(y,&quot;count&quot;,{get:function(){return this.root?this.root.count:0}}),Object.defineProperty(y,&quot;intervals&quot;,{get:function(){return this.root?this.root.intervals([]):[]}})},{&quot;binary-search-bounds&quot;:461}],461:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],462:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e=e||new Array(t.length);for(var r=0;r&lt;t.length;++r)e[t[r]]=r;return e}},{}],463:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=r;return e}},{}],464:[function(t,e,r){e.exports=!0},{}],465:[function(t,e,r){function n(t){return!!t.constructor&amp;&amp;&quot;function&quot;==typeof t.constructor.isBuffer&amp;&amp;t.constructor.isBuffer(t)}
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh &lt;https://feross.org&gt;
 * @license  MIT
 */
e.exports=function(t){return null!=t&amp;&amp;(n(t)||function(t){return&quot;function&quot;==typeof t.readFloatLE&amp;&amp;&quot;function&quot;==typeof t.slice&amp;&amp;n(t.slice(0,0))}(t)||!!t._isBuffer)}},{}],466:[function(t,e,r){&quot;use strict&quot;;e.exports=&quot;undefined&quot;!=typeof navigator&amp;&amp;(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion))},{}],467:[function(t,e,r){&quot;use strict&quot;;e.exports=a,e.exports.isMobile=a,e.exports.default=a;var n=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,i=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino|android|ipad|playbook|silk/i;function a(t){t||(t={});var e=t.ua;if(e||&quot;undefined&quot;==typeof navigator||(e=navigator.userAgent),e&amp;&amp;e.headers&amp;&amp;&quot;string&quot;==typeof e.headers[&quot;user-agent&quot;]&amp;&amp;(e=e.headers[&quot;user-agent&quot;]),&quot;string&quot;!=typeof e)return!1;var r=t.tablet?i.test(e):n.test(e);return!r&amp;&amp;t.tablet&amp;&amp;t.featureDetect&amp;&amp;navigator&amp;&amp;navigator.maxTouchPoints&gt;1&amp;&amp;-1!==e.indexOf(&quot;Macintosh&quot;)&amp;&amp;-1!==e.indexOf(&quot;Safari&quot;)&amp;&amp;(r=!0),r}},{}],468:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=typeof t;return null!==t&amp;&amp;(&quot;object&quot;===e||&quot;function&quot;===e)}},{}],469:[function(t,e,r){&quot;use strict&quot;;var n=Object.prototype.toString;e.exports=function(t){var e;return&quot;[object Object]&quot;===n.call(t)&amp;&amp;(null===(e=Object.getPrototypeOf(t))||e===Object.getPrototypeOf({}))}},{}],470:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e,r=t.length,n=0;n&lt;r;n++)if(((e=t.charCodeAt(n))&lt;9||e&gt;13)&amp;&amp;32!==e&amp;&amp;133!==e&amp;&amp;160!==e&amp;&amp;5760!==e&amp;&amp;6158!==e&amp;&amp;(e&lt;8192||e&gt;8205)&amp;&amp;8232!==e&amp;&amp;8233!==e&amp;&amp;8239!==e&amp;&amp;8287!==e&amp;&amp;8288!==e&amp;&amp;12288!==e&amp;&amp;65279!==e)return!1;return!0}},{}],471:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return&quot;string&quot;==typeof t&amp;&amp;(t=t.trim(),!!(/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(t)&amp;&amp;/[\dz]$/i.test(t)&amp;&amp;t.length&gt;4))}},{}],472:[function(t,e,r){e.exports=function(t,e,r){return t*(1-r)+e*r}},{}],473:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?e.exports=n():(t=t||self).mapboxgl=n()}(this,(function(){&quot;use strict&quot;;var t,e,r;function n(n,i){if(t)if(e){var a=&quot;var sharedChunk = {}; (&quot;+t+&quot;)(sharedChunk); (&quot;+e+&quot;)(sharedChunk);&quot;,o={};t(o),(r=i(o)).workerUrl=window.URL.createObjectURL(new Blob([a],{type:&quot;text/javascript&quot;}))}else e=i;else t=i}return n(0,(function(t){function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r=n;function n(t,e,r,n){this.cx=3*t,this.bx=3*(r-t)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*e,this.by=3*(n-e)-this.cy,this.ay=1-this.cy-this.by,this.p1x=t,this.p1y=n,this.p2x=r,this.p2y=n}n.prototype.sampleCurveX=function(t){return((this.ax*t+this.bx)*t+this.cx)*t},n.prototype.sampleCurveY=function(t){return((this.ay*t+this.by)*t+this.cy)*t},n.prototype.sampleCurveDerivativeX=function(t){return(3*this.ax*t+2*this.bx)*t+this.cx},n.prototype.solveCurveX=function(t,e){var r,n,i,a,o;for(void 0===e&amp;&amp;(e=1e-6),i=t,o=0;o&lt;8;o++){if(a=this.sampleCurveX(i)-t,Math.abs(a)&lt;e)return i;var s=this.sampleCurveDerivativeX(i);if(Math.abs(s)&lt;1e-6)break;i-=a/s}if((i=t)&lt;(r=0))return r;if(i&gt;(n=1))return n;for(;r&lt;n;){if(a=this.sampleCurveX(i),Math.abs(a-t)&lt;e)return i;t&gt;a?r=i:n=i,i=.5*(n-r)+r}return i},n.prototype.solve=function(t,e){return this.sampleCurveY(this.solveCurveX(t,e))};var i=a;function a(t,e){this.x=t,this.y=e}function o(t,e,n,i){var a=new r(t,e,n,i);return function(t){return a.solve(t)}}a.prototype={clone:function(){return new a(this.x,this.y)},add:function(t){return this.clone()._add(t)},sub:function(t){return this.clone()._sub(t)},multByPoint:function(t){return this.clone()._multByPoint(t)},divByPoint:function(t){return this.clone()._divByPoint(t)},mult:function(t){return this.clone()._mult(t)},div:function(t){return this.clone()._div(t)},rotate:function(t){return this.clone()._rotate(t)},rotateAround:function(t,e){return this.clone()._rotateAround(t,e)},matMult:function(t){return this.clone()._matMult(t)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(t){return this.x===t.x&amp;&amp;this.y===t.y},dist:function(t){return Math.sqrt(this.distSqr(t))},distSqr:function(t){var e=t.x-this.x,r=t.y-this.y;return e*e+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(t){return Math.atan2(this.y-t.y,this.x-t.x)},angleWith:function(t){return this.angleWithSep(t.x,t.y)},angleWithSep:function(t,e){return Math.atan2(this.x*e-this.y*t,this.x*t+this.y*e)},_matMult:function(t){var e=t[2]*this.x+t[3]*this.y;return this.x=t[0]*this.x+t[1]*this.y,this.y=e,this},_add:function(t){return this.x+=t.x,this.y+=t.y,this},_sub:function(t){return this.x-=t.x,this.y-=t.y,this},_mult:function(t){return this.x*=t,this.y*=t,this},_div:function(t){return this.x/=t,this.y/=t,this},_multByPoint:function(t){return this.x*=t.x,this.y*=t.y,this},_divByPoint:function(t){return this.x/=t.x,this.y/=t.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var t=this.y;return this.y=this.x,this.x=-t,this},_rotate:function(t){var e=Math.cos(t),r=Math.sin(t),n=r*this.x+e*this.y;return this.x=e*this.x-r*this.y,this.y=n,this},_rotateAround:function(t,e){var r=Math.cos(t),n=Math.sin(t),i=e.y+n*(this.x-e.x)+r*(this.y-e.y);return this.x=e.x+r*(this.x-e.x)-n*(this.y-e.y),this.y=i,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},a.convert=function(t){return t instanceof a?t:Array.isArray(t)?new a(t[0],t[1]):t};var s=o(.25,.1,.25,1);function l(t,e,r){return Math.min(r,Math.max(e,t))}function c(t,e,r){var n=r-e,i=((t-e)%n+n)%n+e;return i===e?r:i}function u(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}var f=1;function h(){return f++}function p(){return function t(e){return e?(e^16*Math.random()&gt;&gt;e/4).toString(16):([1e7]+-[1e3]+-4e3+-8e3+-1e11).replace(/[018]/g,t)}()}function d(t){return!!t&amp;&amp;/^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(t)}function g(t,e){t.forEach((function(t){e[t]&amp;&amp;(e[t]=e[t].bind(e))}))}function m(t,e){return-1!==t.indexOf(e,t.length-e.length)}function v(t,e,r){var n={};for(var i in t)n[i]=e.call(r||this,t[i],i,t);return n}function y(t,e,r){var n={};for(var i in t)e.call(r||this,t[i],i,t)&amp;&amp;(n[i]=t[i]);return n}function x(t){return Array.isArray(t)?t.map(x):&quot;object&quot;==typeof t&amp;&amp;t?v(t,x):t}var b={};function _(t){b[t]||(&quot;undefined&quot;!=typeof console&amp;&amp;console.warn(t),b[t]=!0)}function w(t,e,r){return(r.y-t.y)*(e.x-t.x)&gt;(e.y-t.y)*(r.x-t.x)}function T(t){for(var e=0,r=0,n=t.length,i=n-1,a=void 0,o=void 0;r&lt;n;i=r++)e+=((o=t[i]).x-(a=t[r]).x)*(a.y+o.y);return e}function k(){return&quot;undefined&quot;!=typeof WorkerGlobalScope&amp;&amp;&quot;undefined&quot;!=typeof self&amp;&amp;self instanceof WorkerGlobalScope}function M(t){var e={};if(t.replace(/(?:^|(?:\s*\,\s*))([^\x00-\x20\(\)&lt;&gt;@\,;\:\\&quot;\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)&lt;&gt;@\,;\:\\&quot;\/\[\]\?\=\{\}\x7F]+)|(?:\&quot;((?:[^&quot;\\]|\\.)*)\&quot;)))?/g,(function(t,r,n,i){var a=n||i;return e[r]=!a||a.toLowerCase(),&quot;&quot;})),e[&quot;max-age&quot;]){var r=parseInt(e[&quot;max-age&quot;],10);isNaN(r)?delete e[&quot;max-age&quot;]:e[&quot;max-age&quot;]=r}return e}var A=null;function S(t){if(null==A){var e=t.navigator?t.navigator.userAgent:null;A=!!t.safari||!(!e||!(/\b(iPad|iPhone|iPod)\b/.test(e)||e.match(&quot;Safari&quot;)&amp;&amp;!e.match(&quot;Chrome&quot;)))}return A}function E(t){try{var e=self[t];return e.setItem(&quot;_mapbox_test_&quot;,1),e.removeItem(&quot;_mapbox_test_&quot;),!0}catch(t){return!1}}var C,L,I,P,z=self.performance&amp;&amp;self.performance.now?self.performance.now.bind(self.performance):Date.now.bind(Date),O=self.requestAnimationFrame||self.mozRequestAnimationFrame||self.webkitRequestAnimationFrame||self.msRequestAnimationFrame,D=self.cancelAnimationFrame||self.mozCancelAnimationFrame||self.webkitCancelAnimationFrame||self.msCancelAnimationFrame,R={now:z,frame:function(t){var e=O(t);return{cancel:function(){return D(e)}}},getImageData:function(t,e){void 0===e&amp;&amp;(e=0);var r=self.document.createElement(&quot;canvas&quot;),n=r.getContext(&quot;2d&quot;);if(!n)throw new Error(&quot;failed to create canvas 2d context&quot;);return r.width=t.width,r.height=t.height,n.drawImage(t,0,0,t.width,t.height),n.getImageData(-e,-e,t.width+2*e,t.height+2*e)},resolveURL:function(t){return C||(C=self.document.createElement(&quot;a&quot;)),C.href=t,C.href},hardwareConcurrency:self.navigator.hardwareConcurrency||4,get devicePixelRatio(){return self.devicePixelRatio},get prefersReducedMotion(){return!!self.matchMedia&amp;&amp;(null==L&amp;&amp;(L=self.matchMedia(&quot;(prefers-reduced-motion: reduce)&quot;)),L.matches)}},F={API_URL:&quot;https://api.mapbox.com&quot;,get EVENTS_URL(){return this.API_URL?0===this.API_URL.indexOf(&quot;https://api.mapbox.cn&quot;)?&quot;https://events.mapbox.cn/events/v2&quot;:0===this.API_URL.indexOf(&quot;https://api.mapbox.com&quot;)?&quot;https://events.mapbox.com/events/v2&quot;:null:null},FEEDBACK_URL:&quot;https://apps.mapbox.com/feedback&quot;,REQUIRE_ACCESS_TOKEN:!0,ACCESS_TOKEN:null,MAX_PARALLEL_IMAGE_REQUESTS:16},B={supported:!1,testSupport:function(t){!N&amp;&amp;P&amp;&amp;(j?U(t):I=t)}},N=!1,j=!1;function U(t){var e=t.createTexture();t.bindTexture(t.TEXTURE_2D,e);try{if(t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,P),t.isContextLost())return;B.supported=!0}catch(t){}t.deleteTexture(e),N=!0}self.document&amp;&amp;((P=self.document.createElement(&quot;img&quot;)).onload=function(){I&amp;&amp;U(I),I=null,j=!0},P.onerror=function(){N=!0,I=null},P.src=&quot;data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAQAAAAfQ//73v/+BiOh/AAA=&quot;);var V=&quot;01&quot;,q=function(t,e){this._transformRequestFn=t,this._customAccessToken=e,this._createSkuToken()};function H(t){return 0===t.indexOf(&quot;mapbox:&quot;)}q.prototype._createSkuToken=function(){var t=function(){for(var t=&quot;&quot;,e=0;e&lt;10;e++)t+=&quot;0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ&quot;[Math.floor(62*Math.random())];return{token:[&quot;1&quot;,V,t].join(&quot;&quot;),tokenExpiresAt:Date.now()+432e5}}();this._skuToken=t.token,this._skuTokenExpiresAt=t.tokenExpiresAt},q.prototype._isSkuTokenExpired=function(){return Date.now()&gt;this._skuTokenExpiresAt},q.prototype.transformRequest=function(t,e){return this._transformRequestFn&amp;&amp;this._transformRequestFn(t,e)||{url:t}},q.prototype.normalizeStyleURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/styles/v1&quot;+r.path,this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeGlyphsURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/fonts/v1&quot;+r.path,this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeSourceURL=function(t,e){if(!H(t))return t;var r=X(t);return r.path=&quot;/v4/&quot;+r.authority+&quot;.json&quot;,r.params.push(&quot;secure&quot;),this._makeAPIURL(r,this._customAccessToken||e)},q.prototype.normalizeSpriteURL=function(t,e,r,n){var i=X(t);return H(t)?(i.path=&quot;/styles/v1&quot;+i.path+&quot;/sprite&quot;+e+r,this._makeAPIURL(i,this._customAccessToken||n)):(i.path+=&quot;&quot;+e+r,Z(i))},q.prototype.normalizeTileURL=function(t,e){if(this._isSkuTokenExpired()&amp;&amp;this._createSkuToken(),t&amp;&amp;!H(t))return t;var r=X(t);r.path=r.path.replace(/(\.(png|jpg)\d*)(?=$)/,(R.devicePixelRatio&gt;=2||512===e?&quot;@2x&quot;:&quot;&quot;)+(B.supported?&quot;.webp&quot;:&quot;$1&quot;)),r.path=r.path.replace(/^.+\/v4\//,&quot;/&quot;),r.path=&quot;/v4&quot;+r.path;var n=this._customAccessToken||function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var n=r[e].match(/^access_token=(.*)$/);if(n)return n[1]}return null}(r.params)||F.ACCESS_TOKEN;return F.REQUIRE_ACCESS_TOKEN&amp;&amp;n&amp;&amp;this._skuToken&amp;&amp;r.params.push(&quot;sku=&quot;+this._skuToken),this._makeAPIURL(r,n)},q.prototype.canonicalizeTileURL=function(t,e){var r=X(t);if(!r.path.match(/(^\/v4\/)/)||!r.path.match(/\.[\w]+$/))return t;var n=&quot;mapbox://tiles/&quot;;n+=r.path.replace(&quot;/v4/&quot;,&quot;&quot;);var i=r.params;return e&amp;&amp;(i=i.filter((function(t){return!t.match(/^access_token=/)}))),i.length&amp;&amp;(n+=&quot;?&quot;+i.join(&quot;&amp;&quot;)),n},q.prototype.canonicalizeTileset=function(t,e){for(var r=!!e&amp;&amp;H(e),n=[],i=0,a=t.tiles||[];i&lt;a.length;i+=1){var o=a[i];Y(o)?n.push(this.canonicalizeTileURL(o,r)):n.push(o)}return n},q.prototype._makeAPIURL=function(t,e){var r=&quot;See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes&quot;,n=X(F.API_URL);if(t.protocol=n.protocol,t.authority=n.authority,&quot;/&quot;!==n.path&amp;&amp;(t.path=&quot;&quot;+n.path+t.path),!F.REQUIRE_ACCESS_TOKEN)return Z(t);if(!(e=e||F.ACCESS_TOKEN))throw new Error(&quot;An API access token is required to use Mapbox GL. &quot;+r);if(&quot;s&quot;===e[0])throw new Error(&quot;Use a public access token (pk.*) with Mapbox GL, not a secret access token (sk.*). &quot;+r);return t.params=t.params.filter((function(t){return-1===t.indexOf(&quot;access_token&quot;)})),t.params.push(&quot;access_token=&quot;+e),Z(t)};var G=/^((https?:)?\/\/)?([^\/]+\.)?mapbox\.c(n|om)(\/|\?|$)/i;function Y(t){return G.test(t)}var W=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function X(t){var e=t.match(W);if(!e)throw new Error(&quot;Unable to parse URL object&quot;);return{protocol:e[1],authority:e[2],path:e[3]||&quot;/&quot;,params:e[4]?e[4].split(&quot;&amp;&quot;):[]}}function Z(t){var e=t.params.length?&quot;?&quot;+t.params.join(&quot;&amp;&quot;):&quot;&quot;;return t.protocol+&quot;://&quot;+t.authority+t.path+e}function J(t){if(!t)return null;var e=t.split(&quot;.&quot;);if(!e||3!==e.length)return null;try{return JSON.parse(decodeURIComponent(self.atob(e[1]).split(&quot;&quot;).map((function(t){return&quot;%&quot;+(&quot;00&quot;+t.charCodeAt(0).toString(16)).slice(-2)})).join(&quot;&quot;)))}catch(t){return null}}var K=function(t){this.type=t,this.anonId=null,this.eventData={},this.queue=[],this.pendingRequest=null};K.prototype.getStorageKey=function(t){var e,r=J(F.ACCESS_TOKEN);return e=r&amp;&amp;r.u?self.btoa(encodeURIComponent(r.u).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(Number(&quot;0x&quot;+e))}))):F.ACCESS_TOKEN||&quot;&quot;,t?&quot;mapbox.eventData.&quot;+t+&quot;:&quot;+e:&quot;mapbox.eventData:&quot;+e},K.prototype.fetchEventData=function(){var t=E(&quot;localStorage&quot;),e=this.getStorageKey(),r=this.getStorageKey(&quot;uuid&quot;);if(t)try{var n=self.localStorage.getItem(e);n&amp;&amp;(this.eventData=JSON.parse(n));var i=self.localStorage.getItem(r);i&amp;&amp;(this.anonId=i)}catch(t){_(&quot;Unable to read from LocalStorage&quot;)}},K.prototype.saveEventData=function(){var t=E(&quot;localStorage&quot;),e=this.getStorageKey(),r=this.getStorageKey(&quot;uuid&quot;);if(t)try{self.localStorage.setItem(r,this.anonId),Object.keys(this.eventData).length&gt;=1&amp;&amp;self.localStorage.setItem(e,JSON.stringify(this.eventData))}catch(t){_(&quot;Unable to write to LocalStorage&quot;)}},K.prototype.processRequests=function(t){},K.prototype.postEvent=function(t,e,r,n){var i=this;if(F.EVENTS_URL){var a=X(F.EVENTS_URL);a.params.push(&quot;access_token=&quot;+(n||F.ACCESS_TOKEN||&quot;&quot;));var o={event:this.type,created:new Date(t).toISOString(),sdkIdentifier:&quot;mapbox-gl-js&quot;,sdkVersion:&quot;1.10.1&quot;,skuId:V,userId:this.anonId},s=e?u(o,e):o,l={url:Z(a),headers:{&quot;Content-Type&quot;:&quot;text/plain&quot;},body:JSON.stringify([s])};this.pendingRequest=xt(l,(function(t){i.pendingRequest=null,r(t),i.saveEventData(),i.processRequests(n)}))}},K.prototype.queueRequest=function(t,e){this.queue.push(t),this.processRequests(e)};var Q,$,tt=function(t){function e(){t.call(this,&quot;map.load&quot;),this.success={},this.skuToken=&quot;&quot;}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.postMapLoadEvent=function(t,e,r,n){this.skuToken=r,(F.EVENTS_URL&amp;&amp;n||F.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return H(t)||Y(t)})))&amp;&amp;this.queueRequest({id:e,timestamp:Date.now()},n)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){var r=this.queue.shift(),n=r.id,i=r.timestamp;n&amp;&amp;this.success[n]||(this.anonId||this.fetchEventData(),d(this.anonId)||(this.anonId=p()),this.postEvent(i,{skuToken:this.skuToken},(function(t){t||n&amp;&amp;(e.success[n]=!0)}),t))}},e}(K),et=new(function(t){function e(e){t.call(this,&quot;appUserTurnstile&quot;),this._customAccessToken=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.postTurnstileEvent=function(t,e){F.EVENTS_URL&amp;&amp;F.ACCESS_TOKEN&amp;&amp;Array.isArray(t)&amp;&amp;t.some((function(t){return H(t)||Y(t)}))&amp;&amp;this.queueRequest(Date.now(),e)},e.prototype.processRequests=function(t){var e=this;if(!this.pendingRequest&amp;&amp;0!==this.queue.length){this.anonId&amp;&amp;this.eventData.lastSuccess&amp;&amp;this.eventData.tokenU||this.fetchEventData();var r=J(F.ACCESS_TOKEN),n=r?r.u:F.ACCESS_TOKEN,i=n!==this.eventData.tokenU;d(this.anonId)||(this.anonId=p(),i=!0);var a=this.queue.shift();if(this.eventData.lastSuccess){var o=new Date(this.eventData.lastSuccess),s=new Date(a),l=(a-this.eventData.lastSuccess)/864e5;i=i||l&gt;=1||l&lt;-1||o.getDate()!==s.getDate()}else i=!0;if(!i)return this.processRequests();this.postEvent(a,{&quot;enabled.telemetry&quot;:!1},(function(t){t||(e.eventData.lastSuccess=a,e.eventData.tokenU=n)}),t)}},e}(K)),rt=et.postTurnstileEvent.bind(et),nt=new tt,it=nt.postMapLoadEvent.bind(nt),at=500,ot=50;function st(){self.caches&amp;&amp;!Q&amp;&amp;(Q=self.caches.open(&quot;mapbox-tiles&quot;))}function lt(t){var e=t.indexOf(&quot;?&quot;);return e&lt;0?t:t.slice(0,e)}var ct,ut=1/0;function ft(){return null==ct&amp;&amp;(ct=self.OffscreenCanvas&amp;&amp;new self.OffscreenCanvas(1,1).getContext(&quot;2d&quot;)&amp;&amp;&quot;function&quot;==typeof self.createImageBitmap),ct}var ht={Unknown:&quot;Unknown&quot;,Style:&quot;Style&quot;,Source:&quot;Source&quot;,Tile:&quot;Tile&quot;,Glyphs:&quot;Glyphs&quot;,SpriteImage:&quot;SpriteImage&quot;,SpriteJSON:&quot;SpriteJSON&quot;,Image:&quot;Image&quot;};&quot;function&quot;==typeof Object.freeze&amp;&amp;Object.freeze(ht);var pt,dt,gt=function(t){function e(e,r,n){401===r&amp;&amp;Y(n)&amp;&amp;(e+=&quot;: you may have provided an invalid Mapbox access token. See https://www.mapbox.com/api-documentation/#access-tokens-and-token-scopes&quot;),t.call(this,e),this.status=r,this.url=n,this.name=this.constructor.name,this.message=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.toString=function(){return this.name+&quot;: &quot;+this.message+&quot; (&quot;+this.status+&quot;): &quot;+this.url},e}(Error),mt=k()?function(){return self.worker&amp;&amp;self.worker.referrer}:function(){return(&quot;blob:&quot;===self.location.protocol?self.parent:self).location.href},vt=function(t,e){if(!(/^file:/.test(r=t.url)||/^file:/.test(mt())&amp;&amp;!/^\w+:/.test(r))){if(self.fetch&amp;&amp;self.Request&amp;&amp;self.AbortController&amp;&amp;self.Request.prototype.hasOwnProperty(&quot;signal&quot;))return function(t,e){var r,n=new self.AbortController,i=new self.Request(t.url,{method:t.method||&quot;GET&quot;,body:t.body,credentials:t.credentials,headers:t.headers,referrer:mt(),signal:n.signal}),a=!1,o=!1,s=(r=i.url).indexOf(&quot;sku=&quot;)&gt;0&amp;&amp;Y(r);&quot;json&quot;===t.type&amp;&amp;i.headers.set(&quot;Accept&quot;,&quot;application/json&quot;);var l=function(r,n,a){if(!o){if(r&amp;&amp;&quot;SecurityError&quot;!==r.message&amp;&amp;_(r),n&amp;&amp;a)return c(n);var l=Date.now();self.fetch(i).then((function(r){if(r.ok){var n=s?r.clone():null;return c(r,n,l)}return e(new gt(r.statusText,r.status,t.url))})).catch((function(t){20!==t.code&amp;&amp;e(new Error(t.message))}))}},c=function(r,n,s){(&quot;arrayBuffer&quot;===t.type?r.arrayBuffer():&quot;json&quot;===t.type?r.json():r.text()).then((function(t){o||(n&amp;&amp;s&amp;&amp;function(t,e,r){if(st(),Q){var n={status:e.status,statusText:e.statusText,headers:new self.Headers};e.headers.forEach((function(t,e){return n.headers.set(e,t)}));var i=M(e.headers.get(&quot;Cache-Control&quot;)||&quot;&quot;);i[&quot;no-store&quot;]||(i[&quot;max-age&quot;]&amp;&amp;n.headers.set(&quot;Expires&quot;,new Date(r+1e3*i[&quot;max-age&quot;]).toUTCString()),new Date(n.headers.get(&quot;Expires&quot;)).getTime()-r&lt;42e4||function(t,e){if(void 0===$)try{new Response(new ReadableStream),$=!0}catch(t){$=!1}$?e(t.body):t.blob().then(e)}(e,(function(e){var r=new self.Response(e,n);st(),Q&amp;&amp;Q.then((function(e){return e.put(lt(t.url),r)})).catch((function(t){return _(t.message)}))})))}}(i,n,s),a=!0,e(null,t,r.headers.get(&quot;Cache-Control&quot;),r.headers.get(&quot;Expires&quot;)))})).catch((function(t){o||e(new Error(t.message))}))};return s?function(t,e){if(st(),!Q)return e(null);var r=lt(t.url);Q.then((function(t){t.match(r).then((function(n){var i=function(t){if(!t)return!1;var e=new Date(t.headers.get(&quot;Expires&quot;)||0),r=M(t.headers.get(&quot;Cache-Control&quot;)||&quot;&quot;);return e&gt;Date.now()&amp;&amp;!r[&quot;no-cache&quot;]}(n);t.delete(r),i&amp;&amp;t.put(r,n.clone()),e(null,n,i)})).catch(e)})).catch(e)}(i,l):l(null,null),{cancel:function(){o=!0,a||n.abort()}}}(t,e);if(k()&amp;&amp;self.worker&amp;&amp;self.worker.actor)return self.worker.actor.send(&quot;getResource&quot;,t,e,void 0,!0)}var r;return function(t,e){var r=new self.XMLHttpRequest;for(var n in r.open(t.method||&quot;GET&quot;,t.url,!0),&quot;arrayBuffer&quot;===t.type&amp;&amp;(r.responseType=&quot;arraybuffer&quot;),t.headers)r.setRequestHeader(n,t.headers[n]);return&quot;json&quot;===t.type&amp;&amp;(r.responseType=&quot;text&quot;,r.setRequestHeader(&quot;Accept&quot;,&quot;application/json&quot;)),r.withCredentials=&quot;include&quot;===t.credentials,r.onerror=function(){e(new Error(r.statusText))},r.onload=function(){if((r.status&gt;=200&amp;&amp;r.status&lt;300||0===r.status)&amp;&amp;null!==r.response){var n=r.response;if(&quot;json&quot;===t.type)try{n=JSON.parse(r.response)}catch(t){return e(t)}e(null,n,r.getResponseHeader(&quot;Cache-Control&quot;),r.getResponseHeader(&quot;Expires&quot;))}else e(new gt(r.statusText,r.status,t.url))},r.send(t.body),{cancel:function(){return r.abort()}}}(t,e)},yt=function(t,e){return vt(u(t,{type:&quot;arrayBuffer&quot;}),e)},xt=function(t,e){return vt(u(t,{method:&quot;POST&quot;}),e)};pt=[],dt=0;var bt=function(t,e){if(B.supported&amp;&amp;(t.headers||(t.headers={}),t.headers.accept=&quot;image/webp,*/*&quot;),dt&gt;=F.MAX_PARALLEL_IMAGE_REQUESTS){var r={requestParameters:t,callback:e,cancelled:!1,cancel:function(){this.cancelled=!0}};return pt.push(r),r}dt++;var n=!1,i=function(){if(!n)for(n=!0,dt--;pt.length&amp;&amp;dt&lt;F.MAX_PARALLEL_IMAGE_REQUESTS;){var t=pt.shift();t.cancelled||(t.cancel=bt(t.requestParameters,t.callback).cancel)}},a=yt(t,(function(t,r,n,a){i(),t?e(t):r&amp;&amp;(ft()?function(t,e){var r=new self.Blob([new Uint8Array(t)],{type:&quot;image/png&quot;});self.createImageBitmap(r).then((function(t){e(null,t)})).catch((function(t){e(new Error(&quot;Could not load image because of &quot;+t.message+&quot;. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.&quot;))}))}(r,e):function(t,e,r,n){var i=new self.Image,a=self.URL;i.onload=function(){e(null,i),a.revokeObjectURL(i.src)},i.onerror=function(){return e(new Error(&quot;Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.&quot;))};var o=new self.Blob([new Uint8Array(t)],{type:&quot;image/png&quot;});i.cacheControl=r,i.expires=n,i.src=t.byteLength?a.createObjectURL(o):&quot;data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=&quot;}(r,e,n,a))}));return{cancel:function(){a.cancel(),i()}}};function _t(t,e,r){r[t]&amp;&amp;-1!==r[t].indexOf(e)||(r[t]=r[t]||[],r[t].push(e))}function wt(t,e,r){if(r&amp;&amp;r[t]){var n=r[t].indexOf(e);-1!==n&amp;&amp;r[t].splice(n,1)}}var Tt=function(t,e){void 0===e&amp;&amp;(e={}),u(this,e),this.type=t},kt=function(t){function e(e,r){void 0===r&amp;&amp;(r={}),t.call(this,&quot;error&quot;,u({error:e},r))}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(Tt),Mt=function(){};Mt.prototype.on=function(t,e){return this._listeners=this._listeners||{},_t(t,e,this._listeners),this},Mt.prototype.off=function(t,e){return wt(t,e,this._listeners),wt(t,e,this._oneTimeListeners),this},Mt.prototype.once=function(t,e){return this._oneTimeListeners=this._oneTimeListeners||{},_t(t,e,this._oneTimeListeners),this},Mt.prototype.fire=function(t,e){&quot;string&quot;==typeof t&amp;&amp;(t=new Tt(t,e||{}));var r=t.type;if(this.listens(r)){t.target=this;for(var n=0,i=this._listeners&amp;&amp;this._listeners[r]?this._listeners[r].slice():[];n&lt;i.length;n+=1)i[n].call(this,t);for(var a=0,o=this._oneTimeListeners&amp;&amp;this._oneTimeListeners[r]?this._oneTimeListeners[r].slice():[];a&lt;o.length;a+=1){var s=o[a];wt(r,s,this._oneTimeListeners),s.call(this,t)}var l=this._eventedParent;l&amp;&amp;(u(t,&quot;function&quot;==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),l.fire(t))}else t instanceof kt&amp;&amp;console.error(t.error);return this},Mt.prototype.listens=function(t){return this._listeners&amp;&amp;this._listeners[t]&amp;&amp;this._listeners[t].length&gt;0||this._oneTimeListeners&amp;&amp;this._oneTimeListeners[t]&amp;&amp;this._oneTimeListeners[t].length&gt;0||this._eventedParent&amp;&amp;this._eventedParent.listens(t)},Mt.prototype.setEventedParent=function(t,e){return this._eventedParent=t,this._eventedParentData=e,this};var At={$version:8,$root:{version:{required:!0,type:&quot;enum&quot;,values:[8]},name:{type:&quot;string&quot;},metadata:{type:&quot;*&quot;},center:{type:&quot;array&quot;,value:&quot;number&quot;},zoom:{type:&quot;number&quot;},bearing:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;},pitch:{type:&quot;number&quot;,default:0,units:&quot;degrees&quot;},light:{type:&quot;light&quot;},sources:{required:!0,type:&quot;sources&quot;},sprite:{type:&quot;string&quot;},glyphs:{type:&quot;string&quot;},transition:{type:&quot;transition&quot;},layers:{required:!0,type:&quot;array&quot;,value:&quot;layer&quot;}},sources:{&quot;*&quot;:{type:&quot;source&quot;}},source:[&quot;source_vector&quot;,&quot;source_raster&quot;,&quot;source_raster_dem&quot;,&quot;source_geojson&quot;,&quot;source_video&quot;,&quot;source_image&quot;],source_vector:{type:{required:!0,type:&quot;enum&quot;,values:{vector:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:&quot;enum&quot;,values:{xyz:{},tms:{}},default:&quot;xyz&quot;},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},attribution:{type:&quot;string&quot;},promoteId:{type:&quot;promoteId&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_raster:{type:{required:!0,type:&quot;enum&quot;,values:{raster:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},tileSize:{type:&quot;number&quot;,default:512,units:&quot;pixels&quot;},scheme:{type:&quot;enum&quot;,values:{xyz:{},tms:{}},default:&quot;xyz&quot;},attribution:{type:&quot;string&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_raster_dem:{type:{required:!0,type:&quot;enum&quot;,values:{&quot;raster-dem&quot;:{}}},url:{type:&quot;string&quot;},tiles:{type:&quot;array&quot;,value:&quot;string&quot;},bounds:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:&quot;number&quot;,default:0},maxzoom:{type:&quot;number&quot;,default:22},tileSize:{type:&quot;number&quot;,default:512,units:&quot;pixels&quot;},attribution:{type:&quot;string&quot;},encoding:{type:&quot;enum&quot;,values:{terrarium:{},mapbox:{}},default:&quot;mapbox&quot;},&quot;*&quot;:{type:&quot;*&quot;}},source_geojson:{type:{required:!0,type:&quot;enum&quot;,values:{geojson:{}}},data:{type:&quot;*&quot;},maxzoom:{type:&quot;number&quot;,default:18},attribution:{type:&quot;string&quot;},buffer:{type:&quot;number&quot;,default:128,maximum:512,minimum:0},tolerance:{type:&quot;number&quot;,default:.375},cluster:{type:&quot;boolean&quot;,default:!1},clusterRadius:{type:&quot;number&quot;,default:50,minimum:0},clusterMaxZoom:{type:&quot;number&quot;},clusterProperties:{type:&quot;*&quot;},lineMetrics:{type:&quot;boolean&quot;,default:!1},generateId:{type:&quot;boolean&quot;,default:!1},promoteId:{type:&quot;promoteId&quot;}},source_video:{type:{required:!0,type:&quot;enum&quot;,values:{video:{}}},urls:{required:!0,type:&quot;array&quot;,value:&quot;string&quot;},coordinates:{required:!0,type:&quot;array&quot;,length:4,value:{type:&quot;array&quot;,length:2,value:&quot;number&quot;}}},source_image:{type:{required:!0,type:&quot;enum&quot;,values:{image:{}}},url:{required:!0,type:&quot;string&quot;},coordinates:{required:!0,type:&quot;array&quot;,length:4,value:{type:&quot;array&quot;,length:2,value:&quot;number&quot;}}},layer:{id:{type:&quot;string&quot;,required:!0},type:{type:&quot;enum&quot;,values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},&quot;fill-extrusion&quot;:{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:&quot;*&quot;},source:{type:&quot;string&quot;},&quot;source-layer&quot;:{type:&quot;string&quot;},minzoom:{type:&quot;number&quot;,minimum:0,maximum:24},maxzoom:{type:&quot;number&quot;,minimum:0,maximum:24},filter:{type:&quot;filter&quot;},layout:{type:&quot;layout&quot;},paint:{type:&quot;paint&quot;}},layout:[&quot;layout_fill&quot;,&quot;layout_line&quot;,&quot;layout_circle&quot;,&quot;layout_heatmap&quot;,&quot;layout_fill-extrusion&quot;,&quot;layout_symbol&quot;,&quot;layout_raster&quot;,&quot;layout_hillshade&quot;,&quot;layout_background&quot;],layout_background:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_fill:{&quot;fill-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_circle:{&quot;circle-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_heatmap:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},&quot;layout_fill-extrusion&quot;:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_line:{&quot;line-cap&quot;:{type:&quot;enum&quot;,values:{butt:{},round:{},square:{}},default:&quot;butt&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-join&quot;:{type:&quot;enum&quot;,values:{bevel:{},round:{},miter:{}},default:&quot;miter&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-miter-limit&quot;:{type:&quot;number&quot;,default:2,requires:[{&quot;line-join&quot;:&quot;miter&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-round-limit&quot;:{type:&quot;number&quot;,default:1.05,requires:[{&quot;line-join&quot;:&quot;round&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_symbol:{&quot;symbol-placement&quot;:{type:&quot;enum&quot;,values:{point:{},line:{},&quot;line-center&quot;:{}},default:&quot;point&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-spacing&quot;:{type:&quot;number&quot;,default:250,minimum:1,units:&quot;pixels&quot;,requires:[{&quot;symbol-placement&quot;:&quot;line&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-avoid-edges&quot;:{type:&quot;boolean&quot;,default:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;symbol-sort-key&quot;:{type:&quot;number&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;symbol-z-order&quot;:{type:&quot;enum&quot;,values:{auto:{},&quot;viewport-y&quot;:{},source:{}},default:&quot;auto&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-allow-overlap&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-ignore-placement&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-optional&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;,&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-rotation-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-size&quot;:{type:&quot;number&quot;,default:1,minimum:0,units:&quot;factor of the original icon size&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-text-fit&quot;:{type:&quot;enum&quot;,values:{none:{},width:{},height:{},both:{}},default:&quot;none&quot;,requires:[&quot;icon-image&quot;,&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-text-fit-padding&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:4,default:[0,0,0,0],units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;,&quot;text-field&quot;,{&quot;icon-text-fit&quot;:[&quot;both&quot;,&quot;width&quot;,&quot;height&quot;]}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-image&quot;:{type:&quot;resolvedImage&quot;,tokens:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-padding&quot;:{type:&quot;number&quot;,default:2,minimum:0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-keep-upright&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;icon-image&quot;,{&quot;icon-rotation-alignment&quot;:&quot;map&quot;},{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-offset&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-anchor&quot;:{type:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},default:&quot;center&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-rotation-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{},auto:{}},default:&quot;auto&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-field&quot;:{type:&quot;formatted&quot;,default:&quot;&quot;,tokens:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-font&quot;:{type:&quot;array&quot;,value:&quot;string&quot;,default:[&quot;Open Sans Regular&quot;,&quot;Arial Unicode MS Regular&quot;],requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-size&quot;:{type:&quot;number&quot;,default:16,minimum:0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-max-width&quot;:{type:&quot;number&quot;,default:10,minimum:0,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-line-height&quot;:{type:&quot;number&quot;,default:1.2,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-letter-spacing&quot;:{type:&quot;number&quot;,default:0,units:&quot;ems&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-justify&quot;:{type:&quot;enum&quot;,values:{auto:{},left:{},center:{},right:{}},default:&quot;center&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-radial-offset&quot;:{type:&quot;number&quot;,units:&quot;ems&quot;,default:0,requires:[&quot;text-field&quot;],&quot;property-type&quot;:&quot;data-driven&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]}},&quot;text-variable-anchor&quot;:{type:&quot;array&quot;,value:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;point&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-anchor&quot;:{type:&quot;enum&quot;,values:{center:{},left:{},right:{},top:{},bottom:{},&quot;top-left&quot;:{},&quot;top-right&quot;:{},&quot;bottom-left&quot;:{},&quot;bottom-right&quot;:{}},default:&quot;center&quot;,requires:[&quot;text-field&quot;,{&quot;!&quot;:&quot;text-variable-anchor&quot;}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-max-angle&quot;:{type:&quot;number&quot;,default:45,units:&quot;degrees&quot;,requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-writing-mode&quot;:{type:&quot;array&quot;,value:&quot;enum&quot;,values:{horizontal:{},vertical:{}},requires:[&quot;text-field&quot;,{&quot;symbol-placement&quot;:[&quot;point&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,units:&quot;degrees&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-padding&quot;:{type:&quot;number&quot;,default:2,minimum:0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-keep-upright&quot;:{type:&quot;boolean&quot;,default:!0,requires:[&quot;text-field&quot;,{&quot;text-rotation-alignment&quot;:&quot;map&quot;},{&quot;symbol-placement&quot;:[&quot;line&quot;,&quot;line-center&quot;]}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-transform&quot;:{type:&quot;enum&quot;,values:{none:{},uppercase:{},lowercase:{}},default:&quot;none&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-offset&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,units:&quot;ems&quot;,length:2,default:[0,0],requires:[&quot;text-field&quot;,{&quot;!&quot;:&quot;text-radial-offset&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-allow-overlap&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-ignore-placement&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-optional&quot;:{type:&quot;boolean&quot;,default:!1,requires:[&quot;text-field&quot;,&quot;icon-image&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_raster:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},layout_hillshade:{visibility:{type:&quot;enum&quot;,values:{visible:{},none:{}},default:&quot;visible&quot;,&quot;property-type&quot;:&quot;constant&quot;}},filter:{type:&quot;array&quot;,value:&quot;*&quot;},filter_operator:{type:&quot;enum&quot;,values:{&quot;==&quot;:{},&quot;!=&quot;:{},&quot;&gt;&quot;:{},&quot;&gt;=&quot;:{},&quot;&lt;&quot;:{},&quot;&lt;=&quot;:{},in:{},&quot;!in&quot;:{},all:{},any:{},none:{},has:{},&quot;!has&quot;:{},within:{}}},geometry_type:{type:&quot;enum&quot;,values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:&quot;expression&quot;},stops:{type:&quot;array&quot;,value:&quot;function_stop&quot;},base:{type:&quot;number&quot;,default:1,minimum:0},property:{type:&quot;string&quot;,default:&quot;$zoom&quot;},type:{type:&quot;enum&quot;,values:{identity:{},exponential:{},interval:{},categorical:{}},default:&quot;exponential&quot;},colorSpace:{type:&quot;enum&quot;,values:{rgb:{},lab:{},hcl:{}},default:&quot;rgb&quot;},default:{type:&quot;*&quot;,required:!1}},function_stop:{type:&quot;array&quot;,minimum:0,maximum:24,value:[&quot;number&quot;,&quot;color&quot;],length:2},expression:{type:&quot;array&quot;,value:&quot;*&quot;,minimum:1},expression_name:{type:&quot;enum&quot;,values:{let:{group:&quot;Variable binding&quot;},var:{group:&quot;Variable binding&quot;},literal:{group:&quot;Types&quot;},array:{group:&quot;Types&quot;},at:{group:&quot;Lookup&quot;},in:{group:&quot;Lookup&quot;},&quot;index-of&quot;:{group:&quot;Lookup&quot;},slice:{group:&quot;Lookup&quot;},case:{group:&quot;Decision&quot;},match:{group:&quot;Decision&quot;},coalesce:{group:&quot;Decision&quot;},step:{group:&quot;Ramps, scales, curves&quot;},interpolate:{group:&quot;Ramps, scales, curves&quot;},&quot;interpolate-hcl&quot;:{group:&quot;Ramps, scales, curves&quot;},&quot;interpolate-lab&quot;:{group:&quot;Ramps, scales, curves&quot;},ln2:{group:&quot;Math&quot;},pi:{group:&quot;Math&quot;},e:{group:&quot;Math&quot;},typeof:{group:&quot;Types&quot;},string:{group:&quot;Types&quot;},number:{group:&quot;Types&quot;},boolean:{group:&quot;Types&quot;},object:{group:&quot;Types&quot;},collator:{group:&quot;Types&quot;},format:{group:&quot;Types&quot;},image:{group:&quot;Types&quot;},&quot;number-format&quot;:{group:&quot;Types&quot;},&quot;to-string&quot;:{group:&quot;Types&quot;},&quot;to-number&quot;:{group:&quot;Types&quot;},&quot;to-boolean&quot;:{group:&quot;Types&quot;},&quot;to-rgba&quot;:{group:&quot;Color&quot;},&quot;to-color&quot;:{group:&quot;Types&quot;},rgb:{group:&quot;Color&quot;},rgba:{group:&quot;Color&quot;},get:{group:&quot;Lookup&quot;},has:{group:&quot;Lookup&quot;},length:{group:&quot;Lookup&quot;},properties:{group:&quot;Feature data&quot;},&quot;feature-state&quot;:{group:&quot;Feature data&quot;},&quot;geometry-type&quot;:{group:&quot;Feature data&quot;},id:{group:&quot;Feature data&quot;},zoom:{group:&quot;Zoom&quot;},&quot;heatmap-density&quot;:{group:&quot;Heatmap&quot;},&quot;line-progress&quot;:{group:&quot;Feature data&quot;},accumulated:{group:&quot;Feature data&quot;},&quot;+&quot;:{group:&quot;Math&quot;},&quot;*&quot;:{group:&quot;Math&quot;},&quot;-&quot;:{group:&quot;Math&quot;},&quot;/&quot;:{group:&quot;Math&quot;},&quot;%&quot;:{group:&quot;Math&quot;},&quot;^&quot;:{group:&quot;Math&quot;},sqrt:{group:&quot;Math&quot;},log10:{group:&quot;Math&quot;},ln:{group:&quot;Math&quot;},log2:{group:&quot;Math&quot;},sin:{group:&quot;Math&quot;},cos:{group:&quot;Math&quot;},tan:{group:&quot;Math&quot;},asin:{group:&quot;Math&quot;},acos:{group:&quot;Math&quot;},atan:{group:&quot;Math&quot;},min:{group:&quot;Math&quot;},max:{group:&quot;Math&quot;},round:{group:&quot;Math&quot;},abs:{group:&quot;Math&quot;},ceil:{group:&quot;Math&quot;},floor:{group:&quot;Math&quot;},distance:{group:&quot;Math&quot;},&quot;==&quot;:{group:&quot;Decision&quot;},&quot;!=&quot;:{group:&quot;Decision&quot;},&quot;&gt;&quot;:{group:&quot;Decision&quot;},&quot;&lt;&quot;:{group:&quot;Decision&quot;},&quot;&gt;=&quot;:{group:&quot;Decision&quot;},&quot;&lt;=&quot;:{group:&quot;Decision&quot;},all:{group:&quot;Decision&quot;},any:{group:&quot;Decision&quot;},&quot;!&quot;:{group:&quot;Decision&quot;},within:{group:&quot;Decision&quot;},&quot;is-supported-script&quot;:{group:&quot;String&quot;},upcase:{group:&quot;String&quot;},downcase:{group:&quot;String&quot;},concat:{group:&quot;String&quot;},&quot;resolved-locale&quot;:{group:&quot;String&quot;}}},light:{anchor:{type:&quot;enum&quot;,default:&quot;viewport&quot;,values:{map:{},viewport:{}},&quot;property-type&quot;:&quot;data-constant&quot;,transition:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]}},position:{type:&quot;array&quot;,default:[1.15,210,30],length:3,value:&quot;number&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]}},color:{type:&quot;color&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,default:&quot;#ffffff&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},transition:!0},intensity:{type:&quot;number&quot;,&quot;property-type&quot;:&quot;data-constant&quot;,default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},transition:!0}},paint:[&quot;paint_fill&quot;,&quot;paint_line&quot;,&quot;paint_circle&quot;,&quot;paint_heatmap&quot;,&quot;paint_fill-extrusion&quot;,&quot;paint_symbol&quot;,&quot;paint_raster&quot;,&quot;paint_hillshade&quot;,&quot;paint_background&quot;],paint_fill:{&quot;fill-antialias&quot;:{type:&quot;boolean&quot;,default:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-outline-color&quot;:{type:&quot;color&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-pattern&quot;},{&quot;fill-antialias&quot;:!0}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;fill-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;}},&quot;paint_fill-extrusion&quot;:{&quot;fill-extrusion-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;fill-extrusion-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;fill-extrusion-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;fill-extrusion-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;},&quot;fill-extrusion-height&quot;:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;meters&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-base&quot;:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;meters&quot;,transition:!0,requires:[&quot;fill-extrusion-height&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;fill-extrusion-vertical-gradient&quot;:{type:&quot;boolean&quot;,default:!0,transition:!1,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_line:{&quot;line-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;line-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;line-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;line-width&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-gap-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-offset&quot;:{type:&quot;number&quot;,default:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;line-dasharray&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,minimum:0,transition:!0,units:&quot;line widths&quot;,requires:[{&quot;!&quot;:&quot;line-pattern&quot;}],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;cross-faded&quot;},&quot;line-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]},&quot;property-type&quot;:&quot;cross-faded-data-driven&quot;},&quot;line-gradient&quot;:{type:&quot;color&quot;,transition:!1,requires:[{&quot;!&quot;:&quot;line-dasharray&quot;},{&quot;!&quot;:&quot;line-pattern&quot;},{source:&quot;geojson&quot;,has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:[&quot;line-progress&quot;]},&quot;property-type&quot;:&quot;color-ramp&quot;}},paint_circle:{&quot;circle-radius&quot;:{type:&quot;number&quot;,default:5,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-blur&quot;:{type:&quot;number&quot;,default:0,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;circle-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-pitch-scale&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-pitch-alignment&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;viewport&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;circle-stroke-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-stroke-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;circle-stroke-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;}},paint_heatmap:{&quot;heatmap-radius&quot;:{type:&quot;number&quot;,default:30,minimum:1,transition:!0,units:&quot;pixels&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;heatmap-weight&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;heatmap-intensity&quot;:{type:&quot;number&quot;,default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;heatmap-color&quot;:{type:&quot;color&quot;,default:[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;heatmap-density&quot;],0,&quot;rgba(0, 0, 255, 0)&quot;,.1,&quot;royalblue&quot;,.3,&quot;cyan&quot;,.5,&quot;lime&quot;,.7,&quot;yellow&quot;,1,&quot;red&quot;],transition:!1,expression:{interpolated:!0,parameters:[&quot;heatmap-density&quot;]},&quot;property-type&quot;:&quot;color-ramp&quot;},&quot;heatmap-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_symbol:{&quot;icon-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-color&quot;:{type:&quot;color&quot;,default:&quot;rgba(0, 0, 0, 0)&quot;,transition:!0,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-halo-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;icon-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,requires:[&quot;icon-image&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;icon-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;icon-image&quot;,&quot;icon-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,overridable:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-color&quot;:{type:&quot;color&quot;,default:&quot;rgba(0, 0, 0, 0)&quot;,transition:!0,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-width&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-halo-blur&quot;:{type:&quot;number&quot;,default:0,minimum:0,transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;,&quot;feature&quot;,&quot;feature-state&quot;]},&quot;property-type&quot;:&quot;data-driven&quot;},&quot;text-translate&quot;:{type:&quot;array&quot;,value:&quot;number&quot;,length:2,default:[0,0],transition:!0,units:&quot;pixels&quot;,requires:[&quot;text-field&quot;],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;text-translate-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;map&quot;,requires:[&quot;text-field&quot;,&quot;text-translate&quot;],expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_raster:{&quot;raster-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-hue-rotate&quot;:{type:&quot;number&quot;,default:0,period:360,transition:!0,units:&quot;degrees&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-brightness-min&quot;:{type:&quot;number&quot;,default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-brightness-max&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-saturation&quot;:{type:&quot;number&quot;,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-contrast&quot;:{type:&quot;number&quot;,default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-resampling&quot;:{type:&quot;enum&quot;,values:{linear:{},nearest:{}},default:&quot;linear&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;raster-fade-duration&quot;:{type:&quot;number&quot;,default:300,minimum:0,transition:!1,units:&quot;milliseconds&quot;,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_hillshade:{&quot;hillshade-illumination-direction&quot;:{type:&quot;number&quot;,default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-illumination-anchor&quot;:{type:&quot;enum&quot;,values:{map:{},viewport:{}},default:&quot;viewport&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-exaggeration&quot;:{type:&quot;number&quot;,default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-shadow-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-highlight-color&quot;:{type:&quot;color&quot;,default:&quot;#FFFFFF&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;hillshade-accent-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},paint_background:{&quot;background-color&quot;:{type:&quot;color&quot;,default:&quot;#000000&quot;,transition:!0,requires:[{&quot;!&quot;:&quot;background-pattern&quot;}],expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;},&quot;background-pattern&quot;:{type:&quot;resolvedImage&quot;,transition:!0,expression:{interpolated:!1,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;cross-faded&quot;},&quot;background-opacity&quot;:{type:&quot;number&quot;,default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:[&quot;zoom&quot;]},&quot;property-type&quot;:&quot;data-constant&quot;}},transition:{duration:{type:&quot;number&quot;,default:300,minimum:0,units:&quot;milliseconds&quot;},delay:{type:&quot;number&quot;,default:0,minimum:0,units:&quot;milliseconds&quot;}},&quot;property-type&quot;:{&quot;data-driven&quot;:{type:&quot;property-type&quot;},&quot;cross-faded&quot;:{type:&quot;property-type&quot;},&quot;cross-faded-data-driven&quot;:{type:&quot;property-type&quot;},&quot;color-ramp&quot;:{type:&quot;property-type&quot;},&quot;data-constant&quot;:{type:&quot;property-type&quot;},constant:{type:&quot;property-type&quot;}},promoteId:{&quot;*&quot;:{type:&quot;string&quot;}}},St=function(t,e,r,n){this.message=(t?t+&quot;: &quot;:&quot;&quot;)+r,n&amp;&amp;(this.identifier=n),null!=e&amp;&amp;e.__line__&amp;&amp;(this.line=e.__line__)};function Et(t){var e=t.value;return e?[new St(t.key,e,&quot;constants have been deprecated as of v8&quot;)]:[]}function Ct(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];for(var n=0,i=e;n&lt;i.length;n+=1){var a=i[n];for(var o in a)t[o]=a[o]}return t}function Lt(t){return t instanceof Number||t instanceof String||t instanceof Boolean?t.valueOf():t}function It(t){if(Array.isArray(t))return t.map(It);if(t instanceof Object&amp;&amp;!(t instanceof Number||t instanceof String||t instanceof Boolean)){var e={};for(var r in t)e[r]=It(t[r]);return e}return Lt(t)}var Pt=function(t){function e(e,r){t.call(this,r),this.message=r,this.key=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(Error),zt=function(t,e){void 0===e&amp;&amp;(e=[]),this.parent=t,this.bindings={};for(var r=0,n=e;r&lt;n.length;r+=1){var i=n[r];this.bindings[i[0]]=i[1]}};zt.prototype.concat=function(t){return new zt(this,t)},zt.prototype.get=function(t){if(this.bindings[t])return this.bindings[t];if(this.parent)return this.parent.get(t);throw new Error(t+&quot; not found in scope.&quot;)},zt.prototype.has=function(t){return!!this.bindings[t]||!!this.parent&amp;&amp;this.parent.has(t)};var Ot={kind:&quot;null&quot;},Dt={kind:&quot;number&quot;},Rt={kind:&quot;string&quot;},Ft={kind:&quot;boolean&quot;},Bt={kind:&quot;color&quot;},Nt={kind:&quot;object&quot;},jt={kind:&quot;value&quot;},Ut={kind:&quot;collator&quot;},Vt={kind:&quot;formatted&quot;},qt={kind:&quot;resolvedImage&quot;};function Ht(t,e){return{kind:&quot;array&quot;,itemType:t,N:e}}function Gt(t){if(&quot;array&quot;===t.kind){var e=Gt(t.itemType);return&quot;number&quot;==typeof t.N?&quot;array&lt;&quot;+e+&quot;, &quot;+t.N+&quot;&gt;&quot;:&quot;value&quot;===t.itemType.kind?&quot;array&quot;:&quot;array&lt;&quot;+e+&quot;&gt;&quot;}return t.kind}var Yt=[Ot,Dt,Rt,Ft,Bt,Vt,Nt,Ht(jt),qt];function Wt(t,e){if(&quot;error&quot;===e.kind)return null;if(&quot;array&quot;===t.kind){if(&quot;array&quot;===e.kind&amp;&amp;(0===e.N&amp;&amp;&quot;value&quot;===e.itemType.kind||!Wt(t.itemType,e.itemType))&amp;&amp;(&quot;number&quot;!=typeof t.N||t.N===e.N))return null}else{if(t.kind===e.kind)return null;if(&quot;value&quot;===t.kind)for(var r=0,n=Yt;r&lt;n.length;r+=1)if(!Wt(n[r],e))return null}return&quot;Expected &quot;+Gt(t)+&quot; but found &quot;+Gt(e)+&quot; instead.&quot;}function Xt(t,e){return e.some((function(e){return e.kind===t.kind}))}function Zt(t,e){return e.some((function(e){return&quot;null&quot;===e?null===t:&quot;array&quot;===e?Array.isArray(t):&quot;object&quot;===e?t&amp;&amp;!Array.isArray(t)&amp;&amp;&quot;object&quot;==typeof t:e===typeof t}))}var Jt=e((function(t,e){var r={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],rebeccapurple:[102,51,153,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function n(t){return(t=Math.round(t))&lt;0?0:t&gt;255?255:t}function i(t){return n(&quot;%&quot;===t[t.length-1]?parseFloat(t)/100*255:parseInt(t))}function a(t){return(e=&quot;%&quot;===t[t.length-1]?parseFloat(t)/100:parseFloat(t))&lt;0?0:e&gt;1?1:e;var e}function o(t,e,r){return r&lt;0?r+=1:r&gt;1&amp;&amp;(r-=1),6*r&lt;1?t+(e-t)*r*6:2*r&lt;1?e:3*r&lt;2?t+(e-t)*(2/3-r)*6:t}try{e.parseCSSColor=function(t){var e,s=t.replace(/ /g,&quot;&quot;).toLowerCase();if(s in r)return r[s].slice();if(&quot;#&quot;===s[0])return 4===s.length?(e=parseInt(s.substr(1),16))&gt;=0&amp;&amp;e&lt;=4095?[(3840&amp;e)&gt;&gt;4|(3840&amp;e)&gt;&gt;8,240&amp;e|(240&amp;e)&gt;&gt;4,15&amp;e|(15&amp;e)&lt;&lt;4,1]:null:7===s.length&amp;&amp;(e=parseInt(s.substr(1),16))&gt;=0&amp;&amp;e&lt;=16777215?[(16711680&amp;e)&gt;&gt;16,(65280&amp;e)&gt;&gt;8,255&amp;e,1]:null;var l=s.indexOf(&quot;(&quot;),c=s.indexOf(&quot;)&quot;);if(-1!==l&amp;&amp;c+1===s.length){var u=s.substr(0,l),f=s.substr(l+1,c-(l+1)).split(&quot;,&quot;),h=1;switch(u){case&quot;rgba&quot;:if(4!==f.length)return null;h=a(f.pop());case&quot;rgb&quot;:return 3!==f.length?null:[i(f[0]),i(f[1]),i(f[2]),h];case&quot;hsla&quot;:if(4!==f.length)return null;h=a(f.pop());case&quot;hsl&quot;:if(3!==f.length)return null;var p=(parseFloat(f[0])%360+360)%360/360,d=a(f[1]),g=a(f[2]),m=g&lt;=.5?g*(d+1):g+d-g*d,v=2*g-m;return[n(255*o(v,m,p+1/3)),n(255*o(v,m,p)),n(255*o(v,m,p-1/3)),h];default:return null}}return null}}catch(t){}})).parseCSSColor,Kt=function(t,e,r,n){void 0===n&amp;&amp;(n=1),this.r=t,this.g=e,this.b=r,this.a=n};Kt.parse=function(t){if(t){if(t instanceof Kt)return t;if(&quot;string&quot;==typeof t){var e=Jt(t);if(e)return new Kt(e[0]/255*e[3],e[1]/255*e[3],e[2]/255*e[3],e[3])}}},Kt.prototype.toString=function(){var t=this.toArray(),e=t[1],r=t[2],n=t[3];return&quot;rgba(&quot;+Math.round(t[0])+&quot;,&quot;+Math.round(e)+&quot;,&quot;+Math.round(r)+&quot;,&quot;+n+&quot;)&quot;},Kt.prototype.toArray=function(){var t=this.a;return 0===t?[0,0,0,0]:[255*this.r/t,255*this.g/t,255*this.b/t,t]},Kt.black=new Kt(0,0,0,1),Kt.white=new Kt(1,1,1,1),Kt.transparent=new Kt(0,0,0,0),Kt.red=new Kt(1,0,0,1);var Qt=function(t,e,r){this.sensitivity=t?e?&quot;variant&quot;:&quot;case&quot;:e?&quot;accent&quot;:&quot;base&quot;,this.locale=r,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:&quot;search&quot;})};Qt.prototype.compare=function(t,e){return this.collator.compare(t,e)},Qt.prototype.resolvedLocale=function(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale};var $t=function(t,e,r,n,i){this.text=t,this.image=e,this.scale=r,this.fontStack=n,this.textColor=i},te=function(t){this.sections=t};te.fromString=function(t){return new te([new $t(t,null,null,null,null)])},te.prototype.isEmpty=function(){return 0===this.sections.length||!this.sections.some((function(t){return 0!==t.text.length||t.image&amp;&amp;0!==t.image.name.length}))},te.factory=function(t){return t instanceof te?t:te.fromString(t)},te.prototype.toString=function(){return 0===this.sections.length?&quot;&quot;:this.sections.map((function(t){return t.text})).join(&quot;&quot;)},te.prototype.serialize=function(){for(var t=[&quot;format&quot;],e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];if(n.image)t.push([&quot;image&quot;,n.image.name]);else{t.push(n.text);var i={};n.fontStack&amp;&amp;(i[&quot;text-font&quot;]=[&quot;literal&quot;,n.fontStack.split(&quot;,&quot;)]),n.scale&amp;&amp;(i[&quot;font-scale&quot;]=n.scale),n.textColor&amp;&amp;(i[&quot;text-color&quot;]=[&quot;rgba&quot;].concat(n.textColor.toArray())),t.push(i)}}return t};var ee=function(t){this.name=t.name,this.available=t.available};function re(t,e,r,n){return&quot;number&quot;==typeof t&amp;&amp;t&gt;=0&amp;&amp;t&lt;=255&amp;&amp;&quot;number&quot;==typeof e&amp;&amp;e&gt;=0&amp;&amp;e&lt;=255&amp;&amp;&quot;number&quot;==typeof r&amp;&amp;r&gt;=0&amp;&amp;r&lt;=255?void 0===n||&quot;number&quot;==typeof n&amp;&amp;n&gt;=0&amp;&amp;n&lt;=1?null:&quot;Invalid rgba value [&quot;+[t,e,r,n].join(&quot;, &quot;)+&quot;]: 'a' must be between 0 and 1.&quot;:&quot;Invalid rgba value [&quot;+(&quot;number&quot;==typeof n?[t,e,r,n]:[t,e,r]).join(&quot;, &quot;)+&quot;]: 'r', 'g', and 'b' must be between 0 and 255.&quot;}function ne(t){if(null===t)return!0;if(&quot;string&quot;==typeof t)return!0;if(&quot;boolean&quot;==typeof t)return!0;if(&quot;number&quot;==typeof t)return!0;if(t instanceof Kt)return!0;if(t instanceof Qt)return!0;if(t instanceof te)return!0;if(t instanceof ee)return!0;if(Array.isArray(t)){for(var e=0,r=t;e&lt;r.length;e+=1)if(!ne(r[e]))return!1;return!0}if(&quot;object&quot;==typeof t){for(var n in t)if(!ne(t[n]))return!1;return!0}return!1}function ie(t){if(null===t)return Ot;if(&quot;string&quot;==typeof t)return Rt;if(&quot;boolean&quot;==typeof t)return Ft;if(&quot;number&quot;==typeof t)return Dt;if(t instanceof Kt)return Bt;if(t instanceof Qt)return Ut;if(t instanceof te)return Vt;if(t instanceof ee)return qt;if(Array.isArray(t)){for(var e,r=t.length,n=0,i=t;n&lt;i.length;n+=1){var a=ie(i[n]);if(e){if(e===a)continue;e=jt;break}e=a}return Ht(e||jt,r)}return Nt}function ae(t){var e=typeof t;return null===t?&quot;&quot;:&quot;string&quot;===e||&quot;number&quot;===e||&quot;boolean&quot;===e?String(t):t instanceof Kt||t instanceof te||t instanceof ee?t.toString():JSON.stringify(t)}ee.prototype.toString=function(){return this.name},ee.fromString=function(t){return t?new ee({name:t,available:!1}):null},ee.prototype.serialize=function(){return[&quot;image&quot;,this.name]};var oe=function(t,e){this.type=t,this.value=e};oe.parse=function(t,e){if(2!==t.length)return e.error(&quot;'literal' expression requires exactly one argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);if(!ne(t[1]))return e.error(&quot;invalid value&quot;);var r=t[1],n=ie(r),i=e.expectedType;return&quot;array&quot;!==n.kind||0!==n.N||!i||&quot;array&quot;!==i.kind||&quot;number&quot;==typeof i.N&amp;&amp;0!==i.N||(n=i),new oe(n,r)},oe.prototype.evaluate=function(){return this.value},oe.prototype.eachChild=function(){},oe.prototype.outputDefined=function(){return!0},oe.prototype.serialize=function(){return&quot;array&quot;===this.type.kind||&quot;object&quot;===this.type.kind?[&quot;literal&quot;,this.value]:this.value instanceof Kt?[&quot;rgba&quot;].concat(this.value.toArray()):this.value instanceof te?this.value.serialize():this.value};var se=function(t){this.name=&quot;ExpressionEvaluationError&quot;,this.message=t};se.prototype.toJSON=function(){return this.message};var le={string:Rt,number:Dt,boolean:Ft,object:Nt},ce=function(t,e){this.type=t,this.args=e};ce.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r,n=1,i=t[0];if(&quot;array&quot;===i){var a,o;if(t.length&gt;2){var s=t[1];if(&quot;string&quot;!=typeof s||!(s in le)||&quot;object&quot;===s)return e.error('The item type argument of &quot;array&quot; must be one of string, number, boolean',1);a=le[s],n++}else a=jt;if(t.length&gt;3){if(null!==t[2]&amp;&amp;(&quot;number&quot;!=typeof t[2]||t[2]&lt;0||t[2]!==Math.floor(t[2])))return e.error('The length argument to &quot;array&quot; must be a positive integer literal',2);o=t[2],n++}r=Ht(a,o)}else r=le[i];for(var l=[];n&lt;t.length;n++){var c=e.parse(t[n],n,jt);if(!c)return null;l.push(c)}return new ce(r,l)},ce.prototype.evaluate=function(t){for(var e=0;e&lt;this.args.length;e++){var r=this.args[e].evaluate(t);if(!Wt(this.type,ie(r)))return r;if(e===this.args.length-1)throw new se(&quot;Expected value to be of type &quot;+Gt(this.type)+&quot;, but found &quot;+Gt(ie(r))+&quot; instead.&quot;)}return null},ce.prototype.eachChild=function(t){this.args.forEach(t)},ce.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ce.prototype.serialize=function(){var t=this.type,e=[t.kind];if(&quot;array&quot;===t.kind){var r=t.itemType;if(&quot;string&quot;===r.kind||&quot;number&quot;===r.kind||&quot;boolean&quot;===r.kind){e.push(r.kind);var n=t.N;(&quot;number&quot;==typeof n||this.args.length&gt;1)&amp;&amp;e.push(n)}}return e.concat(this.args.map((function(t){return t.serialize()})))};var ue=function(t){this.type=Vt,this.sections=t};ue.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r=t[1];if(!Array.isArray(r)&amp;&amp;&quot;object&quot;==typeof r)return e.error(&quot;First argument must be an image or text section.&quot;);for(var n=[],i=!1,a=1;a&lt;=t.length-1;++a){var o=t[a];if(i&amp;&amp;&quot;object&quot;==typeof o&amp;&amp;!Array.isArray(o)){i=!1;var s=null;if(o[&quot;font-scale&quot;]&amp;&amp;!(s=e.parse(o[&quot;font-scale&quot;],1,Dt)))return null;var l=null;if(o[&quot;text-font&quot;]&amp;&amp;!(l=e.parse(o[&quot;text-font&quot;],1,Ht(Rt))))return null;var c=null;if(o[&quot;text-color&quot;]&amp;&amp;!(c=e.parse(o[&quot;text-color&quot;],1,Bt)))return null;var u=n[n.length-1];u.scale=s,u.font=l,u.textColor=c}else{var f=e.parse(t[a],1,jt);if(!f)return null;var h=f.type.kind;if(&quot;string&quot;!==h&amp;&amp;&quot;value&quot;!==h&amp;&amp;&quot;null&quot;!==h&amp;&amp;&quot;resolvedImage&quot;!==h)return e.error(&quot;Formatted text type must be 'string', 'value', 'image' or 'null'.&quot;);i=!0,n.push({content:f,scale:null,font:null,textColor:null})}}return new ue(n)},ue.prototype.evaluate=function(t){return new te(this.sections.map((function(e){var r=e.content.evaluate(t);return ie(r)===qt?new $t(&quot;&quot;,r,null,null,null):new $t(ae(r),null,e.scale?e.scale.evaluate(t):null,e.font?e.font.evaluate(t).join(&quot;,&quot;):null,e.textColor?e.textColor.evaluate(t):null)})))},ue.prototype.eachChild=function(t){for(var e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];t(n.content),n.scale&amp;&amp;t(n.scale),n.font&amp;&amp;t(n.font),n.textColor&amp;&amp;t(n.textColor)}},ue.prototype.outputDefined=function(){return!1},ue.prototype.serialize=function(){for(var t=[&quot;format&quot;],e=0,r=this.sections;e&lt;r.length;e+=1){var n=r[e];t.push(n.content.serialize());var i={};n.scale&amp;&amp;(i[&quot;font-scale&quot;]=n.scale.serialize()),n.font&amp;&amp;(i[&quot;text-font&quot;]=n.font.serialize()),n.textColor&amp;&amp;(i[&quot;text-color&quot;]=n.textColor.serialize()),t.push(i)}return t};var fe=function(t){this.type=qt,this.input=t};fe.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected two arguments.&quot;);var r=e.parse(t[1],1,Rt);return r?new fe(r):e.error(&quot;No image name provided.&quot;)},fe.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=ee.fromString(e);return r&amp;&amp;t.availableImages&amp;&amp;(r.available=t.availableImages.indexOf(e)&gt;-1),r},fe.prototype.eachChild=function(t){t(this.input)},fe.prototype.outputDefined=function(){return!1},fe.prototype.serialize=function(){return[&quot;image&quot;,this.input.serialize()]};var he={&quot;to-boolean&quot;:Ft,&quot;to-color&quot;:Bt,&quot;to-number&quot;:Dt,&quot;to-string&quot;:Rt},pe=function(t,e){this.type=t,this.args=e};pe.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expected at least one argument.&quot;);var r=t[0];if((&quot;to-boolean&quot;===r||&quot;to-string&quot;===r)&amp;&amp;2!==t.length)return e.error(&quot;Expected one argument.&quot;);for(var n=he[r],i=[],a=1;a&lt;t.length;a++){var o=e.parse(t[a],a,jt);if(!o)return null;i.push(o)}return new pe(n,i)},pe.prototype.evaluate=function(t){if(&quot;boolean&quot;===this.type.kind)return Boolean(this.args[0].evaluate(t));if(&quot;color&quot;===this.type.kind){for(var e,r,n=0,i=this.args;n&lt;i.length;n+=1){if(r=null,(e=i[n].evaluate(t))instanceof Kt)return e;if(&quot;string&quot;==typeof e){var a=t.parseColor(e);if(a)return a}else if(Array.isArray(e)&amp;&amp;!(r=e.length&lt;3||e.length&gt;4?&quot;Invalid rbga value &quot;+JSON.stringify(e)+&quot;: expected an array containing either three or four numeric values.&quot;:re(e[0],e[1],e[2],e[3])))return new Kt(e[0]/255,e[1]/255,e[2]/255,e[3])}throw new se(r||&quot;Could not parse color from value '&quot;+(&quot;string&quot;==typeof e?e:String(JSON.stringify(e)))+&quot;'&quot;)}if(&quot;number&quot;===this.type.kind){for(var o=null,s=0,l=this.args;s&lt;l.length;s+=1){if(null===(o=l[s].evaluate(t)))return 0;var c=Number(o);if(!isNaN(c))return c}throw new se(&quot;Could not convert &quot;+JSON.stringify(o)+&quot; to number.&quot;)}return&quot;formatted&quot;===this.type.kind?te.fromString(ae(this.args[0].evaluate(t))):&quot;resolvedImage&quot;===this.type.kind?ee.fromString(ae(this.args[0].evaluate(t))):ae(this.args[0].evaluate(t))},pe.prototype.eachChild=function(t){this.args.forEach(t)},pe.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},pe.prototype.serialize=function(){if(&quot;formatted&quot;===this.type.kind)return new ue([{content:this.args[0],scale:null,font:null,textColor:null}]).serialize();if(&quot;resolvedImage&quot;===this.type.kind)return new fe(this.args[0]).serialize();var t=[&quot;to-&quot;+this.type.kind];return this.eachChild((function(e){t.push(e.serialize())})),t};var de=[&quot;Unknown&quot;,&quot;Point&quot;,&quot;LineString&quot;,&quot;Polygon&quot;],ge=function(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null};ge.prototype.id=function(){return this.feature&amp;&amp;&quot;id&quot;in this.feature?this.feature.id:null},ge.prototype.geometryType=function(){return this.feature?&quot;number&quot;==typeof this.feature.type?de[this.feature.type]:this.feature.type:null},ge.prototype.geometry=function(){return this.feature&amp;&amp;&quot;geometry&quot;in this.feature?this.feature.geometry:null},ge.prototype.canonicalID=function(){return this.canonical},ge.prototype.properties=function(){return this.feature&amp;&amp;this.feature.properties||{}},ge.prototype.parseColor=function(t){var e=this._parseColorCache[t];return e||(e=this._parseColorCache[t]=Kt.parse(t)),e};var me=function(t,e,r,n){this.name=t,this.type=e,this._evaluate=r,this.args=n};me.prototype.evaluate=function(t){return this._evaluate(t,this.args)},me.prototype.eachChild=function(t){this.args.forEach(t)},me.prototype.outputDefined=function(){return!1},me.prototype.serialize=function(){return[this.name].concat(this.args.map((function(t){return t.serialize()})))},me.parse=function(t,e){var r,n=t[0],i=me.definitions[n];if(!i)return e.error('Unknown expression &quot;'+n+'&quot;. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0);for(var a=Array.isArray(i)?i[0]:i.type,o=Array.isArray(i)?[[i[1],i[2]]]:i.overloads,s=o.filter((function(e){var r=e[0];return!Array.isArray(r)||r.length===t.length-1})),l=null,c=0,u=s;c&lt;u.length;c+=1){var f=u[c],h=f[0],p=f[1];l=new Be(e.registry,e.path,null,e.scope);for(var d=[],g=!1,m=1;m&lt;t.length;m++){var v=t[m],y=Array.isArray(h)?h[m-1]:h.type,x=l.parse(v,1+d.length,y);if(!x){g=!0;break}d.push(x)}if(!g)if(Array.isArray(h)&amp;&amp;h.length!==d.length)l.error(&quot;Expected &quot;+h.length+&quot; arguments, but found &quot;+d.length+&quot; instead.&quot;);else{for(var b=0;b&lt;d.length;b++){var _=Array.isArray(h)?h[b]:h.type,w=d[b];l.concat(b+1).checkSubtype(_,w.type)}if(0===l.errors.length)return new me(n,a,p,d)}}if(1===s.length)(r=e.errors).push.apply(r,l.errors);else{for(var T=(s.length?s:o).map((function(t){var e;return e=t[0],Array.isArray(e)?&quot;(&quot;+e.map(Gt).join(&quot;, &quot;)+&quot;)&quot;:&quot;(&quot;+Gt(e.type)+&quot;...)&quot;})).join(&quot; | &quot;),k=[],M=1;M&lt;t.length;M++){var A=e.parse(t[M],1+k.length);if(!A)return null;k.push(Gt(A.type))}e.error(&quot;Expected arguments of type &quot;+T+&quot;, but found (&quot;+k.join(&quot;, &quot;)+&quot;) instead.&quot;)}return null},me.register=function(t,e){for(var r in me.definitions=e,e)t[r]=me};var ve=function(t,e,r){this.type=Ut,this.locale=r,this.caseSensitive=t,this.diacriticSensitive=e};function ye(t,e){t[0]=Math.min(t[0],e[0]),t[1]=Math.min(t[1],e[1]),t[2]=Math.max(t[2],e[0]),t[3]=Math.max(t[3],e[1])}function xe(t,e){return!(t[0]&lt;=e[0]||t[2]&gt;=e[2]||t[1]&lt;=e[1]||t[3]&gt;=e[3])}function be(t,e){var r=(180+t[0])/360,n=(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t[1]*Math.PI/360)))/360,i=Math.pow(2,e.z);return[Math.round(r*i*8192),Math.round(n*i*8192)]}function _e(t,e,r){return e[1]&gt;t[1]!=r[1]&gt;t[1]&amp;&amp;t[0]&lt;(r[0]-e[0])*(t[1]-e[1])/(r[1]-e[1])+e[0]}function we(t,e){for(var r,n,i,a,o,s,l,c=!1,u=0,f=e.length;u&lt;f;u++)for(var h=e[u],p=0,d=h.length;p&lt;d-1;p++){if((a=(r=t)[0]-(n=h[p])[0])*(l=r[1]-(i=h[p+1])[1])-(s=r[0]-i[0])*(o=r[1]-n[1])==0&amp;&amp;a*s&lt;=0&amp;&amp;o*l&lt;=0)return!1;_e(t,h[p],h[p+1])&amp;&amp;(c=!c)}return c}function Te(t,e){for(var r=0;r&lt;e.length;r++)if(we(t,e[r]))return!0;return!1}function ke(t,e,r,n){var i=n[0]-r[0],a=n[1]-r[1],o=(t[0]-r[0])*a-i*(t[1]-r[1]),s=(e[0]-r[0])*a-i*(e[1]-r[1]);return o&gt;0&amp;&amp;s&lt;0||o&lt;0&amp;&amp;s&gt;0}function Me(t,e,r){for(var n=0,i=r;n&lt;i.length;n+=1)for(var a=i[n],o=0;o&lt;a.length-1;++o)if(0!=(f=[(u=a[o+1])[0]-(c=a[o])[0],u[1]-c[1]])[0]*(h=[(l=e)[0]-(s=t)[0],l[1]-s[1]])[1]-f[1]*h[0]&amp;&amp;ke(s,l,c,u)&amp;&amp;ke(c,u,s,l))return!0;var s,l,c,u,f,h;return!1}function Ae(t,e){for(var r=0;r&lt;t.length;++r)if(!we(t[r],e))return!1;for(var n=0;n&lt;t.length-1;++n)if(Me(t[n],t[n+1],e))return!1;return!0}function Se(t,e){for(var r=0;r&lt;e.length;r++)if(Ae(t,e[r]))return!0;return!1}function Ee(t,e,r){for(var n=[],i=0;i&lt;t.length;i++){for(var a=[],o=0;o&lt;t[i].length;o++){var s=be(t[i][o],r);ye(e,s),a.push(s)}n.push(a)}return n}function Ce(t,e,r){for(var n=[],i=0;i&lt;t.length;i++){var a=Ee(t[i],e,r);n.push(a)}return n}function Le(t,e,r,n){if(t[0]&lt;r[0]||t[0]&gt;r[2]){var i=.5*n,a=t[0]-r[0]&gt;i?-n:r[0]-t[0]&gt;i?n:0;0===a&amp;&amp;(a=t[0]-r[2]&gt;i?-n:r[2]-t[0]&gt;i?n:0),t[0]+=a}ye(e,t)}function Ie(t,e,r,n){for(var i=8192*Math.pow(2,n.z),a=[8192*n.x,8192*n.y],o=[],s=0,l=t;s&lt;l.length;s+=1)for(var c=0,u=l[s];c&lt;u.length;c+=1){var f=u[c],h=[f.x+a[0],f.y+a[1]];Le(h,e,r,i),o.push(h)}return o}function Pe(t,e,r,n){for(var i,a=8192*Math.pow(2,n.z),o=[8192*n.x,8192*n.y],s=[],l=0,c=t;l&lt;c.length;l+=1){for(var u=[],f=0,h=c[l];f&lt;h.length;f+=1){var p=h[f],d=[p.x+o[0],p.y+o[1]];ye(e,d),u.push(d)}s.push(u)}if(e[2]-e[0]&lt;=a/2){(i=e)[0]=i[1]=1/0,i[2]=i[3]=-1/0;for(var g=0,m=s;g&lt;m.length;g+=1)for(var v=0,y=m[g];v&lt;y.length;v+=1)Le(y[v],e,r,a)}return s}ve.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected one argument.&quot;);var r=t[1];if(&quot;object&quot;!=typeof r||Array.isArray(r))return e.error(&quot;Collator options argument must be an object.&quot;);var n=e.parse(void 0!==r[&quot;case-sensitive&quot;]&amp;&amp;r[&quot;case-sensitive&quot;],1,Ft);if(!n)return null;var i=e.parse(void 0!==r[&quot;diacritic-sensitive&quot;]&amp;&amp;r[&quot;diacritic-sensitive&quot;],1,Ft);if(!i)return null;var a=null;return r.locale&amp;&amp;!(a=e.parse(r.locale,1,Rt))?null:new ve(n,i,a)},ve.prototype.evaluate=function(t){return new Qt(this.caseSensitive.evaluate(t),this.diacriticSensitive.evaluate(t),this.locale?this.locale.evaluate(t):null)},ve.prototype.eachChild=function(t){t(this.caseSensitive),t(this.diacriticSensitive),this.locale&amp;&amp;t(this.locale)},ve.prototype.outputDefined=function(){return!1},ve.prototype.serialize=function(){var t={};return t[&quot;case-sensitive&quot;]=this.caseSensitive.serialize(),t[&quot;diacritic-sensitive&quot;]=this.diacriticSensitive.serialize(),this.locale&amp;&amp;(t.locale=this.locale.serialize()),[&quot;collator&quot;,t]};var ze=function(t,e){this.type=Ft,this.geojson=t,this.geometries=e};function Oe(t){if(t instanceof me){if(&quot;get&quot;===t.name&amp;&amp;1===t.args.length)return!1;if(&quot;feature-state&quot;===t.name)return!1;if(&quot;has&quot;===t.name&amp;&amp;1===t.args.length)return!1;if(&quot;properties&quot;===t.name||&quot;geometry-type&quot;===t.name||&quot;id&quot;===t.name)return!1;if(/^filter-/.test(t.name))return!1}if(t instanceof ze)return!1;var e=!0;return t.eachChild((function(t){e&amp;&amp;!Oe(t)&amp;&amp;(e=!1)})),e}function De(t){if(t instanceof me&amp;&amp;&quot;feature-state&quot;===t.name)return!1;var e=!0;return t.eachChild((function(t){e&amp;&amp;!De(t)&amp;&amp;(e=!1)})),e}function Re(t,e){if(t instanceof me&amp;&amp;e.indexOf(t.name)&gt;=0)return!1;var r=!0;return t.eachChild((function(t){r&amp;&amp;!Re(t,e)&amp;&amp;(r=!1)})),r}ze.parse=function(t,e){if(2!==t.length)return e.error(&quot;'within' expression requires exactly one argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);if(ne(t[1])){var r=t[1];if(&quot;FeatureCollection&quot;===r.type)for(var n=0;n&lt;r.features.length;++n){var i=r.features[n].geometry.type;if(&quot;Polygon&quot;===i||&quot;MultiPolygon&quot;===i)return new ze(r,r.features[n].geometry)}else if(&quot;Feature&quot;===r.type){var a=r.geometry.type;if(&quot;Polygon&quot;===a||&quot;MultiPolygon&quot;===a)return new ze(r,r.geometry)}else if(&quot;Polygon&quot;===r.type||&quot;MultiPolygon&quot;===r.type)return new ze(r,r)}return e.error(&quot;'within' expression requires valid geojson object that contains polygon geometry type.&quot;)},ze.prototype.evaluate=function(t){if(null!=t.geometry()&amp;&amp;null!=t.canonicalID()){if(&quot;Point&quot;===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(&quot;Polygon&quot;===e.type){var a=Ee(e.coordinates,n,i),o=Ie(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var s=0,l=o;s&lt;l.length;s+=1)if(!we(l[s],a))return!1}if(&quot;MultiPolygon&quot;===e.type){var c=Ce(e.coordinates,n,i),u=Ie(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var f=0,h=u;f&lt;h.length;f+=1)if(!Te(h[f],c))return!1}return!0}(t,this.geometries);if(&quot;LineString&quot;===t.geometryType())return function(t,e){var r=[1/0,1/0,-1/0,-1/0],n=[1/0,1/0,-1/0,-1/0],i=t.canonicalID();if(&quot;Polygon&quot;===e.type){var a=Ee(e.coordinates,n,i),o=Pe(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var s=0,l=o;s&lt;l.length;s+=1)if(!Ae(l[s],a))return!1}if(&quot;MultiPolygon&quot;===e.type){var c=Ce(e.coordinates,n,i),u=Pe(t.geometry(),r,n,i);if(!xe(r,n))return!1;for(var f=0,h=u;f&lt;h.length;f+=1)if(!Se(h[f],c))return!1}return!0}(t,this.geometries)}return!1},ze.prototype.eachChild=function(){},ze.prototype.outputDefined=function(){return!0},ze.prototype.serialize=function(){return[&quot;within&quot;,this.geojson]};var Fe=function(t,e){this.type=e.type,this.name=t,this.boundExpression=e};Fe.parse=function(t,e){if(2!==t.length||&quot;string&quot;!=typeof t[1])return e.error(&quot;'var' expression requires exactly one string literal argument.&quot;);var r=t[1];return e.scope.has(r)?new Fe(r,e.scope.get(r)):e.error('Unknown variable &quot;'+r+'&quot;. Make sure &quot;'+r+'&quot; has been bound in an enclosing &quot;let&quot; expression before using it.',1)},Fe.prototype.evaluate=function(t){return this.boundExpression.evaluate(t)},Fe.prototype.eachChild=function(){},Fe.prototype.outputDefined=function(){return!1},Fe.prototype.serialize=function(){return[&quot;var&quot;,this.name]};var Be=function(t,e,r,n,i){void 0===e&amp;&amp;(e=[]),void 0===n&amp;&amp;(n=new zt),void 0===i&amp;&amp;(i=[]),this.registry=t,this.path=e,this.key=e.map((function(t){return&quot;[&quot;+t+&quot;]&quot;})).join(&quot;&quot;),this.scope=n,this.errors=i,this.expectedType=r};function Ne(t,e){for(var r,n=t.length-1,i=0,a=n,o=0;i&lt;=a;)if((r=t[o=Math.floor((i+a)/2)])&lt;=e){if(o===n||e&lt;t[o+1])return o;i=o+1}else{if(!(r&gt;e))throw new se(&quot;Input is not a number.&quot;);a=o-1}return 0}Be.prototype.parse=function(t,e,r,n,i){return void 0===i&amp;&amp;(i={}),e?this.concat(e,r,n)._parse(t,i):this._parse(t,i)},Be.prototype._parse=function(t,e){function r(t,e,r){return&quot;assert&quot;===r?new ce(e,[t]):&quot;coerce&quot;===r?new pe(e,[t]):t}if(null!==t&amp;&amp;&quot;string&quot;!=typeof t&amp;&amp;&quot;boolean&quot;!=typeof t&amp;&amp;&quot;number&quot;!=typeof t||(t=[&quot;literal&quot;,t]),Array.isArray(t)){if(0===t.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use [&quot;literal&quot;, []].');var n=t[0];if(&quot;string&quot;!=typeof n)return this.error(&quot;Expression name must be a string, but found &quot;+typeof n+' instead. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0),null;var i=this.registry[n];if(i){var a=i.parse(t,this);if(!a)return null;if(this.expectedType){var o=this.expectedType,s=a.type;if(&quot;string&quot;!==o.kind&amp;&amp;&quot;number&quot;!==o.kind&amp;&amp;&quot;boolean&quot;!==o.kind&amp;&amp;&quot;object&quot;!==o.kind&amp;&amp;&quot;array&quot;!==o.kind||&quot;value&quot;!==s.kind)if(&quot;color&quot;!==o.kind&amp;&amp;&quot;formatted&quot;!==o.kind&amp;&amp;&quot;resolvedImage&quot;!==o.kind||&quot;value&quot;!==s.kind&amp;&amp;&quot;string&quot;!==s.kind){if(this.checkSubtype(o,s))return null}else a=r(a,o,e.typeAnnotation||&quot;coerce&quot;);else a=r(a,o,e.typeAnnotation||&quot;assert&quot;)}if(!(a instanceof oe)&amp;&amp;&quot;resolvedImage&quot;!==a.type.kind&amp;&amp;function t(e){if(e instanceof Fe)return t(e.boundExpression);if(e instanceof me&amp;&amp;&quot;error&quot;===e.name)return!1;if(e instanceof ve)return!1;if(e instanceof ze)return!1;var r=e instanceof pe||e instanceof ce,n=!0;return e.eachChild((function(e){n=r?n&amp;&amp;t(e):n&amp;&amp;e instanceof oe})),!!n&amp;&amp;Oe(e)&amp;&amp;Re(e,[&quot;zoom&quot;,&quot;heatmap-density&quot;,&quot;line-progress&quot;,&quot;accumulated&quot;,&quot;is-supported-script&quot;])}(a)){var l=new ge;try{a=new oe(a.type,a.evaluate(l))}catch(t){return this.error(t.message),null}}return a}return this.error('Unknown expression &quot;'+n+'&quot;. If you wanted a literal array, use [&quot;literal&quot;, [...]].',0)}return this.error(void 0===t?&quot;'undefined' value invalid. Use null instead.&quot;:&quot;object&quot;==typeof t?'Bare objects invalid. Use [&quot;literal&quot;, {...}] instead.':&quot;Expected an array, but found &quot;+typeof t+&quot; instead.&quot;)},Be.prototype.concat=function(t,e,r){var n=&quot;number&quot;==typeof t?this.path.concat(t):this.path,i=r?this.scope.concat(r):this.scope;return new Be(this.registry,n,e||null,i,this.errors)},Be.prototype.error=function(t){for(var e=[],r=arguments.length-1;r-- &gt;0;)e[r]=arguments[r+1];var n=&quot;&quot;+this.key+e.map((function(t){return&quot;[&quot;+t+&quot;]&quot;})).join(&quot;&quot;);this.errors.push(new Pt(n,t))},Be.prototype.checkSubtype=function(t,e){var r=Wt(t,e);return r&amp;&amp;this.error(r),r};var je=function(t,e,r){this.type=t,this.input=e,this.labels=[],this.outputs=[];for(var n=0,i=r;n&lt;i.length;n+=1){var a=i[n],o=a[1];this.labels.push(a[0]),this.outputs.push(o)}};function Ue(t,e,r){return t*(1-r)+e*r}je.parse=function(t,e){if(t.length-1&lt;4)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if((t.length-1)%2!=0)return e.error(&quot;Expected an even number of arguments.&quot;);var r=e.parse(t[1],1,Dt);if(!r)return null;var n=[],i=null;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(i=e.expectedType);for(var a=1;a&lt;t.length;a+=2){var o=1===a?-1/0:t[a],s=t[a+1],l=a,c=a+1;if(&quot;number&quot;!=typeof o)return e.error('Input/output pairs for &quot;step&quot; expressions must be defined using literal numeric values (not computed expressions) for the input values.',l);if(n.length&amp;&amp;n[n.length-1][0]&gt;=o)return e.error('Input/output pairs for &quot;step&quot; expressions must be arranged with input values in strictly ascending order.',l);var u=e.parse(s,c,i);if(!u)return null;i=i||u.type,n.push([o,u])}return new je(i,r,n)},je.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n&lt;=e[0])return r[0].evaluate(t);var i=e.length;return n&gt;=e[i-1]?r[i-1].evaluate(t):r[Ne(e,n)].evaluate(t)},je.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1)t(r[e])},je.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},je.prototype.serialize=function(){for(var t=[&quot;step&quot;,this.input.serialize()],e=0;e&lt;this.labels.length;e++)e&gt;0&amp;&amp;t.push(this.labels[e]),t.push(this.outputs[e].serialize());return t};var Ve=Object.freeze({__proto__:null,number:Ue,color:function(t,e,r){return new Kt(Ue(t.r,e.r,r),Ue(t.g,e.g,r),Ue(t.b,e.b,r),Ue(t.a,e.a,r))},array:function(t,e,r){return t.map((function(t,n){return Ue(t,e[n],r)}))}}),qe=6/29*3*(6/29),He=Math.PI/180,Ge=180/Math.PI;function Ye(t){return t&gt;.008856451679035631?Math.pow(t,1/3):t/qe+4/29}function We(t){return t&gt;6/29?t*t*t:qe*(t-4/29)}function Xe(t){return 255*(t&lt;=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Ze(t){return(t/=255)&lt;=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Je(t){var e=Ze(t.r),r=Ze(t.g),n=Ze(t.b),i=Ye((.4124564*e+.3575761*r+.1804375*n)/.95047),a=Ye((.2126729*e+.7151522*r+.072175*n)/1);return{l:116*a-16,a:500*(i-a),b:200*(a-Ye((.0193339*e+.119192*r+.9503041*n)/1.08883)),alpha:t.a}}function Ke(t){var e=(t.l+16)/116,r=isNaN(t.a)?e:e+t.a/500,n=isNaN(t.b)?e:e-t.b/200;return e=1*We(e),r=.95047*We(r),n=1.08883*We(n),new Kt(Xe(3.2404542*r-1.5371385*e-.4985314*n),Xe(-.969266*r+1.8760108*e+.041556*n),Xe(.0556434*r-.2040259*e+1.0572252*n),t.alpha)}function Qe(t,e,r){var n=e-t;return t+r*(n&gt;180||n&lt;-180?n-360*Math.round(n/360):n)}var $e={forward:Je,reverse:Ke,interpolate:function(t,e,r){return{l:Ue(t.l,e.l,r),a:Ue(t.a,e.a,r),b:Ue(t.b,e.b,r),alpha:Ue(t.alpha,e.alpha,r)}}},tr={forward:function(t){var e=Je(t),r=e.l,n=e.a,i=e.b,a=Math.atan2(i,n)*Ge;return{h:a&lt;0?a+360:a,c:Math.sqrt(n*n+i*i),l:r,alpha:t.a}},reverse:function(t){var e=t.h*He,r=t.c;return Ke({l:t.l,a:Math.cos(e)*r,b:Math.sin(e)*r,alpha:t.alpha})},interpolate:function(t,e,r){return{h:Qe(t.h,e.h,r),c:Ue(t.c,e.c,r),l:Ue(t.l,e.l,r),alpha:Ue(t.alpha,e.alpha,r)}}},er=Object.freeze({__proto__:null,lab:$e,hcl:tr}),rr=function(t,e,r,n,i){this.type=t,this.operator=e,this.interpolation=r,this.input=n,this.labels=[],this.outputs=[];for(var a=0,o=i;a&lt;o.length;a+=1){var s=o[a],l=s[1];this.labels.push(s[0]),this.outputs.push(l)}};function nr(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}rr.interpolationFactor=function(t,e,n,i){var a=0;if(&quot;exponential&quot;===t.name)a=nr(e,t.base,n,i);else if(&quot;linear&quot;===t.name)a=nr(e,1,n,i);else if(&quot;cubic-bezier&quot;===t.name){var o=t.controlPoints;a=new r(o[0],o[1],o[2],o[3]).solve(nr(e,1,n,i))}return a},rr.parse=function(t,e){var r=t[0],n=t[1],i=t[2],a=t.slice(3);if(!Array.isArray(n)||0===n.length)return e.error(&quot;Expected an interpolation type expression.&quot;,1);if(&quot;linear&quot;===n[0])n={name:&quot;linear&quot;};else if(&quot;exponential&quot;===n[0]){var o=n[1];if(&quot;number&quot;!=typeof o)return e.error(&quot;Exponential interpolation requires a numeric base.&quot;,1,1);n={name:&quot;exponential&quot;,base:o}}else{if(&quot;cubic-bezier&quot;!==n[0])return e.error(&quot;Unknown interpolation type &quot;+String(n[0]),1,0);var s=n.slice(1);if(4!==s.length||s.some((function(t){return&quot;number&quot;!=typeof t||t&lt;0||t&gt;1})))return e.error(&quot;Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.&quot;,1);n={name:&quot;cubic-bezier&quot;,controlPoints:s}}if(t.length-1&lt;4)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if((t.length-1)%2!=0)return e.error(&quot;Expected an even number of arguments.&quot;);if(!(i=e.parse(i,2,Dt)))return null;var l=[],c=null;&quot;interpolate-hcl&quot;===r||&quot;interpolate-lab&quot;===r?c=Bt:e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(c=e.expectedType);for(var u=0;u&lt;a.length;u+=2){var f=a[u],h=a[u+1],p=u+3,d=u+4;if(&quot;number&quot;!=typeof f)return e.error('Input/output pairs for &quot;interpolate&quot; expressions must be defined using literal numeric values (not computed expressions) for the input values.',p);if(l.length&amp;&amp;l[l.length-1][0]&gt;=f)return e.error('Input/output pairs for &quot;interpolate&quot; expressions must be arranged with input values in strictly ascending order.',p);var g=e.parse(h,d,c);if(!g)return null;c=c||g.type,l.push([f,g])}return&quot;number&quot;===c.kind||&quot;color&quot;===c.kind||&quot;array&quot;===c.kind&amp;&amp;&quot;number&quot;===c.itemType.kind&amp;&amp;&quot;number&quot;==typeof c.N?new rr(c,r,n,i,l):e.error(&quot;Type &quot;+Gt(c)+&quot; is not interpolatable.&quot;)},rr.prototype.evaluate=function(t){var e=this.labels,r=this.outputs;if(1===e.length)return r[0].evaluate(t);var n=this.input.evaluate(t);if(n&lt;=e[0])return r[0].evaluate(t);var i=e.length;if(n&gt;=e[i-1])return r[i-1].evaluate(t);var a=Ne(e,n),o=rr.interpolationFactor(this.interpolation,n,e[a],e[a+1]),s=r[a].evaluate(t),l=r[a+1].evaluate(t);return&quot;interpolate&quot;===this.operator?Ve[this.type.kind.toLowerCase()](s,l,o):&quot;interpolate-hcl&quot;===this.operator?tr.reverse(tr.interpolate(tr.forward(s),tr.forward(l),o)):$e.reverse($e.interpolate($e.forward(s),$e.forward(l),o))},rr.prototype.eachChild=function(t){t(this.input);for(var e=0,r=this.outputs;e&lt;r.length;e+=1)t(r[e])},rr.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))},rr.prototype.serialize=function(){var t;t=&quot;linear&quot;===this.interpolation.name?[&quot;linear&quot;]:&quot;exponential&quot;===this.interpolation.name?1===this.interpolation.base?[&quot;linear&quot;]:[&quot;exponential&quot;,this.interpolation.base]:[&quot;cubic-bezier&quot;].concat(this.interpolation.controlPoints);for(var e=[this.operator,t,this.input.serialize()],r=0;r&lt;this.labels.length;r++)e.push(this.labels[r],this.outputs[r].serialize());return e};var ir=function(t,e){this.type=t,this.args=e};ir.parse=function(t,e){if(t.length&lt;2)return e.error(&quot;Expectected at least one argument.&quot;);var r=null,n=e.expectedType;n&amp;&amp;&quot;value&quot;!==n.kind&amp;&amp;(r=n);for(var i=[],a=0,o=t.slice(1);a&lt;o.length;a+=1){var s=e.parse(o[a],1+i.length,r,void 0,{typeAnnotation:&quot;omit&quot;});if(!s)return null;r=r||s.type,i.push(s)}var l=n&amp;&amp;i.some((function(t){return Wt(n,t.type)}));return new ir(l?jt:r,i)},ir.prototype.evaluate=function(t){for(var e,r=null,n=0,i=0,a=this.args;i&lt;a.length&amp;&amp;(n++,(r=a[i].evaluate(t))&amp;&amp;r instanceof ee&amp;&amp;!r.available&amp;&amp;(e||(e=r.name),r=null,n===this.args.length&amp;&amp;(r=e)),null===r);i+=1);return r},ir.prototype.eachChild=function(t){this.args.forEach(t)},ir.prototype.outputDefined=function(){return this.args.every((function(t){return t.outputDefined()}))},ir.prototype.serialize=function(){var t=[&quot;coalesce&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var ar=function(t,e){this.type=e.type,this.bindings=[].concat(t),this.result=e};ar.prototype.evaluate=function(t){return this.result.evaluate(t)},ar.prototype.eachChild=function(t){for(var e=0,r=this.bindings;e&lt;r.length;e+=1)t(r[e][1]);t(this.result)},ar.parse=function(t,e){if(t.length&lt;4)return e.error(&quot;Expected at least 3 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);for(var r=[],n=1;n&lt;t.length-1;n+=2){var i=t[n];if(&quot;string&quot;!=typeof i)return e.error(&quot;Expected string, but found &quot;+typeof i+&quot; instead.&quot;,n);if(/[^a-zA-Z0-9_]/.test(i))return e.error(&quot;Variable names must contain only alphanumeric characters or '_'.&quot;,n);var a=e.parse(t[n+1],n+1);if(!a)return null;r.push([i,a])}var o=e.parse(t[t.length-1],t.length-1,e.expectedType,r);return o?new ar(r,o):null},ar.prototype.outputDefined=function(){return this.result.outputDefined()},ar.prototype.serialize=function(){for(var t=[&quot;let&quot;],e=0,r=this.bindings;e&lt;r.length;e+=1){var n=r[e];t.push(n[0],n[1].serialize())}return t.push(this.result.serialize()),t};var or=function(t,e,r){this.type=t,this.index=e,this.input=r};or.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected 2 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,Dt),n=e.parse(t[2],2,Ht(e.expectedType||jt));return r&amp;&amp;n?new or(n.type.itemType,r,n):null},or.prototype.evaluate=function(t){var e=this.index.evaluate(t),r=this.input.evaluate(t);if(e&lt;0)throw new se(&quot;Array index out of bounds: &quot;+e+&quot; &lt; 0.&quot;);if(e&gt;=r.length)throw new se(&quot;Array index out of bounds: &quot;+e+&quot; &gt; &quot;+(r.length-1)+&quot;.&quot;);if(e!==Math.floor(e))throw new se(&quot;Array index must be an integer, but found &quot;+e+&quot; instead.&quot;);return r[e]},or.prototype.eachChild=function(t){t(this.index),t(this.input)},or.prototype.outputDefined=function(){return!1},or.prototype.serialize=function(){return[&quot;at&quot;,this.index.serialize(),this.input.serialize()]};var sr=function(t,e){this.type=Ft,this.needle=t,this.haystack=e};sr.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected 2 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,jt),n=e.parse(t[2],2,jt);return r&amp;&amp;n?Xt(r.type,[Ft,Rt,Dt,Ot,jt])?new sr(r,n):e.error(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(r.type)+&quot; instead&quot;):null},sr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!r)return!1;if(!Zt(e,[&quot;boolean&quot;,&quot;string&quot;,&quot;number&quot;,&quot;null&quot;]))throw new se(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(ie(e))+&quot; instead.&quot;);if(!Zt(r,[&quot;string&quot;,&quot;array&quot;]))throw new se(&quot;Expected second argument to be of type array or string, but found &quot;+Gt(ie(r))+&quot; instead.&quot;);return r.indexOf(e)&gt;=0},sr.prototype.eachChild=function(t){t(this.needle),t(this.haystack)},sr.prototype.outputDefined=function(){return!0},sr.prototype.serialize=function(){return[&quot;in&quot;,this.needle.serialize(),this.haystack.serialize()]};var lr=function(t,e,r){this.type=Dt,this.needle=t,this.haystack=e,this.fromIndex=r};lr.parse=function(t,e){if(t.length&lt;=2||t.length&gt;=5)return e.error(&quot;Expected 3 or 4 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,jt),n=e.parse(t[2],2,jt);if(!r||!n)return null;if(!Xt(r.type,[Ft,Rt,Dt,Ot,jt]))return e.error(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(r.type)+&quot; instead&quot;);if(4===t.length){var i=e.parse(t[3],3,Dt);return i?new lr(r,n,i):null}return new lr(r,n)},lr.prototype.evaluate=function(t){var e=this.needle.evaluate(t),r=this.haystack.evaluate(t);if(!Zt(e,[&quot;boolean&quot;,&quot;string&quot;,&quot;number&quot;,&quot;null&quot;]))throw new se(&quot;Expected first argument to be of type boolean, string, number or null, but found &quot;+Gt(ie(e))+&quot; instead.&quot;);if(!Zt(r,[&quot;string&quot;,&quot;array&quot;]))throw new se(&quot;Expected second argument to be of type array or string, but found &quot;+Gt(ie(r))+&quot; instead.&quot;);if(this.fromIndex){var n=this.fromIndex.evaluate(t);return r.indexOf(e,n)}return r.indexOf(e)},lr.prototype.eachChild=function(t){t(this.needle),t(this.haystack),this.fromIndex&amp;&amp;t(this.fromIndex)},lr.prototype.outputDefined=function(){return!1},lr.prototype.serialize=function(){if(null!=this.fromIndex&amp;&amp;void 0!==this.fromIndex){var t=this.fromIndex.serialize();return[&quot;index-of&quot;,this.needle.serialize(),this.haystack.serialize(),t]}return[&quot;index-of&quot;,this.needle.serialize(),this.haystack.serialize()]};var cr=function(t,e,r,n,i,a){this.inputType=t,this.type=e,this.input=r,this.cases=n,this.outputs=i,this.otherwise=a};cr.parse=function(t,e){if(t.length&lt;5)return e.error(&quot;Expected at least 4 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if(t.length%2!=1)return e.error(&quot;Expected an even number of arguments.&quot;);var r,n;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(n=e.expectedType);for(var i={},a=[],o=2;o&lt;t.length-1;o+=2){var s=t[o],l=t[o+1];Array.isArray(s)||(s=[s]);var c=e.concat(o);if(0===s.length)return c.error(&quot;Expected at least one branch label.&quot;);for(var u=0,f=s;u&lt;f.length;u+=1){var h=f[u];if(&quot;number&quot;!=typeof h&amp;&amp;&quot;string&quot;!=typeof h)return c.error(&quot;Branch labels must be numbers or strings.&quot;);if(&quot;number&quot;==typeof h&amp;&amp;Math.abs(h)&gt;Number.MAX_SAFE_INTEGER)return c.error(&quot;Branch labels must be integers no larger than &quot;+Number.MAX_SAFE_INTEGER+&quot;.&quot;);if(&quot;number&quot;==typeof h&amp;&amp;Math.floor(h)!==h)return c.error(&quot;Numeric branch labels must be integer values.&quot;);if(r){if(c.checkSubtype(r,ie(h)))return null}else r=ie(h);if(void 0!==i[String(h)])return c.error(&quot;Branch labels must be unique.&quot;);i[String(h)]=a.length}var p=e.parse(l,o,n);if(!p)return null;n=n||p.type,a.push(p)}var d=e.parse(t[1],1,jt);if(!d)return null;var g=e.parse(t[t.length-1],t.length-1,n);return g?&quot;value&quot;!==d.type.kind&amp;&amp;e.concat(1).checkSubtype(r,d.type)?null:new cr(r,n,d,i,a,g):null},cr.prototype.evaluate=function(t){var e=this.input.evaluate(t);return(ie(e)===this.inputType&amp;&amp;this.outputs[this.cases[e]]||this.otherwise).evaluate(t)},cr.prototype.eachChild=function(t){t(this.input),this.outputs.forEach(t),t(this.otherwise)},cr.prototype.outputDefined=function(){return this.outputs.every((function(t){return t.outputDefined()}))&amp;&amp;this.otherwise.outputDefined()},cr.prototype.serialize=function(){for(var t=this,e=[&quot;match&quot;,this.input.serialize()],r=[],n={},i=0,a=Object.keys(this.cases).sort();i&lt;a.length;i+=1){var o=a[i];void 0===(f=n[this.cases[o]])?(n[this.cases[o]]=r.length,r.push([this.cases[o],[o]])):r[f][1].push(o)}for(var s=function(e){return&quot;number&quot;===t.inputType.kind?Number(e):e},l=0,c=r;l&lt;c.length;l+=1){var u=c[l],f=u[0],h=u[1];e.push(1===h.length?s(h[0]):h.map(s)),e.push(this.outputs[outputIndex$1].serialize())}return e.push(this.otherwise.serialize()),e};var ur=function(t,e,r){this.type=t,this.branches=e,this.otherwise=r};ur.parse=function(t,e){if(t.length&lt;4)return e.error(&quot;Expected at least 3 arguments, but found only &quot;+(t.length-1)+&quot;.&quot;);if(t.length%2!=0)return e.error(&quot;Expected an odd number of arguments.&quot;);var r;e.expectedType&amp;&amp;&quot;value&quot;!==e.expectedType.kind&amp;&amp;(r=e.expectedType);for(var n=[],i=1;i&lt;t.length-1;i+=2){var a=e.parse(t[i],i,Ft);if(!a)return null;var o=e.parse(t[i+1],i+1,r);if(!o)return null;n.push([a,o]),r=r||o.type}var s=e.parse(t[t.length-1],t.length-1,r);return s?new ur(r,n,s):null},ur.prototype.evaluate=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var n=r[e],i=n[1];if(n[0].evaluate(t))return i.evaluate(t)}return this.otherwise.evaluate(t)},ur.prototype.eachChild=function(t){for(var e=0,r=this.branches;e&lt;r.length;e+=1){var n=r[e],i=n[1];t(n[0]),t(i)}t(this.otherwise)},ur.prototype.outputDefined=function(){return this.branches.every((function(t){return t[1].outputDefined()}))&amp;&amp;this.otherwise.outputDefined()},ur.prototype.serialize=function(){var t=[&quot;case&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var fr=function(t,e,r,n){this.type=t,this.input=e,this.beginIndex=r,this.endIndex=n};function hr(t,e){return&quot;==&quot;===t||&quot;!=&quot;===t?&quot;boolean&quot;===e.kind||&quot;string&quot;===e.kind||&quot;number&quot;===e.kind||&quot;null&quot;===e.kind||&quot;value&quot;===e.kind:&quot;string&quot;===e.kind||&quot;number&quot;===e.kind||&quot;value&quot;===e.kind}function pr(t,e,r,n){return 0===n.compare(e,r)}function dr(t,e,r){var n=&quot;==&quot;!==t&amp;&amp;&quot;!=&quot;!==t;return function(){function i(t,e,r){this.type=Ft,this.lhs=t,this.rhs=e,this.collator=r,this.hasUntypedArgument=&quot;value&quot;===t.type.kind||&quot;value&quot;===e.type.kind}return i.parse=function(t,e){if(3!==t.length&amp;&amp;4!==t.length)return e.error(&quot;Expected two or three arguments.&quot;);var r=t[0],a=e.parse(t[1],1,jt);if(!a)return null;if(!hr(r,a.type))return e.concat(1).error('&quot;'+r+&quot;\&quot; comparisons are not supported for type '&quot;+Gt(a.type)+&quot;'.&quot;);var o=e.parse(t[2],2,jt);if(!o)return null;if(!hr(r,o.type))return e.concat(2).error('&quot;'+r+&quot;\&quot; comparisons are not supported for type '&quot;+Gt(o.type)+&quot;'.&quot;);if(a.type.kind!==o.type.kind&amp;&amp;&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind)return e.error(&quot;Cannot compare types '&quot;+Gt(a.type)+&quot;' and '&quot;+Gt(o.type)+&quot;'.&quot;);n&amp;&amp;(&quot;value&quot;===a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind?a=new ce(o.type,[a]):&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;===o.type.kind&amp;&amp;(o=new ce(a.type,[o])));var s=null;if(4===t.length){if(&quot;string&quot;!==a.type.kind&amp;&amp;&quot;string&quot;!==o.type.kind&amp;&amp;&quot;value&quot;!==a.type.kind&amp;&amp;&quot;value&quot;!==o.type.kind)return e.error(&quot;Cannot use collator to compare non-string types.&quot;);if(!(s=e.parse(t[3],3,Ut)))return null}return new i(a,o,s)},i.prototype.evaluate=function(i){var a=this.lhs.evaluate(i),o=this.rhs.evaluate(i);if(n&amp;&amp;this.hasUntypedArgument){var s=ie(a),l=ie(o);if(s.kind!==l.kind||&quot;string&quot;!==s.kind&amp;&amp;&quot;number&quot;!==s.kind)throw new se('Expected arguments for &quot;'+t+'&quot; to be (string, string) or (number, number), but found ('+s.kind+&quot;, &quot;+l.kind+&quot;) instead.&quot;)}if(this.collator&amp;&amp;!n&amp;&amp;this.hasUntypedArgument){var c=ie(a),u=ie(o);if(&quot;string&quot;!==c.kind||&quot;string&quot;!==u.kind)return e(i,a,o)}return this.collator?r(i,a,o,this.collator.evaluate(i)):e(i,a,o)},i.prototype.eachChild=function(t){t(this.lhs),t(this.rhs),this.collator&amp;&amp;t(this.collator)},i.prototype.outputDefined=function(){return!0},i.prototype.serialize=function(){var e=[t];return this.eachChild((function(t){e.push(t.serialize())})),e},i}()}fr.parse=function(t,e){if(t.length&lt;=2||t.length&gt;=5)return e.error(&quot;Expected 3 or 4 arguments, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1,jt),n=e.parse(t[2],2,Dt);if(!r||!n)return null;if(!Xt(r.type,[Ht(jt),Rt,jt]))return e.error(&quot;Expected first argument to be of type array or string, but found &quot;+Gt(r.type)+&quot; instead&quot;);if(4===t.length){var i=e.parse(t[3],3,Dt);return i?new fr(r.type,r,n,i):null}return new fr(r.type,r,n)},fr.prototype.evaluate=function(t){var e=this.input.evaluate(t),r=this.beginIndex.evaluate(t);if(!Zt(e,[&quot;string&quot;,&quot;array&quot;]))throw new se(&quot;Expected first argument to be of type array or string, but found &quot;+Gt(ie(e))+&quot; instead.&quot;);if(this.endIndex){var n=this.endIndex.evaluate(t);return e.slice(r,n)}return e.slice(r)},fr.prototype.eachChild=function(t){t(this.input),t(this.beginIndex),this.endIndex&amp;&amp;t(this.endIndex)},fr.prototype.outputDefined=function(){return!1},fr.prototype.serialize=function(){if(null!=this.endIndex&amp;&amp;void 0!==this.endIndex){var t=this.endIndex.serialize();return[&quot;slice&quot;,this.input.serialize(),this.beginIndex.serialize(),t]}return[&quot;slice&quot;,this.input.serialize(),this.beginIndex.serialize()]};var gr=dr(&quot;==&quot;,(function(t,e,r){return e===r}),pr),mr=dr(&quot;!=&quot;,(function(t,e,r){return e!==r}),(function(t,e,r,n){return!pr(0,e,r,n)})),vr=dr(&quot;&lt;&quot;,(function(t,e,r){return e&lt;r}),(function(t,e,r,n){return n.compare(e,r)&lt;0})),yr=dr(&quot;&gt;&quot;,(function(t,e,r){return e&gt;r}),(function(t,e,r,n){return n.compare(e,r)&gt;0})),xr=dr(&quot;&lt;=&quot;,(function(t,e,r){return e&lt;=r}),(function(t,e,r,n){return n.compare(e,r)&lt;=0})),br=dr(&quot;&gt;=&quot;,(function(t,e,r){return e&gt;=r}),(function(t,e,r,n){return n.compare(e,r)&gt;=0})),_r=function(t,e,r,n,i){this.type=Rt,this.number=t,this.locale=e,this.currency=r,this.minFractionDigits=n,this.maxFractionDigits=i};_r.parse=function(t,e){if(3!==t.length)return e.error(&quot;Expected two arguments.&quot;);var r=e.parse(t[1],1,Dt);if(!r)return null;var n=t[2];if(&quot;object&quot;!=typeof n||Array.isArray(n))return e.error(&quot;NumberFormat options argument must be an object.&quot;);var i=null;if(n.locale&amp;&amp;!(i=e.parse(n.locale,1,Rt)))return null;var a=null;if(n.currency&amp;&amp;!(a=e.parse(n.currency,1,Rt)))return null;var o=null;if(n[&quot;min-fraction-digits&quot;]&amp;&amp;!(o=e.parse(n[&quot;min-fraction-digits&quot;],1,Dt)))return null;var s=null;return n[&quot;max-fraction-digits&quot;]&amp;&amp;!(s=e.parse(n[&quot;max-fraction-digits&quot;],1,Dt))?null:new _r(r,i,a,o,s)},_r.prototype.evaluate=function(t){return new Intl.NumberFormat(this.locale?this.locale.evaluate(t):[],{style:this.currency?&quot;currency&quot;:&quot;decimal&quot;,currency:this.currency?this.currency.evaluate(t):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(t):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(t):void 0}).format(this.number.evaluate(t))},_r.prototype.eachChild=function(t){t(this.number),this.locale&amp;&amp;t(this.locale),this.currency&amp;&amp;t(this.currency),this.minFractionDigits&amp;&amp;t(this.minFractionDigits),this.maxFractionDigits&amp;&amp;t(this.maxFractionDigits)},_r.prototype.outputDefined=function(){return!1},_r.prototype.serialize=function(){var t={};return this.locale&amp;&amp;(t.locale=this.locale.serialize()),this.currency&amp;&amp;(t.currency=this.currency.serialize()),this.minFractionDigits&amp;&amp;(t[&quot;min-fraction-digits&quot;]=this.minFractionDigits.serialize()),this.maxFractionDigits&amp;&amp;(t[&quot;max-fraction-digits&quot;]=this.maxFractionDigits.serialize()),[&quot;number-format&quot;,this.number.serialize(),t]};var wr=function(t){this.type=Dt,this.input=t};wr.parse=function(t,e){if(2!==t.length)return e.error(&quot;Expected 1 argument, but found &quot;+(t.length-1)+&quot; instead.&quot;);var r=e.parse(t[1],1);return r?&quot;array&quot;!==r.type.kind&amp;&amp;&quot;string&quot;!==r.type.kind&amp;&amp;&quot;value&quot;!==r.type.kind?e.error(&quot;Expected argument of type string or array, but found &quot;+Gt(r.type)+&quot; instead.&quot;):new wr(r):null},wr.prototype.evaluate=function(t){var e=this.input.evaluate(t);if(&quot;string&quot;==typeof e)return e.length;if(Array.isArray(e))return e.length;throw new se(&quot;Expected value to be of type string or array, but found &quot;+Gt(ie(e))+&quot; instead.&quot;)},wr.prototype.eachChild=function(t){t(this.input)},wr.prototype.outputDefined=function(){return!1},wr.prototype.serialize=function(){var t=[&quot;length&quot;];return this.eachChild((function(e){t.push(e.serialize())})),t};var Tr={&quot;==&quot;:gr,&quot;!=&quot;:mr,&quot;&gt;&quot;:yr,&quot;&lt;&quot;:vr,&quot;&gt;=&quot;:br,&quot;&lt;=&quot;:xr,array:ce,at:or,boolean:ce,case:ur,coalesce:ir,collator:ve,format:ue,image:fe,in:sr,&quot;index-of&quot;:lr,interpolate:rr,&quot;interpolate-hcl&quot;:rr,&quot;interpolate-lab&quot;:rr,length:wr,let:ar,literal:oe,match:cr,number:ce,&quot;number-format&quot;:_r,object:ce,slice:fr,step:je,string:ce,&quot;to-boolean&quot;:pe,&quot;to-color&quot;:pe,&quot;to-number&quot;:pe,&quot;to-string&quot;:pe,var:Fe,within:ze};function kr(t,e){var r=e[0],n=e[1],i=e[2],a=e[3];r=r.evaluate(t),n=n.evaluate(t),i=i.evaluate(t);var o=a?a.evaluate(t):1,s=re(r,n,i,o);if(s)throw new se(s);return new Kt(r/255*o,n/255*o,i/255*o,o)}function Mr(t,e){return t in e}function Ar(t,e){var r=e[t];return void 0===r?null:r}function Sr(t){return{type:t}}function Er(t){return{result:&quot;success&quot;,value:t}}function Cr(t){return{result:&quot;error&quot;,value:t}}function Lr(t){return&quot;data-driven&quot;===t[&quot;property-type&quot;]||&quot;cross-faded-data-driven&quot;===t[&quot;property-type&quot;]}function Ir(t){return!!t.expression&amp;&amp;t.expression.parameters.indexOf(&quot;zoom&quot;)&gt;-1}function Pr(t){return!!t.expression&amp;&amp;t.expression.interpolated}function zr(t){return t instanceof Number?&quot;number&quot;:t instanceof String?&quot;string&quot;:t instanceof Boolean?&quot;boolean&quot;:Array.isArray(t)?&quot;array&quot;:null===t?&quot;null&quot;:typeof t}function Or(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t&amp;&amp;!Array.isArray(t)}function Dr(t){return t}function Rr(t,e,r){return void 0!==t?t:void 0!==e?e:void 0!==r?r:void 0}function Fr(t,e,r,n,i){return Rr(typeof r===i?n[r]:void 0,t.default,e.default)}function Br(t,e,r){if(&quot;number&quot;!==zr(r))return Rr(t.default,e.default);var n=t.stops.length;if(1===n)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[n-1][0])return t.stops[n-1][1];var i=Ne(t.stops.map((function(t){return t[0]})),r);return t.stops[i][1]}function Nr(t,e,r){var n=void 0!==t.base?t.base:1;if(&quot;number&quot;!==zr(r))return Rr(t.default,e.default);var i=t.stops.length;if(1===i)return t.stops[0][1];if(r&lt;=t.stops[0][0])return t.stops[0][1];if(r&gt;=t.stops[i-1][0])return t.stops[i-1][1];var a=Ne(t.stops.map((function(t){return t[0]})),r),o=function(t,e,r,n){var i=n-r,a=t-r;return 0===i?0:1===e?a/i:(Math.pow(e,a)-1)/(Math.pow(e,i)-1)}(r,n,t.stops[a][0],t.stops[a+1][0]),s=t.stops[a][1],l=t.stops[a+1][1],c=Ve[e.type]||Dr;if(t.colorSpace&amp;&amp;&quot;rgb&quot;!==t.colorSpace){var u=er[t.colorSpace];c=function(t,e){return u.reverse(u.interpolate(u.forward(t),u.forward(e),o))}}return&quot;function&quot;==typeof s.evaluate?{evaluate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var r=s.evaluate.apply(void 0,t),n=l.evaluate.apply(void 0,t);if(void 0!==r&amp;&amp;void 0!==n)return c(r,n,o)}}:c(s,l,o)}function jr(t,e,r){return&quot;color&quot;===e.type?r=Kt.parse(r):&quot;formatted&quot;===e.type?r=te.fromString(r.toString()):&quot;resolvedImage&quot;===e.type?r=ee.fromString(r.toString()):zr(r)===e.type||&quot;enum&quot;===e.type&amp;&amp;e.values[r]||(r=void 0),Rr(r,t.default,e.default)}me.register(Tr,{error:[{kind:&quot;error&quot;},[Rt],function(t,e){throw new se(e[0].evaluate(t))}],typeof:[Rt,[jt],function(t,e){return Gt(ie(e[0].evaluate(t)))}],&quot;to-rgba&quot;:[Ht(Dt,4),[Bt],function(t,e){return e[0].evaluate(t).toArray()}],rgb:[Bt,[Dt,Dt,Dt],kr],rgba:[Bt,[Dt,Dt,Dt,Dt],kr],has:{type:Ft,overloads:[[[Rt],function(t,e){return Mr(e[0].evaluate(t),t.properties())}],[[Rt,Nt],function(t,e){var r=e[1];return Mr(e[0].evaluate(t),r.evaluate(t))}]]},get:{type:jt,overloads:[[[Rt],function(t,e){return Ar(e[0].evaluate(t),t.properties())}],[[Rt,Nt],function(t,e){var r=e[1];return Ar(e[0].evaluate(t),r.evaluate(t))}]]},&quot;feature-state&quot;:[jt,[Rt],function(t,e){return Ar(e[0].evaluate(t),t.featureState||{})}],properties:[Nt,[],function(t){return t.properties()}],&quot;geometry-type&quot;:[Rt,[],function(t){return t.geometryType()}],id:[jt,[],function(t){return t.id()}],zoom:[Dt,[],function(t){return t.globals.zoom}],&quot;heatmap-density&quot;:[Dt,[],function(t){return t.globals.heatmapDensity||0}],&quot;line-progress&quot;:[Dt,[],function(t){return t.globals.lineProgress||0}],accumulated:[jt,[],function(t){return void 0===t.globals.accumulated?null:t.globals.accumulated}],&quot;+&quot;:[Dt,Sr(Dt),function(t,e){for(var r=0,n=0,i=e;n&lt;i.length;n+=1)r+=i[n].evaluate(t);return r}],&quot;*&quot;:[Dt,Sr(Dt),function(t,e){for(var r=1,n=0,i=e;n&lt;i.length;n+=1)r*=i[n].evaluate(t);return r}],&quot;-&quot;:{type:Dt,overloads:[[[Dt,Dt],function(t,e){var r=e[1];return e[0].evaluate(t)-r.evaluate(t)}],[[Dt],function(t,e){return-e[0].evaluate(t)}]]},&quot;/&quot;:[Dt,[Dt,Dt],function(t,e){var r=e[1];return e[0].evaluate(t)/r.evaluate(t)}],&quot;%&quot;:[Dt,[Dt,Dt],function(t,e){var r=e[1];return e[0].evaluate(t)%r.evaluate(t)}],ln2:[Dt,[],function(){return Math.LN2}],pi:[Dt,[],function(){return Math.PI}],e:[Dt,[],function(){return Math.E}],&quot;^&quot;:[Dt,[Dt,Dt],function(t,e){var r=e[1];return Math.pow(e[0].evaluate(t),r.evaluate(t))}],sqrt:[Dt,[Dt],function(t,e){return Math.sqrt(e[0].evaluate(t))}],log10:[Dt,[Dt],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN10}],ln:[Dt,[Dt],function(t,e){return Math.log(e[0].evaluate(t))}],log2:[Dt,[Dt],function(t,e){return Math.log(e[0].evaluate(t))/Math.LN2}],sin:[Dt,[Dt],function(t,e){return Math.sin(e[0].evaluate(t))}],cos:[Dt,[Dt],function(t,e){return Math.cos(e[0].evaluate(t))}],tan:[Dt,[Dt],function(t,e){return Math.tan(e[0].evaluate(t))}],asin:[Dt,[Dt],function(t,e){return Math.asin(e[0].evaluate(t))}],acos:[Dt,[Dt],function(t,e){return Math.acos(e[0].evaluate(t))}],atan:[Dt,[Dt],function(t,e){return Math.atan(e[0].evaluate(t))}],min:[Dt,Sr(Dt),function(t,e){return Math.min.apply(Math,e.map((function(e){return e.evaluate(t)})))}],max:[Dt,Sr(Dt),function(t,e){return Math.max.apply(Math,e.map((function(e){return e.evaluate(t)})))}],abs:[Dt,[Dt],function(t,e){return Math.abs(e[0].evaluate(t))}],round:[Dt,[Dt],function(t,e){var r=e[0].evaluate(t);return r&lt;0?-Math.round(-r):Math.round(r)}],floor:[Dt,[Dt],function(t,e){return Math.floor(e[0].evaluate(t))}],ceil:[Dt,[Dt],function(t,e){return Math.ceil(e[0].evaluate(t))}],&quot;filter-==&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1];return t.properties()[r.value]===n.value}],&quot;filter-id-==&quot;:[Ft,[jt],function(t,e){var r=e[0];return t.id()===r.value}],&quot;filter-type-==&quot;:[Ft,[Rt],function(t,e){var r=e[0];return t.geometryType()===r.value}],&quot;filter-&lt;&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&lt;a}],&quot;filter-id-&lt;&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&lt;i}],&quot;filter-&gt;&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&gt;a}],&quot;filter-id-&gt;&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&gt;i}],&quot;filter-&lt;=&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&lt;=a}],&quot;filter-id-&lt;=&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&lt;=i}],&quot;filter-&gt;=&quot;:[Ft,[Rt,jt],function(t,e){var r=e[0],n=e[1],i=t.properties()[r.value],a=n.value;return typeof i==typeof a&amp;&amp;i&gt;=a}],&quot;filter-id-&gt;=&quot;:[Ft,[jt],function(t,e){var r=e[0],n=t.id(),i=r.value;return typeof n==typeof i&amp;&amp;n&gt;=i}],&quot;filter-has&quot;:[Ft,[jt],function(t,e){return e[0].value in t.properties()}],&quot;filter-has-id&quot;:[Ft,[],function(t){return null!==t.id()&amp;&amp;void 0!==t.id()}],&quot;filter-type-in&quot;:[Ft,[Ht(Rt)],function(t,e){return e[0].value.indexOf(t.geometryType())&gt;=0}],&quot;filter-id-in&quot;:[Ft,[Ht(jt)],function(t,e){return e[0].value.indexOf(t.id())&gt;=0}],&quot;filter-in-small&quot;:[Ft,[Rt,Ht(jt)],function(t,e){var r=e[0];return e[1].value.indexOf(t.properties()[r.value])&gt;=0}],&quot;filter-in-large&quot;:[Ft,[Rt,Ht(jt)],function(t,e){var r=e[0],n=e[1];return function(t,e,r,n){for(;r&lt;=n;){var i=r+n&gt;&gt;1;if(e[i]===t)return!0;e[i]&gt;t?n=i-1:r=i+1}return!1}(t.properties()[r.value],n.value,0,n.value.length-1)}],all:{type:Ft,overloads:[[[Ft,Ft],function(t,e){var r=e[1];return e[0].evaluate(t)&amp;&amp;r.evaluate(t)}],[Sr(Ft),function(t,e){for(var r=0,n=e;r&lt;n.length;r+=1)if(!n[r].evaluate(t))return!1;return!0}]]},any:{type:Ft,overloads:[[[Ft,Ft],function(t,e){var r=e[1];return e[0].evaluate(t)||r.evaluate(t)}],[Sr(Ft),function(t,e){for(var r=0,n=e;r&lt;n.length;r+=1)if(n[r].evaluate(t))return!0;return!1}]]},&quot;!&quot;:[Ft,[Ft],function(t,e){return!e[0].evaluate(t)}],&quot;is-supported-script&quot;:[Ft,[Rt],function(t,e){var r=t.globals&amp;&amp;t.globals.isSupportedScript;return!r||r(e[0].evaluate(t))}],upcase:[Rt,[Rt],function(t,e){return e[0].evaluate(t).toUpperCase()}],downcase:[Rt,[Rt],function(t,e){return e[0].evaluate(t).toLowerCase()}],concat:[Rt,Sr(jt),function(t,e){return e.map((function(e){return ae(e.evaluate(t))})).join(&quot;&quot;)}],&quot;resolved-locale&quot;:[Rt,[Ut],function(t,e){return e[0].evaluate(t).resolvedLocale()}]});var Ur=function(t,e){this.expression=t,this._warningHistory={},this._evaluator=new ge,this._defaultValue=e?function(t){return&quot;color&quot;===t.type&amp;&amp;Or(t.default)?new Kt(0,0,0,0):&quot;color&quot;===t.type?Kt.parse(t.default)||null:void 0===t.default?null:t.default}(e):null,this._enumValues=e&amp;&amp;&quot;enum&quot;===e.type?e.values:null};function Vr(t){return Array.isArray(t)&amp;&amp;t.length&gt;0&amp;&amp;&quot;string&quot;==typeof t[0]&amp;&amp;t[0]in Tr}function qr(t,e){var r=new Be(Tr,[],e?function(t){var e={color:Bt,string:Rt,number:Dt,enum:Rt,boolean:Ft,formatted:Vt,resolvedImage:qt};return&quot;array&quot;===t.type?Ht(e[t.value]||jt,t.length):e[t.type]}(e):void 0),n=r.parse(t,void 0,void 0,void 0,e&amp;&amp;&quot;string&quot;===e.type?{typeAnnotation:&quot;coerce&quot;}:void 0);return n?Er(new Ur(n,e)):Cr(r.errors)}Ur.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._evaluator.globals=t,this._evaluator.feature=e,this._evaluator.featureState=r,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a,this.expression.evaluate(this._evaluator)},Ur.prototype.evaluate=function(t,e,r,n,i,a){this._evaluator.globals=t,this._evaluator.feature=e||null,this._evaluator.featureState=r||null,this._evaluator.canonical=n,this._evaluator.availableImages=i||null,this._evaluator.formattedSection=a||null;try{var o=this.expression.evaluate(this._evaluator);if(null==o||&quot;number&quot;==typeof o&amp;&amp;o!=o)return this._defaultValue;if(this._enumValues&amp;&amp;!(o in this._enumValues))throw new se(&quot;Expected value to be one of &quot;+Object.keys(this._enumValues).map((function(t){return JSON.stringify(t)})).join(&quot;, &quot;)+&quot;, but found &quot;+JSON.stringify(o)+&quot; instead.&quot;);return o}catch(t){return this._warningHistory[t.message]||(this._warningHistory[t.message]=!0,&quot;undefined&quot;!=typeof console&amp;&amp;console.warn(t.message)),this._defaultValue}};var Hr=function(t,e){this.kind=t,this._styleExpression=e,this.isStateDependent=&quot;constant&quot;!==t&amp;&amp;!De(e.expression)};Hr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},Hr.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)};var Gr=function(t,e,r,n){this.kind=t,this.zoomStops=r,this._styleExpression=e,this.isStateDependent=&quot;camera&quot;!==t&amp;&amp;!De(e.expression),this.interpolationType=n};function Yr(t,e){if(&quot;error&quot;===(t=qr(t,e)).result)return t;var r=t.value.expression,n=Oe(r);if(!n&amp;&amp;!Lr(e))return Cr([new Pt(&quot;&quot;,&quot;data expressions not supported&quot;)]);var i=Re(r,[&quot;zoom&quot;]);if(!i&amp;&amp;!Ir(e))return Cr([new Pt(&quot;&quot;,&quot;zoom expressions not supported&quot;)]);var a=function t(e){var r=null;if(e instanceof ar)r=t(e.result);else if(e instanceof ir)for(var n=0,i=e.args;n&lt;i.length&amp;&amp;!(r=t(i[n]));n+=1);else(e instanceof je||e instanceof rr)&amp;&amp;e.input instanceof me&amp;&amp;&quot;zoom&quot;===e.input.name&amp;&amp;(r=e);return r instanceof Pt||e.eachChild((function(e){var n=t(e);n instanceof Pt?r=n:!r&amp;&amp;n?r=new Pt(&quot;&quot;,'&quot;zoom&quot; expression may only be used as input to a top-level &quot;step&quot; or &quot;interpolate&quot; expression.'):r&amp;&amp;n&amp;&amp;r!==n&amp;&amp;(r=new Pt(&quot;&quot;,'Only one zoom-based &quot;step&quot; or &quot;interpolate&quot; subexpression may be used in an expression.'))})),r}(r);return a||i?a instanceof Pt?Cr([a]):a instanceof rr&amp;&amp;!Pr(e)?Cr([new Pt(&quot;&quot;,'&quot;interpolate&quot; expressions cannot be used with this property')]):Er(a?new Gr(n?&quot;camera&quot;:&quot;composite&quot;,t.value,a.labels,a instanceof rr?a.interpolation:void 0):new Hr(n?&quot;constant&quot;:&quot;source&quot;,t.value)):Cr([new Pt(&quot;&quot;,'&quot;zoom&quot; expression may only be used as input to a top-level &quot;step&quot; or &quot;interpolate&quot; expression.')])}Gr.prototype.evaluateWithoutErrorHandling=function(t,e,r,n,i,a){return this._styleExpression.evaluateWithoutErrorHandling(t,e,r,n,i,a)},Gr.prototype.evaluate=function(t,e,r,n,i,a){return this._styleExpression.evaluate(t,e,r,n,i,a)},Gr.prototype.interpolationFactor=function(t,e,r){return this.interpolationType?rr.interpolationFactor(this.interpolationType,t,e,r):0};var Wr=function(t,e){this._parameters=t,this._specification=e,Ct(this,function t(e,r){var n,i,a,o=&quot;color&quot;===r.type,s=e.stops&amp;&amp;&quot;object&quot;==typeof e.stops[0][0],l=s||!(s||void 0!==e.property),c=e.type||(Pr(r)?&quot;exponential&quot;:&quot;interval&quot;);if(o&amp;&amp;((e=Ct({},e)).stops&amp;&amp;(e.stops=e.stops.map((function(t){return[t[0],Kt.parse(t[1])]}))),e.default=Kt.parse(e.default?e.default:r.default)),e.colorSpace&amp;&amp;&quot;rgb&quot;!==e.colorSpace&amp;&amp;!er[e.colorSpace])throw new Error(&quot;Unknown color space: &quot;+e.colorSpace);if(&quot;exponential&quot;===c)n=Nr;else if(&quot;interval&quot;===c)n=Br;else if(&quot;categorical&quot;===c){n=Fr,i=Object.create(null);for(var u=0,f=e.stops;u&lt;f.length;u+=1){var h=f[u];i[h[0]]=h[1]}a=typeof e.stops[0][0]}else{if(&quot;identity&quot;!==c)throw new Error('Unknown function type &quot;'+c+'&quot;');n=jr}if(s){for(var p={},d=[],g=0;g&lt;e.stops.length;g++){var m=e.stops[g],v=m[0].zoom;void 0===p[v]&amp;&amp;(p[v]={zoom:v,type:e.type,property:e.property,default:e.default,stops:[]},d.push(v)),p[v].stops.push([m[0].value,m[1]])}for(var y=[],x=0,b=d;x&lt;b.length;x+=1){var _=b[x];y.push([p[_].zoom,t(p[_],r)])}var w={name:&quot;linear&quot;};return{kind:&quot;composite&quot;,interpolationType:w,interpolationFactor:rr.interpolationFactor.bind(void 0,w),zoomStops:y.map((function(t){return t[0]})),evaluate:function(t,n){var i=t.zoom;return Nr({stops:y,base:e.base},r,i).evaluate(i,n)}}}if(l){var T=&quot;exponential&quot;===c?{name:&quot;exponential&quot;,base:void 0!==e.base?e.base:1}:null;return{kind:&quot;camera&quot;,interpolationType:T,interpolationFactor:rr.interpolationFactor.bind(void 0,T),zoomStops:e.stops.map((function(t){return t[0]})),evaluate:function(t){return n(e,r,t.zoom,i,a)}}}return{kind:&quot;source&quot;,evaluate:function(t,o){var s=o&amp;&amp;o.properties?o.properties[e.property]:void 0;return void 0===s?Rr(e.default,r.default):n(e,r,s,i,a)}}}(this._parameters,this._specification))};function Xr(t){var e=t.key,r=t.value,n=t.valueSpec||{},i=t.objectElementValidators||{},a=t.style,o=t.styleSpec,s=[],l=zr(r);if(&quot;object&quot;!==l)return[new St(e,r,&quot;object expected, &quot;+l+&quot; found&quot;)];for(var c in r){var u=c.split(&quot;.&quot;)[0],f=n[u]||n[&quot;*&quot;],h=void 0;if(i[u])h=i[u];else if(n[u])h=bn;else if(i[&quot;*&quot;])h=i[&quot;*&quot;];else{if(!n[&quot;*&quot;]){s.push(new St(e,r[c],'unknown property &quot;'+c+'&quot;'));continue}h=bn}s=s.concat(h({key:(e?e+&quot;.&quot;:e)+c,value:r[c],valueSpec:f,style:a,styleSpec:o,object:r,objectKey:c},r))}for(var p in n)i[p]||n[p].required&amp;&amp;void 0===n[p].default&amp;&amp;void 0===r[p]&amp;&amp;s.push(new St(e,r,'missing required property &quot;'+p+'&quot;'));return s}function Zr(t){var e=t.value,r=t.valueSpec,n=t.style,i=t.styleSpec,a=t.key,o=t.arrayElementValidator||bn;if(&quot;array&quot;!==zr(e))return[new St(a,e,&quot;array expected, &quot;+zr(e)+&quot; found&quot;)];if(r.length&amp;&amp;e.length!==r.length)return[new St(a,e,&quot;array length &quot;+r.length+&quot; expected, length &quot;+e.length+&quot; found&quot;)];if(r[&quot;min-length&quot;]&amp;&amp;e.length&lt;r[&quot;min-length&quot;])return[new St(a,e,&quot;array length at least &quot;+r[&quot;min-length&quot;]+&quot; expected, length &quot;+e.length+&quot; found&quot;)];var s={type:r.value,values:r.values};i.$version&lt;7&amp;&amp;(s.function=r.function),&quot;object&quot;===zr(r.value)&amp;&amp;(s=r.value);for(var l=[],c=0;c&lt;e.length;c++)l=l.concat(o({array:e,arrayIndex:c,value:e[c],valueSpec:s,style:n,styleSpec:i,key:a+&quot;[&quot;+c+&quot;]&quot;}));return l}function Jr(t){var e=t.key,r=t.value,n=t.valueSpec,i=zr(r);return&quot;number&quot;===i&amp;&amp;r!=r&amp;&amp;(i=&quot;NaN&quot;),&quot;number&quot;!==i?[new St(e,r,&quot;number expected, &quot;+i+&quot; found&quot;)]:&quot;minimum&quot;in n&amp;&amp;r&lt;n.minimum?[new St(e,r,r+&quot; is less than the minimum value &quot;+n.minimum)]:&quot;maximum&quot;in n&amp;&amp;r&gt;n.maximum?[new St(e,r,r+&quot; is greater than the maximum value &quot;+n.maximum)]:[]}function Kr(t){var e,r,n,i=t.valueSpec,a=Lt(t.value.type),o={},s=&quot;categorical&quot;!==a&amp;&amp;void 0===t.value.property,l=!s,c=&quot;array&quot;===zr(t.value.stops)&amp;&amp;&quot;array&quot;===zr(t.value.stops[0])&amp;&amp;&quot;object&quot;===zr(t.value.stops[0][0]),u=Xr({key:t.key,value:t.value,valueSpec:t.styleSpec.function,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{stops:function(t){if(&quot;identity&quot;===a)return[new St(t.key,t.value,'identity function may not have a &quot;stops&quot; property')];var e=[],r=t.value;return e=e.concat(Zr({key:t.key,value:r,valueSpec:t.valueSpec,style:t.style,styleSpec:t.styleSpec,arrayElementValidator:f})),&quot;array&quot;===zr(r)&amp;&amp;0===r.length&amp;&amp;e.push(new St(t.key,r,&quot;array must have at least one stop&quot;)),e},default:function(t){return bn({key:t.key,value:t.value,valueSpec:i,style:t.style,styleSpec:t.styleSpec})}}});return&quot;identity&quot;===a&amp;&amp;s&amp;&amp;u.push(new St(t.key,t.value,'missing required property &quot;property&quot;')),&quot;identity&quot;===a||t.value.stops||u.push(new St(t.key,t.value,'missing required property &quot;stops&quot;')),&quot;exponential&quot;===a&amp;&amp;t.valueSpec.expression&amp;&amp;!Pr(t.valueSpec)&amp;&amp;u.push(new St(t.key,t.value,&quot;exponential functions not supported&quot;)),t.styleSpec.$version&gt;=8&amp;&amp;(l&amp;&amp;!Lr(t.valueSpec)?u.push(new St(t.key,t.value,&quot;property functions not supported&quot;)):s&amp;&amp;!Ir(t.valueSpec)&amp;&amp;u.push(new St(t.key,t.value,&quot;zoom functions not supported&quot;))),&quot;categorical&quot;!==a&amp;&amp;!c||void 0!==t.value.property||u.push(new St(t.key,t.value,'&quot;property&quot; property is required')),u;function f(t){var e=[],a=t.value,s=t.key;if(&quot;array&quot;!==zr(a))return[new St(s,a,&quot;array expected, &quot;+zr(a)+&quot; found&quot;)];if(2!==a.length)return[new St(s,a,&quot;array length 2 expected, length &quot;+a.length+&quot; found&quot;)];if(c){if(&quot;object&quot;!==zr(a[0]))return[new St(s,a,&quot;object expected, &quot;+zr(a[0])+&quot; found&quot;)];if(void 0===a[0].zoom)return[new St(s,a,&quot;object stop key must have zoom&quot;)];if(void 0===a[0].value)return[new St(s,a,&quot;object stop key must have value&quot;)];if(n&amp;&amp;n&gt;Lt(a[0].zoom))return[new St(s,a[0].zoom,&quot;stop zoom values must appear in ascending order&quot;)];Lt(a[0].zoom)!==n&amp;&amp;(n=Lt(a[0].zoom),r=void 0,o={}),e=e.concat(Xr({key:s+&quot;[0]&quot;,value:a[0],valueSpec:{zoom:{}},style:t.style,styleSpec:t.styleSpec,objectElementValidators:{zoom:Jr,value:h}}))}else e=e.concat(h({key:s+&quot;[0]&quot;,value:a[0],valueSpec:{},style:t.style,styleSpec:t.styleSpec},a));return Vr(It(a[1]))?e.concat([new St(s+&quot;[1]&quot;,a[1],&quot;expressions are not allowed in function stops.&quot;)]):e.concat(bn({key:s+&quot;[1]&quot;,value:a[1],valueSpec:i,style:t.style,styleSpec:t.styleSpec}))}function h(t,n){var s=zr(t.value),l=Lt(t.value),c=null!==t.value?t.value:n;if(e){if(s!==e)return[new St(t.key,c,s+&quot; stop domain type must match previous stop domain type &quot;+e)]}else e=s;if(&quot;number&quot;!==s&amp;&amp;&quot;string&quot;!==s&amp;&amp;&quot;boolean&quot;!==s)return[new St(t.key,c,&quot;stop domain value must be a number, string, or boolean&quot;)];if(&quot;number&quot;!==s&amp;&amp;&quot;categorical&quot;!==a){var u=&quot;number expected, &quot;+s+&quot; found&quot;;return Lr(i)&amp;&amp;void 0===a&amp;&amp;(u+='\nIf you intended to use a categorical function, specify `&quot;type&quot;: &quot;categorical&quot;`.'),[new St(t.key,c,u)]}return&quot;categorical&quot;!==a||&quot;number&quot;!==s||isFinite(l)&amp;&amp;Math.floor(l)===l?&quot;categorical&quot;!==a&amp;&amp;&quot;number&quot;===s&amp;&amp;void 0!==r&amp;&amp;l&lt;r?[new St(t.key,c,&quot;stop domain values must appear in ascending order&quot;)]:(r=l,&quot;categorical&quot;===a&amp;&amp;l in o?[new St(t.key,c,&quot;stop domain values must be unique&quot;)]:(o[l]=!0,[])):[new St(t.key,c,&quot;integer expected, found &quot;+l)]}}function Qr(t){var e=(&quot;property&quot;===t.expressionContext?Yr:qr)(It(t.value),t.valueSpec);if(&quot;error&quot;===e.result)return e.value.map((function(e){return new St(&quot;&quot;+t.key+e.key,t.value,e.message)}));var r=e.value.expression||e.value._styleExpression.expression;if(&quot;property&quot;===t.expressionContext&amp;&amp;&quot;text-font&quot;===t.propertyKey&amp;&amp;!r.outputDefined())return[new St(t.key,t.value,'Invalid data expression for &quot;'+t.propertyKey+'&quot;. Output values must be contained as literals within the expression.')];if(&quot;property&quot;===t.expressionContext&amp;&amp;&quot;layout&quot;===t.propertyType&amp;&amp;!De(r))return[new St(t.key,t.value,'&quot;feature-state&quot; data expressions are not supported with layout properties.')];if(&quot;filter&quot;===t.expressionContext&amp;&amp;!De(r))return[new St(t.key,t.value,'&quot;feature-state&quot; data expressions are not supported with filters.')];if(t.expressionContext&amp;&amp;0===t.expressionContext.indexOf(&quot;cluster&quot;)){if(!Re(r,[&quot;zoom&quot;,&quot;feature-state&quot;]))return[new St(t.key,t.value,'&quot;zoom&quot; and &quot;feature-state&quot; expressions are not supported with cluster properties.')];if(&quot;cluster-initial&quot;===t.expressionContext&amp;&amp;!Oe(r))return[new St(t.key,t.value,&quot;Feature data expressions are not supported with initial expression part of cluster properties.&quot;)]}return[]}function $r(t){var e=t.key,r=t.value,n=t.valueSpec,i=[];return Array.isArray(n.values)?-1===n.values.indexOf(Lt(r))&amp;&amp;i.push(new St(e,r,&quot;expected one of [&quot;+n.values.join(&quot;, &quot;)+&quot;], &quot;+JSON.stringify(r)+&quot; found&quot;)):-1===Object.keys(n.values).indexOf(Lt(r))&amp;&amp;i.push(new St(e,r,&quot;expected one of [&quot;+Object.keys(n.values).join(&quot;, &quot;)+&quot;], &quot;+JSON.stringify(r)+&quot; found&quot;)),i}function tn(t){if(!0===t||!1===t)return!0;if(!Array.isArray(t)||0===t.length)return!1;switch(t[0]){case&quot;has&quot;:return t.length&gt;=2&amp;&amp;&quot;$id&quot;!==t[1]&amp;&amp;&quot;$type&quot;!==t[1];case&quot;in&quot;:return t.length&gt;=3&amp;&amp;(&quot;string&quot;!=typeof t[1]||Array.isArray(t[2]));case&quot;!in&quot;:case&quot;!has&quot;:case&quot;none&quot;:return!1;case&quot;==&quot;:case&quot;!=&quot;:case&quot;&gt;&quot;:case&quot;&gt;=&quot;:case&quot;&lt;&quot;:case&quot;&lt;=&quot;:return 3!==t.length||Array.isArray(t[1])||Array.isArray(t[2]);case&quot;any&quot;:case&quot;all&quot;:for(var e=0,r=t.slice(1);e&lt;r.length;e+=1){var n=r[e];if(!tn(n)&amp;&amp;&quot;boolean&quot;!=typeof n)return!1}return!0;default:return!0}}Wr.deserialize=function(t){return new Wr(t._parameters,t._specification)},Wr.serialize=function(t){return{_parameters:t._parameters,_specification:t._specification}};var en={type:&quot;boolean&quot;,default:!1,transition:!1,&quot;property-type&quot;:&quot;data-driven&quot;,expression:{interpolated:!1,parameters:[&quot;zoom&quot;,&quot;feature&quot;]}};function rn(t){if(null==t)return{filter:function(){return!0},needGeometry:!1};tn(t)||(t=an(t));var e=qr(t,en);if(&quot;error&quot;===e.result)throw new Error(e.value.map((function(t){return t.key+&quot;: &quot;+t.message})).join(&quot;, &quot;));return{filter:function(t,r,n){return e.value.evaluate(t,r,{},n)},needGeometry:function t(e){if(!Array.isArray(e))return!1;if(&quot;within&quot;===e[0])return!0;for(var r=1;r&lt;e.length;r++)if(t(e[r]))return!0;return!1}(t)}}function nn(t,e){return t&lt;e?-1:t&gt;e?1:0}function an(t){if(!t)return!0;var e,r=t[0];return t.length&lt;=1?&quot;any&quot;!==r:&quot;==&quot;===r?on(t[1],t[2],&quot;==&quot;):&quot;!=&quot;===r?cn(on(t[1],t[2],&quot;==&quot;)):&quot;&lt;&quot;===r||&quot;&gt;&quot;===r||&quot;&lt;=&quot;===r||&quot;&gt;=&quot;===r?on(t[1],t[2],r):&quot;any&quot;===r?(e=t.slice(1),[&quot;any&quot;].concat(e.map(an))):&quot;all&quot;===r?[&quot;all&quot;].concat(t.slice(1).map(an)):&quot;none&quot;===r?[&quot;all&quot;].concat(t.slice(1).map(an).map(cn)):&quot;in&quot;===r?sn(t[1],t.slice(2)):&quot;!in&quot;===r?cn(sn(t[1],t.slice(2))):&quot;has&quot;===r?ln(t[1]):&quot;!has&quot;===r?cn(ln(t[1])):&quot;within&quot;!==r||t}function on(t,e,r){switch(t){case&quot;$type&quot;:return[&quot;filter-type-&quot;+r,e];case&quot;$id&quot;:return[&quot;filter-id-&quot;+r,e];default:return[&quot;filter-&quot;+r,t,e]}}function sn(t,e){if(0===e.length)return!1;switch(t){case&quot;$type&quot;:return[&quot;filter-type-in&quot;,[&quot;literal&quot;,e]];case&quot;$id&quot;:return[&quot;filter-id-in&quot;,[&quot;literal&quot;,e]];default:return e.length&gt;200&amp;&amp;!e.some((function(t){return typeof t!=typeof e[0]}))?[&quot;filter-in-large&quot;,t,[&quot;literal&quot;,e.sort(nn)]]:[&quot;filter-in-small&quot;,t,[&quot;literal&quot;,e]]}}function ln(t){switch(t){case&quot;$type&quot;:return!0;case&quot;$id&quot;:return[&quot;filter-has-id&quot;];default:return[&quot;filter-has&quot;,t]}}function cn(t){return[&quot;!&quot;,t]}function un(t){return tn(It(t.value))?Qr(Ct({},t,{expressionContext:&quot;filter&quot;,valueSpec:{value:&quot;boolean&quot;}})):function t(e){var r=e.value,n=e.key;if(&quot;array&quot;!==zr(r))return[new St(n,r,&quot;array expected, &quot;+zr(r)+&quot; found&quot;)];var i,a=e.styleSpec,o=[];if(r.length&lt;1)return[new St(n,r,&quot;filter array must have at least 1 element&quot;)];switch(o=o.concat($r({key:n+&quot;[0]&quot;,value:r[0],valueSpec:a.filter_operator,style:e.style,styleSpec:e.styleSpec})),Lt(r[0])){case&quot;&lt;&quot;:case&quot;&lt;=&quot;:case&quot;&gt;&quot;:case&quot;&gt;=&quot;:r.length&gt;=2&amp;&amp;&quot;$type&quot;===Lt(r[1])&amp;&amp;o.push(new St(n,r,'&quot;$type&quot; cannot be use with operator &quot;'+r[0]+'&quot;'));case&quot;==&quot;:case&quot;!=&quot;:3!==r.length&amp;&amp;o.push(new St(n,r,'filter array for operator &quot;'+r[0]+'&quot; must have 3 elements'));case&quot;in&quot;:case&quot;!in&quot;:r.length&gt;=2&amp;&amp;&quot;string&quot;!==(i=zr(r[1]))&amp;&amp;o.push(new St(n+&quot;[1]&quot;,r[1],&quot;string expected, &quot;+i+&quot; found&quot;));for(var s=2;s&lt;r.length;s++)i=zr(r[s]),&quot;$type&quot;===Lt(r[1])?o=o.concat($r({key:n+&quot;[&quot;+s+&quot;]&quot;,value:r[s],valueSpec:a.geometry_type,style:e.style,styleSpec:e.styleSpec})):&quot;string&quot;!==i&amp;&amp;&quot;number&quot;!==i&amp;&amp;&quot;boolean&quot;!==i&amp;&amp;o.push(new St(n+&quot;[&quot;+s+&quot;]&quot;,r[s],&quot;string, number, or boolean expected, &quot;+i+&quot; found&quot;));break;case&quot;any&quot;:case&quot;all&quot;:case&quot;none&quot;:for(var l=1;l&lt;r.length;l++)o=o.concat(t({key:n+&quot;[&quot;+l+&quot;]&quot;,value:r[l],style:e.style,styleSpec:e.styleSpec}));break;case&quot;has&quot;:case&quot;!has&quot;:i=zr(r[1]),2!==r.length?o.push(new St(n,r,'filter array for &quot;'+r[0]+'&quot; operator must have 2 elements')):&quot;string&quot;!==i&amp;&amp;o.push(new St(n+&quot;[1]&quot;,r[1],&quot;string expected, &quot;+i+&quot; found&quot;));break;case&quot;within&quot;:i=zr(r[1]),2!==r.length?o.push(new St(n,r,'filter array for &quot;'+r[0]+'&quot; operator must have 2 elements')):&quot;object&quot;!==i&amp;&amp;o.push(new St(n+&quot;[1]&quot;,r[1],&quot;object expected, &quot;+i+&quot; found&quot;))}return o}(t)}function fn(t,e){var r=t.key,n=t.style,i=t.styleSpec,a=t.value,o=t.objectKey,s=i[e+&quot;_&quot;+t.layerType];if(!s)return[];var l=o.match(/^(.*)-transition$/);if(&quot;paint&quot;===e&amp;&amp;l&amp;&amp;s[l[1]]&amp;&amp;s[l[1]].transition)return bn({key:r,value:a,valueSpec:i.transition,style:n,styleSpec:i});var c,u=t.valueSpec||s[o];if(!u)return[new St(r,a,'unknown property &quot;'+o+'&quot;')];if(&quot;string&quot;===zr(a)&amp;&amp;Lr(u)&amp;&amp;!u.tokens&amp;&amp;(c=/^{([^}]+)}$/.exec(a)))return[new St(r,a,'&quot;'+o+'&quot; does not support interpolation syntax\nUse an identity property function instead: `{ &quot;type&quot;: &quot;identity&quot;, &quot;property&quot;: '+JSON.stringify(c[1])+&quot; }`.&quot;)];var f=[];return&quot;symbol&quot;===t.layerType&amp;&amp;(&quot;text-field&quot;===o&amp;&amp;n&amp;&amp;!n.glyphs&amp;&amp;f.push(new St(r,a,'use of &quot;text-field&quot; requires a style &quot;glyphs&quot; property')),&quot;text-font&quot;===o&amp;&amp;Or(It(a))&amp;&amp;&quot;identity&quot;===Lt(a.type)&amp;&amp;f.push(new St(r,a,'&quot;text-font&quot; does not support identity functions'))),f.concat(bn({key:t.key,value:a,valueSpec:u,style:n,styleSpec:i,expressionContext:&quot;property&quot;,propertyType:e,propertyKey:o}))}function hn(t){return fn(t,&quot;paint&quot;)}function pn(t){return fn(t,&quot;layout&quot;)}function dn(t){var e=[],r=t.value,n=t.key,i=t.style,a=t.styleSpec;r.type||r.ref||e.push(new St(n,r,'either &quot;type&quot; or &quot;ref&quot; is required'));var o,s=Lt(r.type),l=Lt(r.ref);if(r.id)for(var c=Lt(r.id),u=0;u&lt;t.arrayIndex;u++){var f=i.layers[u];Lt(f.id)===c&amp;&amp;e.push(new St(n,r.id,'duplicate layer id &quot;'+r.id+'&quot;, previously used at line '+f.id.__line__))}if(&quot;ref&quot;in r)[&quot;type&quot;,&quot;source&quot;,&quot;source-layer&quot;,&quot;filter&quot;,&quot;layout&quot;].forEach((function(t){t in r&amp;&amp;e.push(new St(n,r[t],'&quot;'+t+'&quot; is prohibited for ref layers'))})),i.layers.forEach((function(t){Lt(t.id)===l&amp;&amp;(o=t)})),o?o.ref?e.push(new St(n,r.ref,&quot;ref cannot reference another ref layer&quot;)):s=Lt(o.type):e.push(new St(n,r.ref,'ref layer &quot;'+l+'&quot; not found'));else if(&quot;background&quot;!==s)if(r.source){var h=i.sources&amp;&amp;i.sources[r.source],p=h&amp;&amp;Lt(h.type);h?&quot;vector&quot;===p&amp;&amp;&quot;raster&quot;===s?e.push(new St(n,r.source,'layer &quot;'+r.id+'&quot; requires a raster source')):&quot;raster&quot;===p&amp;&amp;&quot;raster&quot;!==s?e.push(new St(n,r.source,'layer &quot;'+r.id+'&quot; requires a vector source')):&quot;vector&quot;!==p||r[&quot;source-layer&quot;]?&quot;raster-dem&quot;===p&amp;&amp;&quot;hillshade&quot;!==s?e.push(new St(n,r.source,&quot;raster-dem source can only be used with layer type 'hillshade'.&quot;)):&quot;line&quot;!==s||!r.paint||!r.paint[&quot;line-gradient&quot;]||&quot;geojson&quot;===p&amp;&amp;h.lineMetrics||e.push(new St(n,r,'layer &quot;'+r.id+'&quot; specifies a line-gradient, which requires a GeoJSON source with `lineMetrics` enabled.')):e.push(new St(n,r,'layer &quot;'+r.id+'&quot; must specify a &quot;source-layer&quot;')):e.push(new St(n,r.source,'source &quot;'+r.source+'&quot; not found'))}else e.push(new St(n,r,'missing required property &quot;source&quot;'));return e=e.concat(Xr({key:n,value:r,valueSpec:a.layer,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(){return[]},type:function(){return bn({key:n+&quot;.type&quot;,value:r.type,valueSpec:a.layer.type,style:t.style,styleSpec:t.styleSpec,object:r,objectKey:&quot;type&quot;})},filter:un,layout:function(t){return Xr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(t){return pn(Ct({layerType:s},t))}}})},paint:function(t){return Xr({layer:r,key:t.key,value:t.value,style:t.style,styleSpec:t.styleSpec,objectElementValidators:{&quot;*&quot;:function(t){return hn(Ct({layerType:s},t))}}})}}}))}function gn(t){var e=t.value,r=t.key,n=zr(e);return&quot;string&quot;!==n?[new St(r,e,&quot;string expected, &quot;+n+&quot; found&quot;)]:[]}var mn={promoteId:function(t){var e=t.key,r=t.value;if(&quot;string&quot;===zr(r))return gn({key:e,value:r});var n=[];for(var i in r)n.push.apply(n,gn({key:e+&quot;.&quot;+i,value:r[i]}));return n}};function vn(t){var e=t.value,r=t.key,n=t.styleSpec,i=t.style;if(!e.type)return[new St(r,e,'&quot;type&quot; is required')];var a,o=Lt(e.type);switch(o){case&quot;vector&quot;:case&quot;raster&quot;:case&quot;raster-dem&quot;:return Xr({key:r,value:e,valueSpec:n[&quot;source_&quot;+o.replace(&quot;-&quot;,&quot;_&quot;)],style:t.style,styleSpec:n,objectElementValidators:mn});case&quot;geojson&quot;:if(a=Xr({key:r,value:e,valueSpec:n.source_geojson,style:i,styleSpec:n,objectElementValidators:mn}),e.cluster)for(var s in e.clusterProperties){var l=e.clusterProperties[s],c=l[0],u=&quot;string&quot;==typeof c?[c,[&quot;accumulated&quot;],[&quot;get&quot;,s]]:c;a.push.apply(a,Qr({key:r+&quot;.&quot;+s+&quot;.map&quot;,value:l[1],expressionContext:&quot;cluster-map&quot;})),a.push.apply(a,Qr({key:r+&quot;.&quot;+s+&quot;.reduce&quot;,value:u,expressionContext:&quot;cluster-reduce&quot;}))}return a;case&quot;video&quot;:return Xr({key:r,value:e,valueSpec:n.source_video,style:i,styleSpec:n});case&quot;image&quot;:return Xr({key:r,value:e,valueSpec:n.source_image,style:i,styleSpec:n});case&quot;canvas&quot;:return[new St(r,null,&quot;Please use runtime APIs to add canvas sources, rather than including them in stylesheets.&quot;,&quot;source.canvas&quot;)];default:return $r({key:r+&quot;.type&quot;,value:e.type,valueSpec:{values:[&quot;vector&quot;,&quot;raster&quot;,&quot;raster-dem&quot;,&quot;geojson&quot;,&quot;video&quot;,&quot;image&quot;]},style:i,styleSpec:n})}}function yn(t){var e=t.value,r=t.styleSpec,n=r.light,i=t.style,a=[],o=zr(e);if(void 0===e)return a;if(&quot;object&quot;!==o)return a.concat([new St(&quot;light&quot;,e,&quot;object expected, &quot;+o+&quot; found&quot;)]);for(var s in e){var l=s.match(/^(.*)-transition$/);a=a.concat(l&amp;&amp;n[l[1]]&amp;&amp;n[l[1]].transition?bn({key:s,value:e[s],valueSpec:r.transition,style:i,styleSpec:r}):n[s]?bn({key:s,value:e[s],valueSpec:n[s],style:i,styleSpec:r}):[new St(s,e[s],'unknown property &quot;'+s+'&quot;')])}return a}var xn={&quot;*&quot;:function(){return[]},array:Zr,boolean:function(t){var e=t.value,r=t.key,n=zr(e);return&quot;boolean&quot;!==n?[new St(r,e,&quot;boolean expected, &quot;+n+&quot; found&quot;)]:[]},number:Jr,color:function(t){var e=t.key,r=t.value,n=zr(r);return&quot;string&quot;!==n?[new St(e,r,&quot;color expected, &quot;+n+&quot; found&quot;)]:null===Jt(r)?[new St(e,r,'color expected, &quot;'+r+'&quot; found')]:[]},constants:Et,enum:$r,filter:un,function:Kr,layer:dn,object:Xr,source:vn,light:yn,string:gn,formatted:function(t){return 0===gn(t).length?[]:Qr(t)},resolvedImage:function(t){return 0===gn(t).length?[]:Qr(t)}};function bn(t){var e=t.value,r=t.valueSpec,n=t.styleSpec;return r.expression&amp;&amp;Or(Lt(e))?Kr(t):r.expression&amp;&amp;Vr(It(e))?Qr(t):r.type&amp;&amp;xn[r.type]?xn[r.type](t):Xr(Ct({},t,{valueSpec:r.type?n[r.type]:r}))}function _n(t){var e=t.value,r=t.key,n=gn(t);return n.length||(-1===e.indexOf(&quot;{fontstack}&quot;)&amp;&amp;n.push(new St(r,e,'&quot;glyphs&quot; url must include a &quot;{fontstack}&quot; token')),-1===e.indexOf(&quot;{range}&quot;)&amp;&amp;n.push(new St(r,e,'&quot;glyphs&quot; url must include a &quot;{range}&quot; token'))),n}function wn(t,e){void 0===e&amp;&amp;(e=At);var r=[];return r=r.concat(bn({key:&quot;&quot;,value:t,valueSpec:e.$root,styleSpec:e,style:t,objectElementValidators:{glyphs:_n,&quot;*&quot;:function(){return[]}}})),t.constants&amp;&amp;(r=r.concat(Et({key:&quot;constants&quot;,value:t.constants,style:t,styleSpec:e}))),Tn(r)}function Tn(t){return[].concat(t).sort((function(t,e){return t.line-e.line}))}function kn(t){return function(){for(var e=[],r=arguments.length;r--;)e[r]=arguments[r];return Tn(t.apply(this,e))}}wn.source=kn(vn),wn.light=kn(yn),wn.layer=kn(dn),wn.filter=kn(un),wn.paintProperty=kn(hn),wn.layoutProperty=kn(pn);var Mn=wn,An=Mn.light,Sn=Mn.paintProperty,En=Mn.layoutProperty;function Cn(t,e){var r=!1;if(e&amp;&amp;e.length)for(var n=0,i=e;n&lt;i.length;n+=1)t.fire(new kt(new Error(i[n].message))),r=!0;return r}var Ln=In;function In(t,e,r){var n=this.cells=[];if(t instanceof ArrayBuffer){this.arrayBuffer=t;var i=new Int32Array(this.arrayBuffer);t=i[0],this.d=(e=i[1])+2*(r=i[2]);for(var a=0;a&lt;this.d*this.d;a++){var o=i[3+a],s=i[3+a+1];n.push(o===s?null:i.subarray(o,s))}var l=i[3+n.length+1];this.keys=i.subarray(i[3+n.length],l),this.bboxes=i.subarray(l),this.insert=this._insertReadonly}else{this.d=e+2*r;for(var c=0;c&lt;this.d*this.d;c++)n.push([]);this.keys=[],this.bboxes=[]}this.n=e,this.extent=t,this.padding=r,this.scale=e/t,this.uid=0;var u=r/e*t;this.min=-u,this.max=t+u}In.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertCell,this.uid++),this.keys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},In.prototype._insertReadonly=function(){throw&quot;Cannot insert into a GridIndex created from an ArrayBuffer.&quot;},In.prototype._insertCell=function(t,e,r,n,i,a){this.cells[i].push(a)},In.prototype.query=function(t,e,r,n,i){var a=this.min,o=this.max;if(t&lt;=a&amp;&amp;e&lt;=a&amp;&amp;o&lt;=r&amp;&amp;o&lt;=n&amp;&amp;!i)return Array.prototype.slice.call(this.keys);var s=[];return this._forEachCell(t,e,r,n,this._queryCell,s,{},i),s},In.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=this.cells[i];if(null!==l)for(var c=this.keys,u=this.bboxes,f=0;f&lt;l.length;f++){var h=l[f];if(void 0===o[h]){var p=4*h;(s?s(u[p+0],u[p+1],u[p+2],u[p+3]):t&lt;=u[p+2]&amp;&amp;e&lt;=u[p+3]&amp;&amp;r&gt;=u[p+0]&amp;&amp;n&gt;=u[p+1])?(o[h]=!0,a.push(c[h])):o[h]=!1}}},In.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToCellCoord(t),c=this._convertToCellCoord(e),u=this._convertToCellCoord(r),f=this._convertToCellCoord(n),h=l;h&lt;=u;h++)for(var p=c;p&lt;=f;p++){var d=this.d*p+h;if((!s||s(this._convertFromCellCoord(h),this._convertFromCellCoord(p),this._convertFromCellCoord(h+1),this._convertFromCellCoord(p+1)))&amp;&amp;i.call(this,t,e,r,n,d,a,o,s))return}},In.prototype._convertFromCellCoord=function(t){return(t-this.padding)/this.scale},In.prototype._convertToCellCoord=function(t){return Math.max(0,Math.min(this.d-1,Math.floor(t*this.scale)+this.padding))},In.prototype.toArrayBuffer=function(){if(this.arrayBuffer)return this.arrayBuffer;for(var t=this.cells,e=3+this.cells.length+1+1,r=0,n=0;n&lt;this.cells.length;n++)r+=this.cells[n].length;var i=new Int32Array(e+r+this.keys.length+this.bboxes.length);i[0]=this.extent,i[1]=this.n,i[2]=this.padding;for(var a=e,o=0;o&lt;t.length;o++){var s=t[o];i[3+o]=a,i.set(s,a),a+=s.length}return i[3+t.length]=a,i.set(this.keys,a),i[3+t.length+1]=a+=this.keys.length,i.set(this.bboxes,a),a+=this.bboxes.length,i.buffer};var Pn=self.ImageData,zn=self.ImageBitmap,On={};function Dn(t,e,r){void 0===r&amp;&amp;(r={}),Object.defineProperty(e,&quot;_classRegistryKey&quot;,{value:t,writeable:!1}),On[t]={klass:e,omit:r.omit||[],shallow:r.shallow||[]}}for(var Rn in Dn(&quot;Object&quot;,Object),Ln.serialize=function(t,e){var r=t.toArrayBuffer();return e&amp;&amp;e.push(r),{buffer:r}},Ln.deserialize=function(t){return new Ln(t.buffer)},Dn(&quot;Grid&quot;,Ln),Dn(&quot;Color&quot;,Kt),Dn(&quot;Error&quot;,Error),Dn(&quot;ResolvedImage&quot;,ee),Dn(&quot;StylePropertyFunction&quot;,Wr),Dn(&quot;StyleExpression&quot;,Ur,{omit:[&quot;_evaluator&quot;]}),Dn(&quot;ZoomDependentExpression&quot;,Gr),Dn(&quot;ZoomConstantExpression&quot;,Hr),Dn(&quot;CompoundExpression&quot;,me,{omit:[&quot;_evaluate&quot;]}),Tr)Tr[Rn]._classRegistryKey||Dn(&quot;Expression_&quot;+Rn,Tr[Rn]);function Fn(t){return t&amp;&amp;&quot;undefined&quot;!=typeof ArrayBuffer&amp;&amp;(t instanceof ArrayBuffer||t.constructor&amp;&amp;&quot;ArrayBuffer&quot;===t.constructor.name)}function Bn(t){return zn&amp;&amp;t instanceof zn}function Nn(t,e){if(null==t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp)return t;if(Fn(t)||Bn(t))return e&amp;&amp;e.push(t),t;if(ArrayBuffer.isView(t)){var r=t;return e&amp;&amp;e.push(r.buffer),r}if(t instanceof Pn)return e&amp;&amp;e.push(t.data.buffer),t;if(Array.isArray(t)){for(var n=[],i=0,a=t;i&lt;a.length;i+=1)n.push(Nn(a[i],e));return n}if(&quot;object&quot;==typeof t){var o=t.constructor,s=o._classRegistryKey;if(!s)throw new Error(&quot;can't serialize object of unregistered class&quot;);var l=o.serialize?o.serialize(t,e):{};if(!o.serialize){for(var c in t)if(t.hasOwnProperty(c)&amp;&amp;!(On[s].omit.indexOf(c)&gt;=0)){var u=t[c];l[c]=On[s].shallow.indexOf(c)&gt;=0?u:Nn(u,e)}t instanceof Error&amp;&amp;(l.message=t.message)}if(l.$name)throw new Error(&quot;$name property is reserved for worker serialization logic.&quot;);return&quot;Object&quot;!==s&amp;&amp;(l.$name=s),l}throw new Error(&quot;can't serialize object of type &quot;+typeof t)}function jn(t){if(null==t||&quot;boolean&quot;==typeof t||&quot;number&quot;==typeof t||&quot;string&quot;==typeof t||t instanceof Boolean||t instanceof Number||t instanceof String||t instanceof Date||t instanceof RegExp||Fn(t)||Bn(t)||ArrayBuffer.isView(t)||t instanceof Pn)return t;if(Array.isArray(t))return t.map(jn);if(&quot;object&quot;==typeof t){var e=t.$name||&quot;Object&quot;,r=On[e].klass;if(!r)throw new Error(&quot;can't deserialize unregistered class &quot;+e);if(r.deserialize)return r.deserialize(t);for(var n=Object.create(r.prototype),i=0,a=Object.keys(t);i&lt;a.length;i+=1){var o=a[i];if(&quot;$name&quot;!==o){var s=t[o];n[o]=On[e].shallow.indexOf(o)&gt;=0?s:jn(s)}}return n}throw new Error(&quot;can't deserialize object of type &quot;+typeof t)}var Un=function(){this.first=!0};Un.prototype.update=function(t,e){var r=Math.floor(t);return this.first?(this.first=!1,this.lastIntegerZoom=r,this.lastIntegerZoomTime=0,this.lastZoom=t,this.lastFloorZoom=r,!0):(this.lastFloorZoom&gt;r?(this.lastIntegerZoom=r+1,this.lastIntegerZoomTime=e):this.lastFloorZoom&lt;r&amp;&amp;(this.lastIntegerZoom=r,this.lastIntegerZoomTime=e),t!==this.lastZoom&amp;&amp;(this.lastZoom=t,this.lastFloorZoom=r,!0))};var Vn={&quot;Latin-1 Supplement&quot;:function(t){return t&gt;=128&amp;&amp;t&lt;=255},Arabic:function(t){return t&gt;=1536&amp;&amp;t&lt;=1791},&quot;Arabic Supplement&quot;:function(t){return t&gt;=1872&amp;&amp;t&lt;=1919},&quot;Arabic Extended-A&quot;:function(t){return t&gt;=2208&amp;&amp;t&lt;=2303},&quot;Hangul Jamo&quot;:function(t){return t&gt;=4352&amp;&amp;t&lt;=4607},&quot;Unified Canadian Aboriginal Syllabics&quot;:function(t){return t&gt;=5120&amp;&amp;t&lt;=5759},Khmer:function(t){return t&gt;=6016&amp;&amp;t&lt;=6143},&quot;Unified Canadian Aboriginal Syllabics Extended&quot;:function(t){return t&gt;=6320&amp;&amp;t&lt;=6399},&quot;General Punctuation&quot;:function(t){return t&gt;=8192&amp;&amp;t&lt;=8303},&quot;Letterlike Symbols&quot;:function(t){return t&gt;=8448&amp;&amp;t&lt;=8527},&quot;Number Forms&quot;:function(t){return t&gt;=8528&amp;&amp;t&lt;=8591},&quot;Miscellaneous Technical&quot;:function(t){return t&gt;=8960&amp;&amp;t&lt;=9215},&quot;Control Pictures&quot;:function(t){return t&gt;=9216&amp;&amp;t&lt;=9279},&quot;Optical Character Recognition&quot;:function(t){return t&gt;=9280&amp;&amp;t&lt;=9311},&quot;Enclosed Alphanumerics&quot;:function(t){return t&gt;=9312&amp;&amp;t&lt;=9471},&quot;Geometric Shapes&quot;:function(t){return t&gt;=9632&amp;&amp;t&lt;=9727},&quot;Miscellaneous Symbols&quot;:function(t){return t&gt;=9728&amp;&amp;t&lt;=9983},&quot;Miscellaneous Symbols and Arrows&quot;:function(t){return t&gt;=11008&amp;&amp;t&lt;=11263},&quot;CJK Radicals Supplement&quot;:function(t){return t&gt;=11904&amp;&amp;t&lt;=12031},&quot;Kangxi Radicals&quot;:function(t){return t&gt;=12032&amp;&amp;t&lt;=12255},&quot;Ideographic Description Characters&quot;:function(t){return t&gt;=12272&amp;&amp;t&lt;=12287},&quot;CJK Symbols and Punctuation&quot;:function(t){return t&gt;=12288&amp;&amp;t&lt;=12351},Hiragana:function(t){return t&gt;=12352&amp;&amp;t&lt;=12447},Katakana:function(t){return t&gt;=12448&amp;&amp;t&lt;=12543},Bopomofo:function(t){return t&gt;=12544&amp;&amp;t&lt;=12591},&quot;Hangul Compatibility Jamo&quot;:function(t){return t&gt;=12592&amp;&amp;t&lt;=12687},Kanbun:function(t){return t&gt;=12688&amp;&amp;t&lt;=12703},&quot;Bopomofo Extended&quot;:function(t){return t&gt;=12704&amp;&amp;t&lt;=12735},&quot;CJK Strokes&quot;:function(t){return t&gt;=12736&amp;&amp;t&lt;=12783},&quot;Katakana Phonetic Extensions&quot;:function(t){return t&gt;=12784&amp;&amp;t&lt;=12799},&quot;Enclosed CJK Letters and Months&quot;:function(t){return t&gt;=12800&amp;&amp;t&lt;=13055},&quot;CJK Compatibility&quot;:function(t){return t&gt;=13056&amp;&amp;t&lt;=13311},&quot;CJK Unified Ideographs Extension A&quot;:function(t){return t&gt;=13312&amp;&amp;t&lt;=19903},&quot;Yijing Hexagram Symbols&quot;:function(t){return t&gt;=19904&amp;&amp;t&lt;=19967},&quot;CJK Unified Ideographs&quot;:function(t){return t&gt;=19968&amp;&amp;t&lt;=40959},&quot;Yi Syllables&quot;:function(t){return t&gt;=40960&amp;&amp;t&lt;=42127},&quot;Yi Radicals&quot;:function(t){return t&gt;=42128&amp;&amp;t&lt;=42191},&quot;Hangul Jamo Extended-A&quot;:function(t){return t&gt;=43360&amp;&amp;t&lt;=43391},&quot;Hangul Syllables&quot;:function(t){return t&gt;=44032&amp;&amp;t&lt;=55215},&quot;Hangul Jamo Extended-B&quot;:function(t){return t&gt;=55216&amp;&amp;t&lt;=55295},&quot;Private Use Area&quot;:function(t){return t&gt;=57344&amp;&amp;t&lt;=63743},&quot;CJK Compatibility Ideographs&quot;:function(t){return t&gt;=63744&amp;&amp;t&lt;=64255},&quot;Arabic Presentation Forms-A&quot;:function(t){return t&gt;=64336&amp;&amp;t&lt;=65023},&quot;Vertical Forms&quot;:function(t){return t&gt;=65040&amp;&amp;t&lt;=65055},&quot;CJK Compatibility Forms&quot;:function(t){return t&gt;=65072&amp;&amp;t&lt;=65103},&quot;Small Form Variants&quot;:function(t){return t&gt;=65104&amp;&amp;t&lt;=65135},&quot;Arabic Presentation Forms-B&quot;:function(t){return t&gt;=65136&amp;&amp;t&lt;=65279},&quot;Halfwidth and Fullwidth Forms&quot;:function(t){return t&gt;=65280&amp;&amp;t&lt;=65519}};function qn(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(Hn(r[e].charCodeAt(0)))return!0;return!1}function Hn(t){return!(746!==t&amp;&amp;747!==t&amp;&amp;(t&lt;4352||!(Vn[&quot;Bopomofo Extended&quot;](t)||Vn.Bopomofo(t)||Vn[&quot;CJK Compatibility Forms&quot;](t)&amp;&amp;!(t&gt;=65097&amp;&amp;t&lt;=65103)||Vn[&quot;CJK Compatibility Ideographs&quot;](t)||Vn[&quot;CJK Compatibility&quot;](t)||Vn[&quot;CJK Radicals Supplement&quot;](t)||Vn[&quot;CJK Strokes&quot;](t)||!(!Vn[&quot;CJK Symbols and Punctuation&quot;](t)||t&gt;=12296&amp;&amp;t&lt;=12305||t&gt;=12308&amp;&amp;t&lt;=12319||12336===t)||Vn[&quot;CJK Unified Ideographs Extension A&quot;](t)||Vn[&quot;CJK Unified Ideographs&quot;](t)||Vn[&quot;Enclosed CJK Letters and Months&quot;](t)||Vn[&quot;Hangul Compatibility Jamo&quot;](t)||Vn[&quot;Hangul Jamo Extended-A&quot;](t)||Vn[&quot;Hangul Jamo Extended-B&quot;](t)||Vn[&quot;Hangul Jamo&quot;](t)||Vn[&quot;Hangul Syllables&quot;](t)||Vn.Hiragana(t)||Vn[&quot;Ideographic Description Characters&quot;](t)||Vn.Kanbun(t)||Vn[&quot;Kangxi Radicals&quot;](t)||Vn[&quot;Katakana Phonetic Extensions&quot;](t)||Vn.Katakana(t)&amp;&amp;12540!==t||!(!Vn[&quot;Halfwidth and Fullwidth Forms&quot;](t)||65288===t||65289===t||65293===t||t&gt;=65306&amp;&amp;t&lt;=65310||65339===t||65341===t||65343===t||t&gt;=65371&amp;&amp;t&lt;=65503||65507===t||t&gt;=65512&amp;&amp;t&lt;=65519)||!(!Vn[&quot;Small Form Variants&quot;](t)||t&gt;=65112&amp;&amp;t&lt;=65118||t&gt;=65123&amp;&amp;t&lt;=65126)||Vn[&quot;Unified Canadian Aboriginal Syllabics&quot;](t)||Vn[&quot;Unified Canadian Aboriginal Syllabics Extended&quot;](t)||Vn[&quot;Vertical Forms&quot;](t)||Vn[&quot;Yijing Hexagram Symbols&quot;](t)||Vn[&quot;Yi Syllables&quot;](t)||Vn[&quot;Yi Radicals&quot;](t))))}function Gn(t){return!(Hn(t)||function(t){return!!(Vn[&quot;Latin-1 Supplement&quot;](t)&amp;&amp;(167===t||169===t||174===t||177===t||188===t||189===t||190===t||215===t||247===t)||Vn[&quot;General Punctuation&quot;](t)&amp;&amp;(8214===t||8224===t||8225===t||8240===t||8241===t||8251===t||8252===t||8258===t||8263===t||8264===t||8265===t||8273===t)||Vn[&quot;Letterlike Symbols&quot;](t)||Vn[&quot;Number Forms&quot;](t)||Vn[&quot;Miscellaneous Technical&quot;](t)&amp;&amp;(t&gt;=8960&amp;&amp;t&lt;=8967||t&gt;=8972&amp;&amp;t&lt;=8991||t&gt;=8996&amp;&amp;t&lt;=9e3||9003===t||t&gt;=9085&amp;&amp;t&lt;=9114||t&gt;=9150&amp;&amp;t&lt;=9165||9167===t||t&gt;=9169&amp;&amp;t&lt;=9179||t&gt;=9186&amp;&amp;t&lt;=9215)||Vn[&quot;Control Pictures&quot;](t)&amp;&amp;9251!==t||Vn[&quot;Optical Character Recognition&quot;](t)||Vn[&quot;Enclosed Alphanumerics&quot;](t)||Vn[&quot;Geometric Shapes&quot;](t)||Vn[&quot;Miscellaneous Symbols&quot;](t)&amp;&amp;!(t&gt;=9754&amp;&amp;t&lt;=9759)||Vn[&quot;Miscellaneous Symbols and Arrows&quot;](t)&amp;&amp;(t&gt;=11026&amp;&amp;t&lt;=11055||t&gt;=11088&amp;&amp;t&lt;=11097||t&gt;=11192&amp;&amp;t&lt;=11243)||Vn[&quot;CJK Symbols and Punctuation&quot;](t)||Vn.Katakana(t)||Vn[&quot;Private Use Area&quot;](t)||Vn[&quot;CJK Compatibility Forms&quot;](t)||Vn[&quot;Small Form Variants&quot;](t)||Vn[&quot;Halfwidth and Fullwidth Forms&quot;](t)||8734===t||8756===t||8757===t||t&gt;=9984&amp;&amp;t&lt;=10087||t&gt;=10102&amp;&amp;t&lt;=10131||65532===t||65533===t)}(t))}function Yn(t){return t&gt;=1424&amp;&amp;t&lt;=2303||Vn[&quot;Arabic Presentation Forms-A&quot;](t)||Vn[&quot;Arabic Presentation Forms-B&quot;](t)}function Wn(t,e){return!(!e&amp;&amp;Yn(t)||t&gt;=2304&amp;&amp;t&lt;=3583||t&gt;=3840&amp;&amp;t&lt;=4255||Vn.Khmer(t))}function Xn(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(Yn(r[e].charCodeAt(0)))return!0;return!1}var Zn=null,Jn=&quot;unavailable&quot;,Kn=null,Qn=function(t){t&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;t.indexOf(&quot;NetworkError&quot;)&gt;-1&amp;&amp;(Jn=&quot;error&quot;),Zn&amp;&amp;Zn(t)};function $n(){ti.fire(new Tt(&quot;pluginStateChange&quot;,{pluginStatus:Jn,pluginURL:Kn}))}var ti=new Mt,ei=function(){return Jn},ri=function(){if(&quot;deferred&quot;!==Jn||!Kn)throw new Error(&quot;rtl-text-plugin cannot be downloaded unless a pluginURL is specified&quot;);Jn=&quot;loading&quot;,$n(),Kn&amp;&amp;yt({url:Kn},(function(t){t?Qn(t):(Jn=&quot;loaded&quot;,$n())}))},ni={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:function(){return&quot;loaded&quot;===Jn||null!=ni.applyArabicShaping},isLoading:function(){return&quot;loading&quot;===Jn},setState:function(t){Jn=t.pluginStatus,Kn=t.pluginURL},isParsed:function(){return null!=ni.applyArabicShaping&amp;&amp;null!=ni.processBidirectionalText&amp;&amp;null!=ni.processStyledBidirectionalText},getPluginURL:function(){return Kn}},ii=function(t,e){this.zoom=t,e?(this.now=e.now,this.fadeDuration=e.fadeDuration,this.zoomHistory=e.zoomHistory,this.transition=e.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new Un,this.transition={})};ii.prototype.isSupportedScript=function(t){return function(t,e){for(var r=0,n=t;r&lt;n.length;r+=1)if(!Wn(n[r].charCodeAt(0),e))return!1;return!0}(t,ni.isLoaded())},ii.prototype.crossFadingFactor=function(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)},ii.prototype.getCrossfadeParameters=function(){var t=this.zoom,e=t-Math.floor(t),r=this.crossFadingFactor();return t&gt;this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:e+(1-e)*r}:{fromScale:.5,toScale:1,t:1-(1-r)*e}};var ai=function(t,e){this.property=t,this.value=e,this.expression=function(t,e){if(Or(t))return new Wr(t,e);if(Vr(t)){var r=Yr(t,e);if(&quot;error&quot;===r.result)throw new Error(r.value.map((function(t){return t.key+&quot;: &quot;+t.message})).join(&quot;, &quot;));return r.value}var n=t;return&quot;string&quot;==typeof t&amp;&amp;&quot;color&quot;===e.type&amp;&amp;(n=Kt.parse(t)),{kind:&quot;constant&quot;,evaluate:function(){return n}}}(void 0===e?t.specification.default:e,t.specification)};ai.prototype.isDataDriven=function(){return&quot;source&quot;===this.expression.kind||&quot;composite&quot;===this.expression.kind},ai.prototype.possiblyEvaluate=function(t,e,r){return this.property.possiblyEvaluate(this,t,e,r)};var oi=function(t){this.property=t,this.value=new ai(t,void 0)};oi.prototype.transitioned=function(t,e){return new li(this.property,this.value,e,u({},t.transition,this.transition),t.now)},oi.prototype.untransitioned=function(){return new li(this.property,this.value,null,{},0)};var si=function(t){this._properties=t,this._values=Object.create(t.defaultTransitionablePropertyValues)};si.prototype.getValue=function(t){return x(this._values[t].value.value)},si.prototype.setValue=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new oi(this._values[t].property)),this._values[t].value=new ai(this._values[t].property,null===e?void 0:x(e))},si.prototype.getTransition=function(t){return x(this._values[t].transition)},si.prototype.setTransition=function(t,e){this._values.hasOwnProperty(t)||(this._values[t]=new oi(this._values[t].property)),this._values[t].transition=x(e)||void 0},si.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&amp;&amp;(t[n]=i);var a=this.getTransition(n);void 0!==a&amp;&amp;(t[n+&quot;-transition&quot;]=a)}return t},si.prototype.transitioned=function(t,e){for(var r=new ci(this._properties),n=0,i=Object.keys(this._values);n&lt;i.length;n+=1){var a=i[n];r._values[a]=this._values[a].transitioned(t,e._values[a])}return r},si.prototype.untransitioned=function(){for(var t=new ci(this._properties),e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e];t._values[n]=this._values[n].untransitioned()}return t};var li=function(t,e,r,n,i){this.property=t,this.value=e,this.begin=i+n.delay||0,this.end=this.begin+n.duration||0,t.specification.transition&amp;&amp;(n.delay||n.duration)&amp;&amp;(this.prior=r)};li.prototype.possiblyEvaluate=function(t,e,r){var n=t.now||0,i=this.value.possiblyEvaluate(t,e,r),a=this.prior;if(a){if(n&gt;this.end)return this.prior=null,i;if(this.value.isDataDriven())return this.prior=null,i;if(n&lt;this.begin)return a.possiblyEvaluate(t,e,r);var o=(n-this.begin)/(this.end-this.begin);return this.property.interpolate(a.possiblyEvaluate(t,e,r),i,function(t){if(t&lt;=0)return 0;if(t&gt;=1)return 1;var e=t*t,r=e*t;return 4*(t&lt;.5?r:3*(t-e)+r-.75)}(o))}return i};var ci=function(t){this._properties=t,this._values=Object.create(t.defaultTransitioningPropertyValues)};ci.prototype.possiblyEvaluate=function(t,e,r){for(var n=new hi(this._properties),i=0,a=Object.keys(this._values);i&lt;a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n},ci.prototype.hasTransition=function(){for(var t=0,e=Object.keys(this._values);t&lt;e.length;t+=1)if(this._values[e[t]].prior)return!0;return!1};var ui=function(t){this._properties=t,this._values=Object.create(t.defaultPropertyValues)};ui.prototype.getValue=function(t){return x(this._values[t].value)},ui.prototype.setValue=function(t,e){this._values[t]=new ai(this._values[t].property,null===e?void 0:x(e))},ui.prototype.serialize=function(){for(var t={},e=0,r=Object.keys(this._values);e&lt;r.length;e+=1){var n=r[e],i=this.getValue(n);void 0!==i&amp;&amp;(t[n]=i)}return t},ui.prototype.possiblyEvaluate=function(t,e,r){for(var n=new hi(this._properties),i=0,a=Object.keys(this._values);i&lt;a.length;i+=1){var o=a[i];n._values[o]=this._values[o].possiblyEvaluate(t,e,r)}return n};var fi=function(t,e,r){this.property=t,this.value=e,this.parameters=r};fi.prototype.isConstant=function(){return&quot;constant&quot;===this.value.kind},fi.prototype.constantOr=function(t){return&quot;constant&quot;===this.value.kind?this.value.value:t},fi.prototype.evaluate=function(t,e,r,n){return this.property.evaluate(this.value,this.parameters,t,e,r,n)};var hi=function(t){this._properties=t,this._values=Object.create(t.defaultPossiblyEvaluatedValues)};hi.prototype.get=function(t){return this._values[t]};var pi=function(t){this.specification=t};pi.prototype.possiblyEvaluate=function(t,e){return t.expression.evaluate(e)},pi.prototype.interpolate=function(t,e,r){var n=Ve[this.specification.type];return n?n(t,e,r):t};var di=function(t,e){this.specification=t,this.overrides=e};di.prototype.possiblyEvaluate=function(t,e,r,n){return new fi(this,&quot;constant&quot;===t.expression.kind||&quot;camera&quot;===t.expression.kind?{kind:&quot;constant&quot;,value:t.expression.evaluate(e,null,{},r,n)}:t.expression,e)},di.prototype.interpolate=function(t,e,r){if(&quot;constant&quot;!==t.value.kind||&quot;constant&quot;!==e.value.kind)return t;if(void 0===t.value.value||void 0===e.value.value)return new fi(this,{kind:&quot;constant&quot;,value:void 0},t.parameters);var n=Ve[this.specification.type];return n?new fi(this,{kind:&quot;constant&quot;,value:n(t.value.value,e.value.value,r)},t.parameters):t},di.prototype.evaluate=function(t,e,r,n,i,a){return&quot;constant&quot;===t.kind?t.value:t.evaluate(e,r,n,i,a)};var gi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0===t.value)return new fi(this,{kind:&quot;constant&quot;,value:void 0},e);if(&quot;constant&quot;===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n),a=&quot;resolvedImage&quot;===t.property.specification.type&amp;&amp;&quot;string&quot;!=typeof i?i.name:i,o=this._calculate(a,a,a,e);return new fi(this,{kind:&quot;constant&quot;,value:o},e)}if(&quot;camera&quot;===t.expression.kind){var s=this._calculate(t.expression.evaluate({zoom:e.zoom-1}),t.expression.evaluate({zoom:e.zoom}),t.expression.evaluate({zoom:e.zoom+1}),e);return new fi(this,{kind:&quot;constant&quot;,value:s},e)}return new fi(this,t.expression,e)},e.prototype.evaluate=function(t,e,r,n,i,a){if(&quot;source&quot;===t.kind){var o=t.evaluate(e,r,n,i,a);return this._calculate(o,o,o,e)}return&quot;composite&quot;===t.kind?this._calculate(t.evaluate({zoom:Math.floor(e.zoom)-1},r,n),t.evaluate({zoom:Math.floor(e.zoom)},r,n),t.evaluate({zoom:Math.floor(e.zoom)+1},r,n),e):t.value},e.prototype._calculate=function(t,e,r,n){return n.zoom&gt;n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},e.prototype.interpolate=function(t){return t},e}(di),mi=function(t){this.specification=t};mi.prototype.possiblyEvaluate=function(t,e,r,n){if(void 0!==t.value){if(&quot;constant&quot;===t.expression.kind){var i=t.expression.evaluate(e,null,{},r,n);return this._calculate(i,i,i,e)}return this._calculate(t.expression.evaluate(new ii(Math.floor(e.zoom-1),e)),t.expression.evaluate(new ii(Math.floor(e.zoom),e)),t.expression.evaluate(new ii(Math.floor(e.zoom+1),e)),e)}},mi.prototype._calculate=function(t,e,r,n){return n.zoom&gt;n.zoomHistory.lastIntegerZoom?{from:t,to:e}:{from:r,to:e}},mi.prototype.interpolate=function(t){return t};var vi=function(t){this.specification=t};vi.prototype.possiblyEvaluate=function(t,e,r,n){return!!t.expression.evaluate(e,null,{},r,n)},vi.prototype.interpolate=function(){return!1};var yi=function(t){for(var e in this.properties=t,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],t){var r=t[e];r.specification.overridable&amp;&amp;this.overridableProperties.push(e);var n=this.defaultPropertyValues[e]=new ai(r,void 0),i=this.defaultTransitionablePropertyValues[e]=new oi(r);this.defaultTransitioningPropertyValues[e]=i.untransitioned(),this.defaultPossiblyEvaluatedValues[e]=n.possiblyEvaluate({})}};Dn(&quot;DataDrivenProperty&quot;,di),Dn(&quot;DataConstantProperty&quot;,pi),Dn(&quot;CrossFadedDataDrivenProperty&quot;,gi),Dn(&quot;CrossFadedProperty&quot;,mi),Dn(&quot;ColorRampProperty&quot;,vi);var xi=function(t){function e(e,r){if(t.call(this),this.id=e.id,this.type=e.type,this._featureFilter={filter:function(){return!0},needGeometry:!1},&quot;custom&quot;!==e.type&amp;&amp;(this.metadata=(e=e).metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,&quot;background&quot;!==e.type&amp;&amp;(this.source=e.source,this.sourceLayer=e[&quot;source-layer&quot;],this.filter=e.filter),r.layout&amp;&amp;(this._unevaluatedLayout=new ui(r.layout)),r.paint)){for(var n in this._transitionablePaint=new si(r.paint),e.paint)this.setPaintProperty(n,e.paint[n],{validate:!1});for(var i in e.layout)this.setLayoutProperty(i,e.layout[i],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new hi(r.paint)}}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getCrossfadeParameters=function(){return this._crossfadeParameters},e.prototype.getLayoutProperty=function(t){return&quot;visibility&quot;===t?this.visibility:this._unevaluatedLayout.getValue(t)},e.prototype.setLayoutProperty=function(t,e,r){void 0===r&amp;&amp;(r={}),null!=e&amp;&amp;this._validate(En,&quot;layers.&quot;+this.id+&quot;.layout.&quot;+t,t,e,r)||(&quot;visibility&quot;!==t?this._unevaluatedLayout.setValue(t,e):this.visibility=e)},e.prototype.getPaintProperty=function(t){return m(t,&quot;-transition&quot;)?this._transitionablePaint.getTransition(t.slice(0,-&quot;-transition&quot;.length)):this._transitionablePaint.getValue(t)},e.prototype.setPaintProperty=function(t,e,r){if(void 0===r&amp;&amp;(r={}),null!=e&amp;&amp;this._validate(Sn,&quot;layers.&quot;+this.id+&quot;.paint.&quot;+t,t,e,r))return!1;if(m(t,&quot;-transition&quot;))return this._transitionablePaint.setTransition(t.slice(0,-&quot;-transition&quot;.length),e||void 0),!1;var n=this._transitionablePaint._values[t],i=&quot;cross-faded-data-driven&quot;===n.property.specification[&quot;property-type&quot;],a=n.value.isDataDriven(),o=n.value;this._transitionablePaint.setValue(t,e),this._handleSpecialPaintPropertyUpdate(t);var s=this._transitionablePaint._values[t].value;return s.isDataDriven()||a||i||this._handleOverridablePaintPropertyUpdate(t,o,s)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){},e.prototype._handleOverridablePaintPropertyUpdate=function(t,e,r){return!1},e.prototype.isHidden=function(t){return!!(this.minzoom&amp;&amp;t&lt;this.minzoom)||!!(this.maxzoom&amp;&amp;t&gt;=this.maxzoom)||&quot;none&quot;===this.visibility},e.prototype.updateTransitions=function(t){this._transitioningPaint=this._transitionablePaint.transitioned(t,this._transitioningPaint)},e.prototype.hasTransition=function(){return this._transitioningPaint.hasTransition()},e.prototype.recalculate=function(t,e){t.getCrossfadeParameters&amp;&amp;(this._crossfadeParameters=t.getCrossfadeParameters()),this._unevaluatedLayout&amp;&amp;(this.layout=this._unevaluatedLayout.possiblyEvaluate(t,void 0,e)),this.paint=this._transitioningPaint.possiblyEvaluate(t,void 0,e)},e.prototype.serialize=function(){var t={id:this.id,type:this.type,source:this.source,&quot;source-layer&quot;:this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&amp;&amp;this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&amp;&amp;this._transitionablePaint.serialize()};return this.visibility&amp;&amp;(t.layout=t.layout||{},t.layout.visibility=this.visibility),y(t,(function(t,e){return!(void 0===t||&quot;layout&quot;===e&amp;&amp;!Object.keys(t).length||&quot;paint&quot;===e&amp;&amp;!Object.keys(t).length)}))},e.prototype._validate=function(t,e,r,n,i){return void 0===i&amp;&amp;(i={}),(!i||!1!==i.validate)&amp;&amp;Cn(this,t.call(Mn,{key:e,layerType:this.type,objectKey:r,value:n,styleSpec:At,style:{glyphs:!0,sprite:!0}}))},e.prototype.is3D=function(){return!1},e.prototype.isTileClipped=function(){return!1},e.prototype.hasOffscreenPass=function(){return!1},e.prototype.resize=function(){},e.prototype.isStateDependent=function(){for(var t in this.paint._values){var e=this.paint.get(t);if(e instanceof fi&amp;&amp;Lr(e.property.specification)&amp;&amp;(&quot;source&quot;===e.value.kind||&quot;composite&quot;===e.value.kind)&amp;&amp;e.value.isStateDependent)return!0}return!1},e}(Mt),bi={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array},_i=function(t,e){this._structArray=t,this._pos1=e*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8},wi=function(){this.isTransferred=!1,this.capacity=-1,this.resize(0)};function Ti(t,e){void 0===e&amp;&amp;(e=1);var r=0,n=0;return{members:t.map((function(t){var i=bi[t.type].BYTES_PER_ELEMENT,a=r=ki(r,Math.max(e,i)),o=t.components||1;return n=Math.max(n,i),r+=i*o,{name:t.name,type:t.type,components:o,offset:a}})),size:ki(r,Math.max(n,e)),alignment:e}}function ki(t,e){return Math.ceil(t/e)*e}wi.serialize=function(t,e){return t._trim(),e&amp;&amp;(t.isTransferred=!0,e.push(t.arrayBuffer)),{length:t.length,arrayBuffer:t.arrayBuffer}},wi.deserialize=function(t){var e=Object.create(this.prototype);return e.arrayBuffer=t.arrayBuffer,e.length=t.length,e.capacity=t.arrayBuffer.byteLength/e.bytesPerElement,e._refreshViews(),e},wi.prototype._trim=function(){this.length!==this.capacity&amp;&amp;(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())},wi.prototype.clear=function(){this.length=0},wi.prototype.resize=function(t){this.reserve(t),this.length=t},wi.prototype.reserve=function(t){if(t&gt;this.capacity){this.capacity=Math.max(t,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);var e=this.uint8;this._refreshViews(),e&amp;&amp;this.uint8.set(e)}},wi.prototype._refreshViews=function(){throw new Error(&quot;_refreshViews() must be implemented by each concrete StructArray layout&quot;)};var Mi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.int16[n+0]=e,this.int16[n+1]=r,t},e}(wi);Mi.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout2i4&quot;,Mi);var Ai=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.int16[a+0]=e,this.int16[a+1]=r,this.int16[a+2]=n,this.int16[a+3]=i,t},e}(wi);Ai.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout4i8&quot;,Ai);var Si=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(wi);Si.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout2i4i12&quot;,Si);var Ei=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=4*t,l=8*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.uint8[l+4]=n,this.uint8[l+5]=i,this.uint8[l+6]=a,this.uint8[l+7]=o,t},e}(wi);Ei.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout2i4ub8&quot;,Ei);var Ci=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c){var u=this.length;return this.resize(u+1),this.emplace(u,t,e,r,n,i,a,o,s,l,c)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u){var f=9*t,h=18*t;return this.uint16[f+0]=e,this.uint16[f+1]=r,this.uint16[f+2]=n,this.uint16[f+3]=i,this.uint16[f+4]=a,this.uint16[f+5]=o,this.uint16[f+6]=s,this.uint16[f+7]=l,this.uint8[h+16]=c,this.uint8[h+17]=u,t},e}(wi);Ci.prototype.bytesPerElement=18,Dn(&quot;StructArrayLayout8ui2ub18&quot;,Ci);var Li=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f){var h=this.length;return this.resize(h+1),this.emplace(h,t,e,r,n,i,a,o,s,l,c,u,f)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=12*t;return this.int16[p+0]=e,this.int16[p+1]=r,this.int16[p+2]=n,this.int16[p+3]=i,this.uint16[p+4]=a,this.uint16[p+5]=o,this.uint16[p+6]=s,this.uint16[p+7]=l,this.int16[p+8]=c,this.int16[p+9]=u,this.int16[p+10]=f,this.int16[p+11]=h,t},e}(wi);Li.prototype.bytesPerElement=24,Dn(&quot;StructArrayLayout4i4ui4i24&quot;,Li);var Ii=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.float32[i+0]=e,this.float32[i+1]=r,this.float32[i+2]=n,t},e}(wi);Ii.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout3f12&quot;,Ii);var Pi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint32[1*t+0]=e,t},e}(wi);Pi.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout1ul4&quot;,Pi);var zi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l){var c=this.length;return this.resize(c+1),this.emplace(c,t,e,r,n,i,a,o,s,l)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c){var u=10*t,f=5*t;return this.int16[u+0]=e,this.int16[u+1]=r,this.int16[u+2]=n,this.int16[u+3]=i,this.int16[u+4]=a,this.int16[u+5]=o,this.uint32[f+3]=s,this.uint16[u+8]=l,this.uint16[u+9]=c,t},e}(wi);zi.prototype.bytesPerElement=20,Dn(&quot;StructArrayLayout6i1ul2ui20&quot;,zi);var Oi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a){var o=this.length;return this.resize(o+1),this.emplace(o,t,e,r,n,i,a)},e.prototype.emplace=function(t,e,r,n,i,a,o){var s=6*t;return this.int16[s+0]=e,this.int16[s+1]=r,this.int16[s+2]=n,this.int16[s+3]=i,this.int16[s+4]=a,this.int16[s+5]=o,t},e}(wi);Oi.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout2i2i2i12&quot;,Oi);var Di=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i){var a=this.length;return this.resize(a+1),this.emplace(a,t,e,r,n,i)},e.prototype.emplace=function(t,e,r,n,i,a){var o=4*t,s=8*t;return this.float32[o+0]=e,this.float32[o+1]=r,this.float32[o+2]=n,this.int16[s+6]=i,this.int16[s+7]=a,t},e}(wi);Di.prototype.bytesPerElement=16,Dn(&quot;StructArrayLayout2f1f2i16&quot;,Di);var Ri=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=12*t,o=3*t;return this.uint8[a+0]=e,this.uint8[a+1]=r,this.float32[o+1]=n,this.float32[o+2]=i,t},e}(wi);Ri.prototype.bytesPerElement=12,Dn(&quot;StructArrayLayout2ub2f12&quot;,Ri);var Fi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.uint16[i+0]=e,this.uint16[i+1]=r,this.uint16[i+2]=n,t},e}(wi);Fi.prototype.bytesPerElement=6,Dn(&quot;StructArrayLayout3ui6&quot;,Fi);var Bi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m){var v=this.length;return this.resize(v+1),this.emplace(v,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v){var y=24*t,x=12*t,b=48*t;return this.int16[y+0]=e,this.int16[y+1]=r,this.uint16[y+2]=n,this.uint16[y+3]=i,this.uint32[x+2]=a,this.uint32[x+3]=o,this.uint32[x+4]=s,this.uint16[y+10]=l,this.uint16[y+11]=c,this.uint16[y+12]=u,this.float32[x+7]=f,this.float32[x+8]=h,this.uint8[b+36]=p,this.uint8[b+37]=d,this.uint8[b+38]=g,this.uint32[x+10]=m,this.int16[y+22]=v,t},e}(wi);Bi.prototype.bytesPerElement=48,Dn(&quot;StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48&quot;,Bi);var Ni=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S){var E=this.length;return this.resize(E+1),this.emplace(E,t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S)},e.prototype.emplace=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S,E){var C=34*t,L=17*t;return this.int16[C+0]=e,this.int16[C+1]=r,this.int16[C+2]=n,this.int16[C+3]=i,this.int16[C+4]=a,this.int16[C+5]=o,this.int16[C+6]=s,this.int16[C+7]=l,this.uint16[C+8]=c,this.uint16[C+9]=u,this.uint16[C+10]=f,this.uint16[C+11]=h,this.uint16[C+12]=p,this.uint16[C+13]=d,this.uint16[C+14]=g,this.uint16[C+15]=m,this.uint16[C+16]=v,this.uint16[C+17]=y,this.uint16[C+18]=x,this.uint16[C+19]=b,this.uint16[C+20]=_,this.uint16[C+21]=w,this.uint16[C+22]=T,this.uint32[L+12]=k,this.float32[L+13]=M,this.float32[L+14]=A,this.float32[L+15]=S,this.float32[L+16]=E,t},e}(wi);Ni.prototype.bytesPerElement=68,Dn(&quot;StructArrayLayout8i15ui1ul4f68&quot;,Ni);var ji=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.float32[1*t+0]=e,t},e}(wi);ji.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout1f4&quot;,ji);var Ui=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=3*t;return this.int16[i+0]=e,this.int16[i+1]=r,this.int16[i+2]=n,t},e}(wi);Ui.prototype.bytesPerElement=6,Dn(&quot;StructArrayLayout3i6&quot;,Ui);var Vi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r){var n=this.length;return this.resize(n+1),this.emplace(n,t,e,r)},e.prototype.emplace=function(t,e,r,n){var i=4*t;return this.uint32[2*t+0]=e,this.uint16[i+2]=r,this.uint16[i+3]=n,t},e}(wi);Vi.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout1ul2ui8&quot;,Vi);var qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.uint16[n+0]=e,this.uint16[n+1]=r,t},e}(wi);qi.prototype.bytesPerElement=4,Dn(&quot;StructArrayLayout2ui4&quot;,qi);var Hi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t){var e=this.length;return this.resize(e+1),this.emplace(e,t)},e.prototype.emplace=function(t,e){return this.uint16[1*t+0]=e,t},e}(wi);Hi.prototype.bytesPerElement=2,Dn(&quot;StructArrayLayout1ui2&quot;,Hi);var Gi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e){var r=this.length;return this.resize(r+1),this.emplace(r,t,e)},e.prototype.emplace=function(t,e,r){var n=2*t;return this.float32[n+0]=e,this.float32[n+1]=r,t},e}(wi);Gi.prototype.bytesPerElement=8,Dn(&quot;StructArrayLayout2f8&quot;,Gi);var Yi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._refreshViews=function(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)},e.prototype.emplaceBack=function(t,e,r,n){var i=this.length;return this.resize(i+1),this.emplace(i,t,e,r,n)},e.prototype.emplace=function(t,e,r,n,i){var a=4*t;return this.float32[a+0]=e,this.float32[a+1]=r,this.float32[a+2]=n,this.float32[a+3]=i,t},e}(wi);Yi.prototype.bytesPerElement=16,Dn(&quot;StructArrayLayout4f16&quot;,Yi);var Wi=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={anchorPointX:{configurable:!0},anchorPointY:{configurable:!0},x1:{configurable:!0},y1:{configurable:!0},x2:{configurable:!0},y2:{configurable:!0},featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0},anchorPoint:{configurable:!0}};return r.anchorPointX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorPointY.get=function(){return this._structArray.int16[this._pos2+1]},r.x1.get=function(){return this._structArray.int16[this._pos2+2]},r.y1.get=function(){return this._structArray.int16[this._pos2+3]},r.x2.get=function(){return this._structArray.int16[this._pos2+4]},r.y2.get=function(){return this._structArray.int16[this._pos2+5]},r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+8]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.anchorPoint.get=function(){return new i(this.anchorPointX,this.anchorPointY)},Object.defineProperties(e.prototype,r),e}(_i);Wi.prototype.size=20;var Xi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new Wi(this,t)},e}(zi);Dn(&quot;CollisionBoxArray&quot;,Xi);var Zi=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},glyphStartIndex:{configurable:!0},numGlyphs:{configurable:!0},vertexStartIndex:{configurable:!0},lineStartIndex:{configurable:!0},lineLength:{configurable:!0},segment:{configurable:!0},lowerSize:{configurable:!0},upperSize:{configurable:!0},lineOffsetX:{configurable:!0},lineOffsetY:{configurable:!0},writingMode:{configurable:!0},placedOrientation:{configurable:!0},hidden:{configurable:!0},crossTileID:{configurable:!0},associatedIconIndex:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.glyphStartIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.numGlyphs.get=function(){return this._structArray.uint16[this._pos2+3]},r.vertexStartIndex.get=function(){return this._structArray.uint32[this._pos4+2]},r.lineStartIndex.get=function(){return this._structArray.uint32[this._pos4+3]},r.lineLength.get=function(){return this._structArray.uint32[this._pos4+4]},r.segment.get=function(){return this._structArray.uint16[this._pos2+10]},r.lowerSize.get=function(){return this._structArray.uint16[this._pos2+11]},r.upperSize.get=function(){return this._structArray.uint16[this._pos2+12]},r.lineOffsetX.get=function(){return this._structArray.float32[this._pos4+7]},r.lineOffsetY.get=function(){return this._structArray.float32[this._pos4+8]},r.writingMode.get=function(){return this._structArray.uint8[this._pos1+36]},r.placedOrientation.get=function(){return this._structArray.uint8[this._pos1+37]},r.placedOrientation.set=function(t){this._structArray.uint8[this._pos1+37]=t},r.hidden.get=function(){return this._structArray.uint8[this._pos1+38]},r.hidden.set=function(t){this._structArray.uint8[this._pos1+38]=t},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+10]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+10]=t},r.associatedIconIndex.get=function(){return this._structArray.int16[this._pos2+22]},Object.defineProperties(e.prototype,r),e}(_i);Zi.prototype.size=48;var Ji=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new Zi(this,t)},e}(Bi);Dn(&quot;PlacedSymbolArray&quot;,Ji);var Ki=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={anchorX:{configurable:!0},anchorY:{configurable:!0},rightJustifiedTextSymbolIndex:{configurable:!0},centerJustifiedTextSymbolIndex:{configurable:!0},leftJustifiedTextSymbolIndex:{configurable:!0},verticalPlacedTextSymbolIndex:{configurable:!0},placedIconSymbolIndex:{configurable:!0},verticalPlacedIconSymbolIndex:{configurable:!0},key:{configurable:!0},textBoxStartIndex:{configurable:!0},textBoxEndIndex:{configurable:!0},verticalTextBoxStartIndex:{configurable:!0},verticalTextBoxEndIndex:{configurable:!0},iconBoxStartIndex:{configurable:!0},iconBoxEndIndex:{configurable:!0},verticalIconBoxStartIndex:{configurable:!0},verticalIconBoxEndIndex:{configurable:!0},featureIndex:{configurable:!0},numHorizontalGlyphVertices:{configurable:!0},numVerticalGlyphVertices:{configurable:!0},numIconVertices:{configurable:!0},numVerticalIconVertices:{configurable:!0},useRuntimeCollisionCircles:{configurable:!0},crossTileID:{configurable:!0},textBoxScale:{configurable:!0},textOffset0:{configurable:!0},textOffset1:{configurable:!0},collisionCircleDiameter:{configurable:!0}};return r.anchorX.get=function(){return this._structArray.int16[this._pos2+0]},r.anchorY.get=function(){return this._structArray.int16[this._pos2+1]},r.rightJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+2]},r.centerJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+3]},r.leftJustifiedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+4]},r.verticalPlacedTextSymbolIndex.get=function(){return this._structArray.int16[this._pos2+5]},r.placedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+6]},r.verticalPlacedIconSymbolIndex.get=function(){return this._structArray.int16[this._pos2+7]},r.key.get=function(){return this._structArray.uint16[this._pos2+8]},r.textBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+9]},r.textBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+10]},r.verticalTextBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+11]},r.verticalTextBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+12]},r.iconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+13]},r.iconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+14]},r.verticalIconBoxStartIndex.get=function(){return this._structArray.uint16[this._pos2+15]},r.verticalIconBoxEndIndex.get=function(){return this._structArray.uint16[this._pos2+16]},r.featureIndex.get=function(){return this._structArray.uint16[this._pos2+17]},r.numHorizontalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+18]},r.numVerticalGlyphVertices.get=function(){return this._structArray.uint16[this._pos2+19]},r.numIconVertices.get=function(){return this._structArray.uint16[this._pos2+20]},r.numVerticalIconVertices.get=function(){return this._structArray.uint16[this._pos2+21]},r.useRuntimeCollisionCircles.get=function(){return this._structArray.uint16[this._pos2+22]},r.crossTileID.get=function(){return this._structArray.uint32[this._pos4+12]},r.crossTileID.set=function(t){this._structArray.uint32[this._pos4+12]=t},r.textBoxScale.get=function(){return this._structArray.float32[this._pos4+13]},r.textOffset0.get=function(){return this._structArray.float32[this._pos4+14]},r.textOffset1.get=function(){return this._structArray.float32[this._pos4+15]},r.collisionCircleDiameter.get=function(){return this._structArray.float32[this._pos4+16]},Object.defineProperties(e.prototype,r),e}(_i);Ki.prototype.size=68;var Qi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new Ki(this,t)},e}(Ni);Dn(&quot;SymbolInstanceArray&quot;,Qi);var $i=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getoffsetX=function(t){return this.float32[1*t+0]},e}(ji);Dn(&quot;GlyphOffsetArray&quot;,$i);var ta=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getx=function(t){return this.int16[3*t+0]},e.prototype.gety=function(t){return this.int16[3*t+1]},e.prototype.gettileUnitDistanceFromAnchor=function(t){return this.int16[3*t+2]},e}(Ui);Dn(&quot;SymbolLineVertexArray&quot;,ta);var ea=function(t){function e(){t.apply(this,arguments)}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={featureIndex:{configurable:!0},sourceLayerIndex:{configurable:!0},bucketIndex:{configurable:!0}};return r.featureIndex.get=function(){return this._structArray.uint32[this._pos4+0]},r.sourceLayerIndex.get=function(){return this._structArray.uint16[this._pos2+2]},r.bucketIndex.get=function(){return this._structArray.uint16[this._pos2+3]},Object.defineProperties(e.prototype,r),e}(_i);ea.prototype.size=8;var ra=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.get=function(t){return new ea(this,t)},e}(Vi);Dn(&quot;FeatureIndexArray&quot;,ra);var na=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;}],4).members,ia=function(t){void 0===t&amp;&amp;(t=[]),this.segments=t};function aa(t,e){return 256*(t=l(Math.floor(t),0,255))+l(Math.floor(e),0,255)}ia.prototype.prepareSegment=function(t,e,r,n){var i=this.segments[this.segments.length-1];return t&gt;ia.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;_(&quot;Max vertices per segment is &quot;+ia.MAX_VERTEX_ARRAY_LENGTH+&quot;: bucket requested &quot;+t),(!i||i.vertexLength+t&gt;ia.MAX_VERTEX_ARRAY_LENGTH||i.sortKey!==n)&amp;&amp;(i={vertexOffset:e.length,primitiveOffset:r.length,vertexLength:0,primitiveLength:0},void 0!==n&amp;&amp;(i.sortKey=n),this.segments.push(i)),i},ia.prototype.get=function(){return this.segments},ia.prototype.destroy=function(){for(var t=0,e=this.segments;t&lt;e.length;t+=1){var r=e[t];for(var n in r.vaos)r.vaos[n].destroy()}},ia.simpleSegment=function(t,e,r,n){return new ia([{vertexOffset:t,primitiveOffset:e,vertexLength:r,primitiveLength:n,vaos:{},sortKey:0}])},ia.MAX_VERTEX_ARRAY_LENGTH=Math.pow(2,16)-1,Dn(&quot;SegmentVector&quot;,ia);var oa=Ti([{name:&quot;a_pattern_from&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pattern_to&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pixel_ratio_from&quot;,components:1,type:&quot;Uint8&quot;},{name:&quot;a_pixel_ratio_to&quot;,components:1,type:&quot;Uint8&quot;}]),sa=e((function(t){t.exports=function(t,e){var r,n,i,a,o,s,l,c;for(n=t.length-(r=3&amp;t.length),i=e,o=3432918353,s=461845907,c=0;c&lt;n;)l=255&amp;t.charCodeAt(c)|(255&amp;t.charCodeAt(++c))&lt;&lt;8|(255&amp;t.charCodeAt(++c))&lt;&lt;16|(255&amp;t.charCodeAt(++c))&lt;&lt;24,++c,i=27492+(65535&amp;(a=5*(65535&amp;(i=(i^=l=(65535&amp;(l=(l=(65535&amp;l)*o+(((l&gt;&gt;&gt;16)*o&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;13|i&gt;&gt;&gt;19))+((5*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295))+((58964+(a&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16);switch(l=0,r){case 3:l^=(255&amp;t.charCodeAt(c+2))&lt;&lt;16;case 2:l^=(255&amp;t.charCodeAt(c+1))&lt;&lt;8;case 1:i^=l=(65535&amp;(l=(l=(65535&amp;(l^=255&amp;t.charCodeAt(c)))*o+(((l&gt;&gt;&gt;16)*o&amp;65535)&lt;&lt;16)&amp;4294967295)&lt;&lt;15|l&gt;&gt;&gt;17))*s+(((l&gt;&gt;&gt;16)*s&amp;65535)&lt;&lt;16)&amp;4294967295}return i^=t.length,i=2246822507*(65535&amp;(i^=i&gt;&gt;&gt;16))+((2246822507*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,i=3266489909*(65535&amp;(i^=i&gt;&gt;&gt;13))+((3266489909*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)&amp;4294967295,(i^=i&gt;&gt;&gt;16)&gt;&gt;&gt;0}})),la=e((function(t){t.exports=function(t,e){for(var r,n=t.length,i=e^n,a=0;n&gt;=4;)r=1540483477*(65535&amp;(r=255&amp;t.charCodeAt(a)|(255&amp;t.charCodeAt(++a))&lt;&lt;8|(255&amp;t.charCodeAt(++a))&lt;&lt;16|(255&amp;t.charCodeAt(++a))&lt;&lt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),i=1540483477*(65535&amp;i)+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)^(r=1540483477*(65535&amp;(r^=r&gt;&gt;&gt;24))+((1540483477*(r&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)),n-=4,++a;switch(n){case 3:i^=(255&amp;t.charCodeAt(a+2))&lt;&lt;16;case 2:i^=(255&amp;t.charCodeAt(a+1))&lt;&lt;8;case 1:i=1540483477*(65535&amp;(i^=255&amp;t.charCodeAt(a)))+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16)}return i=1540483477*(65535&amp;(i^=i&gt;&gt;&gt;13))+((1540483477*(i&gt;&gt;&gt;16)&amp;65535)&lt;&lt;16),(i^=i&gt;&gt;&gt;15)&gt;&gt;&gt;0}})),ca=sa,ua=la;ca.murmur3=sa,ca.murmur2=ua;var fa=function(){this.ids=[],this.positions=[],this.indexed=!1};fa.prototype.add=function(t,e,r,n){this.ids.push(pa(t)),this.positions.push(e,r,n)},fa.prototype.getPositions=function(t){for(var e=pa(t),r=0,n=this.ids.length-1;r&lt;n;){var i=r+n&gt;&gt;1;this.ids[i]&gt;=e?n=i:r=i+1}for(var a=[];this.ids[r]===e;)a.push({index:this.positions[3*r],start:this.positions[3*r+1],end:this.positions[3*r+2]}),r++;return a},fa.serialize=function(t,e){var r=new Float64Array(t.ids),n=new Uint32Array(t.positions);return function t(e,r,n,i){for(;n&lt;i;){for(var a=e[n+i&gt;&gt;1],o=n-1,s=i+1;;){do{o++}while(e[o]&lt;a);do{s--}while(e[s]&gt;a);if(o&gt;=s)break;da(e,o,s),da(r,3*o,3*s),da(r,3*o+1,3*s+1),da(r,3*o+2,3*s+2)}s-n&lt;i-s?(t(e,r,n,s),n=s+1):(t(e,r,s+1,i),i=s)}}(r,n,0,r.length-1),e&amp;&amp;e.push(r.buffer,n.buffer),{ids:r,positions:n}},fa.deserialize=function(t){var e=new fa;return e.ids=t.ids,e.positions=t.positions,e.indexed=!0,e};var ha=Math.pow(2,53)-1;function pa(t){var e=+t;return!isNaN(e)&amp;&amp;e&lt;=ha?e:ca(String(t))}function da(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}Dn(&quot;FeaturePositionMap&quot;,fa);var ga=function(t,e){this.gl=t.gl,this.location=e},ma=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1i(this.location,t))},e}(ga),va=function(t){function e(e,r){t.call(this,e,r),this.current=0}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){this.current!==t&amp;&amp;(this.current=t,this.gl.uniform1f(this.location,t))},e}(ga),ya=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0]}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]||(this.current=t,this.gl.uniform2f(this.location,t[0],t[1]))},e}(ga),xa=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0]}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]||(this.current=t,this.gl.uniform3f(this.location,t[0],t[1],t[2]))},e}(ga),ba=function(t){function e(e,r){t.call(this,e,r),this.current=[0,0,0,0]}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t[0]===this.current[0]&amp;&amp;t[1]===this.current[1]&amp;&amp;t[2]===this.current[2]&amp;&amp;t[3]===this.current[3]||(this.current=t,this.gl.uniform4f(this.location,t[0],t[1],t[2],t[3]))},e}(ga),_a=function(t){function e(e,r){t.call(this,e,r),this.current=Kt.transparent}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){t.r===this.current.r&amp;&amp;t.g===this.current.g&amp;&amp;t.b===this.current.b&amp;&amp;t.a===this.current.a||(this.current=t,this.gl.uniform4f(this.location,t.r,t.g,t.b,t.a))},e}(ga),wa=new Float32Array(16),Ta=function(t){function e(e,r){t.call(this,e,r),this.current=wa}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){if(t[12]!==this.current[12]||t[0]!==this.current[0])return this.current=t,void this.gl.uniformMatrix4fv(this.location,!1,t);for(var e=1;e&lt;16;e++)if(t[e]!==this.current[e]){this.current=t,this.gl.uniformMatrix4fv(this.location,!1,t);break}},e}(ga);function ka(t){return[aa(255*t.r,255*t.g),aa(255*t.b,255*t.a)]}var Ma=function(t,e,r){this.value=t,this.uniformNames=e.map((function(t){return&quot;u_&quot;+t})),this.type=r};Ma.prototype.setUniform=function(t,e,r){t.set(r.constantOr(this.value))},Ma.prototype.getBinding=function(t,e,r){return&quot;color&quot;===this.type?new _a(t,e):new va(t,e)};var Aa=function(t,e){this.uniformNames=e.map((function(t){return&quot;u_&quot;+t})),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1};Aa.prototype.setConstantPatternPositions=function(t,e){this.pixelRatioFrom=e.pixelRatio,this.pixelRatioTo=t.pixelRatio,this.patternFrom=e.tlbr,this.patternTo=t.tlbr},Aa.prototype.setUniform=function(t,e,r,n){var i=&quot;u_pattern_to&quot;===n?this.patternTo:&quot;u_pattern_from&quot;===n?this.patternFrom:&quot;u_pixel_ratio_to&quot;===n?this.pixelRatioTo:&quot;u_pixel_ratio_from&quot;===n?this.pixelRatioFrom:null;i&amp;&amp;t.set(i)},Aa.prototype.getBinding=function(t,e,r){return&quot;u_pattern&quot;===r.substr(0,9)?new ba(t,e):new va(t,e)};var Sa=function(t,e,r,n){this.expression=t,this.type=r,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:&quot;a_&quot;+t,type:&quot;Float32&quot;,components:&quot;color&quot;===r?2:1,offset:0}})),this.paintVertexArray=new n};Sa.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.paintVertexArray.length,o=this.expression.evaluate(new ii(0),e,{},n,[],i);this.paintVertexArray.resize(t),this._setPaintValue(a,t,o)},Sa.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:0},r,n);this._setPaintValue(t,e,i)},Sa.prototype._setPaintValue=function(t,e,r){if(&quot;color&quot;===this.type)for(var n=ka(r),i=t;i&lt;e;i++)this.paintVertexArray.emplace(i,n[0],n[1]);else{for(var a=t;a&lt;e;a++)this.paintVertexArray.emplace(a,r);this.maxValue=Math.max(this.maxValue,Math.abs(r))}},Sa.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Sa.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()};var Ea=function(t,e,r,n,i,a){this.expression=t,this.uniformNames=e.map((function(t){return&quot;u_&quot;+t+&quot;_t&quot;})),this.type=r,this.useIntegerZoom=n,this.zoom=i,this.maxValue=0,this.paintVertexAttributes=e.map((function(t){return{name:&quot;a_&quot;+t,type:&quot;Float32&quot;,components:&quot;color&quot;===r?4:2,offset:0}})),this.paintVertexArray=new a};Ea.prototype.populatePaintArray=function(t,e,r,n,i){var a=this.expression.evaluate(new ii(this.zoom),e,{},n,[],i),o=this.expression.evaluate(new ii(this.zoom+1),e,{},n,[],i),s=this.paintVertexArray.length;this.paintVertexArray.resize(t),this._setPaintValue(s,t,a,o)},Ea.prototype.updatePaintArray=function(t,e,r,n){var i=this.expression.evaluate({zoom:this.zoom},r,n),a=this.expression.evaluate({zoom:this.zoom+1},r,n);this._setPaintValue(t,e,i,a)},Ea.prototype._setPaintValue=function(t,e,r,n){if(&quot;color&quot;===this.type)for(var i=ka(r),a=ka(n),o=t;o&lt;e;o++)this.paintVertexArray.emplace(o,i[0],i[1],a[0],a[1]);else{for(var s=t;s&lt;e;s++)this.paintVertexArray.emplace(s,r,n);this.maxValue=Math.max(this.maxValue,Math.abs(r),Math.abs(n))}},Ea.prototype.upload=function(t){this.paintVertexArray&amp;&amp;this.paintVertexArray.arrayBuffer&amp;&amp;(this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.buffer?this.paintVertexBuffer.updateData(this.paintVertexArray):this.paintVertexBuffer=t.createVertexBuffer(this.paintVertexArray,this.paintVertexAttributes,this.expression.isStateDependent))},Ea.prototype.destroy=function(){this.paintVertexBuffer&amp;&amp;this.paintVertexBuffer.destroy()},Ea.prototype.setUniform=function(t,e){var r=this.useIntegerZoom?Math.floor(e.zoom):e.zoom,n=l(this.expression.interpolationFactor(r,this.zoom,this.zoom+1),0,1);t.set(n)},Ea.prototype.getBinding=function(t,e,r){return new va(t,e)};var Ca=function(t,e,r,n,i,a){this.expression=t,this.type=e,this.useIntegerZoom=r,this.zoom=n,this.layerId=a,this.zoomInPaintVertexArray=new i,this.zoomOutPaintVertexArray=new i};Ca.prototype.populatePaintArray=function(t,e,r){var n=this.zoomInPaintVertexArray.length;this.zoomInPaintVertexArray.resize(t),this.zoomOutPaintVertexArray.resize(t),this._setPaintValues(n,t,e.patterns&amp;&amp;e.patterns[this.layerId],r)},Ca.prototype.updatePaintArray=function(t,e,r,n,i){this._setPaintValues(t,e,r.patterns&amp;&amp;r.patterns[this.layerId],i)},Ca.prototype._setPaintValues=function(t,e,r,n){if(n&amp;&amp;r){var i=n[r.min],a=n[r.mid],o=n[r.max];if(i&amp;&amp;a&amp;&amp;o)for(var s=t;s&lt;e;s++)this.zoomInPaintVertexArray.emplace(s,a.tl[0],a.tl[1],a.br[0],a.br[1],i.tl[0],i.tl[1],i.br[0],i.br[1],a.pixelRatio,i.pixelRatio),this.zoomOutPaintVertexArray.emplace(s,a.tl[0],a.tl[1],a.br[0],a.br[1],o.tl[0],o.tl[1],o.br[0],o.br[1],a.pixelRatio,o.pixelRatio)}},Ca.prototype.upload=function(t){this.zoomInPaintVertexArray&amp;&amp;this.zoomInPaintVertexArray.arrayBuffer&amp;&amp;this.zoomOutPaintVertexArray&amp;&amp;this.zoomOutPaintVertexArray.arrayBuffer&amp;&amp;(this.zoomInPaintVertexBuffer=t.createVertexBuffer(this.zoomInPaintVertexArray,oa.members,this.expression.isStateDependent),this.zoomOutPaintVertexBuffer=t.createVertexBuffer(this.zoomOutPaintVertexArray,oa.members,this.expression.isStateDependent))},Ca.prototype.destroy=function(){this.zoomOutPaintVertexBuffer&amp;&amp;this.zoomOutPaintVertexBuffer.destroy(),this.zoomInPaintVertexBuffer&amp;&amp;this.zoomInPaintVertexBuffer.destroy()};var La=function(t,e,r,n){this.binders={},this.layoutAttributes=n,this._buffers=[];var i=[];for(var a in t.paint._values)if(r(a)){var o=t.paint.get(a);if(o instanceof fi&amp;&amp;Lr(o.property.specification)){var s=Pa(a,t.type),l=o.value,c=o.property.specification.type,u=o.property.useIntegerZoom,f=o.property.specification[&quot;property-type&quot;],h=&quot;cross-faded&quot;===f||&quot;cross-faded-data-driven&quot;===f;if(&quot;constant&quot;===l.kind)this.binders[a]=h?new Aa(l.value,s):new Ma(l.value,s,c),i.push(&quot;/u_&quot;+a);else if(&quot;source&quot;===l.kind||h){var p=za(a,c,&quot;source&quot;);this.binders[a]=h?new Ca(l,c,u,e,p,t.id):new Sa(l,s,c,p),i.push(&quot;/a_&quot;+a)}else{var d=za(a,c,&quot;composite&quot;);this.binders[a]=new Ea(l,s,c,u,e,d),i.push(&quot;/z_&quot;+a)}}}this.cacheKey=i.sort().join(&quot;&quot;)};La.prototype.getMaxValue=function(t){var e=this.binders[t];return e instanceof Sa||e instanceof Ea?e.maxValue:0},La.prototype.populatePaintArrays=function(t,e,r,n,i){for(var a in this.binders){var o=this.binders[a];(o instanceof Sa||o instanceof Ea||o instanceof Ca)&amp;&amp;o.populatePaintArray(t,e,r,n,i)}},La.prototype.setConstantPatternPositions=function(t,e){for(var r in this.binders){var n=this.binders[r];n instanceof Aa&amp;&amp;n.setConstantPatternPositions(t,e)}},La.prototype.updatePaintArrays=function(t,e,r,n,i){var a=!1;for(var o in t)for(var s=0,l=e.getPositions(o);s&lt;l.length;s+=1){var c=l[s],u=r.feature(c.index);for(var f in this.binders){var h=this.binders[f];if((h instanceof Sa||h instanceof Ea||h instanceof Ca)&amp;&amp;!0===h.expression.isStateDependent){var p=n.paint.get(f);h.expression=p.value,h.updatePaintArray(c.start,c.end,u,t[o],i),a=!0}}}return a},La.prototype.defines=function(){var t=[];for(var e in this.binders){var r=this.binders[e];(r instanceof Ma||r instanceof Aa)&amp;&amp;t.push.apply(t,r.uniformNames.map((function(t){return&quot;#define HAS_UNIFORM_&quot;+t})))}return t},La.prototype.getPaintVertexBuffers=function(){return this._buffers},La.prototype.getUniforms=function(t,e){var r=[];for(var n in this.binders){var i=this.binders[n];if(i instanceof Ma||i instanceof Aa||i instanceof Ea)for(var a=0,o=i.uniformNames;a&lt;o.length;a+=1){var s=o[a];if(e[s]){var l=i.getBinding(t,e[s],s);r.push({name:s,property:n,binding:l})}}}return r},La.prototype.setUniforms=function(t,e,r,n){for(var i=0,a=e;i&lt;a.length;i+=1){var o=a[i],s=o.name,l=o.property;this.binders[l].setUniform(o.binding,n,r.get(l),s)}},La.prototype.updatePaintBuffers=function(t){for(var e in this._buffers=[],this.binders){var r=this.binders[e];if(t&amp;&amp;r instanceof Ca){var n=2===t.fromScale?r.zoomInPaintVertexBuffer:r.zoomOutPaintVertexBuffer;n&amp;&amp;this._buffers.push(n)}else(r instanceof Sa||r instanceof Ea)&amp;&amp;r.paintVertexBuffer&amp;&amp;this._buffers.push(r.paintVertexBuffer)}},La.prototype.upload=function(t){for(var e in this.binders){var r=this.binders[e];(r instanceof Sa||r instanceof Ea||r instanceof Ca)&amp;&amp;r.upload(t)}this.updatePaintBuffers()},La.prototype.destroy=function(){for(var t in this.binders){var e=this.binders[t];(e instanceof Sa||e instanceof Ea||e instanceof Ca)&amp;&amp;e.destroy()}};var Ia=function(t,e,r,n){void 0===n&amp;&amp;(n=function(){return!0}),this.programConfigurations={};for(var i=0,a=e;i&lt;a.length;i+=1){var o=a[i];this.programConfigurations[o.id]=new La(o,r,n,t)}this.needsUpload=!1,this._featureMap=new fa,this._bufferOffset=0};function Pa(t,e){return{&quot;text-opacity&quot;:[&quot;opacity&quot;],&quot;icon-opacity&quot;:[&quot;opacity&quot;],&quot;text-color&quot;:[&quot;fill_color&quot;],&quot;icon-color&quot;:[&quot;fill_color&quot;],&quot;text-halo-color&quot;:[&quot;halo_color&quot;],&quot;icon-halo-color&quot;:[&quot;halo_color&quot;],&quot;text-halo-blur&quot;:[&quot;halo_blur&quot;],&quot;icon-halo-blur&quot;:[&quot;halo_blur&quot;],&quot;text-halo-width&quot;:[&quot;halo_width&quot;],&quot;icon-halo-width&quot;:[&quot;halo_width&quot;],&quot;line-gap-width&quot;:[&quot;gapwidth&quot;],&quot;line-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;],&quot;fill-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;],&quot;fill-extrusion-pattern&quot;:[&quot;pattern_to&quot;,&quot;pattern_from&quot;,&quot;pixel_ratio_to&quot;,&quot;pixel_ratio_from&quot;]}[t]||[t.replace(e+&quot;-&quot;,&quot;&quot;).replace(/-/g,&quot;_&quot;)]}function za(t,e,r){var n={color:{source:Gi,composite:Yi},number:{source:ji,composite:Gi}},i=function(t){return{&quot;line-pattern&quot;:{source:Ci,composite:Ci},&quot;fill-pattern&quot;:{source:Ci,composite:Ci},&quot;fill-extrusion-pattern&quot;:{source:Ci,composite:Ci}}[t]}(t);return i&amp;&amp;i[r]||n[e][r]}Ia.prototype.populatePaintArrays=function(t,e,r,n,i,a){for(var o in this.programConfigurations)this.programConfigurations[o].populatePaintArrays(t,e,n,i,a);void 0!==e.id&amp;&amp;this._featureMap.add(e.id,r,this._bufferOffset,t),this._bufferOffset=t,this.needsUpload=!0},Ia.prototype.updatePaintArrays=function(t,e,r,n){for(var i=0,a=r;i&lt;a.length;i+=1){var o=a[i];this.needsUpload=this.programConfigurations[o.id].updatePaintArrays(t,this._featureMap,e,o,n)||this.needsUpload}},Ia.prototype.get=function(t){return this.programConfigurations[t]},Ia.prototype.upload=function(t){if(this.needsUpload){for(var e in this.programConfigurations)this.programConfigurations[e].upload(t);this.needsUpload=!1}},Ia.prototype.destroy=function(){for(var t in this.programConfigurations)this.programConfigurations[t].destroy()},Dn(&quot;ConstantBinder&quot;,Ma),Dn(&quot;CrossFadedConstantBinder&quot;,Aa),Dn(&quot;SourceExpressionBinder&quot;,Sa),Dn(&quot;CrossFadedCompositeBinder&quot;,Ca),Dn(&quot;CompositeExpressionBinder&quot;,Ea),Dn(&quot;ProgramConfiguration&quot;,La,{omit:[&quot;_buffers&quot;]}),Dn(&quot;ProgramConfigurationSet&quot;,Ia);var Oa={min:-1*Math.pow(2,14),max:Math.pow(2,14)-1};function Da(t){for(var e=8192/t.extent,r=t.loadGeometry(),n=0;n&lt;r.length;n++)for(var i=r[n],a=0;a&lt;i.length;a++){var o=i[a];o.x=Math.round(o.x*e),o.y=Math.round(o.y*e),(o.x&lt;Oa.min||o.x&gt;Oa.max||o.y&lt;Oa.min||o.y&gt;Oa.max)&amp;&amp;(_(&quot;Geometry exceeds allowed extent, reduce your vector tile buffer size&quot;),o.x=l(o.x,Oa.min,Oa.max),o.y=l(o.y,Oa.min,Oa.max))}return r}function Ra(t,e,r,n,i){t.emplaceBack(2*e+(n+1)/2,2*r+(i+1)/2)}var Fa=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Mi,this.indexArray=new Fi,this.segments=new ia,this.programConfigurations=new Ia(na,t.layers,t.zoom),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function Ba(t,e){for(var r=0;r&lt;t.length;r++)if(Wa(e,t[r]))return!0;for(var n=0;n&lt;e.length;n++)if(Wa(t,e[n]))return!0;return!!Va(t,e)}function Na(t,e,r){return!!Wa(t,e)||!!Ha(e,t,r)}function ja(t,e){if(1===t.length)return Ya(e,t[0]);for(var r=0;r&lt;e.length;r++)for(var n=e[r],i=0;i&lt;n.length;i++)if(Wa(t,n[i]))return!0;for(var a=0;a&lt;t.length;a++)if(Ya(e,t[a]))return!0;for(var o=0;o&lt;e.length;o++)if(Va(t,e[o]))return!0;return!1}function Ua(t,e,r){if(t.length&gt;1){if(Va(t,e))return!0;for(var n=0;n&lt;e.length;n++)if(Ha(e[n],t,r))return!0}for(var i=0;i&lt;t.length;i++)if(Ha(t[i],e,r))return!0;return!1}function Va(t,e){if(0===t.length||0===e.length)return!1;for(var r=0;r&lt;t.length-1;r++)for(var n=t[r],i=t[r+1],a=0;a&lt;e.length-1;a++)if(qa(n,i,e[a],e[a+1]))return!0;return!1}function qa(t,e,r,n){return w(t,r,n)!==w(e,r,n)&amp;&amp;w(t,e,r)!==w(t,e,n)}function Ha(t,e,r){var n=r*r;if(1===e.length)return t.distSqr(e[0])&lt;n;for(var i=1;i&lt;e.length;i++)if(Ga(t,e[i-1],e[i])&lt;n)return!0;return!1}function Ga(t,e,r){var n=e.distSqr(r);if(0===n)return t.distSqr(e);var i=((t.x-e.x)*(r.x-e.x)+(t.y-e.y)*(r.y-e.y))/n;return t.distSqr(i&lt;0?e:i&gt;1?r:r.sub(e)._mult(i)._add(e))}function Ya(t,e){for(var r,n,i,a=!1,o=0;o&lt;t.length;o++)for(var s=0,l=(r=t[o]).length-1;s&lt;r.length;l=s++)(n=r[s]).y&gt;e.y!=(i=r[l]).y&gt;e.y&amp;&amp;e.x&lt;(i.x-n.x)*(e.y-n.y)/(i.y-n.y)+n.x&amp;&amp;(a=!a);return a}function Wa(t,e){for(var r=!1,n=0,i=t.length-1;n&lt;t.length;i=n++){var a=t[n],o=t[i];a.y&gt;e.y!=o.y&gt;e.y&amp;&amp;e.x&lt;(o.x-a.x)*(e.y-a.y)/(o.y-a.y)+a.x&amp;&amp;(r=!r)}return r}function Xa(t,e,r){var n=r[0],i=r[2];if(t.x&lt;n.x&amp;&amp;e.x&lt;n.x||t.x&gt;i.x&amp;&amp;e.x&gt;i.x||t.y&lt;n.y&amp;&amp;e.y&lt;n.y||t.y&gt;i.y&amp;&amp;e.y&gt;i.y)return!1;var a=w(t,e,r[0]);return a!==w(t,e,r[1])||a!==w(t,e,r[2])||a!==w(t,e,r[3])}function Za(t,e,r){var n=e.paint.get(t).value;return&quot;constant&quot;===n.kind?n.value:r.programConfigurations.get(e.id).getMaxValue(t)}function Ja(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Ka(t,e,r,n,a){if(!e[0]&amp;&amp;!e[1])return t;var o=i.convert(e)._mult(a);&quot;viewport&quot;===r&amp;&amp;o._rotate(-n);for(var s=[],l=0;l&lt;t.length;l++)s.push(t[l].sub(o));return s}Fa.prototype.populate=function(t,e,r){var n=this.layers[0],i=[],a=null;&quot;circle&quot;===n.type&amp;&amp;(a=n.layout.get(&quot;circle-sort-key&quot;));for(var o=0,s=t;o&lt;s.length;o+=1){var l=s[o],c=l.feature,u=l.id,f=l.index,h=l.sourceLayerIndex,p=this.layers[0]._featureFilter.needGeometry,d={type:c.type,id:u,properties:c.properties,geometry:p?Da(c):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),d,r)){p||(d.geometry=Da(c));var g=a?a.evaluate(d,{},r):void 0;i.push({id:u,properties:c.properties,type:c.type,sourceLayerIndex:h,index:f,geometry:d.geometry,patterns:{},sortKey:g})}}a&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var m=0,v=i;m&lt;v.length;m+=1){var y=v[m],x=y.geometry,b=y.index,_=y.sourceLayerIndex,w=t[b].feature;this.addFeature(y,x,b,r),e.featureIndex.insert(w,x,b,_,this.index)}},Fa.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Fa.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Fa.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Fa.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,na),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Fa.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Fa.prototype.addFeature=function(t,e,r,n){for(var i=0,a=e;i&lt;a.length;i+=1)for(var o=0,s=a[i];o&lt;s.length;o+=1){var l=s[o],c=l.x,u=l.y;if(!(c&lt;0||c&gt;=8192||u&lt;0||u&gt;=8192)){var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,t.sortKey),h=f.vertexLength;Ra(this.layoutVertexArray,c,u,-1,-1),Ra(this.layoutVertexArray,c,u,1,-1),Ra(this.layoutVertexArray,c,u,1,1),Ra(this.layoutVertexArray,c,u,-1,1),this.indexArray.emplaceBack(h,h+1,h+2),this.indexArray.emplaceBack(h,h+3,h+2),f.vertexLength+=4,f.primitiveLength+=2}}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,{},n)},Dn(&quot;CircleBucket&quot;,Fa,{omit:[&quot;layers&quot;]});var Qa=new yi({&quot;circle-sort-key&quot;:new di(At.layout_circle[&quot;circle-sort-key&quot;])}),$a={paint:new yi({&quot;circle-radius&quot;:new di(At.paint_circle[&quot;circle-radius&quot;]),&quot;circle-color&quot;:new di(At.paint_circle[&quot;circle-color&quot;]),&quot;circle-blur&quot;:new di(At.paint_circle[&quot;circle-blur&quot;]),&quot;circle-opacity&quot;:new di(At.paint_circle[&quot;circle-opacity&quot;]),&quot;circle-translate&quot;:new pi(At.paint_circle[&quot;circle-translate&quot;]),&quot;circle-translate-anchor&quot;:new pi(At.paint_circle[&quot;circle-translate-anchor&quot;]),&quot;circle-pitch-scale&quot;:new pi(At.paint_circle[&quot;circle-pitch-scale&quot;]),&quot;circle-pitch-alignment&quot;:new pi(At.paint_circle[&quot;circle-pitch-alignment&quot;]),&quot;circle-stroke-width&quot;:new di(At.paint_circle[&quot;circle-stroke-width&quot;]),&quot;circle-stroke-color&quot;:new di(At.paint_circle[&quot;circle-stroke-color&quot;]),&quot;circle-stroke-opacity&quot;:new di(At.paint_circle[&quot;circle-stroke-opacity&quot;])}),layout:Qa},to=&quot;undefined&quot;!=typeof Float32Array?Float32Array:Array;function eo(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function ro(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],m=e[13],v=e[14],y=e[15],x=r[0],b=r[1],_=r[2],w=r[3];return t[0]=x*n+b*s+_*f+w*g,t[1]=x*i+b*l+_*h+w*m,t[2]=x*a+b*c+_*p+w*v,t[3]=x*o+b*u+_*d+w*y,t[4]=(x=r[4])*n+(b=r[5])*s+(_=r[6])*f+(w=r[7])*g,t[5]=x*i+b*l+_*h+w*m,t[6]=x*a+b*c+_*p+w*v,t[7]=x*o+b*u+_*d+w*y,t[8]=(x=r[8])*n+(b=r[9])*s+(_=r[10])*f+(w=r[11])*g,t[9]=x*i+b*l+_*h+w*m,t[10]=x*a+b*c+_*p+w*v,t[11]=x*o+b*u+_*d+w*y,t[12]=(x=r[12])*n+(b=r[13])*s+(_=r[14])*f+(w=r[15])*g,t[13]=x*i+b*l+_*h+w*m,t[14]=x*a+b*c+_*p+w*v,t[15]=x*o+b*u+_*d+w*y,t}Math.hypot||(Math.hypot=function(){for(var t=arguments,e=0,r=arguments.length;r--;)e+=t[r]*t[r];return Math.sqrt(e)});var no,io=ro;function ao(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3];return t[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,t[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,t[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,t[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,t}no=new to(3),to!=Float32Array&amp;&amp;(no[0]=0,no[1]=0,no[2]=0),function(){var t=new to(4);to!=Float32Array&amp;&amp;(t[0]=0,t[1]=0,t[2]=0,t[3]=0)}();var oo=(function(){var t=new to(2);to!=Float32Array&amp;&amp;(t[0]=0,t[1]=0)}(),function(t){function e(e){t.call(this,e,$a)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new Fa(t)},e.prototype.queryRadius=function(t){var e=t;return Za(&quot;circle-radius&quot;,this,e)+Za(&quot;circle-stroke-width&quot;,this,e)+Ja(this.paint.get(&quot;circle-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o,s){for(var l=Ka(t,this.paint.get(&quot;circle-translate&quot;),this.paint.get(&quot;circle-translate-anchor&quot;),a.angle,o),c=this.paint.get(&quot;circle-radius&quot;).evaluate(e,r)+this.paint.get(&quot;circle-stroke-width&quot;).evaluate(e,r),u=&quot;map&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;),f=u?l:function(t,e){return t.map((function(t){return so(t,e)}))}(l,s),h=u?c*o:c,p=0,d=n;p&lt;d.length;p+=1)for(var g=0,m=d[p];g&lt;m.length;g+=1){var v=m[g],y=u?v:so(v,s),x=h,b=ao([],[v.x,v.y,0,1],s);if(&quot;viewport&quot;===this.paint.get(&quot;circle-pitch-scale&quot;)&amp;&amp;&quot;map&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;)?x*=b[3]/a.cameraToCenterDistance:&quot;map&quot;===this.paint.get(&quot;circle-pitch-scale&quot;)&amp;&amp;&quot;viewport&quot;===this.paint.get(&quot;circle-pitch-alignment&quot;)&amp;&amp;(x*=a.cameraToCenterDistance/b[3]),Na(f,y,x))return!0}return!1},e}(xi));function so(t,e){var r=ao([],[t.x,t.y,0,1],e);return new i(r[0]/r[3],r[1]/r[3])}var lo=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(Fa);function co(t,e,r,n){var i=e.width,a=e.height;if(n){if(n instanceof Uint8ClampedArray)n=new Uint8Array(n.buffer);else if(n.length!==i*a*r)throw new RangeError(&quot;mismatched image size&quot;)}else n=new Uint8Array(i*a*r);return t.width=i,t.height=a,t.data=n,t}function uo(t,e,r){var n=e.width,i=e.height;if(n!==t.width||i!==t.height){var a=co({},{width:n,height:i},r);fo(t,a,{x:0,y:0},{x:0,y:0},{width:Math.min(t.width,n),height:Math.min(t.height,i)},r),t.width=n,t.height=i,t.data=a.data}}function fo(t,e,r,n,i,a){if(0===i.width||0===i.height)return e;if(i.width&gt;t.width||i.height&gt;t.height||r.x&gt;t.width-i.width||r.y&gt;t.height-i.height)throw new RangeError(&quot;out of range source coordinates for image copy&quot;);if(i.width&gt;e.width||i.height&gt;e.height||n.x&gt;e.width-i.width||n.y&gt;e.height-i.height)throw new RangeError(&quot;out of range destination coordinates for image copy&quot;);for(var o=t.data,s=e.data,l=0;l&lt;i.height;l++)for(var c=((r.y+l)*t.width+r.x)*a,u=((n.y+l)*e.width+n.x)*a,f=0;f&lt;i.width*a;f++)s[u+f]=o[c+f];return e}Dn(&quot;HeatmapBucket&quot;,lo,{omit:[&quot;layers&quot;]});var ho=function(t,e){co(this,t,1,e)};ho.prototype.resize=function(t){uo(this,t,1)},ho.prototype.clone=function(){return new ho({width:this.width,height:this.height},new Uint8Array(this.data))},ho.copy=function(t,e,r,n,i){fo(t,e,r,n,i,1)};var po=function(t,e){co(this,t,4,e)};po.prototype.resize=function(t){uo(this,t,4)},po.prototype.replace=function(t,e){e?this.data.set(t):this.data=t instanceof Uint8ClampedArray?new Uint8Array(t.buffer):t},po.prototype.clone=function(){return new po({width:this.width,height:this.height},new Uint8Array(this.data))},po.copy=function(t,e,r,n,i){fo(t,e,r,n,i,4)},Dn(&quot;AlphaImage&quot;,ho),Dn(&quot;RGBAImage&quot;,po);var go={paint:new yi({&quot;heatmap-radius&quot;:new di(At.paint_heatmap[&quot;heatmap-radius&quot;]),&quot;heatmap-weight&quot;:new di(At.paint_heatmap[&quot;heatmap-weight&quot;]),&quot;heatmap-intensity&quot;:new pi(At.paint_heatmap[&quot;heatmap-intensity&quot;]),&quot;heatmap-color&quot;:new vi(At.paint_heatmap[&quot;heatmap-color&quot;]),&quot;heatmap-opacity&quot;:new pi(At.paint_heatmap[&quot;heatmap-opacity&quot;])})};function mo(t,e){for(var r=new Uint8Array(1024),n={},i=0,a=0;i&lt;256;i++,a+=4){n[e]=i/255;var o=t.evaluate(n);r[a+0]=Math.floor(255*o.r/o.a),r[a+1]=Math.floor(255*o.g/o.a),r[a+2]=Math.floor(255*o.b/o.a),r[a+3]=Math.floor(255*o.a)}return new po({width:256,height:1},r)}var vo=function(t){function e(e){t.call(this,e,go),this._updateColorRamp()}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new lo(t)},e.prototype._handleSpecialPaintPropertyUpdate=function(t){&quot;heatmap-color&quot;===t&amp;&amp;this._updateColorRamp()},e.prototype._updateColorRamp=function(){this.colorRamp=mo(this._transitionablePaint._values[&quot;heatmap-color&quot;].value.expression,&quot;heatmapDensity&quot;),this.colorRampTexture=null},e.prototype.resize=function(){this.heatmapFbo&amp;&amp;(this.heatmapFbo.destroy(),this.heatmapFbo=null)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(&quot;heatmap-opacity&quot;)&amp;&amp;&quot;none&quot;!==this.visibility},e}(xi),yo={paint:new yi({&quot;hillshade-illumination-direction&quot;:new pi(At.paint_hillshade[&quot;hillshade-illumination-direction&quot;]),&quot;hillshade-illumination-anchor&quot;:new pi(At.paint_hillshade[&quot;hillshade-illumination-anchor&quot;]),&quot;hillshade-exaggeration&quot;:new pi(At.paint_hillshade[&quot;hillshade-exaggeration&quot;]),&quot;hillshade-shadow-color&quot;:new pi(At.paint_hillshade[&quot;hillshade-shadow-color&quot;]),&quot;hillshade-highlight-color&quot;:new pi(At.paint_hillshade[&quot;hillshade-highlight-color&quot;]),&quot;hillshade-accent-color&quot;:new pi(At.paint_hillshade[&quot;hillshade-accent-color&quot;])})},xo=function(t){function e(e){t.call(this,e,yo)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.hasOffscreenPass=function(){return 0!==this.paint.get(&quot;hillshade-exaggeration&quot;)&amp;&amp;&quot;none&quot;!==this.visibility},e}(xi),bo=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;}],4).members,_o=To,wo=To;function To(t,e,r){r=r||2;var n,i,a,o,s,l,c,u=e&amp;&amp;e.length,f=u?e[0]*r:t.length,h=ko(t,0,f,r,!0),p=[];if(!h||h.next===h.prev)return p;if(u&amp;&amp;(h=function(t,e,r,n){var i,a,o,s=[];for(i=0,a=e.length;i&lt;a;i++)(o=ko(t,e[i]*n,i&lt;a-1?e[i+1]*n:t.length,n,!1))===o.next&amp;&amp;(o.steiner=!0),s.push(Do(o));for(s.sort(Io),i=0;i&lt;s.length;i++)Po(s[i],r),r=Mo(r,r.next);return r}(t,e,h,r)),t.length&gt;80*r){n=a=t[0],i=o=t[1];for(var d=r;d&lt;f;d+=r)(s=t[d])&lt;n&amp;&amp;(n=s),(l=t[d+1])&lt;i&amp;&amp;(i=l),s&gt;a&amp;&amp;(a=s),l&gt;o&amp;&amp;(o=l);c=0!==(c=Math.max(a-n,o-i))?1/c:0}return Ao(h,p,r,n,i,c),p}function ko(t,e,r,n,i){var a,o;if(i===Xo(t,e,r,n)&gt;0)for(a=e;a&lt;r;a+=n)o=Go(a,t[a],t[a+1],o);else for(a=r-n;a&gt;=e;a-=n)o=Go(a,t[a],t[a+1],o);return o&amp;&amp;No(o,o.next)&amp;&amp;(Yo(o),o=o.next),o}function Mo(t,e){if(!t)return t;e||(e=t);var r,n=t;do{if(r=!1,n.steiner||!No(n,n.next)&amp;&amp;0!==Bo(n.prev,n,n.next))n=n.next;else{if(Yo(n),(n=e=n.prev)===n.next)break;r=!0}}while(r||n!==e);return e}function Ao(t,e,r,n,i,a,o){if(t){!o&amp;&amp;a&amp;&amp;function(t,e,r,n){var i=t;do{null===i.z&amp;&amp;(i.z=Oo(i.x,i.y,e,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,r,n,i,a,o,s,l,c=1;do{for(r=t,t=null,a=null,o=0;r;){for(o++,n=r,s=0,e=0;e&lt;c&amp;&amp;(s++,n=n.nextZ);e++);for(l=c;s&gt;0||l&gt;0&amp;&amp;n;)0!==s&amp;&amp;(0===l||!n||r.z&lt;=n.z)?(i=r,r=r.nextZ,s--):(i=n,n=n.nextZ,l--),a?a.nextZ=i:t=i,i.prevZ=a,a=i;r=n}a.nextZ=null,c*=2}while(o&gt;1)}(i)}(t,n,i,a);for(var s,l,c=t;t.prev!==t.next;)if(s=t.prev,l=t.next,a?Eo(t,n,i,a):So(t))e.push(s.i/r),e.push(t.i/r),e.push(l.i/r),Yo(t),t=l.next,c=l.next;else if((t=l)===c){o?1===o?Ao(t=Co(Mo(t),e,r),e,r,n,i,a,2):2===o&amp;&amp;Lo(t,e,r,n,i,a):Ao(Mo(t),e,r,n,i,a,1);break}}}function So(t){var e=t.prev,r=t,n=t.next;if(Bo(e,r,n)&gt;=0)return!1;for(var i=t.next.next;i!==t.prev;){if(Ro(e.x,e.y,r.x,r.y,n.x,n.y,i.x,i.y)&amp;&amp;Bo(i.prev,i,i.next)&gt;=0)return!1;i=i.next}return!0}function Eo(t,e,r,n){var i=t.prev,a=t,o=t.next;if(Bo(i,a,o)&gt;=0)return!1;for(var s=i.x&gt;a.x?i.x&gt;o.x?i.x:o.x:a.x&gt;o.x?a.x:o.x,l=i.y&gt;a.y?i.y&gt;o.y?i.y:o.y:a.y&gt;o.y?a.y:o.y,c=Oo(i.x&lt;a.x?i.x&lt;o.x?i.x:o.x:a.x&lt;o.x?a.x:o.x,i.y&lt;a.y?i.y&lt;o.y?i.y:o.y:a.y&lt;o.y?a.y:o.y,e,r,n),u=Oo(s,l,e,r,n),f=t.prevZ,h=t.nextZ;f&amp;&amp;f.z&gt;=c&amp;&amp;h&amp;&amp;h.z&lt;=u;){if(f!==t.prev&amp;&amp;f!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,f.x,f.y)&amp;&amp;Bo(f.prev,f,f.next)&gt;=0)return!1;if(f=f.prevZ,h!==t.prev&amp;&amp;h!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&amp;&amp;Bo(h.prev,h,h.next)&gt;=0)return!1;h=h.nextZ}for(;f&amp;&amp;f.z&gt;=c;){if(f!==t.prev&amp;&amp;f!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,f.x,f.y)&amp;&amp;Bo(f.prev,f,f.next)&gt;=0)return!1;f=f.prevZ}for(;h&amp;&amp;h.z&lt;=u;){if(h!==t.prev&amp;&amp;h!==t.next&amp;&amp;Ro(i.x,i.y,a.x,a.y,o.x,o.y,h.x,h.y)&amp;&amp;Bo(h.prev,h,h.next)&gt;=0)return!1;h=h.nextZ}return!0}function Co(t,e,r){var n=t;do{var i=n.prev,a=n.next.next;!No(i,a)&amp;&amp;jo(i,n,n.next,a)&amp;&amp;qo(i,a)&amp;&amp;qo(a,i)&amp;&amp;(e.push(i.i/r),e.push(n.i/r),e.push(a.i/r),Yo(n),Yo(n.next),n=t=a),n=n.next}while(n!==t);return Mo(n)}function Lo(t,e,r,n,i,a){var o=t;do{for(var s=o.next.next;s!==o.prev;){if(o.i!==s.i&amp;&amp;Fo(o,s)){var l=Ho(o,s);return o=Mo(o,o.next),l=Mo(l,l.next),Ao(o,e,r,n,i,a),void Ao(l,e,r,n,i,a)}s=s.next}o=o.next}while(o!==t)}function Io(t,e){return t.x-e.x}function Po(t,e){if(e=function(t,e){var r,n=e,i=t.x,a=t.y,o=-1/0;do{if(a&lt;=n.y&amp;&amp;a&gt;=n.next.y&amp;&amp;n.next.y!==n.y){var s=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s&lt;=i&amp;&amp;s&gt;o){if(o=s,s===i){if(a===n.y)return n;if(a===n.next.y)return n.next}r=n.x&lt;n.next.x?n:n.next}}n=n.next}while(n!==e);if(!r)return null;if(i===o)return r;var l,c=r,u=r.x,f=r.y,h=1/0;n=r;do{i&gt;=n.x&amp;&amp;n.x&gt;=u&amp;&amp;i!==n.x&amp;&amp;Ro(a&lt;f?i:o,a,u,f,a&lt;f?o:i,a,n.x,n.y)&amp;&amp;(l=Math.abs(a-n.y)/(i-n.x),qo(n,t)&amp;&amp;(l&lt;h||l===h&amp;&amp;(n.x&gt;r.x||n.x===r.x&amp;&amp;zo(r,n)))&amp;&amp;(r=n,h=l)),n=n.next}while(n!==c);return r}(t,e)){var r=Ho(e,t);Mo(e,e.next),Mo(r,r.next)}}function zo(t,e){return Bo(t.prev,t,e.prev)&lt;0&amp;&amp;Bo(e.next,t,t.next)&lt;0}function Oo(t,e,r,n,i){return(t=1431655765&amp;((t=858993459&amp;((t=252645135&amp;((t=16711935&amp;((t=32767*(t-r)*i)|t&lt;&lt;8))|t&lt;&lt;4))|t&lt;&lt;2))|t&lt;&lt;1))|(e=1431655765&amp;((e=858993459&amp;((e=252645135&amp;((e=16711935&amp;((e=32767*(e-n)*i)|e&lt;&lt;8))|e&lt;&lt;4))|e&lt;&lt;2))|e&lt;&lt;1))&lt;&lt;1}function Do(t){var e=t,r=t;do{(e.x&lt;r.x||e.x===r.x&amp;&amp;e.y&lt;r.y)&amp;&amp;(r=e),e=e.next}while(e!==t);return r}function Ro(t,e,r,n,i,a,o,s){return(i-o)*(e-s)-(t-o)*(a-s)&gt;=0&amp;&amp;(t-o)*(n-s)-(r-o)*(e-s)&gt;=0&amp;&amp;(r-o)*(a-s)-(i-o)*(n-s)&gt;=0}function Fo(t,e){return t.next.i!==e.i&amp;&amp;t.prev.i!==e.i&amp;&amp;!function(t,e){var r=t;do{if(r.i!==t.i&amp;&amp;r.next.i!==t.i&amp;&amp;r.i!==e.i&amp;&amp;r.next.i!==e.i&amp;&amp;jo(r,r.next,t,e))return!0;r=r.next}while(r!==t);return!1}(t,e)&amp;&amp;(qo(t,e)&amp;&amp;qo(e,t)&amp;&amp;function(t,e){var r=t,n=!1,i=(t.x+e.x)/2,a=(t.y+e.y)/2;do{r.y&gt;a!=r.next.y&gt;a&amp;&amp;r.next.y!==r.y&amp;&amp;i&lt;(r.next.x-r.x)*(a-r.y)/(r.next.y-r.y)+r.x&amp;&amp;(n=!n),r=r.next}while(r!==t);return n}(t,e)&amp;&amp;(Bo(t.prev,t,e.prev)||Bo(t,e.prev,e))||No(t,e)&amp;&amp;Bo(t.prev,t,t.next)&gt;0&amp;&amp;Bo(e.prev,e,e.next)&gt;0)}function Bo(t,e,r){return(e.y-t.y)*(r.x-e.x)-(e.x-t.x)*(r.y-e.y)}function No(t,e){return t.x===e.x&amp;&amp;t.y===e.y}function jo(t,e,r,n){var i=Vo(Bo(t,e,r)),a=Vo(Bo(t,e,n)),o=Vo(Bo(r,n,t)),s=Vo(Bo(r,n,e));return i!==a&amp;&amp;o!==s||!(0!==i||!Uo(t,r,e))||!(0!==a||!Uo(t,n,e))||!(0!==o||!Uo(r,t,n))||!(0!==s||!Uo(r,e,n))}function Uo(t,e,r){return e.x&lt;=Math.max(t.x,r.x)&amp;&amp;e.x&gt;=Math.min(t.x,r.x)&amp;&amp;e.y&lt;=Math.max(t.y,r.y)&amp;&amp;e.y&gt;=Math.min(t.y,r.y)}function Vo(t){return t&gt;0?1:t&lt;0?-1:0}function qo(t,e){return Bo(t.prev,t,t.next)&lt;0?Bo(t,e,t.next)&gt;=0&amp;&amp;Bo(t,t.prev,e)&gt;=0:Bo(t,e,t.prev)&lt;0||Bo(t,t.next,e)&lt;0}function Ho(t,e){var r=new Wo(t.i,t.x,t.y),n=new Wo(e.i,e.x,e.y),i=t.next,a=e.prev;return t.next=e,e.prev=t,r.next=i,i.prev=r,n.next=r,r.prev=n,a.next=n,n.prev=a,n}function Go(t,e,r,n){var i=new Wo(t,e,r);return n?(i.next=n.next,i.prev=n,n.next.prev=i,n.next=i):(i.prev=i,i.next=i),i}function Yo(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&amp;&amp;(t.prevZ.nextZ=t.nextZ),t.nextZ&amp;&amp;(t.nextZ.prevZ=t.prevZ)}function Wo(t,e,r){this.i=t,this.x=e,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function Xo(t,e,r,n){for(var i=0,a=e,o=r-n;a&lt;r;a+=n)i+=(t[o]-t[a])*(t[a+1]+t[o+1]),o=a;return i}function Zo(t,e,r,n,i){!function t(e,r,n,i,a){for(;i&gt;n;){if(i-n&gt;600){var o=i-n+1,s=r-n+1,l=Math.log(o),c=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*c*(o-c)/o)*(s-o/2&lt;0?-1:1);t(e,r,Math.max(n,Math.floor(r-s*c/o+u)),Math.min(i,Math.floor(r+(o-s)*c/o+u)),a)}var f=e[r],h=n,p=i;for(Jo(e,n,r),a(e[i],f)&gt;0&amp;&amp;Jo(e,n,i);h&lt;p;){for(Jo(e,h,p),h++,p--;a(e[h],f)&lt;0;)h++;for(;a(e[p],f)&gt;0;)p--}0===a(e[n],f)?Jo(e,n,p):Jo(e,++p,i),p&lt;=r&amp;&amp;(n=p+1),r&lt;=p&amp;&amp;(i=p-1)}}(t,e,r||0,n||t.length-1,i||Ko)}function Jo(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function Ko(t,e){return t&lt;e?-1:t&gt;e?1:0}function Qo(t,e){var r=t.length;if(r&lt;=1)return[t];for(var n,i,a=[],o=0;o&lt;r;o++){var s=T(t[o]);0!==s&amp;&amp;(t[o].area=Math.abs(s),void 0===i&amp;&amp;(i=s&lt;0),i===s&lt;0?(n&amp;&amp;a.push(n),n=[t[o]]):n.push(t[o]))}if(n&amp;&amp;a.push(n),e&gt;1)for(var l=0;l&lt;a.length;l++)a[l].length&lt;=e||(Zo(a[l],e,1,a[l].length-1,$o),a[l]=a[l].slice(0,e));return a}function $o(t,e){return e.area-t.area}function ts(t,e,r){for(var n=r.patternDependencies,i=!1,a=0,o=e;a&lt;o.length;a+=1){var s=o[a].paint.get(t+&quot;-pattern&quot;);s.isConstant()||(i=!0);var l=s.constantOr(null);l&amp;&amp;(i=!0,n[l.to]=!0,n[l.from]=!0)}return i}function es(t,e,r,n,i){for(var a=i.patternDependencies,o=0,s=e;o&lt;s.length;o+=1){var l=s[o],c=l.paint.get(t+&quot;-pattern&quot;).value;if(&quot;constant&quot;!==c.kind){var u=c.evaluate({zoom:n-1},r,{},i.availableImages),f=c.evaluate({zoom:n},r,{},i.availableImages),h=c.evaluate({zoom:n+1},r,{},i.availableImages);f=f&amp;&amp;f.name?f.name:f,h=h&amp;&amp;h.name?h.name:h,a[u=u&amp;&amp;u.name?u.name:u]=!0,a[f]=!0,a[h]=!0,r.patterns[l.id]={min:u,mid:f,max:h}}}return r}To.deviation=function(t,e,r,n){var i=e&amp;&amp;e.length,a=Math.abs(Xo(t,0,i?e[0]*r:t.length,r));if(i)for(var o=0,s=e.length;o&lt;s;o++)a-=Math.abs(Xo(t,e[o]*r,o&lt;s-1?e[o+1]*r:t.length,r));var l=0;for(o=0;o&lt;n.length;o+=3){var c=n[o]*r,u=n[o+1]*r,f=n[o+2]*r;l+=Math.abs((t[c]-t[f])*(t[u+1]-t[c+1])-(t[c]-t[u])*(t[f+1]-t[c+1]))}return 0===a&amp;&amp;0===l?0:Math.abs((l-a)/a)},To.flatten=function(t){for(var e=t[0][0].length,r={vertices:[],holes:[],dimensions:e},n=0,i=0;i&lt;t.length;i++){for(var a=0;a&lt;t[i].length;a++)for(var o=0;o&lt;e;o++)r.vertices.push(t[i][a][o]);i&gt;0&amp;&amp;r.holes.push(n+=t[i-1].length)}return r},_o.default=wo;var rs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Mi,this.indexArray=new Fi,this.indexArray2=new qi,this.programConfigurations=new Ia(bo,t.layers,t.zoom),this.segments=new ia,this.segments2=new ia,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};rs.prototype.populate=function(t,e,r){this.hasPattern=ts(&quot;fill&quot;,this.layers,e);for(var n=this.layers[0].layout.get(&quot;fill-sort-key&quot;),i=[],a=0,o=t;a&lt;o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,p={type:l.type,id:c,properties:l.properties,geometry:h?Da(l):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),p,r)){h||(p.geometry=Da(l));var d=n?n.evaluate(p,{},r,e.availableImages):void 0;i.push({id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:p.geometry,patterns:{},sortKey:d})}}n&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var g=0,m=i;g&lt;m.length;g+=1){var v=m[g],y=v.geometry,x=v.index,b=v.sourceLayerIndex;if(this.hasPattern){var _=es(&quot;fill&quot;,this.layers,v,this.zoom,e);this.patternFeatures.push(_)}else this.addFeature(v,y,x,r,{});e.featureIndex.insert(t[x].feature,y,x,b,this.index)}},rs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},rs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},rs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},rs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},rs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,bo),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.indexBuffer2=t.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(t),this.uploaded=!0},rs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())},rs.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=Qo(e,500);a&lt;o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c&lt;u.length;c+=1)l+=u[c].length;for(var f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray),h=f.vertexLength,p=[],d=[],g=0,m=s;g&lt;m.length;g+=1){var v=m[g];if(0!==v.length){v!==s[0]&amp;&amp;d.push(p.length/2);var y=this.segments2.prepareSegment(v.length,this.layoutVertexArray,this.indexArray2),x=y.vertexLength;this.layoutVertexArray.emplaceBack(v[0].x,v[0].y),this.indexArray2.emplaceBack(x+v.length-1,x),p.push(v[0].x),p.push(v[0].y);for(var b=1;b&lt;v.length;b++)this.layoutVertexArray.emplaceBack(v[b].x,v[b].y),this.indexArray2.emplaceBack(x+b-1,x+b),p.push(v[b].x),p.push(v[b].y);y.vertexLength+=v.length,y.primitiveLength+=v.length}}for(var _=_o(p,d),w=0;w&lt;_.length;w+=3)this.indexArray.emplaceBack(h+_[w],h+_[w+1],h+_[w+2]);f.vertexLength+=l,f.primitiveLength+=_.length/3}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Dn(&quot;FillBucket&quot;,rs,{omit:[&quot;layers&quot;,&quot;patternFeatures&quot;]});var ns=new yi({&quot;fill-sort-key&quot;:new di(At.layout_fill[&quot;fill-sort-key&quot;])}),is={paint:new yi({&quot;fill-antialias&quot;:new pi(At.paint_fill[&quot;fill-antialias&quot;]),&quot;fill-opacity&quot;:new di(At.paint_fill[&quot;fill-opacity&quot;]),&quot;fill-color&quot;:new di(At.paint_fill[&quot;fill-color&quot;]),&quot;fill-outline-color&quot;:new di(At.paint_fill[&quot;fill-outline-color&quot;]),&quot;fill-translate&quot;:new pi(At.paint_fill[&quot;fill-translate&quot;]),&quot;fill-translate-anchor&quot;:new pi(At.paint_fill[&quot;fill-translate-anchor&quot;]),&quot;fill-pattern&quot;:new gi(At.paint_fill[&quot;fill-pattern&quot;])}),layout:ns},as=function(t){function e(e){t.call(this,e,is)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r);var n=this.paint._values[&quot;fill-outline-color&quot;];&quot;constant&quot;===n.value.kind&amp;&amp;void 0===n.value.value&amp;&amp;(this.paint._values[&quot;fill-outline-color&quot;]=this.paint._values[&quot;fill-color&quot;])},e.prototype.createBucket=function(t){return new rs(t)},e.prototype.queryRadius=function(){return Ja(this.paint.get(&quot;fill-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,i,a,o){return ja(Ka(t,this.paint.get(&quot;fill-translate&quot;),this.paint.get(&quot;fill-translate-anchor&quot;),a.angle,o),n)},e.prototype.isTileClipped=function(){return!0},e}(xi),os=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_normal_ed&quot;,components:4,type:&quot;Int16&quot;}],4).members,ss=ls;function ls(t,e,r,n,i){this.properties={},this.extent=r,this.type=0,this._pbf=t,this._geometry=-1,this._keys=n,this._values=i,t.readFields(cs,this,e)}function cs(t,e,r){1==t?e.id=r.readVarint():2==t?function(t,e){for(var r=t.readVarint()+t.pos;t.pos&lt;r;){var n=e._keys[t.readVarint()],i=e._values[t.readVarint()];e.properties[n]=i}}(r,e):3==t?e.type=r.readVarint():4==t&amp;&amp;(e._geometry=r.pos)}function us(t){for(var e,r,n=0,i=0,a=t.length,o=a-1;i&lt;a;o=i++)n+=((r=t[o]).x-(e=t[i]).x)*(e.y+r.y);return n}ls.types=[&quot;Unknown&quot;,&quot;Point&quot;,&quot;LineString&quot;,&quot;Polygon&quot;],ls.prototype.loadGeometry=function(){var t=this._pbf;t.pos=this._geometry;for(var e,r=t.readVarint()+t.pos,n=1,a=0,o=0,s=0,l=[];t.pos&lt;r;){if(a&lt;=0){var c=t.readVarint();n=7&amp;c,a=c&gt;&gt;3}if(a--,1===n||2===n)o+=t.readSVarint(),s+=t.readSVarint(),1===n&amp;&amp;(e&amp;&amp;l.push(e),e=[]),e.push(new i(o,s));else{if(7!==n)throw new Error(&quot;unknown command &quot;+n);e&amp;&amp;e.push(e[0].clone())}}return e&amp;&amp;l.push(e),l},ls.prototype.bbox=function(){var t=this._pbf;t.pos=this._geometry;for(var e=t.readVarint()+t.pos,r=1,n=0,i=0,a=0,o=1/0,s=-1/0,l=1/0,c=-1/0;t.pos&lt;e;){if(n&lt;=0){var u=t.readVarint();r=7&amp;u,n=u&gt;&gt;3}if(n--,1===r||2===r)(i+=t.readSVarint())&lt;o&amp;&amp;(o=i),i&gt;s&amp;&amp;(s=i),(a+=t.readSVarint())&lt;l&amp;&amp;(l=a),a&gt;c&amp;&amp;(c=a);else if(7!==r)throw new Error(&quot;unknown command &quot;+r)}return[o,l,s,c]},ls.prototype.toGeoJSON=function(t,e,r){var n,i,a=this.extent*Math.pow(2,r),o=this.extent*t,s=this.extent*e,l=this.loadGeometry(),c=ls.types[this.type];function u(t){for(var e=0;e&lt;t.length;e++){var r=t[e];t[e]=[360*(r.x+o)/a-180,360/Math.PI*Math.atan(Math.exp((180-360*(r.y+s)/a)*Math.PI/180))-90]}}switch(this.type){case 1:var f=[];for(n=0;n&lt;l.length;n++)f[n]=l[n][0];u(l=f);break;case 2:for(n=0;n&lt;l.length;n++)u(l[n]);break;case 3:for(l=function(t){var e=t.length;if(e&lt;=1)return[t];for(var r,n,i=[],a=0;a&lt;e;a++){var o=us(t[a]);0!==o&amp;&amp;(void 0===n&amp;&amp;(n=o&lt;0),n===o&lt;0?(r&amp;&amp;i.push(r),r=[t[a]]):r.push(t[a]))}return r&amp;&amp;i.push(r),i}(l),n=0;n&lt;l.length;n++)for(i=0;i&lt;l[n].length;i++)u(l[n][i])}1===l.length?l=l[0]:c=&quot;Multi&quot;+c;var h={type:&quot;Feature&quot;,geometry:{type:c,coordinates:l},properties:this.properties};return&quot;id&quot;in this&amp;&amp;(h.id=this.id),h};var fs=hs;function hs(t,e){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=t,this._keys=[],this._values=[],this._features=[],t.readFields(ps,this,e),this.length=this._features.length}function ps(t,e,r){15===t?e.version=r.readVarint():1===t?e.name=r.readString():5===t?e.extent=r.readVarint():2===t?e._features.push(r.pos):3===t?e._keys.push(r.readString()):4===t&amp;&amp;e._values.push(function(t){for(var e=null,r=t.readVarint()+t.pos;t.pos&lt;r;){var n=t.readVarint()&gt;&gt;3;e=1===n?t.readString():2===n?t.readFloat():3===n?t.readDouble():4===n?t.readVarint64():5===n?t.readVarint():6===n?t.readSVarint():7===n?t.readBoolean():null}return e}(r))}function ds(t,e,r){if(3===t){var n=new fs(r,r.readVarint()+r.pos);n.length&amp;&amp;(e[n.name]=n)}}hs.prototype.feature=function(t){if(t&lt;0||t&gt;=this._features.length)throw new Error(&quot;feature index out of bounds&quot;);this._pbf.pos=this._features[t];var e=this._pbf.readVarint()+this._pbf.pos;return new ss(this._pbf,e,this.extent,this._keys,this._values)};var gs={VectorTile:function(t,e){this.layers=t.readFields(ds,{},e)},VectorTileFeature:ss,VectorTileLayer:fs},ms=gs.VectorTileFeature.types,vs=Math.pow(2,13);function ys(t,e,r,n,i,a,o,s){t.emplaceBack(e,r,2*Math.floor(n*vs)+o,i*vs*2,a*vs*2,Math.round(s))}var xs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.layoutVertexArray=new Si,this.indexArray=new Fi,this.programConfigurations=new Ia(os,t.layers,t.zoom),this.segments=new ia,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};function bs(t,e){return t.x===e.x&amp;&amp;(t.x&lt;0||t.x&gt;8192)||t.y===e.y&amp;&amp;(t.y&lt;0||t.y&gt;8192)}xs.prototype.populate=function(t,e,r){this.features=[],this.hasPattern=ts(&quot;fill-extrusion&quot;,this.layers,e);for(var n=0,i=t;n&lt;i.length;n+=1){var a=i[n],o=a.feature,s=a.id,l=a.index,c=a.sourceLayerIndex,u=this.layers[0]._featureFilter.needGeometry,f={type:o.type,id:s,properties:o.properties,geometry:u?Da(o):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),f,r)){var h={id:s,sourceLayerIndex:c,index:l,geometry:u?f.geometry:Da(o),properties:o.properties,type:o.type,patterns:{}};void 0!==o.id&amp;&amp;(h.id=o.id),this.hasPattern?this.features.push(es(&quot;fill-extrusion&quot;,this.layers,h,this.zoom,e)):this.addFeature(h,h.geometry,l,r,{}),e.featureIndex.insert(o,h.geometry,l,c,this.index,!0)}}},xs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.features;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},xs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},xs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},xs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},xs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,os),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},xs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},xs.prototype.addFeature=function(t,e,r,n,i){for(var a=0,o=Qo(e,500);a&lt;o.length;a+=1){for(var s=o[a],l=0,c=0,u=s;c&lt;u.length;c+=1)l+=u[c].length;for(var f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray),h=0,p=s;h&lt;p.length;h+=1){var d=p[h];if(0!==d.length&amp;&amp;!((P=d).every((function(t){return t.x&lt;0}))||P.every((function(t){return t.x&gt;8192}))||P.every((function(t){return t.y&lt;0}))||P.every((function(t){return t.y&gt;8192}))))for(var g=0,m=0;m&lt;d.length;m++){var v=d[m];if(m&gt;=1){var y=d[m-1];if(!bs(v,y)){f.vertexLength+4&gt;ia.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(f=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));var x=v.sub(y)._perp()._unit(),b=y.dist(v);g+b&gt;32768&amp;&amp;(g=0),ys(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,0,g),ys(this.layoutVertexArray,v.x,v.y,x.x,x.y,0,1,g),ys(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,0,g+=b),ys(this.layoutVertexArray,y.x,y.y,x.x,x.y,0,1,g);var _=f.vertexLength;this.indexArray.emplaceBack(_,_+2,_+1),this.indexArray.emplaceBack(_+1,_+2,_+3),f.vertexLength+=4,f.primitiveLength+=2}}}}if(f.vertexLength+l&gt;ia.MAX_VERTEX_ARRAY_LENGTH&amp;&amp;(f=this.segments.prepareSegment(l,this.layoutVertexArray,this.indexArray)),&quot;Polygon&quot;===ms[t.type]){for(var w=[],T=[],k=f.vertexLength,M=0,A=s;M&lt;A.length;M+=1){var S=A[M];if(0!==S.length){S!==s[0]&amp;&amp;T.push(w.length/2);for(var E=0;E&lt;S.length;E++){var C=S[E];ys(this.layoutVertexArray,C.x,C.y,0,0,1,1,0),w.push(C.x),w.push(C.y)}}}for(var L=_o(w,T),I=0;I&lt;L.length;I+=3)this.indexArray.emplaceBack(k+L[I],k+L[I+2],k+L[I+1]);f.primitiveLength+=L.length/3,f.vertexLength+=l}}var P;this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Dn(&quot;FillExtrusionBucket&quot;,xs,{omit:[&quot;layers&quot;,&quot;features&quot;]});var _s={paint:new yi({&quot;fill-extrusion-opacity&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-opacity&quot;]),&quot;fill-extrusion-color&quot;:new di(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-color&quot;]),&quot;fill-extrusion-translate&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-translate&quot;]),&quot;fill-extrusion-translate-anchor&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-translate-anchor&quot;]),&quot;fill-extrusion-pattern&quot;:new gi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-pattern&quot;]),&quot;fill-extrusion-height&quot;:new di(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-height&quot;]),&quot;fill-extrusion-base&quot;:new di(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-base&quot;]),&quot;fill-extrusion-vertical-gradient&quot;:new pi(At[&quot;paint_fill-extrusion&quot;][&quot;fill-extrusion-vertical-gradient&quot;])})},ws=function(t){function e(e){t.call(this,e,_s)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.createBucket=function(t){return new xs(t)},e.prototype.queryRadius=function(){return Ja(this.paint.get(&quot;fill-extrusion-translate&quot;))},e.prototype.is3D=function(){return!0},e.prototype.queryIntersectsFeature=function(t,e,r,n,a,o,s,l){var c=Ka(t,this.paint.get(&quot;fill-extrusion-translate&quot;),this.paint.get(&quot;fill-extrusion-translate-anchor&quot;),o.angle,s),u=this.paint.get(&quot;fill-extrusion-height&quot;).evaluate(e,r),f=this.paint.get(&quot;fill-extrusion-base&quot;).evaluate(e,r),h=function(t,e,r,n){for(var a=[],o=0,s=t;o&lt;s.length;o+=1){var l=s[o],c=[l.x,l.y,0,1];ao(c,c,e),a.push(new i(c[0]/c[3],c[1]/c[3]))}return a}(c,l),p=function(t,e,r,n){for(var a=[],o=[],s=n[8]*e,l=n[9]*e,c=n[10]*e,u=n[11]*e,f=n[8]*r,h=n[9]*r,p=n[10]*r,d=n[11]*r,g=0,m=t;g&lt;m.length;g+=1){for(var v=[],y=[],x=0,b=m[g];x&lt;b.length;x+=1){var _=b[x],w=_.x,T=_.y,k=n[0]*w+n[4]*T+n[12],M=n[1]*w+n[5]*T+n[13],A=n[2]*w+n[6]*T+n[14],S=n[3]*w+n[7]*T+n[15],E=A+c,C=S+u,L=k+f,I=M+h,P=A+p,z=S+d,O=new i((k+s)/C,(M+l)/C);O.z=E/C,v.push(O);var D=new i(L/z,I/z);D.z=P/z,y.push(D)}a.push(v),o.push(y)}return[a,o]}(n,f,u,l);return function(t,e,r){var n=1/0;ja(r,e)&amp;&amp;(n=ks(r,e[0]));for(var i=0;i&lt;e.length;i++)for(var a=e[i],o=t[i],s=0;s&lt;a.length-1;s++){var l=a[s],c=[l,a[s+1],o[s+1],o[s],l];Ba(r,c)&amp;&amp;(n=Math.min(n,ks(r,c)))}return n!==1/0&amp;&amp;n}(p[0],p[1],h)},e}(xi);function Ts(t,e){return t.x*e.x+t.y*e.y}function ks(t,e){if(1===t.length){for(var r,n=0,i=e[n++];!r||i.equals(r);)if(!(r=e[n++]))return 1/0;for(;n&lt;e.length;n++){var a=e[n],o=t[0],s=r.sub(i),l=a.sub(i),c=o.sub(i),u=Ts(s,s),f=Ts(s,l),h=Ts(l,l),p=Ts(c,s),d=Ts(c,l),g=u*h-f*f,m=(h*p-f*d)/g,v=(u*d-f*p)/g,y=i.z*(1-m-v)+r.z*m+a.z*v;if(isFinite(y))return y}return 1/0}for(var x=1/0,b=0,_=e;b&lt;_.length;b+=1)x=Math.min(x,_[b].z);return x}var Ms=Ti([{name:&quot;a_pos_normal&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_data&quot;,components:4,type:&quot;Uint8&quot;}],4).members,As=gs.VectorTileFeature.types,Ss=Math.cos(Math.PI/180*37.5),Es=Math.pow(2,14)/.5,Cs=function(t){this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new Ei,this.indexArray=new Fi,this.programConfigurations=new Ia(Ms,t.layers,t.zoom),this.segments=new ia,this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id}))};Cs.prototype.populate=function(t,e,r){this.hasPattern=ts(&quot;line&quot;,this.layers,e);for(var n=this.layers[0].layout.get(&quot;line-sort-key&quot;),i=[],a=0,o=t;a&lt;o.length;a+=1){var s=o[a],l=s.feature,c=s.id,u=s.index,f=s.sourceLayerIndex,h=this.layers[0]._featureFilter.needGeometry,p={type:l.type,id:c,properties:l.properties,geometry:h?Da(l):[]};if(this.layers[0]._featureFilter.filter(new ii(this.zoom),p,r)){h||(p.geometry=Da(l));var d=n?n.evaluate(p,{},r):void 0;i.push({id:c,properties:l.properties,type:l.type,sourceLayerIndex:f,index:u,geometry:p.geometry,patterns:{},sortKey:d})}}n&amp;&amp;i.sort((function(t,e){return t.sortKey-e.sortKey}));for(var g=0,m=i;g&lt;m.length;g+=1){var v=m[g],y=v.geometry,x=v.index,b=v.sourceLayerIndex;if(this.hasPattern){var _=es(&quot;line&quot;,this.layers,v,this.zoom,e);this.patternFeatures.push(_)}else this.addFeature(v,y,x,r,{});e.featureIndex.insert(t[x].feature,y,x,b,this.index)}},Cs.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;this.programConfigurations.updatePaintArrays(t,e,this.stateDependentLayers,r)},Cs.prototype.addFeatures=function(t,e,r){for(var n=0,i=this.patternFeatures;n&lt;i.length;n+=1){var a=i[n];this.addFeature(a,a.geometry,a.index,e,r)}},Cs.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length},Cs.prototype.uploadPending=function(){return!this.uploaded||this.programConfigurations.needsUpload},Cs.prototype.upload=function(t){this.uploaded||(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ms),this.indexBuffer=t.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(t),this.uploaded=!0},Cs.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())},Cs.prototype.addFeature=function(t,e,r,n,i){for(var a=this.layers[0].layout,o=a.get(&quot;line-join&quot;).evaluate(t,{}),s=a.get(&quot;line-cap&quot;),l=a.get(&quot;line-miter-limit&quot;),c=a.get(&quot;line-round-limit&quot;),u=0,f=e;u&lt;f.length;u+=1)this.addLine(f[u],t,o,s,l,c);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,t,r,i,n)},Cs.prototype.addLine=function(t,e,r,n,i,a){if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,e.properties&amp;&amp;e.properties.hasOwnProperty(&quot;mapbox_clip_start&quot;)&amp;&amp;e.properties.hasOwnProperty(&quot;mapbox_clip_end&quot;)){this.clipStart=+e.properties.mapbox_clip_start,this.clipEnd=+e.properties.mapbox_clip_end;for(var o=0;o&lt;t.length-1;o++)this.totalDistance+=t[o].dist(t[o+1]);this.updateScaledDistance()}for(var s=&quot;Polygon&quot;===As[e.type],l=t.length;l&gt;=2&amp;&amp;t[l-1].equals(t[l-2]);)l--;for(var c=0;c&lt;l-1&amp;&amp;t[c].equals(t[c+1]);)c++;if(!(l&lt;(s?3:2))){&quot;bevel&quot;===r&amp;&amp;(i=1.05);var u,f=this.overscaling&lt;=16?122880/(512*this.overscaling):0,h=this.segments.prepareSegment(10*l,this.layoutVertexArray,this.indexArray),p=void 0,d=void 0,g=void 0,m=void 0;this.e1=this.e2=-1,s&amp;&amp;(m=t[c].sub(u=t[l-2])._unit()._perp());for(var v=c;v&lt;l;v++)if(!(d=v===l-1?s?t[c+1]:void 0:t[v+1])||!t[v].equals(d)){m&amp;&amp;(g=m),u&amp;&amp;(p=u),u=t[v],m=d?d.sub(u)._unit()._perp():g;var y=(g=g||m).add(m);0===y.x&amp;&amp;0===y.y||y._unit();var x=g.x*m.x+g.y*m.y,b=y.x*m.x+y.y*m.y,_=0!==b?1/b:1/0,w=2*Math.sqrt(2-2*b),T=b&lt;Ss&amp;&amp;p&amp;&amp;d,k=g.x*m.y-g.y*m.x&gt;0;if(T&amp;&amp;v&gt;c){var M=u.dist(p);if(M&gt;2*f){var A=u.sub(u.sub(p)._mult(f/M)._round());this.updateDistance(p,A),this.addCurrentVertex(A,g,0,0,h),p=A}}var S=p&amp;&amp;d,E=S?r:s?&quot;butt&quot;:n;if(S&amp;&amp;&quot;round&quot;===E&amp;&amp;(_&lt;a?E=&quot;miter&quot;:_&lt;=2&amp;&amp;(E=&quot;fakeround&quot;)),&quot;miter&quot;===E&amp;&amp;_&gt;i&amp;&amp;(E=&quot;bevel&quot;),&quot;bevel&quot;===E&amp;&amp;(_&gt;2&amp;&amp;(E=&quot;flipbevel&quot;),_&lt;i&amp;&amp;(E=&quot;miter&quot;)),p&amp;&amp;this.updateDistance(p,u),&quot;miter&quot;===E)y._mult(_),this.addCurrentVertex(u,y,0,0,h);else if(&quot;flipbevel&quot;===E){if(_&gt;100)y=m.mult(-1);else{var C=_*g.add(m).mag()/g.sub(m).mag();y._perp()._mult(C*(k?-1:1))}this.addCurrentVertex(u,y,0,0,h),this.addCurrentVertex(u,y.mult(-1),0,0,h)}else if(&quot;bevel&quot;===E||&quot;fakeround&quot;===E){var L=-Math.sqrt(_*_-1),I=k?L:0,P=k?0:L;if(p&amp;&amp;this.addCurrentVertex(u,g,I,P,h),&quot;fakeround&quot;===E)for(var z=Math.round(180*w/Math.PI/20),O=1;O&lt;z;O++){var D=O/z;if(.5!==D){var R=D-.5;D+=D*R*(D-1)*((1.0904+x*(x*(3.55645-1.43519*x)-3.2452))*R*R+(.848013+x*(.215638*x-1.06021)))}var F=m.sub(g)._mult(D)._add(g)._unit()._mult(k?-1:1);this.addHalfVertex(u,F.x,F.y,!1,k,0,h)}d&amp;&amp;this.addCurrentVertex(u,m,-I,-P,h)}else if(&quot;butt&quot;===E)this.addCurrentVertex(u,y,0,0,h);else if(&quot;square&quot;===E){var B=p?1:-1;this.addCurrentVertex(u,y,B,B,h)}else&quot;round&quot;===E&amp;&amp;(p&amp;&amp;(this.addCurrentVertex(u,g,0,0,h),this.addCurrentVertex(u,g,1,1,h,!0)),d&amp;&amp;(this.addCurrentVertex(u,m,-1,-1,h,!0),this.addCurrentVertex(u,m,0,0,h)));if(T&amp;&amp;v&lt;l-1){var N=u.dist(d);if(N&gt;2*f){var j=u.add(d.sub(u)._mult(f/N)._round());this.updateDistance(u,j),this.addCurrentVertex(j,m,0,0,h),u=j}}}}},Cs.prototype.addCurrentVertex=function(t,e,r,n,i,a){void 0===a&amp;&amp;(a=!1);var o=e.y*n-e.x,s=-e.y-e.x*n;this.addHalfVertex(t,e.x+e.y*r,e.y-e.x*r,a,!1,r,i),this.addHalfVertex(t,o,s,a,!0,-n,i),this.distance&gt;Es/2&amp;&amp;0===this.totalDistance&amp;&amp;(this.distance=0,this.addCurrentVertex(t,e,r,n,i,a))},Cs.prototype.addHalfVertex=function(t,e,r,n,i,a,o){var s=.5*this.scaledDistance;this.layoutVertexArray.emplaceBack((t.x&lt;&lt;1)+(n?1:0),(t.y&lt;&lt;1)+(i?1:0),Math.round(63*e)+128,Math.round(63*r)+128,1+(0===a?0:a&lt;0?-1:1)|(63&amp;s)&lt;&lt;2,s&gt;&gt;6);var l=o.vertexLength++;this.e1&gt;=0&amp;&amp;this.e2&gt;=0&amp;&amp;(this.indexArray.emplaceBack(this.e1,this.e2,l),o.primitiveLength++),i?this.e2=l:this.e1=l},Cs.prototype.updateScaledDistance=function(){this.scaledDistance=this.totalDistance&gt;0?(this.clipStart+(this.clipEnd-this.clipStart)*this.distance/this.totalDistance)*(Es-1):this.distance},Cs.prototype.updateDistance=function(t,e){this.distance+=t.dist(e),this.updateScaledDistance()},Dn(&quot;LineBucket&quot;,Cs,{omit:[&quot;layers&quot;,&quot;patternFeatures&quot;]});var Ls=new yi({&quot;line-cap&quot;:new pi(At.layout_line[&quot;line-cap&quot;]),&quot;line-join&quot;:new di(At.layout_line[&quot;line-join&quot;]),&quot;line-miter-limit&quot;:new pi(At.layout_line[&quot;line-miter-limit&quot;]),&quot;line-round-limit&quot;:new pi(At.layout_line[&quot;line-round-limit&quot;]),&quot;line-sort-key&quot;:new di(At.layout_line[&quot;line-sort-key&quot;])}),Is={paint:new yi({&quot;line-opacity&quot;:new di(At.paint_line[&quot;line-opacity&quot;]),&quot;line-color&quot;:new di(At.paint_line[&quot;line-color&quot;]),&quot;line-translate&quot;:new pi(At.paint_line[&quot;line-translate&quot;]),&quot;line-translate-anchor&quot;:new pi(At.paint_line[&quot;line-translate-anchor&quot;]),&quot;line-width&quot;:new di(At.paint_line[&quot;line-width&quot;]),&quot;line-gap-width&quot;:new di(At.paint_line[&quot;line-gap-width&quot;]),&quot;line-offset&quot;:new di(At.paint_line[&quot;line-offset&quot;]),&quot;line-blur&quot;:new di(At.paint_line[&quot;line-blur&quot;]),&quot;line-dasharray&quot;:new mi(At.paint_line[&quot;line-dasharray&quot;]),&quot;line-pattern&quot;:new gi(At.paint_line[&quot;line-pattern&quot;]),&quot;line-gradient&quot;:new vi(At.paint_line[&quot;line-gradient&quot;])}),layout:Ls},Ps=new(function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.possiblyEvaluate=function(e,r){return r=new ii(Math.floor(r.zoom),{now:r.now,fadeDuration:r.fadeDuration,zoomHistory:r.zoomHistory,transition:r.transition}),t.prototype.possiblyEvaluate.call(this,e,r)},e.prototype.evaluate=function(e,r,n,i){return r=u({},r,{zoom:Math.floor(r.zoom)}),t.prototype.evaluate.call(this,e,r,n,i)},e}(di))(Is.paint.properties[&quot;line-width&quot;].specification);Ps.useIntegerZoom=!0;var zs=function(t){function e(e){t.call(this,e,Is)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._handleSpecialPaintPropertyUpdate=function(t){&quot;line-gradient&quot;===t&amp;&amp;this._updateGradient()},e.prototype._updateGradient=function(){this.gradient=mo(this._transitionablePaint._values[&quot;line-gradient&quot;].value.expression,&quot;lineProgress&quot;),this.gradientTexture=null},e.prototype.recalculate=function(e,r){t.prototype.recalculate.call(this,e,r),this.paint._values[&quot;line-floorwidth&quot;]=Ps.possiblyEvaluate(this._transitioningPaint._values[&quot;line-width&quot;].value,e)},e.prototype.createBucket=function(t){return new Cs(t)},e.prototype.queryRadius=function(t){var e=t,r=Os(Za(&quot;line-width&quot;,this,e),Za(&quot;line-gap-width&quot;,this,e)),n=Za(&quot;line-offset&quot;,this,e);return r/2+Math.abs(n)+Ja(this.paint.get(&quot;line-translate&quot;))},e.prototype.queryIntersectsFeature=function(t,e,r,n,a,o,s){var l=Ka(t,this.paint.get(&quot;line-translate&quot;),this.paint.get(&quot;line-translate-anchor&quot;),o.angle,s),c=s/2*Os(this.paint.get(&quot;line-width&quot;).evaluate(e,r),this.paint.get(&quot;line-gap-width&quot;).evaluate(e,r)),u=this.paint.get(&quot;line-offset&quot;).evaluate(e,r);return u&amp;&amp;(n=function(t,e){for(var r=[],n=new i(0,0),a=0;a&lt;t.length;a++){for(var o=t[a],s=[],l=0;l&lt;o.length;l++){var c=o[l],u=o[l+1],f=0===l?n:c.sub(o[l-1])._unit()._perp(),h=l===o.length-1?n:u.sub(c)._unit()._perp(),p=f._add(h)._unit();p._mult(1/(p.x*h.x+p.y*h.y)),s.push(p._mult(e)._add(c))}r.push(s)}return r}(n,u*s)),function(t,e,r){for(var n=0;n&lt;e.length;n++){var i=e[n];if(t.length&gt;=3)for(var a=0;a&lt;i.length;a++)if(Wa(t,i[a]))return!0;if(Ua(t,i,r))return!0}return!1}(l,n,c)},e.prototype.isTileClipped=function(){return!0},e}(xi);function Os(t,e){return e&gt;0?e+2*t:t}var Ds=Ti([{name:&quot;a_pos_offset&quot;,components:4,type:&quot;Int16&quot;},{name:&quot;a_data&quot;,components:4,type:&quot;Uint16&quot;},{name:&quot;a_pixeloffset&quot;,components:4,type:&quot;Int16&quot;}],4),Rs=Ti([{name:&quot;a_projected_pos&quot;,components:3,type:&quot;Float32&quot;}],4),Fs=(Ti([{name:&quot;a_fade_opacity&quot;,components:1,type:&quot;Uint32&quot;}],4),Ti([{name:&quot;a_placed&quot;,components:2,type:&quot;Uint8&quot;},{name:&quot;a_shift&quot;,components:2,type:&quot;Float32&quot;}])),Bs=(Ti([{type:&quot;Int16&quot;,name:&quot;anchorPointX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorPointY&quot;},{type:&quot;Int16&quot;,name:&quot;x1&quot;},{type:&quot;Int16&quot;,name:&quot;y1&quot;},{type:&quot;Int16&quot;,name:&quot;x2&quot;},{type:&quot;Int16&quot;,name:&quot;y2&quot;},{type:&quot;Uint32&quot;,name:&quot;featureIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;sourceLayerIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;bucketIndex&quot;}]),Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_anchor_pos&quot;,components:2,type:&quot;Int16&quot;},{name:&quot;a_extrude&quot;,components:2,type:&quot;Int16&quot;}],4)),Ns=Ti([{name:&quot;a_pos&quot;,components:2,type:&quot;Float32&quot;},{name:&quot;a_radius&quot;,components:1,type:&quot;Float32&quot;},{name:&quot;a_flags&quot;,components:2,type:&quot;Int16&quot;}],4);function js(t,e,r){return t.sections.forEach((function(t){t.text=function(t,e,r){var n=e.layout.get(&quot;text-transform&quot;).evaluate(r,{});return&quot;uppercase&quot;===n?t=t.toLocaleUpperCase():&quot;lowercase&quot;===n&amp;&amp;(t=t.toLocaleLowerCase()),ni.applyArabicShaping&amp;&amp;(t=ni.applyArabicShaping(t)),t}(t.text,e,r)})),t}Ti([{name:&quot;triangle&quot;,components:3,type:&quot;Uint16&quot;}]),Ti([{type:&quot;Int16&quot;,name:&quot;anchorX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorY&quot;},{type:&quot;Uint16&quot;,name:&quot;glyphStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;numGlyphs&quot;},{type:&quot;Uint32&quot;,name:&quot;vertexStartIndex&quot;},{type:&quot;Uint32&quot;,name:&quot;lineStartIndex&quot;},{type:&quot;Uint32&quot;,name:&quot;lineLength&quot;},{type:&quot;Uint16&quot;,name:&quot;segment&quot;},{type:&quot;Uint16&quot;,name:&quot;lowerSize&quot;},{type:&quot;Uint16&quot;,name:&quot;upperSize&quot;},{type:&quot;Float32&quot;,name:&quot;lineOffsetX&quot;},{type:&quot;Float32&quot;,name:&quot;lineOffsetY&quot;},{type:&quot;Uint8&quot;,name:&quot;writingMode&quot;},{type:&quot;Uint8&quot;,name:&quot;placedOrientation&quot;},{type:&quot;Uint8&quot;,name:&quot;hidden&quot;},{type:&quot;Uint32&quot;,name:&quot;crossTileID&quot;},{type:&quot;Int16&quot;,name:&quot;associatedIconIndex&quot;}]),Ti([{type:&quot;Int16&quot;,name:&quot;anchorX&quot;},{type:&quot;Int16&quot;,name:&quot;anchorY&quot;},{type:&quot;Int16&quot;,name:&quot;rightJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;centerJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;leftJustifiedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;verticalPlacedTextSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;placedIconSymbolIndex&quot;},{type:&quot;Int16&quot;,name:&quot;verticalPlacedIconSymbolIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;key&quot;},{type:&quot;Uint16&quot;,name:&quot;textBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;textBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalTextBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalTextBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;iconBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;iconBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalIconBoxStartIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;verticalIconBoxEndIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;featureIndex&quot;},{type:&quot;Uint16&quot;,name:&quot;numHorizontalGlyphVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numVerticalGlyphVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numIconVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;numVerticalIconVertices&quot;},{type:&quot;Uint16&quot;,name:&quot;useRuntimeCollisionCircles&quot;},{type:&quot;Uint32&quot;,name:&quot;crossTileID&quot;},{type:&quot;Float32&quot;,name:&quot;textBoxScale&quot;},{type:&quot;Float32&quot;,components:2,name:&quot;textOffset&quot;},{type:&quot;Float32&quot;,name:&quot;collisionCircleDiameter&quot;}]),Ti([{type:&quot;Float32&quot;,name:&quot;offsetX&quot;}]),Ti([{type:&quot;Int16&quot;,name:&quot;x&quot;},{type:&quot;Int16&quot;,name:&quot;y&quot;},{type:&quot;Int16&quot;,name:&quot;tileUnitDistanceFromAnchor&quot;}]);var Us={&quot;!&quot;:&quot;\ufe15&quot;,&quot;#&quot;:&quot;\uff03&quot;,$:&quot;\uff04&quot;,&quot;%&quot;:&quot;\uff05&quot;,&quot;&amp;&quot;:&quot;\uff06&quot;,&quot;(&quot;:&quot;\ufe35&quot;,&quot;)&quot;:&quot;\ufe36&quot;,&quot;*&quot;:&quot;\uff0a&quot;,&quot;+&quot;:&quot;\uff0b&quot;,&quot;,&quot;:&quot;\ufe10&quot;,&quot;-&quot;:&quot;\ufe32&quot;,&quot;.&quot;:&quot;\u30fb&quot;,&quot;/&quot;:&quot;\uff0f&quot;,&quot;:&quot;:&quot;\ufe13&quot;,&quot;;&quot;:&quot;\ufe14&quot;,&quot;&lt;&quot;:&quot;\ufe3f&quot;,&quot;=&quot;:&quot;\uff1d&quot;,&quot;&gt;&quot;:&quot;\ufe40&quot;,&quot;?&quot;:&quot;\ufe16&quot;,&quot;@&quot;:&quot;\uff20&quot;,&quot;[&quot;:&quot;\ufe47&quot;,&quot;\\&quot;:&quot;\uff3c&quot;,&quot;]&quot;:&quot;\ufe48&quot;,&quot;^&quot;:&quot;\uff3e&quot;,_:&quot;\ufe33&quot;,&quot;`&quot;:&quot;\uff40&quot;,&quot;{&quot;:&quot;\ufe37&quot;,&quot;|&quot;:&quot;\u2015&quot;,&quot;}&quot;:&quot;\ufe38&quot;,&quot;~&quot;:&quot;\uff5e&quot;,&quot;\xa2&quot;:&quot;\uffe0&quot;,&quot;\xa3&quot;:&quot;\uffe1&quot;,&quot;\xa5&quot;:&quot;\uffe5&quot;,&quot;\xa6&quot;:&quot;\uffe4&quot;,&quot;\xac&quot;:&quot;\uffe2&quot;,&quot;\xaf&quot;:&quot;\uffe3&quot;,&quot;\u2013&quot;:&quot;\ufe32&quot;,&quot;\u2014&quot;:&quot;\ufe31&quot;,&quot;\u2018&quot;:&quot;\ufe43&quot;,&quot;\u2019&quot;:&quot;\ufe44&quot;,&quot;\u201c&quot;:&quot;\ufe41&quot;,&quot;\u201d&quot;:&quot;\ufe42&quot;,&quot;\u2026&quot;:&quot;\ufe19&quot;,&quot;\u2027&quot;:&quot;\u30fb&quot;,&quot;\u20a9&quot;:&quot;\uffe6&quot;,&quot;\u3001&quot;:&quot;\ufe11&quot;,&quot;\u3002&quot;:&quot;\ufe12&quot;,&quot;\u3008&quot;:&quot;\ufe3f&quot;,&quot;\u3009&quot;:&quot;\ufe40&quot;,&quot;\u300a&quot;:&quot;\ufe3d&quot;,&quot;\u300b&quot;:&quot;\ufe3e&quot;,&quot;\u300c&quot;:&quot;\ufe41&quot;,&quot;\u300d&quot;:&quot;\ufe42&quot;,&quot;\u300e&quot;:&quot;\ufe43&quot;,&quot;\u300f&quot;:&quot;\ufe44&quot;,&quot;\u3010&quot;:&quot;\ufe3b&quot;,&quot;\u3011&quot;:&quot;\ufe3c&quot;,&quot;\u3014&quot;:&quot;\ufe39&quot;,&quot;\u3015&quot;:&quot;\ufe3a&quot;,&quot;\u3016&quot;:&quot;\ufe17&quot;,&quot;\u3017&quot;:&quot;\ufe18&quot;,&quot;\uff01&quot;:&quot;\ufe15&quot;,&quot;\uff08&quot;:&quot;\ufe35&quot;,&quot;\uff09&quot;:&quot;\ufe36&quot;,&quot;\uff0c&quot;:&quot;\ufe10&quot;,&quot;\uff0d&quot;:&quot;\ufe32&quot;,&quot;\uff0e&quot;:&quot;\u30fb&quot;,&quot;\uff1a&quot;:&quot;\ufe13&quot;,&quot;\uff1b&quot;:&quot;\ufe14&quot;,&quot;\uff1c&quot;:&quot;\ufe3f&quot;,&quot;\uff1e&quot;:&quot;\ufe40&quot;,&quot;\uff1f&quot;:&quot;\ufe16&quot;,&quot;\uff3b&quot;:&quot;\ufe47&quot;,&quot;\uff3d&quot;:&quot;\ufe48&quot;,&quot;\uff3f&quot;:&quot;\ufe33&quot;,&quot;\uff5b&quot;:&quot;\ufe37&quot;,&quot;\uff5c&quot;:&quot;\u2015&quot;,&quot;\uff5d&quot;:&quot;\ufe38&quot;,&quot;\uff5f&quot;:&quot;\ufe35&quot;,&quot;\uff60&quot;:&quot;\ufe36&quot;,&quot;\uff61&quot;:&quot;\ufe12&quot;,&quot;\uff62&quot;:&quot;\ufe41&quot;,&quot;\uff63&quot;:&quot;\ufe42&quot;},Vs=function(t,e,r,n,i){var a,o,s=8*i-n-1,l=(1&lt;&lt;s)-1,c=l&gt;&gt;1,u=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,a=p&amp;(1&lt;&lt;-u)-1,p&gt;&gt;=-u,u+=s;u&gt;0;a=256*a+t[e+f],f+=h,u-=8);for(o=a&amp;(1&lt;&lt;-u)-1,a&gt;&gt;=-u,u+=n;u&gt;0;o=256*o+t[e+f],f+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return o?NaN:1/0*(p?-1:1);o+=Math.pow(2,n),a-=c}return(p?-1:1)*o*Math.pow(2,a-n)},qs=function(t,e,r,n,i,a){var o,s,l,c=8*a-i-1,u=(1&lt;&lt;c)-1,f=u&gt;&gt;1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:a-1,d=n?1:-1,g=e&lt;0||0===e&amp;&amp;1/e&lt;0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,o=u):(o=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-o))&lt;1&amp;&amp;(o--,l*=2),(e+=o+f&gt;=1?h/l:h*Math.pow(2,1-f))*l&gt;=2&amp;&amp;(o++,l/=2),o+f&gt;=u?(s=0,o=u):o+f&gt;=1?(s=(e*l-1)*Math.pow(2,i),o+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),o=0));i&gt;=8;t[r+p]=255&amp;s,p+=d,s/=256,i-=8);for(o=o&lt;&lt;i|s,c+=i;c&gt;0;t[r+p]=255&amp;o,p+=d,o/=256,c-=8);t[r+p-d]|=128*g},Hs=Gs;function Gs(t){this.buf=ArrayBuffer.isView&amp;&amp;ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}Gs.Varint=0,Gs.Fixed64=1,Gs.Bytes=2,Gs.Fixed32=5;var Ys=&quot;undefined&quot;==typeof TextDecoder?null:new TextDecoder(&quot;utf8&quot;);function Ws(t){return t.type===Gs.Bytes?t.readVarint()+t.pos:t.pos+1}function Xs(t,e,r){return r?4294967296*e+(t&gt;&gt;&gt;0):4294967296*(e&gt;&gt;&gt;0)+(t&gt;&gt;&gt;0)}function Zs(t,e,r){var n=e&lt;=16383?1:e&lt;=2097151?2:e&lt;=268435455?3:Math.floor(Math.log(e)/(7*Math.LN2));r.realloc(n);for(var i=r.pos-1;i&gt;=t;i--)r.buf[i+n]=r.buf[i]}function Js(t,e){for(var r=0;r&lt;t.length;r++)e.writeVarint(t[r])}function Ks(t,e){for(var r=0;r&lt;t.length;r++)e.writeSVarint(t[r])}function Qs(t,e){for(var r=0;r&lt;t.length;r++)e.writeFloat(t[r])}function $s(t,e){for(var r=0;r&lt;t.length;r++)e.writeDouble(t[r])}function tl(t,e){for(var r=0;r&lt;t.length;r++)e.writeBoolean(t[r])}function el(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed32(t[r])}function rl(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed32(t[r])}function nl(t,e){for(var r=0;r&lt;t.length;r++)e.writeFixed64(t[r])}function il(t,e){for(var r=0;r&lt;t.length;r++)e.writeSFixed64(t[r])}function al(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+16777216*t[e+3]}function ol(t,e,r){t[r]=e,t[r+1]=e&gt;&gt;&gt;8,t[r+2]=e&gt;&gt;&gt;16,t[r+3]=e&gt;&gt;&gt;24}function sl(t,e){return(t[e]|t[e+1]&lt;&lt;8|t[e+2]&lt;&lt;16)+(t[e+3]&lt;&lt;24)}function ll(t,e,r){1===t&amp;&amp;r.readMessage(cl,e)}function cl(t,e,r){if(3===t){var n=r.readMessage(ul,{}),i=n.width,a=n.height,o=n.left,s=n.top,l=n.advance;e.push({id:n.id,bitmap:new ho({width:i+6,height:a+6},n.bitmap),metrics:{width:i,height:a,left:o,top:s,advance:l}})}}function ul(t,e,r){1===t?e.id=r.readVarint():2===t?e.bitmap=r.readBytes():3===t?e.width=r.readVarint():4===t?e.height=r.readVarint():5===t?e.left=r.readSVarint():6===t?e.top=r.readSVarint():7===t&amp;&amp;(e.advance=r.readVarint())}function fl(t){for(var e=0,r=0,n=0,i=t;n&lt;i.length;n+=1){var a=i[n];e+=a.w*a.h,r=Math.max(r,a.w)}t.sort((function(t,e){return e.h-t.h}));for(var o=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(e/.95)),r),h:1/0}],s=0,l=0,c=0,u=t;c&lt;u.length;c+=1)for(var f=u[c],h=o.length-1;h&gt;=0;h--){var p=o[h];if(!(f.w&gt;p.w||f.h&gt;p.h)){if(f.x=p.x,f.y=p.y,l=Math.max(l,f.y+f.h),s=Math.max(s,f.x+f.w),f.w===p.w&amp;&amp;f.h===p.h){var d=o.pop();h&lt;o.length&amp;&amp;(o[h]=d)}else f.h===p.h?(p.x+=f.w,p.w-=f.w):f.w===p.w?(p.y+=f.h,p.h-=f.h):(o.push({x:p.x+f.w,y:p.y,w:p.w-f.w,h:f.h}),p.y+=f.h,p.h-=f.h);break}}return{w:s,h:l,fill:e/(s*l)||0}}Gs.prototype={destroy:function(){this.buf=null},readFields:function(t,e,r){for(r=r||this.length;this.pos&lt;r;){var n=this.readVarint(),i=n&gt;&gt;3,a=this.pos;this.type=7&amp;n,t(i,e,this),this.pos===a&amp;&amp;this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=al(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=sl(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=al(this.buf,this.pos)+4294967296*al(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=al(this.buf,this.pos)+4294967296*sl(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=Vs(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=Vs(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,r,n=this.buf;return e=127&amp;(r=n[this.pos++]),r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;7,r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;14,r&lt;128?e:(e|=(127&amp;(r=n[this.pos++]))&lt;&lt;21,r&lt;128?e:function(t,e,r){var n,i,a=r.buf;if(n=(112&amp;(i=a[r.pos++]))&gt;&gt;4,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;3,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;10,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;17,i&lt;128)return Xs(t,n,e);if(n|=(127&amp;(i=a[r.pos++]))&lt;&lt;24,i&lt;128)return Xs(t,n,e);if(n|=(1&amp;(i=a[r.pos++]))&lt;&lt;31,i&lt;128)return Xs(t,n,e);throw new Error(&quot;Expected varint not more than 10 bytes&quot;)}(e|=(15&amp;(r=n[this.pos]))&lt;&lt;28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=this.pos;return this.pos=t,t-e&gt;=12&amp;&amp;Ys?function(t,e,r){return Ys.decode(t.subarray(e,r))}(this.buf,e,t):function(t,e,r){for(var n=&quot;&quot;,i=e;i&lt;r;){var a,o,s,l=t[i],c=null,u=l&gt;239?4:l&gt;223?3:l&gt;191?2:1;if(i+u&gt;r)break;1===u?l&lt;128&amp;&amp;(c=l):2===u?128==(192&amp;(a=t[i+1]))&amp;&amp;(c=(31&amp;l)&lt;&lt;6|63&amp;a)&lt;=127&amp;&amp;(c=null):3===u?(o=t[i+2],128==(192&amp;(a=t[i+1]))&amp;&amp;128==(192&amp;o)&amp;&amp;((c=(15&amp;l)&lt;&lt;12|(63&amp;a)&lt;&lt;6|63&amp;o)&lt;=2047||c&gt;=55296&amp;&amp;c&lt;=57343)&amp;&amp;(c=null)):4===u&amp;&amp;(o=t[i+2],s=t[i+3],128==(192&amp;(a=t[i+1]))&amp;&amp;128==(192&amp;o)&amp;&amp;128==(192&amp;s)&amp;&amp;((c=(15&amp;l)&lt;&lt;18|(63&amp;a)&lt;&lt;12|(63&amp;o)&lt;&lt;6|63&amp;s)&lt;=65535||c&gt;=1114112)&amp;&amp;(c=null)),null===c?(c=65533,u=1):c&gt;65535&amp;&amp;(c-=65536,n+=String.fromCharCode(c&gt;&gt;&gt;10&amp;1023|55296),c=56320|1023&amp;c),n+=String.fromCharCode(c),i+=u}return n}(this.buf,e,t)},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){if(this.type!==Gs.Bytes)return t.push(this.readVarint(e));var r=Ws(this);for(t=t||[];this.pos&lt;r;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){if(this.type!==Gs.Bytes)return t.push(this.readSVarint());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){if(this.type!==Gs.Bytes)return t.push(this.readBoolean());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){if(this.type!==Gs.Bytes)return t.push(this.readFloat());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFloat());return t},readPackedDouble:function(t){if(this.type!==Gs.Bytes)return t.push(this.readDouble());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){if(this.type!==Gs.Bytes)return t.push(this.readFixed32());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){if(this.type!==Gs.Bytes)return t.push(this.readSFixed32());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){if(this.type!==Gs.Bytes)return t.push(this.readFixed64());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){if(this.type!==Gs.Bytes)return t.push(this.readSFixed64());var e=Ws(this);for(t=t||[];this.pos&lt;e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&amp;t;if(e===Gs.Varint)for(;this.buf[this.pos++]&gt;127;);else if(e===Gs.Bytes)this.pos=this.readVarint()+this.pos;else if(e===Gs.Fixed32)this.pos+=4;else{if(e!==Gs.Fixed64)throw new Error(&quot;Unimplemented type: &quot;+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t&lt;&lt;3|e)},realloc:function(t){for(var e=this.length||16;e&lt;this.pos+t;)e*=2;if(e!==this.length){var r=new Uint8Array(e);r.set(this.buf),this.buf=r,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),ol(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),ol(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),ol(this.buf,-1&amp;t,this.pos),ol(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),ol(this.buf,-1&amp;t,this.pos),ol(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)&gt;268435455||t&lt;0?function(t,e){var r,n;if(t&gt;=0?(r=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(r=~(-t%4294967296))?r=r+1|0:(r=0,n=n+1|0)),t&gt;=0x10000000000000000||t&lt;-0x10000000000000000)throw new Error(&quot;Given varint doesn't fit into 10 bytes&quot;);e.realloc(10),function(t,e,r){r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,t&gt;&gt;&gt;=7,r.buf[r.pos++]=127&amp;t|128,r.buf[r.pos]=127&amp;(t&gt;&gt;&gt;=7)}(r,0,e),function(t,e){var r=(7&amp;t)&lt;&lt;4;e.buf[e.pos++]|=r|((t&gt;&gt;&gt;=3)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t|((t&gt;&gt;&gt;=7)?128:0),t&amp;&amp;(e.buf[e.pos++]=127&amp;t)))))}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&amp;t|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=127&amp;(t&gt;&gt;&gt;=7)|(t&gt;127?128:0),t&lt;=127||(this.buf[this.pos++]=t&gt;&gt;&gt;7&amp;127))))},writeSVarint:function(t){this.writeVarint(t&lt;0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,r){for(var n,i,a=0;a&lt;e.length;a++){if((n=e.charCodeAt(a))&gt;55295&amp;&amp;n&lt;57344){if(!i){n&gt;56319||a+1===e.length?(t[r++]=239,t[r++]=191,t[r++]=189):i=n;continue}if(n&lt;56320){t[r++]=239,t[r++]=191,t[r++]=189,i=n;continue}n=i-55296&lt;&lt;10|n-56320|65536,i=null}else i&amp;&amp;(t[r++]=239,t[r++]=191,t[r++]=189,i=null);n&lt;128?t[r++]=n:(n&lt;2048?t[r++]=n&gt;&gt;6|192:(n&lt;65536?t[r++]=n&gt;&gt;12|224:(t[r++]=n&gt;&gt;18|240,t[r++]=n&gt;&gt;12&amp;63|128),t[r++]=n&gt;&gt;6&amp;63|128),t[r++]=63&amp;n|128)}return r}(this.buf,t,this.pos);var r=this.pos-e;r&gt;=128&amp;&amp;Zs(e,r,this),this.pos=e-1,this.writeVarint(r),this.pos+=r},writeFloat:function(t){this.realloc(4),qs(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),qs(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var r=0;r&lt;e;r++)this.buf[this.pos++]=t[r]},writeRawMessage:function(t,e){this.pos++;var r=this.pos;t(e,this);var n=this.pos-r;n&gt;=128&amp;&amp;Zs(r,n,this),this.pos=r-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,r){this.writeTag(t,Gs.Bytes),this.writeRawMessage(e,r)},writePackedVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,Js,e)},writePackedSVarint:function(t,e){e.length&amp;&amp;this.writeMessage(t,Ks,e)},writePackedBoolean:function(t,e){e.length&amp;&amp;this.writeMessage(t,tl,e)},writePackedFloat:function(t,e){e.length&amp;&amp;this.writeMessage(t,Qs,e)},writePackedDouble:function(t,e){e.length&amp;&amp;this.writeMessage(t,$s,e)},writePackedFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,el,e)},writePackedSFixed32:function(t,e){e.length&amp;&amp;this.writeMessage(t,rl,e)},writePackedFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,nl,e)},writePackedSFixed64:function(t,e){e.length&amp;&amp;this.writeMessage(t,il,e)},writeBytesField:function(t,e){this.writeTag(t,Gs.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,Gs.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,Gs.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,Gs.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,Gs.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,Gs.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,Gs.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,Gs.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,Gs.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,Gs.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}};var hl=function(t,e){var r=e.pixelRatio,n=e.version,i=e.stretchX,a=e.stretchY,o=e.content;this.paddedRect=t,this.pixelRatio=r,this.stretchX=i,this.stretchY=a,this.content=o,this.version=n},pl={tl:{configurable:!0},br:{configurable:!0},tlbr:{configurable:!0},displaySize:{configurable:!0}};pl.tl.get=function(){return[this.paddedRect.x+1,this.paddedRect.y+1]},pl.br.get=function(){return[this.paddedRect.x+this.paddedRect.w-1,this.paddedRect.y+this.paddedRect.h-1]},pl.tlbr.get=function(){return this.tl.concat(this.br)},pl.displaySize.get=function(){return[(this.paddedRect.w-2)/this.pixelRatio,(this.paddedRect.h-2)/this.pixelRatio]},Object.defineProperties(hl.prototype,pl);var dl=function(t,e){var r={},n={};this.haveRenderCallbacks=[];var i=[];this.addImages(t,r,i),this.addImages(e,n,i);var a=fl(i),o=new po({width:a.w||1,height:a.h||1});for(var s in t){var l=t[s],c=r[s].paddedRect;po.copy(l.data,o,{x:0,y:0},{x:c.x+1,y:c.y+1},l.data)}for(var u in e){var f=e[u],h=n[u].paddedRect,p=h.x+1,d=h.y+1,g=f.data.width,m=f.data.height;po.copy(f.data,o,{x:0,y:0},{x:p,y:d},f.data),po.copy(f.data,o,{x:0,y:m-1},{x:p,y:d-1},{width:g,height:1}),po.copy(f.data,o,{x:0,y:0},{x:p,y:d+m},{width:g,height:1}),po.copy(f.data,o,{x:g-1,y:0},{x:p-1,y:d},{width:1,height:m}),po.copy(f.data,o,{x:0,y:0},{x:p+g,y:d},{width:1,height:m})}this.image=o,this.iconPositions=r,this.patternPositions=n};dl.prototype.addImages=function(t,e,r){for(var n in t){var i=t[n],a={x:0,y:0,w:i.data.width+2,h:i.data.height+2};r.push(a),e[n]=new hl(a,i),i.hasRenderCallback&amp;&amp;this.haveRenderCallbacks.push(n)}},dl.prototype.patchUpdatedImages=function(t,e){for(var r in t.dispatchRenderCallbacks(this.haveRenderCallbacks),t.updatedImages)this.patchUpdatedImage(this.iconPositions[r],t.getImage(r),e),this.patchUpdatedImage(this.patternPositions[r],t.getImage(r),e)},dl.prototype.patchUpdatedImage=function(t,e,r){if(t&amp;&amp;e&amp;&amp;t.version!==e.version){t.version=e.version;var n=t.tl;r.update(e.data,void 0,{x:n[0],y:n[1]})}},Dn(&quot;ImagePosition&quot;,hl),Dn(&quot;ImageAtlas&quot;,dl);var gl={horizontal:1,vertical:2,horizontalOnly:3},ml=function(){this.scale=1,this.fontStack=&quot;&quot;,this.imageName=null};ml.forText=function(t,e){var r=new ml;return r.scale=t||1,r.fontStack=e,r},ml.forImage=function(t){var e=new ml;return e.imageName=t,e};var vl=function(){this.text=&quot;&quot;,this.sectionIndex=[],this.sections=[],this.imageSectionID=null};function yl(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g){var m,v=vl.fromFeature(t,i);f===gl.vertical&amp;&amp;v.verticalizePunctuation();var y=ni.processBidirectionalText,x=ni.processStyledBidirectionalText;if(y&amp;&amp;1===v.sections.length){m=[];for(var b=0,_=y(v.toString(),Ml(v,c,a,e,n,p,d));b&lt;_.length;b+=1){var w=_[b],T=new vl;T.text=w,T.sections=v.sections;for(var k=0;k&lt;w.length;k++)T.sectionIndex.push(0);m.push(T)}}else if(x){m=[];for(var M=0,A=x(v.text,v.sectionIndex,Ml(v,c,a,e,n,p,d));M&lt;A.length;M+=1){var S=A[M],E=new vl;E.text=S[0],E.sectionIndex=S[1],E.sections=v.sections,m.push(E)}}else m=function(t,e){for(var r=[],n=t.text,i=0,a=0,o=e;a&lt;o.length;a+=1){var s=o[a];r.push(t.substring(i,s)),i=s}return i&lt;n.length&amp;&amp;r.push(t.substring(i,n.length)),r}(v,Ml(v,c,a,e,n,p,d));var C=[],L={positionedLines:C,text:v.toString(),top:u[1],bottom:u[1],left:u[0],right:u[0],writingMode:f,iconsInText:!1,verticalizable:!1};return function(t,e,r,n,i,a,o,s,l,c,u,f){for(var h=0,p=-17,d=0,g=0,m=&quot;right&quot;===s?1:&quot;left&quot;===s?0:.5,v=0,y=0,x=i;y&lt;x.length;y+=1){var b=x[y];b.trim();var _=b.getMaxScale(),w=24*(_-1),T={positionedGlyphs:[],lineOffset:0};t.positionedLines[v]=T;var k=T.positionedGlyphs,M=0;if(b.length()){for(var A=0;A&lt;b.length();A++){var S=b.getSection(A),E=b.getSectionIndex(A),C=b.getCharCode(A),L=0,I=null,P=null,z=null,O=24,D=!(l===gl.horizontal||!u&amp;&amp;!Hn(C)||u&amp;&amp;(xl[C]||(H=C,Vn.Arabic(H)||Vn[&quot;Arabic Supplement&quot;](H)||Vn[&quot;Arabic Extended-A&quot;](H)||Vn[&quot;Arabic Presentation Forms-A&quot;](H)||Vn[&quot;Arabic Presentation Forms-B&quot;](H))));if(S.imageName){var R=n[S.imageName];if(!R)continue;z=S.imageName,t.iconsInText=t.iconsInText||!0,P=R.paddedRect;var F=R.displaySize;S.scale=24*S.scale/f,L=w+(24-F[1]*S.scale),O=(I={width:F[0],height:F[1],left:1,top:-3,advance:D?F[1]:F[0]}).advance;var B=D?F[0]*S.scale-24*_:F[1]*S.scale-24*_;B&gt;0&amp;&amp;B&gt;M&amp;&amp;(M=B)}else{var N=r[S.fontStack],j=N&amp;&amp;N[C];if(j&amp;&amp;j.rect)P=j.rect,I=j.metrics;else{var U=e[S.fontStack],V=U&amp;&amp;U[C];if(!V)continue;I=V.metrics}L=24*(_-S.scale)}D?(t.verticalizable=!0,k.push({glyph:C,imageName:z,x:h,y:p+L,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:I,rect:P}),h+=O*S.scale+c):(k.push({glyph:C,imageName:z,x:h,y:p+L,vertical:D,scale:S.scale,fontStack:S.fontStack,sectionIndex:E,metrics:I,rect:P}),h+=I.advance*S.scale+c)}0!==k.length&amp;&amp;(d=Math.max(h-c,d),Sl(k,0,k.length-1,m,M)),h=0;var q=a*_+M;T.lineOffset=Math.max(M,w),p+=q,g=Math.max(q,g),++v}else p+=a,++v}var H,G=p- -17,Y=Al(o),W=Y.horizontalAlign,X=Y.verticalAlign;(function(t,e,r,n,i,a,o,s,l){var c,u=(e-r)*i;c=a!==o?-s*n- -17:(-n*l+.5)*o;for(var f=0,h=t;f&lt;h.length;f+=1)for(var p=0,d=h[f].positionedGlyphs;p&lt;d.length;p+=1){var g=d[p];g.x+=u,g.y+=c}})(t.positionedLines,m,W,X,d,g,a,G,i.length),t.top+=-X*G,t.bottom=t.top+G,t.left+=-W*d,t.right=t.left+d}(L,e,r,n,m,o,s,l,f,c,h,g),!function(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(0!==r[e].positionedGlyphs.length)return!1;return!0}(C)&amp;&amp;L}vl.fromFeature=function(t,e){for(var r=new vl,n=0;n&lt;t.sections.length;n++){var i=t.sections[n];i.image?r.addImageSection(i):r.addTextSection(i,e)}return r},vl.prototype.length=function(){return this.text.length},vl.prototype.getSection=function(t){return this.sections[this.sectionIndex[t]]},vl.prototype.getSectionIndex=function(t){return this.sectionIndex[t]},vl.prototype.getCharCode=function(t){return this.text.charCodeAt(t)},vl.prototype.verticalizePunctuation=function(){this.text=function(t){for(var e=&quot;&quot;,r=0;r&lt;t.length;r++){var n=t.charCodeAt(r+1)||null,i=t.charCodeAt(r-1)||null;e+=n&amp;&amp;Gn(n)&amp;&amp;!Us[t[r+1]]||i&amp;&amp;Gn(i)&amp;&amp;!Us[t[r-1]]||!Us[t[r]]?t[r]:Us[t[r]]}return e}(this.text)},vl.prototype.trim=function(){for(var t=0,e=0;e&lt;this.text.length&amp;&amp;xl[this.text.charCodeAt(e)];e++)t++;for(var r=this.text.length,n=this.text.length-1;n&gt;=0&amp;&amp;n&gt;=t&amp;&amp;xl[this.text.charCodeAt(n)];n--)r--;this.text=this.text.substring(t,r),this.sectionIndex=this.sectionIndex.slice(t,r)},vl.prototype.substring=function(t,e){var r=new vl;return r.text=this.text.substring(t,e),r.sectionIndex=this.sectionIndex.slice(t,e),r.sections=this.sections,r},vl.prototype.toString=function(){return this.text},vl.prototype.getMaxScale=function(){var t=this;return this.sectionIndex.reduce((function(e,r){return Math.max(e,t.sections[r].scale)}),0)},vl.prototype.addTextSection=function(t,e){this.text+=t.text,this.sections.push(ml.forText(t.scale,t.fontStack||e));for(var r=this.sections.length-1,n=0;n&lt;t.text.length;++n)this.sectionIndex.push(r)},vl.prototype.addImageSection=function(t){var e=t.image?t.image.name:&quot;&quot;;if(0!==e.length){var r=this.getNextImageSectionCharCode();r?(this.text+=String.fromCharCode(r),this.sections.push(ml.forImage(e)),this.sectionIndex.push(this.sections.length-1)):_(&quot;Reached maximum number of images 6401&quot;)}else _(&quot;Can't add FormattedSection with an empty image.&quot;)},vl.prototype.getNextImageSectionCharCode=function(){return this.imageSectionID?this.imageSectionID&gt;=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)};var xl={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},bl={};function _l(t,e,r,n,i,a){if(e.imageName){var o=n[e.imageName];return o?o.displaySize[0]*e.scale*24/a+i:0}var s=r[e.fontStack],l=s&amp;&amp;s[t];return l?l.metrics.advance*e.scale+i:0}function wl(t,e,r,n){var i=Math.pow(t-e,2);return n?t&lt;e?i/2:2*i:i+Math.abs(r)*r}function Tl(t,e,r){var n=0;return 10===t&amp;&amp;(n-=1e4),r&amp;&amp;(n+=150),40!==t&amp;&amp;65288!==t||(n+=50),41!==e&amp;&amp;65289!==e||(n+=50),n}function kl(t,e,r,n,i,a){for(var o=null,s=wl(e,r,i,a),l=0,c=n;l&lt;c.length;l+=1){var u=c[l],f=wl(e-u.x,r,i,a)+u.badness;f&lt;=s&amp;&amp;(o=u,s=f)}return{index:t,x:e,priorBreak:o,badness:s}}function Ml(t,e,r,n,i,a,o){if(&quot;point&quot;!==a)return[];if(!t)return[];for(var s,l=[],c=function(t,e,r,n,i,a){for(var o=0,s=0;s&lt;t.length();s++){var l=t.getSection(s);o+=_l(t.getCharCode(s),l,n,i,e,a)}return o/Math.max(1,Math.ceil(o/r))}(t,e,r,n,i,o),u=t.text.indexOf(&quot;\u200b&quot;)&gt;=0,f=0,h=0;h&lt;t.length();h++){var p=t.getSection(h),d=t.getCharCode(h);if(xl[d]||(f+=_l(d,p,n,i,e,o)),h&lt;t.length()-1){var g=!((s=d)&lt;11904||!(Vn[&quot;Bopomofo Extended&quot;](s)||Vn.Bopomofo(s)||Vn[&quot;CJK Compatibility Forms&quot;](s)||Vn[&quot;CJK Compatibility Ideographs&quot;](s)||Vn[&quot;CJK Compatibility&quot;](s)||Vn[&quot;CJK Radicals Supplement&quot;](s)||Vn[&quot;CJK Strokes&quot;](s)||Vn[&quot;CJK Symbols and Punctuation&quot;](s)||Vn[&quot;CJK Unified Ideographs Extension A&quot;](s)||Vn[&quot;CJK Unified Ideographs&quot;](s)||Vn[&quot;Enclosed CJK Letters and Months&quot;](s)||Vn[&quot;Halfwidth and Fullwidth Forms&quot;](s)||Vn.Hiragana(s)||Vn[&quot;Ideographic Description Characters&quot;](s)||Vn[&quot;Kangxi Radicals&quot;](s)||Vn[&quot;Katakana Phonetic Extensions&quot;](s)||Vn.Katakana(s)||Vn[&quot;Vertical Forms&quot;](s)||Vn[&quot;Yi Radicals&quot;](s)||Vn[&quot;Yi Syllables&quot;](s)));(bl[d]||g||p.imageName)&amp;&amp;l.push(kl(h+1,f,c,l,Tl(d,t.getCharCode(h+1),g&amp;&amp;u),!1))}}return function t(e){return e?t(e.priorBreak).concat(e.index):[]}(kl(t.length(),f,c,l,0,!0))}function Al(t){var e=.5,r=.5;switch(t){case&quot;right&quot;:case&quot;top-right&quot;:case&quot;bottom-right&quot;:e=1;break;case&quot;left&quot;:case&quot;top-left&quot;:case&quot;bottom-left&quot;:e=0}switch(t){case&quot;bottom&quot;:case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:r=1;break;case&quot;top&quot;:case&quot;top-right&quot;:case&quot;top-left&quot;:r=0}return{horizontalAlign:e,verticalAlign:r}}function Sl(t,e,r,n,i){if(n||i)for(var a=t[r],o=(t[r].x+a.metrics.advance*a.scale)*n,s=e;s&lt;=r;s++)t[s].x-=o,t[s].y+=i}function El(t,e,r,n,i,a){var o,s=t.image;if(s.content){var l=s.content,c=s.pixelRatio||1;o=[l[0]/c,l[1]/c,s.displaySize[0]-l[2]/c,s.displaySize[1]-l[3]/c]}var u,f,h,p,d=e.left*a,g=e.right*a;&quot;width&quot;===r||&quot;both&quot;===r?(p=i[0]+d-n[3],f=i[0]+g+n[1]):f=(p=i[0]+(d+g-s.displaySize[0])/2)+s.displaySize[0];var m=e.top*a,v=e.bottom*a;return&quot;height&quot;===r||&quot;both&quot;===r?(u=i[1]+m-n[0],h=i[1]+v+n[2]):h=(u=i[1]+(m+v-s.displaySize[1])/2)+s.displaySize[1],{image:s,top:u,right:f,bottom:h,left:p,collisionPadding:o}}bl[10]=!0,bl[32]=!0,bl[38]=!0,bl[40]=!0,bl[41]=!0,bl[43]=!0,bl[45]=!0,bl[47]=!0,bl[173]=!0,bl[183]=!0,bl[8203]=!0,bl[8208]=!0,bl[8211]=!0,bl[8231]=!0;var Cl=function(t){function e(e,r,n,i){t.call(this,e,r),this.angle=n,void 0!==i&amp;&amp;(this.segment=i)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.clone=function(){return new e(this.x,this.y,this.angle,this.segment)},e}(i);function Ll(t,e){var r=e.expression;if(&quot;constant&quot;===r.kind)return{kind:&quot;constant&quot;,layoutSize:r.evaluate(new ii(t+1))};if(&quot;source&quot;===r.kind)return{kind:&quot;source&quot;};for(var n=r.zoomStops,i=r.interpolationType,a=0;a&lt;n.length&amp;&amp;n[a]&lt;=t;)a++;for(var o=a=Math.max(0,a-1);o&lt;n.length&amp;&amp;n[o]&lt;t+1;)o++;o=Math.min(n.length-1,o);var s=n[a],l=n[o];return&quot;composite&quot;===r.kind?{kind:&quot;composite&quot;,minZoom:s,maxZoom:l,interpolationType:i}:{kind:&quot;camera&quot;,minZoom:s,maxZoom:l,minSize:r.evaluate(new ii(s)),maxSize:r.evaluate(new ii(l)),interpolationType:i}}function Il(t,e,r){var n=e.uSize,i=r.lowerSize;return&quot;source&quot;===t.kind?i/128:&quot;composite&quot;===t.kind?Ue(i/128,r.upperSize/128,e.uSizeT):n}function Pl(t,e){var r=0,n=0;if(&quot;constant&quot;===t.kind)n=t.layoutSize;else if(&quot;source&quot;!==t.kind){var i=t.interpolationType,a=i?l(rr.interpolationFactor(i,e,t.minZoom,t.maxZoom),0,1):0;&quot;camera&quot;===t.kind?n=Ue(t.minSize,t.maxSize,a):r=a}return{uSizeT:r,uSize:n}}Dn(&quot;Anchor&quot;,Cl);var zl=Object.freeze({__proto__:null,getSizeData:Ll,evaluateSizeForFeature:Il,evaluateSizeForZoom:Pl,SIZE_PACK_FACTOR:128});function Ol(t,e,r,n,i){if(void 0===e.segment)return!0;for(var a=e,o=e.segment+1,s=0;s&gt;-r/2;){if(--o&lt;0)return!1;s-=t[o].dist(a),a=t[o]}s+=t[o].dist(t[o+1]),o++;for(var l=[],c=0;s&lt;r/2;){var u=t[o],f=t[o+1];if(!f)return!1;var h=t[o-1].angleTo(u)-u.angleTo(f);for(h=Math.abs((h+3*Math.PI)%(2*Math.PI)-Math.PI),l.push({distance:s,angleDelta:h}),c+=h;s-l[0].distance&gt;n;)c-=l.shift().angleDelta;if(c&gt;i)return!1;o++,s+=u.dist(f)}return!0}function Dl(t){for(var e=0,r=0;r&lt;t.length-1;r++)e+=t[r].dist(t[r+1]);return e}function Rl(t,e,r){return t?.6*e*r:0}function Fl(t,e){return Math.max(t?t.right-t.left:0,e?e.right-e.left:0)}function Bl(t,e,r,n,i,a){for(var o=Rl(r,i,a),s=Fl(r,n)*a,l=0,c=Dl(t)/2,u=0;u&lt;t.length-1;u++){var f=t[u],h=t[u+1],p=f.dist(h);if(l+p&gt;c){var d=(c-l)/p,g=Ue(f.x,h.x,d),m=Ue(f.y,h.y,d),v=new Cl(g,m,h.angleTo(f),u);return v._round(),!o||Ol(t,v,s,o,e)?v:void 0}l+=p}}function Nl(t,e,r,n,i,a,o,s,l){var c=Rl(n,a,o),u=Fl(n,i),f=u*o,h=0===t[0].x||t[0].x===l||0===t[0].y||t[0].y===l;return e-f&lt;e/4&amp;&amp;(e=f+e/4),function t(e,r,n,i,a,o,s,l,c){for(var u=o/2,f=Dl(e),h=0,p=r-n,d=[],g=0;g&lt;e.length-1;g++){for(var m=e[g],v=e[g+1],y=m.dist(v),x=v.angleTo(m);p+n&lt;h+y;){var b=((p+=n)-h)/y,_=Ue(m.x,v.x,b),w=Ue(m.y,v.y,b);if(_&gt;=0&amp;&amp;_&lt;c&amp;&amp;w&gt;=0&amp;&amp;w&lt;c&amp;&amp;p-u&gt;=0&amp;&amp;p+u&lt;=f){var T=new Cl(_,w,x,g);T._round(),i&amp;&amp;!Ol(e,T,o,i,a)||d.push(T)}}h+=y}return l||d.length||s||(d=t(e,h/2,n,i,a,o,s,!0,c)),d}(t,h?e/2*s%e:(u/2+2*a)*o*s%e,e,c,r,f,h,!1,l)}function jl(t,e,r,n,a){for(var o=[],s=0;s&lt;t.length;s++)for(var l=t[s],c=void 0,u=0;u&lt;l.length-1;u++){var f=l[u],h=l[u+1];f.x&lt;e&amp;&amp;h.x&lt;e||(f.x&lt;e?f=new i(e,f.y+(e-f.x)/(h.x-f.x)*(h.y-f.y))._round():h.x&lt;e&amp;&amp;(h=new i(e,f.y+(e-f.x)/(h.x-f.x)*(h.y-f.y))._round()),f.y&lt;r&amp;&amp;h.y&lt;r||(f.y&lt;r?f=new i(f.x+(r-f.y)/(h.y-f.y)*(h.x-f.x),r)._round():h.y&lt;r&amp;&amp;(h=new i(f.x+(r-f.y)/(h.y-f.y)*(h.x-f.x),r)._round()),f.x&gt;=n&amp;&amp;h.x&gt;=n||(f.x&gt;=n?f=new i(n,f.y+(n-f.x)/(h.x-f.x)*(h.y-f.y))._round():h.x&gt;=n&amp;&amp;(h=new i(n,f.y+(n-f.x)/(h.x-f.x)*(h.y-f.y))._round()),f.y&gt;=a&amp;&amp;h.y&gt;=a||(f.y&gt;=a?f=new i(f.x+(a-f.y)/(h.y-f.y)*(h.x-f.x),a)._round():h.y&gt;=a&amp;&amp;(h=new i(f.x+(a-f.y)/(h.y-f.y)*(h.x-f.x),a)._round()),c&amp;&amp;f.equals(c[c.length-1])||o.push(c=[f]),c.push(h)))))}return o}function Ul(t,e,r,n){var a=[],o=t.image,s=o.pixelRatio,l=o.paddedRect.w-2,c=o.paddedRect.h-2,u=t.right-t.left,f=t.bottom-t.top,h=o.stretchX||[[0,l]],p=o.stretchY||[[0,c]],d=function(t,e){return t+e[1]-e[0]},g=h.reduce(d,0),m=p.reduce(d,0),v=l-g,y=c-m,x=0,b=g,_=0,w=m,T=0,k=v,M=0,A=y;if(o.content&amp;&amp;n){var S=o.content;x=Vl(h,0,S[0]),_=Vl(p,0,S[1]),b=Vl(h,S[0],S[2]),w=Vl(p,S[1],S[3]),T=S[0]-x,M=S[1]-_,k=S[2]-S[0]-b,A=S[3]-S[1]-w}var E=function(n,a,l,c){var h=Hl(n.stretch-x,b,u,t.left),p=Gl(n.fixed-T,k,n.stretch,g),d=Hl(a.stretch-_,w,f,t.top),v=Gl(a.fixed-M,A,a.stretch,m),y=Hl(l.stretch-x,b,u,t.left),S=Gl(l.fixed-T,k,l.stretch,g),E=Hl(c.stretch-_,w,f,t.top),C=Gl(c.fixed-M,A,c.stretch,m),L=new i(h,d),I=new i(y,d),P=new i(y,E),z=new i(h,E),O=new i(p/s,v/s),D=new i(S/s,C/s),R=e*Math.PI/180;if(R){var F=Math.sin(R),B=Math.cos(R),N=[B,-F,F,B];L._matMult(N),I._matMult(N),z._matMult(N),P._matMult(N)}var j=n.stretch+n.fixed,U=a.stretch+a.fixed;return{tl:L,tr:I,bl:z,br:P,tex:{x:o.paddedRect.x+1+j,y:o.paddedRect.y+1+U,w:l.stretch+l.fixed-j,h:c.stretch+c.fixed-U},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:O,pixelOffsetBR:D,minFontScaleX:k/s/u,minFontScaleY:A/s/f,isSDF:r}};if(n&amp;&amp;(o.stretchX||o.stretchY))for(var C=ql(h,v,g),L=ql(p,y,m),I=0;I&lt;C.length-1;I++)for(var P=C[I],z=C[I+1],O=0;O&lt;L.length-1;O++)a.push(E(P,L[O],z,L[O+1]));else a.push(E({fixed:0,stretch:-1},{fixed:0,stretch:-1},{fixed:0,stretch:l+1},{fixed:0,stretch:c+1}));return a}function Vl(t,e,r){for(var n=0,i=0,a=t;i&lt;a.length;i+=1){var o=a[i];n+=Math.max(e,Math.min(r,o[1]))-Math.max(e,Math.min(r,o[0]))}return n}function ql(t,e,r){for(var n=[{fixed:-1,stretch:0}],i=0,a=t;i&lt;a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=n[n.length-1];n.push({fixed:s-c.stretch,stretch:c.stretch}),n.push({fixed:s-c.stretch,stretch:c.stretch+(l-s)})}return n.push({fixed:e+1,stretch:r}),n}function Hl(t,e,r,n){return t/e*r+n}function Gl(t,e,r,n){return t-e*r/n}var Yl=function(t,e,r,n,a,o,s,l,c,u){if(this.boxStartIndex=t.length,c){var f=o.top,h=o.bottom,p=o.collisionPadding;p&amp;&amp;(f-=p[1],h+=p[3]);var d=h-f;d&gt;0&amp;&amp;(d=Math.max(10,d),this.circleDiameter=d)}else{var g=o.top*s-l,m=o.bottom*s+l,v=o.left*s-l,y=o.right*s+l,x=o.collisionPadding;if(x&amp;&amp;(v-=x[0]*s,g-=x[1]*s,y+=x[2]*s,m+=x[3]*s),u){var b=new i(v,g),_=new i(y,g),w=new i(v,m),T=new i(y,m),k=u*Math.PI/180;b._rotate(k),_._rotate(k),w._rotate(k),T._rotate(k),v=Math.min(b.x,_.x,w.x,T.x),y=Math.max(b.x,_.x,w.x,T.x),g=Math.min(b.y,_.y,w.y,T.y),m=Math.max(b.y,_.y,w.y,T.y)}t.emplaceBack(e.x,e.y,v,g,y,m,r,n,a)}this.boxEndIndex=t.length},Wl=function(t,e){if(void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e=Xl),this.data=t,this.length=this.data.length,this.compare=e,this.length&gt;0)for(var r=(this.length&gt;&gt;1)-1;r&gt;=0;r--)this._down(r)};function Xl(t,e){return t&lt;e?-1:t&gt;e?1:0}function Zl(t,e,r){void 0===e&amp;&amp;(e=1),void 0===r&amp;&amp;(r=!1);for(var n=1/0,a=1/0,o=-1/0,s=-1/0,l=t[0],c=0;c&lt;l.length;c++){var u=l[c];(!c||u.x&lt;n)&amp;&amp;(n=u.x),(!c||u.y&lt;a)&amp;&amp;(a=u.y),(!c||u.x&gt;o)&amp;&amp;(o=u.x),(!c||u.y&gt;s)&amp;&amp;(s=u.y)}var f=Math.min(o-n,s-a),h=f/2,p=new Wl([],Jl);if(0===f)return new i(n,a);for(var d=n;d&lt;o;d+=f)for(var g=a;g&lt;s;g+=f)p.push(new Kl(d+h,g+h,h,t));for(var m=function(t){for(var e=0,r=0,n=0,i=t[0],a=0,o=i.length,s=o-1;a&lt;o;s=a++){var l=i[a],c=i[s],u=l.x*c.y-c.x*l.y;r+=(l.x+c.x)*u,n+=(l.y+c.y)*u,e+=3*u}return new Kl(r/e,n/e,0,t)}(t),v=p.length;p.length;){var y=p.pop();(y.d&gt;m.d||!m.d)&amp;&amp;(m=y,r&amp;&amp;console.log(&quot;found best %d after %d probes&quot;,Math.round(1e4*y.d)/1e4,v)),y.max-m.d&lt;=e||(p.push(new Kl(y.p.x-(h=y.h/2),y.p.y-h,h,t)),p.push(new Kl(y.p.x+h,y.p.y-h,h,t)),p.push(new Kl(y.p.x-h,y.p.y+h,h,t)),p.push(new Kl(y.p.x+h,y.p.y+h,h,t)),v+=4)}return r&amp;&amp;(console.log(&quot;num probes: &quot;+v),console.log(&quot;best distance: &quot;+m.d)),m.p}function Jl(t,e){return e.max-t.max}function Kl(t,e,r,n){this.p=new i(t,e),this.h=r,this.d=function(t,e){for(var r=!1,n=1/0,i=0;i&lt;e.length;i++)for(var a=e[i],o=0,s=a.length,l=s-1;o&lt;s;l=o++){var c=a[o],u=a[l];c.y&gt;t.y!=u.y&gt;t.y&amp;&amp;t.x&lt;(u.x-c.x)*(t.y-c.y)/(u.y-c.y)+c.x&amp;&amp;(r=!r),n=Math.min(n,Ga(t,c,u))}return(r?1:-1)*Math.sqrt(n)}(this.p,n),this.max=this.d+this.h*Math.SQRT2}Wl.prototype.push=function(t){this.data.push(t),this.length++,this._up(this.length-1)},Wl.prototype.pop=function(){if(0!==this.length){var t=this.data[0],e=this.data.pop();return this.length--,this.length&gt;0&amp;&amp;(this.data[0]=e,this._down(0)),t}},Wl.prototype.peek=function(){return this.data[0]},Wl.prototype._up=function(t){for(var e=this.data,r=this.compare,n=e[t];t&gt;0;){var i=t-1&gt;&gt;1,a=e[i];if(r(n,a)&gt;=0)break;e[t]=a,t=i}e[t]=n},Wl.prototype._down=function(t){for(var e=this.data,r=this.compare,n=this.length&gt;&gt;1,i=e[t];t&lt;n;){var a=1+(t&lt;&lt;1),o=e[a],s=a+1;if(s&lt;this.length&amp;&amp;r(e[s],o)&lt;0&amp;&amp;(a=s,o=e[s]),r(o,i)&gt;=0)break;e[t]=o,t=a}e[t]=i};var Ql=Number.POSITIVE_INFINITY;function $l(t,e){return e[1]!==Ql?function(t,e,r){var n=0,i=0;switch(e=Math.abs(e),r=Math.abs(r),t){case&quot;top-right&quot;:case&quot;top-left&quot;:case&quot;top&quot;:i=r-7;break;case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:case&quot;bottom&quot;:i=7-r}switch(t){case&quot;top-right&quot;:case&quot;bottom-right&quot;:case&quot;right&quot;:n=-e;break;case&quot;top-left&quot;:case&quot;bottom-left&quot;:case&quot;left&quot;:n=e}return[n,i]}(t,e[0],e[1]):function(t,e){var r=0,n=0;e&lt;0&amp;&amp;(e=0);var i=e/Math.sqrt(2);switch(t){case&quot;top-right&quot;:case&quot;top-left&quot;:n=i-7;break;case&quot;bottom-right&quot;:case&quot;bottom-left&quot;:n=7-i;break;case&quot;bottom&quot;:n=7-e;break;case&quot;top&quot;:n=e-7}switch(t){case&quot;top-right&quot;:case&quot;bottom-right&quot;:r=-i;break;case&quot;top-left&quot;:case&quot;bottom-left&quot;:r=i;break;case&quot;left&quot;:r=e;break;case&quot;right&quot;:r=-e}return[r,n]}(t,e[0])}function tc(t){switch(t){case&quot;right&quot;:case&quot;top-right&quot;:case&quot;bottom-right&quot;:return&quot;right&quot;;case&quot;left&quot;:case&quot;top-left&quot;:case&quot;bottom-left&quot;:return&quot;left&quot;}return&quot;center&quot;}function ec(t,e,r,n,a,o,s,l,c,u,f,h,p,d,g){var m=function(t,e,r,n,a,o,s,l){for(var c=n.layout.get(&quot;text-rotate&quot;).evaluate(o,{})*Math.PI/180,u=[],f=0,h=e.positionedLines;f&lt;h.length;f+=1)for(var p=h[f],d=0,g=p.positionedGlyphs;d&lt;g.length;d+=1){var m=g[d];if(m.rect){var v=m.rect||{},y=4,x=!0,b=1,_=0,w=(a||l)&amp;&amp;m.vertical,T=m.metrics.advance*m.scale/2;if(l&amp;&amp;e.verticalizable&amp;&amp;(_=p.lineOffset/2-(m.imageName?-(24-m.metrics.width*m.scale)/2:24*(m.scale-1))),m.imageName){var k=s[m.imageName];x=k.sdf,y=1/(b=k.pixelRatio)}var M=a?[m.x+T,m.y]:[0,0],A=a?[0,0]:[m.x+T+r[0],m.y+r[1]-_],S=[0,0];w&amp;&amp;(S=A,A=[0,0]);var E=(m.metrics.left-y)*m.scale-T+A[0],C=(-m.metrics.top-y)*m.scale+A[1],L=E+v.w*m.scale/b,I=C+v.h*m.scale/b,P=new i(E,C),z=new i(L,C),O=new i(E,I),D=new i(L,I);if(w){var R=new i(-T,T- -17),F=-Math.PI/2,B=12-T,N=new i(22-B,-(m.imageName?B:0)),j=new(Function.prototype.bind.apply(i,[null].concat(S)));P._rotateAround(F,R)._add(N)._add(j),z._rotateAround(F,R)._add(N)._add(j),O._rotateAround(F,R)._add(N)._add(j),D._rotateAround(F,R)._add(N)._add(j)}if(c){var U=Math.sin(c),V=Math.cos(c),q=[V,-U,U,V];P._matMult(q),z._matMult(q),O._matMult(q),D._matMult(q)}var H=new i(0,0),G=new i(0,0);u.push({tl:P,tr:z,bl:O,br:D,tex:v,writingMode:e.writingMode,glyphOffset:M,sectionIndex:m.sectionIndex,isSDF:x,pixelOffsetTL:H,pixelOffsetBR:G,minFontScaleX:0,minFontScaleY:0})}}return u}(0,r,l,a,o,s,n,t.allowVerticalPlacement),v=t.textSizeData,y=null;&quot;source&quot;===v.kind?(y=[128*a.layout.get(&quot;text-size&quot;).evaluate(s,{})])[0]&gt;32640&amp;&amp;_(t.layerIds[0]+': Value for &quot;text-size&quot; is &gt;= 255. Reduce your &quot;text-size&quot;.'):&quot;composite&quot;===v.kind&amp;&amp;((y=[128*d.compositeTextSizes[0].evaluate(s,{},g),128*d.compositeTextSizes[1].evaluate(s,{},g)])[0]&gt;32640||y[1]&gt;32640)&amp;&amp;_(t.layerIds[0]+': Value for &quot;text-size&quot; is &gt;= 255. Reduce your &quot;text-size&quot;.'),t.addSymbols(t.text,m,y,l,o,s,u,e,c.lineStartIndex,c.lineLength,p,g);for(var x=0,b=f;x&lt;b.length;x+=1)h[b[x]]=t.text.placedSymbolArray.length-1;return 4*m.length}function rc(t){for(var e in t)return t[e];return null}function nc(t,e,r,n){var i=t.compareText;if(e in i){for(var a=i[e],o=a.length-1;o&gt;=0;o--)if(n.dist(a[o])&lt;r)return!0}else i[e]=[];return i[e].push(n),!1}var ic=gs.VectorTileFeature.types,ac=[{name:&quot;a_fade_opacity&quot;,components:1,type:&quot;Uint8&quot;,offset:0}];function oc(t,e,r,n,i,a,o,s,l,c,u,f,h){var p=s?Math.min(32640,Math.round(s[0])):0,d=s?Math.min(32640,Math.round(s[1])):0;t.emplaceBack(e,r,Math.round(32*n),Math.round(32*i),a,o,(p&lt;&lt;1)+(l?1:0),d,16*c,16*u,256*f,256*h)}function sc(t,e,r){t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r),t.emplaceBack(e.x,e.y,r)}function lc(t){for(var e=0,r=t.sections;e&lt;r.length;e+=1)if(Xn(r[e].text))return!0;return!1}var cc=function(t){this.layoutVertexArray=new Li,this.indexArray=new Fi,this.programConfigurations=t,this.segments=new ia,this.dynamicLayoutVertexArray=new Ii,this.opacityVertexArray=new Pi,this.placedSymbolArray=new Ji};cc.prototype.isEmpty=function(){return 0===this.layoutVertexArray.length&amp;&amp;0===this.indexArray.length&amp;&amp;0===this.dynamicLayoutVertexArray.length&amp;&amp;0===this.opacityVertexArray.length},cc.prototype.upload=function(t,e,r,n){this.isEmpty()||(r&amp;&amp;(this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,Ds.members),this.indexBuffer=t.createIndexBuffer(this.indexArray,e),this.dynamicLayoutVertexBuffer=t.createVertexBuffer(this.dynamicLayoutVertexArray,Rs.members,!0),this.opacityVertexBuffer=t.createVertexBuffer(this.opacityVertexArray,ac,!0),this.opacityVertexBuffer.itemSize=1),(r||n)&amp;&amp;this.programConfigurations.upload(t))},cc.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.dynamicLayoutVertexBuffer.destroy(),this.opacityVertexBuffer.destroy())},Dn(&quot;SymbolBuffers&quot;,cc);var uc=function(t,e,r){this.layoutVertexArray=new t,this.layoutAttributes=e,this.indexArray=new r,this.segments=new ia,this.collisionVertexArray=new Ri};uc.prototype.upload=function(t){this.layoutVertexBuffer=t.createVertexBuffer(this.layoutVertexArray,this.layoutAttributes),this.indexBuffer=t.createIndexBuffer(this.indexArray),this.collisionVertexBuffer=t.createVertexBuffer(this.collisionVertexArray,Fs.members,!0)},uc.prototype.destroy=function(){this.layoutVertexBuffer&amp;&amp;(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.segments.destroy(),this.collisionVertexBuffer.destroy())},Dn(&quot;CollisionBuffers&quot;,uc);var fc=function(t){this.collisionBoxArray=t.collisionBoxArray,this.zoom=t.zoom,this.overscaling=t.overscaling,this.layers=t.layers,this.layerIds=this.layers.map((function(t){return t.id})),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=eo([]),this.placementViewportMatrix=eo([]);var e=this.layers[0]._unevaluatedLayout._values;this.textSizeData=Ll(this.zoom,e[&quot;text-size&quot;]),this.iconSizeData=Ll(this.zoom,e[&quot;icon-size&quot;]);var r=this.layers[0].layout,n=r.get(&quot;symbol-sort-key&quot;),i=r.get(&quot;symbol-z-order&quot;);this.sortFeaturesByKey=&quot;viewport-y&quot;!==i&amp;&amp;void 0!==n.constantOr(1),this.sortFeaturesByY=(&quot;viewport-y&quot;===i||&quot;auto&quot;===i&amp;&amp;!this.sortFeaturesByKey)&amp;&amp;(r.get(&quot;text-allow-overlap&quot;)||r.get(&quot;icon-allow-overlap&quot;)||r.get(&quot;text-ignore-placement&quot;)||r.get(&quot;icon-ignore-placement&quot;)),&quot;point&quot;===r.get(&quot;symbol-placement&quot;)&amp;&amp;(this.writingModes=r.get(&quot;text-writing-mode&quot;).map((function(t){return gl[t]}))),this.stateDependentLayerIds=this.layers.filter((function(t){return t.isStateDependent()})).map((function(t){return t.id})),this.sourceID=t.sourceID};fc.prototype.createArrays=function(){this.text=new cc(new Ia(Ds.members,this.layers,this.zoom,(function(t){return/^text/.test(t)}))),this.icon=new cc(new Ia(Ds.members,this.layers,this.zoom,(function(t){return/^icon/.test(t)}))),this.glyphOffsetArray=new $i,this.lineVertexArray=new ta,this.symbolInstances=new Qi},fc.prototype.calculateGlyphDependencies=function(t,e,r,n,i){for(var a=0;a&lt;t.length;a++)if(e[t.charCodeAt(a)]=!0,(r||n)&amp;&amp;i){var o=Us[t.charAt(a)];o&amp;&amp;(e[o.charCodeAt(0)]=!0)}},fc.prototype.populate=function(t,e,r){var n=this.layers[0],i=n.layout,a=i.get(&quot;text-font&quot;),o=i.get(&quot;text-field&quot;),s=i.get(&quot;icon-image&quot;),l=(&quot;constant&quot;!==o.value.kind||o.value.value instanceof te&amp;&amp;!o.value.value.isEmpty()||o.value.value.toString().length&gt;0)&amp;&amp;(&quot;constant&quot;!==a.value.kind||a.value.value.length&gt;0),c=&quot;constant&quot;!==s.value.kind||!!s.value.value||Object.keys(s.parameters).length&gt;0,u=i.get(&quot;symbol-sort-key&quot;);if(this.features=[],l||c){for(var f=e.iconDependencies,h=e.glyphDependencies,p=e.availableImages,d=new ii(this.zoom),g=0,m=t;g&lt;m.length;g+=1){var v=m[g],y=v.feature,x=v.id,b=v.index,_=v.sourceLayerIndex,w=n._featureFilter.needGeometry,T={type:y.type,id:x,properties:y.properties,geometry:w?Da(y):[]};if(n._featureFilter.filter(d,T,r)){w||(T.geometry=Da(y));var k=void 0;if(l){var M=n.getValueAndResolveTokens(&quot;text-field&quot;,T,r,p),A=te.factory(M);lc(A)&amp;&amp;(this.hasRTLText=!0),(!this.hasRTLText||&quot;unavailable&quot;===ei()||this.hasRTLText&amp;&amp;ni.isParsed())&amp;&amp;(k=js(A,n,T))}var S=void 0;if(c){var E=n.getValueAndResolveTokens(&quot;icon-image&quot;,T,r,p);S=E instanceof ee?E:ee.fromString(E)}if(k||S){var C=this.sortFeaturesByKey?u.evaluate(T,{},r):void 0,L={id:x,text:k,icon:S,index:b,sourceLayerIndex:_,geometry:Da(y),properties:y.properties,type:ic[y.type],sortKey:C};if(this.features.push(L),S&amp;&amp;(f[S.name]=!0),k){var I=a.evaluate(T,{},r).join(&quot;,&quot;),P=&quot;map&quot;===i.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==i.get(&quot;symbol-placement&quot;);this.allowVerticalPlacement=this.writingModes&amp;&amp;this.writingModes.indexOf(gl.vertical)&gt;=0;for(var z=0,O=k.sections;z&lt;O.length;z+=1){var D=O[z];if(D.image)f[D.image.name]=!0;else{var R=qn(k.toString()),F=D.fontStack||I,B=h[F]=h[F]||{};this.calculateGlyphDependencies(D.text,B,P,this.allowVerticalPlacement,R)}}}}}}&quot;line&quot;===i.get(&quot;symbol-placement&quot;)&amp;&amp;(this.features=function(t){var e={},r={},n=[],i=0;function a(e){n.push(t[e]),i++}function o(t,e,i){var a=r[t];return delete r[t],r[e]=a,n[a].geometry[0].pop(),n[a].geometry[0]=n[a].geometry[0].concat(i[0]),a}function s(t,r,i){var a=e[r];return delete e[r],e[t]=a,n[a].geometry[0].shift(),n[a].geometry[0]=i[0].concat(n[a].geometry[0]),a}function l(t,e,r){var n=r?e[0][e[0].length-1]:e[0][0];return t+&quot;:&quot;+n.x+&quot;:&quot;+n.y}for(var c=0;c&lt;t.length;c++){var u=t[c],f=u.geometry,h=u.text?u.text.toString():null;if(h){var p=l(h,f),d=l(h,f,!0);if(p in r&amp;&amp;d in e&amp;&amp;r[p]!==e[d]){var g=s(p,d,f),m=o(p,d,n[g].geometry);delete e[p],delete r[d],r[l(h,n[m].geometry,!0)]=m,n[g].geometry=null}else p in r?o(p,d,f):d in e?s(p,d,f):(a(c),e[p]=i-1,r[d]=i-1)}else a(c)}return n.filter((function(t){return t.geometry}))}(this.features)),this.sortFeaturesByKey&amp;&amp;this.features.sort((function(t,e){return t.sortKey-e.sortKey}))}},fc.prototype.update=function(t,e,r){this.stateDependentLayers.length&amp;&amp;(this.text.programConfigurations.updatePaintArrays(t,e,this.layers,r),this.icon.programConfigurations.updatePaintArrays(t,e,this.layers,r))},fc.prototype.isEmpty=function(){return 0===this.symbolInstances.length&amp;&amp;!this.hasRTLText},fc.prototype.uploadPending=function(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload},fc.prototype.upload=function(t){!this.uploaded&amp;&amp;this.hasDebugData()&amp;&amp;(this.textCollisionBox.upload(t),this.iconCollisionBox.upload(t)),this.text.upload(t,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(t,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0},fc.prototype.destroyDebugData=function(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()},fc.prototype.destroy=function(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&amp;&amp;this.destroyDebugData()},fc.prototype.addToLineVertexArray=function(t,e){var r=this.lineVertexArray.length;if(void 0!==t.segment){for(var n=t.dist(e[t.segment+1]),i=t.dist(e[t.segment]),a={},o=t.segment+1;o&lt;e.length;o++)a[o]={x:e[o].x,y:e[o].y,tileUnitDistanceFromAnchor:n},o&lt;e.length-1&amp;&amp;(n+=e[o+1].dist(e[o]));for(var s=t.segment||0;s&gt;=0;s--)a[s]={x:e[s].x,y:e[s].y,tileUnitDistanceFromAnchor:i},s&gt;0&amp;&amp;(i+=e[s-1].dist(e[s]));for(var l=0;l&lt;e.length;l++){var c=a[l];this.lineVertexArray.emplaceBack(c.x,c.y,c.tileUnitDistanceFromAnchor)}}return{lineStartIndex:r,lineLength:this.lineVertexArray.length-r}},fc.prototype.addSymbols=function(t,e,r,n,i,a,o,s,l,c,u,f){for(var h=t.indexArray,p=t.layoutVertexArray,d=t.segments.prepareSegment(4*e.length,p,h,a.sortKey),g=this.glyphOffsetArray.length,m=d.vertexLength,v=this.allowVerticalPlacement&amp;&amp;o===gl.vertical?Math.PI/2:0,y=a.text&amp;&amp;a.text.sections,x=0;x&lt;e.length;x++){var b=e[x],_=b.tl,w=b.tr,T=b.bl,k=b.br,M=b.tex,A=b.pixelOffsetTL,S=b.pixelOffsetBR,E=b.minFontScaleX,C=b.minFontScaleY,L=b.glyphOffset,I=b.isSDF,P=b.sectionIndex,z=d.vertexLength,O=L[1];oc(p,s.x,s.y,_.x,O+_.y,M.x,M.y,r,I,A.x,A.y,E,C),oc(p,s.x,s.y,w.x,O+w.y,M.x+M.w,M.y,r,I,S.x,A.y,E,C),oc(p,s.x,s.y,T.x,O+T.y,M.x,M.y+M.h,r,I,A.x,S.y,E,C),oc(p,s.x,s.y,k.x,O+k.y,M.x+M.w,M.y+M.h,r,I,S.x,S.y,E,C),sc(t.dynamicLayoutVertexArray,s,v),h.emplaceBack(z,z+1,z+2),h.emplaceBack(z+1,z+2,z+3),d.vertexLength+=4,d.primitiveLength+=2,this.glyphOffsetArray.emplaceBack(L[0]),x!==e.length-1&amp;&amp;P===e[x+1].sectionIndex||t.programConfigurations.populatePaintArrays(p.length,a,a.index,{},f,y&amp;&amp;y[P])}t.placedSymbolArray.emplaceBack(s.x,s.y,g,this.glyphOffsetArray.length-g,m,l,c,s.segment,r?r[0]:0,r?r[1]:0,n[0],n[1],o,0,!1,0,u)},fc.prototype._addCollisionDebugVertex=function(t,e,r,n,i,a){return e.emplaceBack(0,0),t.emplaceBack(r.x,r.y,n,i,Math.round(a.x),Math.round(a.y))},fc.prototype.addCollisionDebugVertices=function(t,e,r,n,a,o,s){var l=a.segments.prepareSegment(4,a.layoutVertexArray,a.indexArray),c=l.vertexLength,u=a.layoutVertexArray,f=a.collisionVertexArray,h=s.anchorX,p=s.anchorY;this._addCollisionDebugVertex(u,f,o,h,p,new i(t,e)),this._addCollisionDebugVertex(u,f,o,h,p,new i(r,e)),this._addCollisionDebugVertex(u,f,o,h,p,new i(r,n)),this._addCollisionDebugVertex(u,f,o,h,p,new i(t,n)),l.vertexLength+=4;var d=a.indexArray;d.emplaceBack(c,c+1),d.emplaceBack(c+1,c+2),d.emplaceBack(c+2,c+3),d.emplaceBack(c+3,c),l.primitiveLength+=4},fc.prototype.addDebugCollisionBoxes=function(t,e,r,n){for(var i=t;i&lt;e;i++){var a=this.collisionBoxArray.get(i);this.addCollisionDebugVertices(a.x1,a.y1,a.x2,a.y2,n?this.textCollisionBox:this.iconCollisionBox,a.anchorPoint,r)}},fc.prototype.generateCollisionDebugBuffers=function(){this.hasDebugData()&amp;&amp;this.destroyDebugData(),this.textCollisionBox=new uc(Oi,Bs.members,qi),this.iconCollisionBox=new uc(Oi,Bs.members,qi);for(var t=0;t&lt;this.symbolInstances.length;t++){var e=this.symbolInstances.get(t);this.addDebugCollisionBoxes(e.textBoxStartIndex,e.textBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.verticalTextBoxStartIndex,e.verticalTextBoxEndIndex,e,!0),this.addDebugCollisionBoxes(e.iconBoxStartIndex,e.iconBoxEndIndex,e,!1),this.addDebugCollisionBoxes(e.verticalIconBoxStartIndex,e.verticalIconBoxEndIndex,e,!1)}},fc.prototype._deserializeCollisionBoxesForSymbol=function(t,e,r,n,i,a,o,s,l){for(var c={},u=e;u&lt;r;u++){var f=t.get(u);c.textBox={x1:f.x1,y1:f.y1,x2:f.x2,y2:f.y2,anchorPointX:f.anchorPointX,anchorPointY:f.anchorPointY},c.textFeatureIndex=f.featureIndex;break}for(var h=n;h&lt;i;h++){var p=t.get(h);c.verticalTextBox={x1:p.x1,y1:p.y1,x2:p.x2,y2:p.y2,anchorPointX:p.anchorPointX,anchorPointY:p.anchorPointY},c.verticalTextFeatureIndex=p.featureIndex;break}for(var d=a;d&lt;o;d++){var g=t.get(d);c.iconBox={x1:g.x1,y1:g.y1,x2:g.x2,y2:g.y2,anchorPointX:g.anchorPointX,anchorPointY:g.anchorPointY},c.iconFeatureIndex=g.featureIndex;break}for(var m=s;m&lt;l;m++){var v=t.get(m);c.verticalIconBox={x1:v.x1,y1:v.y1,x2:v.x2,y2:v.y2,anchorPointX:v.anchorPointX,anchorPointY:v.anchorPointY},c.verticalIconFeatureIndex=v.featureIndex;break}return c},fc.prototype.deserializeCollisionBoxes=function(t){this.collisionArrays=[];for(var e=0;e&lt;this.symbolInstances.length;e++){var r=this.symbolInstances.get(e);this.collisionArrays.push(this._deserializeCollisionBoxesForSymbol(t,r.textBoxStartIndex,r.textBoxEndIndex,r.verticalTextBoxStartIndex,r.verticalTextBoxEndIndex,r.iconBoxStartIndex,r.iconBoxEndIndex,r.verticalIconBoxStartIndex,r.verticalIconBoxEndIndex))}},fc.prototype.hasTextData=function(){return this.text.segments.get().length&gt;0},fc.prototype.hasIconData=function(){return this.icon.segments.get().length&gt;0},fc.prototype.hasDebugData=function(){return this.textCollisionBox&amp;&amp;this.iconCollisionBox},fc.prototype.hasTextCollisionBoxData=function(){return this.hasDebugData()&amp;&amp;this.textCollisionBox.segments.get().length&gt;0},fc.prototype.hasIconCollisionBoxData=function(){return this.hasDebugData()&amp;&amp;this.iconCollisionBox.segments.get().length&gt;0},fc.prototype.addIndicesForPlacedSymbol=function(t,e){for(var r=t.placedSymbolArray.get(e),n=r.vertexStartIndex+4*r.numGlyphs,i=r.vertexStartIndex;i&lt;n;i+=4)t.indexArray.emplaceBack(i,i+1,i+2),t.indexArray.emplaceBack(i+1,i+2,i+3)},fc.prototype.getSortedSymbolIndexes=function(t){if(this.sortedAngle===t&amp;&amp;void 0!==this.symbolInstanceIndexes)return this.symbolInstanceIndexes;for(var e=Math.sin(t),r=Math.cos(t),n=[],i=[],a=[],o=0;o&lt;this.symbolInstances.length;++o){a.push(o);var s=this.symbolInstances.get(o);n.push(0|Math.round(e*s.anchorX+r*s.anchorY)),i.push(s.featureIndex)}return a.sort((function(t,e){return n[t]-n[e]||i[e]-i[t]})),a},fc.prototype.addToSortKeyRanges=function(t,e){var r=this.sortKeyRanges[this.sortKeyRanges.length-1];r&amp;&amp;r.sortKey===e?r.symbolInstanceEnd=t+1:this.sortKeyRanges.push({sortKey:e,symbolInstanceStart:t,symbolInstanceEnd:t+1})},fc.prototype.sortFeatures=function(t){var e=this;if(this.sortFeaturesByY&amp;&amp;this.sortedAngle!==t&amp;&amp;!(this.text.segments.get().length&gt;1||this.icon.segments.get().length&gt;1)){this.symbolInstanceIndexes=this.getSortedSymbolIndexes(t),this.sortedAngle=t,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[];for(var r=0,n=this.symbolInstanceIndexes;r&lt;n.length;r+=1){var i=this.symbolInstances.get(n[r]);this.featureSortOrder.push(i.featureIndex),[i.rightJustifiedTextSymbolIndex,i.centerJustifiedTextSymbolIndex,i.leftJustifiedTextSymbolIndex].forEach((function(t,r,n){t&gt;=0&amp;&amp;n.indexOf(t)===r&amp;&amp;e.addIndicesForPlacedSymbol(e.text,t)})),i.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.text,i.verticalPlacedTextSymbolIndex),i.placedIconSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.icon,i.placedIconSymbolIndex),i.verticalPlacedIconSymbolIndex&gt;=0&amp;&amp;this.addIndicesForPlacedSymbol(this.icon,i.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&amp;&amp;this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&amp;&amp;this.icon.indexBuffer.updateData(this.icon.indexArray)}},Dn(&quot;SymbolBucket&quot;,fc,{omit:[&quot;layers&quot;,&quot;collisionBoxArray&quot;,&quot;features&quot;,&quot;compareText&quot;]}),fc.MAX_GLYPHS=65535,fc.addDynamicAttributes=sc;var hc=new yi({&quot;symbol-placement&quot;:new pi(At.layout_symbol[&quot;symbol-placement&quot;]),&quot;symbol-spacing&quot;:new pi(At.layout_symbol[&quot;symbol-spacing&quot;]),&quot;symbol-avoid-edges&quot;:new pi(At.layout_symbol[&quot;symbol-avoid-edges&quot;]),&quot;symbol-sort-key&quot;:new di(At.layout_symbol[&quot;symbol-sort-key&quot;]),&quot;symbol-z-order&quot;:new pi(At.layout_symbol[&quot;symbol-z-order&quot;]),&quot;icon-allow-overlap&quot;:new pi(At.layout_symbol[&quot;icon-allow-overlap&quot;]),&quot;icon-ignore-placement&quot;:new pi(At.layout_symbol[&quot;icon-ignore-placement&quot;]),&quot;icon-optional&quot;:new pi(At.layout_symbol[&quot;icon-optional&quot;]),&quot;icon-rotation-alignment&quot;:new pi(At.layout_symbol[&quot;icon-rotation-alignment&quot;]),&quot;icon-size&quot;:new di(At.layout_symbol[&quot;icon-size&quot;]),&quot;icon-text-fit&quot;:new pi(At.layout_symbol[&quot;icon-text-fit&quot;]),&quot;icon-text-fit-padding&quot;:new pi(At.layout_symbol[&quot;icon-text-fit-padding&quot;]),&quot;icon-image&quot;:new di(At.layout_symbol[&quot;icon-image&quot;]),&quot;icon-rotate&quot;:new di(At.layout_symbol[&quot;icon-rotate&quot;]),&quot;icon-padding&quot;:new pi(At.layout_symbol[&quot;icon-padding&quot;]),&quot;icon-keep-upright&quot;:new pi(At.layout_symbol[&quot;icon-keep-upright&quot;]),&quot;icon-offset&quot;:new di(At.layout_symbol[&quot;icon-offset&quot;]),&quot;icon-anchor&quot;:new di(At.layout_symbol[&quot;icon-anchor&quot;]),&quot;icon-pitch-alignment&quot;:new pi(At.layout_symbol[&quot;icon-pitch-alignment&quot;]),&quot;text-pitch-alignment&quot;:new pi(At.layout_symbol[&quot;text-pitch-alignment&quot;]),&quot;text-rotation-alignment&quot;:new pi(At.layout_symbol[&quot;text-rotation-alignment&quot;]),&quot;text-field&quot;:new di(At.layout_symbol[&quot;text-field&quot;]),&quot;text-font&quot;:new di(At.layout_symbol[&quot;text-font&quot;]),&quot;text-size&quot;:new di(At.layout_symbol[&quot;text-size&quot;]),&quot;text-max-width&quot;:new di(At.layout_symbol[&quot;text-max-width&quot;]),&quot;text-line-height&quot;:new pi(At.layout_symbol[&quot;text-line-height&quot;]),&quot;text-letter-spacing&quot;:new di(At.layout_symbol[&quot;text-letter-spacing&quot;]),&quot;text-justify&quot;:new di(At.layout_symbol[&quot;text-justify&quot;]),&quot;text-radial-offset&quot;:new di(At.layout_symbol[&quot;text-radial-offset&quot;]),&quot;text-variable-anchor&quot;:new pi(At.layout_symbol[&quot;text-variable-anchor&quot;]),&quot;text-anchor&quot;:new di(At.layout_symbol[&quot;text-anchor&quot;]),&quot;text-max-angle&quot;:new pi(At.layout_symbol[&quot;text-max-angle&quot;]),&quot;text-writing-mode&quot;:new pi(At.layout_symbol[&quot;text-writing-mode&quot;]),&quot;text-rotate&quot;:new di(At.layout_symbol[&quot;text-rotate&quot;]),&quot;text-padding&quot;:new pi(At.layout_symbol[&quot;text-padding&quot;]),&quot;text-keep-upright&quot;:new pi(At.layout_symbol[&quot;text-keep-upright&quot;]),&quot;text-transform&quot;:new di(At.layout_symbol[&quot;text-transform&quot;]),&quot;text-offset&quot;:new di(At.layout_symbol[&quot;text-offset&quot;]),&quot;text-allow-overlap&quot;:new pi(At.layout_symbol[&quot;text-allow-overlap&quot;]),&quot;text-ignore-placement&quot;:new pi(At.layout_symbol[&quot;text-ignore-placement&quot;]),&quot;text-optional&quot;:new pi(At.layout_symbol[&quot;text-optional&quot;])}),pc={paint:new yi({&quot;icon-opacity&quot;:new di(At.paint_symbol[&quot;icon-opacity&quot;]),&quot;icon-color&quot;:new di(At.paint_symbol[&quot;icon-color&quot;]),&quot;icon-halo-color&quot;:new di(At.paint_symbol[&quot;icon-halo-color&quot;]),&quot;icon-halo-width&quot;:new di(At.paint_symbol[&quot;icon-halo-width&quot;]),&quot;icon-halo-blur&quot;:new di(At.paint_symbol[&quot;icon-halo-blur&quot;]),&quot;icon-translate&quot;:new pi(At.paint_symbol[&quot;icon-translate&quot;]),&quot;icon-translate-anchor&quot;:new pi(At.paint_symbol[&quot;icon-translate-anchor&quot;]),&quot;text-opacity&quot;:new di(At.paint_symbol[&quot;text-opacity&quot;]),&quot;text-color&quot;:new di(At.paint_symbol[&quot;text-color&quot;],{runtimeType:Bt,getOverride:function(t){return t.textColor},hasOverride:function(t){return!!t.textColor}}),&quot;text-halo-color&quot;:new di(At.paint_symbol[&quot;text-halo-color&quot;]),&quot;text-halo-width&quot;:new di(At.paint_symbol[&quot;text-halo-width&quot;]),&quot;text-halo-blur&quot;:new di(At.paint_symbol[&quot;text-halo-blur&quot;]),&quot;text-translate&quot;:new pi(At.paint_symbol[&quot;text-translate&quot;]),&quot;text-translate-anchor&quot;:new pi(At.paint_symbol[&quot;text-translate-anchor&quot;])}),layout:hc},dc=function(t){this.type=t.property.overrides?t.property.overrides.runtimeType:Ot,this.defaultValue=t};dc.prototype.evaluate=function(t){if(t.formattedSection){var e=this.defaultValue.property.overrides;if(e&amp;&amp;e.hasOverride(t.formattedSection))return e.getOverride(t.formattedSection)}return t.feature&amp;&amp;t.featureState?this.defaultValue.evaluate(t.feature,t.featureState):this.defaultValue.property.specification.default},dc.prototype.eachChild=function(t){this.defaultValue.isConstant()||t(this.defaultValue.value._styleExpression.expression)},dc.prototype.outputDefined=function(){return!1},dc.prototype.serialize=function(){return null},Dn(&quot;FormatSectionOverride&quot;,dc,{omit:[&quot;defaultValue&quot;]});var gc=function(t){function e(e){t.call(this,e,pc)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.recalculate=function(e,r){if(t.prototype.recalculate.call(this,e,r),&quot;auto&quot;===this.layout.get(&quot;icon-rotation-alignment&quot;)&amp;&amp;(this.layout._values[&quot;icon-rotation-alignment&quot;]=&quot;point&quot;!==this.layout.get(&quot;symbol-placement&quot;)?&quot;map&quot;:&quot;viewport&quot;),&quot;auto&quot;===this.layout.get(&quot;text-rotation-alignment&quot;)&amp;&amp;(this.layout._values[&quot;text-rotation-alignment&quot;]=&quot;point&quot;!==this.layout.get(&quot;symbol-placement&quot;)?&quot;map&quot;:&quot;viewport&quot;),&quot;auto&quot;===this.layout.get(&quot;text-pitch-alignment&quot;)&amp;&amp;(this.layout._values[&quot;text-pitch-alignment&quot;]=this.layout.get(&quot;text-rotation-alignment&quot;)),&quot;auto&quot;===this.layout.get(&quot;icon-pitch-alignment&quot;)&amp;&amp;(this.layout._values[&quot;icon-pitch-alignment&quot;]=this.layout.get(&quot;icon-rotation-alignment&quot;)),&quot;point&quot;===this.layout.get(&quot;symbol-placement&quot;)){var n=this.layout.get(&quot;text-writing-mode&quot;);if(n){for(var i=[],a=0,o=n;a&lt;o.length;a+=1){var s=o[a];i.indexOf(s)&lt;0&amp;&amp;i.push(s)}this.layout._values[&quot;text-writing-mode&quot;]=i}else this.layout._values[&quot;text-writing-mode&quot;]=[&quot;horizontal&quot;]}this._setPaintOverrides()},e.prototype.getValueAndResolveTokens=function(t,e,r,n){var i=this.layout.get(t).evaluate(e,{},r,n),a=this._unevaluatedLayout._values[t];return a.isDataDriven()||Vr(a.value)||!i?i:function(t,e){return e.replace(/{([^{}]+)}/g,(function(e,r){return r in t?String(t[r]):&quot;&quot;}))}(e.properties,i)},e.prototype.createBucket=function(t){return new fc(t)},e.prototype.queryRadius=function(){return 0},e.prototype.queryIntersectsFeature=function(){return!1},e.prototype._setPaintOverrides=function(){for(var t=0,r=pc.paint.overridableProperties;t&lt;r.length;t+=1){var n=r[t];if(e.hasPaintOverride(this.layout,n)){var i,a=this.paint.get(n),o=new dc(a),s=new Ur(o,a.property.specification);i=&quot;constant&quot;===a.value.kind||&quot;source&quot;===a.value.kind?new Hr(&quot;source&quot;,s):new Gr(&quot;composite&quot;,s,a.value.zoomStops,a.value._interpolationType),this.paint._values[n]=new fi(a.property,i,a.parameters)}}},e.prototype._handleOverridablePaintPropertyUpdate=function(t,r,n){return!(!this.layout||r.isDataDriven()||n.isDataDriven())&amp;&amp;e.hasPaintOverride(this.layout,t)},e.hasPaintOverride=function(t,e){var r=t.get(&quot;text-field&quot;),n=pc.paint.properties[e],i=!1,a=function(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(n.overrides&amp;&amp;n.overrides.hasOverride(r[e]))return void(i=!0)};if(&quot;constant&quot;===r.value.kind&amp;&amp;r.value.value instanceof te)a(r.value.value.sections);else if(&quot;source&quot;===r.value.kind){var o=function(t){i||(t instanceof oe&amp;&amp;ie(t.value)===Vt?a(t.value.sections):t instanceof ue?a(t.sections):t.eachChild(o))},s=r.value;s._styleExpression&amp;&amp;o(s._styleExpression.expression)}return i},e}(xi),mc={paint:new yi({&quot;background-color&quot;:new pi(At.paint_background[&quot;background-color&quot;]),&quot;background-pattern&quot;:new mi(At.paint_background[&quot;background-pattern&quot;]),&quot;background-opacity&quot;:new pi(At.paint_background[&quot;background-opacity&quot;])})},vc=function(t){function e(e){t.call(this,e,mc)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(xi),yc={paint:new yi({&quot;raster-opacity&quot;:new pi(At.paint_raster[&quot;raster-opacity&quot;]),&quot;raster-hue-rotate&quot;:new pi(At.paint_raster[&quot;raster-hue-rotate&quot;]),&quot;raster-brightness-min&quot;:new pi(At.paint_raster[&quot;raster-brightness-min&quot;]),&quot;raster-brightness-max&quot;:new pi(At.paint_raster[&quot;raster-brightness-max&quot;]),&quot;raster-saturation&quot;:new pi(At.paint_raster[&quot;raster-saturation&quot;]),&quot;raster-contrast&quot;:new pi(At.paint_raster[&quot;raster-contrast&quot;]),&quot;raster-resampling&quot;:new pi(At.paint_raster[&quot;raster-resampling&quot;]),&quot;raster-fade-duration&quot;:new pi(At.paint_raster[&quot;raster-fade-duration&quot;])})},xc=function(t){function e(e){t.call(this,e,yc)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(xi),bc=function(t){function e(e){t.call(this,e,{}),this.implementation=e}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.is3D=function(){return&quot;3d&quot;===this.implementation.renderingMode},e.prototype.hasOffscreenPass=function(){return void 0!==this.implementation.prerender},e.prototype.recalculate=function(){},e.prototype.updateTransitions=function(){},e.prototype.hasTransition=function(){},e.prototype.serialize=function(){},e.prototype.onAdd=function(t){this.implementation.onAdd&amp;&amp;this.implementation.onAdd(t,t.painter.context.gl)},e.prototype.onRemove=function(t){this.implementation.onRemove&amp;&amp;this.implementation.onRemove(t,t.painter.context.gl)},e}(xi),_c={circle:oo,heatmap:vo,hillshade:xo,fill:as,&quot;fill-extrusion&quot;:ws,line:zs,symbol:gc,background:vc,raster:xc},wc=self.HTMLImageElement,Tc=self.HTMLCanvasElement,kc=self.HTMLVideoElement,Mc=self.ImageData,Ac=self.ImageBitmap,Sc=function(t,e,r,n){this.context=t,this.format=r,this.texture=t.gl.createTexture(),this.update(e,n)};Sc.prototype.update=function(t,e,r){var n=t.width,i=t.height,a=!(this.size&amp;&amp;this.size[0]===n&amp;&amp;this.size[1]===i||r),o=this.context,s=o.gl;if(this.useMipmap=Boolean(e&amp;&amp;e.useMipmap),s.bindTexture(s.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1),o.pixelStoreUnpackPremultiplyAlpha.set(this.format===s.RGBA&amp;&amp;(!e||!1!==e.premultiply)),a)this.size=[n,i],t instanceof wc||t instanceof Tc||t instanceof kc||t instanceof Mc||Ac&amp;&amp;t instanceof Ac?s.texImage2D(s.TEXTURE_2D,0,this.format,this.format,s.UNSIGNED_BYTE,t):s.texImage2D(s.TEXTURE_2D,0,this.format,n,i,0,this.format,s.UNSIGNED_BYTE,t.data);else{var l=r||{x:0,y:0},c=l.x,u=l.y;t instanceof wc||t instanceof Tc||t instanceof kc||t instanceof Mc||Ac&amp;&amp;t instanceof Ac?s.texSubImage2D(s.TEXTURE_2D,0,c,u,s.RGBA,s.UNSIGNED_BYTE,t):s.texSubImage2D(s.TEXTURE_2D,0,c,u,n,i,s.RGBA,s.UNSIGNED_BYTE,t.data)}this.useMipmap&amp;&amp;this.isSizePowerOfTwo()&amp;&amp;s.generateMipmap(s.TEXTURE_2D)},Sc.prototype.bind=function(t,e,r){var n=this.context.gl;n.bindTexture(n.TEXTURE_2D,this.texture),r!==n.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(r=n.LINEAR),t!==this.filter&amp;&amp;(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,t),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,r||t),this.filter=t),e!==this.wrap&amp;&amp;(n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,e),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,e),this.wrap=e)},Sc.prototype.isSizePowerOfTwo=function(){return this.size[0]===this.size[1]&amp;&amp;Math.log(this.size[0])/Math.LN2%1==0},Sc.prototype.destroy=function(){this.context.gl.deleteTexture(this.texture),this.texture=null};var Ec=function(t){var e=this;this._callback=t,this._triggered=!1,&quot;undefined&quot;!=typeof MessageChannel&amp;&amp;(this._channel=new MessageChannel,this._channel.port2.onmessage=function(){e._triggered=!1,e._callback()})};Ec.prototype.trigger=function(){var t=this;this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout((function(){t._triggered=!1,t._callback()}),0))},Ec.prototype.remove=function(){delete this._channel,this._callback=function(){}};var Cc=function(t,e,r){this.target=t,this.parent=e,this.mapId=r,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},g([&quot;receive&quot;,&quot;process&quot;],this),this.invoker=new Ec(this.process),this.target.addEventListener(&quot;message&quot;,this.receive,!1),this.globalScope=k()?t:self};function Lc(t,e,r){var n=2*Math.PI*6378137/256/Math.pow(2,r);return[t*n-2*Math.PI*6378137/2,e*n-2*Math.PI*6378137/2]}Cc.prototype.send=function(t,e,r,n,i){var a=this;void 0===i&amp;&amp;(i=!1);var o=Math.round(1e18*Math.random()).toString(36).substring(0,10);r&amp;&amp;(this.callbacks[o]=r);var s=S(this.globalScope)?void 0:[];return this.target.postMessage({id:o,type:t,hasCallback:!!r,targetMapId:n,mustQueue:i,sourceMapId:this.mapId,data:Nn(e,s)},s),{cancel:function(){r&amp;&amp;delete a.callbacks[o],a.target.postMessage({id:o,type:&quot;&lt;cancel&gt;&quot;,targetMapId:n,sourceMapId:a.mapId})}}},Cc.prototype.receive=function(t){var e=t.data,r=e.id;if(r&amp;&amp;(!e.targetMapId||this.mapId===e.targetMapId))if(&quot;&lt;cancel&gt;&quot;===e.type){delete this.tasks[r];var n=this.cancelCallbacks[r];delete this.cancelCallbacks[r],n&amp;&amp;n()}else k()||e.mustQueue?(this.tasks[r]=e,this.taskQueue.push(r),this.invoker.trigger()):this.processTask(r,e)},Cc.prototype.process=function(){if(this.taskQueue.length){var t=this.taskQueue.shift(),e=this.tasks[t];delete this.tasks[t],this.taskQueue.length&amp;&amp;this.invoker.trigger(),e&amp;&amp;this.processTask(t,e)}},Cc.prototype.processTask=function(t,e){var r=this;if(&quot;&lt;response&gt;&quot;===e.type){var n=this.callbacks[t];delete this.callbacks[t],n&amp;&amp;(e.error?n(jn(e.error)):n(null,jn(e.data)))}else{var i=!1,a=S(this.globalScope)?void 0:[],o=e.hasCallback?function(e,n){i=!0,delete r.cancelCallbacks[t],r.target.postMessage({id:t,type:&quot;&lt;response&gt;&quot;,sourceMapId:r.mapId,error:e?Nn(e):null,data:Nn(n,a)},a)}:function(t){i=!0},s=null,l=jn(e.data);if(this.parent[e.type])s=this.parent[e.type](e.sourceMapId,l,o);else if(this.parent.getWorkerSource){var c=e.type.split(&quot;.&quot;);s=this.parent.getWorkerSource(e.sourceMapId,c[0],l.source)[c[1]](l,o)}else o(new Error(&quot;Could not find function &quot;+e.type));!i&amp;&amp;s&amp;&amp;s.cancel&amp;&amp;(this.cancelCallbacks[t]=s.cancel)}},Cc.prototype.remove=function(){this.invoker.remove(),this.target.removeEventListener(&quot;message&quot;,this.receive,!1)};var Ic=function(t,e){t&amp;&amp;(e?this.setSouthWest(t).setNorthEast(e):4===t.length?this.setSouthWest([t[0],t[1]]).setNorthEast([t[2],t[3]]):this.setSouthWest(t[0]).setNorthEast(t[1]))};Ic.prototype.setNorthEast=function(t){return this._ne=t instanceof Pc?new Pc(t.lng,t.lat):Pc.convert(t),this},Ic.prototype.setSouthWest=function(t){return this._sw=t instanceof Pc?new Pc(t.lng,t.lat):Pc.convert(t),this},Ic.prototype.extend=function(t){var e,r,n=this._sw,i=this._ne;if(t instanceof Pc)e=t,r=t;else{if(!(t instanceof Ic))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(Ic.convert(t)):this.extend(Pc.convert(t)):this;if(r=t._ne,!(e=t._sw)||!r)return this}return n||i?(n.lng=Math.min(e.lng,n.lng),n.lat=Math.min(e.lat,n.lat),i.lng=Math.max(r.lng,i.lng),i.lat=Math.max(r.lat,i.lat)):(this._sw=new Pc(e.lng,e.lat),this._ne=new Pc(r.lng,r.lat)),this},Ic.prototype.getCenter=function(){return new Pc((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)},Ic.prototype.getSouthWest=function(){return this._sw},Ic.prototype.getNorthEast=function(){return this._ne},Ic.prototype.getNorthWest=function(){return new Pc(this.getWest(),this.getNorth())},Ic.prototype.getSouthEast=function(){return new Pc(this.getEast(),this.getSouth())},Ic.prototype.getWest=function(){return this._sw.lng},Ic.prototype.getSouth=function(){return this._sw.lat},Ic.prototype.getEast=function(){return this._ne.lng},Ic.prototype.getNorth=function(){return this._ne.lat},Ic.prototype.toArray=function(){return[this._sw.toArray(),this._ne.toArray()]},Ic.prototype.toString=function(){return&quot;LngLatBounds(&quot;+this._sw.toString()+&quot;, &quot;+this._ne.toString()+&quot;)&quot;},Ic.prototype.isEmpty=function(){return!(this._sw&amp;&amp;this._ne)},Ic.prototype.contains=function(t){var e=Pc.convert(t),r=e.lng,n=e.lat,i=this._sw.lng&lt;=r&amp;&amp;r&lt;=this._ne.lng;return this._sw.lng&gt;this._ne.lng&amp;&amp;(i=this._sw.lng&gt;=r&amp;&amp;r&gt;=this._ne.lng),this._sw.lat&lt;=n&amp;&amp;n&lt;=this._ne.lat&amp;&amp;i},Ic.convert=function(t){return!t||t instanceof Ic?t:new Ic(t)};var Pc=function(t,e){if(isNaN(t)||isNaN(e))throw new Error(&quot;Invalid LngLat object: (&quot;+t+&quot;, &quot;+e+&quot;)&quot;);if(this.lng=+t,this.lat=+e,this.lat&gt;90||this.lat&lt;-90)throw new Error(&quot;Invalid LngLat latitude value: must be between -90 and 90&quot;)};Pc.prototype.wrap=function(){return new Pc(c(this.lng,-180,180),this.lat)},Pc.prototype.toArray=function(){return[this.lng,this.lat]},Pc.prototype.toString=function(){return&quot;LngLat(&quot;+this.lng+&quot;, &quot;+this.lat+&quot;)&quot;},Pc.prototype.distanceTo=function(t){var e=Math.PI/180,r=this.lat*e,n=t.lat*e,i=Math.sin(r)*Math.sin(n)+Math.cos(r)*Math.cos(n)*Math.cos((t.lng-this.lng)*e);return 6371008.8*Math.acos(Math.min(i,1))},Pc.prototype.toBounds=function(t){void 0===t&amp;&amp;(t=0);var e=360*t/40075017,r=e/Math.cos(Math.PI/180*this.lat);return new Ic(new Pc(this.lng-r,this.lat-e),new Pc(this.lng+r,this.lat+e))},Pc.convert=function(t){if(t instanceof Pc)return t;if(Array.isArray(t)&amp;&amp;(2===t.length||3===t.length))return new Pc(Number(t[0]),Number(t[1]));if(!Array.isArray(t)&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;null!==t)return new Pc(Number(&quot;lng&quot;in t?t.lng:t.lon),Number(t.lat));throw new Error(&quot;`LngLatLike` argument must be specified as a LngLat instance, an object {lng: &lt;lng&gt;, lat: &lt;lat&gt;}, an object {lon: &lt;lng&gt;, lat: &lt;lat&gt;}, or an array of [&lt;lng&gt;, &lt;lat&gt;]&quot;)};var zc=2*Math.PI*6371008.8;function Oc(t){return zc*Math.cos(t*Math.PI/180)}function Dc(t){return(180+t)/360}function Rc(t){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+t*Math.PI/360)))/360}function Fc(t,e){return t/Oc(e)}function Bc(t){return 360/Math.PI*Math.atan(Math.exp((180-360*t)*Math.PI/180))-90}var Nc=function(t,e,r){void 0===r&amp;&amp;(r=0),this.x=+t,this.y=+e,this.z=+r};Nc.fromLngLat=function(t,e){void 0===e&amp;&amp;(e=0);var r=Pc.convert(t);return new Nc(Dc(r.lng),Rc(r.lat),Fc(e,r.lat))},Nc.prototype.toLngLat=function(){return new Pc(360*this.x-180,Bc(this.y))},Nc.prototype.toAltitude=function(){return this.z*Oc(Bc(this.y))},Nc.prototype.meterInMercatorCoordinateUnits=function(){return 1/zc*(t=Bc(this.y),1/Math.cos(t*Math.PI/180));var t};var jc=function(t,e,r){this.z=t,this.x=e,this.y=r,this.key=qc(0,t,t,e,r)};jc.prototype.equals=function(t){return this.z===t.z&amp;&amp;this.x===t.x&amp;&amp;this.y===t.y},jc.prototype.url=function(t,e){var r,n,i,a,o,s=(n=this.y,i=this.z,a=Lc(256*(r=this.x),256*(n=Math.pow(2,i)-n-1),i),o=Lc(256*(r+1),256*(n+1),i),a[0]+&quot;,&quot;+a[1]+&quot;,&quot;+o[0]+&quot;,&quot;+o[1]),l=function(t,e,r){for(var n,i=&quot;&quot;,a=t;a&gt;0;a--)i+=(e&amp;(n=1&lt;&lt;a-1)?1:0)+(r&amp;n?2:0);return i}(this.z,this.x,this.y);return t[(this.x+this.y)%t.length].replace(&quot;{prefix}&quot;,(this.x%16).toString(16)+(this.y%16).toString(16)).replace(&quot;{z}&quot;,String(this.z)).replace(&quot;{x}&quot;,String(this.x)).replace(&quot;{y}&quot;,String(&quot;tms&quot;===e?Math.pow(2,this.z)-this.y-1:this.y)).replace(&quot;{quadkey}&quot;,l).replace(&quot;{bbox-epsg-3857}&quot;,s)},jc.prototype.getTilePoint=function(t){var e=Math.pow(2,this.z);return new i(8192*(t.x*e-this.x),8192*(t.y*e-this.y))},jc.prototype.toString=function(){return this.z+&quot;/&quot;+this.x+&quot;/&quot;+this.y};var Uc=function(t,e){this.wrap=t,this.canonical=e,this.key=qc(t,e.z,e.z,e.x,e.y)},Vc=function(t,e,r,n,i){this.overscaledZ=t,this.wrap=e,this.canonical=new jc(r,+n,+i),this.key=qc(e,t,r,n,i)};function qc(t,e,r,n,i){(t*=2)&lt;0&amp;&amp;(t=-1*t-1);var a=1&lt;&lt;r;return(a*a*t+a*i+n).toString(36)+r.toString(36)+e.toString(36)}Vc.prototype.equals=function(t){return this.overscaledZ===t.overscaledZ&amp;&amp;this.wrap===t.wrap&amp;&amp;this.canonical.equals(t.canonical)},Vc.prototype.scaledTo=function(t){var e=this.canonical.z-t;return t&gt;this.canonical.z?new Vc(t,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new Vc(t,this.wrap,t,this.canonical.x&gt;&gt;e,this.canonical.y&gt;&gt;e)},Vc.prototype.calculateScaledKey=function(t,e){var r=this.canonical.z-t;return t&gt;this.canonical.z?qc(this.wrap*+e,t,this.canonical.z,this.canonical.x,this.canonical.y):qc(this.wrap*+e,t,t,this.canonical.x&gt;&gt;r,this.canonical.y&gt;&gt;r)},Vc.prototype.isChildOf=function(t){if(t.wrap!==this.wrap)return!1;var e=this.canonical.z-t.canonical.z;return 0===t.overscaledZ||t.overscaledZ&lt;this.overscaledZ&amp;&amp;t.canonical.x===this.canonical.x&gt;&gt;e&amp;&amp;t.canonical.y===this.canonical.y&gt;&gt;e},Vc.prototype.children=function(t){if(this.overscaledZ&gt;=t)return[new Vc(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];var e=this.canonical.z+1,r=2*this.canonical.x,n=2*this.canonical.y;return[new Vc(e,this.wrap,e,r,n),new Vc(e,this.wrap,e,r+1,n),new Vc(e,this.wrap,e,r,n+1),new Vc(e,this.wrap,e,r+1,n+1)]},Vc.prototype.isLessThan=function(t){return this.wrap&lt;t.wrap||!(this.wrap&gt;t.wrap)&amp;&amp;(this.overscaledZ&lt;t.overscaledZ||!(this.overscaledZ&gt;t.overscaledZ)&amp;&amp;(this.canonical.x&lt;t.canonical.x||!(this.canonical.x&gt;t.canonical.x)&amp;&amp;this.canonical.y&lt;t.canonical.y))},Vc.prototype.wrapped=function(){return new Vc(this.overscaledZ,0,this.canonical.z,this.canonical.x,this.canonical.y)},Vc.prototype.unwrapTo=function(t){return new Vc(this.overscaledZ,t,this.canonical.z,this.canonical.x,this.canonical.y)},Vc.prototype.overscaleFactor=function(){return Math.pow(2,this.overscaledZ-this.canonical.z)},Vc.prototype.toUnwrapped=function(){return new Uc(this.wrap,this.canonical)},Vc.prototype.toString=function(){return this.overscaledZ+&quot;/&quot;+this.canonical.x+&quot;/&quot;+this.canonical.y},Vc.prototype.getTilePoint=function(t){return this.canonical.getTilePoint(new Nc(t.x-this.wrap,t.y))},Dn(&quot;CanonicalTileID&quot;,jc),Dn(&quot;OverscaledTileID&quot;,Vc,{omit:[&quot;posMatrix&quot;]});var Hc=function(t,e,r){if(this.uid=t,e.height!==e.width)throw new RangeError(&quot;DEM tiles must be square&quot;);if(r&amp;&amp;&quot;mapbox&quot;!==r&amp;&amp;&quot;terrarium&quot;!==r)return _('&quot;'+r+'&quot; is not a valid encoding type. Valid types include &quot;mapbox&quot; and &quot;terrarium&quot;.');this.stride=e.height;var n=this.dim=e.height-2;this.data=new Uint32Array(e.data.buffer),this.encoding=r||&quot;mapbox&quot;;for(var i=0;i&lt;n;i++)this.data[this._idx(-1,i)]=this.data[this._idx(0,i)],this.data[this._idx(n,i)]=this.data[this._idx(n-1,i)],this.data[this._idx(i,-1)]=this.data[this._idx(i,0)],this.data[this._idx(i,n)]=this.data[this._idx(i,n-1)];this.data[this._idx(-1,-1)]=this.data[this._idx(0,0)],this.data[this._idx(n,-1)]=this.data[this._idx(n-1,0)],this.data[this._idx(-1,n)]=this.data[this._idx(0,n-1)],this.data[this._idx(n,n)]=this.data[this._idx(n-1,n-1)]};Hc.prototype.get=function(t,e){var r=new Uint8Array(this.data.buffer),n=4*this._idx(t,e);return(&quot;terrarium&quot;===this.encoding?this._unpackTerrarium:this._unpackMapbox)(r[n],r[n+1],r[n+2])},Hc.prototype.getUnpackVector=function(){return&quot;terrarium&quot;===this.encoding?[256,1,1/256,32768]:[6553.6,25.6,.1,1e4]},Hc.prototype._idx=function(t,e){if(t&lt;-1||t&gt;=this.dim+1||e&lt;-1||e&gt;=this.dim+1)throw new RangeError(&quot;out of range source coordinates for DEM data&quot;);return(e+1)*this.stride+(t+1)},Hc.prototype._unpackMapbox=function(t,e,r){return(256*t*256+256*e+r)/10-1e4},Hc.prototype._unpackTerrarium=function(t,e,r){return 256*t+e+r/256-32768},Hc.prototype.getPixels=function(){return new po({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))},Hc.prototype.backfillBorder=function(t,e,r){if(this.dim!==t.dim)throw new Error(&quot;dem dimension mismatch&quot;);var n=e*this.dim,i=e*this.dim+this.dim,a=r*this.dim,o=r*this.dim+this.dim;switch(e){case-1:n=i-1;break;case 1:i=n+1}switch(r){case-1:a=o-1;break;case 1:o=a+1}for(var s=-e*this.dim,l=-r*this.dim,c=a;c&lt;o;c++)for(var u=n;u&lt;i;u++)this.data[this._idx(u,c)]=t.data[this._idx(u+s,c+l)]},Dn(&quot;DEMData&quot;,Hc);var Gc=function(t){this._stringToNumber={},this._numberToString=[];for(var e=0;e&lt;t.length;e++){var r=t[e];this._stringToNumber[r]=e,this._numberToString[e]=r}};Gc.prototype.encode=function(t){return this._stringToNumber[t]},Gc.prototype.decode=function(t){return this._numberToString[t]};var Yc=function(t,e,r,n,i){this.type=&quot;Feature&quot;,this._vectorTileFeature=t,t._z=e,t._x=r,t._y=n,this.properties=t.properties,this.id=i},Wc={geometry:{configurable:!0}};Wc.geometry.get=function(){return void 0===this._geometry&amp;&amp;(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry},Wc.geometry.set=function(t){this._geometry=t},Yc.prototype.toJSON=function(){var t={geometry:this.geometry};for(var e in this)&quot;_geometry&quot;!==e&amp;&amp;&quot;_vectorTileFeature&quot;!==e&amp;&amp;(t[e]=this[e]);return t},Object.defineProperties(Yc.prototype,Wc);var Xc=function(){this.state={},this.stateChanges={},this.deletedStates={}};Xc.prototype.updateState=function(t,e,r){var n=String(e);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][n]=this.stateChanges[t][n]||{},u(this.stateChanges[t][n],r),null===this.deletedStates[t])for(var i in this.deletedStates[t]={},this.state[t])i!==n&amp;&amp;(this.deletedStates[t][i]=null);else if(this.deletedStates[t]&amp;&amp;null===this.deletedStates[t][n])for(var a in this.deletedStates[t][n]={},this.state[t][n])r[a]||(this.deletedStates[t][n][a]=null);else for(var o in r)this.deletedStates[t]&amp;&amp;this.deletedStates[t][n]&amp;&amp;null===this.deletedStates[t][n][o]&amp;&amp;delete this.deletedStates[t][n][o]},Xc.prototype.removeFeatureState=function(t,e,r){if(null!==this.deletedStates[t]){var n=String(e);if(this.deletedStates[t]=this.deletedStates[t]||{},r&amp;&amp;void 0!==e)null!==this.deletedStates[t][n]&amp;&amp;(this.deletedStates[t][n]=this.deletedStates[t][n]||{},this.deletedStates[t][n][r]=null);else if(void 0!==e)if(this.stateChanges[t]&amp;&amp;this.stateChanges[t][n])for(r in this.deletedStates[t][n]={},this.stateChanges[t][n])this.deletedStates[t][n][r]=null;else this.deletedStates[t][n]=null;else this.deletedStates[t]=null}},Xc.prototype.getState=function(t,e){var r=String(e),n=u({},(this.state[t]||{})[r],(this.stateChanges[t]||{})[r]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){var i=this.deletedStates[t][e];if(null===i)return{};for(var a in i)delete n[a]}return n},Xc.prototype.initializeTileState=function(t,e){t.setFeatureState(this.state,e)},Xc.prototype.coalesceChanges=function(t,e){var r={};for(var n in this.stateChanges){this.state[n]=this.state[n]||{};var i={};for(var a in this.stateChanges[n])this.state[n][a]||(this.state[n][a]={}),u(this.state[n][a],this.stateChanges[n][a]),i[a]=this.state[n][a];r[n]=i}for(var o in this.deletedStates){this.state[o]=this.state[o]||{};var s={};if(null===this.deletedStates[o])for(var l in this.state[o])s[l]={},this.state[o][l]={};else for(var c in this.deletedStates[o]){if(null===this.deletedStates[o][c])this.state[o][c]={};else for(var f=0,h=Object.keys(this.deletedStates[o][c]);f&lt;h.length;f+=1)delete this.state[o][c][h[f]];s[c]=this.state[o][c]}r[o]=r[o]||{},u(r[o],s)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(r).length)for(var p in t)t[p].setFeatureState(r,e)};var Zc=function(t,e){this.tileID=t,this.x=t.canonical.x,this.y=t.canonical.y,this.z=t.canonical.z,this.grid=new Ln(8192,16,0),this.grid3D=new Ln(8192,16,0),this.featureIndexArray=new ra,this.promoteId=e};function Jc(t,e,r,n,i){return v(t,(function(t,a){var o=e instanceof hi?e.get(a):null;return o&amp;&amp;o.evaluate?o.evaluate(r,n,i):o}))}function Kc(t){for(var e=1/0,r=1/0,n=-1/0,i=-1/0,a=0,o=t;a&lt;o.length;a+=1){var s=o[a];e=Math.min(e,s.x),r=Math.min(r,s.y),n=Math.max(n,s.x),i=Math.max(i,s.y)}return{minX:e,minY:r,maxX:n,maxY:i}}function Qc(t,e){return e-t}Zc.prototype.insert=function(t,e,r,n,i,a){var o=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(r,n,i);for(var s=a?this.grid3D:this.grid,l=0;l&lt;e.length;l++){for(var c=e[l],u=[1/0,1/0,-1/0,-1/0],f=0;f&lt;c.length;f++){var h=c[f];u[0]=Math.min(u[0],h.x),u[1]=Math.min(u[1],h.y),u[2]=Math.max(u[2],h.x),u[3]=Math.max(u[3],h.y)}u[0]&lt;8192&amp;&amp;u[1]&lt;8192&amp;&amp;u[2]&gt;=0&amp;&amp;u[3]&gt;=0&amp;&amp;s.insert(o,u[0],u[1],u[2],u[3])}},Zc.prototype.loadVTLayers=function(){return this.vtLayers||(this.vtLayers=new gs.VectorTile(new Hs(this.rawTileData)).layers,this.sourceLayerCoder=new Gc(this.vtLayers?Object.keys(this.vtLayers).sort():[&quot;_geojsonTileLayer&quot;])),this.vtLayers},Zc.prototype.query=function(t,e,r,n){var a=this;this.loadVTLayers();for(var o=t.params||{},s=8192/t.tileSize/t.scale,l=rn(o.filter),c=t.queryGeometry,u=t.queryPadding*s,f=Kc(c),h=this.grid.query(f.minX-u,f.minY-u,f.maxX+u,f.maxY+u),p=Kc(t.cameraQueryGeometry),d=0,g=this.grid3D.query(p.minX-u,p.minY-u,p.maxX+u,p.maxY+u,(function(e,r,n,a){return function(t,e,r,n,a){for(var o=0,s=t;o&lt;s.length;o+=1){var l=s[o];if(e&lt;=l.x&amp;&amp;r&lt;=l.y&amp;&amp;n&gt;=l.x&amp;&amp;a&gt;=l.y)return!0}var c=[new i(e,r),new i(e,a),new i(n,a),new i(n,r)];if(t.length&gt;2)for(var u=0,f=c;u&lt;f.length;u+=1)if(Wa(t,f[u]))return!0;for(var h=0;h&lt;t.length-1;h++)if(Xa(t[h],t[h+1],c))return!0;return!1}(t.cameraQueryGeometry,e-u,r-u,n+u,a+u)}));d&lt;g.length;d+=1)h.push(g[d]);h.sort(Qc);for(var m,v={},y=function(i){var u=h[i];if(u!==m){m=u;var f=a.featureIndexArray.get(u),p=null;a.loadMatchingFeature(v,f.bucketIndex,f.sourceLayerIndex,f.featureIndex,l,o.layers,o.availableImages,e,r,n,(function(e,r,n){return p||(p=Da(e)),r.queryIntersectsFeature(c,e,n,p,a.z,t.transform,s,t.pixelPosMatrix)}))}},x=0;x&lt;h.length;x++)y(x);return v},Zc.prototype.loadMatchingFeature=function(t,e,r,n,i,a,o,s,l,c,u){var f=this.bucketLayerIDs[e];if(!a||function(t,e){for(var r=0;r&lt;t.length;r++)if(e.indexOf(t[r])&gt;=0)return!0;return!1}(a,f)){var h=this.sourceLayerCoder.decode(r),p=this.vtLayers[h].feature(n);if(i.filter(new ii(this.tileID.overscaledZ),p))for(var d=this.getId(p,h),g=0;g&lt;f.length;g++){var m=f[g];if(!(a&amp;&amp;a.indexOf(m)&lt;0)){var v=s[m];if(v){var y={};void 0!==d&amp;&amp;c&amp;&amp;(y=c.getState(v.sourceLayer||&quot;_geojsonTileLayer&quot;,d));var x=l[m];x.paint=Jc(x.paint,v.paint,p,y,o),x.layout=Jc(x.layout,v.layout,p,y,o);var b=!u||u(p,v,y);if(b){var _=new Yc(p,this.z,this.x,this.y,d);_.layer=x;var w=t[m];void 0===w&amp;&amp;(w=t[m]=[]),w.push({featureIndex:n,feature:_,intersectionZ:b})}}}}}},Zc.prototype.lookupSymbolFeatures=function(t,e,r,n,i,a,o,s){var l={};this.loadVTLayers();for(var c=rn(i),u=0,f=t;u&lt;f.length;u+=1)this.loadMatchingFeature(l,r,n,f[u],c,a,o,s,e);return l},Zc.prototype.hasLayer=function(t){for(var e=0,r=this.bucketLayerIDs;e&lt;r.length;e+=1)for(var n=0,i=r[e];n&lt;i.length;n+=1)if(t===i[n])return!0;return!1},Zc.prototype.getId=function(t,e){var r=t.id;return this.promoteId&amp;&amp;&quot;boolean&quot;==typeof(r=t.properties[&quot;string&quot;==typeof this.promoteId?this.promoteId:this.promoteId[e]])&amp;&amp;(r=Number(r)),r},Dn(&quot;FeatureIndex&quot;,Zc,{omit:[&quot;rawTileData&quot;,&quot;sourceLayerCoder&quot;]});var $c=function(t,e){this.tileID=t,this.uid=h(),this.uses=0,this.tileSize=e,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.expiredRequestCount=0,this.state=&quot;loading&quot;};$c.prototype.registerFadeDuration=function(t){var e=t+this.timeAdded;e&lt;R.now()||this.fadeEndTime&amp;&amp;e&lt;this.fadeEndTime||(this.fadeEndTime=e)},$c.prototype.wasRequested=function(){return&quot;errored&quot;===this.state||&quot;loaded&quot;===this.state||&quot;reloading&quot;===this.state},$c.prototype.loadVectorData=function(t,e,r){if(this.hasData()&amp;&amp;this.unloadVectorData(),this.state=&quot;loaded&quot;,t){for(var n in t.featureIndex&amp;&amp;(this.latestFeatureIndex=t.featureIndex,t.rawTileData?(this.latestRawTileData=t.rawTileData,this.latestFeatureIndex.rawTileData=t.rawTileData):this.latestRawTileData&amp;&amp;(this.latestFeatureIndex.rawTileData=this.latestRawTileData)),this.collisionBoxArray=t.collisionBoxArray,this.buckets=function(t,e){var r={};if(!e)return r;for(var n=function(){var t=a[i],n=t.layerIds.map((function(t){return e.getLayer(t)})).filter(Boolean);if(0!==n.length){t.layers=n,t.stateDependentLayerIds&amp;&amp;(t.stateDependentLayers=t.stateDependentLayerIds.map((function(t){return n.filter((function(e){return e.id===t}))[0]})));for(var o=0,s=n;o&lt;s.length;o+=1)r[s[o].id]=t}},i=0,a=t;i&lt;a.length;i+=1)n();return r}(t.buckets,e.style),this.hasSymbolBuckets=!1,this.buckets){var i=this.buckets[n];if(i instanceof fc){if(this.hasSymbolBuckets=!0,!r)break;i.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(var a in this.buckets){var o=this.buckets[a];if(o instanceof fc&amp;&amp;o.hasRTLText){this.hasRTLText=!0,ni.isLoading()||ni.isLoaded()||&quot;deferred&quot;!==ei()||ri();break}}for(var s in this.queryPadding=0,this.buckets){var l=this.buckets[s];this.queryPadding=Math.max(this.queryPadding,e.style.getLayer(s).queryRadius(l))}t.imageAtlas&amp;&amp;(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&amp;&amp;(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new Xi},$c.prototype.unloadVectorData=function(){for(var t in this.buckets)this.buckets[t].destroy();this.buckets={},this.imageAtlasTexture&amp;&amp;this.imageAtlasTexture.destroy(),this.imageAtlas&amp;&amp;(this.imageAtlas=null),this.glyphAtlasTexture&amp;&amp;this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state=&quot;unloaded&quot;},$c.prototype.getBucket=function(t){return this.buckets[t.id]},$c.prototype.upload=function(t){for(var e in this.buckets){var r=this.buckets[e];r.uploadPending()&amp;&amp;r.upload(t)}var n=t.gl;this.imageAtlas&amp;&amp;!this.imageAtlas.uploaded&amp;&amp;(this.imageAtlasTexture=new Sc(t,this.imageAtlas.image,n.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&amp;&amp;(this.glyphAtlasTexture=new Sc(t,this.glyphAtlasImage,n.ALPHA),this.glyphAtlasImage=null)},$c.prototype.prepare=function(t){this.imageAtlas&amp;&amp;this.imageAtlas.patchUpdatedImages(t,this.imageAtlasTexture)},$c.prototype.queryRenderedFeatures=function(t,e,r,n,i,a,o,s,l,c){return this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:n,cameraQueryGeometry:i,scale:a,tileSize:this.tileSize,pixelPosMatrix:c,transform:s,params:o,queryPadding:this.queryPadding*l},t,e,r):{}},$c.prototype.querySourceFeatures=function(t,e){var r=this.latestFeatureIndex;if(r&amp;&amp;r.rawTileData){var n=r.loadVTLayers(),i=e?e.sourceLayer:&quot;&quot;,a=n._geojsonTileLayer||n[i];if(a)for(var o=rn(e&amp;&amp;e.filter),s=this.tileID.canonical,l=s.z,c=s.x,u=s.y,f={z:l,x:c,y:u},h=0;h&lt;a.length;h++){var p=a.feature(h);if(o.filter(new ii(this.tileID.overscaledZ),p)){var d=r.getId(p,i),g=new Yc(p,l,c,u,d);g.tile=f,t.push(g)}}}},$c.prototype.hasData=function(){return&quot;loaded&quot;===this.state||&quot;reloading&quot;===this.state||&quot;expired&quot;===this.state},$c.prototype.patternsLoaded=function(){return this.imageAtlas&amp;&amp;!!Object.keys(this.imageAtlas.patternPositions).length},$c.prototype.setExpiryData=function(t){var e=this.expirationTime;if(t.cacheControl){var r=M(t.cacheControl);r[&quot;max-age&quot;]&amp;&amp;(this.expirationTime=Date.now()+1e3*r[&quot;max-age&quot;])}else t.expires&amp;&amp;(this.expirationTime=new Date(t.expires).getTime());if(this.expirationTime){var n=Date.now(),i=!1;if(this.expirationTime&gt;n)i=!1;else if(e)if(this.expirationTime&lt;e)i=!0;else{var a=this.expirationTime-e;a?this.expirationTime=n+Math.max(a,3e4):i=!0}else i=!0;i?(this.expiredRequestCount++,this.state=&quot;expired&quot;):this.expiredRequestCount=0}},$c.prototype.getExpiryTimeout=function(){if(this.expirationTime)return this.expiredRequestCount?1e3*(1&lt;&lt;Math.min(this.expiredRequestCount-1,31)):Math.min(this.expirationTime-(new Date).getTime(),Math.pow(2,31)-1)},$c.prototype.setFeatureState=function(t,e){if(this.latestFeatureIndex&amp;&amp;this.latestFeatureIndex.rawTileData&amp;&amp;0!==Object.keys(t).length){var r=this.latestFeatureIndex.loadVTLayers();for(var n in this.buckets)if(e.style.hasLayer(n)){var i=this.buckets[n],a=i.layers[0].sourceLayer||&quot;_geojsonTileLayer&quot;,o=r[a],s=t[a];if(o&amp;&amp;s&amp;&amp;0!==Object.keys(s).length){i.update(s,o,this.imageAtlas&amp;&amp;this.imageAtlas.patternPositions||{});var l=e&amp;&amp;e.style&amp;&amp;e.style.getLayer(n);l&amp;&amp;(this.queryPadding=Math.max(this.queryPadding,l.queryRadius(i)))}}}},$c.prototype.holdingForFade=function(){return void 0!==this.symbolFadeHoldUntil},$c.prototype.symbolFadeFinished=function(){return!this.symbolFadeHoldUntil||this.symbolFadeHoldUntil&lt;R.now()},$c.prototype.clearFadeHold=function(){this.symbolFadeHoldUntil=void 0},$c.prototype.setHoldDuration=function(t){this.symbolFadeHoldUntil=R.now()+t},$c.prototype.setDependencies=function(t,e){for(var r={},n=0,i=e;n&lt;i.length;n+=1)r[i[n]]=!0;this.dependencies[t]=r},$c.prototype.hasDependency=function(t,e){for(var r=0,n=t;r&lt;n.length;r+=1){var i=this.dependencies[n[r]];if(i)for(var a=0,o=e;a&lt;o.length;a+=1)if(i[o[a]])return!0}return!1};var tu=self.performance,eu=function(t){this._marks={start:[t.url,&quot;start&quot;].join(&quot;#&quot;),end:[t.url,&quot;end&quot;].join(&quot;#&quot;),measure:t.url.toString()},tu.mark(this._marks.start)};eu.prototype.finish=function(){tu.mark(this._marks.end);var t=tu.getEntriesByName(this._marks.measure);return 0===t.length&amp;&amp;(tu.measure(this._marks.measure,this._marks.start,this._marks.end),t=tu.getEntriesByName(this._marks.measure),tu.clearMarks(this._marks.start),tu.clearMarks(this._marks.end),tu.clearMeasures(this._marks.measure)),t},t.Actor=Cc,t.AlphaImage=ho,t.CanonicalTileID=jc,t.CollisionBoxArray=Xi,t.Color=Kt,t.DEMData=Hc,t.DataConstantProperty=pi,t.DictionaryCoder=Gc,t.EXTENT=8192,t.ErrorEvent=kt,t.EvaluationParameters=ii,t.Event=Tt,t.Evented=Mt,t.FeatureIndex=Zc,t.FillBucket=rs,t.FillExtrusionBucket=xs,t.ImageAtlas=dl,t.ImagePosition=hl,t.LineBucket=Cs,t.LngLat=Pc,t.LngLatBounds=Ic,t.MercatorCoordinate=Nc,t.ONE_EM=24,t.OverscaledTileID=Vc,t.Point=i,t.Point$1=i,t.Properties=yi,t.Protobuf=Hs,t.RGBAImage=po,t.RequestManager=q,t.RequestPerformance=eu,t.ResourceType=ht,t.SegmentVector=ia,t.SourceFeatureState=Xc,t.StructArrayLayout1ui2=Hi,t.StructArrayLayout2f1f2i16=Di,t.StructArrayLayout2i4=Mi,t.StructArrayLayout3ui6=Fi,t.StructArrayLayout4i8=Ai,t.SymbolBucket=fc,t.Texture=Sc,t.Tile=$c,t.Transitionable=si,t.Uniform1f=va,t.Uniform1i=ma,t.Uniform2f=ya,t.Uniform3f=xa,t.Uniform4f=ba,t.UniformColor=_a,t.UniformMatrix4f=Ta,t.UnwrappedTileID=Uc,t.ValidationError=St,t.WritingMode=gl,t.ZoomHistory=Un,t.add=function(t,e,r){return t[0]=e[0]+r[0],t[1]=e[1]+r[1],t[2]=e[2]+r[2],t},t.addDynamicAttributes=sc,t.asyncAll=function(t,e,r){if(!t.length)return r(null,[]);var n=t.length,i=new Array(t.length),a=null;t.forEach((function(t,o){e(t,(function(t,e){t&amp;&amp;(a=t),i[o]=e,0==--n&amp;&amp;r(a,i)}))}))},t.bezier=o,t.bindAll=g,t.browser=R,t.cacheEntryPossiblyAdded=function(t){++ut&gt;ot&amp;&amp;(t.getActor().send(&quot;enforceCacheSizeLimit&quot;,at),ut=0)},t.clamp=l,t.clearTileCache=function(t){var e=self.caches.delete(&quot;mapbox-tiles&quot;);t&amp;&amp;e.catch(t).then((function(){return t()}))},t.clipLine=jl,t.clone=function(t){var e=new to(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},t.clone$1=x,t.clone$2=function(t){var e=new to(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},t.collisionCircleLayout=Ns,t.config=F,t.create=function(){var t=new to(16);return to!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},t.create$1=function(){var t=new to(9);return to!=Float32Array&amp;&amp;(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},t.create$2=function(){var t=new to(4);return to!=Float32Array&amp;&amp;(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},t.createCommonjsModule=e,t.createExpression=qr,t.createLayout=Ti,t.createStyleLayer=function(t){return&quot;custom&quot;===t.type?new bc(t):new _c[t.type](t)},t.cross=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=r[0],s=r[1],l=r[2];return t[0]=i*l-a*s,t[1]=a*o-n*l,t[2]=n*s-i*o,t},t.deepEqual=function t(e,r){if(Array.isArray(e)){if(!Array.isArray(r)||e.length!==r.length)return!1;for(var n=0;n&lt;e.length;n++)if(!t(e[n],r[n]))return!1;return!0}if(&quot;object&quot;==typeof e&amp;&amp;null!==e&amp;&amp;null!==r){if(&quot;object&quot;!=typeof r)return!1;if(Object.keys(e).length!==Object.keys(r).length)return!1;for(var i in e)if(!t(e[i],r[i]))return!1;return!0}return e===r},t.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},t.dot$1=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},t.ease=s,t.emitValidationErrors=Cn,t.endsWith=m,t.enforceCacheSizeLimit=function(t){st(),Q&amp;&amp;Q.then((function(e){e.keys().then((function(r){for(var n=0;n&lt;r.length-t;n++)e.delete(r[n])}))}))},t.evaluateSizeForFeature=Il,t.evaluateSizeForZoom=Pl,t.evaluateVariableOffset=$l,t.evented=ti,t.extend=u,t.featureFilter=rn,t.filterObject=y,t.fromRotation=function(t,e){var r=Math.sin(e),n=Math.cos(e);return t[0]=n,t[1]=r,t[2]=0,t[3]=-r,t[4]=n,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},t.getAnchorAlignment=Al,t.getAnchorJustification=tc,t.getArrayBuffer=yt,t.getImage=bt,t.getJSON=function(t,e){return vt(u(t,{type:&quot;json&quot;}),e)},t.getRTLTextPluginStatus=ei,t.getReferrer=mt,t.getVideo=function(t,e){var r,n,i=self.document.createElement(&quot;video&quot;);i.muted=!0,i.onloadstart=function(){e(null,i)};for(var a=0;a&lt;t.length;a++){var o=self.document.createElement(&quot;source&quot;);r=t[a],n=void 0,(n=self.document.createElement(&quot;a&quot;)).href=r,(n.protocol!==self.document.location.protocol||n.host!==self.document.location.host)&amp;&amp;(i.crossOrigin=&quot;Anonymous&quot;),o.src=t[a],i.appendChild(o)}return{cancel:function(){}}},t.identity=eo,t.invert=function(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],m=e[14],v=e[15],y=r*s-n*o,x=r*l-i*o,b=r*c-a*o,_=n*l-i*s,w=n*c-a*s,T=i*c-a*l,k=u*g-f*d,M=u*m-h*d,A=u*v-p*d,S=f*m-h*g,E=f*v-p*g,C=h*v-p*m,L=y*C-x*E+b*S+_*A-w*M+T*k;return L?(t[0]=(s*C-l*E+c*S)*(L=1/L),t[1]=(i*E-n*C-a*S)*L,t[2]=(g*T-m*w+v*_)*L,t[3]=(h*w-f*T-p*_)*L,t[4]=(l*A-o*C-c*M)*L,t[5]=(r*C-i*A+a*M)*L,t[6]=(m*b-d*T-v*x)*L,t[7]=(u*T-h*b+p*x)*L,t[8]=(o*E-s*A+c*k)*L,t[9]=(n*A-r*E-a*k)*L,t[10]=(d*w-g*b+v*y)*L,t[11]=(f*b-u*w-p*y)*L,t[12]=(s*M-o*S-l*k)*L,t[13]=(r*S-n*M+i*k)*L,t[14]=(g*x-d*_-m*y)*L,t[15]=(u*_-f*x+h*y)*L,t):null},t.isChar=Vn,t.isMapboxURL=H,t.keysDifference=function(t,e){var r=[];for(var n in t)n in e||r.push(n);return r},t.makeRequest=vt,t.mapObject=v,t.mercatorXfromLng=Dc,t.mercatorYfromLat=Rc,t.mercatorZfromAltitude=Fc,t.mul=io,t.multiply=ro,t.mvt=gs,t.normalize=function(t,e){var r=e[0],n=e[1],i=e[2],a=r*r+n*n+i*i;return a&gt;0&amp;&amp;(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t},t.number=Ue,t.offscreenCanvasSupported=ft,t.ortho=function(t,e,r,n,i,a,o){var s=1/(e-r),l=1/(n-i),c=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*c,t[11]=0,t[12]=(e+r)*s,t[13]=(i+n)*l,t[14]=(o+a)*c,t[15]=1,t},t.parseGlyphPBF=function(t){return new Hs(t).readFields(ll,[])},t.pbf=Hs,t.performSymbolLayout=function(t,e,r,n,i,a,o){t.createArrays(),t.tilePixelRatio=8192/(512*t.overscaling),t.compareText={},t.iconsNeedLinear=!1;var s=t.layers[0].layout,l=t.layers[0]._unevaluatedLayout._values,c={};if(&quot;composite&quot;===t.textSizeData.kind){var u=t.textSizeData,f=u.maxZoom;c.compositeTextSizes=[l[&quot;text-size&quot;].possiblyEvaluate(new ii(u.minZoom),o),l[&quot;text-size&quot;].possiblyEvaluate(new ii(f),o)]}if(&quot;composite&quot;===t.iconSizeData.kind){var h=t.iconSizeData,p=h.maxZoom;c.compositeIconSizes=[l[&quot;icon-size&quot;].possiblyEvaluate(new ii(h.minZoom),o),l[&quot;icon-size&quot;].possiblyEvaluate(new ii(p),o)]}c.layoutTextSize=l[&quot;text-size&quot;].possiblyEvaluate(new ii(t.zoom+1),o),c.layoutIconSize=l[&quot;icon-size&quot;].possiblyEvaluate(new ii(t.zoom+1),o),c.textMaxSize=l[&quot;text-size&quot;].possiblyEvaluate(new ii(18));for(var d=24*s.get(&quot;text-line-height&quot;),g=&quot;map&quot;===s.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==s.get(&quot;symbol-placement&quot;),m=s.get(&quot;text-keep-upright&quot;),v=s.get(&quot;text-size&quot;),y=function(){var a=b[x],l=s.get(&quot;text-font&quot;).evaluate(a,{},o).join(&quot;,&quot;),u=v.evaluate(a,{},o),f=c.layoutTextSize.evaluate(a,{},o),h=c.layoutIconSize.evaluate(a,{},o),p={horizontal:{},vertical:void 0},y=a.text,w=[0,0];if(y){var T=y.toString(),k=24*s.get(&quot;text-letter-spacing&quot;).evaluate(a,{},o),M=function(t){for(var e=0,r=t;e&lt;r.length;e+=1)if(n=r[e].charCodeAt(0),Vn.Arabic(n)||Vn[&quot;Arabic Supplement&quot;](n)||Vn[&quot;Arabic Extended-A&quot;](n)||Vn[&quot;Arabic Presentation Forms-A&quot;](n)||Vn[&quot;Arabic Presentation Forms-B&quot;](n))return!1;var n;return!0}(T)?k:0,A=s.get(&quot;text-anchor&quot;).evaluate(a,{},o),S=s.get(&quot;text-variable-anchor&quot;);if(!S){var E=s.get(&quot;text-radial-offset&quot;).evaluate(a,{},o);w=E?$l(A,[24*E,Ql]):s.get(&quot;text-offset&quot;).evaluate(a,{},o).map((function(t){return 24*t}))}var C=g?&quot;center&quot;:s.get(&quot;text-justify&quot;).evaluate(a,{},o),L=s.get(&quot;symbol-placement&quot;),I=&quot;point&quot;===L?24*s.get(&quot;text-max-width&quot;).evaluate(a,{},o):0,P=function(){t.allowVerticalPlacement&amp;&amp;qn(T)&amp;&amp;(p.vertical=yl(y,e,r,i,l,I,d,A,&quot;left&quot;,M,w,gl.vertical,!0,L,f,u))};if(!g&amp;&amp;S){for(var z=&quot;auto&quot;===C?S.map((function(t){return tc(t)})):[C],O=!1,D=0;D&lt;z.length;D++){var R=z[D];if(!p.horizontal[R])if(O)p.horizontal[R]=p.horizontal[0];else{var F=yl(y,e,r,i,l,I,d,&quot;center&quot;,R,M,w,gl.horizontal,!1,L,f,u);F&amp;&amp;(p.horizontal[R]=F,O=1===F.positionedLines.length)}}P()}else{&quot;auto&quot;===C&amp;&amp;(C=tc(A));var B=yl(y,e,r,i,l,I,d,A,C,M,w,gl.horizontal,!1,L,f,u);B&amp;&amp;(p.horizontal[C]=B),P(),qn(T)&amp;&amp;g&amp;&amp;m&amp;&amp;(p.vertical=yl(y,e,r,i,l,I,d,A,C,M,w,gl.vertical,!1,L,f,u))}}var N=void 0,j=!1;if(a.icon&amp;&amp;a.icon.name){var U=n[a.icon.name];U&amp;&amp;(N=function(t,e,r){var n=Al(r),i=e[0]-t.displaySize[0]*n.horizontalAlign,a=e[1]-t.displaySize[1]*n.verticalAlign;return{image:t,top:a,bottom:a+t.displaySize[1],left:i,right:i+t.displaySize[0]}}(i[a.icon.name],s.get(&quot;icon-offset&quot;).evaluate(a,{},o),s.get(&quot;icon-anchor&quot;).evaluate(a,{},o)),j=U.sdf,void 0===t.sdfIcons?t.sdfIcons=U.sdf:t.sdfIcons!==U.sdf&amp;&amp;_(&quot;Style sheet warning: Cannot mix SDF and non-SDF icons in one buffer&quot;),(U.pixelRatio!==t.pixelRatio||0!==s.get(&quot;icon-rotate&quot;).constantOr(1))&amp;&amp;(t.iconsNeedLinear=!0))}var V=rc(p.horizontal)||p.vertical;t.iconsInText=!!V&amp;&amp;V.iconsInText,(V||N)&amp;&amp;function(t,e,r,n,i,a,o,s,l,c,u){var f=a.textMaxSize.evaluate(e,{});void 0===f&amp;&amp;(f=o);var h,p=t.layers[0].layout,d=p.get(&quot;icon-offset&quot;).evaluate(e,{},u),g=rc(r.horizontal),m=o/24,v=t.tilePixelRatio*m,y=t.tilePixelRatio*f/24,x=t.tilePixelRatio*s,b=t.tilePixelRatio*p.get(&quot;symbol-spacing&quot;),w=p.get(&quot;text-padding&quot;)*t.tilePixelRatio,T=p.get(&quot;icon-padding&quot;)*t.tilePixelRatio,k=p.get(&quot;text-max-angle&quot;)/180*Math.PI,M=&quot;map&quot;===p.get(&quot;text-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==p.get(&quot;symbol-placement&quot;),A=&quot;map&quot;===p.get(&quot;icon-rotation-alignment&quot;)&amp;&amp;&quot;point&quot;!==p.get(&quot;symbol-placement&quot;),S=p.get(&quot;symbol-placement&quot;),E=b/2,C=p.get(&quot;icon-text-fit&quot;);n&amp;&amp;&quot;none&quot;!==C&amp;&amp;(t.allowVerticalPlacement&amp;&amp;r.vertical&amp;&amp;(h=El(n,r.vertical,C,p.get(&quot;icon-text-fit-padding&quot;),d,m)),g&amp;&amp;(n=El(n,g,C,p.get(&quot;icon-text-fit-padding&quot;),d,m)));var L=function(s,f){f.x&lt;0||f.x&gt;=8192||f.y&lt;0||f.y&gt;=8192||function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g,m,v,y,x,b,w,T,k,M){var A,S,E,C,L,I=t.addToLineVertexArray(e,r),P=0,z=0,O=0,D=0,R=-1,F=-1,B={},N=ca(&quot;&quot;),j=0,U=0;if(void 0===s._unevaluatedLayout.getValue(&quot;text-radial-offset&quot;)?(j=(A=s.layout.get(&quot;text-offset&quot;).evaluate(b,{},k).map((function(t){return 24*t})))[0],U=A[1]):(j=24*s.layout.get(&quot;text-radial-offset&quot;).evaluate(b,{},k),U=Ql),t.allowVerticalPlacement&amp;&amp;n.vertical){var V=s.layout.get(&quot;text-rotate&quot;).evaluate(b,{},k)+90;C=new Yl(l,e,c,u,f,n.vertical,h,p,d,V),o&amp;&amp;(L=new Yl(l,e,c,u,f,o,m,v,d,V))}if(i){var q=s.layout.get(&quot;icon-rotate&quot;).evaluate(b,{}),H=&quot;none&quot;!==s.layout.get(&quot;icon-text-fit&quot;),G=Ul(i,q,T,H),Y=o?Ul(o,q,T,H):void 0;E=new Yl(l,e,c,u,f,i,m,v,!1,q),P=4*G.length;var W=t.iconSizeData,X=null;&quot;source&quot;===W.kind?(X=[128*s.layout.get(&quot;icon-size&quot;).evaluate(b,{})])[0]&gt;32640&amp;&amp;_(t.layerIds[0]+': Value for &quot;icon-size&quot; is &gt;= 255. Reduce your &quot;icon-size&quot;.'):&quot;composite&quot;===W.kind&amp;&amp;((X=[128*w.compositeIconSizes[0].evaluate(b,{},k),128*w.compositeIconSizes[1].evaluate(b,{},k)])[0]&gt;32640||X[1]&gt;32640)&amp;&amp;_(t.layerIds[0]+': Value for &quot;icon-size&quot; is &gt;= 255. Reduce your &quot;icon-size&quot;.'),t.addSymbols(t.icon,G,X,x,y,b,!1,e,I.lineStartIndex,I.lineLength,-1,k),R=t.icon.placedSymbolArray.length-1,Y&amp;&amp;(z=4*Y.length,t.addSymbols(t.icon,Y,X,x,y,b,gl.vertical,e,I.lineStartIndex,I.lineLength,-1,k),F=t.icon.placedSymbolArray.length-1)}for(var Z in n.horizontal){var J=n.horizontal[Z];if(!S){N=ca(J.text);var K=s.layout.get(&quot;text-rotate&quot;).evaluate(b,{},k);S=new Yl(l,e,c,u,f,J,h,p,d,K)}var Q=1===J.positionedLines.length;if(O+=ec(t,e,J,a,s,d,b,g,I,n.vertical?gl.horizontal:gl.horizontalOnly,Q?Object.keys(n.horizontal):[Z],B,R,w,k),Q)break}n.vertical&amp;&amp;(D+=ec(t,e,n.vertical,a,s,d,b,g,I,gl.vertical,[&quot;vertical&quot;],B,F,w,k));var $=S?S.boxStartIndex:t.collisionBoxArray.length,tt=S?S.boxEndIndex:t.collisionBoxArray.length,et=C?C.boxStartIndex:t.collisionBoxArray.length,rt=C?C.boxEndIndex:t.collisionBoxArray.length,nt=E?E.boxStartIndex:t.collisionBoxArray.length,it=E?E.boxEndIndex:t.collisionBoxArray.length,at=L?L.boxStartIndex:t.collisionBoxArray.length,ot=L?L.boxEndIndex:t.collisionBoxArray.length,st=-1,lt=function(t,e){return t&amp;&amp;t.circleDiameter?Math.max(t.circleDiameter,e):e};st=lt(S,st),st=lt(C,st),st=lt(E,st);var ct=(st=lt(L,st))&gt;-1?1:0;ct&amp;&amp;(st*=M/24),t.glyphOffsetArray.length&gt;=fc.MAX_GLYPHS&amp;&amp;_(&quot;Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907&quot;),void 0!==b.sortKey&amp;&amp;t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey),t.symbolInstances.emplaceBack(e.x,e.y,B.right&gt;=0?B.right:-1,B.center&gt;=0?B.center:-1,B.left&gt;=0?B.left:-1,B.vertical||-1,R,F,N,$,tt,et,rt,nt,it,at,ot,c,O,D,P,z,ct,0,h,j,U,st)}(t,f,s,r,n,i,h,t.layers[0],t.collisionBoxArray,e.index,e.sourceLayerIndex,t.index,v,w,M,l,x,T,A,d,e,a,c,u,o)};if(&quot;line&quot;===S)for(var I=0,P=jl(e.geometry,0,0,8192,8192);I&lt;P.length;I+=1)for(var z=P[I],O=0,D=Nl(z,b,k,r.vertical||g,n,24,y,t.overscaling,8192);O&lt;D.length;O+=1){var R=D[O];g&amp;&amp;nc(t,g.text,E,R)||L(z,R)}else if(&quot;line-center&quot;===S)for(var F=0,B=e.geometry;F&lt;B.length;F+=1){var N=B[F];if(N.length&gt;1){var j=Bl(N,k,r.vertical||g,n,24,y);j&amp;&amp;L(N,j)}}else if(&quot;Polygon&quot;===e.type)for(var U=0,V=Qo(e.geometry,0);U&lt;V.length;U+=1){var q=V[U],H=Zl(q,16);L(q[0],new Cl(H.x,H.y,0))}else if(&quot;LineString&quot;===e.type)for(var G=0,Y=e.geometry;G&lt;Y.length;G+=1){var W=Y[G];L(W,new Cl(W[0].x,W[0].y,0))}else if(&quot;Point&quot;===e.type)for(var X=0,Z=e.geometry;X&lt;Z.length;X+=1)for(var J=0,K=Z[X];J&lt;K.length;J+=1){var Q=K[J];L([Q],new Cl(Q.x,Q.y,0))}}(t,a,p,N,n,c,f,h,w,j,o)},x=0,b=t.features;x&lt;b.length;x+=1)y();a&amp;&amp;t.generateCollisionDebugBuffers()},t.perspective=function(t,e,r,n,i){var a,o=1/Math.tan(e/2);return t[0]=o/r,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&amp;&amp;i!==1/0?(t[10]=(i+n)*(a=1/(n-i)),t[14]=2*i*n*a):(t[10]=-1,t[14]=-2*n),t},t.pick=function(t,e){for(var r={},n=0;n&lt;e.length;n++){var i=e[n];i in t&amp;&amp;(r[i]=t[i])}return r},t.plugin=ni,t.polygonIntersectsPolygon=Ba,t.postMapLoadEvent=it,t.postTurnstileEvent=rt,t.potpack=fl,t.refProperties=[&quot;type&quot;,&quot;source&quot;,&quot;source-layer&quot;,&quot;minzoom&quot;,&quot;maxzoom&quot;,&quot;filter&quot;,&quot;layout&quot;],t.register=Dn,t.registerForPluginStateChange=function(t){return t({pluginStatus:Jn,pluginURL:Kn}),ti.on(&quot;pluginStateChange&quot;,t),t},t.rotate=function(t,e,r){var n=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(r),l=Math.cos(r);return t[0]=n*l+a*s,t[1]=i*l+o*s,t[2]=n*-s+a*l,t[3]=i*-s+o*l,t},t.rotateX=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[4],o=e[5],s=e[6],l=e[7],c=e[8],u=e[9],f=e[10],h=e[11];return e!==t&amp;&amp;(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+c*n,t[5]=o*i+u*n,t[6]=s*i+f*n,t[7]=l*i+h*n,t[8]=c*i-a*n,t[9]=u*i-o*n,t[10]=f*i-s*n,t[11]=h*i-l*n,t},t.rotateZ=function(t,e,r){var n=Math.sin(r),i=Math.cos(r),a=e[0],o=e[1],s=e[2],l=e[3],c=e[4],u=e[5],f=e[6],h=e[7];return e!==t&amp;&amp;(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+c*n,t[1]=o*i+u*n,t[2]=s*i+f*n,t[3]=l*i+h*n,t[4]=c*i-a*n,t[5]=u*i-o*n,t[6]=f*i-s*n,t[7]=h*i-l*n,t},t.scale=function(t,e,r){var n=r[0],i=r[1],a=r[2];return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},t.scale$1=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t},t.scale$2=function(t,e,r){return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t},t.setCacheLimits=function(t,e){at=t,ot=e},t.setRTLTextPlugin=function(t,e,r){if(void 0===r&amp;&amp;(r=!1),&quot;deferred&quot;===Jn||&quot;loading&quot;===Jn||&quot;loaded&quot;===Jn)throw new Error(&quot;setRTLTextPlugin cannot be called multiple times.&quot;);Kn=R.resolveURL(t),Jn=&quot;deferred&quot;,Zn=e,$n(),r||ri()},t.sphericalToCartesian=function(t){var e=t[0],r=t[1],n=t[2];return r+=90,r*=Math.PI/180,n*=Math.PI/180,{x:e*Math.cos(r)*Math.sin(n),y:e*Math.sin(r)*Math.sin(n),z:e*Math.cos(n)}},t.sqrLen=function(t){var e=t[0],r=t[1];return e*e+r*r},t.styleSpec=At,t.sub=function(t,e,r){return t[0]=e[0]-r[0],t[1]=e[1]-r[1],t[2]=e[2]-r[2],t},t.symbolSize=zl,t.transformMat3=function(t,e,r){var n=e[0],i=e[1],a=e[2];return t[0]=n*r[0]+i*r[3]+a*r[6],t[1]=n*r[1]+i*r[4]+a*r[7],t[2]=n*r[2]+i*r[5]+a*r[8],t},t.transformMat4=ao,t.translate=function(t,e,r){var n,i,a,o,s,l,c,u,f,h,p,d,g=r[0],m=r[1],v=r[2];return e===t?(t[12]=e[0]*g+e[4]*m+e[8]*v+e[12],t[13]=e[1]*g+e[5]*m+e[9]*v+e[13],t[14]=e[2]*g+e[6]*m+e[10]*v+e[14],t[15]=e[3]*g+e[7]*m+e[11]*v+e[15]):(i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=n=e[0],t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=c,t[7]=u,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=n*g+s*m+f*v+e[12],t[13]=i*g+l*m+h*v+e[13],t[14]=a*g+c*m+p*v+e[14],t[15]=o*g+u*m+d*v+e[15]),t},t.triggerPluginCompletionEvent=Qn,t.uniqueId=h,t.validateCustomStyleLayer=function(t){var e=[],r=t.id;return void 0===r&amp;&amp;e.push({message:&quot;layers.&quot;+r+': missing required property &quot;id&quot;'}),void 0===t.render&amp;&amp;e.push({message:&quot;layers.&quot;+r+': missing required method &quot;render&quot;'}),t.renderingMode&amp;&amp;&quot;2d&quot;!==t.renderingMode&amp;&amp;&quot;3d&quot;!==t.renderingMode&amp;&amp;e.push({message:&quot;layers.&quot;+r+': property &quot;renderingMode&quot; must be either &quot;2d&quot; or &quot;3d&quot;'}),e},t.validateLight=An,t.validateStyle=Mn,t.values=function(t){var e=[];for(var r in t)e.push(t[r]);return e},t.vectorTile=gs,t.version=&quot;1.10.1&quot;,t.warnOnce=_,t.webpSupported=B,t.window=self,t.wrap=c})),n(0,(function(t){function e(t){var r=typeof t;if(&quot;number&quot;===r||&quot;boolean&quot;===r||&quot;string&quot;===r||null==t)return JSON.stringify(t);if(Array.isArray(t)){for(var n=&quot;[&quot;,i=0,a=t;i&lt;a.length;i+=1)n+=e(a[i])+&quot;,&quot;;return n+&quot;]&quot;}for(var o=Object.keys(t).sort(),s=&quot;{&quot;,l=0;l&lt;o.length;l++)s+=JSON.stringify(o[l])+&quot;:&quot;+e(t[o[l]])+&quot;,&quot;;return s+&quot;}&quot;}function r(r){for(var n=&quot;&quot;,i=0,a=t.refProperties;i&lt;a.length;i+=1)n+=&quot;/&quot;+e(r[a[i]]);return n}var n=function(t){this.keyCache={},t&amp;&amp;this.replace(t)};n.prototype.replace=function(t){this._layerConfigs={},this._layers={},this.update(t,[])},n.prototype.update=function(e,n){for(var i=this,a=0,o=e;a&lt;o.length;a+=1){var s=o[a];this._layerConfigs[s.id]=s;var l=this._layers[s.id]=t.createStyleLayer(s);l._featureFilter=t.featureFilter(l.filter),this.keyCache[s.id]&amp;&amp;delete this.keyCache[s.id]}for(var c=0,u=n;c&lt;u.length;c+=1){var f=u[c];delete this.keyCache[f],delete this._layerConfigs[f],delete this._layers[f]}this.familiesBySource={};for(var h=0,p=function(t,e){for(var n={},i=0;i&lt;t.length;i++){var a=e&amp;&amp;e[t[i].id]||r(t[i]);e&amp;&amp;(e[t[i].id]=a);var o=n[a];o||(o=n[a]=[]),o.push(t[i])}var s=[];for(var l in n)s.push(n[l]);return s}(t.values(this._layerConfigs),this.keyCache);h&lt;p.length;h+=1){var d=p[h].map((function(t){return i._layers[t.id]})),g=d[0];if(&quot;none&quot;!==g.visibility){var m=g.source||&quot;&quot;,v=this.familiesBySource[m];v||(v=this.familiesBySource[m]={});var y=g.sourceLayer||&quot;_geojsonTileLayer&quot;,x=v[y];x||(x=v[y]=[]),x.push(d)}}};var i=function(e){var r={},n=[];for(var i in e){var a=e[i],o=r[i]={};for(var s in a){var l=a[+s];if(l&amp;&amp;0!==l.bitmap.width&amp;&amp;0!==l.bitmap.height){var c={x:0,y:0,w:l.bitmap.width+2,h:l.bitmap.height+2};n.push(c),o[s]={rect:c,metrics:l.metrics}}}}var u=t.potpack(n),f=new t.AlphaImage({width:u.w||1,height:u.h||1});for(var h in e){var p=e[h];for(var d in p){var g=p[+d];if(g&amp;&amp;0!==g.bitmap.width&amp;&amp;0!==g.bitmap.height){var m=r[h][d].rect;t.AlphaImage.copy(g.bitmap,f,{x:0,y:0},{x:m.x+1,y:m.y+1},g.bitmap)}}}this.image=f,this.positions=r};t.register(&quot;GlyphAtlas&quot;,i);var a=function(e){this.tileID=new t.OverscaledTileID(e.tileID.overscaledZ,e.tileID.wrap,e.tileID.canonical.z,e.tileID.canonical.x,e.tileID.canonical.y),this.uid=e.uid,this.zoom=e.zoom,this.pixelRatio=e.pixelRatio,this.tileSize=e.tileSize,this.source=e.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=e.showCollisionBoxes,this.collectResourceTiming=!!e.collectResourceTiming,this.returnDependencies=!!e.returnDependencies,this.promoteId=e.promoteId};function o(e,r,n){for(var i=new t.EvaluationParameters(r),a=0,o=e;a&lt;o.length;a+=1)o[a].recalculate(i,n)}function s(e,r){var n=t.getArrayBuffer(e.request,(function(e,n,i,a){e?r(e):n&amp;&amp;r(null,{vectorTile:new t.vectorTile.VectorTile(new t.pbf(n)),rawData:n,cacheControl:i,expires:a})}));return function(){n.cancel(),r()}}a.prototype.parse=function(e,r,n,a,s){var l=this;this.status=&quot;parsing&quot;,this.data=e,this.collisionBoxArray=new t.CollisionBoxArray;var c=new t.DictionaryCoder(Object.keys(e.layers).sort()),u=new t.FeatureIndex(this.tileID,this.promoteId);u.bucketLayerIDs=[];var f,h,p,d,g={},m={featureIndex:u,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:n},v=r.familiesBySource[this.source];for(var y in v){var x=e.layers[y];if(x){1===x.version&amp;&amp;t.warnOnce('Vector tile source &quot;'+this.source+'&quot; layer &quot;'+y+'&quot; does not use vector tile spec v2 and therefore may have some rendering errors.');for(var b=c.encode(y),_=[],w=0;w&lt;x.length;w++){var T=x.feature(w),k=u.getId(T,y);_.push({feature:T,id:k,index:w,sourceLayerIndex:b})}for(var M=0,A=v[y];M&lt;A.length;M+=1){var S=A[M],E=S[0];E.minzoom&amp;&amp;this.zoom&lt;Math.floor(E.minzoom)||E.maxzoom&amp;&amp;this.zoom&gt;=E.maxzoom||&quot;none&quot;!==E.visibility&amp;&amp;(o(S,this.zoom,n),(g[E.id]=E.createBucket({index:u.bucketLayerIDs.length,layers:S,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:b,sourceID:this.source})).populate(_,m,this.tileID.canonical),u.bucketLayerIDs.push(S.map((function(t){return t.id}))))}}}var C=t.mapObject(m.glyphDependencies,(function(t){return Object.keys(t).map(Number)}));Object.keys(C).length?a.send(&quot;getGlyphs&quot;,{uid:this.uid,stacks:C},(function(t,e){f||(f=t,h=e,P.call(l))})):h={};var L=Object.keys(m.iconDependencies);L.length?a.send(&quot;getImages&quot;,{icons:L,source:this.source,tileID:this.tileID,type:&quot;icons&quot;},(function(t,e){f||(f=t,p=e,P.call(l))})):p={};var I=Object.keys(m.patternDependencies);function P(){if(f)return s(f);if(h&amp;&amp;p&amp;&amp;d){var e=new i(h),r=new t.ImageAtlas(p,d);for(var a in g){var l=g[a];l instanceof t.SymbolBucket?(o(l.layers,this.zoom,n),t.performSymbolLayout(l,h,e.positions,p,r.iconPositions,this.showCollisionBoxes,this.tileID.canonical)):l.hasPattern&amp;&amp;(l instanceof t.LineBucket||l instanceof t.FillBucket||l instanceof t.FillExtrusionBucket)&amp;&amp;(o(l.layers,this.zoom,n),l.addFeatures(m,this.tileID.canonical,r.patternPositions))}this.status=&quot;done&quot;,s(null,{buckets:t.values(g).filter((function(t){return!t.isEmpty()})),featureIndex:u,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:e.image,imageAtlas:r,glyphMap:this.returnDependencies?h:null,iconMap:this.returnDependencies?p:null,glyphPositions:this.returnDependencies?e.positions:null})}}I.length?a.send(&quot;getImages&quot;,{icons:I,source:this.source,tileID:this.tileID,type:&quot;patterns&quot;},(function(t,e){f||(f=t,d=e,P.call(l))})):d={},P.call(this)};var l=function(t,e,r,n){this.actor=t,this.layerIndex=e,this.availableImages=r,this.loadVectorData=n||s,this.loading={},this.loaded={}};l.prototype.loadTile=function(e,r){var n=this,i=e.uid;this.loading||(this.loading={});var o=!!(e&amp;&amp;e.request&amp;&amp;e.request.collectResourceTiming)&amp;&amp;new t.RequestPerformance(e.request),s=this.loading[i]=new a(e);s.abort=this.loadVectorData(e,(function(e,a){if(delete n.loading[i],e||!a)return s.status=&quot;done&quot;,n.loaded[i]=s,r(e);var l=a.rawData,c={};a.expires&amp;&amp;(c.expires=a.expires),a.cacheControl&amp;&amp;(c.cacheControl=a.cacheControl);var u={};if(o){var f=o.finish();f&amp;&amp;(u.resourceTiming=JSON.parse(JSON.stringify(f)))}s.vectorTile=a.vectorTile,s.parse(a.vectorTile,n.layerIndex,n.availableImages,n.actor,(function(e,n){if(e||!n)return r(e);r(null,t.extend({rawTileData:l.slice(0)},n,c,u))})),n.loaded=n.loaded||{},n.loaded[i]=s}))},l.prototype.reloadTile=function(t,e){var r=this,n=this.loaded,i=t.uid,a=this;if(n&amp;&amp;n[i]){var o=n[i];o.showCollisionBoxes=t.showCollisionBoxes;var s=function(t,n){var i=o.reloadCallback;i&amp;&amp;(delete o.reloadCallback,o.parse(o.vectorTile,a.layerIndex,r.availableImages,a.actor,i)),e(t,n)};&quot;parsing&quot;===o.status?o.reloadCallback=s:&quot;done&quot;===o.status&amp;&amp;(o.vectorTile?o.parse(o.vectorTile,this.layerIndex,this.availableImages,this.actor,s):s())}},l.prototype.abortTile=function(t,e){var r=this.loading,n=t.uid;r&amp;&amp;r[n]&amp;&amp;r[n].abort&amp;&amp;(r[n].abort(),delete r[n]),e()},l.prototype.removeTile=function(t,e){var r=this.loaded,n=t.uid;r&amp;&amp;r[n]&amp;&amp;delete r[n],e()};var c=t.window.ImageBitmap,u=function(){this.loaded={}};function f(t,e){if(0!==t.length){h(t[0],e);for(var r=1;r&lt;t.length;r++)h(t[r],!e)}}function h(t,e){for(var r=0,n=0,i=t.length,a=i-1;n&lt;i;a=n++)r+=(t[n][0]-t[a][0])*(t[a][1]+t[n][1]);r&gt;=0!=!!e&amp;&amp;t.reverse()}u.prototype.loadTile=function(e,r){var n=e.uid,i=e.encoding,a=e.rawImageData,o=c&amp;&amp;a instanceof c?this.getImageData(a):a,s=new t.DEMData(n,o,i);this.loaded=this.loaded||{},this.loaded[n]=s,r(null,s)},u.prototype.getImageData=function(e){this.offscreenCanvas&amp;&amp;this.offscreenCanvasContext||(this.offscreenCanvas=new OffscreenCanvas(e.width,e.height),this.offscreenCanvasContext=this.offscreenCanvas.getContext(&quot;2d&quot;)),this.offscreenCanvas.width=e.width,this.offscreenCanvas.height=e.height,this.offscreenCanvasContext.drawImage(e,0,0,e.width,e.height);var r=this.offscreenCanvasContext.getImageData(-1,-1,e.width+2,e.height+2);return this.offscreenCanvasContext.clearRect(0,0,this.offscreenCanvas.width,this.offscreenCanvas.height),new t.RGBAImage({width:r.width,height:r.height},r.data)},u.prototype.removeTile=function(t){var e=this.loaded,r=t.uid;e&amp;&amp;e[r]&amp;&amp;delete e[r]};var p=t.vectorTile.VectorTileFeature.prototype.toGeoJSON,d=function(e){this._feature=e,this.extent=t.EXTENT,this.type=e.type,this.properties=e.tags,&quot;id&quot;in e&amp;&amp;!isNaN(e.id)&amp;&amp;(this.id=parseInt(e.id,10))};d.prototype.loadGeometry=function(){if(1===this._feature.type){for(var e=[],r=0,n=this._feature.geometry;r&lt;n.length;r+=1){var i=n[r];e.push([new t.Point$1(i[0],i[1])])}return e}for(var a=[],o=0,s=this._feature.geometry;o&lt;s.length;o+=1){for(var l=[],c=0,u=s[o];c&lt;u.length;c+=1){var f=u[c];l.push(new t.Point$1(f[0],f[1]))}a.push(l)}return a},d.prototype.toGeoJSON=function(t,e,r){return p.call(this,t,e,r)};var g=function(e){this.layers={_geojsonTileLayer:this},this.name=&quot;_geojsonTileLayer&quot;,this.extent=t.EXTENT,this.length=e.length,this._features=e};g.prototype.feature=function(t){return new d(this._features[t])};var m=t.vectorTile.VectorTileFeature,v=y;function y(t,e){this.options=e||{},this.features=t,this.length=t.length}function x(t,e){this.id=&quot;number&quot;==typeof t.id?t.id:void 0,this.type=t.type,this.rawGeometry=1===t.type?[t.geometry]:t.geometry,this.properties=t.tags,this.extent=e||4096}y.prototype.feature=function(t){return new x(this.features[t],this.options.extent)},x.prototype.loadGeometry=function(){var e=this.rawGeometry;this.geometry=[];for(var r=0;r&lt;e.length;r++){for(var n=e[r],i=[],a=0;a&lt;n.length;a++)i.push(new t.Point$1(n[a][0],n[a][1]));this.geometry.push(i)}return this.geometry},x.prototype.bbox=function(){this.geometry||this.loadGeometry();for(var t=this.geometry,e=1/0,r=-1/0,n=1/0,i=-1/0,a=0;a&lt;t.length;a++)for(var o=t[a],s=0;s&lt;o.length;s++){var l=o[s];e=Math.min(e,l.x),r=Math.max(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.y)}return[e,n,r,i]},x.prototype.toGeoJSON=m.prototype.toGeoJSON;var b=w,_=v;function w(e){var r=new t.pbf;return function(t,e){for(var r in t.layers)e.writeMessage(3,T,t.layers[r])}(e,r),r.finish()}function T(t,e){var r;e.writeVarintField(15,t.version||1),e.writeStringField(1,t.name||&quot;&quot;),e.writeVarintField(5,t.extent||4096);var n={keys:[],values:[],keycache:{},valuecache:{}};for(r=0;r&lt;t.length;r++)n.feature=t.feature(r),e.writeMessage(2,k,n);var i=n.keys;for(r=0;r&lt;i.length;r++)e.writeStringField(3,i[r]);var a=n.values;for(r=0;r&lt;a.length;r++)e.writeMessage(4,C,a[r])}function k(t,e){var r=t.feature;void 0!==r.id&amp;&amp;e.writeVarintField(1,r.id),e.writeMessage(2,M,t),e.writeVarintField(3,r.type),e.writeMessage(4,E,r)}function M(t,e){var r=t.feature,n=t.keys,i=t.values,a=t.keycache,o=t.valuecache;for(var s in r.properties){var l=a[s];void 0===l&amp;&amp;(n.push(s),a[s]=l=n.length-1),e.writeVarint(l);var c=r.properties[s],u=typeof c;&quot;string&quot;!==u&amp;&amp;&quot;boolean&quot;!==u&amp;&amp;&quot;number&quot;!==u&amp;&amp;(c=JSON.stringify(c));var f=u+&quot;:&quot;+c,h=o[f];void 0===h&amp;&amp;(i.push(c),o[f]=h=i.length-1),e.writeVarint(h)}}function A(t,e){return(e&lt;&lt;3)+(7&amp;t)}function S(t){return t&lt;&lt;1^t&gt;&gt;31}function E(t,e){for(var r=t.loadGeometry(),n=t.type,i=0,a=0,o=r.length,s=0;s&lt;o;s++){var l=r[s],c=1;1===n&amp;&amp;(c=l.length),e.writeVarint(A(1,c));for(var u=3===n?l.length-1:l.length,f=0;f&lt;u;f++){1===f&amp;&amp;1!==n&amp;&amp;e.writeVarint(A(2,u-1));var h=l[f].x-i,p=l[f].y-a;e.writeVarint(S(h)),e.writeVarint(S(p)),i+=h,a+=p}3===n&amp;&amp;e.writeVarint(A(7,1))}}function C(t,e){var r=typeof t;&quot;string&quot;===r?e.writeStringField(1,t):&quot;boolean&quot;===r?e.writeBooleanField(7,t):&quot;number&quot;===r&amp;&amp;(t%1!=0?e.writeDoubleField(3,t):t&lt;0?e.writeSVarintField(6,t):e.writeVarintField(5,t))}function L(t,e,r,n){I(t,r,n),I(e,2*r,2*n),I(e,2*r+1,2*n+1)}function I(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function P(t,e,r,n){var i=t-r,a=e-n;return i*i+a*a}b.fromVectorTileJs=w,b.fromGeojsonVt=function(t,e){e=e||{};var r={};for(var n in t)r[n]=new v(t[n].features,e),r[n].name=n,r[n].version=e.version,r[n].extent=e.extent;return w({layers:r})},b.GeoJSONWrapper=_;var z=function(t){return t[0]},O=function(t){return t[1]},D=function(t,e,r,n,i){void 0===e&amp;&amp;(e=z),void 0===r&amp;&amp;(r=O),void 0===n&amp;&amp;(n=64),void 0===i&amp;&amp;(i=Float64Array),this.nodeSize=n,this.points=t;for(var a=t.length&lt;65536?Uint16Array:Uint32Array,o=this.ids=new a(t.length),s=this.coords=new i(2*t.length),l=0;l&lt;t.length;l++)o[l]=l,s[2*l]=e(t[l]),s[2*l+1]=r(t[l]);!function t(e,r,n,i,a,o){if(!(a-i&lt;=n)){var s=i+a&gt;&gt;1;!function t(e,r,n,i,a,o){for(;a&gt;i;){if(a-i&gt;600){var s=a-i+1,l=n-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),f=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2&lt;0?-1:1);t(e,r,n,Math.max(i,Math.floor(n-l*u/s+f)),Math.min(a,Math.floor(n+(s-l)*u/s+f)),o)}var h=r[2*n+o],p=i,d=a;for(L(e,r,i,n),r[2*a+o]&gt;h&amp;&amp;L(e,r,i,a);p&lt;d;){for(L(e,r,p,d),p++,d--;r[2*p+o]&lt;h;)p++;for(;r[2*d+o]&gt;h;)d--}r[2*i+o]===h?L(e,r,i,d):L(e,r,++d,a),d&lt;=n&amp;&amp;(i=d+1),n&lt;=d&amp;&amp;(a=d-1)}}(e,r,s,i,a,o%2),t(e,r,n,i,s-1,o+1),t(e,r,n,s+1,a,o+1)}}(o,s,n,0,o.length-1,0)};D.prototype.range=function(t,e,r,n){return function(t,e,r,n,i,a,o){for(var s,l,c=[0,t.length-1,0],u=[];c.length;){var f=c.pop(),h=c.pop(),p=c.pop();if(h-p&lt;=o)for(var d=p;d&lt;=h;d++)l=e[2*d+1],(s=e[2*d])&gt;=r&amp;&amp;s&lt;=i&amp;&amp;l&gt;=n&amp;&amp;l&lt;=a&amp;&amp;u.push(t[d]);else{var g=Math.floor((p+h)/2);l=e[2*g+1],(s=e[2*g])&gt;=r&amp;&amp;s&lt;=i&amp;&amp;l&gt;=n&amp;&amp;l&lt;=a&amp;&amp;u.push(t[g]);var m=(f+1)%2;(0===f?r&lt;=s:n&lt;=l)&amp;&amp;(c.push(p),c.push(g-1),c.push(m)),(0===f?i&gt;=s:a&gt;=l)&amp;&amp;(c.push(g+1),c.push(h),c.push(m))}}return u}(this.ids,this.coords,t,e,r,n,this.nodeSize)},D.prototype.within=function(t,e,r){return function(t,e,r,n,i,a){for(var o=[0,t.length-1,0],s=[],l=i*i;o.length;){var c=o.pop(),u=o.pop(),f=o.pop();if(u-f&lt;=a)for(var h=f;h&lt;=u;h++)P(e[2*h],e[2*h+1],r,n)&lt;=l&amp;&amp;s.push(t[h]);else{var p=Math.floor((f+u)/2),d=e[2*p],g=e[2*p+1];P(d,g,r,n)&lt;=l&amp;&amp;s.push(t[p]);var m=(c+1)%2;(0===c?r-i&lt;=d:n-i&lt;=g)&amp;&amp;(o.push(f),o.push(p-1),o.push(m)),(0===c?r+i&gt;=d:n+i&gt;=g)&amp;&amp;(o.push(p+1),o.push(u),o.push(m))}}return s}(this.ids,this.coords,t,e,r,this.nodeSize)};var R={minZoom:0,maxZoom:16,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:function(t){return t}},F=function(t){this.options=H(Object.create(R),t),this.trees=new Array(this.options.maxZoom+1)};function B(t,e,r,n,i){return{x:t,y:e,zoom:1/0,id:r,parentId:-1,numPoints:n,properties:i}}function N(t,e){var r=t.geometry.coordinates,n=r[1];return{x:V(r[0]),y:q(n),zoom:1/0,index:e,parentId:-1}}function j(t){return{type:&quot;Feature&quot;,id:t.id,properties:U(t),geometry:{type:&quot;Point&quot;,coordinates:[(n=t.x,360*(n-.5)),(e=t.y,r=(180-360*e)*Math.PI/180,360*Math.atan(Math.exp(r))/Math.PI-90)]}};var e,r,n}function U(t){var e=t.numPoints,r=e&gt;=1e4?Math.round(e/1e3)+&quot;k&quot;:e&gt;=1e3?Math.round(e/100)/10+&quot;k&quot;:e;return H(H({},t.properties),{cluster:!0,cluster_id:t.id,point_count:e,point_count_abbreviated:r})}function V(t){return t/360+.5}function q(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function H(t,e){for(var r in e)t[r]=e[r];return t}function G(t){return t.x}function Y(t){return t.y}function W(t,e,r,n,i,a){var o=i-r,s=a-n;if(0!==o||0!==s){var l=((t-r)*o+(e-n)*s)/(o*o+s*s);l&gt;1?(r=i,n=a):l&gt;0&amp;&amp;(r+=o*l,n+=s*l)}return(o=t-r)*o+(s=e-n)*s}function X(t,e,r,n){var i={id:void 0===t?null:t,type:e,geometry:r,tags:n,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(t){var e=t.geometry,r=t.type;if(&quot;Point&quot;===r||&quot;MultiPoint&quot;===r||&quot;LineString&quot;===r)Z(t,e);else if(&quot;Polygon&quot;===r||&quot;MultiLineString&quot;===r)for(var n=0;n&lt;e.length;n++)Z(t,e[n]);else if(&quot;MultiPolygon&quot;===r)for(n=0;n&lt;e.length;n++)for(var i=0;i&lt;e[n].length;i++)Z(t,e[n][i])}(i),i}function Z(t,e){for(var r=0;r&lt;e.length;r+=3)t.minX=Math.min(t.minX,e[r]),t.minY=Math.min(t.minY,e[r+1]),t.maxX=Math.max(t.maxX,e[r]),t.maxY=Math.max(t.maxY,e[r+1])}function J(t,e,r,n){if(e.geometry){var i=e.geometry.coordinates,a=e.geometry.type,o=Math.pow(r.tolerance/((1&lt;&lt;r.maxZoom)*r.extent),2),s=[],l=e.id;if(r.promoteId?l=e.properties[r.promoteId]:r.generateId&amp;&amp;(l=n||0),&quot;Point&quot;===a)K(i,s);else if(&quot;MultiPoint&quot;===a)for(var c=0;c&lt;i.length;c++)K(i[c],s);else if(&quot;LineString&quot;===a)Q(i,s,o,!1);else if(&quot;MultiLineString&quot;===a){if(r.lineMetrics){for(c=0;c&lt;i.length;c++)Q(i[c],s=[],o,!1),t.push(X(l,&quot;LineString&quot;,s,e.properties));return}$(i,s,o,!1)}else if(&quot;Polygon&quot;===a)$(i,s,o,!0);else{if(&quot;MultiPolygon&quot;!==a){if(&quot;GeometryCollection&quot;===a){for(c=0;c&lt;e.geometry.geometries.length;c++)J(t,{id:l,geometry:e.geometry.geometries[c],properties:e.properties},r,n);return}throw new Error(&quot;Input data is not a valid GeoJSON object.&quot;)}for(c=0;c&lt;i.length;c++){var u=[];$(i[c],u,o,!0),s.push(u)}}t.push(X(l,a,s,e.properties))}}function K(t,e){e.push(tt(t[0])),e.push(et(t[1])),e.push(0)}function Q(t,e,r,n){for(var i,a,o=0,s=0;s&lt;t.length;s++){var l=tt(t[s][0]),c=et(t[s][1]);e.push(l),e.push(c),e.push(0),s&gt;0&amp;&amp;(o+=n?(i*c-l*a)/2:Math.sqrt(Math.pow(l-i,2)+Math.pow(c-a,2))),i=l,a=c}var u=e.length-3;e[2]=1,function t(e,r,n,i){for(var a,o=i,s=n-r&gt;&gt;1,l=n-r,c=e[r],u=e[r+1],f=e[n],h=e[n+1],p=r+3;p&lt;n;p+=3){var d=W(e[p],e[p+1],c,u,f,h);if(d&gt;o)a=p,o=d;else if(d===o){var g=Math.abs(p-s);g&lt;l&amp;&amp;(a=p,l=g)}}o&gt;i&amp;&amp;(a-r&gt;3&amp;&amp;t(e,r,a,i),e[a+2]=o,n-a&gt;3&amp;&amp;t(e,a,n,i))}(e,0,u,r),e[u+2]=1,e.size=Math.abs(o),e.start=0,e.end=e.size}function $(t,e,r,n){for(var i=0;i&lt;t.length;i++){var a=[];Q(t[i],a,r,n),e.push(a)}}function tt(t){return t/360+.5}function et(t){var e=Math.sin(t*Math.PI/180),r=.5-.25*Math.log((1+e)/(1-e))/Math.PI;return r&lt;0?0:r&gt;1?1:r}function rt(t,e,r,n,i,a,o,s){if(n/=e,a&gt;=(r/=e)&amp;&amp;o&lt;n)return t;if(o&lt;r||a&gt;=n)return null;for(var l=[],c=0;c&lt;t.length;c++){var u=t[c],f=u.geometry,h=u.type,p=0===i?u.minX:u.minY,d=0===i?u.maxX:u.maxY;if(p&gt;=r&amp;&amp;d&lt;n)l.push(u);else if(!(d&lt;r||p&gt;=n)){var g=[];if(&quot;Point&quot;===h||&quot;MultiPoint&quot;===h)nt(f,g,r,n,i);else if(&quot;LineString&quot;===h)it(f,g,r,n,i,!1,s.lineMetrics);else if(&quot;MultiLineString&quot;===h)ot(f,g,r,n,i,!1);else if(&quot;Polygon&quot;===h)ot(f,g,r,n,i,!0);else if(&quot;MultiPolygon&quot;===h)for(var m=0;m&lt;f.length;m++){var v=[];ot(f[m],v,r,n,i,!0),v.length&amp;&amp;g.push(v)}if(g.length){if(s.lineMetrics&amp;&amp;&quot;LineString&quot;===h){for(m=0;m&lt;g.length;m++)l.push(X(u.id,h,g[m],u.tags));continue}&quot;LineString&quot;!==h&amp;&amp;&quot;MultiLineString&quot;!==h||(1===g.length?(h=&quot;LineString&quot;,g=g[0]):h=&quot;MultiLineString&quot;),&quot;Point&quot;!==h&amp;&amp;&quot;MultiPoint&quot;!==h||(h=3===g.length?&quot;Point&quot;:&quot;MultiPoint&quot;),l.push(X(u.id,h,g,u.tags))}}}return l.length?l:null}function nt(t,e,r,n,i){for(var a=0;a&lt;t.length;a+=3){var o=t[a+i];o&gt;=r&amp;&amp;o&lt;=n&amp;&amp;(e.push(t[a]),e.push(t[a+1]),e.push(t[a+2]))}}function it(t,e,r,n,i,a,o){for(var s,l,c=at(t),u=0===i?lt:ct,f=t.start,h=0;h&lt;t.length-3;h+=3){var p=t[h],d=t[h+1],g=t[h+2],m=t[h+3],v=t[h+4],y=0===i?p:d,x=0===i?m:v,b=!1;o&amp;&amp;(s=Math.sqrt(Math.pow(p-m,2)+Math.pow(d-v,2))),y&lt;r?x&gt;r&amp;&amp;(l=u(c,p,d,m,v,r),o&amp;&amp;(c.start=f+s*l)):y&gt;n?x&lt;n&amp;&amp;(l=u(c,p,d,m,v,n),o&amp;&amp;(c.start=f+s*l)):st(c,p,d,g),x&lt;r&amp;&amp;y&gt;=r&amp;&amp;(l=u(c,p,d,m,v,r),b=!0),x&gt;n&amp;&amp;y&lt;=n&amp;&amp;(l=u(c,p,d,m,v,n),b=!0),!a&amp;&amp;b&amp;&amp;(o&amp;&amp;(c.end=f+s*l),e.push(c),c=at(t)),o&amp;&amp;(f+=s)}var _=t.length-3;p=t[_],d=t[_+1],g=t[_+2],(y=0===i?p:d)&gt;=r&amp;&amp;y&lt;=n&amp;&amp;st(c,p,d,g),_=c.length-3,a&amp;&amp;_&gt;=3&amp;&amp;(c[_]!==c[0]||c[_+1]!==c[1])&amp;&amp;st(c,c[0],c[1],c[2]),c.length&amp;&amp;e.push(c)}function at(t){var e=[];return e.size=t.size,e.start=t.start,e.end=t.end,e}function ot(t,e,r,n,i,a){for(var o=0;o&lt;t.length;o++)it(t[o],e,r,n,i,a,!1)}function st(t,e,r,n){t.push(e),t.push(r),t.push(n)}function lt(t,e,r,n,i,a){var o=(a-e)/(n-e);return t.push(a),t.push(r+(i-r)*o),t.push(1),o}function ct(t,e,r,n,i,a){var o=(a-r)/(i-r);return t.push(e+(n-e)*o),t.push(a),t.push(1),o}function ut(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i,a=t[n],o=a.type;if(&quot;Point&quot;===o||&quot;MultiPoint&quot;===o||&quot;LineString&quot;===o)i=ft(a.geometry,e);else if(&quot;MultiLineString&quot;===o||&quot;Polygon&quot;===o){i=[];for(var s=0;s&lt;a.geometry.length;s++)i.push(ft(a.geometry[s],e))}else if(&quot;MultiPolygon&quot;===o)for(i=[],s=0;s&lt;a.geometry.length;s++){for(var l=[],c=0;c&lt;a.geometry[s].length;c++)l.push(ft(a.geometry[s][c],e));i.push(l)}r.push(X(a.id,o,i,a.tags))}return r}function ft(t,e){var r=[];r.size=t.size,void 0!==t.start&amp;&amp;(r.start=t.start,r.end=t.end);for(var n=0;n&lt;t.length;n+=3)r.push(t[n]+e,t[n+1],t[n+2]);return r}function ht(t,e){if(t.transformed)return t;var r,n,i,a=1&lt;&lt;t.z,o=t.x,s=t.y;for(r=0;r&lt;t.features.length;r++){var l=t.features[r],c=l.geometry,u=l.type;if(l.geometry=[],1===u)for(n=0;n&lt;c.length;n+=2)l.geometry.push(pt(c[n],c[n+1],e,a,o,s));else for(n=0;n&lt;c.length;n++){var f=[];for(i=0;i&lt;c[n].length;i+=2)f.push(pt(c[n][i],c[n][i+1],e,a,o,s));l.geometry.push(f)}}return t.transformed=!0,t}function pt(t,e,r,n,i,a){return[Math.round(r*(t*n-i)),Math.round(r*(e*n-a))]}function dt(t,e,r,n,i){for(var a=e===i.maxZoom?0:i.tolerance/((1&lt;&lt;e)*i.extent),o={features:[],numPoints:0,numSimplified:0,numFeatures:0,source:null,x:r,y:n,z:e,transformed:!1,minX:2,minY:1,maxX:-1,maxY:0},s=0;s&lt;t.length;s++){o.numFeatures++,gt(o,t[s],a,i);var l=t[s].minX,c=t[s].minY,u=t[s].maxX,f=t[s].maxY;l&lt;o.minX&amp;&amp;(o.minX=l),c&lt;o.minY&amp;&amp;(o.minY=c),u&gt;o.maxX&amp;&amp;(o.maxX=u),f&gt;o.maxY&amp;&amp;(o.maxY=f)}return o}function gt(t,e,r,n){var i=e.geometry,a=e.type,o=[];if(&quot;Point&quot;===a||&quot;MultiPoint&quot;===a)for(var s=0;s&lt;i.length;s+=3)o.push(i[s]),o.push(i[s+1]),t.numPoints++,t.numSimplified++;else if(&quot;LineString&quot;===a)mt(o,i,t,r,!1,!1);else if(&quot;MultiLineString&quot;===a||&quot;Polygon&quot;===a)for(s=0;s&lt;i.length;s++)mt(o,i[s],t,r,&quot;Polygon&quot;===a,0===s);else if(&quot;MultiPolygon&quot;===a)for(var l=0;l&lt;i.length;l++){var c=i[l];for(s=0;s&lt;c.length;s++)mt(o,c[s],t,r,!0,0===s)}if(o.length){var u=e.tags||null;if(&quot;LineString&quot;===a&amp;&amp;n.lineMetrics){for(var f in u={},e.tags)u[f]=e.tags[f];u.mapbox_clip_start=i.start/i.size,u.mapbox_clip_end=i.end/i.size}var h={geometry:o,type:&quot;Polygon&quot;===a||&quot;MultiPolygon&quot;===a?3:&quot;LineString&quot;===a||&quot;MultiLineString&quot;===a?2:1,tags:u};null!==e.id&amp;&amp;(h.id=e.id),t.features.push(h)}}function mt(t,e,r,n,i,a){var o=n*n;if(n&gt;0&amp;&amp;e.size&lt;(i?o:n))r.numPoints+=e.length/3;else{for(var s=[],l=0;l&lt;e.length;l+=3)(0===n||e[l+2]&gt;o)&amp;&amp;(r.numSimplified++,s.push(e[l]),s.push(e[l+1])),r.numPoints++;i&amp;&amp;function(t,e){for(var r=0,n=0,i=t.length,a=i-2;n&lt;i;a=n,n+=2)r+=(t[n]-t[a])*(t[n+1]+t[a+1]);if(r&gt;0===e)for(n=0,i=t.length;n&lt;i/2;n+=2){var o=t[n],s=t[n+1];t[n]=t[i-2-n],t[n+1]=t[i-1-n],t[i-2-n]=o,t[i-1-n]=s}}(s,a),t.push(s)}}function vt(t,e){var r=(e=this.options=function(t,e){for(var r in e)t[r]=e[r];return t}(Object.create(this.options),e)).debug;if(r&amp;&amp;console.time(&quot;preprocess data&quot;),e.maxZoom&lt;0||e.maxZoom&gt;24)throw new Error(&quot;maxZoom should be in the 0-24 range&quot;);if(e.promoteId&amp;&amp;e.generateId)throw new Error(&quot;promoteId and generateId cannot be used together.&quot;);var n=function(t,e){var r=[];if(&quot;FeatureCollection&quot;===t.type)for(var n=0;n&lt;t.features.length;n++)J(r,t.features[n],e,n);else J(r,&quot;Feature&quot;===t.type?t:{geometry:t},e);return r}(t,e);this.tiles={},this.tileCoords=[],r&amp;&amp;(console.timeEnd(&quot;preprocess data&quot;),console.log(&quot;index: maxZoom: %d, maxPoints: %d&quot;,e.indexMaxZoom,e.indexMaxPoints),console.time(&quot;generate tiles&quot;),this.stats={},this.total=0),(n=function(t,e){var r=e.buffer/e.extent,n=t,i=rt(t,1,-1-r,r,0,-1,2,e),a=rt(t,1,1-r,2+r,0,-1,2,e);return(i||a)&amp;&amp;(n=rt(t,1,-r,1+r,0,-1,2,e)||[],i&amp;&amp;(n=ut(i,1).concat(n)),a&amp;&amp;(n=n.concat(ut(a,-1)))),n}(n,e)).length&amp;&amp;this.splitTile(n,0,0,0),r&amp;&amp;(n.length&amp;&amp;console.log(&quot;features: %d, points: %d&quot;,this.tiles[0].numFeatures,this.tiles[0].numPoints),console.timeEnd(&quot;generate tiles&quot;),console.log(&quot;tiles generated:&quot;,this.total,JSON.stringify(this.stats)))}function yt(t,e,r){return 32*((1&lt;&lt;t)*r+e)+t}function xt(t,e){var r=t.tileID.canonical;if(!this._geoJSONIndex)return e(null,null);var n=this._geoJSONIndex.getTile(r.z,r.x,r.y);if(!n)return e(null,null);var i=new g(n.features),a=b(i);0===a.byteOffset&amp;&amp;a.byteLength===a.buffer.byteLength||(a=new Uint8Array(a)),e(null,{vectorTile:i,rawData:a.buffer})}F.prototype.load=function(t){var e=this.options,r=e.log,n=e.minZoom,i=e.maxZoom,a=e.nodeSize;r&amp;&amp;console.time(&quot;total time&quot;);var o=&quot;prepare &quot;+t.length+&quot; points&quot;;r&amp;&amp;console.time(o),this.points=t;for(var s=[],l=0;l&lt;t.length;l++)t[l].geometry&amp;&amp;s.push(N(t[l],l));this.trees[i+1]=new D(s,G,Y,a,Float32Array),r&amp;&amp;console.timeEnd(o);for(var c=i;c&gt;=n;c--){var u=+Date.now();s=this._cluster(s,c),this.trees[c]=new D(s,G,Y,a,Float32Array),r&amp;&amp;console.log(&quot;z%d: %d clusters in %dms&quot;,c,s.length,+Date.now()-u)}return r&amp;&amp;console.timeEnd(&quot;total time&quot;),this},F.prototype.getClusters=function(t,e){var r=((t[0]+180)%360+360)%360-180,n=Math.max(-90,Math.min(90,t[1])),i=180===t[2]?180:((t[2]+180)%360+360)%360-180,a=Math.max(-90,Math.min(90,t[3]));if(t[2]-t[0]&gt;=360)r=-180,i=180;else if(r&gt;i){var o=this.getClusters([r,n,180,a],e),s=this.getClusters([-180,n,i,a],e);return o.concat(s)}for(var l=this.trees[this._limitZoom(e)],c=[],u=0,f=l.range(V(r),q(a),V(i),q(n));u&lt;f.length;u+=1){var h=l.points[f[u]];c.push(h.numPoints?j(h):this.points[h.index])}return c},F.prototype.getChildren=function(t){var e=this._getOriginId(t),r=this._getOriginZoom(t),n=&quot;No cluster with the specified id.&quot;,i=this.trees[r];if(!i)throw new Error(n);var a=i.points[e];if(!a)throw new Error(n);for(var o=this.options.radius/(this.options.extent*Math.pow(2,r-1)),s=[],l=0,c=i.within(a.x,a.y,o);l&lt;c.length;l+=1){var u=i.points[c[l]];u.parentId===t&amp;&amp;s.push(u.numPoints?j(u):this.points[u.index])}if(0===s.length)throw new Error(n);return s},F.prototype.getLeaves=function(t,e,r){var n=[];return this._appendLeaves(n,t,e=e||10,r=r||0,0),n},F.prototype.getTile=function(t,e,r){var n=this.trees[this._limitZoom(t)],i=Math.pow(2,t),a=this.options,o=a.radius/a.extent,s=(r-o)/i,l=(r+1+o)/i,c={features:[]};return this._addTileFeatures(n.range((e-o)/i,s,(e+1+o)/i,l),n.points,e,r,i,c),0===e&amp;&amp;this._addTileFeatures(n.range(1-o/i,s,1,l),n.points,i,r,i,c),e===i-1&amp;&amp;this._addTileFeatures(n.range(0,s,o/i,l),n.points,-1,r,i,c),c.features.length?c:null},F.prototype.getClusterExpansionZoom=function(t){for(var e=this._getOriginZoom(t)-1;e&lt;=this.options.maxZoom;){var r=this.getChildren(t);if(e++,1!==r.length)break;t=r[0].properties.cluster_id}return e},F.prototype._appendLeaves=function(t,e,r,n,i){for(var a=0,o=this.getChildren(e);a&lt;o.length;a+=1){var s=o[a],l=s.properties;if(l&amp;&amp;l.cluster?i+l.point_count&lt;=n?i+=l.point_count:i=this._appendLeaves(t,l.cluster_id,r,n,i):i&lt;n?i++:t.push(s),t.length===r)break}return i},F.prototype._addTileFeatures=function(t,e,r,n,i,a){for(var o=0,s=t;o&lt;s.length;o+=1){var l=e[s[o]],c=l.numPoints,u={type:1,geometry:[[Math.round(this.options.extent*(l.x*i-r)),Math.round(this.options.extent*(l.y*i-n))]],tags:c?U(l):this.points[l.index].properties},f=void 0;c?f=l.id:this.options.generateId?f=l.index:this.points[l.index].id&amp;&amp;(f=this.points[l.index].id),void 0!==f&amp;&amp;(u.id=f),a.features.push(u)}},F.prototype._limitZoom=function(t){return Math.max(this.options.minZoom,Math.min(t,this.options.maxZoom+1))},F.prototype._cluster=function(t,e){for(var r=[],n=this.options,i=n.reduce,a=n.radius/(n.extent*Math.pow(2,e)),o=0;o&lt;t.length;o++){var s=t[o];if(!(s.zoom&lt;=e)){s.zoom=e;for(var l=this.trees[e+1],c=l.within(s.x,s.y,a),u=s.numPoints||1,f=s.x*u,h=s.y*u,p=i&amp;&amp;u&gt;1?this._map(s,!0):null,d=(o&lt;&lt;5)+(e+1)+this.points.length,g=0,m=c;g&lt;m.length;g+=1){var v=l.points[m[g]];if(!(v.zoom&lt;=e)){v.zoom=e;var y=v.numPoints||1;f+=v.x*y,h+=v.y*y,u+=y,v.parentId=d,i&amp;&amp;(p||(p=this._map(s,!0)),i(p,this._map(v)))}}1===u?r.push(s):(s.parentId=d,r.push(B(f/u,h/u,d,u,p)))}}return r},F.prototype._getOriginId=function(t){return t-this.points.length&gt;&gt;5},F.prototype._getOriginZoom=function(t){return(t-this.points.length)%32},F.prototype._map=function(t,e){if(t.numPoints)return e?H({},t.properties):t.properties;var r=this.points[t.index].properties,n=this.options.map(r);return e&amp;&amp;n===r?H({},n):n},vt.prototype.options={maxZoom:14,indexMaxZoom:5,indexMaxPoints:1e5,tolerance:3,extent:4096,buffer:64,lineMetrics:!1,promoteId:null,generateId:!1,debug:0},vt.prototype.splitTile=function(t,e,r,n,i,a,o){for(var s=[t,e,r,n],l=this.options,c=l.debug;s.length;){n=s.pop(),r=s.pop(),e=s.pop(),t=s.pop();var u=1&lt;&lt;e,f=yt(e,r,n),h=this.tiles[f];if(!h&amp;&amp;(c&gt;1&amp;&amp;console.time(&quot;creation&quot;),h=this.tiles[f]=dt(t,e,r,n,l),this.tileCoords.push({z:e,x:r,y:n}),c)){c&gt;1&amp;&amp;(console.log(&quot;tile z%d-%d-%d (features: %d, points: %d, simplified: %d)&quot;,e,r,n,h.numFeatures,h.numPoints,h.numSimplified),console.timeEnd(&quot;creation&quot;));var p=&quot;z&quot;+e;this.stats[p]=(this.stats[p]||0)+1,this.total++}if(h.source=t,i){if(e===l.maxZoom||e===i)continue;var d=1&lt;&lt;i-e;if(r!==Math.floor(a/d)||n!==Math.floor(o/d))continue}else if(e===l.indexMaxZoom||h.numPoints&lt;=l.indexMaxPoints)continue;if(h.source=null,0!==t.length){c&gt;1&amp;&amp;console.time(&quot;clipping&quot;);var g,m,v,y,x,b,_=.5*l.buffer/l.extent,w=.5-_,T=.5+_,k=1+_;g=m=v=y=null,x=rt(t,u,r-_,r+T,0,h.minX,h.maxX,l),b=rt(t,u,r+w,r+k,0,h.minX,h.maxX,l),t=null,x&amp;&amp;(g=rt(x,u,n-_,n+T,1,h.minY,h.maxY,l),m=rt(x,u,n+w,n+k,1,h.minY,h.maxY,l),x=null),b&amp;&amp;(v=rt(b,u,n-_,n+T,1,h.minY,h.maxY,l),y=rt(b,u,n+w,n+k,1,h.minY,h.maxY,l),b=null),c&gt;1&amp;&amp;console.timeEnd(&quot;clipping&quot;),s.push(g||[],e+1,2*r,2*n),s.push(m||[],e+1,2*r,2*n+1),s.push(v||[],e+1,2*r+1,2*n),s.push(y||[],e+1,2*r+1,2*n+1)}}},vt.prototype.getTile=function(t,e,r){var n=this.options,i=n.extent,a=n.debug;if(t&lt;0||t&gt;24)return null;var o=1&lt;&lt;t,s=yt(t,e=(e%o+o)%o,r);if(this.tiles[s])return ht(this.tiles[s],i);a&gt;1&amp;&amp;console.log(&quot;drilling down to z%d-%d-%d&quot;,t,e,r);for(var l,c=t,u=e,f=r;!l&amp;&amp;c&gt;0;)c--,u=Math.floor(u/2),f=Math.floor(f/2),l=this.tiles[yt(c,u,f)];return l&amp;&amp;l.source?(a&gt;1&amp;&amp;console.log(&quot;found parent tile z%d-%d-%d&quot;,c,u,f),a&gt;1&amp;&amp;console.time(&quot;drilling down&quot;),this.splitTile(l.source,c,u,f,t,e,r),a&gt;1&amp;&amp;console.timeEnd(&quot;drilling down&quot;),this.tiles[s]?ht(this.tiles[s],i):null):null};var bt=function(e){function r(t,r,n,i){e.call(this,t,r,n,xt),i&amp;&amp;(this.loadGeoJSON=i)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.loadData=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),this._pendingCallback=e,this._pendingLoadDataParams=t,this._state&amp;&amp;&quot;Idle&quot;!==this._state?this._state=&quot;NeedsLoadData&quot;:(this._state=&quot;Coalescing&quot;,this._loadData())},r.prototype._loadData=function(){var e=this;if(this._pendingCallback&amp;&amp;this._pendingLoadDataParams){var r=this._pendingCallback,n=this._pendingLoadDataParams;delete this._pendingCallback,delete this._pendingLoadDataParams;var i=!!(n&amp;&amp;n.request&amp;&amp;n.request.collectResourceTiming)&amp;&amp;new t.RequestPerformance(n.request);this.loadGeoJSON(n,(function(a,o){if(a||!o)return r(a);if(&quot;object&quot;!=typeof o)return r(new Error(&quot;Input data given to '&quot;+n.source+&quot;' is not a valid GeoJSON object.&quot;));!function t(e,r){var n,i=e&amp;&amp;e.type;if(&quot;FeatureCollection&quot;===i)for(n=0;n&lt;e.features.length;n++)t(e.features[n],r);else if(&quot;GeometryCollection&quot;===i)for(n=0;n&lt;e.geometries.length;n++)t(e.geometries[n],r);else if(&quot;Feature&quot;===i)t(e.geometry,r);else if(&quot;Polygon&quot;===i)f(e.coordinates,r);else if(&quot;MultiPolygon&quot;===i)for(n=0;n&lt;e.coordinates.length;n++)f(e.coordinates[n],r);return e}(o,!0);try{e._geoJSONIndex=n.cluster?new F(function(e){var r=e.superclusterOptions,n=e.clusterProperties;if(!n||!r)return r;for(var i={},a={},o={accumulated:null,zoom:0},s={properties:null},l=Object.keys(n),c=0,u=l;c&lt;u.length;c+=1){var f=u[c],h=n[f],p=h[0],d=t.createExpression(h[1]),g=t.createExpression(&quot;string&quot;==typeof p?[p,[&quot;accumulated&quot;],[&quot;get&quot;,f]]:p);i[f]=d.value,a[f]=g.value}return r.map=function(t){s.properties=t;for(var e={},r=0,n=l;r&lt;n.length;r+=1){var a=n[r];e[a]=i[a].evaluate(o,s)}return e},r.reduce=function(t,e){s.properties=e;for(var r=0,n=l;r&lt;n.length;r+=1){var i=n[r];o.accumulated=t[i],t[i]=a[i].evaluate(o,s)}},r}(n)).load(o.features):function(t,e){return new vt(t,e)}(o,n.geojsonVtOptions)}catch(a){return r(a)}e.loaded={};var s={};if(i){var l=i.finish();l&amp;&amp;(s.resourceTiming={},s.resourceTiming[n.source]=JSON.parse(JSON.stringify(l)))}r(null,s)}))}},r.prototype.coalesce=function(){&quot;Coalescing&quot;===this._state?this._state=&quot;Idle&quot;:&quot;NeedsLoadData&quot;===this._state&amp;&amp;(this._state=&quot;Coalescing&quot;,this._loadData())},r.prototype.reloadTile=function(t,r){var n=this.loaded;return n&amp;&amp;n[t.uid]?e.prototype.reloadTile.call(this,t,r):this.loadTile(t,r)},r.prototype.loadGeoJSON=function(e,r){if(e.request)t.getJSON(e.request,r);else{if(&quot;string&quot;!=typeof e.data)return r(new Error(&quot;Input data given to '&quot;+e.source+&quot;' is not a valid GeoJSON object.&quot;));try{return r(null,JSON.parse(e.data))}catch(t){return r(new Error(&quot;Input data given to '&quot;+e.source+&quot;' is not a valid GeoJSON object.&quot;))}}},r.prototype.removeSource=function(t,e){this._pendingCallback&amp;&amp;this._pendingCallback(null,{abandoned:!0}),e()},r.prototype.getClusterExpansionZoom=function(t,e){try{e(null,this._geoJSONIndex.getClusterExpansionZoom(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterChildren=function(t,e){try{e(null,this._geoJSONIndex.getChildren(t.clusterId))}catch(t){e(t)}},r.prototype.getClusterLeaves=function(t,e){try{e(null,this._geoJSONIndex.getLeaves(t.clusterId,t.limit,t.offset))}catch(t){e(t)}},r}(l),_t=function(e){var r=this;this.self=e,this.actor=new t.Actor(e,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:l,geojson:bt},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=function(t,e){if(r.workerSourceTypes[t])throw new Error('Worker source with name &quot;'+t+'&quot; already registered.');r.workerSourceTypes[t]=e},this.self.registerRTLTextPlugin=function(e){if(t.plugin.isParsed())throw new Error(&quot;RTL text plugin already registered.&quot;);t.plugin.applyArabicShaping=e.applyArabicShaping,t.plugin.processBidirectionalText=e.processBidirectionalText,t.plugin.processStyledBidirectionalText=e.processStyledBidirectionalText}};return _t.prototype.setReferrer=function(t,e){this.referrer=e},_t.prototype.setImages=function(t,e,r){for(var n in this.availableImages[t]=e,this.workerSources[t]){var i=this.workerSources[t][n];for(var a in i)i[a].availableImages=e}r()},_t.prototype.setLayers=function(t,e,r){this.getLayerIndex(t).replace(e),r()},_t.prototype.updateLayers=function(t,e,r){this.getLayerIndex(t).update(e.layers,e.removedIds),r()},_t.prototype.loadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).loadTile(e,r)},_t.prototype.loadDEMTile=function(t,e,r){this.getDEMWorkerSource(t,e.source).loadTile(e,r)},_t.prototype.reloadTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).reloadTile(e,r)},_t.prototype.abortTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).abortTile(e,r)},_t.prototype.removeTile=function(t,e,r){this.getWorkerSource(t,e.type,e.source).removeTile(e,r)},_t.prototype.removeDEMTile=function(t,e){this.getDEMWorkerSource(t,e.source).removeTile(e)},_t.prototype.removeSource=function(t,e,r){if(this.workerSources[t]&amp;&amp;this.workerSources[t][e.type]&amp;&amp;this.workerSources[t][e.type][e.source]){var n=this.workerSources[t][e.type][e.source];delete this.workerSources[t][e.type][e.source],void 0!==n.removeSource?n.removeSource(e,r):r()}},_t.prototype.loadWorkerSource=function(t,e,r){try{this.self.importScripts(e.url),r()}catch(t){r(t.toString())}},_t.prototype.syncRTLPluginState=function(e,r,n){try{t.plugin.setState(r);var i=t.plugin.getPluginURL();if(t.plugin.isLoaded()&amp;&amp;!t.plugin.isParsed()&amp;&amp;null!=i){this.self.importScripts(i);var a=t.plugin.isParsed();n(a?void 0:new Error(&quot;RTL Text Plugin failed to import scripts from &quot;+i),a)}}catch(t){n(t.toString())}},_t.prototype.getAvailableImages=function(t){var e=this.availableImages[t];return e||(e=[]),e},_t.prototype.getLayerIndex=function(t){var e=this.layerIndexes[t];return e||(e=this.layerIndexes[t]=new n),e},_t.prototype.getWorkerSource=function(t,e,r){var n=this;return this.workerSources[t]||(this.workerSources[t]={}),this.workerSources[t][e]||(this.workerSources[t][e]={}),this.workerSources[t][e][r]||(this.workerSources[t][e][r]=new this.workerSourceTypes[e]({send:function(e,r,i){n.actor.send(e,r,i,t)}},this.getLayerIndex(t),this.getAvailableImages(t))),this.workerSources[t][e][r]},_t.prototype.getDEMWorkerSource=function(t,e){return this.demWorkerSources[t]||(this.demWorkerSources[t]={}),this.demWorkerSources[t][e]||(this.demWorkerSources[t][e]=new u),this.demWorkerSources[t][e]},_t.prototype.enforceCacheSizeLimit=function(e,r){t.enforceCacheSizeLimit(r)},&quot;undefined&quot;!=typeof WorkerGlobalScope&amp;&amp;void 0!==t.window&amp;&amp;t.window instanceof WorkerGlobalScope&amp;&amp;(t.window.worker=new _t(t.window)),_t})),n(0,(function(t){var e=t.createCommonjsModule((function(t){function e(t){return!r(t)}function r(t){return&quot;undefined&quot;==typeof window||&quot;undefined&quot;==typeof document?&quot;not a browser&quot;:Array.prototype&amp;&amp;Array.prototype.every&amp;&amp;Array.prototype.filter&amp;&amp;Array.prototype.forEach&amp;&amp;Array.prototype.indexOf&amp;&amp;Array.prototype.lastIndexOf&amp;&amp;Array.prototype.map&amp;&amp;Array.prototype.some&amp;&amp;Array.prototype.reduce&amp;&amp;Array.prototype.reduceRight&amp;&amp;Array.isArray?Function.prototype&amp;&amp;Function.prototype.bind?Object.keys&amp;&amp;Object.create&amp;&amp;Object.getPrototypeOf&amp;&amp;Object.getOwnPropertyNames&amp;&amp;Object.isSealed&amp;&amp;Object.isFrozen&amp;&amp;Object.isExtensible&amp;&amp;Object.getOwnPropertyDescriptor&amp;&amp;Object.defineProperty&amp;&amp;Object.defineProperties&amp;&amp;Object.seal&amp;&amp;Object.freeze&amp;&amp;Object.preventExtensions?&quot;JSON&quot;in window&amp;&amp;&quot;parse&quot;in JSON&amp;&amp;&quot;stringify&quot;in JSON?function(){if(!(&quot;Worker&quot;in window&amp;&amp;&quot;Blob&quot;in window&amp;&amp;&quot;URL&quot;in window))return!1;var t,e,r=new Blob([&quot;&quot;],{type:&quot;text/javascript&quot;}),n=URL.createObjectURL(r);try{e=new Worker(n),t=!0}catch(e){t=!1}return e&amp;&amp;e.terminate(),URL.revokeObjectURL(n),t}()?&quot;Uint8ClampedArray&quot;in window?ArrayBuffer.isView?function(){var t=document.createElement(&quot;canvas&quot;);t.width=t.height=1;var e=t.getContext(&quot;2d&quot;);if(!e)return!1;var r=e.getImageData(0,0,1,1);return r&amp;&amp;r.width===t.width}()?(void 0===n[r=t&amp;&amp;t.failIfMajorPerformanceCaveat]&amp;&amp;(n[r]=function(t){var r=function(t){var r=document.createElement(&quot;canvas&quot;),n=Object.create(e.webGLContextAttributes);return n.failIfMajorPerformanceCaveat=t,r.probablySupportsContext?r.probablySupportsContext(&quot;webgl&quot;,n)||r.probablySupportsContext(&quot;experimental-webgl&quot;,n):r.supportsContext?r.supportsContext(&quot;webgl&quot;,n)||r.supportsContext(&quot;experimental-webgl&quot;,n):r.getContext(&quot;webgl&quot;,n)||r.getContext(&quot;experimental-webgl&quot;,n)}(t);if(!r)return!1;var n=r.createShader(r.VERTEX_SHADER);return!(!n||r.isContextLost())&amp;&amp;(r.shaderSource(n,&quot;void main() {}&quot;),r.compileShader(n),!0===r.getShaderParameter(n,r.COMPILE_STATUS))}(r)),n[r]?void 0:&quot;insufficient WebGL support&quot;):&quot;insufficient Canvas/getImageData support&quot;:&quot;insufficient ArrayBuffer support&quot;:&quot;insufficient Uint8ClampedArray support&quot;:&quot;insufficient worker support&quot;:&quot;insufficient JSON support&quot;:&quot;insufficient Object support&quot;:&quot;insufficient Function support&quot;:&quot;insufficent Array support&quot;;var r}t.exports?t.exports=e:window&amp;&amp;(window.mapboxgl=window.mapboxgl||{},window.mapboxgl.supported=e,window.mapboxgl.notSupportedReason=r);var n={};e.webGLContextAttributes={antialias:!1,alpha:!0,stencil:!0,depth:!0}})),r={create:function(e,r,n){var i=t.window.document.createElement(e);return void 0!==r&amp;&amp;(i.className=r),n&amp;&amp;n.appendChild(i),i},createNS:function(e,r){return t.window.document.createElementNS(e,r)}},n=t.window.document.documentElement.style;function i(t){if(!n)return t[0];for(var e=0;e&lt;t.length;e++)if(t[e]in n)return t[e];return t[0]}var a,o=i([&quot;userSelect&quot;,&quot;MozUserSelect&quot;,&quot;WebkitUserSelect&quot;,&quot;msUserSelect&quot;]);r.disableDrag=function(){n&amp;&amp;o&amp;&amp;(a=n[o],n[o]=&quot;none&quot;)},r.enableDrag=function(){n&amp;&amp;o&amp;&amp;(n[o]=a)};var s=i([&quot;transform&quot;,&quot;WebkitTransform&quot;]);r.setTransform=function(t,e){t.style[s]=e};var l=!1;try{var c=Object.defineProperty({},&quot;passive&quot;,{get:function(){l=!0}});t.window.addEventListener(&quot;test&quot;,c,c),t.window.removeEventListener(&quot;test&quot;,c,c)}catch(t){l=!1}r.addEventListener=function(t,e,r,n){void 0===n&amp;&amp;(n={}),t.addEventListener(e,r,&quot;passive&quot;in n&amp;&amp;l?n:n.capture)},r.removeEventListener=function(t,e,r,n){void 0===n&amp;&amp;(n={}),t.removeEventListener(e,r,&quot;passive&quot;in n&amp;&amp;l?n:n.capture)};var u=function(e){e.preventDefault(),e.stopPropagation(),t.window.removeEventListener(&quot;click&quot;,u,!0)};function f(t){var e=t.userImage;return!!(e&amp;&amp;e.render&amp;&amp;e.render())&amp;&amp;(t.data.replace(new Uint8Array(e.data.buffer)),!0)}r.suppressClick=function(){t.window.addEventListener(&quot;click&quot;,u,!0),t.window.setTimeout((function(){t.window.removeEventListener(&quot;click&quot;,u,!0)}),0)},r.mousePos=function(e,r){var n=e.getBoundingClientRect();return new t.Point(r.clientX-n.left-e.clientLeft,r.clientY-n.top-e.clientTop)},r.touchPos=function(e,r){for(var n=e.getBoundingClientRect(),i=[],a=0;a&lt;r.length;a++)i.push(new t.Point(r[a].clientX-n.left-e.clientLeft,r[a].clientY-n.top-e.clientTop));return i},r.mouseButton=function(e){return void 0!==t.window.InstallTrigger&amp;&amp;2===e.button&amp;&amp;e.ctrlKey&amp;&amp;t.window.navigator.platform.toUpperCase().indexOf(&quot;MAC&quot;)&gt;=0?0:e.button},r.remove=function(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)};var h=function(e){function r(){e.call(this),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new t.RGBAImage({width:1,height:1}),this.dirty=!0}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.isLoaded=function(){return this.loaded},r.prototype.setLoaded=function(t){if(this.loaded!==t&amp;&amp;(this.loaded=t,t)){for(var e=0,r=this.requestors;e&lt;r.length;e+=1){var n=r[e];this._notify(n.ids,n.callback)}this.requestors=[]}},r.prototype.getImage=function(t){return this.images[t]},r.prototype.addImage=function(t,e){this._validate(t,e)&amp;&amp;(this.images[t]=e)},r.prototype._validate=function(e,r){var n=!0;return this._validateStretch(r.stretchX,r.data&amp;&amp;r.data.width)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;stretchX&quot; value'))),n=!1),this._validateStretch(r.stretchY,r.data&amp;&amp;r.data.height)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;stretchY&quot; value'))),n=!1),this._validateContent(r.content,r)||(this.fire(new t.ErrorEvent(new Error('Image &quot;'+e+'&quot; has invalid &quot;content&quot; value'))),n=!1),n},r.prototype._validateStretch=function(t,e){if(!t)return!0;for(var r=0,n=0,i=t;n&lt;i.length;n+=1){var a=i[n];if(a[0]&lt;r||a[1]&lt;a[0]||e&lt;a[1])return!1;r=a[1]}return!0},r.prototype._validateContent=function(t,e){return!(t&amp;&amp;(4!==t.length||t[0]&lt;0||e.data.width&lt;t[0]||t[1]&lt;0||e.data.height&lt;t[1]||t[2]&lt;0||e.data.width&lt;t[2]||t[3]&lt;0||e.data.height&lt;t[3]||t[2]&lt;t[0]||t[3]&lt;t[1]))},r.prototype.updateImage=function(t,e){e.version=this.images[t].version+1,this.images[t]=e,this.updatedImages[t]=!0},r.prototype.removeImage=function(t){var e=this.images[t];delete this.images[t],delete this.patterns[t],e.userImage&amp;&amp;e.userImage.onRemove&amp;&amp;e.userImage.onRemove()},r.prototype.listImages=function(){return Object.keys(this.images)},r.prototype.getImages=function(t,e){var r=!0;if(!this.isLoaded())for(var n=0,i=t;n&lt;i.length;n+=1)this.images[i[n]]||(r=!1);this.isLoaded()||r?this._notify(t,e):this.requestors.push({ids:t,callback:e})},r.prototype._notify=function(e,r){for(var n={},i=0,a=e;i&lt;a.length;i+=1){var o=a[i];this.images[o]||this.fire(new t.Event(&quot;styleimagemissing&quot;,{id:o}));var s=this.images[o];s?n[o]={data:s.data.clone(),pixelRatio:s.pixelRatio,sdf:s.sdf,version:s.version,stretchX:s.stretchX,stretchY:s.stretchY,content:s.content,hasRenderCallback:Boolean(s.userImage&amp;&amp;s.userImage.render)}:t.warnOnce('Image &quot;'+o+'&quot; could not be loaded. Please make sure you have added the image with map.addImage() or a &quot;sprite&quot; property in your style. You can provide missing images by listening for the &quot;styleimagemissing&quot; map event.')}r(null,n)},r.prototype.getPixelSize=function(){var t=this.atlasImage;return{width:t.width,height:t.height}},r.prototype.getPattern=function(e){var r=this.patterns[e],n=this.getImage(e);if(!n)return null;if(r&amp;&amp;r.position.version===n.version)return r.position;if(r)r.position.version=n.version;else{var i={w:n.data.width+2,h:n.data.height+2,x:0,y:0},a=new t.ImagePosition(i,n);this.patterns[e]={bin:i,position:a}}return this._updatePatternAtlas(),this.patterns[e].position},r.prototype.bind=function(e){var r=e.gl;this.atlasTexture?this.dirty&amp;&amp;(this.atlasTexture.update(this.atlasImage),this.dirty=!1):this.atlasTexture=new t.Texture(e,this.atlasImage,r.RGBA),this.atlasTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)},r.prototype._updatePatternAtlas=function(){var e=[];for(var r in this.patterns)e.push(this.patterns[r].bin);var n=t.potpack(e),i=n.w,a=n.h,o=this.atlasImage;for(var s in o.resize({width:i||1,height:a||1}),this.patterns){var l=this.patterns[s].bin,c=l.x+1,u=l.y+1,f=this.images[s].data,h=f.width,p=f.height;t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u},{width:h,height:p}),t.RGBAImage.copy(f,o,{x:0,y:p-1},{x:c,y:u-1},{width:h,height:1}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c,y:u+p},{width:h,height:1}),t.RGBAImage.copy(f,o,{x:h-1,y:0},{x:c-1,y:u},{width:1,height:p}),t.RGBAImage.copy(f,o,{x:0,y:0},{x:c+h,y:u},{width:1,height:p})}this.dirty=!0},r.prototype.beginFrame=function(){this.callbackDispatchedThisFrame={}},r.prototype.dispatchRenderCallbacks=function(t){for(var e=0,r=t;e&lt;r.length;e+=1){var n=r[e];if(!this.callbackDispatchedThisFrame[n]){this.callbackDispatchedThisFrame[n]=!0;var i=this.images[n];f(i)&amp;&amp;this.updateImage(n,i)}}},r}(t.Evented),p=m,d=m,g=1e20;function m(t,e,r,n,i,a){this.fontSize=t||24,this.buffer=void 0===e?3:e,this.cutoff=n||.25,this.fontFamily=i||&quot;sans-serif&quot;,this.fontWeight=a||&quot;normal&quot;,this.radius=r||8;var o=this.size=this.fontSize+2*this.buffer;this.canvas=document.createElement(&quot;canvas&quot;),this.canvas.width=this.canvas.height=o,this.ctx=this.canvas.getContext(&quot;2d&quot;),this.ctx.font=this.fontWeight+&quot; &quot;+this.fontSize+&quot;px &quot;+this.fontFamily,this.ctx.textBaseline=&quot;middle&quot;,this.ctx.fillStyle=&quot;black&quot;,this.gridOuter=new Float64Array(o*o),this.gridInner=new Float64Array(o*o),this.f=new Float64Array(o),this.d=new Float64Array(o),this.z=new Float64Array(o+1),this.v=new Int16Array(o),this.middle=Math.round(o/2*(navigator.userAgent.indexOf(&quot;Gecko/&quot;)&gt;=0?1.2:1))}function v(t,e,r,n,i,a,o){for(var s=0;s&lt;e;s++){for(var l=0;l&lt;r;l++)n[l]=t[l*e+s];for(y(n,i,a,o,r),l=0;l&lt;r;l++)t[l*e+s]=i[l]}for(l=0;l&lt;r;l++){for(s=0;s&lt;e;s++)n[s]=t[l*e+s];for(y(n,i,a,o,e),s=0;s&lt;e;s++)t[l*e+s]=Math.sqrt(i[s])}}function y(t,e,r,n,i){r[0]=0,n[0]=-g,n[1]=+g;for(var a=1,o=0;a&lt;i;a++){for(var s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);s&lt;=n[o];)o--,s=(t[a]+a*a-(t[r[o]]+r[o]*r[o]))/(2*a-2*r[o]);r[++o]=a,n[o]=s,n[o+1]=+g}for(a=0,o=0;a&lt;i;a++){for(;n[o+1]&lt;a;)o++;e[a]=(a-r[o])*(a-r[o])+t[r[o]]}}m.prototype.draw=function(t){this.ctx.clearRect(0,0,this.size,this.size),this.ctx.fillText(t,this.buffer,this.middle);for(var e=this.ctx.getImageData(0,0,this.size,this.size),r=new Uint8ClampedArray(this.size*this.size),n=0;n&lt;this.size*this.size;n++){var i=e.data[4*n+3]/255;this.gridOuter[n]=1===i?0:0===i?g:Math.pow(Math.max(0,.5-i),2),this.gridInner[n]=1===i?g:0===i?0:Math.pow(Math.max(0,i-.5),2)}for(v(this.gridOuter,this.size,this.size,this.f,this.d,this.v,this.z),v(this.gridInner,this.size,this.size,this.f,this.d,this.v,this.z),n=0;n&lt;this.size*this.size;n++)r[n]=Math.max(0,Math.min(255,Math.round(255-255*((this.gridOuter[n]-this.gridInner[n])/this.radius+this.cutoff))));return r},p.default=d;var x=function(t,e){this.requestManager=t,this.localIdeographFontFamily=e,this.entries={}};x.prototype.setURL=function(t){this.url=t},x.prototype.getGlyphs=function(e,r){var n=this,i=[];for(var a in e)for(var o=0,s=e[a];o&lt;s.length;o+=1)i.push({stack:a,id:s[o]});t.asyncAll(i,(function(t,e){var r=t.stack,i=t.id,a=n.entries[r];a||(a=n.entries[r]={glyphs:{},requests:{},ranges:{}});var o=a.glyphs[i];if(void 0===o){if(o=n._tinySDF(a,r,i))return a.glyphs[i]=o,void e(null,{stack:r,id:i,glyph:o});var s=Math.floor(i/256);if(256*s&gt;65535)e(new Error(&quot;glyphs &gt; 65535 not supported&quot;));else if(a.ranges[s])e(null,{stack:r,id:i,glyph:o});else{var l=a.requests[s];l||(l=a.requests[s]=[],x.loadGlyphRange(r,s,n.url,n.requestManager,(function(t,e){if(e){for(var r in e)n._doesCharSupportLocalGlyph(+r)||(a.glyphs[+r]=e[+r]);a.ranges[s]=!0}for(var i=0,o=l;i&lt;o.length;i+=1)(0,o[i])(t,e);delete a.requests[s]}))),l.push((function(t,n){t?e(t):n&amp;&amp;e(null,{stack:r,id:i,glyph:n[i]||null})}))}}else e(null,{stack:r,id:i,glyph:o})}),(function(t,e){if(t)r(t);else if(e){for(var n={},i=0,a=e;i&lt;a.length;i+=1){var o=a[i],s=o.stack,l=o.id,c=o.glyph;(n[s]||(n[s]={}))[l]=c&amp;&amp;{id:c.id,bitmap:c.bitmap.clone(),metrics:c.metrics}}r(null,n)}}))},x.prototype._doesCharSupportLocalGlyph=function(e){return!!this.localIdeographFontFamily&amp;&amp;(t.isChar[&quot;CJK Unified Ideographs&quot;](e)||t.isChar[&quot;Hangul Syllables&quot;](e)||t.isChar.Hiragana(e)||t.isChar.Katakana(e))},x.prototype._tinySDF=function(e,r,n){var i=this.localIdeographFontFamily;if(i&amp;&amp;this._doesCharSupportLocalGlyph(n)){var a=e.tinySDF;if(!a){var o=&quot;400&quot;;/bold/i.test(r)?o=&quot;900&quot;:/medium/i.test(r)?o=&quot;500&quot;:/light/i.test(r)&amp;&amp;(o=&quot;200&quot;),a=e.tinySDF=new x.TinySDF(24,3,8,.25,i,o)}return{id:n,bitmap:new t.AlphaImage({width:30,height:30},a.draw(String.fromCharCode(n))),metrics:{width:24,height:24,left:0,top:-8,advance:24}}}},x.loadGlyphRange=function(e,r,n,i,a){var o=256*r,s=o+255,l=i.transformRequest(i.normalizeGlyphsURL(n).replace(&quot;{fontstack}&quot;,e).replace(&quot;{range}&quot;,o+&quot;-&quot;+s),t.ResourceType.Glyphs);t.getArrayBuffer(l,(function(e,r){if(e)a(e);else if(r){for(var n={},i=0,o=t.parseGlyphPBF(r);i&lt;o.length;i+=1){var s=o[i];n[s.id]=s}a(null,n)}}))},x.TinySDF=p;var b=function(){this.specification=t.styleSpec.light.position};b.prototype.possiblyEvaluate=function(e,r){return t.sphericalToCartesian(e.expression.evaluate(r))},b.prototype.interpolate=function(e,r,n){return{x:t.number(e.x,r.x,n),y:t.number(e.y,r.y,n),z:t.number(e.z,r.z,n)}};var _=new t.Properties({anchor:new t.DataConstantProperty(t.styleSpec.light.anchor),position:new b,color:new t.DataConstantProperty(t.styleSpec.light.color),intensity:new t.DataConstantProperty(t.styleSpec.light.intensity)}),w=function(e){function r(r){e.call(this),this._transitionable=new t.Transitionable(_),this.setLight(r),this._transitioning=this._transitionable.untransitioned()}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getLight=function(){return this._transitionable.serialize()},r.prototype.setLight=function(e,r){if(void 0===r&amp;&amp;(r={}),!this._validate(t.validateLight,e,r))for(var n in e){var i=e[n];t.endsWith(n,&quot;-transition&quot;)?this._transitionable.setTransition(n.slice(0,-&quot;-transition&quot;.length),i):this._transitionable.setValue(n,i)}},r.prototype.updateTransitions=function(t){this._transitioning=this._transitionable.transitioned(t,this._transitioning)},r.prototype.hasTransition=function(){return this._transitioning.hasTransition()},r.prototype.recalculate=function(t){this.properties=this._transitioning.possiblyEvaluate(t)},r.prototype._validate=function(e,r,n){return(!n||!1!==n.validate)&amp;&amp;t.emitValidationErrors(this,e.call(t.validateStyle,t.extend({value:r,style:{glyphs:!0,sprite:!0},styleSpec:t.styleSpec})))},r}(t.Evented),T=function(t,e){this.width=t,this.height=e,this.nextRow=0,this.data=new Uint8Array(this.width*this.height),this.dashEntry={}};T.prototype.getDash=function(t,e){var r=t.join(&quot;,&quot;)+String(e);return this.dashEntry[r]||(this.dashEntry[r]=this.addDash(t,e)),this.dashEntry[r]},T.prototype.getDashRanges=function(t,e,r){var n=[],i=t.length%2==1?-t[t.length-1]*r:0,a=t[0]*r,o=!0;n.push({left:i,right:a,isDash:o,zeroLength:0===t[0]});for(var s=t[0],l=1;l&lt;t.length;l++){var c=t[l];n.push({left:i=s*r,right:a=(s+=c)*r,isDash:o=!o,zeroLength:0===c})}return n},T.prototype.addRoundDash=function(t,e,r){for(var n=e/2,i=-r;i&lt;=r;i++)for(var a=this.width*(this.nextRow+r+i),o=0,s=t[o],l=0;l&lt;this.width;l++){l/s.right&gt;1&amp;&amp;(s=t[++o]);var c=Math.abs(l-s.left),u=Math.abs(l-s.right),f=Math.min(c,u),h=void 0,p=i/r*(n+1);if(s.isDash){var d=n-Math.abs(p);h=Math.sqrt(f*f+d*d)}else h=n-Math.sqrt(f*f+p*p);this.data[a+l]=Math.max(0,Math.min(255,h+128))}},T.prototype.addRegularDash=function(t){for(var e=t.length-1;e&gt;=0;--e){var r=t[e],n=t[e+1];r.zeroLength?t.splice(e,1):n&amp;&amp;n.isDash===r.isDash&amp;&amp;(n.left=r.left,t.splice(e,1))}var i=t[0],a=t[t.length-1];i.isDash===a.isDash&amp;&amp;(i.left=a.left-this.width,a.right=i.right+this.width);for(var o=this.width*this.nextRow,s=0,l=t[s],c=0;c&lt;this.width;c++){c/l.right&gt;1&amp;&amp;(l=t[++s]);var u=Math.abs(c-l.left),f=Math.abs(c-l.right),h=Math.min(u,f);this.data[o+c]=Math.max(0,Math.min(255,(l.isDash?h:-h)+128))}},T.prototype.addDash=function(e,r){var n=r?7:0,i=2*n+1;if(this.nextRow+i&gt;this.height)return t.warnOnce(&quot;LineAtlas out of space&quot;),null;for(var a=0,o=0;o&lt;e.length;o++)a+=e[o];if(0!==a){var s=this.width/a,l=this.getDashRanges(e,this.width,s);r?this.addRoundDash(l,s,n):this.addRegularDash(l)}var c={y:(this.nextRow+n+.5)/this.height,height:2*n/this.height,width:a};return this.nextRow+=i,this.dirty=!0,c},T.prototype.bind=function(t){var e=t.gl;this.texture?(e.bindTexture(e.TEXTURE_2D,this.texture),this.dirty&amp;&amp;(this.dirty=!1,e.texSubImage2D(e.TEXTURE_2D,0,0,0,this.width,this.height,e.ALPHA,e.UNSIGNED_BYTE,this.data))):(this.texture=e.createTexture(),e.bindTexture(e.TEXTURE_2D,this.texture),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texImage2D(e.TEXTURE_2D,0,e.ALPHA,this.width,this.height,0,e.ALPHA,e.UNSIGNED_BYTE,this.data))};var k=function e(r,n){this.workerPool=r,this.actors=[],this.currentActor=0,this.id=t.uniqueId();for(var i=this.workerPool.acquire(this.id),a=0;a&lt;i.length;a++){var o=new e.Actor(i[a],n,this.id);o.name=&quot;Worker &quot;+a,this.actors.push(o)}};function M(e,r,n){var i=function(i,a){if(i)return n(i);if(a){var o=t.pick(t.extend(a,e),[&quot;tiles&quot;,&quot;minzoom&quot;,&quot;maxzoom&quot;,&quot;attribution&quot;,&quot;mapbox_logo&quot;,&quot;bounds&quot;,&quot;scheme&quot;,&quot;tileSize&quot;,&quot;encoding&quot;]);a.vector_layers&amp;&amp;(o.vectorLayers=a.vector_layers,o.vectorLayerIds=o.vectorLayers.map((function(t){return t.id}))),o.tiles=r.canonicalizeTileset(o,e.url),n(null,o)}};return e.url?t.getJSON(r.transformRequest(r.normalizeSourceURL(e.url),t.ResourceType.Source),i):t.browser.frame((function(){return i(null,e)}))}k.prototype.broadcast=function(e,r,n){t.asyncAll(this.actors,(function(t,n){t.send(e,r,n)}),n=n||function(){})},k.prototype.getActor=function(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]},k.prototype.remove=function(){this.actors.forEach((function(t){t.remove()})),this.actors=[],this.workerPool.release(this.id)},k.Actor=t.Actor;var A=function(e,r,n){this.bounds=t.LngLatBounds.convert(this.validateBounds(e)),this.minzoom=r||0,this.maxzoom=n||24};A.prototype.validateBounds=function(t){return Array.isArray(t)&amp;&amp;4===t.length?[Math.max(-180,t[0]),Math.max(-90,t[1]),Math.min(180,t[2]),Math.min(90,t[3])]:[-180,-90,180,90]},A.prototype.contains=function(e){var r=Math.pow(2,e.z),n=Math.floor(t.mercatorXfromLng(this.bounds.getWest())*r),i=Math.floor(t.mercatorYfromLat(this.bounds.getNorth())*r),a=Math.ceil(t.mercatorXfromLng(this.bounds.getEast())*r),o=Math.ceil(t.mercatorYfromLat(this.bounds.getSouth())*r);return e.x&gt;=n&amp;&amp;e.x&lt;a&amp;&amp;e.y&gt;=i&amp;&amp;e.y&lt;o};var S=function(e){function r(r,n,i,a){if(e.call(this),this.id=r,this.dispatcher=i,this.type=&quot;vector&quot;,this.minzoom=0,this.maxzoom=22,this.scheme=&quot;xyz&quot;,this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,t.extend(this,t.pick(n,[&quot;url&quot;,&quot;scheme&quot;,&quot;tileSize&quot;,&quot;promoteId&quot;])),this._options=t.extend({type:&quot;vector&quot;},n),this._collectResourceTiming=n.collectResourceTiming,512!==this.tileSize)throw new Error(&quot;vector tile sources must have a tileSize of 512&quot;);this.setEventedParent(a)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._tileJSONRequest=M(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(t.extend(e,n),n.bounds&amp;&amp;(e.tileBounds=new A(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles,e.map._requestManager._customAccessToken),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken,e.map._requestManager._customAccessToken),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme)),i={request:this.map._requestManager.transformRequest(n,t.ResourceType.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function a(n,i){return delete e.request,e.aborted?r(null):n&amp;&amp;404!==n.status?r(n):(i&amp;&amp;i.resourceTiming&amp;&amp;(e.resourceTiming=i.resourceTiming),this.map._refreshExpiredTiles&amp;&amp;i&amp;&amp;e.setExpiryData(i),e.loadVectorData(i,this.map.painter),t.cacheEntryPossiblyAdded(this.dispatcher),r(null),void(e.reloadCallback&amp;&amp;(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}i.request.collectResourceTiming=this._collectResourceTiming,e.actor&amp;&amp;&quot;expired&quot;!==e.state?&quot;loading&quot;===e.state?e.reloadCallback=r:e.request=e.actor.send(&quot;reloadTile&quot;,i,a.bind(this)):(e.actor=this.dispatcher.getActor(),e.request=e.actor.send(&quot;loadTile&quot;,i,a.bind(this)))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.actor&amp;&amp;t.actor.send(&quot;abortTile&quot;,{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.unloadTile=function(t){t.unloadVectorData(),t.actor&amp;&amp;t.actor.send(&quot;removeTile&quot;,{uid:t.uid,type:this.type,source:this.id},void 0)},r.prototype.hasTransition=function(){return!1},r}(t.Evented),E=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.dispatcher=i,this.setEventedParent(a),this.type=&quot;raster&quot;,this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme=&quot;xyz&quot;,this.tileSize=512,this._loaded=!1,this._options=t.extend({type:&quot;raster&quot;},n),t.extend(this,t.pick(n,[&quot;url&quot;,&quot;scheme&quot;,&quot;tileSize&quot;]))}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._tileJSONRequest=M(this._options,this.map._requestManager,(function(r,n){e._tileJSONRequest=null,e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(t.extend(e,n),n.bounds&amp;&amp;(e.tileBounds=new A(n.bounds,e.minzoom,e.maxzoom)),t.postTurnstileEvent(n.tiles),t.postMapLoadEvent(n.tiles,e.map._getMapId(),e.map._requestManager._skuToken),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})),e.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.onRemove=function(){this._tileJSONRequest&amp;&amp;(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)},r.prototype.serialize=function(){return t.extend({},this._options)},r.prototype.hasTile=function(t){return!this.tileBounds||this.tileBounds.contains(t.canonical)},r.prototype.loadTile=function(e,r){var n=this,i=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);e.request=t.getImage(this.map._requestManager.transformRequest(i,t.ResourceType.Tile),(function(i,a){if(delete e.request,e.aborted)e.state=&quot;unloaded&quot;,r(null);else if(i)e.state=&quot;errored&quot;,r(i);else if(a){n.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(a),delete a.cacheControl,delete a.expires;var o=n.map.painter.context,s=o.gl;e.texture=n.map.painter.getTileTexture(a.width),e.texture?e.texture.update(a,{useMipmap:!0}):(e.texture=new t.Texture(o,a,s.RGBA,{useMipmap:!0}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),o.extTextureFilterAnisotropic&amp;&amp;s.texParameterf(s.TEXTURE_2D,o.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,o.extTextureFilterAnisotropicMax)),e.state=&quot;loaded&quot;,t.cacheEntryPossiblyAdded(n.dispatcher),r(null)}}))},r.prototype.abortTile=function(t,e){t.request&amp;&amp;(t.request.cancel(),delete t.request),e()},r.prototype.unloadTile=function(t,e){t.texture&amp;&amp;this.map.painter.saveTileTexture(t.texture),e()},r.prototype.hasTransition=function(){return!1},r}(t.Evented),C=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),this.type=&quot;raster-dem&quot;,this.maxzoom=22,this._options=t.extend({type:&quot;raster-dem&quot;},n),this.encoding=n.encoding||&quot;mapbox&quot;}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.serialize=function(){return{type:&quot;raster-dem&quot;,url:this.url,tileSize:this.tileSize,tiles:this.tiles,bounds:this.bounds,encoding:this.encoding}},r.prototype.loadTile=function(e,r){var n=this.map._requestManager.normalizeTileURL(e.tileID.canonical.url(this.tiles,this.scheme),this.tileSize);function i(t,n){t&amp;&amp;(e.state=&quot;errored&quot;,r(t)),n&amp;&amp;(e.dem=n,e.needsHillshadePrepare=!0,e.state=&quot;loaded&quot;,r(null))}e.request=t.getImage(this.map._requestManager.transformRequest(n,t.ResourceType.Tile),function(n,a){if(delete e.request,e.aborted)e.state=&quot;unloaded&quot;,r(null);else if(n)e.state=&quot;errored&quot;,r(n);else if(a){this.map._refreshExpiredTiles&amp;&amp;e.setExpiryData(a),delete a.cacheControl,delete a.expires;var o=t.window.ImageBitmap&amp;&amp;a instanceof t.window.ImageBitmap&amp;&amp;t.offscreenCanvasSupported()?a:t.browser.getImageData(a,1),s={uid:e.uid,coord:e.tileID,source:this.id,rawImageData:o,encoding:this.encoding};e.actor&amp;&amp;&quot;expired&quot;!==e.state||(e.actor=this.dispatcher.getActor(),e.actor.send(&quot;loadDEMTile&quot;,s,i.bind(this)))}}.bind(this)),e.neighboringTiles=this._getNeighboringTiles(e.tileID)},r.prototype._getNeighboringTiles=function(e){var r=e.canonical,n=Math.pow(2,r.z),i=(r.x-1+n)%n,a=0===r.x?e.wrap-1:e.wrap,o=(r.x+1+n)%n,s=r.x+1===n?e.wrap+1:e.wrap,l={};return l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y).key]={backfilled:!1},r.y&gt;0&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y-1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y-1).key]={backfilled:!1}),r.y+1&lt;n&amp;&amp;(l[new t.OverscaledTileID(e.overscaledZ,a,r.z,i,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,e.wrap,r.z,r.x,r.y+1).key]={backfilled:!1},l[new t.OverscaledTileID(e.overscaledZ,s,r.z,o,r.y+1).key]={backfilled:!1}),l},r.prototype.unloadTile=function(t){t.demTexture&amp;&amp;this.map.painter.saveTileTexture(t.demTexture),t.fbo&amp;&amp;(t.fbo.destroy(),delete t.fbo),t.dem&amp;&amp;delete t.dem,delete t.neighboringTiles,t.state=&quot;unloaded&quot;,t.actor&amp;&amp;t.actor.send(&quot;removeDEMTile&quot;,{uid:t.uid,source:this.id})},r}(E),L=function(e){function r(r,n,i,a){e.call(this),this.id=r,this.type=&quot;geojson&quot;,this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._loaded=!1,this.actor=i.getActor(),this.setEventedParent(a),this._data=n.data,this._options=t.extend({},n),this._collectResourceTiming=n.collectResourceTiming,this._resourceTiming=[],void 0!==n.maxzoom&amp;&amp;(this.maxzoom=n.maxzoom),n.type&amp;&amp;(this.type=n.type),n.attribution&amp;&amp;(this.attribution=n.attribution),this.promoteId=n.promoteId;var o=t.EXTENT/this.tileSize;this.workerOptions=t.extend({source:this.id,cluster:n.cluster||!1,geojsonVtOptions:{buffer:(void 0!==n.buffer?n.buffer:128)*o,tolerance:(void 0!==n.tolerance?n.tolerance:.375)*o,extent:t.EXTENT,maxZoom:this.maxzoom,lineMetrics:n.lineMetrics||!1,generateId:n.generateId||!1},superclusterOptions:{maxZoom:void 0!==n.clusterMaxZoom?Math.min(n.clusterMaxZoom,this.maxzoom-1):this.maxzoom-1,extent:t.EXTENT,radius:(n.clusterRadius||50)*o,log:!1,generateId:n.generateId||!1},clusterProperties:n.clusterProperties},n.workerOptions)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._updateWorkerData((function(r){if(r)e.fire(new t.ErrorEvent(r));else{var n={dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;};e._collectResourceTiming&amp;&amp;e._resourceTiming&amp;&amp;e._resourceTiming.length&gt;0&amp;&amp;(n.resourceTiming=e._resourceTiming,e._resourceTiming=[]),e.fire(new t.Event(&quot;data&quot;,n))}}))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setData=function(e){var r=this;return this._data=e,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this._updateWorkerData((function(e){if(e)r.fire(new t.ErrorEvent(e));else{var n={dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;};r._collectResourceTiming&amp;&amp;r._resourceTiming&amp;&amp;r._resourceTiming.length&gt;0&amp;&amp;(n.resourceTiming=r._resourceTiming,r._resourceTiming=[]),r.fire(new t.Event(&quot;data&quot;,n))}})),this},r.prototype.getClusterExpansionZoom=function(t,e){return this.actor.send(&quot;geojson.getClusterExpansionZoom&quot;,{clusterId:t,source:this.id},e),this},r.prototype.getClusterChildren=function(t,e){return this.actor.send(&quot;geojson.getClusterChildren&quot;,{clusterId:t,source:this.id},e),this},r.prototype.getClusterLeaves=function(t,e,r,n){return this.actor.send(&quot;geojson.getClusterLeaves&quot;,{source:this.id,clusterId:t,limit:e,offset:r},n),this},r.prototype._updateWorkerData=function(e){var r=this;this._loaded=!1;var n=t.extend({},this.workerOptions),i=this._data;&quot;string&quot;==typeof i?(n.request=this.map._requestManager.transformRequest(t.browser.resolveURL(i),t.ResourceType.Source),n.request.collectResourceTiming=this._collectResourceTiming):n.data=JSON.stringify(i),this.actor.send(this.type+&quot;.loadData&quot;,n,(function(t,i){r._removed||i&amp;&amp;i.abandoned||(r._loaded=!0,i&amp;&amp;i.resourceTiming&amp;&amp;i.resourceTiming[r.id]&amp;&amp;(r._resourceTiming=i.resourceTiming[r.id].slice(0)),r.actor.send(r.type+&quot;.coalesce&quot;,{source:n.source},null),e(t))}))},r.prototype.loaded=function(){return this._loaded},r.prototype.loadTile=function(e,r){var n=this,i=e.actor?&quot;reloadTile&quot;:&quot;loadTile&quot;;e.actor=this.actor,e.request=this.actor.send(i,{type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:t.browser.devicePixelRatio,showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId},(function(t,a){return delete e.request,e.unloadVectorData(),e.aborted?r(null):t?r(t):(e.loadVectorData(a,n.map.painter,&quot;reloadTile&quot;===i),r(null))}))},r.prototype.abortTile=function(t){t.request&amp;&amp;(t.request.cancel(),delete t.request),t.aborted=!0},r.prototype.unloadTile=function(t){t.unloadVectorData(),this.actor.send(&quot;removeTile&quot;,{uid:t.uid,type:this.type,source:this.id})},r.prototype.onRemove=function(){this._removed=!0,this.actor.send(&quot;removeSource&quot;,{type:this.type,source:this.id})},r.prototype.serialize=function(){return t.extend({},this._options,{type:this.type,data:this._data})},r.prototype.hasTransition=function(){return!1},r}(t.Evented),I=t.createLayout([{name:&quot;a_pos&quot;,type:&quot;Int16&quot;,components:2},{name:&quot;a_texture_pos&quot;,type:&quot;Int16&quot;,components:2}]),P=function(e){function r(t,r,n,i){e.call(this),this.id=t,this.dispatcher=n,this.coordinates=r.coordinates,this.type=&quot;image&quot;,this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(i),this.options=r}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(e,r){var n=this;this._loaded=!1,this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;source&quot;})),this.url=this.options.url,t.getImage(this.map._requestManager.transformRequest(this.url,t.ResourceType.Image),(function(i,a){n._loaded=!0,i?n.fire(new t.ErrorEvent(i)):a&amp;&amp;(n.image=a,e&amp;&amp;(n.coordinates=e),r&amp;&amp;r(),n._finishLoading())}))},r.prototype.loaded=function(){return this._loaded},r.prototype.updateImage=function(t){var e=this;return this.image&amp;&amp;t.url?(this.options.url=t.url,this.load(t.coordinates,(function(){e.texture=null})),this):this},r.prototype._finishLoading=function(){this.map&amp;&amp;(this.setCoordinates(this.coordinates),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;metadata&quot;})))},r.prototype.onAdd=function(t){this.map=t,this.load()},r.prototype.setCoordinates=function(e){var r=this;this.coordinates=e;var n=e.map(t.MercatorCoordinate.fromLngLat);this.tileID=function(e){for(var r=1/0,n=1/0,i=-1/0,a=-1/0,o=0,s=e;o&lt;s.length;o+=1){var l=s[o];r=Math.min(r,l.x),n=Math.min(n,l.y),i=Math.max(i,l.x),a=Math.max(a,l.y)}var c=Math.max(i-r,a-n),u=Math.max(0,Math.floor(-Math.log(c)/Math.LN2)),f=Math.pow(2,u);return new t.CanonicalTileID(u,Math.floor((r+i)/2*f),Math.floor((n+a)/2*f))}(n),this.minzoom=this.maxzoom=this.tileID.z;var i=n.map((function(t){return r.tileID.getTilePoint(t)._round()}));return this._boundsArray=new t.StructArrayLayout4i8,this._boundsArray.emplaceBack(i[0].x,i[0].y,0,0),this._boundsArray.emplaceBack(i[1].x,i[1].y,t.EXTENT,0),this._boundsArray.emplaceBack(i[3].x,i[3].y,0,t.EXTENT),this._boundsArray.emplaceBack(i[2].x,i[2].y,t.EXTENT,t.EXTENT),this.boundsBuffer&amp;&amp;(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,sourceDataType:&quot;content&quot;})),this},r.prototype.prepare=function(){if(0!==Object.keys(this.tiles).length&amp;&amp;this.image){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture||(this.texture=new t.Texture(e,this.image,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];&quot;loaded&quot;!==i.state&amp;&amp;(i.state=&quot;loaded&quot;,i.texture=this.texture)}}},r.prototype.loadTile=function(t,e){this.tileID&amp;&amp;this.tileID.equals(t.tileID.canonical)?(this.tiles[String(t.tileID.wrap)]=t,t.buckets={},e(null)):(t.state=&quot;errored&quot;,e(null))},r.prototype.serialize=function(){return{type:&quot;image&quot;,url:this.options.url,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return!1},r}(t.Evented),z=function(e){function r(t,r,n,i){e.call(this,t,r,n,i),this.roundZoom=!0,this.type=&quot;video&quot;,this.options=r}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){var e=this;this._loaded=!1;var r=this.options;this.urls=[];for(var n=0,i=r.urls;n&lt;i.length;n+=1)this.urls.push(this.map._requestManager.transformRequest(i[n],t.ResourceType.Source).url);t.getVideo(this.urls,(function(r,n){e._loaded=!0,r?e.fire(new t.ErrorEvent(r)):n&amp;&amp;(e.video=n,e.video.loop=!0,e.video.addEventListener(&quot;playing&quot;,(function(){e.map.triggerRepaint()})),e.map&amp;&amp;e.video.play(),e._finishLoading())}))},r.prototype.pause=function(){this.video&amp;&amp;this.video.pause()},r.prototype.play=function(){this.video&amp;&amp;this.video.play()},r.prototype.seek=function(e){if(this.video){var r=this.video.seekable;e&lt;r.start(0)||e&gt;r.end(0)?this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+this.id,null,&quot;Playback for this video can be set only between the &quot;+r.start(0)+&quot; and &quot;+r.end(0)+&quot;-second mark.&quot;))):this.video.currentTime=e}},r.prototype.getVideo=function(){return this.video},r.prototype.onAdd=function(t){this.map||(this.map=t,this.load(),this.video&amp;&amp;(this.video.play(),this.setCoordinates(this.coordinates)))},r.prototype.prepare=function(){if(!(0===Object.keys(this.tiles).length||this.video.readyState&lt;2)){var e=this.map.painter.context,r=e.gl;for(var n in this.boundsBuffer||(this.boundsBuffer=e.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE),r.texSubImage2D(r.TEXTURE_2D,0,0,0,r.RGBA,r.UNSIGNED_BYTE,this.video)):(this.texture=new t.Texture(e,this.video,r.RGBA),this.texture.bind(r.LINEAR,r.CLAMP_TO_EDGE)),this.tiles){var i=this.tiles[n];&quot;loaded&quot;!==i.state&amp;&amp;(i.state=&quot;loaded&quot;,i.texture=this.texture)}}},r.prototype.serialize=function(){return{type:&quot;video&quot;,urls:this.urls,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this.video&amp;&amp;!this.video.paused},r}(P),O=function(e){function r(r,n,i,a){e.call(this,r,n,i,a),n.coordinates?Array.isArray(n.coordinates)&amp;&amp;4===n.coordinates.length&amp;&amp;!n.coordinates.some((function(t){return!Array.isArray(t)||2!==t.length||t.some((function(t){return&quot;number&quot;!=typeof t}))}))||this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'&quot;coordinates&quot; property must be an array of 4 longitude/latitude array pairs'))):this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'missing required property &quot;coordinates&quot;'))),n.animate&amp;&amp;&quot;boolean&quot;!=typeof n.animate&amp;&amp;this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'optional &quot;animate&quot; property must be a boolean value'))),n.canvas?&quot;string&quot;==typeof n.canvas||n.canvas instanceof t.window.HTMLCanvasElement||this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'&quot;canvas&quot; must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new t.ErrorEvent(new t.ValidationError(&quot;sources.&quot;+r,null,'missing required property &quot;canvas&quot;'))),this.options=n,this.animate=void 0===n.animate||n.animate}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.load=function(){this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof t.window.HTMLCanvasElement?this.options.canvas:t.window.document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new t.ErrorEvent(new Error(&quot;Canvas dimensions cannot be less than or equal to zero.&quot;))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&amp;&amp;(this.prepare(),this._playing=!1)},this._finishLoading())},r.prototype.getCanvas=function(){return this.canvas},r.prototype.onAdd=function(t){this.map=t,this.load(),this.canvas&amp;&amp;this.animate&amp;&amp;this.play()},r.prototype.onRemove=function(){this.pause()},r.prototype.prepare=function(){var e=!1;if(this.canvas.width!==this.width&amp;&amp;(this.width=this.canvas.width,e=!0),this.canvas.height!==this.height&amp;&amp;(this.height=this.canvas.height,e=!0),!this._hasInvalidDimensions()&amp;&amp;0!==Object.keys(this.tiles).length){var r=this.map.painter.context,n=r.gl;for(var i in this.boundsBuffer||(this.boundsBuffer=r.createVertexBuffer(this._boundsArray,I.members)),this.boundsSegments||(this.boundsSegments=t.SegmentVector.simpleSegment(0,0,4,2)),this.texture?(e||this._playing)&amp;&amp;this.texture.update(this.canvas,{premultiply:!0}):this.texture=new t.Texture(r,this.canvas,n.RGBA,{premultiply:!0}),this.tiles){var a=this.tiles[i];&quot;loaded&quot;!==a.state&amp;&amp;(a.state=&quot;loaded&quot;,a.texture=this.texture)}}},r.prototype.serialize=function(){return{type:&quot;canvas&quot;,coordinates:this.coordinates}},r.prototype.hasTransition=function(){return this._playing},r.prototype._hasInvalidDimensions=function(){for(var t=0,e=[this.canvas.width,this.canvas.height];t&lt;e.length;t+=1){var r=e[t];if(isNaN(r)||r&lt;=0)return!0}return!1},r}(P),D={vector:S,raster:E,&quot;raster-dem&quot;:C,geojson:L,video:z,image:P,canvas:O};function R(e,r){var n=t.identity([]);return t.translate(n,n,[1,1,0]),t.scale(n,n,[.5*e.width,.5*e.height,1]),t.multiply(n,n,e.calculatePosMatrix(r.toUnwrapped()))}function F(t,e,r,n,i,a){var o=function(t,e,r){if(t)for(var n=0,i=t;n&lt;i.length;n+=1){var a=e[i[n]];if(a&amp;&amp;a.source===r&amp;&amp;&quot;fill-extrusion&quot;===a.type)return!0}else for(var o in e){var s=e[o];if(s.source===r&amp;&amp;&quot;fill-extrusion&quot;===s.type)return!0}return!1}(i&amp;&amp;i.layers,e,t.id),s=a.maxPitchScaleFactor(),l=t.tilesIn(n,s,o);l.sort(B);for(var c=[],u=0,f=l;u&lt;f.length;u+=1){var h=f[u];c.push({wrappedTileID:h.tileID.wrapped().key,queryResults:h.tile.queryRenderedFeatures(e,r,t._state,h.queryGeometry,h.cameraQueryGeometry,h.scale,i,a,s,R(t.transform,h.tileID))})}var p=function(t){for(var e={},r={},n=0,i=t;n&lt;i.length;n+=1){var a=i[n],o=a.queryResults,s=a.wrappedTileID,l=r[s]=r[s]||{};for(var c in o)for(var u=o[c],f=l[c]=l[c]||{},h=e[c]=e[c]||[],p=0,d=u;p&lt;d.length;p+=1){var g=d[p];f[g.featureIndex]||(f[g.featureIndex]=!0,h.push(g))}}return e}(c);for(var d in p)p[d].forEach((function(e){var r=e.feature,n=t.getFeatureState(r.layer[&quot;source-layer&quot;],r.id);r.source=r.layer.source,r.layer[&quot;source-layer&quot;]&amp;&amp;(r.sourceLayer=r.layer[&quot;source-layer&quot;]),r.state=n}));return p}function B(t,e){var r=t.tileID,n=e.tileID;return r.overscaledZ-n.overscaledZ||r.canonical.y-n.canonical.y||r.wrap-n.wrap||r.canonical.x-n.canonical.x}var N=function(t,e){this.max=t,this.onRemove=e,this.reset()};N.prototype.reset=function(){for(var t in this.data)for(var e=0,r=this.data[t];e&lt;r.length;e+=1){var n=r[e];n.timeout&amp;&amp;clearTimeout(n.timeout),this.onRemove(n.value)}return this.data={},this.order=[],this},N.prototype.add=function(t,e,r){var n=this,i=t.wrapped().key;void 0===this.data[i]&amp;&amp;(this.data[i]=[]);var a={value:e,timeout:void 0};if(void 0!==r&amp;&amp;(a.timeout=setTimeout((function(){n.remove(t,a)}),r)),this.data[i].push(a),this.order.push(i),this.order.length&gt;this.max){var o=this._getAndRemoveByKey(this.order[0]);o&amp;&amp;this.onRemove(o)}return this},N.prototype.has=function(t){return t.wrapped().key in this.data},N.prototype.getAndRemove=function(t){return this.has(t)?this._getAndRemoveByKey(t.wrapped().key):null},N.prototype._getAndRemoveByKey=function(t){var e=this.data[t].shift();return e.timeout&amp;&amp;clearTimeout(e.timeout),0===this.data[t].length&amp;&amp;delete this.data[t],this.order.splice(this.order.indexOf(t),1),e.value},N.prototype.getByKey=function(t){var e=this.data[t];return e?e[0].value:null},N.prototype.get=function(t){return this.has(t)?this.data[t.wrapped().key][0].value:null},N.prototype.remove=function(t,e){if(!this.has(t))return this;var r=t.wrapped().key,n=void 0===e?0:this.data[r].indexOf(e),i=this.data[r][n];return this.data[r].splice(n,1),i.timeout&amp;&amp;clearTimeout(i.timeout),0===this.data[r].length&amp;&amp;delete this.data[r],this.onRemove(i.value),this.order.splice(this.order.indexOf(r),1),this},N.prototype.setMaxSize=function(t){for(this.max=t;this.order.length&gt;this.max;){var e=this._getAndRemoveByKey(this.order[0]);e&amp;&amp;this.onRemove(e)}return this},N.prototype.filter=function(t){var e=[];for(var r in this.data)for(var n=0,i=this.data[r];n&lt;i.length;n+=1){var a=i[n];t(a.value)||e.push(a)}for(var o=0,s=e;o&lt;s.length;o+=1){var l=s[o];this.remove(l.value.tileID,l)}};var j=function(t,e,r){this.context=t;var n=t.gl;this.buffer=n.createBuffer(),this.dynamicDraw=Boolean(r),this.context.unbindVAO(),t.bindElementBuffer.set(this.buffer),n.bufferData(n.ELEMENT_ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?n.DYNAMIC_DRAW:n.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};j.prototype.bind=function(){this.context.bindElementBuffer.set(this.buffer)},j.prototype.updateData=function(t){var e=this.context.gl;this.context.unbindVAO(),this.bind(),e.bufferSubData(e.ELEMENT_ARRAY_BUFFER,0,t.arrayBuffer)},j.prototype.destroy=function(){this.buffer&amp;&amp;(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var U={Int8:&quot;BYTE&quot;,Uint8:&quot;UNSIGNED_BYTE&quot;,Int16:&quot;SHORT&quot;,Uint16:&quot;UNSIGNED_SHORT&quot;,Int32:&quot;INT&quot;,Uint32:&quot;UNSIGNED_INT&quot;,Float32:&quot;FLOAT&quot;},V=function(t,e,r,n){this.length=e.length,this.attributes=r,this.itemSize=e.bytesPerElement,this.dynamicDraw=n,this.context=t;var i=t.gl;this.buffer=i.createBuffer(),t.bindVertexBuffer.set(this.buffer),i.bufferData(i.ARRAY_BUFFER,e.arrayBuffer,this.dynamicDraw?i.DYNAMIC_DRAW:i.STATIC_DRAW),this.dynamicDraw||delete e.arrayBuffer};V.prototype.bind=function(){this.context.bindVertexBuffer.set(this.buffer)},V.prototype.updateData=function(t){var e=this.context.gl;this.bind(),e.bufferSubData(e.ARRAY_BUFFER,0,t.arrayBuffer)},V.prototype.enableAttributes=function(t,e){for(var r=0;r&lt;this.attributes.length;r++){var n=e.attributes[this.attributes[r].name];void 0!==n&amp;&amp;t.enableVertexAttribArray(n)}},V.prototype.setVertexAttribPointers=function(t,e,r){for(var n=0;n&lt;this.attributes.length;n++){var i=this.attributes[n],a=e.attributes[i.name];void 0!==a&amp;&amp;t.vertexAttribPointer(a,i.components,t[U[i.type]],!1,this.itemSize,i.offset+this.itemSize*(r||0))}},V.prototype.destroy=function(){this.buffer&amp;&amp;(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)};var q=function(t){this.gl=t.gl,this.default=this.getDefault(),this.current=this.default,this.dirty=!1};q.prototype.get=function(){return this.current},q.prototype.set=function(t){},q.prototype.getDefault=function(){return this.default},q.prototype.setDefault=function(){this.set(this.default)};var H=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.clearColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),G=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 1},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearDepth(t),this.current=t,this.dirty=!1)},e}(q),Y=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.clearStencil(t),this.current=t,this.dirty=!1)},e}(q),W=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return[!0,!0,!0,!0]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.colorMask(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),X=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthMask(t),this.current=t,this.dirty=!1)},e}(q),Z=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 255},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.stencilMask(t),this.current=t,this.dirty=!1)},e}(q),J=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return{func:this.gl.ALWAYS,ref:0,mask:255}},e.prototype.set=function(t){var e=this.current;(t.func!==e.func||t.ref!==e.ref||t.mask!==e.mask||this.dirty)&amp;&amp;(this.gl.stencilFunc(t.func,t.ref,t.mask),this.current=t,this.dirty=!1)},e}(q),K=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.KEEP,t.KEEP,t.KEEP]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||this.dirty)&amp;&amp;(this.gl.stencilOp(t[0],t[1],t[2]),this.current=t,this.dirty=!1)},e}(q),Q=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.STENCIL_TEST):e.disable(e.STENCIL_TEST),this.current=t,this.dirty=!1}},e}(q),$=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return[0,1]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.depthRange(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),tt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.DEPTH_TEST):e.disable(e.DEPTH_TEST),this.current=t,this.dirty=!1}},e}(q),et=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.LESS},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.depthFunc(t),this.current=t,this.dirty=!1)},e}(q),rt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.BLEND):e.disable(e.BLEND),this.current=t,this.dirty=!1}},e}(q),nt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[t.ONE,t.ZERO]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||this.dirty)&amp;&amp;(this.gl.blendFunc(t[0],t[1]),this.current=t,this.dirty=!1)},e}(q),it=function(e){function r(){e.apply(this,arguments)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getDefault=function(){return t.Color.transparent},r.prototype.set=function(t){var e=this.current;(t.r!==e.r||t.g!==e.g||t.b!==e.b||t.a!==e.a||this.dirty)&amp;&amp;(this.gl.blendColor(t.r,t.g,t.b,t.a),this.current=t,this.dirty=!1)},r}(q),at=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.FUNC_ADD},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.blendEquation(t),this.current=t,this.dirty=!1)},e}(q),ot=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;t?e.enable(e.CULL_FACE):e.disable(e.CULL_FACE),this.current=t,this.dirty=!1}},e}(q),st=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.BACK},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.cullFace(t),this.current=t,this.dirty=!1)},e}(q),lt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.CCW},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.frontFace(t),this.current=t,this.dirty=!1)},e}(q),ct=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.useProgram(t),this.current=t,this.dirty=!1)},e}(q),ut=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return this.gl.TEXTURE0},e.prototype.set=function(t){(t!==this.current||this.dirty)&amp;&amp;(this.gl.activeTexture(t),this.current=t,this.dirty=!1)},e}(q),ft=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){var t=this.gl;return[0,0,t.drawingBufferWidth,t.drawingBufferHeight]},e.prototype.set=function(t){var e=this.current;(t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||this.dirty)&amp;&amp;(this.gl.viewport(t[0],t[1],t[2],t[3]),this.current=t,this.dirty=!1)},e}(q),ht=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,t),this.current=t,this.dirty=!1}},e}(q),pt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindRenderbuffer(e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(q),dt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindTexture(e.TEXTURE_2D,t),this.current=t,this.dirty=!1}},e}(q),gt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.bindBuffer(e.ARRAY_BUFFER,t),this.current=t,this.dirty=!1}},e}(q),mt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){var e=this.gl;e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,t),this.current=t,this.dirty=!1},e}(q),vt=function(t){function e(e){t.call(this,e),this.vao=e.extVertexArrayObject}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e.prototype.set=function(t){this.vao&amp;&amp;(t!==this.current||this.dirty)&amp;&amp;(this.vao.bindVertexArrayOES(t),this.current=t,this.dirty=!1)},e}(q),yt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return 4},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_ALIGNMENT,t),this.current=t,this.dirty=!1}},e}(q),xt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),bt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return!1},e.prototype.set=function(t){if(t!==this.current||this.dirty){var e=this.gl;e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,t),this.current=t,this.dirty=!1}},e}(q),_t=function(t){function e(e,r){t.call(this,e),this.context=e,this.parent=r}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.getDefault=function(){return null},e}(q),wt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.setDirty=function(){this.dirty=!0},e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,t,0),this.current=t,this.dirty=!1}},e}(_t),Tt=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.set=function(t){if(t!==this.current||this.dirty){this.context.bindFramebuffer.set(this.parent);var e=this.gl;e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,t),this.current=t,this.dirty=!1}},e}(_t),kt=function(t,e,r,n){this.context=t,this.width=e,this.height=r;var i=this.framebuffer=t.gl.createFramebuffer();this.colorAttachment=new wt(t,i),n&amp;&amp;(this.depthAttachment=new Tt(t,i))};kt.prototype.destroy=function(){var t=this.context.gl,e=this.colorAttachment.get();if(e&amp;&amp;t.deleteTexture(e),this.depthAttachment){var r=this.depthAttachment.get();r&amp;&amp;t.deleteRenderbuffer(r)}t.deleteFramebuffer(this.framebuffer)};var Mt=function(t,e,r){this.func=t,this.mask=e,this.range=r};Mt.ReadOnly=!1,Mt.ReadWrite=!0,Mt.disabled=new Mt(519,Mt.ReadOnly,[0,1]);var At=function(t,e,r,n,i,a){this.test=t,this.ref=e,this.mask=r,this.fail=n,this.depthFail=i,this.pass=a};At.disabled=new At({func:519,mask:0},0,0,7680,7680,7680);var St=function(t,e,r){this.blendFunction=t,this.blendColor=e,this.mask=r};St.disabled=new St(St.Replace=[1,0],t.Color.transparent,[!1,!1,!1,!1]),St.unblended=new St(St.Replace,t.Color.transparent,[!0,!0,!0,!0]),St.alphaBlended=new St([1,771],t.Color.transparent,[!0,!0,!0,!0]);var Et=function(t,e,r){this.enable=t,this.mode=e,this.frontFace=r};Et.disabled=new Et(!1,1029,2305),Et.backCCW=new Et(!0,1029,2305);var Ct=function(t){this.gl=t,this.extVertexArrayObject=this.gl.getExtension(&quot;OES_vertex_array_object&quot;),this.clearColor=new H(this),this.clearDepth=new G(this),this.clearStencil=new Y(this),this.colorMask=new W(this),this.depthMask=new X(this),this.stencilMask=new Z(this),this.stencilFunc=new J(this),this.stencilOp=new K(this),this.stencilTest=new Q(this),this.depthRange=new $(this),this.depthTest=new tt(this),this.depthFunc=new et(this),this.blend=new rt(this),this.blendFunc=new nt(this),this.blendColor=new it(this),this.blendEquation=new at(this),this.cullFace=new ot(this),this.cullFaceSide=new st(this),this.frontFace=new lt(this),this.program=new ct(this),this.activeTexture=new ut(this),this.viewport=new ft(this),this.bindFramebuffer=new ht(this),this.bindRenderbuffer=new pt(this),this.bindTexture=new dt(this),this.bindVertexBuffer=new gt(this),this.bindElementBuffer=new mt(this),this.bindVertexArrayOES=this.extVertexArrayObject&amp;&amp;new vt(this),this.pixelStoreUnpack=new yt(this),this.pixelStoreUnpackPremultiplyAlpha=new xt(this),this.pixelStoreUnpackFlipY=new bt(this),this.extTextureFilterAnisotropic=t.getExtension(&quot;EXT_texture_filter_anisotropic&quot;)||t.getExtension(&quot;MOZ_EXT_texture_filter_anisotropic&quot;)||t.getExtension(&quot;WEBKIT_EXT_texture_filter_anisotropic&quot;),this.extTextureFilterAnisotropic&amp;&amp;(this.extTextureFilterAnisotropicMax=t.getParameter(this.extTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT)),this.extTextureHalfFloat=t.getExtension(&quot;OES_texture_half_float&quot;),this.extTextureHalfFloat&amp;&amp;(t.getExtension(&quot;OES_texture_half_float_linear&quot;),this.extRenderToTextureHalfFloat=t.getExtension(&quot;EXT_color_buffer_half_float&quot;)),this.extTimerQuery=t.getExtension(&quot;EXT_disjoint_timer_query&quot;)};Ct.prototype.setDefault=function(){this.unbindVAO(),this.clearColor.setDefault(),this.clearDepth.setDefault(),this.clearStencil.setDefault(),this.colorMask.setDefault(),this.depthMask.setDefault(),this.stencilMask.setDefault(),this.stencilFunc.setDefault(),this.stencilOp.setDefault(),this.stencilTest.setDefault(),this.depthRange.setDefault(),this.depthTest.setDefault(),this.depthFunc.setDefault(),this.blend.setDefault(),this.blendFunc.setDefault(),this.blendColor.setDefault(),this.blendEquation.setDefault(),this.cullFace.setDefault(),this.cullFaceSide.setDefault(),this.frontFace.setDefault(),this.program.setDefault(),this.activeTexture.setDefault(),this.bindFramebuffer.setDefault(),this.pixelStoreUnpack.setDefault(),this.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.pixelStoreUnpackFlipY.setDefault()},Ct.prototype.setDirty=function(){this.clearColor.dirty=!0,this.clearDepth.dirty=!0,this.clearStencil.dirty=!0,this.colorMask.dirty=!0,this.depthMask.dirty=!0,this.stencilMask.dirty=!0,this.stencilFunc.dirty=!0,this.stencilOp.dirty=!0,this.stencilTest.dirty=!0,this.depthRange.dirty=!0,this.depthTest.dirty=!0,this.depthFunc.dirty=!0,this.blend.dirty=!0,this.blendFunc.dirty=!0,this.blendColor.dirty=!0,this.blendEquation.dirty=!0,this.cullFace.dirty=!0,this.cullFaceSide.dirty=!0,this.frontFace.dirty=!0,this.program.dirty=!0,this.activeTexture.dirty=!0,this.viewport.dirty=!0,this.bindFramebuffer.dirty=!0,this.bindRenderbuffer.dirty=!0,this.bindTexture.dirty=!0,this.bindVertexBuffer.dirty=!0,this.bindElementBuffer.dirty=!0,this.extVertexArrayObject&amp;&amp;(this.bindVertexArrayOES.dirty=!0),this.pixelStoreUnpack.dirty=!0,this.pixelStoreUnpackPremultiplyAlpha.dirty=!0,this.pixelStoreUnpackFlipY.dirty=!0},Ct.prototype.createIndexBuffer=function(t,e){return new j(this,t,e)},Ct.prototype.createVertexBuffer=function(t,e,r){return new V(this,t,e,r)},Ct.prototype.createRenderbuffer=function(t,e,r){var n=this.gl,i=n.createRenderbuffer();return this.bindRenderbuffer.set(i),n.renderbufferStorage(n.RENDERBUFFER,t,e,r),this.bindRenderbuffer.set(null),i},Ct.prototype.createFramebuffer=function(t,e,r){return new kt(this,t,e,r)},Ct.prototype.clear=function(t){var e=t.color,r=t.depth,n=this.gl,i=0;e&amp;&amp;(i|=n.COLOR_BUFFER_BIT,this.clearColor.set(e),this.colorMask.set([!0,!0,!0,!0])),void 0!==r&amp;&amp;(i|=n.DEPTH_BUFFER_BIT,this.depthRange.set([0,1]),this.clearDepth.set(r),this.depthMask.set(!0)),n.clear(i)},Ct.prototype.setCullFace=function(t){!1===t.enable?this.cullFace.set(!1):(this.cullFace.set(!0),this.cullFaceSide.set(t.mode),this.frontFace.set(t.frontFace))},Ct.prototype.setDepthMode=function(t){t.func!==this.gl.ALWAYS||t.mask?(this.depthTest.set(!0),this.depthFunc.set(t.func),this.depthMask.set(t.mask),this.depthRange.set(t.range)):this.depthTest.set(!1)},Ct.prototype.setStencilMode=function(t){t.test.func!==this.gl.ALWAYS||t.mask?(this.stencilTest.set(!0),this.stencilMask.set(t.mask),this.stencilOp.set([t.fail,t.depthFail,t.pass]),this.stencilFunc.set({func:t.test.func,ref:t.ref,mask:t.test.mask})):this.stencilTest.set(!1)},Ct.prototype.setColorMode=function(e){t.deepEqual(e.blendFunction,St.Replace)?this.blend.set(!1):(this.blend.set(!0),this.blendFunc.set(e.blendFunction),this.blendColor.set(e.blendColor)),this.colorMask.set(e.mask)},Ct.prototype.unbindVAO=function(){this.extVertexArrayObject&amp;&amp;this.bindVertexArrayOES.set(null)};var Lt=function(e){function r(r,n,i){var a=this;e.call(this),this.id=r,this.dispatcher=i,this.on(&quot;data&quot;,(function(t){&quot;source&quot;===t.dataType&amp;&amp;&quot;metadata&quot;===t.sourceDataType&amp;&amp;(a._sourceLoaded=!0),a._sourceLoaded&amp;&amp;!a._paused&amp;&amp;&quot;source&quot;===t.dataType&amp;&amp;&quot;content&quot;===t.sourceDataType&amp;&amp;(a.reload(),a.transform&amp;&amp;a.update(a.transform))})),this.on(&quot;error&quot;,(function(){a._sourceErrored=!0})),this._source=function(e,r,n,i){var a=new D[r.type](e,r,n,i);if(a.id!==e)throw new Error(&quot;Expected Source id to be &quot;+e+&quot; instead of &quot;+a.id);return t.bindAll([&quot;load&quot;,&quot;abort&quot;,&quot;unload&quot;,&quot;serialize&quot;,&quot;prepare&quot;],a),a}(r,n,i,this),this._tiles={},this._cache=new N(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new t.SourceFeatureState}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.onAdd=function(t){this.map=t,this._maxTileCacheSize=t?t._maxTileCacheSize:null,this._source&amp;&amp;this._source.onAdd&amp;&amp;this._source.onAdd(t)},r.prototype.onRemove=function(t){this._source&amp;&amp;this._source.onRemove&amp;&amp;this._source.onRemove(t)},r.prototype.loaded=function(){if(this._sourceErrored)return!0;if(!this._sourceLoaded)return!1;if(!this._source.loaded())return!1;for(var t in this._tiles){var e=this._tiles[t];if(&quot;loaded&quot;!==e.state&amp;&amp;&quot;errored&quot;!==e.state)return!1}return!0},r.prototype.getSource=function(){return this._source},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){if(this._paused){var t=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,t&amp;&amp;this.reload(),this.transform&amp;&amp;this.update(this.transform)}},r.prototype._loadTile=function(t,e){return this._source.loadTile(t,e)},r.prototype._unloadTile=function(t){if(this._source.unloadTile)return this._source.unloadTile(t,(function(){}))},r.prototype._abortTile=function(t){if(this._source.abortTile)return this._source.abortTile(t,(function(){}))},r.prototype.serialize=function(){return this._source.serialize()},r.prototype.prepare=function(t){for(var e in this._source.prepare&amp;&amp;this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){var r=this._tiles[e];r.upload(t),r.prepare(this.map.style.imageManager)}},r.prototype.getIds=function(){return t.values(this._tiles).map((function(t){return t.tileID})).sort(It).map((function(t){return t.key}))},r.prototype.getRenderableIds=function(e){var r=this,n=[];for(var i in this._tiles)this._isIdRenderable(i,e)&amp;&amp;n.push(this._tiles[i]);return e?n.sort((function(e,n){var i=e.tileID,a=n.tileID,o=new t.Point(i.canonical.x,i.canonical.y)._rotate(r.transform.angle),s=new t.Point(a.canonical.x,a.canonical.y)._rotate(r.transform.angle);return i.overscaledZ-a.overscaledZ||s.y-o.y||s.x-o.x})).map((function(t){return t.tileID.key})):n.map((function(t){return t.tileID})).sort(It).map((function(t){return t.key}))},r.prototype.hasRenderableParent=function(t){var e=this.findLoadedParent(t,0);return!!e&amp;&amp;this._isIdRenderable(e.tileID.key)},r.prototype._isIdRenderable=function(t,e){return this._tiles[t]&amp;&amp;this._tiles[t].hasData()&amp;&amp;!this._coveredTiles[t]&amp;&amp;(e||!this._tiles[t].holdingForFade())},r.prototype.reload=function(){if(this._paused)this._shouldReloadOnResume=!0;else for(var t in this._cache.reset(),this._tiles)&quot;errored&quot;!==this._tiles[t].state&amp;&amp;this._reloadTile(t,&quot;reloading&quot;)},r.prototype._reloadTile=function(t,e){var r=this._tiles[t];r&amp;&amp;(&quot;loading&quot;!==r.state&amp;&amp;(r.state=e),this._loadTile(r,this._tileLoaded.bind(this,r,t,e)))},r.prototype._tileLoaded=function(e,r,n,i){if(i)return e.state=&quot;errored&quot;,void(404!==i.status?this._source.fire(new t.ErrorEvent(i,{tile:e})):this.update(this.transform));e.timeAdded=t.browser.now(),&quot;expired&quot;===n&amp;&amp;(e.refreshedUponExpiration=!0),this._setTileReloadTimer(r,e),&quot;raster-dem&quot;===this.getSource().type&amp;&amp;e.dem&amp;&amp;this._backfillDEM(e),this._state.initializeTileState(e,this.map?this.map.painter:null),this._source.fire(new t.Event(&quot;data&quot;,{dataType:&quot;source&quot;,tile:e,coord:e.tileID}))},r.prototype._backfillDEM=function(t){for(var e=this.getRenderableIds(),r=0;r&lt;e.length;r++){var n=e[r];if(t.neighboringTiles&amp;&amp;t.neighboringTiles[n]){var i=this.getTileByID(n);a(t,i),a(i,t)}}function a(t,e){t.needsHillshadePrepare=!0;var r=e.tileID.canonical.x-t.tileID.canonical.x,n=e.tileID.canonical.y-t.tileID.canonical.y,i=Math.pow(2,t.tileID.canonical.z),a=e.tileID.key;0===r&amp;&amp;0===n||Math.abs(n)&gt;1||(Math.abs(r)&gt;1&amp;&amp;(1===Math.abs(r+i)?r+=i:1===Math.abs(r-i)&amp;&amp;(r-=i)),e.dem&amp;&amp;t.dem&amp;&amp;(t.dem.backfillBorder(e.dem,r,n),t.neighboringTiles&amp;&amp;t.neighboringTiles[a]&amp;&amp;(t.neighboringTiles[a].backfilled=!0)))}},r.prototype.getTile=function(t){return this.getTileByID(t.key)},r.prototype.getTileByID=function(t){return this._tiles[t]},r.prototype._retainLoadedChildren=function(t,e,r,n){for(var i in this._tiles){var a=this._tiles[i];if(!(n[i]||!a.hasData()||a.tileID.overscaledZ&lt;=e||a.tileID.overscaledZ&gt;r)){for(var o=a.tileID;a&amp;&amp;a.tileID.overscaledZ&gt;e+1;){var s=a.tileID.scaledTo(a.tileID.overscaledZ-1);(a=this._tiles[s.key])&amp;&amp;a.hasData()&amp;&amp;(o=s)}for(var l=o;l.overscaledZ&gt;e;)if(t[(l=l.scaledTo(l.overscaledZ-1)).key]){n[o.key]=o;break}}}},r.prototype.findLoadedParent=function(t,e){if(t.key in this._loadedParentTiles){var r=this._loadedParentTiles[t.key];return r&amp;&amp;r.tileID.overscaledZ&gt;=e?r:null}for(var n=t.overscaledZ-1;n&gt;=e;n--){var i=t.scaledTo(n),a=this._getLoadedTile(i);if(a)return a}},r.prototype._getLoadedTile=function(t){var e=this._tiles[t.key];return e&amp;&amp;e.hasData()?e:this._cache.getByKey(t.wrapped().key)},r.prototype.updateCacheSize=function(t){var e=Math.ceil(t.width/this._source.tileSize)+1,r=Math.ceil(t.height/this._source.tileSize)+1,n=Math.floor(e*r*5),i=&quot;number&quot;==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,n):n;this._cache.setMaxSize(i)},r.prototype.handleWrapJump=function(t){var e=Math.round((t-(void 0===this._prevLng?t:this._prevLng))/360);if(this._prevLng=t,e){var r={};for(var n in this._tiles){var i=this._tiles[n];i.tileID=i.tileID.unwrapTo(i.tileID.wrap+e),r[i.tileID.key]=i}for(var a in this._tiles=r,this._timers)clearTimeout(this._timers[a]),delete this._timers[a];for(var o in this._tiles)this._setTileReloadTimer(o,this._tiles[o])}},r.prototype.update=function(e){var n=this;if(this.transform=e,this._sourceLoaded&amp;&amp;!this._paused){var i;this.updateCacheSize(e),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used?this._source.tileID?i=e.getVisibleUnwrappedCoordinates(this._source.tileID).map((function(e){return new t.OverscaledTileID(e.canonical.z,e.wrap,e.canonical.z,e.canonical.x,e.canonical.y)})):(i=e.coveringTiles({tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled}),this._source.hasTile&amp;&amp;(i=i.filter((function(t){return n._source.hasTile(t)})))):i=[];var a=e.coveringZoomLevel(this._source),o=Math.max(a-r.maxOverzooming,this._source.minzoom),s=Math.max(a+r.maxUnderzooming,this._source.minzoom),l=this._updateRetainedTiles(i,a);if(Pt(this._source.type)){for(var c={},u={},f=0,h=Object.keys(l);f&lt;h.length;f+=1){var p=h[f],d=l[p],g=this._tiles[p];if(g&amp;&amp;!(g.fadeEndTime&amp;&amp;g.fadeEndTime&lt;=t.browser.now())){var m=this.findLoadedParent(d,o);m&amp;&amp;(this._addTile(m.tileID),c[m.tileID.key]=m.tileID),u[p]=d}}for(var v in this._retainLoadedChildren(u,a,s,l),c)l[v]||(this._coveredTiles[v]=!0,l[v]=c[v])}for(var y in l)this._tiles[y].clearFadeHold();for(var x=0,b=t.keysDifference(this._tiles,l);x&lt;b.length;x+=1){var _=b[x],w=this._tiles[_];w.hasSymbolBuckets&amp;&amp;!w.holdingForFade()?w.setHoldDuration(this.map._fadeDuration):w.hasSymbolBuckets&amp;&amp;!w.symbolFadeFinished()||this._removeTile(_)}this._updateLoadedParentTileCache()}},r.prototype.releaseSymbolFadeTiles=function(){for(var t in this._tiles)this._tiles[t].holdingForFade()&amp;&amp;this._removeTile(t)},r.prototype._updateRetainedTiles=function(t,e){for(var n={},i={},a=Math.max(e-r.maxOverzooming,this._source.minzoom),o=Math.max(e+r.maxUnderzooming,this._source.minzoom),s={},l=0,c=t;l&lt;c.length;l+=1){var u=c[l],f=this._addTile(u);n[u.key]=u,f.hasData()||e&lt;this._source.maxzoom&amp;&amp;(s[u.key]=u)}this._retainLoadedChildren(s,e,o,n);for(var h=0,p=t;h&lt;p.length;h+=1){var d=p[h],g=this._tiles[d.key];if(!g.hasData()){if(e+1&gt;this._source.maxzoom){var m=d.children(this._source.maxzoom)[0],v=this.getTile(m);if(v&amp;&amp;v.hasData()){n[m.key]=m;continue}}else{var y=d.children(this._source.maxzoom);if(n[y[0].key]&amp;&amp;n[y[1].key]&amp;&amp;n[y[2].key]&amp;&amp;n[y[3].key])continue}for(var x=g.wasRequested(),b=d.overscaledZ-1;b&gt;=a;--b){var _=d.scaledTo(b);if(i[_.key])break;if(i[_.key]=!0,!(g=this.getTile(_))&amp;&amp;x&amp;&amp;(g=this._addTile(_)),g&amp;&amp;(n[_.key]=_,x=g.wasRequested(),g.hasData()))break}}}return n},r.prototype._updateLoadedParentTileCache=function(){for(var t in this._loadedParentTiles={},this._tiles){for(var e=[],r=void 0,n=this._tiles[t].tileID;n.overscaledZ&gt;0;){if(n.key in this._loadedParentTiles){r=this._loadedParentTiles[n.key];break}e.push(n.key);var i=n.scaledTo(n.overscaledZ-1);if(r=this._getLoadedTile(i))break;n=i}for(var a=0,o=e;a&lt;o.length;a+=1)this._loadedParentTiles[o[a]]=r}},r.prototype._addTile=function(e){var r=this._tiles[e.key];if(r)return r;(r=this._cache.getAndRemove(e))&amp;&amp;(this._setTileReloadTimer(e.key,r),r.tileID=e,this._state.initializeTileState(r,this.map?this.map.painter:null),this._cacheTimers[e.key]&amp;&amp;(clearTimeout(this._cacheTimers[e.key]),delete this._cacheTimers[e.key],this._setTileReloadTimer(e.key,r)));var n=Boolean(r);return n||(r=new t.Tile(e,this._source.tileSize*e.overscaleFactor()),this._loadTile(r,this._tileLoaded.bind(this,r,e.key,r.state))),r?(r.uses++,this._tiles[e.key]=r,n||this._source.fire(new t.Event(&quot;dataloading&quot;,{tile:r,coord:r.tileID,dataType:&quot;source&quot;})),r):null},r.prototype._setTileReloadTimer=function(t,e){var r=this;t in this._timers&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]);var n=e.getExpiryTimeout();n&amp;&amp;(this._timers[t]=setTimeout((function(){r._reloadTile(t,&quot;expired&quot;),delete r._timers[t]}),n))},r.prototype._removeTile=function(t){var e=this._tiles[t];e&amp;&amp;(e.uses--,delete this._tiles[t],this._timers[t]&amp;&amp;(clearTimeout(this._timers[t]),delete this._timers[t]),e.uses&gt;0||(e.hasData()&amp;&amp;&quot;reloading&quot;!==e.state?this._cache.add(e.tileID,e,e.getExpiryTimeout()):(e.aborted=!0,this._abortTile(e),this._unloadTile(e))))},r.prototype.clearTiles=function(){for(var t in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(t);this._cache.reset()},r.prototype.tilesIn=function(e,r,n){var i=this,a=[],o=this.transform;if(!o)return a;for(var s=n?o.getCameraQueryGeometry(e):e,l=e.map((function(t){return o.pointCoordinate(t)})),c=s.map((function(t){return o.pointCoordinate(t)})),u=this.getIds(),f=1/0,h=1/0,p=-1/0,d=-1/0,g=0,m=c;g&lt;m.length;g+=1){var v=m[g];f=Math.min(f,v.x),h=Math.min(h,v.y),p=Math.max(p,v.x),d=Math.max(d,v.y)}for(var y=function(e){var n=i._tiles[u[e]];if(!n.holdingForFade()){var s=n.tileID,g=Math.pow(2,o.zoom-n.tileID.overscaledZ),m=r*n.queryPadding*t.EXTENT/n.tileSize/g,v=[s.getTilePoint(new t.MercatorCoordinate(f,h)),s.getTilePoint(new t.MercatorCoordinate(p,d))];if(v[0].x-m&lt;t.EXTENT&amp;&amp;v[0].y-m&lt;t.EXTENT&amp;&amp;v[1].x+m&gt;=0&amp;&amp;v[1].y+m&gt;=0){var y=l.map((function(t){return s.getTilePoint(t)})),x=c.map((function(t){return s.getTilePoint(t)}));a.push({tile:n,tileID:s,queryGeometry:y,cameraQueryGeometry:x,scale:g})}}},x=0;x&lt;u.length;x++)y(x);return a},r.prototype.getVisibleCoordinates=function(t){for(var e=this,r=this.getRenderableIds(t).map((function(t){return e._tiles[t].tileID})),n=0,i=r;n&lt;i.length;n+=1){var a=i[n];a.posMatrix=this.transform.calculatePosMatrix(a.toUnwrapped())}return r},r.prototype.hasTransition=function(){if(this._source.hasTransition())return!0;if(Pt(this._source.type))for(var e in this._tiles){var r=this._tiles[e];if(void 0!==r.fadeEndTime&amp;&amp;r.fadeEndTime&gt;=t.browser.now())return!0}return!1},r.prototype.setFeatureState=function(t,e,r){this._state.updateState(t=t||&quot;_geojsonTileLayer&quot;,e,r)},r.prototype.removeFeatureState=function(t,e,r){this._state.removeFeatureState(t=t||&quot;_geojsonTileLayer&quot;,e,r)},r.prototype.getFeatureState=function(t,e){return this._state.getState(t=t||&quot;_geojsonTileLayer&quot;,e)},r.prototype.setDependencies=function(t,e,r){var n=this._tiles[t];n&amp;&amp;n.setDependencies(e,r)},r.prototype.reloadTilesForDependencies=function(t,e){for(var r in this._tiles)this._tiles[r].hasDependency(t,e)&amp;&amp;this._reloadTile(r,&quot;reloading&quot;);this._cache.filter((function(r){return!r.hasDependency(t,e)}))},r}(t.Evented);function It(t,e){var r=Math.abs(2*t.wrap)-+(t.wrap&lt;0),n=Math.abs(2*e.wrap)-+(e.wrap&lt;0);return t.overscaledZ-e.overscaledZ||n-r||e.canonical.y-t.canonical.y||e.canonical.x-t.canonical.x}function Pt(t){return&quot;raster&quot;===t||&quot;image&quot;===t||&quot;video&quot;===t}function zt(){return new t.window.Worker(Yi.workerUrl)}Lt.maxOverzooming=10,Lt.maxUnderzooming=3;var Ot=&quot;mapboxgl_preloaded_worker_pool&quot;,Dt=function(){this.active={}};Dt.prototype.acquire=function(t){if(!this.workers)for(this.workers=[];this.workers.length&lt;Dt.workerCount;)this.workers.push(new zt);return this.active[t]=!0,this.workers.slice()},Dt.prototype.release=function(t){delete this.active[t],0===this.numActive()&amp;&amp;(this.workers.forEach((function(t){t.terminate()})),this.workers=null)},Dt.prototype.isPreloaded=function(){return!!this.active[Ot]},Dt.prototype.numActive=function(){return Object.keys(this.active).length};var Rt,Ft=Math.floor(t.browser.hardwareConcurrency/2);function Bt(){return Rt||(Rt=new Dt),Rt}function Nt(e,r){var n={};for(var i in e)&quot;ref&quot;!==i&amp;&amp;(n[i]=e[i]);return t.refProperties.forEach((function(t){t in r&amp;&amp;(n[t]=r[t])})),n}function jt(t){t=t.slice();for(var e=Object.create(null),r=0;r&lt;t.length;r++)e[t[r].id]=t[r];for(var n=0;n&lt;t.length;n++)&quot;ref&quot;in t[n]&amp;&amp;(t[n]=Nt(t[n],e[t[n].ref]));return t}Dt.workerCount=Math.max(Math.min(Ft,6),1);var Ut={setStyle:&quot;setStyle&quot;,addLayer:&quot;addLayer&quot;,removeLayer:&quot;removeLayer&quot;,setPaintProperty:&quot;setPaintProperty&quot;,setLayoutProperty:&quot;setLayoutProperty&quot;,setFilter:&quot;setFilter&quot;,addSource:&quot;addSource&quot;,removeSource:&quot;removeSource&quot;,setGeoJSONSourceData:&quot;setGeoJSONSourceData&quot;,setLayerZoomRange:&quot;setLayerZoomRange&quot;,setLayerProperty:&quot;setLayerProperty&quot;,setCenter:&quot;setCenter&quot;,setZoom:&quot;setZoom&quot;,setBearing:&quot;setBearing&quot;,setPitch:&quot;setPitch&quot;,setSprite:&quot;setSprite&quot;,setGlyphs:&quot;setGlyphs&quot;,setTransition:&quot;setTransition&quot;,setLight:&quot;setLight&quot;};function Vt(t,e,r){r.push({command:Ut.addSource,args:[t,e[t]]})}function qt(t,e,r){e.push({command:Ut.removeSource,args:[t]}),r[t]=!0}function Ht(t,e,r,n){qt(t,r,n),Vt(t,e,r)}function Gt(e,r,n){var i;for(i in e[n])if(e[n].hasOwnProperty(i)&amp;&amp;&quot;data&quot;!==i&amp;&amp;!t.deepEqual(e[n][i],r[n][i]))return!1;for(i in r[n])if(r[n].hasOwnProperty(i)&amp;&amp;&quot;data&quot;!==i&amp;&amp;!t.deepEqual(e[n][i],r[n][i]))return!1;return!0}function Yt(e,r,n,i,a,o){var s;for(s in r=r||{},e=e||{})e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}));for(s in r)r.hasOwnProperty(s)&amp;&amp;!e.hasOwnProperty(s)&amp;&amp;(t.deepEqual(e[s],r[s])||n.push({command:o,args:[i,s,r[s],a]}))}function Wt(t){return t.id}function Xt(t,e){return t[e.id]=e,t}var Zt=function(t,e){this.reset(t,e)};Zt.prototype.reset=function(t,e){this.points=t||[],this._distances=[0];for(var r=1;r&lt;this.points.length;r++)this._distances[r]=this._distances[r-1]+this.points[r].dist(this.points[r-1]);this.length=this._distances[this._distances.length-1],this.padding=Math.min(e||0,.5*this.length),this.paddedLength=this.length-2*this.padding},Zt.prototype.lerp=function(e){if(1===this.points.length)return this.points[0];e=t.clamp(e,0,1);for(var r=1,n=this._distances[r],i=e*this.paddedLength+this.padding;n&lt;i&amp;&amp;r&lt;this._distances.length;)n=this._distances[++r];var a=r-1,o=this._distances[a],s=n-o,l=s&gt;0?(i-o)/s:0;return this.points[a].mult(1-l).add(this.points[r].mult(l))};var Jt=function(t,e,r){var n=this.boxCells=[],i=this.circleCells=[];this.xCellCount=Math.ceil(t/r),this.yCellCount=Math.ceil(e/r);for(var a=0;a&lt;this.xCellCount*this.yCellCount;a++)n.push([]),i.push([]);this.circleKeys=[],this.boxKeys=[],this.bboxes=[],this.circles=[],this.width=t,this.height=e,this.xScale=this.xCellCount/t,this.yScale=this.yCellCount/e,this.boxUid=0,this.circleUid=0};function Kt(e,r,n,i,a){var o=t.create();return r?(t.scale(o,o,[1/a,1/a,1]),n||t.rotateZ(o,o,i.angle)):t.multiply(o,i.labelPlaneMatrix,e),o}function Qt(e,r,n,i,a){if(r){var o=t.clone(e);return t.scale(o,o,[a,a,1]),n||t.rotateZ(o,o,-i.angle),o}return i.glCoordMatrix}function $t(e,r){var n=[e.x,e.y,0,1];ue(n,n,r);var i=n[3];return{point:new t.Point(n[0]/i,n[1]/i),signedDistanceFromCamera:i}}function te(t,e){return.5+t/e*.5}function ee(t,e){var r=t[0]/t[3],n=t[1]/t[3];return r&gt;=-e[0]&amp;&amp;r&lt;=e[0]&amp;&amp;n&gt;=-e[1]&amp;&amp;n&lt;=e[1]}function re(e,r,n,i,a,o,s,l){var c=i?e.textSizeData:e.iconSizeData,u=t.evaluateSizeForZoom(c,n.transform.zoom),f=[256/n.width*2+1,256/n.height*2+1],h=i?e.text.dynamicLayoutVertexArray:e.icon.dynamicLayoutVertexArray;h.clear();for(var p=e.lineVertexArray,d=i?e.text.placedSymbolArray:e.icon.placedSymbolArray,g=n.transform.width/n.transform.height,m=!1,v=0;v&lt;d.length;v++){var y=d.get(v);if(y.hidden||y.writingMode===t.WritingMode.vertical&amp;&amp;!m)ce(y.numGlyphs,h);else{m=!1;var x=[y.anchorX,y.anchorY,0,1];if(t.transformMat4(x,x,r),ee(x,f)){var b=te(n.transform.cameraToCenterDistance,x[3]),_=t.evaluateSizeForFeature(c,u,y),w=s?_/b:_*b,T=new t.Point(y.anchorX,y.anchorY),k=$t(T,a).point,M={},A=ae(y,w,!1,l,r,a,o,e.glyphOffsetArray,p,h,k,T,M,g);m=A.useVertical,(A.notEnoughRoom||m||A.needsFlipping&amp;&amp;ae(y,w,!0,l,r,a,o,e.glyphOffsetArray,p,h,k,T,M,g).notEnoughRoom)&amp;&amp;ce(y.numGlyphs,h)}else ce(y.numGlyphs,h)}}i?e.text.dynamicLayoutVertexBuffer.updateData(h):e.icon.dynamicLayoutVertexBuffer.updateData(h)}function ne(t,e,r,n,i,a,o,s,l,c,u){var f=s.glyphStartIndex+s.numGlyphs,h=s.lineStartIndex,p=s.lineStartIndex+s.lineLength,d=e.getoffsetX(s.glyphStartIndex),g=e.getoffsetX(f-1),m=se(t*d,r,n,i,a,o,s.segment,h,p,l,c,u);if(!m)return null;var v=se(t*g,r,n,i,a,o,s.segment,h,p,l,c,u);return v?{first:m,last:v}:null}function ie(e,r,n,i){return e===t.WritingMode.horizontal&amp;&amp;Math.abs(n.y-r.y)&gt;Math.abs(n.x-r.x)*i?{useVertical:!0}:(e===t.WritingMode.vertical?r.y&lt;n.y:r.x&gt;n.x)?{needsFlipping:!0}:null}function ae(e,r,n,i,a,o,s,l,c,u,f,h,p,d){var g,m=r/24,v=e.lineOffsetX*m,y=e.lineOffsetY*m;if(e.numGlyphs&gt;1){var x=e.glyphStartIndex+e.numGlyphs,b=e.lineStartIndex,_=e.lineStartIndex+e.lineLength,w=ne(m,l,v,y,n,f,h,e,c,o,p);if(!w)return{notEnoughRoom:!0};var T=$t(w.first.point,s).point,k=$t(w.last.point,s).point;if(i&amp;&amp;!n){var M=ie(e.writingMode,T,k,d);if(M)return M}g=[w.first];for(var A=e.glyphStartIndex+1;A&lt;x-1;A++)g.push(se(m*l.getoffsetX(A),v,y,n,f,h,e.segment,b,_,c,o,p));g.push(w.last)}else{if(i&amp;&amp;!n){var S=$t(h,a).point,E=e.lineStartIndex+e.segment+1,C=new t.Point(c.getx(E),c.gety(E)),L=$t(C,a),I=L.signedDistanceFromCamera&gt;0?L.point:oe(h,C,S,1,a),P=ie(e.writingMode,S,I,d);if(P)return P}var z=se(m*l.getoffsetX(e.glyphStartIndex),v,y,n,f,h,e.segment,e.lineStartIndex,e.lineStartIndex+e.lineLength,c,o,p);if(!z)return{notEnoughRoom:!0};g=[z]}for(var O=0,D=g;O&lt;D.length;O+=1){var R=D[O];t.addDynamicAttributes(u,R.point,R.angle)}return{}}function oe(t,e,r,n,i){var a=$t(t.add(t.sub(e)._unit()),i).point,o=r.sub(a);return r.add(o._mult(n/o.mag()))}function se(e,r,n,i,a,o,s,l,c,u,f,h){var p=i?e-r:e+r,d=p&gt;0?1:-1,g=0;i&amp;&amp;(d*=-1,g=Math.PI),d&lt;0&amp;&amp;(g+=Math.PI);for(var m=d&gt;0?l+s:l+s+1,v=a,y=a,x=0,b=0,_=Math.abs(p),w=[];x+b&lt;=_;){if((m+=d)&lt;l||m&gt;=c)return null;if(y=v,w.push(v),void 0===(v=h[m])){var T=new t.Point(u.getx(m),u.gety(m)),k=$t(T,f);if(k.signedDistanceFromCamera&gt;0)v=h[m]=k.point;else{var M=m-d;v=oe(0===x?o:new t.Point(u.getx(M),u.gety(M)),T,y,_-x+1,f)}}x+=b,b=y.dist(v)}var A=(_-x)/b,S=v.sub(y),E=S.mult(A)._add(y);E._add(S._unit()._perp()._mult(n*d));var C=g+Math.atan2(v.y-y.y,v.x-y.x);return w.push(E),{point:E,angle:C,path:w}}Jt.prototype.keysLength=function(){return this.boxKeys.length+this.circleKeys.length},Jt.prototype.insert=function(t,e,r,n,i){this._forEachCell(e,r,n,i,this._insertBoxCell,this.boxUid++),this.boxKeys.push(t),this.bboxes.push(e),this.bboxes.push(r),this.bboxes.push(n),this.bboxes.push(i)},Jt.prototype.insertCircle=function(t,e,r,n){this._forEachCell(e-n,r-n,e+n,r+n,this._insertCircleCell,this.circleUid++),this.circleKeys.push(t),this.circles.push(e),this.circles.push(r),this.circles.push(n)},Jt.prototype._insertBoxCell=function(t,e,r,n,i,a){this.boxCells[i].push(a)},Jt.prototype._insertCircleCell=function(t,e,r,n,i,a){this.circleCells[i].push(a)},Jt.prototype._query=function(t,e,r,n,i,a){if(r&lt;0||t&gt;this.width||n&lt;0||e&gt;this.height)return!i&amp;&amp;[];var o=[];if(t&lt;=0&amp;&amp;e&lt;=0&amp;&amp;this.width&lt;=r&amp;&amp;this.height&lt;=n){if(i)return!0;for(var s=0;s&lt;this.boxKeys.length;s++)o.push({key:this.boxKeys[s],x1:this.bboxes[4*s],y1:this.bboxes[4*s+1],x2:this.bboxes[4*s+2],y2:this.bboxes[4*s+3]});for(var l=0;l&lt;this.circleKeys.length;l++){var c=this.circles[3*l],u=this.circles[3*l+1],f=this.circles[3*l+2];o.push({key:this.circleKeys[l],x1:c-f,y1:u-f,x2:c+f,y2:u+f})}return a?o.filter(a):o}return this._forEachCell(t,e,r,n,this._queryCell,o,{hitTest:i,seenUids:{box:{},circle:{}}},a),i?o.length&gt;0:o},Jt.prototype._queryCircle=function(t,e,r,n,i){var a=t-r,o=t+r,s=e-r,l=e+r;if(o&lt;0||a&gt;this.width||l&lt;0||s&gt;this.height)return!n&amp;&amp;[];var c=[];return this._forEachCell(a,s,o,l,this._queryCellCircle,c,{hitTest:n,circle:{x:t,y:e,radius:r},seenUids:{box:{},circle:{}}},i),n?c.length&gt;0:c},Jt.prototype.query=function(t,e,r,n,i){return this._query(t,e,r,n,!1,i)},Jt.prototype.hitTest=function(t,e,r,n,i){return this._query(t,e,r,n,!0,i)},Jt.prototype.hitTestCircle=function(t,e,r,n){return this._queryCircle(t,e,r,!0,n)},Jt.prototype._queryCell=function(t,e,r,n,i,a,o,s){var l=o.seenUids,c=this.boxCells[i];if(null!==c)for(var u=this.bboxes,f=0,h=c;f&lt;h.length;f+=1){var p=h[f];if(!l.box[p]){l.box[p]=!0;var d=4*p;if(t&lt;=u[d+2]&amp;&amp;e&lt;=u[d+3]&amp;&amp;r&gt;=u[d+0]&amp;&amp;n&gt;=u[d+1]&amp;&amp;(!s||s(this.boxKeys[p]))){if(o.hitTest)return a.push(!0),!0;a.push({key:this.boxKeys[p],x1:u[d],y1:u[d+1],x2:u[d+2],y2:u[d+3]})}}}var g=this.circleCells[i];if(null!==g)for(var m=this.circles,v=0,y=g;v&lt;y.length;v+=1){var x=y[v];if(!l.circle[x]){l.circle[x]=!0;var b=3*x;if(this._circleAndRectCollide(m[b],m[b+1],m[b+2],t,e,r,n)&amp;&amp;(!s||s(this.circleKeys[x]))){if(o.hitTest)return a.push(!0),!0;var _=m[b],w=m[b+1],T=m[b+2];a.push({key:this.circleKeys[x],x1:_-T,y1:w-T,x2:_+T,y2:w+T})}}}},Jt.prototype._queryCellCircle=function(t,e,r,n,i,a,o,s){var l=o.circle,c=o.seenUids,u=this.boxCells[i];if(null!==u)for(var f=this.bboxes,h=0,p=u;h&lt;p.length;h+=1){var d=p[h];if(!c.box[d]){c.box[d]=!0;var g=4*d;if(this._circleAndRectCollide(l.x,l.y,l.radius,f[g+0],f[g+1],f[g+2],f[g+3])&amp;&amp;(!s||s(this.boxKeys[d])))return a.push(!0),!0}}var m=this.circleCells[i];if(null!==m)for(var v=this.circles,y=0,x=m;y&lt;x.length;y+=1){var b=x[y];if(!c.circle[b]){c.circle[b]=!0;var _=3*b;if(this._circlesCollide(v[_],v[_+1],v[_+2],l.x,l.y,l.radius)&amp;&amp;(!s||s(this.circleKeys[b])))return a.push(!0),!0}}},Jt.prototype._forEachCell=function(t,e,r,n,i,a,o,s){for(var l=this._convertToXCellCoord(t),c=this._convertToYCellCoord(e),u=this._convertToXCellCoord(r),f=this._convertToYCellCoord(n),h=l;h&lt;=u;h++)for(var p=c;p&lt;=f;p++)if(i.call(this,t,e,r,n,this.xCellCount*p+h,a,o,s))return},Jt.prototype._convertToXCellCoord=function(t){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(t*this.xScale)))},Jt.prototype._convertToYCellCoord=function(t){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(t*this.yScale)))},Jt.prototype._circlesCollide=function(t,e,r,n,i,a){var o=n-t,s=i-e,l=r+a;return l*l&gt;o*o+s*s},Jt.prototype._circleAndRectCollide=function(t,e,r,n,i,a,o){var s=(a-n)/2,l=Math.abs(t-(n+s));if(l&gt;s+r)return!1;var c=(o-i)/2,u=Math.abs(e-(i+c));if(u&gt;c+r)return!1;if(l&lt;=s||u&lt;=c)return!0;var f=l-s,h=u-c;return f*f+h*h&lt;=r*r};var le=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ce(t,e){for(var r=0;r&lt;t;r++){var n=e.length;e.resize(n+4),e.float32.set(le,3*n)}}function ue(t,e,r){var n=e[0],i=e[1];return t[0]=r[0]*n+r[4]*i+r[12],t[1]=r[1]*n+r[5]*i+r[13],t[3]=r[3]*n+r[7]*i+r[15],t}var fe=function(t,e,r){void 0===e&amp;&amp;(e=new Jt(t.width+200,t.height+200,25)),void 0===r&amp;&amp;(r=new Jt(t.width+200,t.height+200,25)),this.transform=t,this.grid=e,this.ignoredGrid=r,this.pitchfactor=Math.cos(t._pitch)*t.cameraToCenterDistance,this.screenRightBoundary=t.width+100,this.screenBottomBoundary=t.height+100,this.gridRightBoundary=t.width+200,this.gridBottomBoundary=t.height+200};function he(e,r,n){return r*(t.EXTENT/(e.tileSize*Math.pow(2,n-e.tileID.overscaledZ)))}fe.prototype.placeCollisionBox=function(t,e,r,n,i){var a=this.projectAndGetPerspectiveRatio(n,t.anchorPointX,t.anchorPointY),o=r*a.perspectiveRatio,s=t.x1*o+a.point.x,l=t.y1*o+a.point.y,c=t.x2*o+a.point.x,u=t.y2*o+a.point.y;return!this.isInsideGrid(s,l,c,u)||!e&amp;&amp;this.grid.hitTest(s,l,c,u,i)?{box:[],offscreen:!1}:{box:[s,l,c,u],offscreen:this.isOffscreen(s,l,c,u)}},fe.prototype.placeCollisionCircles=function(e,r,n,i,a,o,s,l,c,u,f,h,p){var d=[],g=new t.Point(r.anchorX,r.anchorY),m=$t(g,o),v=te(this.transform.cameraToCenterDistance,m.signedDistanceFromCamera),y=(u?a/v:a*v)/t.ONE_EM,x=$t(g,s).point,b=ne(y,i,r.lineOffsetX*y,r.lineOffsetY*y,!1,x,g,r,n,s,{}),_=!1,w=!1,T=!0;if(b){for(var k=.5*h*v+p,M=new t.Point(-100,-100),A=new t.Point(this.screenRightBoundary,this.screenBottomBoundary),S=new Zt,E=b.first,C=b.last,L=[],I=E.path.length-1;I&gt;=1;I--)L.push(E.path[I]);for(var P=1;P&lt;C.path.length;P++)L.push(C.path[P]);var z=2.5*k;if(l){var O=L.map((function(t){return $t(t,l)}));L=O.some((function(t){return t.signedDistanceFromCamera&lt;=0}))?[]:O.map((function(t){return t.point}))}var D=[];if(L.length&gt;0){for(var R=L[0].clone(),F=L[0].clone(),B=1;B&lt;L.length;B++)R.x=Math.min(R.x,L[B].x),R.y=Math.min(R.y,L[B].y),F.x=Math.max(F.x,L[B].x),F.y=Math.max(F.y,L[B].y);D=R.x&gt;=M.x&amp;&amp;F.x&lt;=A.x&amp;&amp;R.y&gt;=M.y&amp;&amp;F.y&lt;=A.y?[L]:F.x&lt;M.x||R.x&gt;A.x||F.y&lt;M.y||R.y&gt;A.y?[]:t.clipLine([L],M.x,M.y,A.x,A.y)}for(var N=0,j=D;N&lt;j.length;N+=1){var U;S.reset(j[N],.25*k),U=S.length&lt;=.5*k?1:Math.ceil(S.paddedLength/z)+1;for(var V=0;V&lt;U;V++){var q=V/Math.max(U-1,1),H=S.lerp(q),G=H.x+100,Y=H.y+100;d.push(G,Y,k,0);var W=G-k,X=Y-k,Z=G+k,J=Y+k;if(T=T&amp;&amp;this.isOffscreen(W,X,Z,J),w=w||this.isInsideGrid(W,X,Z,J),!e&amp;&amp;this.grid.hitTestCircle(G,Y,k,f)&amp;&amp;(_=!0,!c))return{circles:[],offscreen:!1,collisionDetected:_}}}}return{circles:!c&amp;&amp;_||!w?[]:d,offscreen:T,collisionDetected:_}},fe.prototype.queryRenderedSymbols=function(e){if(0===e.length||0===this.grid.keysLength()&amp;&amp;0===this.ignoredGrid.keysLength())return{};for(var r=[],n=1/0,i=1/0,a=-1/0,o=-1/0,s=0,l=e;s&lt;l.length;s+=1){var c=l[s],u=new t.Point(c.x+100,c.y+100);n=Math.min(n,u.x),i=Math.min(i,u.y),a=Math.max(a,u.x),o=Math.max(o,u.y),r.push(u)}for(var f={},h={},p=0,d=this.grid.query(n,i,a,o).concat(this.ignoredGrid.query(n,i,a,o));p&lt;d.length;p+=1){var g=d[p],m=g.key;if(void 0===f[m.bucketInstanceId]&amp;&amp;(f[m.bucketInstanceId]={}),!f[m.bucketInstanceId][m.featureIndex]){var v=[new t.Point(g.x1,g.y1),new t.Point(g.x2,g.y1),new t.Point(g.x2,g.y2),new t.Point(g.x1,g.y2)];t.polygonIntersectsPolygon(r,v)&amp;&amp;(f[m.bucketInstanceId][m.featureIndex]=!0,void 0===h[m.bucketInstanceId]&amp;&amp;(h[m.bucketInstanceId]=[]),h[m.bucketInstanceId].push(m.featureIndex))}}return h},fe.prototype.insertCollisionBox=function(t,e,r,n,i){(e?this.ignoredGrid:this.grid).insert({bucketInstanceId:r,featureIndex:n,collisionGroupID:i},t[0],t[1],t[2],t[3])},fe.prototype.insertCollisionCircles=function(t,e,r,n,i){for(var a=e?this.ignoredGrid:this.grid,o={bucketInstanceId:r,featureIndex:n,collisionGroupID:i},s=0;s&lt;t.length;s+=4)a.insertCircle(o,t[s],t[s+1],t[s+2])},fe.prototype.projectAndGetPerspectiveRatio=function(e,r,n){var i=[r,n,0,1];return ue(i,i,e),{point:new t.Point((i[0]/i[3]+1)/2*this.transform.width+100,(-i[1]/i[3]+1)/2*this.transform.height+100),perspectiveRatio:.5+this.transform.cameraToCenterDistance/i[3]*.5}},fe.prototype.isOffscreen=function(t,e,r,n){return r&lt;100||t&gt;=this.screenRightBoundary||n&lt;100||e&gt;this.screenBottomBoundary},fe.prototype.isInsideGrid=function(t,e,r,n){return r&gt;=0&amp;&amp;t&lt;this.gridRightBoundary&amp;&amp;n&gt;=0&amp;&amp;e&lt;this.gridBottomBoundary},fe.prototype.getViewportMatrix=function(){var e=t.identity([]);return t.translate(e,e,[-100,-100,0]),e};var pe=function(t,e,r,n){this.opacity=t?Math.max(0,Math.min(1,t.opacity+(t.placed?e:-e))):n&amp;&amp;r?1:0,this.placed=r};pe.prototype.isHidden=function(){return 0===this.opacity&amp;&amp;!this.placed};var de=function(t,e,r,n,i){this.text=new pe(t?t.text:null,e,r,i),this.icon=new pe(t?t.icon:null,e,n,i)};de.prototype.isHidden=function(){return this.text.isHidden()&amp;&amp;this.icon.isHidden()};var ge=function(t,e,r){this.text=t,this.icon=e,this.skipFade=r},me=function(){this.invProjMatrix=t.create(),this.viewportMatrix=t.create(),this.circles=[]},ve=function(t,e,r,n,i){this.bucketInstanceId=t,this.featureIndex=e,this.sourceLayerIndex=r,this.bucketIndex=n,this.tileID=i},ye=function(t){this.crossSourceCollisions=t,this.maxGroupID=0,this.collisionGroups={}};function xe(e,r,n,i,a){var o=t.getAnchorAlignment(e),s=-(o.horizontalAlign-.5)*r,l=-(o.verticalAlign-.5)*n,c=t.evaluateVariableOffset(e,i);return new t.Point(s+c[0]*a,l+c[1]*a)}function be(e,r,n,i,a,o){var s=e.x1,l=e.x2,c=e.y1,u=e.y2,f=e.anchorPointX,h=e.anchorPointY,p=new t.Point(r,n);return i&amp;&amp;p._rotate(a?o:-o),{x1:s+p.x,y1:c+p.y,x2:l+p.x,y2:u+p.y,anchorPointX:f,anchorPointY:h}}ye.prototype.get=function(t){if(this.crossSourceCollisions)return{ID:0,predicate:null};if(!this.collisionGroups[t]){var e=++this.maxGroupID;this.collisionGroups[t]={ID:e,predicate:function(t){return t.collisionGroupID===e}}}return this.collisionGroups[t]};var _e=function(t,e,r,n){this.transform=t.clone(),this.collisionIndex=new fe(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=e,this.retainedQueryData={},this.collisionGroups=new ye(r),this.collisionCircleArrays={},this.prevPlacement=n,n&amp;&amp;(n.prevPlacement=void 0),this.placedOrientations={}};function we(t,e,r,n,i){t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0),t.emplaceBack(e?1:0,r?1:0,n||0,i||0)}_e.prototype.getBucketParts=function(e,r,n,i){var a=n.getBucket(r),o=n.latestFeatureIndex;if(a&amp;&amp;o&amp;&amp;r.id===a.layerIds[0]){var s=n.collisionBoxArray,l=a.layers[0].layout,c=Math.pow(2,this.transform.zoom-n.tileID.overscaledZ),u=n.tileSize/t.EXTENT,f=this.transform.calculatePosMatrix(n.tileID.toUnwrapped()),h=&quot;map&quot;===l.get(&quot;text-pitch-alignment&quot;),p=&quot;map&quot;===l.get(&quot;text-rotation-alignment&quot;),d=he(n,1,this.transform.zoom),g=Kt(f,h,p,this.transform,d),m=null;if(h){var v=Qt(f,h,p,this.transform,d);m=t.multiply([],this.transform.labelPlaneMatrix,v)}this.retainedQueryData[a.bucketInstanceId]=new ve(a.bucketInstanceId,o,a.sourceLayerIndex,a.index,n.tileID);var y={bucket:a,layout:l,posMatrix:f,textLabelPlaneMatrix:g,labelToScreenMatrix:m,scale:c,textPixelRatio:u,holdingForFade:n.holdingForFade(),collisionBoxArray:s,partiallyEvaluatedTextSize:t.evaluateSizeForZoom(a.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(a.sourceID)};if(i)for(var x=0,b=a.sortKeyRanges;x&lt;b.length;x+=1){var _=b[x];e.push({sortKey:_.sortKey,symbolInstanceStart:_.symbolInstanceStart,symbolInstanceEnd:_.symbolInstanceEnd,parameters:y})}else e.push({symbolInstanceStart:0,symbolInstanceEnd:a.symbolInstances.length,parameters:y})}},_e.prototype.attemptAnchorPlacement=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d){var g,m=[f.textOffset0,f.textOffset1],v=xe(t,r,n,m,i),y=this.collisionIndex.placeCollisionBox(be(e,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate);if(!d||0!==this.collisionIndex.placeCollisionBox(be(d,v.x,v.y,a,o,this.transform.angle),u,s,l,c.predicate).box.length)return y.box.length&gt;0?(this.prevPlacement&amp;&amp;this.prevPlacement.variableOffsets[f.crossTileID]&amp;&amp;this.prevPlacement.placements[f.crossTileID]&amp;&amp;this.prevPlacement.placements[f.crossTileID].text&amp;&amp;(g=this.prevPlacement.variableOffsets[f.crossTileID].anchor),this.variableOffsets[f.crossTileID]={textOffset:m,width:r,height:n,anchor:t,textBoxScale:i,prevAnchor:g},this.markUsedJustification(h,t,f,p),h.allowVerticalPlacement&amp;&amp;(this.markUsedOrientation(h,p,f),this.placedOrientations[f.crossTileID]=p),{shift:v,placedGlyphBoxes:y}):void 0},_e.prototype.placeLayerBucketPart=function(e,r,n){var i=this,a=e.parameters,o=a.bucket,s=a.layout,l=a.posMatrix,c=a.textLabelPlaneMatrix,u=a.labelToScreenMatrix,f=a.textPixelRatio,h=a.holdingForFade,p=a.collisionBoxArray,d=a.partiallyEvaluatedTextSize,g=a.collisionGroup,m=s.get(&quot;text-optional&quot;),v=s.get(&quot;icon-optional&quot;),y=s.get(&quot;text-allow-overlap&quot;),x=s.get(&quot;icon-allow-overlap&quot;),b=&quot;map&quot;===s.get(&quot;text-rotation-alignment&quot;),_=&quot;map&quot;===s.get(&quot;text-pitch-alignment&quot;),w=&quot;none&quot;!==s.get(&quot;icon-text-fit&quot;),T=&quot;viewport-y&quot;===s.get(&quot;symbol-z-order&quot;),k=y&amp;&amp;(x||!o.hasIconData()||v),M=x&amp;&amp;(y||!o.hasTextData()||m);!o.collisionArrays&amp;&amp;p&amp;&amp;o.deserializeCollisionBoxes(p);var A=function(e,a){if(!r[e.crossTileID])if(h)i.placements[e.crossTileID]=new ge(!1,!1,!1);else{var p,T=!1,A=!1,S=!0,E=null,C={box:null,offscreen:null},L={box:null,offscreen:null},I=null,P=null,z=0,O=0,D=0;a.textFeatureIndex?z=a.textFeatureIndex:e.useRuntimeCollisionCircles&amp;&amp;(z=e.featureIndex),a.verticalTextFeatureIndex&amp;&amp;(O=a.verticalTextFeatureIndex);var R=a.textBox;if(R){var F=function(r){var n=t.WritingMode.horizontal;if(o.allowVerticalPlacement&amp;&amp;!r&amp;&amp;i.prevPlacement){var a=i.prevPlacement.placedOrientations[e.crossTileID];a&amp;&amp;(i.placedOrientations[e.crossTileID]=a,i.markUsedOrientation(o,n=a,e))}return n},B=function(r,n){if(o.allowVerticalPlacement&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;a.verticalTextBox)for(var i=0,s=o.writingModes;i&lt;s.length&amp;&amp;(s[i]===t.WritingMode.vertical?(C=n(),L=C):C=r(),!(C&amp;&amp;C.box&amp;&amp;C.box.length));i+=1);else C=r()};if(s.get(&quot;text-variable-anchor&quot;)){var N=s.get(&quot;text-variable-anchor&quot;);if(i.prevPlacement&amp;&amp;i.prevPlacement.variableOffsets[e.crossTileID]){var j=i.prevPlacement.variableOffsets[e.crossTileID];N.indexOf(j.anchor)&gt;0&amp;&amp;(N=N.filter((function(t){return t!==j.anchor}))).unshift(j.anchor)}var U=function(t,r,n){for(var a=t.x2-t.x1,s=t.y2-t.y1,c=e.textBoxScale,u=w&amp;&amp;!x?r:null,h={box:[],offscreen:!1},p=y?2*N.length:N.length,d=0;d&lt;p;++d){var m=i.attemptAnchorPlacement(N[d%N.length],t,a,s,c,b,_,f,l,g,d&gt;=N.length,e,o,n,u);if(m&amp;&amp;(h=m.placedGlyphBoxes)&amp;&amp;h.box&amp;&amp;h.box.length){T=!0,E=m.shift;break}}return h};B((function(){return U(R,a.iconBox,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox;return o.allowVerticalPlacement&amp;&amp;!(C&amp;&amp;C.box&amp;&amp;C.box.length)&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;r?U(r,a.verticalIconBox,t.WritingMode.vertical):{box:null,offscreen:null}})),C&amp;&amp;(T=C.box,S=C.offscreen);var V=F(C&amp;&amp;C.box);if(!T&amp;&amp;i.prevPlacement){var q=i.prevPlacement.variableOffsets[e.crossTileID];q&amp;&amp;(i.variableOffsets[e.crossTileID]=q,i.markUsedJustification(o,q.anchor,e,V))}}else{var H=function(t,r){var n=i.collisionIndex.placeCollisionBox(t,y,f,l,g.predicate);return n&amp;&amp;n.box&amp;&amp;n.box.length&amp;&amp;(i.markUsedOrientation(o,r,e),i.placedOrientations[e.crossTileID]=r),n};B((function(){return H(R,t.WritingMode.horizontal)}),(function(){var r=a.verticalTextBox;return o.allowVerticalPlacement&amp;&amp;e.numVerticalGlyphVertices&gt;0&amp;&amp;r?H(r,t.WritingMode.vertical):{box:null,offscreen:null}})),F(C&amp;&amp;C.box&amp;&amp;C.box.length)}}if(T=(p=C)&amp;&amp;p.box&amp;&amp;p.box.length&gt;0,S=p&amp;&amp;p.offscreen,e.useRuntimeCollisionCircles){var G=o.text.placedSymbolArray.get(e.centerJustifiedTextSymbolIndex),Y=t.evaluateSizeForFeature(o.textSizeData,d,G),W=s.get(&quot;text-padding&quot;);I=i.collisionIndex.placeCollisionCircles(y,G,o.lineVertexArray,o.glyphOffsetArray,Y,l,c,u,n,_,g.predicate,e.collisionCircleDiameter,W),T=y||I.circles.length&gt;0&amp;&amp;!I.collisionDetected,S=S&amp;&amp;I.offscreen}if(a.iconFeatureIndex&amp;&amp;(D=a.iconFeatureIndex),a.iconBox){var X=function(t){var e=w&amp;&amp;E?be(t,E.x,E.y,b,_,i.transform.angle):t;return i.collisionIndex.placeCollisionBox(e,x,f,l,g.predicate)};A=L&amp;&amp;L.box&amp;&amp;L.box.length&amp;&amp;a.verticalIconBox?(P=X(a.verticalIconBox)).box.length&gt;0:(P=X(a.iconBox)).box.length&gt;0,S=S&amp;&amp;P.offscreen}var Z=m||0===e.numHorizontalGlyphVertices&amp;&amp;0===e.numVerticalGlyphVertices,J=v||0===e.numIconVertices;if(Z||J?J?Z||(A=A&amp;&amp;T):T=A&amp;&amp;T:A=T=A&amp;&amp;T,T&amp;&amp;p&amp;&amp;p.box&amp;&amp;i.collisionIndex.insertCollisionBox(p.box,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,L&amp;&amp;L.box&amp;&amp;O?O:z,g.ID),A&amp;&amp;P&amp;&amp;i.collisionIndex.insertCollisionBox(P.box,s.get(&quot;icon-ignore-placement&quot;),o.bucketInstanceId,D,g.ID),I&amp;&amp;(T&amp;&amp;i.collisionIndex.insertCollisionCircles(I.circles,s.get(&quot;text-ignore-placement&quot;),o.bucketInstanceId,z,g.ID),n)){var K=o.bucketInstanceId,Q=i.collisionCircleArrays[K];void 0===Q&amp;&amp;(Q=i.collisionCircleArrays[K]=new me);for(var $=0;$&lt;I.circles.length;$+=4)Q.circles.push(I.circles[$+0]),Q.circles.push(I.circles[$+1]),Q.circles.push(I.circles[$+2]),Q.circles.push(I.collisionDetected?1:0)}i.placements[e.crossTileID]=new ge(T||k,A||M,S||o.justReloaded),r[e.crossTileID]=!0}};if(T)for(var S=o.getSortedSymbolIndexes(this.transform.angle),E=S.length-1;E&gt;=0;--E){var C=S[E];A(o.symbolInstances.get(C),o.collisionArrays[C])}else for(var L=e.symbolInstanceStart;L&lt;e.symbolInstanceEnd;L++)A(o.symbolInstances.get(L),o.collisionArrays[L]);if(n&amp;&amp;o.bucketInstanceId in this.collisionCircleArrays){var I=this.collisionCircleArrays[o.bucketInstanceId];t.invert(I.invProjMatrix,l),I.viewportMatrix=this.collisionIndex.getViewportMatrix()}o.justReloaded=!1},_e.prototype.markUsedJustification=function(e,r,n,i){var a;a=i===t.WritingMode.vertical?n.verticalPlacedTextSymbolIndex:{left:n.leftJustifiedTextSymbolIndex,center:n.centerJustifiedTextSymbolIndex,right:n.rightJustifiedTextSymbolIndex}[t.getAnchorJustification(r)];for(var o=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex,n.verticalPlacedTextSymbolIndex];o&lt;s.length;o+=1){var l=s[o];l&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(l).crossTileID=a&gt;=0&amp;&amp;l!==a?0:n.crossTileID)}},_e.prototype.markUsedOrientation=function(e,r,n){for(var i=r===t.WritingMode.horizontal||r===t.WritingMode.horizontalOnly?r:0,a=r===t.WritingMode.vertical?r:0,o=0,s=[n.leftJustifiedTextSymbolIndex,n.centerJustifiedTextSymbolIndex,n.rightJustifiedTextSymbolIndex];o&lt;s.length;o+=1)e.text.placedSymbolArray.get(s[o]).placedOrientation=i;n.verticalPlacedTextSymbolIndex&amp;&amp;(e.text.placedSymbolArray.get(n.verticalPlacedTextSymbolIndex).placedOrientation=a)},_e.prototype.commit=function(t){this.commitTime=t,this.zoomAtLastRecencyCheck=this.transform.zoom;var e=this.prevPlacement,r=!1;this.prevZoomAdjustment=e?e.zoomAdjustment(this.transform.zoom):0;var n=e?e.symbolFadeChange(t):1,i=e?e.opacities:{},a=e?e.variableOffsets:{},o=e?e.placedOrientations:{};for(var s in this.placements){var l=this.placements[s],c=i[s];c?(this.opacities[s]=new de(c,n,l.text,l.icon),r=r||l.text!==c.text.placed||l.icon!==c.icon.placed):(this.opacities[s]=new de(null,n,l.text,l.icon,l.skipFade),r=r||l.text||l.icon)}for(var u in i){var f=i[u];if(!this.opacities[u]){var h=new de(f,n,!1,!1);h.isHidden()||(this.opacities[u]=h,r=r||f.text.placed||f.icon.placed)}}for(var p in a)this.variableOffsets[p]||!this.opacities[p]||this.opacities[p].isHidden()||(this.variableOffsets[p]=a[p]);for(var d in o)this.placedOrientations[d]||!this.opacities[d]||this.opacities[d].isHidden()||(this.placedOrientations[d]=o[d]);r?this.lastPlacementChangeTime=t:&quot;number&quot;!=typeof this.lastPlacementChangeTime&amp;&amp;(this.lastPlacementChangeTime=e?e.lastPlacementChangeTime:t)},_e.prototype.updateLayerOpacities=function(t,e){for(var r={},n=0,i=e;n&lt;i.length;n+=1){var a=i[n],o=a.getBucket(t);o&amp;&amp;a.latestFeatureIndex&amp;&amp;t.id===o.layerIds[0]&amp;&amp;this.updateBucketOpacities(o,r,a.collisionBoxArray)}},_e.prototype.updateBucketOpacities=function(e,r,n){var i=this;e.hasTextData()&amp;&amp;e.text.opacityVertexArray.clear(),e.hasIconData()&amp;&amp;e.icon.opacityVertexArray.clear(),e.hasIconCollisionBoxData()&amp;&amp;e.iconCollisionBox.collisionVertexArray.clear(),e.hasTextCollisionBoxData()&amp;&amp;e.textCollisionBox.collisionVertexArray.clear();var a=e.layers[0].layout,o=new de(null,0,!1,!1,!0),s=a.get(&quot;text-allow-overlap&quot;),l=a.get(&quot;icon-allow-overlap&quot;),c=a.get(&quot;text-variable-anchor&quot;),u=&quot;map&quot;===a.get(&quot;text-rotation-alignment&quot;),f=&quot;map&quot;===a.get(&quot;text-pitch-alignment&quot;),h=&quot;none&quot;!==a.get(&quot;icon-text-fit&quot;),p=new de(null,0,s&amp;&amp;(l||!e.hasIconData()||a.get(&quot;icon-optional&quot;)),l&amp;&amp;(s||!e.hasTextData()||a.get(&quot;text-optional&quot;)),!0);!e.collisionArrays&amp;&amp;n&amp;&amp;(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData())&amp;&amp;e.deserializeCollisionBoxes(n);for(var d=function(t,e,r){for(var n=0;n&lt;e/4;n++)t.opacityVertexArray.emplaceBack(r)},g=function(n){var a=e.symbolInstances.get(n),s=a.numHorizontalGlyphVertices,l=a.numVerticalGlyphVertices,g=a.crossTileID,m=i.opacities[g];r[g]?m=o:m||(i.opacities[g]=m=p),r[g]=!0;var v=a.numIconVertices&gt;0,y=i.placedOrientations[a.crossTileID],x=y===t.WritingMode.vertical,b=y===t.WritingMode.horizontal||y===t.WritingMode.horizontalOnly;if(s&gt;0||l&gt;0){var _=Le(m.text);d(e.text,s,x?Ie:_),d(e.text,l,b?Ie:_);var w=m.text.isHidden();[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach((function(t){t&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(t).hidden=w||x?1:0)})),a.verticalPlacedTextSymbolIndex&gt;=0&amp;&amp;(e.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).hidden=w||b?1:0);var T=i.variableOffsets[a.crossTileID];T&amp;&amp;i.markUsedJustification(e,T.anchor,a,y);var k=i.placedOrientations[a.crossTileID];k&amp;&amp;(i.markUsedJustification(e,&quot;left&quot;,a,k),i.markUsedOrientation(e,k,a))}if(v){var M=Le(m.icon),A=!(h&amp;&amp;a.verticalPlacedIconSymbolIndex&amp;&amp;x);a.placedIconSymbolIndex&gt;=0&amp;&amp;(d(e.icon,a.numIconVertices,A?M:Ie),e.icon.placedSymbolArray.get(a.placedIconSymbolIndex).hidden=m.icon.isHidden()),a.verticalPlacedIconSymbolIndex&gt;=0&amp;&amp;(d(e.icon,a.numVerticalIconVertices,A?Ie:M),e.icon.placedSymbolArray.get(a.verticalPlacedIconSymbolIndex).hidden=m.icon.isHidden())}if(e.hasIconCollisionBoxData()||e.hasTextCollisionBoxData()){var S=e.collisionArrays[n];if(S){var E=new t.Point(0,0);if(S.textBox||S.verticalTextBox){var C=!0;if(c){var L=i.variableOffsets[g];L?(E=xe(L.anchor,L.width,L.height,L.textOffset,L.textBoxScale),u&amp;&amp;E._rotate(f?i.transform.angle:-i.transform.angle)):C=!1}S.textBox&amp;&amp;we(e.textCollisionBox.collisionVertexArray,m.text.placed,!C||x,E.x,E.y),S.verticalTextBox&amp;&amp;we(e.textCollisionBox.collisionVertexArray,m.text.placed,!C||b,E.x,E.y)}var I=Boolean(!b&amp;&amp;S.verticalIconBox);S.iconBox&amp;&amp;we(e.iconCollisionBox.collisionVertexArray,m.icon.placed,I,h?E.x:0,h?E.y:0),S.verticalIconBox&amp;&amp;we(e.iconCollisionBox.collisionVertexArray,m.icon.placed,!I,h?E.x:0,h?E.y:0)}}},m=0;m&lt;e.symbolInstances.length;m++)g(m);if(e.sortFeatures(this.transform.angle),this.retainedQueryData[e.bucketInstanceId]&amp;&amp;(this.retainedQueryData[e.bucketInstanceId].featureSortOrder=e.featureSortOrder),e.hasTextData()&amp;&amp;e.text.opacityVertexBuffer&amp;&amp;e.text.opacityVertexBuffer.updateData(e.text.opacityVertexArray),e.hasIconData()&amp;&amp;e.icon.opacityVertexBuffer&amp;&amp;e.icon.opacityVertexBuffer.updateData(e.icon.opacityVertexArray),e.hasIconCollisionBoxData()&amp;&amp;e.iconCollisionBox.collisionVertexBuffer&amp;&amp;e.iconCollisionBox.collisionVertexBuffer.updateData(e.iconCollisionBox.collisionVertexArray),e.hasTextCollisionBoxData()&amp;&amp;e.textCollisionBox.collisionVertexBuffer&amp;&amp;e.textCollisionBox.collisionVertexBuffer.updateData(e.textCollisionBox.collisionVertexArray),e.bucketInstanceId in this.collisionCircleArrays){var v=this.collisionCircleArrays[e.bucketInstanceId];e.placementInvProjMatrix=v.invProjMatrix,e.placementViewportMatrix=v.viewportMatrix,e.collisionCircleArray=v.circles,delete this.collisionCircleArrays[e.bucketInstanceId]}},_e.prototype.symbolFadeChange=function(t){return 0===this.fadeDuration?1:(t-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment},_e.prototype.zoomAdjustment=function(t){return Math.max(0,(this.transform.zoom-t)/1.5)},_e.prototype.hasTransitions=function(t){return this.stale||t-this.lastPlacementChangeTime&lt;this.fadeDuration},_e.prototype.stillRecent=function(t,e){var r=this.zoomAtLastRecencyCheck===e?1-this.zoomAdjustment(e):1;return this.zoomAtLastRecencyCheck=e,this.commitTime+this.fadeDuration*r&gt;t},_e.prototype.setStale=function(){this.stale=!0};var Te=Math.pow(2,25),ke=Math.pow(2,24),Me=Math.pow(2,17),Ae=Math.pow(2,16),Se=Math.pow(2,9),Ee=Math.pow(2,8),Ce=Math.pow(2,1);function Le(t){if(0===t.opacity&amp;&amp;!t.placed)return 0;if(1===t.opacity&amp;&amp;t.placed)return 4294967295;var e=t.placed?1:0,r=Math.floor(127*t.opacity);return r*Te+e*ke+r*Me+e*Ae+r*Se+e*Ee+r*Ce+e}var Ie=0,Pe=function(t){this._sortAcrossTiles=&quot;viewport-y&quot;!==t.layout.get(&quot;symbol-z-order&quot;)&amp;&amp;void 0!==t.layout.get(&quot;symbol-sort-key&quot;).constantOr(1),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]};Pe.prototype.continuePlacement=function(t,e,r,n,i){for(var a=this._bucketParts;this._currentTileIndex&lt;t.length;)if(e.getBucketParts(a,n,t[this._currentTileIndex],this._sortAcrossTiles),this._currentTileIndex++,i())return!0;for(this._sortAcrossTiles&amp;&amp;(this._sortAcrossTiles=!1,a.sort((function(t,e){return t.sortKey-e.sortKey})));this._currentPartIndex&lt;a.length;)if(e.placeLayerBucketPart(a[this._currentPartIndex],this._seenCrossTileIDs,r),this._currentPartIndex++,i())return!0;return!1};var ze=function(t,e,r,n,i,a,o){this.placement=new _e(t,i,a,o),this._currentPlacementIndex=e.length-1,this._forceFullPlacement=r,this._showCollisionBoxes=n,this._done=!1};ze.prototype.isDone=function(){return this._done},ze.prototype.continuePlacement=function(e,r,n){for(var i=this,a=t.browser.now(),o=function(){var e=t.browser.now()-a;return!i._forceFullPlacement&amp;&amp;e&gt;2};this._currentPlacementIndex&gt;=0;){var s=r[e[this._currentPlacementIndex]],l=this.placement.collisionIndex.transform.zoom;if(&quot;symbol&quot;===s.type&amp;&amp;(!s.minzoom||s.minzoom&lt;=l)&amp;&amp;(!s.maxzoom||s.maxzoom&gt;l)){if(this._inProgressLayer||(this._inProgressLayer=new Pe(s)),this._inProgressLayer.continuePlacement(n[s.source],this.placement,this._showCollisionBoxes,s,o))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0},ze.prototype.commit=function(t){return this.placement.commit(t),this.placement};var Oe=512/t.EXTENT/2,De=function(t,e,r){this.tileID=t,this.indexedSymbolInstances={},this.bucketInstanceId=r;for(var n=0;n&lt;e.length;n++){var i=e.get(n),a=i.key;this.indexedSymbolInstances[a]||(this.indexedSymbolInstances[a]=[]),this.indexedSymbolInstances[a].push({crossTileID:i.crossTileID,coord:this.getScaledCoordinates(i,t)})}};De.prototype.getScaledCoordinates=function(e,r){var n=Oe/Math.pow(2,r.canonical.z-this.tileID.canonical.z);return{x:Math.floor((r.canonical.x*t.EXTENT+e.anchorX)*n),y:Math.floor((r.canonical.y*t.EXTENT+e.anchorY)*n)}},De.prototype.findMatches=function(t,e,r){for(var n=this.tileID.canonical.z&lt;e.canonical.z?1:Math.pow(2,this.tileID.canonical.z-e.canonical.z),i=0;i&lt;t.length;i++){var a=t.get(i);if(!a.crossTileID){var o=this.indexedSymbolInstances[a.key];if(o)for(var s=this.getScaledCoordinates(a,e),l=0,c=o;l&lt;c.length;l+=1){var u=c[l];if(Math.abs(u.coord.x-s.x)&lt;=n&amp;&amp;Math.abs(u.coord.y-s.y)&lt;=n&amp;&amp;!r[u.crossTileID]){r[u.crossTileID]=!0,a.crossTileID=u.crossTileID;break}}}}};var Re=function(){this.maxCrossTileID=0};Re.prototype.generate=function(){return++this.maxCrossTileID};var Fe=function(){this.indexes={},this.usedCrossTileIDs={},this.lng=0};Fe.prototype.handleWrapJump=function(t){var e=Math.round((t-this.lng)/360);if(0!==e)for(var r in this.indexes){var n=this.indexes[r],i={};for(var a in n){var o=n[a];o.tileID=o.tileID.unwrapTo(o.tileID.wrap+e),i[o.tileID.key]=o}this.indexes[r]=i}this.lng=t},Fe.prototype.addBucket=function(t,e,r){if(this.indexes[t.overscaledZ]&amp;&amp;this.indexes[t.overscaledZ][t.key]){if(this.indexes[t.overscaledZ][t.key].bucketInstanceId===e.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(t.overscaledZ,this.indexes[t.overscaledZ][t.key])}for(var n=0;n&lt;e.symbolInstances.length;n++)e.symbolInstances.get(n).crossTileID=0;this.usedCrossTileIDs[t.overscaledZ]||(this.usedCrossTileIDs[t.overscaledZ]={});var i=this.usedCrossTileIDs[t.overscaledZ];for(var a in this.indexes){var o=this.indexes[a];if(Number(a)&gt;t.overscaledZ)for(var s in o){var l=o[s];l.tileID.isChildOf(t)&amp;&amp;l.findMatches(e.symbolInstances,t,i)}else{var c=o[t.scaledTo(Number(a)).key];c&amp;&amp;c.findMatches(e.symbolInstances,t,i)}}for(var u=0;u&lt;e.symbolInstances.length;u++){var f=e.symbolInstances.get(u);f.crossTileID||(f.crossTileID=r.generate(),i[f.crossTileID]=!0)}return void 0===this.indexes[t.overscaledZ]&amp;&amp;(this.indexes[t.overscaledZ]={}),this.indexes[t.overscaledZ][t.key]=new De(t,e.symbolInstances,e.bucketInstanceId),!0},Fe.prototype.removeBucketCrossTileIDs=function(t,e){for(var r in e.indexedSymbolInstances)for(var n=0,i=e.indexedSymbolInstances[r];n&lt;i.length;n+=1)delete this.usedCrossTileIDs[t][i[n].crossTileID]},Fe.prototype.removeStaleBuckets=function(t){var e=!1;for(var r in this.indexes){var n=this.indexes[r];for(var i in n)t[n[i].bucketInstanceId]||(this.removeBucketCrossTileIDs(r,n[i]),delete n[i],e=!0)}return e};var Be=function(){this.layerIndexes={},this.crossTileIDs=new Re,this.maxBucketInstanceId=0,this.bucketsInCurrentPlacement={}};Be.prototype.addLayer=function(t,e,r){var n=this.layerIndexes[t.id];void 0===n&amp;&amp;(n=this.layerIndexes[t.id]=new Fe);var i=!1,a={};n.handleWrapJump(r);for(var o=0,s=e;o&lt;s.length;o+=1){var l=s[o],c=l.getBucket(t);c&amp;&amp;t.id===c.layerIds[0]&amp;&amp;(c.bucketInstanceId||(c.bucketInstanceId=++this.maxBucketInstanceId),n.addBucket(l.tileID,c,this.crossTileIDs)&amp;&amp;(i=!0),a[c.bucketInstanceId]=!0)}return n.removeStaleBuckets(a)&amp;&amp;(i=!0),i},Be.prototype.pruneUnusedLayers=function(t){var e={};for(var r in t.forEach((function(t){e[t]=!0})),this.layerIndexes)e[r]||delete this.layerIndexes[r]};var Ne=function(e,r){return t.emitValidationErrors(e,r&amp;&amp;r.filter((function(t){return&quot;source.canvas&quot;!==t.identifier})))},je=t.pick(Ut,[&quot;addLayer&quot;,&quot;removeLayer&quot;,&quot;setPaintProperty&quot;,&quot;setLayoutProperty&quot;,&quot;setFilter&quot;,&quot;addSource&quot;,&quot;removeSource&quot;,&quot;setLayerZoomRange&quot;,&quot;setLight&quot;,&quot;setTransition&quot;,&quot;setGeoJSONSourceData&quot;]),Ue=t.pick(Ut,[&quot;setCenter&quot;,&quot;setZoom&quot;,&quot;setBearing&quot;,&quot;setPitch&quot;]),Ve=function(){var e={},r=t.styleSpec.$version;for(var n in t.styleSpec.$root){var i,a=t.styleSpec.$root[n];a.required&amp;&amp;null!=(i=&quot;version&quot;===n?r:&quot;array&quot;===a.type?[]:{})&amp;&amp;(e[n]=i)}return e}(),qe=function(e){function r(n,i){var a=this;void 0===i&amp;&amp;(i={}),e.call(this),this.map=n,this.dispatcher=new k(Bt(),this),this.imageManager=new h,this.imageManager.setEventedParent(this),this.glyphManager=new x(n._requestManager,i.localIdeographFontFamily),this.lineAtlas=new T(256,512),this.crossTileSymbolIndex=new Be,this._layers={},this._serializedLayers={},this._order=[],this.sourceCaches={},this.zoomHistory=new t.ZoomHistory,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast(&quot;setReferrer&quot;,t.getReferrer());var o=this;this._rtlTextPluginCallback=r.registerForPluginStateChange((function(e){o.dispatcher.broadcast(&quot;syncRTLPluginState&quot;,{pluginStatus:e.pluginStatus,pluginURL:e.pluginURL},(function(e,r){if(t.triggerPluginCompletionEvent(e),r&amp;&amp;r.every((function(t){return t})))for(var n in o.sourceCaches)o.sourceCaches[n].reload()}))})),this.on(&quot;data&quot;,(function(t){if(&quot;source&quot;===t.dataType&amp;&amp;&quot;metadata&quot;===t.sourceDataType){var e=a.sourceCaches[t.sourceId];if(e){var r=e.getSource();if(r&amp;&amp;r.vectorLayerIds)for(var n in a._layers){var i=a._layers[n];i.source===r.id&amp;&amp;a._validateLayer(i)}}}}))}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.loadURL=function(e,r){var n=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;}));var i=&quot;boolean&quot;==typeof r.validate?r.validate:!t.isMapboxURL(e);e=this.map._requestManager.normalizeStyleURL(e,r.accessToken);var a=this.map._requestManager.transformRequest(e,t.ResourceType.Style);this._request=t.getJSON(a,(function(e,r){n._request=null,e?n.fire(new t.ErrorEvent(e)):r&amp;&amp;n._load(r,i)}))},r.prototype.loadJSON=function(e,r){var n=this;void 0===r&amp;&amp;(r={}),this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;})),this._request=t.browser.frame((function(){n._request=null,n._load(e,!1!==r.validate)}))},r.prototype.loadEmpty=function(){this.fire(new t.Event(&quot;dataloading&quot;,{dataType:&quot;style&quot;})),this._load(Ve,!1)},r.prototype._load=function(e,r){if(!r||!Ne(this,t.validateStyle(e))){for(var n in this._loaded=!0,this.stylesheet=e,e.sources)this.addSource(n,e.sources[n],{validate:!1});e.sprite?this._loadSprite(e.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(e.glyphs);var i=jt(this.stylesheet.layers);this._order=i.map((function(t){return t.id})),this._layers={},this._serializedLayers={};for(var a=0,o=i;a&lt;o.length;a+=1){var s=o[a];(s=t.createStyleLayer(s)).setEventedParent(this,{layer:{id:s.id}}),this._layers[s.id]=s,this._serializedLayers[s.id]=s.serialize()}this.dispatcher.broadcast(&quot;setLayers&quot;,this._serializeLayers(this._order)),this.light=new w(this.stylesheet.light),this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;})),this.fire(new t.Event(&quot;style.load&quot;))}},r.prototype._loadSprite=function(e){var r=this;this._spriteRequest=function(e,r,n){var i,a,o,s=t.browser.devicePixelRatio&gt;1?&quot;@2x&quot;:&quot;&quot;,l=t.getJSON(r.transformRequest(r.normalizeSpriteURL(e,s,&quot;.json&quot;),t.ResourceType.SpriteJSON),(function(t,e){l=null,o||(o=t,i=e,u())})),c=t.getImage(r.transformRequest(r.normalizeSpriteURL(e,s,&quot;.png&quot;),t.ResourceType.SpriteImage),(function(t,e){c=null,o||(o=t,a=e,u())}));function u(){if(o)n(o);else if(i&amp;&amp;a){var e=t.browser.getImageData(a),r={};for(var s in i){var l=i[s],c=l.width,u=l.height,f=l.x,h=l.y,p=l.sdf,d=l.pixelRatio,g=l.stretchX,m=l.stretchY,v=l.content,y=new t.RGBAImage({width:c,height:u});t.RGBAImage.copy(e,y,{x:f,y:h},{x:0,y:0},{width:c,height:u}),r[s]={data:y,pixelRatio:d,sdf:p,stretchX:g,stretchY:m,content:v}}n(null,r)}}return{cancel:function(){l&amp;&amp;(l.cancel(),l=null),c&amp;&amp;(c.cancel(),c=null)}}}(e,this.map._requestManager,(function(e,n){if(r._spriteRequest=null,e)r.fire(new t.ErrorEvent(e));else if(n)for(var i in n)r.imageManager.addImage(i,n[i]);r.imageManager.setLoaded(!0),r._availableImages=r.imageManager.listImages(),r.dispatcher.broadcast(&quot;setImages&quot;,r._availableImages),r.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))}))},r.prototype._validateLayer=function(e){var r=this.sourceCaches[e.source];if(r){var n=e.sourceLayer;if(n){var i=r.getSource();(&quot;geojson&quot;===i.type||i.vectorLayerIds&amp;&amp;-1===i.vectorLayerIds.indexOf(n))&amp;&amp;this.fire(new t.ErrorEvent(new Error('Source layer &quot;'+n+'&quot; does not exist on source &quot;'+i.id+'&quot; as specified by style layer &quot;'+e.id+'&quot;')))}}},r.prototype.loaded=function(){if(!this._loaded)return!1;if(Object.keys(this._updatedSources).length)return!1;for(var t in this.sourceCaches)if(!this.sourceCaches[t].loaded())return!1;return!!this.imageManager.isLoaded()},r.prototype._serializeLayers=function(t){for(var e=[],r=0,n=t;r&lt;n.length;r+=1){var i=this._layers[n[r]];&quot;custom&quot;!==i.type&amp;&amp;e.push(i.serialize())}return e},r.prototype.hasTransitions=function(){if(this.light&amp;&amp;this.light.hasTransition())return!0;for(var t in this.sourceCaches)if(this.sourceCaches[t].hasTransition())return!0;for(var e in this._layers)if(this._layers[e].hasTransition())return!0;return!1},r.prototype._checkLoaded=function(){if(!this._loaded)throw new Error(&quot;Style is not done loading&quot;)},r.prototype.update=function(e){if(this._loaded){var r=this._changed;if(this._changed){var n=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);for(var a in(n.length||i.length)&amp;&amp;this._updateWorkerLayers(n,i),this._updatedSources){var o=this._updatedSources[a];&quot;reload&quot;===o?this._reloadSource(a):&quot;clear&quot;===o&amp;&amp;this._clearSource(a)}for(var s in this._updateTilesForChangedImages(),this._updatedPaintProps)this._layers[s].updateTransitions(e);this.light.updateTransitions(e),this._resetUpdates()}for(var l in this.sourceCaches)this.sourceCaches[l].used=!1;for(var c=0,u=this._order;c&lt;u.length;c+=1){var f=this._layers[u[c]];f.recalculate(e,this._availableImages),!f.isHidden(e.zoom)&amp;&amp;f.source&amp;&amp;(this.sourceCaches[f.source].used=!0)}this.light.recalculate(e),this.z=e.zoom,r&amp;&amp;this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))}},r.prototype._updateTilesForChangedImages=function(){var t=Object.keys(this._changedImages);if(t.length){for(var e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies([&quot;icons&quot;,&quot;patterns&quot;],t);this._changedImages={}}},r.prototype._updateWorkerLayers=function(t,e){this.dispatcher.broadcast(&quot;updateLayers&quot;,{layers:this._serializeLayers(t),removedIds:e})},r.prototype._resetUpdates=function(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={}},r.prototype.setState=function(e){var r=this;if(this._checkLoaded(),Ne(this,t.validateStyle(e)))return!1;(e=t.clone$1(e)).layers=jt(e.layers);var n=function(e,r){if(!e)return[{command:Ut.setStyle,args:[r]}];var n=[];try{if(!t.deepEqual(e.version,r.version))return[{command:Ut.setStyle,args:[r]}];t.deepEqual(e.center,r.center)||n.push({command:Ut.setCenter,args:[r.center]}),t.deepEqual(e.zoom,r.zoom)||n.push({command:Ut.setZoom,args:[r.zoom]}),t.deepEqual(e.bearing,r.bearing)||n.push({command:Ut.setBearing,args:[r.bearing]}),t.deepEqual(e.pitch,r.pitch)||n.push({command:Ut.setPitch,args:[r.pitch]}),t.deepEqual(e.sprite,r.sprite)||n.push({command:Ut.setSprite,args:[r.sprite]}),t.deepEqual(e.glyphs,r.glyphs)||n.push({command:Ut.setGlyphs,args:[r.glyphs]}),t.deepEqual(e.transition,r.transition)||n.push({command:Ut.setTransition,args:[r.transition]}),t.deepEqual(e.light,r.light)||n.push({command:Ut.setLight,args:[r.light]});var i={},a=[];!function(e,r,n,i){var a;for(a in r=r||{},e=e||{})e.hasOwnProperty(a)&amp;&amp;(r.hasOwnProperty(a)||qt(a,n,i));for(a in r)r.hasOwnProperty(a)&amp;&amp;(e.hasOwnProperty(a)?t.deepEqual(e[a],r[a])||(&quot;geojson&quot;===e[a].type&amp;&amp;&quot;geojson&quot;===r[a].type&amp;&amp;Gt(e,r,a)?n.push({command:Ut.setGeoJSONSourceData,args:[a,r[a].data]}):Ht(a,r,n,i)):Vt(a,r,n))}(e.sources,r.sources,a,i);var o=[];e.layers&amp;&amp;e.layers.forEach((function(t){i[t.source]?n.push({command:Ut.removeLayer,args:[t.id]}):o.push(t)})),n=n.concat(a),function(e,r,n){r=r||[];var i,a,o,s,l,c,u,f=(e=e||[]).map(Wt),h=r.map(Wt),p=e.reduce(Xt,{}),d=r.reduce(Xt,{}),g=f.slice(),m=Object.create(null);for(i=0,a=0;i&lt;f.length;i++)d.hasOwnProperty(o=f[i])?a++:(n.push({command:Ut.removeLayer,args:[o]}),g.splice(g.indexOf(o,a),1));for(i=0,a=0;i&lt;h.length;i++)g[g.length-1-i]!==(o=h[h.length-1-i])&amp;&amp;(p.hasOwnProperty(o)?(n.push({command:Ut.removeLayer,args:[o]}),g.splice(g.lastIndexOf(o,g.length-a),1)):a++,n.push({command:Ut.addLayer,args:[d[o],c=g[g.length-i]]}),g.splice(g.length-i,0,o),m[o]=!0);for(i=0;i&lt;h.length;i++)if(s=p[o=h[i]],l=d[o],!m[o]&amp;&amp;!t.deepEqual(s,l))if(t.deepEqual(s.source,l.source)&amp;&amp;t.deepEqual(s[&quot;source-layer&quot;],l[&quot;source-layer&quot;])&amp;&amp;t.deepEqual(s.type,l.type)){for(u in Yt(s.layout,l.layout,n,o,null,Ut.setLayoutProperty),Yt(s.paint,l.paint,n,o,null,Ut.setPaintProperty),t.deepEqual(s.filter,l.filter)||n.push({command:Ut.setFilter,args:[o,l.filter]}),t.deepEqual(s.minzoom,l.minzoom)&amp;&amp;t.deepEqual(s.maxzoom,l.maxzoom)||n.push({command:Ut.setLayerZoomRange,args:[o,l.minzoom,l.maxzoom]}),s)s.hasOwnProperty(u)&amp;&amp;&quot;layout&quot;!==u&amp;&amp;&quot;paint&quot;!==u&amp;&amp;&quot;filter&quot;!==u&amp;&amp;&quot;metadata&quot;!==u&amp;&amp;&quot;minzoom&quot;!==u&amp;&amp;&quot;maxzoom&quot;!==u&amp;&amp;(0===u.indexOf(&quot;paint.&quot;)?Yt(s[u],l[u],n,o,u.slice(6),Ut.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:Ut.setLayerProperty,args:[o,u,l[u]]}));for(u in l)l.hasOwnProperty(u)&amp;&amp;!s.hasOwnProperty(u)&amp;&amp;&quot;layout&quot;!==u&amp;&amp;&quot;paint&quot;!==u&amp;&amp;&quot;filter&quot;!==u&amp;&amp;&quot;metadata&quot;!==u&amp;&amp;&quot;minzoom&quot;!==u&amp;&amp;&quot;maxzoom&quot;!==u&amp;&amp;(0===u.indexOf(&quot;paint.&quot;)?Yt(s[u],l[u],n,o,u.slice(6),Ut.setPaintProperty):t.deepEqual(s[u],l[u])||n.push({command:Ut.setLayerProperty,args:[o,u,l[u]]}))}else n.push({command:Ut.removeLayer,args:[o]}),c=g[g.lastIndexOf(o)+1],n.push({command:Ut.addLayer,args:[l,c]})}(o,r.layers,n)}catch(t){console.warn(&quot;Unable to compute style diff:&quot;,t),n=[{command:Ut.setStyle,args:[r]}]}return n}(this.serialize(),e).filter((function(t){return!(t.command in Ue)}));if(0===n.length)return!1;var i=n.filter((function(t){return!(t.command in je)}));if(i.length&gt;0)throw new Error(&quot;Unimplemented: &quot;+i.map((function(t){return t.command})).join(&quot;, &quot;)+&quot;.&quot;);return n.forEach((function(t){&quot;setTransition&quot;!==t.command&amp;&amp;r[t.command].apply(r,t.args)})),this.stylesheet=e,!0},r.prototype.addImage=function(e,r){if(this.getImage(e))return this.fire(new t.ErrorEvent(new Error(&quot;An image with this name already exists.&quot;)));this.imageManager.addImage(e,r),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))},r.prototype.updateImage=function(t,e){this.imageManager.updateImage(t,e)},r.prototype.getImage=function(t){return this.imageManager.getImage(t)},r.prototype.removeImage=function(e){if(!this.getImage(e))return this.fire(new t.ErrorEvent(new Error(&quot;No image with this name exists.&quot;)));this.imageManager.removeImage(e),this._availableImages=this.imageManager.listImages(),this._changedImages[e]=!0,this._changed=!0,this.fire(new t.Event(&quot;data&quot;,{dataType:&quot;style&quot;}))},r.prototype.listImages=function(){return this._checkLoaded(),this.imageManager.listImages()},r.prototype.addSource=function(e,r,n){var i=this;if(void 0===n&amp;&amp;(n={}),this._checkLoaded(),void 0!==this.sourceCaches[e])throw new Error(&quot;There is already a source with this ID&quot;);if(!r.type)throw new Error(&quot;The type property must be defined, but the only the following properties were given: &quot;+Object.keys(r).join(&quot;, &quot;)+&quot;.&quot;);if(!([&quot;vector&quot;,&quot;raster&quot;,&quot;geojson&quot;,&quot;video&quot;,&quot;image&quot;].indexOf(r.type)&gt;=0&amp;&amp;this._validate(t.validateStyle.source,&quot;sources.&quot;+e,r,null,n))){this.map&amp;&amp;this.map._collectResourceTiming&amp;&amp;(r.collectResourceTiming=!0);var a=this.sourceCaches[e]=new Lt(e,r,this.dispatcher);a.style=this,a.setEventedParent(this,(function(){return{isSourceLoaded:i.loaded(),source:a.serialize(),sourceId:e}})),a.onAdd(this.map),this._changed=!0}},r.prototype.removeSource=function(e){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw new Error(&quot;There is no source with this ID&quot;);for(var r in this._layers)if(this._layers[r].source===e)return this.fire(new t.ErrorEvent(new Error('Source &quot;'+e+'&quot; cannot be removed while layer &quot;'+r+'&quot; is using it.')));var n=this.sourceCaches[e];delete this.sourceCaches[e],delete this._updatedSources[e],n.fire(new t.Event(&quot;data&quot;,{sourceDataType:&quot;metadata&quot;,dataType:&quot;source&quot;,sourceId:e})),n.setEventedParent(null),n.clearTiles(),n.onRemove&amp;&amp;n.onRemove(this.map),this._changed=!0},r.prototype.setGeoJSONSourceData=function(t,e){this._checkLoaded(),this.sourceCaches[t].getSource().setData(e),this._changed=!0},r.prototype.getSource=function(t){return this.sourceCaches[t]&amp;&amp;this.sourceCaches[t].getSource()},r.prototype.addLayer=function(e,r,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var i=e.id;if(this.getLayer(i))this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+i+'&quot; already exists on this map')));else{var a;if(&quot;custom&quot;===e.type){if(Ne(this,t.validateCustomStyleLayer(e)))return;a=t.createStyleLayer(e)}else{if(&quot;object&quot;==typeof e.source&amp;&amp;(this.addSource(i,e.source),e=t.clone$1(e),e=t.extend(e,{source:i})),this._validate(t.validateStyle.layer,&quot;layers.&quot;+i,e,{arrayIndex:-1},n))return;a=t.createStyleLayer(e),this._validateLayer(a),a.setEventedParent(this,{layer:{id:i}}),this._serializedLayers[a.id]=a.serialize()}var o=r?this._order.indexOf(r):this._order.length;if(r&amp;&amp;-1===o)this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+r+'&quot; does not exist on this map.')));else{if(this._order.splice(o,0,i),this._layerOrderChanged=!0,this._layers[i]=a,this._removedLayers[i]&amp;&amp;a.source&amp;&amp;&quot;custom&quot;!==a.type){var s=this._removedLayers[i];delete this._removedLayers[i],s.type!==a.type?this._updatedSources[a.source]=&quot;clear&quot;:(this._updatedSources[a.source]=&quot;reload&quot;,this.sourceCaches[a.source].pause())}this._updateLayer(a),a.onAdd&amp;&amp;a.onAdd(this.map)}}},r.prototype.moveLayer=function(e,r){if(this._checkLoaded(),this._changed=!0,this._layers[e]){if(e!==r){var n=this._order.indexOf(e);this._order.splice(n,1);var i=r?this._order.indexOf(r):this._order.length;r&amp;&amp;-1===i?this.fire(new t.ErrorEvent(new Error('Layer with id &quot;'+r+'&quot; does not exist on this map.'))):(this._order.splice(i,0,e),this._layerOrderChanged=!0)}}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be moved.&quot;)))},r.prototype.removeLayer=function(e){this._checkLoaded();var r=this._layers[e];if(r){r.setEventedParent(null);var n=this._order.indexOf(e);this._order.splice(n,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[e]=r,delete this._layers[e],delete this._serializedLayers[e],delete this._updatedLayers[e],delete this._updatedPaintProps[e],r.onRemove&amp;&amp;r.onRemove(this.map)}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be removed.&quot;)))},r.prototype.getLayer=function(t){return this._layers[t]},r.prototype.hasLayer=function(t){return t in this._layers},r.prototype.setLayerZoomRange=function(e,r,n){this._checkLoaded();var i=this.getLayer(e);i?i.minzoom===r&amp;&amp;i.maxzoom===n||(null!=r&amp;&amp;(i.minzoom=r),null!=n&amp;&amp;(i.maxzoom=n),this._updateLayer(i)):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot have zoom extent.&quot;)))},r.prototype.setFilter=function(e,r,n){void 0===n&amp;&amp;(n={}),this._checkLoaded();var i=this.getLayer(e);if(i){if(!t.deepEqual(i.filter,r))return null==r?(i.filter=void 0,void this._updateLayer(i)):void(this._validate(t.validateStyle.filter,&quot;layers.&quot;+i.id+&quot;.filter&quot;,r,null,n)||(i.filter=t.clone$1(r),this._updateLayer(i)))}else this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be filtered.&quot;)))},r.prototype.getFilter=function(e){return t.clone$1(this.getLayer(e).filter)},r.prototype.setLayoutProperty=function(e,r,n,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getLayoutProperty(r),n)||(a.setLayoutProperty(r,n,i),this._updateLayer(a)):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be styled.&quot;)))},r.prototype.getLayoutProperty=function(e,r){var n=this.getLayer(e);if(n)return n.getLayoutProperty(r);this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style.&quot;)))},r.prototype.setPaintProperty=function(e,r,n,i){void 0===i&amp;&amp;(i={}),this._checkLoaded();var a=this.getLayer(e);a?t.deepEqual(a.getPaintProperty(r),n)||(a.setPaintProperty(r,n,i)&amp;&amp;this._updateLayer(a),this._changed=!0,this._updatedPaintProps[e]=!0):this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+e+&quot;' does not exist in the map's style and cannot be styled.&quot;)))},r.prototype.getPaintProperty=function(t,e){return this.getLayer(t).getPaintProperty(e)},r.prototype.setFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=e.sourceLayer,a=this.sourceCaches[n];if(void 0!==a){var o=a.getSource().type;&quot;geojson&quot;===o&amp;&amp;i?this.fire(new t.ErrorEvent(new Error(&quot;GeoJSON sources cannot have a sourceLayer parameter.&quot;))):&quot;vector&quot;!==o||i?(void 0===e.id&amp;&amp;this.fire(new t.ErrorEvent(new Error(&quot;The feature id parameter must be provided.&quot;))),a.setFeatureState(i,e.id,r)):this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+n+&quot;' does not exist in the map's style.&quot;)))},r.prototype.removeFeatureState=function(e,r){this._checkLoaded();var n=e.source,i=this.sourceCaches[n];if(void 0!==i){var a=i.getSource().type,o=&quot;vector&quot;===a?e.sourceLayer:void 0;&quot;vector&quot;!==a||o?r&amp;&amp;&quot;string&quot;!=typeof e.id&amp;&amp;&quot;number&quot;!=typeof e.id?this.fire(new t.ErrorEvent(new Error(&quot;A feature id is requred to remove its specific state property.&quot;))):i.removeFeatureState(o,e.id,r):this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+n+&quot;' does not exist in the map's style.&quot;)))},r.prototype.getFeatureState=function(e){this._checkLoaded();var r=e.source,n=e.sourceLayer,i=this.sourceCaches[r];if(void 0!==i){if(&quot;vector&quot;!==i.getSource().type||n)return void 0===e.id&amp;&amp;this.fire(new t.ErrorEvent(new Error(&quot;The feature id parameter must be provided.&quot;))),i.getFeatureState(n,e.id);this.fire(new t.ErrorEvent(new Error(&quot;The sourceLayer parameter must be provided for vector source types.&quot;)))}else this.fire(new t.ErrorEvent(new Error(&quot;The source '&quot;+r+&quot;' does not exist in the map's style.&quot;)))},r.prototype.getTransition=function(){return t.extend({duration:300,delay:0},this.stylesheet&amp;&amp;this.stylesheet.transition)},r.prototype.serialize=function(){return t.filterObject({version:this.stylesheet.version,name:this.stylesheet.name,metadata:this.stylesheet.metadata,light:this.stylesheet.light,center:this.stylesheet.center,zoom:this.stylesheet.zoom,bearing:this.stylesheet.bearing,pitch:this.stylesheet.pitch,sprite:this.stylesheet.sprite,glyphs:this.stylesheet.glyphs,transition:this.stylesheet.transition,sources:t.mapObject(this.sourceCaches,(function(t){return t.serialize()})),layers:this._serializeLayers(this._order)},(function(t){return void 0!==t}))},r.prototype._updateLayer=function(t){this._updatedLayers[t.id]=!0,t.source&amp;&amp;!this._updatedSources[t.source]&amp;&amp;&quot;raster&quot;!==this.sourceCaches[t.source].getSource().type&amp;&amp;(this._updatedSources[t.source]=&quot;reload&quot;,this.sourceCaches[t.source].pause()),this._changed=!0},r.prototype._flattenAndSortRenderedFeatures=function(t){for(var e=this,r=function(t){return&quot;fill-extrusion&quot;===e._layers[t].type},n={},i=[],a=this._order.length-1;a&gt;=0;a--){var o=this._order[a];if(r(o)){n[o]=a;for(var s=0,l=t;s&lt;l.length;s+=1){var c=l[s][o];if(c)for(var u=0,f=c;u&lt;f.length;u+=1)i.push(f[u])}}}i.sort((function(t,e){return e.intersectionZ-t.intersectionZ}));for(var h=[],p=this._order.length-1;p&gt;=0;p--){var d=this._order[p];if(r(d))for(var g=i.length-1;g&gt;=0;g--){var m=i[g].feature;if(n[m.layer.id]&lt;p)break;h.push(m),i.pop()}else for(var v=0,y=t;v&lt;y.length;v+=1){var x=y[v][d];if(x)for(var b=0,_=x;b&lt;_.length;b+=1)h.push(_[b].feature)}}return h},r.prototype.queryRenderedFeatures=function(e,r,n){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,&quot;queryRenderedFeatures.filter&quot;,r.filter,null,r);var i={};if(r&amp;&amp;r.layers){if(!Array.isArray(r.layers))return this.fire(new t.ErrorEvent(new Error(&quot;parameters.layers must be an Array.&quot;))),[];for(var a=0,o=r.layers;a&lt;o.length;a+=1){var s=o[a],l=this._layers[s];if(!l)return this.fire(new t.ErrorEvent(new Error(&quot;The layer '&quot;+s+&quot;' does not exist in the map's style and cannot be queried for features.&quot;))),[];i[l.source]=!0}}var c=[];for(var u in r.availableImages=this._availableImages,this.sourceCaches)r.layers&amp;&amp;!i[u]||c.push(F(this.sourceCaches[u],this._layers,this._serializedLayers,e,r,n));return this.placement&amp;&amp;c.push(function(t,e,r,n,i,a,o){for(var s={},l=a.queryRenderedSymbols(n),c=[],u=0,f=Object.keys(l).map(Number);u&lt;f.length;u+=1)c.push(o[f[u]]);c.sort(B);for(var h=function(){var r=d[p],n=r.featureIndex.lookupSymbolFeatures(l[r.bucketInstanceId],e,r.bucketIndex,r.sourceLayerIndex,i.filter,i.layers,i.availableImages,t);for(var a in n){var o=s[a]=s[a]||[],c=n[a];c.sort((function(t,e){var n=r.featureSortOrder;if(n){var i=n.indexOf(t.featureIndex);return n.indexOf(e.featureIndex)-i}return e.featureIndex-t.featureIndex}));for(var u=0,f=c;u&lt;f.length;u+=1)o.push(f[u])}},p=0,d=c;p&lt;d.length;p+=1)h();var g=function(e){s[e].forEach((function(n){var i=n.feature,a=r[t[e].source].getFeatureState(i.layer[&quot;source-layer&quot;],i.id);i.source=i.layer.source,i.layer[&quot;source-layer&quot;]&amp;&amp;(i.sourceLayer=i.layer[&quot;source-layer&quot;]),i.state=a}))};for(var m in s)g(m);return s}(this._layers,this._serializedLayers,this.sourceCaches,e,r,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(c)},r.prototype.querySourceFeatures=function(e,r){r&amp;&amp;r.filter&amp;&amp;this._validate(t.validateStyle.filter,&quot;querySourceFeatures.filter&quot;,r.filter,null,r);var n=this.sourceCaches[e];return n?function(t,e){for(var r=t.getRenderableIds().map((function(e){return t.getTileByID(e)})),n=[],i={},a=0;a&lt;r.length;a++){var o=r[a],s=o.tileID.canonical.key;i[s]||(i[s]=!0,o.querySourceFeatures(n,e))}return n}(n,r):[]},r.prototype.addSourceType=function(t,e,n){return r.getSourceType(t)?n(new Error('A source type called &quot;'+t+'&quot; already exists.')):(r.setSourceType(t,e),e.workerSourceURL?void this.dispatcher.broadcast(&quot;loadWorkerSource&quot;,{name:t,url:e.workerSourceURL},n):n(null,null))},r.prototype.getLight=function(){return this.light.getLight()},r.prototype.setLight=function(e,r){void 0===r&amp;&amp;(r={}),this._checkLoaded();var n=this.light.getLight(),i=!1;for(var a in e)if(!t.deepEqual(e[a],n[a])){i=!0;break}if(i){var o={now:t.browser.now(),transition:t.extend({duration:300,delay:0},this.stylesheet.transition)};this.light.setLight(e,r),this.light.updateTransitions(o)}},r.prototype._validate=function(e,r,n,i,a){return void 0===a&amp;&amp;(a={}),(!a||!1!==a.validate)&amp;&amp;Ne(this,e.call(t.validateStyle,t.extend({key:r,style:this.serialize(),value:n,styleSpec:t.styleSpec},i)))},r.prototype._remove=function(){for(var e in this._request&amp;&amp;(this._request.cancel(),this._request=null),this._spriteRequest&amp;&amp;(this._spriteRequest.cancel(),this._spriteRequest=null),t.evented.off(&quot;pluginStateChange&quot;,this._rtlTextPluginCallback),this._layers)this._layers[e].setEventedParent(null);for(var r in this.sourceCaches)this.sourceCaches[r].clearTiles(),this.sourceCaches[r].setEventedParent(null);this.imageManager.setEventedParent(null),this.setEventedParent(null),this.dispatcher.remove()},r.prototype._clearSource=function(t){this.sourceCaches[t].clearTiles()},r.prototype._reloadSource=function(t){this.sourceCaches[t].resume(),this.sourceCaches[t].reload()},r.prototype._updateSources=function(t){for(var e in this.sourceCaches)this.sourceCaches[e].update(t)},r.prototype._generateCollisionBoxes=function(){for(var t in this.sourceCaches)this._reloadSource(t)},r.prototype._updatePlacement=function(e,r,n,i,a){void 0===a&amp;&amp;(a=!1);for(var o=!1,s=!1,l={},c=0,u=this._order;c&lt;u.length;c+=1){var f=this._layers[u[c]];if(&quot;symbol&quot;===f.type){if(!l[f.source]){var h=this.sourceCaches[f.source];l[f.source]=h.getRenderableIds(!0).map((function(t){return h.getTileByID(t)})).sort((function(t,e){return e.tileID.overscaledZ-t.tileID.overscaledZ||(t.tileID.isLessThan(e.tileID)?-1:1)}))}var p=this.crossTileSymbolIndex.addLayer(f,l[f.source],e.center.lng);o=o||p}}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((a=a||this._layerOrderChanged||0===n)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&amp;&amp;!this.placement.stillRecent(t.browser.now(),e.zoom))&amp;&amp;(this.pauseablePlacement=new ze(e,this._order,a,r,n,i,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&amp;&amp;(this.placement=this.pauseablePlacement.commit(t.browser.now()),s=!0),o&amp;&amp;this.pauseablePlacement.placement.setStale()),s||o)for(var d=0,g=this._order;d&lt;g.length;d+=1){var m=this._layers[g[d]];&quot;symbol&quot;===m.type&amp;&amp;this.placement.updateLayerOpacities(m,l[m.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(t.browser.now())},r.prototype._releaseSymbolFadeTiles=function(){for(var t in this.sourceCaches)this.sourceCaches[t].releaseSymbolFadeTiles()},r.prototype.getImages=function(t,e,r){this.imageManager.getImages(e.icons,r),this._updateTilesForChangedImages();var n=this.sourceCaches[e.source];n&amp;&amp;n.setDependencies(e.tileID.key,e.type,e.icons)},r.prototype.getGlyphs=function(t,e,r){this.glyphManager.getGlyphs(e.stacks,r)},r.prototype.getResource=function(e,r,n){return t.makeRequest(r,n)},r}(t.Evented);qe.getSourceType=function(t){return D[t]},qe.setSourceType=function(t,e){D[t]=e},qe.registerForPluginStateChange=t.registerForPluginStateChange;var He=t.createLayout([{name:&quot;a_pos&quot;,type:&quot;Int16&quot;,components:2}]),Ge=vr(&quot;#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif&quot;,&quot;#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}&quot;),Ye=vr(&quot;uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),We=vr(&quot;uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}&quot;),Xe=vr(&quot;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width &lt; 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,0,1);} else {gl_Position=u_matrix*vec4(circle_center,0,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}&quot;),Ze=vr(&quot;void main() {gl_FragColor=vec4(1.0);}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),Je=vr(&quot;uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}&quot;),Ke=vr(&quot;uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}&quot;),Qe=vr(&quot;varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed &gt; 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed &gt; 0.5) {gl_FragColor*=.1;}}&quot;,&quot;attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,0.0,1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}&quot;),$e=vr(&quot;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}&quot;,&quot;attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd  =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz  /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx &gt;=2.0)),mix(-1.0,1.0,float(vertexIdx &gt;=1.0 &amp;&amp; vertexIdx &lt;=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}&quot;),tr=vr(&quot;uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}&quot;,&quot;attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,0,1);}&quot;),er=vr(&quot;#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}&quot;),rr=vr(&quot;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}&quot;),nr=vr(&quot;uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}&quot;),ir=vr(&quot;uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}&quot;),ar=vr(&quot;varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t &gt; 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}&quot;),or=vr(&quot;uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;base=max(0.0,base);height=max(0.0,height);float t=mod(normal.x,2.0);float z=t &gt; 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 &amp;&amp; normal.y==0.0 &amp;&amp; normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}&quot;),sr=vr(&quot;#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform float u_maxzoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggeration=u_zoom &lt; 2.0 ? 0.4 : u_zoom &lt; 4.5 ? 0.35 : 0.3;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/ pow(2.0,(u_zoom-u_maxzoom)*exaggeration+19.2562-u_zoom);gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}&quot;),lr=vr(&quot;uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y &gt; 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}&quot;),cr=vr(&quot;uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}&quot;),ur=vr(&quot;uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,vec2(v_lineprogress,0.5));gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define MAX_LINE_DISTANCE 32767.0\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_lineprogress;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_lineprogress=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0/MAX_LINE_DISTANCE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_width2=vec2(outset,inset);}&quot;),fr=vr(&quot;uniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}&quot;),hr=vr(&quot;uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth &gt; 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth &gt; 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;float extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;v_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}&quot;),pr=vr(&quot;uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a &gt; 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a &gt; 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}&quot;),dr=vr(&quot;uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),0.0,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;v_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));}&quot;),gr=vr(&quot;#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}&quot;),mr=vr(&quot;#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}&quot;,&quot;const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant &amp;&amp; !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),0,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,0.0,1.0);gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),0.0,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] &gt; 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(1.0,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}&quot;);function vr(t,e){var r=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,n={};return{fragmentSource:t=t.replace(r,(function(t,e,r,i,a){return n[a]=!0,&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nvarying &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifdef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;})),vertexSource:e=e.replace(r,(function(t,e,r,i,a){var o=&quot;float&quot;===i?&quot;vec2&quot;:&quot;vec4&quot;,s=a.match(/color/)?&quot;color&quot;:o;return n[a]?&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nuniform lowp float u_&quot;+a+&quot;_t;\nattribute &quot;+r+&quot; &quot;+o+&quot; a_&quot;+a+&quot;;\nvarying &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;vec4&quot;===s?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+a+&quot; = a_&quot;+a+&quot;;\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+a+&quot; = unpack_mix_&quot;+s+&quot;(a_&quot;+a+&quot;, u_&quot;+a+&quot;_t);\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;define&quot;===e?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\nuniform lowp float u_&quot;+a+&quot;_t;\nattribute &quot;+r+&quot; &quot;+o+&quot; a_&quot;+a+&quot;;\n#else\nuniform &quot;+r+&quot; &quot;+i+&quot; u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;vec4&quot;===s?&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = a_&quot;+a+&quot;;\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;:&quot;\n#ifndef HAS_UNIFORM_u_&quot;+a+&quot;\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = unpack_mix_&quot;+s+&quot;(a_&quot;+a+&quot;, u_&quot;+a+&quot;_t);\n#else\n    &quot;+r+&quot; &quot;+i+&quot; &quot;+a+&quot; = u_&quot;+a+&quot;;\n#endif\n&quot;}))}}var yr=Object.freeze({__proto__:null,prelude:Ge,background:Ye,backgroundPattern:We,circle:Xe,clippingMask:Ze,heatmap:Je,heatmapTexture:Ke,collisionBox:Qe,collisionCircle:$e,debug:tr,fill:er,fillOutline:rr,fillOutlinePattern:nr,fillPattern:ir,fillExtrusion:ar,fillExtrusionPattern:or,hillshadePrepare:sr,hillshade:lr,line:cr,lineGradient:ur,linePattern:fr,lineSDF:hr,raster:pr,symbolIcon:dr,symbolSDF:gr,symbolTextAndIcon:mr}),xr=function(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null};xr.prototype.bind=function(t,e,r,n,i,a,o,s){this.context=t;for(var l=this.boundPaintVertexBuffers.length!==n.length,c=0;!l&amp;&amp;c&lt;n.length;c++)this.boundPaintVertexBuffers[c]!==n[c]&amp;&amp;(l=!0);t.extVertexArrayObject&amp;&amp;this.vao&amp;&amp;this.boundProgram===e&amp;&amp;this.boundLayoutVertexBuffer===r&amp;&amp;!l&amp;&amp;this.boundIndexBuffer===i&amp;&amp;this.boundVertexOffset===a&amp;&amp;this.boundDynamicVertexBuffer===o&amp;&amp;this.boundDynamicVertexBuffer2===s?(t.bindVertexArrayOES.set(this.vao),o&amp;&amp;o.bind(),i&amp;&amp;i.dynamicDraw&amp;&amp;i.bind(),s&amp;&amp;s.bind()):this.freshBind(e,r,n,i,a,o,s)},xr.prototype.freshBind=function(t,e,r,n,i,a,o){var s,l=t.numAttributes,c=this.context,u=c.gl;if(c.extVertexArrayObject)this.vao&amp;&amp;this.destroy(),this.vao=c.extVertexArrayObject.createVertexArrayOES(),c.bindVertexArrayOES.set(this.vao),s=0,this.boundProgram=t,this.boundLayoutVertexBuffer=e,this.boundPaintVertexBuffers=r,this.boundIndexBuffer=n,this.boundVertexOffset=i,this.boundDynamicVertexBuffer=a,this.boundDynamicVertexBuffer2=o;else{s=c.currentNumAttributes||0;for(var f=l;f&lt;s;f++)u.disableVertexAttribArray(f)}e.enableAttributes(u,t);for(var h=0,p=r;h&lt;p.length;h+=1)p[h].enableAttributes(u,t);a&amp;&amp;a.enableAttributes(u,t),o&amp;&amp;o.enableAttributes(u,t),e.bind(),e.setVertexAttribPointers(u,t,i);for(var d=0,g=r;d&lt;g.length;d+=1){var m=g[d];m.bind(),m.setVertexAttribPointers(u,t,i)}a&amp;&amp;(a.bind(),a.setVertexAttribPointers(u,t,i)),n&amp;&amp;n.bind(),o&amp;&amp;(o.bind(),o.setVertexAttribPointers(u,t,i)),c.currentNumAttributes=l},xr.prototype.destroy=function(){this.vao&amp;&amp;(this.context.extVertexArrayObject.deleteVertexArrayOES(this.vao),this.vao=null)};var br=function(t,e,r,n,i){var a=t.gl;this.program=a.createProgram();var o=r?r.defines():[];i&amp;&amp;o.push(&quot;#define OVERDRAW_INSPECTOR;&quot;);var s=o.concat(Ge.fragmentSource,e.fragmentSource).join(&quot;\n&quot;),l=o.concat(Ge.vertexSource,e.vertexSource).join(&quot;\n&quot;),c=a.createShader(a.FRAGMENT_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(c,s),a.compileShader(c),a.attachShader(this.program,c);var u=a.createShader(a.VERTEX_SHADER);if(a.isContextLost())this.failedToCreate=!0;else{a.shaderSource(u,l),a.compileShader(u),a.attachShader(this.program,u);for(var f=r?r.layoutAttributes:[],h=0;h&lt;f.length;h++)a.bindAttribLocation(this.program,h,f[h].name);a.linkProgram(this.program),a.deleteShader(u),a.deleteShader(c),this.numAttributes=a.getProgramParameter(this.program,a.ACTIVE_ATTRIBUTES),this.attributes={};for(var p={},d=0;d&lt;this.numAttributes;d++){var g=a.getActiveAttrib(this.program,d);g&amp;&amp;(this.attributes[g.name]=a.getAttribLocation(this.program,g.name))}for(var m=a.getProgramParameter(this.program,a.ACTIVE_UNIFORMS),v=0;v&lt;m;v++){var y=a.getActiveUniform(this.program,v);y&amp;&amp;(p[y.name]=a.getUniformLocation(this.program,y.name))}this.fixedUniforms=n(t,p),this.binderUniforms=r?r.getUniforms(t,p):[]}}};function _r(t,e,r){var n=1/he(r,1,e.transform.tileZoom),i=Math.pow(2,r.tileID.overscaledZ),a=r.tileSize*Math.pow(2,e.transform.tileZoom)/i,o=a*(r.tileID.canonical.x+r.tileID.wrap*i),s=a*r.tileID.canonical.y;return{u_image:0,u_texsize:r.imageAtlasTexture.size,u_scale:[n,t.fromScale,t.toScale],u_fade:t.t,u_pixel_coord_upper:[o&gt;&gt;16,s&gt;&gt;16],u_pixel_coord_lower:[65535&amp;o,65535&amp;s]}}br.prototype.draw=function(t,e,r,n,i,a,o,s,l,c,u,f,h,p,d,g){var m,v=t.gl;if(!this.failedToCreate){for(var y in t.program.set(this.program),t.setDepthMode(r),t.setStencilMode(n),t.setColorMode(i),t.setCullFace(a),this.fixedUniforms)this.fixedUniforms[y].set(o[y]);p&amp;&amp;p.setUniforms(t,this.binderUniforms,f,{zoom:h});for(var x=(m={},m[v.LINES]=2,m[v.TRIANGLES]=3,m[v.LINE_STRIP]=1,m)[e],b=0,_=u.get();b&lt;_.length;b+=1){var w=_[b],T=w.vaos||(w.vaos={});(T[s]||(T[s]=new xr)).bind(t,this,l,p?p.getPaintVertexBuffers():[],c,w.vertexOffset,d,g),v.drawElements(e,w.primitiveLength*x,v.UNSIGNED_SHORT,w.primitiveOffset*x*2)}}};var wr=function(e,r,n,i){var a=r.style.light,o=a.properties.get(&quot;position&quot;),s=[o.x,o.y,o.z],l=t.create$1();&quot;viewport&quot;===a.properties.get(&quot;anchor&quot;)&amp;&amp;t.fromRotation(l,-r.transform.angle),t.transformMat3(s,s,l);var c=a.properties.get(&quot;color&quot;);return{u_matrix:e,u_lightpos:s,u_lightintensity:a.properties.get(&quot;intensity&quot;),u_lightcolor:[c.r,c.g,c.b],u_vertical_gradient:+n,u_opacity:i}},Tr=function(e,r,n,i,a,o,s){return t.extend(wr(e,r,n,i),_r(o,r,s),{u_height_factor:-Math.pow(2,a.overscaledZ)/s.tileSize/8})},kr=function(t){return{u_matrix:t}},Mr=function(e,r,n,i){return t.extend(kr(e),_r(n,r,i))},Ar=function(t,e){return{u_matrix:t,u_world:e}},Sr=function(e,r,n,i,a){return t.extend(Mr(e,r,n,i),{u_world:a})},Er=function(e,r,n,i){var a,o,s=e.transform;if(&quot;map&quot;===i.paint.get(&quot;circle-pitch-alignment&quot;)){var l=he(n,1,s.zoom);a=!0,o=[l,l]}else a=!1,o=s.pixelsToGLUnits;return{u_camera_to_center_distance:s.cameraToCenterDistance,u_scale_with_map:+(&quot;map&quot;===i.paint.get(&quot;circle-pitch-scale&quot;)),u_matrix:e.translatePosMatrix(r.posMatrix,n,i.paint.get(&quot;circle-translate&quot;),i.paint.get(&quot;circle-translate-anchor&quot;)),u_pitch_with_map:+a,u_device_pixel_ratio:t.browser.devicePixelRatio,u_extrude_scale:o}},Cr=function(t,e,r){var n=he(r,1,e.zoom),i=Math.pow(2,e.zoom-r.tileID.overscaledZ),a=r.tileID.overscaleFactor();return{u_matrix:t,u_camera_to_center_distance:e.cameraToCenterDistance,u_pixels_to_tile_units:n,u_extrude_scale:[e.pixelsToGLUnits[0]/(n*i),e.pixelsToGLUnits[1]/(n*i)],u_overscale_factor:a}},Lr=function(t,e,r){return{u_matrix:t,u_inv_matrix:e,u_camera_to_center_distance:r.cameraToCenterDistance,u_viewport_size:[r.width,r.height]}},Ir=function(t,e,r){return void 0===r&amp;&amp;(r=1),{u_matrix:t,u_color:e,u_overlay:0,u_overlay_scale:r}},Pr=function(t){return{u_matrix:t}},zr=function(t,e,r,n){return{u_matrix:t,u_extrude_scale:he(e,1,r),u_intensity:n}},Or=function(e,r,n){var i=e.transform;return{u_matrix:Nr(e,r,n),u_ratio:1/he(r,1,i.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_units_to_pixels:[1/i.pixelsToGLUnits[0],1/i.pixelsToGLUnits[1]]}},Dr=function(e,r,n){return t.extend(Or(e,r,n),{u_image:0})},Rr=function(e,r,n,i){var a=e.transform,o=Br(r,a);return{u_matrix:Nr(e,r,n),u_texsize:r.imageAtlasTexture.size,u_ratio:1/he(r,1,a.zoom),u_device_pixel_ratio:t.browser.devicePixelRatio,u_image:0,u_scale:[o,i.fromScale,i.toScale],u_fade:i.t,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]]}},Fr=function(e,r,n,i,a){var o=e.lineAtlas,s=Br(r,e.transform),l=&quot;round&quot;===n.layout.get(&quot;line-cap&quot;),c=o.getDash(i.from,l),u=o.getDash(i.to,l),f=c.width*a.fromScale,h=u.width*a.toScale;return t.extend(Or(e,r,n),{u_patternscale_a:[s/f,-c.height/2],u_patternscale_b:[s/h,-u.height/2],u_sdfgamma:o.width/(256*Math.min(f,h)*t.browser.devicePixelRatio)/2,u_image:0,u_tex_y_a:c.y,u_tex_y_b:u.y,u_mix:a.t})};function Br(t,e){return 1/he(t,1,e.tileZoom)}function Nr(t,e,r){return t.translatePosMatrix(e.tileID.posMatrix,e,r.paint.get(&quot;line-translate&quot;),r.paint.get(&quot;line-translate-anchor&quot;))}var jr=function(t,e,r,n,i){return{u_matrix:t,u_tl_parent:e,u_scale_parent:r,u_buffer_scale:1,u_fade_t:n.mix,u_opacity:n.opacity*i.paint.get(&quot;raster-opacity&quot;),u_image0:0,u_image1:1,u_brightness_low:i.paint.get(&quot;raster-brightness-min&quot;),u_brightness_high:i.paint.get(&quot;raster-brightness-max&quot;),u_saturation_factor:(o=i.paint.get(&quot;raster-saturation&quot;),o&gt;0?1-1/(1.001-o):-o),u_contrast_factor:(a=i.paint.get(&quot;raster-contrast&quot;),a&gt;0?1/(1-a):1+a),u_spin_weights:Ur(i.paint.get(&quot;raster-hue-rotate&quot;))};var a,o};function Ur(t){t*=Math.PI/180;var e=Math.sin(t),r=Math.cos(t);return[(2*r+1)/3,(-Math.sqrt(3)*e-r+1)/3,(Math.sqrt(3)*e-r+1)/3]}var Vr,qr=function(t,e,r,n,i,a,o,s,l,c){var u=i.transform;return{u_is_size_zoom_constant:+(&quot;constant&quot;===t||&quot;source&quot;===t),u_is_size_feature_constant:+(&quot;constant&quot;===t||&quot;camera&quot;===t),u_size_t:e?e.uSizeT:0,u_size:e?e.uSize:0,u_camera_to_center_distance:u.cameraToCenterDistance,u_pitch:u.pitch/360*2*Math.PI,u_rotate_symbol:+r,u_aspect_ratio:u.width/u.height,u_fade_change:i.options.fadeDuration?i.symbolFadeChange:1,u_matrix:a,u_label_plane_matrix:o,u_coord_matrix:s,u_is_text:+l,u_pitch_with_map:+n,u_texsize:c,u_texture:0}},Hr=function(e,r,n,i,a,o,s,l,c,u,f){var h=a.transform;return t.extend(qr(e,r,n,i,a,o,s,l,c,u),{u_gamma_scale:i?Math.cos(h._pitch)*h.cameraToCenterDistance:1,u_device_pixel_ratio:t.browser.devicePixelRatio,u_is_halo:+f})},Gr=function(e,r,n,i,a,o,s,l,c,u){return t.extend(Hr(e,r,n,i,a,o,s,l,!0,c,!0),{u_texsize_icon:u,u_texture_icon:1})},Yr=function(t,e,r){return{u_matrix:t,u_opacity:e,u_color:r}},Wr=function(e,r,n,i,a,o){return t.extend(function(t,e,r,n){var i=r.imageManager.getPattern(t.from.toString()),a=r.imageManager.getPattern(t.to.toString()),o=r.imageManager.getPixelSize(),s=o.width,l=o.height,c=Math.pow(2,n.tileID.overscaledZ),u=n.tileSize*Math.pow(2,r.transform.tileZoom)/c,f=u*(n.tileID.canonical.x+n.tileID.wrap*c),h=u*n.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:i.tl,u_pattern_br_a:i.br,u_pattern_tl_b:a.tl,u_pattern_br_b:a.br,u_texsize:[s,l],u_mix:e.t,u_pattern_size_a:i.displaySize,u_pattern_size_b:a.displaySize,u_scale_a:e.fromScale,u_scale_b:e.toScale,u_tile_units_to_pixels:1/he(n,1,r.transform.tileZoom),u_pixel_coord_upper:[f&gt;&gt;16,h&gt;&gt;16],u_pixel_coord_lower:[65535&amp;f,65535&amp;h]}}(i,o,n,a),{u_matrix:e,u_opacity:r})},Xr={fillExtrusion:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fillExtrusionPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_lightpos:new t.Uniform3f(e,r.u_lightpos),u_lightintensity:new t.Uniform1f(e,r.u_lightintensity),u_lightcolor:new t.Uniform3f(e,r.u_lightcolor),u_vertical_gradient:new t.Uniform1f(e,r.u_vertical_gradient),u_height_factor:new t.Uniform1f(e,r.u_height_factor),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade),u_opacity:new t.Uniform1f(e,r.u_opacity)}},fill:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},fillPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},fillOutline:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world)}},fillOutlinePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_texsize:new t.Uniform2f(e,r.u_texsize),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},circle:function(e,r){return{u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_scale_with_map:new t.Uniform1i(e,r.u_scale_with_map),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},collisionBox:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pixels_to_tile_units:new t.Uniform1f(e,r.u_pixels_to_tile_units),u_extrude_scale:new t.Uniform2f(e,r.u_extrude_scale),u_overscale_factor:new t.Uniform1f(e,r.u_overscale_factor)}},collisionCircle:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_inv_matrix:new t.UniformMatrix4f(e,r.u_inv_matrix),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_viewport_size:new t.Uniform2f(e,r.u_viewport_size)}},debug:function(e,r){return{u_color:new t.UniformColor(e,r.u_color),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_overlay:new t.Uniform1i(e,r.u_overlay),u_overlay_scale:new t.Uniform1f(e,r.u_overlay_scale)}},clippingMask:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmap:function(e,r){return{u_extrude_scale:new t.Uniform1f(e,r.u_extrude_scale),u_intensity:new t.Uniform1f(e,r.u_intensity),u_matrix:new t.UniformMatrix4f(e,r.u_matrix)}},heatmapTexture:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_world:new t.Uniform2f(e,r.u_world),u_image:new t.Uniform1i(e,r.u_image),u_color_ramp:new t.Uniform1i(e,r.u_color_ramp),u_opacity:new t.Uniform1f(e,r.u_opacity)}},hillshade:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_latrange:new t.Uniform2f(e,r.u_latrange),u_light:new t.Uniform2f(e,r.u_light),u_shadow:new t.UniformColor(e,r.u_shadow),u_highlight:new t.UniformColor(e,r.u_highlight),u_accent:new t.UniformColor(e,r.u_accent)}},hillshadePrepare:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_image:new t.Uniform1i(e,r.u_image),u_dimension:new t.Uniform2f(e,r.u_dimension),u_zoom:new t.Uniform1f(e,r.u_zoom),u_maxzoom:new t.Uniform1f(e,r.u_maxzoom),u_unpack:new t.Uniform4f(e,r.u_unpack)}},line:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels)}},lineGradient:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_image:new t.Uniform1i(e,r.u_image)}},linePattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_texsize:new t.Uniform2f(e,r.u_texsize),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_image:new t.Uniform1i(e,r.u_image),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_scale:new t.Uniform3f(e,r.u_scale),u_fade:new t.Uniform1f(e,r.u_fade)}},lineSDF:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_ratio:new t.Uniform1f(e,r.u_ratio),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_units_to_pixels:new t.Uniform2f(e,r.u_units_to_pixels),u_patternscale_a:new t.Uniform2f(e,r.u_patternscale_a),u_patternscale_b:new t.Uniform2f(e,r.u_patternscale_b),u_sdfgamma:new t.Uniform1f(e,r.u_sdfgamma),u_image:new t.Uniform1i(e,r.u_image),u_tex_y_a:new t.Uniform1f(e,r.u_tex_y_a),u_tex_y_b:new t.Uniform1f(e,r.u_tex_y_b),u_mix:new t.Uniform1f(e,r.u_mix)}},raster:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_tl_parent:new t.Uniform2f(e,r.u_tl_parent),u_scale_parent:new t.Uniform1f(e,r.u_scale_parent),u_buffer_scale:new t.Uniform1f(e,r.u_buffer_scale),u_fade_t:new t.Uniform1f(e,r.u_fade_t),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image0:new t.Uniform1i(e,r.u_image0),u_image1:new t.Uniform1i(e,r.u_image1),u_brightness_low:new t.Uniform1f(e,r.u_brightness_low),u_brightness_high:new t.Uniform1f(e,r.u_brightness_high),u_saturation_factor:new t.Uniform1f(e,r.u_saturation_factor),u_contrast_factor:new t.Uniform1f(e,r.u_contrast_factor),u_spin_weights:new t.Uniform3f(e,r.u_spin_weights)}},symbolIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture)}},symbolSDF:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texture:new t.Uniform1i(e,r.u_texture),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},symbolTextAndIcon:function(e,r){return{u_is_size_zoom_constant:new t.Uniform1i(e,r.u_is_size_zoom_constant),u_is_size_feature_constant:new t.Uniform1i(e,r.u_is_size_feature_constant),u_size_t:new t.Uniform1f(e,r.u_size_t),u_size:new t.Uniform1f(e,r.u_size),u_camera_to_center_distance:new t.Uniform1f(e,r.u_camera_to_center_distance),u_pitch:new t.Uniform1f(e,r.u_pitch),u_rotate_symbol:new t.Uniform1i(e,r.u_rotate_symbol),u_aspect_ratio:new t.Uniform1f(e,r.u_aspect_ratio),u_fade_change:new t.Uniform1f(e,r.u_fade_change),u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_label_plane_matrix:new t.UniformMatrix4f(e,r.u_label_plane_matrix),u_coord_matrix:new t.UniformMatrix4f(e,r.u_coord_matrix),u_is_text:new t.Uniform1i(e,r.u_is_text),u_pitch_with_map:new t.Uniform1i(e,r.u_pitch_with_map),u_texsize:new t.Uniform2f(e,r.u_texsize),u_texsize_icon:new t.Uniform2f(e,r.u_texsize_icon),u_texture:new t.Uniform1i(e,r.u_texture),u_texture_icon:new t.Uniform1i(e,r.u_texture_icon),u_gamma_scale:new t.Uniform1f(e,r.u_gamma_scale),u_device_pixel_ratio:new t.Uniform1f(e,r.u_device_pixel_ratio),u_is_halo:new t.Uniform1i(e,r.u_is_halo)}},background:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_color:new t.UniformColor(e,r.u_color)}},backgroundPattern:function(e,r){return{u_matrix:new t.UniformMatrix4f(e,r.u_matrix),u_opacity:new t.Uniform1f(e,r.u_opacity),u_image:new t.Uniform1i(e,r.u_image),u_pattern_tl_a:new t.Uniform2f(e,r.u_pattern_tl_a),u_pattern_br_a:new t.Uniform2f(e,r.u_pattern_br_a),u_pattern_tl_b:new t.Uniform2f(e,r.u_pattern_tl_b),u_pattern_br_b:new t.Uniform2f(e,r.u_pattern_br_b),u_texsize:new t.Uniform2f(e,r.u_texsize),u_mix:new t.Uniform1f(e,r.u_mix),u_pattern_size_a:new t.Uniform2f(e,r.u_pattern_size_a),u_pattern_size_b:new t.Uniform2f(e,r.u_pattern_size_b),u_scale_a:new t.Uniform1f(e,r.u_scale_a),u_scale_b:new t.Uniform1f(e,r.u_scale_b),u_pixel_coord_upper:new t.Uniform2f(e,r.u_pixel_coord_upper),u_pixel_coord_lower:new t.Uniform2f(e,r.u_pixel_coord_lower),u_tile_units_to_pixels:new t.Uniform1f(e,r.u_tile_units_to_pixels)}}};function Zr(e,r,n,i,a,o,s){for(var l=e.context,c=l.gl,u=e.useProgram(&quot;collisionBox&quot;),f=[],h=0,p=0,d=0;d&lt;i.length;d++){var g=i[d],m=r.getTile(g),v=m.getBucket(n);if(v){var y=g.posMatrix;0===a[0]&amp;&amp;0===a[1]||(y=e.translatePosMatrix(g.posMatrix,m,a,o));var x=s?v.textCollisionBox:v.iconCollisionBox,b=v.collisionCircleArray;if(b.length&gt;0){var _=t.create(),w=y;t.mul(_,v.placementInvProjMatrix,e.transform.glCoordMatrix),t.mul(_,_,v.placementViewportMatrix),f.push({circleArray:b,circleOffset:p,transform:w,invTransform:_}),p=h+=b.length/4}x&amp;&amp;u.draw(l,c.LINES,Mt.disabled,At.disabled,e.colorModeForRenderPass(),Et.disabled,Cr(y,e.transform,m),n.id,x.layoutVertexBuffer,x.indexBuffer,x.segments,null,e.transform.zoom,null,null,x.collisionVertexBuffer)}}if(s&amp;&amp;f.length){var T=e.useProgram(&quot;collisionCircle&quot;),k=new t.StructArrayLayout2f1f2i16;k.resize(4*h),k._trim();for(var M=0,A=0,S=f;A&lt;S.length;A+=1)for(var E=S[A],C=0;C&lt;E.circleArray.length/4;C++){var L=4*C,I=E.circleArray[L+0],P=E.circleArray[L+1],z=E.circleArray[L+2],O=E.circleArray[L+3];k.emplace(M++,I,P,z,O,0),k.emplace(M++,I,P,z,O,1),k.emplace(M++,I,P,z,O,2),k.emplace(M++,I,P,z,O,3)}(!Vr||Vr.length&lt;2*h)&amp;&amp;(Vr=function(e){var r=2*e,n=new t.StructArrayLayout3ui6;n.resize(r),n._trim();for(var i=0;i&lt;r;i++){var a=6*i;n.uint16[a+0]=4*i+0,n.uint16[a+1]=4*i+1,n.uint16[a+2]=4*i+2,n.uint16[a+3]=4*i+2,n.uint16[a+4]=4*i+3,n.uint16[a+5]=4*i+0}return n}(h));for(var D=l.createIndexBuffer(Vr,!0),R=l.createVertexBuffer(k,t.collisionCircleLayout.members,!0),F=0,B=f;F&lt;B.length;F+=1){var N=B[F],j=Lr(N.transform,N.invTransform,e.transform);T.draw(l,c.TRIANGLES,Mt.disabled,At.disabled,e.colorModeForRenderPass(),Et.disabled,j,n.id,R,D,t.SegmentVector.simpleSegment(0,2*N.circleOffset,N.circleArray.length,N.circleArray.length/2),null,e.transform.zoom,null,null,null)}R.destroy(),D.destroy()}}var Jr=t.identity(new Float32Array(16));function Kr(e,r,n,i,a,o){var s=t.getAnchorAlignment(e),l=-(s.horizontalAlign-.5)*r,c=-(s.verticalAlign-.5)*n,u=t.evaluateVariableOffset(e,i);return new t.Point((l/a+u[0])*o,(c/a+u[1])*o)}function Qr(e,r,n,i,a,o,s,l,c,u,f){var h=e.text.placedSymbolArray,p=e.text.dynamicLayoutVertexArray,d=e.icon.dynamicLayoutVertexArray,g={};p.clear();for(var m=0;m&lt;h.length;m++){var v=h.get(m),y=v.hidden||!v.crossTileID||e.allowVerticalPlacement&amp;&amp;!v.placedOrientation?null:i[v.crossTileID];if(y){var x=new t.Point(v.anchorX,v.anchorY),b=$t(x,n?l:s),_=te(o.cameraToCenterDistance,b.signedDistanceFromCamera),w=a.evaluateSizeForFeature(e.textSizeData,u,v)*_/t.ONE_EM;n&amp;&amp;(w*=e.tilePixelRatio/c);for(var T=Kr(y.anchor,y.width,y.height,y.textOffset,y.textBoxScale,w),k=n?$t(x.add(T),s).point:b.point.add(r?T.rotate(-o.angle):T),M=e.allowVerticalPlacement&amp;&amp;v.placedOrientation===t.WritingMode.vertical?Math.PI/2:0,A=0;A&lt;v.numGlyphs;A++)t.addDynamicAttributes(p,k,M);f&amp;&amp;v.associatedIconIndex&gt;=0&amp;&amp;(g[v.associatedIconIndex]={shiftedAnchor:k,angle:M})}else ce(v.numGlyphs,p)}if(f){d.clear();for(var S=e.icon.placedSymbolArray,E=0;E&lt;S.length;E++){var C=S.get(E);if(C.hidden)ce(C.numGlyphs,d);else{var L=g[E];if(L)for(var I=0;I&lt;C.numGlyphs;I++)t.addDynamicAttributes(d,L.shiftedAnchor,L.angle);else ce(C.numGlyphs,d)}}e.icon.dynamicLayoutVertexBuffer.updateData(d)}e.text.dynamicLayoutVertexBuffer.updateData(p)}function $r(t,e,r){return r.iconsInText&amp;&amp;e?&quot;symbolTextAndIcon&quot;:t?&quot;symbolSDF&quot;:&quot;symbolIcon&quot;}function tn(e,r,n,i,a,o,s,l,c,u,f,h){for(var p=e.context,d=p.gl,g=e.transform,m=&quot;map&quot;===l,v=&quot;map&quot;===c,y=m&amp;&amp;&quot;point&quot;!==n.layout.get(&quot;symbol-placement&quot;),x=m&amp;&amp;!v&amp;&amp;!y,b=void 0!==n.layout.get(&quot;symbol-sort-key&quot;).constantOr(1),_=e.depthModeForSublayer(0,Mt.ReadOnly),w=n.layout.get(&quot;text-variable-anchor&quot;),T=[],k=0,M=i;k&lt;M.length;k+=1){var A=M[k],S=r.getTile(A),E=S.getBucket(n);if(E){var C=a?E.text:E.icon;if(C&amp;&amp;C.segments.get().length){var L=C.programConfigurations.get(n.id),I=a||E.sdfIcons,P=a?E.textSizeData:E.iconSizeData,z=v||0!==g.pitch,O=e.useProgram($r(I,a,E),L),D=t.evaluateSizeForZoom(P,g.zoom),R=void 0,F=[0,0],B=void 0,N=void 0,j=null,U=void 0;if(a)B=S.glyphAtlasTexture,N=d.LINEAR,R=S.glyphAtlasTexture.size,E.iconsInText&amp;&amp;(F=S.imageAtlasTexture.size,j=S.imageAtlasTexture,U=z||e.options.rotating||e.options.zooming||&quot;composite&quot;===P.kind||&quot;camera&quot;===P.kind?d.LINEAR:d.NEAREST);else{var V=1!==n.layout.get(&quot;icon-size&quot;).constantOr(0)||E.iconsNeedLinear;B=S.imageAtlasTexture,N=I||e.options.rotating||e.options.zooming||V||z?d.LINEAR:d.NEAREST,R=S.imageAtlasTexture.size}var q=he(S,1,e.transform.zoom),H=Kt(A.posMatrix,v,m,e.transform,q),G=Qt(A.posMatrix,v,m,e.transform,q),Y=w&amp;&amp;E.hasTextData(),W=&quot;none&quot;!==n.layout.get(&quot;icon-text-fit&quot;)&amp;&amp;Y&amp;&amp;E.hasIconData();y&amp;&amp;re(E,A.posMatrix,e,a,H,G,v,u);var X=e.translatePosMatrix(A.posMatrix,S,o,s),Z=y||a&amp;&amp;w||W?Jr:H,J=e.translatePosMatrix(G,S,o,s,!0),K=I&amp;&amp;0!==n.paint.get(a?&quot;text-halo-width&quot;:&quot;icon-halo-width&quot;).constantOr(1),Q={program:O,buffers:C,uniformValues:I?E.iconsInText?Gr(P.kind,D,x,v,e,X,Z,J,R,F):Hr(P.kind,D,x,v,e,X,Z,J,a,R,!0):qr(P.kind,D,x,v,e,X,Z,J,a,R),atlasTexture:B,atlasTextureIcon:j,atlasInterpolation:N,atlasInterpolationIcon:U,isSDF:I,hasHalo:K};if(b)for(var $=0,tt=C.segments.get();$&lt;tt.length;$+=1){var et=tt[$];T.push({segments:new t.SegmentVector([et]),sortKey:et.sortKey,state:Q})}else T.push({segments:C.segments,sortKey:0,state:Q})}}}b&amp;&amp;T.sort((function(t,e){return t.sortKey-e.sortKey}));for(var rt=0,nt=T;rt&lt;nt.length;rt+=1){var it=nt[rt],at=it.state;if(p.activeTexture.set(d.TEXTURE0),at.atlasTexture.bind(at.atlasInterpolation,d.CLAMP_TO_EDGE),at.atlasTextureIcon&amp;&amp;(p.activeTexture.set(d.TEXTURE1),at.atlasTextureIcon&amp;&amp;at.atlasTextureIcon.bind(at.atlasInterpolationIcon,d.CLAMP_TO_EDGE)),at.isSDF){var ot=at.uniformValues;at.hasHalo&amp;&amp;(ot.u_is_halo=1,en(at.buffers,it.segments,n,e,at.program,_,f,h,ot)),ot.u_is_halo=0}en(at.buffers,it.segments,n,e,at.program,_,f,h,at.uniformValues)}}function en(t,e,r,n,i,a,o,s,l){var c=n.context;i.draw(c,c.gl.TRIANGLES,a,o,s,Et.disabled,l,r.id,t.layoutVertexBuffer,t.indexBuffer,e,r.paint,n.transform.zoom,t.programConfigurations.get(r.id),t.dynamicLayoutVertexBuffer,t.opacityVertexBuffer)}function rn(t,e,r,n,i,a,o){var s,l,c,u,f,h=t.context.gl,p=r.paint.get(&quot;fill-pattern&quot;),d=p&amp;&amp;p.constantOr(1),g=r.getCrossfadeParameters();o?(l=d&amp;&amp;!r.getPaintProperty(&quot;fill-outline-color&quot;)?&quot;fillOutlinePattern&quot;:&quot;fillOutline&quot;,s=h.LINES):(l=d?&quot;fillPattern&quot;:&quot;fill&quot;,s=h.TRIANGLES);for(var m=0,v=n;m&lt;v.length;m+=1){var y=v[m],x=e.getTile(y);if(!d||x.patternsLoaded()){var b=x.getBucket(r);if(b){var _=b.programConfigurations.get(r.id),w=t.useProgram(l,_);d&amp;&amp;(t.context.activeTexture.set(h.TEXTURE0),x.imageAtlasTexture.bind(h.LINEAR,h.CLAMP_TO_EDGE),_.updatePaintBuffers(g));var T=p.constantOr(null);if(T&amp;&amp;x.imageAtlas){var k=x.imageAtlas,M=k.patternPositions[T.to.toString()],A=k.patternPositions[T.from.toString()];M&amp;&amp;A&amp;&amp;_.setConstantPatternPositions(M,A)}var S=t.translatePosMatrix(y.posMatrix,x,r.paint.get(&quot;fill-translate&quot;),r.paint.get(&quot;fill-translate-anchor&quot;));if(o){u=b.indexBuffer2,f=b.segments2;var E=[h.drawingBufferWidth,h.drawingBufferHeight];c=&quot;fillOutlinePattern&quot;===l&amp;&amp;d?Sr(S,t,g,x,E):Ar(S,E)}else u=b.indexBuffer,f=b.segments,c=d?Mr(S,t,g,x):kr(S);w.draw(t.context,s,i,t.stencilModeForClipping(y),a,Et.disabled,c,r.id,b.layoutVertexBuffer,u,f,r.paint,t.transform.zoom,_)}}}}function nn(t,e,r,n,i,a,o){for(var s=t.context,l=s.gl,c=r.paint.get(&quot;fill-extrusion-pattern&quot;),u=c.constantOr(1),f=r.getCrossfadeParameters(),h=r.paint.get(&quot;fill-extrusion-opacity&quot;),p=0,d=n;p&lt;d.length;p+=1){var g=d[p],m=e.getTile(g),v=m.getBucket(r);if(v){var y=v.programConfigurations.get(r.id),x=t.useProgram(u?&quot;fillExtrusionPattern&quot;:&quot;fillExtrusion&quot;,y);u&amp;&amp;(t.context.activeTexture.set(l.TEXTURE0),m.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),y.updatePaintBuffers(f));var b=c.constantOr(null);if(b&amp;&amp;m.imageAtlas){var _=m.imageAtlas,w=_.patternPositions[b.to.toString()],T=_.patternPositions[b.from.toString()];w&amp;&amp;T&amp;&amp;y.setConstantPatternPositions(w,T)}var k=t.translatePosMatrix(g.posMatrix,m,r.paint.get(&quot;fill-extrusion-translate&quot;),r.paint.get(&quot;fill-extrusion-translate-anchor&quot;)),M=r.paint.get(&quot;fill-extrusion-vertical-gradient&quot;),A=u?Tr(k,t,M,h,g,f,m):wr(k,t,M,h);x.draw(s,s.gl.TRIANGLES,i,a,o,Et.backCCW,A,r.id,v.layoutVertexBuffer,v.indexBuffer,v.segments,r.paint,t.transform.zoom,y)}}}function an(e,r,n,i,a,o){var s=e.context,l=s.gl,c=r.fbo;if(c){var u=e.useProgram(&quot;hillshade&quot;);s.activeTexture.set(l.TEXTURE0),l.bindTexture(l.TEXTURE_2D,c.colorAttachment.get());var f=function(e,r,n){var i=n.paint.get(&quot;hillshade-shadow-color&quot;),a=n.paint.get(&quot;hillshade-highlight-color&quot;),o=n.paint.get(&quot;hillshade-accent-color&quot;),s=n.paint.get(&quot;hillshade-illumination-direction&quot;)*(Math.PI/180);&quot;viewport&quot;===n.paint.get(&quot;hillshade-illumination-anchor&quot;)&amp;&amp;(s-=e.transform.angle);var l,c,u,f=!e.options.moving;return{u_matrix:e.transform.calculatePosMatrix(r.tileID.toUnwrapped(),f),u_image:0,u_latrange:(l=r.tileID,c=Math.pow(2,l.canonical.z),u=l.canonical.y,[new t.MercatorCoordinate(0,u/c).toLngLat().lat,new t.MercatorCoordinate(0,(u+1)/c).toLngLat().lat]),u_light:[n.paint.get(&quot;hillshade-exaggeration&quot;),s],u_shadow:i,u_highlight:a,u_accent:o}}(e,r,n);u.draw(s,l.TRIANGLES,i,a,o,Et.disabled,f,n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments)}}function on(e,r,n,i,a,o,s){var l=e.context,c=l.gl,u=r.dem;if(u&amp;&amp;u.data){var f=u.dim,h=u.stride,p=u.getPixels();if(l.activeTexture.set(c.TEXTURE1),l.pixelStoreUnpackPremultiplyAlpha.set(!1),r.demTexture=r.demTexture||e.getTileTexture(h),r.demTexture){var d=r.demTexture;d.update(p,{premultiply:!1}),d.bind(c.NEAREST,c.CLAMP_TO_EDGE)}else r.demTexture=new t.Texture(l,p,c.RGBA,{premultiply:!1}),r.demTexture.bind(c.NEAREST,c.CLAMP_TO_EDGE);l.activeTexture.set(c.TEXTURE0);var g=r.fbo;if(!g){var m=new t.Texture(l,{width:f,height:f,data:null},c.RGBA);m.bind(c.LINEAR,c.CLAMP_TO_EDGE),(g=r.fbo=l.createFramebuffer(f,f,!0)).colorAttachment.set(m.texture)}l.bindFramebuffer.set(g.framebuffer),l.viewport.set([0,0,f,f]),e.useProgram(&quot;hillshadePrepare&quot;).draw(l,c.TRIANGLES,a,o,s,Et.disabled,function(e,r,n){var i=r.stride,a=t.create();return t.ortho(a,0,t.EXTENT,-t.EXTENT,0,0,1),t.translate(a,a,[0,-t.EXTENT,0]),{u_matrix:a,u_image:1,u_dimension:[i,i],u_zoom:e.overscaledZ,u_maxzoom:n,u_unpack:r.getUnpackVector()}}(r.tileID,u,i),n.id,e.rasterBoundsBuffer,e.quadTriangleIndexBuffer,e.rasterBoundsSegments),r.needsHillshadePrepare=!1}}function sn(e,r,n,i,a){var o=i.paint.get(&quot;raster-fade-duration&quot;);if(o&gt;0){var s=t.browser.now(),l=(s-e.timeAdded)/o,c=r?(s-r.timeAdded)/o:-1,u=n.getSource(),f=a.coveringZoomLevel({tileSize:u.tileSize,roundZoom:u.roundZoom}),h=!r||Math.abs(r.tileID.overscaledZ-f)&gt;Math.abs(e.tileID.overscaledZ-f),p=h&amp;&amp;e.refreshedUponExpiration?1:t.clamp(h?l:1-c,0,1);return e.refreshedUponExpiration&amp;&amp;l&gt;=1&amp;&amp;(e.refreshedUponExpiration=!1),r?{opacity:1,mix:1-p}:{opacity:p,mix:0}}return{opacity:1,mix:0}}var ln=new t.Color(1,0,0,1),cn=new t.Color(0,1,0,1),un=new t.Color(0,0,1,1),fn=new t.Color(1,0,1,1),hn=new t.Color(0,1,1,1);function pn(t,e,r,n){gn(t,0,e+r/2,t.transform.width,r,n)}function dn(t,e,r,n){gn(t,e-r/2,0,r,t.transform.height,n)}function gn(e,r,n,i,a,o){var s=e.context,l=s.gl;l.enable(l.SCISSOR_TEST),l.scissor(r*t.browser.devicePixelRatio,n*t.browser.devicePixelRatio,i*t.browser.devicePixelRatio,a*t.browser.devicePixelRatio),s.clear({color:o}),l.disable(l.SCISSOR_TEST)}function mn(e,r,n){var i=e.context,a=i.gl,o=n.posMatrix,s=e.useProgram(&quot;debug&quot;),l=Mt.disabled,c=At.disabled,u=e.colorModeForRenderPass();i.activeTexture.set(a.TEXTURE0),e.emptyTexture.bind(a.LINEAR,a.CLAMP_TO_EDGE),s.draw(i,a.LINE_STRIP,l,c,u,Et.disabled,Ir(o,t.Color.red),&quot;$debug&quot;,e.debugBuffer,e.tileBorderIndexBuffer,e.debugSegments);var f=r.getTileByID(n.key).latestRawTileData,h=Math.floor((f&amp;&amp;f.byteLength||0)/1024),p=r.getTile(n).tileSize,d=512/Math.min(p,512)*(n.overscaledZ/e.transform.zoom)*.5,g=n.canonical.toString();n.overscaledZ!==n.canonical.z&amp;&amp;(g+=&quot; =&gt; &quot;+n.overscaledZ),function(t,e){t.initDebugOverlayCanvas();var r=t.debugOverlayCanvas,n=t.context.gl,i=t.debugOverlayCanvas.getContext(&quot;2d&quot;);i.clearRect(0,0,r.width,r.height),i.shadowColor=&quot;white&quot;,i.shadowBlur=2,i.lineWidth=1.5,i.strokeStyle=&quot;white&quot;,i.textBaseline=&quot;top&quot;,i.font=&quot;bold 36px Open Sans, sans-serif&quot;,i.fillText(e,5,5),i.strokeText(e,5,5),t.debugOverlayTexture.update(r),t.debugOverlayTexture.bind(n.LINEAR,n.CLAMP_TO_EDGE)}(e,g+&quot; &quot;+h+&quot;kb&quot;),s.draw(i,a.TRIANGLES,l,c,St.alphaBlended,Et.disabled,Ir(o,t.Color.transparent,d),&quot;$debug&quot;,e.debugBuffer,e.quadTriangleIndexBuffer,e.debugSegments)}var vn={symbol:function(e,r,n,i,a){if(&quot;translucent&quot;===e.renderPass){var o=At.disabled,s=e.colorModeForRenderPass();n.layout.get(&quot;text-variable-anchor&quot;)&amp;&amp;function(e,r,n,i,a,o,s){for(var l=r.transform,c=&quot;map&quot;===a,u=&quot;map&quot;===o,f=0,h=e;f&lt;h.length;f+=1){var p=h[f],d=i.getTile(p),g=d.getBucket(n);if(g&amp;&amp;g.text&amp;&amp;g.text.segments.get().length){var m=t.evaluateSizeForZoom(g.textSizeData,l.zoom),v=he(d,1,r.transform.zoom),y=Kt(p.posMatrix,u,c,r.transform,v),x=&quot;none&quot;!==n.layout.get(&quot;icon-text-fit&quot;)&amp;&amp;g.hasIconData();if(m){var b=Math.pow(2,l.zoom-d.tileID.overscaledZ);Qr(g,c,u,s,t.symbolSize,l,y,p.posMatrix,b,m,x)}}}}(i,e,n,r,n.layout.get(&quot;text-rotation-alignment&quot;),n.layout.get(&quot;text-pitch-alignment&quot;),a),0!==n.paint.get(&quot;icon-opacity&quot;).constantOr(1)&amp;&amp;tn(e,r,n,i,!1,n.paint.get(&quot;icon-translate&quot;),n.paint.get(&quot;icon-translate-anchor&quot;),n.layout.get(&quot;icon-rotation-alignment&quot;),n.layout.get(&quot;icon-pitch-alignment&quot;),n.layout.get(&quot;icon-keep-upright&quot;),o,s),0!==n.paint.get(&quot;text-opacity&quot;).constantOr(1)&amp;&amp;tn(e,r,n,i,!0,n.paint.get(&quot;text-translate&quot;),n.paint.get(&quot;text-translate-anchor&quot;),n.layout.get(&quot;text-rotation-alignment&quot;),n.layout.get(&quot;text-pitch-alignment&quot;),n.layout.get(&quot;text-keep-upright&quot;),o,s),r.map.showCollisionBoxes&amp;&amp;(Zr(e,r,n,i,n.paint.get(&quot;text-translate&quot;),n.paint.get(&quot;text-translate-anchor&quot;),!0),Zr(e,r,n,i,n.paint.get(&quot;icon-translate&quot;),n.paint.get(&quot;icon-translate-anchor&quot;),!1))}},circle:function(e,r,n,i){if(&quot;translucent&quot;===e.renderPass){var a=n.paint.get(&quot;circle-opacity&quot;),o=n.paint.get(&quot;circle-stroke-width&quot;),s=n.paint.get(&quot;circle-stroke-opacity&quot;),l=void 0!==n.layout.get(&quot;circle-sort-key&quot;).constantOr(1);if(0!==a.constantOr(1)||0!==o.constantOr(1)&amp;&amp;0!==s.constantOr(1)){for(var c=e.context,u=c.gl,f=e.depthModeForSublayer(0,Mt.ReadOnly),h=At.disabled,p=e.colorModeForRenderPass(),d=[],g=0;g&lt;i.length;g++){var m=i[g],v=r.getTile(m),y=v.getBucket(n);if(y){var x=y.programConfigurations.get(n.id),b={programConfiguration:x,program:e.useProgram(&quot;circle&quot;,x),layoutVertexBuffer:y.layoutVertexBuffer,indexBuffer:y.indexBuffer,uniformValues:Er(e,m,v,n)};if(l)for(var _=0,w=y.segments.get();_&lt;w.length;_+=1){var T=w[_];d.push({segments:new t.SegmentVector([T]),sortKey:T.sortKey,state:b})}else d.push({segments:y.segments,sortKey:0,state:b})}}l&amp;&amp;d.sort((function(t,e){return t.sortKey-e.sortKey}));for(var k=0,M=d;k&lt;M.length;k+=1){var A=M[k],S=A.state;S.program.draw(c,u.TRIANGLES,f,h,p,Et.disabled,S.uniformValues,n.id,S.layoutVertexBuffer,S.indexBuffer,A.segments,n.paint,e.transform.zoom,S.programConfiguration)}}}},heatmap:function(e,r,n,i){if(0!==n.paint.get(&quot;heatmap-opacity&quot;))if(&quot;offscreen&quot;===e.renderPass){var a=e.context,o=a.gl,s=At.disabled,l=new St([o.ONE,o.ONE],t.Color.transparent,[!0,!0,!0,!0]);!function(t,e,r){var n=t.gl;t.activeTexture.set(n.TEXTURE1),t.viewport.set([0,0,e.width/4,e.height/4]);var i=r.heatmapFbo;if(i)n.bindTexture(n.TEXTURE_2D,i.colorAttachment.get()),t.bindFramebuffer.set(i.framebuffer);else{var a=n.createTexture();n.bindTexture(n.TEXTURE_2D,a),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_S,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_WRAP_T,n.CLAMP_TO_EDGE),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MIN_FILTER,n.LINEAR),n.texParameteri(n.TEXTURE_2D,n.TEXTURE_MAG_FILTER,n.LINEAR),i=r.heatmapFbo=t.createFramebuffer(e.width/4,e.height/4,!1),function(t,e,r,n){var i=t.gl;i.texImage2D(i.TEXTURE_2D,0,i.RGBA,e.width/4,e.height/4,0,i.RGBA,t.extRenderToTextureHalfFloat?t.extTextureHalfFloat.HALF_FLOAT_OES:i.UNSIGNED_BYTE,null),n.colorAttachment.set(r)}(t,e,a,i)}}(a,e,n),a.clear({color:t.Color.transparent});for(var c=0;c&lt;i.length;c++){var u=i[c];if(!r.hasRenderableParent(u)){var f=r.getTile(u),h=f.getBucket(n);if(h){var p=h.programConfigurations.get(n.id);e.useProgram(&quot;heatmap&quot;,p).draw(a,o.TRIANGLES,Mt.disabled,s,l,Et.disabled,zr(u.posMatrix,f,e.transform.zoom,n.paint.get(&quot;heatmap-intensity&quot;)),n.id,h.layoutVertexBuffer,h.indexBuffer,h.segments,n.paint,e.transform.zoom,p)}}}a.viewport.set([0,0,e.width,e.height])}else&quot;translucent&quot;===e.renderPass&amp;&amp;(e.context.setColorMode(e.colorModeForRenderPass()),function(e,r){var n=e.context,i=n.gl,a=r.heatmapFbo;if(a){n.activeTexture.set(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,a.colorAttachment.get()),n.activeTexture.set(i.TEXTURE1);var o=r.colorRampTexture;o||(o=r.colorRampTexture=new t.Texture(n,r.colorRamp,i.RGBA)),o.bind(i.LINEAR,i.CLAMP_TO_EDGE),e.useProgram(&quot;heatmapTexture&quot;).draw(n,i.TRIANGLES,Mt.disabled,At.disabled,e.colorModeForRenderPass(),Et.disabled,function(e,r,n,i){var a=t.create();t.ortho(a,0,e.width,e.height,0,0,1);var o=e.context.gl;return{u_matrix:a,u_world:[o.drawingBufferWidth,o.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:r.paint.get(&quot;heatmap-opacity&quot;)}}(e,r),r.id,e.viewportBuffer,e.quadTriangleIndexBuffer,e.viewportSegments,r.paint,e.transform.zoom)}}(e,n))},line:function(e,r,n,i){if(&quot;translucent&quot;===e.renderPass){var a=n.paint.get(&quot;line-opacity&quot;),o=n.paint.get(&quot;line-width&quot;);if(0!==a.constantOr(1)&amp;&amp;0!==o.constantOr(1)){var s=e.depthModeForSublayer(0,Mt.ReadOnly),l=e.colorModeForRenderPass(),c=n.paint.get(&quot;line-dasharray&quot;),u=n.paint.get(&quot;line-pattern&quot;),f=u.constantOr(1),h=n.paint.get(&quot;line-gradient&quot;),p=n.getCrossfadeParameters(),d=f?&quot;linePattern&quot;:c?&quot;lineSDF&quot;:h?&quot;lineGradient&quot;:&quot;line&quot;,g=e.context,m=g.gl,v=!0;if(h){g.activeTexture.set(m.TEXTURE0);var y=n.gradientTexture;if(!n.gradient)return;y||(y=n.gradientTexture=new t.Texture(g,n.gradient,m.RGBA)),y.bind(m.LINEAR,m.CLAMP_TO_EDGE)}for(var x=0,b=i;x&lt;b.length;x+=1){var _=b[x],w=r.getTile(_);if(!f||w.patternsLoaded()){var T=w.getBucket(n);if(T){var k=T.programConfigurations.get(n.id),M=e.context.program.get(),A=e.useProgram(d,k),S=v||A.program!==M,E=u.constantOr(null);if(E&amp;&amp;w.imageAtlas){var C=w.imageAtlas,L=C.patternPositions[E.to.toString()],I=C.patternPositions[E.from.toString()];L&amp;&amp;I&amp;&amp;k.setConstantPatternPositions(L,I)}var P=f?Rr(e,w,n,p):c?Fr(e,w,n,c,p):h?Dr(e,w,n):Or(e,w,n);f?(g.activeTexture.set(m.TEXTURE0),w.imageAtlasTexture.bind(m.LINEAR,m.CLAMP_TO_EDGE),k.updatePaintBuffers(p)):c&amp;&amp;(S||e.lineAtlas.dirty)&amp;&amp;(g.activeTexture.set(m.TEXTURE0),e.lineAtlas.bind(g)),A.draw(g,m.TRIANGLES,s,e.stencilModeForClipping(_),l,Et.disabled,P,n.id,T.layoutVertexBuffer,T.indexBuffer,T.segments,n.paint,e.transform.zoom,k),v=!1}}}}}},fill:function(e,r,n,i){var a=n.paint.get(&quot;fill-color&quot;),o=n.paint.get(&quot;fill-opacity&quot;);if(0!==o.constantOr(1)){var s=e.colorModeForRenderPass(),l=n.paint.get(&quot;fill-pattern&quot;),c=e.opaquePassEnabledForLayer()&amp;&amp;!l.constantOr(1)&amp;&amp;1===a.constantOr(t.Color.transparent).a&amp;&amp;1===o.constantOr(0)?&quot;opaque&quot;:&quot;translucent&quot;;if(e.renderPass===c){var u=e.depthModeForSublayer(1,&quot;opaque&quot;===e.renderPass?Mt.ReadWrite:Mt.ReadOnly);rn(e,r,n,i,u,s,!1)}if(&quot;translucent&quot;===e.renderPass&amp;&amp;n.paint.get(&quot;fill-antialias&quot;)){var f=e.depthModeForSublayer(n.getPaintProperty(&quot;fill-outline-color&quot;)?2:0,Mt.ReadOnly);rn(e,r,n,i,f,s,!0)}}},&quot;fill-extrusion&quot;:function(t,e,r,n){var i=r.paint.get(&quot;fill-extrusion-opacity&quot;);if(0!==i&amp;&amp;&quot;translucent&quot;===t.renderPass){var a=new Mt(t.context.gl.LEQUAL,Mt.ReadWrite,t.depthRangeFor3D);if(1!==i||r.paint.get(&quot;fill-extrusion-pattern&quot;).constantOr(1))nn(t,e,r,n,a,At.disabled,St.disabled),nn(t,e,r,n,a,t.stencilModeFor3D(),t.colorModeForRenderPass());else{var o=t.colorModeForRenderPass();nn(t,e,r,n,a,At.disabled,o)}}},hillshade:function(t,e,r,n){if(&quot;offscreen&quot;===t.renderPass||&quot;translucent&quot;===t.renderPass){for(var i=t.context,a=e.getSource().maxzoom,o=t.depthModeForSublayer(0,Mt.ReadOnly),s=t.colorModeForRenderPass(),l=&quot;translucent&quot;===t.renderPass?t.stencilConfigForOverlap(n):[{},n],c=l[0],u=0,f=l[1];u&lt;f.length;u+=1){var h=f[u],p=e.getTile(h);p.needsHillshadePrepare&amp;&amp;&quot;offscreen&quot;===t.renderPass?on(t,p,r,a,o,At.disabled,s):&quot;translucent&quot;===t.renderPass&amp;&amp;an(t,p,r,o,c[h.overscaledZ],s)}i.viewport.set([0,0,t.width,t.height])}},raster:function(t,e,r,n){if(&quot;translucent&quot;===t.renderPass&amp;&amp;0!==r.paint.get(&quot;raster-opacity&quot;)&amp;&amp;n.length)for(var i=t.context,a=i.gl,o=e.getSource(),s=t.useProgram(&quot;raster&quot;),l=t.colorModeForRenderPass(),c=o instanceof P?[{},n]:t.stencilConfigForOverlap(n),u=c[0],f=c[1],h=f[f.length-1].overscaledZ,p=!t.options.moving,d=0,g=f;d&lt;g.length;d+=1){var m=g[d],v=t.depthModeForSublayer(m.overscaledZ-h,1===r.paint.get(&quot;raster-opacity&quot;)?Mt.ReadWrite:Mt.ReadOnly,a.LESS),y=e.getTile(m),x=t.transform.calculatePosMatrix(m.toUnwrapped(),p);y.registerFadeDuration(r.paint.get(&quot;raster-fade-duration&quot;));var b=e.findLoadedParent(m,0),_=sn(y,b,e,r,t.transform),w=void 0,T=void 0,k=&quot;nearest&quot;===r.paint.get(&quot;raster-resampling&quot;)?a.NEAREST:a.LINEAR;i.activeTexture.set(a.TEXTURE0),y.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),i.activeTexture.set(a.TEXTURE1),b?(b.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST),w=Math.pow(2,b.tileID.overscaledZ-y.tileID.overscaledZ),T=[y.tileID.canonical.x*w%1,y.tileID.canonical.y*w%1]):y.texture.bind(k,a.CLAMP_TO_EDGE,a.LINEAR_MIPMAP_NEAREST);var M=jr(x,T||[0,0],w||1,_,r);o instanceof P?s.draw(i,a.TRIANGLES,v,At.disabled,l,Et.disabled,M,r.id,o.boundsBuffer,t.quadTriangleIndexBuffer,o.boundsSegments):s.draw(i,a.TRIANGLES,v,u[m.overscaledZ],l,Et.disabled,M,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}},background:function(t,e,r){var n=r.paint.get(&quot;background-color&quot;),i=r.paint.get(&quot;background-opacity&quot;);if(0!==i){var a=t.context,o=a.gl,s=t.transform,l=s.tileSize,c=r.paint.get(&quot;background-pattern&quot;);if(!t.isPatternMissing(c)){var u=!c&amp;&amp;1===n.a&amp;&amp;1===i&amp;&amp;t.opaquePassEnabledForLayer()?&quot;opaque&quot;:&quot;translucent&quot;;if(t.renderPass===u){var f=At.disabled,h=t.depthModeForSublayer(0,&quot;opaque&quot;===u?Mt.ReadWrite:Mt.ReadOnly),p=t.colorModeForRenderPass(),d=t.useProgram(c?&quot;backgroundPattern&quot;:&quot;background&quot;),g=s.coveringTiles({tileSize:l});c&amp;&amp;(a.activeTexture.set(o.TEXTURE0),t.imageManager.bind(t.context));for(var m=r.getCrossfadeParameters(),v=0,y=g;v&lt;y.length;v+=1){var x=y[v],b=t.transform.calculatePosMatrix(x.toUnwrapped()),_=c?Wr(b,i,t,c,{tileID:x,tileSize:l},m):Yr(b,i,n);d.draw(a,o.TRIANGLES,h,f,p,Et.disabled,_,r.id,t.tileExtentBuffer,t.quadTriangleIndexBuffer,t.tileExtentSegments)}}}}},debug:function(t,e,r){for(var n=0;n&lt;r.length;n++)mn(t,e,r[n])},custom:function(t,e,r){var n=t.context,i=r.implementation;if(&quot;offscreen&quot;===t.renderPass){var a=i.prerender;a&amp;&amp;(t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),a.call(i,n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState())}else if(&quot;translucent&quot;===t.renderPass){t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),n.setStencilMode(At.disabled);var o=&quot;3d&quot;===i.renderingMode?new Mt(t.context.gl.LEQUAL,Mt.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,Mt.ReadOnly);n.setDepthMode(o),i.render(n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState(),n.bindFramebuffer.set(null)}}},yn=function(t,e){this.context=new Ct(t),this.transform=e,this._tileTextures={},this.setup(),this.numSublayers=Lt.maxUnderzooming+Lt.maxOverzooming+1,this.depthEpsilon=1/Math.pow(2,16),this.crossTileSymbolIndex=new Be,this.gpuTimers={}};yn.prototype.resize=function(e,r){if(this.width=e*t.browser.devicePixelRatio,this.height=r*t.browser.devicePixelRatio,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(var n=0,i=this.style._order;n&lt;i.length;n+=1)this.style._layers[i[n]].resize()},yn.prototype.setup=function(){var e=this.context,r=new t.StructArrayLayout2i4;r.emplaceBack(0,0),r.emplaceBack(t.EXTENT,0),r.emplaceBack(0,t.EXTENT),r.emplaceBack(t.EXTENT,t.EXTENT),this.tileExtentBuffer=e.createVertexBuffer(r,He.members),this.tileExtentSegments=t.SegmentVector.simpleSegment(0,0,4,2);var n=new t.StructArrayLayout2i4;n.emplaceBack(0,0),n.emplaceBack(t.EXTENT,0),n.emplaceBack(0,t.EXTENT),n.emplaceBack(t.EXTENT,t.EXTENT),this.debugBuffer=e.createVertexBuffer(n,He.members),this.debugSegments=t.SegmentVector.simpleSegment(0,0,4,5);var i=new t.StructArrayLayout4i8;i.emplaceBack(0,0,0,0),i.emplaceBack(t.EXTENT,0,t.EXTENT,0),i.emplaceBack(0,t.EXTENT,0,t.EXTENT),i.emplaceBack(t.EXTENT,t.EXTENT,t.EXTENT,t.EXTENT),this.rasterBoundsBuffer=e.createVertexBuffer(i,I.members),this.rasterBoundsSegments=t.SegmentVector.simpleSegment(0,0,4,2);var a=new t.StructArrayLayout2i4;a.emplaceBack(0,0),a.emplaceBack(1,0),a.emplaceBack(0,1),a.emplaceBack(1,1),this.viewportBuffer=e.createVertexBuffer(a,He.members),this.viewportSegments=t.SegmentVector.simpleSegment(0,0,4,2);var o=new t.StructArrayLayout1ui2;o.emplaceBack(0),o.emplaceBack(1),o.emplaceBack(3),o.emplaceBack(2),o.emplaceBack(0),this.tileBorderIndexBuffer=e.createIndexBuffer(o);var s=new t.StructArrayLayout3ui6;s.emplaceBack(0,1,2),s.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=e.createIndexBuffer(s),this.emptyTexture=new t.Texture(e,{width:1,height:1,data:new Uint8Array([0,0,0,0])},e.gl.RGBA);var l=this.context.gl;this.stencilClearMode=new At({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)},yn.prototype.clearStencil=function(){var e=this.context,r=e.gl;this.nextStencilID=1,this.currentStencilSource=void 0;var n=t.create();t.ortho(n,0,this.width,this.height,0,0,1),t.scale(n,n,[r.drawingBufferWidth,r.drawingBufferHeight,0]),this.useProgram(&quot;clippingMask&quot;).draw(e,r.TRIANGLES,Mt.disabled,this.stencilClearMode,St.disabled,Et.disabled,Pr(n),&quot;$clipping&quot;,this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)},yn.prototype._renderTileClippingMasks=function(t,e){if(this.currentStencilSource!==t.source&amp;&amp;t.isTileClipped()&amp;&amp;e&amp;&amp;e.length){this.currentStencilSource=t.source;var r=this.context,n=r.gl;this.nextStencilID+e.length&gt;256&amp;&amp;this.clearStencil(),r.setColorMode(St.disabled),r.setDepthMode(Mt.disabled);var i=this.useProgram(&quot;clippingMask&quot;);this._tileClippingMaskIDs={};for(var a=0,o=e;a&lt;o.length;a+=1){var s=o[a],l=this._tileClippingMaskIDs[s.key]=this.nextStencilID++;i.draw(r,n.TRIANGLES,Mt.disabled,new At({func:n.ALWAYS,mask:0},l,255,n.KEEP,n.KEEP,n.REPLACE),St.disabled,Et.disabled,Pr(s.posMatrix),&quot;$clipping&quot;,this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}},yn.prototype.stencilModeFor3D=function(){this.currentStencilSource=void 0,this.nextStencilID+1&gt;256&amp;&amp;this.clearStencil();var t=this.nextStencilID++,e=this.context.gl;return new At({func:e.NOTEQUAL,mask:255},t,255,e.KEEP,e.KEEP,e.REPLACE)},yn.prototype.stencilModeForClipping=function(t){var e=this.context.gl;return new At({func:e.EQUAL,mask:255},this._tileClippingMaskIDs[t.key],0,e.KEEP,e.KEEP,e.REPLACE)},yn.prototype.stencilConfigForOverlap=function(t){var e,r=this.context.gl,n=t.sort((function(t,e){return e.overscaledZ-t.overscaledZ})),i=n[n.length-1].overscaledZ,a=n[0].overscaledZ-i+1;if(a&gt;1){this.currentStencilSource=void 0,this.nextStencilID+a&gt;256&amp;&amp;this.clearStencil();for(var o={},s=0;s&lt;a;s++)o[s+i]=new At({func:r.GEQUAL,mask:255},s+this.nextStencilID,255,r.KEEP,r.KEEP,r.REPLACE);return this.nextStencilID+=a,[o,n]}return[(e={},e[i]=At.disabled,e),n]},yn.prototype.colorModeForRenderPass=function(){var e=this.context.gl;return this._showOverdrawInspector?new St([e.CONSTANT_COLOR,e.ONE],new t.Color(1/8,1/8,1/8,0),[!0,!0,!0,!0]):&quot;opaque&quot;===this.renderPass?St.unblended:St.alphaBlended},yn.prototype.depthModeForSublayer=function(t,e,r){if(!this.opaquePassEnabledForLayer())return Mt.disabled;var n=1-((1+this.currentLayer)*this.numSublayers+t)*this.depthEpsilon;return new Mt(r||this.context.gl.LEQUAL,e,[n,n])},yn.prototype.opaquePassEnabledForLayer=function(){return this.currentLayer&lt;this.opaquePassCutoff},yn.prototype.render=function(e,r){var n=this;this.style=e,this.options=r,this.lineAtlas=e.lineAtlas,this.imageManager=e.imageManager,this.glyphManager=e.glyphManager,this.symbolFadeChange=e.placement.symbolFadeChange(t.browser.now()),this.imageManager.beginFrame();var i=this.style._order,a=this.style.sourceCaches;for(var o in a){var s=a[o];s.used&amp;&amp;s.prepare(this.context)}var l,c,u={},f={},h={};for(var p in a){var d=a[p];u[p]=d.getVisibleCoordinates(),f[p]=u[p].slice().reverse(),h[p]=d.getVisibleCoordinates(!0).reverse()}this.opaquePassCutoff=1/0;for(var g=0;g&lt;i.length;g++)if(this.style._layers[i[g]].is3D()){this.opaquePassCutoff=g;break}this.renderPass=&quot;offscreen&quot;;for(var m=0,v=i;m&lt;v.length;m+=1){var y=this.style._layers[v[m]];if(y.hasOffscreenPass()&amp;&amp;!y.isHidden(this.transform.zoom)){var x=f[y.source];(&quot;custom&quot;===y.type||x.length)&amp;&amp;this.renderLayer(this,a[y.source],y,x)}}for(this.context.bindFramebuffer.set(null),this.context.clear({color:r.showOverdrawInspector?t.Color.black:t.Color.transparent,depth:1}),this.clearStencil(),this._showOverdrawInspector=r.showOverdrawInspector,this.depthRangeFor3D=[0,1-(e._order.length+2)*this.numSublayers*this.depthEpsilon],this.renderPass=&quot;opaque&quot;,this.currentLayer=i.length-1;this.currentLayer&gt;=0;this.currentLayer--){var b=this.style._layers[i[this.currentLayer]],_=a[b.source],w=u[b.source];this._renderTileClippingMasks(b,w),this.renderLayer(this,_,b,w)}for(this.renderPass=&quot;translucent&quot;,this.currentLayer=0;this.currentLayer&lt;i.length;this.currentLayer++){var T=this.style._layers[i[this.currentLayer]],k=a[T.source],M=(&quot;symbol&quot;===T.type?h:f)[T.source];this._renderTileClippingMasks(T,u[T.source]),this.renderLayer(this,k,T,M)}this.options.showTileBoundaries&amp;&amp;(t.values(this.style._layers).forEach((function(t){t.source&amp;&amp;!t.isHidden(n.transform.zoom)&amp;&amp;(t.source!==(c&amp;&amp;c.id)&amp;&amp;(c=n.style.sourceCaches[t.source]),(!l||l.getSource().maxzoom&lt;c.getSource().maxzoom)&amp;&amp;(l=c))})),l&amp;&amp;vn.debug(this,l,l.getVisibleCoordinates())),this.options.showPadding&amp;&amp;function(t){var e=t.transform.padding;pn(t,t.transform.height-(e.top||0),3,ln),pn(t,e.bottom||0,3,cn),dn(t,e.left||0,3,un),dn(t,t.transform.width-(e.right||0),3,fn);var r=t.transform.centerPoint;!function(t,e,r,n){gn(t,e-1,r-10,2,20,n),gn(t,e-10,r-1,20,2,n)}(t,r.x,t.transform.height-r.y,hn)}(this),this.context.setDefault()},yn.prototype.renderLayer=function(t,e,r,n){r.isHidden(this.transform.zoom)||(&quot;background&quot;===r.type||&quot;custom&quot;===r.type||n.length)&amp;&amp;(this.id=r.id,this.gpuTimingStart(r),vn[r.type](t,e,r,n,this.style.placement.variableOffsets),this.gpuTimingEnd())},yn.prototype.gpuTimingStart=function(t){if(this.options.gpuTiming){var e=this.context.extTimerQuery,r=this.gpuTimers[t.id];r||(r=this.gpuTimers[t.id]={calls:0,cpuTime:0,query:e.createQueryEXT()}),r.calls++,e.beginQueryEXT(e.TIME_ELAPSED_EXT,r.query)}},yn.prototype.gpuTimingEnd=function(){if(this.options.gpuTiming){var t=this.context.extTimerQuery;t.endQueryEXT(t.TIME_ELAPSED_EXT)}},yn.prototype.collectGpuTimers=function(){var t=this.gpuTimers;return this.gpuTimers={},t},yn.prototype.queryGpuTimers=function(t){var e={};for(var r in t){var n=t[r],i=this.context.extTimerQuery,a=i.getQueryObjectEXT(n.query,i.QUERY_RESULT_EXT)/1e6;i.deleteQueryEXT(n.query),e[r]=a}return e},yn.prototype.translatePosMatrix=function(e,r,n,i,a){if(!n[0]&amp;&amp;!n[1])return e;var o=a?&quot;map&quot;===i?this.transform.angle:0:&quot;viewport&quot;===i?-this.transform.angle:0;if(o){var s=Math.sin(o),l=Math.cos(o);n=[n[0]*l-n[1]*s,n[0]*s+n[1]*l]}var c=[a?n[0]:he(r,n[0],this.transform.zoom),a?n[1]:he(r,n[1],this.transform.zoom),0],u=new Float32Array(16);return t.translate(u,e,c),u},yn.prototype.saveTileTexture=function(t){var e=this._tileTextures[t.size[0]];e?e.push(t):this._tileTextures[t.size[0]]=[t]},yn.prototype.getTileTexture=function(t){var e=this._tileTextures[t];return e&amp;&amp;e.length&gt;0?e.pop():null},yn.prototype.isPatternMissing=function(t){if(!t)return!1;if(!t.from||!t.to)return!0;var e=this.imageManager.getPattern(t.from.toString()),r=this.imageManager.getPattern(t.to.toString());return!e||!r},yn.prototype.useProgram=function(t,e){this.cache=this.cache||{};var r=&quot;&quot;+t+(e?e.cacheKey:&quot;&quot;)+(this._showOverdrawInspector?&quot;/overdraw&quot;:&quot;&quot;);return this.cache[r]||(this.cache[r]=new br(this.context,yr[t],e,Xr[t],this._showOverdrawInspector)),this.cache[r]},yn.prototype.setCustomLayerDefaults=function(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()},yn.prototype.setBaseState=function(){var t=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(t.FUNC_ADD)},yn.prototype.initDebugOverlayCanvas=function(){null==this.debugOverlayCanvas&amp;&amp;(this.debugOverlayCanvas=t.window.document.createElement(&quot;canvas&quot;),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new t.Texture(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))},yn.prototype.destroy=function(){this.emptyTexture.destroy(),this.debugOverlayTexture&amp;&amp;this.debugOverlayTexture.destroy()};var xn=function(t,e){this.points=t,this.planes=e};xn.fromInvProjectionMatrix=function(e,r,n){var i=Math.pow(2,n),a=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map((function(r){return t.transformMat4([],r,e)})).map((function(e){return t.scale$1([],e,1/e[3]/r*i)})),o=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map((function(e){var r=t.sub([],a[e[0]],a[e[1]]),n=t.sub([],a[e[2]],a[e[1]]),i=t.normalize([],t.cross([],r,n)),o=-t.dot(i,a[e[1]]);return i.concat(o)}));return new xn(a,o)};var bn=function(e,r){this.min=e,this.max=r,this.center=t.scale$2([],t.add([],this.min,this.max),.5)};bn.prototype.quadrant=function(e){for(var r=[e%2==0,e&lt;2],n=t.clone$2(this.min),i=t.clone$2(this.max),a=0;a&lt;r.length;a++)n[a]=r[a]?this.min[a]:this.center[a],i[a]=r[a]?this.center[a]:this.max[a];return i[2]=this.max[2],new bn(n,i)},bn.prototype.distanceX=function(t){return Math.max(Math.min(this.max[0],t[0]),this.min[0])-t[0]},bn.prototype.distanceY=function(t){return Math.max(Math.min(this.max[1],t[1]),this.min[1])-t[1]},bn.prototype.intersects=function(e){for(var r=[[this.min[0],this.min[1],0,1],[this.max[0],this.min[1],0,1],[this.max[0],this.max[1],0,1],[this.min[0],this.max[1],0,1]],n=!0,i=0;i&lt;e.planes.length;i++){for(var a=e.planes[i],o=0,s=0;s&lt;r.length;s++)o+=t.dot$1(a,r[s])&gt;=0;if(0===o)return 0;o!==r.length&amp;&amp;(n=!1)}if(n)return 2;for(var l=0;l&lt;3;l++){for(var c=Number.MAX_VALUE,u=-Number.MAX_VALUE,f=0;f&lt;e.points.length;f++){var h=e.points[f][l]-this.min[l];c=Math.min(c,h),u=Math.max(u,h)}if(u&lt;0||c&gt;this.max[l]-this.min[l])return 0}return 1};var _n=function(t,e,r,n){if(void 0===t&amp;&amp;(t=0),void 0===e&amp;&amp;(e=0),void 0===r&amp;&amp;(r=0),void 0===n&amp;&amp;(n=0),isNaN(t)||t&lt;0||isNaN(e)||e&lt;0||isNaN(r)||r&lt;0||isNaN(n)||n&lt;0)throw new Error(&quot;Invalid value for edge-insets, top, bottom, left and right must all be numbers&quot;);this.top=t,this.bottom=e,this.left=r,this.right=n};_n.prototype.interpolate=function(e,r,n){return null!=r.top&amp;&amp;null!=e.top&amp;&amp;(this.top=t.number(e.top,r.top,n)),null!=r.bottom&amp;&amp;null!=e.bottom&amp;&amp;(this.bottom=t.number(e.bottom,r.bottom,n)),null!=r.left&amp;&amp;null!=e.left&amp;&amp;(this.left=t.number(e.left,r.left,n)),null!=r.right&amp;&amp;null!=e.right&amp;&amp;(this.right=t.number(e.right,r.right,n)),this},_n.prototype.getCenter=function(e,r){var n=t.clamp((this.left+e-this.right)/2,0,e),i=t.clamp((this.top+r-this.bottom)/2,0,r);return new t.Point(n,i)},_n.prototype.equals=function(t){return this.top===t.top&amp;&amp;this.bottom===t.bottom&amp;&amp;this.left===t.left&amp;&amp;this.right===t.right},_n.prototype.clone=function(){return new _n(this.top,this.bottom,this.left,this.right)},_n.prototype.toJSON=function(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}};var wn=function(e,r,n,i,a){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===a||a,this._minZoom=e||0,this._maxZoom=r||22,this._minPitch=null==n?0:n,this._maxPitch=null==i?60:i,this.setMaxBounds(),this.width=0,this.height=0,this._center=new t.LngLat(0,0),this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new _n,this._posMatrixCache={},this._alignedPosMatrixCache={}},Tn={minZoom:{configurable:!0},maxZoom:{configurable:!0},minPitch:{configurable:!0},maxPitch:{configurable:!0},renderWorldCopies:{configurable:!0},worldSize:{configurable:!0},centerOffset:{configurable:!0},size:{configurable:!0},bearing:{configurable:!0},pitch:{configurable:!0},fov:{configurable:!0},zoom:{configurable:!0},center:{configurable:!0},padding:{configurable:!0},centerPoint:{configurable:!0},unmodified:{configurable:!0},point:{configurable:!0}};wn.prototype.clone=function(){var t=new wn(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return t.tileSize=this.tileSize,t.latRange=this.latRange,t.width=this.width,t.height=this.height,t._center=this._center,t.zoom=this.zoom,t.angle=this.angle,t._fov=this._fov,t._pitch=this._pitch,t._unmodified=this._unmodified,t._edgeInsets=this._edgeInsets.clone(),t._calcMatrices(),t},Tn.minZoom.get=function(){return this._minZoom},Tn.minZoom.set=function(t){this._minZoom!==t&amp;&amp;(this._minZoom=t,this.zoom=Math.max(this.zoom,t))},Tn.maxZoom.get=function(){return this._maxZoom},Tn.maxZoom.set=function(t){this._maxZoom!==t&amp;&amp;(this._maxZoom=t,this.zoom=Math.min(this.zoom,t))},Tn.minPitch.get=function(){return this._minPitch},Tn.minPitch.set=function(t){this._minPitch!==t&amp;&amp;(this._minPitch=t,this.pitch=Math.max(this.pitch,t))},Tn.maxPitch.get=function(){return this._maxPitch},Tn.maxPitch.set=function(t){this._maxPitch!==t&amp;&amp;(this._maxPitch=t,this.pitch=Math.min(this.pitch,t))},Tn.renderWorldCopies.get=function(){return this._renderWorldCopies},Tn.renderWorldCopies.set=function(t){void 0===t?t=!0:null===t&amp;&amp;(t=!1),this._renderWorldCopies=t},Tn.worldSize.get=function(){return this.tileSize*this.scale},Tn.centerOffset.get=function(){return this.centerPoint._sub(this.size._div(2))},Tn.size.get=function(){return new t.Point(this.width,this.height)},Tn.bearing.get=function(){return-this.angle/Math.PI*180},Tn.bearing.set=function(e){var r=-t.wrap(e,-180,180)*Math.PI/180;this.angle!==r&amp;&amp;(this._unmodified=!1,this.angle=r,this._calcMatrices(),this.rotationMatrix=t.create$2(),t.rotate(this.rotationMatrix,this.rotationMatrix,this.angle))},Tn.pitch.get=function(){return this._pitch/Math.PI*180},Tn.pitch.set=function(e){var r=t.clamp(e,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==r&amp;&amp;(this._unmodified=!1,this._pitch=r,this._calcMatrices())},Tn.fov.get=function(){return this._fov/Math.PI*180},Tn.fov.set=function(t){t=Math.max(.01,Math.min(60,t)),this._fov!==t&amp;&amp;(this._unmodified=!1,this._fov=t/180*Math.PI,this._calcMatrices())},Tn.zoom.get=function(){return this._zoom},Tn.zoom.set=function(t){var e=Math.min(Math.max(t,this.minZoom),this.maxZoom);this._zoom!==e&amp;&amp;(this._unmodified=!1,this._zoom=e,this.scale=this.zoomScale(e),this.tileZoom=Math.floor(e),this.zoomFraction=e-this.tileZoom,this._constrain(),this._calcMatrices())},Tn.center.get=function(){return this._center},Tn.center.set=function(t){t.lat===this._center.lat&amp;&amp;t.lng===this._center.lng||(this._unmodified=!1,this._center=t,this._constrain(),this._calcMatrices())},Tn.padding.get=function(){return this._edgeInsets.toJSON()},Tn.padding.set=function(t){this._edgeInsets.equals(t)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,t,1),this._calcMatrices())},Tn.centerPoint.get=function(){return this._edgeInsets.getCenter(this.width,this.height)},wn.prototype.isPaddingEqual=function(t){return this._edgeInsets.equals(t)},wn.prototype.interpolatePadding=function(t,e,r){this._unmodified=!1,this._edgeInsets.interpolate(t,e,r),this._constrain(),this._calcMatrices()},wn.prototype.coveringZoomLevel=function(t){var e=(t.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/t.tileSize));return Math.max(0,e)},wn.prototype.getVisibleUnwrappedCoordinates=function(e){var r=[new t.UnwrappedTileID(0,e)];if(this._renderWorldCopies)for(var n=this.pointCoordinate(new t.Point(0,0)),i=this.pointCoordinate(new t.Point(this.width,0)),a=this.pointCoordinate(new t.Point(this.width,this.height)),o=this.pointCoordinate(new t.Point(0,this.height)),s=Math.floor(Math.min(n.x,i.x,a.x,o.x)),l=Math.floor(Math.max(n.x,i.x,a.x,o.x)),c=s-1;c&lt;=l+1;c++)0!==c&amp;&amp;r.push(new t.UnwrappedTileID(c,e));return r},wn.prototype.coveringTiles=function(e){var r=this.coveringZoomLevel(e),n=r;if(void 0!==e.minzoom&amp;&amp;r&lt;e.minzoom)return[];void 0!==e.maxzoom&amp;&amp;r&gt;e.maxzoom&amp;&amp;(r=e.maxzoom);var i=t.MercatorCoordinate.fromLngLat(this.center),a=Math.pow(2,r),o=[a*i.x,a*i.y,0],s=xn.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,r),l=e.minzoom||0;this.pitch&lt;=60&amp;&amp;this._edgeInsets.top&lt;.1&amp;&amp;(l=r);var c=function(t){return{aabb:new bn([t*a,0,0],[(t+1)*a,a,0]),zoom:0,x:0,y:0,wrap:t,fullyVisible:!1}},u=[],f=[],h=r,p=e.reparseOverscaled?n:r;if(this._renderWorldCopies)for(var d=1;d&lt;=3;d++)u.push(c(-d)),u.push(c(d));for(u.push(c(0));u.length&gt;0;){var g=u.pop(),m=g.x,v=g.y,y=g.fullyVisible;if(!y){var x=g.aabb.intersects(s);if(0===x)continue;y=2===x}var b=g.aabb.distanceX(o),_=g.aabb.distanceY(o),w=Math.max(Math.abs(b),Math.abs(_));if(g.zoom===h||w&gt;3+(1&lt;&lt;h-g.zoom)-2&amp;&amp;g.zoom&gt;=l)f.push({tileID:new t.OverscaledTileID(g.zoom===h?p:g.zoom,g.wrap,g.zoom,m,v),distanceSq:t.sqrLen([o[0]-.5-m,o[1]-.5-v])});else for(var T=0;T&lt;4;T++){var k=(m&lt;&lt;1)+T%2,M=(v&lt;&lt;1)+(T&gt;&gt;1);u.push({aabb:g.aabb.quadrant(T),zoom:g.zoom+1,x:k,y:M,wrap:g.wrap,fullyVisible:y})}}return f.sort((function(t,e){return t.distanceSq-e.distanceSq})).map((function(t){return t.tileID}))},wn.prototype.resize=function(t,e){this.width=t,this.height=e,this.pixelsToGLUnits=[2/t,-2/e],this._constrain(),this._calcMatrices()},Tn.unmodified.get=function(){return this._unmodified},wn.prototype.zoomScale=function(t){return Math.pow(2,t)},wn.prototype.scaleZoom=function(t){return Math.log(t)/Math.LN2},wn.prototype.project=function(e){var r=t.clamp(e.lat,-this.maxValidLatitude,this.maxValidLatitude);return new t.Point(t.mercatorXfromLng(e.lng)*this.worldSize,t.mercatorYfromLat(r)*this.worldSize)},wn.prototype.unproject=function(e){return new t.MercatorCoordinate(e.x/this.worldSize,e.y/this.worldSize).toLngLat()},Tn.point.get=function(){return this.project(this.center)},wn.prototype.setLocationAtPoint=function(e,r){var n=this.pointCoordinate(r),i=this.pointCoordinate(this.centerPoint),a=this.locationCoordinate(e),o=new t.MercatorCoordinate(a.x-(n.x-i.x),a.y-(n.y-i.y));this.center=this.coordinateLocation(o),this._renderWorldCopies&amp;&amp;(this.center=this.center.wrap())},wn.prototype.locationPoint=function(t){return this.coordinatePoint(this.locationCoordinate(t))},wn.prototype.pointLocation=function(t){return this.coordinateLocation(this.pointCoordinate(t))},wn.prototype.locationCoordinate=function(e){return t.MercatorCoordinate.fromLngLat(e)},wn.prototype.coordinateLocation=function(t){return t.toLngLat()},wn.prototype.pointCoordinate=function(e){var r=[e.x,e.y,0,1],n=[e.x,e.y,1,1];t.transformMat4(r,r,this.pixelMatrixInverse),t.transformMat4(n,n,this.pixelMatrixInverse);var i=r[3],a=n[3],o=r[1]/i,s=n[1]/a,l=r[2]/i,c=n[2]/a,u=l===c?0:(0-l)/(c-l);return new t.MercatorCoordinate(t.number(r[0]/i,n[0]/a,u)/this.worldSize,t.number(o,s,u)/this.worldSize)},wn.prototype.coordinatePoint=function(e){var r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix),new t.Point(r[0]/r[3],r[1]/r[3])},wn.prototype.getBounds=function(){return(new t.LngLatBounds).extend(this.pointLocation(new t.Point(0,0))).extend(this.pointLocation(new t.Point(this.width,0))).extend(this.pointLocation(new t.Point(this.width,this.height))).extend(this.pointLocation(new t.Point(0,this.height)))},wn.prototype.getMaxBounds=function(){return this.latRange&amp;&amp;2===this.latRange.length&amp;&amp;this.lngRange&amp;&amp;2===this.lngRange.length?new t.LngLatBounds([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null},wn.prototype.setMaxBounds=function(t){t?(this.lngRange=[t.getWest(),t.getEast()],this.latRange=[t.getSouth(),t.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])},wn.prototype.calculatePosMatrix=function(e,r){void 0===r&amp;&amp;(r=!1);var n=e.key,i=r?this._alignedPosMatrixCache:this._posMatrixCache;if(i[n])return i[n];var a=e.canonical,o=this.worldSize/this.zoomScale(a.z),s=a.x+Math.pow(2,a.z)*e.wrap,l=t.identity(new Float64Array(16));return t.translate(l,l,[s*o,a.y*o,0]),t.scale(l,l,[o/t.EXTENT,o/t.EXTENT,1]),t.multiply(l,r?this.alignedProjMatrix:this.projMatrix,l),i[n]=new Float32Array(l),i[n]},wn.prototype.customLayerMatrix=function(){return this.mercatorMatrix.slice()},wn.prototype._constrain=function(){if(this.center&amp;&amp;this.width&amp;&amp;this.height&amp;&amp;!this._constraining){this._constraining=!0;var e,r,n,i,a=-90,o=90,s=-180,l=180,c=this.size,u=this._unmodified;if(this.latRange){var f=this.latRange;a=t.mercatorYfromLat(f[1])*this.worldSize,e=(o=t.mercatorYfromLat(f[0])*this.worldSize)-a&lt;c.y?c.y/(o-a):0}if(this.lngRange){var h=this.lngRange;s=t.mercatorXfromLng(h[0])*this.worldSize,r=(l=t.mercatorXfromLng(h[1])*this.worldSize)-s&lt;c.x?c.x/(l-s):0}var p=this.point,d=Math.max(r||0,e||0);if(d)return this.center=this.unproject(new t.Point(r?(l+s)/2:p.x,e?(o+a)/2:p.y)),this.zoom+=this.scaleZoom(d),this._unmodified=u,void(this._constraining=!1);if(this.latRange){var g=p.y,m=c.y/2;g-m&lt;a&amp;&amp;(i=a+m),g+m&gt;o&amp;&amp;(i=o-m)}if(this.lngRange){var v=p.x,y=c.x/2;v-y&lt;s&amp;&amp;(n=s+y),v+y&gt;l&amp;&amp;(n=l-y)}void 0===n&amp;&amp;void 0===i||(this.center=this.unproject(new t.Point(void 0!==n?n:p.x,void 0!==i?i:p.y))),this._unmodified=u,this._constraining=!1}},wn.prototype._calcMatrices=function(){if(this.height){var e=this.centerOffset;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height;var r=Math.PI/2+this._pitch,n=this._fov*(.5+e.y/this.height),i=Math.sin(n)*this.cameraToCenterDistance/Math.sin(t.clamp(Math.PI-r-n,.01,Math.PI-.01)),a=this.point,o=a.x,s=a.y,l=1.01*(Math.cos(Math.PI/2-this._pitch)*i+this.cameraToCenterDistance),c=this.height/50,u=new Float64Array(16);t.perspective(u,this._fov,this.width/this.height,c,l),u[8]=2*-e.x/this.width,u[9]=2*e.y/this.height,t.scale(u,u,[1,-1,1]),t.translate(u,u,[0,0,-this.cameraToCenterDistance]),t.rotateX(u,u,this._pitch),t.rotateZ(u,u,this.angle),t.translate(u,u,[-o,-s,0]),this.mercatorMatrix=t.scale([],u,[this.worldSize,this.worldSize,this.worldSize]),t.scale(u,u,[1,1,t.mercatorZfromAltitude(1,this.center.lat)*this.worldSize,1]),this.projMatrix=u,this.invProjMatrix=t.invert([],this.projMatrix);var f=this.width%2/2,h=this.height%2/2,p=Math.cos(this.angle),d=Math.sin(this.angle),g=o-Math.round(o)+p*f+d*h,m=s-Math.round(s)+p*h+d*f,v=new Float64Array(u);if(t.translate(v,v,[g&gt;.5?g-1:g,m&gt;.5?m-1:m,0]),this.alignedProjMatrix=v,u=t.create(),t.scale(u,u,[this.width/2,-this.height/2,1]),t.translate(u,u,[1,-1,0]),this.labelPlaneMatrix=u,u=t.create(),t.scale(u,u,[1,-1,1]),t.translate(u,u,[-1,-1,0]),t.scale(u,u,[2/this.width,2/this.height,1]),this.glCoordMatrix=u,this.pixelMatrix=t.multiply(new Float64Array(16),this.labelPlaneMatrix,this.projMatrix),!(u=t.invert(new Float64Array(16),this.pixelMatrix)))throw new Error(&quot;failed to invert matrix&quot;);this.pixelMatrixInverse=u,this._posMatrixCache={},this._alignedPosMatrixCache={}}},wn.prototype.maxPitchScaleFactor=function(){if(!this.pixelMatrixInverse)return 1;var e=this.pointCoordinate(new t.Point(0,0)),r=[e.x*this.worldSize,e.y*this.worldSize,0,1];return t.transformMat4(r,r,this.pixelMatrix)[3]/this.cameraToCenterDistance},wn.prototype.getCameraPoint=function(){var e=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new t.Point(0,e))},wn.prototype.getCameraQueryGeometry=function(e){var r=this.getCameraPoint();if(1===e.length)return[e[0],r];for(var n=r.x,i=r.y,a=r.x,o=r.y,s=0,l=e;s&lt;l.length;s+=1){var c=l[s];n=Math.min(n,c.x),i=Math.min(i,c.y),a=Math.max(a,c.x),o=Math.max(o,c.y)}return[new t.Point(n,i),new t.Point(a,i),new t.Point(a,o),new t.Point(n,o),new t.Point(n,i)]},Object.defineProperties(wn.prototype,Tn);var kn=function(e){var r,n,i,a;this._hashName=e&amp;&amp;encodeURIComponent(e),t.bindAll([&quot;_getCurrentHash&quot;,&quot;_onHashChange&quot;,&quot;_updateHash&quot;],this),this._updateHash=(r=this._updateHashUnthrottled.bind(this),n=!1,i=null,a=function(){i=null,n&amp;&amp;(r(),i=setTimeout(a,300),n=!1)},function(){return n=!0,i||a(),i})};kn.prototype.addTo=function(e){return this._map=e,t.window.addEventListener(&quot;hashchange&quot;,this._onHashChange,!1),this._map.on(&quot;moveend&quot;,this._updateHash),this},kn.prototype.remove=function(){return t.window.removeEventListener(&quot;hashchange&quot;,this._onHashChange,!1),this._map.off(&quot;moveend&quot;,this._updateHash),clearTimeout(this._updateHash()),delete this._map,this},kn.prototype.getHashString=function(e){var r=this._map.getCenter(),n=Math.round(100*this._map.getZoom())/100,i=Math.ceil((n*Math.LN2+Math.log(512/360/.5))/Math.LN10),a=Math.pow(10,i),o=Math.round(r.lng*a)/a,s=Math.round(r.lat*a)/a,l=this._map.getBearing(),c=this._map.getPitch(),u=&quot;&quot;;if(u+=e?&quot;/&quot;+o+&quot;/&quot;+s+&quot;/&quot;+n:n+&quot;/&quot;+s+&quot;/&quot;+o,(l||c)&amp;&amp;(u+=&quot;/&quot;+Math.round(10*l)/10),c&amp;&amp;(u+=&quot;/&quot;+Math.round(c)),this._hashName){var f=this._hashName,h=!1,p=t.window.location.hash.slice(1).split(&quot;&amp;&quot;).map((function(t){var e=t.split(&quot;=&quot;)[0];return e===f?(h=!0,e+&quot;=&quot;+u):t})).filter((function(t){return t}));return h||p.push(f+&quot;=&quot;+u),&quot;#&quot;+p.join(&quot;&amp;&quot;)}return&quot;#&quot;+u},kn.prototype._getCurrentHash=function(){var e,r=this,n=t.window.location.hash.replace(&quot;#&quot;,&quot;&quot;);return this._hashName?(n.split(&quot;&amp;&quot;).map((function(t){return t.split(&quot;=&quot;)})).forEach((function(t){t[0]===r._hashName&amp;&amp;(e=t)})),(e&amp;&amp;e[1]||&quot;&quot;).split(&quot;/&quot;)):n.split(&quot;/&quot;)},kn.prototype._onHashChange=function(){var t=this._getCurrentHash();if(t.length&gt;=3&amp;&amp;!t.some((function(t){return isNaN(t)}))){var e=this._map.dragRotate.isEnabled()&amp;&amp;this._map.touchZoomRotate.isEnabled()?+(t[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+t[2],+t[1]],zoom:+t[0],bearing:e,pitch:+(t[4]||0)}),!0}return!1},kn.prototype._updateHashUnthrottled=function(){var e=this.getHashString();try{t.window.history.replaceState(t.window.history.state,&quot;&quot;,e)}catch(t){}};var Mn={linearity:.3,easing:t.bezier(0,0,.3,1)},An=t.extend({deceleration:2500,maxSpeed:1400},Mn),Sn=t.extend({deceleration:20,maxSpeed:1400},Mn),En=t.extend({deceleration:1e3,maxSpeed:360},Mn),Cn=t.extend({deceleration:1e3,maxSpeed:90},Mn),Ln=function(t){this._map=t,this.clear()};function In(t,e){(!t.duration||t.duration&lt;e.duration)&amp;&amp;(t.duration=e.duration,t.easing=e.easing)}function Pn(e,r,n){var i=n.maxSpeed,a=n.linearity,o=n.deceleration,s=t.clamp(e*a/(r/1e3),-i,i),l=Math.abs(s)/(o*a);return{easing:n.easing,duration:1e3*l,amount:s*(l/2)}}Ln.prototype.clear=function(){this._inertiaBuffer=[]},Ln.prototype.record=function(e){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:t.browser.now(),settings:e})},Ln.prototype._drainInertiaBuffer=function(){for(var e=this._inertiaBuffer,r=t.browser.now();e.length&gt;0&amp;&amp;r-e[0].time&gt;160;)e.shift()},Ln.prototype._onMoveEnd=function(e){if(this._drainInertiaBuffer(),!(this._inertiaBuffer.length&lt;2)){for(var r={zoom:0,bearing:0,pitch:0,pan:new t.Point(0,0),pinchAround:void 0,around:void 0},n=0,i=this._inertiaBuffer;n&lt;i.length;n+=1){var a=i[n].settings;r.zoom+=a.zoomDelta||0,r.bearing+=a.bearingDelta||0,r.pitch+=a.pitchDelta||0,a.panDelta&amp;&amp;r.pan._add(a.panDelta),a.around&amp;&amp;(r.around=a.around),a.pinchAround&amp;&amp;(r.pinchAround=a.pinchAround)}var o=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,s={};if(r.pan.mag()){var l=Pn(r.pan.mag(),o,t.extend({},An,e||{}));s.offset=r.pan.mult(l.amount/r.pan.mag()),s.center=this._map.transform.center,In(s,l)}if(r.zoom){var c=Pn(r.zoom,o,Sn);s.zoom=this._map.transform.zoom+c.amount,In(s,c)}if(r.bearing){var u=Pn(r.bearing,o,En);s.bearing=this._map.transform.bearing+t.clamp(u.amount,-179,179),In(s,u)}if(r.pitch){var f=Pn(r.pitch,o,Cn);s.pitch=this._map.transform.pitch+f.amount,In(s,f)}if(s.zoom||s.bearing){var h=void 0===r.pinchAround?r.around:r.pinchAround;s.around=h?this._map.unproject(h):this._map.getCenter()}return this.clear(),t.extend(s,{noMoveStart:!0})}};var zn=function(e){function n(n,i,a,o){void 0===o&amp;&amp;(o={});var s=r.mousePos(i.getCanvasContainer(),a),l=i.unproject(s);e.call(this,n,t.extend({point:s,lngLat:l,originalEvent:a},o)),this._defaultPrevented=!1,this.target=i}e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),On=function(e){function n(n,i,a){var o=&quot;touchend&quot;===n?a.changedTouches:a.touches,s=r.touchPos(i.getCanvasContainer(),o),l=s.map((function(t){return i.unproject(t)})),c=s.reduce((function(t,e,r,n){return t.add(e.div(n.length))}),new t.Point(0,0)),u=i.unproject(c);e.call(this,n,{points:s,point:c,lngLats:l,lngLat:u,originalEvent:a}),this._defaultPrevented=!1}e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n;var i={defaultPrevented:{configurable:!0}};return n.prototype.preventDefault=function(){this._defaultPrevented=!0},i.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(n.prototype,i),n}(t.Event),Dn=function(t){function e(e,r,n){t.call(this,e,{originalEvent:n}),this._defaultPrevented=!1}t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e;var r={defaultPrevented:{configurable:!0}};return e.prototype.preventDefault=function(){this._defaultPrevented=!0},r.defaultPrevented.get=function(){return this._defaultPrevented},Object.defineProperties(e.prototype,r),e}(t.Event),Rn=function(t,e){this._map=t,this._clickTolerance=e.clickTolerance};Rn.prototype.reset=function(){delete this._mousedownPos},Rn.prototype.wheel=function(t){return this._firePreventable(new Dn(t.type,this._map,t))},Rn.prototype.mousedown=function(t,e){return this._mousedownPos=e,this._firePreventable(new zn(t.type,this._map,t))},Rn.prototype.mouseup=function(t){this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.click=function(t,e){this._mousedownPos&amp;&amp;this._mousedownPos.dist(e)&gt;=this._clickTolerance||this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.dblclick=function(t){return this._firePreventable(new zn(t.type,this._map,t))},Rn.prototype.mouseover=function(t){this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.mouseout=function(t){this._map.fire(new zn(t.type,this._map,t))},Rn.prototype.touchstart=function(t){return this._firePreventable(new On(t.type,this._map,t))},Rn.prototype.touchmove=function(t){this._map.fire(new On(t.type,this._map,t))},Rn.prototype.touchend=function(t){this._map.fire(new On(t.type,this._map,t))},Rn.prototype.touchcancel=function(t){this._map.fire(new On(t.type,this._map,t))},Rn.prototype._firePreventable=function(t){if(this._map.fire(t),t.defaultPrevented)return{}},Rn.prototype.isEnabled=function(){return!0},Rn.prototype.isActive=function(){return!1},Rn.prototype.enable=function(){},Rn.prototype.disable=function(){};var Fn=function(t){this._map=t};Fn.prototype.reset=function(){this._delayContextMenu=!1,delete this._contextMenuEvent},Fn.prototype.mousemove=function(t){this._map.fire(new zn(t.type,this._map,t))},Fn.prototype.mousedown=function(){this._delayContextMenu=!0},Fn.prototype.mouseup=function(){this._delayContextMenu=!1,this._contextMenuEvent&amp;&amp;(this._map.fire(new zn(&quot;contextmenu&quot;,this._map,this._contextMenuEvent)),delete this._contextMenuEvent)},Fn.prototype.contextmenu=function(t){this._delayContextMenu?this._contextMenuEvent=t:this._map.fire(new zn(t.type,this._map,t)),this._map.listens(&quot;contextmenu&quot;)&amp;&amp;t.preventDefault()},Fn.prototype.isEnabled=function(){return!0},Fn.prototype.isActive=function(){return!1},Fn.prototype.enable=function(){},Fn.prototype.disable=function(){};var Bn=function(t,e){this._map=t,this._el=t.getCanvasContainer(),this._container=t.getContainer(),this._clickTolerance=e.clickTolerance||1};function Nn(t,e){for(var r={},n=0;n&lt;t.length;n++)r[t[n].identifier]=e[n];return r}Bn.prototype.isEnabled=function(){return!!this._enabled},Bn.prototype.isActive=function(){return!!this._active},Bn.prototype.enable=function(){this.isEnabled()||(this._enabled=!0)},Bn.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},Bn.prototype.mousedown=function(t,e){this.isEnabled()&amp;&amp;t.shiftKey&amp;&amp;0===t.button&amp;&amp;(r.disableDrag(),this._startPos=this._lastPos=e,this._active=!0)},Bn.prototype.mousemoveWindow=function(t,e){if(this._active){var n=e;if(!(this._lastPos.equals(n)||!this._box&amp;&amp;n.dist(this._startPos)&lt;this._clickTolerance)){var i=this._startPos;this._lastPos=n,this._box||(this._box=r.create(&quot;div&quot;,&quot;mapboxgl-boxzoom&quot;,this._container),this._container.classList.add(&quot;mapboxgl-crosshair&quot;),this._fireEvent(&quot;boxzoomstart&quot;,t));var a=Math.min(i.x,n.x),o=Math.max(i.x,n.x),s=Math.min(i.y,n.y),l=Math.max(i.y,n.y);r.setTransform(this._box,&quot;translate(&quot;+a+&quot;px,&quot;+s+&quot;px)&quot;),this._box.style.width=o-a+&quot;px&quot;,this._box.style.height=l-s+&quot;px&quot;}}},Bn.prototype.mouseupWindow=function(e,n){var i=this;if(this._active&amp;&amp;0===e.button){var a=this._startPos,o=n;if(this.reset(),r.suppressClick(),a.x!==o.x||a.y!==o.y)return this._map.fire(new t.Event(&quot;boxzoomend&quot;,{originalEvent:e})),{cameraAnimation:function(t){return t.fitScreenCoordinates(a,o,i._map.getBearing(),{linear:!0})}};this._fireEvent(&quot;boxzoomcancel&quot;,e)}},Bn.prototype.keydown=function(t){this._active&amp;&amp;27===t.keyCode&amp;&amp;(this.reset(),this._fireEvent(&quot;boxzoomcancel&quot;,t))},Bn.prototype.reset=function(){this._active=!1,this._container.classList.remove(&quot;mapboxgl-crosshair&quot;),this._box&amp;&amp;(r.remove(this._box),this._box=null),r.enableDrag(),delete this._startPos,delete this._lastPos},Bn.prototype._fireEvent=function(e,r){return this._map.fire(new t.Event(e,{originalEvent:r}))};var jn=function(t){this.reset(),this.numTouches=t.numTouches};jn.prototype.reset=function(){delete this.centroid,delete this.startTime,delete this.touches,this.aborted=!1},jn.prototype.touchstart=function(e,r,n){(this.centroid||n.length&gt;this.numTouches)&amp;&amp;(this.aborted=!0),this.aborted||(void 0===this.startTime&amp;&amp;(this.startTime=e.timeStamp),n.length===this.numTouches&amp;&amp;(this.centroid=function(e){for(var r=new t.Point(0,0),n=0,i=e;n&lt;i.length;n+=1)r._add(i[n]);return r.div(e.length)}(r),this.touches=Nn(n,r)))},jn.prototype.touchmove=function(t,e,r){if(!this.aborted&amp;&amp;this.centroid){var n=Nn(r,e);for(var i in this.touches){var a=n[i];(!a||a.dist(this.touches[i])&gt;30)&amp;&amp;(this.aborted=!0)}}},jn.prototype.touchend=function(t,e,r){if((!this.centroid||t.timeStamp-this.startTime&gt;500)&amp;&amp;(this.aborted=!0),0===r.length){var n=!this.aborted&amp;&amp;this.centroid;if(this.reset(),n)return n}};var Un=function(t){this.singleTap=new jn(t),this.numTaps=t.numTaps,this.reset()};Un.prototype.reset=function(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()},Un.prototype.touchstart=function(t,e,r){this.singleTap.touchstart(t,e,r)},Un.prototype.touchmove=function(t,e,r){this.singleTap.touchmove(t,e,r)},Un.prototype.touchend=function(t,e,r){var n=this.singleTap.touchend(t,e,r);if(n){var i=t.timeStamp-this.lastTime&lt;500,a=!this.lastTap||this.lastTap.dist(n)&lt;30;if(i&amp;&amp;a||this.reset(),this.count++,this.lastTime=t.timeStamp,this.lastTap=n,this.count===this.numTaps)return this.reset(),n}};var Vn=function(){this._zoomIn=new Un({numTouches:1,numTaps:2}),this._zoomOut=new Un({numTouches:2,numTaps:1}),this.reset()};Vn.prototype.reset=function(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()},Vn.prototype.touchstart=function(t,e,r){this._zoomIn.touchstart(t,e,r),this._zoomOut.touchstart(t,e,r)},Vn.prototype.touchmove=function(t,e,r){this._zoomIn.touchmove(t,e,r),this._zoomOut.touchmove(t,e,r)},Vn.prototype.touchend=function(t,e,r){var n=this,i=this._zoomIn.touchend(t,e,r),a=this._zoomOut.touchend(t,e,r);return i?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()+1,around:e.unproject(i)},{originalEvent:t})}}):a?(this._active=!0,t.preventDefault(),setTimeout((function(){return n.reset()}),0),{cameraAnimation:function(e){return e.easeTo({duration:300,zoom:e.getZoom()-1,around:e.unproject(a)},{originalEvent:t})}}):void 0},Vn.prototype.touchcancel=function(){this.reset()},Vn.prototype.enable=function(){this._enabled=!0},Vn.prototype.disable=function(){this._enabled=!1,this.reset()},Vn.prototype.isEnabled=function(){return this._enabled},Vn.prototype.isActive=function(){return this._active};var qn=function(t){this.reset(),this._clickTolerance=t.clickTolerance||1};qn.prototype.reset=function(){this._active=!1,this._moved=!1,delete this._lastPoint,delete this._eventButton},qn.prototype._correctButton=function(t,e){return!1},qn.prototype._move=function(t,e){return{}},qn.prototype.mousedown=function(t,e){if(!this._lastPoint){var n=r.mouseButton(t);this._correctButton(t,n)&amp;&amp;(this._lastPoint=e,this._eventButton=n)}},qn.prototype.mousemoveWindow=function(t,e){var r=this._lastPoint;if(r&amp;&amp;(t.preventDefault(),this._moved||!(e.dist(r)&lt;this._clickTolerance)))return this._moved=!0,this._lastPoint=e,this._move(r,e)},qn.prototype.mouseupWindow=function(t){r.mouseButton(t)===this._eventButton&amp;&amp;(this._moved&amp;&amp;r.suppressClick(),this.reset())},qn.prototype.enable=function(){this._enabled=!0},qn.prototype.disable=function(){this._enabled=!1,this.reset()},qn.prototype.isEnabled=function(){return this._enabled},qn.prototype.isActive=function(){return this._active};var Hn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.mousedown=function(e,r){t.prototype.mousedown.call(this,e,r),this._lastPoint&amp;&amp;(this._active=!0)},e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;!t.ctrlKey},e.prototype._move=function(t,e){return{around:e,panDelta:e.sub(t)}},e}(qn),Gn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=.8*(e.x-t.x);if(r)return this._active=!0,{bearingDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(qn),Yn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype._correctButton=function(t,e){return 0===e&amp;&amp;t.ctrlKey||2===e},e.prototype._move=function(t,e){var r=-.5*(e.y-t.y);if(r)return this._active=!0,{pitchDelta:r}},e.prototype.contextmenu=function(t){t.preventDefault()},e}(qn),Wn=function(t){this._minTouches=1,this._clickTolerance=t.clickTolerance||1,this.reset()};Wn.prototype.reset=function(){this._active=!1,this._touches={},this._sum=new t.Point(0,0)},Wn.prototype.touchstart=function(t,e,r){return this._calculateTransform(t,e,r)},Wn.prototype.touchmove=function(t,e,r){if(this._active)return t.preventDefault(),this._calculateTransform(t,e,r)},Wn.prototype.touchend=function(t,e,r){this._calculateTransform(t,e,r),this._active&amp;&amp;r.length&lt;this._minTouches&amp;&amp;this.reset()},Wn.prototype.touchcancel=function(){this.reset()},Wn.prototype._calculateTransform=function(e,r,n){n.length&gt;0&amp;&amp;(this._active=!0);var i=Nn(n,r),a=new t.Point(0,0),o=new t.Point(0,0),s=0;for(var l in i){var c=i[l],u=this._touches[l];u&amp;&amp;(a._add(c),o._add(c.sub(u)),s++,i[l]=c)}if(this._touches=i,!(s&lt;this._minTouches)&amp;&amp;o.mag()){var f=o.div(s);if(this._sum._add(f),!(this._sum.mag()&lt;this._clickTolerance))return{around:a.div(s),panDelta:f}}},Wn.prototype.enable=function(){this._enabled=!0},Wn.prototype.disable=function(){this._enabled=!1,this.reset()},Wn.prototype.isEnabled=function(){return this._enabled},Wn.prototype.isActive=function(){return this._active};var Xn=function(){this.reset()};function Zn(t,e,r){for(var n=0;n&lt;t.length;n++)if(t[n].identifier===r)return e[n]}function Jn(t,e){return Math.log(t/e)/Math.LN2}Xn.prototype.reset=function(){this._active=!1,delete this._firstTwoTouches},Xn.prototype._start=function(t){},Xn.prototype._move=function(t,e,r){return{}},Xn.prototype.touchstart=function(t,e,r){this._firstTwoTouches||r.length&lt;2||(this._firstTwoTouches=[r[0].identifier,r[1].identifier],this._start([e[0],e[1]]))},Xn.prototype.touchmove=function(t,e,r){if(this._firstTwoTouches){t.preventDefault();var n=this._firstTwoTouches,i=n[1],a=Zn(r,e,n[0]),o=Zn(r,e,i);if(a&amp;&amp;o){var s=this._aroundCenter?null:a.add(o).div(2);return this._move([a,o],s,t)}}},Xn.prototype.touchend=function(t,e,n){if(this._firstTwoTouches){var i=this._firstTwoTouches,a=i[1],o=Zn(n,e,i[0]),s=Zn(n,e,a);o&amp;&amp;s||(this._active&amp;&amp;r.suppressClick(),this.reset())}},Xn.prototype.touchcancel=function(){this.reset()},Xn.prototype.enable=function(t){this._enabled=!0,this._aroundCenter=!!t&amp;&amp;&quot;center&quot;===t.around},Xn.prototype.disable=function(){this._enabled=!1,this.reset()},Xn.prototype.isEnabled=function(){return this._enabled},Xn.prototype.isActive=function(){return this._active};var Kn=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._distance,delete this._startDistance},e.prototype._start=function(t){this._startDistance=this._distance=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._distance;if(this._distance=t[0].dist(t[1]),this._active||!(Math.abs(Jn(this._distance,this._startDistance))&lt;.1))return this._active=!0,{zoomDelta:Jn(this._distance,r),pinchAround:e}},e}(Xn);function Qn(t,e){return 180*t.angleWith(e)/Math.PI}var $n=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),delete this._minDiameter,delete this._startVector,delete this._vector},e.prototype._start=function(t){this._startVector=this._vector=t[0].sub(t[1]),this._minDiameter=t[0].dist(t[1])},e.prototype._move=function(t,e){var r=this._vector;if(this._vector=t[0].sub(t[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:Qn(this._vector,r),pinchAround:e}},e.prototype._isBelowThreshold=function(t){this._minDiameter=Math.min(this._minDiameter,t.mag());var e=25/(Math.PI*this._minDiameter)*360,r=Qn(t,this._startVector);return Math.abs(r)&lt;e},e}(Xn);function ti(t){return Math.abs(t.y)&gt;Math.abs(t.x)}var ei=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e.prototype.reset=function(){t.prototype.reset.call(this),this._valid=void 0,delete this._firstMove,delete this._lastPoints},e.prototype._start=function(t){this._lastPoints=t,ti(t[0].sub(t[1]))&amp;&amp;(this._valid=!1)},e.prototype._move=function(t,e,r){var n=t[0].sub(this._lastPoints[0]),i=t[1].sub(this._lastPoints[1]);if(this._valid=this.gestureBeginsVertically(n,i,r.timeStamp),this._valid)return this._lastPoints=t,this._active=!0,{pitchDelta:(n.y+i.y)/2*-.5}},e.prototype.gestureBeginsVertically=function(t,e,r){if(void 0!==this._valid)return this._valid;var n=t.mag()&gt;=2,i=e.mag()&gt;=2;if(n||i){if(!n||!i)return void 0===this._firstMove&amp;&amp;(this._firstMove=r),r-this._firstMove&lt;100&amp;&amp;void 0;var a=t.y&gt;0==e.y&gt;0;return ti(t)&amp;&amp;ti(e)&amp;&amp;a}},e}(Xn),ri={panStep:100,bearingStep:15,pitchStep:10},ni=function(){var t=ri;this._panStep=t.panStep,this._bearingStep=t.bearingStep,this._pitchStep=t.pitchStep};function ii(t){return t*(2-t)}ni.prototype.reset=function(){this._active=!1},ni.prototype.keydown=function(t){var e=this;if(!(t.altKey||t.ctrlKey||t.metaKey)){var r=0,n=0,i=0,a=0,o=0;switch(t.keyCode){case 61:case 107:case 171:case 187:r=1;break;case 189:case 109:case 173:r=-1;break;case 37:t.shiftKey?n=-1:(t.preventDefault(),a=-1);break;case 39:t.shiftKey?n=1:(t.preventDefault(),a=1);break;case 38:t.shiftKey?i=1:(t.preventDefault(),o=-1);break;case 40:t.shiftKey?i=-1:(t.preventDefault(),o=1);break;default:return}return{cameraAnimation:function(s){var l=s.getZoom();s.easeTo({duration:300,easeId:&quot;keyboardHandler&quot;,easing:ii,zoom:r?Math.round(l)+r*(t.shiftKey?2:1):l,bearing:s.getBearing()+n*e._bearingStep,pitch:s.getPitch()+i*e._pitchStep,offset:[-a*e._panStep,-o*e._panStep],center:s.getCenter()},{originalEvent:t})}}}},ni.prototype.enable=function(){this._enabled=!0},ni.prototype.disable=function(){this._enabled=!1,this.reset()},ni.prototype.isEnabled=function(){return this._enabled},ni.prototype.isActive=function(){return this._active};var ai=function(e,r){this._map=e,this._el=e.getCanvasContainer(),this._handler=r,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=1/450,t.bindAll([&quot;_onWheel&quot;,&quot;_onTimeout&quot;,&quot;_onScrollFrame&quot;,&quot;_onScrollFinished&quot;],this)};ai.prototype.setZoomRate=function(t){this._defaultZoomRate=t},ai.prototype.setWheelZoomRate=function(t){this._wheelZoomRate=t},ai.prototype.isEnabled=function(){return!!this._enabled},ai.prototype.isActive=function(){return!!this._active||void 0!==this._finishTimeout},ai.prototype.isZooming=function(){return!!this._zooming},ai.prototype.enable=function(t){this.isEnabled()||(this._enabled=!0,this._aroundCenter=t&amp;&amp;&quot;center&quot;===t.around)},ai.prototype.disable=function(){this.isEnabled()&amp;&amp;(this._enabled=!1)},ai.prototype.wheel=function(e){if(this.isEnabled()){var r=e.deltaMode===t.window.WheelEvent.DOM_DELTA_LINE?40*e.deltaY:e.deltaY,n=t.browser.now(),i=n-(this._lastWheelEventTime||0);this._lastWheelEventTime=n,0!==r&amp;&amp;r%4.000244140625==0?this._type=&quot;wheel&quot;:0!==r&amp;&amp;Math.abs(r)&lt;4?this._type=&quot;trackpad&quot;:i&gt;400?(this._type=null,this._lastValue=r,this._timeout=setTimeout(this._onTimeout,40,e)):this._type||(this._type=Math.abs(i*r)&lt;200?&quot;trackpad&quot;:&quot;wheel&quot;,this._timeout&amp;&amp;(clearTimeout(this._timeout),this._timeout=null,r+=this._lastValue)),e.shiftKey&amp;&amp;r&amp;&amp;(r/=4),this._type&amp;&amp;(this._lastWheelEvent=e,this._delta-=r,this._active||this._start(e)),e.preventDefault()}},ai.prototype._onTimeout=function(t){this._type=&quot;wheel&quot;,this._delta-=this._lastValue,this._active||this._start(t)},ai.prototype._start=function(e){if(this._delta){this._frameId&amp;&amp;(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&amp;&amp;(clearTimeout(this._finishTimeout),delete this._finishTimeout);var n=r.mousePos(this._el,e);this._around=t.LngLat.convert(this._aroundCenter?this._map.getCenter():this._map.unproject(n)),this._aroundPoint=this._map.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._handler._triggerRenderFrame())}},ai.prototype.renderFrame=function(){return this._onScrollFrame()},ai.prototype._onScrollFrame=function(){var e=this;if(this._frameId&amp;&amp;(this._frameId=null,this.isActive())){var r=this._map.transform;if(0!==this._delta){var n=&quot;wheel&quot;===this._type&amp;&amp;Math.abs(this._delta)&gt;4.000244140625?this._wheelZoomRate:this._defaultZoomRate,i=2/(1+Math.exp(-Math.abs(this._delta*n)));this._delta&lt;0&amp;&amp;0!==i&amp;&amp;(i=1/i);var a=&quot;number&quot;==typeof this._targetZoom?r.zoomScale(this._targetZoom):r.scale;this._targetZoom=Math.min(r.maxZoom,Math.max(r.minZoom,r.scaleZoom(a*i))),&quot;wheel&quot;===this._type&amp;&amp;(this._startZoom=r.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}var o,s=&quot;number&quot;==typeof this._targetZoom?this._targetZoom:r.zoom,l=this._startZoom,c=this._easing,u=!1;if(&quot;wheel&quot;===this._type&amp;&amp;l&amp;&amp;c){var f=Math.min((t.browser.now()-this._lastWheelEventTime)/200,1),h=c(f);o=t.number(l,s,h),f&lt;1?this._frameId||(this._frameId=!0):u=!0}else o=s,u=!0;return this._active=!0,u&amp;&amp;(this._active=!1,this._finishTimeout=setTimeout((function(){e._zooming=!1,e._handler._triggerRenderFrame(),delete e._targetZoom,delete e._finishTimeout}),200)),{noInertia:!0,needsRenderFrame:!u,zoomDelta:o-r.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}},ai.prototype._smoothOutEasing=function(e){var r=t.ease;if(this._prevEase){var n=this._prevEase,i=(t.browser.now()-n.start)/n.duration,a=n.easing(i+.01)-n.easing(i),o=.27/Math.sqrt(a*a+1e-4)*.01,s=Math.sqrt(.0729-o*o);r=t.bezier(o,s,.25,1)}return this._prevEase={start:t.browser.now(),duration:e,easing:r},r},ai.prototype.reset=function(){this._active=!1};var oi=function(t,e){this._clickZoom=t,this._tapZoom=e};oi.prototype.enable=function(){this._clickZoom.enable(),this._tapZoom.enable()},oi.prototype.disable=function(){this._clickZoom.disable(),this._tapZoom.disable()},oi.prototype.isEnabled=function(){return this._clickZoom.isEnabled()&amp;&amp;this._tapZoom.isEnabled()},oi.prototype.isActive=function(){return this._clickZoom.isActive()||this._tapZoom.isActive()};var si=function(){this.reset()};si.prototype.reset=function(){this._active=!1},si.prototype.dblclick=function(t,e){return t.preventDefault(),{cameraAnimation:function(r){r.easeTo({duration:300,zoom:r.getZoom()+(t.shiftKey?-1:1),around:r.unproject(e)},{originalEvent:t})}}},si.prototype.enable=function(){this._enabled=!0},si.prototype.disable=function(){this._enabled=!1,this.reset()},si.prototype.isEnabled=function(){return this._enabled},si.prototype.isActive=function(){return this._active};var li=function(){this._tap=new Un({numTouches:1,numTaps:1}),this.reset()};li.prototype.reset=function(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,this._tap.reset()},li.prototype.touchstart=function(t,e,r){this._swipePoint||(this._tapTime&amp;&amp;t.timeStamp-this._tapTime&gt;500&amp;&amp;this.reset(),this._tapTime?r.length&gt;0&amp;&amp;(this._swipePoint=e[0],this._swipeTouch=r[0].identifier):this._tap.touchstart(t,e,r))},li.prototype.touchmove=function(t,e,r){if(this._tapTime){if(this._swipePoint){if(r[0].identifier!==this._swipeTouch)return;var n=e[0],i=n.y-this._swipePoint.y;return this._swipePoint=n,t.preventDefault(),this._active=!0,{zoomDelta:i/128}}}else this._tap.touchmove(t,e,r)},li.prototype.touchend=function(t,e,r){this._tapTime?this._swipePoint&amp;&amp;0===r.length&amp;&amp;this.reset():this._tap.touchend(t,e,r)&amp;&amp;(this._tapTime=t.timeStamp)},li.prototype.touchcancel=function(){this.reset()},li.prototype.enable=function(){this._enabled=!0},li.prototype.disable=function(){this._enabled=!1,this.reset()},li.prototype.isEnabled=function(){return this._enabled},li.prototype.isActive=function(){return this._active};var ci=function(t,e,r){this._el=t,this._mousePan=e,this._touchPan=r};ci.prototype.enable=function(t){this._inertiaOptions=t||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add(&quot;mapboxgl-touch-drag-pan&quot;)},ci.prototype.disable=function(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove(&quot;mapboxgl-touch-drag-pan&quot;)},ci.prototype.isEnabled=function(){return this._mousePan.isEnabled()&amp;&amp;this._touchPan.isEnabled()},ci.prototype.isActive=function(){return this._mousePan.isActive()||this._touchPan.isActive()};var ui=function(t,e,r){this._pitchWithRotate=t.pitchWithRotate,this._mouseRotate=e,this._mousePitch=r};ui.prototype.enable=function(){this._mouseRotate.enable(),this._pitchWithRotate&amp;&amp;this._mousePitch.enable()},ui.prototype.disable=function(){this._mouseRotate.disable(),this._mousePitch.disable()},ui.prototype.isEnabled=function(){return this._mouseRotate.isEnabled()&amp;&amp;(!this._pitchWithRotate||this._mousePitch.isEnabled())},ui.prototype.isActive=function(){return this._mouseRotate.isActive()||this._mousePitch.isActive()};var fi=function(t,e,r,n){this._el=t,this._touchZoom=e,this._touchRotate=r,this._tapDragZoom=n,this._rotationDisabled=!1,this._enabled=!0};fi.prototype.enable=function(t){this._touchZoom.enable(t),this._rotationDisabled||this._touchRotate.enable(t),this._tapDragZoom.enable(),this._el.classList.add(&quot;mapboxgl-touch-zoom-rotate&quot;)},fi.prototype.disable=function(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove(&quot;mapboxgl-touch-zoom-rotate&quot;)},fi.prototype.isEnabled=function(){return this._touchZoom.isEnabled()&amp;&amp;(this._rotationDisabled||this._touchRotate.isEnabled())&amp;&amp;this._tapDragZoom.isEnabled()},fi.prototype.isActive=function(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()},fi.prototype.disableRotation=function(){this._rotationDisabled=!0,this._touchRotate.disable()},fi.prototype.enableRotation=function(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&amp;&amp;this._touchRotate.enable()};var hi=function(t){return t.zoom||t.drag||t.pitch||t.rotate},pi=function(t){function e(){t.apply(this,arguments)}return t&amp;&amp;(e.__proto__=t),(e.prototype=Object.create(t&amp;&amp;t.prototype)).constructor=e,e}(t.Event);function di(t){return t.panDelta&amp;&amp;t.panDelta.mag()||t.zoomDelta||t.bearingDelta||t.pitchDelta}var gi=function(e,n){this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new Ln(e),this._bearingSnap=n.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(n),t.bindAll([&quot;handleEvent&quot;,&quot;handleWindowEvent&quot;],this);var i=this._el;this._listeners=[[i,&quot;touchstart&quot;,{passive:!1}],[i,&quot;touchmove&quot;,{passive:!1}],[i,&quot;touchend&quot;,void 0],[i,&quot;touchcancel&quot;,void 0],[i,&quot;mousedown&quot;,void 0],[i,&quot;mousemove&quot;,void 0],[i,&quot;mouseup&quot;,void 0],[t.window.document,&quot;mousemove&quot;,{capture:!0}],[t.window.document,&quot;mouseup&quot;,void 0],[i,&quot;mouseover&quot;,void 0],[i,&quot;mouseout&quot;,void 0],[i,&quot;dblclick&quot;,void 0],[i,&quot;click&quot;,void 0],[i,&quot;keydown&quot;,{capture:!1}],[i,&quot;keyup&quot;,void 0],[i,&quot;wheel&quot;,{passive:!1}],[i,&quot;contextmenu&quot;,void 0],[t.window,&quot;blur&quot;,void 0]];for(var a=0,o=this._listeners;a&lt;o.length;a+=1){var s=o[a],l=s[0];r.addEventListener(l,s[1],l===t.window.document?this.handleWindowEvent:this.handleEvent,s[2])}};gi.prototype.destroy=function(){for(var e=0,n=this._listeners;e&lt;n.length;e+=1){var i=n[e],a=i[0];r.removeEventListener(a,i[1],a===t.window.document?this.handleWindowEvent:this.handleEvent,i[2])}},gi.prototype._addDefaultHandlers=function(t){var e=this._map,r=e.getCanvasContainer();this._add(&quot;mapEvent&quot;,new Rn(e,t));var n=e.boxZoom=new Bn(e,t);this._add(&quot;boxZoom&quot;,n);var i=new Vn,a=new si;e.doubleClickZoom=new oi(a,i),this._add(&quot;tapZoom&quot;,i),this._add(&quot;clickZoom&quot;,a);var o=new li;this._add(&quot;tapDragZoom&quot;,o);var s=e.touchPitch=new ei;this._add(&quot;touchPitch&quot;,s);var l=new Gn(t),c=new Yn(t);e.dragRotate=new ui(t,l,c),this._add(&quot;mouseRotate&quot;,l,[&quot;mousePitch&quot;]),this._add(&quot;mousePitch&quot;,c,[&quot;mouseRotate&quot;]);var u=new Hn(t),f=new Wn(t);e.dragPan=new ci(r,u,f),this._add(&quot;mousePan&quot;,u),this._add(&quot;touchPan&quot;,f,[&quot;touchZoom&quot;,&quot;touchRotate&quot;]);var h=new $n,p=new Kn;e.touchZoomRotate=new fi(r,p,h,o),this._add(&quot;touchRotate&quot;,h,[&quot;touchPan&quot;,&quot;touchZoom&quot;]),this._add(&quot;touchZoom&quot;,p,[&quot;touchPan&quot;,&quot;touchRotate&quot;]);var d=e.scrollZoom=new ai(e,this);this._add(&quot;scrollZoom&quot;,d,[&quot;mousePan&quot;]);var g=e.keyboard=new ni;this._add(&quot;keyboard&quot;,g),this._add(&quot;blockableMapEvent&quot;,new Fn(e));for(var m=0,v=[&quot;boxZoom&quot;,&quot;doubleClickZoom&quot;,&quot;tapDragZoom&quot;,&quot;touchPitch&quot;,&quot;dragRotate&quot;,&quot;dragPan&quot;,&quot;touchZoomRotate&quot;,&quot;scrollZoom&quot;,&quot;keyboard&quot;];m&lt;v.length;m+=1){var y=v[m];t.interactive&amp;&amp;t[y]&amp;&amp;e[y].enable(t[y])}},gi.prototype._add=function(t,e,r){this._handlers.push({handlerName:t,handler:e,allowed:r}),this._handlersById[t]=e},gi.prototype.stop=function(){if(!this._updatingCamera){for(var t=0,e=this._handlers;t&lt;e.length;t+=1)e[t].handler.reset();this._inertia.clear(),this._fireEvents({},{}),this._changes=[]}},gi.prototype.isActive=function(){for(var t=0,e=this._handlers;t&lt;e.length;t+=1)if(e[t].handler.isActive())return!0;return!1},gi.prototype.isZooming=function(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()},gi.prototype.isRotating=function(){return!!this._eventsInProgress.rotate},gi.prototype.isMoving=function(){return Boolean(hi(this._eventsInProgress))||this.isZooming()},gi.prototype._blockedByActive=function(t,e,r){for(var n in t)if(n!==r&amp;&amp;(!e||e.indexOf(n)&lt;0))return!0;return!1},gi.prototype.handleWindowEvent=function(t){this.handleEvent(t,t.type+&quot;Window&quot;)},gi.prototype._getMapTouches=function(t){for(var e=[],r=0,n=t;r&lt;n.length;r+=1){var i=n[r];this._el.contains(i.target)&amp;&amp;e.push(i)}return e},gi.prototype.handleEvent=function(t,e){if(&quot;blur&quot;!==t.type){this._updatingCamera=!0;for(var n=&quot;renderFrame&quot;===t.type?void 0:t,i={needsRenderFrame:!1},a={},o={},s=t.touches?this._getMapTouches(t.touches):void 0,l=s?r.touchPos(this._el,s):r.mousePos(this._el,t),c=0,u=this._handlers;c&lt;u.length;c+=1){var f=u[c],h=f.handlerName,p=f.handler,d=f.allowed;if(p.isEnabled()){var g=void 0;this._blockedByActive(o,d,h)?p.reset():p[e||t.type]&amp;&amp;(g=p[e||t.type](t,l,s),this.mergeHandlerResult(i,a,g,h,n),g&amp;&amp;g.needsRenderFrame&amp;&amp;this._triggerRenderFrame()),(g||p.isActive())&amp;&amp;(o[h]=p)}}var m={};for(var v in this._previousActiveHandlers)o[v]||(m[v]=n);this._previousActiveHandlers=o,(Object.keys(m).length||di(i))&amp;&amp;(this._changes.push([i,a,m]),this._triggerRenderFrame()),(Object.keys(o).length||di(i))&amp;&amp;this._map._stop(!0),this._updatingCamera=!1;var y=i.cameraAnimation;y&amp;&amp;(this._inertia.clear(),this._fireEvents({},{}),this._changes=[],y(this._map))}else this.stop()},gi.prototype.mergeHandlerResult=function(e,r,n,i,a){if(n){t.extend(e,n);var o={handlerName:i,originalEvent:n.originalEvent||a};void 0!==n.zoomDelta&amp;&amp;(r.zoom=o),void 0!==n.panDelta&amp;&amp;(r.drag=o),void 0!==n.pitchDelta&amp;&amp;(r.pitch=o),void 0!==n.bearingDelta&amp;&amp;(r.rotate=o)}},gi.prototype._applyChanges=function(){for(var e={},r={},n={},i=0,a=this._changes;i&lt;a.length;i+=1){var o=a[i],s=o[0],l=o[1],c=o[2];s.panDelta&amp;&amp;(e.panDelta=(e.panDelta||new t.Point(0,0))._add(s.panDelta)),s.zoomDelta&amp;&amp;(e.zoomDelta=(e.zoomDelta||0)+s.zoomDelta),s.bearingDelta&amp;&amp;(e.bearingDelta=(e.bearingDelta||0)+s.bearingDelta),s.pitchDelta&amp;&amp;(e.pitchDelta=(e.pitchDelta||0)+s.pitchDelta),void 0!==s.around&amp;&amp;(e.around=s.around),void 0!==s.pinchAround&amp;&amp;(e.pinchAround=s.pinchAround),s.noInertia&amp;&amp;(e.noInertia=s.noInertia),t.extend(r,l),t.extend(n,c)}this._updateMapTransform(e,r,n),this._changes=[]},gi.prototype._updateMapTransform=function(t,e,r){var n=this._map,i=n.transform;if(!di(t))return this._fireEvents(e,r);var a=t.panDelta,o=t.zoomDelta,s=t.bearingDelta,l=t.pitchDelta,c=t.around,u=t.pinchAround;void 0!==u&amp;&amp;(c=u),n._stop(!0),c=c||n.transform.centerPoint;var f=i.pointLocation(a?c.sub(a):c);s&amp;&amp;(i.bearing+=s),l&amp;&amp;(i.pitch+=l),o&amp;&amp;(i.zoom+=o),i.setLocationAtPoint(f,c),this._map._update(),t.noInertia||this._inertia.record(t),this._fireEvents(e,r)},gi.prototype._fireEvents=function(e,r){var n=this,i=hi(this._eventsInProgress),a=hi(e),o={};for(var s in e)this._eventsInProgress[s]||(o[s+&quot;start&quot;]=e[s].originalEvent),this._eventsInProgress[s]=e[s];for(var l in!i&amp;&amp;a&amp;&amp;this._fireEvent(&quot;movestart&quot;,a.originalEvent),o)this._fireEvent(l,o[l]);for(var c in e.rotate&amp;&amp;(this._bearingChanged=!0),a&amp;&amp;this._fireEvent(&quot;move&quot;,a.originalEvent),e)this._fireEvent(c,e[c].originalEvent);var u,f={};for(var h in this._eventsInProgress){var p=this._eventsInProgress[h],d=p.handlerName,g=p.originalEvent;this._handlersById[d].isActive()||(delete this._eventsInProgress[h],f[h+&quot;end&quot;]=u=r[d]||g)}for(var m in f)this._fireEvent(m,f[m]);var v=hi(this._eventsInProgress);if((i||a)&amp;&amp;!v){this._updatingCamera=!0;var y=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),x=function(t){return 0!==t&amp;&amp;-n._bearingSnap&lt;t&amp;&amp;t&lt;n._bearingSnap};y?(x(y.bearing||this._map.getBearing())&amp;&amp;(y.bearing=0),this._map.easeTo(y,{originalEvent:u})):(this._map.fire(new t.Event(&quot;moveend&quot;,{originalEvent:u})),x(this._map.getBearing())&amp;&amp;this._map.resetNorth()),this._bearingChanged=!1,this._updatingCamera=!1}},gi.prototype._fireEvent=function(e,r){this._map.fire(new t.Event(e,r?{originalEvent:r}:{}))},gi.prototype._triggerRenderFrame=function(){var t=this;void 0===this._frameId&amp;&amp;(this._frameId=this._map._requestRenderFrame((function(e){delete t._frameId,t.handleEvent(new pi(&quot;renderFrame&quot;,{timeStamp:e})),t._applyChanges()})))};var mi=function(e){function r(r,n){e.call(this),this._moving=!1,this._zooming=!1,this.transform=r,this._bearingSnap=n.bearingSnap,t.bindAll([&quot;_renderFrameCallback&quot;],this)}return e&amp;&amp;(r.__proto__=e),(r.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=r,r.prototype.getCenter=function(){return new t.LngLat(this.transform.center.lng,this.transform.center.lat)},r.prototype.setCenter=function(t,e){return this.jumpTo({center:t},e)},r.prototype.panBy=function(e,r,n){return e=t.Point.convert(e).mult(-1),this.panTo(this.transform.center,t.extend({offset:e},r),n)},r.prototype.panTo=function(e,r,n){return this.easeTo(t.extend({center:e},r),n)},r.prototype.getZoom=function(){return this.transform.zoom},r.prototype.setZoom=function(t,e){return this.jumpTo({zoom:t},e),this},r.prototype.zoomTo=function(e,r,n){return this.easeTo(t.extend({zoom:e},r),n)},r.prototype.zoomIn=function(t,e){return this.zoomTo(this.getZoom()+1,t,e),this},r.prototype.zoomOut=function(t,e){return this.zoomTo(this.getZoom()-1,t,e),this},r.prototype.getBearing=function(){return this.transform.bearing},r.prototype.setBearing=function(t,e){return this.jumpTo({bearing:t},e),this},r.prototype.getPadding=function(){return this.transform.padding},r.prototype.setPadding=function(t,e){return this.jumpTo({padding:t},e),this},r.prototype.rotateTo=function(e,r,n){return this.easeTo(t.extend({bearing:e},r),n)},r.prototype.resetNorth=function(e,r){return this.rotateTo(0,t.extend({duration:1e3},e),r),this},r.prototype.resetNorthPitch=function(e,r){return this.easeTo(t.extend({bearing:0,pitch:0,duration:1e3},e),r),this},r.prototype.snapToNorth=function(t,e){return Math.abs(this.getBearing())&lt;this._bearingSnap?this.resetNorth(t,e):this},r.prototype.getPitch=function(){return this.transform.pitch},r.prototype.setPitch=function(t,e){return this.jumpTo({pitch:t},e),this},r.prototype.cameraForBounds=function(e,r){return e=t.LngLatBounds.convert(e),this._cameraForBoxAndBearing(e.getNorthWest(),e.getSouthEast(),0,r)},r.prototype._cameraForBoxAndBearing=function(e,r,n,i){var a={top:0,bottom:0,right:0,left:0};if(&quot;number&quot;==typeof(i=t.extend({padding:a,offset:[0,0],maxZoom:this.transform.maxZoom},i)).padding){var o=i.padding;i.padding={top:o,bottom:o,right:o,left:o}}i.padding=t.extend(a,i.padding);var s=this.transform,l=s.padding,c=s.project(t.LngLat.convert(e)),u=s.project(t.LngLat.convert(r)),f=c.rotate(-n*Math.PI/180),h=u.rotate(-n*Math.PI/180),p=new t.Point(Math.max(f.x,h.x),Math.max(f.y,h.y)),d=new t.Point(Math.min(f.x,h.x),Math.min(f.y,h.y)),g=p.sub(d),m=(s.width-(l.left+l.right+i.padding.left+i.padding.right))/g.x,v=(s.height-(l.top+l.bottom+i.padding.top+i.padding.bottom))/g.y;if(!(v&lt;0||m&lt;0)){var y=Math.min(s.scaleZoom(s.scale*Math.min(m,v)),i.maxZoom),x=t.Point.convert(i.offset),b=new t.Point(x.x+(i.padding.left-i.padding.right)/2,x.y+(i.padding.top-i.padding.bottom)/2).mult(s.scale/s.zoomScale(y));return{center:s.unproject(c.add(u).div(2).sub(b)),zoom:y,bearing:n}}t.warnOnce(&quot;Map cannot fit within canvas with the given bounds, padding, and/or offset.&quot;)},r.prototype.fitBounds=function(t,e,r){return this._fitInternal(this.cameraForBounds(t,e),e,r)},r.prototype.fitScreenCoordinates=function(e,r,n,i,a){return this._fitInternal(this._cameraForBoxAndBearing(this.transform.pointLocation(t.Point.convert(e)),this.transform.pointLocation(t.Point.convert(r)),n,i),i,a)},r.prototype._fitInternal=function(e,r,n){return e?(delete(r=t.extend(e,r)).padding,r.linear?this.easeTo(r,n):this.flyTo(r,n)):this},r.prototype.jumpTo=function(e,r){this.stop();var n=this.transform,i=!1,a=!1,o=!1;return&quot;zoom&quot;in e&amp;&amp;n.zoom!==+e.zoom&amp;&amp;(i=!0,n.zoom=+e.zoom),void 0!==e.center&amp;&amp;(n.center=t.LngLat.convert(e.center)),&quot;bearing&quot;in e&amp;&amp;n.bearing!==+e.bearing&amp;&amp;(a=!0,n.bearing=+e.bearing),&quot;pitch&quot;in e&amp;&amp;n.pitch!==+e.pitch&amp;&amp;(o=!0,n.pitch=+e.pitch),null==e.padding||n.isPaddingEqual(e.padding)||(n.padding=e.padding),this.fire(new t.Event(&quot;movestart&quot;,r)).fire(new t.Event(&quot;move&quot;,r)),i&amp;&amp;this.fire(new t.Event(&quot;zoomstart&quot;,r)).fire(new t.Event(&quot;zoom&quot;,r)).fire(new t.Event(&quot;zoomend&quot;,r)),a&amp;&amp;this.fire(new t.Event(&quot;rotatestart&quot;,r)).fire(new t.Event(&quot;rotate&quot;,r)).fire(new t.Event(&quot;rotateend&quot;,r)),o&amp;&amp;this.fire(new t.Event(&quot;pitchstart&quot;,r)).fire(new t.Event(&quot;pitch&quot;,r)).fire(new t.Event(&quot;pitchend&quot;,r)),this.fire(new t.Event(&quot;moveend&quot;,r))},r.prototype.easeTo=function(e,r){var n=this;this._stop(!1,e.easeId),(!1===(e=t.extend({offset:[0,0],duration:500,easing:t.ease},e)).animate||!e.essential&amp;&amp;t.browser.prefersReducedMotion)&amp;&amp;(e.duration=0);var i=this.transform,a=this.getZoom(),o=this.getBearing(),s=this.getPitch(),l=this.getPadding(),c=&quot;zoom&quot;in e?+e.zoom:a,u=&quot;bearing&quot;in e?this._normalizeBearing(e.bearing,o):o,f=&quot;pitch&quot;in e?+e.pitch:s,h=&quot;padding&quot;in e?e.padding:i.padding,p=t.Point.convert(e.offset),d=i.centerPoint.add(p),g=i.pointLocation(d),m=t.LngLat.convert(e.center||g);this._normalizeCenter(m);var v,y,x=i.project(g),b=i.project(m).sub(x),_=i.zoomScale(c-a);e.around&amp;&amp;(v=t.LngLat.convert(e.around),y=i.locationPoint(v));var w={moving:this._moving,zooming:this._zooming,rotating:this._rotating,pitching:this._pitching};return this._zooming=this._zooming||c!==a,this._rotating=this._rotating||o!==u,this._pitching=this._pitching||f!==s,this._padding=!i.isPaddingEqual(h),this._easeId=e.easeId,this._prepareEase(r,e.noMoveStart,w),clearTimeout(this._easeEndTimeoutID),this._ease((function(e){if(n._zooming&amp;&amp;(i.zoom=t.number(a,c,e)),n._rotating&amp;&amp;(i.bearing=t.number(o,u,e)),n._pitching&amp;&amp;(i.pitch=t.number(s,f,e)),n._padding&amp;&amp;(i.interpolatePadding(l,h,e),d=i.centerPoint.add(p)),v)i.setLocationAtPoint(v,y);else{var g=i.zoomScale(i.zoom-a),m=c&gt;a?Math.min(2,_):Math.max(.5,_),w=Math.pow(m,1-e),T=i.unproject(x.add(b.mult(e*w)).mult(g));i.setLocationAtPoint(i.renderWorldCopies?T.wrap():T,d)}n._fireMoveEvents(r)}),(function(t){n._afterEase(r,t)}),e),this},r.prototype._prepareEase=function(e,r,n){void 0===n&amp;&amp;(n={}),this._moving=!0,r||n.moving||this.fire(new t.Event(&quot;movestart&quot;,e)),this._zooming&amp;&amp;!n.zooming&amp;&amp;this.fire(new t.Event(&quot;zoomstart&quot;,e)),this._rotating&amp;&amp;!n.rotating&amp;&amp;this.fire(new t.Event(&quot;rotatestart&quot;,e)),this._pitching&amp;&amp;!n.pitching&amp;&amp;this.fire(new t.Event(&quot;pitchstart&quot;,e))},r.prototype._fireMoveEvents=function(e){this.fire(new t.Event(&quot;move&quot;,e)),this._zooming&amp;&amp;this.fire(new t.Event(&quot;zoom&quot;,e)),this._rotating&amp;&amp;this.fire(new t.Event(&quot;rotate&quot;,e)),this._pitching&amp;&amp;this.fire(new t.Event(&quot;pitch&quot;,e))},r.prototype._afterEase=function(e,r){if(!this._easeId||!r||this._easeId!==r){delete this._easeId;var n=this._zooming,i=this._rotating,a=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,n&amp;&amp;this.fire(new t.Event(&quot;zoomend&quot;,e)),i&amp;&amp;this.fire(new t.Event(&quot;rotateend&quot;,e)),a&amp;&amp;this.fire(new t.Event(&quot;pitchend&quot;,e)),this.fire(new t.Event(&quot;moveend&quot;,e))}},r.prototype.flyTo=function(e,r){var n=this;if(!e.essential&amp;&amp;t.browser.prefersReducedMotion){var i=t.pick(e,[&quot;center&quot;,&quot;zoom&quot;,&quot;bearing&quot;,&quot;pitch&quot;,&quot;around&quot;]);return this.jumpTo(i,r)}this.stop(),e=t.extend({offset:[0,0],speed:1.2,curve:1.42,easing:t.ease},e);var a=this.transform,o=this.getZoom(),s=this.getBearing(),l=this.getPitch(),c=this.getPadding(),u=&quot;zoom&quot;in e?t.clamp(+e.zoom,a.minZoom,a.maxZoom):o,f=&quot;bearing&quot;in e?this._normalizeBearing(e.bearing,s):s,h=&quot;pitch&quot;in e?+e.pitch:l,p=&quot;padding&quot;in e?e.padding:a.padding,d=a.zoomScale(u-o),g=t.Point.convert(e.offset),m=a.centerPoint.add(g),v=a.pointLocation(m),y=t.LngLat.convert(e.center||v);this._normalizeCenter(y);var x=a.project(v),b=a.project(y).sub(x),_=e.curve,w=Math.max(a.width,a.height),T=w/d,k=b.mag();if(&quot;minZoom&quot;in e){var M=t.clamp(Math.min(e.minZoom,o,u),a.minZoom,a.maxZoom),A=w/a.zoomScale(M-o);_=Math.sqrt(A/k*2)}var S=_*_;function E(t){var e=(T*T-w*w+(t?-1:1)*S*S*k*k)/(2*(t?T:w)*S*k);return Math.log(Math.sqrt(e*e+1)-e)}function C(t){return(Math.exp(t)-Math.exp(-t))/2}function L(t){return(Math.exp(t)+Math.exp(-t))/2}var I=E(0),P=function(t){return L(I)/L(I+_*t)},z=function(t){return w*((L(I)*(C(e=I+_*t)/L(e))-C(I))/S)/k;var e},O=(E(1)-I)/_;if(Math.abs(k)&lt;1e-6||!isFinite(O)){if(Math.abs(w-T)&lt;1e-6)return this.easeTo(e,r);var D=T&lt;w?-1:1;O=Math.abs(Math.log(T/w))/_,z=function(){return 0},P=function(t){return Math.exp(D*_*t)}}return e.duration=&quot;duration&quot;in e?+e.duration:1e3*O/(&quot;screenSpeed&quot;in e?+e.screenSpeed/_:+e.speed),e.maxDuration&amp;&amp;e.duration&gt;e.maxDuration&amp;&amp;(e.duration=0),this._zooming=!0,this._rotating=s!==f,this._pitching=h!==l,this._padding=!a.isPaddingEqual(p),this._prepareEase(r,!1),this._ease((function(e){var i=e*O,d=1/P(i);a.zoom=1===e?u:o+a.scaleZoom(d),n._rotating&amp;&amp;(a.bearing=t.number(s,f,e)),n._pitching&amp;&amp;(a.pitch=t.number(l,h,e)),n._padding&amp;&amp;(a.interpolatePadding(c,p,e),m=a.centerPoint.add(g));var v=1===e?y:a.unproject(x.add(b.mult(z(i))).mult(d));a.setLocationAtPoint(a.renderWorldCopies?v.wrap():v,m),n._fireMoveEvents(r)}),(function(){return n._afterEase(r)}),e),this},r.prototype.isEasing=function(){return!!this._easeFrameId},r.prototype.stop=function(){return this._stop()},r.prototype._stop=function(t,e){if(this._easeFrameId&amp;&amp;(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){var r=this._onEaseEnd;delete this._onEaseEnd,r.call(this,e)}if(!t){var n=this.handlers;n&amp;&amp;n.stop()}return this},r.prototype._ease=function(e,r,n){!1===n.animate||0===n.duration?(e(1),r()):(this._easeStart=t.browser.now(),this._easeOptions=n,this._onEaseFrame=e,this._onEaseEnd=r,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))},r.prototype._renderFrameCallback=function(){var e=Math.min((t.browser.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(e)),e&lt;1?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},r.prototype._normalizeBearing=function(e,r){e=t.wrap(e,-180,180);var n=Math.abs(e-r);return Math.abs(e-360-r)&lt;n&amp;&amp;(e-=360),Math.abs(e+360-r)&lt;n&amp;&amp;(e+=360),e},r.prototype._normalizeCenter=function(t){var e=this.transform;if(e.renderWorldCopies&amp;&amp;!e.lngRange){var r=t.lng-e.center.lng;t.lng+=r&gt;180?-360:r&lt;-180?360:0}},r}(t.Evented),vi=function(e){void 0===e&amp;&amp;(e={}),this.options=e,t.bindAll([&quot;_updateEditLink&quot;,&quot;_updateData&quot;,&quot;_updateCompact&quot;],this)};vi.prototype.getDefaultPosition=function(){return&quot;bottom-right&quot;},vi.prototype.onAdd=function(t){var e=this.options&amp;&amp;this.options.compact;return this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-attrib&quot;),this._innerContainer=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl-attrib-inner&quot;,this._container),e&amp;&amp;this._container.classList.add(&quot;mapboxgl-compact&quot;),this._updateAttributions(),this._updateEditLink(),this._map.on(&quot;styledata&quot;,this._updateData),this._map.on(&quot;sourcedata&quot;,this._updateData),this._map.on(&quot;moveend&quot;,this._updateEditLink),void 0===e&amp;&amp;(this._map.on(&quot;resize&quot;,this._updateCompact),this._updateCompact()),this._container},vi.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;styledata&quot;,this._updateData),this._map.off(&quot;sourcedata&quot;,this._updateData),this._map.off(&quot;moveend&quot;,this._updateEditLink),this._map.off(&quot;resize&quot;,this._updateCompact),this._map=void 0,this._attribHTML=void 0},vi.prototype._updateEditLink=function(){var e=this._editLink;e||(e=this._editLink=this._container.querySelector(&quot;.mapbox-improve-map&quot;));var r=[{key:&quot;owner&quot;,value:this.styleOwner},{key:&quot;id&quot;,value:this.styleId},{key:&quot;access_token&quot;,value:this._map._requestManager._customAccessToken||t.config.ACCESS_TOKEN}];if(e){var n=r.reduce((function(t,e,n){return e.value&amp;&amp;(t+=e.key+&quot;=&quot;+e.value+(n&lt;r.length-1?&quot;&amp;&quot;:&quot;&quot;)),t}),&quot;?&quot;);e.href=t.config.FEEDBACK_URL+&quot;/&quot;+n+(this._map._hash?this._map._hash.getHashString(!0):&quot;&quot;),e.rel=&quot;noopener nofollow&quot;}},vi.prototype._updateData=function(t){!t||&quot;metadata&quot;!==t.sourceDataType&amp;&amp;&quot;style&quot;!==t.dataType||(this._updateAttributions(),this._updateEditLink())},vi.prototype._updateAttributions=function(){if(this._map.style){var t=[];if(this.options.customAttribution&amp;&amp;(Array.isArray(this.options.customAttribution)?t=t.concat(this.options.customAttribution.map((function(t){return&quot;string&quot;!=typeof t?&quot;&quot;:t}))):&quot;string&quot;==typeof this.options.customAttribution&amp;&amp;t.push(this.options.customAttribution)),this._map.style.stylesheet){var e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}var r=this._map.style.sourceCaches;for(var n in r){var i=r[n];if(i.used){var a=i.getSource();a.attribution&amp;&amp;t.indexOf(a.attribution)&lt;0&amp;&amp;t.push(a.attribution)}}t.sort((function(t,e){return t.length-e.length}));var o=(t=t.filter((function(e,r){for(var n=r+1;n&lt;t.length;n++)if(t[n].indexOf(e)&gt;=0)return!1;return!0}))).join(&quot; | &quot;);o!==this._attribHTML&amp;&amp;(this._attribHTML=o,t.length?(this._innerContainer.innerHTML=o,this._container.classList.remove(&quot;mapboxgl-attrib-empty&quot;)):this._container.classList.add(&quot;mapboxgl-attrib-empty&quot;),this._editLink=null)}},vi.prototype._updateCompact=function(){this._map.getCanvasContainer().offsetWidth&lt;=640?this._container.classList.add(&quot;mapboxgl-compact&quot;):this._container.classList.remove(&quot;mapboxgl-compact&quot;)};var yi=function(){t.bindAll([&quot;_updateLogo&quot;],this),t.bindAll([&quot;_updateCompact&quot;],this)};yi.prototype.onAdd=function(t){this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl&quot;);var e=r.create(&quot;a&quot;,&quot;mapboxgl-ctrl-logo&quot;);return e.target=&quot;_blank&quot;,e.rel=&quot;noopener nofollow&quot;,e.href=&quot;https://www.mapbox.com/&quot;,e.setAttribute(&quot;aria-label&quot;,this._map._getUIString(&quot;LogoControl.Title&quot;)),e.setAttribute(&quot;rel&quot;,&quot;noopener nofollow&quot;),this._container.appendChild(e),this._container.style.display=&quot;none&quot;,this._map.on(&quot;sourcedata&quot;,this._updateLogo),this._updateLogo(),this._map.on(&quot;resize&quot;,this._updateCompact),this._updateCompact(),this._container},yi.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;sourcedata&quot;,this._updateLogo),this._map.off(&quot;resize&quot;,this._updateCompact)},yi.prototype.getDefaultPosition=function(){return&quot;bottom-left&quot;},yi.prototype._updateLogo=function(t){t&amp;&amp;&quot;metadata&quot;!==t.sourceDataType||(this._container.style.display=this._logoRequired()?&quot;block&quot;:&quot;none&quot;)},yi.prototype._logoRequired=function(){if(this._map.style){var t=this._map.style.sourceCaches;for(var e in t)if(t[e].getSource().mapbox_logo)return!0;return!1}},yi.prototype._updateCompact=function(){var t=this._container.children;if(t.length){var e=t[0];this._map.getCanvasContainer().offsetWidth&lt;250?e.classList.add(&quot;mapboxgl-compact&quot;):e.classList.remove(&quot;mapboxgl-compact&quot;)}};var xi=function(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1};xi.prototype.add=function(t){var e=++this._id;return this._queue.push({callback:t,id:e,cancelled:!1}),e},xi.prototype.remove=function(t){for(var e=this._currentlyRunning,r=0,n=e?this._queue.concat(e):this._queue;r&lt;n.length;r+=1){var i=n[r];if(i.id===t)return void(i.cancelled=!0)}},xi.prototype.run=function(t){void 0===t&amp;&amp;(t=0);var e=this._currentlyRunning=this._queue;this._queue=[];for(var r=0,n=e;r&lt;n.length;r+=1){var i=n[r];if(!i.cancelled&amp;&amp;(i.callback(t),this._cleared))break}this._cleared=!1,this._currentlyRunning=!1},xi.prototype.clear=function(){this._currentlyRunning&amp;&amp;(this._cleared=!0),this._queue=[]};var bi={&quot;FullscreenControl.Enter&quot;:&quot;Enter fullscreen&quot;,&quot;FullscreenControl.Exit&quot;:&quot;Exit fullscreen&quot;,&quot;GeolocateControl.FindMyLocation&quot;:&quot;Find my location&quot;,&quot;GeolocateControl.LocationNotAvailable&quot;:&quot;Location not available&quot;,&quot;LogoControl.Title&quot;:&quot;Mapbox logo&quot;,&quot;NavigationControl.ResetBearing&quot;:&quot;Reset bearing to north&quot;,&quot;NavigationControl.ZoomIn&quot;:&quot;Zoom in&quot;,&quot;NavigationControl.ZoomOut&quot;:&quot;Zoom out&quot;,&quot;ScaleControl.Feet&quot;:&quot;ft&quot;,&quot;ScaleControl.Meters&quot;:&quot;m&quot;,&quot;ScaleControl.Kilometers&quot;:&quot;km&quot;,&quot;ScaleControl.Miles&quot;:&quot;mi&quot;,&quot;ScaleControl.NauticalMiles&quot;:&quot;nm&quot;},_i=t.window.HTMLImageElement,wi=t.window.HTMLElement,Ti=t.window.ImageBitmap,ki={center:[0,0],zoom:0,bearing:0,pitch:0,minZoom:-2,maxZoom:22,minPitch:0,maxPitch:60,interactive:!0,scrollZoom:!0,boxZoom:!0,dragRotate:!0,dragPan:!0,keyboard:!0,doubleClickZoom:!0,touchZoomRotate:!0,touchPitch:!0,bearingSnap:7,clickTolerance:3,pitchWithRotate:!0,hash:!1,attributionControl:!0,failIfMajorPerformanceCaveat:!1,preserveDrawingBuffer:!1,trackResize:!0,renderWorldCopies:!0,refreshExpiredTiles:!0,maxTileCacheSize:null,localIdeographFontFamily:&quot;sans-serif&quot;,transformRequest:null,accessToken:null,fadeDuration:300,crossSourceCollisions:!0},Mi=function(n){function i(e){var r=this;if(null!=(e=t.extend({},ki,e)).minZoom&amp;&amp;null!=e.maxZoom&amp;&amp;e.minZoom&gt;e.maxZoom)throw new Error(&quot;maxZoom must be greater than or equal to minZoom&quot;);if(null!=e.minPitch&amp;&amp;null!=e.maxPitch&amp;&amp;e.minPitch&gt;e.maxPitch)throw new Error(&quot;maxPitch must be greater than or equal to minPitch&quot;);if(null!=e.minPitch&amp;&amp;e.minPitch&lt;0)throw new Error(&quot;minPitch must be greater than or equal to 0&quot;);if(null!=e.maxPitch&amp;&amp;e.maxPitch&gt;60)throw new Error(&quot;maxPitch must be less than or equal to 60&quot;);var i=new wn(e.minZoom,e.maxZoom,e.minPitch,e.maxPitch,e.renderWorldCopies);if(n.call(this,i,e),this._interactive=e.interactive,this._maxTileCacheSize=e.maxTileCacheSize,this._failIfMajorPerformanceCaveat=e.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=e.preserveDrawingBuffer,this._antialias=e.antialias,this._trackResize=e.trackResize,this._bearingSnap=e.bearingSnap,this._refreshExpiredTiles=e.refreshExpiredTiles,this._fadeDuration=e.fadeDuration,this._crossSourceCollisions=e.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=e.collectResourceTiming,this._renderTaskQueue=new xi,this._controls=[],this._mapId=t.uniqueId(),this._locale=t.extend({},bi,e.locale),this._requestManager=new t.RequestManager(e.transformRequest,e.accessToken),&quot;string&quot;==typeof e.container){if(this._container=t.window.document.getElementById(e.container),!this._container)throw new Error(&quot;Container '&quot;+e.container+&quot;' not found.&quot;)}else{if(!(e.container instanceof wi))throw new Error(&quot;Invalid type: 'container' must be a String or HTMLElement.&quot;);this._container=e.container}if(e.maxBounds&amp;&amp;this.setMaxBounds(e.maxBounds),t.bindAll([&quot;_onWindowOnline&quot;,&quot;_onWindowResize&quot;,&quot;_contextLost&quot;,&quot;_contextRestored&quot;],this),this._setupContainer(),this._setupPainter(),void 0===this.painter)throw new Error(&quot;Failed to initialize WebGL.&quot;);this.on(&quot;move&quot;,(function(){return r._update(!1)})),this.on(&quot;moveend&quot;,(function(){return r._update(!1)})),this.on(&quot;zoom&quot;,(function(){return r._update(!0)})),void 0!==t.window&amp;&amp;(t.window.addEventListener(&quot;online&quot;,this._onWindowOnline,!1),t.window.addEventListener(&quot;resize&quot;,this._onWindowResize,!1)),this.handlers=new gi(this,e),this._hash=e.hash&amp;&amp;new kn(&quot;string&quot;==typeof e.hash&amp;&amp;e.hash||void 0).addTo(this),this._hash&amp;&amp;this._hash._onHashChange()||(this.jumpTo({center:e.center,zoom:e.zoom,bearing:e.bearing,pitch:e.pitch}),e.bounds&amp;&amp;(this.resize(),this.fitBounds(e.bounds,t.extend({},e.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=e.localIdeographFontFamily,e.style&amp;&amp;this.setStyle(e.style,{localIdeographFontFamily:e.localIdeographFontFamily}),e.attributionControl&amp;&amp;this.addControl(new vi({customAttribution:e.customAttribution})),this.addControl(new yi,e.logoPosition),this.on(&quot;style.load&quot;,(function(){r.transform.unmodified&amp;&amp;r.jumpTo(r.style.stylesheet)})),this.on(&quot;data&quot;,(function(e){r._update(&quot;style&quot;===e.dataType),r.fire(new t.Event(e.dataType+&quot;data&quot;,e))})),this.on(&quot;dataloading&quot;,(function(e){r.fire(new t.Event(e.dataType+&quot;dataloading&quot;,e))}))}n&amp;&amp;(i.__proto__=n),(i.prototype=Object.create(n&amp;&amp;n.prototype)).constructor=i;var a={showTileBoundaries:{configurable:!0},showPadding:{configurable:!0},showCollisionBoxes:{configurable:!0},showOverdrawInspector:{configurable:!0},repaint:{configurable:!0},vertices:{configurable:!0},version:{configurable:!0}};return i.prototype._getMapId=function(){return this._mapId},i.prototype.addControl=function(e,r){if(void 0===r&amp;&amp;e.getDefaultPosition&amp;&amp;(r=e.getDefaultPosition()),void 0===r&amp;&amp;(r=&quot;top-right&quot;),!e||!e.onAdd)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.&quot;)));var n=e.onAdd(this);this._controls.push(e);var i=this._controlPositions[r];return-1!==r.indexOf(&quot;bottom&quot;)?i.insertBefore(n,i.firstChild):i.appendChild(n),this},i.prototype.removeControl=function(e){if(!e||!e.onRemove)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.&quot;)));var r=this._controls.indexOf(e);return r&gt;-1&amp;&amp;this._controls.splice(r,1),e.onRemove(this),this},i.prototype.resize=function(e){var r=this._containerDimensions(),n=r[0],i=r[1];this._resizeCanvas(n,i),this.transform.resize(n,i),this.painter.resize(n,i);var a=!this._moving;return a&amp;&amp;(this.stop(),this.fire(new t.Event(&quot;movestart&quot;,e)).fire(new t.Event(&quot;move&quot;,e))),this.fire(new t.Event(&quot;resize&quot;,e)),a&amp;&amp;this.fire(new t.Event(&quot;moveend&quot;,e)),this},i.prototype.getBounds=function(){return this.transform.getBounds()},i.prototype.getMaxBounds=function(){return this.transform.getMaxBounds()},i.prototype.setMaxBounds=function(e){return this.transform.setMaxBounds(t.LngLatBounds.convert(e)),this._update()},i.prototype.setMinZoom=function(t){if((t=null==t?-2:t)&gt;=-2&amp;&amp;t&lt;=this.transform.maxZoom)return this.transform.minZoom=t,this._update(),this.getZoom()&lt;t&amp;&amp;this.setZoom(t),this;throw new Error(&quot;minZoom must be between -2 and the current maxZoom, inclusive&quot;)},i.prototype.getMinZoom=function(){return this.transform.minZoom},i.prototype.setMaxZoom=function(t){if((t=null==t?22:t)&gt;=this.transform.minZoom)return this.transform.maxZoom=t,this._update(),this.getZoom()&gt;t&amp;&amp;this.setZoom(t),this;throw new Error(&quot;maxZoom must be greater than the current minZoom&quot;)},i.prototype.getMaxZoom=function(){return this.transform.maxZoom},i.prototype.setMinPitch=function(t){if((t=null==t?0:t)&lt;0)throw new Error(&quot;minPitch must be greater than or equal to 0&quot;);if(t&gt;=0&amp;&amp;t&lt;=this.transform.maxPitch)return this.transform.minPitch=t,this._update(),this.getPitch()&lt;t&amp;&amp;this.setPitch(t),this;throw new Error(&quot;minPitch must be between 0 and the current maxPitch, inclusive&quot;)},i.prototype.getMinPitch=function(){return this.transform.minPitch},i.prototype.setMaxPitch=function(t){if((t=null==t?60:t)&gt;60)throw new Error(&quot;maxPitch must be less than or equal to 60&quot;);if(t&gt;=this.transform.minPitch)return this.transform.maxPitch=t,this._update(),this.getPitch()&gt;t&amp;&amp;this.setPitch(t),this;throw new Error(&quot;maxPitch must be greater than the current minPitch&quot;)},i.prototype.getMaxPitch=function(){return this.transform.maxPitch},i.prototype.getRenderWorldCopies=function(){return this.transform.renderWorldCopies},i.prototype.setRenderWorldCopies=function(t){return this.transform.renderWorldCopies=t,this._update()},i.prototype.project=function(e){return this.transform.locationPoint(t.LngLat.convert(e))},i.prototype.unproject=function(e){return this.transform.pointLocation(t.Point.convert(e))},i.prototype.isMoving=function(){return this._moving||this.handlers.isMoving()},i.prototype.isZooming=function(){return this._zooming||this.handlers.isZooming()},i.prototype.isRotating=function(){return this._rotating||this.handlers.isRotating()},i.prototype._createDelegatedListener=function(t,e,r){var n,i=this;if(&quot;mouseenter&quot;===t||&quot;mouseover&quot;===t){var a=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){var o=i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[];o.length?a||(a=!0,r.call(i,new zn(t,i,n.originalEvent,{features:o}))):a=!1},mouseout:function(){a=!1}}}}if(&quot;mouseleave&quot;===t||&quot;mouseout&quot;===t){var o=!1;return{layer:e,listener:r,delegates:{mousemove:function(n){(i.getLayer(e)?i.queryRenderedFeatures(n.point,{layers:[e]}):[]).length?o=!0:o&amp;&amp;(o=!1,r.call(i,new zn(t,i,n.originalEvent)))},mouseout:function(e){o&amp;&amp;(o=!1,r.call(i,new zn(t,i,e.originalEvent)))}}}}return{layer:e,listener:r,delegates:(n={},n[t]=function(t){var n=i.getLayer(e)?i.queryRenderedFeatures(t.point,{layers:[e]}):[];n.length&amp;&amp;(t.features=n,r.call(i,t),delete t.features)},n)}},i.prototype.on=function(t,e,r){if(void 0===r)return n.prototype.on.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[t]=this._delegatedListeners[t]||[],this._delegatedListeners[t].push(i),i.delegates)this.on(a,i.delegates[a]);return this},i.prototype.once=function(t,e,r){if(void 0===r)return n.prototype.once.call(this,t,e);var i=this._createDelegatedListener(t,e,r);for(var a in i.delegates)this.once(a,i.delegates[a]);return this},i.prototype.off=function(t,e,r){var i=this;return void 0===r?n.prototype.off.call(this,t,e):(this._delegatedListeners&amp;&amp;this._delegatedListeners[t]&amp;&amp;function(n){for(var a=n[t],o=0;o&lt;a.length;o++){var s=a[o];if(s.layer===e&amp;&amp;s.listener===r){for(var l in s.delegates)i.off(l,s.delegates[l]);return a.splice(o,1),i}}}(this._delegatedListeners),this)},i.prototype.queryRenderedFeatures=function(e,r){if(!this.style)return[];var n;if(void 0!==r||void 0===e||e instanceof t.Point||Array.isArray(e)||(r=e,e=void 0),r=r||{},(e=e||[[0,0],[this.transform.width,this.transform.height]])instanceof t.Point||&quot;number&quot;==typeof e[0])n=[t.Point.convert(e)];else{var i=t.Point.convert(e[0]),a=t.Point.convert(e[1]);n=[i,new t.Point(a.x,i.y),a,new t.Point(i.x,a.y),i]}return this.style.queryRenderedFeatures(n,r,this.transform)},i.prototype.querySourceFeatures=function(t,e){return this.style.querySourceFeatures(t,e)},i.prototype.setStyle=function(e,r){return!1!==(r=t.extend({},{localIdeographFontFamily:this._localIdeographFontFamily},r)).diff&amp;&amp;r.localIdeographFontFamily===this._localIdeographFontFamily&amp;&amp;this.style&amp;&amp;e?(this._diffStyle(e,r),this):(this._localIdeographFontFamily=r.localIdeographFontFamily,this._updateStyle(e,r))},i.prototype._getUIString=function(t){var e=this._locale[t];if(null==e)throw new Error(&quot;Missing UI string '&quot;+t+&quot;'&quot;);return e},i.prototype._updateStyle=function(t,e){return this.style&amp;&amp;(this.style.setEventedParent(null),this.style._remove()),t?(this.style=new qe(this,e||{}),this.style.setEventedParent(this,{style:this.style}),&quot;string&quot;==typeof t?this.style.loadURL(t):this.style.loadJSON(t),this):(delete this.style,this)},i.prototype._lazyInitEmptyStyle=function(){this.style||(this.style=new qe(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())},i.prototype._diffStyle=function(e,r){var n=this;if(&quot;string&quot;==typeof e){var i=this._requestManager.normalizeStyleURL(e),a=this._requestManager.transformRequest(i,t.ResourceType.Style);t.getJSON(a,(function(e,i){e?n.fire(new t.ErrorEvent(e)):i&amp;&amp;n._updateDiff(i,r)}))}else&quot;object&quot;==typeof e&amp;&amp;this._updateDiff(e,r)},i.prototype._updateDiff=function(e,r){try{this.style.setState(e)&amp;&amp;this._update(!0)}catch(n){t.warnOnce(&quot;Unable to perform style diff: &quot;+(n.message||n.error||n)+&quot;.  Rebuilding the style from scratch.&quot;),this._updateStyle(e,r)}},i.prototype.getStyle=function(){if(this.style)return this.style.serialize()},i.prototype.isStyleLoaded=function(){return this.style?this.style.loaded():t.warnOnce(&quot;There is no style added to the map.&quot;)},i.prototype.addSource=function(t,e){return this._lazyInitEmptyStyle(),this.style.addSource(t,e),this._update(!0)},i.prototype.isSourceLoaded=function(e){var r=this.style&amp;&amp;this.style.sourceCaches[e];if(void 0!==r)return r.loaded();this.fire(new t.ErrorEvent(new Error(&quot;There is no source with ID '&quot;+e+&quot;'&quot;)))},i.prototype.areTilesLoaded=function(){var t=this.style&amp;&amp;this.style.sourceCaches;for(var e in t){var r=t[e]._tiles;for(var n in r){var i=r[n];if(&quot;loaded&quot;!==i.state&amp;&amp;&quot;errored&quot;!==i.state)return!1}}return!0},i.prototype.addSourceType=function(t,e,r){return this._lazyInitEmptyStyle(),this.style.addSourceType(t,e,r)},i.prototype.removeSource=function(t){return this.style.removeSource(t),this._update(!0)},i.prototype.getSource=function(t){return this.style.getSource(t)},i.prototype.addImage=function(e,r,n){void 0===n&amp;&amp;(n={});var i=n.pixelRatio;void 0===i&amp;&amp;(i=1);var a=n.sdf;void 0===a&amp;&amp;(a=!1);var o=n.stretchX,s=n.stretchY,l=n.content;if(this._lazyInitEmptyStyle(),r instanceof _i||Ti&amp;&amp;r instanceof Ti){var c=t.browser.getImageData(r);this.style.addImage(e,{data:new t.RGBAImage({width:c.width,height:c.height},c.data),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:0})}else{if(void 0===r.width||void 0===r.height)return this.fire(new t.ErrorEvent(new Error(&quot;Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`&quot;)));var u=r;this.style.addImage(e,{data:new t.RGBAImage({width:r.width,height:r.height},new Uint8Array(r.data)),pixelRatio:i,stretchX:o,stretchY:s,content:l,sdf:a,version:0,userImage:u}),u.onAdd&amp;&amp;u.onAdd(this,e)}},i.prototype.updateImage=function(e,r){var n=this.style.getImage(e);if(!n)return this.fire(new t.ErrorEvent(new Error(&quot;The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.&quot;)));var i=r instanceof _i||Ti&amp;&amp;r instanceof Ti?t.browser.getImageData(r):r,a=i.width,o=i.height,s=i.data;return void 0===a||void 0===o?this.fire(new t.ErrorEvent(new Error(&quot;Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`&quot;))):a!==n.data.width||o!==n.data.height?this.fire(new t.ErrorEvent(new Error(&quot;The width and height of the updated image must be that same as the previous version of the image&quot;))):(n.data.replace(s,!(r instanceof _i||Ti&amp;&amp;r instanceof Ti)),void this.style.updateImage(e,n))},i.prototype.hasImage=function(e){return e?!!this.style.getImage(e):(this.fire(new t.ErrorEvent(new Error(&quot;Missing required image id&quot;))),!1)},i.prototype.removeImage=function(t){this.style.removeImage(t)},i.prototype.loadImage=function(e,r){t.getImage(this._requestManager.transformRequest(e,t.ResourceType.Image),r)},i.prototype.listImages=function(){return this.style.listImages()},i.prototype.addLayer=function(t,e){return this._lazyInitEmptyStyle(),this.style.addLayer(t,e),this._update(!0)},i.prototype.moveLayer=function(t,e){return this.style.moveLayer(t,e),this._update(!0)},i.prototype.removeLayer=function(t){return this.style.removeLayer(t),this._update(!0)},i.prototype.getLayer=function(t){return this.style.getLayer(t)},i.prototype.setLayerZoomRange=function(t,e,r){return this.style.setLayerZoomRange(t,e,r),this._update(!0)},i.prototype.setFilter=function(t,e,r){return void 0===r&amp;&amp;(r={}),this.style.setFilter(t,e,r),this._update(!0)},i.prototype.getFilter=function(t){return this.style.getFilter(t)},i.prototype.setPaintProperty=function(t,e,r,n){return void 0===n&amp;&amp;(n={}),this.style.setPaintProperty(t,e,r,n),this._update(!0)},i.prototype.getPaintProperty=function(t,e){return this.style.getPaintProperty(t,e)},i.prototype.setLayoutProperty=function(t,e,r,n){return void 0===n&amp;&amp;(n={}),this.style.setLayoutProperty(t,e,r,n),this._update(!0)},i.prototype.getLayoutProperty=function(t,e){return this.style.getLayoutProperty(t,e)},i.prototype.setLight=function(t,e){return void 0===e&amp;&amp;(e={}),this._lazyInitEmptyStyle(),this.style.setLight(t,e),this._update(!0)},i.prototype.getLight=function(){return this.style.getLight()},i.prototype.setFeatureState=function(t,e){return this.style.setFeatureState(t,e),this._update()},i.prototype.removeFeatureState=function(t,e){return this.style.removeFeatureState(t,e),this._update()},i.prototype.getFeatureState=function(t){return this.style.getFeatureState(t)},i.prototype.getContainer=function(){return this._container},i.prototype.getCanvasContainer=function(){return this._canvasContainer},i.prototype.getCanvas=function(){return this._canvas},i.prototype._containerDimensions=function(){var t=0,e=0;return this._container&amp;&amp;(t=this._container.clientWidth||400,e=this._container.clientHeight||300),[t,e]},i.prototype._detectMissingCSS=function(){&quot;rgb(250, 128, 114)&quot;!==t.window.getComputedStyle(this._missingCSSCanary).getPropertyValue(&quot;background-color&quot;)&amp;&amp;t.warnOnce(&quot;This page appears to be missing CSS declarations for Mapbox GL JS, which may cause the map to display incorrectly. Please ensure your page includes mapbox-gl.css, as described in https://www.mapbox.com/mapbox-gl-js/api/.&quot;)},i.prototype._setupContainer=function(){var t=this._container;t.classList.add(&quot;mapboxgl-map&quot;),(this._missingCSSCanary=r.create(&quot;div&quot;,&quot;mapboxgl-canary&quot;,t)).style.visibility=&quot;hidden&quot;,this._detectMissingCSS();var e=this._canvasContainer=r.create(&quot;div&quot;,&quot;mapboxgl-canvas-container&quot;,t);this._interactive&amp;&amp;e.classList.add(&quot;mapboxgl-interactive&quot;),this._canvas=r.create(&quot;canvas&quot;,&quot;mapboxgl-canvas&quot;,e),this._canvas.addEventListener(&quot;webglcontextlost&quot;,this._contextLost,!1),this._canvas.addEventListener(&quot;webglcontextrestored&quot;,this._contextRestored,!1),this._canvas.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),this._canvas.setAttribute(&quot;aria-label&quot;,&quot;Map&quot;);var n=this._containerDimensions();this._resizeCanvas(n[0],n[1]);var i=this._controlContainer=r.create(&quot;div&quot;,&quot;mapboxgl-control-container&quot;,t),a=this._controlPositions={};[&quot;top-left&quot;,&quot;top-right&quot;,&quot;bottom-left&quot;,&quot;bottom-right&quot;].forEach((function(t){a[t]=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl-&quot;+t,i)}))},i.prototype._resizeCanvas=function(e,r){var n=t.browser.devicePixelRatio||1;this._canvas.width=n*e,this._canvas.height=n*r,this._canvas.style.width=e+&quot;px&quot;,this._canvas.style.height=r+&quot;px&quot;},i.prototype._setupPainter=function(){var r=t.extend({},e.webGLContextAttributes,{failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1}),n=this._canvas.getContext(&quot;webgl&quot;,r)||this._canvas.getContext(&quot;experimental-webgl&quot;,r);n?(this.painter=new yn(n,this.transform),t.webpSupported.testSupport(n)):this.fire(new t.ErrorEvent(new Error(&quot;Failed to initialize WebGL&quot;)))},i.prototype._contextLost=function(e){e.preventDefault(),this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this.fire(new t.Event(&quot;webglcontextlost&quot;,{originalEvent:e}))},i.prototype._contextRestored=function(e){this._setupPainter(),this.resize(),this._update(),this.fire(new t.Event(&quot;webglcontextrestored&quot;,{originalEvent:e}))},i.prototype.loaded=function(){return!this._styleDirty&amp;&amp;!this._sourcesDirty&amp;&amp;!!this.style&amp;&amp;this.style.loaded()},i.prototype._update=function(t){return this.style?(this._styleDirty=this._styleDirty||t,this._sourcesDirty=!0,this.triggerRepaint(),this):this},i.prototype._requestRenderFrame=function(t){return this._update(),this._renderTaskQueue.add(t)},i.prototype._cancelRenderFrame=function(t){this._renderTaskQueue.remove(t)},i.prototype._render=function(e){var r,n=this,i=0,a=this.painter.context.extTimerQuery;if(this.listens(&quot;gpu-timing-frame&quot;)&amp;&amp;(r=a.createQueryEXT(),a.beginQueryEXT(a.TIME_ELAPSED_EXT,r),i=t.browser.now()),this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(e),!this._removed){var o=!1;if(this.style&amp;&amp;this._styleDirty){this._styleDirty=!1;var s=this.transform.zoom,l=t.browser.now();this.style.zoomHistory.update(s,l);var c=new t.EvaluationParameters(s,{now:l,fadeDuration:this._fadeDuration,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),u=c.crossFadingFactor();1===u&amp;&amp;u===this._crossFadingFactor||(o=!0,this._crossFadingFactor=u),this.style.update(c)}if(this.style&amp;&amp;this._sourcesDirty&amp;&amp;(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this._placementDirty=this.style&amp;&amp;this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,this._fadeDuration,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:this._fadeDuration,showPadding:this.showPadding,gpuTiming:!!this.listens(&quot;gpu-timing-layer&quot;)}),this.fire(new t.Event(&quot;render&quot;)),this.loaded()&amp;&amp;!this._loaded&amp;&amp;(this._loaded=!0,this.fire(new t.Event(&quot;load&quot;))),this.style&amp;&amp;(this.style.hasTransitions()||o)&amp;&amp;(this._styleDirty=!0),this.style&amp;&amp;!this._placementDirty&amp;&amp;this.style._releaseSymbolFadeTiles(),this.listens(&quot;gpu-timing-frame&quot;)){var f=t.browser.now()-i;a.endQueryEXT(a.TIME_ELAPSED_EXT,r),setTimeout((function(){var e=a.getQueryObjectEXT(r,a.QUERY_RESULT_EXT)/1e6;a.deleteQueryEXT(r),n.fire(new t.Event(&quot;gpu-timing-frame&quot;,{cpuTime:f,gpuTime:e}))}),50)}if(this.listens(&quot;gpu-timing-layer&quot;)){var h=this.painter.collectGpuTimers();setTimeout((function(){var e=n.painter.queryGpuTimers(h);n.fire(new t.Event(&quot;gpu-timing-layer&quot;,{layerTimes:e}))}),50)}return this._sourcesDirty||this._styleDirty||this._placementDirty||this._repaint?this.triggerRepaint():!this.isMoving()&amp;&amp;this.loaded()&amp;&amp;(this._fullyLoaded||(this._fullyLoaded=!0),this.fire(new t.Event(&quot;idle&quot;))),this}},i.prototype.remove=function(){this._hash&amp;&amp;this._hash.remove();for(var e=0,r=this._controls;e&lt;r.length;e+=1)r[e].onRemove(this);this._controls=[],this._frame&amp;&amp;(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),void 0!==t.window&amp;&amp;(t.window.removeEventListener(&quot;resize&quot;,this._onWindowResize,!1),t.window.removeEventListener(&quot;online&quot;,this._onWindowOnline,!1));var n=this.painter.context.gl.getExtension(&quot;WEBGL_lose_context&quot;);n&amp;&amp;n.loseContext(),Ai(this._canvasContainer),Ai(this._controlContainer),Ai(this._missingCSSCanary),this._container.classList.remove(&quot;mapboxgl-map&quot;),this._removed=!0,this.fire(new t.Event(&quot;remove&quot;))},i.prototype.triggerRepaint=function(){var e=this;this.style&amp;&amp;!this._frame&amp;&amp;(this._frame=t.browser.frame((function(t){e._frame=null,e._render(t)})))},i.prototype._onWindowOnline=function(){this._update()},i.prototype._onWindowResize=function(t){this._trackResize&amp;&amp;this.resize({originalEvent:t})._update()},a.showTileBoundaries.get=function(){return!!this._showTileBoundaries},a.showTileBoundaries.set=function(t){this._showTileBoundaries!==t&amp;&amp;(this._showTileBoundaries=t,this._update())},a.showPadding.get=function(){return!!this._showPadding},a.showPadding.set=function(t){this._showPadding!==t&amp;&amp;(this._showPadding=t,this._update())},a.showCollisionBoxes.get=function(){return!!this._showCollisionBoxes},a.showCollisionBoxes.set=function(t){this._showCollisionBoxes!==t&amp;&amp;(this._showCollisionBoxes=t,t?this.style._generateCollisionBoxes():this._update())},a.showOverdrawInspector.get=function(){return!!this._showOverdrawInspector},a.showOverdrawInspector.set=function(t){this._showOverdrawInspector!==t&amp;&amp;(this._showOverdrawInspector=t,this._update())},a.repaint.get=function(){return!!this._repaint},a.repaint.set=function(t){this._repaint!==t&amp;&amp;(this._repaint=t,this.triggerRepaint())},a.vertices.get=function(){return!!this._vertices},a.vertices.set=function(t){this._vertices=t,this._update()},i.prototype._setCacheLimits=function(e,r){t.setCacheLimits(e,r)},a.version.get=function(){return t.version},Object.defineProperties(i.prototype,a),i}(mi);function Ai(t){t.parentNode&amp;&amp;t.parentNode.removeChild(t)}var Si={showCompass:!0,showZoom:!0,visualizePitch:!1},Ei=function(e){var n=this;this.options=t.extend({},Si,e),this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),this._container.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault()})),this.options.showZoom&amp;&amp;(t.bindAll([&quot;_setButtonTitle&quot;,&quot;_updateZoomButtons&quot;],this),this._zoomInButton=this._createButton(&quot;mapboxgl-ctrl-zoom-in&quot;,(function(t){return n._map.zoomIn({},{originalEvent:t})})),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._zoomInButton).setAttribute(&quot;aria-hidden&quot;,!0),this._zoomOutButton=this._createButton(&quot;mapboxgl-ctrl-zoom-out&quot;,(function(t){return n._map.zoomOut({},{originalEvent:t})})),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._zoomOutButton).setAttribute(&quot;aria-hidden&quot;,!0)),this.options.showCompass&amp;&amp;(t.bindAll([&quot;_rotateCompassArrow&quot;],this),this._compass=this._createButton(&quot;mapboxgl-ctrl-compass&quot;,(function(t){n.options.visualizePitch?n._map.resetNorthPitch({},{originalEvent:t}):n._map.resetNorth({},{originalEvent:t})})),this._compassIcon=r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._compass),this._compassIcon.setAttribute(&quot;aria-hidden&quot;,!0))};Ei.prototype._updateZoomButtons=function(){var t=this._map.getZoom();this._zoomInButton.disabled=t===this._map.getMaxZoom(),this._zoomOutButton.disabled=t===this._map.getMinZoom()},Ei.prototype._rotateCompassArrow=function(){var t=this.options.visualizePitch?&quot;scale(&quot;+1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)+&quot;) rotateX(&quot;+this._map.transform.pitch+&quot;deg) rotateZ(&quot;+this._map.transform.angle*(180/Math.PI)+&quot;deg)&quot;:&quot;rotate(&quot;+this._map.transform.angle*(180/Math.PI)+&quot;deg)&quot;;this._compassIcon.style.transform=t},Ei.prototype.onAdd=function(t){return this._map=t,this.options.showZoom&amp;&amp;(this._setButtonTitle(this._zoomInButton,&quot;ZoomIn&quot;),this._setButtonTitle(this._zoomOutButton,&quot;ZoomOut&quot;),this._map.on(&quot;zoom&quot;,this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&amp;&amp;(this._setButtonTitle(this._compass,&quot;ResetBearing&quot;),this.options.visualizePitch&amp;&amp;this._map.on(&quot;pitch&quot;,this._rotateCompassArrow),this._map.on(&quot;rotate&quot;,this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new Ci(this._map,this._compass,this.options.visualizePitch)),this._container},Ei.prototype.onRemove=function(){r.remove(this._container),this.options.showZoom&amp;&amp;this._map.off(&quot;zoom&quot;,this._updateZoomButtons),this.options.showCompass&amp;&amp;(this.options.visualizePitch&amp;&amp;this._map.off(&quot;pitch&quot;,this._rotateCompassArrow),this._map.off(&quot;rotate&quot;,this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map},Ei.prototype._createButton=function(t,e){var n=r.create(&quot;button&quot;,t,this._container);return n.type=&quot;button&quot;,n.addEventListener(&quot;click&quot;,e),n},Ei.prototype._setButtonTitle=function(t,e){var r=this._map._getUIString(&quot;NavigationControl.&quot;+e);t.title=r,t.setAttribute(&quot;aria-label&quot;,r)};var Ci=function(e,n,i){void 0===i&amp;&amp;(i=!1),this._clickTolerance=10,this.element=n,this.mouseRotate=new Gn({clickTolerance:e.dragRotate._mouseRotate._clickTolerance}),this.map=e,i&amp;&amp;(this.mousePitch=new Yn({clickTolerance:e.dragRotate._mousePitch._clickTolerance})),t.bindAll([&quot;mousedown&quot;,&quot;mousemove&quot;,&quot;mouseup&quot;,&quot;touchstart&quot;,&quot;touchmove&quot;,&quot;touchend&quot;,&quot;reset&quot;],this),r.addEventListener(n,&quot;mousedown&quot;,this.mousedown),r.addEventListener(n,&quot;touchstart&quot;,this.touchstart,{passive:!1}),r.addEventListener(n,&quot;touchmove&quot;,this.touchmove),r.addEventListener(n,&quot;touchend&quot;,this.touchend),r.addEventListener(n,&quot;touchcancel&quot;,this.reset)};function Li(e,r,n){if(e=new t.LngLat(e.lng,e.lat),r){var i=new t.LngLat(e.lng-360,e.lat),a=new t.LngLat(e.lng+360,e.lat),o=n.locationPoint(e).distSqr(r);n.locationPoint(i).distSqr(r)&lt;o?e=i:n.locationPoint(a).distSqr(r)&lt;o&amp;&amp;(e=a)}for(;Math.abs(e.lng-n.center.lng)&gt;180;){var s=n.locationPoint(e);if(s.x&gt;=0&amp;&amp;s.y&gt;=0&amp;&amp;s.x&lt;=n.width&amp;&amp;s.y&lt;=n.height)break;e.lng&gt;n.center.lng?e.lng-=360:e.lng+=360}return e}Ci.prototype.down=function(t,e){this.mouseRotate.mousedown(t,e),this.mousePitch&amp;&amp;this.mousePitch.mousedown(t,e),r.disableDrag()},Ci.prototype.move=function(t,e){var r=this.map,n=this.mouseRotate.mousemoveWindow(t,e);if(n&amp;&amp;n.bearingDelta&amp;&amp;r.setBearing(r.getBearing()+n.bearingDelta),this.mousePitch){var i=this.mousePitch.mousemoveWindow(t,e);i&amp;&amp;i.pitchDelta&amp;&amp;r.setPitch(r.getPitch()+i.pitchDelta)}},Ci.prototype.off=function(){var t=this.element;r.removeEventListener(t,&quot;mousedown&quot;,this.mousedown),r.removeEventListener(t,&quot;touchstart&quot;,this.touchstart,{passive:!1}),r.removeEventListener(t,&quot;touchmove&quot;,this.touchmove),r.removeEventListener(t,&quot;touchend&quot;,this.touchend),r.removeEventListener(t,&quot;touchcancel&quot;,this.reset),this.offTemp()},Ci.prototype.offTemp=function(){r.enableDrag(),r.removeEventListener(t.window,&quot;mousemove&quot;,this.mousemove),r.removeEventListener(t.window,&quot;mouseup&quot;,this.mouseup)},Ci.prototype.mousedown=function(e){this.down(t.extend({},e,{ctrlKey:!0,preventDefault:function(){return e.preventDefault()}}),r.mousePos(this.element,e)),r.addEventListener(t.window,&quot;mousemove&quot;,this.mousemove),r.addEventListener(t.window,&quot;mouseup&quot;,this.mouseup)},Ci.prototype.mousemove=function(t){this.move(t,r.mousePos(this.element,t))},Ci.prototype.mouseup=function(t){this.mouseRotate.mouseupWindow(t),this.mousePitch&amp;&amp;this.mousePitch.mouseupWindow(t),this.offTemp()},Ci.prototype.touchstart=function(t){1!==t.targetTouches.length?this.reset():(this._startPos=this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.down({type:&quot;mousedown&quot;,button:0,ctrlKey:!0,preventDefault:function(){return t.preventDefault()}},this._startPos))},Ci.prototype.touchmove=function(t){1!==t.targetTouches.length?this.reset():(this._lastPos=r.touchPos(this.element,t.targetTouches)[0],this.move({preventDefault:function(){return t.preventDefault()}},this._lastPos))},Ci.prototype.touchend=function(t){0===t.targetTouches.length&amp;&amp;this._startPos&amp;&amp;this._lastPos&amp;&amp;this._startPos.dist(this._lastPos)&lt;this._clickTolerance&amp;&amp;this.element.click(),this.reset()},Ci.prototype.reset=function(){this.mouseRotate.reset(),this.mousePitch&amp;&amp;this.mousePitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()};var Ii={center:&quot;translate(-50%,-50%)&quot;,top:&quot;translate(-50%,0)&quot;,&quot;top-left&quot;:&quot;translate(0,0)&quot;,&quot;top-right&quot;:&quot;translate(-100%,0)&quot;,bottom:&quot;translate(-50%,-100%)&quot;,&quot;bottom-left&quot;:&quot;translate(0,-100%)&quot;,&quot;bottom-right&quot;:&quot;translate(-100%,-100%)&quot;,left:&quot;translate(0,-50%)&quot;,right:&quot;translate(-100%,-50%)&quot;};function Pi(t,e,r){var n=t.classList;for(var i in Ii)n.remove(&quot;mapboxgl-&quot;+r+&quot;-anchor-&quot;+i);n.add(&quot;mapboxgl-&quot;+r+&quot;-anchor-&quot;+e)}var zi,Oi=function(e){function n(n,i){var a=this;if(e.call(this),(n instanceof t.window.HTMLElement||i)&amp;&amp;(n=t.extend({element:n},i)),t.bindAll([&quot;_update&quot;,&quot;_onMove&quot;,&quot;_onUp&quot;,&quot;_addDragHandler&quot;,&quot;_onMapClick&quot;,&quot;_onKeyPress&quot;],this),this._anchor=n&amp;&amp;n.anchor||&quot;center&quot;,this._color=n&amp;&amp;n.color||&quot;#3FB1CE&quot;,this._draggable=n&amp;&amp;n.draggable||!1,this._state=&quot;inactive&quot;,this._rotation=n&amp;&amp;n.rotation||0,this._rotationAlignment=n&amp;&amp;n.rotationAlignment||&quot;auto&quot;,this._pitchAlignment=n&amp;&amp;n.pitchAlignment&amp;&amp;&quot;auto&quot;!==n.pitchAlignment?n.pitchAlignment:this._rotationAlignment,n&amp;&amp;n.element)this._element=n.element,this._offset=t.Point.convert(n&amp;&amp;n.offset||[0,0]);else{this._defaultMarker=!0,this._element=r.create(&quot;div&quot;),this._element.setAttribute(&quot;aria-label&quot;,&quot;Map marker&quot;);var o=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);o.setAttributeNS(null,&quot;display&quot;,&quot;block&quot;),o.setAttributeNS(null,&quot;height&quot;,&quot;41px&quot;),o.setAttributeNS(null,&quot;width&quot;,&quot;27px&quot;),o.setAttributeNS(null,&quot;viewBox&quot;,&quot;0 0 27 41&quot;);var s=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);s.setAttributeNS(null,&quot;stroke&quot;,&quot;none&quot;),s.setAttributeNS(null,&quot;stroke-width&quot;,&quot;1&quot;),s.setAttributeNS(null,&quot;fill&quot;,&quot;none&quot;),s.setAttributeNS(null,&quot;fill-rule&quot;,&quot;evenodd&quot;);var l=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);l.setAttributeNS(null,&quot;fill-rule&quot;,&quot;nonzero&quot;);var c=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);c.setAttributeNS(null,&quot;transform&quot;,&quot;translate(3.0, 29.0)&quot;),c.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;);for(var u=0,f=[{rx:&quot;10.5&quot;,ry:&quot;5.25002273&quot;},{rx:&quot;10.5&quot;,ry:&quot;5.25002273&quot;},{rx:&quot;9.5&quot;,ry:&quot;4.77275007&quot;},{rx:&quot;8.5&quot;,ry:&quot;4.29549936&quot;},{rx:&quot;7.5&quot;,ry:&quot;3.81822308&quot;},{rx:&quot;6.5&quot;,ry:&quot;3.34094679&quot;},{rx:&quot;5.5&quot;,ry:&quot;2.86367051&quot;},{rx:&quot;4.5&quot;,ry:&quot;2.38636864&quot;}];u&lt;f.length;u+=1){var h=f[u],p=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;ellipse&quot;);p.setAttributeNS(null,&quot;opacity&quot;,&quot;0.04&quot;),p.setAttributeNS(null,&quot;cx&quot;,&quot;10.5&quot;),p.setAttributeNS(null,&quot;cy&quot;,&quot;5.80029008&quot;),p.setAttributeNS(null,&quot;rx&quot;,h.rx),p.setAttributeNS(null,&quot;ry&quot;,h.ry),c.appendChild(p)}var d=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);d.setAttributeNS(null,&quot;fill&quot;,this._color);var g=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;path&quot;);g.setAttributeNS(null,&quot;d&quot;,&quot;M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z&quot;),d.appendChild(g);var m=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);m.setAttributeNS(null,&quot;opacity&quot;,&quot;0.25&quot;),m.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;);var v=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;path&quot;);v.setAttributeNS(null,&quot;d&quot;,&quot;M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z&quot;),m.appendChild(v);var y=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);y.setAttributeNS(null,&quot;transform&quot;,&quot;translate(6.0, 7.0)&quot;),y.setAttributeNS(null,&quot;fill&quot;,&quot;#FFFFFF&quot;);var x=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;g&quot;);x.setAttributeNS(null,&quot;transform&quot;,&quot;translate(8.0, 8.0)&quot;);var b=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;circle&quot;);b.setAttributeNS(null,&quot;fill&quot;,&quot;#000000&quot;),b.setAttributeNS(null,&quot;opacity&quot;,&quot;0.25&quot;),b.setAttributeNS(null,&quot;cx&quot;,&quot;5.5&quot;),b.setAttributeNS(null,&quot;cy&quot;,&quot;5.5&quot;),b.setAttributeNS(null,&quot;r&quot;,&quot;5.4999962&quot;);var _=r.createNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;circle&quot;);_.setAttributeNS(null,&quot;fill&quot;,&quot;#FFFFFF&quot;),_.setAttributeNS(null,&quot;cx&quot;,&quot;5.5&quot;),_.setAttributeNS(null,&quot;cy&quot;,&quot;5.5&quot;),_.setAttributeNS(null,&quot;r&quot;,&quot;5.4999962&quot;),x.appendChild(b),x.appendChild(_),l.appendChild(c),l.appendChild(d),l.appendChild(m),l.appendChild(y),l.appendChild(x),o.appendChild(l),this._element.appendChild(o),this._offset=t.Point.convert(n&amp;&amp;n.offset||[0,-14])}this._element.classList.add(&quot;mapboxgl-marker&quot;),this._element.addEventListener(&quot;dragstart&quot;,(function(t){t.preventDefault()})),this._element.addEventListener(&quot;mousedown&quot;,(function(t){t.preventDefault()})),this._element.addEventListener(&quot;focus&quot;,(function(){var t=a._map.getContainer();t.scrollTop=0,t.scrollLeft=0})),Pi(this._element,this._anchor,&quot;marker&quot;),this._popup=null}return e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n,n.prototype.addTo=function(t){return this.remove(),this._map=t,t.getCanvasContainer().appendChild(this._element),t.on(&quot;move&quot;,this._update),t.on(&quot;moveend&quot;,this._update),this.setDraggable(this._draggable),this._update(),this._map.on(&quot;click&quot;,this._onMapClick),this},n.prototype.remove=function(){return this._map&amp;&amp;(this._map.off(&quot;click&quot;,this._onMapClick),this._map.off(&quot;move&quot;,this._update),this._map.off(&quot;moveend&quot;,this._update),this._map.off(&quot;mousedown&quot;,this._addDragHandler),this._map.off(&quot;touchstart&quot;,this._addDragHandler),this._map.off(&quot;mouseup&quot;,this._onUp),this._map.off(&quot;touchend&quot;,this._onUp),this._map.off(&quot;mousemove&quot;,this._onMove),this._map.off(&quot;touchmove&quot;,this._onMove),delete this._map),r.remove(this._element),this._popup&amp;&amp;this._popup.remove(),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._popup&amp;&amp;this._popup.setLngLat(this._lngLat),this._update(),this},n.prototype.getElement=function(){return this._element},n.prototype.setPopup=function(t){if(this._popup&amp;&amp;(this._popup.remove(),this._popup=null,this._element.removeEventListener(&quot;keypress&quot;,this._onKeyPress),this._originalTabIndex||this._element.removeAttribute(&quot;tabindex&quot;)),t){if(!(&quot;offset&quot;in t.options)){var e=Math.sqrt(Math.pow(13.5,2)/2);t.options.offset=this._defaultMarker?{top:[0,0],&quot;top-left&quot;:[0,0],&quot;top-right&quot;:[0,0],bottom:[0,-38.1],&quot;bottom-left&quot;:[e,-1*(24.6+e)],&quot;bottom-right&quot;:[-e,-1*(24.6+e)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=t,this._lngLat&amp;&amp;this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute(&quot;tabindex&quot;),this._originalTabIndex||this._element.setAttribute(&quot;tabindex&quot;,&quot;0&quot;),this._element.addEventListener(&quot;keypress&quot;,this._onKeyPress)}return this},n.prototype._onKeyPress=function(t){var e=t.code,r=t.charCode||t.keyCode;&quot;Space&quot;!==e&amp;&amp;&quot;Enter&quot;!==e&amp;&amp;32!==r&amp;&amp;13!==r||this.togglePopup()},n.prototype._onMapClick=function(t){var e=t.originalEvent.target,r=this._element;this._popup&amp;&amp;(e===r||r.contains(e))&amp;&amp;this.togglePopup()},n.prototype.getPopup=function(){return this._popup},n.prototype.togglePopup=function(){var t=this._popup;return t?(t.isOpen()?t.remove():t.addTo(this._map),this):this},n.prototype._update=function(t){if(this._map){this._map.transform.renderWorldCopies&amp;&amp;(this._lngLat=Li(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);var e=&quot;&quot;;&quot;viewport&quot;===this._rotationAlignment||&quot;auto&quot;===this._rotationAlignment?e=&quot;rotateZ(&quot;+this._rotation+&quot;deg)&quot;:&quot;map&quot;===this._rotationAlignment&amp;&amp;(e=&quot;rotateZ(&quot;+(this._rotation-this._map.getBearing())+&quot;deg)&quot;);var n=&quot;&quot;;&quot;viewport&quot;===this._pitchAlignment||&quot;auto&quot;===this._pitchAlignment?n=&quot;rotateX(0deg)&quot;:&quot;map&quot;===this._pitchAlignment&amp;&amp;(n=&quot;rotateX(&quot;+this._map.getPitch()+&quot;deg)&quot;),t&amp;&amp;&quot;moveend&quot;!==t.type||(this._pos=this._pos.round()),r.setTransform(this._element,Ii[this._anchor]+&quot; translate(&quot;+this._pos.x+&quot;px, &quot;+this._pos.y+&quot;px) &quot;+n+&quot; &quot;+e)}},n.prototype.getOffset=function(){return this._offset},n.prototype.setOffset=function(e){return this._offset=t.Point.convert(e),this._update(),this},n.prototype._onMove=function(e){this._pos=e.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents=&quot;none&quot;,&quot;pending&quot;===this._state&amp;&amp;(this._state=&quot;active&quot;,this.fire(new t.Event(&quot;dragstart&quot;))),this.fire(new t.Event(&quot;drag&quot;))},n.prototype._onUp=function(){this._element.style.pointerEvents=&quot;auto&quot;,this._positionDelta=null,this._map.off(&quot;mousemove&quot;,this._onMove),this._map.off(&quot;touchmove&quot;,this._onMove),&quot;active&quot;===this._state&amp;&amp;this.fire(new t.Event(&quot;dragend&quot;)),this._state=&quot;inactive&quot;},n.prototype._addDragHandler=function(t){this._element.contains(t.originalEvent.target)&amp;&amp;(t.preventDefault(),this._positionDelta=t.point.sub(this._pos).add(this._offset),this._state=&quot;pending&quot;,this._map.on(&quot;mousemove&quot;,this._onMove),this._map.on(&quot;touchmove&quot;,this._onMove),this._map.once(&quot;mouseup&quot;,this._onUp),this._map.once(&quot;touchend&quot;,this._onUp))},n.prototype.setDraggable=function(t){return this._draggable=!!t,this._map&amp;&amp;(t?(this._map.on(&quot;mousedown&quot;,this._addDragHandler),this._map.on(&quot;touchstart&quot;,this._addDragHandler)):(this._map.off(&quot;mousedown&quot;,this._addDragHandler),this._map.off(&quot;touchstart&quot;,this._addDragHandler))),this},n.prototype.isDraggable=function(){return this._draggable},n.prototype.setRotation=function(t){return this._rotation=t||0,this._update(),this},n.prototype.getRotation=function(){return this._rotation},n.prototype.setRotationAlignment=function(t){return this._rotationAlignment=t||&quot;auto&quot;,this._update(),this},n.prototype.getRotationAlignment=function(){return this._rotationAlignment},n.prototype.setPitchAlignment=function(t){return this._pitchAlignment=t&amp;&amp;&quot;auto&quot;!==t?t:this._rotationAlignment,this._update(),this},n.prototype.getPitchAlignment=function(){return this._pitchAlignment},n}(t.Evented),Di={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},Ri=0,Fi=!1,Bi=function(e){function n(r){e.call(this),this.options=t.extend({},Di,r),t.bindAll([&quot;_onSuccess&quot;,&quot;_onError&quot;,&quot;_onZoom&quot;,&quot;_finish&quot;,&quot;_setupUI&quot;,&quot;_updateCamera&quot;,&quot;_updateMarker&quot;],this)}return e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n,n.prototype.onAdd=function(e){var n;return this._map=e,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),n=this._setupUI,void 0!==zi?n(zi):void 0!==t.window.navigator.permissions?t.window.navigator.permissions.query({name:&quot;geolocation&quot;}).then((function(t){n(zi=&quot;denied&quot;!==t.state)})):n(zi=!!t.window.navigator.geolocation),this._container},n.prototype.onRemove=function(){void 0!==this._geolocationWatchID&amp;&amp;(t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&amp;&amp;this._userLocationDotMarker&amp;&amp;this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&amp;&amp;this._accuracyCircleMarker&amp;&amp;this._accuracyCircleMarker.remove(),r.remove(this._container),this._map.off(&quot;zoom&quot;,this._onZoom),this._map=void 0,Ri=0,Fi=!1},n.prototype._isOutOfMapMaxBounds=function(t){var e=this._map.getMaxBounds(),r=t.coords;return e&amp;&amp;(r.longitude&lt;e.getWest()||r.longitude&gt;e.getEast()||r.latitude&lt;e.getSouth()||r.latitude&gt;e.getNorth())},n.prototype._setErrorState=function(){switch(this._watchState){case&quot;WAITING_ACTIVE&quot;:this._watchState=&quot;ACTIVE_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;);break;case&quot;ACTIVE_LOCK&quot;:this._watchState=&quot;ACTIVE_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;);break;case&quot;BACKGROUND&quot;:this._watchState=&quot;BACKGROUND_ERROR&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;)}},n.prototype._onSuccess=function(e){if(this._map){if(this._isOutOfMapMaxBounds(e))return this._setErrorState(),this.fire(new t.Event(&quot;outofmaxbounds&quot;,e)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=e,this._watchState){case&quot;WAITING_ACTIVE&quot;:case&quot;ACTIVE_LOCK&quot;:case&quot;ACTIVE_ERROR&quot;:this._watchState=&quot;ACTIVE_LOCK&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;BACKGROUND&quot;:case&quot;BACKGROUND_ERROR&quot;:this._watchState=&quot;BACKGROUND&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;)}this.options.showUserLocation&amp;&amp;&quot;OFF&quot;!==this._watchState&amp;&amp;this._updateMarker(e),this.options.trackUserLocation&amp;&amp;&quot;ACTIVE_LOCK&quot;!==this._watchState||this._updateCamera(e),this.options.showUserLocation&amp;&amp;this._dotElement.classList.remove(&quot;mapboxgl-user-location-dot-stale&quot;),this.fire(new t.Event(&quot;geolocate&quot;,e)),this._finish()}},n.prototype._updateCamera=function(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude),n=e.coords.accuracy,i=this._map.getBearing(),a=t.extend({bearing:i},this.options.fitBoundsOptions);this._map.fitBounds(r.toBounds(n),a,{geolocateSource:!0})},n.prototype._updateMarker=function(e){if(e){var r=new t.LngLat(e.coords.longitude,e.coords.latitude);this._accuracyCircleMarker.setLngLat(r).addTo(this._map),this._userLocationDotMarker.setLngLat(r).addTo(this._map),this._accuracy=e.coords.accuracy,this.options.showUserLocation&amp;&amp;this.options.showAccuracyCircle&amp;&amp;this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},n.prototype._updateCircleRadius=function(){var t=this._map._container.clientHeight/2,e=this._map.unproject([0,t]),r=this._map.unproject([1,t]),n=e.distanceTo(r),i=Math.ceil(2*this._accuracy/n);this._circleElement.style.width=i+&quot;px&quot;,this._circleElement.style.height=i+&quot;px&quot;},n.prototype._onZoom=function(){this.options.showUserLocation&amp;&amp;this.options.showAccuracyCircle&amp;&amp;this._updateCircleRadius()},n.prototype._onError=function(e){if(this._map){if(this.options.trackUserLocation)if(1===e.code){this._watchState=&quot;OFF&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this._geolocateButton.disabled=!0;var r=this._map._getUIString(&quot;GeolocateControl.LocationNotAvailable&quot;);this._geolocateButton.title=r,this._geolocateButton.setAttribute(&quot;aria-label&quot;,r),void 0!==this._geolocationWatchID&amp;&amp;this._clearWatch()}else{if(3===e.code&amp;&amp;Fi)return;this._setErrorState()}&quot;OFF&quot;!==this._watchState&amp;&amp;this.options.showUserLocation&amp;&amp;this._dotElement.classList.add(&quot;mapboxgl-user-location-dot-stale&quot;),this.fire(new t.Event(&quot;error&quot;,e)),this._finish()}},n.prototype._finish=function(){this._timeoutId&amp;&amp;clearTimeout(this._timeoutId),this._timeoutId=void 0},n.prototype._setupUI=function(e){var n=this;if(this._container.addEventListener(&quot;contextmenu&quot;,(function(t){return t.preventDefault()})),this._geolocateButton=r.create(&quot;button&quot;,&quot;mapboxgl-ctrl-geolocate&quot;,this._container),r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,this._geolocateButton).setAttribute(&quot;aria-hidden&quot;,!0),this._geolocateButton.type=&quot;button&quot;,!1===e){t.warnOnce(&quot;Geolocation support is not available so the GeolocateControl will be disabled.&quot;);var i=this._map._getUIString(&quot;GeolocateControl.LocationNotAvailable&quot;);this._geolocateButton.disabled=!0,this._geolocateButton.title=i,this._geolocateButton.setAttribute(&quot;aria-label&quot;,i)}else{var a=this._map._getUIString(&quot;GeolocateControl.FindMyLocation&quot;);this._geolocateButton.title=a,this._geolocateButton.setAttribute(&quot;aria-label&quot;,a)}this.options.trackUserLocation&amp;&amp;(this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;false&quot;),this._watchState=&quot;OFF&quot;),this.options.showUserLocation&amp;&amp;(this._dotElement=r.create(&quot;div&quot;,&quot;mapboxgl-user-location-dot&quot;),this._userLocationDotMarker=new Oi(this._dotElement),this._circleElement=r.create(&quot;div&quot;,&quot;mapboxgl-user-location-accuracy-circle&quot;),this._accuracyCircleMarker=new Oi({element:this._circleElement,pitchAlignment:&quot;map&quot;}),this.options.trackUserLocation&amp;&amp;(this._watchState=&quot;OFF&quot;),this._map.on(&quot;zoom&quot;,this._onZoom)),this._geolocateButton.addEventListener(&quot;click&quot;,this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&amp;&amp;this._map.on(&quot;movestart&quot;,(function(e){e.geolocateSource||&quot;ACTIVE_LOCK&quot;!==n._watchState||e.originalEvent&amp;&amp;&quot;resize&quot;===e.originalEvent.type||(n._watchState=&quot;BACKGROUND&quot;,n._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;),n._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),n.fire(new t.Event(&quot;trackuserlocationend&quot;)))}))},n.prototype.trigger=function(){if(!this._setup)return t.warnOnce(&quot;Geolocate control triggered before added to a map&quot;),!1;if(this.options.trackUserLocation){switch(this._watchState){case&quot;OFF&quot;:this._watchState=&quot;WAITING_ACTIVE&quot;,this.fire(new t.Event(&quot;trackuserlocationstart&quot;));break;case&quot;WAITING_ACTIVE&quot;:case&quot;ACTIVE_LOCK&quot;:case&quot;ACTIVE_ERROR&quot;:case&quot;BACKGROUND_ERROR&quot;:Ri--,Fi=!1,this._watchState=&quot;OFF&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-active-error&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background-error&quot;),this.fire(new t.Event(&quot;trackuserlocationend&quot;));break;case&quot;BACKGROUND&quot;:this._watchState=&quot;ACTIVE_LOCK&quot;,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-background&quot;),this._lastKnownPosition&amp;&amp;this._updateCamera(this._lastKnownPosition),this.fire(new t.Event(&quot;trackuserlocationstart&quot;))}switch(this._watchState){case&quot;WAITING_ACTIVE&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;ACTIVE_LOCK&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active&quot;);break;case&quot;ACTIVE_ERROR&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-active-error&quot;);break;case&quot;BACKGROUND&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background&quot;);break;case&quot;BACKGROUND_ERROR&quot;:this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-background-error&quot;)}if(&quot;OFF&quot;===this._watchState&amp;&amp;void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){var e;this._geolocateButton.classList.add(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;true&quot;),++Ri&gt;1?(e={maximumAge:6e5,timeout:0},Fi=!0):(e=this.options.positionOptions,Fi=!1),this._geolocationWatchID=t.window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else t.window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0},n.prototype._clearWatch=function(){t.window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove(&quot;mapboxgl-ctrl-geolocate-waiting&quot;),this._geolocateButton.setAttribute(&quot;aria-pressed&quot;,&quot;false&quot;),this.options.showUserLocation&amp;&amp;this._updateMarker(null)},n}(t.Evented),Ni={maxWidth:100,unit:&quot;metric&quot;},ji=function(e){this.options=t.extend({},Ni,e),t.bindAll([&quot;_onMove&quot;,&quot;setUnit&quot;],this)};function Ui(t,e,r){var n=r&amp;&amp;r.maxWidth||100,i=t._container.clientHeight/2,a=t.unproject([0,i]),o=t.unproject([n,i]),s=a.distanceTo(o);if(r&amp;&amp;&quot;imperial&quot;===r.unit){var l=3.2808*s;l&gt;5280?Vi(e,n,l/5280,t._getUIString(&quot;ScaleControl.Miles&quot;)):Vi(e,n,l,t._getUIString(&quot;ScaleControl.Feet&quot;))}else r&amp;&amp;&quot;nautical&quot;===r.unit?Vi(e,n,s/1852,t._getUIString(&quot;ScaleControl.NauticalMiles&quot;)):s&gt;=1e3?Vi(e,n,s/1e3,t._getUIString(&quot;ScaleControl.Kilometers&quot;)):Vi(e,n,s,t._getUIString(&quot;ScaleControl.Meters&quot;))}function Vi(t,e,r,n){var i,a,o,s=(i=r,(a=Math.pow(10,(&quot;&quot;+Math.floor(i)).length-1))*(o=(o=i/a)&gt;=10?10:o&gt;=5?5:o&gt;=3?3:o&gt;=2?2:o&gt;=1?1:function(t){var e=Math.pow(10,Math.ceil(-Math.log(t)/Math.LN10));return Math.round(t*e)/e}(o)));t.style.width=e*(s/r)+&quot;px&quot;,t.innerHTML=s+&quot;&amp;nbsp;&quot;+n}ji.prototype.getDefaultPosition=function(){return&quot;bottom-left&quot;},ji.prototype._onMove=function(){Ui(this._map,this._container,this.options)},ji.prototype.onAdd=function(t){return this._map=t,this._container=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-scale&quot;,t.getContainer()),this._map.on(&quot;move&quot;,this._onMove),this._onMove(),this._container},ji.prototype.onRemove=function(){r.remove(this._container),this._map.off(&quot;move&quot;,this._onMove),this._map=void 0},ji.prototype.setUnit=function(t){this.options.unit=t,Ui(this._map,this._container,this.options)};var qi=function(e){this._fullscreen=!1,e&amp;&amp;e.container&amp;&amp;(e.container instanceof t.window.HTMLElement?this._container=e.container:t.warnOnce(&quot;Full screen control 'container' must be a DOM element.&quot;)),t.bindAll([&quot;_onClickFullscreen&quot;,&quot;_changeIcon&quot;],this),&quot;onfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;fullscreenchange&quot;:&quot;onmozfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;mozfullscreenchange&quot;:&quot;onwebkitfullscreenchange&quot;in t.window.document?this._fullscreenchange=&quot;webkitfullscreenchange&quot;:&quot;onmsfullscreenchange&quot;in t.window.document&amp;&amp;(this._fullscreenchange=&quot;MSFullscreenChange&quot;)};qi.prototype.onAdd=function(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=r.create(&quot;div&quot;,&quot;mapboxgl-ctrl mapboxgl-ctrl-group&quot;),this._checkFullscreenSupport()?this._setupUI():(this._controlContainer.style.display=&quot;none&quot;,t.warnOnce(&quot;This device does not support fullscreen mode.&quot;)),this._controlContainer},qi.prototype.onRemove=function(){r.remove(this._controlContainer),this._map=null,t.window.document.removeEventListener(this._fullscreenchange,this._changeIcon)},qi.prototype._checkFullscreenSupport=function(){return!!(t.window.document.fullscreenEnabled||t.window.document.mozFullScreenEnabled||t.window.document.msFullscreenEnabled||t.window.document.webkitFullscreenEnabled)},qi.prototype._setupUI=function(){var e=this._fullscreenButton=r.create(&quot;button&quot;,&quot;mapboxgl-ctrl-fullscreen&quot;,this._controlContainer);r.create(&quot;span&quot;,&quot;mapboxgl-ctrl-icon&quot;,e).setAttribute(&quot;aria-hidden&quot;,!0),e.type=&quot;button&quot;,this._updateTitle(),this._fullscreenButton.addEventListener(&quot;click&quot;,this._onClickFullscreen),t.window.document.addEventListener(this._fullscreenchange,this._changeIcon)},qi.prototype._updateTitle=function(){var t=this._getTitle();this._fullscreenButton.setAttribute(&quot;aria-label&quot;,t),this._fullscreenButton.title=t},qi.prototype._getTitle=function(){return this._map._getUIString(this._isFullscreen()?&quot;FullscreenControl.Exit&quot;:&quot;FullscreenControl.Enter&quot;)},qi.prototype._isFullscreen=function(){return this._fullscreen},qi.prototype._changeIcon=function(){(t.window.document.fullscreenElement||t.window.document.mozFullScreenElement||t.window.document.webkitFullscreenElement||t.window.document.msFullscreenElement)===this._container!==this._fullscreen&amp;&amp;(this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle(&quot;mapboxgl-ctrl-shrink&quot;),this._fullscreenButton.classList.toggle(&quot;mapboxgl-ctrl-fullscreen&quot;),this._updateTitle())},qi.prototype._onClickFullscreen=function(){this._isFullscreen()?t.window.document.exitFullscreen?t.window.document.exitFullscreen():t.window.document.mozCancelFullScreen?t.window.document.mozCancelFullScreen():t.window.document.msExitFullscreen?t.window.document.msExitFullscreen():t.window.document.webkitCancelFullScreen&amp;&amp;t.window.document.webkitCancelFullScreen():this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen&amp;&amp;this._container.webkitRequestFullscreen()};var Hi={closeButton:!0,closeOnClick:!0,className:&quot;&quot;,maxWidth:&quot;240px&quot;},Gi=function(e){function n(r){e.call(this),this.options=t.extend(Object.create(Hi),r),t.bindAll([&quot;_update&quot;,&quot;_onClose&quot;,&quot;remove&quot;,&quot;_onMouseMove&quot;,&quot;_onMouseUp&quot;,&quot;_onDrag&quot;],this)}return e&amp;&amp;(n.__proto__=e),(n.prototype=Object.create(e&amp;&amp;e.prototype)).constructor=n,n.prototype.addTo=function(e){return this._map&amp;&amp;this.remove(),this._map=e,this.options.closeOnClick&amp;&amp;this._map.on(&quot;click&quot;,this._onClose),this.options.closeOnMove&amp;&amp;this._map.on(&quot;move&quot;,this._onClose),this._map.on(&quot;remove&quot;,this.remove),this._update(),this._trackPointer?(this._map.on(&quot;mousemove&quot;,this._onMouseMove),this._map.on(&quot;mouseup&quot;,this._onMouseUp),this._container&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.add(&quot;mapboxgl-track-pointer&quot;)):this._map.on(&quot;move&quot;,this._update),this.fire(new t.Event(&quot;open&quot;)),this},n.prototype.isOpen=function(){return!!this._map},n.prototype.remove=function(){return this._content&amp;&amp;r.remove(this._content),this._container&amp;&amp;(r.remove(this._container),delete this._container),this._map&amp;&amp;(this._map.off(&quot;move&quot;,this._update),this._map.off(&quot;move&quot;,this._onClose),this._map.off(&quot;click&quot;,this._onClose),this._map.off(&quot;remove&quot;,this.remove),this._map.off(&quot;mousemove&quot;,this._onMouseMove),this._map.off(&quot;mouseup&quot;,this._onMouseUp),this._map.off(&quot;drag&quot;,this._onDrag),delete this._map),this.fire(new t.Event(&quot;close&quot;)),this},n.prototype.getLngLat=function(){return this._lngLat},n.prototype.setLngLat=function(e){return this._lngLat=t.LngLat.convert(e),this._pos=null,this._trackPointer=!1,this._update(),this._map&amp;&amp;(this._map.on(&quot;move&quot;,this._update),this._map.off(&quot;mousemove&quot;,this._onMouseMove),this._container&amp;&amp;this._container.classList.remove(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.remove(&quot;mapboxgl-track-pointer&quot;)),this},n.prototype.trackPointer=function(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&amp;&amp;(this._map.off(&quot;move&quot;,this._update),this._map.on(&quot;mousemove&quot;,this._onMouseMove),this._map.on(&quot;drag&quot;,this._onDrag),this._container&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;),this._map._canvasContainer.classList.add(&quot;mapboxgl-track-pointer&quot;)),this},n.prototype.getElement=function(){return this._container},n.prototype.setText=function(e){return this.setDOMContent(t.window.document.createTextNode(e))},n.prototype.setHTML=function(e){var r,n=t.window.document.createDocumentFragment(),i=t.window.document.createElement(&quot;body&quot;);for(i.innerHTML=e;r=i.firstChild;)n.appendChild(r);return this.setDOMContent(n)},n.prototype.getMaxWidth=function(){return this._container&amp;&amp;this._container.style.maxWidth},n.prototype.setMaxWidth=function(t){return this.options.maxWidth=t,this._update(),this},n.prototype.setDOMContent=function(t){return this._createContent(),this._content.appendChild(t),this._update(),this},n.prototype.addClassName=function(t){this._container&amp;&amp;this._container.classList.add(t)},n.prototype.removeClassName=function(t){this._container&amp;&amp;this._container.classList.remove(t)},n.prototype.toggleClassName=function(t){if(this._container)return this._container.classList.toggle(t)},n.prototype._createContent=function(){this._content&amp;&amp;r.remove(this._content),this._content=r.create(&quot;div&quot;,&quot;mapboxgl-popup-content&quot;,this._container),this.options.closeButton&amp;&amp;(this._closeButton=r.create(&quot;button&quot;,&quot;mapboxgl-popup-close-button&quot;,this._content),this._closeButton.type=&quot;button&quot;,this._closeButton.setAttribute(&quot;aria-label&quot;,&quot;Close popup&quot;),this._closeButton.innerHTML=&quot;&amp;#215;&quot;,this._closeButton.addEventListener(&quot;click&quot;,this._onClose))},n.prototype._onMouseUp=function(t){this._update(t.point)},n.prototype._onMouseMove=function(t){this._update(t.point)},n.prototype._onDrag=function(t){this._update(t.point)},n.prototype._update=function(e){var n=this;if(this._map&amp;&amp;(this._lngLat||this._trackPointer)&amp;&amp;this._content&amp;&amp;(this._container||(this._container=r.create(&quot;div&quot;,&quot;mapboxgl-popup&quot;,this._map.getContainer()),this._tip=r.create(&quot;div&quot;,&quot;mapboxgl-popup-tip&quot;,this._container),this._container.appendChild(this._content),this.options.className&amp;&amp;this.options.className.split(&quot; &quot;).forEach((function(t){return n._container.classList.add(t)})),this._trackPointer&amp;&amp;this._container.classList.add(&quot;mapboxgl-popup-track-pointer&quot;)),this.options.maxWidth&amp;&amp;this._container.style.maxWidth!==this.options.maxWidth&amp;&amp;(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&amp;&amp;!this._trackPointer&amp;&amp;(this._lngLat=Li(this._lngLat,this._pos,this._map.transform)),!this._trackPointer||e)){var i=this._pos=this._trackPointer&amp;&amp;e?e:this._map.project(this._lngLat),a=this.options.anchor,o=function e(r){if(r){if(&quot;number&quot;==typeof r){var n=Math.round(Math.sqrt(.5*Math.pow(r,2)));return{center:new t.Point(0,0),top:new t.Point(0,r),&quot;top-left&quot;:new t.Point(n,n),&quot;top-right&quot;:new t.Point(-n,n),bottom:new t.Point(0,-r),&quot;bottom-left&quot;:new t.Point(n,-n),&quot;bottom-right&quot;:new t.Point(-n,-n),left:new t.Point(r,0),right:new t.Point(-r,0)}}if(r instanceof t.Point||Array.isArray(r)){var i=t.Point.convert(r);return{center:i,top:i,&quot;top-left&quot;:i,&quot;top-right&quot;:i,bottom:i,&quot;bottom-left&quot;:i,&quot;bottom-right&quot;:i,left:i,right:i}}return{center:t.Point.convert(r.center||[0,0]),top:t.Point.convert(r.top||[0,0]),&quot;top-left&quot;:t.Point.convert(r[&quot;top-left&quot;]||[0,0]),&quot;top-right&quot;:t.Point.convert(r[&quot;top-right&quot;]||[0,0]),bottom:t.Point.convert(r.bottom||[0,0]),&quot;bottom-left&quot;:t.Point.convert(r[&quot;bottom-left&quot;]||[0,0]),&quot;bottom-right&quot;:t.Point.convert(r[&quot;bottom-right&quot;]||[0,0]),left:t.Point.convert(r.left||[0,0]),right:t.Point.convert(r.right||[0,0])}}return e(new t.Point(0,0))}(this.options.offset);if(!a){var s,l=this._container.offsetWidth,c=this._container.offsetHeight;s=i.y+o.bottom.y&lt;c?[&quot;top&quot;]:i.y&gt;this._map.transform.height-c?[&quot;bottom&quot;]:[],i.x&lt;l/2?s.push(&quot;left&quot;):i.x&gt;this._map.transform.width-l/2&amp;&amp;s.push(&quot;right&quot;),a=0===s.length?&quot;bottom&quot;:s.join(&quot;-&quot;)}var u=i.add(o[a]).round();r.setTransform(this._container,Ii[a]+&quot; translate(&quot;+u.x+&quot;px,&quot;+u.y+&quot;px)&quot;),Pi(this._container,a,&quot;popup&quot;)}},n.prototype._onClose=function(){this.remove()},n}(t.Evented),Yi={version:t.version,supported:e,setRTLTextPlugin:t.setRTLTextPlugin,getRTLTextPluginStatus:t.getRTLTextPluginStatus,Map:Mi,NavigationControl:Ei,GeolocateControl:Bi,AttributionControl:vi,ScaleControl:ji,FullscreenControl:qi,Popup:Gi,Marker:Oi,Style:qe,LngLat:t.LngLat,LngLatBounds:t.LngLatBounds,Point:t.Point,MercatorCoordinate:t.MercatorCoordinate,Evented:t.Evented,config:t.config,prewarm:function(){Bt().acquire(Ot)},clearPrewarmedResources:function(){var t=Rt;t&amp;&amp;(t.isPreloaded()&amp;&amp;1===t.numActive()?(t.release(Ot),Rt=null):console.warn(&quot;Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()&quot;))},get accessToken(){return t.config.ACCESS_TOKEN},set accessToken(e){t.config.ACCESS_TOKEN=e},get baseApiUrl(){return t.config.API_URL},set baseApiUrl(e){t.config.API_URL=e},get workerCount(){return Dt.workerCount},set workerCount(t){Dt.workerCount=t},get maxParallelImageRequests(){return t.config.MAX_PARALLEL_IMAGE_REQUESTS},set maxParallelImageRequests(e){t.config.MAX_PARALLEL_IMAGE_REQUESTS=e},clearStorage:function(e){t.clearTileCache(e)},workerUrl:&quot;&quot;};return Yi})),r}))},{}],474:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=1&lt;&lt;t+1,r=new Array(e),n=0;n&lt;e;++n)r[n]=a(t,n);return r};var n=t(&quot;convex-hull&quot;);function i(t,e,r){for(var n=new Array(t),i=0;i&lt;t;++i)n[i]=0,i===e&amp;&amp;(n[i]+=.5),i===r&amp;&amp;(n[i]+=.5);return n}function a(t,e){if(0===e||e===(1&lt;&lt;t+1)-1)return[];for(var r=[],a=[],o=0;o&lt;=t;++o)if(e&amp;1&lt;&lt;o){r.push(i(t,o-1,o-1)),a.push(null);for(var s=0;s&lt;=t;++s)~e&amp;1&lt;&lt;s&amp;&amp;(r.push(i(t,o-1,s-1)),a.push([o,s]))}var l=n(r),c=[];t:for(o=0;o&lt;l.length;++o){var u=l[o],f=[];for(s=0;s&lt;u.length;++s){if(!a[u[s]])continue t;f.push(a[u[s]].slice())}c.push(f)}return c}},{&quot;convex-hull&quot;:135}],475:[function(t,e,r){var n=t(&quot;./normalize&quot;),i=t(&quot;gl-mat4/create&quot;),a=t(&quot;gl-mat4/clone&quot;),o=t(&quot;gl-mat4/determinant&quot;),s=t(&quot;gl-mat4/invert&quot;),l=t(&quot;gl-mat4/transpose&quot;),c={length:t(&quot;gl-vec3/length&quot;),normalize:t(&quot;gl-vec3/normalize&quot;),dot:t(&quot;gl-vec3/dot&quot;),cross:t(&quot;gl-vec3/cross&quot;)},u=i(),f=i(),h=[0,0,0,0],p=[[0,0,0],[0,0,0],[0,0,0]],d=[0,0,0];function g(t,e,r,n,i){t[0]=e[0]*n+r[0]*i,t[1]=e[1]*n+r[1]*i,t[2]=e[2]*n+r[2]*i}e.exports=function(t,e,r,i,m,v){if(e||(e=[0,0,0]),r||(r=[0,0,0]),i||(i=[0,0,0]),m||(m=[0,0,0,1]),v||(v=[0,0,0,1]),!n(u,t))return!1;if(a(f,u),f[3]=0,f[7]=0,f[11]=0,f[15]=1,Math.abs(o(f)&lt;1e-8))return!1;var y,x,b,_,w,T,k,M=u[3],A=u[7],S=u[11],E=u[12],C=u[13],L=u[14],I=u[15];if(0!==M||0!==A||0!==S){if(h[0]=M,h[1]=A,h[2]=S,h[3]=I,!s(f,f))return!1;l(f,f),y=m,b=f,_=(x=h)[0],w=x[1],T=x[2],k=x[3],y[0]=b[0]*_+b[4]*w+b[8]*T+b[12]*k,y[1]=b[1]*_+b[5]*w+b[9]*T+b[13]*k,y[2]=b[2]*_+b[6]*w+b[10]*T+b[14]*k,y[3]=b[3]*_+b[7]*w+b[11]*T+b[15]*k}else m[0]=m[1]=m[2]=0,m[3]=1;if(e[0]=E,e[1]=C,e[2]=L,function(t,e){t[0][0]=e[0],t[0][1]=e[1],t[0][2]=e[2],t[1][0]=e[4],t[1][1]=e[5],t[1][2]=e[6],t[2][0]=e[8],t[2][1]=e[9],t[2][2]=e[10]}(p,u),r[0]=c.length(p[0]),c.normalize(p[0],p[0]),i[0]=c.dot(p[0],p[1]),g(p[1],p[1],p[0],1,-i[0]),r[1]=c.length(p[1]),c.normalize(p[1],p[1]),i[0]/=r[1],i[1]=c.dot(p[0],p[2]),g(p[2],p[2],p[0],1,-i[1]),i[2]=c.dot(p[1],p[2]),g(p[2],p[2],p[1],1,-i[2]),r[2]=c.length(p[2]),c.normalize(p[2],p[2]),i[1]/=r[2],i[2]/=r[2],c.cross(d,p[1],p[2]),c.dot(p[0],d)&lt;0)for(var P=0;P&lt;3;P++)r[P]*=-1,p[P][0]*=-1,p[P][1]*=-1,p[P][2]*=-1;return v[0]=.5*Math.sqrt(Math.max(1+p[0][0]-p[1][1]-p[2][2],0)),v[1]=.5*Math.sqrt(Math.max(1-p[0][0]+p[1][1]-p[2][2],0)),v[2]=.5*Math.sqrt(Math.max(1-p[0][0]-p[1][1]+p[2][2],0)),v[3]=.5*Math.sqrt(Math.max(1+p[0][0]+p[1][1]+p[2][2],0)),p[2][1]&gt;p[1][2]&amp;&amp;(v[0]=-v[0]),p[0][2]&gt;p[2][0]&amp;&amp;(v[1]=-v[1]),p[1][0]&gt;p[0][1]&amp;&amp;(v[2]=-v[2]),!0}},{&quot;./normalize&quot;:476,&quot;gl-mat4/clone&quot;:278,&quot;gl-mat4/create&quot;:280,&quot;gl-mat4/determinant&quot;:281,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/transpose&quot;:306,&quot;gl-vec3/cross&quot;:365,&quot;gl-vec3/dot&quot;:370,&quot;gl-vec3/length&quot;:380,&quot;gl-vec3/normalize&quot;:387}],476:[function(t,e,r){e.exports=function(t,e){var r=e[15];if(0===r)return!1;for(var n=1/r,i=0;i&lt;16;i++)t[i]=e[i]*n;return!0}},{}],477:[function(t,e,r){var n=t(&quot;gl-vec3/lerp&quot;),i=t(&quot;mat4-recompose&quot;),a=t(&quot;mat4-decompose&quot;),o=t(&quot;gl-mat4/determinant&quot;),s=t(&quot;quat-slerp&quot;),l=f(),c=f(),u=f();function f(){return{translate:h(),scale:h(1),skew:h(),perspective:[0,0,0,1],quaternion:[0,0,0,1]}}function h(t){return[t||0,t||0,t||0]}e.exports=function(t,e,r,f){if(0===o(e)||0===o(r))return!1;var h=a(e,l.translate,l.scale,l.skew,l.perspective,l.quaternion),p=a(r,c.translate,c.scale,c.skew,c.perspective,c.quaternion);return!(!h||!p)&amp;&amp;(n(u.translate,l.translate,c.translate,f),n(u.skew,l.skew,c.skew,f),n(u.scale,l.scale,c.scale,f),n(u.perspective,l.perspective,c.perspective,f),s(u.quaternion,l.quaternion,c.quaternion,f),i(t,u.translate,u.scale,u.skew,u.perspective,u.quaternion),!0)}},{&quot;gl-mat4/determinant&quot;:281,&quot;gl-vec3/lerp&quot;:381,&quot;mat4-decompose&quot;:475,&quot;mat4-recompose&quot;:478,&quot;quat-slerp&quot;:527}],478:[function(t,e,r){var n={identity:t(&quot;gl-mat4/identity&quot;),translate:t(&quot;gl-mat4/translate&quot;),multiply:t(&quot;gl-mat4/multiply&quot;),create:t(&quot;gl-mat4/create&quot;),scale:t(&quot;gl-mat4/scale&quot;),fromRotationTranslation:t(&quot;gl-mat4/fromRotationTranslation&quot;)},i=(n.create(),n.create());e.exports=function(t,e,r,a,o,s){return n.identity(t),n.fromRotationTranslation(t,s,e),t[3]=o[0],t[7]=o[1],t[11]=o[2],t[15]=o[3],n.identity(i),0!==a[2]&amp;&amp;(i[9]=a[2],n.multiply(t,t,i)),0!==a[1]&amp;&amp;(i[9]=0,i[8]=a[1],n.multiply(t,t,i)),0!==a[0]&amp;&amp;(i[8]=0,i[4]=a[0],n.multiply(t,t,i)),n.scale(t,t,r),t}},{&quot;gl-mat4/create&quot;:280,&quot;gl-mat4/fromRotationTranslation&quot;:284,&quot;gl-mat4/identity&quot;:291,&quot;gl-mat4/multiply&quot;:295,&quot;gl-mat4/scale&quot;:303,&quot;gl-mat4/translate&quot;:305}],479:[function(t,e,r){&quot;use strict&quot;;e.exports=Math.log2||function(t){return Math.log(t)*Math.LOG2E}},{}],480:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;mat4-interpolate&quot;),a=t(&quot;gl-mat4/invert&quot;),o=t(&quot;gl-mat4/rotateX&quot;),s=t(&quot;gl-mat4/rotateY&quot;),l=t(&quot;gl-mat4/rotateZ&quot;),c=t(&quot;gl-mat4/lookAt&quot;),u=t(&quot;gl-mat4/translate&quot;),f=(t(&quot;gl-mat4/scale&quot;),t(&quot;gl-vec3/normalize&quot;)),h=[0,0,0];function p(t){this._components=t.slice(),this._time=[0],this.prevMatrix=t.slice(),this.nextMatrix=t.slice(),this.computedMatrix=t.slice(),this.computedInverse=t.slice(),this.computedEye=[0,0,0],this.computedUp=[0,0,0],this.computedCenter=[0,0,0],this.computedRadius=[0],this._limits=[-1/0,1/0]}e.exports=function(t){return new p((t=t||{}).matrix||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};var d=p.prototype;d.recalcMatrix=function(t){var e=this._time,r=n.le(e,t),o=this.computedMatrix;if(!(r&lt;0)){var s=this._components;if(r===e.length-1)for(var l=16*r,c=0;c&lt;16;++c)o[c]=s[l++];else{var u=e[r+1]-e[r],h=(l=16*r,this.prevMatrix),p=!0;for(c=0;c&lt;16;++c)h[c]=s[l++];var d=this.nextMatrix;for(c=0;c&lt;16;++c)d[c]=s[l++],p=p&amp;&amp;h[c]===d[c];if(u&lt;1e-6||p)for(c=0;c&lt;16;++c)o[c]=h[c];else i(o,h,d,(t-e[r])/u)}var g=this.computedUp;g[0]=o[1],g[1]=o[5],g[2]=o[9],f(g,g);var m=this.computedInverse;a(m,o);var v=this.computedEye,y=m[15];v[0]=m[12]/y,v[1]=m[13]/y,v[2]=m[14]/y;var x=this.computedCenter,b=Math.exp(this.computedRadius[0]);for(c=0;c&lt;3;++c)x[c]=v[c]-o[2+4*c]*b}},d.idle=function(t){if(!(t&lt;this.lastT())){for(var e=this._components,r=e.length-16,n=0;n&lt;16;++n)e.push(e[r++]);this._time.push(t)}},d.flush=function(t){var e=n.gt(this._time,t)-2;e&lt;0||(this._time.splice(0,e),this._components.splice(0,16*e))},d.lastT=function(){return this._time[this._time.length-1]},d.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||h,n=n||this.computedUp,this.setMatrix(t,c(this.computedMatrix,e,r,n));for(var i=0,a=0;a&lt;3;++a)i+=Math.pow(r[a]-e[a],2);i=Math.log(Math.sqrt(i)),this.computedRadius[0]=i},d.rotate=function(t,e,r,n){this.recalcMatrix(t);var i=this.computedInverse;e&amp;&amp;s(i,i,e),r&amp;&amp;o(i,i,r),n&amp;&amp;l(i,i,n),this.setMatrix(t,a(this.computedMatrix,i))};var g=[0,0,0];d.pan=function(t,e,r,n){g[0]=-(e||0),g[1]=-(r||0),g[2]=-(n||0),this.recalcMatrix(t);var i=this.computedInverse;u(i,i,g),this.setMatrix(t,a(i,i))},d.translate=function(t,e,r,n){g[0]=e||0,g[1]=r||0,g[2]=n||0,this.recalcMatrix(t);var i=this.computedMatrix;u(i,i,g),this.setMatrix(t,i)},d.setMatrix=function(t,e){if(!(t&lt;this.lastT())){this._time.push(t);for(var r=0;r&lt;16;++r)this._components.push(e[r])}},d.setDistance=function(t,e){this.computedRadius[0]=e},d.setDistanceLimits=function(t,e){var r=this._limits;r[0]=t,r[1]=e},d.getDistanceLimits=function(t){var e=this._limits;return t?(t[0]=e[0],t[1]=e[1],t):e}},{&quot;binary-search-bounds&quot;:481,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/lookAt&quot;:294,&quot;gl-mat4/rotateX&quot;:300,&quot;gl-mat4/rotateY&quot;:301,&quot;gl-mat4/rotateZ&quot;:302,&quot;gl-mat4/scale&quot;:303,&quot;gl-mat4/translate&quot;:305,&quot;gl-vec3/normalize&quot;:387,&quot;mat4-interpolate&quot;:477}],481:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],482:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(e&lt;3){for(var r=new Array(e),i=0;i&lt;e;++i)r[i]=i;return 2===e&amp;&amp;t[0][0]===t[1][0]&amp;&amp;t[0][1]===t[1][1]?[0]:r}var a=new Array(e);for(i=0;i&lt;e;++i)a[i]=i;a.sort((function(e,r){var n=t[e][0]-t[r][0];return n||t[e][1]-t[r][1]}));var o=[a[0],a[1]],s=[a[0],a[1]];for(i=2;i&lt;e;++i){for(var l=a[i],c=t[l],u=o.length;u&gt;1&amp;&amp;n(t[o[u-2]],t[o[u-1]],c)&lt;=0;)u-=1,o.pop();for(o.push(l),u=s.length;u&gt;1&amp;&amp;n(t[s[u-2]],t[s[u-1]],c)&gt;=0;)u-=1,s.pop();s.push(l)}r=new Array(s.length+o.length-2);for(var f=0,h=(i=0,o.length);i&lt;h;++i)r[f++]=o[i];for(var p=s.length-2;p&gt;0;--p)r[f++]=s[p];return r};var n=t(&quot;robust-orientation&quot;)[3]},{&quot;robust-orientation&quot;:548}],483:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){e||(e=t,t=window);var r=0,i=0,a=0,o={shift:!1,alt:!1,control:!1,meta:!1},s=!1;function l(t){var e=!1;return&quot;altKey&quot;in t&amp;&amp;(e=e||t.altKey!==o.alt,o.alt=!!t.altKey),&quot;shiftKey&quot;in t&amp;&amp;(e=e||t.shiftKey!==o.shift,o.shift=!!t.shiftKey),&quot;ctrlKey&quot;in t&amp;&amp;(e=e||t.ctrlKey!==o.control,o.control=!!t.ctrlKey),&quot;metaKey&quot;in t&amp;&amp;(e=e||t.metaKey!==o.meta,o.meta=!!t.metaKey),e}function c(t,s){var c=n.x(s),u=n.y(s);&quot;buttons&quot;in s&amp;&amp;(t=0|s.buttons),(t!==r||c!==i||u!==a||l(s))&amp;&amp;(r=0|t,i=c||0,a=u||0,e&amp;&amp;e(r,i,a,o))}function u(t){c(0,t)}function f(){(r||i||a||o.shift||o.alt||o.meta||o.control)&amp;&amp;(i=a=0,r=0,o.shift=o.alt=o.control=o.meta=!1,e&amp;&amp;e(0,0,0,o))}function h(t){l(t)&amp;&amp;e&amp;&amp;e(r,i,a,o)}function p(t){0===n.buttons(t)?c(0,t):c(r,t)}function d(t){c(r|n.buttons(t),t)}function g(t){c(r&amp;~n.buttons(t),t)}function m(){s||(s=!0,t.addEventListener(&quot;mousemove&quot;,p),t.addEventListener(&quot;mousedown&quot;,d),t.addEventListener(&quot;mouseup&quot;,g),t.addEventListener(&quot;mouseleave&quot;,u),t.addEventListener(&quot;mouseenter&quot;,u),t.addEventListener(&quot;mouseout&quot;,u),t.addEventListener(&quot;mouseover&quot;,u),t.addEventListener(&quot;blur&quot;,f),t.addEventListener(&quot;keyup&quot;,h),t.addEventListener(&quot;keydown&quot;,h),t.addEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.addEventListener(&quot;blur&quot;,f),window.addEventListener(&quot;keyup&quot;,h),window.addEventListener(&quot;keydown&quot;,h),window.addEventListener(&quot;keypress&quot;,h)))}m();var v={element:t};return Object.defineProperties(v,{enabled:{get:function(){return s},set:function(e){e?m():function(){if(!s)return;s=!1,t.removeEventListener(&quot;mousemove&quot;,p),t.removeEventListener(&quot;mousedown&quot;,d),t.removeEventListener(&quot;mouseup&quot;,g),t.removeEventListener(&quot;mouseleave&quot;,u),t.removeEventListener(&quot;mouseenter&quot;,u),t.removeEventListener(&quot;mouseout&quot;,u),t.removeEventListener(&quot;mouseover&quot;,u),t.removeEventListener(&quot;blur&quot;,f),t.removeEventListener(&quot;keyup&quot;,h),t.removeEventListener(&quot;keydown&quot;,h),t.removeEventListener(&quot;keypress&quot;,h),t!==window&amp;&amp;(window.removeEventListener(&quot;blur&quot;,f),window.removeEventListener(&quot;keyup&quot;,h),window.removeEventListener(&quot;keydown&quot;,h),window.removeEventListener(&quot;keypress&quot;,h))}()},enumerable:!0},buttons:{get:function(){return r},enumerable:!0},x:{get:function(){return i},enumerable:!0},y:{get:function(){return a},enumerable:!0},mods:{get:function(){return o},enumerable:!0}}),v};var n=t(&quot;mouse-event&quot;)},{&quot;mouse-event&quot;:485}],484:[function(t,e,r){var n={left:0,top:0};e.exports=function(t,e,r){e=e||t.currentTarget||t.srcElement,Array.isArray(r)||(r=[0,0]);var i=t.clientX||0,a=t.clientY||0,o=(s=e,s===window||s===document||s===document.body?n:s.getBoundingClientRect());var s;return r[0]=i-o.left,r[1]=a-o.top,r}},{}],485:[function(t,e,r){&quot;use strict&quot;;function n(t){return t.target||t.srcElement||window}r.buttons=function(t){if(&quot;object&quot;==typeof t){if(&quot;buttons&quot;in t)return t.buttons;if(&quot;which&quot;in t){if(2===(e=t.which))return 4;if(3===e)return 2;if(e&gt;0)return 1&lt;&lt;e-1}else if(&quot;button&quot;in t){var e;if(1===(e=t.button))return 4;if(2===e)return 2;if(e&gt;=0)return 1&lt;&lt;e}}return 0},r.element=n,r.x=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetX&quot;in t)return t.offsetX;var e=n(t).getBoundingClientRect();return t.clientX-e.left}return 0},r.y=function(t){if(&quot;object&quot;==typeof t){if(&quot;offsetY&quot;in t)return t.offsetY;var e=n(t).getBoundingClientRect();return t.clientY-e.top}return 0}},{}],486:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;to-px&quot;);e.exports=function(t,e,r){&quot;function&quot;==typeof t&amp;&amp;(r=!!e,e=t,t=window);var i=n(&quot;ex&quot;,t),a=function(t){r&amp;&amp;t.preventDefault();var n=t.deltaX||0,a=t.deltaY||0,o=t.deltaZ||0,s=1;switch(t.deltaMode){case 1:s=i;break;case 2:s=window.innerHeight}if(a*=s,o*=s,(n*=s)||a||o)return e(n,a,o,t)};return t.addEventListener(&quot;wheel&quot;,a),a}},{&quot;to-px&quot;:578}],487:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;);function i(t){return&quot;a&quot;+t}function a(t){return&quot;d&quot;+t}function o(t,e){return&quot;c&quot;+t+&quot;_&quot;+e}function s(t){return&quot;s&quot;+t}function l(t,e){return&quot;t&quot;+t+&quot;_&quot;+e}function c(t){return&quot;o&quot;+t}function u(t){return&quot;x&quot;+t}function f(t){return&quot;p&quot;+t}function h(t,e){return&quot;d&quot;+t+&quot;_&quot;+e}function p(t){return&quot;i&quot;+t}function d(t,e){return&quot;u&quot;+t+&quot;_&quot;+e}function g(t){return&quot;b&quot;+t}function m(t){return&quot;y&quot;+t}function v(t){return&quot;e&quot;+t}function y(t){return&quot;v&quot;+t}e.exports=function(t){function e(t){throw new Error(&quot;ndarray-extract-contour: &quot;+t)}&quot;object&quot;!=typeof t&amp;&amp;e(&quot;Must specify arguments&quot;);var r=t.order;Array.isArray(r)||e(&quot;Must specify order&quot;);var b=t.arrayArguments||1;b&lt;1&amp;&amp;e(&quot;Must have at least one array argument&quot;);var _=t.scalarArguments||0;_&lt;0&amp;&amp;e(&quot;Scalar arg count must be &gt; 0&quot;);&quot;function&quot;!=typeof t.vertex&amp;&amp;e(&quot;Must specify vertex creation function&quot;);&quot;function&quot;!=typeof t.cell&amp;&amp;e(&quot;Must specify cell creation function&quot;);&quot;function&quot;!=typeof t.phase&amp;&amp;e(&quot;Must specify phase function&quot;);for(var w=t.getters||[],T=new Array(b),k=0;k&lt;b;++k)w.indexOf(k)&gt;=0?T[k]=!0:T[k]=!1;return function(t,e,r,b,_,w){var T=w.length,k=_.length;if(k&lt;2)throw new Error(&quot;ndarray-extract-contour: Dimension must be at least 2&quot;);for(var M=&quot;extractContour&quot;+_.join(&quot;_&quot;),A=[],S=[],E=[],C=0;C&lt;T;++C)E.push(i(C));for(C=0;C&lt;b;++C)E.push(u(C));for(C=0;C&lt;k;++C)S.push(s(C)+&quot;=&quot;+i(0)+&quot;.shape[&quot;+C+&quot;]|0&quot;);for(C=0;C&lt;T;++C){S.push(a(C)+&quot;=&quot;+i(C)+&quot;.data&quot;,c(C)+&quot;=&quot;+i(C)+&quot;.offset|0&quot;);for(var L=0;L&lt;k;++L)S.push(l(C,L)+&quot;=&quot;+i(C)+&quot;.stride[&quot;+L+&quot;]|0&quot;)}for(C=0;C&lt;T;++C){S.push(f(C)+&quot;=&quot;+c(C)),S.push(o(C,0));for(L=1;L&lt;1&lt;&lt;k;++L){for(var I=[],P=0;P&lt;k;++P)L&amp;1&lt;&lt;P&amp;&amp;I.push(&quot;-&quot;+l(C,P));S.push(h(C,L)+&quot;=(&quot;+I.join(&quot;&quot;)+&quot;)|0&quot;),S.push(o(C,L)+&quot;=0&quot;)}}for(C=0;C&lt;T;++C)for(L=0;L&lt;k;++L){var z=[l(C,_[L])];L&gt;0&amp;&amp;z.push(l(C,_[L-1])+&quot;*&quot;+s(_[L-1])),S.push(d(C,_[L])+&quot;=(&quot;+z.join(&quot;-&quot;)+&quot;)|0&quot;)}for(C=0;C&lt;k;++C)S.push(p(C)+&quot;=0&quot;);S.push(&quot;N=0&quot;);var O=[&quot;2&quot;];for(C=k-2;C&gt;=0;--C)O.push(s(_[C]));S.push(&quot;Q=(&quot;+O.join(&quot;*&quot;)+&quot;)|0&quot;,&quot;P=mallocUint32(Q)&quot;,&quot;V=mallocUint32(Q)&quot;,&quot;X=0&quot;),S.push(g(0)+&quot;=0&quot;);for(L=1;L&lt;1&lt;&lt;k;++L){var D=[],R=[];for(P=0;P&lt;k;++P)L&amp;1&lt;&lt;P&amp;&amp;(0===R.length?D.push(&quot;1&quot;):D.unshift(R.join(&quot;*&quot;))),R.push(s(_[P]));var F=&quot;&quot;;D[0].indexOf(s(_[k-2]))&lt;0&amp;&amp;(F=&quot;-&quot;);var B=x(k,L,_);S.push(v(B)+&quot;=(-&quot;+D.join(&quot;-&quot;)+&quot;)|0&quot;,m(B)+&quot;=(&quot;+F+D.join(&quot;-&quot;)+&quot;)|0&quot;,g(B)+&quot;=0&quot;)}function N(t,e){A.push(&quot;for(&quot;,p(_[t]),&quot;=&quot;,e,&quot;;&quot;,p(_[t]),&quot;&lt;&quot;,s(_[t]),&quot;;&quot;,&quot;++&quot;,p(_[t]),&quot;){&quot;)}function j(t){for(var e=0;e&lt;T;++e)A.push(f(e),&quot;+=&quot;,d(e,_[t]),&quot;;&quot;);A.push(&quot;}&quot;)}function U(){for(var t=1;t&lt;1&lt;&lt;k;++t)A.push(&quot;T&quot;,&quot;=&quot;,v(t),&quot;;&quot;,v(t),&quot;=&quot;,m(t),&quot;;&quot;,m(t),&quot;=&quot;,&quot;T&quot;,&quot;;&quot;)}S.push(y(0)+&quot;=0&quot;,&quot;T=0&quot;),function t(e,r){if(e&lt;0)!function(t){for(var e=0;e&lt;T;++e)w[e]?A.push(o(e,0),&quot;=&quot;,a(e),&quot;.get(&quot;,f(e),&quot;);&quot;):A.push(o(e,0),&quot;=&quot;,a(e),&quot;[&quot;,f(e),&quot;];&quot;);var r=[];for(e=0;e&lt;T;++e)r.push(o(e,0));for(e=0;e&lt;b;++e)r.push(u(e));A.push(g(0),&quot;=&quot;,&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;]=phase(&quot;,r.join(),&quot;);&quot;);for(var n=1;n&lt;1&lt;&lt;k;++n)A.push(g(n),&quot;=&quot;,&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;+&quot;,v(n),&quot;];&quot;);var i=[];for(n=1;n&lt;1&lt;&lt;k;++n)i.push(&quot;(&quot;+g(0)+&quot;!==&quot;+g(n)+&quot;)&quot;);A.push(&quot;if(&quot;,i.join(&quot;||&quot;),&quot;){&quot;);var s=[];for(e=0;e&lt;k;++e)s.push(p(e));for(e=0;e&lt;T;++e){s.push(o(e,0));for(n=1;n&lt;1&lt;&lt;k;++n)w[e]?A.push(o(e,n),&quot;=&quot;,a(e),&quot;.get(&quot;,f(e),&quot;+&quot;,h(e,n),&quot;);&quot;):A.push(o(e,n),&quot;=&quot;,a(e),&quot;[&quot;,f(e),&quot;+&quot;,h(e,n),&quot;];&quot;),s.push(o(e,n))}for(e=0;e&lt;1&lt;&lt;k;++e)s.push(g(e));for(e=0;e&lt;b;++e)s.push(u(e));A.push(&quot;vertex(&quot;,s.join(),&quot;);&quot;,y(0),&quot;=&quot;,&quot;V&quot;,&quot;[&quot;,&quot;X&quot;,&quot;]=&quot;,&quot;N&quot;,&quot;++;&quot;);var l=(1&lt;&lt;k)-1,c=g(l);for(n=0;n&lt;k;++n)if(0==(t&amp;~(1&lt;&lt;n))){for(var d=l^1&lt;&lt;n,m=g(d),x=[],_=d;_&gt;0;_=_-1&amp;d)x.push(&quot;V[X+&quot;+v(_)+&quot;]&quot;);x.push(y(0));for(_=0;_&lt;T;++_)1&amp;n?x.push(o(_,l),o(_,d)):x.push(o(_,d),o(_,l));1&amp;n?x.push(c,m):x.push(m,c);for(_=0;_&lt;b;++_)x.push(u(_));A.push(&quot;if(&quot;,c,&quot;!==&quot;,m,&quot;){&quot;,&quot;face(&quot;,x.join(),&quot;)}&quot;)}A.push(&quot;}&quot;,&quot;X&quot;,&quot;+=1;&quot;)}(r);else{!function(t){for(var e=t-1;e&gt;=0;--e)N(e,0);var r=[];for(e=0;e&lt;T;++e)w[e]?r.push(a(e)+&quot;.get(&quot;+f(e)+&quot;)&quot;):r.push(a(e)+&quot;[&quot;+f(e)+&quot;]&quot;);for(e=0;e&lt;b;++e)r.push(u(e));for(A.push(&quot;P&quot;,&quot;[&quot;,&quot;X&quot;,&quot;++]=phase(&quot;,r.join(),&quot;);&quot;),e=0;e&lt;t;++e)j(e);for(var n=0;n&lt;T;++n)A.push(f(n),&quot;+=&quot;,d(n,_[t]),&quot;;&quot;)}(e),A.push(&quot;if(&quot;,s(_[e]),&quot;&gt;0){&quot;,p(_[e]),&quot;=1;&quot;),t(e-1,r|1&lt;&lt;_[e]);for(var n=0;n&lt;T;++n)A.push(f(n),&quot;+=&quot;,d(n,_[e]),&quot;;&quot;);e===k-1&amp;&amp;(A.push(&quot;X&quot;,&quot;=0;&quot;),U()),N(e,2),t(e-1,r),e===k-1&amp;&amp;(A.push(&quot;if(&quot;,p(_[k-1]),&quot;&amp;1){&quot;,&quot;X&quot;,&quot;=0;}&quot;),U()),j(e),A.push(&quot;}&quot;)}}(k-1,0),A.push(&quot;freeUint32(&quot;,&quot;V&quot;,&quot;);freeUint32(&quot;,&quot;P&quot;,&quot;);&quot;);var V=[&quot;'use strict';&quot;,&quot;function &quot;,M,&quot;(&quot;,E.join(),&quot;){&quot;,&quot;var &quot;,S.join(),&quot;;&quot;,A.join(&quot;&quot;),&quot;}&quot;,&quot;return &quot;,M].join(&quot;&quot;);return new Function(&quot;vertex&quot;,&quot;face&quot;,&quot;phase&quot;,&quot;mallocUint32&quot;,&quot;freeUint32&quot;,V)(t,e,r,n.mallocUint32,n.freeUint32)}(t.vertex,t.cell,t.phase,_,r,T)};function x(t,e,r){for(var n=0,i=0;i&lt;t;++i)e&amp;1&lt;&lt;i&amp;&amp;(n|=1&lt;&lt;r[i]);return n}},{&quot;typedarray-pool&quot;:595}],488:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(Array.isArray(r)){if(r.length!==e.dimension)throw new Error(&quot;ndarray-gradient: invalid boundary conditions&quot;)}else r=n(e.dimension,&quot;string&quot;==typeof r?r:&quot;clamp&quot;);if(t.dimension!==e.dimension+1)throw new Error(&quot;ndarray-gradient: output dimension must be +1 input dimension&quot;);if(t.shape[e.dimension]!==e.dimension)throw new Error(&quot;ndarray-gradient: output shape must match input shape&quot;);for(var i=0;i&lt;e.dimension;++i)if(t.shape[i]!==e.shape[i])throw new Error(&quot;ndarray-gradient: shape mismatch&quot;);if(0===e.size)return t;if(e.dimension&lt;=0)return t.set(0),t;return function(t){var e=t.join();if(v=o[e])return v;var r=t.length,n=[&quot;function gradient(dst,src){var s=src.shape.slice();&quot;];function i(e){for(var i=r-e.length,a=[],o=[],s=[],l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0?s.push(&quot;0&quot;):e.indexOf(-(l+1))&gt;=0?s.push(&quot;s[&quot;+l+&quot;]-1&quot;):(s.push(&quot;-1&quot;),a.push(&quot;1&quot;),o.push(&quot;s[&quot;+l+&quot;]-2&quot;));var c=&quot;.lo(&quot;+a.join()+&quot;).hi(&quot;+o.join()+&quot;)&quot;;if(0===a.length&amp;&amp;(c=&quot;&quot;),i&gt;0){n.push(&quot;if(1&quot;);for(l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0||e.indexOf(-(l+1))&gt;=0||n.push(&quot;&amp;&amp;s[&quot;,l,&quot;]&gt;2&quot;);n.push(&quot;){grad&quot;,i,&quot;(src.pick(&quot;,s.join(),&quot;)&quot;,c);for(l=0;l&lt;r;++l)e.indexOf(l+1)&gt;=0||e.indexOf(-(l+1))&gt;=0||n.push(&quot;,dst.pick(&quot;,s.join(),&quot;,&quot;,l,&quot;)&quot;,c);n.push(&quot;);&quot;)}for(l=0;l&lt;e.length;++l){var u=Math.abs(e[l])-1,f=&quot;dst.pick(&quot;+s.join()+&quot;,&quot;+u+&quot;)&quot;+c;switch(t[u]){case&quot;clamp&quot;:var h=s.slice(),p=s.slice();e[l]&lt;0?h[u]=&quot;s[&quot;+u+&quot;]-2&quot;:p[u]=&quot;1&quot;,0===i?n.push(&quot;if(s[&quot;,u,&quot;]&gt;1){dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0.5*(src.get(&quot;,h.join(),&quot;)-src.get(&quot;,p.join(),&quot;)))}else{dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0)};&quot;):n.push(&quot;if(s[&quot;,u,&quot;]&gt;1){diff(&quot;,f,&quot;,src.pick(&quot;,h.join(),&quot;)&quot;,c,&quot;,src.pick(&quot;,p.join(),&quot;)&quot;,c,&quot;);}else{zero(&quot;,f,&quot;);};&quot;);break;case&quot;mirror&quot;:0===i?n.push(&quot;dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0);&quot;):n.push(&quot;zero(&quot;,f,&quot;);&quot;);break;case&quot;wrap&quot;:var d=s.slice(),g=s.slice();e[l]&lt;0?(d[u]=&quot;s[&quot;+u+&quot;]-2&quot;,g[u]=&quot;0&quot;):(d[u]=&quot;s[&quot;+u+&quot;]-1&quot;,g[u]=&quot;1&quot;),0===i?n.push(&quot;if(s[&quot;,u,&quot;]&gt;2){dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0.5*(src.get(&quot;,d.join(),&quot;)-src.get(&quot;,g.join(),&quot;)))}else{dst.set(&quot;,s.join(),&quot;,&quot;,u,&quot;,0)};&quot;):n.push(&quot;if(s[&quot;,u,&quot;]&gt;2){diff(&quot;,f,&quot;,src.pick(&quot;,d.join(),&quot;)&quot;,c,&quot;,src.pick(&quot;,g.join(),&quot;)&quot;,c,&quot;);}else{zero(&quot;,f,&quot;);};&quot;);break;default:throw new Error(&quot;ndarray-gradient: Invalid boundary condition&quot;)}}i&gt;0&amp;&amp;n.push(&quot;};&quot;)}for(var s=0;s&lt;1&lt;&lt;r;++s){for(var f=[],h=0;h&lt;r;++h)s&amp;1&lt;&lt;h&amp;&amp;f.push(h+1);for(var p=0;p&lt;1&lt;&lt;f.length;++p){var d=f.slice();for(h=0;h&lt;f.length;++h)p&amp;1&lt;&lt;h&amp;&amp;(d[h]=-d[h]);i(d)}}n.push(&quot;return dst;};return gradient&quot;);var g=[&quot;diff&quot;,&quot;zero&quot;],m=[l,c];for(s=1;s&lt;=r;++s)g.push(&quot;grad&quot;+s),m.push(u(s));g.push(n.join(&quot;&quot;));var v=Function.apply(void 0,g).apply(void 0,m);return a[e]=v,v}(r)(t,e)};var n=t(&quot;dup&quot;),i=t(&quot;cwise-compiler&quot;),a={},o={},s={body:&quot;&quot;,args:[],thisVars:[],localVars:[]},l=i({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:s,post:s,body:{args:[{name:&quot;out&quot;,lvalue:!0,rvalue:!1,count:1},{name:&quot;left&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;right&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;out=0.5*(left-right)&quot;,thisVars:[],localVars:[]},funcName:&quot;cdiff&quot;}),c=i({args:[&quot;array&quot;],pre:s,post:s,body:{args:[{name:&quot;out&quot;,lvalue:!0,rvalue:!1,count:1}],body:&quot;out=0&quot;,thisVars:[],localVars:[]},funcName:&quot;zero&quot;});function u(t){if(t in a)return a[t];for(var e=[],r=0;r&lt;t;++r)e.push(&quot;out&quot;,r,&quot;s=0.5*(inp&quot;,r,&quot;l-inp&quot;,r,&quot;r);&quot;);var o=[&quot;array&quot;],l=[&quot;junk&quot;];for(r=0;r&lt;t;++r){o.push(&quot;array&quot;),l.push(&quot;out&quot;+r+&quot;s&quot;);var c=n(t);c[r]=-1,o.push({array:0,offset:c.slice()}),c[r]=1,o.push({array:0,offset:c.slice()}),l.push(&quot;inp&quot;+r+&quot;l&quot;,&quot;inp&quot;+r+&quot;r&quot;)}return a[t]=i({args:o,pre:s,post:s,body:{body:e.join(&quot;&quot;),args:l.map((function(t){return{name:t,lvalue:0===t.indexOf(&quot;out&quot;),rvalue:0===t.indexOf(&quot;inp&quot;),count:&quot;junk&quot;!==t|0}})),thisVars:[],localVars:[]},funcName:&quot;fdTemplate&quot;+t})}},{&quot;cwise-compiler&quot;:151,dup:176}],489:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r=Math.floor(e),n=e-r,i=0&lt;=r&amp;&amp;r&lt;t.shape[0],a=0&lt;=r+1&amp;&amp;r+1&lt;t.shape[0];return(1-n)*(i?+t.get(r):0)+n*(a?+t.get(r+1):0)}function i(t,e,r){var n=Math.floor(e),i=e-n,a=0&lt;=n&amp;&amp;n&lt;t.shape[0],o=0&lt;=n+1&amp;&amp;n+1&lt;t.shape[0],s=Math.floor(r),l=r-s,c=0&lt;=s&amp;&amp;s&lt;t.shape[1],u=0&lt;=s+1&amp;&amp;s+1&lt;t.shape[1],f=a&amp;&amp;c?t.get(n,s):0,h=a&amp;&amp;u?t.get(n,s+1):0;return(1-l)*((1-i)*f+i*(o&amp;&amp;c?t.get(n+1,s):0))+l*((1-i)*h+i*(o&amp;&amp;u?t.get(n+1,s+1):0))}function a(t,e,r,n){var i=Math.floor(e),a=e-i,o=0&lt;=i&amp;&amp;i&lt;t.shape[0],s=0&lt;=i+1&amp;&amp;i+1&lt;t.shape[0],l=Math.floor(r),c=r-l,u=0&lt;=l&amp;&amp;l&lt;t.shape[1],f=0&lt;=l+1&amp;&amp;l+1&lt;t.shape[1],h=Math.floor(n),p=n-h,d=0&lt;=h&amp;&amp;h&lt;t.shape[2],g=0&lt;=h+1&amp;&amp;h+1&lt;t.shape[2],m=o&amp;&amp;u&amp;&amp;d?t.get(i,l,h):0,v=o&amp;&amp;f&amp;&amp;d?t.get(i,l+1,h):0,y=s&amp;&amp;u&amp;&amp;d?t.get(i+1,l,h):0,x=s&amp;&amp;f&amp;&amp;d?t.get(i+1,l+1,h):0,b=o&amp;&amp;u&amp;&amp;g?t.get(i,l,h+1):0,_=o&amp;&amp;f&amp;&amp;g?t.get(i,l+1,h+1):0;return(1-p)*((1-c)*((1-a)*m+a*y)+c*((1-a)*v+a*x))+p*((1-c)*((1-a)*b+a*(s&amp;&amp;u&amp;&amp;g?t.get(i+1,l,h+1):0))+c*((1-a)*_+a*(s&amp;&amp;f&amp;&amp;g?t.get(i+1,l+1,h+1):0)))}function o(t){var e,r,n=0|t.shape.length,i=new Array(n),a=new Array(n),o=new Array(n),s=new Array(n);for(e=0;e&lt;n;++e)r=+arguments[e+1],i[e]=Math.floor(r),a[e]=r-i[e],o[e]=0&lt;=i[e]&amp;&amp;i[e]&lt;t.shape[e],s[e]=0&lt;=i[e]+1&amp;&amp;i[e]+1&lt;t.shape[e];var l,c,u,f=0;t:for(e=0;e&lt;1&lt;&lt;n;++e){for(c=1,u=t.offset,l=0;l&lt;n;++l)if(e&amp;1&lt;&lt;l){if(!s[l])continue t;c*=a[l],u+=t.stride[l]*(i[l]+1)}else{if(!o[l])continue t;c*=1-a[l],u+=t.stride[l]*i[l]}f+=c*t.data[u]}return f}e.exports=function(t,e,r,s){switch(t.shape.length){case 0:return 0;case 1:return n(t,e);case 2:return i(t,e,r);case 3:return a(t,e,r,s);default:return o.apply(void 0,arguments)}},e.exports.d1=n,e.exports.d2=i,e.exports.d3=a},{}],490:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;cwise-compiler&quot;),i={body:&quot;&quot;,args:[],thisVars:[],localVars:[]};function a(t){if(!t)return i;for(var e=0;e&lt;t.args.length;++e){var r=t.args[e];t.args[e]=0===e?{name:r,lvalue:!0,rvalue:!!t.rvalue,count:t.count||1}:{name:r,lvalue:!1,rvalue:!0,count:1}}return t.thisVars||(t.thisVars=[]),t.localVars||(t.localVars=[]),t}function o(t){for(var e=[],r=0;r&lt;t.args.length;++r)e.push(&quot;a&quot;+r);return new Function(&quot;P&quot;,[&quot;return function &quot;,t.funcName,&quot;_ndarrayops(&quot;,e.join(&quot;,&quot;),&quot;) {P(&quot;,e.join(&quot;,&quot;),&quot;);return a0}&quot;].join(&quot;&quot;))(function(t){return n({args:t.args,pre:a(t.pre),body:a(t.body),post:a(t.proc),funcName:t.funcName})}(t))}var s={add:&quot;+&quot;,sub:&quot;-&quot;,mul:&quot;*&quot;,div:&quot;/&quot;,mod:&quot;%&quot;,band:&quot;&amp;&quot;,bor:&quot;|&quot;,bxor:&quot;^&quot;,lshift:&quot;&lt;&lt;&quot;,rshift:&quot;&gt;&gt;&quot;,rrshift:&quot;&gt;&gt;&gt;&quot;};!function(){for(var t in s){var e=s[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=b&quot;+e+&quot;c&quot;},funcName:t}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a&quot;+e+&quot;=b&quot;},rvalue:!0,funcName:t+&quot;eq&quot;}),r[t+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;s&quot;],body:&quot;a=b&quot;+e+&quot;s&quot;},funcName:t+&quot;s&quot;}),r[t+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;s&quot;],body:&quot;a&quot;+e+&quot;=s&quot;},rvalue:!0,funcName:t+&quot;seq&quot;})}}();var l={not:&quot;!&quot;,bnot:&quot;~&quot;,neg:&quot;-&quot;,recip:&quot;1.0/&quot;};!function(){for(var t in l){var e=l[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=&quot;+e+&quot;b&quot;},funcName:t}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;],body:{args:[&quot;a&quot;],body:&quot;a=&quot;+e+&quot;a&quot;},rvalue:!0,count:2,funcName:t+&quot;eq&quot;})}}();var c={and:&quot;&amp;&amp;&quot;,or:&quot;||&quot;,eq:&quot;===&quot;,neq:&quot;!==&quot;,lt:&quot;&lt;&quot;,gt:&quot;&gt;&quot;,leq:&quot;&lt;=&quot;,geq:&quot;&gt;=&quot;};!function(){for(var t in c){var e=c[t];r[t]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=b&quot;+e+&quot;c&quot;},funcName:t}),r[t+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;s&quot;],body:&quot;a=b&quot;+e+&quot;s&quot;},funcName:t+&quot;s&quot;}),r[t+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=a&quot;+e+&quot;b&quot;},rvalue:!0,count:2,funcName:t+&quot;eq&quot;}),r[t+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;s&quot;],body:&quot;a=a&quot;+e+&quot;s&quot;},rvalue:!0,count:2,funcName:t+&quot;seq&quot;})}}();var u=[&quot;abs&quot;,&quot;acos&quot;,&quot;asin&quot;,&quot;atan&quot;,&quot;ceil&quot;,&quot;cos&quot;,&quot;exp&quot;,&quot;floor&quot;,&quot;log&quot;,&quot;round&quot;,&quot;sin&quot;,&quot;sqrt&quot;,&quot;tan&quot;];!function(){for(var t=0;t&lt;u.length;++t){var e=u[t];r[e]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e}),r[e+&quot;eq&quot;]=o({args:[&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;],body:&quot;a=this_f(a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;eq&quot;})}}();var f=[&quot;max&quot;,&quot;min&quot;,&quot;atan2&quot;,&quot;pow&quot;];!function(){for(var t=0;t&lt;f.length;++t){var e=f[t];r[e]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(b,c)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e}),r[e+&quot;s&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(b,c)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;s&quot;}),r[e+&quot;eq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(a,b)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;eq&quot;}),r[e+&quot;seq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(a,b)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;seq&quot;})}}();var h=[&quot;atan2&quot;,&quot;pow&quot;];!function(){for(var t=0;t&lt;h.length;++t){var e=h[t];r[e+&quot;op&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(c,b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;op&quot;}),r[e+&quot;ops&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],body:&quot;a=this_f(c,b)&quot;,thisVars:[&quot;this_f&quot;]},funcName:e+&quot;ops&quot;}),r[e+&quot;opeq&quot;]=o({args:[&quot;array&quot;,&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b,a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;opeq&quot;}),r[e+&quot;opseq&quot;]=o({args:[&quot;array&quot;,&quot;scalar&quot;],pre:{args:[],body:&quot;this_f=Math.&quot;+e,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=this_f(b,a)&quot;,thisVars:[&quot;this_f&quot;]},rvalue:!0,count:2,funcName:e+&quot;opseq&quot;})}}(),r.any=n({args:[&quot;array&quot;],pre:i,body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(a){return true}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return false&quot;},funcName:&quot;any&quot;}),r.all=n({args:[&quot;array&quot;],pre:i,body:{args:[{name:&quot;x&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(!x){return false}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return true&quot;},funcName:&quot;all&quot;}),r.sum=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;this_s+=a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;sum&quot;}),r.prod=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=1&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;this_s*=a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;prod&quot;}),r.norm2squared=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:2}],body:&quot;this_s+=a*a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norm2squared&quot;}),r.norm2=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:2}],body:&quot;this_s+=a*a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return Math.sqrt(this_s)&quot;},funcName:&quot;norm2&quot;}),r.norminf=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:4}],body:&quot;if(-a&gt;this_s){this_s=-a}else if(a&gt;this_s){this_s=a}&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norminf&quot;}),r.norm1=n({args:[&quot;array&quot;],pre:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;this_s=0&quot;},body:{args:[{name:&quot;a&quot;,lvalue:!1,rvalue:!0,count:3}],body:&quot;this_s+=a&lt;0?-a:a&quot;,localVars:[],thisVars:[&quot;this_s&quot;]},post:{args:[],localVars:[],thisVars:[&quot;this_s&quot;],body:&quot;return this_s&quot;},funcName:&quot;norm1&quot;}),r.sup=n({args:[&quot;array&quot;],pre:{body:&quot;this_h=-Infinity&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]},body:{body:&quot;if(_inline_1_arg0_&gt;this_h)this_h=_inline_1_arg0_&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_h&quot;],localVars:[]},post:{body:&quot;return this_h&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]}}),r.inf=n({args:[&quot;array&quot;],pre:{body:&quot;this_h=Infinity&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]},body:{body:&quot;if(_inline_1_arg0_&lt;this_h)this_h=_inline_1_arg0_&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_h&quot;],localVars:[]},post:{body:&quot;return this_h&quot;,args:[],thisVars:[&quot;this_h&quot;],localVars:[]}}),r.argmin=n({args:[&quot;index&quot;,&quot;array&quot;,&quot;shape&quot;],pre:{body:&quot;{this_v=Infinity;this_i=_inline_0_arg2_.slice(0)}&quot;,args:[{name:&quot;_inline_0_arg0_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg1_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg2_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[]},body:{body:&quot;{if(_inline_1_arg1_&lt;this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k&lt;_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[&quot;_inline_1_k&quot;]},post:{body:&quot;{return this_i}&quot;,args:[],thisVars:[&quot;this_i&quot;],localVars:[]}}),r.argmax=n({args:[&quot;index&quot;,&quot;array&quot;,&quot;shape&quot;],pre:{body:&quot;{this_v=-Infinity;this_i=_inline_0_arg2_.slice(0)}&quot;,args:[{name:&quot;_inline_0_arg0_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg1_&quot;,lvalue:!1,rvalue:!1,count:0},{name:&quot;_inline_0_arg2_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[]},body:{body:&quot;{if(_inline_1_arg1_&gt;this_v){this_v=_inline_1_arg1_;for(var _inline_1_k=0;_inline_1_k&lt;_inline_1_arg0_.length;++_inline_1_k){this_i[_inline_1_k]=_inline_1_arg0_[_inline_1_k]}}}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:2}],thisVars:[&quot;this_i&quot;,&quot;this_v&quot;],localVars:[&quot;_inline_1_k&quot;]},post:{body:&quot;{return this_i}&quot;,args:[],thisVars:[&quot;this_i&quot;],localVars:[]}}),r.random=o({args:[&quot;array&quot;],pre:{args:[],body:&quot;this_f=Math.random&quot;,thisVars:[&quot;this_f&quot;]},body:{args:[&quot;a&quot;],body:&quot;a=this_f()&quot;,thisVars:[&quot;this_f&quot;]},funcName:&quot;random&quot;}),r.assign=o({args:[&quot;array&quot;,&quot;array&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=b&quot;},funcName:&quot;assign&quot;}),r.assigns=o({args:[&quot;array&quot;,&quot;scalar&quot;],body:{args:[&quot;a&quot;,&quot;b&quot;],body:&quot;a=b&quot;},funcName:&quot;assigns&quot;}),r.equals=n({args:[&quot;array&quot;,&quot;array&quot;],pre:i,body:{args:[{name:&quot;x&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;y&quot;,lvalue:!1,rvalue:!0,count:1}],body:&quot;if(x!==y){return false}&quot;,localVars:[],thisVars:[]},post:{args:[],localVars:[],thisVars:[],body:&quot;return true&quot;},funcName:&quot;equals&quot;})},{&quot;cwise-compiler&quot;:151}],491:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;ndarray&quot;),i=t(&quot;./doConvert.js&quot;);e.exports=function(t,e){for(var r=[],a=t,o=1;Array.isArray(a);)r.push(a.length),o*=a.length,a=a[0];return 0===r.length?n():(e||(e=n(new Float64Array(o),r)),i(e,t),e)}},{&quot;./doConvert.js&quot;:492,ndarray:495}],492:[function(t,e,r){e.exports=t(&quot;cwise-compiler&quot;)({args:[&quot;array&quot;,&quot;scalar&quot;,&quot;index&quot;],pre:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},body:{body:&quot;{\nvar _inline_1_v=_inline_1_arg1_,_inline_1_i\nfor(_inline_1_i=0;_inline_1_i&lt;_inline_1_arg2_.length-1;++_inline_1_i) {\n_inline_1_v=_inline_1_v[_inline_1_arg2_[_inline_1_i]]\n}\n_inline_1_arg0_=_inline_1_v[_inline_1_arg2_[_inline_1_arg2_.length-1]]\n}&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!0,rvalue:!1,count:1},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg2_&quot;,lvalue:!1,rvalue:!0,count:4}],thisVars:[],localVars:[&quot;_inline_1_i&quot;,&quot;_inline_1_v&quot;]},post:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},funcName:&quot;convert&quot;,blockSize:64})},{&quot;cwise-compiler&quot;:151}],493:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=32;function a(t){switch(t){case&quot;uint8&quot;:return[n.mallocUint8,n.freeUint8];case&quot;uint16&quot;:return[n.mallocUint16,n.freeUint16];case&quot;uint32&quot;:return[n.mallocUint32,n.freeUint32];case&quot;int8&quot;:return[n.mallocInt8,n.freeInt8];case&quot;int16&quot;:return[n.mallocInt16,n.freeInt16];case&quot;int32&quot;:return[n.mallocInt32,n.freeInt32];case&quot;float32&quot;:return[n.mallocFloat,n.freeFloat];case&quot;float64&quot;:return[n.mallocDouble,n.freeDouble];default:return null}}function o(t){for(var e=[],r=0;r&lt;t;++r)e.push(&quot;s&quot;+r);for(r=0;r&lt;t;++r)e.push(&quot;n&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;d&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;e&quot;+r);for(r=1;r&lt;t;++r)e.push(&quot;f&quot;+r);return e}e.exports=function(t,e){var r=[&quot;'use strict'&quot;],n=[&quot;ndarraySortWrapper&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;);r.push([&quot;function &quot;,n,&quot;(&quot;,[&quot;array&quot;].join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));for(var s=[&quot;data=array.data,offset=array.offset|0,shape=array.shape,stride=array.stride&quot;],l=0;l&lt;t.length;++l)s.push([&quot;s&quot;,l,&quot;=stride[&quot;,l,&quot;]|0,n&quot;,l,&quot;=shape[&quot;,l,&quot;]|0&quot;].join(&quot;&quot;));var c=new Array(t.length),u=[];for(l=0;l&lt;t.length;++l){0!==(p=t[l])&amp;&amp;(0===u.length?c[p]=&quot;1&quot;:c[p]=u.join(&quot;*&quot;),u.push(&quot;n&quot;+p))}var f=-1,h=-1;for(l=0;l&lt;t.length;++l){var p,d=t[l];0!==d&amp;&amp;(f&gt;0?s.push([&quot;d&quot;,d,&quot;=s&quot;,d,&quot;-d&quot;,f,&quot;*n&quot;,f].join(&quot;&quot;)):s.push([&quot;d&quot;,d,&quot;=s&quot;,d].join(&quot;&quot;)),f=d),0!==(p=t.length-1-l)&amp;&amp;(h&gt;0?s.push([&quot;e&quot;,p,&quot;=s&quot;,p,&quot;-e&quot;,h,&quot;*n&quot;,h,&quot;,f&quot;,p,&quot;=&quot;,c[p],&quot;-f&quot;,h,&quot;*n&quot;,h].join(&quot;&quot;)):s.push([&quot;e&quot;,p,&quot;=s&quot;,p,&quot;,f&quot;,p,&quot;=&quot;,c[p]].join(&quot;&quot;)),h=p)}r.push(&quot;var &quot;+s.join(&quot;,&quot;));var g=[&quot;0&quot;,&quot;n0-1&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length));r.push([&quot;if(n0&lt;=&quot;,i,&quot;){&quot;,&quot;insertionSort(&quot;,g.join(&quot;,&quot;),&quot;)}else{&quot;,&quot;quickSort(&quot;,g.join(&quot;,&quot;),&quot;)}&quot;].join(&quot;&quot;)),r.push(&quot;}return &quot;+n);var m=new Function(&quot;insertionSort&quot;,&quot;quickSort&quot;,r.join(&quot;\n&quot;)),v=function(t,e){var r=[&quot;'use strict'&quot;],n=[&quot;ndarrayInsertionSort&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;),i=[&quot;left&quot;,&quot;right&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length)),s=a(e),l=[&quot;i,j,cptr,ptr=left*s0+offset&quot;];if(t.length&gt;1){for(var c=[],u=1;u&lt;t.length;++u)l.push(&quot;i&quot;+u),c.push(&quot;n&quot;+u);s?l.push(&quot;scratch=malloc(&quot;+c.join(&quot;*&quot;)+&quot;)&quot;):l.push(&quot;scratch=new Array(&quot;+c.join(&quot;*&quot;)+&quot;)&quot;),l.push(&quot;dptr&quot;,&quot;sptr&quot;,&quot;a&quot;,&quot;b&quot;)}else l.push(&quot;scratch&quot;);function f(t){return&quot;generic&quot;===e?[&quot;data.get(&quot;,t,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]&quot;].join(&quot;&quot;)}function h(t,r){return&quot;generic&quot;===e?[&quot;data.set(&quot;,t,&quot;,&quot;,r,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]=&quot;,r].join(&quot;&quot;)}if(r.push([&quot;function &quot;,n,&quot;(&quot;,i.join(&quot;,&quot;),&quot;){var &quot;,l.join(&quot;,&quot;)].join(&quot;&quot;),&quot;for(i=left+1;i&lt;=right;++i){&quot;,&quot;j=i;ptr+=s0&quot;,&quot;cptr=ptr&quot;),t.length&gt;1){r.push(&quot;dptr=0;sptr=ptr&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(&quot;scratch[dptr++]=&quot;,f(&quot;sptr&quot;));for(u=0;u&lt;t.length;++u){0!==(p=t[u])&amp;&amp;r.push(&quot;sptr+=d&quot;+p,&quot;}&quot;)}r.push(&quot;__g:while(j--\x3eleft){&quot;,&quot;dptr=0&quot;,&quot;sptr=cptr-s0&quot;);for(u=1;u&lt;t.length;++u)1===u&amp;&amp;r.push(&quot;__l:&quot;),r.push([&quot;for(i&quot;,u,&quot;=0;i&quot;,u,&quot;&lt;n&quot;,u,&quot;;++i&quot;,u,&quot;){&quot;].join(&quot;&quot;));r.push([&quot;a=&quot;,f(&quot;sptr&quot;),&quot;\nb=scratch[dptr]\nif(a&lt;b){break __g}\nif(a&gt;b){break __l}&quot;].join(&quot;&quot;));for(u=t.length-1;u&gt;=1;--u)r.push(&quot;sptr+=e&quot;+u,&quot;dptr+=f&quot;+u,&quot;}&quot;);r.push(&quot;dptr=cptr;sptr=cptr-s0&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(h(&quot;dptr&quot;,f(&quot;sptr&quot;)));for(u=0;u&lt;t.length;++u){0!==(p=t[u])&amp;&amp;r.push([&quot;dptr+=d&quot;,p,&quot;;sptr+=d&quot;,p].join(&quot;&quot;),&quot;}&quot;)}r.push(&quot;cptr-=s0\n}&quot;),r.push(&quot;dptr=cptr;sptr=0&quot;);for(u=t.length-1;u&gt;=0;--u){0!==(p=t[u])&amp;&amp;r.push([&quot;for(i&quot;,p,&quot;=0;i&quot;,p,&quot;&lt;n&quot;,p,&quot;;++i&quot;,p,&quot;){&quot;].join(&quot;&quot;))}r.push(h(&quot;dptr&quot;,&quot;scratch[sptr++]&quot;));for(u=0;u&lt;t.length;++u){var p;0!==(p=t[u])&amp;&amp;r.push(&quot;dptr+=d&quot;+p,&quot;}&quot;)}}else r.push(&quot;scratch=&quot;+f(&quot;ptr&quot;),&quot;while((j--\x3eleft)&amp;&amp;(&quot;+f(&quot;cptr-s0&quot;)+&quot;&gt;scratch)){&quot;,h(&quot;cptr&quot;,f(&quot;cptr-s0&quot;)),&quot;cptr-=s0&quot;,&quot;}&quot;,h(&quot;cptr&quot;,&quot;scratch&quot;));return r.push(&quot;}&quot;),t.length&gt;1&amp;&amp;s&amp;&amp;r.push(&quot;free(scratch)&quot;),r.push(&quot;} return &quot;+n),s?new Function(&quot;malloc&quot;,&quot;free&quot;,r.join(&quot;\n&quot;))(s[0],s[1]):new Function(r.join(&quot;\n&quot;))()}(t,e),y=function(t,e,r){var n=[&quot;'use strict'&quot;],s=[&quot;ndarrayQuickSort&quot;,t.join(&quot;d&quot;),e].join(&quot;&quot;),l=[&quot;left&quot;,&quot;right&quot;,&quot;data&quot;,&quot;offset&quot;].concat(o(t.length)),c=a(e),u=0;n.push([&quot;function &quot;,s,&quot;(&quot;,l.join(&quot;,&quot;),&quot;){&quot;].join(&quot;&quot;));var f=[&quot;sixth=((right-left+1)/6)|0&quot;,&quot;index1=left+sixth&quot;,&quot;index5=right-sixth&quot;,&quot;index3=(left+right)&gt;&gt;1&quot;,&quot;index2=index3-sixth&quot;,&quot;index4=index3+sixth&quot;,&quot;el1=index1&quot;,&quot;el2=index2&quot;,&quot;el3=index3&quot;,&quot;el4=index4&quot;,&quot;el5=index5&quot;,&quot;less=left+1&quot;,&quot;great=right-1&quot;,&quot;pivots_are_equal=true&quot;,&quot;tmp&quot;,&quot;tmp0&quot;,&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;k&quot;,&quot;ptr0&quot;,&quot;ptr1&quot;,&quot;ptr2&quot;,&quot;comp_pivot1=0&quot;,&quot;comp_pivot2=0&quot;,&quot;comp=0&quot;];if(t.length&gt;1){for(var h=[],p=1;p&lt;t.length;++p)h.push(&quot;n&quot;+p),f.push(&quot;i&quot;+p);for(p=0;p&lt;8;++p)f.push(&quot;b_ptr&quot;+p);f.push(&quot;ptr3&quot;,&quot;ptr4&quot;,&quot;ptr5&quot;,&quot;ptr6&quot;,&quot;ptr7&quot;,&quot;pivot_ptr&quot;,&quot;ptr_shift&quot;,&quot;elementSize=&quot;+h.join(&quot;*&quot;)),c?f.push(&quot;pivot1=malloc(elementSize)&quot;,&quot;pivot2=malloc(elementSize)&quot;):f.push(&quot;pivot1=new Array(elementSize),pivot2=new Array(elementSize)&quot;)}else f.push(&quot;pivot1&quot;,&quot;pivot2&quot;);function d(t){return[&quot;(offset+&quot;,t,&quot;*s0)&quot;].join(&quot;&quot;)}function g(t){return&quot;generic&quot;===e?[&quot;data.get(&quot;,t,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]&quot;].join(&quot;&quot;)}function m(t,r){return&quot;generic&quot;===e?[&quot;data.set(&quot;,t,&quot;,&quot;,r,&quot;)&quot;].join(&quot;&quot;):[&quot;data[&quot;,t,&quot;]=&quot;,r].join(&quot;&quot;)}function v(e,r,i){if(1===e.length)n.push(&quot;ptr0=&quot;+d(e[0]));else for(var a=0;a&lt;e.length;++a)n.push([&quot;b_ptr&quot;,a,&quot;=s0*&quot;,e[a]].join(&quot;&quot;));r&amp;&amp;n.push(&quot;pivot_ptr=0&quot;),n.push(&quot;ptr_shift=offset&quot;);for(a=t.length-1;a&gt;=0;--a){0!==(o=t[a])&amp;&amp;n.push([&quot;for(i&quot;,o,&quot;=0;i&quot;,o,&quot;&lt;n&quot;,o,&quot;;++i&quot;,o,&quot;){&quot;].join(&quot;&quot;))}if(e.length&gt;1)for(a=0;a&lt;e.length;++a)n.push([&quot;ptr&quot;,a,&quot;=b_ptr&quot;,a,&quot;+ptr_shift&quot;].join(&quot;&quot;));n.push(i),r&amp;&amp;n.push(&quot;++pivot_ptr&quot;);for(a=0;a&lt;t.length;++a){var o;0!==(o=t[a])&amp;&amp;(e.length&gt;1?n.push(&quot;ptr_shift+=d&quot;+o):n.push(&quot;ptr0+=d&quot;+o),n.push(&quot;}&quot;))}}function y(e,r,i,a){if(1===r.length)n.push(&quot;ptr0=&quot;+d(r[0]));else{for(var o=0;o&lt;r.length;++o)n.push([&quot;b_ptr&quot;,o,&quot;=s0*&quot;,r[o]].join(&quot;&quot;));n.push(&quot;ptr_shift=offset&quot;)}i&amp;&amp;n.push(&quot;pivot_ptr=0&quot;),e&amp;&amp;n.push(e+&quot;:&quot;);for(o=1;o&lt;t.length;++o)n.push([&quot;for(i&quot;,o,&quot;=0;i&quot;,o,&quot;&lt;n&quot;,o,&quot;;++i&quot;,o,&quot;){&quot;].join(&quot;&quot;));if(r.length&gt;1)for(o=0;o&lt;r.length;++o)n.push([&quot;ptr&quot;,o,&quot;=b_ptr&quot;,o,&quot;+ptr_shift&quot;].join(&quot;&quot;));n.push(a);for(o=t.length-1;o&gt;=1;--o)i&amp;&amp;n.push(&quot;pivot_ptr+=f&quot;+o),r.length&gt;1?n.push(&quot;ptr_shift+=e&quot;+o):n.push(&quot;ptr0+=e&quot;+o),n.push(&quot;}&quot;)}function x(){t.length&gt;1&amp;&amp;c&amp;&amp;n.push(&quot;free(pivot1)&quot;,&quot;free(pivot2)&quot;)}function b(e,r){var i=&quot;el&quot;+e,a=&quot;el&quot;+r;if(t.length&gt;1){var o=&quot;__l&quot;+ ++u;y(o,[i,a],!1,[&quot;comp=&quot;,g(&quot;ptr0&quot;),&quot;-&quot;,g(&quot;ptr1&quot;),&quot;\n&quot;,&quot;if(comp&gt;0){tmp0=&quot;,i,&quot;;&quot;,i,&quot;=&quot;,a,&quot;;&quot;,a,&quot;=tmp0;break &quot;,o,&quot;}\n&quot;,&quot;if(comp&lt;0){break &quot;,o,&quot;}&quot;].join(&quot;&quot;))}else n.push([&quot;if(&quot;,g(d(i)),&quot;&gt;&quot;,g(d(a)),&quot;){tmp0=&quot;,i,&quot;;&quot;,i,&quot;=&quot;,a,&quot;;&quot;,a,&quot;=tmp0}&quot;].join(&quot;&quot;))}function _(e,r){t.length&gt;1?v([e,r],!1,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;))):n.push(m(d(e),g(d(r))))}function w(e,r,i){if(t.length&gt;1){var a=&quot;__l&quot;+ ++u;y(a,[r],!0,[e,&quot;=&quot;,g(&quot;ptr0&quot;),&quot;-pivot&quot;,i,&quot;[pivot_ptr]\n&quot;,&quot;if(&quot;,e,&quot;!==0){break &quot;,a,&quot;}&quot;].join(&quot;&quot;))}else n.push([e,&quot;=&quot;,g(d(r)),&quot;-pivot&quot;,i].join(&quot;&quot;))}function T(e,r){t.length&gt;1?v([e,r],!1,[&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,&quot;tmp&quot;)].join(&quot;&quot;)):n.push([&quot;ptr0=&quot;,d(e),&quot;\n&quot;,&quot;ptr1=&quot;,d(r),&quot;\n&quot;,&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,&quot;tmp&quot;)].join(&quot;&quot;))}function k(e,r,i){t.length&gt;1?(v([e,r,i],!1,[&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,g(&quot;ptr2&quot;)),&quot;\n&quot;,m(&quot;ptr2&quot;,&quot;tmp&quot;)].join(&quot;&quot;)),n.push(&quot;++&quot;+r,&quot;--&quot;+i)):n.push([&quot;ptr0=&quot;,d(e),&quot;\n&quot;,&quot;ptr1=&quot;,d(r),&quot;\n&quot;,&quot;ptr2=&quot;,d(i),&quot;\n&quot;,&quot;++&quot;,r,&quot;\n&quot;,&quot;--&quot;,i,&quot;\n&quot;,&quot;tmp=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,g(&quot;ptr2&quot;)),&quot;\n&quot;,m(&quot;ptr2&quot;,&quot;tmp&quot;)].join(&quot;&quot;))}function M(t,e){T(t,e),n.push(&quot;--&quot;+e)}function A(e,r,i){t.length&gt;1?v([e,r],!0,[m(&quot;ptr0&quot;,g(&quot;ptr1&quot;)),&quot;\n&quot;,m(&quot;ptr1&quot;,[&quot;pivot&quot;,i,&quot;[pivot_ptr]&quot;].join(&quot;&quot;))].join(&quot;&quot;)):n.push(m(d(e),g(d(r))),m(d(r),&quot;pivot&quot;+i))}function S(e,r){n.push([&quot;if((&quot;,r,&quot;-&quot;,e,&quot;)&lt;=&quot;,i,&quot;){\n&quot;,&quot;insertionSort(&quot;,e,&quot;,&quot;,r,&quot;,data,offset,&quot;,o(t.length).join(&quot;,&quot;),&quot;)\n&quot;,&quot;}else{\n&quot;,s,&quot;(&quot;,e,&quot;,&quot;,r,&quot;,data,offset,&quot;,o(t.length).join(&quot;,&quot;),&quot;)\n&quot;,&quot;}&quot;].join(&quot;&quot;))}function E(e,r,i){t.length&gt;1?(n.push([&quot;__l&quot;,++u,&quot;:while(true){&quot;].join(&quot;&quot;)),v([e],!0,[&quot;if(&quot;,g(&quot;ptr0&quot;),&quot;!==pivot&quot;,r,&quot;[pivot_ptr]){break __l&quot;,u,&quot;}&quot;].join(&quot;&quot;)),n.push(i,&quot;}&quot;)):n.push([&quot;while(&quot;,g(d(e)),&quot;===pivot&quot;,r,&quot;){&quot;,i,&quot;}&quot;].join(&quot;&quot;))}return n.push(&quot;var &quot;+f.join(&quot;,&quot;)),b(1,2),b(4,5),b(1,3),b(2,3),b(1,4),b(3,4),b(2,5),b(2,3),b(4,5),t.length&gt;1?v([&quot;el1&quot;,&quot;el2&quot;,&quot;el3&quot;,&quot;el4&quot;,&quot;el5&quot;,&quot;index1&quot;,&quot;index3&quot;,&quot;index5&quot;],!0,[&quot;pivot1[pivot_ptr]=&quot;,g(&quot;ptr1&quot;),&quot;\n&quot;,&quot;pivot2[pivot_ptr]=&quot;,g(&quot;ptr3&quot;),&quot;\n&quot;,&quot;pivots_are_equal=pivots_are_equal&amp;&amp;(pivot1[pivot_ptr]===pivot2[pivot_ptr])\n&quot;,&quot;x=&quot;,g(&quot;ptr0&quot;),&quot;\n&quot;,&quot;y=&quot;,g(&quot;ptr2&quot;),&quot;\n&quot;,&quot;z=&quot;,g(&quot;ptr4&quot;),&quot;\n&quot;,m(&quot;ptr5&quot;,&quot;x&quot;),&quot;\n&quot;,m(&quot;ptr6&quot;,&quot;y&quot;),&quot;\n&quot;,m(&quot;ptr7&quot;,&quot;z&quot;)].join(&quot;&quot;)):n.push([&quot;pivot1=&quot;,g(d(&quot;el2&quot;)),&quot;\n&quot;,&quot;pivot2=&quot;,g(d(&quot;el4&quot;)),&quot;\n&quot;,&quot;pivots_are_equal=pivot1===pivot2\n&quot;,&quot;x=&quot;,g(d(&quot;el1&quot;)),&quot;\n&quot;,&quot;y=&quot;,g(d(&quot;el3&quot;)),&quot;\n&quot;,&quot;z=&quot;,g(d(&quot;el5&quot;)),&quot;\n&quot;,m(d(&quot;index1&quot;),&quot;x&quot;),&quot;\n&quot;,m(d(&quot;index3&quot;),&quot;y&quot;),&quot;\n&quot;,m(d(&quot;index5&quot;),&quot;z&quot;)].join(&quot;&quot;)),_(&quot;index2&quot;,&quot;left&quot;),_(&quot;index4&quot;,&quot;right&quot;),n.push(&quot;if(pivots_are_equal){&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp&quot;,&quot;k&quot;,1),n.push(&quot;if(comp===0){continue}&quot;),n.push(&quot;if(comp&lt;0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&gt;0){&quot;),n.push(&quot;great--&quot;),n.push(&quot;}else if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;break&quot;),n.push(&quot;}else{&quot;),M(&quot;k&quot;,&quot;great&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}else{&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp_pivot1&quot;,&quot;k&quot;,1),n.push(&quot;if(comp_pivot1&lt;0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),w(&quot;comp_pivot2&quot;,&quot;k&quot;,2),n.push(&quot;if(comp_pivot2&gt;0){&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,2),n.push(&quot;if(comp&gt;0){&quot;),n.push(&quot;if(--great&lt;k){break}&quot;),n.push(&quot;continue&quot;),n.push(&quot;}else{&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;}else{&quot;),M(&quot;k&quot;,&quot;great&quot;),n.push(&quot;}&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),A(&quot;left&quot;,&quot;(less-1)&quot;,1),A(&quot;right&quot;,&quot;(great+1)&quot;,2),S(&quot;left&quot;,&quot;(less-2)&quot;),S(&quot;(great+2)&quot;,&quot;right&quot;),n.push(&quot;if(pivots_are_equal){&quot;),x(),n.push(&quot;return&quot;),n.push(&quot;}&quot;),n.push(&quot;if(less&lt;index1&amp;&amp;great&gt;index5){&quot;),E(&quot;less&quot;,1,&quot;++less&quot;),E(&quot;great&quot;,2,&quot;--great&quot;),n.push(&quot;for(k=less;k&lt;=great;++k){&quot;),w(&quot;comp_pivot1&quot;,&quot;k&quot;,1),n.push(&quot;if(comp_pivot1===0){&quot;),n.push(&quot;if(k!==less){&quot;),T(&quot;k&quot;,&quot;less&quot;),n.push(&quot;}&quot;),n.push(&quot;++less&quot;),n.push(&quot;}else{&quot;),w(&quot;comp_pivot2&quot;,&quot;k&quot;,2),n.push(&quot;if(comp_pivot2===0){&quot;),n.push(&quot;while(true){&quot;),w(&quot;comp&quot;,&quot;great&quot;,2),n.push(&quot;if(comp===0){&quot;),n.push(&quot;if(--great&lt;k){break}&quot;),n.push(&quot;continue&quot;),n.push(&quot;}else{&quot;),w(&quot;comp&quot;,&quot;great&quot;,1),n.push(&quot;if(comp&lt;0){&quot;),k(&quot;k&quot;,&quot;less&quot;,&quot;great&quot;),n.push(&quot;}else{&quot;),M(&quot;k&quot;,&quot;great&quot;),n.push(&quot;}&quot;),n.push(&quot;break&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),n.push(&quot;}&quot;),x(),S(&quot;less&quot;,&quot;great&quot;),n.push(&quot;}return &quot;+s),t.length&gt;1&amp;&amp;c?new Function(&quot;insertionSort&quot;,&quot;malloc&quot;,&quot;free&quot;,n.join(&quot;\n&quot;))(r,c[0],c[1]):new Function(&quot;insertionSort&quot;,n.join(&quot;\n&quot;))(r)}(t,e,v);return m(v,y)}},{&quot;typedarray-pool&quot;:595}],494:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/compile_sort.js&quot;),i={};e.exports=function(t){var e=t.order,r=t.dtype,a=[e,r].join(&quot;:&quot;),o=i[a];return o||(i[a]=o=n(e,r)),o(t),t}},{&quot;./lib/compile_sort.js&quot;:493}],495:[function(t,e,r){var n=t(&quot;iota-array&quot;),i=t(&quot;is-buffer&quot;),a=&quot;undefined&quot;!=typeof Float64Array;function o(t,e){return t[0]-e[0]}function s(){var t,e=this.stride,r=new Array(e.length);for(t=0;t&lt;r.length;++t)r[t]=[Math.abs(e[t]),t];r.sort(o);var n=new Array(r.length);for(t=0;t&lt;n.length;++t)n[t]=r[t][1];return n}function l(t,e){var r=[&quot;View&quot;,e,&quot;d&quot;,t].join(&quot;&quot;);e&lt;0&amp;&amp;(r=&quot;View_Nil&quot;+t);var i=&quot;generic&quot;===t;if(-1===e){var a=&quot;function &quot;+r+&quot;(a){this.data=a;};var proto=&quot;+r+&quot;.prototype;proto.dtype='&quot;+t+&quot;';proto.index=function(){return -1};proto.size=0;proto.dimension=-1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function(){return new &quot;+r+&quot;(this.data);};proto.get=proto.set=function(){};proto.pick=function(){return null};return function construct_&quot;+r+&quot;(a){return new &quot;+r+&quot;(a);}&quot;;return new Function(a)()}if(0===e){a=&quot;function &quot;+r+&quot;(a,d) {this.data = a;this.offset = d};var proto=&quot;+r+&quot;.prototype;proto.dtype='&quot;+t+&quot;';proto.index=function(){return this.offset};proto.dimension=0;proto.size=1;proto.shape=proto.stride=proto.order=[];proto.lo=proto.hi=proto.transpose=proto.step=function &quot;+r+&quot;_copy() {return new &quot;+r+&quot;(this.data,this.offset)};proto.pick=function &quot;+r+&quot;_pick(){return TrivialArray(this.data);};proto.valueOf=proto.get=function &quot;+r+&quot;_get(){return &quot;+(i?&quot;this.data.get(this.offset)&quot;:&quot;this.data[this.offset]&quot;)+&quot;};proto.set=function &quot;+r+&quot;_set(v){return &quot;+(i?&quot;this.data.set(this.offset,v)&quot;:&quot;this.data[this.offset]=v&quot;)+&quot;};return function construct_&quot;+r+&quot;(a,b,c,d){return new &quot;+r+&quot;(a,d)}&quot;;return new Function(&quot;TrivialArray&quot;,a)(c[t][0])}a=[&quot;'use strict'&quot;];var o=n(e),l=o.map((function(t){return&quot;i&quot;+t})),u=&quot;this.offset+&quot;+o.map((function(t){return&quot;this.stride[&quot;+t+&quot;]*i&quot;+t})).join(&quot;+&quot;),f=o.map((function(t){return&quot;b&quot;+t})).join(&quot;,&quot;),h=o.map((function(t){return&quot;c&quot;+t})).join(&quot;,&quot;);a.push(&quot;function &quot;+r+&quot;(a,&quot;+f+&quot;,&quot;+h+&quot;,d){this.data=a&quot;,&quot;this.shape=[&quot;+f+&quot;]&quot;,&quot;this.stride=[&quot;+h+&quot;]&quot;,&quot;this.offset=d|0}&quot;,&quot;var proto=&quot;+r+&quot;.prototype&quot;,&quot;proto.dtype='&quot;+t+&quot;'&quot;,&quot;proto.dimension=&quot;+e),a.push(&quot;Object.defineProperty(proto,'size',{get:function &quot;+r+&quot;_size(){return &quot;+o.map((function(t){return&quot;this.shape[&quot;+t+&quot;]&quot;})).join(&quot;*&quot;),&quot;}})&quot;),1===e?a.push(&quot;proto.order=[0]&quot;):(a.push(&quot;Object.defineProperty(proto,'order',{get:&quot;),e&lt;4?(a.push(&quot;function &quot;+r+&quot;_order(){&quot;),2===e?a.push(&quot;return (Math.abs(this.stride[0])&gt;Math.abs(this.stride[1]))?[1,0]:[0,1]}})&quot;):3===e&amp;&amp;a.push(&quot;var s0=Math.abs(this.stride[0]),s1=Math.abs(this.stride[1]),s2=Math.abs(this.stride[2]);if(s0&gt;s1){if(s1&gt;s2){return [2,1,0];}else if(s0&gt;s2){return [1,2,0];}else{return [1,0,2];}}else if(s0&gt;s2){return [2,0,1];}else if(s2&gt;s1){return [0,1,2];}else{return [0,2,1];}}})&quot;)):a.push(&quot;ORDER})&quot;)),a.push(&quot;proto.set=function &quot;+r+&quot;_set(&quot;+l.join(&quot;,&quot;)+&quot;,v){&quot;),i?a.push(&quot;return this.data.set(&quot;+u+&quot;,v)}&quot;):a.push(&quot;return this.data[&quot;+u+&quot;]=v}&quot;),a.push(&quot;proto.get=function &quot;+r+&quot;_get(&quot;+l.join(&quot;,&quot;)+&quot;){&quot;),i?a.push(&quot;return this.data.get(&quot;+u+&quot;)}&quot;):a.push(&quot;return this.data[&quot;+u+&quot;]}&quot;),a.push(&quot;proto.index=function &quot;+r+&quot;_index(&quot;,l.join(),&quot;){return &quot;+u+&quot;}&quot;),a.push(&quot;proto.hi=function &quot;+r+&quot;_hi(&quot;+l.join(&quot;,&quot;)+&quot;){return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return[&quot;(typeof i&quot;,t,&quot;!=='number'||i&quot;,t,&quot;&lt;0)?this.shape[&quot;,t,&quot;]:i&quot;,t,&quot;|0&quot;].join(&quot;&quot;)})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;this.stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,this.offset)}&quot;);var p=o.map((function(t){return&quot;a&quot;+t+&quot;=this.shape[&quot;+t+&quot;]&quot;})),d=o.map((function(t){return&quot;c&quot;+t+&quot;=this.stride[&quot;+t+&quot;]&quot;}));a.push(&quot;proto.lo=function &quot;+r+&quot;_lo(&quot;+l.join(&quot;,&quot;)+&quot;){var b=this.offset,d=0,&quot;+p.join(&quot;,&quot;)+&quot;,&quot;+d.join(&quot;,&quot;));for(var g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'&amp;&amp;i&quot;+g+&quot;&gt;=0){d=i&quot;+g+&quot;|0;b+=c&quot;+g+&quot;*d;a&quot;+g+&quot;-=d}&quot;);a.push(&quot;return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return&quot;a&quot;+t})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;c&quot;+t})).join(&quot;,&quot;)+&quot;,b)}&quot;),a.push(&quot;proto.step=function &quot;+r+&quot;_step(&quot;+l.join(&quot;,&quot;)+&quot;){var &quot;+o.map((function(t){return&quot;a&quot;+t+&quot;=this.shape[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;b&quot;+t+&quot;=this.stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,c=this.offset,d=0,ceil=Math.ceil&quot;);for(g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'){d=i&quot;+g+&quot;|0;if(d&lt;0){c+=b&quot;+g+&quot;*(a&quot;+g+&quot;-1);a&quot;+g+&quot;=ceil(-a&quot;+g+&quot;/d)}else{a&quot;+g+&quot;=ceil(a&quot;+g+&quot;/d)}b&quot;+g+&quot;*=d}&quot;);a.push(&quot;return new &quot;+r+&quot;(this.data,&quot;+o.map((function(t){return&quot;a&quot;+t})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;b&quot;+t})).join(&quot;,&quot;)+&quot;,c)}&quot;);var m=new Array(e),v=new Array(e);for(g=0;g&lt;e;++g)m[g]=&quot;a[i&quot;+g+&quot;]&quot;,v[g]=&quot;b[i&quot;+g+&quot;]&quot;;a.push(&quot;proto.transpose=function &quot;+r+&quot;_transpose(&quot;+l+&quot;){&quot;+l.map((function(t,e){return t+&quot;=(&quot;+t+&quot;===undefined?&quot;+e+&quot;:&quot;+t+&quot;|0)&quot;})).join(&quot;;&quot;),&quot;var a=this.shape,b=this.stride;return new &quot;+r+&quot;(this.data,&quot;+m.join(&quot;,&quot;)+&quot;,&quot;+v.join(&quot;,&quot;)+&quot;,this.offset)}&quot;),a.push(&quot;proto.pick=function &quot;+r+&quot;_pick(&quot;+l+&quot;){var a=[],b=[],c=this.offset&quot;);for(g=0;g&lt;e;++g)a.push(&quot;if(typeof i&quot;+g+&quot;==='number'&amp;&amp;i&quot;+g+&quot;&gt;=0){c=(c+this.stride[&quot;+g+&quot;]*i&quot;+g+&quot;)|0}else{a.push(this.shape[&quot;+g+&quot;]);b.push(this.stride[&quot;+g+&quot;])}&quot;);return a.push(&quot;var ctor=CTOR_LIST[a.length+1];return ctor(this.data,a,b,c)}&quot;),a.push(&quot;return function construct_&quot;+r+&quot;(data,shape,stride,offset){return new &quot;+r+&quot;(data,&quot;+o.map((function(t){return&quot;shape[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,&quot;+o.map((function(t){return&quot;stride[&quot;+t+&quot;]&quot;})).join(&quot;,&quot;)+&quot;,offset)}&quot;),new Function(&quot;CTOR_LIST&quot;,&quot;ORDER&quot;,a.join(&quot;\n&quot;))(c[t],s)}var c={float32:[],float64:[],int8:[],int16:[],int32:[],uint8:[],uint16:[],uint32:[],array:[],uint8_clamped:[],bigint64:[],biguint64:[],buffer:[],generic:[]};e.exports=function(t,e,r,n){if(void 0===t)return(0,c.array[0])([]);&quot;number&quot;==typeof t&amp;&amp;(t=[t]),void 0===e&amp;&amp;(e=[t.length]);var o=e.length;if(void 0===r){r=new Array(o);for(var s=o-1,u=1;s&gt;=0;--s)r[s]=u,u*=e[s]}if(void 0===n){n=0;for(s=0;s&lt;o;++s)r[s]&lt;0&amp;&amp;(n-=(e[s]-1)*r[s])}for(var f=function(t){if(i(t))return&quot;buffer&quot;;if(a)switch(Object.prototype.toString.call(t)){case&quot;[object Float64Array]&quot;:return&quot;float64&quot;;case&quot;[object Float32Array]&quot;:return&quot;float32&quot;;case&quot;[object Int8Array]&quot;:return&quot;int8&quot;;case&quot;[object Int16Array]&quot;:return&quot;int16&quot;;case&quot;[object Int32Array]&quot;:return&quot;int32&quot;;case&quot;[object Uint8Array]&quot;:return&quot;uint8&quot;;case&quot;[object Uint16Array]&quot;:return&quot;uint16&quot;;case&quot;[object Uint32Array]&quot;:return&quot;uint32&quot;;case&quot;[object Uint8ClampedArray]&quot;:return&quot;uint8_clamped&quot;;case&quot;[object BigInt64Array]&quot;:return&quot;bigint64&quot;;case&quot;[object BigUint64Array]&quot;:return&quot;biguint64&quot;}return Array.isArray(t)?&quot;array&quot;:&quot;generic&quot;}(t),h=c[f];h.length&lt;=o+1;)h.push(l(f,h.length-1));return(0,h[o+1])(t,e,r,n)}},{&quot;iota-array&quot;:463,&quot;is-buffer&quot;:465}],496:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;double-bits&quot;),i=Math.pow(2,-1074);e.exports=function(t,e){if(isNaN(t)||isNaN(e))return NaN;if(t===e)return t;if(0===t)return e&lt;0?-i:i;var r=n.hi(t),a=n.lo(t);e&gt;t==t&gt;0?a===-1&gt;&gt;&gt;0?(r+=1,a=0):a+=1:0===a?(a=-1&gt;&gt;&gt;0,r-=1):a-=1;return n.pack(a,r)}},{&quot;double-bits&quot;:173}],497:[function(t,e,r){var n=Math.PI,i=c(120);function a(t,e,r,n){return[&quot;C&quot;,t,e,r,n,r,n]}function o(t,e,r,n,i,a){return[&quot;C&quot;,t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}function s(t,e,r,a,o,c,u,f,h,p){if(p)T=p[0],k=p[1],_=p[2],w=p[3];else{var d=l(t,e,-o);t=d.x,e=d.y;var g=(t-(f=(d=l(f,h,-o)).x))/2,m=(e-(h=d.y))/2,v=g*g/(r*r)+m*m/(a*a);v&gt;1&amp;&amp;(r*=v=Math.sqrt(v),a*=v);var y=r*r,x=a*a,b=(c==u?-1:1)*Math.sqrt(Math.abs((y*x-y*m*m-x*g*g)/(y*m*m+x*g*g)));b==1/0&amp;&amp;(b=1);var _=b*r*m/a+(t+f)/2,w=b*-a*g/r+(e+h)/2,T=Math.asin(((e-w)/a).toFixed(9)),k=Math.asin(((h-w)/a).toFixed(9));(T=t&lt;_?n-T:T)&lt;0&amp;&amp;(T=2*n+T),(k=f&lt;_?n-k:k)&lt;0&amp;&amp;(k=2*n+k),u&amp;&amp;T&gt;k&amp;&amp;(T-=2*n),!u&amp;&amp;k&gt;T&amp;&amp;(k-=2*n)}if(Math.abs(k-T)&gt;i){var M=k,A=f,S=h;k=T+i*(u&amp;&amp;k&gt;T?1:-1);var E=s(f=_+r*Math.cos(k),h=w+a*Math.sin(k),r,a,o,0,u,A,S,[k,M,_,w])}var C=Math.tan((k-T)/4),L=4/3*r*C,I=4/3*a*C,P=[2*t-(t+L*Math.sin(T)),2*e-(e-I*Math.cos(T)),f+L*Math.sin(k),h-I*Math.cos(k),f,h];if(p)return P;E&amp;&amp;(P=P.concat(E));for(var z=0;z&lt;P.length;){var O=l(P[z],P[z+1],o);P[z++]=O.x,P[z++]=O.y}return P}function l(t,e,r){return{x:t*Math.cos(r)-e*Math.sin(r),y:t*Math.sin(r)+e*Math.cos(r)}}function c(t){return t*(n/180)}e.exports=function(t){for(var e,r=[],n=0,i=0,l=0,u=0,f=null,h=null,p=0,d=0,g=0,m=t.length;g&lt;m;g++){var v=t[g],y=v[0];switch(y){case&quot;M&quot;:l=v[1],u=v[2];break;case&quot;A&quot;:(v=s(p,d,v[1],v[2],c(v[3]),v[4],v[5],v[6],v[7])).unshift(&quot;C&quot;),v.length&gt;7&amp;&amp;(r.push(v.splice(0,7)),v.unshift(&quot;C&quot;));break;case&quot;S&quot;:var x=p,b=d;&quot;C&quot;!=e&amp;&amp;&quot;S&quot;!=e||(x+=x-n,b+=b-i),v=[&quot;C&quot;,x,b,v[1],v[2],v[3],v[4]];break;case&quot;T&quot;:&quot;Q&quot;==e||&quot;T&quot;==e?(f=2*p-f,h=2*d-h):(f=p,h=d),v=o(p,d,f,h,v[1],v[2]);break;case&quot;Q&quot;:f=v[1],h=v[2],v=o(p,d,v[1],v[2],v[3],v[4]);break;case&quot;L&quot;:v=a(p,d,v[1],v[2]);break;case&quot;H&quot;:v=a(p,d,v[1],d);break;case&quot;V&quot;:v=a(p,d,p,v[1]);break;case&quot;Z&quot;:v=a(p,d,l,u)}e=y,p=v[v.length-2],d=v[v.length-1],v.length&gt;4?(n=v[v.length-4],i=v[v.length-3]):(n=p,i=d),r.push(v)}return r}},{}],498:[function(t,e,r){r.vertexNormals=function(t,e,r){for(var n=e.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o&lt;n;++o)i[o]=[0,0,0];for(o=0;o&lt;t.length;++o)for(var s=t[o],l=0,c=s[s.length-1],u=s[0],f=0;f&lt;s.length;++f){l=c,c=u,u=s[(f+1)%s.length];for(var h=e[l],p=e[c],d=e[u],g=new Array(3),m=0,v=new Array(3),y=0,x=0;x&lt;3;++x)g[x]=h[x]-p[x],m+=g[x]*g[x],v[x]=d[x]-p[x],y+=v[x]*v[x];if(m*y&gt;a){var b=i[c],_=1/Math.sqrt(m*y);for(x=0;x&lt;3;++x){var w=(x+1)%3,T=(x+2)%3;b[x]+=_*(v[w]*g[T]-v[T]*g[w])}}}for(o=0;o&lt;n;++o){b=i[o];var k=0;for(x=0;x&lt;3;++x)k+=b[x]*b[x];if(k&gt;a)for(_=1/Math.sqrt(k),x=0;x&lt;3;++x)b[x]*=_;else for(x=0;x&lt;3;++x)b[x]=0}return i},r.faceNormals=function(t,e,r){for(var n=t.length,i=new Array(n),a=void 0===r?1e-6:r,o=0;o&lt;n;++o){for(var s=t[o],l=new Array(3),c=0;c&lt;3;++c)l[c]=e[s[c]];var u=new Array(3),f=new Array(3);for(c=0;c&lt;3;++c)u[c]=l[1][c]-l[0][c],f[c]=l[2][c]-l[0][c];var h=new Array(3),p=0;for(c=0;c&lt;3;++c){var d=(c+1)%3,g=(c+2)%3;h[c]=u[d]*f[g]-u[g]*f[d],p+=h[c]*h[c]}p=p&gt;a?1/Math.sqrt(p):0;for(c=0;c&lt;3;++c)h[c]*=p;i[o]=h}return i}},{}],499:[function(t,e,r){
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
&quot;use strict&quot;;var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(t){if(null==t)throw new TypeError(&quot;Object.assign cannot be called with null or undefined&quot;);return Object(t)}e.exports=function(){try{if(!Object.assign)return!1;var t=new String(&quot;abc&quot;);if(t[5]=&quot;de&quot;,&quot;5&quot;===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},r=0;r&lt;10;r++)e[&quot;_&quot;+String.fromCharCode(r)]=r;if(&quot;0123456789&quot;!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(&quot;&quot;))return!1;var n={};return&quot;abcdefghijklmnopqrst&quot;.split(&quot;&quot;).forEach((function(t){n[t]=t})),&quot;abcdefghijklmnopqrst&quot;===Object.keys(Object.assign({},n)).join(&quot;&quot;)}catch(t){return!1}}()?Object.assign:function(t,e){for(var r,s,l=o(t),c=1;c&lt;arguments.length;c++){for(var u in r=Object(arguments[c]))i.call(r,u)&amp;&amp;(l[u]=r[u]);if(n){s=n(r);for(var f=0;f&lt;s.length;f++)a.call(r,s[f])&amp;&amp;(l[s[f]]=r[s[f]])}}return l}},{}],500:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a,o,s,l,c){var u=e+a+c;if(f&gt;0){var f=Math.sqrt(u+1);t[0]=.5*(o-l)/f,t[1]=.5*(s-n)/f,t[2]=.5*(r-a)/f,t[3]=.5*f}else{var h=Math.max(e,a,c);f=Math.sqrt(2*h-u+1);e&gt;=h?(t[0]=.5*f,t[1]=.5*(i+r)/f,t[2]=.5*(s+n)/f,t[3]=.5*(o-l)/f):a&gt;=h?(t[0]=.5*(r+i)/f,t[1]=.5*f,t[2]=.5*(l+o)/f,t[3]=.5*(s-n)/f):(t[0]=.5*(n+s)/f,t[1]=.5*(o+l)/f,t[2]=.5*f,t[3]=.5*(r-i)/f)}return t}},{}],501:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.rotation||[0,0,0,1],n=t.radius||1;e=[].slice.call(e,0,3),u(r=[].slice.call(r,0,4),r);var i=new f(r,e,Math.log(n));i.setDistanceLimits(t.zoomMin,t.zoomMax),(&quot;eye&quot;in t||&quot;up&quot;in t)&amp;&amp;i.lookAt(0,t.eye,t.center,t.up);return i};var n=t(&quot;filtered-vector&quot;),i=t(&quot;gl-mat4/lookAt&quot;),a=t(&quot;gl-mat4/fromQuat&quot;),o=t(&quot;gl-mat4/invert&quot;),s=t(&quot;./lib/quatFromFrame&quot;);function l(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function c(t,e,r,n){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2)+Math.pow(n,2))}function u(t,e){var r=e[0],n=e[1],i=e[2],a=e[3],o=c(r,n,i,a);o&gt;1e-6?(t[0]=r/o,t[1]=n/o,t[2]=i/o,t[3]=a/o):(t[0]=t[1]=t[2]=0,t[3]=1)}function f(t,e,r){this.radius=n([r]),this.center=n(e),this.rotation=n(t),this.computedRadius=this.radius.curve(0),this.computedCenter=this.center.curve(0),this.computedRotation=this.rotation.curve(0),this.computedUp=[.1,0,0],this.computedEye=[.1,0,0],this.computedMatrix=[.1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.recalcMatrix(0)}var h=f.prototype;h.lastT=function(){return Math.max(this.radius.lastT(),this.center.lastT(),this.rotation.lastT())},h.recalcMatrix=function(t){this.radius.curve(t),this.center.curve(t),this.rotation.curve(t);var e=this.computedRotation;u(e,e);var r=this.computedMatrix;a(r,e);var n=this.computedCenter,i=this.computedEye,o=this.computedUp,s=Math.exp(this.computedRadius[0]);i[0]=n[0]+s*r[2],i[1]=n[1]+s*r[6],i[2]=n[2]+s*r[10],o[0]=r[1],o[1]=r[5],o[2]=r[9];for(var l=0;l&lt;3;++l){for(var c=0,f=0;f&lt;3;++f)c+=r[l+4*f]*i[f];r[12+l]=-c}},h.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n&lt;16;++n)e[n]=r[n];return e}return r},h.idle=function(t){this.center.idle(t),this.radius.idle(t),this.rotation.idle(t)},h.flush=function(t){this.center.flush(t),this.radius.flush(t),this.rotation.flush(t)},h.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=i[1],o=i[5],s=i[9],c=l(a,o,s);a/=c,o/=c,s/=c;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=l(u-=a*p,f-=o*p,h-=s*p);u/=d,f/=d,h/=d;var g=i[2],m=i[6],v=i[10],y=g*a+m*o+v*s,x=g*u+m*f+v*h,b=l(g-=y*a+x*u,m-=y*o+x*f,v-=y*s+x*h);g/=b,m/=b,v/=b;var _=u*e+a*r,w=f*e+o*r,T=h*e+s*r;this.center.move(t,_,w,T);var k=Math.exp(this.computedRadius[0]);k=Math.max(1e-4,k+n),this.radius.set(t,Math.log(k))},h.rotate=function(t,e,r,n){this.recalcMatrix(t),e=e||0,r=r||0;var i=this.computedMatrix,a=i[0],o=i[4],s=i[8],u=i[1],f=i[5],h=i[9],p=i[2],d=i[6],g=i[10],m=e*a+r*u,v=e*o+r*f,y=e*s+r*h,x=-(d*y-g*v),b=-(g*m-p*y),_=-(p*v-d*m),w=Math.sqrt(Math.max(0,1-Math.pow(x,2)-Math.pow(b,2)-Math.pow(_,2))),T=c(x,b,_,w);T&gt;1e-6?(x/=T,b/=T,_/=T,w/=T):(x=b=_=0,w=1);var k=this.computedRotation,M=k[0],A=k[1],S=k[2],E=k[3],C=M*w+E*x+A*_-S*b,L=A*w+E*b+S*x-M*_,I=S*w+E*_+M*b-A*x,P=E*w-M*x-A*b-S*_;if(n){x=p,b=d,_=g;var z=Math.sin(n)/l(x,b,_);x*=z,b*=z,_*=z,P=P*(w=Math.cos(e))-(C=C*w+P*x+L*_-I*b)*x-(L=L*w+P*b+I*x-C*_)*b-(I=I*w+P*_+C*b-L*x)*_}var O=c(C,L,I,P);O&gt;1e-6?(C/=O,L/=O,I/=O,P/=O):(C=L=I=0,P=1),this.rotation.set(t,C,L,I,P)},h.lookAt=function(t,e,r,n){this.recalcMatrix(t),r=r||this.computedCenter,e=e||this.computedEye,n=n||this.computedUp;var a=this.computedMatrix;i(a,e,r,n);var o=this.computedRotation;s(o,a[0],a[1],a[2],a[4],a[5],a[6],a[8],a[9],a[10]),u(o,o),this.rotation.set(t,o[0],o[1],o[2],o[3]);for(var l=0,c=0;c&lt;3;++c)l+=Math.pow(r[c]-e[c],2);this.radius.set(t,.5*Math.log(Math.max(l,1e-6))),this.center.set(t,r[0],r[1],r[2])},h.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},h.setMatrix=function(t,e){var r=this.computedRotation;s(r,e[0],e[1],e[2],e[4],e[5],e[6],e[8],e[9],e[10]),u(r,r),this.rotation.set(t,r[0],r[1],r[2],r[3]);var n=this.computedMatrix;o(n,e);var i=n[15];if(Math.abs(i)&gt;1e-6){var a=n[12]/i,l=n[13]/i,c=n[14]/i;this.recalcMatrix(t);var f=Math.exp(this.computedRadius[0]);this.center.set(t,a-n[2]*f,l-n[6]*f,c-n[10]*f),this.radius.idle(t)}else this.center.idle(t),this.radius.idle(t)},h.setDistance=function(t,e){e&gt;0&amp;&amp;this.radius.set(t,Math.log(e))},h.setDistanceLimits=function(t,e){t=t&gt;0?Math.log(t):-1/0,e=e&gt;0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},h.getDistanceLimits=function(t){var e=this.radius.bounds;return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},h.toJSON=function(){return this.recalcMatrix(this.lastT()),{center:this.computedCenter.slice(),rotation:this.computedRotation.slice(),distance:Math.log(this.computedRadius[0]),zoomMin:this.radius.bounds[0][0],zoomMax:this.radius.bounds[1][0]}},h.fromJSON=function(t){var e=this.lastT(),r=t.center;r&amp;&amp;this.center.set(e,r[0],r[1],r[2]);var n=t.rotation;n&amp;&amp;this.rotation.set(e,n[0],n[1],n[2],n[3]);var i=t.distance;i&amp;&amp;i&gt;0&amp;&amp;this.radius.set(e,Math.log(i)),this.setDistanceLimits(t.zoomMin,t.zoomMax)}},{&quot;./lib/quatFromFrame&quot;:500,&quot;filtered-vector&quot;:242,&quot;gl-mat4/fromQuat&quot;:282,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/lookAt&quot;:294}],502:[function(t,e,r){
/*!
 * pad-left &lt;https://github.com/jonschlinkert/pad-left&gt;
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT license.
 */
&quot;use strict&quot;;var n=t(&quot;repeat-string&quot;);e.exports=function(t,e,r){return n(r=&quot;undefined&quot;!=typeof r?r+&quot;&quot;:&quot; &quot;,e)+t}},{&quot;repeat-string&quot;:541}],503:[function(t,e,r){&quot;use strict&quot;;function n(t,e){if(&quot;string&quot;!=typeof t)return[t];var r=[t];&quot;string&quot;==typeof e||Array.isArray(e)?e={brackets:e}:e||(e={});var n=e.brackets?Array.isArray(e.brackets)?e.brackets:[e.brackets]:[&quot;{}&quot;,&quot;[]&quot;,&quot;()&quot;],i=e.escape||&quot;___&quot;,a=!!e.flat;n.forEach((function(t){var e=new RegExp([&quot;\\&quot;,t[0],&quot;[^\\&quot;,t[0],&quot;\\&quot;,t[1],&quot;]*\\&quot;,t[1]].join(&quot;&quot;)),n=[];function a(e,a,o){var s=r.push(e.slice(t[0].length,-t[1].length))-1;return n.push(s),i+s+i}r.forEach((function(t,n){for(var i,o=0;t!=i;)if(i=t,t=t.replace(e,a),o++&gt;1e4)throw Error(&quot;References have circular dependency. Please, check them.&quot;);r[n]=t})),n=n.reverse(),r=r.map((function(e){return n.forEach((function(r){e=e.replace(new RegExp(&quot;(\\&quot;+i+r+&quot;\\&quot;+i+&quot;)&quot;,&quot;g&quot;),t[0]+&quot;$1&quot;+t[1])})),e}))}));var o=new RegExp(&quot;\\&quot;+i+&quot;([0-9]+)\\&quot;+i);return a?r:function t(e,r,n){for(var i,a=[],s=0;i=o.exec(e);){if(s++&gt;1e4)throw Error(&quot;Circular references in parenthesis&quot;);a.push(e.slice(0,i.index)),a.push(t(r[i[1]],r)),e=e.slice(i.index+i[0].length)}return a.push(e),a}(r[0],r)}function i(t,e){if(e&amp;&amp;e.flat){var r,n=e&amp;&amp;e.escape||&quot;___&quot;,i=t[0];if(!i)return&quot;&quot;;for(var a=new RegExp(&quot;\\&quot;+n+&quot;([0-9]+)\\&quot;+n),o=0;i!=r;){if(o++&gt;1e4)throw Error(&quot;Circular references in &quot;+t);r=i,i=i.replace(a,s)}return i}return t.reduce((function t(e,r){return Array.isArray(r)&amp;&amp;(r=r.reduce(t,&quot;&quot;)),e+r}),&quot;&quot;);function s(e,r){if(null==t[r])throw Error(&quot;Reference &quot;+r+&quot;is undefined&quot;);return t[r]}}function a(t,e){return Array.isArray(t)?i(t,e):n(t,e)}a.parse=n,a.stringify=i,e.exports=a},{}],504:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;pick-by-alias&quot;);e.exports=function(t){var e;arguments.length&gt;1&amp;&amp;(t=arguments);&quot;string&quot;==typeof t?t=t.split(/\s/).map(parseFloat):&quot;number&quot;==typeof t&amp;&amp;(t=[t]);t.length&amp;&amp;&quot;number&quot;==typeof t[0]?e=1===t.length?{width:t[0],height:t[0],x:0,y:0}:2===t.length?{width:t[0],height:t[1],x:0,y:0}:{x:t[0],y:t[1],width:t[2]-t[0]||0,height:t[3]-t[1]||0}:t&amp;&amp;(t=n(t,{left:&quot;x l left Left&quot;,top:&quot;y t top Top&quot;,width:&quot;w width W Width&quot;,height:&quot;h height W Width&quot;,bottom:&quot;b bottom Bottom&quot;,right:&quot;r right Right&quot;}),e={x:t.left||0,y:t.top||0},null==t.width?t.right?e.width=t.right-e.x:e.width=0:e.width=t.width,null==t.height?t.bottom?e.height=t.bottom-e.y:e.height=0:e.height=t.height);return e}},{&quot;pick-by-alias&quot;:511}],505:[function(t,e,r){e.exports=function(t){var e=[];return t.replace(i,(function(t,r,i){var o=r.toLowerCase();for(i=function(t){var e=t.match(a);return e?e.map(Number):[]}(i),&quot;m&quot;==o&amp;&amp;i.length&gt;2&amp;&amp;(e.push([r].concat(i.splice(0,2))),o=&quot;l&quot;,r=&quot;m&quot;==r?&quot;l&quot;:&quot;L&quot;);;){if(i.length==n[o])return i.unshift(r),e.push(i);if(i.length&lt;n[o])throw new Error(&quot;malformed path data&quot;);e.push([r].concat(i.splice(0,n[o])))}})),e};var n={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},i=/([astvzqmhlc])([^astvzqmhlc]*)/gi;var a=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi},{}],506:[function(t,e,r){e.exports=function(t,e){e||(e=[0,&quot;&quot;]),t=String(t);var r=parseFloat(t,10);return e[0]=r,e[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||&quot;&quot;,e}},{}],507:[function(t,e,r){(function(t){(function(){&quot;use strict&quot;;function r(t){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;Path must be a string. Received &quot;+JSON.stringify(t))}function n(t,e){for(var r,n=&quot;&quot;,i=0,a=-1,o=0,s=0;s&lt;=t.length;++s){if(s&lt;t.length)r=t.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(a===s-1||1===o);else if(a!==s-1&amp;&amp;2===o){if(n.length&lt;2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length&gt;2){var l=n.lastIndexOf(&quot;/&quot;);if(l!==n.length-1){-1===l?(n=&quot;&quot;,i=0):i=(n=n.slice(0,l)).length-1-n.lastIndexOf(&quot;/&quot;),a=s,o=0;continue}}else if(2===n.length||1===n.length){n=&quot;&quot;,i=0,a=s,o=0;continue}e&amp;&amp;(n.length&gt;0?n+=&quot;/..&quot;:n=&quot;..&quot;,i=2)}else n.length&gt;0?n+=&quot;/&quot;+t.slice(a+1,s):n=t.slice(a+1,s),i=s-a-1;a=s,o=0}else 46===r&amp;&amp;-1!==o?++o:o=-1}return n}var i={resolve:function(){for(var e,i=&quot;&quot;,a=!1,o=arguments.length-1;o&gt;=-1&amp;&amp;!a;o--){var s;o&gt;=0?s=arguments[o]:(void 0===e&amp;&amp;(e=t.cwd()),s=e),r(s),0!==s.length&amp;&amp;(i=s+&quot;/&quot;+i,a=47===s.charCodeAt(0))}return i=n(i,!a),a?i.length&gt;0?&quot;/&quot;+i:&quot;/&quot;:i.length&gt;0?i:&quot;.&quot;},normalize:function(t){if(r(t),0===t.length)return&quot;.&quot;;var e=47===t.charCodeAt(0),i=47===t.charCodeAt(t.length-1);return 0!==(t=n(t,!e)).length||e||(t=&quot;.&quot;),t.length&gt;0&amp;&amp;i&amp;&amp;(t+=&quot;/&quot;),e?&quot;/&quot;+t:t},isAbsolute:function(t){return r(t),t.length&gt;0&amp;&amp;47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return&quot;.&quot;;for(var t,e=0;e&lt;arguments.length;++e){var n=arguments[e];r(n),n.length&gt;0&amp;&amp;(void 0===t?t=n:t+=&quot;/&quot;+n)}return void 0===t?&quot;.&quot;:i.normalize(t)},relative:function(t,e){if(r(t),r(e),t===e)return&quot;&quot;;if((t=i.resolve(t))===(e=i.resolve(e)))return&quot;&quot;;for(var n=1;n&lt;t.length&amp;&amp;47===t.charCodeAt(n);++n);for(var a=t.length,o=a-n,s=1;s&lt;e.length&amp;&amp;47===e.charCodeAt(s);++s);for(var l=e.length-s,c=o&lt;l?o:l,u=-1,f=0;f&lt;=c;++f){if(f===c){if(l&gt;c){if(47===e.charCodeAt(s+f))return e.slice(s+f+1);if(0===f)return e.slice(s+f)}else o&gt;c&amp;&amp;(47===t.charCodeAt(n+f)?u=f:0===f&amp;&amp;(u=0));break}var h=t.charCodeAt(n+f);if(h!==e.charCodeAt(s+f))break;47===h&amp;&amp;(u=f)}var p=&quot;&quot;;for(f=n+u+1;f&lt;=a;++f)f!==a&amp;&amp;47!==t.charCodeAt(f)||(0===p.length?p+=&quot;..&quot;:p+=&quot;/..&quot;);return p.length&gt;0?p+e.slice(s+u):(s+=u,47===e.charCodeAt(s)&amp;&amp;++s,e.slice(s))},_makeLong:function(t){return t},dirname:function(t){if(r(t),0===t.length)return&quot;.&quot;;for(var e=t.charCodeAt(0),n=47===e,i=-1,a=!0,o=t.length-1;o&gt;=1;--o)if(47===(e=t.charCodeAt(o))){if(!a){i=o;break}}else a=!1;return-1===i?n?&quot;/&quot;:&quot;.&quot;:n&amp;&amp;1===i?&quot;//&quot;:t.slice(0,i)},basename:function(t,e){if(void 0!==e&amp;&amp;&quot;string&quot;!=typeof e)throw new TypeError('&quot;ext&quot; argument must be a string');r(t);var n,i=0,a=-1,o=!0;if(void 0!==e&amp;&amp;e.length&gt;0&amp;&amp;e.length&lt;=t.length){if(e.length===t.length&amp;&amp;e===t)return&quot;&quot;;var s=e.length-1,l=-1;for(n=t.length-1;n&gt;=0;--n){var c=t.charCodeAt(n);if(47===c){if(!o){i=n+1;break}}else-1===l&amp;&amp;(o=!1,l=n+1),s&gt;=0&amp;&amp;(c===e.charCodeAt(s)?-1==--s&amp;&amp;(a=n):(s=-1,a=l))}return i===a?a=l:-1===a&amp;&amp;(a=t.length),t.slice(i,a)}for(n=t.length-1;n&gt;=0;--n)if(47===t.charCodeAt(n)){if(!o){i=n+1;break}}else-1===a&amp;&amp;(o=!1,a=n+1);return-1===a?&quot;&quot;:t.slice(i,a)},extname:function(t){r(t);for(var e=-1,n=0,i=-1,a=!0,o=0,s=t.length-1;s&gt;=0;--s){var l=t.charCodeAt(s);if(47!==l)-1===i&amp;&amp;(a=!1,i=s+1),46===l?-1===e?e=s:1!==o&amp;&amp;(o=1):-1!==e&amp;&amp;(o=-1);else if(!a){n=s+1;break}}return-1===e||-1===i||0===o||1===o&amp;&amp;e===i-1&amp;&amp;e===n+1?&quot;&quot;:t.slice(e,i)},format:function(t){if(null===t||&quot;object&quot;!=typeof t)throw new TypeError('The &quot;pathObject&quot; argument must be of type Object. Received type '+typeof t);return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||&quot;&quot;)+(e.ext||&quot;&quot;);return r?r===e.root?r+n:r+t+n:n}(&quot;/&quot;,t)},parse:function(t){r(t);var e={root:&quot;&quot;,dir:&quot;&quot;,base:&quot;&quot;,ext:&quot;&quot;,name:&quot;&quot;};if(0===t.length)return e;var n,i=t.charCodeAt(0),a=47===i;a?(e.root=&quot;/&quot;,n=1):n=0;for(var o=-1,s=0,l=-1,c=!0,u=t.length-1,f=0;u&gt;=n;--u)if(47!==(i=t.charCodeAt(u)))-1===l&amp;&amp;(c=!1,l=u+1),46===i?-1===o?o=u:1!==f&amp;&amp;(f=1):-1!==o&amp;&amp;(f=-1);else if(!c){s=u+1;break}return-1===o||-1===l||0===f||1===f&amp;&amp;o===l-1&amp;&amp;o===s+1?-1!==l&amp;&amp;(e.base=e.name=0===s&amp;&amp;a?t.slice(1,l):t.slice(s,l)):(0===s&amp;&amp;a?(e.name=t.slice(1,o),e.base=t.slice(1,l)):(e.name=t.slice(s,o),e.base=t.slice(s,l)),e.ext=t.slice(o,l)),s&gt;0?e.dir=t.slice(0,s-1):a&amp;&amp;(e.dir=&quot;/&quot;),e},sep:&quot;/&quot;,delimiter:&quot;:&quot;,win32:null,posix:null};i.posix=i,e.exports=i}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:526}],508:[function(t,e,r){(function(t){(function(){(function(){var r,n,i,a,o,s;&quot;undefined&quot;!=typeof performance&amp;&amp;null!==performance&amp;&amp;performance.now?e.exports=function(){return performance.now()}:&quot;undefined&quot;!=typeof t&amp;&amp;null!==t&amp;&amp;t.hrtime?(e.exports=function(){return(r()-o)/1e6},n=t.hrtime,a=(r=function(){var t;return 1e9*(t=n())[0]+t[1]})(),s=1e9*t.uptime(),o=a-s):Date.now?(e.exports=function(){return Date.now()-i},i=Date.now()):(e.exports=function(){return(new Date).getTime()-i},i=(new Date).getTime())}).call(this)}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:526}],509:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.length;if(e&lt;32){for(var r=1,i=0;i&lt;e;++i)for(var a=0;a&lt;i;++a)if(t[i]&lt;t[a])r=-r;else if(t[i]===t[a])return 0;return r}var o=n.mallocUint8(e);for(i=0;i&lt;e;++i)o[i]=0;for(r=1,i=0;i&lt;e;++i)if(!o[i]){var s=1;o[i]=1;for(a=t[i];a!==i;a=t[a]){if(o[a])return n.freeUint8(o),0;s+=1,o[a]=1}1&amp;s||(r=-r)}return n.freeUint8(o),r};var n=t(&quot;typedarray-pool&quot;)},{&quot;typedarray-pool&quot;:595}],510:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;typedarray-pool&quot;),i=t(&quot;invert-permutation&quot;);r.rank=function(t){var e=t.length;switch(e){case 0:case 1:return 0;case 2:return t[1]}var r,a,o,s=n.mallocUint32(e),l=n.mallocUint32(e),c=0;for(i(t,l),o=0;o&lt;e;++o)s[o]=t[o];for(o=e-1;o&gt;0;--o)a=l[o],r=s[o],s[o]=s[a],s[a]=r,l[o]=l[r],l[r]=a,c=(c+r)*o;return n.freeUint32(l),n.freeUint32(s),c},r.unrank=function(t,e,r){switch(t){case 0:return r||[];case 1:return r?(r[0]=0,r):[0];case 2:return r?(e?(r[0]=0,r[1]=1):(r[0]=1,r[1]=0),r):e?[0,1]:[1,0]}var n,i,a,o=1;for((r=r||new Array(t))[0]=0,a=1;a&lt;t;++a)r[a]=a,o=o*a|0;for(a=t-1;a&gt;0;--a)e=e-(n=e/o|0)*o|0,o=o/a|0,i=0|r[a],r[a]=0|r[n],r[n]=0|i;return r}},{&quot;invert-permutation&quot;:462,&quot;typedarray-pool&quot;:595}],511:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n,a,o={};if(&quot;string&quot;==typeof e&amp;&amp;(e=i(e)),Array.isArray(e)){var s={};for(a=0;a&lt;e.length;a++)s[e[a]]=!0;e=s}for(n in e)e[n]=i(e[n]);var l={};for(n in e){var c=e[n];if(Array.isArray(c))for(a=0;a&lt;c.length;a++){var u=c[a];if(r&amp;&amp;(l[u]=!0),u in t){if(o[n]=t[u],r)for(var f=a;f&lt;c.length;f++)l[c[f]]=!0;break}}else n in t&amp;&amp;(e[n]&amp;&amp;(o[n]=t[n]),r&amp;&amp;(l[n]=!0))}if(r)for(n in t)l[n]||(o[n]=t[n]);return o};var n={};function i(t){return n[t]?n[t]:(&quot;string&quot;==typeof t&amp;&amp;(t=n[t]=t.split(/\s*,\s*|\s+/)),t)}},{}],512:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=0|e.length,i=t.length,a=[new Array(r),new Array(r)],o=0;o&lt;r;++o)a[0][o]=[],a[1][o]=[];for(o=0;o&lt;i;++o){var s=t[o];a[0][s[0]].push(s),a[1][s[1]].push(s)}var l=[];for(o=0;o&lt;r;++o)a[0][o].length+a[1][o].length===0&amp;&amp;l.push([o]);function c(t,e){var r=a[e][t[e]];r.splice(r.indexOf(t),1)}function u(t,r,i){for(var o,s,l,u=0;u&lt;2;++u)if(a[u][r].length&gt;0){o=a[u][r][0],l=u;break}s=o[1^l];for(var f=0;f&lt;2;++f)for(var h=a[f][r],p=0;p&lt;h.length;++p){var d=h[p],g=d[1^f];n(e[t],e[r],e[s],e[g])&gt;0&amp;&amp;(o=d,s=g,l=f)}return i||o&amp;&amp;c(o,l),s}function f(t,r){var i=a[r][t][0],o=[t];c(i,r);for(var s=i[1^r];;){for(;s!==t;)o.push(s),s=u(o[o.length-2],s,!1);if(a[0][t].length+a[1][t].length===0)break;var l=o[o.length-1],f=t,h=o[1],p=u(l,f,!0);if(n(e[l],e[f],e[h],e[p])&lt;0)break;o.push(t),s=u(l,f)}return o}function h(t,e){return e[1]===e[e.length-1]}for(o=0;o&lt;r;++o)for(var p=0;p&lt;2;++p){for(var d=[];a[p][o].length&gt;0;){a[0][o].length;var g=f(o,p);h(0,g)?d.push.apply(d,g):(d.length&gt;0&amp;&amp;l.push(d),d=g)}d.length&gt;0&amp;&amp;l.push(d)}return l};var n=t(&quot;compare-angle&quot;)},{&quot;compare-angle&quot;:132}],513:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=n(t,e.length),i=new Array(e.length),a=new Array(e.length),o=[],s=0;s&lt;e.length;++s){var l=r[s].length;a[s]=l,i[s]=!0,l&lt;=1&amp;&amp;o.push(s)}for(;o.length&gt;0;){var c=o.pop();i[c]=!1;var u=r[c];for(s=0;s&lt;u.length;++s){var f=u[s];0==--a[f]&amp;&amp;o.push(f)}}var h=new Array(e.length),p=[];for(s=0;s&lt;e.length;++s)if(i[s]){c=p.length;h[s]=c,p.push(e[s])}else h[s]=-1;var d=[];for(s=0;s&lt;t.length;++s){var g=t[s];i[g[0]]&amp;&amp;i[g[1]]&amp;&amp;d.push([h[g[0]],h[g[1]]])}return[d,p]};var n=t(&quot;edges-to-adjacency-list&quot;)},{&quot;edges-to-adjacency-list&quot;:178}],514:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=c(t,e);t=r[0];for(var f=(e=r[1]).length,h=(t.length,n(t,e.length)),p=0;p&lt;f;++p)if(h[p].length%2==1)throw new Error(&quot;planar-graph-to-polyline: graph must be manifold&quot;);var d=i(t,e);var g=(d=d.filter((function(t){for(var r=t.length,n=[0],i=0;i&lt;r;++i){var a=e[t[i]],l=e[t[(i+1)%r]],c=o(-a[0],a[1]),u=o(-a[0],l[1]),f=o(l[0],a[1]),h=o(l[0],l[1]);n=s(n,s(s(c,u),s(f,h)))}return n[n.length-1]&gt;0}))).length,m=new Array(g),v=new Array(g);for(p=0;p&lt;g;++p){m[p]=p;var y=new Array(g),x=d[p].map((function(t){return e[t]})),b=a([x]),_=0;t:for(var w=0;w&lt;g;++w)if(y[w]=0,p!==w){for(var T=(q=d[w]).length,k=0;k&lt;T;++k){var M=b(e[q[k]]);if(0!==M){M&lt;0&amp;&amp;(y[w]=1,_+=1);continue t}}y[w]=1,_+=1}v[p]=[_,p,y]}v.sort((function(t,e){return e[0]-t[0]}));for(p=0;p&lt;g;++p){var A=(y=v[p])[1],S=y[2];for(w=0;w&lt;g;++w)S[w]&amp;&amp;(m[w]=A)}var E=function(t){for(var e=new Array(t),r=0;r&lt;t;++r)e[r]=[];return e}(g);for(p=0;p&lt;g;++p)E[p].push(m[p]),E[m[p]].push(p);var C={},L=u(f,!1);for(p=0;p&lt;g;++p)for(T=(q=d[p]).length,w=0;w&lt;T;++w){var I=q[w],P=q[(w+1)%T],z=Math.min(I,P)+&quot;:&quot;+Math.max(I,P);if(z in C){var O=C[z];E[O].push(p),E[p].push(O),L[I]=L[P]=!0}else C[z]=p}function D(t){for(var e=t.length,r=0;r&lt;e;++r)if(!L[t[r]])return!1;return!0}var R=[],F=u(g,-1);for(p=0;p&lt;g;++p)m[p]!==p||D(d[p])?F[p]=-1:(R.push(p),F[p]=0);r=[];for(;R.length&gt;0;){var B=R.pop(),N=E[B];l(N,(function(t,e){return t-e}));var j,U=N.length,V=F[B];if(0===V){var q=d[B];j=[q]}for(p=0;p&lt;U;++p){var H=N[p];if(!(F[H]&gt;=0))if(F[H]=1^V,R.push(H),0===V)D(q=d[H])||(q.reverse(),j.push(q))}0===V&amp;&amp;r.push(j)}return r};var n=t(&quot;edges-to-adjacency-list&quot;),i=t(&quot;planar-dual&quot;),a=t(&quot;point-in-big-polygon&quot;),o=t(&quot;two-product&quot;),s=t(&quot;robust-sum&quot;),l=t(&quot;uniq&quot;),c=t(&quot;./lib/trim-leaves&quot;);function u(t,e){for(var r=new Array(t),n=0;n&lt;t;++n)r[n]=e;return r}},{&quot;./lib/trim-leaves&quot;:513,&quot;edges-to-adjacency-list&quot;:178,&quot;planar-dual&quot;:512,&quot;point-in-big-polygon&quot;:516,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582,uniq:597}],515:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],516:[function(t,e,r){e.exports=function(t){for(var e=t.length,r=[],a=[],s=0;s&lt;e;++s)for(var u=t[s],f=u.length,h=f-1,p=0;p&lt;f;h=p++){var d=u[h],g=u[p];d[0]===g[0]?a.push([d,g]):r.push([d,g])}if(0===r.length)return 0===a.length?c:(m=l(a),function(t){return m(t[0],t[1])?0:1});var m;var v=i(r),y=function(t,e){return function(r){var i=o.le(e,r[0]);if(i&lt;0)return 1;var a=t[i];if(!a){if(!(i&gt;0&amp;&amp;e[i]===r[0]))return 1;a=t[i-1]}for(var s=1;a;){var l=a.key,c=n(r,l[0],l[1]);if(l[0][0]&lt;l[1][0])if(c&lt;0)a=a.left;else{if(!(c&gt;0))return 0;s=-1,a=a.right}else if(c&gt;0)a=a.left;else{if(!(c&lt;0))return 0;s=1,a=a.right}}return s}}(v.slabs,v.coordinates);return 0===a.length?y:function(t,e){return function(r){return t(r[0],r[1])?0:e(r)}}(l(a),y)};var n=t(&quot;robust-orientation&quot;)[3],i=t(&quot;slab-decomposition&quot;),a=t(&quot;interval-tree-1d&quot;),o=t(&quot;binary-search-bounds&quot;);function s(){return!0}function l(t){for(var e={},r=0;r&lt;t.length;++r){var n=t[r],i=n[0][0],o=n[0][1],l=n[1][1],c=[Math.min(o,l),Math.max(o,l)];i in e?e[i].push(c):e[i]=[c]}var u={},f=Object.keys(e);for(r=0;r&lt;f.length;++r){var h=e[f[r]];u[f[r]]=a(h)}return function(t){return function(e,r){var n=t[e];return!!n&amp;&amp;!!n.queryPoint(r,s)}}(u)}function c(t){return 1}},{&quot;binary-search-bounds&quot;:515,&quot;interval-tree-1d&quot;:460,&quot;robust-orientation&quot;:548,&quot;slab-decomposition&quot;:565}],517:[function(t,e,r){
/*
 * @copyright 2016 Sean Connelly (@voidqk), http://syntheti.cc
 * @license MIT
 * @preserve Project Home: https://github.com/voidqk/polybooljs
 */
var n,i=t(&quot;./lib/build-log&quot;),a=t(&quot;./lib/epsilon&quot;),o=t(&quot;./lib/intersecter&quot;),s=t(&quot;./lib/segment-chainer&quot;),l=t(&quot;./lib/segment-selector&quot;),c=t(&quot;./lib/geojson&quot;),u=!1,f=a();function h(t,e,r){var i=n.segments(t),a=n.segments(e),o=r(n.combine(i,a));return n.polygon(o)}n={buildLog:function(t){return!0===t?u=i():!1===t&amp;&amp;(u=!1),!1!==u&amp;&amp;u.list},epsilon:function(t){return f.epsilon(t)},segments:function(t){var e=o(!0,f,u);return t.regions.forEach(e.addRegion),{segments:e.calculate(t.inverted),inverted:t.inverted}},combine:function(t,e){return{combined:o(!1,f,u).calculate(t.segments,t.inverted,e.segments,e.inverted),inverted1:t.inverted,inverted2:e.inverted}},selectUnion:function(t){return{segments:l.union(t.combined,u),inverted:t.inverted1||t.inverted2}},selectIntersect:function(t){return{segments:l.intersect(t.combined,u),inverted:t.inverted1&amp;&amp;t.inverted2}},selectDifference:function(t){return{segments:l.difference(t.combined,u),inverted:t.inverted1&amp;&amp;!t.inverted2}},selectDifferenceRev:function(t){return{segments:l.differenceRev(t.combined,u),inverted:!t.inverted1&amp;&amp;t.inverted2}},selectXor:function(t){return{segments:l.xor(t.combined,u),inverted:t.inverted1!==t.inverted2}},polygon:function(t){return{regions:s(t.segments,f,u),inverted:t.inverted}},polygonFromGeoJSON:function(t){return c.toPolygon(n,t)},polygonToGeoJSON:function(t){return c.fromPolygon(n,f,t)},union:function(t,e){return h(t,e,n.selectUnion)},intersect:function(t,e){return h(t,e,n.selectIntersect)},difference:function(t,e){return h(t,e,n.selectDifference)},differenceRev:function(t,e){return h(t,e,n.selectDifferenceRev)},xor:function(t,e){return h(t,e,n.selectXor)}},&quot;object&quot;==typeof window&amp;&amp;(window.PolyBool=n),e.exports=n},{&quot;./lib/build-log&quot;:518,&quot;./lib/epsilon&quot;:519,&quot;./lib/geojson&quot;:520,&quot;./lib/intersecter&quot;:521,&quot;./lib/segment-chainer&quot;:523,&quot;./lib/segment-selector&quot;:524}],518:[function(t,e,r){e.exports=function(){var t,e=0,r=!1;function n(e,r){return t.list.push({type:e,data:r?JSON.parse(JSON.stringify(r)):void 0}),t}return t={list:[],segmentId:function(){return e++},checkIntersection:function(t,e){return n(&quot;check&quot;,{seg1:t,seg2:e})},segmentChop:function(t,e){return n(&quot;div_seg&quot;,{seg:t,pt:e}),n(&quot;chop&quot;,{seg:t,pt:e})},statusRemove:function(t){return n(&quot;pop_seg&quot;,{seg:t})},segmentUpdate:function(t){return n(&quot;seg_update&quot;,{seg:t})},segmentNew:function(t,e){return n(&quot;new_seg&quot;,{seg:t,primary:e})},segmentRemove:function(t){return n(&quot;rem_seg&quot;,{seg:t})},tempStatus:function(t,e,r){return n(&quot;temp_status&quot;,{seg:t,above:e,below:r})},rewind:function(t){return n(&quot;rewind&quot;,{seg:t})},status:function(t,e,r){return n(&quot;status&quot;,{seg:t,above:e,below:r})},vert:function(e){return e===r?t:(r=e,n(&quot;vert&quot;,{x:e}))},log:function(t){return&quot;string&quot;!=typeof t&amp;&amp;(t=JSON.stringify(t,!1,&quot;  &quot;)),n(&quot;log&quot;,{txt:t})},reset:function(){return n(&quot;reset&quot;)},selected:function(t){return n(&quot;selected&quot;,{segs:t})},chainStart:function(t){return n(&quot;chain_start&quot;,{seg:t})},chainRemoveHead:function(t,e){return n(&quot;chain_rem_head&quot;,{index:t,pt:e})},chainRemoveTail:function(t,e){return n(&quot;chain_rem_tail&quot;,{index:t,pt:e})},chainNew:function(t,e){return n(&quot;chain_new&quot;,{pt1:t,pt2:e})},chainMatch:function(t){return n(&quot;chain_match&quot;,{index:t})},chainClose:function(t){return n(&quot;chain_close&quot;,{index:t})},chainAddHead:function(t,e){return n(&quot;chain_add_head&quot;,{index:t,pt:e})},chainAddTail:function(t,e){return n(&quot;chain_add_tail&quot;,{index:t,pt:e})},chainConnect:function(t,e){return n(&quot;chain_con&quot;,{index1:t,index2:e})},chainReverse:function(t){return n(&quot;chain_rev&quot;,{index:t})},chainJoin:function(t,e){return n(&quot;chain_join&quot;,{index1:t,index2:e})},done:function(){return n(&quot;done&quot;)}}}},{}],519:[function(t,e,r){e.exports=function(t){&quot;number&quot;!=typeof t&amp;&amp;(t=1e-10);var e={epsilon:function(e){return&quot;number&quot;==typeof e&amp;&amp;(t=e),t},pointAboveOrOnLine:function(e,r,n){var i=r[0],a=r[1],o=n[0],s=n[1],l=e[0];return(o-i)*(e[1]-a)-(s-a)*(l-i)&gt;=-t},pointBetween:function(e,r,n){var i=e[1]-r[1],a=n[0]-r[0],o=e[0]-r[0],s=n[1]-r[1],l=o*a+i*s;return!(l&lt;t)&amp;&amp;!(l-(a*a+s*s)&gt;-t)},pointsSameX:function(e,r){return Math.abs(e[0]-r[0])&lt;t},pointsSameY:function(e,r){return Math.abs(e[1]-r[1])&lt;t},pointsSame:function(t,r){return e.pointsSameX(t,r)&amp;&amp;e.pointsSameY(t,r)},pointsCompare:function(t,r){return e.pointsSameX(t,r)?e.pointsSameY(t,r)?0:t[1]&lt;r[1]?-1:1:t[0]&lt;r[0]?-1:1},pointsCollinear:function(e,r,n){var i=e[0]-r[0],a=e[1]-r[1],o=r[0]-n[0],s=r[1]-n[1];return Math.abs(i*s-o*a)&lt;t},linesIntersect:function(e,r,n,i){var a=r[0]-e[0],o=r[1]-e[1],s=i[0]-n[0],l=i[1]-n[1],c=a*l-o*s;if(Math.abs(c)&lt;t)return!1;var u=e[0]-n[0],f=e[1]-n[1],h=(s*f-l*u)/c,p=(a*f-o*u)/c,d={alongA:0,alongB:0,pt:[e[0]+h*a,e[1]+h*o]};return d.alongA=h&lt;=-t?-2:h&lt;t?-1:h-1&lt;=-t?0:h-1&lt;t?1:2,d.alongB=p&lt;=-t?-2:p&lt;t?-1:p-1&lt;=-t?0:p-1&lt;t?1:2,d},pointInsideRegion:function(e,r){for(var n=e[0],i=e[1],a=r[r.length-1][0],o=r[r.length-1][1],s=!1,l=0;l&lt;r.length;l++){var c=r[l][0],u=r[l][1];u-i&gt;t!=o-i&gt;t&amp;&amp;(a-c)*(i-u)/(o-u)+c-n&gt;t&amp;&amp;(s=!s),a=c,o=u}return s}};return e}},{}],520:[function(t,e,r){var n={toPolygon:function(t,e){function r(e){if(e.length&lt;=0)return t.segments({inverted:!1,regions:[]});function r(e){var r=e.slice(0,e.length-1);return t.segments({inverted:!1,regions:[r]})}for(var n=r(e[0]),i=1;i&lt;e.length;i++)n=t.selectDifference(t.combine(n,r(e[i])));return n}if(&quot;Polygon&quot;===e.type)return t.polygon(r(e.coordinates));if(&quot;MultiPolygon&quot;===e.type){for(var n=t.segments({inverted:!1,regions:[]}),i=0;i&lt;e.coordinates.length;i++)n=t.selectUnion(t.combine(n,r(e.coordinates[i])));return t.polygon(n)}throw new Error(&quot;PolyBool: Cannot convert GeoJSON object to PolyBool polygon&quot;)},fromPolygon:function(t,e,r){function n(t,r){return e.pointInsideRegion([.5*(t[0][0]+t[1][0]),.5*(t[0][1]+t[1][1])],r)}function i(t){return{region:t,children:[]}}r=t.polygon(t.segments(r));var a=i(null);function o(t,e){for(var r=0;r&lt;t.children.length;r++){if(n(e,(s=t.children[r]).region))return void o(s,e)}var a=i(e);for(r=0;r&lt;t.children.length;r++){var s;n((s=t.children[r]).region,e)&amp;&amp;(a.children.push(s),t.children.splice(r,1),r--)}t.children.push(a)}for(var s=0;s&lt;r.regions.length;s++){var l=r.regions[s];l.length&lt;3||o(a,l)}function c(t,e){for(var r=0,n=t[t.length-1][0],i=t[t.length-1][1],a=[],o=0;o&lt;t.length;o++){var s=t[o][0],l=t[o][1];a.push([s,l]),r+=l*n-s*i,n=s,i=l}return r&lt;0!==e&amp;&amp;a.reverse(),a.push([a[0][0],a[0][1]]),a}var u=[];function f(t){var e=[c(t.region,!1)];u.push(e);for(var r=0;r&lt;t.children.length;r++)e.push(h(t.children[r]))}function h(t){for(var e=0;e&lt;t.children.length;e++)f(t.children[e]);return c(t.region,!0)}for(s=0;s&lt;a.children.length;s++)f(a.children[s]);return u.length&lt;=0?{type:&quot;Polygon&quot;,coordinates:[]}:1==u.length?{type:&quot;Polygon&quot;,coordinates:u[0]}:{type:&quot;MultiPolygon&quot;,coordinates:u}}};e.exports=n},{}],521:[function(t,e,r){var n=t(&quot;./linked-list&quot;);e.exports=function(t,e,r){function i(t,e,n){return{id:r?r.segmentId():-1,start:t,end:e,myFill:{above:n.myFill.above,below:n.myFill.below},otherFill:null}}var a=n.create();function o(t,r){a.insertBefore(t,(function(n){return function(t,r,n,i,a,o){var s=e.pointsCompare(r,a);return 0!==s?s:e.pointsSame(n,o)?0:t!==i?t?1:-1:e.pointAboveOrOnLine(n,i?a:o,i?o:a)?1:-1}(t.isStart,t.pt,r,n.isStart,n.pt,n.other.pt)&lt;0}))}function s(t,e){var r=function(t,e){var r=n.node({isStart:!0,pt:t.start,seg:t,primary:e,other:null,status:null});return o(r,t.end),r}(t,e);return function(t,e,r){var i=n.node({isStart:!1,pt:e.end,seg:e,primary:r,other:t,status:null});t.other=i,o(i,t.pt)}(r,t,e),r}function l(t,e){var n=i(e,t.seg.end,t.seg);return function(t,e){r&amp;&amp;r.segmentChop(t.seg,e),t.other.remove(),t.seg.end=e,t.other.pt=e,o(t.other,t.pt)}(t,e),s(n,t.primary)}function c(i,o){var s=n.create();function c(t){return s.findTransition((function(r){var n,i,a,o,s,l;return(n=t,i=r.ev,a=n.seg.start,o=n.seg.end,s=i.seg.start,l=i.seg.end,e.pointsCollinear(a,s,l)?e.pointsCollinear(o,s,l)||e.pointAboveOrOnLine(o,s,l)?1:-1:e.pointAboveOrOnLine(a,s,l)?1:-1)&gt;0}))}function u(t,n){var i=t.seg,a=n.seg,o=i.start,s=i.end,c=a.start,u=a.end;r&amp;&amp;r.checkIntersection(i,a);var f=e.linesIntersect(o,s,c,u);if(!1===f){if(!e.pointsCollinear(o,s,c))return!1;if(e.pointsSame(o,u)||e.pointsSame(s,c))return!1;var h=e.pointsSame(o,c),p=e.pointsSame(s,u);if(h&amp;&amp;p)return n;var d=!h&amp;&amp;e.pointBetween(o,c,u),g=!p&amp;&amp;e.pointBetween(s,c,u);if(h)return g?l(n,s):l(t,u),n;d&amp;&amp;(p||(g?l(n,s):l(t,u)),l(n,o))}else 0===f.alongA&amp;&amp;(-1===f.alongB?l(t,c):0===f.alongB?l(t,f.pt):1===f.alongB&amp;&amp;l(t,u)),0===f.alongB&amp;&amp;(-1===f.alongA?l(n,o):0===f.alongA?l(n,f.pt):1===f.alongA&amp;&amp;l(n,s));return!1}for(var f=[];!a.isEmpty();){var h=a.getHead();if(r&amp;&amp;r.vert(h.pt[0]),h.isStart){r&amp;&amp;r.segmentNew(h.seg,h.primary);var p=c(h),d=p.before?p.before.ev:null,g=p.after?p.after.ev:null;function m(){if(d){var t=u(h,d);if(t)return t}return!!g&amp;&amp;u(h,g)}r&amp;&amp;r.tempStatus(h.seg,!!d&amp;&amp;d.seg,!!g&amp;&amp;g.seg);var v,y=m();if(y){var x;if(t)(x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below)&amp;&amp;(y.seg.myFill.above=!y.seg.myFill.above);else y.seg.otherFill=h.seg.myFill;r&amp;&amp;r.segmentUpdate(y.seg),h.other.remove(),h.remove()}if(a.getHead()!==h){r&amp;&amp;r.rewind(h.seg);continue}if(t)x=null===h.seg.myFill.below||h.seg.myFill.above!==h.seg.myFill.below,h.seg.myFill.below=g?g.seg.myFill.above:i,h.seg.myFill.above=x?!h.seg.myFill.below:h.seg.myFill.below;else if(null===h.seg.otherFill)v=g?h.primary===g.primary?g.seg.otherFill.above:g.seg.myFill.above:h.primary?o:i,h.seg.otherFill={above:v,below:v};r&amp;&amp;r.status(h.seg,!!d&amp;&amp;d.seg,!!g&amp;&amp;g.seg),h.other.status=p.insert(n.node({ev:h}))}else{var b=h.status;if(null===b)throw new Error(&quot;PolyBool: Zero-length segment detected; your epsilon is probably too small or too large&quot;);if(s.exists(b.prev)&amp;&amp;s.exists(b.next)&amp;&amp;u(b.prev.ev,b.next.ev),r&amp;&amp;r.statusRemove(b.ev.seg),b.remove(),!h.primary){var _=h.seg.myFill;h.seg.myFill=h.seg.otherFill,h.seg.otherFill=_}f.push(h.seg)}a.getHead().remove()}return r&amp;&amp;r.done(),f}return t?{addRegion:function(t){for(var n,i,a,o=t[t.length-1],l=0;l&lt;t.length;l++){n=o,o=t[l];var c=e.pointsCompare(n,o);0!==c&amp;&amp;s((i=c&lt;0?n:o,a=c&lt;0?o:n,{id:r?r.segmentId():-1,start:i,end:a,myFill:{above:null,below:null},otherFill:null}),!0)}},calculate:function(t){return c(t,!1)}}:{calculate:function(t,e,r,n){return t.forEach((function(t){s(i(t.start,t.end,t),!0)})),r.forEach((function(t){s(i(t.start,t.end,t),!1)})),c(e,n)}}}},{&quot;./linked-list&quot;:522}],522:[function(t,e,r){e.exports={create:function(){var t={root:{root:!0,next:null},exists:function(e){return null!==e&amp;&amp;e!==t.root},isEmpty:function(){return null===t.root.next},getHead:function(){return t.root.next},insertBefore:function(e,r){for(var n=t.root,i=t.root.next;null!==i;){if(r(i))return e.prev=i.prev,e.next=i,i.prev.next=e,void(i.prev=e);n=i,i=i.next}n.next=e,e.prev=n,e.next=null},findTransition:function(e){for(var r=t.root,n=t.root.next;null!==n&amp;&amp;!e(n);)r=n,n=n.next;return{before:r===t.root?null:r,after:n,insert:function(t){return t.prev=r,t.next=n,r.next=t,null!==n&amp;&amp;(n.prev=t),t}}}};return t},node:function(t){return t.prev=null,t.next=null,t.remove=function(){t.prev.next=t.next,t.next&amp;&amp;(t.next.prev=t.prev),t.prev=null,t.next=null},t}}},{}],523:[function(t,e,r){e.exports=function(t,e,r){var n=[],i=[];return t.forEach((function(t){var a=t.start,o=t.end;if(e.pointsSame(a,o))console.warn(&quot;PolyBool: Warning: Zero-length segment detected; your epsilon is probably too small or too large&quot;);else{r&amp;&amp;r.chainStart(t);for(var s={index:0,matches_head:!1,matches_pt1:!1},l={index:0,matches_head:!1,matches_pt1:!1},c=s,u=0;u&lt;n.length;u++){var f=(m=n[u])[0],h=(m[1],m[m.length-1]);m[m.length-2];if(e.pointsSame(f,a)){if(k(u,!0,!0))break}else if(e.pointsSame(f,o)){if(k(u,!0,!1))break}else if(e.pointsSame(h,a)){if(k(u,!1,!0))break}else if(e.pointsSame(h,o)&amp;&amp;k(u,!1,!1))break}if(c===s)return n.push([a,o]),void(r&amp;&amp;r.chainNew(a,o));if(c===l){r&amp;&amp;r.chainMatch(s.index);var p=s.index,d=s.matches_pt1?o:a,g=s.matches_head,m=n[p],v=g?m[0]:m[m.length-1],y=g?m[1]:m[m.length-2],x=g?m[m.length-1]:m[0],b=g?m[m.length-2]:m[1];return e.pointsCollinear(y,v,d)&amp;&amp;(g?(r&amp;&amp;r.chainRemoveHead(s.index,d),m.shift()):(r&amp;&amp;r.chainRemoveTail(s.index,d),m.pop()),v=y),e.pointsSame(x,d)?(n.splice(p,1),e.pointsCollinear(b,x,v)&amp;&amp;(g?(r&amp;&amp;r.chainRemoveTail(s.index,v),m.pop()):(r&amp;&amp;r.chainRemoveHead(s.index,v),m.shift())),r&amp;&amp;r.chainClose(s.index),void i.push(m)):void(g?(r&amp;&amp;r.chainAddHead(s.index,d),m.unshift(d)):(r&amp;&amp;r.chainAddTail(s.index,d),m.push(d)))}var _=s.index,w=l.index;r&amp;&amp;r.chainConnect(_,w);var T=n[_].length&lt;n[w].length;s.matches_head?l.matches_head?T?(M(_),A(_,w)):(M(w),A(w,_)):A(w,_):l.matches_head?A(_,w):T?(M(_),A(w,_)):(M(w),A(_,w))}function k(t,e,r){return c.index=t,c.matches_head=e,c.matches_pt1=r,c===s?(c=l,!1):(c=null,!0)}function M(t){r&amp;&amp;r.chainReverse(t),n[t].reverse()}function A(t,i){var a=n[t],o=n[i],s=a[a.length-1],l=a[a.length-2],c=o[0],u=o[1];e.pointsCollinear(l,s,c)&amp;&amp;(r&amp;&amp;r.chainRemoveTail(t,s),a.pop(),s=l),e.pointsCollinear(s,c,u)&amp;&amp;(r&amp;&amp;r.chainRemoveHead(i,c),o.shift()),r&amp;&amp;r.chainJoin(t,i),n[t]=a.concat(o),n.splice(i,1)}})),i}},{}],524:[function(t,e,r){function n(t,e,r){var n=[];return t.forEach((function(t){var i=(t.myFill.above?8:0)+(t.myFill.below?4:0)+(t.otherFill&amp;&amp;t.otherFill.above?2:0)+(t.otherFill&amp;&amp;t.otherFill.below?1:0);0!==e[i]&amp;&amp;n.push({id:r?r.segmentId():-1,start:t.start,end:t.end,myFill:{above:1===e[i],below:2===e[i]},otherFill:null})})),r&amp;&amp;r.selected(n),n}var i={union:function(t,e){return n(t,[0,2,1,0,2,2,0,0,1,0,1,0,0,0,0,0],e)},intersect:function(t,e){return n(t,[0,0,0,0,0,2,0,2,0,0,1,1,0,2,1,0],e)},difference:function(t,e){return n(t,[0,0,0,0,2,0,2,0,1,1,0,0,0,1,2,0],e)},differenceRev:function(t,e){return n(t,[0,2,1,0,0,0,1,1,0,2,0,2,0,0,0,0],e)},xor:function(t,e){return n(t,[0,2,1,0,2,0,0,1,1,0,0,2,0,1,2,0],e)}};e.exports=i},{}],525:[function(t,e,r){&quot;use strict&quot;;var n=new Float64Array(4),i=new Float64Array(4),a=new Float64Array(4);e.exports=function(t,e,r,o,s){n.length&lt;o.length&amp;&amp;(n=new Float64Array(o.length),i=new Float64Array(o.length),a=new Float64Array(o.length));for(var l=0;l&lt;o.length;++l)n[l]=t[l]-o[l],i[l]=e[l]-t[l],a[l]=r[l]-t[l];var c=0,u=0,f=0,h=0,p=0,d=0;for(l=0;l&lt;o.length;++l){var g=i[l],m=a[l],v=n[l];c+=g*g,u+=g*m,f+=m*m,h+=v*g,p+=v*m,d+=v*v}var y,x,b,_,w,T=Math.abs(c*f-u*u),k=u*p-f*h,M=u*h-c*p;if(k+M&lt;=T)if(k&lt;0)M&lt;0&amp;&amp;h&lt;0?(M=0,-h&gt;=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d):(k=0,p&gt;=0?(M=0,y=d):-p&gt;=f?(M=1,y=f+2*p+d):y=p*(M=-p/f)+d);else if(M&lt;0)M=0,h&gt;=0?(k=0,y=d):-h&gt;=c?(k=1,y=c+2*h+d):y=h*(k=-h/c)+d;else{var A=1/T;y=(k*=A)*(c*k+u*(M*=A)+2*h)+M*(u*k+f*M+2*p)+d}else k&lt;0?(b=f+p)&gt;(x=u+h)?(_=b-x)&gt;=(w=c-2*u+f)?(k=1,M=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(M=1-k)+2*h)+M*(u*k+f*M+2*p)+d:(k=0,b&lt;=0?(M=1,y=f+2*p+d):p&gt;=0?(M=0,y=d):y=p*(M=-p/f)+d):M&lt;0?(b=c+h)&gt;(x=u+p)?(_=b-x)&gt;=(w=c-2*u+f)?(M=1,k=0,y=f+2*p+d):y=(k=1-(M=_/w))*(c*k+u*M+2*h)+M*(u*k+f*M+2*p)+d:(M=0,b&lt;=0?(k=1,y=c+2*h+d):h&gt;=0?(k=0,y=d):y=h*(k=-h/c)+d):(_=f+p-u-h)&lt;=0?(k=0,M=1,y=f+2*p+d):_&gt;=(w=c-2*u+f)?(k=1,M=0,y=c+2*h+d):y=(k=_/w)*(c*k+u*(M=1-k)+2*h)+M*(u*k+f*M+2*p)+d;var S=1-k-M;for(l=0;l&lt;o.length;++l)s[l]=S*t[l]+k*e[l]+M*r[l];return y&lt;0?0:y}},{}],526:[function(t,e,r){var n,i,a=e.exports={};function o(){throw new Error(&quot;setTimeout has not been defined&quot;)}function s(){throw new Error(&quot;clearTimeout has not been defined&quot;)}function l(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&amp;&amp;setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n=&quot;function&quot;==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i=&quot;function&quot;==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,u=[],f=!1,h=-1;function p(){f&amp;&amp;c&amp;&amp;(f=!1,c.length?u=c.concat(u):h=-1,u.length&amp;&amp;d())}function d(){if(!f){var t=l(p);f=!0;for(var e=u.length;e;){for(c=u,u=[];++h&lt;e;)c&amp;&amp;c[h].run();h=-1,e=u.length}c=null,f=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&amp;&amp;clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function g(t,e){this.fun=t,this.array=e}function m(){}a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length&gt;1)for(var r=1;r&lt;arguments.length;r++)e[r-1]=arguments[r];u.push(new g(t,e)),1!==u.length||f||l(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},a.title=&quot;browser&quot;,a.browser=!0,a.env={},a.argv=[],a.version=&quot;&quot;,a.versions={},a.on=m,a.addListener=m,a.once=m,a.off=m,a.removeListener=m,a.removeAllListeners=m,a.emit=m,a.prependListener=m,a.prependOnceListener=m,a.listeners=function(t){return[]},a.binding=function(t){throw new Error(&quot;process.binding is not supported&quot;)},a.cwd=function(){return&quot;/&quot;},a.chdir=function(t){throw new Error(&quot;process.chdir is not supported&quot;)},a.umask=function(){return 0}},{}],527:[function(t,e,r){e.exports=t(&quot;gl-quat/slerp&quot;)},{&quot;gl-quat/slerp&quot;:325}],528:[function(t,e,r){(function(r){(function(){for(var n=t(&quot;performance-now&quot;),i=&quot;undefined&quot;==typeof window?r:window,a=[&quot;moz&quot;,&quot;webkit&quot;],o=&quot;AnimationFrame&quot;,s=i[&quot;request&quot;+o],l=i[&quot;cancel&quot;+o]||i[&quot;cancelRequest&quot;+o],c=0;!s&amp;&amp;c&lt;a.length;c++)s=i[a[c]+&quot;Request&quot;+o],l=i[a[c]+&quot;Cancel&quot;+o]||i[a[c]+&quot;CancelRequest&quot;+o];if(!s||!l){var u=0,f=0,h=[];s=function(t){if(0===h.length){var e=n(),r=Math.max(0,1e3/60-(e-u));u=r+e,setTimeout((function(){var t=h.slice(0);h.length=0;for(var e=0;e&lt;t.length;e++)if(!t[e].cancelled)try{t[e].callback(u)}catch(t){setTimeout((function(){throw t}),0)}}),Math.round(r))}return h.push({handle:++f,callback:t,cancelled:!1}),f},l=function(t){for(var e=0;e&lt;h.length;e++)h[e].handle===t&amp;&amp;(h[e].cancelled=!0)}}e.exports=function(t){return s.call(i,t)},e.exports.cancel=function(){l.apply(i,arguments)},e.exports.polyfill=function(t){t||(t=i),t.requestAnimationFrame=s,t.cancelAnimationFrame=l}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;performance-now&quot;:508}],529:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat/add&quot;);e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a&lt;r;++a)i[a]=n(t[a],e[a]);return i}},{&quot;big-rat/add&quot;:80}],530:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=new Array(t.length),r=0;r&lt;t.length;++r)e[r]=n(t[r]);return e};var n=t(&quot;big-rat&quot;)},{&quot;big-rat&quot;:83}],531:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat&quot;),i=t(&quot;big-rat/mul&quot;);e.exports=function(t,e){for(var r=n(e),a=t.length,o=new Array(a),s=0;s&lt;a;++s)o[s]=i(t[s],r);return o}},{&quot;big-rat&quot;:83,&quot;big-rat/mul&quot;:92}],532:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;big-rat/sub&quot;);e.exports=function(t,e){for(var r=t.length,i=new Array(r),a=0;a&lt;r;++a)i[a]=n(t[a],e[a]);return i}},{&quot;big-rat/sub&quot;:94}],533:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;compare-cell&quot;),i=t(&quot;compare-oriented-cell&quot;),a=t(&quot;cell-orientation&quot;);e.exports=function(t){t.sort(i);for(var e=t.length,r=0,o=0;o&lt;e;++o){var s=t[o],l=a(s);if(0!==l){if(r&gt;0){var c=t[r-1];if(0===n(s,c)&amp;&amp;a(c)!==l){r-=1;continue}}t[r++]=s}}return t.length=r,t}},{&quot;cell-orientation&quot;:117,&quot;compare-cell&quot;:133,&quot;compare-oriented-cell&quot;:134}],534:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;array-bounds&quot;),i=t(&quot;color-normalize&quot;),a=t(&quot;update-diff&quot;),o=t(&quot;pick-by-alias&quot;),s=t(&quot;object-assign&quot;),l=t(&quot;flatten-vertex-data&quot;),c=t(&quot;to-float32&quot;),u=c.float32,f=c.fract32;e.exports=function(t,e){&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):e=t;e.length&amp;&amp;(e.positions=e);if(!(t=e.regl).hasExtension(&quot;ANGLE_instanced_arrays&quot;))throw Error(&quot;regl-error2d: `ANGLE_instanced_arrays` extension should be enabled&quot;);var r,c,p,d,g,m,v=t._gl,y={color:&quot;black&quot;,capSize:5,lineWidth:1,opacity:1,viewport:null,range:null,offset:0,count:0,bounds:null,positions:[],errors:[]},x=[];return d=t.buffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:new Uint8Array(0)}),c=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),p=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),g=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)}),m=t.buffer({usage:&quot;static&quot;,type:&quot;float&quot;,data:h}),T(e),r=t({vert:&quot;\n\t\tprecision highp float;\n\n\t\tattribute vec2 position, positionFract;\n\t\tattribute vec4 error;\n\t\tattribute vec4 color;\n\n\t\tattribute vec2 direction, lineOffset, capOffset;\n\n\t\tuniform vec4 viewport;\n\t\tuniform float lineWidth, capSize;\n\t\tuniform vec2 scale, scaleFract, translate, translateFract;\n\n\t\tvarying vec4 fragColor;\n\n\t\tvoid main() {\n\t\t\tfragColor = color / 255.;\n\n\t\t\tvec2 pixelOffset = lineWidth * lineOffset + (capSize + lineWidth) * capOffset;\n\n\t\t\tvec2 dxy = -step(.5, direction.xy) * error.xz + step(direction.xy, vec2(-.5)) * error.yw;\n\n\t\t\tvec2 position = position + dxy;\n\n\t\t\tvec2 pos = (position + translate) * scale\n\t\t\t\t+ (positionFract + translateFract) * scale\n\t\t\t\t+ (position + translate) * scaleFract\n\t\t\t\t+ (positionFract + translateFract) * scaleFract;\n\n\t\t\tpos += pixelOffset / viewport.zw;\n\n\t\t\tgl_Position = vec4(pos * 2. - 1., 0, 1);\n\t\t}\n\t\t&quot;,frag:&quot;\n\t\tprecision highp float;\n\n\t\tvarying vec4 fragColor;\n\n\t\tuniform float opacity;\n\n\t\tvoid main() {\n\t\t\tgl_FragColor = fragColor;\n\t\t\tgl_FragColor.a *= opacity;\n\t\t}\n\t\t&quot;,uniforms:{range:t.prop(&quot;range&quot;),lineWidth:t.prop(&quot;lineWidth&quot;),capSize:t.prop(&quot;capSize&quot;),opacity:t.prop(&quot;opacity&quot;),scale:t.prop(&quot;scale&quot;),translate:t.prop(&quot;translate&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{color:{buffer:d,offset:function(t,e){return 4*e.offset},divisor:1},position:{buffer:c,offset:function(t,e){return 8*e.offset},divisor:1},positionFract:{buffer:p,offset:function(t,e){return 8*e.offset},divisor:1},error:{buffer:g,offset:function(t,e){return 16*e.offset},divisor:1},direction:{buffer:m,stride:24,offset:0},lineOffset:{buffer:m,stride:24,offset:8},capOffset:{buffer:m,stride:24,offset:16}},primitive:&quot;triangles&quot;,blend:{enable:!0,color:[0,0,0,0],equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},depth:{enable:!1},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;),stencil:!1,instances:t.prop(&quot;count&quot;),count:h.length}),s(b,{update:T,draw:_,destroy:k,regl:t,gl:v,canvas:v.canvas,groups:x}),b;function b(t){t?T(t):null===t&amp;&amp;k(),_()}function _(e){if(&quot;number&quot;==typeof e)return w(e);e&amp;&amp;!Array.isArray(e)&amp;&amp;(e=[e]),t._refresh(),x.forEach((function(t,r){t&amp;&amp;(e&amp;&amp;(e[r]?t.draw=!0:t.draw=!1),t.draw?w(r):t.draw=!0)}))}function w(t){&quot;number&quot;==typeof t&amp;&amp;(t=x[t]),null!=t&amp;&amp;t&amp;&amp;t.count&amp;&amp;t.color&amp;&amp;t.opacity&amp;&amp;t.positions&amp;&amp;t.positions.length&gt;1&amp;&amp;(t.scaleRatio=[t.scale[0]*t.viewport.width,t.scale[1]*t.viewport.height],r(t),t.after&amp;&amp;t.after(t))}function T(t){if(t){null!=t.length?&quot;number&quot;==typeof t[0]&amp;&amp;(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var e=0,r=0;if(b.groups=x=t.map((function(t,c){var u=x[c];return t?(&quot;function&quot;==typeof t?t={after:t}:&quot;number&quot;==typeof t[0]&amp;&amp;(t={positions:t}),t=o(t,{color:&quot;color colors fill&quot;,capSize:&quot;capSize cap capsize cap-size&quot;,lineWidth:&quot;lineWidth line-width width line thickness&quot;,opacity:&quot;opacity alpha&quot;,range:&quot;range dataBox&quot;,viewport:&quot;viewport viewBox&quot;,errors:&quot;errors error&quot;,positions:&quot;positions position data points&quot;}),u||(x[c]=u={id:c,scale:null,translate:null,scaleFract:null,translateFract:null,draw:!0},t=s({},y,t)),a(u,t,[{lineWidth:function(t){return.5*+t},capSize:function(t){return.5*+t},opacity:parseFloat,errors:function(t){return t=l(t),r+=t.length,t},positions:function(t,r){return t=l(t,&quot;float64&quot;),r.count=Math.floor(t.length/2),r.bounds=n(t,2),r.offset=e,e+=r.count,t}},{color:function(t,e){var r=e.count;if(t||(t=&quot;transparent&quot;),!Array.isArray(t)||&quot;number&quot;==typeof t[0]){var n=t;t=Array(r);for(var a=0;a&lt;r;a++)t[a]=n}if(t.length&lt;r)throw Error(&quot;Not enough colors&quot;);for(var o=new Uint8Array(4*r),s=0;s&lt;r;s++){var l=i(t[s],&quot;uint8&quot;);o.set(l,4*s)}return o},range:function(t,e,r){var n=e.bounds;return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=f(e.scale),e.translateFract=f(e.translate),t},viewport:function(t){var e;return Array.isArray(t)?e={x:t[0],y:t[1],width:t[2]-t[0],height:t[3]-t[1]}:t?(e={x:t.x||t.left||0,y:t.y||t.top||0},t.right?e.width=t.right-e.x:e.width=t.w||t.width||0,t.bottom?e.height=t.bottom-e.y:e.height=t.h||t.height||0):e={x:0,y:0,width:v.drawingBufferWidth,height:v.drawingBufferHeight},e}}]),u):u})),e||r){var h=x.reduce((function(t,e,r){return t+(e?e.count:0)}),0),m=new Float64Array(2*h),_=new Uint8Array(4*h),w=new Float32Array(4*h);x.forEach((function(t,e){if(t){var r=t.positions,n=t.count,i=t.offset,a=t.color,o=t.errors;n&amp;&amp;(_.set(a,4*i),w.set(o,4*i),m.set(r,2*i))}})),c(u(m)),p(f(m)),d(_),g(w)}}}function k(){c.destroy(),p.destroy(),d.destroy(),g.destroy(),m.destroy()}};var h=[[1,0,0,1,0,0],[1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,-1,0,0],[-1,0,0,1,0,0],[1,0,0,1,0,0],[1,0,-1,0,0,1],[1,0,-1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,-1],[1,0,1,0,0,1],[1,0,-1,0,0,1],[-1,0,-1,0,0,1],[-1,0,-1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,-1],[-1,0,1,0,0,1],[-1,0,-1,0,0,1],[0,1,1,0,0,0],[0,1,-1,0,0,0],[0,-1,-1,0,0,0],[0,-1,-1,0,0,0],[0,1,1,0,0,0],[0,-1,1,0,0,0],[0,1,0,-1,1,0],[0,1,0,-1,-1,0],[0,1,0,1,-1,0],[0,1,0,1,1,0],[0,1,0,-1,1,0],[0,1,0,1,-1,0],[0,-1,0,-1,1,0],[0,-1,0,-1,-1,0],[0,-1,0,1,-1,0],[0,-1,0,1,1,0],[0,-1,0,-1,1,0],[0,-1,0,1,-1,0]]},{&quot;array-bounds&quot;:70,&quot;color-normalize&quot;:125,&quot;flatten-vertex-data&quot;:244,&quot;object-assign&quot;:499,&quot;pick-by-alias&quot;:511,&quot;to-float32&quot;:577,&quot;update-diff&quot;:599}],535:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-normalize&quot;),i=t(&quot;array-bounds&quot;),a=t(&quot;object-assign&quot;),o=t(&quot;glslify&quot;),s=t(&quot;pick-by-alias&quot;),l=t(&quot;flatten-vertex-data&quot;),c=t(&quot;earcut&quot;),u=t(&quot;array-normalize&quot;),f=t(&quot;to-float32&quot;),h=f.float32,p=f.fract32,d=t(&quot;es6-weak-map&quot;),g=t(&quot;parse-rect&quot;);function m(t,e){if(!(this instanceof m))return new m(t,e);if(&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):e=t,e.length&amp;&amp;(e.positions=e),!(t=e.regl).hasExtension(&quot;ANGLE_instanced_arrays&quot;))throw Error(&quot;regl-error2d: `ANGLE_instanced_arrays` extension should be enabled&quot;);this.gl=t._gl,this.regl=t,this.passes=[],this.shaders=m.shaders.has(t)?m.shaders.get(t):m.shaders.set(t,m.createShaders(t)).get(t),this.update(e)}e.exports=m,m.dashMult=2,m.maxPatternLength=256,m.precisionThreshold=3e6,m.maxPoints=1e4,m.maxLines=2048,m.shaders=new d,m.createShaders=function(t){var e,r=t.buffer({usage:&quot;static&quot;,type:&quot;float&quot;,data:[0,1,0,0,1,1,1,0]}),n={primitive:&quot;triangle strip&quot;,instances:t.prop(&quot;count&quot;),count:4,offset:0,uniforms:{miterMode:function(t,e){return&quot;round&quot;===e.join?2:1},miterLimit:t.prop(&quot;miterLimit&quot;),scale:t.prop(&quot;scale&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),translate:t.prop(&quot;translate&quot;),thickness:t.prop(&quot;thickness&quot;),dashPattern:t.prop(&quot;dashTexture&quot;),opacity:t.prop(&quot;opacity&quot;),pixelRatio:t.context(&quot;pixelRatio&quot;),id:t.prop(&quot;id&quot;),dashSize:t.prop(&quot;dashLength&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]},depth:t.prop(&quot;depth&quot;)},blend:{enable:!0,color:[0,0,0,0],equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},depth:{enable:function(t,e){return!e.overlay}},stencil:{enable:!1},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;)},i=t(a({vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, aCoordFract, bCoordFract;\nattribute vec4 color;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvec2 project(vec2 position, vec2 positionFract, vec2 scale, vec2 scaleFract, vec2 translate, vec2 translateFract) {\n\t// the order is important\n\treturn position * scale + translate\n       + positionFract * scale + translateFract\n       + position * scaleFract\n       + positionFract * scaleFract;\n}\n\nvoid main() {\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineOffset = lineTop * 2. - 1.;\n\n\tvec2 diff = (bCoord + bCoordFract - aCoord - aCoordFract);\n\ttangent = normalize(diff * scale * viewport.zw);\n\tvec2 normal = vec2(-tangent.y, tangent.x);\n\n\tvec2 position = project(aCoord, aCoordFract, scale, scaleFract, translate, translateFract) * lineStart\n\t\t+ project(bCoord, bCoordFract, scale, scaleFract, translate, translateFract) * lineEnd\n\n\t\t+ thickness * normal * .5 * lineOffset / viewport.zw;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\n\nuniform float dashSize, pixelRatio, thickness, opacity, id;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\n\nvoid main() {\n\tfloat alpha = 1.;\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n&quot;]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:16,divisor:1},aCoordFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:8,divisor:1},bCoordFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:16,divisor:1},color:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:0,divisor:1}}},n));try{e=t(a({cull:{enable:!0,face:&quot;back&quot;},vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 aCoord, bCoord, nextCoord, prevCoord;\nattribute vec4 aColor, bColor;\nattribute float lineEnd, lineTop;\n\nuniform vec2 scale, translate;\nuniform float thickness, pixelRatio, id, depth;\nuniform vec4 viewport;\nuniform float miterLimit, miterMode;\n\nvarying vec4 fragColor;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 tangent;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nconst float REVERSE_THRESHOLD = -.875;\nconst float MIN_DIFF = 1e-6;\n\n// TODO: possible optimizations: avoid overcalculating all for vertices and calc just one instead\n// TODO: precalculate dot products, normalize things beforehead etc.\n// TODO: refactor to rectangular algorithm\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nbool isNaN( float val ){\n  return ( val &lt; 0.0 || 0.0 &lt; val || val == 0.0 ) ? false : true;\n}\n\nvoid main() {\n\tvec2 aCoord = aCoord, bCoord = bCoord, prevCoord = prevCoord, nextCoord = nextCoord;\n\n  vec2 adjustedScale;\n  adjustedScale.x = (abs(scale.x) &lt; MIN_DIFF) ? MIN_DIFF : scale.x;\n  adjustedScale.y = (abs(scale.y) &lt; MIN_DIFF) ? MIN_DIFF : scale.y;\n\n  vec2 scaleRatio = adjustedScale * viewport.zw;\n\tvec2 normalWidth = thickness / scaleRatio;\n\n\tfloat lineStart = 1. - lineEnd;\n\tfloat lineBot = 1. - lineTop;\n\n\tfragColor = (lineStart * aColor + lineEnd * bColor) / 255.;\n\n\tif (isNaN(aCoord.x) || isNaN(aCoord.y) || isNaN(bCoord.x) || isNaN(bCoord.y)) return;\n\n\tif (aCoord == prevCoord) prevCoord = aCoord + normalize(bCoord - aCoord);\n\tif (bCoord == nextCoord) nextCoord = bCoord - normalize(bCoord - aCoord);\n\n\tvec2 prevDiff = aCoord - prevCoord;\n\tvec2 currDiff = bCoord - aCoord;\n\tvec2 nextDiff = nextCoord - bCoord;\n\n\tvec2 prevTangent = normalize(prevDiff * scaleRatio);\n\tvec2 currTangent = normalize(currDiff * scaleRatio);\n\tvec2 nextTangent = normalize(nextDiff * scaleRatio);\n\n\tvec2 prevNormal = vec2(-prevTangent.y, prevTangent.x);\n\tvec2 currNormal = vec2(-currTangent.y, currTangent.x);\n\tvec2 nextNormal = vec2(-nextTangent.y, nextTangent.x);\n\n\tvec2 startJoinDirection = normalize(prevTangent - currTangent);\n\tvec2 endJoinDirection = normalize(currTangent - nextTangent);\n\n\t// collapsed/unidirectional segment cases\n\t// FIXME: there should be more elegant solution\n\tvec2 prevTanDiff = abs(prevTangent - currTangent);\n\tvec2 nextTanDiff = abs(nextTangent - currTangent);\n\tif (max(prevTanDiff.x, prevTanDiff.y) &lt; MIN_DIFF) {\n\t\tstartJoinDirection = currNormal;\n\t}\n\tif (max(nextTanDiff.x, nextTanDiff.y) &lt; MIN_DIFF) {\n\t\tendJoinDirection = currNormal;\n\t}\n\tif (aCoord == bCoord) {\n\t\tendJoinDirection = startJoinDirection;\n\t\tcurrNormal = prevNormal;\n\t\tcurrTangent = prevTangent;\n\t}\n\n\ttangent = currTangent;\n\n\t//calculate join shifts relative to normals\n\tfloat startJoinShift = dot(currNormal, startJoinDirection);\n\tfloat endJoinShift = dot(currNormal, endJoinDirection);\n\n\tfloat startMiterRatio = abs(1. / startJoinShift);\n\tfloat endMiterRatio = abs(1. / endJoinShift);\n\n\tvec2 startJoin = startJoinDirection * startMiterRatio;\n\tvec2 endJoin = endJoinDirection * endMiterRatio;\n\n\tvec2 startTopJoin, startBotJoin, endTopJoin, endBotJoin;\n\tstartTopJoin = sign(startJoinShift) * startJoin * .5;\n\tstartBotJoin = -startTopJoin;\n\n\tendTopJoin = sign(endJoinShift) * endJoin * .5;\n\tendBotJoin = -endTopJoin;\n\n\tvec2 aTopCoord = aCoord + normalWidth * startTopJoin;\n\tvec2 bTopCoord = bCoord + normalWidth * endTopJoin;\n\tvec2 aBotCoord = aCoord + normalWidth * startBotJoin;\n\tvec2 bBotCoord = bCoord + normalWidth * endBotJoin;\n\n\t//miter anti-clipping\n\tfloat baClipping = distToLine(bCoord, aCoord, aBotCoord) / dot(normalize(normalWidth * endBotJoin), normalize(normalWidth.yx * vec2(-startBotJoin.y, startBotJoin.x)));\n\tfloat abClipping = distToLine(aCoord, bCoord, bTopCoord) / dot(normalize(normalWidth * startBotJoin), normalize(normalWidth.yx * vec2(-endBotJoin.y, endBotJoin.x)));\n\n\t//prevent close to reverse direction switch\n\tbool prevReverse = dot(currTangent, prevTangent) &lt;= REVERSE_THRESHOLD &amp;&amp; abs(dot(currTangent, prevNormal)) * min(length(prevDiff), length(currDiff)) &lt;  length(normalWidth * currNormal);\n\tbool nextReverse = dot(currTangent, nextTangent) &lt;= REVERSE_THRESHOLD &amp;&amp; abs(dot(currTangent, nextNormal)) * min(length(nextDiff), length(currDiff)) &lt;  length(normalWidth * currNormal);\n\n\tif (prevReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * startJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / startMiterRatio, 1.);\n\t\taBotCoord = aCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\taTopCoord = aCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!nextReverse &amp;&amp; baClipping &gt; 0. &amp;&amp; baClipping &lt; length(normalWidth * endBotJoin)) {\n\t\t//handle miter clipping\n\t\tbTopCoord -= normalWidth * endTopJoin;\n\t\tbTopCoord += normalize(endTopJoin * normalWidth) * baClipping;\n\t}\n\n\tif (nextReverse) {\n\t\t//make join rectangular\n\t\tvec2 miterShift = normalWidth * endJoinDirection * miterLimit * .5;\n\t\tfloat normalAdjust = 1. - min(miterLimit / endMiterRatio, 1.);\n\t\tbBotCoord = bCoord + miterShift - normalAdjust * normalWidth * currNormal * .5;\n\t\tbTopCoord = bCoord + miterShift + normalAdjust * normalWidth * currNormal * .5;\n\t}\n\telse if (!prevReverse &amp;&amp; abClipping &gt; 0. &amp;&amp; abClipping &lt; length(normalWidth * startBotJoin)) {\n\t\t//handle miter clipping\n\t\taBotCoord -= normalWidth * startBotJoin;\n\t\taBotCoord += normalize(startBotJoin * normalWidth) * abClipping;\n\t}\n\n\tvec2 aTopPosition = (aTopCoord) * adjustedScale + translate;\n\tvec2 aBotPosition = (aBotCoord) * adjustedScale + translate;\n\n\tvec2 bTopPosition = (bTopCoord) * adjustedScale + translate;\n\tvec2 bBotPosition = (bBotCoord) * adjustedScale + translate;\n\n\t//position is normalized 0..1 coord on the screen\n\tvec2 position = (aTopPosition * lineTop + aBotPosition * lineBot) * lineStart + (bTopPosition * lineTop + bBotPosition * lineBot) * lineEnd;\n\n\tstartCoord = aCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\tendCoord = bCoord * scaleRatio + translate * viewport.zw + viewport.xy;\n\n\tgl_Position = vec4(position  * 2.0 - 1.0, depth, 1);\n\n\tenableStartMiter = step(dot(currTangent, prevTangent), .5);\n\tenableEndMiter = step(dot(currTangent, nextTangent), .5);\n\n\t//bevel miter cutoffs\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * miterLimit * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * miterLimit * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n\n\t//round miter cutoffs\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tvec2 startMiterWidth = vec2(startJoinDirection) * thickness * abs(dot(startJoinDirection, currNormal)) * .5;\n\t\t\tstartCutoff = vec4(aCoord, aCoord);\n\t\t\tstartCutoff.zw += vec2(-startJoinDirection.y, startJoinDirection.x) / scaleRatio;\n\t\t\tstartCutoff = startCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tstartCutoff += viewport.xyxy;\n\t\t\tstartCutoff += startMiterWidth.xyxy;\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tvec2 endMiterWidth = vec2(endJoinDirection) * thickness * abs(dot(endJoinDirection, currNormal)) * .5;\n\t\t\tendCutoff = vec4(bCoord, bCoord);\n\t\t\tendCutoff.zw += vec2(-endJoinDirection.y, endJoinDirection.x)  / scaleRatio;\n\t\t\tendCutoff = endCutoff * scaleRatio.xyxy + translate.xyxy * viewport.zwzw;\n\t\t\tendCutoff += viewport.xyxy;\n\t\t\tendCutoff += endMiterWidth.xyxy;\n\t\t}\n\t}\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nuniform sampler2D dashPattern;\nuniform float dashSize, pixelRatio, thickness, opacity, id, miterMode;\n\nvarying vec4 fragColor;\nvarying vec2 tangent;\nvarying vec4 startCutoff, endCutoff;\nvarying vec2 startCoord, endCoord;\nvarying float enableStartMiter, enableEndMiter;\n\nfloat distToLine(vec2 p, vec2 a, vec2 b) {\n\tvec2 diff = b - a;\n\tvec2 perp = normalize(vec2(-diff.y, diff.x));\n\treturn dot(p - a, perp);\n}\n\nvoid main() {\n\tfloat alpha = 1., distToStart, distToEnd;\n\tfloat cutoff = thickness * .5;\n\n\t//bevel miter\n\tif (miterMode == 1.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart &lt; -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToStart + 1., 0.), 1.);\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd &lt; -1.) {\n\t\t\t\tdiscard;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\talpha *= min(max(distToEnd + 1., 0.), 1.);\n\t\t}\n\t}\n\n\t// round miter\n\telse if (miterMode == 2.) {\n\t\tif (enableStartMiter == 1.) {\n\t\t\tdistToStart = distToLine(gl_FragCoord.xy, startCutoff.xy, startCutoff.zw);\n\t\t\tif (distToStart &lt; 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - startCoord);\n\n\t\t\t\tif(radius &gt; cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\n\t\tif (enableEndMiter == 1.) {\n\t\t\tdistToEnd = distToLine(gl_FragCoord.xy, endCutoff.xy, endCutoff.zw);\n\t\t\tif (distToEnd &lt; 0.) {\n\t\t\t\tfloat radius = length(gl_FragCoord.xy - endCoord);\n\n\t\t\t\tif(radius &gt; cutoff + .5) {\n\t\t\t\t\tdiscard;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\talpha -= smoothstep(cutoff - .5, cutoff + .5, radius);\n\t\t\t}\n\t\t}\n\t}\n\n\tfloat t = fract(dot(tangent, gl_FragCoord.xy) / dashSize) * .5 + .25;\n\tfloat dash = texture2D(dashPattern, vec2(t, .5)).r;\n\n\tgl_FragColor = fragColor;\n\tgl_FragColor.a *= alpha * opacity * dash;\n}\n&quot;]),attributes:{lineEnd:{buffer:r,divisor:0,stride:8,offset:0},lineTop:{buffer:r,divisor:0,stride:8,offset:4},aColor:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:0,divisor:1},bColor:{buffer:t.prop(&quot;colorBuffer&quot;),stride:4,offset:4,divisor:1},prevCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:0,divisor:1},aCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8,divisor:1},bCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:16,divisor:1},nextCoord:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:24,divisor:1}}},n))}catch(t){e=i}return{fill:t({primitive:&quot;triangle&quot;,elements:function(t,e){return e.triangles},offset:0,vert:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute vec2 position, positionFract;\n\nuniform vec4 color;\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio, id;\nuniform vec4 viewport;\nuniform float opacity;\n\nvarying vec4 fragColor;\n\nconst float MAX_LINES = 256.;\n\nvoid main() {\n\tfloat depth = (MAX_LINES - 4. - id) / (MAX_LINES);\n\n\tvec2 position = position * scale + translate\n       + positionFract * scale + translateFract\n       + position * scaleFract\n       + positionFract * scaleFract;\n\n\tgl_Position = vec4(position * 2.0 - 1.0, depth, 1);\n\n\tfragColor = color / 255.;\n\tfragColor.a *= opacity;\n}\n&quot;]),frag:o([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n\tgl_FragColor = fragColor;\n}\n&quot;]),uniforms:{scale:t.prop(&quot;scale&quot;),color:t.prop(&quot;fill&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translateFract:t.prop(&quot;translateFract&quot;),translate:t.prop(&quot;translate&quot;),opacity:t.prop(&quot;opacity&quot;),pixelRatio:t.context(&quot;pixelRatio&quot;),id:t.prop(&quot;id&quot;),viewport:function(t,e){return[e.viewport.x,e.viewport.y,t.viewportWidth,t.viewportHeight]}},attributes:{position:{buffer:t.prop(&quot;positionBuffer&quot;),stride:8,offset:8},positionFract:{buffer:t.prop(&quot;positionFractBuffer&quot;),stride:8,offset:8}},blend:n.blend,depth:{enable:!1},scissor:n.scissor,stencil:n.stencil,viewport:n.viewport}),rect:i,miter:e}},m.defaults={dashes:null,join:&quot;miter&quot;,miterLimit:1,thickness:10,cap:&quot;square&quot;,color:&quot;black&quot;,opacity:1,overlay:!1,viewport:null,range:null,close:!1,fill:null},m.prototype.render=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];e.length&amp;&amp;(t=this).update.apply(t,e),this.draw()},m.prototype.draw=function(){for(var t=this,e=[],r=arguments.length;r--;)e[r]=arguments[r];return(e.length?e:this.passes).forEach((function(e,r){var n;if(e&amp;&amp;Array.isArray(e))return(n=t).draw.apply(n,e);&quot;number&quot;==typeof e&amp;&amp;(e=t.passes[e]),e&amp;&amp;e.count&gt;1&amp;&amp;e.opacity&amp;&amp;(t.regl._refresh(),e.fill&amp;&amp;e.triangles&amp;&amp;e.triangles.length&gt;2&amp;&amp;t.shaders.fill(e),e.thickness&amp;&amp;(e.scale[0]*e.viewport.width&gt;m.precisionThreshold||e.scale[1]*e.viewport.height&gt;m.precisionThreshold||&quot;rect&quot;===e.join||!e.join&amp;&amp;(e.thickness&lt;=2||e.count&gt;=m.maxPoints)?t.shaders.rect(e):t.shaders.miter(e)))})),this},m.prototype.update=function(t){var e=this;if(t){null!=t.length?&quot;number&quot;==typeof t[0]&amp;&amp;(t=[{positions:t}]):Array.isArray(t)||(t=[t]);var r=this.regl,o=this.gl;if(t.forEach((function(t,f){var d=e.passes[f];if(void 0!==t)if(null!==t){if(&quot;number&quot;==typeof t[0]&amp;&amp;(t={positions:t}),t=s(t,{positions:&quot;positions points data coords&quot;,thickness:&quot;thickness lineWidth lineWidths line-width linewidth width stroke-width strokewidth strokeWidth&quot;,join:&quot;lineJoin linejoin join type mode&quot;,miterLimit:&quot;miterlimit miterLimit&quot;,dashes:&quot;dash dashes dasharray dash-array dashArray&quot;,color:&quot;color colour stroke colors colours stroke-color strokeColor&quot;,fill:&quot;fill fill-color fillColor&quot;,opacity:&quot;alpha opacity&quot;,overlay:&quot;overlay crease overlap intersect&quot;,close:&quot;closed close closed-path closePath&quot;,range:&quot;range dataBox&quot;,viewport:&quot;viewport viewBox&quot;,hole:&quot;holes hole hollow&quot;}),d||(e.passes[f]=d={id:f,scale:null,scaleFract:null,translate:null,translateFract:null,count:0,hole:[],depth:0,dashLength:1,dashTexture:r.texture({channels:1,data:new Uint8Array([255]),width:1,height:1,mag:&quot;linear&quot;,min:&quot;linear&quot;}),colorBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:new Uint8Array}),positionBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array}),positionFractBuffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array})},t=a({},m.defaults,t)),null!=t.thickness&amp;&amp;(d.thickness=parseFloat(t.thickness)),null!=t.opacity&amp;&amp;(d.opacity=parseFloat(t.opacity)),null!=t.miterLimit&amp;&amp;(d.miterLimit=parseFloat(t.miterLimit)),null!=t.overlay&amp;&amp;(d.overlay=!!t.overlay,f&lt;m.maxLines&amp;&amp;(d.depth=2*(m.maxLines-1-f%m.maxLines)/m.maxLines-1)),null!=t.join&amp;&amp;(d.join=t.join),null!=t.hole&amp;&amp;(d.hole=t.hole),null!=t.fill&amp;&amp;(d.fill=t.fill?n(t.fill,&quot;uint8&quot;):null),null!=t.viewport&amp;&amp;(d.viewport=g(t.viewport)),d.viewport||(d.viewport=g([o.drawingBufferWidth,o.drawingBufferHeight])),null!=t.close&amp;&amp;(d.close=t.close),null===t.positions&amp;&amp;(t.positions=[]),t.positions){var v,y;if(t.positions.x&amp;&amp;t.positions.y){var x=t.positions.x,b=t.positions.y;y=d.count=Math.max(x.length,b.length),v=new Float64Array(2*y);for(var _=0;_&lt;y;_++)v[2*_]=x[_],v[2*_+1]=b[_]}else v=l(t.positions,&quot;float64&quot;),y=d.count=Math.floor(v.length/2);var w=d.bounds=i(v,2);if(d.fill){for(var T=[],k={},M=0,A=0,S=0,E=d.count;A&lt;E;A++){var C=v[2*A],L=v[2*A+1];isNaN(C)||isNaN(L)||null==C||null==L?(C=v[2*M],L=v[2*M+1],k[A]=M):M=A,T[S++]=C,T[S++]=L}for(var I=c(T,d.hole||[]),P=0,z=I.length;P&lt;z;P++)null!=k[I[P]]&amp;&amp;(I[P]=k[I[P]]);d.triangles=I}var O=new Float64Array(v);u(O,2,w);var D=new Float64Array(2*y+6);d.close?v[0]===v[2*y-2]&amp;&amp;v[1]===v[2*y-1]?(D[0]=O[2*y-4],D[1]=O[2*y-3]):(D[0]=O[2*y-2],D[1]=O[2*y-1]):(D[0]=O[0],D[1]=O[1]),D.set(O,2),d.close?v[0]===v[2*y-2]&amp;&amp;v[1]===v[2*y-1]?(D[2*y+2]=O[2],D[2*y+3]=O[3],d.count-=1):(D[2*y+2]=O[0],D[2*y+3]=O[1],D[2*y+4]=O[2],D[2*y+5]=O[3]):(D[2*y+2]=O[2*y-2],D[2*y+3]=O[2*y-1],D[2*y+4]=O[2*y-2],D[2*y+5]=O[2*y-1]),d.positionBuffer(h(D)),d.positionFractBuffer(p(D))}if(t.range?d.range=t.range:d.range||(d.range=d.bounds),(t.range||t.positions)&amp;&amp;d.count){var R=d.bounds,F=R[2]-R[0],B=R[3]-R[1],N=d.range[2]-d.range[0],j=d.range[3]-d.range[1];d.scale=[F/N,B/j],d.translate=[-d.range[0]/N+R[0]/N||0,-d.range[1]/j+R[1]/j||0],d.scaleFract=p(d.scale),d.translateFract=p(d.translate)}if(t.dashes){var U,V=0;if(!t.dashes||t.dashes.length&lt;2)V=1,U=new Uint8Array([255,255,255,255,255,255,255,255]);else{V=0;for(var q=0;q&lt;t.dashes.length;++q)V+=t.dashes[q];U=new Uint8Array(V*m.dashMult);for(var H=0,G=255,Y=0;Y&lt;2;Y++)for(var W=0;W&lt;t.dashes.length;++W){for(var X=0,Z=t.dashes[W]*m.dashMult*.5;X&lt;Z;++X)U[H++]=G;G^=255}}d.dashLength=V,d.dashTexture({channels:1,data:U,width:U.length,height:1,mag:&quot;linear&quot;,min:&quot;linear&quot;},0,0)}if(t.color){var J=d.count,K=t.color;K||(K=&quot;transparent&quot;);var Q=new Uint8Array(4*J+4);if(Array.isArray(K)&amp;&amp;&quot;number&quot;!=typeof K[0]){for(var $=0;$&lt;J;$++){var tt=n(K[$],&quot;uint8&quot;);Q.set(tt,4*$)}Q.set(n(K[0],&quot;uint8&quot;),4*J)}else for(var et=n(K,&quot;uint8&quot;),rt=0;rt&lt;J+1;rt++)Q.set(et,4*rt);d.colorBuffer({usage:&quot;dynamic&quot;,type:&quot;uint8&quot;,data:Q})}}else e.passes[f]=null})),t.length&lt;this.passes.length){for(var f=t.length;f&lt;this.passes.length;f++){var d=this.passes[f];d&amp;&amp;(d.colorBuffer.destroy(),d.positionBuffer.destroy(),d.dashTexture.destroy())}this.passes.length=t.length}for(var v=[],y=0;y&lt;this.passes.length;y++)null!==this.passes[y]&amp;&amp;v.push(this.passes[y]);return this.passes=v,this}},m.prototype.destroy=function(){return this.passes.forEach((function(t){t.colorBuffer.destroy(),t.positionBuffer.destroy(),t.dashTexture.destroy()})),this.passes.length=0,this}},{&quot;array-bounds&quot;:70,&quot;array-normalize&quot;:71,&quot;color-normalize&quot;:125,earcut:177,&quot;es6-weak-map&quot;:233,&quot;flatten-vertex-data&quot;:244,glslify:536,&quot;object-assign&quot;:499,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511,&quot;to-float32&quot;:577}],536:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],537:[function(t,e,r){&quot;use strict&quot;;function n(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(&quot;undefined&quot;==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&amp;&amp;(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}(t,e)||a(t,e)||function(){throw new TypeError(&quot;Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.&quot;)}()}function i(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if(&quot;undefined&quot;!=typeof Symbol&amp;&amp;Symbol.iterator in Object(t))return Array.from(t)}(t)||a(t)||function(){throw new TypeError(&quot;Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.&quot;)}()}function a(t,e){if(t){if(&quot;string&quot;==typeof t)return o(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return&quot;Object&quot;===r&amp;&amp;t.constructor&amp;&amp;(r=t.constructor.name),&quot;Map&quot;===r||&quot;Set&quot;===r?Array.from(t):&quot;Arguments&quot;===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(t,e):void 0}}function o(t,e){(null==e||e&gt;t.length)&amp;&amp;(e=t.length);for(var r=0,n=new Array(e);r&lt;e;r++)n[r]=t[r];return n}var s=t(&quot;color-normalize&quot;),l=t(&quot;array-bounds&quot;),c=t(&quot;color-id&quot;),u=t(&quot;@plotly/point-cluster&quot;),f=t(&quot;object-assign&quot;),h=t(&quot;glslify&quot;),p=t(&quot;pick-by-alias&quot;),d=t(&quot;update-diff&quot;),g=t(&quot;flatten-vertex-data&quot;),m=t(&quot;is-iexplorer&quot;),v=t(&quot;to-float32&quot;),y=t(&quot;parse-rect&quot;),x=b;function b(t,e){var r=this;if(!(this instanceof b))return new b(t,e);&quot;function&quot;==typeof t?(e||(e={}),e.regl=t):(e=t,t=null),e&amp;&amp;e.length&amp;&amp;(e.positions=e);var n,i=(t=e.regl)._gl,a=[];this.tooManyColors=m,n=t.texture({data:new Uint8Array(1020),width:255,height:1,type:&quot;uint8&quot;,format:&quot;rgba&quot;,wrapS:&quot;clamp&quot;,wrapT:&quot;clamp&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;}),f(this,{regl:t,gl:i,groups:[],markerCache:[null],markerTextures:[null],palette:a,paletteIds:{},paletteTexture:n,maxColors:255,maxSize:100,canvas:i.canvas}),this.update(e);var o={uniforms:{constPointSize:!!e.constPointSize,pixelRatio:t.context(&quot;pixelRatio&quot;),palette:n,paletteSize:function(t,e){return[r.tooManyColors?0:255,n.height]},scale:t.prop(&quot;scale&quot;),scaleFract:t.prop(&quot;scaleFract&quot;),translate:t.prop(&quot;translate&quot;),translateFract:t.prop(&quot;translateFract&quot;),opacity:t.prop(&quot;opacity&quot;),marker:t.prop(&quot;markerTexture&quot;)},attributes:{x:function(t,e){return e.xAttr||{buffer:e.positionBuffer,stride:8,offset:0}},y:function(t,e){return e.yAttr||{buffer:e.positionBuffer,stride:8,offset:4}},xFract:function(t,e){return e.xAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:0}},yFract:function(t,e){return e.yAttr?{constant:[0,0]}:{buffer:e.positionFractBuffer,stride:8,offset:4}},size:function(t,e){return e.size.length?{buffer:e.sizeBuffer,stride:2,offset:0}:{constant:[Math.round(255*e.size/r.maxSize)]}},borderSize:function(t,e){return e.borderSize.length?{buffer:e.sizeBuffer,stride:2,offset:1}:{constant:[Math.round(255*e.borderSize/r.maxSize)]}},colorId:function(t,e){return e.color.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:0}:{constant:r.tooManyColors?a.slice(4*e.color,4*e.color+4):[e.color]}},borderColorId:function(t,e){return e.borderColor.length?{buffer:e.colorBuffer,stride:r.tooManyColors?8:4,offset:r.tooManyColors?4:2}:{constant:r.tooManyColors?a.slice(4*e.borderColor,4*e.borderColor+4):[e.borderColor]}},isActive:function(t,e){return!0===e.activation?{constant:[1]}:e.activation?e.activation:{constant:[0]}}},blend:{enable:!0,color:[0,0,0,1],func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:&quot;one minus dst alpha&quot;,dstAlpha:&quot;one&quot;}},scissor:{enable:!0,box:t.prop(&quot;viewport&quot;)},viewport:t.prop(&quot;viewport&quot;),stencil:{enable:!1},depth:{enable:!1},elements:t.prop(&quot;elements&quot;),count:t.prop(&quot;count&quot;),offset:t.prop(&quot;offset&quot;),primitive:&quot;points&quot;},s=f({},o);s.frag=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragWidth, fragBorderColorLevel, fragColorLevel;\n\nuniform sampler2D marker;\nuniform float opacity;\n\nfloat smoothStep(float x, float y) {\n  return 1.0 / (1.0 + exp(50.0*(x - y)));\n}\n\nvoid main() {\n  float dist = texture2D(marker, gl_PointCoord).r, delta = fragWidth;\n\n  // max-distance alpha\n  if (dist &lt; 0.003) discard;\n\n  // null-border case\n  if (fragBorderColorLevel == fragColorLevel || fragBorderColor.a == 0.) {\n    float colorAmt = smoothstep(.5 - delta, .5 + delta, dist);\n    gl_FragColor = vec4(fragColor.rgb, colorAmt * fragColor.a * opacity);\n  }\n  else {\n    float borderColorAmt = smoothstep(fragBorderColorLevel - delta, fragBorderColorLevel + delta, dist);\n    float colorAmt = smoothstep(fragColorLevel - delta, fragColorLevel + delta, dist);\n\n    vec4 color = fragBorderColor;\n    color.a *= borderColorAmt;\n    color = mix(color, fragColor, colorAmt);\n    color.a *= opacity;\n\n    gl_FragColor = color;\n  }\n\n}\n&quot;]),s.vert=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform vec2 scale, scaleFract, translate, translateFract, paletteSize;\nuniform float pixelRatio;\nuniform bool constPointSize;\nuniform sampler2D palette;\n\nconst float maxSize = 100.;\nconst float borderLevel = .5;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragPointSize, fragBorderRadius, fragWidth, fragBorderColorLevel, fragColorLevel;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x &lt; 1.);\n\nvec4 getColor(vec4 id) {\n  return isDirect ? id / 255. : texture2D(palette,\n    vec2(\n      (id.x + .5) / paletteSize.x,\n      (id.y + .5) / paletteSize.y\n    )\n  );\n}\n\nvoid main() {\n  // ignore inactive points\n  if (isActive == 0.) return;\n\n  vec2 position = vec2(x, y);\n  vec2 positionFract = vec2(xFract, yFract);\n\n  vec4 color = getColor(colorId);\n  vec4 borderColor = getColor(borderColorId);\n\n  float size = size * maxSize / 255.;\n  float borderSize = borderSize * maxSize / 255.;\n\n  gl_PointSize = 2. * size * pointSizeScale;\n  fragPointSize = size * pixelRatio;\n\n  vec2 pos = (position + translate) * scale\n      + (positionFract + translateFract) * scale\n      + (position + translate) * scaleFract\n      + (positionFract + translateFract) * scaleFract;\n\n  gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n  fragColor = color;\n  fragBorderColor = borderColor;\n  fragWidth = 1. / gl_PointSize;\n\n  fragBorderColorLevel = clamp(borderLevel - borderLevel * borderSize / size, 0., 1.);\n  fragColorLevel = clamp(borderLevel + (1. - borderLevel) * borderSize / size, 0., 1.);\n}&quot;]),this.drawMarker=t(s);var l=f({},o);l.frag=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor, fragBorderColor;\n\nuniform float opacity;\nvarying float fragBorderRadius, fragWidth;\n\nfloat smoothStep(float edge0, float edge1, float x) {\n\tfloat t;\n\tt = clamp((x - edge0) / (edge1 - edge0), 0.0, 1.0);\n\treturn t * t * (3.0 - 2.0 * t);\n}\n\nvoid main() {\n\tfloat radius, alpha = 1.0, delta = fragWidth;\n\n\tradius = length(2.0 * gl_PointCoord.xy - 1.0);\n\n\tif (radius &gt; 1.0 + delta) {\n\t\tdiscard;\n\t}\n\n\talpha -= smoothstep(1.0 - delta, 1.0 + delta, radius);\n\n\tfloat borderRadius = fragBorderRadius;\n\tfloat ratio = smoothstep(borderRadius - delta, borderRadius + delta, radius);\n\tvec4 color = mix(fragColor, fragBorderColor, ratio);\n\tcolor.a *= alpha * opacity;\n\tgl_FragColor = color;\n}\n&quot;]),l.vert=h([&quot;precision highp float;\n#define GLSLIFY 1\n\nattribute float x, y, xFract, yFract;\nattribute float size, borderSize;\nattribute vec4 colorId, borderColorId;\nattribute float isActive;\n\nuniform vec2 scale, scaleFract, translate, translateFract;\nuniform float pixelRatio;\nuniform bool constPointSize;\nuniform sampler2D palette;\nuniform vec2 paletteSize;\n\nconst float maxSize = 100.;\n\nvarying vec4 fragColor, fragBorderColor;\nvarying float fragBorderRadius, fragWidth;\n\nfloat pointSizeScale = (constPointSize) ? 2. : pixelRatio;\n\nbool isDirect = (paletteSize.x &lt; 1.);\n\nvec4 getColor(vec4 id) {\n  return isDirect ? id / 255. : texture2D(palette,\n    vec2(\n      (id.x + .5) / paletteSize.x,\n      (id.y + .5) / paletteSize.y\n    )\n  );\n}\n\nvoid main() {\n  // ignore inactive points\n  if (isActive == 0.) return;\n\n  vec2 position = vec2(x, y);\n  vec2 positionFract = vec2(xFract, yFract);\n\n  vec4 color = getColor(colorId);\n  vec4 borderColor = getColor(borderColorId);\n\n  float size = size * maxSize / 255.;\n  float borderSize = borderSize * maxSize / 255.;\n\n  gl_PointSize = (size + borderSize) * pointSizeScale;\n\n  vec2 pos = (position + translate) * scale\n      + (positionFract + translateFract) * scale\n      + (position + translate) * scaleFract\n      + (positionFract + translateFract) * scaleFract;\n\n  gl_Position = vec4(pos * 2. - 1., 0., 1.);\n\n  fragBorderRadius = 1. - 2. * borderSize / (size + borderSize);\n  fragColor = color;\n  fragBorderColor = borderColor.a == 0. || borderSize == 0. ? vec4(color.rgb, 0.) : borderColor;\n  fragWidth = 1. / gl_PointSize;\n}\n&quot;]),m&amp;&amp;(l.frag=l.frag.replace(&quot;smoothstep&quot;,&quot;smoothStep&quot;),s.frag=s.frag.replace(&quot;smoothstep&quot;,&quot;smoothStep&quot;)),this.drawCircle=t(l)}b.defaults={color:&quot;black&quot;,borderColor:&quot;transparent&quot;,borderSize:0,size:12,opacity:1,marker:void 0,viewport:null,range:null,pixelSize:null,count:0,offset:0,bounds:null,positions:[],snap:1e4},b.prototype.render=function(){return arguments.length&amp;&amp;this.update.apply(this,arguments),this.draw(),this},b.prototype.draw=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n&lt;e;n++)r[n]=arguments[n];var i=this.groups;if(1===r.length&amp;&amp;Array.isArray(r[0])&amp;&amp;(null===r[0][0]||Array.isArray(r[0][0]))&amp;&amp;(r=r[0]),this.regl._refresh(),r.length)for(var a=0;a&lt;r.length;a++)this.drawItem(a,r[a]);else i.forEach((function(e,r){t.drawItem(r)}));return this},b.prototype.drawItem=function(t,e){var r=this.groups,n=r[t];if(&quot;number&quot;==typeof e&amp;&amp;(t=e,n=r[e],e=null),n&amp;&amp;n.count&amp;&amp;n.opacity){n.activation[0]&amp;&amp;this.drawCircle(this.getMarkerDrawOptions(0,n,e));for(var a=[],o=1;o&lt;n.activation.length;o++)n.activation[o]&amp;&amp;(!0===n.activation[o]||n.activation[o].data.length)&amp;&amp;a.push.apply(a,i(this.getMarkerDrawOptions(o,n,e)));a.length&amp;&amp;this.drawMarker(a)}},b.prototype.getMarkerDrawOptions=function(t,e,r){var i=e.range,a=e.tree,o=e.viewport,s=e.activation,l=e.selectionBuffer,c=e.count;this.regl;if(!a)return r?[f({},e,{markerTexture:this.markerTextures[t],activation:s[t],count:r.length,elements:r,offset:0})]:[f({},e,{markerTexture:this.markerTextures[t],activation:s[t],offset:0})];var u=[],h=a.range(i,{lod:!0,px:[(i[2]-i[0])/o.width,(i[3]-i[1])/o.height]});if(r){for(var p=s[t].data,d=new Uint8Array(c),g=0;g&lt;r.length;g++){var m=r[g];d[m]=p?p[m]:1}l.subdata(d)}for(var v=h.length;v--;){var y=n(h[v],2),x=y[0],b=y[1];u.push(f({},e,{markerTexture:this.markerTextures[t],activation:r?l:s[t],offset:x,count:b-x}))}return u},b.prototype.update=function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n&lt;e;n++)r[n]=arguments[n];if(r.length){1===r.length&amp;&amp;Array.isArray(r[0])&amp;&amp;(r=r[0]);var i=this.groups,a=this.gl,o=this.regl,s=this.maxSize,c=this.maxColors,h=this.palette;this.groups=i=r.map((function(e,r){var n=i[r];if(void 0===e)return n;null===e?e={positions:null}:&quot;function&quot;==typeof e?e={ondraw:e}:&quot;number&quot;==typeof e[0]&amp;&amp;(e={positions:e}),null===(e=p(e,{positions:&quot;positions data points&quot;,snap:&quot;snap cluster lod tree&quot;,size:&quot;sizes size radius&quot;,borderSize:&quot;borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline&quot;,color:&quot;colors color fill fill-color fillColor&quot;,borderColor:&quot;borderColors borderColor stroke stroke-color strokeColor&quot;,marker:&quot;markers marker shape&quot;,range:&quot;range dataBox databox&quot;,viewport:&quot;viewport viewPort viewBox viewbox&quot;,opacity:&quot;opacity alpha transparency&quot;,bounds:&quot;bound bounds boundaries limits&quot;,tooManyColors:&quot;tooManyColors palette paletteMode optimizePalette enablePalette&quot;})).positions&amp;&amp;(e.positions=[]),null!=e.tooManyColors&amp;&amp;(t.tooManyColors=e.tooManyColors),n||(i[r]=n={id:r,scale:null,translate:null,scaleFract:null,translateFract:null,activation:[],selectionBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;stream&quot;,type:&quot;uint8&quot;}),sizeBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;uint8&quot;}),colorBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;uint8&quot;}),positionBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;float&quot;}),positionFractBuffer:o.buffer({data:new Uint8Array(0),usage:&quot;dynamic&quot;,type:&quot;float&quot;})},e=f({},b.defaults,e)),e.positions&amp;&amp;!(&quot;marker&quot;in e)&amp;&amp;(e.marker=n.marker,delete n.marker),e.marker&amp;&amp;!(&quot;positions&quot;in e)&amp;&amp;(e.positions=n.positions,delete n.positions);var m=0,x=0;if(d(n,e,[{snap:!0,size:function(t,e){return null==t&amp;&amp;(t=b.defaults.size),m+=t&amp;&amp;t.length?1:0,t},borderSize:function(t,e){return null==t&amp;&amp;(t=b.defaults.borderSize),m+=t&amp;&amp;t.length?1:0,t},opacity:parseFloat,color:function(e,r){return null==e&amp;&amp;(e=b.defaults.color),e=t.updateColor(e),x++,e},borderColor:function(e,r){return null==e&amp;&amp;(e=b.defaults.borderColor),e=t.updateColor(e),x++,e},bounds:function(t,e,r){return&quot;range&quot;in r||(r.range=null),t},positions:function(t,e,r){var n=e.snap,i=e.positionBuffer,a=e.positionFractBuffer,s=e.selectionBuffer;if(t.x||t.y)return t.x.length?e.xAttr={buffer:o.buffer(t.x),offset:0,stride:4,count:t.x.length}:e.xAttr={buffer:t.x.buffer,offset:4*t.x.offset||0,stride:4*(t.x.stride||1),count:t.x.count},t.y.length?e.yAttr={buffer:o.buffer(t.y),offset:0,stride:4,count:t.y.length}:e.yAttr={buffer:t.y.buffer,offset:4*t.y.offset||0,stride:4*(t.y.stride||1),count:t.y.count},e.count=Math.max(e.xAttr.count,e.yAttr.count),t;t=g(t,&quot;float64&quot;);var c=e.count=Math.floor(t.length/2),f=e.bounds=c?l(t,2):null;if(r.range||e.range||(delete e.range,r.range=f),r.marker||e.marker||(delete e.marker,r.marker=null),n&amp;&amp;(!0===n||c&gt;n)?e.tree=u(t,{bounds:f}):n&amp;&amp;n.length&amp;&amp;(e.tree=n),e.tree){var h={primitive:&quot;points&quot;,usage:&quot;static&quot;,data:e.tree,type:&quot;uint32&quot;};e.elements?e.elements(h):e.elements=o.elements(h)}return i({data:v.float(t),usage:&quot;dynamic&quot;}),a({data:v.fract(t),usage:&quot;dynamic&quot;}),s({data:new Uint8Array(c),type:&quot;uint8&quot;,usage:&quot;stream&quot;}),t}},{marker:function(e,r,n){var i=r.activation;if(i.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),i.length=0,e&amp;&amp;&quot;number&quot;!=typeof e[0]){for(var a=[],s=0,l=Math.min(e.length,r.count);s&lt;l;s++){var c=t.addMarker(e[s]);a[c]||(a[c]=new Uint8Array(r.count)),a[c][s]=1}for(var u=0;u&lt;a.length;u++)if(a[u]){var f={data:a[u],type:&quot;uint8&quot;,usage:&quot;static&quot;};i[u]?i[u](f):i[u]=o.buffer(f),i[u].data=a[u]}}else{i[t.addMarker(e)]=!0}return e},range:function(t,e,r){var n=e.bounds;if(n)return t||(t=n),e.scale=[1/(t[2]-t[0]),1/(t[3]-t[1])],e.translate=[-t[0],-t[1]],e.scaleFract=v.fract(e.scale),e.translateFract=v.fract(e.translate),t},viewport:function(t){return y(t||[a.drawingBufferWidth,a.drawingBufferHeight])}}]),m){var _=n,w=_.count,T=_.size,k=_.borderSize,M=_.sizeBuffer,A=new Uint8Array(2*w);if(T.length||k.length)for(var S=0;S&lt;w;S++)A[2*S]=Math.round(255*(null==T[S]?T:T[S])/s),A[2*S+1]=Math.round(255*(null==k[S]?k:k[S])/s);M({data:A,usage:&quot;dynamic&quot;})}if(x){var E,C=n,L=C.count,I=C.color,P=C.borderColor,z=C.colorBuffer;if(t.tooManyColors){if(I.length||P.length){E=new Uint8Array(8*L);for(var O=0;O&lt;L;O++){var D=I[O];E[8*O]=h[4*D],E[8*O+1]=h[4*D+1],E[8*O+2]=h[4*D+2],E[8*O+3]=h[4*D+3];var R=P[O];E[8*O+4]=h[4*R],E[8*O+5]=h[4*R+1],E[8*O+6]=h[4*R+2],E[8*O+7]=h[4*R+3]}}}else if(I.length||P.length){E=new Uint8Array(4*L+2);for(var F=0;F&lt;L;F++)null!=I[F]&amp;&amp;(E[4*F]=I[F]%c,E[4*F+1]=Math.floor(I[F]/c)),null!=P[F]&amp;&amp;(E[4*F+2]=P[F]%c,E[4*F+3]=Math.floor(P[F]/c))}z({data:E||new Uint8Array(0),type:&quot;uint8&quot;,usage:&quot;dynamic&quot;})}return n}))}},b.prototype.addMarker=function(t){var e,r=this.markerTextures,n=this.regl,i=this.markerCache,a=null==t?0:i.indexOf(t);if(a&gt;=0)return a;if(t instanceof Uint8Array||t instanceof Uint8ClampedArray)e=t;else{e=new Uint8Array(t.length);for(var o=0,s=t.length;o&lt;s;o++)e[o]=255*t[o]}var l=Math.floor(Math.sqrt(e.length));return a=r.length,i.push(t),r.push(n.texture({channels:1,data:e,radius:l,mag:&quot;linear&quot;,min:&quot;linear&quot;})),a},b.prototype.updateColor=function(t){var e=this.paletteIds,r=this.palette,n=this.maxColors;Array.isArray(t)||(t=[t]);var i=[];if(&quot;number&quot;==typeof t[0]){var a=[];if(Array.isArray(t))for(var o=0;o&lt;t.length;o+=4)a.push(t.slice(o,o+4));else for(var l=0;l&lt;t.length;l+=4)a.push(t.subarray(l,l+4));t=a}for(var u=0;u&lt;t.length;u++){var f=t[u];f=s(f,&quot;uint8&quot;);var h=c(f,!1);if(null==e[h]){var p=r.length;e[h]=Math.floor(p/4),r[p]=f[0],r[p+1]=f[1],r[p+2]=f[2],r[p+3]=f[3]}i[u]=e[h]}return!this.tooManyColors&amp;&amp;r.length&gt;4*n&amp;&amp;(this.tooManyColors=!0),this.updatePalette(r),1===i.length?i[0]:i},b.prototype.updatePalette=function(t){if(!this.tooManyColors){var e=this.maxColors,r=this.paletteTexture,n=Math.ceil(.25*t.length/e);if(n&gt;1)for(var i=.25*(t=t.slice()).length%e;i&lt;n*e;i++)t.push(0,0,0,0);r.height&lt;n&amp;&amp;r.resize(e,n),r.subimage({width:Math.min(.25*t.length,e),height:n,data:t},0,0)}},b.prototype.destroy=function(){return this.groups.forEach((function(t){t.sizeBuffer.destroy(),t.positionBuffer.destroy(),t.positionFractBuffer.destroy(),t.colorBuffer.destroy(),t.activation.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),t.selectionBuffer.destroy(),t.elements&amp;&amp;t.elements.destroy()})),this.groups.length=0,this.paletteTexture.destroy(),this.markerTextures.forEach((function(t){return t&amp;&amp;t.destroy&amp;&amp;t.destroy()})),this};var _=t(&quot;object-assign&quot;);e.exports=function(t,e){var r=new x(t,e),n=r.render.bind(r);return _(n,{render:n,update:r.update.bind(r),draw:r.draw.bind(r),destroy:r.destroy.bind(r),regl:r.regl,gl:r.gl,canvas:r.gl.canvas,groups:r.groups,markers:r.markerCache,palette:r.palette}),n}},{&quot;@plotly/point-cluster&quot;:57,&quot;array-bounds&quot;:70,&quot;color-id&quot;:123,&quot;color-normalize&quot;:125,&quot;flatten-vertex-data&quot;:244,glslify:538,&quot;is-iexplorer&quot;:466,&quot;object-assign&quot;:499,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511,&quot;to-float32&quot;:577,&quot;update-diff&quot;:599}],538:[function(t,e,r){arguments[4][257][0].apply(r,arguments)},{dup:257}],539:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-scatter2d&quot;),i=t(&quot;pick-by-alias&quot;),a=t(&quot;array-bounds&quot;),o=t(&quot;raf&quot;),s=t(&quot;array-range&quot;),l=t(&quot;parse-rect&quot;),c=t(&quot;flatten-vertex-data&quot;);function u(t,e){if(!(this instanceof u))return new u(t,e);this.traces=[],this.passes={},this.regl=t,this.scatter=n(t),this.canvas=this.scatter.canvas}function f(t,e,r){return(null!=t.id?t.id:t)&lt;&lt;16|(255&amp;e)&lt;&lt;8|255&amp;r}function h(t,e,r){var n,i,a,o,s=t[e],l=t[r];return s.length&gt;2?(s[0],s[2],n=s[1],i=s[3]):s.length?(n=s[0],i=s[1]):(s.x,n=s.y,s.x+s.width,i=s.y+s.height),l.length&gt;2?(a=l[0],o=l[2],l[1],l[3]):l.length?(a=l[0],o=l[1]):(a=l.x,l.y,o=l.x+l.width,l.y+l.height),[a,n,o,i]}function p(t){if(&quot;number&quot;==typeof t)return[t,t,t,t];if(2===t.length)return[t[0],t[1],t[0],t[1]];var e=l(t);return[e.x,e.y,e.x+e.width,e.y+e.height]}e.exports=u,u.prototype.render=function(){for(var t,e=this,r=[],n=arguments.length;n--;)r[n]=arguments[n];return r.length&amp;&amp;(t=this).update.apply(t,r),this.regl.attributes.preserveDrawingBuffer?this.draw():(this.dirty?null==this.planned&amp;&amp;(this.planned=o((function(){e.draw(),e.dirty=!0,e.planned=null}))):(this.draw(),this.dirty=!0,o((function(){e.dirty=!1}))),this)},u.prototype.update=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=0;n&lt;e.length;n++)this.updateItem(n,e[n]);this.traces=this.traces.filter(Boolean);for(var i=[],a=0,o=0;o&lt;this.traces.length;o++){for(var s=this.traces[o],l=this.traces[o].passes,c=0;c&lt;l.length;c++)i.push(this.passes[l[c]]);s.passOffset=a,a+=s.passes.length}return(t=this.scatter).update.apply(t,i),this}},u.prototype.updateItem=function(t,e){var r=this.regl;if(null===e)return this.traces[t]=null,this;if(!e)return this;var n,o=i(e,{data:&quot;data items columns rows values dimensions samples x&quot;,snap:&quot;snap cluster&quot;,size:&quot;sizes size radius&quot;,color:&quot;colors color fill fill-color fillColor&quot;,opacity:&quot;opacity alpha transparency opaque&quot;,borderSize:&quot;borderSizes borderSize border-size bordersize borderWidth borderWidths border-width borderwidth stroke-width strokeWidth strokewidth outline&quot;,borderColor:&quot;borderColors borderColor bordercolor stroke stroke-color strokeColor&quot;,marker:&quot;markers marker shape&quot;,range:&quot;range ranges databox dataBox&quot;,viewport:&quot;viewport viewBox viewbox&quot;,domain:&quot;domain domains area areas&quot;,padding:&quot;pad padding paddings pads margin margins&quot;,transpose:&quot;transpose transposed&quot;,diagonal:&quot;diagonal diag showDiagonal&quot;,upper:&quot;upper up top upperhalf upperHalf showupperhalf showUpper showUpperHalf&quot;,lower:&quot;lower low bottom lowerhalf lowerHalf showlowerhalf showLowerHalf showLower&quot;}),s=this.traces[t]||(this.traces[t]={id:t,buffer:r.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array}),color:&quot;black&quot;,marker:null,size:12,borderColor:&quot;transparent&quot;,borderSize:1,viewport:l([r._gl.drawingBufferWidth,r._gl.drawingBufferHeight]),padding:[0,0,0,0],opacity:1,diagonal:!0,upper:!0,lower:!0});if(null!=o.color&amp;&amp;(s.color=o.color),null!=o.size&amp;&amp;(s.size=o.size),null!=o.marker&amp;&amp;(s.marker=o.marker),null!=o.borderColor&amp;&amp;(s.borderColor=o.borderColor),null!=o.borderSize&amp;&amp;(s.borderSize=o.borderSize),null!=o.opacity&amp;&amp;(s.opacity=o.opacity),o.viewport&amp;&amp;(s.viewport=l(o.viewport)),null!=o.diagonal&amp;&amp;(s.diagonal=o.diagonal),null!=o.upper&amp;&amp;(s.upper=o.upper),null!=o.lower&amp;&amp;(s.lower=o.lower),o.data){s.buffer(c(o.data)),s.columns=o.data.length,s.count=o.data[0].length,s.bounds=[];for(var u=0;u&lt;s.columns;u++)s.bounds[u]=a(o.data[u],1)}o.range&amp;&amp;(s.range=o.range,n=s.range&amp;&amp;&quot;number&quot;!=typeof s.range[0]),o.domain&amp;&amp;(s.domain=o.domain);var d=!1;null!=o.padding&amp;&amp;(Array.isArray(o.padding)&amp;&amp;o.padding.length===s.columns&amp;&amp;&quot;number&quot;==typeof o.padding[o.padding.length-1]?(s.padding=o.padding.map(p),d=!0):s.padding=p(o.padding));var g=s.columns,m=s.count,v=s.viewport.width,y=s.viewport.height,x=s.viewport.x,b=s.viewport.y,_=v/g,w=y/g;s.passes=[];for(var T=0;T&lt;g;T++)for(var k=0;k&lt;g;k++)if((s.diagonal||k!==T)&amp;&amp;(s.upper||!(T&gt;k))&amp;&amp;(s.lower||!(T&lt;k))){var M=f(s.id,T,k),A=this.passes[M]||(this.passes[M]={});if(o.data&amp;&amp;(o.transpose?A.positions={x:{buffer:s.buffer,offset:k,count:m,stride:g},y:{buffer:s.buffer,offset:T,count:m,stride:g}}:A.positions={x:{buffer:s.buffer,offset:k*m,count:m},y:{buffer:s.buffer,offset:T*m,count:m}},A.bounds=h(s.bounds,T,k)),o.domain||o.viewport||o.data){var S=d?h(s.padding,T,k):s.padding;if(s.domain){var E=h(s.domain,T,k),C=E[0],L=E[1],I=E[2],P=E[3];A.viewport=[x+C*v+S[0],b+L*y+S[1],x+I*v-S[2],b+P*y-S[3]]}else A.viewport=[x+k*_+_*S[0],b+T*w+w*S[1],x+(k+1)*_-_*S[2],b+(T+1)*w-w*S[3]]}o.color&amp;&amp;(A.color=s.color),o.size&amp;&amp;(A.size=s.size),o.marker&amp;&amp;(A.marker=s.marker),o.borderSize&amp;&amp;(A.borderSize=s.borderSize),o.borderColor&amp;&amp;(A.borderColor=s.borderColor),o.opacity&amp;&amp;(A.opacity=s.opacity),o.range&amp;&amp;(A.range=n?h(s.range,T,k):s.range||A.bounds),s.passes.push(M)}return this},u.prototype.draw=function(){for(var t,e=[],r=arguments.length;r--;)e[r]=arguments[r];if(e.length){for(var n=[],i=0;i&lt;e.length;i++)if(&quot;number&quot;==typeof e[i]){var a=this.traces[e[i]],o=a.passes,l=a.passOffset;n.push.apply(n,s(l,l+o.length))}else if(e[i].length){var c=e[i],u=this.traces[i],f=u.passes,h=u.passOffset;f=f.map((function(t,e){n[h+e]=c}))}(t=this.scatter).draw.apply(t,n)}else this.scatter.draw();return this},u.prototype.destroy=function(){return this.traces.forEach((function(t){t.buffer&amp;&amp;t.buffer.destroy&amp;&amp;t.buffer.destroy()})),this.traces=null,this.passes=null,this.scatter.destroy(),this}},{&quot;array-bounds&quot;:70,&quot;array-range&quot;:72,&quot;flatten-vertex-data&quot;:244,&quot;parse-rect&quot;:504,&quot;pick-by-alias&quot;:511,raf:528,&quot;regl-scatter2d&quot;:537}],540:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?e.exports=n():t.createREGL=n()}(this,(function(){function t(t,e){this.id=V++,this.type=t,this.data=e}function e(t){return&quot;[&quot;+function t(e){if(0===e.length)return[];var r=e.charAt(0),n=e.charAt(e.length-1);if(1&lt;e.length&amp;&amp;r===n&amp;&amp;('&quot;'===r||&quot;'&quot;===r))return['&quot;'+e.substr(1,e.length-2).replace(/\\/g,&quot;\\\\&quot;).replace(/&quot;/g,'\\&quot;')+'&quot;'];if(r=/\[(false|true|null|\d+|'[^']*'|&quot;[^&quot;]*&quot;)\]/.exec(e))return t(e.substr(0,r.index)).concat(t(r[1])).concat(t(e.substr(r.index+r[0].length)));if(1===(r=e.split(&quot;.&quot;)).length)return['&quot;'+e.replace(/\\/g,&quot;\\\\&quot;).replace(/&quot;/g,'\\&quot;')+'&quot;'];for(e=[],n=0;n&lt;r.length;++n)e=e.concat(t(r[n]));return e}(t).join(&quot;][&quot;)+&quot;]&quot;}function r(t){return&quot;string&quot;==typeof t?t.split():t}function n(t){return&quot;string&quot;==typeof t?document.querySelector(t):t}function i(t){var e,i,a,o,s=t||{};t={};var l=[],c=[],u=&quot;undefined&quot;==typeof window?1:window.devicePixelRatio,f=!1,h=function(t){},p=function(){};if(&quot;string&quot;==typeof s?e=document.querySelector(s):&quot;object&quot;==typeof s&amp;&amp;(&quot;string&quot;==typeof s.nodeName&amp;&amp;&quot;function&quot;==typeof s.appendChild&amp;&amp;&quot;function&quot;==typeof s.getBoundingClientRect?e=s:&quot;function&quot;==typeof s.drawArrays||&quot;function&quot;==typeof s.drawElements?a=(o=s).canvas:(&quot;gl&quot;in s?o=s.gl:&quot;canvas&quot;in s?a=n(s.canvas):&quot;container&quot;in s&amp;&amp;(i=n(s.container)),&quot;attributes&quot;in s&amp;&amp;(t=s.attributes),&quot;extensions&quot;in s&amp;&amp;(l=r(s.extensions)),&quot;optionalExtensions&quot;in s&amp;&amp;(c=r(s.optionalExtensions)),&quot;onDone&quot;in s&amp;&amp;(h=s.onDone),&quot;profile&quot;in s&amp;&amp;(f=!!s.profile),&quot;pixelRatio&quot;in s&amp;&amp;(u=+s.pixelRatio))),e&amp;&amp;(&quot;canvas&quot;===e.nodeName.toLowerCase()?a=e:i=e),!o){if(!a){if(!(e=function(t,e,r){function n(){var e=window.innerWidth,n=window.innerHeight;t!==document.body&amp;&amp;(e=(n=t.getBoundingClientRect()).right-n.left,n=n.bottom-n.top),a.width=r*e,a.height=r*n,U(a.style,{width:e+&quot;px&quot;,height:n+&quot;px&quot;})}var i,a=document.createElement(&quot;canvas&quot;);return U(a.style,{border:0,margin:0,padding:0,top:0,left:0}),t.appendChild(a),t===document.body&amp;&amp;(a.style.position=&quot;absolute&quot;,U(t.style,{margin:0,padding:0})),t!==document.body&amp;&amp;&quot;function&quot;==typeof ResizeObserver?(i=new ResizeObserver((function(){setTimeout(n)}))).observe(t):window.addEventListener(&quot;resize&quot;,n,!1),n(),{canvas:a,onDestroy:function(){i?i.disconnect():window.removeEventListener(&quot;resize&quot;,n),t.removeChild(a)}}}(i||document.body,0,u)))return null;a=e.canvas,p=e.onDestroy}void 0===t.premultipliedAlpha&amp;&amp;(t.premultipliedAlpha=!0),o=function(t,e){function r(r){try{return t.getContext(r,e)}catch(t){return null}}return r(&quot;webgl&quot;)||r(&quot;experimental-webgl&quot;)||r(&quot;webgl-experimental&quot;)}(a,t)}return o?{gl:o,canvas:a,container:i,extensions:l,optionalExtensions:c,pixelRatio:u,profile:f,onDone:h,onDestroy:p}:(p(),h(&quot;webgl not supported, try upgrading your browser or graphics drivers http://get.webgl.org&quot;),null)}function a(t,e){for(var r=Array(t),n=0;n&lt;t;++n)r[n]=e(n);return r}function o(t){var e,r;return e=(65535&lt;t)&lt;&lt;4,e|=r=(255&lt;(t&gt;&gt;&gt;=e))&lt;&lt;3,(e|=r=(15&lt;(t&gt;&gt;&gt;=r))&lt;&lt;2)|(r=(3&lt;(t&gt;&gt;&gt;=r))&lt;&lt;1)|t&gt;&gt;&gt;r&gt;&gt;1}function s(){function t(t){t:{for(var e=16;268435456&gt;=e;e*=16)if(t&lt;=e){t=e;break t}t=0}return 0&lt;(e=r[o(t)&gt;&gt;2]).length?e.pop():new ArrayBuffer(t)}function e(t){r[o(t.byteLength)&gt;&gt;2].push(t)}var r=a(8,(function(){return[]}));return{alloc:t,free:e,allocType:function(e,r){var n=null;switch(e){case 5120:n=new Int8Array(t(r),0,r);break;case 5121:n=new Uint8Array(t(r),0,r);break;case 5122:n=new Int16Array(t(2*r),0,r);break;case 5123:n=new Uint16Array(t(2*r),0,r);break;case 5124:n=new Int32Array(t(4*r),0,r);break;case 5125:n=new Uint32Array(t(4*r),0,r);break;case 5126:n=new Float32Array(t(4*r),0,r);break;default:return null}return n.length!==r?n.subarray(0,r):n},freeType:function(t){e(t.buffer)}}}function l(t){return!!t&amp;&amp;&quot;object&quot;==typeof t&amp;&amp;Array.isArray(t.shape)&amp;&amp;Array.isArray(t.stride)&amp;&amp;&quot;number&quot;==typeof t.offset&amp;&amp;t.shape.length===t.stride.length&amp;&amp;(Array.isArray(t.data)||X(t.data))}function c(t,e,r,n,i,a){for(var o=0;o&lt;e;++o)for(var s=t[o],l=0;l&lt;r;++l)for(var c=s[l],u=0;u&lt;n;++u)i[a++]=c[u]}function u(t){return 0|K[Object.prototype.toString.call(t)]}function f(t,e){for(var r=0;r&lt;e.length;++r)t[r]=e[r]}function h(t,e,r,n,i,a,o){for(var s=0,l=0;l&lt;r;++l)for(var c=0;c&lt;n;++c)t[s++]=e[i*l+a*c+o]}function p(t,e,r,n){function i(e){this.id=c++,this.buffer=t.createBuffer(),this.type=e,this.usage=35044,this.byteLength=0,this.dimension=1,this.dtype=5121,this.persistentData=null,r.profile&amp;&amp;(this.stats={size:0})}function a(e,r,n){e.byteLength=r.byteLength,t.bufferData(e.type,r,n)}function o(t,e,r,n,i,o){if(t.usage=r,Array.isArray(e)){if(t.dtype=n||5126,0&lt;e.length)if(Array.isArray(e[0])){i=et(e);for(var s=n=1;s&lt;i.length;++s)n*=i[s];t.dimension=n,a(t,e=tt(e,i,t.dtype),r),o?t.persistentData=e:Y.freeType(e)}else&quot;number&quot;==typeof e[0]?(t.dimension=i,f(i=Y.allocType(t.dtype,e.length),e),a(t,i,r),o?t.persistentData=i:Y.freeType(i)):X(e[0])&amp;&amp;(t.dimension=e[0].length,t.dtype=n||u(e[0])||5126,a(t,e=tt(e,[e.length,e[0].length],t.dtype),r),o?t.persistentData=e:Y.freeType(e))}else if(X(e))t.dtype=n||u(e),t.dimension=i,a(t,e,r),o&amp;&amp;(t.persistentData=new Uint8Array(new Uint8Array(e.buffer)));else if(l(e)){i=e.shape;var c=e.stride,p=(s=e.offset,0),d=0,g=0,m=0;1===i.length?(p=i[0],d=1,g=c[0],m=0):2===i.length&amp;&amp;(p=i[0],d=i[1],g=c[0],m=c[1]),t.dtype=n||u(e.data)||5126,t.dimension=d,h(i=Y.allocType(t.dtype,p*d),e.data,p,d,g,m,s),a(t,i,r),o?t.persistentData=i:Y.freeType(i)}else e instanceof ArrayBuffer&amp;&amp;(t.dtype=5121,t.dimension=i,a(t,e,r),o&amp;&amp;(t.persistentData=new Uint8Array(new Uint8Array(e))))}function s(r){e.bufferCount--,n(r),t.deleteBuffer(r.buffer),r.buffer=null,delete p[r.id]}var c=0,p={};i.prototype.bind=function(){t.bindBuffer(this.type,this.buffer)},i.prototype.destroy=function(){s(this)};var d=[];return r.profile&amp;&amp;(e.getTotalBufferSize=function(){var t=0;return Object.keys(p).forEach((function(e){t+=p[e].stats.size})),t}),{create:function(n,a,c,d){function g(e){var n=35044,i=null,a=0,s=0,c=1;return Array.isArray(e)||X(e)||l(e)||e instanceof ArrayBuffer?i=e:&quot;number&quot;==typeof e?a=0|e:e&amp;&amp;(&quot;data&quot;in e&amp;&amp;(i=e.data),&quot;usage&quot;in e&amp;&amp;(n=$[e.usage]),&quot;type&quot;in e&amp;&amp;(s=Q[e.type]),&quot;dimension&quot;in e&amp;&amp;(c=0|e.dimension),&quot;length&quot;in e&amp;&amp;(a=0|e.length)),m.bind(),i?o(m,i,n,s,c,d):(a&amp;&amp;t.bufferData(m.type,a,n),m.dtype=s||5121,m.usage=n,m.dimension=c,m.byteLength=a),r.profile&amp;&amp;(m.stats.size=m.byteLength*rt[m.dtype]),g}e.bufferCount++;var m=new i(a);return p[m.id]=m,c||g(n),g._reglType=&quot;buffer&quot;,g._buffer=m,g.subdata=function(e,r){var n,i=0|(r||0);if(m.bind(),X(e)||e instanceof ArrayBuffer)t.bufferSubData(m.type,i,e);else if(Array.isArray(e)){if(0&lt;e.length)if(&quot;number&quot;==typeof e[0]){var a=Y.allocType(m.dtype,e.length);f(a,e),t.bufferSubData(m.type,i,a),Y.freeType(a)}else(Array.isArray(e[0])||X(e[0]))&amp;&amp;(n=et(e),a=tt(e,n,m.dtype),t.bufferSubData(m.type,i,a),Y.freeType(a))}else if(l(e)){n=e.shape;var o=e.stride,s=a=0,c=0,p=0;1===n.length?(a=n[0],s=1,c=o[0],p=0):2===n.length&amp;&amp;(a=n[0],s=n[1],c=o[0],p=o[1]),n=Array.isArray(e.data)?m.dtype:u(e.data),h(n=Y.allocType(n,a*s),e.data,a,s,c,p,e.offset),t.bufferSubData(m.type,i,n),Y.freeType(n)}return g},r.profile&amp;&amp;(g.stats=m.stats),g.destroy=function(){s(m)},g},createStream:function(t,e){var r=d.pop();return r||(r=new i(t)),r.bind(),o(r,e,35040,0,1,!1),r},destroyStream:function(t){d.push(t)},clear:function(){Z(p).forEach(s),d.forEach(s)},getBuffer:function(t){return t&amp;&amp;t._buffer instanceof i?t._buffer:null},restore:function(){Z(p).forEach((function(e){e.buffer=t.createBuffer(),t.bindBuffer(e.type,e.buffer),t.bufferData(e.type,e.persistentData||e.byteLength,e.usage)}))},_initBuffer:o}}function d(t,e,r,n){function i(t){this.id=c++,s[this.id]=this,this.buffer=t,this.primType=4,this.type=this.vertCount=0}function a(n,i,a,o,s,c,u){var f;if(n.buffer.bind(),i?((f=u)||X(i)&amp;&amp;(!l(i)||X(i.data))||(f=e.oes_element_index_uint?5125:5123),r._initBuffer(n.buffer,i,a,f,3)):(t.bufferData(34963,c,a),n.buffer.dtype=f||5121,n.buffer.usage=a,n.buffer.dimension=3,n.buffer.byteLength=c),f=u,!u){switch(n.buffer.dtype){case 5121:case 5120:f=5121;break;case 5123:case 5122:f=5123;break;case 5125:case 5124:f=5125}n.buffer.dtype=f}n.type=f,0&gt;(i=s)&amp;&amp;(i=n.buffer.byteLength,5123===f?i&gt;&gt;=1:5125===f&amp;&amp;(i&gt;&gt;=2)),n.vertCount=i,i=o,0&gt;o&amp;&amp;(i=4,1===(o=n.buffer.dimension)&amp;&amp;(i=0),2===o&amp;&amp;(i=1),3===o&amp;&amp;(i=4)),n.primType=i}function o(t){n.elementsCount--,delete s[t.id],t.buffer.destroy(),t.buffer=null}var s={},c=0,u={uint8:5121,uint16:5123};e.oes_element_index_uint&amp;&amp;(u.uint32=5125),i.prototype.bind=function(){this.buffer.bind()};var f=[];return{create:function(t,e){function s(t){if(t)if(&quot;number&quot;==typeof t)c(t),f.primType=4,f.vertCount=0|t,f.type=5121;else{var e=null,r=35044,n=-1,i=-1,o=0,h=0;Array.isArray(t)||X(t)||l(t)?e=t:(&quot;data&quot;in t&amp;&amp;(e=t.data),&quot;usage&quot;in t&amp;&amp;(r=$[t.usage]),&quot;primitive&quot;in t&amp;&amp;(n=nt[t.primitive]),&quot;count&quot;in t&amp;&amp;(i=0|t.count),&quot;type&quot;in t&amp;&amp;(h=u[t.type]),&quot;length&quot;in t?o=0|t.length:(o=i,5123===h||5122===h?o*=2:5125!==h&amp;&amp;5124!==h||(o*=4))),a(f,e,r,n,i,o,h)}else c(),f.primType=4,f.vertCount=0,f.type=5121;return s}var c=r.create(null,34963,!0),f=new i(c._buffer);return n.elementsCount++,s(t),s._reglType=&quot;elements&quot;,s._elements=f,s.subdata=function(t,e){return c.subdata(t,e),s},s.destroy=function(){o(f)},s},createStream:function(t){var e=f.pop();return e||(e=new i(r.create(null,34963,!0,!1)._buffer)),a(e,t,35040,-1,-1,0,0),e},destroyStream:function(t){f.push(t)},getElements:function(t){return&quot;function&quot;==typeof t&amp;&amp;t._elements instanceof i?t._elements:null},clear:function(){Z(s).forEach(o)}}}function g(t){for(var e=Y.allocType(5123,t.length),r=0;r&lt;t.length;++r)if(isNaN(t[r]))e[r]=65535;else if(1/0===t[r])e[r]=31744;else if(-1/0===t[r])e[r]=64512;else{it[0]=t[r];var n=(a=at[0])&gt;&gt;&gt;31&lt;&lt;15,i=(a&lt;&lt;1&gt;&gt;&gt;24)-127,a=a&gt;&gt;13&amp;1023;e[r]=-24&gt;i?n:-14&gt;i?n+(a+1024&gt;&gt;-14-i):15&lt;i?n+31744:n+(i+15&lt;&lt;10)+a}return e}function m(t){return Array.isArray(t)||X(t)}function v(t){return&quot;[object &quot;+t+&quot;]&quot;}function y(t){return Array.isArray(t)&amp;&amp;(0===t.length||&quot;number&quot;==typeof t[0])}function x(t){return!(!Array.isArray(t)||0===t.length||!m(t[0]))}function b(t){return Object.prototype.toString.call(t)}function _(t){if(!t)return!1;var e=b(t);return 0&lt;=gt.indexOf(e)||(y(t)||x(t)||l(t))}function w(t,e){36193===t.type?(t.data=g(e),Y.freeType(e)):t.data=e}function T(t,e,r,n,i,a){if(t=&quot;undefined&quot;!=typeof vt[t]?vt[t]:lt[t]*mt[e],a&amp;&amp;(t*=6),i){for(n=0;1&lt;=r;)n+=t*r*r,r/=2;return n}return t*r*n}function k(t,e,r,n,i,a,o){function s(){this.format=this.internalformat=6408,this.type=5121,this.flipY=this.premultiplyAlpha=this.compressed=!1,this.unpackAlignment=1,this.colorSpace=37444,this.channels=this.height=this.width=0}function c(t,e){t.internalformat=e.internalformat,t.format=e.format,t.type=e.type,t.compressed=e.compressed,t.premultiplyAlpha=e.premultiplyAlpha,t.flipY=e.flipY,t.unpackAlignment=e.unpackAlignment,t.colorSpace=e.colorSpace,t.width=e.width,t.height=e.height,t.channels=e.channels}function u(t,e){if(&quot;object&quot;==typeof e&amp;&amp;e){&quot;premultiplyAlpha&quot;in e&amp;&amp;(t.premultiplyAlpha=e.premultiplyAlpha),&quot;flipY&quot;in e&amp;&amp;(t.flipY=e.flipY),&quot;alignment&quot;in e&amp;&amp;(t.unpackAlignment=e.alignment),&quot;colorSpace&quot;in e&amp;&amp;(t.colorSpace=q[e.colorSpace]),&quot;type&quot;in e&amp;&amp;(t.type=H[e.type]);var r=t.width,n=t.height,i=t.channels,a=!1;&quot;shape&quot;in e?(r=e.shape[0],n=e.shape[1],3===e.shape.length&amp;&amp;(i=e.shape[2],a=!0)):(&quot;radius&quot;in e&amp;&amp;(r=n=e.radius),&quot;width&quot;in e&amp;&amp;(r=e.width),&quot;height&quot;in e&amp;&amp;(n=e.height),&quot;channels&quot;in e&amp;&amp;(i=e.channels,a=!0)),t.width=0|r,t.height=0|n,t.channels=0|i,r=!1,&quot;format&quot;in e&amp;&amp;(r=e.format,n=t.internalformat=G[r],t.format=at[n],r in H&amp;&amp;!(&quot;type&quot;in e)&amp;&amp;(t.type=H[r]),r in W&amp;&amp;(t.compressed=!0),r=!0),!a&amp;&amp;r?t.channels=lt[t.format]:a&amp;&amp;!r&amp;&amp;t.channels!==st[t.format]&amp;&amp;(t.format=t.internalformat=st[t.channels])}}function f(e){t.pixelStorei(37440,e.flipY),t.pixelStorei(37441,e.premultiplyAlpha),t.pixelStorei(37443,e.colorSpace),t.pixelStorei(3317,e.unpackAlignment)}function h(){s.call(this),this.yOffset=this.xOffset=0,this.data=null,this.needsFree=!1,this.element=null,this.needsCopy=!1}function p(t,e){var r=null;if(_(e)?r=e:e&amp;&amp;(u(t,e),&quot;x&quot;in e&amp;&amp;(t.xOffset=0|e.x),&quot;y&quot;in e&amp;&amp;(t.yOffset=0|e.y),_(e.data)&amp;&amp;(r=e.data)),e.copy){var n=i.viewportWidth,a=i.viewportHeight;t.width=t.width||n-t.xOffset,t.height=t.height||a-t.yOffset,t.needsCopy=!0}else if(r){if(X(r))t.channels=t.channels||4,t.data=r,&quot;type&quot;in e||5121!==t.type||(t.type=0|K[Object.prototype.toString.call(r)]);else if(y(r)){switch(t.channels=t.channels||4,a=(n=r).length,t.type){case 5121:case 5123:case 5125:case 5126:(a=Y.allocType(t.type,a)).set(n),t.data=a;break;case 36193:t.data=g(n)}t.alignment=1,t.needsFree=!0}else if(l(r)){n=r.data,Array.isArray(n)||5121!==t.type||(t.type=0|K[Object.prototype.toString.call(n)]);a=r.shape;var o,s,c,f,h=r.stride;3===a.length?(c=a[2],f=h[2]):f=c=1,o=a[0],s=a[1],a=h[0],h=h[1],t.alignment=1,t.width=o,t.height=s,t.channels=c,t.format=t.internalformat=st[c],t.needsFree=!0,o=f,r=r.offset,c=t.width,f=t.height,s=t.channels;for(var p=Y.allocType(36193===t.type?5126:t.type,c*f*s),d=0,v=0;v&lt;f;++v)for(var T=0;T&lt;c;++T)for(var k=0;k&lt;s;++k)p[d++]=n[a*T+h*v+o*k+r];w(t,p)}else if(b(r)===ct||b(r)===ut||b(r)===ft)b(r)===ct||b(r)===ut?t.element=r:t.element=r.canvas,t.width=t.element.width,t.height=t.element.height,t.channels=4;else if(b(r)===ht)t.element=r,t.width=r.width,t.height=r.height,t.channels=4;else if(b(r)===pt)t.element=r,t.width=r.naturalWidth,t.height=r.naturalHeight,t.channels=4;else if(b(r)===dt)t.element=r,t.width=r.videoWidth,t.height=r.videoHeight,t.channels=4;else if(x(r)){for(n=t.width||r[0].length,a=t.height||r.length,h=t.channels,h=m(r[0][0])?h||r[0][0].length:h||1,o=J.shape(r),c=1,f=0;f&lt;o.length;++f)c*=o[f];c=Y.allocType(36193===t.type?5126:t.type,c),J.flatten(r,o,&quot;&quot;,c),w(t,c),t.alignment=1,t.width=n,t.height=a,t.channels=h,t.format=t.internalformat=st[h],t.needsFree=!0}}else t.width=t.width||1,t.height=t.height||1,t.channels=t.channels||4}function d(e,r,i,a,o){var s=e.element,l=e.data,c=e.internalformat,u=e.format,h=e.type,p=e.width,d=e.height;f(e),s?t.texSubImage2D(r,o,i,a,u,h,s):e.compressed?t.compressedTexSubImage2D(r,o,i,a,c,p,d,l):e.needsCopy?(n(),t.copyTexSubImage2D(r,o,i,a,e.xOffset,e.yOffset,p,d)):t.texSubImage2D(r,o,i,a,p,d,u,h,l)}function v(){return gt.pop()||new h}function k(t){t.needsFree&amp;&amp;Y.freeType(t.data),h.call(t),gt.push(t)}function M(){s.call(this),this.genMipmaps=!1,this.mipmapHint=4352,this.mipmask=0,this.images=Array(16)}function A(t,e,r){var n=t.images[0]=v();t.mipmask=1,n.width=t.width=e,n.height=t.height=r,n.channels=t.channels=4}function S(t,e){var r=null;if(_(e))c(r=t.images[0]=v(),t),p(r,e),t.mipmask=1;else if(u(t,e),Array.isArray(e.mipmap))for(var n=e.mipmap,i=0;i&lt;n.length;++i)c(r=t.images[i]=v(),t),r.width&gt;&gt;=i,r.height&gt;&gt;=i,p(r,n[i]),t.mipmask|=1&lt;&lt;i;else c(r=t.images[0]=v(),t),p(r,e),t.mipmask=1;c(t,t.images[0])}function E(e,r){for(var i=e.images,a=0;a&lt;i.length&amp;&amp;i[a];++a){var o=i[a],s=r,l=a,c=o.element,u=o.data,h=o.internalformat,p=o.format,d=o.type,g=o.width,m=o.height;f(o),c?t.texImage2D(s,l,p,p,d,c):o.compressed?t.compressedTexImage2D(s,l,h,g,m,0,u):o.needsCopy?(n(),t.copyTexImage2D(s,l,p,o.xOffset,o.yOffset,g,m,0)):t.texImage2D(s,l,p,g,m,0,p,d,u||null)}}function C(){var t=mt.pop()||new M;s.call(t);for(var e=t.mipmask=0;16&gt;e;++e)t.images[e]=null;return t}function L(t){for(var e=t.images,r=0;r&lt;e.length;++r)e[r]&amp;&amp;k(e[r]),e[r]=null;mt.push(t)}function I(){this.magFilter=this.minFilter=9728,this.wrapT=this.wrapS=33071,this.anisotropic=1,this.genMipmaps=!1,this.mipmapHint=4352}function P(t,e){&quot;min&quot;in e&amp;&amp;(t.minFilter=V[e.min],0&lt;=ot.indexOf(t.minFilter)&amp;&amp;!(&quot;faces&quot;in e)&amp;&amp;(t.genMipmaps=!0)),&quot;mag&quot;in e&amp;&amp;(t.magFilter=j[e.mag]);var r=t.wrapS,n=t.wrapT;if(&quot;wrap&quot;in e){var i=e.wrap;&quot;string&quot;==typeof i?r=n=N[i]:Array.isArray(i)&amp;&amp;(r=N[i[0]],n=N[i[1]])}else&quot;wrapS&quot;in e&amp;&amp;(r=N[e.wrapS]),&quot;wrapT&quot;in e&amp;&amp;(n=N[e.wrapT]);if(t.wrapS=r,t.wrapT=n,&quot;anisotropic&quot;in e&amp;&amp;(t.anisotropic=e.anisotropic),&quot;mipmap&quot;in e){switch(r=!1,typeof e.mipmap){case&quot;string&quot;:t.mipmapHint=B[e.mipmap],r=t.genMipmaps=!0;break;case&quot;boolean&quot;:r=t.genMipmaps=e.mipmap;break;case&quot;object&quot;:t.genMipmaps=!1,r=!0}!r||&quot;min&quot;in e||(t.minFilter=9984)}}function z(r,n){t.texParameteri(n,10241,r.minFilter),t.texParameteri(n,10240,r.magFilter),t.texParameteri(n,10242,r.wrapS),t.texParameteri(n,10243,r.wrapT),e.ext_texture_filter_anisotropic&amp;&amp;t.texParameteri(n,34046,r.anisotropic),r.genMipmaps&amp;&amp;(t.hint(33170,r.mipmapHint),t.generateMipmap(n))}function O(e){s.call(this),this.mipmask=0,this.internalformat=6408,this.id=vt++,this.refCount=1,this.target=e,this.texture=t.createTexture(),this.unit=-1,this.bindCount=0,this.texInfo=new I,o.profile&amp;&amp;(this.stats={size:0})}function D(e){t.activeTexture(33984),t.bindTexture(e.target,e.texture)}function R(){var e=bt[0];e?t.bindTexture(e.target,e.texture):t.bindTexture(3553,null)}function F(e){var r=e.texture,n=e.unit,i=e.target;0&lt;=n&amp;&amp;(t.activeTexture(33984+n),t.bindTexture(i,null),bt[n]=null),t.deleteTexture(r),e.texture=null,e.params=null,e.pixels=null,e.refCount=0,delete yt[e.id],a.textureCount--}var B={&quot;don't care&quot;:4352,&quot;dont care&quot;:4352,nice:4354,fast:4353},N={repeat:10497,clamp:33071,mirror:33648},j={nearest:9728,linear:9729},V=U({mipmap:9987,&quot;nearest mipmap nearest&quot;:9984,&quot;linear mipmap nearest&quot;:9985,&quot;nearest mipmap linear&quot;:9986,&quot;linear mipmap linear&quot;:9987},j),q={none:0,browser:37444},H={uint8:5121,rgba4:32819,rgb565:33635,&quot;rgb5 a1&quot;:32820},G={alpha:6406,luminance:6409,&quot;luminance alpha&quot;:6410,rgb:6407,rgba:6408,rgba4:32854,&quot;rgb5 a1&quot;:32855,rgb565:36194},W={};e.ext_srgb&amp;&amp;(G.srgb=35904,G.srgba=35906),e.oes_texture_float&amp;&amp;(H.float32=H.float=5126),e.oes_texture_half_float&amp;&amp;(H.float16=H[&quot;half float&quot;]=36193),e.webgl_depth_texture&amp;&amp;(U(G,{depth:6402,&quot;depth stencil&quot;:34041}),U(H,{uint16:5123,uint32:5125,&quot;depth stencil&quot;:34042})),e.webgl_compressed_texture_s3tc&amp;&amp;U(W,{&quot;rgb s3tc dxt1&quot;:33776,&quot;rgba s3tc dxt1&quot;:33777,&quot;rgba s3tc dxt3&quot;:33778,&quot;rgba s3tc dxt5&quot;:33779}),e.webgl_compressed_texture_atc&amp;&amp;U(W,{&quot;rgb atc&quot;:35986,&quot;rgba atc explicit alpha&quot;:35987,&quot;rgba atc interpolated alpha&quot;:34798}),e.webgl_compressed_texture_pvrtc&amp;&amp;U(W,{&quot;rgb pvrtc 4bppv1&quot;:35840,&quot;rgb pvrtc 2bppv1&quot;:35841,&quot;rgba pvrtc 4bppv1&quot;:35842,&quot;rgba pvrtc 2bppv1&quot;:35843}),e.webgl_compressed_texture_etc1&amp;&amp;(W[&quot;rgb etc1&quot;]=36196);var Q=Array.prototype.slice.call(t.getParameter(34467));Object.keys(W).forEach((function(t){var e=W[t];0&lt;=Q.indexOf(e)&amp;&amp;(G[t]=e)}));var $=Object.keys(G);r.textureFormats=$;var tt=[];Object.keys(G).forEach((function(t){tt[G[t]]=t}));var et=[];Object.keys(H).forEach((function(t){et[H[t]]=t}));var rt=[];Object.keys(j).forEach((function(t){rt[j[t]]=t}));var nt=[];Object.keys(V).forEach((function(t){nt[V[t]]=t}));var it=[];Object.keys(N).forEach((function(t){it[N[t]]=t}));var at=$.reduce((function(t,r){var n=G[r];return 6409===n||6406===n||6409===n||6410===n||6402===n||34041===n||e.ext_srgb&amp;&amp;(35904===n||35906===n)?t[n]=n:32855===n||0&lt;=r.indexOf(&quot;rgba&quot;)?t[n]=6408:t[n]=6407,t}),{}),gt=[],mt=[],vt=0,yt={},xt=r.maxTextureUnits,bt=Array(xt).map((function(){return null}));return U(O.prototype,{bind:function(){this.bindCount+=1;var e=this.unit;if(0&gt;e){for(var r=0;r&lt;xt;++r){var n=bt[r];if(n){if(0&lt;n.bindCount)continue;n.unit=-1}bt[r]=this,e=r;break}o.profile&amp;&amp;a.maxTextureUnits&lt;e+1&amp;&amp;(a.maxTextureUnits=e+1),this.unit=e,t.activeTexture(33984+e),t.bindTexture(this.target,this.texture)}return e},unbind:function(){--this.bindCount},decRef:function(){0&gt;=--this.refCount&amp;&amp;F(this)}}),o.profile&amp;&amp;(a.getTotalTextureSize=function(){var t=0;return Object.keys(yt).forEach((function(e){t+=yt[e].stats.size})),t}),{create2D:function(e,r){function n(t,e){var r=i.texInfo;I.call(r);var a=C();return&quot;number&quot;==typeof t?A(a,0|t,&quot;number&quot;==typeof e?0|e:0|t):t?(P(r,t),S(a,t)):A(a,1,1),r.genMipmaps&amp;&amp;(a.mipmask=(a.width&lt;&lt;1)-1),i.mipmask=a.mipmask,c(i,a),i.internalformat=a.internalformat,n.width=a.width,n.height=a.height,D(i),E(a,3553),z(r,3553),R(),L(a),o.profile&amp;&amp;(i.stats.size=T(i.internalformat,i.type,a.width,a.height,r.genMipmaps,!1)),n.format=tt[i.internalformat],n.type=et[i.type],n.mag=rt[r.magFilter],n.min=nt[r.minFilter],n.wrapS=it[r.wrapS],n.wrapT=it[r.wrapT],n}var i=new O(3553);return yt[i.id]=i,a.textureCount++,n(e,r),n.subimage=function(t,e,r,a){e|=0,r|=0,a|=0;var o=v();return c(o,i),o.width=0,o.height=0,p(o,t),o.width=o.width||(i.width&gt;&gt;a)-e,o.height=o.height||(i.height&gt;&gt;a)-r,D(i),d(o,3553,e,r,a),R(),k(o),n},n.resize=function(e,r){var a=0|e,s=0|r||a;if(a===i.width&amp;&amp;s===i.height)return n;n.width=i.width=a,n.height=i.height=s,D(i);for(var l=0;i.mipmask&gt;&gt;l;++l){var c=a&gt;&gt;l,u=s&gt;&gt;l;if(!c||!u)break;t.texImage2D(3553,l,i.format,c,u,0,i.format,i.type,null)}return R(),o.profile&amp;&amp;(i.stats.size=T(i.internalformat,i.type,a,s,!1,!1)),n},n._reglType=&quot;texture2d&quot;,n._texture=i,o.profile&amp;&amp;(n.stats=i.stats),n.destroy=function(){i.decRef()},n},createCube:function(e,r,n,i,s,l){function f(t,e,r,n,i,a){var s,l=h.texInfo;for(I.call(l),s=0;6&gt;s;++s)g[s]=C();if(&quot;number&quot;!=typeof t&amp;&amp;t){if(&quot;object&quot;==typeof t)if(e)S(g[0],t),S(g[1],e),S(g[2],r),S(g[3],n),S(g[4],i),S(g[5],a);else if(P(l,t),u(h,t),&quot;faces&quot;in t)for(t=t.faces,s=0;6&gt;s;++s)c(g[s],h),S(g[s],t[s]);else for(s=0;6&gt;s;++s)S(g[s],t)}else for(t=0|t||1,s=0;6&gt;s;++s)A(g[s],t,t);for(c(h,g[0]),h.mipmask=l.genMipmaps?(g[0].width&lt;&lt;1)-1:g[0].mipmask,h.internalformat=g[0].internalformat,f.width=g[0].width,f.height=g[0].height,D(h),s=0;6&gt;s;++s)E(g[s],34069+s);for(z(l,34067),R(),o.profile&amp;&amp;(h.stats.size=T(h.internalformat,h.type,f.width,f.height,l.genMipmaps,!0)),f.format=tt[h.internalformat],f.type=et[h.type],f.mag=rt[l.magFilter],f.min=nt[l.minFilter],f.wrapS=it[l.wrapS],f.wrapT=it[l.wrapT],s=0;6&gt;s;++s)L(g[s]);return f}var h=new O(34067);yt[h.id]=h,a.cubeCount++;var g=Array(6);return f(e,r,n,i,s,l),f.subimage=function(t,e,r,n,i){r|=0,n|=0,i|=0;var a=v();return c(a,h),a.width=0,a.height=0,p(a,e),a.width=a.width||(h.width&gt;&gt;i)-r,a.height=a.height||(h.height&gt;&gt;i)-n,D(h),d(a,34069+t,r,n,i),R(),k(a),f},f.resize=function(e){if((e|=0)!==h.width){f.width=h.width=e,f.height=h.height=e,D(h);for(var r=0;6&gt;r;++r)for(var n=0;h.mipmask&gt;&gt;n;++n)t.texImage2D(34069+r,n,h.format,e&gt;&gt;n,e&gt;&gt;n,0,h.format,h.type,null);return R(),o.profile&amp;&amp;(h.stats.size=T(h.internalformat,h.type,f.width,f.height,!1,!0)),f}},f._reglType=&quot;textureCube&quot;,f._texture=h,o.profile&amp;&amp;(f.stats=h.stats),f.destroy=function(){h.decRef()},f},clear:function(){for(var e=0;e&lt;xt;++e)t.activeTexture(33984+e),t.bindTexture(3553,null),bt[e]=null;Z(yt).forEach(F),a.cubeCount=0,a.textureCount=0},getTexture:function(t){return null},restore:function(){for(var e=0;e&lt;xt;++e){var r=bt[e];r&amp;&amp;(r.bindCount=0,r.unit=-1,bt[e]=null)}Z(yt).forEach((function(e){e.texture=t.createTexture(),t.bindTexture(e.target,e.texture);for(var r=0;32&gt;r;++r)if(0!=(e.mipmask&amp;1&lt;&lt;r))if(3553===e.target)t.texImage2D(3553,r,e.internalformat,e.width&gt;&gt;r,e.height&gt;&gt;r,0,e.internalformat,e.type,null);else for(var n=0;6&gt;n;++n)t.texImage2D(34069+n,r,e.internalformat,e.width&gt;&gt;r,e.height&gt;&gt;r,0,e.internalformat,e.type,null);z(e.texInfo,e.target)}))}}}function M(t,e,r,n,i,a){function o(t,e,r){this.target=t,this.texture=e,this.renderbuffer=r;var n=t=0;e?(t=e.width,n=e.height):r&amp;&amp;(t=r.width,n=r.height),this.width=t,this.height=n}function s(t){t&amp;&amp;(t.texture&amp;&amp;t.texture._texture.decRef(),t.renderbuffer&amp;&amp;t.renderbuffer._renderbuffer.decRef())}function l(t,e,r){t&amp;&amp;(t.texture?t.texture._texture.refCount+=1:t.renderbuffer._renderbuffer.refCount+=1)}function c(e,r){r&amp;&amp;(r.texture?t.framebufferTexture2D(36160,e,r.target,r.texture._texture.texture,0):t.framebufferRenderbuffer(36160,e,36161,r.renderbuffer._renderbuffer.renderbuffer))}function u(t){var e=3553,r=null,n=null,i=t;return&quot;object&quot;==typeof t&amp;&amp;(i=t.data,&quot;target&quot;in t&amp;&amp;(e=0|t.target)),&quot;texture2d&quot;===(t=i._reglType)||&quot;textureCube&quot;===t?r=i:&quot;renderbuffer&quot;===t&amp;&amp;(n=i,e=36161),new o(e,r,n)}function f(t,e,r,a,s){return r?((t=n.create2D({width:t,height:e,format:a,type:s}))._texture.refCount=0,new o(3553,t,null)):((t=i.create({width:t,height:e,format:a}))._renderbuffer.refCount=0,new o(36161,null,t))}function h(t){return t&amp;&amp;(t.texture||t.renderbuffer)}function p(t,e,r){t&amp;&amp;(t.texture?t.texture.resize(e,r):t.renderbuffer&amp;&amp;t.renderbuffer.resize(e,r),t.width=e,t.height=r)}function d(){this.id=T++,k[this.id]=this,this.framebuffer=t.createFramebuffer(),this.height=this.width=0,this.colorAttachments=[],this.depthStencilAttachment=this.stencilAttachment=this.depthAttachment=null}function g(t){t.colorAttachments.forEach(s),s(t.depthAttachment),s(t.stencilAttachment),s(t.depthStencilAttachment)}function m(e){t.deleteFramebuffer(e.framebuffer),e.framebuffer=null,a.framebufferCount--,delete k[e.id]}function v(e){var n;t.bindFramebuffer(36160,e.framebuffer);var i=e.colorAttachments;for(n=0;n&lt;i.length;++n)c(36064+n,i[n]);for(n=i.length;n&lt;r.maxColorAttachments;++n)t.framebufferTexture2D(36160,36064+n,3553,null,0);t.framebufferTexture2D(36160,33306,3553,null,0),t.framebufferTexture2D(36160,36096,3553,null,0),t.framebufferTexture2D(36160,36128,3553,null,0),c(36096,e.depthAttachment),c(36128,e.stencilAttachment),c(33306,e.depthStencilAttachment),t.checkFramebufferStatus(36160),t.isContextLost(),t.bindFramebuffer(36160,x.next?x.next.framebuffer:null),x.cur=x.next,t.getError()}function y(t,e){function r(t,e){var i,a=0,o=0,s=!0,c=!0;i=null;var p=!0,d=&quot;rgba&quot;,m=&quot;uint8&quot;,y=1,x=null,w=null,T=null,k=!1;&quot;number&quot;==typeof t?(a=0|t,o=0|e||a):t?(&quot;shape&quot;in t?(a=(o=t.shape)[0],o=o[1]):(&quot;radius&quot;in t&amp;&amp;(a=o=t.radius),&quot;width&quot;in t&amp;&amp;(a=t.width),&quot;height&quot;in t&amp;&amp;(o=t.height)),(&quot;color&quot;in t||&quot;colors&quot;in t)&amp;&amp;(i=t.color||t.colors,Array.isArray(i)),i||(&quot;colorCount&quot;in t&amp;&amp;(y=0|t.colorCount),&quot;colorTexture&quot;in t&amp;&amp;(p=!!t.colorTexture,d=&quot;rgba4&quot;),&quot;colorType&quot;in t&amp;&amp;(m=t.colorType,!p)&amp;&amp;(&quot;half float&quot;===m||&quot;float16&quot;===m?d=&quot;rgba16f&quot;:&quot;float&quot;!==m&amp;&amp;&quot;float32&quot;!==m||(d=&quot;rgba32f&quot;)),&quot;colorFormat&quot;in t&amp;&amp;(d=t.colorFormat,0&lt;=b.indexOf(d)?p=!0:0&lt;=_.indexOf(d)&amp;&amp;(p=!1))),(&quot;depthTexture&quot;in t||&quot;depthStencilTexture&quot;in t)&amp;&amp;(k=!(!t.depthTexture&amp;&amp;!t.depthStencilTexture)),&quot;depth&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.depth?s=t.depth:(x=t.depth,c=!1)),&quot;stencil&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.stencil?c=t.stencil:(w=t.stencil,s=!1)),&quot;depthStencil&quot;in t&amp;&amp;(&quot;boolean&quot;==typeof t.depthStencil?s=c=t.depthStencil:(T=t.depthStencil,c=s=!1))):a=o=1;var M=null,A=null,S=null,E=null;if(Array.isArray(i))M=i.map(u);else if(i)M=[u(i)];else for(M=Array(y),i=0;i&lt;y;++i)M[i]=f(a,o,p,d,m);for(a=a||M[0].width,o=o||M[0].height,x?A=u(x):s&amp;&amp;!c&amp;&amp;(A=f(a,o,k,&quot;depth&quot;,&quot;uint32&quot;)),w?S=u(w):c&amp;&amp;!s&amp;&amp;(S=f(a,o,!1,&quot;stencil&quot;,&quot;uint8&quot;)),T?E=u(T):!x&amp;&amp;!w&amp;&amp;c&amp;&amp;s&amp;&amp;(E=f(a,o,k,&quot;depth stencil&quot;,&quot;depth stencil&quot;)),s=null,i=0;i&lt;M.length;++i)l(M[i]),M[i]&amp;&amp;M[i].texture&amp;&amp;(c=bt[M[i].texture._texture.format]*_t[M[i].texture._texture.type],null===s&amp;&amp;(s=c));return l(A),l(S),l(E),g(n),n.width=a,n.height=o,n.colorAttachments=M,n.depthAttachment=A,n.stencilAttachment=S,n.depthStencilAttachment=E,r.color=M.map(h),r.depth=h(A),r.stencil=h(S),r.depthStencil=h(E),r.width=n.width,r.height=n.height,v(n),r}var n=new d;return a.framebufferCount++,r(t,e),U(r,{resize:function(t,e){var i=Math.max(0|t,1),a=Math.max(0|e||i,1);if(i===n.width&amp;&amp;a===n.height)return r;for(var o=n.colorAttachments,s=0;s&lt;o.length;++s)p(o[s],i,a);return p(n.depthAttachment,i,a),p(n.stencilAttachment,i,a),p(n.depthStencilAttachment,i,a),n.width=r.width=i,n.height=r.height=a,v(n),r},_reglType:&quot;framebuffer&quot;,_framebuffer:n,destroy:function(){m(n),g(n)},use:function(t){x.setFBO({framebuffer:r},t)}})}var x={cur:null,next:null,dirty:!1,setFBO:null},b=[&quot;rgba&quot;],_=[&quot;rgba4&quot;,&quot;rgb565&quot;,&quot;rgb5 a1&quot;];e.ext_srgb&amp;&amp;_.push(&quot;srgba&quot;),e.ext_color_buffer_half_float&amp;&amp;_.push(&quot;rgba16f&quot;,&quot;rgb16f&quot;),e.webgl_color_buffer_float&amp;&amp;_.push(&quot;rgba32f&quot;);var w=[&quot;uint8&quot;];e.oes_texture_half_float&amp;&amp;w.push(&quot;half float&quot;,&quot;float16&quot;),e.oes_texture_float&amp;&amp;w.push(&quot;float&quot;,&quot;float32&quot;);var T=0,k={};return U(x,{getFramebuffer:function(t){return&quot;function&quot;==typeof t&amp;&amp;&quot;framebuffer&quot;===t._reglType&amp;&amp;(t=t._framebuffer)instanceof d?t:null},create:y,createCube:function(t){function e(t){var i,a={color:null},o=0,s=null;i=&quot;rgba&quot;;var l=&quot;uint8&quot;,c=1;if(&quot;number&quot;==typeof t?o=0|t:t?(&quot;shape&quot;in t?o=t.shape[0]:(&quot;radius&quot;in t&amp;&amp;(o=0|t.radius),&quot;width&quot;in t?o=0|t.width:&quot;height&quot;in t&amp;&amp;(o=0|t.height)),(&quot;color&quot;in t||&quot;colors&quot;in t)&amp;&amp;(s=t.color||t.colors,Array.isArray(s)),s||(&quot;colorCount&quot;in t&amp;&amp;(c=0|t.colorCount),&quot;colorType&quot;in t&amp;&amp;(l=t.colorType),&quot;colorFormat&quot;in t&amp;&amp;(i=t.colorFormat)),&quot;depth&quot;in t&amp;&amp;(a.depth=t.depth),&quot;stencil&quot;in t&amp;&amp;(a.stencil=t.stencil),&quot;depthStencil&quot;in t&amp;&amp;(a.depthStencil=t.depthStencil)):o=1,s)if(Array.isArray(s))for(t=[],i=0;i&lt;s.length;++i)t[i]=s[i];else t=[s];else for(t=Array(c),s={radius:o,format:i,type:l},i=0;i&lt;c;++i)t[i]=n.createCube(s);for(a.color=Array(t.length),i=0;i&lt;t.length;++i)c=t[i],o=o||c.width,a.color[i]={target:34069,data:t[i]};for(i=0;6&gt;i;++i){for(c=0;c&lt;t.length;++c)a.color[c].target=34069+i;0&lt;i&amp;&amp;(a.depth=r[0].depth,a.stencil=r[0].stencil,a.depthStencil=r[0].depthStencil),r[i]?r[i](a):r[i]=y(a)}return U(e,{width:o,height:o,color:t})}var r=Array(6);return e(t),U(e,{faces:r,resize:function(t){var n=0|t;if(n===e.width)return e;var i=e.color;for(t=0;t&lt;i.length;++t)i[t].resize(n);for(t=0;6&gt;t;++t)r[t].resize(n);return e.width=e.height=n,e},_reglType:&quot;framebufferCube&quot;,destroy:function(){r.forEach((function(t){t.destroy()}))}})},clear:function(){Z(k).forEach(m)},restore:function(){x.cur=null,x.next=null,x.dirty=!0,Z(k).forEach((function(e){e.framebuffer=t.createFramebuffer(),v(e)}))}})}function A(){this.w=this.z=this.y=this.x=this.state=0,this.buffer=null,this.size=0,this.normalized=!1,this.type=5126,this.divisor=this.stride=this.offset=0}function S(t,e,r,n,i){function a(){this.id=++c,this.attributes=[];var t=e.oes_vertex_array_object;this.vao=t?t.createVertexArrayOES():null,u[this.id]=this,this.buffers=[]}var o=r.maxAttributes,s=Array(o);for(r=0;r&lt;o;++r)s[r]=new A;var c=0,u={},f={Record:A,scope:{},state:s,currentVAO:null,targetVAO:null,restore:e.oes_vertex_array_object?function(){e.oes_vertex_array_object&amp;&amp;Z(u).forEach((function(t){t.refresh()}))}:function(){},createVAO:function(t){function e(t){for(var n=0;n&lt;r.buffers.length;++n)r.buffers[n].destroy();r.buffers.length=0,(n=r.attributes).length=t.length;for(var a=0;a&lt;t.length;++a){var o=t[a],s=n[a]=new A;Array.isArray(o)||X(o)||l(o)?(o=i.create(o,34962,!1,!0),s.buffer=i.getBuffer(o),s.size=0|s.buffer.dimension,s.normalized=!1,s.type=s.buffer.dtype,s.offset=0,s.stride=0,s.divisor=0,s.state=1,r.buffers.push(o)):i.getBuffer(o)?(s.buffer=i.getBuffer(o),s.size=0|s.buffer.dimension,s.normalized=!1,s.type=s.buffer.dtype,s.offset=0,s.stride=0,s.divisor=0,s.state=1):i.getBuffer(o.buffer)?(s.buffer=i.getBuffer(o.buffer),s.size=0|(+o.size||s.buffer.dimension),s.normalized=!!o.normalized||!1,s.type=&quot;type&quot;in o?Q[o.type]:s.buffer.dtype,s.offset=0|(o.offset||0),s.stride=0|(o.stride||0),s.divisor=0|(o.divisor||0),s.state=1):&quot;x&quot;in o&amp;&amp;(s.x=+o.x||0,s.y=+o.y||0,s.z=+o.z||0,s.w=+o.w||0,s.state=2)}return r.refresh(),e}var r=new a;return n.vaoCount+=1,e.destroy=function(){r.destroy()},e._vao=r,e._reglType=&quot;vao&quot;,e(t)},getVAO:function(t){return&quot;function&quot;==typeof t&amp;&amp;t._vao?t._vao:null},destroyBuffer:function(e){for(var r=0;r&lt;s.length;++r){var n=s[r];n.buffer===e&amp;&amp;(t.disableVertexAttribArray(r),n.buffer=null)}},setVAO:e.oes_vertex_array_object?function(t){if(t!==f.currentVAO){var r=e.oes_vertex_array_object;t?r.bindVertexArrayOES(t.vao):r.bindVertexArrayOES(null),f.currentVAO=t}}:function(r){if(r!==f.currentVAO){if(r)r.bindAttrs();else for(var n=e.angle_instanced_arrays,i=0;i&lt;s.length;++i){var a=s[i];a.buffer?(t.enableVertexAttribArray(i),t.vertexAttribPointer(i,a.size,a.type,a.normalized,a.stride,a.offfset),n&amp;&amp;n.vertexAttribDivisorANGLE(i,a.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,a.x,a.y,a.z,a.w))}f.currentVAO=r}},clear:e.oes_vertex_array_object?function(){Z(u).forEach((function(t){t.destroy()}))}:function(){}};return a.prototype.bindAttrs=function(){for(var r=e.angle_instanced_arrays,n=this.attributes,i=0;i&lt;n.length;++i){var a=n[i];a.buffer?(t.enableVertexAttribArray(i),t.bindBuffer(34962,a.buffer.buffer),t.vertexAttribPointer(i,a.size,a.type,a.normalized,a.stride,a.offset),r&amp;&amp;r.vertexAttribDivisorANGLE(i,a.divisor)):(t.disableVertexAttribArray(i),t.vertexAttrib4f(i,a.x,a.y,a.z,a.w))}for(r=n.length;r&lt;o;++r)t.disableVertexAttribArray(r)},a.prototype.refresh=function(){var t=e.oes_vertex_array_object;t&amp;&amp;(t.bindVertexArrayOES(this.vao),this.bindAttrs(),f.currentVAO=this)},a.prototype.destroy=function(){if(this.vao){var t=e.oes_vertex_array_object;this===f.currentVAO&amp;&amp;(f.currentVAO=null,t.bindVertexArrayOES(null)),t.deleteVertexArrayOES(this.vao),this.vao=null}u[this.id]&amp;&amp;(delete u[this.id],--n.vaoCount)},f}function E(t,e,r,n){function i(t,e,r,n){this.name=t,this.id=e,this.location=r,this.info=n}function a(t,e){for(var r=0;r&lt;t.length;++r)if(t[r].id===e.id)return void(t[r].location=e.location);t.push(e)}function o(r,n,i){if(!(o=(i=35632===r?c:u)[n])){var a=e.str(n),o=t.createShader(r);t.shaderSource(o,a),t.compileShader(o),i[n]=o}return o}function s(t,e){this.id=p++,this.fragId=t,this.vertId=e,this.program=null,this.uniforms=[],this.attributes=[],n.profile&amp;&amp;(this.stats={uniformsCount:0,attributesCount:0})}function l(r,s,l){var c;c=o(35632,r.fragId);var u=o(35633,r.vertId);if(s=r.program=t.createProgram(),t.attachShader(s,c),t.attachShader(s,u),l)for(c=0;c&lt;l.length;++c)u=l[c],t.bindAttribLocation(s,u[0],u[1]);t.linkProgram(s),u=t.getProgramParameter(s,35718),n.profile&amp;&amp;(r.stats.uniformsCount=u);var f=r.uniforms;for(c=0;c&lt;u;++c)if(l=t.getActiveUniform(s,c))if(1&lt;l.size)for(var h=0;h&lt;l.size;++h){var p=l.name.replace(&quot;[0]&quot;,&quot;[&quot;+h+&quot;]&quot;);a(f,new i(p,e.id(p),t.getUniformLocation(s,p),l))}else a(f,new i(l.name,e.id(l.name),t.getUniformLocation(s,l.name),l));for(u=t.getProgramParameter(s,35721),n.profile&amp;&amp;(r.stats.attributesCount=u),r=r.attributes,c=0;c&lt;u;++c)(l=t.getActiveAttrib(s,c))&amp;&amp;a(r,new i(l.name,e.id(l.name),t.getAttribLocation(s,l.name),l))}var c={},u={},f={},h=[],p=0;return n.profile&amp;&amp;(r.getMaxUniformsCount=function(){var t=0;return h.forEach((function(e){e.stats.uniformsCount&gt;t&amp;&amp;(t=e.stats.uniformsCount)})),t},r.getMaxAttributesCount=function(){var t=0;return h.forEach((function(e){e.stats.attributesCount&gt;t&amp;&amp;(t=e.stats.attributesCount)})),t}),{clear:function(){var e=t.deleteShader.bind(t);Z(c).forEach(e),c={},Z(u).forEach(e),u={},h.forEach((function(e){t.deleteProgram(e.program)})),h.length=0,f={},r.shaderCount=0},program:function(t,e,n,i){var a=f[e];a||(a=f[e]={});var o=a[t];return o&amp;&amp;!i?o:(e=new s(e,t),r.shaderCount++,l(e,n,i),o||(a[t]=e),h.push(e),e)},restore:function(){c={},u={};for(var t=0;t&lt;h.length;++t)l(h[t],null,h[t].attributes.map((function(t){return[t.location,t.name]})))},shader:o,frag:-1,vert:-1}}function C(t,e,r,n,i,a,o){function s(i){var a;a=null===e.next?5121:e.next.colorAttachments[0].texture._texture.type;var o=0,s=0,l=n.framebufferWidth,c=n.framebufferHeight,u=null;return X(i)?u=i:i&amp;&amp;(o=0|i.x,s=0|i.y,l=0|(i.width||n.framebufferWidth-o),c=0|(i.height||n.framebufferHeight-s),u=i.data||null),r(),i=l*c*4,u||(5121===a?u=new Uint8Array(i):5126===a&amp;&amp;(u=u||new Float32Array(i))),t.pixelStorei(3333,4),t.readPixels(o,s,l,c,6408,a,u),u}return function(t){return t&amp;&amp;&quot;framebuffer&quot;in t?function(t){var r;return e.setFBO({framebuffer:t.framebuffer},(function(){r=s(t)})),r}(t):s(t)}}function L(t){return Array.prototype.slice.call(t)}function I(t){return L(t).join(&quot;&quot;)}function P(){function t(){var t=[],e=[];return U((function(){t.push.apply(t,L(arguments))}),{def:function(){var n=&quot;v&quot;+r++;return e.push(n),0&lt;arguments.length&amp;&amp;(t.push(n,&quot;=&quot;),t.push.apply(t,L(arguments)),t.push(&quot;;&quot;)),n},toString:function(){return I([0&lt;e.length?&quot;var &quot;+e.join(&quot;,&quot;)+&quot;;&quot;:&quot;&quot;,I(t)])}})}function e(){function e(t,e){n(t,e,&quot;=&quot;,r.def(t,e),&quot;;&quot;)}var r=t(),n=t(),i=r.toString,a=n.toString;return U((function(){r.apply(r,L(arguments))}),{def:r.def,entry:r,exit:n,save:e,set:function(t,n,i){e(t,n),r(t,n,&quot;=&quot;,i,&quot;;&quot;)},toString:function(){return i()+a()}})}var r=0,n=[],i=[],a=t(),o={};return{global:a,link:function(t){for(var e=0;e&lt;i.length;++e)if(i[e]===t)return n[e];return e=&quot;g&quot;+r++,n.push(e),i.push(t),e},block:t,proc:function(t,r){function n(){var t=&quot;a&quot;+i.length;return i.push(t),t}var i=[];r=r||0;for(var a=0;a&lt;r;++a)n();var s=(a=e()).toString;return o[t]=U(a,{arg:n,toString:function(){return I([&quot;function(&quot;,i.join(),&quot;){&quot;,s(),&quot;}&quot;])}})},scope:e,cond:function(){var t=I(arguments),r=e(),n=e(),i=r.toString,a=n.toString;return U(r,{then:function(){return r.apply(r,L(arguments)),this},else:function(){return n.apply(n,L(arguments)),this},toString:function(){var e=a();return e&amp;&amp;(e=&quot;else{&quot;+e+&quot;}&quot;),I([&quot;if(&quot;,t,&quot;){&quot;,i(),&quot;}&quot;,e])}})},compile:function(){var t=['&quot;use strict&quot;;',a,&quot;return {&quot;];Object.keys(o).forEach((function(e){t.push('&quot;',e,'&quot;:',o[e].toString(),&quot;,&quot;)})),t.push(&quot;}&quot;);var e=I(t).replace(/;/g,&quot;;\n&quot;).replace(/}/g,&quot;}\n&quot;).replace(/{/g,&quot;{\n&quot;);return Function.apply(null,n.concat(e)).apply(null,i)}}}function z(t){return Array.isArray(t)||X(t)||l(t)}function O(t){return t.sort((function(t,e){return&quot;viewport&quot;===t?-1:&quot;viewport&quot;===e?1:t&lt;e?-1:1}))}function D(t,e,r,n){this.thisDep=t,this.contextDep=e,this.propDep=r,this.append=n}function R(t){return t&amp;&amp;!(t.thisDep||t.contextDep||t.propDep)}function F(t){return new D(!1,!1,!1,t)}function B(t,e){var r=t.type;return 0===r?new D(!0,1&lt;=(r=t.data.length),2&lt;=r,e):4===r?new D((r=t.data).thisDep,r.contextDep,r.propDep,e):new D(3===r,2===r,1===r,e)}function N(t,e,r,n,i,o,s,l,c,u,f,h,p,d,g){function v(t){return t.replace(&quot;.&quot;,&quot;_&quot;)}function y(t,e,r){var n=v(t);rt.push(t),et[n]=tt[n]=!!r,it[n]=e}function x(t,e,r){var n=v(t);rt.push(t),Array.isArray(r)?(tt[n]=r.slice(),et[n]=r.slice()):tt[n]=et[n]=r,at[n]=e}function b(){var t=P(),r=t.link,n=t.global;t.id=lt++,t.batchId=&quot;0&quot;;var i=r(ot),a=t.shared={props:&quot;a0&quot;};Object.keys(ot).forEach((function(t){a[t]=n.def(i,&quot;.&quot;,t)}));var o=t.next={},s=t.current={};Object.keys(at).forEach((function(t){Array.isArray(tt[t])&amp;&amp;(o[t]=n.def(a.next,&quot;.&quot;,t),s[t]=n.def(a.current,&quot;.&quot;,t))}));var l=t.constants={};Object.keys(st).forEach((function(t){l[t]=n.def(JSON.stringify(st[t]))})),t.invoke=function(e,n){switch(n.type){case 0:var i=[&quot;this&quot;,a.context,a.props,t.batchId];return e.def(r(n.data),&quot;.call(&quot;,i.slice(0,Math.max(n.data.length+1,4)),&quot;)&quot;);case 1:return e.def(a.props,n.data);case 2:return e.def(a.context,n.data);case 3:return e.def(&quot;this&quot;,n.data);case 4:return n.data.append(t,e),n.data.ref}},t.attribCache={};var c={};return t.scopeAttrib=function(t){if((t=e.id(t))in c)return c[t];var n=u.scope[t];return n||(n=u.scope[t]=new Z),c[t]=r(n)},t}function _(t,e){var r=t.static,n=t.dynamic;if(&quot;framebuffer&quot;in r){var i=r.framebuffer;return i?(i=l.getFramebuffer(i),F((function(t,e){var r=t.link(i),n=t.shared;return e.set(n.framebuffer,&quot;.next&quot;,r),n=n.context,e.set(n,&quot;.framebufferWidth&quot;,r+&quot;.width&quot;),e.set(n,&quot;.framebufferHeight&quot;,r+&quot;.height&quot;),r}))):F((function(t,e){var r=t.shared;return e.set(r.framebuffer,&quot;.next&quot;,&quot;null&quot;),r=r.context,e.set(r,&quot;.framebufferWidth&quot;,r+&quot;.drawingBufferWidth&quot;),e.set(r,&quot;.framebufferHeight&quot;,r+&quot;.drawingBufferHeight&quot;),&quot;null&quot;}))}if(&quot;framebuffer&quot;in n){var a=n.framebuffer;return B(a,(function(t,e){var r=t.invoke(e,a),n=t.shared,i=n.framebuffer;r=e.def(i,&quot;.getFramebuffer(&quot;,r,&quot;)&quot;);return e.set(i,&quot;.next&quot;,r),n=n.context,e.set(n,&quot;.framebufferWidth&quot;,r+&quot;?&quot;+r+&quot;.width:&quot;+n+&quot;.drawingBufferWidth&quot;),e.set(n,&quot;.framebufferHeight&quot;,r+&quot;?&quot;+r+&quot;.height:&quot;+n+&quot;.drawingBufferHeight&quot;),r}))}return null}function w(t,r,n){function i(t){if(t in a){var r=e.id(a[t]);return(t=F((function(){return r}))).id=r,t}if(t in o){var n=o[t];return B(n,(function(t,e){var r=t.invoke(e,n);return e.def(t.shared.strings,&quot;.id(&quot;,r,&quot;)&quot;)}))}return null}var a=t.static,o=t.dynamic,s=i(&quot;frag&quot;),l=i(&quot;vert&quot;),c=null;return R(s)&amp;&amp;R(l)?(c=f.program(l.id,s.id,null,n),t=F((function(t,e){return t.link(c)}))):t=new D(s&amp;&amp;s.thisDep||l&amp;&amp;l.thisDep,s&amp;&amp;s.contextDep||l&amp;&amp;l.contextDep,s&amp;&amp;s.propDep||l&amp;&amp;l.propDep,(function(t,e){var r,n,i=t.shared.shader;return r=s?s.append(t,e):e.def(i,&quot;.&quot;,&quot;frag&quot;),n=l?l.append(t,e):e.def(i,&quot;.&quot;,&quot;vert&quot;),e.def(i+&quot;.program(&quot;+n+&quot;,&quot;+r+&quot;)&quot;)})),{frag:s,vert:l,progVar:t,program:c}}function T(t,e){function r(t,e){if(t in n){var r=0|n[t];return F((function(t,n){return e&amp;&amp;(t.OFFSET=r),r}))}if(t in i){var o=i[t];return B(o,(function(t,r){var n=t.invoke(r,o);return e&amp;&amp;(t.OFFSET=n),n}))}return e&amp;&amp;a?F((function(t,e){return t.OFFSET=&quot;0&quot;,0})):null}var n=t.static,i=t.dynamic,a=function(){if(&quot;elements&quot;in n){var t=n.elements;z(t)?t=o.getElements(o.create(t,!0)):t&amp;&amp;(t=o.getElements(t));var e=F((function(e,r){if(t){var n=e.link(t);return e.ELEMENTS=n}return e.ELEMENTS=null}));return e.value=t,e}if(&quot;elements&quot;in i){var r=i.elements;return B(r,(function(t,e){var n=(i=t.shared).isBufferArgs,i=i.elements,a=t.invoke(e,r),o=e.def(&quot;null&quot;);n=e.def(n,&quot;(&quot;,a,&quot;)&quot;),a=t.cond(n).then(o,&quot;=&quot;,i,&quot;.createStream(&quot;,a,&quot;);&quot;).else(o,&quot;=&quot;,i,&quot;.getElements(&quot;,a,&quot;);&quot;);return e.entry(a),e.exit(t.cond(n).then(i,&quot;.destroyStream(&quot;,o,&quot;);&quot;)),t.ELEMENTS=o}))}return null}(),s=r(&quot;offset&quot;,!0);return{elements:a,primitive:function(){if(&quot;primitive&quot;in n){var t=n.primitive;return F((function(e,r){return nt[t]}))}if(&quot;primitive&quot;in i){var e=i.primitive;return B(e,(function(t,r){var n=t.constants.primTypes,i=t.invoke(r,e);return r.def(n,&quot;[&quot;,i,&quot;]&quot;)}))}return a?R(a)?a.value?F((function(t,e){return e.def(t.ELEMENTS,&quot;.primType&quot;)})):F((function(){return 4})):new D(a.thisDep,a.contextDep,a.propDep,(function(t,e){var r=t.ELEMENTS;return e.def(r,&quot;?&quot;,r,&quot;.primType:&quot;,4)})):null}(),count:function(){if(&quot;count&quot;in n){var t=0|n.count;return F((function(){return t}))}if(&quot;count&quot;in i){var e=i.count;return B(e,(function(t,r){return t.invoke(r,e)}))}return a?R(a)?a?s?new D(s.thisDep,s.contextDep,s.propDep,(function(t,e){return e.def(t.ELEMENTS,&quot;.vertCount-&quot;,t.OFFSET)})):F((function(t,e){return e.def(t.ELEMENTS,&quot;.vertCount&quot;)})):F((function(){return-1})):new D(a.thisDep||s.thisDep,a.contextDep||s.contextDep,a.propDep||s.propDep,(function(t,e){var r=t.ELEMENTS;return t.OFFSET?e.def(r,&quot;?&quot;,r,&quot;.vertCount-&quot;,t.OFFSET,&quot;:-1&quot;):e.def(r,&quot;?&quot;,r,&quot;.vertCount:-1&quot;)})):null}(),instances:r(&quot;instances&quot;,!1),offset:s}}function k(t,r){var n=t.static,a=t.dynamic,o={};return Object.keys(n).forEach((function(t){var r=n[t],a=e.id(t),s=new Z;if(z(r))s.state=1,s.buffer=i.getBuffer(i.create(r,34962,!1,!0)),s.type=0;else if(c=i.getBuffer(r))s.state=1,s.buffer=c,s.type=0;else if(&quot;constant&quot;in r){var l=r.constant;s.buffer=&quot;null&quot;,s.state=2,&quot;number&quot;==typeof l?s.x=l:wt.forEach((function(t,e){e&lt;l.length&amp;&amp;(s[t]=l[e])}))}else{var c=z(r.buffer)?i.getBuffer(i.create(r.buffer,34962,!1,!0)):i.getBuffer(r.buffer),u=0|r.offset,f=0|r.stride,h=0|r.size,p=!!r.normalized,d=0;&quot;type&quot;in r&amp;&amp;(d=Q[r.type]),r=0|r.divisor,s.buffer=c,s.state=1,s.size=h,s.normalized=p,s.type=d||c.dtype,s.offset=u,s.stride=f,s.divisor=r}o[t]=F((function(t,e){var r=t.attribCache;if(a in r)return r[a];var n={isStream:!1};return Object.keys(s).forEach((function(t){n[t]=s[t]})),s.buffer&amp;&amp;(n.buffer=t.link(s.buffer),n.type=n.type||n.buffer+&quot;.dtype&quot;),r[a]=n}))})),Object.keys(a).forEach((function(t){var e=a[t];o[t]=B(e,(function(t,r){function n(t){r(l[t],&quot;=&quot;,i,&quot;.&quot;,t,&quot;|0;&quot;)}var i=t.invoke(r,e),a=t.shared,o=t.constants,s=a.isBufferArgs,l=(a=a.buffer,{isStream:r.def(!1)}),c=new Z;c.state=1,Object.keys(c).forEach((function(t){l[t]=r.def(&quot;&quot;+c[t])}));var u=l.buffer,f=l.type;return r(&quot;if(&quot;,s,&quot;(&quot;,i,&quot;)){&quot;,l.isStream,&quot;=true;&quot;,u,&quot;=&quot;,a,&quot;.createStream(&quot;,34962,&quot;,&quot;,i,&quot;);&quot;,f,&quot;=&quot;,u,&quot;.dtype;&quot;,&quot;}else{&quot;,u,&quot;=&quot;,a,&quot;.getBuffer(&quot;,i,&quot;);&quot;,&quot;if(&quot;,u,&quot;){&quot;,f,&quot;=&quot;,u,&quot;.dtype;&quot;,'}else if(&quot;constant&quot; in ',i,&quot;){&quot;,l.state,&quot;=&quot;,2,&quot;;&quot;,&quot;if(typeof &quot;+i+'.constant === &quot;number&quot;){',l[wt[0]],&quot;=&quot;,i,&quot;.constant;&quot;,wt.slice(1).map((function(t){return l[t]})).join(&quot;=&quot;),&quot;=0;&quot;,&quot;}else{&quot;,wt.map((function(t,e){return l[t]+&quot;=&quot;+i+&quot;.constant.length&gt;&quot;+e+&quot;?&quot;+i+&quot;.constant[&quot;+e+&quot;]:0;&quot;})).join(&quot;&quot;),&quot;}}else{&quot;,&quot;if(&quot;,s,&quot;(&quot;,i,&quot;.buffer)){&quot;,u,&quot;=&quot;,a,&quot;.createStream(&quot;,34962,&quot;,&quot;,i,&quot;.buffer);&quot;,&quot;}else{&quot;,u,&quot;=&quot;,a,&quot;.getBuffer(&quot;,i,&quot;.buffer);&quot;,&quot;}&quot;,f,'=&quot;type&quot; in ',i,&quot;?&quot;,o.glTypes,&quot;[&quot;,i,&quot;.type]:&quot;,u,&quot;.dtype;&quot;,l.normalized,&quot;=!!&quot;,i,&quot;.normalized;&quot;),n(&quot;size&quot;),n(&quot;offset&quot;),n(&quot;stride&quot;),n(&quot;divisor&quot;),r(&quot;}}&quot;),r.exit(&quot;if(&quot;,l.isStream,&quot;){&quot;,a,&quot;.destroyStream(&quot;,u,&quot;);&quot;,&quot;}&quot;),l}))})),o}function M(t,e,n,i,o){function s(t){var e=c[t];e&amp;&amp;(h[t]=e)}var l=function(t,e){if(&quot;string&quot;==typeof(r=t.static).frag&amp;&amp;&quot;string&quot;==typeof r.vert){if(0&lt;Object.keys(e.dynamic).length)return null;var r=e.static,n=Object.keys(r);if(0&lt;n.length&amp;&amp;&quot;number&quot;==typeof r[n[0]]){for(var i=[],a=0;a&lt;n.length;++a)i.push([0|r[n[a]],n[a]]);return i}}return null}(t,e),c=function(t,e,r){function n(t){if(t in i){var r=i[t];t=!0;var n,o,s=0|r.x,l=0|r.y;return&quot;width&quot;in r?n=0|r.width:t=!1,&quot;height&quot;in r?o=0|r.height:t=!1,new D(!t&amp;&amp;e&amp;&amp;e.thisDep,!t&amp;&amp;e&amp;&amp;e.contextDep,!t&amp;&amp;e&amp;&amp;e.propDep,(function(t,e){var i=t.shared.context,a=n;&quot;width&quot;in r||(a=e.def(i,&quot;.&quot;,&quot;framebufferWidth&quot;,&quot;-&quot;,s));var c=o;return&quot;height&quot;in r||(c=e.def(i,&quot;.&quot;,&quot;framebufferHeight&quot;,&quot;-&quot;,l)),[s,l,a,c]}))}if(t in a){var c=a[t];return t=B(c,(function(t,e){var r=t.invoke(e,c),n=t.shared.context,i=e.def(r,&quot;.x|0&quot;),a=e.def(r,&quot;.y|0&quot;);return[i,a,e.def('&quot;width&quot; in ',r,&quot;?&quot;,r,&quot;.width|0:&quot;,&quot;(&quot;,n,&quot;.&quot;,&quot;framebufferWidth&quot;,&quot;-&quot;,i,&quot;)&quot;),r=e.def('&quot;height&quot; in ',r,&quot;?&quot;,r,&quot;.height|0:&quot;,&quot;(&quot;,n,&quot;.&quot;,&quot;framebufferHeight&quot;,&quot;-&quot;,a,&quot;)&quot;)]})),e&amp;&amp;(t.thisDep=t.thisDep||e.thisDep,t.contextDep=t.contextDep||e.contextDep,t.propDep=t.propDep||e.propDep),t}return e?new D(e.thisDep,e.contextDep,e.propDep,(function(t,e){var r=t.shared.context;return[0,0,e.def(r,&quot;.&quot;,&quot;framebufferWidth&quot;),e.def(r,&quot;.&quot;,&quot;framebufferHeight&quot;)]})):null}var i=t.static,a=t.dynamic;if(t=n(&quot;viewport&quot;)){var o=t;t=new D(t.thisDep,t.contextDep,t.propDep,(function(t,e){var r=o.append(t,e),n=t.shared.context;return e.set(n,&quot;.viewportWidth&quot;,r[2]),e.set(n,&quot;.viewportHeight&quot;,r[3]),r}))}return{viewport:t,scissor_box:n(&quot;scissor.box&quot;)}}(t,d=_(t)),f=T(t),h=function(t,e){var r=t.static,n=t.dynamic,i={};return rt.forEach((function(t){function e(e,a){if(t in r){var s=e(r[t]);i[o]=F((function(){return s}))}else if(t in n){var l=n[t];i[o]=B(l,(function(t,e){return a(t,e,t.invoke(e,l))}))}}var o=v(t);switch(t){case&quot;cull.enable&quot;:case&quot;blend.enable&quot;:case&quot;dither&quot;:case&quot;stencil.enable&quot;:case&quot;depth.enable&quot;:case&quot;scissor.enable&quot;:case&quot;polygonOffset.enable&quot;:case&quot;sample.alpha&quot;:case&quot;sample.enable&quot;:case&quot;depth.mask&quot;:return e((function(t){return t}),(function(t,e,r){return r}));case&quot;depth.func&quot;:return e((function(t){return Mt[t]}),(function(t,e,r){return e.def(t.constants.compareFuncs,&quot;[&quot;,r,&quot;]&quot;)}));case&quot;depth.range&quot;:return e((function(t){return t}),(function(t,e,r){return[e.def(&quot;+&quot;,r,&quot;[0]&quot;),e=e.def(&quot;+&quot;,r,&quot;[1]&quot;)]}));case&quot;blend.func&quot;:return e((function(t){return[kt[&quot;srcRGB&quot;in t?t.srcRGB:t.src],kt[&quot;dstRGB&quot;in t?t.dstRGB:t.dst],kt[&quot;srcAlpha&quot;in t?t.srcAlpha:t.src],kt[&quot;dstAlpha&quot;in t?t.dstAlpha:t.dst]]}),(function(t,e,r){function n(t,n){return e.def('&quot;',t,n,'&quot; in ',r,&quot;?&quot;,r,&quot;.&quot;,t,n,&quot;:&quot;,r,&quot;.&quot;,t)}t=t.constants.blendFuncs;var i=n(&quot;src&quot;,&quot;RGB&quot;),a=n(&quot;dst&quot;,&quot;RGB&quot;),o=(i=e.def(t,&quot;[&quot;,i,&quot;]&quot;),e.def(t,&quot;[&quot;,n(&quot;src&quot;,&quot;Alpha&quot;),&quot;]&quot;));return[i,a=e.def(t,&quot;[&quot;,a,&quot;]&quot;),o,t=e.def(t,&quot;[&quot;,n(&quot;dst&quot;,&quot;Alpha&quot;),&quot;]&quot;)]}));case&quot;blend.equation&quot;:return e((function(t){return&quot;string&quot;==typeof t?[J[t],J[t]]:&quot;object&quot;==typeof t?[J[t.rgb],J[t.alpha]]:void 0}),(function(t,e,r){var n=t.constants.blendEquations,i=e.def(),a=e.def();return(t=t.cond(&quot;typeof &quot;,r,'===&quot;string&quot;')).then(i,&quot;=&quot;,a,&quot;=&quot;,n,&quot;[&quot;,r,&quot;];&quot;),t.else(i,&quot;=&quot;,n,&quot;[&quot;,r,&quot;.rgb];&quot;,a,&quot;=&quot;,n,&quot;[&quot;,r,&quot;.alpha];&quot;),e(t),[i,a]}));case&quot;blend.color&quot;:return e((function(t){return a(4,(function(e){return+t[e]}))}),(function(t,e,r){return a(4,(function(t){return e.def(&quot;+&quot;,r,&quot;[&quot;,t,&quot;]&quot;)}))}));case&quot;stencil.mask&quot;:return e((function(t){return 0|t}),(function(t,e,r){return e.def(r,&quot;|0&quot;)}));case&quot;stencil.func&quot;:return e((function(t){return[Mt[t.cmp||&quot;keep&quot;],t.ref||0,&quot;mask&quot;in t?t.mask:-1]}),(function(t,e,r){return[t=e.def('&quot;cmp&quot; in ',r,&quot;?&quot;,t.constants.compareFuncs,&quot;[&quot;,r,&quot;.cmp]&quot;,&quot;:&quot;,7680),e.def(r,&quot;.ref|0&quot;),e=e.def('&quot;mask&quot; in ',r,&quot;?&quot;,r,&quot;.mask|0:-1&quot;)]}));case&quot;stencil.opFront&quot;:case&quot;stencil.opBack&quot;:return e((function(e){return[&quot;stencil.opBack&quot;===t?1029:1028,At[e.fail||&quot;keep&quot;],At[e.zfail||&quot;keep&quot;],At[e.zpass||&quot;keep&quot;]]}),(function(e,r,n){function i(t){return r.def('&quot;',t,'&quot; in ',n,&quot;?&quot;,a,&quot;[&quot;,n,&quot;.&quot;,t,&quot;]:&quot;,7680)}var a=e.constants.stencilOps;return[&quot;stencil.opBack&quot;===t?1029:1028,i(&quot;fail&quot;),i(&quot;zfail&quot;),i(&quot;zpass&quot;)]}));case&quot;polygonOffset.offset&quot;:return e((function(t){return[0|t.factor,0|t.units]}),(function(t,e,r){return[e.def(r,&quot;.factor|0&quot;),e=e.def(r,&quot;.units|0&quot;)]}));case&quot;cull.face&quot;:return e((function(t){var e=0;return&quot;front&quot;===t?e=1028:&quot;back&quot;===t&amp;&amp;(e=1029),e}),(function(t,e,r){return e.def(r,'===&quot;front&quot;?',1028,&quot;:&quot;,1029)}));case&quot;lineWidth&quot;:return e((function(t){return t}),(function(t,e,r){return r}));case&quot;frontFace&quot;:return e((function(t){return St[t]}),(function(t,e,r){return e.def(r+'===&quot;cw&quot;?2304:2305')}));case&quot;colorMask&quot;:return e((function(t){return t.map((function(t){return!!t}))}),(function(t,e,r){return a(4,(function(t){return&quot;!!&quot;+r+&quot;[&quot;+t+&quot;]&quot;}))}));case&quot;sample.coverage&quot;:return e((function(t){return[&quot;value&quot;in t?t.value:1,!!t.invert]}),(function(t,e,r){return[e.def('&quot;value&quot; in ',r,&quot;?+&quot;,r,&quot;.value:1&quot;),e=e.def(&quot;!!&quot;,r,&quot;.invert&quot;)]}))}})),i}(t),p=w(t,0,l);s(&quot;viewport&quot;),s(v(&quot;scissor.box&quot;));var d,g=0&lt;Object.keys(h).length;if((d={framebuffer:d,draw:f,shader:p,state:h,dirty:g,scopeVAO:null,drawVAO:null,useVAO:!1,attributes:{}}).profile=function(t){var e,r=t.static;if(t=t.dynamic,&quot;profile&quot;in r){var n=!!r.profile;(e=F((function(t,e){return n}))).enable=n}else if(&quot;profile&quot;in t){var i=t.profile;e=B(i,(function(t,e){return t.invoke(e,i)}))}return e}(t),d.uniforms=function(t,e){var r=t.static,n=t.dynamic,i={};return Object.keys(r).forEach((function(t){var e,n=r[t];if(&quot;number&quot;==typeof n||&quot;boolean&quot;==typeof n)e=F((function(){return n}));else if(&quot;function&quot;==typeof n){var o=n._reglType;&quot;texture2d&quot;===o||&quot;textureCube&quot;===o?e=F((function(t){return t.link(n)})):&quot;framebuffer&quot;!==o&amp;&amp;&quot;framebufferCube&quot;!==o||(e=F((function(t){return t.link(n.color[0])})))}else m(n)&amp;&amp;(e=F((function(t){return t.global.def(&quot;[&quot;,a(n.length,(function(t){return n[t]})),&quot;]&quot;)})));e.value=n,i[t]=e})),Object.keys(n).forEach((function(t){var e=n[t];i[t]=B(e,(function(t,r){return t.invoke(r,e)}))})),i}(n),d.drawVAO=d.scopeVAO=function(t,e){var r=t.static,n=t.dynamic;if(&quot;vao&quot;in r){var i=r.vao;return null!==i&amp;&amp;null===u.getVAO(i)&amp;&amp;(i=u.createVAO(i)),F((function(t){return t.link(u.getVAO(i))}))}if(&quot;vao&quot;in n){var a=n.vao;return B(a,(function(t,e){var r=t.invoke(e,a);return e.def(t.shared.vao+&quot;.getVAO(&quot;+r+&quot;)&quot;)}))}return null}(t),!d.drawVAO&amp;&amp;p.program&amp;&amp;!l&amp;&amp;r.angle_instanced_arrays){var y=!0;if(t=p.program.attributes.map((function(t){return t=e.static[t],y=y&amp;&amp;!!t,t})),y&amp;&amp;0&lt;t.length){var x=u.getVAO(u.createVAO(t));d.drawVAO=new D(null,null,null,(function(t,e){return t.link(x)})),d.useVAO=!0}}return l?d.useVAO=!0:d.attributes=k(e),d.context=function(t){var e=t.static,r=t.dynamic,n={};return Object.keys(e).forEach((function(t){var r=e[t];n[t]=F((function(t,e){return&quot;number&quot;==typeof r||&quot;boolean&quot;==typeof r?&quot;&quot;+r:t.link(r)}))})),Object.keys(r).forEach((function(t){var e=r[t];n[t]=B(e,(function(t,r){return t.invoke(r,e)}))})),n}(i),d}function A(t,e,r){var n=t.shared.context,i=t.scope();Object.keys(r).forEach((function(a){e.save(n,&quot;.&quot;+a),i(n,&quot;.&quot;,a,&quot;=&quot;,r[a].append(t,e),&quot;;&quot;)})),e(i)}function S(t,e,r,n){var i,a=(s=t.shared).gl,o=s.framebuffer;$&amp;&amp;(i=e.def(s.extensions,&quot;.webgl_draw_buffers&quot;));var s=(l=t.constants).drawBuffer,l=l.backBuffer;t=r?r.append(t,e):e.def(o,&quot;.next&quot;),n||e(&quot;if(&quot;,t,&quot;!==&quot;,o,&quot;.cur){&quot;),e(&quot;if(&quot;,t,&quot;){&quot;,a,&quot;.bindFramebuffer(&quot;,36160,&quot;,&quot;,t,&quot;.framebuffer);&quot;),$&amp;&amp;e(i,&quot;.drawBuffersWEBGL(&quot;,s,&quot;[&quot;,t,&quot;.colorAttachments.length]);&quot;),e(&quot;}else{&quot;,a,&quot;.bindFramebuffer(&quot;,36160,&quot;,null);&quot;),$&amp;&amp;e(i,&quot;.drawBuffersWEBGL(&quot;,l,&quot;);&quot;),e(&quot;}&quot;,o,&quot;.cur=&quot;,t,&quot;;&quot;),n||e(&quot;}&quot;)}function E(t,e,r){var n=t.shared,i=n.gl,o=t.current,s=t.next,l=n.current,c=n.next,u=t.cond(l,&quot;.dirty&quot;);rt.forEach((function(e){var n,f;if(!((e=v(e))in r.state))if(e in s){n=s[e],f=o[e];var h=a(tt[e].length,(function(t){return u.def(n,&quot;[&quot;,t,&quot;]&quot;)}));u(t.cond(h.map((function(t,e){return t+&quot;!==&quot;+f+&quot;[&quot;+e+&quot;]&quot;})).join(&quot;||&quot;)).then(i,&quot;.&quot;,at[e],&quot;(&quot;,h,&quot;);&quot;,h.map((function(t,e){return f+&quot;[&quot;+e+&quot;]=&quot;+t})).join(&quot;;&quot;),&quot;;&quot;))}else n=u.def(c,&quot;.&quot;,e),h=t.cond(n,&quot;!==&quot;,l,&quot;.&quot;,e),u(h),e in it?h(t.cond(n).then(i,&quot;.enable(&quot;,it[e],&quot;);&quot;).else(i,&quot;.disable(&quot;,it[e],&quot;);&quot;),l,&quot;.&quot;,e,&quot;=&quot;,n,&quot;;&quot;):h(i,&quot;.&quot;,at[e],&quot;(&quot;,n,&quot;);&quot;,l,&quot;.&quot;,e,&quot;=&quot;,n,&quot;;&quot;)})),0===Object.keys(r.state).length&amp;&amp;u(l,&quot;.dirty=false;&quot;),e(u)}function C(t,e,r,n){var i=t.shared,a=t.current,o=i.current,s=i.gl;O(Object.keys(r)).forEach((function(i){var l=r[i];if(!n||n(l)){var c=l.append(t,e);if(it[i]){var u=it[i];R(l)?e(s,c?&quot;.enable(&quot;:&quot;.disable(&quot;,u,&quot;);&quot;):e(t.cond(c).then(s,&quot;.enable(&quot;,u,&quot;);&quot;).else(s,&quot;.disable(&quot;,u,&quot;);&quot;)),e(o,&quot;.&quot;,i,&quot;=&quot;,c,&quot;;&quot;)}else if(m(c)){var f=a[i];e(s,&quot;.&quot;,at[i],&quot;(&quot;,c,&quot;);&quot;,c.map((function(t,e){return f+&quot;[&quot;+e+&quot;]=&quot;+t})).join(&quot;;&quot;),&quot;;&quot;)}else e(s,&quot;.&quot;,at[i],&quot;(&quot;,c,&quot;);&quot;,o,&quot;.&quot;,i,&quot;=&quot;,c,&quot;;&quot;)}}))}function L(t,e){K&amp;&amp;(t.instancing=e.def(t.shared.extensions,&quot;.angle_instanced_arrays&quot;))}function I(t,e,r,n,i){function a(){return&quot;undefined&quot;==typeof performance?&quot;Date.now()&quot;:&quot;performance.now()&quot;}function o(t){t(c=e.def(),&quot;=&quot;,a(),&quot;;&quot;),&quot;string&quot;==typeof i?t(h,&quot;.count+=&quot;,i,&quot;;&quot;):t(h,&quot;.count++;&quot;),d&amp;&amp;(n?t(u=e.def(),&quot;=&quot;,g,&quot;.getNumPendingQueries();&quot;):t(g,&quot;.beginQuery(&quot;,h,&quot;);&quot;))}function s(t){t(h,&quot;.cpuTime+=&quot;,a(),&quot;-&quot;,c,&quot;;&quot;),d&amp;&amp;(n?t(g,&quot;.pushScopeStats(&quot;,u,&quot;,&quot;,g,&quot;.getNumPendingQueries(),&quot;,h,&quot;);&quot;):t(g,&quot;.endQuery();&quot;))}function l(t){var r=e.def(p,&quot;.profile&quot;);e(p,&quot;.profile=&quot;,t,&quot;;&quot;),e.exit(p,&quot;.profile=&quot;,r,&quot;;&quot;)}var c,u,f=t.shared,h=t.stats,p=f.current,g=f.timer;if(r=r.profile){if(R(r))return void(r.enable?(o(e),s(e.exit),l(&quot;true&quot;)):l(&quot;false&quot;));l(r=r.append(t,e))}else r=e.def(p,&quot;.profile&quot;);o(f=t.block()),e(&quot;if(&quot;,r,&quot;){&quot;,f,&quot;}&quot;),s(t=t.block()),e.exit(&quot;if(&quot;,r,&quot;){&quot;,t,&quot;}&quot;)}function N(t,e,r,n,i){function a(r,n,i){function a(){e(&quot;if(!&quot;,u,&quot;.buffer){&quot;,l,&quot;.enableVertexAttribArray(&quot;,c,&quot;);}&quot;);var r,a=i.type;r=i.size?e.def(i.size,&quot;||&quot;,n):n,e(&quot;if(&quot;,u,&quot;.type!==&quot;,a,&quot;||&quot;,u,&quot;.size!==&quot;,r,&quot;||&quot;,p.map((function(t){return u+&quot;.&quot;+t+&quot;!==&quot;+i[t]})).join(&quot;||&quot;),&quot;){&quot;,l,&quot;.bindBuffer(&quot;,34962,&quot;,&quot;,f,&quot;.buffer);&quot;,l,&quot;.vertexAttribPointer(&quot;,[c,r,a,i.normalized,i.stride,i.offset],&quot;);&quot;,u,&quot;.type=&quot;,a,&quot;;&quot;,u,&quot;.size=&quot;,r,&quot;;&quot;,p.map((function(t){return u+&quot;.&quot;+t+&quot;=&quot;+i[t]+&quot;;&quot;})).join(&quot;&quot;),&quot;}&quot;),K&amp;&amp;(a=i.divisor,e(&quot;if(&quot;,u,&quot;.divisor!==&quot;,a,&quot;){&quot;,t.instancing,&quot;.vertexAttribDivisorANGLE(&quot;,[c,a],&quot;);&quot;,u,&quot;.divisor=&quot;,a,&quot;;}&quot;))}function s(){e(&quot;if(&quot;,u,&quot;.buffer){&quot;,l,&quot;.disableVertexAttribArray(&quot;,c,&quot;);&quot;,u,&quot;.buffer=null;&quot;,&quot;}if(&quot;,wt.map((function(t,e){return u+&quot;.&quot;+t+&quot;!==&quot;+h[e]})).join(&quot;||&quot;),&quot;){&quot;,l,&quot;.vertexAttrib4f(&quot;,c,&quot;,&quot;,h,&quot;);&quot;,wt.map((function(t,e){return u+&quot;.&quot;+t+&quot;=&quot;+h[e]+&quot;;&quot;})).join(&quot;&quot;),&quot;}&quot;)}var l=o.gl,c=e.def(r,&quot;.location&quot;),u=e.def(o.attributes,&quot;[&quot;,c,&quot;]&quot;);r=i.state;var f=i.buffer,h=[i.x,i.y,i.z,i.w],p=[&quot;buffer&quot;,&quot;normalized&quot;,&quot;offset&quot;,&quot;stride&quot;];1===r?a():2===r?s():(e(&quot;if(&quot;,r,&quot;===&quot;,1,&quot;){&quot;),a(),e(&quot;}else{&quot;),s(),e(&quot;}&quot;))}var o=t.shared;n.forEach((function(n){var o,s=n.name,l=r.attributes[s];if(l){if(!i(l))return;o=l.append(t,e)}else{if(!i(Et))return;var c=t.scopeAttrib(s);o={},Object.keys(new Z).forEach((function(t){o[t]=e.def(c,&quot;.&quot;,t)}))}a(t.link(n),function(t){switch(t){case 35664:case 35667:case 35671:return 2;case 35665:case 35668:case 35672:return 3;case 35666:case 35669:case 35673:return 4;default:return 1}}(n.info.type),o)}))}function j(t,r,n,i,o){for(var s,l=t.shared,c=l.gl,u=0;u&lt;i.length;++u){var f,h=(g=i[u]).name,p=g.info.type,d=n.uniforms[h],g=t.link(g)+&quot;.location&quot;;if(d){if(!o(d))continue;if(R(d)){if(h=d.value,35678===p||35680===p)r(c,&quot;.uniform1i(&quot;,g,&quot;,&quot;,(p=t.link(h._texture||h.color[0]._texture))+&quot;.bind());&quot;),r.exit(p,&quot;.unbind();&quot;);else if(35674===p||35675===p||35676===p)d=2,35675===p?d=3:35676===p&amp;&amp;(d=4),r(c,&quot;.uniformMatrix&quot;,d,&quot;fv(&quot;,g,&quot;,false,&quot;,h=t.global.def(&quot;new Float32Array([&quot;+Array.prototype.slice.call(h)+&quot;])&quot;),&quot;);&quot;);else{switch(p){case 5126:s=&quot;1f&quot;;break;case 35664:s=&quot;2f&quot;;break;case 35665:s=&quot;3f&quot;;break;case 35666:s=&quot;4f&quot;;break;case 35670:case 5124:s=&quot;1i&quot;;break;case 35671:case 35667:s=&quot;2i&quot;;break;case 35672:case 35668:s=&quot;3i&quot;;break;case 35673:s=&quot;4i&quot;;break;case 35669:s=&quot;4i&quot;}r(c,&quot;.uniform&quot;,s,&quot;(&quot;,g,&quot;,&quot;,m(h)?Array.prototype.slice.call(h):h,&quot;);&quot;)}continue}f=d.append(t,r)}else{if(!o(Et))continue;f=r.def(l.uniforms,&quot;[&quot;,e.id(h),&quot;]&quot;)}switch(35678===p?r(&quot;if(&quot;,f,&quot;&amp;&amp;&quot;,f,'._reglType===&quot;framebuffer&quot;){',f,&quot;=&quot;,f,&quot;.color[0];&quot;,&quot;}&quot;):35680===p&amp;&amp;r(&quot;if(&quot;,f,&quot;&amp;&amp;&quot;,f,'._reglType===&quot;framebufferCube&quot;){',f,&quot;=&quot;,f,&quot;.color[0];&quot;,&quot;}&quot;),h=1,p){case 35678:case 35680:p=r.def(f,&quot;._texture&quot;),r(c,&quot;.uniform1i(&quot;,g,&quot;,&quot;,p,&quot;.bind());&quot;),r.exit(p,&quot;.unbind();&quot;);continue;case 5124:case 35670:s=&quot;1i&quot;;break;case 35667:case 35671:s=&quot;2i&quot;,h=2;break;case 35668:case 35672:s=&quot;3i&quot;,h=3;break;case 35669:case 35673:s=&quot;4i&quot;,h=4;break;case 5126:s=&quot;1f&quot;;break;case 35664:s=&quot;2f&quot;,h=2;break;case 35665:s=&quot;3f&quot;,h=3;break;case 35666:s=&quot;4f&quot;,h=4;break;case 35674:s=&quot;Matrix2fv&quot;;break;case 35675:s=&quot;Matrix3fv&quot;;break;case 35676:s=&quot;Matrix4fv&quot;}if(r(c,&quot;.uniform&quot;,s,&quot;(&quot;,g,&quot;,&quot;),&quot;M&quot;===s.charAt(0)){g=Math.pow(p-35674+2,2);var v=t.global.def(&quot;new Float32Array(&quot;,g,&quot;)&quot;);r(&quot;false,(Array.isArray(&quot;,f,&quot;)||&quot;,f,&quot; instanceof Float32Array)?&quot;,f,&quot;:(&quot;,a(g,(function(t){return v+&quot;[&quot;+t+&quot;]=&quot;+f+&quot;[&quot;+t+&quot;]&quot;})),&quot;,&quot;,v,&quot;)&quot;)}else r(1&lt;h?a(h,(function(t){return f+&quot;[&quot;+t+&quot;]&quot;})):f);r(&quot;);&quot;)}}function U(t,e,r,n){function i(i){var a=h[i];return a?a.contextDep&amp;&amp;n.contextDynamic||a.propDep?a.append(t,r):a.append(t,e):e.def(f,&quot;.&quot;,i)}function a(){function t(){r(l,&quot;.drawElementsInstancedANGLE(&quot;,[d,m,v,g+&quot;&lt;&lt;((&quot;+v+&quot;-5121)&gt;&gt;1)&quot;,s],&quot;);&quot;)}function e(){r(l,&quot;.drawArraysInstancedANGLE(&quot;,[d,g,m,s],&quot;);&quot;)}p?y?t():(r(&quot;if(&quot;,p,&quot;){&quot;),t(),r(&quot;}else{&quot;),e(),r(&quot;}&quot;)):e()}function o(){function t(){r(u+&quot;.drawElements(&quot;+[d,m,v,g+&quot;&lt;&lt;((&quot;+v+&quot;-5121)&gt;&gt;1)&quot;]+&quot;);&quot;)}function e(){r(u+&quot;.drawArrays(&quot;+[d,g,m]+&quot;);&quot;)}p?y?t():(r(&quot;if(&quot;,p,&quot;){&quot;),t(),r(&quot;}else{&quot;),e(),r(&quot;}&quot;)):e()}var s,l,c=t.shared,u=c.gl,f=c.draw,h=n.draw,p=function(){var i=h.elements,a=e;return i?((i.contextDep&amp;&amp;n.contextDynamic||i.propDep)&amp;&amp;(a=r),i=i.append(t,a)):i=a.def(f,&quot;.&quot;,&quot;elements&quot;),i&amp;&amp;a(&quot;if(&quot;+i+&quot;)&quot;+u+&quot;.bindBuffer(34963,&quot;+i+&quot;.buffer.buffer);&quot;),i}(),d=i(&quot;primitive&quot;),g=i(&quot;offset&quot;),m=function(){var i=h.count,a=e;return i?((i.contextDep&amp;&amp;n.contextDynamic||i.propDep)&amp;&amp;(a=r),i=i.append(t,a)):i=a.def(f,&quot;.&quot;,&quot;count&quot;),i}();if(&quot;number&quot;==typeof m){if(0===m)return}else r(&quot;if(&quot;,m,&quot;){&quot;),r.exit(&quot;}&quot;);K&amp;&amp;(s=i(&quot;instances&quot;),l=t.instancing);var v=p+&quot;.type&quot;,y=h.elements&amp;&amp;R(h.elements);K&amp;&amp;(&quot;number&quot;!=typeof s||0&lt;=s)?&quot;string&quot;==typeof s?(r(&quot;if(&quot;,s,&quot;&gt;0){&quot;),a(),r(&quot;}else if(&quot;,s,&quot;&lt;0){&quot;),o(),r(&quot;}&quot;)):a():o()}function V(t,e,r,n,i){return i=(e=b()).proc(&quot;body&quot;,i),K&amp;&amp;(e.instancing=i.def(e.shared.extensions,&quot;.angle_instanced_arrays&quot;)),t(e,i,r,n),e.compile().body}function H(t,e,r,n){L(t,e),r.useVAO?r.drawVAO?e(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,e),&quot;);&quot;):e(t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;):(e(t.shared.vao,&quot;.setVAO(null);&quot;),N(t,e,r,n.attributes,(function(){return!0}))),j(t,e,r,n.uniforms,(function(){return!0})),U(t,e,e,r)}function G(t,e,r,n){function i(){return!0}t.batchId=&quot;a1&quot;,L(t,e),N(t,e,r,n.attributes,i),j(t,e,r,n.uniforms,i),U(t,e,e,r)}function Y(t,e,r,n){function i(t){return t.contextDep&amp;&amp;o||t.propDep}function a(t){return!i(t)}L(t,e);var o=r.contextDep,s=e.def(),l=e.def();t.shared.props=l,t.batchId=s;var c=t.scope(),u=t.scope();e(c.entry,&quot;for(&quot;,s,&quot;=0;&quot;,s,&quot;&lt;&quot;,&quot;a1&quot;,&quot;;++&quot;,s,&quot;){&quot;,l,&quot;=&quot;,&quot;a0&quot;,&quot;[&quot;,s,&quot;];&quot;,u,&quot;}&quot;,c.exit),r.needsContext&amp;&amp;A(t,u,r.context),r.needsFramebuffer&amp;&amp;S(t,u,r.framebuffer),C(t,u,r.state,i),r.profile&amp;&amp;i(r.profile)&amp;&amp;I(t,u,r,!1,!0),n?(r.useVAO?r.drawVAO?i(r.drawVAO)?u(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,u),&quot;);&quot;):c(t.shared.vao,&quot;.setVAO(&quot;,r.drawVAO.append(t,c),&quot;);&quot;):c(t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;):(c(t.shared.vao,&quot;.setVAO(null);&quot;),N(t,c,r,n.attributes,a),N(t,u,r,n.attributes,i)),j(t,c,r,n.uniforms,a),j(t,u,r,n.uniforms,i),U(t,c,u,r)):(e=t.global.def(&quot;{}&quot;),n=r.shader.progVar.append(t,u),l=u.def(n,&quot;.id&quot;),c=u.def(e,&quot;[&quot;,l,&quot;]&quot;),u(t.shared.gl,&quot;.useProgram(&quot;,n,&quot;.program);&quot;,&quot;if(!&quot;,c,&quot;){&quot;,c,&quot;=&quot;,e,&quot;[&quot;,l,&quot;]=&quot;,t.link((function(e){return V(G,t,r,e,2)})),&quot;(&quot;,n,&quot;);}&quot;,c,&quot;.call(this,a0[&quot;,s,&quot;],&quot;,s,&quot;);&quot;))}function W(t,r){function n(e){var n=r.shader[e];n&amp;&amp;i.set(a.shader,&quot;.&quot;+e,n.append(t,i))}var i=t.proc(&quot;scope&quot;,3);t.batchId=&quot;a2&quot;;var a=t.shared,o=a.current;A(t,i,r.context),r.framebuffer&amp;&amp;r.framebuffer.append(t,i),O(Object.keys(r.state)).forEach((function(e){var n=r.state[e].append(t,i);m(n)?n.forEach((function(r,n){i.set(t.next[e],&quot;[&quot;+n+&quot;]&quot;,r)})):i.set(a.next,&quot;.&quot;+e,n)})),I(t,i,r,!0,!0),[&quot;elements&quot;,&quot;offset&quot;,&quot;count&quot;,&quot;instances&quot;,&quot;primitive&quot;].forEach((function(e){var n=r.draw[e];n&amp;&amp;i.set(a.draw,&quot;.&quot;+e,&quot;&quot;+n.append(t,i))})),Object.keys(r.uniforms).forEach((function(n){i.set(a.uniforms,&quot;[&quot;+e.id(n)+&quot;]&quot;,r.uniforms[n].append(t,i))})),Object.keys(r.attributes).forEach((function(e){var n=r.attributes[e].append(t,i),a=t.scopeAttrib(e);Object.keys(new Z).forEach((function(t){i.set(a,&quot;.&quot;+t,n[t])}))})),r.scopeVAO&amp;&amp;i.set(a.vao,&quot;.targetVAO&quot;,r.scopeVAO.append(t,i)),n(&quot;vert&quot;),n(&quot;frag&quot;),0&lt;Object.keys(r.state).length&amp;&amp;(i(o,&quot;.dirty=true;&quot;),i.exit(o,&quot;.dirty=true;&quot;)),i(&quot;a1(&quot;,t.shared.context,&quot;,a0,&quot;,t.batchId,&quot;);&quot;)}function X(t,e,r){var n=e.static[r];if(n&amp;&amp;function(t){if(&quot;object&quot;==typeof t&amp;&amp;!m(t)){for(var e=Object.keys(t),r=0;r&lt;e.length;++r)if(q.isDynamic(t[e[r]]))return!0;return!1}}(n)){var i=t.global,a=Object.keys(n),o=!1,s=!1,l=!1,c=t.global.def(&quot;{}&quot;);a.forEach((function(e){var r=n[e];if(q.isDynamic(r))&quot;function&quot;==typeof r&amp;&amp;(r=n[e]=q.unbox(r)),e=B(r,null),o=o||e.thisDep,l=l||e.propDep,s=s||e.contextDep;else{switch(i(c,&quot;.&quot;,e,&quot;=&quot;),typeof r){case&quot;number&quot;:i(r);break;case&quot;string&quot;:i('&quot;',r,'&quot;');break;case&quot;object&quot;:Array.isArray(r)&amp;&amp;i(&quot;[&quot;,r.join(),&quot;]&quot;);break;default:i(t.link(r))}i(&quot;;&quot;)}})),e.dynamic[r]=new q.DynamicVariable(4,{thisDep:o,contextDep:s,propDep:l,ref:c,append:function(t,e){a.forEach((function(r){var i=n[r];q.isDynamic(i)&amp;&amp;(i=t.invoke(e,i),e(c,&quot;.&quot;,r,&quot;=&quot;,i,&quot;;&quot;))}))}}),delete e.static[r]}}var Z=u.Record,J={add:32774,subtract:32778,&quot;reverse subtract&quot;:32779};r.ext_blend_minmax&amp;&amp;(J.min=32775,J.max=32776);var K=r.angle_instanced_arrays,$=r.webgl_draw_buffers,tt={dirty:!0,profile:g.profile},et={},rt=[],it={},at={};y(&quot;dither&quot;,3024),y(&quot;blend.enable&quot;,3042),x(&quot;blend.color&quot;,&quot;blendColor&quot;,[0,0,0,0]),x(&quot;blend.equation&quot;,&quot;blendEquationSeparate&quot;,[32774,32774]),x(&quot;blend.func&quot;,&quot;blendFuncSeparate&quot;,[1,0,1,0]),y(&quot;depth.enable&quot;,2929,!0),x(&quot;depth.func&quot;,&quot;depthFunc&quot;,513),x(&quot;depth.range&quot;,&quot;depthRange&quot;,[0,1]),x(&quot;depth.mask&quot;,&quot;depthMask&quot;,!0),x(&quot;colorMask&quot;,&quot;colorMask&quot;,[!0,!0,!0,!0]),y(&quot;cull.enable&quot;,2884),x(&quot;cull.face&quot;,&quot;cullFace&quot;,1029),x(&quot;frontFace&quot;,&quot;frontFace&quot;,2305),x(&quot;lineWidth&quot;,&quot;lineWidth&quot;,1),y(&quot;polygonOffset.enable&quot;,32823),x(&quot;polygonOffset.offset&quot;,&quot;polygonOffset&quot;,[0,0]),y(&quot;sample.alpha&quot;,32926),y(&quot;sample.enable&quot;,32928),x(&quot;sample.coverage&quot;,&quot;sampleCoverage&quot;,[1,!1]),y(&quot;stencil.enable&quot;,2960),x(&quot;stencil.mask&quot;,&quot;stencilMask&quot;,-1),x(&quot;stencil.func&quot;,&quot;stencilFunc&quot;,[519,0,-1]),x(&quot;stencil.opFront&quot;,&quot;stencilOpSeparate&quot;,[1028,7680,7680,7680]),x(&quot;stencil.opBack&quot;,&quot;stencilOpSeparate&quot;,[1029,7680,7680,7680]),y(&quot;scissor.enable&quot;,3089),x(&quot;scissor.box&quot;,&quot;scissor&quot;,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]),x(&quot;viewport&quot;,&quot;viewport&quot;,[0,0,t.drawingBufferWidth,t.drawingBufferHeight]);var ot={gl:t,context:p,strings:e,next:et,current:tt,draw:h,elements:o,buffer:i,shader:f,attributes:u.state,vao:u,uniforms:c,framebuffer:l,extensions:r,timer:d,isBufferArgs:z},st={primTypes:nt,compareFuncs:Mt,blendFuncs:kt,blendEquations:J,stencilOps:At,glTypes:Q,orientationType:St};$&amp;&amp;(st.backBuffer=[1029],st.drawBuffer=a(n.maxDrawbuffers,(function(t){return 0===t?[0]:a(t,(function(t){return 36064+t}))})));var lt=0;return{next:et,current:tt,procs:function(){var t=b(),e=t.proc(&quot;poll&quot;),i=t.proc(&quot;refresh&quot;),o=t.block();e(o),i(o);var s,l=t.shared,c=l.gl,u=l.next,f=l.current;o(f,&quot;.dirty=false;&quot;),S(t,e),S(t,i,null,!0),K&amp;&amp;(s=t.link(K)),r.oes_vertex_array_object&amp;&amp;i(t.link(r.oes_vertex_array_object),&quot;.bindVertexArrayOES(null);&quot;);for(var h=0;h&lt;n.maxAttributes;++h){var p=i.def(l.attributes,&quot;[&quot;,h,&quot;]&quot;),d=t.cond(p,&quot;.buffer&quot;);d.then(c,&quot;.enableVertexAttribArray(&quot;,h,&quot;);&quot;,c,&quot;.bindBuffer(&quot;,34962,&quot;,&quot;,p,&quot;.buffer.buffer);&quot;,c,&quot;.vertexAttribPointer(&quot;,h,&quot;,&quot;,p,&quot;.size,&quot;,p,&quot;.type,&quot;,p,&quot;.normalized,&quot;,p,&quot;.stride,&quot;,p,&quot;.offset);&quot;).else(c,&quot;.disableVertexAttribArray(&quot;,h,&quot;);&quot;,c,&quot;.vertexAttrib4f(&quot;,h,&quot;,&quot;,p,&quot;.x,&quot;,p,&quot;.y,&quot;,p,&quot;.z,&quot;,p,&quot;.w);&quot;,p,&quot;.buffer=null;&quot;),i(d),K&amp;&amp;i(s,&quot;.vertexAttribDivisorANGLE(&quot;,h,&quot;,&quot;,p,&quot;.divisor);&quot;)}return i(t.shared.vao,&quot;.currentVAO=null;&quot;,t.shared.vao,&quot;.setVAO(&quot;,t.shared.vao,&quot;.targetVAO);&quot;),Object.keys(it).forEach((function(r){var n=it[r],a=o.def(u,&quot;.&quot;,r),s=t.block();s(&quot;if(&quot;,a,&quot;){&quot;,c,&quot;.enable(&quot;,n,&quot;)}else{&quot;,c,&quot;.disable(&quot;,n,&quot;)}&quot;,f,&quot;.&quot;,r,&quot;=&quot;,a,&quot;;&quot;),i(s),e(&quot;if(&quot;,a,&quot;!==&quot;,f,&quot;.&quot;,r,&quot;){&quot;,s,&quot;}&quot;)})),Object.keys(at).forEach((function(r){var n,s,l=at[r],h=tt[r],p=t.block();p(c,&quot;.&quot;,l,&quot;(&quot;),m(h)?(l=h.length,n=t.global.def(u,&quot;.&quot;,r),s=t.global.def(f,&quot;.&quot;,r),p(a(l,(function(t){return n+&quot;[&quot;+t+&quot;]&quot;})),&quot;);&quot;,a(l,(function(t){return s+&quot;[&quot;+t+&quot;]=&quot;+n+&quot;[&quot;+t+&quot;];&quot;})).join(&quot;&quot;)),e(&quot;if(&quot;,a(l,(function(t){return n+&quot;[&quot;+t+&quot;]!==&quot;+s+&quot;[&quot;+t+&quot;]&quot;})).join(&quot;||&quot;),&quot;){&quot;,p,&quot;}&quot;)):(n=o.def(u,&quot;.&quot;,r),s=o.def(f,&quot;.&quot;,r),p(n,&quot;);&quot;,f,&quot;.&quot;,r,&quot;=&quot;,n,&quot;;&quot;),e(&quot;if(&quot;,n,&quot;!==&quot;,s,&quot;){&quot;,p,&quot;}&quot;)),i(p)})),t.compile()}(),compile:function(t,e,r,n,i){var a=b();return a.stats=a.link(i),Object.keys(e.static).forEach((function(t){X(a,e,t)})),Tt.forEach((function(e){X(a,t,e)})),r=M(t,e,r,n),function(t,e){var r=t.proc(&quot;draw&quot;,1);L(t,r),A(t,r,e.context),S(t,r,e.framebuffer),E(t,r,e),C(t,r,e.state),I(t,r,e,!1,!0);var n=e.shader.progVar.append(t,r);if(r(t.shared.gl,&quot;.useProgram(&quot;,n,&quot;.program);&quot;),e.shader.program)H(t,r,e,e.shader.program);else{r(t.shared.vao,&quot;.setVAO(null);&quot;);var i=t.global.def(&quot;{}&quot;),a=r.def(n,&quot;.id&quot;),o=r.def(i,&quot;[&quot;,a,&quot;]&quot;);r(t.cond(o).then(o,&quot;.call(this,a0);&quot;).else(o,&quot;=&quot;,i,&quot;[&quot;,a,&quot;]=&quot;,t.link((function(r){return V(H,t,e,r,1)})),&quot;(&quot;,n,&quot;);&quot;,o,&quot;.call(this,a0);&quot;))}0&lt;Object.keys(e.state).length&amp;&amp;r(t.shared.current,&quot;.dirty=true;&quot;)}(a,r),W(a,r),function(t,e){function r(t){return t.contextDep&amp;&amp;i||t.propDep}var n=t.proc(&quot;batch&quot;,2);t.batchId=&quot;0&quot;,L(t,n);var i=!1,a=!0;Object.keys(e.context).forEach((function(t){i=i||e.context[t].propDep})),i||(A(t,n,e.context),a=!1);var o=!1;if((s=e.framebuffer)?(s.propDep?i=o=!0:s.contextDep&amp;&amp;i&amp;&amp;(o=!0),o||S(t,n,s)):S(t,n,null),e.state.viewport&amp;&amp;e.state.viewport.propDep&amp;&amp;(i=!0),E(t,n,e),C(t,n,e.state,(function(t){return!r(t)})),e.profile&amp;&amp;r(e.profile)||I(t,n,e,!1,&quot;a1&quot;),e.contextDep=i,e.needsContext=a,e.needsFramebuffer=o,(a=e.shader.progVar).contextDep&amp;&amp;i||a.propDep)Y(t,n,e,null);else if(a=a.append(t,n),n(t.shared.gl,&quot;.useProgram(&quot;,a,&quot;.program);&quot;),e.shader.program)Y(t,n,e,e.shader.program);else{n(t.shared.vao,&quot;.setVAO(null);&quot;);var s=t.global.def(&quot;{}&quot;),l=(o=n.def(a,&quot;.id&quot;),n.def(s,&quot;[&quot;,o,&quot;]&quot;));n(t.cond(l).then(l,&quot;.call(this,a0,a1);&quot;).else(l,&quot;=&quot;,s,&quot;[&quot;,o,&quot;]=&quot;,t.link((function(r){return V(Y,t,e,r,2)})),&quot;(&quot;,a,&quot;);&quot;,l,&quot;.call(this,a0,a1);&quot;))}0&lt;Object.keys(e.state).length&amp;&amp;n(t.shared.current,&quot;.dirty=true;&quot;)}(a,r),a.compile()}}}function j(t,e){for(var r=0;r&lt;t.length;++r)if(t[r]===e)return r;return-1}var U=function(t,e){for(var r=Object.keys(e),n=0;n&lt;r.length;++n)t[r[n]]=e[r[n]];return t},V=0,q={DynamicVariable:t,define:function(r,n){return new t(r,e(n+&quot;&quot;))},isDynamic:function(e){return&quot;function&quot;==typeof e&amp;&amp;!e._reglType||e instanceof t},unbox:function(e,r){return&quot;function&quot;==typeof e?new t(0,e):e},accessor:e},H={next:&quot;function&quot;==typeof requestAnimationFrame?function(t){return requestAnimationFrame(t)}:function(t){return setTimeout(t,16)},cancel:&quot;function&quot;==typeof cancelAnimationFrame?function(t){return cancelAnimationFrame(t)}:clearTimeout},G=&quot;undefined&quot;!=typeof performance&amp;&amp;performance.now?function(){return performance.now()}:function(){return+new Date},Y=s();Y.zero=s();var W=function(t,e){var r=1;e.ext_texture_filter_anisotropic&amp;&amp;(r=t.getParameter(34047));var n=1,i=1;e.webgl_draw_buffers&amp;&amp;(n=t.getParameter(34852),i=t.getParameter(36063));var a=!!e.oes_texture_float;if(a){a=t.createTexture(),t.bindTexture(3553,a),t.texImage2D(3553,0,6408,1,1,0,6408,5126,null);var o=t.createFramebuffer();if(t.bindFramebuffer(36160,o),t.framebufferTexture2D(36160,36064,3553,a,0),t.bindTexture(3553,null),36053!==t.checkFramebufferStatus(36160))a=!1;else{t.viewport(0,0,1,1),t.clearColor(1,0,0,1),t.clear(16384);var s=Y.allocType(5126,4);t.readPixels(0,0,1,1,6408,5126,s),t.getError()?a=!1:(t.deleteFramebuffer(o),t.deleteTexture(a),a=1===s[0]),Y.freeType(s)}}return s=!0,&quot;undefined&quot;!=typeof navigator&amp;&amp;(/MSIE/.test(navigator.userAgent)||/Trident\//.test(navigator.appVersion)||/Edge/.test(navigator.userAgent))||(s=t.createTexture(),o=Y.allocType(5121,36),t.activeTexture(33984),t.bindTexture(34067,s),t.texImage2D(34069,0,6408,3,3,0,6408,5121,o),Y.freeType(o),t.bindTexture(34067,null),t.deleteTexture(s),s=!t.getError()),{colorBits:[t.getParameter(3410),t.getParameter(3411),t.getParameter(3412),t.getParameter(3413)],depthBits:t.getParameter(3414),stencilBits:t.getParameter(3415),subpixelBits:t.getParameter(3408),extensions:Object.keys(e).filter((function(t){return!!e[t]})),maxAnisotropic:r,maxDrawbuffers:n,maxColorAttachments:i,pointSizeDims:t.getParameter(33901),lineWidthDims:t.getParameter(33902),maxViewportDims:t.getParameter(3386),maxCombinedTextureUnits:t.getParameter(35661),maxCubeMapSize:t.getParameter(34076),maxRenderbufferSize:t.getParameter(34024),maxTextureUnits:t.getParameter(34930),maxTextureSize:t.getParameter(3379),maxAttributes:t.getParameter(34921),maxVertexUniforms:t.getParameter(36347),maxVertexTextureUnits:t.getParameter(35660),maxVaryingVectors:t.getParameter(36348),maxFragmentUniforms:t.getParameter(36349),glsl:t.getParameter(35724),renderer:t.getParameter(7937),vendor:t.getParameter(7936),version:t.getParameter(7938),readFloat:a,npotTextureCube:s}},X=function(t){return t instanceof Uint8Array||t instanceof Uint16Array||t instanceof Uint32Array||t instanceof Int8Array||t instanceof Int16Array||t instanceof Int32Array||t instanceof Float32Array||t instanceof Float64Array||t instanceof Uint8ClampedArray},Z=function(t){return Object.keys(t).map((function(e){return t[e]}))},J={shape:function(t){for(var e=[];t.length;t=t[0])e.push(t.length);return e},flatten:function(t,e,r,n){var i=1;if(e.length)for(var a=0;a&lt;e.length;++a)i*=e[a];else i=0;switch(r=n||Y.allocType(r,i),e.length){case 0:break;case 1:for(n=e[0],e=0;e&lt;n;++e)r[e]=t[e];break;case 2:for(n=e[0],e=e[1],a=i=0;a&lt;n;++a)for(var o=t[a],s=0;s&lt;e;++s)r[i++]=o[s];break;case 3:c(t,e[0],e[1],e[2],r,0);break;default:!function t(e,r,n,i,a){for(var o=1,s=n+1;s&lt;r.length;++s)o*=r[s];var l=r[n];if(4==r.length-n){var u=r[n+1],f=r[n+2];for(r=r[n+3],s=0;s&lt;l;++s)c(e[s],u,f,r,i,a),a+=o}else for(s=0;s&lt;l;++s)t(e[s],r,n+1,i,a),a+=o}(t,e,0,r,0)}return r}},K={&quot;[object Int8Array]&quot;:5120,&quot;[object Int16Array]&quot;:5122,&quot;[object Int32Array]&quot;:5124,&quot;[object Uint8Array]&quot;:5121,&quot;[object Uint8ClampedArray]&quot;:5121,&quot;[object Uint16Array]&quot;:5123,&quot;[object Uint32Array]&quot;:5125,&quot;[object Float32Array]&quot;:5126,&quot;[object Float64Array]&quot;:5121,&quot;[object ArrayBuffer]&quot;:5121},Q={int8:5120,int16:5122,int32:5124,uint8:5121,uint16:5123,uint32:5125,float:5126,float32:5126},$={dynamic:35048,stream:35040,static:35044},tt=J.flatten,et=J.shape,rt=[];rt[5120]=1,rt[5122]=2,rt[5124]=4,rt[5121]=1,rt[5123]=2,rt[5125]=4,rt[5126]=4;var nt={points:0,point:0,lines:1,line:1,triangles:4,triangle:4,&quot;line loop&quot;:2,&quot;line strip&quot;:3,&quot;triangle strip&quot;:5,&quot;triangle fan&quot;:6},it=new Float32Array(1),at=new Uint32Array(it.buffer),ot=[9984,9986,9985,9987],st=[0,6409,6410,6407,6408],lt={};lt[6409]=lt[6406]=lt[6402]=1,lt[34041]=lt[6410]=2,lt[6407]=lt[35904]=3,lt[6408]=lt[35906]=4;var ct=v(&quot;HTMLCanvasElement&quot;),ut=v(&quot;OffscreenCanvas&quot;),ft=v(&quot;CanvasRenderingContext2D&quot;),ht=v(&quot;ImageBitmap&quot;),pt=v(&quot;HTMLImageElement&quot;),dt=v(&quot;HTMLVideoElement&quot;),gt=Object.keys(K).concat([ct,ut,ft,ht,pt,dt]),mt=[];mt[5121]=1,mt[5126]=4,mt[36193]=2,mt[5123]=2,mt[5125]=4;var vt=[];vt[32854]=2,vt[32855]=2,vt[36194]=2,vt[34041]=4,vt[33776]=.5,vt[33777]=.5,vt[33778]=1,vt[33779]=1,vt[35986]=.5,vt[35987]=1,vt[34798]=1,vt[35840]=.5,vt[35841]=.25,vt[35842]=.5,vt[35843]=.25,vt[36196]=.5;var yt=[];yt[32854]=2,yt[32855]=2,yt[36194]=2,yt[33189]=2,yt[36168]=1,yt[34041]=4,yt[35907]=4,yt[34836]=16,yt[34842]=8,yt[34843]=6;var xt=function(t,e,r,n,i){function a(t){this.id=c++,this.refCount=1,this.renderbuffer=t,this.format=32854,this.height=this.width=0,i.profile&amp;&amp;(this.stats={size:0})}function o(e){var r=e.renderbuffer;t.bindRenderbuffer(36161,null),t.deleteRenderbuffer(r),e.renderbuffer=null,e.refCount=0,delete u[e.id],n.renderbufferCount--}var s={rgba4:32854,rgb565:36194,&quot;rgb5 a1&quot;:32855,depth:33189,stencil:36168,&quot;depth stencil&quot;:34041};e.ext_srgb&amp;&amp;(s.srgba=35907),e.ext_color_buffer_half_float&amp;&amp;(s.rgba16f=34842,s.rgb16f=34843),e.webgl_color_buffer_float&amp;&amp;(s.rgba32f=34836);var l=[];Object.keys(s).forEach((function(t){l[s[t]]=t}));var c=0,u={};return a.prototype.decRef=function(){0&gt;=--this.refCount&amp;&amp;o(this)},i.profile&amp;&amp;(n.getTotalRenderbufferSize=function(){var t=0;return Object.keys(u).forEach((function(e){t+=u[e].stats.size})),t}),{create:function(e,r){function o(e,r){var n=0,a=0,u=32854;if(&quot;object&quot;==typeof e&amp;&amp;e?(&quot;shape&quot;in e?(n=0|(a=e.shape)[0],a=0|a[1]):(&quot;radius&quot;in e&amp;&amp;(n=a=0|e.radius),&quot;width&quot;in e&amp;&amp;(n=0|e.width),&quot;height&quot;in e&amp;&amp;(a=0|e.height)),&quot;format&quot;in e&amp;&amp;(u=s[e.format])):&quot;number&quot;==typeof e?(n=0|e,a=&quot;number&quot;==typeof r?0|r:n):e||(n=a=1),n!==c.width||a!==c.height||u!==c.format)return o.width=c.width=n,o.height=c.height=a,c.format=u,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,u,n,a),i.profile&amp;&amp;(c.stats.size=yt[c.format]*c.width*c.height),o.format=l[c.format],o}var c=new a(t.createRenderbuffer());return u[c.id]=c,n.renderbufferCount++,o(e,r),o.resize=function(e,r){var n=0|e,a=0|r||n;return n===c.width&amp;&amp;a===c.height||(o.width=c.width=n,o.height=c.height=a,t.bindRenderbuffer(36161,c.renderbuffer),t.renderbufferStorage(36161,c.format,n,a),i.profile&amp;&amp;(c.stats.size=yt[c.format]*c.width*c.height)),o},o._reglType=&quot;renderbuffer&quot;,o._renderbuffer=c,i.profile&amp;&amp;(o.stats=c.stats),o.destroy=function(){c.decRef()},o},clear:function(){Z(u).forEach(o)},restore:function(){Z(u).forEach((function(e){e.renderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,e.renderbuffer),t.renderbufferStorage(36161,e.format,e.width,e.height)})),t.bindRenderbuffer(36161,null)}}},bt=[];bt[6408]=4,bt[6407]=3;var _t=[];_t[5121]=1,_t[5126]=4,_t[36193]=2;var wt=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;w&quot;],Tt=&quot;blend.func blend.equation stencil.func stencil.opFront stencil.opBack sample.coverage viewport scissor.box polygonOffset.offset&quot;.split(&quot; &quot;),kt={0:0,1:1,zero:0,one:1,&quot;src color&quot;:768,&quot;one minus src color&quot;:769,&quot;src alpha&quot;:770,&quot;one minus src alpha&quot;:771,&quot;dst color&quot;:774,&quot;one minus dst color&quot;:775,&quot;dst alpha&quot;:772,&quot;one minus dst alpha&quot;:773,&quot;constant color&quot;:32769,&quot;one minus constant color&quot;:32770,&quot;constant alpha&quot;:32771,&quot;one minus constant alpha&quot;:32772,&quot;src alpha saturate&quot;:776},Mt={never:512,less:513,&quot;&lt;&quot;:513,equal:514,&quot;=&quot;:514,&quot;==&quot;:514,&quot;===&quot;:514,lequal:515,&quot;&lt;=&quot;:515,greater:516,&quot;&gt;&quot;:516,notequal:517,&quot;!=&quot;:517,&quot;!==&quot;:517,gequal:518,&quot;&gt;=&quot;:518,always:519},At={0:0,zero:0,keep:7680,replace:7681,increment:7682,decrement:7683,&quot;increment wrap&quot;:34055,&quot;decrement wrap&quot;:34056,invert:5386},St={cw:2304,ccw:2305},Et=new D(!1,!1,!1,(function(){}));return function(t){function e(){if(0===J.length)w&amp;&amp;w.update(),tt=null;else{tt=H.next(e),f();for(var t=J.length-1;0&lt;=t;--t){var r=J[t];r&amp;&amp;r(I,null,0)}m.flush(),w&amp;&amp;w.update()}}function r(){!tt&amp;&amp;0&lt;J.length&amp;&amp;(tt=H.next(e))}function n(){tt&amp;&amp;(H.cancel(e),tt=null)}function a(t){t.preventDefault(),n(),K.forEach((function(t){t()}))}function o(t){m.getError(),y.restore(),R.restore(),z.restore(),F.restore(),B.restore(),V.restore(),O.restore(),w&amp;&amp;w.restore(),Y.procs.refresh(),r(),Q.forEach((function(t){t()}))}function s(t){function e(t){var e={},r={};return Object.keys(t).forEach((function(n){var i=t[n];q.isDynamic(i)?r[n]=q.unbox(i,n):e[n]=i})),{dynamic:r,static:e}}var r=e(t.context||{}),n=e(t.uniforms||{}),i=e(t.attributes||{}),a=e(function(t){function e(t){if(t in r){var e=r[t];delete r[t],Object.keys(e).forEach((function(n){r[t+&quot;.&quot;+n]=e[n]}))}}var r=U({},t);return delete r.uniforms,delete r.attributes,delete r.context,delete r.vao,&quot;stencil&quot;in r&amp;&amp;r.stencil.op&amp;&amp;(r.stencil.opBack=r.stencil.opFront=r.stencil.op,delete r.stencil.op),e(&quot;blend&quot;),e(&quot;depth&quot;),e(&quot;cull&quot;),e(&quot;stencil&quot;),e(&quot;polygonOffset&quot;),e(&quot;scissor&quot;),e(&quot;sample&quot;),&quot;vao&quot;in t&amp;&amp;(r.vao=t.vao),r}(t));t={gpuTime:0,cpuTime:0,count:0};var o=(r=Y.compile(a,i,n,r,t)).draw,s=r.batch,l=r.scope,c=[];return U((function(t,e){var r;if(&quot;function&quot;==typeof t)return l.call(this,null,t,0);if(&quot;function&quot;==typeof e)if(&quot;number&quot;==typeof t)for(r=0;r&lt;t;++r)l.call(this,null,e,r);else{if(!Array.isArray(t))return l.call(this,t,e,0);for(r=0;r&lt;t.length;++r)l.call(this,t[r],e,r)}else if(&quot;number&quot;==typeof t){if(0&lt;t)return s.call(this,function(t){for(;c.length&lt;t;)c.push(null);return c}(0|t),0|t)}else{if(!Array.isArray(t))return o.call(this,t);if(t.length)return s.call(this,t,t.length)}}),{stats:t})}function l(t,e){var r=0;Y.procs.poll();var n=e.color;n&amp;&amp;(m.clearColor(+n[0]||0,+n[1]||0,+n[2]||0,+n[3]||0),r|=16384),&quot;depth&quot;in e&amp;&amp;(m.clearDepth(+e.depth),r|=256),&quot;stencil&quot;in e&amp;&amp;(m.clearStencil(0|e.stencil),r|=1024),m.clear(r)}function c(t){return J.push(t),r(),{cancel:function(){var e=j(J,t);J[e]=function t(){var e=j(J,t);J[e]=J[J.length-1],--J.length,0&gt;=J.length&amp;&amp;n()}}}}function u(){var t=X.viewport,e=X.scissor_box;t[0]=t[1]=e[0]=e[1]=0,I.viewportWidth=I.framebufferWidth=I.drawingBufferWidth=t[2]=e[2]=m.drawingBufferWidth,I.viewportHeight=I.framebufferHeight=I.drawingBufferHeight=t[3]=e[3]=m.drawingBufferHeight}function f(){I.tick+=1,I.time=g(),u(),Y.procs.poll()}function h(){u(),Y.procs.refresh(),w&amp;&amp;w.update()}function g(){return(G()-T)/1e3}if(!(t=i(t)))return null;var m=t.gl,v=m.getContextAttributes();m.isContextLost();var y=function(t,e){function r(e){var r;e=e.toLowerCase();try{r=n[e]=t.getExtension(e)}catch(t){}return!!r}for(var n={},i=0;i&lt;e.extensions.length;++i){var a=e.extensions[i];if(!r(a))return e.onDestroy(),e.onDone('&quot;'+a+'&quot; extension is not supported by the current WebGL context, try upgrading your system or a different browser'),null}return e.optionalExtensions.forEach(r),{extensions:n,restore:function(){Object.keys(n).forEach((function(t){if(n[t]&amp;&amp;!r(t))throw Error(&quot;(regl): error restoring extension &quot;+t)}))}}}(m,t);if(!y)return null;var x=function(){var t={&quot;&quot;:0},e=[&quot;&quot;];return{id:function(r){var n=t[r];return n||(n=t[r]=e.length,e.push(r),n)},str:function(t){return e[t]}}}(),b={vaoCount:0,bufferCount:0,elementsCount:0,framebufferCount:0,shaderCount:0,textureCount:0,cubeCount:0,renderbufferCount:0,maxTextureUnits:0},_=y.extensions,w=function(t,e){function r(){this.endQueryIndex=this.startQueryIndex=-1,this.sum=0,this.stats=null}function n(t,e,n){var i=o.pop()||new r;i.startQueryIndex=t,i.endQueryIndex=e,i.sum=0,i.stats=n,s.push(i)}if(!e.ext_disjoint_timer_query)return null;var i=[],a=[],o=[],s=[],l=[],c=[];return{beginQuery:function(t){var r=i.pop()||e.ext_disjoint_timer_query.createQueryEXT();e.ext_disjoint_timer_query.beginQueryEXT(35007,r),a.push(r),n(a.length-1,a.length,t)},endQuery:function(){e.ext_disjoint_timer_query.endQueryEXT(35007)},pushScopeStats:n,update:function(){var t,r;if(0!==(t=a.length)){c.length=Math.max(c.length,t+1),l.length=Math.max(l.length,t+1),l[0]=0;var n=c[0]=0;for(r=t=0;r&lt;a.length;++r){var u=a[r];e.ext_disjoint_timer_query.getQueryObjectEXT(u,34919)?(n+=e.ext_disjoint_timer_query.getQueryObjectEXT(u,34918),i.push(u)):a[t++]=u,l[r+1]=n,c[r+1]=t}for(a.length=t,r=t=0;r&lt;s.length;++r){var f=(n=s[r]).startQueryIndex;u=n.endQueryIndex;n.sum+=l[u]-l[f],f=c[f],(u=c[u])===f?(n.stats.gpuTime+=n.sum/1e6,o.push(n)):(n.startQueryIndex=f,n.endQueryIndex=u,s[t++]=n)}s.length=t}},getNumPendingQueries:function(){return a.length},clear:function(){i.push.apply(i,a);for(var t=0;t&lt;i.length;t++)e.ext_disjoint_timer_query.deleteQueryEXT(i[t]);a.length=0,i.length=0},restore:function(){a.length=0,i.length=0}}}(0,_),T=G(),A=m.drawingBufferWidth,L=m.drawingBufferHeight,I={tick:0,time:0,viewportWidth:A,viewportHeight:L,framebufferWidth:A,framebufferHeight:L,drawingBufferWidth:A,drawingBufferHeight:L,pixelRatio:t.pixelRatio},P=W(m,_),z=p(m,b,t,(function(t){return O.destroyBuffer(t)})),O=S(m,_,P,b,z),D=d(m,_,z,b),R=E(m,x,b,t),F=k(m,_,P,(function(){Y.procs.poll()}),I,b,t),B=xt(m,_,0,b,t),V=M(m,_,P,F,B,b),Y=N(m,x,_,P,z,D,0,V,{},O,R,{elements:null,primitive:4,count:-1,offset:0,instances:-1},I,w,t),X=(x=C(m,V,Y.procs.poll,I),Y.next),Z=m.canvas,J=[],K=[],Q=[],$=[t.onDestroy],tt=null;Z&amp;&amp;(Z.addEventListener(&quot;webglcontextlost&quot;,a,!1),Z.addEventListener(&quot;webglcontextrestored&quot;,o,!1));var et=V.setFBO=s({framebuffer:q.define.call(null,1,&quot;framebuffer&quot;)});return h(),v=U(s,{clear:function(t){if(&quot;framebuffer&quot;in t)if(t.framebuffer&amp;&amp;&quot;framebufferCube&quot;===t.framebuffer_reglType)for(var e=0;6&gt;e;++e)et(U({framebuffer:t.framebuffer.faces[e]},t),l);else et(t,l);else l(0,t)},prop:q.define.bind(null,1),context:q.define.bind(null,2),this:q.define.bind(null,3),draw:s({}),buffer:function(t){return z.create(t,34962,!1,!1)},elements:function(t){return D.create(t,!1)},texture:F.create2D,cube:F.createCube,renderbuffer:B.create,framebuffer:V.create,framebufferCube:V.createCube,vao:O.createVAO,attributes:v,frame:c,on:function(t,e){var r;switch(t){case&quot;frame&quot;:return c(e);case&quot;lost&quot;:r=K;break;case&quot;restore&quot;:r=Q;break;case&quot;destroy&quot;:r=$}return r.push(e),{cancel:function(){for(var t=0;t&lt;r.length;++t)if(r[t]===e){r[t]=r[r.length-1],r.pop();break}}}},limits:P,hasExtension:function(t){return 0&lt;=P.extensions.indexOf(t.toLowerCase())},read:x,destroy:function(){J.length=0,n(),Z&amp;&amp;(Z.removeEventListener(&quot;webglcontextlost&quot;,a),Z.removeEventListener(&quot;webglcontextrestored&quot;,o)),R.clear(),V.clear(),B.clear(),F.clear(),D.clear(),z.clear(),O.clear(),w&amp;&amp;w.clear(),$.forEach((function(t){t()}))},_gl:m,_refresh:h,poll:function(){f(),w&amp;&amp;w.update()},now:g,stats:b}),t.onDone(null,v),v}}))},{}],541:[function(t,e,r){
/*!
 * repeat-string &lt;https://github.com/jonschlinkert/repeat-string&gt;
 *
 * Copyright (c) 2014-2015, Jon Schlinkert.
 * Licensed under the MIT License.
 */
&quot;use strict&quot;;var n,i=&quot;&quot;;e.exports=function(t,e){if(&quot;string&quot;!=typeof t)throw new TypeError(&quot;expected a string&quot;);if(1===e)return t;if(2===e)return t+t;var r=t.length*e;if(n!==t||&quot;undefined&quot;==typeof n)n=t,i=&quot;&quot;;else if(i.length&gt;=r)return i.substr(0,r);for(;r&gt;i.length&amp;&amp;e&gt;1;)1&amp;e&amp;&amp;(i+=t),e&gt;&gt;=1,t+=t;return i=(i+=t).substr(0,r)}},{}],542:[function(t,e,r){(function(t){(function(){e.exports=t.performance&amp;&amp;t.performance.now?function(){return performance.now()}:Date.now||function(){return+new Date}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{}],543:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=t[t.length-1],n=e,i=e-2;i&gt;=0;--i){var a=r,o=t[i];(l=o-((r=a+o)-a))&amp;&amp;(t[--n]=r,r=l)}var s=0;for(i=n;i&lt;e;++i){var l;a=t[i];(l=(o=r)-((r=a+o)-a))&amp;&amp;(t[s++]=l)}return t[s++]=r,t.length=s,t}},{}],544:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-scale&quot;),o=t(&quot;robust-compress&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m[&quot;,r,&quot;][&quot;,n,&quot;]&quot;].join(&quot;&quot;)}return e}function c(t){if(2===t.length)return[&quot;sum(prod(&quot;,t[0][0],&quot;,&quot;,t[1][1],&quot;),prod(-&quot;,t[0][1],&quot;,&quot;,t[1][0],&quot;))&quot;].join(&quot;&quot;);for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,c(s(t,r)),&quot;,&quot;,(n=r,1&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return function t(e){if(1===e.length)return e[0];if(2===e.length)return[&quot;sum(&quot;,e[0],&quot;,&quot;,e[1],&quot;)&quot;].join(&quot;&quot;);var r=e.length&gt;&gt;1;return[&quot;sum(&quot;,t(e.slice(0,r)),&quot;,&quot;,t(e.slice(r)),&quot;)&quot;].join(&quot;&quot;)}(e);var n}function u(t){return new Function(&quot;sum&quot;,&quot;scale&quot;,&quot;prod&quot;,&quot;compress&quot;,[&quot;function robustDeterminant&quot;,t,&quot;(m){return compress(&quot;,c(l(t)),&quot;)};return robustDeterminant&quot;,t].join(&quot;&quot;))(i,a,n,o)}var f=[function(){return[0]},function(t){return[t[0][0]]}];!function(){for(;f.length&lt;6;)f.push(u(f.length));for(var t=[],r=[&quot;function robustDeterminant(m){switch(m.length){&quot;],n=0;n&lt;6;++n)t.push(&quot;det&quot;+n),r.push(&quot;case &quot;,n,&quot;:return det&quot;,n,&quot;(m);&quot;);r.push(&quot;}var det=CACHE[m.length];if(!det)det=CACHE[m.length]=gen(m.length);return det(m);}return robustDeterminant&quot;),t.push(&quot;CACHE&quot;,&quot;gen&quot;,r.join(&quot;&quot;));var i=Function.apply(void 0,t);for(e.exports=i.apply(void 0,f.concat([f,u])),n=0;n&lt;f.length;++n)e.exports[n]=f[n]}()},{&quot;robust-compress&quot;:543,&quot;robust-scale&quot;:550,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],545:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;);e.exports=function(t,e){for(var r=n(t[0],e[0]),a=1;a&lt;t.length;++a)r=i(r,n(t[a],e[a]));return r}},{&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],546:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-subtract&quot;),o=t(&quot;robust-scale&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){if(1===t.length)return t[0];if(2===t.length)return[&quot;sum(&quot;,t[0],&quot;,&quot;,t[1],&quot;)&quot;].join(&quot;&quot;);var e=t.length&gt;&gt;1;return[&quot;sum(&quot;,l(t.slice(0,e)),&quot;,&quot;,l(t.slice(e)),&quot;)&quot;].join(&quot;&quot;)}function c(t,e){if(&quot;m&quot;===t.charAt(0)){if(&quot;w&quot;===e.charAt(0)){var r=t.split(&quot;[&quot;);return[&quot;w&quot;,e.substr(1),&quot;m&quot;,r[0].substr(1)].join(&quot;&quot;)}return[&quot;prod(&quot;,t,&quot;,&quot;,e,&quot;)&quot;].join(&quot;&quot;)}return c(e,t)}function u(t){if(2===t.length)return[[&quot;diff(&quot;,c(t[0][0],t[1][1]),&quot;,&quot;,c(t[1][0],t[0][1]),&quot;)&quot;].join(&quot;&quot;)];for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,l(u(s(t,r))),&quot;,&quot;,(n=r,!0&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return e;var n}function f(t,e){for(var r=[],n=0;n&lt;e-2;++n)r.push([&quot;prod(m&quot;,t,&quot;[&quot;,n,&quot;],m&quot;,t,&quot;[&quot;,n,&quot;])&quot;].join(&quot;&quot;));return l(r)}function h(t){for(var e=[],r=[],c=function(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m&quot;,n,&quot;[&quot;,t-r-2,&quot;]&quot;].join(&quot;&quot;)}return e}(t),h=0;h&lt;t;++h)c[0][h]=&quot;1&quot;,c[t-1][h]=&quot;w&quot;+h;for(h=0;h&lt;t;++h)0==(1&amp;h)?e.push.apply(e,u(s(c,h))):r.push.apply(r,u(s(c,h)));var p=l(e),d=l(r),g=&quot;exactInSphere&quot;+t,m=[];for(h=0;h&lt;t;++h)m.push(&quot;m&quot;+h);var v=[&quot;function &quot;,g,&quot;(&quot;,m.join(),&quot;){&quot;];for(h=0;h&lt;t;++h){v.push(&quot;var w&quot;,h,&quot;=&quot;,f(h,t),&quot;;&quot;);for(var y=0;y&lt;t;++y)y!==h&amp;&amp;v.push(&quot;var w&quot;,h,&quot;m&quot;,y,&quot;=scale(w&quot;,h,&quot;,m&quot;,y,&quot;[0]);&quot;)}return v.push(&quot;var p=&quot;,p,&quot;,n=&quot;,d,&quot;,d=diff(p,n);return d[d.length-1];}return &quot;,g),new Function(&quot;sum&quot;,&quot;diff&quot;,&quot;prod&quot;,&quot;scale&quot;,v.join(&quot;&quot;))(i,a,n,o)}var p=[function(){return 0},function(){return 0},function(){return 0}];function d(t){var e=p[t.length];return e||(e=p[t.length]=h(t.length)),e.apply(void 0,t)}!function(){for(;p.length&lt;=6;)p.push(h(p.length));for(var t=[],r=[&quot;slow&quot;],n=0;n&lt;=6;++n)t.push(&quot;a&quot;+n),r.push(&quot;o&quot;+n);var i=[&quot;function testInSphere(&quot;,t.join(),&quot;){switch(arguments.length){case 0:case 1:return 0;&quot;];for(n=2;n&lt;=6;++n)i.push(&quot;case &quot;,n,&quot;:return o&quot;,n,&quot;(&quot;,t.slice(0,n).join(),&quot;);&quot;);i.push(&quot;}var s=new Array(arguments.length);for(var i=0;i&lt;arguments.length;++i){s[i]=arguments[i]};return slow(s);}return testInSphere&quot;),r.push(i.join(&quot;&quot;));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[d].concat(p)),n=0;n&lt;=6;++n)e.exports[n]=p[n]}()},{&quot;robust-scale&quot;:550,&quot;robust-subtract&quot;:552,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],547:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-determinant&quot;);function i(t){for(var e=&quot;robustLinearSolve&quot;+t+&quot;d&quot;,r=[&quot;function &quot;,e,&quot;(A,b){return [&quot;],i=0;i&lt;t;++i){r.push(&quot;det([&quot;);for(var a=0;a&lt;t;++a){a&gt;0&amp;&amp;r.push(&quot;,&quot;),r.push(&quot;[&quot;);for(var o=0;o&lt;t;++o)o&gt;0&amp;&amp;r.push(&quot;,&quot;),o===i?r.push(&quot;+b[&quot;,a,&quot;]&quot;):r.push(&quot;+A[&quot;,a,&quot;][&quot;,o,&quot;]&quot;);r.push(&quot;]&quot;)}r.push(&quot;]),&quot;)}r.push(&quot;det(A)]}return &quot;,e);var s=new Function(&quot;det&quot;,r.join(&quot;&quot;));return s(t&lt;6?n[t]:n)}var a=[function(){return[0]},function(t,e){return[[e[0]],[t[0][0]]]}];!function(){for(;a.length&lt;6;)a.push(i(a.length));for(var t=[],r=[&quot;function dispatchLinearSolve(A,b){switch(A.length){&quot;],n=0;n&lt;6;++n)t.push(&quot;s&quot;+n),r.push(&quot;case &quot;,n,&quot;:return s&quot;,n,&quot;(A,b);&quot;);r.push(&quot;}var s=CACHE[A.length];if(!s)s=CACHE[A.length]=g(A.length);return s(A,b)}return dispatchLinearSolve&quot;),t.push(&quot;CACHE&quot;,&quot;g&quot;,r.join(&quot;&quot;));var o=Function.apply(void 0,t);for(e.exports=o.apply(void 0,a.concat([a,i])),n=0;n&lt;6;++n)e.exports[n]=a[n]}()},{&quot;robust-determinant&quot;:544}],548:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;robust-sum&quot;),a=t(&quot;robust-scale&quot;),o=t(&quot;robust-subtract&quot;);function s(t,e){for(var r=new Array(t.length-1),n=1;n&lt;t.length;++n)for(var i=r[n-1]=new Array(t.length-1),a=0,o=0;a&lt;t.length;++a)a!==e&amp;&amp;(i[o++]=t[n][a]);return r}function l(t){if(1===t.length)return t[0];if(2===t.length)return[&quot;sum(&quot;,t[0],&quot;,&quot;,t[1],&quot;)&quot;].join(&quot;&quot;);var e=t.length&gt;&gt;1;return[&quot;sum(&quot;,l(t.slice(0,e)),&quot;,&quot;,l(t.slice(e)),&quot;)&quot;].join(&quot;&quot;)}function c(t){if(2===t.length)return[[&quot;sum(prod(&quot;,t[0][0],&quot;,&quot;,t[1][1],&quot;),prod(-&quot;,t[0][1],&quot;,&quot;,t[1][0],&quot;))&quot;].join(&quot;&quot;)];for(var e=[],r=0;r&lt;t.length;++r)e.push([&quot;scale(&quot;,l(c(s(t,r))),&quot;,&quot;,(n=r,1&amp;n?&quot;-&quot;:&quot;&quot;),t[0][r],&quot;)&quot;].join(&quot;&quot;));return e;var n}function u(t){for(var e=[],r=[],u=function(t){for(var e=new Array(t),r=0;r&lt;t;++r){e[r]=new Array(t);for(var n=0;n&lt;t;++n)e[r][n]=[&quot;m&quot;,n,&quot;[&quot;,t-r-1,&quot;]&quot;].join(&quot;&quot;)}return e}(t),f=[],h=0;h&lt;t;++h)0==(1&amp;h)?e.push.apply(e,c(s(u,h))):r.push.apply(r,c(s(u,h))),f.push(&quot;m&quot;+h);var p=l(e),d=l(r),g=&quot;orientation&quot;+t+&quot;Exact&quot;,m=[&quot;function &quot;,g,&quot;(&quot;,f.join(),&quot;){var p=&quot;,p,&quot;,n=&quot;,d,&quot;,d=sub(p,n);return d[d.length-1];};return &quot;,g].join(&quot;&quot;);return new Function(&quot;sum&quot;,&quot;prod&quot;,&quot;scale&quot;,&quot;sub&quot;,m)(i,n,a,o)}var f=u(3),h=u(4),p=[function(){return 0},function(){return 0},function(t,e){return e[0]-t[0]},function(t,e,r){var n,i=(t[1]-r[1])*(e[0]-r[0]),a=(t[0]-r[0])*(e[1]-r[1]),o=i-a;if(i&gt;0){if(a&lt;=0)return o;n=i+a}else{if(!(i&lt;0))return o;if(a&gt;=0)return o;n=-(i+a)}var s=33306690738754716e-32*n;return o&gt;=s||o&lt;=-s?o:f(t,e,r)},function(t,e,r,n){var i=t[0]-n[0],a=e[0]-n[0],o=r[0]-n[0],s=t[1]-n[1],l=e[1]-n[1],c=r[1]-n[1],u=t[2]-n[2],f=e[2]-n[2],p=r[2]-n[2],d=a*c,g=o*l,m=o*s,v=i*c,y=i*l,x=a*s,b=u*(d-g)+f*(m-v)+p*(y-x),_=7771561172376103e-31*((Math.abs(d)+Math.abs(g))*Math.abs(u)+(Math.abs(m)+Math.abs(v))*Math.abs(f)+(Math.abs(y)+Math.abs(x))*Math.abs(p));return b&gt;_||-b&gt;_?b:h(t,e,r,n)}];function d(t){var e=p[t.length];return e||(e=p[t.length]=u(t.length)),e.apply(void 0,t)}!function(){for(;p.length&lt;=5;)p.push(u(p.length));for(var t=[],r=[&quot;slow&quot;],n=0;n&lt;=5;++n)t.push(&quot;a&quot;+n),r.push(&quot;o&quot;+n);var i=[&quot;function getOrientation(&quot;,t.join(),&quot;){switch(arguments.length){case 0:case 1:return 0;&quot;];for(n=2;n&lt;=5;++n)i.push(&quot;case &quot;,n,&quot;:return o&quot;,n,&quot;(&quot;,t.slice(0,n).join(),&quot;);&quot;);i.push(&quot;}var s=new Array(arguments.length);for(var i=0;i&lt;arguments.length;++i){s[i]=arguments[i]};return slow(s);}return getOrientation&quot;),r.push(i.join(&quot;&quot;));var a=Function.apply(void 0,r);for(e.exports=a.apply(void 0,[d].concat(p)),n=0;n&lt;=5;++n)e.exports[n]=p[n]}()},{&quot;robust-scale&quot;:550,&quot;robust-subtract&quot;:552,&quot;robust-sum&quot;:553,&quot;two-product&quot;:582}],549:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-sum&quot;),i=t(&quot;robust-scale&quot;);e.exports=function(t,e){if(1===t.length)return i(e,t[0]);if(1===e.length)return i(t,e[0]);if(0===t.length||0===e.length)return[0];var r=[0];if(t.length&lt;e.length)for(var a=0;a&lt;t.length;++a)r=n(r,i(e,t[a]));else for(a=0;a&lt;e.length;++a)r=n(r,i(t,e[a]));return r}},{&quot;robust-scale&quot;:550,&quot;robust-sum&quot;:553}],550:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;two-product&quot;),i=t(&quot;two-sum&quot;);e.exports=function(t,e){var r=t.length;if(1===r){var a=n(t[0],e);return a[0]?a:[a[1]]}var o=new Array(2*r),s=[.1,.1],l=[.1,.1],c=0;n(t[0],e,s),s[0]&amp;&amp;(o[c++]=s[0]);for(var u=1;u&lt;r;++u){n(t[u],e,l);var f=s[1];i(f,l[0],s),s[0]&amp;&amp;(o[c++]=s[0]);var h=l[1],p=s[1],d=h+p,g=p-(d-h);s[1]=d,g&amp;&amp;(o[c++]=g)}s[1]&amp;&amp;(o[c++]=s[1]);0===c&amp;&amp;(o[c++]=0);return o.length=c,o}},{&quot;two-product&quot;:582,&quot;two-sum&quot;:583}],551:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,i){var a=n(t,r,i),o=n(e,r,i);if(a&gt;0&amp;&amp;o&gt;0||a&lt;0&amp;&amp;o&lt;0)return!1;var s=n(r,t,e),l=n(i,t,e);if(s&gt;0&amp;&amp;l&gt;0||s&lt;0&amp;&amp;l&lt;0)return!1;if(0===a&amp;&amp;0===o&amp;&amp;0===s&amp;&amp;0===l)return function(t,e,r,n){for(var i=0;i&lt;2;++i){var a=t[i],o=e[i],s=Math.min(a,o),l=Math.max(a,o),c=r[i],u=n[i],f=Math.min(c,u);if(Math.max(c,u)&lt;s||l&lt;f)return!1}return!0}(t,e,r,i);return!0};var n=t(&quot;robust-orientation&quot;)[3]},{&quot;robust-orientation&quot;:548}],552:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&amp;&amp;1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],-e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=-e[c],d=u(p);h&lt;d?(a=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(a=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p)));l&lt;r&amp;&amp;h&lt;d||c&gt;=n?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p)));var g,m,v=i+a,y=v-i,x=a-y,b=x,_=v;for(;l&lt;r&amp;&amp;c&lt;n;)h&lt;d?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=-e[c],d=u(p))),(x=(a=b)-(y=(v=i+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g;for(;l&lt;r;)(x=(a=b)-(y=(v=(i=f)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(l+=1)&lt;r&amp;&amp;(f=t[l]);for(;c&lt;n;)(x=(a=b)-(y=(v=(i=p)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(c+=1)&lt;n&amp;&amp;(p=-e[c]);b&amp;&amp;(o[s++]=b);_&amp;&amp;(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],553:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=0|t.length,n=0|e.length;if(1===r&amp;&amp;1===n)return function(t,e){var r=t+e,n=r-t,i=t-(r-n)+(e-n);if(i)return[i,r];return[r]}(t[0],e[0]);var i,a,o=new Array(r+n),s=0,l=0,c=0,u=Math.abs,f=t[l],h=u(f),p=e[c],d=u(p);h&lt;d?(a=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(a=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p)));l&lt;r&amp;&amp;h&lt;d||c&gt;=n?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p)));var g,m,v=i+a,y=v-i,x=a-y,b=x,_=v;for(;l&lt;r&amp;&amp;c&lt;n;)h&lt;d?(i=f,(l+=1)&lt;r&amp;&amp;(f=t[l],h=u(f))):(i=p,(c+=1)&lt;n&amp;&amp;(p=e[c],d=u(p))),(x=(a=b)-(y=(v=i+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g;for(;l&lt;r;)(x=(a=b)-(y=(v=(i=f)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(l+=1)&lt;r&amp;&amp;(f=t[l]);for(;c&lt;n;)(x=(a=b)-(y=(v=(i=p)+a)-i))&amp;&amp;(o[s++]=x),b=_-((g=_+v)-(m=g-_))+(v-m),_=g,(c+=1)&lt;n&amp;&amp;(p=e[c]);b&amp;&amp;(o[s++]=b);_&amp;&amp;(o[s++]=_);s||(o[s++]=0);return o.length=s,o}},{}],554:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t&lt;0?-1:t&gt;0?1:0}},{}],555:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return i(n(t))};var n=t(&quot;boundary-cells&quot;),i=t(&quot;reduce-simplicial-complex&quot;)},{&quot;boundary-cells&quot;:100,&quot;reduce-simplicial-complex&quot;:533}],556:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,s){r=r||0,&quot;undefined&quot;==typeof s&amp;&amp;(s=function(t){for(var e=t.length,r=0,n=0;n&lt;e;++n)r=0|Math.max(r,t[n].length);return r-1}(t));if(0===t.length||s&lt;1)return{cells:[],vertexIds:[],vertexWeights:[]};var l=function(t,e){for(var r=t.length,n=i.mallocUint8(r),a=0;a&lt;r;++a)n[a]=t[a]&lt;e|0;return n}(e,+r),c=function(t,e){for(var r=t.length,o=e*(e+1)/2*r|0,s=i.mallocUint32(2*o),l=0,c=0;c&lt;r;++c)for(var u=t[c],f=(e=u.length,0);f&lt;e;++f)for(var h=0;h&lt;f;++h){var p=u[h],d=u[f];s[l++]=0|Math.min(p,d),s[l++]=0|Math.max(p,d)}a(n(s,[l/2|0,2]));var g=2;for(c=2;c&lt;l;c+=2)s[c-2]===s[c]&amp;&amp;s[c-1]===s[c+1]||(s[g++]=s[c],s[g++]=s[c+1]);return n(s,[g/2|0,2])}(t,s),u=function(t,e,r,a){for(var o=t.data,s=t.shape[0],l=i.mallocDouble(s),c=0,u=0;u&lt;s;++u){var f=o[2*u],h=o[2*u+1];if(r[f]!==r[h]){var p=e[f],d=e[h];o[2*c]=f,o[2*c+1]=h,l[c++]=(d-a)/(d-p)}}return t.shape[0]=c,n(l,[c])}(c,e,l,+r),f=function(t,e){var r=i.mallocInt32(2*e),n=t.shape[0],a=t.data;r[0]=0;for(var o=0,s=0;s&lt;n;++s){var l=a[2*s];if(l!==o){for(r[2*o+1]=s;++o&lt;l;)r[2*o]=s,r[2*o+1]=s;r[2*o]=s}}r[2*o+1]=n;for(;++o&lt;e;)r[2*o]=r[2*o+1]=n;return r}(c,0|e.length),h=o(s)(t,c.data,f,l),p=function(t){for(var e=0|t.shape[0],r=t.data,n=new Array(e),i=0;i&lt;e;++i)n[i]=[r[2*i],r[2*i+1]];return n}(c),d=[].slice.call(u.data,0,u.shape[0]);return i.free(l),i.free(c.data),i.free(u.data),i.free(f),{cells:h,vertexIds:p,vertexWeights:d}};var n=t(&quot;ndarray&quot;),i=t(&quot;typedarray-pool&quot;),a=t(&quot;ndarray-sort&quot;),o=t(&quot;./lib/codegen&quot;)},{&quot;./lib/codegen&quot;:557,ndarray:495,&quot;ndarray-sort&quot;:494,&quot;typedarray-pool&quot;:595}],557:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=a[t];e||(e=a[t]=function(t){var e=0,r=new Array(t+1);r[0]=[[]];for(var a=1;a&lt;=t;++a)for(var o=r[a]=i(a),s=0;s&lt;o.length;++s)e=Math.max(e,o[a].length);var l=[&quot;function B(C,E,i,j){&quot;,&quot;var a=Math.min(i,j)|0,b=Math.max(i,j)|0,l=C[2*a],h=C[2*a+1];&quot;,&quot;while(l&lt;h){&quot;,&quot;var m=(l+h)&gt;&gt;1,v=E[2*m+1];&quot;,&quot;if(v===b){return m}&quot;,&quot;if(b&lt;v){h=m}else{l=m+1}&quot;,&quot;}&quot;,&quot;return l;&quot;,&quot;};&quot;,&quot;function getContour&quot;,t,&quot;d(F,E,C,S){&quot;,&quot;var n=F.length,R=[];&quot;,&quot;for(var i=0;i&lt;n;++i){var c=F[i],l=c.length;&quot;];function c(t){if(!(t.length&lt;=0)){l.push(&quot;R.push(&quot;);for(var e=0;e&lt;t.length;++e){var r=t[e];e&gt;0&amp;&amp;l.push(&quot;,&quot;),l.push(&quot;[&quot;);for(var n=0;n&lt;r.length;++n){var i=r[n];n&gt;0&amp;&amp;l.push(&quot;,&quot;),l.push(&quot;B(C,E,c[&quot;,i[0],&quot;],c[&quot;,i[1],&quot;])&quot;)}l.push(&quot;]&quot;)}l.push(&quot;);&quot;)}}for(a=t+1;a&gt;1;--a){a&lt;t+1&amp;&amp;l.push(&quot;else &quot;),l.push(&quot;if(l===&quot;,a,&quot;){&quot;);var u=[];for(s=0;s&lt;a;++s)u.push(&quot;(S[c[&quot;+s+&quot;]]&lt;&lt;&quot;+s+&quot;)&quot;);l.push(&quot;var M=&quot;,u.join(&quot;+&quot;),&quot;;if(M===0||M===&quot;,(1&lt;&lt;a)-1,&quot;){continue}switch(M){&quot;);for(o=r[a-1],s=0;s&lt;o.length;++s)l.push(&quot;case &quot;,s,&quot;:&quot;),c(o[s]),l.push(&quot;break;&quot;);l.push(&quot;}}&quot;)}return l.push(&quot;}return R;};return getContour&quot;,t,&quot;d&quot;),new Function(&quot;pool&quot;,l.join(&quot;&quot;))(n)}(t));return e};var n=t(&quot;typedarray-pool&quot;),i=t(&quot;marching-simplex-table&quot;),a={}},{&quot;marching-simplex-table&quot;:474,&quot;typedarray-pool&quot;:595}],558:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;bit-twiddle&quot;),i=t(&quot;union-find&quot;);function a(t,e){var r=t.length,n=t.length-e.length,i=Math.min;if(n)return n;switch(r){case 0:return 0;case 1:return t[0]-e[0];case 2:return(s=t[0]+t[1]-e[0]-e[1])||i(t[0],t[1])-i(e[0],e[1]);case 3:var a=t[0]+t[1],o=e[0]+e[1];if(s=a+t[2]-(o+e[2]))return s;var s,l=i(t[0],t[1]),c=i(e[0],e[1]);return(s=i(l,t[2])-i(c,e[2]))||i(l+t[2],a)-i(c+e[2],o);default:var u=t.slice(0);u.sort();var f=e.slice(0);f.sort();for(var h=0;h&lt;r;++h)if(n=u[h]-f[h])return n;return 0}}function o(t,e){return a(t[0],e[0])}function s(t,e){if(e){for(var r=t.length,n=new Array(r),i=0;i&lt;r;++i)n[i]=[t[i],e[i]];n.sort(o);for(i=0;i&lt;r;++i)t[i]=n[i][0],e[i]=n[i][1];return t}return t.sort(a),t}function l(t){if(0===t.length)return[];for(var e=1,r=t.length,n=1;n&lt;r;++n){var i=t[n];if(a(i,t[n-1])){if(n===e){e++;continue}t[e++]=i}}return t.length=e,t}function c(t,e){for(var r=0,n=t.length-1,i=-1;r&lt;=n;){var o=r+n&gt;&gt;1,s=a(t[o],e);s&lt;=0?(0===s&amp;&amp;(i=o),r=o+1):s&gt;0&amp;&amp;(n=o-1)}return i}function u(t,e){for(var r=new Array(t.length),i=0,o=r.length;i&lt;o;++i)r[i]=[];for(var s=[],l=(i=0,e.length);i&lt;l;++i)for(var u=e[i],f=u.length,h=1,p=1&lt;&lt;f;h&lt;p;++h){s.length=n.popCount(h);for(var d=0,g=0;g&lt;f;++g)h&amp;1&lt;&lt;g&amp;&amp;(s[d++]=u[g]);var m=c(t,s);if(!(m&lt;0))for(;r[m++].push(i),!(m&gt;=t.length||0!==a(t[m],s)););}return r}function f(t,e){if(e&lt;0)return[];for(var r=[],i=(1&lt;&lt;e+1)-1,a=0;a&lt;t.length;++a)for(var o=t[a],l=i;l&lt;1&lt;&lt;o.length;l=n.nextCombination(l)){for(var c=new Array(e+1),u=0,f=0;f&lt;o.length;++f)l&amp;1&lt;&lt;f&amp;&amp;(c[u++]=o[f]);r.push(c)}return s(r)}r.dimension=function(t){for(var e=0,r=Math.max,n=0,i=t.length;n&lt;i;++n)e=r(e,t[n].length);return e-1},r.countVertices=function(t){for(var e=-1,r=Math.max,n=0,i=t.length;n&lt;i;++n)for(var a=t[n],o=0,s=a.length;o&lt;s;++o)e=r(e,a[o]);return e+1},r.cloneCells=function(t){for(var e=new Array(t.length),r=0,n=t.length;r&lt;n;++r)e[r]=t[r].slice(0);return e},r.compareCells=a,r.normalize=s,r.unique=l,r.findCell=c,r.incidence=u,r.dual=function(t,e){if(!e)return u(l(f(t,0)),t);for(var r=new Array(e),n=0;n&lt;e;++n)r[n]=[];n=0;for(var i=t.length;n&lt;i;++n)for(var a=t[n],o=0,s=a.length;o&lt;s;++o)r[a[o]].push(n);return r},r.explode=function(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0|i.length,o=1,l=1&lt;&lt;a;o&lt;l;++o){for(var c=[],u=0;u&lt;a;++u)o&gt;&gt;&gt;u&amp;1&amp;&amp;c.push(i[u]);e.push(c)}return s(e)},r.skeleton=f,r.boundary=function(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)for(var i=t[r],a=0,o=i.length;a&lt;o;++a){for(var l=new Array(i.length-1),c=0,u=0;c&lt;o;++c)c!==a&amp;&amp;(l[u++]=i[c]);e.push(l)}return s(e)},r.connectedComponents=function(t,e){return e?function(t,e){for(var r=new i(e),n=0;n&lt;t.length;++n)for(var a=t[n],o=0;o&lt;a.length;++o)for(var s=o+1;s&lt;a.length;++s)r.link(a[o],a[s]);var l=[],c=r.ranks;for(n=0;n&lt;c.length;++n)c[n]=-1;for(n=0;n&lt;t.length;++n){var u=r.find(t[n][0]);c[u]&lt;0?(c[u]=l.length,l.push([t[n].slice(0)])):l[c[u]].push(t[n].slice(0))}return l}(t,e):function(t){for(var e=l(s(f(t,0))),r=new i(e.length),n=0;n&lt;t.length;++n)for(var a=t[n],o=0;o&lt;a.length;++o)for(var u=c(e,[a[o]]),h=o+1;h&lt;a.length;++h)r.link(u,c(e,[a[h]]));var p=[],d=r.ranks;for(n=0;n&lt;d.length;++n)d[n]=-1;for(n=0;n&lt;t.length;++n){var g=r.find(c(e,[t[n][0]]));d[g]&lt;0?(d[g]=p.length,p.push([t[n].slice(0)])):p[d[g]].push(t[n].slice(0))}return p}(t)}},{&quot;bit-twiddle&quot;:97,&quot;union-find&quot;:596}],559:[function(t,e,r){arguments[4][97][0].apply(r,arguments)},{dup:97}],560:[function(t,e,r){arguments[4][558][0].apply(r,arguments)},{&quot;bit-twiddle&quot;:559,dup:558,&quot;union-find&quot;:561}],561:[function(t,e,r){&quot;use strict&quot;;function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e&lt;t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n,n.prototype.length=function(){return this.roots.length},n.prototype.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},n.prototype.find=function(t){for(var e=this.roots;e[t]!==t;){var r=e[t];e[t]=e[r],t=r}return t},n.prototype.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o&lt;s?a[r]=n:s&lt;o?a[n]=r:(a[n]=r,++i[r])}}},{}],562:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){for(var a=e.length,o=t.length,s=new Array(a),l=new Array(a),c=new Array(a),u=new Array(a),f=0;f&lt;a;++f)s[f]=l[f]=-1,c[f]=1/0,u[f]=!1;for(f=0;f&lt;o;++f){var h=t[f];if(2!==h.length)throw new Error(&quot;Input must be a graph&quot;);var p=h[1],d=h[0];-1!==l[d]?l[d]=-2:l[d]=p,-1!==s[p]?s[p]=-2:s[p]=d}function g(t){if(u[t])return 1/0;var r,i,a,o,c,f=s[t],h=l[t];return f&lt;0||h&lt;0?1/0:(r=e[t],i=e[f],a=e[h],o=Math.abs(n(r,i,a)),c=Math.sqrt(Math.pow(i[0]-a[0],2)+Math.pow(i[1]-a[1],2)),o/c)}function m(t,e){var r=k[t],n=k[e];k[t]=n,k[e]=r,M[r]=e,M[n]=t}function v(t){return c[k[t]]}function y(t){return 1&amp;t?t-1&gt;&gt;1:(t&gt;&gt;1)-1}function x(t){for(var e=v(t);;){var r=e,n=2*t+1,i=2*(t+1),a=t;if(n&lt;A){var o=v(n);o&lt;r&amp;&amp;(a=n,r=o)}if(i&lt;A)v(i)&lt;r&amp;&amp;(a=i);if(a===t)return t;m(t,a),t=a}}function b(t){for(var e=v(t);t&gt;0;){var r=y(t);if(r&gt;=0)if(e&lt;v(r)){m(t,r),t=r;continue}return t}}function _(){if(A&gt;0){var t=k[0];return m(0,A-1),A-=1,x(0),t}return-1}function w(t,e){var r=k[t];return c[r]===e?t:(c[r]=-1/0,b(t),_(),c[r]=e,b((A+=1)-1))}function T(t){if(!u[t]){u[t]=!0;var e=s[t],r=l[t];s[r]&gt;=0&amp;&amp;(s[r]=e),l[e]&gt;=0&amp;&amp;(l[e]=r),M[e]&gt;=0&amp;&amp;w(M[e],g(e)),M[r]&gt;=0&amp;&amp;w(M[r],g(r))}}var k=[],M=new Array(a);for(f=0;f&lt;a;++f){(c[f]=g(f))&lt;1/0?(M[f]=k.length,k.push(f)):M[f]=-1}var A=k.length;for(f=A&gt;&gt;1;f&gt;=0;--f)x(f);for(;;){var S=_();if(S&lt;0||c[S]&gt;r)break;T(S)}var E=[];for(f=0;f&lt;a;++f)u[f]||(M[f]=E.length,E.push(e[f].slice()));E.length;function C(t,e){if(t[e]&lt;0)return e;var r=e,n=e;do{var i=t[n];if(!u[n]||i&lt;0||i===n)break;if(i=t[n=i],!u[n]||i&lt;0||i===n)break;n=i,r=t[r]}while(r!==n);for(var a=e;a!==n;a=t[a])t[a]=n;return n}var L=[];return t.forEach((function(t){var e=C(s,t[0]),r=C(l,t[1]);if(e&gt;=0&amp;&amp;r&gt;=0&amp;&amp;e!==r){var n=M[e],i=M[r];n!==i&amp;&amp;L.push([n,i])}})),i.unique(i.normalize(L)),{positions:E,edges:L}};var n=t(&quot;robust-orientation&quot;),i=t(&quot;simplicial-complex&quot;)},{&quot;robust-orientation&quot;:548,&quot;simplicial-complex&quot;:560}],563:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,a,o,s;if(e[0][0]&lt;e[1][0])r=e[0],a=e[1];else{if(!(e[0][0]&gt;e[1][0]))return i(e,t);r=e[1],a=e[0]}if(t[0][0]&lt;t[1][0])o=t[0],s=t[1];else{if(!(t[0][0]&gt;t[1][0]))return-i(t,e);o=t[1],s=t[0]}var l=n(r,a,s),c=n(r,a,o);if(l&lt;0){if(c&lt;=0)return l}else if(l&gt;0){if(c&gt;=0)return l}else if(c)return c;if(l=n(s,o,a),c=n(s,o,r),l&lt;0){if(c&lt;=0)return l}else if(l&gt;0){if(c&gt;=0)return l}else if(c)return c;return a[0]-s[0]};var n=t(&quot;robust-orientation&quot;);function i(t,e){var r,i,a,o;if(e[0][0]&lt;e[1][0])r=e[0],i=e[1];else{if(!(e[0][0]&gt;e[1][0])){var s=Math.min(t[0][1],t[1][1]),l=Math.max(t[0][1],t[1][1]),c=Math.min(e[0][1],e[1][1]),u=Math.max(e[0][1],e[1][1]);return l&lt;c?l-c:s&gt;u?s-u:l-u}r=e[1],i=e[0]}t[0][1]&lt;t[1][1]?(a=t[0],o=t[1]):(a=t[1],o=t[0]);var f=n(i,r,a);return f||((f=n(i,r,o))||o-i)}},{&quot;robust-orientation&quot;:548}],564:[function(t,e,r){arguments[4][243][0].apply(r,arguments)},{dup:243}],565:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=2*e,n=new Array(r),a=0;a&lt;e;++a){var l=t[a],c=l[0][0]&lt;l[1][0];n[2*a]=new f(l[0][0],l,c,a),n[2*a+1]=new f(l[1][0],l,!c,a)}n.sort((function(t,e){var r=t.x-e.x;return r||((r=t.create-e.create)||Math.min(t.segment[0][1],t.segment[1][1])-Math.min(e.segment[0][1],e.segment[1][1]))}));var h=i(o),p=[],d=[],g=[];for(a=0;a&lt;r;){for(var m=n[a].x,v=[];a&lt;r;){var y=n[a];if(y.x!==m)break;a+=1,y.segment[0][0]===y.x&amp;&amp;y.segment[1][0]===y.x?y.create&amp;&amp;(y.segment[0][1]&lt;y.segment[1][1]?(v.push(new u(y.segment[0][1],y.index,!0,!0)),v.push(new u(y.segment[1][1],y.index,!1,!1))):(v.push(new u(y.segment[1][1],y.index,!0,!1)),v.push(new u(y.segment[0][1],y.index,!1,!0)))):h=y.create?h.insert(y.segment,y.index):h.remove(y.segment)}p.push(h.root),d.push(m),g.push(v)}return new s(p,d,g)};var n=t(&quot;binary-search-bounds&quot;),i=t(&quot;functional-red-black-tree&quot;),a=t(&quot;robust-orientation&quot;),o=t(&quot;./lib/order-segments&quot;);function s(t,e,r){this.slabs=t,this.coordinates=e,this.horizontal=r}function l(t,e){return t.y-e}function c(t,e){for(var r=null;t;){var n,i,o=t.key;o[0][0]&lt;o[1][0]?(n=o[0],i=o[1]):(n=o[1],i=o[0]);var s=a(n,i,e);if(s&lt;0)t=t.left;else if(s&gt;0)if(e[0]!==o[1][0])r=t,t=t.right;else{if(l=c(t.right,e))return l;t=t.left}else{if(e[0]!==o[1][0])return t;var l;if(l=c(t.right,e))return l;t=t.left}}return r}function u(t,e,r,n){this.y=t,this.index=e,this.start=r,this.closed=n}function f(t,e,r,n){this.x=t,this.segment=e,this.create=r,this.index=n}s.prototype.castUp=function(t){var e=n.le(this.coordinates,t[0]);if(e&lt;0)return-1;this.slabs[e];var r=c(this.slabs[e],t),i=-1;if(r&amp;&amp;(i=r.value),this.coordinates[e]===t[0]){var s=null;if(r&amp;&amp;(s=r.key),e&gt;0){var u=c(this.slabs[e-1],t);u&amp;&amp;(s?o(u.key,s)&gt;0&amp;&amp;(s=u.key,i=u.value):(i=u.value,s=u.key))}var f=this.horizontal[e];if(f.length&gt;0){var h=n.ge(f,t[1],l);if(h&lt;f.length){var p=f[h];if(t[1]===p.y){if(p.closed)return p.index;for(;h&lt;f.length-1&amp;&amp;f[h+1].y===t[1];)if((p=f[h+=1]).closed)return p.index;if(p.y===t[1]&amp;&amp;!p.start){if((h+=1)&gt;=f.length)return i;p=f[h]}}if(p.start)if(s){var d=a(s[0],s[1],[t[0],p.y]);s[0][0]&gt;s[1][0]&amp;&amp;(d=-d),d&gt;0&amp;&amp;(i=p.index)}else i=p.index;else p.y!==t[1]&amp;&amp;(i=p.index)}}}return i}},{&quot;./lib/order-segments&quot;:563,&quot;binary-search-bounds&quot;:564,&quot;functional-red-black-tree&quot;:247,&quot;robust-orientation&quot;:548}],566:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;robust-dot-product&quot;),i=t(&quot;robust-sum&quot;);function a(t,e){var r=i(n(t,e),[e[e.length-1]]);return r[r.length-1]}function o(t,e,r,n){var i=-e/(n-e);i&lt;0?i=0:i&gt;1&amp;&amp;(i=1);for(var a=1-i,o=t.length,s=new Array(o),l=0;l&lt;o;++l)s[l]=i*t[l]+a*r[l];return s}e.exports=function(t,e){for(var r=[],n=[],i=a(t[t.length-1],e),s=t[t.length-1],l=t[0],c=0;c&lt;t.length;++c,s=l){var u=a(l=t[c],e);if(i&lt;0&amp;&amp;u&gt;0||i&gt;0&amp;&amp;u&lt;0){var f=o(s,u,l,i);r.push(f),n.push(f.slice())}u&lt;0?n.push(l.slice()):u&gt;0?r.push(l.slice()):(r.push(l.slice()),n.push(l.slice())),i=u}return{positive:r,negative:n}},e.exports.positive=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l&lt;t.length;++l,i=s){var c=a(s=t[l],e);(n&lt;0&amp;&amp;c&gt;0||n&gt;0&amp;&amp;c&lt;0)&amp;&amp;r.push(o(i,c,s,n)),c&gt;=0&amp;&amp;r.push(s.slice()),n=c}return r},e.exports.negative=function(t,e){for(var r=[],n=a(t[t.length-1],e),i=t[t.length-1],s=t[0],l=0;l&lt;t.length;++l,i=s){var c=a(s=t[l],e);(n&lt;0&amp;&amp;c&gt;0||n&gt;0&amp;&amp;c&lt;0)&amp;&amp;r.push(o(i,c,s,n)),c&lt;=0&amp;&amp;r.push(s.slice()),n=c}return r}},{&quot;robust-dot-product&quot;:545,&quot;robust-sum&quot;:553}],567:[function(t,e,r){!function(){&quot;use strict&quot;;var t={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[+-]/};function e(t){return i(o(t),arguments)}function n(t,r){return e.apply(null,[t].concat(r||[]))}function i(r,n){var i,a,o,s,l,c,u,f,h,p=1,d=r.length,g=&quot;&quot;;for(a=0;a&lt;d;a++)if(&quot;string&quot;==typeof r[a])g+=r[a];else if(&quot;object&quot;==typeof r[a]){if((s=r[a]).keys)for(i=n[p],o=0;o&lt;s.keys.length;o++){if(null==i)throw new Error(e('[sprintf] Cannot access property &quot;%s&quot; of undefined value &quot;%s&quot;',s.keys[o],s.keys[o-1]));i=i[s.keys[o]]}else i=s.param_no?n[s.param_no]:n[p++];if(t.not_type.test(s.type)&amp;&amp;t.not_primitive.test(s.type)&amp;&amp;i instanceof Function&amp;&amp;(i=i()),t.numeric_arg.test(s.type)&amp;&amp;&quot;number&quot;!=typeof i&amp;&amp;isNaN(i))throw new TypeError(e(&quot;[sprintf] expecting number but found %T&quot;,i));switch(t.number.test(s.type)&amp;&amp;(f=i&gt;=0),s.type){case&quot;b&quot;:i=parseInt(i,10).toString(2);break;case&quot;c&quot;:i=String.fromCharCode(parseInt(i,10));break;case&quot;d&quot;:case&quot;i&quot;:i=parseInt(i,10);break;case&quot;j&quot;:i=JSON.stringify(i,null,s.width?parseInt(s.width):0);break;case&quot;e&quot;:i=s.precision?parseFloat(i).toExponential(s.precision):parseFloat(i).toExponential();break;case&quot;f&quot;:i=s.precision?parseFloat(i).toFixed(s.precision):parseFloat(i);break;case&quot;g&quot;:i=s.precision?String(Number(i.toPrecision(s.precision))):parseFloat(i);break;case&quot;o&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(8);break;case&quot;s&quot;:i=String(i),i=s.precision?i.substring(0,s.precision):i;break;case&quot;t&quot;:i=String(!!i),i=s.precision?i.substring(0,s.precision):i;break;case&quot;T&quot;:i=Object.prototype.toString.call(i).slice(8,-1).toLowerCase(),i=s.precision?i.substring(0,s.precision):i;break;case&quot;u&quot;:i=parseInt(i,10)&gt;&gt;&gt;0;break;case&quot;v&quot;:i=i.valueOf(),i=s.precision?i.substring(0,s.precision):i;break;case&quot;x&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(16);break;case&quot;X&quot;:i=(parseInt(i,10)&gt;&gt;&gt;0).toString(16).toUpperCase()}t.json.test(s.type)?g+=i:(!t.number.test(s.type)||f&amp;&amp;!s.sign?h=&quot;&quot;:(h=f?&quot;+&quot;:&quot;-&quot;,i=i.toString().replace(t.sign,&quot;&quot;)),c=s.pad_char?&quot;0&quot;===s.pad_char?&quot;0&quot;:s.pad_char.charAt(1):&quot; &quot;,u=s.width-(h+i).length,l=s.width&amp;&amp;u&gt;0?c.repeat(u):&quot;&quot;,g+=s.align?h+i+l:&quot;0&quot;===c?h+l+i:l+h+i)}return g}var a=Object.create(null);function o(e){if(a[e])return a[e];for(var r,n=e,i=[],o=0;n;){if(null!==(r=t.text.exec(n)))i.push(r[0]);else if(null!==(r=t.modulo.exec(n)))i.push(&quot;%&quot;);else{if(null===(r=t.placeholder.exec(n)))throw new SyntaxError(&quot;[sprintf] unexpected placeholder&quot;);if(r[2]){o|=1;var s=[],l=r[2],c=[];if(null===(c=t.key.exec(l)))throw new SyntaxError(&quot;[sprintf] failed to parse named argument key&quot;);for(s.push(c[1]);&quot;&quot;!==(l=l.substring(c[0].length));)if(null!==(c=t.key_access.exec(l)))s.push(c[1]);else{if(null===(c=t.index_access.exec(l)))throw new SyntaxError(&quot;[sprintf] failed to parse named argument key&quot;);s.push(c[1])}r[2]=s}else o|=2;if(3===o)throw new Error(&quot;[sprintf] mixing positional and named placeholders is not (yet) supported&quot;);i.push({placeholder:r[0],param_no:r[1],keys:r[2],sign:r[3],pad_char:r[4],align:r[5],width:r[6],precision:r[7],type:r[8]})}n=n.substring(r[0].length)}return a[e]=i}&quot;undefined&quot;!=typeof r&amp;&amp;(r.sprintf=e,r.vsprintf=n),&quot;undefined&quot;!=typeof window&amp;&amp;(window.sprintf=e,window.vsprintf=n)}()},{}],568:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parenthesis&quot;);e.exports=function(t,e,r){if(null==t)throw Error(&quot;First argument should be a string&quot;);if(null==e)throw Error(&quot;Separator should be a string or a RegExp&quot;);r?(&quot;string&quot;==typeof r||Array.isArray(r))&amp;&amp;(r={ignore:r}):r={},null==r.escape&amp;&amp;(r.escape=!0),null==r.ignore?r.ignore=[&quot;[]&quot;,&quot;()&quot;,&quot;{}&quot;,&quot;&lt;&gt;&quot;,'&quot;&quot;',&quot;''&quot;,&quot;``&quot;,&quot;\u201c\u201d&quot;,&quot;\xab\xbb&quot;]:(&quot;string&quot;==typeof r.ignore&amp;&amp;(r.ignore=[r.ignore]),r.ignore=r.ignore.map((function(t){return 1===t.length&amp;&amp;(t+=t),t})));var i=n.parse(t,{flat:!0,brackets:r.ignore}),a=i[0].split(e);if(r.escape){for(var o=[],s=0;s&lt;a.length;s++){var l=a[s],c=a[s+1];&quot;\\&quot;===l[l.length-1]&amp;&amp;&quot;\\&quot;!==l[l.length-2]?(o.push(l+e+c),s++):o.push(l)}a=o}for(s=0;s&lt;a.length;s++)i[0]=a[s],a[s]=n.stringify(i,{flat:!0});return a}},{parenthesis:503}],569:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.length,r=new Array(e),n=new Array(e),i=new Array(e),a=new Array(e),o=new Array(e),s=new Array(e),l=0;l&lt;e;++l)r[l]=-1,n[l]=0,i[l]=!1,a[l]=0,o[l]=-1,s[l]=[];var c,u=0,f=[],h=[];function p(e){var l=[e],c=[e];for(r[e]=n[e]=u,i[e]=!0,u+=1;c.length&gt;0;){e=c[c.length-1];var p=t[e];if(a[e]&lt;p.length){for(var d=a[e];d&lt;p.length;++d){var g=p[d];if(r[g]&lt;0){r[g]=n[g]=u,i[g]=!0,u+=1,l.push(g),c.push(g);break}i[g]&amp;&amp;(n[e]=0|Math.min(n[e],n[g])),o[g]&gt;=0&amp;&amp;s[e].push(o[g])}a[e]=d}else{if(n[e]===r[e]){var m=[],v=[],y=0;for(d=l.length-1;d&gt;=0;--d){var x=l[d];if(i[x]=!1,m.push(x),v.push(s[x]),y+=s[x].length,o[x]=f.length,x===e){l.length=d;break}}f.push(m);var b=new Array(y);for(d=0;d&lt;v.length;d++)for(var _=0;_&lt;v[d].length;_++)b[--y]=v[d][_];h.push(b)}c.pop()}}}for(l=0;l&lt;e;++l)r[l]&lt;0&amp;&amp;p(l);for(l=0;l&lt;h.length;l++){var d=h[l];if(0!==d.length){d.sort((function(t,e){return t-e})),c=[d[0]];for(var g=1;g&lt;d.length;g++)d[g]!==d[g-1]&amp;&amp;c.push(d[g]);h[l]=c}}return{components:f,adjacencyList:h}}},{}],570:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(t.dimension&lt;=0)return{positions:[],cells:[]};if(1===t.dimension)return function(t,e){for(var r=a(t,e),n=r.length,i=new Array(n),o=new Array(n),s=0;s&lt;n;++s)i[s]=[r[s]],o[s]=[s];return{positions:i,cells:o}}(t,e);var r=t.order.join()+&quot;-&quot;+t.dtype,s=o[r];e=+e||0;s||(s=o[r]=function(t,e){var r=t.length,a=[&quot;'use strict';&quot;],o=&quot;surfaceNets&quot;+t.join(&quot;_&quot;)+&quot;d&quot;+e;a.push(&quot;var contour=genContour({&quot;,&quot;order:[&quot;,t.join(),&quot;],&quot;,&quot;scalarArguments: 3,&quot;,&quot;phase:function phaseFunc(p,a,b,c) { return (p &gt; c)|0 },&quot;),&quot;generic&quot;===e&amp;&amp;a.push(&quot;getters:[0],&quot;);for(var s=[],l=[],c=0;c&lt;r;++c)s.push(&quot;d&quot;+c),l.push(&quot;d&quot;+c);for(c=0;c&lt;1&lt;&lt;r;++c)s.push(&quot;v&quot;+c),l.push(&quot;v&quot;+c);for(c=0;c&lt;1&lt;&lt;r;++c)s.push(&quot;p&quot;+c),l.push(&quot;p&quot;+c);s.push(&quot;a&quot;,&quot;b&quot;,&quot;c&quot;),l.push(&quot;a&quot;,&quot;c&quot;),a.push(&quot;vertex:function vertexFunc(&quot;,s.join(),&quot;){&quot;);var u=[];for(c=0;c&lt;1&lt;&lt;r;++c)u.push(&quot;(p&quot;+c+&quot;&lt;&lt;&quot;+c+&quot;)&quot;);a.push(&quot;var m=(&quot;,u.join(&quot;+&quot;),&quot;)|0;if(m===0||m===&quot;,(1&lt;&lt;(1&lt;&lt;r))-1,&quot;){return}&quot;);var f=[],h=[];1&lt;&lt;(1&lt;&lt;r)&lt;=128?(a.push(&quot;switch(m){&quot;),h=a):a.push(&quot;switch(m&gt;&gt;&gt;7){&quot;);for(c=0;c&lt;1&lt;&lt;(1&lt;&lt;r);++c){if(1&lt;&lt;(1&lt;&lt;r)&gt;128&amp;&amp;c%128==0){f.length&gt;0&amp;&amp;h.push(&quot;}}&quot;);var p=&quot;vExtra&quot;+f.length;a.push(&quot;case &quot;,c&gt;&gt;&gt;7,&quot;:&quot;,p,&quot;(m&amp;0x7f,&quot;,l.join(),&quot;);break;&quot;),h=[&quot;function &quot;,p,&quot;(m,&quot;,l.join(),&quot;){switch(m){&quot;],f.push(h)}h.push(&quot;case &quot;,127&amp;c,&quot;:&quot;);for(var d=new Array(r),g=new Array(r),m=new Array(r),v=new Array(r),y=0,x=0;x&lt;r;++x)d[x]=[],g[x]=[],m[x]=0,v[x]=0;for(x=0;x&lt;1&lt;&lt;r;++x)for(var b=0;b&lt;r;++b){var _=x^1&lt;&lt;b;if(!(_&gt;x)&amp;&amp;!(c&amp;1&lt;&lt;_)!=!(c&amp;1&lt;&lt;x)){var w=1;c&amp;1&lt;&lt;_?g[b].push(&quot;v&quot;+_+&quot;-v&quot;+x):(g[b].push(&quot;v&quot;+x+&quot;-v&quot;+_),w=-w),w&lt;0?(d[b].push(&quot;-v&quot;+x+&quot;-v&quot;+_),m[b]+=2):(d[b].push(&quot;v&quot;+x+&quot;+v&quot;+_),m[b]-=2),y+=1;for(var T=0;T&lt;r;++T)T!==b&amp;&amp;(_&amp;1&lt;&lt;T?v[T]+=1:v[T]-=1)}}var k=[];for(b=0;b&lt;r;++b)if(0===d[b].length)k.push(&quot;d&quot;+b+&quot;-0.5&quot;);else{var M=&quot;&quot;;m[b]&lt;0?M=m[b]+&quot;*c&quot;:m[b]&gt;0&amp;&amp;(M=&quot;+&quot;+m[b]+&quot;*c&quot;);var A=d[b].length/y*.5,S=.5+v[b]/y*.5;k.push(&quot;d&quot;+b+&quot;-&quot;+S+&quot;-&quot;+A+&quot;*(&quot;+d[b].join(&quot;+&quot;)+M+&quot;)/(&quot;+g[b].join(&quot;+&quot;)+&quot;)&quot;)}h.push(&quot;a.push([&quot;,k.join(),&quot;]);&quot;,&quot;break;&quot;)}a.push(&quot;}},&quot;),f.length&gt;0&amp;&amp;h.push(&quot;}}&quot;);var E=[];for(c=0;c&lt;1&lt;&lt;r-1;++c)E.push(&quot;v&quot;+c);E.push(&quot;c0&quot;,&quot;c1&quot;,&quot;p0&quot;,&quot;p1&quot;,&quot;a&quot;,&quot;b&quot;,&quot;c&quot;),a.push(&quot;cell:function cellFunc(&quot;,E.join(),&quot;){&quot;);var C=i(r-1);a.push(&quot;if(p0){b.push(&quot;,C.map((function(t){return&quot;[&quot;+t.map((function(t){return&quot;v&quot;+t}))+&quot;]&quot;})).join(),&quot;)}else{b.push(&quot;,C.map((function(t){var e=t.slice();return e.reverse(),&quot;[&quot;+e.map((function(t){return&quot;v&quot;+t}))+&quot;]&quot;})).join(),&quot;)}}});function &quot;,o,&quot;(array,level){var verts=[],cells=[];contour(array,verts,cells,level);return {positions:verts,cells:cells};} return &quot;,o,&quot;;&quot;);for(c=0;c&lt;f.length;++c)a.push(f[c].join(&quot;&quot;));return new Function(&quot;genContour&quot;,a.join(&quot;&quot;))(n)}(t.order,t.dtype));return s(t,e)};var n=t(&quot;ndarray-extract-contour&quot;),i=t(&quot;triangulate-hypercube&quot;),a=t(&quot;zero-crossings&quot;);var o={}},{&quot;ndarray-extract-contour&quot;:487,&quot;triangulate-hypercube&quot;:580,&quot;zero-crossings&quot;:624}],571:[function(t,e,r){&quot;use strict&quot;;Object.defineProperty(r,&quot;__esModule&quot;,{value:!0});var n=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&amp;&amp;(r.push(o.value),!e||r.length!==e);n=!0);}catch(t){i=!0,a=t}finally{try{!n&amp;&amp;s.return&amp;&amp;s.return()}finally{if(i)throw a}}return r}(t,e);throw new TypeError(&quot;Invalid attempt to destructure non-iterable instance&quot;)},i=2*Math.PI,a=function(t,e,r,n,i,a,o){var s=t.x,l=t.y;return{x:n*(s*=e)-i*(l*=r)+a,y:i*s+n*l+o}},o=function(t,e){var r=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),n=Math.cos(t),i=Math.sin(t),a=Math.cos(t+e),o=Math.sin(t+e);return[{x:n-i*r,y:i+n*r},{x:a+o*r,y:o-a*r},{x:a,y:o}]},s=function(t,e,r,n){var i=t*r+e*n;return i&gt;1&amp;&amp;(i=1),i&lt;-1&amp;&amp;(i=-1),(t*n-e*r&lt;0?-1:1)*Math.acos(i)};r.default=function(t){var e=t.px,r=t.py,l=t.cx,c=t.cy,u=t.rx,f=t.ry,h=t.xAxisRotation,p=void 0===h?0:h,d=t.largeArcFlag,g=void 0===d?0:d,m=t.sweepFlag,v=void 0===m?0:m,y=[];if(0===u||0===f)return[];var x=Math.sin(p*i/360),b=Math.cos(p*i/360),_=b*(e-l)/2+x*(r-c)/2,w=-x*(e-l)/2+b*(r-c)/2;if(0===_&amp;&amp;0===w)return[];u=Math.abs(u),f=Math.abs(f);var T=Math.pow(_,2)/Math.pow(u,2)+Math.pow(w,2)/Math.pow(f,2);T&gt;1&amp;&amp;(u*=Math.sqrt(T),f*=Math.sqrt(T));var k=function(t,e,r,n,a,o,l,c,u,f,h,p){var d=Math.pow(a,2),g=Math.pow(o,2),m=Math.pow(h,2),v=Math.pow(p,2),y=d*g-d*v-g*m;y&lt;0&amp;&amp;(y=0),y/=d*v+g*m;var x=(y=Math.sqrt(y)*(l===c?-1:1))*a/o*p,b=y*-o/a*h,_=f*x-u*b+(t+r)/2,w=u*x+f*b+(e+n)/2,T=(h-x)/a,k=(p-b)/o,M=(-h-x)/a,A=(-p-b)/o,S=s(1,0,T,k),E=s(T,k,M,A);return 0===c&amp;&amp;E&gt;0&amp;&amp;(E-=i),1===c&amp;&amp;E&lt;0&amp;&amp;(E+=i),[_,w,S,E]}(e,r,l,c,u,f,g,v,x,b,_,w),M=n(k,4),A=M[0],S=M[1],E=M[2],C=M[3],L=Math.abs(C)/(i/4);Math.abs(1-L)&lt;1e-7&amp;&amp;(L=1);var I=Math.max(Math.ceil(L),1);C/=I;for(var P=0;P&lt;I;P++)y.push(o(E,C)),E+=C;return y.map((function(t){var e=a(t[0],u,f,b,x,A,S),r=e.x,n=e.y,i=a(t[1],u,f,b,x,A,S),o=i.x,s=i.y,l=a(t[2],u,f,b,x,A,S);return{x1:r,y1:n,x2:o,y2:s,x:l.x,y:l.y}}))},e.exports=r.default},{}],572:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-svg-path&quot;),i=t(&quot;abs-svg-path&quot;),a=t(&quot;normalize-svg-path&quot;),o=t(&quot;is-svg-path&quot;),s=t(&quot;assert&quot;);e.exports=function(t){Array.isArray(t)&amp;&amp;1===t.length&amp;&amp;&quot;string&quot;==typeof t[0]&amp;&amp;(t=t[0]);&quot;string&quot;==typeof t&amp;&amp;(s(o(t),&quot;String is not an SVG path.&quot;),t=n(t));if(s(Array.isArray(t),&quot;Argument should be a string or an array of path segments.&quot;),t=i(t),!(t=a(t)).length)return[0,0,0,0];for(var e=[1/0,1/0,-1/0,-1/0],r=0,l=t.length;r&lt;l;r++)for(var c=t[r].slice(1),u=0;u&lt;c.length;u+=2)c[u+0]&lt;e[0]&amp;&amp;(e[0]=c[u+0]),c[u+1]&lt;e[1]&amp;&amp;(e[1]=c[u+1]),c[u+0]&gt;e[2]&amp;&amp;(e[2]=c[u+0]),c[u+1]&gt;e[3]&amp;&amp;(e[3]=c[u+1]);return e}},{&quot;abs-svg-path&quot;:65,assert:73,&quot;is-svg-path&quot;:471,&quot;normalize-svg-path&quot;:573,&quot;parse-svg-path&quot;:505}],573:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e,r=[],o=0,s=0,l=0,c=0,u=null,f=null,h=0,p=0,d=0,g=t.length;d&lt;g;d++){var m=t[d],v=m[0];switch(v){case&quot;M&quot;:l=m[1],c=m[2];break;case&quot;A&quot;:var y=n({px:h,py:p,cx:m[6],cy:m[7],rx:m[1],ry:m[2],xAxisRotation:m[3],largeArcFlag:m[4],sweepFlag:m[5]});if(!y.length)continue;for(var x,b=0;b&lt;y.length;b++)x=y[b],m=[&quot;C&quot;,x.x1,x.y1,x.x2,x.y2,x.x,x.y],b&lt;y.length-1&amp;&amp;r.push(m);break;case&quot;S&quot;:var _=h,w=p;&quot;C&quot;!=e&amp;&amp;&quot;S&quot;!=e||(_+=_-o,w+=w-s),m=[&quot;C&quot;,_,w,m[1],m[2],m[3],m[4]];break;case&quot;T&quot;:&quot;Q&quot;==e||&quot;T&quot;==e?(u=2*h-u,f=2*p-f):(u=h,f=p),m=a(h,p,u,f,m[1],m[2]);break;case&quot;Q&quot;:u=m[1],f=m[2],m=a(h,p,m[1],m[2],m[3],m[4]);break;case&quot;L&quot;:m=i(h,p,m[1],m[2]);break;case&quot;H&quot;:m=i(h,p,m[1],p);break;case&quot;V&quot;:m=i(h,p,h,m[1]);break;case&quot;Z&quot;:m=i(h,p,l,c)}e=v,h=m[m.length-2],p=m[m.length-1],m.length&gt;4?(o=m[m.length-4],s=m[m.length-3]):(o=h,s=p),r.push(m)}return r};var n=t(&quot;svg-arc-to-cubic-bezier&quot;);function i(t,e,r,n){return[&quot;C&quot;,t,e,r,n,r,n]}function a(t,e,r,n,i,a){return[&quot;C&quot;,t/3+2/3*r,e/3+2/3*n,i/3+2/3*r,a/3+2/3*n,i,a]}},{&quot;svg-arc-to-cubic-bezier&quot;:571}],574:[function(t,e,r){&quot;use strict&quot;;var n,i=t(&quot;svg-path-bounds&quot;),a=t(&quot;parse-svg-path&quot;),o=t(&quot;draw-svg-path&quot;),s=t(&quot;is-svg-path&quot;),l=t(&quot;bitmap-sdf&quot;),c=document.createElement(&quot;canvas&quot;),u=c.getContext(&quot;2d&quot;);e.exports=function(t,e){if(!s(t))throw Error(&quot;Argument should be valid svg path string&quot;);e||(e={});var r,f;e.shape?(r=e.shape[0],f=e.shape[1]):(r=c.width=e.w||e.width||200,f=c.height=e.h||e.height||200);var h=Math.min(r,f),p=e.stroke||0,d=e.viewbox||e.viewBox||i(t),g=[r/(d[2]-d[0]),f/(d[3]-d[1])],m=Math.min(g[0]||0,g[1]||0)/2;u.fillStyle=&quot;black&quot;,u.fillRect(0,0,r,f),u.fillStyle=&quot;white&quot;,p&amp;&amp;(&quot;number&quot;!=typeof p&amp;&amp;(p=1),u.strokeStyle=p&gt;0?&quot;white&quot;:&quot;black&quot;,u.lineWidth=Math.abs(p));if(u.translate(.5*r,.5*f),u.scale(m,m),function(){if(null!=n)return n;var t=document.createElement(&quot;canvas&quot;).getContext(&quot;2d&quot;);if(t.canvas.width=t.canvas.height=1,!window.Path2D)return n=!1;var e=new Path2D(&quot;M0,0h1v1h-1v-1Z&quot;);t.fillStyle=&quot;black&quot;,t.fill(e);var r=t.getImageData(0,0,1,1);return n=r&amp;&amp;r.data&amp;&amp;255===r.data[3]}()){var v=new Path2D(t);u.fill(v),p&amp;&amp;u.stroke(v)}else{var y=a(t);o(u,y),u.fill(),p&amp;&amp;u.stroke()}return u.setTransform(1,0,0,1,0,0),l(u,{cutoff:null!=e.cutoff?e.cutoff:.5,radius:null!=e.radius?e.radius:.5*h})}},{&quot;bitmap-sdf&quot;:98,&quot;draw-svg-path&quot;:174,&quot;is-svg-path&quot;:471,&quot;parse-svg-path&quot;:505,&quot;svg-path-bounds&quot;:572}],575:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;e.exports=function t(e,r,i){i=i||{};var o=a[e];o||(o=a[e]={&quot; &quot;:{data:new Float32Array(0),shape:.2}});var s=o[r];if(!s)if(r.length&lt;=1||!/\d/.test(r))s=o[r]=function(t){for(var e=t.cells,r=t.positions,n=new Float32Array(6*e.length),i=0,a=0,o=0;o&lt;e.length;++o)for(var s=e[o],l=0;l&lt;3;++l){var c=r[s[l]];n[i++]=c[0],n[i++]=c[1]+1.4,a=Math.max(c[0],a)}return{data:n,shape:a}}(n(r,{triangles:!0,font:e,textAlign:i.textAlign||&quot;left&quot;,textBaseline:&quot;alphabetic&quot;,styletags:{breaklines:!0,bolds:!0,italics:!0,subscripts:!0,superscripts:!0}}));else{for(var l=r.split(/(\d|\s)/),c=new Array(l.length),u=0,f=0,h=0;h&lt;l.length;++h)c[h]=t(e,l[h]),u+=c[h].data.length,f+=c[h].shape,h&gt;0&amp;&amp;(f+=.02);var p=new Float32Array(u),d=0,g=-.5*f;for(h=0;h&lt;c.length;++h){for(var m=c[h].data,v=0;v&lt;m.length;v+=2)p[d++]=m[v]+g,p[d++]=m[v+1];g+=c[h].shape+.02}s=o[r]={data:p,shape:f}}return s};var n=t(&quot;vectorize-text&quot;),i=window||r.global||{},a=i.__TEXT_CACHE||{};i.__TEXT_CACHE={}}).call(this)}).call(this,t(&quot;_process&quot;))},{_process:526,&quot;vectorize-text&quot;:600}],576:[function(t,e,r){!function(t){var r=/^\s+/,n=/\s+$/,i=0,a=t.round,o=t.min,s=t.max,l=t.random;function c(e,l){if(l=l||{},(e=e||&quot;&quot;)instanceof c)return e;if(!(this instanceof c))return new c(e,l);var u=function(e){var i={r:0,g:0,b:0},a=1,l=null,c=null,u=null,f=!1,h=!1;&quot;string&quot;==typeof e&amp;&amp;(e=function(t){t=t.replace(r,&quot;&quot;).replace(n,&quot;&quot;).toLowerCase();var e,i=!1;if(S[t])t=S[t],i=!0;else if(&quot;transparent&quot;==t)return{r:0,g:0,b:0,a:0,format:&quot;name&quot;};if(e=j.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=j.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=j.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=j.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=j.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=j.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=j.hex8.exec(t))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),a:R(e[4]),format:i?&quot;name&quot;:&quot;hex8&quot;};if(e=j.hex6.exec(t))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),format:i?&quot;name&quot;:&quot;hex&quot;};if(e=j.hex4.exec(t))return{r:P(e[1]+&quot;&quot;+e[1]),g:P(e[2]+&quot;&quot;+e[2]),b:P(e[3]+&quot;&quot;+e[3]),a:R(e[4]+&quot;&quot;+e[4]),format:i?&quot;name&quot;:&quot;hex8&quot;};if(e=j.hex3.exec(t))return{r:P(e[1]+&quot;&quot;+e[1]),g:P(e[2]+&quot;&quot;+e[2]),b:P(e[3]+&quot;&quot;+e[3]),format:i?&quot;name&quot;:&quot;hex&quot;};return!1}(e));&quot;object&quot;==typeof e&amp;&amp;(U(e.r)&amp;&amp;U(e.g)&amp;&amp;U(e.b)?(p=e.r,d=e.g,g=e.b,i={r:255*L(p,255),g:255*L(d,255),b:255*L(g,255)},f=!0,h=&quot;%&quot;===String(e.r).substr(-1)?&quot;prgb&quot;:&quot;rgb&quot;):U(e.h)&amp;&amp;U(e.s)&amp;&amp;U(e.v)?(l=O(e.s),c=O(e.v),i=function(e,r,n){e=6*L(e,360),r=L(r,100),n=L(n,100);var i=t.floor(e),a=e-i,o=n*(1-r),s=n*(1-a*r),l=n*(1-(1-a)*r),c=i%6;return{r:255*[n,s,o,o,l,n][c],g:255*[l,n,n,s,o,o][c],b:255*[o,o,l,n,n,s][c]}}(e.h,l,c),f=!0,h=&quot;hsv&quot;):U(e.h)&amp;&amp;U(e.s)&amp;&amp;U(e.l)&amp;&amp;(l=O(e.s),u=O(e.l),i=function(t,e,r){var n,i,a;function o(t,e,r){return r&lt;0&amp;&amp;(r+=1),r&gt;1&amp;&amp;(r-=1),r&lt;1/6?t+6*(e-t)*r:r&lt;.5?e:r&lt;2/3?t+(e-t)*(2/3-r)*6:t}if(t=L(t,360),e=L(e,100),r=L(r,100),0===e)n=i=a=r;else{var s=r&lt;.5?r*(1+e):r+e-r*e,l=2*r-s;n=o(l,s,t+1/3),i=o(l,s,t),a=o(l,s,t-1/3)}return{r:255*n,g:255*i,b:255*a}}(e.h,l,u),f=!0,h=&quot;hsl&quot;),e.hasOwnProperty(&quot;a&quot;)&amp;&amp;(a=e.a));var p,d,g;return a=C(a),{ok:f,format:e.format||h,r:o(255,s(i.r,0)),g:o(255,s(i.g,0)),b:o(255,s(i.b,0)),a:a}}(e);this._originalInput=e,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=a(100*this._a)/100,this._format=l.format||u.format,this._gradientType=l.gradientType,this._r&lt;1&amp;&amp;(this._r=a(this._r)),this._g&lt;1&amp;&amp;(this._g=a(this._g)),this._b&lt;1&amp;&amp;(this._b=a(this._b)),this._ok=u.ok,this._tc_id=i++}function u(t,e,r){t=L(t,255),e=L(e,255),r=L(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=(a+l)/2;if(a==l)n=i=0;else{var u=a-l;switch(i=c&gt;.5?u/(2-a-l):u/(a+l),a){case t:n=(e-r)/u+(e&lt;r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,l:c}}function f(t,e,r){t=L(t,255),e=L(e,255),r=L(r,255);var n,i,a=s(t,e,r),l=o(t,e,r),c=a,u=a-l;if(i=0===a?0:u/a,a==l)n=0;else{switch(a){case t:n=(e-r)/u+(e&lt;r?6:0);break;case e:n=(r-t)/u+2;break;case r:n=(t-e)/u+4}n/=6}return{h:n,s:i,v:c}}function h(t,e,r,n){var i=[z(a(t).toString(16)),z(a(e).toString(16)),z(a(r).toString(16))];return n&amp;&amp;i[0].charAt(0)==i[0].charAt(1)&amp;&amp;i[1].charAt(0)==i[1].charAt(1)&amp;&amp;i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(&quot;&quot;)}function p(t,e,r,n){return[z(D(n)),z(a(t).toString(16)),z(a(e).toString(16)),z(a(r).toString(16))].join(&quot;&quot;)}function d(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s-=e/100,r.s=I(r.s),c(r)}function g(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.s+=e/100,r.s=I(r.s),c(r)}function m(t){return c(t).desaturate(100)}function v(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l+=e/100,r.l=I(r.l),c(r)}function y(t,e){e=0===e?0:e||10;var r=c(t).toRgb();return r.r=s(0,o(255,r.r-a(-e/100*255))),r.g=s(0,o(255,r.g-a(-e/100*255))),r.b=s(0,o(255,r.b-a(-e/100*255))),c(r)}function x(t,e){e=0===e?0:e||10;var r=c(t).toHsl();return r.l-=e/100,r.l=I(r.l),c(r)}function b(t,e){var r=c(t).toHsl(),n=(r.h+e)%360;return r.h=n&lt;0?360+n:n,c(r)}function _(t){var e=c(t).toHsl();return e.h=(e.h+180)%360,c(e)}function w(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+120)%360,s:e.s,l:e.l}),c({h:(r+240)%360,s:e.s,l:e.l})]}function T(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+90)%360,s:e.s,l:e.l}),c({h:(r+180)%360,s:e.s,l:e.l}),c({h:(r+270)%360,s:e.s,l:e.l})]}function k(t){var e=c(t).toHsl(),r=e.h;return[c(t),c({h:(r+72)%360,s:e.s,l:e.l}),c({h:(r+216)%360,s:e.s,l:e.l})]}function M(t,e,r){e=e||6,r=r||30;var n=c(t).toHsl(),i=360/r,a=[c(t)];for(n.h=(n.h-(i*e&gt;&gt;1)+720)%360;--e;)n.h=(n.h+i)%360,a.push(c(n));return a}function A(t,e){e=e||6;for(var r=c(t).toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/e;e--;)o.push(c({h:n,s:i,v:a})),a=(a+s)%1;return o}c.prototype={isDark:function(){return this.getBrightness()&lt;128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var e,r,n,i=this.toRgb();return e=i.r/255,r=i.g/255,n=i.b/255,.2126*(e&lt;=.03928?e/12.92:t.pow((e+.055)/1.055,2.4))+.7152*(r&lt;=.03928?r/12.92:t.pow((r+.055)/1.055,2.4))+.0722*(n&lt;=.03928?n/12.92:t.pow((n+.055)/1.055,2.4))},setAlpha:function(t){return this._a=C(t),this._roundA=a(100*this._a)/100,this},toHsv:function(){var t=f(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=f(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.v);return 1==this._a?&quot;hsv(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%)&quot;:&quot;hsva(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%, &quot;+this._roundA+&quot;)&quot;},toHsl:function(){var t=u(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=u(this._r,this._g,this._b),e=a(360*t.h),r=a(100*t.s),n=a(100*t.l);return 1==this._a?&quot;hsl(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%)&quot;:&quot;hsla(&quot;+e+&quot;, &quot;+r+&quot;%, &quot;+n+&quot;%, &quot;+this._roundA+&quot;)&quot;},toHex:function(t){return h(this._r,this._g,this._b,t)},toHexString:function(t){return&quot;#&quot;+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[z(a(t).toString(16)),z(a(e).toString(16)),z(a(r).toString(16)),z(D(n))];if(i&amp;&amp;o[0].charAt(0)==o[0].charAt(1)&amp;&amp;o[1].charAt(0)==o[1].charAt(1)&amp;&amp;o[2].charAt(0)==o[2].charAt(1)&amp;&amp;o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join(&quot;&quot;)}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return&quot;#&quot;+this.toHex8(t)},toRgb:function(){return{r:a(this._r),g:a(this._g),b:a(this._b),a:this._a}},toRgbString:function(){return 1==this._a?&quot;rgb(&quot;+a(this._r)+&quot;, &quot;+a(this._g)+&quot;, &quot;+a(this._b)+&quot;)&quot;:&quot;rgba(&quot;+a(this._r)+&quot;, &quot;+a(this._g)+&quot;, &quot;+a(this._b)+&quot;, &quot;+this._roundA+&quot;)&quot;},toPercentageRgb:function(){return{r:a(100*L(this._r,255))+&quot;%&quot;,g:a(100*L(this._g,255))+&quot;%&quot;,b:a(100*L(this._b,255))+&quot;%&quot;,a:this._a}},toPercentageRgbString:function(){return 1==this._a?&quot;rgb(&quot;+a(100*L(this._r,255))+&quot;%, &quot;+a(100*L(this._g,255))+&quot;%, &quot;+a(100*L(this._b,255))+&quot;%)&quot;:&quot;rgba(&quot;+a(100*L(this._r,255))+&quot;%, &quot;+a(100*L(this._g,255))+&quot;%, &quot;+a(100*L(this._b,255))+&quot;%, &quot;+this._roundA+&quot;)&quot;},toName:function(){return 0===this._a?&quot;transparent&quot;:!(this._a&lt;1)&amp;&amp;(E[h(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e=&quot;#&quot;+p(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?&quot;GradientType = 1, &quot;:&quot;&quot;;if(t){var i=c(t);r=&quot;#&quot;+p(i._r,i._g,i._b,i._a)}return&quot;progid:DXImageTransform.Microsoft.gradient(&quot;+n+&quot;startColorstr=&quot;+e+&quot;,endColorstr=&quot;+r+&quot;)&quot;},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a&lt;1&amp;&amp;this._a&gt;=0;return e||!n||&quot;hex&quot;!==t&amp;&amp;&quot;hex6&quot;!==t&amp;&amp;&quot;hex3&quot;!==t&amp;&amp;&quot;hex4&quot;!==t&amp;&amp;&quot;hex8&quot;!==t&amp;&amp;&quot;name&quot;!==t?(&quot;rgb&quot;===t&amp;&amp;(r=this.toRgbString()),&quot;prgb&quot;===t&amp;&amp;(r=this.toPercentageRgbString()),&quot;hex&quot;!==t&amp;&amp;&quot;hex6&quot;!==t||(r=this.toHexString()),&quot;hex3&quot;===t&amp;&amp;(r=this.toHexString(!0)),&quot;hex4&quot;===t&amp;&amp;(r=this.toHex8String(!0)),&quot;hex8&quot;===t&amp;&amp;(r=this.toHex8String()),&quot;name&quot;===t&amp;&amp;(r=this.toName()),&quot;hsl&quot;===t&amp;&amp;(r=this.toHslString()),&quot;hsv&quot;===t&amp;&amp;(r=this.toHsvString()),r||this.toHexString()):&quot;name&quot;===t&amp;&amp;0===this._a?this.toName():this.toRgbString()},clone:function(){return c(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(v,arguments)},brighten:function(){return this._applyModification(y,arguments)},darken:function(){return this._applyModification(x,arguments)},desaturate:function(){return this._applyModification(d,arguments)},saturate:function(){return this._applyModification(g,arguments)},greyscale:function(){return this._applyModification(m,arguments)},spin:function(){return this._applyModification(b,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(M,arguments)},complement:function(){return this._applyCombination(_,arguments)},monochromatic:function(){return this._applyCombination(A,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(w,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},c.fromRatio=function(t,e){if(&quot;object&quot;==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&amp;&amp;(r[n]=&quot;a&quot;===n?t[n]:O(t[n]));t=r}return c(t,e)},c.equals=function(t,e){return!(!t||!e)&amp;&amp;c(t).toRgbString()==c(e).toRgbString()},c.random=function(){return c.fromRatio({r:l(),g:l(),b:l()})},c.mix=function(t,e,r){r=0===r?0:r||50;var n=c(t).toRgb(),i=c(e).toRgb(),a=r/100;return c({r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a})},c.readability=function(e,r){var n=c(e),i=c(r);return(t.max(n.getLuminance(),i.getLuminance())+.05)/(t.min(n.getLuminance(),i.getLuminance())+.05)},c.isReadable=function(t,e,r){var n,i,a=c.readability(t,e);switch(i=!1,(n=function(t){var e,r;e=((t=t||{level:&quot;AA&quot;,size:&quot;small&quot;}).level||&quot;AA&quot;).toUpperCase(),r=(t.size||&quot;small&quot;).toLowerCase(),&quot;AA&quot;!==e&amp;&amp;&quot;AAA&quot;!==e&amp;&amp;(e=&quot;AA&quot;);&quot;small&quot;!==r&amp;&amp;&quot;large&quot;!==r&amp;&amp;(r=&quot;small&quot;);return{level:e,size:r}}(r)).level+n.size){case&quot;AAsmall&quot;:case&quot;AAAlarge&quot;:i=a&gt;=4.5;break;case&quot;AAlarge&quot;:i=a&gt;=3;break;case&quot;AAAsmall&quot;:i=a&gt;=7}return i},c.mostReadable=function(t,e,r){var n,i,a,o,s=null,l=0;i=(r=r||{}).includeFallbackColors,a=r.level,o=r.size;for(var u=0;u&lt;e.length;u++)(n=c.readability(t,e[u]))&gt;l&amp;&amp;(l=n,s=c(e[u]));return c.isReadable(t,s,{level:a,size:o})||!i?s:(r.includeFallbackColors=!1,c.mostReadable(t,[&quot;#fff&quot;,&quot;#000&quot;],r))};var S=c.names={aliceblue:&quot;f0f8ff&quot;,antiquewhite:&quot;faebd7&quot;,aqua:&quot;0ff&quot;,aquamarine:&quot;7fffd4&quot;,azure:&quot;f0ffff&quot;,beige:&quot;f5f5dc&quot;,bisque:&quot;ffe4c4&quot;,black:&quot;000&quot;,blanchedalmond:&quot;ffebcd&quot;,blue:&quot;00f&quot;,blueviolet:&quot;8a2be2&quot;,brown:&quot;a52a2a&quot;,burlywood:&quot;deb887&quot;,burntsienna:&quot;ea7e5d&quot;,cadetblue:&quot;5f9ea0&quot;,chartreuse:&quot;7fff00&quot;,chocolate:&quot;d2691e&quot;,coral:&quot;ff7f50&quot;,cornflowerblue:&quot;6495ed&quot;,cornsilk:&quot;fff8dc&quot;,crimson:&quot;dc143c&quot;,cyan:&quot;0ff&quot;,darkblue:&quot;00008b&quot;,darkcyan:&quot;008b8b&quot;,darkgoldenrod:&quot;b8860b&quot;,darkgray:&quot;a9a9a9&quot;,darkgreen:&quot;006400&quot;,darkgrey:&quot;a9a9a9&quot;,darkkhaki:&quot;bdb76b&quot;,darkmagenta:&quot;8b008b&quot;,darkolivegreen:&quot;556b2f&quot;,darkorange:&quot;ff8c00&quot;,darkorchid:&quot;9932cc&quot;,darkred:&quot;8b0000&quot;,darksalmon:&quot;e9967a&quot;,darkseagreen:&quot;8fbc8f&quot;,darkslateblue:&quot;483d8b&quot;,darkslategray:&quot;2f4f4f&quot;,darkslategrey:&quot;2f4f4f&quot;,darkturquoise:&quot;00ced1&quot;,darkviolet:&quot;9400d3&quot;,deeppink:&quot;ff1493&quot;,deepskyblue:&quot;00bfff&quot;,dimgray:&quot;696969&quot;,dimgrey:&quot;696969&quot;,dodgerblue:&quot;1e90ff&quot;,firebrick:&quot;b22222&quot;,floralwhite:&quot;fffaf0&quot;,forestgreen:&quot;228b22&quot;,fuchsia:&quot;f0f&quot;,gainsboro:&quot;dcdcdc&quot;,ghostwhite:&quot;f8f8ff&quot;,gold:&quot;ffd700&quot;,goldenrod:&quot;daa520&quot;,gray:&quot;808080&quot;,green:&quot;008000&quot;,greenyellow:&quot;adff2f&quot;,grey:&quot;808080&quot;,honeydew:&quot;f0fff0&quot;,hotpink:&quot;ff69b4&quot;,indianred:&quot;cd5c5c&quot;,indigo:&quot;4b0082&quot;,ivory:&quot;fffff0&quot;,khaki:&quot;f0e68c&quot;,lavender:&quot;e6e6fa&quot;,lavenderblush:&quot;fff0f5&quot;,lawngreen:&quot;7cfc00&quot;,lemonchiffon:&quot;fffacd&quot;,lightblue:&quot;add8e6&quot;,lightcoral:&quot;f08080&quot;,lightcyan:&quot;e0ffff&quot;,lightgoldenrodyellow:&quot;fafad2&quot;,lightgray:&quot;d3d3d3&quot;,lightgreen:&quot;90ee90&quot;,lightgrey:&quot;d3d3d3&quot;,lightpink:&quot;ffb6c1&quot;,lightsalmon:&quot;ffa07a&quot;,lightseagreen:&quot;20b2aa&quot;,lightskyblue:&quot;87cefa&quot;,lightslategray:&quot;789&quot;,lightslategrey:&quot;789&quot;,lightsteelblue:&quot;b0c4de&quot;,lightyellow:&quot;ffffe0&quot;,lime:&quot;0f0&quot;,limegreen:&quot;32cd32&quot;,linen:&quot;faf0e6&quot;,magenta:&quot;f0f&quot;,maroon:&quot;800000&quot;,mediumaquamarine:&quot;66cdaa&quot;,mediumblue:&quot;0000cd&quot;,mediumorchid:&quot;ba55d3&quot;,mediumpurple:&quot;9370db&quot;,mediumseagreen:&quot;3cb371&quot;,mediumslateblue:&quot;7b68ee&quot;,mediumspringgreen:&quot;00fa9a&quot;,mediumturquoise:&quot;48d1cc&quot;,mediumvioletred:&quot;c71585&quot;,midnightblue:&quot;191970&quot;,mintcream:&quot;f5fffa&quot;,mistyrose:&quot;ffe4e1&quot;,moccasin:&quot;ffe4b5&quot;,navajowhite:&quot;ffdead&quot;,navy:&quot;000080&quot;,oldlace:&quot;fdf5e6&quot;,olive:&quot;808000&quot;,olivedrab:&quot;6b8e23&quot;,orange:&quot;ffa500&quot;,orangered:&quot;ff4500&quot;,orchid:&quot;da70d6&quot;,palegoldenrod:&quot;eee8aa&quot;,palegreen:&quot;98fb98&quot;,paleturquoise:&quot;afeeee&quot;,palevioletred:&quot;db7093&quot;,papayawhip:&quot;ffefd5&quot;,peachpuff:&quot;ffdab9&quot;,peru:&quot;cd853f&quot;,pink:&quot;ffc0cb&quot;,plum:&quot;dda0dd&quot;,powderblue:&quot;b0e0e6&quot;,purple:&quot;800080&quot;,rebeccapurple:&quot;663399&quot;,red:&quot;f00&quot;,rosybrown:&quot;bc8f8f&quot;,royalblue:&quot;4169e1&quot;,saddlebrown:&quot;8b4513&quot;,salmon:&quot;fa8072&quot;,sandybrown:&quot;f4a460&quot;,seagreen:&quot;2e8b57&quot;,seashell:&quot;fff5ee&quot;,sienna:&quot;a0522d&quot;,silver:&quot;c0c0c0&quot;,skyblue:&quot;87ceeb&quot;,slateblue:&quot;6a5acd&quot;,slategray:&quot;708090&quot;,slategrey:&quot;708090&quot;,snow:&quot;fffafa&quot;,springgreen:&quot;00ff7f&quot;,steelblue:&quot;4682b4&quot;,tan:&quot;d2b48c&quot;,teal:&quot;008080&quot;,thistle:&quot;d8bfd8&quot;,tomato:&quot;ff6347&quot;,turquoise:&quot;40e0d0&quot;,violet:&quot;ee82ee&quot;,wheat:&quot;f5deb3&quot;,white:&quot;fff&quot;,whitesmoke:&quot;f5f5f5&quot;,yellow:&quot;ff0&quot;,yellowgreen:&quot;9acd32&quot;},E=c.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&amp;&amp;(e[t[r]]=r);return e}(S);function C(t){return t=parseFloat(t),(isNaN(t)||t&lt;0||t&gt;1)&amp;&amp;(t=1),t}function L(e,r){(function(t){return&quot;string&quot;==typeof t&amp;&amp;-1!=t.indexOf(&quot;.&quot;)&amp;&amp;1===parseFloat(t)})(e)&amp;&amp;(e=&quot;100%&quot;);var n=function(t){return&quot;string&quot;==typeof t&amp;&amp;-1!=t.indexOf(&quot;%&quot;)}(e);return e=o(r,s(0,parseFloat(e))),n&amp;&amp;(e=parseInt(e*r,10)/100),t.abs(e-r)&lt;1e-6?1:e%r/parseFloat(r)}function I(t){return o(1,s(0,t))}function P(t){return parseInt(t,16)}function z(t){return 1==t.length?&quot;0&quot;+t:&quot;&quot;+t}function O(t){return t&lt;=1&amp;&amp;(t=100*t+&quot;%&quot;),t}function D(e){return t.round(255*parseFloat(e)).toString(16)}function R(t){return P(t)/255}var F,B,N,j=(B=&quot;[\\s|\\(]+(&quot;+(F=&quot;(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)&quot;)+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)\\s*\\)?&quot;,N=&quot;[\\s|\\(]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)[,|\\s]+(&quot;+F+&quot;)\\s*\\)?&quot;,{CSS_UNIT:new RegExp(F),rgb:new RegExp(&quot;rgb&quot;+B),rgba:new RegExp(&quot;rgba&quot;+N),hsl:new RegExp(&quot;hsl&quot;+B),hsla:new RegExp(&quot;hsla&quot;+N),hsv:new RegExp(&quot;hsv&quot;+B),hsva:new RegExp(&quot;hsva&quot;+N),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function U(t){return!!j.CSS_UNIT.exec(t)}&quot;undefined&quot;!=typeof e&amp;&amp;e.exports?e.exports=c:window.tinycolor=c}(Math)},{}],577:[function(t,e,r){&quot;use strict&quot;;e.exports=i,e.exports.float32=e.exports.float=i,e.exports.fract32=e.exports.fract=function(t){if(t.length){for(var e=i(t),r=0,n=e.length;r&lt;n;r++)e[r]=t[r]-e[r];return e}return i(t-i(t))};var n=new Float32Array(1);function i(t){if(t.length){if(t instanceof Float32Array)return t;var e=new Float32Array(t);return e.set(t),e}return n[0]=t,n[0]}},{}],578:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-unit&quot;);e.exports=a;function i(t,e){var r=n(getComputedStyle(t).getPropertyValue(e));return r[0]*a(r[1],t)}function a(t,e){switch(e=e||document.body,t=(t||&quot;px&quot;).trim().toLowerCase(),e!==window&amp;&amp;e!==document||(e=document.body),t){case&quot;%&quot;:return e.clientHeight/100;case&quot;ch&quot;:case&quot;ex&quot;:return function(t,e){var r=document.createElement(&quot;div&quot;);r.style[&quot;font-size&quot;]=&quot;128&quot;+t,e.appendChild(r);var n=i(r,&quot;font-size&quot;)/128;return e.removeChild(r),n}(t,e);case&quot;em&quot;:return i(e,&quot;font-size&quot;);case&quot;rem&quot;:return i(document.body,&quot;font-size&quot;);case&quot;vw&quot;:return window.innerWidth/100;case&quot;vh&quot;:return window.innerHeight/100;case&quot;vmin&quot;:return Math.min(window.innerWidth,window.innerHeight)/100;case&quot;vmax&quot;:return Math.max(window.innerWidth,window.innerHeight)/100;case&quot;in&quot;:return 96;case&quot;cm&quot;:return 96/2.54;case&quot;mm&quot;:return 96/25.4;case&quot;pt&quot;:return 96/72;case&quot;pc&quot;:return 16}return 1}},{&quot;parse-unit&quot;:506}],579:[function(t,e,r){!function(t,n){&quot;object&quot;==typeof r&amp;&amp;&quot;undefined&quot;!=typeof e?n(r):n((t=t||self).topojson=t.topojson||{})}(this,(function(t){&quot;use strict&quot;;function e(t){return t}function r(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c);for(u[0]=(r+=t[0])*i+o,u[1]=(n+=t[1])*a+s;l&lt;c;)u[l]=t[l],++l;return u}}function n(t){var e,n=r(t.transform),i=1/0,a=i,o=-i,s=-i;function l(t){(t=n(t))[0]&lt;i&amp;&amp;(i=t[0]),t[0]&gt;o&amp;&amp;(o=t[0]),t[1]&lt;a&amp;&amp;(a=t[1]),t[1]&gt;s&amp;&amp;(s=t[1])}function c(t){switch(t.type){case&quot;GeometryCollection&quot;:t.geometries.forEach(c);break;case&quot;Point&quot;:l(t.coordinates);break;case&quot;MultiPoint&quot;:t.coordinates.forEach(l)}}for(e in t.arcs.forEach((function(t){for(var e,r=-1,l=t.length;++r&lt;l;)(e=n(t[r],r))[0]&lt;i&amp;&amp;(i=e[0]),e[0]&gt;o&amp;&amp;(o=e[0]),e[1]&lt;a&amp;&amp;(a=e[1]),e[1]&gt;s&amp;&amp;(s=e[1])})),t.objects)c(t.objects[e]);return[i,a,o,s]}function i(t,e){var r=e.id,n=e.bbox,i=null==e.properties?{}:e.properties,o=a(t,e);return null==r&amp;&amp;null==n?{type:&quot;Feature&quot;,properties:i,geometry:o}:null==n?{type:&quot;Feature&quot;,id:r,properties:i,geometry:o}:{type:&quot;Feature&quot;,id:r,bbox:n,properties:i,geometry:o}}function a(t,e){var n=r(t.transform),i=t.arcs;function a(t,e){e.length&amp;&amp;e.pop();for(var r=i[t&lt;0?~t:t],a=0,o=r.length;a&lt;o;++a)e.push(n(r[a],a));t&lt;0&amp;&amp;function(t,e){for(var r,n=t.length,i=n-e;i&lt;--n;)r=t[i],t[i++]=t[n],t[n]=r}(e,o)}function o(t){return n(t)}function s(t){for(var e=[],r=0,n=t.length;r&lt;n;++r)a(t[r],e);return e.length&lt;2&amp;&amp;e.push(e[0]),e}function l(t){for(var e=s(t);e.length&lt;4;)e.push(e[0]);return e}function c(t){return t.map(l)}return function t(e){var r,n=e.type;switch(n){case&quot;GeometryCollection&quot;:return{type:n,geometries:e.geometries.map(t)};case&quot;Point&quot;:r=o(e.coordinates);break;case&quot;MultiPoint&quot;:r=e.coordinates.map(o);break;case&quot;LineString&quot;:r=s(e.arcs);break;case&quot;MultiLineString&quot;:r=e.arcs.map(s);break;case&quot;Polygon&quot;:r=c(e.arcs);break;case&quot;MultiPolygon&quot;:r=e.arcs.map(c);break;default:return null}return{type:n,coordinates:r}}(e)}function o(t,e){var r={},n={},i={},a=[],o=-1;function s(t,e){for(var n in t){var i=t[n];delete e[i.start],delete i.start,delete i.end,i.forEach((function(t){r[t&lt;0?~t:t]=1})),a.push(i)}}return e.forEach((function(r,n){var i,a=t.arcs[r&lt;0?~r:r];a.length&lt;3&amp;&amp;!a[1][0]&amp;&amp;!a[1][1]&amp;&amp;(i=e[++o],e[o]=r,e[n]=i)})),e.forEach((function(e){var r,a,o=function(e){var r,n=t.arcs[e&lt;0?~e:e],i=n[0];t.transform?(r=[0,0],n.forEach((function(t){r[0]+=t[0],r[1]+=t[1]}))):r=n[n.length-1];return e&lt;0?[r,i]:[i,r]}(e),s=o[0],l=o[1];if(r=i[s])if(delete i[r.end],r.push(e),r.end=l,a=n[l]){delete n[a.start];var c=a===r?r:r.concat(a);n[c.start=r.start]=i[c.end=a.end]=c}else n[r.start]=i[r.end]=r;else if(r=n[l])if(delete n[r.start],r.unshift(e),r.start=s,a=i[s]){delete i[a.end];var u=a===r?r:a.concat(r);n[u.start=a.start]=i[u.end=r.end]=u}else n[r.start]=i[r.end]=r;else n[(r=[e]).start=s]=i[r.end=l]=r})),s(i,n),s(n,i),e.forEach((function(t){r[t&lt;0?~t:t]||a.push([t])})),a}function s(t,e,r){var n,i,a;if(arguments.length&gt;1)n=l(t,e,r);else for(i=0,n=new Array(a=t.arcs.length);i&lt;a;++i)n[i]=i;return{type:&quot;MultiLineString&quot;,arcs:o(t,n)}}function l(t,e,r){var n,i=[],a=[];function o(t){var e=t&lt;0?~t:t;(a[e]||(a[e]=[])).push({i:t,g:n})}function s(t){t.forEach(o)}function l(t){t.forEach(s)}return function t(e){switch(n=e,e.type){case&quot;GeometryCollection&quot;:e.geometries.forEach(t);break;case&quot;LineString&quot;:s(e.arcs);break;case&quot;MultiLineString&quot;:case&quot;Polygon&quot;:l(e.arcs);break;case&quot;MultiPolygon&quot;:!function(t){t.forEach(l)}(e.arcs)}}(e),a.forEach(null==r?function(t){i.push(t[0].i)}:function(t){r(t[0].g,t[t.length-1].g)&amp;&amp;i.push(t[0].i)}),i}function c(t,e){var r={},n=[],i=[];function s(t){t.forEach((function(e){e.forEach((function(e){(r[e=e&lt;0?~e:e]||(r[e]=[])).push(t)}))})),n.push(t)}function l(e){return function(t){for(var e,r=-1,n=t.length,i=t[n-1],a=0;++r&lt;n;)e=i,i=t[r],a+=e[0]*i[1]-e[1]*i[0];return Math.abs(a)}(a(t,{type:&quot;Polygon&quot;,arcs:[e]}).coordinates[0])}return e.forEach((function t(e){switch(e.type){case&quot;GeometryCollection&quot;:e.geometries.forEach(t);break;case&quot;Polygon&quot;:s(e.arcs);break;case&quot;MultiPolygon&quot;:e.arcs.forEach(s)}})),n.forEach((function(t){if(!t._){var e=[],n=[t];for(t._=1,i.push(e);t=n.pop();)e.push(t),t.forEach((function(t){t.forEach((function(t){r[t&lt;0?~t:t].forEach((function(t){t._||(t._=1,n.push(t))}))}))}))}})),n.forEach((function(t){delete t._})),{type:&quot;MultiPolygon&quot;,arcs:i.map((function(e){var n,i=[];if(e.forEach((function(t){t.forEach((function(t){t.forEach((function(t){r[t&lt;0?~t:t].length&lt;2&amp;&amp;i.push(t)}))}))})),(n=(i=o(t,i)).length)&gt;1)for(var a,s,c=1,u=l(i[0]);c&lt;n;++c)(a=l(i[c]))&gt;u&amp;&amp;(s=i[0],i[0]=i[c],i[c]=s,u=a);return i})).filter((function(t){return t.length&gt;0}))}}function u(t,e){for(var r=0,n=t.length;r&lt;n;){var i=r+n&gt;&gt;&gt;1;t[i]&lt;e?r=i+1:n=i}return r}function f(t){if(null==t)return e;var r,n,i=t.scale[0],a=t.scale[1],o=t.translate[0],s=t.translate[1];return function(t,e){e||(r=n=0);var l=2,c=t.length,u=new Array(c),f=Math.round((t[0]-o)/i),h=Math.round((t[1]-s)/a);for(u[0]=f-r,r=f,u[1]=h-n,n=h;l&lt;c;)u[l]=t[l],++l;return u}}t.bbox=n,t.feature=function(t,e){return&quot;string&quot;==typeof e&amp;&amp;(e=t.objects[e]),&quot;GeometryCollection&quot;===e.type?{type:&quot;FeatureCollection&quot;,features:e.geometries.map((function(e){return i(t,e)}))}:i(t,e)},t.merge=function(t){return a(t,c.apply(this,arguments))},t.mergeArcs=c,t.mesh=function(t){return a(t,s.apply(this,arguments))},t.meshArcs=s,t.neighbors=function(t){var e={},r=t.map((function(){return[]}));function n(t,r){t.forEach((function(t){t&lt;0&amp;&amp;(t=~t);var n=e[t];n?n.push(r):e[t]=[r]}))}function i(t,e){t.forEach((function(t){n(t,e)}))}var a={LineString:n,MultiLineString:i,Polygon:i,MultiPolygon:function(t,e){t.forEach((function(t){i(t,e)}))}};for(var o in t.forEach((function t(e,r){&quot;GeometryCollection&quot;===e.type?e.geometries.forEach((function(e){t(e,r)})):e.type in a&amp;&amp;a[e.type](e.arcs,r)})),e)for(var s=e[o],l=s.length,c=0;c&lt;l;++c)for(var f=c+1;f&lt;l;++f){var h,p=s[c],d=s[f];(h=r[p])[o=u(h,d)]!==d&amp;&amp;h.splice(o,0,d),(h=r[d])[o=u(h,p)]!==p&amp;&amp;h.splice(o,0,p)}return r},t.quantize=function(t,e){if(t.transform)throw new Error(&quot;already quantized&quot;);if(e&amp;&amp;e.scale)l=t.bbox;else{if(!((r=Math.floor(e))&gt;=2))throw new Error(&quot;n must be \u22652&quot;);var r,i=(l=t.bbox||n(t))[0],a=l[1],o=l[2],s=l[3];e={scale:[o-i?(o-i)/(r-1):1,s-a?(s-a)/(r-1):1],translate:[i,a]}}var l,c,u=f(e),h=t.objects,p={};function d(t){return u(t)}function g(t){var e;switch(t.type){case&quot;GeometryCollection&quot;:e={type:&quot;GeometryCollection&quot;,geometries:t.geometries.map(g)};break;case&quot;Point&quot;:e={type:&quot;Point&quot;,coordinates:d(t.coordinates)};break;case&quot;MultiPoint&quot;:e={type:&quot;MultiPoint&quot;,coordinates:t.coordinates.map(d)};break;default:return t}return null!=t.id&amp;&amp;(e.id=t.id),null!=t.bbox&amp;&amp;(e.bbox=t.bbox),null!=t.properties&amp;&amp;(e.properties=t.properties),e}for(c in h)p[c]=g(h[c]);return{type:&quot;Topology&quot;,bbox:l,transform:e,objects:p,arcs:t.arcs.map((function(t){var e,r=0,n=1,i=t.length,a=new Array(i);for(a[0]=u(t[0],0);++r&lt;i;)((e=u(t[r],r))[0]||e[1])&amp;&amp;(a[n++]=e);return 1===n&amp;&amp;(a[n++]=[0,0]),a.length=n,a}))}},t.transform=r,t.untransform=f,Object.defineProperty(t,&quot;__esModule&quot;,{value:!0})}))},{}],580:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){if(t&lt;0)return[];if(0===t)return[[0]];for(var e=0|Math.round(a(t+1)),r=[],o=0;o&lt;e;++o){for(var s=n.unrank(t,o),l=[0],c=0,u=0;u&lt;s.length;++u)c+=1&lt;&lt;s[u],l.push(c);i(s)&lt;1&amp;&amp;(l[0]=c,l[t]=0),r.push(l)}return r};var n=t(&quot;permutation-rank&quot;),i=t(&quot;permutation-parity&quot;),a=t(&quot;gamma&quot;)},{gamma:248,&quot;permutation-parity&quot;:509,&quot;permutation-rank&quot;:510}],581:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=(t=t||{}).center||[0,0,0],r=t.up||[0,1,0],n=t.right||f(r),i=t.radius||1,a=t.theta||0,u=t.phi||0;if(e=[].slice.call(e,0,3),r=[].slice.call(r,0,3),s(r,r),n=[].slice.call(n,0,3),s(n,n),&quot;eye&quot;in t){var p=t.eye,d=[p[0]-e[0],p[1]-e[1],p[2]-e[2]];o(n,d,r),c(n[0],n[1],n[2])&lt;1e-6?n=f(r):s(n,n),i=c(d[0],d[1],d[2]);var g=l(r,d)/i,m=l(n,d)/i;u=Math.acos(g),a=Math.acos(m)}return i=Math.log(i),new h(t.zoomMin,t.zoomMax,e,r,n,i,a,u)};var n=t(&quot;filtered-vector&quot;),i=t(&quot;gl-mat4/invert&quot;),a=t(&quot;gl-mat4/rotate&quot;),o=t(&quot;gl-vec3/cross&quot;),s=t(&quot;gl-vec3/normalize&quot;),l=t(&quot;gl-vec3/dot&quot;);function c(t,e,r){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2)+Math.pow(r,2))}function u(t){return Math.min(1,Math.max(-1,t))}function f(t){var e=Math.abs(t[0]),r=Math.abs(t[1]),n=Math.abs(t[2]),i=[0,0,0];e&gt;Math.max(r,n)?i[2]=1:r&gt;Math.max(e,n)?i[0]=1:i[1]=1;for(var a=0,o=0,l=0;l&lt;3;++l)a+=t[l]*t[l],o+=i[l]*t[l];for(l=0;l&lt;3;++l)i[l]-=o/a*t[l];return s(i,i),i}function h(t,e,r,i,a,o,s,l){this.center=n(r),this.up=n(i),this.right=n(a),this.radius=n([o]),this.angle=n([s,l]),this.angle.bounds=[[-1/0,-Math.PI/2],[1/0,Math.PI/2]],this.setDistanceLimits(t,e),this.computedCenter=this.center.curve(0),this.computedUp=this.up.curve(0),this.computedRight=this.right.curve(0),this.computedRadius=this.radius.curve(0),this.computedAngle=this.angle.curve(0),this.computedToward=[0,0,0],this.computedEye=[0,0,0],this.computedMatrix=new Array(16);for(var c=0;c&lt;16;++c)this.computedMatrix[c]=.5;this.recalcMatrix(0)}var p=h.prototype;p.setDistanceLimits=function(t,e){t=t&gt;0?Math.log(t):-1/0,e=e&gt;0?Math.log(e):1/0,e=Math.max(e,t),this.radius.bounds[0][0]=t,this.radius.bounds[1][0]=e},p.getDistanceLimits=function(t){var e=this.radius.bounds[0];return t?(t[0]=Math.exp(e[0][0]),t[1]=Math.exp(e[1][0]),t):[Math.exp(e[0][0]),Math.exp(e[1][0])]},p.recalcMatrix=function(t){this.center.curve(t),this.up.curve(t),this.right.curve(t),this.radius.curve(t),this.angle.curve(t);for(var e=this.computedUp,r=this.computedRight,n=0,i=0,a=0;a&lt;3;++a)i+=e[a]*r[a],n+=e[a]*e[a];var l=Math.sqrt(n),u=0;for(a=0;a&lt;3;++a)r[a]-=e[a]*i/n,u+=r[a]*r[a],e[a]/=l;var f=Math.sqrt(u);for(a=0;a&lt;3;++a)r[a]/=f;var h=this.computedToward;o(h,e,r),s(h,h);var p=Math.exp(this.computedRadius[0]),d=this.computedAngle[0],g=this.computedAngle[1],m=Math.cos(d),v=Math.sin(d),y=Math.cos(g),x=Math.sin(g),b=this.computedCenter,_=m*y,w=v*y,T=x,k=-m*x,M=-v*x,A=y,S=this.computedEye,E=this.computedMatrix;for(a=0;a&lt;3;++a){var C=_*r[a]+w*h[a]+T*e[a];E[4*a+1]=k*r[a]+M*h[a]+A*e[a],E[4*a+2]=C,E[4*a+3]=0}var L=E[1],I=E[5],P=E[9],z=E[2],O=E[6],D=E[10],R=I*D-P*O,F=P*z-L*D,B=L*O-I*z,N=c(R,F,B);R/=N,F/=N,B/=N,E[0]=R,E[4]=F,E[8]=B;for(a=0;a&lt;3;++a)S[a]=b[a]+E[2+4*a]*p;for(a=0;a&lt;3;++a){u=0;for(var j=0;j&lt;3;++j)u+=E[a+4*j]*S[j];E[12+a]=-u}E[15]=1},p.getMatrix=function(t,e){this.recalcMatrix(t);var r=this.computedMatrix;if(e){for(var n=0;n&lt;16;++n)e[n]=r[n];return e}return r};var d=[0,0,0];p.rotate=function(t,e,r,n){if(this.angle.move(t,e,r),n){this.recalcMatrix(t);var i=this.computedMatrix;d[0]=i[2],d[1]=i[6],d[2]=i[10];for(var o=this.computedUp,s=this.computedRight,l=this.computedToward,c=0;c&lt;3;++c)i[4*c]=o[c],i[4*c+1]=s[c],i[4*c+2]=l[c];a(i,i,n,d);for(c=0;c&lt;3;++c)o[c]=i[4*c],s[c]=i[4*c+1];this.up.set(t,o[0],o[1],o[2]),this.right.set(t,s[0],s[1],s[2])}},p.pan=function(t,e,r,n){e=e||0,r=r||0,n=n||0,this.recalcMatrix(t);var i=this.computedMatrix,a=(Math.exp(this.computedRadius[0]),i[1]),o=i[5],s=i[9],l=c(a,o,s);a/=l,o/=l,s/=l;var u=i[0],f=i[4],h=i[8],p=u*a+f*o+h*s,d=c(u-=a*p,f-=o*p,h-=s*p),g=(u/=d)*e+a*r,m=(f/=d)*e+o*r,v=(h/=d)*e+s*r;this.center.move(t,g,m,v);var y=Math.exp(this.computedRadius[0]);y=Math.max(1e-4,y+n),this.radius.set(t,Math.log(y))},p.translate=function(t,e,r,n){this.center.move(t,e||0,r||0,n||0)},p.setMatrix=function(t,e,r,n){var a=1;&quot;number&quot;==typeof r&amp;&amp;(a=0|r),(a&lt;0||a&gt;3)&amp;&amp;(a=1);var o=(a+2)%3;e||(this.recalcMatrix(t),e=this.computedMatrix);var s=e[a],l=e[a+4],f=e[a+8];if(n){var h=Math.abs(s),p=Math.abs(l),d=Math.abs(f),g=Math.max(h,p,d);h===g?(s=s&lt;0?-1:1,l=f=0):d===g?(f=f&lt;0?-1:1,s=l=0):(l=l&lt;0?-1:1,s=f=0)}else{var m=c(s,l,f);s/=m,l/=m,f/=m}var v,y,x=e[o],b=e[o+4],_=e[o+8],w=x*s+b*l+_*f,T=c(x-=s*w,b-=l*w,_-=f*w),k=l*(_/=T)-f*(b/=T),M=f*(x/=T)-s*_,A=s*b-l*x,S=c(k,M,A);if(k/=S,M/=S,A/=S,this.center.jump(t,H,G,Y),this.radius.idle(t),this.up.jump(t,s,l,f),this.right.jump(t,x,b,_),2===a){var E=e[1],C=e[5],L=e[9],I=E*x+C*b+L*_,P=E*k+C*M+L*A;v=R&lt;0?-Math.PI/2:Math.PI/2,y=Math.atan2(P,I)}else{var z=e[2],O=e[6],D=e[10],R=z*s+O*l+D*f,F=z*x+O*b+D*_,B=z*k+O*M+D*A;v=Math.asin(u(R)),y=Math.atan2(B,F)}this.angle.jump(t,y,v),this.recalcMatrix(t);var N=e[2],j=e[6],U=e[10],V=this.computedMatrix;i(V,e);var q=V[15],H=V[12]/q,G=V[13]/q,Y=V[14]/q,W=Math.exp(this.computedRadius[0]);this.center.jump(t,H-N*W,G-j*W,Y-U*W)},p.lastT=function(){return Math.max(this.center.lastT(),this.up.lastT(),this.right.lastT(),this.radius.lastT(),this.angle.lastT())},p.idle=function(t){this.center.idle(t),this.up.idle(t),this.right.idle(t),this.radius.idle(t),this.angle.idle(t)},p.flush=function(t){this.center.flush(t),this.up.flush(t),this.right.flush(t),this.radius.flush(t),this.angle.flush(t)},p.setDistance=function(t,e){e&gt;0&amp;&amp;this.radius.set(t,Math.log(e))},p.lookAt=function(t,e,r,n){this.recalcMatrix(t),e=e||this.computedEye,r=r||this.computedCenter;var i=(n=n||this.computedUp)[0],a=n[1],o=n[2],s=c(i,a,o);if(!(s&lt;1e-6)){i/=s,a/=s,o/=s;var l=e[0]-r[0],f=e[1]-r[1],h=e[2]-r[2],p=c(l,f,h);if(!(p&lt;1e-6)){l/=p,f/=p,h/=p;var d=this.computedRight,g=d[0],m=d[1],v=d[2],y=i*g+a*m+o*v,x=c(g-=y*i,m-=y*a,v-=y*o);if(!(x&lt;.01&amp;&amp;(x=c(g=a*h-o*f,m=o*l-i*h,v=i*f-a*l))&lt;1e-6)){g/=x,m/=x,v/=x,this.up.set(t,i,a,o),this.right.set(t,g,m,v),this.center.set(t,r[0],r[1],r[2]),this.radius.set(t,Math.log(p));var b=a*v-o*m,_=o*g-i*v,w=i*m-a*g,T=c(b,_,w),k=i*l+a*f+o*h,M=g*l+m*f+v*h,A=(b/=T)*l+(_/=T)*f+(w/=T)*h,S=Math.asin(u(k)),E=Math.atan2(A,M),C=this.angle._state,L=C[C.length-1],I=C[C.length-2];L%=2*Math.PI;var P=Math.abs(L+2*Math.PI-E),z=Math.abs(L-E),O=Math.abs(L-2*Math.PI-E);P&lt;z&amp;&amp;(L+=2*Math.PI),O&lt;z&amp;&amp;(L-=2*Math.PI),this.angle.jump(this.angle.lastT(),L,I),this.angle.set(t,E,S)}}}}},{&quot;filtered-vector&quot;:242,&quot;gl-mat4/invert&quot;:293,&quot;gl-mat4/rotate&quot;:299,&quot;gl-vec3/cross&quot;:365,&quot;gl-vec3/dot&quot;:370,&quot;gl-vec3/normalize&quot;:387}],582:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var i=t*e,a=n*t,o=a-(a-t),s=t-o,l=n*e,c=l-(l-e),u=e-c,f=s*u-(i-o*c-s*c-o*u);if(r)return r[0]=f,r[1]=i,r;return[f,i]};var n=+(Math.pow(2,27)+1)},{}],583:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){var n=t+e,i=n-t,a=e-i,o=t-(n-i);if(r)return r[0]=o+a,r[1]=n,r;return[o+a,n]}},{}],584:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../prototype/is&quot;);e.exports=function(t){if(&quot;function&quot;!=typeof t)return!1;if(!hasOwnProperty.call(t,&quot;length&quot;))return!1;try{if(&quot;number&quot;!=typeof t.length)return!1;if(&quot;function&quot;!=typeof t.call)return!1;if(&quot;function&quot;!=typeof t.apply)return!1}catch(t){return!1}return!n(t)}},{&quot;../prototype/is&quot;:591}],585:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i=t(&quot;../object/is&quot;),a=t(&quot;../string/coerce&quot;),o=t(&quot;./to-short-string&quot;),s=function(t,e){return t.replace(&quot;%v&quot;,o(e))};e.exports=function(t,e,r){if(!i(r))throw new TypeError(s(e,t));if(!n(t)){if(&quot;default&quot;in r)return r.default;if(r.isOptional)return null}var o=a(r.errorMessage);throw n(o)||(o=e),new TypeError(s(o,t))}},{&quot;../object/is&quot;:588,&quot;../string/coerce&quot;:592,&quot;../value/is&quot;:594,&quot;./to-short-string&quot;:587}],586:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){try{return t.toString()}catch(e){try{return String(t)}catch(t){return null}}}},{}],587:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./safe-to-string&quot;),i=/[\n\r\u2028\u2029]/g;e.exports=function(t){var e=n(t);return null===e?&quot;&lt;Non-coercible to string value&gt;&quot;:(e.length&gt;100&amp;&amp;(e=e.slice(0,99)+&quot;\u2026&quot;),e=e.replace(i,(function(t){switch(t){case&quot;\n&quot;:return&quot;\\n&quot;;case&quot;\r&quot;:return&quot;\\r&quot;;case&quot;\u2028&quot;:return&quot;\\u2028&quot;;case&quot;\u2029&quot;:return&quot;\\u2029&quot;;default:throw new Error(&quot;Unexpected character&quot;)}})))}},{&quot;./safe-to-string&quot;:586}],588:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i={object:!0,function:!0,undefined:!0};e.exports=function(t){return!!n(t)&amp;&amp;hasOwnProperty.call(i,typeof t)}},{&quot;../value/is&quot;:594}],589:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/resolve-exception&quot;),i=t(&quot;./is&quot;);e.exports=function(t){return i(t)?t:n(t,&quot;%v is not a plain function&quot;,arguments[1])}},{&quot;../lib/resolve-exception&quot;:585,&quot;./is&quot;:590}],590:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../function/is&quot;),i=/^\s*class[\s{/}]/,a=Function.prototype.toString;e.exports=function(t){return!!n(t)&amp;&amp;!i.test(a.call(t))}},{&quot;../function/is&quot;:584}],591:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../object/is&quot;);e.exports=function(t){if(!n(t))return!1;try{return!!t.constructor&amp;&amp;t.constructor.prototype===t}catch(t){return!1}}},{&quot;../object/is&quot;:588}],592:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../value/is&quot;),i=t(&quot;../object/is&quot;),a=Object.prototype.toString;e.exports=function(t){if(!n(t))return null;if(i(t)){var e=t.toString;if(&quot;function&quot;!=typeof e)return null;if(e===a)return null}try{return&quot;&quot;+t}catch(t){return null}}},{&quot;../object/is&quot;:588,&quot;../value/is&quot;:594}],593:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/resolve-exception&quot;),i=t(&quot;./is&quot;);e.exports=function(t){return i(t)?t:n(t,&quot;Cannot use %v&quot;,arguments[1])}},{&quot;../lib/resolve-exception&quot;:585,&quot;./is&quot;:594}],594:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return null!=t}},{}],595:[function(t,e,r){(function(e){(function(){&quot;use strict&quot;;var n=t(&quot;bit-twiddle&quot;),i=t(&quot;dup&quot;),a=t(&quot;buffer&quot;).Buffer;e.__TYPEDARRAY_POOL||(e.__TYPEDARRAY_POOL={UINT8:i([32,0]),UINT16:i([32,0]),UINT32:i([32,0]),BIGUINT64:i([32,0]),INT8:i([32,0]),INT16:i([32,0]),INT32:i([32,0]),BIGINT64:i([32,0]),FLOAT:i([32,0]),DOUBLE:i([32,0]),DATA:i([32,0]),UINT8C:i([32,0]),BUFFER:i([32,0])});var o=&quot;undefined&quot;!=typeof Uint8ClampedArray,s=&quot;undefined&quot;!=typeof BigUint64Array,l=&quot;undefined&quot;!=typeof BigInt64Array,c=e.__TYPEDARRAY_POOL;c.UINT8C||(c.UINT8C=i([32,0])),c.BIGUINT64||(c.BIGUINT64=i([32,0])),c.BIGINT64||(c.BIGINT64=i([32,0])),c.BUFFER||(c.BUFFER=i([32,0]));var u=c.DATA,f=c.BUFFER;function h(t){if(t){var e=t.length||t.byteLength,r=n.log2(e);u[r].push(t)}}function p(t){t=n.nextPow2(t);var e=n.log2(t),r=u[e];return r.length&gt;0?r.pop():new ArrayBuffer(t)}function d(t){return new Uint8Array(p(t),0,t)}function g(t){return new Uint16Array(p(2*t),0,t)}function m(t){return new Uint32Array(p(4*t),0,t)}function v(t){return new Int8Array(p(t),0,t)}function y(t){return new Int16Array(p(2*t),0,t)}function x(t){return new Int32Array(p(4*t),0,t)}function b(t){return new Float32Array(p(4*t),0,t)}function _(t){return new Float64Array(p(8*t),0,t)}function w(t){return o?new Uint8ClampedArray(p(t),0,t):d(t)}function T(t){return s?new BigUint64Array(p(8*t),0,t):null}function k(t){return l?new BigInt64Array(p(8*t),0,t):null}function M(t){return new DataView(p(t),0,t)}function A(t){t=n.nextPow2(t);var e=n.log2(t),r=f[e];return r.length&gt;0?r.pop():new a(t)}r.free=function(t){if(a.isBuffer(t))f[n.log2(t.length)].push(t);else{if(&quot;[object ArrayBuffer]&quot;!==Object.prototype.toString.call(t)&amp;&amp;(t=t.buffer),!t)return;var e=t.length||t.byteLength,r=0|n.log2(e);u[r].push(t)}},r.freeUint8=r.freeUint16=r.freeUint32=r.freeBigUint64=r.freeInt8=r.freeInt16=r.freeInt32=r.freeBigInt64=r.freeFloat32=r.freeFloat=r.freeFloat64=r.freeDouble=r.freeUint8Clamped=r.freeDataView=function(t){h(t.buffer)},r.freeArrayBuffer=h,r.freeBuffer=function(t){f[n.log2(t.length)].push(t)},r.malloc=function(t,e){if(void 0===e||&quot;arraybuffer&quot;===e)return p(t);switch(e){case&quot;uint8&quot;:return d(t);case&quot;uint16&quot;:return g(t);case&quot;uint32&quot;:return m(t);case&quot;int8&quot;:return v(t);case&quot;int16&quot;:return y(t);case&quot;int32&quot;:return x(t);case&quot;float&quot;:case&quot;float32&quot;:return b(t);case&quot;double&quot;:case&quot;float64&quot;:return _(t);case&quot;uint8_clamped&quot;:return w(t);case&quot;bigint64&quot;:return k(t);case&quot;biguint64&quot;:return T(t);case&quot;buffer&quot;:return A(t);case&quot;data&quot;:case&quot;dataview&quot;:return M(t);default:return null}return null},r.mallocArrayBuffer=p,r.mallocUint8=d,r.mallocUint16=g,r.mallocUint32=m,r.mallocInt8=v,r.mallocInt16=y,r.mallocInt32=x,r.mallocFloat32=r.mallocFloat=b,r.mallocFloat64=r.mallocDouble=_,r.mallocUint8Clamped=w,r.mallocBigUint64=T,r.mallocBigInt64=k,r.mallocDataView=M,r.mallocBuffer=A,r.clearCache=function(){for(var t=0;t&lt;32;++t)c.UINT8[t].length=0,c.UINT16[t].length=0,c.UINT32[t].length=0,c.INT8[t].length=0,c.INT16[t].length=0,c.INT32[t].length=0,c.FLOAT[t].length=0,c.DOUBLE[t].length=0,c.BIGUINT64[t].length=0,c.BIGINT64[t].length=0,c.UINT8C[t].length=0,u[t].length=0,f[t].length=0}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;bit-twiddle&quot;:97,buffer:111,dup:176}],596:[function(t,e,r){&quot;use strict&quot;;function n(t){this.roots=new Array(t),this.ranks=new Array(t);for(var e=0;e&lt;t;++e)this.roots[e]=e,this.ranks[e]=0}e.exports=n;var i=n.prototype;Object.defineProperty(i,&quot;length&quot;,{get:function(){return this.roots.length}}),i.makeSet=function(){var t=this.roots.length;return this.roots.push(t),this.ranks.push(0),t},i.find=function(t){for(var e=t,r=this.roots;r[t]!==t;)t=r[t];for(;r[e]!==t;){var n=r[e];r[e]=t,e=n}return t},i.link=function(t,e){var r=this.find(t),n=this.find(e);if(r!==n){var i=this.ranks,a=this.roots,o=i[r],s=i[n];o&lt;s?a[r]=n:s&lt;o?a[n]=r:(a[n]=r,++i[r])}}},{}],597:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return 0===t.length?t:e?(r||t.sort(e),function(t,e){for(var r=1,n=t.length,i=t[0],a=t[0],o=1;o&lt;n;++o)if(a=i,e(i=t[o],a)){if(o===r){r++;continue}t[r++]=i}return t.length=r,t}(t,e)):(r||t.sort(),function(t){for(var e=1,r=t.length,n=t[0],i=t[0],a=1;a&lt;r;++a,i=n)if(i=n,(n=t[a])!==i){if(a===e){e++;continue}t[e++]=n}return t.length=e,t}(t))}},{}],598:[function(t,e,r){var n=/[\'\&quot;]/;e.exports=function(t){return t?(n.test(t.charAt(0))&amp;&amp;(t=t.substr(1)),n.test(t.charAt(t.length-1))&amp;&amp;(t=t.substr(0,t.length-1)),t):&quot;&quot;}},{}],599:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){Array.isArray(r)||(r=[].slice.call(arguments,2));for(var n=0,i=r.length;n&lt;i;n++){var a=r[n];for(var o in a)if((void 0===e[o]||Array.isArray(e[o])||t[o]!==e[o])&amp;&amp;o in e){var s;if(!0===a[o])s=e[o];else{if(!1===a[o])continue;if(&quot;function&quot;==typeof a[o]&amp;&amp;void 0===(s=a[o](e[o],t,e)))continue}t[o]=s}}return t}},{}],600:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){&quot;object&quot;==typeof e&amp;&amp;null!==e||(e={});return n(t,e.canvas||i,e.context||a,e)};var n=t(&quot;./lib/vtext&quot;),i=null,a=null;&quot;undefined&quot;!=typeof document&amp;&amp;((i=document.createElement(&quot;canvas&quot;)).width=8192,i.height=1024,a=i.getContext(&quot;2d&quot;))},{&quot;./lib/vtext&quot;:601}],601:[function(t,e,r){e.exports=function(t,e,r,n){var a=64,o=1.25,s={breaklines:!1,bolds:!1,italics:!1,subscripts:!1,superscripts:!1};n&amp;&amp;(n.size&amp;&amp;n.size&gt;0&amp;&amp;(a=n.size),n.lineSpacing&amp;&amp;n.lineSpacing&gt;0&amp;&amp;(o=n.lineSpacing),n.styletags&amp;&amp;n.styletags.breaklines&amp;&amp;(s.breaklines=!!n.styletags.breaklines),n.styletags&amp;&amp;n.styletags.bolds&amp;&amp;(s.bolds=!!n.styletags.bolds),n.styletags&amp;&amp;n.styletags.italics&amp;&amp;(s.italics=!!n.styletags.italics),n.styletags&amp;&amp;n.styletags.subscripts&amp;&amp;(s.subscripts=!!n.styletags.subscripts),n.styletags&amp;&amp;n.styletags.superscripts&amp;&amp;(s.superscripts=!!n.styletags.superscripts));return r.font=[n.fontStyle,n.fontVariant,n.fontWeight,a+&quot;px&quot;,n.font].filter((function(t){return t})).join(&quot; &quot;),r.textAlign=&quot;start&quot;,r.textBaseline=&quot;alphabetic&quot;,r.direction=&quot;ltr&quot;,h(function(t,e,r,n,a,o){r=r.replace(/\n/g,&quot;&quot;),r=!0===o.breaklines?r.replace(/\&lt;br\&gt;/g,&quot;\n&quot;):r.replace(/\&lt;br\&gt;/g,&quot; &quot;);var s=&quot;&quot;,l=[];for(p=0;p&lt;r.length;++p)l[p]=s;!0===o.bolds&amp;&amp;(l=c(&quot;b&quot;,&quot;b|&quot;,r,l));!0===o.italics&amp;&amp;(l=c(&quot;i&quot;,&quot;i|&quot;,r,l));!0===o.superscripts&amp;&amp;(l=c(&quot;sup&quot;,&quot;+1&quot;,r,l));!0===o.subscripts&amp;&amp;(l=c(&quot;sub&quot;,&quot;-1&quot;,r,l));var u=[],f=&quot;&quot;;for(p=0;p&lt;r.length;++p)null!==l[p]&amp;&amp;(f+=r[p],u.push(l[p]));var h,p,d,g,m,v=f.split(&quot;\n&quot;),y=v.length,x=Math.round(a*n),b=n,_=2*n,w=0,T=y*x+_;t.height&lt;T&amp;&amp;(t.height=T);e.fillStyle=&quot;#000&quot;,e.fillRect(0,0,t.width,t.height),e.fillStyle=&quot;#fff&quot;;var k=0,M=&quot;&quot;;function A(){if(&quot;&quot;!==M){var t=e.measureText(M).width;e.fillText(M,b+d,_+g),d+=t}}function S(){return Math.round(m)+&quot;px &quot;}function E(t,r){var n=&quot;&quot;+e.font;if(!0===o.subscripts){var i=t.indexOf(&quot;-&quot;),a=r.indexOf(&quot;-&quot;),s=i&gt;-1?parseInt(t[1+i]):0,l=a&gt;-1?parseInt(r[1+a]):0;s!==l&amp;&amp;(n=n.replace(S(),&quot;?px &quot;),m*=Math.pow(.75,l-s),n=n.replace(&quot;?px &quot;,S())),g+=.25*x*(l-s)}if(!0===o.superscripts){var c=t.indexOf(&quot;+&quot;),u=r.indexOf(&quot;+&quot;),f=c&gt;-1?parseInt(t[1+c]):0,h=u&gt;-1?parseInt(r[1+u]):0;f!==h&amp;&amp;(n=n.replace(S(),&quot;?px &quot;),m*=Math.pow(.75,h-f),n=n.replace(&quot;?px &quot;,S())),g-=.25*x*(h-f)}if(!0===o.bolds){var p=t.indexOf(&quot;b|&quot;)&gt;-1,d=r.indexOf(&quot;b|&quot;)&gt;-1;!p&amp;&amp;d&amp;&amp;(n=v?n.replace(&quot;italic &quot;,&quot;italic bold &quot;):&quot;bold &quot;+n),p&amp;&amp;!d&amp;&amp;(n=n.replace(&quot;bold &quot;,&quot;&quot;))}if(!0===o.italics){var v=t.indexOf(&quot;i|&quot;)&gt;-1,y=r.indexOf(&quot;i|&quot;)&gt;-1;!v&amp;&amp;y&amp;&amp;(n=&quot;italic &quot;+n),v&amp;&amp;!y&amp;&amp;(n=n.replace(&quot;italic &quot;,&quot;&quot;))}e.font=n}for(h=0;h&lt;y;++h){var C=v[h]+&quot;\n&quot;;for(d=0,g=h*x,m=n,M=&quot;&quot;,p=0;p&lt;C.length;++p){var L=p+k&lt;u.length?u[p+k]:u[u.length-1];s===L?M+=C[p]:(A(),M=C[p],void 0!==L&amp;&amp;(E(s,L),s=L))}A(),k+=C.length;var I=0|Math.round(d+2*b);w&lt;I&amp;&amp;(w=I)}var P=w,z=_+x*y;return i(e.getImageData(0,0,P,z).data,[z,P,4]).pick(-1,-1,0).transpose(1,0)}(e,r,t,a,o,s),n,a)},e.exports.processPixels=h;var n=t(&quot;surface-nets&quot;),i=t(&quot;ndarray&quot;),a=t(&quot;simplify-planar-graph&quot;),o=t(&quot;clean-pslg&quot;),s=t(&quot;cdt2d&quot;),l=t(&quot;planar-graph-to-polyline&quot;);function c(t,e,r,n){for(var i=&quot;&lt;&quot;+t+&quot;&gt;&quot;,a=&quot;&lt;/&quot;+t+&quot;&gt;&quot;,o=i.length,s=a.length,l=&quot;+&quot;===e[0]||&quot;-&quot;===e[0],c=0,u=-s;c&gt;-1&amp;&amp;-1!==(c=r.indexOf(i,c))&amp;&amp;-1!==(u=r.indexOf(a,c+o))&amp;&amp;!(u&lt;=c);){for(var f=c;f&lt;u+s;++f)if(f&lt;c+o||f&gt;=u)n[f]=null,r=r.substr(0,f)+&quot; &quot;+r.substr(f+1);else if(null!==n[f]){var h=n[f].indexOf(e[0]);-1===h?n[f]+=e:l&amp;&amp;(n[f]=n[f].substr(0,h+1)+(1+parseInt(n[f][h+1]))+n[f].substr(h+2))}var p=c+o,d=r.substr(p,u-p).indexOf(i);c=-1!==d?d:u+s}return n}function u(t,e){var r=n(t,128);return e?a(r.cells,r.positions,.25):{edges:r.cells,positions:r.positions}}function f(t,e,r,n){var i=u(t,n),a=function(t,e,r){for(var n=e.textAlign||&quot;start&quot;,i=e.textBaseline||&quot;alphabetic&quot;,a=[1&lt;&lt;30,1&lt;&lt;30],o=[0,0],s=t.length,l=0;l&lt;s;++l)for(var c=t[l],u=0;u&lt;2;++u)a[u]=0|Math.min(a[u],c[u]),o[u]=0|Math.max(o[u],c[u]);var f=0;switch(n){case&quot;center&quot;:f=-.5*(a[0]+o[0]);break;case&quot;right&quot;:case&quot;end&quot;:f=-o[0];break;case&quot;left&quot;:case&quot;start&quot;:f=-a[0];break;default:throw new Error(&quot;vectorize-text: Unrecognized textAlign: '&quot;+n+&quot;'&quot;)}var h=0;switch(i){case&quot;hanging&quot;:case&quot;top&quot;:h=-a[1];break;case&quot;middle&quot;:h=-.5*(a[1]+o[1]);break;case&quot;alphabetic&quot;:case&quot;ideographic&quot;:h=-3*r;break;case&quot;bottom&quot;:h=-o[1];break;default:throw new Error(&quot;vectorize-text: Unrecoginized textBaseline: '&quot;+i+&quot;'&quot;)}var p=1/r;return&quot;lineHeight&quot;in e?p*=+e.lineHeight:&quot;width&quot;in e?p=e.width/(o[0]-a[0]):&quot;height&quot;in e&amp;&amp;(p=e.height/(o[1]-a[1])),t.map((function(t){return[p*(t[0]+f),p*(t[1]+h)]}))}(i.positions,e,r),c=i.edges,f=&quot;ccw&quot;===e.orientation;if(o(a,c),e.polygons||e.polygon||e.polyline){for(var h=l(c,a),p=new Array(h.length),d=0;d&lt;h.length;++d){for(var g=h[d],m=new Array(g.length),v=0;v&lt;g.length;++v){for(var y=g[v],x=new Array(y.length),b=0;b&lt;y.length;++b)x[b]=a[y[b]].slice();f&amp;&amp;x.reverse(),m[v]=x}p[d]=m}return p}return e.triangles||e.triangulate||e.triangle?{cells:s(a,c,{delaunay:!1,exterior:!1,interior:!0}),positions:a}:{edges:c,positions:a}}function h(t,e,r){try{return f(t,e,r,!0)}catch(t){}try{return f(t,e,r,!1)}catch(t){}return e.polygons||e.polyline||e.polygon?[]:e.triangles||e.triangulate||e.triangle?{cells:[],positions:[]}:{edges:[],positions:[]}}},{cdt2d:112,&quot;clean-pslg&quot;:121,ndarray:495,&quot;planar-graph-to-polyline&quot;:514,&quot;simplify-planar-graph&quot;:562,&quot;surface-nets&quot;:570}],602:[function(t,e,r){!function(){&quot;use strict&quot;;if(&quot;undefined&quot;==typeof ses||!ses.ok||ses.ok()){&quot;undefined&quot;!=typeof ses&amp;&amp;(ses.weakMapPermitHostObjects=g);var t=!1;if(&quot;function&quot;==typeof WeakMap){var r=WeakMap;if(&quot;undefined&quot;!=typeof navigator&amp;&amp;/Firefox/.test(navigator.userAgent));else{var n=new r,i=Object.freeze({});if(n.set(i,1),1===n.get(i))return void(e.exports=WeakMap);t=!0}}Object.prototype.hasOwnProperty;var a=Object.getOwnPropertyNames,o=Object.defineProperty,s=Object.isExtensible,l=&quot;weakmap:ident:&quot;+Math.random()+&quot;___&quot;;if(&quot;undefined&quot;!=typeof crypto&amp;&amp;&quot;function&quot;==typeof crypto.getRandomValues&amp;&amp;&quot;function&quot;==typeof ArrayBuffer&amp;&amp;&quot;function&quot;==typeof Uint8Array){var c=new ArrayBuffer(25),u=new Uint8Array(c);crypto.getRandomValues(u),l=&quot;weakmap:rand:&quot;+Array.prototype.map.call(u,(function(t){return(t%36).toString(36)})).join(&quot;&quot;)+&quot;___&quot;}if(o(Object,&quot;getOwnPropertyNames&quot;,{value:function(t){return a(t).filter(m)}}),&quot;getPropertyNames&quot;in Object){var f=Object.getPropertyNames;o(Object,&quot;getPropertyNames&quot;,{value:function(t){return f(t).filter(m)}})}!function(){var t=Object.freeze;o(Object,&quot;freeze&quot;,{value:function(e){return v(e),t(e)}});var e=Object.seal;o(Object,&quot;seal&quot;,{value:function(t){return v(t),e(t)}});var r=Object.preventExtensions;o(Object,&quot;preventExtensions&quot;,{value:function(t){return v(t),r(t)}})}();var h=!1,p=0,d=function(){this instanceof d||x();var t=[],e=[],r=p++;return Object.create(d.prototype,{get___:{value:y((function(n,i){var a,o=v(n);return o?r in o?o[r]:i:(a=t.indexOf(n))&gt;=0?e[a]:i}))},has___:{value:y((function(e){var n=v(e);return n?r in n:t.indexOf(e)&gt;=0}))},set___:{value:y((function(n,i){var a,o=v(n);return o?o[r]=i:(a=t.indexOf(n))&gt;=0?e[a]=i:(a=t.length,e[a]=i,t[a]=n),this}))},delete___:{value:y((function(n){var i,a,o=v(n);return o?r in o&amp;&amp;delete o[r]:!((i=t.indexOf(n))&lt;0)&amp;&amp;(a=t.length-1,t[i]=void 0,e[i]=e[a],t[i]=t[a],t.length=a,e.length=a,!0)}))}})};d.prototype=Object.create(Object.prototype,{get:{value:function(t,e){return this.get___(t,e)},writable:!0,configurable:!0},has:{value:function(t){return this.has___(t)},writable:!0,configurable:!0},set:{value:function(t,e){return this.set___(t,e)},writable:!0,configurable:!0},delete:{value:function(t){return this.delete___(t)},writable:!0,configurable:!0}}),&quot;function&quot;==typeof r?function(){function n(){this instanceof d||x();var e,n=new r,i=void 0,a=!1;return e=t?function(t,e){return n.set(t,e),n.has(t)||(i||(i=new d),i.set(t,e)),this}:function(t,e){if(a)try{n.set(t,e)}catch(r){i||(i=new d),i.set___(t,e)}else n.set(t,e);return this},Object.create(d.prototype,{get___:{value:y((function(t,e){return i?n.has(t)?n.get(t):i.get___(t,e):n.get(t,e)}))},has___:{value:y((function(t){return n.has(t)||!!i&amp;&amp;i.has___(t)}))},set___:{value:y(e)},delete___:{value:y((function(t){var e=!!n.delete(t);return i&amp;&amp;i.delete___(t)||e}))},permitHostObjects___:{value:y((function(t){if(t!==g)throw new Error(&quot;bogus call to permitHostObjects___&quot;);a=!0}))}})}t&amp;&amp;&quot;undefined&quot;!=typeof Proxy&amp;&amp;(Proxy=void 0),n.prototype=d.prototype,e.exports=n,Object.defineProperty(WeakMap.prototype,&quot;constructor&quot;,{value:WeakMap,enumerable:!1,configurable:!0,writable:!0})}():(&quot;undefined&quot;!=typeof Proxy&amp;&amp;(Proxy=void 0),e.exports=d)}function g(t){t.permitHostObjects___&amp;&amp;t.permitHostObjects___(g)}function m(t){return!(&quot;weakmap:&quot;==t.substr(0,&quot;weakmap:&quot;.length)&amp;&amp;&quot;___&quot;===t.substr(t.length-3))}function v(t){if(t!==Object(t))throw new TypeError(&quot;Not an object: &quot;+t);var e=t[l];if(e&amp;&amp;e.key===t)return e;if(s(t)){e={key:t};try{return o(t,l,{value:e,writable:!1,enumerable:!1,configurable:!1}),e}catch(t){return}}}function y(t){return t.prototype=null,Object.freeze(t)}function x(){h||&quot;undefined&quot;==typeof console||(h=!0,console.warn(&quot;WeakMap should be invoked as new WeakMap(), not WeakMap(). This will be an error in the future.&quot;))}}()},{}],603:[function(t,e,r){var n=t(&quot;./hidden-store.js&quot;);e.exports=function(){var t={};return function(e){if((&quot;object&quot;!=typeof e||null===e)&amp;&amp;&quot;function&quot;!=typeof e)throw new Error(&quot;Weakmap-shim: Key must be object&quot;);var r=e.valueOf(t);return r&amp;&amp;r.identity===t?r:n(e,t)}}},{&quot;./hidden-store.js&quot;:604}],604:[function(t,e,r){e.exports=function(t,e){var r={identity:e},n=t.valueOf;return Object.defineProperty(t,&quot;valueOf&quot;,{value:function(t){return t!==e?n.apply(this,arguments):r},writable:!0}),r}},{}],605:[function(t,e,r){var n=t(&quot;./create-store.js&quot;);e.exports=function(){var t=n();return{get:function(e,r){var n=t(e);return n.hasOwnProperty(&quot;value&quot;)?n.value:r},set:function(e,r){return t(e).value=r,this},has:function(e){return&quot;value&quot;in t(e)},delete:function(e){return delete t(e).value}}}},{&quot;./create-store.js&quot;:603}],606:[function(t,e,r){var n=t(&quot;get-canvas-context&quot;);e.exports=function(t){return n(&quot;webgl&quot;,t)}},{&quot;get-canvas-context&quot;:249}],607:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Chinese&quot;,jdEpoch:1721425.5,hasYearZero:!1,minMonth:0,firstMonth:0,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Chinese&quot;,epochs:[&quot;BEC&quot;,&quot;EC&quot;],monthNumbers:function(t,e){if(&quot;string&quot;==typeof t){var r=t.match(l);return r?r[0]:&quot;&quot;}var n=this._validateYear(t),i=t.month(),a=&quot;&quot;+this.toChineseMonth(n,i);return e&amp;&amp;a.length&lt;2&amp;&amp;(a=&quot;0&quot;+a),this.isIntercalaryMonth(n,i)&amp;&amp;(a+=&quot;i&quot;),a},monthNames:function(t){if(&quot;string&quot;==typeof t){var e=t.match(c);return e?e[0]:&quot;&quot;}var r=this._validateYear(t),n=t.month(),i=[&quot;\u4e00\u6708&quot;,&quot;\u4e8c\u6708&quot;,&quot;\u4e09\u6708&quot;,&quot;\u56db\u6708&quot;,&quot;\u4e94\u6708&quot;,&quot;\u516d\u6708&quot;,&quot;\u4e03\u6708&quot;,&quot;\u516b\u6708&quot;,&quot;\u4e5d\u6708&quot;,&quot;\u5341\u6708&quot;,&quot;\u5341\u4e00\u6708&quot;,&quot;\u5341\u4e8c\u6708&quot;][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&amp;&amp;(i=&quot;\u95f0&quot;+i),i},monthNamesShort:function(t){if(&quot;string&quot;==typeof t){var e=t.match(u);return e?e[0]:&quot;&quot;}var r=this._validateYear(t),n=t.month(),i=[&quot;\u4e00&quot;,&quot;\u4e8c&quot;,&quot;\u4e09&quot;,&quot;\u56db&quot;,&quot;\u4e94&quot;,&quot;\u516d&quot;,&quot;\u4e03&quot;,&quot;\u516b&quot;,&quot;\u4e5d&quot;,&quot;\u5341&quot;,&quot;\u5341\u4e00&quot;,&quot;\u5341\u4e8c&quot;][this.toChineseMonth(r,n)-1];return this.isIntercalaryMonth(r,n)&amp;&amp;(i=&quot;\u95f0&quot;+i),i},parseMonth:function(t,e){t=this._validateYear(t);var r,n=parseInt(e);if(isNaN(n))&quot;\u95f0&quot;===e[0]&amp;&amp;(r=!0,e=e.substring(1)),&quot;\u6708&quot;===e[e.length-1]&amp;&amp;(e=e.substring(0,e.length-1)),n=1+[&quot;\u4e00&quot;,&quot;\u4e8c&quot;,&quot;\u4e09&quot;,&quot;\u56db&quot;,&quot;\u4e94&quot;,&quot;\u516d&quot;,&quot;\u4e03&quot;,&quot;\u516b&quot;,&quot;\u4e5d&quot;,&quot;\u5341&quot;,&quot;\u5341\u4e00&quot;,&quot;\u5341\u4e8c&quot;].indexOf(e);else{var i=e[e.length-1];r=&quot;i&quot;===i||&quot;I&quot;===i}return this.toMonthIndex(t,n,r)},dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:1,isRTL:!1}},_validateYear:function(t,e){if(t.year&amp;&amp;(t=t.year()),&quot;number&quot;!=typeof t||t&lt;1888||t&gt;2111)throw e.replace(/\{0\}/,this.local.name);return t},toMonthIndex:function(t,e,r){var i=this.intercalaryMonth(t);if(r&amp;&amp;e!==i||e&lt;1||e&gt;12)throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return i?!r&amp;&amp;e&lt;=i?e-1:e:e-1},toChineseMonth:function(t,e){t.year&amp;&amp;(e=(t=t.year()).month());var r=this.intercalaryMonth(t);if(e&lt;0||e&gt;(r?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r?e&lt;r?e+1:e:e+1},intercalaryMonth:function(t){return t=this._validateYear(t),f[t-f[0]]&gt;&gt;13},isIntercalaryMonth:function(t,e){t.year&amp;&amp;(e=(t=t.year()).month());var r=this.intercalaryMonth(t);return!!r&amp;&amp;r===e},leapYear:function(t){return 0!==this.intercalaryMonth(t)},weekOfYear:function(t,e,r){var i,o=this._validateYear(t,n.local.invalidyear),s=h[o-h[0]],l=s&gt;&gt;9&amp;4095,c=s&gt;&gt;5&amp;15,u=31&amp;s;(i=a.newDate(l,c,u)).add(4-(i.dayOfWeek()||7),&quot;d&quot;);var f=this.toJD(t,e,r)-i.toJD();return 1+Math.floor(f/7)},monthsInYear:function(t){return this.leapYear(t)?13:12},daysInMonth:function(t,e){t.year&amp;&amp;(e=t.month(),t=t.year()),t=this._validateYear(t);var r=f[t-f[0]];if(e&gt;(r&gt;&gt;13?12:11))throw n.local.invalidMonth.replace(/\{0\}/,this.local.name);return r&amp;1&lt;&lt;12-e?30:29},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,s,r,n.local.invalidDate);t=this._validateYear(i.year()),e=i.month(),r=i.day();var o=this.isIntercalaryMonth(t,e),s=this.toChineseMonth(t,e),l=function(t,e,r,n,i){var a,o,s;if(&quot;object&quot;==typeof t)o=t,a=e||{};else{var l;if(!(&quot;number&quot;==typeof t&amp;&amp;t&gt;=1888&amp;&amp;t&lt;=2111))throw new Error(&quot;Lunar year outside range 1888-2111&quot;);if(!(&quot;number&quot;==typeof e&amp;&amp;e&gt;=1&amp;&amp;e&lt;=12))throw new Error(&quot;Lunar month outside range 1 - 12&quot;);if(!(&quot;number&quot;==typeof r&amp;&amp;r&gt;=1&amp;&amp;r&lt;=30))throw new Error(&quot;Lunar day outside range 1 - 30&quot;);&quot;object&quot;==typeof n?(l=!1,a=n):(l=!!n,a=i||{}),o={year:t,month:e,day:r,isIntercalary:l}}s=o.day-1;var c,u=f[o.year-f[0]],p=u&gt;&gt;13;c=p&amp;&amp;(o.month&gt;p||o.isIntercalary)?o.month:o.month-1;for(var d=0;d&lt;c;d++){s+=u&amp;1&lt;&lt;12-d?30:29}var g=h[o.year-h[0]],m=new Date(g&gt;&gt;9&amp;4095,(g&gt;&gt;5&amp;15)-1,(31&amp;g)+s);return a.year=m.getFullYear(),a.month=1+m.getMonth(),a.day=m.getDate(),a}(t,s,r,o);return a.toJD(l.year,l.month,l.day)},fromJD:function(t){var e=a.fromJD(t),r=function(t,e,r,n){var i,a;if(&quot;object&quot;==typeof t)i=t,a=e||{};else{if(!(&quot;number&quot;==typeof t&amp;&amp;t&gt;=1888&amp;&amp;t&lt;=2111))throw new Error(&quot;Solar year outside range 1888-2111&quot;);if(!(&quot;number&quot;==typeof e&amp;&amp;e&gt;=1&amp;&amp;e&lt;=12))throw new Error(&quot;Solar month outside range 1 - 12&quot;);if(!(&quot;number&quot;==typeof r&amp;&amp;r&gt;=1&amp;&amp;r&lt;=31))throw new Error(&quot;Solar day outside range 1 - 31&quot;);i={year:t,month:e,day:r},a=n||{}}var o=h[i.year-h[0]],s=i.year&lt;&lt;9|i.month&lt;&lt;5|i.day;a.year=s&gt;=o?i.year:i.year-1,o=h[a.year-h[0]];var l,c=new Date(o&gt;&gt;9&amp;4095,(o&gt;&gt;5&amp;15)-1,31&amp;o),u=new Date(i.year,i.month-1,i.day);l=Math.round((u-c)/864e5);var p,d=f[a.year-f[0]];for(p=0;p&lt;13;p++){var g=d&amp;1&lt;&lt;12-p?30:29;if(l&lt;g)break;l-=g}var m=d&gt;&gt;13;!m||p&lt;m?(a.isIntercalary=!1,a.month=1+p):p===m?(a.isIntercalary=!0,a.month=p):(a.isIntercalary=!1,a.month=p);return a.day=1+l,a}(e.year(),e.month(),e.day()),n=this.toMonthIndex(r.year,r.month,r.isIntercalary);return this.newDate(r.year,n,r.day)},fromString:function(t){var e=t.match(s),r=this._validateYear(+e[1]),n=+e[2],i=!!e[3],a=this.toMonthIndex(r,n,i),o=+e[4];return this.newDate(r,a,o)},add:function(t,e,r){var n=t.year(),i=t.month(),a=this.isIntercalaryMonth(n,i),s=this.toChineseMonth(n,i),l=Object.getPrototypeOf(o.prototype).add.call(this,t,e,r);if(&quot;y&quot;===r){var c=l.year(),u=l.month(),f=this.isIntercalaryMonth(c,s),h=a&amp;&amp;f?this.toMonthIndex(c,s,!0):this.toMonthIndex(c,s,!1);h!==u&amp;&amp;l.month(h)}return l}});var s=/^\s*(-?\d\d\d\d|\d\d)[-/](\d?\d)([iI]?)[-/](\d?\d)/m,l=/^\d?\d[iI]?/m,c=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?\u6708/m,u=/^\u95f0?\u5341?[\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d]?/m;n.calendars.chinese=o;var f=[1887,5780,5802,19157,2742,50359,1198,2646,46378,7466,3412,30122,5482,67949,2396,5294,43597,6732,6954,36181,2772,4954,18781,2396,54427,5274,6730,47781,5800,6868,21210,4790,59703,2350,5270,46667,3402,3496,38325,1388,4782,18735,2350,52374,6804,7498,44457,2906,1388,29294,4700,63789,6442,6804,56138,5802,2772,38235,1210,4698,22827,5418,63125,3476,5802,43701,2484,5302,27223,2646,70954,7466,3412,54698,5482,2412,38062,5294,2636,32038,6954,60245,2772,4826,43357,2394,5274,39501,6730,72357,5800,5844,53978,4790,2358,38039,5270,87627,3402,3496,54708,5484,4782,43311,2350,3222,27978,7498,68965,2904,5484,45677,4700,6444,39573,6804,6986,19285,2772,62811,1210,4698,47403,5418,5780,38570,5546,76469,2420,5302,51799,2646,5414,36501,3412,5546,18869,2412,54446,5276,6732,48422,6822,2900,28010,4826,92509,2394,5274,55883,6730,6820,47956,5812,2778,18779,2358,62615,5270,5450,46757,3492,5556,27318,4718,67887,2350,3222,52554,7498,3428,38252,5468,4700,31022,6444,64149,6804,6986,43861,2772,5338,35421,2650,70955,5418,5780,54954,5546,2740,38074,5302,2646,29991,3366,61011,3412,5546,43445,2412,5294,35406,6732,72998,6820,6996,52586,2778,2396,38045,5274,6698,23333,6820,64338,5812,2746,43355,2358,5270,39499,5450,79525,3492,5548],h=[1887,966732,967231,967733,968265,968766,969297,969798,970298,970829,971330,971830,972362,972863,973395,973896,974397,974928,975428,975929,976461,976962,977462,977994,978494,979026,979526,980026,980558,981059,981559,982091,982593,983124,983624,984124,984656,985157,985656,986189,986690,987191,987722,988222,988753,989254,989754,990286,990788,991288,991819,992319,992851,993352,993851,994383,994885,995385,995917,996418,996918,997450,997949,998481,998982,999483,1000014,1000515,1001016,1001548,1002047,1002578,1003080,1003580,1004111,1004613,1005113,1005645,1006146,1006645,1007177,1007678,1008209,1008710,1009211,1009743,1010243,1010743,1011275,1011775,1012306,1012807,1013308,1013840,1014341,1014841,1015373,1015874,1016404,1016905,1017405,1017937,1018438,1018939,1019471,1019972,1020471,1021002,1021503,1022035,1022535,1023036,1023568,1024069,1024568,1025100,1025601,1026102,1026633,1027133,1027666,1028167,1028666,1029198,1029699,1030199,1030730,1031231,1031763,1032264,1032764,1033296,1033797,1034297,1034828,1035329,1035830,1036362,1036861,1037393,1037894,1038394,1038925,1039427,1039927,1040459,1040959,1041491,1041992,1042492,1043023,1043524,1044024,1044556,1045057,1045558,1046090,1046590,1047121,1047622,1048122,1048654,1049154,1049655,1050187,1050689,1051219,1051720,1052220,1052751,1053252,1053752,1054284,1054786,1055285,1055817,1056317,1056849,1057349,1057850,1058382,1058883,1059383,1059915,1060415,1060947,1061447,1061947,1062479,1062981,1063480,1064012,1064514,1065014,1065545,1066045,1066577,1067078,1067578,1068110,1068611,1069112,1069642,1070142,1070674,1071175,1071675,1072207,1072709,1073209,1073740,1074241,1074741,1075273,1075773,1076305,1076807,1077308,1077839,1078340,1078840,1079372,1079871,1080403,1080904]},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],608:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Coptic&quot;,jdEpoch:1825029.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Coptic&quot;,epochs:[&quot;BAM&quot;,&quot;AM&quot;],monthNames:[&quot;Thout&quot;,&quot;Paopi&quot;,&quot;Hathor&quot;,&quot;Koiak&quot;,&quot;Tobi&quot;,&quot;Meshir&quot;,&quot;Paremhat&quot;,&quot;Paremoude&quot;,&quot;Pashons&quot;,&quot;Paoni&quot;,&quot;Epip&quot;,&quot;Mesori&quot;,&quot;Pi Kogi Enavot&quot;],monthNamesShort:[&quot;Tho&quot;,&quot;Pao&quot;,&quot;Hath&quot;,&quot;Koi&quot;,&quot;Tob&quot;,&quot;Mesh&quot;,&quot;Pat&quot;,&quot;Pad&quot;,&quot;Pash&quot;,&quot;Pao&quot;,&quot;Epi&quot;,&quot;Meso&quot;,&quot;PiK&quot;],dayNames:[&quot;Tkyriaka&quot;,&quot;Pesnau&quot;,&quot;Pshoment&quot;,&quot;Peftoou&quot;,&quot;Ptiou&quot;,&quot;Psoou&quot;,&quot;Psabbaton&quot;],dayNamesShort:[&quot;Tky&quot;,&quot;Pes&quot;,&quot;Psh&quot;,&quot;Pef&quot;,&quot;Pti&quot;,&quot;Pso&quot;,&quot;Psa&quot;],dayNamesMin:[&quot;Tk&quot;,&quot;Pes&quot;,&quot;Psh&quot;,&quot;Pef&quot;,&quot;Pt&quot;,&quot;Pso&quot;,&quot;Psa&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())&lt;0&amp;&amp;t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r&lt;=0&amp;&amp;r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.coptic=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],609:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Discworld&quot;,jdEpoch:1721425.5,daysPerMonth:[16,32,32,32,32,32,32,32,32,32,32,32,32],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Discworld&quot;,epochs:[&quot;BUC&quot;,&quot;UC&quot;],monthNames:[&quot;Ick&quot;,&quot;Offle&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;Grune&quot;,&quot;August&quot;,&quot;Spune&quot;,&quot;Sektober&quot;,&quot;Ember&quot;,&quot;December&quot;],monthNamesShort:[&quot;Ick&quot;,&quot;Off&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Gru&quot;,&quot;Aug&quot;,&quot;Spu&quot;,&quot;Sek&quot;,&quot;Emb&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Octeday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Oct&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Oc&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:2,isRTL:!1}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),13},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),400},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/8)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]},daysInWeek:function(){return 8},dayOfWeek:function(t,e,r){return(this._validate(t,e,r,n.local.invalidDate).day()+1)%8},weekDay:function(t,e,r){var n=this.dayOfWeek(t,e,r);return n&gt;=2&amp;&amp;n&lt;=6},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{century:o[Math.floor((i.year()-1)/100)+1]||&quot;&quot;}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year()+(i.year()&lt;0?1:0),e=i.month(),(r=i.day())+(e&gt;1?16:0)+(e&gt;2?32*(e-2):0)+400*(t-1)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t+.5)-Math.floor(this.jdEpoch)-1;var e=Math.floor(t/400)+1;t-=400*(e-1),t+=t&gt;15?16:0;var r=Math.floor(t/32)+1,n=t-32*(r-1)+1;return this.newDate(e&lt;=0?e-1:e,r,n)}});var o={20:&quot;Fruitbat&quot;,21:&quot;Anchovy&quot;};n.calendars.discworld=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],610:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Ethiopian&quot;,jdEpoch:1724220.5,daysPerMonth:[30,30,30,30,30,30,30,30,30,30,30,30,5],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Ethiopian&quot;,epochs:[&quot;BEE&quot;,&quot;EE&quot;],monthNames:[&quot;Meskerem&quot;,&quot;Tikemet&quot;,&quot;Hidar&quot;,&quot;Tahesas&quot;,&quot;Tir&quot;,&quot;Yekatit&quot;,&quot;Megabit&quot;,&quot;Miazia&quot;,&quot;Genbot&quot;,&quot;Sene&quot;,&quot;Hamle&quot;,&quot;Nehase&quot;,&quot;Pagume&quot;],monthNamesShort:[&quot;Mes&quot;,&quot;Tik&quot;,&quot;Hid&quot;,&quot;Tah&quot;,&quot;Tir&quot;,&quot;Yek&quot;,&quot;Meg&quot;,&quot;Mia&quot;,&quot;Gen&quot;,&quot;Sen&quot;,&quot;Ham&quot;,&quot;Neh&quot;,&quot;Pag&quot;],dayNames:[&quot;Ehud&quot;,&quot;Segno&quot;,&quot;Maksegno&quot;,&quot;Irob&quot;,&quot;Hamus&quot;,&quot;Arb&quot;,&quot;Kidame&quot;],dayNamesShort:[&quot;Ehu&quot;,&quot;Seg&quot;,&quot;Mak&quot;,&quot;Iro&quot;,&quot;Ham&quot;,&quot;Arb&quot;,&quot;Kid&quot;],dayNamesMin:[&quot;Eh&quot;,&quot;Se&quot;,&quot;Ma&quot;,&quot;Ir&quot;,&quot;Ha&quot;,&quot;Ar&quot;,&quot;Ki&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==3||t%4==-1},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear),13},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(13===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return(t=i.year())&lt;0&amp;&amp;t++,i.day()+30*(i.month()-1)+365*(t-1)+Math.floor(t/4)+this.jdEpoch-1},fromJD:function(t){var e=Math.floor(t)+.5-this.jdEpoch,r=Math.floor((e-Math.floor((e+366)/1461))/365)+1;r&lt;=0&amp;&amp;r--,e=Math.floor(t)+.5-this.newDate(r,1,1).toJD();var n=Math.floor(e/30)+1,i=e-30*(n-1)+1;return this.newDate(r,n,i)}}),n.calendars.ethiopian=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],611:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Hebrew&quot;,jdEpoch:347995.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29,29],hasYearZero:!1,minMonth:1,firstMonth:7,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Hebrew&quot;,epochs:[&quot;BAM&quot;,&quot;AM&quot;],monthNames:[&quot;Nisan&quot;,&quot;Iyar&quot;,&quot;Sivan&quot;,&quot;Tammuz&quot;,&quot;Av&quot;,&quot;Elul&quot;,&quot;Tishrei&quot;,&quot;Cheshvan&quot;,&quot;Kislev&quot;,&quot;Tevet&quot;,&quot;Shevat&quot;,&quot;Adar&quot;,&quot;Adar II&quot;],monthNamesShort:[&quot;Nis&quot;,&quot;Iya&quot;,&quot;Siv&quot;,&quot;Tam&quot;,&quot;Av&quot;,&quot;Elu&quot;,&quot;Tis&quot;,&quot;Che&quot;,&quot;Kis&quot;,&quot;Tev&quot;,&quot;She&quot;,&quot;Ada&quot;,&quot;Ad2&quot;],dayNames:[&quot;Yom Rishon&quot;,&quot;Yom Sheni&quot;,&quot;Yom Shlishi&quot;,&quot;Yom Revi'i&quot;,&quot;Yom Chamishi&quot;,&quot;Yom Shishi&quot;,&quot;Yom Shabbat&quot;],dayNamesShort:[&quot;Ris&quot;,&quot;She&quot;,&quot;Shl&quot;,&quot;Rev&quot;,&quot;Cha&quot;,&quot;Shi&quot;,&quot;Sha&quot;],dayNamesMin:[&quot;Ri&quot;,&quot;She&quot;,&quot;Shl&quot;,&quot;Re&quot;,&quot;Ch&quot;,&quot;Shi&quot;,&quot;Sha&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return this._leapYear(e.year())},_leapYear:function(t){return o(7*(t=t&lt;0?t+1:t)+1,19)&lt;7},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),this._leapYear(t.year?t.year():t)?13:12},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),this.toJD(-1===t?1:t+1,7,1)-this.toJD(t,7,1)},daysInMonth:function(t,e){return t.year&amp;&amp;(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),12===e&amp;&amp;this.leapYear(t)||8===e&amp;&amp;5===o(this.daysInYear(t),10)?30:9===e&amp;&amp;3===o(this.daysInYear(t),10)?29:this.daysPerMonth[e-1]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return{yearType:(this.leapYear(i)?&quot;embolismic&quot;:&quot;common&quot;)+&quot; &quot;+[&quot;deficient&quot;,&quot;regular&quot;,&quot;complete&quot;][this.daysInYear(i)%10-3]}},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t&lt;=0?t+1:t,o=this.jdEpoch+this._delay1(a)+this._delay2(a)+r+1;if(e&lt;7){for(var s=7;s&lt;=this.monthsInYear(t);s++)o+=this.daysInMonth(t,s);for(s=1;s&lt;e;s++)o+=this.daysInMonth(t,s)}else for(s=7;s&lt;e;s++)o+=this.daysInMonth(t,s);return o},_delay1:function(t){var e=Math.floor((235*t-234)/19),r=12084+13753*e,n=29*e+Math.floor(r/25920);return o(3*(n+1),7)&lt;3&amp;&amp;n++,n},_delay2:function(t){var e=this._delay1(t-1),r=this._delay1(t);return this._delay1(t+1)-r==356?2:r-e==382?1:0},fromJD:function(t){t=Math.floor(t)+.5;for(var e=Math.floor(98496*(t-this.jdEpoch)/35975351)-1;t&gt;=this.toJD(-1===e?1:e+1,7,1);)e++;for(var r=t&lt;this.toJD(e,1,1)?7:1;t&gt;this.toJD(e,r,this.daysInMonth(e,r));)r++;var n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.hebrew=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],612:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Islamic&quot;,jdEpoch:1948439.5,daysPerMonth:[30,29,30,29,30,29,30,29,30,29,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Islamic&quot;,epochs:[&quot;BH&quot;,&quot;AH&quot;],monthNames:[&quot;Muharram&quot;,&quot;Safar&quot;,&quot;Rabi' al-awwal&quot;,&quot;Rabi' al-thani&quot;,&quot;Jumada al-awwal&quot;,&quot;Jumada al-thani&quot;,&quot;Rajab&quot;,&quot;Sha'aban&quot;,&quot;Ramadan&quot;,&quot;Shawwal&quot;,&quot;Dhu al-Qi'dah&quot;,&quot;Dhu al-Hijjah&quot;],monthNamesShort:[&quot;Muh&quot;,&quot;Saf&quot;,&quot;Rab1&quot;,&quot;Rab2&quot;,&quot;Jum1&quot;,&quot;Jum2&quot;,&quot;Raj&quot;,&quot;Sha'&quot;,&quot;Ram&quot;,&quot;Shaw&quot;,&quot;DhuQ&quot;,&quot;DhuH&quot;],dayNames:[&quot;Yawm al-ahad&quot;,&quot;Yawm al-ithnayn&quot;,&quot;Yawm ath-thulaathaa'&quot;,&quot;Yawm al-arbi'aa'&quot;,&quot;Yawm al-kham\u012bs&quot;,&quot;Yawm al-jum'a&quot;,&quot;Yawm as-sabt&quot;],dayNamesShort:[&quot;Aha&quot;,&quot;Ith&quot;,&quot;Thu&quot;,&quot;Arb&quot;,&quot;Kha&quot;,&quot;Jum&quot;,&quot;Sab&quot;],dayNamesMin:[&quot;Ah&quot;,&quot;It&quot;,&quot;Th&quot;,&quot;Ar&quot;,&quot;Kh&quot;,&quot;Ju&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!1}},leapYear:function(t){return(11*this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year()+14)%30&lt;11},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){return this.leapYear(t)?355:354},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),t=t&lt;=0?t+1:t,(r=i.day())+Math.ceil(29.5*(e-1))+354*(t-1)+Math.floor((3+11*t)/30)+this.jdEpoch-1},fromJD:function(t){t=Math.floor(t)+.5;var e=Math.floor((30*(t-this.jdEpoch)+10646)/10631);e=e&lt;=0?e-1:e;var r=Math.min(12,Math.ceil((t-29-this.toJD(e,1,1))/29.5)+1),n=t-this.toJD(e,r,1)+1;return this.newDate(e,r,n)}}),n.calendars.islamic=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],613:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Julian&quot;,jdEpoch:1721423.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Julian&quot;,epochs:[&quot;BC&quot;,&quot;AD&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;mm/dd/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return(t=e.year()&lt;0?e.year()+1:e.year())%4==0},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return t=i.year(),e=i.month(),r=i.day(),t&lt;0&amp;&amp;t++,e&lt;=2&amp;&amp;(t--,e+=12),Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r-1524.5},fromJD:function(t){var e=Math.floor(t+.5)+1524,r=Math.floor((e-122.1)/365.25),n=Math.floor(365.25*r),i=Math.floor((e-n)/30.6001),a=i-Math.floor(i&lt;14?1:13),o=r-Math.floor(a&gt;2?4716:4715),s=e-n-Math.floor(30.6001*i);return o&lt;=0&amp;&amp;o--,this.newDate(o,a,s)}}),n.calendars.julian=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],614:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}function s(t,e){return o(t-1,e)+1}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Mayan&quot;,jdEpoch:584282.5,hasYearZero:!0,minMonth:0,firstMonth:0,minDay:0,regionalOptions:{&quot;&quot;:{name:&quot;Mayan&quot;,epochs:[&quot;&quot;,&quot;&quot;],monthNames:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;],monthNamesShort:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;],dayNames:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],dayNamesShort:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],dayNamesMin:[&quot;0&quot;,&quot;1&quot;,&quot;2&quot;,&quot;3&quot;,&quot;4&quot;,&quot;5&quot;,&quot;6&quot;,&quot;7&quot;,&quot;8&quot;,&quot;9&quot;,&quot;10&quot;,&quot;11&quot;,&quot;12&quot;,&quot;13&quot;,&quot;14&quot;,&quot;15&quot;,&quot;16&quot;,&quot;17&quot;,&quot;18&quot;,&quot;19&quot;],digits:null,dateFormat:&quot;YYYY.m.d&quot;,firstDay:0,isRTL:!1,haabMonths:[&quot;Pop&quot;,&quot;Uo&quot;,&quot;Zip&quot;,&quot;Zotz&quot;,&quot;Tzec&quot;,&quot;Xul&quot;,&quot;Yaxkin&quot;,&quot;Mol&quot;,&quot;Chen&quot;,&quot;Yax&quot;,&quot;Zac&quot;,&quot;Ceh&quot;,&quot;Mac&quot;,&quot;Kankin&quot;,&quot;Muan&quot;,&quot;Pax&quot;,&quot;Kayab&quot;,&quot;Cumku&quot;,&quot;Uayeb&quot;],tzolkinMonths:[&quot;Imix&quot;,&quot;Ik&quot;,&quot;Akbal&quot;,&quot;Kan&quot;,&quot;Chicchan&quot;,&quot;Cimi&quot;,&quot;Manik&quot;,&quot;Lamat&quot;,&quot;Muluc&quot;,&quot;Oc&quot;,&quot;Chuen&quot;,&quot;Eb&quot;,&quot;Ben&quot;,&quot;Ix&quot;,&quot;Men&quot;,&quot;Cib&quot;,&quot;Caban&quot;,&quot;Etznab&quot;,&quot;Cauac&quot;,&quot;Ahau&quot;]}},leapYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),!1},formatYear:function(t){t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year();var e=Math.floor(t/400);return t%=400,t+=t&lt;0?400:0,e+&quot;.&quot;+Math.floor(t/20)+&quot;.&quot;+t%20},forYear:function(t){if((t=t.split(&quot;.&quot;)).length&lt;3)throw&quot;Invalid Mayan year&quot;;for(var e=0,r=0;r&lt;t.length;r++){var n=parseInt(t[r],10);if(Math.abs(n)&gt;19||r&gt;0&amp;&amp;n&lt;0)throw&quot;Invalid Mayan year&quot;;e=20*e+n}return e},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),18},weekOfYear:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),0},daysInYear:function(t){return this._validate(t,this.minMonth,this.minDay,n.local.invalidYear),360},daysInMonth:function(t,e){return this._validate(t,e,this.minDay,n.local.invalidMonth),20},daysInWeek:function(){return 5},dayOfWeek:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate).day()},weekDay:function(t,e,r){return this._validate(t,e,r,n.local.invalidDate),!0},extraInfo:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate).toJD(),a=this._toHaab(i),o=this._toTzolkin(i);return{haabMonthName:this.local.haabMonths[a[0]-1],haabMonth:a[0],haabDay:a[1],tzolkinDayName:this.local.tzolkinMonths[o[0]-1],tzolkinDay:o[0],tzolkinTrecena:o[1]}},_toHaab:function(t){var e=o((t-=this.jdEpoch)+8+340,365);return[Math.floor(e/20)+1,o(e,20)]},_toTzolkin:function(t){return[s((t-=this.jdEpoch)+20,20),s(t+4,13)]},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);return i.day()+20*i.month()+360*i.year()+this.jdEpoch},fromJD:function(t){t=Math.floor(t)+.5-this.jdEpoch;var e=Math.floor(t/360);t%=360,t+=t&lt;0?360:0;var r=Math.floor(t/20),n=t%20;return this.newDate(e,r,n)}}),n.calendars.mayan=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],615:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar;var o=n.instance(&quot;gregorian&quot;);i(a.prototype,{name:&quot;Nanakshahi&quot;,jdEpoch:2257673.5,daysPerMonth:[31,31,31,31,31,30,30,30,30,30,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Nanakshahi&quot;,epochs:[&quot;BN&quot;,&quot;AN&quot;],monthNames:[&quot;Chet&quot;,&quot;Vaisakh&quot;,&quot;Jeth&quot;,&quot;Harh&quot;,&quot;Sawan&quot;,&quot;Bhadon&quot;,&quot;Assu&quot;,&quot;Katak&quot;,&quot;Maghar&quot;,&quot;Poh&quot;,&quot;Magh&quot;,&quot;Phagun&quot;],monthNamesShort:[&quot;Che&quot;,&quot;Vai&quot;,&quot;Jet&quot;,&quot;Har&quot;,&quot;Saw&quot;,&quot;Bha&quot;,&quot;Ass&quot;,&quot;Kat&quot;,&quot;Mgr&quot;,&quot;Poh&quot;,&quot;Mgh&quot;,&quot;Pha&quot;],dayNames:[&quot;Somvaar&quot;,&quot;Mangalvar&quot;,&quot;Budhvaar&quot;,&quot;Veervaar&quot;,&quot;Shukarvaar&quot;,&quot;Sanicharvaar&quot;,&quot;Etvaar&quot;],dayNamesShort:[&quot;Som&quot;,&quot;Mangal&quot;,&quot;Budh&quot;,&quot;Veer&quot;,&quot;Shukar&quot;,&quot;Sanichar&quot;,&quot;Et&quot;],dayNamesMin:[&quot;So&quot;,&quot;Ma&quot;,&quot;Bu&quot;,&quot;Ve&quot;,&quot;Sh&quot;,&quot;Sa&quot;,&quot;Et&quot;],digits:null,dateFormat:&quot;dd-mm-yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear||n.regionalOptions[&quot;&quot;].invalidYear);return o.leapYear(e.year()+(e.year()&lt;1?1:0)+1469)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(1-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidMonth);(t=i.year())&lt;0&amp;&amp;t++;for(var a=i.day(),s=1;s&lt;i.month();s++)a+=this.daysPerMonth[s-1];return a+o.toJD(t+1468,3,13)},fromJD:function(t){t=Math.floor(t+.5);for(var e=Math.floor((t-(this.jdEpoch-1))/366);t&gt;=this.toJD(e+1,1,1);)e++;for(var r=t-Math.floor(this.toJD(e,1,1)+.5)+1,n=1;r&gt;this.daysInMonth(e,n);)r-=this.daysInMonth(e,n),n++;return this.newDate(e,n,r)}}),n.calendars.nanakshahi=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],616:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Nepali&quot;,jdEpoch:1700709.5,daysPerMonth:[31,31,32,32,31,30,30,29,30,29,30,30],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,daysPerYear:365,regionalOptions:{&quot;&quot;:{name:&quot;Nepali&quot;,epochs:[&quot;BBS&quot;,&quot;ABS&quot;],monthNames:[&quot;Baisakh&quot;,&quot;Jestha&quot;,&quot;Ashadh&quot;,&quot;Shrawan&quot;,&quot;Bhadra&quot;,&quot;Ashwin&quot;,&quot;Kartik&quot;,&quot;Mangsir&quot;,&quot;Paush&quot;,&quot;Mangh&quot;,&quot;Falgun&quot;,&quot;Chaitra&quot;],monthNamesShort:[&quot;Bai&quot;,&quot;Je&quot;,&quot;As&quot;,&quot;Shra&quot;,&quot;Bha&quot;,&quot;Ash&quot;,&quot;Kar&quot;,&quot;Mang&quot;,&quot;Pau&quot;,&quot;Ma&quot;,&quot;Fal&quot;,&quot;Chai&quot;],dayNames:[&quot;Aaitabaar&quot;,&quot;Sombaar&quot;,&quot;Manglbaar&quot;,&quot;Budhabaar&quot;,&quot;Bihibaar&quot;,&quot;Shukrabaar&quot;,&quot;Shanibaar&quot;],dayNamesShort:[&quot;Aaita&quot;,&quot;Som&quot;,&quot;Mangl&quot;,&quot;Budha&quot;,&quot;Bihi&quot;,&quot;Shukra&quot;,&quot;Shani&quot;],dayNamesMin:[&quot;Aai&quot;,&quot;So&quot;,&quot;Man&quot;,&quot;Bu&quot;,&quot;Bi&quot;,&quot;Shu&quot;,&quot;Sha&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:1,isRTL:!1}},leapYear:function(t){return this.daysInYear(t)!==this.daysPerYear},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){if(t=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear).year(),&quot;undefined&quot;==typeof this.NEPALI_CALENDAR_DATA[t])return this.daysPerYear;for(var e=0,r=this.minMonth;r&lt;=12;r++)e+=this.NEPALI_CALENDAR_DATA[t][r];return e},daysInMonth:function(t,e){return t.year&amp;&amp;(e=t.month(),t=t.year()),this._validate(t,e,this.minDay,n.local.invalidMonth),&quot;undefined&quot;==typeof this.NEPALI_CALENDAR_DATA[t]?this.daysPerMonth[e-1]:this.NEPALI_CALENDAR_DATA[t][e]},weekDay:function(t,e,r){return 6!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=n.instance(),o=0,s=e,l=t;this._createMissingCalendarData(t);var c=t-(s&gt;9||9===s&amp;&amp;r&gt;=this.NEPALI_CALENDAR_DATA[l][0]?56:57);for(9!==e&amp;&amp;(o=r,s--);9!==s;)s&lt;=0&amp;&amp;(s=12,l--),o+=this.NEPALI_CALENDAR_DATA[l][s],s--;return 9===e?(o+=r-this.NEPALI_CALENDAR_DATA[l][0])&lt;0&amp;&amp;(o+=a.daysInYear(c)):o+=this.NEPALI_CALENDAR_DATA[l][9]-this.NEPALI_CALENDAR_DATA[l][0],a.newDate(c,1,1).add(o,&quot;d&quot;).toJD()},fromJD:function(t){var e=n.instance().fromJD(t),r=e.year(),i=e.dayOfYear(),a=r+56;this._createMissingCalendarData(a);for(var o=9,s=this.NEPALI_CALENDAR_DATA[a][0],l=this.NEPALI_CALENDAR_DATA[a][o]-s+1;i&gt;l;)++o&gt;12&amp;&amp;(o=1,a++),l+=this.NEPALI_CALENDAR_DATA[a][o];var c=this.NEPALI_CALENDAR_DATA[a][o]-(l-i);return this.newDate(a,o,c)},_createMissingCalendarData:function(t){var e=this.daysPerMonth.slice(0);e.unshift(17);for(var r=t-1;r&lt;t+2;r++)&quot;undefined&quot;==typeof this.NEPALI_CALENDAR_DATA[r]&amp;&amp;(this.NEPALI_CALENDAR_DATA[r]=e)},NEPALI_CALENDAR_DATA:{1970:[18,31,31,32,31,31,31,30,29,30,29,30,30],1971:[18,31,31,32,31,32,30,30,29,30,29,30,30],1972:[17,31,32,31,32,31,30,30,30,29,29,30,30],1973:[19,30,32,31,32,31,30,30,30,29,30,29,31],1974:[19,31,31,32,30,31,31,30,29,30,29,30,30],1975:[18,31,31,32,32,30,31,30,29,30,29,30,30],1976:[17,31,32,31,32,31,30,30,30,29,29,30,31],1977:[18,31,32,31,32,31,31,29,30,29,30,29,31],1978:[18,31,31,32,31,31,31,30,29,30,29,30,30],1979:[18,31,31,32,32,31,30,30,29,30,29,30,30],1980:[17,31,32,31,32,31,30,30,30,29,29,30,31],1981:[18,31,31,31,32,31,31,29,30,30,29,30,30],1982:[18,31,31,32,31,31,31,30,29,30,29,30,30],1983:[18,31,31,32,32,31,30,30,29,30,29,30,30],1984:[17,31,32,31,32,31,30,30,30,29,29,30,31],1985:[18,31,31,31,32,31,31,29,30,30,29,30,30],1986:[18,31,31,32,31,31,31,30,29,30,29,30,30],1987:[18,31,32,31,32,31,30,30,29,30,29,30,30],1988:[17,31,32,31,32,31,30,30,30,29,29,30,31],1989:[18,31,31,31,32,31,31,30,29,30,29,30,30],1990:[18,31,31,32,31,31,31,30,29,30,29,30,30],1991:[18,31,32,31,32,31,30,30,29,30,29,30,30],1992:[17,31,32,31,32,31,30,30,30,29,30,29,31],1993:[18,31,31,31,32,31,31,30,29,30,29,30,30],1994:[18,31,31,32,31,31,31,30,29,30,29,30,30],1995:[17,31,32,31,32,31,30,30,30,29,29,30,30],1996:[17,31,32,31,32,31,30,30,30,29,30,29,31],1997:[18,31,31,32,31,31,31,30,29,30,29,30,30],1998:[18,31,31,32,31,31,31,30,29,30,29,30,30],1999:[17,31,32,31,32,31,30,30,30,29,29,30,31],2e3:[17,30,32,31,32,31,30,30,30,29,30,29,31],2001:[18,31,31,32,31,31,31,30,29,30,29,30,30],2002:[18,31,31,32,32,31,30,30,29,30,29,30,30],2003:[17,31,32,31,32,31,30,30,30,29,29,30,31],2004:[17,30,32,31,32,31,30,30,30,29,30,29,31],2005:[18,31,31,32,31,31,31,30,29,30,29,30,30],2006:[18,31,31,32,32,31,30,30,29,30,29,30,30],2007:[17,31,32,31,32,31,30,30,30,29,29,30,31],2008:[17,31,31,31,32,31,31,29,30,30,29,29,31],2009:[18,31,31,32,31,31,31,30,29,30,29,30,30],2010:[18,31,31,32,32,31,30,30,29,30,29,30,30],2011:[17,31,32,31,32,31,30,30,30,29,29,30,31],2012:[17,31,31,31,32,31,31,29,30,30,29,30,30],2013:[18,31,31,32,31,31,31,30,29,30,29,30,30],2014:[18,31,31,32,32,31,30,30,29,30,29,30,30],2015:[17,31,32,31,32,31,30,30,30,29,29,30,31],2016:[17,31,31,31,32,31,31,29,30,30,29,30,30],2017:[18,31,31,32,31,31,31,30,29,30,29,30,30],2018:[18,31,32,31,32,31,30,30,29,30,29,30,30],2019:[17,31,32,31,32,31,30,30,30,29,30,29,31],2020:[17,31,31,31,32,31,31,30,29,30,29,30,30],2021:[18,31,31,32,31,31,31,30,29,30,29,30,30],2022:[17,31,32,31,32,31,30,30,30,29,29,30,30],2023:[17,31,32,31,32,31,30,30,30,29,30,29,31],2024:[17,31,31,31,32,31,31,30,29,30,29,30,30],2025:[18,31,31,32,31,31,31,30,29,30,29,30,30],2026:[17,31,32,31,32,31,30,30,30,29,29,30,31],2027:[17,30,32,31,32,31,30,30,30,29,30,29,31],2028:[17,31,31,32,31,31,31,30,29,30,29,30,30],2029:[18,31,31,32,31,32,30,30,29,30,29,30,30],2030:[17,31,32,31,32,31,30,30,30,30,30,30,31],2031:[17,31,32,31,32,31,31,31,31,31,31,31,31],2032:[17,32,32,32,32,32,32,32,32,32,32,32,32],2033:[18,31,31,32,32,31,30,30,29,30,29,30,30],2034:[17,31,32,31,32,31,30,30,30,29,29,30,31],2035:[17,30,32,31,32,31,31,29,30,30,29,29,31],2036:[17,31,31,32,31,31,31,30,29,30,29,30,30],2037:[18,31,31,32,32,31,30,30,29,30,29,30,30],2038:[17,31,32,31,32,31,30,30,30,29,29,30,31],2039:[17,31,31,31,32,31,31,29,30,30,29,30,30],2040:[17,31,31,32,31,31,31,30,29,30,29,30,30],2041:[18,31,31,32,32,31,30,30,29,30,29,30,30],2042:[17,31,32,31,32,31,30,30,30,29,29,30,31],2043:[17,31,31,31,32,31,31,29,30,30,29,30,30],2044:[17,31,31,32,31,31,31,30,29,30,29,30,30],2045:[18,31,32,31,32,31,30,30,29,30,29,30,30],2046:[17,31,32,31,32,31,30,30,30,29,29,30,31],2047:[17,31,31,31,32,31,31,30,29,30,29,30,30],2048:[17,31,31,32,31,31,31,30,29,30,29,30,30],2049:[17,31,32,31,32,31,30,30,30,29,29,30,30],2050:[17,31,32,31,32,31,30,30,30,29,30,29,31],2051:[17,31,31,31,32,31,31,30,29,30,29,30,30],2052:[17,31,31,32,31,31,31,30,29,30,29,30,30],2053:[17,31,32,31,32,31,30,30,30,29,29,30,30],2054:[17,31,32,31,32,31,30,30,30,29,30,29,31],2055:[17,31,31,32,31,31,31,30,29,30,30,29,30],2056:[17,31,31,32,31,32,30,30,29,30,29,30,30],2057:[17,31,32,31,32,31,30,30,30,29,29,30,31],2058:[17,30,32,31,32,31,30,30,30,29,30,29,31],2059:[17,31,31,32,31,31,31,30,29,30,29,30,30],2060:[17,31,31,32,32,31,30,30,29,30,29,30,30],2061:[17,31,32,31,32,31,30,30,30,29,29,30,31],2062:[17,30,32,31,32,31,31,29,30,29,30,29,31],2063:[17,31,31,32,31,31,31,30,29,30,29,30,30],2064:[17,31,31,32,32,31,30,30,29,30,29,30,30],2065:[17,31,32,31,32,31,30,30,30,29,29,30,31],2066:[17,31,31,31,32,31,31,29,30,30,29,29,31],2067:[17,31,31,32,31,31,31,30,29,30,29,30,30],2068:[17,31,31,32,32,31,30,30,29,30,29,30,30],2069:[17,31,32,31,32,31,30,30,30,29,29,30,31],2070:[17,31,31,31,32,31,31,29,30,30,29,30,30],2071:[17,31,31,32,31,31,31,30,29,30,29,30,30],2072:[17,31,32,31,32,31,30,30,29,30,29,30,30],2073:[17,31,32,31,32,31,30,30,30,29,29,30,31],2074:[17,31,31,31,32,31,31,30,29,30,29,30,30],2075:[17,31,31,32,31,31,31,30,29,30,29,30,30],2076:[16,31,32,31,32,31,30,30,30,29,29,30,30],2077:[17,31,32,31,32,31,30,30,30,29,30,29,31],2078:[17,31,31,31,32,31,31,30,29,30,29,30,30],2079:[17,31,31,32,31,31,31,30,29,30,29,30,30],2080:[16,31,32,31,32,31,30,30,30,29,29,30,30],2081:[17,31,31,32,32,31,30,30,30,29,30,30,30],2082:[17,31,32,31,32,31,30,30,30,29,30,30,30],2083:[17,31,31,32,31,31,30,30,30,29,30,30,30],2084:[17,31,31,32,31,31,30,30,30,29,30,30,30],2085:[17,31,32,31,32,31,31,30,30,29,30,30,30],2086:[17,31,32,31,32,31,30,30,30,29,30,30,30],2087:[16,31,31,32,31,31,31,30,30,29,30,30,30],2088:[16,30,31,32,32,30,31,30,30,29,30,30,30],2089:[17,31,32,31,32,31,30,30,30,29,30,30,30],2090:[17,31,32,31,32,31,30,30,30,29,30,30,30],2091:[16,31,31,32,31,31,31,30,30,29,30,30,30],2092:[16,31,31,32,32,31,30,30,30,29,30,30,30],2093:[17,31,32,31,32,31,30,30,30,29,30,30,30],2094:[17,31,31,32,31,31,30,30,30,29,30,30,30],2095:[17,31,31,32,31,31,31,30,29,30,30,30,30],2096:[17,30,31,32,32,31,30,30,29,30,29,30,30],2097:[17,31,32,31,32,31,30,30,30,29,30,30,30],2098:[17,31,31,32,31,31,31,29,30,29,30,30,31],2099:[17,31,31,32,31,31,31,30,29,29,30,30,30],2100:[17,31,32,31,32,30,31,30,29,30,29,30,30]}}),n.calendars.nepali=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],617:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}function o(t,e){return t-e*Math.floor(t/e)}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;Persian&quot;,jdEpoch:1948320.5,daysPerMonth:[31,31,31,31,31,31,30,30,30,30,30,29],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Persian&quot;,epochs:[&quot;BP&quot;,&quot;AP&quot;],monthNames:[&quot;Farvardin&quot;,&quot;Ordibehesht&quot;,&quot;Khordad&quot;,&quot;Tir&quot;,&quot;Mordad&quot;,&quot;Shahrivar&quot;,&quot;Mehr&quot;,&quot;Aban&quot;,&quot;Azar&quot;,&quot;Day&quot;,&quot;Bahman&quot;,&quot;Esfand&quot;],monthNamesShort:[&quot;Far&quot;,&quot;Ord&quot;,&quot;Kho&quot;,&quot;Tir&quot;,&quot;Mor&quot;,&quot;Sha&quot;,&quot;Meh&quot;,&quot;Aba&quot;,&quot;Aza&quot;,&quot;Day&quot;,&quot;Bah&quot;,&quot;Esf&quot;],dayNames:[&quot;Yekshambe&quot;,&quot;Doshambe&quot;,&quot;Seshambe&quot;,&quot;Ch\xe6harshambe&quot;,&quot;Panjshambe&quot;,&quot;Jom'e&quot;,&quot;Shambe&quot;],dayNamesShort:[&quot;Yek&quot;,&quot;Do&quot;,&quot;Se&quot;,&quot;Ch\xe6&quot;,&quot;Panj&quot;,&quot;Jom&quot;,&quot;Sha&quot;],dayNamesMin:[&quot;Ye&quot;,&quot;Do&quot;,&quot;Se&quot;,&quot;Ch&quot;,&quot;Pa&quot;,&quot;Jo&quot;,&quot;Sh&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 682*((e.year()-(e.year()&gt;0?474:473))%2820+474+38)%2816&lt;682},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-(n.dayOfWeek()+1)%7,&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(12===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=i.year(),e=i.month(),r=i.day();var a=t-(t&gt;=0?474:473),s=474+o(a,2820);return r+(e&lt;=7?31*(e-1):30*(e-1)+6)+Math.floor((682*s-110)/2816)+365*(s-1)+1029983*Math.floor(a/2820)+this.jdEpoch-1},fromJD:function(t){var e=(t=Math.floor(t)+.5)-this.toJD(475,1,1),r=Math.floor(e/1029983),n=o(e,1029983),i=2820;if(1029982!==n){var a=Math.floor(n/366),s=o(n,366);i=Math.floor((2134*a+2816*s+2815)/1028522)+a+1}var l=i+2820*r+474;l=l&lt;=0?l-1:l;var c=t-this.toJD(l,1,1)+1,u=c&lt;=186?Math.ceil(c/31):Math.ceil((c-6)/30),f=t-this.toJD(l,u,1)+1;return this.newDate(l,u,f)}}),n.calendars.persian=a,n.calendars.jalali=a},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],618:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Taiwan&quot;,jdEpoch:2419402.5,yearsOffset:1911,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Taiwan&quot;,epochs:[&quot;BROC&quot;,&quot;ROC&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:1,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t+this.yearsOffset+(t&gt;=-this.yearsOffset&amp;&amp;t&lt;=-1?1:0)},_g2tYear:function(t){return t-this.yearsOffset-(t&gt;=1&amp;&amp;t&lt;=this.yearsOffset?1:0)}}),n.calendars.taiwan=o},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],619:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;),a=n.instance();function o(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}o.prototype=new n.baseCalendar,i(o.prototype,{name:&quot;Thai&quot;,jdEpoch:1523098.5,yearsOffset:543,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Thai&quot;,epochs:[&quot;BBE&quot;,&quot;BE&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;dd/mm/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(e.year());return a.leapYear(t)},weekOfYear:function(t,e,r){var i=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);t=this._t2gYear(i.year());return a.weekOfYear(t,i.month(),i.day())},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,n.local.invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate);t=this._t2gYear(i.year());return a.toJD(t,i.month(),i.day())},fromJD:function(t){var e=a.fromJD(t),r=this._g2tYear(e.year());return this.newDate(r,e.month(),e.day())},_t2gYear:function(t){return t-this.yearsOffset-(t&gt;=1&amp;&amp;t&lt;=this.yearsOffset?1:0)},_g2tYear:function(t){return t+this.yearsOffset+(t&gt;=-this.yearsOffset&amp;&amp;t&lt;=-1?1:0)}}),n.calendars.thai=o},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],620:[function(t,e,r){var n=t(&quot;../main&quot;),i=t(&quot;object-assign&quot;);function a(t){this.local=this.regionalOptions[t||&quot;&quot;]||this.regionalOptions[&quot;&quot;]}a.prototype=new n.baseCalendar,i(a.prototype,{name:&quot;UmmAlQura&quot;,hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Umm al-Qura&quot;,epochs:[&quot;BH&quot;,&quot;AH&quot;],monthNames:[&quot;Al-Muharram&quot;,&quot;Safar&quot;,&quot;Rabi' al-awwal&quot;,&quot;Rabi' Al-Thani&quot;,&quot;Jumada Al-Awwal&quot;,&quot;Jumada Al-Thani&quot;,&quot;Rajab&quot;,&quot;Sha'aban&quot;,&quot;Ramadan&quot;,&quot;Shawwal&quot;,&quot;Dhu al-Qi'dah&quot;,&quot;Dhu al-Hijjah&quot;],monthNamesShort:[&quot;Muh&quot;,&quot;Saf&quot;,&quot;Rab1&quot;,&quot;Rab2&quot;,&quot;Jum1&quot;,&quot;Jum2&quot;,&quot;Raj&quot;,&quot;Sha'&quot;,&quot;Ram&quot;,&quot;Shaw&quot;,&quot;DhuQ&quot;,&quot;DhuH&quot;],dayNames:[&quot;Yawm al-Ahad&quot;,&quot;Yawm al-Ithnain&quot;,&quot;Yawm al-Thal\u0101th\u0101\u2019&quot;,&quot;Yawm al-Arba\u2018\u0101\u2019&quot;,&quot;Yawm al-Kham\u012bs&quot;,&quot;Yawm al-Jum\u2018a&quot;,&quot;Yawm al-Sabt&quot;],dayNamesMin:[&quot;Ah&quot;,&quot;Ith&quot;,&quot;Th&quot;,&quot;Ar&quot;,&quot;Kh&quot;,&quot;Ju&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;yyyy/mm/dd&quot;,firstDay:6,isRTL:!0}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,n.local.invalidYear);return 355===this.daysInYear(e.year())},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(-n.dayOfWeek(),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInYear:function(t){for(var e=0,r=1;r&lt;=12;r++)e+=this.daysInMonth(t,r);return e},daysInMonth:function(t,e){for(var r=this._validate(t,e,this.minDay,n.local.invalidMonth).toJD()-24e5+.5,i=0,a=0;a&lt;o.length;a++){if(o[a]&gt;r)return o[i]-o[i-1];i++}return 30},weekDay:function(t,e,r){return 5!==this.dayOfWeek(t,e,r)},toJD:function(t,e,r){var i=this._validate(t,e,r,n.local.invalidDate),a=12*(i.year()-1)+i.month()-15292;return i.day()+o[a-1]-1+24e5-.5},fromJD:function(t){for(var e=t-24e5+.5,r=0,n=0;n&lt;o.length&amp;&amp;!(o[n]&gt;e);n++)r++;var i=r+15292,a=Math.floor((i-1)/12),s=a+1,l=i-12*a,c=e-o[r-1]+1;return this.newDate(s,l,c)},isValid:function(t,e,r){var i=n.baseCalendar.prototype.isValid.apply(this,arguments);return i&amp;&amp;(i=(t=null!=t.year?t.year:t)&gt;=1276&amp;&amp;t&lt;=1500),i},_validate:function(t,e,r,i){var a=n.baseCalendar.prototype._validate.apply(this,arguments);if(a.year&lt;1276||a.year&gt;1500)throw i.replace(/\{0\}/,this.local.name);return a}}),n.calendars.ummalqura=a;var o=[20,50,79,109,138,168,197,227,256,286,315,345,374,404,433,463,492,522,551,581,611,641,670,700,729,759,788,818,847,877,906,936,965,995,1024,1054,1083,1113,1142,1172,1201,1231,1260,1290,1320,1350,1379,1409,1438,1468,1497,1527,1556,1586,1615,1645,1674,1704,1733,1763,1792,1822,1851,1881,1910,1940,1969,1999,2028,2058,2087,2117,2146,2176,2205,2235,2264,2294,2323,2353,2383,2413,2442,2472,2501,2531,2560,2590,2619,2649,2678,2708,2737,2767,2796,2826,2855,2885,2914,2944,2973,3003,3032,3062,3091,3121,3150,3180,3209,3239,3268,3298,3327,3357,3386,3416,3446,3476,3505,3535,3564,3594,3623,3653,3682,3712,3741,3771,3800,3830,3859,3889,3918,3948,3977,4007,4036,4066,4095,4125,4155,4185,4214,4244,4273,4303,4332,4362,4391,4421,4450,4480,4509,4539,4568,4598,4627,4657,4686,4716,4745,4775,4804,4834,4863,4893,4922,4952,4981,5011,5040,5070,5099,5129,5158,5188,5218,5248,5277,5307,5336,5366,5395,5425,5454,5484,5513,5543,5572,5602,5631,5661,5690,5720,5749,5779,5808,5838,5867,5897,5926,5956,5985,6015,6044,6074,6103,6133,6162,6192,6221,6251,6281,6311,6340,6370,6399,6429,6458,6488,6517,6547,6576,6606,6635,6665,6694,6724,6753,6783,6812,6842,6871,6901,6930,6960,6989,7019,7048,7078,7107,7137,7166,7196,7225,7255,7284,7314,7344,7374,7403,7433,7462,7492,7521,7551,7580,7610,7639,7669,7698,7728,7757,7787,7816,7846,7875,7905,7934,7964,7993,8023,8053,8083,8112,8142,8171,8201,8230,8260,8289,8319,8348,8378,8407,8437,8466,8496,8525,8555,8584,8614,8643,8673,8702,8732,8761,8791,8821,8850,8880,8909,8938,8968,8997,9027,9056,9086,9115,9145,9175,9205,9234,9264,9293,9322,9352,9381,9410,9440,9470,9499,9529,9559,9589,9618,9648,9677,9706,9736,9765,9794,9824,9853,9883,9913,9943,9972,10002,10032,10061,10090,10120,10149,10178,10208,10237,10267,10297,10326,10356,10386,10415,10445,10474,10504,10533,10562,10592,10621,10651,10680,10710,10740,10770,10799,10829,10858,10888,10917,10947,10976,11005,11035,11064,11094,11124,11153,11183,11213,11242,11272,11301,11331,11360,11389,11419,11448,11478,11507,11537,11567,11596,11626,11655,11685,11715,11744,11774,11803,11832,11862,11891,11921,11950,11980,12010,12039,12069,12099,12128,12158,12187,12216,12246,12275,12304,12334,12364,12393,12423,12453,12483,12512,12542,12571,12600,12630,12659,12688,12718,12747,12777,12807,12837,12866,12896,12926,12955,12984,13014,13043,13072,13102,13131,13161,13191,13220,13250,13280,13310,13339,13368,13398,13427,13456,13486,13515,13545,13574,13604,13634,13664,13693,13723,13752,13782,13811,13840,13870,13899,13929,13958,13988,14018,14047,14077,14107,14136,14166,14195,14224,14254,14283,14313,14342,14372,14401,14431,14461,14490,14520,14550,14579,14609,14638,14667,14697,14726,14756,14785,14815,14844,14874,14904,14933,14963,14993,15021,15051,15081,15110,15140,15169,15199,15228,15258,15287,15317,15347,15377,15406,15436,15465,15494,15524,15553,15582,15612,15641,15671,15701,15731,15760,15790,15820,15849,15878,15908,15937,15966,15996,16025,16055,16085,16114,16144,16174,16204,16233,16262,16292,16321,16350,16380,16409,16439,16468,16498,16528,16558,16587,16617,16646,16676,16705,16734,16764,16793,16823,16852,16882,16912,16941,16971,17001,17030,17060,17089,17118,17148,17177,17207,17236,17266,17295,17325,17355,17384,17414,17444,17473,17502,17532,17561,17591,17620,17650,17679,17709,17738,17768,17798,17827,17857,17886,17916,17945,17975,18004,18034,18063,18093,18122,18152,18181,18211,18241,18270,18300,18330,18359,18388,18418,18447,18476,18506,18535,18565,18595,18625,18654,18684,18714,18743,18772,18802,18831,18860,18890,18919,18949,18979,19008,19038,19068,19098,19127,19156,19186,19215,19244,19274,19303,19333,19362,19392,19422,19452,19481,19511,19540,19570,19599,19628,19658,19687,19717,19746,19776,19806,19836,19865,19895,19924,19954,19983,20012,20042,20071,20101,20130,20160,20190,20219,20249,20279,20308,20338,20367,20396,20426,20455,20485,20514,20544,20573,20603,20633,20662,20692,20721,20751,20780,20810,20839,20869,20898,20928,20957,20987,21016,21046,21076,21105,21135,21164,21194,21223,21253,21282,21312,21341,21371,21400,21430,21459,21489,21519,21548,21578,21607,21637,21666,21696,21725,21754,21784,21813,21843,21873,21902,21932,21962,21991,22021,22050,22080,22109,22138,22168,22197,22227,22256,22286,22316,22346,22375,22405,22434,22464,22493,22522,22552,22581,22611,22640,22670,22700,22730,22759,22789,22818,22848,22877,22906,22936,22965,22994,23024,23054,23083,23113,23143,23173,23202,23232,23261,23290,23320,23349,23379,23408,23438,23467,23497,23527,23556,23586,23616,23645,23674,23704,23733,23763,23792,23822,23851,23881,23910,23940,23970,23999,24029,24058,24088,24117,24147,24176,24206,24235,24265,24294,24324,24353,24383,24413,24442,24472,24501,24531,24560,24590,24619,24648,24678,24707,24737,24767,24796,24826,24856,24885,24915,24944,24974,25003,25032,25062,25091,25121,25150,25180,25210,25240,25269,25299,25328,25358,25387,25416,25446,25475,25505,25534,25564,25594,25624,25653,25683,25712,25742,25771,25800,25830,25859,25888,25918,25948,25977,26007,26037,26067,26096,26126,26155,26184,26214,26243,26272,26302,26332,26361,26391,26421,26451,26480,26510,26539,26568,26598,26627,26656,26686,26715,26745,26775,26805,26834,26864,26893,26923,26952,26982,27011,27041,27070,27099,27129,27159,27188,27218,27248,27277,27307,27336,27366,27395,27425,27454,27484,27513,27542,27572,27602,27631,27661,27691,27720,27750,27779,27809,27838,27868,27897,27926,27956,27985,28015,28045,28074,28104,28134,28163,28193,28222,28252,28281,28310,28340,28369,28399,28428,28458,28488,28517,28547,28577,28607,28636,28665,28695,28724,28754,28783,28813,28843,28872,28901,28931,28960,28990,29019,29049,29078,29108,29137,29167,29196,29226,29255,29285,29315,29345,29375,29404,29434,29463,29492,29522,29551,29580,29610,29640,29669,29699,29729,29759,29788,29818,29847,29876,29906,29935,29964,29994,30023,30053,30082,30112,30141,30171,30200,30230,30259,30289,30318,30348,30378,30408,30437,30467,30496,30526,30555,30585,30614,30644,30673,30703,30732,30762,30791,30821,30850,30880,30909,30939,30968,30998,31027,31057,31086,31116,31145,31175,31204,31234,31263,31293,31322,31352,31381,31411,31441,31471,31500,31530,31559,31589,31618,31648,31676,31706,31736,31766,31795,31825,31854,31884,31913,31943,31972,32002,32031,32061,32090,32120,32150,32180,32209,32239,32268,32298,32327,32357,32386,32416,32445,32475,32504,32534,32563,32593,32622,32652,32681,32711,32740,32770,32799,32829,32858,32888,32917,32947,32976,33006,33035,33065,33094,33124,33153,33183,33213,33243,33272,33302,33331,33361,33390,33420,33450,33479,33509,33539,33568,33598,33627,33657,33686,33716,33745,33775,33804,33834,33863,33893,33922,33952,33981,34011,34040,34069,34099,34128,34158,34187,34217,34247,34277,34306,34336,34365,34395,34424,34454,34483,34512,34542,34571,34601,34631,34660,34690,34719,34749,34778,34808,34837,34867,34896,34926,34955,34985,35015,35044,35074,35103,35133,35162,35192,35222,35251,35280,35310,35340,35370,35399,35429,35458,35488,35517,35547,35576,35605,35635,35665,35694,35723,35753,35782,35811,35841,35871,35901,35930,35960,35989,36019,36048,36078,36107,36136,36166,36195,36225,36254,36284,36314,36343,36373,36403,36433,36462,36492,36521,36551,36580,36610,36639,36669,36698,36728,36757,36786,36816,36845,36875,36904,36934,36963,36993,37022,37052,37081,37111,37141,37170,37200,37229,37259,37288,37318,37347,37377,37406,37436,37465,37495,37524,37554,37584,37613,37643,37672,37701,37731,37760,37790,37819,37849,37878,37908,37938,37967,37997,38027,38056,38085,38115,38144,38174,38203,38233,38262,38292,38322,38351,38381,38410,38440,38469,38499,38528,38558,38587,38617,38646,38676,38705,38735,38764,38794,38823,38853,38882,38912,38941,38971,39001,39030,39059,39089,39118,39148,39178,39208,39237,39267,39297,39326,39355,39385,39414,39444,39473,39503,39532,39562,39592,39621,39650,39680,39709,39739,39768,39798,39827,39857,39886,39916,39946,39975,40005,40035,40064,40094,40123,40153,40182,40212,40241,40271,40300,40330,40359,40389,40418,40448,40477,40507,40536,40566,40595,40625,40655,40685,40714,40744,40773,40803,40832,40862,40892,40921,40951,40980,41009,41039,41068,41098,41127,41157,41186,41216,41245,41275,41304,41334,41364,41393,41422,41452,41481,41511,41540,41570,41599,41629,41658,41688,41718,41748,41777,41807,41836,41865,41894,41924,41953,41983,42012,42042,42072,42102,42131,42161,42190,42220,42249,42279,42308,42337,42367,42397,42426,42456,42485,42515,42545,42574,42604,42633,42662,42692,42721,42751,42780,42810,42839,42869,42899,42929,42958,42988,43017,43046,43076,43105,43135,43164,43194,43223,43253,43283,43312,43342,43371,43401,43430,43460,43489,43519,43548,43578,43607,43637,43666,43696,43726,43755,43785,43814,43844,43873,43903,43932,43962,43991,44021,44050,44080,44109,44139,44169,44198,44228,44258,44287,44317,44346,44375,44405,44434,44464,44493,44523,44553,44582,44612,44641,44671,44700,44730,44759,44788,44818,44847,44877,44906,44936,44966,44996,45025,45055,45084,45114,45143,45172,45202,45231,45261,45290,45320,45350,45380,45409,45439,45468,45498,45527,45556,45586,45615,45644,45674,45704,45733,45763,45793,45823,45852,45882,45911,45940,45970,45999,46028,46058,46088,46117,46147,46177,46206,46236,46265,46295,46324,46354,46383,46413,46442,46472,46501,46531,46560,46590,46620,46649,46679,46708,46738,46767,46797,46826,46856,46885,46915,46944,46974,47003,47033,47063,47092,47122,47151,47181,47210,47240,47269,47298,47328,47357,47387,47417,47446,47476,47506,47535,47565,47594,47624,47653,47682,47712,47741,47771,47800,47830,47860,47890,47919,47949,47978,48008,48037,48066,48096,48125,48155,48184,48214,48244,48273,48303,48333,48362,48392,48421,48450,48480,48509,48538,48568,48598,48627,48657,48687,48717,48746,48776,48805,48834,48864,48893,48922,48952,48982,49011,49041,49071,49100,49130,49160,49189,49218,49248,49277,49306,49336,49365,49395,49425,49455,49484,49514,49543,49573,49602,49632,49661,49690,49720,49749,49779,49809,49838,49868,49898,49927,49957,49986,50016,50045,50075,50104,50133,50163,50192,50222,50252,50281,50311,50340,50370,50400,50429,50459,50488,50518,50547,50576,50606,50635,50665,50694,50724,50754,50784,50813,50843,50872,50902,50931,50960,50990,51019,51049,51078,51108,51138,51167,51197,51227,51256,51286,51315,51345,51374,51403,51433,51462,51492,51522,51552,51582,51611,51641,51670,51699,51729,51758,51787,51816,51846,51876,51906,51936,51965,51995,52025,52054,52083,52113,52142,52171,52200,52230,52260,52290,52319,52349,52379,52408,52438,52467,52497,52526,52555,52585,52614,52644,52673,52703,52733,52762,52792,52822,52851,52881,52910,52939,52969,52998,53028,53057,53087,53116,53146,53176,53205,53235,53264,53294,53324,53353,53383,53412,53441,53471,53500,53530,53559,53589,53619,53648,53678,53708,53737,53767,53796,53825,53855,53884,53913,53943,53973,54003,54032,54062,54092,54121,54151,54180,54209,54239,54268,54297,54327,54357,54387,54416,54446,54476,54505,54535,54564,54593,54623,54652,54681,54711,54741,54770,54800,54830,54859,54889,54919,54948,54977,55007,55036,55066,55095,55125,55154,55184,55213,55243,55273,55302,55332,55361,55391,55420,55450,55479,55508,55538,55567,55597,55627,55657,55686,55716,55745,55775,55804,55834,55863,55892,55922,55951,55981,56011,56040,56070,56100,56129,56159,56188,56218,56247,56276,56306,56335,56365,56394,56424,56454,56483,56513,56543,56572,56601,56631,56660,56690,56719,56749,56778,56808,56837,56867,56897,56926,56956,56985,57015,57044,57074,57103,57133,57162,57192,57221,57251,57280,57310,57340,57369,57399,57429,57458,57487,57517,57546,57576,57605,57634,57664,57694,57723,57753,57783,57813,57842,57871,57901,57930,57959,57989,58018,58048,58077,58107,58137,58167,58196,58226,58255,58285,58314,58343,58373,58402,58432,58461,58491,58521,58551,58580,58610,58639,58669,58698,58727,58757,58786,58816,58845,58875,58905,58934,58964,58994,59023,59053,59082,59111,59141,59170,59200,59229,59259,59288,59318,59348,59377,59407,59436,59466,59495,59525,59554,59584,59613,59643,59672,59702,59731,59761,59791,59820,59850,59879,59909,59939,59968,59997,60027,60056,60086,60115,60145,60174,60204,60234,60264,60293,60323,60352,60381,60411,60440,60469,60499,60528,60558,60588,60618,60648,60677,60707,60736,60765,60795,60824,60853,60883,60912,60942,60972,61002,61031,61061,61090,61120,61149,61179,61208,61237,61267,61296,61326,61356,61385,61415,61445,61474,61504,61533,61563,61592,61621,61651,61680,61710,61739,61769,61799,61828,61858,61888,61917,61947,61976,62006,62035,62064,62094,62123,62153,62182,62212,62242,62271,62301,62331,62360,62390,62419,62448,62478,62507,62537,62566,62596,62625,62655,62685,62715,62744,62774,62803,62832,62862,62891,62921,62950,62980,63009,63039,63069,63099,63128,63157,63187,63216,63246,63275,63305,63334,63363,63393,63423,63453,63482,63512,63541,63571,63600,63630,63659,63689,63718,63747,63777,63807,63836,63866,63895,63925,63955,63984,64014,64043,64073,64102,64131,64161,64190,64220,64249,64279,64309,64339,64368,64398,64427,64457,64486,64515,64545,64574,64603,64633,64663,64692,64722,64752,64782,64811,64841,64870,64899,64929,64958,64987,65017,65047,65076,65106,65136,65166,65195,65225,65254,65283,65313,65342,65371,65401,65431,65460,65490,65520,65549,65579,65608,65638,65667,65697,65726,65755,65785,65815,65844,65874,65903,65933,65963,65992,66022,66051,66081,66110,66140,66169,66199,66228,66258,66287,66317,66346,66376,66405,66435,66465,66494,66524,66553,66583,66612,66641,66671,66700,66730,66760,66789,66819,66849,66878,66908,66937,66967,66996,67025,67055,67084,67114,67143,67173,67203,67233,67262,67292,67321,67351,67380,67409,67439,67468,67497,67527,67557,67587,67617,67646,67676,67705,67735,67764,67793,67823,67852,67882,67911,67941,67971,68e3,68030,68060,68089,68119,68148,68177,68207,68236,68266,68295,68325,68354,68384,68414,68443,68473,68502,68532,68561,68591,68620,68650,68679,68708,68738,68768,68797,68827,68857,68886,68916,68946,68975,69004,69034,69063,69092,69122,69152,69181,69211,69240,69270,69300,69330,69359,69388,69418,69447,69476,69506,69535,69565,69595,69624,69654,69684,69713,69743,69772,69802,69831,69861,69890,69919,69949,69978,70008,70038,70067,70097,70126,70156,70186,70215,70245,70274,70303,70333,70362,70392,70421,70451,70481,70510,70540,70570,70599,70629,70658,70687,70717,70746,70776,70805,70835,70864,70894,70924,70954,70983,71013,71042,71071,71101,71130,71159,71189,71218,71248,71278,71308,71337,71367,71397,71426,71455,71485,71514,71543,71573,71602,71632,71662,71691,71721,71751,71781,71810,71839,71869,71898,71927,71957,71986,72016,72046,72075,72105,72135,72164,72194,72223,72253,72282,72311,72341,72370,72400,72429,72459,72489,72518,72548,72577,72607,72637,72666,72695,72725,72754,72784,72813,72843,72872,72902,72931,72961,72991,73020,73050,73080,73109,73139,73168,73197,73227,73256,73286,73315,73345,73375,73404,73434,73464,73493,73523,73552,73581,73611,73640,73669,73699,73729,73758,73788,73818,73848,73877,73907,73936,73965,73995,74024,74053,74083,74113,74142,74172,74202,74231,74261,74291,74320,74349,74379,74408,74437,74467,74497,74526,74556,74586,74615,74645,74675,74704,74733,74763,74792,74822,74851,74881,74910,74940,74969,74999,75029,75058,75088,75117,75147,75176,75206,75235,75264,75294,75323,75353,75383,75412,75442,75472,75501,75531,75560,75590,75619,75648,75678,75707,75737,75766,75796,75826,75856,75885,75915,75944,75974,76003,76032,76062,76091,76121,76150,76180,76210,76239,76269,76299,76328,76358,76387,76416,76446,76475,76505,76534,76564,76593,76623,76653,76682,76712,76741,76771,76801,76830,76859,76889,76918,76948,76977,77007,77036,77066,77096,77125,77155,77185,77214,77243,77273,77302,77332,77361,77390,77420,77450,77479,77509,77539,77569,77598,77627,77657,77686,77715,77745,77774,77804,77833,77863,77893,77923,77952,77982,78011,78041,78070,78099,78129,78158,78188,78217,78247,78277,78307,78336,78366,78395,78425,78454,78483,78513,78542,78572,78601,78631,78661,78690,78720,78750,78779,78808,78838,78867,78897,78926,78956,78985,79015,79044,79074,79104,79133,79163,79192,79222,79251,79281,79310,79340,79369,79399,79428,79458,79487,79517,79546,79576,79606,79635,79665,79695,79724,79753,79783,79812,79841,79871,79900,79930,79960,79990]},{&quot;../main&quot;:621,&quot;object-assign&quot;:499}],621:[function(t,e,r){var n=t(&quot;object-assign&quot;);function i(){this.regionalOptions=[],this.regionalOptions[&quot;&quot;]={invalidCalendar:&quot;Calendar {0} not found&quot;,invalidDate:&quot;Invalid {0} date&quot;,invalidMonth:&quot;Invalid {0} month&quot;,invalidYear:&quot;Invalid {0} year&quot;,differentCalendars:&quot;Cannot mix {0} and {1} dates&quot;},this.local=this.regionalOptions[&quot;&quot;],this.calendars={},this._localCals={}}function a(t,e,r,n){if(this._calendar=t,this._year=e,this._month=r,this._day=n,0===this._calendar._validateLevel&amp;&amp;!this._calendar.isValid(this._year,this._month,this._day))throw(c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate).replace(/\{0\}/,this._calendar.local.name)}function o(t,e){return&quot;000000&quot;.substring(0,e-(t=&quot;&quot;+t).length)+t}function s(){this.shortYearCutoff=&quot;+10&quot;}function l(t){this.local=this.regionalOptions[t]||this.regionalOptions[&quot;&quot;]}n(i.prototype,{instance:function(t,e){t=(t||&quot;gregorian&quot;).toLowerCase(),e=e||&quot;&quot;;var r=this._localCals[t+&quot;-&quot;+e];if(!r&amp;&amp;this.calendars[t]&amp;&amp;(r=new this.calendars[t](e),this._localCals[t+&quot;-&quot;+e]=r),!r)throw(this.local.invalidCalendar||this.regionalOptions[&quot;&quot;].invalidCalendar).replace(/\{0\}/,t);return r},newDate:function(t,e,r,n,i){return(n=(null!=t&amp;&amp;t.year?t.calendar():&quot;string&quot;==typeof n?this.instance(n,i):n)||this.instance()).newDate(t,e,r)},substituteDigits:function(t){return function(e){return(e+&quot;&quot;).replace(/[0-9]/g,(function(e){return t[e]}))}},substituteChineseDigits:function(t,e){return function(r){for(var n=&quot;&quot;,i=0;r&gt;0;){var a=r%10;n=(0===a?&quot;&quot;:t[a]+e[i])+n,i++,r=Math.floor(r/10)}return 0===n.indexOf(t[1]+e[1])&amp;&amp;(n=n.substr(1)),n||t[0]}}}),n(a.prototype,{newDate:function(t,e,r){return this._calendar.newDate(null==t?this:t,e,r)},year:function(t){return 0===arguments.length?this._year:this.set(t,&quot;y&quot;)},month:function(t){return 0===arguments.length?this._month:this.set(t,&quot;m&quot;)},day:function(t){return 0===arguments.length?this._day:this.set(t,&quot;d&quot;)},date:function(t,e,r){if(!this._calendar.isValid(t,e,r))throw(c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate).replace(/\{0\}/,this._calendar.local.name);return this._year=t,this._month=e,this._day=r,this},leapYear:function(){return this._calendar.leapYear(this)},epoch:function(){return this._calendar.epoch(this)},formatYear:function(){return this._calendar.formatYear(this)},monthOfYear:function(){return this._calendar.monthOfYear(this)},weekOfYear:function(){return this._calendar.weekOfYear(this)},daysInYear:function(){return this._calendar.daysInYear(this)},dayOfYear:function(){return this._calendar.dayOfYear(this)},daysInMonth:function(){return this._calendar.daysInMonth(this)},dayOfWeek:function(){return this._calendar.dayOfWeek(this)},weekDay:function(){return this._calendar.weekDay(this)},extraInfo:function(){return this._calendar.extraInfo(this)},add:function(t,e){return this._calendar.add(this,t,e)},set:function(t,e){return this._calendar.set(this,t,e)},compareTo:function(t){if(this._calendar.name!==t._calendar.name)throw(c.local.differentCalendars||c.regionalOptions[&quot;&quot;].differentCalendars).replace(/\{0\}/,this._calendar.local.name).replace(/\{1\}/,t._calendar.local.name);var e=this._year!==t._year?this._year-t._year:this._month!==t._month?this.monthOfYear()-t.monthOfYear():this._day-t._day;return 0===e?0:e&lt;0?-1:1},calendar:function(){return this._calendar},toJD:function(){return this._calendar.toJD(this)},fromJD:function(t){return this._calendar.fromJD(t)},toJSDate:function(){return this._calendar.toJSDate(this)},fromJSDate:function(t){return this._calendar.fromJSDate(t)},toString:function(){return(this.year()&lt;0?&quot;-&quot;:&quot;&quot;)+o(Math.abs(this.year()),4)+&quot;-&quot;+o(this.month(),2)+&quot;-&quot;+o(this.day(),2)}}),n(s.prototype,{_validateLevel:0,newDate:function(t,e,r){return null==t?this.today():(t.year&amp;&amp;(this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),r=t.day(),e=t.month(),t=t.year()),new a(this,t,e,r))},today:function(){return this.fromJSDate(new Date)},epoch:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear).year()&lt;0?this.local.epochs[0]:this.local.epochs[1]},formatYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return(e.year()&lt;0?&quot;-&quot;:&quot;&quot;)+o(Math.abs(e.year()),4)},monthsInYear:function(t){return this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear),12},monthOfYear:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth);return(r.month()+this.monthsInYear(r)-this.firstMonth)%this.monthsInYear(r)+this.minMonth},fromMonthOfYear:function(t,e){var r=(e+this.firstMonth-2*this.minMonth)%this.monthsInYear(t)+this.minMonth;return this._validate(t,r,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth),r},daysInYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return this.leapYear(e)?366:365},dayOfYear:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return n.toJD()-this.newDate(n.year(),this.fromMonthOfYear(n.year(),this.minMonth),this.minDay).toJD()+1},daysInWeek:function(){return 7},dayOfWeek:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return(Math.floor(this.toJD(n))+2)%this.daysInWeek()},extraInfo:function(t,e,r){return this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),{}},add:function(t,e,r){return this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),this._correctAdd(t,this._add(t,e,r),e,r)},_add:function(t,e,r){if(this._validateLevel++,&quot;d&quot;===r||&quot;w&quot;===r){var n=t.toJD()+e*(&quot;w&quot;===r?this.daysInWeek():1),i=t.calendar().fromJD(n);return this._validateLevel--,[i.year(),i.month(),i.day()]}try{var a=t.year()+(&quot;y&quot;===r?e:0),o=t.monthOfYear()+(&quot;m&quot;===r?e:0);i=t.day();&quot;y&quot;===r?(t.month()!==this.fromMonthOfYear(a,o)&amp;&amp;(o=this.newDate(a,t.month(),this.minDay).monthOfYear()),o=Math.min(o,this.monthsInYear(a)),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o)))):&quot;m&quot;===r&amp;&amp;(!function(t){for(;o&lt;t.minMonth;)a--,o+=t.monthsInYear(a);for(var e=t.monthsInYear(a);o&gt;e-1+t.minMonth;)a++,o-=e,e=t.monthsInYear(a)}(this),i=Math.min(i,this.daysInMonth(a,this.fromMonthOfYear(a,o))));var s=[a,this.fromMonthOfYear(a,o),i];return this._validateLevel--,s}catch(t){throw this._validateLevel--,t}},_correctAdd:function(t,e,r,n){if(!(this.hasYearZero||&quot;y&quot;!==n&amp;&amp;&quot;m&quot;!==n||0!==e[0]&amp;&amp;t.year()&gt;0==e[0]&gt;0)){var i={y:[1,1,&quot;y&quot;],m:[1,this.monthsInYear(-1),&quot;m&quot;],w:[this.daysInWeek(),this.daysInYear(-1),&quot;d&quot;],d:[1,this.daysInYear(-1),&quot;d&quot;]}[n],a=r&lt;0?-1:1;e=this._add(t,r*i[0]+a*i[1],i[2])}return t.date(e[0],e[1],e[2])},set:function(t,e,r){this._validate(t,this.minMonth,this.minDay,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);var n=&quot;y&quot;===r?e:t.year(),i=&quot;m&quot;===r?e:t.month(),a=&quot;d&quot;===r?e:t.day();return&quot;y&quot;!==r&amp;&amp;&quot;m&quot;!==r||(a=Math.min(a,this.daysInMonth(n,i))),t.date(n,i,a)},isValid:function(t,e,r){this._validateLevel++;var n=this.hasYearZero||0!==t;if(n){var i=this.newDate(t,e,this.minDay);n=e&gt;=this.minMonth&amp;&amp;e-this.minMonth&lt;this.monthsInYear(i)&amp;&amp;r&gt;=this.minDay&amp;&amp;r-this.minDay&lt;this.daysInMonth(i)}return this._validateLevel--,n},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);return c.instance().fromJD(this.toJD(n)).toJSDate()},fromJSDate:function(t){return this.fromJD(c.instance().fromJSDate(t).toJD())},_validate:function(t,e,r,n){if(t.year){if(0===this._validateLevel&amp;&amp;this.name!==t.calendar().name)throw(c.local.differentCalendars||c.regionalOptions[&quot;&quot;].differentCalendars).replace(/\{0\}/,this.local.name).replace(/\{1\}/,t.calendar().local.name);return t}try{if(this._validateLevel++,1===this._validateLevel&amp;&amp;!this.isValid(t,e,r))throw n.replace(/\{0\}/,this.local.name);var i=this.newDate(t,e,r);return this._validateLevel--,i}catch(t){throw this._validateLevel--,t}}}),l.prototype=new s,n(l.prototype,{name:&quot;Gregorian&quot;,jdEpoch:1721425.5,daysPerMonth:[31,28,31,30,31,30,31,31,30,31,30,31],hasYearZero:!1,minMonth:1,firstMonth:1,minDay:1,regionalOptions:{&quot;&quot;:{name:&quot;Gregorian&quot;,epochs:[&quot;BCE&quot;,&quot;CE&quot;],monthNames:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],monthNamesShort:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],dayNames:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],dayNamesShort:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],dayNamesMin:[&quot;Su&quot;,&quot;Mo&quot;,&quot;Tu&quot;,&quot;We&quot;,&quot;Th&quot;,&quot;Fr&quot;,&quot;Sa&quot;],digits:null,dateFormat:&quot;mm/dd/yyyy&quot;,firstDay:0,isRTL:!1}},leapYear:function(t){var e=this._validate(t,this.minMonth,this.minDay,c.local.invalidYear||c.regionalOptions[&quot;&quot;].invalidYear);return(t=e.year()+(e.year()&lt;0?1:0))%4==0&amp;&amp;(t%100!=0||t%400==0)},weekOfYear:function(t,e,r){var n=this.newDate(t,e,r);return n.add(4-(n.dayOfWeek()||7),&quot;d&quot;),Math.floor((n.dayOfYear()-1)/7)+1},daysInMonth:function(t,e){var r=this._validate(t,e,this.minDay,c.local.invalidMonth||c.regionalOptions[&quot;&quot;].invalidMonth);return this.daysPerMonth[r.month()-1]+(2===r.month()&amp;&amp;this.leapYear(r.year())?1:0)},weekDay:function(t,e,r){return(this.dayOfWeek(t,e,r)||7)&lt;6},toJD:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate);t=n.year(),e=n.month(),r=n.day(),t&lt;0&amp;&amp;t++,e&lt;3&amp;&amp;(e+=12,t--);var i=Math.floor(t/100),a=2-i+Math.floor(i/4);return Math.floor(365.25*(t+4716))+Math.floor(30.6001*(e+1))+r+a-1524.5},fromJD:function(t){var e=Math.floor(t+.5),r=Math.floor((e-1867216.25)/36524.25),n=(r=e+1+r-Math.floor(r/4))+1524,i=Math.floor((n-122.1)/365.25),a=Math.floor(365.25*i),o=Math.floor((n-a)/30.6001),s=n-a-Math.floor(30.6001*o),l=o-(o&gt;13.5?13:1),c=i-(l&gt;2.5?4716:4715);return c&lt;=0&amp;&amp;c--,this.newDate(c,l,s)},toJSDate:function(t,e,r){var n=this._validate(t,e,r,c.local.invalidDate||c.regionalOptions[&quot;&quot;].invalidDate),i=new Date(n.year(),n.month()-1,n.day());return i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0),i.setHours(i.getHours()&gt;12?i.getHours()+2:0),i},fromJSDate:function(t){return this.newDate(t.getFullYear(),t.getMonth()+1,t.getDate())}});var c=e.exports=new i;c.cdate=a,c.baseCalendar=s,c.calendars.gregorian=l},{&quot;object-assign&quot;:499}],622:[function(t,e,r){var n=t(&quot;object-assign&quot;),i=t(&quot;./main&quot;);n(i.regionalOptions[&quot;&quot;],{invalidArguments:&quot;Invalid arguments&quot;,invalidFormat:&quot;Cannot format a date from another calendar&quot;,missingNumberAt:&quot;Missing number at position {0}&quot;,unknownNameAt:&quot;Unknown name at position {0}&quot;,unexpectedLiteralAt:&quot;Unexpected literal at position {0}&quot;,unexpectedText:&quot;Additional text found at end&quot;}),i.local=i.regionalOptions[&quot;&quot;],n(i.cdate.prototype,{formatDate:function(t,e){return&quot;string&quot;!=typeof t&amp;&amp;(e=t,t=&quot;&quot;),this._calendar.formatDate(t||&quot;&quot;,this,e)}}),n(i.baseCalendar.prototype,{UNIX_EPOCH:i.instance().newDate(1970,1,1).toJD(),SECS_PER_DAY:86400,TICKS_EPOCH:i.instance().jdEpoch,TICKS_PER_DAY:864e9,ATOM:&quot;yyyy-mm-dd&quot;,COOKIE:&quot;D, dd M yyyy&quot;,FULL:&quot;DD, MM d, yyyy&quot;,ISO_8601:&quot;yyyy-mm-dd&quot;,JULIAN:&quot;J&quot;,RFC_822:&quot;D, d M yy&quot;,RFC_850:&quot;DD, dd-M-yy&quot;,RFC_1036:&quot;D, d M yy&quot;,RFC_1123:&quot;D, d M yyyy&quot;,RFC_2822:&quot;D, d M yyyy&quot;,RSS:&quot;D, d M yy&quot;,TICKS:&quot;!&quot;,TIMESTAMP:&quot;@&quot;,W3C:&quot;yyyy-mm-dd&quot;,formatDate:function(t,e,r){if(&quot;string&quot;!=typeof t&amp;&amp;(r=e,e=t,t=&quot;&quot;),!e)return&quot;&quot;;if(e.calendar()!==this)throw i.local.invalidFormat||i.regionalOptions[&quot;&quot;].invalidFormat;t=t||this.local.dateFormat;for(var n,a,o,s,l=(r=r||{}).dayNamesShort||this.local.dayNamesShort,c=r.dayNames||this.local.dayNames,u=r.monthNumbers||this.local.monthNumbers,f=r.monthNamesShort||this.local.monthNamesShort,h=r.monthNames||this.local.monthNames,p=(r.calculateWeek||this.local.calculateWeek,function(e,r){for(var n=1;w+n&lt;t.length&amp;&amp;t.charAt(w+n)===e;)n++;return w+=n-1,Math.floor(n/(r||1))&gt;1}),d=function(t,e,r,n){var i=&quot;&quot;+e;if(p(t,n))for(;i.length&lt;r;)i=&quot;0&quot;+i;return i},g=this,m=function(t){return&quot;function&quot;==typeof u?u.call(g,t,p(&quot;m&quot;)):x(d(&quot;m&quot;,t.month(),2))},v=function(t,e){return e?&quot;function&quot;==typeof h?h.call(g,t):h[t.month()-g.minMonth]:&quot;function&quot;==typeof f?f.call(g,t):f[t.month()-g.minMonth]},y=this.local.digits,x=function(t){return r.localNumbers&amp;&amp;y?y(t):t},b=&quot;&quot;,_=!1,w=0;w&lt;t.length;w++)if(_)&quot;'&quot;!==t.charAt(w)||p(&quot;'&quot;)?b+=t.charAt(w):_=!1;else switch(t.charAt(w)){case&quot;d&quot;:b+=x(d(&quot;d&quot;,e.day(),2));break;case&quot;D&quot;:b+=(n=&quot;D&quot;,a=e.dayOfWeek(),o=l,s=c,p(n)?s[a]:o[a]);break;case&quot;o&quot;:b+=d(&quot;o&quot;,e.dayOfYear(),3);break;case&quot;w&quot;:b+=d(&quot;w&quot;,e.weekOfYear(),2);break;case&quot;m&quot;:b+=m(e);break;case&quot;M&quot;:b+=v(e,p(&quot;M&quot;));break;case&quot;y&quot;:b+=p(&quot;y&quot;,2)?e.year():(e.year()%100&lt;10?&quot;0&quot;:&quot;&quot;)+e.year()%100;break;case&quot;Y&quot;:p(&quot;Y&quot;,2),b+=e.formatYear();break;case&quot;J&quot;:b+=e.toJD();break;case&quot;@&quot;:b+=(e.toJD()-this.UNIX_EPOCH)*this.SECS_PER_DAY;break;case&quot;!&quot;:b+=(e.toJD()-this.TICKS_EPOCH)*this.TICKS_PER_DAY;break;case&quot;'&quot;:p(&quot;'&quot;)?b+=&quot;'&quot;:_=!0;break;default:b+=t.charAt(w)}return b},parseDate:function(t,e,r){if(null==e)throw i.local.invalidArguments||i.regionalOptions[&quot;&quot;].invalidArguments;if(&quot;&quot;===(e=&quot;object&quot;==typeof e?e.toString():e+&quot;&quot;))return null;t=t||this.local.dateFormat;var n=(r=r||{}).shortYearCutoff||this.shortYearCutoff;n=&quot;string&quot;!=typeof n?n:this.today().year()%100+parseInt(n,10);for(var a=r.dayNamesShort||this.local.dayNamesShort,o=r.dayNames||this.local.dayNames,s=r.parseMonth||this.local.parseMonth,l=r.monthNumbers||this.local.monthNumbers,c=r.monthNamesShort||this.local.monthNamesShort,u=r.monthNames||this.local.monthNames,f=-1,h=-1,p=-1,d=-1,g=-1,m=!1,v=!1,y=function(e,r){for(var n=1;A+n&lt;t.length&amp;&amp;t.charAt(A+n)===e;)n++;return A+=n-1,Math.floor(n/(r||1))&gt;1},x=function(t,r){var n=y(t,r),a=[2,3,n?4:2,n?4:2,10,11,20][&quot;oyYJ@!&quot;.indexOf(t)+1],o=new RegExp(&quot;^-?\\d{1,&quot;+a+&quot;}&quot;),s=e.substring(M).match(o);if(!s)throw(i.local.missingNumberAt||i.regionalOptions[&quot;&quot;].missingNumberAt).replace(/\{0\}/,M);return M+=s[0].length,parseInt(s[0],10)},b=this,_=function(){if(&quot;function&quot;==typeof l){y(&quot;m&quot;);var t=l.call(b,e.substring(M));return M+=t.length,t}return x(&quot;m&quot;)},w=function(t,r,n,a){for(var o=y(t,a)?n:r,s=0;s&lt;o.length;s++)if(e.substr(M,o[s].length).toLowerCase()===o[s].toLowerCase())return M+=o[s].length,s+b.minMonth;throw(i.local.unknownNameAt||i.regionalOptions[&quot;&quot;].unknownNameAt).replace(/\{0\}/,M)},T=function(){if(&quot;function&quot;==typeof u){var t=y(&quot;M&quot;)?u.call(b,e.substring(M)):c.call(b,e.substring(M));return M+=t.length,t}return w(&quot;M&quot;,c,u)},k=function(){if(e.charAt(M)!==t.charAt(A))throw(i.local.unexpectedLiteralAt||i.regionalOptions[&quot;&quot;].unexpectedLiteralAt).replace(/\{0\}/,M);M++},M=0,A=0;A&lt;t.length;A++)if(v)&quot;'&quot;!==t.charAt(A)||y(&quot;'&quot;)?k():v=!1;else switch(t.charAt(A)){case&quot;d&quot;:d=x(&quot;d&quot;);break;case&quot;D&quot;:w(&quot;D&quot;,a,o);break;case&quot;o&quot;:g=x(&quot;o&quot;);break;case&quot;w&quot;:x(&quot;w&quot;);break;case&quot;m&quot;:p=_();break;case&quot;M&quot;:p=T();break;case&quot;y&quot;:var S=A;m=!y(&quot;y&quot;,2),A=S,h=x(&quot;y&quot;,2);break;case&quot;Y&quot;:h=x(&quot;Y&quot;,2);break;case&quot;J&quot;:f=x(&quot;J&quot;)+.5,&quot;.&quot;===e.charAt(M)&amp;&amp;(M++,x(&quot;J&quot;));break;case&quot;@&quot;:f=x(&quot;@&quot;)/this.SECS_PER_DAY+this.UNIX_EPOCH;break;case&quot;!&quot;:f=x(&quot;!&quot;)/this.TICKS_PER_DAY+this.TICKS_EPOCH;break;case&quot;*&quot;:M=e.length;break;case&quot;'&quot;:y(&quot;'&quot;)?k():v=!0;break;default:k()}if(M&lt;e.length)throw i.local.unexpectedText||i.regionalOptions[&quot;&quot;].unexpectedText;if(-1===h?h=this.today().year():h&lt;100&amp;&amp;m&amp;&amp;(h+=-1===n?1900:this.today().year()-this.today().year()%100-(h&lt;=n?0:100)),&quot;string&quot;==typeof p&amp;&amp;(p=s.call(this,h,p)),g&gt;-1){p=1,d=g;for(var E=this.daysInMonth(h,p);d&gt;E;E=this.daysInMonth(h,p))p++,d-=E}return f&gt;-1?this.fromJD(f):this.newDate(h,p,d)},determineDate:function(t,e,r,n,i){r&amp;&amp;&quot;object&quot;!=typeof r&amp;&amp;(i=n,n=r,r=null),&quot;string&quot;!=typeof n&amp;&amp;(i=n,n=&quot;&quot;);var a=this;return e=e?e.newDate():null,t=null==t?e:&quot;string&quot;==typeof t?function(t){try{return a.parseDate(n,t,i)}catch(t){}for(var e=((t=t.toLowerCase()).match(/^c/)&amp;&amp;r?r.newDate():null)||a.today(),o=/([+-]?[0-9]+)\s*(d|w|m|y)?/g,s=o.exec(t);s;)e.add(parseInt(s[1],10),s[2]||&quot;d&quot;),s=o.exec(t);return e}(t):&quot;number&quot;==typeof t?isNaN(t)||t===1/0||t===-1/0?e:a.today().add(t,&quot;d&quot;):a.newDate(t)}})},{&quot;./main&quot;:621,&quot;object-assign&quot;:499}],623:[function(t,e,r){e.exports=t(&quot;cwise-compiler&quot;)({args:[&quot;array&quot;,{offset:[1],array:0},&quot;scalar&quot;,&quot;scalar&quot;,&quot;index&quot;],pre:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},post:{body:&quot;{}&quot;,args:[],thisVars:[],localVars:[]},body:{body:&quot;{\n        var _inline_1_da = _inline_1_arg0_ - _inline_1_arg3_\n        var _inline_1_db = _inline_1_arg1_ - _inline_1_arg3_\n        if((_inline_1_da &gt;= 0) !== (_inline_1_db &gt;= 0)) {\n          _inline_1_arg2_.push(_inline_1_arg4_[0] + 0.5 + 0.5 * (_inline_1_da + _inline_1_db) / (_inline_1_da - _inline_1_db))\n        }\n      }&quot;,args:[{name:&quot;_inline_1_arg0_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg1_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg2_&quot;,lvalue:!1,rvalue:!0,count:1},{name:&quot;_inline_1_arg3_&quot;,lvalue:!1,rvalue:!0,count:2},{name:&quot;_inline_1_arg4_&quot;,lvalue:!1,rvalue:!0,count:1}],thisVars:[],localVars:[&quot;_inline_1_da&quot;,&quot;_inline_1_db&quot;]},funcName:&quot;zeroCrossings&quot;})},{&quot;cwise-compiler&quot;:151}],624:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r=[];return e=+e||0,n(t.hi(t.shape[0]-1),r,e),r};var n=t(&quot;./lib/zc-core&quot;)},{&quot;./lib/zc-core&quot;:623}],625:[function(t,e,r){&quot;use strict&quot;;e.exports=[{path:&quot;&quot;,backoff:0},{path:&quot;M-2.4,-3V3L0.6,0Z&quot;,backoff:.6},{path:&quot;M-3.7,-2.5V2.5L1.3,0Z&quot;,backoff:1.3},{path:&quot;M-4.45,-3L-1.65,-0.2V0.2L-4.45,3L1.55,0Z&quot;,backoff:1.55},{path:&quot;M-2.2,-2.2L-0.2,-0.2V0.2L-2.2,2.2L-1.4,3L1.6,0L-1.4,-3Z&quot;,backoff:1.6},{path:&quot;M-4.4,-2.1L-0.6,-0.2V0.2L-4.4,2.1L-4,3L2,0L-4,-3Z&quot;,backoff:2},{path:&quot;M2,0A2,2 0 1,1 0,-2A2,2 0 0,1 2,0Z&quot;,backoff:0,noRotate:!0},{path:&quot;M2,2V-2H-2V2Z&quot;,backoff:0,noRotate:!0}]},{}],626:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./arrow_paths&quot;),i=t(&quot;../../plots/font_attributes&quot;),a=t(&quot;../../plots/cartesian/constants&quot;),o=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=o(&quot;annotation&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},text:{valType:&quot;string&quot;,editType:&quot;calc+arraydraw&quot;},textangle:{valType:&quot;angle&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},font:i({editType:&quot;calc+arraydraw&quot;,colorEditType:&quot;arraydraw&quot;}),width:{valType:&quot;number&quot;,min:1,dflt:null,editType:&quot;calc+arraydraw&quot;},height:{valType:&quot;number&quot;,min:1,dflt:null,editType:&quot;calc+arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;center&quot;,editType:&quot;arraydraw&quot;},valign:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;,editType:&quot;arraydraw&quot;},bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},bordercolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},borderpad:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc+arraydraw&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc+arraydraw&quot;},showarrow:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},arrowcolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},arrowhead:{valType:&quot;integer&quot;,min:0,max:n.length,dflt:1,editType:&quot;arraydraw&quot;},startarrowhead:{valType:&quot;integer&quot;,min:0,max:n.length,dflt:1,editType:&quot;arraydraw&quot;},arrowside:{valType:&quot;flaglist&quot;,flags:[&quot;end&quot;,&quot;start&quot;],extras:[&quot;none&quot;],dflt:&quot;end&quot;,editType:&quot;arraydraw&quot;},arrowsize:{valType:&quot;number&quot;,min:.3,dflt:1,editType:&quot;calc+arraydraw&quot;},startarrowsize:{valType:&quot;number&quot;,min:.3,dflt:1,editType:&quot;calc+arraydraw&quot;},arrowwidth:{valType:&quot;number&quot;,min:.1,editType:&quot;calc+arraydraw&quot;},standoff:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc+arraydraw&quot;},startstandoff:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc+arraydraw&quot;},ax:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},ay:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},axref:{valType:&quot;enumerated&quot;,dflt:&quot;pixel&quot;,values:[&quot;pixel&quot;,a.idRegex.x.toString()],editType:&quot;calc&quot;},ayref:{valType:&quot;enumerated&quot;,dflt:&quot;pixel&quot;,values:[&quot;pixel&quot;,a.idRegex.y.toString()],editType:&quot;calc&quot;},xref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,a.idRegex.x.toString()],editType:&quot;calc&quot;},x:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;auto&quot;,editType:&quot;calc+arraydraw&quot;},xshift:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},yref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,a.idRegex.y.toString()],editType:&quot;calc&quot;},y:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;auto&quot;,editType:&quot;calc+arraydraw&quot;},yshift:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc+arraydraw&quot;},clicktoshow:{valType:&quot;enumerated&quot;,values:[!1,&quot;onoff&quot;,&quot;onout&quot;],dflt:!1,editType:&quot;arraydraw&quot;},xclick:{valType:&quot;any&quot;,editType:&quot;arraydraw&quot;},yclick:{valType:&quot;any&quot;,editType:&quot;arraydraw&quot;},hovertext:{valType:&quot;string&quot;,editType:&quot;arraydraw&quot;},hoverlabel:{bgcolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},bordercolor:{valType:&quot;color&quot;,editType:&quot;arraydraw&quot;},font:i({editType:&quot;arraydraw&quot;}),editType:&quot;arraydraw&quot;},captureevents:{valType:&quot;boolean&quot;,editType:&quot;arraydraw&quot;},editType:&quot;calc&quot;,_deprecated:{ref:{valType:&quot;string&quot;,editType:&quot;calc&quot;}}})},{&quot;../../constants/axis_placeable_objects&quot;:746,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834,&quot;../../plots/font_attributes&quot;:856,&quot;./arrow_paths&quot;:625}],627:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;./draw&quot;).draw;function o(t){var e=t._fullLayout;n.filterVisible(e.annotations).forEach((function(e){var r=i.getFromId(t,e.xref),n=i.getFromId(t,e.yref),a=i.getRefType(e.xref),o=i.getRefType(e.yref);e._extremes={},&quot;range&quot;===a&amp;&amp;s(e,r),&quot;range&quot;===o&amp;&amp;s(e,n)}))}function s(t,e){var r,n=e._id,a=n.charAt(0),o=t[a],s=t[&quot;a&quot;+a],l=t[a+&quot;ref&quot;],c=t[&quot;a&quot;+a+&quot;ref&quot;],u=t[&quot;_&quot;+a+&quot;padplus&quot;],f=t[&quot;_&quot;+a+&quot;padminus&quot;],h={x:1,y:-1}[a]*t[a+&quot;shift&quot;],p=3*t.arrowsize*t.arrowwidth||0,d=p+h,g=p-h,m=3*t.startarrowsize*t.arrowwidth||0,v=m+h,y=m-h;if(c===l){var x=i.findExtremes(e,[e.r2c(o)],{ppadplus:d,ppadminus:g}),b=i.findExtremes(e,[e.r2c(s)],{ppadplus:Math.max(u,v),ppadminus:Math.max(f,y)});r={min:[x.min[0],b.min[0]],max:[x.max[0],b.max[0]]}}else v=s?v+s:v,y=s?y-s:y,r=i.findExtremes(e,[e.r2c(o)],{ppadplus:Math.max(u,d,v),ppadminus:Math.max(f,g,y)});t._extremes[n]=r}e.exports=function(t){var e=t._fullLayout;if(n.filterVisible(e.annotations).length&amp;&amp;t._fullData.length)return n.syncOrAsync([a,o],t)}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./draw&quot;:632}],628:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plot_api/plot_template&quot;).arrayEditor;function o(t,e){var r,n,i,a,o,l,c,u=t._fullLayout.annotations,f=[],h=[],p=[],d=(e||[]).length;for(r=0;r&lt;u.length;r++)if(a=(i=u[r]).clicktoshow){for(n=0;n&lt;d;n++)if(l=(o=e[n]).xaxis,c=o.yaxis,l._id===i.xref&amp;&amp;c._id===i.yref&amp;&amp;l.d2r(o.x)===s(i._xclick,l)&amp;&amp;c.d2r(o.y)===s(i._yclick,c)){(i.visible?&quot;onout&quot;===a?h:p:f).push(r);break}n===d&amp;&amp;i.visible&amp;&amp;&quot;onout&quot;===a&amp;&amp;h.push(r)}return{on:f,off:h,explicitOff:p}}function s(t,e){return&quot;log&quot;===e.type?e.l2r(t):e.d2r(t)}e.exports={hasClickToShow:function(t,e){var r=o(t,e);return r.on.length&gt;0||r.explicitOff.length&gt;0},onClick:function(t,e){var r,s,l=o(t,e),c=l.on,u=l.off.concat(l.explicitOff),f={},h=t._fullLayout.annotations;if(!c.length&amp;&amp;!u.length)return;for(r=0;r&lt;c.length;r++)(s=a(t.layout,&quot;annotations&quot;,h[c[r]])).modifyItem(&quot;visible&quot;,!0),n.extendFlat(f,s.getUpdateObj());for(r=0;r&lt;u.length;r++)(s=a(t.layout,&quot;annotations&quot;,h[u[r]])).modifyItem(&quot;visible&quot;,!1),n.extendFlat(f,s.getUpdateObj());return i.call(&quot;update&quot;,t,{},f)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../registry&quot;:911}],629:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;);e.exports=function(t,e,r,a){a(&quot;opacity&quot;);var o=a(&quot;bgcolor&quot;),s=a(&quot;bordercolor&quot;),l=i.opacity(s);a(&quot;borderpad&quot;);var c=a(&quot;borderwidth&quot;),u=a(&quot;showarrow&quot;);if(a(&quot;text&quot;,u?&quot; &quot;:r._dfltTitle.annotation),a(&quot;textangle&quot;),n.coerceFont(a,&quot;font&quot;,r.font),a(&quot;width&quot;),a(&quot;align&quot;),a(&quot;height&quot;)&amp;&amp;a(&quot;valign&quot;),u){var f,h,p=a(&quot;arrowside&quot;);-1!==p.indexOf(&quot;end&quot;)&amp;&amp;(f=a(&quot;arrowhead&quot;),h=a(&quot;arrowsize&quot;)),-1!==p.indexOf(&quot;start&quot;)&amp;&amp;(a(&quot;startarrowhead&quot;,f),a(&quot;startarrowsize&quot;,h)),a(&quot;arrowcolor&quot;,l?e.bordercolor:i.defaultLine),a(&quot;arrowwidth&quot;,2*(l&amp;&amp;c||1)),a(&quot;standoff&quot;),a(&quot;startstandoff&quot;)}var d=a(&quot;hovertext&quot;),g=r.hoverlabel||{};if(d){var m=a(&quot;hoverlabel.bgcolor&quot;,g.bgcolor||(i.opacity(o)?i.rgb(o):i.defaultLine)),v=a(&quot;hoverlabel.bordercolor&quot;,g.bordercolor||i.contrast(m));n.coerceFont(a,&quot;hoverlabel.font&quot;,{family:g.font.family,size:g.font.size,color:g.font.color||v})}a(&quot;captureevents&quot;,!!d)}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643}],630:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib/to_log_range&quot;);e.exports=function(t,e,r,a){e=e||{};var o=&quot;log&quot;===r&amp;&amp;&quot;linear&quot;===e.type,s=&quot;linear&quot;===r&amp;&amp;&quot;log&quot;===e.type;if(o||s)for(var l,c,u=t._fullLayout.annotations,f=e._id.charAt(0),h=0;h&lt;u.length;h++)l=u[h],c=&quot;annotations[&quot;+h+&quot;].&quot;,l[f+&quot;ref&quot;]===e._id&amp;&amp;p(f),l[&quot;a&quot;+f+&quot;ref&quot;]===e._id&amp;&amp;p(&quot;a&quot;+f);function p(t){var r=l[t],s=null;s=o?i(r,e.range):Math.pow(10,r),n(s)||(s=null),a(c+t,s)}}},{&quot;../../lib/to_log_range&quot;:805,&quot;fast-isnumeric&quot;:241}],631:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./common_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r){function a(r,i){return n.coerce(t,e,s,r,i)}var l=a(&quot;visible&quot;),c=a(&quot;clicktoshow&quot;);if(l||c){o(t,e,r,a);for(var u=e.showarrow,f=[&quot;x&quot;,&quot;y&quot;],h=[-10,-30],p={_fullLayout:r},d=0;d&lt;2;d++){var g=f[d],m=i.coerceRef(t,e,p,g,&quot;&quot;,&quot;paper&quot;);if(&quot;paper&quot;!==m)i.getFromId(p,m)._annIndices.push(e._index);if(i.coercePosition(e,p,a,m,g,.5),u){var v=&quot;a&quot;+g,y=i.coerceRef(t,e,p,v,&quot;pixel&quot;,[&quot;pixel&quot;,&quot;paper&quot;]);&quot;pixel&quot;!==y&amp;&amp;y!==m&amp;&amp;(y=e[v]=&quot;pixel&quot;);var x=&quot;pixel&quot;===y?h[d]:.4;i.coercePosition(e,p,a,y,v,x)}a(g+&quot;anchor&quot;),a(g+&quot;shift&quot;)}if(n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),u&amp;&amp;n.noneOrAll(t,e,[&quot;ax&quot;,&quot;ay&quot;]),c){var b=a(&quot;xclick&quot;),_=a(&quot;yclick&quot;);e._xclick=void 0===b?e.x:i.cleanPosition(b,p,e.xref),e._yclick=void 0===_?e.y:i.cleanPosition(_,p,e.yref)}}}e.exports=function(t,e){a(t,e,{name:&quot;annotations&quot;,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:626,&quot;./common_defaults&quot;:629}],632:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;../color&quot;),u=t(&quot;../drawing&quot;),f=t(&quot;../fx&quot;),h=t(&quot;../../lib/svg_text_utils&quot;),p=t(&quot;../../lib/setcursor&quot;),d=t(&quot;../dragelement&quot;),g=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,m=t(&quot;./draw_arrow_head&quot;);function v(t,e){var r=t._fullLayout.annotations[e]||{},n=l.getFromId(t,r.xref),i=l.getFromId(t,r.yref);n&amp;&amp;n.setScale(),i&amp;&amp;i.setScale(),x(t,r,e,!1,n,i)}function y(t,e,r,n,i){var a=i[r],o=i[r+&quot;ref&quot;],s=-1!==r.indexOf(&quot;y&quot;),c=&quot;domain&quot;===l.getRefType(o),u=s?n.h:n.w;return t?c?a+(s?-e:e)/t._length:t.p2r(t.r2p(a)+e):a+(s?-e:e)/u}function x(t,e,r,a,v,x){var b,_,w=t._fullLayout,T=t._fullLayout._size,k=t._context.edits;a?(b=&quot;annotation-&quot;+a,_=a+&quot;.annotations&quot;):(b=&quot;annotation&quot;,_=&quot;annotations&quot;);var M=g(t.layout,_,e),A=M.modifyBase,S=M.modifyItem,E=M.getUpdateObj;w._infolayer.selectAll(&quot;.&quot;+b+'[data-index=&quot;'+r+'&quot;]').remove();var C=&quot;clip&quot;+w._uid+&quot;_ann&quot;+r;if(e._input&amp;&amp;!1!==e.visible){var L={x:{},y:{}},I=+e.textangle||0,P=w._infolayer.append(&quot;g&quot;).classed(b,!0).attr(&quot;data-index&quot;,String(r)).style(&quot;opacity&quot;,e.opacity),z=P.append(&quot;g&quot;).classed(&quot;annotation-text-g&quot;,!0),O=k[e.showarrow?&quot;annotationTail&quot;:&quot;annotationPosition&quot;],D=e.captureevents||k.annotationText||O,R=z.append(&quot;g&quot;).style(&quot;pointer-events&quot;,D?&quot;all&quot;:null).call(p,&quot;pointer&quot;).on(&quot;click&quot;,(function(){t._dragging=!1,t.emit(&quot;plotly_clickannotation&quot;,Y(n.event))}));e.hovertext&amp;&amp;R.on(&quot;mouseover&quot;,(function(){var r=e.hoverlabel,n=r.font,i=this.getBoundingClientRect(),a=t.getBoundingClientRect();f.loneHover({x0:i.left-a.left,x1:i.right-a.left,y:(i.top+i.bottom)/2-a.top,text:e.hovertext,color:r.bgcolor,borderColor:r.bordercolor,fontFamily:n.family,fontSize:n.size,fontColor:n.color},{container:w._hoverlayer.node(),outerContainer:w._paper.node(),gd:t})})).on(&quot;mouseout&quot;,(function(){f.loneUnhover(w._hoverlayer.node())}));var F=e.borderwidth,B=e.borderpad,N=F+B,j=R.append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bg&quot;).style(&quot;stroke-width&quot;,F+&quot;px&quot;).call(c.stroke,e.bordercolor).call(c.fill,e.bgcolor),U=e.width||e.height,V=w._topclips.selectAll(&quot;#&quot;+C).data(U?[0]:[]);V.enter().append(&quot;clipPath&quot;).classed(&quot;annclip&quot;,!0).attr(&quot;id&quot;,C).append(&quot;rect&quot;),V.exit().remove();var q=e.font,H=w._meta?o.templateString(e.text,w._meta):e.text,G=R.append(&quot;text&quot;).classed(&quot;annotation-text&quot;,!0).text(H);k.annotationText?G.call(h.makeEditable,{delegate:R,gd:t}).call(W).on(&quot;edit&quot;,(function(r){e.text=r,this.call(W),S(&quot;text&quot;,r),v&amp;&amp;v.autorange&amp;&amp;A(v._name+&quot;.autorange&quot;,!0),x&amp;&amp;x.autorange&amp;&amp;A(x._name+&quot;.autorange&quot;,!0),i.call(&quot;_guiRelayout&quot;,t,E())})):G.call(W)}else n.selectAll(&quot;#&quot;+C).remove();function Y(t){var n={index:r,annotation:e._input,fullAnnotation:e,event:t};return a&amp;&amp;(n.subplotId=a),n}function W(r){return r.call(u.font,q).attr({&quot;text-anchor&quot;:{left:&quot;start&quot;,right:&quot;end&quot;}[e.align]||&quot;middle&quot;}),h.convertToTspans(r,t,X),r}function X(){var r=G.selectAll(&quot;a&quot;);1===r.size()&amp;&amp;r.text()===G.text()&amp;&amp;R.insert(&quot;a&quot;,&quot;:first-child&quot;).attr({&quot;xlink:xlink:href&quot;:r.attr(&quot;xlink:href&quot;),&quot;xlink:xlink:show&quot;:r.attr(&quot;xlink:show&quot;)}).style({cursor:&quot;pointer&quot;}).node().appendChild(j.node());var n=R.select(&quot;.annotation-text-math-group&quot;),f=!n.empty(),g=u.bBox((f?n:G).node()),b=g.width,_=g.height,M=e.width||b,D=e.height||_,B=Math.round(M+2*N),q=Math.round(D+2*N);function H(t,e){return&quot;auto&quot;===e&amp;&amp;(e=t&lt;1/3?&quot;left&quot;:t&gt;2/3?&quot;right&quot;:&quot;center&quot;),{center:0,middle:0,left:.5,bottom:-.5,right:-.5,top:.5}[e]}for(var W=!1,X=[&quot;x&quot;,&quot;y&quot;],Z=0;Z&lt;X.length;Z++){var J,K,Q,$,tt,et=X[Z],rt=e[et+&quot;ref&quot;]||et,nt=e[&quot;a&quot;+et+&quot;ref&quot;],it={x:v,y:x}[et],at=(I+(&quot;x&quot;===et?0:-90))*Math.PI/180,ot=B*Math.cos(at),st=q*Math.sin(at),lt=Math.abs(ot)+Math.abs(st),ct=e[et+&quot;anchor&quot;],ut=e[et+&quot;shift&quot;]*(&quot;x&quot;===et?1:-1),ft=L[et],ht=l.getRefType(rt);if(it&amp;&amp;&quot;domain&quot;!==ht){var pt=it.r2fraction(e[et]);(pt&lt;0||pt&gt;1)&amp;&amp;(nt===rt?((pt=it.r2fraction(e[&quot;a&quot;+et]))&lt;0||pt&gt;1)&amp;&amp;(W=!0):W=!0),J=it._offset+it.r2p(e[et]),$=.5}else{var dt=&quot;domain&quot;===ht;&quot;x&quot;===et?(Q=e[et],J=dt?it._offset+it._length*Q:J=T.l+T.w*Q):(Q=1-e[et],J=dt?it._offset+it._length*Q:J=T.t+T.h*Q),$=e.showarrow?.5:Q}if(e.showarrow){ft.head=J;var gt=e[&quot;a&quot;+et];if(tt=ot*H(.5,e.xanchor)-st*H(.5,e.yanchor),nt===rt){var mt=l.getRefType(nt);&quot;domain&quot;===mt?(&quot;y&quot;===et&amp;&amp;(gt=1-gt),ft.tail=it._offset+it._length*gt):&quot;paper&quot;===mt?&quot;y&quot;===et?(gt=1-gt,ft.tail=T.t+T.h*gt):ft.tail=T.l+T.w*gt:ft.tail=it._offset+it.r2p(gt),K=tt}else ft.tail=J+gt,K=tt+gt;ft.text=ft.tail+tt;var vt=w[&quot;x&quot;===et?&quot;width&quot;:&quot;height&quot;];if(&quot;paper&quot;===rt&amp;&amp;(ft.head=o.constrain(ft.head,1,vt-1)),&quot;pixel&quot;===nt){var yt=-Math.max(ft.tail-3,ft.text),xt=Math.min(ft.tail+3,ft.text)-vt;yt&gt;0?(ft.tail+=yt,ft.text+=yt):xt&gt;0&amp;&amp;(ft.tail-=xt,ft.text-=xt)}ft.tail+=ut,ft.head+=ut}else K=tt=lt*H($,ct),ft.text=J+tt;ft.text+=ut,tt+=ut,K+=ut,e[&quot;_&quot;+et+&quot;padplus&quot;]=lt/2+K,e[&quot;_&quot;+et+&quot;padminus&quot;]=lt/2-K,e[&quot;_&quot;+et+&quot;size&quot;]=lt,e[&quot;_&quot;+et+&quot;shift&quot;]=tt}if(W)R.remove();else{var bt=0,_t=0;if(&quot;left&quot;!==e.align&amp;&amp;(bt=(M-b)*(&quot;center&quot;===e.align?.5:1)),&quot;top&quot;!==e.valign&amp;&amp;(_t=(D-_)*(&quot;middle&quot;===e.valign?.5:1)),f)n.select(&quot;svg&quot;).attr({x:N+bt-1,y:N+_t}).call(u.setClipUrl,U?C:null,t);else{var wt=N+_t-g.top,Tt=N+bt-g.left;G.call(h.positionText,Tt,wt).call(u.setClipUrl,U?C:null,t)}V.select(&quot;rect&quot;).call(u.setRect,N,N,M,D),j.call(u.setRect,F/2,F/2,B-F,q-F),R.call(u.setTranslate,Math.round(L.x.text-B/2),Math.round(L.y.text-q/2)),z.attr({transform:&quot;rotate(&quot;+I+&quot;,&quot;+L.x.text+&quot;,&quot;+L.y.text+&quot;)&quot;});var kt,Mt=function(r,n){P.selectAll(&quot;.annotation-arrow-g&quot;).remove();var l=L.x.head,f=L.y.head,h=L.x.tail+r,p=L.y.tail+n,g=L.x.text+r,b=L.y.text+n,_=o.rotationXYMatrix(I,g,b),w=o.apply2DTransform(_),M=o.apply2DTransform2(_),C=+j.attr(&quot;width&quot;),O=+j.attr(&quot;height&quot;),D=g-.5*C,F=D+C,B=b-.5*O,N=B+O,U=[[D,B,D,N],[D,N,F,N],[F,N,F,B],[F,B,D,B]].map(M);if(!U.reduce((function(t,e){return t^!!o.segmentsIntersect(l,f,l+1e6,f+1e6,e[0],e[1],e[2],e[3])}),!1)){U.forEach((function(t){var e=o.segmentsIntersect(h,p,l,f,t[0],t[1],t[2],t[3]);e&amp;&amp;(h=e.x,p=e.y)}));var V=e.arrowwidth,q=e.arrowcolor,H=e.arrowside,G=P.append(&quot;g&quot;).style({opacity:c.opacity(q)}).classed(&quot;annotation-arrow-g&quot;,!0),Y=G.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M&quot;+h+&quot;,&quot;+p+&quot;L&quot;+l+&quot;,&quot;+f).style(&quot;stroke-width&quot;,V+&quot;px&quot;).call(c.stroke,c.rgb(q));if(m(Y,H,e),k.annotationPosition&amp;&amp;Y.node().parentNode&amp;&amp;!a){var W=l,X=f;if(e.standoff){var Z=Math.sqrt(Math.pow(l-h,2)+Math.pow(f-p,2));W+=e.standoff*(h-l)/Z,X+=e.standoff*(p-f)/Z}var J,K,Q=G.append(&quot;path&quot;).classed(&quot;annotation-arrow&quot;,!0).classed(&quot;anndrag&quot;,!0).classed(&quot;cursor-move&quot;,!0).attr({d:&quot;M3,3H-3V-3H3ZM0,0L&quot;+(h-W)+&quot;,&quot;+(p-X),transform:s(W,X)}).style(&quot;stroke-width&quot;,V+6+&quot;px&quot;).call(c.stroke,&quot;rgba(0,0,0,0)&quot;).call(c.fill,&quot;rgba(0,0,0,0)&quot;);d.init({element:Q.node(),gd:t,prepFn:function(){var t=u.getTranslate(R);J=t.x,K=t.y,v&amp;&amp;v.autorange&amp;&amp;A(v._name+&quot;.autorange&quot;,!0),x&amp;&amp;x.autorange&amp;&amp;A(x._name+&quot;.autorange&quot;,!0)},moveFn:function(t,r){var n=w(J,K),i=n[0]+t,a=n[1]+r;R.call(u.setTranslate,i,a),S(&quot;x&quot;,y(v,t,&quot;x&quot;,T,e)),S(&quot;y&quot;,y(x,r,&quot;y&quot;,T,e)),e.axref===e.xref&amp;&amp;S(&quot;ax&quot;,y(v,t,&quot;ax&quot;,T,e)),e.ayref===e.yref&amp;&amp;S(&quot;ay&quot;,y(x,r,&quot;ay&quot;,T,e)),G.attr(&quot;transform&quot;,s(t,r)),z.attr({transform:&quot;rotate(&quot;+I+&quot;,&quot;+i+&quot;,&quot;+a+&quot;)&quot;})},doneFn:function(){i.call(&quot;_guiRelayout&quot;,t,E());var e=document.querySelector(&quot;.js-notes-box-panel&quot;);e&amp;&amp;e.redraw(e.selectedObj)}})}}};if(e.showarrow&amp;&amp;Mt(0,0),O)d.init({element:R.node(),gd:t,prepFn:function(){kt=z.attr(&quot;transform&quot;)},moveFn:function(t,r){var n=&quot;pointer&quot;;if(e.showarrow)e.axref===e.xref?S(&quot;ax&quot;,y(v,t,&quot;ax&quot;,T,e)):S(&quot;ax&quot;,e.ax+t),e.ayref===e.yref?S(&quot;ay&quot;,y(x,r,&quot;ay&quot;,T.w,e)):S(&quot;ay&quot;,e.ay+r),Mt(t,r);else{if(a)return;var i,o;if(v)i=y(v,t,&quot;x&quot;,T,e);else{var l=e._xsize/T.w,c=e.x+(e._xshift-e.xshift)/T.w-l/2;i=d.align(c+t/T.w,l,0,1,e.xanchor)}if(x)o=y(x,r,&quot;y&quot;,T,e);else{var u=e._ysize/T.h,f=e.y-(e._yshift+e.yshift)/T.h-u/2;o=d.align(f-r/T.h,u,0,1,e.yanchor)}S(&quot;x&quot;,i),S(&quot;y&quot;,o),v&amp;&amp;x||(n=d.getCursor(v?.5:i,x?.5:o,e.xanchor,e.yanchor))}z.attr({transform:s(t,r)+kt}),p(R,n)},clickFn:function(r,n){e.captureevents&amp;&amp;t.emit(&quot;plotly_clickannotation&quot;,Y(n))},doneFn:function(){p(R),i.call(&quot;_guiRelayout&quot;,t,E());var e=document.querySelector(&quot;.js-notes-box-panel&quot;);e&amp;&amp;e.redraw(e.selectedObj)}})}}}e.exports={draw:function(t){var e=t._fullLayout;e._infolayer.selectAll(&quot;.annotation&quot;).remove();for(var r=0;r&lt;e.annotations.length;r++)e.annotations[r].visible&amp;&amp;v(t,r);return a.previousPromises(t)},drawOne:v,drawRaw:x}},{&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../fx&quot;:683,&quot;./draw_arrow_head&quot;:633,d3:169}],633:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../color&quot;),a=t(&quot;./arrow_paths&quot;),o=t(&quot;../../lib&quot;),s=o.strScale,l=o.strRotate,c=o.strTranslate;e.exports=function(t,e,r){var o,u,f,h,p=t.node(),d=a[r.arrowhead||0],g=a[r.startarrowhead||0],m=(r.arrowwidth||1)*(r.arrowsize||1),v=(r.arrowwidth||1)*(r.startarrowsize||1),y=e.indexOf(&quot;start&quot;)&gt;=0,x=e.indexOf(&quot;end&quot;)&gt;=0,b=d.backoff*m+r.standoff,_=g.backoff*v+r.startstandoff;if(&quot;line&quot;===p.nodeName){o={x:+t.attr(&quot;x1&quot;),y:+t.attr(&quot;y1&quot;)},u={x:+t.attr(&quot;x2&quot;),y:+t.attr(&quot;y2&quot;)};var w=o.x-u.x,T=o.y-u.y;if(h=(f=Math.atan2(T,w))+Math.PI,b&amp;&amp;_&amp;&amp;b+_&gt;Math.sqrt(w*w+T*T))return void O();if(b){if(b*b&gt;w*w+T*T)return void O();var k=b*Math.cos(f),M=b*Math.sin(f);u.x+=k,u.y+=M,t.attr({x2:u.x,y2:u.y})}if(_){if(_*_&gt;w*w+T*T)return void O();var A=_*Math.cos(f),S=_*Math.sin(f);o.x-=A,o.y-=S,t.attr({x1:o.x,y1:o.y})}}else if(&quot;path&quot;===p.nodeName){var E=p.getTotalLength(),C=&quot;&quot;;if(E&lt;b+_)return void O();var L=p.getPointAtLength(0),I=p.getPointAtLength(.1);f=Math.atan2(L.y-I.y,L.x-I.x),o=p.getPointAtLength(Math.min(_,E)),C=&quot;0px,&quot;+_+&quot;px,&quot;;var P=p.getPointAtLength(E),z=p.getPointAtLength(E-.1);h=Math.atan2(P.y-z.y,P.x-z.x),u=p.getPointAtLength(Math.max(0,E-b)),C+=E-(C?_+b:b)+&quot;px,&quot;+E+&quot;px&quot;,t.style(&quot;stroke-dasharray&quot;,C)}function O(){t.style(&quot;stroke-dasharray&quot;,&quot;0px,100px&quot;)}function D(e,a,o,u){e.path&amp;&amp;(e.noRotate&amp;&amp;(o=0),n.select(p.parentNode).append(&quot;path&quot;).attr({class:t.attr(&quot;class&quot;),d:e.path,transform:c(a.x,a.y)+l(180*o/Math.PI)+s(u)}).style({fill:i.rgb(r.arrowcolor),&quot;stroke-width&quot;:0}))}y&amp;&amp;D(g,o,f,v),x&amp;&amp;D(d,u,h,m)}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;./arrow_paths&quot;:625,d3:169}],634:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;),i=t(&quot;./click&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;annotations&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;annotations&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:n.draw,drawOne:n.drawOne,drawRaw:n.drawRaw,hasClickToShow:i.hasClickToShow,onClick:i.onClick,convertCoords:t(&quot;./convert_coords&quot;)}},{&quot;../../plots/cartesian/include_components&quot;:840,&quot;./attributes&quot;:626,&quot;./calc_autorange&quot;:627,&quot;./click&quot;:628,&quot;./convert_coords&quot;:630,&quot;./defaults&quot;:631,&quot;./draw&quot;:632}],635:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/attributes&quot;),i=t(&quot;../../plot_api/edit_types&quot;).overrideAll,a=t(&quot;../../plot_api/plot_template&quot;).templatedArray;e.exports=i(a(&quot;annotation&quot;,{visible:n.visible,x:{valType:&quot;any&quot;},y:{valType:&quot;any&quot;},z:{valType:&quot;any&quot;},ax:{valType:&quot;number&quot;},ay:{valType:&quot;number&quot;},xanchor:n.xanchor,xshift:n.xshift,yanchor:n.yanchor,yshift:n.yshift,text:n.text,textangle:n.textangle,font:n.font,width:n.width,height:n.height,opacity:n.opacity,align:n.align,valign:n.valign,bgcolor:n.bgcolor,bordercolor:n.bordercolor,borderpad:n.borderpad,borderwidth:n.borderwidth,showarrow:n.showarrow,arrowcolor:n.arrowcolor,arrowhead:n.arrowhead,startarrowhead:n.startarrowhead,arrowside:n.arrowside,arrowsize:n.arrowsize,startarrowsize:n.startarrowsize,arrowwidth:n.arrowwidth,standoff:n.standoff,startstandoff:n.startstandoff,hovertext:n.hovertext,hoverlabel:n.hoverlabel,captureevents:n.captureevents}),&quot;calc&quot;,&quot;from-root&quot;)},{&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../annotations/attributes&quot;:626}],636:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;);function a(t,e){var r=e.fullSceneLayout.domain,a=e.fullLayout._size,o={pdata:null,type:&quot;linear&quot;,autorange:!1,range:[-1/0,1/0]};t._xa={},n.extendFlat(t._xa,o),i.setConvert(t._xa),t._xa._offset=a.l+r.x[0]*a.w,t._xa.l2p=function(){return.5*(1+t._pdata[0]/t._pdata[3])*a.w*(r.x[1]-r.x[0])},t._ya={},n.extendFlat(t._ya,o),i.setConvert(t._ya),t._ya._offset=a.t+(1-r.y[1])*a.h,t._ya.l2p=function(){return.5*(1-t._pdata[1]/t._pdata[3])*a.h*(r.y[1]-r.y[0])}}e.exports=function(t){for(var e=t.fullSceneLayout.annotations,r=0;r&lt;e.length;r++)a(e[r],t);t.fullLayout._infolayer.selectAll(&quot;.annotation-&quot;+t.id).remove()}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],637:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;../annotations/common_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r,a){function l(r,i){return n.coerce(t,e,s,r,i)}function c(t){var n=t+&quot;axis&quot;,a={_fullLayout:{}};return a._fullLayout[n]=r[n],i.coercePosition(e,a,l,t,t,.5)}l(&quot;visible&quot;)&amp;&amp;(o(t,e,a.fullLayout,l),c(&quot;x&quot;),c(&quot;y&quot;),c(&quot;z&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;]),e.xref=&quot;x&quot;,e.yref=&quot;y&quot;,e.zref=&quot;z&quot;,l(&quot;xanchor&quot;),l(&quot;yanchor&quot;),l(&quot;xshift&quot;),l(&quot;yshift&quot;),e.showarrow&amp;&amp;(e.axref=&quot;pixel&quot;,e.ayref=&quot;pixel&quot;,l(&quot;ax&quot;,-10),l(&quot;ay&quot;,-30),n.noneOrAll(t,e,[&quot;ax&quot;,&quot;ay&quot;])))}e.exports=function(t,e,r){a(t,e,{name:&quot;annotations&quot;,handleItemDefaults:l,fullLayout:r.fullLayout})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;../annotations/common_defaults&quot;:629,&quot;./attributes&quot;:635}],638:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/draw&quot;).drawRaw,i=t(&quot;../../plots/gl3d/project&quot;),a=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];e.exports=function(t){for(var e=t.fullSceneLayout,r=t.dataScale,o=e.annotations,s=0;s&lt;o.length;s++){for(var l=o[s],c=!1,u=0;u&lt;3;u++){var f=a[u],h=l[f],p=e[f+&quot;axis&quot;].r2fraction(h);if(p&lt;0||p&gt;1){c=!0;break}}c?t.fullLayout._infolayer.select(&quot;.annotation-&quot;+t.id+'[data-index=&quot;'+s+'&quot;]').remove():(l._pdata=i(t.glplot.cameraParams,[e.xaxis.r2l(l.x)*r[0],e.yaxis.r2l(l.y)*r[1],e.zaxis.r2l(l.z)*r[2]]),n(t.graphDiv,l,s,t.id,l._xa,l._ya))}}},{&quot;../../plots/gl3d/project&quot;:879,&quot;../annotations/draw&quot;:632}],639:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;annotations3d&quot;,schema:{subplots:{scene:{annotations:t(&quot;./attributes&quot;)}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),includeBasePlot:function(t,e){var r=n.subplotsRegistry.gl3d;if(!r)return;for(var a=r.attrRegex,o=Object.keys(t),s=0;s&lt;o.length;s++){var l=o[s];a.test(l)&amp;&amp;(t[l].annotations||[]).length&amp;&amp;(i.pushUnique(e._basePlotModules,r),i.pushUnique(e._subplots.gl3d,l))}},convert:t(&quot;./convert&quot;),draw:t(&quot;./draw&quot;)}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:635,&quot;./convert&quot;:636,&quot;./defaults&quot;:637,&quot;./draw&quot;:638}],640:[function(t,e,r){&quot;use strict&quot;;e.exports=t(&quot;world-calendars/dist/main&quot;),t(&quot;world-calendars/dist/plus&quot;),t(&quot;world-calendars/dist/calendars/chinese&quot;),t(&quot;world-calendars/dist/calendars/coptic&quot;),t(&quot;world-calendars/dist/calendars/discworld&quot;),t(&quot;world-calendars/dist/calendars/ethiopian&quot;),t(&quot;world-calendars/dist/calendars/hebrew&quot;),t(&quot;world-calendars/dist/calendars/islamic&quot;),t(&quot;world-calendars/dist/calendars/julian&quot;),t(&quot;world-calendars/dist/calendars/mayan&quot;),t(&quot;world-calendars/dist/calendars/nanakshahi&quot;),t(&quot;world-calendars/dist/calendars/nepali&quot;),t(&quot;world-calendars/dist/calendars/persian&quot;),t(&quot;world-calendars/dist/calendars/taiwan&quot;),t(&quot;world-calendars/dist/calendars/thai&quot;),t(&quot;world-calendars/dist/calendars/ummalqura&quot;)},{&quot;world-calendars/dist/calendars/chinese&quot;:607,&quot;world-calendars/dist/calendars/coptic&quot;:608,&quot;world-calendars/dist/calendars/discworld&quot;:609,&quot;world-calendars/dist/calendars/ethiopian&quot;:610,&quot;world-calendars/dist/calendars/hebrew&quot;:611,&quot;world-calendars/dist/calendars/islamic&quot;:612,&quot;world-calendars/dist/calendars/julian&quot;:613,&quot;world-calendars/dist/calendars/mayan&quot;:614,&quot;world-calendars/dist/calendars/nanakshahi&quot;:615,&quot;world-calendars/dist/calendars/nepali&quot;:616,&quot;world-calendars/dist/calendars/persian&quot;:617,&quot;world-calendars/dist/calendars/taiwan&quot;:618,&quot;world-calendars/dist/calendars/thai&quot;:619,&quot;world-calendars/dist/calendars/ummalqura&quot;:620,&quot;world-calendars/dist/main&quot;:621,&quot;world-calendars/dist/plus&quot;:622}],641:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./calendars&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;),o=a.EPOCHJD,s=a.ONEDAY,l={valType:&quot;enumerated&quot;,values:Object.keys(n.calendars),editType:&quot;calc&quot;,dflt:&quot;gregorian&quot;},c=function(t,e,r,n){var a={};return a[r]=l,i.coerce(t,e,a,r,n)},u={d:{0:&quot;dd&quot;,&quot;-&quot;:&quot;d&quot;},e:{0:&quot;d&quot;,&quot;-&quot;:&quot;d&quot;},a:{0:&quot;D&quot;,&quot;-&quot;:&quot;D&quot;},A:{0:&quot;DD&quot;,&quot;-&quot;:&quot;DD&quot;},j:{0:&quot;oo&quot;,&quot;-&quot;:&quot;o&quot;},W:{0:&quot;ww&quot;,&quot;-&quot;:&quot;w&quot;},m:{0:&quot;mm&quot;,&quot;-&quot;:&quot;m&quot;},b:{0:&quot;M&quot;,&quot;-&quot;:&quot;M&quot;},B:{0:&quot;MM&quot;,&quot;-&quot;:&quot;MM&quot;},y:{0:&quot;yy&quot;,&quot;-&quot;:&quot;yy&quot;},Y:{0:&quot;yyyy&quot;,&quot;-&quot;:&quot;yyyy&quot;},U:&quot;##&quot;,w:&quot;##&quot;,c:{0:&quot;D M d %X yyyy&quot;,&quot;-&quot;:&quot;D M d %X yyyy&quot;},x:{0:&quot;mm/dd/yyyy&quot;,&quot;-&quot;:&quot;mm/dd/yyyy&quot;}};var f={};function h(t){var e=f[t];return e||(e=f[t]=n.instance(t))}function p(t){return i.extendFlat({},l,{description:t})}function d(t){return&quot;Sets the calendar system to use with `&quot;+t+&quot;` date data.&quot;}var g={xcalendar:p(d(&quot;x&quot;))},m=i.extendFlat({},g,{ycalendar:p(d(&quot;y&quot;))}),v=i.extendFlat({},m,{zcalendar:p(d(&quot;z&quot;))}),y=p([&quot;Sets the calendar system to use for `range` and `tick0`&quot;,&quot;if this is a date axis. This does not set the calendar for&quot;,&quot;interpreting data on this axis, that's specified in the trace&quot;,&quot;or via the global `layout.calendar`&quot;].join(&quot; &quot;));e.exports={moduleType:&quot;component&quot;,name:&quot;calendars&quot;,schema:{traces:{scatter:m,bar:m,box:m,heatmap:m,contour:m,histogram:m,histogram2d:m,histogram2dcontour:m,scatter3d:v,surface:v,mesh3d:v,scattergl:m,ohlc:g,candlestick:g},layout:{calendar:p([&quot;Sets the default calendar system to use for interpreting and&quot;,&quot;displaying dates throughout the plot.&quot;].join(&quot; &quot;))},subplots:{xaxis:{calendar:y},yaxis:{calendar:y},scene:{xaxis:{calendar:y},yaxis:{calendar:y},zaxis:{calendar:y}},polar:{radialaxis:{calendar:y}}},transforms:{filter:{valuecalendar:p([&quot;Sets the calendar system to use for `value`, if it is a date.&quot;].join(&quot; &quot;)),targetcalendar:p([&quot;Sets the calendar system to use for `target`, if it is an&quot;,&quot;array of dates. If `target` is a string (eg *x*) we use the&quot;,&quot;corresponding trace attribute (eg `xcalendar`) if it exists,&quot;,&quot;even if `targetcalendar` is provided.&quot;].join(&quot; &quot;))}}},layoutAttributes:l,handleDefaults:c,handleTraceDefaults:function(t,e,r,n){for(var i=0;i&lt;r.length;i++)c(t,e,r[i]+&quot;calendar&quot;,n.calendar)},CANONICAL_SUNDAY:{chinese:&quot;2000-01-02&quot;,coptic:&quot;2000-01-03&quot;,discworld:&quot;2000-01-03&quot;,ethiopian:&quot;2000-01-05&quot;,hebrew:&quot;5000-01-01&quot;,islamic:&quot;1000-01-02&quot;,julian:&quot;2000-01-03&quot;,mayan:&quot;5000-01-01&quot;,nanakshahi:&quot;1000-01-05&quot;,nepali:&quot;2000-01-05&quot;,persian:&quot;1000-01-01&quot;,jalali:&quot;1000-01-01&quot;,taiwan:&quot;1000-01-04&quot;,thai:&quot;2000-01-04&quot;,ummalqura:&quot;1400-01-06&quot;},CANONICAL_TICK:{chinese:&quot;2000-01-01&quot;,coptic:&quot;2000-01-01&quot;,discworld:&quot;2000-01-01&quot;,ethiopian:&quot;2000-01-01&quot;,hebrew:&quot;5000-01-01&quot;,islamic:&quot;1000-01-01&quot;,julian:&quot;2000-01-01&quot;,mayan:&quot;5000-01-01&quot;,nanakshahi:&quot;1000-01-01&quot;,nepali:&quot;2000-01-01&quot;,persian:&quot;1000-01-01&quot;,jalali:&quot;1000-01-01&quot;,taiwan:&quot;1000-01-01&quot;,thai:&quot;2000-01-01&quot;,ummalqura:&quot;1400-01-01&quot;},DFLTRANGE:{chinese:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],coptic:[&quot;1700-01-01&quot;,&quot;1701-01-01&quot;],discworld:[&quot;1800-01-01&quot;,&quot;1801-01-01&quot;],ethiopian:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],hebrew:[&quot;5700-01-01&quot;,&quot;5701-01-01&quot;],islamic:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],julian:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],mayan:[&quot;5200-01-01&quot;,&quot;5201-01-01&quot;],nanakshahi:[&quot;0500-01-01&quot;,&quot;0501-01-01&quot;],nepali:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;],persian:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],jalali:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;],taiwan:[&quot;0100-01-01&quot;,&quot;0101-01-01&quot;],thai:[&quot;2500-01-01&quot;,&quot;2501-01-01&quot;],ummalqura:[&quot;1400-01-01&quot;,&quot;1401-01-01&quot;]},getCal:h,worldCalFmt:function(t,e,r){for(var n,i,a,l,c,f=Math.floor((e+.05)/s)+o,p=h(r).fromJD(f),d=0;-1!==(d=t.indexOf(&quot;%&quot;,d));)&quot;0&quot;===(n=t.charAt(d+1))||&quot;-&quot;===n||&quot;_&quot;===n?(a=3,i=t.charAt(d+2),&quot;_&quot;===n&amp;&amp;(n=&quot;-&quot;)):(i=n,n=&quot;0&quot;,a=2),(l=u[i])?(c=&quot;##&quot;===l?&quot;##&quot;:p.formatDate(l[n]),t=t.substr(0,d)+c+t.substr(d+a),d+=c.length):d+=a;return t}}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./calendars&quot;:640}],642:[function(t,e,r){&quot;use strict&quot;;r.defaults=[&quot;#1f77b4&quot;,&quot;#ff7f0e&quot;,&quot;#2ca02c&quot;,&quot;#d62728&quot;,&quot;#9467bd&quot;,&quot;#8c564b&quot;,&quot;#e377c2&quot;,&quot;#7f7f7f&quot;,&quot;#bcbd22&quot;,&quot;#17becf&quot;],r.defaultLine=&quot;#444&quot;,r.lightLine=&quot;#eee&quot;,r.background=&quot;#fff&quot;,r.borderLine=&quot;#BEC8D9&quot;,r.lightFraction=1e3/11},{}],643:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;),i=t(&quot;fast-isnumeric&quot;),a=e.exports={},o=t(&quot;./attributes&quot;);a.defaults=o.defaults;var s=a.defaultLine=o.defaultLine;a.lightLine=o.lightLine;var l=a.background=o.background;function c(t){if(i(t)||&quot;string&quot;!=typeof t)return t;var e=t.trim();if(&quot;rgb&quot;!==e.substr(0,3))return t;var r=e.match(/^rgba?\s*\(([^()]*)\)$/);if(!r)return t;var n=r[1].trim().split(/\s*[\s,]\s*/),a=&quot;a&quot;===e.charAt(3)&amp;&amp;4===n.length;if(!a&amp;&amp;3!==n.length)return t;for(var o=0;o&lt;n.length;o++){if(!n[o].length)return t;if(n[o]=Number(n[o]),!(n[o]&gt;=0))return t;if(3===o)n[o]&gt;1&amp;&amp;(n[o]=1);else if(n[o]&gt;=1)return t}var s=Math.round(255*n[0])+&quot;, &quot;+Math.round(255*n[1])+&quot;, &quot;+Math.round(255*n[2]);return a?&quot;rgba(&quot;+s+&quot;, &quot;+n[3]+&quot;)&quot;:&quot;rgb(&quot;+s+&quot;)&quot;}a.tinyRGB=function(t){var e=t.toRgb();return&quot;rgb(&quot;+Math.round(e.r)+&quot;, &quot;+Math.round(e.g)+&quot;, &quot;+Math.round(e.b)+&quot;)&quot;},a.rgb=function(t){return a.tinyRGB(n(t))},a.opacity=function(t){return t?n(t).getAlpha():0},a.addOpacity=function(t,e){var r=n(t).toRgb();return&quot;rgba(&quot;+Math.round(r.r)+&quot;, &quot;+Math.round(r.g)+&quot;, &quot;+Math.round(r.b)+&quot;, &quot;+e+&quot;)&quot;},a.combine=function(t,e){var r=n(t).toRgb();if(1===r.a)return n(t).toRgbString();var i=n(e||l).toRgb(),a=1===i.a?i:{r:255*(1-i.a)+i.r*i.a,g:255*(1-i.a)+i.g*i.a,b:255*(1-i.a)+i.b*i.a},o={r:a.r*(1-r.a)+r.r*r.a,g:a.g*(1-r.a)+r.g*r.a,b:a.b*(1-r.a)+r.b*r.a};return n(o).toRgbString()},a.contrast=function(t,e,r){var i=n(t);return 1!==i.getAlpha()&amp;&amp;(i=n(a.combine(t,l))),(i.isDark()?e?i.lighten(e):l:r?i.darken(r):s).toString()},a.stroke=function(t,e){var r=n(e);t.style({stroke:a.tinyRGB(r),&quot;stroke-opacity&quot;:r.getAlpha()})},a.fill=function(t,e){var r=n(e);t.style({fill:a.tinyRGB(r),&quot;fill-opacity&quot;:r.getAlpha()})},a.clean=function(t){if(t&amp;&amp;&quot;object&quot;==typeof t){var e,r,n,i,o=Object.keys(t);for(e=0;e&lt;o.length;e++)if(i=t[n=o[e]],&quot;color&quot;===n.substr(n.length-5))if(Array.isArray(i))for(r=0;r&lt;i.length;r++)i[r]=c(i[r]);else t[n]=c(i);else if(&quot;colorscale&quot;===n.substr(n.length-10)&amp;&amp;Array.isArray(i))for(r=0;r&lt;i.length;r++)Array.isArray(i[r])&amp;&amp;(i[r][1]=c(i[r][1]));else if(Array.isArray(i)){var s=i[0];if(!Array.isArray(s)&amp;&amp;s&amp;&amp;&quot;object&quot;==typeof s)for(r=0;r&lt;i.length;r++)a.clean(i[r])}else i&amp;&amp;&quot;object&quot;==typeof i&amp;&amp;a.clean(i)}}},{&quot;./attributes&quot;:642,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],644:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/layout_attributes&quot;),i=t(&quot;../../plots/font_attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll;e.exports=o({thicknessmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;pixels&quot;},thickness:{valType:&quot;number&quot;,min:0,dflt:30},lenmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;fraction&quot;},len:{valType:&quot;number&quot;,min:0,dflt:1},x:{valType:&quot;number&quot;,dflt:1.02,min:-2,max:3},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},xpad:{valType:&quot;number&quot;,min:0,dflt:10},y:{valType:&quot;number&quot;,dflt:.5,min:-2,max:3},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;},ypad:{valType:&quot;number&quot;,min:0,dflt:10},outlinecolor:n.linecolor,outlinewidth:n.linewidth,bordercolor:n.linecolor,borderwidth:{valType:&quot;number&quot;,min:0,dflt:0},bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;},tickmode:n.tickmode,nticks:n.nticks,tick0:n.tick0,dtick:n.dtick,tickvals:n.tickvals,ticktext:n.ticktext,ticks:a({},n.ticks,{dflt:&quot;&quot;}),ticklabelposition:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;],dflt:&quot;outside&quot;},ticklen:n.ticklen,tickwidth:n.tickwidth,tickcolor:n.tickcolor,showticklabels:n.showticklabels,tickfont:i({}),tickangle:n.tickangle,tickformat:n.tickformat,tickformatstops:n.tickformatstops,tickprefix:n.tickprefix,showtickprefix:n.showtickprefix,ticksuffix:n.ticksuffix,showticksuffix:n.showticksuffix,separatethousands:n.separatethousands,exponentformat:n.exponentformat,minexponent:n.minexponent,showexponent:n.showexponent,title:{text:{valType:&quot;string&quot;},font:i({}),side:{valType:&quot;enumerated&quot;,values:[&quot;right&quot;,&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;}},_deprecated:{title:{valType:&quot;string&quot;},titlefont:i({}),titleside:{valType:&quot;enumerated&quot;,values:[&quot;right&quot;,&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;}}},&quot;colorbars&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/font_attributes&quot;:856}],645:[function(t,e,r){&quot;use strict&quot;;e.exports={cn:{colorbar:&quot;colorbar&quot;,cbbg:&quot;cbbg&quot;,cbfill:&quot;cbfill&quot;,cbfills:&quot;cbfills&quot;,cbline:&quot;cbline&quot;,cblines:&quot;cblines&quot;,cbaxis:&quot;cbaxis&quot;,cbtitleunshift:&quot;cbtitleunshift&quot;,cbtitle:&quot;cbtitle&quot;,cboutline:&quot;cboutline&quot;,crisp:&quot;crisp&quot;,jsPlaceholder:&quot;js-placeholder&quot;}}},{}],646:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),o=t(&quot;../../plots/cartesian/tick_mark_defaults&quot;),s=t(&quot;../../plots/cartesian/tick_label_defaults&quot;),l=t(&quot;./attributes&quot;);e.exports=function(t,e,r){var c=i.newContainer(e,&quot;colorbar&quot;),u=t.colorbar||{};function f(t,e){return n.coerce(u,c,l,t,e)}var h=f(&quot;thicknessmode&quot;);f(&quot;thickness&quot;,&quot;fraction&quot;===h?30/(r.width-r.margin.l-r.margin.r):30);var p=f(&quot;lenmode&quot;);f(&quot;len&quot;,&quot;fraction&quot;===p?1:r.height-r.margin.t-r.margin.b),f(&quot;x&quot;),f(&quot;xanchor&quot;),f(&quot;xpad&quot;),f(&quot;y&quot;),f(&quot;yanchor&quot;),f(&quot;ypad&quot;),n.noneOrAll(u,c,[&quot;x&quot;,&quot;y&quot;]),f(&quot;outlinecolor&quot;),f(&quot;outlinewidth&quot;),f(&quot;bordercolor&quot;),f(&quot;borderwidth&quot;),f(&quot;bgcolor&quot;);var d=f(&quot;ticklabelposition&quot;);a(u,c,f,&quot;linear&quot;);var g={outerTicks:!1,font:r.font};-1!==d.indexOf(&quot;inside&quot;)&amp;&amp;(g.bgColor=&quot;black&quot;),s(u,c,f,&quot;linear&quot;,g),o(u,c,f,&quot;linear&quot;,g),f(&quot;title.text&quot;,r._dfltTitle.colorbar),n.coerceFont(f,&quot;title.font&quot;,r.font),f(&quot;title.side&quot;)}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/tick_label_defaults&quot;:849,&quot;../../plots/cartesian/tick_mark_defaults&quot;:850,&quot;../../plots/cartesian/tick_value_defaults&quot;:851,&quot;./attributes&quot;:644}],647:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=t(&quot;../dragelement&quot;),c=t(&quot;../../lib&quot;),u=c.strTranslate,f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../lib/setcursor&quot;),p=t(&quot;../drawing&quot;),d=t(&quot;../color&quot;),g=t(&quot;../titles&quot;),m=t(&quot;../../lib/svg_text_utils&quot;),v=t(&quot;../colorscale/helpers&quot;).flipScale,y=t(&quot;../../plots/cartesian/axis_defaults&quot;),x=t(&quot;../../plots/cartesian/position_defaults&quot;),b=t(&quot;../../plots/cartesian/layout_attributes&quot;),_=t(&quot;../../constants/alignment&quot;),w=_.LINE_SPACING,T=_.FROM_TL,k=_.FROM_BR,M=t(&quot;./constants&quot;).cn;e.exports={draw:function(t){var e=t._fullLayout._infolayer.selectAll(&quot;g.&quot;+M.colorbar).data(function(t){var e,r,n,i,a=t._fullLayout,o=t.calcdata,s=[];function l(t){return f(t,{_fillcolor:null,_line:{color:null,width:null,dash:null},_levels:{start:null,end:null,size:null},_filllevels:null,_fillgradient:null,_zrange:null})}function c(){&quot;function&quot;==typeof i.calc?i.calc(t,n,e):(e._fillgradient=r.reversescale?v(r.colorscale):r.colorscale,e._zrange=[r[i.min],r[i.max]])}for(var u=0;u&lt;o.length;u++){var h=o[u],p=(n=h[0].trace)._module.colorbar;if(!0===n.visible&amp;&amp;p)for(var d=Array.isArray(p),g=d?p:[p],m=0;m&lt;g.length;m++){var y=(i=g[m]).container;(r=y?n[y]:n)&amp;&amp;r.showscale&amp;&amp;((e=l(r.colorbar))._id=&quot;cb&quot;+n.uid+(d&amp;&amp;y?&quot;-&quot;+y:&quot;&quot;),e._traceIndex=n.index,e._propPrefix=(y?y+&quot;.&quot;:&quot;&quot;)+&quot;colorbar.&quot;,e._meta=n._meta,c(),s.push(e))}}for(var x in a._colorAxes)if((r=a[x]).showscale){var b=a._colorAxes[x];(e=l(r.colorbar))._id=&quot;cb&quot;+x,e._propPrefix=x+&quot;.colorbar.&quot;,e._meta=a._meta,i={min:&quot;cmin&quot;,max:&quot;cmax&quot;},&quot;heatmap&quot;!==b[0]&amp;&amp;(n=b[1],i.calc=n._module.colorbar.calc),c(),s.push(e)}return s}(t),(function(t){return t._id}));e.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return t._id})).classed(M.colorbar,!0),e.each((function(e){var r=n.select(this);c.ensureSingle(r,&quot;rect&quot;,M.cbbg),c.ensureSingle(r,&quot;g&quot;,M.cbfills),c.ensureSingle(r,&quot;g&quot;,M.cblines),c.ensureSingle(r,&quot;g&quot;,M.cbaxis,(function(t){t.classed(M.crisp,!0)})),c.ensureSingle(r,&quot;g&quot;,M.cbtitleunshift,(function(t){t.append(&quot;g&quot;).classed(M.cbtitle,!0)})),c.ensureSingle(r,&quot;rect&quot;,M.cboutline);var v=function(t,e,r){var o=r._fullLayout,l=o._size,h=e._fillcolor,v=e._line,_=e.title,A=_.side,S=e._zrange||n.extent((&quot;function&quot;==typeof h?h:v.color).domain()),E=&quot;function&quot;==typeof v.color?v.color:function(){return v.color},C=&quot;function&quot;==typeof h?h:function(){return h},L=e._levels,I=function(t,e,r){var n,i,a=e._levels,o=[],s=[],l=a.end+a.size/100,c=a.size,u=1.001*r[0]-.001*r[1],f=1.001*r[1]-.001*r[0];for(i=0;i&lt;1e5&amp;&amp;(n=a.start+i*c,!(c&gt;0?n&gt;=l:n&lt;=l));i++)n&gt;u&amp;&amp;n&lt;f&amp;&amp;o.push(n);if(e._fillgradient)s=[0];else if(&quot;function&quot;==typeof e._fillcolor){var h=e._filllevels;if(h)for(l=h.end+h.size/100,c=h.size,i=0;i&lt;1e5&amp;&amp;(n=h.start+i*c,!(c&gt;0?n&gt;=l:n&lt;=l));i++)n&gt;r[0]&amp;&amp;n&lt;r[1]&amp;&amp;s.push(n);else(s=o.map((function(t){return t-a.size/2}))).push(s[s.length-1]+a.size)}else e._fillcolor&amp;&amp;&quot;string&quot;==typeof e._fillcolor&amp;&amp;(s=[0]);a.size&lt;0&amp;&amp;(o.reverse(),s.reverse());return{line:o,fill:s}}(0,e,S),P=I.fill,z=I.line,O=Math.round(e.thickness*(&quot;fraction&quot;===e.thicknessmode?l.w:1)),D=O/l.w,R=Math.round(e.len*(&quot;fraction&quot;===e.lenmode?l.h:1)),F=R/l.h,B=e.xpad/l.w,N=(e.borderwidth+e.outlinewidth)/2,j=e.ypad/l.h,U=Math.round(e.x*l.w+e.xpad),V=e.x-D*({middle:.5,right:1}[e.xanchor]||0),q=e.y+F*(({top:-.5,bottom:.5}[e.yanchor]||0)-.5),H=Math.round(l.h*(1-q)),G=H-R;e._lenFrac=F,e._thickFrac=D,e._xLeftFrac=V,e._yBottomFrac=q;var Y=e._axis=function(t,e,r){var n=t._fullLayout,i={type:&quot;linear&quot;,range:r,tickmode:e.tickmode,nticks:e.nticks,tick0:e.tick0,dtick:e.dtick,tickvals:e.tickvals,ticktext:e.ticktext,ticks:e.ticks,ticklen:e.ticklen,tickwidth:e.tickwidth,tickcolor:e.tickcolor,showticklabels:e.showticklabels,ticklabelposition:e.ticklabelposition,tickfont:e.tickfont,tickangle:e.tickangle,tickformat:e.tickformat,exponentformat:e.exponentformat,minexponent:e.minexponent,separatethousands:e.separatethousands,showexponent:e.showexponent,showtickprefix:e.showtickprefix,tickprefix:e.tickprefix,showticksuffix:e.showticksuffix,ticksuffix:e.ticksuffix,title:e.title,showline:!0,anchor:&quot;free&quot;,side:&quot;right&quot;,position:1},a={type:&quot;linear&quot;,_id:&quot;y&quot;+e._id},o={letter:&quot;y&quot;,font:n.font,noHover:!0,noTickson:!0,noTicklabelmode:!0,calendar:n.calendar};function s(t,e){return c.coerce(i,a,b,t,e)}return y(i,a,s,o,n),x(i,a,s,o),a}(r,e,S);Y.position=e.x+B+D,-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)&amp;&amp;(Y.title.side=A,Y.titlex=e.x+B,Y.titley=q+(&quot;top&quot;===_.side?F-j:j));if(v.color&amp;&amp;&quot;auto&quot;===e.tickmode){Y.tickmode=&quot;linear&quot;,Y.tick0=L.start;var W=L.size,X=c.constrain((H-G)/50,4,15)+1,Z=(S[1]-S[0])/((e.nticks||X)*W);if(Z&gt;1){var J=Math.pow(10,Math.floor(Math.log(Z)/Math.LN10));W*=J*c.roundUp(Z/J,[2,5,10]),(Math.abs(L.start)/L.size+1e-6)%1&lt;2e-6&amp;&amp;(Y.tick0=0)}Y.dtick=W}Y.domain=[q+j,q+F-j],Y.setScale(),t.attr(&quot;transform&quot;,u(Math.round(l.l),Math.round(l.t)));var K,Q=t.select(&quot;.&quot;+M.cbtitleunshift).attr(&quot;transform&quot;,u(-Math.round(l.l),-Math.round(l.t))),$=t.select(&quot;.&quot;+M.cbaxis),tt=0;function et(n,i){var a={propContainer:Y,propName:e._propPrefix+&quot;title&quot;,traceIndex:e._traceIndex,_meta:e._meta,placeholder:o._dfltTitle.colorbar,containerGroup:t.select(&quot;.&quot;+M.cbtitle)},s=&quot;h&quot;===n.charAt(0)?n.substr(1):&quot;h&quot;+n;t.selectAll(&quot;.&quot;+s+&quot;,.&quot;+s+&quot;-math-group&quot;).remove(),g.draw(r,n,f(a,i||{}))}return c.syncOrAsync([a.previousPromises,function(){if(-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)){var t,r=l.l+(e.x+B)*l.w,n=Y.title.font.size;t=&quot;top&quot;===A?(1-(q+F-j))*l.h+l.t+3+.75*n:(1-(q+j))*l.h+l.t-3-.25*n,et(Y._id+&quot;title&quot;,{attributes:{x:r,y:t,&quot;text-anchor&quot;:&quot;start&quot;}})}},function(){if(-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)){var a=t.select(&quot;.&quot;+M.cbtitle),o=a.select(&quot;text&quot;),f=[-e.outlinewidth/2,e.outlinewidth/2],h=a.select(&quot;.h&quot;+Y._id+&quot;title-math-group&quot;).node(),d=15.6;if(o.node()&amp;&amp;(d=parseInt(o.node().style.fontSize,10)*w),h?(tt=p.bBox(h).height)&gt;d&amp;&amp;(f[1]-=(tt-d)/2):o.node()&amp;&amp;!o.classed(M.jsPlaceholder)&amp;&amp;(tt=p.bBox(o.node()).height),tt){if(tt+=5,&quot;top&quot;===A)Y.domain[1]-=tt/l.h,f[1]*=-1;else{Y.domain[0]+=tt/l.h;var g=m.lineCount(o);f[1]+=(1-g)*d}a.attr(&quot;transform&quot;,u(f[0],f[1])),Y.setScale()}}t.selectAll(&quot;.&quot;+M.cbfills+&quot;,.&quot;+M.cblines).attr(&quot;transform&quot;,u(0,Math.round(l.h*(1-Y.domain[1])))),$.attr(&quot;transform&quot;,u(0,Math.round(-l.t)));var y=t.select(&quot;.&quot;+M.cbfills).selectAll(&quot;rect.&quot;+M.cbfill).attr(&quot;style&quot;,&quot;&quot;).data(P);y.enter().append(&quot;rect&quot;).classed(M.cbfill,!0).style(&quot;stroke&quot;,&quot;none&quot;),y.exit().remove();var x=S.map(Y.c2p).map(Math.round).sort((function(t,e){return t-e}));y.each((function(t,a){var o=[0===a?S[0]:(P[a]+P[a-1])/2,a===P.length-1?S[1]:(P[a]+P[a+1])/2].map(Y.c2p).map(Math.round);o[1]=c.constrain(o[1]+(o[1]&gt;o[0])?1:-1,x[0],x[1]);var s=n.select(this).attr({x:U,width:Math.max(O,2),y:n.min(o),height:Math.max(n.max(o)-n.min(o),2)});if(e._fillgradient)p.gradient(s,r,e._id,&quot;vertical&quot;,e._fillgradient,&quot;fill&quot;);else{var l=C(t).replace(&quot;e-&quot;,&quot;&quot;);s.attr(&quot;fill&quot;,i(l).toHexString())}}));var b=t.select(&quot;.&quot;+M.cblines).selectAll(&quot;path.&quot;+M.cbline).data(v.color&amp;&amp;v.width?z:[]);b.enter().append(&quot;path&quot;).classed(M.cbline,!0),b.exit().remove(),b.each((function(t){n.select(this).attr(&quot;d&quot;,&quot;M&quot;+U+&quot;,&quot;+(Math.round(Y.c2p(t))+v.width/2%1)+&quot;h&quot;+O).call(p.lineGroupStyle,v.width,E(t),v.dash)})),$.selectAll(&quot;g.&quot;+Y._id+&quot;tick,path&quot;).remove();var _=U+O+(e.outlinewidth||0)/2-(&quot;outside&quot;===e.ticks?1:0),T=s.calcTicks(Y),k=s.getTickSigns(Y)[2];return s.drawTicks(r,Y,{vals:&quot;inside&quot;===Y.ticks?s.clipEnds(Y,T):T,layer:$,path:s.makeTickPath(Y,_,k),transFn:s.makeTransTickFn(Y)}),s.drawLabels(r,Y,{vals:T,layer:$,transFn:s.makeTransTickLabelFn(Y),labelFns:s.makeLabelFns(Y,_)})},function(){if(-1===[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)){var t=Y.title.font.size,e=Y._offset+Y._length/2,i=l.l+(Y.position||0)*l.w+(&quot;right&quot;===Y.side?10+t*(Y.showticklabels?1:.5):-10-t*(Y.showticklabels?.5:0));et(&quot;h&quot;+Y._id+&quot;title&quot;,{avoid:{selection:n.select(r).selectAll(&quot;g.&quot;+Y._id+&quot;tick&quot;),side:A,offsetLeft:l.l,offsetTop:0,maxShift:o.width},attributes:{x:i,y:e,&quot;text-anchor&quot;:&quot;middle&quot;},transform:{rotate:&quot;-90&quot;,offset:0}})}},a.previousPromises,function(){var n=O+e.outlinewidth/2;if(-1===Y.ticklabelposition.indexOf(&quot;inside&quot;)&amp;&amp;(n+=p.bBox($.node()).width),(K=Q.select(&quot;text&quot;)).node()&amp;&amp;!K.classed(M.jsPlaceholder)){var i,o=Q.select(&quot;.h&quot;+Y._id+&quot;title-math-group&quot;).node();i=o&amp;&amp;-1!==[&quot;top&quot;,&quot;bottom&quot;].indexOf(A)?p.bBox(o).width:p.bBox(Q.node()).right-U-l.l,n=Math.max(n,i)}var s=2*e.xpad+n+e.borderwidth+e.outlinewidth/2,c=H-G;t.select(&quot;.&quot;+M.cbbg).attr({x:U-e.xpad-(e.borderwidth+e.outlinewidth)/2,y:G-N,width:Math.max(s,2),height:Math.max(c+2*N,2)}).call(d.fill,e.bgcolor).call(d.stroke,e.bordercolor).style(&quot;stroke-width&quot;,e.borderwidth),t.selectAll(&quot;.&quot;+M.cboutline).attr({x:U,y:G+e.ypad+(&quot;top&quot;===A?tt:0),width:Math.max(O,2),height:Math.max(c-2*e.ypad-tt,2)}).call(d.stroke,e.outlinecolor).style({fill:&quot;none&quot;,&quot;stroke-width&quot;:e.outlinewidth});var f=({center:.5,right:1}[e.xanchor]||0)*s;t.attr(&quot;transform&quot;,u(l.l-f,l.t));var h={},g=T[e.yanchor],m=k[e.yanchor];&quot;pixels&quot;===e.lenmode?(h.y=e.y,h.t=c*g,h.b=c*m):(h.t=h.b=0,h.yt=e.y+e.len*g,h.yb=e.y-e.len*m);var v=T[e.xanchor],y=k[e.xanchor];if(&quot;pixels&quot;===e.thicknessmode)h.x=e.x,h.l=s*v,h.r=s*y;else{var x=s-O;h.l=x*v,h.r=x*y,h.xl=e.x-e.thickness*v,h.xr=e.x+e.thickness*y}a.autoMargin(r,e._id,h)}],r)}(r,e,t);v&amp;&amp;v.then&amp;&amp;(t._promises||[]).push(v),t._context.edits.colorbarPosition&amp;&amp;function(t,e,r){var n,i,a,s=r._fullLayout._size;l.init({element:t.node(),gd:r,prepFn:function(){n=t.attr(&quot;transform&quot;),h(t)},moveFn:function(r,o){t.attr(&quot;transform&quot;,n+u(r,o)),i=l.align(e._xLeftFrac+r/s.w,e._thickFrac,0,1,e.xanchor),a=l.align(e._yBottomFrac-o/s.h,e._lenFrac,0,1,e.yanchor);var c=l.getCursor(i,a,e.xanchor,e.yanchor);h(t,c)},doneFn:function(){if(h(t),void 0!==i&amp;&amp;void 0!==a){var n={};n[e._propPrefix+&quot;x&quot;]=i,n[e._propPrefix+&quot;y&quot;]=a,void 0!==e._traceIndex?o.call(&quot;_guiRestyle&quot;,r,n,e._traceIndex):o.call(&quot;_guiRelayout&quot;,r,n)}}})}(r,e,t)})),e.exit().each((function(e){a.autoMargin(t,e._id)})).remove(),e.order()}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/extend&quot;:768,&quot;../../lib/setcursor&quot;:799,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_defaults&quot;:830,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/cartesian/position_defaults&quot;:845,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../colorscale/helpers&quot;:654,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../titles&quot;:738,&quot;./constants&quot;:645,d3:169,tinycolor2:576}],648:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t){return n.isPlainObject(t.colorbar)}},{&quot;../../lib&quot;:778}],649:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;colorbar&quot;,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;).draw,hasColorbar:t(&quot;./has_colorbar&quot;)}},{&quot;./attributes&quot;:644,&quot;./defaults&quot;:646,&quot;./draw&quot;:647,&quot;./has_colorbar&quot;:648}],650:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../colorbar/attributes&quot;),i=t(&quot;../../lib/regex&quot;).counter,a=t(&quot;./scales.js&quot;).scales;Object.keys(a);function o(t){return&quot;`&quot;+t+&quot;`&quot;}e.exports=function(t,e){t=t||&quot;&quot;;var r,s=(e=e||{}).cLetter||&quot;c&quot;,l=(&quot;onlyIfNumerical&quot;in e?e.onlyIfNumerical:Boolean(t),&quot;noScale&quot;in e?e.noScale:&quot;marker.line&quot;===t),c=&quot;showScaleDflt&quot;in e?e.showScaleDflt:&quot;z&quot;===s,u=&quot;string&quot;==typeof e.colorscaleDflt?a[e.colorscaleDflt]:null,f=e.editTypeOverride||&quot;&quot;,h=t?t+&quot;.&quot;:&quot;&quot;;&quot;colorAttr&quot;in e?(r=e.colorAttr,e.colorAttr):o(h+(r={z:&quot;z&quot;,c:&quot;color&quot;}[s]));var p=s+&quot;auto&quot;,d=s+&quot;min&quot;,g=s+&quot;max&quot;,m=s+&quot;mid&quot;,v=(o(h+p),o(h+d),o(h+g),{});v[d]=v[g]=void 0;var y={};y[p]=!1;var x={};return&quot;color&quot;===r&amp;&amp;(x.color={valType:&quot;color&quot;,arrayOk:!0,editType:f||&quot;style&quot;},e.anim&amp;&amp;(x.color.anim=!0)),x[p]={valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:v},x[d]={valType:&quot;number&quot;,dflt:null,editType:f||&quot;plot&quot;,impliedEdits:y},x[g]={valType:&quot;number&quot;,dflt:null,editType:f||&quot;plot&quot;,impliedEdits:y},x[m]={valType:&quot;number&quot;,dflt:null,editType:&quot;calc&quot;,impliedEdits:v},x.colorscale={valType:&quot;colorscale&quot;,editType:&quot;calc&quot;,dflt:u,impliedEdits:{autocolorscale:!1}},x.autocolorscale={valType:&quot;boolean&quot;,dflt:!1!==e.autoColorDflt,editType:&quot;calc&quot;,impliedEdits:{colorscale:void 0}},x.reversescale={valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},l||(x.showscale={valType:&quot;boolean&quot;,dflt:c,editType:&quot;calc&quot;},x.colorbar=n),e.noColorAxis||(x.coloraxis={valType:&quot;subplotid&quot;,regex:i(&quot;coloraxis&quot;),dflt:null,editType:&quot;calc&quot;}),x}},{&quot;../../lib/regex&quot;:795,&quot;../colorbar/attributes&quot;:644,&quot;./scales.js&quot;:658}],651:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./helpers&quot;).extractOpts;e.exports=function(t,e,r){var o,s=t._fullLayout,l=r.vals,c=r.containerStr,u=c?i.nestedProperty(e,c).get():e,f=a(u),h=!1!==f.auto,p=f.min,d=f.max,g=f.mid,m=function(){return i.aggNums(Math.min,null,l)},v=function(){return i.aggNums(Math.max,null,l)};(void 0===p?p=m():h&amp;&amp;(p=u._colorAx&amp;&amp;n(p)?Math.min(p,m()):m()),void 0===d?d=v():h&amp;&amp;(d=u._colorAx&amp;&amp;n(d)?Math.max(d,v()):v()),h&amp;&amp;void 0!==g&amp;&amp;(d-g&gt;g-p?p=g-(d-g):d-g&lt;g-p&amp;&amp;(d=g+(g-p))),p===d&amp;&amp;(p-=.5,d+=.5),f._sync(&quot;min&quot;,p),f._sync(&quot;max&quot;,d),f.autocolorscale)&amp;&amp;(o=p*d&lt;0?s.colorscale.diverging:p&gt;=0?s.colorscale.sequential:s.colorscale.sequentialminus,f._sync(&quot;colorscale&quot;,o))}},{&quot;../../lib&quot;:778,&quot;./helpers&quot;:654,&quot;fast-isnumeric&quot;:241}],652:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./helpers&quot;).hasColorscale,a=t(&quot;./helpers&quot;).extractOpts;e.exports=function(t,e){function r(t,e){var r=t[&quot;_&quot;+e];void 0!==r&amp;&amp;(t[e]=r)}function o(t,i){var o=i.container?n.nestedProperty(t,i.container).get():t;if(o)if(o.coloraxis)o._colorAx=e[o.coloraxis];else{var s=a(o),l=s.auto;(l||void 0===s.min)&amp;&amp;r(o,i.min),(l||void 0===s.max)&amp;&amp;r(o,i.max),s.autocolorscale&amp;&amp;r(o,&quot;colorscale&quot;)}}for(var s=0;s&lt;t.length;s++){var l=t[s],c=l._module.colorbar;if(c)if(Array.isArray(c))for(var u=0;u&lt;c.length;u++)o(l,c[u]);else o(l,c);i(l,&quot;marker.line&quot;)&amp;&amp;o(l,{container:&quot;marker.line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;})}for(var f in e._colorAxes)o(e[f],{min:&quot;cmin&quot;,max:&quot;cmax&quot;})}},{&quot;../../lib&quot;:778,&quot;./helpers&quot;:654}],653:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../colorbar/has_colorbar&quot;),o=t(&quot;../colorbar/defaults&quot;),s=t(&quot;./scales&quot;).isValid,l=t(&quot;../../registry&quot;).traceIs;function c(t,e){var r=e.slice(0,e.length-1);return e?i.nestedProperty(t,r).get()||{}:t}e.exports=function t(e,r,u,f,h){var p=h.prefix,d=h.cLetter,g=&quot;_module&quot;in r,m=c(e,p),v=c(r,p),y=c(r._template||{},p)||{},x=function(){return delete e.coloraxis,delete r.coloraxis,t(e,r,u,f,h)};if(g){var b=u._colorAxes||{},_=f(p+&quot;coloraxis&quot;);if(_){var w=l(r,&quot;contour&quot;)&amp;&amp;i.nestedProperty(r,&quot;contours.coloring&quot;).get()||&quot;heatmap&quot;,T=b[_];return void(T?(T[2].push(x),T[0]!==w&amp;&amp;(T[0]=!1,i.warn([&quot;Ignoring coloraxis:&quot;,_,&quot;setting&quot;,&quot;as it is linked to incompatible colorscales.&quot;].join(&quot; &quot;)))):b[_]=[w,r,[x]])}}var k=m[d+&quot;min&quot;],M=m[d+&quot;max&quot;],A=n(k)&amp;&amp;n(M)&amp;&amp;k&lt;M;f(p+d+&quot;auto&quot;,!A)?f(p+d+&quot;mid&quot;):(f(p+d+&quot;min&quot;),f(p+d+&quot;max&quot;));var S,E,C=m.colorscale,L=y.colorscale;(void 0!==C&amp;&amp;(S=!s(C)),void 0!==L&amp;&amp;(S=!s(L)),f(p+&quot;autocolorscale&quot;,S),f(p+&quot;colorscale&quot;),f(p+&quot;reversescale&quot;),&quot;marker.line.&quot;!==p)&amp;&amp;(p&amp;&amp;g&amp;&amp;(E=a(m)),f(p+&quot;showscale&quot;,E)&amp;&amp;(p&amp;&amp;y&amp;&amp;(v._template=y),o(m,v,u)))}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../colorbar/defaults&quot;:646,&quot;../colorbar/has_colorbar&quot;:648,&quot;./scales&quot;:658,&quot;fast-isnumeric&quot;:241}],654:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../color&quot;),l=t(&quot;./scales&quot;).isValid;var c=[&quot;showscale&quot;,&quot;autocolorscale&quot;,&quot;colorscale&quot;,&quot;reversescale&quot;,&quot;colorbar&quot;],u=[&quot;min&quot;,&quot;max&quot;,&quot;mid&quot;,&quot;auto&quot;];function f(t){var e,r,n,i=t._colorAx,a=i||t,o={};for(r=0;r&lt;c.length;r++)o[n=c[r]]=a[n];if(i)for(e=&quot;c&quot;,r=0;r&lt;u.length;r++)o[n=u[r]]=a[&quot;c&quot;+n];else{var s;for(r=0;r&lt;u.length;r++)((s=&quot;c&quot;+(n=u[r]))in a||(s=&quot;z&quot;+n)in a)&amp;&amp;(o[n]=a[s]);e=s.charAt(0)}return o._sync=function(t,r){var n=-1!==u.indexOf(t)?e+t:t;a[n]=a[&quot;_&quot;+n]=r},o}function h(t){for(var e=f(t),r=e.min,n=e.max,i=e.reversescale?p(e.colorscale):e.colorscale,a=i.length,o=new Array(a),s=new Array(a),l=0;l&lt;a;l++){var c=i[l];o[l]=r+c[0]*(n-r),s[l]=c[1]}return{domain:o,range:s}}function p(t){for(var e=t.length,r=new Array(e),n=e-1,i=0;n&gt;=0;n--,i++){var a=t[n];r[i]=[1-a[0],a[1]]}return r}function d(t,e){e=e||{};for(var r=t.domain,o=t.range,l=o.length,c=new Array(l),u=0;u&lt;l;u++){var f=i(o[u]).toRgb();c[u]=[f.r,f.g,f.b,f.a]}var h,p=n.scale.linear().domain(r).range(c).clamp(!0),d=e.noNumericCheck,m=e.returnArray;return(h=d&amp;&amp;m?p:d?function(t){return g(p(t))}:m?function(t){return a(t)?p(t):i(t).isValid()?t:s.defaultLine}:function(t){return a(t)?g(p(t)):i(t).isValid()?t:s.defaultLine}).domain=p.domain,h.range=function(){return o},h}function g(t){var e={r:t[0],g:t[1],b:t[2],a:t[3]};return i(e).toRgbString()}e.exports={hasColorscale:function(t,e,r){var n=e?o.nestedProperty(t,e).get()||{}:t,i=n[r||&quot;color&quot;],s=!1;if(o.isArrayOrTypedArray(i))for(var c=0;c&lt;i.length;c++)if(a(i[c])){s=!0;break}return o.isPlainObject(n)&amp;&amp;(s||!0===n.showscale||a(n.cmin)&amp;&amp;a(n.cmax)||l(n.colorscale)||o.isPlainObject(n.colorbar))},extractOpts:f,extractScale:h,flipScale:p,makeColorScaleFunc:d,makeColorScaleFuncFromTrace:function(t,e){return d(h(t),e)}}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;./scales&quot;:658,d3:169,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],655:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./scales&quot;),i=t(&quot;./helpers&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;colorscale&quot;,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),handleDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),calc:t(&quot;./calc&quot;),scales:n.scales,defaultScale:n.defaultScale,getScale:n.get,isValidScale:n.isValid,hasColorscale:i.hasColorscale,extractOpts:i.extractOpts,extractScale:i.extractScale,flipScale:i.flipScale,makeColorScaleFunc:i.makeColorScaleFunc,makeColorScaleFuncFromTrace:i.makeColorScaleFuncFromTrace}},{&quot;./attributes&quot;:650,&quot;./calc&quot;:651,&quot;./cross_trace_defaults&quot;:652,&quot;./defaults&quot;:653,&quot;./helpers&quot;:654,&quot;./layout_attributes&quot;:656,&quot;./layout_defaults&quot;:657,&quot;./scales&quot;:658}],656:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;./attributes&quot;),a=t(&quot;./scales&quot;).scales;e.exports={editType:&quot;calc&quot;,colorscale:{editType:&quot;calc&quot;,sequential:{valType:&quot;colorscale&quot;,dflt:a.Reds,editType:&quot;calc&quot;},sequentialminus:{valType:&quot;colorscale&quot;,dflt:a.Blues,editType:&quot;calc&quot;},diverging:{valType:&quot;colorscale&quot;,dflt:a.RdBu,editType:&quot;calc&quot;}},coloraxis:n({_isSubplotObj:!0,editType:&quot;calc&quot;},i(&quot;&quot;,{colorAttr:&quot;corresponding trace color array(s)&quot;,noColorAxis:!0,showScaleDflt:!0}))}},{&quot;../../lib/extend&quot;:768,&quot;./attributes&quot;:650,&quot;./scales&quot;:658}],657:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;./layout_attributes&quot;),o=t(&quot;./defaults&quot;);e.exports=function(t,e){function r(r,i){return n.coerce(t,e,a,r,i)}r(&quot;colorscale.sequential&quot;),r(&quot;colorscale.sequentialminus&quot;),r(&quot;colorscale.diverging&quot;);var s,l,c=e._colorAxes;function u(t,e){return n.coerce(s,l,a.coloraxis,t,e)}for(var f in c){var h=c[f];if(h[0])s=t[f]||{},(l=i.newContainer(e,f,&quot;coloraxis&quot;))._name=f,o(s,l,e,u,{prefix:&quot;&quot;,cLetter:&quot;c&quot;});else{for(var p=0;p&lt;h[2].length;p++)h[2][p]();delete e._colorAxes[f]}}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;./defaults&quot;:653,&quot;./layout_attributes&quot;:656}],658:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;),i={Greys:[[0,&quot;rgb(0,0,0)&quot;],[1,&quot;rgb(255,255,255)&quot;]],YlGnBu:[[0,&quot;rgb(8,29,88)&quot;],[.125,&quot;rgb(37,52,148)&quot;],[.25,&quot;rgb(34,94,168)&quot;],[.375,&quot;rgb(29,145,192)&quot;],[.5,&quot;rgb(65,182,196)&quot;],[.625,&quot;rgb(127,205,187)&quot;],[.75,&quot;rgb(199,233,180)&quot;],[.875,&quot;rgb(237,248,217)&quot;],[1,&quot;rgb(255,255,217)&quot;]],Greens:[[0,&quot;rgb(0,68,27)&quot;],[.125,&quot;rgb(0,109,44)&quot;],[.25,&quot;rgb(35,139,69)&quot;],[.375,&quot;rgb(65,171,93)&quot;],[.5,&quot;rgb(116,196,118)&quot;],[.625,&quot;rgb(161,217,155)&quot;],[.75,&quot;rgb(199,233,192)&quot;],[.875,&quot;rgb(229,245,224)&quot;],[1,&quot;rgb(247,252,245)&quot;]],YlOrRd:[[0,&quot;rgb(128,0,38)&quot;],[.125,&quot;rgb(189,0,38)&quot;],[.25,&quot;rgb(227,26,28)&quot;],[.375,&quot;rgb(252,78,42)&quot;],[.5,&quot;rgb(253,141,60)&quot;],[.625,&quot;rgb(254,178,76)&quot;],[.75,&quot;rgb(254,217,118)&quot;],[.875,&quot;rgb(255,237,160)&quot;],[1,&quot;rgb(255,255,204)&quot;]],Bluered:[[0,&quot;rgb(0,0,255)&quot;],[1,&quot;rgb(255,0,0)&quot;]],RdBu:[[0,&quot;rgb(5,10,172)&quot;],[.35,&quot;rgb(106,137,247)&quot;],[.5,&quot;rgb(190,190,190)&quot;],[.6,&quot;rgb(220,170,132)&quot;],[.7,&quot;rgb(230,145,90)&quot;],[1,&quot;rgb(178,10,28)&quot;]],Reds:[[0,&quot;rgb(220,220,220)&quot;],[.2,&quot;rgb(245,195,157)&quot;],[.4,&quot;rgb(245,160,105)&quot;],[1,&quot;rgb(178,10,28)&quot;]],Blues:[[0,&quot;rgb(5,10,172)&quot;],[.35,&quot;rgb(40,60,190)&quot;],[.5,&quot;rgb(70,100,245)&quot;],[.6,&quot;rgb(90,120,245)&quot;],[.7,&quot;rgb(106,137,247)&quot;],[1,&quot;rgb(220,220,220)&quot;]],Picnic:[[0,&quot;rgb(0,0,255)&quot;],[.1,&quot;rgb(51,153,255)&quot;],[.2,&quot;rgb(102,204,255)&quot;],[.3,&quot;rgb(153,204,255)&quot;],[.4,&quot;rgb(204,204,255)&quot;],[.5,&quot;rgb(255,255,255)&quot;],[.6,&quot;rgb(255,204,255)&quot;],[.7,&quot;rgb(255,153,255)&quot;],[.8,&quot;rgb(255,102,204)&quot;],[.9,&quot;rgb(255,102,102)&quot;],[1,&quot;rgb(255,0,0)&quot;]],Rainbow:[[0,&quot;rgb(150,0,90)&quot;],[.125,&quot;rgb(0,0,200)&quot;],[.25,&quot;rgb(0,25,255)&quot;],[.375,&quot;rgb(0,152,255)&quot;],[.5,&quot;rgb(44,255,150)&quot;],[.625,&quot;rgb(151,255,0)&quot;],[.75,&quot;rgb(255,234,0)&quot;],[.875,&quot;rgb(255,111,0)&quot;],[1,&quot;rgb(255,0,0)&quot;]],Portland:[[0,&quot;rgb(12,51,131)&quot;],[.25,&quot;rgb(10,136,186)&quot;],[.5,&quot;rgb(242,211,56)&quot;],[.75,&quot;rgb(242,143,56)&quot;],[1,&quot;rgb(217,30,30)&quot;]],Jet:[[0,&quot;rgb(0,0,131)&quot;],[.125,&quot;rgb(0,60,170)&quot;],[.375,&quot;rgb(5,255,255)&quot;],[.625,&quot;rgb(255,255,0)&quot;],[.875,&quot;rgb(250,0,0)&quot;],[1,&quot;rgb(128,0,0)&quot;]],Hot:[[0,&quot;rgb(0,0,0)&quot;],[.3,&quot;rgb(230,0,0)&quot;],[.6,&quot;rgb(255,210,0)&quot;],[1,&quot;rgb(255,255,255)&quot;]],Blackbody:[[0,&quot;rgb(0,0,0)&quot;],[.2,&quot;rgb(230,0,0)&quot;],[.4,&quot;rgb(230,210,0)&quot;],[.7,&quot;rgb(255,255,255)&quot;],[1,&quot;rgb(160,200,255)&quot;]],Earth:[[0,&quot;rgb(0,0,130)&quot;],[.1,&quot;rgb(0,180,180)&quot;],[.2,&quot;rgb(40,210,40)&quot;],[.4,&quot;rgb(230,230,50)&quot;],[.6,&quot;rgb(120,70,20)&quot;],[1,&quot;rgb(255,255,255)&quot;]],Electric:[[0,&quot;rgb(0,0,0)&quot;],[.15,&quot;rgb(30,0,100)&quot;],[.4,&quot;rgb(120,0,100)&quot;],[.6,&quot;rgb(160,90,0)&quot;],[.8,&quot;rgb(230,200,0)&quot;],[1,&quot;rgb(255,250,220)&quot;]],Viridis:[[0,&quot;#440154&quot;],[.06274509803921569,&quot;#48186a&quot;],[.12549019607843137,&quot;#472d7b&quot;],[.18823529411764706,&quot;#424086&quot;],[.25098039215686274,&quot;#3b528b&quot;],[.3137254901960784,&quot;#33638d&quot;],[.3764705882352941,&quot;#2c728e&quot;],[.4392156862745098,&quot;#26828e&quot;],[.5019607843137255,&quot;#21918c&quot;],[.5647058823529412,&quot;#1fa088&quot;],[.6274509803921569,&quot;#28ae80&quot;],[.6901960784313725,&quot;#3fbc73&quot;],[.7529411764705882,&quot;#5ec962&quot;],[.8156862745098039,&quot;#84d44b&quot;],[.8784313725490196,&quot;#addc30&quot;],[.9411764705882353,&quot;#d8e219&quot;],[1,&quot;#fde725&quot;]],Cividis:[[0,&quot;rgb(0,32,76)&quot;],[.058824,&quot;rgb(0,42,102)&quot;],[.117647,&quot;rgb(0,52,110)&quot;],[.176471,&quot;rgb(39,63,108)&quot;],[.235294,&quot;rgb(60,74,107)&quot;],[.294118,&quot;rgb(76,85,107)&quot;],[.352941,&quot;rgb(91,95,109)&quot;],[.411765,&quot;rgb(104,106,112)&quot;],[.470588,&quot;rgb(117,117,117)&quot;],[.529412,&quot;rgb(131,129,120)&quot;],[.588235,&quot;rgb(146,140,120)&quot;],[.647059,&quot;rgb(161,152,118)&quot;],[.705882,&quot;rgb(176,165,114)&quot;],[.764706,&quot;rgb(192,177,109)&quot;],[.823529,&quot;rgb(209,191,102)&quot;],[.882353,&quot;rgb(225,204,92)&quot;],[.941176,&quot;rgb(243,219,79)&quot;],[1,&quot;rgb(255,233,69)&quot;]]},a=i.RdBu;function o(t){var e=0;if(!Array.isArray(t)||t.length&lt;2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r&lt;t.length;r++){var i=t[r];if(2!==i.length||+i[0]&lt;e||!n(i[1]).isValid())return!1;e=+i[0]}return!0}e.exports={scales:i,defaultScale:a,get:function(t,e){if(e||(e=a),!t)return e;function r(){try{t=i[t]||JSON.parse(t)}catch(r){t=e}}return&quot;string&quot;==typeof t&amp;&amp;(r(),&quot;string&quot;==typeof t&amp;&amp;r()),o(t)?t:e},isValid:function(t){return void 0!==i[t]||o(t)}}},{tinycolor2:576}],659:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=(t-r)/(n-r),o=a+e/(n-r),s=(a+o)/2;return&quot;left&quot;===i||&quot;bottom&quot;===i?a:&quot;center&quot;===i||&quot;middle&quot;===i?s:&quot;right&quot;===i||&quot;top&quot;===i?o:a&lt;2/3-s?a:o&gt;4/3-s?o:s}},{}],660:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=[[&quot;sw-resize&quot;,&quot;s-resize&quot;,&quot;se-resize&quot;],[&quot;w-resize&quot;,&quot;move&quot;,&quot;e-resize&quot;],[&quot;nw-resize&quot;,&quot;n-resize&quot;,&quot;ne-resize&quot;]];e.exports=function(t,e,r,a){return t=&quot;left&quot;===r?0:&quot;center&quot;===r?1:&quot;right&quot;===r?2:n.constrain(Math.floor(3*t),0,2),e=&quot;bottom&quot;===a?0:&quot;middle&quot;===a?1:&quot;top&quot;===a?2:n.constrain(Math.floor(3*e),0,2),i[e][t]}},{&quot;../../lib&quot;:778}],661:[function(t,e,r){&quot;use strict&quot;;r.selectMode=function(t){return&quot;lasso&quot;===t||&quot;select&quot;===t},r.drawMode=function(t){return&quot;drawclosedpath&quot;===t||&quot;drawopenpath&quot;===t||&quot;drawline&quot;===t||&quot;drawrect&quot;===t||&quot;drawcircle&quot;===t},r.openMode=function(t){return&quot;drawline&quot;===t||&quot;drawopenpath&quot;===t},r.rectMode=function(t){return&quot;select&quot;===t||&quot;drawline&quot;===t||&quot;drawrect&quot;===t||&quot;drawcircle&quot;===t},r.freeMode=function(t){return&quot;lasso&quot;===t||&quot;drawclosedpath&quot;===t||&quot;drawopenpath&quot;===t},r.selectingOrDrawing=function(t){return r.freeMode(t)||r.rectMode(t)}},{}],662:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mouse-event-offset&quot;),i=t(&quot;has-hover&quot;),a=t(&quot;has-passive-events&quot;),o=t(&quot;../../lib&quot;).removeElement,s=t(&quot;../../plots/cartesian/constants&quot;),l=e.exports={};l.align=t(&quot;./align&quot;),l.getCursor=t(&quot;./cursor&quot;);var c=t(&quot;./unhover&quot;);function u(){var t=document.createElement(&quot;div&quot;);t.className=&quot;dragcover&quot;;var e=t.style;return e.position=&quot;fixed&quot;,e.left=0,e.right=0,e.top=0,e.bottom=0,e.zIndex=999999999,e.background=&quot;none&quot;,document.body.appendChild(t),t}function f(t){return n(t.changedTouches?t.changedTouches[0]:t,document.body)}l.unhover=c.wrapped,l.unhoverRaw=c.raw,l.init=function(t){var e,r,n,c,h,p,d,g,m=t.gd,v=1,y=m._context.doubleClickDelay,x=t.element;m._mouseDownTime||(m._mouseDownTime=0),x.style.pointerEvents=&quot;all&quot;,x.onmousedown=_,a?(x._ontouchstart&amp;&amp;x.removeEventListener(&quot;touchstart&quot;,x._ontouchstart),x._ontouchstart=_,x.addEventListener(&quot;touchstart&quot;,_,{passive:!1})):x.ontouchstart=_;var b=t.clampFn||function(t,e,r){return Math.abs(t)&lt;r&amp;&amp;(t=0),Math.abs(e)&lt;r&amp;&amp;(e=0),[t,e]};function _(a){m._dragged=!1,m._dragging=!0;var o=f(a);e=o[0],r=o[1],d=a.target,p=a,g=2===a.buttons||a.ctrlKey,&quot;undefined&quot;==typeof a.clientX&amp;&amp;&quot;undefined&quot;==typeof a.clientY&amp;&amp;(a.clientX=e,a.clientY=r),(n=(new Date).getTime())-m._mouseDownTime&lt;y?v+=1:(v=1,m._mouseDownTime=n),t.prepFn&amp;&amp;t.prepFn(a,e,r),i&amp;&amp;!g?(h=u()).style.cursor=window.getComputedStyle(x).cursor:i||(h=document,c=window.getComputedStyle(document.documentElement).cursor,document.documentElement.style.cursor=window.getComputedStyle(x).cursor),document.addEventListener(&quot;mouseup&quot;,T),document.addEventListener(&quot;touchend&quot;,T),!1!==t.dragmode&amp;&amp;(a.preventDefault(),document.addEventListener(&quot;mousemove&quot;,w),document.addEventListener(&quot;touchmove&quot;,w,{passive:!1}))}function w(n){n.preventDefault();var i=f(n),a=t.minDrag||s.MINDRAG,o=b(i[0]-e,i[1]-r,a),c=o[0],u=o[1];(c||u)&amp;&amp;(m._dragged=!0,l.unhover(m)),m._dragged&amp;&amp;t.moveFn&amp;&amp;!g&amp;&amp;(m._dragdata={element:x,dx:c,dy:u},t.moveFn(c,u))}function T(e){if(delete m._dragdata,!1!==t.dragmode&amp;&amp;(e.preventDefault(),document.removeEventListener(&quot;mousemove&quot;,w),document.removeEventListener(&quot;touchmove&quot;,w)),document.removeEventListener(&quot;mouseup&quot;,T),document.removeEventListener(&quot;touchend&quot;,T),i?o(h):c&amp;&amp;(h.documentElement.style.cursor=c,c=null),m._dragging){if(m._dragging=!1,(new Date).getTime()-m._mouseDownTime&gt;y&amp;&amp;(v=Math.max(v-1,1)),m._dragged)t.doneFn&amp;&amp;t.doneFn();else if(t.clickFn&amp;&amp;t.clickFn(v,p),!g){var r;try{r=new MouseEvent(&quot;click&quot;,e)}catch(t){var n=f(e);(r=document.createEvent(&quot;MouseEvents&quot;)).initMouseEvent(&quot;click&quot;,e.bubbles,e.cancelable,e.view,e.detail,e.screenX,e.screenY,n[0],n[1],e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,e.relatedTarget)}d.dispatchEvent(r)}m._dragging=!1,m._dragged=!1}else m._dragged=!1}},l.coverSlip=u},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/constants&quot;:834,&quot;./align&quot;:659,&quot;./cursor&quot;:660,&quot;./unhover&quot;:663,&quot;has-hover&quot;:440,&quot;has-passive-events&quot;:441,&quot;mouse-event-offset&quot;:484}],663:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/events&quot;),i=t(&quot;../../lib/throttle&quot;),a=t(&quot;../../lib/dom&quot;).getGraphDiv,o=t(&quot;../fx/constants&quot;),s=e.exports={};s.wrapped=function(t,e,r){(t=a(t))._fullLayout&amp;&amp;i.clear(t._fullLayout._uid+o.HOVERID),s.raw(t,e,r)},s.raw=function(t,e){var r=t._fullLayout,i=t._hoverdata;e||(e={}),e.target&amp;&amp;!1===n.triggerHandler(t,&quot;plotly_beforehover&quot;,e)||(r._hoverlayer.selectAll(&quot;g&quot;).remove(),r._hoverlayer.selectAll(&quot;line&quot;).remove(),r._hoverlayer.selectAll(&quot;circle&quot;).remove(),t._hoverdata=void 0,e.target&amp;&amp;i&amp;&amp;t.emit(&quot;plotly_unhover&quot;,{event:e,points:i}))}},{&quot;../../lib/dom&quot;:766,&quot;../../lib/events&quot;:767,&quot;../../lib/throttle&quot;:804,&quot;../fx/constants&quot;:677}],664:[function(t,e,r){&quot;use strict&quot;;r.dash={valType:&quot;string&quot;,values:[&quot;solid&quot;,&quot;dot&quot;,&quot;dash&quot;,&quot;longdash&quot;,&quot;dashdot&quot;,&quot;longdashdot&quot;],dflt:&quot;solid&quot;,editType:&quot;style&quot;}},{}],665:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../color&quot;),l=t(&quot;../colorscale&quot;),c=t(&quot;../../lib&quot;),u=c.strTranslate,f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../constants/xmlns_namespaces&quot;),p=t(&quot;../../constants/alignment&quot;).LINE_SPACING,d=t(&quot;../../constants/interactions&quot;).DESELECTDIM,g=t(&quot;../../traces/scatter/subtypes&quot;),m=t(&quot;../../traces/scatter/make_bubble_size_func&quot;),v=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,y=e.exports={};y.font=function(t,e,r,n){c.isPlainObject(e)&amp;&amp;(n=e.color,r=e.size,e=e.family),e&amp;&amp;t.style(&quot;font-family&quot;,e),r+1&amp;&amp;t.style(&quot;font-size&quot;,r+&quot;px&quot;),n&amp;&amp;t.call(s.fill,n)},y.setPosition=function(t,e,r){t.attr(&quot;x&quot;,e).attr(&quot;y&quot;,r)},y.setSize=function(t,e,r){t.attr(&quot;width&quot;,e).attr(&quot;height&quot;,r)},y.setRect=function(t,e,r,n,i){t.call(y.setPosition,e,r).call(y.setSize,n,i)},y.translatePoint=function(t,e,r,n){var a=r.c2p(t.x),o=n.c2p(t.y);return!!(i(a)&amp;&amp;i(o)&amp;&amp;e.node())&amp;&amp;(&quot;text&quot;===e.node().nodeName?e.attr(&quot;x&quot;,a).attr(&quot;y&quot;,o):e.attr(&quot;transform&quot;,u(a,o)),!0)},y.translatePoints=function(t,e,r){t.each((function(t){var i=n.select(this);y.translatePoint(t,i,e,r)}))},y.hideOutsideRangePoint=function(t,e,r,n,i,a){e.attr(&quot;display&quot;,r.isPtWithinRange(t,i)&amp;&amp;n.isPtWithinRange(t,a)?null:&quot;none&quot;)},y.hideOutsideRangePoints=function(t,e){if(e._hasClipOnAxisFalse){var r=e.xaxis,i=e.yaxis;t.each((function(e){var a=e[0].trace,s=a.xcalendar,l=a.ycalendar,c=o.traceIs(a,&quot;bar-like&quot;)?&quot;.bartext&quot;:&quot;.point,.textpoint&quot;;t.selectAll(c).each((function(t){y.hideOutsideRangePoint(t,n.select(this),r,i,s,l)}))}))}},y.crispRound=function(t,e,r){return e&amp;&amp;i(e)?t._context.staticPlot?e:e&lt;1?1:Math.round(e):r||0},y.singleLineStyle=function(t,e,r,n,i){e.style(&quot;fill&quot;,&quot;none&quot;);var a=(((t||[])[0]||{}).trace||{}).line||{},o=r||a.width||0,l=i||a.dash||&quot;&quot;;s.stroke(e,n||a.color),y.dashLine(e,l,o)},y.lineGroupStyle=function(t,e,r,i){t.style(&quot;fill&quot;,&quot;none&quot;).each((function(t){var a=(((t||[])[0]||{}).trace||{}).line||{},o=e||a.width||0,l=i||a.dash||&quot;&quot;;n.select(this).call(s.stroke,r||a.color).call(y.dashLine,l,o)}))},y.dashLine=function(t,e,r){r=+r||0,e=y.dashStyle(e,r),t.style({&quot;stroke-dasharray&quot;:e,&quot;stroke-width&quot;:r+&quot;px&quot;})},y.dashStyle=function(t,e){e=+e||1;var r=Math.max(e,3);return&quot;solid&quot;===t?t=&quot;&quot;:&quot;dot&quot;===t?t=r+&quot;px,&quot;+r+&quot;px&quot;:&quot;dash&quot;===t?t=3*r+&quot;px,&quot;+3*r+&quot;px&quot;:&quot;longdash&quot;===t?t=5*r+&quot;px,&quot;+5*r+&quot;px&quot;:&quot;dashdot&quot;===t?t=3*r+&quot;px,&quot;+r+&quot;px,&quot;+r+&quot;px,&quot;+r+&quot;px&quot;:&quot;longdashdot&quot;===t&amp;&amp;(t=5*r+&quot;px,&quot;+2*r+&quot;px,&quot;+r+&quot;px,&quot;+2*r+&quot;px&quot;),t},y.singleFillStyle=function(t){var e=(((n.select(t.node()).data()[0]||[])[0]||{}).trace||{}).fillcolor;e&amp;&amp;t.call(s.fill,e)},y.fillGroupStyle=function(t){t.style(&quot;stroke-width&quot;,0).each((function(t){var e=n.select(this);t[0].trace&amp;&amp;e.call(s.fill,t[0].trace.fillcolor)}))};var x=t(&quot;./symbol_defs&quot;);y.symbolNames=[],y.symbolFuncs=[],y.symbolNeedLines={},y.symbolNoDot={},y.symbolNoFill={},y.symbolList=[],Object.keys(x).forEach((function(t){var e=x[t],r=e.n;y.symbolList.push(r,String(r),t,r+100,String(r+100),t+&quot;-open&quot;),y.symbolNames[r]=t,y.symbolFuncs[r]=e.f,e.needLine&amp;&amp;(y.symbolNeedLines[r]=!0),e.noDot?y.symbolNoDot[r]=!0:y.symbolList.push(r+200,String(r+200),t+&quot;-dot&quot;,r+300,String(r+300),t+&quot;-open-dot&quot;),e.noFill&amp;&amp;(y.symbolNoFill[r]=!0)}));var b=y.symbolNames.length;function _(t,e){var r=t%100;return y.symbolFuncs[r](e)+(t&gt;=200?&quot;M0,0.5L0.5,0L0,-0.5L-0.5,0Z&quot;:&quot;&quot;)}y.symbolNumber=function(t){if(i(t))t=+t;else if(&quot;string&quot;==typeof t){var e=0;t.indexOf(&quot;-open&quot;)&gt;0&amp;&amp;(e=100,t=t.replace(&quot;-open&quot;,&quot;&quot;)),t.indexOf(&quot;-dot&quot;)&gt;0&amp;&amp;(e+=200,t=t.replace(&quot;-dot&quot;,&quot;&quot;)),(t=y.symbolNames.indexOf(t))&gt;=0&amp;&amp;(t+=e)}return t%100&gt;=b||t&gt;=400?0:Math.floor(Math.max(t,0))};var w={x1:1,x2:0,y1:0,y2:0},T={x1:0,x2:0,y1:1,y2:0},k=n.format(&quot;~.1f&quot;),M={radial:{node:&quot;radialGradient&quot;},radialreversed:{node:&quot;radialGradient&quot;,reversed:!0},horizontal:{node:&quot;linearGradient&quot;,attrs:w},horizontalreversed:{node:&quot;linearGradient&quot;,attrs:w,reversed:!0},vertical:{node:&quot;linearGradient&quot;,attrs:T},verticalreversed:{node:&quot;linearGradient&quot;,attrs:T,reversed:!0}};y.gradient=function(t,e,r,i,o,l){for(var u=o.length,f=M[i],h=new Array(u),p=0;p&lt;u;p++)f.reversed?h[u-1-p]=[k(100*(1-o[p][0])),o[p][1]]:h[p]=[k(100*o[p][0]),o[p][1]];var d=e._fullLayout,g=&quot;g&quot;+d._uid+&quot;-&quot;+r,m=d._defs.select(&quot;.gradients&quot;).selectAll(&quot;#&quot;+g).data([i+h.join(&quot;;&quot;)],c.identity);m.exit().remove(),m.enter().append(f.node).each((function(){var t=n.select(this);f.attrs&amp;&amp;t.attr(f.attrs),t.attr(&quot;id&quot;,g);var e=t.selectAll(&quot;stop&quot;).data(h);e.exit().remove(),e.enter().append(&quot;stop&quot;),e.each((function(t){var e=a(t[1]);n.select(this).attr({offset:t[0]+&quot;%&quot;,&quot;stop-color&quot;:s.tinyRGB(e),&quot;stop-opacity&quot;:e.getAlpha()})}))})),t.style(l,O(g,e)).style(l+&quot;-opacity&quot;,null);var v=function(t){return&quot;.&quot;+t.attr(&quot;class&quot;).replace(/\s/g,&quot;.&quot;)},y=v(n.select(t.node().parentNode))+&quot;&gt;&quot;+v(t);d._gradientUrlQueryParts[y]=1},y.initGradients=function(t){var e=t._fullLayout;c.ensureSingle(e._defs,&quot;g&quot;,&quot;gradients&quot;).selectAll(&quot;linearGradient,radialGradient&quot;).remove(),e._gradientUrlQueryParts={}},y.pointStyle=function(t,e,r){if(t.size()){var i=y.makePointStyleFns(e);t.each((function(t){y.singlePointStyle(t,n.select(this),e,i,r)}))}},y.singlePointStyle=function(t,e,r,n,i){var a=r.marker,o=a.line;if(e.style(&quot;opacity&quot;,n.selectedOpacityFn?n.selectedOpacityFn(t):void 0===t.mo?a.opacity:t.mo),n.ms2mrc){var l;l=&quot;various&quot;===t.ms||&quot;various&quot;===a.size?3:n.ms2mrc(t.ms),t.mrc=l,n.selectedSizeFn&amp;&amp;(l=t.mrc=n.selectedSizeFn(t));var u=y.symbolNumber(t.mx||a.symbol)||0;t.om=u%200&gt;=100,e.attr(&quot;d&quot;,_(u,l))}var f,h,p,d=!1;if(t.so)p=o.outlierwidth,h=o.outliercolor,f=a.outliercolor;else{var g=(o||{}).width;p=(t.mlw+1||g+1||(t.trace?(t.trace.marker.line||{}).width:0)+1)-1||0,h=&quot;mlc&quot;in t?t.mlcc=n.lineScale(t.mlc):c.isArrayOrTypedArray(o.color)?s.defaultLine:o.color,c.isArrayOrTypedArray(a.color)&amp;&amp;(f=s.defaultLine,d=!0),f=&quot;mc&quot;in t?t.mcc=n.markerScale(t.mc):a.color||&quot;rgba(0,0,0,0)&quot;,n.selectedColorFn&amp;&amp;(f=n.selectedColorFn(t))}if(t.om)e.call(s.stroke,f).style({&quot;stroke-width&quot;:(p||1)+&quot;px&quot;,fill:&quot;none&quot;});else{e.style(&quot;stroke-width&quot;,(t.isBlank?0:p)+&quot;px&quot;);var m=a.gradient,v=t.mgt;if(v?d=!0:v=m&amp;&amp;m.type,Array.isArray(v)&amp;&amp;(v=v[0],M[v]||(v=0)),v&amp;&amp;&quot;none&quot;!==v){var x=t.mgc;x?d=!0:x=m.color;var b=r.uid;d&amp;&amp;(b+=&quot;-&quot;+t.i),y.gradient(e,i,b,v,[[0,x],[1,f]],&quot;fill&quot;)}else s.fill(e,f);p&amp;&amp;s.stroke(e,h)}},y.makePointStyleFns=function(t){var e={},r=t.marker;return e.markerScale=y.tryColorscale(r,&quot;&quot;),e.lineScale=y.tryColorscale(r,&quot;line&quot;),o.traceIs(t,&quot;symbols&quot;)&amp;&amp;(e.ms2mrc=g.isBubble(t)?m(t):function(){return(r.size||6)/2}),t.selectedpoints&amp;&amp;c.extendFlat(e,y.makeSelectedPointStyleFns(t)),e},y.makeSelectedPointStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.marker||{},a=r.marker||{},s=n.marker||{},l=i.opacity,u=a.opacity,f=s.opacity,h=void 0!==u,p=void 0!==f;(c.isArrayOrTypedArray(l)||h||p)&amp;&amp;(e.selectedOpacityFn=function(t){var e=void 0===t.mo?i.opacity:t.mo;return t.selected?h?u:e:p?f:d*e});var g=i.color,m=a.color,v=s.color;(m||v)&amp;&amp;(e.selectedColorFn=function(t){var e=t.mcc||g;return t.selected?m||e:v||e});var y=i.size,x=a.size,b=s.size,_=void 0!==x,w=void 0!==b;return o.traceIs(t,&quot;symbols&quot;)&amp;&amp;(_||w)&amp;&amp;(e.selectedSizeFn=function(t){var e=t.mrc||y/2;return t.selected?_?x/2:e:w?b/2:e}),e},y.makeSelectedTextStyleFns=function(t){var e={},r=t.selected||{},n=t.unselected||{},i=t.textfont||{},a=r.textfont||{},o=n.textfont||{},l=i.color,c=a.color,u=o.color;return e.selectedTextColorFn=function(t){var e=t.tc||l;return t.selected?c||e:u||(c?e:s.addOpacity(e,d))},e},y.selectedPointStyle=function(t,e){if(t.size()&amp;&amp;e.selectedpoints){var r=y.makeSelectedPointStyleFns(e),i=e.marker||{},a=[];r.selectedOpacityFn&amp;&amp;a.push((function(t,e){t.style(&quot;opacity&quot;,r.selectedOpacityFn(e))})),r.selectedColorFn&amp;&amp;a.push((function(t,e){s.fill(t,r.selectedColorFn(e))})),r.selectedSizeFn&amp;&amp;a.push((function(t,e){var n=e.mx||i.symbol||0,a=r.selectedSizeFn(e);t.attr(&quot;d&quot;,_(y.symbolNumber(n),a)),e.mrc2=a})),a.length&amp;&amp;t.each((function(t){for(var e=n.select(this),r=0;r&lt;a.length;r++)a[r](e,t)}))}},y.tryColorscale=function(t,e){var r=e?c.nestedProperty(t,e).get():t;if(r){var n=r.color;if((r.colorscale||r._colorAx)&amp;&amp;c.isArrayOrTypedArray(n))return l.makeColorScaleFuncFromTrace(r)}return c.identity};var A={start:1,end:-1,middle:0,bottom:1,top:-1};function S(t,e,r,i){var a=n.select(t.node().parentNode),o=-1!==e.indexOf(&quot;top&quot;)?&quot;top&quot;:-1!==e.indexOf(&quot;bottom&quot;)?&quot;bottom&quot;:&quot;middle&quot;,s=-1!==e.indexOf(&quot;left&quot;)?&quot;end&quot;:-1!==e.indexOf(&quot;right&quot;)?&quot;start&quot;:&quot;middle&quot;,l=i?i/.8+1:0,c=(f.lineCount(t)-1)*p+1,h=A[s]*l,d=.75*r+A[o]*l+(A[o]-1)*c*r/2;t.attr(&quot;text-anchor&quot;,s),a.attr(&quot;transform&quot;,u(h,d))}function E(t,e){var r=t.ts||e.textfont.size;return i(r)&amp;&amp;r&gt;0?r:0}y.textPointStyle=function(t,e,r){if(t.size()){var i;if(e.selectedpoints){var a=y.makeSelectedTextStyleFns(e);i=a.selectedTextColorFn}var o=e.texttemplate,s=r._fullLayout;t.each((function(t){var a=n.select(this),l=o?c.extractOption(t,e,&quot;txt&quot;,&quot;texttemplate&quot;):c.extractOption(t,e,&quot;tx&quot;,&quot;text&quot;);if(l||0===l){if(o){var u=e._module.formatLabels?e._module.formatLabels(t,e,s):{},h={};v(h,e,t.i);var p=e._meta||{};l=c.texttemplateString(l,u,s._d3locale,h,t,p)}var d=t.tp||e.textposition,g=E(t,e),m=i?i(t):t.tc||e.textfont.color;a.call(y.font,t.tf||e.textfont.family,g,m).text(l).call(f.convertToTspans,r).call(S,d,g,t.mrc)}else a.remove()}))}},y.selectedTextStyle=function(t,e){if(t.size()&amp;&amp;e.selectedpoints){var r=y.makeSelectedTextStyleFns(e);t.each((function(t){var i=n.select(this),a=r.selectedTextColorFn(t),o=t.tp||e.textposition,l=E(t,e);s.fill(i,a),S(i,o,l,t.mrc2||t.mrc)}))}};function C(t,e,r,i){var a=t[0]-e[0],o=t[1]-e[1],s=r[0]-e[0],l=r[1]-e[1],c=Math.pow(a*a+o*o,.25),u=Math.pow(s*s+l*l,.25),f=(u*u*a-c*c*s)*i,h=(u*u*o-c*c*l)*i,p=3*u*(c+u),d=3*c*(c+u);return[[n.round(e[0]+(p&amp;&amp;f/p),2),n.round(e[1]+(p&amp;&amp;h/p),2)],[n.round(e[0]-(d&amp;&amp;f/d),2),n.round(e[1]-(d&amp;&amp;h/d),2)]]}y.smoothopen=function(t,e){if(t.length&lt;3)return&quot;M&quot;+t.join(&quot;L&quot;);var r,n=&quot;M&quot;+t[0],i=[];for(r=1;r&lt;t.length-1;r++)i.push(C(t[r-1],t[r],t[r+1],e));for(n+=&quot;Q&quot;+i[0][0]+&quot; &quot;+t[1],r=2;r&lt;t.length-1;r++)n+=&quot;C&quot;+i[r-2][1]+&quot; &quot;+i[r-1][0]+&quot; &quot;+t[r];return n+=&quot;Q&quot;+i[t.length-3][1]+&quot; &quot;+t[t.length-1]},y.smoothclosed=function(t,e){if(t.length&lt;3)return&quot;M&quot;+t.join(&quot;L&quot;)+&quot;Z&quot;;var r,n=&quot;M&quot;+t[0],i=t.length-1,a=[C(t[i],t[0],t[1],e)];for(r=1;r&lt;i;r++)a.push(C(t[r-1],t[r],t[r+1],e));for(a.push(C(t[i-1],t[i],t[0],e)),r=1;r&lt;=i;r++)n+=&quot;C&quot;+a[r-1][1]+&quot; &quot;+a[r][0]+&quot; &quot;+t[r];return n+=&quot;C&quot;+a[i][1]+&quot; &quot;+a[0][0]+&quot; &quot;+t[0]+&quot;Z&quot;};var L={hv:function(t,e){return&quot;H&quot;+n.round(e[0],2)+&quot;V&quot;+n.round(e[1],2)},vh:function(t,e){return&quot;V&quot;+n.round(e[1],2)+&quot;H&quot;+n.round(e[0],2)},hvh:function(t,e){return&quot;H&quot;+n.round((t[0]+e[0])/2,2)+&quot;V&quot;+n.round(e[1],2)+&quot;H&quot;+n.round(e[0],2)},vhv:function(t,e){return&quot;V&quot;+n.round((t[1]+e[1])/2,2)+&quot;H&quot;+n.round(e[0],2)+&quot;V&quot;+n.round(e[1],2)}},I=function(t,e){return&quot;L&quot;+n.round(e[0],2)+&quot;,&quot;+n.round(e[1],2)};y.steps=function(t){var e=L[t]||I;return function(t){for(var r=&quot;M&quot;+n.round(t[0][0],2)+&quot;,&quot;+n.round(t[0][1],2),i=1;i&lt;t.length;i++)r+=e(t[i-1],t[i]);return r}},y.makeTester=function(){var t=c.ensureSingleById(n.select(&quot;body&quot;),&quot;svg&quot;,&quot;js-plotly-tester&quot;,(function(t){t.attr(h.svgAttrs).style({position:&quot;absolute&quot;,left:&quot;-10000px&quot;,top:&quot;-10000px&quot;,width:&quot;9000px&quot;,height:&quot;9000px&quot;,&quot;z-index&quot;:&quot;1&quot;})})),e=c.ensureSingle(t,&quot;path&quot;,&quot;js-reference-point&quot;,(function(t){t.attr(&quot;d&quot;,&quot;M0,0H1V1H0Z&quot;).style({&quot;stroke-width&quot;:0,fill:&quot;black&quot;})}));y.tester=t,y.testref=e},y.savedBBoxes={};var P=0;function z(t){var e=t.getAttribute(&quot;data-unformatted&quot;);if(null!==e)return e+t.getAttribute(&quot;data-math&quot;)+t.getAttribute(&quot;text-anchor&quot;)+t.getAttribute(&quot;style&quot;)}function O(t,e){if(!t)return null;var r=e._context;return&quot;url('&quot;+(r._exportedPlot?&quot;&quot;:r._baseUrl||&quot;&quot;)+&quot;#&quot;+t+&quot;')&quot;}y.bBox=function(t,e,r){var i,a,o;if(r||(r=z(t)),r){if(i=y.savedBBoxes[r])return c.extendFlat({},i)}else if(1===t.childNodes.length){var s=t.childNodes[0];if(r=z(s)){var l=+s.getAttribute(&quot;x&quot;)||0,u=+s.getAttribute(&quot;y&quot;)||0,h=s.getAttribute(&quot;transform&quot;);if(!h){var p=y.bBox(s,!1,r);return l&amp;&amp;(p.left+=l,p.right+=l),u&amp;&amp;(p.top+=u,p.bottom+=u),p}if(r+=&quot;~&quot;+l+&quot;~&quot;+u+&quot;~&quot;+h,i=y.savedBBoxes[r])return c.extendFlat({},i)}}e?a=t:(o=y.tester.node(),a=t.cloneNode(!0),o.appendChild(a)),n.select(a).attr(&quot;transform&quot;,null).call(f.positionText,0,0);var d=a.getBoundingClientRect(),g=y.testref.node().getBoundingClientRect();e||o.removeChild(a);var m={height:d.height,width:d.width,left:d.left-g.left,top:d.top-g.top,right:d.right-g.left,bottom:d.bottom-g.top};return P&gt;=1e4&amp;&amp;(y.savedBBoxes={},P=0),r&amp;&amp;(y.savedBBoxes[r]=m),P++,c.extendFlat({},m)},y.setClipUrl=function(t,e,r){t.attr(&quot;clip-path&quot;,O(e,r))},y.getTranslate=function(t){var e=(t[t.attr?&quot;attr&quot;:&quot;getAttribute&quot;](&quot;transform&quot;)||&quot;&quot;).replace(/.*\btranslate\((-?\d*\.?\d*)[^-\d]*(-?\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(&quot; &quot;)})).split(&quot; &quot;);return{x:+e[0]||0,y:+e[1]||0}},y.setTranslate=function(t,e,r){var n=t.attr?&quot;attr&quot;:&quot;getAttribute&quot;,i=t.attr?&quot;attr&quot;:&quot;setAttribute&quot;,a=t[n](&quot;transform&quot;)||&quot;&quot;;return e=e||0,r=r||0,a=a.replace(/(\btranslate\(.*?\);?)/,&quot;&quot;).trim(),a=(a+=u(e,r)).trim(),t[i](&quot;transform&quot;,a),a},y.getScale=function(t){var e=(t[t.attr?&quot;attr&quot;:&quot;getAttribute&quot;](&quot;transform&quot;)||&quot;&quot;).replace(/.*\bscale\((\d*\.?\d*)[^\d]*(\d*\.?\d*)[^\d].*/,(function(t,e,r){return[e,r].join(&quot; &quot;)})).split(&quot; &quot;);return{x:+e[0]||1,y:+e[1]||1}},y.setScale=function(t,e,r){var n=t.attr?&quot;attr&quot;:&quot;getAttribute&quot;,i=t.attr?&quot;attr&quot;:&quot;setAttribute&quot;,a=t[n](&quot;transform&quot;)||&quot;&quot;;return e=e||1,r=r||1,a=a.replace(/(\bscale\(.*?\);?)/,&quot;&quot;).trim(),a=(a+=&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;).trim(),t[i](&quot;transform&quot;,a),a};var D=/\s*sc.*/;y.setPointGroupScale=function(t,e,r){if(e=e||1,r=r||1,t){var n=1===e&amp;&amp;1===r?&quot;&quot;:&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;;t.each((function(){var t=(this.getAttribute(&quot;transform&quot;)||&quot;&quot;).replace(D,&quot;&quot;);t=(t+=n).trim(),this.setAttribute(&quot;transform&quot;,t)}))}};var R=/translate\([^)]*\)\s*$/;y.setTextPointsScale=function(t,e,r){t&amp;&amp;t.each((function(){var t,i=n.select(this),a=i.select(&quot;text&quot;);if(a.node()){var o=parseFloat(a.attr(&quot;x&quot;)||0),s=parseFloat(a.attr(&quot;y&quot;)||0),l=(i.attr(&quot;transform&quot;)||&quot;&quot;).match(R);t=1===e&amp;&amp;1===r?[]:[u(o,s),&quot;scale(&quot;+e+&quot;,&quot;+r+&quot;)&quot;,u(-o,-s)],l&amp;&amp;t.push(l),i.attr(&quot;transform&quot;,t.join(&quot;&quot;))}}))}},{&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/alignment&quot;:745,&quot;../../constants/interactions&quot;:752,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../registry&quot;:911,&quot;../../traces/scatter/make_bubble_size_func&quot;:1204,&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../color&quot;:643,&quot;../colorscale&quot;:655,&quot;./symbol_defs&quot;:666,d3:169,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],666:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports={circle:{n:0,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;}},square:{n:1,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;}},diamond:{n:2,f:function(t){var e=n.round(1.3*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;Z&quot;}},cross:{n:3,f:function(t){var e=n.round(.4*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+r+&quot;,&quot;+e+&quot;H&quot;+e+&quot;V&quot;+r+&quot;H-&quot;+e+&quot;V&quot;+e+&quot;H-&quot;+r+&quot;V-&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+r+&quot;H&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+r+&quot;Z&quot;}},x:{n:4,f:function(t){var e=n.round(.8*t/Math.sqrt(2),2),r=&quot;l&quot;+e+&quot;,&quot;+e,i=&quot;l&quot;+e+&quot;,-&quot;+e,a=&quot;l-&quot;+e+&quot;,-&quot;+e,o=&quot;l-&quot;+e+&quot;,&quot;+e;return&quot;M0,&quot;+e+r+i+a+i+a+o+a+o+r+o+r+&quot;Z&quot;}},&quot;triangle-up&quot;:{n:5,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+e+&quot;,&quot;+n.round(t/2,2)+&quot;H&quot;+e+&quot;L0,-&quot;+n.round(t,2)+&quot;Z&quot;}},&quot;triangle-down&quot;:{n:6,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+e+&quot;,-&quot;+n.round(t/2,2)+&quot;H&quot;+e+&quot;L0,&quot;+n.round(t,2)+&quot;Z&quot;}},&quot;triangle-left&quot;:{n:7,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M&quot;+n.round(t/2,2)+&quot;,-&quot;+e+&quot;V&quot;+e+&quot;L-&quot;+n.round(t,2)+&quot;,0Z&quot;}},&quot;triangle-right&quot;:{n:8,f:function(t){var e=n.round(2*t/Math.sqrt(3),2);return&quot;M-&quot;+n.round(t/2,2)+&quot;,-&quot;+e+&quot;V&quot;+e+&quot;L&quot;+n.round(t,2)+&quot;,0Z&quot;}},&quot;triangle-ne&quot;:{n:9,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M-&quot;+r+&quot;,-&quot;+e+&quot;H&quot;+e+&quot;V&quot;+r+&quot;Z&quot;}},&quot;triangle-se&quot;:{n:10,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+e+&quot;H-&quot;+r+&quot;Z&quot;}},&quot;triangle-sw&quot;:{n:11,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+r+&quot;Z&quot;}},&quot;triangle-nw&quot;:{n:12,f:function(t){var e=n.round(.6*t,2),r=n.round(1.2*t,2);return&quot;M-&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+e+&quot;H&quot;+r+&quot;Z&quot;}},pentagon:{n:13,f:function(t){var e=n.round(.951*t,2),r=n.round(.588*t,2),i=n.round(-t,2),a=n.round(-.309*t,2);return&quot;M&quot;+e+&quot;,&quot;+a+&quot;L&quot;+r+&quot;,&quot;+n.round(.809*t,2)+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,&quot;+a+&quot;L0,&quot;+i+&quot;Z&quot;}},hexagon:{n:14,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return&quot;M&quot;+i+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;L0,&quot;+e+&quot;L-&quot;+i+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;L0,-&quot;+e+&quot;Z&quot;}},hexagon2:{n:15,f:function(t){var e=n.round(t,2),r=n.round(t/2,2),i=n.round(t*Math.sqrt(3)/2,2);return&quot;M-&quot;+r+&quot;,&quot;+i+&quot;H&quot;+r+&quot;L&quot;+e+&quot;,0L&quot;+r+&quot;,-&quot;+i+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},octagon:{n:16,f:function(t){var e=n.round(.924*t,2),r=n.round(.383*t,2);return&quot;M-&quot;+r+&quot;,-&quot;+e+&quot;H&quot;+r+&quot;L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;L&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+r+&quot;L-&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;Z&quot;}},star:{n:17,f:function(t){var e=1.4*t,r=n.round(.225*e,2),i=n.round(.951*e,2),a=n.round(.363*e,2),o=n.round(.588*e,2),s=n.round(-e,2),l=n.round(-.309*e,2),c=n.round(.118*e,2),u=n.round(.809*e,2);return&quot;M&quot;+r+&quot;,&quot;+l+&quot;H&quot;+i+&quot;L&quot;+a+&quot;,&quot;+c+&quot;L&quot;+o+&quot;,&quot;+u+&quot;L0,&quot;+n.round(.382*e,2)+&quot;L-&quot;+o+&quot;,&quot;+u+&quot;L-&quot;+a+&quot;,&quot;+c+&quot;L-&quot;+i+&quot;,&quot;+l+&quot;H-&quot;+r+&quot;L0,&quot;+s+&quot;Z&quot;}},hexagram:{n:18,f:function(t){var e=n.round(.66*t,2),r=n.round(.38*t,2),i=n.round(.76*t,2);return&quot;M-&quot;+i+&quot;,0l-&quot;+r+&quot;,-&quot;+e+&quot;h&quot;+i+&quot;l&quot;+r+&quot;,-&quot;+e+&quot;l&quot;+r+&quot;,&quot;+e+&quot;h&quot;+i+&quot;l-&quot;+r+&quot;,&quot;+e+&quot;l&quot;+r+&quot;,&quot;+e+&quot;h-&quot;+i+&quot;l-&quot;+r+&quot;,&quot;+e+&quot;l-&quot;+r+&quot;,-&quot;+e+&quot;h-&quot;+i+&quot;Z&quot;}},&quot;star-triangle-up&quot;:{n:19,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=&quot;A &quot;+a+&quot;,&quot;+a+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,&quot;+r+o+e+&quot;,&quot;+r+o+&quot;0,-&quot;+i+o+&quot;-&quot;+e+&quot;,&quot;+r+&quot;Z&quot;}},&quot;star-triangle-down&quot;:{n:20,f:function(t){var e=n.round(t*Math.sqrt(3)*.8,2),r=n.round(.8*t,2),i=n.round(1.6*t,2),a=n.round(4*t,2),o=&quot;A &quot;+a+&quot;,&quot;+a+&quot; 0 0 1 &quot;;return&quot;M&quot;+e+&quot;,-&quot;+r+o+&quot;-&quot;+e+&quot;,-&quot;+r+o+&quot;0,&quot;+i+o+e+&quot;,-&quot;+r+&quot;Z&quot;}},&quot;star-square&quot;:{n:21,f:function(t){var e=n.round(1.1*t,2),r=n.round(2*t,2),i=&quot;A &quot;+r+&quot;,&quot;+r+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,-&quot;+e+i+&quot;-&quot;+e+&quot;,&quot;+e+i+e+&quot;,&quot;+e+i+e+&quot;,-&quot;+e+i+&quot;-&quot;+e+&quot;,-&quot;+e+&quot;Z&quot;}},&quot;star-diamond&quot;:{n:22,f:function(t){var e=n.round(1.4*t,2),r=n.round(1.9*t,2),i=&quot;A &quot;+r+&quot;,&quot;+r+&quot; 0 0 1 &quot;;return&quot;M-&quot;+e+&quot;,0&quot;+i+&quot;0,&quot;+e+i+e+&quot;,0&quot;+i+&quot;0,-&quot;+e+i+&quot;-&quot;+e+&quot;,0Z&quot;}},&quot;diamond-tall&quot;:{n:23,f:function(t){var e=n.round(.7*t,2),r=n.round(1.4*t,2);return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,0L0,-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},&quot;diamond-wide&quot;:{n:24,f:function(t){var e=n.round(1.4*t,2),r=n.round(.7*t,2);return&quot;M0,&quot;+r+&quot;L&quot;+e+&quot;,0L0,-&quot;+r+&quot;L-&quot;+e+&quot;,0Z&quot;}},hourglass:{n:25,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;L&quot;+e+&quot;,-&quot;+e+&quot;H-&quot;+e+&quot;Z&quot;},noDot:!0},bowtie:{n:26,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;V-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e+&quot;V-&quot;+e+&quot;Z&quot;},noDot:!0},&quot;circle-cross&quot;:{n:27,f:function(t){var e=n.round(t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;},needLine:!0,noDot:!0},&quot;circle-x&quot;:{n:28,f:function(t){var e=n.round(t,2),r=n.round(t/Math.sqrt(2),2);return&quot;M&quot;+r+&quot;,&quot;+r+&quot;L-&quot;+r+&quot;,-&quot;+r+&quot;M&quot;+r+&quot;,-&quot;+r+&quot;L-&quot;+r+&quot;,&quot;+r+&quot;M&quot;+e+&quot;,0A&quot;+e+&quot;,&quot;+e+&quot; 0 1,1 0,-&quot;+e+&quot;A&quot;+e+&quot;,&quot;+e+&quot; 0 0,1 &quot;+e+&quot;,0Z&quot;},needLine:!0,noDot:!0},&quot;square-cross&quot;:{n:29,f:function(t){var e=n.round(t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;square-x&quot;:{n:30,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e+&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e+&quot;M&quot;+e+&quot;,&quot;+e+&quot;H-&quot;+e+&quot;V-&quot;+e+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;diamond-cross&quot;:{n:31,f:function(t){var e=n.round(1.3*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;ZM0,-&quot;+e+&quot;V&quot;+e+&quot;M-&quot;+e+&quot;,0H&quot;+e},needLine:!0,noDot:!0},&quot;diamond-x&quot;:{n:32,f:function(t){var e=n.round(1.3*t,2),r=n.round(.65*t,2);return&quot;M&quot;+e+&quot;,0L0,&quot;+e+&quot;L-&quot;+e+&quot;,0L0,-&quot;+e+&quot;ZM-&quot;+r+&quot;,-&quot;+r+&quot;L&quot;+r+&quot;,&quot;+r+&quot;M-&quot;+r+&quot;,&quot;+r+&quot;L&quot;+r+&quot;,-&quot;+r},needLine:!0,noDot:!0},&quot;cross-thin&quot;:{n:33,f:function(t){var e=n.round(1.4*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;x-thin&quot;:{n:34,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e+&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e},needLine:!0,noDot:!0,noFill:!0},asterisk:{n:35,f:function(t){var e=n.round(1.2*t,2),r=n.round(.85*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e+&quot;M&quot;+e+&quot;,0H-&quot;+e+&quot;M&quot;+r+&quot;,&quot;+r+&quot;L-&quot;+r+&quot;,-&quot;+r+&quot;M&quot;+r+&quot;,-&quot;+r+&quot;L-&quot;+r+&quot;,&quot;+r},needLine:!0,noDot:!0,noFill:!0},hash:{n:36,f:function(t){var e=n.round(t/2,2),r=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+r+&quot;V-&quot;+r+&quot;m-&quot;+r+&quot;,0V&quot;+r+&quot;M&quot;+r+&quot;,&quot;+e+&quot;H-&quot;+r+&quot;m0,-&quot;+r+&quot;H&quot;+r},needLine:!0,noFill:!0},&quot;y-up&quot;:{n:37,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+e+&quot;,&quot;+i+&quot;L0,0M&quot;+e+&quot;,&quot;+i+&quot;L0,0M0,-&quot;+r+&quot;L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-down&quot;:{n:38,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+e+&quot;,-&quot;+i+&quot;L0,0M&quot;+e+&quot;,-&quot;+i+&quot;L0,0M0,&quot;+r+&quot;L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-left&quot;:{n:39,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M&quot;+i+&quot;,&quot;+e+&quot;L0,0M&quot;+i+&quot;,-&quot;+e+&quot;L0,0M-&quot;+r+&quot;,0L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;y-right&quot;:{n:40,f:function(t){var e=n.round(1.2*t,2),r=n.round(1.6*t,2),i=n.round(.8*t,2);return&quot;M-&quot;+i+&quot;,&quot;+e+&quot;L0,0M-&quot;+i+&quot;,-&quot;+e+&quot;L0,0M&quot;+r+&quot;,0L0,0&quot;},needLine:!0,noDot:!0,noFill:!0},&quot;line-ew&quot;:{n:41,f:function(t){var e=n.round(1.4*t,2);return&quot;M&quot;+e+&quot;,0H-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-ns&quot;:{n:42,f:function(t){var e=n.round(1.4*t,2);return&quot;M0,&quot;+e+&quot;V-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-ne&quot;:{n:43,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,-&quot;+e+&quot;L-&quot;+e+&quot;,&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;line-nw&quot;:{n:44,f:function(t){var e=n.round(t,2);return&quot;M&quot;+e+&quot;,&quot;+e+&quot;L-&quot;+e+&quot;,-&quot;+e},needLine:!0,noDot:!0,noFill:!0},&quot;arrow-up&quot;:{n:45,f:function(t){var e=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},noDot:!0},&quot;arrow-down&quot;:{n:46,f:function(t){var e=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,-&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},noDot:!0},&quot;arrow-left&quot;:{n:47,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,0L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},noDot:!0},&quot;arrow-right&quot;:{n:48,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,0L-&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},noDot:!0},&quot;arrow-bar-up&quot;:{n:49,f:function(t){var e=n.round(t,2);return&quot;M-&quot;+e+&quot;,0H&quot;+e+&quot;M0,0L-&quot;+e+&quot;,&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-down&quot;:{n:50,f:function(t){var e=n.round(t,2);return&quot;M-&quot;+e+&quot;,0H&quot;+e+&quot;M0,0L-&quot;+e+&quot;,-&quot;+n.round(2*t,2)+&quot;H&quot;+e+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-left&quot;:{n:51,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,-&quot;+r+&quot;V&quot;+r+&quot;M0,0L&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},needLine:!0,noDot:!0},&quot;arrow-bar-right&quot;:{n:52,f:function(t){var e=n.round(2*t,2),r=n.round(t,2);return&quot;M0,-&quot;+r+&quot;V&quot;+r+&quot;M0,0L-&quot;+e+&quot;,-&quot;+r+&quot;V&quot;+r+&quot;Z&quot;},needLine:!0,noDot:!0}}},{d3:169}],667:[function(t,e,r){&quot;use strict&quot;;e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;percent&quot;,&quot;constant&quot;,&quot;sqrt&quot;,&quot;data&quot;],editType:&quot;calc&quot;},symmetric:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},array:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},arrayminus:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},value:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;calc&quot;},valueminus:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;calc&quot;},traceref:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;style&quot;},tracerefminus:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;style&quot;},copy_ystyle:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},copy_zstyle:{valType:&quot;boolean&quot;,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},thickness:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;,_deprecated:{opacity:{valType:&quot;number&quot;,editType:&quot;style&quot;}}}},{}],668:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;./compute_error&quot;);function l(t,e,r,i){var l=e[&quot;error_&quot;+i]||{},c=[];if(l.visible&amp;&amp;-1!==[&quot;linear&quot;,&quot;log&quot;].indexOf(r.type)){for(var u=s(l),f=0;f&lt;t.length;f++){var h=t[f],p=h.i;if(void 0===p)p=f;else if(null===p)continue;var d=h[i];if(n(r.c2l(d))){var g=u(d,p);if(n(g[0])&amp;&amp;n(g[1])){var m=h[i+&quot;s&quot;]=d-g[0],v=h[i+&quot;h&quot;]=d+g[1];c.push(m,v)}}}var y=r._id,x=e._extremes[y],b=a.findExtremes(r,c,o.extendFlat({tozero:x.opts.tozero},{padded:!0}));x.min=x.min.concat(b.min),x.max=x.max.concat(b.max)}}e.exports=function(t){for(var e=t.calcdata,r=0;r&lt;e.length;r++){var n=e[r],o=n[0].trace;if(!0===o.visible&amp;&amp;i.traceIs(o,&quot;errorBarsOK&quot;)){var s=a.getFromId(t,o.xaxis),c=a.getFromId(t,o.yaxis);l(n,o,s,&quot;x&quot;),l(n,o,c,&quot;y&quot;)}}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./compute_error&quot;:669,&quot;fast-isnumeric&quot;:241}],669:[function(t,e,r){&quot;use strict&quot;;function n(t,e){return&quot;percent&quot;===t?function(t){return Math.abs(t*e/100)}:&quot;constant&quot;===t?function(){return Math.abs(e)}:&quot;sqrt&quot;===t?function(t){return Math.sqrt(Math.abs(t))}:void 0}e.exports=function(t){var e=t.type,r=t.symmetric;if(&quot;data&quot;===e){var i=t.array||[];if(r)return function(t,e){var r=+i[e];return[r,r]};var a=t.arrayminus||[];return function(t,e){var r=+i[e],n=+a[e];return isNaN(r)&amp;&amp;isNaN(n)?[NaN,NaN]:[n||0,r||0]}}var o=n(e,t.value),s=n(e,t.valueminus);return r||void 0===t.valueminus?function(t){var e=o(t);return[e,e]}:function(t){return[s(t),o(t)]}}},{}],670:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../plot_api/plot_template&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){var c=&quot;error_&quot;+l.axis,u=o.newContainer(e,c),f=t[c]||{};function h(t,e){return a.coerce(f,u,s,t,e)}if(!1!==h(&quot;visible&quot;,void 0!==f.array||void 0!==f.value||&quot;sqrt&quot;===f.type)){var p=h(&quot;type&quot;,&quot;array&quot;in f?&quot;data&quot;:&quot;percent&quot;),d=!0;&quot;sqrt&quot;!==p&amp;&amp;(d=h(&quot;symmetric&quot;,!((&quot;data&quot;===p?&quot;arrayminus&quot;:&quot;valueminus&quot;)in f))),&quot;data&quot;===p?(h(&quot;array&quot;),h(&quot;traceref&quot;),d||(h(&quot;arrayminus&quot;),h(&quot;tracerefminus&quot;))):&quot;percent&quot;!==p&amp;&amp;&quot;constant&quot;!==p||(h(&quot;value&quot;),d||h(&quot;valueminus&quot;));var g=&quot;copy_&quot;+l.inherit+&quot;style&quot;;if(l.inherit)(e[&quot;error_&quot;+l.inherit]||{}).visible&amp;&amp;h(g,!(f.color||n(f.thickness)||n(f.width)));l.inherit&amp;&amp;u[g]||(h(&quot;color&quot;,r),h(&quot;thickness&quot;),h(&quot;width&quot;,i.traceIs(e,&quot;gl3d&quot;)?0:4))}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../registry&quot;:911,&quot;./attributes&quot;:667,&quot;fast-isnumeric&quot;:241}],671:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/edit_types&quot;).overrideAll,a=t(&quot;./attributes&quot;),o={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a)};delete o.error_x.copy_zstyle,delete o.error_y.copy_zstyle,delete o.error_y.copy_ystyle;var s={error_x:n.extendFlat({},a),error_y:n.extendFlat({},a),error_z:n.extendFlat({},a)};delete s.error_x.copy_ystyle,delete s.error_y.copy_ystyle,delete s.error_z.copy_ystyle,delete s.error_z.copy_zstyle,e.exports={moduleType:&quot;component&quot;,name:&quot;errorbars&quot;,schema:{traces:{scatter:o,bar:o,histogram:o,scatter3d:i(s,&quot;calc&quot;,&quot;nested&quot;),scattergl:i(o,&quot;calc&quot;,&quot;nested&quot;)}},supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),makeComputeError:t(&quot;./compute_error&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverInfo:function(t,e,r){(e.error_y||{}).visible&amp;&amp;(r.yerr=t.yh-t.y,e.error_y.symmetric||(r.yerrneg=t.y-t.ys));(e.error_x||{}).visible&amp;&amp;(r.xerr=t.xh-t.x,e.error_x.symmetric||(r.xerrneg=t.x-t.xs))}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;./attributes&quot;:667,&quot;./calc&quot;:668,&quot;./compute_error&quot;:669,&quot;./defaults&quot;:670,&quot;./plot&quot;:672,&quot;./style&quot;:673}],672:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../drawing&quot;),o=t(&quot;../../traces/scatter/subtypes&quot;);e.exports=function(t,e,r,s){var l=r.xaxis,c=r.yaxis,u=s&amp;&amp;s.duration&gt;0;e.each((function(e){var f,h=e[0].trace,p=h.error_x||{},d=h.error_y||{};h.ids&amp;&amp;(f=function(t){return t.id});var g=o.hasMarkers(h)&amp;&amp;h.marker.maxdisplayed&gt;0;d.visible||p.visible||(e=[]);var m=n.select(this).selectAll(&quot;g.errorbar&quot;).data(e,f);if(m.exit().remove(),e.length){p.visible||m.selectAll(&quot;path.xerror&quot;).remove(),d.visible||m.selectAll(&quot;path.yerror&quot;).remove(),m.style(&quot;opacity&quot;,1);var v=m.enter().append(&quot;g&quot;).classed(&quot;errorbar&quot;,!0);u&amp;&amp;v.style(&quot;opacity&quot;,0).transition().duration(s.duration).style(&quot;opacity&quot;,1),a.setClipUrl(m,r.layerClipId,t),m.each((function(t){var e=n.select(this),r=function(t,e,r){var n={x:e.c2p(t.x),y:r.c2p(t.y)};void 0!==t.yh&amp;&amp;(n.yh=r.c2p(t.yh),n.ys=r.c2p(t.ys),i(n.ys)||(n.noYS=!0,n.ys=r.c2p(t.ys,!0)));void 0!==t.xh&amp;&amp;(n.xh=e.c2p(t.xh),n.xs=e.c2p(t.xs),i(n.xs)||(n.noXS=!0,n.xs=e.c2p(t.xs,!0)));return n}(t,l,c);if(!g||t.vis){var a,o=e.select(&quot;path.yerror&quot;);if(d.visible&amp;&amp;i(r.x)&amp;&amp;i(r.yh)&amp;&amp;i(r.ys)){var f=d.width;a=&quot;M&quot;+(r.x-f)+&quot;,&quot;+r.yh+&quot;h&quot;+2*f+&quot;m-&quot;+f+&quot;,0V&quot;+r.ys,r.noYS||(a+=&quot;m-&quot;+f+&quot;,0h&quot;+2*f),!o.size()?o=e.append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).classed(&quot;yerror&quot;,!0):u&amp;&amp;(o=o.transition().duration(s.duration).ease(s.easing)),o.attr(&quot;d&quot;,a)}else o.remove();var h=e.select(&quot;path.xerror&quot;);if(p.visible&amp;&amp;i(r.y)&amp;&amp;i(r.xh)&amp;&amp;i(r.xs)){var m=(p.copy_ystyle?d:p).width;a=&quot;M&quot;+r.xh+&quot;,&quot;+(r.y-m)+&quot;v&quot;+2*m+&quot;m0,-&quot;+m+&quot;H&quot;+r.xs,r.noXS||(a+=&quot;m0,-&quot;+m+&quot;v&quot;+2*m),!h.size()?h=e.append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).classed(&quot;xerror&quot;,!0):u&amp;&amp;(h=h.transition().duration(s.duration).ease(s.easing)),h.attr(&quot;d&quot;,a)}else h.remove()}}))}}))}},{&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../drawing&quot;:665,d3:169,&quot;fast-isnumeric&quot;:241}],673:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../color&quot;);e.exports=function(t){t.each((function(t){var e=t[0].trace,r=e.error_y||{},a=e.error_x||{},o=n.select(this);o.selectAll(&quot;path.yerror&quot;).style(&quot;stroke-width&quot;,r.thickness+&quot;px&quot;).call(i.stroke,r.color),a.copy_ystyle&amp;&amp;(a=r),o.selectAll(&quot;path.xerror&quot;).style(&quot;stroke-width&quot;,a.thickness+&quot;px&quot;).call(i.stroke,a.color)}))}},{&quot;../color&quot;:643,d3:169}],674:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;./layout_attributes&quot;).hoverlabel,a=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={hoverlabel:{bgcolor:a({},i.bgcolor,{arrayOk:!0}),bordercolor:a({},i.bordercolor,{arrayOk:!0}),font:n({arrayOk:!0,editType:&quot;none&quot;}),align:a({},i.align,{arrayOk:!0}),namelength:a({},i.namelength,{arrayOk:!0}),editType:&quot;none&quot;}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;./layout_attributes&quot;:684}],675:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;);function a(t,e,r,i){i=i||n.identity,Array.isArray(t)&amp;&amp;(e[0][r]=i(t))}e.exports=function(t){var e=t.calcdata,r=t._fullLayout;function o(t){return function(e){return n.coerceHoverinfo({hoverinfo:e},{_module:t._module},r)}}for(var s=0;s&lt;e.length;s++){var l=e[s],c=l[0].trace;if(!i.traceIs(c,&quot;pie-like&quot;)){var u=i.traceIs(c,&quot;2dMap&quot;)?a:n.fillArray;u(c.hoverinfo,l,&quot;hi&quot;,o(c)),c.hovertemplate&amp;&amp;u(c.hovertemplate,l,&quot;ht&quot;),c.hoverlabel&amp;&amp;(u(c.hoverlabel.bgcolor,l,&quot;hbg&quot;),u(c.hoverlabel.bordercolor,l,&quot;hbc&quot;),u(c.hoverlabel.font.size,l,&quot;hts&quot;),u(c.hoverlabel.font.color,l,&quot;htc&quot;),u(c.hoverlabel.font.family,l,&quot;htf&quot;),u(c.hoverlabel.namelength,l,&quot;hnl&quot;),u(c.hoverlabel.align,l,&quot;hta&quot;))}}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],676:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./hover&quot;).hover;e.exports=function(t,e,r){var a=n.getComponentMethod(&quot;annotations&quot;,&quot;onClick&quot;)(t,t._hoverdata);function o(){t.emit(&quot;plotly_click&quot;,{points:t._hoverdata,event:e})}void 0!==r&amp;&amp;i(t,e,r,!0),t._hoverdata&amp;&amp;e&amp;&amp;e.target&amp;&amp;(a&amp;&amp;a.then?a.then(o):o(),e.stopImmediatePropagation&amp;&amp;e.stopImmediatePropagation())}},{&quot;../../registry&quot;:911,&quot;./hover&quot;:680}],677:[function(t,e,r){&quot;use strict&quot;;e.exports={YANGLE:60,HOVERARROWSIZE:6,HOVERTEXTPAD:3,HOVERFONTSIZE:13,HOVERFONT:&quot;Arial, sans-serif&quot;,HOVERMINTIME:50,HOVERID:&quot;-hover&quot;}},{}],678:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./hoverlabel_defaults&quot;);e.exports=function(t,e,r,o){var s=n.extendFlat({},o.hoverlabel);e.hovertemplate&amp;&amp;(s.namelength=-1),a(t,e,(function(r,a){return n.coerce(t,e,i,r,a)}),s)}},{&quot;../../lib&quot;:778,&quot;./attributes&quot;:674,&quot;./hoverlabel_defaults&quot;:681}],679:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);r.getSubplot=function(t){return t.subplot||t.xaxis+t.yaxis||t.geo},r.isTraceInSubplots=function(t,e){if(&quot;splom&quot;===t.type){for(var n=t.xaxes||[],i=t.yaxes||[],a=0;a&lt;n.length;a++)for(var o=0;o&lt;i.length;o++)if(-1!==e.indexOf(n[a]+i[o]))return!0;return!1}return-1!==e.indexOf(r.getSubplot(t))},r.flat=function(t,e){for(var r=new Array(t.length),n=0;n&lt;t.length;n++)r[n]=e;return r},r.p2c=function(t,e){for(var r=new Array(t.length),n=0;n&lt;t.length;n++)r[n]=t[n].p2c(e);return r},r.getDistanceFunction=function(t,e,n,i){return&quot;closest&quot;===t?i||r.quadrature(e,n):&quot;x&quot;===t.charAt(0)?e:n},r.getClosest=function(t,e,r){if(!1!==r.index)r.index&gt;=0&amp;&amp;r.index&lt;t.length?r.distance=0:r.index=!1;else for(var n=0;n&lt;t.length;n++){var i=e(t[n]);i&lt;=r.distance&amp;&amp;(r.index=n,r.distance=i)}return r},r.inbox=function(t,e,r){return t*e&lt;0||0===t?r:1/0},r.quadrature=function(t,e){return function(r){var n=t(r),i=e(r);return Math.sqrt(n*n+i*i)}},r.makeEventData=function(t,e,n){var i=&quot;index&quot;in t?t.index:t.pointNumber,a={data:e._input,fullData:e,curveNumber:e.index,pointNumber:i};if(e._indexToPoints){var o=e._indexToPoints[i];1===o.length?a.pointIndex=o[0]:a.pointIndices=o}else a.pointIndex=i;return e._module.eventData?a=e._module.eventData(a,t,e,n,i):(&quot;xVal&quot;in t?a.x=t.xVal:&quot;x&quot;in t&amp;&amp;(a.x=t.x),&quot;yVal&quot;in t?a.y=t.yVal:&quot;y&quot;in t&amp;&amp;(a.y=t.y),t.xa&amp;&amp;(a.xaxis=t.xa),t.ya&amp;&amp;(a.yaxis=t.ya),void 0!==t.zLabelVal&amp;&amp;(a.z=t.zLabelVal)),r.appendArrayPointValue(a,e,i),a},r.appendArrayPointValue=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s&lt;i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){var u=o(n.nestedProperty(e,l).get(),r);void 0!==u&amp;&amp;(t[c]=u)}}},r.appendArrayMultiPointValues=function(t,e,r){var i=e._arrayAttrs;if(i)for(var s=0;s&lt;i.length;s++){var l=i[s],c=a(l);if(void 0===t[c]){for(var u=n.nestedProperty(e,l).get(),f=new Array(r.length),h=0;h&lt;r.length;h++)f[h]=o(u,r[h]);t[c]=f}}};var i={ids:&quot;id&quot;,locations:&quot;location&quot;,labels:&quot;label&quot;,values:&quot;value&quot;,&quot;marker.colors&quot;:&quot;color&quot;,parents:&quot;parent&quot;};function a(t){return i[t]||t}function o(t,e){return Array.isArray(e)?Array.isArray(t)&amp;&amp;Array.isArray(t[e[0]])?t[e[0]][e[1]]:void 0:t[e]}var s={x:!0,y:!0},l={&quot;x unified&quot;:!0,&quot;y unified&quot;:!0};r.isUnifiedHover=function(t){return&quot;string&quot;==typeof t&amp;&amp;!!l[t]},r.isXYhover=function(t){return&quot;string&quot;==typeof t&amp;&amp;!!s[t]}},{&quot;../../lib&quot;:778}],680:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=o.strRotate,c=t(&quot;../../lib/events&quot;),u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../lib/override_cursor&quot;),h=t(&quot;../drawing&quot;),p=t(&quot;../color&quot;),d=t(&quot;../dragelement&quot;),g=t(&quot;../../plots/cartesian/axes&quot;),m=t(&quot;../../registry&quot;),v=t(&quot;./helpers&quot;),y=t(&quot;./constants&quot;),x=t(&quot;../legend/defaults&quot;),b=t(&quot;../legend/draw&quot;),_=y.YANGLE,w=Math.PI*_/180,T=1/Math.sin(w),k=Math.cos(w),M=Math.sin(w),A=y.HOVERARROWSIZE,S=y.HOVERTEXTPAD;function E(t){return[t.trace.index,t.index,t.x0,t.y0,t.name,t.attr,t.xa,t.ya||&quot;&quot;].join(&quot;,&quot;)}r.hover=function(t,e,r,a){t=o.getGraphDiv(t),o.throttle(t._fullLayout._uid+y.HOVERID,y.HOVERMINTIME,(function(){!function(t,e,r,a){r||(r=&quot;xy&quot;);var s=Array.isArray(r)?r:[r],l=t._fullLayout,u=l._plots||[],h=u[r],g=l._has(&quot;cartesian&quot;);if(h){var y=h.overlays.map((function(t){return t.id}));s=s.concat(y)}for(var x=s.length,b=new Array(x),_=new Array(x),w=!1,k=0;k&lt;x;k++){var M=s[k];if(u[M])w=!0,b[k]=u[M].xaxis,_[k]=u[M].yaxis;else{if(!l[M]||!l[M]._subplot)return void o.warn(&quot;Unrecognized subplot: &quot;+M);var A=l[M]._subplot;b[k]=A.xaxis,_[k]=A.yaxis}}var S=e.hovermode||l.hovermode;S&amp;&amp;!w&amp;&amp;(S=&quot;closest&quot;);if(-1===[&quot;x&quot;,&quot;y&quot;,&quot;closest&quot;,&quot;x unified&quot;,&quot;y unified&quot;].indexOf(S)||!t.calcdata||t.querySelector(&quot;.zoombox&quot;)||t._dragging)return d.unhoverRaw(t,e);var C,I,R,F,B,N,j,U,V,q,H,G,Y,W=-1===l.hoverdistance?1/0:l.hoverdistance,X=-1===l.spikedistance?1/0:l.spikedistance,Z=[],J=[],K={hLinePoint:null,vLinePoint:null},Q=!1;if(Array.isArray(e))for(S=&quot;array&quot;,R=0;R&lt;e.length;R++)(B=t.calcdata[e[R].curveNumber||0])&amp;&amp;(N=B[0].trace,&quot;skip&quot;!==B[0].trace.hoverinfo&amp;&amp;(J.push(B),&quot;h&quot;===N.orientation&amp;&amp;(Q=!0)));else{for(F=0;F&lt;t.calcdata.length;F++)B=t.calcdata[F],&quot;skip&quot;!==(N=B[0].trace).hoverinfo&amp;&amp;v.isTraceInSubplots(N,s)&amp;&amp;(J.push(B),&quot;h&quot;===N.orientation&amp;&amp;(Q=!0));var $,tt;if(!e.target)$=&quot;xpx&quot;in e?e.xpx:b[0]._length/2,tt=&quot;ypx&quot;in e?e.ypx:_[0]._length/2;else{if(!1===c.triggerHandler(t,&quot;plotly_beforehover&quot;,e))return;var et=e.target.getBoundingClientRect();$=e.clientX-et.left,tt=e.clientY-et.top,l._calcInverseTransform(t);var rt=o.apply3DTransform(l._invTransform)($,tt);if($=rt[0],tt=rt[1],$&lt;0||$&gt;b[0]._length||tt&lt;0||tt&gt;_[0]._length)return d.unhoverRaw(t,e)}if(e.pointerX=$+b[0]._offset,e.pointerY=tt+_[0]._offset,C=&quot;xval&quot;in e?v.flat(s,e.xval):v.p2c(b,$),I=&quot;yval&quot;in e?v.flat(s,e.yval):v.p2c(_,tt),!i(C[0])||!i(I[0]))return o.warn(&quot;Fx.hover failed&quot;,e,t),d.unhoverRaw(t,e)}var nt=1/0;function it(t,r){for(F=0;F&lt;J.length;F++)if((B=J[F])&amp;&amp;B[0]&amp;&amp;B[0].trace&amp;&amp;!0===(N=B[0].trace).visible&amp;&amp;0!==N._length&amp;&amp;-1===[&quot;carpet&quot;,&quot;contourcarpet&quot;].indexOf(N._module.name)){if(&quot;splom&quot;===N.type?j=s[U=0]:(j=v.getSubplot(N),U=s.indexOf(j)),V=S,v.isUnifiedHover(V)&amp;&amp;(V=V.charAt(0)),G={cd:B,trace:N,xa:b[U],ya:_[U],maxHoverDistance:W,maxSpikeDistance:X,index:!1,distance:Math.min(nt,W),spikeDistance:1/0,xSpike:void 0,ySpike:void 0,color:p.defaultLine,name:N.name,x0:void 0,x1:void 0,y0:void 0,y1:void 0,xLabelVal:void 0,yLabelVal:void 0,zLabelVal:void 0,text:void 0},l[j]&amp;&amp;(G.subplot=l[j]._subplot),l._splomScenes&amp;&amp;l._splomScenes[N.uid]&amp;&amp;(G.scene=l._splomScenes[N.uid]),Y=Z.length,&quot;array&quot;===V){var n=e[F];&quot;pointNumber&quot;in n?(G.index=n.pointNumber,V=&quot;closest&quot;):(V=&quot;&quot;,&quot;xval&quot;in n&amp;&amp;(q=n.xval,V=&quot;x&quot;),&quot;yval&quot;in n&amp;&amp;(H=n.yval,V=V?&quot;closest&quot;:&quot;y&quot;))}else void 0!==t&amp;&amp;void 0!==r?(q=t,H=r):(q=C[U],H=I[U]);if(0!==W)if(N._module&amp;&amp;N._module.hoverPoints){var a=N._module.hoverPoints(G,q,H,V,l._hoverlayer);if(a)for(var c,u=0;u&lt;a.length;u++)c=a[u],i(c.x0)&amp;&amp;i(c.y0)&amp;&amp;Z.push(z(c,S))}else o.log(&quot;Unrecognized trace type in hover:&quot;,N);if(&quot;closest&quot;===S&amp;&amp;Z.length&gt;Y&amp;&amp;(Z.splice(0,Y),nt=Z[0].distance),g&amp;&amp;0!==X&amp;&amp;0===Z.length){G.distance=X,G.index=!1;var f=N._module.hoverPoints(G,q,H,&quot;closest&quot;,l._hoverlayer);if(f&amp;&amp;(f=f.filter((function(t){return t.spikeDistance&lt;=X}))),f&amp;&amp;f.length){var h,d=f.filter((function(t){return t.xa.showspikes&amp;&amp;&quot;hovered data&quot;!==t.xa.spikesnap}));if(d.length){var m=d[0];i(m.x0)&amp;&amp;i(m.y0)&amp;&amp;(h=ot(m),(!K.vLinePoint||K.vLinePoint.spikeDistance&gt;h.spikeDistance)&amp;&amp;(K.vLinePoint=h))}var y=f.filter((function(t){return t.ya.showspikes&amp;&amp;&quot;hovered data&quot;!==t.ya.spikesnap}));if(y.length){var x=y[0];i(x.x0)&amp;&amp;i(x.y0)&amp;&amp;(h=ot(x),(!K.hLinePoint||K.hLinePoint.spikeDistance&gt;h.spikeDistance)&amp;&amp;(K.hLinePoint=h))}}}}}function at(t,e){for(var r,n=null,i=1/0,a=0;a&lt;t.length;a++)(r=t[a].spikeDistance)&lt;=i&amp;&amp;r&lt;=e&amp;&amp;(n=t[a],i=r);return n}function ot(t){return t?{xa:t.xa,ya:t.ya,x:void 0!==t.xSpike?t.xSpike:(t.x0+t.x1)/2,y:void 0!==t.ySpike?t.ySpike:(t.y0+t.y1)/2,distance:t.distance,spikeDistance:t.spikeDistance,curveNumber:t.trace.index,color:t.color,pointNumber:t.index}:null}it();var st={fullLayout:l,container:l._hoverlayer,outerContainer:l._paperdiv,event:e},lt=t._spikepoints,ct={vLinePoint:K.vLinePoint,hLinePoint:K.hLinePoint};if(t._spikepoints=ct,g&amp;&amp;0!==X&amp;&amp;0!==Z.length){var ut=at(Z.filter((function(t){return t.ya.showspikes})),X);K.hLinePoint=ot(ut);var ft=at(Z.filter((function(t){return t.xa.showspikes})),X);K.vLinePoint=ot(ft)}if(0===Z.length){var ht=d.unhoverRaw(t,e);return!g||null===K.hLinePoint&amp;&amp;null===K.vLinePoint||D(lt)&amp;&amp;O(t,K,st),ht}g&amp;&amp;D(lt)&amp;&amp;O(t,K,st);if(Z.sort((function(t,e){return t.distance-e.distance})),v.isXYhover(V)&amp;&amp;0!==Z[0].length&amp;&amp;&quot;splom&quot;!==Z[0].trace.type){var pt=Z[0],dt=pt.cd[pt.index],gt=&quot;group&quot;===l.boxmode||&quot;group&quot;===l.violinmode,mt=pt.xVal,vt=pt.xa;&quot;category&quot;===vt.type&amp;&amp;(mt=vt._categoriesMap[mt]),&quot;date&quot;===vt.type&amp;&amp;(mt=vt.d2c(mt)),dt&amp;&amp;dt.t&amp;&amp;dt.t.posLetter===vt._id&amp;&amp;gt&amp;&amp;(mt+=dt.t.dPos);var yt=pt.yVal;&quot;category&quot;===(vt=pt.ya).type&amp;&amp;(yt=vt._categoriesMap[yt]),&quot;date&quot;===vt.type&amp;&amp;(yt=vt.d2c(yt)),dt&amp;&amp;dt.t&amp;&amp;dt.t.posLetter===vt._id&amp;&amp;gt&amp;&amp;(yt+=dt.t.dPos),it(mt,yt);var xt={};Z=Z.filter((function(t){var e=E(t);if(!xt[e])return xt[e]=!0,xt[e]}))}var bt=t._hoverdata,_t=[];for(R=0;R&lt;Z.length;R++){var wt=Z[R],Tt=v.makeEventData(wt,wt.trace,wt.cd);if(!1!==wt.hovertemplate){var kt=!1;wt.cd[wt.index]&amp;&amp;wt.cd[wt.index].ht&amp;&amp;(kt=wt.cd[wt.index].ht),wt.hovertemplate=kt||wt.trace.hovertemplate||!1}wt.eventData=[Tt],_t.push(Tt)}t._hoverdata=_t;var Mt=&quot;y&quot;===S&amp;&amp;(J.length&gt;1||Z.length&gt;1)||&quot;closest&quot;===S&amp;&amp;Q&amp;&amp;Z.length&gt;1,At=p.combine(l.plot_bgcolor||p.background,l.paper_bgcolor),St={hovermode:S,rotateLabels:Mt,bgColor:At,container:l._hoverlayer,outerContainer:l._paperdiv,commonLabelOpts:l.hoverlabel,hoverdistance:l.hoverdistance},Et=L(Z,St,t);v.isUnifiedHover(S)||(!function(t,e,r){var n,i,a,o,s,l,c,u=0,f=1,h=t.size(),p=new Array(h),d=0;function g(t){var e=t[0],r=t[t.length-1];if(i=e.pmin-e.pos-e.dp+e.size,a=r.pos+r.dp+r.size-e.pmax,i&gt;.01){for(s=t.length-1;s&gt;=0;s--)t[s].dp+=i;n=!1}if(!(a&lt;.01)){if(i&lt;-.01){for(s=t.length-1;s&gt;=0;s--)t[s].dp-=a;n=!1}if(n){var c=0;for(o=0;o&lt;t.length;o++)(l=t[o]).pos+l.dp+l.size&gt;e.pmax&amp;&amp;c++;for(o=t.length-1;o&gt;=0&amp;&amp;!(c&lt;=0);o--)(l=t[o]).pos&gt;e.pmax-1&amp;&amp;(l.del=!0,c--);for(o=0;o&lt;t.length&amp;&amp;!(c&lt;=0);o++)if((l=t[o]).pos&lt;e.pmin+1)for(l.del=!0,c--,a=2*l.size,s=t.length-1;s&gt;=0;s--)t[s].dp-=a;for(o=t.length-1;o&gt;=0&amp;&amp;!(c&lt;=0);o--)(l=t[o]).pos+l.dp+l.size&gt;e.pmax&amp;&amp;(l.del=!0,c--)}}}t.each((function(t){var n=t[e],i=&quot;x&quot;===n._id.charAt(0),a=n.range;0===d&amp;&amp;a&amp;&amp;a[0]&gt;a[1]!==i&amp;&amp;(f=-1),p[d++]=[{datum:t,traceIndex:t.trace.index,dp:0,pos:t.pos,posref:t.posref,size:t.by*(i?T:1)/2,pmin:0,pmax:i?r.width:r.height}]})),p.sort((function(t,e){return t[0].posref-e[0].posref||f*(e[0].traceIndex-t[0].traceIndex)}));for(;!n&amp;&amp;u&lt;=h;){for(u++,n=!0,o=0;o&lt;p.length-1;){var m=p[o],v=p[o+1],y=m[m.length-1],x=v[0];if((i=y.pos+y.dp+y.size-x.pos-x.dp+x.size)&gt;.01&amp;&amp;y.pmin===x.pmin&amp;&amp;y.pmax===x.pmax){for(s=v.length-1;s&gt;=0;s--)v[s].dp+=i;for(m.push.apply(m,v),p.splice(o+1,1),c=0,s=m.length-1;s&gt;=0;s--)c+=m[s].dp;for(a=c/m.length,s=m.length-1;s&gt;=0;s--)m[s].dp-=a;n=!1}else o++}p.forEach(g)}for(o=p.length-1;o&gt;=0;o--){var b=p[o];for(s=b.length-1;s&gt;=0;s--){var _=b[s],w=_.datum;w.offset=_.dp,w.del=_.del}}}(Et,Mt?&quot;xa&quot;:&quot;ya&quot;,l),P(Et,Mt,l._invScaleX,l._invScaleY));if(e.target&amp;&amp;e.target.tagName){var Ct=m.getComponentMethod(&quot;annotations&quot;,&quot;hasClickToShow&quot;)(t,_t);f(n.select(e.target),Ct?&quot;pointer&quot;:&quot;&quot;)}if(!e.target||a||!function(t,e,r){if(!r||r.length!==t._hoverdata.length)return!0;for(var n=r.length-1;n&gt;=0;n--){var i=r[n],a=t._hoverdata[n];if(i.curveNumber!==a.curveNumber||String(i.pointNumber)!==String(a.pointNumber)||String(i.pointNumbers)!==String(a.pointNumbers))return!0}return!1}(t,0,bt))return;bt&amp;&amp;t.emit(&quot;plotly_unhover&quot;,{event:e,points:bt});t.emit(&quot;plotly_hover&quot;,{event:e,points:t._hoverdata,xaxes:b,yaxes:_,xvals:C,yvals:I})}(t,e,r,a)}))},r.loneHover=function(t,e){var r=!0;Array.isArray(t)||(r=!1,t=[t]);var i=t.map((function(t){return{color:t.color||p.defaultLine,x0:t.x0||t.x||0,x1:t.x1||t.x||0,y0:t.y0||t.y||0,y1:t.y1||t.y||0,xLabel:t.xLabel,yLabel:t.yLabel,zLabel:t.zLabel,text:t.text,name:t.name,idealAlign:t.idealAlign,borderColor:t.borderColor,fontFamily:t.fontFamily,fontSize:t.fontSize,fontColor:t.fontColor,nameLength:t.nameLength,textAlign:t.textAlign,trace:t.trace||{index:0,hoverinfo:&quot;&quot;},xa:{_offset:0},ya:{_offset:0},index:0,hovertemplate:t.hovertemplate||!1,eventData:t.eventData||!1,hovertemplateLabels:t.hovertemplateLabels||!1}})),a=n.select(e.container),o=e.outerContainer?n.select(e.outerContainer):a,s={hovermode:&quot;closest&quot;,rotateLabels:!1,bgColor:e.bgColor||p.background,container:a,outerContainer:o},l=L(i,s,e.gd),c=0,u=0;l.sort((function(t,e){return t.y0-e.y0})).each((function(t,r){var n=t.y0-t.by/2;t.offset=n-5&lt;c?c-n+5:0,c=n+t.by+t.offset,r===e.anchorIndex&amp;&amp;(u=t.offset)})).each((function(t){t.offset-=u}));var f=e.gd._fullLayout._invScaleX,h=e.gd._fullLayout._invScaleY;return P(l,s.rotateLabels,f,h),r?l:l.node()};var C=/&lt;extra&gt;([\s\S]*)&lt;\/extra&gt;/;function L(t,e,r){var i=r._fullLayout,a=e.hovermode,c=e.rotateLabels,f=e.bgColor,d=e.container,g=e.outerContainer,m=e.commonLabelOpts||{},w=e.fontFamily||y.HOVERFONT,T=e.fontSize||y.HOVERFONTSIZE,k=t[0],M=k.xa,C=k.ya,L=&quot;y&quot;===a.charAt(0)?&quot;yLabel&quot;:&quot;xLabel&quot;,P=k[L],z=(String(P)||&quot;&quot;).split(&quot; &quot;)[0],O=g.node().getBoundingClientRect(),D=O.top,R=O.width,F=O.height,B=void 0!==P&amp;&amp;k.distance&lt;=e.hoverdistance&amp;&amp;(&quot;x&quot;===a||&quot;y&quot;===a);if(B){var N,j,U=!0;for(N=0;N&lt;t.length;N++)if(U&amp;&amp;void 0===t[N].zLabel&amp;&amp;(U=!1),j=t[N].hoverinfo||t[N].trace.hoverinfo){var V=Array.isArray(j)?j:j.split(&quot;+&quot;);if(-1===V.indexOf(&quot;all&quot;)&amp;&amp;-1===V.indexOf(a)){B=!1;break}}U&amp;&amp;(B=!1)}var q=d.selectAll(&quot;g.axistext&quot;).data(B?[0]:[]);function H(t){return t.filter((function(t){return void 0!==t.zLabelVal||(t[L]||&quot;&quot;).split(&quot; &quot;)[0]===z}))}if(q.enter().append(&quot;g&quot;).classed(&quot;axistext&quot;,!0),q.exit().remove(),q.each((function(){var e=n.select(this),l=o.ensureSingle(e,&quot;path&quot;,&quot;&quot;,(function(t){t.style({&quot;stroke-width&quot;:&quot;1px&quot;})})),c=o.ensureSingle(e,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),f=m.bgcolor||p.defaultLine,d=m.bordercolor||p.contrast(f),g=p.contrast(f),v={family:m.font.family||w,size:m.font.size||T,color:m.font.color||g};l.style({fill:f,stroke:d}),c.text(P).call(h.font,v).call(u.positionText,0,0).call(u.convertToTspans,r),e.attr(&quot;transform&quot;,&quot;&quot;);var y,x,b=c.node().getBoundingClientRect();if(&quot;x&quot;===a){var _=&quot;top&quot;===M.side?&quot;-&quot;:&quot;&quot;;c.attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(u.positionText,0,&quot;top&quot;===M.side?D-b.bottom-A-S:D-b.top+A+S),y=M._offset+(k.x0+k.x1)/2,x=C._offset+(&quot;top&quot;===M.side?0:C._length);var E=b.width/2+S;y&lt;E?(y=E,l.attr(&quot;d&quot;,&quot;M-&quot;+(E-A)+&quot;,0L-&quot;+(E-2*A)+&quot;,&quot;+_+A+&quot;H&quot;+(S+b.width/2)+&quot;v&quot;+_+(2*S+b.height)+&quot;H-&quot;+E+&quot;V&quot;+_+A+&quot;Z&quot;)):y&gt;i.width-E?(y=i.width-E,l.attr(&quot;d&quot;,&quot;M&quot;+(E-A)+&quot;,0L&quot;+E+&quot;,&quot;+_+A+&quot;v&quot;+_+(2*S+b.height)+&quot;H-&quot;+E+&quot;V&quot;+_+A+&quot;H&quot;+(E-2*A)+&quot;Z&quot;)):l.attr(&quot;d&quot;,&quot;M0,0L&quot;+A+&quot;,&quot;+_+A+&quot;H&quot;+(S+b.width/2)+&quot;v&quot;+_+(2*S+b.height)+&quot;H-&quot;+(S+b.width/2)+&quot;V&quot;+_+A+&quot;H-&quot;+A+&quot;Z&quot;)}else{var L,I,z;&quot;right&quot;===C.side?(L=&quot;start&quot;,I=1,z=&quot;&quot;,y=M._offset+M._length):(L=&quot;end&quot;,I=-1,z=&quot;-&quot;,y=M._offset),x=C._offset+(k.y0+k.y1)/2,c.attr(&quot;text-anchor&quot;,L),l.attr(&quot;d&quot;,&quot;M0,0L&quot;+z+A+&quot;,&quot;+A+&quot;V&quot;+(S+b.height/2)+&quot;h&quot;+z+(2*S+b.width)+&quot;V-&quot;+(S+b.height/2)+&quot;H&quot;+z+A+&quot;V-&quot;+A+&quot;Z&quot;);var O,R=b.height/2,F=D-b.top-R,B=&quot;clip&quot;+i._uid+&quot;commonlabel&quot;+C._id;if(y&lt;b.width+2*S+A){O=&quot;M-&quot;+(A+S)+&quot;-&quot;+R+&quot;h-&quot;+(b.width-S)+&quot;V&quot;+R+&quot;h&quot;+(b.width-S)+&quot;Z&quot;;var N=b.width-y+S;u.positionText(c,N,F),&quot;end&quot;===L&amp;&amp;c.selectAll(&quot;tspan&quot;).each((function(){var t=n.select(this),e=h.tester.append(&quot;text&quot;).text(t.text()).call(h.font,v),r=e.node().getBoundingClientRect();Math.round(r.width)&lt;Math.round(b.width)&amp;&amp;t.attr(&quot;x&quot;,N-r.width),e.remove()}))}else u.positionText(c,I*(S+A),F),O=null;var j=i._topclips.selectAll(&quot;#&quot;+B).data(O?[0]:[]);j.enter().append(&quot;clipPath&quot;).attr(&quot;id&quot;,B).append(&quot;path&quot;),j.exit().remove(),j.select(&quot;path&quot;).attr(&quot;d&quot;,O),h.setClipUrl(c,O?B:null,r)}e.attr(&quot;transform&quot;,s(y,x)),t=H(t)})),v.isUnifiedHover(a)){if(d.selectAll(&quot;g.hovertext&quot;).remove(),void 0!==P&amp;&amp;k.distance&lt;=e.hoverdistance&amp;&amp;(t=H(t)),0===t.length)return;var G={showlegend:!0,legend:{title:{text:P,font:i.hoverlabel.font},font:i.hoverlabel.font,bgcolor:i.hoverlabel.bgcolor,bordercolor:i.hoverlabel.bordercolor,borderwidth:1,tracegroupgap:7,traceorder:i.legend?i.legend.traceorder:void 0,orientation:&quot;v&quot;}},Y={};x(G,Y,r._fullData);var W=Y.legend;W.entries=[];for(var X=0;X&lt;t.length;X++){var Z=I(t[X],!0,a,i,P),J=Z[0],K=Z[1],Q=t[X];Q.name=K,Q.text=&quot;&quot;!==K?K+&quot; : &quot;+J:J;var $=Q.cd[Q.index];$&amp;&amp;($.mc&amp;&amp;(Q.mc=$.mc),$.mcc&amp;&amp;(Q.mc=$.mcc),$.mlc&amp;&amp;(Q.mlc=$.mlc),$.mlcc&amp;&amp;(Q.mlc=$.mlcc),$.mlw&amp;&amp;(Q.mlw=$.mlw),$.mrc&amp;&amp;(Q.mrc=$.mrc),$.dir&amp;&amp;(Q.dir=$.dir)),Q._distinct=!0,W.entries.push([Q])}W.entries.sort((function(t,e){return t[0].trace.index-e[0].trace.index})),W.layer=d,b(r,W);var tt=o.mean(t.map((function(t){return(t.y0+t.y1)/2}))),et=o.mean(t.map((function(t){return(t.x0+t.x1)/2}))),rt=d.select(&quot;g.legend&quot;),nt=rt.node().getBoundingClientRect();et+=M._offset,tt+=C._offset-nt.height/2;var it=nt.width+2*S;!(et+it&lt;=R)&amp;&amp;et-it&gt;=0?et-=it:et+=2*S;var at=nt.height+2*S,ot=tt+at&gt;=F;return at&lt;=F&amp;&amp;(tt&lt;=D?tt=C._offset+2*S:ot&amp;&amp;(tt=F-at)),rt.attr(&quot;transform&quot;,s(et,tt)),rt}var st=d.selectAll(&quot;g.hovertext&quot;).data(t,(function(t){return E(t)}));return st.enter().append(&quot;g&quot;).classed(&quot;hovertext&quot;,!0).each((function(){var t=n.select(this);t.append(&quot;rect&quot;).call(p.fill,p.addOpacity(f,.8)),t.append(&quot;text&quot;).classed(&quot;name&quot;,!0),t.append(&quot;path&quot;).style(&quot;stroke-width&quot;,&quot;1px&quot;),t.append(&quot;text&quot;).classed(&quot;nums&quot;,!0).call(h.font,w,T)})),st.exit().remove(),st.each((function(t){var e=n.select(this).attr(&quot;transform&quot;,&quot;&quot;),o=t.color;Array.isArray(o)&amp;&amp;(o=o[t.eventData[0].pointNumber]);var d=t.bgcolor||o,g=p.combine(p.opacity(d)?d:p.defaultLine,f),m=p.combine(p.opacity(o)?o:p.defaultLine,f),v=t.borderColor||p.contrast(g),y=I(t,B,a,i,P,e),x=y[0],b=y[1],k=e.select(&quot;text.nums&quot;).call(h.font,t.fontFamily||w,t.fontSize||T,t.fontColor||v).text(x).attr(&quot;data-notex&quot;,1).call(u.positionText,0,0).call(u.convertToTspans,r),M=e.select(&quot;text.name&quot;),E=0,C=0;if(b&amp;&amp;b!==x){M.call(h.font,t.fontFamily||w,t.fontSize||T,m).text(b).attr(&quot;data-notex&quot;,1).call(u.positionText,0,0).call(u.convertToTspans,r);var L=M.node().getBoundingClientRect();E=L.width+2*S,C=L.height+2*S}else M.remove(),e.select(&quot;rect&quot;).remove();e.select(&quot;path&quot;).style({fill:g,stroke:v});var z,O,N=k.node().getBoundingClientRect(),j=t.xa._offset+(t.x0+t.x1)/2,U=t.ya._offset+(t.y0+t.y1)/2,V=Math.abs(t.x1-t.x0),q=Math.abs(t.y1-t.y0),H=N.width+A+S+E;if(t.ty0=D-N.top,t.bx=N.width+2*S,t.by=Math.max(N.height+2*S,C),t.anchor=&quot;start&quot;,t.txwidth=N.width,t.tx2width=E,t.offset=0,c)t.pos=j,z=U+q/2+H&lt;=F,O=U-q/2-H&gt;=0,&quot;top&quot;!==t.idealAlign&amp;&amp;z||!O?z?(U+=q/2,t.anchor=&quot;start&quot;):t.anchor=&quot;middle&quot;:(U-=q/2,t.anchor=&quot;end&quot;);else if(t.pos=U,z=j+V/2+H&lt;=R,O=j-V/2-H&gt;=0,&quot;left&quot;!==t.idealAlign&amp;&amp;z||!O)if(z)j+=V/2,t.anchor=&quot;start&quot;;else{t.anchor=&quot;middle&quot;;var G=H/2,Y=j+G-R,W=j-G;Y&gt;0&amp;&amp;(j-=Y),W&lt;0&amp;&amp;(j+=-W)}else j-=V/2,t.anchor=&quot;end&quot;;k.attr(&quot;text-anchor&quot;,t.anchor),E&amp;&amp;M.attr(&quot;text-anchor&quot;,t.anchor),e.attr(&quot;transform&quot;,s(j,U)+(c?l(_):&quot;&quot;))})),st}function I(t,e,r,n,i,a){var s=&quot;&quot;,l=&quot;&quot;;void 0!==t.nameOverride&amp;&amp;(t.name=t.nameOverride),t.name&amp;&amp;(t.trace._meta&amp;&amp;(t.name=o.templateString(t.name,t.trace._meta)),s=R(t.name,t.nameLength)),void 0!==t.zLabel?(void 0!==t.xLabel&amp;&amp;(l+=&quot;x: &quot;+t.xLabel+&quot;&lt;br&gt;&quot;),void 0!==t.yLabel&amp;&amp;(l+=&quot;y: &quot;+t.yLabel+&quot;&lt;br&gt;&quot;),&quot;choropleth&quot;!==t.trace.type&amp;&amp;&quot;choroplethmapbox&quot;!==t.trace.type&amp;&amp;(l+=(l?&quot;z: &quot;:&quot;&quot;)+t.zLabel)):e&amp;&amp;t[r.charAt(0)+&quot;Label&quot;]===i?l=t[(&quot;x&quot;===r.charAt(0)?&quot;y&quot;:&quot;x&quot;)+&quot;Label&quot;]||&quot;&quot;:void 0===t.xLabel?void 0!==t.yLabel&amp;&amp;&quot;scattercarpet&quot;!==t.trace.type&amp;&amp;(l=t.yLabel):l=void 0===t.yLabel?t.xLabel:&quot;(&quot;+t.xLabel+&quot;, &quot;+t.yLabel+&quot;)&quot;,!t.text&amp;&amp;0!==t.text||Array.isArray(t.text)||(l+=(l?&quot;&lt;br&gt;&quot;:&quot;&quot;)+t.text),void 0!==t.extraText&amp;&amp;(l+=(l?&quot;&lt;br&gt;&quot;:&quot;&quot;)+t.extraText),a&amp;&amp;&quot;&quot;===l&amp;&amp;!t.hovertemplate&amp;&amp;(&quot;&quot;===s&amp;&amp;a.remove(),l=s);var c=n._d3locale,u=t.hovertemplate||!1,f=t.hovertemplateLabels||t,h=t.eventData[0]||{};return u&amp;&amp;(l=(l=o.hovertemplateString(u,f,c,h,t.trace._meta)).replace(C,(function(e,r){return s=R(r,t.nameLength),&quot;&quot;}))),[l,s]}function P(t,e,r,i){var a=function(t){return t*r},o=function(t){return t*i};t.each((function(t){var r=n.select(this);if(t.del)return r.remove();var i=r.select(&quot;text.nums&quot;),s=t.anchor,l=&quot;end&quot;===s?-1:1,c={start:1,end:-1,middle:0}[s],f=c*(A+S),p=f+c*(t.txwidth+S),d=0,g=t.offset,m=&quot;middle&quot;===s;m&amp;&amp;(f-=t.tx2width/2,p+=t.txwidth/2+S),e&amp;&amp;(g*=-M,d=t.offset*k),r.select(&quot;path&quot;).attr(&quot;d&quot;,m?&quot;M-&quot;+a(t.bx/2+t.tx2width/2)+&quot;,&quot;+o(g-t.by/2)+&quot;h&quot;+a(t.bx)+&quot;v&quot;+o(t.by)+&quot;h-&quot;+a(t.bx)+&quot;Z&quot;:&quot;M0,0L&quot;+a(l*A+d)+&quot;,&quot;+o(A+g)+&quot;v&quot;+o(t.by/2-A)+&quot;h&quot;+a(l*t.bx)+&quot;v-&quot;+o(t.by)+&quot;H&quot;+a(l*A+d)+&quot;V&quot;+o(g-A)+&quot;Z&quot;);var v=d+f,y=g+t.ty0-t.by/2+S,x=t.textAlign||&quot;auto&quot;;&quot;auto&quot;!==x&amp;&amp;(&quot;left&quot;===x&amp;&amp;&quot;start&quot;!==s?(i.attr(&quot;text-anchor&quot;,&quot;start&quot;),v=m?-t.bx/2-t.tx2width/2+S:-t.bx-S):&quot;right&quot;===x&amp;&amp;&quot;end&quot;!==s&amp;&amp;(i.attr(&quot;text-anchor&quot;,&quot;end&quot;),v=m?t.bx/2-t.tx2width/2-S:t.bx+S)),i.call(u.positionText,a(v),o(y)),t.tx2width&amp;&amp;(r.select(&quot;text.name&quot;).call(u.positionText,a(p+c*S+d),o(g+t.ty0-t.by/2+S)),r.select(&quot;rect&quot;).call(h.setRect,a(p+(c-1)*t.tx2width/2+d),o(g-t.by/2-1),a(t.tx2width),o(t.by+2)))}))}function z(t,e){var r=t.index,n=t.trace||{},a=t.cd[0],s=t.cd[r]||{};function l(t){return t||i(t)&amp;&amp;0===t}var c=Array.isArray(r)?function(t,e){var i=o.castOption(a,r,t);return l(i)?i:o.extractOption({},n,&quot;&quot;,e)}:function(t,e){return o.extractOption(s,n,t,e)};function u(e,r,n){var i=c(r,n);l(i)&amp;&amp;(t[e]=i)}if(u(&quot;hoverinfo&quot;,&quot;hi&quot;,&quot;hoverinfo&quot;),u(&quot;bgcolor&quot;,&quot;hbg&quot;,&quot;hoverlabel.bgcolor&quot;),u(&quot;borderColor&quot;,&quot;hbc&quot;,&quot;hoverlabel.bordercolor&quot;),u(&quot;fontFamily&quot;,&quot;htf&quot;,&quot;hoverlabel.font.family&quot;),u(&quot;fontSize&quot;,&quot;hts&quot;,&quot;hoverlabel.font.size&quot;),u(&quot;fontColor&quot;,&quot;htc&quot;,&quot;hoverlabel.font.color&quot;),u(&quot;nameLength&quot;,&quot;hnl&quot;,&quot;hoverlabel.namelength&quot;),u(&quot;textAlign&quot;,&quot;hta&quot;,&quot;hoverlabel.align&quot;),t.posref=&quot;y&quot;===e||&quot;closest&quot;===e&amp;&amp;&quot;h&quot;===n.orientation?t.xa._offset+(t.x0+t.x1)/2:t.ya._offset+(t.y0+t.y1)/2,t.x0=o.constrain(t.x0,0,t.xa._length),t.x1=o.constrain(t.x1,0,t.xa._length),t.y0=o.constrain(t.y0,0,t.ya._length),t.y1=o.constrain(t.y1,0,t.ya._length),void 0!==t.xLabelVal&amp;&amp;(t.xLabel=&quot;xLabel&quot;in t?t.xLabel:g.hoverLabelText(t.xa,t.xLabelVal),t.xVal=t.xa.c2d(t.xLabelVal)),void 0!==t.yLabelVal&amp;&amp;(t.yLabel=&quot;yLabel&quot;in t?t.yLabel:g.hoverLabelText(t.ya,t.yLabelVal),t.yVal=t.ya.c2d(t.yLabelVal)),void 0!==t.zLabelVal&amp;&amp;void 0===t.zLabel&amp;&amp;(t.zLabel=String(t.zLabelVal)),!(isNaN(t.xerr)||&quot;log&quot;===t.xa.type&amp;&amp;t.xerr&lt;=0)){var f=g.tickText(t.xa,t.xa.c2l(t.xerr),&quot;hover&quot;).text;void 0!==t.xerrneg?t.xLabel+=&quot; +&quot;+f+&quot; / -&quot;+g.tickText(t.xa,t.xa.c2l(t.xerrneg),&quot;hover&quot;).text:t.xLabel+=&quot; \xb1 &quot;+f,&quot;x&quot;===e&amp;&amp;(t.distance+=1)}if(!(isNaN(t.yerr)||&quot;log&quot;===t.ya.type&amp;&amp;t.yerr&lt;=0)){var h=g.tickText(t.ya,t.ya.c2l(t.yerr),&quot;hover&quot;).text;void 0!==t.yerrneg?t.yLabel+=&quot; +&quot;+h+&quot; / -&quot;+g.tickText(t.ya,t.ya.c2l(t.yerrneg),&quot;hover&quot;).text:t.yLabel+=&quot; \xb1 &quot;+h,&quot;y&quot;===e&amp;&amp;(t.distance+=1)}var p=t.hoverinfo||t.trace.hoverinfo;return p&amp;&amp;&quot;all&quot;!==p&amp;&amp;(-1===(p=Array.isArray(p)?p:p.split(&quot;+&quot;)).indexOf(&quot;x&quot;)&amp;&amp;(t.xLabel=void 0),-1===p.indexOf(&quot;y&quot;)&amp;&amp;(t.yLabel=void 0),-1===p.indexOf(&quot;z&quot;)&amp;&amp;(t.zLabel=void 0),-1===p.indexOf(&quot;text&quot;)&amp;&amp;(t.text=void 0),-1===p.indexOf(&quot;name&quot;)&amp;&amp;(t.name=void 0)),t}function O(t,e,r){var n,i,o=r.container,s=r.fullLayout,l=s._size,c=r.event,u=!!e.hLinePoint,f=!!e.vLinePoint;if(o.selectAll(&quot;.spikeline&quot;).remove(),f||u){var d=p.combine(s.plot_bgcolor,s.paper_bgcolor);if(u){var m,v,y=e.hLinePoint;n=y&amp;&amp;y.xa,&quot;cursor&quot;===(i=y&amp;&amp;y.ya).spikesnap?(m=c.pointerX,v=c.pointerY):(m=n._offset+y.x,v=i._offset+y.y);var x,b,_=a.readability(y.color,d)&lt;1.5?p.contrast(d):y.color,w=i.spikemode,T=i.spikethickness,k=i.spikecolor||_,M=g.getPxPosition(t,i);if(-1!==w.indexOf(&quot;toaxis&quot;)||-1!==w.indexOf(&quot;across&quot;)){if(-1!==w.indexOf(&quot;toaxis&quot;)&amp;&amp;(x=M,b=m),-1!==w.indexOf(&quot;across&quot;)){var A=i._counterDomainMin,S=i._counterDomainMax;&quot;free&quot;===i.anchor&amp;&amp;(A=Math.min(A,i.position),S=Math.max(S,i.position)),x=l.l+A*l.w,b=l.l+S*l.w}o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:x,x2:b,y1:v,y2:v,&quot;stroke-width&quot;:T,stroke:k,&quot;stroke-dasharray&quot;:h.dashStyle(i.spikedash,T)}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0),o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:x,x2:b,y1:v,y2:v,&quot;stroke-width&quot;:T+2,stroke:d}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0)}-1!==w.indexOf(&quot;marker&quot;)&amp;&amp;o.insert(&quot;circle&quot;,&quot;:first-child&quot;).attr({cx:M+(&quot;right&quot;!==i.side?T:-T),cy:v,r:T,fill:k}).classed(&quot;spikeline&quot;,!0)}if(f){var E,C,L=e.vLinePoint;n=L&amp;&amp;L.xa,i=L&amp;&amp;L.ya,&quot;cursor&quot;===n.spikesnap?(E=c.pointerX,C=c.pointerY):(E=n._offset+L.x,C=i._offset+L.y);var I,P,z=a.readability(L.color,d)&lt;1.5?p.contrast(d):L.color,O=n.spikemode,D=n.spikethickness,R=n.spikecolor||z,F=g.getPxPosition(t,n);if(-1!==O.indexOf(&quot;toaxis&quot;)||-1!==O.indexOf(&quot;across&quot;)){if(-1!==O.indexOf(&quot;toaxis&quot;)&amp;&amp;(I=F,P=C),-1!==O.indexOf(&quot;across&quot;)){var B=n._counterDomainMin,N=n._counterDomainMax;&quot;free&quot;===n.anchor&amp;&amp;(B=Math.min(B,n.position),N=Math.max(N,n.position)),I=l.t+(1-N)*l.h,P=l.t+(1-B)*l.h}o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:E,x2:E,y1:I,y2:P,&quot;stroke-width&quot;:D,stroke:R,&quot;stroke-dasharray&quot;:h.dashStyle(n.spikedash,D)}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0),o.insert(&quot;line&quot;,&quot;:first-child&quot;).attr({x1:E,x2:E,y1:I,y2:P,&quot;stroke-width&quot;:D+2,stroke:d}).classed(&quot;spikeline&quot;,!0).classed(&quot;crisp&quot;,!0)}-1!==O.indexOf(&quot;marker&quot;)&amp;&amp;o.insert(&quot;circle&quot;,&quot;:first-child&quot;).attr({cx:E,cy:F-(&quot;top&quot;!==n.side?D:-D),r:D,fill:R}).classed(&quot;spikeline&quot;,!0)}}}function D(t,e){return!e||(e.vLinePoint!==t._spikepoints.vLinePoint||e.hLinePoint!==t._spikepoints.hLinePoint)}function R(t,e){return u.plainText(t||&quot;&quot;,{len:e,allowedTags:[&quot;br&quot;,&quot;sub&quot;,&quot;sup&quot;,&quot;b&quot;,&quot;i&quot;,&quot;em&quot;]})}},{&quot;../../lib&quot;:778,&quot;../../lib/events&quot;:767,&quot;../../lib/override_cursor&quot;:789,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../legend/defaults&quot;:695,&quot;../legend/draw&quot;:696,&quot;./constants&quot;:677,&quot;./helpers&quot;:679,d3:169,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],681:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;./helpers&quot;).isUnifiedHover;e.exports=function(t,e,r,o){function s(t){o.font[t]||(o.font[t]=e.legend?e.legend.font[t]:e.font[t])}o=o||{},e&amp;&amp;a(e.hovermode)&amp;&amp;(o.font||(o.font={}),s(&quot;size&quot;),s(&quot;family&quot;),s(&quot;color&quot;),e.legend?(o.bgcolor||(o.bgcolor=i.combine(e.legend.bgcolor,e.paper_bgcolor)),o.bordercolor||(o.bordercolor=e.legend.bordercolor)):o.bgcolor||(o.bgcolor=e.paper_bgcolor)),r(&quot;hoverlabel.bgcolor&quot;,o.bgcolor),r(&quot;hoverlabel.bordercolor&quot;,o.bordercolor),r(&quot;hoverlabel.namelength&quot;,o.namelength),n.coerceFont(r,&quot;hoverlabel.font&quot;,o.font),r(&quot;hoverlabel.align&quot;,o.align)}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;./helpers&quot;:679}],682:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){function a(r,a){return void 0!==e[r]?e[r]:n.coerce(t,e,i,r,a)}var o,s=a(&quot;clickmode&quot;);return e._has(&quot;cartesian&quot;)?s.indexOf(&quot;select&quot;)&gt;-1?o=&quot;closest&quot;:(e._isHoriz=function(t,e){for(var r=e._scatterStackOpts||{},n=0;n&lt;t.length;n++){var i=t[n],a=i.xaxis+i.yaxis,o=(r[a]||{})[i.stackgroup]||{};if(&quot;h&quot;!==i.orientation&amp;&amp;&quot;h&quot;!==o.orientation)return!1}return!0}(r,e),o=e._isHoriz?&quot;y&quot;:&quot;x&quot;):o=&quot;closest&quot;,a(&quot;hovermode&quot;,o)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:684}],683:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../dragelement&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;./layout_attributes&quot;),l=t(&quot;./hover&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;fx&quot;,constants:t(&quot;./constants&quot;),schema:{layout:s},attributes:t(&quot;./attributes&quot;),layoutAttributes:s,supplyLayoutGlobalDefaults:t(&quot;./layout_global_defaults&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),getDistanceFunction:o.getDistanceFunction,getClosest:o.getClosest,inbox:o.inbox,quadrature:o.quadrature,appendArrayPointValue:o.appendArrayPointValue,castHoverOption:function(t,e,r){return i.castOption(t,e,&quot;hoverlabel.&quot;+r)},castHoverinfo:function(t,e,r){return i.castOption(t,r,&quot;hoverinfo&quot;,(function(r){return i.coerceHoverinfo({hoverinfo:r},{_module:t._module},e)}))},hover:l.hover,unhover:a.unhover,loneHover:l.loneHover,loneUnhover:function(t){var e=i.isD3Selection(t)?t:n.select(t);e.selectAll(&quot;g.hovertext&quot;).remove(),e.selectAll(&quot;.spikeline&quot;).remove()},click:t(&quot;./click&quot;)}},{&quot;../../lib&quot;:778,&quot;../dragelement&quot;:662,&quot;./attributes&quot;:674,&quot;./calc&quot;:675,&quot;./click&quot;:676,&quot;./constants&quot;:677,&quot;./defaults&quot;:678,&quot;./helpers&quot;:679,&quot;./hover&quot;:680,&quot;./layout_attributes&quot;:684,&quot;./layout_defaults&quot;:685,&quot;./layout_global_defaults&quot;:686,d3:169}],684:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../plots/font_attributes&quot;)({editType:&quot;none&quot;});i.family.dflt=n.HOVERFONT,i.size.dflt=n.HOVERFONTSIZE,e.exports={clickmode:{valType:&quot;flaglist&quot;,flags:[&quot;event&quot;,&quot;select&quot;],dflt:&quot;event&quot;,editType:&quot;plot&quot;,extras:[&quot;none&quot;]},dragmode:{valType:&quot;enumerated&quot;,values:[&quot;zoom&quot;,&quot;pan&quot;,&quot;select&quot;,&quot;lasso&quot;,&quot;drawclosedpath&quot;,&quot;drawopenpath&quot;,&quot;drawline&quot;,&quot;drawrect&quot;,&quot;drawcircle&quot;,&quot;orbit&quot;,&quot;turntable&quot;,!1],dflt:&quot;zoom&quot;,editType:&quot;modebar&quot;},hovermode:{valType:&quot;enumerated&quot;,values:[&quot;x&quot;,&quot;y&quot;,&quot;closest&quot;,!1,&quot;x unified&quot;,&quot;y unified&quot;],editType:&quot;modebar&quot;},hoverdistance:{valType:&quot;integer&quot;,min:-1,dflt:20,editType:&quot;none&quot;},spikedistance:{valType:&quot;integer&quot;,min:-1,dflt:20,editType:&quot;none&quot;},hoverlabel:{bgcolor:{valType:&quot;color&quot;,editType:&quot;none&quot;},bordercolor:{valType:&quot;color&quot;,editType:&quot;none&quot;},font:i,align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;right&quot;,&quot;auto&quot;],dflt:&quot;auto&quot;,editType:&quot;none&quot;},namelength:{valType:&quot;integer&quot;,min:-1,dflt:15,editType:&quot;none&quot;},editType:&quot;none&quot;},selectdirection:{valType:&quot;enumerated&quot;,values:[&quot;h&quot;,&quot;v&quot;,&quot;d&quot;,&quot;any&quot;],dflt:&quot;any&quot;,editType:&quot;none&quot;}}},{&quot;../../plots/font_attributes&quot;:856,&quot;./constants&quot;:677}],685:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./helpers&quot;).isUnifiedHover,a=t(&quot;./layout_attributes&quot;),o=t(&quot;./hovermode_defaults&quot;),s=t(&quot;./hoverlabel_defaults&quot;);e.exports=function(t,e,r){function l(r,i){return n.coerce(t,e,a,r,i)}var c=o(t,e,r);c&amp;&amp;(l(&quot;hoverdistance&quot;),l(&quot;spikedistance&quot;,i(c)?-1:void 0)),&quot;select&quot;===l(&quot;dragmode&quot;)&amp;&amp;l(&quot;selectdirection&quot;);var u=e._has(&quot;mapbox&quot;),f=e._has(&quot;geo&quot;),h=e._basePlotModules.length;&quot;zoom&quot;===e.dragmode&amp;&amp;((u||f)&amp;&amp;1===h||u&amp;&amp;f&amp;&amp;2===h)&amp;&amp;(e.dragmode=&quot;pan&quot;),s(t,e,l)}},{&quot;../../lib&quot;:778,&quot;./helpers&quot;:679,&quot;./hoverlabel_defaults&quot;:681,&quot;./hovermode_defaults&quot;:682,&quot;./layout_attributes&quot;:684}],686:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./hoverlabel_defaults&quot;),a=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){i(t,e,(function(r,i){return n.coerce(t,e,a,r,i)}))}},{&quot;../../lib&quot;:778,&quot;./hoverlabel_defaults&quot;:681,&quot;./layout_attributes&quot;:684}],687:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/regex&quot;).counter,a=t(&quot;../../plots/domain&quot;).attributes,o=t(&quot;../../plots/cartesian/constants&quot;).idRegex,s=t(&quot;../../plot_api/plot_template&quot;),l={rows:{valType:&quot;integer&quot;,min:1,editType:&quot;plot&quot;},roworder:{valType:&quot;enumerated&quot;,values:[&quot;top to bottom&quot;,&quot;bottom to top&quot;],dflt:&quot;top to bottom&quot;,editType:&quot;plot&quot;},columns:{valType:&quot;integer&quot;,min:1,editType:&quot;plot&quot;},subplots:{valType:&quot;info_array&quot;,freeLength:!0,dimensions:2,items:{valType:&quot;enumerated&quot;,values:[i(&quot;xy&quot;).toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},xaxes:{valType:&quot;info_array&quot;,freeLength:!0,items:{valType:&quot;enumerated&quot;,values:[o.x.toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},yaxes:{valType:&quot;info_array&quot;,freeLength:!0,items:{valType:&quot;enumerated&quot;,values:[o.y.toString(),&quot;&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},pattern:{valType:&quot;enumerated&quot;,values:[&quot;independent&quot;,&quot;coupled&quot;],dflt:&quot;coupled&quot;,editType:&quot;plot&quot;},xgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},ygap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},domain:a({name:&quot;grid&quot;,editType:&quot;plot&quot;,noGridCell:!0},{}),xside:{valType:&quot;enumerated&quot;,values:[&quot;bottom&quot;,&quot;bottom plot&quot;,&quot;top plot&quot;,&quot;top&quot;],dflt:&quot;bottom plot&quot;,editType:&quot;plot&quot;},yside:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;left plot&quot;,&quot;right plot&quot;,&quot;right&quot;],dflt:&quot;left plot&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;};function c(t,e,r){var n=e[r+&quot;axes&quot;],i=Object.keys((t._splomAxes||{})[r]||{});return Array.isArray(n)?n:i.length?i:void 0}function u(t,e,r,n,i,a){var o=e(t+&quot;gap&quot;,r),s=e(&quot;domain.&quot;+t);e(t+&quot;side&quot;,n);for(var l=new Array(i),c=s[0],u=(s[1]-c)/(i-o),f=u*(1-o),h=0;h&lt;i;h++){var p=c+u*h;l[a?i-1-h:h]=[p,p+f]}return l}function f(t,e,r,n,i){var a,o=new Array(r);function s(t,r){-1!==e.indexOf(r)&amp;&amp;void 0===n[r]?(o[t]=r,n[r]=t):o[t]=&quot;&quot;}if(Array.isArray(t))for(a=0;a&lt;r;a++)s(a,t[a]);else for(s(0,i),a=1;a&lt;r;a++)s(a,i+(a+1));return o}e.exports={moduleType:&quot;component&quot;,name:&quot;grid&quot;,schema:{layout:{grid:l}},layoutAttributes:l,sizeDefaults:function(t,e){var r=t.grid||{},i=c(e,r,&quot;x&quot;),a=c(e,r,&quot;y&quot;);if(t.grid||i||a){var o,f,h=Array.isArray(r.subplots)&amp;&amp;Array.isArray(r.subplots[0]),p=Array.isArray(i),d=Array.isArray(a),g=p&amp;&amp;i!==r.xaxes&amp;&amp;d&amp;&amp;a!==r.yaxes;h?(o=r.subplots.length,f=r.subplots[0].length):(d&amp;&amp;(o=a.length),p&amp;&amp;(f=i.length));var m=s.newContainer(e,&quot;grid&quot;),v=k(&quot;rows&quot;,o),y=k(&quot;columns&quot;,f);if(v*y&gt;1){if(!h&amp;&amp;!p&amp;&amp;!d)&quot;independent&quot;===k(&quot;pattern&quot;)&amp;&amp;(h=!0);m._hasSubplotGrid=h;var x,b,_=&quot;top to bottom&quot;===k(&quot;roworder&quot;),w=h?.2:.1,T=h?.3:.1;g&amp;&amp;e._splomGridDflt&amp;&amp;(x=e._splomGridDflt.xside,b=e._splomGridDflt.yside),m._domains={x:u(&quot;x&quot;,k,w,x,y),y:u(&quot;y&quot;,k,T,b,v,_)}}else delete e.grid}function k(t,e){return n.coerce(r,m,l,t,e)}},contentDefaults:function(t,e){var r=e.grid;if(r&amp;&amp;r._domains){var n,i,a,o,s,l,u,h=t.grid||{},p=e._subplots,d=r._hasSubplotGrid,g=r.rows,m=r.columns,v=&quot;independent&quot;===r.pattern,y=r._axisMap={};if(d){var x=h.subplots||[];l=r.subplots=new Array(g);var b=1;for(n=0;n&lt;g;n++){var _=l[n]=new Array(m),w=x[n]||[];for(i=0;i&lt;m;i++)if(v?(s=1===b?&quot;xy&quot;:&quot;x&quot;+b+&quot;y&quot;+b,b++):s=w[i],_[i]=&quot;&quot;,-1!==p.cartesian.indexOf(s)){if(u=s.indexOf(&quot;y&quot;),a=s.slice(0,u),o=s.slice(u),void 0!==y[a]&amp;&amp;y[a]!==i||void 0!==y[o]&amp;&amp;y[o]!==n)continue;_[i]=s,y[a]=i,y[o]=n}}}else{var T=c(e,h,&quot;x&quot;),k=c(e,h,&quot;y&quot;);r.xaxes=f(T,p.xaxis,m,y,&quot;x&quot;),r.yaxes=f(k,p.yaxis,g,y,&quot;y&quot;)}var M=r._anchors={},A=&quot;top to bottom&quot;===r.roworder;for(var S in y){var E,C,L,I=S.charAt(0),P=r[I+&quot;side&quot;];if(P.length&lt;8)M[S]=&quot;free&quot;;else if(&quot;x&quot;===I){if(&quot;t&quot;===P.charAt(0)===A?(E=0,C=1,L=g):(E=g-1,C=-1,L=-1),d){var z=y[S];for(n=E;n!==L;n+=C)if((s=l[n][z])&amp;&amp;(u=s.indexOf(&quot;y&quot;),s.slice(0,u)===S)){M[S]=s.slice(u);break}}else for(n=E;n!==L;n+=C)if(o=r.yaxes[n],-1!==p.cartesian.indexOf(S+o)){M[S]=o;break}}else if(&quot;l&quot;===P.charAt(0)?(E=0,C=1,L=m):(E=m-1,C=-1,L=-1),d){var O=y[S];for(n=E;n!==L;n+=C)if((s=l[O][n])&amp;&amp;(u=s.indexOf(&quot;y&quot;),s.slice(u)===S)){M[S]=s.slice(0,u);break}}else for(n=E;n!==L;n+=C)if(a=r.xaxes[n],-1!==p.cartesian.indexOf(a+S)){M[S]=a;break}}}}}},{&quot;../../lib&quot;:778,&quot;../../lib/regex&quot;:795,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834,&quot;../../plots/domain&quot;:855}],688:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/constants&quot;),i=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=i(&quot;image&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;arraydraw&quot;},source:{valType:&quot;string&quot;,editType:&quot;arraydraw&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;arraydraw&quot;},sizex:{valType:&quot;number&quot;,dflt:0,editType:&quot;arraydraw&quot;},sizey:{valType:&quot;number&quot;,dflt:0,editType:&quot;arraydraw&quot;},sizing:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;contain&quot;,&quot;stretch&quot;],dflt:&quot;contain&quot;,editType:&quot;arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},x:{valType:&quot;any&quot;,dflt:0,editType:&quot;arraydraw&quot;},y:{valType:&quot;any&quot;,dflt:0,editType:&quot;arraydraw&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;arraydraw&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;arraydraw&quot;},xref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,n.idRegex.x.toString()],dflt:&quot;paper&quot;,editType:&quot;arraydraw&quot;},yref:{valType:&quot;enumerated&quot;,values:[&quot;paper&quot;,n.idRegex.y.toString()],dflt:&quot;paper&quot;,editType:&quot;arraydraw&quot;},editType:&quot;arraydraw&quot;})},{&quot;../../constants/axis_placeable_objects&quot;:746,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834}],689:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib/to_log_range&quot;);e.exports=function(t,e,r,a){e=e||{};var o=&quot;log&quot;===r&amp;&amp;&quot;linear&quot;===e.type,s=&quot;linear&quot;===r&amp;&amp;&quot;log&quot;===e.type;if(o||s)for(var l,c,u=t._fullLayout.images,f=e._id.charAt(0),h=0;h&lt;u.length;h++)if(c=&quot;images[&quot;+h+&quot;].&quot;,(l=u[h])[f+&quot;ref&quot;]===e._id){var p=l[f],d=l[&quot;size&quot;+f],g=null,m=null;if(o){g=i(p,e.range);var v=d/Math.pow(10,g)/2;m=2*Math.log(v+Math.sqrt(1+v*v))/Math.LN10}else m=(g=Math.pow(10,p))*(Math.pow(10,d/2)-Math.pow(10,-d/2));n(g)?n(m)||(m=null):(g=null,m=null),a(c+f,g),a(c+&quot;size&quot;+f,m)}}},{&quot;../../lib/to_log_range&quot;:805,&quot;fast-isnumeric&quot;:241}],690:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}var s=a(&quot;source&quot;);if(!a(&quot;visible&quot;,!!s))return e;a(&quot;layer&quot;),a(&quot;xanchor&quot;),a(&quot;yanchor&quot;),a(&quot;sizex&quot;),a(&quot;sizey&quot;),a(&quot;sizing&quot;),a(&quot;opacity&quot;);for(var l={_fullLayout:r},c=[&quot;x&quot;,&quot;y&quot;],u=0;u&lt;2;u++){var f=c[u],h=i.coerceRef(t,e,l,f,&quot;paper&quot;,void 0);if(&quot;paper&quot;!==h)i.getFromId(l,h)._imgIndices.push(e._index);i.coercePosition(e,l,a,h,f,0)}return e}e.exports=function(t,e){a(t,e,{name:&quot;images&quot;,handleItemDefaults:s})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:688}],691:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../drawing&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/axis_ids&quot;),s=t(&quot;../../constants/xmlns_namespaces&quot;);e.exports=function(t){var e,r,l=t._fullLayout,c=[],u={},f=[];for(r=0;r&lt;l.images.length;r++){var h=l.images[r];if(h.visible)if(&quot;below&quot;===h.layer&amp;&amp;&quot;paper&quot;!==h.xref&amp;&amp;&quot;paper&quot;!==h.yref){e=o.ref2id(h.xref)+o.ref2id(h.yref);var p=l._plots[e];if(!p){f.push(h);continue}p.mainplot&amp;&amp;(e=p.mainplot.id),u[e]||(u[e]=[]),u[e].push(h)}else&quot;above&quot;===h.layer?c.push(h):f.push(h)}var d={left:{sizing:&quot;xMin&quot;,offset:0},center:{sizing:&quot;xMid&quot;,offset:-.5},right:{sizing:&quot;xMax&quot;,offset:-1}},g={top:{sizing:&quot;YMin&quot;,offset:0},middle:{sizing:&quot;YMid&quot;,offset:-.5},bottom:{sizing:&quot;YMax&quot;,offset:-1}};function m(e){var r=n.select(this);if(this._imgSrc!==e.source)if(r.attr(&quot;xmlns&quot;,s.svg),e.source&amp;&amp;&quot;data:&quot;===e.source.slice(0,5))r.attr(&quot;xlink:href&quot;,e.source),this._imgSrc=e.source;else{var i=new Promise(function(t){var n=new Image;function i(){r.remove(),t()}this.img=n,n.setAttribute(&quot;crossOrigin&quot;,&quot;anonymous&quot;),n.onerror=i,n.onload=function(){var e=document.createElement(&quot;canvas&quot;);e.width=this.width,e.height=this.height,e.getContext(&quot;2d&quot;).drawImage(this,0,0);var n=e.toDataURL(&quot;image/png&quot;);r.attr(&quot;xlink:href&quot;,n),t()},r.on(&quot;error&quot;,i),n.src=e.source,this._imgSrc=e.source}.bind(this));t._promises.push(i)}}function v(e){var r,o,s=n.select(this),c=a.getFromId(t,e.xref),u=a.getFromId(t,e.yref),f=&quot;domain&quot;===a.getRefType(e.xref),h=&quot;domain&quot;===a.getRefType(e.yref),p=l._size;r=void 0!==c?&quot;string&quot;==typeof e.xref&amp;&amp;f?c._length*e.sizex:Math.abs(c.l2p(e.sizex)-c.l2p(0)):e.sizex*p.w,o=void 0!==u?&quot;string&quot;==typeof e.yref&amp;&amp;h?u._length*e.sizey:Math.abs(u.l2p(e.sizey)-u.l2p(0)):e.sizey*p.h;var m,v,y=r*d[e.xanchor].offset,x=o*g[e.yanchor].offset,b=d[e.xanchor].sizing+g[e.yanchor].sizing;switch(m=void 0!==c?&quot;string&quot;==typeof e.xref&amp;&amp;f?c._length*e.x+c._offset:c.r2p(e.x)+c._offset:e.x*p.w+p.l,m+=y,v=void 0!==u?&quot;string&quot;==typeof e.yref&amp;&amp;h?u._length*(1-e.y)+u._offset:u.r2p(e.y)+u._offset:p.h-e.y*p.h+p.t,v+=x,e.sizing){case&quot;fill&quot;:b+=&quot; slice&quot;;break;case&quot;stretch&quot;:b=&quot;none&quot;}s.attr({x:m,y:v,width:r,height:o,preserveAspectRatio:b,opacity:e.opacity});var _=(c&amp;&amp;&quot;domain&quot;!==a.getRefType(e.xref)?c._id:&quot;&quot;)+(u&amp;&amp;&quot;domain&quot;!==a.getRefType(e.yref)?u._id:&quot;&quot;);i.setClipUrl(s,_?&quot;clip&quot;+l._uid+_:null,t)}var y=l._imageLowerLayer.selectAll(&quot;image&quot;).data(f),x=l._imageUpperLayer.selectAll(&quot;image&quot;).data(c);y.enter().append(&quot;image&quot;),x.enter().append(&quot;image&quot;),y.exit().remove(),x.exit().remove(),y.each((function(t){m.bind(this)(t),v.bind(this)(t)})),x.each((function(t){m.bind(this)(t),v.bind(this)(t)}));var b=Object.keys(l._plots);for(r=0;r&lt;b.length;r++){e=b[r];var _=l._plots[e];if(_.imagelayer){var w=_.imagelayer.selectAll(&quot;image&quot;).data(u[e]||[]);w.enter().append(&quot;image&quot;),w.exit().remove(),w.each((function(t){m.bind(this)(t),v.bind(this)(t)}))}}}},{&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../drawing&quot;:665,d3:169}],692:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;images&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;images&quot;),draw:t(&quot;./draw&quot;),convertCoords:t(&quot;./convert_coords&quot;)}},{&quot;../../plots/cartesian/include_components&quot;:840,&quot;./attributes&quot;:688,&quot;./convert_coords&quot;:689,&quot;./defaults&quot;:690,&quot;./draw&quot;:691}],693:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;);e.exports={bgcolor:{valType:&quot;color&quot;,editType:&quot;legend&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;legend&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;legend&quot;},font:n({editType:&quot;legend&quot;}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;v&quot;,editType:&quot;legend&quot;},traceorder:{valType:&quot;flaglist&quot;,flags:[&quot;reversed&quot;,&quot;grouped&quot;],extras:[&quot;normal&quot;],editType:&quot;legend&quot;},tracegroupgap:{valType:&quot;number&quot;,min:0,dflt:10,editType:&quot;legend&quot;},itemsizing:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;constant&quot;],dflt:&quot;trace&quot;,editType:&quot;legend&quot;},itemwidth:{valType:&quot;number&quot;,min:30,dflt:30,editType:&quot;legend&quot;},itemclick:{valType:&quot;enumerated&quot;,values:[&quot;toggle&quot;,&quot;toggleothers&quot;,!1],dflt:&quot;toggle&quot;,editType:&quot;legend&quot;},itemdoubleclick:{valType:&quot;enumerated&quot;,values:[&quot;toggle&quot;,&quot;toggleothers&quot;,!1],dflt:&quot;toggleothers&quot;,editType:&quot;legend&quot;},x:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;legend&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;legend&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;legend&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;legend&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},valign:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;middle&quot;,editType:&quot;legend&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;legend&quot;},font:n({editType:&quot;legend&quot;}),side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;left&quot;,&quot;top left&quot;],editType:&quot;legend&quot;},editType:&quot;legend&quot;},editType:&quot;legend&quot;}},{&quot;../../plots/font_attributes&quot;:856,&quot;../color/attributes&quot;:642}],694:[function(t,e,r){&quot;use strict&quot;;e.exports={scrollBarWidth:6,scrollBarMinHeight:20,scrollBarColor:&quot;#808BA4&quot;,scrollBarMargin:4,scrollBarEnterAttrs:{rx:20,ry:3,width:0,height:0},titlePad:2,itemGap:5}},{}],695:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../../plots/layout_attributes&quot;),l=t(&quot;./helpers&quot;);e.exports=function(t,e,r){for(var c=t.legend||{},u=0,f=!1,h=&quot;normal&quot;,p=0;p&lt;r.length;p++){var d=r[p];d.visible&amp;&amp;((d.showlegend||d._dfltShowLegend&amp;&amp;!(d._module&amp;&amp;d._module.attributes&amp;&amp;d._module.attributes.showlegend&amp;&amp;!1===d._module.attributes.showlegend.dflt))&amp;&amp;(u++,d.showlegend&amp;&amp;(f=!0,(n.traceIs(d,&quot;pie-like&quot;)||!0===d._input.showlegend)&amp;&amp;u++)),(n.traceIs(d,&quot;bar&quot;)&amp;&amp;&quot;stack&quot;===e.barmode||-1!==[&quot;tonextx&quot;,&quot;tonexty&quot;].indexOf(d.fill))&amp;&amp;(h=l.isGrouped({traceorder:h})?&quot;grouped+reversed&quot;:&quot;reversed&quot;),void 0!==d.legendgroup&amp;&amp;&quot;&quot;!==d.legendgroup&amp;&amp;(h=l.isReversed({traceorder:h})?&quot;reversed+grouped&quot;:&quot;grouped&quot;))}var g=i.coerce(t,e,s,&quot;showlegend&quot;,f&amp;&amp;u&gt;1);if(!1!==g||c.uirevision){var m=a.newContainer(e,&quot;legend&quot;);if(_(&quot;uirevision&quot;,e.uirevision),!1!==g){_(&quot;bgcolor&quot;,e.paper_bgcolor),_(&quot;bordercolor&quot;),_(&quot;borderwidth&quot;),i.coerceFont(_,&quot;font&quot;,e.font);var v,y,x,b=_(&quot;orientation&quot;);&quot;h&quot;===b?(v=0,n.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(t.xaxis)?(y=1.1,x=&quot;bottom&quot;):(y=-.1,x=&quot;top&quot;)):(v=1.02,y=1,x=&quot;auto&quot;),_(&quot;traceorder&quot;,h),l.isGrouped(e.legend)&amp;&amp;_(&quot;tracegroupgap&quot;),_(&quot;itemsizing&quot;),_(&quot;itemwidth&quot;),_(&quot;itemclick&quot;),_(&quot;itemdoubleclick&quot;),_(&quot;x&quot;,v),_(&quot;xanchor&quot;),_(&quot;y&quot;,y),_(&quot;yanchor&quot;,x),_(&quot;valign&quot;),i.noneOrAll(c,m,[&quot;x&quot;,&quot;y&quot;]),_(&quot;title.text&quot;)&amp;&amp;(_(&quot;title.side&quot;,&quot;h&quot;===b?&quot;left&quot;:&quot;top&quot;),i.coerceFont(_,&quot;title.font&quot;,e.font))}}function _(t,e){return i.coerce(c,m,o,t,e)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/layout_attributes&quot;:882,&quot;../../registry&quot;:911,&quot;./attributes&quot;:693,&quot;./helpers&quot;:699}],696:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib/events&quot;),l=t(&quot;../dragelement&quot;),c=t(&quot;../drawing&quot;),u=t(&quot;../color&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;./handle_click&quot;),p=t(&quot;./constants&quot;),d=t(&quot;../../constants/alignment&quot;),g=d.LINE_SPACING,m=d.FROM_TL,v=d.FROM_BR,y=t(&quot;./get_legend_data&quot;),x=t(&quot;./style&quot;),b=t(&quot;./helpers&quot;);function _(t,e,r,n,i){var a=r.data()[0][0].trace,l={event:i,node:r.node(),curveNumber:a.index,expandedIndex:a._expandedIndex,data:t.data,layout:t.layout,frames:t._transitionData._frames,config:t._context,fullData:t._fullData,fullLayout:t._fullLayout};if(a._group&amp;&amp;(l.group=a._group),o.traceIs(a,&quot;pie-like&quot;)&amp;&amp;(l.label=r.datum()[0].label),!1!==s.triggerHandler(t,&quot;plotly_legendclick&quot;,l))if(1===n)e._clickTimeout=setTimeout((function(){h(r,t,n)}),t._context.doubleClickDelay);else if(2===n){e._clickTimeout&amp;&amp;clearTimeout(e._clickTimeout),t._legendMouseDownTime=0,!1!==s.triggerHandler(t,&quot;plotly_legenddoubleclick&quot;,l)&amp;&amp;h(r,t,n)}}function w(t,e,r){var n,a=t.data()[0][0],s=a.trace,l=o.traceIs(s,&quot;pie-like&quot;),u=s.index,h=r._main&amp;&amp;e._context.edits.legendText&amp;&amp;!l,d=r._maxNameLength;r.entries?n=a.text:(n=l?a.label:s.name,s._meta&amp;&amp;(n=i.templateString(n,s._meta)));var g=i.ensureSingle(t,&quot;text&quot;,&quot;legendtext&quot;);g.attr(&quot;text-anchor&quot;,&quot;start&quot;).call(c.font,r.font).text(h?T(n,d):n);var m=r.itemwidth+2*p.itemGap;f.positionText(g,m,0),h?g.call(f.makeEditable,{gd:e,text:n}).call(M,t,e,r).on(&quot;edit&quot;,(function(n){this.text(T(n,d)).call(M,t,e,r);var s=a.trace._fullInput||{},l={};if(o.hasTransform(s,&quot;groupby&quot;)){var c=o.getTransformIndices(s,&quot;groupby&quot;),f=c[c.length-1],h=i.keyedContainer(s,&quot;transforms[&quot;+f+&quot;].styles&quot;,&quot;target&quot;,&quot;value.name&quot;);h.set(a.trace._group,n),l=h.constructUpdate()}else l.name=n;return o.call(&quot;_guiRestyle&quot;,e,l,u)})):M(g,t,e,r)}function T(t,e){var r=Math.max(4,e);if(t&amp;&amp;t.trim().length&gt;=r/2)return t;for(var n=r-(t=t||&quot;&quot;).length;n&gt;0;n--)t+=&quot; &quot;;return t}function k(t,e){var r,a=e._context.doubleClickDelay,o=1,s=i.ensureSingle(t,&quot;rect&quot;,&quot;legendtoggle&quot;,(function(t){e._context.staticPlot||t.style(&quot;cursor&quot;,&quot;pointer&quot;).attr(&quot;pointer-events&quot;,&quot;all&quot;),t.call(u.fill,&quot;rgba(0,0,0,0)&quot;)}));e._context.staticPlot||(s.on(&quot;mousedown&quot;,(function(){(r=(new Date).getTime())-e._legendMouseDownTime&lt;a?o+=1:(o=1,e._legendMouseDownTime=r)})),s.on(&quot;mouseup&quot;,(function(){if(!e._dragged&amp;&amp;!e._editing){var r=e._fullLayout.legend;(new Date).getTime()-e._legendMouseDownTime&gt;a&amp;&amp;(o=Math.max(o-1,1)),_(e,r,t,o,n.event)}})))}function M(t,e,r,n){n._main||t.attr(&quot;data-notex&quot;,!0),f.convertToTspans(t,r,(function(){!function(t,e,r){var n=t.data()[0][0];if(r._main&amp;&amp;n&amp;&amp;!n.trace.showlegend)return void t.remove();var i=t.select(&quot;g[class*=math-group]&quot;),a=i.node();r||(r=e._fullLayout.legend);var o,s,l=r.borderwidth,u=(n?r:r.title).font.size*g;if(a){var h=c.bBox(a);o=h.height,s=h.width,n?c.setTranslate(i,0,.25*o):c.setTranslate(i,l,.75*o+l)}else{var d=t.select(n?&quot;.legendtext&quot;:&quot;.legendtitletext&quot;),m=f.lineCount(d),v=d.node();o=u*m,s=v?c.bBox(v).width:0;var y=u*((m-1)/2-.3);if(n){var x=r.itemwidth+2*p.itemGap;f.positionText(d,x,-y)}else f.positionText(d,p.titlePad+l,u+l)}n?(n.lineHeight=u,n.height=Math.max(o,16)+3,n.width=s):(r._titleWidth=s,r._titleHeight=o)}(e,r,n)}))}function A(t){return i.isRightAnchor(t)?&quot;right&quot;:i.isCenterAnchor(t)?&quot;center&quot;:&quot;left&quot;}function S(t){return i.isBottomAnchor(t)?&quot;bottom&quot;:i.isMiddleAnchor(t)?&quot;middle&quot;:&quot;top&quot;}e.exports=function(t,e){var r,s=t._fullLayout,f=&quot;legend&quot;+s._uid;if(e?(r=e.layer,f+=&quot;-hover&quot;):((e=s.legend||{})._main=!0,r=s._infolayer),r){var h;if(t._legendMouseDownTime||(t._legendMouseDownTime=0),e._main){if(!t.calcdata)return;h=s.showlegend&amp;&amp;y(t.calcdata,e)}else{if(!e.entries)return;h=y(e.entries,e)}var d=s.hiddenlabels||[];if(e._main&amp;&amp;(!s.showlegend||!h.length))return r.selectAll(&quot;.legend&quot;).remove(),s._topdefs.select(&quot;#&quot;+f).remove(),a.autoMargin(t,&quot;legend&quot;);var g=i.ensureSingle(r,&quot;g&quot;,&quot;legend&quot;,(function(t){e._main&amp;&amp;t.attr(&quot;pointer-events&quot;,&quot;all&quot;)})),T=i.ensureSingleById(s._topdefs,&quot;clipPath&quot;,f,(function(t){t.append(&quot;rect&quot;)})),E=i.ensureSingle(g,&quot;rect&quot;,&quot;bg&quot;,(function(t){t.attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)}));E.call(u.stroke,e.bordercolor).call(u.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;);var C=i.ensureSingle(g,&quot;g&quot;,&quot;scrollbox&quot;),L=e.title;if(e._titleWidth=0,e._titleHeight=0,L.text){var I=i.ensureSingle(C,&quot;text&quot;,&quot;legendtitletext&quot;);I.attr(&quot;text-anchor&quot;,&quot;start&quot;).call(c.font,L.font).text(L.text),M(I,C,t,e)}else C.selectAll(&quot;.legendtitletext&quot;).remove();var P=i.ensureSingle(g,&quot;rect&quot;,&quot;scrollbar&quot;,(function(t){t.attr(p.scrollBarEnterAttrs).call(u.fill,p.scrollBarColor)})),z=C.selectAll(&quot;g.groups&quot;).data(h);z.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;groups&quot;),z.exit().remove();var O=z.selectAll(&quot;g.traces&quot;).data(i.identity);O.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;traces&quot;),O.exit().remove(),O.style(&quot;opacity&quot;,(function(t){var e=t[0].trace;return o.traceIs(e,&quot;pie-like&quot;)?-1!==d.indexOf(t[0].label)?.5:1:&quot;legendonly&quot;===e.visible?.5:1})).each((function(){n.select(this).call(w,t,e)})).call(x,t,e).each((function(){e._main&amp;&amp;n.select(this).call(k,t)})),i.syncOrAsync([a.previousPromises,function(){return function(t,e,r,i){var a=t._fullLayout;i||(i=a.legend);var o=a._size,s=b.isVertical(i),l=b.isGrouped(i),u=i.borderwidth,f=2*u,h=p.itemGap,d=i.itemwidth+2*h,g=2*(u+h),m=S(i),v=i.y&lt;0||0===i.y&amp;&amp;&quot;top&quot;===m,y=i.y&gt;1||1===i.y&amp;&amp;&quot;bottom&quot;===m;i._maxHeight=Math.max(v||y?a.height/2:o.h,30);var x=0;i._width=0,i._height=0;var _=function(t){var e=0,r=0,n=t.title.side;n&amp;&amp;(-1!==n.indexOf(&quot;left&quot;)&amp;&amp;(e=t._titleWidth),-1!==n.indexOf(&quot;top&quot;)&amp;&amp;(r=t._titleHeight));return[e,r]}(i);if(s)r.each((function(t){var e=t[0].height;c.setTranslate(this,u+_[0],u+_[1]+i._height+e/2+h),i._height+=e,i._width=Math.max(i._width,t[0].width)})),x=d+i._width,i._width+=h+d+f,i._height+=g,l&amp;&amp;(e.each((function(t,e){c.setTranslate(this,0,e*i.tracegroupgap)})),i._height+=(i._lgroupsLength-1)*i.tracegroupgap);else{var w=A(i),T=i.x&lt;0||0===i.x&amp;&amp;&quot;right&quot;===w,k=i.x&gt;1||1===i.x&amp;&amp;&quot;left&quot;===w,M=y||v,E=a.width/2;i._maxWidth=Math.max(T?M&amp;&amp;&quot;left&quot;===w?o.l+o.w:E:k?M&amp;&amp;&quot;right&quot;===w?o.r+o.w:E:o.w,2*d);var C=0,L=0;r.each((function(t){var e=t[0].width+d;C=Math.max(C,e),L+=e})),x=null;var I=0;if(l){var P=0,z=0,O=0;e.each((function(){var t=0,e=0;n.select(this).selectAll(&quot;g.traces&quot;).each((function(r){var n=r[0].height;c.setTranslate(this,_[0],_[1]+u+h+n/2+e),e+=n,t=Math.max(t,d+r[0].width)})),P=Math.max(P,e);var r=t+h;r+u+z&gt;i._maxWidth&amp;&amp;(I=Math.max(I,z),z=0,O+=P+i.tracegroupgap,P=e),c.setTranslate(this,z,O),z+=r})),i._width=Math.max(I,z)+u,i._height=O+P+g}else{var D=r.size(),R=L+f+(D-1)*h&lt;i._maxWidth,F=0,B=0,N=0,j=0;r.each((function(t){var e=t[0].height,r=d+t[0].width,n=(R?r:C)+h;n+u+B-h&gt;=i._maxWidth&amp;&amp;(I=Math.max(I,j),B=0,N+=F,i._height+=F,F=0),c.setTranslate(this,_[0]+u+B,_[1]+u+N+e/2+h),j=B+r+h,B+=n,F=Math.max(F,e)})),R?(i._width=B+f,i._height=F+g):(i._width=Math.max(I,j)+f,i._height+=F+g)}}i._width=Math.ceil(Math.max(i._width+_[0],i._titleWidth+2*(u+p.titlePad))),i._height=Math.ceil(Math.max(i._height+_[1],i._titleHeight+2*(u+p.itemGap))),i._effHeight=Math.min(i._height,i._maxHeight);var U=t._context.edits,V=U.legendText||U.legendPosition;r.each((function(t){var e=n.select(this).select(&quot;.legendtoggle&quot;),r=t[0].height,i=V?d:x||d+t[0].width;s||(i+=h/2),c.setRect(e,0,-r/2,i,r)}))}(t,z,O,e)},function(){if(!e._main||!function(t){var e=t._fullLayout.legend,r=A(e),n=S(e);return a.autoMargin(t,&quot;legend&quot;,{x:e.x,y:e.y,l:e._width*m[r],r:e._width*v[r],b:e._effHeight*v[n],t:e._effHeight*m[n]})}(t)){var u,h,d,y,x=s._size,b=e.borderwidth,w=x.l+x.w*e.x-m[A(e)]*e._width,k=x.t+x.h*(1-e.y)-m[S(e)]*e._effHeight;if(e._main&amp;&amp;s.margin.autoexpand){var M=w,L=k;w=i.constrain(w,0,s.width-e._width),k=i.constrain(k,0,s.height-e._effHeight),w!==M&amp;&amp;i.log(&quot;Constrain legend.x to make legend fit inside graph&quot;),k!==L&amp;&amp;i.log(&quot;Constrain legend.y to make legend fit inside graph&quot;)}if(e._main&amp;&amp;c.setTranslate(g,w,k),P.on(&quot;.drag&quot;,null),g.on(&quot;wheel&quot;,null),!e._main||e._height&lt;=e._maxHeight||t._context.staticPlot){var I=e._effHeight;e._main||(I=e._height),E.attr({width:e._width-b,height:I-b,x:b/2,y:b/2}),c.setTranslate(C,0,0),T.select(&quot;rect&quot;).attr({width:e._width-2*b,height:I-2*b,x:b,y:b}),c.setClipUrl(C,f,t),c.setRect(P,0,0,0,0),delete e._scrollY}else{var z,O,D,R=Math.max(p.scrollBarMinHeight,e._effHeight*e._effHeight/e._height),F=e._effHeight-R-2*p.scrollBarMargin,B=e._height-e._effHeight,N=F/B,j=Math.min(e._scrollY||0,B);E.attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-b,x:b/2,y:b/2}),T.select(&quot;rect&quot;).attr({width:e._width-2*b+p.scrollBarWidth+p.scrollBarMargin,height:e._effHeight-2*b,x:b,y:b+j}),c.setClipUrl(C,f,t),q(j,R,N),g.on(&quot;wheel&quot;,(function(){q(j=i.constrain(e._scrollY+n.event.deltaY/F*B,0,B),R,N),0!==j&amp;&amp;j!==B&amp;&amp;n.event.preventDefault()}));var U=n.behavior.drag().on(&quot;dragstart&quot;,(function(){var t=n.event.sourceEvent;z=&quot;touchstart&quot;===t.type?t.changedTouches[0].clientY:t.clientY,D=j})).on(&quot;drag&quot;,(function(){var t=n.event.sourceEvent;2===t.buttons||t.ctrlKey||(O=&quot;touchmove&quot;===t.type?t.changedTouches[0].clientY:t.clientY,q(j=function(t,e,r){var n=(r-e)/N+t;return i.constrain(n,0,B)}(D,z,O),R,N))}));P.call(U);var V=n.behavior.drag().on(&quot;dragstart&quot;,(function(){var t=n.event.sourceEvent;&quot;touchstart&quot;===t.type&amp;&amp;(z=t.changedTouches[0].clientY,D=j)})).on(&quot;drag&quot;,(function(){var t=n.event.sourceEvent;&quot;touchmove&quot;===t.type&amp;&amp;(O=t.changedTouches[0].clientY,q(j=function(t,e,r){var n=(e-r)/N+t;return i.constrain(n,0,B)}(D,z,O),R,N))}));C.call(V)}if(t._context.edits.legendPosition)g.classed(&quot;cursor-move&quot;,!0),l.init({element:g.node(),gd:t,prepFn:function(){var t=c.getTranslate(g);d=t.x,y=t.y},moveFn:function(t,r){var n=d+t,i=y+r;c.setTranslate(g,n,i),u=l.align(n,0,x.l,x.l+x.w,e.xanchor),h=l.align(i,0,x.t+x.h,x.t,e.yanchor)},doneFn:function(){void 0!==u&amp;&amp;void 0!==h&amp;&amp;o.call(&quot;_guiRelayout&quot;,t,{&quot;legend.x&quot;:u,&quot;legend.y&quot;:h})},clickFn:function(e,n){var i=r.selectAll(&quot;g.traces&quot;).filter((function(){var t=this.getBoundingClientRect();return n.clientX&gt;=t.left&amp;&amp;n.clientX&lt;=t.right&amp;&amp;n.clientY&gt;=t.top&amp;&amp;n.clientY&lt;=t.bottom}));i.size()&gt;0&amp;&amp;_(t,g,i,e,n)}})}function q(r,n,i){e._scrollY=t._fullLayout.legend._scrollY=r,c.setTranslate(C,0,-r),c.setRect(P,e._width,p.scrollBarMargin+r*i,p.scrollBarWidth,n),T.select(&quot;rect&quot;).attr(&quot;y&quot;,b+r)}}],t)}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/events&quot;:767,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;./constants&quot;:694,&quot;./get_legend_data&quot;:697,&quot;./handle_click&quot;:698,&quot;./helpers&quot;:699,&quot;./style&quot;:701,d3:169}],697:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./helpers&quot;);e.exports=function(t,e){var r,a,o={},s=[],l=!1,c={},u=0,f=0,h=e._main;function p(t,r){if(&quot;&quot;!==t&amp;&amp;i.isGrouped(e))-1===s.indexOf(t)?(s.push(t),l=!0,o[t]=[[r]]):o[t].push([r]);else{var n=&quot;~~i&quot;+u;s.push(n),o[n]=[[r]],u++}}for(r=0;r&lt;t.length;r++){var d=t[r],g=d[0],m=g.trace,v=m.legendgroup;if(!h||m.visible&amp;&amp;m.showlegend)if(n.traceIs(m,&quot;pie-like&quot;))for(c[v]||(c[v]={}),a=0;a&lt;d.length;a++){var y=d[a].label;c[v][y]||(p(v,{label:y,color:d[a].color,i:d[a].i,trace:m,pts:d[a].pts}),c[v][y]=!0,f=Math.max(f,(y||&quot;&quot;).length))}else p(v,g),f=Math.max(f,(m.name||&quot;&quot;).length)}if(!s.length)return[];var x,b,_=s.length;if(l&amp;&amp;i.isGrouped(e))for(b=new Array(_),r=0;r&lt;_;r++)x=o[s[r]],b[r]=i.isReversed(e)?x.reverse():x;else{for(b=[new Array(_)],r=0;r&lt;_;r++)x=o[s[r]][0],b[0][i.isReversed(e)?_-r-1:r]=x;_=1}return e._lgroupsLength=_,e._maxNameLength=f,b}},{&quot;../../registry&quot;:911,&quot;./helpers&quot;:699}],698:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=!0;e.exports=function(t,e,r){var o=e._fullLayout;if(!e._dragged&amp;&amp;!e._editing){var s,l=o.legend.itemclick,c=o.legend.itemdoubleclick;if(1===r&amp;&amp;&quot;toggle&quot;===l&amp;&amp;&quot;toggleothers&quot;===c&amp;&amp;a&amp;&amp;e.data&amp;&amp;e._context.showTips?(n.notifier(n._(e,&quot;Double-click on legend to isolate one trace&quot;),&quot;long&quot;),a=!1):a=!1,1===r?s=l:2===r&amp;&amp;(s=c),s){var u,f,h,p,d,g=o.hiddenlabels?o.hiddenlabels.slice():[],m=t.data()[0][0],v=e._fullData,y=m.trace,x=y.legendgroup,b={},_=[],w=[],T=[];if(i.traceIs(y,&quot;pie-like&quot;)){var k=m.label,M=g.indexOf(k);&quot;toggle&quot;===s?-1===M?g.push(k):g.splice(M,1):&quot;toggleothers&quot;===s&amp;&amp;(g=[],e.calcdata[0].forEach((function(t){k!==t.label&amp;&amp;g.push(t.label)})),e._fullLayout.hiddenlabels&amp;&amp;e._fullLayout.hiddenlabels.length===g.length&amp;&amp;-1===M&amp;&amp;(g=[])),i.call(&quot;_guiRelayout&quot;,e,&quot;hiddenlabels&quot;,g)}else{var A,S=x&amp;&amp;x.length,E=[];if(S)for(u=0;u&lt;v.length;u++)(A=v[u]).visible&amp;&amp;A.legendgroup===x&amp;&amp;E.push(u);if(&quot;toggle&quot;===s){var C;switch(y.visible){case!0:C=&quot;legendonly&quot;;break;case!1:C=!1;break;case&quot;legendonly&quot;:C=!0}if(S)for(u=0;u&lt;v.length;u++)!1!==v[u].visible&amp;&amp;v[u].legendgroup===x&amp;&amp;B(v[u],C);else B(y,C)}else if(&quot;toggleothers&quot;===s){var L,I,P,z,O=!0;for(u=0;u&lt;v.length;u++)if(L=v[u]===y,P=!0!==v[u].showlegend,!(L||P||(I=S&amp;&amp;v[u].legendgroup===x)||!0!==v[u].visible||i.traceIs(v[u],&quot;notLegendIsolatable&quot;))){O=!1;break}for(u=0;u&lt;v.length;u++)if(!1!==v[u].visible&amp;&amp;!i.traceIs(v[u],&quot;notLegendIsolatable&quot;))switch(y.visible){case&quot;legendonly&quot;:B(v[u],!0);break;case!0:z=!!O||&quot;legendonly&quot;,L=v[u]===y,P=!0!==v[u].showlegend&amp;&amp;!v[u].legendgroup,I=L||S&amp;&amp;v[u].legendgroup===x,B(v[u],!(!I&amp;&amp;!P)||z)}}for(u=0;u&lt;w.length;u++)if(h=w[u]){var D=h.constructUpdate(),R=Object.keys(D);for(f=0;f&lt;R.length;f++)p=R[f],(b[p]=b[p]||[])[T[u]]=D[p]}for(d=Object.keys(b),u=0;u&lt;d.length;u++)for(p=d[u],f=0;f&lt;_.length;f++)b[p].hasOwnProperty(f)||(b[p][f]=void 0);i.call(&quot;_guiRestyle&quot;,e,b,_)}}}function F(t,e,r){var n=_.indexOf(t),i=b[e];return i||(i=b[e]=[]),-1===_.indexOf(t)&amp;&amp;(_.push(t),n=_.length-1),i[n]=r,n}function B(t,e){var r=t._fullInput;if(i.hasTransform(r,&quot;groupby&quot;)){var a=w[r.index];if(!a){var o=i.getTransformIndices(r,&quot;groupby&quot;),s=o[o.length-1];a=n.keyedContainer(r,&quot;transforms[&quot;+s+&quot;].styles&quot;,&quot;target&quot;,&quot;value.visible&quot;),w[r.index]=a}var l=a.get(t._group);void 0===l&amp;&amp;(l=!0),!1!==l&amp;&amp;a.set(t._group,e),T[r.index]=F(r.index,&quot;visible&quot;,!1!==r.visible)}else{var c=!1!==r.visible&amp;&amp;e;F(r.index,&quot;visible&quot;,c)}}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],699:[function(t,e,r){&quot;use strict&quot;;r.isGrouped=function(t){return-1!==(t.traceorder||&quot;&quot;).indexOf(&quot;grouped&quot;)},r.isVertical=function(t){return&quot;h&quot;!==t.orientation},r.isReversed=function(t){return-1!==(t.traceorder||&quot;&quot;).indexOf(&quot;reversed&quot;)}},{}],700:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;legend&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;),style:t(&quot;./style&quot;)}},{&quot;./attributes&quot;:693,&quot;./defaults&quot;:695,&quot;./draw&quot;:696,&quot;./style&quot;:701}],701:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.strTranslate,s=t(&quot;../drawing&quot;),l=t(&quot;../color&quot;),c=t(&quot;../colorscale/helpers&quot;).extractOpts,u=t(&quot;../../traces/scatter/subtypes&quot;),f=t(&quot;../../traces/pie/style_one&quot;),h=t(&quot;../../traces/pie/helpers&quot;).castOption,p=t(&quot;./constants&quot;);function d(t,e){return(e?&quot;radial&quot;:&quot;horizontal&quot;)+(t?&quot;&quot;:&quot;reversed&quot;)}e.exports=function(t,e,r){var g=e._fullLayout;r||(r=g.legend);var m=&quot;constant&quot;===r.itemsizing,v=r.itemwidth,y=(v+2*p.itemGap)/2,x=o(y,0),b=function(t,e,r,n){var i;if(t+1)i=t;else{if(!(e&amp;&amp;e.width&gt;0))return 0;i=e.width}return m?n:Math.min(i,r)};function _(t,e,r){var a=t[0].trace,o=a.marker||{},s=o.line||{},c=r?a.visible&amp;&amp;a.type===r:i.traceIs(a,&quot;bar&quot;),u=n.select(e).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend&quot;+r).data(c?[t]:[]);u.enter().append(&quot;path&quot;).classed(&quot;legend&quot;+r,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,x),u.exit().remove(),u.each((function(t){var e=n.select(this),r=t[0],i=b(r.mlw,o.line,5,2);e.style(&quot;stroke-width&quot;,i+&quot;px&quot;).call(l.fill,r.mc||o.color),i&amp;&amp;l.stroke(e,r.mlc||s.color)}))}function w(t,e,r){var o=t[0],s=o.trace,l=r?s.visible&amp;&amp;s.type===r:i.traceIs(s,r),c=n.select(e).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend&quot;+r).data(l?[t]:[]);if(c.enter().append(&quot;path&quot;).classed(&quot;legend&quot;+r,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,x),c.exit().remove(),c.size()){var u=(s.marker||{}).line,p=b(h(u.width,o.pts),u,5,2),d=a.minExtend(s,{marker:{line:{width:p}}});d.marker.line.color=u.color;var g=a.minExtend(o,{trace:d});f(c,g,d)}}t.each((function(t){var e=n.select(this),i=a.ensureSingle(e,&quot;g&quot;,&quot;layers&quot;);i.style(&quot;opacity&quot;,t[0].trace.opacity);var s=r.valign,l=t[0].lineHeight,c=t[0].height;if(&quot;middle&quot;!==s&amp;&amp;l&amp;&amp;c){var u={top:1,bottom:-1}[s]*(.5*(l-c+3));i.attr(&quot;transform&quot;,o(0,u))}else i.attr(&quot;transform&quot;,null);i.selectAll(&quot;g.legendfill&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendfill&quot;,!0),i.selectAll(&quot;g.legendlines&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendlines&quot;,!0);var f=i.selectAll(&quot;g.legendsymbols&quot;).data([t]);f.enter().append(&quot;g&quot;).classed(&quot;legendsymbols&quot;,!0),f.selectAll(&quot;g.legendpoints&quot;).data([t]).enter().append(&quot;g&quot;).classed(&quot;legendpoints&quot;,!0)})).each((function(t){var r,i=t[0].trace,o=[];if(i.visible)switch(i.type){case&quot;histogram2d&quot;:case&quot;heatmap&quot;:o=[[&quot;M-15,-2V4H15V-2Z&quot;]],r=!0;break;case&quot;choropleth&quot;:case&quot;choroplethmapbox&quot;:o=[[&quot;M-6,-6V6H6V-6Z&quot;]],r=!0;break;case&quot;densitymapbox&quot;:o=[[&quot;M-6,0 a6,6 0 1,0 12,0 a 6,6 0 1,0 -12,0&quot;]],r=&quot;radial&quot;;break;case&quot;cone&quot;:o=[[&quot;M-6,2 A2,2 0 0,0 -6,6 V6L6,4Z&quot;],[&quot;M-6,-6 A2,2 0 0,0 -6,-2 L6,-4Z&quot;],[&quot;M-6,-2 A2,2 0 0,0 -6,2 L6,0Z&quot;]],r=!1;break;case&quot;streamtube&quot;:o=[[&quot;M-6,2 A2,2 0 0,0 -6,6 H6 A2,2 0 0,1 6,2 Z&quot;],[&quot;M-6,-6 A2,2 0 0,0 -6,-2 H6 A2,2 0 0,1 6,-6 Z&quot;],[&quot;M-6,-2 A2,2 0 0,0 -6,2 H6 A2,2 0 0,1 6,-2 Z&quot;]],r=!1;break;case&quot;surface&quot;:o=[[&quot;M-6,-6 A2,3 0 0,0 -6,0 H6 A2,3 0 0,1 6,-6 Z&quot;],[&quot;M-6,1 A2,3 0 0,1 -6,6 H6 A2,3 0 0,0 6,0 Z&quot;]],r=!0;break;case&quot;mesh3d&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6H6L0,6Z&quot;]],r=!1;break;case&quot;volume&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6H6L0,6Z&quot;]],r=!0;break;case&quot;isosurface&quot;:o=[[&quot;M-6,6H0L-6,-6Z&quot;],[&quot;M6,6H0L6,-6Z&quot;],[&quot;M-6,-6 A12,24 0 0,0 6,-6 L0,6Z&quot;]],r=!1}var u=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legend3dandfriends&quot;).data(o);u.enter().append(&quot;path&quot;).classed(&quot;legend3dandfriends&quot;,!0).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),u.exit().remove(),u.each((function(t,o){var u,f=n.select(this),h=c(i),p=h.colorscale,g=h.reversescale;if(p){if(!r){var m=p.length;u=0===o?p[g?m-1:0][1]:1===o?p[g?0:m-1][1]:p[Math.floor((m-1)/2)][1]}}else{var v=i.vertexcolor||i.facecolor||i.color;u=a.isArrayOrTypedArray(v)?v[o]||v[0]:v}f.attr(&quot;d&quot;,t[0]),u?f.call(l.fill,u):f.call((function(t){if(t.size()){var n=&quot;legendfill-&quot;+i.uid;s.gradient(t,e,n,d(g,&quot;radial&quot;===r),p,&quot;fill&quot;)}}))}))})).each((function(t){var e=t[0].trace,r=&quot;waterfall&quot;===e.type;if(t[0]._distinct&amp;&amp;r){var i=t[0].trace[t[0].dir].marker;return t[0].mc=i.color,t[0].mlw=i.line.width,t[0].mlc=i.line.color,_(t,this,&quot;waterfall&quot;)}var a=[];e.visible&amp;&amp;r&amp;&amp;(a=t[0].hasTotals?[[&quot;increasing&quot;,&quot;M-6,-6V6H0Z&quot;],[&quot;totals&quot;,&quot;M6,6H0L-6,-6H-0Z&quot;],[&quot;decreasing&quot;,&quot;M6,6V-6H0Z&quot;]]:[[&quot;increasing&quot;,&quot;M-6,-6V6H6Z&quot;],[&quot;decreasing&quot;,&quot;M6,6V-6H-6Z&quot;]]);var o=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendwaterfall&quot;).data(a);o.enter().append(&quot;path&quot;).classed(&quot;legendwaterfall&quot;,!0).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),o.exit().remove(),o.each((function(t){var r=n.select(this),i=e[t[0]].marker,a=b(void 0,i.line,5,2);r.attr(&quot;d&quot;,t[1]).style(&quot;stroke-width&quot;,a+&quot;px&quot;).call(l.fill,i.color),a&amp;&amp;r.call(l.stroke,i.line.color)}))})).each((function(t){_(t,this,&quot;funnel&quot;)})).each((function(t){_(t,this)})).each((function(t){var r=t[0].trace,o=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendbox&quot;).data(r.visible&amp;&amp;i.traceIs(r,&quot;box-violin&quot;)?[t]:[]);o.enter().append(&quot;path&quot;).classed(&quot;legendbox&quot;,!0).attr(&quot;d&quot;,&quot;M6,6H-6V-6H6Z&quot;).attr(&quot;transform&quot;,x),o.exit().remove(),o.each((function(){var t=n.select(this);if(&quot;all&quot;!==r.boxpoints&amp;&amp;&quot;all&quot;!==r.points||0!==l.opacity(r.fillcolor)||0!==l.opacity((r.line||{}).color)){var i=b(void 0,r.line,5,2);t.style(&quot;stroke-width&quot;,i+&quot;px&quot;).call(l.fill,r.fillcolor),i&amp;&amp;l.stroke(t,r.line.color)}else{var c=a.minExtend(r,{marker:{size:m?12:a.constrain(r.marker.size,2,16),sizeref:1,sizemin:1,sizemode:&quot;diameter&quot;}});o.call(s.pointStyle,c,e)}}))})).each((function(t){w(t,this,&quot;funnelarea&quot;)})).each((function(t){w(t,this,&quot;pie&quot;)})).each((function(t){var r,i,o=t[0],l=o.trace,f=l.visible&amp;&amp;l.fill&amp;&amp;&quot;none&quot;!==l.fill,h=u.hasLines(l),p=l.contours,g=!1,m=!1,y=c(l),x=y.colorscale,_=y.reversescale;if(p){var w=p.coloring;&quot;lines&quot;===w?g=!0:h=&quot;none&quot;===w||&quot;heatmap&quot;===w||p.showlines,&quot;constraint&quot;===p.type?f=&quot;=&quot;!==p._operation:&quot;fill&quot;!==w&amp;&amp;&quot;heatmap&quot;!==w||(m=!0)}var T=u.hasMarkers(l)||u.hasText(l),k=f||m,M=h||g,A=T||!k?&quot;M5,0&quot;:M?&quot;M5,-2&quot;:&quot;M5,-3&quot;,S=n.select(this),E=S.select(&quot;.legendfill&quot;).selectAll(&quot;path&quot;).data(f||m?[t]:[]);if(E.enter().append(&quot;path&quot;).classed(&quot;js-fill&quot;,!0),E.exit().remove(),E.attr(&quot;d&quot;,A+&quot;h&quot;+v+&quot;v6h-&quot;+v+&quot;z&quot;).call(f?s.fillGroupStyle:function(t){if(t.size()){var r=&quot;legendfill-&quot;+l.uid;s.gradient(t,e,r,d(_),x,&quot;fill&quot;)}}),h||g){var C=b(void 0,l.line,10,5);i=a.minExtend(l,{line:{width:C}}),r=[a.minExtend(o,{trace:i})]}var L=S.select(&quot;.legendlines&quot;).selectAll(&quot;path&quot;).data(h||g?[r]:[]);L.enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0),L.exit().remove(),L.attr(&quot;d&quot;,A+(g?&quot;l&quot;+v+&quot;,0.0001&quot;:&quot;h&quot;+v)).call(h?s.lineGroupStyle:function(t){if(t.size()){var r=&quot;legendline-&quot;+l.uid;s.lineGroupStyle(t),s.gradient(t,e,r,d(_),x,&quot;stroke&quot;)}})})).each((function(t){var r,i,o=t[0],l=o.trace,c=u.hasMarkers(l),f=u.hasText(l),h=u.hasLines(l);function p(t,e,r,n){var i=a.nestedProperty(l,t).get(),o=a.isArrayOrTypedArray(i)&amp;&amp;e?e(i):i;if(m&amp;&amp;o&amp;&amp;void 0!==n&amp;&amp;(o=n),r){if(o&lt;r[0])return r[0];if(o&gt;r[1])return r[1]}return o}function d(t){return o._distinct&amp;&amp;o.index&amp;&amp;t[o.index]?t[o.index]:t[0]}if(c||f||h){var g={},v={};if(c){g.mc=p(&quot;marker.color&quot;,d),g.mx=p(&quot;marker.symbol&quot;,d),g.mo=p(&quot;marker.opacity&quot;,a.mean,[.2,1]),g.mlc=p(&quot;marker.line.color&quot;,d),g.mlw=p(&quot;marker.line.width&quot;,a.mean,[0,5],2),v.marker={sizeref:1,sizemin:1,sizemode:&quot;diameter&quot;};var y=p(&quot;marker.size&quot;,a.mean,[2,16],12);g.ms=y,v.marker.size=y}h&amp;&amp;(v.line={width:p(&quot;line.width&quot;,d,[0,10],5)}),f&amp;&amp;(g.tx=&quot;Aa&quot;,g.tp=p(&quot;textposition&quot;,d),g.ts=10,g.tc=p(&quot;textfont.color&quot;,d),g.tf=p(&quot;textfont.family&quot;,d)),r=[a.minExtend(o,g)],(i=a.minExtend(l,v)).selectedpoints=null,i.texttemplate=null}var b=n.select(this).select(&quot;g.legendpoints&quot;),_=b.selectAll(&quot;path.scatterpts&quot;).data(c?r:[]);_.enter().insert(&quot;path&quot;,&quot;:first-child&quot;).classed(&quot;scatterpts&quot;,!0).attr(&quot;transform&quot;,x),_.exit().remove(),_.call(s.pointStyle,i,e),c&amp;&amp;(r[0].mrc=3);var w=b.selectAll(&quot;g.pointtext&quot;).data(f?r:[]);w.enter().append(&quot;g&quot;).classed(&quot;pointtext&quot;,!0).append(&quot;text&quot;).attr(&quot;transform&quot;,x),w.exit().remove(),w.selectAll(&quot;text&quot;).call(s.textPointStyle,i,e)})).each((function(t){var e=t[0].trace,r=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendcandle&quot;).data(e.visible&amp;&amp;&quot;candlestick&quot;===e.type?[t,t]:[]);r.enter().append(&quot;path&quot;).classed(&quot;legendcandle&quot;,!0).attr(&quot;d&quot;,(function(t,e){return e?&quot;M-15,0H-8M-8,6V-6H8Z&quot;:&quot;M15,0H8M8,-6V6H-8Z&quot;})).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?&quot;increasing&quot;:&quot;decreasing&quot;],o=b(void 0,a.line,5,2);i.style(&quot;stroke-width&quot;,o+&quot;px&quot;).call(l.fill,a.fillcolor),o&amp;&amp;l.stroke(i,a.line.color)}))})).each((function(t){var e=t[0].trace,r=n.select(this).select(&quot;g.legendpoints&quot;).selectAll(&quot;path.legendohlc&quot;).data(e.visible&amp;&amp;&quot;ohlc&quot;===e.type?[t,t]:[]);r.enter().append(&quot;path&quot;).classed(&quot;legendohlc&quot;,!0).attr(&quot;d&quot;,(function(t,e){return e?&quot;M-15,0H0M-8,-6V0&quot;:&quot;M15,0H0M8,6V0&quot;})).attr(&quot;transform&quot;,x).style(&quot;stroke-miterlimit&quot;,1),r.exit().remove(),r.each((function(t,r){var i=n.select(this),a=e[r?&quot;increasing&quot;:&quot;decreasing&quot;],o=b(void 0,a.line,5,2);i.style(&quot;fill&quot;,&quot;none&quot;).call(s.dashLine,a.line.dash,o),o&amp;&amp;l.stroke(i,a.line.color)}))}))}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../../traces/pie/helpers&quot;:1166,&quot;../../traces/pie/style_one&quot;:1172,&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../color&quot;:643,&quot;../colorscale/helpers&quot;:654,&quot;../drawing&quot;:665,&quot;./constants&quot;:694,d3:169}],702:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../fonts/ploticon&quot;),s=t(&quot;../shapes/draw&quot;).eraseActiveShape,l=t(&quot;../../lib&quot;),c=l._,u=e.exports={};function f(t,e){var r,i,o=e.currentTarget,s=o.getAttribute(&quot;data-attr&quot;),l=o.getAttribute(&quot;data-val&quot;)||!0,c=t._fullLayout,u={},f=a.list(t,null,!0),h=c._cartesianSpikesEnabled;if(&quot;zoom&quot;===s){var p,d=&quot;in&quot;===l?.5:2,g=(1+d)/2,m=(1-d)/2;for(i=0;i&lt;f.length;i++)if(!(r=f[i]).fixedrange)if(p=r._name,&quot;auto&quot;===l)u[p+&quot;.autorange&quot;]=!0;else if(&quot;reset&quot;===l){if(void 0===r._rangeInitial)u[p+&quot;.autorange&quot;]=!0;else{var v=r._rangeInitial.slice();u[p+&quot;.range[0]&quot;]=v[0],u[p+&quot;.range[1]&quot;]=v[1]}void 0!==r._showSpikeInitial&amp;&amp;(u[p+&quot;.showspikes&quot;]=r._showSpikeInitial,&quot;on&quot;!==h||r._showSpikeInitial||(h=&quot;off&quot;))}else{var y=[r.r2l(r.range[0]),r.r2l(r.range[1])],x=[g*y[0]+m*y[1],g*y[1]+m*y[0]];u[p+&quot;.range[0]&quot;]=r.l2r(x[0]),u[p+&quot;.range[1]&quot;]=r.l2r(x[1])}}else&quot;hovermode&quot;!==s||&quot;x&quot;!==l&amp;&amp;&quot;y&quot;!==l||(l=c._isHoriz?&quot;y&quot;:&quot;x&quot;,o.setAttribute(&quot;data-val&quot;,l)),u[s]=l;c._cartesianSpikesEnabled=h,n.call(&quot;_guiRelayout&quot;,t,u)}function h(t,e){for(var r=e.currentTarget,i=r.getAttribute(&quot;data-attr&quot;),a=r.getAttribute(&quot;data-val&quot;)||!0,o=t._fullLayout._subplots.gl3d||[],s={},l=i.split(&quot;.&quot;),c=0;c&lt;o.length;c++)s[o[c]+&quot;.&quot;+l[1]]=a;var u=&quot;pan&quot;===a?a:&quot;zoom&quot;;s.dragmode=u,n.call(&quot;_guiRelayout&quot;,t,s)}function p(t,e){for(var r=e.currentTarget.getAttribute(&quot;data-attr&quot;),i=&quot;resetLastSave&quot;===r,a=&quot;resetDefault&quot;===r,o=t._fullLayout,s=o._subplots.gl3d||[],l={},c=0;c&lt;s.length;c++){var u,f=s[c],h=f+&quot;.camera&quot;,p=f+&quot;.aspectratio&quot;,d=f+&quot;.aspectmode&quot;,g=o[f]._scene;i?(l[h+&quot;.up&quot;]=g.viewInitial.up,l[h+&quot;.eye&quot;]=g.viewInitial.eye,l[h+&quot;.center&quot;]=g.viewInitial.center,u=!0):a&amp;&amp;(l[h+&quot;.up&quot;]=null,l[h+&quot;.eye&quot;]=null,l[h+&quot;.center&quot;]=null,u=!0),u&amp;&amp;(l[p+&quot;.x&quot;]=g.viewInitial.aspectratio.x,l[p+&quot;.y&quot;]=g.viewInitial.aspectratio.y,l[p+&quot;.z&quot;]=g.viewInitial.aspectratio.z,l[d]=g.viewInitial.aspectmode)}n.call(&quot;_guiRelayout&quot;,t,l)}function d(t,e){var r=e.currentTarget,n=r._previousVal,i=t._fullLayout,a=i._subplots.gl3d||[],o=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;],s={},l={};if(n)l=n,r._previousVal=null;else{for(var c=0;c&lt;a.length;c++){var u=a[c],f=i[u],h=u+&quot;.hovermode&quot;;s[h]=f.hovermode,l[h]=!1;for(var p=0;p&lt;3;p++){var d=o[p],g=u+&quot;.&quot;+d+&quot;.showspikes&quot;;l[g]=!1,s[g]=f[d].showspikes}}r._previousVal=s}return l}function g(t,e){for(var r=e.currentTarget,i=r.getAttribute(&quot;data-attr&quot;),a=r.getAttribute(&quot;data-val&quot;)||!0,o=t._fullLayout,s=o._subplots.geo||[],l=0;l&lt;s.length;l++){var c=s[l],u=o[c];if(&quot;zoom&quot;===i){var f=u.projection.scale,h=&quot;in&quot;===a?2*f:.5*f;n.call(&quot;_guiRelayout&quot;,t,c+&quot;.projection.scale&quot;,h)}}&quot;reset&quot;===i&amp;&amp;x(t,&quot;geo&quot;)}function m(t){var e=t._fullLayout;return!e.hovermode&amp;&amp;(e._has(&quot;cartesian&quot;)?e._isHoriz?&quot;y&quot;:&quot;x&quot;:&quot;closest&quot;)}function v(t){var e=m(t);n.call(&quot;_guiRelayout&quot;,t,&quot;hovermode&quot;,e)}function y(t,e){for(var r=e.currentTarget.getAttribute(&quot;data-val&quot;),i=t._fullLayout,a=i._subplots.mapbox||[],o={},s=0;s&lt;a.length;s++){var l=a[s],c=i[l].zoom,u=&quot;in&quot;===r?1.05*c:c/1.05;o[l+&quot;.zoom&quot;]=u}n.call(&quot;_guiRelayout&quot;,t,o)}function x(t,e){for(var r=t._fullLayout,i=r._subplots[e]||[],a={},o=0;o&lt;i.length;o++)for(var s=i[o],l=r[s]._subplot.viewInitial,c=Object.keys(l),u=0;u&lt;c.length;u++){var f=c[u];a[s+&quot;.&quot;+f]=l[f]}n.call(&quot;_guiRelayout&quot;,t,a)}u.toImage={name:&quot;toImage&quot;,title:function(t){var e=(t._context.toImageButtonOptions||{}).format||&quot;png&quot;;return c(t,&quot;png&quot;===e?&quot;Download plot as a png&quot;:&quot;Download plot&quot;)},icon:o.camera,click:function(t){var e=t._context.toImageButtonOptions,r={format:e.format||&quot;png&quot;};l.notifier(c(t,&quot;Taking snapshot - this may take a few seconds&quot;),&quot;long&quot;),&quot;svg&quot;!==r.format&amp;&amp;l.isIE()&amp;&amp;(l.notifier(c(t,&quot;IE only supports svg.  Changing format to svg.&quot;),&quot;long&quot;),r.format=&quot;svg&quot;),[&quot;filename&quot;,&quot;width&quot;,&quot;height&quot;,&quot;scale&quot;].forEach((function(t){t in e&amp;&amp;(r[t]=e[t])})),n.call(&quot;downloadImage&quot;,t,r).then((function(e){l.notifier(c(t,&quot;Snapshot succeeded&quot;)+&quot; - &quot;+e,&quot;long&quot;)})).catch((function(){l.notifier(c(t,&quot;Sorry, there was a problem downloading your snapshot!&quot;),&quot;long&quot;)}))}},u.sendDataToCloud={name:&quot;sendDataToCloud&quot;,title:function(t){return c(t,&quot;Edit in Chart Studio&quot;)},icon:o.disk,click:function(t){i.sendDataToCloud(t)}},u.editInChartStudio={name:&quot;editInChartStudio&quot;,title:function(t){return c(t,&quot;Edit in Chart Studio&quot;)},icon:o.pencil,click:function(t){i.sendDataToCloud(t)}},u.zoom2d={name:&quot;zoom2d&quot;,title:function(t){return c(t,&quot;Zoom&quot;)},attr:&quot;dragmode&quot;,val:&quot;zoom&quot;,icon:o.zoombox,click:f},u.pan2d={name:&quot;pan2d&quot;,title:function(t){return c(t,&quot;Pan&quot;)},attr:&quot;dragmode&quot;,val:&quot;pan&quot;,icon:o.pan,click:f},u.select2d={name:&quot;select2d&quot;,title:function(t){return c(t,&quot;Box Select&quot;)},attr:&quot;dragmode&quot;,val:&quot;select&quot;,icon:o.selectbox,click:f},u.lasso2d={name:&quot;lasso2d&quot;,title:function(t){return c(t,&quot;Lasso Select&quot;)},attr:&quot;dragmode&quot;,val:&quot;lasso&quot;,icon:o.lasso,click:f},u.drawclosedpath={name:&quot;drawclosedpath&quot;,title:function(t){return c(t,&quot;Draw closed freeform&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawclosedpath&quot;,icon:o.drawclosedpath,click:f},u.drawopenpath={name:&quot;drawopenpath&quot;,title:function(t){return c(t,&quot;Draw open freeform&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawopenpath&quot;,icon:o.drawopenpath,click:f},u.drawline={name:&quot;drawline&quot;,title:function(t){return c(t,&quot;Draw line&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawline&quot;,icon:o.drawline,click:f},u.drawrect={name:&quot;drawrect&quot;,title:function(t){return c(t,&quot;Draw rectangle&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawrect&quot;,icon:o.drawrect,click:f},u.drawcircle={name:&quot;drawcircle&quot;,title:function(t){return c(t,&quot;Draw circle&quot;)},attr:&quot;dragmode&quot;,val:&quot;drawcircle&quot;,icon:o.drawcircle,click:f},u.eraseshape={name:&quot;eraseshape&quot;,title:function(t){return c(t,&quot;Erase active shape&quot;)},icon:o.eraseshape,click:s},u.zoomIn2d={name:&quot;zoomIn2d&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:f},u.zoomOut2d={name:&quot;zoomOut2d&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:f},u.autoScale2d={name:&quot;autoScale2d&quot;,title:function(t){return c(t,&quot;Autoscale&quot;)},attr:&quot;zoom&quot;,val:&quot;auto&quot;,icon:o.autoscale,click:f},u.resetScale2d={name:&quot;resetScale2d&quot;,title:function(t){return c(t,&quot;Reset axes&quot;)},attr:&quot;zoom&quot;,val:&quot;reset&quot;,icon:o.home,click:f},u.hoverClosestCartesian={name:&quot;hoverClosestCartesian&quot;,title:function(t){return c(t,&quot;Show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:&quot;closest&quot;,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:f},u.hoverCompareCartesian={name:&quot;hoverCompareCartesian&quot;,title:function(t){return c(t,&quot;Compare data on hover&quot;)},attr:&quot;hovermode&quot;,val:function(t){return t._fullLayout._isHoriz?&quot;y&quot;:&quot;x&quot;},icon:o.tooltip_compare,gravity:&quot;ne&quot;,click:f},u.zoom3d={name:&quot;zoom3d&quot;,title:function(t){return c(t,&quot;Zoom&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;zoom&quot;,icon:o.zoombox,click:h},u.pan3d={name:&quot;pan3d&quot;,title:function(t){return c(t,&quot;Pan&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;pan&quot;,icon:o.pan,click:h},u.orbitRotation={name:&quot;orbitRotation&quot;,title:function(t){return c(t,&quot;Orbital rotation&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;orbit&quot;,icon:o[&quot;3d_rotate&quot;],click:h},u.tableRotation={name:&quot;tableRotation&quot;,title:function(t){return c(t,&quot;Turntable rotation&quot;)},attr:&quot;scene.dragmode&quot;,val:&quot;turntable&quot;,icon:o[&quot;z-axis&quot;],click:h},u.resetCameraDefault3d={name:&quot;resetCameraDefault3d&quot;,title:function(t){return c(t,&quot;Reset camera to default&quot;)},attr:&quot;resetDefault&quot;,icon:o.home,click:p},u.resetCameraLastSave3d={name:&quot;resetCameraLastSave3d&quot;,title:function(t){return c(t,&quot;Reset camera to last save&quot;)},attr:&quot;resetLastSave&quot;,icon:o.movie,click:p},u.hoverClosest3d={name:&quot;hoverClosest3d&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:function(t,e){var r=d(t,e);n.call(&quot;_guiRelayout&quot;,t,r)}},u.zoomInGeo={name:&quot;zoomInGeo&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:g},u.zoomOutGeo={name:&quot;zoomOutGeo&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:g},u.resetGeo={name:&quot;resetGeo&quot;,title:function(t){return c(t,&quot;Reset&quot;)},attr:&quot;reset&quot;,val:null,icon:o.autoscale,click:g},u.hoverClosestGeo={name:&quot;hoverClosestGeo&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.hoverClosestGl2d={name:&quot;hoverClosestGl2d&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.hoverClosestPie={name:&quot;hoverClosestPie&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:&quot;closest&quot;,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:v},u.resetViewSankey={name:&quot;resetSankeyGroup&quot;,title:function(t){return c(t,&quot;Reset view&quot;)},icon:o.home,click:function(t){for(var e={&quot;node.groups&quot;:[],&quot;node.x&quot;:[],&quot;node.y&quot;:[]},r=0;r&lt;t._fullData.length;r++){var i=t._fullData[r]._viewInitial;e[&quot;node.groups&quot;].push(i.node.groups.slice()),e[&quot;node.x&quot;].push(i.node.x.slice()),e[&quot;node.y&quot;].push(i.node.y.slice())}n.call(&quot;restyle&quot;,t,e)}},u.toggleHover={name:&quot;toggleHover&quot;,title:function(t){return c(t,&quot;Toggle show closest data on hover&quot;)},attr:&quot;hovermode&quot;,val:null,toggle:!0,icon:o.tooltip_basic,gravity:&quot;ne&quot;,click:function(t,e){var r=d(t,e);r.hovermode=m(t),n.call(&quot;_guiRelayout&quot;,t,r)}},u.resetViews={name:&quot;resetViews&quot;,title:function(t){return c(t,&quot;Reset views&quot;)},icon:o.home,click:function(t,e){var r=e.currentTarget;r.setAttribute(&quot;data-attr&quot;,&quot;zoom&quot;),r.setAttribute(&quot;data-val&quot;,&quot;reset&quot;),f(t,e),r.setAttribute(&quot;data-attr&quot;,&quot;resetLastSave&quot;),p(t,e),x(t,&quot;geo&quot;),x(t,&quot;mapbox&quot;)}},u.toggleSpikelines={name:&quot;toggleSpikelines&quot;,title:function(t){return c(t,&quot;Toggle Spike Lines&quot;)},icon:o.spikeline,attr:&quot;_cartesianSpikesEnabled&quot;,val:&quot;on&quot;,click:function(t){var e=t._fullLayout,r=e._cartesianSpikesEnabled;e._cartesianSpikesEnabled=&quot;on&quot;===r?&quot;off&quot;:&quot;on&quot;,n.call(&quot;_guiRelayout&quot;,t,function(t){for(var e=&quot;on&quot;===t._fullLayout._cartesianSpikesEnabled,r=a.list(t,null,!0),n={},i=0;i&lt;r.length;i++){var o=r[i];n[o._name+&quot;.showspikes&quot;]=!!e||o._showSpikeInitial}return n}(t))}},u.resetViewMapbox={name:&quot;resetViewMapbox&quot;,title:function(t){return c(t,&quot;Reset view&quot;)},attr:&quot;reset&quot;,icon:o.home,click:function(t){x(t,&quot;mapbox&quot;)}},u.zoomInMapbox={name:&quot;zoomInMapbox&quot;,title:function(t){return c(t,&quot;Zoom in&quot;)},attr:&quot;zoom&quot;,val:&quot;in&quot;,icon:o.zoom_plus,click:y},u.zoomOutMapbox={name:&quot;zoomOutMapbox&quot;,title:function(t){return c(t,&quot;Zoom out&quot;)},attr:&quot;zoom&quot;,val:&quot;out&quot;,icon:o.zoom_minus,click:y}},{&quot;../../fonts/ploticon&quot;:757,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../shapes/draw&quot;:724}],703:[function(t,e,r){&quot;use strict&quot;;r.manage=t(&quot;./manage&quot;)},{&quot;./manage&quot;:704}],704:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;),i=t(&quot;../../traces/scatter/subtypes&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../fx/helpers&quot;).isUnifiedHover,s=t(&quot;./modebar&quot;),l=t(&quot;./buttons&quot;);e.exports=function(t){var e=t._fullLayout,r=t._context,u=e._modeBar;if(r.displayModeBar||r.watermark){if(!Array.isArray(r.modeBarButtonsToRemove))throw new Error([&quot;*modeBarButtonsToRemove* configuration options&quot;,&quot;must be an array.&quot;].join(&quot; &quot;));if(!Array.isArray(r.modeBarButtonsToAdd))throw new Error([&quot;*modeBarButtonsToAdd* configuration options&quot;,&quot;must be an array.&quot;].join(&quot; &quot;));var f,h=r.modeBarButtons;f=Array.isArray(h)&amp;&amp;h.length?function(t){for(var e=0;e&lt;t.length;e++)for(var r=t[e],n=0;n&lt;r.length;n++){var i=r[n];if(&quot;string&quot;==typeof i){if(void 0===l[i])throw new Error([&quot;*modeBarButtons* configuration options&quot;,&quot;invalid button name&quot;].join(&quot; &quot;));t[e][n]=l[i]}}return t}(h):!r.displayModeBar&amp;&amp;r.watermark?[]:function(t){var e=t._fullLayout,r=t._fullData,s=t._context,u=s.modeBarButtonsToRemove,f=s.modeBarButtonsToAdd,h=e._has(&quot;cartesian&quot;),p=e._has(&quot;gl3d&quot;),d=e._has(&quot;geo&quot;),g=e._has(&quot;pie&quot;),m=e._has(&quot;funnelarea&quot;),v=e._has(&quot;gl2d&quot;),y=e._has(&quot;ternary&quot;),x=e._has(&quot;mapbox&quot;),b=e._has(&quot;polar&quot;),_=e._has(&quot;sankey&quot;),w=function(t){for(var e=n.list({_fullLayout:t},null,!0),r=0;r&lt;e.length;r++)if(!e[r].fixedrange)return!1;return!0}(e),T=o(e.hovermode),k=[];function M(t){if(t.length){for(var e=[],r=0;r&lt;t.length;r++){var n=t[r];-1===u.indexOf(n)&amp;&amp;e.push(l[n])}k.push(e)}}var A=[&quot;toImage&quot;];s.showEditInChartStudio?A.push(&quot;editInChartStudio&quot;):s.showSendToCloud&amp;&amp;A.push(&quot;sendDataToCloud&quot;);M(A);var S=[],E=[],C=[],L=[];(h||v||g||m||y)+d+p+x+b&gt;1?(E=[&quot;toggleHover&quot;],C=[&quot;resetViews&quot;]):d?(S=[&quot;zoomInGeo&quot;,&quot;zoomOutGeo&quot;],E=[&quot;hoverClosestGeo&quot;],C=[&quot;resetGeo&quot;]):p?(E=[&quot;hoverClosest3d&quot;],C=[&quot;resetCameraDefault3d&quot;,&quot;resetCameraLastSave3d&quot;]):x?(S=[&quot;zoomInMapbox&quot;,&quot;zoomOutMapbox&quot;],E=[&quot;toggleHover&quot;],C=[&quot;resetViewMapbox&quot;]):v?E=[&quot;hoverClosestGl2d&quot;]:g?E=[&quot;hoverClosestPie&quot;]:_?(E=[&quot;hoverClosestCartesian&quot;,&quot;hoverCompareCartesian&quot;],C=[&quot;resetViewSankey&quot;]):E=[&quot;toggleHover&quot;];h&amp;&amp;(E=[&quot;toggleSpikelines&quot;,&quot;hoverClosestCartesian&quot;,&quot;hoverCompareCartesian&quot;]);(function(t){for(var e=0;e&lt;t.length;e++)if(!a.traceIs(t[e],&quot;noHover&quot;))return!1;return!0}(r)||T)&amp;&amp;(E=[]);!h&amp;&amp;!v||w||(S=[&quot;zoomIn2d&quot;,&quot;zoomOut2d&quot;,&quot;autoScale2d&quot;],&quot;resetViews&quot;!==C[0]&amp;&amp;(C=[&quot;resetScale2d&quot;]));p?L=[&quot;zoom3d&quot;,&quot;pan3d&quot;,&quot;orbitRotation&quot;,&quot;tableRotation&quot;]:(h||v)&amp;&amp;!w||y?L=[&quot;zoom2d&quot;,&quot;pan2d&quot;]:x||d?L=[&quot;pan2d&quot;]:b&amp;&amp;(L=[&quot;zoom2d&quot;]);(function(t){for(var e=!1,r=0;r&lt;t.length&amp;&amp;!e;r++){var n=t[r];n._module&amp;&amp;n._module.selectPoints&amp;&amp;(a.traceIs(n,&quot;scatter-like&quot;)?(i.hasMarkers(n)||i.hasText(n))&amp;&amp;(e=!0):a.traceIs(n,&quot;box-violin&quot;)&amp;&amp;&quot;all&quot;!==n.boxpoints&amp;&amp;&quot;all&quot;!==n.points||(e=!0))}return e})(r)&amp;&amp;L.push(&quot;select2d&quot;,&quot;lasso2d&quot;);if(Array.isArray(f)){for(var I=[],P=0;P&lt;f.length;P++){var z=f[P];&quot;string&quot;==typeof z?-1!==c.indexOf(z)&amp;&amp;(e._has(&quot;mapbox&quot;)||e._has(&quot;cartesian&quot;))&amp;&amp;L.push(z):I.push(z)}f=I}return M(L),M(S.concat(C)),M(E),function(t,e){if(e.length)if(Array.isArray(e[0]))for(var r=0;r&lt;e.length;r++)t.push(e[r]);else t.push(e);return t}(k,f)}(t),u?u.update(t,f):e._modeBar=s(t,f)}else u&amp;&amp;(u.destroy(),delete e._modeBar)};var c=[&quot;drawline&quot;,&quot;drawopenpath&quot;,&quot;drawclosedpath&quot;,&quot;drawcircle&quot;,&quot;drawrect&quot;,&quot;eraseshape&quot;]},{&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../registry&quot;:911,&quot;../../traces/scatter/subtypes&quot;:1212,&quot;../fx/helpers&quot;:679,&quot;./buttons&quot;:702,&quot;./modebar&quot;:705}],705:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../fonts/ploticon&quot;),s=new DOMParser;function l(t){this.container=t.container,this.element=document.createElement(&quot;div&quot;),this.update(t.graphInfo,t.buttons),this.container.appendChild(this.element)}var c=l.prototype;c.update=function(t,e){this.graphInfo=t;var r=this.graphInfo._context,n=this.graphInfo._fullLayout,i=&quot;modebar-&quot;+n._uid;this.element.setAttribute(&quot;id&quot;,i),this._uid=i,this.element.className=&quot;modebar&quot;,&quot;hover&quot;===r.displayModeBar&amp;&amp;(this.element.className+=&quot; modebar--hover ease-bg&quot;),&quot;v&quot;===n.modebar.orientation&amp;&amp;(this.element.className+=&quot; vertical&quot;,e=e.reverse());var o=n.modebar,s=&quot;hover&quot;===r.displayModeBar?&quot;.js-plotly-plot .plotly:hover &quot;:&quot;&quot;;a.deleteRelatedStyleRule(i),a.addRelatedStyleRule(i,s+&quot;#&quot;+i+&quot; .modebar-group&quot;,&quot;background-color: &quot;+o.bgcolor),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn .icon path&quot;,&quot;fill: &quot;+o.color),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn:hover .icon path&quot;,&quot;fill: &quot;+o.activecolor),a.addRelatedStyleRule(i,&quot;#&quot;+i+&quot; .modebar-btn.active .icon path&quot;,&quot;fill: &quot;+o.activecolor);var l=!this.hasButtons(e),c=this.hasLogo!==r.displaylogo,u=this.locale!==r.locale;if(this.locale=r.locale,(l||c||u)&amp;&amp;(this.removeAllButtons(),this.updateButtons(e),r.watermark||r.displaylogo)){var f=this.getLogo();r.watermark&amp;&amp;(f.className=f.className+&quot; watermark&quot;),&quot;v&quot;===n.modebar.orientation?this.element.insertBefore(f,this.element.childNodes[0]):this.element.appendChild(f),this.hasLogo=!0}this.updateActiveButton()},c.updateButtons=function(t){var e=this;this.buttons=t,this.buttonElements=[],this.buttonsNames=[],this.buttons.forEach((function(t){var r=e.createGroup();t.forEach((function(t){var n=t.name;if(!n)throw new Error(&quot;must provide button 'name' in button config&quot;);if(-1!==e.buttonsNames.indexOf(n))throw new Error(&quot;button name '&quot;+n+&quot;' is taken&quot;);e.buttonsNames.push(n);var i=e.createButton(t);e.buttonElements.push(i),r.appendChild(i)})),e.element.appendChild(r)}))},c.createGroup=function(){var t=document.createElement(&quot;div&quot;);return t.className=&quot;modebar-group&quot;,t},c.createButton=function(t){var e=this,r=document.createElement(&quot;a&quot;);r.setAttribute(&quot;rel&quot;,&quot;tooltip&quot;),r.className=&quot;modebar-btn&quot;;var i=t.title;void 0===i?i=t.name:&quot;function&quot;==typeof i&amp;&amp;(i=i(this.graphInfo)),(i||0===i)&amp;&amp;r.setAttribute(&quot;data-title&quot;,i),void 0!==t.attr&amp;&amp;r.setAttribute(&quot;data-attr&quot;,t.attr);var a=t.val;if(void 0!==a&amp;&amp;(&quot;function&quot;==typeof a&amp;&amp;(a=a(this.graphInfo)),r.setAttribute(&quot;data-val&quot;,a)),&quot;function&quot;!=typeof t.click)throw new Error(&quot;must provide button 'click' function in button config&quot;);r.addEventListener(&quot;click&quot;,(function(r){t.click(e.graphInfo,r),e.updateActiveButton(r.currentTarget)})),r.setAttribute(&quot;data-toggle&quot;,t.toggle||!1),t.toggle&amp;&amp;n.select(r).classed(&quot;active&quot;,!0);var s=t.icon;return&quot;function&quot;==typeof s?r.appendChild(s()):r.appendChild(this.createIcon(s||o.question)),r.setAttribute(&quot;data-gravity&quot;,t.gravity||&quot;n&quot;),r},c.createIcon=function(t){var e,r=i(t.height)?Number(t.height):t.ascent-t.descent,n=&quot;http://www.w3.org/2000/svg&quot;;if(t.path){(e=document.createElementNS(n,&quot;svg&quot;)).setAttribute(&quot;viewBox&quot;,[0,0,t.width,r].join(&quot; &quot;)),e.setAttribute(&quot;class&quot;,&quot;icon&quot;);var a=document.createElementNS(n,&quot;path&quot;);a.setAttribute(&quot;d&quot;,t.path),t.transform?a.setAttribute(&quot;transform&quot;,t.transform):void 0!==t.ascent&amp;&amp;a.setAttribute(&quot;transform&quot;,&quot;matrix(1 0 0 -1 0 &quot;+t.ascent+&quot;)&quot;),e.appendChild(a)}t.svg&amp;&amp;(e=s.parseFromString(t.svg,&quot;application/xml&quot;).childNodes[0]);return e.setAttribute(&quot;height&quot;,&quot;1em&quot;),e.setAttribute(&quot;width&quot;,&quot;1em&quot;),e},c.updateActiveButton=function(t){var e=this.graphInfo._fullLayout,r=void 0!==t?t.getAttribute(&quot;data-attr&quot;):null;this.buttonElements.forEach((function(t){var i=t.getAttribute(&quot;data-val&quot;)||!0,o=t.getAttribute(&quot;data-attr&quot;),s=&quot;true&quot;===t.getAttribute(&quot;data-toggle&quot;),l=n.select(t);if(s)o===r&amp;&amp;l.classed(&quot;active&quot;,!l.classed(&quot;active&quot;));else{var c=null===o?o:a.nestedProperty(e,o).get();l.classed(&quot;active&quot;,c===i)}}))},c.hasButtons=function(t){var e=this.buttons;if(!e)return!1;if(t.length!==e.length)return!1;for(var r=0;r&lt;t.length;++r){if(t[r].length!==e[r].length)return!1;for(var n=0;n&lt;t[r].length;n++)if(t[r][n].name!==e[r][n].name)return!1}return!0},c.getLogo=function(){var t=this.createGroup(),e=document.createElement(&quot;a&quot;);return e.href=&quot;https://plotly.com/&quot;,e.target=&quot;_blank&quot;,e.setAttribute(&quot;data-title&quot;,a._(this.graphInfo,&quot;Produced with Plotly&quot;)),e.className=&quot;modebar-btn plotlyjsicon modebar-btn--logo&quot;,e.appendChild(this.createIcon(o.newplotlylogo)),t.appendChild(e),t},c.removeAllButtons=function(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);this.hasLogo=!1},c.destroy=function(){a.removeElement(this.container.querySelector(&quot;.modebar&quot;)),a.deleteRelatedStyleRule(this._uid)},e.exports=function(t,e){var r=t._fullLayout,i=new l({graphInfo:t,container:r._modebardiv.node(),buttons:e});return r._privateplot&amp;&amp;n.select(i.element).append(&quot;span&quot;).classed(&quot;badge-private float--left&quot;,!0).text(&quot;PRIVATE&quot;),i}},{&quot;../../fonts/ploticon&quot;:757,&quot;../../lib&quot;:778,d3:169,&quot;fast-isnumeric&quot;:241}],706:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;),a=(0,t(&quot;../../plot_api/plot_template&quot;).templatedArray)(&quot;button&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},step:{valType:&quot;enumerated&quot;,values:[&quot;month&quot;,&quot;year&quot;,&quot;day&quot;,&quot;hour&quot;,&quot;minute&quot;,&quot;second&quot;,&quot;all&quot;],dflt:&quot;month&quot;,editType:&quot;plot&quot;},stepmode:{valType:&quot;enumerated&quot;,values:[&quot;backward&quot;,&quot;todate&quot;],dflt:&quot;backward&quot;,editType:&quot;plot&quot;},count:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},label:{valType:&quot;string&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;});e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},buttons:a,x:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;plot&quot;},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;,editType:&quot;plot&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,editType:&quot;plot&quot;},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;bottom&quot;,editType:&quot;plot&quot;},font:n({editType:&quot;plot&quot;}),bgcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;plot&quot;},activecolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;plot&quot;}},{&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/font_attributes&quot;:856,&quot;../color/attributes&quot;:642}],707:[function(t,e,r){&quot;use strict&quot;;e.exports={yPad:.02,minButtonWidth:30,rx:3,ry:3,lightAmount:25,darkAmount:10}},{}],708:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;../../plots/array_container_defaults&quot;),s=t(&quot;./attributes&quot;),l=t(&quot;./constants&quot;);function c(t,e,r,i){var a=i.calendar;function o(r,i){return n.coerce(t,e,s.buttons,r,i)}if(o(&quot;visible&quot;)){var l=o(&quot;step&quot;);&quot;all&quot;!==l&amp;&amp;(!a||&quot;gregorian&quot;===a||&quot;month&quot;!==l&amp;&amp;&quot;year&quot;!==l?o(&quot;stepmode&quot;):e.stepmode=&quot;backward&quot;,o(&quot;count&quot;)),o(&quot;label&quot;)}}e.exports=function(t,e,r,u,f){var h=t.rangeselector||{},p=a.newContainer(e,&quot;rangeselector&quot;);function d(t,e){return n.coerce(h,p,s,t,e)}if(d(&quot;visible&quot;,o(h,p,{name:&quot;buttons&quot;,handleItemDefaults:c,calendar:f}).length&gt;0)){var g=function(t,e,r){for(var n=r.filter((function(r){return e[r].anchor===t._id})),i=0,a=0;a&lt;n.length;a++){var o=e[n[a]].domain;o&amp;&amp;(i=Math.max(o[1],i))}return[t.domain[0],i+l.yPad]}(e,r,u);d(&quot;x&quot;,g[0]),d(&quot;y&quot;,g[1]),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),d(&quot;xanchor&quot;),d(&quot;yanchor&quot;),n.coerceFont(d,&quot;font&quot;,r.font);var m=d(&quot;bgcolor&quot;);d(&quot;activecolor&quot;,i.contrast(m,l.lightAmount,l.darkAmount)),d(&quot;bordercolor&quot;),d(&quot;borderwidth&quot;)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/array_container_defaults&quot;:823,&quot;../color&quot;:643,&quot;./attributes&quot;:706,&quot;./constants&quot;:707}],709:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../color&quot;),s=t(&quot;../drawing&quot;),l=t(&quot;../../lib&quot;),c=l.strTranslate,u=t(&quot;../../lib/svg_text_utils&quot;),f=t(&quot;../../plots/cartesian/axis_ids&quot;),h=t(&quot;../../constants/alignment&quot;),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR,m=t(&quot;./constants&quot;),v=t(&quot;./get_update_object&quot;);function y(t){return t._id}function x(t,e,r){var n=l.ensureSingle(t,&quot;rect&quot;,&quot;selector-rect&quot;,(function(t){t.attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)}));n.attr({rx:m.rx,ry:m.ry}),n.call(o.stroke,e.bordercolor).call(o.fill,function(t,e){return e._isActive||e._isHovered?t.activecolor:t.bgcolor}(e,r)).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;)}function b(t,e,r,n){l.ensureSingle(t,&quot;text&quot;,&quot;selector-text&quot;,(function(t){t.attr(&quot;text-anchor&quot;,&quot;middle&quot;)})).call(s.font,e.font).text(function(t,e){if(t.label)return e?l.templateString(t.label,e):t.label;return&quot;all&quot;===t.step?&quot;all&quot;:t.count+t.step.charAt(0)}(r,n._fullLayout._meta)).call((function(t){u.convertToTspans(t,n)}))}e.exports=function(t){var e=t._fullLayout._infolayer.selectAll(&quot;.rangeselector&quot;).data(function(t){for(var e=f.list(t,&quot;x&quot;,!0),r=[],n=0;n&lt;e.length;n++){var i=e[n];i.rangeselector&amp;&amp;i.rangeselector.visible&amp;&amp;r.push(i)}return r}(t),y);e.enter().append(&quot;g&quot;).classed(&quot;rangeselector&quot;,!0),e.exit().remove(),e.style({cursor:&quot;pointer&quot;,&quot;pointer-events&quot;:&quot;all&quot;}),e.each((function(e){var r=n.select(this),o=e,f=o.rangeselector,h=r.selectAll(&quot;g.button&quot;).data(l.filterVisible(f.buttons));h.enter().append(&quot;g&quot;).classed(&quot;button&quot;,!0),h.exit().remove(),h.each((function(e){var r=n.select(this),a=v(o,e);e._isActive=function(t,e,r){if(&quot;all&quot;===e.step)return!0===t.autorange;var n=Object.keys(r);return t.range[0]===r[n[0]]&amp;&amp;t.range[1]===r[n[1]]}(o,e,a),r.call(x,f,e),r.call(b,f,e,t),r.on(&quot;click&quot;,(function(){t._dragged||i.call(&quot;_guiRelayout&quot;,t,a)})),r.on(&quot;mouseover&quot;,(function(){e._isHovered=!0,r.call(x,f,e)})),r.on(&quot;mouseout&quot;,(function(){e._isHovered=!1,r.call(x,f,e)}))})),function(t,e,r,i,o){var f=0,h=0,v=r.borderwidth;e.each((function(){var t=n.select(this).select(&quot;.selector-text&quot;),e=r.font.size*p,i=Math.max(e*u.lineCount(t),16)+3;h=Math.max(h,i)})),e.each((function(){var t=n.select(this),e=t.select(&quot;.selector-rect&quot;),i=t.select(&quot;.selector-text&quot;),a=i.node()&amp;&amp;s.bBox(i.node()).width,o=r.font.size*p,l=u.lineCount(i),d=Math.max(a+10,m.minButtonWidth);t.attr(&quot;transform&quot;,c(v+f,v)),e.attr({x:0,y:0,width:d,height:h}),u.positionText(i,d/2,h/2-(l-1)*o/2+3),f+=d+5}));var y=t._fullLayout._size,x=y.l+y.w*r.x,b=y.t+y.h*(1-r.y),_=&quot;left&quot;;l.isRightAnchor(r)&amp;&amp;(x-=f,_=&quot;right&quot;);l.isCenterAnchor(r)&amp;&amp;(x-=f/2,_=&quot;center&quot;);var w=&quot;top&quot;;l.isBottomAnchor(r)&amp;&amp;(b-=h,w=&quot;bottom&quot;);l.isMiddleAnchor(r)&amp;&amp;(b-=h/2,w=&quot;middle&quot;);f=Math.ceil(f),h=Math.ceil(h),x=Math.round(x),b=Math.round(b),a.autoMargin(t,i+&quot;-range-selector&quot;,{x:r.x,y:r.y,l:f*d[_],r:f*g[_],b:h*g[w],t:h*d[w]}),o.attr(&quot;transform&quot;,c(x,b))}(t,h,f,o._name,r)}))}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../drawing&quot;:665,&quot;./constants&quot;:707,&quot;./get_update_object&quot;:710,d3:169}],710:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t,e){var r=t._name,i={};if(&quot;all&quot;===e.step)i[r+&quot;.autorange&quot;]=!0;else{var a=function(t,e){var r,i=t.range,a=new Date(t.r2l(i[1])),o=e.step,s=e.count;switch(e.stepmode){case&quot;backward&quot;:r=t.l2r(+n.time[o].utc.offset(a,-s));break;case&quot;todate&quot;:var l=n.time[o].utc.offset(a,-s);r=t.l2r(+n.time[o].utc.ceil(l))}var c=i[1];return[r,c]}(t,e);i[r+&quot;.range[0]&quot;]=a[0],i[r+&quot;.range[1]&quot;]=a[1]}return i}},{d3:169}],711:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;component&quot;,name:&quot;rangeselector&quot;,schema:{subplots:{xaxis:{rangeselector:t(&quot;./attributes&quot;)}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;)}},{&quot;./attributes&quot;:706,&quot;./defaults&quot;:708,&quot;./draw&quot;:709}],712:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../color/attributes&quot;);e.exports={bgcolor:{valType:&quot;color&quot;,dflt:n.background,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:n.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;integer&quot;,dflt:0,min:0,editType:&quot;plot&quot;},autorange:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:{&quot;range[0]&quot;:void 0,&quot;range[1]&quot;:void 0}},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;calc&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],editType:&quot;calc&quot;,impliedEdits:{autorange:!1}},thickness:{valType:&quot;number&quot;,dflt:.15,min:0,max:1,editType:&quot;plot&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;}},{&quot;../color/attributes&quot;:642}],713:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;).list,i=t(&quot;../../plots/cartesian/autorange&quot;).getAutoRange,a=t(&quot;./constants&quot;);e.exports=function(t){for(var e=n(t,&quot;x&quot;,!0),r=0;r&lt;e.length;r++){var o=e[r],s=o[a.name];s&amp;&amp;s.visible&amp;&amp;s.autorange&amp;&amp;(s._input.autorange=!0,s._input.range=s.range=i(t,o))}}},{&quot;../../plots/cartesian/autorange&quot;:827,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;./constants&quot;:714}],714:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;rangeslider&quot;,containerClassName:&quot;rangeslider-container&quot;,bgClassName:&quot;rangeslider-bg&quot;,rangePlotClassName:&quot;rangeslider-rangeplot&quot;,maskMinClassName:&quot;rangeslider-mask-min&quot;,maskMaxClassName:&quot;rangeslider-mask-max&quot;,slideBoxClassName:&quot;rangeslider-slidebox&quot;,grabberMinClassName:&quot;rangeslider-grabber-min&quot;,grabAreaMinClassName:&quot;rangeslider-grabarea-min&quot;,handleMinClassName:&quot;rangeslider-handle-min&quot;,grabberMaxClassName:&quot;rangeslider-grabber-max&quot;,grabAreaMaxClassName:&quot;rangeslider-grabarea-max&quot;,handleMaxClassName:&quot;rangeslider-handle-max&quot;,maskMinOppAxisClassName:&quot;rangeslider-mask-min-opp-axis&quot;,maskMaxOppAxisClassName:&quot;rangeslider-mask-max-opp-axis&quot;,maskColor:&quot;rgba(0,0,0,0.4)&quot;,maskOppAxisColor:&quot;rgba(0,0,0,0.2)&quot;,slideBoxFill:&quot;transparent&quot;,slideBoxCursor:&quot;ew-resize&quot;,grabAreaFill:&quot;transparent&quot;,grabAreaCursor:&quot;col-resize&quot;,grabAreaWidth:10,handleWidth:4,handleRadius:1,handleStrokeWidth:1,extraPad:15}},{}],715:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;./oppaxis_attributes&quot;);e.exports=function(t,e,r){var l=t[r],c=e[r];if(l.rangeslider||e._requestRangeslider[c._id]){n.isPlainObject(l.rangeslider)||(l.rangeslider={});var u,f,h=l.rangeslider,p=i.newContainer(c,&quot;rangeslider&quot;);if(_(&quot;visible&quot;)){_(&quot;bgcolor&quot;,e.plot_bgcolor),_(&quot;bordercolor&quot;),_(&quot;borderwidth&quot;),_(&quot;thickness&quot;),_(&quot;autorange&quot;,!c.isValidRange(h.range)),_(&quot;range&quot;);var d=e._subplots;if(d)for(var g=d.cartesian.filter((function(t){return t.substr(0,t.indexOf(&quot;y&quot;))===a.name2id(r)})).map((function(t){return t.substr(t.indexOf(&quot;y&quot;),t.length)})),m=n.simpleMap(g,a.id2name),v=0;v&lt;m.length;v++){var y=m[v];u=h[y]||{},f=i.newContainer(p,y,&quot;yaxis&quot;);var x,b=e[y];u.range&amp;&amp;b.isValidRange(u.range)&amp;&amp;(x=&quot;fixed&quot;),&quot;match&quot;!==w(&quot;rangemode&quot;,x)&amp;&amp;w(&quot;range&quot;,b.range.slice())}p._input=h}}function _(t,e){return n.coerce(h,p,o,t,e)}function w(t,e){return n.coerce(u,f,s,t,e)}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;./attributes&quot;:712,&quot;./oppaxis_attributes&quot;:719}],716:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../drawing&quot;),c=t(&quot;../color&quot;),u=t(&quot;../titles&quot;),f=t(&quot;../../plots/cartesian&quot;),h=t(&quot;../../plots/cartesian/axis_ids&quot;),p=t(&quot;../dragelement&quot;),d=t(&quot;../../lib/setcursor&quot;),g=t(&quot;./constants&quot;);function m(t,e,r,n){var i=o.ensureSingle(t,&quot;rect&quot;,g.bgClassName,(function(t){t.attr({x:0,y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})),a=n.borderwidth%2==0?n.borderwidth:n.borderwidth-1,c=-n._offsetShift,u=l.crispRound(e,n.borderwidth);i.attr({width:n._width+a,height:n._height+a,transform:s(c,c),fill:n.bgcolor,stroke:n.bordercolor,&quot;stroke-width&quot;:u})}function v(t,e,r,n){var i=e._fullLayout;o.ensureSingleById(i._topdefs,&quot;clipPath&quot;,n._clipId,(function(t){t.append(&quot;rect&quot;).attr({x:0,y:0})})).select(&quot;rect&quot;).attr({width:n._width,height:n._height})}function y(t,e,r,i){var s,c=e.calcdata,u=t.selectAll(&quot;g.&quot;+g.rangePlotClassName).data(r._subplotsWith,o.identity);u.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return g.rangePlotClassName+&quot; &quot;+t})).call(l.setClipUrl,i._clipId,e),u.order(),u.exit().remove(),u.each((function(t,o){var l=n.select(this),u=0===o,p=h.getFromId(e,t,&quot;y&quot;),d=p._name,g=i[d],m={data:[],layout:{xaxis:{type:r.type,domain:[0,1],range:i.range.slice(),calendar:r.calendar},width:i._width,height:i._height,margin:{t:0,b:0,l:0,r:0}},_context:e._context};r.rangebreaks&amp;&amp;(m.layout.xaxis.rangebreaks=r.rangebreaks),m.layout[d]={type:p.type,domain:[0,1],range:&quot;match&quot;!==g.rangemode?g.range.slice():p.range.slice(),calendar:p.calendar},p.rangebreaks&amp;&amp;(m.layout[d].rangebreaks=p.rangebreaks),a.supplyDefaults(m);var v=m._fullLayout.xaxis,y=m._fullLayout[d];v.clearCalc(),v.setScale(),y.clearCalc(),y.setScale();var x={id:t,plotgroup:l,xaxis:v,yaxis:y,isRangePlot:!0};u?s=x:(x.mainplot=&quot;xy&quot;,x.mainplotinfo=s),f.rangePlot(e,x,function(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i=t[n],a=i[0].trace;a.xaxis+a.yaxis===e&amp;&amp;r.push(i)}return r}(c,t))}))}function x(t,e,r,n,i){(o.ensureSingle(t,&quot;rect&quot;,g.maskMinClassName,(function(t){t.attr({x:0,y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;height&quot;,n._height).call(c.fill,g.maskColor),o.ensureSingle(t,&quot;rect&quot;,g.maskMaxClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;height&quot;,n._height).call(c.fill,g.maskColor),&quot;match&quot;!==i.rangemode)&amp;&amp;(o.ensureSingle(t,&quot;rect&quot;,g.maskMinOppAxisClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;width&quot;,n._width).call(c.fill,g.maskOppAxisColor),o.ensureSingle(t,&quot;rect&quot;,g.maskMaxOppAxisClassName,(function(t){t.attr({y:0,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr(&quot;width&quot;,n._width).style(&quot;border-top&quot;,g.maskOppBorder).call(c.fill,g.maskOppAxisColor))}function b(t,e,r,n){e._context.staticPlot||o.ensureSingle(t,&quot;rect&quot;,g.slideBoxClassName,(function(t){t.attr({y:0,cursor:g.slideBoxCursor,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).attr({height:n._height,fill:g.slideBoxFill})}function _(t,e,r,n){var i=o.ensureSingle(t,&quot;g&quot;,g.grabberMinClassName),a=o.ensureSingle(t,&quot;g&quot;,g.grabberMaxClassName),s={x:0,width:g.handleWidth,rx:g.handleRadius,fill:c.background,stroke:c.defaultLine,&quot;stroke-width&quot;:g.handleStrokeWidth,&quot;shape-rendering&quot;:&quot;crispEdges&quot;},l={y:Math.round(n._height/4),height:Math.round(n._height/2)};o.ensureSingle(i,&quot;rect&quot;,g.handleMinClassName,(function(t){t.attr(s)})).attr(l),o.ensureSingle(a,&quot;rect&quot;,g.handleMaxClassName,(function(t){t.attr(s)})).attr(l);var u={width:g.grabAreaWidth,x:0,y:0,fill:g.grabAreaFill,cursor:e._context.staticPlot?void 0:g.grabAreaCursor};o.ensureSingle(i,&quot;rect&quot;,g.grabAreaMinClassName,(function(t){t.attr(u)})).attr(&quot;height&quot;,n._height),o.ensureSingle(a,&quot;rect&quot;,g.grabAreaMaxClassName,(function(t){t.attr(u)})).attr(&quot;height&quot;,n._height)}e.exports=function(t){for(var e=t._fullLayout,r=e._rangeSliderData,a=0;a&lt;r.length;a++){var l=r[a][g.name];l._clipId=l._id+&quot;-&quot;+e._uid}var c=e._infolayer.selectAll(&quot;g.&quot;+g.containerClassName).data(r,(function(t){return t._name}));c.exit().each((function(t){var r=t[g.name];e._topdefs.select(&quot;#&quot;+r._clipId).remove()})).remove(),0!==r.length&amp;&amp;(c.enter().append(&quot;g&quot;).classed(g.containerClassName,!0).attr(&quot;pointer-events&quot;,&quot;all&quot;),c.each((function(r){var a=n.select(this),l=r[g.name],c=e[h.id2name(r.anchor)],f=l[h.id2name(r.anchor)];if(l.range){var w,T=o.simpleMap(l.range,r.r2l),k=o.simpleMap(r.range,r.r2l);w=k[0]&lt;k[1]?[Math.min(T[0],k[0]),Math.max(T[1],k[1])]:[Math.max(T[0],k[0]),Math.min(T[1],k[1])],l.range=l._input.range=o.simpleMap(w,r.l2r)}r.cleanRange(&quot;rangeslider.range&quot;);var M=e._size,A=r.domain;l._width=M.w*(A[1]-A[0]);var S=Math.round(M.l+M.w*A[0]),E=Math.round(M.t+M.h*(1-r._counterDomainMin)+(&quot;bottom&quot;===r.side?r._depth:0)+l._offsetShift+g.extraPad);a.attr(&quot;transform&quot;,s(S,E)),l._rl=o.simpleMap(l.range,r.r2l);var C=l._rl[0],L=l._rl[1],I=L-C;if(l.p2d=function(t){return t/l._width*I+C},l.d2p=function(t){return(t-C)/I*l._width},r.rangebreaks){var P=r.locateBreaks(C,L);if(P.length){var z,O,D=0;for(z=0;z&lt;P.length;z++)D+=(O=P[z]).max-O.min;var R=l._width/(L-C-D),F=[-R*C];for(z=0;z&lt;P.length;z++)O=P[z],F.push(F[F.length-1]-R*(O.max-O.min));for(l.d2p=function(t){for(var e=F[0],r=0;r&lt;P.length;r++){var n=P[r];if(t&gt;=n.max)e=F[r+1];else if(t&lt;n.min)break}return e+R*t},z=0;z&lt;P.length;z++)(O=P[z]).pmin=l.d2p(O.min),O.pmax=l.d2p(O.max);l.p2d=function(t){for(var e=F[0],r=0;r&lt;P.length;r++){var n=P[r];if(t&gt;=n.pmax)e=F[r+1];else if(t&lt;n.pmin)break}return(t-e)/R}}}if(&quot;match&quot;!==f.rangemode){var B=c.r2l(f.range[0]),N=c.r2l(f.range[1])-B;l.d2pOppAxis=function(t){return(t-B)/N*l._height}}a.call(m,t,r,l).call(v,t,r,l).call(y,t,r,l).call(x,t,r,l,f).call(b,t,r,l).call(_,t,r,l),function(t,e,r,a){if(e._context.staticPlot)return;var s=t.select(&quot;rect.&quot;+g.slideBoxClassName).node(),l=t.select(&quot;rect.&quot;+g.grabAreaMinClassName).node(),c=t.select(&quot;rect.&quot;+g.grabAreaMaxClassName).node();function u(){var u=n.event,f=u.target,h=u.clientX||u.touches[0].clientX,g=h-t.node().getBoundingClientRect().left,m=a.d2p(r._rl[0]),v=a.d2p(r._rl[1]),y=p.coverSlip();function x(t){var u,p,x,b=+(t.clientX||t.touches[0].clientX)-h;switch(f){case s:x=&quot;ew-resize&quot;,u=m+b,p=v+b;break;case l:x=&quot;col-resize&quot;,u=m+b,p=v;break;case c:x=&quot;col-resize&quot;,u=m,p=v+b;break;default:x=&quot;ew-resize&quot;,u=g,p=g+b}if(p&lt;u){var _=p;p=u,u=_}a._pixelMin=u,a._pixelMax=p,d(n.select(y),x),function(t,e,r,n){function a(t){return r.l2r(o.constrain(t,n._rl[0],n._rl[1]))}var s=a(n.p2d(n._pixelMin)),l=a(n.p2d(n._pixelMax));window.requestAnimationFrame((function(){i.call(&quot;_guiRelayout&quot;,e,r._name+&quot;.range&quot;,[s,l])}))}(0,e,r,a)}function b(){y.removeEventListener(&quot;mousemove&quot;,x),y.removeEventListener(&quot;mouseup&quot;,b),this.removeEventListener(&quot;touchmove&quot;,x),this.removeEventListener(&quot;touchend&quot;,b),o.removeElement(y)}this.addEventListener(&quot;touchmove&quot;,x),this.addEventListener(&quot;touchend&quot;,b),y.addEventListener(&quot;mousemove&quot;,x),y.addEventListener(&quot;mouseup&quot;,b)}t.on(&quot;mousedown&quot;,u),t.on(&quot;touchstart&quot;,u)}(a,t,r,l),function(t,e,r,n,i,a){var l=g.handleWidth/2;function c(t){return o.constrain(t,0,n._width)}function u(t){return o.constrain(t,0,n._height)}function f(t){return o.constrain(t,-l,n._width+l)}var h=c(n.d2p(r._rl[0])),p=c(n.d2p(r._rl[1]));if(t.select(&quot;rect.&quot;+g.slideBoxClassName).attr(&quot;x&quot;,h).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.maskMinClassName).attr(&quot;width&quot;,h),t.select(&quot;rect.&quot;+g.maskMaxClassName).attr(&quot;x&quot;,p).attr(&quot;width&quot;,n._width-p),&quot;match&quot;!==a.rangemode){var d=n._height-u(n.d2pOppAxis(i._rl[1])),m=n._height-u(n.d2pOppAxis(i._rl[0]));t.select(&quot;rect.&quot;+g.maskMinOppAxisClassName).attr(&quot;x&quot;,h).attr(&quot;height&quot;,d).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.maskMaxOppAxisClassName).attr(&quot;x&quot;,h).attr(&quot;y&quot;,m).attr(&quot;height&quot;,n._height-m).attr(&quot;width&quot;,p-h),t.select(&quot;rect.&quot;+g.slideBoxClassName).attr(&quot;y&quot;,d).attr(&quot;height&quot;,m-d)}var v=Math.round(f(h-l))-.5,y=Math.round(f(p-l))+.5;t.select(&quot;g.&quot;+g.grabberMinClassName).attr(&quot;transform&quot;,s(v,.5)),t.select(&quot;g.&quot;+g.grabberMaxClassName).attr(&quot;transform&quot;,s(y,.5))}(a,0,r,l,c,f),&quot;bottom&quot;===r.side&amp;&amp;u.draw(t,r._id+&quot;title&quot;,{propContainer:r,propName:r._name+&quot;.title&quot;,placeholder:e._dfltTitle.x,attributes:{x:r._offset+r._length/2,y:E+l._height+l._offsetShift+10+1.5*r.title.font.size,&quot;text-anchor&quot;:&quot;middle&quot;}})})))}},{&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../plots/cartesian&quot;:841,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;../titles&quot;:738,&quot;./constants&quot;:714,d3:169}],717:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axis_ids&quot;),i=t(&quot;../../lib/svg_text_utils&quot;),a=t(&quot;./constants&quot;),o=t(&quot;../../constants/alignment&quot;).LINE_SPACING,s=a.name;function l(t){var e=t&amp;&amp;t[s];return e&amp;&amp;e.visible}r.isVisible=l,r.makeData=function(t){var e=n.list({_fullLayout:t},&quot;x&quot;,!0),r=t.margin,i=[];if(!t._has(&quot;gl2d&quot;))for(var a=0;a&lt;e.length;a++){var o=e[a];if(l(o)){i.push(o);var c=o[s];c._id=s+o._id,c._height=(t.height-r.b-r.t)*c.thickness,c._offsetShift=Math.floor(c.borderwidth/2)}}t._rangeSliderData=i},r.autoMarginOpts=function(t,e){var r=t._fullLayout,n=e[s],l=e._id.charAt(0),c=0,u=0;&quot;bottom&quot;===e.side&amp;&amp;(c=e._depth,e.title.text!==r._dfltTitle[l]&amp;&amp;(u=1.5*e.title.font.size+10+n._offsetShift,u+=(e.title.text.match(i.BR_TAG_ALL)||[]).length*e.title.font.size*o));return{x:0,y:e._counterDomainMin,l:0,r:0,t:0,b:n._height+c+Math.max(r.margin.b,u),pad:a.extraPad+2*n._offsetShift}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;./constants&quot;:714}],718:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./oppaxis_attributes&quot;),o=t(&quot;./helpers&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;rangeslider&quot;,schema:{subplots:{xaxis:{rangeslider:n.extendFlat({},i,{yaxis:a})}}},layoutAttributes:t(&quot;./attributes&quot;),handleDefaults:t(&quot;./defaults&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:t(&quot;./draw&quot;),isVisible:o.isVisible,makeData:o.makeData,autoMarginOpts:o.autoMarginOpts}},{&quot;../../lib&quot;:778,&quot;./attributes&quot;:712,&quot;./calc_autorange&quot;:713,&quot;./defaults&quot;:715,&quot;./draw&quot;:716,&quot;./helpers&quot;:717,&quot;./oppaxis_attributes&quot;:719}],719:[function(t,e,r){&quot;use strict&quot;;e.exports={_isSubplotObj:!0,rangemode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;fixed&quot;,&quot;match&quot;],dflt:&quot;match&quot;,editType:&quot;calc&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;},{valType:&quot;any&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},editType:&quot;calc&quot;}},{}],720:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../annotations/attributes&quot;),i=t(&quot;../../traces/scatter/attributes&quot;).line,a=t(&quot;../drawing/attributes&quot;).dash,o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/plot_template&quot;).templatedArray;t(&quot;../../constants/axis_placeable_objects&quot;);e.exports=s(&quot;shape&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc+arraydraw&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;circle&quot;,&quot;rect&quot;,&quot;path&quot;,&quot;line&quot;],editType:&quot;calc+arraydraw&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;arraydraw&quot;},xref:o({},n.xref,{}),xsizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;pixel&quot;],dflt:&quot;scaled&quot;,editType:&quot;calc+arraydraw&quot;},xanchor:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},x0:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},x1:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},yref:o({},n.yref,{}),ysizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;pixel&quot;],dflt:&quot;scaled&quot;,editType:&quot;calc+arraydraw&quot;},yanchor:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},y0:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},y1:{valType:&quot;any&quot;,editType:&quot;calc+arraydraw&quot;},path:{valType:&quot;string&quot;,editType:&quot;calc+arraydraw&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;arraydraw&quot;},line:{color:o({},i.color,{editType:&quot;arraydraw&quot;}),width:o({},i.width,{editType:&quot;calc+arraydraw&quot;}),dash:o({},a,{editType:&quot;arraydraw&quot;}),editType:&quot;calc+arraydraw&quot;},fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;arraydraw&quot;},fillrule:{valType:&quot;enumerated&quot;,values:[&quot;evenodd&quot;,&quot;nonzero&quot;],dflt:&quot;evenodd&quot;,editType:&quot;arraydraw&quot;},editable:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc+arraydraw&quot;},editType:&quot;arraydraw&quot;})},{&quot;../../constants/axis_placeable_objects&quot;:746,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../../traces/scatter/attributes&quot;:1187,&quot;../annotations/attributes&quot;:626,&quot;../drawing/attributes&quot;:664}],721:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;./constants&quot;),o=t(&quot;./helpers&quot;);function s(t){return c(t.line.width,t.xsizemode,t.x0,t.x1,t.path,!1)}function l(t){return c(t.line.width,t.ysizemode,t.y0,t.y1,t.path,!0)}function c(t,e,r,i,s,l){var c=t/2,u=l;if(&quot;pixel&quot;===e){var f=s?o.extractPathCoords(s,l?a.paramIsY:a.paramIsX):[r,i],h=n.aggNums(Math.max,null,f),p=n.aggNums(Math.min,null,f),d=p&lt;0?Math.abs(p)+c:c,g=h&gt;0?h+c:c;return{ppad:c,ppadplus:u?d:g,ppadminus:u?g:d}}return{ppad:c}}function u(t,e,r,n,i){var s=&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?t.r2c:t.d2c;if(void 0!==e)return[s(e),s(r)];if(n){var l,c,u,f,h=1/0,p=-1/0,d=n.match(a.segmentRE);for(&quot;date&quot;===t.type&amp;&amp;(s=o.decodeDate(s)),l=0;l&lt;d.length;l++)void 0!==(c=i[d[l].charAt(0)].drawn)&amp;&amp;(!(u=d[l].substr(1).match(a.paramRE))||u.length&lt;c||((f=s(u[c]))&lt;h&amp;&amp;(h=f),f&gt;p&amp;&amp;(p=f)));return p&gt;=h?[h,p]:void 0}}e.exports=function(t){var e=t._fullLayout,r=n.filterVisible(e.shapes);if(r.length&amp;&amp;t._fullData.length)for(var o=0;o&lt;r.length;o++){var c,f,h=r[o];h._extremes={};var p=i.getRefType(h.xref),d=i.getRefType(h.yref);if(&quot;paper&quot;!==h.xref&amp;&amp;&quot;domain&quot;!==p){var g=&quot;pixel&quot;===h.xsizemode?h.xanchor:h.x0,m=&quot;pixel&quot;===h.xsizemode?h.xanchor:h.x1;(f=u(c=i.getFromId(t,h.xref),g,m,h.path,a.paramIsX))&amp;&amp;(h._extremes[c._id]=i.findExtremes(c,f,s(h)))}if(&quot;paper&quot;!==h.yref&amp;&amp;&quot;domain&quot;!==d){var v=&quot;pixel&quot;===h.ysizemode?h.yanchor:h.y0,y=&quot;pixel&quot;===h.ysizemode?h.yanchor:h.y1;(f=u(c=i.getFromId(t,h.yref),v,y,h.path,a.paramIsY))&amp;&amp;(h._extremes[c._id]=i.findExtremes(c,f,l(h)))}}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./constants&quot;:722,&quot;./helpers&quot;:731}],722:[function(t,e,r){&quot;use strict&quot;;e.exports={segmentRE:/[MLHVQCTSZ][^MLHVQCTSZ]*/g,paramRE:/[^\s,]+/g,paramIsX:{M:{0:!0,drawn:0},L:{0:!0,drawn:0},H:{0:!0,drawn:0},V:{},Q:{0:!0,2:!0,drawn:2},C:{0:!0,2:!0,4:!0,drawn:4},T:{0:!0,drawn:0},S:{0:!0,2:!0,drawn:2},Z:{}},paramIsY:{M:{1:!0,drawn:1},L:{1:!0,drawn:1},H:{},V:{0:!0,drawn:0},Q:{1:!0,3:!0,drawn:3},C:{1:!0,3:!0,5:!0,drawn:5},T:{1:!0,drawn:1},S:{1:!0,3:!0,drawn:5},Z:{}},numParams:{M:2,L:2,H:1,V:1,Q:4,C:6,T:2,S:4,Z:0}}},{}],723:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/array_container_defaults&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;./helpers&quot;);function l(t,e,r){function a(r,i){return n.coerce(t,e,o,r,i)}if(a(&quot;visible&quot;)){var l=a(&quot;path&quot;),c=a(&quot;type&quot;,l?&quot;path&quot;:&quot;rect&quot;);&quot;path&quot;!==e.type&amp;&amp;delete e.path,a(&quot;editable&quot;),a(&quot;layer&quot;),a(&quot;opacity&quot;),a(&quot;fillcolor&quot;),a(&quot;fillrule&quot;),a(&quot;line.width&quot;)&amp;&amp;(a(&quot;line.color&quot;),a(&quot;line.dash&quot;));for(var u=a(&quot;xsizemode&quot;),f=a(&quot;ysizemode&quot;),h=[&quot;x&quot;,&quot;y&quot;],p=0;p&lt;2;p++){var d,g,m,v=h[p],y=v+&quot;anchor&quot;,x=&quot;x&quot;===v?u:f,b={_fullLayout:r},_=i.coerceRef(t,e,b,v,void 0,&quot;paper&quot;);if(&quot;range&quot;===i.getRefType(_)?((d=i.getFromId(b,_))._shapeIndices.push(e._index),m=s.rangeToShapePosition(d),g=s.shapePositionToRange(d)):g=m=n.identity,&quot;path&quot;!==c){var w=v+&quot;0&quot;,T=v+&quot;1&quot;,k=t[w],M=t[T];t[w]=g(t[w],!0),t[T]=g(t[T],!0),&quot;pixel&quot;===x?(a(w,0),a(T,10)):(i.coercePosition(e,b,a,_,w,.25),i.coercePosition(e,b,a,_,T,.75)),e[w]=m(e[w]),e[T]=m(e[T]),t[w]=k,t[T]=M}if(&quot;pixel&quot;===x){var A=t[y];t[y]=g(t[y],!0),i.coercePosition(e,b,a,_,y,.25),e[y]=m(e[y]),t[y]=A}}&quot;path&quot;===c?a(&quot;path&quot;):n.noneOrAll(t,e,[&quot;x0&quot;,&quot;x1&quot;,&quot;y0&quot;,&quot;y1&quot;])}}e.exports=function(t,e){a(t,e,{name:&quot;shapes&quot;,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:720,&quot;./helpers&quot;:731}],724:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;./draw_newshape/helpers&quot;).readPaths,s=t(&quot;./draw_newshape/display_outlines&quot;),l=t(&quot;../../plots/cartesian/handle_outline&quot;).clearOutlineControllers,c=t(&quot;../color&quot;),u=t(&quot;../drawing&quot;),f=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,h=t(&quot;../dragelement&quot;),p=t(&quot;../../lib/setcursor&quot;),d=t(&quot;./constants&quot;),g=t(&quot;./helpers&quot;);function m(t){var e=t._fullLayout;for(var r in e._shapeUpperLayer.selectAll(&quot;path&quot;).remove(),e._shapeLowerLayer.selectAll(&quot;path&quot;).remove(),e._plots){var n=e._plots[r].shapelayer;n&amp;&amp;n.selectAll(&quot;path&quot;).remove()}for(var i=0;i&lt;e.shapes.length;i++)e.shapes[i].visible&amp;&amp;x(t,i)}function v(t){return!!t._fullLayout._drawing}function y(t){return!t._context.edits.shapePosition}function x(t,e){t._fullLayout._paperdiv.selectAll('.shapelayer [data-index=&quot;'+e+'&quot;]').remove();var r=g.makeOptionsAndPlotinfo(t,e),l=r.options,x=r.plotinfo;if(l._input&amp;&amp;!1!==l.visible)if(&quot;below&quot;!==l.layer)k(t._fullLayout._shapeUpperLayer);else if(&quot;paper&quot;===l.xref||&quot;paper&quot;===l.yref)k(t._fullLayout._shapeLowerLayer);else{if(x._hadPlotinfo)k((x.mainplotinfo||x).shapelayer);else k(t._fullLayout._shapeLowerLayer)}function k(r){var k=_(t,l),M={&quot;data-index&quot;:e,&quot;fill-rule&quot;:l.fillrule,d:k},A=l.opacity,S=l.fillcolor,E=l.line.width?l.line.color:&quot;rgba(0,0,0,0)&quot;,C=l.line.width,L=l.line.dash;C||!0!==l.editable||(C=5,L=&quot;solid&quot;);var I=&quot;Z&quot;!==k[k.length-1],P=y(t)&amp;&amp;l.editable&amp;&amp;t._fullLayout._activeShapeIndex===e;P&amp;&amp;(S=I?&quot;rgba(0,0,0,0)&quot;:t._fullLayout.activeshape.fillcolor,A=t._fullLayout.activeshape.opacity);var z,O=r.append(&quot;path&quot;).attr(M).style(&quot;opacity&quot;,A).call(c.stroke,E).call(c.fill,S).call(u.dashLine,L,C);if(b(O,t,l),(P||t._context.edits.shapePosition)&amp;&amp;(z=f(t.layout,&quot;shapes&quot;,l)),P){O.style({cursor:&quot;move&quot;});var D={element:O.node(),plotinfo:x,gd:t,editHelpers:z,isActiveShape:!0},R=o(k,t);s(R,O,D)}else t._context.edits.shapePosition?function(t,e,r,o,s,l){var c,f,m,y,x,T,k,M,A,S,E,C,L,I,P,z,O=&quot;pixel&quot;===r.xsizemode,D=&quot;pixel&quot;===r.ysizemode,R=&quot;line&quot;===r.type,F=&quot;path&quot;===r.type,B=l.modifyItem,N=a.getFromId(t,r.xref),j=a.getRefType(r.xref),U=a.getFromId(t,r.yref),V=a.getRefType(r.yref),q=g.getDataToPixel(t,N,!1,j),H=g.getDataToPixel(t,U,!0,V),G=g.getPixelToData(t,N,!1,j),Y=g.getPixelToData(t,U,!0,V),W=R?function(){var t=Math.max(r.line.width,10),n=s.append(&quot;g&quot;).attr(&quot;data-index&quot;,o);n.append(&quot;path&quot;).attr(&quot;d&quot;,e.attr(&quot;d&quot;)).style({cursor:&quot;move&quot;,&quot;stroke-width&quot;:t,&quot;stroke-opacity&quot;:&quot;0&quot;});var i={&quot;fill-opacity&quot;:&quot;0&quot;},a=Math.max(t/2,10);return n.append(&quot;circle&quot;).attr({&quot;data-line-point&quot;:&quot;start-point&quot;,cx:O?q(r.xanchor)+r.x0:q(r.x0),cy:D?H(r.yanchor)-r.y0:H(r.y0),r:a}).style(i).classed(&quot;cursor-grab&quot;,!0),n.append(&quot;circle&quot;).attr({&quot;data-line-point&quot;:&quot;end-point&quot;,cx:O?q(r.xanchor)+r.x1:q(r.x1),cy:D?H(r.yanchor)-r.y1:H(r.y1),r:a}).style(i).classed(&quot;cursor-grab&quot;,!0),n}():e,X={element:W.node(),gd:t,prepFn:function(n){if(v(t))return;O&amp;&amp;(x=q(r.xanchor));D&amp;&amp;(T=H(r.yanchor));&quot;path&quot;===r.type?P=r.path:(c=O?r.x0:q(r.x0),f=D?r.y0:H(r.y0),m=O?r.x1:q(r.x1),y=D?r.y1:H(r.y1));c&lt;m?(A=c,L=&quot;x0&quot;,S=m,I=&quot;x1&quot;):(A=m,L=&quot;x1&quot;,S=c,I=&quot;x0&quot;);!D&amp;&amp;f&lt;y||D&amp;&amp;f&gt;y?(k=f,E=&quot;y0&quot;,M=y,C=&quot;y1&quot;):(k=y,E=&quot;y1&quot;,M=f,C=&quot;y0&quot;);Z(n),Q(s,r),function(t,e,r){var n=e.xref,i=e.yref,o=a.getFromId(r,n),s=a.getFromId(r,i),l=&quot;&quot;;&quot;paper&quot;===n||o.autorange||(l+=n);&quot;paper&quot;===i||s.autorange||(l+=i);u.setClipUrl(t,l?&quot;clip&quot;+r._fullLayout._uid+l:null,r)}(e,r,t),X.moveFn=&quot;move&quot;===z?J:K,X.altKey=n.altKey},doneFn:function(){if(v(t))return;p(e),$(s),b(e,t,r),n.call(&quot;_guiRelayout&quot;,t,l.getUpdateObj())},clickFn:function(){if(v(t))return;$(s)}};function Z(r){if(v(t))z=null;else if(R)z=&quot;path&quot;===r.target.tagName?&quot;move&quot;:&quot;start-point&quot;===r.target.attributes[&quot;data-line-point&quot;].value?&quot;resize-over-start-point&quot;:&quot;resize-over-end-point&quot;;else{var n=X.element.getBoundingClientRect(),i=n.right-n.left,a=n.bottom-n.top,o=r.clientX-n.left,s=r.clientY-n.top,l=!F&amp;&amp;i&gt;10&amp;&amp;a&gt;10&amp;&amp;!r.shiftKey?h.getCursor(o/i,1-s/a):&quot;move&quot;;p(e,l),z=l.split(&quot;-&quot;)[0]}}function J(n,i){if(&quot;path&quot;===r.type){var a=function(t){return t},o=a,l=a;O?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(o=function(t){return G(q(t)+n)},N&amp;&amp;&quot;date&quot;===N.type&amp;&amp;(o=g.encodeDate(o))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(l=function(t){return Y(H(t)+i)},U&amp;&amp;&quot;date&quot;===U.type&amp;&amp;(l=g.encodeDate(l))),B(&quot;path&quot;,r.path=w(P,o,l))}else O?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(B(&quot;x0&quot;,r.x0=G(c+n)),B(&quot;x1&quot;,r.x1=G(m+n))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(B(&quot;y0&quot;,r.y0=Y(f+i)),B(&quot;y1&quot;,r.y1=Y(y+i)));e.attr(&quot;d&quot;,_(t,r)),Q(s,r)}function K(n,i){if(F){var a=function(t){return t},o=a,l=a;O?B(&quot;xanchor&quot;,r.xanchor=G(x+n)):(o=function(t){return G(q(t)+n)},N&amp;&amp;&quot;date&quot;===N.type&amp;&amp;(o=g.encodeDate(o))),D?B(&quot;yanchor&quot;,r.yanchor=Y(T+i)):(l=function(t){return Y(H(t)+i)},U&amp;&amp;&quot;date&quot;===U.type&amp;&amp;(l=g.encodeDate(l))),B(&quot;path&quot;,r.path=w(P,o,l))}else if(R){if(&quot;resize-over-start-point&quot;===z){var u=c+n,h=D?f-i:f+i;B(&quot;x0&quot;,r.x0=O?u:G(u)),B(&quot;y0&quot;,r.y0=D?h:Y(h))}else if(&quot;resize-over-end-point&quot;===z){var p=m+n,d=D?y-i:y+i;B(&quot;x1&quot;,r.x1=O?p:G(p)),B(&quot;y1&quot;,r.y1=D?d:Y(d))}}else{var v=function(t){return-1!==z.indexOf(t)},b=v(&quot;n&quot;),j=v(&quot;s&quot;),V=v(&quot;w&quot;),W=v(&quot;e&quot;),X=b?k+i:k,Z=j?M+i:M,J=V?A+n:A,K=W?S+n:S;D&amp;&amp;(b&amp;&amp;(X=k-i),j&amp;&amp;(Z=M-i)),(!D&amp;&amp;Z-X&gt;10||D&amp;&amp;X-Z&gt;10)&amp;&amp;(B(E,r[E]=D?X:Y(X)),B(C,r[C]=D?Z:Y(Z))),K-J&gt;10&amp;&amp;(B(L,r[L]=O?J:G(J)),B(I,r[I]=O?K:G(K)))}e.attr(&quot;d&quot;,_(t,r)),Q(s,r)}function Q(t,e){(O||D)&amp;&amp;function(){var r=&quot;path&quot;!==e.type,n=t.selectAll(&quot;.visual-cue&quot;).data([0]);n.enter().append(&quot;path&quot;).attr({fill:&quot;#fff&quot;,&quot;fill-rule&quot;:&quot;evenodd&quot;,stroke:&quot;#000&quot;,&quot;stroke-width&quot;:1}).classed(&quot;visual-cue&quot;,!0);var a=q(O?e.xanchor:i.midRange(r?[e.x0,e.x1]:g.extractPathCoords(e.path,d.paramIsX))),o=H(D?e.yanchor:i.midRange(r?[e.y0,e.y1]:g.extractPathCoords(e.path,d.paramIsY)));if(a=g.roundPositionForSharpStrokeRendering(a,1),o=g.roundPositionForSharpStrokeRendering(o,1),O&amp;&amp;D){var s=&quot;M&quot;+(a-1-1)+&quot;,&quot;+(o-1-1)+&quot;h-8v2h8 v8h2v-8 h8v-2h-8 v-8h-2 Z&quot;;n.attr(&quot;d&quot;,s)}else if(O){var l=&quot;M&quot;+(a-1-1)+&quot;,&quot;+(o-9-1)+&quot;v18 h2 v-18 Z&quot;;n.attr(&quot;d&quot;,l)}else{var c=&quot;M&quot;+(a-9-1)+&quot;,&quot;+(o-1-1)+&quot;h18 v2 h-18 Z&quot;;n.attr(&quot;d&quot;,c)}}()}function $(t){t.selectAll(&quot;.visual-cue&quot;).remove()}h.init(X),W.node().onmousemove=Z}(t,O,l,e,r,z):!0===l.editable&amp;&amp;O.style(&quot;pointer-events&quot;,I||c.opacity(S)*A&lt;=.5?&quot;stroke&quot;:&quot;all&quot;);O.node().addEventListener(&quot;click&quot;,(function(){return function(t,e){if(!y(t))return;var r=+e.node().getAttribute(&quot;data-index&quot;);if(r&gt;=0){if(r===t._fullLayout._activeShapeIndex)return void T(t);t._fullLayout._activeShapeIndex=r,t._fullLayout._deactivateShape=T,m(t)}}(t,O)}))}}function b(t,e,r){var n=(r.xref+r.yref).replace(/paper/g,&quot;&quot;).replace(/[xyz][1-9]* *domain/g,&quot;&quot;);u.setClipUrl(t,n?&quot;clip&quot;+e._fullLayout._uid+n:null,e)}function _(t,e){var r,n,o,s,l,c,u,f,h=e.type,p=a.getRefType(e.xref),m=a.getRefType(e.yref),v=a.getFromId(t,e.xref),y=a.getFromId(t,e.yref),x=t._fullLayout._size;if(v?&quot;domain&quot;===p?n=function(t){return v._offset+v._length*t}:(r=g.shapePositionToRange(v),n=function(t){return v._offset+v.r2p(r(t,!0))}):n=function(t){return x.l+x.w*t},y?&quot;domain&quot;===m?s=function(t){return y._offset+y._length*(1-t)}:(o=g.shapePositionToRange(y),s=function(t){return y._offset+y.r2p(o(t,!0))}):s=function(t){return x.t+x.h*(1-t)},&quot;path&quot;===h)return v&amp;&amp;&quot;date&quot;===v.type&amp;&amp;(n=g.decodeDate(n)),y&amp;&amp;&quot;date&quot;===y.type&amp;&amp;(s=g.decodeDate(s)),function(t,e,r){var n=t.path,a=t.xsizemode,o=t.ysizemode,s=t.xanchor,l=t.yanchor;return n.replace(d.segmentRE,(function(t){var n=0,c=t.charAt(0),u=d.paramIsX[c],f=d.paramIsY[c],h=d.numParams[c],p=t.substr(1).replace(d.paramRE,(function(t){return u[n]?t=&quot;pixel&quot;===a?e(s)+Number(t):e(t):f[n]&amp;&amp;(t=&quot;pixel&quot;===o?r(l)-Number(t):r(t)),++n&gt;h&amp;&amp;(t=&quot;X&quot;),t}));return n&gt;h&amp;&amp;(p=p.replace(/[\s,]*X.*/,&quot;&quot;),i.log(&quot;Ignoring extra params in segment &quot;+t)),c+p}))}(e,n,s);if(&quot;pixel&quot;===e.xsizemode){var b=n(e.xanchor);l=b+e.x0,c=b+e.x1}else l=n(e.x0),c=n(e.x1);if(&quot;pixel&quot;===e.ysizemode){var _=s(e.yanchor);u=_-e.y0,f=_-e.y1}else u=s(e.y0),f=s(e.y1);if(&quot;line&quot;===h)return&quot;M&quot;+l+&quot;,&quot;+u+&quot;L&quot;+c+&quot;,&quot;+f;if(&quot;rect&quot;===h)return&quot;M&quot;+l+&quot;,&quot;+u+&quot;H&quot;+c+&quot;V&quot;+f+&quot;H&quot;+l+&quot;Z&quot;;var w=(l+c)/2,T=(u+f)/2,k=Math.abs(w-l),M=Math.abs(T-u),A=&quot;A&quot;+k+&quot;,&quot;+M,S=w+k+&quot;,&quot;+T;return&quot;M&quot;+S+A+&quot; 0 1,1 &quot;+(w+&quot;,&quot;+(T-M))+A+&quot; 0 0,1 &quot;+S+&quot;Z&quot;}function w(t,e,r){return t.replace(d.segmentRE,(function(t){var n=0,i=t.charAt(0),a=d.paramIsX[i],o=d.paramIsY[i],s=d.numParams[i];return i+t.substr(1).replace(d.paramRE,(function(t){return n&gt;=s||(a[n]?t=e(t):o[n]&amp;&amp;(t=r(t)),n++),t}))}))}function T(t){y(t)&amp;&amp;(t._fullLayout._activeShapeIndex&gt;=0&amp;&amp;(l(t),delete t._fullLayout._activeShapeIndex,m(t)))}e.exports={draw:m,drawOne:x,eraseActiveShape:function(t){if(!y(t))return;l(t);var e=t._fullLayout._activeShapeIndex,r=(t.layout||{}).shapes||[];if(e&lt;r.length){for(var i=[],a=0;a&lt;r.length;a++)a!==e&amp;&amp;i.push(r[a]);delete t._fullLayout._activeShapeIndex,n.call(&quot;_guiRelayout&quot;,t,{shapes:i})}}}},{&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/handle_outline&quot;:838,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../dragelement&quot;:662,&quot;../drawing&quot;:665,&quot;./constants&quot;:722,&quot;./draw_newshape/display_outlines&quot;:728,&quot;./draw_newshape/helpers&quot;:729,&quot;./helpers&quot;:731}],725:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../drawing/attributes&quot;).dash,i=t(&quot;../../../lib/extend&quot;).extendFlat;e.exports={newshape:{line:{color:{valType:&quot;color&quot;,editType:&quot;none&quot;},width:{valType:&quot;number&quot;,min:0,dflt:4,editType:&quot;none&quot;},dash:i({},n,{dflt:&quot;solid&quot;,editType:&quot;none&quot;}),editType:&quot;none&quot;},fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;none&quot;},fillrule:{valType:&quot;enumerated&quot;,values:[&quot;evenodd&quot;,&quot;nonzero&quot;],dflt:&quot;evenodd&quot;,editType:&quot;none&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;none&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;below&quot;,&quot;above&quot;],dflt:&quot;above&quot;,editType:&quot;none&quot;},drawdirection:{valType:&quot;enumerated&quot;,values:[&quot;ortho&quot;,&quot;horizontal&quot;,&quot;vertical&quot;,&quot;diagonal&quot;],dflt:&quot;diagonal&quot;,editType:&quot;none&quot;},editType:&quot;none&quot;},activeshape:{fillcolor:{valType:&quot;color&quot;,dflt:&quot;rgb(255,0,255)&quot;,editType:&quot;none&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;none&quot;},editType:&quot;none&quot;}}},{&quot;../../../lib/extend&quot;:768,&quot;../../drawing/attributes&quot;:664}],726:[function(t,e,r){&quot;use strict&quot;;e.exports={CIRCLE_SIDES:32,i000:0,i090:8,i180:16,i270:24,cos45:Math.cos(Math.PI/4),sin45:Math.sin(Math.PI/4),SQRT2:Math.sqrt(2)}},{}],727:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../color&quot;);e.exports=function(t,e,r){if(r(&quot;newshape.drawdirection&quot;),r(&quot;newshape.layer&quot;),r(&quot;newshape.fillcolor&quot;),r(&quot;newshape.fillrule&quot;),r(&quot;newshape.opacity&quot;),r(&quot;newshape.line.width&quot;)){var i=(t||{}).plot_bgcolor||&quot;#FFF&quot;;r(&quot;newshape.line.color&quot;,n.contrast(i)),r(&quot;newshape.line.dash&quot;)}r(&quot;activeshape.fillcolor&quot;),r(&quot;activeshape.opacity&quot;)}},{&quot;../../color&quot;:643}],728:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../dragelement&quot;),i=t(&quot;../../dragelement/helpers&quot;).drawMode,a=t(&quot;../../../registry&quot;),o=t(&quot;./constants&quot;),s=o.i000,l=o.i090,c=o.i180,u=o.i270,f=t(&quot;../../../plots/cartesian/handle_outline&quot;).clearOutlineControllers,h=t(&quot;./helpers&quot;),p=h.pointsShapeRectangle,d=h.pointsShapeEllipse,g=h.writePaths,m=t(&quot;./newshapes&quot;);e.exports=function t(e,r,o,h){h||(h=0);var v=o.gd;function y(){t(e,r,o,h++),d(e[0])&amp;&amp;x({redrawing:!0})}function x(t){o.isActiveShape=!1;var e=m(r,o);Object.keys(e).length&amp;&amp;a.call((t||{}).redrawing?&quot;relayout&quot;:&quot;_guiRelayout&quot;,v,e)}var b,_,w,T,k,M=o.isActiveShape,A=v._fullLayout._zoomlayer,S=o.dragmode;(i(S)?v._fullLayout._drawing=!0:v._fullLayout._activeShapeIndex&gt;=0&amp;&amp;f(v),r.attr(&quot;d&quot;,g(e)),M&amp;&amp;!h)&amp;&amp;(k=function(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r];t[r]=[];for(var i=0;i&lt;n.length;i++){t[r][i]=[];for(var a=0;a&lt;n[i].length;a++)t[r][i][a]=n[i][a]}}return t}([],e),function(t){b=[];for(var r=0;r&lt;e.length;r++){var i=e[r],a=!p(i)&amp;&amp;d(i);b[r]=[];for(var o=0;o&lt;i.length;o++)if(&quot;Z&quot;!==i[o][0]&amp;&amp;(!a||o===s||o===l||o===c||o===u)){var f=i[o][1],h=i[o][2],g=t.append(&quot;circle&quot;).classed(&quot;cursor-grab&quot;,!0).attr(&quot;data-i&quot;,r).attr(&quot;data-j&quot;,o).attr(&quot;cx&quot;,f).attr(&quot;cy&quot;,h).attr(&quot;r&quot;,4).style({&quot;mix-blend-mode&quot;:&quot;luminosity&quot;,fill:&quot;black&quot;,stroke:&quot;white&quot;,&quot;stroke-width&quot;:1});b[r][o]={element:g.node(),gd:v,prepFn:E,doneFn:L,clickFn:I},n.init(b[r][o])}}}(A.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;outline-controllers&quot;)),function(){if(_=[],!e.length)return;_[0]={element:r[0][0],gd:v,prepFn:z,doneFn:O},n.init(_[0])}());function E(t){w=+t.srcElement.getAttribute(&quot;data-i&quot;),T=+t.srcElement.getAttribute(&quot;data-j&quot;),b[w][T].moveFn=C}function C(t,r){if(e.length){var n=k[w][T][1],i=k[w][T][2],a=e[w],o=a.length;if(p(a)){for(var s=0;s&lt;o;s++)if(s!==T){var l=a[s];l[1]===a[T][1]&amp;&amp;(l[1]=n+t),l[2]===a[T][2]&amp;&amp;(l[2]=i+r)}if(a[T][1]=n+t,a[T][2]=i+r,!p(a))for(var c=0;c&lt;o;c++)for(var u=0;u&lt;a[c].length;u++)a[c][u]=k[w][c][u]}else a[T][1]=n+t,a[T][2]=i+r;y()}}function L(){x()}function I(t,r){if(2===t){w=+r.srcElement.getAttribute(&quot;data-i&quot;),T=+r.srcElement.getAttribute(&quot;data-j&quot;);var n=e[w];p(n)||d(n)||function(){if(e.length&amp;&amp;e[w]&amp;&amp;e[w].length){for(var t=[],r=0;r&lt;e[w].length;r++)r!==T&amp;&amp;t.push(e[w][r]);t.length&gt;1&amp;&amp;(2!==t.length||&quot;Z&quot;!==t[1][0])&amp;&amp;(0===T&amp;&amp;(t[0][0]=&quot;M&quot;),e[w]=t,y(),x())}}()}}function P(t,r){!function(t,r){if(e.length)for(var n=0;n&lt;e.length;n++)for(var i=0;i&lt;e[n].length;i++)for(var a=0;a+2&lt;e[n][i].length;a+=2)e[n][i][a+1]=k[n][i][a+1]+t,e[n][i][a+2]=k[n][i][a+2]+r}(t,r),y()}function z(t){(w=+t.srcElement.getAttribute(&quot;data-i&quot;))||(w=0),_[w].moveFn=P}function O(){x()}}},{&quot;../../../plots/cartesian/handle_outline&quot;:838,&quot;../../../registry&quot;:911,&quot;../../dragelement&quot;:662,&quot;../../dragelement/helpers&quot;:661,&quot;./constants&quot;:726,&quot;./helpers&quot;:729,&quot;./newshapes&quot;:730}],729:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;parse-svg-path&quot;),i=t(&quot;./constants&quot;),a=i.CIRCLE_SIDES,o=i.SQRT2,s=t(&quot;../../../plots/cartesian/helpers&quot;),l=s.p2r,c=s.r2p,u=[0,3,4,5,6,1,2],f=[0,3,4,1,2];function h(t,e){return Math.abs(t-e)&lt;=1e-6}function p(t,e){var r=e[1]-t[1],n=e[2]-t[2];return Math.sqrt(r*r+n*n)}r.writePaths=function(t){var e=t.length;if(!e)return&quot;M0,0Z&quot;;for(var r=&quot;&quot;,n=0;n&lt;e;n++)for(var i=t[n].length,a=0;a&lt;i;a++){var o=t[n][a][0];if(&quot;Z&quot;===o)r+=&quot;Z&quot;;else for(var s=t[n][a].length,l=0;l&lt;s;l++){var c=l;&quot;Q&quot;===o||&quot;S&quot;===o?c=f[l]:&quot;C&quot;===o&amp;&amp;(c=u[l]),r+=t[n][a][c],l&gt;0&amp;&amp;l&lt;s-1&amp;&amp;(r+=&quot;,&quot;)}}return r},r.readPaths=function(t,e,r,i){var o,s,u,f=n(t),h=[],p=-1,d=0,g=0,m=function(){s=d,u=g};m();for(var v=0;v&lt;f.length;v++){var y,x,b,_,w=[],T=f[v][0],k=T;switch(T){case&quot;M&quot;:p++,h[p]=[],d=+f[v][1],g=+f[v][2],w.push([k,d,g]),m();break;case&quot;Q&quot;:case&quot;S&quot;:y=+f[v][1],b=+f[v][2],d=+f[v][3],g=+f[v][4],w.push([k,d,g,y,b]);break;case&quot;C&quot;:y=+f[v][1],b=+f[v][2],x=+f[v][3],_=+f[v][4],d=+f[v][5],g=+f[v][6],w.push([k,d,g,y,b,x,_]);break;case&quot;T&quot;:case&quot;L&quot;:d=+f[v][1],g=+f[v][2],w.push([k,d,g]);break;case&quot;H&quot;:k=&quot;L&quot;,d=+f[v][1],w.push([k,d,g]);break;case&quot;V&quot;:k=&quot;L&quot;,g=+f[v][1],w.push([k,d,g]);break;case&quot;A&quot;:k=&quot;L&quot;;var M=+f[v][1],A=+f[v][2];+f[v][4]||(M=-M,A=-A);var S=d-M,E=g;for(o=1;o&lt;=a/2;o++){var C=2*Math.PI*o/a;w.push([k,S+M*Math.cos(C),E+A*Math.sin(C)])}break;case&quot;Z&quot;:d===s&amp;&amp;g===u||(d=s,g=u,w.push([k,d,g]))}for(var L=(r||{}).domain,I=e._fullLayout._size,P=r&amp;&amp;&quot;pixel&quot;===r.xsizemode,z=r&amp;&amp;&quot;pixel&quot;===r.ysizemode,O=!1===i,D=0;D&lt;w.length;D++){for(o=0;o+2&lt;7;o+=2){var R=w[D][o+1],F=w[D][o+2];void 0!==R&amp;&amp;void 0!==F&amp;&amp;(d=R,g=F,r&amp;&amp;(r.xaxis&amp;&amp;r.xaxis.p2r?(O&amp;&amp;(R-=r.xaxis._offset),R=P?c(r.xaxis,r.xanchor)+R:l(r.xaxis,R)):(O&amp;&amp;(R-=I.l),L?R=L.x[0]+R/I.w:R/=I.w),r.yaxis&amp;&amp;r.yaxis.p2r?(O&amp;&amp;(F-=r.yaxis._offset),F=z?c(r.yaxis,r.yanchor)-F:l(r.yaxis,F)):(O&amp;&amp;(F-=I.t),F=L?L.y[1]-F/I.h:1-F/I.h)),w[D][o+1]=R,w[D][o+2]=F)}h[p].push(w[D].slice())}}return h},r.pointsShapeRectangle=function(t){if(5!==t.length)return!1;for(var e=1;e&lt;3;e++){if(!h(t[0][e]-t[1][e],t[3][e]-t[2][e]))return!1;if(!h(t[0][e]-t[3][e],t[1][e]-t[2][e]))return!1}return!(!h(t[0][1],t[1][1])&amp;&amp;!h(t[0][1],t[3][1]))&amp;&amp;!!(p(t[0],t[1])*p(t[0],t[3]))},r.pointsShapeEllipse=function(t){var e=t.length;if(e!==a+1)return!1;e=a;for(var r=0;r&lt;e;r++){var n=(2*e-r)%e,i=(e/2+n)%e,o=(e/2+r)%e;if(!h(p(t[r],t[o]),p(t[n],t[i])))return!1}return!0},r.handleEllipse=function(t,e,n){if(!t)return[e,n];var i=r.ellipseOver({x0:e[0],y0:e[1],x1:n[0],y1:n[1]}),s=(i.x1+i.x0)/2,l=(i.y1+i.y0)/2,c=(i.x1-i.x0)/2,u=(i.y1-i.y0)/2;c||(c=u/=o),u||(u=c/=o);for(var f=[],h=0;h&lt;a;h++){var p=2*h*Math.PI/a;f.push([s+c*Math.cos(p),l+u*Math.sin(p)])}return f},r.ellipseOver=function(t){var e=t.x0,r=t.y0,n=t.x1,i=t.y1,a=n-e,s=i-r,l=((e-=a)+n)/2,c=((r-=s)+i)/2;return{x0:l-(a*=o),y0:c-(s*=o),x1:l+a,y1:c+s}}},{&quot;../../../plots/cartesian/helpers&quot;:839,&quot;./constants&quot;:726,&quot;parse-svg-path&quot;:505}],730:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../dragelement/helpers&quot;),i=n.drawMode,a=n.openMode,o=t(&quot;./constants&quot;),s=o.i000,l=o.i090,c=o.i180,u=o.i270,f=o.cos45,h=o.sin45,p=t(&quot;../../../plots/cartesian/helpers&quot;),d=p.p2r,g=p.r2p,m=t(&quot;../../../plots/cartesian/handle_outline&quot;).clearSelect,v=t(&quot;./helpers&quot;),y=v.readPaths,x=v.writePaths,b=v.ellipseOver;e.exports=function(t,e){if(t.length){var r=t[0][0];if(r){var n=r.getAttribute(&quot;d&quot;),o=e.gd,p=o._fullLayout.newshape,v=e.plotinfo,_=v.xaxis,w=v.yaxis,T=!!v.domain||!v.xaxis,k=!!v.domain||!v.yaxis,M=e.isActiveShape,A=e.dragmode,S=(o.layout||{}).shapes||[];if(!i(A)&amp;&amp;void 0!==M){var E=o._fullLayout._activeShapeIndex;if(E&lt;S.length)switch(o._fullLayout.shapes[E].type){case&quot;rect&quot;:A=&quot;drawrect&quot;;break;case&quot;circle&quot;:A=&quot;drawcircle&quot;;break;case&quot;line&quot;:A=&quot;drawline&quot;;break;case&quot;path&quot;:var C=S[E].path||&quot;&quot;;A=&quot;Z&quot;===C[C.length-1]?&quot;drawclosedpath&quot;:&quot;drawopenpath&quot;}}var L,I=a(A),P=y(n,o,v,M),z={editable:!0,xref:T?&quot;paper&quot;:_._id,yref:k?&quot;paper&quot;:w._id,layer:p.layer,opacity:p.opacity,line:{color:p.line.color,width:p.line.width,dash:p.line.dash}};if(I||(z.fillcolor=p.fillcolor,z.fillrule=p.fillrule),1===P.length&amp;&amp;(L=P[0]),L&amp;&amp;&quot;drawrect&quot;===A)z.type=&quot;rect&quot;,z.x0=L[0][1],z.y0=L[0][2],z.x1=L[2][1],z.y1=L[2][2];else if(L&amp;&amp;&quot;drawline&quot;===A)z.type=&quot;line&quot;,z.x0=L[0][1],z.y0=L[0][2],z.x1=L[1][1],z.y1=L[1][2];else if(L&amp;&amp;&quot;drawcircle&quot;===A){z.type=&quot;circle&quot;;var O=L[s][1],D=L[l][1],R=L[c][1],F=L[u][1],B=L[s][2],N=L[l][2],j=L[c][2],U=L[u][2],V=v.xaxis&amp;&amp;(&quot;date&quot;===v.xaxis.type||&quot;log&quot;===v.xaxis.type),q=v.yaxis&amp;&amp;(&quot;date&quot;===v.yaxis.type||&quot;log&quot;===v.yaxis.type);V&amp;&amp;(O=g(v.xaxis,O),D=g(v.xaxis,D),R=g(v.xaxis,R),F=g(v.xaxis,F)),q&amp;&amp;(B=g(v.yaxis,B),N=g(v.yaxis,N),j=g(v.yaxis,j),U=g(v.yaxis,U));var H=(D+F)/2,G=(B+j)/2,Y=b({x0:H,y0:G,x1:H+(F-D+R-O)/2*f,y1:G+(U-N+j-B)/2*h});V&amp;&amp;(Y.x0=d(v.xaxis,Y.x0),Y.x1=d(v.xaxis,Y.x1)),q&amp;&amp;(Y.y0=d(v.yaxis,Y.y0),Y.y1=d(v.yaxis,Y.y1)),z.x0=Y.x0,z.y0=Y.y0,z.x1=Y.x1,z.y1=Y.y1}else z.type=&quot;path&quot;,_&amp;&amp;w&amp;&amp;function(t,e,r){var n=&quot;date&quot;===e.type,i=&quot;date&quot;===r.type;if(!n&amp;&amp;!i)return t;for(var a=0;a&lt;t.length;a++)for(var o=0;o&lt;t[a].length;o++)for(var s=0;s+2&lt;t[a][o].length;s+=2)n&amp;&amp;(t[a][o][s+1]=t[a][o][s+1].replace(&quot; &quot;,&quot;_&quot;)),i&amp;&amp;(t[a][o][s+2]=t[a][o][s+2].replace(&quot; &quot;,&quot;_&quot;))}(P,_,w),z.path=x(P),L=null;m(o);for(var W=e.editHelpers,X=(W||{}).modifyItem,Z=[],J=0;J&lt;S.length;J++){var K=o._fullLayout.shapes[J];if(Z[J]=K._input,void 0!==M&amp;&amp;J===o._fullLayout._activeShapeIndex){var Q=z;switch(K.type){case&quot;line&quot;:case&quot;rect&quot;:case&quot;circle&quot;:X(&quot;x0&quot;,Q.x0),X(&quot;x1&quot;,Q.x1),X(&quot;y0&quot;,Q.y0),X(&quot;y1&quot;,Q.y1);break;case&quot;path&quot;:X(&quot;path&quot;,Q.path)}}}return void 0===M?(Z.push(z),Z):W?W.getUpdateObj():{}}}}},{&quot;../../../plots/cartesian/handle_outline&quot;:838,&quot;../../../plots/cartesian/helpers&quot;:839,&quot;../../dragelement/helpers&quot;:661,&quot;./constants&quot;:726,&quot;./helpers&quot;:729}],731:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib&quot;);r.rangeToShapePosition=function(t){return&quot;log&quot;===t.type?t.r2d:function(t){return t}},r.shapePositionToRange=function(t){return&quot;log&quot;===t.type?t.d2r:function(t){return t}},r.decodeDate=function(t){return function(e){return e.replace&amp;&amp;(e=e.replace(&quot;_&quot;,&quot; &quot;)),t(e)}},r.encodeDate=function(t){return function(e){return t(e).replace(&quot; &quot;,&quot;_&quot;)}},r.extractPathCoords=function(t,e){var r=[];return t.match(n.segmentRE).forEach((function(t){var a=e[t.charAt(0)].drawn;if(void 0!==a){var o=t.substr(1).match(n.paramRE);!o||o.length&lt;a||r.push(i.cleanNumber(o[a]))}})),r},r.getDataToPixel=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if(&quot;domain&quot;===i)a=function(t){return e._length*(n?1-t:t)+e._offset};else{var s=r.shapePositionToRange(e);a=function(t){return e._offset+e.r2p(s(t,!0))},&quot;date&quot;===e.type&amp;&amp;(a=r.decodeDate(a))}else a=n?function(t){return o.t+o.h*(1-t)}:function(t){return o.l+o.w*t};return a},r.getPixelToData=function(t,e,n,i){var a,o=t._fullLayout._size;if(e)if(&quot;domain&quot;===i)a=function(t){var r=(t-e._offset)/e._length;return n?1-r:r};else{var s=r.rangeToShapePosition(e);a=function(t){return s(e.p2r(t-e._offset))}}else a=n?function(t){return 1-(t-o.t)/o.h}:function(t){return(t-o.l)/o.w};return a},r.roundPositionForSharpStrokeRendering=function(t,e){var r=1===Math.round(e%2),n=Math.round(t);return r?n+.5:n},r.makeOptionsAndPlotinfo=function(t,e){var r=t._fullLayout.shapes[e]||{},n=t._fullLayout._plots[r.xref+r.yref];return!!n?n._hadPlotinfo=!0:(n={},r.xref&amp;&amp;&quot;paper&quot;!==r.xref&amp;&amp;(n.xaxis=t._fullLayout[r.xref+&quot;axis&quot;]),r.yref&amp;&amp;&quot;paper&quot;!==r.yref&amp;&amp;(n.yaxis=t._fullLayout[r.yref+&quot;axis&quot;])),n.xsizemode=r.xsizemode,n.ysizemode=r.ysizemode,n.xanchor=r.xanchor,n.yanchor=r.yanchor,{options:r,plotinfo:n}}},{&quot;../../lib&quot;:778,&quot;./constants&quot;:722}],732:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./draw&quot;);e.exports={moduleType:&quot;component&quot;,name:&quot;shapes&quot;,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),supplyDrawNewShapeDefaults:t(&quot;./draw_newshape/defaults&quot;),includeBasePlot:t(&quot;../../plots/cartesian/include_components&quot;)(&quot;shapes&quot;),calcAutorange:t(&quot;./calc_autorange&quot;),draw:n.draw,drawOne:n.drawOne}},{&quot;../../plots/cartesian/include_components&quot;:840,&quot;./attributes&quot;:720,&quot;./calc_autorange&quot;:721,&quot;./defaults&quot;:723,&quot;./draw&quot;:724,&quot;./draw_newshape/defaults&quot;:727}],733:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../plots/pad_attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendDeepAll,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../plots/animation_attributes&quot;),l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=t(&quot;./constants&quot;),u=l(&quot;step&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},method:{valType:&quot;enumerated&quot;,values:[&quot;restyle&quot;,&quot;relayout&quot;,&quot;animate&quot;,&quot;update&quot;,&quot;skip&quot;],dflt:&quot;restyle&quot;},args:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},label:{valType:&quot;string&quot;},value:{valType:&quot;string&quot;},execute:{valType:&quot;boolean&quot;,dflt:!0}});e.exports=o(l(&quot;slider&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},active:{valType:&quot;number&quot;,min:0,dflt:0},steps:u,lenmode:{valType:&quot;enumerated&quot;,values:[&quot;fraction&quot;,&quot;pixels&quot;],dflt:&quot;fraction&quot;},len:{valType:&quot;number&quot;,min:0,dflt:1},x:{valType:&quot;number&quot;,min:-2,max:3,dflt:0},pad:a(i({editType:&quot;arraydraw&quot;}),{},{t:{dflt:20}}),xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,dflt:0},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;},transition:{duration:{valType:&quot;number&quot;,min:0,dflt:150},easing:{valType:&quot;enumerated&quot;,values:s.transition.easing.values,dflt:&quot;cubic-in-out&quot;}},currentvalue:{visible:{valType:&quot;boolean&quot;,dflt:!0},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;left&quot;},offset:{valType:&quot;number&quot;,dflt:10},prefix:{valType:&quot;string&quot;},suffix:{valType:&quot;string&quot;},font:n({})},font:n({}),activebgcolor:{valType:&quot;color&quot;,dflt:c.gripBgActiveColor},bgcolor:{valType:&quot;color&quot;,dflt:c.railBgColor},bordercolor:{valType:&quot;color&quot;,dflt:c.railBorderColor},borderwidth:{valType:&quot;number&quot;,min:0,dflt:c.railBorderWidth},ticklen:{valType:&quot;number&quot;,min:0,dflt:c.tickLength},tickcolor:{valType:&quot;color&quot;,dflt:c.tickColor},tickwidth:{valType:&quot;number&quot;,min:0,dflt:1},minorticklen:{valType:&quot;number&quot;,min:0,dflt:c.minorTickLength}}),&quot;arraydraw&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/animation_attributes&quot;:822,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/pad_attributes&quot;:890,&quot;./constants&quot;:734}],734:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;sliders&quot;,containerClassName:&quot;slider-container&quot;,groupClassName:&quot;slider-group&quot;,inputAreaClass:&quot;slider-input-area&quot;,railRectClass:&quot;slider-rail-rect&quot;,railTouchRectClass:&quot;slider-rail-touch-rect&quot;,gripRectClass:&quot;slider-grip-rect&quot;,tickRectClass:&quot;slider-tick-rect&quot;,inputProxyClass:&quot;slider-input-proxy&quot;,labelsClass:&quot;slider-labels&quot;,labelGroupClass:&quot;slider-label-group&quot;,labelClass:&quot;slider-label&quot;,currentValueClass:&quot;slider-current-value&quot;,railHeight:5,menuIndexAttrName:&quot;slider-active-index&quot;,autoMarginIdRoot:&quot;slider-&quot;,minWidth:30,minHeight:30,textPadX:40,arrowOffsetX:4,railRadius:2,railWidth:5,railBorder:4,railBorderWidth:1,railBorderColor:&quot;#bec8d9&quot;,railBgColor:&quot;#f8fafc&quot;,railInset:8,stepInset:10,gripRadius:10,gripWidth:20,gripHeight:20,gripBorder:20,gripBorderWidth:1,gripBorderColor:&quot;#bec8d9&quot;,gripBgColor:&quot;#f6f8fa&quot;,gripBgActiveColor:&quot;#dbdde0&quot;,labelPadding:8,labelOffset:0,tickWidth:1,tickColor:&quot;#333&quot;,tickOffset:25,tickLength:7,minorTickOffset:25,minorTickColor:&quot;#333&quot;,minorTickLength:4,currentValuePadding:8,currentValueInset:0}},{}],735:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;).name,s=a.steps;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}for(var s=i(t,e,{name:&quot;steps&quot;,handleItemDefaults:c}),l=0,u=0;u&lt;s.length;u++)s[u].visible&amp;&amp;l++;if(l&lt;2?e.visible=!1:o(&quot;visible&quot;)){e._stepCount=l;var f=e._visibleSteps=n.filterVisible(s);(s[o(&quot;active&quot;)]||{}).visible||(e.active=f[0]._index),o(&quot;x&quot;),o(&quot;y&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),o(&quot;xanchor&quot;),o(&quot;yanchor&quot;),o(&quot;len&quot;),o(&quot;lenmode&quot;),o(&quot;pad.t&quot;),o(&quot;pad.r&quot;),o(&quot;pad.b&quot;),o(&quot;pad.l&quot;),n.coerceFont(o,&quot;font&quot;,r.font),o(&quot;currentvalue.visible&quot;)&amp;&amp;(o(&quot;currentvalue.xanchor&quot;),o(&quot;currentvalue.prefix&quot;),o(&quot;currentvalue.suffix&quot;),o(&quot;currentvalue.offset&quot;),n.coerceFont(o,&quot;currentvalue.font&quot;,e.font)),o(&quot;transition.duration&quot;),o(&quot;transition.easing&quot;),o(&quot;bgcolor&quot;),o(&quot;activebgcolor&quot;),o(&quot;bordercolor&quot;),o(&quot;borderwidth&quot;),o(&quot;ticklen&quot;),o(&quot;tickwidth&quot;),o(&quot;tickcolor&quot;),o(&quot;minorticklen&quot;)}}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}if(&quot;skip&quot;===t.method||Array.isArray(t.args)?r(&quot;visible&quot;):e.visible=!1){r(&quot;method&quot;),r(&quot;args&quot;);var i=r(&quot;label&quot;,&quot;step-&quot;+e._index);r(&quot;value&quot;,i),r(&quot;execute&quot;)}}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;./attributes&quot;:733,&quot;./constants&quot;:734}],736:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../color&quot;),o=t(&quot;../drawing&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,f=t(&quot;./constants&quot;),h=t(&quot;../../constants/alignment&quot;),p=h.LINE_SPACING,d=h.FROM_TL,g=h.FROM_BR;function m(t){return f.autoMarginIdRoot+t._index}function v(t){return t._index}function y(t,e){var r=o.tester.selectAll(&quot;g.&quot;+f.labelGroupClass).data(e._visibleSteps);r.enter().append(&quot;g&quot;).classed(f.labelGroupClass,!0);var a=0,l=0;r.each((function(t){var r=_(n.select(this),{step:t},e).node();if(r){var i=o.bBox(r);l=Math.max(l,i.height),a=Math.max(a,i.width)}})),r.remove();var u=e._dims={};u.inputAreaWidth=Math.max(f.railWidth,f.gripHeight);var h=t._fullLayout._size;u.lx=h.l+h.w*e.x,u.ly=h.t+h.h*(1-e.y),&quot;fraction&quot;===e.lenmode?u.outerLength=Math.round(h.w*e.len):u.outerLength=e.len,u.inputAreaStart=0,u.inputAreaLength=Math.round(u.outerLength-e.pad.l-e.pad.r);var p=(u.inputAreaLength-2*f.stepInset)/(e._stepCount-1),v=a+f.labelPadding;if(u.labelStride=Math.max(1,Math.ceil(v/p)),u.labelHeight=l,u.currentValueMaxWidth=0,u.currentValueHeight=0,u.currentValueTotalHeight=0,u.currentValueMaxLines=1,e.currentvalue.visible){var y=o.tester.append(&quot;g&quot;);r.each((function(t){var r=x(y,e,t.label),n=r.node()&amp;&amp;o.bBox(r.node())||{width:0,height:0},i=c.lineCount(r);u.currentValueMaxWidth=Math.max(u.currentValueMaxWidth,Math.ceil(n.width)),u.currentValueHeight=Math.max(u.currentValueHeight,Math.ceil(n.height)),u.currentValueMaxLines=Math.max(u.currentValueMaxLines,i)})),u.currentValueTotalHeight=u.currentValueHeight+e.currentvalue.offset,y.remove()}u.height=u.currentValueTotalHeight+f.tickOffset+e.ticklen+f.labelOffset+u.labelHeight+e.pad.t+e.pad.b;var b=&quot;left&quot;;s.isRightAnchor(e)&amp;&amp;(u.lx-=u.outerLength,b=&quot;right&quot;),s.isCenterAnchor(e)&amp;&amp;(u.lx-=u.outerLength/2,b=&quot;center&quot;);var w=&quot;top&quot;;s.isBottomAnchor(e)&amp;&amp;(u.ly-=u.height,w=&quot;bottom&quot;),s.isMiddleAnchor(e)&amp;&amp;(u.ly-=u.height/2,w=&quot;middle&quot;),u.outerLength=Math.ceil(u.outerLength),u.height=Math.ceil(u.height),u.lx=Math.round(u.lx),u.ly=Math.round(u.ly);var T={y:e.y,b:u.height*g[w],t:u.height*d[w]};&quot;fraction&quot;===e.lenmode?(T.l=0,T.xl=e.x-e.len*d[b],T.r=0,T.xr=e.x+e.len*g[b]):(T.x=e.x,T.l=u.outerLength*d[b],T.r=u.outerLength*g[b]),i.autoMargin(t,m(e),T)}function x(t,e,r){if(e.currentvalue.visible){var n,i,a=e._dims;switch(e.currentvalue.xanchor){case&quot;right&quot;:n=a.inputAreaLength-f.currentValueInset-a.currentValueMaxWidth,i=&quot;left&quot;;break;case&quot;center&quot;:n=.5*a.inputAreaLength,i=&quot;middle&quot;;break;default:n=f.currentValueInset,i=&quot;left&quot;}var l=s.ensureSingle(t,&quot;text&quot;,f.labelClass,(function(t){t.attr({&quot;text-anchor&quot;:i,&quot;data-notex&quot;:1})})),u=e.currentvalue.prefix?e.currentvalue.prefix:&quot;&quot;;if(&quot;string&quot;==typeof r)u+=r;else{var h=e.steps[e.active].label,d=e._gd._fullLayout._meta;d&amp;&amp;(h=s.templateString(h,d)),u+=h}e.currentvalue.suffix&amp;&amp;(u+=e.currentvalue.suffix),l.call(o.font,e.currentvalue.font).text(u).call(c.convertToTspans,e._gd);var g=c.lineCount(l),m=(a.currentValueMaxLines+1-g)*e.currentvalue.font.size*p;return c.positionText(l,n,m),l}}function b(t,e,r){s.ensureSingle(t,&quot;rect&quot;,f.gripRectClass,(function(n){n.call(M,e,t,r).style(&quot;pointer-events&quot;,&quot;all&quot;)})).attr({width:f.gripWidth,height:f.gripHeight,rx:f.gripRadius,ry:f.gripRadius}).call(a.stroke,r.bordercolor).call(a.fill,r.bgcolor).style(&quot;stroke-width&quot;,r.borderwidth+&quot;px&quot;)}function _(t,e,r){var n=s.ensureSingle(t,&quot;text&quot;,f.labelClass,(function(t){t.attr({&quot;text-anchor&quot;:&quot;middle&quot;,&quot;data-notex&quot;:1})})),i=e.step.label,a=r._gd._fullLayout._meta;return a&amp;&amp;(i=s.templateString(i,a)),n.call(o.font,r.font).text(i).call(c.convertToTspans,r._gd),n}function w(t,e){var r=s.ensureSingle(t,&quot;g&quot;,f.labelsClass),i=e._dims,a=r.selectAll(&quot;g.&quot;+f.labelGroupClass).data(i.labelSteps);a.enter().append(&quot;g&quot;).classed(f.labelGroupClass,!0),a.exit().remove(),a.each((function(t){var r=n.select(this);r.call(_,t,e),o.setTranslate(r,E(e,t.fraction),f.tickOffset+e.ticklen+e.font.size*p+f.labelOffset+i.currentValueTotalHeight)}))}function T(t,e,r,n,i){var a=Math.round(n*(r._stepCount-1)),o=r._visibleSteps[a]._index;o!==r.active&amp;&amp;k(t,e,r,o,!0,i)}function k(t,e,r,n,a,o){var s=r.active;r.active=n,u(t.layout,f.name,r).applyUpdate(&quot;active&quot;,n);var l=r.steps[r.active];e.call(S,r,o),e.call(x,r),t.emit(&quot;plotly_sliderchange&quot;,{slider:r,step:r.steps[r.active],interaction:a,previousActive:s}),l&amp;&amp;l.method&amp;&amp;a&amp;&amp;(e._nextMethod?(e._nextMethod.step=l,e._nextMethod.doCallback=a,e._nextMethod.doTransition=o):(e._nextMethod={step:l,doCallback:a,doTransition:o},e._nextMethodRaf=window.requestAnimationFrame((function(){var r=e._nextMethod.step;r.method&amp;&amp;(r.execute&amp;&amp;i.executeAPICommand(t,r.method,r.args),e._nextMethod=null,e._nextMethodRaf=null)}))))}function M(t,e,r){var i=r.node(),o=n.select(e);function s(){return r.data()[0]}t.on(&quot;mousedown&quot;,(function(){var t=s();e.emit(&quot;plotly_sliderstart&quot;,{slider:t});var l=r.select(&quot;.&quot;+f.gripRectClass);n.event.stopPropagation(),n.event.preventDefault(),l.call(a.fill,t.activebgcolor);var c=C(t,n.mouse(i)[0]);T(e,r,t,c,!0),t._dragging=!0,o.on(&quot;mousemove&quot;,(function(){var t=s(),a=C(t,n.mouse(i)[0]);T(e,r,t,a,!1)})),o.on(&quot;mouseup&quot;,(function(){var t=s();t._dragging=!1,l.call(a.fill,t.bgcolor),o.on(&quot;mouseup&quot;,null),o.on(&quot;mousemove&quot;,null),e.emit(&quot;plotly_sliderend&quot;,{slider:t,step:t.steps[t.active]})}))}))}function A(t,e){var r=t.selectAll(&quot;rect.&quot;+f.tickRectClass).data(e._visibleSteps),i=e._dims;r.enter().append(&quot;rect&quot;).classed(f.tickRectClass,!0),r.exit().remove(),r.attr({width:e.tickwidth+&quot;px&quot;,&quot;shape-rendering&quot;:&quot;crispEdges&quot;}),r.each((function(t,r){var s=r%i.labelStride==0,l=n.select(this);l.attr({height:s?e.ticklen:e.minorticklen}).call(a.fill,e.tickcolor),o.setTranslate(l,E(e,r/(e._stepCount-1))-.5*e.tickwidth,(s?f.tickOffset:f.minorTickOffset)+i.currentValueTotalHeight)}))}function S(t,e,r){for(var n=t.select(&quot;rect.&quot;+f.gripRectClass),i=0,a=0;a&lt;e._stepCount;a++)if(e._visibleSteps[a]._index===e.active){i=a;break}var o=E(e,i/(e._stepCount-1));if(!e._invokingCommand){var s=n;r&amp;&amp;e.transition.duration&gt;0&amp;&amp;(s=s.transition().duration(e.transition.duration).ease(e.transition.easing)),s.attr(&quot;transform&quot;,l(o-.5*f.gripWidth,e._dims.currentValueTotalHeight))}}function E(t,e){var r=t._dims;return r.inputAreaStart+f.stepInset+(r.inputAreaLength-2*f.stepInset)*Math.min(1,Math.max(0,e))}function C(t,e){var r=t._dims;return Math.min(1,Math.max(0,(e-f.stepInset-r.inputAreaStart)/(r.inputAreaLength-2*f.stepInset-2*r.inputAreaStart)))}function L(t,e,r){var n=r._dims,i=s.ensureSingle(t,&quot;rect&quot;,f.railTouchRectClass,(function(n){n.call(M,e,t,r).style(&quot;pointer-events&quot;,&quot;all&quot;)}));i.attr({width:n.inputAreaLength,height:Math.max(n.inputAreaWidth,f.tickOffset+r.ticklen+n.labelHeight)}).call(a.fill,r.bgcolor).attr(&quot;opacity&quot;,0),o.setTranslate(i,0,n.currentValueTotalHeight)}function I(t,e){var r=e._dims,n=r.inputAreaLength-2*f.railInset,i=s.ensureSingle(t,&quot;rect&quot;,f.railRectClass);i.attr({width:n,height:f.railWidth,rx:f.railRadius,ry:f.railRadius,&quot;shape-rendering&quot;:&quot;crispEdges&quot;}).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;),o.setTranslate(i,f.railInset,.5*(r.inputAreaWidth-f.railWidth)+r.currentValueTotalHeight)}e.exports=function(t){var e=t._fullLayout,r=function(t,e){for(var r=t[f.name],n=[],i=0;i&lt;r.length;i++){var a=r[i];a.visible&amp;&amp;(a._gd=e,n.push(a))}return n}(e,t),a=e._infolayer.selectAll(&quot;g.&quot;+f.containerClassName).data(r.length&gt;0?[0]:[]);function s(e){e._commandObserver&amp;&amp;(e._commandObserver.remove(),delete e._commandObserver),i.autoMargin(t,m(e))}if(a.enter().append(&quot;g&quot;).classed(f.containerClassName,!0).style(&quot;cursor&quot;,&quot;ew-resize&quot;),a.exit().each((function(){n.select(this).selectAll(&quot;g.&quot;+f.groupClassName).each(s)})).remove(),0!==r.length){var l=a.selectAll(&quot;g.&quot;+f.groupClassName).data(r,v);l.enter().append(&quot;g&quot;).classed(f.groupClassName,!0),l.exit().each(s).remove();for(var c=0;c&lt;r.length;c++){var u=r[c];y(t,u)}l.each((function(e){var r=n.select(this);!function(t){var e=t._dims;e.labelSteps=[];for(var r=t._stepCount,n=0;n&lt;r;n+=e.labelStride)e.labelSteps.push({fraction:n/(r-1),step:t._visibleSteps[n]})}(e),i.manageCommandObserver(t,e,e._visibleSteps,(function(e){var n=r.data()[0];n.active!==e.index&amp;&amp;(n._dragging||k(t,r,n,e.index,!1,!0))})),function(t,e,r){(r.steps[r.active]||{}).visible||(r.active=r._visibleSteps[0]._index);e.call(x,r).call(I,r).call(w,r).call(A,r).call(L,t,r).call(b,t,r);var n=r._dims;o.setTranslate(e,n.lx+r.pad.l,n.ly+r.pad.t),e.call(S,r,!1),e.call(x,r)}(t,n.select(this),e)}))}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/plots&quot;:891,&quot;../color&quot;:643,&quot;../drawing&quot;:665,&quot;./constants&quot;:734,d3:169}],737:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);e.exports={moduleType:&quot;component&quot;,name:n.name,layoutAttributes:t(&quot;./attributes&quot;),supplyLayoutDefaults:t(&quot;./defaults&quot;),draw:t(&quot;./draw&quot;)}},{&quot;./attributes&quot;:733,&quot;./constants&quot;:734,&quot;./defaults&quot;:735,&quot;./draw&quot;:736}],738:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../drawing&quot;),u=t(&quot;../color&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../constants/interactions&quot;),p=t(&quot;../../constants/alignment&quot;).OPPOSITE_SIDE,d=/ [XY][0-9]* /;e.exports={draw:function(t,e,r){var g,m=r.propContainer,v=r.propName,y=r.placeholder,x=r.traceIndex,b=r.avoid||{},_=r.attributes,w=r.transform,T=r.containerGroup,k=t._fullLayout,M=1,A=!1,S=m.title,E=(S&amp;&amp;S.text?S.text:&quot;&quot;).trim(),C=S&amp;&amp;S.font?S.font:{},L=C.family,I=C.size,P=C.color;&quot;title.text&quot;===v?g=&quot;titleText&quot;:-1!==v.indexOf(&quot;axis&quot;)?g=&quot;axisTitleText&quot;:v.indexOf(!0)&amp;&amp;(g=&quot;colorbarTitleText&quot;);var z=t._context.edits[g];&quot;&quot;===E?M=0:E.replace(d,&quot; % &quot;)===y.replace(d,&quot; % &quot;)&amp;&amp;(M=.2,A=!0,z||(E=&quot;&quot;)),r._meta?E=s.templateString(E,r._meta):k._meta&amp;&amp;(E=s.templateString(E,k._meta));var O=E||z;T||(T=s.ensureSingle(k._infolayer,&quot;g&quot;,&quot;g-&quot;+e));var D=T.selectAll(&quot;text&quot;).data(O?[0]:[]);if(D.enter().append(&quot;text&quot;),D.text(E).attr(&quot;class&quot;,e),D.exit().remove(),!O)return T;function R(t){s.syncOrAsync([F,B],t)}function F(e){var r;return w?(r=&quot;&quot;,w.rotate&amp;&amp;(r+=&quot;rotate(&quot;+[w.rotate,_.x,_.y]+&quot;)&quot;),w.offset&amp;&amp;(r+=l(0,w.offset))):r=null,e.attr(&quot;transform&quot;,r),e.style({&quot;font-family&quot;:L,&quot;font-size&quot;:n.round(I,2)+&quot;px&quot;,fill:u.rgb(P),opacity:M*u.opacity(P),&quot;font-weight&quot;:a.fontWeight}).attr(_).call(f.convertToTspans,t),a.previousPromises(t)}function B(t){var e=n.select(t.node().parentNode);if(b&amp;&amp;b.selection&amp;&amp;b.side&amp;&amp;E){e.attr(&quot;transform&quot;,null);var r=p[b.side],a=&quot;left&quot;===b.side||&quot;top&quot;===b.side?-1:1,o=i(b.pad)?b.pad:2,u=c.bBox(e.node()),f={left:0,top:0,right:k.width,bottom:k.height},h=b.maxShift||a*(f[b.side]-u[b.side]),d=0;if(h&lt;0)d=h;else{var g=b.offsetLeft||0,m=b.offsetTop||0;u.left-=g,u.right-=g,u.top-=m,u.bottom-=m,b.selection.each((function(){var t=c.bBox(this);s.bBoxIntersect(u,t,o)&amp;&amp;(d=Math.max(d,a*(t[b.side]-u[r])+o))})),d=Math.min(h,d)}if(d&gt;0||h&lt;0){var v={left:[-d,0],right:[d,0],top:[0,-d],bottom:[0,d]}[b.side];e.attr(&quot;transform&quot;,l(v[0],v[1]))}}}return D.call(R),z&amp;&amp;(E?D.on(&quot;.opacity&quot;,null):(M=0,A=!0,D.text(y).on(&quot;mouseover.opacity&quot;,(function(){n.select(this).transition().duration(h.SHOW_PLACEHOLDER).style(&quot;opacity&quot;,1)})).on(&quot;mouseout.opacity&quot;,(function(){n.select(this).transition().duration(h.HIDE_PLACEHOLDER).style(&quot;opacity&quot;,0)}))),D.call(f.makeEditable,{gd:t}).on(&quot;edit&quot;,(function(e){void 0!==x?o.call(&quot;_guiRestyle&quot;,t,v,e,x):o.call(&quot;_guiRelayout&quot;,t,v,e)})).on(&quot;cancel&quot;,(function(){this.text(this.attr(&quot;data-unformatted&quot;)).call(R)})).on(&quot;input&quot;,(function(t){this.text(t||&quot; &quot;).call(f.positionText,_.x,_.y)}))),D.classed(&quot;js-placeholder&quot;,A),T}}},{&quot;../../constants/alignment&quot;:745,&quot;../../constants/interactions&quot;:752,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;../color&quot;:643,&quot;../drawing&quot;:665,d3:169,&quot;fast-isnumeric&quot;:241}],739:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../color/attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../plots/pad_attributes&quot;),l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=l(&quot;button&quot;,{visible:{valType:&quot;boolean&quot;},method:{valType:&quot;enumerated&quot;,values:[&quot;restyle&quot;,&quot;relayout&quot;,&quot;animate&quot;,&quot;update&quot;,&quot;skip&quot;],dflt:&quot;restyle&quot;},args:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},args2:{valType:&quot;info_array&quot;,freeLength:!0,items:[{valType:&quot;any&quot;},{valType:&quot;any&quot;},{valType:&quot;any&quot;}]},label:{valType:&quot;string&quot;,dflt:&quot;&quot;},execute:{valType:&quot;boolean&quot;,dflt:!0}});e.exports=o(l(&quot;updatemenu&quot;,{_arrayAttrRegexps:[/^updatemenus\[(0|[1-9][0-9]+)\]\.buttons/],visible:{valType:&quot;boolean&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;dropdown&quot;,&quot;buttons&quot;],dflt:&quot;dropdown&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;right&quot;,&quot;up&quot;,&quot;down&quot;],dflt:&quot;down&quot;},active:{valType:&quot;integer&quot;,min:-1,dflt:0},showactive:{valType:&quot;boolean&quot;,dflt:!0},buttons:c,x:{valType:&quot;number&quot;,min:-2,max:3,dflt:-.05},xanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],dflt:&quot;right&quot;},y:{valType:&quot;number&quot;,min:-2,max:3,dflt:1},yanchor:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;},pad:a(s({editType:&quot;arraydraw&quot;}),{}),font:n({}),bgcolor:{valType:&quot;color&quot;},bordercolor:{valType:&quot;color&quot;,dflt:i.borderLine},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;arraydraw&quot;}}),&quot;arraydraw&quot;,&quot;from-root&quot;)},{&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/pad_attributes&quot;:890,&quot;../color/attributes&quot;:642}],740:[function(t,e,r){&quot;use strict&quot;;e.exports={name:&quot;updatemenus&quot;,containerClassName:&quot;updatemenu-container&quot;,headerGroupClassName:&quot;updatemenu-header-group&quot;,headerClassName:&quot;updatemenu-header&quot;,headerArrowClassName:&quot;updatemenu-header-arrow&quot;,dropdownButtonGroupClassName:&quot;updatemenu-dropdown-button-group&quot;,dropdownButtonClassName:&quot;updatemenu-dropdown-button&quot;,buttonClassName:&quot;updatemenu-button&quot;,itemRectClassName:&quot;updatemenu-item-rect&quot;,itemTextClassName:&quot;updatemenu-item-text&quot;,menuIndexAttrName:&quot;updatemenu-active-index&quot;,autoMarginIdRoot:&quot;updatemenu-&quot;,blankHeaderOpts:{label:&quot;  &quot;},minWidth:30,minHeight:30,textPadX:24,arrowPadX:16,rx:2,ry:2,textOffsetX:12,textOffsetY:3,arrowOffsetX:4,gapButtonHeader:5,gapButton:2,activeColor:&quot;#F4FAFF&quot;,hoverColor:&quot;#F4FAFF&quot;,arrowSymbol:{left:&quot;\u25c4&quot;,right:&quot;\u25ba&quot;,up:&quot;\u25b2&quot;,down:&quot;\u25bc&quot;}}},{}],741:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;).name,s=a.buttons;function l(t,e,r){function o(r,i){return n.coerce(t,e,a,r,i)}o(&quot;visible&quot;,i(t,e,{name:&quot;buttons&quot;,handleItemDefaults:c}).length&gt;0)&amp;&amp;(o(&quot;active&quot;),o(&quot;direction&quot;),o(&quot;type&quot;),o(&quot;showactive&quot;),o(&quot;x&quot;),o(&quot;y&quot;),n.noneOrAll(t,e,[&quot;x&quot;,&quot;y&quot;]),o(&quot;xanchor&quot;),o(&quot;yanchor&quot;),o(&quot;pad.t&quot;),o(&quot;pad.r&quot;),o(&quot;pad.b&quot;),o(&quot;pad.l&quot;),n.coerceFont(o,&quot;font&quot;,r.font),o(&quot;bgcolor&quot;,r.paper_bgcolor),o(&quot;bordercolor&quot;),o(&quot;borderwidth&quot;))}function c(t,e){function r(r,i){return n.coerce(t,e,s,r,i)}r(&quot;visible&quot;,&quot;skip&quot;===t.method||Array.isArray(t.args))&amp;&amp;(r(&quot;method&quot;),r(&quot;args&quot;),r(&quot;args2&quot;),r(&quot;label&quot;),r(&quot;execute&quot;))}e.exports=function(t,e){i(t,e,{name:o,handleItemDefaults:l})}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;./attributes&quot;:739,&quot;./constants&quot;:740}],742:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../color&quot;),o=t(&quot;../drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../plot_api/plot_template&quot;).arrayEditor,u=t(&quot;../../constants/alignment&quot;).LINE_SPACING,f=t(&quot;./constants&quot;),h=t(&quot;./scrollbox&quot;);function p(t){return t._index}function d(t,e){return+t.attr(f.menuIndexAttrName)===e._index}function g(t,e,r,n,i,a,o,s){e.active=o,c(t.layout,f.name,e).applyUpdate(&quot;active&quot;,o),&quot;buttons&quot;===e.type?v(t,n,null,null,e):&quot;dropdown&quot;===e.type&amp;&amp;(i.attr(f.menuIndexAttrName,&quot;-1&quot;),m(t,n,i,a,e),s||v(t,n,i,a,e))}function m(t,e,r,n,i){var a=s.ensureSingle(e,&quot;g&quot;,f.headerClassName,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)})),l=i._dims,c=i.active,u=i.buttons[c]||f.blankHeaderOpts,h={y:i.pad.t,yPad:0,x:i.pad.l,xPad:0,index:0},p={width:l.headerWidth,height:l.headerHeight};a.call(y,i,u,t).call(A,i,h,p),s.ensureSingle(e,&quot;text&quot;,f.headerArrowClassName,(function(t){t.attr(&quot;text-anchor&quot;,&quot;end&quot;).call(o.font,i.font).text(f.arrowSymbol[i.direction])})).attr({x:l.headerWidth-f.arrowOffsetX+i.pad.l,y:l.headerHeight/2+f.textOffsetY+i.pad.t}),a.on(&quot;click&quot;,(function(){r.call(S,String(d(r,i)?-1:i._index)),v(t,e,r,n,i)})),a.on(&quot;mouseover&quot;,(function(){a.call(w)})),a.on(&quot;mouseout&quot;,(function(){a.call(T,i)})),o.setTranslate(e,l.lx,l.ly)}function v(t,e,r,a,o){r||(r=e).attr(&quot;pointer-events&quot;,&quot;all&quot;);var l=function(t){return-1==+t.attr(f.menuIndexAttrName)}(r)&amp;&amp;&quot;buttons&quot;!==o.type?[]:o.buttons,c=&quot;dropdown&quot;===o.type?f.dropdownButtonClassName:f.buttonClassName,u=r.selectAll(&quot;g.&quot;+c).data(s.filterVisible(l)),h=u.enter().append(&quot;g&quot;).classed(c,!0),p=u.exit();&quot;dropdown&quot;===o.type?(h.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;),p.transition().attr(&quot;opacity&quot;,&quot;0&quot;).remove()):p.remove();var d=0,m=0,v=o._dims,x=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(o.direction);&quot;dropdown&quot;===o.type&amp;&amp;(x?m=v.headerHeight+f.gapButtonHeader:d=v.headerWidth+f.gapButtonHeader),&quot;dropdown&quot;===o.type&amp;&amp;&quot;up&quot;===o.direction&amp;&amp;(m=-f.gapButtonHeader+f.gapButton-v.openHeight),&quot;dropdown&quot;===o.type&amp;&amp;&quot;left&quot;===o.direction&amp;&amp;(d=-f.gapButtonHeader+f.gapButton-v.openWidth);var b={x:v.lx+d+o.pad.l,y:v.ly+m+o.pad.t,yPad:f.gapButton,xPad:f.gapButton,index:0},k={l:b.x+o.borderwidth,t:b.y+o.borderwidth};u.each((function(s,l){var c=n.select(this);c.call(y,o,s,t).call(A,o,b),c.on(&quot;click&quot;,(function(){n.event.defaultPrevented||(s.execute&amp;&amp;(s.args2&amp;&amp;o.active===l?(g(t,o,0,e,r,a,-1),i.executeAPICommand(t,s.method,s.args2)):(g(t,o,0,e,r,a,l),i.executeAPICommand(t,s.method,s.args))),t.emit(&quot;plotly_buttonclicked&quot;,{menu:o,button:s,active:o.active}))})),c.on(&quot;mouseover&quot;,(function(){c.call(w)})),c.on(&quot;mouseout&quot;,(function(){c.call(T,o),u.call(_,o)}))})),u.call(_,o),x?(k.w=Math.max(v.openWidth,v.headerWidth),k.h=b.y-k.t):(k.w=b.x-k.l,k.h=Math.max(v.openHeight,v.headerHeight)),k.direction=o.direction,a&amp;&amp;(u.size()?function(t,e,r,n,i,a){var o,s,l,c=i.direction,u=&quot;up&quot;===c||&quot;down&quot;===c,h=i._dims,p=i.active;if(u)for(s=0,l=0;l&lt;p;l++)s+=h.heights[l]+f.gapButton;else for(o=0,l=0;l&lt;p;l++)o+=h.widths[l]+f.gapButton;n.enable(a,o,s),n.hbar&amp;&amp;n.hbar.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;);n.vbar&amp;&amp;n.vbar.attr(&quot;opacity&quot;,&quot;0&quot;).transition().attr(&quot;opacity&quot;,&quot;1&quot;)}(0,0,0,a,o,k):function(t){var e=!!t.hbar,r=!!t.vbar;e&amp;&amp;t.hbar.transition().attr(&quot;opacity&quot;,&quot;0&quot;).each(&quot;end&quot;,(function(){e=!1,r||t.disable()}));r&amp;&amp;t.vbar.transition().attr(&quot;opacity&quot;,&quot;0&quot;).each(&quot;end&quot;,(function(){r=!1,e||t.disable()}))}(a))}function y(t,e,r,n){t.call(x,e).call(b,e,r,n)}function x(t,e){s.ensureSingle(t,&quot;rect&quot;,f.itemRectClassName,(function(t){t.attr({rx:f.rx,ry:f.ry,&quot;shape-rendering&quot;:&quot;crispEdges&quot;})})).call(a.stroke,e.bordercolor).call(a.fill,e.bgcolor).style(&quot;stroke-width&quot;,e.borderwidth+&quot;px&quot;)}function b(t,e,r,n){var i=s.ensureSingle(t,&quot;text&quot;,f.itemTextClassName,(function(t){t.attr({&quot;text-anchor&quot;:&quot;start&quot;,&quot;data-notex&quot;:1})})),a=r.label,c=n._fullLayout._meta;c&amp;&amp;(a=s.templateString(a,c)),i.call(o.font,e.font).text(a).call(l.convertToTspans,n)}function _(t,e){var r=e.active;t.each((function(t,i){var o=n.select(this);i===r&amp;&amp;e.showactive&amp;&amp;o.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,f.activeColor)}))}function w(t){t.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,f.hoverColor)}function T(t,e){t.select(&quot;rect.&quot;+f.itemRectClassName).call(a.fill,e.bgcolor)}function k(t,e){var r=e._dims={width1:0,height1:0,heights:[],widths:[],totalWidth:0,totalHeight:0,openWidth:0,openHeight:0,lx:0,ly:0},a=o.tester.selectAll(&quot;g.&quot;+f.dropdownButtonClassName).data(s.filterVisible(e.buttons));a.enter().append(&quot;g&quot;).classed(f.dropdownButtonClassName,!0);var c=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(e.direction);a.each((function(i,a){var s=n.select(this);s.call(y,e,i,t);var h=s.select(&quot;.&quot;+f.itemTextClassName),p=h.node()&amp;&amp;o.bBox(h.node()).width,d=Math.max(p+f.textPadX,f.minWidth),g=e.font.size*u,m=l.lineCount(h),v=Math.max(g*m,f.minHeight)+f.textOffsetY;v=Math.ceil(v),d=Math.ceil(d),r.widths[a]=d,r.heights[a]=v,r.height1=Math.max(r.height1,v),r.width1=Math.max(r.width1,d),c?(r.totalWidth=Math.max(r.totalWidth,d),r.openWidth=r.totalWidth,r.totalHeight+=v+f.gapButton,r.openHeight+=v+f.gapButton):(r.totalWidth+=d+f.gapButton,r.openWidth+=d+f.gapButton,r.totalHeight=Math.max(r.totalHeight,v),r.openHeight=r.totalHeight)})),c?r.totalHeight-=f.gapButton:r.totalWidth-=f.gapButton,r.headerWidth=r.width1+f.arrowPadX,r.headerHeight=r.height1,&quot;dropdown&quot;===e.type&amp;&amp;(c?(r.width1+=f.arrowPadX,r.totalHeight=r.height1):r.totalWidth=r.width1,r.totalWidth+=f.arrowPadX),a.remove();var h=r.totalWidth+e.pad.l+e.pad.r,p=r.totalHeight+e.pad.t+e.pad.b,d=t._fullLayout._size;r.lx=d.l+d.w*e.x,r.ly=d.t+d.h*(1-e.y);var g=&quot;left&quot;;s.isRightAnchor(e)&amp;&amp;(r.lx-=h,g=&quot;right&quot;),s.isCenterAnchor(e)&amp;&amp;(r.lx-=h/2,g=&quot;center&quot;);var m=&quot;top&quot;;s.isBottomAnchor(e)&amp;&amp;(r.ly-=p,m=&quot;bottom&quot;),s.isMiddleAnchor(e)&amp;&amp;(r.ly-=p/2,m=&quot;middle&quot;),r.totalWidth=Math.ceil(r.totalWidth),r.totalHeight=Math.ceil(r.totalHeight),r.lx=Math.round(r.lx),r.ly=Math.round(r.ly),i.autoMargin(t,M(e),{x:e.x,y:e.y,l:h*({right:1,center:.5}[g]||0),r:h*({left:1,center:.5}[g]||0),b:p*({top:1,middle:.5}[m]||0),t:p*({bottom:1,middle:.5}[m]||0)})}function M(t){return f.autoMarginIdRoot+t._index}function A(t,e,r,n){n=n||{};var i=t.select(&quot;.&quot;+f.itemRectClassName),a=t.select(&quot;.&quot;+f.itemTextClassName),s=e.borderwidth,c=r.index,h=e._dims;o.setTranslate(t,s+r.x,s+r.y);var p=-1!==[&quot;up&quot;,&quot;down&quot;].indexOf(e.direction),d=n.height||(p?h.heights[c]:h.height1);i.attr({x:0,y:0,width:n.width||(p?h.width1:h.widths[c]),height:d});var g=e.font.size*u,m=(l.lineCount(a)-1)*g/2;l.positionText(a,f.textOffsetX,d/2-m+f.textOffsetY),p?r.y+=h.heights[c]+r.yPad:r.x+=h.widths[c]+r.xPad,r.index++}function S(t,e){t.attr(f.menuIndexAttrName,e||&quot;-1&quot;).selectAll(&quot;g.&quot;+f.dropdownButtonClassName).remove()}e.exports=function(t){var e=t._fullLayout,r=s.filterVisible(e[f.name]);function a(e){i.autoMargin(t,M(e))}var o=e._menulayer.selectAll(&quot;g.&quot;+f.containerClassName).data(r.length&gt;0?[0]:[]);if(o.enter().append(&quot;g&quot;).classed(f.containerClassName,!0).style(&quot;cursor&quot;,&quot;pointer&quot;),o.exit().each((function(){n.select(this).selectAll(&quot;g.&quot;+f.headerGroupClassName).each(a)})).remove(),0!==r.length){var l=o.selectAll(&quot;g.&quot;+f.headerGroupClassName).data(r,p);l.enter().append(&quot;g&quot;).classed(f.headerGroupClassName,!0);for(var c=s.ensureSingle(o,&quot;g&quot;,f.dropdownButtonGroupClassName,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)})),u=0;u&lt;r.length;u++){var y=r[u];k(t,y)}var x=&quot;updatemenus&quot;+e._uid,b=new h(t,c,x);l.enter().size()&amp;&amp;(c.node().parentNode.appendChild(c.node()),c.call(S)),l.exit().each((function(t){c.call(S),a(t)})).remove(),l.each((function(e){var r=n.select(this),a=&quot;dropdown&quot;===e.type?c:null;i.manageCommandObserver(t,e,e.buttons,(function(n){g(t,e,e.buttons[n.index],r,a,b,n.index,!0)})),&quot;dropdown&quot;===e.type?(m(t,r,c,b,e),d(c,e)&amp;&amp;v(t,r,c,b,e)):v(t,r,null,null,e)}))}}},{&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/plots&quot;:891,&quot;../color&quot;:643,&quot;../drawing&quot;:665,&quot;./constants&quot;:740,&quot;./scrollbox&quot;:744,d3:169}],743:[function(t,e,r){arguments[4][737][0].apply(r,arguments)},{&quot;./attributes&quot;:739,&quot;./constants&quot;:740,&quot;./defaults&quot;:741,&quot;./draw&quot;:742,dup:737}],744:[function(t,e,r){&quot;use strict&quot;;e.exports=s;var n=t(&quot;d3&quot;),i=t(&quot;../color&quot;),a=t(&quot;../drawing&quot;),o=t(&quot;../../lib&quot;);function s(t,e,r){this.gd=t,this.container=e,this.id=r,this.position=null,this.translateX=null,this.translateY=null,this.hbar=null,this.vbar=null,this.bg=this.container.selectAll(&quot;rect.scrollbox-bg&quot;).data([0]),this.bg.exit().on(&quot;.drag&quot;,null).on(&quot;wheel&quot;,null).remove(),this.bg.enter().append(&quot;rect&quot;).classed(&quot;scrollbox-bg&quot;,!0).style(&quot;pointer-events&quot;,&quot;all&quot;).attr({opacity:0,x:0,y:0,width:0,height:0})}s.barWidth=2,s.barLength=20,s.barRadius=2,s.barPad=1,s.barColor=&quot;#808BA4&quot;,s.prototype.enable=function(t,e,r){var o=this.gd._fullLayout,l=o.width,c=o.height;this.position=t;var u,f,h,p,d=this.position.l,g=this.position.w,m=this.position.t,v=this.position.h,y=this.position.direction,x=&quot;down&quot;===y,b=&quot;left&quot;===y,_=&quot;up&quot;===y,w=g,T=v;x||b||&quot;right&quot;===y||_||(this.position.direction=&quot;down&quot;,x=!0),x||_?(f=(u=d)+w,x?(h=m,T=(p=Math.min(h+T,c))-h):T=(p=m+T)-(h=Math.max(p-T,0))):(p=(h=m)+T,b?w=(f=d+w)-(u=Math.max(f-w,0)):(u=d,w=(f=Math.min(u+w,l))-u)),this._box={l:u,t:h,w:w,h:T};var k=g&gt;w,M=s.barLength+2*s.barPad,A=s.barWidth+2*s.barPad,S=d,E=m+v;E+A&gt;c&amp;&amp;(E=c-A);var C=this.container.selectAll(&quot;rect.scrollbar-horizontal&quot;).data(k?[0]:[]);C.exit().on(&quot;.drag&quot;,null).remove(),C.enter().append(&quot;rect&quot;).classed(&quot;scrollbar-horizontal&quot;,!0).call(i.fill,s.barColor),k?(this.hbar=C.attr({rx:s.barRadius,ry:s.barRadius,x:S,y:E,width:M,height:A}),this._hbarXMin=S+M/2,this._hbarTranslateMax=w-M):(delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax);var L=v&gt;T,I=s.barWidth+2*s.barPad,P=s.barLength+2*s.barPad,z=d+g,O=m;z+I&gt;l&amp;&amp;(z=l-I);var D=this.container.selectAll(&quot;rect.scrollbar-vertical&quot;).data(L?[0]:[]);D.exit().on(&quot;.drag&quot;,null).remove(),D.enter().append(&quot;rect&quot;).classed(&quot;scrollbar-vertical&quot;,!0).call(i.fill,s.barColor),L?(this.vbar=D.attr({rx:s.barRadius,ry:s.barRadius,x:z,y:O,width:I,height:P}),this._vbarYMin=O+P/2,this._vbarTranslateMax=T-P):(delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax);var R=this.id,F=u-.5,B=L?f+I+.5:f+.5,N=h-.5,j=k?p+A+.5:p+.5,U=o._topdefs.selectAll(&quot;#&quot;+R).data(k||L?[0]:[]);if(U.exit().remove(),U.enter().append(&quot;clipPath&quot;).attr(&quot;id&quot;,R).append(&quot;rect&quot;),k||L?(this._clipRect=U.select(&quot;rect&quot;).attr({x:Math.floor(F),y:Math.floor(N),width:Math.ceil(B)-Math.floor(F),height:Math.ceil(j)-Math.floor(N)}),this.container.call(a.setClipUrl,R,this.gd),this.bg.attr({x:d,y:m,width:g,height:v})):(this.bg.attr({width:0,height:0}),this.container.on(&quot;wheel&quot;,null).on(&quot;.drag&quot;,null).call(a.setClipUrl,null),delete this._clipRect),k||L){var V=n.behavior.drag().on(&quot;dragstart&quot;,(function(){n.event.sourceEvent.preventDefault()})).on(&quot;drag&quot;,this._onBoxDrag.bind(this));this.container.on(&quot;wheel&quot;,null).on(&quot;wheel&quot;,this._onBoxWheel.bind(this)).on(&quot;.drag&quot;,null).call(V);var q=n.behavior.drag().on(&quot;dragstart&quot;,(function(){n.event.sourceEvent.preventDefault(),n.event.sourceEvent.stopPropagation()})).on(&quot;drag&quot;,this._onBarDrag.bind(this));k&amp;&amp;this.hbar.on(&quot;.drag&quot;,null).call(q),L&amp;&amp;this.vbar.on(&quot;.drag&quot;,null).call(q)}this.setTranslate(e,r)},s.prototype.disable=function(){(this.hbar||this.vbar)&amp;&amp;(this.bg.attr({width:0,height:0}),this.container.on(&quot;wheel&quot;,null).on(&quot;.drag&quot;,null).call(a.setClipUrl,null),delete this._clipRect),this.hbar&amp;&amp;(this.hbar.on(&quot;.drag&quot;,null),this.hbar.remove(),delete this.hbar,delete this._hbarXMin,delete this._hbarTranslateMax),this.vbar&amp;&amp;(this.vbar.on(&quot;.drag&quot;,null),this.vbar.remove(),delete this.vbar,delete this._vbarYMin,delete this._vbarTranslateMax)},s.prototype._onBoxDrag=function(){var t=this.translateX,e=this.translateY;this.hbar&amp;&amp;(t-=n.event.dx),this.vbar&amp;&amp;(e-=n.event.dy),this.setTranslate(t,e)},s.prototype._onBoxWheel=function(){var t=this.translateX,e=this.translateY;this.hbar&amp;&amp;(t+=n.event.deltaY),this.vbar&amp;&amp;(e+=n.event.deltaY),this.setTranslate(t,e)},s.prototype._onBarDrag=function(){var t=this.translateX,e=this.translateY;if(this.hbar){var r=t+this._hbarXMin,i=r+this._hbarTranslateMax;t=(o.constrain(n.event.x,r,i)-r)/(i-r)*(this.position.w-this._box.w)}if(this.vbar){var a=e+this._vbarYMin,s=a+this._vbarTranslateMax;e=(o.constrain(n.event.y,a,s)-a)/(s-a)*(this.position.h-this._box.h)}this.setTranslate(t,e)},s.prototype.setTranslate=function(t,e){var r=this.position.w-this._box.w,n=this.position.h-this._box.h;if(t=o.constrain(t||0,0,r),e=o.constrain(e||0,0,n),this.translateX=t,this.translateY=e,this.container.call(a.setTranslate,this._box.l-this.position.l-t,this._box.t-this.position.t-e),this._clipRect&amp;&amp;this._clipRect.attr({x:Math.floor(this.position.l+t-.5),y:Math.floor(this.position.t+e-.5)}),this.hbar){var i=t/r;this.hbar.call(a.setTranslate,t+i*this._hbarTranslateMax,e)}if(this.vbar){var s=e/n;this.vbar.call(a.setTranslate,t,e+s*this._vbarTranslateMax)}}},{&quot;../../lib&quot;:778,&quot;../color&quot;:643,&quot;../drawing&quot;:665,d3:169}],745:[function(t,e,r){&quot;use strict&quot;;e.exports={FROM_BL:{left:0,center:.5,right:1,bottom:0,middle:.5,top:1},FROM_TL:{left:0,center:.5,right:1,bottom:1,middle:.5,top:0},FROM_BR:{left:1,center:.5,right:0,bottom:0,middle:.5,top:1},LINE_SPACING:1.3,CAP_SHIFT:.7,MID_SHIFT:.35,OPPOSITE_SIDE:{left:&quot;right&quot;,right:&quot;left&quot;,top:&quot;bottom&quot;,bottom:&quot;top&quot;}}},{}],746:[function(t,e,r){&quot;use strict&quot;;e.exports={axisRefDescription:function(t,e,r){return[&quot;If set to a&quot;,t,&quot;axis id (e.g. *&quot;+t+&quot;* or&quot;,&quot;*&quot;+t+&quot;2*), the `&quot;+t+&quot;` position refers to a&quot;,t,&quot;coordinate. If set to *paper*, the `&quot;+t+&quot;`&quot;,&quot;position refers to the distance from the&quot;,e,&quot;of the plotting&quot;,&quot;area in normalized coordinates where *0* (*1*) corresponds to the&quot;,e,&quot;(&quot;+r+&quot;). If set to a&quot;,t,&quot;axis ID followed by&quot;,&quot;*domain* (separated by a space), the position behaves like for&quot;,&quot;*paper*, but refers to the distance in fractions of the domain&quot;,&quot;length from the&quot;,e,&quot;of the domain of that axis: e.g.,&quot;,&quot;*&quot;+t+&quot;2 domain* refers to the domain of the second&quot;,t,&quot; axis and a&quot;,t,&quot;position of 0.5 refers to the&quot;,&quot;point between the&quot;,e,&quot;and the&quot;,r,&quot;of the domain of the&quot;,&quot;second&quot;,t,&quot;axis.&quot;].join(&quot; &quot;)}}},{}],747:[function(t,e,r){&quot;use strict&quot;;e.exports={INCREASING:{COLOR:&quot;#3D9970&quot;,SYMBOL:&quot;\u25b2&quot;},DECREASING:{COLOR:&quot;#FF4136&quot;,SYMBOL:&quot;\u25bc&quot;}}},{}],748:[function(t,e,r){&quot;use strict&quot;;e.exports={FORMAT_LINK:&quot;https://github.com/d3/d3-3.x-api-reference/blob/master/Formatting.md#d3_format&quot;,DATE_FORMAT_LINK:&quot;https://github.com/d3/d3-time-format#locale_format&quot;}},{}],749:[function(t,e,r){&quot;use strict&quot;;e.exports={COMPARISON_OPS:[&quot;=&quot;,&quot;!=&quot;,&quot;&lt;&quot;,&quot;&gt;=&quot;,&quot;&gt;&quot;,&quot;&lt;=&quot;],COMPARISON_OPS2:[&quot;=&quot;,&quot;&lt;&quot;,&quot;&gt;=&quot;,&quot;&gt;&quot;,&quot;&lt;=&quot;],INTERVAL_OPS:[&quot;[]&quot;,&quot;()&quot;,&quot;[)&quot;,&quot;(]&quot;,&quot;][&quot;,&quot;)(&quot;,&quot;](&quot;,&quot;)[&quot;],SET_OPS:[&quot;{}&quot;,&quot;}{&quot;],CONSTRAINT_REDUCTION:{&quot;=&quot;:&quot;=&quot;,&quot;&lt;&quot;:&quot;&lt;&quot;,&quot;&lt;=&quot;:&quot;&lt;&quot;,&quot;&gt;&quot;:&quot;&gt;&quot;,&quot;&gt;=&quot;:&quot;&gt;&quot;,&quot;[]&quot;:&quot;[]&quot;,&quot;()&quot;:&quot;[]&quot;,&quot;[)&quot;:&quot;[]&quot;,&quot;(]&quot;:&quot;[]&quot;,&quot;][&quot;:&quot;][&quot;,&quot;)(&quot;:&quot;][&quot;,&quot;](&quot;:&quot;][&quot;,&quot;)[&quot;:&quot;][&quot;}}},{}],750:[function(t,e,r){&quot;use strict&quot;;e.exports={solid:[[],0],dot:[[.5,1],200],dash:[[.5,1],50],longdash:[[.5,1],10],dashdot:[[.5,.625,.875,1],50],longdashdot:[[.5,.7,.8,1],10]}},{}],751:[function(t,e,r){&quot;use strict&quot;;e.exports={circle:&quot;\u25cf&quot;,&quot;circle-open&quot;:&quot;\u25cb&quot;,square:&quot;\u25a0&quot;,&quot;square-open&quot;:&quot;\u25a1&quot;,diamond:&quot;\u25c6&quot;,&quot;diamond-open&quot;:&quot;\u25c7&quot;,cross:&quot;+&quot;,x:&quot;\u274c&quot;}},{}],752:[function(t,e,r){&quot;use strict&quot;;e.exports={SHOW_PLACEHOLDER:100,HIDE_PLACEHOLDER:1e3,DESELECTDIM:.2}},{}],753:[function(t,e,r){&quot;use strict&quot;;e.exports={BADNUM:void 0,FP_SAFE:Number.MAX_VALUE/1e4,ONEMAXYEAR:316224e5,ONEAVGYEAR:315576e5,ONEMINYEAR:31536e6,ONEMAXQUARTER:79488e5,ONEAVGQUARTER:78894e5,ONEMINQUARTER:76896e5,ONEMAXMONTH:26784e5,ONEAVGMONTH:26298e5,ONEMINMONTH:24192e5,ONEWEEK:6048e5,ONEDAY:864e5,ONEHOUR:36e5,ONEMIN:6e4,ONESEC:1e3,EPOCHJD:2440587.5,ALMOST_EQUAL:.999999,LOG_CLIP:10,MINUS_SIGN:&quot;\u2212&quot;}},{}],754:[function(t,e,r){&quot;use strict&quot;;r.xmlns=&quot;http://www.w3.org/2000/xmlns/&quot;,r.svg=&quot;http://www.w3.org/2000/svg&quot;,r.xlink=&quot;http://www.w3.org/1999/xlink&quot;,r.svgAttrs={xmlns:r.svg,&quot;xmlns:xlink&quot;:r.xlink}},{}],755:[function(t,e,r){&quot;use strict&quot;;r.version=t(&quot;./version&quot;).version,t(&quot;es6-promise&quot;).polyfill(),t(&quot;../build/plotcss&quot;),t(&quot;./fonts/mathjax_config&quot;)();for(var n=t(&quot;./registry&quot;),i=r.register=n.register,a=t(&quot;./plot_api&quot;),o=Object.keys(a),s=0;s&lt;o.length;s++){var l=o[s];&quot;_&quot;!==l.charAt(0)&amp;&amp;(r[l]=a[l]),i({moduleType:&quot;apiMethod&quot;,name:l,fn:a[l]})}i(t(&quot;./traces/scatter&quot;)),i([t(&quot;./components/legend&quot;),t(&quot;./components/fx&quot;),t(&quot;./components/annotations&quot;),t(&quot;./components/annotations3d&quot;),t(&quot;./components/shapes&quot;),t(&quot;./components/images&quot;),t(&quot;./components/updatemenus&quot;),t(&quot;./components/sliders&quot;),t(&quot;./components/rangeslider&quot;),t(&quot;./components/rangeselector&quot;),t(&quot;./components/grid&quot;),t(&quot;./components/errorbars&quot;),t(&quot;./components/colorscale&quot;),t(&quot;./components/colorbar&quot;)]),i([t(&quot;./locale-en&quot;),t(&quot;./locale-en-us&quot;)]),window.PlotlyLocales&amp;&amp;Array.isArray(window.PlotlyLocales)&amp;&amp;(i(window.PlotlyLocales),delete window.PlotlyLocales),r.Icons=t(&quot;./fonts/ploticon&quot;),r.Plots=t(&quot;./plots/plots&quot;),r.Fx=t(&quot;./components/fx&quot;),r.Snapshot=t(&quot;./snapshot&quot;),r.PlotSchema=t(&quot;./plot_api/plot_schema&quot;),r.Queue=t(&quot;./lib/queue&quot;),r.d3=t(&quot;d3&quot;)},{&quot;../build/plotcss&quot;:1,&quot;./components/annotations&quot;:634,&quot;./components/annotations3d&quot;:639,&quot;./components/colorbar&quot;:649,&quot;./components/colorscale&quot;:655,&quot;./components/errorbars&quot;:671,&quot;./components/fx&quot;:683,&quot;./components/grid&quot;:687,&quot;./components/images&quot;:692,&quot;./components/legend&quot;:700,&quot;./components/rangeselector&quot;:711,&quot;./components/rangeslider&quot;:718,&quot;./components/shapes&quot;:732,&quot;./components/sliders&quot;:737,&quot;./components/updatemenus&quot;:743,&quot;./fonts/mathjax_config&quot;:756,&quot;./fonts/ploticon&quot;:757,&quot;./lib/queue&quot;:794,&quot;./locale-en&quot;:808,&quot;./locale-en-us&quot;:807,&quot;./plot_api&quot;:812,&quot;./plot_api/plot_schema&quot;:816,&quot;./plots/plots&quot;:891,&quot;./registry&quot;:911,&quot;./snapshot&quot;:916,&quot;./traces/scatter&quot;:1199,&quot;./version&quot;:1370,d3:169,&quot;es6-promise&quot;:224}],756:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){&quot;undefined&quot;!=typeof MathJax&amp;&amp;(&quot;local&quot;!==(window.PlotlyConfig||{}).MathJaxConfig&amp;&amp;(MathJax.Hub.Config({messageStyle:&quot;none&quot;,skipStartupTypeset:!0,displayAlign:&quot;left&quot;,tex2jax:{inlineMath:[[&quot;$&quot;,&quot;$&quot;],[&quot;\\(&quot;,&quot;\\)&quot;]]}}),MathJax.Hub.Configured()))}},{}],757:[function(t,e,r){&quot;use strict&quot;;e.exports={undo:{width:857.1,height:1e3,path:&quot;m857 350q0-87-34-166t-91-137-137-92-166-34q-96 0-183 41t-147 114q-4 6-4 13t5 11l76 77q6 5 14 5 9-1 13-7 41-53 100-82t126-29q58 0 110 23t92 61 61 91 22 111-22 111-61 91-92 61-110 23q-55 0-105-20t-90-57l77-77q17-16 8-38-10-23-33-23h-250q-15 0-25 11t-11 25v250q0 24 22 33 22 10 39-8l72-72q60 57 137 88t159 31q87 0 166-34t137-92 91-137 34-166z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},home:{width:928.6,height:1e3,path:&quot;m786 296v-267q0-15-11-26t-25-10h-214v214h-143v-214h-214q-15 0-25 10t-11 26v267q0 1 0 2t0 2l321 264 321-264q1-1 1-4z m124 39l-34-41q-5-5-12-6h-2q-7 0-12 3l-386 322-386-322q-7-4-13-4-7 2-12 7l-35 41q-4 5-3 13t6 12l401 334q18 15 42 15t43-15l136-114v109q0 8 5 13t13 5h107q8 0 13-5t5-13v-227l122-102q5-5 6-12t-4-13z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;camera-retro&quot;:{width:1e3,height:1e3,path:&quot;m518 386q0 8-5 13t-13 5q-37 0-63-27t-26-63q0-8 5-13t13-5 12 5 5 13q0 23 16 38t38 16q8 0 13 5t5 13z m125-73q0-59-42-101t-101-42-101 42-42 101 42 101 101 42 101-42 42-101z m-572-320h858v71h-858v-71z m643 320q0 89-62 152t-152 62-151-62-63-152 63-151 151-63 152 63 62 151z m-571 358h214v72h-214v-72z m-72-107h858v143h-462l-36-71h-360v-72z m929 143v-714q0-30-21-51t-50-21h-858q-29 0-50 21t-21 51v714q0 30 21 51t50 21h858q29 0 50-21t21-51z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoombox:{width:1e3,height:1e3,path:&quot;m1000-25l-250 251c40 63 63 138 63 218 0 224-182 406-407 406-224 0-406-182-406-406s183-406 407-406c80 0 155 22 218 62l250-250 125 125z m-812 250l0 438 437 0 0-438-437 0z m62 375l313 0 0-312-313 0 0 312z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},pan:{width:1e3,height:1e3,path:&quot;m1000 350l-187 188 0-125-250 0 0 250 125 0-188 187-187-187 125 0 0-250-250 0 0 125-188-188 186-187 0 125 252 0 0-250-125 0 187-188 188 188-125 0 0 250 250 0 0-126 187 188z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoom_plus:{width:875,height:1e3,path:&quot;m1 787l0-875 875 0 0 875-875 0z m687-500l-187 0 0-187-125 0 0 187-188 0 0 125 188 0 0 187 125 0 0-187 187 0 0-125z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},zoom_minus:{width:875,height:1e3,path:&quot;m0 788l0-876 875 0 0 876-875 0z m688-500l-500 0 0 125 500 0 0-125z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},autoscale:{width:1e3,height:1e3,path:&quot;m250 850l-187 0-63 0 0-62 0-188 63 0 0 188 187 0 0 62z m688 0l-188 0 0-62 188 0 0-188 62 0 0 188 0 62-62 0z m-875-938l0 188-63 0 0-188 0-62 63 0 187 0 0 62-187 0z m875 188l0-188-188 0 0-62 188 0 62 0 0 62 0 188-62 0z m-125 188l-1 0-93-94-156 156 156 156 92-93 2 0 0 250-250 0 0-2 93-92-156-156-156 156 94 92 0 2-250 0 0-250 0 0 93 93 157-156-157-156-93 94 0 0 0-250 250 0 0 0-94 93 156 157 156-157-93-93 0 0 250 0 0 250z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},tooltip_basic:{width:1500,height:1e3,path:&quot;m375 725l0 0-375-375 375-374 0-1 1125 0 0 750-1125 0z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},tooltip_compare:{width:1125,height:1e3,path:&quot;m187 786l0 2-187-188 188-187 0 0 937 0 0 373-938 0z m0-499l0 1-187-188 188-188 0 0 937 0 0 376-938-1z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},plotlylogo:{width:1542,height:1e3,path:&quot;m0-10h182v-140h-182v140z m228 146h183v-286h-183v286z m225 714h182v-1000h-182v1000z m225-285h182v-715h-182v715z m225 142h183v-857h-183v857z m231-428h182v-429h-182v429z m225-291h183v-138h-183v138z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;z-axis&quot;:{width:1e3,height:1e3,path:&quot;m833 5l-17 108v41l-130-65 130-66c0 0 0 38 0 39 0-1 36-14 39-25 4-15-6-22-16-30-15-12-39-16-56-20-90-22-187-23-279-23-261 0-341 34-353 59 3 60 228 110 228 110-140-8-351-35-351-116 0-120 293-142 474-142 155 0 477 22 477 142 0 50-74 79-163 96z m-374 94c-58-5-99-21-99-40 0-24 65-43 144-43 79 0 143 19 143 43 0 19-42 34-98 40v216h87l-132 135-133-135h88v-216z m167 515h-136v1c16 16 31 34 46 52l84 109v54h-230v-71h124v-1c-16-17-28-32-44-51l-89-114v-51h245v72z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},&quot;3d_rotate&quot;:{width:1e3,height:1e3,path:&quot;m922 660c-5 4-9 7-14 11-359 263-580-31-580-31l-102 28 58-400c0 1 1 1 2 2 118 108 351 249 351 249s-62 27-100 42c88 83 222 183 347 122 16-8 30-17 44-27-2 1-4 2-6 4z m36-329c0 0 64 229-88 296-62 27-124 14-175-11 157-78 225-208 249-266 8-19 11-31 11-31 2 5 6 15 11 32-5-13-8-20-8-20z m-775-239c70-31 117-50 198-32-121 80-199 346-199 346l-96-15-58-12c0 0 55-226 155-287z m603 133l-317-139c0 0 4-4 19-14 7-5 24-15 24-15s-177-147-389 4c235-287 536-112 536-112l31-22 100 299-4-1z m-298-153c6-4 14-9 24-15 0 0-17 10-24 15z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},camera:{width:1e3,height:1e3,path:&quot;m500 450c-83 0-150-67-150-150 0-83 67-150 150-150 83 0 150 67 150 150 0 83-67 150-150 150z m400 150h-120c-16 0-34 13-39 29l-31 93c-6 15-23 28-40 28h-340c-16 0-34-13-39-28l-31-94c-6-15-23-28-40-28h-120c-55 0-100-45-100-100v-450c0-55 45-100 100-100h800c55 0 100 45 100 100v450c0 55-45 100-100 100z m-400-550c-138 0-250 112-250 250 0 138 112 250 250 250 138 0 250-112 250-250 0-138-112-250-250-250z m365 380c-19 0-35 16-35 35 0 19 16 35 35 35 19 0 35-16 35-35 0-19-16-35-35-35z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},movie:{width:1e3,height:1e3,path:&quot;m938 413l-188-125c0 37-17 71-44 94 64 38 107 107 107 187 0 121-98 219-219 219-121 0-219-98-219-219 0-61 25-117 66-156h-115c30 33 49 76 49 125 0 103-84 187-187 187s-188-84-188-187c0-57 26-107 65-141-38-22-65-62-65-109v-250c0-70 56-126 125-126h500c69 0 125 56 125 126l188-126c34 0 62 28 62 63v375c0 35-28 63-62 63z m-750 0c-69 0-125 56-125 125s56 125 125 125 125-56 125-125-56-125-125-125z m406-1c-87 0-157 70-157 157 0 86 70 156 157 156s156-70 156-156-70-157-156-157z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},question:{width:857.1,height:1e3,path:&quot;m500 82v107q0 8-5 13t-13 5h-107q-8 0-13-5t-5-13v-107q0-8 5-13t13-5h107q8 0 13 5t5 13z m143 375q0 49-31 91t-77 65-95 23q-136 0-207-119-9-14 4-24l74-55q4-4 10-4 9 0 14 7 30 38 48 51 19 14 48 14 27 0 48-15t21-33q0-21-11-34t-38-25q-35-16-65-48t-29-70v-20q0-8 5-13t13-5h107q8 0 13 5t5 13q0 10 12 27t30 28q18 10 28 16t25 19 25 27 16 34 7 45z m214-107q0-117-57-215t-156-156-215-58-216 58-155 156-58 215 58 215 155 156 216 58 215-58 156-156 57-215z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},disk:{width:857.1,height:1e3,path:&quot;m214-7h429v214h-429v-214z m500 0h72v500q0 8-6 21t-11 20l-157 156q-5 6-19 12t-22 5v-232q0-22-15-38t-38-16h-322q-22 0-37 16t-16 38v232h-72v-714h72v232q0 22 16 38t37 16h465q22 0 38-16t15-38v-232z m-214 518v178q0 8-5 13t-13 5h-107q-7 0-13-5t-5-13v-178q0-8 5-13t13-5h107q7 0 13 5t5 13z m357-18v-518q0-22-15-38t-38-16h-750q-23 0-38 16t-16 38v750q0 22 16 38t38 16h517q23 0 50-12t42-26l156-157q16-15 27-42t11-49z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},drawopenpath:{width:70,height:70,path:&quot;M33.21,85.65a7.31,7.31,0,0,1-2.59-.48c-8.16-3.11-9.27-19.8-9.88-41.3-.1-3.58-.19-6.68-.35-9-.15-2.1-.67-3.48-1.43-3.79-2.13-.88-7.91,2.32-12,5.86L3,32.38c1.87-1.64,11.55-9.66,18.27-6.9,2.13.87,4.75,3.14,5.17,9,.17,2.43.26,5.59.36,9.25a224.17,224.17,0,0,0,1.5,23.4c1.54,10.76,4,12.22,4.48,12.4.84.32,2.79-.46,5.76-3.59L43,80.07C41.53,81.57,37.68,85.64,33.21,85.65ZM74.81,69a11.34,11.34,0,0,0,6.09-6.72L87.26,44.5,74.72,32,56.9,38.35c-2.37.86-5.57,3.42-6.61,6L38.65,72.14l8.42,8.43ZM55,46.27a7.91,7.91,0,0,1,3.64-3.17l14.8-5.3,8,8L76.11,60.6l-.06.19a6.37,6.37,0,0,1-3,3.43L48.25,74.59,44.62,71Zm16.57,7.82A6.9,6.9,0,1,0,64.64,61,6.91,6.91,0,0,0,71.54,54.09Zm-4.05,0a2.85,2.85,0,1,1-2.85-2.85A2.86,2.86,0,0,1,67.49,54.09Zm-4.13,5.22L60.5,56.45,44.26,72.7l2.86,2.86ZM97.83,35.67,84.14,22l-8.57,8.57L89.26,44.24Zm-13.69-8,8,8-2.85,2.85-8-8Z&quot;,transform:&quot;matrix(1 0 0 1 -15 -15)&quot;},drawclosedpath:{width:90,height:90,path:&quot;M88.41,21.12a26.56,26.56,0,0,0-36.18,0l-2.07,2-2.07-2a26.57,26.57,0,0,0-36.18,0,23.74,23.74,0,0,0,0,34.8L48,90.12a3.22,3.22,0,0,0,4.42,0l36-34.21a23.73,23.73,0,0,0,0-34.79ZM84,51.24,50.16,83.35,16.35,51.25a17.28,17.28,0,0,1,0-25.47,20,20,0,0,1,27.3,0l4.29,4.07a3.23,3.23,0,0,0,4.44,0l4.29-4.07a20,20,0,0,1,27.3,0,17.27,17.27,0,0,1,0,25.46ZM66.76,47.68h-33v6.91h33ZM53.35,35H46.44V68h6.91Z&quot;,transform:&quot;matrix(1 0 0 1 -5 -5)&quot;},lasso:{width:1031,height:1e3,path:&quot;m1018 538c-36 207-290 336-568 286-277-48-473-256-436-463 10-57 36-108 76-151-13-66 11-137 68-183 34-28 75-41 114-42l-55-70 0 0c-2-1-3-2-4-3-10-14-8-34 5-45 14-11 34-8 45 4 1 1 2 3 2 5l0 0 113 140c16 11 31 24 45 40 4 3 6 7 8 11 48-3 100 0 151 9 278 48 473 255 436 462z m-624-379c-80 14-149 48-197 96 42 42 109 47 156 9 33-26 47-66 41-105z m-187-74c-19 16-33 37-39 60 50-32 109-55 174-68-42-25-95-24-135 8z m360 75c-34-7-69-9-102-8 8 62-16 128-68 170-73 59-175 54-244-5-9 20-16 40-20 61-28 159 121 317 333 354s407-60 434-217c28-159-121-318-333-355z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},selectbox:{width:1e3,height:1e3,path:&quot;m0 850l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-285l0-143 143 0 0 143-143 0z m857 0l0-143 143 0 0 143-143 0z m-857-286l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z m285 0l0-143 143 0 0 143-143 0z m286 0l0-143 143 0 0 143-143 0z&quot;,transform:&quot;matrix(1 0 0 -1 0 850)&quot;},drawline:{width:70,height:70,path:&quot;M60.64,62.3a11.29,11.29,0,0,0,6.09-6.72l6.35-17.72L60.54,25.31l-17.82,6.4c-2.36.86-5.57,3.41-6.6,6L24.48,65.5l8.42,8.42ZM40.79,39.63a7.89,7.89,0,0,1,3.65-3.17l14.79-5.31,8,8L61.94,54l-.06.19a6.44,6.44,0,0,1-3,3.43L34.07,68l-3.62-3.63Zm16.57,7.81a6.9,6.9,0,1,0-6.89,6.9A6.9,6.9,0,0,0,57.36,47.44Zm-4,0a2.86,2.86,0,1,1-2.85-2.85A2.86,2.86,0,0,1,53.32,47.44Zm-4.13,5.22L46.33,49.8,30.08,66.05l2.86,2.86ZM83.65,29,70,15.34,61.4,23.9,75.09,37.59ZM70,21.06l8,8-2.84,2.85-8-8ZM87,80.49H10.67V87H87Z&quot;,transform:&quot;matrix(1 0 0 1 -15 -15)&quot;},drawrect:{width:80,height:80,path:&quot;M78,22V79H21V22H78m9-9H12V88H87V13ZM68,46.22H31V54H68ZM53,32H45.22V69H53Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},drawcircle:{width:80,height:80,path:&quot;M50,84.72C26.84,84.72,8,69.28,8,50.3S26.84,15.87,50,15.87,92,31.31,92,50.3,73.16,84.72,50,84.72Zm0-60.59c-18.6,0-33.74,11.74-33.74,26.17S31.4,76.46,50,76.46,83.74,64.72,83.74,50.3,68.6,24.13,50,24.13Zm17.15,22h-34v7.11h34Zm-13.8-13H46.24v34h7.11Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},eraseshape:{width:80,height:80,path:&quot;M82.77,78H31.85L6,49.57,31.85,21.14H82.77a8.72,8.72,0,0,1,8.65,8.77V69.24A8.72,8.72,0,0,1,82.77,78ZM35.46,69.84H82.77a.57.57,0,0,0,.49-.6V29.91a.57.57,0,0,0-.49-.61H35.46L17,49.57Zm32.68-34.7-24,24,5,5,24-24Zm-19,.53-5,5,24,24,5-5Z&quot;,transform:&quot;matrix(1 0 0 1 -10 -10)&quot;},spikeline:{width:1e3,height:1e3,path:&quot;M512 409c0-57-46-104-103-104-57 0-104 47-104 104 0 57 47 103 104 103 57 0 103-46 103-103z m-327-39l92 0 0 92-92 0z m-185 0l92 0 0 92-92 0z m370-186l92 0 0 93-92 0z m0-184l92 0 0 92-92 0z&quot;,transform:&quot;matrix(1.5 0 0 -1.5 0 850)&quot;},pencil:{width:1792,height:1792,path:&quot;M491 1536l91-91-235-235-91 91v107h128v128h107zm523-928q0-22-22-22-10 0-17 7l-542 542q-7 7-7 17 0 22 22 22 10 0 17-7l542-542q7-7 7-17zm-54-192l416 416-832 832h-416v-416zm683 96q0 53-37 90l-166 166-416-416 166-165q36-38 90-38 53 0 91 38l235 234q37 39 37 91z&quot;,transform:&quot;matrix(1 0 0 1 0 1)&quot;},newplotlylogo:{name:&quot;newplotlylogo&quot;,svg:&quot;&lt;svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 132 132'&gt;&lt;defs&gt;&lt;style&gt;.cls-1 {fill: #3f4f75;} .cls-2 {fill: #80cfbe;} .cls-3 {fill: #fff;}&lt;/style&gt;&lt;/defs&gt;&lt;title&gt;plotly-logomark&lt;/title&gt;&lt;g id='symbol'&gt;&lt;rect class='cls-1' width='132' height='132' rx='6' ry='6'/&gt;&lt;circle class='cls-2' cx='78' cy='54' r='6'/&gt;&lt;circle class='cls-2' cx='102' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='78' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='54' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='30' cy='30' r='6'/&gt;&lt;circle class='cls-2' cx='30' cy='54' r='6'/&gt;&lt;path class='cls-3' d='M30,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,30,72Z'/&gt;&lt;path class='cls-3' d='M78,72a6,6,0,0,0-6,6v24a6,6,0,0,0,12,0V78A6,6,0,0,0,78,72Z'/&gt;&lt;path class='cls-3' d='M54,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,54,48Z'/&gt;&lt;path class='cls-3' d='M102,48a6,6,0,0,0-6,6v48a6,6,0,0,0,12,0V54A6,6,0,0,0,102,48Z'/&gt;&lt;/g&gt;&lt;/svg&gt;&quot;}}},{}],758:[function(t,e,r){&quot;use strict&quot;;r.isLeftAnchor=function(t){return&quot;left&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&lt;=1/3},r.isCenterAnchor=function(t){return&quot;center&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&gt;1/3&amp;&amp;t.x&lt;2/3},r.isRightAnchor=function(t){return&quot;right&quot;===t.xanchor||&quot;auto&quot;===t.xanchor&amp;&amp;t.x&gt;=2/3},r.isTopAnchor=function(t){return&quot;top&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&gt;=2/3},r.isMiddleAnchor=function(t){return&quot;middle&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&gt;1/3&amp;&amp;t.y&lt;2/3},r.isBottomAnchor=function(t){return&quot;bottom&quot;===t.yanchor||&quot;auto&quot;===t.yanchor&amp;&amp;t.y&lt;=1/3}},{}],759:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./mod&quot;),i=n.mod,a=n.modHalf,o=Math.PI,s=2*o;function l(t){return Math.abs(t[1]-t[0])&gt;s-1e-14}function c(t,e){return a(e-t,s)}function u(t,e){if(l(e))return!0;var r,n;e[0]&lt;e[1]?(r=e[0],n=e[1]):(r=e[1],n=e[0]),(r=i(r,s))&gt;(n=i(n,s))&amp;&amp;(n+=s);var a=i(t,s),o=a+s;return a&gt;=r&amp;&amp;a&lt;=n||o&gt;=r&amp;&amp;o&lt;=n}function f(t,e,r,n,i,a,c){i=i||0,a=a||0;var u,f,h,p,d,g=l([r,n]);function m(t,e){return[t*Math.cos(e)+i,a-t*Math.sin(e)]}g?(u=0,f=o,h=s):r&lt;n?(u=r,h=n):(u=n,h=r),t&lt;e?(p=t,d=e):(p=e,d=t);var v,y=Math.abs(h-u)&lt;=o?0:1;function x(t,e,r){return&quot;A&quot;+[t,t]+&quot; &quot;+[0,y,r]+&quot; &quot;+m(t,e)}return g?v=null===p?&quot;M&quot;+m(d,u)+x(d,f,0)+x(d,h,0)+&quot;Z&quot;:&quot;M&quot;+m(p,u)+x(p,f,0)+x(p,h,0)+&quot;ZM&quot;+m(d,u)+x(d,f,1)+x(d,h,1)+&quot;Z&quot;:null===p?(v=&quot;M&quot;+m(d,u)+x(d,h,0),c&amp;&amp;(v+=&quot;L0,0Z&quot;)):v=&quot;M&quot;+m(p,u)+&quot;L&quot;+m(d,u)+x(d,h,0)+&quot;L&quot;+m(p,h)+x(p,u,1)+&quot;Z&quot;,v}e.exports={deg2rad:function(t){return t/180*o},rad2deg:function(t){return t/o*180},angleDelta:c,angleDist:function(t,e){return Math.abs(c(t,e))},isFullCircle:l,isAngleInsideSector:u,isPtInsideSector:function(t,e,r,n){return!!u(e,n)&amp;&amp;(r[0]&lt;r[1]?(i=r[0],a=r[1]):(i=r[1],a=r[0]),t&gt;=i&amp;&amp;t&lt;=a);var i,a},pathArc:function(t,e,r,n,i){return f(null,t,e,r,n,i,0)},pathSector:function(t,e,r,n,i){return f(null,t,e,r,n,i,1)},pathAnnulus:function(t,e,r,n,i,a){return f(t,e,r,n,i,a,1)}}},{&quot;./mod&quot;:785}],760:[function(t,e,r){&quot;use strict&quot;;var n=Array.isArray,i=&quot;undefined&quot;!=typeof ArrayBuffer&amp;&amp;ArrayBuffer.isView?ArrayBuffer:{isView:function(){return!1}},a=&quot;undefined&quot;==typeof DataView?function(){}:DataView;function o(t){return i.isView(t)&amp;&amp;!(t instanceof a)}function s(t){return n(t)||o(t)}function l(t,e,r){if(s(t)){if(s(t[0])){for(var n=r,i=0;i&lt;t.length;i++)n=e(n,t[i].length);return n}return t.length}return 0}r.isTypedArray=o,r.isArrayOrTypedArray=s,r.isArray1D=function(t){return!s(t[0])},r.ensureArray=function(t,e){return n(t)||(t=[]),t.length=e,t},r.concat=function(){var t,e,r,i,a,o,s,l,c=[],u=!0,f=0;for(r=0;r&lt;arguments.length;r++)(o=(i=arguments[r]).length)&amp;&amp;(e?c.push(i):(e=i,a=o),n(i)?t=!1:(u=!1,f?t!==i.constructor&amp;&amp;(t=!1):t=i.constructor),f+=o);if(!f)return[];if(!c.length)return e;if(u)return e.concat.apply(e,c);if(t){for((s=new t(f)).set(e),r=0;r&lt;c.length;r++)i=c[r],s.set(i,a),a+=i.length;return s}for(s=new Array(f),l=0;l&lt;e.length;l++)s[l]=e[l];for(r=0;r&lt;c.length;r++){for(i=c[r],l=0;l&lt;i.length;l++)s[a+l]=i[l];a+=l}return s},r.maxRowLength=function(t){return l(t,Math.max,0)},r.minRowLength=function(t){return l(t,Math.min,1/0)}},{}],761:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../constants/numerical&quot;).BADNUM,a=/^['&quot;%,$#\s']+|[, ]|['&quot;%,$#\s']+$/g;e.exports=function(t){return&quot;string&quot;==typeof t&amp;&amp;(t=t.replace(a,&quot;&quot;)),n(t)?Number(t):i}},{&quot;../constants/numerical&quot;:753,&quot;fast-isnumeric&quot;:241}],762:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t._fullLayout;e._glcanvas&amp;&amp;e._glcanvas.size()&amp;&amp;e._glcanvas.each((function(t){t.regl&amp;&amp;t.regl.clear({color:!0,depth:!0})}))}},{}],763:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){t._responsiveChartHandler&amp;&amp;(window.removeEventListener(&quot;resize&quot;,t._responsiveChartHandler),delete t._responsiveChartHandler)}},{}],764:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../plots/attributes&quot;),o=t(&quot;../components/colorscale/scales&quot;),s=t(&quot;../constants/interactions&quot;).DESELECTDIM,l=t(&quot;./nested_property&quot;),c=t(&quot;./regex&quot;).counter,u=t(&quot;./mod&quot;).modHalf,f=t(&quot;./array&quot;).isArrayOrTypedArray;function h(t,e){var n=r.valObjectMeta[e.valType];if(e.arrayOk&amp;&amp;f(t))return!0;if(n.validateFunction)return n.validateFunction(t,e);var i={},a=i,o={set:function(t){a=t}};return n.coerceFunction(t,o,i,e),a!==i}r.valObjectMeta={data_array:{coerceFunction:function(t,e,r){f(t)?e.set(t):void 0!==r&amp;&amp;e.set(r)}},enumerated:{coerceFunction:function(t,e,r,n){n.coerceNumber&amp;&amp;(t=+t),-1===n.values.indexOf(t)?e.set(r):e.set(t)},validateFunction:function(t,e){e.coerceNumber&amp;&amp;(t=+t);for(var r=e.values,n=0;n&lt;r.length;n++){var i=String(r[n]);if(&quot;/&quot;===i.charAt(0)&amp;&amp;&quot;/&quot;===i.charAt(i.length-1)){if(new RegExp(i.substr(1,i.length-2)).test(t))return!0}else if(t===r[n])return!0}return!1}},boolean:{coerceFunction:function(t,e,r){!0===t||!1===t?e.set(t):e.set(r)}},number:{coerceFunction:function(t,e,r,i){!n(t)||void 0!==i.min&amp;&amp;t&lt;i.min||void 0!==i.max&amp;&amp;t&gt;i.max?e.set(r):e.set(+t)}},integer:{coerceFunction:function(t,e,r,i){t%1||!n(t)||void 0!==i.min&amp;&amp;t&lt;i.min||void 0!==i.max&amp;&amp;t&gt;i.max?e.set(r):e.set(+t)}},string:{coerceFunction:function(t,e,r,n){if(&quot;string&quot;!=typeof t){var i=&quot;number&quot;==typeof t;!0!==n.strict&amp;&amp;i?e.set(String(t)):e.set(r)}else n.noBlank&amp;&amp;!t?e.set(r):e.set(t)}},color:{coerceFunction:function(t,e,r){i(t).isValid()?e.set(t):e.set(r)}},colorlist:{coerceFunction:function(t,e,r){Array.isArray(t)&amp;&amp;t.length&amp;&amp;t.every((function(t){return i(t).isValid()}))?e.set(t):e.set(r)}},colorscale:{coerceFunction:function(t,e,r){e.set(o.get(t,r))}},angle:{coerceFunction:function(t,e,r){&quot;auto&quot;===t?e.set(&quot;auto&quot;):n(t)?e.set(u(+t,360)):e.set(r)}},subplotid:{coerceFunction:function(t,e,r,n){var i=n.regex||c(r);&quot;string&quot;==typeof t&amp;&amp;i.test(t)?e.set(t):e.set(r)},validateFunction:function(t,e){var r=e.dflt;return t===r||&quot;string&quot;==typeof t&amp;&amp;!!c(r).test(t)}},flaglist:{coerceFunction:function(t,e,r,n){if(&quot;string&quot;==typeof t)if(-1===(n.extras||[]).indexOf(t)){for(var i=t.split(&quot;+&quot;),a=0;a&lt;i.length;){var o=i[a];-1===n.flags.indexOf(o)||i.indexOf(o)&lt;a?i.splice(a,1):a++}i.length?e.set(i.join(&quot;+&quot;)):e.set(r)}else e.set(t);else e.set(r)}},any:{coerceFunction:function(t,e,r){void 0===t?e.set(r):e.set(t)}},info_array:{coerceFunction:function(t,e,n,i){function a(t,e,n){var i,a={set:function(t){i=t}};return void 0===n&amp;&amp;(n=e.dflt),r.valObjectMeta[e.valType].coerceFunction(t,a,n,e),i}var o=2===i.dimensions||&quot;1-2&quot;===i.dimensions&amp;&amp;Array.isArray(t)&amp;&amp;Array.isArray(t[0]);if(Array.isArray(t)){var s,l,c,u,f,h,p=i.items,d=[],g=Array.isArray(p),m=g&amp;&amp;o&amp;&amp;Array.isArray(p[0]),v=o&amp;&amp;g&amp;&amp;!m,y=g&amp;&amp;!v?p.length:t.length;if(n=Array.isArray(n)?n:[],o)for(s=0;s&lt;y;s++)for(d[s]=[],c=Array.isArray(t[s])?t[s]:[],f=v?p.length:g?p[s].length:c.length,l=0;l&lt;f;l++)u=v?p[l]:g?p[s][l]:p,void 0!==(h=a(c[l],u,(n[s]||[])[l]))&amp;&amp;(d[s][l]=h);else for(s=0;s&lt;y;s++)void 0!==(h=a(t[s],g?p[s]:p,n[s]))&amp;&amp;(d[s]=h);e.set(d)}else e.set(n)},validateFunction:function(t,e){if(!Array.isArray(t))return!1;var r=e.items,n=Array.isArray(r),i=2===e.dimensions;if(!e.freeLength&amp;&amp;t.length!==r.length)return!1;for(var a=0;a&lt;t.length;a++)if(i){if(!Array.isArray(t[a])||!e.freeLength&amp;&amp;t[a].length!==r[a].length)return!1;for(var o=0;o&lt;t[a].length;o++)if(!h(t[a][o],n?r[a][o]:r))return!1}else if(!h(t[a],n?r[a]:r))return!1;return!0}}},r.coerce=function(t,e,n,i,a){var o=l(n,i).get(),s=l(t,i),c=l(e,i),u=s.get(),p=e._template;if(void 0===u&amp;&amp;p&amp;&amp;(u=l(p,i).get(),p=0),void 0===a&amp;&amp;(a=o.dflt),o.arrayOk&amp;&amp;f(u))return c.set(u),u;var d=r.valObjectMeta[o.valType].coerceFunction;d(u,c,a,o);var g=c.get();return p&amp;&amp;g===a&amp;&amp;!h(u,o)&amp;&amp;(d(u=l(p,i).get(),c,a,o),g=c.get()),g},r.coerce2=function(t,e,n,i,a){var o=l(t,i),s=r.coerce(t,e,n,i,a),c=o.get();return null!=c&amp;&amp;s},r.coerceFont=function(t,e,r){var n={};return r=r||{},n.family=t(e+&quot;.family&quot;,r.family),n.size=t(e+&quot;.size&quot;,r.size),n.color=t(e+&quot;.color&quot;,r.color),n},r.coerceHoverinfo=function(t,e,n){var i,o=e._module.attributes,s=o.hoverinfo?o:a,l=s.hoverinfo;if(1===n._dataLength){var c=&quot;all&quot;===l.dflt?l.flags.slice():l.dflt.split(&quot;+&quot;);c.splice(c.indexOf(&quot;name&quot;),1),i=c.join(&quot;+&quot;)}return r.coerce(t,e,s,&quot;hoverinfo&quot;,i)},r.coerceSelectionMarkerOpacity=function(t,e){if(t.marker){var r,n,i=t.marker.opacity;if(void 0!==i)f(i)||t.selected||t.unselected||(r=i,n=s*i),e(&quot;selected.marker.opacity&quot;,r),e(&quot;unselected.marker.opacity&quot;,n)}},r.validate=h},{&quot;../components/colorscale/scales&quot;:658,&quot;../constants/interactions&quot;:752,&quot;../plots/attributes&quot;:824,&quot;./array&quot;:760,&quot;./mod&quot;:785,&quot;./nested_property&quot;:786,&quot;./regex&quot;:795,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],765:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;d3-time-format&quot;).timeFormat,o=t(&quot;fast-isnumeric&quot;),s=t(&quot;./loggers&quot;),l=t(&quot;./mod&quot;).mod,c=t(&quot;../constants/numerical&quot;),u=c.BADNUM,f=c.ONEDAY,h=c.ONEHOUR,p=c.ONEMIN,d=c.ONESEC,g=c.EPOCHJD,m=t(&quot;../registry&quot;),v=t(&quot;d3-time-format&quot;).utcFormat,y=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\d)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,x=/^\s*(-?\d\d\d\d|\d\d)(-(\d?\di?)(-(\d?\d)([ Tt]([01]?\d|2[0-3])(:([0-5]\d)(:([0-5]\d(\.\d+)?))?(Z|z|[+\-]\d\d(:?\d\d)?)?)?)?)?)?\s*$/m,b=(new Date).getFullYear()-70;function _(t){return t&amp;&amp;m.componentsRegistry.calendars&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;&quot;gregorian&quot;!==t}function w(t,e){return String(t+Math.pow(10,e)).substr(1)}r.dateTick0=function(t,e){var n=function(t,e){return _(t)?e?m.getComponentMethod(&quot;calendars&quot;,&quot;CANONICAL_SUNDAY&quot;)[t]:m.getComponentMethod(&quot;calendars&quot;,&quot;CANONICAL_TICK&quot;)[t]:e?&quot;2000-01-02&quot;:&quot;2000-01-01&quot;}(t,!!e);if(e&lt;2)return n;var i=r.dateTime2ms(n,t);return i+=f*(e-1),r.ms2DateTime(i,0,t)},r.dfltRange=function(t){return _(t)?m.getComponentMethod(&quot;calendars&quot;,&quot;DFLTRANGE&quot;)[t]:[&quot;2000-01-01&quot;,&quot;2001-01-01&quot;]},r.isJSDate=function(t){return&quot;object&quot;==typeof t&amp;&amp;null!==t&amp;&amp;&quot;function&quot;==typeof t.getTime},r.dateTime2ms=function(t,e){if(r.isJSDate(t)){var a=t.getTimezoneOffset()*p,o=(t.getUTCMinutes()-t.getMinutes())*p+(t.getUTCSeconds()-t.getSeconds())*d+(t.getUTCMilliseconds()-t.getMilliseconds());if(o){var s=3*p;a=a-s/2+l(o-a+s/2,s)}return(t=Number(t)-a)&gt;=n&amp;&amp;t&lt;=i?t:u}if(&quot;string&quot;!=typeof t&amp;&amp;&quot;number&quot;!=typeof t)return u;t=String(t);var c=_(e),v=t.charAt(0);!c||&quot;G&quot;!==v&amp;&amp;&quot;g&quot;!==v||(t=t.substr(1),e=&quot;&quot;);var w=c&amp;&amp;&quot;chinese&quot;===e.substr(0,7),T=t.match(w?x:y);if(!T)return u;var k=T[1],M=T[3]||&quot;1&quot;,A=Number(T[5]||1),S=Number(T[7]||0),E=Number(T[9]||0),C=Number(T[11]||0);if(c){if(2===k.length)return u;var L;k=Number(k);try{var I=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(e);if(w){var P=&quot;i&quot;===M.charAt(M.length-1);M=parseInt(M,10),L=I.newDate(k,I.toMonthIndex(k,M,P),A)}else L=I.newDate(k,Number(M),A)}catch(t){return u}return L?(L.toJD()-g)*f+S*h+E*p+C*d:u}k=2===k.length?(Number(k)+2e3-b)%100+b:Number(k),M-=1;var z=new Date(Date.UTC(2e3,M,A,S,E));return z.setUTCFullYear(k),z.getUTCMonth()!==M||z.getUTCDate()!==A?u:z.getTime()+C*d},n=r.MIN_MS=r.dateTime2ms(&quot;-9999&quot;),i=r.MAX_MS=r.dateTime2ms(&quot;9999-12-31 23:59:59.9999&quot;),r.isDateTime=function(t,e){return r.dateTime2ms(t,e)!==u};var T=90*f,k=3*h,M=5*p;function A(t,e,r,n,i){if((e||r||n||i)&amp;&amp;(t+=&quot; &quot;+w(e,2)+&quot;:&quot;+w(r,2),(n||i)&amp;&amp;(t+=&quot;:&quot;+w(n,2),i))){for(var a=4;i%10==0;)a-=1,i/=10;t+=&quot;.&quot;+w(i,a)}return t}r.ms2DateTime=function(t,e,r){if(&quot;number&quot;!=typeof t||!(t&gt;=n&amp;&amp;t&lt;=i))return u;e||(e=0);var a,o,s,c,y,x,b=Math.floor(10*l(t+.05,1)),w=Math.round(t-b/10);if(_(r)){var S=Math.floor(w/f)+g,E=Math.floor(l(t,f));try{a=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(r).fromJD(S).formatDate(&quot;yyyy-mm-dd&quot;)}catch(t){a=v(&quot;G%Y-%m-%d&quot;)(new Date(w))}if(&quot;-&quot;===a.charAt(0))for(;a.length&lt;11;)a=&quot;-0&quot;+a.substr(1);else for(;a.length&lt;10;)a=&quot;0&quot;+a;o=e&lt;T?Math.floor(E/h):0,s=e&lt;T?Math.floor(E%h/p):0,c=e&lt;k?Math.floor(E%p/d):0,y=e&lt;M?E%d*10+b:0}else x=new Date(w),a=v(&quot;%Y-%m-%d&quot;)(x),o=e&lt;T?x.getUTCHours():0,s=e&lt;T?x.getUTCMinutes():0,c=e&lt;k?x.getUTCSeconds():0,y=e&lt;M?10*x.getUTCMilliseconds()+b:0;return A(a,o,s,c,y)},r.ms2DateTimeLocal=function(t){if(!(t&gt;=n+f&amp;&amp;t&lt;=i-f))return u;var e=Math.floor(10*l(t+.05,1)),r=new Date(Math.round(t-e/10));return A(a(&quot;%Y-%m-%d&quot;)(r),r.getHours(),r.getMinutes(),r.getSeconds(),10*r.getUTCMilliseconds()+e)},r.cleanDate=function(t,e,n){if(t===u)return e;if(r.isJSDate(t)||&quot;number&quot;==typeof t&amp;&amp;isFinite(t)){if(_(n))return s.error(&quot;JS Dates and milliseconds are incompatible with world calendars&quot;,t),e;if(!(t=r.ms2DateTimeLocal(+t))&amp;&amp;void 0!==e)return e}else if(!r.isDateTime(t,n))return s.error(&quot;unrecognized date&quot;,t),e;return t};var S=/%\d?f/g;function E(t,e,r,n){t=t.replace(S,(function(t){var r=Math.min(+t.charAt(1)||6,6);return(e/1e3%1+2).toFixed(r).substr(2).replace(/0+$/,&quot;&quot;)||&quot;0&quot;}));var i=new Date(Math.floor(e+.05));if(_(n))try{t=m.getComponentMethod(&quot;calendars&quot;,&quot;worldCalFmt&quot;)(t,e,n)}catch(t){return&quot;Invalid&quot;}return r(t)(i)}var C=[59,59.9,59.99,59.999,59.9999];r.formatDate=function(t,e,r,n,i,a){if(i=_(i)&amp;&amp;i,!e)if(&quot;y&quot;===r)e=a.year;else if(&quot;m&quot;===r)e=a.month;else{if(&quot;d&quot;!==r)return function(t,e){var r=l(t+.05,f),n=w(Math.floor(r/h),2)+&quot;:&quot;+w(l(Math.floor(r/p),60),2);if(&quot;M&quot;!==e){o(e)||(e=0);var i=(100+Math.min(l(t/d,60),C[e])).toFixed(e).substr(1);e&gt;0&amp;&amp;(i=i.replace(/0+$/,&quot;&quot;).replace(/[\.]$/,&quot;&quot;)),n+=&quot;:&quot;+i}return n}(t,r)+&quot;\n&quot;+E(a.dayMonthYear,t,n,i);e=a.dayMonth+&quot;\n&quot;+a.year}return E(e,t,n,i)};var L=3*f;r.incrementMonth=function(t,e,r){r=_(r)&amp;&amp;r;var n=l(t,f);if(t=Math.round(t-n),r)try{var i=Math.round(t/f)+g,a=m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(r),o=a.fromJD(i);return e%12?a.add(o,e,&quot;m&quot;):a.add(o,e/12,&quot;y&quot;),(o.toJD()-g)*f+n}catch(e){s.error(&quot;invalid ms &quot;+t+&quot; in calendar &quot;+r)}var c=new Date(t+L);return c.setUTCMonth(c.getUTCMonth()+e)+n-L},r.findExactDates=function(t,e){for(var r,n,i=0,a=0,s=0,l=0,c=_(e)&amp;&amp;m.getComponentMethod(&quot;calendars&quot;,&quot;getCal&quot;)(e),u=0;u&lt;t.length;u++)if(n=t[u],o(n)){if(!(n%f))if(c)try{1===(r=c.fromJD(n/f+g)).day()?1===r.month()?i++:a++:s++}catch(t){}else 1===(r=new Date(n)).getUTCDate()?0===r.getUTCMonth()?i++:a++:s++}else l++;s+=a+=i;var h=t.length-l;return{exactYears:i/h,exactMonths:a/h,exactDays:s/h}}},{&quot;../constants/numerical&quot;:753,&quot;../registry&quot;:911,&quot;./loggers&quot;:782,&quot;./mod&quot;:785,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],766:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;./loggers&quot;),a=t(&quot;./matrix&quot;),o=t(&quot;gl-mat4&quot;);function s(t){var e=t&amp;&amp;t.parentNode;e&amp;&amp;e.removeChild(t)}function l(t,e,r){var n=&quot;plotly.js-style-&quot;+t,a=document.getElementById(n);a||((a=document.createElement(&quot;style&quot;)).setAttribute(&quot;id&quot;,n),a.appendChild(document.createTextNode(&quot;&quot;)),document.head.appendChild(a));var o=a.sheet;o.insertRule?o.insertRule(e+&quot;{&quot;+r+&quot;}&quot;,0):o.addRule?o.addRule(e,r,0):i.warn(&quot;addStyleRule failed&quot;)}function c(t){var e=window.getComputedStyle(t,null),r=e.getPropertyValue(&quot;-webkit-transform&quot;)||e.getPropertyValue(&quot;-moz-transform&quot;)||e.getPropertyValue(&quot;-ms-transform&quot;)||e.getPropertyValue(&quot;-o-transform&quot;)||e.getPropertyValue(&quot;transform&quot;);return&quot;none&quot;===r?null:r.replace(&quot;matrix&quot;,&quot;&quot;).replace(&quot;3d&quot;,&quot;&quot;).slice(1,-1).split(&quot;,&quot;).map((function(t){return+t}))}function u(t){for(var e=[];f(t);)e.push(t),t=t.parentNode;return e}function f(t){return t&amp;&amp;(t instanceof Element||t instanceof HTMLElement)}e.exports={getGraphDiv:function(t){var e;if(&quot;string&quot;==typeof t){if(null===(e=document.getElementById(t)))throw new Error(&quot;No DOM element with id '&quot;+t+&quot;' exists on the page.&quot;);return e}if(null==t)throw new Error(&quot;DOM element provided is null or undefined&quot;);return t},isPlotDiv:function(t){var e=n.select(t);return e.node()instanceof HTMLElement&amp;&amp;e.size()&amp;&amp;e.classed(&quot;js-plotly-plot&quot;)},removeElement:s,addStyleRule:function(t,e){l(&quot;global&quot;,t,e)},addRelatedStyleRule:l,deleteRelatedStyleRule:function(t){var e=&quot;plotly.js-style-&quot;+t,r=document.getElementById(e);r&amp;&amp;s(r)},getFullTransformMatrix:function(t){var e=u(t),r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];return e.forEach((function(t){var e=c(t);if(e){var n=a.convertCssMatrix(e);r=o.multiply(r,r,n)}})),r},getElementTransformMatrix:c,getElementAndAncestors:u,equalDomRects:function(t,e){return t&amp;&amp;e&amp;&amp;t.x===e.x&amp;&amp;t.y===e.y&amp;&amp;t.top===e.top&amp;&amp;t.left===e.left&amp;&amp;t.right===e.right&amp;&amp;t.bottom===e.bottom}}},{&quot;./loggers&quot;:782,&quot;./matrix&quot;:784,d3:169,&quot;gl-mat4&quot;:292}],767:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;events&quot;).EventEmitter,i={init:function(t){if(t._ev instanceof n)return t;var e=new n,r=new n;return t._ev=e,t._internalEv=r,t.on=e.on.bind(e),t.once=e.once.bind(e),t.removeListener=e.removeListener.bind(e),t.removeAllListeners=e.removeAllListeners.bind(e),t._internalOn=r.on.bind(r),t._internalOnce=r.once.bind(r),t._removeInternalListener=r.removeListener.bind(r),t._removeAllInternalListeners=r.removeAllListeners.bind(r),t.emit=function(n,i){&quot;undefined&quot;!=typeof jQuery&amp;&amp;jQuery(t).trigger(n,i),e.emit(n,i),r.emit(n,i)},t},triggerHandler:function(t,e,r){var n,i;&quot;undefined&quot;!=typeof jQuery&amp;&amp;(n=jQuery(t).triggerHandler(e,r));var a=t._ev;if(!a)return n;var o,s=a._events[e];if(!s)return n;function l(t){return t.listener?(a.removeListener(e,t.listener),t.fired?void 0:(t.fired=!0,t.listener.apply(a,[r]))):t.apply(a,[r])}for(s=Array.isArray(s)?s:[s],o=0;o&lt;s.length-1;o++)l(s[o]);return i=l(s[o]),void 0!==n?n:i},purge:function(t){return delete t._ev,delete t.on,delete t.once,delete t.removeListener,delete t.removeAllListeners,delete t.emit,delete t._ev,delete t._internalEv,delete t._internalOn,delete t._internalOnce,delete t._removeInternalListener,delete t._removeAllInternalListeners,t}};e.exports=i},{events:110}],768:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./is_plain_object.js&quot;),i=Array.isArray;function a(t,e,r,o){var s,l,c,u,f,h,p=t[0],d=t.length;if(2===d&amp;&amp;i(p)&amp;&amp;i(t[1])&amp;&amp;0===p.length){if(function(t,e){var r,n;for(r=0;r&lt;t.length;r++){if(null!==(n=t[r])&amp;&amp;&quot;object&quot;==typeof n)return!1;void 0!==n&amp;&amp;(e[r]=n)}return!0}(t[1],p))return p;p.splice(0,p.length)}for(var g=1;g&lt;d;g++)for(l in s=t[g])c=p[l],u=s[l],o&amp;&amp;i(u)?p[l]=u:e&amp;&amp;u&amp;&amp;(n(u)||(f=i(u)))?(f?(f=!1,h=c&amp;&amp;i(c)?c:[]):h=c&amp;&amp;n(c)?c:{},p[l]=a([h,u],e,r,o)):(&quot;undefined&quot;!=typeof u||r)&amp;&amp;(p[l]=u);return p}r.extendFlat=function(){return a(arguments,!1,!1,!1)},r.extendDeep=function(){return a(arguments,!0,!1,!1)},r.extendDeepAll=function(){return a(arguments,!0,!0,!1)},r.extendDeepNoArrays=function(){return a(arguments,!0,!1,!0)}},{&quot;./is_plain_object.js&quot;:779}],769:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e={},r=[],n=0,i=0;i&lt;t.length;i++){var a=t[i];1!==e[a]&amp;&amp;(e[a]=1,r[n++]=a)}return r}},{}],770:[function(t,e,r){&quot;use strict&quot;;function n(t){return!0===t.visible}function i(t){var e=t[0].trace;return!0===e.visible&amp;&amp;0!==e._length}e.exports=function(t){for(var e,r=(e=t,Array.isArray(e)&amp;&amp;Array.isArray(e[0])&amp;&amp;e[0][0]&amp;&amp;e[0][0].trace?i:n),a=[],o=0;o&lt;t.length;o++){var s=t[o];r(s)&amp;&amp;a.push(s)}return a}},{}],771:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;country-regex&quot;),a=t(&quot;@turf/area&quot;),o=t(&quot;@turf/centroid&quot;),s=t(&quot;@turf/bbox&quot;),l=t(&quot;./identity&quot;),c=t(&quot;./loggers&quot;),u=t(&quot;./is_plain_object&quot;),f=t(&quot;./nested_property&quot;),h=t(&quot;./polygon&quot;),p=Object.keys(i),d={&quot;ISO-3&quot;:l,&quot;USA-states&quot;:l,&quot;country names&quot;:function(t){for(var e=0;e&lt;p.length;e++){var r=p[e];if(new RegExp(i[r]).test(t.trim().toLowerCase()))return r}return c.log(&quot;Unrecognized country name: &quot;+t+&quot;.&quot;),!1}};function g(t){var e=t.geojson,r=window.PlotlyGeoAssets||{},n=&quot;string&quot;==typeof e?r[e]:e;return u(n)?n:(c.error(&quot;Oops ... something went wrong when fetching &quot;+e),!1)}e.exports={locationToFeature:function(t,e,r){if(!e||&quot;string&quot;!=typeof e)return!1;var n,i,a,o=d[t](e);if(o){if(&quot;USA-states&quot;===t)for(n=[],a=0;a&lt;r.length;a++)(i=r[a]).properties&amp;&amp;i.properties.gu&amp;&amp;&quot;USA&quot;===i.properties.gu&amp;&amp;n.push(i);else n=r;for(a=0;a&lt;n.length;a++)if((i=n[a]).id===o)return i;c.log([&quot;Location with id&quot;,o,&quot;does not have a matching topojson feature at this resolution.&quot;].join(&quot; &quot;))}return!1},feature2polygons:function(t){var e,r,n,i,a=t.geometry,o=a.coordinates,s=t.id,l=[];function c(t){for(var e=0;e&lt;t.length-1;e++)if(t[e][0]&gt;0&amp;&amp;t[e+1][0]&lt;0)return e;return null}switch(e=&quot;RUS&quot;===s||&quot;FJI&quot;===s?function(t){var e;if(null===c(t))e=t;else for(e=new Array(t.length),i=0;i&lt;t.length;i++)e[i]=[t[i][0]&lt;0?t[i][0]+360:t[i][0],t[i][1]];l.push(h.tester(e))}:&quot;ATA&quot;===s?function(t){var e=c(t);if(null===e)return l.push(h.tester(t));var r=new Array(t.length+1),n=0;for(i=0;i&lt;t.length;i++)i&gt;e?r[n++]=[t[i][0]+360,t[i][1]]:i===e?(r[n++]=t[i],r[n++]=[t[i][0],-90]):r[n++]=t[i];var a=h.tester(r);a.pts.pop(),l.push(a)}:function(t){l.push(h.tester(t))},a.type){case&quot;MultiPolygon&quot;:for(r=0;r&lt;o.length;r++)for(n=0;n&lt;o[r].length;n++)e(o[r][n]);break;case&quot;Polygon&quot;:for(r=0;r&lt;o.length;r++)e(o[r])}return l},getTraceGeojson:g,extractTraceFeature:function(t){var e=t[0].trace,r=g(e);if(!r)return!1;var n,i={},s=[];for(n=0;n&lt;e._length;n++){var l=t[n];(l.loc||0===l.loc)&amp;&amp;(i[l.loc]=l)}function u(t){var r=f(t,e.featureidkey||&quot;id&quot;).get(),n=i[r];if(n){var l=t.geometry;if(&quot;Polygon&quot;===l.type||&quot;MultiPolygon&quot;===l.type){var u={type:&quot;Feature&quot;,id:r,geometry:l,properties:{}};u.properties.ct=function(t){var e,r=t.geometry;if(&quot;MultiPolygon&quot;===r.type)for(var n=r.coordinates,i=0,s=0;s&lt;n.length;s++){var l={type:&quot;Polygon&quot;,coordinates:n[s]},c=a.default(l);c&gt;i&amp;&amp;(i=c,e=l)}else e=r;return o.default(e).geometry.coordinates}(u),n.fIn=t,n.fOut=u,s.push(u)}else c.log([&quot;Location&quot;,n.loc,&quot;does not have a valid GeoJSON geometry.&quot;,&quot;Traces with locationmode *geojson-id* only support&quot;,&quot;*Polygon* and *MultiPolygon* geometries.&quot;].join(&quot; &quot;))}delete i[r]}switch(r.type){case&quot;FeatureCollection&quot;:var h=r.features;for(n=0;n&lt;h.length;n++)u(h[n]);break;case&quot;Feature&quot;:u(r);break;default:return c.warn([&quot;Invalid GeoJSON type&quot;,(r.type||&quot;none&quot;)+&quot;.&quot;,&quot;Traces with locationmode *geojson-id* only support&quot;,&quot;*FeatureCollection* and *Feature* types.&quot;].join(&quot; &quot;)),!1}for(var p in i)c.log([&quot;Location *&quot;+p+&quot;*&quot;,&quot;does not have a matching feature with id-key&quot;,&quot;*&quot;+e.featureidkey+&quot;*.&quot;].join(&quot; &quot;));return s},fetchTraceGeoData:function(t){var e=window.PlotlyGeoAssets||{},r=[];function i(t){return new Promise((function(r,i){n.json(t,(function(n,a){if(n){delete e[t];var o=404===n.status?'GeoJSON at URL &quot;'+t+'&quot; does not exist.':&quot;Unexpected error while fetching from &quot;+t;return i(new Error(o))}return e[t]=a,r(a)}))}))}function a(t){return new Promise((function(r,n){var i=0,a=setInterval((function(){return e[t]&amp;&amp;&quot;pending&quot;!==e[t]?(clearInterval(a),r(e[t])):i&gt;100?(clearInterval(a),n(&quot;Unexpected error while fetching from &quot;+t)):void i++}),50)}))}for(var o=0;o&lt;t.length;o++){var s=t[o][0].trace.geojson;&quot;string&quot;==typeof s&amp;&amp;(e[s]?&quot;pending&quot;===e[s]&amp;&amp;r.push(a(s)):(e[s]=&quot;pending&quot;,r.push(i(s))))}return r},computeBbox:function(t){return s.default(t)}}},{&quot;./identity&quot;:776,&quot;./is_plain_object&quot;:779,&quot;./loggers&quot;:782,&quot;./nested_property&quot;:786,&quot;./polygon&quot;:790,&quot;@turf/area&quot;:59,&quot;@turf/bbox&quot;:60,&quot;@turf/centroid&quot;:61,&quot;country-regex&quot;:139,d3:169}],772:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../constants/numerical&quot;).BADNUM;r.calcTraceToLineCoords=function(t){for(var e=t[0].trace.connectgaps,r=[],i=[],a=0;a&lt;t.length;a++){var o=t[a].lonlat;o[0]!==n?i.push(o):!e&amp;&amp;i.length&gt;0&amp;&amp;(r.push(i),i=[])}return i.length&gt;0&amp;&amp;r.push(i),r},r.makeLine=function(t){return 1===t.length?{type:&quot;LineString&quot;,coordinates:t[0]}:{type:&quot;MultiLineString&quot;,coordinates:t}},r.makePolygon=function(t){if(1===t.length)return{type:&quot;Polygon&quot;,coordinates:t};for(var e=new Array(t.length),r=0;r&lt;t.length;r++)e[r]=[t[r]];return{type:&quot;MultiPolygon&quot;,coordinates:e}},r.makeBlank=function(){return{type:&quot;Point&quot;,coordinates:[]}}},{&quot;../constants/numerical&quot;:753}],773:[function(t,e,r){&quot;use strict&quot;;var n,i,a,o=t(&quot;./mod&quot;).mod;function s(t,e,r,n,i,a,o,s){var l=r-t,c=i-t,u=o-i,f=n-e,h=a-e,p=s-a,d=l*p-u*f;if(0===d)return null;var g=(c*p-u*h)/d,m=(c*f-l*h)/d;return m&lt;0||m&gt;1||g&lt;0||g&gt;1?null:{x:t+l*g,y:e+f*g}}function l(t,e,r,n,i){var a=n*t+i*e;if(a&lt;0)return n*n+i*i;if(a&gt;r){var o=n-t,s=i-e;return o*o+s*s}var l=n*e-i*t;return l*l/r}r.segmentsIntersect=s,r.segmentDistance=function(t,e,r,n,i,a,o,c){if(s(t,e,r,n,i,a,o,c))return 0;var u=r-t,f=n-e,h=o-i,p=c-a,d=u*u+f*f,g=h*h+p*p,m=Math.min(l(u,f,d,i-t,a-e),l(u,f,d,o-t,c-e),l(h,p,g,t-i,e-a),l(h,p,g,r-i,n-a));return Math.sqrt(m)},r.getTextLocation=function(t,e,r,s){if(t===i&amp;&amp;s===a||(n={},i=t,a=s),n[r])return n[r];var l=t.getPointAtLength(o(r-s/2,e)),c=t.getPointAtLength(o(r+s/2,e)),u=Math.atan((c.y-l.y)/(c.x-l.x)),f=t.getPointAtLength(o(r,e)),h={x:(4*f.x+l.x+c.x)/6,y:(4*f.y+l.y+c.y)/6,theta:u};return n[r]=h,h},r.clearLocationCache=function(){i=null},r.getVisibleSegment=function(t,e,r){var n,i,a=e.left,o=e.right,s=e.top,l=e.bottom,c=0,u=t.getTotalLength(),f=u;function h(e){var r=t.getPointAtLength(e);0===e?n=r:e===u&amp;&amp;(i=r);var c=r.x&lt;a?a-r.x:r.x&gt;o?r.x-o:0,f=r.y&lt;s?s-r.y:r.y&gt;l?r.y-l:0;return Math.sqrt(c*c+f*f)}for(var p=h(c);p;){if((c+=p+r)&gt;f)return;p=h(c)}for(p=h(f);p;){if(c&gt;(f-=p+r))return;p=h(f)}return{min:c,max:f,len:f-c,total:u,isClosed:0===c&amp;&amp;f===u&amp;&amp;Math.abs(n.x-i.x)&lt;.1&amp;&amp;Math.abs(n.y-i.y)&lt;.1}},r.findPointOnPath=function(t,e,r,n){for(var i,a,o,s=(n=n||{}).pathLength||t.getTotalLength(),l=n.tolerance||.001,c=n.iterationLimit||30,u=t.getPointAtLength(0)[r]&gt;t.getPointAtLength(s)[r]?-1:1,f=0,h=0,p=s;f&lt;c;){if(i=(h+p)/2,o=(a=t.getPointAtLength(i))[r]-e,Math.abs(o)&lt;l)return a;u*o&gt;0?p=i:h=i,f++}return a}},{&quot;./mod&quot;:785}],774:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;color-normalize&quot;),o=t(&quot;../components/colorscale&quot;),s=t(&quot;../components/color/attributes&quot;).defaultLine,l=t(&quot;./array&quot;).isArrayOrTypedArray,c=a(s);function u(t,e){var r=t;return r[3]*=e,r}function f(t){if(n(t))return c;var e=a(t);return e.length?e:c}function h(t){return n(t)?t:1}e.exports={formatColor:function(t,e,r){var n,i,s,p,d,g=t.color,m=l(g),v=l(e),y=o.extractOpts(t),x=[];if(n=void 0!==y.colorscale?o.makeColorScaleFuncFromTrace(t):f,i=m?function(t,e){return void 0===t[e]?c:a(n(t[e]))}:f,s=v?function(t,e){return void 0===t[e]?1:h(t[e])}:h,m||v)for(var b=0;b&lt;r;b++)p=i(g,b),d=s(e,b),x[b]=u(p,d);else x=u(a(g),e);return x},parseColorScale:function(t){var e=o.extractOpts(t),r=e.colorscale;return e.reversescale&amp;&amp;(r=o.flipScale(e.colorscale)),r.map((function(t){var e=t[0],r=i(t[1]).toRgb();return{index:e,rgb:[r.r,r.g,r.b,r.a]}}))}}},{&quot;../components/color/attributes&quot;:642,&quot;../components/colorscale&quot;:655,&quot;./array&quot;:760,&quot;color-normalize&quot;:125,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],775:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./identity&quot;);function i(t){return[t]}e.exports={keyFun:function(t){return t.key},repeat:i,descend:n,wrap:i,unwrap:function(t){return t[0]}}},{&quot;./identity&quot;:776}],776:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t}},{}],777:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(!e)return t;var r=1/Math.abs(e),n=r&gt;1?(r*t+r*e)/r:t+e,i=String(n).length;if(i&gt;16){var a=String(e).length;if(i&gt;=String(t).length+a){var o=parseFloat(n).toPrecision(12);-1===o.indexOf(&quot;e+&quot;)&amp;&amp;(n=+o)}}return n}},{}],778:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-time-format&quot;).utcFormat,a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../constants/numerical&quot;),s=o.FP_SAFE,l=o.BADNUM,c=e.exports={};c.nestedProperty=t(&quot;./nested_property&quot;),c.keyedContainer=t(&quot;./keyed_container&quot;),c.relativeAttr=t(&quot;./relative_attr&quot;),c.isPlainObject=t(&quot;./is_plain_object&quot;),c.toLogRange=t(&quot;./to_log_range&quot;),c.relinkPrivateKeys=t(&quot;./relink_private&quot;);var u=t(&quot;./array&quot;);c.isTypedArray=u.isTypedArray,c.isArrayOrTypedArray=u.isArrayOrTypedArray,c.isArray1D=u.isArray1D,c.ensureArray=u.ensureArray,c.concat=u.concat,c.maxRowLength=u.maxRowLength,c.minRowLength=u.minRowLength;var f=t(&quot;./mod&quot;);c.mod=f.mod,c.modHalf=f.modHalf;var h=t(&quot;./coerce&quot;);c.valObjectMeta=h.valObjectMeta,c.coerce=h.coerce,c.coerce2=h.coerce2,c.coerceFont=h.coerceFont,c.coerceHoverinfo=h.coerceHoverinfo,c.coerceSelectionMarkerOpacity=h.coerceSelectionMarkerOpacity,c.validate=h.validate;var p=t(&quot;./dates&quot;);c.dateTime2ms=p.dateTime2ms,c.isDateTime=p.isDateTime,c.ms2DateTime=p.ms2DateTime,c.ms2DateTimeLocal=p.ms2DateTimeLocal,c.cleanDate=p.cleanDate,c.isJSDate=p.isJSDate,c.formatDate=p.formatDate,c.incrementMonth=p.incrementMonth,c.dateTick0=p.dateTick0,c.dfltRange=p.dfltRange,c.findExactDates=p.findExactDates,c.MIN_MS=p.MIN_MS,c.MAX_MS=p.MAX_MS;var d=t(&quot;./search&quot;);c.findBin=d.findBin,c.sorterAsc=d.sorterAsc,c.sorterDes=d.sorterDes,c.distinctVals=d.distinctVals,c.roundUp=d.roundUp,c.sort=d.sort,c.findIndexOfMin=d.findIndexOfMin;var g=t(&quot;./stats&quot;);c.aggNums=g.aggNums,c.len=g.len,c.mean=g.mean,c.median=g.median,c.midRange=g.midRange,c.variance=g.variance,c.stdev=g.stdev,c.interp=g.interp;var m=t(&quot;./matrix&quot;);c.init2dArray=m.init2dArray,c.transposeRagged=m.transposeRagged,c.dot=m.dot,c.translationMatrix=m.translationMatrix,c.rotationMatrix=m.rotationMatrix,c.rotationXYMatrix=m.rotationXYMatrix,c.apply3DTransform=m.apply3DTransform,c.apply2DTransform=m.apply2DTransform,c.apply2DTransform2=m.apply2DTransform2,c.convertCssMatrix=m.convertCssMatrix,c.inverseTransformMatrix=m.inverseTransformMatrix;var v=t(&quot;./angles&quot;);c.deg2rad=v.deg2rad,c.rad2deg=v.rad2deg,c.angleDelta=v.angleDelta,c.angleDist=v.angleDist,c.isFullCircle=v.isFullCircle,c.isAngleInsideSector=v.isAngleInsideSector,c.isPtInsideSector=v.isPtInsideSector,c.pathArc=v.pathArc,c.pathSector=v.pathSector,c.pathAnnulus=v.pathAnnulus;var y=t(&quot;./anchor_utils&quot;);c.isLeftAnchor=y.isLeftAnchor,c.isCenterAnchor=y.isCenterAnchor,c.isRightAnchor=y.isRightAnchor,c.isTopAnchor=y.isTopAnchor,c.isMiddleAnchor=y.isMiddleAnchor,c.isBottomAnchor=y.isBottomAnchor;var x=t(&quot;./geometry2d&quot;);c.segmentsIntersect=x.segmentsIntersect,c.segmentDistance=x.segmentDistance,c.getTextLocation=x.getTextLocation,c.clearLocationCache=x.clearLocationCache,c.getVisibleSegment=x.getVisibleSegment,c.findPointOnPath=x.findPointOnPath;var b=t(&quot;./extend&quot;);c.extendFlat=b.extendFlat,c.extendDeep=b.extendDeep,c.extendDeepAll=b.extendDeepAll,c.extendDeepNoArrays=b.extendDeepNoArrays;var _=t(&quot;./loggers&quot;);c.log=_.log,c.warn=_.warn,c.error=_.error;var w=t(&quot;./regex&quot;);c.counterRegex=w.counter;var T=t(&quot;./throttle&quot;);c.throttle=T.throttle,c.throttleDone=T.done,c.clearThrottle=T.clear;var k=t(&quot;./dom&quot;);function M(t){var e={};for(var r in t)for(var n=t[r],i=0;i&lt;n.length;i++)e[n[i]]=+r;return e}c.getGraphDiv=k.getGraphDiv,c.isPlotDiv=k.isPlotDiv,c.removeElement=k.removeElement,c.addStyleRule=k.addStyleRule,c.addRelatedStyleRule=k.addRelatedStyleRule,c.deleteRelatedStyleRule=k.deleteRelatedStyleRule,c.getFullTransformMatrix=k.getFullTransformMatrix,c.getElementTransformMatrix=k.getElementTransformMatrix,c.getElementAndAncestors=k.getElementAndAncestors,c.equalDomRects=k.equalDomRects,c.clearResponsive=t(&quot;./clear_responsive&quot;),c.preserveDrawingBuffer=t(&quot;./preserve_drawing_buffer&quot;),c.makeTraceGroups=t(&quot;./make_trace_groups&quot;),c._=t(&quot;./localize&quot;),c.notifier=t(&quot;./notifier&quot;),c.filterUnique=t(&quot;./filter_unique&quot;),c.filterVisible=t(&quot;./filter_visible&quot;),c.pushUnique=t(&quot;./push_unique&quot;),c.increment=t(&quot;./increment&quot;),c.cleanNumber=t(&quot;./clean_number&quot;),c.ensureNumber=function(t){return a(t)?(t=Number(t))&lt;-s||t&gt;s?l:a(t)?Number(t):l:l},c.isIndex=function(t,e){return!(void 0!==e&amp;&amp;t&gt;=e)&amp;&amp;(a(t)&amp;&amp;t&gt;=0&amp;&amp;t%1==0)},c.noop=t(&quot;./noop&quot;),c.identity=t(&quot;./identity&quot;),c.repeat=function(t,e){for(var r=new Array(e),n=0;n&lt;e;n++)r[n]=t;return r},c.swapAttrs=function(t,e,r,n){r||(r=&quot;x&quot;),n||(n=&quot;y&quot;);for(var i=0;i&lt;e.length;i++){var a=e[i],o=c.nestedProperty(t,a.replace(&quot;?&quot;,r)),s=c.nestedProperty(t,a.replace(&quot;?&quot;,n)),l=o.get();o.set(s.get()),s.set(l)}},c.raiseToTop=function(t){t.parentNode.appendChild(t)},c.cancelTransition=function(t){return t.transition().duration(0)},c.constrain=function(t,e,r){return e&gt;r?Math.max(r,Math.min(e,t)):Math.max(e,Math.min(r,t))},c.bBoxIntersect=function(t,e,r){return r=r||0,t.left&lt;=e.right+r&amp;&amp;e.left&lt;=t.right+r&amp;&amp;t.top&lt;=e.bottom+r&amp;&amp;e.top&lt;=t.bottom+r},c.simpleMap=function(t,e,r,n,i){for(var a=t.length,o=new Array(a),s=0;s&lt;a;s++)o[s]=e(t[s],r,n,i);return o},c.randstr=function t(e,r,n,i){if(n||(n=16),void 0===r&amp;&amp;(r=24),r&lt;=0)return&quot;0&quot;;var a,o,s=Math.log(Math.pow(2,r))/Math.log(n),l=&quot;&quot;;for(a=2;s===1/0;a*=2)s=Math.log(Math.pow(2,r/a))/Math.log(n)*a;var u=s-Math.floor(s);for(a=0;a&lt;Math.floor(s);a++)l=Math.floor(Math.random()*n).toString(n)+l;u&amp;&amp;(o=Math.pow(n,u),l=Math.floor(Math.random()*o).toString(n)+l);var f=parseInt(l,n);return e&amp;&amp;e[l]||f!==1/0&amp;&amp;f&gt;=Math.pow(2,r)?i&gt;10?(c.warn(&quot;randstr failed uniqueness&quot;),l):t(e,r,n,(i||0)+1):l},c.OptionControl=function(t,e){t||(t={}),e||(e=&quot;opt&quot;);var r={optionList:[],_newoption:function(n){n[e]=t,r[n.name]=n,r.optionList.push(n)}};return r[&quot;_&quot;+e]=t,r},c.smooth=function(t,e){if((e=Math.round(e)||0)&lt;2)return t;var r,n,i,a,o=t.length,s=2*o,l=2*e-1,c=new Array(l),u=new Array(o);for(r=0;r&lt;l;r++)c[r]=(1-Math.cos(Math.PI*(r+1)/e))/(2*e);for(r=0;r&lt;o;r++){for(a=0,n=0;n&lt;l;n++)(i=r+n+1-e)&lt;-o?i-=s*Math.round(i/s):i&gt;=s&amp;&amp;(i-=s*Math.floor(i/s)),i&lt;0?i=-1-i:i&gt;=o&amp;&amp;(i=s-1-i),a+=t[i]*c[n];u[r]=a}return u},c.syncOrAsync=function(t,e,r){var n;function i(){return c.syncOrAsync(t,e,r)}for(;t.length;)if((n=(0,t.splice(0,1)[0])(e))&amp;&amp;n.then)return n.then(i).then(void 0,c.promiseError);return r&amp;&amp;r(e)},c.stripTrailingSlash=function(t){return&quot;/&quot;===t.substr(-1)?t.substr(0,t.length-1):t},c.noneOrAll=function(t,e,r){if(t){var n,i=!1,a=!0;for(n=0;n&lt;r.length;n++)null!=t[r[n]]?i=!0:a=!1;if(i&amp;&amp;!a)for(n=0;n&lt;r.length;n++)t[r[n]]=e[r[n]]}},c.mergeArray=function(t,e,r,n){var i=&quot;function&quot;==typeof n;if(c.isArrayOrTypedArray(t))for(var a=Math.min(t.length,e.length),o=0;o&lt;a;o++){var s=t[o];e[o][r]=i?n(s):s}},c.mergeArrayCastPositive=function(t,e,r){return c.mergeArray(t,e,r,(function(t){var e=+t;return isFinite(e)&amp;&amp;e&gt;0?e:0}))},c.fillArray=function(t,e,r,n){if(n=n||c.identity,c.isArrayOrTypedArray(t))for(var i=0;i&lt;e.length;i++)e[i][r]=n(t[i])},c.castOption=function(t,e,r,n){n=n||c.identity;var i=c.nestedProperty(t,r).get();return c.isArrayOrTypedArray(i)?Array.isArray(e)&amp;&amp;c.isArrayOrTypedArray(i[e[0]])?n(i[e[0]][e[1]]):n(i[e]):i},c.extractOption=function(t,e,r,n){if(r in t)return t[r];var i=c.nestedProperty(e,n).get();return Array.isArray(i)?void 0:i},c.tagSelected=function(t,e,r){var n,i,a=e.selectedpoints,o=e._indexToPoints;o&amp;&amp;(n=M(o));for(var s=0;s&lt;a.length;s++){var l=a[s];if(c.isIndex(l)||c.isArrayOrTypedArray(l)&amp;&amp;c.isIndex(l[0])&amp;&amp;c.isIndex(l[1])){var u=n?n[l]:l,f=r?r[u]:u;void 0!==(i=f)&amp;&amp;i&lt;t.length&amp;&amp;(t[f].selected=1)}}},c.selIndices2selPoints=function(t){var e=t.selectedpoints,r=t._indexToPoints;if(r){for(var n=M(r),i=[],a=0;a&lt;e.length;a++){var o=e[a];if(c.isIndex(o)){var s=n[o];c.isIndex(s)&amp;&amp;i.push(s)}}return i}return e},c.getTargetArray=function(t,e){var r=e.target;if(&quot;string&quot;==typeof r&amp;&amp;r){var n=c.nestedProperty(t,r).get();return!!Array.isArray(n)&amp;&amp;n}return!!Array.isArray(r)&amp;&amp;r},c.minExtend=function(t,e){var r={};&quot;object&quot;!=typeof e&amp;&amp;(e={});var n,i,a,o=Object.keys(t);for(n=0;n&lt;o.length;n++)a=t[i=o[n]],&quot;_&quot;!==i.charAt(0)&amp;&amp;&quot;function&quot;!=typeof a&amp;&amp;(&quot;module&quot;===i?r[i]=a:Array.isArray(a)?r[i]=&quot;colorscale&quot;===i?a.slice():a.slice(0,3):c.isTypedArray(a)?r[i]=a.subarray(0,3):r[i]=a&amp;&amp;&quot;object&quot;==typeof a?c.minExtend(t[i],e[i]):a);for(o=Object.keys(e),n=0;n&lt;o.length;n++)&quot;object&quot;==typeof(a=e[i=o[n]])&amp;&amp;i in r&amp;&amp;&quot;object&quot;==typeof r[i]||(r[i]=a);return r},c.titleCase=function(t){return t.charAt(0).toUpperCase()+t.substr(1)},c.containsAny=function(t,e){for(var r=0;r&lt;e.length;r++)if(-1!==t.indexOf(e[r]))return!0;return!1},c.isIE=function(){return&quot;undefined&quot;!=typeof window.navigator.msSaveBlob};var A=/MSIE [1-9]\./;c.isIE9orBelow=function(){return c.isIE()&amp;&amp;A.test(window.navigator.userAgent)};var S=/Version\/[\d\.]+.*Safari/;c.isSafari=function(){return S.test(window.navigator.userAgent)};var E=/iPad|iPhone|iPod/;c.isIOS=function(){return E.test(window.navigator.userAgent)},c.isD3Selection=function(t){return t&amp;&amp;&quot;function&quot;==typeof t.classed},c.ensureSingle=function(t,e,r,n){var i=t.select(e+(r?&quot;.&quot;+r:&quot;&quot;));if(i.size())return i;var a=t.append(e);return r&amp;&amp;a.classed(r,!0),n&amp;&amp;a.call(n),a},c.ensureSingleById=function(t,e,r,n){var i=t.select(e+&quot;#&quot;+r);if(i.size())return i;var a=t.append(e).attr(&quot;id&quot;,r);return n&amp;&amp;a.call(n),a},c.objectFromPath=function(t,e){for(var r,n=t.split(&quot;.&quot;),i=r={},a=0;a&lt;n.length;a++){var o=n[a],s=null,l=n[a].match(/(.*)\[([0-9]+)\]/);l?(o=l[1],s=l[2],r=r[o]=[],a===n.length-1?r[s]=e:r[s]={},r=r[s]):(a===n.length-1?r[o]=e:r[o]={},r=r[o])}return i};var C=/^([^\[\.]+)\.(.+)?/,L=/^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;c.expandObjectPaths=function(t){var e,r,n,i,a,o,s;if(&quot;object&quot;==typeof t&amp;&amp;!Array.isArray(t))for(r in t)t.hasOwnProperty(r)&amp;&amp;((e=r.match(C))?(i=t[r],n=e[1],delete t[r],t[n]=c.extendDeepNoArrays(t[n]||{},c.objectFromPath(r,c.expandObjectPaths(i))[n])):(e=r.match(L))?(i=t[r],n=e[1],a=parseInt(e[2]),delete t[r],t[n]=t[n]||[],&quot;.&quot;===e[3]?(s=e[4],o=t[n][a]=t[n][a]||{},c.extendDeepNoArrays(o,c.objectFromPath(s,c.expandObjectPaths(i)))):t[n][a]=c.expandObjectPaths(i)):t[r]=c.expandObjectPaths(t[r]));return t},c.numSeparate=function(t,e,r){if(r||(r=!1),&quot;string&quot;!=typeof e||0===e.length)throw new Error(&quot;Separator string required for formatting!&quot;);&quot;number&quot;==typeof t&amp;&amp;(t=String(t));var n=/(\d+)(\d{3})/,i=e.charAt(0),a=e.charAt(1),o=t.split(&quot;.&quot;),s=o[0],l=o.length&gt;1?i+o[1]:&quot;&quot;;if(a&amp;&amp;(o.length&gt;1||s.length&gt;4||r))for(;n.test(s);)s=s.replace(n,&quot;$1&quot;+a+&quot;$2&quot;);return s+l},c.TEMPLATE_STRING_REGEX=/%{([^\s%{}:]*)([:|\|][^}]*)?}/g;var I=/^\w*$/;c.templateString=function(t,e){var r={};return t.replace(c.TEMPLATE_STRING_REGEX,(function(t,n){var i;return I.test(n)?i=e[n]:(r[n]=r[n]||c.nestedProperty(e,n).get,i=r[n]()),c.isValidTextValue(i)?i:&quot;&quot;}))};var P={max:10,count:0,name:&quot;hovertemplate&quot;};c.hovertemplateString=function(){return D.apply(P,arguments)};var z={max:10,count:0,name:&quot;texttemplate&quot;};c.texttemplateString=function(){return D.apply(z,arguments)};var O=/^[:|\|]/;function D(t,e,r){var a=this,o=arguments;e||(e={});var s={};return t.replace(c.TEMPLATE_STRING_REGEX,(function(t,l,u){var f,h,p,d;for(p=3;p&lt;o.length;p++)if(f=o[p]){if(f.hasOwnProperty(l)){h=f[l];break}if(I.test(l)||(h=s[l]||c.nestedProperty(f,l).get())&amp;&amp;(s[l]=h),void 0!==h)break}if(void 0===h&amp;&amp;a)return a.count&lt;a.max&amp;&amp;(c.warn(&quot;Variable '&quot;+l+&quot;' in &quot;+a.name+&quot; could not be found!&quot;),h=t),a.count===a.max&amp;&amp;c.warn(&quot;Too many &quot;+a.name+&quot; warnings - additional warnings will be suppressed&quot;),a.count++,t;if(u){if(&quot;:&quot;===u[0]&amp;&amp;(h=(d=r?r.numberFormat:n.format)(u.replace(O,&quot;&quot;))(h)),&quot;|&quot;===u[0]){d=r?r.timeFormat:i;var g=c.dateTime2ms(h);h=c.formatDate(g,u.replace(O,&quot;&quot;),!1,d)}}else e.hasOwnProperty(l+&quot;Label&quot;)&amp;&amp;(h=e[l+&quot;Label&quot;]);return h}))}c.subplotSort=function(t,e){for(var r=Math.min(t.length,e.length)+1,n=0,i=0,a=0;a&lt;r;a++){var o=t.charCodeAt(a)||0,s=e.charCodeAt(a)||0,l=o&gt;=48&amp;&amp;o&lt;=57,c=s&gt;=48&amp;&amp;s&lt;=57;if(l&amp;&amp;(n=10*n+o-48),c&amp;&amp;(i=10*i+s-48),!l||!c){if(n!==i)return n-i;if(o!==s)return o-s}}return i-n};var R=2e9;c.seedPseudoRandom=function(){R=2e9},c.pseudoRandom=function(){var t=R;return R=(69069*R+1)%4294967296,Math.abs(R-t)&lt;429496729?c.pseudoRandom():R/4294967296},c.fillText=function(t,e,r){var n=Array.isArray(r)?function(t){r.push(t)}:function(t){r.text=t},i=c.extractOption(t,e,&quot;htx&quot;,&quot;hovertext&quot;);if(c.isValidTextValue(i))return n(i);var a=c.extractOption(t,e,&quot;tx&quot;,&quot;text&quot;);return c.isValidTextValue(a)?n(a):void 0},c.isValidTextValue=function(t){return t||0===t},c.formatPercent=function(t,e){e=e||0;for(var r=(Math.round(100*t*Math.pow(10,e))*Math.pow(.1,e)).toFixed(e)+&quot;%&quot;,n=0;n&lt;e;n++)-1!==r.indexOf(&quot;.&quot;)&amp;&amp;(r=(r=r.replace(&quot;0%&quot;,&quot;%&quot;)).replace(&quot;.%&quot;,&quot;%&quot;));return r},c.isHidden=function(t){var e=window.getComputedStyle(t).display;return!e||&quot;none&quot;===e},c.strTranslate=function(t,e){return t||e?&quot;translate(&quot;+t+&quot;,&quot;+e+&quot;)&quot;:&quot;&quot;},c.strRotate=function(t){return t?&quot;rotate(&quot;+t+&quot;)&quot;:&quot;&quot;},c.strScale=function(t){return 1!==t?&quot;scale(&quot;+t+&quot;)&quot;:&quot;&quot;},c.getTextTransform=function(t){var e=t.noCenter,r=t.textX,n=t.textY,i=t.targetX,a=t.targetY,o=t.anchorX||0,s=t.anchorY||0,l=t.rotate,u=t.scale;return u?u&gt;1&amp;&amp;(u=1):u=0,c.strTranslate(i-u*(r+o),a-u*(n+s))+c.strScale(u)+(l?&quot;rotate(&quot;+l+(e?&quot;&quot;:&quot; &quot;+r+&quot; &quot;+n)+&quot;)&quot;:&quot;&quot;)},c.ensureUniformFontSize=function(t,e){var r=c.extendFlat({},e);return r.size=Math.max(e.size,t._fullLayout.uniformtext.minsize||0),r},c.join2=function(t,e,r){var n=t.length;return n&gt;1?t.slice(0,-1).join(e)+r+t[n-1]:t.join(e)}},{&quot;../constants/numerical&quot;:753,&quot;./anchor_utils&quot;:758,&quot;./angles&quot;:759,&quot;./array&quot;:760,&quot;./clean_number&quot;:761,&quot;./clear_responsive&quot;:763,&quot;./coerce&quot;:764,&quot;./dates&quot;:765,&quot;./dom&quot;:766,&quot;./extend&quot;:768,&quot;./filter_unique&quot;:769,&quot;./filter_visible&quot;:770,&quot;./geometry2d&quot;:773,&quot;./identity&quot;:776,&quot;./increment&quot;:777,&quot;./is_plain_object&quot;:779,&quot;./keyed_container&quot;:780,&quot;./localize&quot;:781,&quot;./loggers&quot;:782,&quot;./make_trace_groups&quot;:783,&quot;./matrix&quot;:784,&quot;./mod&quot;:785,&quot;./nested_property&quot;:786,&quot;./noop&quot;:787,&quot;./notifier&quot;:788,&quot;./preserve_drawing_buffer&quot;:792,&quot;./push_unique&quot;:793,&quot;./regex&quot;:795,&quot;./relative_attr&quot;:796,&quot;./relink_private&quot;:797,&quot;./search&quot;:798,&quot;./stats&quot;:801,&quot;./throttle&quot;:804,&quot;./to_log_range&quot;:805,d3:169,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],779:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return window&amp;&amp;window.process&amp;&amp;window.process.versions?&quot;[object Object]&quot;===Object.prototype.toString.call(t):&quot;[object Object]&quot;===Object.prototype.toString.call(t)&amp;&amp;Object.getPrototypeOf(t)===Object.prototype}},{}],780:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./nested_property&quot;),i=/^\w*$/;e.exports=function(t,e,r,a){var o,s,l;r=r||&quot;name&quot;,a=a||&quot;value&quot;;var c={};e&amp;&amp;e.length?(l=n(t,e),s=l.get()):s=t,e=e||&quot;&quot;;var u={};if(s)for(o=0;o&lt;s.length;o++)u[s[o][r]]=o;var f=i.test(a),h={set:function(t,e){var i=null===e?4:0;if(!s){if(!l||4===i)return;s=[],l.set(s)}var o=u[t];if(void 0===o){if(4===i)return;i|=3,o=s.length,u[t]=o}else e!==(f?s[o][a]:n(s[o],a).get())&amp;&amp;(i|=2);var p=s[o]=s[o]||{};return p[r]=t,f?p[a]=e:n(p,a).set(e),null!==e&amp;&amp;(i&amp;=-5),c[o]=c[o]|i,h},get:function(t){if(s){var e=u[t];return void 0===e?void 0:f?s[e][a]:n(s[e],a).get()}},rename:function(t,e){var n=u[t];return void 0===n||(c[n]=1|c[n],u[e]=n,delete u[t],s[n][r]=e),h},remove:function(t){var e=u[t];if(void 0===e)return h;var i=s[e];if(Object.keys(i).length&gt;2)return c[e]=2|c[e],h.set(t,null);if(f){for(o=e;o&lt;s.length;o++)c[o]=3|c[o];for(o=e;o&lt;s.length;o++)u[s[o][r]]--;s.splice(e,1),delete u[t]}else n(i,a).set(null),c[e]=6|c[e];return h},constructUpdate:function(){for(var t,i,o={},l=Object.keys(c),u=0;u&lt;l.length;u++)i=l[u],t=e+&quot;[&quot;+i+&quot;]&quot;,s[i]?(1&amp;c[i]&amp;&amp;(o[t+&quot;.&quot;+r]=s[i][r]),2&amp;c[i]&amp;&amp;(o[t+&quot;.&quot;+a]=f?4&amp;c[i]?null:s[i][a]:4&amp;c[i]?null:n(s[i],a).get())):o[t]=null;return o}};return h}},{&quot;./nested_property&quot;:786}],781:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);e.exports=function(t,e){for(var r=t._context.locale,i=0;i&lt;2;i++){for(var a=t._context.locales,o=0;o&lt;2;o++){var s=(a[r]||{}).dictionary;if(s){var l=s[e];if(l)return l}a=n.localeRegistry}var c=r.split(&quot;-&quot;)[0];if(c===r)break;r=c}return e}},{&quot;../registry&quot;:911}],782:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../plot_api/plot_config&quot;).dfltConfig,i=t(&quot;./notifier&quot;),a=e.exports={};function o(t,e){if(t&amp;&amp;t.apply)try{return void t.apply(console,e)}catch(t){}for(var r=0;r&lt;e.length;r++)try{t(e[r])}catch(t){console.log(e[r])}}a.log=function(){var t;if(n.logging&gt;1){var e=[&quot;LOG:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);o(console.trace||console.log,e)}if(n.notifyOnLogging&gt;1){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;long&quot;)}},a.warn=function(){var t;if(n.logging&gt;0){var e=[&quot;WARN:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);o(console.trace||console.log,e)}if(n.notifyOnLogging&gt;0){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;stick&quot;)}},a.error=function(){var t;if(n.logging&gt;0){var e=[&quot;ERROR:&quot;];for(t=0;t&lt;arguments.length;t++)e.push(arguments[t]);o(console.error,e)}if(n.notifyOnLogging&gt;0){var r=[];for(t=0;t&lt;arguments.length;t++)r.push(arguments[t]);i(r.join(&quot;&lt;br&gt;&quot;),&quot;stick&quot;)}}},{&quot;../plot_api/plot_config&quot;:815,&quot;./notifier&quot;:788}],783:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t,e,r){var i=t.selectAll(&quot;g.&quot;+r.replace(/\s/g,&quot;.&quot;)).data(e,(function(t){return t[0].trace.uid}));i.exit().remove(),i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,r),i.order();var a=t.classed(&quot;rangeplot&quot;)?&quot;nodeRangePlot3&quot;:&quot;node3&quot;;return i.each((function(t){t[0][a]=n.select(this)})),i}},{d3:169}],784:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mat4&quot;);r.init2dArray=function(t,e){for(var r=new Array(t),n=0;n&lt;t;n++)r[n]=new Array(e);return r},r.transposeRagged=function(t){var e,r,n=0,i=t.length;for(e=0;e&lt;i;e++)n=Math.max(n,t[e].length);var a=new Array(n);for(e=0;e&lt;n;e++)for(a[e]=new Array(i),r=0;r&lt;i;r++)a[e][r]=t[r][e];return a},r.dot=function(t,e){if(!t.length||!e.length||t.length!==e.length)return null;var n,i,a=t.length;if(t[0].length)for(n=new Array(a),i=0;i&lt;a;i++)n[i]=r.dot(t[i],e);else if(e[0].length){var o=r.transposeRagged(e);for(n=new Array(o.length),i=0;i&lt;o.length;i++)n[i]=r.dot(t,o[i])}else for(n=0,i=0;i&lt;a;i++)n+=t[i]*e[i];return n},r.translationMatrix=function(t,e){return[[1,0,t],[0,1,e],[0,0,1]]},r.rotationMatrix=function(t){var e=t*Math.PI/180;return[[Math.cos(e),-Math.sin(e),0],[Math.sin(e),Math.cos(e),0],[0,0,1]]},r.rotationXYMatrix=function(t,e,n){return r.dot(r.dot(r.translationMatrix(e,n),r.rotationMatrix(t)),r.translationMatrix(-e,-n))},r.apply3DTransform=function(t){return function(){var e=arguments,n=1===arguments.length?e[0]:[e[0],e[1],e[2]||0];return r.dot(t,[n[0],n[1],n[2],1]).slice(0,3)}},r.apply2DTransform=function(t){return function(){var e=arguments;3===e.length&amp;&amp;(e=e[0]);var n=1===arguments.length?e[0]:[e[0],e[1]];return r.dot(t,[n[0],n[1],1]).slice(0,2)}},r.apply2DTransform2=function(t){var e=r.apply2DTransform(t);return function(t){return e(t.slice(0,2)).concat(e(t.slice(2,4)))}},r.convertCssMatrix=function(t){if(t){var e=t.length;if(16===e)return t;if(6===e)return[t[0],t[1],0,0,t[2],t[3],0,0,0,0,1,0,t[4],t[5],0,1]}return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},r.inverseTransformMatrix=function(t){var e=[];return n.invert(e,t),[[e[0],e[1],e[2],e[3]],[e[4],e[5],e[6],e[7]],[e[8],e[9],e[10],e[11]],[e[12],e[13],e[14],e[15]]]}},{&quot;gl-mat4&quot;:292}],785:[function(t,e,r){&quot;use strict&quot;;e.exports={mod:function(t,e){var r=t%e;return r&lt;0?r+e:r},modHalf:function(t,e){return Math.abs(t)&gt;e/2?t-Math.round(t/e)*e:t}}},{}],786:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./array&quot;).isArrayOrTypedArray;function a(t,e){return function(){var r,n,o,s,l,c=t;for(s=0;s&lt;e.length-1;s++){if(-1===(r=e[s])){for(n=!0,o=[],l=0;l&lt;c.length;l++)o[l]=a(c[l],e.slice(s+1))(),o[l]!==o[0]&amp;&amp;(n=!1);return n?o[0]:o}if(&quot;number&quot;==typeof r&amp;&amp;!i(c))return;if(&quot;object&quot;!=typeof(c=c[r])||null===c)return}if(&quot;object&quot;==typeof c&amp;&amp;null!==c&amp;&amp;null!==(o=c[e[s]]))return o}}e.exports=function(t,e){if(n(e))e=String(e);else if(&quot;string&quot;!=typeof e||&quot;[-1]&quot;===e.substr(e.length-4))throw&quot;bad property string&quot;;for(var r,i,o,s=0,c=e.split(&quot;.&quot;);s&lt;c.length;){if(r=String(c[s]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/)){if(r[1])c[s]=r[1];else{if(0!==s)throw&quot;bad property string&quot;;c.splice(0,1)}for(i=r[2].substr(1,r[2].length-2).split(&quot;][&quot;),o=0;o&lt;i.length;o++)s++,c.splice(s,0,Number(i[o]))}s++}return&quot;object&quot;!=typeof t?function(t,e,r){return{set:function(){throw&quot;bad container&quot;},get:function(){},astr:e,parts:r,obj:t}}(t,e,c):{set:l(t,c,e),get:a(t,c),astr:e,parts:c,obj:t}};var o=/(^|\.)args\[/;function s(t,e){return void 0===t||null===t&amp;&amp;!e.match(o)}function l(t,e,r){return function(n){var a,o,l=t,h=&quot;&quot;,p=[[t,h]],d=s(n,r);for(o=0;o&lt;e.length-1;o++){if(&quot;number&quot;==typeof(a=e[o])&amp;&amp;!i(l))throw&quot;array index but container is not an array&quot;;if(-1===a){if(d=!u(l,e.slice(o+1),n,r))break;return}if(!f(l,a,e[o+1],d))break;if(&quot;object&quot;!=typeof(l=l[a])||null===l)throw&quot;container is not an object&quot;;h=c(h,a),p.push([l,h])}if(d){if(o===e.length-1&amp;&amp;(delete l[e[o]],Array.isArray(l)&amp;&amp;+e[o]==l.length-1))for(;l.length&amp;&amp;void 0===l[l.length-1];)l.pop()}else l[e[o]]=n}}function c(t,e){var r=e;return n(e)?r=&quot;[&quot;+e+&quot;]&quot;:t&amp;&amp;(r=&quot;.&quot;+e),t+r}function u(t,e,r,n){var a,o=i(r),c=!0,u=r,h=n.replace(&quot;-1&quot;,0),p=!o&amp;&amp;s(r,h),d=e[0];for(a=0;a&lt;t.length;a++)h=n.replace(&quot;-1&quot;,a),o&amp;&amp;(p=s(u=r[a%r.length],h)),p&amp;&amp;(c=!1),f(t,a,d,p)&amp;&amp;l(t[a],e,n.replace(&quot;-1&quot;,a))(u);return c}function f(t,e,r,n){if(void 0===t[e]){if(n)return!1;t[e]=&quot;number&quot;==typeof r?[]:{}}return!0}},{&quot;./array&quot;:760,&quot;fast-isnumeric&quot;:241}],787:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){}},{}],788:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=[];e.exports=function(t,e){if(-1===a.indexOf(t)){a.push(t);var r=1e3;i(e)?r=e:&quot;long&quot;===e&amp;&amp;(r=3e3);var o=n.select(&quot;body&quot;).selectAll(&quot;.plotly-notifier&quot;).data([0]);o.enter().append(&quot;div&quot;).classed(&quot;plotly-notifier&quot;,!0),o.selectAll(&quot;.notifier-note&quot;).data(a).enter().append(&quot;div&quot;).classed(&quot;notifier-note&quot;,!0).style(&quot;opacity&quot;,0).each((function(t){var i=n.select(this);i.append(&quot;button&quot;).classed(&quot;notifier-close&quot;,!0).html(&quot;&amp;times;&quot;).on(&quot;click&quot;,(function(){i.transition().call(s)}));for(var a=i.append(&quot;p&quot;),o=t.split(/&lt;br\s*\/?&gt;/g),l=0;l&lt;o.length;l++)l&amp;&amp;a.append(&quot;br&quot;),a.append(&quot;span&quot;).text(o[l]);&quot;stick&quot;===e?i.transition().duration(350).style(&quot;opacity&quot;,1):i.transition().duration(700).style(&quot;opacity&quot;,1).transition().delay(r).call(s)}))}function s(t){t.duration(700).style(&quot;opacity&quot;,0).each(&quot;end&quot;,(function(t){var e=a.indexOf(t);-1!==e&amp;&amp;a.splice(e,1),n.select(this).remove()}))}}},{d3:169,&quot;fast-isnumeric&quot;:241}],789:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./setcursor&quot;),i=&quot;data-savedcursor&quot;;e.exports=function(t,e){var r=t.attr(i);if(e){if(!r){for(var a=(t.attr(&quot;class&quot;)||&quot;&quot;).split(&quot; &quot;),o=0;o&lt;a.length;o++){var s=a[o];0===s.indexOf(&quot;cursor-&quot;)&amp;&amp;t.attr(i,s.substr(7)).classed(s,!1)}t.attr(i)||t.attr(i,&quot;!!&quot;)}n(t,e)}else r&amp;&amp;(t.attr(i,null),&quot;!!&quot;===r?n(t):n(t,r))}},{&quot;./setcursor&quot;:799}],790:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./matrix&quot;).dot,i=t(&quot;../constants/numerical&quot;).BADNUM,a=e.exports={};a.tester=function(t){var e,r=t.slice(),n=r[0][0],a=n,o=r[0][1],s=o;for(r.push(r[0]),e=1;e&lt;r.length;e++)n=Math.min(n,r[e][0]),a=Math.max(a,r[e][0]),o=Math.min(o,r[e][1]),s=Math.max(s,r[e][1]);var l,c=!1;5===r.length&amp;&amp;(r[0][0]===r[1][0]?r[2][0]===r[3][0]&amp;&amp;r[0][1]===r[3][1]&amp;&amp;r[1][1]===r[2][1]&amp;&amp;(c=!0,l=function(t){return t[0]===r[0][0]}):r[0][1]===r[1][1]&amp;&amp;r[2][1]===r[3][1]&amp;&amp;r[0][0]===r[3][0]&amp;&amp;r[1][0]===r[2][0]&amp;&amp;(c=!0,l=function(t){return t[1]===r[0][1]}));var u=!0,f=r[0];for(e=1;e&lt;r.length;e++)if(f[0]!==r[e][0]||f[1]!==r[e][1]){u=!1;break}return{xmin:n,xmax:a,ymin:o,ymax:s,pts:r,contains:c?function(t,e){var r=t[0],c=t[1];return!(r===i||r&lt;n||r&gt;a||c===i||c&lt;o||c&gt;s)&amp;&amp;(!e||!l(t))}:function(t,e){var l=t[0],c=t[1];if(l===i||l&lt;n||l&gt;a||c===i||c&lt;o||c&gt;s)return!1;var u,f,h,p,d,g=r.length,m=r[0][0],v=r[0][1],y=0;for(u=1;u&lt;g;u++)if(f=m,h=v,m=r[u][0],v=r[u][1],!(l&lt;(p=Math.min(f,m))||l&gt;Math.max(f,m)||c&gt;Math.max(h,v)))if(c&lt;Math.min(h,v))l!==p&amp;&amp;y++;else{if(c===(d=m===f?c:h+(l-f)*(v-h)/(m-f)))return 1!==u||!e;c&lt;=d&amp;&amp;l!==p&amp;&amp;y++}return y%2==1},isRect:c,degenerate:u}},a.isSegmentBent=function(t,e,r,i){var a,o,s,l=t[e],c=[t[r][0]-l[0],t[r][1]-l[1]],u=n(c,c),f=Math.sqrt(u),h=[-c[1]/f,c[0]/f];for(a=e+1;a&lt;r;a++)if(o=[t[a][0]-l[0],t[a][1]-l[1]],(s=n(o,c))&lt;0||s&gt;u||Math.abs(n(o,h))&gt;i)return!0;return!1},a.filter=function(t,e){var r=[t[0]],n=0,i=0;function o(o){t.push(o);var s=r.length,l=n;r.splice(i+1);for(var c=l+1;c&lt;t.length;c++)(c===t.length-1||a.isSegmentBent(t,l,c+1,e))&amp;&amp;(r.push(t[c]),r.length&lt;s-2&amp;&amp;(n=c,i=r.length-1),l=c)}t.length&gt;1&amp;&amp;o(t.pop());return{addPt:o,raw:t,filtered:r}}},{&quot;../constants/numerical&quot;:753,&quot;./matrix&quot;:784}],791:[function(t,e,r){(function(r){(function(){&quot;use strict&quot;;var n=t(&quot;./show_no_webgl_msg&quot;),i=t(&quot;regl&quot;);e.exports=function(t,e){var a=t._fullLayout,o=!0;return a._glcanvas.each((function(n){if(!n.regl&amp;&amp;(!n.pick||a._has(&quot;parcoords&quot;))){try{n.regl=i({canvas:this,attributes:{antialias:!n.pick,preserveDrawingBuffer:!0},pixelRatio:t._context.plotGlPixelRatio||r.devicePixelRatio,extensions:e||[]})}catch(t){o=!1}n.regl||(o=!1),o&amp;&amp;this.addEventListener(&quot;webglcontextlost&quot;,(function(e){t&amp;&amp;t.emit&amp;&amp;t.emit(&quot;plotly_webglcontextlost&quot;,{event:e,layer:n.key})}),!1)}})),o||n({container:a._glcontainer.node()}),o}}).call(this)}).call(this,&quot;undefined&quot;!=typeof global?global:&quot;undefined&quot;!=typeof self?self:&quot;undefined&quot;!=typeof window?window:{})},{&quot;./show_no_webgl_msg&quot;:800,regl:540}],792:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;is-mobile&quot;);e.exports=function(t){var e;if(&quot;string&quot;!=typeof(e=t&amp;&amp;t.hasOwnProperty(&quot;userAgent&quot;)?t.userAgent:function(){var t;&quot;undefined&quot;!=typeof navigator&amp;&amp;(t=navigator.userAgent);t&amp;&amp;t.headers&amp;&amp;&quot;string&quot;==typeof t.headers[&quot;user-agent&quot;]&amp;&amp;(t=t.headers[&quot;user-agent&quot;]);return t}()))return!0;var r=i({ua:{headers:{&quot;user-agent&quot;:e}},tablet:!0,featureDetect:!1});if(!r)for(var a=e.split(&quot; &quot;),o=1;o&lt;a.length;o++){if(-1!==a[o].indexOf(&quot;Safari&quot;))for(var s=o-1;s&gt;-1;s--){var l=a[s];if(&quot;Version/&quot;===l.substr(0,8)){var c=l.substr(8).split(&quot;.&quot;)[0];if(n(c)&amp;&amp;(c=+c),c&gt;=13)return!0}}}return r}},{&quot;fast-isnumeric&quot;:241,&quot;is-mobile&quot;:467}],793:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){if(e instanceof RegExp){for(var r=e.toString(),n=0;n&lt;t.length;n++)if(t[n]instanceof RegExp&amp;&amp;t[n].toString()===r)return t;t.push(e)}else!e&amp;&amp;0!==e||-1!==t.indexOf(e)||t.push(e);return t}},{}],794:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_config&quot;).dfltConfig;var a={add:function(t,e,r,n,a){var o,s;t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},s=t.undoQueue.index,t.autoplay?t.undoQueue.inSequence||(t.autoplay=!1):(!t.undoQueue.sequence||t.undoQueue.beginSequence?(o={undo:{calls:[],args:[]},redo:{calls:[],args:[]}},t.undoQueue.queue.splice(s,t.undoQueue.queue.length-s,o),t.undoQueue.index+=1):o=t.undoQueue.queue[s-1],t.undoQueue.beginSequence=!1,o&amp;&amp;(o.undo.calls.unshift(e),o.undo.args.unshift(r),o.redo.calls.push(n),o.redo.args.push(a)),t.undoQueue.queue.length&gt;i.queueLength&amp;&amp;(t.undoQueue.queue.shift(),t.undoQueue.index--))},startSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!0,t.undoQueue.beginSequence=!0},stopSequence:function(t){t.undoQueue=t.undoQueue||{index:0,queue:[],sequence:!1},t.undoQueue.sequence=!1,t.undoQueue.beginSequence=!1},undo:function(t){var e,r;if(t.framework&amp;&amp;t.framework.isPolar)t.framework.undo();else if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index&lt;=0)){for(t.undoQueue.index--,e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r&lt;e.undo.calls.length;r++)a.plotDo(t,e.undo.calls[r],e.undo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1}},redo:function(t){var e,r;if(t.framework&amp;&amp;t.framework.isPolar)t.framework.redo();else if(!(void 0===t.undoQueue||isNaN(t.undoQueue.index)||t.undoQueue.index&gt;=t.undoQueue.queue.length)){for(e=t.undoQueue.queue[t.undoQueue.index],t.undoQueue.inSequence=!0,r=0;r&lt;e.redo.calls.length;r++)a.plotDo(t,e.redo.calls[r],e.redo.args[r]);t.undoQueue.inSequence=!1,t.autoplay=!1,t.undoQueue.index++}}};a.plotDo=function(t,e,r){t.autoplay=!0,r=function(t,e){for(var r,i=[],a=0;a&lt;e.length;a++)r=e[a],i[a]=r===t?r:&quot;object&quot;==typeof r?Array.isArray(r)?n.extendDeep([],r):n.extendDeepAll({},r):r;return i}(t,r),e.apply(null,r)},e.exports=a},{&quot;../lib&quot;:778,&quot;../plot_api/plot_config&quot;:815}],795:[function(t,e,r){&quot;use strict&quot;;r.counter=function(t,e,r,n){var i=(e||&quot;&quot;)+(r?&quot;&quot;:&quot;$&quot;),a=!1===n?&quot;&quot;:&quot;^&quot;;return&quot;xy&quot;===t?new RegExp(a+&quot;x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?&quot;+i):new RegExp(a+t+&quot;([2-9]|[1-9][0-9]+)?&quot;+i)}},{}],796:[function(t,e,r){&quot;use strict&quot;;var n=/^(.*)(\.[^\.\[\]]+|\[\d\])$/,i=/^[^\.\[\]]+$/;e.exports=function(t,e){for(;e;){var r=t.match(n);if(r)t=r[1];else{if(!t.match(i))throw new Error(&quot;bad relativeAttr call:&quot;+[t,e]);t=&quot;&quot;}if(&quot;^&quot;!==e.charAt(0))break;e=e.slice(1)}return t&amp;&amp;&quot;[&quot;!==e.charAt(0)?t+&quot;.&quot;+e:t+e}},{}],797:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./array&quot;).isArrayOrTypedArray,i=t(&quot;./is_plain_object&quot;);e.exports=function t(e,r){for(var a in r){var o=r[a],s=e[a];if(s!==o)if(&quot;_&quot;===a.charAt(0)||&quot;function&quot;==typeof o){if(a in e)continue;e[a]=o}else if(n(o)&amp;&amp;n(s)&amp;&amp;i(o[0])){if(&quot;customdata&quot;===a||&quot;ids&quot;===a)continue;for(var l=Math.min(o.length,s.length),c=0;c&lt;l;c++)s[c]!==o[c]&amp;&amp;i(o[c])&amp;&amp;i(s[c])&amp;&amp;t(s[c],o[c])}else i(o)&amp;&amp;i(s)&amp;&amp;(t(s,o),Object.keys(s).length||delete e[a])}}},{&quot;./array&quot;:760,&quot;./is_plain_object&quot;:779}],798:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./loggers&quot;),a=t(&quot;./identity&quot;),o=t(&quot;../constants/numerical&quot;).BADNUM;function s(t,e){return t&lt;e}function l(t,e){return t&lt;=e}function c(t,e){return t&gt;e}function u(t,e){return t&gt;=e}r.findBin=function(t,e,r){if(n(e.start))return r?Math.ceil((t-e.start)/e.size-1e-9)-1:Math.floor((t-e.start)/e.size+1e-9);var a,o,f=0,h=e.length,p=0,d=h&gt;1?(e[h-1]-e[0])/(h-1):1;for(o=d&gt;=0?r?s:l:r?u:c,t+=1e-9*d*(r?-1:1)*(d&gt;=0?1:-1);f&lt;h&amp;&amp;p++&lt;100;)o(e[a=Math.floor((f+h)/2)],t)?f=a+1:h=a;return p&gt;90&amp;&amp;i.log(&quot;Long binary search...&quot;),f-1},r.sorterAsc=function(t,e){return t-e},r.sorterDes=function(t,e){return e-t},r.distinctVals=function(t,e){var n,i=(e||{}).unitMinDiff,a=t.slice();for(a.sort(r.sorterAsc),n=a.length-1;n&gt;-1&amp;&amp;a[n]===o;n--);var s=1;i||(s=a[n]-a[0]||1);for(var l,c=s/(n||1)/1e4,u=[],f=0;f&lt;=n;f++){var h=a[f],p=h-l;void 0===l?(u.push(h),l=h):p&gt;c&amp;&amp;(s=Math.min(s,p),u.push(h),l=h)}return{vals:u,minDiff:s}},r.roundUp=function(t,e,r){for(var n,i=0,a=e.length-1,o=0,s=r?0:1,l=r?1:0,c=r?Math.ceil:Math.floor;i&lt;a&amp;&amp;o++&lt;100;)e[n=c((i+a)/2)]&lt;=t?i=n+s:a=n-l;return e[i]},r.sort=function(t,e){for(var r=0,n=0,i=1;i&lt;t.length;i++){var a=e(t[i],t[i-1]);if(a&lt;0?r=1:a&gt;0&amp;&amp;(n=1),r&amp;&amp;n)return t.sort(e)}return n?t:t.reverse()},r.findIndexOfMin=function(t,e){e=e||a;for(var r,n=1/0,i=0;i&lt;t.length;i++){var o=e(t[i]);o&lt;n&amp;&amp;(n=o,r=i)}return r}},{&quot;../constants/numerical&quot;:753,&quot;./identity&quot;:776,&quot;./loggers&quot;:782,&quot;fast-isnumeric&quot;:241}],799:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){(t.attr(&quot;class&quot;)||&quot;&quot;).split(&quot; &quot;).forEach((function(e){0===e.indexOf(&quot;cursor-&quot;)&amp;&amp;t.classed(e,!1)})),e&amp;&amp;t.classed(&quot;cursor-&quot;+e,!0)}},{}],800:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../components/color&quot;),i=function(){};e.exports=function(t){for(var e in t)&quot;function&quot;==typeof t[e]&amp;&amp;(t[e]=i);t.destroy=function(){t.container.parentNode.removeChild(t.container)};var r=document.createElement(&quot;div&quot;);r.className=&quot;no-webgl&quot;,r.style.cursor=&quot;pointer&quot;,r.style.fontSize=&quot;24px&quot;,r.style.color=n.defaults[0],r.style.position=&quot;absolute&quot;,r.style.left=r.style.top=&quot;0px&quot;,r.style.width=r.style.height=&quot;100%&quot;,r.style[&quot;background-color&quot;]=n.lightLine,r.style[&quot;z-index&quot;]=30;var a=document.createElement(&quot;p&quot;);return a.textContent=&quot;WebGL is not supported by your browser - visit https://get.webgl.org for more info&quot;,a.style.position=&quot;relative&quot;,a.style.top=&quot;50%&quot;,a.style.left=&quot;50%&quot;,a.style.height=&quot;30%&quot;,a.style.width=&quot;50%&quot;,a.style.margin=&quot;-15% 0 0 -25%&quot;,r.appendChild(a),t.container.appendChild(r),t.container.style.background=&quot;#FFFFFF&quot;,t.container.onclick=function(){window.open(&quot;https://get.webgl.org&quot;)},!1}},{&quot;../components/color&quot;:643}],801:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./array&quot;).isArrayOrTypedArray;r.aggNums=function(t,e,a,o){var s,l;if((!o||o&gt;a.length)&amp;&amp;(o=a.length),n(e)||(e=!1),i(a[0])){for(l=new Array(o),s=0;s&lt;o;s++)l[s]=r.aggNums(t,e,a[s]);a=l}for(s=0;s&lt;o;s++)n(e)?n(a[s])&amp;&amp;(e=t(+e,+a[s])):e=a[s];return e},r.len=function(t){return r.aggNums((function(t){return t+1}),0,t)},r.mean=function(t,e){return e||(e=r.len(t)),r.aggNums((function(t,e){return t+e}),0,t)/e},r.midRange=function(t){if(void 0!==t&amp;&amp;0!==t.length)return(r.aggNums(Math.max,null,t)+r.aggNums(Math.min,null,t))/2},r.variance=function(t,e,i){return e||(e=r.len(t)),n(i)||(i=r.mean(t,e)),r.aggNums((function(t,e){return t+Math.pow(e-i,2)}),0,t)/e},r.stdev=function(t,e,n){return Math.sqrt(r.variance(t,e,n))},r.median=function(t){var e=t.slice().sort();return r.interp(e,.5)},r.interp=function(t,e){if(!n(e))throw&quot;n should be a finite number&quot;;if((e=e*t.length-.5)&lt;0)return t[0];if(e&gt;t.length-1)return t[t.length-1];var r=e%1;return r*t[Math.ceil(e)]+(1-r)*t[Math.floor(e)]}},{&quot;./array&quot;:760,&quot;fast-isnumeric&quot;:241}],802:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;color-normalize&quot;);e.exports=function(t){return t?n(t):[0,0,0,1]}},{&quot;color-normalize&quot;:125}],803:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../lib&quot;),a=i.strTranslate,o=t(&quot;../constants/xmlns_namespaces&quot;),s=t(&quot;../constants/alignment&quot;).LINE_SPACING;function l(t,e){return t.node().getBoundingClientRect()[e]}var c=/([^$]*)([$]+[^$]*[$]+)([^$]*)/;r.convertToTspans=function(t,e,A){var S=t.text(),C=!t.attr(&quot;data-notex&quot;)&amp;&amp;&quot;undefined&quot;!=typeof MathJax&amp;&amp;S.match(c),L=n.select(t.node().parentNode);if(!L.empty()){var I=t.attr(&quot;class&quot;)?t.attr(&quot;class&quot;).split(&quot; &quot;)[0]:&quot;text&quot;;return I+=&quot;-math&quot;,L.selectAll(&quot;svg.&quot;+I).remove(),L.selectAll(&quot;g.&quot;+I+&quot;-group&quot;).remove(),t.style(&quot;display&quot;,null).attr({&quot;data-unformatted&quot;:S,&quot;data-math&quot;:&quot;N&quot;}),C?(e&amp;&amp;e._promises||[]).push(new Promise((function(e){t.style(&quot;display&quot;,&quot;none&quot;);var r=parseInt(t.node().style.fontSize,10),o={fontSize:r};!function(t,e,r){var a,o,s,l;MathJax.Hub.Queue((function(){return o=i.extendDeepAll({},MathJax.Hub.config),s=MathJax.Hub.processSectionDelay,void 0!==MathJax.Hub.processSectionDelay&amp;&amp;(MathJax.Hub.processSectionDelay=0),MathJax.Hub.Config({messageStyle:&quot;none&quot;,tex2jax:{inlineMath:[[&quot;$&quot;,&quot;$&quot;],[&quot;\\(&quot;,&quot;\\)&quot;]]},displayAlign:&quot;left&quot;})}),(function(){if(&quot;SVG&quot;!==(a=MathJax.Hub.config.menuSettings.renderer))return MathJax.Hub.setRenderer(&quot;SVG&quot;)}),(function(){var r=&quot;math-output-&quot;+i.randstr({},64);return l=n.select(&quot;body&quot;).append(&quot;div&quot;).attr({id:r}).style({visibility:&quot;hidden&quot;,position:&quot;absolute&quot;}).style({&quot;font-size&quot;:e.fontSize+&quot;px&quot;}).text(t.replace(u,&quot;\\lt &quot;).replace(f,&quot;\\gt &quot;)),MathJax.Hub.Typeset(l.node())}),(function(){var e=n.select(&quot;body&quot;).select(&quot;#MathJax_SVG_glyphs&quot;);if(l.select(&quot;.MathJax_SVG&quot;).empty()||!l.select(&quot;svg&quot;).node())i.log(&quot;There was an error in the tex syntax.&quot;,t),r();else{var o=l.select(&quot;svg&quot;).node().getBoundingClientRect();r(l.select(&quot;.MathJax_SVG&quot;),e,o)}if(l.remove(),&quot;SVG&quot;!==a)return MathJax.Hub.setRenderer(a)}),(function(){return void 0!==s&amp;&amp;(MathJax.Hub.processSectionDelay=s),MathJax.Hub.Config(o)}))}(C[2],o,(function(n,i,o){L.selectAll(&quot;svg.&quot;+I).remove(),L.selectAll(&quot;g.&quot;+I+&quot;-group&quot;).remove();var s=n&amp;&amp;n.select(&quot;svg&quot;);if(!s||!s.node())return P(),void e();var c=L.append(&quot;g&quot;).classed(I+&quot;-group&quot;,!0).attr({&quot;pointer-events&quot;:&quot;none&quot;,&quot;data-unformatted&quot;:S,&quot;data-math&quot;:&quot;Y&quot;});c.node().appendChild(s.node()),i&amp;&amp;i.node()&amp;&amp;s.node().insertBefore(i.node().cloneNode(!0),s.node().firstChild),s.attr({class:I,height:o.height,preserveAspectRatio:&quot;xMinYMin meet&quot;}).style({overflow:&quot;visible&quot;,&quot;pointer-events&quot;:&quot;none&quot;});var u=t.node().style.fill||&quot;black&quot;,f=s.select(&quot;g&quot;);f.attr({fill:u,stroke:u});var h=l(f,&quot;width&quot;),p=l(f,&quot;height&quot;),d=+t.attr(&quot;x&quot;)-h*{start:0,middle:.5,end:1}[t.attr(&quot;text-anchor&quot;)||&quot;start&quot;],g=-(r||l(t,&quot;height&quot;))/4;&quot;y&quot;===I[0]?(c.attr({transform:&quot;rotate(&quot;+[-90,+t.attr(&quot;x&quot;),+t.attr(&quot;y&quot;)]+&quot;)&quot;+a(-h/2,g-p/2)}),s.attr({x:+t.attr(&quot;x&quot;),y:+t.attr(&quot;y&quot;)})):&quot;l&quot;===I[0]?s.attr({x:t.attr(&quot;x&quot;),y:g-p/2}):&quot;a&quot;===I[0]&amp;&amp;0!==I.indexOf(&quot;atitle&quot;)?s.attr({x:0,y:g}):s.attr({x:d,y:+t.attr(&quot;y&quot;)+g-p/2}),A&amp;&amp;A.call(t,c),e(c)}))}))):P(),t}function P(){L.empty()||(I=t.attr(&quot;class&quot;)+&quot;-math&quot;,L.select(&quot;svg.&quot;+I).remove()),t.text(&quot;&quot;).style(&quot;white-space&quot;,&quot;pre&quot;),function(t,e){e=e.replace(m,&quot; &quot;);var r,a=!1,l=[],c=-1;function u(){c++;var e=document.createElementNS(o.svg,&quot;tspan&quot;);n.select(e).attr({class:&quot;line&quot;,dy:c*s+&quot;em&quot;}),t.appendChild(e),r=e;var i=l;if(l=[{node:e}],i.length&gt;1)for(var a=1;a&lt;i.length;a++)f(i[a])}function f(t){var e,i=t.type,a={};if(&quot;a&quot;===i){e=&quot;a&quot;;var s=t.target,c=t.href,u=t.popup;c&amp;&amp;(a={&quot;xlink:xlink:show&quot;:&quot;_blank&quot;===s||&quot;_&quot;!==s.charAt(0)?&quot;new&quot;:&quot;replace&quot;,target:s,&quot;xlink:xlink:href&quot;:c},u&amp;&amp;(a.onclick='window.open(this.href.baseVal,this.target.baseVal,&quot;'+u+'&quot;);return false;'))}else e=&quot;tspan&quot;;t.style&amp;&amp;(a.style=t.style);var f=document.createElementNS(o.svg,e);if(&quot;sup&quot;===i||&quot;sub&quot;===i){A(r,&quot;\u200b&quot;),r.appendChild(f);var h=document.createElementNS(o.svg,&quot;tspan&quot;);A(h,&quot;\u200b&quot;),n.select(h).attr(&quot;dy&quot;,d[i]),a.dy=p[i],r.appendChild(f),r.appendChild(h)}else r.appendChild(f);n.select(f).attr(a),r=t.node=f,l.push(t)}function A(t,e){t.appendChild(document.createTextNode(e))}function S(t){if(1!==l.length){var n=l.pop();t!==n.type&amp;&amp;i.log(&quot;Start tag &lt;&quot;+n.type+&quot;&gt; doesnt match end tag &lt;&quot;+t+&quot;&gt;. Pretending it did match.&quot;,e),r=l[l.length-1].node}else i.log(&quot;Ignoring unexpected end tag &lt;/&quot;+t+&quot;&gt;.&quot;,e)}x.test(e)?u():(r=t,l=[{node:t}]);for(var C=e.split(v),L=0;L&lt;C.length;L++){var I=C[L],P=I.match(y),z=P&amp;&amp;P[2].toLowerCase(),O=h[z];if(&quot;br&quot;===z)u();else if(void 0===O)A(r,E(I));else if(P[1])S(z);else{var D=P[4],R={type:z},F=k(D,b);if(F?(F=F.replace(M,&quot;$1 fill:&quot;),O&amp;&amp;(F+=&quot;;&quot;+O)):O&amp;&amp;(F=O),F&amp;&amp;(R.style=F),&quot;a&quot;===z){a=!0;var B=k(D,_);if(B){var N=document.createElement(&quot;a&quot;);N.href=B,-1!==g.indexOf(N.protocol)&amp;&amp;(R.href=encodeURI(decodeURI(B)),R.target=k(D,w)||&quot;_blank&quot;,R.popup=k(D,T))}}f(R)}}return a}(t.node(),S)&amp;&amp;t.style(&quot;pointer-events&quot;,&quot;all&quot;),r.positionText(t),A&amp;&amp;A.call(t)}};var u=/(&lt;|&amp;lt;|&amp;#60;)/g,f=/(&gt;|&amp;gt;|&amp;#62;)/g;var h={sup:&quot;font-size:70%&quot;,sub:&quot;font-size:70%&quot;,b:&quot;font-weight:bold&quot;,i:&quot;font-style:italic&quot;,a:&quot;cursor:pointer&quot;,span:&quot;&quot;,em:&quot;font-style:italic;font-weight:bold&quot;},p={sub:&quot;0.3em&quot;,sup:&quot;-0.6em&quot;},d={sub:&quot;-0.21em&quot;,sup:&quot;0.42em&quot;},g=[&quot;http:&quot;,&quot;https:&quot;,&quot;mailto:&quot;,&quot;&quot;,void 0,&quot;:&quot;],m=r.NEWLINES=/(\r\n?|\n)/g,v=/(&lt;[^&lt;&gt;]*&gt;)/,y=/&lt;(\/?)([^ &gt;]*)(\s+(.*))?&gt;/i,x=/&lt;br(\s+.*)?&gt;/i;r.BR_TAG_ALL=/&lt;br(\s+.*)?&gt;/gi;var b=/(^|[\s&quot;'])style\s*=\s*(&quot;([^&quot;]*);?&quot;|'([^']*);?')/i,_=/(^|[\s&quot;'])href\s*=\s*(&quot;([^&quot;]*)&quot;|'([^']*)')/i,w=/(^|[\s&quot;'])target\s*=\s*(&quot;([^&quot;\s]*)&quot;|'([^'\s]*)')/i,T=/(^|[\s&quot;'])popup\s*=\s*(&quot;([\w=,]*)&quot;|'([\w=,]*)')/i;function k(t,e){if(!t)return null;var r=t.match(e),n=r&amp;&amp;(r[3]||r[4]);return n&amp;&amp;E(n)}var M=/(^|;)\s*color:/;r.plainText=function(t,e){for(var r=void 0!==(e=e||{}).len&amp;&amp;-1!==e.len?e.len:1/0,n=void 0!==e.allowedTags?e.allowedTags:[&quot;br&quot;],i=&quot;...&quot;.length,a=t.split(v),o=[],s=&quot;&quot;,l=0,c=0;c&lt;a.length;c++){var u=a[c],f=u.match(y),h=f&amp;&amp;f[2].toLowerCase();if(h)-1!==n.indexOf(h)&amp;&amp;(o.push(u),s=h);else{var p=u.length;if(l+p&lt;r)o.push(u),l+=p;else if(l&lt;r){var d=r-l;s&amp;&amp;(&quot;br&quot;!==s||d&lt;=i||p&lt;=i)&amp;&amp;o.pop(),r&gt;i?o.push(u.substr(0,d-i)+&quot;...&quot;):o.push(u.substr(0,d));break}s=&quot;&quot;}}return o.join(&quot;&quot;)};var A={mu:&quot;\u03bc&quot;,amp:&quot;&amp;&quot;,lt:&quot;&lt;&quot;,gt:&quot;&gt;&quot;,nbsp:&quot;\xa0&quot;,times:&quot;\xd7&quot;,plusmn:&quot;\xb1&quot;,deg:&quot;\xb0&quot;},S=/&amp;(#\d+|#x[\da-fA-F]+|[a-z]+);/g;function E(t){return t.replace(S,(function(t,e){return(&quot;#&quot;===e.charAt(0)?function(t){if(t&gt;1114111)return;var e=String.fromCodePoint;if(e)return e(t);var r=String.fromCharCode;return t&lt;=65535?r(t):r(55232+(t&gt;&gt;10),t%1024+56320)}(&quot;x&quot;===e.charAt(1)?parseInt(e.substr(2),16):parseInt(e.substr(1),10)):A[e])||t}))}function C(t,e,r){var n,a,o,s=r.horizontalAlign,l=r.verticalAlign||&quot;top&quot;,c=t.node().getBoundingClientRect(),u=e.node().getBoundingClientRect();return a=&quot;bottom&quot;===l?function(){return c.bottom-n.height}:&quot;middle&quot;===l?function(){return c.top+(c.height-n.height)/2}:function(){return c.top},o=&quot;right&quot;===s?function(){return c.right-n.width}:&quot;center&quot;===s?function(){return c.left+(c.width-n.width)/2}:function(){return c.left},function(){n=this.node().getBoundingClientRect();var t=o()-u.left,e=a()-u.top,s=r.gd||{};if(r.gd){s._fullLayout._calcInverseTransform(s);var l=i.apply3DTransform(s._fullLayout._invTransform)(t,e);t=l[0],e=l[1]}return this.style({top:e+&quot;px&quot;,left:t+&quot;px&quot;,&quot;z-index&quot;:1e3}),this}}r.convertEntities=E,r.sanitizeHTML=function(t){t=t.replace(m,&quot; &quot;);for(var e=document.createElement(&quot;p&quot;),r=e,i=[],a=t.split(v),o=0;o&lt;a.length;o++){var s=a[o],l=s.match(y),c=l&amp;&amp;l[2].toLowerCase();if(c in h)if(l[1])i.length&amp;&amp;(r=i.pop());else{var u=l[4],f=k(u,b),p=f?{style:f}:{};if(&quot;a&quot;===c){var d=k(u,_);if(d){var x=document.createElement(&quot;a&quot;);if(x.href=d,-1!==g.indexOf(x.protocol)){p.href=encodeURI(decodeURI(d));var T=k(u,w);T&amp;&amp;(p.target=T)}}}var M=document.createElement(c);r.appendChild(M),n.select(M).attr(p),r=M,i.push(M)}else r.appendChild(document.createTextNode(E(s)))}return e.innerHTML},r.lineCount=function(t){return t.selectAll(&quot;tspan.line&quot;).size()||1},r.positionText=function(t,e,r){return t.each((function(){var t=n.select(this);function i(e,r){return void 0===r?null===(r=t.attr(e))&amp;&amp;(t.attr(e,0),r=0):t.attr(e,r),r}var a=i(&quot;x&quot;,e),o=i(&quot;y&quot;,r);&quot;text&quot;===this.nodeName&amp;&amp;t.selectAll(&quot;tspan.line&quot;).attr({x:a,y:o})}))},r.makeEditable=function(t,e){var r=e.gd,i=e.delegate,a=n.dispatch(&quot;edit&quot;,&quot;input&quot;,&quot;cancel&quot;),o=i||t;if(t.style({&quot;pointer-events&quot;:i?&quot;none&quot;:&quot;all&quot;}),1!==t.size())throw new Error(&quot;boo&quot;);function s(){!function(){var i=n.select(r).select(&quot;.svg-container&quot;),o=i.append(&quot;div&quot;),s=t.node().style,c=parseFloat(s.fontSize||12),u=e.text;void 0===u&amp;&amp;(u=t.attr(&quot;data-unformatted&quot;));o.classed(&quot;plugin-editable editable&quot;,!0).style({position:&quot;absolute&quot;,&quot;font-family&quot;:s.fontFamily||&quot;Arial&quot;,&quot;font-size&quot;:c,color:e.fill||s.fill||&quot;black&quot;,opacity:1,&quot;background-color&quot;:e.background||&quot;transparent&quot;,outline:&quot;#ffffff33 1px solid&quot;,margin:[-c/8+1,0,0,-1].join(&quot;px &quot;)+&quot;px&quot;,padding:&quot;0&quot;,&quot;box-sizing&quot;:&quot;border-box&quot;}).attr({contenteditable:!0}).text(u).call(C(t,i,e)).on(&quot;blur&quot;,(function(){r._editing=!1,t.text(this.textContent).style({opacity:1});var e,i=n.select(this).attr(&quot;class&quot;);(e=i?&quot;.&quot;+i.split(&quot; &quot;)[0]+&quot;-math-group&quot;:&quot;[class*=-math-group]&quot;)&amp;&amp;n.select(t.node().parentNode).select(e).style({opacity:0});var o=this.textContent;n.select(this).transition().duration(0).remove(),n.select(document).on(&quot;mouseup&quot;,null),a.edit.call(t,o)})).on(&quot;focus&quot;,(function(){var t=this;r._editing=!0,n.select(document).on(&quot;mouseup&quot;,(function(){if(n.event.target===t)return!1;document.activeElement===o.node()&amp;&amp;o.node().blur()}))})).on(&quot;keyup&quot;,(function(){27===n.event.which?(r._editing=!1,t.style({opacity:1}),n.select(this).style({opacity:0}).on(&quot;blur&quot;,(function(){return!1})).transition().remove(),a.cancel.call(t,this.textContent)):(a.input.call(t,this.textContent),n.select(this).call(C(t,i,e)))})).on(&quot;keydown&quot;,(function(){13===n.event.which&amp;&amp;this.blur()})).call(l)}(),t.style({opacity:0});var i,s=o.attr(&quot;class&quot;);(i=s?&quot;.&quot;+s.split(&quot; &quot;)[0]+&quot;-math-group&quot;:&quot;[class*=-math-group]&quot;)&amp;&amp;n.select(t.node().parentNode).select(i).style({opacity:0})}function l(t){var e=t.node(),r=document.createRange();r.selectNodeContents(e);var n=window.getSelection();n.removeAllRanges(),n.addRange(r),e.focus()}return e.immediate?s():o.on(&quot;click&quot;,s),n.rebind(t,a,&quot;on&quot;)}},{&quot;../constants/alignment&quot;:745,&quot;../constants/xmlns_namespaces&quot;:754,&quot;../lib&quot;:778,d3:169}],804:[function(t,e,r){&quot;use strict&quot;;var n={};function i(t){t&amp;&amp;null!==t.timer&amp;&amp;(clearTimeout(t.timer),t.timer=null)}r.throttle=function(t,e,r){var a=n[t],o=Date.now();if(!a){for(var s in n)n[s].ts&lt;o-6e4&amp;&amp;delete n[s];a=n[t]={ts:0,timer:null}}function l(){r(),a.ts=Date.now(),a.onDone&amp;&amp;(a.onDone(),a.onDone=null)}i(a),o&gt;a.ts+e?l():a.timer=setTimeout((function(){l(),a.timer=null}),e)},r.done=function(t){var e=n[t];return e&amp;&amp;e.timer?new Promise((function(t){var r=e.onDone;e.onDone=function(){r&amp;&amp;r(),t(),e.onDone=null}})):Promise.resolve()},r.clear=function(t){if(t)i(n[t]),delete n[t];else for(var e in n)r.clear(e)}},{}],805:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports=function(t,e){if(t&gt;0)return Math.log(t)/Math.LN10;var r=Math.log(Math.min(e[0],e[1]))/Math.LN10;return n(r)||(r=Math.log(Math.max(e[0],e[1]))/Math.LN10-6),r}},{&quot;fast-isnumeric&quot;:241}],806:[function(t,e,r){&quot;use strict&quot;;var n=e.exports={},i=t(&quot;../plots/geo/constants&quot;).locationmodeToLayer,a=t(&quot;topojson-client&quot;).feature;n.getTopojsonName=function(t){return[t.scope.replace(/ /g,&quot;-&quot;),&quot;_&quot;,t.resolution.toString(),&quot;m&quot;].join(&quot;&quot;)},n.getTopojsonPath=function(t,e){return t+e+&quot;.json&quot;},n.getTopojsonFeatures=function(t,e){var r=i[t.locationmode],n=e.objects[r];return a(e,n).features}},{&quot;../plots/geo/constants&quot;:858,&quot;topojson-client&quot;:579}],807:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;locale&quot;,name:&quot;en-US&quot;,dictionary:{&quot;Click to enter Colorscale title&quot;:&quot;Click to enter Colorscale title&quot;},format:{date:&quot;%m/%d/%Y&quot;}}},{}],808:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;locale&quot;,name:&quot;en&quot;,dictionary:{&quot;Click to enter Colorscale title&quot;:&quot;Click to enter Colourscale title&quot;},format:{days:[&quot;Sunday&quot;,&quot;Monday&quot;,&quot;Tuesday&quot;,&quot;Wednesday&quot;,&quot;Thursday&quot;,&quot;Friday&quot;,&quot;Saturday&quot;],shortDays:[&quot;Sun&quot;,&quot;Mon&quot;,&quot;Tue&quot;,&quot;Wed&quot;,&quot;Thu&quot;,&quot;Fri&quot;,&quot;Sat&quot;],months:[&quot;January&quot;,&quot;February&quot;,&quot;March&quot;,&quot;April&quot;,&quot;May&quot;,&quot;June&quot;,&quot;July&quot;,&quot;August&quot;,&quot;September&quot;,&quot;October&quot;,&quot;November&quot;,&quot;December&quot;],shortMonths:[&quot;Jan&quot;,&quot;Feb&quot;,&quot;Mar&quot;,&quot;Apr&quot;,&quot;May&quot;,&quot;Jun&quot;,&quot;Jul&quot;,&quot;Aug&quot;,&quot;Sep&quot;,&quot;Oct&quot;,&quot;Nov&quot;,&quot;Dec&quot;],periods:[&quot;AM&quot;,&quot;PM&quot;],dateTime:&quot;%a %b %e %X %Y&quot;,date:&quot;%d/%m/%Y&quot;,time:&quot;%H:%M:%S&quot;,decimal:&quot;.&quot;,thousands:&quot;,&quot;,grouping:[3],currency:[&quot;$&quot;,&quot;&quot;],year:&quot;%Y&quot;,month:&quot;%b %Y&quot;,dayMonth:&quot;%b %-d&quot;,dayMonthYear:&quot;%b %-d, %Y&quot;}}},{}],809:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);e.exports=function(t){for(var e,r,i=n.layoutArrayContainers,a=n.layoutArrayRegexes,o=t.split(&quot;[&quot;)[0],s=0;s&lt;a.length;s++)if((r=t.match(a[s]))&amp;&amp;0===r.index){e=r[0];break}if(e||(e=i[i.indexOf(o)]),!e)return!1;var l=t.substr(e.length);return l?!!(r=l.match(/^\[(0|[1-9][0-9]*)\](\.(.+))?$/))&amp;&amp;{array:e,index:Number(r[1]),property:r[3]||&quot;&quot;}:{array:e,index:&quot;&quot;,property:&quot;&quot;}}},{&quot;../registry&quot;:911}],810:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=n.extendFlat,a=n.isPlainObject,o={valType:&quot;flaglist&quot;,extras:[&quot;none&quot;],flags:[&quot;calc&quot;,&quot;clearAxisTypes&quot;,&quot;plot&quot;,&quot;style&quot;,&quot;markerSize&quot;,&quot;colorbars&quot;]},s={valType:&quot;flaglist&quot;,extras:[&quot;none&quot;],flags:[&quot;calc&quot;,&quot;plot&quot;,&quot;legend&quot;,&quot;ticks&quot;,&quot;axrange&quot;,&quot;layoutstyle&quot;,&quot;modebar&quot;,&quot;camera&quot;,&quot;arraydraw&quot;,&quot;colorbars&quot;]},l=o.flags.slice().concat([&quot;fullReplot&quot;]),c=s.flags.slice().concat(&quot;layoutReplot&quot;);function u(t){for(var e={},r=0;r&lt;t.length;r++)e[t[r]]=!1;return e}function f(t,e,r){var n=i({},t);for(var o in n){var s=n[o];a(s)&amp;&amp;(n[o]=h(s,e,r,o))}return&quot;from-root&quot;===r&amp;&amp;(n.editType=e),n}function h(t,e,r,n){if(t.valType){var a=i({},t);if(a.editType=e,Array.isArray(t.items)){a.items=new Array(t.items.length);for(var o=0;o&lt;t.items.length;o++)a.items[o]=h(t.items[o],e,&quot;from-root&quot;)}return a}return f(t,e,&quot;_&quot;===n.charAt(0)?&quot;nested&quot;:&quot;from-root&quot;)}e.exports={traces:o,layout:s,traceFlags:function(){return u(l)},layoutFlags:function(){return u(c)},update:function(t,e){var r=e.editType;if(r&amp;&amp;&quot;none&quot;!==r)for(var n=r.split(&quot;+&quot;),i=0;i&lt;n.length;i++)t[n[i]]=!0},overrideAll:f}},{&quot;../lib&quot;:778}],811:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;gl-mat4/fromQuat&quot;),a=t(&quot;../registry&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../plots/plots&quot;),l=t(&quot;../plots/cartesian/axis_ids&quot;),c=t(&quot;../components/color&quot;),u=l.cleanId,f=l.getFromTrace,h=a.traceIs;function p(t,e){var r=t[e],n=e.charAt(0);r&amp;&amp;&quot;paper&quot;!==r&amp;&amp;(t[e]=u(r,n,!0))}function d(t){function e(e,r){var n=t[e],i=t.title&amp;&amp;t.title[r];n&amp;&amp;!i&amp;&amp;(t.title||(t.title={}),t.title[r]=t[e],delete t[e])}t&amp;&amp;(&quot;string&quot;!=typeof t.title&amp;&amp;&quot;number&quot;!=typeof t.title||(t.title={text:t.title}),e(&quot;titlefont&quot;,&quot;font&quot;),e(&quot;titleposition&quot;,&quot;position&quot;),e(&quot;titleside&quot;,&quot;side&quot;),e(&quot;titleoffset&quot;,&quot;offset&quot;))}function g(t){if(!o.isPlainObject(t))return!1;var e=t.name;return delete t.name,delete t.showlegend,(&quot;string&quot;==typeof e||&quot;number&quot;==typeof e)&amp;&amp;String(e)}function m(t,e,r,n){if(r&amp;&amp;!n)return t;if(n&amp;&amp;!r)return e;if(!t.trim())return e;if(!e.trim())return t;var i,a=Math.min(t.length,e.length);for(i=0;i&lt;a&amp;&amp;t.charAt(i)===e.charAt(i);i++);return t.substr(0,i).trim()}function v(t){var e=&quot;middle&quot;,r=&quot;center&quot;;return&quot;string&quot;==typeof t&amp;&amp;(-1!==t.indexOf(&quot;top&quot;)?e=&quot;top&quot;:-1!==t.indexOf(&quot;bottom&quot;)&amp;&amp;(e=&quot;bottom&quot;),-1!==t.indexOf(&quot;left&quot;)?r=&quot;left&quot;:-1!==t.indexOf(&quot;right&quot;)&amp;&amp;(r=&quot;right&quot;)),e+&quot; &quot;+r}function y(t,e){return e in t&amp;&amp;&quot;object&quot;==typeof t[e]&amp;&amp;0===Object.keys(t[e]).length}r.clearPromiseQueue=function(t){Array.isArray(t._promises)&amp;&amp;t._promises.length&gt;0&amp;&amp;o.log(&quot;Clearing previous rejected promises from queue.&quot;),t._promises=[]},r.cleanLayout=function(t){var e,n;t||(t={}),t.xaxis1&amp;&amp;(t.xaxis||(t.xaxis=t.xaxis1),delete t.xaxis1),t.yaxis1&amp;&amp;(t.yaxis||(t.yaxis=t.yaxis1),delete t.yaxis1),t.scene1&amp;&amp;(t.scene||(t.scene=t.scene1),delete t.scene1);var a=(s.subplotsRegistry.cartesian||{}).attrRegex,l=(s.subplotsRegistry.polar||{}).attrRegex,f=(s.subplotsRegistry.ternary||{}).attrRegex,h=(s.subplotsRegistry.gl3d||{}).attrRegex,g=Object.keys(t);for(e=0;e&lt;g.length;e++){var m=g[e];if(a&amp;&amp;a.test(m)){var v=t[m];v.anchor&amp;&amp;&quot;free&quot;!==v.anchor&amp;&amp;(v.anchor=u(v.anchor)),v.overlaying&amp;&amp;(v.overlaying=u(v.overlaying)),v.type||(v.isdate?v.type=&quot;date&quot;:v.islog?v.type=&quot;log&quot;:!1===v.isdate&amp;&amp;!1===v.islog&amp;&amp;(v.type=&quot;linear&quot;)),&quot;withzero&quot;!==v.autorange&amp;&amp;&quot;tozero&quot;!==v.autorange||(v.autorange=!0,v.rangemode=&quot;tozero&quot;),delete v.islog,delete v.isdate,delete v.categories,y(v,&quot;domain&quot;)&amp;&amp;delete v.domain,void 0!==v.autotick&amp;&amp;(void 0===v.tickmode&amp;&amp;(v.tickmode=v.autotick?&quot;auto&quot;:&quot;linear&quot;),delete v.autotick),d(v)}else if(l&amp;&amp;l.test(m)){d(t[m].radialaxis)}else if(f&amp;&amp;f.test(m)){var x=t[m];d(x.aaxis),d(x.baxis),d(x.caxis)}else if(h&amp;&amp;h.test(m)){var b=t[m],_=b.cameraposition;if(Array.isArray(_)&amp;&amp;4===_[0].length){var w=_[0],T=_[1],k=_[2],M=i([],w),A=[];for(n=0;n&lt;3;++n)A[n]=T[n]+k*M[2+4*n];b.camera={eye:{x:A[0],y:A[1],z:A[2]},center:{x:T[0],y:T[1],z:T[2]},up:{x:0,y:0,z:1}},delete b.cameraposition}d(b.xaxis),d(b.yaxis),d(b.zaxis)}}var S=Array.isArray(t.annotations)?t.annotations.length:0;for(e=0;e&lt;S;e++){var E=t.annotations[e];o.isPlainObject(E)&amp;&amp;(E.ref&amp;&amp;(&quot;paper&quot;===E.ref?(E.xref=&quot;paper&quot;,E.yref=&quot;paper&quot;):&quot;data&quot;===E.ref&amp;&amp;(E.xref=&quot;x&quot;,E.yref=&quot;y&quot;),delete E.ref),p(E,&quot;xref&quot;),p(E,&quot;yref&quot;))}var C=Array.isArray(t.shapes)?t.shapes.length:0;for(e=0;e&lt;C;e++){var L=t.shapes[e];o.isPlainObject(L)&amp;&amp;(p(L,&quot;xref&quot;),p(L,&quot;yref&quot;))}var I=Array.isArray(t.images)?t.images.length:0;for(e=0;e&lt;I;e++){var P=t.images[e];o.isPlainObject(P)&amp;&amp;(p(P,&quot;xref&quot;),p(P,&quot;yref&quot;))}var z=t.legend;return z&amp;&amp;(z.x&gt;3?(z.x=1.02,z.xanchor=&quot;left&quot;):z.x&lt;-2&amp;&amp;(z.x=-.02,z.xanchor=&quot;right&quot;),z.y&gt;3?(z.y=1.02,z.yanchor=&quot;bottom&quot;):z.y&lt;-2&amp;&amp;(z.y=-.02,z.yanchor=&quot;top&quot;)),d(t),&quot;rotate&quot;===t.dragmode&amp;&amp;(t.dragmode=&quot;orbit&quot;),c.clean(t),t.template&amp;&amp;t.template.layout&amp;&amp;r.cleanLayout(t.template.layout),t},r.cleanData=function(t){for(var e=0;e&lt;t.length;e++){var n,i=t[e];if(&quot;histogramy&quot;===i.type&amp;&amp;&quot;xbins&quot;in i&amp;&amp;!(&quot;ybins&quot;in i)&amp;&amp;(i.ybins=i.xbins,delete i.xbins),i.error_y&amp;&amp;&quot;opacity&quot;in i.error_y){var l=c.defaults,f=i.error_y.color||(h(i,&quot;bar&quot;)?c.defaultLine:l[e%l.length]);i.error_y.color=c.addOpacity(c.rgb(f),c.opacity(f)*i.error_y.opacity),delete i.error_y.opacity}if(&quot;bardir&quot;in i&amp;&amp;(&quot;h&quot;!==i.bardir||!h(i,&quot;bar&quot;)&amp;&amp;&quot;histogram&quot;!==i.type.substr(0,9)||(i.orientation=&quot;h&quot;,r.swapXYData(i)),delete i.bardir),&quot;histogramy&quot;===i.type&amp;&amp;r.swapXYData(i),&quot;histogramx&quot;!==i.type&amp;&amp;&quot;histogramy&quot;!==i.type||(i.type=&quot;histogram&quot;),&quot;scl&quot;in i&amp;&amp;!(&quot;colorscale&quot;in i)&amp;&amp;(i.colorscale=i.scl,delete i.scl),&quot;reversescl&quot;in i&amp;&amp;!(&quot;reversescale&quot;in i)&amp;&amp;(i.reversescale=i.reversescl,delete i.reversescl),i.xaxis&amp;&amp;(i.xaxis=u(i.xaxis,&quot;x&quot;)),i.yaxis&amp;&amp;(i.yaxis=u(i.yaxis,&quot;y&quot;)),h(i,&quot;gl3d&quot;)&amp;&amp;i.scene&amp;&amp;(i.scene=s.subplotsRegistry.gl3d.cleanId(i.scene)),!h(i,&quot;pie-like&quot;)&amp;&amp;!h(i,&quot;bar-like&quot;))if(Array.isArray(i.textposition))for(n=0;n&lt;i.textposition.length;n++)i.textposition[n]=v(i.textposition[n]);else i.textposition&amp;&amp;(i.textposition=v(i.textposition));var p=a.getModule(i);if(p&amp;&amp;p.colorbar){var x=p.colorbar.container,b=x?i[x]:i;b&amp;&amp;b.colorscale&amp;&amp;(&quot;YIGnBu&quot;===b.colorscale&amp;&amp;(b.colorscale=&quot;YlGnBu&quot;),&quot;YIOrRd&quot;===b.colorscale&amp;&amp;(b.colorscale=&quot;YlOrRd&quot;))}if(&quot;surface&quot;===i.type&amp;&amp;o.isPlainObject(i.contours)){var _=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(n=0;n&lt;_.length;n++){var w=i.contours[_[n]];o.isPlainObject(w)&amp;&amp;(w.highlightColor&amp;&amp;(w.highlightcolor=w.highlightColor,delete w.highlightColor),w.highlightWidth&amp;&amp;(w.highlightwidth=w.highlightWidth,delete w.highlightWidth))}}if(&quot;candlestick&quot;===i.type||&quot;ohlc&quot;===i.type){var T=!1!==(i.increasing||{}).showlegend,k=!1!==(i.decreasing||{}).showlegend,M=g(i.increasing),A=g(i.decreasing);if(!1!==M&amp;&amp;!1!==A){var S=m(M,A,T,k);S&amp;&amp;(i.name=S)}else!M&amp;&amp;!A||i.name||(i.name=M||A)}if(Array.isArray(i.transforms)){var E=i.transforms;for(n=0;n&lt;E.length;n++){var C=E[n];if(o.isPlainObject(C))switch(C.type){case&quot;filter&quot;:C.filtersrc&amp;&amp;(C.target=C.filtersrc,delete C.filtersrc),C.calendar&amp;&amp;(C.valuecalendar||(C.valuecalendar=C.calendar),delete C.calendar);break;case&quot;groupby&quot;:if(C.styles=C.styles||C.style,C.styles&amp;&amp;!Array.isArray(C.styles)){var L=C.styles,I=Object.keys(L);C.styles=[];for(var P=0;P&lt;I.length;P++)C.styles.push({target:I[P],value:L[I[P]]})}}}}y(i,&quot;line&quot;)&amp;&amp;delete i.line,&quot;marker&quot;in i&amp;&amp;(y(i.marker,&quot;line&quot;)&amp;&amp;delete i.marker.line,y(i,&quot;marker&quot;)&amp;&amp;delete i.marker),c.clean(i),i.autobinx&amp;&amp;(delete i.autobinx,delete i.xbins),i.autobiny&amp;&amp;(delete i.autobiny,delete i.ybins),d(i),i.colorbar&amp;&amp;d(i.colorbar),i.marker&amp;&amp;i.marker.colorbar&amp;&amp;d(i.marker.colorbar),i.line&amp;&amp;i.line.colorbar&amp;&amp;d(i.line.colorbar),i.aaxis&amp;&amp;d(i.aaxis),i.baxis&amp;&amp;d(i.baxis)}},r.swapXYData=function(t){var e;if(o.swapAttrs(t,[&quot;?&quot;,&quot;?0&quot;,&quot;d?&quot;,&quot;?bins&quot;,&quot;nbins?&quot;,&quot;autobin?&quot;,&quot;?src&quot;,&quot;error_?&quot;]),Array.isArray(t.z)&amp;&amp;Array.isArray(t.z[0])&amp;&amp;(t.transpose?delete t.transpose:t.transpose=!0),t.error_x&amp;&amp;t.error_y){var r=t.error_y,n=&quot;copy_ystyle&quot;in r?r.copy_ystyle:!(r.color||r.thickness||r.width);o.swapAttrs(t,[&quot;error_?.copy_ystyle&quot;]),n&amp;&amp;o.swapAttrs(t,[&quot;error_?.color&quot;,&quot;error_?.thickness&quot;,&quot;error_?.width&quot;])}if(&quot;string&quot;==typeof t.hoverinfo){var i=t.hoverinfo.split(&quot;+&quot;);for(e=0;e&lt;i.length;e++)&quot;x&quot;===i[e]?i[e]=&quot;y&quot;:&quot;y&quot;===i[e]&amp;&amp;(i[e]=&quot;x&quot;);t.hoverinfo=i.join(&quot;+&quot;)}},r.coerceTraceIndices=function(t,e){if(n(e))return[e];if(!Array.isArray(e)||!e.length)return t.data.map((function(t,e){return e}));if(Array.isArray(e)){for(var r=[],i=0;i&lt;e.length;i++)o.isIndex(e[i],t.data.length)?r.push(e[i]):o.warn(&quot;trace index (&quot;,e[i],&quot;) is not a number or is out of bounds&quot;);return r}return e},r.manageArrayContainers=function(t,e,r){var i=t.obj,a=t.parts,s=a.length,l=a[s-1],c=n(l);if(c&amp;&amp;null===e){var u=a.slice(0,s-1).join(&quot;.&quot;);o.nestedProperty(i,u).get().splice(l,1)}else c&amp;&amp;void 0===t.get()?(void 0===t.get()&amp;&amp;(r[t.astr]=null),t.set(e)):t.set(e)};var x=/(\.[^\[\]\.]+|\[[^\[\]\.]+\])$/;function b(t){var e=t.search(x);if(e&gt;0)return t.substr(0,e)}r.hasParent=function(t,e){for(var r=b(e);r;){if(r in t)return!0;r=b(r)}return!1};var _=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];r.clearAxisTypes=function(t,e,r){for(var n=0;n&lt;e.length;n++)for(var i=t._fullData[n],a=0;a&lt;3;a++){var s=f(t,i,_[a]);if(s&amp;&amp;&quot;log&quot;!==s.type){var l=s._name,c=s._id.substr(1);if(&quot;scene&quot;===c.substr(0,5)){if(void 0!==r[c])continue;l=c+&quot;.&quot;+l}var u=l+&quot;.type&quot;;void 0===r[l]&amp;&amp;void 0===r[u]&amp;&amp;o.nestedProperty(t.layout,u).set(null)}}}},{&quot;../components/color&quot;:643,&quot;../lib&quot;:778,&quot;../plots/cartesian/axis_ids&quot;:831,&quot;../plots/plots&quot;:891,&quot;../registry&quot;:911,&quot;fast-isnumeric&quot;:241,&quot;gl-mat4/fromQuat&quot;:282}],812:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./plot_api&quot;);r.plot=n.plot,r.newPlot=n.newPlot,r.restyle=n.restyle,r.relayout=n.relayout,r.redraw=n.redraw,r.update=n.update,r._guiRestyle=n._guiRestyle,r._guiRelayout=n._guiRelayout,r._guiUpdate=n._guiUpdate,r._storeDirectGUIEdit=n._storeDirectGUIEdit,r.react=n.react,r.extendTraces=n.extendTraces,r.prependTraces=n.prependTraces,r.addTraces=n.addTraces,r.deleteTraces=n.deleteTraces,r.moveTraces=n.moveTraces,r.purge=n.purge,r.addFrames=n.addFrames,r.deleteFrames=n.deleteFrames,r.animate=n.animate,r.setPlotConfig=n.setPlotConfig,r.toImage=t(&quot;./to_image&quot;),r.validate=t(&quot;./validate&quot;),r.downloadImage=t(&quot;../snapshot/download&quot;);var i=t(&quot;./template_api&quot;);r.makeTemplate=i.makeTemplate,r.validateTemplate=i.validateTemplate},{&quot;../snapshot/download&quot;:913,&quot;./plot_api&quot;:814,&quot;./template_api&quot;:819,&quot;./to_image&quot;:820,&quot;./validate&quot;:821}],813:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/is_plain_object&quot;),i=t(&quot;../lib/noop&quot;),a=t(&quot;../lib/loggers&quot;),o=t(&quot;../lib/search&quot;).sorterAsc,s=t(&quot;../registry&quot;);r.containerArrayMatch=t(&quot;./container_array_match&quot;);var l=r.isAddVal=function(t){return&quot;add&quot;===t||n(t)},c=r.isRemoveVal=function(t){return null===t||&quot;remove&quot;===t};r.applyContainerArrayChanges=function(t,e,r,n,u){var f=e.astr,h=s.getComponentMethod(f,&quot;supplyLayoutDefaults&quot;),p=s.getComponentMethod(f,&quot;draw&quot;),d=s.getComponentMethod(f,&quot;drawOne&quot;),g=n.replot||n.recalc||h===i||p===i,m=t.layout,v=t._fullLayout;if(r[&quot;&quot;]){Object.keys(r).length&gt;1&amp;&amp;a.warn(&quot;Full array edits are incompatible with other edits&quot;,f);var y=r[&quot;&quot;][&quot;&quot;];if(c(y))e.set(null);else{if(!Array.isArray(y))return a.warn(&quot;Unrecognized full array edit value&quot;,f,y),!0;e.set(y)}return!g&amp;&amp;(h(m,v),p(t),!0)}var x,b,_,w,T,k,M,A,S=Object.keys(r).map(Number).sort(o),E=e.get(),C=E||[],L=u(v,f).get(),I=[],P=-1,z=C.length;for(x=0;x&lt;S.length;x++)if(w=r[_=S[x]],T=Object.keys(w),k=w[&quot;&quot;],M=l(k),_&lt;0||_&gt;C.length-(M?0:1))a.warn(&quot;index out of range&quot;,f,_);else if(void 0!==k)T.length&gt;1&amp;&amp;a.warn(&quot;Insertion &amp; removal are incompatible with edits to the same index.&quot;,f,_),c(k)?I.push(_):M?(&quot;add&quot;===k&amp;&amp;(k={}),C.splice(_,0,k),L&amp;&amp;L.splice(_,0,{})):a.warn(&quot;Unrecognized full object edit value&quot;,f,_,k),-1===P&amp;&amp;(P=_);else for(b=0;b&lt;T.length;b++)A=f+&quot;[&quot;+_+&quot;].&quot;,u(C[_],T[b],A).set(w[T[b]]);for(x=I.length-1;x&gt;=0;x--)C.splice(I[x],1),L&amp;&amp;L.splice(I[x],1);if(C.length?E||e.set(C):e.set(null),g)return!1;if(h(m,v),d!==i){var O;if(-1===P)O=S;else{for(z=Math.max(C.length,z),O=[],x=0;x&lt;S.length&amp;&amp;!((_=S[x])&gt;=P);x++)O.push(_);for(x=P;x&lt;z;x++)O.push(x)}for(x=0;x&lt;O.length;x++)d(t,O[x])}else p(t);return!0}},{&quot;../lib/is_plain_object&quot;:779,&quot;../lib/loggers&quot;:782,&quot;../lib/noop&quot;:787,&quot;../lib/search&quot;:798,&quot;../registry&quot;:911,&quot;./container_array_match&quot;:809}],814:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;has-hover&quot;),o=t(&quot;../lib&quot;),s=o.nestedProperty,l=t(&quot;../lib/events&quot;),c=t(&quot;../lib/queue&quot;),u=t(&quot;../registry&quot;),f=t(&quot;./plot_schema&quot;),h=t(&quot;../plots/plots&quot;),p=t(&quot;../plots/polar/legacy&quot;),d=t(&quot;../plots/cartesian/axes&quot;),g=t(&quot;../components/drawing&quot;),m=t(&quot;../components/color&quot;),v=t(&quot;../plots/cartesian/graph_interact&quot;).initInteractions,y=t(&quot;../constants/xmlns_namespaces&quot;),x=t(&quot;../lib/svg_text_utils&quot;),b=t(&quot;../plots/cartesian/select&quot;).clearSelect,_=t(&quot;./plot_config&quot;).dfltConfig,w=t(&quot;./manage_arrays&quot;),T=t(&quot;./helpers&quot;),k=t(&quot;./subroutines&quot;),M=t(&quot;./edit_types&quot;),A=t(&quot;../plots/cartesian/constants&quot;).AX_NAME_PATTERN,S=0;function E(t){var e=t._fullLayout;e._redrawFromAutoMarginCount?e._redrawFromAutoMarginCount--:t.emit(&quot;plotly_afterplot&quot;)}function C(t,e){try{t._fullLayout._paper.style(&quot;background&quot;,e)}catch(t){o.error(t)}}function L(t,e){C(t,m.combine(e,&quot;white&quot;))}function I(t,e){if(!t._context){t._context=o.extendDeep({},_);var r=n.select(&quot;base&quot;);t._context._baseUrl=r.size()&amp;&amp;r.attr(&quot;href&quot;)?window.location.href.split(&quot;#&quot;)[0]:&quot;&quot;}var i,s,l,c=t._context;if(e){for(s=Object.keys(e),i=0;i&lt;s.length;i++)&quot;editable&quot;!==(l=s[i])&amp;&amp;&quot;edits&quot;!==l&amp;&amp;l in c&amp;&amp;(&quot;setBackground&quot;===l&amp;&amp;&quot;opaque&quot;===e[l]?c[l]=L:c[l]=e[l]);e.plot3dPixelRatio&amp;&amp;!c.plotGlPixelRatio&amp;&amp;(c.plotGlPixelRatio=c.plot3dPixelRatio);var u=e.editable;if(void 0!==u)for(c.editable=u,s=Object.keys(c.edits),i=0;i&lt;s.length;i++)c.edits[s[i]]=u;if(e.edits)for(s=Object.keys(e.edits),i=0;i&lt;s.length;i++)(l=s[i])in c.edits&amp;&amp;(c.edits[l]=e.edits[l]);c._exportedPlot=e._exportedPlot}c.staticPlot&amp;&amp;(c.editable=!1,c.edits={},c.autosizable=!1,c.scrollZoom=!1,c.doubleClick=!1,c.showTips=!1,c.showLink=!1,c.displayModeBar=!1),&quot;hover&quot;!==c.displayModeBar||a||(c.displayModeBar=!0),&quot;transparent&quot;!==c.setBackground&amp;&amp;&quot;function&quot;==typeof c.setBackground||(c.setBackground=C),c._hasZeroHeight=c._hasZeroHeight||0===t.clientHeight,c._hasZeroWidth=c._hasZeroWidth||0===t.clientWidth;var f=c.scrollZoom,h=c._scrollZoom={};if(!0===f)h.cartesian=1,h.gl3d=1,h.geo=1,h.mapbox=1;else if(&quot;string&quot;==typeof f){var p=f.split(&quot;+&quot;);for(i=0;i&lt;p.length;i++)h[p[i]]=1}else!1!==f&amp;&amp;(h.gl3d=1,h.geo=1,h.mapbox=1)}function P(t,e){var r,n,i=e+1,a=[];for(r=0;r&lt;t.length;r++)(n=t[r])&lt;0?a.push(i+n):a.push(n);return a}function z(t,e,r){var n,i;for(n=0;n&lt;e.length;n++){if((i=e[n])!==parseInt(i,10))throw new Error(&quot;all values in &quot;+r+&quot; must be integers&quot;);if(i&gt;=t.data.length||i&lt;-t.data.length)throw new Error(r+&quot; must be valid indices for gd.data.&quot;);if(e.indexOf(i,n+1)&gt;-1||i&gt;=0&amp;&amp;e.indexOf(-t.data.length+i)&gt;-1||i&lt;0&amp;&amp;e.indexOf(t.data.length+i)&gt;-1)throw new Error(&quot;each index in &quot;+r+&quot; must be unique.&quot;)}}function O(t,e,r){if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array.&quot;);if(&quot;undefined&quot;==typeof e)throw new Error(&quot;currentIndices is a required argument.&quot;);if(Array.isArray(e)||(e=[e]),z(t,e,&quot;currentIndices&quot;),&quot;undefined&quot;==typeof r||Array.isArray(r)||(r=[r]),&quot;undefined&quot;!=typeof r&amp;&amp;z(t,r,&quot;newIndices&quot;),&quot;undefined&quot;!=typeof r&amp;&amp;e.length!==r.length)throw new Error(&quot;current and new indices must be of equal length.&quot;)}function D(t,e,r,n,a){!function(t,e,r,n){var i=o.isPlainObject(n);if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array&quot;);if(!o.isPlainObject(e))throw new Error(&quot;update must be a key:value object&quot;);if(&quot;undefined&quot;==typeof r)throw new Error(&quot;indices must be an integer or array of integers&quot;);for(var a in z(t,r,&quot;indices&quot;),e){if(!Array.isArray(e[a])||e[a].length!==r.length)throw new Error(&quot;attribute &quot;+a+&quot; must be an array of length equal to indices array length&quot;);if(i&amp;&amp;(!(a in n)||!Array.isArray(n[a])||n[a].length!==e[a].length))throw new Error(&quot;when maxPoints is set as a key:value object it must contain a 1:1 corrispondence with the keys and number of traces in the update object&quot;)}}(t,e,r,n);for(var l=function(t,e,r,n){var a,l,c,u,f,h=o.isPlainObject(n),p=[];for(var d in Array.isArray(r)||(r=[r]),r=P(r,t.data.length-1),e)for(var g=0;g&lt;r.length;g++){if(a=t.data[r[g]],l=(c=s(a,d)).get(),u=e[d][g],!o.isArrayOrTypedArray(u))throw new Error(&quot;attribute: &quot;+d+&quot; index: &quot;+g+&quot; must be an array&quot;);if(!o.isArrayOrTypedArray(l))throw new Error(&quot;cannot extend missing or non-array attribute: &quot;+d);if(l.constructor!==u.constructor)throw new Error(&quot;cannot extend array with an array of a different type: &quot;+d);f=h?n[d][g]:n,i(f)||(f=-1),p.push({prop:c,target:l,insert:u,maxp:Math.floor(f)})}return p}(t,e,r,n),c={},u={},f=0;f&lt;l.length;f++){var h=l[f].prop,p=l[f].maxp,d=a(l[f].target,l[f].insert,p);h.set(d[0]),Array.isArray(c[h.astr])||(c[h.astr]=[]),c[h.astr].push(d[1]),Array.isArray(u[h.astr])||(u[h.astr]=[]),u[h.astr].push(l[f].target.length)}return{update:c,maxPoints:u}}function R(t,e){var r=new t.constructor(t.length+e.length);return r.set(t),r.set(e,t.length),r}function F(t,e,n,i){t=o.getGraphDiv(t),T.clearPromiseQueue(t);var a={};if(&quot;string&quot;==typeof e)a[e]=n;else{if(!o.isPlainObject(e))return o.warn(&quot;Restyle fail.&quot;,e,n,i),Promise.reject();a=o.extendFlat({},e),void 0===i&amp;&amp;(i=n)}Object.keys(a).length&amp;&amp;(t.changed=!0);var s=T.coerceTraceIndices(t,i),l=U(t,a,s),u=l.flags;u.calc&amp;&amp;(t.calcdata=void 0),u.clearAxisTypes&amp;&amp;T.clearAxisTypes(t,s,{});var f=[];u.fullReplot?f.push(r.plot):(f.push(h.previousPromises),h.supplyDefaults(t),u.markerSize&amp;&amp;(h.doCalcdata(t),G(f)),u.style&amp;&amp;f.push(k.doTraceStyle),u.colorbars&amp;&amp;f.push(k.doColorBars),f.push(E)),f.push(h.rehover,h.redrag),c.add(t,F,[t,l.undoit,l.traces],F,[t,l.redoit,l.traces]);var p=o.syncOrAsync(f,t);return p&amp;&amp;p.then||(p=Promise.resolve()),p.then((function(){return t.emit(&quot;plotly_restyle&quot;,l.eventData),t}))}function B(t){return void 0===t?null:t}function N(t,e){return e?function(e,r,n){var i=s(e,r),a=i.set;return i.set=function(e){j((n||&quot;&quot;)+r,i.get(),e,t),a(e)},i}:s}function j(t,e,r,n){if(Array.isArray(e)||Array.isArray(r))for(var i=Array.isArray(e)?e:[],a=Array.isArray(r)?r:[],s=Math.max(i.length,a.length),l=0;l&lt;s;l++)j(t+&quot;[&quot;+l+&quot;]&quot;,i[l],a[l],n);else if(o.isPlainObject(e)||o.isPlainObject(r)){var c=o.isPlainObject(e)?e:{},u=o.isPlainObject(r)?r:{},f=o.extendFlat({},c,u);for(var h in f)j(t+&quot;.&quot;+h,c[h],u[h],n)}else void 0===n[t]&amp;&amp;(n[t]=B(e))}function U(t,e,r){var n,i=t._fullLayout,a=t._fullData,l=t.data,c=i._guiEditing,p=N(i._preGUI,c),g=o.extendDeepAll({},e);V(e);var m,v=M.traceFlags(),y={},x={};function b(){return r.map((function(){}))}function _(t){var e=d.id2name(t);-1===m.indexOf(e)&amp;&amp;m.push(e)}function w(t){return&quot;LAYOUT&quot;+t+&quot;.autorange&quot;}function k(t){return&quot;LAYOUT&quot;+t+&quot;.range&quot;}function A(t){for(var e=t;e&lt;a.length;e++)if(a[e]._input===l[t])return a[e]}function S(n,a,o){if(Array.isArray(n))n.forEach((function(t){S(t,a,o)}));else if(!(n in e)&amp;&amp;!T.hasParent(e,n)){var s;if(&quot;LAYOUT&quot;===n.substr(0,6))s=p(t.layout,n.replace(&quot;LAYOUT&quot;,&quot;&quot;));else{var u=r[o];s=N(i._tracePreGUI[A(u)._fullInput.uid],c)(l[u],n)}n in x||(x[n]=b()),void 0===x[n][o]&amp;&amp;(x[n][o]=B(s.get())),void 0!==a&amp;&amp;s.set(a)}}function E(t){return function(e){return a[e][t]}}function C(t){return function(e,n){return!1===e?a[r[n]][t]:null}}for(var L in e){if(T.hasParent(e,L))throw new Error(&quot;cannot set &quot;+L+&quot; and a parent attribute simultaneously&quot;);var I,P,z,O,D,R,F=e[L];if(&quot;autobinx&quot;!==L&amp;&amp;&quot;autobiny&quot;!==L||(L=L.charAt(L.length-1)+&quot;bins&quot;,F=Array.isArray(F)?F.map(C(L)):!1===F?r.map(E(L)):null),y[L]=F,&quot;LAYOUT&quot;!==L.substr(0,6)){for(x[L]=b(),n=0;n&lt;r.length;n++){if(I=l[r[n]],P=A(r[n]),O=(z=N(i._tracePreGUI[P._fullInput.uid],c)(I,L)).get(),void 0!==(D=Array.isArray(F)?F[n%F.length]:F)){var j=z.parts[z.parts.length-1],U=L.substr(0,L.length-j.length-1),q=U?U+&quot;.&quot;:&quot;&quot;,H=U?s(P,U).get():P;if((R=f.getTraceValObject(P,z.parts))&amp;&amp;R.impliedEdits&amp;&amp;null!==D)for(var G in R.impliedEdits)S(o.relativeAttr(L,G),R.impliedEdits[G],n);else if(&quot;thicknessmode&quot;!==j&amp;&amp;&quot;lenmode&quot;!==j||O===D||&quot;fraction&quot;!==D&amp;&amp;&quot;pixels&quot;!==D||!H){if(&quot;type&quot;===L&amp;&amp;(&quot;pie&quot;===D!=(&quot;pie&quot;===O)||&quot;funnelarea&quot;===D!=(&quot;funnelarea&quot;===O))){var Y=&quot;x&quot;,W=&quot;y&quot;;&quot;bar&quot;!==D&amp;&amp;&quot;bar&quot;!==O||&quot;h&quot;!==I.orientation||(Y=&quot;y&quot;,W=&quot;x&quot;),o.swapAttrs(I,[&quot;?&quot;,&quot;?src&quot;],&quot;labels&quot;,Y),o.swapAttrs(I,[&quot;d?&quot;,&quot;?0&quot;],&quot;label&quot;,Y),o.swapAttrs(I,[&quot;?&quot;,&quot;?src&quot;],&quot;values&quot;,W),&quot;pie&quot;===O||&quot;funnelarea&quot;===O?(s(I,&quot;marker.color&quot;).set(s(I,&quot;marker.colors&quot;).get()),i._pielayer.selectAll(&quot;g.trace&quot;).remove()):u.traceIs(I,&quot;cartesian&quot;)&amp;&amp;s(I,&quot;marker.colors&quot;).set(s(I,&quot;marker.color&quot;).get())}}else{var X=i._size,Z=H.orient,J=&quot;top&quot;===Z||&quot;bottom&quot;===Z;if(&quot;thicknessmode&quot;===j){var K=J?X.h:X.w;S(q+&quot;thickness&quot;,H.thickness*(&quot;fraction&quot;===D?1/K:K),n)}else{var Q=J?X.w:X.h;S(q+&quot;len&quot;,H.len*(&quot;fraction&quot;===D?1/Q:Q),n)}}x[L][n]=B(O);if(-1!==[&quot;swapxy&quot;,&quot;swapxyaxes&quot;,&quot;orientation&quot;,&quot;orientationaxes&quot;].indexOf(L)){if(&quot;orientation&quot;===L){z.set(D);var $=I.x&amp;&amp;!I.y?&quot;h&quot;:&quot;v&quot;;if((z.get()||$)===P.orientation)continue}else&quot;orientationaxes&quot;===L&amp;&amp;(I.orientation={v:&quot;h&quot;,h:&quot;v&quot;}[P.orientation]);T.swapXYData(I),v.calc=v.clearAxisTypes=!0}else-1!==h.dataArrayContainers.indexOf(z.parts[0])?(T.manageArrayContainers(z,D,x),v.calc=!0):(R?R.arrayOk&amp;&amp;!u.traceIs(P,&quot;regl&quot;)&amp;&amp;(o.isArrayOrTypedArray(D)||o.isArrayOrTypedArray(O))?v.calc=!0:M.update(v,R):v.calc=!0,z.set(D))}}if(-1!==[&quot;swapxyaxes&quot;,&quot;orientationaxes&quot;].indexOf(L)&amp;&amp;d.swap(t,r),&quot;orientationaxes&quot;===L){var tt=s(t.layout,&quot;hovermode&quot;),et=tt.get();&quot;x&quot;===et?tt.set(&quot;y&quot;):&quot;y&quot;===et?tt.set(&quot;x&quot;):&quot;x unified&quot;===et?tt.set(&quot;y unified&quot;):&quot;y unified&quot;===et&amp;&amp;tt.set(&quot;x unified&quot;)}if(-1!==[&quot;orientation&quot;,&quot;type&quot;].indexOf(L)){for(m=[],n=0;n&lt;r.length;n++){var rt=l[r[n]];u.traceIs(rt,&quot;cartesian&quot;)&amp;&amp;(_(rt.xaxis||&quot;x&quot;),_(rt.yaxis||&quot;y&quot;))}S(m.map(w),!0,0),S(m.map(k),[0,1],0)}}else z=p(t.layout,L.replace(&quot;LAYOUT&quot;,&quot;&quot;)),x[L]=[B(z.get())],z.set(Array.isArray(F)?F[0]:F),v.calc=!0}return(v.calc||v.plot)&amp;&amp;(v.fullReplot=!0),{flags:v,undoit:x,redoit:y,traces:r,eventData:o.extendDeepNoArrays([],[g,r])}}function V(t){var e,r,n,i=o.counterRegex(&quot;axis&quot;,&quot;.title&quot;,!1,!1),a=/colorbar\.title$/,s=Object.keys(t);for(e=0;e&lt;s.length;e++)r=s[e],n=t[r],&quot;title&quot;!==r&amp;&amp;!i.test(r)&amp;&amp;!a.test(r)||&quot;string&quot;!=typeof n&amp;&amp;&quot;number&quot;!=typeof n?r.indexOf(&quot;titlefont&quot;)&gt;-1?l(r,r.replace(&quot;titlefont&quot;,&quot;title.font&quot;)):r.indexOf(&quot;titleposition&quot;)&gt;-1?l(r,r.replace(&quot;titleposition&quot;,&quot;title.position&quot;)):r.indexOf(&quot;titleside&quot;)&gt;-1?l(r,r.replace(&quot;titleside&quot;,&quot;title.side&quot;)):r.indexOf(&quot;titleoffset&quot;)&gt;-1&amp;&amp;l(r,r.replace(&quot;titleoffset&quot;,&quot;title.offset&quot;)):l(r,r.replace(&quot;title&quot;,&quot;title.text&quot;));function l(e,r){t[r]=t[e],delete t[e]}}function q(t,e,r){if(t=o.getGraphDiv(t),T.clearPromiseQueue(t),t.framework&amp;&amp;t.framework.isPolar)return Promise.resolve(t);var n={};if(&quot;string&quot;==typeof e)n[e]=r;else{if(!o.isPlainObject(e))return o.warn(&quot;Relayout fail.&quot;,e,r),Promise.reject();n=o.extendFlat({},e)}Object.keys(n).length&amp;&amp;(t.changed=!0);var i=Z(t,n),a=i.flags;a.calc&amp;&amp;(t.calcdata=void 0);var s=[h.previousPromises];a.layoutReplot?s.push(k.layoutReplot):Object.keys(n).length&amp;&amp;(H(t,a,i)||h.supplyDefaults(t),a.legend&amp;&amp;s.push(k.doLegend),a.layoutstyle&amp;&amp;s.push(k.layoutStyles),a.axrange&amp;&amp;G(s,i.rangesAltered),a.ticks&amp;&amp;s.push(k.doTicksRelayout),a.modebar&amp;&amp;s.push(k.doModeBar),a.camera&amp;&amp;s.push(k.doCamera),a.colorbars&amp;&amp;s.push(k.doColorBars),s.push(E)),s.push(h.rehover,h.redrag),c.add(t,q,[t,i.undoit],q,[t,i.redoit]);var l=o.syncOrAsync(s,t);return l&amp;&amp;l.then||(l=Promise.resolve(t)),l.then((function(){return t.emit(&quot;plotly_relayout&quot;,i.eventData),t}))}function H(t,e,r){var n=t._fullLayout;if(!e.axrange)return!1;for(var i in e)if(&quot;axrange&quot;!==i&amp;&amp;e[i])return!1;for(var a in r.rangesAltered){var o=d.id2name(a),s=t.layout[o],l=n[o];if(l.autorange=s.autorange,s.range&amp;&amp;(l.range=s.range.slice()),l.cleanRange(),l._matchGroup)for(var c in l._matchGroup)if(c!==a){var u=n[d.id2name(c)];u.autorange=l.autorange,u.range=l.range.slice(),u._input.range=l.range.slice()}}return!0}function G(t,e){var r=e?function(t){var r=[],n=!0;for(var i in e){var a=d.getFromId(t,i);if(r.push(i),-1!==(a.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;a._anchorAxis&amp;&amp;r.push(a._anchorAxis._id),a._matchGroup)for(var o in a._matchGroup)e[o]||r.push(o);a.automargin&amp;&amp;(n=!1)}return d.draw(t,r,{skipTitle:n})}:function(t){return d.draw(t,&quot;redraw&quot;)};t.push(b,k.doAutoRangeAndConstraints,r,k.drawData,k.finalDraw)}var Y=/^[xyz]axis[0-9]*\.range(\[[0|1]\])?$/,W=/^[xyz]axis[0-9]*\.autorange$/,X=/^[xyz]axis[0-9]*\.domain(\[[0|1]\])?$/;function Z(t,e){var r,n,i,a=t.layout,l=t._fullLayout,c=l._guiEditing,h=N(l._preGUI,c),p=Object.keys(e),g=d.list(t),m=o.extendDeepAll({},e),v={};for(V(e),p=Object.keys(e),n=0;n&lt;p.length;n++)if(0===p[n].indexOf(&quot;allaxes&quot;)){for(i=0;i&lt;g.length;i++){var y=g[i]._id.substr(1),x=-1!==y.indexOf(&quot;scene&quot;)?y+&quot;.&quot;:&quot;&quot;,b=p[n].replace(&quot;allaxes&quot;,x+g[i]._name);e[b]||(e[b]=e[p[n]])}delete e[p[n]]}var _=M.layoutFlags(),k={},S={};function E(t,r){if(Array.isArray(t))t.forEach((function(t){E(t,r)}));else if(!(t in e)&amp;&amp;!T.hasParent(e,t)){var n=h(a,t);t in S||(S[t]=B(n.get())),void 0!==r&amp;&amp;n.set(r)}}var C,L={};function I(t){var e=d.name2id(t.split(&quot;.&quot;)[0]);return L[e]=1,e}for(var P in e){if(T.hasParent(e,P))throw new Error(&quot;cannot set &quot;+P+&quot; and a parent attribute simultaneously&quot;);for(var z=h(a,P),O=e[P],D=z.parts.length-1;D&gt;0&amp;&amp;&quot;string&quot;!=typeof z.parts[D];)D--;var R=z.parts[D],F=z.parts[D-1]+&quot;.&quot;+R,j=z.parts.slice(0,D).join(&quot;.&quot;),U=s(t.layout,j).get(),q=s(l,j).get(),H=z.get();if(void 0!==O){k[P]=O,S[P]=&quot;reverse&quot;===R?O:B(H);var G=f.getLayoutValObject(l,z.parts);if(G&amp;&amp;G.impliedEdits&amp;&amp;null!==O)for(var Z in G.impliedEdits)E(o.relativeAttr(P,Z),G.impliedEdits[Z]);if(-1!==[&quot;width&quot;,&quot;height&quot;].indexOf(P))if(O){E(&quot;autosize&quot;,null);var K=&quot;height&quot;===P?&quot;width&quot;:&quot;height&quot;;E(K,l[K])}else l[P]=t._initialAutoSize[P];else if(&quot;autosize&quot;===P)E(&quot;width&quot;,O?null:l.width),E(&quot;height&quot;,O?null:l.height);else if(F.match(Y))I(F),s(l,j+&quot;._inputRange&quot;).set(null);else if(F.match(W)){I(F),s(l,j+&quot;._inputRange&quot;).set(null);var Q=s(l,j).get();Q._inputDomain&amp;&amp;(Q._input.domain=Q._inputDomain.slice())}else F.match(X)&amp;&amp;s(l,j+&quot;._inputDomain&quot;).set(null);if(&quot;type&quot;===R){C=U;var $=&quot;linear&quot;===q.type&amp;&amp;&quot;log&quot;===O,tt=&quot;log&quot;===q.type&amp;&amp;&quot;linear&quot;===O;if($||tt){if(C&amp;&amp;C.range)if(q.autorange)$&amp;&amp;(C.range=C.range[1]&gt;C.range[0]?[1,2]:[2,1]);else{var et=C.range[0],rt=C.range[1];$?(et&lt;=0&amp;&amp;rt&lt;=0&amp;&amp;E(j+&quot;.autorange&quot;,!0),et&lt;=0?et=rt/1e6:rt&lt;=0&amp;&amp;(rt=et/1e6),E(j+&quot;.range[0]&quot;,Math.log(et)/Math.LN10),E(j+&quot;.range[1]&quot;,Math.log(rt)/Math.LN10)):(E(j+&quot;.range[0]&quot;,Math.pow(10,et)),E(j+&quot;.range[1]&quot;,Math.pow(10,rt)))}else E(j+&quot;.autorange&quot;,!0);Array.isArray(l._subplots.polar)&amp;&amp;l._subplots.polar.length&amp;&amp;l[z.parts[0]]&amp;&amp;&quot;radialaxis&quot;===z.parts[1]&amp;&amp;delete l[z.parts[0]]._subplot.viewInitial[&quot;radialaxis.range&quot;],u.getComponentMethod(&quot;annotations&quot;,&quot;convertCoords&quot;)(t,q,O,E),u.getComponentMethod(&quot;images&quot;,&quot;convertCoords&quot;)(t,q,O,E)}else E(j+&quot;.autorange&quot;,!0),E(j+&quot;.range&quot;,null);s(l,j+&quot;._inputRange&quot;).set(null)}else if(R.match(A)){var nt=s(l,P).get(),it=(O||{}).type;it&amp;&amp;&quot;-&quot;!==it||(it=&quot;linear&quot;),u.getComponentMethod(&quot;annotations&quot;,&quot;convertCoords&quot;)(t,nt,it,E),u.getComponentMethod(&quot;images&quot;,&quot;convertCoords&quot;)(t,nt,it,E)}var at=w.containerArrayMatch(P);if(at){r=at.array,n=at.index;var ot=at.property,st=G||{editType:&quot;calc&quot;};&quot;&quot;!==n&amp;&amp;&quot;&quot;===ot&amp;&amp;(w.isAddVal(O)?S[P]=null:w.isRemoveVal(O)?S[P]=(s(a,r).get()||[])[n]:o.warn(&quot;unrecognized full object value&quot;,e)),M.update(_,st),v[r]||(v[r]={});var lt=v[r][n];lt||(lt=v[r][n]={}),lt[ot]=O,delete e[P]}else&quot;reverse&quot;===R?(U.range?U.range.reverse():(E(j+&quot;.autorange&quot;,!0),U.range=[1,0]),q.autorange?_.calc=!0:_.plot=!0):(l._has(&quot;scatter-like&quot;)&amp;&amp;l._has(&quot;regl&quot;)&amp;&amp;&quot;dragmode&quot;===P&amp;&amp;(&quot;lasso&quot;===O||&quot;select&quot;===O)&amp;&amp;&quot;lasso&quot;!==H&amp;&amp;&quot;select&quot;!==H||l._has(&quot;gl2d&quot;)?_.plot=!0:G?M.update(_,G):_.calc=!0,z.set(O))}}for(r in v){w.applyContainerArrayChanges(t,h(a,r),v[r],_,h)||(_.plot=!0)}for(var ct in L){var ut=(C=d.getFromId(t,ct))&amp;&amp;C._constraintGroup;if(ut)for(var ft in _.calc=!0,ut)L[ft]||(d.getFromId(t,ft)._constraintShrinkable=!0)}return(J(t)||e.height||e.width)&amp;&amp;(_.plot=!0),(_.plot||_.calc)&amp;&amp;(_.layoutReplot=!0),{flags:_,rangesAltered:L,undoit:S,redoit:k,eventData:m}}function J(t){var e=t._fullLayout,r=e.width,n=e.height;return t.layout.autosize&amp;&amp;h.plotAutoSize(t,t.layout,e),e.width!==r||e.height!==n}function K(t,e,n,i){if(t=o.getGraphDiv(t),T.clearPromiseQueue(t),t.framework&amp;&amp;t.framework.isPolar)return Promise.resolve(t);o.isPlainObject(e)||(e={}),o.isPlainObject(n)||(n={}),Object.keys(e).length&amp;&amp;(t.changed=!0),Object.keys(n).length&amp;&amp;(t.changed=!0);var a=T.coerceTraceIndices(t,i),s=U(t,o.extendFlat({},e),a),l=s.flags,u=Z(t,o.extendFlat({},n)),f=u.flags;(l.calc||f.calc)&amp;&amp;(t.calcdata=void 0),l.clearAxisTypes&amp;&amp;T.clearAxisTypes(t,a,n);var p=[];f.layoutReplot?p.push(k.layoutReplot):l.fullReplot?p.push(r.plot):(p.push(h.previousPromises),H(t,f,u)||h.supplyDefaults(t),l.style&amp;&amp;p.push(k.doTraceStyle),(l.colorbars||f.colorbars)&amp;&amp;p.push(k.doColorBars),f.legend&amp;&amp;p.push(k.doLegend),f.layoutstyle&amp;&amp;p.push(k.layoutStyles),f.axrange&amp;&amp;G(p,u.rangesAltered),f.ticks&amp;&amp;p.push(k.doTicksRelayout),f.modebar&amp;&amp;p.push(k.doModeBar),f.camera&amp;&amp;p.push(k.doCamera),p.push(E)),p.push(h.rehover,h.redrag),c.add(t,K,[t,s.undoit,u.undoit,s.traces],K,[t,s.redoit,u.redoit,s.traces]);var d=o.syncOrAsync(p,t);return d&amp;&amp;d.then||(d=Promise.resolve(t)),d.then((function(){return t.emit(&quot;plotly_update&quot;,{data:s.eventData,layout:u.eventData}),t}))}function Q(t){return function(e){e._fullLayout._guiEditing=!0;var r=t.apply(null,arguments);return e._fullLayout._guiEditing=!1,r}}var $=[{pattern:/^hiddenlabels/,attr:&quot;legend.uirevision&quot;},{pattern:/^((x|y)axis\d*)\.((auto)?range|title\.text)/},{pattern:/axis\d*\.showspikes$/,attr:&quot;modebar.uirevision&quot;},{pattern:/(hover|drag)mode$/,attr:&quot;modebar.uirevision&quot;},{pattern:/^(scene\d*)\.camera/},{pattern:/^(geo\d*)\.(projection|center|fitbounds)/},{pattern:/^(ternary\d*\.[abc]axis)\.(min|title\.text)$/},{pattern:/^(polar\d*\.radialaxis)\.((auto)?range|angle|title\.text)/},{pattern:/^(polar\d*\.angularaxis)\.rotation/},{pattern:/^(mapbox\d*)\.(center|zoom|bearing|pitch)/},{pattern:/^legend\.(x|y)$/,attr:&quot;editrevision&quot;},{pattern:/^(shapes|annotations)/,attr:&quot;editrevision&quot;},{pattern:/^title\.text$/,attr:&quot;editrevision&quot;}],tt=[{pattern:/^selectedpoints$/,attr:&quot;selectionrevision&quot;},{pattern:/(^|value\.)visible$/,attr:&quot;legend.uirevision&quot;},{pattern:/^dimensions\[\d+\]\.constraintrange/},{pattern:/^node\.(x|y|groups)/},{pattern:/^level$/},{pattern:/(^|value\.)name$/},{pattern:/colorbar\.title\.text$/},{pattern:/colorbar\.(x|y)$/,attr:&quot;editrevision&quot;}];function et(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r],i=t.match(n.pattern);if(i)return{head:i[1],attr:n.attr}}}function rt(t,e){var r=s(e,t).get();if(void 0!==r)return r;var n=t.split(&quot;.&quot;);for(n.pop();n.length&gt;1;)if(n.pop(),void 0!==(r=s(e,n.join(&quot;.&quot;)+&quot;.uirevision&quot;).get()))return r;return e.uirevision}function nt(t,e){for(var r=0;r&lt;e.length;r++)if(e[r]._fullInput.uid===t)return r;return-1}function it(t,e,r){for(var n=0;n&lt;e.length;n++)if(e[n].uid===t)return n;return!e[r]||e[r].uid?-1:r}function at(t,e){var r=o.isPlainObject(t),n=Array.isArray(t);return r||n?(r&amp;&amp;o.isPlainObject(e)||n&amp;&amp;Array.isArray(e))&amp;&amp;JSON.stringify(t)===JSON.stringify(e):t===e}function ot(t,e,r,n){var i,a,l,c=n.getValObject,u=n.flags,f=n.immutable,h=n.inArray,p=n.arrayIndex;function d(){var t=i.editType;h&amp;&amp;-1!==t.indexOf(&quot;arraydraw&quot;)?o.pushUnique(u.arrays[h],p):(M.update(u,i),&quot;none&quot;!==t&amp;&amp;u.nChanges++,n.transition&amp;&amp;i.anim&amp;&amp;u.nChangesAnim++,(Y.test(l)||W.test(l))&amp;&amp;(u.rangesAltered[r[0]]=1),X.test(l)&amp;&amp;s(e,&quot;_inputDomain&quot;).set(null),&quot;datarevision&quot;===a&amp;&amp;(u.newDataRevision=1))}function g(t){return&quot;data_array&quot;===t.valType||t.arrayOk}for(a in t){if(u.calc&amp;&amp;!n.transition)return;var m=t[a],v=e[a],y=r.concat(a);if(l=y.join(&quot;.&quot;),&quot;_&quot;!==a.charAt(0)&amp;&amp;&quot;function&quot;!=typeof m&amp;&amp;m!==v){if((&quot;tick0&quot;===a||&quot;dtick&quot;===a)&amp;&amp;&quot;geo&quot;!==r[0]){var x=e.tickmode;if(&quot;auto&quot;===x||&quot;array&quot;===x||!x)continue}if((&quot;range&quot;!==a||!e.autorange)&amp;&amp;(&quot;zmin&quot;!==a&amp;&amp;&quot;zmax&quot;!==a||&quot;contourcarpet&quot;!==e.type)&amp;&amp;(i=c(y))&amp;&amp;(!i._compareAsJSON||JSON.stringify(m)!==JSON.stringify(v))){var b,_=i.valType,w=g(i),T=Array.isArray(m),k=Array.isArray(v);if(T&amp;&amp;k){var A=&quot;_input_&quot;+a,S=t[A],E=e[A];if(Array.isArray(S)&amp;&amp;S===E)continue}if(void 0===v)w&amp;&amp;T?u.calc=!0:d();else if(i._isLinkedToArray){var C=[],L=!1;h||(u.arrays[a]=C);var I=Math.min(m.length,v.length),P=Math.max(m.length,v.length);if(I!==P){if(&quot;arraydraw&quot;!==i.editType){d();continue}L=!0}for(b=0;b&lt;I;b++)ot(m[b],v[b],y.concat(b),o.extendFlat({inArray:a,arrayIndex:b},n));if(L)for(b=I;b&lt;P;b++)C.push(b)}else!_&amp;&amp;o.isPlainObject(m)?ot(m,v,y,n):w?T&amp;&amp;k?(f&amp;&amp;(u.calc=!0),(f||n.newDataRevision)&amp;&amp;d()):T!==k?u.calc=!0:d():T&amp;&amp;k&amp;&amp;m.length===v.length&amp;&amp;String(m)===String(v)||d()}}}for(a in e)if(!(a in t)&amp;&amp;&quot;_&quot;!==a.charAt(0)&amp;&amp;&quot;function&quot;!=typeof e[a]){if(g(i=c(r.concat(a)))&amp;&amp;Array.isArray(e[a]))return void(u.calc=!0);d()}}function st(t){var e=t._fullLayout,r=t.getBoundingClientRect();if(!o.equalDomRects(r,e._lastBBox)){var n=e._invTransform=o.inverseTransformMatrix(o.getFullTransformMatrix(t));e._invScaleX=Math.sqrt(n[0][0]*n[0][0]+n[0][1]*n[0][1]+n[0][2]*n[0][2]),e._invScaleY=Math.sqrt(n[1][0]*n[1][0]+n[1][1]*n[1][1]+n[1][2]*n[1][2]),e._lastBBox=r}}function lt(t){var e=n.select(t),r=t._fullLayout;if(r._calcInverseTransform=st,r._calcInverseTransform(t),r._container=e.selectAll(&quot;.plot-container&quot;).data([0]),r._container.enter().insert(&quot;div&quot;,&quot;:first-child&quot;).classed(&quot;plot-container&quot;,!0).classed(&quot;plotly&quot;,!0),r._paperdiv=r._container.selectAll(&quot;.svg-container&quot;).data([0]),r._paperdiv.enter().append(&quot;div&quot;).classed(&quot;user-select-none&quot;,!0).classed(&quot;svg-container&quot;,!0).style(&quot;position&quot;,&quot;relative&quot;),r._glcontainer=r._paperdiv.selectAll(&quot;.gl-container&quot;).data([{}]),r._glcontainer.enter().append(&quot;div&quot;).classed(&quot;gl-container&quot;,!0),r._paperdiv.selectAll(&quot;.main-svg&quot;).remove(),r._paperdiv.select(&quot;.modebar-container&quot;).remove(),r._paper=r._paperdiv.insert(&quot;svg&quot;,&quot;:first-child&quot;).classed(&quot;main-svg&quot;,!0),r._toppaper=r._paperdiv.append(&quot;svg&quot;).classed(&quot;main-svg&quot;,!0),r._modebardiv=r._paperdiv.append(&quot;div&quot;),delete r._modeBar,r._hoverpaper=r._paperdiv.append(&quot;svg&quot;).classed(&quot;main-svg&quot;,!0),!r._uid){var i={};n.selectAll(&quot;defs&quot;).each((function(){this.id&amp;&amp;(i[this.id.split(&quot;-&quot;)[1]]=1)})),r._uid=o.randstr(i)}r._paperdiv.selectAll(&quot;.main-svg&quot;).attr(y.svgAttrs),r._defs=r._paper.append(&quot;defs&quot;).attr(&quot;id&quot;,&quot;defs-&quot;+r._uid),r._clips=r._defs.append(&quot;g&quot;).classed(&quot;clips&quot;,!0),r._topdefs=r._toppaper.append(&quot;defs&quot;).attr(&quot;id&quot;,&quot;topdefs-&quot;+r._uid),r._topclips=r._topdefs.append(&quot;g&quot;).classed(&quot;clips&quot;,!0),r._bgLayer=r._paper.append(&quot;g&quot;).classed(&quot;bglayer&quot;,!0),r._draggers=r._paper.append(&quot;g&quot;).classed(&quot;draglayer&quot;,!0);var a=r._paper.append(&quot;g&quot;).classed(&quot;layer-below&quot;,!0);r._imageLowerLayer=a.append(&quot;g&quot;).classed(&quot;imagelayer&quot;,!0),r._shapeLowerLayer=a.append(&quot;g&quot;).classed(&quot;shapelayer&quot;,!0),r._cartesianlayer=r._paper.append(&quot;g&quot;).classed(&quot;cartesianlayer&quot;,!0),r._polarlayer=r._paper.append(&quot;g&quot;).classed(&quot;polarlayer&quot;,!0),r._ternarylayer=r._paper.append(&quot;g&quot;).classed(&quot;ternarylayer&quot;,!0),r._geolayer=r._paper.append(&quot;g&quot;).classed(&quot;geolayer&quot;,!0),r._funnelarealayer=r._paper.append(&quot;g&quot;).classed(&quot;funnelarealayer&quot;,!0),r._pielayer=r._paper.append(&quot;g&quot;).classed(&quot;pielayer&quot;,!0),r._treemaplayer=r._paper.append(&quot;g&quot;).classed(&quot;treemaplayer&quot;,!0),r._sunburstlayer=r._paper.append(&quot;g&quot;).classed(&quot;sunburstlayer&quot;,!0),r._indicatorlayer=r._toppaper.append(&quot;g&quot;).classed(&quot;indicatorlayer&quot;,!0),r._glimages=r._paper.append(&quot;g&quot;).classed(&quot;glimages&quot;,!0);var s=r._toppaper.append(&quot;g&quot;).classed(&quot;layer-above&quot;,!0);r._imageUpperLayer=s.append(&quot;g&quot;).classed(&quot;imagelayer&quot;,!0),r._shapeUpperLayer=s.append(&quot;g&quot;).classed(&quot;shapelayer&quot;,!0),r._infolayer=r._toppaper.append(&quot;g&quot;).classed(&quot;infolayer&quot;,!0),r._menulayer=r._toppaper.append(&quot;g&quot;).classed(&quot;menulayer&quot;,!0),r._zoomlayer=r._toppaper.append(&quot;g&quot;).classed(&quot;zoomlayer&quot;,!0),r._hoverlayer=r._hoverpaper.append(&quot;g&quot;).classed(&quot;hoverlayer&quot;,!0),r._modebardiv.classed(&quot;modebar-container&quot;,!0).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;top&quot;,&quot;0px&quot;).style(&quot;right&quot;,&quot;0px&quot;),t.emit(&quot;plotly_framework&quot;)}r.animate=function(t,e,r){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t+&quot;. It's likely that you've failed to create a plot before animating it. For more details, see https://plotly.com/javascript/animations/&quot;);var n=t._transitionData;n._frameQueue||(n._frameQueue=[]);var i=(r=h.supplyAnimationDefaults(r)).transition,a=r.frame;function s(t){return Array.isArray(i)?t&gt;=i.length?i[0]:i[t]:i}function l(t){return Array.isArray(a)?t&gt;=a.length?a[0]:a[t]:a}function c(t,e){var r=0;return function(){if(t&amp;&amp;++r===e)return t()}}return void 0===n._frameWaitingCnt&amp;&amp;(n._frameWaitingCnt=0),new Promise((function(a,u){function f(){n._currentFrame&amp;&amp;n._currentFrame.onComplete&amp;&amp;n._currentFrame.onComplete();var e=n._currentFrame=n._frameQueue.shift();if(e){var r=e.name?e.name.toString():null;t._fullLayout._currentFrame=r,n._lastFrameAt=Date.now(),n._timeToNext=e.frameOpts.duration,h.transition(t,e.frame.data,e.frame.layout,T.coerceTraceIndices(t,e.frame.traces),e.frameOpts,e.transitionOpts).then((function(){e.onComplete&amp;&amp;e.onComplete()})),t.emit(&quot;plotly_animatingframe&quot;,{name:r,frame:e.frame,animation:{frame:e.frameOpts,transition:e.transitionOpts}})}else t.emit(&quot;plotly_animated&quot;),window.cancelAnimationFrame(n._animationRaf),n._animationRaf=null}function p(){t.emit(&quot;plotly_animating&quot;),n._lastFrameAt=-1/0,n._timeToNext=0,n._runningTransitions=0,n._currentFrame=null;var e=function(){n._animationRaf=window.requestAnimationFrame(e),Date.now()-n._lastFrameAt&gt;n._timeToNext&amp;&amp;f()};e()}var d,g,m=0;function v(t){return Array.isArray(i)?m&gt;=i.length?t.transitionOpts=i[m]:t.transitionOpts=i[0]:t.transitionOpts=i,m++,t}var y=[],x=null==e,b=Array.isArray(e);if(!x&amp;&amp;!b&amp;&amp;o.isPlainObject(e))y.push({type:&quot;object&quot;,data:v(o.extendFlat({},e))});else if(x||-1!==[&quot;string&quot;,&quot;number&quot;].indexOf(typeof e))for(d=0;d&lt;n._frames.length;d++)(g=n._frames[d])&amp;&amp;(x||String(g.group)===String(e))&amp;&amp;y.push({type:&quot;byname&quot;,name:String(g.name),data:v({name:g.name})});else if(b)for(d=0;d&lt;e.length;d++){var _=e[d];-1!==[&quot;number&quot;,&quot;string&quot;].indexOf(typeof _)?(_=String(_),y.push({type:&quot;byname&quot;,name:_,data:v({name:_})})):o.isPlainObject(_)&amp;&amp;y.push({type:&quot;object&quot;,data:v(o.extendFlat({},_))})}for(d=0;d&lt;y.length;d++)if(&quot;byname&quot;===(g=y[d]).type&amp;&amp;!n._frameHash[g.data.name])return o.warn('animate failure: frame not found: &quot;'+g.data.name+'&quot;'),void u();-1!==[&quot;next&quot;,&quot;immediate&quot;].indexOf(r.mode)&amp;&amp;function(){if(0!==n._frameQueue.length){for(;n._frameQueue.length;){var e=n._frameQueue.pop();e.onInterrupt&amp;&amp;e.onInterrupt()}t.emit(&quot;plotly_animationinterrupted&quot;,[])}}(),&quot;reverse&quot;===r.direction&amp;&amp;y.reverse();var w=t._fullLayout._currentFrame;if(w&amp;&amp;r.fromcurrent){var k=-1;for(d=0;d&lt;y.length;d++)if(&quot;byname&quot;===(g=y[d]).type&amp;&amp;g.name===w){k=d;break}if(k&gt;0&amp;&amp;k&lt;y.length-1){var M=[];for(d=0;d&lt;y.length;d++)g=y[d],(&quot;byname&quot;!==y[d].type||d&gt;k)&amp;&amp;M.push(g);y=M}}y.length&gt;0?function(e){if(0!==e.length){for(var i=0;i&lt;e.length;i++){var o;o=&quot;byname&quot;===e[i].type?h.computeFrame(t,e[i].name):e[i].data;var f=l(i),d=s(i);d.duration=Math.min(d.duration,f.duration);var g={frame:o,name:e[i].name,frameOpts:f,transitionOpts:d};i===e.length-1&amp;&amp;(g.onComplete=c(a,2),g.onInterrupt=u),n._frameQueue.push(g)}&quot;immediate&quot;===r.mode&amp;&amp;(n._lastFrameAt=-1/0),n._animationRaf||p()}}(y):(t.emit(&quot;plotly_animated&quot;),a())}))},r.addFrames=function(t,e,r){if(t=o.getGraphDiv(t),null==e)return Promise.resolve();if(!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t+&quot;. It's likely that you've failed to create a plot before adding frames. For more details, see https://plotly.com/javascript/animations/&quot;);var n,i,a,s,l=t._transitionData._frames,u=t._transitionData._frameHash;if(!Array.isArray(e))throw new Error(&quot;addFrames failure: frameList must be an Array of frame definitions&quot;+e);var f=l.length+2*e.length,p=[],d={};for(n=e.length-1;n&gt;=0;n--)if(o.isPlainObject(e[n])){var g=e[n].name,m=(u[g]||d[g]||{}).name,v=e[n].name,y=u[m]||d[m];m&amp;&amp;v&amp;&amp;&quot;number&quot;==typeof v&amp;&amp;y&amp;&amp;S&lt;5&amp;&amp;(S++,o.warn('addFrames: overwriting frame &quot;'+(u[m]||d[m]).name+'&quot; with a frame whose name of type &quot;number&quot; also equates to &quot;'+m+'&quot;. This is valid but may potentially lead to unexpected behavior since all plotly.js frame names are stored internally as strings.'),5===S&amp;&amp;o.warn(&quot;addFrames: This API call has yielded too many of these warnings. For the rest of this call, further warnings about numeric frame names will be suppressed.&quot;)),d[g]={name:g},p.push({frame:h.supplyFrameDefaults(e[n]),index:r&amp;&amp;void 0!==r[n]&amp;&amp;null!==r[n]?r[n]:f+n})}p.sort((function(t,e){return t.index&gt;e.index?-1:t.index&lt;e.index?1:0}));var x=[],b=[],_=l.length;for(n=p.length-1;n&gt;=0;n--){if(&quot;number&quot;==typeof(i=p[n].frame).name&amp;&amp;o.warn(&quot;Warning: addFrames accepts frames with numeric names, but the numbers areimplicitly cast to strings&quot;),!i.name)for(;u[i.name=&quot;frame &quot;+t._transitionData._counter++];);if(u[i.name]){for(a=0;a&lt;l.length&amp;&amp;(l[a]||{}).name!==i.name;a++);x.push({type:&quot;replace&quot;,index:a,value:i}),b.unshift({type:&quot;replace&quot;,index:a,value:l[a]})}else s=Math.max(0,Math.min(p[n].index,_)),x.push({type:&quot;insert&quot;,index:s,value:i}),b.unshift({type:&quot;delete&quot;,index:s}),_++}var w=h.modifyFrames,T=h.modifyFrames,k=[t,b],M=[t,x];return c&amp;&amp;c.add(t,w,k,T,M),h.modifyFrames(t,x)},r.deleteFrames=function(t,e){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t);var r,n,i=t._transitionData._frames,a=[],s=[];if(!e)for(e=[],r=0;r&lt;i.length;r++)e.push(r);for((e=e.slice()).sort(),r=e.length-1;r&gt;=0;r--)n=e[r],a.push({type:&quot;delete&quot;,index:n}),s.unshift({type:&quot;insert&quot;,index:n,value:i[n]});var l=h.modifyFrames,u=h.modifyFrames,f=[t,s],p=[t,a];return c&amp;&amp;c.add(t,l,f,u,p),h.modifyFrames(t,a)},r.addTraces=function t(e,n,i){e=o.getGraphDiv(e);var a,s,l=[],u=r.deleteTraces,f=t,h=[e,l],p=[e,n];for(function(t,e,r){var n,i;if(!Array.isArray(t.data))throw new Error(&quot;gd.data must be an array.&quot;);if(&quot;undefined&quot;==typeof e)throw new Error(&quot;traces must be defined.&quot;);for(Array.isArray(e)||(e=[e]),n=0;n&lt;e.length;n++)if(&quot;object&quot;!=typeof(i=e[n])||Array.isArray(i)||null===i)throw new Error(&quot;all values in traces array must be non-array objects&quot;);if(&quot;undefined&quot;==typeof r||Array.isArray(r)||(r=[r]),&quot;undefined&quot;!=typeof r&amp;&amp;r.length!==e.length)throw new Error(&quot;if indices is specified, traces.length must equal indices.length&quot;)}(e,n,i),Array.isArray(n)||(n=[n]),n=n.map((function(t){return o.extendFlat({},t)})),T.cleanData(n),a=0;a&lt;n.length;a++)e.data.push(n[a]);for(a=0;a&lt;n.length;a++)l.push(-n.length+a);if(&quot;undefined&quot;==typeof i)return s=r.redraw(e),c.add(e,u,h,f,p),s;Array.isArray(i)||(i=[i]);try{O(e,l,i)}catch(t){throw e.data.splice(e.data.length-n.length,n.length),t}return c.startSequence(e),c.add(e,u,h,f,p),s=r.moveTraces(e,l,i),c.stopSequence(e),s},r.deleteTraces=function t(e,n){e=o.getGraphDiv(e);var i,a,s=[],l=r.addTraces,u=t,f=[e,s,n],h=[e,n];if(&quot;undefined&quot;==typeof n)throw new Error(&quot;indices must be an integer or array of integers.&quot;);for(Array.isArray(n)||(n=[n]),z(e,n,&quot;indices&quot;),(n=P(n,e.data.length-1)).sort(o.sorterDes),i=0;i&lt;n.length;i+=1)a=e.data.splice(n[i],1)[0],s.push(a);var p=r.redraw(e);return c.add(e,l,f,u,h),p},r.extendTraces=function t(e,n,i,a){function s(t,e,r){var n,i;if(o.isTypedArray(t))if(r&lt;0){var a=new t.constructor(0),s=R(t,e);r&lt;0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r&lt;e.length){var l=e.length-r;n.set(e.subarray(l)),i.set(t),i.set(e.subarray(0,l),t.length)}else{var c=r-e.length,u=t.length-c;n.set(t.subarray(u)),n.set(e,c),i.set(t.subarray(0,u))}else n=t.concat(e),i=r&gt;=0&amp;&amp;r&lt;n.length?n.splice(0,n.length-r):[];return[n,i]}var l=D(e=o.getGraphDiv(e),n,i,a,s),u=r.redraw(e),f=[e,l.update,i,l.maxPoints];return c.add(e,r.prependTraces,f,t,arguments),u},r.moveTraces=function t(e,n,i){var a,s=[],l=[],u=t,f=t,h=[e=o.getGraphDiv(e),i,n],p=[e,n,i];if(O(e,n,i),n=Array.isArray(n)?n:[n],&quot;undefined&quot;==typeof i)for(i=[],a=0;a&lt;n.length;a++)i.push(-n.length+a);for(i=Array.isArray(i)?i:[i],n=P(n,e.data.length-1),i=P(i,e.data.length-1),a=0;a&lt;e.data.length;a++)-1===n.indexOf(a)&amp;&amp;s.push(e.data[a]);for(a=0;a&lt;n.length;a++)l.push({newIndex:i[a],trace:e.data[n[a]]});for(l.sort((function(t,e){return t.newIndex-e.newIndex})),a=0;a&lt;l.length;a+=1)s.splice(l[a].newIndex,0,l[a].trace);e.data=s;var d=r.redraw(e);return c.add(e,u,h,f,p),d},r.prependTraces=function t(e,n,i,a){function s(t,e,r){var n,i;if(o.isTypedArray(t))if(r&lt;=0){var a=new t.constructor(0),s=R(e,t);r&lt;0?(n=s,i=a):(n=a,i=s)}else if(n=new t.constructor(r),i=new t.constructor(t.length+e.length-r),r===e.length)n.set(e),i.set(t);else if(r&lt;e.length){var l=e.length-r;n.set(e.subarray(0,l)),i.set(e.subarray(l)),i.set(t,l)}else{var c=r-e.length;n.set(e),n.set(t.subarray(0,c),e.length),i.set(t.subarray(c))}else n=e.concat(t),i=r&gt;=0&amp;&amp;r&lt;n.length?n.splice(r,n.length):[];return[n,i]}var l=D(e=o.getGraphDiv(e),n,i,a,s),u=r.redraw(e),f=[e,l.update,i,l.maxPoints];return c.add(e,r.extendTraces,f,t,arguments),u},r.newPlot=function(t,e,n,i){return t=o.getGraphDiv(t),h.cleanPlot([],{},t._fullData||[],t._fullLayout||{}),h.purge(t),r.plot(t,e,n,i)},r.plot=function(t,e,i,a){var s;if(t=o.getGraphDiv(t),l.init(t),o.isPlainObject(e)){var c=e;e=c.data,i=c.layout,a=c.config,s=c.frames}if(!1===l.triggerHandler(t,&quot;plotly_beforeplot&quot;,[e,i,a]))return Promise.reject();e||i||o.isPlotDiv(t)||o.warn(&quot;Calling Plotly.plot as if redrawing but this container doesn't yet have a plot.&quot;,t),I(t,a),i||(i={}),n.select(t).classed(&quot;js-plotly-plot&quot;,!0),g.makeTester(),Array.isArray(t._promises)||(t._promises=[]);var f=0===(t.data||[]).length&amp;&amp;Array.isArray(e);Array.isArray(e)&amp;&amp;(T.cleanData(e),f?t.data=e:t.data.push.apply(t.data,e),t.empty=!1),t.layout&amp;&amp;!f||(t.layout=T.cleanLayout(i)),h.supplyDefaults(t);var m=t._fullLayout,y=m._has(&quot;cartesian&quot;);if(!m._has(&quot;polar&quot;)&amp;&amp;e&amp;&amp;e[0]&amp;&amp;e[0].r)return o.log(&quot;Legacy polar charts are deprecated!&quot;),function(t,e,r){var i=n.select(t).selectAll(&quot;.plot-container&quot;).data([0]);i.enter().insert(&quot;div&quot;,&quot;:first-child&quot;).classed(&quot;plot-container plotly&quot;,!0);var a=i.selectAll(&quot;.svg-container&quot;).data([0]);a.enter().append(&quot;div&quot;).classed(&quot;svg-container&quot;,!0).style(&quot;position&quot;,&quot;relative&quot;),a.html(&quot;&quot;),e&amp;&amp;(t.data=e);r&amp;&amp;(t.layout=r);p.manager.fillLayout(t),a.style({width:t._fullLayout.width+&quot;px&quot;,height:t._fullLayout.height+&quot;px&quot;}),t.framework=p.manager.framework(t),t.framework({data:t.data,layout:t.layout},a.node()),t.framework.setUndoPoint();var s=t.framework.svg(),l=1,c=t._fullLayout.title?t._fullLayout.title.text:&quot;&quot;;&quot;&quot;!==c&amp;&amp;c||(l=0);var u=function(){this.call(x.convertToTspans,t)},f=s.select(&quot;.title-group text&quot;).call(u);if(t._context.edits.titleText){var d=o._(t,&quot;Click to enter Plot title&quot;);c&amp;&amp;c!==d||(l=.2,f.attr({&quot;data-unformatted&quot;:d}).text(d).style({opacity:l}).on(&quot;mouseover.opacity&quot;,(function(){n.select(this).transition().duration(100).style(&quot;opacity&quot;,1)})).on(&quot;mouseout.opacity&quot;,(function(){n.select(this).transition().duration(1e3).style(&quot;opacity&quot;,0)})));var g=function(){this.call(x.makeEditable,{gd:t}).on(&quot;edit&quot;,(function(e){t.framework({layout:{title:{text:e}}}),this.text(e).call(u),this.call(g)})).on(&quot;cancel&quot;,(function(){var t=this.attr(&quot;data-unformatted&quot;);this.text(t).call(u)}))};f.call(g)}return t._context.setBackground(t,t._fullLayout.paper_bgcolor),h.addLinks(t),Promise.resolve()}(t,e,i);m._replotting=!0,(f||m._shouldCreateBgLayer)&amp;&amp;(lt(t),m._shouldCreateBgLayer&amp;&amp;delete m._shouldCreateBgLayer),t.framework!==lt&amp;&amp;(t.framework=lt,lt(t)),g.initGradients(t),f&amp;&amp;d.saveShowSpikeInitial(t);var b=!t.calcdata||t.calcdata.length!==(t._fullData||[]).length;b&amp;&amp;h.doCalcdata(t);for(var _=0;_&lt;t.calcdata.length;_++)t.calcdata[_][0].trace=t._fullData[_];t._context.responsive?t._responsiveChartHandler||(t._responsiveChartHandler=function(){o.isHidden(t)||h.resize(t)},window.addEventListener(&quot;resize&quot;,t._responsiveChartHandler)):o.clearResponsive(t);var w=o.extendFlat({},m._size),M=0;function A(){if(h.clearAutoMarginIds(t),k.drawMarginPushers(t),d.allowAutoMargin(t),m._has(&quot;pie&quot;))for(var e=t._fullData,r=0;r&lt;e.length;r++){var n=e[r];&quot;pie&quot;===n.type&amp;&amp;n.automargin&amp;&amp;h.allowAutoMargin(t,&quot;pie.&quot;+n.uid+&quot;.automargin&quot;)}return h.doAutoMargin(t),h.previousPromises(t)}function S(){t._transitioning||(k.doAutoRangeAndConstraints(t),f&amp;&amp;d.saveRangeInitial(t),u.getComponentMethod(&quot;rangeslider&quot;,&quot;calcAutorange&quot;)(t))}var C=[h.previousPromises,function(){if(s)return r.addFrames(t,s)},function e(){for(var r=m._basePlotModules,n=0;n&lt;r.length;n++)r[n].drawFramework&amp;&amp;r[n].drawFramework(t);if(!m._glcanvas&amp;&amp;m._has(&quot;gl&quot;)&amp;&amp;(m._glcanvas=m._glcontainer.selectAll(&quot;.gl-canvas&quot;).data([{key:&quot;contextLayer&quot;,context:!0,pick:!1},{key:&quot;focusLayer&quot;,context:!1,pick:!1},{key:&quot;pickLayer&quot;,context:!1,pick:!0}],(function(t){return t.key})),m._glcanvas.enter().append(&quot;canvas&quot;).attr(&quot;class&quot;,(function(t){return&quot;gl-canvas gl-canvas-&quot;+t.key.replace(&quot;Layer&quot;,&quot;&quot;)})).style({position:&quot;absolute&quot;,top:0,left:0,overflow:&quot;visible&quot;,&quot;pointer-events&quot;:&quot;none&quot;})),m._glcanvas){m._glcanvas.attr(&quot;width&quot;,m.width).attr(&quot;height&quot;,m.height);var i=m._glcanvas.data()[0].regl;if(i&amp;&amp;(Math.floor(m.width)!==i._gl.drawingBufferWidth||Math.floor(m.height)!==i._gl.drawingBufferHeight)){var a=&quot;WebGL context buffer and canvas dimensions do not match due to browser/WebGL bug.&quot;;if(!M)return o.log(a+&quot; Clearing graph and plotting again.&quot;),h.cleanPlot([],{},t._fullData,m),h.supplyDefaults(t),m=t._fullLayout,h.doCalcdata(t),M++,e();o.error(a)}}return&quot;h&quot;===m.modebar.orientation?m._modebardiv.style(&quot;height&quot;,null).style(&quot;width&quot;,&quot;100%&quot;):m._modebardiv.style(&quot;width&quot;,null).style(&quot;height&quot;,m.height+&quot;px&quot;),h.previousPromises(t)},A,function(){if(h.didMarginChange(w,m._size))return o.syncOrAsync([A,k.layoutStyles],t)}];y&amp;&amp;C.push((function(){if(b)return o.syncOrAsync([u.getComponentMethod(&quot;shapes&quot;,&quot;calcAutorange&quot;),u.getComponentMethod(&quot;annotations&quot;,&quot;calcAutorange&quot;),S],t);S()})),C.push(k.layoutStyles),y&amp;&amp;C.push((function(){return d.draw(t,f?&quot;&quot;:&quot;redraw&quot;)}),(function(t){t._fullLayout._insideTickLabelsAutorange&amp;&amp;q(t,t._fullLayout._insideTickLabelsAutorange).then((function(){t._fullLayout._insideTickLabelsAutorange=void 0}))})),C.push(k.drawData,k.finalDraw,v,h.addLinks,h.rehover,h.redrag,h.doAutoMargin,(function(t){t._fullLayout._insideTickLabelsAutorange&amp;&amp;f&amp;&amp;d.saveRangeInitial(t,!0)}),h.previousPromises);var L=o.syncOrAsync(C,t);return L&amp;&amp;L.then||(L=Promise.resolve()),L.then((function(){return E(t),t}))},r.purge=function(t){var e=(t=o.getGraphDiv(t))._fullLayout||{},r=t._fullData||[];return h.cleanPlot([],{},r,e),h.purge(t),l.purge(t),e._container&amp;&amp;e._container.remove(),delete t._context,t},r.react=function(t,e,n,i){var a,l;t=o.getGraphDiv(t),T.clearPromiseQueue(t);var c=t._fullData,p=t._fullLayout;if(o.isPlotDiv(t)&amp;&amp;c&amp;&amp;p){if(o.isPlainObject(e)){var d=e;e=d.data,n=d.layout,i=d.config,a=d.frames}var g=!1;if(i){var m=o.extendDeep({},t._context);t._context=void 0,I(t,i),g=function t(e,r){var n;for(n in e)if(&quot;_&quot;!==n.charAt(0)){var i=e[n],a=r[n];if(i!==a)if(o.isPlainObject(i)&amp;&amp;o.isPlainObject(a)){if(t(i,a))return!0}else{if(!Array.isArray(i)||!Array.isArray(a))return!0;if(i.length!==a.length)return!0;for(var s=0;s&lt;i.length;s++)if(i[s]!==a[s]){if(!o.isPlainObject(i[s])||!o.isPlainObject(a[s]))return!0;if(t(i[s],a[s]))return!0}}}}(m,t._context)}t.data=e||[],T.cleanData(t.data),t.layout=n||{},T.cleanLayout(t.layout),function(t,e,r,n){var i,a,l,c,u,f,h,p,d=n._preGUI,g=[],m={};for(i in d){if(u=et(i,$)){if(a=u.attr||u.head+&quot;.uirevision&quot;,(c=(l=s(n,a).get())&amp;&amp;rt(a,e))&amp;&amp;c===l&amp;&amp;(null===(f=d[i])&amp;&amp;(f=void 0),at(p=(h=s(e,i)).get(),f))){void 0===p&amp;&amp;&quot;autorange&quot;===i.substr(i.length-9)&amp;&amp;g.push(i.substr(0,i.length-10)),h.set(B(s(n,i).get()));continue}}else o.warn(&quot;unrecognized GUI edit: &quot;+i);delete d[i],&quot;range[&quot;===i.substr(i.length-8,6)&amp;&amp;(m[i.substr(0,i.length-9)]=1)}for(var v=0;v&lt;g.length;v++){var y=g[v];if(m[y]){var x=s(e,y).get();x&amp;&amp;delete x.autorange}}var b=n._tracePreGUI;for(var _ in b){var w,T=b[_],k=null;for(i in T){if(!k){var M=nt(_,r);if(M&lt;0){delete b[_];break}var A=it(_,t,(w=r[M]._fullInput).index);if(A&lt;0){delete b[_];break}k=t[A]}if(u=et(i,tt)){if(u.attr?c=(l=s(n,u.attr).get())&amp;&amp;rt(u.attr,e):(l=w.uirevision,void 0===(c=k.uirevision)&amp;&amp;(c=e.uirevision)),c&amp;&amp;c===l&amp;&amp;(null===(f=T[i])&amp;&amp;(f=void 0),at(p=(h=s(k,i)).get(),f))){h.set(B(s(w,i).get()));continue}}else o.warn(&quot;unrecognized GUI edit: &quot;+i+&quot; in trace uid &quot;+_);delete T[i]}}}(t.data,t.layout,c,p),h.supplyDefaults(t,{skipUpdateCalc:!0});var v=t._fullData,y=t._fullLayout,x=void 0===y.datarevision,b=y.transition,_=function(t,e,r,n,i){var a=M.layoutFlags();function o(t){return f.getLayoutValObject(r,t)}a.arrays={},a.rangesAltered={},a.nChanges=0,a.nChangesAnim=0,ot(e,r,[],{getValObject:o,flags:a,immutable:n,transition:i,gd:t}),(a.plot||a.calc)&amp;&amp;(a.layoutReplot=!0);i&amp;&amp;a.nChanges&amp;&amp;a.nChangesAnim&amp;&amp;(a.anim=a.nChanges===a.nChangesAnim?&quot;all&quot;:&quot;some&quot;);return a}(t,p,y,x,b),w=_.newDataRevision,A=function(t,e,r,n,i,a){var o=e.length===r.length;if(!i&amp;&amp;!o)return{fullReplot:!0,calc:!0};var s,l,c=M.traceFlags();c.arrays={},c.nChanges=0,c.nChangesAnim=0;var u={getValObject:function(t){var e=f.getTraceValObject(l,t);return!l._module.animatable&amp;&amp;e.anim&amp;&amp;(e.anim=!1),e},flags:c,immutable:n,transition:i,newDataRevision:a,gd:t},p={};for(s=0;s&lt;e.length;s++)if(r[s]){if(l=r[s]._fullInput,h.hasMakesDataTransform(l)&amp;&amp;(l=r[s]),p[l.uid])continue;p[l.uid]=1,ot(e[s]._fullInput,l,[],u)}(c.calc||c.plot)&amp;&amp;(c.fullReplot=!0);i&amp;&amp;c.nChanges&amp;&amp;c.nChangesAnim&amp;&amp;(c.anim=c.nChanges===c.nChangesAnim&amp;&amp;o?&quot;all&quot;:&quot;some&quot;);return c}(t,c,v,x,b,w);if(J(t)&amp;&amp;(_.layoutReplot=!0),A.calc||_.calc){t.calcdata=void 0;for(var S=Object.getOwnPropertyNames(y),C=0;C&lt;S.length;C++){var L=S[C],P=L.substring(0,5);if(&quot;xaxis&quot;===P||&quot;yaxis&quot;===P){var z=y[L]._emptyCategories;z&amp;&amp;z()}}}else h.supplyDefaultsUpdateCalc(t.calcdata,v);var O=[];if(a&amp;&amp;(t._transitionData={},h.createTransitionData(t),O.push((function(){return r.addFrames(t,a)}))),y.transition&amp;&amp;!g&amp;&amp;(A.anim||_.anim))_.ticks&amp;&amp;O.push(k.doTicksRelayout),h.doCalcdata(t),k.doAutoRangeAndConstraints(t),O.push((function(){return h.transitionFromReact(t,A,_,p)}));else if(A.fullReplot||_.layoutReplot||g)t._fullLayout._skipDefaults=!0,O.push(r.plot);else{for(var D in _.arrays){var R=_.arrays[D];if(R.length){var F=u.getComponentMethod(D,&quot;drawOne&quot;);if(F!==o.noop)for(var N=0;N&lt;R.length;N++)F(t,R[N]);else{var j=u.getComponentMethod(D,&quot;draw&quot;);if(j===o.noop)throw new Error(&quot;cannot draw components: &quot;+D);j(t)}}}O.push(h.previousPromises),A.style&amp;&amp;O.push(k.doTraceStyle),(A.colorbars||_.colorbars)&amp;&amp;O.push(k.doColorBars),_.legend&amp;&amp;O.push(k.doLegend),_.layoutstyle&amp;&amp;O.push(k.layoutStyles),_.axrange&amp;&amp;G(O),_.ticks&amp;&amp;O.push(k.doTicksRelayout),_.modebar&amp;&amp;O.push(k.doModeBar),_.camera&amp;&amp;O.push(k.doCamera),O.push(E)}O.push(h.rehover,h.redrag),(l=o.syncOrAsync(O,t))&amp;&amp;l.then||(l=Promise.resolve(t))}else l=r.newPlot(t,e,n,i);return l.then((function(){return t.emit(&quot;plotly_react&quot;,{data:e,layout:n}),t}))},r.redraw=function(t){if(t=o.getGraphDiv(t),!o.isPlotDiv(t))throw new Error(&quot;This element is not a Plotly plot: &quot;+t);return T.cleanData(t.data),T.cleanLayout(t.layout),t.calcdata=void 0,r.plot(t).then((function(){return t.emit(&quot;plotly_redraw&quot;),t}))},r.relayout=q,r.restyle=F,r.setPlotConfig=function(t){return o.extendFlat(_,t)},r.update=K,r._guiRelayout=Q(q),r._guiRestyle=Q(F),r._guiUpdate=Q(K),r._storeDirectGUIEdit=function(t,e,r){for(var n in r){j(n,s(t,n).get(),r[n],e)}}},{&quot;../components/color&quot;:643,&quot;../components/drawing&quot;:665,&quot;../constants/xmlns_namespaces&quot;:754,&quot;../lib&quot;:778,&quot;../lib/events&quot;:767,&quot;../lib/queue&quot;:794,&quot;../lib/svg_text_utils&quot;:803,&quot;../plots/cartesian/axes&quot;:828,&quot;../plots/cartesian/constants&quot;:834,&quot;../plots/cartesian/graph_interact&quot;:837,&quot;../plots/cartesian/select&quot;:847,&quot;../plots/plots&quot;:891,&quot;../plots/polar/legacy&quot;:899,&quot;../registry&quot;:911,&quot;./edit_types&quot;:810,&quot;./helpers&quot;:811,&quot;./manage_arrays&quot;:813,&quot;./plot_config&quot;:815,&quot;./plot_schema&quot;:816,&quot;./subroutines&quot;:818,d3:169,&quot;fast-isnumeric&quot;:241,&quot;has-hover&quot;:440}],815:[function(t,e,r){&quot;use strict&quot;;var n={staticPlot:{valType:&quot;boolean&quot;,dflt:!1},plotlyServerURL:{valType:&quot;string&quot;,dflt:&quot;&quot;},editable:{valType:&quot;boolean&quot;,dflt:!1},edits:{annotationPosition:{valType:&quot;boolean&quot;,dflt:!1},annotationTail:{valType:&quot;boolean&quot;,dflt:!1},annotationText:{valType:&quot;boolean&quot;,dflt:!1},axisTitleText:{valType:&quot;boolean&quot;,dflt:!1},colorbarPosition:{valType:&quot;boolean&quot;,dflt:!1},colorbarTitleText:{valType:&quot;boolean&quot;,dflt:!1},legendPosition:{valType:&quot;boolean&quot;,dflt:!1},legendText:{valType:&quot;boolean&quot;,dflt:!1},shapePosition:{valType:&quot;boolean&quot;,dflt:!1},titleText:{valType:&quot;boolean&quot;,dflt:!1}},autosizable:{valType:&quot;boolean&quot;,dflt:!1},responsive:{valType:&quot;boolean&quot;,dflt:!1},fillFrame:{valType:&quot;boolean&quot;,dflt:!1},frameMargins:{valType:&quot;number&quot;,dflt:0,min:0,max:.5},scrollZoom:{valType:&quot;flaglist&quot;,flags:[&quot;cartesian&quot;,&quot;gl3d&quot;,&quot;geo&quot;,&quot;mapbox&quot;],extras:[!0,!1],dflt:&quot;gl3d+geo+mapbox&quot;},doubleClick:{valType:&quot;enumerated&quot;,values:[!1,&quot;reset&quot;,&quot;autosize&quot;,&quot;reset+autosize&quot;],dflt:&quot;reset+autosize&quot;},doubleClickDelay:{valType:&quot;number&quot;,dflt:300,min:0},showAxisDragHandles:{valType:&quot;boolean&quot;,dflt:!0},showAxisRangeEntryBoxes:{valType:&quot;boolean&quot;,dflt:!0},showTips:{valType:&quot;boolean&quot;,dflt:!0},showLink:{valType:&quot;boolean&quot;,dflt:!1},linkText:{valType:&quot;string&quot;,dflt:&quot;Edit chart&quot;,noBlank:!0},sendData:{valType:&quot;boolean&quot;,dflt:!0},showSources:{valType:&quot;any&quot;,dflt:!1},displayModeBar:{valType:&quot;enumerated&quot;,values:[&quot;hover&quot;,!0,!1],dflt:&quot;hover&quot;},showSendToCloud:{valType:&quot;boolean&quot;,dflt:!1},showEditInChartStudio:{valType:&quot;boolean&quot;,dflt:!1},modeBarButtonsToRemove:{valType:&quot;any&quot;,dflt:[]},modeBarButtonsToAdd:{valType:&quot;any&quot;,dflt:[]},modeBarButtons:{valType:&quot;any&quot;,dflt:!1},toImageButtonOptions:{valType:&quot;any&quot;,dflt:{}},displaylogo:{valType:&quot;boolean&quot;,dflt:!0},watermark:{valType:&quot;boolean&quot;,dflt:!1},plotGlPixelRatio:{valType:&quot;number&quot;,dflt:2,min:1,max:4},setBackground:{valType:&quot;any&quot;,dflt:&quot;transparent&quot;},topojsonURL:{valType:&quot;string&quot;,noBlank:!0,dflt:&quot;https://cdn.plot.ly/&quot;},mapboxAccessToken:{valType:&quot;string&quot;,dflt:null},logging:{valType:&quot;integer&quot;,min:0,max:2,dflt:1},notifyOnLogging:{valType:&quot;integer&quot;,min:0,max:2,dflt:0},queueLength:{valType:&quot;integer&quot;,min:0,dflt:0},globalTransforms:{valType:&quot;any&quot;,dflt:[]},locale:{valType:&quot;string&quot;,dflt:&quot;en-US&quot;},locales:{valType:&quot;any&quot;,dflt:{}}},i={};!function t(e,r){for(var n in e){var i=e[n];i.valType?r[n]=i.dflt:(r[n]||(r[n]={}),t(i,r[n]))}}(n,i),e.exports={configAttributes:n,dfltConfig:i}},{}],816:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../plots/attributes&quot;),o=t(&quot;../plots/layout_attributes&quot;),s=t(&quot;../plots/frame_attributes&quot;),l=t(&quot;../plots/animation_attributes&quot;),c=t(&quot;./plot_config&quot;).configAttributes,u=t(&quot;../plots/polar/legacy/area_attributes&quot;),f=t(&quot;../plots/polar/legacy/axis_attributes&quot;),h=t(&quot;./edit_types&quot;),p=i.extendFlat,d=i.extendDeepAll,g=i.isPlainObject,m=i.isArrayOrTypedArray,v=i.nestedProperty,y=i.valObjectMeta,x=[&quot;_isSubplotObj&quot;,&quot;_isLinkedToArray&quot;,&quot;_arrayAttrRegexps&quot;,&quot;_deprecated&quot;];function b(t,e,r){if(!t)return!1;if(t._isLinkedToArray)if(_(e[r]))r++;else if(r&lt;e.length)return!1;for(;r&lt;e.length;r++){var n=t[e[r]];if(!g(n))break;if(t=n,r===e.length-1)break;if(t._isLinkedToArray){if(!_(e[++r]))return!1}else if(&quot;info_array&quot;===t.valType){var i=e[++r];if(!_(i))return!1;var a=t.items;if(Array.isArray(a)){if(i&gt;=a.length)return!1;if(2===t.dimensions){if(r++,e.length===r)return t;var o=e[r];if(!_(o))return!1;t=a[i][o]}else t=a[i]}else t=a}}return t}function _(t){return t===Math.round(t)&amp;&amp;t&gt;=0}function w(){var t,e,r={};for(t in d(r,o),n.subplotsRegistry){if((e=n.subplotsRegistry[t]).layoutAttributes)if(Array.isArray(e.attr))for(var i=0;i&lt;e.attr.length;i++)M(r,e,e.attr[i]);else M(r,e,&quot;subplot&quot;===e.attr?e.name:e.attr)}for(t in r=function(t){return p(t,{radialaxis:f.radialaxis,angularaxis:f.angularaxis}),p(t,f.layout),t}(r),n.componentsRegistry){var a=(e=n.componentsRegistry[t]).schema;if(a&amp;&amp;(a.subplots||a.layout)){var s=a.subplots;if(s&amp;&amp;s.xaxis&amp;&amp;!s.yaxis)for(var l in s.xaxis)delete r.yaxis[l]}else&quot;colorscale&quot;===e.name?d(r,e.layoutAttributes):e.layoutAttributes&amp;&amp;A(r,e.layoutAttributes,e.name)}return{layoutAttributes:k(r)}}function T(){var t={frames:d({},s)};return k(t),t.frames}function k(t){return function(t){r.crawl(t,(function(t,e,n){r.isValObject(t)?&quot;data_array&quot;===t.valType?(t.role=&quot;data&quot;,n[e+&quot;src&quot;]={valType:&quot;string&quot;,editType:&quot;none&quot;}):!0===t.arrayOk&amp;&amp;(n[e+&quot;src&quot;]={valType:&quot;string&quot;,editType:&quot;none&quot;}):g(t)&amp;&amp;(t.role=&quot;object&quot;)}))}(t),function(t){r.crawl(t,(function(t,e,r){if(t){var n=t._isLinkedToArray;n&amp;&amp;(delete t._isLinkedToArray,r[e]={items:{}},r[e].items[n]=t,r[e].role=&quot;object&quot;)}}))}(t),function(t){!function t(e){for(var r in e)if(g(e[r]))t(e[r]);else if(Array.isArray(e[r]))for(var n=0;n&lt;e[r].length;n++)t(e[r][n]);else e[r]instanceof RegExp&amp;&amp;(e[r]=e[r].toString())}(t)}(t),t}function M(t,e,r){var n=v(t,r),i=d({},e.layoutAttributes);i._isSubplotObj=!0,n.set(i)}function A(t,e,r){var n=v(t,r);n.set(d(n.get()||{},e))}r.IS_SUBPLOT_OBJ=&quot;_isSubplotObj&quot;,r.IS_LINKED_TO_ARRAY=&quot;_isLinkedToArray&quot;,r.DEPRECATED=&quot;_deprecated&quot;,r.UNDERSCORE_ATTRS=x,r.get=function(){var t={};n.allTypes.concat(&quot;area&quot;).forEach((function(e){t[e]=function(t){var e,i;&quot;area&quot;===t?(e={attributes:u},i={}):(e=n.modules[t]._module,i=e.basePlotModule);var o={type:null},s=d({},a),l=d({},e.attributes);r.crawl(l,(function(t,e,r,n,i){v(s,i).set(void 0),void 0===t&amp;&amp;v(l,i).set(void 0)})),d(o,s),n.traceIs(t,&quot;noOpacity&quot;)&amp;&amp;delete o.opacity;n.traceIs(t,&quot;showLegend&quot;)||(delete o.showlegend,delete o.legendgroup);n.traceIs(t,&quot;noHover&quot;)&amp;&amp;(delete o.hoverinfo,delete o.hoverlabel);e.selectPoints||delete o.selectedpoints;d(o,l),i.attributes&amp;&amp;d(o,i.attributes);o.type=t;var c={meta:e.meta||{},categories:e.categories||{},animatable:Boolean(e.animatable),type:t,attributes:k(o)};if(e.layoutAttributes){var f={};d(f,e.layoutAttributes),c.layoutAttributes=k(f)}e.animatable||r.crawl(c,(function(t){r.isValObject(t)&amp;&amp;&quot;anim&quot;in t&amp;&amp;delete t.anim}));return c}(e)}));var e={};return Object.keys(n.transformsRegistry).forEach((function(t){e[t]=function(t){var e=n.transformsRegistry[t],r=d({},e.attributes);return Object.keys(n.componentsRegistry).forEach((function(e){var i=n.componentsRegistry[e];i.schema&amp;&amp;i.schema.transforms&amp;&amp;i.schema.transforms[t]&amp;&amp;Object.keys(i.schema.transforms[t]).forEach((function(e){A(r,i.schema.transforms[t][e],e)}))})),{attributes:k(r)}}(t)})),{defs:{valObjects:y,metaKeys:x.concat([&quot;description&quot;,&quot;role&quot;,&quot;editType&quot;,&quot;impliedEdits&quot;]),editType:{traces:h.traces,layout:h.layout},impliedEdits:{}},traces:t,layout:w(),transforms:e,frames:T(),animation:k(l),config:k(c)}},r.crawl=function(t,e,n,i){var a=n||0;i=i||&quot;&quot;,Object.keys(t).forEach((function(n){var o=t[n];if(-1===x.indexOf(n)){var s=(i?i+&quot;.&quot;:&quot;&quot;)+n;e(o,n,t,a,s),r.isValObject(o)||g(o)&amp;&amp;&quot;impliedEdits&quot;!==n&amp;&amp;r.crawl(o,e,a+1,s)}}))},r.isValObject=function(t){return t&amp;&amp;void 0!==t.valType},r.findArrayAttributes=function(t){var e,n,i=[],o=[],s=[];function l(t,r,a,l){o=o.slice(0,l).concat([r]),s=s.slice(0,l).concat([t&amp;&amp;t._isLinkedToArray]),t&amp;&amp;(&quot;data_array&quot;===t.valType||!0===t.arrayOk)&amp;&amp;!(&quot;colorbar&quot;===o[l-1]&amp;&amp;(&quot;ticktext&quot;===r||&quot;tickvals&quot;===r))&amp;&amp;function t(e,r,a){var l=e[o[r]],c=a+o[r];if(r===o.length-1)m(l)&amp;&amp;i.push(n+c);else if(s[r]){if(Array.isArray(l))for(var u=0;u&lt;l.length;u++)g(l[u])&amp;&amp;t(l[u],r+1,c+&quot;[&quot;+u+&quot;].&quot;)}else g(l)&amp;&amp;t(l,r+1,c+&quot;.&quot;)}(e,0,&quot;&quot;)}e=t,n=&quot;&quot;,r.crawl(a,l),t._module&amp;&amp;t._module.attributes&amp;&amp;r.crawl(t._module.attributes,l);var c=t.transforms;if(c)for(var u=0;u&lt;c.length;u++){var f=c[u],h=f._module;h&amp;&amp;(n=&quot;transforms[&quot;+u+&quot;].&quot;,e=f,r.crawl(h.attributes,l))}return i},r.getTraceValObject=function(t,e){var r,i,o=e[0],s=1;if(&quot;transforms&quot;===o){if(1===e.length)return a.transforms;var l=t.transforms;if(!Array.isArray(l)||!l.length)return!1;var c=e[1];if(!_(c)||c&gt;=l.length)return!1;i=(r=(n.transformsRegistry[l[c].type]||{}).attributes)&amp;&amp;r[e[2]],s=3}else if(&quot;area&quot;===t.type)i=u[o];else{var f=t._module;if(f||(f=(n.modules[t.type||a.type.dflt]||{})._module),!f)return!1;if(!(i=(r=f.attributes)&amp;&amp;r[o])){var h=f.basePlotModule;h&amp;&amp;h.attributes&amp;&amp;(i=h.attributes[o])}i||(i=a[o])}return b(i,e,s)},r.getLayoutValObject=function(t,e){return b(function(t,e){var r,i,a,s,l=t._basePlotModules;if(l){var c;for(r=0;r&lt;l.length;r++){if((a=l[r]).attrRegex&amp;&amp;a.attrRegex.test(e)){if(a.layoutAttrOverrides)return a.layoutAttrOverrides;!c&amp;&amp;a.layoutAttributes&amp;&amp;(c=a.layoutAttributes)}var u=a.baseLayoutAttrOverrides;if(u&amp;&amp;e in u)return u[e]}if(c)return c}var h=t._modules;if(h)for(r=0;r&lt;h.length;r++)if((s=h[r].layoutAttributes)&amp;&amp;e in s)return s[e];for(i in n.componentsRegistry){if(&quot;colorscale&quot;===(a=n.componentsRegistry[i]).name&amp;&amp;0===e.indexOf(&quot;coloraxis&quot;))return a.layoutAttributes[e];if(!a.schema&amp;&amp;e===a.name)return a.layoutAttributes}if(e in o)return o[e];if(&quot;radialaxis&quot;===e||&quot;angularaxis&quot;===e)return f[e];return f.layout[e]||!1}(t,e[0]),e,1)}},{&quot;../lib&quot;:778,&quot;../plots/animation_attributes&quot;:822,&quot;../plots/attributes&quot;:824,&quot;../plots/frame_attributes&quot;:857,&quot;../plots/layout_attributes&quot;:882,&quot;../plots/polar/legacy/area_attributes&quot;:897,&quot;../plots/polar/legacy/axis_attributes&quot;:898,&quot;../registry&quot;:911,&quot;./edit_types&quot;:810,&quot;./plot_config&quot;:815}],817:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/attributes&quot;),a={name:{valType:&quot;string&quot;,editType:&quot;none&quot;}};function o(t){return t&amp;&amp;&quot;string&quot;==typeof t}function s(t){var e=t.length-1;return&quot;s&quot;!==t.charAt(e)&amp;&amp;n.warn(&quot;bad argument to arrayDefaultKey: &quot;+t),t.substr(0,t.length-1)+&quot;defaults&quot;}a.templateitemname={valType:&quot;string&quot;,editType:&quot;calc&quot;},r.templatedArray=function(t,e){return e._isLinkedToArray=t,e.name=a.name,e.templateitemname=a.templateitemname,e},r.traceTemplater=function(t){var e,r,a={};for(e in t)r=t[e],Array.isArray(r)&amp;&amp;r.length&amp;&amp;(a[e]=0);return{newTrace:function(o){var s={type:e=n.coerce(o,{},i,&quot;type&quot;),_template:null};if(e in a){r=t[e];var l=a[e]%r.length;a[e]++,s._template=r[l]}return s}}},r.newContainer=function(t,e,r){var i=t._template,a=i&amp;&amp;(i[e]||r&amp;&amp;i[r]);return n.isPlainObject(a)||(a=null),t[e]={_template:a}},r.arrayTemplater=function(t,e,r){var n=t._template,i=n&amp;&amp;n[s(e)],a=n&amp;&amp;n[e];Array.isArray(a)&amp;&amp;a.length||(a=[]);var l={};return{newItem:function(t){var e={name:t.name,_input:t},n=e.templateitemname=t.templateitemname;if(!o(n))return e._template=i,e;for(var s=0;s&lt;a.length;s++){var c=a[s];if(c.name===n)return l[n]=1,e._template=c,e}return e[r]=t[r]||!1,e._template=!1,e},defaultItems:function(){for(var t=[],e=0;e&lt;a.length;e++){var r=a[e],n=r.name;if(o(n)&amp;&amp;!l[n]){var i={_template:r,name:n,_input:{_templateitemname:n}};i.templateitemname=r.templateitemname,t.push(i),l[n]=1}}return t}}},r.arrayDefaultKey=s,r.arrayEditor=function(t,e,r){var i=(n.nestedProperty(t,e).get()||[]).length,a=r._index,o=a&gt;=i&amp;&amp;(r._input||{})._templateitemname;o&amp;&amp;(a=i);var s,l=e+&quot;[&quot;+a+&quot;]&quot;;function c(){s={},o&amp;&amp;(s[l]={},s[l].templateitemname=o)}function u(t,e){o?n.nestedProperty(s[l],t).set(e):s[l+&quot;.&quot;+t]=e}function f(){var t=s;return c(),t}return c(),{modifyBase:function(t,e){s[t]=e},modifyItem:u,getUpdateObj:f,applyUpdate:function(e,r){e&amp;&amp;u(e,r);var i=f();for(var a in i)n.nestedProperty(t,a).set(i[a])}}}},{&quot;../lib&quot;:778,&quot;../plots/attributes&quot;:824}],818:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../registry&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../lib/clear_gl_canvases&quot;),l=t(&quot;../components/color&quot;),c=t(&quot;../components/drawing&quot;),u=t(&quot;../components/titles&quot;),f=t(&quot;../components/modebar&quot;),h=t(&quot;../plots/cartesian/axes&quot;),p=t(&quot;../constants/alignment&quot;),d=t(&quot;../plots/cartesian/constraints&quot;),g=d.enforce,m=d.clean,v=t(&quot;../plots/cartesian/autorange&quot;).doAutoRange;function y(t,e,r){for(var n=0;n&lt;r.length;n++){var i=r[n][0],a=r[n][1];if(!(i[0]&gt;=t[1]||i[1]&lt;=t[0])&amp;&amp;(a[0]&lt;e[1]&amp;&amp;a[1]&gt;e[0]))return!0}return!1}function x(t){var e,i,s,u,d,g,m=t._fullLayout,v=m._size,x=v.p,_=h.list(t,&quot;&quot;,!0);if(m._paperdiv.style({width:t._context.responsive&amp;&amp;m.autosize&amp;&amp;!t._context._hasZeroWidth&amp;&amp;!t.layout.width?&quot;100%&quot;:m.width+&quot;px&quot;,height:t._context.responsive&amp;&amp;m.autosize&amp;&amp;!t._context._hasZeroHeight&amp;&amp;!t.layout.height?&quot;100%&quot;:m.height+&quot;px&quot;}).selectAll(&quot;.main-svg&quot;).call(c.setSize,m.width,m.height),t._context.setBackground(t,m.paper_bgcolor),r.drawMainTitle(t),f.manage(t),!m._has(&quot;cartesian&quot;))return a.previousPromises(t);function T(t,e,r){var n=t._lw/2;return&quot;x&quot;===t._id.charAt(0)?e?&quot;top&quot;===r?e._offset-x-n:e._offset+e._length+x+n:v.t+v.h*(1-(t.position||0))+n%1:e?&quot;right&quot;===r?e._offset+e._length+x+n:e._offset-x-n:v.l+v.w*(t.position||0)+n%1}for(e=0;e&lt;_.length;e++){var k=(u=_[e])._anchorAxis;u._linepositions={},u._lw=c.crispRound(t,u.linewidth,1),u._mainLinePosition=T(u,k,u.side),u._mainMirrorPosition=u.mirror&amp;&amp;k?T(u,k,p.OPPOSITE_SIDE[u.side]):null}var M=[],A=[],S=[],E=1===l.opacity(m.paper_bgcolor)&amp;&amp;1===l.opacity(m.plot_bgcolor)&amp;&amp;m.paper_bgcolor===m.plot_bgcolor;for(i in m._plots)if((s=m._plots[i]).mainplot)s.bg&amp;&amp;s.bg.remove(),s.bg=void 0;else{var C=s.xaxis.domain,L=s.yaxis.domain,I=s.plotgroup;if(y(C,L,S)){var P=I.node(),z=s.bg=o.ensureSingle(I,&quot;rect&quot;,&quot;bg&quot;);P.insertBefore(z.node(),P.childNodes[0]),A.push(i)}else I.select(&quot;rect.bg&quot;).remove(),S.push([C,L]),E||(M.push(i),A.push(i))}var O,D,R,F,B,N,j,U,V,q,H,G,Y,W=m._bgLayer.selectAll(&quot;.bg&quot;).data(M);for(W.enter().append(&quot;rect&quot;).classed(&quot;bg&quot;,!0),W.exit().remove(),W.each((function(t){m._plots[t].bg=n.select(this)})),e=0;e&lt;A.length;e++)s=m._plots[A[e]],d=s.xaxis,g=s.yaxis,s.bg&amp;&amp;void 0!==d._offset&amp;&amp;void 0!==g._offset&amp;&amp;s.bg.call(c.setRect,d._offset-x,g._offset-x,d._length+2*x,g._length+2*x).call(l.fill,m.plot_bgcolor).style(&quot;stroke-width&quot;,0);if(!m._hasOnlyLargeSploms)for(i in m._plots){s=m._plots[i],d=s.xaxis,g=s.yaxis;var X,Z,J=s.clipId=&quot;clip&quot;+m._uid+i+&quot;plot&quot;,K=o.ensureSingleById(m._clips,&quot;clipPath&quot;,J,(function(t){t.classed(&quot;plotclip&quot;,!0).append(&quot;rect&quot;)}));s.clipRect=K.select(&quot;rect&quot;).attr({width:d._length,height:g._length}),c.setTranslate(s.plot,d._offset,g._offset),s._hasClipOnAxisFalse?(X=null,Z=J):(X=J,Z=null),c.setClipUrl(s.plot,X,t),s.layerClipId=Z}function Q(t){return&quot;M&quot;+O+&quot;,&quot;+t+&quot;H&quot;+D}function $(t){return&quot;M&quot;+d._offset+&quot;,&quot;+t+&quot;h&quot;+d._length}function tt(t){return&quot;M&quot;+t+&quot;,&quot;+U+&quot;V&quot;+j}function et(t){return&quot;M&quot;+t+&quot;,&quot;+g._offset+&quot;v&quot;+g._length}function rt(t,e,r){if(!t.showline||i!==t._mainSubplot)return&quot;&quot;;if(!t._anchorAxis)return r(t._mainLinePosition);var n=e(t._mainLinePosition);return t.mirror&amp;&amp;(n+=e(t._mainMirrorPosition)),n}for(i in m._plots){s=m._plots[i],d=s.xaxis,g=s.yaxis;var nt=&quot;M0,0&quot;;b(d,i)&amp;&amp;(B=w(d,&quot;left&quot;,g,_),O=d._offset-(B?x+B:0),N=w(d,&quot;right&quot;,g,_),D=d._offset+d._length+(N?x+N:0),R=T(d,g,&quot;bottom&quot;),F=T(d,g,&quot;top&quot;),!(Y=!d._anchorAxis||i!==d._mainSubplot)||&quot;allticks&quot;!==d.mirror&amp;&amp;&quot;all&quot;!==d.mirror||(d._linepositions[i]=[R,F]),nt=rt(d,Q,$),Y&amp;&amp;d.showline&amp;&amp;(&quot;all&quot;===d.mirror||&quot;allticks&quot;===d.mirror)&amp;&amp;(nt+=Q(R)+Q(F)),s.xlines.style(&quot;stroke-width&quot;,d._lw+&quot;px&quot;).call(l.stroke,d.showline?d.linecolor:&quot;rgba(0,0,0,0)&quot;)),s.xlines.attr(&quot;d&quot;,nt);var it=&quot;M0,0&quot;;b(g,i)&amp;&amp;(H=w(g,&quot;bottom&quot;,d,_),j=g._offset+g._length+(H?x:0),G=w(g,&quot;top&quot;,d,_),U=g._offset-(G?x:0),V=T(g,d,&quot;left&quot;),q=T(g,d,&quot;right&quot;),!(Y=!g._anchorAxis||i!==g._mainSubplot)||&quot;allticks&quot;!==g.mirror&amp;&amp;&quot;all&quot;!==g.mirror||(g._linepositions[i]=[V,q]),it=rt(g,tt,et),Y&amp;&amp;g.showline&amp;&amp;(&quot;all&quot;===g.mirror||&quot;allticks&quot;===g.mirror)&amp;&amp;(it+=tt(V)+tt(q)),s.ylines.style(&quot;stroke-width&quot;,g._lw+&quot;px&quot;).call(l.stroke,g.showline?g.linecolor:&quot;rgba(0,0,0,0)&quot;)),s.ylines.attr(&quot;d&quot;,it)}return h.makeClipPaths(t),a.previousPromises(t)}function b(t,e){return(t.ticks||t.showline)&amp;&amp;(e===t._mainSubplot||&quot;all&quot;===t.mirror||&quot;allticks&quot;===t.mirror)}function _(t,e,r){if(!r.showline||!r._lw)return!1;if(&quot;all&quot;===r.mirror||&quot;allticks&quot;===r.mirror)return!0;var n=r._anchorAxis;if(!n)return!1;var i=p.FROM_BL[e];return r.side===e?n.domain[i]===t.domain[i]:r.mirror&amp;&amp;n.domain[1-i]===t.domain[1-i]}function w(t,e,r,n){if(_(t,e,r))return r._lw;for(var i=0;i&lt;n.length;i++){var a=n[i];if(a._mainAxis===r._mainAxis&amp;&amp;_(t,e,a))return a._lw}return 0}function T(t,e){var r=t.title,n=t._size,i=0;switch(&quot;start&quot;===e?i=r.pad.l:&quot;end&quot;===e&amp;&amp;(i=-r.pad.r),r.xref){case&quot;paper&quot;:return n.l+n.w*r.x+i;case&quot;container&quot;:default:return t.width*r.x+i}}function k(t,e){var r=t.title,n=t._size,i=0;if(&quot;0em&quot;!==e&amp;&amp;e?e===p.CAP_SHIFT+&quot;em&quot;&amp;&amp;(i=r.pad.t):i=-r.pad.b,&quot;auto&quot;===r.y)return n.t/2;switch(r.yref){case&quot;paper&quot;:return n.t+n.h-n.h*r.y+i;case&quot;container&quot;:default:return t.height-t.height*r.y+i}}r.layoutStyles=function(t){return o.syncOrAsync([a.doAutoMargin,x],t)},r.drawMainTitle=function(t){var e=t._fullLayout,r=function(t){var e=t.title,r=&quot;middle&quot;;o.isRightAnchor(e)?r=&quot;end&quot;:o.isLeftAnchor(e)&amp;&amp;(r=&quot;start&quot;);return r}(e),n=function(t){var e=t.title,r=&quot;0em&quot;;o.isTopAnchor(e)?r=p.CAP_SHIFT+&quot;em&quot;:o.isMiddleAnchor(e)&amp;&amp;(r=p.MID_SHIFT+&quot;em&quot;);return r}(e);u.draw(t,&quot;gtitle&quot;,{propContainer:e,propName:&quot;title.text&quot;,placeholder:e._dfltTitle.plot,attributes:{x:T(e,r),y:k(e,n),&quot;text-anchor&quot;:r,dy:n}})},r.doTraceStyle=function(t){var e,n=t.calcdata,o=[];for(e=0;e&lt;n.length;e++){var l=n[e],c=l[0]||{},u=c.trace||{},f=u._module||{},h=f.arraysToCalcdata;h&amp;&amp;h(l,u);var p=f.editStyle;p&amp;&amp;o.push({fn:p,cd0:c})}if(o.length){for(e=0;e&lt;o.length;e++){var d=o[e];d.fn(t,d.cd0)}s(t),r.redrawReglTraces(t)}return a.style(t),i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.doColorBars=function(t){return i.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.layoutReplot=function(t){var e=t.layout;return t.layout=void 0,i.call(&quot;plot&quot;,t,&quot;&quot;,e)},r.doLegend=function(t){return i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),a.previousPromises(t)},r.doTicksRelayout=function(t){return h.draw(t,&quot;redraw&quot;),t._fullLayout._hasOnlyLargeSploms&amp;&amp;(i.subplotsRegistry.splom.updateGrid(t),s(t),r.redrawReglTraces(t)),r.drawMainTitle(t),a.previousPromises(t)},r.doModeBar=function(t){var e=t._fullLayout;f.manage(t);for(var r=0;r&lt;e._basePlotModules.length;r++){var n=e._basePlotModules[r].updateFx;n&amp;&amp;n(t)}return a.previousPromises(t)},r.doCamera=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n&lt;r.length;n++){var i=e[r[n]];i._scene.setViewport(i)}},r.drawData=function(t){var e=t._fullLayout;s(t);for(var n=e._basePlotModules,o=0;o&lt;n.length;o++)n[o].plot(t);return r.redrawReglTraces(t),a.style(t),i.getComponentMethod(&quot;shapes&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;annotations&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;images&quot;,&quot;draw&quot;)(t),e._replotting=!1,a.previousPromises(t)},r.redrawReglTraces=function(t){var e=t._fullLayout;if(e._has(&quot;regl&quot;)){var r,n,i=t._fullData,a=[],s=[];for(e._hasOnlyLargeSploms&amp;&amp;e._splomGrid.draw(),r=0;r&lt;i.length;r++){var l=i[r];!0===l.visible&amp;&amp;0!==l._length&amp;&amp;(&quot;splom&quot;===l.type?e._splomScenes[l.uid].draw():&quot;scattergl&quot;===l.type?o.pushUnique(a,l.xaxis+l.yaxis):&quot;scatterpolargl&quot;===l.type&amp;&amp;o.pushUnique(s,l.subplot))}for(r=0;r&lt;a.length;r++)(n=e._plots[a[r]])._scene&amp;&amp;n._scene.draw();for(r=0;r&lt;s.length;r++)(n=e[s[r]]._subplot)._scene&amp;&amp;n._scene.draw()}},r.doAutoRangeAndConstraints=function(t){for(var e,r=h.list(t,&quot;&quot;,!0),n={},i=0;i&lt;r.length;i++)if(!n[(e=r[i])._id]){n[e._id]=1,m(t,e),v(t,e);var a=e._matchGroup;if(a)for(var o in a){var s=h.getFromId(t,o);v(t,s,e.range),n[o]=1}}g(t)},r.finalDraw=function(t){i.getComponentMethod(&quot;rangeslider&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;rangeselector&quot;,&quot;draw&quot;)(t)},r.drawMarginPushers=function(t){i.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;rangeselector&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;sliders&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;updatemenus&quot;,&quot;draw&quot;)(t),i.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t)}},{&quot;../components/color&quot;:643,&quot;../components/drawing&quot;:665,&quot;../components/modebar&quot;:703,&quot;../components/titles&quot;:738,&quot;../constants/alignment&quot;:745,&quot;../lib&quot;:778,&quot;../lib/clear_gl_canvases&quot;:762,&quot;../plots/cartesian/autorange&quot;:827,&quot;../plots/cartesian/axes&quot;:828,&quot;../plots/cartesian/constraints&quot;:835,&quot;../plots/plots&quot;:891,&quot;../registry&quot;:911,d3:169}],819:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=n.isPlainObject,a=t(&quot;./plot_schema&quot;),o=t(&quot;../plots/plots&quot;),s=t(&quot;../plots/attributes&quot;),l=t(&quot;./plot_template&quot;),c=t(&quot;./plot_config&quot;).dfltConfig;function u(t,e){t=n.extendDeep({},t);var r,a,o=Object.keys(t).sort();function s(e,r,n){if(i(r)&amp;&amp;i(e))u(e,r);else if(Array.isArray(r)&amp;&amp;Array.isArray(e)){var o=l.arrayTemplater({_template:t},n);for(a=0;a&lt;r.length;a++){var s=r[a],c=o.newItem(s)._template;c&amp;&amp;u(c,s)}var f=o.defaultItems();for(a=0;a&lt;f.length;a++)r.push(f[a]._template);for(a=0;a&lt;r.length;a++)delete r[a].templateitemname}}for(r=0;r&lt;o.length;r++){var c=o[r],h=t[c];if(c in e?s(h,e[c],c):e[c]=h,f(c)===c)for(var p in e){var d=f(p);p===d||d!==c||p in t||s(h,e[p],c)}}}function f(t){return t.replace(/[0-9]+$/,&quot;&quot;)}function h(t,e,r,a,o){var s=o&amp;&amp;r(o);for(var c in t){var u=t[c],p=g(t,c,a),d=g(t,c,o),m=r(d);if(!m){var v=f(c);v!==c&amp;&amp;(m=r(d=g(t,v,o)))}if((!s||s!==m)&amp;&amp;!(!m||m._noTemplating||&quot;data_array&quot;===m.valType||m.arrayOk&amp;&amp;Array.isArray(u)))if(!m.valType&amp;&amp;i(u))h(u,e,r,p,d);else if(m._isLinkedToArray&amp;&amp;Array.isArray(u))for(var y=!1,x=0,b={},_=0;_&lt;u.length;_++){var w=u[_];if(i(w)){var T=w.name;if(T)b[T]||(h(w,e,r,g(u,x,p),g(u,x,d)),x++,b[T]=1);else if(!y){var k=g(t,l.arrayDefaultKey(c),a),M=g(u,x,p);h(w,e,r,M,g(u,x,d));var A=n.nestedProperty(e,M);n.nestedProperty(e,k).set(A.get()),A.set(null),y=!0}}}else{n.nestedProperty(e,p).set(u)}}}function p(t,e){return a.getLayoutValObject(t,n.nestedProperty({},e).parts)}function d(t,e){return a.getTraceValObject(t,n.nestedProperty({},e).parts)}function g(t,e,r){return r?Array.isArray(t)?r+&quot;[&quot;+e+&quot;]&quot;:r+&quot;.&quot;+e:e}function m(t){for(var e=0;e&lt;t.length;e++)if(i(t[e]))return!0}function v(t){var e;switch(t.code){case&quot;data&quot;:e=&quot;The template has no key data.&quot;;break;case&quot;layout&quot;:e=&quot;The template has no key layout.&quot;;break;case&quot;missing&quot;:e=t.path?&quot;There are no templates for item &quot;+t.path+&quot; with name &quot;+t.templateitemname:&quot;There are no templates for trace &quot;+t.index+&quot;, of type &quot;+t.traceType+&quot;.&quot;;break;case&quot;unused&quot;:e=t.path?&quot;The template item at &quot;+t.path+&quot; was not used in constructing the plot.&quot;:t.dataCount?&quot;Some of the templates of type &quot;+t.traceType+&quot; were not used. The template has &quot;+t.templateCount+&quot; traces, the data only has &quot;+t.dataCount+&quot; of this type.&quot;:&quot;The template has &quot;+t.templateCount+&quot; traces of type &quot;+t.traceType+&quot; but there are none in the data.&quot;;break;case&quot;reused&quot;:e=&quot;Some of the templates of type &quot;+t.traceType+&quot; were used more than once. The template has &quot;+t.templateCount+&quot; traces, the data has &quot;+t.dataCount+&quot; of this type.&quot;}return t.msg=e,t}r.makeTemplate=function(t){t=n.isPlainObject(t)?t:n.getGraphDiv(t),t=n.extendDeep({_context:c},{data:t.data,layout:t.layout}),o.supplyDefaults(t);var e=t.data||[],r=t.layout||{};r._basePlotModules=t._fullLayout._basePlotModules,r._modules=t._fullLayout._modules;var a={data:{},layout:{}};e.forEach((function(t){var e={};h(t,e,d.bind(null,t));var r=n.coerce(t,{},s,&quot;type&quot;),i=a.data[r];i||(i=a.data[r]=[]),i.push(e)})),h(r,a.layout,p.bind(null,r)),delete a.layout.template;var l=r.template;if(i(l)){var f,g,m,v,y,x,b=l.layout;i(b)&amp;&amp;u(b,a.layout);var _=l.data;if(i(_)){for(g in a.data)if(m=_[g],Array.isArray(m)){for(x=(y=a.data[g]).length,v=m.length,f=0;f&lt;x;f++)u(m[f%v],y[f]);for(f=x;f&lt;v;f++)y.push(n.extendDeep({},m[f]))}for(g in _)g in a.data||(a.data[g]=n.extendDeep([],_[g]))}}return a},r.validateTemplate=function(t,e){var r=n.extendDeep({},{_context:c,data:t.data,layout:t.layout}),a=r.layout||{};i(e)||(e=a.template||{});var s=e.layout,l=e.data,u=[];r.layout=a,r.layout.template=e,o.supplyDefaults(r);var h=r._fullLayout,p=r._fullData,d={};if(i(s)?(!function t(e,r){for(var n in e)if(&quot;_&quot;!==n.charAt(0)&amp;&amp;i(e[n])){var a,o=f(n),s=[];for(a=0;a&lt;r.length;a++)s.push(g(e,n,r[a])),o!==n&amp;&amp;s.push(g(e,o,r[a]));for(a=0;a&lt;s.length;a++)d[s[a]]=1;t(e[n],s)}}(h,[&quot;layout&quot;]),function t(e,r){for(var n in e)if(-1===n.indexOf(&quot;defaults&quot;)&amp;&amp;i(e[n])){var a=g(e,n,r);d[a]?t(e[n],a):u.push({code:&quot;unused&quot;,path:a})}}(s,&quot;layout&quot;)):u.push({code:&quot;layout&quot;}),i(l)){for(var y,x={},b=0;b&lt;p.length;b++){var _=p[b];x[y=_.type]=(x[y]||0)+1,_._fullInput._template||u.push({code:&quot;missing&quot;,index:_._fullInput.index,traceType:y})}for(y in l){var w=l[y].length,T=x[y]||0;w&gt;T?u.push({code:&quot;unused&quot;,traceType:y,templateCount:w,dataCount:T}):T&gt;w&amp;&amp;u.push({code:&quot;reused&quot;,traceType:y,templateCount:w,dataCount:T})}}else u.push({code:&quot;data&quot;});if(function t(e,r){for(var n in e)if(&quot;_&quot;!==n.charAt(0)){var a=e[n],o=g(e,n,r);i(a)?(Array.isArray(e)&amp;&amp;!1===a._template&amp;&amp;a.templateitemname&amp;&amp;u.push({code:&quot;missing&quot;,path:o,templateitemname:a.templateitemname}),t(a,o)):Array.isArray(a)&amp;&amp;m(a)&amp;&amp;t(a,o)}}({data:p,layout:h},&quot;&quot;),u.length)return u.map(v)}},{&quot;../lib&quot;:778,&quot;../plots/attributes&quot;:824,&quot;../plots/plots&quot;:891,&quot;./plot_config&quot;:815,&quot;./plot_schema&quot;:816,&quot;./plot_template&quot;:817}],820:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./plot_api&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;../lib&quot;),s=t(&quot;../snapshot/helpers&quot;),l=t(&quot;../snapshot/tosvg&quot;),c=t(&quot;../snapshot/svgtoimg&quot;),u=t(&quot;../version&quot;).version,f={format:{valType:&quot;enumerated&quot;,values:[&quot;png&quot;,&quot;jpeg&quot;,&quot;webp&quot;,&quot;svg&quot;,&quot;full-json&quot;],dflt:&quot;png&quot;},width:{valType:&quot;number&quot;,min:1},height:{valType:&quot;number&quot;,min:1},scale:{valType:&quot;number&quot;,min:0,dflt:1},setBackground:{valType:&quot;any&quot;,dflt:!1},imageDataOnly:{valType:&quot;boolean&quot;,dflt:!1}};e.exports=function(t,e){var r,h,p,d;function g(t){return!(t in e)||o.validate(e[t],f[t])}if(e=e||{},o.isPlainObject(t)?(r=t.data||[],h=t.layout||{},p=t.config||{},d={}):(t=o.getGraphDiv(t),r=o.extendDeep([],t.data),h=o.extendDeep({},t.layout),p=t._context,d=t._fullLayout||{}),!g(&quot;width&quot;)&amp;&amp;null!==e.width||!g(&quot;height&quot;)&amp;&amp;null!==e.height)throw new Error(&quot;Height and width should be pixel values.&quot;);if(!g(&quot;format&quot;))throw new Error(&quot;Export format is not &quot;+o.join2(f.format.values,&quot;, &quot;,&quot; or &quot;)+&quot;.&quot;);var m={};function v(t,r){return o.coerce(e,m,f,t,r)}var y=v(&quot;format&quot;),x=v(&quot;width&quot;),b=v(&quot;height&quot;),_=v(&quot;scale&quot;),w=v(&quot;setBackground&quot;),T=v(&quot;imageDataOnly&quot;),k=document.createElement(&quot;div&quot;);k.style.position=&quot;absolute&quot;,k.style.left=&quot;-5000px&quot;,document.body.appendChild(k);var M=o.extendFlat({},h);x?M.width=x:null===e.width&amp;&amp;n(d.width)&amp;&amp;(M.width=d.width),b?M.height=b:null===e.height&amp;&amp;n(d.height)&amp;&amp;(M.height=d.height);var A=o.extendFlat({},p,{_exportedPlot:!0,staticPlot:!0,setBackground:w}),S=s.getRedrawFunc(k);function E(){return new Promise((function(t){setTimeout(t,s.getDelay(k._fullLayout))}))}function C(){return new Promise((function(t,e){var r=l(k,y,_),n=k._fullLayout.width,f=k._fullLayout.height;function h(){i.purge(k),document.body.removeChild(k)}if(&quot;full-json&quot;===y){var p=a.graphJson(k,!1,&quot;keepdata&quot;,&quot;object&quot;,!0,!0);return p.version=u,p=JSON.stringify(p),h(),t(T?p:s.encodeJSON(p))}if(h(),&quot;svg&quot;===y)return t(T?r:s.encodeSVG(r));var d=document.createElement(&quot;canvas&quot;);d.id=o.randstr(),c({format:y,width:n,height:f,scale:_,canvas:d,svg:r,promise:!0}).then(t).catch(e)}))}return new Promise((function(t,e){i.plot(k,r,M,A).then(S).then(E).then(C).then((function(e){t(function(t){return T?t.replace(s.IMAGE_URL_PREFIX,&quot;&quot;):t}(e))})).catch((function(t){e(t)}))}))}},{&quot;../lib&quot;:778,&quot;../plots/plots&quot;:891,&quot;../snapshot/helpers&quot;:915,&quot;../snapshot/svgtoimg&quot;:917,&quot;../snapshot/tosvg&quot;:919,&quot;../version&quot;:1370,&quot;./plot_api&quot;:814,&quot;fast-isnumeric&quot;:241}],821:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/plots&quot;),a=t(&quot;./plot_schema&quot;),o=t(&quot;./plot_config&quot;).dfltConfig,s=n.isPlainObject,l=Array.isArray,c=n.isArrayOrTypedArray;function u(t,e,r,i,a,o){o=o||[];for(var f=Object.keys(t),h=0;h&lt;f.length;h++){var p=f[h];if(&quot;transforms&quot;!==p){var v=o.slice();v.push(p);var y=t[p],x=e[p],b=m(r,p),_=(b||{}).valType,w=&quot;info_array&quot;===_,T=&quot;colorscale&quot;===_,k=(b||{}).items;if(g(r,p))if(s(y)&amp;&amp;s(x)&amp;&amp;&quot;any&quot;!==_)u(y,x,b,i,a,v);else if(w&amp;&amp;l(y)){y.length&gt;x.length&amp;&amp;i.push(d(&quot;unused&quot;,a,v.concat(x.length)));var M,A,S,E,C,L=x.length,I=Array.isArray(k);if(I&amp;&amp;(L=Math.min(L,k.length)),2===b.dimensions)for(A=0;A&lt;L;A++)if(l(y[A])){y[A].length&gt;x[A].length&amp;&amp;i.push(d(&quot;unused&quot;,a,v.concat(A,x[A].length)));var P=x[A].length;for(M=0;M&lt;(I?Math.min(P,k[A].length):P);M++)S=I?k[A][M]:k,E=y[A][M],C=x[A][M],n.validate(E,S)?C!==E&amp;&amp;C!==+E&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v.concat(A,M),E,C)):i.push(d(&quot;value&quot;,a,v.concat(A,M),E))}else i.push(d(&quot;array&quot;,a,v.concat(A),y[A]));else for(A=0;A&lt;L;A++)S=I?k[A]:k,E=y[A],C=x[A],n.validate(E,S)?C!==E&amp;&amp;C!==+E&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v.concat(A),E,C)):i.push(d(&quot;value&quot;,a,v.concat(A),E))}else if(b.items&amp;&amp;!w&amp;&amp;l(y)){var z,O,D=k[Object.keys(k)[0]],R=[];for(z=0;z&lt;x.length;z++){var F=x[z]._index||z;if((O=v.slice()).push(F),s(y[F])&amp;&amp;s(x[z])){R.push(F);var B=y[F],N=x[z];s(B)&amp;&amp;!1!==B.visible&amp;&amp;!1===N.visible?i.push(d(&quot;invisible&quot;,a,O)):u(B,N,D,i,a,O)}}for(z=0;z&lt;y.length;z++)(O=v.slice()).push(z),s(y[z])?-1===R.indexOf(z)&amp;&amp;i.push(d(&quot;unused&quot;,a,O)):i.push(d(&quot;object&quot;,a,O,y[z]))}else!s(y)&amp;&amp;s(x)?i.push(d(&quot;object&quot;,a,v,y)):c(y)||!c(x)||w||T?p in e?n.validate(y,b)?&quot;enumerated&quot;===b.valType&amp;&amp;(b.coerceNumber&amp;&amp;y!==+x||y!==x)&amp;&amp;i.push(d(&quot;dynamic&quot;,a,v,y,x)):i.push(d(&quot;value&quot;,a,v,y)):i.push(d(&quot;unused&quot;,a,v,y)):i.push(d(&quot;array&quot;,a,v,y));else i.push(d(&quot;schema&quot;,a,v))}}return i}function f(t,e){for(var r=t.layout.layoutAttributes,i=0;i&lt;e.length;i++){var a=e[i],o=t.traces[a.type],s=o.layoutAttributes;s&amp;&amp;(a.subplot?n.extendFlat(r[o.attributes.subplot.dflt],s):n.extendFlat(r,s))}return r}e.exports=function(t,e){void 0===t&amp;&amp;(t=[]),void 0===e&amp;&amp;(e={});var r,c,h=a.get(),p=[],g={_context:n.extendFlat({},o)};l(t)?(g.data=n.extendDeep([],t),r=t):(g.data=[],r=[],p.push(d(&quot;array&quot;,&quot;data&quot;))),s(e)?(g.layout=n.extendDeep({},e),c=e):(g.layout={},c={},arguments.length&gt;1&amp;&amp;p.push(d(&quot;object&quot;,&quot;layout&quot;))),i.supplyDefaults(g);for(var m=g._fullData,v=r.length,y=0;y&lt;v;y++){var x=r[y],b=[&quot;data&quot;,y];if(s(x)){var _=m[y],w=_.type,T=h.traces[w].attributes;T.type={valType:&quot;enumerated&quot;,values:[w]},!1===_.visible&amp;&amp;!1!==x.visible&amp;&amp;p.push(d(&quot;invisible&quot;,b)),u(x,_,T,p,b);var k=x.transforms,M=_.transforms;if(k){l(k)||p.push(d(&quot;array&quot;,b,[&quot;transforms&quot;])),b.push(&quot;transforms&quot;);for(var A=0;A&lt;k.length;A++){var S=[&quot;transforms&quot;,A],E=k[A].type;if(s(k[A])){var C=h.transforms[E]?h.transforms[E].attributes:{};C.type={valType:&quot;enumerated&quot;,values:Object.keys(h.transforms)},u(k[A],M[A],C,p,b,S)}else p.push(d(&quot;object&quot;,b,S))}}}else p.push(d(&quot;object&quot;,b))}var L=g._fullLayout,I=f(h,m);return u(c,L,I,p,&quot;layout&quot;),0===p.length?void 0:p};var h={object:function(t,e){return(&quot;layout&quot;===t&amp;&amp;&quot;&quot;===e?&quot;The layout argument&quot;:&quot;data&quot;===t[0]&amp;&amp;&quot;&quot;===e?&quot;Trace &quot;+t[1]+&quot; in the data argument&quot;:p(t)+&quot;key &quot;+e)+&quot; must be linked to an object container&quot;},array:function(t,e){return(&quot;data&quot;===t?&quot;The data argument&quot;:p(t)+&quot;key &quot;+e)+&quot; must be linked to an array container&quot;},schema:function(t,e){return p(t)+&quot;key &quot;+e+&quot; is not part of the schema&quot;},unused:function(t,e,r){var n=s(r)?&quot;container&quot;:&quot;key&quot;;return p(t)+n+&quot; &quot;+e+&quot; did not get coerced&quot;},dynamic:function(t,e,r,n){return[p(t)+&quot;key&quot;,e,&quot;(set to '&quot;+r+&quot;')&quot;,&quot;got reset to&quot;,&quot;'&quot;+n+&quot;'&quot;,&quot;during defaults.&quot;].join(&quot; &quot;)},invisible:function(t,e){return(e?p(t)+&quot;item &quot;+e:&quot;Trace &quot;+t[1])+&quot; got defaulted to be not visible&quot;},value:function(t,e,r){return[p(t)+&quot;key &quot;+e,&quot;is set to an invalid value (&quot;+r+&quot;)&quot;].join(&quot; &quot;)}};function p(t){return l(t)?&quot;In data trace &quot;+t[1]+&quot;, &quot;:&quot;In &quot;+t+&quot;, &quot;}function d(t,e,r,i,a){var o,s;r=r||&quot;&quot;,l(e)?(o=e[0],s=e[1]):(o=e,s=null);var c=function(t){if(!l(t))return String(t);for(var e=&quot;&quot;,r=0;r&lt;t.length;r++){var n=t[r];&quot;number&quot;==typeof n?e=e.substr(0,e.length-1)+&quot;[&quot;+n+&quot;]&quot;:e+=n,r&lt;t.length-1&amp;&amp;(e+=&quot;.&quot;)}return e}(r),u=h[t](e,c,i,a);return n.log(u),{code:t,container:o,trace:s,path:r,astr:c,msg:u}}function g(t,e){var r=y(e),n=r.keyMinusId,i=r.id;return!!(n in t&amp;&amp;t[n]._isSubplotObj&amp;&amp;i)||e in t}function m(t,e){return e in t?t[e]:t[y(e).keyMinusId]}var v=n.counterRegex(&quot;([a-z]+)&quot;);function y(t){var e=t.match(v);return{keyMinusId:e&amp;&amp;e[1],id:e&amp;&amp;e[2]}}},{&quot;../lib&quot;:778,&quot;../plots/plots&quot;:891,&quot;./plot_config&quot;:815,&quot;./plot_schema&quot;:816}],822:[function(t,e,r){&quot;use strict&quot;;e.exports={mode:{valType:&quot;enumerated&quot;,dflt:&quot;afterall&quot;,values:[&quot;immediate&quot;,&quot;next&quot;,&quot;afterall&quot;]},direction:{valType:&quot;enumerated&quot;,values:[&quot;forward&quot;,&quot;reverse&quot;],dflt:&quot;forward&quot;},fromcurrent:{valType:&quot;boolean&quot;,dflt:!1},frame:{duration:{valType:&quot;number&quot;,min:0,dflt:500},redraw:{valType:&quot;boolean&quot;,dflt:!0}},transition:{duration:{valType:&quot;number&quot;,min:0,dflt:500,editType:&quot;none&quot;},easing:{valType:&quot;enumerated&quot;,dflt:&quot;cubic-in-out&quot;,values:[&quot;linear&quot;,&quot;quad&quot;,&quot;cubic&quot;,&quot;sin&quot;,&quot;exp&quot;,&quot;circle&quot;,&quot;elastic&quot;,&quot;back&quot;,&quot;bounce&quot;,&quot;linear-in&quot;,&quot;quad-in&quot;,&quot;cubic-in&quot;,&quot;sin-in&quot;,&quot;exp-in&quot;,&quot;circle-in&quot;,&quot;elastic-in&quot;,&quot;back-in&quot;,&quot;bounce-in&quot;,&quot;linear-out&quot;,&quot;quad-out&quot;,&quot;cubic-out&quot;,&quot;sin-out&quot;,&quot;exp-out&quot;,&quot;circle-out&quot;,&quot;elastic-out&quot;,&quot;back-out&quot;,&quot;bounce-out&quot;,&quot;linear-in-out&quot;,&quot;quad-in-out&quot;,&quot;cubic-in-out&quot;,&quot;sin-in-out&quot;,&quot;exp-in-out&quot;,&quot;circle-in-out&quot;,&quot;elastic-in-out&quot;,&quot;back-in-out&quot;,&quot;bounce-in-out&quot;],editType:&quot;none&quot;},ordering:{valType:&quot;enumerated&quot;,values:[&quot;layout first&quot;,&quot;traces first&quot;],dflt:&quot;layout first&quot;,editType:&quot;none&quot;}}}},{}],823:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_template&quot;);e.exports=function(t,e,r){var a,o,s=r.name,l=r.inclusionAttr||&quot;visible&quot;,c=e[s],u=n.isArrayOrTypedArray(t[s])?t[s]:[],f=e[s]=[],h=i.arrayTemplater(e,s,l);for(a=0;a&lt;u.length;a++){var p=u[a];n.isPlainObject(p)?o=h.newItem(p):(o=h.newItem({}))[l]=!1,o._index=a,!1!==o[l]&amp;&amp;r.handleItemDefaults(p,o,e,r),f.push(o)}var d=h.defaultItems();for(a=0;a&lt;d.length;a++)(o=d[a])._index=f.length,r.handleItemDefaults({},o,e,r,{}),f.push(o);if(n.isArrayOrTypedArray(c)){var g=Math.min(c.length,f.length);for(a=0;a&lt;g;a++)n.relinkPrivateKeys(f[a],c[a])}return f}},{&quot;../lib&quot;:778,&quot;../plot_api/plot_template&quot;:817}],824:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../components/fx/attributes&quot;);e.exports={type:{valType:&quot;enumerated&quot;,values:[],dflt:&quot;scatter&quot;,editType:&quot;calc+clearAxisTypes&quot;,_noTemplating:!0},visible:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;legendonly&quot;],dflt:!0,editType:&quot;calc&quot;},showlegend:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;style&quot;},legendgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;style&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;style&quot;},name:{valType:&quot;string&quot;,editType:&quot;style&quot;},uid:{valType:&quot;string&quot;,editType:&quot;plot&quot;,anim:!0},ids:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;,anim:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},meta:{valType:&quot;any&quot;,arrayOk:!0,editType:&quot;plot&quot;},selectedpoints:{valType:&quot;any&quot;,editType:&quot;calc&quot;},hoverinfo:{valType:&quot;flaglist&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;],extras:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],arrayOk:!0,dflt:&quot;all&quot;,editType:&quot;none&quot;},hoverlabel:n.hoverlabel,stream:{token:{valType:&quot;string&quot;,noBlank:!0,strict:!0,editType:&quot;calc&quot;},maxpoints:{valType:&quot;number&quot;,min:0,max:1e4,dflt:500,editType:&quot;calc&quot;},editType:&quot;calc&quot;},transforms:{_isLinkedToArray:&quot;transform&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;}}},{&quot;../components/fx/attributes&quot;:674}],825:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=i.dateTime2ms,o=i.incrementMonth,s=t(&quot;../../constants/numerical&quot;).ONEAVGMONTH;e.exports=function(t,e,r,i){if(&quot;date&quot;!==e.type)return i;var l=t[r+&quot;periodalignment&quot;];if(!l)return i;var c,u=t[r+&quot;period&quot;];if(n(u)){if((u=+u)&lt;=0)return i}else if(&quot;string&quot;==typeof u&amp;&amp;&quot;M&quot;===u.charAt(0)){var f=+u.substring(1);if(!(f&gt;0&amp;&amp;Math.round(f)===f))return i;c=f}for(var h=e.calendar,p=&quot;start&quot;===l,d=&quot;end&quot;===l,g=t[r+&quot;period0&quot;],m=a(g,h)||0,v=[],y=i.length,x=0;x&lt;y;x++){var b,_,w,T=i[x];if(c){for(b=Math.round((T-m)/(c*s)),w=o(m,c*b,h);w&gt;T;)w=o(w,-c,h);for(;w&lt;=T;)w=o(w,c,h);_=o(w,-c,h)}else{for(w=m+(b=Math.round((T-m)/u))*u;w&gt;T;)w-=u;for(;w&lt;=T;)w+=u;_=w-u}v[x]=p?_:d?w:(_+w)/2}return v}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],826:[function(t,e,r){&quot;use strict&quot;;e.exports={xaxis:{valType:&quot;subplotid&quot;,dflt:&quot;x&quot;,editType:&quot;calc+clearAxisTypes&quot;},yaxis:{valType:&quot;subplotid&quot;,dflt:&quot;y&quot;,editType:&quot;calc+clearAxisTypes&quot;}}},{}],827:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).FP_SAFE,o=t(&quot;../../registry&quot;),s=t(&quot;./axis_ids&quot;),l=s.getFromId,c=s.isLinked;function u(t,e){var r,n,a=[],o=t._fullLayout,s=h(o,e,0),l=h(o,e,1),c=p(t,e),u=c.min,d=c.max;if(0===u.length||0===d.length)return i.simpleMap(e.range,e.r2l);var g=u[0].val,m=d[0].val;for(r=1;r&lt;u.length&amp;&amp;g===m;r++)g=Math.min(g,u[r].val);for(r=1;r&lt;d.length&amp;&amp;g===m;r++)m=Math.max(m,d[r].val);var v=!1;if(e.range){var y=i.simpleMap(e.range,e.r2l);v=y[1]&lt;y[0]}&quot;reversed&quot;===e.autorange&amp;&amp;(v=!0,e.autorange=!0);var x,b,_,w,T,k,M=e.rangemode,A=&quot;tozero&quot;===M,S=&quot;nonnegative&quot;===M,E=e._length,C=E/10,L=0;for(r=0;r&lt;u.length;r++)for(x=u[r],n=0;n&lt;d.length;n++)(k=(b=d[n]).val-x.val-f(e,x.val,b.val))&gt;0&amp;&amp;((T=E-s(x)-l(b))&gt;C?k/T&gt;L&amp;&amp;(_=x,w=b,L=k/T):k/E&gt;L&amp;&amp;(_={val:x.val,nopad:1},w={val:b.val,nopad:1},L=k/E));if(g===m){var I=g-1,P=g+1;if(A)if(0===g)a=[0,1];else{var z=(g&gt;0?d:u).reduce((function(t,e){return Math.max(t,l(e))}),0),O=g/(1-Math.min(.5,z/E));a=g&gt;0?[0,O]:[O,0]}else a=S?[Math.max(0,I),Math.max(1,P)]:[I,P]}else A?(_.val&gt;=0&amp;&amp;(_={val:0,nopad:1}),w.val&lt;=0&amp;&amp;(w={val:0,nopad:1})):S&amp;&amp;(_.val-L*s(_)&lt;0&amp;&amp;(_={val:0,nopad:1}),w.val&lt;=0&amp;&amp;(w={val:1,nopad:1})),L=(w.val-_.val-f(e,x.val,b.val))/(E-s(_)-l(w)),a=[_.val-L*s(_),w.val+L*l(w)];return v&amp;&amp;a.reverse(),i.simpleMap(a,e.l2r||Number)}function f(t,e,r){var n=0;if(t.rangebreaks)for(var i=t.locateBreaks(e,r),a=0;a&lt;i.length;a++){var o=i[a];n+=o.max-o.min}return n}function h(t,e,r){var n=.05*e._length,a=e._anchorAxis||{};if(-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)||-1!==(a.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)){var o=&quot;reversed&quot;===e.autorange;if(!o){var s=i.simpleMap(e.range,e.r2l);o=s[1]&lt;s[0]}o&amp;&amp;(r=!r)}var l=0;return c(t,e._id)||(l=function(t,e){var r=0,n=t._anchorAxis||{};if(-1!==(n.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;(!e&amp;&amp;(&quot;left&quot;===n.side||&quot;bottom&quot;===n.side)||e&amp;&amp;(&quot;top&quot;===n.side||&quot;right&quot;===n.side))){var a=&quot;x&quot;===t._id.charAt(0);if(n._vals){var o=i.deg2rad(n._tickAngles[n._id+&quot;tick&quot;]||0),s=Math.abs(Math.cos(o)),l=Math.abs(Math.sin(o));n._vals.forEach((function(t){if(t.bb){var e=6+t.bb.width,n=6+t.bb.height;r=Math.max(r,a?Math.max(e*s,n*l):Math.max(n*s,e*l))}}))}&quot;inside&quot;===n.ticks&amp;&amp;&quot;inside&quot;===n.ticklabelposition&amp;&amp;(r+=n.ticklen||0)}return r}(e,r)),n=Math.max(l,n),&quot;domain&quot;===e.constrain&amp;&amp;e._inputDomain&amp;&amp;(n*=(e._inputDomain[1]-e._inputDomain[0])/(e.domain[1]-e.domain[0])),function(t){return t.nopad?0:t.pad+(t.extrapad?n:l)}}e.exports={getAutoRange:u,makePadFn:h,doAutoRange:function(t,e,r){if(e.setScale(),e.autorange){e.range=r?r.slice():u(t,e),e._r=e.range.slice(),e._rl=i.simpleMap(e._r,e.r2l);var n=e._input,a={};a[e._attr+&quot;.range&quot;]=e.range,a[e._attr+&quot;.autorange&quot;]=e.autorange,o.call(&quot;_storeDirectGUIEdit&quot;,t.layout,t._fullLayout._preGUI,a),n.range=e.range.slice(),n.autorange=e.autorange}var s=e._anchorAxis;if(s&amp;&amp;s.rangeslider){var l=s.rangeslider[e._name];l&amp;&amp;&quot;auto&quot;===l.rangemode&amp;&amp;(l.range=u(t,e)),s._input.rangeslider[e._name]=i.extendFlat({},l)}},findExtremes:function(t,e,r){r||(r={});t._m||t.setScale();var i,o,s,l,c,u,f,h,p,m=[],y=[],x=e.length,b=r.padded||!1,_=r.tozero&amp;&amp;(&quot;linear&quot;===t.type||&quot;-&quot;===t.type),w=&quot;log&quot;===t.type,T=!1,k=r.vpadLinearized||!1;function M(t){if(Array.isArray(t))return T=!0,function(e){return Math.max(Number(t[e]||0),0)};var e=Math.max(Number(t||0),0);return function(){return e}}var A=M((t._m&gt;0?r.ppadplus:r.ppadminus)||r.ppad||0),S=M((t._m&gt;0?r.ppadminus:r.ppadplus)||r.ppad||0),E=M(r.vpadplus||r.vpad),C=M(r.vpadminus||r.vpad);if(!T){if(h=1/0,p=-1/0,w)for(i=0;i&lt;x;i++)(o=e[i])&lt;h&amp;&amp;o&gt;0&amp;&amp;(h=o),o&gt;p&amp;&amp;o&lt;a&amp;&amp;(p=o);else for(i=0;i&lt;x;i++)(o=e[i])&lt;h&amp;&amp;o&gt;-a&amp;&amp;(h=o),o&gt;p&amp;&amp;o&lt;a&amp;&amp;(p=o);e=[h,p],x=2}var L={tozero:_,extrapad:b};function I(r){s=e[r],n(s)&amp;&amp;(u=A(r),f=S(r),k?(l=t.c2l(s)-C(r),c=t.c2l(s)+E(r)):(h=s-C(r),p=s+E(r),w&amp;&amp;h&lt;p/10&amp;&amp;(h=p/10),l=t.c2l(h),c=t.c2l(p)),_&amp;&amp;(l=Math.min(0,l),c=Math.max(0,c)),v(l)&amp;&amp;d(m,l,f,L),v(c)&amp;&amp;g(y,c,u,L))}var P=Math.min(6,x);for(i=0;i&lt;P;i++)I(i);for(i=x-1;i&gt;=P;i--)I(i);return{min:m,max:y,opts:r}},concatExtremes:p};function p(t,e,r){var n,i,a,o=e._id,s=t._fullData,c=t._fullLayout,u=[],f=[];function h(t,e){for(n=0;n&lt;e.length;n++){var r=t[e[n]],s=(r._extremes||{})[o];if(!0===r.visible&amp;&amp;s){for(i=0;i&lt;s.min.length;i++)a=s.min[i],d(u,a.val,a.pad,{extrapad:a.extrapad});for(i=0;i&lt;s.max.length;i++)a=s.max[i],g(f,a.val,a.pad,{extrapad:a.extrapad})}}}if(h(s,e._traceIndices),h(c.annotations||[],e._annIndices||[]),h(c.shapes||[],e._shapeIndices||[]),e._matchGroup&amp;&amp;!r)for(var m in e._matchGroup)if(m!==e._id){var v=l(t,m),y=p(t,v,!0),x=e._length/v._length;for(i=0;i&lt;y.min.length;i++)a=y.min[i],d(u,a.val,a.pad*x,{extrapad:a.extrapad});for(i=0;i&lt;y.max.length;i++)a=y.max[i],g(f,a.val,a.pad*x,{extrapad:a.extrapad})}return{min:u,max:f}}function d(t,e,r,n){m(t,e,r,n,y)}function g(t,e,r,n){m(t,e,r,n,x)}function m(t,e,r,n,i){for(var a=n.tozero,o=n.extrapad,s=!0,l=0;l&lt;t.length&amp;&amp;s;l++){var c=t[l];if(i(c.val,e)&amp;&amp;c.pad&gt;=r&amp;&amp;(c.extrapad||!o)){s=!1;break}i(e,c.val)&amp;&amp;c.pad&lt;=r&amp;&amp;(o||!c.extrapad)&amp;&amp;(t.splice(l,1),l--)}if(s){var u=a&amp;&amp;0===e;t.push({val:e,pad:u?0:r,extrapad:!u&amp;&amp;o})}}function v(t){return n(t)&amp;&amp;Math.abs(t)&lt;a}function y(t,e){return t&lt;=e}function x(t,e){return t&gt;=e}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./axis_ids&quot;:831,&quot;fast-isnumeric&quot;:241}],828:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../plots/plots&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/titles&quot;),f=t(&quot;../../components/color&quot;),h=t(&quot;../../components/drawing&quot;),p=t(&quot;./layout_attributes&quot;),d=t(&quot;./clean_ticks&quot;),g=t(&quot;../../constants/numerical&quot;),m=g.ONEMAXYEAR,v=g.ONEAVGYEAR,y=g.ONEMINYEAR,x=g.ONEMAXQUARTER,b=g.ONEAVGQUARTER,_=g.ONEMINQUARTER,w=g.ONEMAXMONTH,T=g.ONEAVGMONTH,k=g.ONEMINMONTH,M=g.ONEWEEK,A=g.ONEDAY,S=A/2,E=g.ONEHOUR,C=g.ONEMIN,L=g.ONESEC,I=g.MINUS_SIGN,P=g.BADNUM,z=t(&quot;../../constants/alignment&quot;),O=z.MID_SHIFT,D=z.CAP_SHIFT,R=z.LINE_SPACING,F=z.OPPOSITE_SIDE,B=e.exports={};B.setConvert=t(&quot;./set_convert&quot;);var N=t(&quot;./axis_autotype&quot;),j=t(&quot;./axis_ids&quot;),U=j.idSort,V=j.isLinked;B.id2name=j.id2name,B.name2id=j.name2id,B.cleanId=j.cleanId,B.list=j.list,B.listIds=j.listIds,B.getFromId=j.getFromId,B.getFromTrace=j.getFromTrace;var q=t(&quot;./autorange&quot;);B.getAutoRange=q.getAutoRange,B.findExtremes=q.findExtremes;function H(t){var e=1e-4*(t[1]-t[0]);return[t[0]-e,t[1]+e]}B.coerceRef=function(t,e,r,n,i,a){var o=n.charAt(n.length-1),l=r._fullLayout._subplots[o+&quot;axis&quot;],c=n+&quot;ref&quot;,u={};return i||(i=l[0]||(&quot;string&quot;==typeof a?a:a[0])),a||(a=i),l=l.concat(l.map((function(t){return t+&quot; domain&quot;}))),u[c]={valType:&quot;enumerated&quot;,values:l.concat(a?&quot;string&quot;==typeof a?[a]:a:[]),dflt:i},s.coerce(t,e,u,c)},B.getRefType=function(t){return void 0===t?t:&quot;paper&quot;===t?&quot;paper&quot;:&quot;pixel&quot;===t?&quot;pixel&quot;:/( domain)$/.test(t)?&quot;domain&quot;:&quot;range&quot;},B.coercePosition=function(t,e,r,n,i,a){var o,l;if(&quot;range&quot;!==B.getRefType(n))o=s.ensureNumber,l=r(i,a);else{var c=B.getFromId(e,n);l=r(i,a=c.fraction2r(a)),o=c.cleanPos}t[i]=o(l)},B.cleanPosition=function(t,e,r){return(&quot;paper&quot;===r||&quot;pixel&quot;===r?s.ensureNumber:B.getFromId(e,r).cleanPos)(t)},B.redrawComponents=function(t,e){e=e||B.listIds(t);var r=t._fullLayout;function n(n,i,a,s){for(var l=o.getComponentMethod(n,i),c={},u=0;u&lt;e.length;u++)for(var f=r[B.id2name(e[u])][a],h=0;h&lt;f.length;h++){var p=f[h];if(!c[p]&amp;&amp;(l(t,p),c[p]=1,s))return}}n(&quot;annotations&quot;,&quot;drawOne&quot;,&quot;_annIndices&quot;),n(&quot;shapes&quot;,&quot;drawOne&quot;,&quot;_shapeIndices&quot;),n(&quot;images&quot;,&quot;draw&quot;,&quot;_imgIndices&quot;,!0)};var G=B.getDataConversions=function(t,e,r,n){var i,a=&quot;x&quot;===r||&quot;y&quot;===r||&quot;z&quot;===r?r:n;if(Array.isArray(a)){if(i={type:N(n,void 0,{autotypenumbers:t._fullLayout.autotypenumbers}),_categories:[]},B.setConvert(i),&quot;category&quot;===i.type)for(var o=0;o&lt;n.length;o++)i.d2c(n[o])}else i=B.getFromTrace(t,e,a);return i?{d2c:i.d2c,c2d:i.c2d}:&quot;ids&quot;===a?{d2c:W,c2d:W}:{d2c:Y,c2d:Y}};function Y(t){return+t}function W(t){return String(t)}function X(t){return+t.substring(1)}B.getDataToCoordFunc=function(t,e,r,n){return G(t,e,r,n).d2c},B.counterLetter=function(t){var e=t.charAt(0);return&quot;x&quot;===e?&quot;y&quot;:&quot;y&quot;===e?&quot;x&quot;:void 0},B.minDtick=function(t,e,r,n){-1===[&quot;log&quot;,&quot;category&quot;,&quot;multicategory&quot;].indexOf(t.type)&amp;&amp;n?void 0===t._minDtick?(t._minDtick=e,t._forceTick0=r):t._minDtick&amp;&amp;((t._minDtick/e+1e-6)%1&lt;2e-6&amp;&amp;((r-t._forceTick0)/e%1+1.000001)%1&lt;2e-6?(t._minDtick=e,t._forceTick0=r):((e/t._minDtick+1e-6)%1&gt;2e-6||((r-t._forceTick0)/t._minDtick%1+1.000001)%1&gt;2e-6)&amp;&amp;(t._minDtick=0)):t._minDtick=0},B.saveRangeInitial=function(t,e){for(var r=B.list(t,&quot;&quot;,!0),n=!1,i=0;i&lt;r.length;i++){var a=r[i],o=void 0===a._rangeInitial,s=o||!(a.range[0]===a._rangeInitial[0]&amp;&amp;a.range[1]===a._rangeInitial[1]);(o&amp;&amp;!1===a.autorange||e&amp;&amp;s)&amp;&amp;(a._rangeInitial=a.range.slice(),n=!0)}return n},B.saveShowSpikeInitial=function(t,e){for(var r=B.list(t,&quot;&quot;,!0),n=!1,i=&quot;on&quot;,a=0;a&lt;r.length;a++){var o=r[a],s=void 0===o._showSpikeInitial,l=s||!(o.showspikes===o._showspikes);(s||e&amp;&amp;l)&amp;&amp;(o._showSpikeInitial=o.showspikes,n=!0),&quot;on&quot;!==i||o.showspikes||(i=&quot;off&quot;)}return t._fullLayout._cartesianSpikesEnabled=i,n},B.autoBin=function(t,e,r,n,a,o){var l,c=s.aggNums(Math.min,null,t),u=s.aggNums(Math.max,null,t);if(&quot;category&quot;===e.type||&quot;multicategory&quot;===e.type)return{start:c-.5,end:u+.5,size:Math.max(1,Math.round(o)||1),_dataSpan:u-c};if(a||(a=e.calendar),l=&quot;log&quot;===e.type?{type:&quot;linear&quot;,range:[c,u]}:{type:e.type,range:s.simpleMap([c,u],e.c2r,0,a),calendar:a},B.setConvert(l),o=o&amp;&amp;d.dtick(o,l.type))l.dtick=o,l.tick0=d.tick0(void 0,l.type,a);else{var f;if(r)f=(u-c)/r;else{var h=s.distinctVals(t),p=Math.pow(10,Math.floor(Math.log(h.minDiff)/Math.LN10)),g=p*s.roundUp(h.minDiff/p,[.9,1.9,4.9,9.9],!0);f=Math.max(g,2*s.stdev(t)/Math.pow(t.length,n?.25:.4)),i(f)||(f=1)}B.autoTicks(l,f)}var m,v=l.dtick,y=B.tickIncrement(B.tickFirst(l),v,&quot;reverse&quot;,a);if(&quot;number&quot;==typeof v)m=(y=function(t,e,r,n,a){var o=0,s=0,l=0,c=0;function u(e){return(1+100*(e-t)/r.dtick)%100&lt;2}for(var f=0;f&lt;e.length;f++)e[f]%1==0?l++:i(e[f])||c++,u(e[f])&amp;&amp;o++,u(e[f]+r.dtick/2)&amp;&amp;s++;var h=e.length-c;if(l===h&amp;&amp;&quot;date&quot;!==r.type)r.dtick&lt;1?t=n-.5*r.dtick:(t-=.5)+r.dtick&lt;n&amp;&amp;(t+=r.dtick);else if(s&lt;.1*h&amp;&amp;(o&gt;.3*h||u(n)||u(a))){var p=r.dtick/2;t+=t+p&lt;n?p:-p}return t}(y,t,l,c,u))+(1+Math.floor((u-y)/v))*v;else for(&quot;M&quot;===l.dtick.charAt(0)&amp;&amp;(y=function(t,e,r,n,i){var a=s.findExactDates(e,i);if(a.exactDays&gt;.8){var o=Number(r.substr(1));a.exactYears&gt;.8&amp;&amp;o%12==0?t=B.tickIncrement(t,&quot;M6&quot;,&quot;reverse&quot;)+1.5*A:a.exactMonths&gt;.8?t=B.tickIncrement(t,&quot;M1&quot;,&quot;reverse&quot;)+15.5*A:t-=S;var l=B.tickIncrement(t,r);if(l&lt;=n)return l}return t}(y,t,v,c,a)),m=y,0;m&lt;=u;)m=B.tickIncrement(m,v,!1,a);return{start:e.c2r(y,0,a),end:e.c2r(m,0,a),size:v,_dataSpan:u-c}},B.prepTicks=function(t,e){var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if(t._dtickInit=t.dtick,t._tick0Init=t.tick0,&quot;auto&quot;===t.tickmode||!t.dtick){var n,a=t.nticks;a||(&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?(n=t.tickfont?1.2*(t.tickfont.size||12):15,a=t._length/n):(n=&quot;y&quot;===t._id.charAt(0)?40:80,a=s.constrain(t._length/n,4,9)+1),&quot;radialaxis&quot;===t._name&amp;&amp;(a*=2)),&quot;array&quot;===t.tickmode&amp;&amp;(a*=100),t._roughDTick=Math.abs(r[1]-r[0])/a,B.autoTicks(t,t._roughDTick),t._minDtick&gt;0&amp;&amp;t.dtick&lt;2*t._minDtick&amp;&amp;(t.dtick=t._minDtick,t.tick0=t.l2r(t._forceTick0))}&quot;period&quot;===t.ticklabelmode&amp;&amp;function(t){var e;function r(){return!(i(t.dtick)||&quot;M&quot;!==t.dtick.charAt(0))}var n=r(),a=B.getTickFormat(t);if(a){var o=t._dtickInit!==t.dtick;/%[fLQsSMX]/.test(a)||(/%[HI]/.test(a)?(e=E,o&amp;&amp;!n&amp;&amp;t.dtick&lt;E&amp;&amp;(t.dtick=E)):/%p/.test(a)?(e=S,o&amp;&amp;!n&amp;&amp;t.dtick&lt;S&amp;&amp;(t.dtick=S)):/%[Aadejuwx]/.test(a)?(e=A,o&amp;&amp;!n&amp;&amp;t.dtick&lt;A&amp;&amp;(t.dtick=A)):/%[UVW]/.test(a)?(e=M,o&amp;&amp;!n&amp;&amp;t.dtick&lt;M&amp;&amp;(t.dtick=M)):/%[Bbm]/.test(a)?(e=T,o&amp;&amp;(n?X(t.dtick)&lt;1:t.dtick&lt;k)&amp;&amp;(t.dtick=&quot;M1&quot;)):/%[q]/.test(a)?(e=b,o&amp;&amp;(n?X(t.dtick)&lt;3:t.dtick&lt;_)&amp;&amp;(t.dtick=&quot;M3&quot;)):/%[Yy]/.test(a)&amp;&amp;(e=v,o&amp;&amp;(n?X(t.dtick)&lt;12:t.dtick&lt;y)&amp;&amp;(t.dtick=&quot;M12&quot;)))}(n=r())&amp;&amp;t.tick0===t._dowTick0&amp;&amp;(t.tick0=t._rawTick0);t._definedDelta=e}(t),t.tick0||(t.tick0=&quot;date&quot;===t.type?&quot;2000-01-01&quot;:0),&quot;date&quot;===t.type&amp;&amp;t.dtick&lt;.1&amp;&amp;(t.dtick=.1),nt(t)},B.calcTicks=function(t,e){B.prepTicks(t,e);var r=s.simpleMap(t.range,t.r2l,void 0,void 0,e);if(&quot;array&quot;===t.tickmode)return function(t){var e=t.tickvals,r=t.ticktext,n=new Array(e.length),i=H(s.simpleMap(t.range,t.r2l)),a=Math.min(i[0],i[1]),o=Math.max(i[0],i[1]),l=0;Array.isArray(r)||(r=[]);var c=&quot;category&quot;===t.type?t.d2l_noadd:t.d2l;&quot;log&quot;===t.type&amp;&amp;&quot;L&quot;!==String(t.dtick).charAt(0)&amp;&amp;(t.dtick=&quot;L&quot;+Math.pow(10,Math.floor(Math.min(t.range[0],t.range[1]))-1));for(var u=0;u&lt;e.length;u++){var f=c(e[u]);f&gt;a&amp;&amp;f&lt;o&amp;&amp;(void 0===r[u]?n[l]=B.tickText(t,f):n[l]=it(t,f,String(r[u])),l++)}l&lt;e.length&amp;&amp;n.splice(l,e.length-l);t.rangebreaks&amp;&amp;(n=n.filter((function(e){return t.maskBreaks(e.x)!==P})));return n}(t);var n=H(r),a=n[0],o=n[1],l=r[1]&lt;r[0],c=Math.min(r[0],r[1]),u=Math.max(r[0],r[1]),f=&quot;log&quot;===t.type&amp;&amp;!(i(t.dtick)||&quot;L&quot;===t.dtick.charAt(0)),h=&quot;period&quot;===t.ticklabelmode;if(t._tmin=B.tickFirst(t,e),t._tmin&lt;a!==l)return[];&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(o=l?Math.max(-.5,o):Math.min(t._categories.length-.5,o));var p=t._tmin;t.rangebreaks&amp;&amp;t._tick0Init!==t.tick0&amp;&amp;(p=wt(p,t),l||(p=B.tickIncrement(p,t.dtick,!l,t.calendar))),h&amp;&amp;(p=B.tickIncrement(p,t.dtick,!l,t.calendar));for(var d,g=Math.max(1e3,t._length||0),C=[],L=null;l?p&gt;=o:p&lt;=o;p=B.tickIncrement(p,t.dtick,l,t.calendar)){if(t.rangebreaks&amp;&amp;!l){if(p&lt;a)continue;if(t.maskBreaks(p)===P&amp;&amp;wt(p,t)&gt;=u)break}if(C.length&gt;g||p===L)break;L=p;var I=!1;f&amp;&amp;p!==(0|p)&amp;&amp;(I=!0),C.push({minor:I,value:p})}if(h&amp;&amp;function(t,e,r){for(var n=0;n&lt;t.length;n++){var i=t[n].value,a=n,o=n+1;n&lt;t.length-1?(a=n,o=n+1):n&gt;0?(a=n-1,o=n):(a=n,o=n);var s,l=t[a].value,c=t[o].value,u=Math.abs(c-l),f=r||u,h=0;f&gt;=y?h=u&gt;=y&amp;&amp;u&lt;=m?u:v:r===b&amp;&amp;f&gt;=_?h=u&gt;=_&amp;&amp;u&lt;=x?u:b:f&gt;=k?h=u&gt;=k&amp;&amp;u&lt;=w?u:T:r===M&amp;&amp;f&gt;=M?h=M:f&gt;=A?h=A:r===S&amp;&amp;f&gt;=S?h=S:r===E&amp;&amp;f&gt;=E&amp;&amp;(h=E),h&gt;=u&amp;&amp;(h=u,s=!0);var p=i+h;if(e.rangebreaks&amp;&amp;h&gt;0){for(var d=0,g=0;g&lt;84;g++){var C=(g+.5)/84;e.maskBreaks(i*(1-C)+C*p)!==P&amp;&amp;d++}(h*=d/84)||(t[n].drop=!0),s&amp;&amp;u&gt;M&amp;&amp;(h=u)}(h&gt;0||0===n)&amp;&amp;(t[n].periodX=i+h/2)}}(C,t,t._definedDelta),t.rangebreaks){var z=&quot;y&quot;===t._id.charAt(0),O=1;&quot;auto&quot;===t.tickmode&amp;&amp;(O=t.tickfont?t.tickfont.size:12);var D=NaN;for(d=C.length-1;d&gt;-1;d--)if(C[d].drop)C.splice(d,1);else{C[d].value=wt(C[d].value,t);var R=t.c2p(C[d].value);(z?D&gt;R-O:D&lt;R+O)?C.splice(l?d+1:d,1):D=R}}_t(t)&amp;&amp;360===Math.abs(r[1]-r[0])&amp;&amp;C.pop(),t._tmax=(C[C.length-1]||{}).value,t._prevDateHead=&quot;&quot;,t._inCalcTicks=!0;var F,N,j=[];for(d=0;d&lt;C.length;d++){var U=C[d].minor,V=C[d].value;F=B.tickText(t,V,!1,U),void 0!==(N=C[d].periodX)&amp;&amp;(F.periodX=N,(N&gt;u||N&lt;c)&amp;&amp;(N&gt;u&amp;&amp;(F.periodX=u),N&lt;c&amp;&amp;(F.periodX=c),F.text=&quot; &quot;,t._prevDateHead=&quot;&quot;)),j.push(F)}return t._inCalcTicks=!1,j};var Z=[2,5,10],J=[1,2,3,6,12],K=[1,2,5,10,15,30],Q=[1,2,3,7,14],$=[-.046,0,.301,.477,.602,.699,.778,.845,.903,.954,1],tt=[-.301,0,.301,.699,1],et=[15,30,45,90,180];function rt(t,e,r){return e*s.roundUp(t/e,r)}function nt(t){var e=t.dtick;if(t._tickexponent=0,i(e)||&quot;string&quot;==typeof e||(e=1),&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(t._tickround=null),&quot;date&quot;===t.type){var r=t.r2l(t.tick0),n=t.l2r(r).replace(/(^-|i)/g,&quot;&quot;),a=n.length;if(&quot;M&quot;===String(e).charAt(0))a&gt;10||&quot;01-01&quot;!==n.substr(5)?t._tickround=&quot;d&quot;:t._tickround=+e.substr(1)%12==0?&quot;y&quot;:&quot;m&quot;;else if(e&gt;=A&amp;&amp;a&lt;=10||e&gt;=15*A)t._tickround=&quot;d&quot;;else if(e&gt;=C&amp;&amp;a&lt;=16||e&gt;=E)t._tickround=&quot;M&quot;;else if(e&gt;=L&amp;&amp;a&lt;=19||e&gt;=C)t._tickround=&quot;S&quot;;else{var o=t.l2r(r+e).replace(/^-/,&quot;&quot;).length;t._tickround=Math.max(a,o)-20,t._tickround&lt;0&amp;&amp;(t._tickround=4)}}else if(i(e)||&quot;L&quot;===e.charAt(0)){var s=t.range.map(t.r2d||Number);i(e)||(e=Number(e.substr(1))),t._tickround=2-Math.floor(Math.log(e)/Math.LN10+.01);var l=Math.max(Math.abs(s[0]),Math.abs(s[1])),c=Math.floor(Math.log(l)/Math.LN10+.01),u=void 0===t.minexponent?3:t.minexponent;Math.abs(c)&gt;u&amp;&amp;(ot(t.exponentformat)&amp;&amp;!st(c)?t._tickexponent=3*Math.round((c-1)/3):t._tickexponent=c)}else t._tickround=null}function it(t,e,r){var n=t.tickfont||{};return{x:e,dx:0,dy:0,text:r||&quot;&quot;,fontSize:n.size,font:n.family,fontColor:n.color}}B.autoTicks=function(t,e){var r;function n(t){return Math.pow(t,Math.floor(Math.log(e)/Math.LN10))}if(&quot;date&quot;===t.type){t.tick0=s.dateTick0(t.calendar,0);var a=2*e;if(a&gt;v)e/=v,r=n(10),t.dtick=&quot;M&quot;+12*rt(e,r,Z);else if(a&gt;T)e/=T,t.dtick=&quot;M&quot;+rt(e,1,J);else if(a&gt;A){t.dtick=rt(e,A,t._hasDayOfWeekBreaks?[1,2,7,14]:Q);var o=B.getTickFormat(t),l=&quot;period&quot;===t.ticklabelmode;l&amp;&amp;(t._rawTick0=t.tick0),/%[uVW]/.test(o)?t.tick0=s.dateTick0(t.calendar,2):t.tick0=s.dateTick0(t.calendar,1),l&amp;&amp;(t._dowTick0=t.tick0)}else a&gt;E?t.dtick=rt(e,E,J):a&gt;C?t.dtick=rt(e,C,K):a&gt;L?t.dtick=rt(e,L,K):(r=n(10),t.dtick=rt(e,r,Z))}else if(&quot;log&quot;===t.type){t.tick0=0;var c=s.simpleMap(t.range,t.r2l);if(e&gt;.7)t.dtick=Math.ceil(e);else if(Math.abs(c[1]-c[0])&lt;1){var u=1.5*Math.abs((c[1]-c[0])/e);e=Math.abs(Math.pow(10,c[1])-Math.pow(10,c[0]))/u,r=n(10),t.dtick=&quot;L&quot;+rt(e,r,Z)}else t.dtick=e&gt;.3?&quot;D2&quot;:&quot;D1&quot;}else&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?(t.tick0=0,t.dtick=Math.ceil(Math.max(e,1))):_t(t)?(t.tick0=0,r=1,t.dtick=rt(e,r,et)):(t.tick0=0,r=n(10),t.dtick=rt(e,r,Z));if(0===t.dtick&amp;&amp;(t.dtick=1),!i(t.dtick)&amp;&amp;&quot;string&quot;!=typeof t.dtick){var f=t.dtick;throw t.dtick=1,&quot;ax.dtick error: &quot;+String(f)}},B.tickIncrement=function(t,e,r,a){var o=r?-1:1;if(i(e))return s.increment(t,o*e);var l=e.charAt(0),c=o*Number(e.substr(1));if(&quot;M&quot;===l)return s.incrementMonth(t,c,a);if(&quot;L&quot;===l)return Math.log(Math.pow(10,t)+c)/Math.LN10;if(&quot;D&quot;===l){var u=&quot;D2&quot;===e?tt:$,f=t+.01*o,h=s.roundUp(s.mod(f,1),u,r);return Math.floor(f)+Math.log(n.round(Math.pow(10,h),1))/Math.LN10}throw&quot;unrecognized dtick &quot;+String(e)},B.tickFirst=function(t,e){var r=t.r2l||Number,a=s.simpleMap(t.range,r,void 0,void 0,e),o=a[1]&lt;a[0],l=o?Math.floor:Math.ceil,c=H(a)[0],u=t.dtick,f=r(t.tick0);if(i(u)){var h=l((c-f)/u)*u+f;return&quot;category&quot;!==t.type&amp;&amp;&quot;multicategory&quot;!==t.type||(h=s.constrain(h,0,t._categories.length-1)),h}var p=u.charAt(0),d=Number(u.substr(1));if(&quot;M&quot;===p){for(var g,m,v,y=0,x=f;y&lt;10;){if(((g=B.tickIncrement(x,u,o,t.calendar))-c)*(x-c)&lt;=0)return o?Math.min(x,g):Math.max(x,g);m=(c-(x+g)/2)/(g-x),v=p+(Math.abs(Math.round(m))||1)*d,x=B.tickIncrement(x,v,m&lt;0?!o:o,t.calendar),y++}return s.error(&quot;tickFirst did not converge&quot;,t),x}if(&quot;L&quot;===p)return Math.log(l((Math.pow(10,c)-f)/d)*d+f)/Math.LN10;if(&quot;D&quot;===p){var b=&quot;D2&quot;===u?tt:$,_=s.roundUp(s.mod(c,1),b,o);return Math.floor(c)+Math.log(n.round(Math.pow(10,_),1))/Math.LN10}throw&quot;unrecognized dtick &quot;+String(u)},B.tickText=function(t,e,r,n){var a,o=it(t,e),l=&quot;array&quot;===t.tickmode,c=r||l,u=t.type,f=&quot;category&quot;===u?t.d2l_noadd:t.d2l;if(l&amp;&amp;Array.isArray(t.ticktext)){var h=s.simpleMap(t.range,t.r2l),p=(Math.abs(h[1]-h[0])-(t._lBreaks||0))/1e4;for(a=0;a&lt;t.ticktext.length&amp;&amp;!(Math.abs(e-f(t.tickvals[a]))&lt;p);a++);if(a&lt;t.ticktext.length)return o.text=String(t.ticktext[a]),o}function d(n){if(void 0===n)return!0;if(r)return&quot;none&quot;===n;var i={first:t._tmin,last:t._tmax}[n];return&quot;all&quot;!==n&amp;&amp;e!==i}var g=r?&quot;never&quot;:&quot;none&quot;!==t.exponentformat&amp;&amp;d(t.showexponent)?&quot;hide&quot;:&quot;&quot;;if(&quot;date&quot;===u?function(t,e,r,n){var a=t._tickround,o=r&amp;&amp;t.hoverformat||B.getTickFormat(t);n&amp;&amp;(a=i(a)?4:{y:&quot;m&quot;,m:&quot;d&quot;,d:&quot;M&quot;,M:&quot;S&quot;,S:4}[a]);var l,c=s.formatDate(e.x,o,a,t._dateFormat,t.calendar,t._extraFormat),u=c.indexOf(&quot;\n&quot;);-1!==u&amp;&amp;(l=c.substr(u+1),c=c.substr(0,u));n&amp;&amp;(&quot;00:00:00&quot;===c||&quot;00:00&quot;===c?(c=l,l=&quot;&quot;):8===c.length&amp;&amp;(c=c.replace(/:00$/,&quot;&quot;)));if(l)if(r)&quot;d&quot;===a?c+=&quot;, &quot;+l:c=l+(c?&quot;, &quot;+c:&quot;&quot;);else if(t._inCalcTicks&amp;&amp;t._prevDateHead===l){var f=-1!==(t.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;),h=t._realSide||t.side;(!f&amp;&amp;&quot;top&quot;===h||f&amp;&amp;&quot;bottom&quot;===h)&amp;&amp;(c+=&quot;&lt;br&gt; &quot;)}else t._prevDateHead=l,c+=&quot;&lt;br&gt;&quot;+l;e.text=c}(t,o,r,c):&quot;log&quot;===u?function(t,e,r,n,a){var o=t.dtick,l=e.x,c=t.tickformat,u=&quot;string&quot;==typeof o&amp;&amp;o.charAt(0);&quot;never&quot;===a&amp;&amp;(a=&quot;&quot;);n&amp;&amp;&quot;L&quot;!==u&amp;&amp;(o=&quot;L3&quot;,u=&quot;L&quot;);if(c||&quot;L&quot;===u)e.text=lt(Math.pow(10,l),t,a,n);else if(i(o)||&quot;D&quot;===u&amp;&amp;s.mod(l+.01,1)&lt;.1){var f=Math.round(l),h=Math.abs(f),p=t.exponentformat;&quot;power&quot;===p||ot(p)&amp;&amp;st(f)?(e.text=0===f?1:1===f?&quot;10&quot;:&quot;10&lt;sup&gt;&quot;+(f&gt;1?&quot;&quot;:I)+h+&quot;&lt;/sup&gt;&quot;,e.fontSize*=1.25):(&quot;e&quot;===p||&quot;E&quot;===p)&amp;&amp;h&gt;2?e.text=&quot;1&quot;+p+(f&gt;0?&quot;+&quot;:I)+h:(e.text=lt(Math.pow(10,l),t,&quot;&quot;,&quot;fakehover&quot;),&quot;D1&quot;===o&amp;&amp;&quot;y&quot;===t._id.charAt(0)&amp;&amp;(e.dy-=e.fontSize/6))}else{if(&quot;D&quot;!==u)throw&quot;unrecognized dtick &quot;+String(o);e.text=String(Math.round(Math.pow(10,s.mod(l,1)))),e.fontSize*=.75}if(&quot;D1&quot;===t.dtick){var d=String(e.text).charAt(0);&quot;0&quot;!==d&amp;&amp;&quot;1&quot;!==d||(&quot;y&quot;===t._id.charAt(0)?e.dx-=e.fontSize/4:(e.dy+=e.fontSize/2,e.dx+=(t.range[1]&gt;t.range[0]?1:-1)*e.fontSize*(l&lt;0?.5:.25)))}}(t,o,0,c,g):&quot;category&quot;===u?function(t,e){var r=t._categories[Math.round(e.x)];void 0===r&amp;&amp;(r=&quot;&quot;);e.text=String(r)}(t,o):&quot;multicategory&quot;===u?function(t,e,r){var n=Math.round(e.x),i=t._categories[n]||[],a=void 0===i[1]?&quot;&quot;:String(i[1]),o=void 0===i[0]?&quot;&quot;:String(i[0]);r?e.text=o+&quot; - &quot;+a:(e.text=a,e.text2=o)}(t,o,r):_t(t)?function(t,e,r,n,i){if(&quot;radians&quot;!==t.thetaunit||r)e.text=lt(e.x,t,i,n);else{var a=e.x/180;if(0===a)e.text=&quot;0&quot;;else{var o=function(t){function e(t,e){return Math.abs(t-e)&lt;=1e-6}var r=function(t){for(var r=1;!e(Math.round(t*r)/r,t);)r*=10;return r}(t),n=t*r,i=Math.abs(function t(r,n){return e(n,0)?r:t(n,r%n)}(n,r));return[Math.round(n/i),Math.round(r/i)]}(a);if(o[1]&gt;=100)e.text=lt(s.deg2rad(e.x),t,i,n);else{var l=e.x&lt;0;1===o[1]?1===o[0]?e.text=&quot;\u03c0&quot;:e.text=o[0]+&quot;\u03c0&quot;:e.text=[&quot;&lt;sup&gt;&quot;,o[0],&quot;&lt;/sup&gt;&quot;,&quot;\u2044&quot;,&quot;&lt;sub&gt;&quot;,o[1],&quot;&lt;/sub&gt;&quot;,&quot;\u03c0&quot;].join(&quot;&quot;),l&amp;&amp;(e.text=I+e.text)}}}}(t,o,r,c,g):function(t,e,r,n,i){&quot;never&quot;===i?i=&quot;&quot;:&quot;all&quot;===t.showexponent&amp;&amp;Math.abs(e.x/t.dtick)&lt;1e-6&amp;&amp;(i=&quot;hide&quot;);e.text=lt(e.x,t,i,n)}(t,o,0,c,g),n||(t.tickprefix&amp;&amp;!d(t.showtickprefix)&amp;&amp;(o.text=t.tickprefix+o.text),t.ticksuffix&amp;&amp;!d(t.showticksuffix)&amp;&amp;(o.text+=t.ticksuffix)),&quot;boundaries&quot;===t.tickson||t.showdividers){var m=function(e){var r=t.l2p(e);return r&gt;=0&amp;&amp;r&lt;=t._length?e:null};o.xbnd=[m(o.x-.5),m(o.x+t.dtick-.5)]}return o},B.hoverLabelText=function(t,e,r){if(r!==P&amp;&amp;r!==e)return B.hoverLabelText(t,e)+&quot; - &quot;+B.hoverLabelText(t,r);var n=&quot;log&quot;===t.type&amp;&amp;e&lt;=0,i=B.tickText(t,t.c2l(n?-e:e),&quot;hover&quot;).text;return n?0===e?&quot;0&quot;:I+i:i};var at=[&quot;f&quot;,&quot;p&quot;,&quot;n&quot;,&quot;\u03bc&quot;,&quot;m&quot;,&quot;&quot;,&quot;k&quot;,&quot;M&quot;,&quot;G&quot;,&quot;T&quot;];function ot(t){return&quot;SI&quot;===t||&quot;B&quot;===t}function st(t){return t&gt;14||t&lt;-15}function lt(t,e,r,n){var a=t&lt;0,o=e._tickround,l=r||e.exponentformat||&quot;B&quot;,c=e._tickexponent,u=B.getTickFormat(e),f=e.separatethousands;if(n){var h={exponentformat:l,minexponent:e.minexponent,dtick:&quot;none&quot;===e.showexponent?e.dtick:i(t)&amp;&amp;Math.abs(t)||1,range:&quot;none&quot;===e.showexponent?e.range.map(e.r2d):[0,t||1]};nt(h),o=(Number(h._tickround)||0)+4,c=h._tickexponent,e.hoverformat&amp;&amp;(u=e.hoverformat)}if(u)return e._numFormat(u)(t).replace(/-/g,I);var p,d=Math.pow(10,-o)/2;if(&quot;none&quot;===l&amp;&amp;(c=0),(t=Math.abs(t))&lt;d)t=&quot;0&quot;,a=!1;else{if(t+=d,c&amp;&amp;(t*=Math.pow(10,-c),o+=c),0===o)t=String(Math.floor(t));else if(o&lt;0){t=(t=String(Math.round(t))).substr(0,t.length+o);for(var g=o;g&lt;0;g++)t+=&quot;0&quot;}else{var m=(t=String(t)).indexOf(&quot;.&quot;)+1;m&amp;&amp;(t=t.substr(0,m+o).replace(/\.?0+$/,&quot;&quot;))}t=s.numSeparate(t,e._separators,f)}c&amp;&amp;&quot;hide&quot;!==l&amp;&amp;(ot(l)&amp;&amp;st(c)&amp;&amp;(l=&quot;power&quot;),p=c&lt;0?I+-c:&quot;power&quot;!==l?&quot;+&quot;+c:String(c),&quot;e&quot;===l||&quot;E&quot;===l?t+=l+p:&quot;power&quot;===l?t+=&quot;\xd710&lt;sup&gt;&quot;+p+&quot;&lt;/sup&gt;&quot;:&quot;B&quot;===l&amp;&amp;9===c?t+=&quot;B&quot;:ot(l)&amp;&amp;(t+=at[c/3+5]));return a?I+t:t}function ct(t,e){for(var r=[],n={},i=0;i&lt;e.length;i++){var a=e[i];n[a.text2]?n[a.text2].push(a.x):n[a.text2]=[a.x]}for(var o in n)r.push(it(t,s.interp(n[o],.5),o));return r}function ut(t){return void 0!==t.periodX?t.periodX:t.x}function ft(t){return[t.text,t.x,t.axInfo,t.font,t.fontSize,t.fontColor].join(&quot;_&quot;)}function ht(t){var e=t.title.font.size,r=(t.title.text.match(c.BR_TAG_ALL)||[]).length;return t.title.hasOwnProperty(&quot;standoff&quot;)?r?e*(D+r*R):e*D:r?e*(r+1)*R:e}function pt(t,e){var r=t.l2p(e);return r&gt;1&amp;&amp;r&lt;t._length-1}function dt(t){var e=n.select(t),r=e.select(&quot;.text-math-group&quot;);return r.empty()?e.select(&quot;text&quot;):r}function gt(t){return t._id+&quot;.automargin&quot;}function mt(t){return gt(t)+&quot;.mirror&quot;}function vt(t){return t._id+&quot;.rangeslider&quot;}function yt(t,e){for(var r=0;r&lt;e.length;r++)-1===t.indexOf(e[r])&amp;&amp;t.push(e[r])}function xt(t,e,r){var n,i,a=[],o=[],l=t.layout;for(n=0;n&lt;e.length;n++)a.push(B.getFromId(t,e[n]));for(n=0;n&lt;r.length;n++)o.push(B.getFromId(t,r[n]));var c=Object.keys(p),u=[&quot;anchor&quot;,&quot;domain&quot;,&quot;overlaying&quot;,&quot;position&quot;,&quot;side&quot;,&quot;tickangle&quot;,&quot;editType&quot;],f=[&quot;linear&quot;,&quot;log&quot;];for(n=0;n&lt;c.length;n++){var h=c[n],d=a[0][h],g=o[0][h],m=!0,v=!1,y=!1;if(&quot;_&quot;!==h.charAt(0)&amp;&amp;&quot;function&quot;!=typeof d&amp;&amp;-1===u.indexOf(h)){for(i=1;i&lt;a.length&amp;&amp;m;i++){var x=a[i][h];&quot;type&quot;===h&amp;&amp;-1!==f.indexOf(d)&amp;&amp;-1!==f.indexOf(x)&amp;&amp;d!==x?v=!0:x!==d&amp;&amp;(m=!1)}for(i=1;i&lt;o.length&amp;&amp;m;i++){var b=o[i][h];&quot;type&quot;===h&amp;&amp;-1!==f.indexOf(g)&amp;&amp;-1!==f.indexOf(b)&amp;&amp;g!==b?y=!0:o[i][h]!==g&amp;&amp;(m=!1)}m&amp;&amp;(v&amp;&amp;(l[a[0]._name].type=&quot;linear&quot;),y&amp;&amp;(l[o[0]._name].type=&quot;linear&quot;),bt(l,h,a,o,t._fullLayout._dfltTitle))}}for(n=0;n&lt;t._fullLayout.annotations.length;n++){var _=t._fullLayout.annotations[n];-1!==e.indexOf(_.xref)&amp;&amp;-1!==r.indexOf(_.yref)&amp;&amp;s.swapAttrs(l.annotations[n],[&quot;?&quot;])}}function bt(t,e,r,n,i){var a,o=s.nestedProperty,l=o(t[r[0]._name],e).get(),c=o(t[n[0]._name],e).get();for(&quot;title&quot;===e&amp;&amp;(l&amp;&amp;l.text===i.x&amp;&amp;(l.text=i.y),c&amp;&amp;c.text===i.y&amp;&amp;(c.text=i.x)),a=0;a&lt;r.length;a++)o(t,r[a]._name+&quot;.&quot;+e).set(c);for(a=0;a&lt;n.length;a++)o(t,n[a]._name+&quot;.&quot;+e).set(l)}function _t(t){return&quot;angularaxis&quot;===t._id}function wt(t,e){for(var r=e._rangebreaks.length,n=0;n&lt;r;n++){var i=e._rangebreaks[n];if(t&gt;=i.min&amp;&amp;t&lt;i.max)return i.max}return t}B.getTickFormat=function(t){var e,r,n,i,a,o,s,l;function c(t){return&quot;string&quot;!=typeof t?t:Number(t.replace(&quot;M&quot;,&quot;&quot;))*T}function u(t,e){var r=[&quot;L&quot;,&quot;D&quot;];if(typeof t==typeof e){if(&quot;number&quot;==typeof t)return t-e;var n=r.indexOf(t.charAt(0)),i=r.indexOf(e.charAt(0));return n===i?Number(t.replace(/(L|D)/g,&quot;&quot;))-Number(e.replace(/(L|D)/g,&quot;&quot;)):n-i}return&quot;number&quot;==typeof t?1:-1}function f(t,e){var r=null===e[0],n=null===e[1],i=u(t,e[0])&gt;=0,a=u(t,e[1])&lt;=0;return(r||i)&amp;&amp;(n||a)}if(t.tickformatstops&amp;&amp;t.tickformatstops.length&gt;0)switch(t.type){case&quot;date&quot;:case&quot;linear&quot;:for(e=0;e&lt;t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&amp;&amp;(i=t.dtick,a=n.dtickrange,o=void 0,s=void 0,l=void 0,o=c||function(t){return t},s=a[0],l=a[1],(!s&amp;&amp;&quot;number&quot;!=typeof s||o(s)&lt;=o(i))&amp;&amp;(!l&amp;&amp;&quot;number&quot;!=typeof l||o(l)&gt;=o(i)))){r=n;break}break;case&quot;log&quot;:for(e=0;e&lt;t.tickformatstops.length;e++)if((n=t.tickformatstops[e]).enabled&amp;&amp;f(t.dtick,n.dtickrange)){r=n;break}}return r?r.value:t.tickformat},B.getSubplots=function(t,e){var r=t._fullLayout._subplots,n=r.cartesian.concat(r.gl2d||[]),i=e?B.findSubplotsWithAxis(n,e):n;return i.sort((function(t,e){var r=t.substr(1).split(&quot;y&quot;),n=e.substr(1).split(&quot;y&quot;);return r[0]===n[0]?+r[1]-+n[1]:+r[0]-+n[0]})),i},B.findSubplotsWithAxis=function(t,e){for(var r=new RegExp(&quot;x&quot;===e._id.charAt(0)?&quot;^&quot;+e._id+&quot;y&quot;:e._id+&quot;$&quot;),n=[],i=0;i&lt;t.length;i++){var a=t[i];r.test(a)&amp;&amp;n.push(a)}return n},B.makeClipPaths=function(t){var e=t._fullLayout;if(!e._hasOnlyLargeSploms){var r,i,a={_offset:0,_length:e.width,_id:&quot;&quot;},o={_offset:0,_length:e.height,_id:&quot;&quot;},s=B.list(t,&quot;x&quot;,!0),l=B.list(t,&quot;y&quot;,!0),c=[];for(r=0;r&lt;s.length;r++)for(c.push({x:s[r],y:o}),i=0;i&lt;l.length;i++)0===r&amp;&amp;c.push({x:a,y:l[i]}),c.push({x:s[r],y:l[i]});var u=e._clips.selectAll(&quot;.axesclip&quot;).data(c,(function(t){return t.x._id+t.y._id}));u.enter().append(&quot;clipPath&quot;).classed(&quot;axesclip&quot;,!0).attr(&quot;id&quot;,(function(t){return&quot;clip&quot;+e._uid+t.x._id+t.y._id})).append(&quot;rect&quot;),u.exit().remove(),u.each((function(t){n.select(this).select(&quot;rect&quot;).attr({x:t.x._offset||0,y:t.y._offset||0,width:t.x._length||1,height:t.y._length||1})}))}},B.draw=function(t,e,r){var n=t._fullLayout;&quot;redraw&quot;===e&amp;&amp;n._paper.selectAll(&quot;g.subplot&quot;).each((function(t){var e=t[0],r=n._plots[e];if(r){var i=r.xaxis,a=r.yaxis;r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;tick&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;tick&quot;).remove(),r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;tick2&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;tick2&quot;).remove(),r.xaxislayer.selectAll(&quot;.&quot;+i._id+&quot;divider&quot;).remove(),r.yaxislayer.selectAll(&quot;.&quot;+a._id+&quot;divider&quot;).remove(),r.gridlayer&amp;&amp;r.gridlayer.selectAll(&quot;path&quot;).remove(),r.zerolinelayer&amp;&amp;r.zerolinelayer.selectAll(&quot;path&quot;).remove(),n._infolayer.select(&quot;.g-&quot;+i._id+&quot;title&quot;).remove(),n._infolayer.select(&quot;.g-&quot;+a._id+&quot;title&quot;).remove()}}));var i=e&amp;&amp;&quot;redraw&quot;!==e?e:B.listIds(t);return s.syncOrAsync(i.map((function(e){return function(){if(e){var n=B.getFromId(t,e),i=B.drawOne(t,n,r);return n._r=n.range.slice(),n._rl=s.simpleMap(n._r,n.r2l),i}}})))},B.drawOne=function(t,e,r){var n,i,l;r=r||{},e.setScale();var c=t._fullLayout,p=e._id,d=p.charAt(0),g=B.counterLetter(p),m=c._plots[e._mainSubplot];if(m){var v=m[d+&quot;axislayer&quot;],y=e._mainLinePosition,x=e._mainMirrorPosition,b=e._vals=B.calcTicks(e),_=[e.mirror,y,x].join(&quot;_&quot;);for(n=0;n&lt;b.length;n++)b[n].axInfo=_;e._selections={},e._tickAngles&amp;&amp;(e._prevTickAngles=e._tickAngles),e._tickAngles={},e._depth=null;var w={};if(e.visible){var T,k,M=B.makeTransTickFn(e),A=B.makeTransTickLabelFn(e),S=&quot;inside&quot;===e.ticks,E=&quot;outside&quot;===e.ticks;if(&quot;boundaries&quot;===e.tickson){var C=function(t,e){var r,n=[],i=function(t,e){var r=t.xbnd[e];null!==r&amp;&amp;n.push(s.extendFlat({},t,{x:r}))};if(e.length){for(r=0;r&lt;e.length;r++)i(e[r],0);i(e[r-1],1)}return n}(0,b);k=B.clipEnds(e,C),T=S?k:C}else k=B.clipEnds(e,b),T=S&amp;&amp;&quot;period&quot;!==e.ticklabelmode?k:b;var L=e._gridVals=k,I=function(t,e){var r,n,i=[],a=e.length&amp;&amp;e[e.length-1].x&lt;e[0].x,o=function(t,e){var r=t.xbnd[e];null!==r&amp;&amp;i.push(s.extendFlat({},t,{x:r}))};if(t.showdividers&amp;&amp;e.length){for(r=0;r&lt;e.length;r++){var l=e[r];l.text2!==n&amp;&amp;o(l,a?1:0),n=l.text2}o(e[r-1],a?0:1)}return i}(e,b);if(!c._hasOnlyLargeSploms){var P=e._subplotsWith,z={};for(n=0;n&lt;P.length;n++){i=P[n];var O=(l=c._plots[i])[g+&quot;axis&quot;],D=O._mainAxis._id;if(!z[D]){z[D]=1;var N=&quot;x&quot;===d?&quot;M0,&quot;+O._offset+&quot;v&quot;+O._length:&quot;M&quot;+O._offset+&quot;,0h&quot;+O._length;B.drawGrid(t,e,{vals:L,counterAxis:O,layer:l.gridlayer.select(&quot;.&quot;+p),path:N,transFn:M}),B.drawZeroLine(t,e,{counterAxis:O,layer:l.zerolinelayer,path:N,transFn:M})}}}var j=B.getTickSigns(e),U=[];if(e.ticks){var V,q,H,G=B.makeTickPath(e,y,j[2]);if(e._anchorAxis&amp;&amp;e.mirror&amp;&amp;!0!==e.mirror?(V=B.makeTickPath(e,x,j[3]),q=G+V):(V=&quot;&quot;,q=G),e.showdividers&amp;&amp;E&amp;&amp;&quot;boundaries&quot;===e.tickson){var Y={};for(n=0;n&lt;I.length;n++)Y[I[n].x]=1;H=function(t){return Y[t.x]?V:q}}else H=q;B.drawTicks(t,e,{vals:T,layer:v,path:H,transFn:M}),&quot;allticks&quot;===e.mirror&amp;&amp;(U=Object.keys(e._linepositions||{}))}for(n=0;n&lt;U.length;n++){i=U[n],l=c._plots[i];var W=e._linepositions[i]||[],X=B.makeTickPath(e,W[0],j[0])+B.makeTickPath(e,W[1],j[1]);B.drawTicks(t,e,{vals:T,layer:l[d+&quot;axislayer&quot;],path:X,transFn:M})}var Z=[];if(Z.push((function(){return B.drawLabels(t,e,{vals:b,layer:v,transFn:A,labelFns:B.makeLabelFns(e,y)})})),&quot;multicategory&quot;===e.type){var J={x:2,y:10}[d];Z.push((function(){var r={x:&quot;height&quot;,y:&quot;width&quot;}[d],n=Q()[r]+J+(e._tickAngles[p+&quot;tick&quot;]?e.tickfont.size*R:0);return B.drawLabels(t,e,{vals:ct(e,b),layer:v,cls:p+&quot;tick2&quot;,repositionOnUpdate:!0,secondary:!0,transFn:M,labelFns:B.makeLabelFns(e,y+n*j[4])})})),Z.push((function(){return e._depth=j[4]*(Q(&quot;tick2&quot;)[e.side]-y),function(t,e,r){var n=e._id+&quot;divider&quot;,i=r.vals,a=r.layer.selectAll(&quot;path.&quot;+n).data(i,ft);a.exit().remove(),a.enter().insert(&quot;path&quot;,&quot;:first-child&quot;).classed(n,1).classed(&quot;crisp&quot;,1).call(f.stroke,e.dividercolor).style(&quot;stroke-width&quot;,h.crispRound(t,e.dividerwidth,1)+&quot;px&quot;),a.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path)}(t,e,{vals:I,layer:v,path:B.makeTickPath(e,y,j[4],e._depth),transFn:M})}))}else e.title.hasOwnProperty(&quot;standoff&quot;)&amp;&amp;Z.push((function(){e._depth=j[4]*(Q()[e.side]-y)}));var K=o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(e);return Z.push((function(){var r,n,i,s,l=e.side.charAt(0),u=F[e.side].charAt(0),f=B.getPxPosition(t,e),h=E?e.ticklen:0;if((e.automargin||K)&amp;&amp;(&quot;multicategory&quot;===e.type?r=Q(&quot;tick2&quot;):(r=Q(),&quot;x&quot;===d&amp;&amp;&quot;b&quot;===l&amp;&amp;(e._depth=Math.max(r.width&gt;0?r.bottom-f:0,h)))),e.automargin){n={x:0,y:0,r:0,l:0,t:0,b:0};var p=[0,1];if(&quot;x&quot;===d){if(&quot;b&quot;===l?n[l]=e._depth:(n[l]=e._depth=Math.max(r.width&gt;0?f-r.top:0,h),p.reverse()),r.width&gt;0){var m=r.right-(e._offset+e._length);m&gt;0&amp;&amp;(n.xr=1,n.r=m);var v=e._offset-r.left;v&gt;0&amp;&amp;(n.xl=0,n.l=v)}}else if(&quot;l&quot;===l?n[l]=e._depth=Math.max(r.height&gt;0?f-r.left:0,h):(n[l]=e._depth=Math.max(r.height&gt;0?r.right-f:0,h),p.reverse()),r.height&gt;0){var y=r.bottom-(e._offset+e._length);y&gt;0&amp;&amp;(n.yb=0,n.b=y);var x=e._offset-r.top;x&gt;0&amp;&amp;(n.yt=1,n.t=x)}n[g]=&quot;free&quot;===e.anchor?e.position:e._anchorAxis.domain[p[0]],e.title.text!==c._dfltTitle[d]&amp;&amp;(n[l]+=ht(e)+(e.title.standoff||0)),e.mirror&amp;&amp;&quot;free&quot;!==e.anchor&amp;&amp;((i={x:0,y:0,r:0,l:0,t:0,b:0})[u]=e.linewidth,e.mirror&amp;&amp;!0!==e.mirror&amp;&amp;(i[u]+=h),!0===e.mirror||&quot;ticks&quot;===e.mirror?i[g]=e._anchorAxis.domain[p[1]]:&quot;all&quot;!==e.mirror&amp;&amp;&quot;allticks&quot;!==e.mirror||(i[g]=[e._counterDomainMin,e._counterDomainMax][p[1]]))}K&amp;&amp;(s=o.getComponentMethod(&quot;rangeslider&quot;,&quot;autoMarginOpts&quot;)(t,e)),a.autoMargin(t,gt(e),n),a.autoMargin(t,mt(e),i),a.autoMargin(t,vt(e),s)})),r.skipTitle||K&amp;&amp;&quot;bottom&quot;===e.side||Z.push((function(){return function(t,e){var r,n=t._fullLayout,i=e._id,a=i.charAt(0),o=e.title.font.size;if(e.title.hasOwnProperty(&quot;standoff&quot;))r=e._depth+e.title.standoff+ht(e);else{var s=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;);if(&quot;multicategory&quot;===e.type)r=e._depth;else{var l=1.5*o;s&amp;&amp;(l=.5*o,&quot;outside&quot;===e.ticks&amp;&amp;(l+=e.ticklen)),r=10+l+(e.linewidth?e.linewidth-1:0)}s||(r+=&quot;x&quot;===a?&quot;top&quot;===e.side?o*(e.showticklabels?1:0):o*(e.showticklabels?1.5:.5):&quot;right&quot;===e.side?o*(e.showticklabels?1:.5):o*(e.showticklabels?.5:0))}var c,f,p,d,g=B.getPxPosition(t,e);&quot;x&quot;===a?(f=e._offset+e._length/2,p=&quot;top&quot;===e.side?g-r:g+r):(p=e._offset+e._length/2,f=&quot;right&quot;===e.side?g+r:g-r,c={rotate:&quot;-90&quot;,offset:0});if(&quot;multicategory&quot;!==e.type){var m=e._selections[e._id+&quot;tick&quot;];if(d={selection:m,side:e.side},m&amp;&amp;m.node()&amp;&amp;m.node().parentNode){var v=h.getTranslate(m.node().parentNode);d.offsetLeft=v.x,d.offsetTop=v.y}e.title.hasOwnProperty(&quot;standoff&quot;)&amp;&amp;(d.pad=0)}return u.draw(t,i+&quot;title&quot;,{propContainer:e,propName:e._name+&quot;.title.text&quot;,placeholder:n._dfltTitle[a],avoid:d,transform:c,attributes:{x:f,y:p,&quot;text-anchor&quot;:&quot;middle&quot;}})}(t,e)})),s.syncOrAsync(Z)}}function Q(t){var r=p+(t||&quot;tick&quot;);return w[r]||(w[r]=function(t,e){var r,n,i,a;t._selections[e].size()?(r=1/0,n=-1/0,i=1/0,a=-1/0,t._selections[e].each((function(){var t=dt(this),e=h.bBox(t.node().parentNode);r=Math.min(r,e.top),n=Math.max(n,e.bottom),i=Math.min(i,e.left),a=Math.max(a,e.right)}))):(r=0,n=0,i=0,a=0);return{top:r,bottom:n,left:i,right:a,height:n-r,width:a-i}}(e,r)),w[r]}},B.getTickSigns=function(t){var e=t._id.charAt(0),r={x:&quot;top&quot;,y:&quot;right&quot;}[e],n=t.side===r?1:-1,i=[-1,1,n,-n];return&quot;inside&quot;!==t.ticks==(&quot;x&quot;===e)&amp;&amp;(i=i.map((function(t){return-t}))),t.side&amp;&amp;i.push({l:-1,t:-1,r:1,b:1}[t.side.charAt(0)]),i},B.makeTransTickFn=function(t){return&quot;x&quot;===t._id.charAt(0)?function(e){return l(t._offset+t.l2p(e.x),0)}:function(e){return l(0,t._offset+t.l2p(e.x))}},B.makeTransTickLabelFn=function(t){var e=function(t){var e=t.ticklabelposition||&quot;&quot;,r=function(t){return-1!==e.indexOf(t)},n=r(&quot;top&quot;),i=r(&quot;left&quot;),a=r(&quot;right&quot;),o=r(&quot;bottom&quot;),s=r(&quot;inside&quot;),l=o||i||n||a;if(!l&amp;&amp;!s)return[0,0];var c=t.side,u=l?(t.tickwidth||0)/2:0,f=3,h=t.tickfont?t.tickfont.size:12;(o||n)&amp;&amp;(u+=h*D,f+=(t.linewidth||0)/2);(i||a)&amp;&amp;(u+=(t.linewidth||0)/2,f+=3);s&amp;&amp;&quot;top&quot;===c&amp;&amp;(f-=h*(1-D));(i||n)&amp;&amp;(u=-u);&quot;bottom&quot;!==c&amp;&amp;&quot;right&quot;!==c||(f=-f);return[l?u:0,s?f:0]}(t),r=e[0],n=e[1];return&quot;x&quot;===t._id.charAt(0)?function(e){return l(r+t._offset+t.l2p(ut(e)),n)}:function(e){return l(n,r+t._offset+t.l2p(ut(e)))}},B.makeTickPath=function(t,e,r,n){n=void 0!==n?n:t.ticklen;var i=t._id.charAt(0),a=(t.linewidth||1)/2;return&quot;x&quot;===i?&quot;M0,&quot;+(e+a*r)+&quot;v&quot;+n*r:&quot;M&quot;+(e+a*r)+&quot;,0h&quot;+n*r},B.makeLabelFns=function(t,e,r){var n=t.ticklabelposition||&quot;&quot;,a=function(t){return-1!==n.indexOf(t)},o=a(&quot;top&quot;),l=a(&quot;left&quot;),c=a(&quot;right&quot;),u=a(&quot;bottom&quot;)||l||o||c,f=a(&quot;inside&quot;),h=&quot;inside&quot;===n&amp;&amp;&quot;inside&quot;===t.ticks||!f&amp;&amp;&quot;outside&quot;===t.ticks&amp;&amp;&quot;boundaries&quot;!==t.tickson,p=0,d=0,g=h?t.ticklen:0;if(f?g*=-1:u&amp;&amp;(g=0),h&amp;&amp;(p+=g,r)){var m=s.deg2rad(r);p=g*Math.cos(m)+1,d=g*Math.sin(m)}t.showticklabels&amp;&amp;(h||t.showline)&amp;&amp;(p+=.2*t.tickfont.size);var v,y,x,b,_,w={labelStandoff:p+=(t.linewidth||1)/2*(f?-1:1),labelShift:d},T=0,k=t.side,M=t._id.charAt(0),A=t.tickangle;if(&quot;x&quot;===M)b=(_=!f&amp;&amp;&quot;bottom&quot;===k||f&amp;&amp;&quot;top&quot;===k)?1:-1,f&amp;&amp;(b*=-1),v=d*b,y=e+p*b,x=_?1:-.2,90===Math.abs(A)&amp;&amp;(f?x+=O:x=-90===A&amp;&amp;&quot;bottom&quot;===k?D:90===A&amp;&amp;&quot;top&quot;===k?O:.5,T=O/2*(A/90)),w.xFn=function(t){return t.dx+v+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*x},w.anchorFn=function(t,e){if(u){if(l)return&quot;end&quot;;if(c)return&quot;start&quot;}return i(e)&amp;&amp;0!==e&amp;&amp;180!==e?e*b&lt;0!==f?&quot;end&quot;:&quot;start&quot;:&quot;middle&quot;},w.heightFn=function(e,r,n){return r&lt;-60||r&gt;60?-.5*n:&quot;top&quot;===t.side!==f?-n:0};else if(&quot;y&quot;===M){if(b=(_=!f&amp;&amp;&quot;left&quot;===k||f&amp;&amp;&quot;right&quot;===k)?1:-1,f&amp;&amp;(b*=-1),v=p,y=d*b,x=0,f||90!==Math.abs(A)||(x=-90===A&amp;&amp;&quot;left&quot;===k||90===A&amp;&amp;&quot;right&quot;===k?D:.5),f){var S=i(A)?+A:0;if(0!==S){var E=s.deg2rad(S);T=Math.abs(Math.sin(E))*D*b,x=0}}w.xFn=function(t){return t.dx+e-(v+t.fontSize*x)*b+T*t.fontSize},w.yFn=function(t){return t.dy+y+t.fontSize*O},w.anchorFn=function(t,e){return i(e)&amp;&amp;90===Math.abs(e)?&quot;middle&quot;:_?&quot;end&quot;:&quot;start&quot;},w.heightFn=function(e,r,n){return&quot;right&quot;===t.side&amp;&amp;(r*=-1),r&lt;-30?-n:r&lt;30?-.5*n:0}}return w},B.drawTicks=function(t,e,r){r=r||{};var n=e._id+&quot;tick&quot;,i=r.vals;&quot;period&quot;===e.ticklabelmode&amp;&amp;(i=i.slice()).shift();var a=r.layer.selectAll(&quot;path.&quot;+n).data(e.ticks?i:[],ft);a.exit().remove(),a.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;ticks&quot;,1).classed(&quot;crisp&quot;,!1!==r.crisp).call(f.stroke,e.tickcolor).style(&quot;stroke-width&quot;,h.crispRound(t,e.tickwidth,1)+&quot;px&quot;).attr(&quot;d&quot;,r.path),a.attr(&quot;transform&quot;,r.transFn)},B.drawGrid=function(t,e,r){r=r||{};var n=e._id+&quot;grid&quot;,i=r.vals,a=r.counterAxis;if(!1===e.showgrid)i=[];else if(a&amp;&amp;B.shouldShowZeroLine(t,e,a))for(var o=&quot;array&quot;===e.tickmode,s=0;s&lt;i.length;s++){var l=i[s].x;if(o?!l:Math.abs(l)&lt;e.dtick/100){if(i=i.slice(0,s).concat(i.slice(s+1)),!o)break;s--}}var c=r.layer.selectAll(&quot;path.&quot;+n).data(i,ft);c.exit().remove(),c.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;crisp&quot;,!1!==r.crisp),e._gw=h.crispRound(t,e.gridwidth,1),c.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path).call(f.stroke,e.gridcolor||&quot;#ddd&quot;).style(&quot;stroke-width&quot;,e._gw+&quot;px&quot;),&quot;function&quot;==typeof r.path&amp;&amp;c.attr(&quot;d&quot;,r.path)},B.drawZeroLine=function(t,e,r){r=r||r;var n=e._id+&quot;zl&quot;,i=B.shouldShowZeroLine(t,e,r.counterAxis),a=r.layer.selectAll(&quot;path.&quot;+n).data(i?[{x:0,id:e._id}]:[]);a.exit().remove(),a.enter().append(&quot;path&quot;).classed(n,1).classed(&quot;zl&quot;,1).classed(&quot;crisp&quot;,!1!==r.crisp).each((function(){r.layer.selectAll(&quot;path&quot;).sort((function(t,e){return U(t.id,e.id)}))})),a.attr(&quot;transform&quot;,r.transFn).attr(&quot;d&quot;,r.path).call(f.stroke,e.zerolinecolor||f.defaultLine).style(&quot;stroke-width&quot;,h.crispRound(t,e.zerolinewidth,e._gw||1)+&quot;px&quot;)},B.drawLabels=function(t,e,r){r=r||{};var a=t._fullLayout,o=e._id,u=o.charAt(0),f=r.cls||o+&quot;tick&quot;,p=r.vals,d=r.labelFns,g=r.secondary?0:e.tickangle,m=(e._prevTickAngles||{})[f],v=r.layer.selectAll(&quot;g.&quot;+f).data(e.showticklabels?p:[],ft),y=[];function x(t,a){var o=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;);t.each((function(t){var s=n.select(this),u=s.select(&quot;.text-math-group&quot;),f=d.anchorFn(t,a),p=r.transFn.call(s.node(),t)+(i(a)&amp;&amp;0!=+a?&quot; rotate(&quot;+a+&quot;,&quot;+d.xFn(t)+&quot;,&quot;+(d.yFn(t)-t.fontSize/2)+&quot;)&quot;:&quot;&quot;),g=c.lineCount(s),m=R*t.fontSize,v=d.heightFn(t,i(a)?+a:0,(g-1)*m);if(v&amp;&amp;(p+=l(0,v)),u.empty()){var y=s.select(&quot;text&quot;);y.attr({transform:p,&quot;text-anchor&quot;:f}),o&amp;&amp;(y.style({opacity:100}),e._hideOutOfRangeInsideTickLabels&amp;&amp;e._hideOutOfRangeInsideTickLabels())}else{var x=h.bBox(u.node()).width*{end:-.5,start:.5}[f];u.attr(&quot;transform&quot;,p+l(x,0))}}))}v.enter().append(&quot;g&quot;).classed(f,1).append(&quot;text&quot;).attr(&quot;text-anchor&quot;,&quot;middle&quot;).each((function(e){var r=n.select(this),i=t._promises.length;r.call(c.positionText,d.xFn(e),d.yFn(e)).call(h.font,e.font,e.fontSize,e.fontColor).text(e.text).call(c.convertToTspans,t),t._promises[i]?y.push(t._promises.pop().then((function(){x(r,g)}))):x(r,g)})),v.exit().remove(),r.repositionOnUpdate&amp;&amp;v.each((function(t){n.select(this).select(&quot;text&quot;).call(c.positionText,d.xFn(t),d.yFn(t))})),e._hideOutOfRangeInsideTickLabels=void 0,-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;(e._hideOutOfRangeInsideTickLabels=function(){var t=s.simpleMap(e.range,e.r2l),r=e.l2p(t[0]),i=e.l2p(t[1]),a=Math.min(r,i)+e._offset,o=Math.max(r,i)+e._offset,l=&quot;x&quot;===e._id.charAt(0);v.each((function(t){var r=n.select(this);if(r.select(&quot;.text-math-group&quot;).empty()){var i=h.bBox(r.node()),s=!1;l?(i.right&gt;o||i.left&lt;a)&amp;&amp;(s=!0):(i.bottom&gt;o||i.top+(e.tickangle?0:t.fontSize/4)&lt;a)&amp;&amp;(s=!0),s&amp;&amp;r.select(&quot;text&quot;).style({opacity:0})}}))}),x(v,m+1?m:g);var b=null;e._selections&amp;&amp;(e._selections[f]=v);var _=[function(){return y.length&amp;&amp;Promise.all(y)}];e.automargin&amp;&amp;a._redrawFromAutoMarginCount&amp;&amp;90===m?(b=90,_.push((function(){x(v,m)}))):_.push((function(){if(x(v,g),p.length&amp;&amp;&quot;x&quot;===u&amp;&amp;!i(g)&amp;&amp;(&quot;log&quot;!==e.type||&quot;D&quot;!==String(e.dtick).charAt(0))){b=0;var t,n=0,a=[];if(v.each((function(t){n=Math.max(n,t.fontSize);var r=e.l2p(t.x),i=dt(this),o=h.bBox(i.node());a.push({top:0,bottom:10,height:10,left:r-o.width/2,right:r+o.width/2+2,width:o.width+2})})),&quot;boundaries&quot;!==e.tickson&amp;&amp;!e.showdividers||r.secondary){var o=p.length,l=Math.abs((p[o-1].x-p[0].x)*e._m)/(o-1),c=e.ticklabelposition||&quot;&quot;,f=function(t){return-1!==c.indexOf(t)},d=f(&quot;top&quot;),m=f(&quot;left&quot;),y=f(&quot;right&quot;),_=f(&quot;bottom&quot;)||m||d||y?(e.tickwidth||0)+6:0,w=l&lt;2.5*n||&quot;multicategory&quot;===e.type;for(t=0;t&lt;a.length-1;t++)if(s.bBoxIntersect(a[t],a[t+1],_)){b=w?90:30;break}}else{var T=2;for(e.ticks&amp;&amp;(T+=e.tickwidth/2),t=0;t&lt;a.length;t++){var k=p[t].xbnd,M=a[t];if(null!==k[0]&amp;&amp;M.left-e.l2p(k[0])&lt;T||null!==k[1]&amp;&amp;e.l2p(k[1])-M.right&lt;T){b=90;break}}}b&amp;&amp;x(v,b)}})),e._tickAngles&amp;&amp;_.push((function(){e._tickAngles[f]=null===b?i(g)?g:0:b}));var w=e._anchorAxis;w&amp;&amp;w.autorange&amp;&amp;-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)&amp;&amp;!V(a,e._id)&amp;&amp;(a._insideTickLabelsAutorange||(a._insideTickLabelsAutorange={}),a._insideTickLabelsAutorange[w._name+&quot;.autorange&quot;]=w.autorange,_.push((function(){v.each((function(t,r){var n=dt(this);e._vals[r].bb=h.bBox(n.node())}))})));var T=s.syncOrAsync(_);return T&amp;&amp;T.then&amp;&amp;t._promises.push(T),T},B.getPxPosition=function(t,e){var r,n=t._fullLayout._size,i=e._id.charAt(0),a=e.side;return&quot;free&quot;!==e.anchor?r=e._anchorAxis:&quot;x&quot;===i?r={_offset:n.t+(1-(e.position||0))*n.h,_length:0}:&quot;y&quot;===i&amp;&amp;(r={_offset:n.l+(e.position||0)*n.w,_length:0}),&quot;top&quot;===a||&quot;left&quot;===a?r._offset:&quot;bottom&quot;===a||&quot;right&quot;===a?r._offset+r._length:void 0},B.shouldShowZeroLine=function(t,e,r){var n=s.simpleMap(e.range,e.r2l);return n[0]*n[1]&lt;=0&amp;&amp;e.zeroline&amp;&amp;(&quot;linear&quot;===e.type||&quot;-&quot;===e.type)&amp;&amp;!(e.rangebreaks&amp;&amp;e.maskBreaks(0)===P)&amp;&amp;(pt(e,0)||!function(t,e,r,n){var i=r._mainAxis;if(!i)return;var a=t._fullLayout,o=e._id.charAt(0),s=B.counterLetter(e._id),l=e._offset+(Math.abs(n[0])&lt;Math.abs(n[1])==(&quot;x&quot;===o)?0:e._length);function c(t){if(!t.showline||!t.linewidth)return!1;var r=Math.max((t.linewidth+e.zerolinewidth)/2,1);function n(t){return&quot;number&quot;==typeof t&amp;&amp;Math.abs(t-l)&lt;r}if(n(t._mainLinePosition)||n(t._mainMirrorPosition))return!0;var i=t._linepositions||{};for(var a in i)if(n(i[a][0])||n(i[a][1]))return!0}var u=a._plots[r._mainSubplot];if(!(u.mainplotinfo||u).overlays.length)return c(r);for(var f=B.list(t,s),h=0;h&lt;f.length;h++){var p=f[h];if(p._mainAxis===i&amp;&amp;c(p))return!0}}(t,e,r,n)||function(t,e){for(var r=t._fullData,n=e._mainSubplot,i=e._id.charAt(0),a=0;a&lt;r.length;a++){var s=r[a];if(!0===s.visible&amp;&amp;s.xaxis+s.yaxis===n){if(o.traceIs(s,&quot;bar-like&quot;)&amp;&amp;s.orientation==={x:&quot;h&quot;,y:&quot;v&quot;}[i])return!0;if(s.fill&amp;&amp;s.fill.charAt(s.fill.length-1)===i)return!0}}return!1}(t,e))},B.clipEnds=function(t,e){return e.filter((function(e){return pt(t,e.x)}))},B.allowAutoMargin=function(t){for(var e=B.list(t,&quot;&quot;,!0),r=0;r&lt;e.length;r++){var n=e[r];n.automargin&amp;&amp;(a.allowAutoMargin(t,gt(n)),n.mirror&amp;&amp;a.allowAutoMargin(t,mt(n))),o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(n)&amp;&amp;a.allowAutoMargin(t,vt(n))}},B.swap=function(t,e){for(var r=function(t,e){var r,n,i=[];for(r=0;r&lt;e.length;r++){var a=[],o=t._fullData[e[r]].xaxis,s=t._fullData[e[r]].yaxis;if(o&amp;&amp;s){for(n=0;n&lt;i.length;n++)-1===i[n].x.indexOf(o)&amp;&amp;-1===i[n].y.indexOf(s)||a.push(n);if(a.length){var l,c=i[a[0]];if(a.length&gt;1)for(n=1;n&lt;a.length;n++)l=i[a[n]],yt(c.x,l.x),yt(c.y,l.y);yt(c.x,[o]),yt(c.y,[s])}else i.push({x:[o],y:[s]})}}return i}(t,e),n=0;n&lt;r.length;n++)xt(t,r[n].x,r[n].y)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../components/titles&quot;:738,&quot;../../constants/alignment&quot;:745,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../../registry&quot;:911,&quot;./autorange&quot;:827,&quot;./axis_autotype&quot;:829,&quot;./axis_ids&quot;:831,&quot;./clean_ticks&quot;:833,&quot;./layout_attributes&quot;:842,&quot;./set_convert&quot;:848,d3:169,&quot;fast-isnumeric&quot;:241}],829:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM,o=i.isArrayOrTypedArray,s=i.isDateTime,l=i.cleanNumber,c=Math.round;function u(t,e){return e?n(t):&quot;number&quot;==typeof t}function f(t){return Math.max(1,(t-1)/1e3)}e.exports=function(t,e,r){var i=t,h=r.noMultiCategory;if(o(i)&amp;&amp;!i.length)return&quot;-&quot;;if(!h&amp;&amp;function(t){return o(t[0])&amp;&amp;o(t[1])}(i))return&quot;multicategory&quot;;if(h&amp;&amp;Array.isArray(i[0])){for(var p=[],d=0;d&lt;i.length;d++)if(o(i[d]))for(var g=0;g&lt;i[d].length;g++)p.push(i[d][g]);i=p}if(function(t,e){for(var r=t.length,i=f(r),a=0,o=0,l={},u=0;u&lt;r;u+=i){var h=c(u),p=t[h],d=String(p);l[d]||(l[d]=1,s(p,e)&amp;&amp;a++,n(p)&amp;&amp;o++)}return a&gt;2*o}(i,e))return&quot;date&quot;;var m=&quot;strict&quot;!==r.autotypenumbers;return function(t,e){for(var r=t.length,n=f(r),i=0,o=0,s={},u=0;u&lt;r;u+=n){var h=c(u),p=t[h],d=String(p);if(!s[d]){s[d]=1;var g=typeof p;&quot;boolean&quot;===g?o++:(e?l(p)!==a:&quot;number&quot;===g)?i++:&quot;string&quot;===g&amp;&amp;o++}}return o&gt;2*i}(i,m)?&quot;category&quot;:function(t,e){for(var r=t.length,n=0;n&lt;r;n++)if(u(t[n],e))return!0;return!1}(i,m)?&quot;linear&quot;:&quot;-&quot;}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],830:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../array_container_defaults&quot;),s=t(&quot;./layout_attributes&quot;),l=t(&quot;./tick_value_defaults&quot;),c=t(&quot;./tick_mark_defaults&quot;),u=t(&quot;./tick_label_defaults&quot;),f=t(&quot;./category_order_defaults&quot;),h=t(&quot;./line_grid_defaults&quot;),p=t(&quot;./set_convert&quot;),d=t(&quot;./constants&quot;).WEEKDAY_PATTERN,g=t(&quot;./constants&quot;).HOUR_PATTERN;function m(t,e,r){function i(r,n){return a.coerce(t,e,s.rangebreaks,r,n)}if(i(&quot;enabled&quot;)){var o=i(&quot;bounds&quot;);if(o&amp;&amp;o.length&gt;=2){var l,c,u=&quot;&quot;;if(2===o.length)for(l=0;l&lt;2;l++)if(c=y(o[l])){u=d;break}var f=i(&quot;pattern&quot;,u);if(f===d)for(l=0;l&lt;2;l++)(c=y(o[l]))&amp;&amp;(e.bounds[l]=o[l]=c-1);if(f)for(l=0;l&lt;2;l++)switch(c=o[l],f){case d:if(!n(c))return void(e.enabled=!1);if((c=+c)!==Math.floor(c)||c&lt;0||c&gt;=7)return void(e.enabled=!1);e.bounds[l]=o[l]=c;break;case g:if(!n(c))return void(e.enabled=!1);if((c=+c)&lt;0||c&gt;24)return void(e.enabled=!1);e.bounds[l]=o[l]=c}if(!1===r.autorange){var h=r.range;if(h[0]&lt;h[1]){if(o[0]&lt;h[0]&amp;&amp;o[1]&gt;h[1])return void(e.enabled=!1)}else if(o[0]&gt;h[0]&amp;&amp;o[1]&lt;h[1])return void(e.enabled=!1)}}else{var p=i(&quot;values&quot;);if(!p||!p.length)return void(e.enabled=!1);i(&quot;dvalue&quot;)}}}e.exports=function(t,e,r,n,g){var v,y=n.letter,x=n.font||{},b=n.splomStash||{},_=r(&quot;visible&quot;,!n.visibleDflt),w=e._template||{},T=e.type||w.type||&quot;-&quot;;&quot;date&quot;===T&amp;&amp;(i.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;,n.calendar),n.noTicklabelmode||(v=r(&quot;ticklabelmode&quot;)));n.noTicklabelposition&amp;&amp;&quot;multicategory&quot;!==T||a.coerce(t,e,{ticklabelposition:{valType:&quot;enumerated&quot;,dflt:&quot;outside&quot;,values:&quot;period&quot;===v?[&quot;outside&quot;,&quot;inside&quot;]:&quot;x&quot;===y?[&quot;outside&quot;,&quot;inside&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;]:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;]}},&quot;ticklabelposition&quot;),p(e,g);var k=!e.isValidRange(t.range);k&amp;&amp;n.reverseDflt&amp;&amp;(k=&quot;reversed&quot;),!r(&quot;autorange&quot;,k)||&quot;linear&quot;!==T&amp;&amp;&quot;-&quot;!==T||r(&quot;rangemode&quot;),r(&quot;range&quot;),e.cleanRange(),f(t,e,r,n),&quot;category&quot;===T||n.noHover||r(&quot;hoverformat&quot;);var M=r(&quot;color&quot;),A=M!==s.color.dflt?M:x.color,S=b.label||g._dfltTitle[y];if(u(t,e,r,T,n,{pass:1}),!_)return e;r(&quot;title.text&quot;,S),a.coerceFont(r,&quot;title.font&quot;,{family:x.family,size:Math.round(1.2*x.size),color:A}),l(t,e,r,T),u(t,e,r,T,n,{pass:2}),c(t,e,r,n),h(t,e,r,{dfltColor:M,bgColor:n.bgColor,showGrid:n.showGrid,attributes:s}),(e.showline||e.ticks)&amp;&amp;r(&quot;mirror&quot;),n.automargin&amp;&amp;r(&quot;automargin&quot;);var E,C=&quot;multicategory&quot;===T;n.noTickson||&quot;category&quot;!==T&amp;&amp;!C||!e.ticks&amp;&amp;!e.showgrid||(C&amp;&amp;(E=&quot;boundaries&quot;),&quot;boundaries&quot;===r(&quot;tickson&quot;,E)&amp;&amp;delete e.ticklabelposition);C&amp;&amp;(r(&quot;showdividers&quot;)&amp;&amp;(r(&quot;dividercolor&quot;),r(&quot;dividerwidth&quot;)));if(&quot;date&quot;===T)if(o(t,e,{name:&quot;rangebreaks&quot;,inclusionAttr:&quot;enabled&quot;,handleItemDefaults:m}),e.rangebreaks.length){for(var L=0;L&lt;e.rangebreaks.length;L++)if(e.rangebreaks[L].pattern===d){e._hasDayOfWeekBreaks=!0;break}if(p(e,g),g._has(&quot;scattergl&quot;)||g._has(&quot;splom&quot;))for(var I=0;I&lt;n.data.length;I++){var P=n.data[I];&quot;scattergl&quot;!==P.type&amp;&amp;&quot;splom&quot;!==P.type||(P.visible=!1,a.warn(P.type+&quot; traces do not work on axes with rangebreaks. Setting trace &quot;+P.index+&quot; to `visible: false`.&quot;))}}else delete e.rangebreaks;return e};var v={sun:1,mon:2,tue:3,wed:4,thu:5,fri:6,sat:7};function y(t){if(&quot;string&quot;==typeof t)return v[t.substr(0,3).toLowerCase()]}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../array_container_defaults&quot;:823,&quot;./category_order_defaults&quot;:832,&quot;./constants&quot;:834,&quot;./layout_attributes&quot;:842,&quot;./line_grid_defaults&quot;:844,&quot;./set_convert&quot;:848,&quot;./tick_label_defaults&quot;:849,&quot;./tick_mark_defaults&quot;:850,&quot;./tick_value_defaults&quot;:851,&quot;fast-isnumeric&quot;:241}],831:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;./constants&quot;);function a(t,e){if(e&amp;&amp;e.length)for(var r=0;r&lt;e.length;r++)if(e[r][t])return!0;return!1}r.id2name=function(t){if(&quot;string&quot;==typeof t&amp;&amp;t.match(i.AX_ID_PATTERN)){var e=t.split(&quot; &quot;)[0].substr(1);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),t.charAt(0)+&quot;axis&quot;+e}},r.name2id=function(t){if(t.match(i.AX_NAME_PATTERN)){var e=t.substr(5);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),t.charAt(0)+e}},r.cleanId=function(t,e,r){var n=/( domain)$/.test(t);if(&quot;string&quot;==typeof t&amp;&amp;t.match(i.AX_ID_PATTERN)&amp;&amp;(!e||t.charAt(0)===e)&amp;&amp;(!n||r)){var a=t.split(&quot; &quot;)[0].substr(1).replace(/^0+/,&quot;&quot;);return&quot;1&quot;===a&amp;&amp;(a=&quot;&quot;),t.charAt(0)+a+(n&amp;&amp;r?&quot; domain&quot;:&quot;&quot;)}},r.list=function(t,e,n){var i=t._fullLayout;if(!i)return[];var a,o=r.listIds(t,e),s=new Array(o.length);for(a=0;a&lt;o.length;a++){var l=o[a];s[a]=i[l.charAt(0)+&quot;axis&quot;+l.substr(1)]}if(!n){var c=i._subplots.gl3d||[];for(a=0;a&lt;c.length;a++){var u=i[c[a]];e?s.push(u[e+&quot;axis&quot;]):s.push(u.xaxis,u.yaxis,u.zaxis)}}return s},r.listIds=function(t,e){var r=t._fullLayout;if(!r)return[];var n=r._subplots;return e?n[e+&quot;axis&quot;]:n.xaxis.concat(n.yaxis)},r.getFromId=function(t,e,n){var i=t._fullLayout;return e=void 0===e||&quot;string&quot;!=typeof e?e:e.replace(&quot; domain&quot;,&quot;&quot;),&quot;x&quot;===n?e=e.replace(/y[0-9]*/,&quot;&quot;):&quot;y&quot;===n&amp;&amp;(e=e.replace(/x[0-9]*/,&quot;&quot;)),i[r.id2name(e)]},r.getFromTrace=function(t,e,i){var a=t._fullLayout,o=null;if(n.traceIs(e,&quot;gl3d&quot;)){var s=e.scene;&quot;scene&quot;===s.substr(0,5)&amp;&amp;(o=a[s][i+&quot;axis&quot;])}else o=r.getFromId(t,e[i+&quot;axis&quot;]||i);return o},r.idSort=function(t,e){var r=t.charAt(0),n=e.charAt(0);return r!==n?r&gt;n?1:-1:+(t.substr(1)||1)-+(e.substr(1)||1)},r.ref2id=function(t){return!!/^[xyz]/.test(t)&amp;&amp;t.split(&quot; &quot;)[0]},r.isLinked=function(t,e){return a(e,t._axisMatchGroups)||a(e,t._axisConstraintGroups)}},{&quot;../../registry&quot;:911,&quot;./constants&quot;:834}],832:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){if(&quot;category&quot;===e.type){var i,a=t.categoryarray,o=Array.isArray(a)&amp;&amp;a.length&gt;0;o&amp;&amp;(i=&quot;array&quot;);var s,l=r(&quot;categoryorder&quot;,i);&quot;array&quot;===l&amp;&amp;(s=r(&quot;categoryarray&quot;)),o||&quot;array&quot;!==l||(l=e.categoryorder=&quot;trace&quot;),&quot;trace&quot;===l?e._initialCategories=[]:&quot;array&quot;===l?e._initialCategories=s.slice():(s=function(t,e){var r,n,i,a=e.dataAttr||t._id.charAt(0),o={};if(e.axData)r=e.axData;else for(r=[],n=0;n&lt;e.data.length;n++){var s=e.data[n];s[a+&quot;axis&quot;]===t._id&amp;&amp;r.push(s)}for(n=0;n&lt;r.length;n++){var l=r[n][a];for(i=0;i&lt;l.length;i++){var c=l[i];null!=c&amp;&amp;(o[c]=1)}}return Object.keys(o)}(e,n).sort(),&quot;category ascending&quot;===l?e._initialCategories=s:&quot;category descending&quot;===l&amp;&amp;(e._initialCategories=s.reverse()))}}},{}],833:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;),o=a.ONEDAY,s=a.ONEWEEK;r.dtick=function(t,e){var r=&quot;log&quot;===e,i=&quot;date&quot;===e,a=&quot;category&quot;===e,s=i?o:1;if(!t)return s;if(n(t))return(t=Number(t))&lt;=0?s:a?Math.max(1,Math.round(t)):i?Math.max(.1,t):t;if(&quot;string&quot;!=typeof t||!i&amp;&amp;!r)return s;var l=t.charAt(0),c=t.substr(1);return(c=n(c)?Number(c):0)&lt;=0||!(i&amp;&amp;&quot;M&quot;===l&amp;&amp;c===Math.round(c)||r&amp;&amp;&quot;L&quot;===l||r&amp;&amp;&quot;D&quot;===l&amp;&amp;(1===c||2===c))?s:t},r.tick0=function(t,e,r,a){return&quot;date&quot;===e?i.cleanDate(t,i.dateTick0(r,a%s==0?1:0)):&quot;D1&quot;!==a&amp;&amp;&quot;D2&quot;!==a?n(t)?Number(t):0:void 0}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],834:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/regex&quot;).counter;e.exports={idRegex:{x:n(&quot;x&quot;,&quot;( domain)?&quot;),y:n(&quot;y&quot;,&quot;( domain)?&quot;)},attrRegex:n(&quot;[xy]axis&quot;),xAxisMatch:n(&quot;xaxis&quot;),yAxisMatch:n(&quot;yaxis&quot;),AX_ID_PATTERN:/^[xyz][0-9]*( domain)?$/,AX_NAME_PATTERN:/^[xyz]axis[0-9]*$/,SUBPLOT_PATTERN:/^x([0-9]*)y([0-9]*)$/,HOUR_PATTERN:&quot;hour&quot;,WEEKDAY_PATTERN:&quot;day of week&quot;,MINDRAG:8,MINSELECT:12,MINZOOM:20,DRAGGERSIZE:20,BENDPX:1.5,REDRAWDELAY:50,SELECTDELAY:100,SELECTID:&quot;-select&quot;,DFLTRANGEX:[-1,6],DFLTRANGEY:[-1,4],traceLayerClasses:[&quot;imagelayer&quot;,&quot;heatmaplayer&quot;,&quot;contourcarpetlayer&quot;,&quot;contourlayer&quot;,&quot;funnellayer&quot;,&quot;waterfalllayer&quot;,&quot;barlayer&quot;,&quot;carpetlayer&quot;,&quot;violinlayer&quot;,&quot;boxlayer&quot;,&quot;ohlclayer&quot;,&quot;scattercarpetlayer&quot;,&quot;scatterlayer&quot;],clipOnAxisFalseQuery:[&quot;.scatterlayer&quot;,&quot;.barlayer&quot;,&quot;.funnellayer&quot;,&quot;.waterfalllayer&quot;],layerValue2layerClass:{&quot;above traces&quot;:&quot;above&quot;,&quot;below traces&quot;:&quot;below&quot;}}},{&quot;../../lib/regex&quot;:795}],835:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./autorange&quot;),a=t(&quot;./axis_ids&quot;).id2name,o=t(&quot;./layout_attributes&quot;),s=t(&quot;./scale_zoom&quot;),l=t(&quot;./set_convert&quot;),c=t(&quot;../../constants/numerical&quot;).ALMOST_EQUAL,u=t(&quot;../../constants/alignment&quot;).FROM_BL;function f(t,e,r){var i=r.axIds,s=r.layoutOut,l=r.hasImage,c=s._axisConstraintGroups,u=s._axisMatchGroups,f=e._id,g=f.charAt(0),m=((s._splomAxes||{})[g]||{})[f]||{},v=e._id,y=&quot;x&quot;===v.charAt(0);function x(r,i){return n.coerce(t,e,o,r,i)}e._matchGroup=null,e._constraintGroup=null,x(&quot;constrain&quot;,l?&quot;domain&quot;:&quot;range&quot;),n.coerce(t,e,{constraintoward:{valType:&quot;enumerated&quot;,values:y?[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;]:[&quot;bottom&quot;,&quot;middle&quot;,&quot;top&quot;],dflt:y?&quot;center&quot;:&quot;middle&quot;}},&quot;constraintoward&quot;);var b,_,w=e.type,T=[];for(b=0;b&lt;i.length;b++){if((_=i[b])!==v)s[a(_)].type===w&amp;&amp;T.push(_)}var k=p(c,v);if(k){var M=[];for(b=0;b&lt;T.length;b++)k[_=T[b]]||M.push(_);T=M}var A,S,E=T.length;E&amp;&amp;(t.matches||m.matches)&amp;&amp;(A=n.coerce(t,e,{matches:{valType:&quot;enumerated&quot;,values:T,dflt:-1!==T.indexOf(m.matches)?m.matches:void 0}},&quot;matches&quot;));var C=l&amp;&amp;!y?e.anchor:void 0;if(E&amp;&amp;!A&amp;&amp;(t.scaleanchor||C)&amp;&amp;(S=n.coerce(t,e,{scaleanchor:{valType:&quot;enumerated&quot;,values:T}},&quot;scaleanchor&quot;,C)),A){e._matchGroup=d(u,v,A,1);var L=s[a(A)],I=h(s,e)/h(s,L);y!==(&quot;x&quot;===A.charAt(0))&amp;&amp;(I=(y?&quot;x&quot;:&quot;y&quot;)+I),d(c,v,A,I)}else t.matches&amp;&amp;-1!==i.indexOf(t.matches)&amp;&amp;n.warn(&quot;ignored &quot;+e._name+'.matches: &quot;'+t.matches+'&quot; to avoid an infinite loop');if(S){var P=x(&quot;scaleratio&quot;);P||(P=e.scaleratio=1),d(c,v,S,P)}else t.scaleanchor&amp;&amp;-1!==i.indexOf(t.scaleanchor)&amp;&amp;n.warn(&quot;ignored &quot;+e._name+'.scaleanchor: &quot;'+t.scaleanchor+'&quot; to avoid either an infinite loop and possibly inconsistent scaleratios, or because this axis declares a *matches* constraint.')}function h(t,e){var r=e.domain;return r||(r=t[a(e.overlaying)].domain),r[1]-r[0]}function p(t,e){for(var r=0;r&lt;t.length;r++)if(t[r][e])return t[r];return null}function d(t,e,r,n){var i,a,o,s,l,c=p(t,e);null===c?((c={})[e]=1,l=t.length,t.push(c)):l=t.indexOf(c);var u=Object.keys(c);for(i=0;i&lt;t.length;i++)if(o=t[i],i!==l&amp;&amp;o[r]){var f=o[r];for(a=0;a&lt;u.length;a++)o[s=u[a]]=g(f,g(n,c[s]));return void t.splice(l,1)}if(1!==n)for(a=0;a&lt;u.length;a++){var h=u[a];c[h]=g(n,c[h])}c[r]=1}function g(t,e){var r,n,i=&quot;&quot;,a=&quot;&quot;;&quot;string&quot;==typeof t&amp;&amp;(r=(i=t.match(/^[xy]*/)[0]).length,t=+t.substr(r)),&quot;string&quot;==typeof e&amp;&amp;(n=(a=e.match(/^[xy]*/)[0]).length,e=+e.substr(n));var o=t*e;return r||n?r&amp;&amp;n&amp;&amp;i.charAt(0)!==a.charAt(0)?r===n?o:(r&gt;n?i.substr(n):a.substr(r))+o:i+a+t*e:o}function m(t,e){for(var r=e._size,n=r.h/r.w,i={},a=Object.keys(t),o=0;o&lt;a.length;o++){var s=a[o],l=t[s];if(&quot;string&quot;==typeof l){var c=l.match(/^[xy]*/)[0],u=c.length;l=+l.substr(u);for(var f=&quot;y&quot;===c.charAt(0)?n:1/n,h=0;h&lt;u;h++)l*=f}i[s]=l}return i}function v(t,e){var r=t._inputDomain,n=u[t.constraintoward],i=r[0]+(r[1]-r[0])*n;t.domain=t._input.domain=[i+(r[0]-i)/e,i+(r[1]-i)/e],t.setScale()}r.handleDefaults=function(t,e,r){var i,o,s,c,u,h,p,d,g=r.axIds,m=r.axHasImage,v=e._axisConstraintGroups=[],y=e._axisMatchGroups=[];for(i=0;i&lt;g.length;i++)f(u=t[c=a(g[i])],h=e[c],{axIds:g,layoutOut:e,hasImage:m[c]});function x(t,r){for(i=0;i&lt;t.length;i++)for(s in o=t[i])e[a(s)][r]=o}for(x(y,&quot;_matchGroup&quot;),i=0;i&lt;v.length;i++)for(s in o=v[i])if((h=e[a(s)]).fixedrange){for(var b in o){var _=a(b);!1===(t[_]||{}).fixedrange&amp;&amp;n.warn(&quot;fixedrange was specified as false for axis &quot;+_+&quot; but was overridden because another axis in its constraint group has fixedrange true&quot;),e[_].fixedrange=!0}break}for(i=0;i&lt;v.length;){for(s in o=v[i]){(h=e[a(s)])._matchGroup&amp;&amp;Object.keys(h._matchGroup).length===Object.keys(o).length&amp;&amp;(v.splice(i,1),i--);break}i++}x(v,&quot;_constraintGroup&quot;);var w=[&quot;constrain&quot;,&quot;range&quot;,&quot;autorange&quot;,&quot;rangemode&quot;,&quot;rangebreaks&quot;,&quot;categoryorder&quot;,&quot;categoryarray&quot;],T=!1,k=!1;function M(){d=h[p],&quot;rangebreaks&quot;===p&amp;&amp;(k=h._hasDayOfWeekBreaks)}for(i=0;i&lt;y.length;i++){o=y[i];for(var A=0;A&lt;w.length;A++){var S;for(s in p=w[A],d=null,o)if(u=t[c=a(s)],h=e[c],p in h){if(!h.matches&amp;&amp;(S=h,p in u)){M();break}null===d&amp;&amp;p in u&amp;&amp;M()}if(&quot;range&quot;===p&amp;&amp;d&amp;&amp;(T=!0),&quot;autorange&quot;===p&amp;&amp;null===d&amp;&amp;T&amp;&amp;(d=!1),null===d&amp;&amp;p in S&amp;&amp;(d=S[p]),null!==d)for(s in o)(h=e[a(s)])[p]=&quot;range&quot;===p?d.slice():d,&quot;rangebreaks&quot;===p&amp;&amp;(h._hasDayOfWeekBreaks=k,l(h,e))}}},r.enforce=function(t){var e,r,n,o,l,u,f,h,p=t._fullLayout,d=p._axisConstraintGroups||[];for(e=0;e&lt;d.length;e++){n=m(d[e],p);var g=Object.keys(n),y=1/0,x=0,b=1/0,_={},w={},T=!1;for(r=0;r&lt;g.length;r++)w[o=g[r]]=l=p[a(o)],l._inputDomain?l.domain=l._inputDomain.slice():l._inputDomain=l.domain.slice(),l._inputRange||(l._inputRange=l.range.slice()),l.setScale(),_[o]=u=Math.abs(l._m)/n[o],y=Math.min(y,u),&quot;domain&quot;!==l.constrain&amp;&amp;l._constraintShrinkable||(b=Math.min(b,u)),delete l._constraintShrinkable,x=Math.max(x,u),&quot;domain&quot;===l.constrain&amp;&amp;(T=!0);if(!(y&gt;c*x)||T)for(r=0;r&lt;g.length;r++)if(u=_[o=g[r]],f=(l=w[o]).constrain,u!==b||&quot;domain&quot;===f)if(h=u/b,&quot;range&quot;===f)s(l,h);else{var k=l._inputDomain,M=(l.domain[1]-l.domain[0])/(k[1]-k[0]),A=(l.r2l(l.range[1])-l.r2l(l.range[0]))/(l.r2l(l._inputRange[1])-l.r2l(l._inputRange[0]));if((h/=M)*A&lt;1){l.domain=l._input.domain=k.slice(),s(l,h);continue}if(A&lt;1&amp;&amp;(l.range=l._input.range=l._inputRange.slice(),h*=A),l.autorange){var S=l.r2l(l.range[0]),E=l.r2l(l.range[1]),C=(S+E)/2,L=C,I=C,P=Math.abs(E-C),z=C-P*h*1.0001,O=C+P*h*1.0001,D=i.makePadFn(p,l,0),R=i.makePadFn(p,l,1);v(l,h);var F,B,N=Math.abs(l._m),j=i.concatExtremes(t,l),U=j.min,V=j.max;for(B=0;B&lt;U.length;B++)(F=U[B].val-D(U[B])/N)&gt;z&amp;&amp;F&lt;L&amp;&amp;(L=F);for(B=0;B&lt;V.length;B++)(F=V[B].val+R(V[B])/N)&lt;O&amp;&amp;F&gt;I&amp;&amp;(I=F);h/=(I-L)/(2*P),L=l.l2r(L),I=l.l2r(I),l.range=l._input.range=S&lt;E?[L,I]:[I,L]}v(l,h)}}},r.getAxisGroup=function(t,e){for(var r=t._axisMatchGroups,n=0;n&lt;r.length;n++){if(r[n][e])return&quot;g&quot;+n}return e},r.clean=function(t,e){if(e._inputDomain){for(var r=!1,n=e._id,i=t._fullLayout._axisConstraintGroups,a=0;a&lt;i.length;a++)if(i[a][n]){r=!0;break}r&amp;&amp;&quot;domain&quot;===e.constrain||(e._input.domain=e.domain=e._inputDomain,delete e._inputDomain)}}},{&quot;../../constants/alignment&quot;:745,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./autorange&quot;:827,&quot;./axis_ids&quot;:831,&quot;./layout_attributes&quot;:842,&quot;./scale_zoom&quot;:846,&quot;./set_convert&quot;:848}],836:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;has-passive-events&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=s.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/color&quot;),f=t(&quot;../../components/drawing&quot;),h=t(&quot;../../components/fx&quot;),p=t(&quot;./axes&quot;),d=t(&quot;../../lib/setcursor&quot;),g=t(&quot;../../components/dragelement&quot;),m=t(&quot;../../components/dragelement/helpers&quot;),v=m.selectingOrDrawing,y=m.freeMode,x=t(&quot;../../constants/alignment&quot;).FROM_TL,b=t(&quot;../../lib/clear_gl_canvases&quot;),_=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,w=t(&quot;../plots&quot;),T=t(&quot;./axis_ids&quot;).getFromId,k=t(&quot;./select&quot;).prepSelect,M=t(&quot;./select&quot;).clearSelect,A=t(&quot;./select&quot;).selectOnClick,S=t(&quot;./scale_zoom&quot;),E=t(&quot;./constants&quot;),C=E.MINDRAG,L=E.MINZOOM,I=!0;function P(t,e,r,n){var i=s.ensureSingle(t.draglayer,e,r,(function(e){e.classed(&quot;drag&quot;,!0).style({fill:&quot;transparent&quot;,&quot;stroke-width&quot;:0}).attr(&quot;data-subplot&quot;,t.id)}));return i.call(d,n),i.node()}function z(t,e,r,i,a,o,s){var l=P(t,&quot;rect&quot;,e,r);return n.select(l).call(f.setRect,i,a,o,s),l}function O(t,e){for(var r=0;r&lt;t.length;r++)if(!t[r].fixedrange)return e;return&quot;&quot;}function D(t,e,r,n,i){for(var a=0;a&lt;t.length;a++){var o=t[a];if(!o.fixedrange)if(o.rangebreaks){var s=&quot;y&quot;===o._id.charAt(0),l=s?1-e:e,c=s?1-r:r;n[o._name+&quot;.range[0]&quot;]=o.l2r(o.p2l(l*o._length)),n[o._name+&quot;.range[1]&quot;]=o.l2r(o.p2l(c*o._length))}else{var u=o._rl[0],f=o._rl[1]-u;n[o._name+&quot;.range[0]&quot;]=o.l2r(u+f*e),n[o._name+&quot;.range[1]&quot;]=o.l2r(u+f*r)}}if(i&amp;&amp;i.length){var h=(e+(1-r))/2;D(i,h,1-h,n,[])}}function R(t,e){for(var r=0;r&lt;t.length;r++){var n=t[r];if(!n.fixedrange)if(n.rangebreaks){var i=n._length,a=(n.p2l(0+e)-n.p2l(0)+(n.p2l(i+e)-n.p2l(i)))/2;n.range=[n.l2r(n._rl[0]-a),n.l2r(n._rl[1]-a)]}else n.range=[n.l2r(n._rl[0]-e/n._m),n.l2r(n._rl[1]-e/n._m)]}}function F(t){return 1-(t&gt;=0?Math.min(t,.9):1/(1/Math.max(t,-.3)+3.222))}function B(t,e,r,n,i){return t.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox&quot;).style({fill:e&gt;.2?&quot;rgba(0,0,0,0)&quot;:&quot;rgba(255,255,255,0)&quot;,&quot;stroke-width&quot;:0}).attr(&quot;transform&quot;,l(r,n)).attr(&quot;d&quot;,i+&quot;Z&quot;)}function N(t,e,r){return t.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).style({fill:u.background,stroke:u.defaultLine,&quot;stroke-width&quot;:1,opacity:0}).attr(&quot;transform&quot;,l(e,r)).attr(&quot;d&quot;,&quot;M0,0Z&quot;)}function j(t,e,r,n,i,a){t.attr(&quot;d&quot;,n+&quot;M&quot;+r.l+&quot;,&quot;+r.t+&quot;v&quot;+r.h+&quot;h&quot;+r.w+&quot;v-&quot;+r.h+&quot;h-&quot;+r.w+&quot;Z&quot;),U(t,e,i,a)}function U(t,e,r,n){r||(t.transition().style(&quot;fill&quot;,n&gt;.2?&quot;rgba(0,0,0,0.4)&quot;:&quot;rgba(255,255,255,0.3)&quot;).duration(200),e.transition().style(&quot;opacity&quot;,1).duration(200))}function V(t){n.select(t).selectAll(&quot;.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners&quot;).remove()}function q(t){I&amp;&amp;t.data&amp;&amp;t._context.showTips&amp;&amp;(s.notifier(s._(t,&quot;Double-click to zoom back out&quot;),&quot;long&quot;),I=!1)}function H(t){var e=Math.floor(Math.min(t.b-t.t,t.r-t.l,L)/2);return&quot;M&quot;+(t.l-3.5)+&quot;,&quot;+(t.t-.5+e)+&quot;h3v&quot;+-e+&quot;h&quot;+e+&quot;v-3h-&quot;+(e+3)+&quot;ZM&quot;+(t.r+3.5)+&quot;,&quot;+(t.t-.5+e)+&quot;h-3v&quot;+-e+&quot;h&quot;+-e+&quot;v-3h&quot;+(e+3)+&quot;ZM&quot;+(t.r+3.5)+&quot;,&quot;+(t.b+.5-e)+&quot;h-3v&quot;+e+&quot;h&quot;+-e+&quot;v3h&quot;+(e+3)+&quot;ZM&quot;+(t.l-3.5)+&quot;,&quot;+(t.b+.5-e)+&quot;h3v&quot;+e+&quot;h&quot;+e+&quot;v3h-&quot;+(e+3)+&quot;Z&quot;}function G(t,e,r,n,i){for(var a,o,l,c,u=!1,f={},h={},p=(i||{}).xaHash,d=(i||{}).yaHash,g=0;g&lt;e.length;g++){var m=e[g];for(a in r)if(m[a]){for(l in m)i&amp;&amp;(p[l]||d[l])||(&quot;x&quot;===l.charAt(0)?r:n)[l]||(f[l]=a);for(o in n)i&amp;&amp;(p[o]||d[o])||!m[o]||(u=!0)}for(o in n)if(m[o])for(c in m)i&amp;&amp;(p[c]||d[c])||(&quot;x&quot;===c.charAt(0)?r:n)[c]||(h[c]=o)}u&amp;&amp;(s.extendFlat(f,h),h={});var v={},y=[];for(l in f){var x=T(t,l);y.push(x),v[x._id]=x}var b={},_=[];for(c in h){var w=T(t,c);_.push(w),b[w._id]=w}return{xaHash:v,yaHash:b,xaxes:y,yaxes:_,xLinks:f,yLinks:h,isSubplotConstrained:u}}function Y(t,e){if(a){var r=void 0!==t.onwheel?&quot;wheel&quot;:&quot;mousewheel&quot;;t._onwheel&amp;&amp;t.removeEventListener(r,t._onwheel),t._onwheel=e,t.addEventListener(r,e,{passive:!1})}else void 0!==t.onwheel?t.onwheel=e:void 0!==t.onmousewheel?t.onmousewheel=e:t.isAddedWheelEvent||(t.isAddedWheelEvent=!0,t.addEventListener(&quot;wheel&quot;,e,{passive:!1}))}function W(t){var e=[];for(var r in t)e.push(t[r]);return e}e.exports={makeDragBox:function(t,e,r,a,l,u,d,m){var I,P,U,X,Z,J,K,Q,$,tt,et,rt,nt,it,at,ot,st,lt,ct,ut,ft,ht,pt,dt=t._fullLayout._zoomlayer,gt=d+m===&quot;nsew&quot;,mt=1===(d+m).length;function vt(){if(I=e.xaxis,P=e.yaxis,$=I._length,tt=P._length,K=I._offset,Q=P._offset,(U={})[I._id]=I,(X={})[P._id]=P,d&amp;&amp;m)for(var r=e.overlays,n=0;n&lt;r.length;n++){var i=r[n].xaxis;U[i._id]=i;var a=r[n].yaxis;X[a._id]=a}Z=W(U),J=W(X),nt=O(Z,m),it=O(J,d),at=!it&amp;&amp;!nt,rt=G(t,t._fullLayout._axisMatchGroups,U,X);var o=(et=G(t,t._fullLayout._axisConstraintGroups,U,X,rt)).isSubplotConstrained||rt.isSubplotConstrained;ot=m||o,st=d||o;var s=t._fullLayout;lt=s._has(&quot;scattergl&quot;),ct=s._has(&quot;splom&quot;),ut=s._has(&quot;svg&quot;)}vt();var yt=function(t,e,r){if(!t)return&quot;pointer&quot;;if(&quot;nsew&quot;===t)return r?&quot;&quot;:&quot;pan&quot;===e?&quot;move&quot;:&quot;crosshair&quot;;return t.toLowerCase()+&quot;-resize&quot;}(it+nt,t._fullLayout.dragmode,gt),xt=z(e,d+m+&quot;drag&quot;,yt,r,a,l,u);if(at&amp;&amp;!gt)return xt.onmousedown=null,xt.style.pointerEvents=&quot;none&quot;,xt;var bt,_t,wt,Tt,kt,Mt,At,St,Et,Ct,Lt={element:xt,gd:t,plotinfo:e};function It(){Lt.plotinfo.selection=!1,M(t)}function Pt(t,r){var i=Lt.gd;if(i._fullLayout._activeShapeIndex&gt;=0)i._fullLayout._deactivateShape(i);else{var a=i._fullLayout.clickmode;if(V(i),2!==t||mt||qt(),gt)a.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;A(r,i,Z,J,e.id,Lt),a.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;h.click(i,r,e.id);else if(1===t&amp;&amp;mt){var s=d?P:I,l=&quot;s&quot;===d||&quot;w&quot;===m?0:1,u=s._name+&quot;.range[&quot;+l+&quot;]&quot;,f=function(t,e){var r,i=t.range[e],a=Math.abs(i-t.range[1-e]);return&quot;date&quot;===t.type?i:&quot;log&quot;===t.type?(r=Math.ceil(Math.max(0,-Math.log(a)/Math.LN10))+3,n.format(&quot;.&quot;+r+&quot;g&quot;)(Math.pow(10,i))):(r=Math.floor(Math.log(Math.abs(i))/Math.LN10)-Math.floor(Math.log(a)/Math.LN10)+4,n.format(&quot;.&quot;+String(r)+&quot;g&quot;)(i))}(s,l),p=&quot;left&quot;,g=&quot;middle&quot;;if(s.fixedrange)return;d?(g=&quot;n&quot;===d?&quot;top&quot;:&quot;bottom&quot;,&quot;right&quot;===s.side&amp;&amp;(p=&quot;right&quot;)):&quot;e&quot;===m&amp;&amp;(p=&quot;right&quot;),i._context.showAxisRangeEntryBoxes&amp;&amp;n.select(xt).call(c.makeEditable,{gd:i,immediate:!0,background:i._fullLayout.paper_bgcolor,text:String(f),fill:s.tickfont?s.tickfont.color:&quot;#444&quot;,horizontalAlign:p,verticalAlign:g}).on(&quot;edit&quot;,(function(t){var e=s.d2r(t);void 0!==e&amp;&amp;o.call(&quot;_guiRelayout&quot;,i,u,e)}))}}}function zt(e,r){if(t._transitioningWithDuration)return!1;var n=Math.max(0,Math.min($,ht*e+bt)),i=Math.max(0,Math.min(tt,pt*r+_t)),a=Math.abs(n-bt),o=Math.abs(i-_t);function s(){At=&quot;&quot;,wt.r=wt.l,wt.t=wt.b,Et.attr(&quot;d&quot;,&quot;M0,0Z&quot;)}if(wt.l=Math.min(bt,n),wt.r=Math.max(bt,n),wt.t=Math.min(_t,i),wt.b=Math.max(_t,i),et.isSubplotConstrained)a&gt;L||o&gt;L?(At=&quot;xy&quot;,a/$&gt;o/tt?(o=a*tt/$,_t&gt;i?wt.t=_t-o:wt.b=_t+o):(a=o*$/tt,bt&gt;n?wt.l=bt-a:wt.r=bt+a),Et.attr(&quot;d&quot;,H(wt))):s();else if(rt.isSubplotConstrained)if(a&gt;L||o&gt;L){At=&quot;xy&quot;;var l=Math.min(wt.l/$,(tt-wt.b)/tt),c=Math.max(wt.r/$,(tt-wt.t)/tt);wt.l=l*$,wt.r=c*$,wt.b=(1-l)*tt,wt.t=(1-c)*tt,Et.attr(&quot;d&quot;,H(wt))}else s();else!it||o&lt;Math.min(Math.max(.6*a,C),L)?a&lt;C||!nt?s():(wt.t=0,wt.b=tt,At=&quot;x&quot;,Et.attr(&quot;d&quot;,function(t,e){return&quot;M&quot;+(t.l-.5)+&quot;,&quot;+(e-L-.5)+&quot;h-3v&quot;+(2*L+1)+&quot;h3ZM&quot;+(t.r+.5)+&quot;,&quot;+(e-L-.5)+&quot;h3v&quot;+(2*L+1)+&quot;h-3Z&quot;}(wt,_t))):!nt||a&lt;Math.min(.6*o,L)?(wt.l=0,wt.r=$,At=&quot;y&quot;,Et.attr(&quot;d&quot;,function(t,e){return&quot;M&quot;+(e-L-.5)+&quot;,&quot;+(t.t-.5)+&quot;v-3h&quot;+(2*L+1)+&quot;v3ZM&quot;+(e-L-.5)+&quot;,&quot;+(t.b+.5)+&quot;v3h&quot;+(2*L+1)+&quot;v-3Z&quot;}(wt,bt))):(At=&quot;xy&quot;,Et.attr(&quot;d&quot;,H(wt)));wt.w=wt.r-wt.l,wt.h=wt.b-wt.t,At&amp;&amp;(Ct=!0),t._dragged=Ct,j(St,Et,wt,kt,Mt,Tt),Ot(),t.emit(&quot;plotly_relayouting&quot;,ft),Mt=!0}function Ot(){ft={},&quot;xy&quot;!==At&amp;&amp;&quot;x&quot;!==At||(D(Z,wt.l/$,wt.r/$,ft,et.xaxes),Ut(&quot;x&quot;,ft)),&quot;xy&quot;!==At&amp;&amp;&quot;y&quot;!==At||(D(J,(tt-wt.b)/tt,(tt-wt.t)/tt,ft,et.yaxes),Ut(&quot;y&quot;,ft))}function Dt(){Ot(),V(t),Ht(),q(t)}Lt.prepFn=function(e,r,n){var a=Lt.dragmode,o=t._fullLayout.dragmode;o!==a&amp;&amp;(Lt.dragmode=o),vt(),ht=t._fullLayout._invScaleX,pt=t._fullLayout._invScaleY,at||(gt?e.shiftKey?&quot;pan&quot;===o?o=&quot;zoom&quot;:v(o)||(o=&quot;pan&quot;):e.ctrlKey&amp;&amp;(o=&quot;pan&quot;):o=&quot;pan&quot;),y(o)?Lt.minDrag=1:Lt.minDrag=void 0,v(o)?(Lt.xaxes=Z,Lt.yaxes=J,k(e,r,n,Lt,o)):(Lt.clickFn=Pt,v(a)&amp;&amp;It(),at||(&quot;zoom&quot;===o?(Lt.moveFn=zt,Lt.doneFn=Dt,Lt.minDrag=1,function(e,r,n){var a=xt.getBoundingClientRect();bt=r-a.left,_t=n-a.top,t._fullLayout._calcInverseTransform(t);var o=s.apply3DTransform(t._fullLayout._invTransform)(bt,_t);bt=o[0],_t=o[1],wt={l:bt,r:bt,w:0,t:_t,b:_t,h:0},Tt=t._hmpixcount?t._hmlumcount/t._hmpixcount:i(t._fullLayout.plot_bgcolor).getLuminance(),Mt=!1,At=&quot;xy&quot;,Ct=!1,St=B(dt,Tt,K,Q,kt=&quot;M0,0H&quot;+$+&quot;V&quot;+tt+&quot;H0V0&quot;),Et=N(dt,K,Q)}(0,r,n)):&quot;pan&quot;===o&amp;&amp;(Lt.moveFn=jt,Lt.doneFn=Ht))),t._fullLayout._redrag=function(){var e=t._dragdata;if(e&amp;&amp;e.element===xt){var r=t._fullLayout.dragmode;v(r)||(vt(),Gt([0,0,$,tt]),Lt.moveFn(e.dx,e.dy))}}},g.init(Lt);var Rt=[0,0,$,tt],Ft=null,Bt=E.REDRAWDELAY,Nt=e.mainplot?t._fullLayout._plots[e.mainplot]:e;function jt(e,r){if(e*=ht,r*=pt,!t._transitioningWithDuration){if(t._fullLayout._replotting=!0,&quot;ew&quot;===nt||&quot;ns&quot;===it){var n=nt?-e:0,i=it?-r:0;if(rt.isSubplotConstrained){if(nt&amp;&amp;it){var a=(e/$-r/tt)/2;n=-(e=a*$),i=-(r=-a*tt)}it?n=-i*$/tt:i=-n*tt/$}return nt&amp;&amp;(R(Z,e),Ut(&quot;x&quot;)),it&amp;&amp;(R(J,r),Ut(&quot;y&quot;)),Gt([n,i,$,tt]),Vt(),void t.emit(&quot;plotly_relayouting&quot;,ft)}var o,s,l=&quot;w&quot;===nt==(&quot;n&quot;===it)?1:-1;if(nt&amp;&amp;it&amp;&amp;(et.isSubplotConstrained||rt.isSubplotConstrained)){var c=(e/$+l*r/tt)/2;e=c*$,r=l*c*tt}if(&quot;w&quot;===nt?e=p(Z,0,e):&quot;e&quot;===nt?e=p(Z,1,-e):nt||(e=0),&quot;n&quot;===it?r=p(J,1,r):&quot;s&quot;===it?r=p(J,0,-r):it||(r=0),o=&quot;w&quot;===nt?e:0,s=&quot;n&quot;===it?r:0,et.isSubplotConstrained&amp;&amp;!rt.isSubplotConstrained||rt.isSubplotConstrained&amp;&amp;nt&amp;&amp;it&amp;&amp;l&gt;0){var u;if(rt.isSubplotConstrained||!nt&amp;&amp;1===it.length){for(u=0;u&lt;Z.length;u++)Z[u].range=Z[u]._r.slice(),S(Z[u],1-r/tt);o=(e=r*$/tt)/2}if(rt.isSubplotConstrained||!it&amp;&amp;1===nt.length){for(u=0;u&lt;J.length;u++)J[u].range=J[u]._r.slice(),S(J[u],1-e/$);s=(r=e*tt/$)/2}}rt.isSubplotConstrained&amp;&amp;it||Ut(&quot;x&quot;),rt.isSubplotConstrained&amp;&amp;nt||Ut(&quot;y&quot;);var f=$-e,h=tt-r;!rt.isSubplotConstrained||nt&amp;&amp;it||(nt?(s=o?0:e*tt/$,h=f*tt/$):(o=s?0:r*$/tt,f=h*$/tt)),Gt([o,s,f,h]),Vt(),t.emit(&quot;plotly_relayouting&quot;,ft)}function p(t,e,r){for(var n,i,a=1-e,o=0;o&lt;t.length;o++){var s=t[o];if(!s.fixedrange){n=s,i=s._rl[a]+(s._rl[e]-s._rl[a])/F(r/s._length);var l=s.l2r(i);!1!==l&amp;&amp;void 0!==l&amp;&amp;(s.range[e]=l)}}return n._length*(n._rl[e]-i)/(n._rl[e]-n._rl[a])}}function Ut(t,e){for(var r=rt.isSubplotConstrained?{x:J,y:Z}[t]:rt[t+&quot;axes&quot;],n=rt.isSubplotConstrained?{x:Z,y:J}[t]:[],i=0;i&lt;r.length;i++){var a=r[i],o=a._id,s=rt.xLinks[o]||rt.yLinks[o],l=n[0]||U[s]||X[s];l&amp;&amp;(e?(e[a._name+&quot;.range[0]&quot;]=e[l._name+&quot;.range[0]&quot;],e[a._name+&quot;.range[1]&quot;]=e[l._name+&quot;.range[1]&quot;]):a.range=l.range.slice())}}function Vt(){var e,r=[];function n(t){for(e=0;e&lt;t.length;e++)t[e].fixedrange||r.push(t[e]._id)}for(ot&amp;&amp;(n(Z),n(et.xaxes),n(rt.xaxes)),st&amp;&amp;(n(J),n(et.yaxes),n(rt.yaxes)),ft={},e=0;e&lt;r.length;e++){var i=r[e],a=T(t,i);p.drawOne(t,a,{skipTitle:!0}),ft[a._name+&quot;.range[0]&quot;]=a.range[0],ft[a._name+&quot;.range[1]&quot;]=a.range[1]}p.redrawComponents(t,r)}function qt(){if(!t._transitioningWithDuration){var e=t._context.doubleClick,r=[];nt&amp;&amp;(r=r.concat(Z)),it&amp;&amp;(r=r.concat(J)),rt.xaxes&amp;&amp;(r=r.concat(rt.xaxes)),rt.yaxes&amp;&amp;(r=r.concat(rt.yaxes));var n,i,a,s={};if(&quot;reset+autosize&quot;===e)for(e=&quot;autosize&quot;,i=0;i&lt;r.length;i++)if((n=r[i])._rangeInitial&amp;&amp;(n.range[0]!==n._rangeInitial[0]||n.range[1]!==n._rangeInitial[1])||!n._rangeInitial&amp;&amp;!n.autorange){e=&quot;reset&quot;;break}if(&quot;autosize&quot;===e)for(i=0;i&lt;r.length;i++)(n=r[i]).fixedrange||(s[n._name+&quot;.autorange&quot;]=!0);else if(&quot;reset&quot;===e)for((nt||et.isSubplotConstrained)&amp;&amp;(r=r.concat(et.xaxes)),it&amp;&amp;!et.isSubplotConstrained&amp;&amp;(r=r.concat(et.yaxes)),et.isSubplotConstrained&amp;&amp;(nt?it||(r=r.concat(J)):r=r.concat(Z)),i=0;i&lt;r.length;i++)(n=r[i]).fixedrange||(n._rangeInitial?(a=n._rangeInitial,s[n._name+&quot;.range[0]&quot;]=a[0],s[n._name+&quot;.range[1]&quot;]=a[1]):s[n._name+&quot;.autorange&quot;]=!0);t.emit(&quot;plotly_doubleclick&quot;,null),o.call(&quot;_guiRelayout&quot;,t,s)}}function Ht(){Gt([0,0,$,tt]),s.syncOrAsync([w.previousPromises,function(){t._fullLayout._replotting=!1,o.call(&quot;_guiRelayout&quot;,t,ft)}],t)}function Gt(e){var r,n,i,a,l=t._fullLayout,c=l._plots,u=l._subplots.cartesian;if(ct&amp;&amp;o.subplotsRegistry.splom.drag(t),lt)for(r=0;r&lt;u.length;r++)if(i=(n=c[u[r]]).xaxis,a=n.yaxis,n._scene){var h=s.simpleMap(i.range,i.r2l),p=s.simpleMap(a.range,a.r2l);n._scene.update({range:[h[0],p[0],h[1],p[1]]})}if((ct||lt)&amp;&amp;(b(t),_(t)),ut){var g=e[2]/I._length,v=e[3]/P._length;for(r=0;r&lt;u.length;r++){i=(n=c[u[r]]).xaxis,a=n.yaxis;var y,x,w,T,k=(ot||rt.isSubplotConstrained)&amp;&amp;!i.fixedrange&amp;&amp;U[i._id],M=(st||rt.isSubplotConstrained)&amp;&amp;!a.fixedrange&amp;&amp;X[a._id];if(k?(y=g,w=m||rt.isSubplotConstrained?e[0]:Xt(i,y)):rt.xaHash[i._id]?(y=g,w=e[0]*i._length/I._length):rt.yaHash[i._id]?(y=v,w=&quot;ns&quot;===it?-e[1]*i._length/P._length:Xt(i,y,{n:&quot;top&quot;,s:&quot;bottom&quot;}[it])):w=Wt(i,y=Yt(i,g,v)),M?(x=v,T=d||rt.isSubplotConstrained?e[1]:Xt(a,x)):rt.yaHash[a._id]?(x=v,T=e[1]*a._length/P._length):rt.xaHash[a._id]?(x=g,T=&quot;ew&quot;===nt?-e[0]*a._length/I._length:Xt(a,x,{e:&quot;right&quot;,w:&quot;left&quot;}[nt])):T=Wt(a,x=Yt(a,g,v)),y||x){y||(y=1),x||(x=1);var A=i._offset-w/y,S=a._offset-T/x;n.clipRect.call(f.setTranslate,w,T).call(f.setScale,y,x),n.plot.call(f.setTranslate,A,S).call(f.setScale,1/y,1/x),y===n.xScaleFactor&amp;&amp;x===n.yScaleFactor||(f.setPointGroupScale(n.zoomScalePts,y,x),f.setTextPointsScale(n.zoomScaleTxt,y,x)),f.hideOutsideRangePoints(n.clipOnAxisFalseTraces,n),n.xScaleFactor=y,n.yScaleFactor=x}}}}function Yt(t,e,r){return t.fixedrange?0:ot&amp;&amp;et.xaHash[t._id]?e:st&amp;&amp;(et.isSubplotConstrained?et.xaHash:et.yaHash)[t._id]?r:0}function Wt(t,e){return e?(t.range=t._r.slice(),S(t,e),Xt(t,e)):0}function Xt(t,e,r){return t._length*(1-e)*x[r||t.constraintoward||&quot;middle&quot;]}return d.length*m.length!=1&amp;&amp;Y(xt,(function(e){if(t._context._scrollZoom.cartesian||t._fullLayout._enablescrollzoom){if(It(),t._transitioningWithDuration)return e.preventDefault(),void e.stopPropagation();vt(),clearTimeout(Ft);var r=-e.deltaY;if(isFinite(r)||(r=e.wheelDelta/10),isFinite(r)){var n,i=Math.exp(-Math.min(Math.max(r,-20),20)/200),a=Nt.draglayer.select(&quot;.nsewdrag&quot;).node().getBoundingClientRect(),o=(e.clientX-a.left)/a.width,l=(a.bottom-e.clientY)/a.height;if(ot){for(m||(o=.5),n=0;n&lt;Z.length;n++)c(Z[n],o,i);Ut(&quot;x&quot;),Rt[2]*=i,Rt[0]+=Rt[2]*o*(1/i-1)}if(st){for(d||(l=.5),n=0;n&lt;J.length;n++)c(J[n],l,i);Ut(&quot;y&quot;),Rt[3]*=i,Rt[1]+=Rt[3]*(1-l)*(1/i-1)}Gt(Rt),Vt(),t.emit(&quot;plotly_relayouting&quot;,ft),Ft=setTimeout((function(){Rt=[0,0,$,tt],Ht()}),Bt),e.preventDefault()}else s.log(&quot;Did not find wheel motion attributes: &quot;,e)}function c(t,e,r){if(!t.fixedrange){var n=s.simpleMap(t.range,t.r2l),i=n[0]+(n[1]-n[0])*e;t.range=n.map((function(e){return t.l2r(i+(e-i)*r)}))}}})),xt},makeDragger:P,makeRectDragger:z,makeZoombox:B,makeCorners:N,updateZoombox:j,xyCorners:H,transitionZoombox:U,removeZoombox:V,showDoubleClickNotifier:q,attachWheelEventHandler:Y}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/clear_gl_canvases&quot;:762,&quot;../../lib/setcursor&quot;:799,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/subroutines&quot;:818,&quot;../../registry&quot;:911,&quot;../plots&quot;:891,&quot;./axes&quot;:828,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./scale_zoom&quot;:846,&quot;./select&quot;:847,d3:169,&quot;has-passive-events&quot;:441,tinycolor2:576}],837:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/fx&quot;),a=t(&quot;../../components/dragelement&quot;),o=t(&quot;../../lib/setcursor&quot;),s=t(&quot;./dragbox&quot;).makeDragBox,l=t(&quot;./constants&quot;).DRAGGERSIZE;r.initInteractions=function(t){var e=t._fullLayout;if(t._context.staticPlot)n.select(t).selectAll(&quot;.drag&quot;).remove();else if(e._has(&quot;cartesian&quot;)||e._has(&quot;splom&quot;)){Object.keys(e._plots||{}).sort((function(t,r){if((e._plots[t].mainplot&amp;&amp;!0)===(e._plots[r].mainplot&amp;&amp;!0)){var n=t.split(&quot;y&quot;),i=r.split(&quot;y&quot;);return n[0]===i[0]?Number(n[1]||1)-Number(i[1]||1):Number(n[0]||1)-Number(i[0]||1)}return e._plots[t].mainplot?1:-1})).forEach((function(r){var n=e._plots[r],o=n.xaxis,c=n.yaxis;if(!n.mainplot){var u=s(t,n,o._offset,c._offset,o._length,c._length,&quot;ns&quot;,&quot;ew&quot;);u.onmousemove=function(e){t._fullLayout._rehover=function(){t._fullLayout._hoversubplot===r&amp;&amp;t._fullLayout._plots[r]&amp;&amp;i.hover(t,e,r)},i.hover(t,e,r),t._fullLayout._lasthover=u,t._fullLayout._hoversubplot=r},u.onmouseout=function(e){t._dragging||(t._fullLayout._hoversubplot=null,a.unhover(t,e))},t._context.showAxisDragHandles&amp;&amp;(s(t,n,o._offset-l,c._offset-l,l,l,&quot;n&quot;,&quot;w&quot;),s(t,n,o._offset+o._length,c._offset-l,l,l,&quot;n&quot;,&quot;e&quot;),s(t,n,o._offset-l,c._offset+c._length,l,l,&quot;s&quot;,&quot;w&quot;),s(t,n,o._offset+o._length,c._offset+c._length,l,l,&quot;s&quot;,&quot;e&quot;))}if(t._context.showAxisDragHandles){if(r===o._mainSubplot){var f=o._mainLinePosition;&quot;top&quot;===o.side&amp;&amp;(f-=l),s(t,n,o._offset+.1*o._length,f,.8*o._length,l,&quot;&quot;,&quot;ew&quot;),s(t,n,o._offset,f,.1*o._length,l,&quot;&quot;,&quot;w&quot;),s(t,n,o._offset+.9*o._length,f,.1*o._length,l,&quot;&quot;,&quot;e&quot;)}if(r===c._mainSubplot){var h=c._mainLinePosition;&quot;right&quot;!==c.side&amp;&amp;(h-=l),s(t,n,h,c._offset+.1*c._length,l,.8*c._length,&quot;ns&quot;,&quot;&quot;),s(t,n,h,c._offset+.9*c._length,l,.1*c._length,&quot;s&quot;,&quot;&quot;),s(t,n,h,c._offset,l,.1*c._length,&quot;n&quot;,&quot;&quot;)}}}));var o=e._hoverlayer.node();o.onmousemove=function(r){r.target=t._fullLayout._lasthover,i.hover(t,r,e._hoversubplot)},o.onclick=function(e){e.target=t._fullLayout._lasthover,i.click(t,e)},o.onmousedown=function(e){t._fullLayout._lasthover.onmousedown(e)},r.updateFx(t)}},r.updateFx=function(t){var e=t._fullLayout,r=&quot;pan&quot;===e.dragmode?&quot;move&quot;:&quot;crosshair&quot;;o(e._draggers,r)}},{&quot;../../components/dragelement&quot;:662,&quot;../../components/fx&quot;:683,&quot;../../lib/setcursor&quot;:799,&quot;./constants&quot;:834,&quot;./dragbox&quot;:836,d3:169}],838:[function(t,e,r){&quot;use strict&quot;;e.exports={clearOutlineControllers:function(t){var e=t._fullLayout._zoomlayer;e&amp;&amp;e.selectAll(&quot;.outline-controllers&quot;).remove()},clearSelect:function(t){var e=t._fullLayout._zoomlayer;e&amp;&amp;e.selectAll(&quot;.select-outline&quot;).remove(),t._fullLayout._drawing=!1}}},{}],839:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).strTranslate;function i(t,e){switch(t.type){case&quot;log&quot;:return t.p2d(e);case&quot;date&quot;:return t.p2r(e,0,t.calendar);default:return t.p2r(e)}}e.exports={p2r:i,r2p:function(t,e){switch(t.type){case&quot;log&quot;:return t.d2p(e);case&quot;date&quot;:return t.r2p(e,0,t.calendar);default:return t.r2p(e)}},axValue:function(t){var e=&quot;y&quot;===t._id.charAt(0)?1:0;return function(r){return i(t,r[e])}},getTransform:function(t){return n(t.xaxis._offset,t.yaxis._offset)}}},{&quot;../../lib&quot;:778}],840:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./axis_ids&quot;);e.exports=function(t){return function(e,r){var o=e[t];if(Array.isArray(o))for(var s=n.subplotsRegistry.cartesian,l=s.idRegex,c=r._subplots,u=c.xaxis,f=c.yaxis,h=c.cartesian,p=r._has(&quot;cartesian&quot;)||r._has(&quot;gl2d&quot;),d=0;d&lt;o.length;d++){var g=o[d];if(i.isPlainObject(g)){var m=a.cleanId(g.xref,&quot;x&quot;,!1),v=a.cleanId(g.yref,&quot;y&quot;,!1),y=l.x.test(m),x=l.y.test(v);if(y||x){p||i.pushUnique(r._basePlotModules,s);var b=!1;y&amp;&amp;-1===u.indexOf(m)&amp;&amp;(u.push(m),b=!0),x&amp;&amp;-1===f.indexOf(v)&amp;&amp;(f.push(v),b=!0),b&amp;&amp;y&amp;&amp;x&amp;&amp;h.push(m+v)}}}}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./axis_ids&quot;:831}],841:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../plots&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../get_data&quot;).getModuleCalcData,c=t(&quot;./axis_ids&quot;),u=t(&quot;./constants&quot;),f=t(&quot;../../constants/xmlns_namespaces&quot;),h=a.ensureSingle;function p(t,e,r){return a.ensureSingle(t,e,r,(function(t){t.datum(r)}))}function d(t,e,r,a,o){for(var c,f,h,p=u.traceLayerClasses,d=t._fullLayout,g=d._modules,m=[],v=[],y=0;y&lt;g.length;y++){var x=(c=g[y]).name,b=i.modules[x].categories;if(b.svg){var _=c.layerName||x+&quot;layer&quot;,w=c.plot;h=(f=l(r,w))[0],r=f[1],h.length&amp;&amp;m.push({i:p.indexOf(_),className:_,plotMethod:w,cdModule:h}),b.zoomScale&amp;&amp;v.push(&quot;.&quot;+_)}}m.sort((function(t,e){return t.i-e.i}));var T=e.plot.selectAll(&quot;g.mlayer&quot;).data(m,(function(t){return t.className}));if(T.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return t.className})).classed(&quot;mlayer&quot;,!0).classed(&quot;rangeplot&quot;,e.isRangePlot),T.exit().remove(),T.order(),T.each((function(r){var i=n.select(this),l=r.className;r.plotMethod(t,e,r.cdModule,i,a,o),-1===u.clipOnAxisFalseQuery.indexOf(&quot;.&quot;+l)&amp;&amp;s.setClipUrl(i,e.layerClipId,t)})),d._has(&quot;scattergl&quot;)&amp;&amp;(c=i.getModule(&quot;scattergl&quot;),h=l(r,c)[0],c.plot(t,e,h)),!t._context.staticPlot&amp;&amp;(e._hasClipOnAxisFalse&amp;&amp;(e.clipOnAxisFalseTraces=e.plot.selectAll(u.clipOnAxisFalseQuery.join(&quot;,&quot;)).selectAll(&quot;.trace&quot;)),v.length)){var k=e.plot.selectAll(v.join(&quot;,&quot;)).selectAll(&quot;.trace&quot;);e.zoomScalePts=k.selectAll(&quot;path.point&quot;),e.zoomScaleTxt=k.selectAll(&quot;.textpoint&quot;)}}function g(t,e){var r=e.plotgroup,n=e.id,i=u.layerValue2layerClass[e.xaxis.layer],a=u.layerValue2layerClass[e.yaxis.layer],o=t._fullLayout._hasOnlyLargeSploms;if(e.mainplot){var s=e.mainplotinfo,l=s.plotgroup,f=n+&quot;-x&quot;,d=n+&quot;-y&quot;;e.gridlayer=s.gridlayer,e.zerolinelayer=s.zerolinelayer,h(s.overlinesBelow,&quot;path&quot;,f),h(s.overlinesBelow,&quot;path&quot;,d),h(s.overaxesBelow,&quot;g&quot;,f),h(s.overaxesBelow,&quot;g&quot;,d),e.plot=h(s.overplot,&quot;g&quot;,n),h(s.overlinesAbove,&quot;path&quot;,f),h(s.overlinesAbove,&quot;path&quot;,d),h(s.overaxesAbove,&quot;g&quot;,f),h(s.overaxesAbove,&quot;g&quot;,d),e.xlines=l.select(&quot;.overlines-&quot;+i).select(&quot;.&quot;+f),e.ylines=l.select(&quot;.overlines-&quot;+a).select(&quot;.&quot;+d),e.xaxislayer=l.select(&quot;.overaxes-&quot;+i).select(&quot;.&quot;+f),e.yaxislayer=l.select(&quot;.overaxes-&quot;+a).select(&quot;.&quot;+d)}else if(o)e.xlines=h(r,&quot;path&quot;,&quot;xlines-above&quot;),e.ylines=h(r,&quot;path&quot;,&quot;ylines-above&quot;),e.xaxislayer=h(r,&quot;g&quot;,&quot;xaxislayer-above&quot;),e.yaxislayer=h(r,&quot;g&quot;,&quot;yaxislayer-above&quot;);else{var g=h(r,&quot;g&quot;,&quot;layer-subplot&quot;);e.shapelayer=h(g,&quot;g&quot;,&quot;shapelayer&quot;),e.imagelayer=h(g,&quot;g&quot;,&quot;imagelayer&quot;),e.gridlayer=h(r,&quot;g&quot;,&quot;gridlayer&quot;),e.zerolinelayer=h(r,&quot;g&quot;,&quot;zerolinelayer&quot;),h(r,&quot;path&quot;,&quot;xlines-below&quot;),h(r,&quot;path&quot;,&quot;ylines-below&quot;),e.overlinesBelow=h(r,&quot;g&quot;,&quot;overlines-below&quot;),h(r,&quot;g&quot;,&quot;xaxislayer-below&quot;),h(r,&quot;g&quot;,&quot;yaxislayer-below&quot;),e.overaxesBelow=h(r,&quot;g&quot;,&quot;overaxes-below&quot;),e.plot=h(r,&quot;g&quot;,&quot;plot&quot;),e.overplot=h(r,&quot;g&quot;,&quot;overplot&quot;),e.xlines=h(r,&quot;path&quot;,&quot;xlines-above&quot;),e.ylines=h(r,&quot;path&quot;,&quot;ylines-above&quot;),e.overlinesAbove=h(r,&quot;g&quot;,&quot;overlines-above&quot;),h(r,&quot;g&quot;,&quot;xaxislayer-above&quot;),h(r,&quot;g&quot;,&quot;yaxislayer-above&quot;),e.overaxesAbove=h(r,&quot;g&quot;,&quot;overaxes-above&quot;),e.xlines=r.select(&quot;.xlines-&quot;+i),e.ylines=r.select(&quot;.ylines-&quot;+a),e.xaxislayer=r.select(&quot;.xaxislayer-&quot;+i),e.yaxislayer=r.select(&quot;.yaxislayer-&quot;+a)}o||(p(e.gridlayer,&quot;g&quot;,e.xaxis._id),p(e.gridlayer,&quot;g&quot;,e.yaxis._id),e.gridlayer.selectAll(&quot;g&quot;).map((function(t){return t[0]})).sort(c.idSort)),e.xlines.style(&quot;fill&quot;,&quot;none&quot;).classed(&quot;crisp&quot;,!0),e.ylines.style(&quot;fill&quot;,&quot;none&quot;).classed(&quot;crisp&quot;,!0)}function m(t,e){if(t){var r={};for(var i in t.each((function(t){var i=t[0];n.select(this).remove(),v(i,e),r[i]=!0})),e._plots)for(var a=e._plots[i].overlays||[],o=0;o&lt;a.length;o++){var s=a[o];r[s.id]&amp;&amp;s.plot.selectAll(&quot;.trace&quot;).remove()}}}function v(t,e){e._draggers.selectAll(&quot;g.&quot;+t).remove(),e._defs.select(&quot;#clip&quot;+e._uid+t+&quot;plot&quot;).remove()}r.name=&quot;cartesian&quot;,r.attr=[&quot;xaxis&quot;,&quot;yaxis&quot;],r.idRoot=[&quot;x&quot;,&quot;y&quot;],r.idRegex=u.idRegex,r.attrRegex=u.attrRegex,r.attributes=t(&quot;./attributes&quot;),r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.transitionAxes=t(&quot;./transition_axes&quot;),r.finalizeSubplots=function(t,e){var r,n,i,o=e._subplots,s=o.xaxis,l=o.yaxis,f=o.cartesian,h=f.concat(o.gl2d||[]),p={},d={};for(r=0;r&lt;h.length;r++){var g=h[r].split(&quot;y&quot;);p[g[0]]=1,d[&quot;y&quot;+g[1]]=1}for(r=0;r&lt;s.length;r++)p[n=s[r]]||(i=(t[c.id2name(n)]||{}).anchor,u.idRegex.y.test(i)||(i=&quot;y&quot;),f.push(n+i),h.push(n+i),d[i]||(d[i]=1,a.pushUnique(l,i)));for(r=0;r&lt;l.length;r++)d[i=l[r]]||(n=(t[c.id2name(i)]||{}).anchor,u.idRegex.x.test(n)||(n=&quot;x&quot;),f.push(n+i),h.push(n+i),p[n]||(p[n]=1,a.pushUnique(s,n)));if(!h.length){for(var m in n=&quot;&quot;,i=&quot;&quot;,t){if(u.attrRegex.test(m))&quot;x&quot;===m.charAt(0)?(!n||+m.substr(5)&lt;+n.substr(5))&amp;&amp;(n=m):(!i||+m.substr(5)&lt;+i.substr(5))&amp;&amp;(i=m)}n=n?c.name2id(n):&quot;x&quot;,i=i?c.name2id(i):&quot;y&quot;,s.push(n),l.push(i),f.push(n+i)}},r.plot=function(t,e,r,n){var i,a=t._fullLayout,o=a._subplots.cartesian,s=t.calcdata;if(!Array.isArray(e))for(e=[],i=0;i&lt;s.length;i++)e.push(i);for(i=0;i&lt;o.length;i++){for(var l,c=o[i],u=a._plots[c],f=[],h=0;h&lt;s.length;h++){var p=s[h],g=p[0].trace;g.xaxis+g.yaxis===c&amp;&amp;((-1!==e.indexOf(g.index)||g.carpet)&amp;&amp;(l&amp;&amp;l[0].trace.xaxis+l[0].trace.yaxis===c&amp;&amp;-1!==[&quot;tonextx&quot;,&quot;tonexty&quot;,&quot;tonext&quot;].indexOf(g.fill)&amp;&amp;-1===f.indexOf(l)&amp;&amp;f.push(l),f.push(p)),l=p)}d(t,u,f,r,n)}},r.clean=function(t,e,r,n){var i,a,o,s=n._plots||{},l=e._plots||{},u=n._subplots||{};if(n._hasOnlyLargeSploms&amp;&amp;!e._hasOnlyLargeSploms)for(o in s)(i=s[o]).plotgroup&amp;&amp;i.plotgroup.remove();var f=n._has&amp;&amp;n._has(&quot;gl&quot;),h=e._has&amp;&amp;e._has(&quot;gl&quot;);if(f&amp;&amp;!h)for(o in s)(i=s[o])._scene&amp;&amp;i._scene.destroy();if(u.xaxis&amp;&amp;u.yaxis){var p=c.listIds({_fullLayout:n});for(a=0;a&lt;p.length;a++){var d=p[a];e[c.id2name(d)]||n._infolayer.selectAll(&quot;.g-&quot;+d+&quot;title&quot;).remove()}}var g=n._has&amp;&amp;n._has(&quot;cartesian&quot;),y=e._has&amp;&amp;e._has(&quot;cartesian&quot;);if(g&amp;&amp;!y)m(n._cartesianlayer.selectAll(&quot;.subplot&quot;),n),n._defs.selectAll(&quot;.axesclip&quot;).remove(),delete n._axisConstraintGroups,delete n._axisMatchGroups;else if(u.cartesian)for(a=0;a&lt;u.cartesian.length;a++){var x=u.cartesian[a];if(!l[x]){var b=&quot;.&quot;+x+&quot;,.&quot;+x+&quot;-x,.&quot;+x+&quot;-y&quot;;n._cartesianlayer.selectAll(b).remove(),v(x,n)}}},r.drawFramework=function(t){var e=t._fullLayout,r=function(t){var e,r,n,i,a,o,s=t._fullLayout,l=s._subplots.cartesian,c=l.length,u=[],f=[];for(e=0;e&lt;c;e++){n=l[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var h=a._mainAxis,p=o._mainAxis,d=h._id+p._id,g=s._plots[d];i.overlays=[],d!==n&amp;&amp;g?(i.mainplot=d,i.mainplotinfo=g,f.push(n)):(i.mainplot=void 0,i.mainplotinfo=void 0,u.push(n))}for(e=0;e&lt;f.length;e++)n=f[e],(i=s._plots[n]).mainplotinfo.overlays.push(i);var m=u.concat(f),v=new Array(c);for(e=0;e&lt;c;e++){n=m[e],i=s._plots[n],a=i.xaxis,o=i.yaxis;var y=[n,a.layer,o.layer,a.overlaying||&quot;&quot;,o.overlaying||&quot;&quot;];for(r=0;r&lt;i.overlays.length;r++)y.push(i.overlays[r].id);v[e]=y}return v}(t),i=e._cartesianlayer.selectAll(&quot;.subplot&quot;).data(r,String);i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;subplot &quot;+t[0]})),i.order(),i.exit().call(m,e),i.each((function(r){var i=r[0],a=e._plots[i];a.plotgroup=n.select(this),g(t,a),a.draglayer=h(e._draggers,&quot;g&quot;,i)}))},r.rangePlot=function(t,e,r){g(t,e),d(t,e,r),o.style(t)},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(&quot;.svg-container&quot;);r.filter((function(t,e){return e===r.size()-1})).selectAll(&quot;.gl-canvas-context, .gl-canvas-focus&quot;).each((function(){var t=this.toDataURL(&quot;image/png&quot;);e.append(&quot;svg:image&quot;).attr({xmlns:f.svg,&quot;xlink:href&quot;:t,preserveAspectRatio:&quot;none&quot;,x:0,y:0,width:this.width,height:this.height})}))},r.updateFx=t(&quot;./graph_interact&quot;).updateFx},{&quot;../../components/drawing&quot;:665,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../get_data&quot;:865,&quot;../plots&quot;:891,&quot;./attributes&quot;:826,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./graph_interact&quot;:837,&quot;./layout_attributes&quot;:842,&quot;./layout_defaults&quot;:843,&quot;./transition_axes&quot;:852,d3:169}],842:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../font_attributes&quot;),i=t(&quot;../../components/color/attributes&quot;),a=t(&quot;../../components/drawing/attributes&quot;).dash,o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/plot_template&quot;).templatedArray,l=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,t(&quot;../../constants/docs&quot;).DATE_FORMAT_LINK,t(&quot;../../constants/numerical&quot;).ONEDAY),c=t(&quot;./constants&quot;),u=c.HOUR_PATTERN,f=c.WEEKDAY_PATTERN;e.exports={visible:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},title:{text:{valType:&quot;string&quot;,editType:&quot;ticks&quot;},font:n({editType:&quot;ticks&quot;}),standoff:{valType:&quot;number&quot;,min:0,editType:&quot;ticks&quot;},editType:&quot;ticks&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;,&quot;multicategory&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;,_noTemplating:!0},autotypenumbers:{valType:&quot;enumerated&quot;,values:[&quot;convert types&quot;,&quot;strict&quot;],dflt:&quot;convert types&quot;,editType:&quot;calc&quot;},autorange:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],dflt:!0,editType:&quot;axrange&quot;,impliedEdits:{&quot;range[0]&quot;:void 0,&quot;range[1]&quot;:void 0}},rangemode:{valType:&quot;enumerated&quot;,values:[&quot;normal&quot;,&quot;tozero&quot;,&quot;nonnegative&quot;],dflt:&quot;normal&quot;,editType:&quot;plot&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;axrange&quot;,impliedEdits:{&quot;^autorange&quot;:!1},anim:!0},{valType:&quot;any&quot;,editType:&quot;axrange&quot;,impliedEdits:{&quot;^autorange&quot;:!1},anim:!0}],editType:&quot;axrange&quot;,impliedEdits:{autorange:!1},anim:!0},fixedrange:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},scaleanchor:{valType:&quot;enumerated&quot;,values:[c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;plot&quot;},scaleratio:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},constrain:{valType:&quot;enumerated&quot;,values:[&quot;range&quot;,&quot;domain&quot;],editType:&quot;plot&quot;},constraintoward:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;plot&quot;},matches:{valType:&quot;enumerated&quot;,values:[c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;calc&quot;},rangebreaks:s(&quot;rangebreak&quot;,{enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},bounds:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},pattern:{valType:&quot;enumerated&quot;,values:[f,u,&quot;&quot;],editType:&quot;calc&quot;},values:{valType:&quot;info_array&quot;,freeLength:!0,editType:&quot;calc&quot;,items:{valType:&quot;any&quot;,editType:&quot;calc&quot;}},dvalue:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0,dflt:l},editType:&quot;calc&quot;}),tickmode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;linear&quot;,&quot;array&quot;],editType:&quot;ticks&quot;,impliedEdits:{tick0:void 0,dtick:void 0}},nticks:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;ticks&quot;},tick0:{valType:&quot;any&quot;,editType:&quot;ticks&quot;,impliedEdits:{tickmode:&quot;linear&quot;}},dtick:{valType:&quot;any&quot;,editType:&quot;ticks&quot;,impliedEdits:{tickmode:&quot;linear&quot;}},tickvals:{valType:&quot;data_array&quot;,editType:&quot;ticks&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;ticks&quot;},ticks:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;&quot;],editType:&quot;ticks&quot;},tickson:{valType:&quot;enumerated&quot;,values:[&quot;labels&quot;,&quot;boundaries&quot;],dflt:&quot;labels&quot;,editType:&quot;ticks&quot;},ticklabelmode:{valType:&quot;enumerated&quot;,values:[&quot;instant&quot;,&quot;period&quot;],dflt:&quot;instant&quot;,editType:&quot;ticks&quot;},ticklabelposition:{valType:&quot;enumerated&quot;,values:[&quot;outside&quot;,&quot;inside&quot;,&quot;outside top&quot;,&quot;inside top&quot;,&quot;outside left&quot;,&quot;inside left&quot;,&quot;outside right&quot;,&quot;inside right&quot;,&quot;outside bottom&quot;,&quot;inside bottom&quot;],dflt:&quot;outside&quot;,editType:&quot;calc&quot;},mirror:{valType:&quot;enumerated&quot;,values:[!0,&quot;ticks&quot;,!1,&quot;all&quot;,&quot;allticks&quot;],dflt:!1,editType:&quot;ticks+layoutstyle&quot;},ticklen:{valType:&quot;number&quot;,min:0,dflt:5,editType:&quot;ticks&quot;},tickwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks&quot;},tickcolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},showticklabels:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},automargin:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks&quot;},showspikes:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;modebar&quot;},spikecolor:{valType:&quot;color&quot;,dflt:null,editType:&quot;none&quot;},spikethickness:{valType:&quot;number&quot;,dflt:3,editType:&quot;none&quot;},spikedash:o({},a,{dflt:&quot;dash&quot;,editType:&quot;none&quot;}),spikemode:{valType:&quot;flaglist&quot;,flags:[&quot;toaxis&quot;,&quot;across&quot;,&quot;marker&quot;],dflt:&quot;toaxis&quot;,editType:&quot;none&quot;},spikesnap:{valType:&quot;enumerated&quot;,values:[&quot;data&quot;,&quot;cursor&quot;,&quot;hovered data&quot;],dflt:&quot;data&quot;,editType:&quot;none&quot;},tickfont:n({editType:&quot;ticks&quot;}),tickangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;ticks&quot;},tickprefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},showtickprefix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},ticksuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},showticksuffix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},showexponent:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;ticks&quot;},exponentformat:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;e&quot;,&quot;E&quot;,&quot;power&quot;,&quot;SI&quot;,&quot;B&quot;],dflt:&quot;B&quot;,editType:&quot;ticks&quot;},minexponent:{valType:&quot;number&quot;,dflt:3,min:0,editType:&quot;ticks&quot;},separatethousands:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks&quot;},tickformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},tickformatstops:s(&quot;tickformatstop&quot;,{enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},dtickrange:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;ticks&quot;},{valType:&quot;any&quot;,editType:&quot;ticks&quot;}],editType:&quot;ticks&quot;},value:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;ticks&quot;},editType:&quot;ticks&quot;}),hoverformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;none&quot;},showline:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;ticks+layoutstyle&quot;},linecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;layoutstyle&quot;},linewidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks+layoutstyle&quot;},showgrid:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},gridcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;ticks&quot;},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;ticks&quot;},zeroline:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},zerolinecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},zerolinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;ticks&quot;},showdividers:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;ticks&quot;},dividercolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;ticks&quot;},dividerwidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;ticks&quot;},anchor:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;,c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;right&quot;],editType:&quot;plot&quot;},overlaying:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;,c.idRegex.x.toString(),c.idRegex.y.toString()],editType:&quot;plot&quot;},layer:{valType:&quot;enumerated&quot;,values:[&quot;above traces&quot;,&quot;below traces&quot;],dflt:&quot;above traces&quot;,editType:&quot;plot&quot;},domain:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;},{valType:&quot;number&quot;,min:0,max:1,editType:&quot;plot&quot;}],dflt:[0,1],editType:&quot;plot&quot;},position:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;plot&quot;},categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;,&quot;total ascending&quot;,&quot;total descending&quot;,&quot;min ascending&quot;,&quot;min descending&quot;,&quot;max ascending&quot;,&quot;max descending&quot;,&quot;sum ascending&quot;,&quot;sum descending&quot;,&quot;mean ascending&quot;,&quot;mean descending&quot;,&quot;median ascending&quot;,&quot;median descending&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;,_deprecated:{autotick:{valType:&quot;boolean&quot;,editType:&quot;ticks&quot;},title:{valType:&quot;string&quot;,editType:&quot;ticks&quot;},titlefont:n({editType:&quot;ticks&quot;})}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../components/drawing/attributes&quot;:664,&quot;../../constants/docs&quot;:748,&quot;../../constants/numerical&quot;:753,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../font_attributes&quot;:856,&quot;./constants&quot;:834}],843:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/fx/helpers&quot;).isUnifiedHover,o=t(&quot;../../components/fx/hovermode_defaults&quot;),s=t(&quot;../../plot_api/plot_template&quot;),l=t(&quot;../layout_attributes&quot;),c=t(&quot;./layout_attributes&quot;),u=t(&quot;./type_defaults&quot;),f=t(&quot;./axis_defaults&quot;),h=t(&quot;./constraints&quot;),p=t(&quot;./position_defaults&quot;),d=t(&quot;./axis_ids&quot;),g=d.id2name,m=d.name2id,v=t(&quot;./constants&quot;).AX_ID_PATTERN,y=t(&quot;../../registry&quot;),x=y.traceIs,b=y.getComponentMethod;function _(t,e,r){Array.isArray(t[e])?t[e].push(r):t[e]=[r]}e.exports=function(t,e,r){var y,w,T=e.autotypenumbers,k={},M={},A={},S={},E={},C={},L={},I={},P={},z={};for(y=0;y&lt;r.length;y++){var O=r[y];if(x(O,&quot;cartesian&quot;)||x(O,&quot;gl2d&quot;)){var D,R;if(O.xaxis)D=g(O.xaxis),_(k,D,O);else if(O.xaxes)for(w=0;w&lt;O.xaxes.length;w++)_(k,g(O.xaxes[w]),O);if(O.yaxis)R=g(O.yaxis),_(k,R,O);else if(O.yaxes)for(w=0;w&lt;O.yaxes.length;w++)_(k,g(O.yaxes[w]),O);if(&quot;funnel&quot;===O.type?&quot;h&quot;===O.orientation?(D&amp;&amp;(M[D]=!0),R&amp;&amp;(L[R]=!0)):R&amp;&amp;(A[R]=!0):&quot;image&quot;===O.type?(R&amp;&amp;(I[R]=!0),D&amp;&amp;(I[D]=!0)):(R&amp;&amp;(E[R]=!0,C[R]=!0),x(O,&quot;carpet&quot;)&amp;&amp;(&quot;carpet&quot;!==O.type||O._cheater)||D&amp;&amp;(S[D]=!0)),&quot;carpet&quot;===O.type&amp;&amp;O._cheater&amp;&amp;D&amp;&amp;(M[D]=!0),x(O,&quot;2dMap&quot;)&amp;&amp;(P[D]=!0,P[R]=!0),x(O,&quot;oriented&quot;))z[&quot;h&quot;===O.orientation?R:D]=!0}}var F=e._subplots,B=F.xaxis,N=F.yaxis,j=n.simpleMap(B,g),U=n.simpleMap(N,g),V=j.concat(U),q=i.background;B.length&amp;&amp;N.length&amp;&amp;(q=n.coerce(t,e,l,&quot;plot_bgcolor&quot;));var H,G,Y,W,X,Z=i.combine(q,e.paper_bgcolor);function J(){var t=k[H]||[];X._traceIndices=t.map((function(t){return t._expandedIndex})),X._annIndices=[],X._shapeIndices=[],X._imgIndices=[],X._subplotsWith=[],X._counterAxes=[],X._name=X._attr=H,X._id=G}function K(t,e){return n.coerce(W,X,c,t,e)}function Q(t,e){return n.coerce2(W,X,c,t,e)}function $(t){return&quot;x&quot;===t?N:B}function tt(e,r){for(var n=&quot;x&quot;===e?j:U,i=[],a=0;a&lt;n.length;a++){var o=n[a];o===r||(t[o]||{}).overlaying||i.push(m(o))}return i}var et={x:$(&quot;x&quot;),y:$(&quot;y&quot;)},rt=et.x.concat(et.y),nt={},it=[];function at(){var t=W.matches;v.test(t)&amp;&amp;-1===rt.indexOf(t)&amp;&amp;(nt[t]=W.type,it=Object.keys(nt))}var ot=o(t,e,r),st=a(ot);for(y=0;y&lt;V.length;y++){H=V[y],G=m(H),Y=H.charAt(0),n.isPlainObject(t[H])||(t[H]={}),W=t[H],X=s.newContainer(e,H,Y+&quot;axis&quot;),J();var lt=&quot;x&quot;===Y&amp;&amp;!S[H]&amp;&amp;M[H]||&quot;y&quot;===Y&amp;&amp;!E[H]&amp;&amp;A[H],ct=&quot;y&quot;===Y&amp;&amp;(!C[H]&amp;&amp;L[H]||I[H]),ut={letter:Y,font:e.font,outerTicks:P[H],showGrid:!z[H],data:k[H]||[],bgColor:Z,calendar:e.calendar,automargin:!0,visibleDflt:lt,reverseDflt:ct,autotypenumbersDflt:T,splomStash:((e._splomAxes||{})[Y]||{})[G]};K(&quot;uirevision&quot;,e.uirevision),u(W,X,K,ut),f(W,X,K,ut,e);var ft=st&amp;&amp;Y===ot.charAt(0),ht=Q(&quot;spikecolor&quot;,st?X.color:void 0),pt=Q(&quot;spikethickness&quot;,st?1.5:void 0),dt=Q(&quot;spikedash&quot;,st?&quot;dot&quot;:void 0),gt=Q(&quot;spikemode&quot;,st?&quot;across&quot;:void 0),mt=Q(&quot;spikesnap&quot;,st?&quot;hovered data&quot;:void 0);K(&quot;showspikes&quot;,!!(ft||ht||pt||dt||gt||mt))||(delete X.spikecolor,delete X.spikethickness,delete X.spikedash,delete X.spikemode,delete X.spikesnap),p(W,X,K,{letter:Y,counterAxes:et[Y],overlayableAxes:tt(Y,H),grid:e.grid}),K(&quot;title.standoff&quot;),at(),X._input=W}for(y=0;y&lt;it.length;){G=it[y++],Y=(H=g(G)).charAt(0),n.isPlainObject(t[H])||(t[H]={}),W=t[H],X=s.newContainer(e,H,Y+&quot;axis&quot;),J();var vt={letter:Y,font:e.font,outerTicks:P[H],showGrid:!z[H],data:[],bgColor:Z,calendar:e.calendar,automargin:!0,visibleDflt:!1,reverseDflt:!1,autotypenumbersDflt:T,splomStash:((e._splomAxes||{})[Y]||{})[G]};K(&quot;uirevision&quot;,e.uirevision),X.type=nt[G]||&quot;linear&quot;,f(W,X,K,vt,e),p(W,X,K,{letter:Y,counterAxes:et[Y],overlayableAxes:tt(Y,H),grid:e.grid}),K(&quot;fixedrange&quot;),at(),X._input=W}var yt=b(&quot;rangeslider&quot;,&quot;handleDefaults&quot;),xt=b(&quot;rangeselector&quot;,&quot;handleDefaults&quot;);for(y=0;y&lt;j.length;y++)H=j[y],W=t[H],X=e[H],yt(t,e,H),&quot;date&quot;===X.type&amp;&amp;xt(W,X,e,U,X.calendar),K(&quot;fixedrange&quot;);for(y=0;y&lt;U.length;y++){H=U[y],W=t[H],X=e[H];var bt=e[g(X.anchor)];K(&quot;fixedrange&quot;,b(&quot;rangeslider&quot;,&quot;isVisible&quot;)(bt))}h.handleDefaults(t,e,{axIds:rt.concat(it).sort(d.idSort),axHasImage:I})}},{&quot;../../components/color&quot;:643,&quot;../../components/fx/helpers&quot;:679,&quot;../../components/fx/hovermode_defaults&quot;:682,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../registry&quot;:911,&quot;../layout_attributes&quot;:882,&quot;./axis_defaults&quot;:830,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./constraints&quot;:835,&quot;./layout_attributes&quot;:842,&quot;./position_defaults&quot;:845,&quot;./type_defaults&quot;:853}],844:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;).mix,i=t(&quot;../../components/color/attributes&quot;).lightFraction,a=t(&quot;../../lib&quot;);e.exports=function(t,e,r,o){var s=(o=o||{}).dfltColor;function l(r,n){return a.coerce2(t,e,o.attributes,r,n)}var c=l(&quot;linecolor&quot;,s),u=l(&quot;linewidth&quot;);r(&quot;showline&quot;,o.showLine||!!c||!!u)||(delete e.linecolor,delete e.linewidth);var f=l(&quot;gridcolor&quot;,n(s,o.bgColor,o.blend||i).toRgbString()),h=l(&quot;gridwidth&quot;);if(r(&quot;showgrid&quot;,o.showGrid||!!f||!!h)||(delete e.gridcolor,delete e.gridwidth),!o.noZeroLine){var p=l(&quot;zerolinecolor&quot;,s),d=l(&quot;zerolinewidth&quot;);r(&quot;zeroline&quot;,o.showGrid||!!p||!!d)||(delete e.zerolinecolor,delete e.zerolinewidth)}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib&quot;:778,tinycolor2:576}],845:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o,s,l,c,u=a.counterAxes||[],f=a.overlayableAxes||[],h=a.letter,p=a.grid;p&amp;&amp;(s=p._domains[h][p._axisMap[e._id]],o=p._anchors[e._id],s&amp;&amp;(l=p[h+&quot;side&quot;].split(&quot; &quot;)[0],c=p.domain[h][&quot;right&quot;===l||&quot;top&quot;===l?1:0])),s=s||[0,1],o=o||(n(t.position)?&quot;free&quot;:u[0]||&quot;free&quot;),l=l||(&quot;x&quot;===h?&quot;bottom&quot;:&quot;left&quot;),c=c||0,&quot;free&quot;===i.coerce(t,e,{anchor:{valType:&quot;enumerated&quot;,values:[&quot;free&quot;].concat(u),dflt:o}},&quot;anchor&quot;)&amp;&amp;r(&quot;position&quot;,c),i.coerce(t,e,{side:{valType:&quot;enumerated&quot;,values:&quot;x&quot;===h?[&quot;bottom&quot;,&quot;top&quot;]:[&quot;left&quot;,&quot;right&quot;],dflt:l}},&quot;side&quot;);var d=!1;if(f.length&amp;&amp;(d=i.coerce(t,e,{overlaying:{valType:&quot;enumerated&quot;,values:[!1].concat(f),dflt:!1}},&quot;overlaying&quot;)),!d){var g=r(&quot;domain&quot;,s);g[0]&gt;g[1]-1/4096&amp;&amp;(e.domain=s),i.noneOrAll(t.domain,e.domain,s)}return r(&quot;layer&quot;),e}},{&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],846:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/alignment&quot;).FROM_BL;e.exports=function(t,e,r){void 0===r&amp;&amp;(r=n[t.constraintoward||&quot;center&quot;]);var i=[t.r2l(t.range[0]),t.r2l(t.range[1])],a=i[0]+(i[1]-i[0])*r;t.range=t._input.range=[t.l2r(a+(i[0]-a)*e),t.l2r(a+(i[1]-a)*e)],t.setScale()}},{&quot;../../constants/alignment&quot;:745}],847:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;polybooljs&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/drawing&quot;).dashStyle,o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;../../components/fx/helpers&quot;).makeEventData,c=t(&quot;../../components/dragelement/helpers&quot;),u=c.freeMode,f=c.rectMode,h=c.drawMode,p=c.openMode,d=c.selectMode,g=t(&quot;../../components/shapes/draw_newshape/display_outlines&quot;),m=t(&quot;../../components/shapes/draw_newshape/helpers&quot;).handleEllipse,v=t(&quot;../../components/shapes/draw_newshape/newshapes&quot;),y=t(&quot;../../lib&quot;),x=t(&quot;../../lib/polygon&quot;),b=t(&quot;../../lib/throttle&quot;),_=t(&quot;./axis_ids&quot;).getFromId,w=t(&quot;../../lib/clear_gl_canvases&quot;),T=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,k=t(&quot;./constants&quot;),M=k.MINSELECT,A=x.filter,S=x.tester,E=t(&quot;./handle_outline&quot;).clearSelect,C=t(&quot;./helpers&quot;),L=C.p2r,I=C.axValue,P=C.getTransform;function z(t,e,r,n,i,a,o){var s,l,c,u,f,h,d,m,v,y=e._hoverdata,x=e._fullLayout.clickmode.indexOf(&quot;event&quot;)&gt;-1,b=[];if(function(t){return t&amp;&amp;Array.isArray(t)&amp;&amp;!0!==t[0].hoverOnBox}(y)){F(t,e,a);var _=function(t,e){var r,n,i=t[0],a=-1,o=[];for(n=0;n&lt;e.length;n++)if(r=e[n],i.fullData._expandedIndex===r.cd[0].trace._expandedIndex){if(!0===i.hoverOnBox)break;void 0!==i.pointNumber?a=i.pointNumber:void 0!==i.binNumber&amp;&amp;(a=i.binNumber,o=i.pointNumbers);break}return{pointNumber:a,pointNumbers:o,searchInfo:r}}(y,s=N(e,r,n,i));if(_.pointNumbers.length&gt;0?function(t,e){var r,n,i,a=[];for(i=0;i&lt;t.length;i++)(r=t[i]).cd[0].trace.selectedpoints&amp;&amp;r.cd[0].trace.selectedpoints.length&gt;0&amp;&amp;a.push(r);if(1===a.length&amp;&amp;a[0]===e.searchInfo&amp;&amp;(n=e.searchInfo.cd[0].trace).selectedpoints.length===e.pointNumbers.length){for(i=0;i&lt;e.pointNumbers.length;i++)if(n.selectedpoints.indexOf(e.pointNumbers[i])&lt;0)return!1;return!0}return!1}(s,_):function(t){var e,r,n,i=0;for(n=0;n&lt;t.length;n++)if(e=t[n],(r=e.cd[0].trace).selectedpoints){if(r.selectedpoints.length&gt;1)return!1;if((i+=r.selectedpoints.length)&gt;1)return!1}return 1===i}(s)&amp;&amp;(h=j(_))){for(o&amp;&amp;o.remove(),v=0;v&lt;s.length;v++)(l=s[v])._module.selectPoints(l,!1);U(e,s),B(a),x&amp;&amp;e.emit(&quot;plotly_deselect&quot;,null)}else{for(d=t.shiftKey&amp;&amp;(void 0!==h?h:j(_)),c=function(t,e,r){return{pointNumber:t,searchInfo:e,subtract:r}}(_.pointNumber,_.searchInfo,d),u=R(a.selectionDefs.concat([c])),v=0;v&lt;s.length;v++)if(f=V(s[v]._module.selectPoints(s[v],u),s[v]),b.length)for(var w=0;w&lt;f.length;w++)b.push(f[w]);else b=f;if(U(e,s,m={points:b}),c&amp;&amp;a&amp;&amp;a.selectionDefs.push(c),o){var T=a.mergedPolygons,k=p(a.dragmode);g(q(T,k),o,a)}x&amp;&amp;e.emit(&quot;plotly_selected&quot;,m)}}}function O(t){return&quot;pointNumber&quot;in t&amp;&amp;&quot;searchInfo&quot;in t}function D(t){return{xmin:0,xmax:0,ymin:0,ymax:0,pts:[],contains:function(e,r,n,i){var a=t.searchInfo.cd[0].trace._expandedIndex;return i.cd[0].trace._expandedIndex===a&amp;&amp;n===t.pointNumber},isRect:!1,degenerate:!1,subtract:t.subtract}}function R(t){for(var e=[],r=O(t[0])?0:t[0][0][0],n=r,i=O(t[0])?0:t[0][0][1],a=i,o=0;o&lt;t.length;o++)if(O(t[o]))e.push(D(t[o]));else{var s=x.tester(t[o]);s.subtract=t[o].subtract,e.push(s),r=Math.min(r,s.xmin),n=Math.max(n,s.xmax),i=Math.min(i,s.ymin),a=Math.max(a,s.ymax)}return{xmin:r,xmax:n,ymin:i,ymax:a,pts:[],contains:function(t,r,n,i){for(var a=!1,o=0;o&lt;e.length;o++)e[o].contains(t,r,n,i)&amp;&amp;(a=!1===e[o].subtract);return a},isRect:!1,degenerate:!1}}function F(t,e,r){e._fullLayout._drawing=!1;var n=e._fullLayout,i=r.plotinfo,a=r.dragmode,o=n._lastSelectedSubplot&amp;&amp;n._lastSelectedSubplot===i.id,s=(t.shiftKey||t.altKey)&amp;&amp;!(h(a)&amp;&amp;p(a));o&amp;&amp;s&amp;&amp;i.selection&amp;&amp;i.selection.selectionDefs&amp;&amp;!r.selectionDefs?(r.selectionDefs=i.selection.selectionDefs,r.mergedPolygons=i.selection.mergedPolygons):s&amp;&amp;i.selection||B(r),o||(E(e),n._lastSelectedSubplot=i.id)}function B(t){var e=t.dragmode,r=t.plotinfo,n=t.gd;if(n._fullLayout._activeShapeIndex&gt;=0&amp;&amp;n._fullLayout._deactivateShape(n),h(e)){var a=n._fullLayout._zoomlayer.selectAll(&quot;.select-outline-&quot;+r.id);if(a&amp;&amp;n._fullLayout._drawing){var o=v(a,t);o&amp;&amp;i.call(&quot;_guiRelayout&quot;,n,{shapes:o}),n._fullLayout._drawing=!1}}r.selection={},r.selection.selectionDefs=t.selectionDefs=[],r.selection.mergedPolygons=t.mergedPolygons=[]}function N(t,e,r,n){var i,a,o,s=[],l=e.map((function(t){return t._id})),c=r.map((function(t){return t._id}));for(o=0;o&lt;t.calcdata.length;o++)if(!0===(a=(i=t.calcdata[o])[0].trace).visible&amp;&amp;a._module&amp;&amp;a._module.selectPoints)if(!n||a.subplot!==n&amp;&amp;a.geo!==n)if(&quot;splom&quot;===a.type&amp;&amp;a._xaxes[l[0]]&amp;&amp;a._yaxes[c[0]]){var u=h(a._module,i,e[0],r[0]);u.scene=t._fullLayout._splomScenes[a.uid],s.push(u)}else if(&quot;sankey&quot;===a.type){var f=h(a._module,i,e[0],r[0]);s.push(f)}else{if(-1===l.indexOf(a.xaxis))continue;if(-1===c.indexOf(a.yaxis))continue;s.push(h(a._module,i,_(t,a.xaxis),_(t,a.yaxis)))}else s.push(h(a._module,i,e[0],r[0]));return s;function h(t,e,r,n){return{_module:t,cd:e,xaxis:r,yaxis:n}}}function j(t){var e=t.searchInfo.cd[0].trace,r=t.pointNumber,n=t.pointNumbers,i=n.length&gt;0?n[0]:r;return!!e.selectedpoints&amp;&amp;e.selectedpoints.indexOf(i)&gt;-1}function U(t,e,r){var n,a,o,s;for(n=0;n&lt;e.length;n++){var l=e[n].cd[0].trace._fullInput,c=t._fullLayout._tracePreGUI[l.uid]||{};void 0===c.selectedpoints&amp;&amp;(c.selectedpoints=l._input.selectedpoints||null)}if(r){var u=r.points||[];for(n=0;n&lt;e.length;n++)(s=e[n].cd[0].trace)._input.selectedpoints=s._fullInput.selectedpoints=[],s._fullInput!==s&amp;&amp;(s.selectedpoints=[]);for(n=0;n&lt;u.length;n++){var f=u[n],h=f.data,p=f.fullData;f.pointIndices?([].push.apply(h.selectedpoints,f.pointIndices),s._fullInput!==s&amp;&amp;[].push.apply(p.selectedpoints,f.pointIndices)):(h.selectedpoints.push(f.pointIndex),s._fullInput!==s&amp;&amp;p.selectedpoints.push(f.pointIndex))}}else for(n=0;n&lt;e.length;n++)delete(s=e[n].cd[0].trace).selectedpoints,delete s._input.selectedpoints,s._fullInput!==s&amp;&amp;delete s._fullInput.selectedpoints;var d=!1;for(n=0;n&lt;e.length;n++){s=(o=(a=e[n]).cd)[0].trace,i.traceIs(s,&quot;regl&quot;)&amp;&amp;(d=!0);var g=a._module,m=g.styleOnSelect||g.style;m&amp;&amp;(m(t,o,o[0].node3),o[0].nodeRangePlot3&amp;&amp;m(t,o,o[0].nodeRangePlot3))}d&amp;&amp;(w(t),T(t))}function V(t,e){if(Array.isArray(t))for(var r=e.cd,n=e.cd[0].trace,i=0;i&lt;t.length;i++)t[i]=l(t[i],n,r);return t}function q(t,e){for(var r=[],n=0;n&lt;t.length;n++){r[n]=[];for(var i=0;i&lt;t[n].length;i++){r[n][i]=[],r[n][i][0]=i?&quot;L&quot;:&quot;M&quot;;for(var a=0;a&lt;t[n][i].length;a++)r[n][i].push(t[n][i][a])}e||r[n].push([&quot;Z&quot;,r[n][0][1],r[n][0][2]])}return r}e.exports={prepSelect:function(t,e,r,i,l){var c=u(l),v=f(l),x=p(l),_=h(l),w=d(l),T=&quot;drawcircle&quot;===l,E=&quot;drawline&quot;===l||T,C=i.gd,O=C._fullLayout,D=O._zoomlayer,j=i.element.getBoundingClientRect(),H=i.plotinfo,G=P(H),Y=e-j.left,W=r-j.top;O._calcInverseTransform(C);var X=y.apply3DTransform(O._invTransform)(Y,W);Y=X[0],W=X[1];var Z,J,K,Q,$,tt,et,rt=O._invScaleX,nt=O._invScaleY,it=Y,at=W,ot=&quot;M&quot;+Y+&quot;,&quot;+W,st=i.xaxes[0]._length,lt=i.yaxes[0]._length,ct=i.xaxes.concat(i.yaxes),ut=t.altKey&amp;&amp;!(h(l)&amp;&amp;x);F(t,C,i),c&amp;&amp;(Z=A([[Y,W]],k.BENDPX));var ft=D.selectAll(&quot;path.select-outline-&quot;+H.id).data(_?[0]:[1,2]),ht=O.newshape;ft.enter().append(&quot;path&quot;).attr(&quot;class&quot;,(function(t){return&quot;select-outline select-outline-&quot;+t+&quot; select-outline-&quot;+H.id})).style(_?{opacity:ht.opacity/2,fill:x?void 0:ht.fillcolor,stroke:ht.line.color,&quot;stroke-dasharray&quot;:a(ht.line.dash,ht.line.width),&quot;stroke-width&quot;:ht.line.width+&quot;px&quot;}:{}).attr(&quot;fill-rule&quot;,ht.fillrule).classed(&quot;cursor-move&quot;,!!_).attr(&quot;transform&quot;,G).attr(&quot;d&quot;,ot+&quot;Z&quot;);var pt,dt=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).style({fill:o.background,stroke:o.defaultLine,&quot;stroke-width&quot;:1}).attr(&quot;transform&quot;,G).attr(&quot;d&quot;,&quot;M0,0Z&quot;),gt=O._uid+k.SELECTID,mt=[],vt=N(C,i.xaxes,i.yaxes,i.subplot);function yt(t,e){return t-e}pt=H.fillRangeItems?H.fillRangeItems:v?function(t,e){var r=t.range={};for($=0;$&lt;ct.length;$++){var n=ct[$],i=n._id.charAt(0);r[n._id]=[L(n,e[i+&quot;min&quot;]),L(n,e[i+&quot;max&quot;])].sort(yt)}}:function(t,e,r){var n=t.lassoPoints={};for($=0;$&lt;ct.length;$++){var i=ct[$];n[i._id]=r.filtered.map(I(i))}},i.moveFn=function(t,e){it=Math.max(0,Math.min(st,rt*t+Y)),at=Math.max(0,Math.min(lt,nt*e+W));var r=Math.abs(it-Y),a=Math.abs(at-W);if(v){var o,s,l;if(w){var u=O.selectdirection;switch(o=&quot;any&quot;===u?a&lt;Math.min(.6*r,M)?&quot;h&quot;:r&lt;Math.min(.6*a,M)?&quot;v&quot;:&quot;d&quot;:u){case&quot;h&quot;:s=T?lt/2:0,l=lt;break;case&quot;v&quot;:s=T?st/2:0,l=st}}if(_)switch(O.newshape.drawdirection){case&quot;vertical&quot;:o=&quot;h&quot;,s=T?lt/2:0,l=lt;break;case&quot;horizontal&quot;:o=&quot;v&quot;,s=T?st/2:0,l=st;break;case&quot;ortho&quot;:r&lt;a?(o=&quot;h&quot;,s=W,l=at):(o=&quot;v&quot;,s=Y,l=it);break;default:o=&quot;d&quot;}&quot;h&quot;===o?((Q=E?m(T,[it,s],[it,l]):[[Y,s],[Y,l],[it,l],[it,s]]).xmin=E?it:Math.min(Y,it),Q.xmax=E?it:Math.max(Y,it),Q.ymin=Math.min(s,l),Q.ymax=Math.max(s,l),dt.attr(&quot;d&quot;,&quot;M&quot;+Q.xmin+&quot;,&quot;+(W-M)+&quot;h-4v&quot;+2*M+&quot;h4ZM&quot;+(Q.xmax-1)+&quot;,&quot;+(W-M)+&quot;h4v&quot;+2*M+&quot;h-4Z&quot;)):&quot;v&quot;===o?((Q=E?m(T,[s,at],[l,at]):[[s,W],[s,at],[l,at],[l,W]]).xmin=Math.min(s,l),Q.xmax=Math.max(s,l),Q.ymin=E?at:Math.min(W,at),Q.ymax=E?at:Math.max(W,at),dt.attr(&quot;d&quot;,&quot;M&quot;+(Y-M)+&quot;,&quot;+Q.ymin+&quot;v-4h&quot;+2*M+&quot;v4ZM&quot;+(Y-M)+&quot;,&quot;+(Q.ymax-1)+&quot;v4h&quot;+2*M+&quot;v-4Z&quot;)):&quot;d&quot;===o&amp;&amp;((Q=E?m(T,[Y,W],[it,at]):[[Y,W],[Y,at],[it,at],[it,W]]).xmin=Math.min(Y,it),Q.xmax=Math.max(Y,it),Q.ymin=Math.min(W,at),Q.ymax=Math.max(W,at),dt.attr(&quot;d&quot;,&quot;M0,0Z&quot;))}else c&amp;&amp;(Z.addPt([it,at]),Q=Z.filtered);i.selectionDefs&amp;&amp;i.selectionDefs.length?(K=function(t,e,r){if(r)return n.difference({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions;return n.union({regions:t,inverted:!1},{regions:[e],inverted:!1}).regions}(i.mergedPolygons,Q,ut),Q.subtract=ut,J=R(i.selectionDefs.concat([Q]))):(K=[Q],J=S(Q)),g(q(K,x),ft,i),w&amp;&amp;b.throttle(gt,k.SELECTDELAY,(function(){var t;mt=[];var e,r=[];for($=0;$&lt;vt.length;$++)if(e=(tt=vt[$])._module.selectPoints(tt,J),r.push(e),t=V(e,tt),mt.length)for(var n=0;n&lt;t.length;n++)mt.push(t[n]);else mt=t;U(C,vt,et={points:mt}),pt(et,Q,Z),i.gd.emit(&quot;plotly_selecting&quot;,et)}))},i.clickFn=function(t,e){if(dt.remove(),C._fullLayout._activeShapeIndex&gt;=0)C._fullLayout._deactivateShape(C);else if(!_){var r=O.clickmode;b.done(gt).then((function(){if(b.clear(gt),2===t){for(ft.remove(),$=0;$&lt;vt.length;$++)(tt=vt[$])._module.selectPoints(tt,!1);U(C,vt),B(i),C.emit(&quot;plotly_deselect&quot;,null)}else r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;z(e,C,i.xaxes,i.yaxes,i.subplot,i,ft),&quot;event&quot;===r&amp;&amp;C.emit(&quot;plotly_selected&quot;,void 0);s.click(C,e)})).catch(y.error)}},i.doneFn=function(){dt.remove(),b.done(gt).then((function(){b.clear(gt),i.gd.emit(&quot;plotly_selected&quot;,et),Q&amp;&amp;i.selectionDefs&amp;&amp;(Q.subtract=ut,i.selectionDefs.push(Q),i.mergedPolygons.length=0,[].push.apply(i.mergedPolygons,K)),i.doneFnCompleted&amp;&amp;i.doneFnCompleted(mt)})).catch(y.error),_&amp;&amp;B(i)}},clearSelect:E,clearSelectionsCache:B,selectOnClick:z}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../components/fx/helpers&quot;:679,&quot;../../components/shapes/draw_newshape/display_outlines&quot;:728,&quot;../../components/shapes/draw_newshape/helpers&quot;:729,&quot;../../components/shapes/draw_newshape/newshapes&quot;:730,&quot;../../lib&quot;:778,&quot;../../lib/clear_gl_canvases&quot;:762,&quot;../../lib/polygon&quot;:790,&quot;../../lib/throttle&quot;:804,&quot;../../plot_api/subroutines&quot;:818,&quot;../../registry&quot;:911,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,&quot;./handle_outline&quot;:838,&quot;./helpers&quot;:839,polybooljs:517}],848:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-time-format&quot;).utcFormat,a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../lib&quot;),s=o.cleanNumber,l=o.ms2DateTime,c=o.dateTime2ms,u=o.ensureNumber,f=o.isArrayOrTypedArray,h=t(&quot;../../constants/numerical&quot;),p=h.FP_SAFE,d=h.BADNUM,g=h.LOG_CLIP,m=h.ONEWEEK,v=h.ONEDAY,y=h.ONEHOUR,x=h.ONEMIN,b=h.ONESEC,_=t(&quot;./axis_ids&quot;),w=t(&quot;./constants&quot;),T=w.HOUR_PATTERN,k=w.WEEKDAY_PATTERN;function M(t){return Math.pow(10,t)}function A(t){return null!=t}e.exports=function(t,e){e=e||{};var r=t._id||&quot;x&quot;,h=r.charAt(0);function S(e,r){if(e&gt;0)return Math.log(e)/Math.LN10;if(e&lt;=0&amp;&amp;r&amp;&amp;t.range&amp;&amp;2===t.range.length){var n=t.range[0],i=t.range[1];return.5*(n+i-2*g*Math.abs(n-i))}return d}function E(e,r,n,i){if((i||{}).msUTC&amp;&amp;a(e))return+e;var s=c(e,n||t.calendar);if(s===d){if(!a(e))return d;e=+e;var l=Math.floor(10*o.mod(e+.05,1)),u=Math.round(e-l/10);s=c(new Date(u))+l/10}return s}function C(e,r,n){return l(e,r,n||t.calendar)}function L(e){return t._categories[Math.round(e)]}function I(e){if(A(e)){if(void 0===t._categoriesMap&amp;&amp;(t._categoriesMap={}),void 0!==t._categoriesMap[e])return t._categoriesMap[e];t._categories.push(&quot;number&quot;==typeof e?String(e):e);var r=t._categories.length-1;return t._categoriesMap[e]=r,r}return d}function P(e){if(t._categoriesMap)return t._categoriesMap[e]}function z(t){var e=P(t);return void 0!==e?e:a(t)?+t:void 0}function O(t){return a(t)?+t:P(t)}function D(t,e,r){return n.round(r+e*t,2)}function R(t,e,r){return(t-r)/e}var F=function(e){return a(e)?D(e,t._m,t._b):d},B=function(e){return R(e,t._m,t._b)};if(t.rangebreaks){var N=&quot;y&quot;===h;F=function(e){if(!a(e))return d;var r=t._rangebreaks.length;if(!r)return D(e,t._m,t._b);var n=N;t.range[0]&gt;t.range[1]&amp;&amp;(n=!n);for(var i=n?-1:1,o=i*e,s=0,l=0;l&lt;r;l++){var c=i*t._rangebreaks[l].min,u=i*t._rangebreaks[l].max;if(o&lt;c)break;if(!(o&gt;u)){s=o&lt;(c+u)/2?l:l+1;break}s=l+1}var f=t._B[s]||0;return isFinite(f)?D(e,t._m2,f):0},B=function(e){var r=t._rangebreaks.length;if(!r)return R(e,t._m,t._b);for(var n=0,i=0;i&lt;r&amp;&amp;!(e&lt;t._rangebreaks[i].pmin);i++)e&gt;t._rangebreaks[i].pmax&amp;&amp;(n=i+1);return R(e,t._m2,t._B[n])}}t.c2l=&quot;log&quot;===t.type?S:u,t.l2c=&quot;log&quot;===t.type?M:u,t.l2p=F,t.p2l=B,t.c2p=&quot;log&quot;===t.type?function(t,e){return F(S(t,e))}:F,t.p2c=&quot;log&quot;===t.type?function(t){return M(B(t))}:B,-1!==[&quot;linear&quot;,&quot;-&quot;].indexOf(t.type)?(t.d2r=t.r2d=t.d2c=t.r2c=t.d2l=t.r2l=s,t.c2d=t.c2r=t.l2d=t.l2r=u,t.d2p=t.r2p=function(e){return t.l2p(s(e))},t.p2d=t.p2r=B,t.cleanPos=u):&quot;log&quot;===t.type?(t.d2r=t.d2l=function(t,e){return S(s(t),e)},t.r2d=t.r2c=function(t){return M(s(t))},t.d2c=t.r2l=s,t.c2d=t.l2r=u,t.c2r=S,t.l2d=M,t.d2p=function(e,r){return t.l2p(t.d2r(e,r))},t.p2d=function(t){return M(B(t))},t.r2p=function(e){return t.l2p(s(e))},t.p2r=B,t.cleanPos=u):&quot;date&quot;===t.type?(t.d2r=t.r2d=o.identity,t.d2c=t.r2c=t.d2l=t.r2l=E,t.c2d=t.c2r=t.l2d=t.l2r=C,t.d2p=t.r2p=function(e,r,n){return t.l2p(E(e,0,n))},t.p2d=t.p2r=function(t,e,r){return C(B(t),e,r)},t.cleanPos=function(e){return o.cleanDate(e,d,t.calendar)}):&quot;category&quot;===t.type?(t.d2c=t.d2l=I,t.r2d=t.c2d=t.l2d=L,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=O(e);return void 0!==r?r:t.fraction2r(.5)},t.l2r=t.c2r=u,t.r2l=O,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return L(B(t))},t.r2p=t.d2p,t.p2r=B,t.cleanPos=function(t){return&quot;string&quot;==typeof t&amp;&amp;&quot;&quot;!==t?t:u(t)}):&quot;multicategory&quot;===t.type&amp;&amp;(t.r2d=t.c2d=t.l2d=L,t.d2r=t.d2l_noadd=z,t.r2c=function(e){var r=z(e);return void 0!==r?r:t.fraction2r(.5)},t.r2c_just_indices=P,t.l2r=t.c2r=u,t.r2l=z,t.d2p=function(e){return t.l2p(t.r2c(e))},t.p2d=function(t){return L(B(t))},t.r2p=t.d2p,t.p2r=B,t.cleanPos=function(t){return Array.isArray(t)||&quot;string&quot;==typeof t&amp;&amp;&quot;&quot;!==t?t:u(t)},t.setupMultiCategory=function(n){var i,a,s=t._traceIndices,l=t._matchGroup;if(l&amp;&amp;0===t._categories.length)for(var c in l)if(c!==r){var u=e[_.id2name(c)];s=s.concat(u._traceIndices)}var p=[[0,{}],[0,{}]],d=[];for(i=0;i&lt;s.length;i++){var g=n[s[i]];if(h in g){var m=g[h],v=g._length||o.minRowLength(m);if(f(m[0])&amp;&amp;f(m[1]))for(a=0;a&lt;v;a++){var y=m[0][a],x=m[1][a];A(y)&amp;&amp;A(x)&amp;&amp;(d.push([y,x]),y in p[0][1]||(p[0][1][y]=p[0][0]++),x in p[1][1]||(p[1][1][x]=p[1][0]++))}}}for(d.sort((function(t,e){var r=p[0][1],n=r[t[0]]-r[e[0]];if(n)return n;var i=p[1][1];return i[t[1]]-i[e[1]]})),i=0;i&lt;d.length;i++)I(d[i])}),t.fraction2r=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return t.l2r(r+e*(n-r))},t.r2fraction=function(e){var r=t.r2l(t.range[0]),n=t.r2l(t.range[1]);return(t.r2l(e)-r)/(n-r)},t.cleanRange=function(e,r){r||(r={}),e||(e=&quot;range&quot;);var n,i,s=o.nestedProperty(t,e).get();if(i=(i=&quot;date&quot;===t.type?o.dfltRange(t.calendar):&quot;y&quot;===h?w.DFLTRANGEY:r.dfltRange||w.DFLTRANGEX).slice(),&quot;tozero&quot;!==t.rangemode&amp;&amp;&quot;nonnegative&quot;!==t.rangemode||(i[0]=0),s&amp;&amp;2===s.length)for(&quot;date&quot;!==t.type||t.autorange||(s[0]=o.cleanDate(s[0],d,t.calendar),s[1]=o.cleanDate(s[1],d,t.calendar)),n=0;n&lt;2;n++)if(&quot;date&quot;===t.type){if(!o.isDateTime(s[n],t.calendar)){t[e]=i;break}if(t.r2l(s[0])===t.r2l(s[1])){var l=o.constrain(t.r2l(s[0]),o.MIN_MS+1e3,o.MAX_MS-1e3);s[0]=t.l2r(l-1e3),s[1]=t.l2r(l+1e3);break}}else{if(!a(s[n])){if(!a(s[1-n])){t[e]=i;break}s[n]=s[1-n]*(n?10:.1)}if(s[n]&lt;-p?s[n]=-p:s[n]&gt;p&amp;&amp;(s[n]=p),s[0]===s[1]){var c=Math.max(1,Math.abs(1e-6*s[0]));s[0]-=c,s[1]+=c}}else o.nestedProperty(t,e).set(i)},t.setScale=function(r){var n=e._size;if(t.overlaying){var i=_.getFromId({_fullLayout:e},t.overlaying);t.domain=i.domain}var a=r&amp;&amp;t._r?&quot;_r&quot;:&quot;range&quot;,o=t.calendar;t.cleanRange(a);var s,l,c=t.r2l(t[a][0],o),u=t.r2l(t[a][1],o),f=&quot;y&quot;===h;if((f?(t._offset=n.t+(1-t.domain[1])*n.h,t._length=n.h*(t.domain[1]-t.domain[0]),t._m=t._length/(c-u),t._b=-t._m*u):(t._offset=n.l+t.domain[0]*n.w,t._length=n.w*(t.domain[1]-t.domain[0]),t._m=t._length/(u-c),t._b=-t._m*c),t._rangebreaks=[],t._lBreaks=0,t._m2=0,t._B=[],t.rangebreaks)&amp;&amp;(t._rangebreaks=t.locateBreaks(Math.min(c,u),Math.max(c,u)),t._rangebreaks.length)){for(s=0;s&lt;t._rangebreaks.length;s++)l=t._rangebreaks[s],t._lBreaks+=Math.abs(l.max-l.min);var p=f;c&gt;u&amp;&amp;(p=!p),p&amp;&amp;t._rangebreaks.reverse();var d=p?-1:1;for(t._m2=d*t._length/(Math.abs(u-c)-t._lBreaks),t._B.push(-t._m2*(f?u:c)),s=0;s&lt;t._rangebreaks.length;s++)l=t._rangebreaks[s],t._B.push(t._B[t._B.length-1]-d*t._m2*(l.max-l.min));for(s=0;s&lt;t._rangebreaks.length;s++)(l=t._rangebreaks[s]).pmin=F(l.min),l.pmax=F(l.max)}if(!isFinite(t._m)||!isFinite(t._b)||t._length&lt;0)throw e._replotting=!1,new Error(&quot;Something went wrong with axis scaling&quot;)},t.maskBreaks=function(e){for(var r,n,i,a,l,c=t.rangebreaks||[],u=0;u&lt;c.length;u++){var f=c[u];if(f.enabled)if(f.bounds){var h=f.pattern;switch(n=(r=o.simpleMap(f.bounds,h?s:t.d2c))[0],i=r[1],h){case k:a=(l=new Date(e)).getUTCDay(),n&gt;i&amp;&amp;(i+=7,a&lt;n&amp;&amp;(a+=7));break;case T:a=(l=new Date(e)).getUTCHours()+(l.getUTCMinutes()/60+l.getUTCSeconds()/3600+l.getUTCMilliseconds()/36e5),n&gt;i&amp;&amp;(i+=24,a&lt;n&amp;&amp;(a+=24));break;case&quot;&quot;:a=e}if(a&gt;=n&amp;&amp;a&lt;i)return d}else for(var p=o.simpleMap(f.values,t.d2c).sort(o.sorterAsc),g=0;g&lt;p.length;g++)if(i=(n=p[g])+f.dvalue,e&gt;=n&amp;&amp;e&lt;i)return d}return e},t.locateBreaks=function(e,r){var n,i,a,l,c=[];if(!t.rangebreaks)return c;var u=t.rangebreaks.slice().sort((function(t,e){return t.pattern===k&amp;&amp;e.pattern===T?-1:e.pattern===k&amp;&amp;t.pattern===T?1:0})),f=function(t,n){if((t=o.constrain(t,e,r))!==(n=o.constrain(n,e,r))){for(var i=!0,a=0;a&lt;c.length;a++){var s=c[a];t&lt;s.max&amp;&amp;n&gt;=s.min&amp;&amp;(t&lt;s.min&amp;&amp;(s.min=t),n&gt;s.max&amp;&amp;(s.max=n),i=!1)}i&amp;&amp;c.push({min:t,max:n})}};for(n=0;n&lt;u.length;n++){var h=u[n];if(h.enabled)if(h.bounds){var p=e,d=r;h.pattern&amp;&amp;(p=Math.floor(p)),a=(i=o.simpleMap(h.bounds,h.pattern?s:t.r2l))[0],l=i[1];var g,_,w=new Date(p);switch(h.pattern){case k:_=m,g=(l-a+(l&lt;a?7:0))*v,p+=a*v-(w.getUTCDay()*v+w.getUTCHours()*y+w.getUTCMinutes()*x+w.getUTCSeconds()*b+w.getUTCMilliseconds());break;case T:_=v,g=(l-a+(l&lt;a?24:0))*y,p+=a*y-(w.getUTCHours()*y+w.getUTCMinutes()*x+w.getUTCSeconds()*b+w.getUTCMilliseconds());break;default:p=Math.min(i[0],i[1]),g=_=(d=Math.max(i[0],i[1]))-p}for(var M=p;M&lt;d;M+=_)f(M,M+g)}else for(var A=o.simpleMap(h.values,t.d2c),S=0;S&lt;A.length;S++)f(a=A[S],l=a+h.dvalue)}return c.sort((function(t,e){return t.min-e.min})),c},t.makeCalcdata=function(e,r,n){var i,a,s,l,c=t.type,u=&quot;date&quot;===c&amp;&amp;e[r+&quot;calendar&quot;];if(r in e){if(i=e[r],l=e._length||o.minRowLength(i),o.isTypedArray(i)&amp;&amp;(&quot;linear&quot;===c||&quot;log&quot;===c)){if(l===i.length)return i;if(i.subarray)return i.subarray(0,l)}if(&quot;multicategory&quot;===c)return function(t,e){for(var r=new Array(e),n=0;n&lt;e;n++){var i=(t[0]||[])[n],a=(t[1]||[])[n];r[n]=P([i,a])}return r}(i,l);for(a=new Array(l),s=0;s&lt;l;s++)a[s]=t.d2c(i[s],0,u,n)}else{var f=r+&quot;0&quot;in e?t.d2c(e[r+&quot;0&quot;],0,u):0,h=e[&quot;d&quot;+r]?Number(e[&quot;d&quot;+r]):1;for(i=e[{x:&quot;y&quot;,y:&quot;x&quot;}[r]],l=e._length||i.length,a=new Array(l),s=0;s&lt;l;s++)a[s]=f+s*h}if(t.rangebreaks)for(s=0;s&lt;l;s++)a[s]=t.maskBreaks(a[s]);return a},t.isValidRange=function(e){return Array.isArray(e)&amp;&amp;2===e.length&amp;&amp;a(t.r2l(e[0]))&amp;&amp;a(t.r2l(e[1]))},t.isPtWithinRange=function(e,r){var n=t.c2l(e[h],null,r),i=t.r2l(t.range[0]),a=t.r2l(t.range[1]);return i&lt;a?i&lt;=n&amp;&amp;n&lt;=a:a&lt;=n&amp;&amp;n&lt;=i},t._emptyCategories=function(){t._categories=[],t._categoriesMap={}},t.clearCalc=function(){var r=t._matchGroup;if(r){var n=null,i=null;for(var a in r){var o=e[_.id2name(a)];if(o._categories){n=o._categories,i=o._categoriesMap;break}}n&amp;&amp;i?(t._categories=n,t._categoriesMap=i):t._emptyCategories()}else t._emptyCategories();if(t._initialCategories)for(var s=0;s&lt;t._initialCategories.length;s++)I(t._initialCategories[s])},t.sortByInitialCategories=function(){var n=[];if(t._emptyCategories(),t._initialCategories)for(var i=0;i&lt;t._initialCategories.length;i++)I(t._initialCategories[i]);n=n.concat(t._traceIndices);var a=t._matchGroup;for(var o in a)if(r!==o){var s=e[_.id2name(o)];s._categories=t._categories,s._categoriesMap=t._categoriesMap,n=n.concat(s._traceIndices)}return n};var j=e._d3locale;&quot;date&quot;===t.type&amp;&amp;(t._dateFormat=j?j.timeFormat:i,t._extraFormat=e._extraFormat),t._separators=e.separators,t._numFormat=j?j.numberFormat:n.format,delete t._minDtick,delete t._forceTick0}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./axis_ids&quot;:831,&quot;./constants&quot;:834,d3:169,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],849:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;).contrast,a=t(&quot;./layout_attributes&quot;),o=t(&quot;../array_container_defaults&quot;);function s(t){var e=[&quot;showexponent&quot;,&quot;showtickprefix&quot;,&quot;showticksuffix&quot;].filter((function(e){return void 0!==t[e]}));if(e.every((function(r){return t[r]===t[e[0]]}))||1===e.length)return t[e[0]]}function l(t,e){function r(r,i){return n.coerce(t,e,a.tickformatstops,r,i)}r(&quot;enabled&quot;)&amp;&amp;(r(&quot;dtickrange&quot;),r(&quot;value&quot;))}e.exports=function(t,e,r,c,u,f){f&amp;&amp;1!==f.pass||function(t,e,r,n,i){var a=s(t);r(&quot;tickprefix&quot;)&amp;&amp;r(&quot;showtickprefix&quot;,a);r(&quot;ticksuffix&quot;,i.tickSuffixDflt)&amp;&amp;r(&quot;showticksuffix&quot;,a)}(t,0,r,0,u),f&amp;&amp;2!==f.pass||function(t,e,r,c,u){var f=s(t);r(&quot;tickprefix&quot;)&amp;&amp;r(&quot;showtickprefix&quot;,f);r(&quot;ticksuffix&quot;,u.tickSuffixDflt)&amp;&amp;r(&quot;showticksuffix&quot;,f);if(r(&quot;showticklabels&quot;)){var h=u.font||{},p=e.color,d=-1!==(e.ticklabelposition||&quot;&quot;).indexOf(&quot;inside&quot;)?i(u.bgColor):p&amp;&amp;p!==a.color.dflt?p:h.color;if(n.coerceFont(r,&quot;tickfont&quot;,{family:h.family,size:h.size,color:d}),r(&quot;tickangle&quot;),&quot;category&quot;!==c){var g=r(&quot;tickformat&quot;);o(t,e,{name:&quot;tickformatstops&quot;,inclusionAttr:&quot;enabled&quot;,handleItemDefaults:l}),e.tickformatstops.length||delete e.tickformatstops,g||&quot;date&quot;===c||(r(&quot;showexponent&quot;,f),r(&quot;exponentformat&quot;),r(&quot;minexponent&quot;),r(&quot;separatethousands&quot;))}}}(t,e,r,c,u)}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../array_container_defaults&quot;:823,&quot;./layout_attributes&quot;:842}],850:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r,a){var o=n.coerce2(t,e,i,&quot;ticklen&quot;),s=n.coerce2(t,e,i,&quot;tickwidth&quot;),l=n.coerce2(t,e,i,&quot;tickcolor&quot;,e.color);r(&quot;ticks&quot;,a.outerTicks||o||s||l?&quot;outside&quot;:&quot;&quot;)||(delete e.ticklen,delete e.tickwidth,delete e.tickcolor)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:842}],851:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./clean_ticks&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a){function o(r){var n=t[r];return void 0!==n?n:(e._template||{})[r]}var s=o(&quot;tick0&quot;),l=o(&quot;dtick&quot;),c=o(&quot;tickvals&quot;),u=r(&quot;tickmode&quot;,i(c)?&quot;array&quot;:l?&quot;linear&quot;:&quot;auto&quot;);if(&quot;auto&quot;===u)r(&quot;nticks&quot;);else if(&quot;linear&quot;===u){var f=e.dtick=n.dtick(l,a);e.tick0=n.tick0(s,a,e.calendar,f)}else if(&quot;multicategory&quot;!==a){void 0===r(&quot;tickvals&quot;)?e.tickmode=&quot;auto&quot;:r(&quot;ticktext&quot;)}}},{&quot;../../lib&quot;:778,&quot;./clean_ticks&quot;:833}],852:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;./axes&quot;);e.exports=function(t,e,r,l){var c=t._fullLayout;if(0!==e.length){var u,f,h,p;l&amp;&amp;(u=l());var d=n.ease(r.easing);return t._transitionData._interruptCallbacks.push((function(){return window.cancelAnimationFrame(p),p=null,function(){for(var r={},n=0;n&lt;e.length;n++){var a=e[n],o=a.plotinfo.xaxis,s=a.plotinfo.yaxis;a.xr0&amp;&amp;(r[o._name+&quot;.range&quot;]=a.xr0.slice()),a.yr0&amp;&amp;(r[s._name+&quot;.range&quot;]=a.yr0.slice())}return i.call(&quot;relayout&quot;,t,r).then((function(){for(var t=0;t&lt;e.length;t++)g(e[t].plotinfo)}))}()})),f=Date.now(),p=window.requestAnimationFrame((function n(){h=Date.now();for(var a=Math.min(1,(h-f)/r.duration),o=d(a),s=0;s&lt;e.length;s++)m(e[s],o);h-f&gt;r.duration?(!function(){for(var r={},n=0;n&lt;e.length;n++){var a=e[n],o=a.plotinfo.xaxis,s=a.plotinfo.yaxis;a.xr1&amp;&amp;(r[o._name+&quot;.range&quot;]=a.xr1.slice()),a.yr1&amp;&amp;(r[s._name+&quot;.range&quot;]=a.yr1.slice())}u&amp;&amp;u(),i.call(&quot;relayout&quot;,t,r).then((function(){for(var t=0;t&lt;e.length;t++)g(e[t].plotinfo)}))}(),p=window.cancelAnimationFrame(n)):p=window.requestAnimationFrame(n)})),Promise.resolve()}function g(t){var e=t.xaxis,r=t.yaxis;c._defs.select(&quot;#&quot;+t.clipId+&quot;&gt; rect&quot;).call(o.setTranslate,0,0).call(o.setScale,1,1),t.plot.call(o.setTranslate,e._offset,r._offset).call(o.setScale,1,1);var n=t.plot.selectAll(&quot;.scatterlayer .trace&quot;);n.selectAll(&quot;.point&quot;).call(o.setPointGroupScale,1,1),n.selectAll(&quot;.textpoint&quot;).call(o.setTextPointsScale,1,1),n.call(o.hideOutsideRangePoints,t)}function m(e,r){var n=e.plotinfo,i=n.xaxis,l=n.yaxis,c=i._length,u=l._length,f=!!e.xr1,h=!!e.yr1,p=[];if(f){var d=a.simpleMap(e.xr0,i.r2l),g=a.simpleMap(e.xr1,i.r2l),m=d[1]-d[0],v=g[1]-g[0];p[0]=(d[0]*(1-r)+r*g[0]-d[0])/(d[1]-d[0])*c,p[2]=c*(1-r+r*v/m),i.range[0]=i.l2r(d[0]*(1-r)+r*g[0]),i.range[1]=i.l2r(d[1]*(1-r)+r*g[1])}else p[0]=0,p[2]=c;if(h){var y=a.simpleMap(e.yr0,l.r2l),x=a.simpleMap(e.yr1,l.r2l),b=y[1]-y[0],_=x[1]-x[0];p[1]=(y[1]*(1-r)+r*x[1]-y[1])/(y[0]-y[1])*u,p[3]=u*(1-r+r*_/b),l.range[0]=i.l2r(y[0]*(1-r)+r*x[0]),l.range[1]=l.l2r(y[1]*(1-r)+r*x[1])}else p[1]=0,p[3]=u;s.drawOne(t,i,{skipTitle:!0}),s.drawOne(t,l,{skipTitle:!0}),s.redrawComponents(t,[i._id,l._id]);var w=f?c/p[2]:1,T=h?u/p[3]:1,k=f?p[0]:0,M=h?p[1]:0,A=f?p[0]/p[2]*c:0,S=h?p[1]/p[3]*u:0,E=i._offset-A,C=l._offset-S;n.clipRect.call(o.setTranslate,k,M).call(o.setScale,1/w,1/T),n.plot.call(o.setTranslate,E,C).call(o.setScale,w,T),o.setPointGroupScale(n.zoomScalePts,1/w,1/T),o.setTextPointsScale(n.zoomScaleTxt,1/w,1/T)}s.redrawComponents(t)}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./axes&quot;:828,d3:169}],853:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;).traceIs,i=t(&quot;./axis_autotype&quot;);function a(t){return{v:&quot;x&quot;,h:&quot;y&quot;}[t.orientation||&quot;v&quot;]}function o(t,e){var r=a(t),i=n(t,&quot;box-violin&quot;),o=n(t._fullInput||{},&quot;candlestick&quot;);return i&amp;&amp;!o&amp;&amp;e===r&amp;&amp;void 0===t[r]&amp;&amp;void 0===t[r+&quot;0&quot;]}e.exports=function(t,e,r,s){r(&quot;autotypenumbers&quot;,s.autotypenumbersDflt),&quot;-&quot;===r(&quot;type&quot;,(s.splomStash||{}).type)&amp;&amp;(!function(t,e){if(&quot;-&quot;!==t.type)return;var r,s=t._id,l=s.charAt(0);-1!==s.indexOf(&quot;scene&quot;)&amp;&amp;(s=l);var c=function(t,e,r){for(var n=0;n&lt;t.length;n++){var i=t[n];if(&quot;splom&quot;===i.type&amp;&amp;i._length&gt;0&amp;&amp;(i[&quot;_&quot;+r+&quot;axes&quot;]||{})[e])return i;if((i[r+&quot;axis&quot;]||r)===e){if(o(i,r))return i;if((i[r]||[]).length||i[r+&quot;0&quot;])return i}}}(e,s,l);if(!c)return;if(&quot;histogram&quot;===c.type&amp;&amp;l==={v:&quot;y&quot;,h:&quot;x&quot;}[c.orientation||&quot;v&quot;])return void(t.type=&quot;linear&quot;);var u=l+&quot;calendar&quot;,f=c[u],h={noMultiCategory:!n(c,&quot;cartesian&quot;)||n(c,&quot;noMultiCategory&quot;)};&quot;box&quot;===c.type&amp;&amp;c._hasPreCompStats&amp;&amp;l==={h:&quot;x&quot;,v:&quot;y&quot;}[c.orientation||&quot;v&quot;]&amp;&amp;(h.noMultiCategory=!0);if(h.autotypenumbers=t.autotypenumbers,o(c,l)){var p=a(c),d=[];for(r=0;r&lt;e.length;r++){var g=e[r];n(g,&quot;box-violin&quot;)&amp;&amp;(g[l+&quot;axis&quot;]||l)===s&amp;&amp;(void 0!==g[p]?d.push(g[p][0]):void 0!==g.name?d.push(g.name):d.push(&quot;text&quot;),g[u]!==f&amp;&amp;(f=void 0))}t.type=i(d,f,h)}else if(&quot;splom&quot;===c.type){var m=c.dimensions[c._axesDim[s]];m.visible&amp;&amp;(t.type=i(m.values,f,h))}else t.type=i(c[l]||[c[l+&quot;0&quot;]],f,h)}(e,s.data),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:t.type=e.type)}},{&quot;../../registry&quot;:911,&quot;./axis_autotype&quot;:829}],854:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;);function a(t,e,r){var n,a,o,s=!1;if(&quot;data&quot;===e.type)n=t._fullData[null!==e.traces?e.traces[0]:0];else{if(&quot;layout&quot;!==e.type)return!1;n=t._fullLayout}return a=i.nestedProperty(n,e.prop).get(),(o=r[e.type]=r[e.type]||{}).hasOwnProperty(e.prop)&amp;&amp;o[e.prop]!==a&amp;&amp;(s=!0),o[e.prop]=a,{changed:s,value:a}}function o(t,e){var r=[],n=e[0],a={};if(&quot;string&quot;==typeof n)a[n]=e[1];else{if(!i.isPlainObject(n))return r;a=n}return l(a,(function(t,e,n){r.push({type:&quot;layout&quot;,prop:t,value:n})}),&quot;&quot;,0),r}function s(t,e){var r,n,a,o,s=[];if(n=e[0],a=e[1],r=e[2],o={},&quot;string&quot;==typeof n)o[n]=a;else{if(!i.isPlainObject(n))return s;o=n,void 0===r&amp;&amp;(r=a)}return void 0===r&amp;&amp;(r=null),l(o,(function(e,n,i){var a,o;if(Array.isArray(i)){o=i.slice();var l=Math.min(o.length,t.data.length);r&amp;&amp;(l=Math.min(l,r.length)),a=[];for(var c=0;c&lt;l;c++)a[c]=r?r[c]:c}else o=i,a=r?r.slice():null;if(null===a)Array.isArray(o)&amp;&amp;(o=o[0]);else if(Array.isArray(a)){if(!Array.isArray(o)){var u=o;o=[];for(var f=0;f&lt;a.length;f++)o[f]=u}o.length=Math.min(a.length,o.length)}s.push({type:&quot;data&quot;,prop:e,traces:a,value:o})}),&quot;&quot;,0),s}function l(t,e,r,n){Object.keys(t).forEach((function(a){var o=t[a];if(&quot;_&quot;!==a[0]){var s=r+(n&gt;0?&quot;.&quot;:&quot;&quot;)+a;i.isPlainObject(o)?l(o,e,s,n+1):e(s,a,o)}}))}r.manageCommandObserver=function(t,e,n,o){var s={},l=!0;e&amp;&amp;e._commandObserver&amp;&amp;(s=e._commandObserver),s.cache||(s.cache={}),s.lookupTable={};var c=r.hasSimpleAPICommandBindings(t,n,s.lookupTable);if(e&amp;&amp;e._commandObserver){if(c)return s;if(e._commandObserver.remove)return e._commandObserver.remove(),e._commandObserver=null,s}if(c){a(t,c,s.cache),s.check=function(){if(l){var e=a(t,c,s.cache);return e.changed&amp;&amp;o&amp;&amp;void 0!==s.lookupTable[e.value]&amp;&amp;(s.disable(),Promise.resolve(o({value:e.value,type:c.type,prop:c.prop,traces:c.traces,index:s.lookupTable[e.value]})).then(s.enable,s.enable)),e.changed}};for(var u=[&quot;plotly_relayout&quot;,&quot;plotly_redraw&quot;,&quot;plotly_restyle&quot;,&quot;plotly_update&quot;,&quot;plotly_animatingframe&quot;,&quot;plotly_afterplot&quot;],f=0;f&lt;u.length;f++)t._internalOn(u[f],s.check);s.remove=function(){for(var e=0;e&lt;u.length;e++)t._removeInternalListener(u[e],s.check)}}else i.log(&quot;Unable to automatically bind plot updates to API command&quot;),s.lookupTable={},s.remove=function(){};return s.disable=function(){l=!1},s.enable=function(){l=!0},e&amp;&amp;(e._commandObserver=s),s},r.hasSimpleAPICommandBindings=function(t,e,n){var i,a,o=e.length;for(i=0;i&lt;o;i++){var s,l=e[i],c=l.method,u=l.args;if(Array.isArray(u)||(u=[]),!c)return!1;var f=r.computeAPICommandBindings(t,c,u);if(1!==f.length)return!1;if(a){if((s=f[0]).type!==a.type)return!1;if(s.prop!==a.prop)return!1;if(Array.isArray(a.traces)){if(!Array.isArray(s.traces))return!1;s.traces.sort();for(var h=0;h&lt;a.traces.length;h++)if(a.traces[h]!==s.traces[h])return!1}else if(s.prop!==a.prop)return!1}else a=f[0],Array.isArray(a.traces)&amp;&amp;a.traces.sort();var p=(s=f[0]).value;if(Array.isArray(p)){if(1!==p.length)return!1;p=p[0]}n&amp;&amp;(n[p]=i)}return a},r.executeAPICommand=function(t,e,r){if(&quot;skip&quot;===e)return Promise.resolve();var a=n.apiMethodRegistry[e],o=[t];Array.isArray(r)||(r=[]);for(var s=0;s&lt;r.length;s++)o.push(r[s]);return a.apply(null,o).catch((function(t){return i.warn(&quot;API call to Plotly.&quot;+e+&quot; rejected.&quot;,t),Promise.reject(t)}))},r.computeAPICommandBindings=function(t,e,r){var n;switch(Array.isArray(r)||(r=[]),e){case&quot;restyle&quot;:n=s(t,r);break;case&quot;relayout&quot;:n=o(t,r);break;case&quot;update&quot;:n=s(t,[r[0],r[2]]).concat(o(t,[r[1]]));break;case&quot;animate&quot;:n=function(t,e){return Array.isArray(e[0])&amp;&amp;1===e[0].length&amp;&amp;-1!==[&quot;string&quot;,&quot;number&quot;].indexOf(typeof e[0][0])?[{type:&quot;layout&quot;,prop:&quot;_currentFrame&quot;,value:e[0][0].toString()}]:[]}(0,r);break;default:n=[]}return n}},{&quot;../lib&quot;:778,&quot;../registry&quot;:911}],855:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib/extend&quot;).extendFlat;r.attributes=function(t,e){e=e||{};var r={valType:&quot;info_array&quot;,editType:(t=t||{}).editType,items:[{valType:&quot;number&quot;,min:0,max:1,editType:t.editType},{valType:&quot;number&quot;,min:0,max:1,editType:t.editType}],dflt:[0,1]},i=(t.name&amp;&amp;t.name,t.trace,e.description&amp;&amp;e.description,{x:n({},r,{}),y:n({},r,{}),editType:t.editType});return t.noGridCell||(i.row={valType:&quot;integer&quot;,min:0,dflt:0,editType:t.editType},i.column={valType:&quot;integer&quot;,min:0,dflt:0,editType:t.editType}),i},r.defaults=function(t,e,r,n){var i=n&amp;&amp;n.x||[0,1],a=n&amp;&amp;n.y||[0,1],o=e.grid;if(o){var s=r(&quot;domain.column&quot;);void 0!==s&amp;&amp;(s&lt;o.columns?i=o._domains.x[s]:delete t.domain.column);var l=r(&quot;domain.row&quot;);void 0!==l&amp;&amp;(l&lt;o.rows?a=o._domains.y[l]:delete t.domain.row)}var c=r(&quot;domain.x&quot;,i),u=r(&quot;domain.y&quot;,a);c[0]&lt;c[1]||(t.domain.x=i.slice()),u[0]&lt;u[1]||(t.domain.y=a.slice())}},{&quot;../lib/extend&quot;:768}],856:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.editType,r=t.colorEditType;void 0===r&amp;&amp;(r=e);var n={family:{valType:&quot;string&quot;,noBlank:!0,strict:!0,editType:e},size:{valType:&quot;number&quot;,min:1,editType:e},color:{valType:&quot;color&quot;,editType:r},editType:e};return t.arrayOk&amp;&amp;(n.family.arrayOk=!0,n.size.arrayOk=!0,n.color.arrayOk=!0),n}},{}],857:[function(t,e,r){&quot;use strict&quot;;e.exports={_isLinkedToArray:&quot;frames_entry&quot;,group:{valType:&quot;string&quot;},name:{valType:&quot;string&quot;},traces:{valType:&quot;any&quot;},baseframe:{valType:&quot;string&quot;},data:{valType:&quot;any&quot;},layout:{valType:&quot;any&quot;}}},{}],858:[function(t,e,r){&quot;use strict&quot;;r.projNames={equirectangular:&quot;equirectangular&quot;,mercator:&quot;mercator&quot;,orthographic:&quot;orthographic&quot;,&quot;natural earth&quot;:&quot;naturalEarth&quot;,kavrayskiy7:&quot;kavrayskiy7&quot;,miller:&quot;miller&quot;,robinson:&quot;robinson&quot;,eckert4:&quot;eckert4&quot;,&quot;azimuthal equal area&quot;:&quot;azimuthalEqualArea&quot;,&quot;azimuthal equidistant&quot;:&quot;azimuthalEquidistant&quot;,&quot;conic equal area&quot;:&quot;conicEqualArea&quot;,&quot;conic conformal&quot;:&quot;conicConformal&quot;,&quot;conic equidistant&quot;:&quot;conicEquidistant&quot;,gnomonic:&quot;gnomonic&quot;,stereographic:&quot;stereographic&quot;,mollweide:&quot;mollweide&quot;,hammer:&quot;hammer&quot;,&quot;transverse mercator&quot;:&quot;transverseMercator&quot;,&quot;albers usa&quot;:&quot;albersUsa&quot;,&quot;winkel tripel&quot;:&quot;winkel3&quot;,aitoff:&quot;aitoff&quot;,sinusoidal:&quot;sinusoidal&quot;},r.axesNames=[&quot;lonaxis&quot;,&quot;lataxis&quot;],r.lonaxisSpan={orthographic:180,&quot;azimuthal equal area&quot;:360,&quot;azimuthal equidistant&quot;:360,&quot;conic conformal&quot;:180,gnomonic:160,stereographic:180,&quot;transverse mercator&quot;:180,&quot;*&quot;:360},r.lataxisSpan={&quot;conic conformal&quot;:150,stereographic:179.5,&quot;*&quot;:180},r.scopeDefaults={world:{lonaxisRange:[-180,180],lataxisRange:[-90,90],projType:&quot;equirectangular&quot;,projRotate:[0,0,0]},usa:{lonaxisRange:[-180,-50],lataxisRange:[15,80],projType:&quot;albers usa&quot;},europe:{lonaxisRange:[-30,60],lataxisRange:[30,85],projType:&quot;conic conformal&quot;,projRotate:[15,0,0],projParallels:[0,60]},asia:{lonaxisRange:[22,160],lataxisRange:[-15,55],projType:&quot;mercator&quot;,projRotate:[0,0,0]},africa:{lonaxisRange:[-30,60],lataxisRange:[-40,40],projType:&quot;mercator&quot;,projRotate:[0,0,0]},&quot;north america&quot;:{lonaxisRange:[-180,-45],lataxisRange:[5,85],projType:&quot;conic conformal&quot;,projRotate:[-100,0,0],projParallels:[29.5,45.5]},&quot;south america&quot;:{lonaxisRange:[-100,-30],lataxisRange:[-60,15],projType:&quot;mercator&quot;,projRotate:[0,0,0]}},r.clipPad=.001,r.precision=.1,r.landColor=&quot;#F0DC82&quot;,r.waterColor=&quot;#3399FF&quot;,r.locationmodeToLayer={&quot;ISO-3&quot;:&quot;countries&quot;,&quot;USA-states&quot;:&quot;subunits&quot;,&quot;country names&quot;:&quot;countries&quot;},r.sphereSVG={type:&quot;Sphere&quot;},r.fillLayers={ocean:1,land:1,lakes:1},r.lineLayers={subunits:1,countries:1,coastlines:1,rivers:1,frame:1},r.layers=[&quot;bg&quot;,&quot;ocean&quot;,&quot;land&quot;,&quot;lakes&quot;,&quot;subunits&quot;,&quot;countries&quot;,&quot;coastlines&quot;,&quot;rivers&quot;,&quot;lataxis&quot;,&quot;lonaxis&quot;,&quot;frame&quot;,&quot;backplot&quot;,&quot;frontplot&quot;],r.layersForChoropleth=[&quot;bg&quot;,&quot;ocean&quot;,&quot;land&quot;,&quot;subunits&quot;,&quot;countries&quot;,&quot;coastlines&quot;,&quot;lataxis&quot;,&quot;lonaxis&quot;,&quot;frame&quot;,&quot;backplot&quot;,&quot;rivers&quot;,&quot;lakes&quot;,&quot;frontplot&quot;],r.layerNameToAdjective={ocean:&quot;ocean&quot;,land:&quot;land&quot;,lakes:&quot;lake&quot;,subunits:&quot;subunit&quot;,countries:&quot;country&quot;,coastlines:&quot;coastline&quot;,rivers:&quot;river&quot;,frame:&quot;frame&quot;}},{}],859:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.strTranslate,s=t(&quot;../../components/color&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../components/fx&quot;),u=t(&quot;../plots&quot;),f=t(&quot;../cartesian/axes&quot;),h=t(&quot;../cartesian/autorange&quot;).getAutoRange,p=t(&quot;../../components/dragelement&quot;),d=t(&quot;../cartesian/select&quot;).prepSelect,g=t(&quot;../cartesian/select&quot;).clearSelect,m=t(&quot;../cartesian/select&quot;).selectOnClick,v=t(&quot;./zoom&quot;),y=t(&quot;./constants&quot;),x=t(&quot;../../lib/geo_location_utils&quot;),b=t(&quot;../../lib/topojson_utils&quot;),_=t(&quot;topojson-client&quot;).feature;function w(t){this.id=t.id,this.graphDiv=t.graphDiv,this.container=t.container,this.topojsonURL=t.topojsonURL,this.isStatic=t.staticPlot,this.topojsonName=null,this.topojson=null,this.projection=null,this.scope=null,this.viewInitial=null,this.fitScale=null,this.bounds=null,this.midPt=null,this.hasChoropleth=!1,this.traceHash={},this.layers={},this.basePaths={},this.dataPaths={},this.dataPoints={},this.clipDef=null,this.clipRect=null,this.bgRect=null,this.makeFramework()}t(&quot;./projections&quot;)(n);var T=w.prototype;function k(t,e){var r=y.clipPad,n=t[0]+r,i=t[1]-r,a=e[0]+r,o=e[1]-r;n&gt;0&amp;&amp;i&lt;0&amp;&amp;(i+=360);var s=(i-n)/4;return{type:&quot;Polygon&quot;,coordinates:[[[n,a],[n,o],[n+s,o],[n+2*s,o],[n+3*s,o],[i,o],[i,a],[i-s,a],[i-2*s,a],[i-3*s,a],[n,a]]]}}e.exports=function(t){return new w(t)},T.plot=function(t,e,r){var n=this,i=e[this.id],a=[],o=!1;for(var s in y.layerNameToAdjective)if(&quot;frame&quot;!==s&amp;&amp;i[&quot;show&quot;+s]){o=!0;break}for(var l=0;l&lt;t.length;l++)if(t[0][0].trace.locationmode){o=!0;break}if(o){var c=b.getTopojsonName(i);null!==n.topojson&amp;&amp;c===n.topojsonName||(n.topojsonName=c,void 0===PlotlyGeoAssets.topojson[n.topojsonName]&amp;&amp;a.push(n.fetchTopojson()))}a=a.concat(x.fetchTraceGeoData(t)),r.push(new Promise((function(r,i){Promise.all(a).then((function(){n.topojson=PlotlyGeoAssets.topojson[n.topojsonName],n.update(t,e),r()})).catch(i)})))},T.fetchTopojson=function(){var t=this,e=b.getTopojsonPath(t.topojsonURL,t.topojsonName);return new Promise((function(r,i){n.json(e,(function(n,a){if(n)return 404===n.status?i(new Error([&quot;plotly.js could not find topojson file at&quot;,e,&quot;.&quot;,&quot;Make sure the *topojsonURL* plot config option&quot;,&quot;is set properly.&quot;].join(&quot; &quot;))):i(new Error([&quot;unexpected error while fetching topojson file at&quot;,e].join(&quot; &quot;)));PlotlyGeoAssets.topojson[t.topojsonName]=a,r()}))}))},T.update=function(t,e){var r=e[this.id];this.hasChoropleth=!1;for(var n=0;n&lt;t.length;n++){var i=t[n],a=i[0].trace;&quot;choropleth&quot;===a.type&amp;&amp;(this.hasChoropleth=!0),!0===a.visible&amp;&amp;a._length&gt;0&amp;&amp;a._module.calcGeoJSON(i,e)}if(!this.updateProjection(t,e)){this.viewInitial&amp;&amp;this.scope===r.scope||this.saveViewInitial(r),this.scope=r.scope,this.updateBaseLayers(e,r),this.updateDims(e,r),this.updateFx(e,r),u.generalUpdatePerTraceModule(this.graphDiv,this,t,r);var o=this.layers.frontplot.select(&quot;.scatterlayer&quot;);this.dataPoints.point=o.selectAll(&quot;.point&quot;),this.dataPoints.text=o.selectAll(&quot;text&quot;),this.dataPaths.line=o.selectAll(&quot;.js-line&quot;);var s=this.layers.backplot.select(&quot;.choroplethlayer&quot;);this.dataPaths.choropleth=s.selectAll(&quot;path&quot;),this.render()}},T.updateProjection=function(t,e){var r=this.graphDiv,o=e[this.id],s=e._size,l=o.domain,c=o.projection,u=o.lonaxis,f=o.lataxis,p=u._ax,d=f._ax,g=this.projection=function(t){for(var e=t.projection.type,r=n.geo[y.projNames[e]](),i=t._isClipped?y.lonaxisSpan[e]/2:null,a=[&quot;center&quot;,&quot;rotate&quot;,&quot;parallels&quot;,&quot;clipExtent&quot;],o=function(t){return t?r:[]},s=0;s&lt;a.length;s++){var l=a[s];&quot;function&quot;!=typeof r[l]&amp;&amp;(r[l]=o)}r.isLonLatOverEdges=function(t){if(null===r(t))return!0;if(i){var e=r.rotate();return n.geo.distance(t,[-e[0],-e[1]])&gt;i*Math.PI/180}return!1},r.getPath=function(){return n.geo.path().projection(r)},r.getBounds=function(t){return r.getPath().bounds(t)},r.fitExtent=function(t,e){var n=t[1][0]-t[0][0],i=t[1][1]-t[0][1],a=r.clipExtent&amp;&amp;r.clipExtent();r.scale(150).translate([0,0]),a&amp;&amp;r.clipExtent(null);var o=r.getBounds(e),s=Math.min(n/(o[1][0]-o[0][0]),i/(o[1][1]-o[0][1])),l=+t[0][0]+(n-s*(o[1][0]+o[0][0]))/2,c=+t[0][1]+(i-s*(o[1][1]+o[0][1]))/2;return a&amp;&amp;r.clipExtent(a),r.scale(150*s).translate([l,c])},r.precision(y.precision),i&amp;&amp;r.clipAngle(i-y.clipPad);return r}(o),m=[[s.l+s.w*l.x[0],s.t+s.h*(1-l.y[1])],[s.l+s.w*l.x[1],s.t+s.h*(1-l.y[0])]],v=o.center||{},x=c.rotation||{},b=u.range||[],_=f.range||[];if(o.fitbounds){p._length=m[1][0]-m[0][0],d._length=m[1][1]-m[0][1],p.range=h(r,p),d.range=h(r,d);var w=(p.range[0]+p.range[1])/2,T=(d.range[0]+d.range[1])/2;if(o._isScoped)v={lon:w,lat:T};else if(o._isClipped){v={lon:w,lat:T},x={lon:w,lat:T,roll:x.roll};var M=c.type,A=y.lonaxisSpan[M]/2||180,S=y.lataxisSpan[M]/2||90;b=[w-A,w+A],_=[T-S,T+S]}else v={lon:w,lat:T},x={lon:w,lat:x.lat,roll:x.roll}}g.center([v.lon-x.lon,v.lat-x.lat]).rotate([-x.lon,-x.lat,x.roll]).parallels(c.parallels);var E=k(b,_);g.fitExtent(m,E);var C=this.bounds=g.getBounds(E),L=this.fitScale=g.scale(),I=g.translate();if(!isFinite(C[0][0])||!isFinite(C[0][1])||!isFinite(C[1][0])||!isFinite(C[1][1])||isNaN(I[0])||isNaN(I[0])){for(var P=[&quot;fitbounds&quot;,&quot;projection.rotation&quot;,&quot;center&quot;,&quot;lonaxis.range&quot;,&quot;lataxis.range&quot;],z=&quot;Invalid geo settings, relayout'ing to default view.&quot;,O={},D=0;D&lt;P.length;D++)O[this.id+&quot;.&quot;+P[D]]=null;return this.viewInitial=null,a.warn(z),r._promises.push(i.call(&quot;relayout&quot;,r,O)),z}if(o.fitbounds){var R=g.getBounds(k(p.range,d.range)),F=Math.min((C[1][0]-C[0][0])/(R[1][0]-R[0][0]),(C[1][1]-C[0][1])/(R[1][1]-R[0][1]));isFinite(F)?g.scale(F*L):a.warn(&quot;Something went wrong during&quot;+this.id+&quot;fitbounds computations.&quot;)}else g.scale(c.scale*L);var B=this.midPt=[(C[0][0]+C[1][0])/2,(C[0][1]+C[1][1])/2];if(g.translate([I[0]+(B[0]-I[0]),I[1]+(B[1]-I[1])]).clipExtent(C),o._isAlbersUsa){var N=g([v.lon,v.lat]),j=g.translate();g.translate([j[0]-(N[0]-j[0]),j[1]-(N[1]-j[1])])}},T.updateBaseLayers=function(t,e){var r=this,i=r.topojson,a=r.layers,o=r.basePaths;function c(t){return&quot;lonaxis&quot;===t||&quot;lataxis&quot;===t}function u(t){return Boolean(y.lineLayers[t])}function h(t){return Boolean(y.fillLayers[t])}var p=(this.hasChoropleth?y.layersForChoropleth:y.layers).filter((function(t){return u(t)||h(t)?e[&quot;show&quot;+t]:!c(t)||e[t].showgrid})),d=r.framework.selectAll(&quot;.layer&quot;).data(p,String);d.exit().each((function(t){delete a[t],delete o[t],n.select(this).remove()})),d.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;layer &quot;+t})).each((function(t){var e=a[t]=n.select(this);&quot;bg&quot;===t?r.bgRect=e.append(&quot;rect&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;):c(t)?o[t]=e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;):&quot;backplot&quot;===t?e.append(&quot;g&quot;).classed(&quot;choroplethlayer&quot;,!0):&quot;frontplot&quot;===t?e.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0):u(t)?o[t]=e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;).style(&quot;stroke-miterlimit&quot;,2):h(t)&amp;&amp;(o[t]=e.append(&quot;path&quot;).style(&quot;stroke&quot;,&quot;none&quot;))})),d.order(),d.each((function(r){var n=o[r],a=y.layerNameToAdjective[r];&quot;frame&quot;===r?n.datum(y.sphereSVG):u(r)||h(r)?n.datum(_(i,i.objects[r])):c(r)&amp;&amp;n.datum(function(t,e,r){var n,i,a,o=e[t],s=y.scopeDefaults[e.scope];&quot;lonaxis&quot;===t?(n=s.lonaxisRange,i=s.lataxisRange,a=function(t,e){return[t,e]}):&quot;lataxis&quot;===t&amp;&amp;(n=s.lataxisRange,i=s.lonaxisRange,a=function(t,e){return[e,t]});var l={type:&quot;linear&quot;,range:[n[0],n[1]-1e-6],tick0:o.tick0,dtick:o.dtick};f.setConvert(l,r);var c=f.calcTicks(l);e.isScoped||&quot;lonaxis&quot;!==t||c.pop();for(var u=c.length,h=new Array(u),p=0;p&lt;u;p++)for(var d=c[p].x,g=h[p]=[],m=i[0];m&lt;i[1]+2.5;m+=2.5)g.push(a(d,m));return{type:&quot;MultiLineString&quot;,coordinates:h}}(r,e,t)).call(s.stroke,e[r].gridcolor).call(l.dashLine,&quot;&quot;,e[r].gridwidth),u(r)?n.call(s.stroke,e[a+&quot;color&quot;]).call(l.dashLine,&quot;&quot;,e[a+&quot;width&quot;]):h(r)&amp;&amp;n.call(s.fill,e[a+&quot;color&quot;])}))},T.updateDims=function(t,e){var r=this.bounds,n=(e.framewidth||0)/2,i=r[0][0]-n,a=r[0][1]-n,o=r[1][0]-i+n,c=r[1][1]-a+n;l.setRect(this.clipRect,i,a,o,c),this.bgRect.call(l.setRect,i,a,o,c).call(s.fill,e.bgcolor),this.xaxis._offset=i,this.xaxis._length=o,this.yaxis._offset=a,this.yaxis._length=c},T.updateFx=function(t,e){var r=this,a=r.graphDiv,o=r.bgRect,s=t.dragmode,l=t.clickmode;if(!r.isStatic){var u;&quot;select&quot;===s?u=function(t,e){(t.range={})[r.id]=[h([e.xmin,e.ymin]),h([e.xmax,e.ymax])]}:&quot;lasso&quot;===s&amp;&amp;(u=function(t,e,n){(t.lassoPoints={})[r.id]=n.filtered.map(h)});var f={element:r.bgRect.node(),gd:a,plotinfo:{id:r.id,xaxis:r.xaxis,yaxis:r.yaxis,fillRangeItems:u},xaxes:[r.xaxis],yaxes:[r.yaxis],subplot:r.id,clickFn:function(t){2===t&amp;&amp;g(a)}};&quot;pan&quot;===s?(o.node().onmousedown=null,o.call(v(r,e)),o.on(&quot;dblclick.zoom&quot;,(function(){var t=r.viewInitial,e={};for(var n in t)e[r.id+&quot;.&quot;+n]=t[n];i.call(&quot;_guiRelayout&quot;,a,e),a.emit(&quot;plotly_doubleclick&quot;,null)})),a._context._scrollZoom.geo||o.on(&quot;wheel.zoom&quot;,null)):&quot;select&quot;!==s&amp;&amp;&quot;lasso&quot;!==s||(o.on(&quot;.zoom&quot;,null),f.prepFn=function(t,e,r){d(t,e,r,f,s)},p.init(f)),o.on(&quot;mousemove&quot;,(function(){var t=r.projection.invert(n.mouse(this));if(!t||isNaN(t[0])||isNaN(t[1]))return p.unhover(a,n.event);r.xaxis.p2c=function(){return t[0]},r.yaxis.p2c=function(){return t[1]},c.hover(a,n.event,r.id)})),o.on(&quot;mouseout&quot;,(function(){a._dragging||p.unhover(a,n.event)})),o.on(&quot;click&quot;,(function(){&quot;select&quot;!==s&amp;&amp;&quot;lasso&quot;!==s&amp;&amp;(l.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;m(n.event,a,[r.xaxis],[r.yaxis],r.id,f),l.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;c.click(a,n.event))}))}function h(t){return r.projection.invert([t[0]+r.xaxis._offset,t[1]+r.yaxis._offset])}},T.makeFramework=function(){var t=this,e=t.graphDiv,r=e._fullLayout,i=&quot;clip&quot;+r._uid+t.id;t.clipDef=r._clips.append(&quot;clipPath&quot;).attr(&quot;id&quot;,i),t.clipRect=t.clipDef.append(&quot;rect&quot;),t.framework=n.select(t.container).append(&quot;g&quot;).attr(&quot;class&quot;,&quot;geo &quot;+t.id).call(l.setClipUrl,i,e),t.project=function(e){var r=t.projection(e);return r?[r[0]-t.xaxis._offset,r[1]-t.yaxis._offset]:[null,null]},t.xaxis={_id:&quot;x&quot;,c2p:function(e){return t.project(e)[0]}},t.yaxis={_id:&quot;y&quot;,c2p:function(e){return t.project(e)[1]}},t.mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},f.setConvert(t.mockAxis,r)},T.saveViewInitial=function(t){var e,r=t.center||{},n=t.projection,i=n.rotation||{};this.viewInitial={fitbounds:t.fitbounds,&quot;projection.scale&quot;:n.scale},e=t._isScoped?{&quot;center.lon&quot;:r.lon,&quot;center.lat&quot;:r.lat}:t._isClipped?{&quot;projection.rotation.lon&quot;:i.lon,&quot;projection.rotation.lat&quot;:i.lat}:{&quot;center.lon&quot;:r.lon,&quot;center.lat&quot;:r.lat,&quot;projection.rotation.lon&quot;:i.lon},a.extendFlat(this.viewInitial,e)},T.render=function(){var t,e=this.projection,r=e.getPath();function n(t){var r=e(t.lonlat);return r?o(r[0],r[1]):null}function i(t){return e.isLonLatOverEdges(t.lonlat)?&quot;none&quot;:null}for(t in this.basePaths)this.basePaths[t].attr(&quot;d&quot;,r);for(t in this.dataPaths)this.dataPaths[t].attr(&quot;d&quot;,(function(t){return r(t.geojson)}));for(t in this.dataPoints)this.dataPoints[t].attr(&quot;display&quot;,i).attr(&quot;transform&quot;,n)}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/topojson_utils&quot;:806,&quot;../../registry&quot;:911,&quot;../cartesian/autorange&quot;:827,&quot;../cartesian/axes&quot;:828,&quot;../cartesian/select&quot;:847,&quot;../plots&quot;:891,&quot;./constants&quot;:858,&quot;./projections&quot;:863,&quot;./zoom&quot;:864,d3:169,&quot;topojson-client&quot;:579}],860:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,i=t(&quot;../../lib&quot;).counterRegex,a=t(&quot;./geo&quot;),o=&quot;geo&quot;,s=i(o),l={};l.geo={valType:&quot;subplotid&quot;,dflt:o,editType:&quot;calc&quot;},e.exports={attr:o,name:o,idRoot:o,idRegex:s,attrRegex:s,attributes:l,layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots.geo,s=0;s&lt;i.length;s++){var l=i[s],c=n(r,o,l),u=e[l]._subplot;u||(u=a({id:l,graphDiv:t,container:e._geolayer.node(),topojsonURL:t._context.topojsonURL,staticPlot:t._context.staticPlot}),e[l]._subplot=u),u.plot(c,e,t._promises)}},updateFx:function(t){for(var e=t._fullLayout,r=e._subplots.geo,n=0;n&lt;r.length;n++){var i=e[r[n]];i._subplot.updateFx(e,i)}},clean:function(t,e,r,n){for(var i=n._subplots.geo||[],a=0;a&lt;i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&amp;&amp;s&amp;&amp;(s.framework.remove(),s.clipDef.remove())}}}},{&quot;../../lib&quot;:778,&quot;../../plots/get_data&quot;:865,&quot;./geo&quot;:859,&quot;./layout_attributes&quot;:861,&quot;./layout_defaults&quot;:862}],861:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../domain&quot;).attributes,a=t(&quot;./constants&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s={range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},showgrid:{valType:&quot;boolean&quot;,dflt:!1},tick0:{valType:&quot;number&quot;,dflt:0},dtick:{valType:&quot;number&quot;},gridcolor:{valType:&quot;color&quot;,dflt:n.lightLine},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1}};(e.exports=o({domain:i({name:&quot;geo&quot;},{}),fitbounds:{valType:&quot;enumerated&quot;,values:[!1,&quot;locations&quot;,&quot;geojson&quot;],dflt:!1,editType:&quot;plot&quot;},resolution:{valType:&quot;enumerated&quot;,values:[110,50],dflt:110,coerceNumber:!0},scope:{valType:&quot;enumerated&quot;,values:Object.keys(a.scopeDefaults),dflt:&quot;world&quot;},projection:{type:{valType:&quot;enumerated&quot;,values:Object.keys(a.projNames)},rotation:{lon:{valType:&quot;number&quot;},lat:{valType:&quot;number&quot;},roll:{valType:&quot;number&quot;}},parallels:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},scale:{valType:&quot;number&quot;,min:0,dflt:1}},center:{lon:{valType:&quot;number&quot;},lat:{valType:&quot;number&quot;}},visible:{valType:&quot;boolean&quot;,dflt:!0},showcoastlines:{valType:&quot;boolean&quot;},coastlinecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},coastlinewidth:{valType:&quot;number&quot;,min:0,dflt:1},showland:{valType:&quot;boolean&quot;,dflt:!1},landcolor:{valType:&quot;color&quot;,dflt:a.landColor},showocean:{valType:&quot;boolean&quot;,dflt:!1},oceancolor:{valType:&quot;color&quot;,dflt:a.waterColor},showlakes:{valType:&quot;boolean&quot;,dflt:!1},lakecolor:{valType:&quot;color&quot;,dflt:a.waterColor},showrivers:{valType:&quot;boolean&quot;,dflt:!1},rivercolor:{valType:&quot;color&quot;,dflt:a.waterColor},riverwidth:{valType:&quot;number&quot;,min:0,dflt:1},showcountries:{valType:&quot;boolean&quot;},countrycolor:{valType:&quot;color&quot;,dflt:n.defaultLine},countrywidth:{valType:&quot;number&quot;,min:0,dflt:1},showsubunits:{valType:&quot;boolean&quot;},subunitcolor:{valType:&quot;color&quot;,dflt:n.defaultLine},subunitwidth:{valType:&quot;number&quot;,min:0,dflt:1},showframe:{valType:&quot;boolean&quot;},framecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},framewidth:{valType:&quot;number&quot;,min:0,dflt:1},bgcolor:{valType:&quot;color&quot;,dflt:n.background},lonaxis:s,lataxis:s},&quot;plot&quot;,&quot;from-root&quot;)).uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../plot_api/edit_types&quot;:810,&quot;../domain&quot;:855,&quot;./constants&quot;:858}],862:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../subplot_defaults&quot;),a=t(&quot;../get_data&quot;).getSubplotData,o=t(&quot;./constants&quot;),s=t(&quot;./layout_attributes&quot;),l=o.axesNames;function c(t,e,r,i){var s=a(i.fullData,&quot;geo&quot;,i.id).map((function(t){return t._expandedIndex})),c=r(&quot;resolution&quot;),u=r(&quot;scope&quot;),f=o.scopeDefaults[u],h=r(&quot;projection.type&quot;,f.projType),p=e._isAlbersUsa=&quot;albers usa&quot;===h;p&amp;&amp;(u=e.scope=&quot;usa&quot;);var d=e._isScoped=&quot;world&quot;!==u,g=e._isConic=-1!==h.indexOf(&quot;conic&quot;),m=e._isClipped=!!o.lonaxisSpan[h];if(!1===t.visible){var v=n.extendDeep({},e._template);v.showcoastlines=!1,v.showcountries=!1,v.showframe=!1,v.showlakes=!1,v.showland=!1,v.showocean=!1,v.showrivers=!1,v.showsubunits=!1,v.lonaxis&amp;&amp;(v.lonaxis.showgrid=!1),v.lataxis&amp;&amp;(v.lataxis.showgrid=!1),e._template=v}for(var y=r(&quot;visible&quot;),x=0;x&lt;l.length;x++){var b,_=l[x],w=[30,10][x];if(d)b=f[_+&quot;Range&quot;];else{var T=o[_+&quot;Span&quot;],k=(T[h]||T[&quot;*&quot;])/2,M=r(&quot;projection.rotation.&quot;+_.substr(0,3),f.projRotate[x]);b=[M-k,M+k]}var A=r(_+&quot;.range&quot;,b);r(_+&quot;.tick0&quot;),r(_+&quot;.dtick&quot;,w),r(_+&quot;.showgrid&quot;,!!y&amp;&amp;void 0)&amp;&amp;(r(_+&quot;.gridcolor&quot;),r(_+&quot;.gridwidth&quot;)),e[_]._ax={type:&quot;linear&quot;,_id:_.slice(0,3),_traceIndices:s,setScale:n.identity,c2l:n.identity,r2l:n.identity,autorange:!0,range:A.slice(),_m:1,_input:{}}}var S=e.lonaxis.range,E=e.lataxis.range,C=S[0],L=S[1];C&gt;0&amp;&amp;L&lt;0&amp;&amp;(L+=360);var I,P,z,O=(C+L)/2;if(!p){var D=d?f.projRotate:[O,0,0];I=r(&quot;projection.rotation.lon&quot;,D[0]),r(&quot;projection.rotation.lat&quot;,D[1]),r(&quot;projection.rotation.roll&quot;,D[2]),r(&quot;showcoastlines&quot;,!d&amp;&amp;y)&amp;&amp;(r(&quot;coastlinecolor&quot;),r(&quot;coastlinewidth&quot;)),r(&quot;showocean&quot;,!!y&amp;&amp;void 0)&amp;&amp;r(&quot;oceancolor&quot;)}(p?(P=-96.6,z=38.7):(P=d?O:I,z=(E[0]+E[1])/2),r(&quot;center.lon&quot;,P),r(&quot;center.lat&quot;,z),g)&amp;&amp;r(&quot;projection.parallels&quot;,f.projParallels||[0,60]);r(&quot;projection.scale&quot;),r(&quot;showland&quot;,!!y&amp;&amp;void 0)&amp;&amp;r(&quot;landcolor&quot;),r(&quot;showlakes&quot;,!!y&amp;&amp;void 0)&amp;&amp;r(&quot;lakecolor&quot;),r(&quot;showrivers&quot;,!!y&amp;&amp;void 0)&amp;&amp;(r(&quot;rivercolor&quot;),r(&quot;riverwidth&quot;)),r(&quot;showcountries&quot;,d&amp;&amp;&quot;usa&quot;!==u&amp;&amp;y)&amp;&amp;(r(&quot;countrycolor&quot;),r(&quot;countrywidth&quot;)),(&quot;usa&quot;===u||&quot;north america&quot;===u&amp;&amp;50===c)&amp;&amp;(r(&quot;showsubunits&quot;,y),r(&quot;subunitcolor&quot;),r(&quot;subunitwidth&quot;)),d||r(&quot;showframe&quot;,y)&amp;&amp;(r(&quot;framecolor&quot;),r(&quot;framewidth&quot;)),r(&quot;bgcolor&quot;),r(&quot;fitbounds&quot;)&amp;&amp;(delete e.projection.scale,d?(delete e.center.lon,delete e.center.lat):m?(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon,delete e.projection.rotation.lat,delete e.lonaxis.range,delete e.lataxis.range):(delete e.center.lon,delete e.center.lat,delete e.projection.rotation.lon))}e.exports=function(t,e,r){i(t,e,r,{type:&quot;geo&quot;,attributes:s,handleDefaults:c,fullData:r,partition:&quot;y&quot;})}},{&quot;../../lib&quot;:778,&quot;../get_data&quot;:865,&quot;../subplot_defaults&quot;:905,&quot;./constants&quot;:858,&quot;./layout_attributes&quot;:861}],863:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){function e(t,e){return{type:&quot;Feature&quot;,id:t.id,properties:t.properties,geometry:r(t.geometry,e)}}function r(e,n){if(!e)return null;if(&quot;GeometryCollection&quot;===e.type)return{type:&quot;GeometryCollection&quot;,geometries:object.geometries.map((function(t){return r(t,n)}))};if(!c.hasOwnProperty(e.type))return null;var i=c[e.type];return t.geo.stream(e,n(i)),i.result()}t.geo.project=function(t,e){var i=e.stream;if(!i)throw new Error(&quot;not yet supported&quot;);return(t&amp;&amp;n.hasOwnProperty(t.type)?n[t.type]:r)(t,i)};var n={Feature:e,FeatureCollection:function(t,r){return{type:&quot;FeatureCollection&quot;,features:t.features.map((function(t){return e(t,r)}))}}},i=[],a=[],o={point:function(t,e){i.push([t,e])},result:function(){var t=i.length?i.length&lt;2?{type:&quot;Point&quot;,coordinates:i[0]}:{type:&quot;MultiPoint&quot;,coordinates:i}:null;return i=[],t}},s={lineStart:u,point:function(t,e){i.push([t,e])},lineEnd:function(){i.length&amp;&amp;(a.push(i),i=[])},result:function(){var t=a.length?a.length&lt;2?{type:&quot;LineString&quot;,coordinates:a[0]}:{type:&quot;MultiLineString&quot;,coordinates:a}:null;return a=[],t}},l={polygonStart:u,lineStart:u,point:function(t,e){i.push([t,e])},lineEnd:function(){var t=i.length;if(t){do{i.push(i[0].slice())}while(++t&lt;4);a.push(i),i=[]}},polygonEnd:u,result:function(){if(!a.length)return null;var t=[],e=[];return a.forEach((function(r){!function(t){if((e=t.length)&lt;4)return!1;var e,r=0,n=t[e-1][1]*t[0][0]-t[e-1][0]*t[0][1];for(;++r&lt;e;)n+=t[r-1][1]*t[r][0]-t[r-1][0]*t[r][1];return n&lt;=0}(r)?e.push(r):t.push([r])})),e.forEach((function(e){var r=e[0];t.some((function(t){if(function(t,e){for(var r=e[0],n=e[1],i=!1,a=0,o=t.length,s=o-1;a&lt;o;s=a++){var l=t[a],c=l[0],u=l[1],f=t[s],h=f[0],p=f[1];u&gt;n^p&gt;n&amp;&amp;r&lt;(h-c)*(n-u)/(p-u)+c&amp;&amp;(i=!i)}return i}(t[0],r))return t.push(e),!0}))||t.push([e])})),a=[],t.length?t.length&gt;1?{type:&quot;MultiPolygon&quot;,coordinates:t}:{type:&quot;Polygon&quot;,coordinates:t[0]}:null}},c={Point:o,MultiPoint:o,LineString:s,MultiLineString:s,Polygon:l,MultiPolygon:l,Sphere:l};function u(){}var f=1e-6,h=Math.PI,p=h/2,d=(Math.sqrt(h),h/180),g=180/h;function m(t){return t&gt;1?p:t&lt;-1?-p:Math.asin(t)}function v(t){return t&gt;1?0:t&lt;-1?h:Math.acos(t)}var y=t.geo.projection,x=t.geo.projectionMutator;function b(t,e){var r=(2+p)*Math.sin(e);e/=2;for(var n=0,i=1/0;n&lt;10&amp;&amp;Math.abs(i)&gt;f;n++){var a=Math.cos(e);e-=i=(e+Math.sin(e)*(a+2)-r)/(2*a*(1+a))}return[2/Math.sqrt(h*(4+h))*t*(1+Math.cos(e)),2*Math.sqrt(h/(4+h))*Math.sin(e)]}t.geo.interrupt=function(e){var r,n=[[[[-h,0],[0,p],[h,0]]],[[[-h,0],[0,-p],[h,0]]]];function i(t,r){for(var i=r&lt;0?-1:1,a=n[+(r&lt;0)],o=0,s=a.length-1;o&lt;s&amp;&amp;t&gt;a[o][2][0];++o);var l=e(t-a[o][1][0],r);return l[0]+=e(a[o][1][0],i*r&gt;i*a[o][0][1]?a[o][0][1]:r)[0],l}function a(){r=n.map((function(t){return t.map((function(t){var r,n=e(t[0][0],t[0][1])[0],i=e(t[2][0],t[2][1])[0],a=e(t[1][0],t[0][1])[1],o=e(t[1][0],t[1][1])[1];return a&gt;o&amp;&amp;(r=a,a=o,o=r),[[n,a],[i,o]]}))}))}e.invert&amp;&amp;(i.invert=function(t,a){for(var o=r[+(a&lt;0)],s=n[+(a&lt;0)],l=0,u=o.length;l&lt;u;++l){var f=o[l];if(f[0][0]&lt;=t&amp;&amp;t&lt;f[1][0]&amp;&amp;f[0][1]&lt;=a&amp;&amp;a&lt;f[1][1]){var h=e.invert(t-e(s[l][1][0],0)[0],a);return h[0]+=s[l][1][0],c(i(h[0],h[1]),[t,a])?h:null}}});var o=t.geo.projection(i),s=o.stream;function l(t,e){for(var r,n,i,a=-1,o=t.length,s=t[0],l=[];++a&lt;o;){n=((r=t[a])[0]-s[0])/e,i=(r[1]-s[1])/e;for(var c=0;c&lt;e;++c)l.push([s[0]+c*n,s[1]+c*i]);s=r}return l.push(r),l}function c(t,e){return Math.abs(t[0]-e[0])&lt;f&amp;&amp;Math.abs(t[1]-e[1])&lt;f}return o.stream=function(e){var r=o.rotate(),i=s(e),a=(o.rotate([0,0]),s(e));return o.rotate(r),i.sphere=function(){t.geo.stream(function(){for(var e=1e-6,r=[],i=0,a=n[0].length;i&lt;a;++i){var o=180*(p=n[0][i])[0][0]/h,s=180*p[0][1]/h,c=180*p[1][1]/h,u=180*p[2][0]/h,f=180*p[2][1]/h;r.push(l([[o+e,s+e],[o+e,c-e],[u-e,c-e],[u-e,f+e]],30))}for(i=n[1].length-1;i&gt;=0;--i){var p;o=180*(p=n[1][i])[0][0]/h,s=180*p[0][1]/h,c=180*p[1][1]/h,u=180*p[2][0]/h,f=180*p[2][1]/h;r.push(l([[u-e,f-e],[u-e,c+e],[o+e,c+e],[o+e,s-e]],30))}return{type:&quot;Polygon&quot;,coordinates:[t.merge(r)]}}(),a)},i},o.lobes=function(t){return arguments.length?(n=t.map((function(t){return t.map((function(t){return[[t[0][0]*h/180,t[0][1]*h/180],[t[1][0]*h/180,t[1][1]*h/180],[t[2][0]*h/180,t[2][1]*h/180]]}))})),a(),o):n.map((function(t){return t.map((function(t){return[[180*t[0][0]/h,180*t[0][1]/h],[180*t[1][0]/h,180*t[1][1]/h],[180*t[2][0]/h,180*t[2][1]/h]]}))}))},o},b.invert=function(t,e){var r=.5*e*Math.sqrt((4+h)/h),n=m(r),i=Math.cos(n);return[t/(2/Math.sqrt(h*(4+h))*(1+i)),m((n+r*(i+2))/(2+p))]},(t.geo.eckert4=function(){return y(b)}).raw=b;var _=t.geo.azimuthalEqualArea.raw;function w(t,e){if(arguments.length&lt;2&amp;&amp;(e=t),1===e)return _;if(e===1/0)return T;function r(r,n){var i=_(r/e,n);return i[0]*=t,i}return r.invert=function(r,n){var i=_.invert(r/t,n);return i[0]*=e,i},r}function T(t,e){return[t*Math.cos(e)/Math.cos(e/=2),2*Math.sin(e)]}function k(t,e){return[3*t/(2*h)*Math.sqrt(h*h/3-e*e),e]}function M(t,e){return[t,1.25*Math.log(Math.tan(h/4+.4*e))]}function A(t){return function(e){var r,n=t*Math.sin(e),i=30;do{e-=r=(e+Math.sin(e)-n)/(1+Math.cos(e))}while(Math.abs(r)&gt;f&amp;&amp;--i&gt;0);return e/2}}T.invert=function(t,e){var r=2*m(e/2);return[t*Math.cos(r/2)/Math.cos(r),r]},(t.geo.hammer=function(){var t=2,e=x(w),r=e(t);return r.coefficient=function(r){return arguments.length?e(t=+r):t},r}).raw=w,k.invert=function(t,e){return[2/3*h*t/Math.sqrt(h*h/3-e*e),e]},(t.geo.kavrayskiy7=function(){return y(k)}).raw=k,M.invert=function(t,e){return[t,2.5*Math.atan(Math.exp(.8*e))-.625*h]},(t.geo.miller=function(){return y(M)}).raw=M,A(h);var S=function(t,e,r){var n=A(r);function i(r,i){return[t*r*Math.cos(i=n(i)),e*Math.sin(i)]}return i.invert=function(n,i){var a=m(i/e);return[n/(t*Math.cos(a)),m((2*a+Math.sin(2*a))/r)]},i}(Math.SQRT2/p,Math.SQRT2,h);function E(t,e){var r=e*e,n=r*r;return[t*(.8707-.131979*r+n*(n*(.003971*r-.001529*n)-.013791)),e*(1.007226+r*(.015085+n*(.028874*r-.044475-.005916*n)))]}(t.geo.mollweide=function(){return y(S)}).raw=S,E.invert=function(t,e){var r,n=e,i=25;do{var a=n*n,o=a*a;n-=r=(n*(1.007226+a*(.015085+o*(.028874*a-.044475-.005916*o)))-e)/(1.007226+a*(.045255+o*(.259866*a-.311325-.005916*11*o)))}while(Math.abs(r)&gt;f&amp;&amp;--i&gt;0);return[t/(.8707+(a=n*n)*(a*(a*a*a*(.003971-.001529*a)-.013791)-.131979)),n]},(t.geo.naturalEarth=function(){return y(E)}).raw=E;var C=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];function L(t,e){var r,n=Math.min(18,36*Math.abs(e)/h),i=Math.floor(n),a=n-i,o=(r=C[i])[0],s=r[1],l=(r=C[++i])[0],c=r[1],u=(r=C[Math.min(19,++i)])[0],f=r[1];return[t*(l+a*(u-o)/2+a*a*(u-2*l+o)/2),(e&gt;0?p:-p)*(c+a*(f-s)/2+a*a*(f-2*c+s)/2)]}function I(t,e){return[t*Math.cos(e),e]}function P(t,e){var r,n=Math.cos(e),i=(r=v(n*Math.cos(t/=2)))?r/Math.sin(r):1;return[2*n*Math.sin(t)*i,Math.sin(e)*i]}function z(t,e){var r=P(t,e);return[(r[0]+t/p)/2,(r[1]+e)/2]}C.forEach((function(t){t[1]*=1.0144})),L.invert=function(t,e){var r=e/p,n=90*r,i=Math.min(18,Math.abs(n/5)),a=Math.max(0,Math.floor(i));do{var o=C[a][1],s=C[a+1][1],l=C[Math.min(19,a+2)][1],c=l-o,u=l-2*s+o,f=2*(Math.abs(r)-s)/c,h=u/c,m=f*(1-h*f*(1-2*h*f));if(m&gt;=0||1===a){n=(e&gt;=0?5:-5)*(m+i);var v,y=50;do{m=(i=Math.min(18,Math.abs(n)/5))-(a=Math.floor(i)),o=C[a][1],s=C[a+1][1],l=C[Math.min(19,a+2)][1],n-=(v=(e&gt;=0?p:-p)*(s+m*(l-o)/2+m*m*(l-2*s+o)/2)-e)*g}while(Math.abs(v)&gt;1e-12&amp;&amp;--y&gt;0);break}}while(--a&gt;=0);var x=C[a][0],b=C[a+1][0],_=C[Math.min(19,a+2)][0];return[t/(b+m*(_-x)/2+m*m*(_-2*b+x)/2),n*d]},(t.geo.robinson=function(){return y(L)}).raw=L,I.invert=function(t,e){return[t/Math.cos(e),e]},(t.geo.sinusoidal=function(){return y(I)}).raw=I,P.invert=function(t,e){if(!(t*t+4*e*e&gt;h*h+f)){var r=t,n=e,i=25;do{var a,o=Math.sin(r),s=Math.sin(r/2),l=Math.cos(r/2),c=Math.sin(n),u=Math.cos(n),p=Math.sin(2*n),d=c*c,g=u*u,m=s*s,y=1-g*l*l,x=y?v(u*l)*Math.sqrt(a=1/y):a=0,b=2*x*u*s-t,_=x*c-e,w=a*(g*m+x*u*l*d),T=a*(.5*o*p-2*x*c*s),k=.25*a*(p*s-x*c*g*o),M=a*(d*l+x*m*u),A=T*k-M*w;if(!A)break;var S=(_*T-b*M)/A,E=(b*k-_*w)/A;r-=S,n-=E}while((Math.abs(S)&gt;f||Math.abs(E)&gt;f)&amp;&amp;--i&gt;0);return[r,n]}},(t.geo.aitoff=function(){return y(P)}).raw=P,z.invert=function(t,e){var r=t,n=e,i=25;do{var a,o=Math.cos(n),s=Math.sin(n),l=Math.sin(2*n),c=s*s,u=o*o,h=Math.sin(r),d=Math.cos(r/2),g=Math.sin(r/2),m=g*g,y=1-u*d*d,x=y?v(o*d)*Math.sqrt(a=1/y):a=0,b=.5*(2*x*o*g+r/p)-t,_=.5*(x*s+n)-e,w=.5*a*(u*m+x*o*d*c)+.5/p,T=a*(h*l/4-x*s*g),k=.125*a*(l*g-x*s*u*h),M=.5*a*(c*d+x*m*o)+.5,A=T*k-M*w,S=(_*T-b*M)/A,E=(b*k-_*w)/A;r-=S,n-=E}while((Math.abs(S)&gt;f||Math.abs(E)&gt;f)&amp;&amp;--i&gt;0);return[r,n]},(t.geo.winkel3=function(){return y(z)}).raw=z}},{}],864:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;),o=Math.PI/180,s=180/Math.PI,l={cursor:&quot;pointer&quot;},c={cursor:&quot;auto&quot;};function u(t,e){return n.behavior.zoom().translate(e.translate()).scale(e.scale())}function f(t,e,r){var n=t.id,o=t.graphDiv,s=o.layout,l=s[n],c=o._fullLayout,u=c[n],f={},h={};function p(t,e){f[n+&quot;.&quot;+t]=i.nestedProperty(l,t).get(),a.call(&quot;_storeDirectGUIEdit&quot;,s,c._preGUI,f);var r=i.nestedProperty(u,t);r.get()!==e&amp;&amp;(r.set(e),i.nestedProperty(l,t).set(e),h[n+&quot;.&quot;+t]=e)}r(p),p(&quot;projection.scale&quot;,e.scale()/t.fitScale),p(&quot;fitbounds&quot;,!1),o.emit(&quot;plotly_relayout&quot;,h)}function h(t,e){var r=u(0,e);function i(r){var n=e.invert(t.midPt);r(&quot;center.lon&quot;,n[0]),r(&quot;center.lat&quot;,n[1])}return r.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l)})).on(&quot;zoom&quot;,(function(){e.scale(n.event.scale).translate(n.event.translate),t.render();var r=e.invert(t.midPt);t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.center.lon&quot;:r[0],&quot;geo.center.lat&quot;:r[1]})})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),f(t,e,i)})),r}function p(t,e){var r,i,a,o,s,h,p,d,g,m=u(0,e);function v(t){return e.invert(t)}function y(r){var n=e.rotate(),i=e.invert(t.midPt);r(&quot;projection.rotation.lon&quot;,-n[0]),r(&quot;center.lon&quot;,i[0]),r(&quot;center.lat&quot;,i[1])}return m.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l),r=n.mouse(this),i=e.rotate(),a=e.translate(),o=i,s=v(r)})).on(&quot;zoom&quot;,(function(){if(h=n.mouse(this),function(t){var r=v(t);if(!r)return!0;var n=e(r);return Math.abs(n[0]-t[0])&gt;2||Math.abs(n[1]-t[1])&gt;2}(r))return m.scale(e.scale()),void m.translate(e.translate());e.scale(n.event.scale),e.translate([a[0],n.event.translate[1]]),s?v(h)&amp;&amp;(d=v(h),p=[o[0]+(d[0]-s[0]),i[1],i[2]],e.rotate(p),o=p):s=v(r=h),g=!0,t.render();var l=e.rotate(),c=e.invert(t.midPt);t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.center.lon&quot;:c[0],&quot;geo.center.lat&quot;:c[1],&quot;geo.projection.rotation.lon&quot;:-l[0]})})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),g&amp;&amp;f(t,e,y)})),m}function d(t,e){var r,i={r:e.rotate(),k:e.scale()},a=u(0,e),o=function(t){var e=0,r=arguments.length,i=[];for(;++e&lt;r;)i.push(arguments[e]);var a=n.dispatch.apply(null,i);return a.of=function(e,r){return function(i){var o;try{o=i.sourceEvent=n.event,i.target=t,n.event=i,a[i.type].apply(e,r)}finally{n.event=o}}},a}(a,&quot;zoomstart&quot;,&quot;zoom&quot;,&quot;zoomend&quot;),s=0,h=a.on;function p(t){s++||t({type:&quot;zoomstart&quot;})}function d(t){t({type:&quot;zoom&quot;})}function b(t){--s||t({type:&quot;zoomend&quot;})}function _(t){var r=e.rotate();t(&quot;projection.rotation.lon&quot;,-r[0]),t(&quot;projection.rotation.lat&quot;,-r[1])}return a.on(&quot;zoomstart&quot;,(function(){n.select(this).style(l);var t=n.mouse(this),s=e.rotate(),c=s,u=e.translate(),f=m(s);r=g(e,t),h.call(a,&quot;zoom&quot;,(function(){var a=n.mouse(this);if(e.scale(i.k=n.event.scale),r){if(g(e,a)){e.rotate(s).translate(u);var l=g(e,a),h=y(r,l),p=T(v(f,h)),m=i.r=x(p,r,c);isFinite(m[0])&amp;&amp;isFinite(m[1])&amp;&amp;isFinite(m[2])||(m=c),e.rotate(m),c=m}}else r=g(e,t=a);d(o.of(this,arguments))})),p(o.of(this,arguments))})).on(&quot;zoomend&quot;,(function(){n.select(this).style(c),h.call(a,&quot;zoom&quot;,null),b(o.of(this,arguments)),f(t,e,_)})).on(&quot;zoom.redraw&quot;,(function(){t.render();var r=e.rotate();t.graphDiv.emit(&quot;plotly_relayouting&quot;,{&quot;geo.projection.scale&quot;:e.scale()/t.fitScale,&quot;geo.projection.rotation.lon&quot;:-r[0],&quot;geo.projection.rotation.lat&quot;:-r[1]})})),n.rebind(a,o,&quot;on&quot;)}function g(t,e){var r=t.invert(e);return r&amp;&amp;isFinite(r[0])&amp;&amp;isFinite(r[1])&amp;&amp;function(t){var e=t[0]*o,r=t[1]*o,n=Math.cos(r);return[n*Math.cos(e),n*Math.sin(e),Math.sin(r)]}(r)}function m(t){var e=.5*t[0]*o,r=.5*t[1]*o,n=.5*t[2]*o,i=Math.sin(e),a=Math.cos(e),s=Math.sin(r),l=Math.cos(r),c=Math.sin(n),u=Math.cos(n);return[a*l*u+i*s*c,i*l*u-a*s*c,a*s*u+i*l*c,a*l*c-i*s*u]}function v(t,e){var r=t[0],n=t[1],i=t[2],a=t[3],o=e[0],s=e[1],l=e[2],c=e[3];return[r*o-n*s-i*l-a*c,r*s+n*o+i*c-a*l,r*l-n*c+i*o+a*s,r*c+n*l-i*s+a*o]}function y(t,e){if(t&amp;&amp;e){var r=function(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}(t,e),n=Math.sqrt(k(r,r)),i=.5*Math.acos(Math.max(-1,Math.min(1,k(t,e)))),a=Math.sin(i)/n;return n&amp;&amp;[Math.cos(i),r[2]*a,-r[1]*a,r[0]*a]}}function x(t,e,r){var n=w(e,2,t[0]);n=w(n,1,t[1]),n=w(n,0,t[2]-r[2]);var i,a,o=e[0],l=e[1],c=e[2],u=n[0],f=n[1],h=n[2],p=Math.atan2(l,o)*s,d=Math.sqrt(o*o+l*l);Math.abs(f)&gt;d?(a=(f&gt;0?90:-90)-p,i=0):(a=Math.asin(f/d)*s-p,i=Math.sqrt(d*d-f*f));var g=180-a-2*p,m=(Math.atan2(h,u)-Math.atan2(c,i))*s,v=(Math.atan2(h,u)-Math.atan2(c,-i))*s;return b(r[0],r[1],a,m)&lt;=b(r[0],r[1],g,v)?[a,m,r[2]]:[g,v,r[2]]}function b(t,e,r,n){var i=_(r-t),a=_(n-e);return Math.sqrt(i*i+a*a)}function _(t){return(t%360+540)%360-180}function w(t,e,r){var n=r*o,i=t.slice(),a=0===e?1:0,s=2===e?1:2,l=Math.cos(n),c=Math.sin(n);return i[a]=t[a]*l-t[s]*c,i[s]=t[s]*l+t[a]*c,i}function T(t){return[Math.atan2(2*(t[0]*t[1]+t[2]*t[3]),1-2*(t[1]*t[1]+t[2]*t[2]))*s,Math.asin(Math.max(-1,Math.min(1,2*(t[0]*t[2]-t[3]*t[1]))))*s,Math.atan2(2*(t[0]*t[3]+t[1]*t[2]),1-2*(t[2]*t[2]+t[3]*t[3]))*s]}function k(t,e){for(var r=0,n=0,i=t.length;n&lt;i;++n)r+=t[n]*e[n];return r}e.exports=function(t,e){var r=t.projection;return(e._isScoped?h:e._isClipped?d:p)(t,r)}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,d3:169}],865:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;./cartesian/constants&quot;).SUBPLOT_PATTERN;r.getSubplotCalcData=function(t,e,r){var i=n.subplotsRegistry[e];if(!i)return[];for(var a=i.attr,o=[],s=0;s&lt;t.length;s++){var l=t[s];l[0].trace[a]===r&amp;&amp;o.push(l)}return o},r.getModuleCalcData=function(t,e){var r,i=[],a=[];if(!(r=&quot;string&quot;==typeof e?n.getModule(e).plot:&quot;function&quot;==typeof e?e:e.plot))return[i,t];for(var o=0;o&lt;t.length;o++){var s=t[o],l=s[0].trace;!0===l.visible&amp;&amp;0!==l._length&amp;&amp;(l._module.plot===r?i.push(s):a.push(s))}return[i,a]},r.getSubplotData=function(t,e,r){if(!n.subplotsRegistry[e])return[];var a,o,s,l=n.subplotsRegistry[e].attr,c=[];if(&quot;gl2d&quot;===e){var u=r.match(i);o=&quot;x&quot;+u[1],s=&quot;y&quot;+u[2]}for(var f=0;f&lt;t.length;f++)a=t[f],&quot;gl2d&quot;===e&amp;&amp;n.traceIs(a,&quot;gl2d&quot;)?a[l[0]]===o&amp;&amp;a[l[1]]===s&amp;&amp;c.push(a):a[l]===r&amp;&amp;c.push(a);return c}},{&quot;../registry&quot;:911,&quot;./cartesian/constants&quot;:834}],866:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mouse-change&quot;),i=t(&quot;mouse-wheel&quot;),a=t(&quot;mouse-event-offset&quot;),o=t(&quot;../cartesian/constants&quot;),s=t(&quot;has-passive-events&quot;);function l(t,e){this.element=t,this.plot=e,this.mouseListener=null,this.wheelListener=null,this.lastInputTime=Date.now(),this.lastPos=[0,0],this.boxEnabled=!1,this.boxInited=!1,this.boxStart=[0,0],this.boxEnd=[0,0],this.dragStart=[0,0]}e.exports=function(t){var e=t.mouseContainer,r=t.glplot,c=new l(e,r);function u(){t.xaxis.autorange=!1,t.yaxis.autorange=!1}function f(e,n,i){var a,s,l=t.calcDataBox(),f=r.viewBox,h=c.lastPos[0],p=c.lastPos[1],d=o.MINDRAG*r.pixelRatio,g=o.MINZOOM*r.pixelRatio;function m(e,r,n){var i=Math.min(r,n),a=Math.max(r,n);i!==a?(l[e]=i,l[e+2]=a,c.dataBox=l,t.setRanges(l)):(t.selectBox.selectBox=[0,0,1,1],t.glplot.setDirty())}switch(n*=r.pixelRatio,i*=r.pixelRatio,i=f[3]-f[1]-i,t.fullLayout.dragmode){case&quot;zoom&quot;:if(e){var v=n/(f[2]-f[0])*(l[2]-l[0])+l[0],y=i/(f[3]-f[1])*(l[3]-l[1])+l[1];c.boxInited||(c.boxStart[0]=v,c.boxStart[1]=y,c.dragStart[0]=n,c.dragStart[1]=i),c.boxEnd[0]=v,c.boxEnd[1]=y,c.boxInited=!0,c.boxEnabled||c.boxStart[0]===c.boxEnd[0]&amp;&amp;c.boxStart[1]===c.boxEnd[1]||(c.boxEnabled=!0);var x=Math.abs(c.dragStart[0]-n)&lt;g,b=Math.abs(c.dragStart[1]-i)&lt;g;if(!function(){for(var e=t.graphDiv._fullLayout._axisConstraintGroups,r=t.xaxis._id,n=t.yaxis._id,i=0;i&lt;e.length;i++)if(-1!==e[i][r]){if(-1!==e[i][n])return!0;break}return!1}()||x&amp;&amp;b)x&amp;&amp;(c.boxEnd[0]=c.boxStart[0]),b&amp;&amp;(c.boxEnd[1]=c.boxStart[1]);else{a=c.boxEnd[0]-c.boxStart[0],s=c.boxEnd[1]-c.boxStart[1];var _=(l[3]-l[1])/(l[2]-l[0]);Math.abs(a*_)&gt;Math.abs(s)?(c.boxEnd[1]=c.boxStart[1]+Math.abs(a)*_*(s&gt;=0?1:-1),c.boxEnd[1]&lt;l[1]?(c.boxEnd[1]=l[1],c.boxEnd[0]=c.boxStart[0]+(l[1]-c.boxStart[1])/Math.abs(_)):c.boxEnd[1]&gt;l[3]&amp;&amp;(c.boxEnd[1]=l[3],c.boxEnd[0]=c.boxStart[0]+(l[3]-c.boxStart[1])/Math.abs(_))):(c.boxEnd[0]=c.boxStart[0]+Math.abs(s)/_*(a&gt;=0?1:-1),c.boxEnd[0]&lt;l[0]?(c.boxEnd[0]=l[0],c.boxEnd[1]=c.boxStart[1]+(l[0]-c.boxStart[0])*Math.abs(_)):c.boxEnd[0]&gt;l[2]&amp;&amp;(c.boxEnd[0]=l[2],c.boxEnd[1]=c.boxStart[1]+(l[2]-c.boxStart[0])*Math.abs(_)))}}else c.boxEnabled?(a=c.boxStart[0]!==c.boxEnd[0],s=c.boxStart[1]!==c.boxEnd[1],a||s?(a&amp;&amp;(m(0,c.boxStart[0],c.boxEnd[0]),t.xaxis.autorange=!1),s&amp;&amp;(m(1,c.boxStart[1],c.boxEnd[1]),t.yaxis.autorange=!1),t.relayoutCallback()):t.glplot.setDirty(),c.boxEnabled=!1,c.boxInited=!1):c.boxInited&amp;&amp;(c.boxInited=!1);break;case&quot;pan&quot;:c.boxEnabled=!1,c.boxInited=!1,e?(c.panning||(c.dragStart[0]=n,c.dragStart[1]=i),Math.abs(c.dragStart[0]-n)&lt;d&amp;&amp;(n=c.dragStart[0]),Math.abs(c.dragStart[1]-i)&lt;d&amp;&amp;(i=c.dragStart[1]),a=(h-n)*(l[2]-l[0])/(r.viewBox[2]-r.viewBox[0]),s=(p-i)*(l[3]-l[1])/(r.viewBox[3]-r.viewBox[1]),l[0]+=a,l[2]+=a,l[1]+=s,l[3]+=s,t.setRanges(l),c.panning=!0,c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations()):c.panning&amp;&amp;(c.panning=!1,t.relayoutCallback())}c.lastPos[0]=n,c.lastPos[1]=i}return c.mouseListener=n(e,f),e.addEventListener(&quot;touchstart&quot;,(function(t){var r=a(t.changedTouches[0],e);f(0,r[0],r[1]),f(1,r[0],r[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),e.addEventListener(&quot;touchmove&quot;,(function(t){t.preventDefault();var r=a(t.changedTouches[0],e);f(1,r[0],r[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),e.addEventListener(&quot;touchend&quot;,(function(t){f(0,c.lastPos[0],c.lastPos[1]),t.preventDefault()}),!!s&amp;&amp;{passive:!1}),c.wheelListener=i(e,(function(e,n){if(!t.scrollZoom)return!1;var i=t.calcDataBox(),a=r.viewBox,o=c.lastPos[0],s=c.lastPos[1],l=Math.exp(5*n/(a[3]-a[1])),f=o/(a[2]-a[0])*(i[2]-i[0])+i[0],h=s/(a[3]-a[1])*(i[3]-i[1])+i[1];return i[0]=(i[0]-f)*l+f,i[2]=(i[2]-f)*l+f,i[1]=(i[1]-h)*l+h,i[3]=(i[3]-h)*l+h,t.setRanges(i),c.lastInputTime=Date.now(),u(),t.cameraChanged(),t.handleAnnotations(),t.relayoutCallback(),!0}),!0),c}},{&quot;../cartesian/constants&quot;:834,&quot;has-passive-events&quot;:441,&quot;mouse-change&quot;:483,&quot;mouse-event-offset&quot;:484,&quot;mouse-wheel&quot;:486}],867:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../cartesian/axes&quot;),i=t(&quot;../../lib/str2rgbarray&quot;);function a(t){this.scene=t,this.gl=t.gl,this.pixelRatio=t.pixelRatio,this.screenBox=[0,0,1,1],this.viewBox=[0,0,1,1],this.dataBox=[-1,-1,1,1],this.borderLineEnable=[!1,!1,!1,!1],this.borderLineWidth=[1,1,1,1],this.borderLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.ticks=[[],[]],this.tickEnable=[!0,!0,!1,!1],this.tickPad=[15,15,15,15],this.tickAngle=[0,0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickMarkLength=[0,0,0,0],this.tickMarkWidth=[0,0,0,0],this.tickMarkColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labels=[&quot;x&quot;,&quot;y&quot;],this.labelEnable=[!0,!0,!1,!1],this.labelAngle=[0,Math.PI/2,0,3*Math.PI/2],this.labelPad=[15,15,15,15],this.labelSize=[12,12],this.labelFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.title=&quot;&quot;,this.titleEnable=!0,this.titleCenter=[0,0,0,0],this.titleAngle=0,this.titleColor=[0,0,0,1],this.titleFont=&quot;sans-serif&quot;,this.titleSize=18,this.gridLineEnable=[!0,!0],this.gridLineColor=[[0,0,0,.5],[0,0,0,.5]],this.gridLineWidth=[1,1],this.zeroLineEnable=[!0,!0],this.zeroLineWidth=[1,1],this.zeroLineColor=[[0,0,0,1],[0,0,0,1]],this.borderColor=[0,0,0,0],this.backgroundColor=[0,0,0,0],this.static=this.scene.staticPlot}var o=a.prototype,s=[&quot;xaxis&quot;,&quot;yaxis&quot;];o.merge=function(t){var e,r,n,a,o,l,c,u,f,h,p;for(this.titleEnable=!1,this.backgroundColor=i(t.plot_bgcolor),h=0;h&lt;2;++h){var d=(e=s[h]).charAt(0);for(n=(r=t[this.scene[e]._name]).title.text===this.scene.fullLayout._dfltTitle[d]?&quot;&quot;:r.title.text,p=0;p&lt;=2;p+=2)this.labelEnable[h+p]=!1,this.labels[h+p]=n,this.labelColor[h+p]=i(r.title.font.color),this.labelFont[h+p]=r.title.font.family,this.labelSize[h+p]=r.title.font.size,this.labelPad[h+p]=this.getLabelPad(e,r),this.tickEnable[h+p]=!1,this.tickColor[h+p]=i((r.tickfont||{}).color),this.tickAngle[h+p]=&quot;auto&quot;===r.tickangle?0:Math.PI*-r.tickangle/180,this.tickPad[h+p]=this.getTickPad(r),this.tickMarkLength[h+p]=0,this.tickMarkWidth[h+p]=r.tickwidth||0,this.tickMarkColor[h+p]=i(r.tickcolor),this.borderLineEnable[h+p]=!1,this.borderLineColor[h+p]=i(r.linecolor),this.borderLineWidth[h+p]=r.linewidth||0;c=this.hasSharedAxis(r),o=this.hasAxisInDfltPos(e,r)&amp;&amp;!c,l=this.hasAxisInAltrPos(e,r)&amp;&amp;!c,a=r.mirror||!1,u=c?-1!==String(a).indexOf(&quot;all&quot;):!!a,f=c?&quot;allticks&quot;===a:-1!==String(a).indexOf(&quot;ticks&quot;),o?this.labelEnable[h]=!0:l&amp;&amp;(this.labelEnable[h+2]=!0),o?this.tickEnable[h]=r.showticklabels:l&amp;&amp;(this.tickEnable[h+2]=r.showticklabels),(o||u)&amp;&amp;(this.borderLineEnable[h]=r.showline),(l||u)&amp;&amp;(this.borderLineEnable[h+2]=r.showline),(o||f)&amp;&amp;(this.tickMarkLength[h]=this.getTickMarkLength(r)),(l||f)&amp;&amp;(this.tickMarkLength[h+2]=this.getTickMarkLength(r)),this.gridLineEnable[h]=r.showgrid,this.gridLineColor[h]=i(r.gridcolor),this.gridLineWidth[h]=r.gridwidth,this.zeroLineEnable[h]=r.zeroline,this.zeroLineColor[h]=i(r.zerolinecolor),this.zeroLineWidth[h]=r.zerolinewidth}},o.hasSharedAxis=function(t){var e=this.scene,r=e.fullLayout._subplots.gl2d;return 0!==n.findSubplotsWithAxis(r,t).indexOf(e.id)},o.hasAxisInDfltPos=function(t,e){var r=e.side;return&quot;xaxis&quot;===t?&quot;bottom&quot;===r:&quot;yaxis&quot;===t?&quot;left&quot;===r:void 0},o.hasAxisInAltrPos=function(t,e){var r=e.side;return&quot;xaxis&quot;===t?&quot;top&quot;===r:&quot;yaxis&quot;===t?&quot;right&quot;===r:void 0},o.getLabelPad=function(t,e){var r=e.title.font.size,n=e.showticklabels;return&quot;xaxis&quot;===t?&quot;top&quot;===e.side?r*(1.5+(n?1:0))-10:r*(1.5+(n?.5:0))-10:&quot;yaxis&quot;===t?&quot;right&quot;===e.side?10+r*(1.5+(n?1:.5)):10+r*(1.5+(n?.5:0)):void 0},o.getTickPad=function(t){return&quot;outside&quot;===t.ticks?10+t.ticklen:15},o.getTickMarkLength=function(t){if(!t.ticks)return 0;var e=t.ticklen;return&quot;inside&quot;===t.ticks?-e:e},e.exports=function(t){return new a(t)}},{&quot;../../lib/str2rgbarray&quot;:802,&quot;../cartesian/axes&quot;:828}],868:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;./scene2d&quot;),a=t(&quot;../layout_attributes&quot;),o=t(&quot;../../constants/xmlns_namespaces&quot;),s=t(&quot;../cartesian/constants&quot;),l=t(&quot;../cartesian&quot;),c=t(&quot;../../components/fx/layout_attributes&quot;),u=t(&quot;../get_data&quot;).getSubplotData;r.name=&quot;gl2d&quot;,r.attr=[&quot;xaxis&quot;,&quot;yaxis&quot;],r.idRoot=[&quot;x&quot;,&quot;y&quot;],r.idRegex=s.idRegex,r.attrRegex=s.attrRegex,r.attributes=t(&quot;../cartesian/attributes&quot;),r.supplyLayoutDefaults=function(t,e,r){e._has(&quot;cartesian&quot;)||l.supplyLayoutDefaults(t,e,r)},r.layoutAttrOverrides=n(l.layoutAttributes,&quot;plot&quot;,&quot;from-root&quot;),r.baseLayoutAttrOverrides=n({plot_bgcolor:a.plot_bgcolor,hoverlabel:c.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl2d,a=0;a&lt;n.length;a++){var o=n[a],s=e._plots[o],l=u(r,&quot;gl2d&quot;,o),c=s._scene2d;void 0===c&amp;&amp;(c=new i({id:o,graphDiv:t,container:t.querySelector(&quot;.gl-container&quot;),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio},e),s._scene2d=c),c.plot(l,t.calcdata,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl2d||[],a=0;a&lt;i.length;a++){var o=i[a],s=n._plots[o];if(s._scene2d){var c=u(t,&quot;gl2d&quot;,o);0===c.length&amp;&amp;(s._scene2d.destroy(),delete n._plots[o])}}l.clean.apply(this,arguments)},r.drawFramework=function(t){t._context.staticPlot||l.drawFramework(t)},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n&lt;r.length;n++){var i=e._plots[r[n]]._scene2d,a=i.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:o.svg,&quot;xlink:href&quot;:a,x:0,y:0,width:&quot;100%&quot;,height:&quot;100%&quot;,preserveAspectRatio:&quot;none&quot;}),i.destroy()}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl2d,n=0;n&lt;r.length;n++){e._plots[r[n]]._scene2d.updateFx(e.dragmode)}}},{&quot;../../components/fx/layout_attributes&quot;:684,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../plot_api/edit_types&quot;:810,&quot;../cartesian&quot;:841,&quot;../cartesian/attributes&quot;:826,&quot;../cartesian/constants&quot;:834,&quot;../get_data&quot;:865,&quot;../layout_attributes&quot;:882,&quot;./scene2d&quot;:869}],869:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;../../registry&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../../components/fx&quot;),l=t(&quot;gl-plot2d&quot;),c=t(&quot;gl-spikes2d&quot;),u=t(&quot;gl-select-box&quot;),f=t(&quot;webgl-context&quot;),h=t(&quot;./convert&quot;),p=t(&quot;./camera&quot;),d=t(&quot;../../lib/show_no_webgl_msg&quot;),g=t(&quot;../cartesian/constraints&quot;),m=g.enforce,v=g.clean,y=t(&quot;../cartesian/autorange&quot;).doAutoRange,x=t(&quot;../../components/dragelement/helpers&quot;),b=x.drawMode,_=x.selectMode,w=[&quot;xaxis&quot;,&quot;yaxis&quot;],T=t(&quot;../cartesian/constants&quot;).SUBPLOT_PATTERN;function k(t,e){this.container=t.container,this.graphDiv=t.graphDiv,this.pixelRatio=t.plotGlPixelRatio||window.devicePixelRatio,this.id=t.id,this.staticPlot=!!t.staticPlot,this.scrollZoom=this.graphDiv._context._scrollZoom.cartesian,this.fullData=null,this.updateRefs(e),this.makeFramework(),this.stopped||(this.glplotOptions=h(this),this.glplotOptions.merge(e),this.glplot=l(this.glplotOptions),this.camera=p(this),this.traces={},this.spikes=c(this.glplot),this.selectBox=u(this.glplot,{innerFill:!1,outerFill:!0}),this.lastButtonState=0,this.pickResult=null,this.isMouseOver=!0,this.stopped=!1,this.redraw=this.draw.bind(this),this.redraw())}e.exports=k;var M=k.prototype;M.makeFramework=function(){if(this.staticPlot){if(!(i||(n=document.createElement(&quot;canvas&quot;),i=f({canvas:n,preserveDrawingBuffer:!1,premultipliedAlpha:!0,antialias:!0}))))throw new Error(&quot;Error creating static canvas/context for image server&quot;);this.canvas=n,this.gl=i}else{var t=this.container.querySelector(&quot;.gl-canvas-focus&quot;),e=f({canvas:t,preserveDrawingBuffer:!0,premultipliedAlpha:!0});if(!e)return d(this),void(this.stopped=!0);this.canvas=t,this.gl=e}var r=this.canvas;r.style.width=&quot;100%&quot;,r.style.height=&quot;100%&quot;,r.style.position=&quot;absolute&quot;,r.style.top=&quot;0px&quot;,r.style.left=&quot;0px&quot;,r.style[&quot;pointer-events&quot;]=&quot;none&quot;,this.updateSize(r);var a=this.svgContainer=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);a.style.position=&quot;absolute&quot;,a.style.top=a.style.left=&quot;0px&quot;,a.style.width=a.style.height=&quot;100%&quot;,a.style[&quot;z-index&quot;]=20,a.style[&quot;pointer-events&quot;]=&quot;none&quot;;var o=this.mouseContainer=document.createElement(&quot;div&quot;);o.style.position=&quot;absolute&quot;,o.style[&quot;pointer-events&quot;]=&quot;auto&quot;,this.pickCanvas=this.container.querySelector(&quot;.gl-canvas-pick&quot;);var s=this.container;s.appendChild(a),s.appendChild(o);var l=this;o.addEventListener(&quot;mouseout&quot;,(function(){l.isMouseOver=!1,l.unhover()})),o.addEventListener(&quot;mouseover&quot;,(function(){l.isMouseOver=!0}))},M.toImage=function(t){t||(t=&quot;png&quot;),this.stopped=!0,this.staticPlot&amp;&amp;this.container.appendChild(n),this.updateSize(this.canvas);var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.clearColor(1,1,1,0),e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT),this.glplot.setDirty(),this.glplot.draw(),e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a);for(var o=0,s=i-1;o&lt;s;++o,--s)for(var l=0;l&lt;r;++l)for(var c=0;c&lt;4;++c){var u=a[4*(r*o+l)+c];a[4*(r*o+l)+c]=a[4*(r*s+l)+c],a[4*(r*s+l)+c]=u}var f=document.createElement(&quot;canvas&quot;);f.width=r,f.height=i;var h,p=f.getContext(&quot;2d&quot;),d=p.createImageData(r,i);switch(d.data.set(a),p.putImageData(d,0,0),t){case&quot;jpeg&quot;:h=f.toDataURL(&quot;image/jpeg&quot;);break;case&quot;webp&quot;:h=f.toDataURL(&quot;image/webp&quot;);break;default:h=f.toDataURL(&quot;image/png&quot;)}return this.staticPlot&amp;&amp;this.container.removeChild(n),h},M.updateSize=function(t){t||(t=this.canvas);var e=this.pixelRatio,r=this.fullLayout,n=r.width,i=r.height,a=0|Math.ceil(e*n),o=0|Math.ceil(e*i);return t.width===a&amp;&amp;t.height===o||(t.width=a,t.height=o),t},M.computeTickMarks=function(){this.xaxis.setScale(),this.yaxis.setScale();for(var t=[o.calcTicks(this.xaxis),o.calcTicks(this.yaxis)],e=0;e&lt;2;++e)for(var r=0;r&lt;t[e].length;++r)t[e][r].text=t[e][r].text+&quot;&quot;;return t},M.updateRefs=function(t){this.fullLayout=t;var e=this.id.match(T),r=&quot;xaxis&quot;+e[1],n=&quot;yaxis&quot;+e[2];this.xaxis=this.fullLayout[r],this.yaxis=this.fullLayout[n]},M.relayoutCallback=function(){var t=this.graphDiv,e=this.xaxis,r=this.yaxis,n=t.layout,i={},o=i[e._name+&quot;.range&quot;]=e.range.slice(),s=i[r._name+&quot;.range&quot;]=r.range.slice();i[e._name+&quot;.autorange&quot;]=e.autorange,i[r._name+&quot;.autorange&quot;]=r.autorange,a.call(&quot;_storeDirectGUIEdit&quot;,t.layout,t._fullLayout._preGUI,i);var l=n[e._name];l.range=o,l.autorange=e.autorange;var c=n[r._name];c.range=s,c.autorange=r.autorange,i.lastInputTime=this.camera.lastInputTime,t.emit(&quot;plotly_relayout&quot;,i)},M.cameraChanged=function(){var t=this.camera;this.glplot.setDataBox(this.calcDataBox());var e=this.computeTickMarks();(function(t,e){for(var r=0;r&lt;2;++r){var n=t[r],i=e[r];if(n.length!==i.length)return!0;for(var a=0;a&lt;n.length;++a)if(n[a].x!==i[a].x)return!0}return!1})(e,this.glplotOptions.ticks)&amp;&amp;(this.glplotOptions.ticks=e,this.glplotOptions.dataBox=t.dataBox,this.glplot.update(this.glplotOptions),this.handleAnnotations())},M.handleAnnotations=function(){for(var t=this.graphDiv,e=this.fullLayout.annotations,r=0;r&lt;e.length;r++){var n=e[r];n.xref===this.xaxis._id&amp;&amp;n.yref===this.yaxis._id&amp;&amp;a.getComponentMethod(&quot;annotations&quot;,&quot;drawOne&quot;)(t,r)}},M.destroy=function(){if(this.glplot){var t=this.traces;t&amp;&amp;Object.keys(t).map((function(e){t[e].dispose(),delete t[e]})),this.glplot.dispose(),this.container.removeChild(this.svgContainer),this.container.removeChild(this.mouseContainer),this.fullData=null,this.glplot=null,this.stopped=!0,this.camera.mouseListener.enabled=!1,this.mouseContainer.removeEventListener(&quot;wheel&quot;,this.camera.wheelListener),this.camera=null}},M.plot=function(t,e,r){var n=this.glplot;this.updateRefs(r),this.xaxis.clearCalc(),this.yaxis.clearCalc(),this.updateTraces(t,e),this.updateFx(r.dragmode);var i=r.width,a=r.height;this.updateSize(this.canvas);var o=this.glplotOptions;o.merge(r),o.screenBox=[0,0,i,a];var s={_fullLayout:{_axisConstraintGroups:this.graphDiv._fullLayout._axisConstraintGroups,xaxis:this.xaxis,yaxis:this.yaxis}};v(s,this.xaxis),v(s,this.yaxis);var l,c,u=r._size,f=this.xaxis.domain,h=this.yaxis.domain;for(o.viewBox=[u.l+f[0]*u.w,u.b+h[0]*u.h,i-u.r-(1-f[1])*u.w,a-u.t-(1-h[1])*u.h],this.mouseContainer.style.width=u.w*(f[1]-f[0])+&quot;px&quot;,this.mouseContainer.style.height=u.h*(h[1]-h[0])+&quot;px&quot;,this.mouseContainer.height=u.h*(h[1]-h[0]),this.mouseContainer.style.left=u.l+f[0]*u.w+&quot;px&quot;,this.mouseContainer.style.top=u.t+(1-h[1])*u.h+&quot;px&quot;,c=0;c&lt;2;++c)(l=this[w[c]])._length=o.viewBox[c+2]-o.viewBox[c],y(this.graphDiv,l),l.setScale();m(s),o.ticks=this.computeTickMarks(),o.dataBox=this.calcDataBox(),o.merge(r),n.update(o),this.glplot.draw()},M.calcDataBox=function(){var t=this.xaxis,e=this.yaxis,r=t.range,n=e.range,i=t.r2l,a=e.r2l;return[i(r[0]),a(n[0]),i(r[1]),a(n[1])]},M.setRanges=function(t){var e=this.xaxis,r=this.yaxis,n=e.l2r,i=r.l2r;e.range=[n(t[0]),n(t[2])],r.range=[i(t[1]),i(t[3])]},M.updateTraces=function(t,e){var r,n,i,a=Object.keys(this.traces);this.fullData=t;t:for(r=0;r&lt;a.length;r++){var o=a[r],s=this.traces[o];for(n=0;n&lt;t.length;n++)if((i=t[n]).uid===o&amp;&amp;i.type===s.type)continue t;s.dispose(),delete this.traces[o]}for(r=0;r&lt;t.length;r++){i=t[r];var l=e[r],c=this.traces[i.uid];c?c.update(i,l):(c=i._module.plot(this,i,l),this.traces[i.uid]=c)}this.glplot.objects.sort((function(t,e){return t._trace.index-e._trace.index}))},M.updateFx=function(t){_(t)||b(t)?(this.pickCanvas.style[&quot;pointer-events&quot;]=&quot;none&quot;,this.mouseContainer.style[&quot;pointer-events&quot;]=&quot;none&quot;):(this.pickCanvas.style[&quot;pointer-events&quot;]=&quot;auto&quot;,this.mouseContainer.style[&quot;pointer-events&quot;]=&quot;auto&quot;),this.mouseContainer.style.cursor=&quot;pan&quot;===t?&quot;move&quot;:&quot;zoom&quot;===t?&quot;crosshair&quot;:null},M.emitPointAction=function(t,e){for(var r,n=t.trace.uid,i=t.pointIndex,a=0;a&lt;this.fullData.length;a++)this.fullData[a].uid===n&amp;&amp;(r=this.fullData[a]);var o={x:t.traceCoord[0],y:t.traceCoord[1],curveNumber:r.index,pointNumber:i,data:r._input,fullData:this.fullData,xaxis:this.xaxis,yaxis:this.yaxis};s.appendArrayPointValue(o,r,i),this.graphDiv.emit(e,{points:[o]})},M.draw=function(){if(!this.stopped){requestAnimationFrame(this.redraw);var t=this.glplot,e=this.camera,r=e.mouseListener,n=1===this.lastButtonState&amp;&amp;0===r.buttons,i=this.fullLayout;this.lastButtonState=r.buttons,this.cameraChanged();var a,o=r.x*t.pixelRatio,l=this.canvas.height-t.pixelRatio*r.y;if(e.boxEnabled&amp;&amp;&quot;zoom&quot;===i.dragmode){this.selectBox.enabled=!0;for(var c=this.selectBox.selectBox=[Math.min(e.boxStart[0],e.boxEnd[0]),Math.min(e.boxStart[1],e.boxEnd[1]),Math.max(e.boxStart[0],e.boxEnd[0]),Math.max(e.boxStart[1],e.boxEnd[1])],u=0;u&lt;2;u++)e.boxStart[u]===e.boxEnd[u]&amp;&amp;(c[u]=t.dataBox[u],c[u+2]=t.dataBox[u+2]);t.setDirty()}else if(!e.panning&amp;&amp;this.isMouseOver){this.selectBox.enabled=!1;var f=i._size,h=this.xaxis.domain,p=this.yaxis.domain,d=(a=t.pick(o/t.pixelRatio+f.l+h[0]*f.w,l/t.pixelRatio-(f.t+(1-p[1])*f.h)))&amp;&amp;a.object._trace.handlePick(a);if(d&amp;&amp;n&amp;&amp;this.emitPointAction(d,&quot;plotly_click&quot;),a&amp;&amp;&quot;skip&quot;!==a.object._trace.hoverinfo&amp;&amp;i.hovermode&amp;&amp;d&amp;&amp;(!this.lastPickResult||this.lastPickResult.traceUid!==d.trace.uid||this.lastPickResult.dataCoord[0]!==d.dataCoord[0]||this.lastPickResult.dataCoord[1]!==d.dataCoord[1])){var g=d;this.lastPickResult={traceUid:d.trace?d.trace.uid:null,dataCoord:d.dataCoord.slice()},this.spikes.update({center:a.dataCoord}),g.screenCoord=[((t.viewBox[2]-t.viewBox[0])*(a.dataCoord[0]-t.dataBox[0])/(t.dataBox[2]-t.dataBox[0])+t.viewBox[0])/t.pixelRatio,(this.canvas.height-(t.viewBox[3]-t.viewBox[1])*(a.dataCoord[1]-t.dataBox[1])/(t.dataBox[3]-t.dataBox[1])-t.viewBox[1])/t.pixelRatio],this.emitPointAction(d,&quot;plotly_hover&quot;);var m=this.fullData[g.trace.index]||{},v=g.pointIndex,y=s.castHoverinfo(m,i,v);if(y&amp;&amp;&quot;all&quot;!==y){var x=y.split(&quot;+&quot;);-1===x.indexOf(&quot;x&quot;)&amp;&amp;(g.traceCoord[0]=void 0),-1===x.indexOf(&quot;y&quot;)&amp;&amp;(g.traceCoord[1]=void 0),-1===x.indexOf(&quot;z&quot;)&amp;&amp;(g.traceCoord[2]=void 0),-1===x.indexOf(&quot;text&quot;)&amp;&amp;(g.textLabel=void 0),-1===x.indexOf(&quot;name&quot;)&amp;&amp;(g.name=void 0)}s.loneHover({x:g.screenCoord[0],y:g.screenCoord[1],xLabel:this.hoverFormatter(&quot;xaxis&quot;,g.traceCoord[0]),yLabel:this.hoverFormatter(&quot;yaxis&quot;,g.traceCoord[1]),zLabel:g.traceCoord[2],text:g.textLabel,name:g.name,color:s.castHoverOption(m,v,&quot;bgcolor&quot;)||g.color,borderColor:s.castHoverOption(m,v,&quot;bordercolor&quot;),fontFamily:s.castHoverOption(m,v,&quot;font.family&quot;),fontSize:s.castHoverOption(m,v,&quot;font.size&quot;),fontColor:s.castHoverOption(m,v,&quot;font.color&quot;),nameLength:s.castHoverOption(m,v,&quot;namelength&quot;),textAlign:s.castHoverOption(m,v,&quot;align&quot;)},{container:this.svgContainer,gd:this.graphDiv})}}a||this.unhover(),t.draw()}},M.unhover=function(){this.lastPickResult&amp;&amp;(this.spikes.update({}),this.lastPickResult=null,this.graphDiv.emit(&quot;plotly_unhover&quot;),s.loneUnhover(this.svgContainer))},M.hoverFormatter=function(t,e){if(void 0!==e){var r=this[t];return o.tickText(r,r.c2l(e),&quot;hover&quot;).text}}},{&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/fx&quot;:683,&quot;../../lib/show_no_webgl_msg&quot;:800,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../cartesian/autorange&quot;:827,&quot;../cartesian/constants&quot;:834,&quot;../cartesian/constraints&quot;:835,&quot;./camera&quot;:866,&quot;./convert&quot;:867,&quot;gl-plot2d&quot;:317,&quot;gl-select-box&quot;:333,&quot;gl-spikes2d&quot;:342,&quot;webgl-context&quot;:606}],870:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;../../components/fx/layout_attributes&quot;),a=t(&quot;./scene&quot;),o=t(&quot;../get_data&quot;).getSubplotData,s=t(&quot;../../lib&quot;),l=t(&quot;../../constants/xmlns_namespaces&quot;);r.name=&quot;gl3d&quot;,r.attr=&quot;scene&quot;,r.idRoot=&quot;scene&quot;,r.idRegex=r.attrRegex=s.counterRegex(&quot;scene&quot;),r.attributes=t(&quot;./layout/attributes&quot;),r.layoutAttributes=t(&quot;./layout/layout_attributes&quot;),r.baseLayoutAttrOverrides=n({hoverlabel:i.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.supplyLayoutDefaults=t(&quot;./layout/defaults&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t._fullData,n=e._subplots.gl3d,i=0;i&lt;n.length;i++){var s=n[i],l=o(r,&quot;gl3d&quot;,s),c=e[s],u=c.camera,f=c._scene;f||(f=new a({id:s,graphDiv:t,container:t.querySelector(&quot;.gl-container&quot;),staticPlot:t._context.staticPlot,plotGlPixelRatio:t._context.plotGlPixelRatio,camera:u},e),c._scene=f),f.viewInitial||(f.viewInitial={up:{x:u.up.x,y:u.up.y,z:u.up.z},eye:{x:u.eye.x,y:u.eye.y,z:u.eye.z},center:{x:u.center.x,y:u.center.y,z:u.center.z}}),f.plot(l,e,t.layout)}},r.clean=function(t,e,r,n){for(var i=n._subplots.gl3d||[],a=0;a&lt;i.length;a++){var o=i[a];!e[o]&amp;&amp;n[o]._scene&amp;&amp;(n[o]._scene.destroy(),n._infolayer&amp;&amp;n._infolayer.selectAll(&quot;.annotation-&quot;+o).remove())}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=e._size,i=0;i&lt;r.length;i++){var a=e[r[i]],o=a.domain,s=a._scene,c=s.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:l.svg,&quot;xlink:href&quot;:c,x:n.l+n.w*o.x[0],y:n.t+n.h*(1-o.y[1]),width:n.w*(o.x[1]-o.x[0]),height:n.h*(o.y[1]-o.y[0]),preserveAspectRatio:&quot;none&quot;}),s.destroy()}},r.cleanId=function(t){if(t.match(/^scene[0-9]*$/)){var e=t.substr(5);return&quot;1&quot;===e&amp;&amp;(e=&quot;&quot;),&quot;scene&quot;+e}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.gl3d,n=0;n&lt;r.length;n++){e[r[n]]._scene.updateFx(e.dragmode,e.hovermode)}}},{&quot;../../components/fx/layout_attributes&quot;:684,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;../get_data&quot;:865,&quot;./layout/attributes&quot;:871,&quot;./layout/defaults&quot;:875,&quot;./layout/layout_attributes&quot;:876,&quot;./scene&quot;:880}],871:[function(t,e,r){&quot;use strict&quot;;e.exports={scene:{valType:&quot;subplotid&quot;,dflt:&quot;scene&quot;,editType:&quot;calc+clearAxisTypes&quot;}}},{}],872:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../components/color&quot;),i=t(&quot;../../cartesian/layout_attributes&quot;),a=t(&quot;../../../lib/extend&quot;).extendFlat,o=t(&quot;../../../plot_api/edit_types&quot;).overrideAll;e.exports=o({visible:i.visible,showspikes:{valType:&quot;boolean&quot;,dflt:!0},spikesides:{valType:&quot;boolean&quot;,dflt:!0},spikethickness:{valType:&quot;number&quot;,min:0,dflt:2},spikecolor:{valType:&quot;color&quot;,dflt:n.defaultLine},showbackground:{valType:&quot;boolean&quot;,dflt:!1},backgroundcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(204, 204, 204, 0.5)&quot;},showaxeslabels:{valType:&quot;boolean&quot;,dflt:!0},color:i.color,categoryorder:i.categoryorder,categoryarray:i.categoryarray,title:{text:i.title.text,font:i.title.font},type:a({},i.type,{values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;]}),autotypenumbers:i.autotypenumbers,autorange:i.autorange,rangemode:i.rangemode,range:a({},i.range,{items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],anim:!1}),tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,mirror:i.mirror,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,tickfont:i.tickfont,tickangle:i.tickangle,tickprefix:i.tickprefix,showtickprefix:i.showtickprefix,ticksuffix:i.ticksuffix,showticksuffix:i.showticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickformat:i.tickformat,tickformatstops:i.tickformatstops,hoverformat:i.hoverformat,showline:i.showline,linecolor:i.linecolor,linewidth:i.linewidth,showgrid:i.showgrid,gridcolor:a({},i.gridcolor,{dflt:&quot;rgb(204, 204, 204)&quot;}),gridwidth:i.gridwidth,zeroline:i.zeroline,zerolinecolor:i.zerolinecolor,zerolinewidth:i.zerolinewidth,_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}},&quot;plot&quot;,&quot;from-root&quot;)},{&quot;../../../components/color&quot;:643,&quot;../../../lib/extend&quot;:768,&quot;../../../plot_api/edit_types&quot;:810,&quot;../../cartesian/layout_attributes&quot;:842}],873:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;tinycolor2&quot;).mix,i=t(&quot;../../../lib&quot;),a=t(&quot;../../../plot_api/plot_template&quot;),o=t(&quot;./axis_attributes&quot;),s=t(&quot;../../cartesian/type_defaults&quot;),l=t(&quot;../../cartesian/axis_defaults&quot;),c=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];e.exports=function(t,e,r){var u,f;function h(t,e){return i.coerce(u,f,o,t,e)}for(var p=0;p&lt;c.length;p++){var d=c[p];u=t[d]||{},(f=a.newContainer(e,d))._id=d[0]+r.scene,f._name=d,s(u,f,h,r),l(u,f,h,{font:r.font,letter:d[0],data:r.data,showGrid:!0,noTickson:!0,noTicklabelmode:!0,noTicklabelposition:!0,bgColor:r.bgColor,calendar:r.calendar},r.fullLayout),h(&quot;gridcolor&quot;,n(f.color,r.bgColor,13600/187).toRgbString()),h(&quot;title.text&quot;,d[0]),f.setScale=i.noop,h(&quot;showspikes&quot;)&amp;&amp;(h(&quot;spikesides&quot;),h(&quot;spikethickness&quot;),h(&quot;spikecolor&quot;,f.color)),h(&quot;showaxeslabels&quot;),h(&quot;showbackground&quot;)&amp;&amp;h(&quot;backgroundcolor&quot;)}}},{&quot;../../../lib&quot;:778,&quot;../../../plot_api/plot_template&quot;:817,&quot;../../cartesian/axis_defaults&quot;:830,&quot;../../cartesian/type_defaults&quot;:853,&quot;./axis_attributes&quot;:872,tinycolor2:576}],874:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib/str2rgbarray&quot;),i=t(&quot;../../../lib&quot;),a=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function o(){this.bounds=[[-10,-10,-10],[10,10,10]],this.ticks=[[],[],[]],this.tickEnable=[!0,!0,!0],this.tickFont=[&quot;sans-serif&quot;,&quot;sans-serif&quot;,&quot;sans-serif&quot;],this.tickSize=[12,12,12],this.tickAngle=[0,0,0],this.tickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.tickPad=[18,18,18],this.labels=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],this.labelEnable=[!0,!0,!0],this.labelFont=[&quot;Open Sans&quot;,&quot;Open Sans&quot;,&quot;Open Sans&quot;],this.labelSize=[20,20,20],this.labelColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.labelPad=[30,30,30],this.lineEnable=[!0,!0,!0],this.lineMirror=[!1,!1,!1],this.lineWidth=[1,1,1],this.lineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.lineTickEnable=[!0,!0,!0],this.lineTickMirror=[!1,!1,!1],this.lineTickLength=[10,10,10],this.lineTickWidth=[1,1,1],this.lineTickColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.gridEnable=[!0,!0,!0],this.gridWidth=[1,1,1],this.gridColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroEnable=[!0,!0,!0],this.zeroLineColor=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.zeroLineWidth=[2,2,2],this.backgroundEnable=[!0,!0,!0],this.backgroundColor=[[.8,.8,.8,.5],[.8,.8,.8,.5],[.8,.8,.8,.5]],this._defaultTickPad=this.tickPad.slice(),this._defaultLabelPad=this.labelPad.slice(),this._defaultLineTickLength=this.lineTickLength.slice()}o.prototype.merge=function(t,e){for(var r=0;r&lt;3;++r){var o=e[a[r]];o.visible?(this.labels[r]=t._meta?i.templateString(o.title.text,t._meta):o.title.text,&quot;font&quot;in o.title&amp;&amp;(o.title.font.color&amp;&amp;(this.labelColor[r]=n(o.title.font.color)),o.title.font.family&amp;&amp;(this.labelFont[r]=o.title.font.family),o.title.font.size&amp;&amp;(this.labelSize[r]=o.title.font.size)),&quot;showline&quot;in o&amp;&amp;(this.lineEnable[r]=o.showline),&quot;linecolor&quot;in o&amp;&amp;(this.lineColor[r]=n(o.linecolor)),&quot;linewidth&quot;in o&amp;&amp;(this.lineWidth[r]=o.linewidth),&quot;showgrid&quot;in o&amp;&amp;(this.gridEnable[r]=o.showgrid),&quot;gridcolor&quot;in o&amp;&amp;(this.gridColor[r]=n(o.gridcolor)),&quot;gridwidth&quot;in o&amp;&amp;(this.gridWidth[r]=o.gridwidth),&quot;log&quot;===o.type?this.zeroEnable[r]=!1:&quot;zeroline&quot;in o&amp;&amp;(this.zeroEnable[r]=o.zeroline),&quot;zerolinecolor&quot;in o&amp;&amp;(this.zeroLineColor[r]=n(o.zerolinecolor)),&quot;zerolinewidth&quot;in o&amp;&amp;(this.zeroLineWidth[r]=o.zerolinewidth),&quot;ticks&quot;in o&amp;&amp;o.ticks?this.lineTickEnable[r]=!0:this.lineTickEnable[r]=!1,&quot;ticklen&quot;in o&amp;&amp;(this.lineTickLength[r]=this._defaultLineTickLength[r]=o.ticklen),&quot;tickcolor&quot;in o&amp;&amp;(this.lineTickColor[r]=n(o.tickcolor)),&quot;tickwidth&quot;in o&amp;&amp;(this.lineTickWidth[r]=o.tickwidth),&quot;tickangle&quot;in o&amp;&amp;(this.tickAngle[r]=&quot;auto&quot;===o.tickangle?-3600:Math.PI*-o.tickangle/180),&quot;showticklabels&quot;in o&amp;&amp;(this.tickEnable[r]=o.showticklabels),&quot;tickfont&quot;in o&amp;&amp;(o.tickfont.color&amp;&amp;(this.tickColor[r]=n(o.tickfont.color)),o.tickfont.family&amp;&amp;(this.tickFont[r]=o.tickfont.family),o.tickfont.size&amp;&amp;(this.tickSize[r]=o.tickfont.size)),&quot;mirror&quot;in o?-1!==[&quot;ticks&quot;,&quot;all&quot;,&quot;allticks&quot;].indexOf(o.mirror)?(this.lineTickMirror[r]=!0,this.lineMirror[r]=!0):!0===o.mirror?(this.lineTickMirror[r]=!1,this.lineMirror[r]=!0):(this.lineTickMirror[r]=!1,this.lineMirror[r]=!1):this.lineMirror[r]=!1,&quot;showbackground&quot;in o&amp;&amp;!1!==o.showbackground?(this.backgroundEnable[r]=!0,this.backgroundColor[r]=n(o.backgroundcolor)):this.backgroundEnable[r]=!1):(this.tickEnable[r]=!1,this.labelEnable[r]=!1,this.lineEnable[r]=!1,this.lineTickEnable[r]=!1,this.gridEnable[r]=!1,this.zeroEnable[r]=!1,this.backgroundEnable[r]=!1)}},e.exports=function(t,e){var r=new o;return r.merge(t,e),r}},{&quot;../../../lib&quot;:778,&quot;../../../lib/str2rgbarray&quot;:802}],875:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib&quot;),i=t(&quot;../../../components/color&quot;),a=t(&quot;../../../registry&quot;),o=t(&quot;../../subplot_defaults&quot;),s=t(&quot;./axis_defaults&quot;),l=t(&quot;./layout_attributes&quot;),c=t(&quot;../../get_data&quot;).getSubplotData;function u(t,e,r,n){for(var o=r(&quot;bgcolor&quot;),l=i.combine(o,n.paper_bgcolor),u=[&quot;up&quot;,&quot;center&quot;,&quot;eye&quot;],f=0;f&lt;u.length;f++)r(&quot;camera.&quot;+u[f]+&quot;.x&quot;),r(&quot;camera.&quot;+u[f]+&quot;.y&quot;),r(&quot;camera.&quot;+u[f]+&quot;.z&quot;);r(&quot;camera.projection.type&quot;);var h=!!r(&quot;aspectratio.x&quot;)&amp;&amp;!!r(&quot;aspectratio.y&quot;)&amp;&amp;!!r(&quot;aspectratio.z&quot;),p=r(&quot;aspectmode&quot;,h?&quot;manual&quot;:&quot;auto&quot;);h||(t.aspectratio=e.aspectratio={x:1,y:1,z:1},&quot;manual&quot;===p&amp;&amp;(e.aspectmode=&quot;auto&quot;),t.aspectmode=e.aspectmode);var d=c(n.fullData,&quot;gl3d&quot;,n.id);s(t,e,{font:n.font,scene:n.id,data:d,bgColor:l,calendar:n.calendar,autotypenumbersDflt:n.autotypenumbersDflt,fullLayout:n.fullLayout}),a.getComponentMethod(&quot;annotations3d&quot;,&quot;handleDefaults&quot;)(t,e,n);var g=n.getDfltFromLayout(&quot;dragmode&quot;);if(!1!==g&amp;&amp;!g)if(g=&quot;orbit&quot;,t.camera&amp;&amp;t.camera.up){var m=t.camera.up.x,v=t.camera.up.y,y=t.camera.up.z;0!==y&amp;&amp;(m&amp;&amp;v&amp;&amp;y?y/Math.sqrt(m*m+v*v+y*y)&gt;.999&amp;&amp;(g=&quot;turntable&quot;):g=&quot;turntable&quot;)}else g=&quot;turntable&quot;;r(&quot;dragmode&quot;,g),r(&quot;hovermode&quot;,n.getDfltFromLayout(&quot;hovermode&quot;))}e.exports=function(t,e,r){var i=e._basePlotModules.length&gt;1;o(t,e,r,{type:&quot;gl3d&quot;,attributes:l,handleDefaults:u,fullLayout:e,font:e.font,fullData:r,getDfltFromLayout:function(e){if(!i)return n.validate(t[e],l[e])?t[e]:void 0},autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,calendar:e.calendar})}},{&quot;../../../components/color&quot;:643,&quot;../../../lib&quot;:778,&quot;../../../registry&quot;:911,&quot;../../get_data&quot;:865,&quot;../../subplot_defaults&quot;:905,&quot;./axis_defaults&quot;:873,&quot;./layout_attributes&quot;:876}],876:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./axis_attributes&quot;),i=t(&quot;../../domain&quot;).attributes,a=t(&quot;../../../lib/extend&quot;).extendFlat,o=t(&quot;../../../lib&quot;).counterRegex;function s(t,e,r){return{x:{valType:&quot;number&quot;,dflt:t,editType:&quot;camera&quot;},y:{valType:&quot;number&quot;,dflt:e,editType:&quot;camera&quot;},z:{valType:&quot;number&quot;,dflt:r,editType:&quot;camera&quot;},editType:&quot;camera&quot;}}e.exports={_arrayAttrRegexps:[o(&quot;scene&quot;,&quot;.annotations&quot;,!0)],bgcolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0,0,0,0)&quot;,editType:&quot;plot&quot;},camera:{up:a(s(0,0,1),{}),center:a(s(0,0,0),{}),eye:a(s(1.25,1.25,1.25),{}),projection:{type:{valType:&quot;enumerated&quot;,values:[&quot;perspective&quot;,&quot;orthographic&quot;],dflt:&quot;perspective&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;camera&quot;},domain:i({name:&quot;scene&quot;,editType:&quot;plot&quot;}),aspectmode:{valType:&quot;enumerated&quot;,values:[&quot;auto&quot;,&quot;cube&quot;,&quot;data&quot;,&quot;manual&quot;],dflt:&quot;auto&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;aspectratio.x&quot;:void 0,&quot;aspectratio.y&quot;:void 0,&quot;aspectratio.z&quot;:void 0}},aspectratio:{x:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},y:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},z:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^aspectmode&quot;:&quot;manual&quot;}},editType:&quot;plot&quot;,impliedEdits:{aspectmode:&quot;manual&quot;}},xaxis:n,yaxis:n,zaxis:n,dragmode:{valType:&quot;enumerated&quot;,values:[&quot;orbit&quot;,&quot;turntable&quot;,&quot;zoom&quot;,&quot;pan&quot;,!1],editType:&quot;plot&quot;},hovermode:{valType:&quot;enumerated&quot;,values:[&quot;closest&quot;,!1],dflt:&quot;closest&quot;,editType:&quot;modebar&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;plot&quot;,_deprecated:{cameraposition:{valType:&quot;info_array&quot;,editType:&quot;camera&quot;}}}},{&quot;../../../lib&quot;:778,&quot;../../../lib/extend&quot;:768,&quot;../../domain&quot;:855,&quot;./axis_attributes&quot;:872}],877:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../lib/str2rgbarray&quot;),i=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function a(){this.enabled=[!0,!0,!0],this.colors=[[0,0,0,1],[0,0,0,1],[0,0,0,1]],this.drawSides=[!0,!0,!0],this.lineWidth=[1,1,1]}a.prototype.merge=function(t){for(var e=0;e&lt;3;++e){var r=t[i[e]];r.visible?(this.enabled[e]=r.showspikes,this.colors[e]=n(r.spikecolor),this.drawSides[e]=r.spikesides,this.lineWidth[e]=r.spikethickness):(this.enabled[e]=!1,this.drawSides[e]=!1)}},e.exports=function(t){var e=new a;return e.merge(t),e}},{&quot;../../../lib/str2rgbarray&quot;:802}],878:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=t.axesOptions,r=t.glplot.axesPixels,s=t.fullSceneLayout,l=[[],[],[]],c=0;c&lt;3;++c){var u=s[a[c]];if(u._length=(r[c].hi-r[c].lo)*r[c].pixelsPerDataUnit/t.dataScale[c],Math.abs(u._length)===1/0||isNaN(u._length))l[c]=[];else{u._input_range=u.range.slice(),u.range[0]=r[c].lo/t.dataScale[c],u.range[1]=r[c].hi/t.dataScale[c],u._m=1/(t.dataScale[c]*r[c].pixelsPerDataUnit),u.range[0]===u.range[1]&amp;&amp;(u.range[0]-=1,u.range[1]+=1);var f=u.tickmode;if(&quot;auto&quot;===u.tickmode){u.tickmode=&quot;linear&quot;;var h=u.nticks||i.constrain(u._length/40,4,9);n.autoTicks(u,Math.abs(u.range[1]-u.range[0])/h)}for(var p=n.calcTicks(u,{msUTC:!0}),d=0;d&lt;p.length;++d)p[d].x=p[d].x*t.dataScale[c],&quot;date&quot;===u.type&amp;&amp;(p[d].text=p[d].text.replace(/\&lt;br\&gt;/g,&quot; &quot;));l[c]=p,u.tickmode=f}}e.ticks=l;for(c=0;c&lt;3;++c){o[c]=.5*(t.glplot.bounds[0][c]+t.glplot.bounds[1][c]);for(d=0;d&lt;2;++d)e.bounds[d][c]=t.glplot.bounds[d][c]}t.contourLevels=function(t){for(var e=new Array(3),r=0;r&lt;3;++r){for(var n=t[r],i=new Array(n.length),a=0;a&lt;n.length;++a)i[a]=n[a].x;e[r]=i}return e}(l)};var n=t(&quot;../../cartesian/axes&quot;),i=t(&quot;../../../lib&quot;),a=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;],o=[0,0,0]},{&quot;../../../lib&quot;:778,&quot;../../cartesian/axes&quot;:828}],879:[function(t,e,r){&quot;use strict&quot;;function n(t,e){var r,n,i=[0,0,0,0];for(r=0;r&lt;4;++r)for(n=0;n&lt;4;++n)i[n]+=t[4*r+n]*e[r];return i}e.exports=function(t,e){return n(t.projection,n(t.view,n(t.model,[e[0],e[1],e[2],1])))}},{}],880:[function(t,e,r){&quot;use strict&quot;;var n,i,a=t(&quot;gl-plot3d&quot;),o=a.createCamera,s=a.createScene,l=t(&quot;webgl-context&quot;),c=t(&quot;has-passive-events&quot;),u=t(&quot;../../registry&quot;),f=t(&quot;../../lib&quot;),h=f.preserveDrawingBuffer(),p=t(&quot;../../plots/cartesian/axes&quot;),d=t(&quot;../../components/fx&quot;),g=t(&quot;../../lib/str2rgbarray&quot;),m=t(&quot;../../lib/show_no_webgl_msg&quot;),v=t(&quot;./project&quot;),y=t(&quot;./layout/convert&quot;),x=t(&quot;./layout/spikes&quot;),b=t(&quot;./layout/tick_marks&quot;);function _(t,e){var r=document.createElement(&quot;div&quot;),n=t.container;this.graphDiv=t.graphDiv;var i=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;svg&quot;);i.style.position=&quot;absolute&quot;,i.style.top=i.style.left=&quot;0px&quot;,i.style.width=i.style.height=&quot;100%&quot;,i.style[&quot;z-index&quot;]=20,i.style[&quot;pointer-events&quot;]=&quot;none&quot;,r.appendChild(i),this.svgContainer=i,r.id=t.id,r.style.position=&quot;absolute&quot;,r.style.top=r.style.left=&quot;0px&quot;,r.style.width=r.style.height=&quot;100%&quot;,n.appendChild(r),this.fullLayout=e,this.id=t.id||&quot;scene&quot;,this.fullSceneLayout=e[this.id],this.plotArgs=[[],{},{}],this.axesOptions=y(e,e[this.id]),this.spikeOptions=x(e[this.id]),this.container=r,this.staticMode=!!t.staticPlot,this.pixelRatio=this.pixelRatio||t.plotGlPixelRatio||2,this.dataScale=[1,1,1],this.contourLevels=[[],[],[]],this.convertAnnotations=u.getComponentMethod(&quot;annotations3d&quot;,&quot;convert&quot;),this.drawAnnotations=u.getComponentMethod(&quot;annotations3d&quot;,&quot;draw&quot;),this.initializeGLPlot()}var w=_.prototype;w.prepareOptions=function(){var t={canvas:this.canvas,gl:this.gl,glOptions:{preserveDrawingBuffer:h,premultipliedAlpha:!0,antialias:!0},container:this.container,axes:this.axesOptions,spikes:this.spikeOptions,pickRadius:10,snapToData:!0,autoScale:!0,autoBounds:!1,cameraObject:this.camera,pixelRatio:this.pixelRatio};if(this.staticMode){if(!(i||(n=document.createElement(&quot;canvas&quot;),i=l({canvas:n,preserveDrawingBuffer:!0,premultipliedAlpha:!0,antialias:!0}))))throw new Error(&quot;error creating static canvas/context for image server&quot;);t.gl=i,t.canvas=n}return t};var T=!0;w.tryCreatePlot=function(){var t=this.prepareOptions(),e=!0;try{this.glplot=s(t)}catch(r){if(this.staticMode||!T||h)e=!1;else{f.warn([&quot;webgl setup failed possibly due to&quot;,&quot;false preserveDrawingBuffer config.&quot;,&quot;The mobile/tablet device may not be detected by is-mobile module.&quot;,&quot;Enabling preserveDrawingBuffer in second attempt to create webgl scene...&quot;].join(&quot; &quot;));try{h=t.glOptions.preserveDrawingBuffer=!0,this.glplot=s(t)}catch(r){h=t.glOptions.preserveDrawingBuffer=!1,e=!1}}}return T=!1,e},w.initializeGLCamera=function(){var t=this.fullSceneLayout.camera,e=&quot;orthographic&quot;===t.projection.type;this.camera=o(this.container,{center:[t.center.x,t.center.y,t.center.z],eye:[t.eye.x,t.eye.y,t.eye.z],up:[t.up.x,t.up.y,t.up.z],_ortho:e,zoomMin:.01,zoomMax:100,mode:&quot;orbit&quot;})},w.initializeGLPlot=function(){var t=this;if(t.initializeGLCamera(),!t.tryCreatePlot())return m(t);t.traces={},t.make4thDimension();var e=t.graphDiv,r=e.layout,n=function(){var e={};return t.isCameraChanged(r)&amp;&amp;(e[t.id+&quot;.camera&quot;]=t.getCamera()),t.isAspectChanged(r)&amp;&amp;(e[t.id+&quot;.aspectratio&quot;]=t.glplot.getAspectratio(),&quot;manual&quot;!==r[t.id].aspectmode&amp;&amp;(t.fullSceneLayout.aspectmode=r[t.id].aspectmode=e[t.id+&quot;.aspectmode&quot;]=&quot;manual&quot;)),e},i=function(t){if(!1!==t.fullSceneLayout.dragmode){var e=n();t.saveLayout(r),t.graphDiv.emit(&quot;plotly_relayout&quot;,e)}};return t.glplot.canvas&amp;&amp;(t.glplot.canvas.addEventListener(&quot;mouseup&quot;,(function(){i(t)})),t.glplot.canvas.addEventListener(&quot;wheel&quot;,(function(r){if(e._context._scrollZoom.gl3d){if(t.camera._ortho){var n=r.deltaX&gt;r.deltaY?1.1:1/1.1,a=t.glplot.getAspectratio();t.glplot.setAspectratio({x:n*a.x,y:n*a.y,z:n*a.z})}i(t)}}),!!c&amp;&amp;{passive:!1}),t.glplot.canvas.addEventListener(&quot;mousemove&quot;,(function(){if(!1!==t.fullSceneLayout.dragmode&amp;&amp;0!==t.camera.mouseListener.buttons){var e=n();t.graphDiv.emit(&quot;plotly_relayouting&quot;,e)}})),t.staticMode||t.glplot.canvas.addEventListener(&quot;webglcontextlost&quot;,(function(r){e&amp;&amp;e.emit&amp;&amp;e.emit(&quot;plotly_webglcontextlost&quot;,{event:r,layer:t.id})}),!1)),t.glplot.oncontextloss=function(){t.recoverContext()},t.glplot.onrender=function(){t.render()},!0},w.render=function(){var t,e=this,r=e.graphDiv,n=e.svgContainer,i=e.container.getBoundingClientRect();r._fullLayout._calcInverseTransform(r);var a=r._fullLayout._invScaleX,o=r._fullLayout._invScaleY,s=i.width*a,l=i.height*o;n.setAttributeNS(null,&quot;viewBox&quot;,&quot;0 0 &quot;+s+&quot; &quot;+l),n.setAttributeNS(null,&quot;width&quot;,s),n.setAttributeNS(null,&quot;height&quot;,l),b(e),e.glplot.axes.update(e.axesOptions);for(var c,u=Object.keys(e.traces),h=null,g=e.glplot.selection,m=0;m&lt;u.length;++m)&quot;skip&quot;!==(t=e.traces[u[m]]).data.hoverinfo&amp;&amp;t.handlePick(g)&amp;&amp;(h=t),t.setContourLevels&amp;&amp;t.setContourLevels();function y(t,r){var n=e.fullSceneLayout[t];return p.tickText(n,n.d2l(r),&quot;hover&quot;).text}if(null!==h){var x=v(e.glplot.cameraParams,g.dataCoordinate);t=h.data;var _,w=r._fullData[t.index],T=g.index,k={xLabel:y(&quot;xaxis&quot;,g.traceCoordinate[0]),yLabel:y(&quot;yaxis&quot;,g.traceCoordinate[1]),zLabel:y(&quot;zaxis&quot;,g.traceCoordinate[2])},M=d.castHoverinfo(w,e.fullLayout,T),A=(M||&quot;&quot;).split(&quot;+&quot;),S=M&amp;&amp;&quot;all&quot;===M;w.hovertemplate||S||(-1===A.indexOf(&quot;x&quot;)&amp;&amp;(k.xLabel=void 0),-1===A.indexOf(&quot;y&quot;)&amp;&amp;(k.yLabel=void 0),-1===A.indexOf(&quot;z&quot;)&amp;&amp;(k.zLabel=void 0),-1===A.indexOf(&quot;text&quot;)&amp;&amp;(g.textLabel=void 0),-1===A.indexOf(&quot;name&quot;)&amp;&amp;(h.name=void 0));var E=[];&quot;cone&quot;===t.type||&quot;streamtube&quot;===t.type?(k.uLabel=y(&quot;xaxis&quot;,g.traceCoordinate[3]),(S||-1!==A.indexOf(&quot;u&quot;))&amp;&amp;E.push(&quot;u: &quot;+k.uLabel),k.vLabel=y(&quot;yaxis&quot;,g.traceCoordinate[4]),(S||-1!==A.indexOf(&quot;v&quot;))&amp;&amp;E.push(&quot;v: &quot;+k.vLabel),k.wLabel=y(&quot;zaxis&quot;,g.traceCoordinate[5]),(S||-1!==A.indexOf(&quot;w&quot;))&amp;&amp;E.push(&quot;w: &quot;+k.wLabel),k.normLabel=g.traceCoordinate[6].toPrecision(3),(S||-1!==A.indexOf(&quot;norm&quot;))&amp;&amp;E.push(&quot;norm: &quot;+k.normLabel),&quot;streamtube&quot;===t.type&amp;&amp;(k.divergenceLabel=g.traceCoordinate[7].toPrecision(3),(S||-1!==A.indexOf(&quot;divergence&quot;))&amp;&amp;E.push(&quot;divergence: &quot;+k.divergenceLabel)),g.textLabel&amp;&amp;E.push(g.textLabel),_=E.join(&quot;&lt;br&gt;&quot;)):&quot;isosurface&quot;===t.type||&quot;volume&quot;===t.type?(k.valueLabel=p.tickText(e._mockAxis,e._mockAxis.d2l(g.traceCoordinate[3]),&quot;hover&quot;).text,E.push(&quot;value: &quot;+k.valueLabel),g.textLabel&amp;&amp;E.push(g.textLabel),_=E.join(&quot;&lt;br&gt;&quot;)):_=g.textLabel;var C={x:g.traceCoordinate[0],y:g.traceCoordinate[1],z:g.traceCoordinate[2],data:w._input,fullData:w,curveNumber:w.index,pointNumber:T};d.appendArrayPointValue(C,w,T),t._module.eventData&amp;&amp;(C=w._module.eventData(C,g,w,{},T));var L={points:[C]};e.fullSceneLayout.hovermode&amp;&amp;d.loneHover({trace:w,x:(.5+.5*x[0]/x[3])*s,y:(.5-.5*x[1]/x[3])*l,xLabel:k.xLabel,yLabel:k.yLabel,zLabel:k.zLabel,text:_,name:h.name,color:d.castHoverOption(w,T,&quot;bgcolor&quot;)||h.color,borderColor:d.castHoverOption(w,T,&quot;bordercolor&quot;),fontFamily:d.castHoverOption(w,T,&quot;font.family&quot;),fontSize:d.castHoverOption(w,T,&quot;font.size&quot;),fontColor:d.castHoverOption(w,T,&quot;font.color&quot;),nameLength:d.castHoverOption(w,T,&quot;namelength&quot;),textAlign:d.castHoverOption(w,T,&quot;align&quot;),hovertemplate:f.castOption(w,T,&quot;hovertemplate&quot;),hovertemplateLabels:f.extendFlat({},C,k),eventData:[C]},{container:n,gd:r}),g.buttons&amp;&amp;g.distance&lt;5?r.emit(&quot;plotly_click&quot;,L):r.emit(&quot;plotly_hover&quot;,L),c=L}else d.loneUnhover(n),r.emit(&quot;plotly_unhover&quot;,c);e.drawAnnotations(e)},w.recoverContext=function(){var t=this;t.glplot.dispose();var e=function(){t.glplot.gl.isContextLost()?requestAnimationFrame(e):t.initializeGLPlot()?t.plot.apply(t,t.plotArgs):f.error(&quot;Catastrophic and unrecoverable WebGL error. Context lost.&quot;)};requestAnimationFrame(e)};var k=[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;];function M(t,e,r){for(var n=t.fullSceneLayout,i=0;i&lt;3;i++){var a=k[i],o=a.charAt(0),s=n[a],l=e[o],c=e[o+&quot;calendar&quot;],u=e[&quot;_&quot;+o+&quot;length&quot;];if(f.isArrayOrTypedArray(l))for(var h,p=0;p&lt;(u||l.length);p++)if(f.isArrayOrTypedArray(l[p]))for(var d=0;d&lt;l[p].length;++d)h=s.d2l(l[p][d],0,c),!isNaN(h)&amp;&amp;isFinite(h)&amp;&amp;(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else h=s.d2l(l[p],0,c),!isNaN(h)&amp;&amp;isFinite(h)&amp;&amp;(r[0][i]=Math.min(r[0][i],h),r[1][i]=Math.max(r[1][i],h));else r[0][i]=Math.min(r[0][i],0),r[1][i]=Math.max(r[1][i],u-1)}}w.plot=function(t,e,r){if(this.plotArgs=[t,e,r],!this.glplot.contextLost){var n,i,a,o,s,l,c=e[this.id],u=r[this.id];this.fullLayout=e,this.fullSceneLayout=c,this.axesOptions.merge(e,c),this.spikeOptions.merge(c),this.setViewport(c),this.updateFx(c.dragmode,c.hovermode),this.camera.enableWheel=this.graphDiv._context._scrollZoom.gl3d,this.glplot.setClearColor(g(c.bgcolor)),this.setConvert(s),t?Array.isArray(t)||(t=[t]):t=[];var f=[[1/0,1/0,1/0],[-1/0,-1/0,-1/0]];for(a=0;a&lt;t.length;++a)!0===(n=t[a]).visible&amp;&amp;0!==n._length&amp;&amp;M(this,n,f);!function(t,e){for(var r=t.fullSceneLayout,n=r.annotations||[],i=0;i&lt;3;i++)for(var a=k[i],o=a.charAt(0),s=r[a],l=0;l&lt;n.length;l++){var c=n[l];if(c.visible){var u=s.r2l(c[o]);!isNaN(u)&amp;&amp;isFinite(u)&amp;&amp;(e[0][i]=Math.min(e[0][i],u),e[1][i]=Math.max(e[1][i],u))}}}(this,f);var h=[1,1,1];for(o=0;o&lt;3;++o)f[1][o]===f[0][o]?h[o]=1:h[o]=1/(f[1][o]-f[0][o]);for(this.dataScale=h,this.convertAnnotations(this),a=0;a&lt;t.length;++a)!0===(n=t[a]).visible&amp;&amp;0!==n._length&amp;&amp;((i=this.traces[n.uid])?i.data.type===n.type?i.update(n):(i.dispose(),i=n._module.plot(this,n),this.traces[n.uid]=i):(i=n._module.plot(this,n),this.traces[n.uid]=i),i.name=n.name);var p=Object.keys(this.traces);t:for(a=0;a&lt;p.length;++a){for(o=0;o&lt;t.length;++o)if(t[o].uid===p[a]&amp;&amp;!0===t[o].visible&amp;&amp;0!==t[o]._length)continue t;(i=this.traces[p[a]]).dispose(),delete this.traces[p[a]]}this.glplot.objects.sort((function(t,e){return t._trace.data.index-e._trace.data.index}));var d,m=[[0,0,0],[0,0,0]],v=[],y={};for(a=0;a&lt;3;++a){if((l=(s=c[k[a]]).type)in y?(y[l].acc*=h[a],y[l].count+=1):y[l]={acc:h[a],count:1},s.autorange){m[0][a]=1/0,m[1][a]=-1/0;var x=this.glplot.objects,b=this.fullSceneLayout.annotations||[],_=s._name.charAt(0);for(o=0;o&lt;x.length;o++){var w=x[o],T=w.bounds,A=w._trace.data._pad||0;&quot;ErrorBars&quot;===w.constructor.name&amp;&amp;s._lowerLogErrorBound?m[0][a]=Math.min(m[0][a],s._lowerLogErrorBound):m[0][a]=Math.min(m[0][a],T[0][a]/h[a]-A),m[1][a]=Math.max(m[1][a],T[1][a]/h[a]+A)}for(o=0;o&lt;b.length;o++){var S=b[o];if(S.visible){var E=s.r2l(S[_]);m[0][a]=Math.min(m[0][a],E),m[1][a]=Math.max(m[1][a],E)}}if(&quot;rangemode&quot;in s&amp;&amp;&quot;tozero&quot;===s.rangemode&amp;&amp;(m[0][a]=Math.min(m[0][a],0),m[1][a]=Math.max(m[1][a],0)),m[0][a]&gt;m[1][a])m[0][a]=-1,m[1][a]=1;else{var C=m[1][a]-m[0][a];m[0][a]-=C/32,m[1][a]+=C/32}if(&quot;reversed&quot;===s.autorange){var L=m[0][a];m[0][a]=m[1][a],m[1][a]=L}}else{var I=s.range;m[0][a]=s.r2l(I[0]),m[1][a]=s.r2l(I[1])}m[0][a]===m[1][a]&amp;&amp;(m[0][a]-=1,m[1][a]+=1),v[a]=m[1][a]-m[0][a],this.glplot.setBounds(a,{min:m[0][a]*h[a],max:m[1][a]*h[a]})}var P=c.aspectmode;if(&quot;cube&quot;===P)d=[1,1,1];else if(&quot;manual&quot;===P){var z=c.aspectratio;d=[z.x,z.y,z.z]}else{if(&quot;auto&quot;!==P&amp;&amp;&quot;data&quot;!==P)throw new Error(&quot;scene.js aspectRatio was not one of the enumerated types&quot;);var O=[1,1,1];for(a=0;a&lt;3;++a){var D=y[l=(s=c[k[a]]).type];O[a]=Math.pow(D.acc,1/D.count)/h[a]}d=&quot;data&quot;===P||Math.max.apply(null,O)/Math.min.apply(null,O)&lt;=4?O:[1,1,1]}c.aspectratio.x=u.aspectratio.x=d[0],c.aspectratio.y=u.aspectratio.y=d[1],c.aspectratio.z=u.aspectratio.z=d[2],this.glplot.setAspectratio(c.aspectratio),this.viewInitial.aspectratio||(this.viewInitial.aspectratio={x:c.aspectratio.x,y:c.aspectratio.y,z:c.aspectratio.z}),this.viewInitial.aspectmode||(this.viewInitial.aspectmode=c.aspectmode);var R=c.domain||null,F=e._size||null;if(R&amp;&amp;F){var B=this.container.style;B.position=&quot;absolute&quot;,B.left=F.l+R.x[0]*F.w+&quot;px&quot;,B.top=F.t+(1-R.y[1])*F.h+&quot;px&quot;,B.width=F.w*(R.x[1]-R.x[0])+&quot;px&quot;,B.height=F.h*(R.y[1]-R.y[0])+&quot;px&quot;}this.glplot.redraw()}},w.destroy=function(){this.glplot&amp;&amp;(this.camera.mouseListener.enabled=!1,this.container.removeEventListener(&quot;wheel&quot;,this.camera.wheelListener),this.camera=null,this.glplot.dispose(),this.container.parentNode.removeChild(this.container),this.glplot=null)},w.getCamera=function(){var t;return this.camera.view.recalcMatrix(this.camera.view.lastT()),{up:{x:(t=this.camera).up[0],y:t.up[1],z:t.up[2]},center:{x:t.center[0],y:t.center[1],z:t.center[2]},eye:{x:t.eye[0],y:t.eye[1],z:t.eye[2]},projection:{type:!0===t._ortho?&quot;orthographic&quot;:&quot;perspective&quot;}}},w.setViewport=function(t){var e,r=t.camera;this.camera.lookAt.apply(this,[[(e=r).eye.x,e.eye.y,e.eye.z],[e.center.x,e.center.y,e.center.z],[e.up.x,e.up.y,e.up.z]]),this.glplot.setAspectratio(t.aspectratio),&quot;orthographic&quot;===r.projection.type!==this.camera._ortho&amp;&amp;(this.glplot.redraw(),this.glplot.clearRGBA(),this.glplot.dispose(),this.initializeGLPlot())},w.isCameraChanged=function(t){var e=this.getCamera(),r=f.nestedProperty(t,this.id+&quot;.camera&quot;).get();function n(t,e,r,n){var i=[&quot;up&quot;,&quot;center&quot;,&quot;eye&quot;],a=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];return e[i[r]]&amp;&amp;t[i[r]][a[n]]===e[i[r]][a[n]]}var i=!1;if(void 0===r)i=!0;else{for(var a=0;a&lt;3;a++)for(var o=0;o&lt;3;o++)if(!n(e,r,a,o)){i=!0;break}(!r.projection||e.projection&amp;&amp;e.projection.type!==r.projection.type)&amp;&amp;(i=!0)}return i},w.isAspectChanged=function(t){var e=this.glplot.getAspectratio(),r=f.nestedProperty(t,this.id+&quot;.aspectratio&quot;).get();return void 0===r||r.x!==e.x||r.y!==e.y||r.z!==e.z},w.saveLayout=function(t){var e,r,n,i,a,o,s=this.fullLayout,l=this.isCameraChanged(t),c=this.isAspectChanged(t),h=l||c;if(h){var p={};if(l&amp;&amp;(e=this.getCamera(),n=(r=f.nestedProperty(t,this.id+&quot;.camera&quot;)).get(),p[this.id+&quot;.camera&quot;]=n),c&amp;&amp;(i=this.glplot.getAspectratio(),o=(a=f.nestedProperty(t,this.id+&quot;.aspectratio&quot;)).get(),p[this.id+&quot;.aspectratio&quot;]=o),u.call(&quot;_storeDirectGUIEdit&quot;,t,s._preGUI,p),l)r.set(e),f.nestedProperty(s,this.id+&quot;.camera&quot;).set(e);if(c)a.set(i),f.nestedProperty(s,this.id+&quot;.aspectratio&quot;).set(i),this.glplot.redraw()}return h},w.updateFx=function(t,e){var r=this.camera;if(r)if(&quot;orbit&quot;===t)r.mode=&quot;orbit&quot;,r.keyBindingMode=&quot;rotate&quot;;else if(&quot;turntable&quot;===t){r.up=[0,0,1],r.mode=&quot;turntable&quot;,r.keyBindingMode=&quot;rotate&quot;;var n=this.graphDiv,i=n._fullLayout,a=this.fullSceneLayout.camera,o=a.up.x,s=a.up.y,l=a.up.z;if(l/Math.sqrt(o*o+s*s+l*l)&lt;.999){var c=this.id+&quot;.camera.up&quot;,h={x:0,y:0,z:1},p={};p[c]=h;var d=n.layout;u.call(&quot;_storeDirectGUIEdit&quot;,d,i._preGUI,p),a.up=h,f.nestedProperty(d,c).set(h)}}else r.keyBindingMode=t;this.fullSceneLayout.hovermode=e},w.toImage=function(t){t||(t=&quot;png&quot;),this.staticMode&amp;&amp;this.container.appendChild(n),this.glplot.redraw();var e=this.glplot.gl,r=e.drawingBufferWidth,i=e.drawingBufferHeight;e.bindFramebuffer(e.FRAMEBUFFER,null);var a=new Uint8Array(r*i*4);e.readPixels(0,0,r,i,e.RGBA,e.UNSIGNED_BYTE,a),function(t,e,r){for(var n=0,i=r-1;n&lt;i;++n,--i)for(var a=0;a&lt;e;++a)for(var o=0;o&lt;4;++o){var s=4*(e*n+a)+o,l=4*(e*i+a)+o,c=t[s];t[s]=t[l],t[l]=c}}(a,r,i),function(t,e,r){for(var n=0;n&lt;r;++n)for(var i=0;i&lt;e;++i){var a=4*(e*n+i),o=t[a+3];if(o&gt;0)for(var s=255/o,l=0;l&lt;3;++l)t[a+l]=Math.min(s*t[a+l],255)}}(a,r,i);var o=document.createElement(&quot;canvas&quot;);o.width=r,o.height=i;var s,l=o.getContext(&quot;2d&quot;),c=l.createImageData(r,i);switch(c.data.set(a),l.putImageData(c,0,0),t){case&quot;jpeg&quot;:s=o.toDataURL(&quot;image/jpeg&quot;);break;case&quot;webp&quot;:s=o.toDataURL(&quot;image/webp&quot;);break;default:s=o.toDataURL(&quot;image/png&quot;)}return this.staticMode&amp;&amp;this.container.removeChild(n),s},w.setConvert=function(){for(var t=0;t&lt;3;t++){var e=this.fullSceneLayout[k[t]];p.setConvert(e,this.fullLayout),e.setScale=f.noop}},w.make4thDimension=function(){var t=this.graphDiv._fullLayout;this._mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},p.setConvert(this._mockAxis,t)},e.exports=_},{&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/show_no_webgl_msg&quot;:800,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./layout/convert&quot;:874,&quot;./layout/spikes&quot;:877,&quot;./layout/tick_marks&quot;:878,&quot;./project&quot;:879,&quot;gl-plot3d&quot;:321,&quot;has-passive-events&quot;:441,&quot;webgl-context&quot;:606}],881:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){n=n||t.length;for(var i=new Array(n),a=0;a&lt;n;a++)i[a]=[t[a],e[a],r[a]];return i}},{}],882:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./font_attributes&quot;),i=t(&quot;./animation_attributes&quot;),a=t(&quot;../components/color/attributes&quot;),o=t(&quot;../components/shapes/draw_newshape/attributes&quot;),s=t(&quot;./pad_attributes&quot;),l=t(&quot;../lib/extend&quot;).extendFlat,c=n({editType:&quot;calc&quot;});c.family.dflt='&quot;Open Sans&quot;, verdana, arial, sans-serif',c.size.dflt=12,c.color.dflt=a.defaultLine,e.exports={font:c,title:{text:{valType:&quot;string&quot;,editType:&quot;layoutstyle&quot;},font:n({editType:&quot;layoutstyle&quot;}),xref:{valType:&quot;enumerated&quot;,dflt:&quot;container&quot;,values:[&quot;container&quot;,&quot;paper&quot;],editType:&quot;layoutstyle&quot;},yref:{valType:&quot;enumerated&quot;,dflt:&quot;container&quot;,values:[&quot;container&quot;,&quot;paper&quot;],editType:&quot;layoutstyle&quot;},x:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;layoutstyle&quot;},y:{valType:&quot;number&quot;,min:0,max:1,dflt:&quot;auto&quot;,editType:&quot;layoutstyle&quot;},xanchor:{valType:&quot;enumerated&quot;,dflt:&quot;auto&quot;,values:[&quot;auto&quot;,&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;layoutstyle&quot;},yanchor:{valType:&quot;enumerated&quot;,dflt:&quot;auto&quot;,values:[&quot;auto&quot;,&quot;top&quot;,&quot;middle&quot;,&quot;bottom&quot;],editType:&quot;layoutstyle&quot;},pad:l(s({editType:&quot;layoutstyle&quot;}),{}),editType:&quot;layoutstyle&quot;},uniformtext:{mode:{valType:&quot;enumerated&quot;,values:[!1,&quot;hide&quot;,&quot;show&quot;],dflt:!1,editType:&quot;plot&quot;},minsize:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},autosize:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;none&quot;},width:{valType:&quot;number&quot;,min:10,dflt:700,editType:&quot;plot&quot;},height:{valType:&quot;number&quot;,min:10,dflt:450,editType:&quot;plot&quot;},margin:{l:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},r:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},t:{valType:&quot;number&quot;,min:0,dflt:100,editType:&quot;plot&quot;},b:{valType:&quot;number&quot;,min:0,dflt:80,editType:&quot;plot&quot;},pad:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},autoexpand:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},computed:{valType:&quot;any&quot;,editType:&quot;none&quot;},paper_bgcolor:{valType:&quot;color&quot;,dflt:a.background,editType:&quot;plot&quot;},plot_bgcolor:{valType:&quot;color&quot;,dflt:a.background,editType:&quot;layoutstyle&quot;},autotypenumbers:{valType:&quot;enumerated&quot;,values:[&quot;convert types&quot;,&quot;strict&quot;],dflt:&quot;convert types&quot;,editType:&quot;calc&quot;},separators:{valType:&quot;string&quot;,editType:&quot;plot&quot;},hidesources:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},showlegend:{valType:&quot;boolean&quot;,editType:&quot;legend&quot;},colorway:{valType:&quot;colorlist&quot;,dflt:a.defaults,editType:&quot;calc&quot;},datarevision:{valType:&quot;any&quot;,editType:&quot;calc&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editrevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},selectionrevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},template:{valType:&quot;any&quot;,editType:&quot;calc&quot;},modebar:{orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;,editType:&quot;modebar&quot;},bgcolor:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},color:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},activecolor:{valType:&quot;color&quot;,editType:&quot;modebar&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;modebar&quot;},newshape:o.newshape,activeshape:o.activeshape,meta:{valType:&quot;any&quot;,arrayOk:!0,editType:&quot;plot&quot;},transition:l({},i.transition,{editType:&quot;none&quot;}),_deprecated:{title:{valType:&quot;string&quot;,editType:&quot;layoutstyle&quot;},titlefont:n({editType:&quot;layoutstyle&quot;})}}},{&quot;../components/color/attributes&quot;:642,&quot;../components/shapes/draw_newshape/attributes&quot;:725,&quot;../lib/extend&quot;:768,&quot;./animation_attributes&quot;:822,&quot;./font_attributes&quot;:856,&quot;./pad_attributes&quot;:890}],883:[function(t,e,r){&quot;use strict&quot;;var n={&quot;open-street-map&quot;:{id:&quot;osm&quot;,version:8,sources:{&quot;plotly-osm-tiles&quot;:{type:&quot;raster&quot;,attribution:'&lt;a href=&quot;http://www.openstreetmap.org/about/&quot; target=&quot;_blank&quot;&gt;\xa9 OpenStreetMap&lt;/a&gt;',tiles:[&quot;https://a.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;,&quot;https://b.tile.openstreetmap.org/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-osm-tiles&quot;,type:&quot;raster&quot;,source:&quot;plotly-osm-tiles&quot;,minzoom:0,maxzoom:22}]},&quot;white-bg&quot;:{id:&quot;white-bg&quot;,version:8,sources:{},layers:[{id:&quot;white-bg&quot;,type:&quot;background&quot;,paint:{&quot;background-color&quot;:&quot;#FFFFFF&quot;},minzoom:0,maxzoom:22}]},&quot;carto-positron&quot;:{id:&quot;carto-positron&quot;,version:8,sources:{&quot;plotly-carto-positron&quot;:{type:&quot;raster&quot;,attribution:'&lt;a href=&quot;https://carto.com/&quot; target=&quot;_blank&quot;&gt;\xa9 CARTO&lt;/a&gt;',tiles:[&quot;https://cartodb-basemaps-c.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-carto-positron&quot;,type:&quot;raster&quot;,source:&quot;plotly-carto-positron&quot;,minzoom:0,maxzoom:22}]},&quot;carto-darkmatter&quot;:{id:&quot;carto-darkmatter&quot;,version:8,sources:{&quot;plotly-carto-darkmatter&quot;:{type:&quot;raster&quot;,attribution:'&lt;a href=&quot;https://carto.com/&quot; target=&quot;_blank&quot;&gt;\xa9 CARTO&lt;/a&gt;',tiles:[&quot;https://cartodb-basemaps-c.global.ssl.fastly.net/dark_all/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-carto-darkmatter&quot;,type:&quot;raster&quot;,source:&quot;plotly-carto-darkmatter&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-terrain&quot;:{id:&quot;stamen-terrain&quot;,version:8,sources:{&quot;plotly-stamen-terrain&quot;:{type:&quot;raster&quot;,attribution:'Map tiles by &lt;a href=&quot;http://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt; | Data by &lt;a href=&quot;http://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt;, under &lt;a href=&quot;http://www.openstreetmap.org/copyright&quot;&gt;ODbL&lt;/a&gt;.',tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/terrain/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-terrain&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-terrain&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-toner&quot;:{id:&quot;stamen-toner&quot;,version:8,sources:{&quot;plotly-stamen-toner&quot;:{type:&quot;raster&quot;,attribution:'Map tiles by &lt;a href=&quot;http://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt; | Data by &lt;a href=&quot;http://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt;, under &lt;a href=&quot;http://www.openstreetmap.org/copyright&quot;&gt;ODbL&lt;/a&gt;.',tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/toner/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-toner&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-toner&quot;,minzoom:0,maxzoom:22}]},&quot;stamen-watercolor&quot;:{id:&quot;stamen-watercolor&quot;,version:8,sources:{&quot;plotly-stamen-watercolor&quot;:{type:&quot;raster&quot;,attribution:'Map tiles by &lt;a href=&quot;http://stamen.com&quot;&gt;Stamen Design&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0&quot;&gt;CC BY 3.0&lt;/a&gt; | Data by &lt;a href=&quot;http://openstreetmap.org&quot;&gt;OpenStreetMap&lt;/a&gt;, under &lt;a href=&quot;http://creativecommons.org/licenses/by-sa/3.0&quot;&gt;CC BY SA&lt;/a&gt;.',tiles:[&quot;https://stamen-tiles.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.png&quot;],tileSize:256}},layers:[{id:&quot;plotly-stamen-watercolor&quot;,type:&quot;raster&quot;,source:&quot;plotly-stamen-watercolor&quot;,minzoom:0,maxzoom:22}]}},i=Object.keys(n);e.exports={requiredVersion:&quot;1.10.1&quot;,styleUrlPrefix:&quot;mapbox://styles/mapbox/&quot;,styleUrlSuffix:&quot;v9&quot;,styleValuesMapbox:[&quot;basic&quot;,&quot;streets&quot;,&quot;outdoors&quot;,&quot;light&quot;,&quot;dark&quot;,&quot;satellite&quot;,&quot;satellite-streets&quot;],styleValueDflt:&quot;basic&quot;,stylesNonMapbox:n,styleValuesNonMapbox:i,traceLayerPrefix:&quot;plotly-trace-layer-&quot;,layoutLayerPrefix:&quot;plotly-layout-layer-&quot;,wrongVersionErrorMsg:[&quot;Your custom plotly.js bundle is not using the correct mapbox-gl version&quot;,&quot;Please install mapbox-gl@1.10.1.&quot;].join(&quot;\n&quot;),noAccessTokenErrorMsg:[&quot;Missing Mapbox access token.&quot;,&quot;Mapbox trace type require a Mapbox access token to be registered.&quot;,&quot;For example:&quot;,&quot;  Plotly.plot(gd, data, layout, { mapboxAccessToken: 'my-access-token' });&quot;,&quot;More info here: https://www.mapbox.com/help/define-access-token/&quot;].join(&quot;\n&quot;),missingStyleErrorMsg:[&quot;No valid mapbox style found, please set `mapbox.style` to one of:&quot;,i.join(&quot;, &quot;),&quot;or register a Mapbox access token to use a Mapbox-served style.&quot;].join(&quot;\n&quot;),multipleTokensErrorMsg:[&quot;Set multiple mapbox access token across different mapbox subplot,&quot;,&quot;using first token found as mapbox-gl does not allow multipleaccess tokens on the same page.&quot;].join(&quot;\n&quot;),mapOnErrorMsg:&quot;Mapbox error.&quot;,mapboxLogo:{path0:&quot;m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z&quot;,path1:&quot;M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z&quot;,path2:&quot;M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z&quot;,polygon:&quot;11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34&quot;},styleRules:{map:&quot;overflow:hidden;position:relative;&quot;,&quot;missing-css&quot;:&quot;display:none;&quot;,canary:&quot;background-color:salmon;&quot;,&quot;ctrl-bottom-left&quot;:&quot;position: absolute; pointer-events: none; z-index: 2; bottom: 0; left: 0;&quot;,&quot;ctrl-bottom-right&quot;:&quot;position: absolute; pointer-events: none; z-index: 2; right: 0; bottom: 0;&quot;,ctrl:&quot;clear: both; pointer-events: auto; transform: translate(0, 0);&quot;,&quot;ctrl-attrib.mapboxgl-compact .mapboxgl-ctrl-attrib-inner&quot;:&quot;display: none;&quot;,&quot;ctrl-attrib.mapboxgl-compact:hover .mapboxgl-ctrl-attrib-inner&quot;:&quot;display: block; margin-top:2px&quot;,&quot;ctrl-attrib.mapboxgl-compact:hover&quot;:&quot;padding: 2px 24px 2px 4px; visibility: visible; margin-top: 6px;&quot;,&quot;ctrl-attrib.mapboxgl-compact::after&quot;:'content: &quot;&quot;; cursor: pointer; position: absolute; background-image: url(\'data:image/svg+xml;charset=utf-8,%3Csvg viewBox=&quot;0 0 20 20&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot;%3E %3Cpath fill=&quot;%23333333&quot; fill-rule=&quot;evenodd&quot; d=&quot;M4,10a6,6 0 1,0 12,0a6,6 0 1,0 -12,0 M9,7a1,1 0 1,0 2,0a1,1 0 1,0 -2,0 M9,10a1,1 0 1,1 2,0l0,3a1,1 0 1,1 -2,0&quot;/%3E %3C/svg%3E\'); background-color: rgba(255, 255, 255, 0.5); width: 24px; height: 24px; box-sizing: border-box; border-radius: 12px;',&quot;ctrl-attrib.mapboxgl-compact&quot;:&quot;min-height: 20px; padding: 0; margin: 10px; position: relative; background-color: #fff; border-radius: 3px 12px 12px 3px;&quot;,&quot;ctrl-bottom-right &gt; .mapboxgl-ctrl-attrib.mapboxgl-compact::after&quot;:&quot;bottom: 0; right: 0&quot;,&quot;ctrl-bottom-left &gt; .mapboxgl-ctrl-attrib.mapboxgl-compact::after&quot;:&quot;bottom: 0; left: 0&quot;,&quot;ctrl-bottom-left .mapboxgl-ctrl&quot;:&quot;margin: 0 0 10px 10px; float: left;&quot;,&quot;ctrl-bottom-right .mapboxgl-ctrl&quot;:&quot;margin: 0 10px 10px 0; float: right;&quot;,&quot;ctrl-attrib&quot;:&quot;color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px&quot;,&quot;ctrl-attrib a&quot;:&quot;color: rgba(0, 0, 0, 0.75); text-decoration: none; font-size: 12px&quot;,&quot;ctrl-attrib a:hover&quot;:&quot;color: inherit; text-decoration: underline;&quot;,&quot;ctrl-attrib .mapbox-improve-map&quot;:&quot;font-weight: bold; margin-left: 2px;&quot;,&quot;attrib-empty&quot;:&quot;display: none;&quot;,&quot;ctrl-logo&quot;:'display:block; width: 21px; height: 21px; background-image: url(\'data:image/svg+xml;charset=utf-8,%3C?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?%3E %3Csvg version=&quot;1.1&quot; id=&quot;Layer_1&quot; xmlns=&quot;http://www.w3.org/2000/svg&quot; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; x=&quot;0px&quot; y=&quot;0px&quot; viewBox=&quot;0 0 21 21&quot; style=&quot;enable-background:new 0 0 21 21;&quot; xml:space=&quot;preserve&quot;%3E%3Cg transform=&quot;translate(0,0.01)&quot;%3E%3Cpath d=&quot;m 10.5,1.24 c -5.11,0 -9.25,4.15 -9.25,9.25 0,5.1 4.15,9.25 9.25,9.25 5.1,0 9.25,-4.15 9.25,-9.25 0,-5.11 -4.14,-9.25 -9.25,-9.25 z m 4.39,11.53 c -1.93,1.93 -4.78,2.31 -6.7,2.31 -0.7,0 -1.41,-0.05 -2.1,-0.16 0,0 -1.02,-5.64 2.14,-8.81 0.83,-0.83 1.95,-1.28 3.13,-1.28 1.27,0 2.49,0.51 3.39,1.42 1.84,1.84 1.89,4.75 0.14,6.52 z&quot; style=&quot;opacity:0.9;fill:%23ffffff;enable-background:new&quot; class=&quot;st0&quot;/%3E%3Cpath d=&quot;M 10.5,-0.01 C 4.7,-0.01 0,4.7 0,10.49 c 0,5.79 4.7,10.5 10.5,10.5 5.8,0 10.5,-4.7 10.5,-10.5 C 20.99,4.7 16.3,-0.01 10.5,-0.01 Z m 0,19.75 c -5.11,0 -9.25,-4.15 -9.25,-9.25 0,-5.1 4.14,-9.26 9.25,-9.26 5.11,0 9.25,4.15 9.25,9.25 0,5.13 -4.14,9.26 -9.25,9.26 z&quot; style=&quot;opacity:0.35;enable-background:new&quot; class=&quot;st1&quot;/%3E%3Cpath d=&quot;M 14.74,6.25 C 12.9,4.41 9.98,4.35 8.23,6.1 5.07,9.27 6.09,14.91 6.09,14.91 c 0,0 5.64,1.02 8.81,-2.14 C 16.64,11 16.59,8.09 14.74,6.25 Z m -2.27,4.09 -0.91,1.87 -0.9,-1.87 -1.86,-0.91 1.86,-0.9 0.9,-1.87 0.91,1.87 1.86,0.9 z&quot; style=&quot;opacity:0.35;enable-background:new&quot; class=&quot;st1&quot;/%3E%3Cpolygon points=&quot;11.56,12.21 10.66,10.34 8.8,9.43 10.66,8.53 11.56,6.66 12.47,8.53 14.33,9.43 12.47,10.34 &quot; style=&quot;opacity:0.9;fill:%23ffffff;enable-background:new&quot; class=&quot;st0&quot;/%3E%3C/g%3E%3C/svg%3E\')'}}},{}],884:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=t.split(&quot; &quot;),i=r[0],a=r[1],o=n.isArrayOrTypedArray(e)?n.mean(e):e,s=.5+o/100,l=1.5+o/100,c=[&quot;&quot;,&quot;&quot;],u=[0,0];switch(i){case&quot;top&quot;:c[0]=&quot;top&quot;,u[1]=-l;break;case&quot;bottom&quot;:c[0]=&quot;bottom&quot;,u[1]=l}switch(a){case&quot;left&quot;:c[1]=&quot;right&quot;,u[0]=-s;break;case&quot;right&quot;:c[1]=&quot;left&quot;,u[0]=s}return{anchor:c[0]&amp;&amp;c[1]?c.join(&quot;-&quot;):c[0]?c[0]:c[1]?c[1]:&quot;center&quot;,offset:u}}},{&quot;../../lib&quot;:778}],885:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mapbox-gl&quot;),i=t(&quot;../../lib&quot;),a=i.strTranslate,o=i.strScale,s=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,l=t(&quot;../../constants/xmlns_namespaces&quot;),c=t(&quot;d3&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;./mapbox&quot;),p=r.constants=t(&quot;./constants&quot;);function d(t){return&quot;string&quot;==typeof t&amp;&amp;(-1!==p.styleValuesMapbox.indexOf(t)||0===t.indexOf(&quot;mapbox://&quot;))}r.name=&quot;mapbox&quot;,r.attr=&quot;subplot&quot;,r.idRoot=&quot;mapbox&quot;,r.idRegex=r.attrRegex=i.counterRegex(&quot;mapbox&quot;),r.attributes={subplot:{valType:&quot;subplotid&quot;,dflt:&quot;mapbox&quot;,editType:&quot;calc&quot;}},r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.plot=function(t){var e=t._fullLayout,r=t.calcdata,a=e._subplots.mapbox;if(n.version!==p.requiredVersion)throw new Error(p.wrongVersionErrorMsg);var o=function(t,e){var r=t._fullLayout;if(&quot;&quot;===t._context.mapboxAccessToken)return&quot;&quot;;for(var n=[],a=[],o=!1,s=!1,l=0;l&lt;e.length;l++){var c=r[e[l]],u=c.accesstoken;d(c.style)&amp;&amp;(u?i.pushUnique(n,u):(d(c._input.style)&amp;&amp;(i.error(&quot;Uses Mapbox map style, but did not set an access token.&quot;),o=!0),s=!0)),u&amp;&amp;i.pushUnique(a,u)}if(s){var f=o?p.noAccessTokenErrorMsg:p.missingStyleErrorMsg;throw i.error(f),new Error(f)}return n.length?(n.length&gt;1&amp;&amp;i.warn(p.multipleTokensErrorMsg),n[0]):(a.length&amp;&amp;i.log([&quot;Listed mapbox access token(s)&quot;,a.join(&quot;,&quot;),&quot;but did not use a Mapbox map style, ignoring token(s).&quot;].join(&quot; &quot;)),&quot;&quot;)}(t,a);n.accessToken=o;for(var l=0;l&lt;a.length;l++){var c=a[l],u=s(r,&quot;mapbox&quot;,c),f=e[c],g=f._subplot;g||(g=new h(t,c),e[c]._subplot=g),g.viewInitial||(g.viewInitial={center:i.extendFlat({},f.center),zoom:f.zoom,bearing:f.bearing,pitch:f.pitch}),g.plot(u,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.mapbox||[],a=0;a&lt;i.length;a++){var o=i[a];!e[o]&amp;&amp;n[o]._subplot&amp;&amp;n[o]._subplot.destroy()}},r.toSVG=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=e._size,i=0;i&lt;r.length;i++){var s=e[r[i]],h=s.domain,d=s._subplot.toImage(&quot;png&quot;);e._glimages.append(&quot;svg:image&quot;).attr({xmlns:l.svg,&quot;xlink:href&quot;:d,x:n.l+n.w*h.x[0],y:n.t+n.h*(1-h.y[1]),width:n.w*(h.x[1]-h.x[0]),height:n.h*(h.y[1]-h.y[0]),preserveAspectRatio:&quot;none&quot;});var g=c.select(s._subplot.div);if(!(null===g.select(&quot;.mapboxgl-ctrl-logo&quot;).node().offsetParent)){var m=e._glimages.append(&quot;g&quot;);m.attr(&quot;transform&quot;,a(n.l+n.w*h.x[0]+10,n.t+n.h*(1-h.y[0])-31)),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path0).style({opacity:.9,fill:&quot;#ffffff&quot;,&quot;enable-background&quot;:&quot;new&quot;}),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path1).style(&quot;opacity&quot;,.35).style(&quot;enable-background&quot;,&quot;new&quot;),m.append(&quot;path&quot;).attr(&quot;d&quot;,p.mapboxLogo.path2).style(&quot;opacity&quot;,.35).style(&quot;enable-background&quot;,&quot;new&quot;),m.append(&quot;polygon&quot;).attr(&quot;points&quot;,p.mapboxLogo.polygon).style({opacity:.9,fill:&quot;#ffffff&quot;,&quot;enable-background&quot;:&quot;new&quot;})}var v=g.select(&quot;.mapboxgl-ctrl-attrib&quot;).text().replace(&quot;Improve this map&quot;,&quot;&quot;),y=e._glimages.append(&quot;g&quot;),x=y.append(&quot;text&quot;);x.text(v).classed(&quot;static-attribution&quot;,!0).attr({&quot;font-size&quot;:12,&quot;font-family&quot;:&quot;Arial&quot;,color:&quot;rgba(0, 0, 0, 0.75)&quot;,&quot;text-anchor&quot;:&quot;end&quot;,&quot;data-unformatted&quot;:v});var b=u.bBox(x.node()),_=n.w*(h.x[1]-h.x[0]);if(b.width&gt;_/2){var w=v.split(&quot;|&quot;).join(&quot;&lt;br&gt;&quot;);x.text(w).attr(&quot;data-unformatted&quot;,w).call(f.convertToTspans,t),b=u.bBox(x.node())}x.attr(&quot;transform&quot;,a(-3,8-b.height)),y.insert(&quot;rect&quot;,&quot;.static-attribution&quot;).attr({x:-b.width-6,y:-b.height-3,width:b.width+6,height:b.height+3,fill:&quot;rgba(255, 255, 255, 0.75)&quot;});var T=1;b.width+6&gt;_&amp;&amp;(T=_/(b.width+6));var k=[n.l+n.w*h.x[1],n.t+n.h*(1-h.y[0])];y.attr(&quot;transform&quot;,a(k[0],k[1])+o(T))}},r.updateFx=function(t){for(var e=t._fullLayout,r=e._subplots.mapbox,n=0;n&lt;r.length;n++){e[r[n]]._subplot.updateFx(e)}}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/get_data&quot;:865,&quot;./constants&quot;:883,&quot;./layout_attributes&quot;:887,&quot;./layout_defaults&quot;:888,&quot;./mapbox&quot;:889,d3:169,&quot;mapbox-gl&quot;:473}],886:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/svg_text_utils&quot;).sanitizeHTML,a=t(&quot;./convert_text_opts&quot;),o=t(&quot;./constants&quot;);function s(t,e){this.subplot=t,this.uid=t.uid+&quot;-&quot;+e,this.index=e,this.idSource=&quot;source-&quot;+this.uid,this.idLayer=o.layoutLayerPrefix+this.uid,this.sourceType=null,this.source=null,this.layerType=null,this.below=null,this.visible=!1}var l=s.prototype;function c(t){if(!t.visible)return!1;var e=t.source;if(Array.isArray(e)&amp;&amp;e.length&gt;0){for(var r=0;r&lt;e.length;r++)if(&quot;string&quot;!=typeof e[r]||0===e[r].length)return!1;return!0}return n.isPlainObject(e)||&quot;string&quot;==typeof e&amp;&amp;e.length&gt;0}function u(t){var e={},r={};switch(t.type){case&quot;circle&quot;:n.extendFlat(r,{&quot;circle-radius&quot;:t.circle.radius,&quot;circle-color&quot;:t.color,&quot;circle-opacity&quot;:t.opacity});break;case&quot;line&quot;:n.extendFlat(r,{&quot;line-width&quot;:t.line.width,&quot;line-color&quot;:t.color,&quot;line-opacity&quot;:t.opacity,&quot;line-dasharray&quot;:t.line.dash});break;case&quot;fill&quot;:n.extendFlat(r,{&quot;fill-color&quot;:t.color,&quot;fill-outline-color&quot;:t.fill.outlinecolor,&quot;fill-opacity&quot;:t.opacity});break;case&quot;symbol&quot;:var i=t.symbol,o=a(i.textposition,i.iconsize);n.extendFlat(e,{&quot;icon-image&quot;:i.icon+&quot;-15&quot;,&quot;icon-size&quot;:i.iconsize/10,&quot;text-field&quot;:i.text,&quot;text-size&quot;:i.textfont.size,&quot;text-anchor&quot;:o.anchor,&quot;text-offset&quot;:o.offset,&quot;symbol-placement&quot;:i.placement}),n.extendFlat(r,{&quot;icon-color&quot;:t.color,&quot;text-color&quot;:i.textfont.color,&quot;text-opacity&quot;:t.opacity});break;case&quot;raster&quot;:n.extendFlat(r,{&quot;raster-fade-duration&quot;:0,&quot;raster-opacity&quot;:t.opacity})}return{layout:e,paint:r}}l.update=function(t){this.visible?this.needsNewImage(t)?this.updateImage(t):this.needsNewSource(t)?(this.removeLayer(),this.updateSource(t),this.updateLayer(t)):this.needsNewLayer(t)?this.updateLayer(t):this.updateStyle(t):(this.updateSource(t),this.updateLayer(t)),this.visible=c(t)},l.needsNewImage=function(t){return this.subplot.map.getSource(this.idSource)&amp;&amp;&quot;image&quot;===this.sourceType&amp;&amp;&quot;image&quot;===t.sourcetype&amp;&amp;(this.source!==t.source||JSON.stringify(this.coordinates)!==JSON.stringify(t.coordinates))},l.needsNewSource=function(t){return this.sourceType!==t.sourcetype||JSON.stringify(this.source)!==JSON.stringify(t.source)||this.layerType!==t.type},l.needsNewLayer=function(t){return this.layerType!==t.type||this.below!==this.subplot.belowLookup[&quot;layout-&quot;+this.index]},l.lookupBelow=function(){return this.subplot.belowLookup[&quot;layout-&quot;+this.index]},l.updateImage=function(t){this.subplot.map.getSource(this.idSource).updateImage({url:t.source,coordinates:t.coordinates});var e=this.findFollowingMapboxLayerId(this.lookupBelow());null!==e&amp;&amp;this.subplot.map.moveLayer(this.idLayer,e)},l.updateSource=function(t){var e=this.subplot.map;if(e.getSource(this.idSource)&amp;&amp;e.removeSource(this.idSource),this.sourceType=t.sourcetype,this.source=t.source,c(t)){var r=function(t){var e,r=t.sourcetype,n=t.source,a={type:r};&quot;geojson&quot;===r?e=&quot;data&quot;:&quot;vector&quot;===r?e=&quot;string&quot;==typeof n?&quot;url&quot;:&quot;tiles&quot;:&quot;raster&quot;===r?(e=&quot;tiles&quot;,a.tileSize=256):&quot;image&quot;===r&amp;&amp;(e=&quot;url&quot;,a.coordinates=t.coordinates);a[e]=n,t.sourceattribution&amp;&amp;(a.attribution=i(t.sourceattribution));return a}(t);e.addSource(this.idSource,r)}},l.findFollowingMapboxLayerId=function(t){if(&quot;traces&quot;===t)for(var e=this.subplot.getMapLayers(),r=0;r&lt;e.length;r++){var n=e[r].id;if(&quot;string&quot;==typeof n&amp;&amp;0===n.indexOf(o.traceLayerPrefix)){t=n;break}}return t},l.updateLayer=function(t){var e=this.subplot,r=u(t),n=this.lookupBelow(),i=this.findFollowingMapboxLayerId(n);this.removeLayer(),c(t)&amp;&amp;e.addLayer({id:this.idLayer,source:this.idSource,&quot;source-layer&quot;:t.sourcelayer||&quot;&quot;,type:t.type,minzoom:t.minzoom,maxzoom:t.maxzoom,layout:r.layout,paint:r.paint},i),this.layerType=t.type,this.below=n},l.updateStyle=function(t){if(c(t)){var e=u(t);this.subplot.setOptions(this.idLayer,&quot;setLayoutProperty&quot;,e.layout),this.subplot.setOptions(this.idLayer,&quot;setPaintProperty&quot;,e.paint)}},l.removeLayer=function(){var t=this.subplot.map;t.getLayer(this.idLayer)&amp;&amp;t.removeLayer(this.idLayer)},l.dispose=function(){var t=this.subplot.map;t.getLayer(this.idLayer)&amp;&amp;t.removeLayer(this.idLayer),t.getSource(this.idSource)&amp;&amp;t.removeSource(this.idSource)},e.exports=function(t,e,r){var n=new s(t,e);return n.update(r),n}},{&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;./constants&quot;:883,&quot;./convert_text_opts&quot;:884}],887:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;).defaultLine,a=t(&quot;../domain&quot;).attributes,o=t(&quot;../font_attributes&quot;),s=t(&quot;../../traces/scatter/attributes&quot;).textposition,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll,c=t(&quot;../../plot_api/plot_template&quot;).templatedArray,u=t(&quot;./constants&quot;),f=o({});f.family.dflt=&quot;Open Sans Regular, Arial Unicode MS Regular&quot;,(e.exports=l({_arrayAttrRegexps:[n.counterRegex(&quot;mapbox&quot;,&quot;.layers&quot;,!0)],domain:a({name:&quot;mapbox&quot;}),accesstoken:{valType:&quot;string&quot;,noBlank:!0,strict:!0},style:{valType:&quot;any&quot;,values:u.styleValuesMapbox.concat(u.styleValuesNonMapbox),dflt:u.styleValueDflt},center:{lon:{valType:&quot;number&quot;,dflt:0},lat:{valType:&quot;number&quot;,dflt:0}},zoom:{valType:&quot;number&quot;,dflt:1},bearing:{valType:&quot;number&quot;,dflt:0},pitch:{valType:&quot;number&quot;,dflt:0},layers:c(&quot;layer&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0},sourcetype:{valType:&quot;enumerated&quot;,values:[&quot;geojson&quot;,&quot;vector&quot;,&quot;raster&quot;,&quot;image&quot;],dflt:&quot;geojson&quot;},source:{valType:&quot;any&quot;},sourcelayer:{valType:&quot;string&quot;,dflt:&quot;&quot;},sourceattribution:{valType:&quot;string&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;circle&quot;,&quot;line&quot;,&quot;fill&quot;,&quot;symbol&quot;,&quot;raster&quot;],dflt:&quot;circle&quot;},coordinates:{valType:&quot;any&quot;},below:{valType:&quot;string&quot;},color:{valType:&quot;color&quot;,dflt:i},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},minzoom:{valType:&quot;number&quot;,min:0,max:24,dflt:0},maxzoom:{valType:&quot;number&quot;,min:0,max:24,dflt:24},circle:{radius:{valType:&quot;number&quot;,dflt:15}},line:{width:{valType:&quot;number&quot;,dflt:2},dash:{valType:&quot;data_array&quot;}},fill:{outlinecolor:{valType:&quot;color&quot;,dflt:i}},symbol:{icon:{valType:&quot;string&quot;,dflt:&quot;marker&quot;},iconsize:{valType:&quot;number&quot;,dflt:10},text:{valType:&quot;string&quot;,dflt:&quot;&quot;},placement:{valType:&quot;enumerated&quot;,values:[&quot;point&quot;,&quot;line&quot;,&quot;line-center&quot;],dflt:&quot;point&quot;},textfont:f,textposition:n.extendFlat({},s,{arrayOk:!1})}})},&quot;plot&quot;,&quot;from-root&quot;)).uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../traces/scatter/attributes&quot;:1187,&quot;../domain&quot;:855,&quot;../font_attributes&quot;:856,&quot;./constants&quot;:883}],888:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../subplot_defaults&quot;),a=t(&quot;../array_container_defaults&quot;),o=t(&quot;./layout_attributes&quot;);function s(t,e,r,n){r(&quot;accesstoken&quot;,n.accessToken),r(&quot;style&quot;),r(&quot;center.lon&quot;),r(&quot;center.lat&quot;),r(&quot;zoom&quot;),r(&quot;bearing&quot;),r(&quot;pitch&quot;),a(t,e,{name:&quot;layers&quot;,handleItemDefaults:l}),e._input=t}function l(t,e){function r(r,i){return n.coerce(t,e,o.layers,r,i)}if(r(&quot;visible&quot;)){var i,a=r(&quot;sourcetype&quot;),s=&quot;raster&quot;===a||&quot;image&quot;===a;r(&quot;source&quot;),r(&quot;sourceattribution&quot;),&quot;vector&quot;===a&amp;&amp;r(&quot;sourcelayer&quot;),&quot;image&quot;===a&amp;&amp;r(&quot;coordinates&quot;),s&amp;&amp;(i=&quot;raster&quot;);var l=r(&quot;type&quot;,i);s&amp;&amp;&quot;raster&quot;!==l&amp;&amp;(l=e.type=&quot;raster&quot;,n.log(&quot;Source types *raster* and *image* must drawn *raster* layer type.&quot;)),r(&quot;below&quot;),r(&quot;color&quot;),r(&quot;opacity&quot;),r(&quot;minzoom&quot;),r(&quot;maxzoom&quot;),&quot;circle&quot;===l&amp;&amp;r(&quot;circle.radius&quot;),&quot;line&quot;===l&amp;&amp;(r(&quot;line.width&quot;),r(&quot;line.dash&quot;)),&quot;fill&quot;===l&amp;&amp;r(&quot;fill.outlinecolor&quot;),&quot;symbol&quot;===l&amp;&amp;(r(&quot;symbol.icon&quot;),r(&quot;symbol.iconsize&quot;),r(&quot;symbol.text&quot;),n.coerceFont(r,&quot;symbol.textfont&quot;),r(&quot;symbol.textposition&quot;),r(&quot;symbol.placement&quot;))}}e.exports=function(t,e,r){i(t,e,r,{type:&quot;mapbox&quot;,attributes:o,handleDefaults:s,partition:&quot;y&quot;,accessToken:e._mapboxAccessToken})}},{&quot;../../lib&quot;:778,&quot;../array_container_defaults&quot;:823,&quot;../subplot_defaults&quot;:905,&quot;./layout_attributes&quot;:887}],889:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;mapbox-gl&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/geo_location_utils&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../cartesian/axes&quot;),l=t(&quot;../../components/dragelement&quot;),c=t(&quot;../../components/fx&quot;),u=t(&quot;../../components/dragelement/helpers&quot;),f=u.rectMode,h=u.drawMode,p=u.selectMode,d=t(&quot;../cartesian/select&quot;).prepSelect,g=t(&quot;../cartesian/select&quot;).clearSelect,m=t(&quot;../cartesian/select&quot;).clearSelectionsCache,v=t(&quot;../cartesian/select&quot;).selectOnClick,y=t(&quot;./constants&quot;),x=t(&quot;./layers&quot;);function b(t,e){this.id=e,this.gd=t;var r=t._fullLayout,n=t._context;this.container=r._glcontainer.node(),this.isStatic=n.staticPlot,this.uid=r._uid+&quot;-&quot;+this.id,this.div=null,this.xaxis=null,this.yaxis=null,this.createFramework(r),this.map=null,this.accessToken=null,this.styleObj=null,this.traceHash={},this.layerList=[],this.belowLookup={},this.dragging=!1,this.wheeling=!1}var _=b.prototype;_.plot=function(t,e,r){var n,i=this,a=e[i.id];i.map&amp;&amp;a.accesstoken!==i.accessToken&amp;&amp;(i.map.remove(),i.map=null,i.styleObj=null,i.traceHash={},i.layerList=[]),n=i.map?new Promise((function(r,n){i.updateMap(t,e,r,n)})):new Promise((function(r,n){i.createMap(t,e,r,n)})),r.push(n)},_.createMap=function(t,e,r,i){var o=this,s=e[o.id],l=o.styleObj=T(s.style);o.accessToken=s.accesstoken;var c=o.map=new n.Map({container:o.div,style:l.style,center:M(s.center),zoom:s.zoom,bearing:s.bearing,pitch:s.pitch,interactive:!o.isStatic,preserveDrawingBuffer:o.isStatic,doubleClickZoom:!1,boxZoom:!1,attributionControl:!1}).addControl(new n.AttributionControl({compact:!0}));c._canvas.style.left=&quot;0px&quot;,c._canvas.style.top=&quot;0px&quot;,o.rejectOnError(i),o.isStatic||o.initFx(t,e);var u=[];u.push(new Promise((function(t){c.once(&quot;load&quot;,t)}))),u=u.concat(a.fetchTraceGeoData(t)),Promise.all(u).then((function(){o.fillBelowLookup(t,e),o.updateData(t),o.updateLayout(e),o.resolveOnRender(r)})).catch(i)},_.updateMap=function(t,e,r,n){var i=this,o=i.map,s=e[this.id];i.rejectOnError(n);var l=[],c=T(s.style);JSON.stringify(i.styleObj)!==JSON.stringify(c)&amp;&amp;(i.styleObj=c,o.setStyle(c.style),i.traceHash={},l.push(new Promise((function(t){o.once(&quot;styledata&quot;,t)})))),l=l.concat(a.fetchTraceGeoData(t)),Promise.all(l).then((function(){i.fillBelowLookup(t,e),i.updateData(t),i.updateLayout(e),i.resolveOnRender(r)})).catch(n)},_.fillBelowLookup=function(t,e){var r,n,i=e[this.id].layers,a=this.belowLookup={},o=!1;for(r=0;r&lt;t.length;r++){var s=t[r][0].trace,l=s._module;&quot;string&quot;==typeof s.below?n=s.below:l.getBelow&amp;&amp;(n=l.getBelow(s,this)),&quot;&quot;===n&amp;&amp;(o=!0),a[&quot;trace-&quot;+s.uid]=n||&quot;&quot;}for(r=0;r&lt;i.length;r++){var c=i[r];n=&quot;string&quot;==typeof c.below?c.below:o?&quot;traces&quot;:&quot;&quot;,a[&quot;layout-&quot;+r]=n}var u,f,h={};for(u in a)h[n=a[u]]?h[n].push(u):h[n]=[u];for(n in h){var p=h[n];if(p.length&gt;1)for(r=0;r&lt;p.length;r++)0===(u=p[r]).indexOf(&quot;trace-&quot;)?(f=u.split(&quot;trace-&quot;)[1],this.traceHash[f]&amp;&amp;(this.traceHash[f].below=null)):0===u.indexOf(&quot;layout-&quot;)&amp;&amp;(f=u.split(&quot;layout-&quot;)[1],this.layerList[f]&amp;&amp;(this.layerList[f].below=null))}};var w={choroplethmapbox:0,densitymapbox:1,scattermapbox:2};function T(t){var e={};return i.isPlainObject(t)?(e.id=t.id,e.style=t):&quot;string&quot;==typeof t?(e.id=t,-1!==y.styleValuesMapbox.indexOf(t)?e.style=k(t):y.stylesNonMapbox[t]?e.style=y.stylesNonMapbox[t]:e.style=t):(e.id=y.styleValueDflt,e.style=k(y.styleValueDflt)),e.transition={duration:0,delay:0},e}function k(t){return y.styleUrlPrefix+t+&quot;-&quot;+y.styleUrlSuffix}function M(t){return[t.lon,t.lat]}_.updateData=function(t){var e,r,n,i,a=this.traceHash,o=t.slice().sort((function(t,e){return w[t[0].trace.type]-w[e[0].trace.type]}));for(n=0;n&lt;o.length;n++){var s=o[n],l=!1;(e=a[(r=s[0].trace).uid])&amp;&amp;(e.type===r.type?(e.update(s),l=!0):e.dispose()),!l&amp;&amp;r._module&amp;&amp;(a[r.uid]=r._module.plot(this,s))}var c=Object.keys(a);t:for(n=0;n&lt;c.length;n++){var u=c[n];for(i=0;i&lt;t.length;i++)if(u===(r=t[i][0].trace).uid)continue t;(e=a[u]).dispose(),delete a[u]}},_.updateLayout=function(t){var e=this.map,r=t[this.id];this.dragging||this.wheeling||(e.setCenter(M(r.center)),e.setZoom(r.zoom),e.setBearing(r.bearing),e.setPitch(r.pitch)),this.updateLayers(t),this.updateFramework(t),this.updateFx(t),this.map.resize(),this.gd._context._scrollZoom.mapbox?e.scrollZoom.enable():e.scrollZoom.disable()},_.resolveOnRender=function(t){var e=this.map;e.on(&quot;render&quot;,(function r(){e.loaded()&amp;&amp;(e.off(&quot;render&quot;,r),setTimeout(t,10))}))},_.rejectOnError=function(t){var e=this.map;function r(){t(new Error(y.mapOnErrorMsg))}e.once(&quot;error&quot;,r),e.once(&quot;style.error&quot;,r),e.once(&quot;source.error&quot;,r),e.once(&quot;tile.error&quot;,r),e.once(&quot;layer.error&quot;,r)},_.createFramework=function(t){var e=this,r=e.div=document.createElement(&quot;div&quot;);r.id=e.uid,r.style.position=&quot;absolute&quot;,e.container.appendChild(r),e.xaxis={_id:&quot;x&quot;,c2p:function(t){return e.project(t).x}},e.yaxis={_id:&quot;y&quot;,c2p:function(t){return e.project(t).y}},e.updateFramework(t),e.mockAxis={type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;},s.setConvert(e.mockAxis,t)},_.initFx=function(t,e){var r=this,n=r.gd,i=r.map;function a(){c.loneUnhover(e._hoverlayer)}function s(){var t=r.getView();n.emit(&quot;plotly_relayouting&quot;,r.getViewEditsWithDerived(t))}i.on(&quot;moveend&quot;,(function(t){if(r.map){var e=n._fullLayout;if(t.originalEvent||r.wheeling){var i=e[r.id];o.call(&quot;_storeDirectGUIEdit&quot;,n.layout,e._preGUI,r.getViewEdits(i));var a=r.getView();i._input.center=i.center=a.center,i._input.zoom=i.zoom=a.zoom,i._input.bearing=i.bearing=a.bearing,i._input.pitch=i.pitch=a.pitch,n.emit(&quot;plotly_relayout&quot;,r.getViewEditsWithDerived(a))}t.originalEvent&amp;&amp;&quot;mouseup&quot;===t.originalEvent.type?r.dragging=!1:r.wheeling&amp;&amp;(r.wheeling=!1),e._rehover&amp;&amp;e._rehover()}})),i.on(&quot;wheel&quot;,(function(){r.wheeling=!0})),i.on(&quot;mousemove&quot;,(function(t){var e=r.div.getBoundingClientRect(),a=[t.originalEvent.offsetX,t.originalEvent.offsetY];t.target.getBoundingClientRect=function(){return e},r.xaxis.p2c=function(){return i.unproject(a).lng},r.yaxis.p2c=function(){return i.unproject(a).lat},n._fullLayout._rehover=function(){n._fullLayout._hoversubplot===r.id&amp;&amp;n._fullLayout[r.id]&amp;&amp;c.hover(n,t,r.id)},c.hover(n,t,r.id),n._fullLayout._hoversubplot=r.id})),i.on(&quot;dragstart&quot;,(function(){r.dragging=!0,a()})),i.on(&quot;zoomstart&quot;,a),i.on(&quot;mouseout&quot;,(function(){n._fullLayout._hoversubplot=null})),i.on(&quot;drag&quot;,s),i.on(&quot;zoom&quot;,s),i.on(&quot;dblclick&quot;,(function(){var t=n._fullLayout[r.id];o.call(&quot;_storeDirectGUIEdit&quot;,n.layout,n._fullLayout._preGUI,r.getViewEdits(t));var e=r.viewInitial;i.setCenter(M(e.center)),i.setZoom(e.zoom),i.setBearing(e.bearing),i.setPitch(e.pitch);var a=r.getView();t._input.center=t.center=a.center,t._input.zoom=t.zoom=a.zoom,t._input.bearing=t.bearing=a.bearing,t._input.pitch=t.pitch=a.pitch,n.emit(&quot;plotly_doubleclick&quot;,null),n.emit(&quot;plotly_relayout&quot;,r.getViewEditsWithDerived(a))})),r.clearSelect=function(){m(r.dragOptions),g(r.dragOptions.gd)},r.onClickInPanFn=function(t){return function(e){var i=n._fullLayout.clickmode;i.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;v(e.originalEvent,n,[r.xaxis],[r.yaxis],r.id,t),i.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;c.click(n,e.originalEvent)}}},_.updateFx=function(t){var e=this,r=e.map,n=e.gd;if(!e.isStatic){var a,o=t.dragmode;a=f(o)?function(t,r){(t.range={})[e.id]=[c([r.xmin,r.ymin]),c([r.xmax,r.ymax])]}:function(t,r,n){(t.lassoPoints={})[e.id]=n.filtered.map(c)};var s=e.dragOptions;e.dragOptions=i.extendDeep(s||{},{dragmode:t.dragmode,element:e.div,gd:n,plotinfo:{id:e.id,domain:t[e.id].domain,xaxis:e.xaxis,yaxis:e.yaxis,fillRangeItems:a},xaxes:[e.xaxis],yaxes:[e.yaxis],subplot:e.id}),r.off(&quot;click&quot;,e.onClickInPanHandler),p(o)||h(o)?(r.dragPan.disable(),r.on(&quot;zoomstart&quot;,e.clearSelect),e.dragOptions.prepFn=function(t,r,n){d(t,r,n,e.dragOptions,o)},l.init(e.dragOptions)):(r.dragPan.enable(),r.off(&quot;zoomstart&quot;,e.clearSelect),e.div.onmousedown=null,e.onClickInPanHandler=e.onClickInPanFn(e.dragOptions),r.on(&quot;click&quot;,e.onClickInPanHandler))}function c(t){var r=e.map.unproject(t);return[r.lng,r.lat]}},_.updateFramework=function(t){var e=t[this.id].domain,r=t._size,n=this.div.style;n.width=r.w*(e.x[1]-e.x[0])+&quot;px&quot;,n.height=r.h*(e.y[1]-e.y[0])+&quot;px&quot;,n.left=r.l+e.x[0]*r.w+&quot;px&quot;,n.top=r.t+(1-e.y[1])*r.h+&quot;px&quot;,this.xaxis._offset=r.l+e.x[0]*r.w,this.xaxis._length=r.w*(e.x[1]-e.x[0]),this.yaxis._offset=r.t+(1-e.y[1])*r.h,this.yaxis._length=r.h*(e.y[1]-e.y[0])},_.updateLayers=function(t){var e,r=t[this.id].layers,n=this.layerList;if(r.length!==n.length){for(e=0;e&lt;n.length;e++)n[e].dispose();for(n=this.layerList=[],e=0;e&lt;r.length;e++)n.push(x(this,e,r[e]))}else for(e=0;e&lt;r.length;e++)n[e].update(r[e])},_.destroy=function(){this.map&amp;&amp;(this.map.remove(),this.map=null,this.container.removeChild(this.div))},_.toImage=function(){return this.map.stop(),this.map.getCanvas().toDataURL()},_.setOptions=function(t,e,r){for(var n in r)this.map[e](t,n,r[n])},_.getMapLayers=function(){return this.map.getStyle().layers},_.addLayer=function(t,e){var r=this.map;if(&quot;string&quot;==typeof e){if(&quot;&quot;===e)return void r.addLayer(t,e);for(var n=this.getMapLayers(),a=0;a&lt;n.length;a++)if(e===n[a].id)return void r.addLayer(t,e);i.warn([&quot;Trying to add layer with *below* value&quot;,e,&quot;referencing a layer that does not exist&quot;,&quot;or that does not yet exist.&quot;].join(&quot; &quot;))}r.addLayer(t)},_.project=function(t){return this.map.project(new n.LngLat(t[0],t[1]))},_.getView=function(){var t=this.map,e=t.getCenter(),r={lon:e.lng,lat:e.lat},n=t.getCanvas(),i=n.width,a=n.height;return{center:r,zoom:t.getZoom(),bearing:t.getBearing(),pitch:t.getPitch(),_derived:{coordinates:[t.unproject([0,0]).toArray(),t.unproject([i,0]).toArray(),t.unproject([i,a]).toArray(),t.unproject([0,a]).toArray()]}}},_.getViewEdits=function(t){for(var e=this.id,r=[&quot;center&quot;,&quot;zoom&quot;,&quot;bearing&quot;,&quot;pitch&quot;],n={},i=0;i&lt;r.length;i++){var a=r[i];n[e+&quot;.&quot;+a]=t[a]}return n},_.getViewEditsWithDerived=function(t){var e=this.id,r=this.getViewEdits(t);return r[e+&quot;._derived&quot;]=t._derived,r},e.exports=b},{&quot;../../components/dragelement&quot;:662,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../registry&quot;:911,&quot;../cartesian/axes&quot;:828,&quot;../cartesian/select&quot;:847,&quot;./constants&quot;:883,&quot;./layers&quot;:886,&quot;mapbox-gl&quot;:473}],890:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){var e=t.editType;return{t:{valType:&quot;number&quot;,dflt:0,editType:e},r:{valType:&quot;number&quot;,dflt:0,editType:e},b:{valType:&quot;number&quot;,dflt:0,editType:e},l:{valType:&quot;number&quot;,dflt:0,editType:e},editType:e}}},{}],891:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-time-format&quot;).timeFormatLocale,a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../registry&quot;),s=t(&quot;../plot_api/plot_schema&quot;),l=t(&quot;../plot_api/plot_template&quot;),c=t(&quot;../lib&quot;),u=t(&quot;../components/color&quot;),f=t(&quot;../constants/numerical&quot;).BADNUM,h=t(&quot;./cartesian/axis_ids&quot;),p=t(&quot;./cartesian/handle_outline&quot;).clearSelect,d=t(&quot;./animation_attributes&quot;),g=t(&quot;./frame_attributes&quot;),m=t(&quot;../plots/get_data&quot;).getModuleCalcData,v=c.relinkPrivateKeys,y=c._,x=e.exports={};c.extendFlat(x,o),x.attributes=t(&quot;./attributes&quot;),x.attributes.type.values=x.allTypes,x.fontAttrs=t(&quot;./font_attributes&quot;),x.layoutAttributes=t(&quot;./layout_attributes&quot;),x.fontWeight=&quot;normal&quot;;var b=x.transformsRegistry,_=t(&quot;./command&quot;);x.executeAPICommand=_.executeAPICommand,x.computeAPICommandBindings=_.computeAPICommandBindings,x.manageCommandObserver=_.manageCommandObserver,x.hasSimpleAPICommandBindings=_.hasSimpleAPICommandBindings,x.redrawText=function(t){var e=(t=c.getGraphDiv(t))._fullLayout||{};if(!(!(e._has&amp;&amp;e._has(&quot;polar&quot;))&amp;&amp;t.data&amp;&amp;t.data[0]&amp;&amp;t.data[0].r))return new Promise((function(e){setTimeout((function(){o.getComponentMethod(&quot;annotations&quot;,&quot;draw&quot;)(t),o.getComponentMethod(&quot;legend&quot;,&quot;draw&quot;)(t),o.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t),e(x.previousPromises(t))}),300)}))},x.resize=function(t){var e;t=c.getGraphDiv(t);var r=new Promise((function(r,n){t&amp;&amp;!c.isHidden(t)||n(new Error(&quot;Resize must be passed a displayed plot div element.&quot;)),t._redrawTimer&amp;&amp;clearTimeout(t._redrawTimer),t._resolveResize&amp;&amp;(e=t._resolveResize),t._resolveResize=r,t._redrawTimer=setTimeout((function(){if(!t.layout||t.layout.width&amp;&amp;t.layout.height||c.isHidden(t))r(t);else{delete t.layout.width,delete t.layout.height;var e=t.changed;t.autoplay=!0,o.call(&quot;relayout&quot;,t,{autosize:!0}).then((function(){t.changed=e,t._resolveResize===r&amp;&amp;(delete t._resolveResize,r(t))}))}}),100)}));return e&amp;&amp;e(r),r},x.previousPromises=function(t){if((t._promises||[]).length)return Promise.all(t._promises).then((function(){t._promises=[]}))},x.addLinks=function(t){if(t._context.showLink||t._context.showSources){var e=t._fullLayout,r=c.ensureSingle(e._paper,&quot;text&quot;,&quot;js-plot-link-container&quot;,(function(t){t.style({&quot;font-family&quot;:'&quot;Open Sans&quot;, Arial, sans-serif',&quot;font-size&quot;:&quot;12px&quot;,fill:u.defaultLine,&quot;pointer-events&quot;:&quot;all&quot;}).each((function(){var t=n.select(this);t.append(&quot;tspan&quot;).classed(&quot;js-link-to-tool&quot;,!0),t.append(&quot;tspan&quot;).classed(&quot;js-link-spacer&quot;,!0),t.append(&quot;tspan&quot;).classed(&quot;js-sourcelinks&quot;,!0)}))})),i=r.node(),a={y:e._paper.attr(&quot;height&quot;)-9};document.body.contains(i)&amp;&amp;i.getComputedTextLength()&gt;=e.width-20?(a[&quot;text-anchor&quot;]=&quot;start&quot;,a.x=5):(a[&quot;text-anchor&quot;]=&quot;end&quot;,a.x=e._paper.attr(&quot;width&quot;)-7),r.attr(a);var o=r.select(&quot;.js-link-to-tool&quot;),s=r.select(&quot;.js-link-spacer&quot;),l=r.select(&quot;.js-sourcelinks&quot;);t._context.showSources&amp;&amp;t._context.showSources(t),t._context.showLink&amp;&amp;function(t,e){e.text(&quot;&quot;);var r=e.append(&quot;a&quot;).attr({&quot;xlink:xlink:href&quot;:&quot;#&quot;,class:&quot;link--impt link--embedview&quot;,&quot;font-weight&quot;:&quot;bold&quot;}).text(t._context.linkText+&quot; &quot;+String.fromCharCode(187));if(t._context.sendData)r.on(&quot;click&quot;,(function(){x.sendDataToCloud(t)}));else{var n=window.location.pathname.split(&quot;/&quot;),i=window.location.search;r.attr({&quot;xlink:xlink:show&quot;:&quot;new&quot;,&quot;xlink:xlink:href&quot;:&quot;/&quot;+n[2].split(&quot;.&quot;)[0]+&quot;/&quot;+n[1]+i})}}(t,o),s.text(o.text()&amp;&amp;l.text()?&quot; - &quot;:&quot;&quot;)}},x.sendDataToCloud=function(t){var e=(window.PLOTLYENV||{}).BASE_URL||t._context.plotlyServerURL;if(e){t.emit(&quot;plotly_beforeexport&quot;);var r=n.select(t).append(&quot;div&quot;).attr(&quot;id&quot;,&quot;hiddenform&quot;).style(&quot;display&quot;,&quot;none&quot;),i=r.append(&quot;form&quot;).attr({action:e+&quot;/external&quot;,method:&quot;post&quot;,target:&quot;_blank&quot;});return i.append(&quot;input&quot;).attr({type:&quot;text&quot;,name:&quot;data&quot;}).node().value=x.graphJson(t,!1,&quot;keepdata&quot;),i.node().submit(),r.remove(),t.emit(&quot;plotly_afterexport&quot;),!1}};var w=[&quot;days&quot;,&quot;shortDays&quot;,&quot;months&quot;,&quot;shortMonths&quot;,&quot;periods&quot;,&quot;dateTime&quot;,&quot;date&quot;,&quot;time&quot;,&quot;decimal&quot;,&quot;thousands&quot;,&quot;grouping&quot;,&quot;currency&quot;],T=[&quot;year&quot;,&quot;month&quot;,&quot;dayMonth&quot;,&quot;dayMonthYear&quot;];function k(t,e){var r=t._context.locale;r||(r=&quot;en-US&quot;);var n=!1,i={};function a(t){for(var r=!0,a=0;a&lt;e.length;a++){var o=e[a];i[o]||(t[o]?i[o]=t[o]:r=!1)}r&amp;&amp;(n=!0)}for(var s=0;s&lt;2;s++){for(var l=t._context.locales,c=0;c&lt;2;c++){var u=(l[r]||{}).format;if(u&amp;&amp;(a(u),n))break;l=o.localeRegistry}var f=r.split(&quot;-&quot;)[0];if(n||f===r)break;r=f}return n||a(o.localeRegistry.en.format),i}function M(t,e){var r={_fullLayout:e},n=&quot;x&quot;===t._id.charAt(0),i=t._mainAxis._anchorAxis,a=&quot;&quot;,o=&quot;&quot;,s=&quot;&quot;;if(i&amp;&amp;(s=i._mainAxis._id,a=n?t._id+s:s+t._id),!a||!e._plots[a]){a=&quot;&quot;;for(var l=t._counterAxes,c=0;c&lt;l.length;c++){var u=l[c],f=n?t._id+u:u+t._id;o||(o=f);var p=h.getFromId(r,u);if(s&amp;&amp;p.overlaying===s){a=f;break}}}return a||o}function A(t){var e=t.transforms;if(Array.isArray(e)&amp;&amp;e.length)for(var r=0;r&lt;e.length;r++){var n=e[r],i=n._module||b[n.type];if(i&amp;&amp;i.makesData)return!0}return!1}function S(t,e,r,n){for(var i=t.transforms,a=[t],o=0;o&lt;i.length;o++){var s=i[o],l=b[s.type];l&amp;&amp;l.transform&amp;&amp;(a=l.transform(a,{transform:s,fullTrace:t,fullData:e,layout:r,fullLayout:n,transformIndex:o}))}return a}function E(t){return&quot;string&quot;==typeof t&amp;&amp;&quot;px&quot;===t.substr(t.length-2)&amp;&amp;parseFloat(t)}function C(t){var e=t.margin;if(!t._size){var r=t._size={l:Math.round(e.l),r:Math.round(e.r),t:Math.round(e.t),b:Math.round(e.b),p:Math.round(e.pad)};r.w=Math.round(t.width)-r.l-r.r,r.h=Math.round(t.height)-r.t-r.b}t._pushmargin||(t._pushmargin={}),t._pushmarginIds||(t._pushmarginIds={})}x.supplyDefaults=function(t,e){var r=e&amp;&amp;e.skipUpdateCalc,a=t._fullLayout||{};if(a._skipDefaults)delete a._skipDefaults;else{var s,l=t._fullLayout={},u=t.layout||{},f=t._fullData||[],h=t._fullData=[],d=t.data||[],g=t.calcdata||[],m=t._context||{};t._transitionData||x.createTransitionData(t),l._dfltTitle={plot:y(t,&quot;Click to enter Plot title&quot;),x:y(t,&quot;Click to enter X axis title&quot;),y:y(t,&quot;Click to enter Y axis title&quot;),colorbar:y(t,&quot;Click to enter Colorscale title&quot;),annotation:y(t,&quot;new text&quot;)},l._traceWord=y(t,&quot;trace&quot;);var b=k(t,w);if(l._mapboxAccessToken=m.mapboxAccessToken,a._initialAutoSizeIsDone){var _=a.width,M=a.height;x.supplyLayoutGlobalDefaults(u,l,b),u.width||(l.width=_),u.height||(l.height=M),x.sanitizeMargins(l)}else{x.supplyLayoutGlobalDefaults(u,l,b);var A=!u.width||!u.height,S=l.autosize,E=m.autosizable;A&amp;&amp;(S||E)?x.plotAutoSize(t,u,l):A&amp;&amp;x.sanitizeMargins(l),!S&amp;&amp;A&amp;&amp;(u.width=l.width,u.height=l.height)}l._d3locale=function(t,e){return t.decimal=e.charAt(0),t.thousands=e.charAt(1),{numberFormat:n.locale(t).numberFormat,timeFormat:i(t).utcFormat}}(b,l.separators),l._extraFormat=k(t,T),l._initialAutoSizeIsDone=!0,l._dataLength=d.length,l._modules=[],l._visibleModules=[],l._basePlotModules=[];var L=l._subplots=function(){var t,e,r=o.collectableSubplotTypes,n={};if(!r){r=[];var i=o.subplotsRegistry;for(var a in i){var s=i[a].attr;if(s&amp;&amp;(r.push(a),Array.isArray(s)))for(e=0;e&lt;s.length;e++)c.pushUnique(r,s[e])}}for(t=0;t&lt;r.length;t++)n[r[t]]=[];return n}(),I=l._splomAxes={x:{},y:{}},P=l._splomSubplots={};l._splomGridDflt={},l._scatterStackOpts={},l._firstScatter={},l._alignmentOpts={},l._colorAxes={},l._requestRangeslider={},l._traceUids=function(t,e){var r,n,i=e.length,a=[];for(r=0;r&lt;t.length;r++){var o=t[r]._fullInput;o!==n&amp;&amp;a.push(o),n=o}var s=a.length,l=new Array(i),u={};function f(t,e){l[e]=t,u[t]=1}function h(t,e){if(t&amp;&amp;&quot;string&quot;==typeof t&amp;&amp;!u[t])return f(t,e),!0}for(r=0;r&lt;i;r++){var p=e[r].uid;&quot;number&quot;==typeof p&amp;&amp;(p=String(p)),h(p,r)||(r&lt;s&amp;&amp;h(a[r].uid,r)||f(c.randstr(u),r))}return l}(f,d),l._globalTransforms=(t._context||{}).globalTransforms,x.supplyDataDefaults(d,h,u,l);var z=Object.keys(I.x),O=Object.keys(I.y);if(z.length&gt;1&amp;&amp;O.length&gt;1){for(o.getComponentMethod(&quot;grid&quot;,&quot;sizeDefaults&quot;)(u,l),s=0;s&lt;z.length;s++)c.pushUnique(L.xaxis,z[s]);for(s=0;s&lt;O.length;s++)c.pushUnique(L.yaxis,O[s]);for(var D in P)c.pushUnique(L.cartesian,D)}if(l._has=x._hasPlotType.bind(l),f.length===h.length)for(s=0;s&lt;h.length;s++)v(h[s],f[s]);x.supplyLayoutModuleDefaults(u,l,h,t._transitionData);var R=l._visibleModules,F=[];for(s=0;s&lt;R.length;s++){var B=R[s].crossTraceDefaults;B&amp;&amp;c.pushUnique(F,B)}for(s=0;s&lt;F.length;s++)F[s](h,l);l._hasOnlyLargeSploms=1===l._basePlotModules.length&amp;&amp;&quot;splom&quot;===l._basePlotModules[0].name&amp;&amp;z.length&gt;15&amp;&amp;O.length&gt;15&amp;&amp;0===l.shapes.length&amp;&amp;0===l.images.length,l._hasCartesian=l._has(&quot;cartesian&quot;),l._hasGeo=l._has(&quot;geo&quot;),l._hasGL3D=l._has(&quot;gl3d&quot;),l._hasGL2D=l._has(&quot;gl2d&quot;),l._hasTernary=l._has(&quot;ternary&quot;),l._hasPie=l._has(&quot;pie&quot;),x.linkSubplots(h,l,f,a),x.cleanPlot(h,l,f,a);var N=!(!a._has||!a._has(&quot;gl2d&quot;)),j=!(!l._has||!l._has(&quot;gl2d&quot;)),U=!(!a._has||!a._has(&quot;cartesian&quot;))||N,V=!(!l._has||!l._has(&quot;cartesian&quot;))||j;U&amp;&amp;!V?a._bgLayer.remove():V&amp;&amp;!U&amp;&amp;(l._shouldCreateBgLayer=!0),a._zoomlayer&amp;&amp;!t._dragging&amp;&amp;p({_fullLayout:a}),function(t,e){var r,n=[];e.meta&amp;&amp;(r=e._meta={meta:e.meta,layout:{meta:e.meta}});for(var i=0;i&lt;t.length;i++){var a=t[i];a.meta?n[a.index]=a._meta={meta:a.meta}:e.meta&amp;&amp;(a._meta={meta:e.meta}),e.meta&amp;&amp;(a._meta.layout={meta:e.meta})}n.length&amp;&amp;(r||(r=e._meta={}),r.data=n)}(h,l),v(l,a),o.getComponentMethod(&quot;colorscale&quot;,&quot;crossTraceDefaults&quot;)(h,l),l._preGUI||(l._preGUI={}),l._tracePreGUI||(l._tracePreGUI={});var q,H=l._tracePreGUI,G={};for(q in H)G[q]=&quot;old&quot;;for(s=0;s&lt;h.length;s++)G[q=h[s]._fullInput.uid]||(H[q]={}),G[q]=&quot;new&quot;;for(q in G)&quot;old&quot;===G[q]&amp;&amp;delete H[q];C(l),o.getComponentMethod(&quot;rangeslider&quot;,&quot;makeData&quot;)(l),r||g.length!==h.length||x.supplyDefaultsUpdateCalc(g,h)}},x.supplyDefaultsUpdateCalc=function(t,e){for(var r=0;r&lt;e.length;r++){var n=e[r],i=(t[r]||[])[0];if(i&amp;&amp;i.trace){var a=i.trace;if(a._hasCalcTransform){var o,s,l,u=a._arrayAttrs;for(o=0;o&lt;u.length;o++)s=u[o],l=c.nestedProperty(a,s).get().slice(),c.nestedProperty(n,s).set(l)}i.trace=n}}},x.createTransitionData=function(t){t._transitionData||(t._transitionData={}),t._transitionData._frames||(t._transitionData._frames=[]),t._transitionData._frameHash||(t._transitionData._frameHash={}),t._transitionData._counter||(t._transitionData._counter=0),t._transitionData._interruptCallbacks||(t._transitionData._interruptCallbacks=[])},x._hasPlotType=function(t){var e,r=this._basePlotModules||[];for(e=0;e&lt;r.length;e++)if(r[e].name===t)return!0;var n=this._modules||[];for(e=0;e&lt;n.length;e++){var i=n[e].name;if(i===t)return!0;var a=o.modules[i];if(a&amp;&amp;a.categories[t])return!0}return!1},x.cleanPlot=function(t,e,r,n){var i,a,o=n._basePlotModules||[];for(i=0;i&lt;o.length;i++){var s=o[i];s.clean&amp;&amp;s.clean(t,e,r,n)}var l=n._has&amp;&amp;n._has(&quot;gl&quot;),c=e._has&amp;&amp;e._has(&quot;gl&quot;);l&amp;&amp;!c&amp;&amp;void 0!==n._glcontainer&amp;&amp;(n._glcontainer.selectAll(&quot;.gl-canvas&quot;).remove(),n._glcontainer.selectAll(&quot;.no-webgl&quot;).remove(),n._glcanvas=null);var u=!!n._infolayer;t:for(i=0;i&lt;r.length;i++){var f=r[i].uid;for(a=0;a&lt;t.length;a++){if(f===t[a].uid)continue t}u&amp;&amp;n._infolayer.select(&quot;.cb&quot;+f).remove()}},x.linkSubplots=function(t,e,r,n){var i,a,s=n._plots||{},l=e._plots={},u=e._subplots,f={_fullData:t,_fullLayout:e},p=u.cartesian.concat(u.gl2d||[]);for(i=0;i&lt;p.length;i++){var d,g=p[i],m=s[g],v=h.getFromId(f,g,&quot;x&quot;),y=h.getFromId(f,g,&quot;y&quot;);for(m?d=l[g]=m:(d=l[g]={}).id=g,v._counterAxes.push(y._id),y._counterAxes.push(v._id),v._subplotsWith.push(g),y._subplotsWith.push(g),d.xaxis=v,d.yaxis=y,d._hasClipOnAxisFalse=!1,a=0;a&lt;t.length;a++){var x=t[a];if(x.xaxis===d.xaxis._id&amp;&amp;x.yaxis===d.yaxis._id&amp;&amp;!1===x.cliponaxis){d._hasClipOnAxisFalse=!0;break}}}var b,_=h.list(f,null,!0);for(i=0;i&lt;_.length;i++){var w=null;(b=_[i]).overlaying&amp;&amp;(w=h.getFromId(f,b.overlaying))&amp;&amp;w.overlaying&amp;&amp;(b.overlaying=!1,w=null),b._mainAxis=w||b,w&amp;&amp;(b.domain=w.domain.slice()),b._anchorAxis=&quot;free&quot;===b.anchor?null:h.getFromId(f,b.anchor)}for(i=0;i&lt;_.length;i++)if((b=_[i])._counterAxes.sort(h.idSort),b._subplotsWith.sort(c.subplotSort),b._mainSubplot=M(b,e),b._counterAxes.length&amp;&amp;(b.spikemode&amp;&amp;-1!==b.spikemode.indexOf(&quot;across&quot;)||b.automargin&amp;&amp;b.mirror&amp;&amp;&quot;free&quot;!==b.anchor||o.getComponentMethod(&quot;rangeslider&quot;,&quot;isVisible&quot;)(b))){var T=1,k=0;for(a=0;a&lt;b._counterAxes.length;a++){var A=h.getFromId(f,b._counterAxes[a]);T=Math.min(T,A.domain[0]),k=Math.max(k,A.domain[1])}T&lt;k&amp;&amp;(b._counterDomainMin=T,b._counterDomainMax=k)}},x.clearExpandedTraceDefaultColors=function(t){var e,r,n;for(r=[],(e=t._module._colorAttrs)||(t._module._colorAttrs=e=[],s.crawl(t._module.attributes,(function(t,n,i,a){r[a]=n,r.length=a+1,&quot;color&quot;===t.valType&amp;&amp;void 0===t.dflt&amp;&amp;e.push(r.join(&quot;.&quot;))}))),n=0;n&lt;e.length;n++){c.nestedProperty(t,&quot;_input.&quot;+e[n]).get()||c.nestedProperty(t,e[n]).set(null)}},x.supplyDataDefaults=function(t,e,r,n){var i,a,s,u=n._modules,f=n._visibleModules,h=n._basePlotModules,p=0,d=0;function g(t){e.push(t);var r=t._module;r&amp;&amp;(c.pushUnique(u,r),!0===t.visible&amp;&amp;c.pushUnique(f,r),c.pushUnique(h,t._module.basePlotModule),p++,!1!==t._input.visible&amp;&amp;d++)}n._transformModules=[];var m={},y=[],b=(r.template||{}).data||{},_=l.traceTemplater(b);for(i=0;i&lt;t.length;i++){if(s=t[i],(a=_.newTrace(s)).uid=n._traceUids[i],x.supplyTraceDefaults(s,a,d,n,i),a.index=i,a._input=s,a._expandedIndex=p,a.transforms&amp;&amp;a.transforms.length)for(var w=!1!==s.visible&amp;&amp;!1===a.visible,T=S(a,e,r,n),k=0;k&lt;T.length;k++){var M=T[k],A={_template:a._template,type:a.type,uid:a.uid+k};w&amp;&amp;!1===M.visible&amp;&amp;delete M.visible,x.supplyTraceDefaults(M,A,p,n,i),v(A,M),A.index=i,A._input=s,A._fullInput=a,A._expandedIndex=p,A._expandedInput=M,g(A)}else a._fullInput=a,a._expandedInput=a,g(a);o.traceIs(a,&quot;carpetAxis&quot;)&amp;&amp;(m[a.carpet]=a),o.traceIs(a,&quot;carpetDependent&quot;)&amp;&amp;y.push(i)}for(i=0;i&lt;y.length;i++)if((a=e[y[i]]).visible){var E=m[a.carpet];a._carpet=E,E&amp;&amp;E.visible?(a.xaxis=E.xaxis,a.yaxis=E.yaxis):a.visible=!1}},x.supplyAnimationDefaults=function(t){var e;t=t||{};var r={};function n(e,n){return c.coerce(t||{},r,d,e,n)}if(n(&quot;mode&quot;),n(&quot;direction&quot;),n(&quot;fromcurrent&quot;),Array.isArray(t.frame))for(r.frame=[],e=0;e&lt;t.frame.length;e++)r.frame[e]=x.supplyAnimationFrameDefaults(t.frame[e]||{});else r.frame=x.supplyAnimationFrameDefaults(t.frame||{});if(Array.isArray(t.transition))for(r.transition=[],e=0;e&lt;t.transition.length;e++)r.transition[e]=x.supplyAnimationTransitionDefaults(t.transition[e]||{});else r.transition=x.supplyAnimationTransitionDefaults(t.transition||{});return r},x.supplyAnimationFrameDefaults=function(t){var e={};function r(r,n){return c.coerce(t||{},e,d.frame,r,n)}return r(&quot;duration&quot;),r(&quot;redraw&quot;),e},x.supplyAnimationTransitionDefaults=function(t){var e={};function r(r,n){return c.coerce(t||{},e,d.transition,r,n)}return r(&quot;duration&quot;),r(&quot;easing&quot;),e},x.supplyFrameDefaults=function(t){var e={};function r(r,n){return c.coerce(t,e,g,r,n)}return r(&quot;group&quot;),r(&quot;name&quot;),r(&quot;traces&quot;),r(&quot;baseframe&quot;),r(&quot;data&quot;),r(&quot;layout&quot;),e},x.supplyTraceDefaults=function(t,e,r,n,i){var a,s=n.colorway||u.defaults,l=s[r%s.length];function f(r,n){return c.coerce(t,e,x.attributes,r,n)}var h=f(&quot;visible&quot;);f(&quot;type&quot;),f(&quot;name&quot;,n._traceWord+&quot; &quot;+i),f(&quot;uirevision&quot;,n.uirevision);var p=x.getModule(e);if(e._module=p,p){var d=p.basePlotModule,g=d.attr,m=d.attributes;if(g&amp;&amp;m){var v=n._subplots,y=&quot;&quot;;if(h||&quot;gl2d&quot;!==d.name){if(Array.isArray(g))for(a=0;a&lt;g.length;a++){var b=g[a],_=c.coerce(t,e,m,b);v[b]&amp;&amp;c.pushUnique(v[b],_),y+=_}else y=c.coerce(t,e,m,g);v[d.name]&amp;&amp;c.pushUnique(v[d.name],y)}}}return h&amp;&amp;(f(&quot;customdata&quot;),f(&quot;ids&quot;),f(&quot;meta&quot;),o.traceIs(e,&quot;showLegend&quot;)?(c.coerce(t,e,p.attributes.showlegend?p.attributes:x.attributes,&quot;showlegend&quot;),f(&quot;legendgroup&quot;),e._dfltShowLegend=!0):e._dfltShowLegend=!1,p&amp;&amp;p.supplyDefaults(t,e,l,n),o.traceIs(e,&quot;noOpacity&quot;)||f(&quot;opacity&quot;),o.traceIs(e,&quot;notLegendIsolatable&quot;)&amp;&amp;(e.visible=!!e.visible),o.traceIs(e,&quot;noHover&quot;)||(e.hovertemplate||c.coerceHoverinfo(t,e,n),&quot;parcats&quot;!==e.type&amp;&amp;o.getComponentMethod(&quot;fx&quot;,&quot;supplyDefaults&quot;)(t,e,l,n)),p&amp;&amp;p.selectPoints&amp;&amp;f(&quot;selectedpoints&quot;),x.supplyTransformDefaults(t,e,n)),e},x.hasMakesDataTransform=A,x.supplyTransformDefaults=function(t,e,r){if(e._length||A(t)){var n=r._globalTransforms||[],i=r._transformModules||[];if(Array.isArray(t.transforms)||0!==n.length)for(var a=t.transforms||[],o=n.concat(a),s=e.transforms=[],l=0;l&lt;o.length;l++){var u,f=o[l],h=f.type,p=b[h],d=!(f._module&amp;&amp;f._module===p),g=p&amp;&amp;&quot;function&quot;==typeof p.transform;p||c.warn(&quot;Unrecognized transform type &quot;+h+&quot;.&quot;),p&amp;&amp;p.supplyDefaults&amp;&amp;(d||g)?((u=p.supplyDefaults(f,e,r,t)).type=h,u._module=p,c.pushUnique(i,p)):u=c.extendFlat({},f),s.push(u)}}},x.supplyLayoutGlobalDefaults=function(t,e,r){function n(r,n){return c.coerce(t,e,x.layoutAttributes,r,n)}var i=t.template;c.isPlainObject(i)&amp;&amp;(e.template=i,e._template=i.layout,e._dataTemplate=i.data),n(&quot;autotypenumbers&quot;);var a=c.coerceFont(n,&quot;font&quot;);n(&quot;title.text&quot;,e._dfltTitle.plot),c.coerceFont(n,&quot;title.font&quot;,{family:a.family,size:Math.round(1.4*a.size),color:a.color}),n(&quot;title.xref&quot;),n(&quot;title.yref&quot;),n(&quot;title.x&quot;),n(&quot;title.y&quot;),n(&quot;title.xanchor&quot;),n(&quot;title.yanchor&quot;),n(&quot;title.pad.t&quot;),n(&quot;title.pad.r&quot;),n(&quot;title.pad.b&quot;),n(&quot;title.pad.l&quot;),n(&quot;uniformtext.mode&quot;)&amp;&amp;n(&quot;uniformtext.minsize&quot;),n(&quot;autosize&quot;,!(t.width&amp;&amp;t.height)),n(&quot;width&quot;),n(&quot;height&quot;),n(&quot;margin.l&quot;),n(&quot;margin.r&quot;),n(&quot;margin.t&quot;),n(&quot;margin.b&quot;),n(&quot;margin.pad&quot;),n(&quot;margin.autoexpand&quot;),t.width&amp;&amp;t.height&amp;&amp;x.sanitizeMargins(e),o.getComponentMethod(&quot;grid&quot;,&quot;sizeDefaults&quot;)(t,e),n(&quot;paper_bgcolor&quot;),n(&quot;separators&quot;,r.decimal+r.thousands),n(&quot;hidesources&quot;),n(&quot;colorway&quot;),n(&quot;datarevision&quot;);var s=n(&quot;uirevision&quot;);n(&quot;editrevision&quot;,s),n(&quot;selectionrevision&quot;,s),n(&quot;modebar.orientation&quot;),n(&quot;modebar.bgcolor&quot;,u.addOpacity(e.paper_bgcolor,.5));var l=u.contrast(u.rgb(e.modebar.bgcolor));n(&quot;modebar.color&quot;,u.addOpacity(l,.3)),n(&quot;modebar.activecolor&quot;,u.addOpacity(l,.7)),n(&quot;modebar.uirevision&quot;,s),o.getComponentMethod(&quot;shapes&quot;,&quot;supplyDrawNewShapeDefaults&quot;)(t,e,n),n(&quot;meta&quot;),c.isPlainObject(t.transition)&amp;&amp;(n(&quot;transition.duration&quot;),n(&quot;transition.easing&quot;),n(&quot;transition.ordering&quot;)),o.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;),o.getComponentMethod(&quot;fx&quot;,&quot;supplyLayoutGlobalDefaults&quot;)(t,e,n)},x.plotAutoSize=function(t,e,r){var n,i,o=t._context||{},s=o.frameMargins,l=c.isPlotDiv(t);if(l&amp;&amp;t.emit(&quot;plotly_autosize&quot;),o.fillFrame)n=window.innerWidth,i=window.innerHeight,document.body.style.overflow=&quot;hidden&quot;;else{var u=l?window.getComputedStyle(t):{};if(n=E(u.width)||E(u.maxWidth)||r.width,i=E(u.height)||E(u.maxHeight)||r.height,a(s)&amp;&amp;s&gt;0){var f=1-2*s;n=Math.round(f*n),i=Math.round(f*i)}}var h=x.layoutAttributes.width.min,p=x.layoutAttributes.height.min;n&lt;h&amp;&amp;(n=h),i&lt;p&amp;&amp;(i=p);var d=!e.width&amp;&amp;Math.abs(r.width-n)&gt;1,g=!e.height&amp;&amp;Math.abs(r.height-i)&gt;1;(g||d)&amp;&amp;(d&amp;&amp;(r.width=n),g&amp;&amp;(r.height=i)),t._initialAutoSize||(t._initialAutoSize={width:n,height:i}),x.sanitizeMargins(r)},x.supplyLayoutModuleDefaults=function(t,e,r,n){var i,a,s,l=o.componentsRegistry,u=e._basePlotModules,f=o.subplotsRegistry.cartesian;for(i in l)(s=l[i]).includeBasePlot&amp;&amp;s.includeBasePlot(t,e);for(var h in u.length||u.push(f),e._has(&quot;cartesian&quot;)&amp;&amp;(o.getComponentMethod(&quot;grid&quot;,&quot;contentDefaults&quot;)(t,e),f.finalizeSubplots(t,e)),e._subplots)e._subplots[h].sort(c.subplotSort);for(a=0;a&lt;u.length;a++)(s=u[a]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r);var p=e._modules;for(a=0;a&lt;p.length;a++)(s=p[a]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r);var d=e._transformModules;for(a=0;a&lt;d.length;a++)(s=d[a]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r,n);for(i in l)(s=l[i]).supplyLayoutDefaults&amp;&amp;s.supplyLayoutDefaults(t,e,r)},x.purge=function(t){var e=t._fullLayout||{};void 0!==e._glcontainer&amp;&amp;(e._glcontainer.selectAll(&quot;.gl-canvas&quot;).remove(),e._glcontainer.remove(),e._glcanvas=null),e._modeBar&amp;&amp;e._modeBar.destroy(),t._transitionData&amp;&amp;(t._transitionData._interruptCallbacks&amp;&amp;(t._transitionData._interruptCallbacks.length=0),t._transitionData._animationRaf&amp;&amp;window.cancelAnimationFrame(t._transitionData._animationRaf)),c.clearThrottle(),c.clearResponsive(t),delete t.data,delete t.layout,delete t._fullData,delete t._fullLayout,delete t.calcdata,delete t.framework,delete t.empty,delete t.fid,delete t.undoqueue,delete t.undonum,delete t.autoplay,delete t.changed,delete t._promises,delete t._redrawTimer,delete t._hmlumcount,delete t._hmpixcount,delete t._transitionData,delete t._transitioning,delete t._initialAutoSize,delete t._transitioningWithDuration,delete t._dragging,delete t._dragged,delete t._dragdata,delete t._hoverdata,delete t._snapshotInProgress,delete t._editing,delete t._mouseDownTime,delete t._legendMouseDownTime,t.removeAllListeners&amp;&amp;t.removeAllListeners()},x.style=function(t){var e,r=t._fullLayout._visibleModules,n=[];for(e=0;e&lt;r.length;e++){var i=r[e];i.style&amp;&amp;c.pushUnique(n,i.style)}for(e=0;e&lt;n.length;e++)n[e](t)},x.sanitizeMargins=function(t){if(t&amp;&amp;t.margin){var e,r=t.width,n=t.height,i=t.margin,a=r-(i.l+i.r),o=n-(i.t+i.b);a&lt;0&amp;&amp;(e=(r-1)/(i.l+i.r),i.l=Math.floor(e*i.l),i.r=Math.floor(e*i.r)),o&lt;0&amp;&amp;(e=(n-1)/(i.t+i.b),i.t=Math.floor(e*i.t),i.b=Math.floor(e*i.b))}},x.clearAutoMarginIds=function(t){t._fullLayout._pushmarginIds={}},x.allowAutoMargin=function(t,e){t._fullLayout._pushmarginIds[e]=1};x.autoMargin=function(t,e,r){var n=t._fullLayout,i=n.width,a=n.height,o=n.margin,s=c.constrain(i-o.l-o.r,2,64),l=c.constrain(a-o.t-o.b,2,64),u=Math.max(0,i-s),f=Math.max(0,a-l),h=n._pushmargin,p=n._pushmarginIds;if(!1!==o.autoexpand){if(r){var d=r.pad;if(void 0===d&amp;&amp;(d=Math.min(12,o.l,o.r,o.t,o.b)),u){var g=(r.l+r.r)/u;g&gt;1&amp;&amp;(r.l/=g,r.r/=g)}if(f){var m=(r.t+r.b)/f;m&gt;1&amp;&amp;(r.t/=m,r.b/=m)}var v=void 0!==r.xl?r.xl:r.x,y=void 0!==r.xr?r.xr:r.x,b=void 0!==r.yt?r.yt:r.y,_=void 0!==r.yb?r.yb:r.y;h[e]={l:{val:v,size:r.l+d},r:{val:y,size:r.r+d},b:{val:_,size:r.b+d},t:{val:b,size:r.t+d}},p[e]=1}else delete h[e],delete p[e];if(!n._replotting)return x.doAutoMargin(t)}},x.doAutoMargin=function(t){var e=t._fullLayout,r=e.width,n=e.height;e._size||(e._size={}),C(e);var i=e._size,s=e.margin,l=c.extendFlat({},i),u=s.l,f=s.r,p=s.t,d=s.b,g=e._pushmargin,m=e._pushmarginIds;if(!1!==e.margin.autoexpand){for(var v in g)m[v]||delete g[v];for(var y in g.base={l:{val:0,size:u},r:{val:1,size:f},t:{val:1,size:p},b:{val:0,size:d}},g){var b=g[y].l||{},_=g[y].b||{},w=b.val,T=b.size,k=_.val,M=_.size;for(var A in g){if(a(T)&amp;&amp;g[A].r){var S=g[A].r.val,E=g[A].r.size;if(S&gt;w){var L=(T*S+(E-r)*w)/(S-w),I=(E*(1-w)+(T-r)*(1-S))/(S-w);L+I&gt;u+f&amp;&amp;(u=L,f=I)}}if(a(M)&amp;&amp;g[A].t){var P=g[A].t.val,z=g[A].t.size;if(P&gt;k){var O=(M*P+(z-n)*k)/(P-k),D=(z*(1-k)+(M-n)*(1-P))/(P-k);O+D&gt;d+p&amp;&amp;(d=O,p=D)}}}}}var R=c.constrain(r-s.l-s.r,2,64),F=c.constrain(n-s.t-s.b,2,64),B=Math.max(0,r-R),N=Math.max(0,n-F);if(B){var j=(u+f)/B;j&gt;1&amp;&amp;(u/=j,f/=j)}if(N){var U=(d+p)/N;U&gt;1&amp;&amp;(d/=U,p/=U)}if(i.l=Math.round(u),i.r=Math.round(f),i.t=Math.round(p),i.b=Math.round(d),i.p=Math.round(s.pad),i.w=Math.round(r)-i.l-i.r,i.h=Math.round(n)-i.t-i.b,!e._replotting&amp;&amp;x.didMarginChange(l,i)){&quot;_redrawFromAutoMarginCount&quot;in e?e._redrawFromAutoMarginCount++:e._redrawFromAutoMarginCount=1;var V=3*(1+Object.keys(m).length);if(e._redrawFromAutoMarginCount&lt;V)return o.call(&quot;plot&quot;,t);e._size=l,c.warn(&quot;Too many auto-margin redraws.&quot;)}!function(t){for(var e=h.list(t,&quot;&quot;,!0),r=0;r&lt;e.length;r++){var n=e[r]._hideOutOfRangeInsideTickLabels;n&amp;&amp;n()}}(t)};var L=[&quot;l&quot;,&quot;r&quot;,&quot;t&quot;,&quot;b&quot;,&quot;p&quot;,&quot;w&quot;,&quot;h&quot;];function I(t,e,r){var n=!1;var i=[x.previousPromises,function(){if(t._transitionData)return t._transitioning=!1,function(t){var e=Promise.resolve();if(!t)return e;for(;t.length;)e=e.then(t.shift());return e}(t._transitionData._interruptCallbacks)},r.prepareFn,x.rehover,function(){return t.emit(&quot;plotly_transitioning&quot;,[]),new Promise((function(i){t._transitioning=!0,e.duration&gt;0&amp;&amp;(t._transitioningWithDuration=!0),t._transitionData._interruptCallbacks.push((function(){n=!0})),r.redraw&amp;&amp;t._transitionData._interruptCallbacks.push((function(){return o.call(&quot;redraw&quot;,t)})),t._transitionData._interruptCallbacks.push((function(){t.emit(&quot;plotly_transitioninterrupted&quot;,[])}));var a=0,s=0;function l(){return a++,function(){s++,n||s!==a||function(e){if(!t._transitionData)return;(function(t){if(t)for(;t.length;)t.shift()})(t._transitionData._interruptCallbacks),Promise.resolve().then((function(){if(r.redraw)return o.call(&quot;redraw&quot;,t)})).then((function(){t._transitioning=!1,t._transitioningWithDuration=!1,t.emit(&quot;plotly_transitioned&quot;,[])})).then(e)}(i)}}r.runFn(l),setTimeout(l())}))}],a=c.syncOrAsync(i,t);return a&amp;&amp;a.then||(a=Promise.resolve()),a.then((function(){return t}))}x.didMarginChange=function(t,e){for(var r=0;r&lt;L.length;r++){var n=L[r],i=t[n],o=e[n];if(!a(i)||Math.abs(o-i)&gt;1)return!0}return!1},x.graphJson=function(t,e,r,n,i,a){(i&amp;&amp;e&amp;&amp;!t._fullData||i&amp;&amp;!e&amp;&amp;!t._fullLayout)&amp;&amp;x.supplyDefaults(t);var o=i?t._fullData:t.data,s=i?t._fullLayout:t.layout,l=(t._transitionData||{})._frames;function u(t,e){if(&quot;function&quot;==typeof t)return e?&quot;_function_&quot;:null;if(c.isPlainObject(t)){var n,i={};return Object.keys(t).sort().forEach((function(a){if(-1===[&quot;_&quot;,&quot;[&quot;].indexOf(a.charAt(0)))if(&quot;function&quot;!=typeof t[a]){if(&quot;keepdata&quot;===r){if(&quot;src&quot;===a.substr(a.length-3))return}else if(&quot;keepstream&quot;===r){if(&quot;string&quot;==typeof(n=t[a+&quot;src&quot;])&amp;&amp;n.indexOf(&quot;:&quot;)&gt;0&amp;&amp;!c.isPlainObject(t.stream))return}else if(&quot;keepall&quot;!==r&amp;&amp;&quot;string&quot;==typeof(n=t[a+&quot;src&quot;])&amp;&amp;n.indexOf(&quot;:&quot;)&gt;0)return;i[a]=u(t[a],e)}else e&amp;&amp;(i[a]=&quot;_function&quot;)})),i}return Array.isArray(t)?t.map((function(t){return u(t,e)})):c.isTypedArray(t)?c.simpleMap(t,c.identity):c.isJSDate(t)?c.ms2DateTimeLocal(+t):t}var f={data:(o||[]).map((function(t){var r=u(t);return e&amp;&amp;delete r.fit,r}))};if(!e&amp;&amp;(f.layout=u(s),i)){var h=s._size;f.layout.computed={margin:{b:h.b,l:h.l,r:h.r,t:h.t}}}return t.framework&amp;&amp;t.framework.isPolar&amp;&amp;(f=t.framework.getConfig()),l&amp;&amp;(f.frames=u(l)),a&amp;&amp;(f.config=u(t._context,!0)),&quot;object&quot;===n?f:JSON.stringify(f)},x.modifyFrames=function(t,e){var r,n,i,a=t._transitionData._frames,o=t._transitionData._frameHash;for(r=0;r&lt;e.length;r++)switch((n=e[r]).type){case&quot;replace&quot;:i=n.value;var s=(a[n.index]||{}).name,l=i.name;a[n.index]=o[l]=i,l!==s&amp;&amp;(delete o[s],o[l]=i);break;case&quot;insert&quot;:o[(i=n.value).name]=i,a.splice(n.index,0,i);break;case&quot;delete&quot;:delete o[(i=a[n.index]).name],a.splice(n.index,1)}return Promise.resolve()},x.computeFrame=function(t,e){var r,n,i,a,o=t._transitionData._frameHash;if(!e)throw new Error(&quot;computeFrame must be given a string frame name&quot;);var s=o[e.toString()];if(!s)return!1;for(var l=[s],c=[s.name];s.baseframe&amp;&amp;(s=o[s.baseframe.toString()])&amp;&amp;-1===c.indexOf(s.name);)l.push(s),c.push(s.name);for(var u={};s=l.pop();)if(s.layout&amp;&amp;(u.layout=x.extendLayout(u.layout,s.layout)),s.data){if(u.data||(u.data=[]),!(n=s.traces))for(n=[],r=0;r&lt;s.data.length;r++)n[r]=r;for(u.traces||(u.traces=[]),r=0;r&lt;s.data.length;r++)null!=(i=n[r])&amp;&amp;(-1===(a=u.traces.indexOf(i))&amp;&amp;(a=u.data.length,u.traces[a]=i),u.data[a]=x.extendTrace(u.data[a],s.data[r]))}return u},x.recomputeFrameHash=function(t){for(var e=t._transitionData._frameHash={},r=t._transitionData._frames,n=0;n&lt;r.length;n++){var i=r[n];i&amp;&amp;i.name&amp;&amp;(e[i.name]=i)}},x.extendObjectWithContainers=function(t,e,r){var n,i,a,o,s,l,u,f=c.extendDeepNoArrays({},e||{}),h=c.expandObjectPaths(f),p={};if(r&amp;&amp;r.length)for(a=0;a&lt;r.length;a++)void 0===(i=(n=c.nestedProperty(h,r[a])).get())?c.nestedProperty(p,r[a]).set(null):(n.set(null),c.nestedProperty(p,r[a]).set(i));if(t=c.extendDeepNoArrays(t||{},h),r&amp;&amp;r.length)for(a=0;a&lt;r.length;a++)if(l=c.nestedProperty(p,r[a]).get()){for(u=(s=c.nestedProperty(t,r[a])).get(),Array.isArray(u)||(u=[],s.set(u)),o=0;o&lt;l.length;o++){var d=l[o];u[o]=null===d?null:x.extendObjectWithContainers(u[o],d)}s.set(u)}return t},x.dataArrayContainers=[&quot;transforms&quot;,&quot;dimensions&quot;],x.layoutArrayContainers=o.layoutArrayContainers,x.extendTrace=function(t,e){return x.extendObjectWithContainers(t,e,x.dataArrayContainers)},x.extendLayout=function(t,e){return x.extendObjectWithContainers(t,e,x.layoutArrayContainers)},x.transition=function(t,e,r,n,i,a){var o={redraw:i.redraw},s={},l=[];return o.prepareFn=function(){for(var i=Array.isArray(e)?e.length:0,a=n.slice(0,i),o=0;o&lt;a.length;o++){var u=a[o],f=t._fullData[u]._module;if(f){if(f.animatable){var h=f.basePlotModule.name;s[h]||(s[h]=[]),s[h].push(u)}t.data[a[o]]=x.extendTrace(t.data[a[o]],e[o])}}var p=c.expandObjectPaths(c.extendDeepNoArrays({},r)),d=/^[xy]axis[0-9]*$/;for(var g in p)d.test(g)&amp;&amp;delete p[g].range;x.extendLayout(t.layout,p),delete t.calcdata,x.supplyDefaults(t),x.doCalcdata(t);var m=c.expandObjectPaths(r);if(m){var v=t._fullLayout._plots;for(var y in v){var b=v[y],_=b.xaxis,w=b.yaxis,T=_.range.slice(),k=w.range.slice(),M=null,A=null,S=null,E=null;Array.isArray(m[_._name+&quot;.range&quot;])?M=m[_._name+&quot;.range&quot;].slice():Array.isArray((m[_._name]||{}).range)&amp;&amp;(M=m[_._name].range.slice()),Array.isArray(m[w._name+&quot;.range&quot;])?A=m[w._name+&quot;.range&quot;].slice():Array.isArray((m[w._name]||{}).range)&amp;&amp;(A=m[w._name].range.slice()),T&amp;&amp;M&amp;&amp;(_.r2l(T[0])!==_.r2l(M[0])||_.r2l(T[1])!==_.r2l(M[1]))&amp;&amp;(S={xr0:T,xr1:M}),k&amp;&amp;A&amp;&amp;(w.r2l(k[0])!==w.r2l(A[0])||w.r2l(k[1])!==w.r2l(A[1]))&amp;&amp;(E={yr0:k,yr1:A}),(S||E)&amp;&amp;l.push(c.extendFlat({plotinfo:b},S,E))}}return Promise.resolve()},o.runFn=function(e){var n,i,o=t._fullLayout._basePlotModules,u=l.length;if(r)for(i=0;i&lt;o.length;i++)o[i].transitionAxes&amp;&amp;o[i].transitionAxes(t,l,a,e);for(var f in u?((n=c.extendFlat({},a)).duration=0,delete s.cartesian):n=a,s){var h=s[f];t._fullData[h[0]]._module.basePlotModule.plot(t,h,n,e)}},I(t,a,o)},x.transitionFromReact=function(t,e,r,n){var i=t._fullLayout,a=i.transition,o={},s=[];return o.prepareFn=function(){var t=i._plots;for(var a in o.redraw=!1,&quot;some&quot;===e.anim&amp;&amp;(o.redraw=!0),&quot;some&quot;===r.anim&amp;&amp;(o.redraw=!0),t){var l=t[a],u=l.xaxis,f=l.yaxis,h=n[u._name].range.slice(),p=n[f._name].range.slice(),d=u.range.slice(),g=f.range.slice();u.setScale(),f.setScale();var m=null,v=null;u.r2l(h[0])===u.r2l(d[0])&amp;&amp;u.r2l(h[1])===u.r2l(d[1])||(m={xr0:h,xr1:d}),f.r2l(p[0])===f.r2l(g[0])&amp;&amp;f.r2l(p[1])===f.r2l(g[1])||(v={yr0:p,yr1:g}),(m||v)&amp;&amp;s.push(c.extendFlat({plotinfo:l},m,v))}return Promise.resolve()},o.runFn=function(r){for(var n,i,o,l=t._fullData,u=t._fullLayout._basePlotModules,f=[],h=0;h&lt;l.length;h++)f.push(h);function p(){for(var e=0;e&lt;u.length;e++)u[e].transitionAxes&amp;&amp;u[e].transitionAxes(t,s,n,r)}function d(){for(var e=0;e&lt;u.length;e++)u[e].plot(t,o,i,r)}s.length&amp;&amp;e.anim?&quot;traces first&quot;===a.ordering?(n=c.extendFlat({},a,{duration:0}),o=f,i=a,setTimeout(p,a.duration),d()):(n=a,o=null,i=c.extendFlat({},a,{duration:0}),setTimeout(d,n.duration),p()):s.length?(n=a,p()):e.anim&amp;&amp;(o=f,i=a,d())},I(t,a,o)},x.doCalcdata=function(t,e){var r,n,i,a,l=h.list(t),u=t._fullData,p=t._fullLayout,d=new Array(u.length),g=(t.calcdata||[]).slice();for(t.calcdata=d,p._numBoxes=0,p._numViolins=0,p._violinScaleGroupStats={},t._hmpixcount=0,t._hmlumcount=0,p._piecolormap={},p._sunburstcolormap={},p._treemapcolormap={},p._funnelareacolormap={},i=0;i&lt;u.length;i++)Array.isArray(e)&amp;&amp;-1===e.indexOf(i)&amp;&amp;(d[i]=g[i]);for(i=0;i&lt;u.length;i++)(r=u[i])._arrayAttrs=s.findArrayAttributes(r),r._extremes={};var m=p._subplots.polar||[];for(i=0;i&lt;m.length;i++)l.push(p[m[i]].radialaxis,p[m[i]].angularaxis);for(var v in p._colorAxes){var y=p[v];!1!==y.cauto&amp;&amp;(delete y.cmin,delete y.cmax)}var x=!1;function _(e){if(r=u[e],n=r._module,!0===r.visible&amp;&amp;r.transforms){if(n&amp;&amp;n.calc){var i=n.calc(t,r);i[0]&amp;&amp;i[0].t&amp;&amp;i[0].t._scene&amp;&amp;delete i[0].t._scene.dirty}for(a=0;a&lt;r.transforms.length;a++){var o=r.transforms[a];(n=b[o.type])&amp;&amp;n.calcTransform&amp;&amp;(r._hasCalcTransform=!0,x=!0,n.calcTransform(t,r,o))}}}function w(e,i){if(r=u[e],!!(n=r._module).isContainer===i){var o=[];if(!0===r.visible&amp;&amp;0!==r._length){delete r._indexToPoints;var s=r.transforms||[];for(a=s.length-1;a&gt;=0;a--)if(s[a].enabled){r._indexToPoints=s[a]._indexToPoints;break}n&amp;&amp;n.calc&amp;&amp;(o=n.calc(t,r))}Array.isArray(o)&amp;&amp;o[0]||(o=[{x:f,y:f}]),o[0].t||(o[0].t={}),o[0].trace=r,d[e]=o}}for(z(l,u,p),i=0;i&lt;u.length;i++)w(i,!0);for(i=0;i&lt;u.length;i++)_(i);for(x&amp;&amp;z(l,u,p),i=0;i&lt;u.length;i++)w(i,!0);for(i=0;i&lt;u.length;i++)w(i,!1);O(t);var T=function(t,e){var r,n,i,a,s,l=[];function u(t,r,n){var i=r._id.charAt(0);if(&quot;histogram2dcontour&quot;===t){var a=r._counterAxes[0],o=h.getFromId(e,a),s=&quot;x&quot;===i||&quot;x&quot;===a&amp;&amp;&quot;category&quot;===o.type,l=&quot;y&quot;===i||&quot;y&quot;===a&amp;&amp;&quot;category&quot;===o.type;return function(t,e){return 0===t||0===e||s&amp;&amp;t===n[e].length-1||l&amp;&amp;e===n.length-1?-1:(&quot;y&quot;===i?e:t)-1}}return function(t,e){return&quot;y&quot;===i?e:t}}var f={min:function(t){return c.aggNums(Math.min,null,t)},max:function(t){return c.aggNums(Math.max,null,t)},sum:function(t){return c.aggNums((function(t,e){return t+e}),null,t)},total:function(t){return c.aggNums((function(t,e){return t+e}),null,t)},mean:function(t){return c.mean(t)},median:function(t){return c.median(t)}};for(r=0;r&lt;t.length;r++){var p=t[r];if(&quot;category&quot;===p.type){var d=p.categoryorder.match(P);if(d){var g=d[1],m=d[2],v=p._id.charAt(0),y=&quot;x&quot;===v,x=[];for(n=0;n&lt;p._categories.length;n++)x.push([p._categories[n],[]]);for(n=0;n&lt;p._traceIndices.length;n++){var b=p._traceIndices[n],_=e._fullData[b];if(!0===_.visible){var w=_.type;o.traceIs(_,&quot;histogram&quot;)&amp;&amp;(delete _._xautoBinFinished,delete _._yautoBinFinished);var T=&quot;splom&quot;===w,k=&quot;scattergl&quot;===w,M=e.calcdata[b];for(i=0;i&lt;M.length;i++){var A,S,E=M[i];if(T){var C=_._axesDim[p._id];if(!y){var L=_._diag[C][0];L&amp;&amp;(p=e._fullLayout[h.id2name(L)])}var I=E.trace.dimensions[C].values;for(a=0;a&lt;I.length;a++)for(A=p._categoriesMap[I[a]],s=0;s&lt;E.trace.dimensions.length;s++)if(s!==C){var z=E.trace.dimensions[s];x[A][1].push(z.values[a])}}else if(k){for(a=0;a&lt;E.t.x.length;a++)y?(A=E.t.x[a],S=E.t.y[a]):(A=E.t.y[a],S=E.t.x[a]),x[A][1].push(S);E.t&amp;&amp;E.t._scene&amp;&amp;delete E.t._scene.dirty}else if(E.hasOwnProperty(&quot;z&quot;)){S=E.z;var O=u(_.type,p,S);for(a=0;a&lt;S.length;a++)for(s=0;s&lt;S[a].length;s++)(A=O(s,a))+1&amp;&amp;x[A][1].push(S[a][s])}else for(void 0===(A=E.p)&amp;&amp;(A=E[v]),void 0===(S=E.s)&amp;&amp;(S=E.v),void 0===S&amp;&amp;(S=y?E.y:E.x),Array.isArray(S)||(S=void 0===S?[]:[S]),a=0;a&lt;S.length;a++)x[A][1].push(S[a])}}}p._categoriesValue=x;var D=[];for(n=0;n&lt;x.length;n++)D.push([x[n][0],f[g](x[n][1])]);D.sort((function(t,e){return t[1]-e[1]})),p._categoriesAggregatedValue=D,p._initialCategories=D.map((function(t){return t[0]})),&quot;descending&quot;===m&amp;&amp;p._initialCategories.reverse(),l=l.concat(p.sortByInitialCategories())}}}return l}(l,t);if(T.length){for(p._numBoxes=0,p._numViolins=0,i=0;i&lt;T.length;i++)w(T[i],!0);for(i=0;i&lt;T.length;i++)w(T[i],!1);O(t)}o.getComponentMethod(&quot;fx&quot;,&quot;calc&quot;)(t),o.getComponentMethod(&quot;errorbars&quot;,&quot;calc&quot;)(t)};var P=/(total|sum|min|max|mean|median) (ascending|descending)/;function z(t,e,r){var n={};function i(t){t.clearCalc(),&quot;multicategory&quot;===t.type&amp;&amp;t.setupMultiCategory(e),n[t._id]=1}c.simpleMap(t,i);for(var a=r._axisMatchGroups||[],o=0;o&lt;a.length;o++)for(var s in a[o])n[s]||i(r[h.id2name(s)])}function O(t){var e,r,n,i=t._fullLayout,a=i._visibleModules,o={};for(r=0;r&lt;a.length;r++){var s=a[r],l=s.crossTraceCalc;if(l){var u=s.basePlotModule.name;o[u]?c.pushUnique(o[u],l):o[u]=[l]}}for(n in o){var f=o[n],h=i._subplots[n];if(Array.isArray(h))for(e=0;e&lt;h.length;e++){var p=h[e],d=&quot;cartesian&quot;===n?i._plots[p]:i[p];for(r=0;r&lt;f.length;r++)f[r](t,d,p)}else for(r=0;r&lt;f.length;r++)f[r](t)}}x.rehover=function(t){t._fullLayout._rehover&amp;&amp;t._fullLayout._rehover()},x.redrag=function(t){t._fullLayout._redrag&amp;&amp;t._fullLayout._redrag()},x.generalUpdatePerTraceModule=function(t,e,r,n){var i,a=e.traceHash,o={};for(i=0;i&lt;r.length;i++){var s=r[i],l=s[0].trace;l.visible&amp;&amp;(o[l.type]=o[l.type]||[],o[l.type].push(s))}for(var u in a)if(!o[u]){var f=a[u][0];f[0].trace.visible=!1,o[u]=[f]}for(var h in o){var p=o[h];p[0][0].trace._module.plot(t,e,c.filterVisible(p),n)}e.traceHash=o},x.plotBasePlot=function(t,e,r,n,i){var a=o.getModule(t),s=m(e.calcdata,a)[0];a.plot(e,s,n,i)},x.cleanBasePlot=function(t,e,r,n,i){var a=i._has&amp;&amp;i._has(t),o=r._has&amp;&amp;r._has(t);a&amp;&amp;!o&amp;&amp;i[&quot;_&quot;+t+&quot;layer&quot;].selectAll(&quot;g.trace&quot;).remove()}},{&quot;../components/color&quot;:643,&quot;../constants/numerical&quot;:753,&quot;../lib&quot;:778,&quot;../plot_api/plot_schema&quot;:816,&quot;../plot_api/plot_template&quot;:817,&quot;../plots/get_data&quot;:865,&quot;../registry&quot;:911,&quot;./animation_attributes&quot;:822,&quot;./attributes&quot;:824,&quot;./cartesian/axis_ids&quot;:831,&quot;./cartesian/handle_outline&quot;:838,&quot;./command&quot;:854,&quot;./font_attributes&quot;:856,&quot;./frame_attributes&quot;:857,&quot;./layout_attributes&quot;:882,d3:169,&quot;d3-time-format&quot;:166,&quot;fast-isnumeric&quot;:241}],892:[function(t,e,r){&quot;use strict&quot;;e.exports={attr:&quot;subplot&quot;,name:&quot;polar&quot;,axisNames:[&quot;angularaxis&quot;,&quot;radialaxis&quot;],axisName2dataArray:{angularaxis:&quot;theta&quot;,radialaxis:&quot;r&quot;},layerNames:[&quot;draglayer&quot;,&quot;plotbg&quot;,&quot;backplot&quot;,&quot;angular-grid&quot;,&quot;radial-grid&quot;,&quot;frontplot&quot;,&quot;angular-line&quot;,&quot;radial-line&quot;,&quot;angular-axis&quot;,&quot;radial-axis&quot;],radialDragBoxSize:50,angularDragBoxSize:30,cornerLen:25,cornerHalfWidth:2,MINDRAG:8,MINZOOM:20,OFFEDGE:20}},{}],893:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../lib/polygon&quot;).tester,a=n.findIndexOfMin,o=n.isAngleInsideSector,s=n.angleDelta,l=n.angleDist;function c(t,e,r,n){var i,a,o=n[0],s=n[1],l=f(Math.sin(e)-Math.sin(t)),c=f(Math.cos(e)-Math.cos(t)),u=Math.tan(r),h=f(1/u),p=l/c,d=s-p*o;return h?l&amp;&amp;c?a=u*(i=d/(u-p)):c?(i=s*h,a=s):(i=o,a=o*u):l&amp;&amp;c?(i=0,a=d):c?(i=0,a=s):i=a=NaN,[i,a]}function u(t,e,r,i){return n.isFullCircle([e,r])?function(t,e){var r,n=e.length,i=new Array(n+1);for(r=0;r&lt;n;r++){var a=e[r];i[r]=[t*Math.cos(a),t*Math.sin(a)]}return i[r]=i[0].slice(),i}(t,i):function(t,e,r,i){var s,u,f=i.length,h=[];function p(e){return[t*Math.cos(e),t*Math.sin(e)]}function d(t,e,r){return c(t,e,r,p(t))}function g(t){return n.mod(t,f)}function m(t){return o(t,[e,r])}var v=a(i,(function(t){return m(t)?l(t,e):1/0})),y=d(i[v],i[g(v-1)],e);for(h.push(y),s=v,u=0;u&lt;f;s++,u++){var x=i[g(s)];if(!m(x))break;h.push(p(x))}var b=a(i,(function(t){return m(t)?l(t,r):1/0})),_=d(i[b],i[g(b+1)],r);return h.push(_),h.push([0,0]),h.push(h[0].slice()),h}(t,e,r,i)}function f(t){return Math.abs(t)&gt;1e-10?t:0}function h(t,e,r){e=e||0,r=r||0;for(var n=t.length,i=new Array(n),a=0;a&lt;n;a++){var o=t[a];i[a]=[e+o[0],r-o[1]]}return i}e.exports={isPtInsidePolygon:function(t,e,r,n,a){if(!o(e,n))return!1;var s,l;r[0]&lt;r[1]?(s=r[0],l=r[1]):(s=r[1],l=r[0]);var c=i(u(s,n[0],n[1],a)),f=i(u(l,n[0],n[1],a)),h=[t*Math.cos(e),t*Math.sin(e)];return f.contains(h)&amp;&amp;!c.contains(h)},findPolygonOffset:function(t,e,r,n){for(var i=1/0,a=1/0,o=u(t,e,r,n),s=0;s&lt;o.length;s++){var l=o[s];i=Math.min(i,l[0]),a=Math.min(a,-l[1])}return[i,a]},findEnclosingVertexAngles:function(t,e){var r=a(e,(function(e){var r=s(e,t);return r&gt;0?r:1/0})),i=n.mod(r+1,e.length);return[e[r],e[i]]},findIntersectionXY:c,findXYatLength:function(t,e,r,n){var i=-e*r,a=e*e+1,o=2*(e*i-r),s=i*i+r*r-t*t,l=Math.sqrt(o*o-4*a*s),c=(-o+l)/(2*a),u=(-o-l)/(2*a);return[[c,e*c+i+n],[u,e*u+i+n]]},clampTiny:f,pathPolygon:function(t,e,r,n,i,a){return&quot;M&quot;+h(u(t,e,r,n),i,a).join(&quot;L&quot;)},pathPolygonAnnulus:function(t,e,r,n,i,a,o){var s,l;t&lt;e?(s=t,l=e):(s=e,l=t);var c=h(u(s,r,n,i),a,o);return&quot;M&quot;+h(u(l,r,n,i),a,o).reverse().join(&quot;L&quot;)+&quot;M&quot;+c.join(&quot;L&quot;)}}},{&quot;../../lib&quot;:778,&quot;../../lib/polygon&quot;:790}],894:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../get_data&quot;).getSubplotCalcData,i=t(&quot;../../lib&quot;).counterRegex,a=t(&quot;./polar&quot;),o=t(&quot;./constants&quot;),s=o.attr,l=o.name,c=i(l),u={};u[s]={valType:&quot;subplotid&quot;,dflt:l,editType:&quot;calc&quot;},e.exports={attr:s,name:l,idRoot:l,idRegex:c,attrRegex:c,attributes:u,layoutAttributes:t(&quot;./layout_attributes&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),plot:function(t){for(var e=t._fullLayout,r=t.calcdata,i=e._subplots[l],o=0;o&lt;i.length;o++){var s=i[o],c=n(r,l,s),u=e[s]._subplot;u||(u=a(t,s),e[s]._subplot=u),u.plot(c,e,t._promises)}},clean:function(t,e,r,n){for(var i=n._subplots[l]||[],a=n._has&amp;&amp;n._has(&quot;gl&quot;),o=e._has&amp;&amp;e._has(&quot;gl&quot;),s=a&amp;&amp;!o,c=0;c&lt;i.length;c++){var u=i[c],f=n[u]._subplot;if(!e[u]&amp;&amp;f)for(var h in f.framework.remove(),f.layers[&quot;radial-axis-title&quot;].remove(),f.clipPaths)f.clipPaths[h].remove();s&amp;&amp;f._scene&amp;&amp;(f._scene.destroy(),f._scene=null)}},toSVG:t(&quot;../cartesian&quot;).toSVG}},{&quot;../../lib&quot;:778,&quot;../cartesian&quot;:841,&quot;../get_data&quot;:865,&quot;./constants&quot;:892,&quot;./layout_attributes&quot;:895,&quot;./layout_defaults&quot;:896,&quot;./polar&quot;:903}],895:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../cartesian/layout_attributes&quot;),a=t(&quot;../domain&quot;).attributes,o=t(&quot;../../lib&quot;).extendFlat,s=t(&quot;../../plot_api/edit_types&quot;).overrideAll,l=s({color:i.color,showline:o({},i.showline,{dflt:!0}),linecolor:i.linecolor,linewidth:i.linewidth,showgrid:o({},i.showgrid,{dflt:!0}),gridcolor:i.gridcolor,gridwidth:i.gridwidth},&quot;plot&quot;,&quot;from-root&quot;),c=s({tickmode:i.tickmode,nticks:i.nticks,tick0:i.tick0,dtick:i.dtick,tickvals:i.tickvals,ticktext:i.ticktext,ticks:i.ticks,ticklen:i.ticklen,tickwidth:i.tickwidth,tickcolor:i.tickcolor,showticklabels:i.showticklabels,showtickprefix:i.showtickprefix,tickprefix:i.tickprefix,showticksuffix:i.showticksuffix,ticksuffix:i.ticksuffix,showexponent:i.showexponent,exponentformat:i.exponentformat,minexponent:i.minexponent,separatethousands:i.separatethousands,tickfont:i.tickfont,tickangle:i.tickangle,tickformat:i.tickformat,tickformatstops:i.tickformatstops,layer:i.layer},&quot;plot&quot;,&quot;from-root&quot;),u={visible:o({},i.visible,{dflt:!0}),type:o({},i.type,{values:[&quot;-&quot;,&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;]}),autotypenumbers:i.autotypenumbers,autorange:o({},i.autorange,{editType:&quot;plot&quot;}),rangemode:{valType:&quot;enumerated&quot;,values:[&quot;tozero&quot;,&quot;nonnegative&quot;,&quot;normal&quot;],dflt:&quot;tozero&quot;,editType:&quot;calc&quot;},range:o({},i.range,{items:[{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}},{valType:&quot;any&quot;,editType:&quot;plot&quot;,impliedEdits:{&quot;^autorange&quot;:!1}}],editType:&quot;plot&quot;}),categoryorder:i.categoryorder,categoryarray:i.categoryarray,angle:{valType:&quot;angle&quot;,editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;],dflt:&quot;clockwise&quot;,editType:&quot;plot&quot;},title:{text:o({},i.title.text,{editType:&quot;plot&quot;,dflt:&quot;&quot;}),font:o({},i.title.font,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},hoverformat:i.hoverformat,uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;,_deprecated:{title:i._deprecated.title,titlefont:i._deprecated.titlefont}};o(u,l,c);var f={visible:o({},i.visible,{dflt:!0}),type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;category&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;,_noTemplating:!0},autotypenumbers:i.autotypenumbers,categoryorder:i.categoryorder,categoryarray:i.categoryarray,thetaunit:{valType:&quot;enumerated&quot;,values:[&quot;radians&quot;,&quot;degrees&quot;],dflt:&quot;degrees&quot;,editType:&quot;calc&quot;},period:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0},direction:{valType:&quot;enumerated&quot;,values:[&quot;counterclockwise&quot;,&quot;clockwise&quot;],dflt:&quot;counterclockwise&quot;,editType:&quot;calc&quot;},rotation:{valType:&quot;angle&quot;,editType:&quot;calc&quot;},hoverformat:i.hoverformat,uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;};o(f,l,c),e.exports={domain:a({name:&quot;polar&quot;,editType:&quot;plot&quot;}),sector:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],dflt:[0,360],editType:&quot;plot&quot;},hole:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;plot&quot;},bgcolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;,dflt:n.background},radialaxis:u,angularaxis:f,gridshape:{valType:&quot;enumerated&quot;,values:[&quot;circular&quot;,&quot;linear&quot;],dflt:&quot;circular&quot;,editType:&quot;plot&quot;},uirevision:{valType:&quot;any&quot;,editType:&quot;none&quot;},editType:&quot;calc&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib&quot;:778,&quot;../../plot_api/edit_types&quot;:810,&quot;../cartesian/layout_attributes&quot;:842,&quot;../domain&quot;:855}],896:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../plot_api/plot_template&quot;),o=t(&quot;../subplot_defaults&quot;),s=t(&quot;../get_data&quot;).getSubplotData,l=t(&quot;../cartesian/tick_value_defaults&quot;),c=t(&quot;../cartesian/tick_mark_defaults&quot;),u=t(&quot;../cartesian/tick_label_defaults&quot;),f=t(&quot;../cartesian/category_order_defaults&quot;),h=t(&quot;../cartesian/line_grid_defaults&quot;),p=t(&quot;../cartesian/axis_autotype&quot;),d=t(&quot;./layout_attributes&quot;),g=t(&quot;./set_convert&quot;),m=t(&quot;./constants&quot;),v=m.axisNames;function y(t,e,r,o){var p=r(&quot;bgcolor&quot;);o.bgColor=i.combine(p,o.paper_bgcolor);var y=r(&quot;sector&quot;);r(&quot;hole&quot;);var b,_=s(o.fullData,m.name,o.id),w=o.layoutOut;function T(t,e){return r(b+&quot;.&quot;+t,e)}for(var k=0;k&lt;v.length;k++){b=v[k],n.isPlainObject(t[b])||(t[b]={});var M=t[b],A=a.newContainer(e,b);A._id=A._name=b,A._attr=o.id+&quot;.&quot;+b,A._traceIndices=_.map((function(t){return t._expandedIndex}));var S=m.axisName2dataArray[b],E=x(M,A,T,_,S,o);f(M,A,T,{axData:_,dataAttr:S});var C,L,I=T(&quot;visible&quot;);switch(g(A,e,w),T(&quot;uirevision&quot;,e.uirevision),I&amp;&amp;(L=(C=T(&quot;color&quot;))===M.color?C:o.font.color),A._m=1,b){case&quot;radialaxis&quot;:var P=T(&quot;autorange&quot;,!A.isValidRange(M.range));M.autorange=P,!P||&quot;linear&quot;!==E&amp;&amp;&quot;-&quot;!==E||T(&quot;rangemode&quot;),&quot;reversed&quot;===P&amp;&amp;(A._m=-1),T(&quot;range&quot;),A.cleanRange(&quot;range&quot;,{dfltRange:[0,1]}),I&amp;&amp;(T(&quot;side&quot;),T(&quot;angle&quot;,y[0]),T(&quot;title.text&quot;),n.coerceFont(T,&quot;title.font&quot;,{family:o.font.family,size:Math.round(1.2*o.font.size),color:L}));break;case&quot;angularaxis&quot;:if(&quot;date&quot;===E){n.log(&quot;Polar plots do not support date angular axes yet.&quot;);for(var z=0;z&lt;_.length;z++)_[z].visible=!1;E=M.type=A.type=&quot;linear&quot;}T(&quot;linear&quot;===E?&quot;thetaunit&quot;:&quot;period&quot;);var O=T(&quot;direction&quot;);T(&quot;rotation&quot;,{counterclockwise:0,clockwise:90}[O])}if(I)l(M,A,T,A.type),u(M,A,T,A.type,{tickSuffixDflt:&quot;degrees&quot;===A.thetaunit?&quot;\xb0&quot;:void 0}),c(M,A,T,{outerTicks:!0}),T(&quot;showticklabels&quot;)&amp;&amp;(n.coerceFont(T,&quot;tickfont&quot;,{family:o.font.family,size:o.font.size,color:L}),T(&quot;tickangle&quot;),T(&quot;tickformat&quot;)),h(M,A,T,{dfltColor:C,bgColor:o.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:d[b]}),T(&quot;layer&quot;);&quot;category&quot;!==E&amp;&amp;T(&quot;hoverformat&quot;),A._input=M}&quot;category&quot;===e.angularaxis.type&amp;&amp;r(&quot;gridshape&quot;)}function x(t,e,r,n,i,a){var o=r(&quot;autotypenumbers&quot;,a.autotypenumbersDflt);if(&quot;-&quot;===r(&quot;type&quot;)){for(var s,l=0;l&lt;n.length;l++)if(n[l].visible){s=n[l];break}s&amp;&amp;s[i]&amp;&amp;(e.type=p(s[i],&quot;gregorian&quot;,{noMultiCategory:!0,autotypenumbers:o})),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:t.type=e.type}return e.type}e.exports=function(t,e,r){o(t,e,r,{type:m.name,attributes:d,handleDefaults:y,font:e.font,autotypenumbersDflt:e.autotypenumbers,paper_bgcolor:e.paper_bgcolor,fullData:r,layoutOut:e})}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../cartesian/axis_autotype&quot;:829,&quot;../cartesian/category_order_defaults&quot;:832,&quot;../cartesian/line_grid_defaults&quot;:844,&quot;../cartesian/tick_label_defaults&quot;:849,&quot;../cartesian/tick_mark_defaults&quot;:850,&quot;../cartesian/tick_value_defaults&quot;:851,&quot;../get_data&quot;:865,&quot;../subplot_defaults&quot;:905,&quot;./constants&quot;:892,&quot;./layout_attributes&quot;:895,&quot;./set_convert&quot;:904}],897:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../../traces/scatter/attributes&quot;),i=n.marker,a=t(&quot;../../../lib/extend&quot;).extendFlat;[&quot;Area traces are deprecated!&quot;,&quot;Please switch to the *barpolar* trace type.&quot;].join(&quot; &quot;);e.exports={r:a({},n.r,{}),t:a({},n.t,{}),marker:{color:a({},i.color,{}),size:a({},i.size,{}),symbol:a({},i.symbol,{}),opacity:a({},i.opacity,{}),editType:&quot;calc&quot;}}},{&quot;../../../lib/extend&quot;:768,&quot;../../../traces/scatter/attributes&quot;:1187}],898:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../cartesian/layout_attributes&quot;),i=t(&quot;../../../lib/extend&quot;).extendFlat,a=t(&quot;../../../plot_api/edit_types&quot;).overrideAll,o=[&quot;Legacy polar charts are deprecated!&quot;,&quot;Please switch to *polar* subplots.&quot;].join(&quot; &quot;),s=i({},n.domain,{});function l(t,e){return i({},e,{showline:{valType:&quot;boolean&quot;},showticklabels:{valType:&quot;boolean&quot;},tickorientation:{valType:&quot;enumerated&quot;,values:[&quot;horizontal&quot;,&quot;vertical&quot;]},ticklen:{valType:&quot;number&quot;,min:0},tickcolor:{valType:&quot;color&quot;},ticksuffix:{valType:&quot;string&quot;},endpadding:{valType:&quot;number&quot;,description:o},visible:{valType:&quot;boolean&quot;}})}e.exports=a({radialaxis:l(0,{range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;},{valType:&quot;number&quot;}]},domain:s,orientation:{valType:&quot;number&quot;}}),angularaxis:l(0,{range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,dflt:0},{valType:&quot;number&quot;,dflt:360}]},domain:s}),layout:{direction:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;]},orientation:{valType:&quot;angle&quot;}}},&quot;plot&quot;,&quot;nested&quot;)},{&quot;../../../lib/extend&quot;:768,&quot;../../../plot_api/edit_types&quot;:810,&quot;../../cartesian/layout_attributes&quot;:842}],899:[function(t,e,r){&quot;use strict&quot;;(e.exports=t(&quot;./micropolar&quot;)).manager=t(&quot;./micropolar_manager&quot;)},{&quot;./micropolar&quot;:900,&quot;./micropolar_manager&quot;:901}],900:[function(t,e,r){var n=t(&quot;d3&quot;),i=t(&quot;../../../lib&quot;).extendDeepAll,a=t(&quot;../../../constants/alignment&quot;).MID_SHIFT,o=e.exports={version:&quot;0.2.2&quot;};o.Axis=function(){var t,e,r,s,l={data:[],layout:{}},c={},u={},f=n.dispatch(&quot;hover&quot;),h={};return h.render=function(c){return function(c){e=c||e;var f=l.data,h=l.layout;(&quot;string&quot;==typeof e||e.nodeName)&amp;&amp;(e=n.select(e)),e.datum(f).each((function(e,l){var c=e.slice();u={data:o.util.cloneJson(c),layout:o.util.cloneJson(h)};var f=0;c.forEach((function(t,e){t.color||(t.color=h.defaultColorRange[f],f=(f+1)%h.defaultColorRange.length),t.strokeColor||(t.strokeColor=&quot;LinePlot&quot;===t.geometry?t.color:n.rgb(t.color).darker().toString()),u.data[e].color=t.color,u.data[e].strokeColor=t.strokeColor,u.data[e].strokeDash=t.strokeDash,u.data[e].strokeSize=t.strokeSize}));var p=c.filter((function(t,e){var r=t.visible;return&quot;undefined&quot;==typeof r||!0===r})),d=!1,g=p.map((function(t,e){return d=d||&quot;undefined&quot;!=typeof t.groupId,t}));if(d){var m=n.nest().key((function(t,e){return&quot;undefined&quot;!=typeof t.groupId?t.groupId:&quot;unstacked&quot;})).entries(g),v=[],y=m.map((function(t,e){if(&quot;unstacked&quot;===t.key)return t.values;var r=t.values[0].r.map((function(t,e){return 0}));return t.values.forEach((function(t,e,n){t.yStack=[r],v.push(r),r=o.util.sumArrays(t.r,r)})),t.values}));p=n.merge(y)}p.forEach((function(t,e){t.t=Array.isArray(t.t[0])?t.t:[t.t],t.r=Array.isArray(t.r[0])?t.r:[t.r]}));var x=Math.min(h.width-h.margin.left-h.margin.right,h.height-h.margin.top-h.margin.bottom)/2;x=Math.max(10,x);var b,_=[h.margin.left+x,h.margin.top+x];d?b=[0,n.max(o.util.sumArrays(o.util.arrayLast(p).r[0],o.util.arrayLast(v)))]:b=n.extent(o.util.flattenArray(p.map((function(t,e){return t.r}))));h.radialAxis.domain!=o.DATAEXTENT&amp;&amp;(b[0]=0),r=n.scale.linear().domain(h.radialAxis.domain!=o.DATAEXTENT&amp;&amp;h.radialAxis.domain?h.radialAxis.domain:b).range([0,x]),u.layout.radialAxis.domain=r.domain();var w,T=o.util.flattenArray(p.map((function(t,e){return t.t}))),k=&quot;string&quot;==typeof T[0];k&amp;&amp;(T=o.util.deduplicate(T),w=T.slice(),T=n.range(T.length),p=p.map((function(t,e){var r=t;return t.t=[T],d&amp;&amp;(r.yStack=t.yStack),r})));var M=p.filter((function(t,e){return&quot;LinePlot&quot;===t.geometry||&quot;DotPlot&quot;===t.geometry})).length===p.length,A=null===h.needsEndSpacing?k||!M:h.needsEndSpacing,S=h.angularAxis.domain&amp;&amp;h.angularAxis.domain!=o.DATAEXTENT&amp;&amp;!k&amp;&amp;h.angularAxis.domain[0]&gt;=0?h.angularAxis.domain:n.extent(T),E=Math.abs(T[1]-T[0]);M&amp;&amp;!k&amp;&amp;(E=0);var C=S.slice();A&amp;&amp;k&amp;&amp;(C[1]+=E);var L=h.angularAxis.ticksCount||4;L&gt;8&amp;&amp;(L=L/(L/8)+L%8),h.angularAxis.ticksStep&amp;&amp;(L=(C[1]-C[0])/L);var I=h.angularAxis.ticksStep||(C[1]-C[0])/(L*(h.minorTicks+1));w&amp;&amp;(I=Math.max(Math.round(I),1)),C[2]||(C[2]=I);var P=n.range.apply(this,C);if(P=P.map((function(t,e){return parseFloat(t.toPrecision(12))})),s=n.scale.linear().domain(C.slice(0,2)).range(&quot;clockwise&quot;===h.direction?[0,360]:[360,0]),u.layout.angularAxis.domain=s.domain(),u.layout.angularAxis.endPadding=A?E:0,&quot;undefined&quot;==typeof(t=n.select(this).select(&quot;svg.chart-root&quot;))||t.empty()){var z=(new DOMParser).parseFromString(&quot;&lt;svg xmlns='http://www.w3.org/2000/svg' class='chart-root'&gt;' + '&lt;g class='outer-group'&gt;' + '&lt;g class='chart-group'&gt;' + '&lt;circle class='background-circle'&gt;&lt;/circle&gt;' + '&lt;g class='geometry-group'&gt;&lt;/g&gt;' + '&lt;g class='radial axis-group'&gt;' + '&lt;circle class='outside-circle'&gt;&lt;/circle&gt;' + '&lt;/g&gt;' + '&lt;g class='angular axis-group'&gt;&lt;/g&gt;' + '&lt;g class='guides-group'&gt;&lt;line&gt;&lt;/line&gt;&lt;circle r='0'&gt;&lt;/circle&gt;&lt;/g&gt;' + '&lt;/g&gt;' + '&lt;g class='legend-group'&gt;&lt;/g&gt;' + '&lt;g class='tooltips-group'&gt;&lt;/g&gt;' + '&lt;g class='title-group'&gt;&lt;text&gt;&lt;/text&gt;&lt;/g&gt;' + '&lt;/g&gt;' + '&lt;/svg&gt;&quot;,&quot;application/xml&quot;),O=this.appendChild(this.ownerDocument.importNode(z.documentElement,!0));t=n.select(O)}t.select(&quot;.guides-group&quot;).style({&quot;pointer-events&quot;:&quot;none&quot;}),t.select(&quot;.angular.axis-group&quot;).style({&quot;pointer-events&quot;:&quot;none&quot;}),t.select(&quot;.radial.axis-group&quot;).style({&quot;pointer-events&quot;:&quot;none&quot;});var D,R=t.select(&quot;.chart-group&quot;),F={fill:&quot;none&quot;,stroke:h.tickColor},B={&quot;font-size&quot;:h.font.size,&quot;font-family&quot;:h.font.family,fill:h.font.color,&quot;text-shadow&quot;:[&quot;-1px 0px&quot;,&quot;1px -1px&quot;,&quot;-1px 1px&quot;,&quot;1px 1px&quot;].map((function(t,e){return&quot; &quot;+t+&quot; 0 &quot;+h.font.outlineColor})).join(&quot;,&quot;)};if(h.showLegend){D=t.select(&quot;.legend-group&quot;).attr({transform:&quot;translate(&quot;+[x,h.margin.top]+&quot;)&quot;}).style({display:&quot;block&quot;});var N=p.map((function(t,e){var r=o.util.cloneJson(t);return r.symbol=&quot;DotPlot&quot;===t.geometry?t.dotType||&quot;circle&quot;:&quot;LinePlot&quot;!=t.geometry?&quot;square&quot;:&quot;line&quot;,r.visibleInLegend=&quot;undefined&quot;==typeof t.visibleInLegend||t.visibleInLegend,r.color=&quot;LinePlot&quot;===t.geometry?t.strokeColor:t.color,r}));o.Legend().config({data:p.map((function(t,e){return t.name||&quot;Element&quot;+e})),legendConfig:i({},o.Legend.defaultConfig().legendConfig,{container:D,elements:N,reverseOrder:h.legend.reverseOrder})})();var j=D.node().getBBox();x=Math.min(h.width-j.width-h.margin.left-h.margin.right,h.height-h.margin.top-h.margin.bottom)/2,x=Math.max(10,x),_=[h.margin.left+x,h.margin.top+x],r.range([0,x]),u.layout.radialAxis.domain=r.domain(),D.attr(&quot;transform&quot;,&quot;translate(&quot;+[_[0]+x,_[1]-x]+&quot;)&quot;)}else D=t.select(&quot;.legend-group&quot;).style({display:&quot;none&quot;});t.attr({width:h.width,height:h.height}).style({opacity:h.opacity}),R.attr(&quot;transform&quot;,&quot;translate(&quot;+_+&quot;)&quot;).style({cursor:&quot;crosshair&quot;});var U=[(h.width-(h.margin.left+h.margin.right+2*x+(j?j.width:0)))/2,(h.height-(h.margin.top+h.margin.bottom+2*x))/2];if(U[0]=Math.max(0,U[0]),U[1]=Math.max(0,U[1]),t.select(&quot;.outer-group&quot;).attr(&quot;transform&quot;,&quot;translate(&quot;+U+&quot;)&quot;),h.title&amp;&amp;h.title.text){var V=t.select(&quot;g.title-group text&quot;).style(B).text(h.title.text),q=V.node().getBBox();V.attr({x:_[0]-q.width/2,y:_[1]-x-20})}var H=t.select(&quot;.radial.axis-group&quot;);if(h.radialAxis.gridLinesVisible){var G=H.selectAll(&quot;circle.grid-circle&quot;).data(r.ticks(5));G.enter().append(&quot;circle&quot;).attr({class:&quot;grid-circle&quot;}).style(F),G.attr(&quot;r&quot;,r),G.exit().remove()}H.select(&quot;circle.outside-circle&quot;).attr({r:x}).style(F);var Y=t.select(&quot;circle.background-circle&quot;).attr({r:x}).style({fill:h.backgroundColor,stroke:h.stroke});function W(t,e){return s(t)%360+h.orientation}if(h.radialAxis.visible){var X=n.svg.axis().scale(r).ticks(5).tickSize(5);H.call(X).attr({transform:&quot;rotate(&quot;+h.radialAxis.orientation+&quot;)&quot;}),H.selectAll(&quot;.domain&quot;).style(F),H.selectAll(&quot;g&gt;text&quot;).text((function(t,e){return this.textContent+h.radialAxis.ticksSuffix})).style(B).style({&quot;text-anchor&quot;:&quot;start&quot;}).attr({x:0,y:0,dx:0,dy:0,transform:function(t,e){return&quot;horizontal&quot;===h.radialAxis.tickOrientation?&quot;rotate(&quot;+-h.radialAxis.orientation+&quot;) translate(&quot;+[0,B[&quot;font-size&quot;]]+&quot;)&quot;:&quot;translate(&quot;+[0,B[&quot;font-size&quot;]]+&quot;)&quot;}}),H.selectAll(&quot;g&gt;line&quot;).style({stroke:&quot;black&quot;})}var Z=t.select(&quot;.angular.axis-group&quot;).selectAll(&quot;g.angular-tick&quot;).data(P),J=Z.enter().append(&quot;g&quot;).classed(&quot;angular-tick&quot;,!0);Z.attr({transform:function(t,e){return&quot;rotate(&quot;+W(t)+&quot;)&quot;}}).style({display:h.angularAxis.visible?&quot;block&quot;:&quot;none&quot;}),Z.exit().remove(),J.append(&quot;line&quot;).classed(&quot;grid-line&quot;,!0).classed(&quot;major&quot;,(function(t,e){return e%(h.minorTicks+1)==0})).classed(&quot;minor&quot;,(function(t,e){return!(e%(h.minorTicks+1)==0)})).style(F),J.selectAll(&quot;.minor&quot;).style({stroke:h.minorTickColor}),Z.select(&quot;line.grid-line&quot;).attr({x1:h.tickLength?x-h.tickLength:0,x2:x}).style({display:h.angularAxis.gridLinesVisible?&quot;block&quot;:&quot;none&quot;}),J.append(&quot;text&quot;).classed(&quot;axis-text&quot;,!0).style(B);var K=Z.select(&quot;text.axis-text&quot;).attr({x:x+h.labelOffset,dy:a+&quot;em&quot;,transform:function(t,e){var r=W(t),n=x+h.labelOffset,i=h.angularAxis.tickOrientation;return&quot;horizontal&quot;==i?&quot;rotate(&quot;+-r+&quot; &quot;+n+&quot; 0)&quot;:&quot;radial&quot;==i?r&lt;270&amp;&amp;r&gt;90?&quot;rotate(180 &quot;+n+&quot; 0)&quot;:null:&quot;rotate(&quot;+(r&lt;=180&amp;&amp;r&gt;0?-90:90)+&quot; &quot;+n+&quot; 0)&quot;}}).style({&quot;text-anchor&quot;:&quot;middle&quot;,display:h.angularAxis.labelsVisible?&quot;block&quot;:&quot;none&quot;}).text((function(t,e){return e%(h.minorTicks+1)!=0?&quot;&quot;:w?w[t]+h.angularAxis.ticksSuffix:t+h.angularAxis.ticksSuffix})).style(B);h.angularAxis.rewriteTicks&amp;&amp;K.text((function(t,e){return e%(h.minorTicks+1)!=0?&quot;&quot;:h.angularAxis.rewriteTicks(this.textContent,e)}));var Q=n.max(R.selectAll(&quot;.angular-tick text&quot;)[0].map((function(t,e){return t.getCTM().e+t.getBBox().width})));D.attr({transform:&quot;translate(&quot;+[x+Q,h.margin.top]+&quot;)&quot;});var $=t.select(&quot;g.geometry-group&quot;).selectAll(&quot;g&quot;).size()&gt;0,tt=t.select(&quot;g.geometry-group&quot;).selectAll(&quot;g.geometry&quot;).data(p);if(tt.enter().append(&quot;g&quot;).attr({class:function(t,e){return&quot;geometry geometry&quot;+e}}),tt.exit().remove(),p[0]||$){var et=[];p.forEach((function(t,e){var n={};n.radialScale=r,n.angularScale=s,n.container=tt.filter((function(t,r){return r==e})),n.geometry=t.geometry,n.orientation=h.orientation,n.direction=h.direction,n.index=e,et.push({data:t,geometryConfig:n})}));var rt=n.nest().key((function(t,e){return&quot;undefined&quot;!=typeof t.data.groupId||&quot;unstacked&quot;})).entries(et),nt=[];rt.forEach((function(t,e){&quot;unstacked&quot;===t.key?nt=nt.concat(t.values.map((function(t,e){return[t]}))):nt.push(t.values)})),nt.forEach((function(t,e){var r;r=Array.isArray(t)?t[0].geometryConfig.geometry:t.geometryConfig.geometry;var n=t.map((function(t,e){return i(o[r].defaultConfig(),t)}));o[r]().config(n)()}))}var it,at,ot=t.select(&quot;.guides-group&quot;),st=t.select(&quot;.tooltips-group&quot;),lt=o.tooltipPanel().config({container:st,fontSize:8})(),ct=o.tooltipPanel().config({container:st,fontSize:8})(),ut=o.tooltipPanel().config({container:st,hasTick:!0})();if(!k){var ft=ot.select(&quot;line&quot;).attr({x1:0,y1:0,y2:0}).style({stroke:&quot;grey&quot;,&quot;pointer-events&quot;:&quot;none&quot;});R.on(&quot;mousemove.angular-guide&quot;,(function(t,e){var r=o.util.getMousePos(Y).angle;ft.attr({x2:-x,transform:&quot;rotate(&quot;+r+&quot;)&quot;}).style({opacity:.5});var n=(r+180+360-h.orientation)%360;it=s.invert(n);var i=o.util.convertToCartesian(x+12,r+180);lt.text(o.util.round(it)).move([i[0]+_[0],i[1]+_[1]])})).on(&quot;mouseout.angular-guide&quot;,(function(t,e){ot.select(&quot;line&quot;).style({opacity:0})}))}var ht=ot.select(&quot;circle&quot;).style({stroke:&quot;grey&quot;,fill:&quot;none&quot;});R.on(&quot;mousemove.radial-guide&quot;,(function(t,e){var n=o.util.getMousePos(Y).radius;ht.attr({r:n}).style({opacity:.5}),at=r.invert(o.util.getMousePos(Y).radius);var i=o.util.convertToCartesian(n,h.radialAxis.orientation);ct.text(o.util.round(at)).move([i[0]+_[0],i[1]+_[1]])})).on(&quot;mouseout.radial-guide&quot;,(function(t,e){ht.style({opacity:0}),ut.hide(),lt.hide(),ct.hide()})),t.selectAll(&quot;.geometry-group .mark&quot;).on(&quot;mouseover.tooltip&quot;,(function(e,r){var i=n.select(this),a=this.style.fill,s=&quot;black&quot;,l=this.style.opacity||1;if(i.attr({&quot;data-opacity&quot;:l}),a&amp;&amp;&quot;none&quot;!==a){i.attr({&quot;data-fill&quot;:a}),s=n.hsl(a).darker().toString(),i.style({fill:s,opacity:1});var c={t:o.util.round(e[0]),r:o.util.round(e[1])};k&amp;&amp;(c.t=w[e[0]]);var u=&quot;t: &quot;+c.t+&quot;, r: &quot;+c.r,f=this.getBoundingClientRect(),h=t.node().getBoundingClientRect(),p=[f.left+f.width/2-U[0]-h.left,f.top+f.height/2-U[1]-h.top];ut.config({color:s}).text(u),ut.move(p)}else a=this.style.stroke||&quot;black&quot;,i.attr({&quot;data-stroke&quot;:a}),s=n.hsl(a).darker().toString(),i.style({stroke:s,opacity:1})})).on(&quot;mousemove.tooltip&quot;,(function(t,e){if(0!=n.event.which)return!1;n.select(this).attr(&quot;data-fill&quot;)&amp;&amp;ut.show()})).on(&quot;mouseout.tooltip&quot;,(function(t,e){ut.hide();var r=n.select(this),i=r.attr(&quot;data-fill&quot;);i?r.style({fill:i,opacity:r.attr(&quot;data-opacity&quot;)}):r.style({stroke:r.attr(&quot;data-stroke&quot;),opacity:r.attr(&quot;data-opacity&quot;)})}))}))}(c),this},h.config=function(t){if(!arguments.length)return l;var e=o.util.cloneJson(t);return e.data.forEach((function(t,e){l.data[e]||(l.data[e]={}),i(l.data[e],o.Axis.defaultConfig().data[0]),i(l.data[e],t)})),i(l.layout,o.Axis.defaultConfig().layout),i(l.layout,e.layout),this},h.getLiveConfig=function(){return u},h.getinputConfig=function(){return c},h.radialScale=function(t){return r},h.angularScale=function(t){return s},h.svg=function(){return t},n.rebind(h,f,&quot;on&quot;),h},o.Axis.defaultConfig=function(t,e){return{data:[{t:[1,2,3,4],r:[10,11,12,13],name:&quot;Line1&quot;,geometry:&quot;LinePlot&quot;,color:null,strokeDash:&quot;solid&quot;,strokeColor:null,strokeSize:&quot;1&quot;,visibleInLegend:!0,opacity:1}],layout:{defaultColorRange:n.scale.category10().range(),title:null,height:450,width:500,margin:{top:40,right:40,bottom:40,left:40},font:{size:12,color:&quot;gray&quot;,outlineColor:&quot;white&quot;,family:&quot;Tahoma, sans-serif&quot;},direction:&quot;clockwise&quot;,orientation:0,labelOffset:10,radialAxis:{domain:null,orientation:-45,ticksSuffix:&quot;&quot;,visible:!0,gridLinesVisible:!0,tickOrientation:&quot;horizontal&quot;,rewriteTicks:null},angularAxis:{domain:[0,360],ticksSuffix:&quot;&quot;,visible:!0,gridLinesVisible:!0,labelsVisible:!0,tickOrientation:&quot;horizontal&quot;,rewriteTicks:null,ticksCount:null,ticksStep:null},minorTicks:0,tickLength:null,tickColor:&quot;silver&quot;,minorTickColor:&quot;#eee&quot;,backgroundColor:&quot;none&quot;,needsEndSpacing:null,showLegend:!0,legend:{reverseOrder:!1},opacity:1}}},o.util={},o.DATAEXTENT=&quot;dataExtent&quot;,o.AREA=&quot;AreaChart&quot;,o.LINE=&quot;LinePlot&quot;,o.DOT=&quot;DotPlot&quot;,o.BAR=&quot;BarChart&quot;,o.util._override=function(t,e){for(var r in t)r in e&amp;&amp;(e[r]=t[r])},o.util._extend=function(t,e){for(var r in t)e[r]=t[r]},o.util._rndSnd=function(){return 2*Math.random()-1+(2*Math.random()-1)+(2*Math.random()-1)},o.util.dataFromEquation2=function(t,e){var r=e||6;return n.range(0,360+r,r).map((function(e,r){var n=e*Math.PI/180;return[e,t(n)]}))},o.util.dataFromEquation=function(t,e,r){var i=e||6,a=[],o=[];n.range(0,360+i,i).forEach((function(e,r){var n=e*Math.PI/180,i=t(n);a.push(e),o.push(i)}));var s={t:a,r:o};return r&amp;&amp;(s.name=r),s},o.util.ensureArray=function(t,e){if(&quot;undefined&quot;==typeof t)return null;var r=[].concat(t);return n.range(e).map((function(t,e){return r[e]||r[0]}))},o.util.fillArrays=function(t,e,r){return e.forEach((function(e,n){t[e]=o.util.ensureArray(t[e],r)})),t},o.util.cloneJson=function(t){return JSON.parse(JSON.stringify(t))},o.util.validateKeys=function(t,e){&quot;string&quot;==typeof e&amp;&amp;(e=e.split(&quot;.&quot;));var r=e.shift();return t[r]&amp;&amp;(!e.length||objHasKeys(t[r],e))},o.util.sumArrays=function(t,e){return n.zip(t,e).map((function(t,e){return n.sum(t)}))},o.util.arrayLast=function(t){return t[t.length-1]},o.util.arrayEqual=function(t,e){for(var r=Math.max(t.length,e.length,1);r-- &gt;=0&amp;&amp;t[r]===e[r];);return-2===r},o.util.flattenArray=function(t){for(var e=[];!o.util.arrayEqual(e,t);)e=t,t=[].concat.apply([],t);return t},o.util.deduplicate=function(t){return t.filter((function(t,e,r){return r.indexOf(t)==e}))},o.util.convertToCartesian=function(t,e){var r=e*Math.PI/180;return[t*Math.cos(r),t*Math.sin(r)]},o.util.round=function(t,e){var r=e||2,n=Math.pow(10,r);return Math.round(t*n)/n},o.util.getMousePos=function(t){var e=n.mouse(t.node()),r=e[0],i=e[1],a={};return a.x=r,a.y=i,a.pos=e,a.angle=180*(Math.atan2(i,r)+Math.PI)/Math.PI,a.radius=Math.sqrt(r*r+i*i),a},o.util.duplicatesCount=function(t){for(var e,r={},n={},i=0,a=t.length;i&lt;a;i++)(e=t[i])in r?(r[e]++,n[e]=r[e]):r[e]=1;return n},o.util.duplicates=function(t){return Object.keys(o.util.duplicatesCount(t))},o.util.translator=function(t,e,r,n){if(n){var i=r.slice();r=e,e=i}var a=e.reduce((function(t,e){if(&quot;undefined&quot;!=typeof t)return t[e]}),t);&quot;undefined&quot;!=typeof a&amp;&amp;(e.reduce((function(t,r,n){if(&quot;undefined&quot;!=typeof t)return n===e.length-1&amp;&amp;delete t[r],t[r]}),t),r.reduce((function(t,e,n){return&quot;undefined&quot;==typeof t[e]&amp;&amp;(t[e]={}),n===r.length-1&amp;&amp;(t[e]=a),t[e]}),t))},o.PolyChart=function(){var t=[o.PolyChart.defaultConfig()],e=n.dispatch(&quot;hover&quot;),r={solid:&quot;none&quot;,dash:[5,2],dot:[2,5]};function a(){var e=t[0].geometryConfig,i=e.container;&quot;string&quot;==typeof i&amp;&amp;(i=n.select(i)),i.datum(t).each((function(t,i){var a=!!t[0].data.yStack,o=t.map((function(t,e){return a?n.zip(t.data.t[0],t.data.r[0],t.data.yStack[0]):n.zip(t.data.t[0],t.data.r[0])})),s=e.angularScale,l=e.radialScale.domain()[0],c={bar:function(r,i,a){var o=t[a].data,l=e.radialScale(r[1])-e.radialScale(0),c=e.radialScale(r[2]||0),u=o.barWidth;n.select(this).attr({class:&quot;mark bar&quot;,d:&quot;M&quot;+[[l+c,-u/2],[l+c,u/2],[c,u/2],[c,-u/2]].join(&quot;L&quot;)+&quot;Z&quot;,transform:function(t,r){return&quot;rotate(&quot;+(e.orientation+s(t[0]))+&quot;)&quot;}})}};c.dot=function(r,i,a){var o=r[2]?[r[0],r[1]+r[2]]:r,s=n.svg.symbol().size(t[a].data.dotSize).type(t[a].data.dotType)(r,i);n.select(this).attr({class:&quot;mark dot&quot;,d:s,transform:function(t,r){var n,i,a,s=(n=function(t,r){var n=e.radialScale(t[1]),i=(e.angularScale(t[0])+e.orientation)*Math.PI/180;return{r:n,t:i}}(o),i=n.r*Math.cos(n.t),a=n.r*Math.sin(n.t),{x:i,y:a});return&quot;translate(&quot;+[s.x,s.y]+&quot;)&quot;}})};var u=n.svg.line.radial().interpolate(t[0].data.lineInterpolation).radius((function(t){return e.radialScale(t[1])})).angle((function(t){return e.angularScale(t[0])*Math.PI/180}));c.line=function(r,i,a){var s=r[2]?o[a].map((function(t,e){return[t[0],t[1]+t[2]]})):o[a];if(n.select(this).each(c.dot).style({opacity:function(e,r){return+t[a].data.dotVisible},fill:d.stroke(r,i,a)}).attr({class:&quot;mark dot&quot;}),!(i&gt;0)){var l=n.select(this.parentNode).selectAll(&quot;path.line&quot;).data([0]);l.enter().insert(&quot;path&quot;),l.attr({class:&quot;line&quot;,d:u(s),transform:function(t,r){return&quot;rotate(&quot;+(e.orientation+90)+&quot;)&quot;},&quot;pointer-events&quot;:&quot;none&quot;}).style({fill:function(t,e){return d.fill(r,i,a)},&quot;fill-opacity&quot;:0,stroke:function(t,e){return d.stroke(r,i,a)},&quot;stroke-width&quot;:function(t,e){return d[&quot;stroke-width&quot;](r,i,a)},&quot;stroke-dasharray&quot;:function(t,e){return d[&quot;stroke-dasharray&quot;](r,i,a)},opacity:function(t,e){return d.opacity(r,i,a)},display:function(t,e){return d.display(r,i,a)}})}};var f=e.angularScale.range(),h=Math.abs(f[1]-f[0])/o[0].length*Math.PI/180,p=n.svg.arc().startAngle((function(t){return-h/2})).endAngle((function(t){return h/2})).innerRadius((function(t){return e.radialScale(l+(t[2]||0))})).outerRadius((function(t){return e.radialScale(l+(t[2]||0))+e.radialScale(t[1])}));c.arc=function(t,r,i){n.select(this).attr({class:&quot;mark arc&quot;,d:p,transform:function(t,r){return&quot;rotate(&quot;+(e.orientation+s(t[0])+90)+&quot;)&quot;}})};var d={fill:function(e,r,n){return t[n].data.color},stroke:function(e,r,n){return t[n].data.strokeColor},&quot;stroke-width&quot;:function(e,r,n){return t[n].data.strokeSize+&quot;px&quot;},&quot;stroke-dasharray&quot;:function(e,n,i){return r[t[i].data.strokeDash]},opacity:function(e,r,n){return t[n].data.opacity},display:function(e,r,n){return&quot;undefined&quot;==typeof t[n].data.visible||t[n].data.visible?&quot;block&quot;:&quot;none&quot;}},g=n.select(this).selectAll(&quot;g.layer&quot;).data(o);g.enter().append(&quot;g&quot;).attr({class:&quot;layer&quot;});var m=g.selectAll(&quot;path.mark&quot;).data((function(t,e){return t}));m.enter().append(&quot;path&quot;).attr({class:&quot;mark&quot;}),m.style(d).each(c[e.geometryType]),m.exit().remove(),g.exit().remove()}))}return a.config=function(e){return arguments.length?(e.forEach((function(e,r){t[r]||(t[r]={}),i(t[r],o.PolyChart.defaultConfig()),i(t[r],e)})),this):t},a.getColorScale=function(){},n.rebind(a,e,&quot;on&quot;),a},o.PolyChart.defaultConfig=function(){return{data:{name:&quot;geom1&quot;,t:[[1,2,3,4]],r:[[1,2,3,4]],dotType:&quot;circle&quot;,dotSize:64,dotVisible:!1,barWidth:20,color:&quot;#ffa500&quot;,strokeSize:1,strokeColor:&quot;silver&quot;,strokeDash:&quot;solid&quot;,opacity:1,index:0,visible:!0,visibleInLegend:!0},geometryConfig:{geometry:&quot;LinePlot&quot;,geometryType:&quot;arc&quot;,direction:&quot;clockwise&quot;,orientation:0,container:&quot;body&quot;,radialScale:null,angularScale:null,colorScale:n.scale.category20()}}},o.BarChart=function(){return o.PolyChart()},o.BarChart.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;bar&quot;}}},o.AreaChart=function(){return o.PolyChart()},o.AreaChart.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;arc&quot;}}},o.DotPlot=function(){return o.PolyChart()},o.DotPlot.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;dot&quot;,dotType:&quot;circle&quot;}}},o.LinePlot=function(){return o.PolyChart()},o.LinePlot.defaultConfig=function(){return{geometryConfig:{geometryType:&quot;line&quot;}}},o.Legend=function(){var t=o.Legend.defaultConfig(),e=n.dispatch(&quot;hover&quot;);function r(){var e=t.legendConfig,a=t.data.map((function(t,r){return[].concat(t).map((function(t,n){var a=i({},e.elements[r]);return a.name=t,a.color=[].concat(e.elements[r].color)[n],a}))})),o=n.merge(a);o=o.filter((function(t,r){return e.elements[r]&amp;&amp;(e.elements[r].visibleInLegend||&quot;undefined&quot;==typeof e.elements[r].visibleInLegend)})),e.reverseOrder&amp;&amp;(o=o.reverse());var s=e.container;(&quot;string&quot;==typeof s||s.nodeName)&amp;&amp;(s=n.select(s));var l=o.map((function(t,e){return t.color})),c=e.fontSize,u=null==e.isContinuous?&quot;number&quot;==typeof o[0]:e.isContinuous,f=u?e.height:c*o.length,h=s.classed(&quot;legend-group&quot;,!0).selectAll(&quot;svg&quot;).data([0]),p=h.enter().append(&quot;svg&quot;).attr({width:300,height:f+c,xmlns:&quot;http://www.w3.org/2000/svg&quot;,&quot;xmlns:xlink&quot;:&quot;http://www.w3.org/1999/xlink&quot;,version:&quot;1.1&quot;});p.append(&quot;g&quot;).classed(&quot;legend-axis&quot;,!0),p.append(&quot;g&quot;).classed(&quot;legend-marks&quot;,!0);var d=n.range(o.length),g=n.scale[u?&quot;linear&quot;:&quot;ordinal&quot;]().domain(d).range(l),m=n.scale[u?&quot;linear&quot;:&quot;ordinal&quot;]().domain(d)[u?&quot;range&quot;:&quot;rangePoints&quot;]([0,f]);if(u){var v=h.select(&quot;.legend-marks&quot;).append(&quot;defs&quot;).append(&quot;linearGradient&quot;).attr({id:&quot;grad1&quot;,x1:&quot;0%&quot;,y1:&quot;0%&quot;,x2:&quot;0%&quot;,y2:&quot;100%&quot;}).selectAll(&quot;stop&quot;).data(l);v.enter().append(&quot;stop&quot;),v.attr({offset:function(t,e){return e/(l.length-1)*100+&quot;%&quot;}}).style({&quot;stop-color&quot;:function(t,e){return t}}),h.append(&quot;rect&quot;).classed(&quot;legend-mark&quot;,!0).attr({height:e.height,width:e.colorBandWidth,fill:&quot;url(#grad1)&quot;})}else{var y=h.select(&quot;.legend-marks&quot;).selectAll(&quot;path.legend-mark&quot;).data(o);y.enter().append(&quot;path&quot;).classed(&quot;legend-mark&quot;,!0),y.attr({transform:function(t,e){return&quot;translate(&quot;+[c/2,m(e)+c/2]+&quot;)&quot;},d:function(t,e){var r,i,a,o=t.symbol;return a=3*(i=c),&quot;line&quot;===(r=o)?&quot;M&quot;+[[-i/2,-i/12],[i/2,-i/12],[i/2,i/12],[-i/2,i/12]]+&quot;Z&quot;:-1!=n.svg.symbolTypes.indexOf(r)?n.svg.symbol().type(r).size(a)():n.svg.symbol().type(&quot;square&quot;).size(a)()},fill:function(t,e){return g(e)}}),y.exit().remove()}var x=n.svg.axis().scale(m).orient(&quot;right&quot;),b=h.select(&quot;g.legend-axis&quot;).attr({transform:&quot;translate(&quot;+[u?e.colorBandWidth:c,c/2]+&quot;)&quot;}).call(x);return b.selectAll(&quot;.domain&quot;).style({fill:&quot;none&quot;,stroke:&quot;none&quot;}),b.selectAll(&quot;line&quot;).style({fill:&quot;none&quot;,stroke:u?e.textColor:&quot;none&quot;}),b.selectAll(&quot;text&quot;).style({fill:e.textColor,&quot;font-size&quot;:e.fontSize}).text((function(t,e){return o[e].name})),r}return r.config=function(e){return arguments.length?(i(t,e),this):t},n.rebind(r,e,&quot;on&quot;),r},o.Legend.defaultConfig=function(t,e){return{data:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],legendConfig:{elements:[{symbol:&quot;line&quot;,color:&quot;red&quot;},{symbol:&quot;square&quot;,color:&quot;yellow&quot;},{symbol:&quot;diamond&quot;,color:&quot;limegreen&quot;}],height:150,colorBandWidth:30,fontSize:12,container:&quot;body&quot;,isContinuous:null,textColor:&quot;grey&quot;,reverseOrder:!1}}},o.tooltipPanel=function(){var t,e,r,a={container:null,hasTick:!1,fontSize:12,color:&quot;white&quot;,padding:5},s=&quot;tooltip-&quot;+o.tooltipPanel.uid++,l=10,c=function(){var n=(t=a.container.selectAll(&quot;g.&quot;+s).data([0])).enter().append(&quot;g&quot;).classed(s,!0).style({&quot;pointer-events&quot;:&quot;none&quot;,display:&quot;none&quot;});return r=n.append(&quot;path&quot;).style({fill:&quot;white&quot;,&quot;fill-opacity&quot;:.9}).attr({d:&quot;M0 0&quot;}),e=n.append(&quot;text&quot;).attr({dx:a.padding+l,dy:.3*+a.fontSize}),c};return c.text=function(i){var o=n.hsl(a.color).l,s=o&gt;=.5?&quot;#aaa&quot;:&quot;white&quot;,u=o&gt;=.5?&quot;black&quot;:&quot;white&quot;,f=i||&quot;&quot;;e.style({fill:u,&quot;font-size&quot;:a.fontSize+&quot;px&quot;}).text(f);var h=a.padding,p=e.node().getBBox(),d={fill:a.color,stroke:s,&quot;stroke-width&quot;:&quot;2px&quot;},g=p.width+2*h+l,m=p.height+2*h;return r.attr({d:&quot;M&quot;+[[l,-m/2],[l,-m/4],[a.hasTick?0:l,0],[l,m/4],[l,m/2],[g,m/2],[g,-m/2]].join(&quot;L&quot;)+&quot;Z&quot;}).style(d),t.attr({transform:&quot;translate(&quot;+[l,-m/2+2*h]+&quot;)&quot;}),t.style({display:&quot;block&quot;}),c},c.move=function(e){if(t)return t.attr({transform:&quot;translate(&quot;+[e[0],e[1]]+&quot;)&quot;}).style({display:&quot;block&quot;}),c},c.hide=function(){if(t)return t.style({display:&quot;none&quot;}),c},c.show=function(){if(t)return t.style({display:&quot;block&quot;}),c},c.config=function(t){return i(a,t),c},c},o.tooltipPanel.uid=1,o.adapter={},o.adapter.plotly=function(){var t={convert:function(t,e){var r={};if(t.data&amp;&amp;(r.data=t.data.map((function(t,r){var n=i({},t);return[[n,[&quot;marker&quot;,&quot;color&quot;],[&quot;color&quot;]],[n,[&quot;marker&quot;,&quot;opacity&quot;],[&quot;opacity&quot;]],[n,[&quot;marker&quot;,&quot;line&quot;,&quot;color&quot;],[&quot;strokeColor&quot;]],[n,[&quot;marker&quot;,&quot;line&quot;,&quot;dash&quot;],[&quot;strokeDash&quot;]],[n,[&quot;marker&quot;,&quot;line&quot;,&quot;width&quot;],[&quot;strokeSize&quot;]],[n,[&quot;marker&quot;,&quot;symbol&quot;],[&quot;dotType&quot;]],[n,[&quot;marker&quot;,&quot;size&quot;],[&quot;dotSize&quot;]],[n,[&quot;marker&quot;,&quot;barWidth&quot;],[&quot;barWidth&quot;]],[n,[&quot;line&quot;,&quot;interpolation&quot;],[&quot;lineInterpolation&quot;]],[n,[&quot;showlegend&quot;],[&quot;visibleInLegend&quot;]]].forEach((function(t,r){o.util.translator.apply(null,t.concat(e))})),e||delete n.marker,e&amp;&amp;delete n.groupId,e?(&quot;LinePlot&quot;===n.geometry?(n.type=&quot;scatter&quot;,!0===n.dotVisible?(delete n.dotVisible,n.mode=&quot;lines+markers&quot;):n.mode=&quot;lines&quot;):&quot;DotPlot&quot;===n.geometry?(n.type=&quot;scatter&quot;,n.mode=&quot;markers&quot;):&quot;AreaChart&quot;===n.geometry?n.type=&quot;area&quot;:&quot;BarChart&quot;===n.geometry&amp;&amp;(n.type=&quot;bar&quot;),delete n.geometry):(&quot;scatter&quot;===n.type?&quot;lines&quot;===n.mode?n.geometry=&quot;LinePlot&quot;:&quot;markers&quot;===n.mode?n.geometry=&quot;DotPlot&quot;:&quot;lines+markers&quot;===n.mode&amp;&amp;(n.geometry=&quot;LinePlot&quot;,n.dotVisible=!0):&quot;area&quot;===n.type?n.geometry=&quot;AreaChart&quot;:&quot;bar&quot;===n.type&amp;&amp;(n.geometry=&quot;BarChart&quot;),delete n.mode,delete n.type),n})),!e&amp;&amp;t.layout&amp;&amp;&quot;stack&quot;===t.layout.barmode)){var a=o.util.duplicates(r.data.map((function(t,e){return t.geometry})));r.data.forEach((function(t,e){var n=a.indexOf(t.geometry);-1!=n&amp;&amp;(r.data[e].groupId=n)}))}if(t.layout){var s=i({},t.layout);if([[s,[&quot;plot_bgcolor&quot;],[&quot;backgroundColor&quot;]],[s,[&quot;showlegend&quot;],[&quot;showLegend&quot;]],[s,[&quot;radialaxis&quot;],[&quot;radialAxis&quot;]],[s,[&quot;angularaxis&quot;],[&quot;angularAxis&quot;]],[s.angularaxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.angularaxis,[&quot;showticklabels&quot;],[&quot;labelsVisible&quot;]],[s.angularaxis,[&quot;nticks&quot;],[&quot;ticksCount&quot;]],[s.angularaxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.angularaxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.angularaxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.angularaxis,[&quot;endpadding&quot;],[&quot;endPadding&quot;]],[s.radialaxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.radialaxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.radialaxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.radialaxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.angularAxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.angularAxis,[&quot;showticklabels&quot;],[&quot;labelsVisible&quot;]],[s.angularAxis,[&quot;nticks&quot;],[&quot;ticksCount&quot;]],[s.angularAxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.angularAxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.angularAxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.angularAxis,[&quot;endpadding&quot;],[&quot;endPadding&quot;]],[s.radialAxis,[&quot;showline&quot;],[&quot;gridLinesVisible&quot;]],[s.radialAxis,[&quot;tickorientation&quot;],[&quot;tickOrientation&quot;]],[s.radialAxis,[&quot;ticksuffix&quot;],[&quot;ticksSuffix&quot;]],[s.radialAxis,[&quot;range&quot;],[&quot;domain&quot;]],[s.font,[&quot;outlinecolor&quot;],[&quot;outlineColor&quot;]],[s.legend,[&quot;traceorder&quot;],[&quot;reverseOrder&quot;]],[s,[&quot;labeloffset&quot;],[&quot;labelOffset&quot;]],[s,[&quot;defaultcolorrange&quot;],[&quot;defaultColorRange&quot;]]].forEach((function(t,r){o.util.translator.apply(null,t.concat(e))})),e?(&quot;undefined&quot;!=typeof s.tickLength&amp;&amp;(s.angularaxis.ticklen=s.tickLength,delete s.tickLength),s.tickColor&amp;&amp;(s.angularaxis.tickcolor=s.tickColor,delete s.tickColor)):(s.angularAxis&amp;&amp;&quot;undefined&quot;!=typeof s.angularAxis.ticklen&amp;&amp;(s.tickLength=s.angularAxis.ticklen),s.angularAxis&amp;&amp;&quot;undefined&quot;!=typeof s.angularAxis.tickcolor&amp;&amp;(s.tickColor=s.angularAxis.tickcolor)),s.legend&amp;&amp;&quot;boolean&quot;!=typeof s.legend.reverseOrder&amp;&amp;(s.legend.reverseOrder=&quot;normal&quot;!=s.legend.reverseOrder),s.legend&amp;&amp;&quot;boolean&quot;==typeof s.legend.traceorder&amp;&amp;(s.legend.traceorder=s.legend.traceorder?&quot;reversed&quot;:&quot;normal&quot;,delete s.legend.reverseOrder),s.margin&amp;&amp;&quot;undefined&quot;!=typeof s.margin.t){var l=[&quot;t&quot;,&quot;r&quot;,&quot;b&quot;,&quot;l&quot;,&quot;pad&quot;],c=[&quot;top&quot;,&quot;right&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;pad&quot;],u={};n.entries(s.margin).forEach((function(t,e){u[c[l.indexOf(t.key)]]=t.value})),s.margin=u}e&amp;&amp;(delete s.needsEndSpacing,delete s.minorTickColor,delete s.minorTicks,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksCount,delete s.angularaxis.ticksStep,delete s.angularaxis.rewriteTicks,delete s.angularaxis.nticks,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksCount,delete s.radialaxis.ticksStep,delete s.radialaxis.rewriteTicks,delete s.radialaxis.nticks),r.layout=s}return r}};return t}},{&quot;../../../constants/alignment&quot;:745,&quot;../../../lib&quot;:778,d3:169}],901:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../../lib&quot;),a=t(&quot;../../../components/color&quot;),o=t(&quot;./micropolar&quot;),s=t(&quot;./undo_manager&quot;),l=i.extendDeepAll,c=e.exports={};c.framework=function(t){var e,r,i,a,u,f=new s;function h(r,s){return s&amp;&amp;(u=s),n.select(n.select(u).node().parentNode).selectAll(&quot;.svg-container&gt;*:not(.chart-root)&quot;).remove(),e=e?l(e,r):r,i||(i=o.Axis()),a=o.adapter.plotly().convert(e),i.config(a).render(u),t.data=e.data,t.layout=e.layout,c.fillLayout(t),e}return h.isPolar=!0,h.svg=function(){return i.svg()},h.getConfig=function(){return e},h.getLiveConfig=function(){return o.adapter.plotly().convert(i.getLiveConfig(),!0)},h.getLiveScales=function(){return{t:i.angularScale(),r:i.radialScale()}},h.setUndoPoint=function(){var t,n,i=this,a=o.util.cloneJson(e);t=a,n=r,f.add({undo:function(){n&amp;&amp;i(n)},redo:function(){i(t)}}),r=o.util.cloneJson(a)},h.undo=function(){f.undo()},h.redo=function(){f.redo()},h},c.fillLayout=function(t){var e=n.select(t).selectAll(&quot;.plot-container&quot;),r=e.selectAll(&quot;.svg-container&quot;),i=t.framework&amp;&amp;t.framework.svg&amp;&amp;t.framework.svg(),o={width:800,height:600,paper_bgcolor:a.background,_container:e,_paperdiv:r,_paper:i};t._fullLayout=l(o,t.layout)}},{&quot;../../../components/color&quot;:643,&quot;../../../lib&quot;:778,&quot;./micropolar&quot;:900,&quot;./undo_manager&quot;:902,d3:169}],902:[function(t,e,r){&quot;use strict&quot;;e.exports=function(){var t,e=[],r=-1,n=!1;function i(t,e){return t?(n=!0,t[e](),n=!1,this):this}return{add:function(t){return n||(e.splice(r+1,e.length-r),e.push(t),r=e.length-1),this},setCallback:function(e){t=e},undo:function(){var n=e[r];return n?(i(n,&quot;undo&quot;),r-=1,t&amp;&amp;t(n.undo),this):this},redo:function(){var n=e[r+1];return n?(i(n,&quot;redo&quot;),r+=1,t&amp;&amp;t(n.redo),this):this},clear:function(){e=[],r=-1},hasUndo:function(){return-1!==r},hasRedo:function(){return r&lt;e.length-1},getCommands:function(){return e},getPreviousCommand:function(){return e[r-1]},getIndex:function(){return r}}}},{}],903:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=o.strRotate,l=o.strTranslate,c=t(&quot;../../components/color&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../plots&quot;),h=t(&quot;../../plots/cartesian/axes&quot;),p=t(&quot;../cartesian/set_convert&quot;),d=t(&quot;./set_convert&quot;),g=t(&quot;../cartesian/autorange&quot;).doAutoRange,m=t(&quot;../cartesian/dragbox&quot;),v=t(&quot;../../components/dragelement&quot;),y=t(&quot;../../components/fx&quot;),x=t(&quot;../../components/titles&quot;),b=t(&quot;../cartesian/select&quot;).prepSelect,_=t(&quot;../cartesian/select&quot;).selectOnClick,w=t(&quot;../cartesian/select&quot;).clearSelect,T=t(&quot;../../lib/setcursor&quot;),k=t(&quot;../../lib/clear_gl_canvases&quot;),M=t(&quot;../../plot_api/subroutines&quot;).redrawReglTraces,A=t(&quot;../../constants/alignment&quot;).MID_SHIFT,S=t(&quot;./constants&quot;),E=t(&quot;./helpers&quot;),C=o._,L=o.mod,I=o.deg2rad,P=o.rad2deg;function z(t,e){this.id=e,this.gd=t,this._hasClipOnAxisFalse=null,this.vangles=null,this.radialAxisAngle=null,this.traceHash={},this.layers={},this.clipPaths={},this.clipIds={},this.viewInitial={};var r=t._fullLayout,n=&quot;clip&quot;+r._uid+e;this.clipIds.forTraces=n+&quot;-for-traces&quot;,this.clipPaths.forTraces=r._clips.append(&quot;clipPath&quot;).attr(&quot;id&quot;,this.clipIds.forTraces),this.clipPaths.forTraces.append(&quot;path&quot;),this.framework=r._polarlayer.append(&quot;g&quot;).attr(&quot;class&quot;,e),this.radialTickLayout=null,this.angularTickLayout=null}var O=z.prototype;function D(t){var e=t.ticks+String(t.ticklen)+String(t.showticklabels);return&quot;side&quot;in t&amp;&amp;(e+=t.side),e}function R(t,e){return e[o.findIndexOfMin(e,(function(e){return o.angleDist(t,e)}))]}function F(t,e,r){return e?(t.attr(&quot;display&quot;,null),t.attr(r)):t&amp;&amp;t.attr(&quot;display&quot;,&quot;none&quot;),t}e.exports=function(t,e){return new z(t,e)},O.plot=function(t,e){var r=e[this.id];this._hasClipOnAxisFalse=!1;for(var n=0;n&lt;t.length;n++){if(!1===t[n][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(e,r),this.updateLayout(e,r),f.generalUpdatePerTraceModule(this.gd,this,t,r),this.updateFx(e,r)},O.updateLayers=function(t,e){var r=this.layers,i=e.radialaxis,a=e.angularaxis,o=S.layerNames,s=o.indexOf(&quot;frontplot&quot;),l=o.slice(0,s),c=&quot;below traces&quot;===a.layer,u=&quot;below traces&quot;===i.layer;c&amp;&amp;l.push(&quot;angular-line&quot;),u&amp;&amp;l.push(&quot;radial-line&quot;),c&amp;&amp;l.push(&quot;angular-axis&quot;),u&amp;&amp;l.push(&quot;radial-axis&quot;),l.push(&quot;frontplot&quot;),c||l.push(&quot;angular-line&quot;),u||l.push(&quot;radial-line&quot;),c||l.push(&quot;angular-axis&quot;),u||l.push(&quot;radial-axis&quot;);var f=this.framework.selectAll(&quot;.polarsublayer&quot;).data(l,String);f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;polarsublayer &quot;+t})).each((function(t){var e=r[t]=n.select(this);switch(t){case&quot;frontplot&quot;:e.append(&quot;g&quot;).classed(&quot;barlayer&quot;,!0),e.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0);break;case&quot;backplot&quot;:e.append(&quot;g&quot;).classed(&quot;maplayer&quot;,!0);break;case&quot;plotbg&quot;:r.bg=e.append(&quot;path&quot;);break;case&quot;radial-grid&quot;:case&quot;angular-grid&quot;:e.style(&quot;fill&quot;,&quot;none&quot;);break;case&quot;radial-line&quot;:e.append(&quot;line&quot;).style(&quot;fill&quot;,&quot;none&quot;);break;case&quot;angular-line&quot;:e.append(&quot;path&quot;).style(&quot;fill&quot;,&quot;none&quot;)}})),f.order()},O.updateLayout=function(t,e){var r=this.layers,n=t._size,i=e.radialaxis,a=e.angularaxis,o=e.domain.x,s=e.domain.y;this.xOffset=n.l+n.w*o[0],this.yOffset=n.t+n.h*(1-s[1]);var f=this.xLength=n.w*(o[1]-o[0]),h=this.yLength=n.h*(s[1]-s[0]),p=e.sector;this.sectorInRad=p.map(I);var d,g,m,v,y,x=this.sectorBBox=function(t){var e,r,n,i,a=t[0],o=t[1]-a,s=L(a,360),l=s+o,c=Math.cos(I(s)),u=Math.sin(I(s)),f=Math.cos(I(l)),h=Math.sin(I(l));i=s&lt;=90&amp;&amp;l&gt;=90||s&gt;90&amp;&amp;l&gt;=450?1:u&lt;=0&amp;&amp;h&lt;=0?0:Math.max(u,h);e=s&lt;=180&amp;&amp;l&gt;=180||s&gt;180&amp;&amp;l&gt;=540?-1:c&gt;=0&amp;&amp;f&gt;=0?0:Math.min(c,f);r=s&lt;=270&amp;&amp;l&gt;=270||s&gt;270&amp;&amp;l&gt;=630?-1:u&gt;=0&amp;&amp;h&gt;=0?0:Math.min(u,h);n=l&gt;=360?1:c&lt;=0&amp;&amp;f&lt;=0?0:Math.max(c,f);return[e,r,n,i]}(p),b=x[2]-x[0],_=x[3]-x[1],w=h/f,T=Math.abs(_/b);w&gt;T?(d=f,y=(h-(g=f*T))/n.h/2,m=[o[0],o[1]],v=[s[0]+y,s[1]-y]):(g=h,y=(f-(d=h/T))/n.w/2,m=[o[0]+y,o[1]-y],v=[s[0],s[1]]),this.xLength2=d,this.yLength2=g,this.xDomain2=m,this.yDomain2=v;var k=this.xOffset2=n.l+n.w*m[0],M=this.yOffset2=n.t+n.h*(1-v[1]),A=this.radius=d/b,S=this.innerRadius=e.hole*A,E=this.cx=k-A*x[0],C=this.cy=M+A*x[3],P=this.cxx=E-k,z=this.cyy=C-M;this.radialAxis=this.mockAxis(t,e,i,{_id:&quot;x&quot;,side:{counterclockwise:&quot;top&quot;,clockwise:&quot;bottom&quot;}[i.side],_realSide:i.side,domain:[S/n.w,A/n.w]}),this.angularAxis=this.mockAxis(t,e,a,{side:&quot;right&quot;,domain:[0,Math.PI],autorange:!1}),this.doAutoRange(t,e),this.updateAngularAxis(t,e),this.updateRadialAxis(t,e),this.updateRadialAxisTitle(t,e),this.xaxis=this.mockCartesianAxis(t,e,{_id:&quot;x&quot;,domain:m}),this.yaxis=this.mockCartesianAxis(t,e,{_id:&quot;y&quot;,domain:v});var O=this.pathSubplot();this.clipPaths.forTraces.select(&quot;path&quot;).attr(&quot;d&quot;,O).attr(&quot;transform&quot;,l(P,z)),r.frontplot.attr(&quot;transform&quot;,l(k,M)).call(u.setClipUrl,this._hasClipOnAxisFalse?null:this.clipIds.forTraces,this.gd),r.bg.attr(&quot;d&quot;,O).attr(&quot;transform&quot;,l(E,C)).call(c.fill,e.bgcolor)},O.mockAxis=function(t,e,r,n){var i=o.extendFlat({},r,n);return d(i,e,t),i},O.mockCartesianAxis=function(t,e,r){var n=this,i=r._id,a=o.extendFlat({type:&quot;linear&quot;},r);p(a,t);var s={x:[0,2],y:[1,3]};return a.setRange=function(){var t=n.sectorBBox,r=s[i],o=n.radialAxis._rl,l=(o[1]-o[0])/(1-e.hole);a.range=[t[r[0]]*l,t[r[1]]*l]},a.isPtWithinRange=&quot;x&quot;===i?function(t){return n.isPtInside(t)}:function(){return!0},a.setRange(),a.setScale(),a},O.doAutoRange=function(t,e){var r=this.gd,n=this.radialAxis,i=e.radialaxis;n.setScale(),g(r,n);var a=n.range;i.range=a.slice(),i._input.range=a.slice(),n._rl=[n.r2l(a[0],null,&quot;gregorian&quot;),n.r2l(a[1],null,&quot;gregorian&quot;)]},O.updateRadialAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=e.radialaxis,g=L(e.sector[0],360),m=r.radialAxis,v=u&lt;a;r.fillViewInitialKey(&quot;radialaxis.angle&quot;,d.angle),r.fillViewInitialKey(&quot;radialaxis.range&quot;,m.range.slice()),m.setGeometry(),&quot;auto&quot;===m.tickangle&amp;&amp;g&gt;90&amp;&amp;g&lt;=270&amp;&amp;(m.tickangle=180);var y=function(t){return l(m.l2p(t.x)+u,0)},x=D(d);if(r.radialTickLayout!==x&amp;&amp;(i[&quot;radial-axis&quot;].selectAll(&quot;.xtick&quot;).remove(),r.radialTickLayout=x),v){m.setScale();var b=h.calcTicks(m),_=h.clipEnds(m,b),w=h.getTickSigns(m)[2];h.drawTicks(n,m,{vals:b,layer:i[&quot;radial-axis&quot;],path:h.makeTickPath(m,0,w),transFn:y,crisp:!1}),h.drawGrid(n,m,{vals:_,layer:i[&quot;radial-grid&quot;],path:function(t){return r.pathArc(m.r2p(t.x)+u)},transFn:o.noop,crisp:!1}),h.drawLabels(n,m,{vals:b,layer:i[&quot;radial-axis&quot;],transFn:y,labelFns:h.makeLabelFns(m,0)})}var T=r.radialAxisAngle=r.vangles?P(R(I(d.angle),r.vangles)):d.angle,k=l(f,p),M=k+s(-T);F(i[&quot;radial-axis&quot;],v&amp;&amp;(d.showticklabels||d.ticks),{transform:M}),F(i[&quot;radial-grid&quot;],v&amp;&amp;d.showgrid,{transform:k}),F(i[&quot;radial-line&quot;].select(&quot;line&quot;),v&amp;&amp;d.showline,{x1:u,y1:0,x2:a,y2:0,transform:M}).attr(&quot;stroke-width&quot;,d.linewidth).call(c.stroke,d.linecolor)},O.updateRadialAxisTitle=function(t,e,r){var n=this.gd,i=this.radius,a=this.cx,o=this.cy,s=e.radialaxis,l=this.id+&quot;title&quot;,c=void 0!==r?r:this.radialAxisAngle,f=I(c),h=Math.cos(f),p=Math.sin(f),d=0;if(s.title){var g=u.bBox(this.layers[&quot;radial-axis&quot;].node()).height,m=s.title.font.size;d=&quot;counterclockwise&quot;===s.side?-g-.4*m:g+.8*m}this.layers[&quot;radial-axis-title&quot;]=x.draw(n,l,{propContainer:s,propName:this.id+&quot;.radialaxis.title&quot;,placeholder:C(n,&quot;Click to enter radial axis title&quot;),attributes:{x:a+i/2*h+d*p,y:o-i/2*p+d*h,&quot;text-anchor&quot;:&quot;middle&quot;},transform:{rotate:-c}})},O.updateAngularAxis=function(t,e){var r=this,n=r.gd,i=r.layers,a=r.radius,u=r.innerRadius,f=r.cx,p=r.cy,d=e.angularaxis,g=r.angularAxis;r.fillViewInitialKey(&quot;angularaxis.rotation&quot;,d.rotation),g.setGeometry(),g.setScale();var m=function(t){return g.t2g(t.x)};&quot;linear&quot;===g.type&amp;&amp;&quot;radians&quot;===g.thetaunit&amp;&amp;(g.tick0=P(g.tick0),g.dtick=P(g.dtick));var v=function(t){return l(f+a*Math.cos(t),p-a*Math.sin(t))},y=h.makeLabelFns(g,0).labelStandoff,x={xFn:function(t){var e=m(t);return Math.cos(e)*y},yFn:function(t){var e=m(t),r=Math.sin(e)&gt;0?.2:1;return-Math.sin(e)*(y+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*A)},anchorFn:function(t){var e=m(t),r=Math.cos(e);return Math.abs(r)&lt;.1?&quot;middle&quot;:r&gt;0?&quot;start&quot;:&quot;end&quot;},heightFn:function(t,e,r){var n=m(t);return-.5*(1+Math.sin(n))*r}},b=D(d);r.angularTickLayout!==b&amp;&amp;(i[&quot;angular-axis&quot;].selectAll(&quot;.&quot;+g._id+&quot;tick&quot;).remove(),r.angularTickLayout=b);var _,w=h.calcTicks(g);if(&quot;linear&quot;===e.gridshape?(_=w.map(m),o.angleDelta(_[0],_[1])&lt;0&amp;&amp;(_=_.slice().reverse())):_=null,r.vangles=_,&quot;category&quot;===g.type&amp;&amp;(w=w.filter((function(t){return o.isAngleInsideSector(m(t),r.sectorInRad)}))),g.visible){var T=&quot;inside&quot;===g.ticks?-1:1,k=(g.linewidth||1)/2;h.drawTicks(n,g,{vals:w,layer:i[&quot;angular-axis&quot;],path:&quot;M&quot;+T*k+&quot;,0h&quot;+T*g.ticklen,transFn:function(t){var e=m(t);return v(e)+s(-P(e))},crisp:!1}),h.drawGrid(n,g,{vals:w,layer:i[&quot;angular-grid&quot;],path:function(t){var e=m(t),r=Math.cos(e),n=Math.sin(e);return&quot;M&quot;+[f+u*r,p-u*n]+&quot;L&quot;+[f+a*r,p-a*n]},transFn:o.noop,crisp:!1}),h.drawLabels(n,g,{vals:w,layer:i[&quot;angular-axis&quot;],repositionOnUpdate:!0,transFn:function(t){return v(m(t))},labelFns:x})}F(i[&quot;angular-line&quot;].select(&quot;path&quot;),d.showline,{d:r.pathSubplot(),transform:l(f,p)}).attr(&quot;stroke-width&quot;,d.linewidth).call(c.stroke,d.linecolor)},O.updateFx=function(t,e){this.gd._context.staticPlot||(this.updateAngularDrag(t),this.updateRadialDrag(t,e,0),this.updateRadialDrag(t,e,1),this.updateMainDrag(t))},O.updateMainDrag=function(t){var e,r,s=this,c=s.gd,u=s.layers,f=t._zoomlayer,h=S.MINZOOM,p=S.OFFEDGE,d=s.radius,g=s.innerRadius,x=s.cx,T=s.cy,k=s.cxx,M=s.cyy,A=s.sectorInRad,C=s.vangles,L=s.radialAxis,I=E.clampTiny,P=E.findXYatLength,z=E.findEnclosingVertexAngles,O=S.cornerHalfWidth,D=S.cornerLen/2,R=m.makeDragger(u,&quot;path&quot;,&quot;maindrag&quot;,&quot;crosshair&quot;);n.select(R).attr(&quot;d&quot;,s.pathSubplot()).attr(&quot;transform&quot;,l(x,T));var F,B,N,j,U,V,q,H,G,Y={element:R,gd:c,subplot:s.id,plotinfo:{id:s.id,xaxis:s.xaxis,yaxis:s.yaxis},xaxes:[s.xaxis],yaxes:[s.yaxis]};function W(t,e){return Math.sqrt(t*t+e*e)}function X(t,e){return W(t-k,e-M)}function Z(t,e){return Math.atan2(M-e,t-k)}function J(t,e){return[t*Math.cos(e),t*Math.sin(-e)]}function K(t,e){if(0===t)return s.pathSector(2*O);var r=D/t,n=e-r,i=e+r,a=Math.max(0,Math.min(t,d)),o=a-O,l=a+O;return&quot;M&quot;+J(o,n)+&quot;A&quot;+[o,o]+&quot; 0,0,0 &quot;+J(o,i)+&quot;L&quot;+J(l,i)+&quot;A&quot;+[l,l]+&quot; 0,0,1 &quot;+J(l,n)+&quot;Z&quot;}function Q(t,e,r){if(0===t)return s.pathSector(2*O);var n,i,a=J(t,e),o=J(t,r),l=I((a[0]+o[0])/2),c=I((a[1]+o[1])/2);if(l&amp;&amp;c){var u=c/l,f=-1/u,h=P(O,u,l,c);n=P(D,f,h[0][0],h[0][1]),i=P(D,f,h[1][0],h[1][1])}else{var p,d;c?(p=D,d=O):(p=O,d=D),n=[[l-p,c-d],[l+p,c-d]],i=[[l-p,c+d],[l+p,c+d]]}return&quot;M&quot;+n.join(&quot;L&quot;)+&quot;L&quot;+i.reverse().join(&quot;L&quot;)+&quot;Z&quot;}function $(t,e){return e=Math.max(Math.min(e,d),g),t&lt;p?t=0:d-t&lt;p?t=d:e&lt;p?e=0:d-e&lt;p&amp;&amp;(e=d),Math.abs(e-t)&gt;h?(t&lt;e?(N=t,j=e):(N=e,j=t),!0):(N=null,j=null,!1)}function tt(t,e){t=t||U,e=e||&quot;M0,0Z&quot;,H.attr(&quot;d&quot;,t),G.attr(&quot;d&quot;,e),m.transitionZoombox(H,G,V,q),V=!0;var r={};at(r),c.emit(&quot;plotly_relayouting&quot;,r)}function et(t,n){var i,a,o=F+(t*=e),l=B+(n*=r),c=X(F,B),u=Math.min(X(o,l),d),f=Z(F,B);$(c,u)&amp;&amp;(i=U+s.pathSector(j),N&amp;&amp;(i+=s.pathSector(N)),a=K(N,f)+K(j,f)),tt(i,a)}function rt(t,e,r,n){var i=E.findIntersectionXY(r,n,r,[t-k,M-e]);return W(i[0],i[1])}function nt(t,e){var r,n,i=F+t,a=B+e,o=Z(F,B),l=Z(i,a),c=z(o,C),u=z(l,C);$(rt(F,B,c[0],c[1]),Math.min(rt(i,a,u[0],u[1]),d))&amp;&amp;(r=U+s.pathSector(j),N&amp;&amp;(r+=s.pathSector(N)),n=[Q(N,c[0],c[1]),Q(j,c[0],c[1])].join(&quot; &quot;)),tt(r,n)}function it(){if(m.removeZoombox(c),null!==N&amp;&amp;null!==j){var t={};at(t),m.showDoubleClickNotifier(c),a.call(&quot;_guiRelayout&quot;,c,t)}}function at(t){var e=L._rl,r=(e[1]-e[0])/(1-g/d)/d,n=[e[0]+(N-g)*r,e[0]+(j-g)*r];t[s.id+&quot;.radialaxis.range&quot;]=n}function ot(t,e){var r=c._fullLayout.clickmode;if(m.removeZoombox(c),2===t){var n={};for(var i in s.viewInitial)n[s.id+&quot;.&quot;+i]=s.viewInitial[i];c.emit(&quot;plotly_doubleclick&quot;,null),a.call(&quot;_guiRelayout&quot;,c,n)}r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;1===t&amp;&amp;_(e,c,[s.xaxis],[s.yaxis],s.id,Y),r.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;y.click(c,e,s.id)}Y.prepFn=function(t,n,a){var l=c._fullLayout.dragmode,u=R.getBoundingClientRect();c._fullLayout._calcInverseTransform(c);var h=c._fullLayout._invTransform;e=c._fullLayout._invScaleX,r=c._fullLayout._invScaleY;var p=o.apply3DTransform(h)(n-u.left,a-u.top);if(F=p[0],B=p[1],C){var g=E.findPolygonOffset(d,A[0],A[1],C);F+=k+g[0],B+=M+g[1]}switch(l){case&quot;zoom&quot;:Y.moveFn=C?nt:et,Y.clickFn=ot,Y.doneFn=it,function(){N=null,j=null,U=s.pathSubplot(),V=!1;var t=c._fullLayout[s.id];q=i(t.bgcolor).getLuminance(),(H=m.makeZoombox(f,q,x,T,U)).attr(&quot;fill-rule&quot;,&quot;evenodd&quot;),G=m.makeCorners(f,x,T),w(c)}();break;case&quot;select&quot;:case&quot;lasso&quot;:b(t,n,a,Y,l)}},R.onmousemove=function(t){y.hover(c,t,s.id),c._fullLayout._lasthover=R,c._fullLayout._hoversubplot=s.id},R.onmouseout=function(t){c._dragging||v.unhover(c,t)},v.init(Y)},O.updateRadialDrag=function(t,e,r){var i=this,c=i.gd,u=i.layers,f=i.radius,h=i.innerRadius,p=i.cx,d=i.cy,g=i.radialAxis,y=S.radialDragBoxSize,x=y/2;if(g.visible){var b,_,T,A=I(i.radialAxisAngle),E=g._rl,C=E[0],L=E[1],z=E[r],O=.75*(E[1]-E[0])/(1-e.hole)/f;r?(b=p+(f+x)*Math.cos(A),_=d-(f+x)*Math.sin(A),T=&quot;radialdrag&quot;):(b=p+(h-x)*Math.cos(A),_=d-(h-x)*Math.sin(A),T=&quot;radialdrag-inner&quot;);var D,B,N,j=m.makeRectDragger(u,T,&quot;crosshair&quot;,-x,-x,y,y),U={element:j,gd:c};F(n.select(j),g.visible&amp;&amp;h&lt;f,{transform:l(b,_)}),U.prepFn=function(){D=null,B=null,N=null,U.moveFn=V,U.doneFn=q,w(c)},U.clampFn=function(t,e){return Math.sqrt(t*t+e*e)&lt;S.MINDRAG&amp;&amp;(t=0,e=0),[t,e]},v.init(U)}function V(t,e){if(D)D(t,e);else{var n=[t,-e],a=[Math.cos(A),Math.sin(A)],s=Math.abs(o.dot(n,a)/Math.sqrt(o.dot(n,n)));isNaN(s)||(D=s&lt;.5?H:G)}var l={};!function(t){null!==B?t[i.id+&quot;.radialaxis.angle&quot;]=B:null!==N&amp;&amp;(t[i.id+&quot;.radialaxis.range[&quot;+r+&quot;]&quot;]=N)}(l),c.emit(&quot;plotly_relayouting&quot;,l)}function q(){null!==B?a.call(&quot;_guiRelayout&quot;,c,i.id+&quot;.radialaxis.angle&quot;,B):null!==N&amp;&amp;a.call(&quot;_guiRelayout&quot;,c,i.id+&quot;.radialaxis.range[&quot;+r+&quot;]&quot;,N)}function H(t,e){if(0!==r){var n=b+t,a=_+e;B=Math.atan2(d-a,n-p),i.vangles&amp;&amp;(B=R(B,i.vangles)),B=P(B);var o=l(p,d)+s(-B);u[&quot;radial-axis&quot;].attr(&quot;transform&quot;,o),u[&quot;radial-line&quot;].select(&quot;line&quot;).attr(&quot;transform&quot;,o);var c=i.gd._fullLayout,f=c[i.id];i.updateRadialAxisTitle(c,f,B)}}function G(t,e){var n=o.dot([t,-e],[Math.cos(A),Math.sin(A)]);if(N=z-O*n,O&gt;0==(r?N&gt;C:N&lt;L)){var s=c._fullLayout,l=s[i.id];g.range[r]=N,g._rl[r]=N,i.updateRadialAxis(s,l),i.xaxis.setRange(),i.xaxis.setScale(),i.yaxis.setRange(),i.yaxis.setScale();var u=!1;for(var f in i.traceHash){var h=i.traceHash[f],p=o.filterVisible(h);h[0][0].trace._module.plot(c,i,p,l),a.traceIs(f,&quot;gl&quot;)&amp;&amp;p.length&amp;&amp;(u=!0)}u&amp;&amp;(k(c),M(c))}else N=null}},O.updateAngularDrag=function(t){var e=this,r=e.gd,i=e.layers,c=e.radius,f=e.angularAxis,h=e.cx,p=e.cy,d=e.cxx,g=e.cyy,y=S.angularDragBoxSize,x=m.makeDragger(i,&quot;path&quot;,&quot;angulardrag&quot;,&quot;move&quot;),b={element:x,gd:r};function _(t,e){return Math.atan2(g+y-e,t-d-y)}n.select(x).attr(&quot;d&quot;,e.pathAnnulus(c,c+y)).attr(&quot;transform&quot;,l(h,p)).call(T,&quot;move&quot;);var A,E,C,L,I,z,O=i.frontplot.select(&quot;.scatterlayer&quot;).selectAll(&quot;.trace&quot;),D=O.selectAll(&quot;.point&quot;),R=O.selectAll(&quot;.textpoint&quot;);function F(c,m){var v=e.gd._fullLayout,y=v[e.id],x=_(A+c*t._invScaleX,E+m*t._invScaleY),b=P(x-z);if(L=C+b,i.frontplot.attr(&quot;transform&quot;,l(e.xOffset2,e.yOffset2)+s([-b,d,g])),e.vangles){I=e.radialAxisAngle+b;var w=l(h,p)+s(-b),T=l(h,p)+s(-I);i.bg.attr(&quot;transform&quot;,w),i[&quot;radial-grid&quot;].attr(&quot;transform&quot;,w),i[&quot;radial-axis&quot;].attr(&quot;transform&quot;,T),i[&quot;radial-line&quot;].select(&quot;line&quot;).attr(&quot;transform&quot;,T),e.updateRadialAxisTitle(v,y,I)}else e.clipPaths.forTraces.select(&quot;path&quot;).attr(&quot;transform&quot;,l(d,g)+s(b));D.each((function(){var t=n.select(this),e=u.getTranslate(t);t.attr(&quot;transform&quot;,l(e.x,e.y)+s([b]))})),R.each((function(){var t=n.select(this),e=t.select(&quot;text&quot;),r=u.getTranslate(t);t.attr(&quot;transform&quot;,s([b,e.attr(&quot;x&quot;),e.attr(&quot;y&quot;)])+l(r.x,r.y))})),f.rotation=o.modHalf(L,360),e.updateAngularAxis(v,y),e._hasClipOnAxisFalse&amp;&amp;!o.isFullCircle(e.sectorInRad)&amp;&amp;O.call(u.hideOutsideRangePoints,e);var S=!1;for(var F in e.traceHash)if(a.traceIs(F,&quot;gl&quot;)){var N=e.traceHash[F],j=o.filterVisible(N);N[0][0].trace._module.plot(r,e,j,y),j.length&amp;&amp;(S=!0)}S&amp;&amp;(k(r),M(r));var U={};B(U),r.emit(&quot;plotly_relayouting&quot;,U)}function B(t){t[e.id+&quot;.angularaxis.rotation&quot;]=L,e.vangles&amp;&amp;(t[e.id+&quot;.radialaxis.angle&quot;]=I)}function N(){R.select(&quot;text&quot;).attr(&quot;transform&quot;,null);var t={};B(t),a.call(&quot;_guiRelayout&quot;,r,t)}b.prepFn=function(n,i,a){var s=t[e.id];C=s.angularaxis.rotation;var l=x.getBoundingClientRect();A=i-l.left,E=a-l.top,r._fullLayout._calcInverseTransform(r);var c=o.apply3DTransform(t._invTransform)(A,E);A=c[0],E=c[1],z=_(A,E),b.moveFn=F,b.doneFn=N,w(r)},e.vangles&amp;&amp;!o.isFullCircle(e.sectorInRad)&amp;&amp;(b.prepFn=o.noop,T(n.select(x),null)),v.init(b)},O.isPtInside=function(t){var e=this.sectorInRad,r=this.vangles,n=this.angularAxis.c2g(t.theta),i=this.radialAxis,a=i.c2l(t.r),s=i._rl;return(r?E.isPtInsidePolygon:o.isPtInsideSector)(a,n,s,e,r)},O.pathArc=function(t){var e=this.sectorInRad,r=this.vangles;return(r?E.pathPolygon:o.pathArc)(t,e[0],e[1],r)},O.pathSector=function(t){var e=this.sectorInRad,r=this.vangles;return(r?E.pathPolygon:o.pathSector)(t,e[0],e[1],r)},O.pathAnnulus=function(t,e){var r=this.sectorInRad,n=this.vangles;return(n?E.pathPolygonAnnulus:o.pathAnnulus)(t,e,r[0],r[1],n)},O.pathSubplot=function(){var t=this.innerRadius,e=this.radius;return t?this.pathAnnulus(t,e):this.pathSector(e)},O.fillViewInitialKey=function(t,e){t in this.viewInitial||(this.viewInitial[t]=e)}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../components/titles&quot;:738,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/clear_gl_canvases&quot;:762,&quot;../../lib/setcursor&quot;:799,&quot;../../plot_api/subroutines&quot;:818,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../cartesian/autorange&quot;:827,&quot;../cartesian/dragbox&quot;:836,&quot;../cartesian/select&quot;:847,&quot;../cartesian/set_convert&quot;:848,&quot;../plots&quot;:891,&quot;./constants&quot;:892,&quot;./helpers&quot;:893,&quot;./set_convert&quot;:904,d3:169,tinycolor2:576}],904:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../cartesian/set_convert&quot;),a=n.deg2rad,o=n.rad2deg;e.exports=function(t,e,r){switch(i(t,r),t._id){case&quot;x&quot;:case&quot;radialaxis&quot;:!function(t,e){var r=e._subplot;t.setGeometry=function(){var e=t._rl[0],n=t._rl[1],i=r.innerRadius,a=(r.radius-i)/(n-e),o=i/a,s=e&gt;n?function(t){return t&lt;=0}:function(t){return t&gt;=0};t.c2g=function(r){var n=t.c2l(r)-e;return(s(n)?n:0)+o},t.g2c=function(r){return t.l2c(r+e-o)},t.g2p=function(t){return t*a},t.c2p=function(e){return t.g2p(t.c2g(e))}}}(t,e);break;case&quot;angularaxis&quot;:!function(t,e){var r=t.type;if(&quot;linear&quot;===r){var i=t.d2c,s=t.c2d;t.d2c=function(t,e){return function(t,e){return&quot;degrees&quot;===e?a(t):t}(i(t),e)},t.c2d=function(t,e){return s(function(t,e){return&quot;degrees&quot;===e?o(t):t}(t,e))}}t.makeCalcdata=function(e,i){var a,o,s=e[i],l=e._length,c=function(r){return t.d2c(r,e.thetaunit)};if(s){if(n.isTypedArray(s)&amp;&amp;&quot;linear&quot;===r){if(l===s.length)return s;if(s.subarray)return s.subarray(0,l)}for(a=new Array(l),o=0;o&lt;l;o++)a[o]=c(s[o])}else{var u=i+&quot;0&quot;,f=&quot;d&quot;+i,h=u in e?c(e[u]):0,p=e[f]?c(e[f]):(t.period||2*Math.PI)/l;for(a=new Array(l),o=0;o&lt;l;o++)a[o]=h+o*p}return a},t.setGeometry=function(){var i,s,l,c,u=e.sector,f=u.map(a),h={clockwise:-1,counterclockwise:1}[t.direction],p=a(t.rotation),d=function(t){return h*t+p},g=function(t){return(t-p)/h};switch(r){case&quot;linear&quot;:s=i=n.identity,c=a,l=o,t.range=n.isFullCircle(f)?[u[0],u[0]+360]:f.map(g).map(o);break;case&quot;category&quot;:var m=t._categories.length,v=t.period?Math.max(t.period,m):m;0===v&amp;&amp;(v=1),s=c=function(t){return 2*t*Math.PI/v},i=l=function(t){return t*v/Math.PI/2},t.range=[0,v]}t.c2g=function(t){return d(s(t))},t.g2c=function(t){return i(g(t))},t.t2g=function(t){return d(c(t))},t.g2t=function(t){return l(g(t))}}}(t,e)}}},{&quot;../../lib&quot;:778,&quot;../cartesian/set_convert&quot;:848}],905:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_template&quot;),a=t(&quot;./domain&quot;).defaults;e.exports=function(t,e,r,o){var s,l,c=o.type,u=o.attributes,f=o.handleDefaults,h=o.partition||&quot;x&quot;,p=e._subplots[c],d=p.length,g=d&amp;&amp;p[0].replace(/\d+$/,&quot;&quot;);function m(t,e){return n.coerce(s,l,u,t,e)}for(var v=0;v&lt;d;v++){var y=p[v];s=t[y]?t[y]:t[y]={},l=i.newContainer(e,y,g),m(&quot;uirevision&quot;,e.uirevision);var x={};x[h]=[v/d,(v+1)/d],a(l,e,m,x),o.id=y,f(s,l,m,o)}}},{&quot;../lib&quot;:778,&quot;../plot_api/plot_template&quot;:817,&quot;./domain&quot;:855}],906:[function(t,e,r){&quot;use strict&quot;;['Variables are inserted using %{variable}, for example &quot;y: %{y}&quot;.','Numbers are formatted using d3-format\'s syntax %{variable:d3-format}, for example &quot;Price: %{y:$.2f}&quot;.',t(&quot;../constants/docs&quot;).FORMAT_LINK,&quot;for details on the formatting syntax.&quot;,'Dates are formatted using d3-time-format\'s syntax %{variable|d3-time-format}, for example &quot;Day: %{2019-01-01|%A}&quot;.',t(&quot;../constants/docs&quot;).DATE_FORMAT_LINK,&quot;for details on the date formatting syntax.&quot;].join(&quot; &quot;);function n(t){var e=t.description?&quot; &quot;+t.description:&quot;&quot;,r=t.keys||[];if(r.length&gt;0){for(var n=[],i=0;i&lt;r.length;i++)n[i]=&quot;`&quot;+r[i]+&quot;`&quot;;e+=&quot;Finally, the template string has access to &quot;,e=1===r.length?&quot;variable &quot;+n[0]:&quot;variables &quot;+n.slice(0,-1).join(&quot;, &quot;)+&quot; and &quot;+n.slice(-1)+&quot;.&quot;}return e}r.hovertemplateAttrs=function(t,e){t=t||{};n(e=e||{});var r={valType:&quot;string&quot;,dflt:&quot;&quot;,editType:t.editType||&quot;none&quot;};return!1!==t.arrayOk&amp;&amp;(r.arrayOk=!0),r},r.texttemplateAttrs=function(t,e){t=t||{};n(e=e||{});var r={valType:&quot;string&quot;,dflt:&quot;&quot;,editType:t.editType||&quot;calc&quot;};return!1!==t.arrayOk&amp;&amp;(r.arrayOk=!0),r}},{&quot;../constants/docs&quot;:748}],907:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./ternary&quot;),i=t(&quot;../../plots/get_data&quot;).getSubplotCalcData,a=t(&quot;../../lib&quot;).counterRegex;r.name=&quot;ternary&quot;;var o=r.attr=&quot;subplot&quot;;r.idRoot=&quot;ternary&quot;,r.idRegex=r.attrRegex=a(&quot;ternary&quot;),(r.attributes={})[o]={valType:&quot;subplotid&quot;,dflt:&quot;ternary&quot;,editType:&quot;calc&quot;},r.layoutAttributes=t(&quot;./layout_attributes&quot;),r.supplyLayoutDefaults=t(&quot;./layout_defaults&quot;),r.plot=function(t){for(var e=t._fullLayout,r=t.calcdata,a=e._subplots.ternary,o=0;o&lt;a.length;o++){var s=a[o],l=i(r,&quot;ternary&quot;,s),c=e[s]._subplot;c||(c=new n({id:s,graphDiv:t,container:e._ternarylayer.node()},e),e[s]._subplot=c),c.plot(l,e,t._promises)}},r.clean=function(t,e,r,n){for(var i=n._subplots.ternary||[],a=0;a&lt;i.length;a++){var o=i[a],s=n[o]._subplot;!e[o]&amp;&amp;s&amp;&amp;(s.plotContainer.remove(),s.clipDef.remove(),s.clipDefRelative.remove(),s.layers[&quot;a-title&quot;].remove(),s.layers[&quot;b-title&quot;].remove(),s.layers[&quot;c-title&quot;].remove())}}},{&quot;../../lib&quot;:778,&quot;../../plots/get_data&quot;:865,&quot;./layout_attributes&quot;:908,&quot;./layout_defaults&quot;:909,&quot;./ternary&quot;:910}],908:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color/attributes&quot;),i=t(&quot;../domain&quot;).attributes,a=t(&quot;../cartesian/layout_attributes&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=t(&quot;../../lib/extend&quot;).extendFlat,l={title:{text:a.title.text,font:a.title.font},color:a.color,tickmode:a.tickmode,nticks:s({},a.nticks,{dflt:6,min:1}),tick0:a.tick0,dtick:a.dtick,tickvals:a.tickvals,ticktext:a.ticktext,ticks:a.ticks,ticklen:a.ticklen,tickwidth:a.tickwidth,tickcolor:a.tickcolor,showticklabels:a.showticklabels,showtickprefix:a.showtickprefix,tickprefix:a.tickprefix,showticksuffix:a.showticksuffix,ticksuffix:a.ticksuffix,showexponent:a.showexponent,exponentformat:a.exponentformat,minexponent:a.minexponent,separatethousands:a.separatethousands,tickfont:a.tickfont,tickangle:a.tickangle,tickformat:a.tickformat,tickformatstops:a.tickformatstops,hoverformat:a.hoverformat,showline:s({},a.showline,{dflt:!0}),linecolor:a.linecolor,linewidth:a.linewidth,showgrid:s({},a.showgrid,{dflt:!0}),gridcolor:a.gridcolor,gridwidth:a.gridwidth,layer:a.layer,min:{valType:&quot;number&quot;,dflt:0,min:0},_deprecated:{title:a._deprecated.title,titlefont:a._deprecated.titlefont}},c=e.exports=o({domain:i({name:&quot;ternary&quot;}),bgcolor:{valType:&quot;color&quot;,dflt:n.background},sum:{valType:&quot;number&quot;,dflt:1,min:0},aaxis:l,baxis:l,caxis:l},&quot;plot&quot;,&quot;from-root&quot;);c.uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;},c.aaxis.uirevision=c.baxis.uirevision=c.caxis.uirevision={valType:&quot;any&quot;,editType:&quot;none&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../cartesian/layout_attributes&quot;:842,&quot;../domain&quot;:855}],909:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../plot_api/plot_template&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../subplot_defaults&quot;),s=t(&quot;../cartesian/tick_label_defaults&quot;),l=t(&quot;../cartesian/tick_mark_defaults&quot;),c=t(&quot;../cartesian/tick_value_defaults&quot;),u=t(&quot;../cartesian/line_grid_defaults&quot;),f=t(&quot;./layout_attributes&quot;),h=[&quot;aaxis&quot;,&quot;baxis&quot;,&quot;caxis&quot;];function p(t,e,r,a){var o,s,l,c=r(&quot;bgcolor&quot;),u=r(&quot;sum&quot;);a.bgColor=n.combine(c,a.paper_bgcolor);for(var f=0;f&lt;h.length;f++)s=t[o=h[f]]||{},(l=i.newContainer(e,o))._name=o,d(s,l,a,e);var p=e.aaxis,g=e.baxis,m=e.caxis;p.min+g.min+m.min&gt;=u&amp;&amp;(p.min=0,g.min=0,m.min=0,t.aaxis&amp;&amp;delete t.aaxis.min,t.baxis&amp;&amp;delete t.baxis.min,t.caxis&amp;&amp;delete t.caxis.min)}function d(t,e,r,n){var i=f[e._name];function o(r,n){return a.coerce(t,e,i,r,n)}o(&quot;uirevision&quot;,n.uirevision),e.type=&quot;linear&quot;;var h=o(&quot;color&quot;),p=h!==i.color.dflt?h:r.font.color,d=e._name.charAt(0).toUpperCase(),g=&quot;Component &quot;+d,m=o(&quot;title.text&quot;,g);e._hovertitle=m===g?m:d,a.coerceFont(o,&quot;title.font&quot;,{family:r.font.family,size:Math.round(1.2*r.font.size),color:p}),o(&quot;min&quot;),c(t,e,o,&quot;linear&quot;),s(t,e,o,&quot;linear&quot;,{}),l(t,e,o,{outerTicks:!0}),o(&quot;showticklabels&quot;)&amp;&amp;(a.coerceFont(o,&quot;tickfont&quot;,{family:r.font.family,size:r.font.size,color:p}),o(&quot;tickangle&quot;),o(&quot;tickformat&quot;)),u(t,e,o,{dfltColor:h,bgColor:r.bgColor,blend:60,showLine:!0,showGrid:!0,noZeroLine:!0,attributes:i}),o(&quot;hoverformat&quot;),o(&quot;layer&quot;)}e.exports=function(t,e,r){o(t,e,r,{type:&quot;ternary&quot;,attributes:f,handleDefaults:p,font:e.font,paper_bgcolor:e.paper_bgcolor})}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../cartesian/line_grid_defaults&quot;:844,&quot;../cartesian/tick_label_defaults&quot;:849,&quot;../cartesian/tick_mark_defaults&quot;:850,&quot;../cartesian/tick_value_defaults&quot;:851,&quot;../subplot_defaults&quot;:905,&quot;./layout_attributes&quot;:908}],910:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=o._,c=t(&quot;../../components/color&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../cartesian/set_convert&quot;),h=t(&quot;../../lib/extend&quot;).extendFlat,p=t(&quot;../plots&quot;),d=t(&quot;../cartesian/axes&quot;),g=t(&quot;../../components/dragelement&quot;),m=t(&quot;../../components/fx&quot;),v=t(&quot;../../components/dragelement/helpers&quot;),y=v.freeMode,x=v.rectMode,b=t(&quot;../../components/titles&quot;),_=t(&quot;../cartesian/select&quot;).prepSelect,w=t(&quot;../cartesian/select&quot;).selectOnClick,T=t(&quot;../cartesian/select&quot;).clearSelect,k=t(&quot;../cartesian/select&quot;).clearSelectionsCache,M=t(&quot;../cartesian/constants&quot;);function A(t,e){this.id=t.id,this.graphDiv=t.graphDiv,this.init(e),this.makeFramework(e),this.aTickLayout=null,this.bTickLayout=null,this.cTickLayout=null}e.exports=A;var S=A.prototype;S.init=function(t){this.container=t._ternarylayer,this.defs=t._defs,this.layoutId=t._uid,this.traceHash={},this.layers={}},S.plot=function(t,e){var r=e[this.id],n=e._size;this._hasClipOnAxisFalse=!1;for(var i=0;i&lt;t.length;i++){if(!1===t[i][0].trace.cliponaxis){this._hasClipOnAxisFalse=!0;break}}this.updateLayers(r),this.adjustLayout(r,n),p.generalUpdatePerTraceModule(this.graphDiv,this,t,r),this.layers.plotbg.select(&quot;path&quot;).call(c.fill,r.bgcolor)},S.makeFramework=function(t){var e=this.graphDiv,r=t[this.id],n=this.clipId=&quot;clip&quot;+this.layoutId+this.id,i=this.clipIdRelative=&quot;clip-relative&quot;+this.layoutId+this.id;this.clipDef=o.ensureSingleById(t._clips,&quot;clipPath&quot;,n,(function(t){t.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;)})),this.clipDefRelative=o.ensureSingleById(t._clips,&quot;clipPath&quot;,i,(function(t){t.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;)})),this.plotContainer=o.ensureSingle(this.container,&quot;g&quot;,this.id),this.updateLayers(r),u.setClipUrl(this.layers.backplot,n,e),u.setClipUrl(this.layers.grids,n,e)},S.updateLayers=function(t){var e=this.layers,r=[&quot;draglayer&quot;,&quot;plotbg&quot;,&quot;backplot&quot;,&quot;grids&quot;];&quot;below traces&quot;===t.aaxis.layer&amp;&amp;r.push(&quot;aaxis&quot;,&quot;aline&quot;),&quot;below traces&quot;===t.baxis.layer&amp;&amp;r.push(&quot;baxis&quot;,&quot;bline&quot;),&quot;below traces&quot;===t.caxis.layer&amp;&amp;r.push(&quot;caxis&quot;,&quot;cline&quot;),r.push(&quot;frontplot&quot;),&quot;above traces&quot;===t.aaxis.layer&amp;&amp;r.push(&quot;aaxis&quot;,&quot;aline&quot;),&quot;above traces&quot;===t.baxis.layer&amp;&amp;r.push(&quot;baxis&quot;,&quot;bline&quot;),&quot;above traces&quot;===t.caxis.layer&amp;&amp;r.push(&quot;caxis&quot;,&quot;cline&quot;);var i=this.plotContainer.selectAll(&quot;g.toplevel&quot;).data(r,String),a=[&quot;agrid&quot;,&quot;bgrid&quot;,&quot;cgrid&quot;];i.enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;toplevel &quot;+t})).each((function(t){var r=n.select(this);e[t]=r,&quot;frontplot&quot;===t?r.append(&quot;g&quot;).classed(&quot;scatterlayer&quot;,!0):&quot;backplot&quot;===t?r.append(&quot;g&quot;).classed(&quot;maplayer&quot;,!0):&quot;plotbg&quot;===t?r.append(&quot;path&quot;).attr(&quot;d&quot;,&quot;M0,0Z&quot;):&quot;aline&quot;===t||&quot;bline&quot;===t||&quot;cline&quot;===t?r.append(&quot;path&quot;):&quot;grids&quot;===t&amp;&amp;a.forEach((function(t){e[t]=r.append(&quot;g&quot;).classed(&quot;grid &quot;+t,!0)}))})),i.order()};var E=Math.sqrt(4/3);S.adjustLayout=function(t,e){var r,n,i,a,o,l,p=this,d=t.domain,g=(d.x[0]+d.x[1])/2,m=(d.y[0]+d.y[1])/2,v=d.x[1]-d.x[0],y=d.y[1]-d.y[0],x=v*e.w,b=y*e.h,_=t.sum,w=t.aaxis.min,T=t.baxis.min,k=t.caxis.min;x&gt;E*b?i=(a=b)*E:a=(i=x)/E,o=v*i/x,l=y*a/b,r=e.l+e.w*g-i/2,n=e.t+e.h*(1-m)-a/2,p.x0=r,p.y0=n,p.w=i,p.h=a,p.sum=_,p.xaxis={type:&quot;linear&quot;,range:[w+2*k-_,_-w-2*T],domain:[g-o/2,g+o/2],_id:&quot;x&quot;},f(p.xaxis,p.graphDiv._fullLayout),p.xaxis.setScale(),p.xaxis.isPtWithinRange=function(t){return t.a&gt;=p.aaxis.range[0]&amp;&amp;t.a&lt;=p.aaxis.range[1]&amp;&amp;t.b&gt;=p.baxis.range[1]&amp;&amp;t.b&lt;=p.baxis.range[0]&amp;&amp;t.c&gt;=p.caxis.range[1]&amp;&amp;t.c&lt;=p.caxis.range[0]},p.yaxis={type:&quot;linear&quot;,range:[w,_-T-k],domain:[m-l/2,m+l/2],_id:&quot;y&quot;},f(p.yaxis,p.graphDiv._fullLayout),p.yaxis.setScale(),p.yaxis.isPtWithinRange=function(){return!0};var M=p.yaxis.domain[0],A=p.aaxis=h({},t.aaxis,{range:[w,_-T-k],side:&quot;left&quot;,tickangle:(+t.aaxis.tickangle||0)-30,domain:[M,M+l*E],anchor:&quot;free&quot;,position:0,_id:&quot;y&quot;,_length:i});f(A,p.graphDiv._fullLayout),A.setScale();var S=p.baxis=h({},t.baxis,{range:[_-w-k,T],side:&quot;bottom&quot;,domain:p.xaxis.domain,anchor:&quot;free&quot;,position:0,_id:&quot;x&quot;,_length:i});f(S,p.graphDiv._fullLayout),S.setScale();var C=p.caxis=h({},t.caxis,{range:[_-w-T,k],side:&quot;right&quot;,tickangle:(+t.caxis.tickangle||0)+30,domain:[M,M+l*E],anchor:&quot;free&quot;,position:0,_id:&quot;y&quot;,_length:i});f(C,p.graphDiv._fullLayout),C.setScale();var L=&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;h&quot;+i+&quot;l-&quot;+i/2+&quot;,-&quot;+a+&quot;Z&quot;;p.clipDef.select(&quot;path&quot;).attr(&quot;d&quot;,L),p.layers.plotbg.select(&quot;path&quot;).attr(&quot;d&quot;,L);var I=&quot;M0,&quot;+a+&quot;h&quot;+i+&quot;l-&quot;+i/2+&quot;,-&quot;+a+&quot;Z&quot;;p.clipDefRelative.select(&quot;path&quot;).attr(&quot;d&quot;,I);var P=s(r,n);p.plotContainer.selectAll(&quot;.scatterlayer,.maplayer&quot;).attr(&quot;transform&quot;,P),p.clipDefRelative.select(&quot;path&quot;).attr(&quot;transform&quot;,null);var z=s(r-S._offset,n+a);p.layers.baxis.attr(&quot;transform&quot;,z),p.layers.bgrid.attr(&quot;transform&quot;,z);var O=s(r+i/2,n)+&quot;rotate(30)&quot;+s(0,-A._offset);p.layers.aaxis.attr(&quot;transform&quot;,O),p.layers.agrid.attr(&quot;transform&quot;,O);var D=s(r+i/2,n)+&quot;rotate(-30)&quot;+s(0,-C._offset);p.layers.caxis.attr(&quot;transform&quot;,D),p.layers.cgrid.attr(&quot;transform&quot;,D),p.drawAxes(!0),p.layers.aline.select(&quot;path&quot;).attr(&quot;d&quot;,A.showline?&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;l&quot;+i/2+&quot;,-&quot;+a:&quot;M0,0&quot;).call(c.stroke,A.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(A.linewidth||0)+&quot;px&quot;),p.layers.bline.select(&quot;path&quot;).attr(&quot;d&quot;,S.showline?&quot;M&quot;+r+&quot;,&quot;+(n+a)+&quot;h&quot;+i:&quot;M0,0&quot;).call(c.stroke,S.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(S.linewidth||0)+&quot;px&quot;),p.layers.cline.select(&quot;path&quot;).attr(&quot;d&quot;,C.showline?&quot;M&quot;+(r+i/2)+&quot;,&quot;+n+&quot;l&quot;+i/2+&quot;,&quot;+a:&quot;M0,0&quot;).call(c.stroke,C.linecolor||&quot;#000&quot;).style(&quot;stroke-width&quot;,(C.linewidth||0)+&quot;px&quot;),p.graphDiv._context.staticPlot||p.initInteractions(),u.setClipUrl(p.layers.frontplot,p._hasClipOnAxisFalse?null:p.clipId,p.graphDiv)},S.drawAxes=function(t){var e=this.graphDiv,r=this.id.substr(7)+&quot;title&quot;,n=this.layers,i=this.aaxis,a=this.baxis,o=this.caxis;if(this.drawAx(i),this.drawAx(a),this.drawAx(o),t){var s=Math.max(i.showticklabels?i.tickfont.size/2:0,(o.showticklabels?.75*o.tickfont.size:0)+(&quot;outside&quot;===o.ticks?.87*o.ticklen:0)),c=(a.showticklabels?a.tickfont.size:0)+(&quot;outside&quot;===a.ticks?a.ticklen:0)+3;n[&quot;a-title&quot;]=b.draw(e,&quot;a&quot;+r,{propContainer:i,propName:this.id+&quot;.aaxis.title&quot;,placeholder:l(e,&quot;Click to enter Component A title&quot;),attributes:{x:this.x0+this.w/2,y:this.y0-i.title.font.size/3-s,&quot;text-anchor&quot;:&quot;middle&quot;}}),n[&quot;b-title&quot;]=b.draw(e,&quot;b&quot;+r,{propContainer:a,propName:this.id+&quot;.baxis.title&quot;,placeholder:l(e,&quot;Click to enter Component B title&quot;),attributes:{x:this.x0-c,y:this.y0+this.h+.83*a.title.font.size+c,&quot;text-anchor&quot;:&quot;middle&quot;}}),n[&quot;c-title&quot;]=b.draw(e,&quot;c&quot;+r,{propContainer:o,propName:this.id+&quot;.caxis.title&quot;,placeholder:l(e,&quot;Click to enter Component C title&quot;),attributes:{x:this.x0+this.w+c,y:this.y0+this.h+.83*o.title.font.size+c,&quot;text-anchor&quot;:&quot;middle&quot;}})}},S.drawAx=function(t){var e,r=this.graphDiv,n=t._name,i=n.charAt(0),a=t._id,s=this.layers[n],l=i+&quot;tickLayout&quot;,c=(e=t).ticks+String(e.ticklen)+String(e.showticklabels);this[l]!==c&amp;&amp;(s.selectAll(&quot;.&quot;+a+&quot;tick&quot;).remove(),this[l]=c),t.setScale();var u=d.calcTicks(t),f=d.clipEnds(t,u),h=d.makeTransTickFn(t),p=d.getTickSigns(t)[2],g=o.deg2rad(30),m=p*(t.linewidth||1)/2,v=p*t.ticklen,y=this.w,x=this.h,b=&quot;b&quot;===i?&quot;M0,&quot;+m+&quot;l&quot;+Math.sin(g)*v+&quot;,&quot;+Math.cos(g)*v:&quot;M&quot;+m+&quot;,0l&quot;+Math.cos(g)*v+&quot;,&quot;+-Math.sin(g)*v,_={a:&quot;M0,0l&quot;+x+&quot;,-&quot;+y/2,b:&quot;M0,0l-&quot;+y/2+&quot;,-&quot;+x,c:&quot;M0,0l-&quot;+x+&quot;,&quot;+y/2}[i];d.drawTicks(r,t,{vals:&quot;inside&quot;===t.ticks?f:u,layer:s,path:b,transFn:h,crisp:!1}),d.drawGrid(r,t,{vals:f,layer:this.layers[i+&quot;grid&quot;],path:_,transFn:h,crisp:!1}),d.drawLabels(r,t,{vals:u,layer:s,transFn:h,labelFns:d.makeLabelFns(t,0,30)})};var C=M.MINZOOM/2+.87,L=&quot;m-0.87,.5h&quot;+C+&quot;v3h-&quot;+(C+5.2)+&quot;l&quot;+(C/2+2.6)+&quot;,-&quot;+(.87*C+4.5)+&quot;l2.6,1.5l-&quot;+C/2+&quot;,&quot;+.87*C+&quot;Z&quot;,I=&quot;m0.87,.5h-&quot;+C+&quot;v3h&quot;+(C+5.2)+&quot;l-&quot;+(C/2+2.6)+&quot;,-&quot;+(.87*C+4.5)+&quot;l-2.6,1.5l&quot;+C/2+&quot;,&quot;+.87*C+&quot;Z&quot;,P=&quot;m0,1l&quot;+C/2+&quot;,&quot;+.87*C+&quot;l2.6,-1.5l-&quot;+(C/2+2.6)+&quot;,-&quot;+(.87*C+4.5)+&quot;l-&quot;+(C/2+2.6)+&quot;,&quot;+(.87*C+4.5)+&quot;l2.6,1.5l&quot;+C/2+&quot;,-&quot;+.87*C+&quot;Z&quot;,z=!0;function O(t){n.select(t).selectAll(&quot;.zoombox,.js-zoombox-backdrop,.js-zoombox-menu,.zoombox-corners&quot;).remove()}S.clearSelect=function(){k(this.dragOptions),T(this.dragOptions.gd)},S.initInteractions=function(){var t,e,r,n,f,h,p,d,v,b,T,k,A=this,S=A.layers.plotbg.select(&quot;path&quot;).node(),C=A.graphDiv,D=C._fullLayout._zoomlayer;function R(t){var e={};return e[A.id+&quot;.aaxis.min&quot;]=t.a,e[A.id+&quot;.baxis.min&quot;]=t.b,e[A.id+&quot;.caxis.min&quot;]=t.c,e}function F(t,e){var r=C._fullLayout.clickmode;O(C),2===t&amp;&amp;(C.emit(&quot;plotly_doubleclick&quot;,null),a.call(&quot;_guiRelayout&quot;,C,R({a:0,b:0,c:0}))),r.indexOf(&quot;select&quot;)&gt;-1&amp;&amp;1===t&amp;&amp;w(e,C,[A.xaxis],[A.yaxis],A.id,A.dragOptions),r.indexOf(&quot;event&quot;)&gt;-1&amp;&amp;m.click(C,e,A.id)}function B(t,e){return 1-e/A.h}function N(t,e){return 1-(t+(A.h-e)/Math.sqrt(3))/A.w}function j(t,e){return(t-(A.h-e)/Math.sqrt(3))/A.w}function U(i,a){var o=r+i*t,s=n+a*e,l=Math.max(0,Math.min(1,B(0,n),B(0,s))),c=Math.max(0,Math.min(1,N(r,n),N(o,s))),u=Math.max(0,Math.min(1,j(r,n),j(o,s))),g=(l/2+u)*A.w,m=(1-l/2-c)*A.w,y=(g+m)/2,x=m-g,_=(1-l)*A.h,w=_-x/E;x&lt;M.MINZOOM?(p=f,T.attr(&quot;d&quot;,v),k.attr(&quot;d&quot;,&quot;M0,0Z&quot;)):(p={a:f.a+l*h,b:f.b+c*h,c:f.c+u*h},T.attr(&quot;d&quot;,v+&quot;M&quot;+g+&quot;,&quot;+_+&quot;H&quot;+m+&quot;L&quot;+y+&quot;,&quot;+w+&quot;L&quot;+g+&quot;,&quot;+_+&quot;Z&quot;),k.attr(&quot;d&quot;,&quot;M&quot;+r+&quot;,&quot;+n+&quot;m0.5,0.5h5v-2h-5v-5h-2v5h-5v2h5v5h2ZM&quot;+g+&quot;,&quot;+_+L+&quot;M&quot;+m+&quot;,&quot;+_+I+&quot;M&quot;+y+&quot;,&quot;+w+P)),b||(T.transition().style(&quot;fill&quot;,d&gt;.2?&quot;rgba(0,0,0,0.4)&quot;:&quot;rgba(255,255,255,0.3)&quot;).duration(200),k.transition().style(&quot;opacity&quot;,1).duration(200),b=!0),C.emit(&quot;plotly_relayouting&quot;,R(p))}function V(){O(C),p!==f&amp;&amp;(a.call(&quot;_guiRelayout&quot;,C,R(p)),z&amp;&amp;C.data&amp;&amp;C._context.showTips&amp;&amp;(o.notifier(l(C,&quot;Double-click to zoom back out&quot;),&quot;long&quot;),z=!1))}function q(t,e){var r=t/A.xaxis._m,n=e/A.yaxis._m,i=[(p={a:f.a-n,b:f.b+(r+n)/2,c:f.c-(r-n)/2}).a,p.b,p.c].sort(o.sorterAsc),a=i.indexOf(p.a),l=i.indexOf(p.b),c=i.indexOf(p.c);i[0]&lt;0&amp;&amp;(i[1]+i[0]/2&lt;0?(i[2]+=i[0]+i[1],i[0]=i[1]=0):(i[2]+=i[0]/2,i[1]+=i[0]/2,i[0]=0),p={a:i[a],b:i[l],c:i[c]},e=(f.a-p.a)*A.yaxis._m,t=(f.c-p.c-f.b+p.b)*A.xaxis._m);var h=s(A.x0+t,A.y0+e);A.plotContainer.selectAll(&quot;.scatterlayer,.maplayer&quot;).attr(&quot;transform&quot;,h);var d=s(-t,-e);A.clipDefRelative.select(&quot;path&quot;).attr(&quot;transform&quot;,d),A.aaxis.range=[p.a,A.sum-p.b-p.c],A.baxis.range=[A.sum-p.a-p.c,p.b],A.caxis.range=[A.sum-p.a-p.b,p.c],A.drawAxes(!1),A._hasClipOnAxisFalse&amp;&amp;A.plotContainer.select(&quot;.scatterlayer&quot;).selectAll(&quot;.trace&quot;).call(u.hideOutsideRangePoints,A),C.emit(&quot;plotly_relayouting&quot;,R(p))}function H(){a.call(&quot;_guiRelayout&quot;,C,R(p))}this.dragOptions={element:S,gd:C,plotinfo:{id:A.id,domain:C._fullLayout[A.id].domain,xaxis:A.xaxis,yaxis:A.yaxis},subplot:A.id,prepFn:function(a,l,u){A.dragOptions.xaxes=[A.xaxis],A.dragOptions.yaxes=[A.yaxis],t=C._fullLayout._invScaleX,e=C._fullLayout._invScaleY;var g=A.dragOptions.dragmode=C._fullLayout.dragmode;y(g)?A.dragOptions.minDrag=1:A.dragOptions.minDrag=void 0,&quot;zoom&quot;===g?(A.dragOptions.moveFn=U,A.dragOptions.clickFn=F,A.dragOptions.doneFn=V,function(t,e,a){var l=S.getBoundingClientRect();r=e-l.left,n=a-l.top,C._fullLayout._calcInverseTransform(C);var u=C._fullLayout._invTransform,g=o.apply3DTransform(u)(r,n);r=g[0],n=g[1],f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},p=f,h=A.aaxis.range[1]-f.a,d=i(A.graphDiv._fullLayout[A.id].bgcolor).getLuminance(),v=&quot;M0,&quot;+A.h+&quot;L&quot;+A.w/2+&quot;, 0L&quot;+A.w+&quot;,&quot;+A.h+&quot;Z&quot;,b=!1,T=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox&quot;).attr(&quot;transform&quot;,s(A.x0,A.y0)).style({fill:d&gt;.2?&quot;rgba(0,0,0,0)&quot;:&quot;rgba(255,255,255,0)&quot;,&quot;stroke-width&quot;:0}).attr(&quot;d&quot;,v),k=D.append(&quot;path&quot;).attr(&quot;class&quot;,&quot;zoombox-corners&quot;).attr(&quot;transform&quot;,s(A.x0,A.y0)).style({fill:c.background,stroke:c.defaultLine,&quot;stroke-width&quot;:1,opacity:0}).attr(&quot;d&quot;,&quot;M0,0Z&quot;),A.clearSelect(C)}(0,l,u)):&quot;pan&quot;===g?(A.dragOptions.moveFn=q,A.dragOptions.clickFn=F,A.dragOptions.doneFn=H,f={a:A.aaxis.range[0],b:A.baxis.range[1],c:A.caxis.range[1]},p=f,A.clearSelect(C)):(x(g)||y(g))&amp;&amp;_(a,l,u,A.dragOptions,g)}},S.onmousemove=function(t){m.hover(C,t,A.id),C._fullLayout._lasthover=S,C._fullLayout._hoversubplot=A.id},S.onmouseout=function(t){C._dragging||g.unhover(C,t)},g.init(this.dragOptions)}},{&quot;../../components/color&quot;:643,&quot;../../components/dragelement&quot;:662,&quot;../../components/dragelement/helpers&quot;:661,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../components/titles&quot;:738,&quot;../../lib&quot;:778,&quot;../../lib/extend&quot;:768,&quot;../../registry&quot;:911,&quot;../cartesian/axes&quot;:828,&quot;../cartesian/constants&quot;:834,&quot;../cartesian/select&quot;:847,&quot;../cartesian/set_convert&quot;:848,&quot;../plots&quot;:891,d3:169,tinycolor2:576}],911:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./lib/loggers&quot;),i=t(&quot;./lib/noop&quot;),a=t(&quot;./lib/push_unique&quot;),o=t(&quot;./lib/is_plain_object&quot;),s=t(&quot;./lib/dom&quot;).addStyleRule,l=t(&quot;./lib/extend&quot;),c=t(&quot;./plots/attributes&quot;),u=t(&quot;./plots/layout_attributes&quot;),f=l.extendFlat,h=l.extendDeepAll;function p(t){var e=t.name,i=t.categories,a=t.meta;if(r.modules[e])n.log(&quot;Type &quot;+e+&quot; already registered&quot;);else{r.subplotsRegistry[t.basePlotModule.name]||function(t){var e=t.name;if(r.subplotsRegistry[e])return void n.log(&quot;Plot type &quot;+e+&quot; already registered.&quot;);for(var i in v(t),r.subplotsRegistry[e]=t,r.componentsRegistry)b(i,t.name)}(t.basePlotModule);for(var o={},l=0;l&lt;i.length;l++)o[i[l]]=!0,r.allCategories[i[l]]=!0;for(var c in r.modules[e]={_module:t,categories:o},a&amp;&amp;Object.keys(a).length&amp;&amp;(r.modules[e].meta=a),r.allTypes.push(e),r.componentsRegistry)y(c,e);t.layoutAttributes&amp;&amp;f(r.traceLayoutAttributes,t.layoutAttributes);var u=t.basePlotModule,h=u.name;if(&quot;mapbox&quot;===h){var p=u.constants.styleRules;for(var d in p)s(&quot;.js-plotly-plot .plotly .mapboxgl-&quot;+d,p[d])}&quot;geo&quot;!==h&amp;&amp;&quot;mapbox&quot;!==h||void 0===typeof window||void 0!==window.PlotlyGeoAssets||(window.PlotlyGeoAssets={topojson:{}})}}function d(t){if(&quot;string&quot;!=typeof t.name)throw new Error(&quot;Component module *name* must be a string.&quot;);var e=t.name;for(var n in r.componentsRegistry[e]=t,t.layoutAttributes&amp;&amp;(t.layoutAttributes._isLinkedToArray&amp;&amp;a(r.layoutArrayContainers,e),v(t)),r.modules)y(e,n);for(var i in r.subplotsRegistry)b(e,i);for(var o in r.transformsRegistry)x(e,o);t.schema&amp;&amp;t.schema.layout&amp;&amp;h(u,t.schema.layout)}function g(t){if(&quot;string&quot;!=typeof t.name)throw new Error(&quot;Transform module *name* must be a string.&quot;);var e=&quot;Transform module &quot;+t.name,i=&quot;function&quot;==typeof t.transform,a=&quot;function&quot;==typeof t.calcTransform;if(!i&amp;&amp;!a)throw new Error(e+&quot; is missing a *transform* or *calcTransform* method.&quot;);for(var s in i&amp;&amp;a&amp;&amp;n.log([e+&quot; has both a *transform* and *calcTransform* methods.&quot;,&quot;Please note that all *transform* methods are executed&quot;,&quot;before all *calcTransform* methods.&quot;].join(&quot; &quot;)),o(t.attributes)||n.log(e+&quot; registered without an *attributes* object.&quot;),&quot;function&quot;!=typeof t.supplyDefaults&amp;&amp;n.log(e+&quot; registered without a *supplyDefaults* method.&quot;),r.transformsRegistry[t.name]=t,r.componentsRegistry)x(s,t.name)}function m(t){var e=t.name,n=e.split(&quot;-&quot;)[0],i=t.dictionary,a=t.format,o=i&amp;&amp;Object.keys(i).length,s=a&amp;&amp;Object.keys(a).length,l=r.localeRegistry,c=l[e];if(c||(l[e]=c={}),n!==e){var u=l[n];u||(l[n]=u={}),o&amp;&amp;u.dictionary===c.dictionary&amp;&amp;(u.dictionary=i),s&amp;&amp;u.format===c.format&amp;&amp;(u.format=a)}o&amp;&amp;(c.dictionary=i),s&amp;&amp;(c.format=a)}function v(t){if(t.layoutAttributes){var e=t.layoutAttributes._arrayAttrRegexps;if(e)for(var n=0;n&lt;e.length;n++)a(r.layoutArrayRegexes,e[n])}}function y(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.traces){var i=n.traces[e];i&amp;&amp;h(r.modules[e]._module.attributes,i)}}function x(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.transforms){var i=n.transforms[e];i&amp;&amp;h(r.transformsRegistry[e].attributes,i)}}function b(t,e){var n=r.componentsRegistry[t].schema;if(n&amp;&amp;n.subplots){var i=r.subplotsRegistry[e],a=i.layoutAttributes,o=&quot;subplot&quot;===i.attr?i.name:i.attr;Array.isArray(o)&amp;&amp;(o=o[0]);var s=n.subplots[o];a&amp;&amp;s&amp;&amp;h(a,s)}}function _(t){return&quot;object&quot;==typeof t&amp;&amp;(t=t.type),t}r.modules={},r.allCategories={},r.allTypes=[],r.subplotsRegistry={},r.transformsRegistry={},r.componentsRegistry={},r.layoutArrayContainers=[],r.layoutArrayRegexes=[],r.traceLayoutAttributes={},r.localeRegistry={},r.apiMethodRegistry={},r.collectableSubplotTypes=null,r.register=function(t){if(r.collectableSubplotTypes=null,!t)throw new Error(&quot;No argument passed to Plotly.register.&quot;);t&amp;&amp;!Array.isArray(t)&amp;&amp;(t=[t]);for(var e=0;e&lt;t.length;e++){var n=t[e];if(!n)throw new Error(&quot;Invalid module was attempted to be registered!&quot;);switch(n.moduleType){case&quot;trace&quot;:p(n);break;case&quot;transform&quot;:g(n);break;case&quot;component&quot;:d(n);break;case&quot;locale&quot;:m(n);break;case&quot;apiMethod&quot;:var i=n.name;r.apiMethodRegistry[i]=n.fn;break;default:throw new Error(&quot;Invalid module was attempted to be registered!&quot;)}}},r.getModule=function(t){var e=r.modules[_(t)];return!!e&amp;&amp;e._module},r.traceIs=function(t,e){if(&quot;various&quot;===(t=_(t)))return!1;var i=r.modules[t];return i||(t&amp;&amp;&quot;area&quot;!==t&amp;&amp;n.log(&quot;Unrecognized trace type &quot;+t+&quot;.&quot;),i=r.modules[c.type.dflt]),!!i.categories[e]},r.getTransformIndices=function(t,e){for(var r=[],n=t.transforms||[],i=0;i&lt;n.length;i++)n[i].type===e&amp;&amp;r.push(i);return r},r.hasTransform=function(t,e){for(var r=t.transforms||[],n=0;n&lt;r.length;n++)if(r[n].type===e)return!0;return!1},r.getComponentMethod=function(t,e){var n=r.componentsRegistry[t];return n&amp;&amp;n[e]||i},r.call=function(){var t=arguments[0],e=[].slice.call(arguments,1);return r.apiMethodRegistry[t].apply(null,e)}},{&quot;./lib/dom&quot;:766,&quot;./lib/extend&quot;:768,&quot;./lib/is_plain_object&quot;:779,&quot;./lib/loggers&quot;:782,&quot;./lib/noop&quot;:787,&quot;./lib/push_unique&quot;:793,&quot;./plots/attributes&quot;:824,&quot;./plots/layout_attributes&quot;:882}],912:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;),i=t(&quot;../lib&quot;),a=i.extendFlat,o=i.extendDeep;function s(t){var e;switch(t){case&quot;themes__thumb&quot;:e={autosize:!0,width:150,height:150,title:{text:&quot;&quot;},showlegend:!1,margin:{l:5,r:5,t:5,b:5,pad:0},annotations:[]};break;case&quot;thumbnail&quot;:e={title:{text:&quot;&quot;},hidesources:!0,showlegend:!1,borderwidth:0,bordercolor:&quot;&quot;,margin:{l:1,r:1,t:1,b:1,pad:0},annotations:[]};break;default:e={}}return e}e.exports=function(t,e){var r;t.framework&amp;&amp;t.framework.isPolar&amp;&amp;(t=t.framework.getConfig());var i,l=t.data,c=t.layout,u=o([],l),f=o({},c,s(e.tileClass)),h=t._context||{};if(e.width&amp;&amp;(f.width=e.width),e.height&amp;&amp;(f.height=e.height),&quot;thumbnail&quot;===e.tileClass||&quot;themes__thumb&quot;===e.tileClass){f.annotations=[];var p=Object.keys(f);for(r=0;r&lt;p.length;r++)i=p[r],[&quot;xaxis&quot;,&quot;yaxis&quot;,&quot;zaxis&quot;].indexOf(i.slice(0,5))&gt;-1&amp;&amp;(f[p[r]].title={text:&quot;&quot;});for(r=0;r&lt;u.length;r++){var d=u[r];d.showscale=!1,d.marker&amp;&amp;(d.marker.showscale=!1),n.traceIs(d,&quot;pie-like&quot;)&amp;&amp;(d.textposition=&quot;none&quot;)}}if(Array.isArray(e.annotations))for(r=0;r&lt;e.annotations.length;r++)f.annotations.push(e.annotations[r]);var g=Object.keys(f).filter((function(t){return t.match(/^scene\d*$/)}));if(g.length){var m={};for(&quot;thumbnail&quot;===e.tileClass&amp;&amp;(m={title:{text:&quot;&quot;},showaxeslabels:!1,showticklabels:!1,linetickenable:!1}),r=0;r&lt;g.length;r++){var v=f[g[r]];v.xaxis||(v.xaxis={}),v.yaxis||(v.yaxis={}),v.zaxis||(v.zaxis={}),a(v.xaxis,m),a(v.yaxis,m),a(v.zaxis,m),v._scene=null}}var y=document.createElement(&quot;div&quot;);e.tileClass&amp;&amp;(y.className=e.tileClass);var x={gd:y,td:y,layout:f,data:u,config:{staticPlot:void 0===e.staticPlot||e.staticPlot,plotGlPixelRatio:void 0===e.plotGlPixelRatio?2:e.plotGlPixelRatio,displaylogo:e.displaylogo||!1,showLink:e.showLink||!1,showTips:e.showTips||!1,mapboxAccessToken:h.mapboxAccessToken}};return&quot;transparent&quot;!==e.setBackground&amp;&amp;(x.config.setBackground=e.setBackground||&quot;opaque&quot;),x.gd.defaultLayout=s(e.tileClass),x}},{&quot;../lib&quot;:778,&quot;../registry&quot;:911}],913:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/to_image&quot;),a=t(&quot;./filesaver&quot;),o=t(&quot;./helpers&quot;);e.exports=function(t,e){var r;return n.isPlainObject(t)||(r=n.getGraphDiv(t)),(e=e||{}).format=e.format||&quot;png&quot;,e.width=e.width||null,e.height=e.height||null,e.imageDataOnly=!0,new Promise((function(s,l){r&amp;&amp;r._snapshotInProgress&amp;&amp;l(new Error(&quot;Snapshotting already in progress.&quot;)),n.isIE()&amp;&amp;&quot;svg&quot;!==e.format&amp;&amp;l(new Error(o.MSG_IE_BAD_FORMAT)),r&amp;&amp;(r._snapshotInProgress=!0);var c=i(t,e),u=e.filename||t.fn||&quot;newplot&quot;;u+=&quot;.&quot;+e.format.replace(&quot;-&quot;,&quot;.&quot;),c.then((function(t){return r&amp;&amp;(r._snapshotInProgress=!1),a(t,u,e.format)})).then((function(t){s(t)})).catch((function(t){r&amp;&amp;(r._snapshotInProgress=!1),l(t)}))}))}},{&quot;../lib&quot;:778,&quot;../plot_api/to_image&quot;:820,&quot;./filesaver&quot;:914,&quot;./helpers&quot;:915}],914:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;./helpers&quot;);e.exports=function(t,e,r){var a=document.createElement(&quot;a&quot;),o=&quot;download&quot;in a;return new Promise((function(s,l){var c,u;if(n.isIE9orBelow()&amp;&amp;l(new Error(&quot;IE &lt; 10 unsupported&quot;)),n.isSafari()){var f=&quot;svg&quot;===r?&quot;,&quot;:&quot;;base64,&quot;;return i.octetStream(f+encodeURIComponent(t)),s(e)}return n.isIE()?(c=i.createBlob(t,&quot;svg&quot;),window.navigator.msSaveBlob(c,e),c=null,s(e)):o?(c=i.createBlob(t,r),u=i.createObjectURL(c),a.href=u,a.download=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),i.revokeObjectURL(u),c=null,s(e)):void l(new Error(&quot;download error&quot;))}))}},{&quot;../lib&quot;:778,&quot;./helpers&quot;:915}],915:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../registry&quot;);r.getDelay=function(t){return t._has&amp;&amp;(t._has(&quot;gl3d&quot;)||t._has(&quot;gl2d&quot;)||t._has(&quot;mapbox&quot;))?500:0},r.getRedrawFunc=function(t){return function(){var e=t._fullLayout||{};!(e._has&amp;&amp;e._has(&quot;polar&quot;))&amp;&amp;t.data&amp;&amp;t.data[0]&amp;&amp;t.data[0].r||n.getComponentMethod(&quot;colorbar&quot;,&quot;draw&quot;)(t)}},r.encodeSVG=function(t){return&quot;data:image/svg+xml,&quot;+encodeURIComponent(t)},r.encodeJSON=function(t){return&quot;data:application/json,&quot;+encodeURIComponent(t)};var i=window.URL||window.webkitURL;r.createObjectURL=function(t){return i.createObjectURL(t)},r.revokeObjectURL=function(t){return i.revokeObjectURL(t)},r.createBlob=function(t,e){if(&quot;svg&quot;===e)return new window.Blob([t],{type:&quot;image/svg+xml;charset=utf-8&quot;});if(&quot;full-json&quot;===e)return new window.Blob([t],{type:&quot;application/json;charset=utf-8&quot;});var r=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r),i=0;i&lt;e;i++)n[i]=t.charCodeAt(i);return r}(window.atob(t));return new window.Blob([r],{type:&quot;image/&quot;+e})},r.octetStream=function(t){document.location.href=&quot;data:application/octet-stream&quot;+t},r.IMAGE_URL_PREFIX=/^data:image\/\w+;base64,/,r.MSG_IE_BAD_FORMAT=&quot;Sorry IE does not support downloading from canvas. Try {format:'svg'} instead.&quot;},{&quot;../registry&quot;:911}],916:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./helpers&quot;),i={getDelay:n.getDelay,getRedrawFunc:n.getRedrawFunc,clone:t(&quot;./cloneplot&quot;),toSVG:t(&quot;./tosvg&quot;),svgToImg:t(&quot;./svgtoimg&quot;),toImage:t(&quot;./toimage&quot;),downloadImage:t(&quot;./download&quot;)};e.exports=i},{&quot;./cloneplot&quot;:912,&quot;./download&quot;:913,&quot;./helpers&quot;:915,&quot;./svgtoimg&quot;:917,&quot;./toimage&quot;:918,&quot;./tosvg&quot;:919}],917:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;events&quot;).EventEmitter,a=t(&quot;./helpers&quot;);e.exports=function(t){var e=t.emitter||new i,r=new Promise((function(i,o){var s=window.Image,l=t.svg,c=t.format||&quot;png&quot;;if(n.isIE()&amp;&amp;&quot;svg&quot;!==c){var u=new Error(a.MSG_IE_BAD_FORMAT);return o(u),t.promise?r:e.emit(&quot;error&quot;,u)}var f,h,p=t.canvas,d=t.scale||1,g=t.width||300,m=t.height||150,v=d*g,y=d*m,x=p.getContext(&quot;2d&quot;),b=new s;&quot;svg&quot;===c||n.isIE9orBelow()||n.isSafari()?h=a.encodeSVG(l):(f=a.createBlob(l,&quot;svg&quot;),h=a.createObjectURL(f)),p.width=v,p.height=y,b.onload=function(){var r;switch(f=null,a.revokeObjectURL(h),&quot;svg&quot;!==c&amp;&amp;x.drawImage(b,0,0,v,y),c){case&quot;jpeg&quot;:r=p.toDataURL(&quot;image/jpeg&quot;);break;case&quot;png&quot;:r=p.toDataURL(&quot;image/png&quot;);break;case&quot;webp&quot;:r=p.toDataURL(&quot;image/webp&quot;);break;case&quot;svg&quot;:r=h;break;default:var n=&quot;Image format is not jpeg, png, svg or webp.&quot;;if(o(new Error(n)),!t.promise)return e.emit(&quot;error&quot;,n)}i(r),t.promise||e.emit(&quot;success&quot;,r)},b.onerror=function(r){if(f=null,a.revokeObjectURL(h),o(r),!t.promise)return e.emit(&quot;error&quot;,r)},b.src=h}));return t.promise?r:e}},{&quot;../lib&quot;:778,&quot;./helpers&quot;:915,events:110}],918:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;events&quot;).EventEmitter,i=t(&quot;../registry&quot;),a=t(&quot;../lib&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;./cloneplot&quot;),l=t(&quot;./tosvg&quot;),c=t(&quot;./svgtoimg&quot;);e.exports=function(t,e){var r=new n,u=s(t,{format:&quot;png&quot;}),f=u.gd;f.style.position=&quot;absolute&quot;,f.style.left=&quot;-5000px&quot;,document.body.appendChild(f);var h=o.getRedrawFunc(f);return i.call(&quot;plot&quot;,f,u.data,u.layout,u.config).then(h).then((function(){var t=o.getDelay(f._fullLayout);setTimeout((function(){var t=l(f),n=document.createElement(&quot;canvas&quot;);n.id=a.randstr(),(r=c({format:e.format,width:f._fullLayout.width,height:f._fullLayout.height,canvas:n,emitter:r,svg:t})).clean=function(){f&amp;&amp;document.body.removeChild(f)}}),t)})).catch((function(t){r.emit(&quot;error&quot;,t)})),r}},{&quot;../lib&quot;:778,&quot;../registry&quot;:911,&quot;./cloneplot&quot;:912,&quot;./helpers&quot;:915,&quot;./svgtoimg&quot;:917,&quot;./tosvg&quot;:919,events:110}],919:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../components/drawing&quot;),o=t(&quot;../components/color&quot;),s=t(&quot;../constants/xmlns_namespaces&quot;),l=/&quot;/g,c=new RegExp('(&quot;TOBESTRIPPED)|(TOBESTRIPPED&quot;)',&quot;g&quot;);e.exports=function(t,e,r){var u,f=t._fullLayout,h=f._paper,p=f._toppaper,d=f.width,g=f.height;h.insert(&quot;rect&quot;,&quot;:first-child&quot;).call(a.setRect,0,0,d,g).call(o.fill,f.paper_bgcolor);var m=f._basePlotModules||[];for(u=0;u&lt;m.length;u++){var v=m[u];v.toSVG&amp;&amp;v.toSVG(t)}if(p){var y=p.node().childNodes,x=Array.prototype.slice.call(y);for(u=0;u&lt;x.length;u++){var b=x[u];b.childNodes.length&amp;&amp;h.node().appendChild(b)}}if(f._draggers&amp;&amp;f._draggers.remove(),h.node().style.background=&quot;&quot;,h.selectAll(&quot;text&quot;).attr({&quot;data-unformatted&quot;:null,&quot;data-math&quot;:null}).each((function(){var t=n.select(this);if(&quot;hidden&quot;!==this.style.visibility&amp;&amp;&quot;none&quot;!==this.style.display){t.style({visibility:null,display:null});var e=this.style.fontFamily;e&amp;&amp;-1!==e.indexOf('&quot;')&amp;&amp;t.style(&quot;font-family&quot;,e.replace(l,&quot;TOBESTRIPPED&quot;))}else t.remove()})),f._gradientUrlQueryParts){var _=[];for(var w in f._gradientUrlQueryParts)_.push(w);_.length&amp;&amp;h.selectAll(_.join(&quot;,&quot;)).each((function(){var t=n.select(this),e=this.style.fill;e&amp;&amp;-1!==e.indexOf(&quot;url(&quot;)&amp;&amp;t.style(&quot;fill&quot;,e.replace(l,&quot;TOBESTRIPPED&quot;));var r=this.style.stroke;r&amp;&amp;-1!==r.indexOf(&quot;url(&quot;)&amp;&amp;t.style(&quot;stroke&quot;,r.replace(l,&quot;TOBESTRIPPED&quot;))}))}&quot;pdf&quot;!==e&amp;&amp;&quot;eps&quot;!==e||h.selectAll(&quot;#MathJax_SVG_glyphs path&quot;).attr(&quot;stroke-width&quot;,0),h.node().setAttributeNS(s.xmlns,&quot;xmlns&quot;,s.svg),h.node().setAttributeNS(s.xmlns,&quot;xmlns:xlink&quot;,s.xlink),&quot;svg&quot;===e&amp;&amp;r&amp;&amp;(h.attr(&quot;width&quot;,r*d),h.attr(&quot;height&quot;,r*g),h.attr(&quot;viewBox&quot;,&quot;0 0 &quot;+d+&quot; &quot;+g));var T=(new window.XMLSerializer).serializeToString(h.node());return T=function(t){var e=n.select(&quot;body&quot;).append(&quot;div&quot;).style({display:&quot;none&quot;}).html(&quot;&quot;),r=t.replace(/(&amp;[^;]*;)/gi,(function(t){return&quot;&amp;lt;&quot;===t?&quot;&amp;#60;&quot;:&quot;&amp;rt;&quot;===t?&quot;&amp;#62;&quot;:-1!==t.indexOf(&quot;&lt;&quot;)||-1!==t.indexOf(&quot;&gt;&quot;)?&quot;&quot;:e.html(t).text()}));return e.remove(),r}(T),T=(T=T.replace(/&amp;(?!\w+;|\#[0-9]+;| \#x[0-9A-F]+;)/g,&quot;&amp;amp;&quot;)).replace(c,&quot;'&quot;),i.isIE()&amp;&amp;(T=(T=(T=T.replace(/&quot;/gi,&quot;'&quot;)).replace(/(\('#)([^']*)('\))/gi,'(&quot;#$2&quot;)')).replace(/(\\')/gi,'&quot;')),T}},{&quot;../components/color&quot;:643,&quot;../components/drawing&quot;:665,&quot;../constants/xmlns_namespaces&quot;:754,&quot;../lib&quot;:778,d3:169}],920:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;);var i=e.marker;if(i){n.mergeArray(i.opacity,t,&quot;mo&quot;,!0),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;a&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;))}}},{&quot;../../lib&quot;:778}],921:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/font_attributes&quot;),l=t(&quot;./constants&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat,u=s({editType:&quot;calc&quot;,arrayOk:!0,colorEditType:&quot;style&quot;}),f=c({},n.marker.line.width,{dflt:0}),h=c({width:f,editType:&quot;calc&quot;},o(&quot;marker.line&quot;)),p=c({line:h,editType:&quot;calc&quot;},o(&quot;marker&quot;),{opacity:{valType:&quot;number&quot;,arrayOk:!0,dflt:1,min:0,max:1,editType:&quot;style&quot;}});e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,text:n.text,texttemplate:a({editType:&quot;plot&quot;},{keys:l.eventDataKeys}),hovertext:n.hovertext,hovertemplate:i({},{keys:l.eventDataKeys}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;auto&quot;,&quot;none&quot;],dflt:&quot;none&quot;,arrayOk:!0,editType:&quot;calc&quot;},insidetextanchor:{valType:&quot;enumerated&quot;,values:[&quot;end&quot;,&quot;middle&quot;,&quot;start&quot;],dflt:&quot;end&quot;,editType:&quot;plot&quot;},textangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;plot&quot;},textfont:c({},u,{}),insidetextfont:c({},u,{}),outsidetextfont:c({},u,{}),constraintext:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;both&quot;,&quot;none&quot;],dflt:&quot;both&quot;,editType:&quot;calc&quot;},cliponaxis:c({},n.cliponaxis,{}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc+clearAxisTypes&quot;},base:{valType:&quot;any&quot;,dflt:null,arrayOk:!0,editType:&quot;calc&quot;},offset:{valType:&quot;number&quot;,dflt:null,arrayOk:!0,editType:&quot;calc&quot;},width:{valType:&quot;number&quot;,dflt:null,min:0,arrayOk:!0,editType:&quot;calc&quot;},marker:p,offsetgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},alignmentgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},selected:{marker:{opacity:n.selected.marker.opacity,color:n.selected.marker.color,editType:&quot;style&quot;},textfont:n.selected.textfont,editType:&quot;style&quot;},unselected:{marker:{opacity:n.unselected.marker.opacity,color:n.unselected.marker.color,editType:&quot;style&quot;},textfont:n.unselected.textfont,editType:&quot;style&quot;},r:n.r,t:n.t,_deprecated:{bardir:{valType:&quot;enumerated&quot;,editType:&quot;calc&quot;,values:[&quot;v&quot;,&quot;h&quot;]}}}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:923}],922:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,o=t(&quot;../../components/colorscale/calc&quot;),s=t(&quot;./arrays_to_calcdata&quot;),l=t(&quot;../scatter/calc_selection&quot;);e.exports=function(t,e){var r,c,u,f,h=n.getFromId(t,e.xaxis||&quot;x&quot;),p=n.getFromId(t,e.yaxis||&quot;y&quot;),d={msUTC:!(!e.base&amp;&amp;0!==e.base)};&quot;h&quot;===e.orientation?(r=h.makeCalcdata(e,&quot;x&quot;,d),u=p.makeCalcdata(e,&quot;y&quot;),c=i(e,p,&quot;y&quot;,u),f=!!e.yperiodalignment):(r=p.makeCalcdata(e,&quot;y&quot;,d),u=h.makeCalcdata(e,&quot;x&quot;),c=i(e,h,&quot;x&quot;,u),f=!!e.xperiodalignment);for(var g=Math.min(c.length,r.length),m=new Array(g),v=0;v&lt;g;v++)m[v]={p:c[v],s:r[v]},f&amp;&amp;(m[v].orig_p=u[v]),e.ids&amp;&amp;(m[v].id=String(e.ids[v]));return a(e,&quot;marker&quot;)&amp;&amp;o(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),a(e,&quot;marker.line&quot;)&amp;&amp;o(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}),s(m,e),l(m,e),m}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc_selection&quot;:1189,&quot;./arrays_to_calcdata&quot;:920}],923:[function(t,e,r){&quot;use strict&quot;;e.exports={TEXTPAD:3,eventDataKeys:[&quot;value&quot;,&quot;label&quot;]}},{}],924:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray,a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../registry&quot;),s=t(&quot;../../plots/cartesian/axes&quot;),l=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,c=t(&quot;./sieve.js&quot;);function u(t,e,r,o,u){if(o.length){var b,_,w,T;switch(function(t,e){var r,a;for(r=0;r&lt;e.length;r++){var o,s=e[r],l=s[0].trace,c=&quot;funnel&quot;===l.type?l._base:l.base,u=&quot;h&quot;===l.orientation?l.xcalendar:l.ycalendar,f=&quot;category&quot;===t.type||&quot;multicategory&quot;===t.type?function(){return null}:t.d2c;if(i(c)){for(a=0;a&lt;Math.min(c.length,s.length);a++)o=f(c[a],0,u),n(o)?(s[a].b=+o,s[a].hasB=1):s[a].b=0;for(;a&lt;s.length;a++)s[a].b=0}else{o=f(c,0,u);var h=n(o);for(o=h?o:0,a=0;a&lt;s.length;a++)s[a].b=o,h&amp;&amp;(s[a].hasB=1)}}}(r,o),u.mode){case&quot;overlay&quot;:f(e,r,o,u);break;case&quot;group&quot;:for(b=[],_=[],w=0;w&lt;o.length;w++)void 0===(T=o[w])[0].trace.offset?_.push(T):b.push(T);_.length&amp;&amp;function(t,e,r,n,i){var o=new c(n,{sepNegVal:!1,overlapNoMerge:!i.norm});(function(t,e,r,n){for(var i=t._fullLayout,a=r.positions,o=r.distinctPositions,s=r.minDiff,c=r.traces,u=c.length,f=a.length!==o.length,h=s*(1-n.gap),m=l(i,e._id)+c[0][0].trace.orientation,v=i._alignmentOpts[m]||{},y=0;y&lt;u;y++){var x,b,_=c[y],w=_[0].trace,T=v[w.alignmentgroup]||{},k=Object.keys(T.offsetGroups||{}).length,M=(x=k?h/k:f?h/u:h)*(1-(n.groupgap||0));b=k?((2*w._offsetIndex+1-k)*x-M)/2:f?((2*y+1-u)*x-M)/2:-M/2;var A=_[0].t;A.barwidth=M,A.poffset=b,A.bargroupwidth=h,A.bardelta=s}r.binWidth=c[0][0].t.barwidth/100,p(r),d(e,r),g(e,r,f)})(t,e,o,i),function(t){for(var e=t.traces,r=0;r&lt;e.length;r++){var n=e[r];if(void 0===n[0].trace.base)for(var i=new c([n],{sepNegVal:!0,overlapNoMerge:!0}),o=0;o&lt;n.length;o++){var s=n[o];if(s.p!==a){var l=i.put(s.p,s.b+s.s);l&amp;&amp;(s.b=l)}}}}(o),i.norm?(v(o),y(r,o,i)):m(r,o)}(t,e,r,_,u),b.length&amp;&amp;f(e,r,b,u);break;case&quot;stack&quot;:case&quot;relative&quot;:for(b=[],_=[],w=0;w&lt;o.length;w++)void 0===(T=o[w])[0].trace.base?_.push(T):b.push(T);_.length&amp;&amp;function(t,e,r,n,i){var o=new c(n,{sepNegVal:&quot;relative&quot;===i.mode,overlapNoMerge:!(i.norm||&quot;stack&quot;===i.mode||&quot;relative&quot;===i.mode)});h(e,o,i),function(t,e,r){var n,i,o,l,c,u,f=x(t),h=e.traces;for(l=0;l&lt;h.length;l++)if(n=h[l],&quot;funnel&quot;===(i=n[0].trace).type)for(c=0;c&lt;n.length;c++)(u=n[c]).s!==a&amp;&amp;e.put(u.p,-.5*u.s);for(l=0;l&lt;h.length;l++){n=h[l],i=n[0].trace,o=&quot;funnel&quot;===i.type;var p=[];for(c=0;c&lt;n.length;c++)if((u=n[c]).s!==a){var d;d=o?u.s:u.s+u.b;var g=e.put(u.p,d),m=g+d;u.b=g,u[f]=m,r.norm||(p.push(m),u.hasB&amp;&amp;p.push(g))}r.norm||(i._extremes[t._id]=s.findExtremes(t,p,{tozero:!0,padded:!0}))}}(r,o,i);for(var l=0;l&lt;n.length;l++)for(var u=n[l],f=0;f&lt;u.length;f++){var p=u[f];if(p.s!==a)p.b+p.s===o.get(p.p,p.s)&amp;&amp;(p._outmost=!0)}i.norm&amp;&amp;y(r,o,i)}(0,e,r,_,u),b.length&amp;&amp;f(e,r,b,u)}!function(t,e){var r,i,a,o=x(e),s={},l=1/0,c=-1/0;for(r=0;r&lt;t.length;r++)for(a=t[r],i=0;i&lt;a.length;i++){var u=a[i].p;n(u)&amp;&amp;(l=Math.min(l,u),c=Math.max(c,u))}var f=1e4/(c-l),h=s.round=function(t){return String(Math.round(f*(t-l)))};for(r=0;r&lt;t.length;r++){(a=t[r])[0].t.extents=s;var p=a[0].t.poffset,d=Array.isArray(p);for(i=0;i&lt;a.length;i++){var g=a[i],m=g[o]-g.w/2;if(n(m)){var v=g[o]+g.w/2,y=h(g.p);s[y]?s[y]=[Math.min(m,s[y][0]),Math.max(v,s[y][1])]:s[y]=[m,v]}g.p0=g.p+(d?p[i]:p),g.p1=g.p0+g.w,g.s0=g.b,g.s1=g.s0+g.s}}}(o,e)}}function f(t,e,r,n){for(var i=0;i&lt;r.length;i++){var a=r[i],o=new c([a],{unitMinDiff:n.xCat||n.yCat,sepNegVal:!1,overlapNoMerge:!n.norm});h(t,o,n),n.norm?(v(o),y(e,o,n)):m(e,o)}}function h(t,e,r){for(var n=e.minDiff,i=e.traces,a=n*(1-r.gap),o=a*(1-(r.groupgap||0)),s=-o/2,l=0;l&lt;i.length;l++){var c=i[l][0].t;c.barwidth=o,c.poffset=s,c.bargroupwidth=a,c.bardelta=n}e.binWidth=i[0][0].t.barwidth/100,p(e),d(t,e),g(t,e)}function p(t){var e,r,a=t.traces;for(e=0;e&lt;a.length;e++){var o,s=a[e],l=s[0],c=l.trace,u=l.t,f=c._offset||c.offset,h=u.poffset;if(i(f)){for(o=Array.prototype.slice.call(f,0,s.length),r=0;r&lt;o.length;r++)n(o[r])||(o[r]=h);for(r=o.length;r&lt;s.length;r++)o.push(h);u.poffset=o}else void 0!==f&amp;&amp;(u.poffset=f);var p=c._width||c.width,d=u.barwidth;if(i(p)){var g=Array.prototype.slice.call(p,0,s.length);for(r=0;r&lt;g.length;r++)n(g[r])||(g[r]=d);for(r=g.length;r&lt;s.length;r++)g.push(d);if(u.barwidth=g,void 0===f){for(o=[],r=0;r&lt;s.length;r++)o.push(h+(d-g[r])/2);u.poffset=o}}else void 0!==p&amp;&amp;(u.barwidth=p,void 0===f&amp;&amp;(u.poffset=h+(d-p)/2))}}function d(t,e){for(var r=e.traces,n=x(t),i=0;i&lt;r.length;i++)for(var a=r[i],o=a[0].t,s=o.poffset,l=Array.isArray(s),c=o.barwidth,u=Array.isArray(c),f=0;f&lt;a.length;f++){var h=a[f],p=h.w=u?c[f]:c;h[n]=h.p+(l?s[f]:s)+p/2}}function g(t,e,r){var n=e.traces,i=e.minDiff/2;s.minDtick(t,e.minDiff,e.distinctPositions[0],r);for(var a=0;a&lt;n.length;a++){var o,l,c,u,f=n[a],h=f[0],p=h.trace,d=[];for(u=0;u&lt;f.length;u++)l=(o=f[u]).p-i,c=o.p+i,d.push(l,c);if(p.width||p.offset){var g=h.t,m=g.poffset,v=g.barwidth,y=Array.isArray(m),x=Array.isArray(v);for(u=0;u&lt;f.length;u++){o=f[u];var b=y?m[u]:m,_=x?v[u]:v;c=(l=o.p+b)+_,d.push(l,c)}}p._extremes[t._id]=s.findExtremes(t,d,{padded:!1})}}function m(t,e){for(var r=e.traces,n=x(t),i=0;i&lt;r.length;i++){for(var a=r[i],o=a[0].trace,l=[],c=!1,u=0;u&lt;a.length;u++){var f=a[u],h=f.b,p=h+f.s;f[n]=p,l.push(p),f.hasB&amp;&amp;l.push(h),f.hasB&amp;&amp;f.b||(c=!0)}o._extremes[t._id]=s.findExtremes(t,l,{tozero:c,padded:!0})}}function v(t){for(var e=t.traces,r=0;r&lt;e.length;r++)for(var n=e[r],i=0;i&lt;n.length;i++){var o=n[i];o.s!==a&amp;&amp;t.put(o.p,o.b+o.s)}}function y(t,e,r){var i=e.traces,o=x(t),l=&quot;fraction&quot;===r.norm?1:100,c=l/1e9,u=t.l2c(t.c2l(0)),f=&quot;stack&quot;===r.mode?l:u;function h(e){return n(t.c2l(e))&amp;&amp;(e&lt;u-c||e&gt;f+c||!n(u))}for(var p=0;p&lt;i.length;p++){for(var d=i[p],g=d[0].trace,m=[],v=!1,y=!1,b=0;b&lt;d.length;b++){var _=d[b];if(_.s!==a){var w=Math.abs(l/e.get(_.p,_.s));_.b*=w,_.s*=w;var T=_.b,k=T+_.s;_[o]=k,m.push(k),y=y||h(k),_.hasB&amp;&amp;(m.push(T),y=y||h(T)),_.hasB&amp;&amp;_.b||(v=!0)}}g._extremes[t._id]=s.findExtremes(t,m,{tozero:v,padded:y})}}function x(t){return t._id.charAt(0)}e.exports={crossTraceCalc:function(t,e){for(var r=e.xaxis,n=e.yaxis,i=t._fullLayout,a=t._fullData,s=t.calcdata,l=[],c=[],f=0;f&lt;a.length;f++){var h=a[f];if(!0===h.visible&amp;&amp;o.traceIs(h,&quot;bar&quot;)&amp;&amp;h.xaxis===r._id&amp;&amp;h.yaxis===n._id&amp;&amp;(&quot;h&quot;===h.orientation?l.push(s[f]):c.push(s[f]),h._computePh))for(var p=t.calcdata[f],d=0;d&lt;p.length;d++)&quot;function&quot;==typeof p[d].ph0&amp;&amp;(p[d].ph0=p[d].ph0()),&quot;function&quot;==typeof p[d].ph1&amp;&amp;(p[d].ph1=p[d].ph1())}var g={xCat:&quot;category&quot;===r.type||&quot;multicategory&quot;===r.type,yCat:&quot;category&quot;===n.type||&quot;multicategory&quot;===n.type,mode:i.barmode,norm:i.barnorm,gap:i.bargap,groupgap:i.bargroupgap};u(t,r,n,c,g),u(t,n,r,l,g)},setGroupPositions:u}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/constraints&quot;:835,&quot;../../registry&quot;:911,&quot;./sieve.js&quot;:934,&quot;fast-isnumeric&quot;:241}],925:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./style_defaults&quot;),c=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,u=t(&quot;./attributes&quot;),f=n.coerceFont;function h(t,e,r,n){var i=e.orientation,a=e[{v:&quot;x&quot;,h:&quot;y&quot;}[i]+&quot;axis&quot;],o=c(r,a)+i,s=r._alignmentOpts||{},l=n(&quot;alignmentgroup&quot;),u=s[o];u||(u=s[o]={});var f=u[l];f?f.traces.push(e):f=u[l]={traces:[e],alignmentIndex:Object.keys(u).length,offsetGroups:{}};var h=n(&quot;offsetgroup&quot;),p=f.offsetGroups,d=p[h];h&amp;&amp;(d||(d=p[h]={offsetIndex:Object.keys(p).length}),e._offsetIndex=d.offsetIndex)}function p(t,e,r,i,a,o){var s=!(!1===(o=o||{}).moduleHasSelected),l=!(!1===o.moduleHasUnselected),c=!(!1===o.moduleHasConstrain),u=!(!1===o.moduleHasCliponaxis),h=!(!1===o.moduleHasTextangle),p=!(!1===o.moduleHasInsideanchor),d=!!o.hasPathbar,g=Array.isArray(a)||&quot;auto&quot;===a,m=g||&quot;inside&quot;===a,v=g||&quot;outside&quot;===a;if(m||v){var y=f(i,&quot;textfont&quot;,r.font),x=n.extendFlat({},y),b=!(t.textfont&amp;&amp;t.textfont.color);if(b&amp;&amp;delete x.color,f(i,&quot;insidetextfont&quot;,x),d){var _=n.extendFlat({},y);b&amp;&amp;delete _.color,f(i,&quot;pathbar.textfont&quot;,_)}v&amp;&amp;f(i,&quot;outsidetextfont&quot;,y),s&amp;&amp;i(&quot;selected.textfont.color&quot;),l&amp;&amp;i(&quot;unselected.textfont.color&quot;),c&amp;&amp;i(&quot;constraintext&quot;),u&amp;&amp;i(&quot;cliponaxis&quot;),h&amp;&amp;i(&quot;textangle&quot;),i(&quot;texttemplate&quot;)}m&amp;&amp;p&amp;&amp;i(&quot;insidetextanchor&quot;)}e.exports={supplyDefaults:function(t,e,r,c){function f(r,i){return n.coerce(t,e,u,r,i)}if(o(t,e,c,f)){s(t,e,c,f),f(&quot;orientation&quot;,e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;),f(&quot;base&quot;),f(&quot;offset&quot;),f(&quot;width&quot;),f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;);var h=f(&quot;textposition&quot;);p(t,e,c,f,h,{moduleHasSelected:!0,moduleHasUnselected:!0,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),l(t,e,f,r,c);var d=(e.marker.line||{}).color,g=a.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);g(t,e,d||i.defaultLine,{axis:&quot;y&quot;}),g(t,e,d||i.defaultLine,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1},crossTraceDefaults:function(t,e){var r;function i(t){return n.coerce(r._input,r,u,t)}if(&quot;group&quot;===e.barmode)for(var a=0;a&lt;t.length;a++)&quot;bar&quot;===(r=t[a]).type&amp;&amp;(r._input,h(0,r,e,i))},handleGroupingDefaults:h,handleText:p}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/constraints&quot;:835,&quot;../../registry&quot;:911,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:921,&quot;./style_defaults&quot;:936}],926:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),&quot;h&quot;===r.orientation?(t.label=t.y,t.value=t.x):(t.label=t.x,t.value=t.y),t}},{}],927:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../lib&quot;).isArrayOrTypedArray;r.coerceString=function(t,e,r){if(&quot;string&quot;==typeof e){if(e||!t.noBlank)return e}else if((&quot;number&quot;==typeof e||!0===e)&amp;&amp;!t.strict)return String(e);return void 0!==r?r:t.dflt},r.coerceNumber=function(t,e,r){if(n(e)){e=+e;var i=t.min,a=t.max;if(!(void 0!==i&amp;&amp;e&lt;i||void 0!==a&amp;&amp;e&gt;a))return e}return void 0!==r?r:t.dflt},r.coerceColor=function(t,e,r){return i(e).isValid()?e:void 0!==r?r:t.dflt},r.coerceEnumerated=function(t,e,r){return t.coerceNumber&amp;&amp;(e=+e),-1!==t.values.indexOf(e)?e:void 0!==r?r:t.dflt},r.getValue=function(t,e){var r;return Array.isArray(t)?e&lt;t.length&amp;&amp;(r=t[e]):r=t,r},r.getLineWidth=function(t,e){return 0&lt;e.mlw?e.mlw:a(t.marker.line.width)?0:t.marker.line.width}},{&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],928:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../lib&quot;).fillText,s=t(&quot;./helpers&quot;).getLineWidth,l=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText,c=t(&quot;../../constants/numerical&quot;).BADNUM;function u(t,e,r,i){var a,s,u,f,h,p,d,g=t.cd,m=g[0].trace,v=g[0].t,y=&quot;closest&quot;===i,x=&quot;waterfall&quot;===m.type,b=t.maxHoverDistance;function _(t){return t[u]-t.w/2}function w(t){return t[u]+t.w/2}var T=y?_:function(t){return Math.min(_(t),t.p-v.bardelta/2)},k=y?w:function(t){return Math.max(w(t),t.p+v.bardelta/2)};function M(t,e){return n.inbox(t-a,e-a,b+Math.min(1,Math.abs(e-t)/d)-1)}function A(t){return M(T(t),k(t))}function S(t){var e=s,r=t.b,i=t[f];if(x){var a=Math.abs(t.rawS)||0;e&gt;0?i+=a:e&lt;0&amp;&amp;(i-=a)}return n.inbox(r-e,i-e,b+(i-e)/(i-r)-1)}&quot;h&quot;===m.orientation?(a=r,s=e,u=&quot;y&quot;,f=&quot;x&quot;,h=S,p=A):(a=e,s=r,u=&quot;x&quot;,f=&quot;y&quot;,p=S,h=A);var E=t[u+&quot;a&quot;],C=t[f+&quot;a&quot;];d=Math.abs(E.r2c(E.range[1])-E.r2c(E.range[0]));var L=n.getDistanceFunction(i,h,p,(function(t){return(h(t)+p(t))/2}));if(n.getClosest(g,L,t),!1!==t.index&amp;&amp;g[t.index].p!==c){y||(T=function(t){return Math.min(_(t),t.p-v.bargroupwidth/2)},k=function(t){return Math.max(w(t),t.p+v.bargroupwidth/2)});var I=g[t.index],P=m.base?I.b+I.s:I.s;t[f+&quot;0&quot;]=t[f+&quot;1&quot;]=C.c2p(I[f],!0),t[f+&quot;LabelVal&quot;]=P;var z=v.extents[v.extents.round(I.p)];t[u+&quot;0&quot;]=E.c2p(y?T(I):z[0],!0),t[u+&quot;1&quot;]=E.c2p(y?k(I):z[1],!0);var O=void 0!==I.orig_p;return t[u+&quot;LabelVal&quot;]=O?I.orig_p:I.p,t.labelLabel=l(E,t[u+&quot;LabelVal&quot;]),t.valueLabel=l(C,t[f+&quot;LabelVal&quot;]),t.baseLabel=l(C,I.b),t.spikeDistance=(S(I)+function(t){return M(_(t),w(t))}(I))/2-b,t[u+&quot;Spike&quot;]=E.c2p(I.p,!0),o(I,m,t),t.hovertemplate=m.hovertemplate,t}}function f(t,e){var r=e.mcc||t.marker.color,n=e.mlcc||t.marker.line.color,i=s(t,e);return a.opacity(r)?r:a.opacity(n)&amp;&amp;i?n:void 0}e.exports={hoverPoints:function(t,e,r,n){var a=u(t,e,r,n);if(a){var o=a.cd,s=o[0].trace,l=o[a.index];return a.color=f(s,l),i.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(l,s,a),[a]}},hoverOnBars:u,getTraceColor:f}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./helpers&quot;:927}],929:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;).crossTraceCalc,colorbar:t(&quot;../scatter/marker_colorbar&quot;),arraysToCalcdata:t(&quot;./arrays_to_calcdata&quot;),plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;bar&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;bar&quot;,&quot;oriented&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],animatable:!0,meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./arrays_to_calcdata&quot;:920,&quot;./attributes&quot;:921,&quot;./calc&quot;:922,&quot;./cross_trace_calc&quot;:924,&quot;./defaults&quot;:925,&quot;./event_data&quot;:926,&quot;./hover&quot;:928,&quot;./layout_attributes&quot;:930,&quot;./layout_defaults&quot;:931,&quot;./plot&quot;:932,&quot;./select&quot;:933,&quot;./style&quot;:935}],930:[function(t,e,r){&quot;use strict&quot;;e.exports={barmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;group&quot;,&quot;overlay&quot;,&quot;relative&quot;],dflt:&quot;group&quot;,editType:&quot;calc&quot;},barnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;fraction&quot;,&quot;percent&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},bargap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},bargroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],931:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){function s(r,n){return a.coerce(t,e,o,r,n)}for(var l=!1,c=!1,u=!1,f={},h=s(&quot;barmode&quot;),p=0;p&lt;r.length;p++){var d=r[p];if(n.traceIs(d,&quot;bar&quot;)&amp;&amp;d.visible){if(l=!0,&quot;group&quot;===h){var g=d.xaxis+d.yaxis;f[g]&amp;&amp;(u=!0),f[g]=!0}if(d.visible&amp;&amp;&quot;histogram&quot;===d.type)&quot;category&quot;!==i.getFromId({_fullLayout:e},d[&quot;v&quot;===d.orientation?&quot;xaxis&quot;:&quot;yaxis&quot;]).type&amp;&amp;(c=!0)}}l?(&quot;overlay&quot;!==h&amp;&amp;s(&quot;barnorm&quot;),s(&quot;bargap&quot;,c&amp;&amp;!u?0:.2),s(&quot;bargroupgap&quot;)):delete e.barmode}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./layout_attributes&quot;:930}],932:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;../../components/color&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../registry&quot;),u=t(&quot;../../plots/cartesian/axes&quot;).tickText,f=t(&quot;./uniform_text&quot;),h=f.recordMinTextSize,p=f.clearMinTextSize,d=t(&quot;./style&quot;),g=t(&quot;./helpers&quot;),m=t(&quot;./constants&quot;),v=t(&quot;./attributes&quot;),y=v.text,x=v.textposition,b=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,_=m.TEXTPAD;function w(t){return t.id}function T(t){if(t.ids)return w}function k(t,e){return t&lt;e?1:-1}function M(t,e,r,n){var i;return!e.uniformtext.mode&amp;&amp;A(r)?(n&amp;&amp;(i=n()),t.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){i&amp;&amp;i()})).each(&quot;interrupt&quot;,(function(){i&amp;&amp;i()}))):t}function A(t){return t&amp;&amp;t.duration&gt;0}function S(t){return&quot;auto&quot;===t?0:t}function E(t,e){var r=Math.PI/180*e,n=Math.abs(Math.sin(r)),i=Math.abs(Math.cos(r));return{x:t.width*i+t.height*n,y:t.width*n+t.height*i}}function C(t,e,r,n,i,a){var o=!!a.isHorizontal,s=!!a.constrained,l=a.angle||0,c=a.anchor||&quot;end&quot;,u=&quot;end&quot;===c,f=&quot;start&quot;===c,h=((a.leftToRight||0)+1)/2,p=1-h,d=i.width,g=i.height,m=Math.abs(e-t),v=Math.abs(n-r),y=m&gt;2*_&amp;&amp;v&gt;2*_?_:0;m-=2*y,v-=2*y;var x=S(l);&quot;auto&quot;!==l||d&lt;=m&amp;&amp;g&lt;=v||!(d&gt;m||g&gt;v)||(d&gt;v||g&gt;m)&amp;&amp;d&lt;g==m&lt;v||(x+=90);var b=E(i,x),w=1;s&amp;&amp;(w=Math.min(1,m/b.x,v/b.y));var T=i.left*p+i.right*h,M=(i.top+i.bottom)/2,A=(t+_)*p+(e-_)*h,C=(r+n)/2,L=0,I=0;if(f||u){var P=(o?b.x:b.y)/2,z=o?k(t,e):k(r,n);o?f?(A=t+z*y,L=-z*P):(A=e-z*y,L=z*P):f?(C=r+z*y,I=-z*P):(C=n-z*y,I=z*P)}return{textX:T,textY:M,targetX:A,targetY:C,anchorX:L,anchorY:I,scale:w,rotate:x}}e.exports={plot:function(t,e,r,f,m,v){var w=e.xaxis,L=e.yaxis,I=t._fullLayout;m||(m={mode:I.barmode,norm:I.barmode,gap:I.bargap,groupgap:I.bargroupgap},p(&quot;bar&quot;,I));var P=a.makeTraceGroups(f,r,&quot;trace bars&quot;).each((function(r){var c=n.select(this),f=r[0].trace,p=&quot;waterfall&quot;===f.type,P=&quot;funnel&quot;===f.type,z=&quot;bar&quot;===f.type||P,O=0;p&amp;&amp;f.connector.visible&amp;&amp;&quot;between&quot;===f.connector.mode&amp;&amp;(O=f.connector.line.width/2);var D=&quot;h&quot;===f.orientation,R=A(m),F=a.ensureSingle(c,&quot;g&quot;,&quot;points&quot;),B=T(f),N=F.selectAll(&quot;g.point&quot;).data(a.identity,B);N.enter().append(&quot;g&quot;).classed(&quot;point&quot;,!0),N.exit().remove(),N.each((function(c,p){var T,A,P=n.select(this),F=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),n?[i,a]:[a,i]}(c,w,L,D),B=F[0][0],N=F[0][1],j=F[1][0],U=F[1][1],V=0==(D?N-B:U-j);if(V&amp;&amp;z&amp;&amp;g.getLineWidth(f,c)&amp;&amp;(V=!1),V||(V=!(i(B)&amp;&amp;i(N)&amp;&amp;i(j)&amp;&amp;i(U))),c.isBlank=V,V&amp;&amp;(D?N=B:U=j),O&amp;&amp;!V&amp;&amp;(D?(B-=k(B,N)*O,N+=k(B,N)*O):(j-=k(j,U)*O,U+=k(j,U)*O)),&quot;waterfall&quot;===f.type){if(!V){var q=f[c.dir].marker;T=q.line.width,A=q.color}}else T=g.getLineWidth(f,c),A=c.mc||f.marker.color;function H(t){var e=n.round(T/2%1,2);return 0===m.gap&amp;&amp;0===m.groupgap?n.round(Math.round(t)-e,2):t}if(!t._context.staticPlot){var G=s.opacity(A)&lt;1||T&gt;.01?H:function(t,e,r){return r&amp;&amp;t===e?t:Math.abs(t-e)&gt;=2?H(t):t&gt;e?Math.ceil(t):Math.floor(t)};B=G(B,N,D),N=G(N,B,D),j=G(j,U,!D),U=G(U,j,!D)}var Y=M(a.ensureSingle(P,&quot;path&quot;),I,m,v);if(Y.style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;d&quot;,isNaN((N-B)*(U-j))||V&amp;&amp;t._context.staticPlot?&quot;M0,0Z&quot;:&quot;M&quot;+B+&quot;,&quot;+j+&quot;V&quot;+U+&quot;H&quot;+N+&quot;V&quot;+j+&quot;Z&quot;).call(l.setClipUrl,e.layerClipId,t),!I.uniformtext.mode&amp;&amp;R){var W=l.makePointStyleFns(f);l.singlePointStyle(c,Y,f,W,t)}!function(t,e,r,n,i,s,c,f,p,m,v){var w,T=e.xaxis,A=e.yaxis,L=t._fullLayout;function I(e,r,n){return a.ensureSingle(e,&quot;text&quot;).text(r).attr({class:&quot;bartext bartext-&quot;+w,&quot;text-anchor&quot;:&quot;middle&quot;,&quot;data-notex&quot;:1}).call(l.font,n).call(o.convertToTspans,t)}var P=n[0].trace,z=&quot;h&quot;===P.orientation,O=function(t,e,r,n,i){var o,s=e[0].trace;o=s.texttemplate?function(t,e,r,n,i){var o=e[0].trace,s=a.castOption(o,r,&quot;texttemplate&quot;);if(!s)return&quot;&quot;;var l,c,f,h,p=&quot;waterfall&quot;===o.type,d=&quot;funnel&quot;===o.type;&quot;h&quot;===o.orientation?(l=&quot;y&quot;,c=i,f=&quot;x&quot;,h=n):(l=&quot;x&quot;,c=n,f=&quot;y&quot;,h=i);function g(t){return u(h,+t,!0).text}var m=e[r],v={};v.label=m.p,v.labelLabel=v[l+&quot;Label&quot;]=(y=m.p,u(c,y,!0).text);var y;var x=a.castOption(o,m.i,&quot;text&quot;);(0===x||x)&amp;&amp;(v.text=x);v.value=m.s,v.valueLabel=v[f+&quot;Label&quot;]=g(m.s);var _={};b(_,o,m.i),p&amp;&amp;(v.delta=+m.rawS||m.s,v.deltaLabel=g(v.delta),v.final=m.v,v.finalLabel=g(v.final),v.initial=v.final-v.delta,v.initialLabel=g(v.initial));d&amp;&amp;(v.value=m.s,v.valueLabel=g(v.value),v.percentInitial=m.begR,v.percentInitialLabel=a.formatPercent(m.begR),v.percentPrevious=m.difR,v.percentPreviousLabel=a.formatPercent(m.difR),v.percentTotal=m.sumR,v.percenTotalLabel=a.formatPercent(m.sumR));var w=a.castOption(o,m.i,&quot;customdata&quot;);w&amp;&amp;(v.customdata=w);return a.texttemplateString(s,v,t._d3locale,_,v,o._meta||{})}(t,e,r,n,i):s.textinfo?function(t,e,r,n){var i=t[0].trace,o=&quot;h&quot;===i.orientation,s=&quot;waterfall&quot;===i.type,l=&quot;funnel&quot;===i.type;function c(t){return u(o?r:n,+t,!0).text}var f,h=i.textinfo,p=t[e],d=h.split(&quot;+&quot;),g=[],m=function(t){return-1!==d.indexOf(t)};m(&quot;label&quot;)&amp;&amp;g.push((v=t[e].p,u(o?n:r,v,!0).text));var v;m(&quot;text&quot;)&amp;&amp;(0===(f=a.castOption(i,p.i,&quot;text&quot;))||f)&amp;&amp;g.push(f);if(s){var y=+p.rawS||p.s,x=p.v,b=x-y;m(&quot;initial&quot;)&amp;&amp;g.push(c(b)),m(&quot;delta&quot;)&amp;&amp;g.push(c(y)),m(&quot;final&quot;)&amp;&amp;g.push(c(x))}if(l){m(&quot;value&quot;)&amp;&amp;g.push(c(p.s));var _=0;m(&quot;percent initial&quot;)&amp;&amp;_++,m(&quot;percent previous&quot;)&amp;&amp;_++,m(&quot;percent total&quot;)&amp;&amp;_++;var w=_&gt;1;m(&quot;percent initial&quot;)&amp;&amp;(f=a.formatPercent(p.begR),w&amp;&amp;(f+=&quot; of initial&quot;),g.push(f)),m(&quot;percent previous&quot;)&amp;&amp;(f=a.formatPercent(p.difR),w&amp;&amp;(f+=&quot; of previous&quot;),g.push(f)),m(&quot;percent total&quot;)&amp;&amp;(f=a.formatPercent(p.sumR),w&amp;&amp;(f+=&quot; of total&quot;),g.push(f))}return g.join(&quot;&lt;br&gt;&quot;)}(e,r,n,i):g.getValue(s.text,r);return g.coerceString(y,o)}(L,n,i,T,A);w=function(t,e){var r=g.getValue(t.textposition,e);return g.coerceEnumerated(x,r)}(P,i);var D=&quot;stack&quot;===m.mode||&quot;relative&quot;===m.mode,R=n[i],F=!D||R._outmost;if(!O||&quot;none&quot;===w||(R.isBlank||s===c||f===p)&amp;&amp;(&quot;auto&quot;===w||&quot;inside&quot;===w))return void r.select(&quot;text&quot;).remove();var B=L.font,N=d.getBarColor(n[i],P),j=d.getInsideTextFont(P,i,B,N),U=d.getOutsideTextFont(P,i,B),V=r.datum();z?&quot;log&quot;===T.type&amp;&amp;V.s0&lt;=0&amp;&amp;(s=T.range[0]&lt;T.range[1]?0:T._length):&quot;log&quot;===A.type&amp;&amp;V.s0&lt;=0&amp;&amp;(f=A.range[0]&lt;A.range[1]?A._length:0);var q,H,G,Y,W,X=Math.abs(c-s)-2*_,Z=Math.abs(p-f)-2*_;&quot;outside&quot;===w&amp;&amp;(F||R.hasB||(w=&quot;inside&quot;));if(&quot;auto&quot;===w)if(F){w=&quot;inside&quot;,W=a.ensureUniformFontSize(t,j),q=I(r,O,W),H=l.bBox(q.node()),G=H.width,Y=H.height;var J=G&lt;=X&amp;&amp;Y&lt;=Z,K=G&lt;=Z&amp;&amp;Y&lt;=X,Q=z?X&gt;=G*(Z/Y):Z&gt;=Y*(X/G);G&gt;0&amp;&amp;Y&gt;0&amp;&amp;(J||K||Q)?w=&quot;inside&quot;:(w=&quot;outside&quot;,q.remove(),q=null)}else w=&quot;inside&quot;;if(!q){W=a.ensureUniformFontSize(t,&quot;outside&quot;===w?U:j);var $=(q=I(r,O,W)).attr(&quot;transform&quot;);if(q.attr(&quot;transform&quot;,&quot;&quot;),H=l.bBox(q.node()),G=H.width,Y=H.height,q.attr(&quot;transform&quot;,$),G&lt;=0||Y&lt;=0)return void q.remove()}var tt,et,rt=P.textangle;&quot;outside&quot;===w?(et=&quot;both&quot;===P.constraintext||&quot;outside&quot;===P.constraintext,tt=function(t,e,r,n,i,a){var o,s=!!a.isHorizontal,l=!!a.constrained,c=a.angle||0,u=i.width,f=i.height,h=Math.abs(e-t),p=Math.abs(n-r);o=s?p&gt;2*_?_:0:h&gt;2*_?_:0;var d=1;l&amp;&amp;(d=s?Math.min(1,p/f):Math.min(1,h/u));var g=S(c),m=E(i,g),v=(s?m.x:m.y)/2,y=(i.left+i.right)/2,x=(i.top+i.bottom)/2,b=(t+e)/2,w=(r+n)/2,T=0,M=0,A=s?k(e,t):k(r,n);s?(b=e-A*o,T=A*v):(w=n+A*o,M=-A*v);return{textX:y,textY:x,targetX:b,targetY:w,anchorX:T,anchorY:M,scale:d,rotate:g}}(s,c,f,p,H,{isHorizontal:z,constrained:et,angle:rt})):(et=&quot;both&quot;===P.constraintext||&quot;inside&quot;===P.constraintext,tt=C(s,c,f,p,H,{isHorizontal:z,constrained:et,angle:rt,anchor:P.insidetextanchor}));tt.fontSize=W.size,h(P.type,tt,L),R.transform=tt,M(q,L,m,v).attr(&quot;transform&quot;,a.getTextTransform(tt))}(t,e,P,r,p,B,N,j,U,m,v),e.layerClipId&amp;&amp;l.hideOutsideRangePoint(c,P.select(&quot;text&quot;),w,L,f.xcalendar,f.ycalendar)}));var j=!1===f.cliponaxis;l.setClipUrl(c,j?null:e.layerClipId,t)}));c.getComponentMethod(&quot;errorbars&quot;,&quot;plot&quot;)(t,P,e,m)},toMoveInsideBar:C}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../components/fx/helpers&quot;:679,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;./attributes&quot;:921,&quot;./constants&quot;:923,&quot;./helpers&quot;:927,&quot;./style&quot;:935,&quot;./uniform_text&quot;:937,d3:169,&quot;fast-isnumeric&quot;:241}],933:[function(t,e,r){&quot;use strict&quot;;function n(t,e,r,n,i){var a=e.c2p(n?t.s0:t.p0,!0),o=e.c2p(n?t.s1:t.p1,!0),s=r.c2p(n?t.p0:t.s0,!0),l=r.c2p(n?t.p1:t.s1,!0);return i?[(a+o)/2,(s+l)/2]:n?[o,(s+l)/2]:[(a+o)/2,l]}e.exports=function(t,e){var r,i=t.cd,a=t.xaxis,o=t.yaxis,s=i[0].trace,l=&quot;funnel&quot;===s.type,c=&quot;h&quot;===s.orientation,u=[];if(!1===e)for(r=0;r&lt;i.length;r++)i[r].selected=0;else for(r=0;r&lt;i.length;r++){var f=i[r],h=&quot;ct&quot;in f?f.ct:n(f,a,o,c,l);e.contains(h,!1,r,t)?(u.push({pointNumber:r,x:a.c2d(f.x),y:o.c2d(f.y)}),f.selected=1):f.selected=0}return u}},{}],934:[function(t,e,r){&quot;use strict&quot;;e.exports=a;var n=t(&quot;../../lib&quot;).distinctVals,i=t(&quot;../../constants/numerical&quot;).BADNUM;function a(t,e){this.traces=t,this.sepNegVal=e.sepNegVal,this.overlapNoMerge=e.overlapNoMerge;for(var r=1/0,a=[],o=0;o&lt;t.length;o++){for(var s=t[o],l=0;l&lt;s.length;l++){var c=s[l];c.p!==i&amp;&amp;a.push(c.p)}s[0]&amp;&amp;s[0].width1&amp;&amp;(r=Math.min(s[0].width1,r))}this.positions=a;var u=n(a,{unitMinDiff:e.unitMinDiff});this.distinctPositions=u.vals,1===u.vals.length&amp;&amp;r!==1/0?this.minDiff=r:this.minDiff=Math.min(u.minDiff,r),this.binWidth=this.minDiff,this.bins={}}a.prototype.put=function(t,e){var r=this.getLabel(t,e),n=this.bins[r]||0;return this.bins[r]=n+e,n},a.prototype.get=function(t,e){var r=this.getLabel(t,e);return this.bins[r]||0},a.prototype.getLabel=function(t,e){return(e&lt;0&amp;&amp;this.sepNegVal?&quot;v&quot;:&quot;^&quot;)+(this.overlapNoMerge?t:Math.round(t/this.binWidth))}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778}],935:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../registry&quot;),l=t(&quot;./uniform_text&quot;).resizeText,c=t(&quot;./attributes&quot;),u=c.textfont,f=c.insidetextfont,h=c.outsidetextfont,p=t(&quot;./helpers&quot;);function d(t,e,r){a.pointStyle(t.selectAll(&quot;path&quot;),e,r),g(t,e,r)}function g(t,e,r){t.selectAll(&quot;text&quot;).each((function(t){var i=n.select(this),s=o.ensureUniformFontSize(r,m(i,t,e,r));a.font(i,s)}))}function m(t,e,r,n){var i=n._fullLayout.font,a=r.textfont;if(t.classed(&quot;bartext-inside&quot;)){var o=_(e,r);a=y(r,e.i,i,o)}else t.classed(&quot;bartext-outside&quot;)&amp;&amp;(a=x(r,e.i,i));return a}function v(t,e,r){return b(u,t.textfont,e,r)}function y(t,e,r,n){var a=v(t,e,r);return(void 0===t._input.textfont||void 0===t._input.textfont.color||Array.isArray(t.textfont.color)&amp;&amp;void 0===t.textfont.color[e])&amp;&amp;(a={color:i.contrast(n),family:a.family,size:a.size}),b(f,t.insidetextfont,e,a)}function x(t,e,r){var n=v(t,e,r);return b(h,t.outsidetextfont,e,n)}function b(t,e,r,n){e=e||{};var i=p.getValue(e.family,r),a=p.getValue(e.size,r),o=p.getValue(e.color,r);return{family:p.coerceString(t.family,i,n.family),size:p.coerceNumber(t.size,a,n.size),color:p.coerceColor(t.color,o,n.color)}}function _(t,e){return&quot;waterfall&quot;===e.type?e[t.dir].marker.color:t.mc||e.marker.color}e.exports={style:function(t){var e=n.select(t).selectAll(&quot;g.barlayer&quot;).selectAll(&quot;g.trace&quot;);l(t,e,&quot;bar&quot;);var r=e.size(),i=t._fullLayout;e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})).each((function(t){(&quot;stack&quot;===i.barmode&amp;&amp;r&gt;1||0===i.bargap&amp;&amp;0===i.bargroupgap&amp;&amp;!t[0].trace.marker.line.width)&amp;&amp;n.select(this).attr(&quot;shape-rendering&quot;,&quot;crispEdges&quot;)})),e.selectAll(&quot;g.points&quot;).each((function(e){d(n.select(this),e[0].trace,t)})),s.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(e)},styleTextPoints:g,styleOnSelect:function(t,e,r){var i=e[0].trace;i.selectedpoints?function(t,e,r){a.selectedPointStyle(t.selectAll(&quot;path&quot;),e),function(t,e,r){t.each((function(t){var i,s=n.select(this);if(t.selected){i=o.ensureUniformFontSize(r,m(s,t,e,r));var l=e.selected.textfont&amp;&amp;e.selected.textfont.color;l&amp;&amp;(i.color=l),a.font(s,i)}else a.selectedTextStyle(s,e)}))}(t.selectAll(&quot;text&quot;),e,r)}(r,i,t):(d(r,i,t),s.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(r))},getInsideTextFont:y,getOutsideTextFont:x,getBarColor:_,resizeText:l}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:921,&quot;./helpers&quot;:927,&quot;./uniform_text&quot;:937,d3:169}],936:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;);e.exports=function(t,e,r,o,s){r(&quot;marker.color&quot;,o),i(t,&quot;marker&quot;)&amp;&amp;a(t,e,s,r,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),r(&quot;marker.line.color&quot;,n.defaultLine),i(t,&quot;marker.line&quot;)&amp;&amp;a(t,e,s,r,{prefix:&quot;marker.line.&quot;,cLetter:&quot;c&quot;}),r(&quot;marker.line.width&quot;),r(&quot;marker.opacity&quot;),r(&quot;selected.marker.color&quot;),r(&quot;unselected.marker.color&quot;)}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654}],937:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;);function a(t){return&quot;_&quot;+t+&quot;Text_minsize&quot;}e.exports={recordMinTextSize:function(t,e,r){if(r.uniformtext.mode){var n=a(t),i=r.uniformtext.minsize,o=e.scale*e.fontSize;e.hide=o&lt;i,r[n]=r[n]||1/0,e.hide||(r[n]=Math.min(r[n],Math.max(o,i)))}},clearMinTextSize:function(t,e){e[a(t)]=void 0},resizeText:function(t,e,r){var a=t._fullLayout,o=a[&quot;_&quot;+r+&quot;Text_minsize&quot;];if(o){var s,l=&quot;hide&quot;===a.uniformtext.mode;switch(r){case&quot;funnelarea&quot;:case&quot;pie&quot;:case&quot;sunburst&quot;:s=&quot;g.slice&quot;;break;case&quot;treemap&quot;:s=&quot;g.slice, g.pathbar&quot;;break;default:s=&quot;g.points &gt; g.point&quot;}e.selectAll(s).each((function(t){var e=t.transform;e&amp;&amp;(e.scale=l&amp;&amp;e.hide?0:o/e.fontSize,n.select(this).select(&quot;text&quot;).attr(&quot;transform&quot;,i.getTextTransform(e)))}))}}}},{&quot;../../lib&quot;:778,d3:169}],938:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../scatterpolar/attributes&quot;),o=t(&quot;../bar/attributes&quot;);e.exports={r:a.r,theta:a.theta,r0:a.r0,dr:a.dr,theta0:a.theta0,dtheta:a.dtheta,thetaunit:a.thetaunit,base:i({},o.base,{}),offset:i({},o.offset,{}),width:i({},o.width,{}),text:i({},o.text,{}),hovertext:i({},o.hovertext,{}),marker:o.marker,hoverinfo:a.hoverinfo,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatterpolar/attributes&quot;:1261}],939:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,i=t(&quot;../../components/colorscale/calc&quot;),a=t(&quot;../bar/arrays_to_calcdata&quot;),o=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions,s=t(&quot;../scatter/calc_selection&quot;),l=t(&quot;../../registry&quot;).traceIs,c=t(&quot;../../lib&quot;).extendFlat;e.exports={calc:function(t,e){for(var r=t._fullLayout,o=e.subplot,l=r[o].radialaxis,c=r[o].angularaxis,u=l.makeCalcdata(e,&quot;r&quot;),f=c.makeCalcdata(e,&quot;theta&quot;),h=e._length,p=new Array(h),d=u,g=f,m=0;m&lt;h;m++)p[m]={p:g[m],s:d[m]};function v(t){var r=e[t];void 0!==r&amp;&amp;(e[&quot;_&quot;+t]=Array.isArray(r)?c.makeCalcdata(e,t):c.d2c(r,e.thetaunit))}return&quot;linear&quot;===c.type&amp;&amp;(v(&quot;width&quot;),v(&quot;offset&quot;)),n(e,&quot;marker&quot;)&amp;&amp;i(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),n(e,&quot;marker.line&quot;)&amp;&amp;i(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}),a(p,e),s(p,e),p},crossTraceCalc:function(t,e,r){for(var n=t.calcdata,i=[],a=0;a&lt;n.length;a++){var s=n[a],u=s[0].trace;!0===u.visible&amp;&amp;l(u,&quot;bar&quot;)&amp;&amp;u.subplot===r&amp;&amp;i.push(s)}var f=c({},e.radialaxis,{_id:&quot;x&quot;}),h=e.angularaxis;o(t,h,f,i,{mode:e.barmode,norm:e.barnorm,gap:e.bargap,groupgap:e.bargroupgap})}}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../bar/arrays_to_calcdata&quot;:920,&quot;../bar/cross_trace_calc&quot;:924,&quot;../scatter/calc_selection&quot;:1189}],940:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatterpolar/defaults&quot;).handleRThetaDefaults,a=t(&quot;../bar/style_defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,s,l)?(l(&quot;thetaunit&quot;),l(&quot;base&quot;),l(&quot;offset&quot;),l(&quot;width&quot;),l(&quot;text&quot;),l(&quot;hovertext&quot;),l(&quot;hovertemplate&quot;),a(t,e,l,r,s),n.coerceSelectionMarkerOpacity(e,l)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../bar/style_defaults&quot;:936,&quot;../scatterpolar/defaults&quot;:1263,&quot;./attributes&quot;:938}],941:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../bar/hover&quot;).getTraceColor,o=i.fillText,s=t(&quot;../scatterpolar/hover&quot;).makeHoverPointText,l=t(&quot;../../plots/polar/helpers&quot;).isPtInsidePolygon;e.exports=function(t,e,r){var c=t.cd,u=c[0].trace,f=t.subplot,h=f.radialAxis,p=f.angularAxis,d=f.vangles,g=d?l:i.isPtInsideSector,m=t.maxHoverDistance,v=p._period||2*Math.PI,y=Math.abs(h.g2p(Math.sqrt(e*e+r*r))),x=Math.atan2(r,e);h.range[0]&gt;h.range[1]&amp;&amp;(x+=Math.PI);if(n.getClosest(c,(function(t){return g(y,x,[t.rp0,t.rp1],[t.thetag0,t.thetag1],d)?m+Math.min(1,Math.abs(t.thetag1-t.thetag0)/v)-1+(t.rp1-y)/(t.rp1-t.rp0)-1:1/0}),t),!1!==t.index){var b=c[t.index];t.x0=t.x1=b.ct[0],t.y0=t.y1=b.ct[1];var _=i.extendFlat({},b,{r:b.s,theta:b.p});return o(b,u,t),s(_,u,f,t),t.hovertemplate=u.hovertemplate,t.color=a(u,b),t.xLabelVal=t.yLabelVal=void 0,b.s&lt;0&amp;&amp;(t.idealAlign=&quot;left&quot;),[t]}}},{&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../plots/polar/helpers&quot;:893,&quot;../bar/hover&quot;:928,&quot;../scatterpolar/hover&quot;:1265}],942:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;barpolar&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;polar&quot;,&quot;bar&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;../scatterpolar/format_labels&quot;),style:t(&quot;../bar/style&quot;).style,styleOnSelect:t(&quot;../bar/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../bar/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:894,&quot;../bar/select&quot;:933,&quot;../bar/style&quot;:935,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatterpolar/format_labels&quot;:1264,&quot;./attributes&quot;:938,&quot;./calc&quot;:939,&quot;./defaults&quot;:940,&quot;./hover&quot;:941,&quot;./layout_attributes&quot;:943,&quot;./layout_defaults&quot;:944,&quot;./plot&quot;:945}],943:[function(t,e,r){&quot;use strict&quot;;e.exports={barmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;overlay&quot;],dflt:&quot;stack&quot;,editType:&quot;calc&quot;},bargap:{valType:&quot;number&quot;,dflt:.1,min:0,max:1,editType:&quot;calc&quot;}}},{}],944:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a,o={};function s(r,o){return n.coerce(t[a]||{},e[a],i,r,o)}for(var l=0;l&lt;r.length;l++){var c=r[l];&quot;barpolar&quot;===c.type&amp;&amp;!0===c.visible&amp;&amp;(o[a=c.subplot]||(s(&quot;barmode&quot;),s(&quot;bargap&quot;),o[a]=1))}}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:943}],945:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../plots/polar/helpers&quot;);e.exports=function(t,e,r){var l=e.xaxis,c=e.yaxis,u=e.radialAxis,f=e.angularAxis,h=function(t){var e=t.cxx,r=t.cyy;if(t.vangles)return function(n,i,o,l){var c,u;a.angleDelta(o,l)&gt;0?(c=o,u=l):(c=l,u=o);var f=[s.findEnclosingVertexAngles(c,t.vangles)[0],(c+u)/2,s.findEnclosingVertexAngles(u,t.vangles)[1]];return s.pathPolygonAnnulus(n,i,c,u,f,e,r)};return function(t,n,i,o){return a.pathAnnulus(t,n,i,o,e,r)}}(e),p=e.layers.frontplot.select(&quot;g.barlayer&quot;);a.makeTraceGroups(p,r,&quot;trace bars&quot;).each((function(){var r=n.select(this),s=a.ensureSingle(r,&quot;g&quot;,&quot;points&quot;).selectAll(&quot;g.point&quot;).data(a.identity);s.enter().append(&quot;g&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).style(&quot;stroke-miterlimit&quot;,2).classed(&quot;point&quot;,!0),s.exit().remove(),s.each((function(t){var e,r=n.select(this),o=t.rp0=u.c2p(t.s0),s=t.rp1=u.c2p(t.s1),p=t.thetag0=f.c2g(t.p0),d=t.thetag1=f.c2g(t.p1);if(i(o)&amp;&amp;i(s)&amp;&amp;i(p)&amp;&amp;i(d)&amp;&amp;o!==s&amp;&amp;p!==d){var g=u.c2g(t.s1),m=(p+d)/2;t.ct=[l.c2p(g*Math.cos(m)),c.c2p(g*Math.sin(m))],e=h(o,s,p,d)}else e=&quot;M0,0Z&quot;;a.ensureSingle(r,&quot;path&quot;).attr(&quot;d&quot;,e)})),o.setClipUrl(r,e._hasClipOnAxisFalse?e.clipIds.forTraces:null,t)}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../plots/polar/helpers&quot;:893,d3:169,&quot;fast-isnumeric&quot;:241}],946:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../bar/attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../lib/extend&quot;).extendFlat,l=n.marker,c=l.line;e.exports={y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},x0:{valType:&quot;any&quot;,editType:&quot;calc+clearAxisTypes&quot;},y0:{valType:&quot;any&quot;,editType:&quot;calc+clearAxisTypes&quot;},dx:{valType:&quot;number&quot;,editType:&quot;calc&quot;},dy:{valType:&quot;number&quot;,editType:&quot;calc&quot;},xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,name:{valType:&quot;string&quot;,editType:&quot;calc+clearAxisTypes&quot;},q1:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},median:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},q3:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},lowerfence:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},upperfence:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},notched:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},notchwidth:{valType:&quot;number&quot;,min:0,max:.5,dflt:.25,editType:&quot;calc&quot;},notchspan:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},boxpoints:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;outliers&quot;,&quot;suspectedoutliers&quot;,!1],editType:&quot;calc&quot;},jitter:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},pointpos:{valType:&quot;number&quot;,min:-2,max:2,editType:&quot;calc&quot;},boxmean:{valType:&quot;enumerated&quot;,values:[!0,&quot;sd&quot;,!1],editType:&quot;calc&quot;},mean:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sd:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc+clearAxisTypes&quot;},quartilemethod:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;exclusive&quot;,&quot;inclusive&quot;],dflt:&quot;linear&quot;,editType:&quot;calc&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},marker:{outliercolor:{valType:&quot;color&quot;,dflt:&quot;rgba(0, 0, 0, 0)&quot;,editType:&quot;style&quot;},symbol:s({},l.symbol,{arrayOk:!1,editType:&quot;plot&quot;}),opacity:s({},l.opacity,{arrayOk:!1,dflt:1,editType:&quot;style&quot;}),size:s({},l.size,{arrayOk:!1,editType:&quot;calc&quot;}),color:s({},l.color,{arrayOk:!1,editType:&quot;style&quot;}),line:{color:s({},c.color,{arrayOk:!1,dflt:a.defaultLine,editType:&quot;style&quot;}),width:s({},c.width,{arrayOk:!1,dflt:0,editType:&quot;style&quot;}),outliercolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},outlierwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;plot&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},editType:&quot;plot&quot;},fillcolor:n.fillcolor,whiskerwidth:{valType:&quot;number&quot;,min:0,max:1,dflt:.5,editType:&quot;calc&quot;},offsetgroup:i.offsetgroup,alignmentgroup:i.alignmentgroup,selected:{marker:n.selected.marker,editType:&quot;style&quot;},unselected:{marker:n.unselected.marker,editType:&quot;style&quot;},text:s({},n.text,{}),hovertext:s({},n.hovertext,{}),hovertemplate:o({}),hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;boxes&quot;,&quot;points&quot;],dflt:&quot;boxes+points&quot;,editType:&quot;style&quot;}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib/extend&quot;:768,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatter/attributes&quot;:1187}],947:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/cartesian/align_period&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=o._;e.exports=function(t,e){var r,c,y,x,b,_,w,T=t._fullLayout,k=i.getFromId(t,e.xaxis||&quot;x&quot;),M=i.getFromId(t,e.yaxis||&quot;y&quot;),A=[],S=&quot;violin&quot;===e.type?&quot;_numViolins&quot;:&quot;_numBoxes&quot;;&quot;h&quot;===e.orientation?(y=k,x=&quot;x&quot;,b=M,_=&quot;y&quot;,w=!!e.yperiodalignment):(y=M,x=&quot;y&quot;,b=k,_=&quot;x&quot;,w=!!e.xperiodalignment);var E,C,L,I,P,z,O=function(t,e,r,i){var s,l=e+&quot;0&quot;in t,c=&quot;d&quot;+e in t;if(e in t||l&amp;&amp;c){var u=r.makeCalcdata(t,e);return[a(t,r,e,u),u]}s=l?t[e+&quot;0&quot;]:&quot;name&quot;in t&amp;&amp;(&quot;category&quot;===r.type||n(t.name)&amp;&amp;-1!==[&quot;linear&quot;,&quot;log&quot;].indexOf(r.type)||o.isDateTime(t.name)&amp;&amp;&quot;date&quot;===r.type)?t.name:i;for(var f=&quot;multicategory&quot;===r.type?r.r2c_just_indices(s):r.d2c(s,0,t[e+&quot;calendar&quot;]),h=t._length,p=new Array(h),d=0;d&lt;h;d++)p[d]=f;return[p]}(e,_,b,T[S]),D=O[0],R=O[1],F=o.distinctVals(D),B=F.vals,N=F.minDiff/2,j=&quot;all&quot;===(e.boxpoints||e.points)?o.identity:function(t){return t.v&lt;E.lf||t.v&gt;E.uf};if(e._hasPreCompStats){var U=e[x],V=function(t){return y.d2c((e[t]||[])[r])},q=1/0,H=-1/0;for(r=0;r&lt;e._length;r++){var G=D[r];if(n(G)){if((E={}).pos=E[_]=G,w&amp;&amp;R&amp;&amp;(E.orig_p=R[r]),E.q1=V(&quot;q1&quot;),E.med=V(&quot;median&quot;),E.q3=V(&quot;q3&quot;),C=[],U&amp;&amp;o.isArrayOrTypedArray(U[r]))for(c=0;c&lt;U[r].length;c++)(z=y.d2c(U[r][c]))!==s&amp;&amp;(u(P={v:z,i:[r,c]},e,[r,c]),C.push(P));if(E.pts=C.sort(f),I=(L=E[x]=C.map(h)).length,E.med!==s&amp;&amp;E.q1!==s&amp;&amp;E.q3!==s&amp;&amp;E.med&gt;=E.q1&amp;&amp;E.q3&gt;=E.med){var Y=V(&quot;lowerfence&quot;);E.lf=Y!==s&amp;&amp;Y&lt;=E.q1?Y:p(E,L,I);var W=V(&quot;upperfence&quot;);E.uf=W!==s&amp;&amp;W&gt;=E.q3?W:d(E,L,I);var X=V(&quot;mean&quot;);E.mean=X!==s?X:I?o.mean(L,I):(E.q1+E.q3)/2;var Z=V(&quot;sd&quot;);E.sd=X!==s&amp;&amp;Z&gt;=0?Z:I?o.stdev(L,I,E.mean):E.q3-E.q1,E.lo=g(E),E.uo=m(E);var J=V(&quot;notchspan&quot;);J=J!==s&amp;&amp;J&gt;0?J:v(E,I),E.ln=E.med-J,E.un=E.med+J;var K=E.lf,Q=E.uf;e.boxpoints&amp;&amp;L.length&amp;&amp;(K=Math.min(K,L[0]),Q=Math.max(Q,L[I-1])),e.notched&amp;&amp;(K=Math.min(K,E.ln),Q=Math.max(Q,E.un)),E.min=K,E.max=Q}else{var $;o.warn([&quot;Invalid input - make sure that q1 &lt;= median &lt;= q3&quot;,&quot;q1 = &quot;+E.q1,&quot;median = &quot;+E.med,&quot;q3 = &quot;+E.q3].join(&quot;\n&quot;)),$=E.med!==s?E.med:E.q1!==s?E.q3!==s?(E.q1+E.q3)/2:E.q1:E.q3!==s?E.q3:0,E.med=$,E.q1=E.q3=$,E.lf=E.uf=$,E.mean=E.sd=$,E.ln=E.un=$,E.min=E.max=$}q=Math.min(q,E.min),H=Math.max(H,E.max),E.pts2=C.filter(j),A.push(E)}}e._extremes[y._id]=i.findExtremes(y,[q,H],{padded:!0})}else{var tt=y.makeCalcdata(e,x),et=function(t,e){for(var r=t.length,n=new Array(r+1),i=0;i&lt;r;i++)n[i]=t[i]-e;return n[r]=t[r-1]+e,n}(B,N),rt=B.length,nt=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=[];return e}(rt);for(r=0;r&lt;e._length;r++)if(z=tt[r],n(z)){var it=o.findBin(D[r],et);it&gt;=0&amp;&amp;it&lt;rt&amp;&amp;(u(P={v:z,i:r},e,r),nt[it].push(P))}var at=1/0,ot=-1/0,st=e.quartilemethod,lt=&quot;exclusive&quot;===st,ct=&quot;inclusive&quot;===st;for(r=0;r&lt;rt;r++)if(nt[r].length&gt;0){var ut,ft;if((E={}).pos=E[_]=B[r],C=E.pts=nt[r].sort(f),I=(L=E[x]=C.map(h)).length,E.min=L[0],E.max=L[I-1],E.mean=o.mean(L,I),E.sd=o.stdev(L,I,E.mean),E.med=o.interp(L,.5),I%2&amp;&amp;(lt||ct))lt?(ut=L.slice(0,I/2),ft=L.slice(I/2+1)):ct&amp;&amp;(ut=L.slice(0,I/2+1),ft=L.slice(I/2)),E.q1=o.interp(ut,.5),E.q3=o.interp(ft,.5);else E.q1=o.interp(L,.25),E.q3=o.interp(L,.75);E.lf=p(E,L,I),E.uf=d(E,L,I),E.lo=g(E),E.uo=m(E);var ht=v(E,I);E.ln=E.med-ht,E.un=E.med+ht,at=Math.min(at,E.ln),ot=Math.max(ot,E.un),E.pts2=C.filter(j),A.push(E)}e._extremes[y._id]=i.findExtremes(y,e.notched?tt.concat([at,ot]):tt,{padded:!0})}return function(t,e){if(o.isArrayOrTypedArray(e.selectedpoints))for(var r=0;r&lt;t.length;r++){for(var n=t[r].pts||[],i={},a=0;a&lt;n.length;a++)i[n[a].i]=a;o.tagSelected(n,e,i)}}(A,e),A.length&gt;0?(A[0].t={num:T[S],dPos:N,posLetter:_,valLetter:x,labels:{med:l(t,&quot;median:&quot;),min:l(t,&quot;min:&quot;),q1:l(t,&quot;q1:&quot;),q3:l(t,&quot;q3:&quot;),max:l(t,&quot;max:&quot;),mean:&quot;sd&quot;===e.boxmean?l(t,&quot;mean \xb1 \u03c3:&quot;):l(t,&quot;mean:&quot;),lf:l(t,&quot;lower fence:&quot;),uf:l(t,&quot;upper fence:&quot;)}},T[S]++,A):[{t:{empty:!0}}]};var c={text:&quot;tx&quot;,hovertext:&quot;htx&quot;};function u(t,e,r){for(var n in c)o.isArrayOrTypedArray(e[n])&amp;&amp;(Array.isArray(r)?o.isArrayOrTypedArray(e[n][r[0]])&amp;&amp;(t[c[n]]=e[n][r[0]][r[1]]):t[c[n]]=e[n][r])}function f(t,e){return t.v-e.v}function h(t){return t.v}function p(t,e,r){return 0===r?t.q1:Math.min(t.q1,e[Math.min(o.findBin(2.5*t.q1-1.5*t.q3,e,!0)+1,r-1)])}function d(t,e,r){return 0===r?t.q3:Math.max(t.q3,e[Math.max(o.findBin(2.5*t.q3-1.5*t.q1,e),0)])}function g(t){return 4*t.q1-3*t.q3}function m(t){return 4*t.q3-3*t.q1}function v(t,e){return 0===e?0:1.57*(t.q3-t.q1)/Math.sqrt(e)}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;fast-isnumeric&quot;:241}],948:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,o=[&quot;v&quot;,&quot;h&quot;];function s(t,e,r,o){var s,l,c,u=e.calcdata,f=e._fullLayout,h=o._id,p=h.charAt(0),d=[],g=0;for(s=0;s&lt;r.length;s++)for(c=u[r[s]],l=0;l&lt;c.length;l++)d.push(o.c2l(c[l].pos,!0)),g+=(c[l].pts2||[]).length;if(d.length){var m=i.distinctVals(d,{unitMinDiff:&quot;category&quot;===o.type||&quot;multicategory&quot;===o.type}),v=m.minDiff/2;n.minDtick(o,m.minDiff,m.vals[0],!0);var y=f[&quot;violin&quot;===t?&quot;_numViolins&quot;:&quot;_numBoxes&quot;],x=&quot;group&quot;===f[t+&quot;mode&quot;]&amp;&amp;y&gt;1,b=1-f[t+&quot;gap&quot;],_=1-f[t+&quot;groupgap&quot;];for(s=0;s&lt;r.length;s++){var w,T,k,M,A,S,E=(c=u[r[s]])[0].trace,C=c[0].t,L=E.width,I=E.side;if(L)w=T=M=L/2,k=0;else if(w=v,x){var P=a(f,o._id)+E.orientation,z=(f._alignmentOpts[P]||{})[E.alignmentgroup]||{},O=Object.keys(z.offsetGroups||{}).length,D=O||y;T=w*b*_/D,k=2*w*(((O?E._offsetIndex:C.num)+.5)/D-.5)*b,M=w*b/D}else T=w*b*_,k=0,M=w;C.dPos=w,C.bPos=k,C.bdPos=T,C.wHover=M;var R,F,B,N,j,U,V=k+T,q=Boolean(L);if(&quot;positive&quot;===I?(A=w*(L?1:.5),R=V,S=R=k):&quot;negative&quot;===I?(A=R=k,S=w*(L?1:.5),F=V):(A=S=w,R=F=V),(E.boxpoints||E.points)&amp;&amp;g&gt;0){var H=E.pointpos,G=E.jitter,Y=E.marker.size/2,W=0;H+G&gt;=0&amp;&amp;((W=V*(H+G))&gt;A?(q=!0,j=Y,B=W):W&gt;R&amp;&amp;(j=Y,B=A)),W&lt;=A&amp;&amp;(B=A);var X=0;H-G&lt;=0&amp;&amp;((X=-V*(H-G))&gt;S?(q=!0,U=Y,N=X):X&gt;F&amp;&amp;(U=Y,N=S)),X&lt;=S&amp;&amp;(N=S)}else B=A,N=S;var Z=new Array(c.length);for(l=0;l&lt;c.length;l++)Z[l]=c[l].pos;E._extremes[h]=n.findExtremes(o,Z,{padded:q,vpadminus:N,vpadplus:B,vpadLinearized:!0,ppadminus:{x:U,y:j}[p],ppadplus:{x:j,y:U}[p]})}}}e.exports={crossTraceCalc:function(t,e){for(var r=t.calcdata,n=e.xaxis,i=e.yaxis,a=0;a&lt;o.length;a++){for(var l=o[a],c=&quot;h&quot;===l?i:n,u=[],f=0;f&lt;r.length;f++){var h=r[f],p=h[0].t,d=h[0].trace;!0!==d.visible||&quot;box&quot;!==d.type&amp;&amp;&quot;candlestick&quot;!==d.type||p.empty||(d.orientation||&quot;v&quot;)!==l||d.xaxis!==n._id||d.yaxis!==i._id||u.push(f)}s(&quot;box&quot;,t,u,c)}},setPositionOffset:s}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/constraints&quot;:835}],949:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../scatter/period_defaults&quot;),s=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,l=t(&quot;../../plots/cartesian/axis_autotype&quot;),c=t(&quot;./attributes&quot;);function u(t,e,r,a){function o(t){var e=0;return t&amp;&amp;t.length&amp;&amp;(e+=1,n.isArrayOrTypedArray(t[0])&amp;&amp;t[0].length&amp;&amp;(e+=1)),e}function s(e){return n.validate(t[e],c[e])}var u,f=r(&quot;y&quot;),h=r(&quot;x&quot;);if(&quot;box&quot;===e.type){var p=r(&quot;q1&quot;),d=r(&quot;median&quot;),g=r(&quot;q3&quot;);e._hasPreCompStats=p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length&amp;&amp;g&amp;&amp;g.length,u=Math.min(n.minRowLength(p),n.minRowLength(d),n.minRowLength(g))}var m,v,y=o(f),x=o(h),b=y&amp;&amp;n.minRowLength(f),_=x&amp;&amp;n.minRowLength(h),w=a.calendar,T={autotypenumbers:a.autotypenumbers};if(e._hasPreCompStats)switch(String(x)+String(y)){case&quot;00&quot;:var k=s(&quot;x0&quot;)||s(&quot;dx&quot;);m=(s(&quot;y0&quot;)||s(&quot;dy&quot;))&amp;&amp;!k?&quot;h&quot;:&quot;v&quot;,v=u;break;case&quot;10&quot;:m=&quot;v&quot;,v=Math.min(u,_);break;case&quot;20&quot;:m=&quot;h&quot;,v=Math.min(u,h.length);break;case&quot;01&quot;:m=&quot;h&quot;,v=Math.min(u,b);break;case&quot;02&quot;:m=&quot;v&quot;,v=Math.min(u,f.length);break;case&quot;12&quot;:m=&quot;v&quot;,v=Math.min(u,_,f.length);break;case&quot;21&quot;:m=&quot;h&quot;,v=Math.min(u,h.length,b);break;case&quot;11&quot;:v=0;break;case&quot;22&quot;:var M,A=!1;for(M=0;M&lt;h.length;M++)if(&quot;category&quot;===l(h[M],w,T)){A=!0;break}if(A)m=&quot;v&quot;,v=Math.min(u,_,f.length);else{for(M=0;M&lt;f.length;M++)if(&quot;category&quot;===l(f[M],w,T)){A=!0;break}A?(m=&quot;h&quot;,v=Math.min(u,h.length,b)):(m=&quot;v&quot;,v=Math.min(u,_,f.length))}}else y&gt;0?(m=&quot;v&quot;,v=x&gt;0?Math.min(_,b):Math.min(b)):x&gt;0?(m=&quot;h&quot;,v=Math.min(_)):v=0;if(v){e._length=v;var S=r(&quot;orientation&quot;,m);e._hasPreCompStats?&quot;v&quot;===S&amp;&amp;0===x?(r(&quot;x0&quot;,0),r(&quot;dx&quot;,1)):&quot;h&quot;===S&amp;&amp;0===y&amp;&amp;(r(&quot;y0&quot;,0),r(&quot;dy&quot;,1)):&quot;v&quot;===S&amp;&amp;0===x?r(&quot;x0&quot;):&quot;h&quot;===S&amp;&amp;0===y&amp;&amp;r(&quot;y0&quot;),i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],a)}else e.visible=!1}function f(t,e,r,i){var a=i.prefix,o=n.coerce2(t,e,c,&quot;marker.outliercolor&quot;),s=r(&quot;marker.line.outliercolor&quot;),l=&quot;outliers&quot;;e._hasPreCompStats?l=&quot;all&quot;:(o||s)&amp;&amp;(l=&quot;suspectedoutliers&quot;);var u=r(a+&quot;points&quot;,l);u?(r(&quot;jitter&quot;,&quot;all&quot;===u?.3:0),r(&quot;pointpos&quot;,&quot;all&quot;===u?-1.5:0),r(&quot;marker.symbol&quot;),r(&quot;marker.opacity&quot;),r(&quot;marker.size&quot;),r(&quot;marker.color&quot;,e.line.color),r(&quot;marker.line.color&quot;),r(&quot;marker.line.width&quot;),&quot;suspectedoutliers&quot;===u&amp;&amp;(r(&quot;marker.line.outliercolor&quot;,e.marker.color),r(&quot;marker.line.outlierwidth&quot;)),r(&quot;selected.marker.color&quot;),r(&quot;unselected.marker.color&quot;),r(&quot;selected.marker.size&quot;),r(&quot;unselected.marker.size&quot;),r(&quot;text&quot;),r(&quot;hovertext&quot;)):delete e.marker;var f=r(&quot;hoveron&quot;);&quot;all&quot;!==f&amp;&amp;-1===f.indexOf(&quot;points&quot;)||r(&quot;hovertemplate&quot;),n.coerceSelectionMarkerOpacity(e,r)}e.exports={supplyDefaults:function(t,e,r,i){function s(r,i){return n.coerce(t,e,c,r,i)}if(u(t,e,s,i),!1!==e.visible){o(t,e,i,s);var l=e._hasPreCompStats;l&amp;&amp;(s(&quot;lowerfence&quot;),s(&quot;upperfence&quot;)),s(&quot;line.color&quot;,(t.marker||{}).color||r),s(&quot;line.width&quot;),s(&quot;fillcolor&quot;,a.addOpacity(e.line.color,.5));var h=!1;if(l){var p=s(&quot;mean&quot;),d=s(&quot;sd&quot;);p&amp;&amp;p.length&amp;&amp;(h=!0,d&amp;&amp;d.length&amp;&amp;(h=&quot;sd&quot;))}s(&quot;boxmean&quot;,h),s(&quot;whiskerwidth&quot;),s(&quot;width&quot;),s(&quot;quartilemethod&quot;);var g=!1;if(l){var m=s(&quot;notchspan&quot;);m&amp;&amp;m.length&amp;&amp;(g=!0)}else n.validate(t.notchwidth,c.notchwidth)&amp;&amp;(g=!0);s(&quot;notched&quot;,g)&amp;&amp;s(&quot;notchwidth&quot;),f(t,e,s,{prefix:&quot;box&quot;})}},crossTraceDefaults:function(t,e){var r,i;function a(t){return n.coerce(i._input,i,c,t)}for(var o=0;o&lt;t.length;o++){var l=(i=t[o]).type;&quot;box&quot;!==l&amp;&amp;&quot;violin&quot;!==l||(r=i._input,&quot;group&quot;===e[l+&quot;mode&quot;]&amp;&amp;s(r,i,e,a))}},handleSampleDefaults:u,handlePointsDefaults:f}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_autotype&quot;:829,&quot;../../registry&quot;:911,&quot;../bar/defaults&quot;:925,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:946}],950:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return e.hoverOnBox&amp;&amp;(t.hoverOnBox=e.hoverOnBox),&quot;xVal&quot;in e&amp;&amp;(t.x=e.xVal),&quot;yVal&quot;in e&amp;&amp;(t.y=e.yVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],951:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=i.fillText;function l(t,e,r,s){var l,c,u,f,h,p,d,g,m,v,y,x,b,_,w=t.cd,T=t.xa,k=t.ya,M=w[0].trace,A=w[0].t,S=&quot;violin&quot;===M.type,E=[],C=A.bdPos,L=A.wHover,I=function(t){return u.c2l(t.pos)+A.bPos-u.c2l(p)};S&amp;&amp;&quot;both&quot;!==M.side?(&quot;positive&quot;===M.side&amp;&amp;(m=function(t){var e=I(t);return a.inbox(e,e+L,v)},x=C,b=0),&quot;negative&quot;===M.side&amp;&amp;(m=function(t){var e=I(t);return a.inbox(e-L,e,v)},x=0,b=C)):(m=function(t){var e=I(t);return a.inbox(e-L,e+L,v)},x=b=C),_=S?function(t){return a.inbox(t.span[0]-h,t.span[1]-h,v)}:function(t){return a.inbox(t.min-h,t.max-h,v)},&quot;h&quot;===M.orientation?(h=e,p=r,d=_,g=m,l=&quot;y&quot;,u=k,c=&quot;x&quot;,f=T):(h=r,p=e,d=m,g=_,l=&quot;x&quot;,u=T,c=&quot;y&quot;,f=k);var P=Math.min(1,C/Math.abs(u.r2c(u.range[1])-u.r2c(u.range[0])));function z(t){return(d(t)+g(t))/2}v=t.maxHoverDistance-P,y=t.maxSpikeDistance-P;var O=a.getDistanceFunction(s,d,g,z);if(a.getClosest(w,O,t),!1===t.index)return[];var D=w[t.index],R=M.line.color,F=(M.marker||{}).color;o.opacity(R)&amp;&amp;M.line.width?t.color=R:o.opacity(F)&amp;&amp;M.boxpoints?t.color=F:t.color=M.fillcolor,t[l+&quot;0&quot;]=u.c2p(D.pos+A.bPos-b,!0),t[l+&quot;1&quot;]=u.c2p(D.pos+A.bPos+x,!0),t[l+&quot;LabelVal&quot;]=void 0!==D.orig_p?D.orig_p:D.pos;var B=l+&quot;Spike&quot;;t.spikeDistance=z(D)*y/v,t[B]=u.c2p(D.pos,!0);var N={},j=[&quot;med&quot;,&quot;q1&quot;,&quot;q3&quot;,&quot;min&quot;,&quot;max&quot;];(M.boxmean||(M.meanline||{}).visible)&amp;&amp;j.push(&quot;mean&quot;),(M.boxpoints||M.points)&amp;&amp;j.push(&quot;lf&quot;,&quot;uf&quot;);for(var U=0;U&lt;j.length;U++){var V=j[U];if(V in D&amp;&amp;!(D[V]in N)){N[D[V]]=!0;var q=D[V],H=f.c2p(q,!0),G=i.extendFlat({},t);G.attr=V,G[c+&quot;0&quot;]=G[c+&quot;1&quot;]=H,G[c+&quot;LabelVal&quot;]=q,G[c+&quot;Label&quot;]=(A.labels?A.labels[V]+&quot; &quot;:&quot;&quot;)+n.hoverLabelText(f,q),G.hoverOnBox=!0,&quot;mean&quot;===V&amp;&amp;&quot;sd&quot;in D&amp;&amp;&quot;sd&quot;===M.boxmean&amp;&amp;(G[c+&quot;err&quot;]=D.sd),t.name=&quot;&quot;,t.spikeDistance=void 0,t[B]=void 0,G.hovertemplate=!1,E.push(G)}}return E}function c(t,e,r){for(var n,o,l,c=t.cd,u=t.xa,f=t.ya,h=c[0].trace,p=u.c2p(e),d=f.c2p(r),g=a.quadrature((function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(u.c2p(t.x)-p)-e,1-3/e)}),(function(t){var e=Math.max(3,t.mrc||0);return Math.max(Math.abs(f.c2p(t.y)-d)-e,1-3/e)})),m=!1,v=0;v&lt;c.length;v++){o=c[v];for(var y=0;y&lt;(o.pts||[]).length;y++){var x=g(l=o.pts[y]);x&lt;=t.distance&amp;&amp;(t.distance=x,m=[v,y])}}if(!m)return!1;l=(o=c[m[0]]).pts[m[1]];var b=u.c2p(l.x,!0),_=f.c2p(l.y,!0),w=l.mrc||1;n=i.extendFlat({},t,{index:l.i,color:(h.marker||{}).color,name:h.name,x0:b-w,x1:b+w,y0:_-w,y1:_+w,spikeDistance:t.distance,hovertemplate:h.hovertemplate});var T,k=o.orig_p,M=void 0!==k?k:o.pos;return&quot;h&quot;===h.orientation?(T=f,n.xLabelVal=l.x,n.yLabelVal=M):(T=u,n.xLabelVal=M,n.yLabelVal=l.y),n[T._id.charAt(0)+&quot;Spike&quot;]=T.c2p(o.pos,!0),s(l,h,n),n}e.exports={hoverPoints:function(t,e,r,n){var i,a=t.cd[0].trace.hoveron,o=[];return-1!==a.indexOf(&quot;boxes&quot;)&amp;&amp;(o=o.concat(l(t,e,r,n))),-1!==a.indexOf(&quot;points&quot;)&amp;&amp;(i=c(t,e,r)),&quot;closest&quot;===n?i?[i]:o:i?(o.push(i),o):o},hoverOnBoxes:l,hoverOnPoints:c}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],952:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;).supplyLayoutDefaults,calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;box&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;oriented&quot;,&quot;box-violin&quot;,&quot;showLegend&quot;,&quot;boxLayout&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:946,&quot;./calc&quot;:947,&quot;./cross_trace_calc&quot;:948,&quot;./defaults&quot;:949,&quot;./event_data&quot;:950,&quot;./hover&quot;:951,&quot;./layout_attributes&quot;:953,&quot;./layout_defaults&quot;:954,&quot;./plot&quot;:955,&quot;./select&quot;:956,&quot;./style&quot;:957}],953:[function(t,e,r){&quot;use strict&quot;;e.exports={boxmode:{valType:&quot;enumerated&quot;,values:[&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;overlay&quot;,editType:&quot;calc&quot;},boxgap:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,editType:&quot;calc&quot;},boxgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:.3,editType:&quot;calc&quot;}}},{}],954:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./layout_attributes&quot;);function o(t,e,r,i,a){for(var o=a+&quot;Layout&quot;,s=!1,l=0;l&lt;r.length;l++){var c=r[l];if(n.traceIs(c,o)){s=!0;break}}s&amp;&amp;(i(a+&quot;mode&quot;),i(a+&quot;gap&quot;),i(a+&quot;groupgap&quot;))}e.exports={supplyLayoutDefaults:function(t,e,r){o(0,0,r,(function(r,n){return i.coerce(t,e,a,r,n)}),&quot;box&quot;)},_supply:o}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./layout_attributes&quot;:953}],955:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;);function o(t,e,r,a){var o,s,l=&quot;h&quot;===r.orientation,c=e.val,u=e.pos,f=!!u.rangebreaks,h=a.bPos,p=a.wdPos||0,d=a.bPosPxOffset||0,g=r.whiskerwidth||0,m=r.notched||!1,v=m?1-2*r.notchwidth:1;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var y=t.selectAll(&quot;path.box&quot;).data(&quot;violin&quot;!==r.type||r.box.visible?i.identity:[]);y.enter().append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;class&quot;,&quot;box&quot;),y.exit().remove(),y.each((function(t){if(t.empty)return&quot;M0,0Z&quot;;var e=u.c2l(t.pos+h,!0),a=u.l2p(e-o)+d,y=u.l2p(e+s)+d,x=f?(a+y)/2:u.l2p(e)+d,b=r.whiskerwidth,_=f?a*b+(1-b)*x:u.l2p(e-p)+d,w=f?y*b+(1-b)*x:u.l2p(e+p)+d,T=u.l2p(e-o*v)+d,k=u.l2p(e+s*v)+d,M=c.c2p(t.q1,!0),A=c.c2p(t.q3,!0),S=i.constrain(c.c2p(t.med,!0),Math.min(M,A)+1,Math.max(M,A)-1),E=void 0===t.lf||!1===r.boxpoints,C=c.c2p(E?t.min:t.lf,!0),L=c.c2p(E?t.max:t.uf,!0),I=c.c2p(t.ln,!0),P=c.c2p(t.un,!0);l?n.select(this).attr(&quot;d&quot;,&quot;M&quot;+S+&quot;,&quot;+T+&quot;V&quot;+k+&quot;M&quot;+M+&quot;,&quot;+a+&quot;V&quot;+y+(m?&quot;H&quot;+I+&quot;L&quot;+S+&quot;,&quot;+k+&quot;L&quot;+P+&quot;,&quot;+y:&quot;&quot;)+&quot;H&quot;+A+&quot;V&quot;+a+(m?&quot;H&quot;+P+&quot;L&quot;+S+&quot;,&quot;+T+&quot;L&quot;+I+&quot;,&quot;+a:&quot;&quot;)+&quot;ZM&quot;+M+&quot;,&quot;+x+&quot;H&quot;+C+&quot;M&quot;+A+&quot;,&quot;+x+&quot;H&quot;+L+(0===g?&quot;&quot;:&quot;M&quot;+C+&quot;,&quot;+_+&quot;V&quot;+w+&quot;M&quot;+L+&quot;,&quot;+_+&quot;V&quot;+w)):n.select(this).attr(&quot;d&quot;,&quot;M&quot;+T+&quot;,&quot;+S+&quot;H&quot;+k+&quot;M&quot;+a+&quot;,&quot;+M+&quot;H&quot;+y+(m?&quot;V&quot;+I+&quot;L&quot;+k+&quot;,&quot;+S+&quot;L&quot;+y+&quot;,&quot;+P:&quot;&quot;)+&quot;V&quot;+A+&quot;H&quot;+a+(m?&quot;V&quot;+P+&quot;L&quot;+T+&quot;,&quot;+S+&quot;L&quot;+a+&quot;,&quot;+I:&quot;&quot;)+&quot;ZM&quot;+x+&quot;,&quot;+M+&quot;V&quot;+C+&quot;M&quot;+x+&quot;,&quot;+A+&quot;V&quot;+L+(0===g?&quot;&quot;:&quot;M&quot;+_+&quot;,&quot;+C+&quot;H&quot;+w+&quot;M&quot;+_+&quot;,&quot;+L+&quot;H&quot;+w))}))}function s(t,e,r,n){var o=e.x,s=e.y,l=n.bdPos,c=n.bPos,u=r.boxpoints||r.points;i.seedPseudoRandom();var f=t.selectAll(&quot;g.points&quot;).data(u?function(t){return t.forEach((function(t){t.t=n,t.trace=r})),t}:[]);f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;points&quot;),f.exit().remove();var h=f.selectAll(&quot;path&quot;).data((function(t){var e,n,a=t.pts2,o=Math.max((t.max-t.min)/10,t.q3-t.q1),s=1e-9*o,f=.01*o,h=[],p=0;if(r.jitter){if(0===o)for(p=1,h=new Array(a.length),e=0;e&lt;a.length;e++)h[e]=1;else for(e=0;e&lt;a.length;e++){var d=Math.max(0,e-5),g=a[d].v,m=Math.min(a.length-1,e+5),v=a[m].v;&quot;all&quot;!==u&amp;&amp;(a[e].v&lt;t.lf?v=Math.min(v,t.lf):g=Math.max(g,t.uf));var y=Math.sqrt(f*(m-d)/(v-g+s))||0;y=i.constrain(Math.abs(y),0,1),h.push(y),p=Math.max(y,p)}n=2*r.jitter/(p||1)}for(e=0;e&lt;a.length;e++){var x=a[e],b=x.v,_=r.jitter?n*h[e]*(i.pseudoRandom()-.5):0,w=t.pos+c+l*(r.pointpos+_);&quot;h&quot;===r.orientation?(x.y=w,x.x=b):(x.x=w,x.y=b),&quot;suspectedoutliers&quot;===u&amp;&amp;b&lt;t.uo&amp;&amp;b&gt;t.lo&amp;&amp;(x.so=!0)}return a}));h.enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0),h.exit().remove(),h.call(a.translatePoints,o,s)}function l(t,e,r,a){var o,s,l=e.val,c=e.pos,u=!!c.rangebreaks,f=a.bPos,h=a.bPosPxOffset||0,p=r.boxmean||(r.meanline||{}).visible;Array.isArray(a.bdPos)?(o=a.bdPos[0],s=a.bdPos[1]):(o=a.bdPos,s=a.bdPos);var d=t.selectAll(&quot;path.mean&quot;).data(&quot;box&quot;===r.type&amp;&amp;r.boxmean||&quot;violin&quot;===r.type&amp;&amp;r.box.visible&amp;&amp;r.meanline.visible?i.identity:[]);d.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;mean&quot;).style({fill:&quot;none&quot;,&quot;vector-effect&quot;:&quot;non-scaling-stroke&quot;}),d.exit().remove(),d.each((function(t){var e=c.c2l(t.pos+f,!0),i=c.l2p(e-o)+h,a=c.l2p(e+s)+h,d=u?(i+a)/2:c.l2p(e)+h,g=l.c2p(t.mean,!0),m=l.c2p(t.mean-t.sd,!0),v=l.c2p(t.mean+t.sd,!0);&quot;h&quot;===r.orientation?n.select(this).attr(&quot;d&quot;,&quot;M&quot;+g+&quot;,&quot;+i+&quot;V&quot;+a+(&quot;sd&quot;===p?&quot;m0,0L&quot;+m+&quot;,&quot;+d+&quot;L&quot;+g+&quot;,&quot;+i+&quot;L&quot;+v+&quot;,&quot;+d+&quot;Z&quot;:&quot;&quot;)):n.select(this).attr(&quot;d&quot;,&quot;M&quot;+i+&quot;,&quot;+g+&quot;H&quot;+a+(&quot;sd&quot;===p?&quot;m0,0L&quot;+d+&quot;,&quot;+m+&quot;L&quot;+i+&quot;,&quot;+g+&quot;L&quot;+d+&quot;,&quot;+v+&quot;Z&quot;:&quot;&quot;))}))}e.exports={plot:function(t,e,r,a){var c=e.xaxis,u=e.yaxis;i.makeTraceGroups(a,r,&quot;trace boxes&quot;).each((function(t){var e,r,i=n.select(this),a=t[0],f=a.t,h=a.trace;(f.wdPos=f.bdPos*h.whiskerwidth,!0!==h.visible||f.empty)?i.remove():(&quot;h&quot;===h.orientation?(e=u,r=c):(e=c,r=u),o(i,{pos:e,val:r},h,f),s(i,{x:c,y:u},h,f),l(i,{pos:e,val:r},h,f))}))},plotBoxAndWhiskers:o,plotPoints:s,plotBoxMean:l}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,d3:169}],956:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n,i=t.cd,a=t.xaxis,o=t.yaxis,s=[];if(!1===e)for(r=0;r&lt;i.length;r++)for(n=0;n&lt;(i[r].pts||[]).length;n++)i[r].pts[n].selected=0;else for(r=0;r&lt;i.length;r++)for(n=0;n&lt;(i[r].pts||[]).length;n++){var l=i[r].pts[n],c=a.c2p(l.x),u=o.c2p(l.y);e.contains([c,u],null,l.i,t)?(s.push({pointNumber:l.i,x:a.c2d(l.x),y:o.c2d(l.y)}),l.selected=1):l.selected=0}return s}},{}],957:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;);e.exports={style:function(t,e,r){var o=r||n.select(t).selectAll(&quot;g.trace.boxes&quot;);o.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),o.each((function(e){var r=n.select(this),o=e[0].trace,s=o.line.width;function l(t,e,r,n){t.style(&quot;stroke-width&quot;,e+&quot;px&quot;).call(i.stroke,r).call(i.fill,n)}var c=r.selectAll(&quot;path.box&quot;);if(&quot;candlestick&quot;===o.type)c.each((function(t){if(!t.empty){var e=n.select(this),r=o[t.dir];l(e,r.line.width,r.line.color,r.fillcolor),e.style(&quot;opacity&quot;,o.selectedpoints&amp;&amp;!t.selected?.3:1)}}));else{l(c,s,o.line.color,o.fillcolor),r.selectAll(&quot;path.mean&quot;).style({&quot;stroke-width&quot;:s,&quot;stroke-dasharray&quot;:2*s+&quot;px,&quot;+s+&quot;px&quot;}).call(i.stroke,o.line.color);var u=r.selectAll(&quot;path.point&quot;);a.pointStyle(u,o,t)}}))},styleOnSelect:function(t,e,r){var n=e[0].trace,i=r.selectAll(&quot;path.point&quot;);n.selectedpoints?a.selectedPointStyle(i,n):a.pointStyle(i,n,t)}}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,d3:169}],958:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).extendFlat,i=t(&quot;../ohlc/attributes&quot;),a=t(&quot;../box/attributes&quot;);function o(t){return{line:{color:n({},a.line.color,{dflt:t}),width:a.line.width,editType:&quot;style&quot;},fillcolor:a.fillcolor,editType:&quot;style&quot;}}e.exports={xperiod:i.xperiod,xperiod0:i.xperiod0,xperiodalignment:i.xperiodalignment,x:i.x,open:i.open,high:i.high,low:i.low,close:i.close,line:{width:n({},a.line.width,{}),editType:&quot;style&quot;},increasing:o(i.increasing.line.color.dflt),decreasing:o(i.decreasing.line.color.dflt),text:i.text,hovertext:i.hovertext,whiskerwidth:n({},a.whiskerwidth,{dflt:0}),hoverlabel:i.hoverlabel}},{&quot;../../lib&quot;:778,&quot;../box/attributes&quot;:946,&quot;../ohlc/attributes&quot;:1133}],959:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../plots/cartesian/align_period&quot;),o=t(&quot;../ohlc/calc&quot;).calcCommon;function s(t,e,r,n){return{min:r,q1:Math.min(t,n),med:n,q3:Math.max(t,n),max:e}}e.exports=function(t,e){var r=t._fullLayout,l=i.getFromId(t,e.xaxis),c=i.getFromId(t,e.yaxis),u=l.makeCalcdata(e,&quot;x&quot;),f=a(e,l,&quot;x&quot;,u),h=o(t,e,u,f,c,s);return h.length?(n.extendFlat(h[0].t,{num:r._numBoxes,dPos:n.distinctVals(f).minDiff/2,posLetter:&quot;x&quot;,valLetter:&quot;y&quot;}),r._numBoxes++,h):[{t:{empty:!0}}]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../ohlc/calc&quot;:1134}],960:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../ohlc/ohlc_defaults&quot;),o=t(&quot;../scatter/period_defaults&quot;),s=t(&quot;./attributes&quot;);function l(t,e,r,n){var a=r(n+&quot;.line.color&quot;);r(n+&quot;.line.width&quot;,e.line.width),r(n+&quot;.fillcolor&quot;,i.addOpacity(a,.5))}e.exports=function(t,e,r,i){function c(r,i){return n.coerce(t,e,s,r,i)}a(t,e,c,i)?(o(t,e,i,c,{x:!0}),c(&quot;line.width&quot;),l(t,e,c,&quot;increasing&quot;),l(t,e,c,&quot;decreasing&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;whiskerwidth&quot;),i._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../ohlc/ohlc_defaults&quot;:1138,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:958}],961:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;candlestick&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;showLegend&quot;,&quot;candlestick&quot;,&quot;boxLayout&quot;],meta:{},attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;../box/layout_attributes&quot;),supplyLayoutDefaults:t(&quot;../box/layout_defaults&quot;).supplyLayoutDefaults,crossTraceCalc:t(&quot;../box/cross_trace_calc&quot;).crossTraceCalc,supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;../box/plot&quot;).plot,layerName:&quot;boxlayer&quot;,style:t(&quot;../box/style&quot;).style,hoverPoints:t(&quot;../ohlc/hover&quot;).hoverPoints,selectPoints:t(&quot;../ohlc/select&quot;)}},{&quot;../../plots/cartesian&quot;:841,&quot;../box/cross_trace_calc&quot;:948,&quot;../box/layout_attributes&quot;:953,&quot;../box/layout_defaults&quot;:954,&quot;../box/plot&quot;:955,&quot;../box/style&quot;:957,&quot;../ohlc/hover&quot;:1136,&quot;../ohlc/select&quot;:1140,&quot;./attributes&quot;:958,&quot;./calc&quot;:959,&quot;./defaults&quot;:960}],962:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./axis_defaults&quot;),i=t(&quot;../../plot_api/plot_template&quot;);e.exports=function(t,e,r,a,o){a(&quot;a&quot;)||(a(&quot;da&quot;),a(&quot;a0&quot;)),a(&quot;b&quot;)||(a(&quot;db&quot;),a(&quot;b0&quot;)),function(t,e,r,a){[&quot;aaxis&quot;,&quot;baxis&quot;].forEach((function(o){var s=o.charAt(0),l=t[o]||{},c=i.newContainer(e,o),u={tickfont:&quot;x&quot;,id:s+&quot;axis&quot;,letter:s,font:e.font,name:o,data:t[s],calendar:e.calendar,dfltColor:a,bgColor:r.paper_bgcolor,autotypenumbersDflt:r.autotypenumbers,fullLayout:r};n(l,c,u),c._categories=c._categories||[],t[o]||&quot;-&quot;===l.type||(t[o]={type:l.type})}))}(t,e,r,o)}},{&quot;../../plot_api/plot_template&quot;:817,&quot;./axis_defaults&quot;:967}],963:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t){return function t(e,r){if(!n(e)||r&gt;=10)return null;for(var i=1/0,a=-1/0,o=e.length,s=0;s&lt;o;s++){var l=e[s];if(n(l)){var c=t(l,r+1);c&amp;&amp;(i=Math.min(c[0],i),a=Math.max(c[1],a))}else i=Math.min(l,i),a=Math.max(l,a)}return[i,a]}(t,0)}},{&quot;../../lib&quot;:778}],964:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;./axis_attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=n({editType:&quot;calc&quot;});o.family.dflt='&quot;Open Sans&quot;, verdana, arial, sans-serif',o.size.dflt=12,o.color.dflt=a.defaultLine,e.exports={carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},a0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},da:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},db:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},cheaterslope:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},aaxis:i,baxis:i,font:o,color:{valType:&quot;color&quot;,dflt:a.defaultLine,editType:&quot;plot&quot;},transforms:void 0}},{&quot;../../components/color/attributes&quot;:642,&quot;../../plots/font_attributes&quot;:856,&quot;./axis_attributes&quot;:966}],965:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,i){var a,o,s,l,c,u,f,h,p,d,g,m,v,y=n(r)?&quot;a&quot;:&quot;b&quot;,x=(&quot;a&quot;===y?t.aaxis:t.baxis).smoothing,b=&quot;a&quot;===y?t.a2i:t.b2j,_=&quot;a&quot;===y?r:i,w=&quot;a&quot;===y?i:r,T=&quot;a&quot;===y?e.a.length:e.b.length,k=&quot;a&quot;===y?e.b.length:e.a.length,M=Math.floor(&quot;a&quot;===y?t.b2j(w):t.a2i(w)),A=&quot;a&quot;===y?function(e){return t.evalxy([],e,M)}:function(e){return t.evalxy([],M,e)};x&amp;&amp;(s=Math.max(0,Math.min(k-2,M)),l=M-s,o=&quot;a&quot;===y?function(e,r){return t.dxydi([],e,s,r,l)}:function(e,r){return t.dxydj([],s,e,l,r)});var S=b(_[0]),E=b(_[1]),C=S&lt;E?1:-1,L=1e-8*(E-S),I=C&gt;0?Math.floor:Math.ceil,P=C&gt;0?Math.ceil:Math.floor,z=C&gt;0?Math.min:Math.max,O=C&gt;0?Math.max:Math.min,D=I(S+L),R=P(E-L),F=[[f=A(S)]];for(a=D;a*C&lt;R*C;a+=C)c=[],g=O(S,a),v=(m=z(E,a+C))-g,u=Math.max(0,Math.min(T-2,Math.floor(.5*(g+m)))),h=A(m),x&amp;&amp;(p=o(u,g-u),d=o(u,m-u),c.push([f[0]+p[0]/3*v,f[1]+p[1]/3*v]),c.push([h[0]-d[0]/3*v,h[1]-d[1]/3*v])),c.push(h),F.push(c),f=h;return F}},{&quot;../../lib&quot;:778}],966:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../components/color/attributes&quot;),a=t(&quot;../../plots/cartesian/layout_attributes&quot;),o=t(&quot;../../plot_api/edit_types&quot;).overrideAll;t(&quot;../../constants/docs&quot;).FORMAT_LINK,t(&quot;../../constants/docs&quot;).TIME_FORMAT_LINK;e.exports={color:{valType:&quot;color&quot;,editType:&quot;calc&quot;},smoothing:{valType:&quot;number&quot;,dflt:1,min:0,max:1.3,editType:&quot;calc&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},font:n({editType:&quot;calc&quot;}),offset:{valType:&quot;number&quot;,dflt:10,editType:&quot;calc&quot;},editType:&quot;calc&quot;},type:{valType:&quot;enumerated&quot;,values:[&quot;-&quot;,&quot;linear&quot;,&quot;date&quot;,&quot;category&quot;],dflt:&quot;-&quot;,editType:&quot;calc&quot;},autotypenumbers:a.autotypenumbers,autorange:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],dflt:!0,editType:&quot;calc&quot;},rangemode:{valType:&quot;enumerated&quot;,values:[&quot;normal&quot;,&quot;tozero&quot;,&quot;nonnegative&quot;],dflt:&quot;normal&quot;,editType:&quot;calc&quot;},range:{valType:&quot;info_array&quot;,editType:&quot;calc&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}]},fixedrange:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},cheatertype:{valType:&quot;enumerated&quot;,values:[&quot;index&quot;,&quot;value&quot;],dflt:&quot;value&quot;,editType:&quot;calc&quot;},tickmode:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;array&quot;],dflt:&quot;array&quot;,editType:&quot;calc&quot;},nticks:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},tickvals:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},showticklabels:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;end&quot;,&quot;both&quot;,&quot;none&quot;],dflt:&quot;start&quot;,editType:&quot;calc&quot;},tickfont:n({editType:&quot;calc&quot;}),tickangle:{valType:&quot;angle&quot;,dflt:&quot;auto&quot;,editType:&quot;calc&quot;},tickprefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showtickprefix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},ticksuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showticksuffix:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},showexponent:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;first&quot;,&quot;last&quot;,&quot;none&quot;],dflt:&quot;all&quot;,editType:&quot;calc&quot;},exponentformat:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;e&quot;,&quot;E&quot;,&quot;power&quot;,&quot;SI&quot;,&quot;B&quot;],dflt:&quot;B&quot;,editType:&quot;calc&quot;},minexponent:{valType:&quot;number&quot;,dflt:3,min:0,editType:&quot;calc&quot;},separatethousands:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},tickformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},tickformatstops:o(a.tickformatstops,&quot;calc&quot;,&quot;from-root&quot;),categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},labelpadding:{valType:&quot;integer&quot;,dflt:10,editType:&quot;calc&quot;},labelprefix:{valType:&quot;string&quot;,editType:&quot;calc&quot;},labelsuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},showline:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},linecolor:{valType:&quot;color&quot;,dflt:i.defaultLine,editType:&quot;calc&quot;},linewidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},gridcolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},gridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},showgrid:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},minorgridcount:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},minorgridwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},minorgridcolor:{valType:&quot;color&quot;,dflt:i.lightLine,editType:&quot;calc&quot;},startline:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},startlinecolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},startlinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},endline:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},endlinewidth:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},endlinecolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},tick0:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},dtick:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;calc&quot;},arraytick0:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},arraydtick:{valType:&quot;integer&quot;,min:1,dflt:1,editType:&quot;calc&quot;},_deprecated:{title:{valType:&quot;string&quot;,editType:&quot;calc&quot;},titlefont:n({editType:&quot;calc&quot;}),titleoffset:{valType:&quot;number&quot;,dflt:10,editType:&quot;calc&quot;}},editType:&quot;calc&quot;}},{&quot;../../components/color/attributes&quot;:642,&quot;../../constants/docs&quot;:748,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/font_attributes&quot;:856}],967:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./attributes&quot;),i=t(&quot;../../components/color&quot;).addOpacity,a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),l=t(&quot;../../plots/cartesian/tick_label_defaults&quot;),c=t(&quot;../../plots/cartesian/category_order_defaults&quot;),u=t(&quot;../../plots/cartesian/set_convert&quot;),f=t(&quot;../../plots/cartesian/axis_autotype&quot;);e.exports=function(t,e,r){var h=r.letter,p=r.font||{},d=n[h+&quot;axis&quot;];function g(r,n){return o.coerce(t,e,d,r,n)}function m(r,n){return o.coerce2(t,e,d,r,n)}r.name&amp;&amp;(e._name=r.name,e._id=r.name),g(&quot;autotypenumbers&quot;,r.autotypenumbersDflt);var v=g(&quot;type&quot;);(&quot;-&quot;===v&amp;&amp;(r.data&amp;&amp;function(t,e){if(&quot;-&quot;!==t.type)return;var r=t._id.charAt(0),n=t[r+&quot;calendar&quot;];t.type=f(e,n,{autotypenumbers:t.autotypenumbers})}(e,r.data),&quot;-&quot;===e.type?e.type=&quot;linear&quot;:v=t.type=e.type),g(&quot;smoothing&quot;),g(&quot;cheatertype&quot;),g(&quot;showticklabels&quot;),g(&quot;labelprefix&quot;,h+&quot; = &quot;),g(&quot;labelsuffix&quot;),g(&quot;showtickprefix&quot;),g(&quot;showticksuffix&quot;),g(&quot;separatethousands&quot;),g(&quot;tickformat&quot;),g(&quot;exponentformat&quot;),g(&quot;minexponent&quot;),g(&quot;showexponent&quot;),g(&quot;categoryorder&quot;),g(&quot;tickmode&quot;),g(&quot;tickvals&quot;),g(&quot;ticktext&quot;),g(&quot;tick0&quot;),g(&quot;dtick&quot;),&quot;array&quot;===e.tickmode&amp;&amp;(g(&quot;arraytick0&quot;),g(&quot;arraydtick&quot;)),g(&quot;labelpadding&quot;),e._hovertitle=h,&quot;date&quot;===v)&amp;&amp;a.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;)(t,e,&quot;calendar&quot;,r.calendar);u(e,r.fullLayout),e.c2p=o.identity;var y=g(&quot;color&quot;,r.dfltColor),x=y===t.color?y:p.color;g(&quot;title.text&quot;)&amp;&amp;(o.coerceFont(g,&quot;title.font&quot;,{family:p.family,size:Math.round(1.2*p.size),color:x}),g(&quot;title.offset&quot;)),g(&quot;tickangle&quot;),g(&quot;autorange&quot;,!e.isValidRange(t.range))&amp;&amp;g(&quot;rangemode&quot;),g(&quot;range&quot;),e.cleanRange(),g(&quot;fixedrange&quot;),s(t,e,g,v),l(t,e,g,v,r),c(t,e,g,{data:r.data,dataAttr:h});var b=m(&quot;gridcolor&quot;,i(y,.3)),_=m(&quot;gridwidth&quot;),w=g(&quot;showgrid&quot;);w||(delete e.gridcolor,delete e.gridwidth);var T=m(&quot;startlinecolor&quot;,y),k=m(&quot;startlinewidth&quot;,_);g(&quot;startline&quot;,e.showgrid||!!T||!!k)||(delete e.startlinecolor,delete e.startlinewidth);var M=m(&quot;endlinecolor&quot;,y),A=m(&quot;endlinewidth&quot;,_);return g(&quot;endline&quot;,e.showgrid||!!M||!!A)||(delete e.endlinecolor,delete e.endlinewidth),w?(g(&quot;minorgridcount&quot;),g(&quot;minorgridwidth&quot;,_),g(&quot;minorgridcolor&quot;,i(b,.06)),e.minorgridcount||(delete e.minorgridwidth,delete e.minorgridcolor)):(delete e.gridcolor,delete e.gridWidth),&quot;none&quot;===e.showticklabels&amp;&amp;(delete e.tickfont,delete e.tickangle,delete e.showexponent,delete e.exponentformat,delete e.minexponent,delete e.tickformat,delete e.showticksuffix,delete e.showtickprefix),e.showticksuffix||delete e.ticksuffix,e.showtickprefix||delete e.tickprefix,g(&quot;tickmode&quot;),e}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_autotype&quot;:829,&quot;../../plots/cartesian/category_order_defaults&quot;:832,&quot;../../plots/cartesian/set_convert&quot;:848,&quot;../../plots/cartesian/tick_label_defaults&quot;:849,&quot;../../plots/cartesian/tick_value_defaults&quot;:851,&quot;../../registry&quot;:911,&quot;./attributes&quot;:964}],968:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;).isArray1D,a=t(&quot;./cheater_basis&quot;),o=t(&quot;./array_minmax&quot;),s=t(&quot;./calc_gridlines&quot;),l=t(&quot;./calc_labels&quot;),c=t(&quot;./calc_clippath&quot;),u=t(&quot;../heatmap/clean_2d_array&quot;),f=t(&quot;./smooth_fill_2d_array&quot;),h=t(&quot;../heatmap/convert_column_xyz&quot;),p=t(&quot;./set_convert&quot;);e.exports=function(t,e){var r=n.getFromId(t,e.xaxis),d=n.getFromId(t,e.yaxis),g=e.aaxis,m=e.baxis,v=e.x,y=e.y,x=[];v&amp;&amp;i(v)&amp;&amp;x.push(&quot;x&quot;),y&amp;&amp;i(y)&amp;&amp;x.push(&quot;y&quot;),x.length&amp;&amp;h(e,g,m,&quot;a&quot;,&quot;b&quot;,x);var b=e._a=e._a||e.a,_=e._b=e._b||e.b;v=e._x||e.x,y=e._y||e.y;var w={};if(e._cheater){var T=&quot;index&quot;===g.cheatertype?b.length:b,k=&quot;index&quot;===m.cheatertype?_.length:_;v=a(T,k,e.cheaterslope)}e._x=v=u(v),e._y=y=u(y),f(v,b,_),f(y,b,_),p(e),e.setScale();var M=o(v),A=o(y),S=.5*(M[1]-M[0]),E=.5*(M[1]+M[0]),C=.5*(A[1]-A[0]),L=.5*(A[1]+A[0]);return M=[E-1.3*S,E+1.3*S],A=[L-1.3*C,L+1.3*C],e._extremes[r._id]=n.findExtremes(r,M,{padded:!0}),e._extremes[d._id]=n.findExtremes(d,A,{padded:!0}),s(e,&quot;a&quot;,&quot;b&quot;),s(e,&quot;b&quot;,&quot;a&quot;),l(e,g),l(e,m),w.clipsegments=c(e._xctrl,e._yctrl,g,m),w.x=v,w.y=y,w.a=b,w.b=_,[w]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../heatmap/clean_2d_array&quot;:1067,&quot;../heatmap/convert_column_xyz&quot;:1069,&quot;./array_minmax&quot;:963,&quot;./calc_clippath&quot;:969,&quot;./calc_gridlines&quot;:970,&quot;./calc_labels&quot;:971,&quot;./cheater_basis&quot;:973,&quot;./set_convert&quot;:986,&quot;./smooth_fill_2d_array&quot;:987}],969:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i,a,o,s=[],l=!!r.smoothing,c=!!n.smoothing,u=t[0].length-1,f=t.length-1;for(i=0,a=[],o=[];i&lt;=u;i++)a[i]=t[0][i],o[i]=e[0][i];for(s.push({x:a,y:o,bicubic:l}),i=0,a=[],o=[];i&lt;=f;i++)a[i]=t[i][u],o[i]=e[i][u];for(s.push({x:a,y:o,bicubic:c}),i=u,a=[],o=[];i&gt;=0;i--)a[u-i]=t[f][i],o[u-i]=e[f][i];for(s.push({x:a,y:o,bicubic:l}),i=f,a=[],o=[];i&gt;=0;i--)a[f-i]=t[i][0],o[f-i]=e[i][0];return s.push({x:a,y:o,bicubic:c}),s}},{}],970:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=function(t,e,r){var a,o,s,l,c,u,f,h,p,d,g,m,v,y,x=t[&quot;_&quot;+e],b=t[e+&quot;axis&quot;],_=b._gridlines=[],w=b._minorgridlines=[],T=b._boundarylines=[],k=t[&quot;_&quot;+r],M=t[r+&quot;axis&quot;];&quot;array&quot;===b.tickmode&amp;&amp;(b.tickvals=x.slice());var A=t._xctrl,S=t._yctrl,E=A[0].length,C=A.length,L=t._a.length,I=t._b.length;n.prepTicks(b),&quot;array&quot;===b.tickmode&amp;&amp;delete b.tickvals;var P=b.smoothing?3:1;function z(n){var i,a,o,s,l,c,u,f,p,d,g,m,v=[],y=[],x={};if(&quot;b&quot;===e)for(a=t.b2j(n),o=Math.floor(Math.max(0,Math.min(I-2,a))),s=a-o,x.length=I,x.crossLength=L,x.xy=function(e){return t.evalxy([],e,a)},x.dxy=function(e,r){return t.dxydi([],e,o,r,s)},i=0;i&lt;L;i++)c=Math.min(L-2,i),u=i-c,f=t.evalxy([],i,a),M.smoothing&amp;&amp;i&gt;0&amp;&amp;(p=t.dxydi([],i-1,o,0,s),v.push(l[0]+p[0]/3),y.push(l[1]+p[1]/3),d=t.dxydi([],i-1,o,1,s),v.push(f[0]-d[0]/3),y.push(f[1]-d[1]/3)),v.push(f[0]),y.push(f[1]),l=f;else for(i=t.a2i(n),c=Math.floor(Math.max(0,Math.min(L-2,i))),u=i-c,x.length=L,x.crossLength=I,x.xy=function(e){return t.evalxy([],i,e)},x.dxy=function(e,r){return t.dxydj([],c,e,u,r)},a=0;a&lt;I;a++)o=Math.min(I-2,a),s=a-o,f=t.evalxy([],i,a),M.smoothing&amp;&amp;a&gt;0&amp;&amp;(g=t.dxydj([],c,a-1,u,0),v.push(l[0]+g[0]/3),y.push(l[1]+g[1]/3),m=t.dxydj([],c,a-1,u,1),v.push(f[0]-m[0]/3),y.push(f[1]-m[1]/3)),v.push(f[0]),y.push(f[1]),l=f;return x.axisLetter=e,x.axis=b,x.crossAxis=M,x.value=n,x.constvar=r,x.index=h,x.x=v,x.y=y,x.smoothing=M.smoothing,x}function O(n){var i,a,o,s,l,c=[],u=[],f={};if(f.length=x.length,f.crossLength=k.length,&quot;b&quot;===e)for(o=Math.max(0,Math.min(I-2,n)),l=Math.min(1,Math.max(0,n-o)),f.xy=function(e){return t.evalxy([],e,n)},f.dxy=function(e,r){return t.dxydi([],e,o,r,l)},i=0;i&lt;E;i++)c[i]=A[n*P][i],u[i]=S[n*P][i];else for(a=Math.max(0,Math.min(L-2,n)),s=Math.min(1,Math.max(0,n-a)),f.xy=function(e){return t.evalxy([],n,e)},f.dxy=function(e,r){return t.dxydj([],a,e,s,r)},i=0;i&lt;C;i++)c[i]=A[i][n*P],u[i]=S[i][n*P];return f.axisLetter=e,f.axis=b,f.crossAxis=M,f.value=x[n],f.constvar=r,f.index=n,f.x=c,f.y=u,f.smoothing=M.smoothing,f}if(&quot;array&quot;===b.tickmode){for(l=5e-15,u=(c=[Math.floor((x.length-1-b.arraytick0)/b.arraydtick*(1+l)),Math.ceil(-b.arraytick0/b.arraydtick/(1+l))].sort((function(t,e){return t-e})))[0]-1,f=c[1]+1,h=u;h&lt;f;h++)(o=b.arraytick0+b.arraydtick*h)&lt;0||o&gt;x.length-1||_.push(i(O(o),{color:b.gridcolor,width:b.gridwidth}));for(h=u;h&lt;f;h++)if(s=b.arraytick0+b.arraydtick*h,g=Math.min(s+b.arraydtick,x.length-1),!(s&lt;0||s&gt;x.length-1||g&lt;0||g&gt;x.length-1))for(m=x[s],v=x[g],a=0;a&lt;b.minorgridcount;a++)(y=g-s)&lt;=0||(d=m+(v-m)*(a+1)/(b.minorgridcount+1)*(b.arraydtick/y))&lt;x[0]||d&gt;x[x.length-1]||w.push(i(z(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&amp;&amp;T.push(i(O(0),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&amp;&amp;T.push(i(O(x.length-1),{color:b.endlinecolor,width:b.endlinewidth}))}else{for(l=5e-15,u=(c=[Math.floor((x[x.length-1]-b.tick0)/b.dtick*(1+l)),Math.ceil((x[0]-b.tick0)/b.dtick/(1+l))].sort((function(t,e){return t-e})))[0],f=c[1],h=u;h&lt;=f;h++)p=b.tick0+b.dtick*h,_.push(i(z(p),{color:b.gridcolor,width:b.gridwidth}));for(h=u-1;h&lt;f+1;h++)for(p=b.tick0+b.dtick*h,a=0;a&lt;b.minorgridcount;a++)(d=p+b.dtick*(a+1)/(b.minorgridcount+1))&lt;x[0]||d&gt;x[x.length-1]||w.push(i(z(d),{color:b.minorgridcolor,width:b.minorgridwidth}));b.startline&amp;&amp;T.push(i(z(x[0]),{color:b.startlinecolor,width:b.startlinewidth})),b.endline&amp;&amp;T.push(i(z(x[x.length-1]),{color:b.endlinecolor,width:b.endlinewidth}))}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/cartesian/axes&quot;:828}],971:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=function(t,e){var r,a,o,s=e._labels=[],l=e._gridlines;for(r=0;r&lt;l.length;r++)o=l[r],-1!==[&quot;start&quot;,&quot;both&quot;].indexOf(e.showticklabels)&amp;&amp;(a=n.tickText(e,o.value),i(a,{prefix:void 0,suffix:void 0,endAnchor:!0,xy:o.xy(0),dxy:o.dxy(0,0),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a)),-1!==[&quot;end&quot;,&quot;both&quot;].indexOf(e.showticklabels)&amp;&amp;(a=n.tickText(e,o.value),i(a,{endAnchor:!1,xy:o.xy(o.crossLength-1),dxy:o.dxy(o.crossLength-2,1),axis:o.axis,length:o.crossAxis.length,font:o.axis.tickfont,isFirst:0===r,isLast:r===l.length-1}),s.push(a))}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/cartesian/axes&quot;:828}],972:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i=t[0]-e[0],a=t[1]-e[1],o=r[0]-e[0],s=r[1]-e[1],l=Math.pow(i*i+a*a,.25),c=Math.pow(o*o+s*s,.25),u=(c*c*i-l*l*o)*n,f=(c*c*a-l*l*s)*n,h=c*(l+c)*3,p=l*(l+c)*3;return[[e[0]+(h&amp;&amp;u/h),e[1]+(h&amp;&amp;f/h)],[e[0]-(p&amp;&amp;u/p),e[1]-(p&amp;&amp;f/p)]]}},{}],973:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r){var i,a,o,s,l,c,u=[],f=n(t)?t.length:t,h=n(e)?e.length:e,p=n(t)?t:null,d=n(e)?e:null;p&amp;&amp;(o=(p.length-1)/(p[p.length-1]-p[0])/(f-1)),d&amp;&amp;(s=(d.length-1)/(d[d.length-1]-d[0])/(h-1));var g=1/0,m=-1/0;for(a=0;a&lt;h;a++)for(u[a]=[],l=d?(d[a]-d[0])*s:a/(h-1),i=0;i&lt;f;i++)c=(p?(p[i]-p[0])*o:i/(f-1))-l*r,g=Math.min(c,g),m=Math.max(c,m),u[a][i]=c;var v=1/(m-g),y=-g*v;for(a=0;a&lt;h;a++)for(i=0;i&lt;f;i++)u[a][i]=v*u[a][i]+y;return u}},{&quot;../../lib&quot;:778}],974:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./catmull_rom&quot;),i=t(&quot;../../lib&quot;).ensureArray;function a(t,e,r){var n=-.5*r[0]+1.5*e[0],i=-.5*r[1]+1.5*e[1];return[(2*n+t[0])/3,(2*i+t[1])/3]}e.exports=function(t,e,r,o,s,l){var c,u,f,h,p,d,g,m,v,y,x=r[0].length,b=r.length,_=s?3*x-2:x,w=l?3*b-2:b;for(t=i(t,w),e=i(e,w),f=0;f&lt;w;f++)t[f]=i(t[f],_),e[f]=i(e[f],_);for(u=0,h=0;u&lt;b;u++,h+=l?3:1)for(p=t[h],d=e[h],g=r[u],m=o[u],c=0,f=0;c&lt;x;c++,f+=s?3:1)p[f]=g[c],d[f]=m[c];if(s)for(u=0,h=0;u&lt;b;u++,h+=l?3:1){for(c=1,f=3;c&lt;x-1;c++,f+=3)v=n([r[u][c-1],o[u][c-1]],[r[u][c],o[u][c]],[r[u][c+1],o[u][c+1]],s),t[h][f-1]=v[0][0],e[h][f-1]=v[0][1],t[h][f+1]=v[1][0],e[h][f+1]=v[1][1];y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=y[0],e[h][1]=y[1],y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=y[0],e[h][_-2]=y[1]}if(l)for(f=0;f&lt;_;f++){for(h=3;h&lt;w-3;h+=3)v=n([t[h-3][f],e[h-3][f]],[t[h][f],e[h][f]],[t[h+3][f],e[h+3][f]],l),t[h-1][f]=v[0][0],e[h-1][f]=v[0][1],t[h+1][f]=v[1][0],e[h+1][f]=v[1][1];y=a([t[0][f],e[0][f]],[t[2][f],e[2][f]],[t[3][f],e[3][f]]),t[1][f]=y[0],e[1][f]=y[1],y=a([t[w-1][f],e[w-1][f]],[t[w-3][f],e[w-3][f]],[t[w-4][f],e[w-4][f]]),t[w-2][f]=y[0],e[w-2][f]=y[1]}if(s&amp;&amp;l)for(h=1;h&lt;w;h+=(h+1)%3==0?2:1){for(f=3;f&lt;_-3;f+=3)v=n([t[h][f-3],e[h][f-3]],[t[h][f],e[h][f]],[t[h][f+3],e[h][f+3]],s),t[h][f-1]=.5*(t[h][f-1]+v[0][0]),e[h][f-1]=.5*(e[h][f-1]+v[0][1]),t[h][f+1]=.5*(t[h][f+1]+v[1][0]),e[h][f+1]=.5*(e[h][f+1]+v[1][1]);y=a([t[h][0],e[h][0]],[t[h][2],e[h][2]],[t[h][3],e[h][3]]),t[h][1]=.5*(t[h][1]+y[0]),e[h][1]=.5*(e[h][1]+y[1]),y=a([t[h][_-1],e[h][_-1]],[t[h][_-3],e[h][_-3]],[t[h][_-4],e[h][_-4]]),t[h][_-2]=.5*(t[h][_-2]+y[0]),e[h][_-2]=.5*(e[h][_-2]+y[1])}return[t,e]}},{&quot;../../lib&quot;:778,&quot;./catmull_rom&quot;:972}],975:[function(t,e,r){&quot;use strict&quot;;e.exports={RELATIVE_CULL_TOLERANCE:1e-6}},{}],976:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return e&amp;&amp;r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=1-i,d=p*p,g=p*i*2,m=-3*d,v=3*(d-g),y=3*(g-h),x=3*h,b=a*a,_=b*a,w=1-a,T=w*w,k=T*w;for(f=0;f&lt;t.length;f++)o=m*(u=t[f])[n][r]+v*u[n][r+1]+y*u[n][r+2]+x*u[n][r+3],s=m*u[n+1][r]+v*u[n+1][r+1]+y*u[n+1][r+2]+x*u[n+1][r+3],l=m*u[n+2][r]+v*u[n+2][r+1]+y*u[n+2][r+2]+x*u[n+2][r+3],c=m*u[n+3][r]+v*u[n+3][r+1]+y*u[n+3][r+2]+x*u[n+3][r+3],e[f]=k*o+3*(T*a*s+w*b*l)+_*c;return e}:e?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),r*=3;var u=i*i,f=1-i,h=f*f,p=f*i*2,d=-3*h,g=3*(h-p),m=3*(p-u),v=3*u,y=1-a;for(l=0;l&lt;t.length;l++)o=d*(c=t[l])[n][r]+g*c[n][r+1]+m*c[n][r+2]+v*c[n][r+3],s=d*c[n+1][r]+g*c[n+1][r+1]+m*c[n+1][r+2]+v*c[n+1][r+3],e[l]=y*o+a*s;return e}:r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),n*=3;var h=a*a,p=h*a,d=1-a,g=d*d,m=g*d;for(u=0;u&lt;t.length;u++)o=(f=t[u])[n][r+1]-f[n][r],s=f[n+1][r+1]-f[n+1][r],l=f[n+2][r+1]-f[n+2][r],c=f[n+3][r+1]-f[n+3][r],e[u]=m*o+3*(g*a*s+d*h*l)+p*c;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-a;for(l=0;l&lt;t.length;l++)o=(c=t[l])[n][r+1]-c[n][r],s=c[n+1][r+1]-c[n+1][r],e[l]=u*o+a*s;return e}}},{}],977:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){return e&amp;&amp;r?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3,n*=3;var h=i*i,p=h*i,d=1-i,g=d*d,m=g*d,v=a*a,y=1-a,x=y*y,b=y*a*2,_=-3*x,w=3*(x-b),T=3*(b-v),k=3*v;for(f=0;f&lt;t.length;f++)o=_*(u=t[f])[n][r]+w*u[n+1][r]+T*u[n+2][r]+k*u[n+3][r],s=_*u[n][r+1]+w*u[n+1][r+1]+T*u[n+2][r+1]+k*u[n+3][r+1],l=_*u[n][r+2]+w*u[n+1][r+2]+T*u[n+2][r+2]+k*u[n+3][r+2],c=_*u[n][r+3]+w*u[n+1][r+3]+T*u[n+2][r+3]+k*u[n+3][r+3],e[f]=m*o+3*(g*i*s+d*h*l)+p*c;return e}:e?function(e,r,n,i,a){var o,s,l,c,u,f;e||(e=[]),r*=3;var h=a*a,p=h*a,d=1-a,g=d*d,m=g*d;for(u=0;u&lt;t.length;u++)o=(f=t[u])[n+1][r]-f[n][r],s=f[n+1][r+1]-f[n][r+1],l=f[n+1][r+2]-f[n][r+2],c=f[n+1][r+3]-f[n][r+3],e[u]=m*o+3*(g*a*s+d*h*l)+p*c;return e}:r?function(e,r,n,i,a){var o,s,l,c;e||(e=[]),n*=3;var u=1-i,f=a*a,h=1-a,p=h*h,d=h*a*2,g=-3*p,m=3*(p-d),v=3*(d-f),y=3*f;for(l=0;l&lt;t.length;l++)o=g*(c=t[l])[n][r]+m*c[n+1][r]+v*c[n+2][r]+y*c[n+3][r],s=g*c[n][r+1]+m*c[n+1][r+1]+v*c[n+2][r+1]+y*c[n+3][r+1],e[l]=u*o+i*s;return e}:function(e,r,n,i,a){var o,s,l,c;e||(e=[]);var u=1-i;for(l=0;l&lt;t.length;l++)o=(c=t[l])[n+1][r]-c[n][r],s=c[n+1][r+1]-c[n][r+1],e[l]=u*o+i*s;return e}}},{}],978:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=e-2,o=r-2;return n&amp;&amp;i?function(e,r,n){var i,s,l,c,u,f;e||(e=[]);var h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3,p*=3;var m=d*d,v=m*d,y=1-d,x=y*y,b=x*y,_=g*g,w=_*g,T=1-g,k=T*T,M=k*T;for(f=0;f&lt;t.length;f++)i=b*(u=t[f])[p][h]+3*(x*d*u[p][h+1]+y*m*u[p][h+2])+v*u[p][h+3],s=b*u[p+1][h]+3*(x*d*u[p+1][h+1]+y*m*u[p+1][h+2])+v*u[p+1][h+3],l=b*u[p+2][h]+3*(x*d*u[p+2][h+1]+y*m*u[p+2][h+2])+v*u[p+2][h+3],c=b*u[p+3][h]+3*(x*d*u[p+3][h+1]+y*m*u[p+3][h+2])+v*u[p+3][h+3],e[f]=M*i+3*(k*g*s+T*_*l)+w*c;return e}:n?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));h*=3;var m=d*d,v=m*d,y=1-d,x=y*y,b=x*y,_=1-g;for(u=0;u&lt;t.length;u++)i=_*(f=t[u])[p][h]+g*f[p+1][h],s=_*f[p][h+1]+g*f[p+1][h+1],l=_*f[p][h+2]+g*f[p+1][h+1],c=_*f[p][h+3]+g*f[p+1][h+1],e[u]=b*i+3*(x*d*s+y*m*l)+v*c;return e}:i?function(e,r,n){e||(e=[]);var i,s,l,c,u,f,h=Math.max(0,Math.min(Math.floor(r),a)),p=Math.max(0,Math.min(Math.floor(n),o)),d=Math.max(0,Math.min(1,r-h)),g=Math.max(0,Math.min(1,n-p));p*=3;var m=g*g,v=m*g,y=1-g,x=y*y,b=x*y,_=1-d;for(u=0;u&lt;t.length;u++)i=_*(f=t[u])[p][h]+d*f[p][h+1],s=_*f[p+1][h]+d*f[p+1][h+1],l=_*f[p+2][h]+d*f[p+2][h+1],c=_*f[p+3][h]+d*f[p+3][h+1],e[u]=b*i+3*(x*g*s+y*m*l)+v*c;return e}:function(e,r,n){e||(e=[]);var i,s,l,c,u=Math.max(0,Math.min(Math.floor(r),a)),f=Math.max(0,Math.min(Math.floor(n),o)),h=Math.max(0,Math.min(1,r-u)),p=Math.max(0,Math.min(1,n-f)),d=1-p,g=1-h;for(l=0;l&lt;t.length;l++)i=g*(c=t[l])[f][u]+h*c[f][u+1],s=g*c[f+1][u]+h*c[f+1][u+1],e[l]=d*i+p*s;return e}}},{}],979:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./xy_defaults&quot;),a=t(&quot;./ab_defaults&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../../components/color/attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}e._clipPathId=&quot;clip&quot;+e.uid+&quot;carpet&quot;;var u=c(&quot;color&quot;,s.defaultLine);(n.coerceFont(c,&quot;font&quot;),c(&quot;carpet&quot;),a(t,e,l,c,u),e.a&amp;&amp;e.b)?(e.a.length&lt;3&amp;&amp;(e.aaxis.smoothing=0),e.b.length&lt;3&amp;&amp;(e.baxis.smoothing=0),i(t,e,c)||(e.visible=!1),e._cheater&amp;&amp;c(&quot;cheaterslope&quot;)):e.visible=!1}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib&quot;:778,&quot;./ab_defaults&quot;:962,&quot;./attributes&quot;:964,&quot;./xy_defaults&quot;:988}],980:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),plot:t(&quot;./plot&quot;),calc:t(&quot;./calc&quot;),animatable:!0,isContainer:!0,moduleType:&quot;trace&quot;,name:&quot;carpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;carpet&quot;,&quot;carpetAxis&quot;,&quot;notLegendIsolatable&quot;,&quot;noMultiCategory&quot;,&quot;noHover&quot;,&quot;noSortingByValue&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:964,&quot;./calc&quot;:968,&quot;./defaults&quot;:979,&quot;./plot&quot;:985}],981:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r,n=t._fullData.length,i=0;i&lt;n;i++){var a=t._fullData[i];if(a.index!==e.index&amp;&amp;(&quot;carpet&quot;===a.type&amp;&amp;(r||(r=a),a.carpet===e.carpet)))return a}return r}},{}],982:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){if(0===t.length)return&quot;&quot;;var n,i=[],a=r?3:1;for(n=0;n&lt;t.length;n+=a)i.push(t[n]+&quot;,&quot;+e[n]),r&amp;&amp;n&lt;t.length-a&amp;&amp;(i.push(&quot;C&quot;),i.push([t[n+1]+&quot;,&quot;+e[n+1],t[n+2]+&quot;,&quot;+e[n+2]+&quot; &quot;].join(&quot; &quot;)));return i.join(r?&quot;&quot;:&quot;L&quot;)}},{}],983:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r){var i;for(n(t)?t.length&gt;e.length&amp;&amp;(t=t.slice(0,e.length)):t=[],i=0;i&lt;e.length;i++)t[i]=r(e[i]);return t}},{&quot;../../lib&quot;:778}],984:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i,a){var o=i[0]*t.dpdx(e),s=i[1]*t.dpdy(r),l=1,c=1;if(a){var u=Math.sqrt(i[0]*i[0]+i[1]*i[1]),f=Math.sqrt(a[0]*a[0]+a[1]*a[1]),h=(i[0]*a[0]+i[1]*a[1])/u/f;c=Math.max(0,h)}var p=180*Math.atan2(s,o)/Math.PI;return p&lt;-90?(p+=180,l=-l):p&gt;90&amp;&amp;(p-=180,l=-l),{angle:p,flip:l,p:t.c2p(n,e,r),offsetMultplier:c}}},{}],985:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;./map_1d_array&quot;),o=t(&quot;./makepath&quot;),s=t(&quot;./orient_text&quot;),l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../../lib&quot;),u=c.strRotate,f=c.strTranslate,h=t(&quot;../../constants/alignment&quot;);function p(t,e,r,i,s,l){var c=&quot;const-&quot;+s+&quot;-lines&quot;,u=r.selectAll(&quot;.&quot;+c).data(l);u.enter().append(&quot;path&quot;).classed(c,!0).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;),u.each((function(r){var i=r,s=i.x,l=i.y,c=a([],s,t.c2p),u=a([],l,e.c2p),f=&quot;M&quot;+o(c,u,i.smoothing);n.select(this).attr(&quot;d&quot;,f).style(&quot;stroke-width&quot;,i.width).style(&quot;stroke&quot;,i.color).style(&quot;fill&quot;,&quot;none&quot;)})),u.exit().remove()}function d(t,e,r,a,o,c,h,p){var d=c.selectAll(&quot;text.&quot;+p).data(h);d.enter().append(&quot;text&quot;).classed(p,!0);var g=0,m={};return d.each((function(o,c){var h;if(&quot;auto&quot;===o.axis.tickangle)h=s(a,e,r,o.xy,o.dxy);else{var p=(o.axis.tickangle+180)*Math.PI/180;h=s(a,e,r,o.xy,[Math.cos(p),Math.sin(p)])}c||(m={angle:h.angle,flip:h.flip});var d=(o.endAnchor?-1:1)*h.flip,v=n.select(this).attr({&quot;text-anchor&quot;:d&gt;0?&quot;start&quot;:&quot;end&quot;,&quot;data-notex&quot;:1}).call(i.font,o.font).text(o.text).call(l.convertToTspans,t),y=i.bBox(this);v.attr(&quot;transform&quot;,f(h.p[0],h.p[1])+u(h.angle)+f(o.axis.labelpadding*d,.3*y.height)),g=Math.max(g,y.width+o.axis.labelpadding)})),d.exit().remove(),m.maxExtent=g,m}e.exports=function(t,e,r,i){var l=e.xaxis,u=e.yaxis,f=t._fullLayout._clips;c.makeTraceGroups(i,r,&quot;trace&quot;).each((function(e){var r=n.select(this),i=e[0],h=i.trace,g=h.aaxis,m=h.baxis,y=c.ensureSingle(r,&quot;g&quot;,&quot;minorlayer&quot;),x=c.ensureSingle(r,&quot;g&quot;,&quot;majorlayer&quot;),b=c.ensureSingle(r,&quot;g&quot;,&quot;boundarylayer&quot;),_=c.ensureSingle(r,&quot;g&quot;,&quot;labellayer&quot;);r.style(&quot;opacity&quot;,h.opacity),p(l,u,x,g,&quot;a&quot;,g._gridlines),p(l,u,x,m,&quot;b&quot;,m._gridlines),p(l,u,y,g,&quot;a&quot;,g._minorgridlines),p(l,u,y,m,&quot;b&quot;,m._minorgridlines),p(l,u,b,g,&quot;a-boundary&quot;,g._boundarylines),p(l,u,b,m,&quot;b-boundary&quot;,m._boundarylines);var w=d(t,l,u,h,i,_,g._labels,&quot;a-label&quot;),T=d(t,l,u,h,i,_,m._labels,&quot;b-label&quot;);!function(t,e,r,n,i,a,o,l){var u,f,h,p,d=c.aggNums(Math.min,null,r.a),g=c.aggNums(Math.max,null,r.a),m=c.aggNums(Math.min,null,r.b),y=c.aggNums(Math.max,null,r.b);u=.5*(d+g),f=m,h=r.ab2xy(u,f,!0),p=r.dxyda_rough(u,f),void 0===o.angle&amp;&amp;c.extendFlat(o,s(r,i,a,h,r.dxydb_rough(u,f)));v(t,e,r,n,h,p,r.aaxis,i,a,o,&quot;a-title&quot;),u=d,f=.5*(m+y),h=r.ab2xy(u,f,!0),p=r.dxydb_rough(u,f),void 0===l.angle&amp;&amp;c.extendFlat(l,s(r,i,a,h,r.dxyda_rough(u,f)));v(t,e,r,n,h,p,r.baxis,i,a,l,&quot;b-title&quot;)}(t,_,h,i,l,u,w,T),function(t,e,r,n,i){var s,l,u,f,h=r.select(&quot;#&quot;+t._clipPathId);h.size()||(h=r.append(&quot;clipPath&quot;).classed(&quot;carpetclip&quot;,!0));var p=c.ensureSingle(h,&quot;path&quot;,&quot;carpetboundary&quot;),d=e.clipsegments,g=[];for(f=0;f&lt;d.length;f++)s=d[f],l=a([],s.x,n.c2p),u=a([],s.y,i.c2p),g.push(o(l,u,s.bicubic));var m=&quot;M&quot;+g.join(&quot;L&quot;)+&quot;Z&quot;;h.attr(&quot;id&quot;,t._clipPathId),p.attr(&quot;d&quot;,m)}(h,i,f,l,u)}))};var g=h.LINE_SPACING,m=(1-h.MID_SHIFT)/g+1;function v(t,e,r,a,o,c,h,p,d,v,y){var x=[];h.title.text&amp;&amp;x.push(h.title.text);var b=e.selectAll(&quot;text.&quot;+y).data(x),_=v.maxExtent;b.enter().append(&quot;text&quot;).classed(y,!0),b.each((function(){var e=s(r,p,d,o,c);-1===[&quot;start&quot;,&quot;both&quot;].indexOf(h.showticklabels)&amp;&amp;(_=0);var a=h.title.font.size;_+=a+h.title.offset;var y=(v.angle+(v.flip&lt;0?180:0)-e.angle+450)%360,x=y&gt;90&amp;&amp;y&lt;270,b=n.select(this);b.text(h.title.text).call(l.convertToTspans,t),x&amp;&amp;(_=(-l.lineCount(b)+m)*g*a-_),b.attr(&quot;transform&quot;,f(e.p[0],e.p[1])+u(e.angle)+f(0,_)).attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(i.font,h.title.font)})),b.exit().remove()}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;./makepath&quot;:982,&quot;./map_1d_array&quot;:983,&quot;./orient_text&quot;:984,d3:169}],986:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib/search&quot;).findBin,a=t(&quot;./compute_control_points&quot;),o=t(&quot;./create_spline_evaluator&quot;),s=t(&quot;./create_i_derivative_evaluator&quot;),l=t(&quot;./create_j_derivative_evaluator&quot;);e.exports=function(t){var e=t._a,r=t._b,c=e.length,u=r.length,f=t.aaxis,h=t.baxis,p=e[0],d=e[c-1],g=r[0],m=r[u-1],v=e[e.length-1]-e[0],y=r[r.length-1]-r[0],x=v*n.RELATIVE_CULL_TOLERANCE,b=y*n.RELATIVE_CULL_TOLERANCE;p-=x,d+=x,g-=b,m+=b,t.isVisible=function(t,e){return t&gt;p&amp;&amp;t&lt;d&amp;&amp;e&gt;g&amp;&amp;e&lt;m},t.isOccluded=function(t,e){return t&lt;p||t&gt;d||e&lt;g||e&gt;m},t.setScale=function(){var e=t._x,r=t._y,n=a(t._xctrl,t._yctrl,e,r,f.smoothing,h.smoothing);t._xctrl=n[0],t._yctrl=n[1],t.evalxy=o([t._xctrl,t._yctrl],c,u,f.smoothing,h.smoothing),t.dxydi=s([t._xctrl,t._yctrl],f.smoothing,h.smoothing),t.dxydj=l([t._xctrl,t._yctrl],f.smoothing,h.smoothing)},t.i2a=function(t){var r=Math.max(0,Math.floor(t[0]),c-2),n=t[0]-r;return(1-n)*e[r]+n*e[r+1]},t.j2b=function(t){var e=Math.max(0,Math.floor(t[1]),c-2),n=t[1]-e;return(1-n)*r[e]+n*r[e+1]},t.ij2ab=function(e){return[t.i2a(e[0]),t.j2b(e[1])]},t.a2i=function(t){var r=Math.max(0,Math.min(i(t,e),c-2)),n=e[r],a=e[r+1];return Math.max(0,Math.min(c-1,r+(t-n)/(a-n)))},t.b2j=function(t){var e=Math.max(0,Math.min(i(t,r),u-2)),n=r[e],a=r[e+1];return Math.max(0,Math.min(u-1,e+(t-n)/(a-n)))},t.ab2ij=function(e){return[t.a2i(e[0]),t.b2j(e[1])]},t.i2c=function(e,r){return t.evalxy([],e,r)},t.ab2xy=function(n,i,a){if(!a&amp;&amp;(n&lt;e[0]||n&gt;e[c-1]|i&lt;r[0]||i&gt;r[u-1]))return[!1,!1];var o=t.a2i(n),s=t.b2j(i),l=t.evalxy([],o,s);if(a){var f,h,p,d,g=0,m=0,v=[];n&lt;e[0]?(f=0,h=0,g=(n-e[0])/(e[1]-e[0])):n&gt;e[c-1]?(f=c-2,h=1,g=(n-e[c-1])/(e[c-1]-e[c-2])):h=o-(f=Math.max(0,Math.min(c-2,Math.floor(o)))),i&lt;r[0]?(p=0,d=0,m=(i-r[0])/(r[1]-r[0])):i&gt;r[u-1]?(p=u-2,d=1,m=(i-r[u-1])/(r[u-1]-r[u-2])):d=s-(p=Math.max(0,Math.min(u-2,Math.floor(s)))),g&amp;&amp;(t.dxydi(v,f,p,h,d),l[0]+=v[0]*g,l[1]+=v[1]*g),m&amp;&amp;(t.dxydj(v,f,p,h,d),l[0]+=v[0]*m,l[1]+=v[1]*m)}return l},t.c2p=function(t,e,r){return[e.c2p(t[0]),r.c2p(t[1])]},t.p2x=function(t,e,r){return[e.p2c(t[0]),r.p2c(t[1])]},t.dadi=function(t){var r=Math.max(0,Math.min(e.length-2,t));return e[r+1]-e[r]},t.dbdj=function(t){var e=Math.max(0,Math.min(r.length-2,t));return r[e+1]-r[e]},t.dxyda=function(e,r,n,i){var a=t.dxydi(null,e,r,n,i),o=t.dadi(e,n);return[a[0]/o,a[1]/o]},t.dxydb=function(e,r,n,i){var a=t.dxydj(null,e,r,n,i),o=t.dbdj(r,i);return[a[0]/o,a[1]/o]},t.dxyda_rough=function(e,r,n){var i=v*(n||.1),a=t.ab2xy(e+i,r,!0),o=t.ab2xy(e-i,r,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dxydb_rough=function(e,r,n){var i=y*(n||.1),a=t.ab2xy(e,r+i,!0),o=t.ab2xy(e,r-i,!0);return[.5*(a[0]-o[0])/i,.5*(a[1]-o[1])/i]},t.dpdx=function(t){return t._m},t.dpdy=function(t){return t._m}}},{&quot;../../lib/search&quot;:798,&quot;./compute_control_points&quot;:974,&quot;./constants&quot;:975,&quot;./create_i_derivative_evaluator&quot;:976,&quot;./create_j_derivative_evaluator&quot;:977,&quot;./create_spline_evaluator&quot;:978}],987:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r){var i,a,o,s=[],l=[],c=t[0].length,u=t.length;function f(e,r){var n,i=0,a=0;return e&gt;0&amp;&amp;void 0!==(n=t[r][e-1])&amp;&amp;(a++,i+=n),e&lt;c-1&amp;&amp;void 0!==(n=t[r][e+1])&amp;&amp;(a++,i+=n),r&gt;0&amp;&amp;void 0!==(n=t[r-1][e])&amp;&amp;(a++,i+=n),r&lt;u-1&amp;&amp;void 0!==(n=t[r+1][e])&amp;&amp;(a++,i+=n),i/Math.max(1,a)}var h,p,d,g,m,v,y,x,b,_,w,T=0;for(i=0;i&lt;c;i++)for(a=0;a&lt;u;a++)void 0===t[a][i]&amp;&amp;(s.push(i),l.push(a),t[a][i]=f(i,a)),T=Math.max(T,Math.abs(t[a][i]));if(!s.length)return t;var k=0,M=0,A=s.length;do{for(k=0,o=0;o&lt;A;o++){i=s[o],a=l[o];var S,E,C,L,I,P,z=0,O=0;0===i?(C=e[I=Math.min(c-1,2)],L=e[1],S=t[a][I],O+=(E=t[a][1])+(E-S)*(e[0]-L)/(L-C),z++):i===c-1&amp;&amp;(C=e[I=Math.max(0,c-3)],L=e[c-2],S=t[a][I],O+=(E=t[a][c-2])+(E-S)*(e[c-1]-L)/(L-C),z++),(0===i||i===c-1)&amp;&amp;a&gt;0&amp;&amp;a&lt;u-1&amp;&amp;(h=r[a+1]-r[a],O+=((p=r[a]-r[a-1])*t[a+1][i]+h*t[a-1][i])/(p+h),z++),0===a?(C=r[P=Math.min(u-1,2)],L=r[1],S=t[P][i],O+=(E=t[1][i])+(E-S)*(r[0]-L)/(L-C),z++):a===u-1&amp;&amp;(C=r[P=Math.max(0,u-3)],L=r[u-2],S=t[P][i],O+=(E=t[u-2][i])+(E-S)*(r[u-1]-L)/(L-C),z++),(0===a||a===u-1)&amp;&amp;i&gt;0&amp;&amp;i&lt;c-1&amp;&amp;(h=e[i+1]-e[i],O+=((p=e[i]-e[i-1])*t[a][i+1]+h*t[a][i-1])/(p+h),z++),z?O/=z:(d=e[i+1]-e[i],g=e[i]-e[i-1],x=(m=r[a+1]-r[a])*(v=r[a]-r[a-1])*(m+v),O=((y=d*g*(d+g))*(v*t[a+1][i]+m*t[a-1][i])+x*(g*t[a][i+1]+d*t[a][i-1]))/(x*(g+d)+y*(v+m))),k+=(_=(b=O-t[a][i])/T)*_,w=z?0:.85,t[a][i]+=b*(1+w)}k=Math.sqrt(k)}while(M++&lt;100&amp;&amp;k&gt;1e-5);return n.log(&quot;Smoother converged to&quot;,k,&quot;after&quot;,M,&quot;iterations&quot;),t}},{&quot;../../lib&quot;:778}],988:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArray1D;e.exports=function(t,e,r){var i=r(&quot;x&quot;),a=i&amp;&amp;i.length,o=r(&quot;y&quot;),s=o&amp;&amp;o.length;if(!a&amp;&amp;!s)return!1;if(e._cheater=!i,a&amp;&amp;!n(i)||s&amp;&amp;!n(o))e._length=null;else{var l=a?i.length:1/0;s&amp;&amp;(l=Math.min(l,o.length)),e.a&amp;&amp;e.a.length&amp;&amp;(l=Math.min(l,e.a.length)),e.b&amp;&amp;e.b.length&amp;&amp;(l=Math.min(l,e.b.length)),e._length=l}return!0}},{&quot;../../lib&quot;:778}],989:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../scattergeo/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/color/attributes&quot;).defaultLine,l=t(&quot;../../lib/extend&quot;).extendFlat,c=i.marker.line;e.exports=l({locations:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},locationmode:i.locationmode,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},geojson:l({},i.geojson,{}),featureidkey:i.featureidkey,text:l({},i.text,{}),hovertext:l({},i.hovertext,{}),marker:{line:{color:l({},c.color,{dflt:s}),width:l({},c.width,{dflt:1}),editType:&quot;calc&quot;},opacity:{valType:&quot;number&quot;,arrayOk:!0,min:0,max:1,dflt:1,editType:&quot;style&quot;},editType:&quot;calc&quot;},selected:{marker:{opacity:i.selected.marker.opacity,editType:&quot;plot&quot;},editType:&quot;plot&quot;},unselected:{marker:{opacity:i.unselected.marker.opacity,editType:&quot;plot&quot;},editType:&quot;plot&quot;},hoverinfo:l({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;location&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n(),showlegend:l({},o.showlegend,{dflt:!1})},a(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/color/attributes&quot;:642,&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scattergeo/attributes&quot;:1229}],990:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../components/colorscale/calc&quot;),o=t(&quot;../scatter/arrays_to_calcdata&quot;),s=t(&quot;../scatter/calc_selection&quot;);function l(t){return t&amp;&amp;&quot;string&quot;==typeof t}e.exports=function(t,e){var r,c=e._length,u=new Array(c);r=e.geojson?function(t){return l(t)||n(t)}:l;for(var f=0;f&lt;c;f++){var h=u[f]={},p=e.locations[f],d=e.z[f];r(p)&amp;&amp;n(d)?(h.loc=p,h.z=d):(h.loc=null,h.z=i),h.index=f}return o(u,e),a(t,e,{vals:e.z,containerStr:&quot;&quot;,cLetter:&quot;z&quot;}),s(u,e),u}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../constants/numerical&quot;:753,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc_selection&quot;:1189,&quot;fast-isnumeric&quot;:241}],991:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;locations&quot;),c=s(&quot;z&quot;);if(l&amp;&amp;l.length&amp;&amp;n.isArrayOrTypedArray(c)&amp;&amp;c.length){e._length=Math.min(l.length,c.length);var u,f=s(&quot;geojson&quot;);(&quot;string&quot;==typeof f&amp;&amp;&quot;&quot;!==f||n.isPlainObject(f))&amp;&amp;(u=&quot;geojson-id&quot;),&quot;geojson-id&quot;===s(&quot;locationmode&quot;,u)&amp;&amp;s(&quot;featureidkey&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;marker.line.width&quot;)&amp;&amp;s(&quot;marker.line.color&quot;),s(&quot;marker.opacity&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),n.coerceSelectionMarkerOpacity(e,s)}else e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:989}],992:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){t.location=e.location,t.z=e.z;var a=n[i];return a.fIn&amp;&amp;a.fIn.properties&amp;&amp;(t.properties=a.fIn.properties),t.ct=a.ct,t}},{}],993:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../lib&quot;).fillText;e.exports=function(t,e,r){var o,s,l,c,u=t.cd,f=u[0].trace,h=t.subplot,p=[e,r],d=[e+360,r];for(s=0;s&lt;u.length;s++)if(c=!1,(o=u[s])._polygons){for(l=0;l&lt;o._polygons.length;l++)o._polygons[l].contains(p)&amp;&amp;(c=!c),o._polygons[l].contains(d)&amp;&amp;(c=!c);if(c)break}if(c&amp;&amp;o)return t.x0=t.x1=t.xa.c2p(o.ct),t.y0=t.y1=t.ya.c2p(o.ct),t.index=o.index,t.location=o.loc,t.z=o.z,t.zLabel=n.tickText(h.mockAxis,h.mockAxis.c2l(o.z),&quot;hover&quot;).text,t.hovertemplate=o.hovertemplate,function(t,e,r){if(e.hovertemplate)return;var n=r.hi||e.hoverinfo,o=String(r.loc),s=&quot;all&quot;===n?i.hoverinfo.flags:n.split(&quot;+&quot;),l=-1!==s.indexOf(&quot;name&quot;),c=-1!==s.indexOf(&quot;location&quot;),u=-1!==s.indexOf(&quot;z&quot;),f=-1!==s.indexOf(&quot;text&quot;),h=[];!l&amp;&amp;c?t.nameOverride=o:(l&amp;&amp;(t.nameOverride=e.name),c&amp;&amp;h.push(o));u&amp;&amp;h.push(t.zLabel);f&amp;&amp;a(r,e,h);t.extraText=h.join(&quot;&lt;br&gt;&quot;)}(t,f,o),[t]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./attributes&quot;:989}],994:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;./calc&quot;),calcGeoJSON:t(&quot;./plot&quot;).calcGeoJSON,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;choropleth&quot;,basePlotModule:t(&quot;../../plots/geo&quot;),categories:[&quot;geo&quot;,&quot;noOpacity&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/geo&quot;:860,&quot;../heatmap/colorbar&quot;:1068,&quot;./attributes&quot;:989,&quot;./calc&quot;:990,&quot;./defaults&quot;:991,&quot;./event_data&quot;:992,&quot;./hover&quot;:993,&quot;./plot&quot;:995,&quot;./select&quot;:996,&quot;./style&quot;:997}],995:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/geo_location_utils&quot;),o=t(&quot;../../lib/topojson_utils&quot;).getTopojsonFeatures,s=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,l=t(&quot;./style&quot;).style;e.exports={calcGeoJSON:function(t,e){for(var r=t[0].trace,n=e[r.geo],i=n._subplot,l=r.locationmode,c=r._length,u=&quot;geojson-id&quot;===l?a.extractTraceFeature(t):o(r,i.topojson),f=[],h=[],p=0;p&lt;c;p++){var d=t[p],g=&quot;geojson-id&quot;===l?d.fOut:a.locationToFeature(l,d.loc,u);if(g){d.geojson=g,d.ct=g.properties.ct,d._polygons=a.feature2polygons(g);var m=a.computeBbox(g);f.push(m[0],m[2]),h.push(m[1],m[3])}else d.geojson=null}if(&quot;geojson&quot;===n.fitbounds&amp;&amp;&quot;geojson-id&quot;===l){var v=a.computeBbox(a.getTraceGeojson(r));f=[v[0],v[2]],h=[v[1],v[3]]}var y={padded:!0};r._extremes.lon=s(n.lonaxis._ax,f,y),r._extremes.lat=s(n.lataxis._ax,h,y)},plot:function(t,e,r){var a=e.layers.backplot.select(&quot;.choroplethlayer&quot;);i.makeTraceGroups(a,r,&quot;trace choropleth&quot;).each((function(e){var r=n.select(this).selectAll(&quot;path.choroplethlocation&quot;).data(i.identity);r.enter().append(&quot;path&quot;).classed(&quot;choroplethlocation&quot;,!0),r.exit().remove(),l(t,e)}))}}},{&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/topojson_utils&quot;:806,&quot;../../plots/cartesian/autorange&quot;:827,&quot;./style&quot;:997,d3:169}],996:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[];if(!1===e)for(r=0;r&lt;s.length;r++)s[r].selected=0;else for(r=0;r&lt;s.length;r++)(i=(n=s[r]).ct)&amp;&amp;(a=l.c2p(i),o=c.c2p(i),e.contains([a,o],null,r,t)?(u.push({pointNumber:r,lon:i[0],lat:i[1]}),n.selected=1):n.selected=0);return u}},{}],997:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../components/colorscale&quot;);function s(t,e){var r=e[0].trace,s=e[0].node3.selectAll(&quot;.choroplethlocation&quot;),l=r.marker||{},c=l.line||{},u=o.makeColorScaleFuncFromTrace(r);s.each((function(t){n.select(this).attr(&quot;fill&quot;,u(t.z)).call(i.stroke,t.mlc||c.color).call(a.dashLine,&quot;&quot;,t.mlw||c.width||0).style(&quot;opacity&quot;,l.opacity)})),a.selectedPointStyle(s,r,t)}e.exports={style:function(t,e){e&amp;&amp;s(t,e)},styleOnSelect:function(t,e){var r=e[0].node3,n=e[0].trace;n.selectedpoints?a.selectedPointStyle(r.selectAll(&quot;.choroplethlocation&quot;),n,t):s(t,e)}}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,d3:169}],998:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../choropleth/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({locations:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},geojson:{valType:&quot;any&quot;,editType:&quot;calc&quot;},featureidkey:s({},n.featureidkey,{}),below:{valType:&quot;string&quot;,editType:&quot;plot&quot;},text:n.text,hovertext:n.hovertext,marker:{line:{color:s({},n.marker.line.color,{editType:&quot;plot&quot;}),width:s({},n.marker.line.width,{editType:&quot;plot&quot;}),editType:&quot;calc&quot;},opacity:s({},n.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;calc&quot;},selected:{marker:{opacity:s({},n.selected.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},editType:&quot;plot&quot;},unselected:{marker:{opacity:s({},n.unselected.marker.opacity,{editType:&quot;plot&quot;}),editType:&quot;plot&quot;},editType:&quot;plot&quot;},hoverinfo:n.hoverinfo,hovertemplate:a({},{keys:[&quot;properties&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})},i(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../choropleth/attributes&quot;:989}],999:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib/geojson_utils&quot;).makeBlank,l=t(&quot;../../lib/geo_location_utils&quot;);function c(t){var e,r=t[0].trace,n=r._opts;if(r.selectedpoints){for(var a=o.makeSelectedPointStyleFns(r),s=0;s&lt;t.length;s++){var l=t[s];l.fOut&amp;&amp;(l.fOut.properties.mo2=a.selectedOpacityFn(l))}e={type:&quot;identity&quot;,property:&quot;mo2&quot;}}else e=i.isArrayOrTypedArray(r.marker.opacity)?{type:&quot;identity&quot;,property:&quot;mo&quot;}:r.marker.opacity;return i.extendFlat(n.fill.paint,{&quot;fill-opacity&quot;:e}),i.extendFlat(n.line.paint,{&quot;line-opacity&quot;:e}),n}e.exports={convert:function(t){var e=t[0].trace,r=!0===e.visible&amp;&amp;0!==e._length,o={layout:{visibility:&quot;none&quot;},paint:{}},u={layout:{visibility:&quot;none&quot;},paint:{}},f=e._opts={fill:o,line:u,geojson:s()};if(!r)return f;var h=l.extractTraceFeature(t);if(!h)return f;var p,d,g,m=a.makeColorScaleFuncFromTrace(e),v=e.marker,y=v.line||{};i.isArrayOrTypedArray(v.opacity)&amp;&amp;(p=function(t){var e=t.mo;return n(e)?+i.constrain(e,0,1):0}),i.isArrayOrTypedArray(y.color)&amp;&amp;(d=function(t){return t.mlc}),i.isArrayOrTypedArray(y.width)&amp;&amp;(g=function(t){return t.mlw});for(var x=0;x&lt;t.length;x++){var b=t[x],_=b.fOut;if(_){var w=_.properties;w.fc=m(b.z),p&amp;&amp;(w.mo=p(b)),d&amp;&amp;(w.mlc=d(b)),g&amp;&amp;(w.mlw=g(b)),b.ct=w.ct,b._polygons=l.feature2polygons(_)}}var T=p?{type:&quot;identity&quot;,property:&quot;mo&quot;}:v.opacity;return i.extendFlat(o.paint,{&quot;fill-color&quot;:{type:&quot;identity&quot;,property:&quot;fc&quot;},&quot;fill-opacity&quot;:T}),i.extendFlat(u.paint,{&quot;line-color&quot;:d?{type:&quot;identity&quot;,property:&quot;mlc&quot;}:y.color,&quot;line-width&quot;:g?{type:&quot;identity&quot;,property:&quot;mlw&quot;}:y.width,&quot;line-opacity&quot;:T}),o.layout.visibility=&quot;visible&quot;,u.layout.visibility=&quot;visible&quot;,f.geojson={type:&quot;FeatureCollection&quot;,features:h},c(t),f},convertOnSelect:c}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/geojson_utils&quot;:772,&quot;fast-isnumeric&quot;:241}],1e3:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;locations&quot;),c=s(&quot;z&quot;),u=s(&quot;geojson&quot;);n.isArrayOrTypedArray(l)&amp;&amp;l.length&amp;&amp;n.isArrayOrTypedArray(c)&amp;&amp;c.length&amp;&amp;(&quot;string&quot;==typeof u&amp;&amp;&quot;&quot;!==u||n.isPlainObject(u))?(s(&quot;featureidkey&quot;),e._length=Math.min(l.length,c.length),s(&quot;below&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),s(&quot;marker.line.width&quot;)&amp;&amp;s(&quot;marker.line.color&quot;),s(&quot;marker.opacity&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),n.coerceSelectionMarkerOpacity(e,s)):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:998}],1001:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;../choropleth/calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;../choropleth/hover&quot;),eventData:t(&quot;../choropleth/event_data&quot;),selectPoints:t(&quot;../choropleth/select&quot;),styleOnSelect:function(t,e){e&amp;&amp;e[0].trace._glTrace.updateOnSelect(e)},getBelow:function(t,e){for(var r=e.getMapLayers(),n=r.length-2;n&gt;=0;n--){var i=r[n].id;if(&quot;string&quot;==typeof i&amp;&amp;0===i.indexOf(&quot;water&quot;))for(var a=n+1;a&lt;r.length;a++)if(&quot;string&quot;==typeof(i=r[a].id)&amp;&amp;-1===i.indexOf(&quot;plotly-&quot;))return i}},moduleType:&quot;trace&quot;,name:&quot;choroplethmapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;noOpacity&quot;,&quot;showLegend&quot;],meta:{hr_name:&quot;choropleth_mapbox&quot;}}},{&quot;../../plots/mapbox&quot;:885,&quot;../choropleth/calc&quot;:990,&quot;../choropleth/event_data&quot;:992,&quot;../choropleth/hover&quot;:993,&quot;../choropleth/select&quot;:996,&quot;../heatmap/colorbar&quot;:1068,&quot;./attributes&quot;:998,&quot;./defaults&quot;:1e3,&quot;./plot&quot;:1002}],1002:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;).convert,i=t(&quot;./convert&quot;).convertOnSelect,a=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix;function o(t,e){this.type=&quot;choroplethmapbox&quot;,this.subplot=t,this.uid=e,this.sourceId=&quot;source-&quot;+e,this.layerList=[[&quot;fill&quot;,a+e+&quot;-fill&quot;],[&quot;line&quot;,a+e+&quot;-line&quot;]],this.below=null}var s=o.prototype;s.update=function(t){this._update(n(t))},s.updateOnSelect=function(t){this._update(i(t))},s._update=function(t){var e=this.subplot,r=this.layerList,n=e.belowLookup[&quot;trace-&quot;+this.uid];e.map.getSource(this.sourceId).setData(t.geojson),n!==this.below&amp;&amp;(this._removeLayers(),this._addLayers(t,n),this.below=n);for(var i=0;i&lt;r.length;i++){var a=r[i],o=a[0],s=a[1],l=t[o];e.setOptions(s,&quot;setLayoutProperty&quot;,l.layout),&quot;visible&quot;===l.layout.visibility&amp;&amp;e.setOptions(s,&quot;setPaintProperty&quot;,l.paint)}},s._addLayers=function(t,e){for(var r=this.subplot,n=this.layerList,i=this.sourceId,a=0;a&lt;n.length;a++){var o=n[a],s=o[0],l=t[s];r.addLayer({type:s,id:o[1],source:i,layout:l.layout,paint:l.paint},e)}},s._removeLayers=function(){for(var t=this.subplot.map,e=this.layerList,r=e.length-1;r&gt;=0;r--)t.removeLayer(e[r][1])},s.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new o(t,r.uid),a=i.sourceId,s=n(e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid];return t.map.addSource(a,{type:&quot;geojson&quot;,data:s.geojson}),i._addLayers(s,l),e[0].trace._glTrace=i,i}},{&quot;../../plots/mapbox/constants&quot;:883,&quot;./convert&quot;:999}],1003:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../mesh3d/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},u:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},v:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},w:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sizemode:{valType:&quot;enumerated&quot;,values:[&quot;scaled&quot;,&quot;absolute&quot;],editType:&quot;calc&quot;,dflt:&quot;scaled&quot;},sizeref:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0},anchor:{valType:&quot;enumerated&quot;,editType:&quot;calc&quot;,values:[&quot;tip&quot;,&quot;tail&quot;,&quot;cm&quot;,&quot;center&quot;],dflt:&quot;cm&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertemplate:i({editType:&quot;calc&quot;},{keys:[&quot;norm&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})};s(l,n(&quot;&quot;,{colorAttr:&quot;u/v/w norm&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}));[&quot;opacity&quot;,&quot;lightposition&quot;,&quot;lighting&quot;].forEach((function(t){l[t]=a[t]})),l.hoverinfo=s({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;norm&quot;,&quot;text&quot;,&quot;name&quot;],dflt:&quot;x+y+z+norm+text+name&quot;}),l.transforms=void 0,e.exports=l},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../mesh3d/attributes&quot;:1128}],1004:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){for(var r=e.u,i=e.v,a=e.w,o=Math.min(e.x.length,e.y.length,e.z.length,r.length,i.length,a.length),s=-1/0,l=1/0,c=0;c&lt;o;c++){var u=r[c],f=i[c],h=a[c],p=Math.sqrt(u*u+f*f+h*h);s=Math.max(s,p),l=Math.min(l,p)}e._len=o,e._normMax=s,n(t,e,{vals:[l,s],containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651}],1005:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-cone3d&quot;),i=t(&quot;gl-cone3d&quot;).createConeMesh,a=t(&quot;../../lib&quot;).simpleMap,o=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,s=t(&quot;../../components/colorscale&quot;).extractOpts,l=t(&quot;../../plots/gl3d/zip3&quot;);function c(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var u=c.prototype;u.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index,r=this.data.x[e],n=this.data.y[e],i=this.data.z[e],a=this.data.u[e],o=this.data.v[e],s=this.data.w[e];t.traceCoordinate=[r,n,i,a,o,s,Math.sqrt(a*a+o*o+s*s)];var l=this.data.hovertext||this.data.text;return Array.isArray(l)&amp;&amp;void 0!==l[e]?t.textLabel=l[e]:l&amp;&amp;(t.textLabel=l),!0}};var f={xaxis:0,yaxis:1,zaxis:2},h={tip:1,tail:0,cm:.25,center:.5},p={tip:1,tail:1,cm:.75,center:.5};function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,c={};function u(t,e){var n=r[e],o=i[f[e]];return a(t,(function(t){return n.d2l(t)*o}))}c.vectors=l(u(e.u,&quot;xaxis&quot;),u(e.v,&quot;yaxis&quot;),u(e.w,&quot;zaxis&quot;),e._len),c.positions=l(u(e.x,&quot;xaxis&quot;),u(e.y,&quot;yaxis&quot;),u(e.z,&quot;zaxis&quot;),e._len);var d=s(e);c.colormap=o(e),c.vertexIntensityBounds=[d.min/e._normMax,d.max/e._normMax],c.coneOffset=h[e.anchor],&quot;scaled&quot;===e.sizemode?c.coneSize=e.sizeref||.5:c.coneSize=e.sizeref&amp;&amp;e._normMax?e.sizeref/e._normMax:.5;var g=n(c),m=e.lightposition;return g.lightPosition=[m.x,m.y,m.z],g.ambient=e.lighting.ambient,g.diffuse=e.lighting.diffuse,g.specular=e.lighting.specular,g.roughness=e.lighting.roughness,g.fresnel=e.lighting.fresnel,g.opacity=e.opacity,e._pad=p[e.anchor]*g.vectorScale*g.coneScale*e._normMax,g}u.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new c(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../plots/gl3d/zip3&quot;:881,&quot;gl-cone3d&quot;:260}],1006:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;u&quot;),c=s(&quot;v&quot;),u=s(&quot;w&quot;),f=s(&quot;x&quot;),h=s(&quot;y&quot;),p=s(&quot;z&quot;);l&amp;&amp;l.length&amp;&amp;c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length&amp;&amp;p&amp;&amp;p.length?(s(&quot;sizeref&quot;),s(&quot;sizemode&quot;),s(&quot;anchor&quot;),s(&quot;lighting.ambient&quot;),s(&quot;lighting.diffuse&quot;),s(&quot;lighting.specular&quot;),s(&quot;lighting.roughness&quot;),s(&quot;lighting.fresnel&quot;),s(&quot;lightposition.x&quot;),s(&quot;lightposition.y&quot;),s(&quot;lightposition.z&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:1003}],1007:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;cone&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;),plot:t(&quot;./convert&quot;),eventData:function(t,e){return t.norm=e.traceCoordinate[6],t},meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1003,&quot;./calc&quot;:1004,&quot;./convert&quot;:1005,&quot;./defaults&quot;:1006}],1008:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../components/drawing/attributes&quot;).dash,s=t(&quot;../../plots/font_attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=t(&quot;../../constants/filter_ops&quot;),u=c.COMPARISON_OPS2,f=c.INTERVAL_OPS,h=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,i.line);e.exports=l({z:n.z,x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,text:n.text,hovertext:n.hovertext,transpose:n.transpose,xtype:n.xtype,ytype:n.ytype,zhoverformat:n.zhoverformat,hovertemplate:n.hovertemplate,hoverongaps:n.hoverongaps,connectgaps:l({},n.connectgaps,{}),fillcolor:{valType:&quot;color&quot;,editType:&quot;calc&quot;},autocontour:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;,impliedEdits:{&quot;contours.start&quot;:void 0,&quot;contours.end&quot;:void 0,&quot;contours.size&quot;:void 0}},ncontours:{valType:&quot;integer&quot;,dflt:15,min:1,editType:&quot;calc&quot;},contours:{type:{valType:&quot;enumerated&quot;,values:[&quot;levels&quot;,&quot;constraint&quot;],dflt:&quot;levels&quot;,editType:&quot;calc&quot;},start:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},end:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},size:{valType:&quot;number&quot;,dflt:null,min:0,editType:&quot;plot&quot;,impliedEdits:{&quot;^autocontour&quot;:!1}},coloring:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;heatmap&quot;,&quot;lines&quot;,&quot;none&quot;],dflt:&quot;fill&quot;,editType:&quot;calc&quot;},showlines:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},showlabels:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},labelfont:s({editType:&quot;plot&quot;,colorEditType:&quot;style&quot;}),labelformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},operation:{valType:&quot;enumerated&quot;,values:[].concat(u).concat(f),dflt:&quot;=&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},editType:&quot;calc&quot;,impliedEdits:{autocontour:!1}},line:{color:l({},h.color,{editType:&quot;style+colorbars&quot;}),width:{valType:&quot;number&quot;,min:0,editType:&quot;style+colorbars&quot;},dash:o,smoothing:l({},h.smoothing,{}),editType:&quot;plot&quot;}},a(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing/attributes&quot;:664,&quot;../../constants/docs&quot;:748,&quot;../../constants/filter_ops&quot;:749,&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;../heatmap/attributes&quot;:1065,&quot;../scatter/attributes&quot;:1187}],1009:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale&quot;),i=t(&quot;../heatmap/calc&quot;),a=t(&quot;./set_contours&quot;),o=t(&quot;./end_plus&quot;);e.exports=function(t,e){var r=i(t,e),s=r[0].z;a(e,s);var l,c=e.contours,u=n.extractOpts(e);if(&quot;heatmap&quot;===c.coloring&amp;&amp;u.auto&amp;&amp;!1===e.autocontour){var f=c.start,h=o(c),p=c.size||1,d=Math.floor((h-f)/p)+1;isFinite(p)||(p=1,d=1);var g=f-p/2;l=[g,g+d*p]}else l=s;return n.calc(t,e,{vals:l,cLetter:&quot;z&quot;}),r}},{&quot;../../components/colorscale&quot;:655,&quot;../heatmap/calc&quot;:1066,&quot;./end_plus&quot;:1019,&quot;./set_contours&quot;:1027}],1010:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n=t[0],i=n.z;switch(e.type){case&quot;levels&quot;:var a=Math.min(i[0][0],i[0][1]);for(r=0;r&lt;t.length;r++){var o=t[r];o.prefixBoundary=!o.edgepaths.length&amp;&amp;(a&gt;o.level||o.starts.length&amp;&amp;a===o.level)}break;case&quot;constraint&quot;:if(n.prefixBoundary=!1,n.edgepaths.length)return;var s=n.x.length,l=n.y.length,c=-1/0,u=1/0;for(r=0;r&lt;l;r++)u=Math.min(u,i[r][0]),u=Math.min(u,i[r][s-1]),c=Math.max(c,i[r][0]),c=Math.max(c,i[r][s-1]);for(r=1;r&lt;s-1;r++)u=Math.min(u,i[0][r]),u=Math.min(u,i[l-1][r]),c=Math.max(c,i[0][r]),c=Math.max(c,i[l-1][r]);var f,h,p=e.value;switch(e._operation){case&quot;&gt;&quot;:p&gt;c&amp;&amp;(n.prefixBoundary=!0);break;case&quot;&lt;&quot;:(p&lt;u||n.starts.length&amp;&amp;p===u)&amp;&amp;(n.prefixBoundary=!0);break;case&quot;[]&quot;:f=Math.min(p[0],p[1]),((h=Math.max(p[0],p[1]))&lt;u||f&gt;c||n.starts.length&amp;&amp;h===u)&amp;&amp;(n.prefixBoundary=!0);break;case&quot;][&quot;:f=Math.min(p[0],p[1]),h=Math.max(p[0],p[1]),f&lt;u&amp;&amp;h&gt;c&amp;&amp;(n.prefixBoundary=!0)}}}},{}],1011:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale&quot;),i=t(&quot;./make_color_map&quot;),a=t(&quot;./end_plus&quot;);e.exports={min:&quot;zmin&quot;,max:&quot;zmax&quot;,calc:function(t,e,r){var o=e.contours,s=e.line,l=o.size||1,c=o.coloring,u=i(e,{isColorbar:!0});if(&quot;heatmap&quot;===c){var f=n.extractOpts(e);r._fillgradient=f.reversescale?n.flipScale(f.colorscale):f.colorscale,r._zrange=[f.min,f.max]}else&quot;fill&quot;===c&amp;&amp;(r._fillcolor=u);r._line={color:&quot;lines&quot;===c?u:s.color,width:!1!==o.showlines?s.width:0,dash:s.dash},r._levels={start:o.start,end:a(o),size:l}}}},{&quot;../../components/colorscale&quot;:655,&quot;./end_plus&quot;:1019,&quot;./make_color_map&quot;:1024}],1012:[function(t,e,r){&quot;use strict&quot;;e.exports={BOTTOMSTART:[1,9,13,104,713],TOPSTART:[4,6,7,104,713],LEFTSTART:[8,12,14,208,1114],RIGHTSTART:[2,3,11,208,1114],NEWDELTA:[null,[-1,0],[0,-1],[-1,0],[1,0],null,[0,-1],[-1,0],[0,1],[0,1],null,[0,1],[1,0],[1,0],[0,-1]],CHOOSESADDLE:{104:[4,1],208:[2,8],713:[7,13],1114:[11,14]},SADDLEREMAINDER:{1:4,2:8,4:1,7:13,8:2,11:14,13:7,14:11},LABELDISTANCE:2,LABELINCREASE:10,LABELMIN:3,LABELMAX:10,LABELOPTIMIZER:{EDGECOST:1,ANGLECOST:1,NEIGHBORCOST:5,SAMELEVELFACTOR:10,SAMELEVELDISTANCE:5,MAXCOST:100,INITIALSEARCHPOINTS:10,ITERATIONS:5}}},{}],1013:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;./label_defaults&quot;),a=t(&quot;../../components/color&quot;),o=a.addOpacity,s=a.opacity,l=t(&quot;../../constants/filter_ops&quot;),c=l.CONSTRAINT_REDUCTION,u=l.COMPARISON_OPS2;e.exports=function(t,e,r,a,l,f){var h,p,d,g=e.contours,m=r(&quot;contours.operation&quot;);(g._operation=c[m],function(t,e){var r;-1===u.indexOf(e.operation)?(t(&quot;contours.value&quot;,[0,1]),Array.isArray(e.value)?e.value.length&gt;2?e.value=e.value.slice(2):0===e.length?e.value=[0,1]:e.length&lt;2?(r=parseFloat(e.value[0]),e.value=[r,r+1]):e.value=[parseFloat(e.value[0]),parseFloat(e.value[1])]:n(e.value)&amp;&amp;(r=parseFloat(e.value),e.value=[r,r+1])):(t(&quot;contours.value&quot;,0),n(e.value)||(Array.isArray(e.value)?e.value=parseFloat(e.value[0]):e.value=0))}(r,g),&quot;=&quot;===m?h=g.showlines=!0:(h=r(&quot;contours.showlines&quot;),d=r(&quot;fillcolor&quot;,o((t.line||{}).color||l,.5))),h)&amp;&amp;(p=r(&quot;line.color&quot;,d&amp;&amp;s(d)?o(e.fillcolor,1):l),r(&quot;line.width&quot;,2),r(&quot;line.dash&quot;));r(&quot;line.smoothing&quot;),i(r,a,p,f)}},{&quot;../../components/color&quot;:643,&quot;../../constants/filter_ops&quot;:749,&quot;./label_defaults&quot;:1023,&quot;fast-isnumeric&quot;:241}],1014:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/filter_ops&quot;),i=t(&quot;fast-isnumeric&quot;);function a(t,e){var r,a=Array.isArray(e);function o(t){return i(t)?+t:null}return-1!==n.COMPARISON_OPS2.indexOf(t)?r=o(a?e[0]:e):-1!==n.INTERVAL_OPS.indexOf(t)?r=a?[o(e[0]),o(e[1])]:[o(e),o(e)]:-1!==n.SET_OPS.indexOf(t)&amp;&amp;(r=a?e.map(o):[o(e)]),r}function o(t){return function(e){e=a(t,e);var r=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return{start:r,end:n,size:n-r}}}function s(t){return function(e){return{start:e=a(t,e),end:1/0,size:1/0}}}e.exports={&quot;[]&quot;:o(&quot;[]&quot;),&quot;][&quot;:o(&quot;][&quot;),&quot;&gt;&quot;:s(&quot;&gt;&quot;),&quot;&lt;&quot;:s(&quot;&lt;&quot;),&quot;=&quot;:s(&quot;=&quot;)}},{&quot;../../constants/filter_ops&quot;:749,&quot;fast-isnumeric&quot;:241}],1015:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i=n(&quot;contours.start&quot;),a=n(&quot;contours.end&quot;),o=!1===i||!1===a,s=r(&quot;contours.size&quot;);!(o?e.autocontour=!0:r(&quot;autocontour&quot;,!1))&amp;&amp;s||r(&quot;ncontours&quot;)}},{}],1016:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);function i(t){return n.extendFlat({},t,{edgepaths:n.extendDeep([],t.edgepaths),paths:n.extendDeep([],t.paths),starts:n.extendDeep([],t.starts)})}e.exports=function(t,e){var r,a,o,s=function(t){return t.reverse()},l=function(t){return t};switch(e){case&quot;=&quot;:case&quot;&lt;&quot;:return t;case&quot;&gt;&quot;:for(1!==t.length&amp;&amp;n.warn(&quot;Contour data invalid for the specified inequality operation.&quot;),a=t[0],r=0;r&lt;a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r&lt;a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(r=0;r&lt;a.starts.length;r++)a.starts[r]=s(a.starts[r]);return t;case&quot;][&quot;:var c=s;s=l,l=c;case&quot;[]&quot;:for(2!==t.length&amp;&amp;n.warn(&quot;Contour data invalid for the specified inequality range operation.&quot;),a=i(t[0]),o=i(t[1]),r=0;r&lt;a.edgepaths.length;r++)a.edgepaths[r]=s(a.edgepaths[r]);for(r=0;r&lt;a.paths.length;r++)a.paths[r]=s(a.paths[r]);for(r=0;r&lt;a.starts.length;r++)a.starts[r]=s(a.starts[r]);for(;o.edgepaths.length;)a.edgepaths.push(l(o.edgepaths.shift()));for(;o.paths.length;)a.paths.push(l(o.paths.shift()));for(;o.starts.length;)a.starts.push(l(o.starts.shift()));return[a]}}},{&quot;../../lib&quot;:778}],1017:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./constraint_defaults&quot;),s=t(&quot;./contours_defaults&quot;),l=t(&quot;./style_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}if(i(t,e,f,u)){a(t,e,u,f),f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;hoverongaps&quot;);var h=&quot;constraint&quot;===f(&quot;contours.type&quot;);f(&quot;connectgaps&quot;,n.isArray1D(e.z)),h?o(t,e,f,u,r):(s(t,e,f,(function(r){return n.coerce2(t,e,c,r)})),l(t,e,f,u))}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../heatmap/xyz_defaults&quot;:1079,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:1008,&quot;./constraint_defaults&quot;:1013,&quot;./contours_defaults&quot;:1015,&quot;./style_defaults&quot;:1029}],1018:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constraint_mapping&quot;),a=t(&quot;./end_plus&quot;);e.exports=function(t,e,r){for(var o=&quot;constraint&quot;===t.type?i[t._operation](t.value):t,s=o.size,l=[],c=a(o),u=r.trace._carpetTrace,f=u?{xaxis:u.aaxis,yaxis:u.baxis,x:r.a,y:r.b}:{xaxis:e.xaxis,yaxis:e.yaxis,x:r.x,y:r.y},h=o.start;h&lt;c;h+=s)if(l.push(n.extendFlat({level:h,crossings:{},starts:[],edgepaths:[],paths:[],z:r.z,smoothing:r.trace.line.smoothing},f)),l.length&gt;1e3){n.warn(&quot;Too many contours, clipping at 1000&quot;,t);break}return l}},{&quot;../../lib&quot;:778,&quot;./constraint_mapping&quot;:1014,&quot;./end_plus&quot;:1019}],1019:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){return t.end+t.size/1e6}},{}],1020:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constants&quot;);function a(t,e,r,n){return Math.abs(t[0]-e[0])&lt;r&amp;&amp;Math.abs(t[1]-e[1])&lt;n}function o(t,e,r,o,l){var c,u=e.join(&quot;,&quot;),f=t.crossings[u],h=function(t,e,r){var n=0,a=0;t&gt;20&amp;&amp;e?208===t||1114===t?n=0===r[0]?1:-1:a=0===r[1]?1:-1:-1!==i.BOTTOMSTART.indexOf(t)?a=1:-1!==i.LEFTSTART.indexOf(t)?n=1:-1!==i.TOPSTART.indexOf(t)?a=-1:n=-1;return[n,a]}(f,r,e),p=[s(t,e,[-h[0],-h[1]])],d=t.z.length,g=t.z[0].length,m=e.slice(),v=h.slice();for(c=0;c&lt;1e4;c++){if(f&gt;20?(f=i.CHOOSESADDLE[f][(h[0]||h[1])&lt;0?0:1],t.crossings[u]=i.SADDLEREMAINDER[f]):delete t.crossings[u],!(h=i.NEWDELTA[f])){n.log(&quot;Found bad marching index:&quot;,f,e,t.level);break}p.push(s(t,e,h)),e[0]+=h[0],e[1]+=h[1],u=e.join(&quot;,&quot;),a(p[p.length-1],p[p.length-2],o,l)&amp;&amp;p.pop();var y=h[0]&amp;&amp;(e[0]&lt;0||e[0]&gt;g-2)||h[1]&amp;&amp;(e[1]&lt;0||e[1]&gt;d-2);if(e[0]===m[0]&amp;&amp;e[1]===m[1]&amp;&amp;h[0]===v[0]&amp;&amp;h[1]===v[1]||r&amp;&amp;y)break;f=t.crossings[u]}1e4===c&amp;&amp;n.log(&quot;Infinite loop in contour?&quot;);var x,b,_,w,T,k,M,A,S,E,C,L,I,P,z,O=a(p[0],p[p.length-1],o,l),D=0,R=.2*t.smoothing,F=[],B=0;for(c=1;c&lt;p.length;c++)L=p[c],I=p[c-1],P=void 0,z=void 0,P=L[2]-I[2],z=L[3]-I[3],D+=M=Math.sqrt(P*P+z*z),F.push(M);var N=D/F.length*R;function j(t){return p[t%p.length]}for(c=p.length-2;c&gt;=B;c--)if((x=F[c])&lt;N){for(_=0,b=c-1;b&gt;=B&amp;&amp;x+F[b]&lt;N;b--)x+=F[b];if(O&amp;&amp;c===p.length-2)for(_=0;_&lt;b&amp;&amp;x+F[_]&lt;N;_++)x+=F[_];T=c-b+_+1,k=Math.floor((c+b+_+2)/2),w=O||c!==p.length-2?O||-1!==b?T%2?j(k):[(j(k)[0]+j(k+1)[0])/2,(j(k)[1]+j(k+1)[1])/2]:p[0]:p[p.length-1],p.splice(b+1,c-b+1,w),c=b+1,_&amp;&amp;(B=_),O&amp;&amp;(c===p.length-2?p[_]=p[p.length-1]:0===c&amp;&amp;(p[p.length-1]=p[0]))}for(p.splice(0,B),c=0;c&lt;p.length;c++)p[c].length=2;if(!(p.length&lt;2))if(O)p.pop(),t.paths.push(p);else{r||n.log(&quot;Unclosed interior contour?&quot;,t.level,m.join(&quot;,&quot;),p.join(&quot;L&quot;));var U=!1;for(A=0;A&lt;t.edgepaths.length;A++)if(E=t.edgepaths[A],!U&amp;&amp;a(E[0],p[p.length-1],o,l)){p.pop(),U=!0;var V=!1;for(S=0;S&lt;t.edgepaths.length;S++)if(a((C=t.edgepaths[S])[C.length-1],p[0],o,l)){V=!0,p.shift(),t.edgepaths.splice(A,1),S===A?t.paths.push(p.concat(C)):(S&gt;A&amp;&amp;S--,t.edgepaths[S]=C.concat(p,E));break}V||(t.edgepaths[A]=p.concat(E))}for(A=0;A&lt;t.edgepaths.length&amp;&amp;!U;A++)a((E=t.edgepaths[A])[E.length-1],p[0],o,l)&amp;&amp;(p.shift(),t.edgepaths[A]=E.concat(p),U=!0);U||t.edgepaths.push(p)}}function s(t,e,r){var n=e[0]+Math.max(r[0],0),i=e[1]+Math.max(r[1],0),a=t.z[i][n],o=t.xaxis,s=t.yaxis;if(r[1]){var l=(t.level-a)/(t.z[i][n+1]-a);return[o.c2p((1-l)*t.x[n]+l*t.x[n+1],!0),s.c2p(t.y[i],!0),n+l,i]}var c=(t.level-a)/(t.z[i+1][n]-a);return[o.c2p(t.x[n],!0),s.c2p((1-c)*t.y[i]+c*t.y[i+1],!0),n,i+c]}e.exports=function(t,e,r){var i,a,s,l;for(e=e||.01,r=r||.01,a=0;a&lt;t.length;a++){for(s=t[a],l=0;l&lt;s.starts.length;l++)o(s,s.starts[l],&quot;edge&quot;,e,r);for(i=0;Object.keys(s.crossings).length&amp;&amp;i&lt;1e4;)i++,o(s,Object.keys(s.crossings)[0].split(&quot;,&quot;).map(Number),void 0,e,r);1e4===i&amp;&amp;n.log(&quot;Infinite loop in contour?&quot;)}}},{&quot;../../lib&quot;:778,&quot;./constants&quot;:1012}],1021:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../heatmap/hover&quot;);e.exports=function(t,e,r,a,o){var s=i(t,e,r,a,o,!0);return s&amp;&amp;s.forEach((function(t){var e=t.trace;&quot;constraint&quot;===e.contours.type&amp;&amp;(e.fillcolor&amp;&amp;n.opacity(e.fillcolor)?t.color=n.addOpacity(e.fillcolor,1):e.contours.showlines&amp;&amp;n.opacity(e.line.color)&amp;&amp;(t.color=n.addOpacity(e.line.color,1)))})),s}},{&quot;../../components/color&quot;:643,&quot;../heatmap/hover&quot;:1072}],1022:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),colorbar:t(&quot;./colorbar&quot;),hoverPoints:t(&quot;./hover&quot;),moduleType:&quot;trace&quot;,name:&quot;contour&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;contour&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1008,&quot;./calc&quot;:1009,&quot;./colorbar&quot;:1011,&quot;./defaults&quot;:1017,&quot;./hover&quot;:1021,&quot;./plot&quot;:1026,&quot;./style&quot;:1028}],1023:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r,i){if(i||(i={}),t(&quot;contours.showlabels&quot;)){var a=e.font;n.coerceFont(t,&quot;contours.labelfont&quot;,{family:a.family,size:a.size,color:r}),t(&quot;contours.labelformat&quot;)}!1!==i.hasHover&amp;&amp;t(&quot;zhoverformat&quot;)}},{&quot;../../lib&quot;:778}],1024:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/colorscale&quot;),a=t(&quot;./end_plus&quot;);e.exports=function(t){var e=t.contours,r=e.start,o=a(e),s=e.size||1,l=Math.floor((o-r)/s)+1,c=&quot;lines&quot;===e.coloring?0:1,u=i.extractOpts(t);isFinite(s)||(s=1,l=1);var f,h,p=u.reversescale?i.flipScale(u.colorscale):u.colorscale,d=p.length,g=new Array(d),m=new Array(d);if(&quot;heatmap&quot;===e.coloring){var v=u.min,y=u.max;for(h=0;h&lt;d;h++)f=p[h],g[h]=f[0]*(y-v)+v,m[h]=f[1];var x=n.extent([v,y,e.start,e.start+s*(l-1)]),b=x[v&lt;y?0:1],_=x[v&lt;y?1:0];b!==v&amp;&amp;(g.splice(0,0,b),m.splice(0,0,m[0])),_!==y&amp;&amp;(g.push(_),m.push(m[m.length-1]))}else for(h=0;h&lt;d;h++)f=p[h],g[h]=(f[0]*(l+c-1)-c/2)*s+r,m[h]=f[1];return i.makeColorScaleFunc({domain:g,range:m},{noNumericCheck:!0})}},{&quot;../../components/colorscale&quot;:655,&quot;./end_plus&quot;:1019,d3:169}],1025:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);function i(t,e){var r=(e[0][0]&gt;t?0:1)+(e[0][1]&gt;t?0:2)+(e[1][1]&gt;t?0:4)+(e[1][0]&gt;t?0:8);return 5===r||10===r?t&gt;(e[0][0]+e[0][1]+e[1][0]+e[1][1])/4?5===r?713:1114:5===r?104:208:15===r?0:r}e.exports=function(t){var e,r,a,o,s,l,c,u,f,h=t[0].z,p=h.length,d=h[0].length,g=2===p||2===d;for(r=0;r&lt;p-1;r++)for(o=[],0===r&amp;&amp;(o=o.concat(n.BOTTOMSTART)),r===p-2&amp;&amp;(o=o.concat(n.TOPSTART)),e=0;e&lt;d-1;e++)for(a=o.slice(),0===e&amp;&amp;(a=a.concat(n.LEFTSTART)),e===d-2&amp;&amp;(a=a.concat(n.RIGHTSTART)),s=e+&quot;,&quot;+r,l=[[h[r][e],h[r][e+1]],[h[r+1][e],h[r+1][e+1]]],f=0;f&lt;t.length;f++)(c=i((u=t[f]).level,l))&amp;&amp;(u.crossings[s]=c,-1!==a.indexOf(c)&amp;&amp;(u.starts.push([e,r]),g&amp;&amp;-1!==a.indexOf(c,a.indexOf(c)+1)&amp;&amp;u.starts.push([e,r])))}},{&quot;./constants&quot;:1012}],1026:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../components/colorscale&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;../../plots/cartesian/set_convert&quot;),u=t(&quot;../heatmap/plot&quot;),f=t(&quot;./make_crossings&quot;),h=t(&quot;./find_all_paths&quot;),p=t(&quot;./empty_pathinfo&quot;),d=t(&quot;./convert_to_constraints&quot;),g=t(&quot;./close_boundaries&quot;),m=t(&quot;./constants&quot;),v=m.LABELOPTIMIZER;function y(t,e){var r,n,o,s,l,c,u,f=&quot;&quot;,h=0,p=t.edgepaths.map((function(t,e){return e})),d=!0;function g(t){return Math.abs(t[1]-e[2][1])&lt;.01}function m(t){return Math.abs(t[0]-e[0][0])&lt;.01}function v(t){return Math.abs(t[0]-e[2][0])&lt;.01}for(;p.length;){for(c=a.smoothopen(t.edgepaths[h],t.smoothing),f+=d?c:c.replace(/^M/,&quot;L&quot;),p.splice(p.indexOf(h),1),r=t.edgepaths[h][t.edgepaths[h].length-1],s=-1,o=0;o&lt;4;o++){if(!r){i.log(&quot;Missing end?&quot;,h,t);break}for(u=r,Math.abs(u[1]-e[0][1])&lt;.01&amp;&amp;!v(r)?n=e[1]:m(r)?n=e[0]:g(r)?n=e[3]:v(r)&amp;&amp;(n=e[2]),l=0;l&lt;t.edgepaths.length;l++){var y=t.edgepaths[l][0];Math.abs(r[0]-n[0])&lt;.01?Math.abs(r[0]-y[0])&lt;.01&amp;&amp;(y[1]-r[1])*(n[1]-y[1])&gt;=0&amp;&amp;(n=y,s=l):Math.abs(r[1]-n[1])&lt;.01?Math.abs(r[1]-y[1])&lt;.01&amp;&amp;(y[0]-r[0])*(n[0]-y[0])&gt;=0&amp;&amp;(n=y,s=l):i.log(&quot;endpt to newendpt is not vert. or horz.&quot;,r,n,y)}if(r=n,s&gt;=0)break;f+=&quot;L&quot;+n}if(s===t.edgepaths.length){i.log(&quot;unclosed perimeter path&quot;);break}h=s,(d=-1===p.indexOf(h))&amp;&amp;(h=p[0],f+=&quot;Z&quot;)}for(h=0;h&lt;t.paths.length;h++)f+=a.smoothclosed(t.paths[h],t.smoothing);return f}function x(t,e,r,n){var a=e.width/2,o=e.height/2,s=t.x,l=t.y,c=t.theta,u=Math.cos(c)*a,f=Math.sin(c)*a,h=(s&gt;n.center?n.right-s:s-n.left)/(u+Math.abs(Math.sin(c)*o)),p=(l&gt;n.middle?n.bottom-l:l-n.top)/(Math.abs(f)+Math.cos(c)*o);if(h&lt;1||p&lt;1)return 1/0;var d=v.EDGECOST*(1/(h-1)+1/(p-1));d+=v.ANGLECOST*c*c;for(var g=s-u,m=l-f,y=s+u,x=l+f,b=0;b&lt;r.length;b++){var _=r[b],w=Math.cos(_.theta)*_.width/2,T=Math.sin(_.theta)*_.width/2,k=2*i.segmentDistance(g,m,y,x,_.x-w,_.y-T,_.x+w,_.y+T)/(e.height+_.height),M=_.level===e.level,A=M?v.SAMELEVELDISTANCE:1;if(k&lt;=A)return 1/0;d+=v.NEIGHBORCOST*(M?v.SAMELEVELFACTOR:1)/(k-A)}return d}function b(t){var e,r,n=t.trace._emptypoints,i=[],a=t.z.length,o=t.z[0].length,s=[];for(e=0;e&lt;o;e++)s.push(1);for(e=0;e&lt;a;e++)i.push(s.slice());for(e=0;e&lt;n.length;e++)i[(r=n[e])[0]][r[1]]=0;return t.zmask=i,i}r.plot=function(t,e,o,s){var l=e.xaxis,c=e.yaxis;i.makeTraceGroups(s,o,&quot;contour&quot;).each((function(o){var s=n.select(this),v=o[0],x=v.trace,_=v.x,w=v.y,T=x.contours,k=p(T,e,v),M=i.ensureSingle(s,&quot;g&quot;,&quot;heatmapcoloring&quot;),A=[];&quot;heatmap&quot;===T.coloring&amp;&amp;(A=[o]),u(t,e,A,M),f(k),h(k);var S=l.c2p(_[0],!0),E=l.c2p(_[_.length-1],!0),C=c.c2p(w[0],!0),L=c.c2p(w[w.length-1],!0),I=[[S,L],[E,L],[E,C],[S,C]],P=k;&quot;constraint&quot;===T.type&amp;&amp;(P=d(k,T._operation)),function(t,e,r){var n=i.ensureSingle(t,&quot;g&quot;,&quot;contourbg&quot;).selectAll(&quot;path&quot;).data(&quot;fill&quot;===r.coloring?[0]:[]);n.enter().append(&quot;path&quot;),n.exit().remove(),n.attr(&quot;d&quot;,&quot;M&quot;+e.join(&quot;L&quot;)+&quot;Z&quot;).style(&quot;stroke&quot;,&quot;none&quot;)}(s,I,T),function(t,e,r,a){var o=&quot;fill&quot;===a.coloring||&quot;constraint&quot;===a.type&amp;&amp;&quot;=&quot;!==a._operation,s=&quot;M&quot;+r.join(&quot;L&quot;)+&quot;Z&quot;;o&amp;&amp;g(e,a);var l=i.ensureSingle(t,&quot;g&quot;,&quot;contourfill&quot;).selectAll(&quot;path&quot;).data(o?e:[]);l.enter().append(&quot;path&quot;),l.exit().remove(),l.each((function(t){var e=(t.prefixBoundary?s:&quot;&quot;)+y(t,r);e?n.select(this).attr(&quot;d&quot;,e).style(&quot;stroke&quot;,&quot;none&quot;):n.select(this).remove()}))}(s,P,I,T),function(t,e,o,s,l){var c=i.ensureSingle(t,&quot;g&quot;,&quot;contourlines&quot;),u=!1!==l.showlines,f=l.showlabels,h=u&amp;&amp;f,p=r.createLines(c,u||f,e),d=r.createLineClip(c,h,o,s.trace.uid),g=t.selectAll(&quot;g.contourlabels&quot;).data(f?[0]:[]);if(g.exit().remove(),g.enter().append(&quot;g&quot;).classed(&quot;contourlabels&quot;,!0),f){var v=[],y=[];i.clearLocationCache();var x=r.labelFormatter(o,s),b=a.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).call(a.font,l.labelfont),_=e[0].xaxis,w=e[0].yaxis,T=_._length,k=w._length,M=_.range,A=w.range,S=i.aggNums(Math.min,null,s.x),E=i.aggNums(Math.max,null,s.x),C=i.aggNums(Math.min,null,s.y),L=i.aggNums(Math.max,null,s.y),I=Math.max(_.c2p(S,!0),0),P=Math.min(_.c2p(E,!0),T),z=Math.max(w.c2p(L,!0),0),O=Math.min(w.c2p(C,!0),k),D={};M[0]&lt;M[1]?(D.left=I,D.right=P):(D.left=P,D.right=I),A[0]&lt;A[1]?(D.top=z,D.bottom=O):(D.top=O,D.bottom=z),D.middle=(D.top+D.bottom)/2,D.center=(D.left+D.right)/2,v.push([[D.left,D.top],[D.right,D.top],[D.right,D.bottom],[D.left,D.bottom]]);var R=Math.sqrt(T*T+k*k),F=m.LABELDISTANCE*R/Math.max(1,e.length/m.LABELINCREASE);p.each((function(t){var e=r.calcTextOpts(t.level,x,b,o);n.select(this).selectAll(&quot;path&quot;).each((function(){var t=i.getVisibleSegment(this,D,e.height/2);if(t&amp;&amp;!(t.len&lt;(e.width+e.height)*m.LABELMIN))for(var n=Math.min(Math.ceil(t.len/F),m.LABELMAX),a=0;a&lt;n;a++){var o=r.findBestTextLocation(this,t,e,y,D);if(!o)break;r.addLabelData(o,e,y,v)}}))})),b.remove(),r.drawLabels(g,y,o,d,h?v:null)}f&amp;&amp;!u&amp;&amp;p.remove()}(s,k,t,v,T),function(t,e,r,n,o){var s=n.trace,l=r._fullLayout._clips,c=&quot;clip&quot;+s.uid,u=l.selectAll(&quot;#&quot;+c).data(s.connectgaps?[]:[0]);if(u.enter().append(&quot;clipPath&quot;).classed(&quot;contourclip&quot;,!0).attr(&quot;id&quot;,c),u.exit().remove(),!1===s.connectgaps){var p={level:.9,crossings:{},starts:[],edgepaths:[],paths:[],xaxis:e.xaxis,yaxis:e.yaxis,x:n.x,y:n.y,z:b(n),smoothing:0};f([p]),h([p]),g([p],{type:&quot;levels&quot;}),i.ensureSingle(u,&quot;path&quot;,&quot;&quot;).attr(&quot;d&quot;,(p.prefixBoundary?&quot;M&quot;+o.join(&quot;L&quot;)+&quot;Z&quot;:&quot;&quot;)+y(p,o))}else c=null;a.setClipUrl(t,c,r)}(s,e,t,v,I)}))},r.createLines=function(t,e,r){var n=r[0].smoothing,i=t.selectAll(&quot;g.contourlevel&quot;).data(e?r:[]);if(i.exit().remove(),i.enter().append(&quot;g&quot;).classed(&quot;contourlevel&quot;,!0),e){var o=i.selectAll(&quot;path.openline&quot;).data((function(t){return t.pedgepaths||t.edgepaths}));o.exit().remove(),o.enter().append(&quot;path&quot;).classed(&quot;openline&quot;,!0),o.attr(&quot;d&quot;,(function(t){return a.smoothopen(t,n)})).style(&quot;stroke-miterlimit&quot;,1).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;);var s=i.selectAll(&quot;path.closedline&quot;).data((function(t){return t.ppaths||t.paths}));s.exit().remove(),s.enter().append(&quot;path&quot;).classed(&quot;closedline&quot;,!0),s.attr(&quot;d&quot;,(function(t){return a.smoothclosed(t,n)})).style(&quot;stroke-miterlimit&quot;,1).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;)}return i},r.createLineClip=function(t,e,r,n){var i=e?&quot;clipline&quot;+n:null,o=r._fullLayout._clips.selectAll(&quot;#&quot;+i).data(e?[0]:[]);return o.exit().remove(),o.enter().append(&quot;clipPath&quot;).classed(&quot;contourlineclip&quot;,!0).attr(&quot;id&quot;,i),a.setClipUrl(t,i,r),o},r.labelFormatter=function(t,e){var r=t._fullLayout,n=e.trace,i=n.contours,a={type:&quot;linear&quot;,_id:&quot;ycontour&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;};if(i.labelformat)a.tickformat=i.labelformat,c(a,r);else{var s=o.extractOpts(n);if(s&amp;&amp;s.colorbar&amp;&amp;s.colorbar._axis)a=s.colorbar._axis;else{if(&quot;constraint&quot;===i.type){var u=i.value;Array.isArray(u)?a.range=[u[0],u[u.length-1]]:a.range=[u,u]}else a.range=[i.start,i.end],a.nticks=(i.end-i.start)/i.size;a.range[0]===a.range[1]&amp;&amp;(a.range[1]+=a.range[0]||1),a.nticks||(a.nticks=1e3),c(a,r),l.prepTicks(a),a._tmin=null,a._tmax=null}}return function(t){return l.tickText(a,t).text}},r.calcTextOpts=function(t,e,r,n){var i=e(t);r.text(i).call(s.convertToTspans,n);var o=r.node(),l=a.bBox(o,!0);return{text:i,width:l.width,height:l.height,fontSize:+o.style[&quot;font-size&quot;].replace(&quot;px&quot;,&quot;&quot;),level:t,dy:(l.top+l.bottom)/2}},r.findBestTextLocation=function(t,e,r,n,a){var o,s,l,c,u,f=r.width;e.isClosed?(s=e.len/v.INITIALSEARCHPOINTS,o=e.min+s/2,l=e.max):(s=(e.len-f)/(v.INITIALSEARCHPOINTS+1),o=e.min+s+f/2,l=e.max-(s+f)/2);for(var h=1/0,p=0;p&lt;v.ITERATIONS;p++){for(var d=o;d&lt;l;d+=s){var g=i.getTextLocation(t,e.total,d,f),m=x(g,r,n,a);m&lt;h&amp;&amp;(h=m,u=g,c=d)}if(h&gt;2*v.MAXCOST)break;p&amp;&amp;(s/=2),l=(o=c-s/2)+1.5*s}if(h&lt;=v.MAXCOST)return u},r.addLabelData=function(t,e,r,n){var i=e.fontSize,a=e.width+i/3,o=Math.max(0,e.height-i/3),s=t.x,l=t.y,c=t.theta,u=Math.sin(c),f=Math.cos(c),h=function(t,e){return[s+t*f-e*u,l+t*u+e*f]},p=[h(-a/2,-o/2),h(-a/2,o/2),h(a/2,o/2),h(a/2,-o/2)];r.push({text:e.text,x:s,y:l,dy:e.dy,theta:c,level:e.level,width:a,height:o}),n.push(p)},r.drawLabels=function(t,e,r,a,o){var l=t.selectAll(&quot;text&quot;).data(e,(function(t){return t.text+&quot;,&quot;+t.x+&quot;,&quot;+t.y+&quot;,&quot;+t.theta}));if(l.exit().remove(),l.enter().append(&quot;text&quot;).attr({&quot;data-notex&quot;:1,&quot;text-anchor&quot;:&quot;middle&quot;}).each((function(t){var e=t.x+Math.sin(t.theta)*t.dy,i=t.y-Math.cos(t.theta)*t.dy;n.select(this).text(t.text).attr({x:e,y:i,transform:&quot;rotate(&quot;+180*t.theta/Math.PI+&quot; &quot;+e+&quot; &quot;+i+&quot;)&quot;}).call(s.convertToTspans,r)})),o){for(var c=&quot;&quot;,u=0;u&lt;o.length;u++)c+=&quot;M&quot;+o[u].join(&quot;L&quot;)+&quot;Z&quot;;i.ensureSingle(a,&quot;path&quot;,&quot;&quot;).attr(&quot;d&quot;,c)}}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/set_convert&quot;:848,&quot;../heatmap/plot&quot;:1076,&quot;./close_boundaries&quot;:1010,&quot;./constants&quot;:1012,&quot;./convert_to_constraints&quot;:1016,&quot;./empty_pathinfo&quot;:1018,&quot;./find_all_paths&quot;:1020,&quot;./make_crossings&quot;:1025,d3:169}],1027:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;);function a(t,e,r){var i={type:&quot;linear&quot;,range:[t,e]};return n.autoTicks(i,(e-t)/(r||15)),i}e.exports=function(t,e){var r=t.contours;if(t.autocontour){var o=t.zmin,s=t.zmax;(t.zauto||void 0===o)&amp;&amp;(o=i.aggNums(Math.min,null,e)),(t.zauto||void 0===s)&amp;&amp;(s=i.aggNums(Math.max,null,e));var l=a(o,s,t.ncontours);r.size=l.dtick,r.start=n.tickFirst(l),l.range.reverse(),r.end=n.tickFirst(l),r.start===o&amp;&amp;(r.start+=r.size),r.end===s&amp;&amp;(r.end-=r.size),r.start&gt;r.end&amp;&amp;(r.start=r.end=(r.start+r.end)/2),t._input.contours||(t._input.contours={}),i.extendFlat(t._input.contours,{start:r.start,end:r.end,size:r.size}),t._input.autocontour=!0}else if(&quot;constraint&quot;!==r.type){var c,u=r.start,f=r.end,h=t._input.contours;if(u&gt;f&amp;&amp;(r.start=h.start=f,f=r.end=h.end=u,u=r.start),!(r.size&gt;0))c=u===f?1:a(u,f,t.ncontours).dtick,h.size=r.size=c}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1028:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../heatmap/style&quot;),o=t(&quot;./make_color_map&quot;);e.exports=function(t){var e=n.select(t).selectAll(&quot;g.contour&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.each((function(t){var e=n.select(this),r=t[0].trace,a=r.contours,s=r.line,l=a.size||1,c=a.start,u=&quot;constraint&quot;===a.type,f=!u&amp;&amp;&quot;lines&quot;===a.coloring,h=!u&amp;&amp;&quot;fill&quot;===a.coloring,p=f||h?o(r):null;e.selectAll(&quot;g.contourlevel&quot;).each((function(t){n.select(this).selectAll(&quot;path&quot;).call(i.lineGroupStyle,s.width,f?p(t.level):s.color,s.dash)}));var d=a.labelfont;if(e.selectAll(&quot;g.contourlabels text&quot;).each((function(t){i.font(n.select(this),{family:d.family,size:d.size,color:d.color||(f?p(t.level):s.color)})})),u)e.selectAll(&quot;g.contourfill path&quot;).style(&quot;fill&quot;,r.fillcolor);else if(h){var g;e.selectAll(&quot;g.contourfill path&quot;).style(&quot;fill&quot;,(function(t){return void 0===g&amp;&amp;(g=t.level),p(t.level+.5*l)})),void 0===g&amp;&amp;(g=c),e.selectAll(&quot;g.contourbg path&quot;).style(&quot;fill&quot;,p(g-.5*l))}})),a(t)}},{&quot;../../components/drawing&quot;:665,&quot;../heatmap/style&quot;:1077,&quot;./make_color_map&quot;:1024,d3:169}],1029:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/defaults&quot;),i=t(&quot;./label_defaults&quot;);e.exports=function(t,e,r,a,o){var s,l=r(&quot;contours.coloring&quot;),c=&quot;&quot;;&quot;fill&quot;===l&amp;&amp;(s=r(&quot;contours.showlines&quot;)),!1!==s&amp;&amp;(&quot;lines&quot;!==l&amp;&amp;(c=r(&quot;line.color&quot;,&quot;#000&quot;)),r(&quot;line.width&quot;,.5),r(&quot;line.dash&quot;)),&quot;none&quot;!==l&amp;&amp;(!0!==t.showlegend&amp;&amp;(e.showlegend=!1),e._dfltShowLegend=!1,n(t,e,a,r,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})),r(&quot;line.smoothing&quot;),i(r,a,c,o)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;./label_defaults&quot;:1023}],1030:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../contour/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat,s=i.contours;e.exports=o({carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},z:n.z,a:n.x,a0:n.x0,da:n.dx,b:n.y,b0:n.y0,db:n.dy,text:n.text,hovertext:n.hovertext,transpose:n.transpose,atype:n.xtype,btype:n.ytype,fillcolor:i.fillcolor,autocontour:i.autocontour,ncontours:i.ncontours,contours:{type:s.type,start:s.start,end:s.end,size:s.size,coloring:{valType:&quot;enumerated&quot;,values:[&quot;fill&quot;,&quot;lines&quot;,&quot;none&quot;],dflt:&quot;fill&quot;,editType:&quot;calc&quot;},showlines:s.showlines,showlabels:s.showlabels,labelfont:s.labelfont,labelformat:s.labelformat,operation:s.operation,value:s.value,editType:&quot;calc&quot;,impliedEdits:{autocontour:!1}},line:{color:i.line.color,width:i.line.width,dash:i.line.dash,smoothing:i.line.smoothing,editType:&quot;plot&quot;},transforms:void 0},a(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../contour/attributes&quot;:1008,&quot;../heatmap/attributes&quot;:1065}],1031:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../heatmap/convert_column_xyz&quot;),o=t(&quot;../heatmap/clean_2d_array&quot;),s=t(&quot;../heatmap/interp2d&quot;),l=t(&quot;../heatmap/find_empties&quot;),c=t(&quot;../heatmap/make_bound_array&quot;),u=t(&quot;./defaults&quot;),f=t(&quot;../carpet/lookup_carpetid&quot;),h=t(&quot;../contour/set_contours&quot;);e.exports=function(t,e){var r=e._carpetTrace=f(t,e);if(r&amp;&amp;r.visible&amp;&amp;&quot;legendonly&quot;!==r.visible){if(!e.a||!e.b){var p=t.data[r.index],d=t.data[e.index];d.a||(d.a=p.a),d.b||(d.b=p.b),u(d,e,e._defaultColor,t._fullLayout)}var g=function(t,e){var r,u,f,h,p,d,g,m=e._carpetTrace,v=m.aaxis,y=m.baxis;v._minDtick=0,y._minDtick=0,i.isArray1D(e.z)&amp;&amp;a(e,v,y,&quot;a&quot;,&quot;b&quot;,[&quot;z&quot;]);r=e._a=e._a||e.a,h=e._b=e._b||e.b,r=r?v.makeCalcdata(e,&quot;_a&quot;):[],h=h?y.makeCalcdata(e,&quot;_b&quot;):[],u=e.a0||0,f=e.da||1,p=e.b0||0,d=e.db||1,g=e._z=o(e._z||e.z,e.transpose),e._emptypoints=l(g),s(g,e._emptypoints);var x=i.maxRowLength(g),b=&quot;scaled&quot;===e.xtype?&quot;&quot;:r,_=c(e,b,u,f,x,v),w=&quot;scaled&quot;===e.ytype?&quot;&quot;:h,T=c(e,w,p,d,g.length,y),k={a:_,b:T,z:g};&quot;levels&quot;===e.contours.type&amp;&amp;&quot;none&quot;!==e.contours.coloring&amp;&amp;n(t,e,{vals:g,containerStr:&quot;&quot;,cLetter:&quot;z&quot;});return[k]}(t,e);return h(e,e._z),g}}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../lib&quot;:778,&quot;../carpet/lookup_carpetid&quot;:981,&quot;../contour/set_contours&quot;:1027,&quot;../heatmap/clean_2d_array&quot;:1067,&quot;../heatmap/convert_column_xyz&quot;:1069,&quot;../heatmap/find_empties&quot;:1071,&quot;../heatmap/interp2d&quot;:1074,&quot;../heatmap/make_bound_array&quot;:1075,&quot;./defaults&quot;:1032}],1032:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../contour/constraint_defaults&quot;),s=t(&quot;../contour/contours_defaults&quot;),l=t(&quot;../contour/style_defaults&quot;);e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,a,r,i)}if(u(&quot;carpet&quot;),t.a&amp;&amp;t.b){if(!i(t,e,u,c,&quot;a&quot;,&quot;b&quot;))return void(e.visible=!1);u(&quot;text&quot;),&quot;constraint&quot;===u(&quot;contours.type&quot;)?o(t,e,u,c,r,{hasHover:!1}):(s(t,e,u,(function(r){return n.coerce2(t,e,a,r)})),l(t,e,u,c,{hasHover:!1}))}else e._defaultColor=r,e._length=null}},{&quot;../../lib&quot;:778,&quot;../contour/constraint_defaults&quot;:1013,&quot;../contour/contours_defaults&quot;:1015,&quot;../contour/style_defaults&quot;:1029,&quot;../heatmap/xyz_defaults&quot;:1079,&quot;./attributes&quot;:1030}],1033:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../contour/colorbar&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../contour/style&quot;),moduleType:&quot;trace&quot;,name:&quot;contourcarpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;carpet&quot;,&quot;contour&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;hasLines&quot;,&quot;carpetDependent&quot;,&quot;noHover&quot;,&quot;noSortingByValue&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../contour/colorbar&quot;:1011,&quot;../contour/style&quot;:1028,&quot;./attributes&quot;:1030,&quot;./calc&quot;:1031,&quot;./defaults&quot;:1032,&quot;./plot&quot;:1034}],1034:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../carpet/map_1d_array&quot;),a=t(&quot;../carpet/makepath&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../contour/make_crossings&quot;),c=t(&quot;../contour/find_all_paths&quot;),u=t(&quot;../contour/plot&quot;),f=t(&quot;../contour/constants&quot;),h=t(&quot;../contour/convert_to_constraints&quot;),p=t(&quot;../contour/empty_pathinfo&quot;),d=t(&quot;../contour/close_boundaries&quot;),g=t(&quot;../carpet/lookup_carpetid&quot;),m=t(&quot;../carpet/axis_aligned_line&quot;);function v(t,e,r){var n=t.getPointAtLength(e),i=t.getPointAtLength(r),a=i.x-n.x,o=i.y-n.y,s=Math.sqrt(a*a+o*o);return[a/s,o/s]}function y(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]);return[t[0]/e,t[1]/e]}function x(t,e){var r=Math.abs(t[0]*e[0]+t[1]*e[1]);return Math.sqrt(1-r*r)/r}e.exports=function(t,e,r,b){var _=e.xaxis,w=e.yaxis;s.makeTraceGroups(b,r,&quot;contour&quot;).each((function(r){var b=n.select(this),T=r[0],k=T.trace,M=k._carpetTrace=g(t,k),A=t.calcdata[M.index][0];if(M.visible&amp;&amp;&quot;legendonly&quot;!==M.visible){var S=T.a,E=T.b,C=k.contours,L=p(C,e,T),I=&quot;constraint&quot;===C.type,P=C._operation,z=I?&quot;=&quot;===P?&quot;lines&quot;:&quot;fill&quot;:C.coloring,O=[[S[0],E[E.length-1]],[S[S.length-1],E[E.length-1]],[S[S.length-1],E[0]],[S[0],E[0]]];l(L);var D=1e-8*(S[S.length-1]-S[0]),R=1e-8*(E[E.length-1]-E[0]);c(L,D,R);var F,B,N,j,U=L;&quot;constraint&quot;===C.type&amp;&amp;(U=h(L,P)),function(t,e){var r,n,i,a,o,s,l,c,u;for(r=0;r&lt;t.length;r++){for(a=t[r],o=a.pedgepaths=[],s=a.ppaths=[],n=0;n&lt;a.edgepaths.length;n++){for(u=a.edgepaths[n],l=[],i=0;i&lt;u.length;i++)l[i]=e(u[i]);o.push(l)}for(n=0;n&lt;a.paths.length;n++){for(u=a.paths[n],c=[],i=0;i&lt;u.length;i++)c[i]=e(u[i]);s.push(c)}}}(L,H);var V=[];for(j=A.clipsegments.length-1;j&gt;=0;j--)F=A.clipsegments[j],B=i([],F.x,_.c2p),N=i([],F.y,w.c2p),B.reverse(),N.reverse(),V.push(a(B,N,F.bicubic));var q=&quot;M&quot;+V.join(&quot;L&quot;)+&quot;Z&quot;;!function(t,e,r,n,o,l){var c,u,f,h,p=s.ensureSingle(t,&quot;g&quot;,&quot;contourbg&quot;).selectAll(&quot;path&quot;).data(&quot;fill&quot;!==l||o?[]:[0]);p.enter().append(&quot;path&quot;),p.exit().remove();var d=[];for(h=0;h&lt;e.length;h++)c=e[h],u=i([],c.x,r.c2p),f=i([],c.y,n.c2p),d.push(a(u,f,c.bicubic));p.attr(&quot;d&quot;,&quot;M&quot;+d.join(&quot;L&quot;)+&quot;Z&quot;).style(&quot;stroke&quot;,&quot;none&quot;)}(b,A.clipsegments,_,w,I,z),function(t,e,r,i,a,l,c,u,f,h,p){var g=&quot;fill&quot;===h;g&amp;&amp;d(a,t.contours);var v=s.ensureSingle(e,&quot;g&quot;,&quot;contourfill&quot;).selectAll(&quot;path&quot;).data(g?a:[]);v.enter().append(&quot;path&quot;),v.exit().remove(),v.each((function(t){var e=(t.prefixBoundary?p:&quot;&quot;)+function(t,e,r,n,i,a,l,c){var u,f,h,p,d,g,v,y=&quot;&quot;,x=e.edgepaths.map((function(t,e){return e})),b=!0,_=1e-4*Math.abs(r[0][0]-r[2][0]),w=1e-4*Math.abs(r[0][1]-r[2][1]);function T(t){return Math.abs(t[1]-r[0][1])&lt;w}function k(t){return Math.abs(t[1]-r[2][1])&lt;w}function M(t){return Math.abs(t[0]-r[0][0])&lt;_}function A(t){return Math.abs(t[0]-r[2][0])&lt;_}function S(t,e){var r,n,o,s,u=&quot;&quot;;for(T(t)&amp;&amp;!A(t)||k(t)&amp;&amp;!M(t)?(s=i.aaxis,o=m(i,a,[t[0],e[0]],.5*(t[1]+e[1]))):(s=i.baxis,o=m(i,a,.5*(t[0]+e[0]),[t[1],e[1]])),r=1;r&lt;o.length;r++)for(u+=s.smoothing?&quot;C&quot;:&quot;L&quot;,n=0;n&lt;o[r].length;n++){var f=o[r][n];u+=[l.c2p(f[0]),c.c2p(f[1])]+&quot; &quot;}return u}u=0,f=null;for(;x.length;){var E=e.edgepaths[u][0];for(f&amp;&amp;(y+=S(f,E)),v=o.smoothopen(e.edgepaths[u].map(n),e.smoothing),y+=b?v:v.replace(/^M/,&quot;L&quot;),x.splice(x.indexOf(u),1),f=e.edgepaths[u][e.edgepaths[u].length-1],d=-1,p=0;p&lt;4;p++){if(!f){s.log(&quot;Missing end?&quot;,u,e);break}for(T(f)&amp;&amp;!A(f)?h=r[1]:M(f)?h=r[0]:k(f)?h=r[3]:A(f)&amp;&amp;(h=r[2]),g=0;g&lt;e.edgepaths.length;g++){var C=e.edgepaths[g][0];Math.abs(f[0]-h[0])&lt;_?Math.abs(f[0]-C[0])&lt;_&amp;&amp;(C[1]-f[1])*(h[1]-C[1])&gt;=0&amp;&amp;(h=C,d=g):Math.abs(f[1]-h[1])&lt;w?Math.abs(f[1]-C[1])&lt;w&amp;&amp;(C[0]-f[0])*(h[0]-C[0])&gt;=0&amp;&amp;(h=C,d=g):s.log(&quot;endpt to newendpt is not vert. or horz.&quot;,f,h,C)}if(d&gt;=0)break;y+=S(f,h),f=h}if(d===e.edgepaths.length){s.log(&quot;unclosed perimeter path&quot;);break}u=d,(b=-1===x.indexOf(u))&amp;&amp;(u=x[0],y+=S(f,h)+&quot;Z&quot;,f=null)}for(u=0;u&lt;e.paths.length;u++)y+=o.smoothclosed(e.paths[u].map(n),e.smoothing);return y}(0,t,l,c,u,f,r,i);e?n.select(this).attr(&quot;d&quot;,e).style(&quot;stroke&quot;,&quot;none&quot;):n.select(this).remove()}))}(k,b,_,w,U,O,H,M,A,z,q),function(t,e,r,i,a,l,c){var h=s.ensureSingle(t,&quot;g&quot;,&quot;contourlines&quot;),p=!1!==a.showlines,d=a.showlabels,g=p&amp;&amp;d,m=u.createLines(h,p||d,e),b=u.createLineClip(h,g,r,i.trace.uid),_=t.selectAll(&quot;g.contourlabels&quot;).data(d?[0]:[]);if(_.exit().remove(),_.enter().append(&quot;g&quot;).classed(&quot;contourlabels&quot;,!0),d){var w=l.xaxis,T=l.yaxis,k=w._length,M=T._length,A=[[[0,0],[k,0],[k,M],[0,M]]],S=[];s.clearLocationCache();var E=u.labelFormatter(r,i),C=o.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).call(o.font,a.labelfont),L={left:0,right:k,center:k/2,top:0,bottom:M,middle:M/2},I=Math.sqrt(k*k+M*M),P=f.LABELDISTANCE*I/Math.max(1,e.length/f.LABELINCREASE);m.each((function(t){var e=u.calcTextOpts(t.level,E,C,r);n.select(this).selectAll(&quot;path&quot;).each((function(r){var n=s.getVisibleSegment(this,L,e.height/2);if(n&amp;&amp;(function(t,e,r,n,i,a){for(var o,s=0;s&lt;r.pedgepaths.length;s++)e===r.pedgepaths[s]&amp;&amp;(o=r.edgepaths[s]);if(!o)return;var l=i.a[0],c=i.a[i.a.length-1],u=i.b[0],f=i.b[i.b.length-1];function h(t,e){var r,n=0;return(Math.abs(t[0]-l)&lt;.1||Math.abs(t[0]-c)&lt;.1)&amp;&amp;(r=y(i.dxydb_rough(t[0],t[1],.1)),n=Math.max(n,a*x(e,r)/2)),(Math.abs(t[1]-u)&lt;.1||Math.abs(t[1]-f)&lt;.1)&amp;&amp;(r=y(i.dxyda_rough(t[0],t[1],.1)),n=Math.max(n,a*x(e,r)/2)),n}var p=v(t,0,1),d=v(t,n.total,n.total-1),g=h(o[0],p),m=n.total-h(o[o.length-1],d);n.min&lt;g&amp;&amp;(n.min=g);n.max&gt;m&amp;&amp;(n.max=m);n.len=n.max-n.min}(this,r,t,n,c,e.height),!(n.len&lt;(e.width+e.height)*f.LABELMIN)))for(var i=Math.min(Math.ceil(n.len/P),f.LABELMAX),a=0;a&lt;i;a++){var o=u.findBestTextLocation(this,n,e,S,L);if(!o)break;u.addLabelData(o,e,S,A)}}))})),C.remove(),u.drawLabels(_,S,r,b,g?A:null)}d&amp;&amp;!p&amp;&amp;m.remove()}(b,L,t,T,C,e,M),o.setClipUrl(b,M._clipPathId,t)}function H(t){var e=M.ab2xy(t[0],t[1],!0);return[_.c2p(e[0]),w.c2p(e[1])]}}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../carpet/axis_aligned_line&quot;:965,&quot;../carpet/lookup_carpetid&quot;:981,&quot;../carpet/makepath&quot;:982,&quot;../carpet/map_1d_array&quot;:983,&quot;../contour/close_boundaries&quot;:1010,&quot;../contour/constants&quot;:1012,&quot;../contour/convert_to_constraints&quot;:1016,&quot;../contour/empty_pathinfo&quot;:1018,&quot;../contour/find_all_paths&quot;:1020,&quot;../contour/make_crossings&quot;:1025,&quot;../contour/plot&quot;:1026,d3:169}],1035:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../scattermapbox/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({lon:o.lon,lat:o.lat,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},radius:{valType:&quot;number&quot;,editType:&quot;plot&quot;,arrayOk:!0,min:1,dflt:30},below:{valType:&quot;string&quot;,editType:&quot;plot&quot;},text:o.text,hovertext:o.hovertext,hoverinfo:s({},a.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;z&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:i(),showlegend:s({},a.showlegend,{dflt:!1})},n(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scattermapbox/attributes&quot;:1252}],1036:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray,a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../components/colorscale/calc&quot;),s=t(&quot;../../lib&quot;)._;e.exports=function(t,e){for(var r=e._length,l=new Array(r),c=e.z,u=i(c)&amp;&amp;c.length,f=0;f&lt;r;f++){var h=l[f]={},p=e.lon[f],d=e.lat[f];if(h.lonlat=n(p)&amp;&amp;n(d)?[+p,+d]:[a,a],u){var g=c[f];h.z=n(g)?g:a}}return o(t,e,{vals:u?c:[0,1],containerStr:&quot;&quot;,cLetter:&quot;z&quot;}),r&amp;&amp;(l[0].t={labels:{lat:s(t,&quot;lat:&quot;)+&quot; &quot;,lon:s(t,&quot;lon:&quot;)+&quot; &quot;}}),l}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],1037:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../components/colorscale&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=t(&quot;../../lib/geojson_utils&quot;).makeBlank;e.exports=function(t){var e=t[0].trace,r=!0===e.visible&amp;&amp;0!==e._length,c=e._opts={heatmap:{layout:{visibility:&quot;none&quot;},paint:{}},geojson:l()};if(!r)return c;var u,f=[],h=e.z,p=e.radius,d=i.isArrayOrTypedArray(h)&amp;&amp;h.length,g=i.isArrayOrTypedArray(p);for(u=0;u&lt;t.length;u++){var m=t[u],v=m.lonlat;if(v[0]!==s){var y={};if(d){var x=m.z;y.z=x!==s?x:0}g&amp;&amp;(y.r=n(p[u])&amp;&amp;p[u]&gt;0?+p[u]:0),f.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:v},properties:y})}}var b=o.extractOpts(e),_=b.reversescale?o.flipScale(b.colorscale):b.colorscale,w=_[0][1],T=[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;heatmap-density&quot;],0,a.opacity(w)&lt;1?w:a.addOpacity(w,0)];for(u=1;u&lt;_.length;u++)T.push(_[u][0],_[u][1]);var k=[&quot;interpolate&quot;,[&quot;linear&quot;],[&quot;get&quot;,&quot;z&quot;],b.min,0,b.max,1];return i.extendFlat(c.heatmap.paint,{&quot;heatmap-weight&quot;:d?k:1/(b.max-b.min),&quot;heatmap-color&quot;:T,&quot;heatmap-radius&quot;:g?{type:&quot;identity&quot;,property:&quot;r&quot;}:e.radius,&quot;heatmap-opacity&quot;:e.opacity}),c.geojson={type:&quot;FeatureCollection&quot;,features:f},c.heatmap.layout.visibility=&quot;visible&quot;,c}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale&quot;:655,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/geojson_utils&quot;:772,&quot;fast-isnumeric&quot;:241}],1038:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;lon&quot;)||[],c=s(&quot;lat&quot;)||[],u=Math.min(l.length,c.length);u?(e._length=u,s(&quot;z&quot;),s(&quot;radius&quot;),s(&quot;below&quot;),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:1035}],1039:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t.z=e.z,t}},{}],1040:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../scattermapbox/hover&quot;);e.exports=function(t,e,r){var o=a(t,e,r);if(o){var s=o[0],l=s.cd,c=l[0].trace,u=l[s.index];if(delete s.color,&quot;z&quot;in u){var f=s.subplot.mockAxis;s.z=u.z,s.zLabel=i.tickText(f,f.c2l(u.z),&quot;hover&quot;).text}return s.extraText=function(t,e,r){if(t.hovertemplate)return;var i=(e.hi||t.hoverinfo).split(&quot;+&quot;),a=-1!==i.indexOf(&quot;all&quot;),o=-1!==i.indexOf(&quot;lon&quot;),s=-1!==i.indexOf(&quot;lat&quot;),l=e.lonlat,c=[];function u(t){return t+&quot;\xb0&quot;}a||o&amp;&amp;s?c.push(&quot;(&quot;+u(l[0])+&quot;, &quot;+u(l[1])+&quot;)&quot;):o?c.push(r.lon+u(l[0])):s&amp;&amp;c.push(r.lat+u(l[1]));(a||-1!==i.indexOf(&quot;text&quot;))&amp;&amp;n.fillText(e,t,c);return c.join(&quot;&lt;br&gt;&quot;)}(c,u,l[0].t.labels),[s]}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scattermapbox/hover&quot;:1257}],1041:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),formatLabels:t(&quot;../scattermapbox/format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),getBelow:function(t,e){for(var r=e.getMapLayers(),n=0;n&lt;r.length;n++){var i=r[n],a=i.id;if(&quot;symbol&quot;===i.type&amp;&amp;&quot;string&quot;==typeof a&amp;&amp;-1===a.indexOf(&quot;plotly-&quot;))return a}},moduleType:&quot;trace&quot;,name:&quot;densitymapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;showLegend&quot;],meta:{hr_name:&quot;density_mapbox&quot;}}},{&quot;../../plots/mapbox&quot;:885,&quot;../heatmap/colorbar&quot;:1068,&quot;../scattermapbox/format_labels&quot;:1256,&quot;./attributes&quot;:1035,&quot;./calc&quot;:1036,&quot;./defaults&quot;:1038,&quot;./event_data&quot;:1039,&quot;./hover&quot;:1040,&quot;./plot&quot;:1042}],1042:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;),i=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix;function a(t,e){this.type=&quot;densitymapbox&quot;,this.subplot=t,this.uid=e,this.sourceId=&quot;source-&quot;+e,this.layerList=[[&quot;heatmap&quot;,i+e+&quot;-heatmap&quot;]],this.below=null}var o=a.prototype;o.update=function(t){var e=this.subplot,r=this.layerList,i=n(t),a=e.belowLookup[&quot;trace-&quot;+this.uid];e.map.getSource(this.sourceId).setData(i.geojson),a!==this.below&amp;&amp;(this._removeLayers(),this._addLayers(i,a),this.below=a);for(var o=0;o&lt;r.length;o++){var s=r[o],l=s[0],c=s[1],u=i[l];e.setOptions(c,&quot;setLayoutProperty&quot;,u.layout),&quot;visible&quot;===u.layout.visibility&amp;&amp;e.setOptions(c,&quot;setPaintProperty&quot;,u.paint)}},o._addLayers=function(t,e){for(var r=this.subplot,n=this.layerList,i=this.sourceId,a=0;a&lt;n.length;a++){var o=n[a],s=o[0],l=t[s];r.addLayer({type:s,id:o[1],source:i,layout:l.layout,paint:l.paint},e)}},o._removeLayers=function(){for(var t=this.subplot.map,e=this.layerList,r=e.length-1;r&gt;=0;r--)t.removeLayer(e[r][1])},o.dispose=function(){var t=this.subplot.map;this._removeLayers(),t.removeSource(this.sourceId)},e.exports=function(t,e){var r=e[0].trace,i=new a(t,r.uid),o=i.sourceId,s=n(e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid];return t.map.addSource(o,{type:&quot;geojson&quot;,data:s.geojson}),i._addLayers(s,l),i}},{&quot;../../plots/mapbox/constants&quot;:883,&quot;./convert&quot;:1037}],1043:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;);var i=e.marker;if(i){n.mergeArray(i.opacity,t,&quot;mo&quot;),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;a&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;))}}},{&quot;../../lib&quot;:778}],1044:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../scatter/attributes&quot;).line,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;./constants&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../components/color&quot;);e.exports={x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,hovertext:n.hovertext,hovertemplate:o({},{keys:l.eventDataKeys}),hoverinfo:c({},a.hoverinfo,{flags:[&quot;name&quot;,&quot;x&quot;,&quot;y&quot;,&quot;text&quot;,&quot;percent initial&quot;,&quot;percent previous&quot;,&quot;percent total&quot;]}),textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;percent initial&quot;,&quot;percent previous&quot;,&quot;percent total&quot;,&quot;value&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;,arrayOk:!1},texttemplate:s({editType:&quot;plot&quot;},{keys:l.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),text:n.text,textposition:c({},n.textposition,{dflt:&quot;auto&quot;}),insidetextanchor:c({},n.insidetextanchor,{dflt:&quot;middle&quot;}),textangle:c({},n.textangle,{dflt:0}),textfont:n.textfont,insidetextfont:n.insidetextfont,outsidetextfont:n.outsidetextfont,constraintext:n.constraintext,cliponaxis:n.cliponaxis,orientation:c({},n.orientation,{}),offset:c({},n.offset,{arrayOk:!1}),width:c({},n.width,{arrayOk:!1}),marker:n.marker,connector:{fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},line:{color:c({},i.color,{dflt:u.defaultLine}),width:c({},i.width,{dflt:0,editType:&quot;plot&quot;}),dash:i.dash,editType:&quot;style&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup}},{&quot;../../components/color&quot;:643,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:1046}],1045:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;./arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t){return t===s?0:t}e.exports=function(t,e){var r,c,u,f,h,p,d=n.getFromId(t,e.xaxis||&quot;x&quot;),g=n.getFromId(t,e.yaxis||&quot;y&quot;);&quot;h&quot;===e.orientation?(r=d.makeCalcdata(e,&quot;x&quot;),u=g.makeCalcdata(e,&quot;y&quot;),c=i(e,g,&quot;y&quot;,u),p=!!e.yperiodalignment):(r=g.makeCalcdata(e,&quot;y&quot;),u=d.makeCalcdata(e,&quot;x&quot;),c=i(e,d,&quot;x&quot;,u),p=!!e.xperiodalignment);var m,v=Math.min(c.length,r.length),y=new Array(v);for(e._base=[],f=0;f&lt;v;f++){r[f]&lt;0&amp;&amp;(r[f]=s);var x=!1;r[f]!==s&amp;&amp;f+1&lt;v&amp;&amp;r[f+1]!==s&amp;&amp;(x=!0),h=y[f]={p:c[f],s:r[f],cNext:x},e._base[f]=-.5*h.s,p&amp;&amp;(y[f].orig_p=u[f]),e.ids&amp;&amp;(h.id=String(e.ids[f])),0===f&amp;&amp;(y[0].vTotal=0),y[0].vTotal+=l(h.s),h.begR=l(h.s)/l(y[0].s)}for(f=0;f&lt;v;f++)(h=y[f]).s!==s&amp;&amp;(h.sumR=h.s/y[0].vTotal,h.difR=void 0!==m?h.s/m:1,m=h.s);return a(y,e),o(y,e),y}},{&quot;../../constants/numerical&quot;:753,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc_selection&quot;:1189,&quot;./arrays_to_calcdata&quot;:1043}],1046:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;percentInitial&quot;,&quot;percentPrevious&quot;,&quot;percentTotal&quot;]}},{}],1047:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions;e.exports=function(t,e){var r,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,c=e.yaxis,u=[],f=[],h=[];for(i=0;i&lt;o.length;i++){var p=o[i],d=&quot;h&quot;===p.orientation;!0===p.visible&amp;&amp;p.xaxis===l._id&amp;&amp;p.yaxis===c._id&amp;&amp;&quot;funnel&quot;===p.type&amp;&amp;(r=s[i],d?h.push(r):f.push(r),u.push(r))}var g={mode:a.funnelmode,norm:a.funnelnorm,gap:a.funnelgap,groupgap:a.funnelgroupgap};for(n(t,l,c,f,g),n(t,c,l,h,g),i=0;i&lt;u.length;i++){r=u[i];for(var m=0;m&lt;r.length;m++)m+1&lt;r.length&amp;&amp;(r[m].nextP0=r[m+1].p0,r[m].nextS0=r[m+1].s0,r[m].nextP1=r[m+1].p1,r[m].nextS1=r[m+1].s1)}}},{&quot;../bar/cross_trace_calc&quot;:924}],1048:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,a=t(&quot;../bar/defaults&quot;).handleText,o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../../components/color&quot;);e.exports={supplyDefaults:function(t,e,r,i){function u(r,i){return n.coerce(t,e,l,r,i)}if(o(t,e,i,u)){s(t,e,i,u),u(&quot;orientation&quot;,e.y&amp;&amp;!e.x?&quot;v&quot;:&quot;h&quot;),u(&quot;offset&quot;),u(&quot;width&quot;);var f=u(&quot;text&quot;);u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;);var h=u(&quot;textposition&quot;);a(t,e,i,u,h,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),&quot;none&quot;===e.textposition||e.texttemplate||u(&quot;textinfo&quot;,Array.isArray(f)?&quot;text+value&quot;:&quot;value&quot;);var p=u(&quot;marker.color&quot;,r);if(u(&quot;marker.line.color&quot;,c.defaultLine),u(&quot;marker.line.width&quot;),u(&quot;connector.visible&quot;))u(&quot;connector.fillcolor&quot;,function(t){var e=n.isArrayOrTypedArray(t)?&quot;#000&quot;:t;return c.addOpacity(e,.5*c.opacity(e))}(p)),u(&quot;connector.line.width&quot;)&amp;&amp;(u(&quot;connector.line.color&quot;),u(&quot;connector.line.dash&quot;))}else e.visible=!1},crossTraceDefaults:function(t,e){var r,a;function o(t){return n.coerce(a._input,a,l,t)}if(&quot;group&quot;===e.funnelmode)for(var s=0;s&lt;t.length;s++)r=(a=t[s])._input,i(r,a,e,o)}}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/defaults&quot;:925,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:1044}],1049:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;percentInitial&quot;in e&amp;&amp;(t.percentInitial=e.percentInitial),&quot;percentPrevious&quot;in e&amp;&amp;(t.percentPrevious=e.percentPrevious),&quot;percentTotal&quot;in e&amp;&amp;(t.percentTotal=e.percentTotal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],1050:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;).opacity,i=t(&quot;../bar/hover&quot;).hoverOnBars,a=t(&quot;../../lib&quot;).formatPercent;e.exports=function(t,e,r,o){var s=i(t,e,r,o);if(s){var l=s.cd,c=l[0].trace,u=&quot;h&quot;===c.orientation,f=l[s.index];s[(u?&quot;x&quot;:&quot;y&quot;)+&quot;LabelVal&quot;]=f.s,s.percentInitial=f.begR,s.percentInitialLabel=a(f.begR,1),s.percentPrevious=f.difR,s.percentPreviousLabel=a(f.difR,1),s.percentTotal=f.sumR,s.percentTotalLabel=a(f.sumR,1);var h=f.hi||c.hoverinfo,p=[];if(h&amp;&amp;&quot;none&quot;!==h&amp;&amp;&quot;skip&quot;!==h){var d=&quot;all&quot;===h,g=h.split(&quot;+&quot;),m=function(t){return d||-1!==g.indexOf(t)};m(&quot;percent initial&quot;)&amp;&amp;p.push(s.percentInitialLabel+&quot; of initial&quot;),m(&quot;percent previous&quot;)&amp;&amp;p.push(s.percentPreviousLabel+&quot; of previous&quot;),m(&quot;percent total&quot;)&amp;&amp;p.push(s.percentTotalLabel+&quot; of total&quot;)}return s.extraText=p.join(&quot;&lt;br&gt;&quot;),s.color=function(t,e){var r=t.marker,i=e.mc||r.color,a=e.mlc||r.line.color,o=e.mlw||r.line.width;if(n(i))return i;if(n(a)&amp;&amp;o)return a}(c,f),[s]}}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/hover&quot;:928}],1051:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;../bar/select&quot;),moduleType:&quot;trace&quot;,name:&quot;funnel&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;oriented&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../bar/select&quot;:933,&quot;./attributes&quot;:1044,&quot;./calc&quot;:1045,&quot;./cross_trace_calc&quot;:1047,&quot;./defaults&quot;:1048,&quot;./event_data&quot;:1049,&quot;./hover&quot;:1050,&quot;./layout_attributes&quot;:1052,&quot;./layout_defaults&quot;:1053,&quot;./plot&quot;:1054,&quot;./style&quot;:1055}],1052:[function(t,e,r){&quot;use strict&quot;;e.exports={funnelmode:{valType:&quot;enumerated&quot;,values:[&quot;stack&quot;,&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;stack&quot;,editType:&quot;calc&quot;},funnelgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},funnelgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],1053:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s&lt;r.length;s++){var l=r[s];if(l.visible&amp;&amp;&quot;funnel&quot;===l.type){a=!0;break}}a&amp;&amp;(o(&quot;funnelmode&quot;),o(&quot;funnelgap&quot;,.2),o(&quot;funnelgroupgap&quot;))}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1052}],1054:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../constants/numerical&quot;).BADNUM,s=t(&quot;../bar/plot&quot;),l=t(&quot;../bar/uniform_text&quot;).clearMinTextSize;function c(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),i[3]=o.c2p(t.nextS1,!0),a[3]=s.c2p(t.nextP1,!0),n?[i,a]:[a,i]}e.exports=function(t,e,r,u){var f=t._fullLayout;l(&quot;funnel&quot;,f),function(t,e,r,s){var l=e.xaxis,u=e.yaxis;i.makeTraceGroups(s,r,&quot;trace bars&quot;).each((function(r){var s=n.select(this),f=r[0].trace,h=i.ensureSingle(s,&quot;g&quot;,&quot;regions&quot;);if(f.connector&amp;&amp;f.connector.visible){var p=&quot;h&quot;===f.orientation,d=h.selectAll(&quot;g.region&quot;).data(i.identity);d.enter().append(&quot;g&quot;).classed(&quot;region&quot;,!0),d.exit().remove();var g=d.size();d.each((function(r,s){if(s===g-1||r.cNext){var f=c(r,l,u,p),h=f[0],d=f[1],m=&quot;&quot;;h[0]!==o&amp;&amp;d[0]!==o&amp;&amp;h[1]!==o&amp;&amp;d[1]!==o&amp;&amp;h[2]!==o&amp;&amp;d[2]!==o&amp;&amp;h[3]!==o&amp;&amp;d[3]!==o&amp;&amp;(m+=p?&quot;M&quot;+h[0]+&quot;,&quot;+d[1]+&quot;L&quot;+h[2]+&quot;,&quot;+d[2]+&quot;H&quot;+h[3]+&quot;L&quot;+h[1]+&quot;,&quot;+d[1]+&quot;Z&quot;:&quot;M&quot;+h[1]+&quot;,&quot;+d[1]+&quot;L&quot;+h[2]+&quot;,&quot;+d[3]+&quot;V&quot;+d[2]+&quot;L&quot;+h[1]+&quot;,&quot;+d[0]+&quot;Z&quot;),&quot;&quot;===m&amp;&amp;(m=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,m).call(a.setClipUrl,e.layerClipId,t)}}))}else h.remove()}))}(t,e,r,u),function(t,e,r,o){var s=e.xaxis,l=e.yaxis;i.makeTraceGroups(o,r,&quot;trace bars&quot;).each((function(r){var o=n.select(this),u=r[0].trace,f=i.ensureSingle(o,&quot;g&quot;,&quot;lines&quot;);if(u.connector&amp;&amp;u.connector.visible&amp;&amp;u.connector.line.width){var h=&quot;h&quot;===u.orientation,p=f.selectAll(&quot;g.line&quot;).data(i.identity);p.enter().append(&quot;g&quot;).classed(&quot;line&quot;,!0),p.exit().remove();var d=p.size();p.each((function(r,o){if(o===d-1||r.cNext){var u=c(r,s,l,h),f=u[0],p=u[1],g=&quot;&quot;;void 0!==f[3]&amp;&amp;void 0!==p[3]&amp;&amp;(h?(g+=&quot;M&quot;+f[0]+&quot;,&quot;+p[1]+&quot;L&quot;+f[2]+&quot;,&quot;+p[2],g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[1]+&quot;L&quot;+f[3]+&quot;,&quot;+p[2]):(g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[1]+&quot;L&quot;+f[2]+&quot;,&quot;+p[3],g+=&quot;M&quot;+f[1]+&quot;,&quot;+p[0]+&quot;L&quot;+f[2]+&quot;,&quot;+p[2])),&quot;&quot;===g&amp;&amp;(g=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,g).call(a.setClipUrl,e.layerClipId,t)}}))}else f.remove()}))}(t,e,r,u),s.plot(t,e,r,u,{mode:f.funnelmode,norm:f.funnelmode,gap:f.funnelgap,groupgap:f.funnelgroupgap})}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../bar/plot&quot;:932,&quot;../bar/uniform_text&quot;:937,d3:169}],1055:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../constants/interactions&quot;).DESELECTDIM,s=t(&quot;../bar/style&quot;),l=t(&quot;../bar/uniform_text&quot;).resizeText,c=s.styleTextPoints;e.exports={style:function(t,e,r){var s=r||n.select(t).selectAll(&quot;g.funnellayer&quot;).selectAll(&quot;g.trace&quot;);l(t,s,&quot;funnel&quot;),s.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),s.each((function(e){var r=n.select(this),s=e[0].trace;r.selectAll(&quot;.point &gt; path&quot;).each((function(t){if(!t.isBlank){var e=s.marker;n.select(this).call(a.fill,t.mc||e.color).call(a.stroke,t.mlc||e.line.color).call(i.dashLine,e.line.dash,t.mlw||e.line.width).style(&quot;opacity&quot;,s.selectedpoints&amp;&amp;!t.selected?o:1)}})),c(r,s,t),r.selectAll(&quot;.regions&quot;).each((function(){n.select(this).selectAll(&quot;path&quot;).style(&quot;stroke-width&quot;,0).call(a.fill,s.connector.fillcolor)})),r.selectAll(&quot;.lines&quot;).each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll(&quot;path&quot;),t.width,t.color,t.dash)}))}))}}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../constants/interactions&quot;:752,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,d3:169}],1056:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/domain&quot;).attributes,o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:n.labels,label0:n.label0,dlabel:n.dlabel,values:n.values,marker:{colors:n.marker.colors,line:{color:l({},n.marker.line.color,{dflt:null}),width:l({},n.marker.line.width,{dflt:1}),editType:&quot;calc&quot;},editType:&quot;calc&quot;},text:n.text,hovertext:n.hovertext,scalegroup:l({},n.scalegroup,{}),textinfo:l({},n.textinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;]}),texttemplate:s({editType:&quot;plot&quot;},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;text&quot;,&quot;percent&quot;]}),hoverinfo:l({},i.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;name&quot;]}),hovertemplate:o({},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;text&quot;,&quot;percent&quot;]}),textposition:l({},n.textposition,{values:[&quot;inside&quot;,&quot;none&quot;],dflt:&quot;inside&quot;}),textfont:n.textfont,insidetextfont:n.insidetextfont,title:{text:n.title.text,font:n.title.font,position:l({},n.title.position,{values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;],dflt:&quot;top center&quot;}),editType:&quot;plot&quot;},domain:a({name:&quot;funnelarea&quot;,trace:!0,editType:&quot;calc&quot;}),aspectratio:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},baseratio:{valType:&quot;number&quot;,min:0,max:1,dflt:.333,editType:&quot;plot&quot;}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/template_attributes&quot;:906,&quot;../pie/attributes&quot;:1161}],1057:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;funnelarea&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1058:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/calc&quot;);e.exports={calc:function(t,e){return n.calc(t,e)},crossTraceCalc:function(t){n.crossTraceCalc(t,{type:&quot;funnelarea&quot;})}}},{&quot;../pie/calc&quot;:1163}],1059:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../bar/defaults&quot;).handleText,s=t(&quot;../pie/defaults&quot;).handleLabelsAndValues;e.exports=function(t,e,r,l){function c(r,a){return n.coerce(t,e,i,r,a)}var u=c(&quot;labels&quot;),f=c(&quot;values&quot;),h=s(u,f),p=h.len;if(e._hasLabels=h.hasLabels,e._hasValues=h.hasValues,!e._hasLabels&amp;&amp;e._hasValues&amp;&amp;(c(&quot;label0&quot;),c(&quot;dlabel&quot;)),p){e._length=p,c(&quot;marker.line.width&quot;)&amp;&amp;c(&quot;marker.line.color&quot;,l.paper_bgcolor),c(&quot;marker.colors&quot;),c(&quot;scalegroup&quot;);var d,g=c(&quot;text&quot;),m=c(&quot;texttemplate&quot;);if(m||(d=c(&quot;textinfo&quot;,Array.isArray(g)?&quot;text+percent&quot;:&quot;percent&quot;)),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),m||d&amp;&amp;&quot;none&quot;!==d){var v=c(&quot;textposition&quot;);o(t,e,l,c,v,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1})}a(e,l,c),c(&quot;title.text&quot;)&amp;&amp;(c(&quot;title.position&quot;),n.coerceFont(c,&quot;title.font&quot;,l.font)),c(&quot;aspectratio&quot;),c(&quot;baseratio&quot;)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/defaults&quot;:925,&quot;../pie/defaults&quot;:1164,&quot;./attributes&quot;:1056}],1060:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;funnelarea&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;pie-like&quot;,&quot;funnelarea&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),styleOne:t(&quot;../pie/style_one&quot;),meta:{}}},{&quot;../pie/style_one&quot;:1172,&quot;./attributes&quot;:1056,&quot;./base_plot&quot;:1057,&quot;./calc&quot;:1058,&quot;./defaults&quot;:1059,&quot;./layout_attributes&quot;:1061,&quot;./layout_defaults&quot;:1062,&quot;./plot&quot;:1063,&quot;./style&quot;:1064}],1061:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../pie/layout_attributes&quot;).hiddenlabels;e.exports={hiddenlabels:n,funnelareacolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendfunnelareacolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{&quot;../pie/layout_attributes&quot;:1168}],1062:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;hiddenlabels&quot;),r(&quot;funnelareacolorway&quot;,e.colorway),r(&quot;extendfunnelareacolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1061}],1063:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../lib&quot;),o=a.strScale,s=a.strTranslate,l=t(&quot;../../lib/svg_text_utils&quot;),c=t(&quot;../bar/plot&quot;).toMoveInsideBar,u=t(&quot;../bar/uniform_text&quot;),f=u.recordMinTextSize,h=u.clearMinTextSize,p=t(&quot;../pie/helpers&quot;),d=t(&quot;../pie/plot&quot;),g=d.attachFxHandlers,m=d.determineInsideTextFont,v=d.layoutAreas,y=d.prerenderTitles,x=d.positionTitleOutside,b=d.formatSliceLabel;function _(t,e){return&quot;l&quot;+(e[0]-t[0])+&quot;,&quot;+(e[1]-t[1])}e.exports=function(t,e){var r=t._fullLayout;h(&quot;funnelarea&quot;,r),y(e,t),v(e,r._size),a.makeTraceGroups(r._funnelarealayer,e,&quot;trace&quot;).each((function(e){var u=n.select(this),h=e[0],d=h.trace;!function(t){if(!t.length)return;var e=t[0],r=e.trace,n=r.aspectratio,i=r.baseratio;i&gt;.999&amp;&amp;(i=.999);var a,o=Math.pow(i,2),s=e.vTotal,l=s,c=s*o/(1-o)/s;function u(){var t,e={x:t=Math.sqrt(c),y:-t};return[e.x,e.y]}var f,h,p=[];for(p.push(u()),f=t.length-1;f&gt;-1;f--)if(!(h=t[f]).hidden){var d=h.v/l;c+=d,p.push(u())}var g=1/0,m=-1/0;for(f=0;f&lt;p.length;f++)a=p[f],g=Math.min(g,a[1]),m=Math.max(m,a[1]);for(f=0;f&lt;p.length;f++)p[f][1]-=(m+g)/2;var v=p[p.length-1][0],y=e.r,x=(m-g)/2,b=y/v,_=y/x*n;for(e.r=_*x,f=0;f&lt;p.length;f++)p[f][0]*=b,p[f][1]*=_;var w=[-(a=p[0])[0],a[1]],T=[a[0],a[1]],k=0;for(f=t.length-1;f&gt;-1;f--)if(!(h=t[f]).hidden){var M=p[k+=1][0],A=p[k][1];h.TL=[-M,A],h.TR=[M,A],h.BL=w,h.BR=T,h.pxmid=(S=h.TR,E=h.BR,[.5*(S[0]+E[0]),.5*(S[1]+E[1])]),w=h.TL,T=h.TR}var S,E}(e),u.each((function(){var u=n.select(this).selectAll(&quot;g.slice&quot;).data(e);u.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),u.exit().remove(),u.each((function(o,s){if(o.hidden)n.select(this).selectAll(&quot;path,g&quot;).remove();else{o.pointNumber=o.i,o.curveNumber=d.index;var u=h.cx,v=h.cy,y=n.select(this),x=y.selectAll(&quot;path.surface&quot;).data([o]);x.enter().append(&quot;path&quot;).classed(&quot;surface&quot;,!0).style({&quot;pointer-events&quot;:&quot;all&quot;}),y.call(g,t,e);var w=&quot;M&quot;+(u+o.TR[0])+&quot;,&quot;+(v+o.TR[1])+_(o.TR,o.BR)+_(o.BR,o.BL)+_(o.BL,o.TL)+&quot;Z&quot;;x.attr(&quot;d&quot;,w),b(t,o,h);var T=p.castOption(d.textposition,o.pts),k=y.selectAll(&quot;g.slicetext&quot;).data(o.text&amp;&amp;&quot;none&quot;!==T?[0]:[]);k.enter().append(&quot;g&quot;).classed(&quot;slicetext&quot;,!0),k.exit().remove(),k.each((function(){var h=a.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),p=a.ensureUniformFontSize(t,m(d,o,r.font));h.text(o.text).attr({class:&quot;slicetext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(i.font,p).call(l.convertToTspans,t);var g,y,x,b=i.bBox(h.node()),_=Math.min(o.BL[1],o.BR[1])+v,w=Math.max(o.TL[1],o.TR[1])+v;y=Math.max(o.TL[0],o.BL[0])+u,x=Math.min(o.TR[0],o.BR[0])+u,(g=c(y,x,_,w,b,{isHorizontal:!0,constrained:!0,angle:0,anchor:&quot;middle&quot;})).fontSize=p.size,f(d.type,g,r),e[s].transform=g,h.attr(&quot;transform&quot;,a.getTextTransform(g))}))}}));var v=n.select(this).selectAll(&quot;g.titletext&quot;).data(d.title.text?[0]:[]);v.enter().append(&quot;g&quot;).classed(&quot;titletext&quot;,!0),v.exit().remove(),v.each((function(){var e=a.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),c=d.title.text;d._meta&amp;&amp;(c=a.templateString(c,d._meta)),e.text(c).attr({class:&quot;titletext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(i.font,d.title.font).call(l.convertToTspans,t);var u=x(h,r._size);e.attr(&quot;transform&quot;,s(u.x,u.y)+o(Math.min(1,u.scale))+s(u.tx,u.ty))}))}))}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../bar/plot&quot;:932,&quot;../bar/uniform_text&quot;:937,&quot;../pie/helpers&quot;:1166,&quot;../pie/plot&quot;:1170,d3:169}],1064:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../pie/style_one&quot;),a=t(&quot;../bar/uniform_text&quot;).resizeText;e.exports=function(t){var e=t._fullLayout._funnelarealayer.selectAll(&quot;.trace&quot;);a(t,e,&quot;funnelarea&quot;),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(i,t,e)}))}))}},{&quot;../bar/uniform_text&quot;:937,&quot;../pie/style_one&quot;:1172,d3:169}],1065:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,t(&quot;../../lib/extend&quot;).extendFlat);e.exports=s({z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},x:s({},n.x,{impliedEdits:{xtype:&quot;array&quot;}}),x0:s({},n.x0,{impliedEdits:{xtype:&quot;scaled&quot;}}),dx:s({},n.dx,{impliedEdits:{xtype:&quot;scaled&quot;}}),y:s({},n.y,{impliedEdits:{ytype:&quot;array&quot;}}),y0:s({},n.y0,{impliedEdits:{ytype:&quot;scaled&quot;}}),dy:s({},n.dy,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiod:s({},n.xperiod,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiod:s({},n.yperiod,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiod0:s({},n.xperiod0,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiod0:s({},n.yperiod0,{impliedEdits:{ytype:&quot;scaled&quot;}}),xperiodalignment:s({},n.xperiodalignment,{impliedEdits:{xtype:&quot;scaled&quot;}}),yperiodalignment:s({},n.yperiodalignment,{impliedEdits:{ytype:&quot;scaled&quot;}}),text:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},hovertext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},transpose:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},xtype:{valType:&quot;enumerated&quot;,values:[&quot;array&quot;,&quot;scaled&quot;],editType:&quot;calc+clearAxisTypes&quot;},ytype:{valType:&quot;enumerated&quot;,values:[&quot;array&quot;,&quot;scaled&quot;],editType:&quot;calc+clearAxisTypes&quot;},zsmooth:{valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,&quot;best&quot;,!1],dflt:!1,editType:&quot;calc&quot;},hoverongaps:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;none&quot;},connectgaps:{valType:&quot;boolean&quot;,editType:&quot;calc&quot;},xgap:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;plot&quot;},ygap:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;plot&quot;},zhoverformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;none&quot;},hovertemplate:a(),showlegend:s({},i.showlegend,{dflt:!1})},{transforms:void 0},o(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1066:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../histogram2d/calc&quot;),l=t(&quot;../../components/colorscale/calc&quot;),c=t(&quot;./convert_column_xyz&quot;),u=t(&quot;./clean_2d_array&quot;),f=t(&quot;./interp2d&quot;),h=t(&quot;./find_empties&quot;),p=t(&quot;./make_bound_array&quot;),d=t(&quot;../../constants/numerical&quot;).BADNUM;function g(t){for(var e=[],r=t.length,n=0;n&lt;r;n++){var i=t[n];i!==d&amp;&amp;e.push(i)}return e}e.exports=function(t,e){var r,m,v,y,x,b,_,w,T,k,M,A=a.getFromId(t,e.xaxis||&quot;x&quot;),S=a.getFromId(t,e.yaxis||&quot;y&quot;),E=n.traceIs(e,&quot;contour&quot;),C=n.traceIs(e,&quot;histogram&quot;),L=n.traceIs(e,&quot;gl2d&quot;),I=E?&quot;best&quot;:e.zsmooth;if(A._minDtick=0,S._minDtick=0,C)y=(M=s(t,e)).orig_x,r=M.x,m=M.x0,v=M.dx,w=M.orig_y,x=M.y,b=M.y0,_=M.dy,T=M.z;else{var P=e.z;i.isArray1D(P)?(c(e,A,S,&quot;x&quot;,&quot;y&quot;,[&quot;z&quot;]),r=e._x,x=e._y,P=e._z):(y=e.x?A.makeCalcdata(e,&quot;x&quot;):[],w=e.y?S.makeCalcdata(e,&quot;y&quot;):[],r=o(e,A,&quot;x&quot;,y),x=o(e,S,&quot;y&quot;,w),e._x=r,e._y=x),m=e.x0,v=e.dx,b=e.y0,_=e.dy,T=u(P,e,A,S)}function z(t){I=e._input.zsmooth=e.zsmooth=!1,i.warn('cannot use zsmooth: &quot;fast&quot;: '+t)}if((A.rangebreaks||S.rangebreaks)&amp;&amp;(T=function(t,e,r){for(var n=[],i=-1,a=0;a&lt;r.length;a++)if(e[a]!==d){i++,n[i]=[];for(var o=0;o&lt;r[a].length;o++)t[o]!==d&amp;&amp;n[i].push(r[a][o])}return n}(r,x,T),C||(r=g(r),x=g(x),e._x=r,e._y=x)),C||!E&amp;&amp;!e.connectgaps||(e._emptypoints=h(T),f(T,e._emptypoints)),&quot;fast&quot;===I)if(&quot;log&quot;===A.type||&quot;log&quot;===S.type)z(&quot;log axis found&quot;);else if(!C){if(r.length){var O=(r[r.length-1]-r[0])/(r.length-1),D=Math.abs(O/100);for(k=0;k&lt;r.length-1;k++)if(Math.abs(r[k+1]-r[k]-O)&gt;D){z(&quot;x scale is not linear&quot;);break}}if(x.length&amp;&amp;&quot;fast&quot;===I){var R=(x[x.length-1]-x[0])/(x.length-1),F=Math.abs(R/100);for(k=0;k&lt;x.length-1;k++)if(Math.abs(x[k+1]-x[k]-R)&gt;F){z(&quot;y scale is not linear&quot;);break}}}var B=i.maxRowLength(T),N=&quot;scaled&quot;===e.xtype?&quot;&quot;:r,j=p(e,N,m,v,B,A),U=&quot;scaled&quot;===e.ytype?&quot;&quot;:x,V=p(e,U,b,_,T.length,S);L||(e._extremes[A._id]=a.findExtremes(A,j),e._extremes[S._id]=a.findExtremes(S,V));var q={x:j,y:V,z:T,text:e._text||e.text,hovertext:e._hovertext||e.hovertext};if(e.xperiodalignment&amp;&amp;y&amp;&amp;(q.orig_x=y),e.yperiodalignment&amp;&amp;w&amp;&amp;(q.orig_y=w),N&amp;&amp;N.length===j.length-1&amp;&amp;(q.xCenter=N),U&amp;&amp;U.length===V.length-1&amp;&amp;(q.yCenter=U),C&amp;&amp;(q.xRanges=M.xRanges,q.yRanges=M.yRanges,q.pts=M.pts),E||l(t,e,{vals:T,cLetter:&quot;z&quot;}),E&amp;&amp;e.contours&amp;&amp;&quot;heatmap&quot;===e.contours.coloring){var H={type:&quot;contour&quot;===e.type?&quot;heatmap&quot;:&quot;histogram2d&quot;,xcalendar:e.xcalendar,ycalendar:e.ycalendar};q.xfill=p(H,N,m,v,B,A),q.yfill=p(H,U,b,_,T.length,S)}return[q]}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../histogram2d/calc&quot;:1098,&quot;./clean_2d_array&quot;:1067,&quot;./convert_column_xyz&quot;:1069,&quot;./find_empties&quot;:1071,&quot;./interp2d&quot;:1074,&quot;./make_bound_array&quot;:1075}],1067:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r,o){var s,l,c,u,f,h;function p(t){if(n(t))return+t}if(e&amp;&amp;e.transpose){for(s=0,f=0;f&lt;t.length;f++)s=Math.max(s,t[f].length);if(0===s)return!1;c=function(t){return t.length},u=function(t,e,r){return(t[r]||[])[e]}}else s=t.length,c=function(t,e){return t[e].length},u=function(t,e,r){return(t[e]||[])[r]};var d=function(t,e,r){return e===a||r===a?a:u(t,e,r)};function g(t){if(e&amp;&amp;&quot;carpet&quot;!==e.type&amp;&amp;&quot;contourcarpet&quot;!==e.type&amp;&amp;t&amp;&amp;&quot;category&quot;===t.type&amp;&amp;e[&quot;_&quot;+t._id.charAt(0)].length){var r=t._id.charAt(0),n={},o=e[&quot;_&quot;+r+&quot;CategoryMap&quot;]||e[r];for(f=0;f&lt;o.length;f++)n[o[f]]=f;return function(e){var r=n[t._categories[e]];return r+1?r:a}}return i.identity}var m=g(r),v=g(o);o&amp;&amp;&quot;category&quot;===o.type&amp;&amp;(s=o._categories.length);var y=new Array(s);for(f=0;f&lt;s;f++)for(l=r&amp;&amp;&quot;category&quot;===r.type?r._categories.length:c(t,f),y[f]=new Array(l),h=0;h&lt;l;h++)y[f][h]=p(d(t,v(f),m(h)));return y}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;fast-isnumeric&quot;:241}],1068:[function(t,e,r){&quot;use strict&quot;;e.exports={min:&quot;zmin&quot;,max:&quot;zmax&quot;}},{}],1069:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../plots/cartesian/align_period&quot;);e.exports=function(t,e,r,o,s,l){var c=t._length,u=e.makeCalcdata(t,o),f=r.makeCalcdata(t,s);u=a(t,e,o,u),f=a(t,r,s,f);var h,p,d,g,m=t.text,v=void 0!==m&amp;&amp;n.isArray1D(m),y=t.hovertext,x=void 0!==y&amp;&amp;n.isArray1D(y),b=n.distinctVals(u),_=b.vals,w=n.distinctVals(f),T=w.vals,k=[],M=T.length,A=_.length;for(h=0;h&lt;l.length;h++)k[h]=n.init2dArray(M,A);v&amp;&amp;(d=n.init2dArray(M,A)),x&amp;&amp;(g=n.init2dArray(M,A));var S=n.init2dArray(M,A);for(h=0;h&lt;c;h++)if(u[h]!==i&amp;&amp;f[h]!==i){var E=n.findBin(u[h]+b.minDiff/2,_),C=n.findBin(f[h]+w.minDiff/2,T);for(p=0;p&lt;l.length;p++){var L=t[l[p]];k[p][C][E]=L[h],S[C][E]=h}v&amp;&amp;(d[C][E]=m[h]),x&amp;&amp;(g[C][E]=y[h])}for(t[&quot;_&quot;+o]=_,t[&quot;_&quot;+s]=T,p=0;p&lt;l.length;p++)t[&quot;_&quot;+l[p]]=k[p];v&amp;&amp;(t._text=d),x&amp;&amp;(t._hovertext=g),e&amp;&amp;&quot;category&quot;===e.type&amp;&amp;(t[&quot;_&quot;+o+&quot;CategoryMap&quot;]=_.map((function(t){return e._categories[t]}))),r&amp;&amp;&quot;category&quot;===r.type&amp;&amp;(t[&quot;_&quot;+s+&quot;CategoryMap&quot;]=T.map((function(t){return r._categories[t]}))),t._after2before=S}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825}],1070:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./xyz_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./style_defaults&quot;),s=t(&quot;../../components/colorscale/defaults&quot;),l=t(&quot;./attributes&quot;);e.exports=function(t,e,r,c){function u(r,i){return n.coerce(t,e,l,r,i)}i(t,e,u,c)?(a(t,e,c,u),u(&quot;text&quot;),u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;),o(t,e,u,c),u(&quot;hoverongaps&quot;),u(&quot;connectgaps&quot;,n.isArray1D(e.z)&amp;&amp;!1!==e.zsmooth),s(t,e,c,u,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:1065,&quot;./style_defaults&quot;:1078,&quot;./xyz_defaults&quot;:1079}],1071:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).maxRowLength;e.exports=function(t){var e,r,i,a,o,s,l,c,u=[],f={},h=[],p=t[0],d=[],g=[0,0,0],m=n(t);for(r=0;r&lt;t.length;r++)for(e=d,d=p,p=t[r+1]||[],i=0;i&lt;m;i++)void 0===d[i]&amp;&amp;((s=(void 0!==d[i-1]?1:0)+(void 0!==d[i+1]?1:0)+(void 0!==e[i]?1:0)+(void 0!==p[i]?1:0))?(0===r&amp;&amp;s++,0===i&amp;&amp;s++,r===t.length-1&amp;&amp;s++,i===d.length-1&amp;&amp;s++,s&lt;4&amp;&amp;(f[[r,i]]=[r,i,s]),u.push([r,i,s])):h.push([r,i]));for(;h.length;){for(l={},c=!1,o=h.length-1;o&gt;=0;o--)(s=((f[[(r=(a=h[o])[0])-1,i=a[1]]]||g)[2]+(f[[r+1,i]]||g)[2]+(f[[r,i-1]]||g)[2]+(f[[r,i+1]]||g)[2])/20)&amp;&amp;(l[a]=[r,i,s],h.splice(o,1),c=!0);if(!c)throw&quot;findEmpties iterated with no new neighbors&quot;;for(a in l)f[a]=l[a],u.push(l[a])}return u.sort((function(t,e){return e[2]-t[2]}))}},{&quot;../../lib&quot;:778}],1072:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts;e.exports=function(t,e,r,s,l,c){var u,f,h,p,d=t.cd[0],g=d.trace,m=t.xa,v=t.ya,y=d.x,x=d.y,b=d.z,_=d.xCenter,w=d.yCenter,T=d.zmask,k=g.zhoverformat,M=y,A=x;if(!1!==t.index){try{h=Math.round(t.index[1]),p=Math.round(t.index[0])}catch(e){return void i.error(&quot;Error hovering on heatmap, pointNumber must be [row,col], found:&quot;,t.index)}if(h&lt;0||h&gt;=b[0].length||p&lt;0||p&gt;b.length)return}else{if(n.inbox(e-y[0],e-y[y.length-1],0)&gt;0||n.inbox(r-x[0],r-x[x.length-1],0)&gt;0)return;if(c){var S;for(M=[2*y[0]-y[1]],S=1;S&lt;y.length;S++)M.push((y[S]+y[S-1])/2);for(M.push([2*y[y.length-1]-y[y.length-2]]),A=[2*x[0]-x[1]],S=1;S&lt;x.length;S++)A.push((x[S]+x[S-1])/2);A.push([2*x[x.length-1]-x[x.length-2]])}h=Math.max(0,Math.min(M.length-2,i.findBin(e,M))),p=Math.max(0,Math.min(A.length-2,i.findBin(r,A)))}var E,C,L=m.c2p(y[h]),I=m.c2p(y[h+1]),P=v.c2p(x[p]),z=v.c2p(x[p+1]);c?(E=d.orig_x||y,C=d.orig_y||x,I=L,u=E[h],z=P,f=C[p]):(E=d.orig_x||_||y,C=d.orig_y||w||x,u=_?E[h]:(E[h]+E[h+1])/2,f=w?C[p]:(C[p]+C[p+1])/2,m&amp;&amp;&quot;category&quot;===m.type&amp;&amp;(u=y[h]),v&amp;&amp;&quot;category&quot;===v.type&amp;&amp;(f=x[p]),g.zsmooth&amp;&amp;(L=I=m.c2p(u),P=z=v.c2p(f)));var O=b[p][h];if(T&amp;&amp;!T[p][h]&amp;&amp;(O=void 0),void 0!==O||g.hoverongaps){var D;Array.isArray(d.hovertext)&amp;&amp;Array.isArray(d.hovertext[p])?D=d.hovertext[p][h]:Array.isArray(d.text)&amp;&amp;Array.isArray(d.text[p])&amp;&amp;(D=d.text[p][h]);var R=o(g),F={type:&quot;linear&quot;,range:[R.min,R.max],hoverformat:k,_separators:m._separators,_numFormat:m._numFormat},B=a.tickText(F,O,&quot;hover&quot;).text;return[i.extendFlat(t,{index:g._after2before?g._after2before[p][h]:[p,h],distance:t.maxHoverDistance,spikeDistance:t.maxSpikeDistance,x0:L,x1:I,y0:P,y1:z,xLabelVal:u,yLabelVal:f,zLabelVal:O,zLabel:B,text:D})]}}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1073:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:t(&quot;./colorbar&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;),moduleType:&quot;trace&quot;,name:&quot;heatmap&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1065,&quot;./calc&quot;:1066,&quot;./colorbar&quot;:1068,&quot;./defaults&quot;:1070,&quot;./hover&quot;:1072,&quot;./plot&quot;:1076,&quot;./style&quot;:1077}],1074:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=[[-1,0],[1,0],[0,-1],[0,1]];function a(t){return.5-.25*Math.min(1,.5*t)}function o(t,e,r){var n,a,o,s,l,c,u,f,h,p,d,g,m,v=0;for(s=0;s&lt;e.length;s++){for(a=(n=e[s])[0],o=n[1],d=t[a][o],p=0,h=0,l=0;l&lt;4;l++)(u=t[a+(c=i[l])[0]])&amp;&amp;void 0!==(f=u[o+c[1]])&amp;&amp;(0===p?g=m=f:(g=Math.min(g,f),m=Math.max(m,f)),h++,p+=f);if(0===h)throw&quot;iterateInterp2d order is wrong: no defined neighbors&quot;;t[a][o]=p/h,void 0===d?h&lt;4&amp;&amp;(v=1):(t[a][o]=(1+r)*t[a][o]-r*d,m&gt;g&amp;&amp;(v=Math.max(v,Math.abs(t[a][o]-d)/(m-g))))}return v}e.exports=function(t,e){var r,i=1;for(o(t,e),r=0;r&lt;e.length&amp;&amp;!(e[r][2]&lt;4);r++);for(e=e.slice(r),r=0;r&lt;100&amp;&amp;i&gt;.01;r++)i=o(t,e,a(i));return i&gt;.01&amp;&amp;n.log(&quot;interp2d didn't converge quickly&quot;,i),t}},{&quot;../../lib&quot;:778}],1075:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a,o,s){var l,c,u,f=[],h=n.traceIs(t,&quot;contour&quot;),p=n.traceIs(t,&quot;histogram&quot;),d=n.traceIs(t,&quot;gl2d&quot;);if(i(e)&amp;&amp;e.length&gt;1&amp;&amp;!p&amp;&amp;&quot;category&quot;!==s.type){var g=e.length;if(!(g&lt;=o))return h?e.slice(0,o):e.slice(0,o+1);if(h||d)f=e.slice(0,o);else if(1===o)f=[e[0]-.5,e[0]+.5];else{for(f=[1.5*e[0]-.5*e[1]],u=1;u&lt;g;u++)f.push(.5*(e[u-1]+e[u]));f.push(1.5*e[g-1]-.5*e[g-2])}if(g&lt;o){var m=f[f.length-1],v=m-f[f.length-2];for(u=g;u&lt;o;u++)m+=v,f.push(m)}}else{var y=t[s._id.charAt(0)+&quot;calendar&quot;];if(p)l=s.r2c(r,0,y);else if(i(e)&amp;&amp;1===e.length)l=e[0];else if(void 0===r)l=0;else{l=(&quot;log&quot;===s.type?s.d2c:s.r2c)(r,0,y)}for(c=a||1,u=h||d?0:-.5;u&lt;o;u++)f.push(l+c*u)}return f}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1076:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../components/colorscale&quot;).makeColorScaleFuncFromTrace,l=t(&quot;../../constants/xmlns_namespaces&quot;);function c(t,e){var r=e.length-2,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=e[n+1],s=o.constrain(n+(t-i)/(a-i)-.5,0,r),l=Math.round(s),c=Math.abs(s-l);return s&amp;&amp;s!==r&amp;&amp;c?{bin0:l,frac:c,bin1:Math.round(l+c/(s-l))}:{bin0:l,bin1:l,frac:0}}function u(t,e){var r=e.length-1,n=o.constrain(o.findBin(t,e),0,r),i=e[n],a=(t-i)/(e[n+1]-i)||0;return a&lt;=0?{bin0:n,bin1:n,frac:0}:a&lt;.5?{bin0:n,bin1:n+1,frac:a}:{bin0:n+1,bin1:n,frac:1-a}}function f(t,e,r){t[e]=r[0],t[e+1]=r[1],t[e+2]=r[2],t[e+3]=Math.round(255*r[3])}e.exports=function(t,e,r,h){var p=e.xaxis,d=e.yaxis;o.makeTraceGroups(h,r,&quot;hm&quot;).each((function(e){var r,h,g,m,v,y,x=n.select(this),b=e[0],_=b.trace,w=b.z,T=b.x,k=b.y,M=b.xCenter,A=b.yCenter,S=a.traceIs(_,&quot;contour&quot;),E=S?&quot;best&quot;:_.zsmooth,C=w.length,L=o.maxRowLength(w),I=!1,P=!1;for(y=0;void 0===r&amp;&amp;y&lt;T.length-1;)r=p.c2p(T[y]),y++;for(y=T.length-1;void 0===h&amp;&amp;y&gt;0;)h=p.c2p(T[y]),y--;for(h&lt;r&amp;&amp;(g=h,h=r,r=g,I=!0),y=0;void 0===m&amp;&amp;y&lt;k.length-1;)m=d.c2p(k[y]),y++;for(y=k.length-1;void 0===v&amp;&amp;y&gt;0;)v=d.c2p(k[y]),y--;if(v&lt;m&amp;&amp;(g=m,m=v,v=g,P=!0),S&amp;&amp;(M=T,A=k,T=b.xfill,k=b.yfill),&quot;fast&quot;!==E){var z=&quot;best&quot;===E?0:.5;r=Math.max(-z*p._length,r),h=Math.min((1+z)*p._length,h),m=Math.max(-z*d._length,m),v=Math.min((1+z)*d._length,v)}var O=Math.round(h-r),D=Math.round(v-m);if(O&lt;=0||D&lt;=0){x.selectAll(&quot;image&quot;).data([]).exit().remove()}else{var R,F;&quot;fast&quot;===E?(R=L,F=C):(R=O,F=D);var B=document.createElement(&quot;canvas&quot;);B.width=R,B.height=F;var N,j,U=B.getContext(&quot;2d&quot;),V=s(_,{noNumericCheck:!0,returnArray:!0});&quot;fast&quot;===E?(N=I?function(t){return L-1-t}:o.identity,j=P?function(t){return C-1-t}:o.identity):(N=function(t){return o.constrain(Math.round(p.c2p(T[t])-r),0,O)},j=function(t){return o.constrain(Math.round(d.c2p(k[t])-m),0,D)});var q,H,G,Y,W,X=j(0),Z=[X,X],J=I?0:1,K=P?0:1,Q=0,$=0,tt=0,et=0;if(E){var rt,nt=0;try{rt=new Uint8Array(O*D*4)}catch(t){rt=new Array(O*D*4)}if(&quot;best&quot;===E){var it,at,ot,st=M||T,lt=A||k,ct=new Array(st.length),ut=new Array(lt.length),ft=new Array(O),ht=M?u:c,pt=A?u:c;for(y=0;y&lt;st.length;y++)ct[y]=Math.round(p.c2p(st[y])-r);for(y=0;y&lt;lt.length;y++)ut[y]=Math.round(d.c2p(lt[y])-m);for(y=0;y&lt;O;y++)ft[y]=ht(y,ct);for(H=0;H&lt;D;H++)for(at=w[(it=pt(H,ut)).bin0],ot=w[it.bin1],y=0;y&lt;O;y++,nt+=4)f(rt,nt,W=kt(at,ot,ft[y],it))}else for(H=0;H&lt;C;H++)for(Y=w[H],Z=j(H),y=0;y&lt;O;y++)W=Tt(Y[y],1),f(rt,nt=4*(Z*O+N(y)),W);var dt=U.createImageData(O,D);try{dt.data.set(rt)}catch(t){var gt=dt.data,mt=gt.length;for(H=0;H&lt;mt;H++)gt[H]=rt[H]}U.putImageData(dt,0,0)}else{var vt=_.xgap,yt=_.ygap,xt=Math.floor(vt/2),bt=Math.floor(yt/2);for(H=0;H&lt;C;H++)if(Y=w[H],Z.reverse(),Z[K]=j(H+1),Z[0]!==Z[1]&amp;&amp;void 0!==Z[0]&amp;&amp;void 0!==Z[1])for(q=[G=N(0),G],y=0;y&lt;L;y++)q.reverse(),q[J]=N(y+1),q[0]!==q[1]&amp;&amp;void 0!==q[0]&amp;&amp;void 0!==q[1]&amp;&amp;(W=Tt(Y[y],(q[1]-q[0])*(Z[1]-Z[0])),U.fillStyle=&quot;rgba(&quot;+W.join(&quot;,&quot;)+&quot;)&quot;,U.fillRect(q[0]+xt,Z[0]+bt,q[1]-q[0]-vt,Z[1]-Z[0]-yt))}$=Math.round($/Q),tt=Math.round(tt/Q),et=Math.round(et/Q);var _t=i(&quot;rgb(&quot;+$+&quot;,&quot;+tt+&quot;,&quot;+et+&quot;)&quot;);t._hmpixcount=(t._hmpixcount||0)+Q,t._hmlumcount=(t._hmlumcount||0)+Q*_t.getLuminance();var wt=x.selectAll(&quot;image&quot;).data(e);wt.enter().append(&quot;svg:image&quot;).attr({xmlns:l.svg,preserveAspectRatio:&quot;none&quot;}),wt.attr({height:D,width:O,x:r,y:m,&quot;xlink:href&quot;:B.toDataURL(&quot;image/png&quot;)})}function Tt(t,e){if(void 0!==t){var r=V(t);return r[0]=Math.round(r[0]),r[1]=Math.round(r[1]),r[2]=Math.round(r[2]),Q+=e,$+=r[0]*e,tt+=r[1]*e,et+=r[2]*e,r}return[0,0,0,0]}function kt(t,e,r,n){var i=t[r.bin0];if(void 0===i)return Tt(void 0,1);var a,o=t[r.bin1],s=e[r.bin0],l=e[r.bin1],c=o-i||0,u=s-i||0;return a=void 0===o?void 0===l?0:void 0===s?2*(l-i):2*(2*l-s-i)/3:void 0===l?void 0===s?0:2*(2*i-o-s)/3:void 0===s?2*(2*l-o-i)/3:l+i-o-s,Tt(i+r.frac*c+n.frac*(u+r.frac*a))}}))}},{&quot;../../components/colorscale&quot;:655,&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,d3:169,tinycolor2:576}],1077:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t){n.select(t).selectAll(&quot;.hm image&quot;).style(&quot;opacity&quot;,(function(t){return t.trace.opacity}))}},{d3:169}],1078:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){!1===r(&quot;zsmooth&quot;)&amp;&amp;(r(&quot;xgap&quot;),r(&quot;ygap&quot;)),r(&quot;zhoverformat&quot;)}},{}],1079:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;);function o(t,e){var r=e(t);return&quot;scaled&quot;===(r?e(t+&quot;type&quot;,&quot;array&quot;):&quot;scaled&quot;)&amp;&amp;(e(t+&quot;0&quot;),e(&quot;d&quot;+t)),r}e.exports=function(t,e,r,s,l,c){var u,f,h=r(&quot;z&quot;);if(l=l||&quot;x&quot;,c=c||&quot;y&quot;,void 0===h||!h.length)return 0;if(i.isArray1D(t.z)){u=r(l),f=r(c);var p=i.minRowLength(u),d=i.minRowLength(f);if(0===p||0===d)return 0;e._length=Math.min(p,d,h.length)}else{if(u=o(l,r),f=o(c,r),!function(t){for(var e,r=!0,a=!1,o=!1,s=0;s&lt;t.length;s++){if(e=t[s],!i.isArrayOrTypedArray(e)){r=!1;break}e.length&gt;0&amp;&amp;(a=!0);for(var l=0;l&lt;e.length;l++)if(n(e[l])){o=!0;break}}return r&amp;&amp;a&amp;&amp;o}(h))return 0;r(&quot;transpose&quot;),e._length=null}return&quot;heatmapgl&quot;===t.type||&quot;contourgl&quot;===t.type||a.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[l,c],s),!0}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;fast-isnumeric&quot;:241}],1080:[function(t,e,r){&quot;use strict&quot;;for(var n=t(&quot;../heatmap/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../../plot_api/edit_types&quot;).overrideAll,s=[&quot;z&quot;,&quot;x&quot;,&quot;x0&quot;,&quot;dx&quot;,&quot;y&quot;,&quot;y0&quot;,&quot;dy&quot;,&quot;text&quot;,&quot;transpose&quot;,&quot;xtype&quot;,&quot;ytype&quot;],l={},c=0;c&lt;s.length;c++){var u=s[c];l[u]=n[u]}l.zsmooth={valType:&quot;enumerated&quot;,values:[&quot;fast&quot;,!1],dflt:&quot;fast&quot;,editType:&quot;calc&quot;},a(l,i(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1})),e.exports=o(l,&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../heatmap/attributes&quot;:1065}],1081:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-heatmap2d&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../lib/str2rgbarray&quot;);function o(t,e){this.scene=t,this.uid=e,this.type=&quot;heatmapgl&quot;,this.name=&quot;&quot;,this.hoverinfo=&quot;all&quot;,this.xData=[],this.yData=[],this.zData=[],this.textLabels=[],this.idToIndex=[],this.bounds=[0,0,0,0],this.options={zsmooth:&quot;fast&quot;,z:[],x:[],y:[],shape:[0,0],colorLevels:[0],colorValues:[0,0,0,1]},this.heatmap=n(t.glplot,this.options),this.heatmap._trace=this}var s=o.prototype;s.handlePick=function(t){var e=this.options,r=e.shape,n=t.pointId,i=n%r[0],a=Math.floor(n/r[0]),o=n;return{trace:this,dataCoord:t.dataCoord,traceCoord:[e.x[i],e.y[a],e.z[o]],textLabel:this.textLabels[n],name:this.name,pointIndex:[a,i],hoverinfo:this.hoverinfo}},s.update=function(t,e){var r=e[0];this.index=t.index,this.name=t.name,this.hoverinfo=t.hoverinfo;var n=r.z;this.options.z=[].concat.apply([],n);var o=n[0].length,s=n.length;this.options.shape=[o,s],this.options.x=r.x,this.options.y=r.y,this.options.zsmooth=t.zsmooth;var l=function(t){for(var e=t.colorscale,r=t.zmin,n=t.zmax,i=e.length,o=new Array(i),s=new Array(4*i),l=0;l&lt;i;l++){var c=e[l],u=a(c[1]);o[l]=r+c[0]*(n-r);for(var f=0;f&lt;4;f++)s[4*l+f]=u[f]}return{colorLevels:o,colorValues:s}}(t);this.options.colorLevels=l.colorLevels,this.options.colorValues=l.colorValues,this.textLabels=[].concat.apply([],t.text),this.heatmap.update(this.options);var c,u,f=this.scene.xaxis,h=this.scene.yaxis;!1===t.zsmooth&amp;&amp;(c={ppad:r.x[1]-r.x[0]},u={ppad:r.y[1]-r.y[0]}),t._extremes[f._id]=i.findExtremes(f,r.x,c),t._extremes[h._id]=i.findExtremes(h,r.y,u)},s.dispose=function(){this.heatmap.dispose()},e.exports=function(t,e,r){var n=new o(t,e.uid);return n.update(e,r),n}},{&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/axes&quot;:828,&quot;gl-heatmap2d&quot;:271}],1082:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../heatmap/xyz_defaults&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}i(t,e,l,s)?(l(&quot;text&quot;),l(&quot;zsmooth&quot;),a(t,e,s,l,{prefix:&quot;&quot;,cLetter:&quot;z&quot;})):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../heatmap/xyz_defaults&quot;:1079,&quot;./attributes&quot;:1080}],1083:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../heatmap/colorbar&quot;),calc:t(&quot;../heatmap/calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;heatmapgl&quot;,basePlotModule:t(&quot;../../plots/gl2d&quot;),categories:[&quot;gl&quot;,&quot;gl2d&quot;,&quot;2dMap&quot;],meta:{}}},{&quot;../../plots/gl2d&quot;:868,&quot;../heatmap/calc&quot;:1066,&quot;../heatmap/colorbar&quot;:1068,&quot;./attributes&quot;:1080,&quot;./convert&quot;:1081,&quot;./defaults&quot;:1082}],1084:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;./bin_attributes&quot;),o=t(&quot;./constants&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},text:s({},n.text,{}),hovertext:s({},n.hovertext,{}),orientation:n.orientation,histfunc:{valType:&quot;enumerated&quot;,values:[&quot;count&quot;,&quot;sum&quot;,&quot;avg&quot;,&quot;min&quot;,&quot;max&quot;],dflt:&quot;count&quot;,editType:&quot;calc&quot;},histnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;percent&quot;,&quot;probability&quot;,&quot;density&quot;,&quot;probability density&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},cumulative:{enabled:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;increasing&quot;,&quot;decreasing&quot;],dflt:&quot;increasing&quot;,editType:&quot;calc&quot;},currentbin:{valType:&quot;enumerated&quot;,values:[&quot;include&quot;,&quot;exclude&quot;,&quot;half&quot;],dflt:&quot;include&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},nbinsx:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},xbins:a(&quot;x&quot;,!0),nbinsy:{valType:&quot;integer&quot;,min:0,dflt:0,editType:&quot;calc&quot;},ybins:a(&quot;y&quot;,!0),autobinx:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},autobiny:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},bingroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertemplate:i({},{keys:o.eventDataKeys}),marker:n.marker,offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,_deprecated:{bardir:n._deprecated.bardir}}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;./bin_attributes&quot;:1086,&quot;./constants&quot;:1090}],1085:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=t.length,n=0,i=0;i&lt;r;i++)e[i]?(t[i]/=e[i],n+=t[i]):t[i]=null;return n}},{}],1086:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return{start:{valType:&quot;any&quot;,editType:&quot;calc&quot;},end:{valType:&quot;any&quot;,editType:&quot;calc&quot;},size:{valType:&quot;any&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;}}},{}],1087:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports={count:function(t,e,r){return r[t]++,1},sum:function(t,e,r,i){var a=i[e];return n(a)?(a=Number(a),r[t]+=a,a):0},avg:function(t,e,r,i,a){var o=i[e];return n(o)&amp;&amp;(o=Number(o),r[t]+=o,a[t]++),0},min:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]&gt;a){var o=a-r[t];return r[t]=a,o}}return 0},max:function(t,e,r,i){var a=i[e];if(n(a)){if(a=Number(a),!n(r[t]))return r[t]=a,a;if(r[t]&lt;a){var o=a-r[t];return r[t]=a,o}}return 0}}},{&quot;fast-isnumeric&quot;:241}],1088:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/numerical&quot;),i=n.ONEAVGYEAR,a=n.ONEAVGMONTH,o=n.ONEDAY,s=n.ONEHOUR,l=n.ONEMIN,c=n.ONESEC,u=t(&quot;../../plots/cartesian/axes&quot;).tickIncrement;function f(t,e,r,n){if(t*e&lt;=0)return 1/0;for(var i=Math.abs(e-t),a=&quot;date&quot;===r.type,o=h(i,a),s=0;s&lt;10;s++){var l=h(80*o,a);if(o===l)break;if(!p(l,t,e,a,r,n))break;o=l}return o}function h(t,e){return e&amp;&amp;t&gt;c?t&gt;o?t&gt;1.1*i?i:t&gt;1.1*a?a:o:t&gt;s?s:t&gt;l?l:c:Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function p(t,e,r,n,a,s){if(n&amp;&amp;t&gt;o){var l=d(e,a,s),c=d(r,a,s),u=t===i?0:1;return l[u]!==c[u]}return Math.floor(r/t)-Math.floor(e/t)&gt;.1}function d(t,e,r){var n=e.c2d(t,i,r).split(&quot;-&quot;);return&quot;&quot;===n[0]&amp;&amp;(n.unshift(),n[0]=&quot;-&quot;+n[0]),n}e.exports=function(t,e,r,n,a){var s,l,c=-1.1*e,h=-.1*e,p=t-h,d=r[0],g=r[1],m=Math.min(f(d+h,d+p,n,a),f(g+h,g+p,n,a)),v=Math.min(f(d+c,d+h,n,a),f(g+c,g+h,n,a));if(m&gt;v&amp;&amp;v&lt;Math.abs(g-d)/4e3?(s=m,l=!1):(s=Math.min(m,v),l=!0),&quot;date&quot;===n.type&amp;&amp;s&gt;o){var y=s===i?1:6,x=s===i?&quot;M12&quot;:&quot;M1&quot;;return function(e,r){var o=n.c2d(e,i,a),s=o.indexOf(&quot;-&quot;,y);s&gt;0&amp;&amp;(o=o.substr(0,s));var c=n.d2c(o,0,a);if(c&lt;e){var f=u(c,x,!1,a);(c+f)/2&lt;e+t&amp;&amp;(c=f)}return r&amp;&amp;l?u(c,x,!0,a):c}}return function(e,r){var n=s*Math.round(e/s);return n+s/10&lt;e&amp;&amp;n+.9*s&lt;e+t&amp;&amp;(n+=s),r&amp;&amp;l&amp;&amp;(n-=s),n}}},{&quot;../../constants/numerical&quot;:753,&quot;../../plots/cartesian/axes&quot;:828}],1089:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../bar/arrays_to_calcdata&quot;),l=t(&quot;./bin_functions&quot;),c=t(&quot;./norm_functions&quot;),u=t(&quot;./average&quot;),f=t(&quot;./bin_label_vals&quot;);function h(t,e,r,s,l){var c,u,f,p,d,g,m,v=s+&quot;bins&quot;,y=t._fullLayout,x=e[&quot;_&quot;+s+&quot;bingroup&quot;],b=y._histogramBinOpts[x],_=&quot;overlay&quot;===y.barmode,w=function(t){return r.r2c(t,0,p)},T=function(t){return r.c2r(t,0,p)},k=&quot;date&quot;===r.type?function(t){return t||0===t?i.cleanDate(t,null,p):null}:function(t){return n(t)?Number(t):null};function M(t,e,r){e[t+&quot;Found&quot;]?(e[t]=k(e[t]),null===e[t]&amp;&amp;(e[t]=r[t])):(g[t]=e[t]=r[t],i.nestedProperty(u[0],v+&quot;.&quot;+t).set(r[t]))}if(e[&quot;_&quot;+s+&quot;autoBinFinished&quot;])delete e[&quot;_&quot;+s+&quot;autoBinFinished&quot;];else{u=b.traces;var A=[],S=!0,E=!1,C=!1;for(c=0;c&lt;u.length;c++)if((f=u[c]).visible){var L=b.dirs[c];d=f[&quot;_&quot;+L+&quot;pos0&quot;]=r.makeCalcdata(f,L),A=i.concat(A,d),delete f[&quot;_&quot;+s+&quot;autoBinFinished&quot;],!0===e.visible&amp;&amp;(S?S=!1:(delete f._autoBin,f[&quot;_&quot;+s+&quot;autoBinFinished&quot;]=1),a.traceIs(f,&quot;2dMap&quot;)&amp;&amp;(E=!0),&quot;histogram2dcontour&quot;===f.type&amp;&amp;(C=!0))}p=u[0][s+&quot;calendar&quot;];var I=o.autoBin(A,r,b.nbins,E,p,b.sizeFound&amp;&amp;b.size),P=u[0]._autoBin={};if(g=P[b.dirs[0]]={},C&amp;&amp;(b.size||(I.start=T(o.tickIncrement(w(I.start),I.size,!0,p))),void 0===b.end&amp;&amp;(I.end=T(o.tickIncrement(w(I.end),I.size,!1,p)))),_&amp;&amp;!a.traceIs(e,&quot;2dMap&quot;)&amp;&amp;0===I._dataSpan&amp;&amp;&quot;category&quot;!==r.type&amp;&amp;&quot;multicategory&quot;!==r.type){if(l)return[I,d,!0];I=function(t,e,r,n,a){var o,s,l,c=t._fullLayout,u=function(t,e){for(var r=e.xaxis,n=e.yaxis,i=e.orientation,a=[],o=t._fullData,s=0;s&lt;o.length;s++){var l=o[s];&quot;histogram&quot;===l.type&amp;&amp;!0===l.visible&amp;&amp;l.orientation===i&amp;&amp;l.xaxis===r&amp;&amp;l.yaxis===n&amp;&amp;a.push(l)}return a}(t,e),f=!1,p=1/0,d=[e];for(o=0;o&lt;u.length;o++)if((s=u[o])===e)f=!0;else if(f){var g=h(t,s,r,n,!0),m=g[0],v=g[2];s[&quot;_&quot;+n+&quot;autoBinFinished&quot;]=1,s[&quot;_&quot;+n+&quot;pos0&quot;]=g[1],v?d.push(s):p=Math.min(p,m.size)}else l=c._histogramBinOpts[s[&quot;_&quot;+n+&quot;bingroup&quot;]],p=Math.min(p,l.size||s[a].size);var y=new Array(d.length);for(o=0;o&lt;d.length;o++)for(var x=d[o][&quot;_&quot;+n+&quot;pos0&quot;],b=0;b&lt;x.length;b++)if(void 0!==x[b]){y[o]=x[b];break}isFinite(p)||(p=i.distinctVals(y).minDiff);for(o=0;o&lt;d.length;o++){var _=(s=d[o])[n+&quot;calendar&quot;],w={start:r.c2r(y[o]-p/2,0,_),end:r.c2r(y[o]+p/2,0,_),size:p};s._input[a]=s[a]=w,(l=c._histogramBinOpts[s[&quot;_&quot;+n+&quot;bingroup&quot;]])&amp;&amp;i.extendFlat(l,w)}return e[a]}(t,e,r,s,v)}(m=f.cumulative||{}).enabled&amp;&amp;&quot;include&quot;!==m.currentbin&amp;&amp;(&quot;decreasing&quot;===m.direction?I.start=T(o.tickIncrement(w(I.start),I.size,!0,p)):I.end=T(o.tickIncrement(w(I.end),I.size,!1,p))),b.size=I.size,b.sizeFound||(g.size=I.size,i.nestedProperty(u[0],v+&quot;.size&quot;).set(I.size)),M(&quot;start&quot;,b,I),M(&quot;end&quot;,b,I)}d=e[&quot;_&quot;+s+&quot;pos0&quot;],delete e[&quot;_&quot;+s+&quot;pos0&quot;];var z=e._input[v]||{},O=i.extendFlat({},b),D=b.start,R=r.r2l(z.start),F=void 0!==R;if((b.startFound||F)&amp;&amp;R!==r.r2l(D)){var B=F?R:i.aggNums(Math.min,null,d),N={type:&quot;category&quot;===r.type||&quot;multicategory&quot;===r.type?&quot;linear&quot;:r.type,r2l:r.r2l,dtick:b.size,tick0:D,calendar:p,range:[B,o.tickIncrement(B,b.size,!1,p)].map(r.l2r)},j=o.tickFirst(N);j&gt;r.r2l(B)&amp;&amp;(j=o.tickIncrement(j,b.size,!0,p)),O.start=r.l2r(j),F||i.nestedProperty(e,v+&quot;.start&quot;).set(O.start)}var U=b.end,V=r.r2l(z.end),q=void 0!==V;if((b.endFound||q)&amp;&amp;V!==r.r2l(U)){var H=q?V:i.aggNums(Math.max,null,d);O.end=r.l2r(H),q||i.nestedProperty(e,v+&quot;.start&quot;).set(O.end)}var G=&quot;autobin&quot;+s;return!1===e._input[G]&amp;&amp;(e._input[v]=i.extendFlat({},e[v]||{}),delete e._input[G],delete e[G]),[O,d]}e.exports={calc:function(t,e){var r,a,p,d,g=[],m=[],v=o.getFromId(t,&quot;h&quot;===e.orientation?e.yaxis:e.xaxis),y=&quot;h&quot;===e.orientation?&quot;y&quot;:&quot;x&quot;,x={x:&quot;y&quot;,y:&quot;x&quot;}[y],b=e[y+&quot;calendar&quot;],_=e.cumulative,w=h(t,e,v,y),T=w[0],k=w[1],M=&quot;string&quot;==typeof T.size,A=[],S=M?A:T,E=[],C=[],L=[],I=0,P=e.histnorm,z=e.histfunc,O=-1!==P.indexOf(&quot;density&quot;);_.enabled&amp;&amp;O&amp;&amp;(P=P.replace(/ ?density$/,&quot;&quot;),O=!1);var D,R=&quot;max&quot;===z||&quot;min&quot;===z?null:0,F=l.count,B=c[P],N=!1,j=function(t){return v.r2c(t,0,b)};for(i.isArrayOrTypedArray(e[x])&amp;&amp;&quot;count&quot;!==z&amp;&amp;(D=e[x],N=&quot;avg&quot;===z,F=l[z]),r=j(T.start),p=j(T.end)+(r-o.tickIncrement(r,T.size,!1,b))/1e6;r&lt;p&amp;&amp;g.length&lt;1e6&amp;&amp;(a=o.tickIncrement(r,T.size,!1,b),g.push((r+a)/2),m.push(R),L.push([]),A.push(r),O&amp;&amp;E.push(1/(a-r)),N&amp;&amp;C.push(0),!(a&lt;=r));)r=a;A.push(r),M||&quot;date&quot;!==v.type||(S={start:j(S.start),end:j(S.end),size:S.size}),t._fullLayout._roundFnOpts||(t._fullLayout._roundFnOpts={});var U=e[&quot;_&quot;+y+&quot;bingroup&quot;],V={leftGap:1/0,rightGap:1/0};U&amp;&amp;(t._fullLayout._roundFnOpts[U]||(t._fullLayout._roundFnOpts[U]=V),V=t._fullLayout._roundFnOpts[U]);var q,H=m.length,G=!0,Y=V.leftGap,W=V.rightGap,X={};for(r=0;r&lt;k.length;r++){var Z=k[r];(d=i.findBin(Z,S))&gt;=0&amp;&amp;d&lt;H&amp;&amp;(I+=F(d,r,m,D,C),G&amp;&amp;L[d].length&amp;&amp;Z!==k[L[d][0]]&amp;&amp;(G=!1),L[d].push(r),X[r]=d,Y=Math.min(Y,Z-A[d]),W=Math.min(W,A[d+1]-Z))}V.leftGap=Y,V.rightGap=W,G||(q=function(e,r){return function(){var n=t._fullLayout._roundFnOpts[U];return f(n.leftGap,n.rightGap,A,v,b)(e,r)}}),N&amp;&amp;(I=u(m,C)),B&amp;&amp;B(m,I,E),_.enabled&amp;&amp;function(t,e,r){var n,i,a;function o(e){a=t[e],t[e]/=2}function s(e){i=t[e],t[e]=a+i/2,a+=i}if(&quot;half&quot;===r)if(&quot;increasing&quot;===e)for(o(0),n=1;n&lt;t.length;n++)s(n);else for(o(t.length-1),n=t.length-2;n&gt;=0;n--)s(n);else if(&quot;increasing&quot;===e){for(n=1;n&lt;t.length;n++)t[n]+=t[n-1];&quot;exclude&quot;===r&amp;&amp;(t.unshift(0),t.pop())}else{for(n=t.length-2;n&gt;=0;n--)t[n]+=t[n+1];&quot;exclude&quot;===r&amp;&amp;(t.push(0),t.shift())}}(m,_.direction,_.currentbin);var J=Math.min(g.length,m.length),K=[],Q=0,$=J-1;for(r=0;r&lt;J;r++)if(m[r]){Q=r;break}for(r=J-1;r&gt;=Q;r--)if(m[r]){$=r;break}for(r=Q;r&lt;=$;r++)if(n(g[r])&amp;&amp;n(m[r])){var tt={p:g[r],s:m[r],b:0};_.enabled||(tt.pts=L[r],G?tt.ph0=tt.ph1=L[r].length?k[L[r][0]]:g[r]:(e._computePh=!0,tt.ph0=q(A[r]),tt.ph1=q(A[r+1],!0))),K.push(tt)}return 1===K.length&amp;&amp;(K[0].width1=o.tickIncrement(K[0].p,T.size,!1,b)-K[0].p),s(K,e),i.isArrayOrTypedArray(e.selectedpoints)&amp;&amp;i.tagSelected(K,e,X),K},calcAllAutoBins:h}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../registry&quot;:911,&quot;../bar/arrays_to_calcdata&quot;:920,&quot;./average&quot;:1085,&quot;./bin_functions&quot;:1087,&quot;./bin_label_vals&quot;:1088,&quot;./norm_functions&quot;:1096,&quot;fast-isnumeric&quot;:241}],1090:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;binNumber&quot;]}},{}],1091:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axis_ids&quot;),a=t(&quot;../../registry&quot;).traceIs,o=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,s=n.nestedProperty,l=t(&quot;../../plots/cartesian/constraints&quot;).getAxisGroup,c=[{aStr:{x:&quot;xbins.start&quot;,y:&quot;ybins.start&quot;},name:&quot;start&quot;},{aStr:{x:&quot;xbins.end&quot;,y:&quot;ybins.end&quot;},name:&quot;end&quot;},{aStr:{x:&quot;xbins.size&quot;,y:&quot;ybins.size&quot;},name:&quot;size&quot;},{aStr:{x:&quot;nbinsx&quot;,y:&quot;nbinsy&quot;},name:&quot;nbins&quot;}],u=[&quot;x&quot;,&quot;y&quot;];e.exports=function(t,e){var r,f,h,p,d,g,m,v=e._histogramBinOpts={},y=[],x={},b=[];function _(t,e){return n.coerce(r._input,r,r._module.attributes,t,e)}function w(t){return&quot;v&quot;===t.orientation?&quot;x&quot;:&quot;y&quot;}function T(t,r,a){var o=t.uid+&quot;__&quot;+a;r||(r=o);var s=function(t,r){return i.getFromTrace({_fullLayout:e},t,r).type}(t,a),l=t[a+&quot;calendar&quot;]||&quot;&quot;,c=v[r],u=!0;c&amp;&amp;(s===c.axType&amp;&amp;l===c.calendar?(u=!1,c.traces.push(t),c.dirs.push(a)):(r=o,s!==c.axType&amp;&amp;n.warn([&quot;Attempted to group the bins of trace&quot;,t.index,&quot;set on a&quot;,&quot;type:&quot;+s,&quot;axis&quot;,&quot;with bins on&quot;,&quot;type:&quot;+c.axType,&quot;axis.&quot;].join(&quot; &quot;)),l!==c.calendar&amp;&amp;n.warn([&quot;Attempted to group the bins of trace&quot;,t.index,&quot;set with a&quot;,l,&quot;calendar&quot;,&quot;with bins&quot;,c.calendar?&quot;on a &quot;+c.calendar+&quot; calendar&quot;:&quot;w/o a set calendar&quot;].join(&quot; &quot;)))),u&amp;&amp;(v[r]={traces:[t],dirs:[a],axType:s,calendar:t[a+&quot;calendar&quot;]||&quot;&quot;}),t[&quot;_&quot;+a+&quot;bingroup&quot;]=r}for(d=0;d&lt;t.length;d++)r=t[d],a(r,&quot;histogram&quot;)&amp;&amp;(y.push(r),delete r._xautoBinFinished,delete r._yautoBinFinished,a(r,&quot;2dMap&quot;)||o(r._input,r,e,_));var k=e._alignmentOpts||{};for(d=0;d&lt;y.length;d++){if(r=y[d],h=&quot;&quot;,!a(r,&quot;2dMap&quot;)){if(p=w(r),&quot;group&quot;===e.barmode&amp;&amp;r.alignmentgroup){var M=r[p+&quot;axis&quot;],A=l(e,M)+r.orientation;(k[A]||{})[r.alignmentgroup]&amp;&amp;(h=A)}h||&quot;overlay&quot;===e.barmode||(h=l(e,r.xaxis)+l(e,r.yaxis)+w(r))}h?(x[h]||(x[h]=[]),x[h].push(r)):b.push(r)}for(h in x)if(1!==(f=x[h]).length){var S=!1;for(f.length&amp;&amp;(r=f[0],S=_(&quot;bingroup&quot;)),h=S||h,d=0;d&lt;f.length;d++){var E=(r=f[d])._input.bingroup;E&amp;&amp;E!==h&amp;&amp;n.warn([&quot;Trace&quot;,r.index,&quot;must match&quot;,&quot;within bingroup&quot;,h+&quot;.&quot;,&quot;Ignoring its bingroup:&quot;,E,&quot;setting.&quot;].join(&quot; &quot;)),r.bingroup=h,T(r,h,w(r))}}else b.push(f[0]);for(d=0;d&lt;b.length;d++){r=b[d];var C=_(&quot;bingroup&quot;);if(a(r,&quot;2dMap&quot;))for(m=0;m&lt;2;m++){var L=_((p=u[m])+&quot;bingroup&quot;,C?C+&quot;__&quot;+p:null);T(r,L,p)}else T(r,C,w(r))}for(h in v){var I=v[h];for(f=I.traces,g=0;g&lt;c.length;g++){var P,z,O=c[g],D=O.name;if(&quot;nbins&quot;!==D||!I.sizeFound){for(d=0;d&lt;f.length;d++){if(r=f[d],p=I.dirs[d],P=O.aStr[p],void 0!==s(r._input,P).get()){I[D]=_(P),I[D+&quot;Found&quot;]=!0;break}(z=(r._autoBin||{})[p]||{})[D]&amp;&amp;s(r,P).set(z[D])}if(&quot;start&quot;===D||&quot;end&quot;===D)for(;d&lt;f.length;d++)(r=f[d])[&quot;_&quot;+p+&quot;bingroup&quot;]&amp;&amp;_(P,(z=(r._autoBin||{})[p]||{})[D]);&quot;nbins&quot;!==D||I.sizeFound||I.nbinsFound||(r=f[0],I[D]=_(P))}}}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/cartesian/constraints&quot;:835,&quot;../../registry&quot;:911,&quot;../bar/defaults&quot;:925}],1092:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../bar/style_defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,n){return i.coerce(t,e,s,r,n)}var u=c(&quot;x&quot;),f=c(&quot;y&quot;);c(&quot;cumulative.enabled&quot;)&amp;&amp;(c(&quot;cumulative.direction&quot;),c(&quot;cumulative.currentbin&quot;)),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;);var h=c(&quot;orientation&quot;,f&amp;&amp;!u?&quot;h&quot;:&quot;v&quot;),p=&quot;v&quot;===h?&quot;x&quot;:&quot;y&quot;,d=&quot;v&quot;===h?&quot;y&quot;:&quot;x&quot;,g=u&amp;&amp;f?Math.min(i.minRowLength(u)&amp;&amp;i.minRowLength(f)):i.minRowLength(e[p]||[]);if(g){e._length=g,n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],l),e[d]&amp;&amp;c(&quot;histfunc&quot;),c(&quot;histnorm&quot;),c(&quot;autobin&quot;+p),o(t,e,c,r,l),i.coerceSelectionMarkerOpacity(e,c);var m=(e.marker.line||{}).color,v=n.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);v(t,e,m||a.defaultLine,{axis:&quot;y&quot;}),v(t,e,m||a.defaultLine,{axis:&quot;x&quot;,inherit:&quot;y&quot;})}else e.visible=!1}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../bar/style_defaults&quot;:936,&quot;./attributes&quot;:1084}],1093:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){if(t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;zLabelVal&quot;in e&amp;&amp;(t.z=e.zLabelVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),!(r.cumulative||{}).enabled){var a,o=Array.isArray(i)?n[0].pts[i[0]][i[1]]:n[i].pts;if(t.pointNumbers=o,t.binNumber=t.pointNumber,delete t.pointNumber,delete t.pointIndex,r._indexToPoints){a=[];for(var s=0;s&lt;o.length;s++)a=a.concat(r._indexToPoints[o[s]])}else a=o;t.pointIndices=a}return t}},{}],1094:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/hover&quot;).hoverPoints,i=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText;e.exports=function(t,e,r,a){var o=n(t,e,r,a);if(o){var s=(t=o[0]).cd[t.index],l=t.cd[0].trace;if(!l.cumulative.enabled){var c=&quot;h&quot;===l.orientation?&quot;y&quot;:&quot;x&quot;;t[c+&quot;Label&quot;]=i(t[c+&quot;a&quot;],s.ph0,s.ph1)}return o}}},{&quot;../../plots/cartesian/axes&quot;:828,&quot;../bar/hover&quot;:928}],1095:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;../bar/layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),supplyLayoutDefaults:t(&quot;../bar/layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;../bar/cross_trace_calc&quot;).crossTraceCalc,plot:t(&quot;../bar/plot&quot;).plot,layerName:&quot;barlayer&quot;,style:t(&quot;../bar/style&quot;).style,styleOnSelect:t(&quot;../bar/style&quot;).styleOnSelect,colorbar:t(&quot;../scatter/marker_colorbar&quot;),hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../bar/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;bar&quot;,&quot;histogram&quot;,&quot;oriented&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../bar/cross_trace_calc&quot;:924,&quot;../bar/layout_attributes&quot;:930,&quot;../bar/layout_defaults&quot;:931,&quot;../bar/plot&quot;:932,&quot;../bar/select&quot;:933,&quot;../bar/style&quot;:935,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1084,&quot;./calc&quot;:1089,&quot;./cross_trace_defaults&quot;:1091,&quot;./defaults&quot;:1092,&quot;./event_data&quot;:1093,&quot;./hover&quot;:1094}],1096:[function(t,e,r){&quot;use strict&quot;;e.exports={percent:function(t,e){for(var r=t.length,n=100/e,i=0;i&lt;r;i++)t[i]*=n},probability:function(t,e){for(var r=t.length,n=0;n&lt;r;n++)t[n]/=e},density:function(t,e,r,n){var i=t.length;n=n||1;for(var a=0;a&lt;i;a++)t[a]*=r[a]*n},&quot;probability density&quot;:function(t,e,r,n){var i=t.length;n&amp;&amp;(e/=n);for(var a=0;a&lt;i;a++)t[a]*=r[a]/e}}},{}],1097:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../histogram/attributes&quot;),i=t(&quot;../histogram/bin_attributes&quot;),a=t(&quot;../heatmap/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../components/colorscale/attributes&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=c({x:n.x,y:n.y,z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},marker:{color:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:i(&quot;x&quot;),nbinsy:n.nbinsy,ybins:i(&quot;y&quot;),autobinx:n.autobinx,autobiny:n.autobiny,bingroup:c({},n.bingroup,{}),xbingroup:c({},n.bingroup,{}),ybingroup:c({},n.bingroup,{}),xgap:a.xgap,ygap:a.ygap,zsmooth:a.zsmooth,zhoverformat:a.zhoverformat,hovertemplate:s({},{keys:&quot;z&quot;}),showlegend:c({},o.showlegend,{dflt:!1})},l(&quot;&quot;,{cLetter:&quot;z&quot;,autoColorDflt:!1}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../heatmap/attributes&quot;:1065,&quot;../histogram/attributes&quot;:1084,&quot;../histogram/bin_attributes&quot;:1086}],1098:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../histogram/bin_functions&quot;),o=t(&quot;../histogram/norm_functions&quot;),s=t(&quot;../histogram/average&quot;),l=t(&quot;../histogram/bin_label_vals&quot;),c=t(&quot;../histogram/calc&quot;).calcAllAutoBins;function u(t,e,r,n){var i,a=new Array(t);if(n)for(i=0;i&lt;t;i++)a[i]=1/(e[i+1]-e[i]);else{var o=1/r;for(i=0;i&lt;t;i++)a[i]=o}return a}function f(t,e){return{start:t(e.start),end:t(e.end),size:e.size}}function h(t,e,r,n,i,a){var o,s=t.length-1,c=new Array(s),u=l(r,n,t,i,a);for(o=0;o&lt;s;o++){var f=(e||[])[o];c[o]=void 0===f?[u(t[o]),u(t[o+1],!0)]:[f,f]}return c}e.exports=function(t,e){var r,l,p,d,g=i.getFromId(t,e.xaxis),m=i.getFromId(t,e.yaxis),v=e.xcalendar,y=e.ycalendar,x=function(t){return g.r2c(t,0,v)},b=function(t){return m.r2c(t,0,y)},_=c(t,e,g,&quot;x&quot;),w=_[0],T=_[1],k=c(t,e,m,&quot;y&quot;),M=k[0],A=k[1],S=e._length;T.length&gt;S&amp;&amp;T.splice(S,T.length-S),A.length&gt;S&amp;&amp;A.splice(S,A.length-S);var E=[],C=[],L=[],I=&quot;string&quot;==typeof w.size,P=&quot;string&quot;==typeof M.size,z=[],O=[],D=I?z:w,R=P?O:M,F=0,B=[],N=[],j=e.histnorm,U=e.histfunc,V=-1!==j.indexOf(&quot;density&quot;),q=&quot;max&quot;===U||&quot;min&quot;===U?null:0,H=a.count,G=o[j],Y=!1,W=[],X=[],Z=&quot;z&quot;in e?e.z:&quot;marker&quot;in e&amp;&amp;Array.isArray(e.marker.color)?e.marker.color:&quot;&quot;;Z&amp;&amp;&quot;count&quot;!==U&amp;&amp;(Y=&quot;avg&quot;===U,H=a[U]);var J=w.size,K=x(w.start),Q=x(w.end)+(K-i.tickIncrement(K,J,!1,v))/1e6;for(r=K;r&lt;Q;r=i.tickIncrement(r,J,!1,v))C.push(q),z.push(r),Y&amp;&amp;L.push(0);z.push(r);var $,tt=C.length,et=(r-K)/tt,rt=($=K+et/2,g.c2r($,0,v)),nt=M.size,it=b(M.start),at=b(M.end)+(it-i.tickIncrement(it,nt,!1,y))/1e6;for(r=it;r&lt;at;r=i.tickIncrement(r,nt,!1,y)){E.push(C.slice()),O.push(r);var ot=new Array(tt);for(l=0;l&lt;tt;l++)ot[l]=[];N.push(ot),Y&amp;&amp;B.push(L.slice())}O.push(r);var st=E.length,lt=(r-it)/st,ct=function(t){return m.c2r(t,0,y)}(it+lt/2);V&amp;&amp;(W=u(C.length,D,et,I),X=u(E.length,R,lt,P)),I||&quot;date&quot;!==g.type||(D=f(x,D)),P||&quot;date&quot;!==m.type||(R=f(b,R));var ut=!0,ft=!0,ht=new Array(tt),pt=new Array(st),dt=1/0,gt=1/0,mt=1/0,vt=1/0;for(r=0;r&lt;S;r++){var yt=T[r],xt=A[r];p=n.findBin(yt,D),d=n.findBin(xt,R),p&gt;=0&amp;&amp;p&lt;tt&amp;&amp;d&gt;=0&amp;&amp;d&lt;st&amp;&amp;(F+=H(p,r,E[d],Z,B[d]),N[d][p].push(r),ut&amp;&amp;(void 0===ht[p]?ht[p]=yt:ht[p]!==yt&amp;&amp;(ut=!1)),ft&amp;&amp;(void 0===pt[d]?pt[d]=xt:pt[d]!==xt&amp;&amp;(ft=!1)),dt=Math.min(dt,yt-z[p]),gt=Math.min(gt,z[p+1]-yt),mt=Math.min(mt,xt-O[d]),vt=Math.min(vt,O[d+1]-xt))}if(Y)for(d=0;d&lt;st;d++)F+=s(E[d],B[d]);if(G)for(d=0;d&lt;st;d++)G(E[d],F,W,X[d]);return{x:T,xRanges:h(z,ut&amp;&amp;ht,dt,gt,g,v),x0:rt,dx:et,y:A,yRanges:h(O,ft&amp;&amp;pt,mt,vt,m,y),y0:ct,dy:lt,z:E,pts:N}}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../histogram/average&quot;:1085,&quot;../histogram/bin_functions&quot;:1087,&quot;../histogram/bin_label_vals&quot;:1088,&quot;../histogram/calc&quot;:1089,&quot;../histogram/norm_functions&quot;:1096}],1099:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./sample_defaults&quot;),a=t(&quot;../heatmap/style_defaults&quot;),o=t(&quot;../../components/colorscale/defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&amp;&amp;(a(t,e,c,l),o(t,e,l,c,{prefix:&quot;&quot;,cLetter:&quot;z&quot;}),c(&quot;hovertemplate&quot;))}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../heatmap/style_defaults&quot;:1078,&quot;./attributes&quot;:1097,&quot;./sample_defaults&quot;:1102}],1100:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../heatmap/hover&quot;),i=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText;e.exports=function(t,e,r,a,o,s){var l=n(t,e,r,a,o,s);if(l){var c=(t=l[0]).index,u=c[0],f=c[1],h=t.cd[0],p=h.xRanges[f],d=h.yRanges[u];return t.xLabel=i(t.xa,p[0],p[1]),t.yLabel=i(t.ya,d[0],d[1]),l}}},{&quot;../../plots/cartesian/axes&quot;:828,&quot;../heatmap/hover&quot;:1072}],1101:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../histogram/cross_trace_defaults&quot;),calc:t(&quot;../heatmap/calc&quot;),plot:t(&quot;../heatmap/plot&quot;),layerName:&quot;heatmaplayer&quot;,colorbar:t(&quot;../heatmap/colorbar&quot;),style:t(&quot;../heatmap/style&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;../histogram/event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram2d&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;histogram&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../heatmap/calc&quot;:1066,&quot;../heatmap/colorbar&quot;:1068,&quot;../heatmap/plot&quot;:1076,&quot;../heatmap/style&quot;:1077,&quot;../histogram/cross_trace_defaults&quot;:1091,&quot;../histogram/event_data&quot;:1093,&quot;./attributes&quot;:1097,&quot;./defaults&quot;:1099,&quot;./hover&quot;:1100}],1102:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=r(&quot;x&quot;),s=r(&quot;y&quot;),l=i.minRowLength(o),c=i.minRowLength(s);l&amp;&amp;c?(e._length=Math.min(l,c),n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],a),(r(&quot;z&quot;)||r(&quot;marker.color&quot;))&amp;&amp;r(&quot;histfunc&quot;),r(&quot;histnorm&quot;),r(&quot;autobinx&quot;),r(&quot;autobiny&quot;)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1103:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../histogram2d/attributes&quot;),i=t(&quot;../contour/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=o({x:n.x,y:n.y,z:n.z,marker:n.marker,histnorm:n.histnorm,histfunc:n.histfunc,nbinsx:n.nbinsx,xbins:n.xbins,nbinsy:n.nbinsy,ybins:n.ybins,autobinx:n.autobinx,autobiny:n.autobiny,bingroup:n.bingroup,xbingroup:n.xbingroup,ybingroup:n.ybingroup,autocontour:i.autocontour,ncontours:i.ncontours,contours:i.contours,line:{color:i.line.color,width:o({},i.line.width,{dflt:.5}),dash:i.line.dash,smoothing:i.line.smoothing,editType:&quot;plot&quot;},zhoverformat:n.zhoverformat,hovertemplate:n.hovertemplate},a(&quot;&quot;,{cLetter:&quot;z&quot;,editTypeOverride:&quot;calc&quot;}))},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../contour/attributes&quot;:1008,&quot;../histogram2d/attributes&quot;:1097}],1104:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../histogram2d/sample_defaults&quot;),a=t(&quot;../contour/contours_defaults&quot;),o=t(&quot;../contour/style_defaults&quot;),s=t(&quot;./attributes&quot;);e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,s,r,i)}i(t,e,c,l),!1!==e.visible&amp;&amp;(a(t,e,c,(function(r){return n.coerce2(t,e,s,r)})),o(t,e,c,l),c(&quot;hovertemplate&quot;))}},{&quot;../../lib&quot;:778,&quot;../contour/contours_defaults&quot;:1015,&quot;../contour/style_defaults&quot;:1029,&quot;../histogram2d/sample_defaults&quot;:1102,&quot;./attributes&quot;:1103}],1105:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../histogram/cross_trace_defaults&quot;),calc:t(&quot;../contour/calc&quot;),plot:t(&quot;../contour/plot&quot;).plot,layerName:&quot;contourlayer&quot;,style:t(&quot;../contour/style&quot;),colorbar:t(&quot;../contour/colorbar&quot;),hoverPoints:t(&quot;../contour/hover&quot;),moduleType:&quot;trace&quot;,name:&quot;histogram2dcontour&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;contour&quot;,&quot;histogram&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../contour/calc&quot;:1009,&quot;../contour/colorbar&quot;:1011,&quot;../contour/hover&quot;:1021,&quot;../contour/plot&quot;:1026,&quot;../contour/style&quot;:1028,&quot;../histogram/cross_trace_defaults&quot;:1091,&quot;./attributes&quot;:1103,&quot;./defaults&quot;:1104}],1106:[function(t,e,r){&quot;use strict&quot;;for(var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;./constants&quot;).colormodel,s=[&quot;rgb&quot;,&quot;rgba&quot;,&quot;rgba256&quot;,&quot;hsl&quot;,&quot;hsla&quot;],l=[],c=[],u=0;u&lt;s.length;u++){var f=o[s[u]];l.push(&quot;For the `&quot;+s[u]+&quot;` colormodel, it is [&quot;+(f.zminDflt||f.min).join(&quot;, &quot;)+&quot;].&quot;),c.push(&quot;For the `&quot;+s[u]+&quot;` colormodel, it is [&quot;+(f.zmaxDflt||f.max).join(&quot;, &quot;)+&quot;].&quot;)}e.exports=a({source:{valType:&quot;string&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},colormodel:{valType:&quot;enumerated&quot;,values:s,editType:&quot;calc&quot;},zmin:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},zmax:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;},{valType:&quot;number&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},x0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},y0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dx:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},dy:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},text:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hovertext:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hoverinfo:a({},n.hoverinfo,{flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;color&quot;,&quot;name&quot;,&quot;text&quot;],dflt:&quot;x+y+z+text+name&quot;}),hovertemplate:i({},{keys:[&quot;z&quot;,&quot;color&quot;,&quot;colormodel&quot;]}),transforms:void 0})},{&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;./constants&quot;:1108}],1107:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./constants&quot;),a=t(&quot;fast-isnumeric&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../../lib&quot;).maxRowLength,l=t(&quot;./helpers&quot;).getImageSize;function c(t,e,r,i){return function(a){return n.constrain((a-t)*e,r,i)}}function u(t,e){return function(r){return n.constrain(r,t,e)}}e.exports=function(t,e){var r,n;if(e._hasZ)r=e.z.length,n=s(e.z);else if(e._hasSource){var f=l(e.source);r=f.height,n=f.width}var h,p=o.getFromId(t,e.xaxis||&quot;x&quot;),d=o.getFromId(t,e.yaxis||&quot;y&quot;),g=p.d2c(e.x0)-e.dx/2,m=d.d2c(e.y0)-e.dy/2,v=[g,g+n*e.dx],y=[m,m+r*e.dy];if(p&amp;&amp;&quot;log&quot;===p.type)for(h=0;h&lt;n;h++)v.push(g+h*e.dx);if(d&amp;&amp;&quot;log&quot;===d.type)for(h=0;h&lt;r;h++)y.push(m+h*e.dy);return e._extremes[p._id]=o.findExtremes(p,v),e._extremes[d._id]=o.findExtremes(d,y),e._scaler=function(t){var e=i.colormodel[t.colormodel],r=(e.colormodel||t.colormodel).length;t._sArray=[];for(var n=0;n&lt;r;n++)e.min[n]!==t.zmin[n]||e.max[n]!==t.zmax[n]?t._sArray.push(c(t.zmin[n],(e.max[n]-e.min[n])/(t.zmax[n]-t.zmin[n]),e.min[n],e.max[n])):t._sArray.push(u(e.min[n],e.max[n]));return function(e){for(var n=e.slice(0,r),i=0;i&lt;r;i++){var o=n[i];if(!a(o))return!1;n[i]=t._sArray[i](o)}return n}}(e),[{x0:g,y0:m,z:e.z,w:n,h:r}]}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;./constants&quot;:1108,&quot;./helpers&quot;:1111,&quot;fast-isnumeric&quot;:241}],1108:[function(t,e,r){&quot;use strict&quot;;e.exports={colormodel:{rgb:{min:[0,0,0],max:[255,255,255],fmt:function(t){return t.slice(0,3)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;]},rgba:{min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]},rgba256:{colormodel:&quot;rgba&quot;,zminDflt:[0,0,0,0],zmaxDflt:[255,255,255,255],min:[0,0,0,0],max:[255,255,255,1],fmt:function(t){return t.slice(0,4)},suffix:[&quot;&quot;,&quot;&quot;,&quot;&quot;,&quot;&quot;]},hsl:{min:[0,0,0],max:[360,100,100],fmt:function(t){var e=t.slice(0,3);return e[1]=e[1]+&quot;%&quot;,e[2]=e[2]+&quot;%&quot;,e},suffix:[&quot;\xb0&quot;,&quot;%&quot;,&quot;%&quot;]},hsla:{min:[0,0,0,0],max:[360,100,100,1],fmt:function(t){var e=t.slice(0,4);return e[1]=e[1]+&quot;%&quot;,e[2]=e[2]+&quot;%&quot;,e},suffix:[&quot;\xb0&quot;,&quot;%&quot;,&quot;%&quot;,&quot;&quot;]}}}},{}],1109:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;./constants&quot;),o=t(&quot;../../snapshot/helpers&quot;).IMAGE_URL_PREFIX;e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;source&quot;),e.source&amp;&amp;!e.source.match(o)&amp;&amp;delete e.source,e._hasSource=!!e.source;var s,l=r(&quot;z&quot;);(e._hasZ=!(void 0===l||!l.length||!l[0]||!l[0].length),e._hasZ||e._hasSource)?(r(&quot;x0&quot;),r(&quot;y0&quot;),r(&quot;dx&quot;),r(&quot;dy&quot;),e._hasZ?(r(&quot;colormodel&quot;,&quot;rgb&quot;),r(&quot;zmin&quot;,(s=a.colormodel[e.colormodel]).zminDflt||s.min),r(&quot;zmax&quot;,s.zmaxDflt||s.max)):e._hasSource&amp;&amp;(e.colormodel=&quot;rgba256&quot;,s=a.colormodel[e.colormodel],e.zmin=s.zminDflt,e.zmax=s.zmaxDflt),r(&quot;text&quot;),r(&quot;hovertext&quot;),r(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../snapshot/helpers&quot;:915,&quot;./attributes&quot;:1106,&quot;./constants&quot;:1108}],1110:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return&quot;xVal&quot;in e&amp;&amp;(t.x=e.xVal),&quot;yVal&quot;in e&amp;&amp;(t.y=e.yVal),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t.color=e.color,t.colormodel=e.trace.colormodel,t.z||(t.z=e.color),t}},{}],1111:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;image-size&quot;),i=t(&quot;../../snapshot/helpers&quot;).IMAGE_URL_PREFIX,a=t(&quot;buffer/&quot;).Buffer;r.getImageSize=function(t){var e=t.replace(i,&quot;&quot;),r=new a(e,&quot;base64&quot;);return n(r)}},{&quot;../../snapshot/helpers&quot;:915,&quot;buffer/&quot;:111,&quot;image-size&quot;:444}],1112:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./constants&quot;);e.exports=function(t,e,r){var o=t.cd[0],s=o.trace,l=t.xa,c=t.ya;if(!(n.inbox(e-o.x0,e-(o.x0+o.w*s.dx),0)&gt;0||n.inbox(r-o.y0,r-(o.y0+o.h*s.dy),0)&gt;0)){var u,f=Math.floor((e-o.x0)/s.dx),h=Math.floor(Math.abs(r-o.y0)/s.dy);if(s._hasZ?u=o.z[h][f]:s._hasSource&amp;&amp;(u=s._canvas.el.getContext(&quot;2d&quot;).getImageData(f,h,1,1).data),u){var p,d=o.hi||s.hoverinfo;if(d){var g=d.split(&quot;+&quot;);-1!==g.indexOf(&quot;all&quot;)&amp;&amp;(g=[&quot;color&quot;]),-1!==g.indexOf(&quot;color&quot;)&amp;&amp;(p=!0)}var m,v=a.colormodel[s.colormodel],y=v.colormodel||s.colormodel,x=y.length,b=s._scaler(u),_=v.suffix,w=[];(s.hovertemplate||p)&amp;&amp;(w.push(&quot;[&quot;+[b[0]+_[0],b[1]+_[1],b[2]+_[2]].join(&quot;, &quot;)),4===x&amp;&amp;w.push(&quot;, &quot;+b[3]+_[3]),w.push(&quot;]&quot;),w=w.join(&quot;&quot;),t.extraText=y.toUpperCase()+&quot;: &quot;+w),Array.isArray(s.hovertext)&amp;&amp;Array.isArray(s.hovertext[h])?m=s.hovertext[h][f]:Array.isArray(s.text)&amp;&amp;Array.isArray(s.text[h])&amp;&amp;(m=s.text[h][f]);var T=c.c2p(o.y0+(h+.5)*s.dy),k=o.x0+(f+.5)*s.dx,M=o.y0+(h+.5)*s.dy,A=&quot;[&quot;+u.slice(0,s.colormodel.length).join(&quot;, &quot;)+&quot;]&quot;;return[i.extendFlat(t,{index:[h,f],x0:l.c2p(o.x0+f*s.dx),x1:l.c2p(o.x0+(f+1)*s.dx),y0:T,y1:T,color:b,xVal:k,xLabelVal:k,yVal:M,yLabelVal:M,zLabelVal:A,text:m,hovertemplateLabels:{zLabel:A,colorLabel:w,&quot;color[0]Label&quot;:b[0]+_[0],&quot;color[1]Label&quot;:b[1]+_[1],&quot;color[2]Label&quot;:b[2]+_[2],&quot;color[3]Label&quot;:b[3]+_[3]}})]}}}},{&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;./constants&quot;:1108}],1113:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;image&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;2dMap&quot;,&quot;noSortingByValue&quot;],animatable:!1,meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1106,&quot;./calc&quot;:1107,&quot;./defaults&quot;:1109,&quot;./event_data&quot;:1110,&quot;./hover&quot;:1112,&quot;./plot&quot;:1114,&quot;./style&quot;:1115}],1114:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=i.strTranslate,o=t(&quot;../../constants/xmlns_namespaces&quot;),s=t(&quot;./constants&quot;),l=i.isIOS()||i.isSafari()||i.isIE();e.exports=function(t,e,r,c){var u=e.xaxis,f=e.yaxis,h=!(l||t._context._exportedPlot);i.makeTraceGroups(c,r,&quot;im&quot;).each((function(e){var r=n.select(this),l=e[0],c=l.trace,p=h&amp;&amp;!c._hasZ&amp;&amp;c._hasSource&amp;&amp;&quot;linear&quot;===u.type&amp;&amp;&quot;linear&quot;===f.type;c._fastImage=p;var d,g,m,v,y,x,b=l.z,_=l.x0,w=l.y0,T=l.w,k=l.h,M=c.dx,A=c.dy;for(x=0;void 0===d&amp;&amp;x&lt;T;)d=u.c2p(_+x*M),x++;for(x=T;void 0===g&amp;&amp;x&gt;0;)g=u.c2p(_+x*M),x--;for(x=0;void 0===v&amp;&amp;x&lt;k;)v=f.c2p(w+x*A),x++;for(x=k;void 0===y&amp;&amp;x&gt;0;)y=f.c2p(w+x*A),x--;if(g&lt;d&amp;&amp;(m=g,g=d,d=m),y&lt;v&amp;&amp;(m=v,v=y,y=m),!p){d=Math.max(-.5*u._length,d),g=Math.min(1.5*u._length,g),v=Math.max(-.5*f._length,v),y=Math.min(1.5*f._length,y)}var S=Math.round(g-d),E=Math.round(y-v);if(S&lt;=0||E&lt;=0){r.selectAll(&quot;image&quot;).data([]).exit().remove()}else{var C=r.selectAll(&quot;image&quot;).data([e]);C.enter().append(&quot;svg:image&quot;).attr({xmlns:o.svg,preserveAspectRatio:&quot;none&quot;}),C.exit().remove();var L=&quot;image-rendering: optimizeSpeed; image-rendering: -moz-crisp-edges; image-rendering: -o-crisp-edges; image-rendering: -webkit-optimize-contrast; image-rendering: optimize-contrast; image-rendering: crisp-edges; image-rendering: pixelated;&quot;;if(p){var I=i.simpleMap(u.range,u.r2l),P=i.simpleMap(f.range,f.r2l),z=I[1]&lt;I[0],O=P[1]&gt;P[0];if(z||O){var D=d+S/2,R=v+E/2;L+=&quot;transform:&quot;+a(D+&quot;px&quot;,R+&quot;px&quot;)+&quot;scale(&quot;+(z?-1:1)+&quot;,&quot;+(O?-1:1)+&quot;)&quot;+a(-D+&quot;px&quot;,-R+&quot;px&quot;)+&quot;;&quot;}}C.attr(&quot;style&quot;,L);var F=new Promise((function(t){if(c._hasZ)t();else if(c._hasSource)if(c._canvas&amp;&amp;c._canvas.el.width===T&amp;&amp;c._canvas.el.height===k&amp;&amp;c._canvas.source===c.source)t();else{var e=document.createElement(&quot;canvas&quot;);e.width=T,e.height=k;var r=e.getContext(&quot;2d&quot;);c._image=c._image||new Image;var n=c._image;n.onload=function(){r.drawImage(n,0,0),c._canvas={el:e,source:c.source},t()},n.setAttribute(&quot;src&quot;,c.source)}})).then((function(){var t;if(c._hasZ)t=B((function(t,e){return b[e][t]})).toDataURL(&quot;image/png&quot;);else if(c._hasSource)if(p)t=c.source;else{var e=c._canvas.el.getContext(&quot;2d&quot;).getImageData(0,0,T,k).data;t=B((function(t,r){var n=4*(r*T+t);return[e[n],e[n+1],e[n+2],e[n+3]]})).toDataURL(&quot;image/png&quot;)}C.attr({&quot;xlink:href&quot;:t,height:E,width:S,x:d,y:v})}));t._promises.push(F)}function B(t){var e=document.createElement(&quot;canvas&quot;);e.width=S,e.height=E;var r,n=e.getContext(&quot;2d&quot;),a=function(t){return i.constrain(Math.round(u.c2p(_+t*M)-d),0,S)},o=function(t){return i.constrain(Math.round(f.c2p(w+t*A)-v),0,E)},h=s.colormodel[c.colormodel],p=h.colormodel||c.colormodel,g=h.fmt;for(x=0;x&lt;l.w;x++){var m=a(x),y=a(x+1);if(y!==m&amp;&amp;!isNaN(y)&amp;&amp;!isNaN(m))for(var b=0;b&lt;l.h;b++){var T=o(b),k=o(b+1);k===T||isNaN(k)||isNaN(T)||!t(x,b)||(r=c._scaler(t(x,b)),n.fillStyle=r?p+&quot;(&quot;+g(r).join(&quot;,&quot;)+&quot;)&quot;:&quot;rgba(0,0,0,0)&quot;,n.fillRect(m,T,y-m,k-T))}}return e}}))}},{&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../lib&quot;:778,&quot;./constants&quot;:1108,d3:169}],1115:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;);e.exports=function(t){n.select(t).selectAll(&quot;.im image&quot;).style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity}))}},{d3:169}],1116:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;../../lib/extend&quot;).extendDeep,a=t(&quot;../../plot_api/edit_types&quot;).overrideAll,o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../components/color/attributes&quot;),l=t(&quot;../../plots/domain&quot;).attributes,c=t(&quot;../../plots/cartesian/layout_attributes&quot;),u=t(&quot;../../plot_api/plot_template&quot;).templatedArray,f=t(&quot;../../constants/delta.js&quot;),h=(t(&quot;../../constants/docs&quot;).FORMAT_LINK,o({editType:&quot;plot&quot;,colorEditType:&quot;plot&quot;})),p={color:{valType:&quot;color&quot;,editType:&quot;plot&quot;},line:{color:{valType:&quot;color&quot;,dflt:s.defaultLine,editType:&quot;plot&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},thickness:{valType:&quot;number&quot;,min:0,max:1,dflt:1,editType:&quot;plot&quot;},editType:&quot;calc&quot;},d={valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},g=u(&quot;step&quot;,i({},p,{range:d}));e.exports={mode:{valType:&quot;flaglist&quot;,editType:&quot;calc&quot;,flags:[&quot;number&quot;,&quot;delta&quot;,&quot;gauge&quot;],dflt:&quot;number&quot;},value:{valType:&quot;number&quot;,editType:&quot;calc&quot;,anim:!0},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;plot&quot;},domain:l({name:&quot;indicator&quot;,trace:!0,editType:&quot;calc&quot;}),title:{text:{valType:&quot;string&quot;,editType:&quot;plot&quot;},align:{valType:&quot;enumerated&quot;,values:[&quot;left&quot;,&quot;center&quot;,&quot;right&quot;],editType:&quot;plot&quot;},font:n({},h,{}),editType:&quot;plot&quot;},number:{valueformat:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},font:n({},h,{}),prefix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},suffix:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},editType:&quot;plot&quot;},delta:{reference:{valType:&quot;number&quot;,editType:&quot;calc&quot;},position:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;,&quot;left&quot;,&quot;right&quot;],dflt:&quot;bottom&quot;,editType:&quot;plot&quot;},relative:{valType:&quot;boolean&quot;,editType:&quot;plot&quot;,dflt:!1},valueformat:{valType:&quot;string&quot;,editType:&quot;plot&quot;},increasing:{symbol:{valType:&quot;string&quot;,dflt:f.INCREASING.SYMBOL,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:f.INCREASING.COLOR,editType:&quot;plot&quot;},editType:&quot;plot&quot;},decreasing:{symbol:{valType:&quot;string&quot;,dflt:f.DECREASING.SYMBOL,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,dflt:f.DECREASING.COLOR,editType:&quot;plot&quot;},editType:&quot;plot&quot;},font:n({},h,{}),editType:&quot;calc&quot;},gauge:{shape:{valType:&quot;enumerated&quot;,editType:&quot;plot&quot;,dflt:&quot;angular&quot;,values:[&quot;angular&quot;,&quot;bullet&quot;]},bar:i({},p,{color:{dflt:&quot;green&quot;}}),bgcolor:{valType:&quot;color&quot;,editType:&quot;plot&quot;},bordercolor:{valType:&quot;color&quot;,dflt:s.defaultLine,editType:&quot;plot&quot;},borderwidth:{valType:&quot;number&quot;,min:0,dflt:1,editType:&quot;plot&quot;},axis:a({range:d,visible:n({},c.visible,{dflt:!0}),tickmode:c.tickmode,nticks:c.nticks,tick0:c.tick0,dtick:c.dtick,tickvals:c.tickvals,ticktext:c.ticktext,ticks:n({},c.ticks,{dflt:&quot;outside&quot;}),ticklen:c.ticklen,tickwidth:c.tickwidth,tickcolor:c.tickcolor,showticklabels:c.showticklabels,tickfont:o({}),tickangle:c.tickangle,tickformat:c.tickformat,tickformatstops:c.tickformatstops,tickprefix:c.tickprefix,showtickprefix:c.showtickprefix,ticksuffix:c.ticksuffix,showticksuffix:c.showticksuffix,separatethousands:c.separatethousands,exponentformat:c.exponentformat,minexponent:c.minexponent,showexponent:c.showexponent,editType:&quot;plot&quot;},&quot;plot&quot;),steps:g,threshold:{line:{color:n({},p.line.color,{}),width:n({},p.line.width,{dflt:1}),editType:&quot;plot&quot;},thickness:n({},p.thickness,{dflt:.85}),value:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:!1},editType:&quot;plot&quot;},editType:&quot;plot&quot;}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../constants/delta.js&quot;:747,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856}],1117:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;indicator&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1118:[function(t,e,r){&quot;use strict&quot;;e.exports={calc:function(t,e){var r=[],n=e.value;&quot;number&quot;!=typeof e._lastValue&amp;&amp;(e._lastValue=e.value);var i=e._lastValue,a=i;return e._hasDelta&amp;&amp;&quot;number&quot;==typeof e.delta.reference&amp;&amp;(a=e.delta.reference),r[0]={y:n,lastY:i,delta:n-a,relativeDelta:(n-a)/a},r}}},{}],1119:[function(t,e,r){&quot;use strict&quot;;e.exports={defaultNumberFontSize:80,bulletNumberDomainSize:.25,bulletPadding:.025,innerRadius:.75,valueThickness:.5,titlePadding:5,horizontalPadding:10}},{}],1120:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../../plot_api/plot_template&quot;),s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;./constants.js&quot;),c=t(&quot;../../plots/cartesian/tick_value_defaults&quot;),u=t(&quot;../../plots/cartesian/tick_mark_defaults&quot;),f=t(&quot;../../plots/cartesian/tick_label_defaults&quot;);function h(t,e){function r(r,a){return n.coerce(t,e,i.gauge.steps,r,a)}r(&quot;color&quot;),r(&quot;line.color&quot;),r(&quot;line.width&quot;),r(&quot;range&quot;),r(&quot;thickness&quot;)}e.exports={supplyDefaults:function(t,e,r,p){function d(r,a){return n.coerce(t,e,i,r,a)}a(e,p,d),d(&quot;mode&quot;),e._hasNumber=-1!==e.mode.indexOf(&quot;number&quot;),e._hasDelta=-1!==e.mode.indexOf(&quot;delta&quot;),e._hasGauge=-1!==e.mode.indexOf(&quot;gauge&quot;);var g=d(&quot;value&quot;);e._range=[0,&quot;number&quot;==typeof g?1.5*g:1];var m,v,y,x,b,_,w=new Array(2);function T(t,e){return n.coerce(y,x,i.gauge,t,e)}function k(t,e){return n.coerce(b,_,i.gauge.axis,t,e)}if(e._hasNumber&amp;&amp;(d(&quot;number.valueformat&quot;),d(&quot;number.font.color&quot;,p.font.color),d(&quot;number.font.family&quot;,p.font.family),d(&quot;number.font.size&quot;),void 0===e.number.font.size&amp;&amp;(e.number.font.size=l.defaultNumberFontSize,w[0]=!0),d(&quot;number.prefix&quot;),d(&quot;number.suffix&quot;),m=e.number.font.size),e._hasDelta&amp;&amp;(d(&quot;delta.font.color&quot;,p.font.color),d(&quot;delta.font.family&quot;,p.font.family),d(&quot;delta.font.size&quot;),void 0===e.delta.font.size&amp;&amp;(e.delta.font.size=(e._hasNumber?.5:1)*(m||l.defaultNumberFontSize),w[1]=!0),d(&quot;delta.reference&quot;,e.value),d(&quot;delta.relative&quot;),d(&quot;delta.valueformat&quot;,e.delta.relative?&quot;2%&quot;:&quot;&quot;),d(&quot;delta.increasing.symbol&quot;),d(&quot;delta.increasing.color&quot;),d(&quot;delta.decreasing.symbol&quot;),d(&quot;delta.decreasing.color&quot;),d(&quot;delta.position&quot;),v=e.delta.font.size),e._scaleNumbers=(!e._hasNumber||w[0])&amp;&amp;(!e._hasDelta||w[1])||!1,d(&quot;title.font.color&quot;,p.font.color),d(&quot;title.font.family&quot;,p.font.family),d(&quot;title.font.size&quot;,.25*(m||v||l.defaultNumberFontSize)),d(&quot;title.text&quot;),e._hasGauge){(y=t.gauge)||(y={}),x=o.newContainer(e,&quot;gauge&quot;),T(&quot;shape&quot;),(e._isBullet=&quot;bullet&quot;===e.gauge.shape)||d(&quot;title.align&quot;,&quot;center&quot;),(e._isAngular=&quot;angular&quot;===e.gauge.shape)||d(&quot;align&quot;,&quot;center&quot;),T(&quot;bgcolor&quot;,p.paper_bgcolor),T(&quot;borderwidth&quot;),T(&quot;bordercolor&quot;),T(&quot;bar.color&quot;),T(&quot;bar.line.color&quot;),T(&quot;bar.line.width&quot;),T(&quot;bar.thickness&quot;,l.valueThickness*(&quot;bullet&quot;===e.gauge.shape?.5:1)),s(y,x,{name:&quot;steps&quot;,handleItemDefaults:h}),T(&quot;threshold.value&quot;),T(&quot;threshold.thickness&quot;),T(&quot;threshold.line.width&quot;),T(&quot;threshold.line.color&quot;),b={},y&amp;&amp;(b=y.axis||{}),_=o.newContainer(x,&quot;axis&quot;),k(&quot;visible&quot;),e._range=k(&quot;range&quot;,e._range);var M={outerTicks:!0};c(b,_,k,&quot;linear&quot;),f(b,_,k,&quot;linear&quot;,M),u(b,_,k,M)}else d(&quot;title.align&quot;,&quot;center&quot;),d(&quot;align&quot;,&quot;center&quot;),e._isAngular=e._isBullet=!1;e._length=null}}},{&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/tick_label_defaults&quot;:849,&quot;../../plots/cartesian/tick_mark_defaults&quot;:850,&quot;../../plots/cartesian/tick_value_defaults&quot;:851,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1116,&quot;./constants.js&quot;:1119}],1121:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;indicator&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;svg&quot;,&quot;noOpacity&quot;,&quot;noHover&quot;],animatable:!0,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./plot&quot;),meta:{}}},{&quot;./attributes&quot;:1116,&quot;./base_plot&quot;:1117,&quot;./calc&quot;:1118,&quot;./defaults&quot;:1120,&quot;./plot&quot;:1122}],1122:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=i.strScale,o=i.strTranslate,s=i.rad2deg,l=t(&quot;../../constants/alignment&quot;).MID_SHIFT,c=t(&quot;../../components/drawing&quot;),u=t(&quot;./constants&quot;),f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../../plots/cartesian/axes&quot;),p=t(&quot;../../plots/cartesian/axis_defaults&quot;),d=t(&quot;../../plots/cartesian/position_defaults&quot;),g=t(&quot;../../plots/cartesian/layout_attributes&quot;),m=t(&quot;../../components/color&quot;),v={left:&quot;start&quot;,center:&quot;middle&quot;,right:&quot;end&quot;},y={left:0,center:.5,right:1},x=/[yzafpn\xb5mkMGTPEZY]/;function b(t){return t&amp;&amp;t.duration&gt;0}function _(t){t.each((function(t){m.stroke(n.select(this),t.line.color)})).each((function(t){m.fill(n.select(this),t.color)})).style(&quot;stroke-width&quot;,(function(t){return t.line.width}))}function w(t,e,r){var n=t._fullLayout,a=i.extendFlat({type:&quot;linear&quot;,ticks:&quot;outside&quot;,range:r,showline:!0},e),o={type:&quot;linear&quot;,_id:&quot;x&quot;+e._id},s={letter:&quot;x&quot;,font:n.font,noHover:!0,noTickson:!0};function l(t,e){return i.coerce(a,o,g,t,e)}return p(a,o,l,s,n),d(a,o,l,s),o}function T(t,e,r){return[Math.min(e/t.width,r/t.height),t,e+&quot;x&quot;+r]}function k(t,e,r,i){var a=document.createElementNS(&quot;http://www.w3.org/2000/svg&quot;,&quot;text&quot;),o=n.select(a);return o.text(t).attr(&quot;x&quot;,0).attr(&quot;y&quot;,0).attr(&quot;text-anchor&quot;,r).attr(&quot;data-unformatted&quot;,t).call(f.convertToTspans,i).call(c.font,e),c.bBox(o.node())}function M(t,e,r,n,a,o){var s=&quot;_cache&quot;+e;t[s]&amp;&amp;t[s].key===a||(t[s]={key:a,value:r});var l=i.aggNums(o,null,[t[s].value,n],2);return t[s].value=l,l}e.exports=function(t,e,r,p){var d,g=t._fullLayout;b(r)&amp;&amp;p&amp;&amp;(d=p()),i.makeTraceGroups(g._indicatorlayer,e,&quot;trace&quot;).each((function(e){var p,A,S,E,C,L=e[0].trace,I=n.select(this),P=L._hasGauge,z=L._isAngular,O=L._isBullet,D=L.domain,R={w:g._size.w*(D.x[1]-D.x[0]),h:g._size.h*(D.y[1]-D.y[0]),l:g._size.l+g._size.w*D.x[0],r:g._size.r+g._size.w*(1-D.x[1]),t:g._size.t+g._size.h*(1-D.y[1]),b:g._size.b+g._size.h*D.y[0]},F=R.l+R.w/2,B=R.t+R.h/2,N=Math.min(R.w/2,R.h),j=u.innerRadius*N,U=L.align||&quot;center&quot;;if(A=B,P){if(z&amp;&amp;(p=F,A=B+N/2,S=function(t){return function(t,e){var r=Math.sqrt(t.width/2*(t.width/2)+t.height*t.height);return[e/r,t,e]}(t,.9*j)}),O){var V=u.bulletPadding,q=1-u.bulletNumberDomainSize+V;p=R.l+(q+(1-q)*y[U])*R.w,S=function(t){return T(t,(u.bulletNumberDomainSize-V)*R.w,R.h)}}}else p=R.l+y[U]*R.w,S=function(t){return T(t,R.w,R.h)};!function(t,e,r,s){var l,u,p,d=r[0].trace,g=s.numbersX,_=s.numbersY,T=d.align||&quot;center&quot;,A=v[T],S=s.transitionOpts,E=s.onComplete,C=i.ensureSingle(e,&quot;g&quot;,&quot;numbers&quot;),L=[];d._hasNumber&amp;&amp;L.push(&quot;number&quot;);d._hasDelta&amp;&amp;(L.push(&quot;delta&quot;),&quot;left&quot;===d.delta.position&amp;&amp;L.reverse());var I=C.selectAll(&quot;text&quot;).data(L);function P(e,r,n,i){if(!e.match(&quot;s&quot;)||n&gt;=0==i&gt;=0||r(n).slice(-1).match(x)||r(i).slice(-1).match(x))return r;var a=e.slice().replace(&quot;s&quot;,&quot;f&quot;).replace(/\d+/,(function(t){return parseInt(t)-1})),o=w(t,{tickformat:a});return function(t){return Math.abs(t)&lt;1?h.tickText(o,t).text:r(t)}}I.enter().append(&quot;text&quot;),I.attr(&quot;text-anchor&quot;,(function(){return A})).attr(&quot;class&quot;,(function(t){return t})).attr(&quot;x&quot;,null).attr(&quot;y&quot;,null).attr(&quot;dx&quot;,null).attr(&quot;dy&quot;,null),I.exit().remove();var z,O=d.mode+d.align;d._hasDelta&amp;&amp;(z=function(){var e=w(t,{tickformat:d.delta.valueformat},d._range);e.setScale(),h.prepTicks(e);var i=function(t){return h.tickText(e,t).text},a=function(t){return d.delta.relative?t.relativeDelta:t.delta},o=function(t,e){return 0===t||&quot;number&quot;!=typeof t||isNaN(t)?&quot;-&quot;:(t&gt;0?d.delta.increasing.symbol:d.delta.decreasing.symbol)+e(t)},s=function(t){return t.delta&gt;=0?d.delta.increasing.color:d.delta.decreasing.color};void 0===d._deltaLastValue&amp;&amp;(d._deltaLastValue=a(r[0]));var l=C.select(&quot;text.delta&quot;);function p(){l.text(o(a(r[0]),i)).call(m.fill,s(r[0])).call(f.convertToTspans,t)}return l.call(c.font,d.delta.font).call(m.fill,s({delta:d._deltaLastValue})),b(S)?l.transition().duration(S.duration).ease(S.easing).tween(&quot;text&quot;,(function(){var t=n.select(this),e=a(r[0]),l=d._deltaLastValue,c=P(d.delta.valueformat,i,l,e),u=n.interpolateNumber(l,e);return d._deltaLastValue=e,function(e){t.text(o(u(e),c)),t.call(m.fill,s({delta:u(e)}))}})).each(&quot;end&quot;,(function(){p(),E&amp;&amp;E()})).each(&quot;interrupt&quot;,(function(){p(),E&amp;&amp;E()})):p(),u=k(o(a(r[0]),i),d.delta.font,A,t),l}(),O+=d.delta.position+d.delta.font.size+d.delta.font.family+d.delta.valueformat,O+=d.delta.increasing.symbol+d.delta.decreasing.symbol,p=u);d._hasNumber&amp;&amp;(!function(){var e=w(t,{tickformat:d.number.valueformat},d._range);e.setScale(),h.prepTicks(e);var i=function(t){return h.tickText(e,t).text},a=d.number.suffix,o=d.number.prefix,s=C.select(&quot;text.number&quot;);function u(){var e=&quot;number&quot;==typeof r[0].y?o+i(r[0].y)+a:&quot;-&quot;;s.text(e).call(c.font,d.number.font).call(f.convertToTspans,t)}b(S)?s.transition().duration(S.duration).ease(S.easing).each(&quot;end&quot;,(function(){u(),E&amp;&amp;E()})).each(&quot;interrupt&quot;,(function(){u(),E&amp;&amp;E()})).attrTween(&quot;text&quot;,(function(){var t=n.select(this),e=n.interpolateNumber(r[0].lastY,r[0].y);d._lastValue=r[0].y;var s=P(d.number.valueformat,i,r[0].lastY,r[0].y);return function(r){t.text(o+s(e(r))+a)}})):u(),l=k(o+i(r[0].y)+a,d.number.font,A,t)}(),O+=d.number.font.size+d.number.font.family+d.number.valueformat+d.number.suffix+d.number.prefix,p=l);if(d._hasDelta&amp;&amp;d._hasNumber){var D,R,F=[(l.left+l.right)/2,(l.top+l.bottom)/2],B=[(u.left+u.right)/2,(u.top+u.bottom)/2],N=.75*d.delta.font.size;&quot;left&quot;===d.delta.position&amp;&amp;(D=M(d,&quot;deltaPos&quot;,0,-1*(l.width*y[d.align]+u.width*(1-y[d.align])+N),O,Math.min),R=F[1]-B[1],p={width:l.width+u.width+N,height:Math.max(l.height,u.height),left:u.left+D,right:l.right,top:Math.min(l.top,u.top+R),bottom:Math.max(l.bottom,u.bottom+R)}),&quot;right&quot;===d.delta.position&amp;&amp;(D=M(d,&quot;deltaPos&quot;,0,l.width*(1-y[d.align])+u.width*y[d.align]+N,O,Math.max),R=F[1]-B[1],p={width:l.width+u.width+N,height:Math.max(l.height,u.height),left:l.left,right:u.right+D,top:Math.min(l.top,u.top+R),bottom:Math.max(l.bottom,u.bottom+R)}),&quot;bottom&quot;===d.delta.position&amp;&amp;(D=null,R=u.height,p={width:Math.max(l.width,u.width),height:l.height+u.height,left:Math.min(l.left,u.left),right:Math.max(l.right,u.right),top:l.bottom-l.height,bottom:l.bottom+u.height}),&quot;top&quot;===d.delta.position&amp;&amp;(D=null,R=l.top,p={width:Math.max(l.width,u.width),height:l.height+u.height,left:Math.min(l.left,u.left),right:Math.max(l.right,u.right),top:l.bottom-l.height-u.height,bottom:l.bottom}),z.attr({dx:D,dy:R})}(d._hasNumber||d._hasDelta)&amp;&amp;C.attr(&quot;transform&quot;,(function(){var t=s.numbersScaler(p);O+=t[2];var e,r=M(d,&quot;numbersScale&quot;,1,t[0],O,Math.min);d._scaleNumbers||(r=1),e=d._isAngular?_-r*p.bottom:_-r*(p.top+p.bottom)/2,d._numbersTop=r*p.top+e;var n=p[T];&quot;center&quot;===T&amp;&amp;(n=(p.left+p.right)/2);var i=g-r*n;return i=M(d,&quot;numbersTranslate&quot;,0,i,O,Math.max),o(i,e)+a(r)}))}(t,I,e,{numbersX:p,numbersY:A,numbersScaler:S,transitionOpts:r,onComplete:d}),P&amp;&amp;(E={range:L.gauge.axis.range,color:L.gauge.bgcolor,line:{color:L.gauge.bordercolor,width:0},thickness:1},C={range:L.gauge.axis.range,color:&quot;rgba(0, 0, 0, 0)&quot;,line:{color:L.gauge.bordercolor,width:L.gauge.borderwidth},thickness:1});var H=I.selectAll(&quot;g.angular&quot;).data(z?e:[]);H.exit().remove();var G=I.selectAll(&quot;g.angularaxis&quot;).data(z?e:[]);G.exit().remove(),z&amp;&amp;function(t,e,r,i){var a,c,u,f,p=r[0].trace,d=i.size,g=i.radius,m=i.innerRadius,v=i.gaugeBg,y=i.gaugeOutline,x=[d.l+d.w/2,d.t+d.h/2+g/2],T=i.gauge,k=i.layer,M=i.transitionOpts,A=i.onComplete,S=Math.PI/2;function E(t){var e=p.gauge.axis.range[0],r=(t-e)/(p.gauge.axis.range[1]-e)*Math.PI-S;return r&lt;-S?-S:r&gt;S?S:r}function C(t){return n.svg.arc().innerRadius((m+g)/2-t/2*(g-m)).outerRadius((m+g)/2+t/2*(g-m)).startAngle(-S)}function L(t){t.attr(&quot;d&quot;,(function(t){return C(t.thickness).startAngle(E(t.range[0])).endAngle(E(t.range[1]))()}))}T.enter().append(&quot;g&quot;).classed(&quot;angular&quot;,!0),T.attr(&quot;transform&quot;,o(x[0],x[1])),k.enter().append(&quot;g&quot;).classed(&quot;angularaxis&quot;,!0).classed(&quot;crisp&quot;,!0),k.selectAll(&quot;g.xangularaxistick,path,text&quot;).remove(),(a=w(t,p.gauge.axis)).type=&quot;linear&quot;,a.range=p.gauge.axis.range,a._id=&quot;xangularaxis&quot;,a.setScale();var I=function(t){return(a.range[0]-t.x)/(a.range[1]-a.range[0])*Math.PI+Math.PI},P={},z=h.makeLabelFns(a,0).labelStandoff;P.xFn=function(t){var e=I(t);return Math.cos(e)*z},P.yFn=function(t){var e=I(t),r=Math.sin(e)&gt;0?.2:1;return-Math.sin(e)*(z+t.fontSize*r)+Math.abs(Math.cos(e))*(t.fontSize*l)},P.anchorFn=function(t){var e=I(t),r=Math.cos(e);return Math.abs(r)&lt;.1?&quot;middle&quot;:r&gt;0?&quot;start&quot;:&quot;end&quot;},P.heightFn=function(t,e,r){var n=I(t);return-.5*(1+Math.sin(n))*r};var O=function(t){return o(x[0]+g*Math.cos(t),x[1]-g*Math.sin(t))};u=function(t){return O(I(t))};if(c=h.calcTicks(a),f=h.getTickSigns(a)[2],a.visible){f=&quot;inside&quot;===a.ticks?-1:1;var D=(a.linewidth||1)/2;h.drawTicks(t,a,{vals:c,layer:k,path:&quot;M&quot;+f*D+&quot;,0h&quot;+f*a.ticklen,transFn:function(t){var e=I(t);return O(e)+&quot;rotate(&quot;+-s(e)+&quot;)&quot;}}),h.drawLabels(t,a,{vals:c,layer:k,transFn:u,labelFns:P})}var R=[v].concat(p.gauge.steps),F=T.selectAll(&quot;g.bg-arc&quot;).data(R);F.enter().append(&quot;g&quot;).classed(&quot;bg-arc&quot;,!0).append(&quot;path&quot;),F.select(&quot;path&quot;).call(L).call(_),F.exit().remove();var B=C(p.gauge.bar.thickness),N=T.selectAll(&quot;g.value-arc&quot;).data([p.gauge.bar]);N.enter().append(&quot;g&quot;).classed(&quot;value-arc&quot;,!0).append(&quot;path&quot;);var j=N.select(&quot;path&quot;);b(M)?(j.transition().duration(M.duration).ease(M.easing).each(&quot;end&quot;,(function(){A&amp;&amp;A()})).each(&quot;interrupt&quot;,(function(){A&amp;&amp;A()})).attrTween(&quot;d&quot;,(U=B,V=E(r[0].lastY),q=E(r[0].y),function(){var t=n.interpolate(V,q);return function(e){return U.endAngle(t(e))()}})),p._lastValue=r[0].y):j.attr(&quot;d&quot;,&quot;number&quot;==typeof r[0].y?B.endAngle(E(r[0].y)):&quot;M0,0Z&quot;);var U,V,q;j.call(_),N.exit().remove(),R=[];var H=p.gauge.threshold.value;H&amp;&amp;R.push({range:[H,H],color:p.gauge.threshold.color,line:{color:p.gauge.threshold.line.color,width:p.gauge.threshold.line.width},thickness:p.gauge.threshold.thickness});var G=T.selectAll(&quot;g.threshold-arc&quot;).data(R);G.enter().append(&quot;g&quot;).classed(&quot;threshold-arc&quot;,!0).append(&quot;path&quot;),G.select(&quot;path&quot;).call(L).call(_),G.exit().remove();var Y=T.selectAll(&quot;g.gauge-outline&quot;).data([y]);Y.enter().append(&quot;g&quot;).classed(&quot;gauge-outline&quot;,!0).append(&quot;path&quot;),Y.select(&quot;path&quot;).call(L).call(_),Y.exit().remove()}(t,0,e,{radius:N,innerRadius:j,gauge:H,layer:G,size:R,gaugeBg:E,gaugeOutline:C,transitionOpts:r,onComplete:d});var Y=I.selectAll(&quot;g.bullet&quot;).data(O?e:[]);Y.exit().remove();var W=I.selectAll(&quot;g.bulletaxis&quot;).data(O?e:[]);W.exit().remove(),O&amp;&amp;function(t,e,r,n){var i,a,s,l,c,f=r[0].trace,p=n.gauge,d=n.layer,g=n.gaugeBg,v=n.gaugeOutline,y=n.size,x=f.domain,T=n.transitionOpts,k=n.onComplete;p.enter().append(&quot;g&quot;).classed(&quot;bullet&quot;,!0),p.attr(&quot;transform&quot;,o(y.l,y.t)),d.enter().append(&quot;g&quot;).classed(&quot;bulletaxis&quot;,!0).classed(&quot;crisp&quot;,!0),d.selectAll(&quot;g.xbulletaxistick,path,text&quot;).remove();var M=y.h,A=f.gauge.bar.thickness*M,S=x.x[0],E=x.x[0]+(x.x[1]-x.x[0])*(f._hasNumber||f._hasDelta?1-u.bulletNumberDomainSize:1);(i=w(t,f.gauge.axis))._id=&quot;xbulletaxis&quot;,i.domain=[S,E],i.setScale(),a=h.calcTicks(i),s=h.makeTransTickFn(i),l=h.getTickSigns(i)[2],c=y.t+y.h,i.visible&amp;&amp;(h.drawTicks(t,i,{vals:&quot;inside&quot;===i.ticks?h.clipEnds(i,a):a,layer:d,path:h.makeTickPath(i,c,l),transFn:s}),h.drawLabels(t,i,{vals:a,layer:d,transFn:s,labelFns:h.makeLabelFns(i,c)}));function C(t){t.attr(&quot;width&quot;,(function(t){return Math.max(0,i.c2p(t.range[1])-i.c2p(t.range[0]))})).attr(&quot;x&quot;,(function(t){return i.c2p(t.range[0])})).attr(&quot;y&quot;,(function(t){return.5*(1-t.thickness)*M})).attr(&quot;height&quot;,(function(t){return t.thickness*M}))}var L=[g].concat(f.gauge.steps),I=p.selectAll(&quot;g.bg-bullet&quot;).data(L);I.enter().append(&quot;g&quot;).classed(&quot;bg-bullet&quot;,!0).append(&quot;rect&quot;),I.select(&quot;rect&quot;).call(C).call(_),I.exit().remove();var P=p.selectAll(&quot;g.value-bullet&quot;).data([f.gauge.bar]);P.enter().append(&quot;g&quot;).classed(&quot;value-bullet&quot;,!0).append(&quot;rect&quot;),P.select(&quot;rect&quot;).attr(&quot;height&quot;,A).attr(&quot;y&quot;,(M-A)/2).call(_),b(T)?P.select(&quot;rect&quot;).transition().duration(T.duration).ease(T.easing).each(&quot;end&quot;,(function(){k&amp;&amp;k()})).each(&quot;interrupt&quot;,(function(){k&amp;&amp;k()})).attr(&quot;width&quot;,Math.max(0,i.c2p(Math.min(f.gauge.axis.range[1],r[0].y)))):P.select(&quot;rect&quot;).attr(&quot;width&quot;,&quot;number&quot;==typeof r[0].y?Math.max(0,i.c2p(Math.min(f.gauge.axis.range[1],r[0].y))):0);P.exit().remove();var z=r.filter((function(){return f.gauge.threshold.value})),O=p.selectAll(&quot;g.threshold-bullet&quot;).data(z);O.enter().append(&quot;g&quot;).classed(&quot;threshold-bullet&quot;,!0).append(&quot;line&quot;),O.select(&quot;line&quot;).attr(&quot;x1&quot;,i.c2p(f.gauge.threshold.value)).attr(&quot;x2&quot;,i.c2p(f.gauge.threshold.value)).attr(&quot;y1&quot;,(1-f.gauge.threshold.thickness)/2*M).attr(&quot;y2&quot;,(1-(1-f.gauge.threshold.thickness)/2)*M).call(m.stroke,f.gauge.threshold.line.color).style(&quot;stroke-width&quot;,f.gauge.threshold.line.width),O.exit().remove();var D=p.selectAll(&quot;g.gauge-outline&quot;).data([v]);D.enter().append(&quot;g&quot;).classed(&quot;gauge-outline&quot;,!0).append(&quot;rect&quot;),D.select(&quot;rect&quot;).call(C).call(_),D.exit().remove()}(t,0,e,{gauge:Y,layer:W,size:R,gaugeBg:E,gaugeOutline:C,transitionOpts:r,onComplete:d});var X=I.selectAll(&quot;text.title&quot;).data(e);X.exit().remove(),X.enter().append(&quot;text&quot;).classed(&quot;title&quot;,!0),X.attr(&quot;text-anchor&quot;,(function(){return O?v.right:v[L.title.align]})).text(L.title.text).call(c.font,L.title.font).call(f.convertToTspans,t),X.attr(&quot;transform&quot;,(function(){var t,e=R.l+R.w*y[L.title.align],r=u.titlePadding,n=c.bBox(X.node());if(P){if(z)if(L.gauge.axis.visible)t=c.bBox(G.node()).top-r-n.bottom;else t=R.t+R.h/2-N/2-n.bottom-r;O&amp;&amp;(t=A-(n.top+n.bottom)/2,e=R.l-u.bulletPadding*R.w)}else t=L._numbersTop-r-n.bottom;return o(e,t)}))}))}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../constants/alignment&quot;:745,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_defaults&quot;:830,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/cartesian/position_defaults&quot;:845,&quot;./constants&quot;:1119,d3:169}],1123:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../mesh3d/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll;var c=e.exports=l(s({x:{valType:&quot;data_array&quot;},y:{valType:&quot;data_array&quot;},z:{valType:&quot;data_array&quot;},value:{valType:&quot;data_array&quot;},isomin:{valType:&quot;number&quot;},isomax:{valType:&quot;number&quot;},surface:{show:{valType:&quot;boolean&quot;,dflt:!0},count:{valType:&quot;integer&quot;,dflt:2,min:1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1},pattern:{valType:&quot;flaglist&quot;,flags:[&quot;A&quot;,&quot;B&quot;,&quot;C&quot;,&quot;D&quot;,&quot;E&quot;],extras:[&quot;all&quot;,&quot;odd&quot;,&quot;even&quot;],dflt:&quot;all&quot;}},spaceframe:{show:{valType:&quot;boolean&quot;,dflt:!1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:.15}},slices:{x:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},y:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},z:{show:{valType:&quot;boolean&quot;,dflt:!1},locations:{valType:&quot;data_array&quot;,dflt:[]},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}}},caps:{x:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},y:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},z:{show:{valType:&quot;boolean&quot;,dflt:!0},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}}},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertemplate:i(),showlegend:s({},o.showlegend,{dflt:!1})},n(&quot;&quot;,{colorAttr:&quot;`value`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{opacity:a.opacity,lightposition:a.lightposition,lighting:a.lighting,flatshading:a.flatshading,contour:a.contour,hoverinfo:s({},o.hoverinfo)}),&quot;calc&quot;,&quot;nested&quot;);c.flatshading.dflt=!0,c.lighting.facenormalsepsilon.dflt=0,c.x.editType=c.y.editType=c.z.editType=c.value.editType=&quot;calc+clearAxisTypes&quot;,c.transforms=void 0},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../mesh3d/attributes&quot;:1128}],1124:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;),i=t(&quot;../streamtube/calc&quot;).processGrid,a=t(&quot;../streamtube/calc&quot;).filter;e.exports=function(t,e){e._len=Math.min(e.x.length,e.y.length,e.z.length,e.value.length),e._x=a(e.x,e._len),e._y=a(e.y,e._len),e._z=a(e.z,e._len),e._value=a(e.value,e._len);var r=i(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;for(var o=1/0,s=-1/0,l=0;l&lt;e._len;l++){var c=e._value[l];o=Math.min(o,c),s=Math.max(s,c)}e._minValues=o,e._maxValues=s,e._vMin=void 0===e.isomin||null===e.isomin?o:e.isomin,e._vMax=void 0===e.isomax||null===e.isomin?s:e.isomax,n(t,e,{vals:[e._vMin,e._vMax],containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../streamtube/calc&quot;:1295}],1125:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,a=t(&quot;../../lib/str2rgbarray&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts,s=t(&quot;../../plots/gl3d/zip3&quot;),l=function(t,e){for(var r=e.length-1;r&gt;0;r--){var n=Math.min(e[r],e[r-1]),i=Math.max(e[r],e[r-1]);if(i&gt;n&amp;&amp;n&lt;t&amp;&amp;t&lt;=i)return{id:r,distRatio:(i-t)/(i-n)}}return{id:0,distRatio:0}};function c(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.data=null,this.showContour=!1}var u=c.prototype;u.handlePick=function(t){if(t.object===this.mesh){var e=t.data.index,r=this.data._meshX[e],n=this.data._meshY[e],i=this.data._meshZ[e],a=this.data._Ys.length,o=this.data._Zs.length,s=l(r,this.data._Xs).id,c=l(n,this.data._Ys).id,u=l(i,this.data._Zs).id,f=t.index=u+o*c+o*a*s;t.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Array.isArray(h)&amp;&amp;void 0!==h[f]?t.textLabel=h[f]:h&amp;&amp;(t.textLabel=h),!0}},u.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map((function(e){return t.d2l(e,0,n)*r}))}this.data=h(t);var l={positions:s(n(r.xaxis,t._meshX,e.dataScale[0],t.xcalendar),n(r.yaxis,t._meshY,e.dataScale[1],t.ycalendar),n(r.zaxis,t._meshZ,e.dataScale[2],t.zcalendar)),cells:s(t._meshI,t._meshJ,t._meshK),lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:a(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading},c=o(t);l.vertexIntensity=t._meshIntensity,l.vertexIntensityBounds=[c.min,c.max],l.colormap=i(t),this.mesh.update(l)},u.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()};var f=[&quot;xyz&quot;,&quot;xzy&quot;,&quot;yxz&quot;,&quot;yzx&quot;,&quot;zxy&quot;,&quot;zyx&quot;];function h(t){t._meshI=[],t._meshJ=[],t._meshK=[];var e,r,n,i,a,o,s,c=t.surface.show,u=t.spaceframe.show,h=t.surface.fill,p=t.spaceframe.fill,d=!1,g=!1,m=0,v=t._Xs,y=t._Ys,x=t._Zs,b=v.length,_=y.length,w=x.length,T=f.indexOf(t._gridFill.replace(/-/g,&quot;&quot;).replace(/\+/g,&quot;&quot;)),k=function(t,e,r){switch(T){case 5:return r+w*e+w*_*t;case 4:return r+w*t+w*b*e;case 3:return e+_*r+_*w*t;case 2:return e+_*t+_*b*r;case 1:return t+b*r+b*w*e;default:return t+b*e+b*_*r}},M=t._minValues,A=t._maxValues,S=t._vMin,E=t._vMax;function C(t,e,s){for(var l=o.length,c=r;c&lt;l;c++)if(t===n[c]&amp;&amp;e===i[c]&amp;&amp;s===a[c])return c;return-1}function L(){r=e}function I(){n=[],i=[],a=[],o=[],e=0,L()}function P(t,r,s,l){return n.push(t),i.push(r),a.push(s),o.push(l),++e-1}function z(t,e,r){for(var n=[],i=0;i&lt;t.length;i++)n[i]=t[i]*(1-r)+r*e[i];return n}function O(t){s=t}function D(t,e){return&quot;all&quot;===t||null===t||t.indexOf(e)&gt;-1}function R(t,e){return null===t?e:t}function F(e,r,n){L();var i,a,o,l=[r],c=[n];if(s&gt;=1)l=[r],c=[n];else if(s&gt;0){var u=function(t,e){var r=t[0],n=t[1],i=t[2],a=function(t,e,r){for(var n=[],i=0;i&lt;t.length;i++)n[i]=(t[i]+e[i]+r[i])/3;return n}(r,n,i),o=Math.sqrt(1-s),l=z(a,r,o),c=z(a,n,o),u=z(a,i,o),f=e[0],h=e[1],p=e[2];return{xyzv:[[r,n,c],[c,l,r],[n,i,u],[u,c,n],[i,r,l],[l,u,i]],abc:[[f,h,-1],[-1,-1,f],[h,p,-1],[-1,-1,h],[p,f,-1],[-1,-1,p]]}}(r,n);l=u.xyzv,c=u.abc}for(var f=0;f&lt;l.length;f++){r=l[f],n=c[f];for(var h=[],p=0;p&lt;3;p++){var d=r[p][0],g=r[p][1],v=r[p][2],y=r[p][3],x=n[p]&gt;-1?n[p]:C(d,g,v);h[p]=x&gt;-1?x:P(d,g,v,R(e,y))}i=h[0],a=h[1],o=h[2],t._meshI.push(i),t._meshJ.push(a),t._meshK.push(o),++m}}function B(t,e,r,n){var i=t[3];i&lt;r&amp;&amp;(i=r),i&gt;n&amp;&amp;(i=n);for(var a=(t[3]-i)/(t[3]-e[3]+1e-9),o=[],s=0;s&lt;4;s++)o[s]=(1-a)*t[s]+a*e[s];return o}function N(t,e,r){return t&gt;=e&amp;&amp;t&lt;=r}function j(t){var e=.001*(E-S);return t&gt;=S-e&amp;&amp;t&lt;=E+e}function U(e){for(var r=[],n=0;n&lt;4;n++){var i=e[n];r.push([t._x[i],t._y[i],t._z[i],t._value[i]])}return r}function V(t,e,r,n,i,a){a||(a=1),r=[-1,-1,-1];var o=!1,s=[N(e[0][3],n,i),N(e[1][3],n,i),N(e[2][3],n,i)];if(!s[0]&amp;&amp;!s[1]&amp;&amp;!s[2])return!1;var l=function(t,e,r){return j(e[0][3])&amp;&amp;j(e[1][3])&amp;&amp;j(e[2][3])?(F(t,e,r),!0):a&lt;3&amp;&amp;V(t,e,r,S,E,++a)};if(s[0]&amp;&amp;s[1]&amp;&amp;s[2])return l(t,e,r)||o;var c=!1;return[[0,1,2],[2,0,1],[1,2,0]].forEach((function(a){if(s[a[0]]&amp;&amp;s[a[1]]&amp;&amp;!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(h,u,n,i),d=B(h,f,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,o=l(t,[u,f,d],[r[a[0]],r[a[1]],-1])||o,c=!0}})),c||[[0,1,2],[1,2,0],[2,0,1]].forEach((function(a){if(s[a[0]]&amp;&amp;!s[a[1]]&amp;&amp;!s[a[2]]){var u=e[a[0]],f=e[a[1]],h=e[a[2]],p=B(f,u,n,i),d=B(h,u,n,i);o=l(t,[d,p,u],[-1,-1,r[a[0]]])||o,c=!0}})),o}function q(t,e,r,n){var i=!1,a=U(e),o=[N(a[0][3],r,n),N(a[1][3],r,n),N(a[2][3],r,n),N(a[3][3],r,n)];if(!(o[0]||o[1]||o[2]||o[3]))return i;if(o[0]&amp;&amp;o[1]&amp;&amp;o[2]&amp;&amp;o[3])return g&amp;&amp;(i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(3,0,1),n(2,3,0),n(1,2,3)}(t,a,e)||i),i;var s=!1;return[[0,1,2,3],[3,0,1,2],[2,3,0,1],[1,2,3,0]].forEach((function(l){if(o[l[0]]&amp;&amp;o[l[1]]&amp;&amp;o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]];if(g)i=F(t,[c,u,f],[e[l[0]],e[l[1]],e[l[2]]])||i;else{var p=B(h,c,r,n),d=B(h,u,r,n),m=B(h,f,r,n);i=F(null,[p,d,m],[-1,-1,-1])||i}s=!0}})),s?i:([[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2],[0,2,3,1],[1,3,2,0]].forEach((function(l){if(o[l[0]]&amp;&amp;o[l[1]]&amp;&amp;!o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(f,c,r,n),d=B(f,u,r,n),m=B(h,u,r,n),v=B(h,c,r,n);g?(i=F(t,[c,v,p],[e[l[0]],-1,-1])||i,i=F(t,[u,d,m],[e[l[1]],-1,-1])||i):i=function(t,e,r){var n=function(n,i,a){F(t,[e[n],e[i],e[a]],[r[n],r[i],r[a]])};n(0,1,2),n(2,3,0)}(null,[p,d,m,v],[-1,-1,-1,-1])||i,s=!0}})),s||[[0,1,2,3],[1,2,3,0],[2,3,0,1],[3,0,1,2]].forEach((function(l){if(o[l[0]]&amp;&amp;!o[l[1]]&amp;&amp;!o[l[2]]&amp;&amp;!o[l[3]]){var c=a[l[0]],u=a[l[1]],f=a[l[2]],h=a[l[3]],p=B(u,c,r,n),d=B(f,c,r,n),m=B(h,c,r,n);g?(i=F(t,[c,p,d],[e[l[0]],-1,-1])||i,i=F(t,[c,d,m],[e[l[0]],-1,-1])||i,i=F(t,[c,m,p],[e[l[0]],-1,-1])||i):i=F(null,[p,d,m],[-1,-1,-1])||i,s=!0}})),i)}function H(t,e,r,n,i,a,o,s,l,c,u){var f=!1;return d&amp;&amp;(D(t,&quot;A&quot;)&amp;&amp;(f=q(null,[e,r,n,a],c,u)||f),D(t,&quot;B&quot;)&amp;&amp;(f=q(null,[r,n,i,l],c,u)||f),D(t,&quot;C&quot;)&amp;&amp;(f=q(null,[r,a,o,l],c,u)||f),D(t,&quot;D&quot;)&amp;&amp;(f=q(null,[n,a,s,l],c,u)||f),D(t,&quot;E&quot;)&amp;&amp;(f=q(null,[r,n,a,l],c,u)||f)),g&amp;&amp;(f=q(t,[r,n,a,l],c,u)||f),f}function G(t,e,r,n,i,a,o,s){return[!0===s[0]||V(t,U([e,r,n]),[e,r,n],a,o),!0===s[1]||V(t,U([n,i,e]),[n,i,e],a,o)]}function Y(t,e,r,n,i,a,o,s,l){return s?G(t,e,r,i,n,a,o,l):G(t,r,i,n,e,a,o,l)}function W(t,e,r,n,i,a,o){var s,l,c,u,f=!1,h=function(){f=V(t,[s,l,c],[-1,-1,-1],i,a)||f,f=V(t,[c,u,s],[-1,-1,-1],i,a)||f},p=o[0],d=o[1],g=o[2];return p&amp;&amp;(s=z(U([k(e,r-0,n-0)])[0],U([k(e-1,r-0,n-0)])[0],p),l=z(U([k(e,r-0,n-1)])[0],U([k(e-1,r-0,n-1)])[0],p),c=z(U([k(e,r-1,n-1)])[0],U([k(e-1,r-1,n-1)])[0],p),u=z(U([k(e,r-1,n-0)])[0],U([k(e-1,r-1,n-0)])[0],p),h()),d&amp;&amp;(s=z(U([k(e-0,r,n-0)])[0],U([k(e-0,r-1,n-0)])[0],d),l=z(U([k(e-0,r,n-1)])[0],U([k(e-0,r-1,n-1)])[0],d),c=z(U([k(e-1,r,n-1)])[0],U([k(e-1,r-1,n-1)])[0],d),u=z(U([k(e-1,r,n-0)])[0],U([k(e-1,r-1,n-0)])[0],d),h()),g&amp;&amp;(s=z(U([k(e-0,r-0,n)])[0],U([k(e-0,r-0,n-1)])[0],g),l=z(U([k(e-0,r-1,n)])[0],U([k(e-0,r-1,n-1)])[0],g),c=z(U([k(e-1,r-1,n)])[0],U([k(e-1,r-1,n-1)])[0],g),u=z(U([k(e-1,r-0,n)])[0],U([k(e-1,r-0,n-1)])[0],g),h()),f}function X(t,e,r,n,i,a,o,s,l,c,u,f){var h=t;return f?(d&amp;&amp;&quot;even&quot;===t&amp;&amp;(h=null),H(h,e,r,n,i,a,o,s,l,c,u)):(d&amp;&amp;&quot;odd&quot;===t&amp;&amp;(h=null),H(h,l,s,o,a,i,n,r,e,c,u))}function Z(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;w;c++)for(var u=1;u&lt;_;u++)a.push(Y(t,k(l,u-1,c-1),k(l,u-1,c),k(l,u,c-1),k(l,u,c),r,n,(l+u+c)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function J(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;b;c++)for(var u=1;u&lt;w;u++)a.push(Y(t,k(c-1,l,u-1),k(c,l,u-1),k(c-1,l,u),k(c,l,u),r,n,(c+l+u)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function K(t,e,r,n,i){for(var a=[],o=0,s=0;s&lt;e.length;s++)for(var l=e[s],c=1;c&lt;_;c++)for(var u=1;u&lt;b;u++)a.push(Y(t,k(u-1,c-1,l),k(u-1,c,l),k(u,c-1,l),k(u,c,l),r,n,(u+c+l)%2,i&amp;&amp;i[o]?i[o]:[])),o++;return a}function Q(t,e,r){for(var n=1;n&lt;w;n++)for(var i=1;i&lt;_;i++)for(var a=1;a&lt;b;a++)X(t,k(a-1,i-1,n-1),k(a-1,i-1,n),k(a-1,i,n-1),k(a-1,i,n),k(a,i-1,n-1),k(a,i-1,n),k(a,i,n-1),k(a,i,n),e,r,(a+i+n)%2)}function $(t,e,r){d=!0,Q(t,e,r),d=!1}function tt(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;w;u++)for(var f=1;f&lt;_;f++)o.push(W(t,c,f,u,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function et(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;b;u++)for(var f=1;f&lt;w;f++)o.push(W(t,u,c,f,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function rt(t,e,r,n,i,a){for(var o=[],s=0,l=0;l&lt;e.length;l++)for(var c=e[l],u=1;u&lt;_;u++)for(var f=1;f&lt;b;f++)o.push(W(t,f,u,c,r,n,i[l],a&amp;&amp;a[s]&amp;&amp;a[s])),s++;return o}function nt(t,e){for(var r=[],n=t;n&lt;e;n++)r.push(n);return r}return function(){if(I(),function(){for(var e=0;e&lt;b;e++)for(var r=0;r&lt;_;r++)for(var n=0;n&lt;w;n++){var i=k(e,r,n);P(t._x[i],t._y[i],t._z[i],t._value[i])}}(),u&amp;&amp;p&amp;&amp;(O(p),g=!0,Q(null,S,E),g=!1),c&amp;&amp;h){O(h);for(var e=t.surface.pattern,r=t.surface.count,s=0;s&lt;r;s++){var f=1===r?.5:s/(r-1),d=(1-f)*S+f*E,T=Math.abs(d-M)&gt;Math.abs(d-A)?[M,d]:[d,A];$(e,T[0],T[1])}}var C=[[Math.min(S,A),Math.max(S,A)],[Math.min(M,E),Math.max(M,E)]];[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].forEach((function(e){for(var r=[],n=0;n&lt;C.length;n++){var i=0,a=C[n][0],o=C[n][1],s=t.slices[e];if(s.show&amp;&amp;s.fill){O(s.fill);var c=[],u=[],f=[];if(s.locations.length)for(var h=0;h&lt;s.locations.length;h++){var p=l(s.locations[h],&quot;x&quot;===e?v:&quot;y&quot;===e?y:x);0===p.distRatio?c.push(p.id):p.id&gt;0&amp;&amp;(u.push(p.id),&quot;x&quot;===e?f.push([p.distRatio,0,0]):&quot;y&quot;===e?f.push([0,p.distRatio,0]):f.push([0,0,p.distRatio]))}else c=nt(1,&quot;x&quot;===e?b-1:&quot;y&quot;===e?_-1:w-1);u.length&gt;0&amp;&amp;(r[i]=&quot;x&quot;===e?tt(null,u,a,o,f,r[i]):&quot;y&quot;===e?et(null,u,a,o,f,r[i]):rt(null,u,a,o,f,r[i]),i++),c.length&gt;0&amp;&amp;(r[i]=&quot;x&quot;===e?Z(null,c,a,o,r[i]):&quot;y&quot;===e?J(null,c,a,o,r[i]):K(null,c,a,o,r[i]),i++)}var d=t.caps[e];d.show&amp;&amp;d.fill&amp;&amp;(O(d.fill),r[i]=&quot;x&quot;===e?Z(null,[0,b-1],a,o,r[i]):&quot;y&quot;===e?J(null,[0,_-1],a,o,r[i]):K(null,[0,w-1],a,o,r[i]),i++)}})),0===m&amp;&amp;I(),t._meshX=n,t._meshY=i,t._meshZ=a,t._meshIntensity=o,t._Xs=v,t._Ys=y,t._Zs=x}(),t}e.exports={findNearestOnAxis:l,generateIsoMeshes:h,createIsosurfaceTrace:function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new c(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/gl3d/zip3&quot;:881,&quot;gl-mesh3d&quot;:309}],1126:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../../components/colorscale/defaults&quot;);function s(t,e,r,n,a){var s=a(&quot;isomin&quot;),l=a(&quot;isomax&quot;);null!=l&amp;&amp;null!=s&amp;&amp;s&gt;l&amp;&amp;(e.isomin=null,e.isomax=null);var c=a(&quot;x&quot;),u=a(&quot;y&quot;),f=a(&quot;z&quot;),h=a(&quot;value&quot;);c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length?(i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],n),[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].forEach((function(t){var e=&quot;caps.&quot;+t;a(e+&quot;.show&quot;)&amp;&amp;a(e+&quot;.fill&quot;);var r=&quot;slices.&quot;+t;a(r+&quot;.show&quot;)&amp;&amp;(a(r+&quot;.fill&quot;),a(r+&quot;.locations&quot;))})),a(&quot;spaceframe.show&quot;)&amp;&amp;a(&quot;spaceframe.fill&quot;),a(&quot;surface.show&quot;)&amp;&amp;(a(&quot;surface.count&quot;),a(&quot;surface.fill&quot;),a(&quot;surface.pattern&quot;)),a(&quot;contour.show&quot;)&amp;&amp;(a(&quot;contour.color&quot;),a(&quot;contour.width&quot;)),[&quot;text&quot;,&quot;hovertext&quot;,&quot;hovertemplate&quot;,&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lighting.vertexnormalsepsilon&quot;,&quot;lighting.facenormalsepsilon&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;flatshading&quot;,&quot;opacity&quot;].forEach((function(t){a(t)})),o(t,e,n,a,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),e._length=null):e.visible=!1}e.exports={supplyDefaults:function(t,e,r,i){s(t,e,r,i,(function(r,i){return n.coerce(t,e,a,r,i)}))},supplyIsoDefaults:s}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1123}],1127:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,calc:t(&quot;./calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;).createIsosurfaceTrace,moduleType:&quot;trace&quot;,name:&quot;isosurface&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1123,&quot;./calc&quot;:1124,&quot;./convert&quot;:1125,&quot;./defaults&quot;:1126}],1128:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../surface/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat;e.exports=s({x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},i:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},j:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},k:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertemplate:i({editType:&quot;calc&quot;}),delaunayaxis:{valType:&quot;enumerated&quot;,values:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],dflt:&quot;z&quot;,editType:&quot;calc&quot;},alphahull:{valType:&quot;number&quot;,dflt:-1,editType:&quot;calc&quot;},intensity:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},intensitymode:{valType:&quot;enumerated&quot;,values:[&quot;vertex&quot;,&quot;cell&quot;],dflt:&quot;vertex&quot;,editType:&quot;calc&quot;},color:{valType:&quot;color&quot;,editType:&quot;calc&quot;},vertexcolor:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},facecolor:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},transforms:void 0},n(&quot;&quot;,{colorAttr:&quot;`intensity`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{opacity:a.opacity,flatshading:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},contour:{show:s({},a.contours.x.show,{}),color:a.contours.x.color,width:a.contours.x.width,editType:&quot;calc&quot;},lightposition:{x:s({},a.lightposition.x,{dflt:1e5}),y:s({},a.lightposition.y,{dflt:1e5}),z:s({},a.lightposition.z,{dflt:0}),editType:&quot;calc&quot;},lighting:s({vertexnormalsepsilon:{valType:&quot;number&quot;,min:0,max:1,dflt:1e-12,editType:&quot;calc&quot;},facenormalsepsilon:{valType:&quot;number&quot;,min:0,max:1,dflt:1e-6,editType:&quot;calc&quot;},editType:&quot;calc&quot;},a.lighting),hoverinfo:s({},o.hoverinfo,{editType:&quot;calc&quot;}),showlegend:s({},o.showlegend,{dflt:!1})})},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../surface/attributes&quot;:1311}],1129:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){e.intensity&amp;&amp;n(t,e,{vals:e.intensity,containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651}],1130:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;delaunay-triangulate&quot;),a=t(&quot;alpha-shape&quot;),o=t(&quot;convex-hull&quot;),s=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,l=t(&quot;../../lib/str2rgbarray&quot;),c=t(&quot;../../components/colorscale&quot;).extractOpts,u=t(&quot;../../plots/gl3d/zip3&quot;);function f(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.color=&quot;#fff&quot;,this.data=null,this.showContour=!1}var h=f.prototype;function p(t){for(var e=[],r=t.length,n=0;n&lt;r;n++)e[n]=l(t[n]);return e}function d(t,e,r,n){for(var i=[],a=e.length,o=0;o&lt;a;o++)i[o]=t.d2l(e[o],0,n)*r;return i}function g(t){for(var e=[],r=t.length,n=0;n&lt;r;n++)e[n]=Math.round(t[n]);return e}function m(t,e){for(var r=t.length,n=0;n&lt;r;n++)if(t[n]&lt;=-.5||t[n]&gt;=e-.5)return!1;return!0}h.handlePick=function(t){if(t.object===this.mesh){var e=t.index=t.data.index;t.data._cellCenter?t.traceCoordinate=t.data.dataCoordinate:t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]];var r=this.data.hovertext||this.data.text;return Array.isArray(r)&amp;&amp;void 0!==r[e]?t.textLabel=r[e]:r&amp;&amp;(t.textLabel=r),!0}},h.update=function(t){var e=this.scene,r=e.fullSceneLayout;this.data=t;var n,f=t.x.length,h=u(d(r.xaxis,t.x,e.dataScale[0],t.xcalendar),d(r.yaxis,t.y,e.dataScale[1],t.ycalendar),d(r.zaxis,t.z,e.dataScale[2],t.zcalendar));if(t.i&amp;&amp;t.j&amp;&amp;t.k){if(t.i.length!==t.j.length||t.j.length!==t.k.length||!m(t.i,f)||!m(t.j,f)||!m(t.k,f))return;n=u(g(t.i),g(t.j),g(t.k))}else n=0===t.alphahull?o(h):t.alphahull&gt;0?a(t.alphahull,h):function(t,e){for(var r=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;].indexOf(t),n=[],a=e.length,o=0;o&lt;a;o++)n[o]=[e[o][(r+1)%3],e[o][(r+2)%3]];return i(n)}(t.delaunayaxis,h);var v={positions:h,cells:n,lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,contourEnable:t.contour.show,contourColor:l(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading};if(t.intensity){var y=c(t);this.color=&quot;#fff&quot;;var x=t.intensitymode;v[x+&quot;Intensity&quot;]=t.intensity,v[x+&quot;IntensityBounds&quot;]=[y.min,y.max],v.colormap=s(t)}else t.vertexcolor?(this.color=t.vertexcolor[0],v.vertexColors=p(t.vertexcolor)):t.facecolor?(this.color=t.facecolor[0],v.cellColors=p(t.facecolor)):(this.color=t.color,v.meshColor=l(t.color));this.mesh.update(v)},h.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new f(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/gl3d/zip3&quot;:881,&quot;alpha-shape&quot;:69,&quot;convex-hull&quot;:135,&quot;delaunay-triangulate&quot;:171,&quot;gl-mesh3d&quot;:309}],1131:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,n){return i.coerce(t,e,o,r,n)}function c(t){var e=t.map((function(t){var e=l(t);return e&amp;&amp;i.isArrayOrTypedArray(e)?e:null}));return e.every((function(t){return t&amp;&amp;t.length===e[0].length}))&amp;&amp;e}c([&quot;x&quot;,&quot;y&quot;,&quot;z&quot;])?(c([&quot;i&quot;,&quot;j&quot;,&quot;k&quot;]),(!e.i||e.j&amp;&amp;e.k)&amp;&amp;(!e.j||e.k&amp;&amp;e.i)&amp;&amp;(!e.k||e.i&amp;&amp;e.j)?(n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],s),[&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lighting.vertexnormalsepsilon&quot;,&quot;lighting.facenormalsepsilon&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;flatshading&quot;,&quot;alphahull&quot;,&quot;delaunayaxis&quot;,&quot;opacity&quot;].forEach((function(t){l(t)})),l(&quot;contour.show&quot;)&amp;&amp;(l(&quot;contour.color&quot;),l(&quot;contour.width&quot;)),&quot;intensity&quot;in t?(l(&quot;intensity&quot;),l(&quot;intensitymode&quot;),a(t,e,s,l,{prefix:&quot;&quot;,cLetter:&quot;c&quot;})):(e.showscale=!1,&quot;facecolor&quot;in t?l(&quot;facecolor&quot;):&quot;vertexcolor&quot;in t?l(&quot;vertexcolor&quot;):l(&quot;color&quot;,r)),l(&quot;text&quot;),l(&quot;hovertext&quot;),l(&quot;hovertemplate&quot;),e._length=null):e.visible=!1):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1128}],1132:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;mesh3d&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1128,&quot;./calc&quot;:1129,&quot;./convert&quot;:1130,&quot;./defaults&quot;:1131}],1133:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).extendFlat,i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../components/drawing/attributes&quot;).dash,o=t(&quot;../../components/fx/attributes&quot;),s=t(&quot;../../constants/delta.js&quot;),l=s.INCREASING.COLOR,c=s.DECREASING.COLOR,u=i.line;function f(t){return{line:{color:n({},u.color,{dflt:t}),width:u.width,dash:a,editType:&quot;style&quot;},editType:&quot;style&quot;}}e.exports={xperiod:i.xperiod,xperiod0:i.xperiod0,xperiodalignment:i.xperiodalignment,x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},open:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},high:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},low:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},close:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{width:n({},u.width,{}),dash:n({},a,{}),editType:&quot;style&quot;},increasing:f(l),decreasing:f(c),text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},tickwidth:{valType:&quot;number&quot;,min:0,max:.5,dflt:.3,editType:&quot;calc&quot;},hoverlabel:n({},o.hoverlabel,{split:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;style&quot;}})}},{&quot;../../components/drawing/attributes&quot;:664,&quot;../../components/fx/attributes&quot;:674,&quot;../../constants/delta.js&quot;:747,&quot;../../lib&quot;:778,&quot;../scatter/attributes&quot;:1187}],1134:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=n._,a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r,n){return{o:t,h:e,l:r,c:n}}function c(t,e,r,o,l,c){for(var u=l.makeCalcdata(e,&quot;open&quot;),f=l.makeCalcdata(e,&quot;high&quot;),h=l.makeCalcdata(e,&quot;low&quot;),p=l.makeCalcdata(e,&quot;close&quot;),d=Array.isArray(e.text),g=Array.isArray(e.hovertext),m=!0,v=null,y=!!e.xperiodalignment,x=[],b=0;b&lt;o.length;b++){var _=o[b],w=u[b],T=f[b],k=h[b],M=p[b];if(_!==s&amp;&amp;w!==s&amp;&amp;T!==s&amp;&amp;k!==s&amp;&amp;M!==s){M===w?null!==v&amp;&amp;M!==v&amp;&amp;(m=M&gt;v):m=M&gt;w,v=M;var A=c(w,T,k,M);A.pos=_,A.yc=(w+M)/2,A.i=b,A.dir=m?&quot;increasing&quot;:&quot;decreasing&quot;,A.x=A.pos,A.y=[k,T],y&amp;&amp;(A.orig_p=r[b]),d&amp;&amp;(A.tx=e.text[b]),g&amp;&amp;(A.htx=e.hovertext[b]),x.push(A)}else x.push({pos:_,empty:!0})}return e._extremes[l._id]=a.findExtremes(l,n.concat(h,f),{padded:!0}),x.length&amp;&amp;(x[0].t={labels:{open:i(t,&quot;open:&quot;)+&quot; &quot;,high:i(t,&quot;high:&quot;)+&quot; &quot;,low:i(t,&quot;low:&quot;)+&quot; &quot;,close:i(t,&quot;close:&quot;)+&quot; &quot;}}),x}e.exports={calc:function(t,e){var r=a.getFromId(t,e.xaxis),i=a.getFromId(t,e.yaxis),s=function(t,e,r){var i=r._minDiff;if(!i){var a,s=t._fullData,l=[];for(i=1/0,a=0;a&lt;s.length;a++){var c=s[a];if(&quot;ohlc&quot;===c.type&amp;&amp;!0===c.visible&amp;&amp;c.xaxis===e._id){l.push(c);var u=e.makeCalcdata(c,&quot;x&quot;);c._origX=u;var f=o(r,e,&quot;x&quot;,u);c._xcalc=f;var h=n.distinctVals(f).minDiff;h&amp;&amp;isFinite(h)&amp;&amp;(i=Math.min(i,h))}}for(i===1/0&amp;&amp;(i=1),a=0;a&lt;l.length;a++)l[a]._minDiff=i}return i*r.tickwidth}(t,r,e),u=e._minDiff;e._minDiff=null;var f=e._origX;e._origX=null;var h=e._xcalc;e._xcalc=null;var p=c(t,e,f,h,i,l);return e._extremes[r._id]=a.findExtremes(r,h,{vpad:u/2}),p.length?(n.extendFlat(p[0].t,{wHover:u/2,tickLen:s}),p):[{t:{empty:!0}}]},calcCommon:c}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828}],1135:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./ohlc_defaults&quot;),a=t(&quot;../scatter/period_defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r,n){r(n+&quot;.line.color&quot;),r(n+&quot;.line.width&quot;,e.line.width),r(n+&quot;.line.dash&quot;,e.line.dash)}e.exports=function(t,e,r,l){function c(r,i){return n.coerce(t,e,o,r,i)}i(t,e,c,l)?(a(t,e,l,c,{x:!0}),c(&quot;line.width&quot;),c(&quot;line.dash&quot;),s(t,e,c,&quot;increasing&quot;),s(t,e,c,&quot;decreasing&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;tickwidth&quot;),l._requestRangeslider[e.xaxis]=!0):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/period_defaults&quot;:1207,&quot;./attributes&quot;:1133,&quot;./ohlc_defaults&quot;:1138}],1136:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../lib&quot;).fillText,l=t(&quot;../../constants/delta.js&quot;),c={increasing:l.INCREASING.SYMBOL,decreasing:l.DECREASING.SYMBOL};function u(t,e,r,n){var i,s,l=t.cd,c=t.xa,u=l[0].trace,f=l[0].t,h=u.type,p=&quot;ohlc&quot;===h?&quot;l&quot;:&quot;min&quot;,d=&quot;ohlc&quot;===h?&quot;h&quot;:&quot;max&quot;,g=f.bPos||0,m=f.bdPos||f.tickLen,v=f.wHover,y=Math.min(1,m/Math.abs(c.r2c(c.range[1])-c.r2c(c.range[0])));function x(t){var r=function(t){return t.pos+g-e}(t);return a.inbox(r-v,r+v,i)}function b(t){var e=t[p],n=t[d];return e===n||a.inbox(e-r,n-r,i)}function _(t){return(x(t)+b(t))/2}i=t.maxHoverDistance-y,s=t.maxSpikeDistance-y;var w=a.getDistanceFunction(n,x,b,_);if(a.getClosest(l,w,t),!1===t.index)return null;var T=l[t.index];if(T.empty)return null;var k=u[T.dir],M=k.line.color;return o.opacity(M)&amp;&amp;k.line.width?t.color=M:t.color=k.fillcolor,t.x0=c.c2p(T.pos+g-m,!0),t.x1=c.c2p(T.pos+g+m,!0),t.xLabelVal=void 0!==T.orig_p?T.orig_p:T.pos,t.spikeDistance=_(T)*s/i,t.xSpike=c.c2p(T.pos,!0),t}function f(t,e,r,a){var o=t.cd,s=t.ya,l=o[0].trace,c=o[0].t,f=[],h=u(t,e,r,a);if(!h)return[];var p=o[h.index].hi||l.hoverinfo,d=p.split(&quot;+&quot;);if(!(&quot;all&quot;===p||-1!==d.indexOf(&quot;y&quot;)))return[];for(var g=[&quot;high&quot;,&quot;open&quot;,&quot;close&quot;,&quot;low&quot;],m={},v=0;v&lt;g.length;v++){var y,x=g[v],b=l[x][h.index],_=s.c2p(b,!0);b in m?(y=m[b]).yLabel+=&quot;&lt;br&gt;&quot;+c.labels[x]+n.hoverLabelText(s,b):((y=i.extendFlat({},h)).y0=y.y1=_,y.yLabelVal=b,y.yLabel=c.labels[x]+n.hoverLabelText(s,b),y.name=&quot;&quot;,f.push(y),m[b]=y)}return f}function h(t,e,r,i){var a=t.cd,o=t.ya,l=a[0].trace,f=a[0].t,h=u(t,e,r,i);if(!h)return[];var p=a[h.index],d=h.index=p.i,g=p.dir;function m(t){return f.labels[t]+n.hoverLabelText(o,l[t][d])}var v=p.hi||l.hoverinfo,y=v.split(&quot;+&quot;),x=&quot;all&quot;===v,b=x||-1!==y.indexOf(&quot;y&quot;),_=x||-1!==y.indexOf(&quot;text&quot;),w=b?[m(&quot;open&quot;),m(&quot;high&quot;),m(&quot;low&quot;),m(&quot;close&quot;)+&quot;  &quot;+c[g]]:[];return _&amp;&amp;s(p,l,w),h.extraText=w.join(&quot;&lt;br&gt;&quot;),h.y0=h.y1=o.c2p(p.yc,!0),[h]}e.exports={hoverPoints:function(t,e,r,n){return t.cd[0].trace.hoverlabel.split?f(t,e,r,n):h(t,e,r,n)},hoverSplit:f,hoverOnPoints:h}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../constants/delta.js&quot;:747,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1137:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;ohlc&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;showLegend&quot;],meta:{},attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;./select&quot;)}},{&quot;../../plots/cartesian&quot;:841,&quot;./attributes&quot;:1133,&quot;./calc&quot;:1134,&quot;./defaults&quot;:1135,&quot;./hover&quot;:1136,&quot;./plot&quot;:1139,&quot;./select&quot;:1140,&quot;./style&quot;:1141}],1138:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=r(&quot;x&quot;),s=r(&quot;open&quot;),l=r(&quot;high&quot;),c=r(&quot;low&quot;),u=r(&quot;close&quot;);if(r(&quot;hoverlabel.split&quot;),n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;],a),s&amp;&amp;l&amp;&amp;c&amp;&amp;u){var f=Math.min(s.length,l.length,c.length,u.length);return o&amp;&amp;(f=Math.min(f,i.minRowLength(o))),e._length=f,f}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1139:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;);e.exports=function(t,e,r,a){var o=e.yaxis,s=e.xaxis,l=!!s.rangebreaks;i.makeTraceGroups(a,r,&quot;trace ohlc&quot;).each((function(t){var e=n.select(this),r=t[0],a=r.t;if(!0!==r.trace.visible||a.empty)e.remove();else{var c=a.tickLen,u=e.selectAll(&quot;path&quot;).data(i.identity);u.enter().append(&quot;path&quot;),u.exit().remove(),u.attr(&quot;d&quot;,(function(t){if(t.empty)return&quot;M0,0Z&quot;;var e=s.c2p(t.pos-c,!0),r=s.c2p(t.pos+c,!0),n=l?(e+r)/2:s.c2p(t.pos,!0);return&quot;M&quot;+e+&quot;,&quot;+o.c2p(t.o,!0)+&quot;H&quot;+n+&quot;M&quot;+n+&quot;,&quot;+o.c2p(t.h,!0)+&quot;V&quot;+o.c2p(t.l,!0)+&quot;M&quot;+r+&quot;,&quot;+o.c2p(t.c,!0)+&quot;H&quot;+n}))}}))}},{&quot;../../lib&quot;:778,d3:169}],1140:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r,n=t.cd,i=t.xaxis,a=t.yaxis,o=[],s=n[0].t.bPos||0;if(!1===e)for(r=0;r&lt;n.length;r++)n[r].selected=0;else for(r=0;r&lt;n.length;r++){var l=n[r];e.contains([i.c2p(l.pos+s),a.c2p(l.yc)],null,l.i,t)?(o.push({pointNumber:l.i,x:i.c2d(l.pos),y:a.c2d(l.yc)}),l.selected=1):l.selected=0}return o}},{}],1141:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;);e.exports=function(t,e,r){var o=r||n.select(t).selectAll(&quot;g.ohlclayer&quot;).selectAll(&quot;g.trace&quot;);o.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),o.each((function(t){var e=t[0].trace;n.select(this).selectAll(&quot;path&quot;).each((function(t){if(!t.empty){var r=e[t.dir].line;n.select(this).style(&quot;fill&quot;,&quot;none&quot;).call(a.stroke,r.color).call(i.dashLine,r.dash,r.width).style(&quot;opacity&quot;,e.selectedpoints&amp;&amp;!t.selected?.3:1)}}))}))}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,d3:169}],1142:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat,i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/domain&quot;).attributes,c=n({editType:&quot;calc&quot;},o(&quot;line&quot;,{editTypeOverride:&quot;calc&quot;}),{shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;hspline&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},hovertemplate:s({editType:&quot;plot&quot;,arrayOk:!1},{keys:[&quot;count&quot;,&quot;probability&quot;]})});e.exports={domain:l({name:&quot;parcats&quot;,trace:!0,editType:&quot;calc&quot;}),hoverinfo:n({},i.hoverinfo,{flags:[&quot;count&quot;,&quot;probability&quot;],editType:&quot;plot&quot;,arrayOk:!1}),hoveron:{valType:&quot;enumerated&quot;,values:[&quot;category&quot;,&quot;color&quot;,&quot;dimension&quot;],dflt:&quot;category&quot;,editType:&quot;plot&quot;},hovertemplate:s({editType:&quot;plot&quot;,arrayOk:!1},{keys:[&quot;count&quot;,&quot;probability&quot;,&quot;category&quot;,&quot;categorycount&quot;,&quot;colorcount&quot;,&quot;bandcolorcount&quot;]}),arrangement:{valType:&quot;enumerated&quot;,values:[&quot;perpendicular&quot;,&quot;freeform&quot;,&quot;fixed&quot;],dflt:&quot;perpendicular&quot;,editType:&quot;plot&quot;},bundlecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},sortpaths:{valType:&quot;enumerated&quot;,values:[&quot;forward&quot;,&quot;backward&quot;],dflt:&quot;forward&quot;,editType:&quot;plot&quot;},labelfont:a({editType:&quot;calc&quot;}),tickfont:a({editType:&quot;calc&quot;}),dimensions:{_isLinkedToArray:&quot;dimension&quot;,label:{valType:&quot;string&quot;,editType:&quot;calc&quot;},categoryorder:{valType:&quot;enumerated&quot;,values:[&quot;trace&quot;,&quot;category ascending&quot;,&quot;category descending&quot;,&quot;array&quot;],dflt:&quot;trace&quot;,editType:&quot;calc&quot;},categoryarray:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ticktext:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},displayindex:{valType:&quot;integer&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;,visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}},line:c,counts:{valType:&quot;number&quot;,min:0,dflt:1,arrayOk:!0,editType:&quot;calc&quot;},customdata:void 0,hoverlabel:void 0,ids:void 0,legendgroup:void 0,opacity:void 0,selectedpoints:void 0,showlegend:void 0}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906}],1143:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getModuleCalcData,i=t(&quot;./plot&quot;);r.name=&quot;parcats&quot;,r.plot=function(t,e,r,a){var o=n(t.calcdata,&quot;parcats&quot;);if(o.length){var s=o[0];i(t,s,r,a)}},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;parcats&quot;),a=e._has&amp;&amp;e._has(&quot;parcats&quot;);i&amp;&amp;!a&amp;&amp;n._paperdiv.selectAll(&quot;.parcats&quot;).remove()}},{&quot;../../plots/get_data&quot;:865,&quot;./plot&quot;:1148}],1144:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/gup&quot;).wrap,i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/calc&quot;),o=t(&quot;../../lib/filter_unique.js&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;fast-isnumeric&quot;);function u(t,e,r){t.valueInds.push(e),t.count+=r}function f(t,e,r){return{categoryInds:t,color:e,rawColor:r,valueInds:[],count:0}}function h(t,e,r){t.valueInds.push(e),t.count+=r}e.exports=function(t,e){var r=l.filterVisible(e.dimensions);if(0===r.length)return[];var p,d,g,m=r.map((function(t){var e;if(&quot;trace&quot;===t.categoryorder)e=null;else if(&quot;array&quot;===t.categoryorder)e=t.categoryarray;else{e=o(t.values);for(var r=!0,n=0;n&lt;e.length;n++)if(!c(e[n])){r=!1;break}e.sort(r?l.sorterAsc:void 0),&quot;category descending&quot;===t.categoryorder&amp;&amp;(e=e.reverse())}return function(t,e){e=null==e?[]:e.map((function(t){return t}));var r={},n={},i=[];e.forEach((function(t,e){r[t]=0,n[t]=e}));for(var a=0;a&lt;t.length;a++){var o,s=t[a];void 0===r[s]?(r[s]=1,o=e.push(s)-1,n[s]=o):(r[s]++,o=n[s]),i.push(o)}var l=e.map((function(t){return r[t]}));return{uniqueValues:e,uniqueCounts:l,inds:i}}(t.values,e)}));p=l.isArrayOrTypedArray(e.counts)?e.counts:[e.counts],function(t){var e;if(function(t){for(var e=new Array(t.length),r=0;r&lt;t.length;r++){if(t[r]&lt;0||t[r]&gt;=t.length)return!1;if(void 0!==e[t[r]])return!1;e[t[r]]=!0}return!0}(t.map((function(t){return t.displayindex}))))for(e=0;e&lt;t.length;e++)t[e]._displayindex=t[e].displayindex;else for(e=0;e&lt;t.length;e++)t[e]._displayindex=e}(r),r.forEach((function(t,e){!function(t,e){t._categoryarray=e.uniqueValues,null===t.ticktext||void 0===t.ticktext?t._ticktext=[]:t._ticktext=t.ticktext.slice();for(var r=t._ticktext.length;r&lt;e.uniqueValues.length;r++)t._ticktext.push(e.uniqueValues[r])}(t,m[e])}));var v,y=e.line;y?(i(e,&quot;line&quot;)&amp;&amp;a(t,e,{vals:e.line.color,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;}),v=s.tryColorscale(y)):v=l.identity;var x,b,_,w,T,k=r[0].values.length,M={},A=m.map((function(t){return t.inds}));for(g=0,x=0;x&lt;k;x++){var S=[];for(b=0;b&lt;A.length;b++)S.push(A[b][x]);d=p[x%p.length],g+=d;var E=(_=x,w=void 0,T=void 0,l.isArrayOrTypedArray(y.color)?T=w=y.color[_%y.color.length]:w=y.color,{color:v(w),rawColor:T}),C=S+&quot;-&quot;+E.rawColor;void 0===M[C]&amp;&amp;(M[C]=f(S,E.color,E.rawColor)),h(M[C],x,d)}var L,I=r.map((function(t,e){return function(t,e,r,n,i){return{dimensionInd:t,containerInd:e,displayInd:r,dimensionLabel:n,count:i,categories:[],dragX:null}}(e,t._index,t._displayindex,t.label,g)}));for(x=0;x&lt;k;x++)for(d=p[x%p.length],b=0;b&lt;I.length;b++){var P=I[b].containerInd,z=m[b].inds[x],O=I[b].categories;if(void 0===O[z]){var D=e.dimensions[P]._categoryarray[z],R=e.dimensions[P]._ticktext[z];O[z]={dimensionInd:b,categoryInd:L=z,categoryValue:D,displayInd:L,categoryLabel:R,valueInds:[],count:0,dragY:null}}u(O[z],x,d)}return n(function(t,e,r){var n=t.map((function(t){return t.categories.length})).reduce((function(t,e){return Math.max(t,e)}));return{dimensions:t,paths:e,trace:void 0,maxCats:n,count:r}}(I,M,g))}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/filter_unique.js&quot;:769,&quot;../../lib/gup&quot;:775,&quot;fast-isnumeric&quot;:241}],1145:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../parcoords/merge_length&quot;);function u(t,e){function r(r,i){return n.coerce(t,e,l.dimensions,r,i)}var i=r(&quot;values&quot;),a=r(&quot;visible&quot;);if(i&amp;&amp;i.length||(a=e.visible=!1),a){r(&quot;label&quot;),r(&quot;displayindex&quot;,e._index);var o,s=t.categoryarray,c=Array.isArray(s)&amp;&amp;s.length&gt;0;c&amp;&amp;(o=&quot;array&quot;);var u=r(&quot;categoryorder&quot;,o);&quot;array&quot;===u?(r(&quot;categoryarray&quot;),r(&quot;ticktext&quot;)):(delete t.categoryarray,delete t.ticktext),c||&quot;array&quot;!==u||(e.categoryorder=&quot;trace&quot;)}}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,l,r,i)}var p=s(t,e,{name:&quot;dimensions&quot;,handleItemDefaults:u}),d=function(t,e,r,o,s){s(&quot;line.shape&quot;),s(&quot;line.hovertemplate&quot;);var l=s(&quot;line.color&quot;,o.colorway[0]);if(i(t,&quot;line&quot;)&amp;&amp;n.isArrayOrTypedArray(l)){if(l.length)return s(&quot;line.colorscale&quot;),a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}),l.length;e.line.color=r}return 1/0}(t,e,r,f,h);o(e,f,h),Array.isArray(p)&amp;&amp;p.length||(e.visible=!1),c(e,p,&quot;values&quot;,d),h(&quot;hoveron&quot;),h(&quot;hovertemplate&quot;),h(&quot;arrangement&quot;),h(&quot;bundlecolors&quot;),h(&quot;sortpaths&quot;),h(&quot;counts&quot;);var g={family:f.font.family,size:Math.round(f.font.size),color:f.font.color};n.coerceFont(h,&quot;labelfont&quot;,g);var m={family:f.font.family,size:Math.round(f.font.size/1.2),color:f.font.color};n.coerceFont(h,&quot;tickfont&quot;,m)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/domain&quot;:855,&quot;../parcoords/merge_length&quot;:1158,&quot;./attributes&quot;:1142}],1146:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},moduleType:&quot;trace&quot;,name:&quot;parcats&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1142,&quot;./base_plot&quot;:1143,&quot;./calc&quot;:1144,&quot;./defaults&quot;:1145,&quot;./plot&quot;:1148}],1147:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plot_api/plot_api&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../lib&quot;),s=o.strTranslate,l=t(&quot;../../components/drawing&quot;),c=t(&quot;tinycolor2&quot;),u=t(&quot;../../lib/svg_text_utils&quot;);function f(t,e,r,i){var a=t.map(R.bind(0,e,r)),c=i.selectAll(&quot;g.parcatslayer&quot;).data([null]);c.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;parcatslayer&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;);var f=c.selectAll(&quot;g.trace.parcats&quot;).data(a,h),v=f.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;trace parcats&quot;);f.attr(&quot;transform&quot;,(function(t){return s(t.x,t.y)})),v.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;paths&quot;);var y=f.select(&quot;g.paths&quot;).selectAll(&quot;path.path&quot;).data((function(t){return t.paths}),h);y.attr(&quot;fill&quot;,(function(t){return t.model.color}));var _=y.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;path&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.model.color})).attr(&quot;fill-opacity&quot;,0);b(_),y.attr(&quot;d&quot;,(function(t){return t.svgD})),_.empty()||y.sort(d),y.exit().remove(),y.on(&quot;mouseover&quot;,g).on(&quot;mouseout&quot;,m).on(&quot;click&quot;,x),v.append(&quot;g&quot;).attr(&quot;class&quot;,&quot;dimensions&quot;);var k=f.select(&quot;g.dimensions&quot;).selectAll(&quot;g.dimension&quot;).data((function(t){return t.dimensions}),h);k.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;dimension&quot;),k.attr(&quot;transform&quot;,(function(t){return s(t.x,0)})),k.exit().remove();var M=k.selectAll(&quot;g.category&quot;).data((function(t){return t.categories}),h),A=M.enter().append(&quot;g&quot;).attr(&quot;class&quot;,&quot;category&quot;);M.attr(&quot;transform&quot;,(function(t){return s(0,t.y)})),A.append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;catrect&quot;).attr(&quot;pointer-events&quot;,&quot;none&quot;),M.select(&quot;rect.catrect&quot;).attr(&quot;fill&quot;,&quot;none&quot;).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})),w(A);var S=M.selectAll(&quot;rect.bandrect&quot;).data((function(t){return t.bands}),h);S.each((function(){o.raiseToTop(this)})),S.attr(&quot;fill&quot;,(function(t){return t.color}));var z=S.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bandrect&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;fill-opacity&quot;,0);S.attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})).attr(&quot;y&quot;,(function(t){return t.y})).attr(&quot;cursor&quot;,(function(t){return&quot;fixed&quot;===t.parcatsViewModel.arrangement?&quot;default&quot;:&quot;perpendicular&quot;===t.parcatsViewModel.arrangement?&quot;ns-resize&quot;:&quot;move&quot;})),T(z),S.exit().remove(),A.append(&quot;text&quot;).attr(&quot;class&quot;,&quot;catlabel&quot;).attr(&quot;pointer-events&quot;,&quot;none&quot;);var O=e._fullLayout.paper_bgcolor;M.select(&quot;text.catlabel&quot;).attr(&quot;text-anchor&quot;,(function(t){return p(t)?&quot;start&quot;:&quot;end&quot;})).attr(&quot;alignment-baseline&quot;,&quot;middle&quot;).style(&quot;text-shadow&quot;,O+&quot; -1px  1px 2px, &quot;+O+&quot; 1px  1px 2px, &quot;+O+&quot;  1px -1px 2px, &quot;+O+&quot; -1px -1px 2px&quot;).style(&quot;fill&quot;,&quot;rgb(0, 0, 0)&quot;).attr(&quot;x&quot;,(function(t){return p(t)?t.width+5:-5})).attr(&quot;y&quot;,(function(t){return t.height/2})).text((function(t){return t.model.categoryLabel})).each((function(t){l.font(n.select(this),t.parcatsViewModel.categorylabelfont),u.convertToTspans(n.select(this),e)})),A.append(&quot;text&quot;).attr(&quot;class&quot;,&quot;dimlabel&quot;),M.select(&quot;text.dimlabel&quot;).attr(&quot;text-anchor&quot;,&quot;middle&quot;).attr(&quot;alignment-baseline&quot;,&quot;baseline&quot;).attr(&quot;cursor&quot;,(function(t){return&quot;fixed&quot;===t.parcatsViewModel.arrangement?&quot;default&quot;:&quot;ew-resize&quot;})).attr(&quot;x&quot;,(function(t){return t.width/2})).attr(&quot;y&quot;,-5).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})).each((function(t){l.font(n.select(this),t.parcatsViewModel.labelfont)})),M.selectAll(&quot;rect.bandrect&quot;).on(&quot;mouseover&quot;,E).on(&quot;mouseout&quot;,C),M.exit().remove(),k.call(n.behavior.drag().origin((function(t){return{x:t.x,y:0}})).on(&quot;dragstart&quot;,L).on(&quot;drag&quot;,I).on(&quot;dragend&quot;,P)),f.each((function(t){t.traceSelection=n.select(this),t.pathSelection=n.select(this).selectAll(&quot;g.paths&quot;).selectAll(&quot;path.path&quot;),t.dimensionSelection=n.select(this).selectAll(&quot;g.dimensions&quot;).selectAll(&quot;g.dimension&quot;)})),f.exit().remove()}function h(t){return t.key}function p(t){var e=t.parcatsViewModel.dimensions.length,r=t.parcatsViewModel.dimensions[e-1].model.dimensionInd;return t.model.dimensionInd===r}function d(t,e){return t.model.rawColor&gt;e.model.rawColor?1:t.model.rawColor&lt;e.model.rawColor?-1:0}function g(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){o.raiseToTop(this),_(n.select(this));var e=v(t),r=y(t);if(t.parcatsViewModel.graphDiv.emit(&quot;plotly_hover&quot;,{points:e,event:n.event,constraints:r}),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;none&quot;)){var i,s,l,u=n.mouse(this)[0],f=t.parcatsViewModel.graphDiv,h=t.parcatsViewModel.trace,p=f._fullLayout,d=p._paperdiv.node().getBoundingClientRect(),g=t.parcatsViewModel.graphDiv.getBoundingClientRect();for(l=0;l&lt;t.leftXs.length-1;l++)if(t.leftXs[l]+t.dimWidths[l]-2&lt;=u&amp;&amp;u&lt;=t.leftXs[l+1]+2){var m=t.parcatsViewModel.dimensions[l],x=t.parcatsViewModel.dimensions[l+1];i=(m.x+m.width+x.x)/2,s=(t.topYs[l]+t.topYs[l+1]+t.height)/2;break}var b=t.parcatsViewModel.x+i,w=t.parcatsViewModel.y+s,T=c.mostReadable(t.model.color,[&quot;black&quot;,&quot;white&quot;]),k=t.model.count,M=k/t.parcatsViewModel.model.count,A={countLabel:k,probabilityLabel:M.toFixed(3)},S=[];-1!==t.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;S.push([&quot;Count:&quot;,A.countLabel].join(&quot; &quot;)),-1!==t.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;S.push([&quot;P:&quot;,A.probabilityLabel].join(&quot; &quot;));var E=S.join(&quot;&lt;br&gt;&quot;),C=n.mouse(f)[0];a.loneHover({trace:h,x:b-d.left+g.left,y:w-d.top+g.top,text:E,color:t.model.color,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontSize:10,fontColor:T,idealAlign:C&lt;b?&quot;right&quot;:&quot;left&quot;,hovertemplate:(h.line||{}).hovertemplate,hovertemplateLabels:A,eventData:[{data:h._input,fullData:h,count:k,probability:M}]},{container:p._hoverlayer.node(),outerContainer:p._paper.node(),gd:f})}}}function m(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;(b(n.select(this)),a.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()),t.parcatsViewModel.pathSelection.sort(d),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;))){var e=v(t),r=y(t);t.parcatsViewModel.graphDiv.emit(&quot;plotly_unhover&quot;,{points:e,event:n.event,constraints:r})}}function v(t){for(var e=[],r=z(t.parcatsViewModel),n=0;n&lt;t.model.valueInds.length;n++){var i=t.model.valueInds[n];e.push({curveNumber:r,pointNumber:i})}return e}function y(t){for(var e={},r=t.parcatsViewModel.model.dimensions,n=0;n&lt;r.length;n++){var i=r[n],a=i.categories[t.model.categoryInds[n]];e[i.containerInd]=a.categoryValue}return void 0!==t.model.rawColor&amp;&amp;(e.color=t.model.rawColor),e}function x(t){if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){var e=v(t),r=y(t);t.parcatsViewModel.graphDiv.emit(&quot;plotly_click&quot;,{points:e,event:n.event,constraints:r})}}function b(t){t.attr(&quot;fill&quot;,(function(t){return t.model.color})).attr(&quot;fill-opacity&quot;,.6).attr(&quot;stroke&quot;,&quot;lightgray&quot;).attr(&quot;stroke-width&quot;,.2).attr(&quot;stroke-opacity&quot;,1)}function _(t){t.attr(&quot;fill-opacity&quot;,.8).attr(&quot;stroke&quot;,(function(t){return c.mostReadable(t.model.color,[&quot;black&quot;,&quot;white&quot;])})).attr(&quot;stroke-width&quot;,.3)}function w(t){t.select(&quot;rect.catrect&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,1).attr(&quot;stroke-opacity&quot;,1)}function T(t){t.attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,.2).attr(&quot;stroke-opacity&quot;,1).attr(&quot;fill-opacity&quot;,1)}function k(t){var e=t.parcatsViewModel.pathSelection,r=t.categoryViewModel.model.dimensionInd,n=t.categoryViewModel.model.categoryInd;return e.filter((function(e){return e.model.categoryInds[r]===n&amp;&amp;e.model.color===t.color}))}function M(t,e,r){var i=n.select(t).datum(),a=i.categoryViewModel.model,o=i.parcatsViewModel.graphDiv,s=n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;),l=[];s.each((function(t){k(t).each((function(t){Array.prototype.push.apply(l,v(t))}))}));var c={};c[a.dimensionInd]=a.categoryValue,o.emit(e,{points:l,event:r,constraints:c})}function A(t,e,r){var i=n.select(t).datum(),a=i.categoryViewModel.model,o=i.parcatsViewModel.graphDiv,s=k(i),l=[];s.each((function(t){Array.prototype.push.apply(l,v(t))}));var c={};c[a.dimensionInd]=a.categoryValue,void 0!==i.rawColor&amp;&amp;(c.color=i.rawColor),o.emit(e,{points:l,event:r,constraints:c})}function S(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=n.select(r.parentNode).select(&quot;rect.catrect&quot;),c=l.node().getBoundingClientRect(),u=l.datum(),f=u.parcatsViewModel,h=f.model.dimensions[u.model.dimensionInd],p=f.trace,d=c.top+c.height/2;f.dimensions.length&gt;1&amp;&amp;h.displayInd===f.dimensions.length-1?(i=c.left,a=&quot;left&quot;):(i=c.left+c.width,a=&quot;right&quot;);var g=u.model.count,m=u.model.categoryLabel,v=g/u.parcatsViewModel.model.count,y={countLabel:g,categoryLabel:m,probabilityLabel:v.toFixed(3)},x=[];-1!==u.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;x.push([&quot;Count:&quot;,y.countLabel].join(&quot; &quot;)),-1!==u.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;x.push([&quot;P(&quot;+y.categoryLabel+&quot;):&quot;,y.probabilityLabel].join(&quot; &quot;));var b=x.join(&quot;&lt;br&gt;&quot;);return{trace:p,x:o*(i-e.left),y:s*(d-e.top),text:b,color:&quot;lightgray&quot;,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontSize:12,fontColor:&quot;black&quot;,idealAlign:a,hovertemplate:p.hovertemplate,hovertemplateLabels:y,eventData:[{data:p._input,fullData:p,count:g,category:m,probability:v}]}}function E(t){if(!t.parcatsViewModel.dragDimension&amp;&amp;-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)){if(n.mouse(this)[1]&lt;-1)return;var e,r=t.parcatsViewModel.graphDiv,i=r._fullLayout,s=i._paperdiv.node().getBoundingClientRect(),l=t.parcatsViewModel.hoveron;if(&quot;color&quot;===l?(!function(t){var e=n.select(t).datum(),r=k(e);_(r),r.each((function(){o.raiseToTop(this)})),n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;).filter((function(t){return t.color===e.color})).each((function(){o.raiseToTop(this),n.select(this).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,1.5)}))}(this),A(this,&quot;plotly_hover&quot;,n.event)):(!function(t){n.select(t.parentNode).selectAll(&quot;rect.bandrect&quot;).each((function(t){var e=k(t);_(e),e.each((function(){o.raiseToTop(this)}))})),n.select(t.parentNode).select(&quot;rect.catrect&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,2.5)}(this),M(this,&quot;plotly_hover&quot;,n.event)),-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;none&quot;))&quot;category&quot;===l?e=S(r,s,this):&quot;color&quot;===l?e=function(t,e,r){t._fullLayout._calcInverseTransform(t);var i,a,o=t._fullLayout._invScaleX,s=t._fullLayout._invScaleY,l=r.getBoundingClientRect(),u=n.select(r).datum(),f=u.categoryViewModel,h=f.parcatsViewModel,p=h.model.dimensions[f.model.dimensionInd],d=h.trace,g=l.y+l.height/2;h.dimensions.length&gt;1&amp;&amp;p.displayInd===h.dimensions.length-1?(i=l.left,a=&quot;left&quot;):(i=l.left+l.width,a=&quot;right&quot;);var m=f.model.categoryLabel,v=u.parcatsViewModel.model.count,y=0;u.categoryViewModel.bands.forEach((function(t){t.color===u.color&amp;&amp;(y+=t.count)}));var x=f.model.count,b=0;h.pathSelection.each((function(t){t.model.color===u.color&amp;&amp;(b+=t.model.count)}));var _=y/v,w=y/b,T=y/x,k={countLabel:v,categoryLabel:m,probabilityLabel:_.toFixed(3)},M=[];-1!==f.parcatsViewModel.hoverinfoItems.indexOf(&quot;count&quot;)&amp;&amp;M.push([&quot;Count:&quot;,k.countLabel].join(&quot; &quot;)),-1!==f.parcatsViewModel.hoverinfoItems.indexOf(&quot;probability&quot;)&amp;&amp;(M.push(&quot;P(color \u2229 &quot;+m+&quot;): &quot;+k.probabilityLabel),M.push(&quot;P(&quot;+m+&quot; | color): &quot;+w.toFixed(3)),M.push(&quot;P(color | &quot;+m+&quot;): &quot;+T.toFixed(3)));var A=M.join(&quot;&lt;br&gt;&quot;),S=c.mostReadable(u.color,[&quot;black&quot;,&quot;white&quot;]);return{trace:d,x:o*(i-e.left),y:s*(g-e.top),text:A,color:u.color,borderColor:&quot;black&quot;,fontFamily:'Monaco, &quot;Courier New&quot;, monospace',fontColor:S,fontSize:10,idealAlign:a,hovertemplate:d.hovertemplate,hovertemplateLabels:k,eventData:[{data:d._input,fullData:d,category:m,count:v,probability:_,categorycount:x,colorcount:b,bandcolorcount:y}]}}(r,s,this):&quot;dimension&quot;===l&amp;&amp;(e=function(t,e,r){var i=[];return n.select(r.parentNode.parentNode).selectAll(&quot;g.category&quot;).select(&quot;rect.catrect&quot;).each((function(){i.push(S(t,e,this))})),i}(r,s,this)),e&amp;&amp;a.loneHover(e,{container:i._hoverlayer.node(),outerContainer:i._paper.node(),gd:r})}}function C(t){var e=t.parcatsViewModel;if(!e.dragDimension&amp;&amp;(b(e.pathSelection),w(e.dimensionSelection.selectAll(&quot;g.category&quot;)),T(e.dimensionSelection.selectAll(&quot;g.category&quot;).selectAll(&quot;rect.bandrect&quot;)),a.loneUnhover(e.graphDiv._fullLayout._hoverlayer.node()),e.pathSelection.sort(d),-1===e.hoverinfoItems.indexOf(&quot;skip&quot;))){&quot;color&quot;===t.parcatsViewModel.hoveron?A(this,&quot;plotly_unhover&quot;,n.event):M(this,&quot;plotly_unhover&quot;,n.event)}}function L(t){&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;(t.dragDimensionDisplayInd=t.model.displayInd,t.initialDragDimensionDisplayInds=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),t.dragHasMoved=!1,t.dragCategoryDisplayInd=null,n.select(this).selectAll(&quot;g.category&quot;).select(&quot;rect.catrect&quot;).each((function(e){var r=n.mouse(this)[0],i=n.mouse(this)[1];-2&lt;=r&amp;&amp;r&lt;=e.width+2&amp;&amp;-2&lt;=i&amp;&amp;i&lt;=e.height+2&amp;&amp;(t.dragCategoryDisplayInd=e.model.displayInd,t.initialDragCategoryDisplayInds=t.model.categories.map((function(t){return t.displayInd})),e.model.dragY=e.y,o.raiseToTop(this.parentNode),n.select(this.parentNode).selectAll(&quot;rect.bandrect&quot;).each((function(e){e.y&lt;i&amp;&amp;i&lt;=e.y+e.height&amp;&amp;(t.potentialClickBand=this)})))})),t.parcatsViewModel.dragDimension=t,a.loneUnhover(t.parcatsViewModel.graphDiv._fullLayout._hoverlayer.node()))}function I(t){if(&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;(t.dragHasMoved=!0,null!==t.dragDimensionDisplayInd)){var e=t.dragDimensionDisplayInd,r=e-1,i=e+1,a=t.parcatsViewModel.dimensions[e];if(null!==t.dragCategoryDisplayInd){var o=a.categories[t.dragCategoryDisplayInd];o.model.dragY+=n.event.dy;var s=o.model.dragY,l=o.model.displayInd,c=a.categories,u=c[l-1],f=c[l+1];void 0!==u&amp;&amp;s&lt;u.y+u.height/2&amp;&amp;(o.model.displayInd=u.model.displayInd,u.model.displayInd=l),void 0!==f&amp;&amp;s+o.height&gt;f.y+f.height/2&amp;&amp;(o.model.displayInd=f.model.displayInd,f.model.displayInd=l),t.dragCategoryDisplayInd=o.model.displayInd}if(null===t.dragCategoryDisplayInd||&quot;freeform&quot;===t.parcatsViewModel.arrangement){a.model.dragX=n.event.x;var h=t.parcatsViewModel.dimensions[r],p=t.parcatsViewModel.dimensions[i];void 0!==h&amp;&amp;a.model.dragX&lt;h.x+h.width&amp;&amp;(a.model.displayInd=h.model.displayInd,h.model.displayInd=e),void 0!==p&amp;&amp;a.model.dragX+a.width&gt;p.x&amp;&amp;(a.model.displayInd=p.model.displayInd,p.model.displayInd=t.dragDimensionDisplayInd),t.dragDimensionDisplayInd=a.model.displayInd}N(t.parcatsViewModel),B(t.parcatsViewModel),D(t.parcatsViewModel),O(t.parcatsViewModel)}}function P(t){if(&quot;fixed&quot;!==t.parcatsViewModel.arrangement&amp;&amp;null!==t.dragDimensionDisplayInd){n.select(this).selectAll(&quot;text&quot;).attr(&quot;font-weight&quot;,&quot;normal&quot;);var e={},r=z(t.parcatsViewModel),a=t.parcatsViewModel.model.dimensions.map((function(t){return t.displayInd})),o=t.initialDragDimensionDisplayInds.some((function(t,e){return t!==a[e]}));o&amp;&amp;a.forEach((function(r,n){var i=t.parcatsViewModel.model.dimensions[n].containerInd;e[&quot;dimensions[&quot;+i+&quot;].displayindex&quot;]=r}));var s=!1;if(null!==t.dragCategoryDisplayInd){var l=t.model.categories.map((function(t){return t.displayInd}));if(s=t.initialDragCategoryDisplayInds.some((function(t,e){return t!==l[e]}))){var c=t.model.categories.slice().sort((function(t,e){return t.displayInd-e.displayInd})),u=c.map((function(t){return t.categoryValue})),f=c.map((function(t){return t.categoryLabel}));e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].categoryarray&quot;]=[u],e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].ticktext&quot;]=[f],e[&quot;dimensions[&quot;+t.model.containerInd+&quot;].categoryorder&quot;]=&quot;array&quot;}}if(-1===t.parcatsViewModel.hoverinfoItems.indexOf(&quot;skip&quot;)&amp;&amp;!t.dragHasMoved&amp;&amp;t.potentialClickBand&amp;&amp;(&quot;color&quot;===t.parcatsViewModel.hoveron?A(t.potentialClickBand,&quot;plotly_click&quot;,n.event.sourceEvent):M(t.potentialClickBand,&quot;plotly_click&quot;,n.event.sourceEvent)),t.model.dragX=null,null!==t.dragCategoryDisplayInd)t.parcatsViewModel.dimensions[t.dragDimensionDisplayInd].categories[t.dragCategoryDisplayInd].model.dragY=null,t.dragCategoryDisplayInd=null;t.dragDimensionDisplayInd=null,t.parcatsViewModel.dragDimension=null,t.dragHasMoved=null,t.potentialClickBand=null,N(t.parcatsViewModel),B(t.parcatsViewModel),n.transition().duration(300).ease(&quot;cubic-in-out&quot;).each((function(){D(t.parcatsViewModel,!0),O(t.parcatsViewModel,!0)})).each(&quot;end&quot;,(function(){(o||s)&amp;&amp;i.restyle(t.parcatsViewModel.graphDiv,e,[r])}))}}function z(t){for(var e,r=t.graphDiv._fullData,n=0;n&lt;r.length;n++)if(t.key===r[n].uid){e=n;break}return e}function O(t,e){var r;void 0===e&amp;&amp;(e=!1),t.pathSelection.data((function(t){return t.paths}),h),(r=t.pathSelection,e?r.transition():r).attr(&quot;d&quot;,(function(t){return t.svgD}))}function D(t,e){function r(t){return e?t.transition():t}void 0===e&amp;&amp;(e=!1),t.dimensionSelection.data((function(t){return t.dimensions}),h);var i=t.dimensionSelection.selectAll(&quot;g.category&quot;).data((function(t){return t.categories}),h);r(t.dimensionSelection).attr(&quot;transform&quot;,(function(t){return s(t.x,0)})),r(i).attr(&quot;transform&quot;,(function(t){return s(0,t.y)})),i.select(&quot;.dimlabel&quot;).text((function(t,e){return 0===e?t.parcatsViewModel.model.dimensions[t.model.dimensionInd].dimensionLabel:null})),i.select(&quot;.catlabel&quot;).attr(&quot;text-anchor&quot;,(function(t){return p(t)?&quot;start&quot;:&quot;end&quot;})).attr(&quot;x&quot;,(function(t){return p(t)?t.width+5:-5})).each((function(t){var e,r;p(t)?(e=t.width+5,r=&quot;start&quot;):(e=-5,r=&quot;end&quot;),n.select(this).selectAll(&quot;tspan&quot;).attr(&quot;x&quot;,e).attr(&quot;text-anchor&quot;,r)}));var a=i.selectAll(&quot;rect.bandrect&quot;).data((function(t){return t.bands}),h),l=a.enter().append(&quot;rect&quot;).attr(&quot;class&quot;,&quot;bandrect&quot;).attr(&quot;cursor&quot;,&quot;move&quot;).attr(&quot;stroke-opacity&quot;,0).attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;fill-opacity&quot;,0);a.attr(&quot;fill&quot;,(function(t){return t.color})).attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})).attr(&quot;y&quot;,(function(t){return t.y})),T(l),a.each((function(){o.raiseToTop(this)})),a.exit().remove()}function R(t,e,r){var n,i=r[0],a=e.margin||{l:80,r:80,t:100,b:80},o=i.trace,s=o.domain,l=e.width,c=e.height,u=Math.floor(l*(s.x[1]-s.x[0])),f=Math.floor(c*(s.y[1]-s.y[0])),h=s.x[0]*l+a.l,p=e.height-s.y[1]*e.height+a.t,d=o.line.shape;n=&quot;all&quot;===o.hoverinfo?[&quot;count&quot;,&quot;probability&quot;]:(o.hoverinfo||&quot;&quot;).split(&quot;+&quot;);var g={trace:o,key:o.uid,model:i,x:h,y:p,width:u,height:f,hoveron:o.hoveron,hoverinfoItems:n,arrangement:o.arrangement,bundlecolors:o.bundlecolors,sortpaths:o.sortpaths,labelfont:o.labelfont,categorylabelfont:o.tickfont,pathShape:d,dragDimension:null,margin:a,paths:[],dimensions:[],graphDiv:t,traceSelection:null,pathSelection:null,dimensionSelection:null};return i.dimensions&amp;&amp;(N(g),B(g)),g}function F(t,e,r,i,a){var o,s,l=[],c=[];for(s=0;s&lt;r.length-1;s++)o=n.interpolateNumber(r[s]+t[s],t[s+1]),l.push(o(a)),c.push(o(1-a));var u=&quot;M &quot;+t[0]+&quot;,&quot;+e[0];for(u+=&quot;l&quot;+r[0]+&quot;,0 &quot;,s=1;s&lt;r.length;s++)u+=&quot;C&quot;+l[s-1]+&quot;,&quot;+e[s-1]+&quot; &quot;+c[s-1]+&quot;,&quot;+e[s]+&quot; &quot;+t[s]+&quot;,&quot;+e[s],u+=&quot;l&quot;+r[s]+&quot;,0 &quot;;for(u+=&quot;l0,&quot;+i+&quot; &quot;,u+=&quot;l -&quot;+r[r.length-1]+&quot;,0 &quot;,s=r.length-2;s&gt;=0;s--)u+=&quot;C&quot;+c[s]+&quot;,&quot;+(e[s+1]+i)+&quot; &quot;+l[s]+&quot;,&quot;+(e[s]+i)+&quot; &quot;+(t[s]+r[s])+&quot;,&quot;+(e[s]+i),u+=&quot;l-&quot;+r[s]+&quot;,0 &quot;;return u+=&quot;Z&quot;}function B(t){var e=t.dimensions,r=t.model,n=e.map((function(t){return t.categories.map((function(t){return t.y}))})),i=t.model.dimensions.map((function(t){return t.categories.map((function(t){return t.displayInd}))})),a=t.model.dimensions.map((function(t){return t.displayInd})),o=t.dimensions.map((function(t){return t.model.dimensionInd})),s=e.map((function(t){return t.x})),l=e.map((function(t){return t.width})),c=[];for(var u in r.paths)r.paths.hasOwnProperty(u)&amp;&amp;c.push(r.paths[u]);function f(t){var e=t.categoryInds.map((function(t,e){return i[e][t]}));return o.map((function(t){return e[t]}))}c.sort((function(e,r){var n=f(e),i=f(r);return&quot;backward&quot;===t.sortpaths&amp;&amp;(n.reverse(),i.reverse()),n.push(e.valueInds[0]),i.push(r.valueInds[0]),t.bundlecolors&amp;&amp;(n.unshift(e.rawColor),i.unshift(r.rawColor)),n&lt;i?-1:n&gt;i?1:0}));for(var h=new Array(c.length),p=e[0].model.count,d=e[0].categories.map((function(t){return t.height})).reduce((function(t,e){return t+e})),g=0;g&lt;c.length;g++){var m,v=c[g];m=p&gt;0?d*(v.count/p):0;for(var y,x=new Array(n.length),b=0;b&lt;v.categoryInds.length;b++){var _=v.categoryInds[b],w=i[b][_],T=a[b];x[T]=n[T][w],n[T][w]+=m;var k=t.dimensions[T].categories[w],M=k.bands.length,A=k.bands[M-1];if(void 0===A||v.rawColor!==A.rawColor){var S=void 0===A?0:A.y+A.height;k.bands.push({key:S,color:v.color,rawColor:v.rawColor,height:m,width:k.width,count:v.count,y:S,categoryViewModel:k,parcatsViewModel:t})}else{var E=k.bands[M-1];E.height+=m,E.count+=v.count}}y=&quot;hspline&quot;===t.pathShape?F(s,x,l,m,.5):F(s,x,l,m,0),h[g]={key:v.valueInds[0],model:v,height:m,leftXs:s,topYs:x,dimWidths:l,svgD:y,parcatsViewModel:t}}t.paths=h}function N(t){var e=t.model.dimensions.map((function(t){return{displayInd:t.displayInd,dimensionInd:t.dimensionInd}}));e.sort((function(t,e){return t.displayInd-e.displayInd}));var r=[];for(var n in e){var i=e[n].dimensionInd,a=t.model.dimensions[i];r.push(j(t,a))}t.dimensions=r}function j(t,e){var r,n=t.model.dimensions.length,i=e.displayInd;r=40+(n&gt;1?(t.width-80-16)/(n-1):0)*i;var a,o,s,l,c,u=[],f=t.model.maxCats,h=e.categories.length,p=e.count,d=t.height-8*(f-1),g=8*(f-h)/2,m=e.categories.map((function(t){return{displayInd:t.displayInd,categoryInd:t.categoryInd}}));for(m.sort((function(t,e){return t.displayInd-e.displayInd})),c=0;c&lt;h;c++)l=m[c].categoryInd,o=e.categories[l],a=p&gt;0?o.count/p*d:0,s={key:o.valueInds[0],model:o,width:16,height:a,y:null!==o.dragY?o.dragY:g,bands:[],parcatsViewModel:t},g=g+a+8,u.push(s);return{key:e.dimensionInd,x:null!==e.dragX?e.dragX:r,y:0,width:16,model:e,categories:u,parcatsViewModel:t,dragCategoryDisplayInd:null,dragDimensionDisplayInd:null,initialDragDimensionDisplayInds:null,initialDragCategoryDisplayInds:null,dragHasMoved:null,potentialClickBand:null}}e.exports=function(t,e,r,n){f(r,t,n,e)}},{&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plot_api/plot_api&quot;:814,d3:169,tinycolor2:576}],1148:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./parcats&quot;);e.exports=function(t,e,r,i){var a=t._fullLayout,o=a._paper,s=a._size;n(t,o,e,{width:s.w,height:s.h,margin:{t:s.t,r:s.r,b:s.b,l:s.l}},r,i)}},{&quot;./parcats&quot;:1147}],1149:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/cartesian/layout_attributes&quot;),a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/plot_template&quot;).templatedArray;e.exports={domain:o({name:&quot;parcoords&quot;,trace:!0,editType:&quot;plot&quot;}),labelangle:{valType:&quot;angle&quot;,dflt:0,editType:&quot;plot&quot;},labelside:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;plot&quot;},labelfont:a({editType:&quot;plot&quot;}),tickfont:a({editType:&quot;plot&quot;}),rangefont:a({editType:&quot;plot&quot;}),dimensions:l(&quot;dimension&quot;,{label:{valType:&quot;string&quot;,editType:&quot;plot&quot;},tickvals:s({},i.tickvals,{editType:&quot;plot&quot;}),ticktext:s({},i.ticktext,{editType:&quot;plot&quot;}),tickformat:s({},i.tickformat,{editType:&quot;plot&quot;}),visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},range:{valType:&quot;info_array&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},constraintrange:{valType:&quot;info_array&quot;,freeLength:!0,dimensions:&quot;1-2&quot;,items:[{valType:&quot;number&quot;,editType:&quot;plot&quot;},{valType:&quot;number&quot;,editType:&quot;plot&quot;}],editType:&quot;plot&quot;},multiselect:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;}),line:s({editType:&quot;calc&quot;},n(&quot;line&quot;,{colorscaleDflt:&quot;Viridis&quot;,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}))}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/layout_attributes&quot;:842,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856}],1150:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;d3&quot;),a=t(&quot;../../lib/gup&quot;).keyFun,o=t(&quot;../../lib/gup&quot;).repeat,s=t(&quot;../../lib&quot;).sorterAsc,l=t(&quot;../../lib&quot;).strTranslate,c=n.bar.snapRatio;function u(t,e){return t*(1-c)+e*c}var f=n.bar.snapClose;function h(t,e){return t*(1-f)+e*f}function p(t,e,r,n){if(function(t,e){for(var r=0;r&lt;e.length;r++)if(t&gt;=e[r][0]&amp;&amp;t&lt;=e[r][1])return!0;return!1}(r,n))return r;var i=t?-1:1,a=0,o=e.length-1;if(i&lt;0){var s=a;a=o,o=s}for(var l=e[a],c=l,f=a;i*f&lt;i*o;f+=i){var p=f+i,d=e[p];if(i*r&lt;i*h(l,d))return u(l,c);if(i*r&lt;i*d||p===o)return u(d,l);c=l,l=d}}function d(t){t.attr(&quot;x&quot;,-n.bar.captureWidth/2).attr(&quot;width&quot;,n.bar.captureWidth)}function g(t){t.attr(&quot;visibility&quot;,&quot;visible&quot;).style(&quot;visibility&quot;,&quot;visible&quot;).attr(&quot;fill&quot;,&quot;yellow&quot;).attr(&quot;opacity&quot;,0)}function m(t){if(!t.brush.filterSpecified)return&quot;0,&quot;+t.height;for(var e,r,n,i=v(t.brush.filter.getConsolidated(),t.height),a=[0],o=i.length?i[0][0]:null,s=0;s&lt;i.length;s++)r=(e=i[s])[1]-e[0],a.push(o),a.push(r),(n=s+1)&lt;i.length&amp;&amp;(o=i[n][0]-e[1]);return a.push(t.height),a}function v(t,e){return t.map((function(t){return t.map((function(t){return Math.max(0,t*e)})).sort(s)}))}function y(){i.select(document.body).style(&quot;cursor&quot;,null)}function x(t){t.attr(&quot;stroke-dasharray&quot;,m)}function b(t,e){var r=i.select(t).selectAll(&quot;.highlight, .highlight-shadow&quot;);x(e?r.transition().duration(n.bar.snapDuration).each(&quot;end&quot;,e):r)}function _(t,e){var r,i=t.brush,a=NaN,o={};if(i.filterSpecified){var s=t.height,l=i.filter.getConsolidated(),c=v(l,s),u=NaN,f=NaN,h=NaN;for(r=0;r&lt;=c.length;r++){var p=c[r];if(p&amp;&amp;p[0]&lt;=e&amp;&amp;e&lt;=p[1]){u=r;break}if(f=r?r-1:NaN,p&amp;&amp;p[0]&gt;e){h=r;break}}if(a=u,isNaN(a)&amp;&amp;(a=isNaN(f)||isNaN(h)?isNaN(f)?h:f:e-c[f][1]&lt;c[h][0]-e?f:h),!isNaN(a)){var d=c[a],g=function(t,e){var r=n.bar.handleHeight;if(!(e&gt;t[1]+r||e&lt;t[0]-r))return e&gt;=.9*t[1]+.1*t[0]?&quot;n&quot;:e&lt;=.9*t[0]+.1*t[1]?&quot;s&quot;:&quot;ns&quot;}(d,e);g&amp;&amp;(o.interval=l[a],o.intervalPix=d,o.region=g)}}if(t.ordinal&amp;&amp;!o.region){var m=t.unitTickvals,y=t.unitToPaddedPx.invert(e);for(r=0;r&lt;m.length;r++){var x=[.25*m[Math.max(r-1,0)]+.75*m[r],.25*m[Math.min(r+1,m.length-1)]+.75*m[r]];if(y&gt;=x[0]&amp;&amp;y&lt;=x[1]){o.clickableOrdinalRange=x;break}}}return o}function w(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.brush.svgBrush;a.wasDragged=!0,a._dragging=!0,a.grabbingBar?a.newExtent=[r-a.grabPoint,r+a.barLength-a.grabPoint].map(e.unitToPaddedPx.invert):a.newExtent=[a.startExtent,e.unitToPaddedPx.invert(r)].sort(s),e.brush.filterSpecified=!0,a.extent=a.stayingIntervals.concat([a.newExtent]),a.brushCallback(e),b(t.parentNode)}function T(t,e){var r=_(e,e.height-i.mouse(t)[1]-2*n.verticalPadding),a=&quot;crosshair&quot;;r.clickableOrdinalRange?a=&quot;pointer&quot;:r.region&amp;&amp;(a=r.region+&quot;-resize&quot;),i.select(document.body).style(&quot;cursor&quot;,a)}function k(t){t.on(&quot;mousemove&quot;,(function(t){i.event.preventDefault(),t.parent.inBrushDrag||T(this,t)})).on(&quot;mouseleave&quot;,(function(t){t.parent.inBrushDrag||y()})).call(i.behavior.drag().on(&quot;dragstart&quot;,(function(t){!function(t,e){i.event.sourceEvent.stopPropagation();var r=e.height-i.mouse(t)[1]-2*n.verticalPadding,a=e.unitToPaddedPx.invert(r),o=e.brush,s=_(e,r),l=s.interval,c=o.svgBrush;if(c.wasDragged=!1,c.grabbingBar=&quot;ns&quot;===s.region,c.grabbingBar){var u=l.map(e.unitToPaddedPx);c.grabPoint=r-u[0]-n.verticalPadding,c.barLength=u[1]-u[0]}c.clickableOrdinalRange=s.clickableOrdinalRange,c.stayingIntervals=e.multiselect&amp;&amp;o.filterSpecified?o.filter.getConsolidated():[],l&amp;&amp;(c.stayingIntervals=c.stayingIntervals.filter((function(t){return t[0]!==l[0]&amp;&amp;t[1]!==l[1]}))),c.startExtent=s.region?l[&quot;s&quot;===s.region?1:0]:a,e.parent.inBrushDrag=!0,c.brushStartCallback()}(this,t)})).on(&quot;drag&quot;,(function(t){w(this,t)})).on(&quot;dragend&quot;,(function(t){!function(t,e){var r=e.brush,n=r.filter,a=r.svgBrush;a._dragging||(T(t,e),w(t,e),e.brush.svgBrush.wasDragged=!1),a._dragging=!1,i.event.sourceEvent.stopPropagation();var o=a.grabbingBar;if(a.grabbingBar=!1,a.grabLocation=void 0,e.parent.inBrushDrag=!1,y(),!a.wasDragged)return a.wasDragged=void 0,a.clickableOrdinalRange?r.filterSpecified&amp;&amp;e.multiselect?a.extent.push(a.clickableOrdinalRange):(a.extent=[a.clickableOrdinalRange],r.filterSpecified=!0):o?(a.extent=a.stayingIntervals,0===a.extent.length&amp;&amp;A(r)):A(r),a.brushCallback(e),b(t.parentNode),void a.brushEndCallback(r.filterSpecified?n.getConsolidated():[]);var s=function(){n.set(n.getConsolidated())};if(e.ordinal){var l=e.unitTickvals;l[l.length-1]&lt;l[0]&amp;&amp;l.reverse(),a.newExtent=[p(0,l,a.newExtent[0],a.stayingIntervals),p(1,l,a.newExtent[1],a.stayingIntervals)];var c=a.newExtent[1]&gt;a.newExtent[0];a.extent=a.stayingIntervals.concat(c?[a.newExtent]:[]),a.extent.length||A(r),a.brushCallback(e),c?b(t.parentNode,s):(s(),b(t.parentNode))}else s();a.brushEndCallback(r.filterSpecified?n.getConsolidated():[])}(this,t)})))}function M(t,e){return t[0]-e[0]}function A(t){t.filterSpecified=!1,t.svgBrush.extent=[[-1/0,1/0]]}function S(t){for(var e,r=t.slice(),n=[],i=r.shift();i;){for(e=i.slice();(i=r.shift())&amp;&amp;i[0]&lt;=e[1];)e[1]=Math.max(e[1],i[1]);n.push(e)}return 1===n.length&amp;&amp;n[0][0]&gt;n[0][1]&amp;&amp;(n=[]),n}e.exports={makeBrush:function(t,e,r,n,i,a){var o,l=function(){var t,e,r=[];return{set:function(n){1===(r=n.map((function(t){return t.slice().sort(s)})).sort(M)).length&amp;&amp;r[0][0]===-1/0&amp;&amp;r[0][1]===1/0&amp;&amp;(r=[[0,-1]]),t=S(r),e=r.reduce((function(t,e){return[Math.min(t[0],e[0]),Math.max(t[1],e[1])]}),[1/0,-1/0])},get:function(){return r.slice()},getConsolidated:function(){return t},getBounds:function(){return e}}}();return l.set(r),{filter:l,filterSpecified:e,svgBrush:{extent:[],brushStartCallback:n,brushCallback:(o=i,function(t){var e=t.brush,r=function(t){return t.svgBrush.extent.map((function(t){return t.slice()}))}(e).slice();e.filter.set(r),o()}),brushEndCallback:a}}},ensureAxisBrush:function(t){var e=t.selectAll(&quot;.&quot;+n.cn.axisBrush).data(o,a);e.enter().append(&quot;g&quot;).classed(n.cn.axisBrush,!0),function(t){var e=t.selectAll(&quot;.background&quot;).data(o);e.enter().append(&quot;rect&quot;).classed(&quot;background&quot;,!0).call(d).call(g).style(&quot;pointer-events&quot;,&quot;auto&quot;).attr(&quot;transform&quot;,l(0,n.verticalPadding)),e.call(k).attr(&quot;height&quot;,(function(t){return t.height-n.verticalPadding}));var r=t.selectAll(&quot;.highlight-shadow&quot;).data(o);r.enter().append(&quot;line&quot;).classed(&quot;highlight-shadow&quot;,!0).attr(&quot;x&quot;,-n.bar.width/2).attr(&quot;stroke-width&quot;,n.bar.width+n.bar.strokeWidth).attr(&quot;stroke&quot;,n.bar.strokeColor).attr(&quot;opacity&quot;,n.bar.strokeOpacity).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;),r.attr(&quot;y1&quot;,(function(t){return t.height})).call(x);var i=t.selectAll(&quot;.highlight&quot;).data(o);i.enter().append(&quot;line&quot;).classed(&quot;highlight&quot;,!0).attr(&quot;x&quot;,-n.bar.width/2).attr(&quot;stroke-width&quot;,n.bar.width-n.bar.strokeWidth).attr(&quot;stroke&quot;,n.bar.fillColor).attr(&quot;opacity&quot;,n.bar.fillOpacity).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;),i.attr(&quot;y1&quot;,(function(t){return t.height})).call(x)}(e)},cleanRanges:function(t,e){if(Array.isArray(t[0])?(t=t.map((function(t){return t.sort(s)})),t=e.multiselect?S(t.sort(M)):[t[0]]):t=[t.sort(s)],e.tickvals){var r=e.tickvals.slice().sort(s);if(!(t=t.map((function(t){var e=[p(0,r,t[0],[]),p(1,r,t[1],[])];if(e[1]&gt;e[0])return e})).filter((function(t){return t}))).length)return}return t.length&gt;1?t:t[0]}}},{&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;./constants&quot;:1153,d3:169}],1151:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/get_data&quot;).getModuleCalcData,a=t(&quot;./plot&quot;),o=t(&quot;../../constants/xmlns_namespaces&quot;);r.name=&quot;parcoords&quot;,r.plot=function(t){var e=i(t.calcdata,&quot;parcoords&quot;)[0];e.length&amp;&amp;a(t,e)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;parcoords&quot;),a=e._has&amp;&amp;e._has(&quot;parcoords&quot;);i&amp;&amp;!a&amp;&amp;(n._paperdiv.selectAll(&quot;.parcoords&quot;).remove(),n._glimages.selectAll(&quot;*&quot;).remove())},r.toSVG=function(t){var e=t._fullLayout._glimages,r=n.select(t).selectAll(&quot;.svg-container&quot;);r.filter((function(t,e){return e===r.size()-1})).selectAll(&quot;.gl-canvas-context, .gl-canvas-focus&quot;).each((function(){var t=this.toDataURL(&quot;image/png&quot;);e.append(&quot;svg:image&quot;).attr({xmlns:o.svg,&quot;xlink:href&quot;:t,preserveAspectRatio:&quot;none&quot;,x:0,y:0,width:this.width,height:this.height})})),window.setTimeout((function(){n.selectAll(&quot;#filterBarPattern&quot;).attr(&quot;id&quot;,&quot;filterBarPattern&quot;)}),60)}},{&quot;../../constants/xmlns_namespaces&quot;:754,&quot;../../plots/get_data&quot;:865,&quot;./plot&quot;:1160,d3:169}],1152:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray,i=t(&quot;../../components/colorscale&quot;),a=t(&quot;../../lib/gup&quot;).wrap;e.exports=function(t,e){var r,o;return i.hasColorscale(e,&quot;line&quot;)&amp;&amp;n(e.line.color)?(r=e.line.color,o=i.extractOpts(e.line).colorscale,i.calc(t,e,{vals:r,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;})):(r=function(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=.5;return e}(e._length),o=[[0,e.line.color],[1,e.line.color]]),a({lineColor:r,cscale:o})}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775}],1153:[function(t,e,r){&quot;use strict&quot;;e.exports={maxDimensionCount:60,overdrag:45,verticalPadding:2,tickDistance:50,canvasPixelRatio:1,blockLineCount:5e3,layers:[&quot;contextLineLayer&quot;,&quot;focusLineLayer&quot;,&quot;pickLineLayer&quot;],axisTitleOffset:28,axisExtentOffset:10,deselectedLineColor:&quot;#777&quot;,bar:{width:4,captureWidth:10,fillColor:&quot;magenta&quot;,fillOpacity:1,snapDuration:150,snapRatio:.25,snapClose:.01,strokeColor:&quot;white&quot;,strokeOpacity:1,strokeWidth:1,handleHeight:8,handleOpacity:1,handleOverlap:0},cn:{axisExtentText:&quot;axis-extent-text&quot;,parcoordsLineLayers:&quot;parcoords-line-layers&quot;,parcoordsLineLayer:&quot;parcoords-lines&quot;,parcoords:&quot;parcoords&quot;,parcoordsControlView:&quot;parcoords-control-view&quot;,yAxis:&quot;y-axis&quot;,axisOverlays:&quot;axis-overlays&quot;,axis:&quot;axis&quot;,axisHeading:&quot;axis-heading&quot;,axisTitle:&quot;axis-title&quot;,axisExtent:&quot;axis-extent&quot;,axisExtentTop:&quot;axis-extent-top&quot;,axisExtentTopText:&quot;axis-extent-top-text&quot;,axisExtentBottom:&quot;axis-extent-bottom&quot;,axisExtentBottomText:&quot;axis-extent-bottom-text&quot;,axisBrush:&quot;axis-brush&quot;},id:{filterBarPattern:&quot;filter-bar-pattern&quot;}}},{}],1154:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../../plots/array_container_defaults&quot;),l=t(&quot;../../plots/cartesian/axes&quot;),c=t(&quot;./attributes&quot;),u=t(&quot;./axisbrush&quot;),f=t(&quot;./constants&quot;).maxDimensionCount,h=t(&quot;./merge_length&quot;);function p(t,e,r,i){function a(r,i){return n.coerce(t,e,c.dimensions,r,i)}var o=a(&quot;values&quot;),s=a(&quot;visible&quot;);if(o&amp;&amp;o.length||(s=e.visible=!1),s){a(&quot;label&quot;),a(&quot;tickvals&quot;),a(&quot;ticktext&quot;),a(&quot;tickformat&quot;);var f=a(&quot;range&quot;);e._ax={_id:&quot;y&quot;,type:&quot;linear&quot;,showexponent:&quot;all&quot;,exponentformat:&quot;B&quot;,range:f},l.setConvert(e._ax,i.layout),a(&quot;multiselect&quot;);var h=a(&quot;constraintrange&quot;);h&amp;&amp;(e.constraintrange=u.cleanRanges(h,e))}}e.exports=function(t,e,r,l){function u(r,i){return n.coerce(t,e,c,r,i)}var d=t.dimensions;Array.isArray(d)&amp;&amp;d.length&gt;f&amp;&amp;(n.log(&quot;parcoords traces support up to &quot;+f+&quot; dimensions at the moment&quot;),d.splice(f));var g=s(t,e,{name:&quot;dimensions&quot;,layout:l,handleItemDefaults:p}),m=function(t,e,r,o,s){var l=s(&quot;line.color&quot;,r);if(i(t,&quot;line&quot;)&amp;&amp;n.isArrayOrTypedArray(l)){if(l.length)return s(&quot;line.colorscale&quot;),a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}),l.length;e.line.color=r}return 1/0}(t,e,r,l,u);o(e,l,u),Array.isArray(g)&amp;&amp;g.length||(e.visible=!1),h(e,g,&quot;values&quot;,m);var v={family:l.font.family,size:Math.round(l.font.size/1.2),color:l.font.color};n.coerceFont(u,&quot;labelfont&quot;,v),n.coerceFont(u,&quot;tickfont&quot;,v),n.coerceFont(u,&quot;rangefont&quot;,v),u(&quot;labelangle&quot;),u(&quot;labelside&quot;)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1149,&quot;./axisbrush&quot;:1150,&quot;./constants&quot;:1153,&quot;./merge_length&quot;:1158}],1155:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isTypedArray;r.convertTypedArray=function(t){return n(t)?Array.prototype.slice.call(t):t},r.isOrdinal=function(t){return!!t.tickvals},r.isVisible=function(t){return t.visible||!(&quot;visible&quot;in t)}},{&quot;../../lib&quot;:778}],1156:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),colorbar:{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},moduleType:&quot;trace&quot;,name:&quot;parcoords&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;noOpacity&quot;,&quot;noHover&quot;],meta:{}}},{&quot;./attributes&quot;:1149,&quot;./base_plot&quot;:1151,&quot;./calc&quot;:1152,&quot;./defaults&quot;:1154,&quot;./plot&quot;:1160}],1157:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;glslify&quot;),i=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nattribute vec4 p01_04, p05_08, p09_12, p13_16,\n               p17_20, p21_24, p25_28, p29_32,\n               p33_36, p37_40, p41_44, p45_48,\n               p49_52, p53_56, p57_60, colors;\n\nuniform mat4 dim0A, dim1A, dim0B, dim1B, dim0C, dim1C, dim0D, dim1D,\n             loA, hiA, loB, hiB, loC, hiC, loD, hiD;\n\nuniform vec2 resolution, viewBoxPos, viewBoxSize;\nuniform sampler2D mask, palette;\nuniform float maskHeight;\nuniform float drwLayer; // 0: context, 1: focus, 2: pick\nuniform vec4 contextColor;\n\nbool isPick    = (drwLayer &gt; 1.5);\nbool isContext = (drwLayer &lt; 0.5);\n\nconst vec4 ZEROS = vec4(0.0, 0.0, 0.0, 0.0);\nconst vec4 UNITS = vec4(1.0, 1.0, 1.0, 1.0);\n\nfloat val(mat4 p, mat4 v) {\n    return dot(matrixCompMult(p, v) * UNITS, UNITS);\n}\n\nfloat axisY(float ratio, mat4 A, mat4 B, mat4 C, mat4 D) {\n    float y1 = val(A, dim0A) + val(B, dim0B) + val(C, dim0C) + val(D, dim0D);\n    float y2 = val(A, dim1A) + val(B, dim1B) + val(C, dim1C) + val(D, dim1D);\n    return y1 * (1.0 - ratio) + y2 * ratio;\n}\n\nint iMod(int a, int b) {\n    return a - b * (a / b);\n}\n\nbool fOutside(float p, float lo, float hi) {\n    return (lo &lt; hi) &amp;&amp; (lo &gt; p || p &gt; hi);\n}\n\nbool vOutside(vec4 p, vec4 lo, vec4 hi) {\n    return (\n        fOutside(p[0], lo[0], hi[0]) ||\n        fOutside(p[1], lo[1], hi[1]) ||\n        fOutside(p[2], lo[2], hi[2]) ||\n        fOutside(p[3], lo[3], hi[3])\n    );\n}\n\nbool mOutside(mat4 p, mat4 lo, mat4 hi) {\n    return (\n        vOutside(p[0], lo[0], hi[0]) ||\n        vOutside(p[1], lo[1], hi[1]) ||\n        vOutside(p[2], lo[2], hi[2]) ||\n        vOutside(p[3], lo[3], hi[3])\n    );\n}\n\nbool outsideBoundingBox(mat4 A, mat4 B, mat4 C, mat4 D) {\n    return mOutside(A, loA, hiA) ||\n           mOutside(B, loB, hiB) ||\n           mOutside(C, loC, hiC) ||\n           mOutside(D, loD, hiD);\n}\n\nbool outsideRasterMask(mat4 A, mat4 B, mat4 C, mat4 D) {\n    mat4 pnts[4];\n    pnts[0] = A;\n    pnts[1] = B;\n    pnts[2] = C;\n    pnts[3] = D;\n\n    for(int i = 0; i &lt; 4; ++i) {\n        for(int j = 0; j &lt; 4; ++j) {\n            for(int k = 0; k &lt; 4; ++k) {\n                if(0 == iMod(\n                    int(255.0 * texture2D(mask,\n                        vec2(\n                            (float(i * 2 + j / 2) + 0.5) / 8.0,\n                            (pnts[i][j][k] * (maskHeight - 1.0) + 1.0) / maskHeight\n                        ))[3]\n                    ) / int(pow(2.0, float(iMod(j * 4 + k, 8)))),\n                    2\n                )) return true;\n            }\n        }\n    }\n    return false;\n}\n\nvec4 position(bool isContext, float v, mat4 A, mat4 B, mat4 C, mat4 D) {\n    float x = 0.5 * sign(v) + 0.5;\n    float y = axisY(x, A, B, C, D);\n    float z = 1.0 - abs(v);\n\n    z += isContext ? 0.0 : 2.0 * float(\n        outsideBoundingBox(A, B, C, D) ||\n        outsideRasterMask(A, B, C, D)\n    );\n\n    return vec4(\n        2.0 * (vec2(x, y) * viewBoxSize + viewBoxPos) / resolution - 1.0,\n        z,\n        1.0\n    );\n}\n\nvoid main() {\n    mat4 A = mat4(p01_04, p05_08, p09_12, p13_16);\n    mat4 B = mat4(p17_20, p21_24, p25_28, p29_32);\n    mat4 C = mat4(p33_36, p37_40, p41_44, p45_48);\n    mat4 D = mat4(p49_52, p53_56, p57_60, ZEROS);\n\n    float v = colors[3];\n\n    gl_Position = position(isContext, v, A, B, C, D);\n\n    fragColor =\n        isContext ? vec4(contextColor) :\n        isPick ? vec4(colors.rgb, 1.0) : texture2D(palette, vec2(abs(v), 0.5));\n}\n&quot;]),a=n([&quot;precision highp float;\n#define GLSLIFY 1\n\nvarying vec4 fragColor;\n\nvoid main() {\n    gl_FragColor = fragColor;\n}\n&quot;]),o=t(&quot;./constants&quot;).maxDimensionCount,s=t(&quot;../../lib&quot;),l=new Uint8Array(4),c=new Uint8Array(4),u={shape:[256,1],format:&quot;rgba&quot;,type:&quot;uint8&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;};function f(t,e,r,n,i){var a=t._gl;a.enable(a.SCISSOR_TEST),a.scissor(e,r,n,i),t.clear({color:[0,0,0,0],depth:1})}function h(t,e,r,n,i,a){var o=a.key;r.drawCompleted||(!function(t){t.read({x:0,y:0,width:1,height:1,data:l})}(t),r.drawCompleted=!0),function s(l){var c=Math.min(n,i-l*n);0===l&amp;&amp;(window.cancelAnimationFrame(r.currentRafs[o]),delete r.currentRafs[o],f(t,a.scissorX,a.scissorY,a.scissorWidth,a.viewBoxSize[1])),r.clearOnly||(a.count=2*c,a.offset=2*l*n,e(a),l*n+c&lt;i&amp;&amp;(r.currentRafs[o]=window.requestAnimationFrame((function(){s(l+1)}))),r.drawCompleted=!1)}(0)}function p(t,e){for(var r=new Array(256),n=0;n&lt;256;n++)r[n]=t(n/255).concat(e);return r}function d(t,e){return(t&gt;&gt;&gt;8*e)%256/255}function g(t,e,r){for(var n=new Array(8*e),i=0,a=0;a&lt;e;a++)for(var o=0;o&lt;2;o++)for(var s=0;s&lt;4;s++){var l=4*t+s,c=r[64*a+l];63===l&amp;&amp;0===o&amp;&amp;(c*=-1),n[i++]=c}return n}function m(t){var e=&quot;0&quot;+t;return e.substr(e.length-2)}function v(t){return t&lt;o?&quot;p&quot;+m(t+1)+&quot;_&quot;+m(t+4):&quot;colors&quot;}function y(t,e,r,n,i,a,o,l,c,u,f,h,p){for(var d=[[],[]],g=0;g&lt;64;g++)d[0][g]=g===i?1:0,d[1][g]=g===a?1:0;var m=t.lines.canvasOverdrag,v=t.domain,y=t.canvasWidth,x=t.canvasHeight,b=t.deselectedLines.color;return s.extendFlat({key:f,resolution:[y,x],viewBoxPos:[o+m,l],viewBoxSize:[c,u],i0:i,i1:a,dim0A:d[0].slice(0,16),dim0B:d[0].slice(16,32),dim0C:d[0].slice(32,48),dim0D:d[0].slice(48,64),dim1A:d[1].slice(0,16),dim1B:d[1].slice(16,32),dim1C:d[1].slice(32,48),dim1D:d[1].slice(48,64),drwLayer:h,contextColor:[b[0]/255,b[1]/255,b[2]/255,b[3]&lt;1?b[3]:Math.max(1/255,Math.pow(1/t.lines.color.length,1/3))],scissorX:(n===e?0:o+m)+(t.pad.l-m)+t.layoutWidth*v.x[0],scissorWidth:(n===r?y-o+m:c+.5)+(n===e?o+m:0),scissorY:l+t.pad.b+t.layoutHeight*v.y[0],scissorHeight:u,viewportX:t.pad.l-m+t.layoutWidth*v.x[0],viewportY:t.pad.b+t.layoutHeight*v.y[0],viewportWidth:y,viewportHeight:x},p)}function x(t){var e=Math.max(0,Math.floor(2047*t[0]),0),r=Math.min(2047,Math.ceil(2047*t[1]),2047);return[Math.min(e,r),Math.max(e,r)]}e.exports=function(t,e){var r,n,l,m,b,_=e.context,w=e.pick,T=e.regl,k={currentRafs:{},drawCompleted:!0,clearOnly:!1},M=function(t){for(var e={},r=0;r&lt;=o;r+=4)e[v(r)]=t.buffer({usage:&quot;dynamic&quot;,type:&quot;float&quot;,data:new Uint8Array(0)});return e}(T),A=T.texture(u),S=[];C(e);var E=T({profile:!1,blend:{enable:_,func:{srcRGB:&quot;src alpha&quot;,dstRGB:&quot;one minus src alpha&quot;,srcAlpha:1,dstAlpha:1},equation:{rgb:&quot;add&quot;,alpha:&quot;add&quot;},color:[0,0,0,0]},depth:{enable:!_,mask:!0,func:&quot;less&quot;,range:[0,1]},cull:{enable:!0,face:&quot;back&quot;},scissor:{enable:!0,box:{x:T.prop(&quot;scissorX&quot;),y:T.prop(&quot;scissorY&quot;),width:T.prop(&quot;scissorWidth&quot;),height:T.prop(&quot;scissorHeight&quot;)}},viewport:{x:T.prop(&quot;viewportX&quot;),y:T.prop(&quot;viewportY&quot;),width:T.prop(&quot;viewportWidth&quot;),height:T.prop(&quot;viewportHeight&quot;)},dither:!1,vert:i,frag:a,primitive:&quot;lines&quot;,lineWidth:1,attributes:M,uniforms:{resolution:T.prop(&quot;resolution&quot;),viewBoxPos:T.prop(&quot;viewBoxPos&quot;),viewBoxSize:T.prop(&quot;viewBoxSize&quot;),dim0A:T.prop(&quot;dim0A&quot;),dim1A:T.prop(&quot;dim1A&quot;),dim0B:T.prop(&quot;dim0B&quot;),dim1B:T.prop(&quot;dim1B&quot;),dim0C:T.prop(&quot;dim0C&quot;),dim1C:T.prop(&quot;dim1C&quot;),dim0D:T.prop(&quot;dim0D&quot;),dim1D:T.prop(&quot;dim1D&quot;),loA:T.prop(&quot;loA&quot;),hiA:T.prop(&quot;hiA&quot;),loB:T.prop(&quot;loB&quot;),hiB:T.prop(&quot;hiB&quot;),loC:T.prop(&quot;loC&quot;),hiC:T.prop(&quot;hiC&quot;),loD:T.prop(&quot;loD&quot;),hiD:T.prop(&quot;hiD&quot;),palette:A,contextColor:T.prop(&quot;contextColor&quot;),mask:T.prop(&quot;maskTexture&quot;),drwLayer:T.prop(&quot;drwLayer&quot;),maskHeight:T.prop(&quot;maskHeight&quot;)},offset:T.prop(&quot;offset&quot;),count:T.prop(&quot;count&quot;)});function C(t){r=t.model,n=t.viewModel,l=n.dimensions.slice(),m=l[0]?l[0].values.length:0;var e=r.lines,i=w?e.color.map((function(t,r){return r/e.color.length})):e.color,a=function(t,e,r){for(var n,i=new Array(t*(o+4)),a=0,s=0;s&lt;t;s++){for(var l=0;l&lt;o;l++)i[a++]=l&lt;e.length?e[l].paddedUnitValues[s]:.5;i[a++]=d(s,2),i[a++]=d(s,1),i[a++]=d(s,0),i[a++]=(n=r[s],Math.max(1e-6,Math.min(.999999,n)))}return i}(m,l,i);!function(t,e,r){for(var n=0;n&lt;=o;n+=4)t[v(n)](g(n/4,e,r))}(M,m,a),_||w||(A=T.texture(s.extendFlat({data:p(r.unitToColor,255)},u)))}return{render:function(t,e,n){var i,a,o,s=t.length,c=1/0,u=-1/0;for(i=0;i&lt;s;i++)t[i].dim0.canvasX&lt;c&amp;&amp;(c=t[i].dim0.canvasX,a=i),t[i].dim1.canvasX&gt;u&amp;&amp;(u=t[i].dim1.canvasX,o=i);0===s&amp;&amp;f(T,0,0,r.canvasWidth,r.canvasHeight);var p=function(t){var e,r,n,i=[[],[]];for(n=0;n&lt;64;n++){var a=!t&amp;&amp;n&lt;l.length?l[n].brush.filter.getBounds():[-1/0,1/0];i[0][n]=a[0],i[1][n]=a[1]}var o=new Array(16384);for(e=0;e&lt;16384;e++)o[e]=255;if(!t)for(e=0;e&lt;l.length;e++){var s=e%8,c=(e-s)/8,u=Math.pow(2,s),f=l[e].brush.filter.get();if(!(f.length&lt;2)){var h=x(f[0])[1];for(r=1;r&lt;f.length;r++){var p=x(f[r]);for(n=h+1;n&lt;p[0];n++)o[8*n+c]&amp;=~u;h=Math.max(h,p[1])}}}var d={shape:[8,2048],format:&quot;alpha&quot;,type:&quot;uint8&quot;,mag:&quot;nearest&quot;,min:&quot;nearest&quot;,data:o};return b?b(d):b=T.texture(d),{maskTexture:b,maskHeight:2048,loA:i[0].slice(0,16),loB:i[0].slice(16,32),loC:i[0].slice(32,48),loD:i[0].slice(48,64),hiA:i[1].slice(0,16),hiB:i[1].slice(16,32),hiC:i[1].slice(32,48),hiD:i[1].slice(48,64)}}(_);for(i=0;i&lt;s;i++){var d=t[i],g=d.dim0.crossfilterDimensionIndex,v=d.dim1.crossfilterDimensionIndex,M=d.canvasX,A=d.canvasY,C=M+d.panelSizeX;if(e||!S[g]||S[g][0]!==M||S[g][1]!==C){S[g]=[M,C];var L=y(r,a,o,i,g,v,M,A,d.panelSizeX,d.panelSizeY,d.dim0.crossfilterDimensionIndex,_?0:w?2:1,p);k.clearOnly=n;var I=e?r.lines.blockLineCount:m;h(T,E,k,I,m,L)}}},readPixel:function(t,e){return T.read({x:t,y:e,width:1,height:1,data:c}),c},readPixels:function(t,e,r,n){var i=new Uint8Array(4*r*n);return T.read({x:t,y:e,width:r,height:n,data:i}),i},destroy:function(){for(var e in t.style[&quot;pointer-events&quot;]=&quot;none&quot;,A.destroy(),b&amp;&amp;b.destroy(),M)M[e].destroy()},update:C}}},{&quot;../../lib&quot;:778,&quot;./constants&quot;:1153,glslify:439}],1158:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n){var i,a;for(n||(n=1/0),i=0;i&lt;e.length;i++)(a=e[i]).visible&amp;&amp;(n=Math.min(n,a[r].length));for(n===1/0&amp;&amp;(n=0),t._length=n,i=0;i&lt;e.length;i++)(a=e[i]).visible&amp;&amp;(a._length=n);return n}},{}],1159:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;color-rgba&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../lib&quot;),s=o.strRotate,l=o.strTranslate,c=t(&quot;../../lib/svg_text_utils&quot;),u=t(&quot;../../components/drawing&quot;),f=t(&quot;../../components/colorscale&quot;),h=t(&quot;../../lib/gup&quot;),p=h.keyFun,d=h.repeat,g=h.unwrap,m=t(&quot;./helpers&quot;),v=t(&quot;./constants&quot;),y=t(&quot;./axisbrush&quot;),x=t(&quot;./lines&quot;);function b(t,e,r){return o.aggNums(t,null,e,r)}function _(t,e){return T(b(Math.min,t,e),b(Math.max,t,e))}function w(t){var e=t.range;return e?T(e[0],e[1]):_(t.values,t._length)}function T(t,e){return!isNaN(t)&amp;&amp;isFinite(t)||(t=0),!isNaN(e)&amp;&amp;isFinite(e)||(e=0),t===e&amp;&amp;(0===t?(t-=1,e+=1):(t*=.9,e*=1.1)),[t,e]}function k(t,e,r,i,a){var o,s,l=w(r);return i?n.scale.ordinal().domain(i.map((o=n.format(r.tickformat),s=a,s?function(t,e){var r=s[e];return null==r?o(t):r}:o))).range(i.map((function(r){var n=(r-l[0])/(l[1]-l[0]);return t-e+n*(2*e-t)}))):n.scale.linear().domain(l).range([t-e,e])}function M(t){if(t.tickvals){var e=w(t);return n.scale.ordinal().domain(t.tickvals).range(t.tickvals.map((function(t){return(t-e[0])/(e[1]-e[0])})))}}function A(t){var e=t.map((function(t){return t[0]})),r=t.map((function(t){var e=i(t[1]);return n.rgb(&quot;rgb(&quot;+e[0]+&quot;,&quot;+e[1]+&quot;,&quot;+e[2]+&quot;)&quot;)})),a=&quot;rgb&quot;.split(&quot;&quot;).map((function(t){return n.scale.linear().clamp(!0).domain(e).range(r.map((i=t,function(t){return t[i]})));var i}));return function(t){return a.map((function(e){return e(t)}))}}function S(t){return t.dimensions.some((function(t){return t.brush.filterSpecified}))}function E(t,e,r){var a=g(e),s=a.trace,l=m.convertTypedArray(a.lineColor),c=s.line,u={color:i(v.deselectedLineColor)},h=f.extractOpts(c),p=h.reversescale?f.flipScale(a.cscale):a.cscale,d=s.domain,y=s.dimensions,x=t.width,b=s.labelangle,_=s.labelside,T=s.labelfont,k=s.tickfont,M=s.rangefont,S=o.extendDeepNoArrays({},c,{color:l.map(n.scale.linear().domain(w({values:l,range:[h.min,h.max],_length:s._length}))),blockLineCount:v.blockLineCount,canvasOverdrag:v.overdrag*v.canvasPixelRatio}),E=Math.floor(x*(d.x[1]-d.x[0])),C=Math.floor(t.height*(d.y[1]-d.y[0])),L=t.margin||{l:80,r:80,t:100,b:80},I=E,P=C;return{key:r,colCount:y.filter(m.isVisible).length,dimensions:y,tickDistance:v.tickDistance,unitToColor:A(p),lines:S,deselectedLines:u,labelAngle:b,labelSide:_,labelFont:T,tickFont:k,rangeFont:M,layoutWidth:x,layoutHeight:t.height,domain:d,translateX:d.x[0]*x,translateY:t.height-d.y[1]*t.height,pad:L,canvasWidth:I*v.canvasPixelRatio+2*S.canvasOverdrag,canvasHeight:P*v.canvasPixelRatio,width:I,height:P,canvasPixelRatio:v.canvasPixelRatio}}function C(t,e,r){var i=r.width,a=r.height,s=r.dimensions,l=r.canvasPixelRatio,c=function(t){return i*t/Math.max(1,r.colCount-1)},u=v.verticalPadding/a,f=function(t,e){return n.scale.linear().range([e,t-e])}(a,v.verticalPadding),h={key:r.key,xScale:c,model:r,inBrushDrag:!1},p={};return h.dimensions=s.filter(m.isVisible).map((function(i,s){var d=function(t,e){return n.scale.linear().domain(w(t)).range([e,1-e])}(i,u),g=p[i.label];p[i.label]=(g||0)+1;var x=i.label+(g?&quot;__&quot;+g:&quot;&quot;),b=i.constraintrange,_=b&amp;&amp;b.length;_&amp;&amp;!Array.isArray(b[0])&amp;&amp;(b=[b]);var T=_?b.map((function(t){return t.map(d)})):[[-1/0,1/0]],A=i.values;A.length&gt;i._length&amp;&amp;(A=A.slice(0,i._length));var E,C=i.tickvals;function L(t,e){return{val:t,text:E[e]}}function I(t,e){return t.val-e.val}if(Array.isArray(C)&amp;&amp;C.length){E=i.ticktext,Array.isArray(E)&amp;&amp;E.length?E.length&gt;C.length?E=E.slice(0,C.length):C.length&gt;E.length&amp;&amp;(C=C.slice(0,E.length)):E=C.map(n.format(i.tickformat));for(var P=1;P&lt;C.length;P++)if(C[P]&lt;C[P-1]){for(var z=C.map(L).sort(I),O=0;O&lt;C.length;O++)C[O]=z[O].val,E[O]=z[O].text;break}}else C=void 0;return A=m.convertTypedArray(A),{key:x,label:i.label,tickFormat:i.tickformat,tickvals:C,ticktext:E,ordinal:m.isOrdinal(i),multiselect:i.multiselect,xIndex:s,crossfilterDimensionIndex:s,visibleIndex:i._index,height:a,values:A,paddedUnitValues:A.map(d),unitTickvals:C&amp;&amp;C.map(d),xScale:c,x:c(s),canvasX:c(s)*l,unitToPaddedPx:f,domainScale:k(a,v.verticalPadding,i,C,E),ordinalScale:M(i),parent:h,model:r,brush:y.makeBrush(t,_,T,(function(){t.linePickActive(!1)}),(function(){var e=h;e.focusLayer&amp;&amp;e.focusLayer.render(e.panels,!0);var r=S(e);!t.contextShown()&amp;&amp;r?(e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!0),t.contextShown(!0)):t.contextShown()&amp;&amp;!r&amp;&amp;(e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!0,!0),t.contextShown(!1))}),(function(r){if(h.focusLayer.render(h.panels,!0),h.pickLayer&amp;&amp;h.pickLayer.render(h.panels,!0),t.linePickActive(!0),e&amp;&amp;e.filterChanged){var n=d.invert,a=r.map((function(t){return t.map(n).sort(o.sorterAsc)})).sort((function(t,e){return t[0]-e[0]}));e.filterChanged(h.key,i._index,a)}}))}})),h}function L(t){t.classed(v.cn.axisExtentText,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).style(&quot;cursor&quot;,&quot;default&quot;)}function I(t,e){var r=&quot;top&quot;===e?1:-1,n=t*Math.PI/180;return{dir:r,dx:Math.sin(n),dy:Math.cos(n),degrees:t}}function P(t,e){for(var r=e.panels||(e.panels=[]),n=t.data(),i=0;i&lt;n.length-1;i++){var a=r[i]||(r[i]={}),o=n[i],s=n[i+1];a.dim0=o,a.dim1=s,a.canvasX=o.canvasX,a.panelSizeX=s.canvasX-o.canvasX,a.panelSizeY=e.model.canvasHeight,a.y=0,a.canvasY=0}}function z(t,e){return a.tickText(t._ax,e,!1).text}function O(t,e){if(t.ordinal)return&quot;&quot;;var r=t.domainScale.domain(),n=r[e?r.length-1:0];return z(t.model.dimensions[t.visibleIndex],n)}e.exports=function(t,e,r,i){var f=t._fullLayout,h=f._toppaper,b=f._glcontainer;!function(t){for(var e=0;e&lt;t.length;e++)for(var r=0;r&lt;t[e].length;r++)for(var n=t[e][r].trace,i=n.dimensions,o=0;o&lt;i.length;o++){var s=i[o].values,l=i[o]._ax;l&amp;&amp;(l.range?l.range=T(l.range[0],l.range[1]):l.range=_(s,n._length),l.dtick||(l.dtick=.01*(Math.abs(l.range[1]-l.range[0])||1)),l.tickformat=i[o].tickformat,a.calcTicks(l),l.cleanRange())}}(e);var w,k,M=(w=!0,k=!1,{linePickActive:function(t){return arguments.length?w=!!t:w},contextShown:function(t){return arguments.length?k=!!t:k}}),A=e.filter((function(t){return g(t).trace.visible})).map(E.bind(0,r)).map(C.bind(0,M,i));b.each((function(t,e){return o.extendFlat(t,A[e])}));var D=b.selectAll(&quot;.gl-canvas&quot;).each((function(t){t.viewModel=A[0],t.model=t.viewModel?t.viewModel.model:null})),R=null;D.filter((function(t){return t.pick})).style(&quot;pointer-events&quot;,&quot;auto&quot;).on(&quot;mousemove&quot;,(function(t){if(M.linePickActive()&amp;&amp;t.lineLayer&amp;&amp;i&amp;&amp;i.hover){var e=n.event,r=this.width,a=this.height,o=n.mouse(this),s=o[0],l=o[1];if(s&lt;0||l&lt;0||s&gt;=r||l&gt;=a)return;var c=t.lineLayer.readPixel(s,a-1-l),u=0!==c[3],f=u?c[2]+256*(c[1]+256*c[0]):null,h={x:s,y:l,clientX:e.clientX,clientY:e.clientY,dataIndex:t.model.key,curveNumber:f};f!==R&amp;&amp;(u?i.hover(h):i.unhover&amp;&amp;i.unhover(h),R=f)}})),D.style(&quot;opacity&quot;,(function(t){return t.pick?0:1})),h.style(&quot;background&quot;,&quot;rgba(255, 255, 255, 0)&quot;);var F=h.selectAll(&quot;.&quot;+v.cn.parcoords).data(A,p);F.exit().remove(),F.enter().append(&quot;g&quot;).classed(v.cn.parcoords,!0).style(&quot;shape-rendering&quot;,&quot;crispEdges&quot;).style(&quot;pointer-events&quot;,&quot;none&quot;),F.attr(&quot;transform&quot;,(function(t){return l(t.model.translateX,t.model.translateY)}));var B=F.selectAll(&quot;.&quot;+v.cn.parcoordsControlView).data(d,p);B.enter().append(&quot;g&quot;).classed(v.cn.parcoordsControlView,!0),B.attr(&quot;transform&quot;,(function(t){return l(t.model.pad.l,t.model.pad.t)}));var N=B.selectAll(&quot;.&quot;+v.cn.yAxis).data((function(t){return t.dimensions}),p);N.enter().append(&quot;g&quot;).classed(v.cn.yAxis,!0),B.each((function(t){P(N,t)})),D.each((function(t){if(t.viewModel){!t.lineLayer||i?t.lineLayer=x(this,t):t.lineLayer.update(t),(t.key||0===t.key)&amp;&amp;(t.viewModel[t.key]=t.lineLayer);var e=!t.context||i;t.lineLayer.render(t.viewModel.panels,e)}})),N.attr(&quot;transform&quot;,(function(t){return l(t.xScale(t.xIndex),0)})),N.call(n.behavior.drag().origin((function(t){return t})).on(&quot;drag&quot;,(function(t){var e=t.parent;M.linePickActive(!1),t.x=Math.max(-v.overdrag,Math.min(t.model.width+v.overdrag,n.event.x)),t.canvasX=t.x*t.model.canvasPixelRatio,N.sort((function(t,e){return t.x-e.x})).each((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e.xIndex),e.canvasX=e.x*e.model.canvasPixelRatio})),P(N,e),N.filter((function(e){return 0!==Math.abs(t.xIndex-e.xIndex)})).attr(&quot;transform&quot;,(function(t){return l(t.xScale(t.xIndex),0)})),n.select(this).attr(&quot;transform&quot;,l(t.x,0)),N.each((function(r,n,i){i===t.parent.key&amp;&amp;(e.dimensions[n]=r)})),e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!1,!S(e)),e.focusLayer.render&amp;&amp;e.focusLayer.render(e.panels)})).on(&quot;dragend&quot;,(function(t){var e=t.parent;t.x=t.xScale(t.xIndex),t.canvasX=t.x*t.model.canvasPixelRatio,P(N,e),n.select(this).attr(&quot;transform&quot;,(function(t){return l(t.x,0)})),e.contextLayer&amp;&amp;e.contextLayer.render(e.panels,!1,!S(e)),e.focusLayer&amp;&amp;e.focusLayer.render(e.panels),e.pickLayer&amp;&amp;e.pickLayer.render(e.panels,!0),M.linePickActive(!0),i&amp;&amp;i.axesMoved&amp;&amp;i.axesMoved(e.key,e.dimensions.map((function(t){return t.crossfilterDimensionIndex})))}))),N.exit().remove();var j=N.selectAll(&quot;.&quot;+v.cn.axisOverlays).data(d,p);j.enter().append(&quot;g&quot;).classed(v.cn.axisOverlays,!0),j.selectAll(&quot;.&quot;+v.cn.axis).remove();var U=j.selectAll(&quot;.&quot;+v.cn.axis).data(d,p);U.enter().append(&quot;g&quot;).classed(v.cn.axis,!0),U.each((function(t){var e=t.model.height/t.model.tickDistance,r=t.domainScale,i=r.domain();n.select(this).call(n.svg.axis().orient(&quot;left&quot;).tickSize(4).outerTickSize(2).ticks(e,t.tickFormat).tickValues(t.ordinal?i:null).tickFormat((function(e){return m.isOrdinal(t)?e:z(t.model.dimensions[t.visibleIndex],e)})).scale(r)),u.font(U.selectAll(&quot;text&quot;),t.model.tickFont)})),U.selectAll(&quot;.domain, .tick&gt;line&quot;).attr(&quot;fill&quot;,&quot;none&quot;).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-opacity&quot;,.25).attr(&quot;stroke-width&quot;,&quot;1px&quot;),U.selectAll(&quot;text&quot;).style(&quot;text-shadow&quot;,&quot;1px 1px 1px #fff, -1px -1px 1px #fff, 1px -1px 1px #fff, -1px 1px 1px #fff&quot;).style(&quot;cursor&quot;,&quot;default&quot;);var V=j.selectAll(&quot;.&quot;+v.cn.axisHeading).data(d,p);V.enter().append(&quot;g&quot;).classed(v.cn.axisHeading,!0);var q=V.selectAll(&quot;.&quot;+v.cn.axisTitle).data(d,p);q.enter().append(&quot;text&quot;).classed(v.cn.axisTitle,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).style(&quot;cursor&quot;,&quot;ew-resize&quot;).style(&quot;pointer-events&quot;,&quot;auto&quot;),q.text((function(t){return t.label})).each((function(e){var r=n.select(this);u.font(r,e.model.labelFont),c.convertToTspans(r,t)})).attr(&quot;transform&quot;,(function(t){var e=I(t.model.labelAngle,t.model.labelSide),r=v.axisTitleOffset;return(e.dir&gt;0?&quot;&quot;:l(0,2*r+t.model.height))+s(e.degrees)+l(-r*e.dx,-r*e.dy)})).attr(&quot;text-anchor&quot;,(function(t){var e=I(t.model.labelAngle,t.model.labelSide);return 2*Math.abs(e.dx)&gt;Math.abs(e.dy)?e.dir*e.dx&lt;0?&quot;start&quot;:&quot;end&quot;:&quot;middle&quot;}));var H=j.selectAll(&quot;.&quot;+v.cn.axisExtent).data(d,p);H.enter().append(&quot;g&quot;).classed(v.cn.axisExtent,!0);var G=H.selectAll(&quot;.&quot;+v.cn.axisExtentTop).data(d,p);G.enter().append(&quot;g&quot;).classed(v.cn.axisExtentTop,!0),G.attr(&quot;transform&quot;,l(0,-v.axisExtentOffset));var Y=G.selectAll(&quot;.&quot;+v.cn.axisExtentTopText).data(d,p);Y.enter().append(&quot;text&quot;).classed(v.cn.axisExtentTopText,!0).call(L),Y.text((function(t){return O(t,!0)})).each((function(t){u.font(n.select(this),t.model.rangeFont)}));var W=H.selectAll(&quot;.&quot;+v.cn.axisExtentBottom).data(d,p);W.enter().append(&quot;g&quot;).classed(v.cn.axisExtentBottom,!0),W.attr(&quot;transform&quot;,(function(t){return l(0,t.model.height+v.axisExtentOffset)}));var X=W.selectAll(&quot;.&quot;+v.cn.axisExtentBottomText).data(d,p);X.enter().append(&quot;text&quot;).classed(v.cn.axisExtentBottomText,!0).attr(&quot;dy&quot;,&quot;0.75em&quot;).call(L),X.text((function(t){return O(t,!1)})).each((function(t){u.font(n.select(this),t.model.rangeFont)})),y.ensureAxisBrush(j)}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/cartesian/axes&quot;:828,&quot;./axisbrush&quot;:1150,&quot;./constants&quot;:1153,&quot;./helpers&quot;:1155,&quot;./lines&quot;:1157,&quot;color-rgba&quot;:127,d3:169}],1160:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./parcoords&quot;),i=t(&quot;../../lib/prepare_regl&quot;),a=t(&quot;./helpers&quot;).isVisible;function o(t,e,r){var n=e.indexOf(r),i=t.indexOf(n);return-1===i&amp;&amp;(i+=e.length),i}e.exports=function(t,e){var r=t._fullLayout;if(i(t)){var s={},l={},c={},u={},f=r._size;e.forEach((function(e,r){var n=e[0].trace;c[r]=n.index;var i=u[r]=n._fullInput.index;s[r]=t.data[i].dimensions,l[r]=t.data[i].dimensions.slice()}));n(t,e,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{filterChanged:function(e,n,i){var a=l[e][n],o=i.map((function(t){return t.slice()})),s=&quot;dimensions[&quot;+n+&quot;].constraintrange&quot;,f=r._tracePreGUI[t._fullData[c[e]]._fullInput.uid];if(void 0===f[s]){var h=a.constraintrange;f[s]=h||null}var p=t._fullData[c[e]].dimensions[n];o.length?(1===o.length&amp;&amp;(o=o[0]),a.constraintrange=o,p.constraintrange=o.slice(),o=[o]):(delete a.constraintrange,delete p.constraintrange,o=null);var d={};d[s]=o,t.emit(&quot;plotly_restyle&quot;,[d,[u[e]]])},hover:function(e){t.emit(&quot;plotly_hover&quot;,e)},unhover:function(e){t.emit(&quot;plotly_unhover&quot;,e)},axesMoved:function(e,r){var n=function(t,e){return function(r,n){return o(t,e,r)-o(t,e,n)}}(r,l[e].filter(a));s[e].sort(n),l[e].filter((function(t){return!a(t)})).sort((function(t){return l[e].indexOf(t)})).forEach((function(t){s[e].splice(s[e].indexOf(t),1),s[e].splice(l[e].indexOf(t),0,t)})),t.emit(&quot;plotly_restyle&quot;,[{dimensions:[s[e]]},[u[e]]])}})}}},{&quot;../../lib/prepare_regl&quot;:791,&quot;./helpers&quot;:1155,&quot;./parcoords&quot;:1159}],1161:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/domain&quot;).attributes,a=t(&quot;../../plots/font_attributes&quot;),o=t(&quot;../../components/color/attributes&quot;),s=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,l=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,c=t(&quot;../../lib/extend&quot;).extendFlat,u=a({editType:&quot;plot&quot;,arrayOk:!0,colorEditType:&quot;plot&quot;});e.exports={labels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},label0:{valType:&quot;number&quot;,dflt:0,editType:&quot;calc&quot;},dlabel:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},marker:{colors:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:o.defaultLine,arrayOk:!0,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:0,arrayOk:!0,editType:&quot;style&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},text:{valType:&quot;data_array&quot;,editType:&quot;plot&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},scalegroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;],extras:[&quot;none&quot;],editType:&quot;calc&quot;},hoverinfo:c({},n.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;name&quot;]}),hovertemplate:s({},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;text&quot;]}),texttemplate:l({editType:&quot;plot&quot;},{keys:[&quot;label&quot;,&quot;color&quot;,&quot;value&quot;,&quot;percent&quot;,&quot;text&quot;]}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;inside&quot;,&quot;outside&quot;,&quot;auto&quot;,&quot;none&quot;],dflt:&quot;auto&quot;,arrayOk:!0,editType:&quot;plot&quot;},textfont:c({},u,{}),insidetextorientation:{valType:&quot;enumerated&quot;,values:[&quot;horizontal&quot;,&quot;radial&quot;,&quot;tangential&quot;,&quot;auto&quot;],dflt:&quot;auto&quot;,editType:&quot;plot&quot;},insidetextfont:c({},u,{}),outsidetextfont:c({},u,{}),automargin:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},title:{text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;plot&quot;},font:c({},u,{}),position:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle center&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],editType:&quot;plot&quot;},editType:&quot;plot&quot;},domain:i({name:&quot;pie&quot;,trace:!0,editType:&quot;calc&quot;}),hole:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;},sort:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},direction:{valType:&quot;enumerated&quot;,values:[&quot;clockwise&quot;,&quot;counterclockwise&quot;],dflt:&quot;counterclockwise&quot;,editType:&quot;calc&quot;},rotation:{valType:&quot;number&quot;,min:-360,max:360,dflt:0,editType:&quot;calc&quot;},pull:{valType:&quot;number&quot;,min:0,max:1,dflt:0,arrayOk:!0,editType:&quot;calc&quot;},_deprecated:{title:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},titlefont:c({},u,{}),titleposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle center&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],editType:&quot;calc&quot;}}}},{&quot;../../components/color/attributes&quot;:642,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906}],1162:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;pie&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1163:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;tinycolor2&quot;),a=t(&quot;../../components/color&quot;),o={};function s(t){return function(e,r){return!!e&amp;&amp;(!!(e=i(e)).isValid()&amp;&amp;(e=a.addOpacity(e,e.getAlpha()),t[r]||(t[r]=e),e))}}function l(t,e){var r,n=JSON.stringify(t),a=e[n];if(!a){for(a=t.slice(),r=0;r&lt;t.length;r++)a.push(i(t[r]).lighten(20).toHexString());for(r=0;r&lt;t.length;r++)a.push(i(t[r]).darken(20).toHexString());e[n]=a}return a}e.exports={calc:function(t,e){var r,i,a=[],o=t._fullLayout,l=o.hiddenlabels||[],c=e.labels,u=e.marker.colors||[],f=e.values,h=e._length,p=e._hasValues&amp;&amp;h;if(e.dlabel)for(c=new Array(h),r=0;r&lt;h;r++)c[r]=String(e.label0+r*e.dlabel);var d={},g=s(o[&quot;_&quot;+e.type+&quot;colormap&quot;]),m=0,v=!1;for(r=0;r&lt;h;r++){var y,x,b;if(p){if(y=f[r],!n(y))continue;if((y=+y)&lt;0)continue}else y=1;void 0!==(x=c[r])&amp;&amp;&quot;&quot;!==x||(x=r);var _=d[x=String(x)];void 0===_?(d[x]=a.length,(b=-1!==l.indexOf(x))||(m+=y),a.push({v:y,label:x,color:g(u[r],x),i:r,pts:[r],hidden:b})):(v=!0,(i=a[_]).v+=y,i.pts.push(r),i.hidden||(m+=y),!1===i.color&amp;&amp;u[r]&amp;&amp;(i.color=g(u[r],x)))}return(&quot;funnelarea&quot;===e.type?v:e.sort)&amp;&amp;a.sort((function(t,e){return e.v-t.v})),a[0]&amp;&amp;(a[0].vTotal=m),a},crossTraceCalc:function(t,e){var r=(e||{}).type;r||(r=&quot;pie&quot;);var n=t._fullLayout,i=t.calcdata,a=n[r+&quot;colorway&quot;],s=n[&quot;_&quot;+r+&quot;colormap&quot;];n[&quot;extend&quot;+r+&quot;colors&quot;]&amp;&amp;(a=l(a,o));for(var c=0,u=0;u&lt;i.length;u++){var f=i[u];if(f[0].trace.type===r)for(var h=0;h&lt;f.length;h++){var p=f[h];!1===p.color&amp;&amp;(s[p.label]?p.color=s[p.label]:(s[p.label]=p.color=a[c%a.length],c++))}}},makePullColorFn:s,generateExtendedColors:l}},{&quot;../../components/color&quot;:643,&quot;fast-isnumeric&quot;:241,tinycolor2:576}],1164:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText;function l(t,e){var r=Array.isArray(t),a=i.isArrayOrTypedArray(e),o=Math.min(r?t.length:1/0,a?e.length:1/0);if(isFinite(o)||(o=0),o&amp;&amp;a){for(var s,l=0;l&lt;o;l++){var c=e[l];if(n(c)&amp;&amp;c&gt;0){s=!0;break}}s||(o=0)}return{hasLabels:r,hasValues:a,len:o}}e.exports={handleLabelsAndValues:l,supplyDefaults:function(t,e,r,n){function c(r,n){return i.coerce(t,e,a,r,n)}var u=l(c(&quot;labels&quot;),c(&quot;values&quot;)),f=u.len;if(e._hasLabels=u.hasLabels,e._hasValues=u.hasValues,!e._hasLabels&amp;&amp;e._hasValues&amp;&amp;(c(&quot;label0&quot;),c(&quot;dlabel&quot;)),f){e._length=f,c(&quot;marker.line.width&quot;)&amp;&amp;c(&quot;marker.line.color&quot;),c(&quot;marker.colors&quot;),c(&quot;scalegroup&quot;);var h,p=c(&quot;text&quot;),d=c(&quot;texttemplate&quot;);if(d||(h=c(&quot;textinfo&quot;,Array.isArray(p)?&quot;text+percent&quot;:&quot;percent&quot;)),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;),d||h&amp;&amp;&quot;none&quot;!==h){var g=c(&quot;textposition&quot;);s(t,e,n,c,g,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),(Array.isArray(g)||&quot;auto&quot;===g||&quot;outside&quot;===g)&amp;&amp;c(&quot;automargin&quot;),(&quot;inside&quot;===g||&quot;auto&quot;===g||Array.isArray(g))&amp;&amp;c(&quot;insidetextorientation&quot;)}o(e,n,c);var m=c(&quot;hole&quot;);if(c(&quot;title.text&quot;)){var v=c(&quot;title.position&quot;,m?&quot;middle center&quot;:&quot;top center&quot;);m||&quot;middle center&quot;!==v||(e.title.position=&quot;top center&quot;),i.coerceFont(c,&quot;title.font&quot;,n.font)}c(&quot;sort&quot;),c(&quot;direction&quot;),c(&quot;rotation&quot;),c(&quot;pull&quot;)}else e.visible=!1}}},{&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/defaults&quot;:925,&quot;./attributes&quot;:1161,&quot;fast-isnumeric&quot;:241}],1165:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx/helpers&quot;).appendArrayMultiPointValues;e.exports=function(t,e){var r={curveNumber:e.index,pointNumbers:t.pts,data:e._input,fullData:e,label:t.label,color:t.color,value:t.v,percent:t.percent,text:t.text,v:t.v};return 1===t.pts.length&amp;&amp;(r.pointNumber=r.i=t.pts[0]),n(r,e,t.pts),&quot;funnelarea&quot;===e.type&amp;&amp;(delete r.v,delete r.i),r}},{&quot;../../components/fx/helpers&quot;:679}],1166:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);function i(t){return-1!==t.indexOf(&quot;e&quot;)?t.replace(/[.]?0+e/,&quot;e&quot;):-1!==t.indexOf(&quot;.&quot;)?t.replace(/[.]?0+$/,&quot;&quot;):t}r.formatPiePercent=function(t,e){var r=i((100*t).toPrecision(3));return n.numSeparate(r,e)+&quot;%&quot;},r.formatPieValue=function(t,e){var r=i(t.toPrecision(10));return n.numSeparate(r,e)},r.getFirstFilled=function(t,e){if(Array.isArray(t))for(var r=0;r&lt;e.length;r++){var n=t[e[r]];if(n||0===n||&quot;&quot;===n)return n}},r.castOption=function(t,e){return Array.isArray(t)?r.getFirstFilled(t,e):t||void 0},r.getRotationAngle=function(t){return(&quot;auto&quot;===t?0:t)*Math.PI/180}},{&quot;../../lib&quot;:778}],1167:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),styleOne:t(&quot;./style_one&quot;),moduleType:&quot;trace&quot;,name:&quot;pie&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;pie-like&quot;,&quot;pie&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;./attributes&quot;:1161,&quot;./base_plot&quot;:1162,&quot;./calc&quot;:1163,&quot;./defaults&quot;:1164,&quot;./layout_attributes&quot;:1168,&quot;./layout_defaults&quot;:1169,&quot;./plot&quot;:1170,&quot;./style&quot;:1171,&quot;./style_one&quot;:1172}],1168:[function(t,e,r){&quot;use strict&quot;;e.exports={hiddenlabels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},piecolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendpiecolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1169:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;hiddenlabels&quot;),r(&quot;piecolorway&quot;,e.colorway),r(&quot;extendpiecolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1168}],1170:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../plots/plots&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;../../lib&quot;),c=l.strScale,u=l.strTranslate,f=t(&quot;../../lib/svg_text_utils&quot;),h=t(&quot;../bar/uniform_text&quot;),p=h.recordMinTextSize,d=h.clearMinTextSize,g=t(&quot;../bar/constants&quot;).TEXTPAD,m=t(&quot;./helpers&quot;),v=t(&quot;./event_data&quot;),y=t(&quot;../../lib&quot;).isValidTextValue;function x(t,e,r){var i=r[0],o=i.trace,s=i.cx,c=i.cy;&quot;_hasHoverLabel&quot;in o||(o._hasHoverLabel=!1),&quot;_hasHoverEvent&quot;in o||(o._hasHoverEvent=!1),t.on(&quot;mouseover&quot;,(function(t){var r=e._fullLayout,u=e._fullData[o.index];if(!e._dragging&amp;&amp;!1!==r.hovermode){var f=u.hoverinfo;if(Array.isArray(f)&amp;&amp;(f=a.castHoverinfo({hoverinfo:[m.castOption(f,t.pts)],_module:o._module},r,0)),&quot;all&quot;===f&amp;&amp;(f=&quot;label+text+value+percent+name&quot;),u.hovertemplate||&quot;none&quot;!==f&amp;&amp;&quot;skip&quot;!==f&amp;&amp;f){var h=t.rInscribed||0,p=s+t.pxmid[0]*(1-h),d=c+t.pxmid[1]*(1-h),g=r.separators,y=[];if(f&amp;&amp;-1!==f.indexOf(&quot;label&quot;)&amp;&amp;y.push(t.label),t.text=m.castOption(u.hovertext||u.text,t.pts),f&amp;&amp;-1!==f.indexOf(&quot;text&quot;)){var x=t.text;l.isValidTextValue(x)&amp;&amp;y.push(x)}t.value=t.v,t.valueLabel=m.formatPieValue(t.v,g),f&amp;&amp;-1!==f.indexOf(&quot;value&quot;)&amp;&amp;y.push(t.valueLabel),t.percent=t.v/i.vTotal,t.percentLabel=m.formatPiePercent(t.percent,g),f&amp;&amp;-1!==f.indexOf(&quot;percent&quot;)&amp;&amp;y.push(t.percentLabel);var b=u.hoverlabel,_=b.font;a.loneHover({trace:o,x0:p-h*i.r,x1:p+h*i.r,y:d,text:y.join(&quot;&lt;br&gt;&quot;),name:u.hovertemplate||-1!==f.indexOf(&quot;name&quot;)?u.name:void 0,idealAlign:t.pxmid[0]&lt;0?&quot;left&quot;:&quot;right&quot;,color:m.castOption(b.bgcolor,t.pts)||t.color,borderColor:m.castOption(b.bordercolor,t.pts),fontFamily:m.castOption(_.family,t.pts),fontSize:m.castOption(_.size,t.pts),fontColor:m.castOption(_.color,t.pts),nameLength:m.castOption(b.namelength,t.pts),textAlign:m.castOption(b.align,t.pts),hovertemplate:m.castOption(u.hovertemplate,t.pts),hovertemplateLabels:t,eventData:[v(t,u)]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:e}),o._hasHoverLabel=!0}o._hasHoverEvent=!0,e.emit(&quot;plotly_hover&quot;,{points:[v(t,u)],event:n.event})}})),t.on(&quot;mouseout&quot;,(function(t){var r=e._fullLayout,i=e._fullData[o.index],s=n.select(this).datum();o._hasHoverEvent&amp;&amp;(t.originalEvent=n.event,e.emit(&quot;plotly_unhover&quot;,{points:[v(s,i)],event:n.event}),o._hasHoverEvent=!1),o._hasHoverLabel&amp;&amp;(a.loneUnhover(r._hoverlayer.node()),o._hasHoverLabel=!1)})),t.on(&quot;click&quot;,(function(t){var r=e._fullLayout,i=e._fullData[o.index];e._dragging||!1===r.hovermode||(e._hoverdata=[v(t,i)],a.click(e,n.event))}))}function b(t,e,r){var n=m.castOption(t.insidetextfont.color,e.pts);!n&amp;&amp;t._input.textfont&amp;&amp;(n=m.castOption(t._input.textfont.color,e.pts));var i=m.castOption(t.insidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,a=m.castOption(t.insidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size;return{color:n||o.contrast(e.color),family:i,size:a}}function _(t,e){for(var r,n,i=0;i&lt;t.length;i++)if((n=(r=t[i][0]).trace).title.text){var a=n.title.text;n._meta&amp;&amp;(a=l.templateString(a,n._meta));var o=s.tester.append(&quot;text&quot;).attr(&quot;data-notex&quot;,1).text(a).call(s.font,n.title.font).call(f.convertToTspans,e),c=s.bBox(o.node(),!0);r.titleBox={width:c.width,height:c.height},o.remove()}}function w(t,e,r){var n=r.r||e.rpx1,i=e.rInscribed;if(e.startangle===e.stopangle)return{rCenter:1-i,scale:0,rotate:0,textPosAngle:0};var a,o=e.ring,s=1===o&amp;&amp;Math.abs(e.startangle-e.stopangle)===2*Math.PI,l=e.halfangle,c=e.midangle,u=r.trace.insidetextorientation,f=&quot;horizontal&quot;===u,h=&quot;tangential&quot;===u,p=&quot;radial&quot;===u,d=&quot;auto&quot;===u,g=[];if(!d){var m,v=function(r,i){if(function(t,e){var r=t.startangle,n=t.stopangle;return r&gt;e&amp;&amp;e&gt;n||r&lt;e&amp;&amp;e&lt;n}(e,r)){var s=Math.abs(r-e.startangle),l=Math.abs(r-e.stopangle),c=s&lt;l?s:l;(a=&quot;tan&quot;===i?k(t,n,o,c,0):T(t,n,o,c,Math.PI/2)).textPosAngle=r,g.push(a)}};if(f||h){for(m=4;m&gt;=-4;m-=2)v(Math.PI*m,&quot;tan&quot;);for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+1),&quot;tan&quot;)}if(f||p){for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+1.5),&quot;rad&quot;);for(m=4;m&gt;=-4;m-=2)v(Math.PI*(m+.5),&quot;rad&quot;)}}if(s||d||f){var y=Math.sqrt(t.width*t.width+t.height*t.height);if((a={scale:i*n*2/y,rCenter:1-i,rotate:0}).textPosAngle=(e.startangle+e.stopangle)/2,a.scale&gt;=1)return a;g.push(a)}(d||p)&amp;&amp;((a=T(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,g.push(a)),(d||h)&amp;&amp;((a=k(t,n,o,l,c)).textPosAngle=(e.startangle+e.stopangle)/2,g.push(a));for(var x=0,b=0,_=0;_&lt;g.length;_++){var w=g[_].scale;if(b&lt;w&amp;&amp;(b=w,x=_),!d&amp;&amp;b&gt;=1)break}return g[x]}function T(t,e,r,n,i){e=Math.max(0,e-2*g);var a=t.width/t.height,o=S(a,n,e,r);return{scale:2*o/t.height,rCenter:M(a,o/e),rotate:A(i)}}function k(t,e,r,n,i){e=Math.max(0,e-2*g);var a=t.height/t.width,o=S(a,n,e,r);return{scale:2*o/t.width,rCenter:M(a,o/e),rotate:A(i+Math.PI/2)}}function M(t,e){return Math.cos(e)-t*e}function A(t){return(180/Math.PI*t+720)%180-90}function S(t,e,r,n){var i=t+1/(2*Math.tan(e));return r*Math.min(1/(Math.sqrt(i*i+.5)+i),n/(Math.sqrt(t*t+n/2)+t))}function E(t,e){return t.v!==e.vTotal||e.trace.hole?Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2):1}function C(t,e){var r=e.pxmid[0],n=e.pxmid[1],i=t.width/2,a=t.height/2;return r&lt;0&amp;&amp;(i*=-1),n&lt;0&amp;&amp;(a*=-1),{scale:1,rCenter:1,rotate:0,x:i+Math.abs(a)*(i&gt;0?1:-1)/2,y:a/(1+r*r/(n*n)),outside:!0}}function L(t,e){var r,n,i,a=t.trace,o={x:t.cx,y:t.cy},s={tx:0,ty:0};s.ty+=a.title.font.size,i=P(a),-1!==a.title.position.indexOf(&quot;top&quot;)?(o.y-=(1+i)*t.r,s.ty-=t.titleBox.height):-1!==a.title.position.indexOf(&quot;bottom&quot;)&amp;&amp;(o.y+=(1+i)*t.r);var l,c,u=(l=t.r,c=t.trace.aspectratio,l/(void 0===c?1:c)),f=e.w*(a.domain.x[1]-a.domain.x[0])/2;return-1!==a.title.position.indexOf(&quot;left&quot;)?(f+=u,o.x-=(1+i)*u,s.tx+=t.titleBox.width/2):-1!==a.title.position.indexOf(&quot;center&quot;)?f*=2:-1!==a.title.position.indexOf(&quot;right&quot;)&amp;&amp;(f+=u,o.x+=(1+i)*u,s.tx-=t.titleBox.width/2),r=f/t.titleBox.width,n=I(t,e)/t.titleBox.height,{x:o.x,y:o.y,scale:Math.min(r,n),tx:s.tx,ty:s.ty}}function I(t,e){var r=t.trace,n=e.h*(r.domain.y[1]-r.domain.y[0]);return Math.min(t.titleBox.height,n/2)}function P(t){var e,r=t.pull;if(!r)return 0;if(Array.isArray(r))for(r=0,e=0;e&lt;t.pull.length;e++)t.pull[e]&gt;r&amp;&amp;(r=t.pull[e]);return r}function z(t,e){for(var r=[],n=0;n&lt;t.length;n++){var i=t[n][0],a=i.trace,o=a.domain,s=e.w*(o.x[1]-o.x[0]),l=e.h*(o.y[1]-o.y[0]);a.title.text&amp;&amp;&quot;middle center&quot;!==a.title.position&amp;&amp;(l-=I(i,e));var c=s/2,u=l/2;&quot;funnelarea&quot;!==a.type||a.scalegroup||(u/=a.aspectratio),i.r=Math.min(c,u)/(1+P(a)),i.cx=e.l+e.w*(a.domain.x[1]+a.domain.x[0])/2,i.cy=e.t+e.h*(1-a.domain.y[0])-l/2,a.title.text&amp;&amp;-1!==a.title.position.indexOf(&quot;bottom&quot;)&amp;&amp;(i.cy-=I(i,e)),a.scalegroup&amp;&amp;-1===r.indexOf(a.scalegroup)&amp;&amp;r.push(a.scalegroup)}!function(t,e){for(var r,n,i,a=0;a&lt;e.length;a++){var o=1/0,s=e[a];for(n=0;n&lt;t.length;n++)if(r=t[n][0],(i=r.trace).scalegroup===s){var l;if(&quot;pie&quot;===i.type)l=r.r*r.r;else if(&quot;funnelarea&quot;===i.type){var c,u;i.aspectratio&gt;1?(c=r.r,u=c/i.aspectratio):(u=r.r,c=u*i.aspectratio),c*=(1+i.baseratio)/2,l=c*u}o=Math.min(o,l/r.vTotal)}for(n=0;n&lt;t.length;n++)if(r=t[n][0],(i=r.trace).scalegroup===s){var f=o*r.vTotal;&quot;funnelarea&quot;===i.type&amp;&amp;(f/=(1+i.baseratio)/2,f/=i.aspectratio),r.r=Math.sqrt(f)}}}(t,r)}function O(t,e){return[t*Math.sin(e),-t*Math.cos(e)]}function D(t,e,r){var n=t._fullLayout,i=r.trace,a=i.texttemplate,o=i.textinfo;if(!a&amp;&amp;o&amp;&amp;&quot;none&quot;!==o){var s,c=o.split(&quot;+&quot;),u=function(t){return-1!==c.indexOf(t)},f=u(&quot;label&quot;),h=u(&quot;text&quot;),p=u(&quot;value&quot;),d=u(&quot;percent&quot;),g=n.separators;if(s=f?[e.label]:[],h){var v=m.getFirstFilled(i.text,e.pts);y(v)&amp;&amp;s.push(v)}p&amp;&amp;s.push(m.formatPieValue(e.v,g)),d&amp;&amp;s.push(m.formatPiePercent(e.v/r.vTotal,g)),e.text=s.join(&quot;&lt;br&gt;&quot;)}if(a){var x=l.castOption(i,e.i,&quot;texttemplate&quot;);if(x){var b=function(t){return{label:t.label,value:t.v,valueLabel:m.formatPieValue(t.v,n.separators),percent:t.v/r.vTotal,percentLabel:m.formatPiePercent(t.v/r.vTotal,n.separators),color:t.color,text:t.text,customdata:l.castOption(i,t.i,&quot;customdata&quot;)}}(e),_=m.getFirstFilled(i.text,e.pts);(y(_)||&quot;&quot;===_)&amp;&amp;(b.text=_),e.text=l.texttemplateString(x,b,t._fullLayout._d3locale,b,i._meta||{})}else e.text=&quot;&quot;}}function R(t,e){var r=t.rotate*Math.PI/180,n=Math.cos(r),i=Math.sin(r),a=(e.left+e.right)/2,o=(e.top+e.bottom)/2;t.textX=a*n-o*i,t.textY=a*i+o*n,t.noCenter=!0}e.exports={plot:function(t,e){var r=t._fullLayout,a=r._size;d(&quot;pie&quot;,r),_(e,t),z(e,a);var h=l.makeTraceGroups(r._pielayer,e,&quot;trace&quot;).each((function(e){var h=n.select(this),d=e[0],g=d.trace;!function(t){var e,r,n,i=t[0],a=i.r,o=i.trace,s=m.getRotationAngle(o.rotation),l=2*Math.PI/i.vTotal,c=&quot;px0&quot;,u=&quot;px1&quot;;if(&quot;counterclockwise&quot;===o.direction){for(e=0;e&lt;t.length&amp;&amp;t[e].hidden;e++);if(e===t.length)return;s+=l*t[e].v,l*=-1,c=&quot;px1&quot;,u=&quot;px0&quot;}for(n=O(a,s),e=0;e&lt;t.length;e++)(r=t[e]).hidden||(r[c]=n,r.startangle=s,s+=l*r.v/2,r.pxmid=O(a,s),r.midangle=s,s+=l*r.v/2,n=O(a,s),r.stopangle=s,r[u]=n,r.largeArc=r.v&gt;i.vTotal/2?1:0,r.halfangle=Math.PI*Math.min(r.v/i.vTotal,.5),r.ring=1-o.hole,r.rInscribed=E(r,i))}(e),h.attr(&quot;stroke-linejoin&quot;,&quot;round&quot;),h.each((function(){var v=n.select(this).selectAll(&quot;g.slice&quot;).data(e);v.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),v.exit().remove();var y=[[[],[]],[[],[]]],_=!1;v.each((function(i,a){if(i.hidden)n.select(this).selectAll(&quot;path,g&quot;).remove();else{i.pointNumber=i.i,i.curveNumber=g.index,y[i.pxmid[1]&lt;0?0:1][i.pxmid[0]&lt;0?0:1].push(i);var o=d.cx,c=d.cy,u=n.select(this),h=u.selectAll(&quot;path.surface&quot;).data([i]);if(h.enter().append(&quot;path&quot;).classed(&quot;surface&quot;,!0).style({&quot;pointer-events&quot;:&quot;all&quot;}),u.call(x,t,e),g.pull){var v=+m.castOption(g.pull,i.pts)||0;v&gt;0&amp;&amp;(o+=v*i.pxmid[0],c+=v*i.pxmid[1])}i.cxFinal=o,i.cyFinal=c;var T=g.hole;if(i.v===d.vTotal){var k=&quot;M&quot;+(o+i.px0[0])+&quot;,&quot;+(c+i.px0[1])+L(i.px0,i.pxmid,!0,1)+L(i.pxmid,i.px0,!0,1)+&quot;Z&quot;;T?h.attr(&quot;d&quot;,&quot;M&quot;+(o+T*i.px0[0])+&quot;,&quot;+(c+T*i.px0[1])+L(i.px0,i.pxmid,!1,T)+L(i.pxmid,i.px0,!1,T)+&quot;Z&quot;+k):h.attr(&quot;d&quot;,k)}else{var M=L(i.px0,i.px1,!0,1);if(T){var A=1-T;h.attr(&quot;d&quot;,&quot;M&quot;+(o+T*i.px1[0])+&quot;,&quot;+(c+T*i.px1[1])+L(i.px1,i.px0,!1,T)+&quot;l&quot;+A*i.px0[0]+&quot;,&quot;+A*i.px0[1]+M+&quot;Z&quot;)}else h.attr(&quot;d&quot;,&quot;M&quot;+o+&quot;,&quot;+c+&quot;l&quot;+i.px0[0]+&quot;,&quot;+i.px0[1]+M+&quot;Z&quot;)}D(t,i,d);var S=m.castOption(g.textposition,i.pts),E=u.selectAll(&quot;g.slicetext&quot;).data(i.text&amp;&amp;&quot;none&quot;!==S?[0]:[]);E.enter().append(&quot;g&quot;).classed(&quot;slicetext&quot;,!0),E.exit().remove(),E.each((function(){var u=l.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),h=l.ensureUniformFontSize(t,&quot;outside&quot;===S?function(t,e,r){var n=m.castOption(t.outsidetextfont.color,e.pts)||m.castOption(t.textfont.color,e.pts)||r.color,i=m.castOption(t.outsidetextfont.family,e.pts)||m.castOption(t.textfont.family,e.pts)||r.family,a=m.castOption(t.outsidetextfont.size,e.pts)||m.castOption(t.textfont.size,e.pts)||r.size;return{color:n,family:i,size:a}}(g,i,r.font):b(g,i,r.font));u.text(i.text).attr({class:&quot;slicetext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(s.font,h).call(f.convertToTspans,t);var v,y=s.bBox(u.node());if(&quot;outside&quot;===S)v=C(y,i);else if(v=w(y,i,d),&quot;auto&quot;===S&amp;&amp;v.scale&lt;1){var x=l.ensureUniformFontSize(t,g.outsidetextfont);u.call(s.font,x),v=C(y=s.bBox(u.node()),i)}var T=v.textPosAngle,k=void 0===T?i.pxmid:O(d.r,T);if(v.targetX=o+k[0]*v.rCenter+(v.x||0),v.targetY=c+k[1]*v.rCenter+(v.y||0),R(v,y),v.outside){var M=v.targetY;i.yLabelMin=M-y.height/2,i.yLabelMid=M,i.yLabelMax=M+y.height/2,i.labelExtraX=0,i.labelExtraY=0,_=!0}v.fontSize=h.size,p(g.type,v,r),e[a].transform=v,u.attr(&quot;transform&quot;,l.getTextTransform(v))}))}function L(t,e,r,n){var a=n*(e[0]-t[0]),o=n*(e[1]-t[1]);return&quot;a&quot;+n*d.r+&quot;,&quot;+n*d.r+&quot; 0 &quot;+i.largeArc+(r?&quot; 1 &quot;:&quot; 0 &quot;)+a+&quot;,&quot;+o}}));var T=n.select(this).selectAll(&quot;g.titletext&quot;).data(g.title.text?[0]:[]);if(T.enter().append(&quot;g&quot;).classed(&quot;titletext&quot;,!0),T.exit().remove(),T.each((function(){var e,r=l.ensureSingle(n.select(this),&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),i=g.title.text;g._meta&amp;&amp;(i=l.templateString(i,g._meta)),r.text(i).attr({class:&quot;titletext&quot;,transform:&quot;&quot;,&quot;text-anchor&quot;:&quot;middle&quot;}).call(s.font,g.title.font).call(f.convertToTspans,t),e=&quot;middle center&quot;===g.title.position?function(t){var e=Math.sqrt(t.titleBox.width*t.titleBox.width+t.titleBox.height*t.titleBox.height);return{x:t.cx,y:t.cy,scale:t.trace.hole*t.r*2/e,tx:0,ty:-t.titleBox.height/2+t.trace.title.font.size}}(d):L(d,a),r.attr(&quot;transform&quot;,u(e.x,e.y)+c(Math.min(1,e.scale))+u(e.tx,e.ty))})),_&amp;&amp;function(t,e){var r,n,i,a,o,s,l,c,u,f,h,p,d;function g(t,e){return t.pxmid[1]-e.pxmid[1]}function v(t,e){return e.pxmid[1]-t.pxmid[1]}function y(t,r){r||(r={});var i,c,u,h,p=r.labelExtraY+(n?r.yLabelMax:r.yLabelMin),d=n?t.yLabelMin:t.yLabelMax,g=n?t.yLabelMax:t.yLabelMin,v=t.cyFinal+o(t.px0[1],t.px1[1]),y=p-d;if(y*l&gt;0&amp;&amp;(t.labelExtraY=y),Array.isArray(e.pull))for(c=0;c&lt;f.length;c++)(u=f[c])===t||(m.castOption(e.pull,t.pts)||0)&gt;=(m.castOption(e.pull,u.pts)||0)||((t.pxmid[1]-u.pxmid[1])*l&gt;0?(y=u.cyFinal+o(u.px0[1],u.px1[1])-d-t.labelExtraY)*l&gt;0&amp;&amp;(t.labelExtraY+=y):(g+t.labelExtraY-v)*l&gt;0&amp;&amp;(i=3*s*Math.abs(c-f.indexOf(t)),(h=u.cxFinal+a(u.px0[0],u.px1[0])+i-(t.cxFinal+t.pxmid[0])-t.labelExtraX)*s&gt;0&amp;&amp;(t.labelExtraX+=h)))}for(n=0;n&lt;2;n++)for(i=n?g:v,o=n?Math.max:Math.min,l=n?1:-1,r=0;r&lt;2;r++){for(a=r?Math.max:Math.min,s=r?1:-1,(c=t[n][r]).sort(i),u=t[1-n][r],f=u.concat(c),p=[],h=0;h&lt;c.length;h++)void 0!==c[h].yLabelMid&amp;&amp;p.push(c[h]);for(d=!1,h=0;n&amp;&amp;h&lt;u.length;h++)if(void 0!==u[h].yLabelMid){d=u[h];break}for(h=0;h&lt;p.length;h++){var x=h&amp;&amp;p[h-1];d&amp;&amp;!h&amp;&amp;(x=d),y(p[h],x)}}}(y,g),function(t,e){t.each((function(t){var r=n.select(this);if(t.labelExtraX||t.labelExtraY){var i=r.select(&quot;g.slicetext text&quot;);t.transform.targetX+=t.labelExtraX,t.transform.targetY+=t.labelExtraY,i.attr(&quot;transform&quot;,l.getTextTransform(t.transform));var a=t.cxFinal+t.pxmid[0],s=&quot;M&quot;+a+&quot;,&quot;+(t.cyFinal+t.pxmid[1]),c=(t.yLabelMax-t.yLabelMin)*(t.pxmid[0]&lt;0?-1:1)/4;if(t.labelExtraX){var u=t.labelExtraX*t.pxmid[1]/t.pxmid[0],f=t.yLabelMid+t.labelExtraY-(t.cyFinal+t.pxmid[1]);Math.abs(u)&gt;Math.abs(f)?s+=&quot;l&quot;+f*t.pxmid[0]/t.pxmid[1]+&quot;,&quot;+f+&quot;H&quot;+(a+t.labelExtraX+c):s+=&quot;l&quot;+t.labelExtraX+&quot;,&quot;+u+&quot;v&quot;+(f-u)+&quot;h&quot;+c}else s+=&quot;V&quot;+(t.yLabelMid+t.labelExtraY)+&quot;h&quot;+c;l.ensureSingle(r,&quot;path&quot;,&quot;textline&quot;).call(o.stroke,e.outsidetextfont.color).attr({&quot;stroke-width&quot;:Math.min(2,e.outsidetextfont.size/8),d:s,fill:&quot;none&quot;})}else r.select(&quot;path.textline&quot;).remove()}))}(v,g),_&amp;&amp;g.automargin){var k=s.bBox(h.node()),M=g.domain,A=a.w*(M.x[1]-M.x[0]),S=a.h*(M.y[1]-M.y[0]),E=(.5*A-d.r)/a.w,I=(.5*S-d.r)/a.h;i.autoMargin(t,&quot;pie.&quot;+g.uid+&quot;.automargin&quot;,{xl:M.x[0]-E,xr:M.x[1]+E,yb:M.y[0]-I,yt:M.y[1]+I,l:Math.max(d.cx-d.r-k.left,0),r:Math.max(k.right-(d.cx+d.r),0),b:Math.max(k.bottom-(d.cy+d.r),0),t:Math.max(d.cy-d.r-k.top,0),pad:5})}}))}));setTimeout((function(){h.selectAll(&quot;tspan&quot;).each((function(){var t=n.select(this);t.attr(&quot;dy&quot;)&amp;&amp;t.attr(&quot;dy&quot;,t.attr(&quot;dy&quot;))}))}),0)},formatSliceLabel:D,transformInsideText:w,determineInsideTextFont:b,positionTitleOutside:L,prerenderTitles:_,layoutAreas:z,attachFxHandlers:x,computeTransform:R}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/plots&quot;:891,&quot;../bar/constants&quot;:923,&quot;../bar/uniform_text&quot;:937,&quot;./event_data&quot;:1165,&quot;./helpers&quot;:1166,d3:169}],1171:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;./style_one&quot;),a=t(&quot;../bar/uniform_text&quot;).resizeText;e.exports=function(t){var e=t._fullLayout._pielayer.selectAll(&quot;.trace&quot;);a(t,e,&quot;pie&quot;),e.each((function(t){var e=t[0].trace,r=n.select(this);r.style({opacity:e.opacity}),r.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(i,t,e)}))}))}},{&quot;../bar/uniform_text&quot;:937,&quot;./style_one&quot;:1172,d3:169}],1172:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;./helpers&quot;).castOption;e.exports=function(t,e,r){var a=r.marker.line,o=i(a.color,e.pts)||n.defaultLine,s=i(a.width,e.pts)||0;t.style(&quot;stroke-width&quot;,s).call(n.fill,e.color).call(n.stroke,o)}},{&quot;../../components/color&quot;:643,&quot;./helpers&quot;:1166}],1173:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;);e.exports={x:n.x,y:n.y,xy:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},indices:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},xbounds:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},ybounds:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},text:n.text,marker:{color:{valType:&quot;color&quot;,arrayOk:!1,editType:&quot;calc&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1,arrayOk:!1,editType:&quot;calc&quot;},blend:{valType:&quot;boolean&quot;,dflt:null,editType:&quot;calc&quot;},sizemin:{valType:&quot;number&quot;,min:.1,max:2,dflt:.5,editType:&quot;calc&quot;},sizemax:{valType:&quot;number&quot;,min:.1,dflt:20,editType:&quot;calc&quot;},border:{color:{valType:&quot;color&quot;,arrayOk:!1,editType:&quot;calc&quot;},arearatio:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},transforms:void 0}},{&quot;../scatter/attributes&quot;:1187}],1174:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-pointcloud2d&quot;),i=t(&quot;../../lib/str2rgbarray&quot;),a=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,o=t(&quot;../scatter/get_trace_color&quot;);function s(t,e){this.scene=t,this.uid=e,this.type=&quot;pointcloud&quot;,this.pickXData=[],this.pickYData=[],this.xData=[],this.yData=[],this.textLabels=[],this.color=&quot;rgb(0, 0, 0)&quot;,this.name=&quot;&quot;,this.hoverinfo=&quot;all&quot;,this.idToIndex=new Int32Array(0),this.bounds=[0,0,0,0],this.pointcloudOptions={positions:new Float32Array(0),idToIndex:this.idToIndex,sizemin:.5,sizemax:12,color:[0,0,0,1],areaRatio:1,borderColor:[0,0,0,1]},this.pointcloud=n(t.glplot,this.pointcloudOptions),this.pointcloud._trace=this}var l=s.prototype;l.handlePick=function(t){var e=this.idToIndex[t.pointId];return{trace:this,dataCoord:t.dataCoord,traceCoord:this.pickXYData?[this.pickXYData[2*e],this.pickXYData[2*e+1]]:[this.pickXData[e],this.pickYData[e]],textLabel:Array.isArray(this.textLabels)?this.textLabels[e]:this.textLabels,color:this.color,name:this.name,pointIndex:e,hoverinfo:this.hoverinfo}},l.update=function(t){this.index=t.index,this.textLabels=t.text,this.name=t.name,this.hoverinfo=t.hoverinfo,this.bounds=[1/0,1/0,-1/0,-1/0],this.updateFast(t),this.color=o(t,{})},l.updateFast=function(t){var e,r,n,o,s,l,c=this.xData=this.pickXData=t.x,u=this.yData=this.pickYData=t.y,f=this.pickXYData=t.xy,h=t.xbounds&amp;&amp;t.ybounds,p=t.indices,d=this.bounds;if(f){if(n=f,e=f.length&gt;&gt;&gt;1,h)d[0]=t.xbounds[0],d[2]=t.xbounds[1],d[1]=t.ybounds[0],d[3]=t.ybounds[1];else for(l=0;l&lt;e;l++)o=n[2*l],s=n[2*l+1],o&lt;d[0]&amp;&amp;(d[0]=o),o&gt;d[2]&amp;&amp;(d[2]=o),s&lt;d[1]&amp;&amp;(d[1]=s),s&gt;d[3]&amp;&amp;(d[3]=s);if(p)r=p;else for(r=new Int32Array(e),l=0;l&lt;e;l++)r[l]=l}else for(e=c.length,n=new Float32Array(2*e),r=new Int32Array(e),l=0;l&lt;e;l++)o=c[l],s=u[l],r[l]=l,n[2*l]=o,n[2*l+1]=s,o&lt;d[0]&amp;&amp;(d[0]=o),o&gt;d[2]&amp;&amp;(d[2]=o),s&lt;d[1]&amp;&amp;(d[1]=s),s&gt;d[3]&amp;&amp;(d[3]=s);this.idToIndex=r,this.pointcloudOptions.idToIndex=r,this.pointcloudOptions.positions=n;var g=i(t.marker.color),m=i(t.marker.border.color),v=t.opacity*t.marker.opacity;g[3]*=v,this.pointcloudOptions.color=g;var y=t.marker.blend;if(null===y){y=c.length&lt;100||u.length&lt;100}this.pointcloudOptions.blend=y,m[3]*=v,this.pointcloudOptions.borderColor=m;var x=t.marker.sizemin,b=Math.max(t.marker.sizemax,t.marker.sizemin);this.pointcloudOptions.sizeMin=x,this.pointcloudOptions.sizeMax=b,this.pointcloudOptions.areaRatio=t.marker.border.arearatio,this.pointcloud.update(this.pointcloudOptions);var _=this.scene.xaxis,w=this.scene.yaxis,T=b/2||.5;t._extremes[_._id]=a(_,[d[0],d[2]],{ppad:T}),t._extremes[w._id]=a(w,[d[1],d[3]],{ppad:T})},l.dispose=function(){this.pointcloud.dispose()},e.exports=function(t,e){var r=new s(t,e.uid);return r.update(e),r}},{&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/autorange&quot;:827,&quot;../scatter/get_trace_color&quot;:1197,&quot;gl-pointcloud2d&quot;:324}],1175:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;);e.exports=function(t,e,r){function a(r,a){return n.coerce(t,e,i,r,a)}a(&quot;x&quot;),a(&quot;y&quot;),a(&quot;xbounds&quot;),a(&quot;ybounds&quot;),t.xy&amp;&amp;t.xy instanceof Float32Array&amp;&amp;(e.xy=t.xy),t.indices&amp;&amp;t.indices instanceof Int32Array&amp;&amp;(e.indices=t.indices),a(&quot;text&quot;),a(&quot;marker.color&quot;,r),a(&quot;marker.opacity&quot;),a(&quot;marker.blend&quot;),a(&quot;marker.sizemin&quot;),a(&quot;marker.sizemax&quot;),a(&quot;marker.border.color&quot;,r),a(&quot;marker.border.arearatio&quot;),e._length=null}},{&quot;../../lib&quot;:778,&quot;./attributes&quot;:1173}],1176:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;../scatter3d/calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;pointcloud&quot;,basePlotModule:t(&quot;../../plots/gl2d&quot;),categories:[&quot;gl&quot;,&quot;gl2d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl2d&quot;:868,&quot;../scatter3d/calc&quot;:1216,&quot;./attributes&quot;:1173,&quot;./convert&quot;:1174,&quot;./defaults&quot;:1175}],1177:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/font_attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../components/color/attributes&quot;),o=t(&quot;../../components/fx/attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../plot_api/plot_template&quot;).templatedArray,f=t(&quot;../../lib/extend&quot;).extendFlat,h=t(&quot;../../plot_api/edit_types&quot;).overrideAll;t(&quot;../../constants/docs&quot;).FORMAT_LINK;(e.exports=h({hoverinfo:f({},i.hoverinfo,{flags:[],arrayOk:!1}),hoverlabel:o.hoverlabel,domain:s({name:&quot;sankey&quot;,trace:!0}),orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],dflt:&quot;h&quot;},valueformat:{valType:&quot;string&quot;,dflt:&quot;.3s&quot;},valuesuffix:{valType:&quot;string&quot;,dflt:&quot;&quot;},arrangement:{valType:&quot;enumerated&quot;,values:[&quot;snap&quot;,&quot;perpendicular&quot;,&quot;freeform&quot;,&quot;fixed&quot;],dflt:&quot;snap&quot;},textfont:n({}),customdata:void 0,node:{label:{valType:&quot;data_array&quot;,dflt:[]},groups:{valType:&quot;info_array&quot;,impliedEdits:{x:[],y:[]},dimensions:2,freeLength:!0,dflt:[],items:{valType:&quot;number&quot;,editType:&quot;calc&quot;}},x:{valType:&quot;data_array&quot;,dflt:[]},y:{valType:&quot;data_array&quot;,dflt:[]},color:{valType:&quot;color&quot;,arrayOk:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:a.defaultLine,arrayOk:!0},width:{valType:&quot;number&quot;,min:0,dflt:.5,arrayOk:!0}},pad:{valType:&quot;number&quot;,arrayOk:!1,min:0,dflt:20},thickness:{valType:&quot;number&quot;,arrayOk:!1,min:1,dflt:20},hoverinfo:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],dflt:&quot;all&quot;},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:[&quot;value&quot;,&quot;label&quot;]})},link:{label:{valType:&quot;data_array&quot;,dflt:[]},color:{valType:&quot;color&quot;,arrayOk:!0},customdata:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,dflt:a.defaultLine,arrayOk:!0},width:{valType:&quot;number&quot;,min:0,dflt:0,arrayOk:!0}},source:{valType:&quot;data_array&quot;,dflt:[]},target:{valType:&quot;data_array&quot;,dflt:[]},value:{valType:&quot;data_array&quot;,dflt:[]},hoverinfo:{valType:&quot;enumerated&quot;,values:[&quot;all&quot;,&quot;none&quot;,&quot;skip&quot;],dflt:&quot;all&quot;},hoverlabel:o.hoverlabel,hovertemplate:l({},{keys:[&quot;value&quot;,&quot;label&quot;]}),colorscales:u(&quot;concentrationscales&quot;,{editType:&quot;calc&quot;,label:{valType:&quot;string&quot;,editType:&quot;calc&quot;,dflt:&quot;&quot;},cmax:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:1},cmin:{valType:&quot;number&quot;,editType:&quot;calc&quot;,dflt:0},colorscale:f(c().colorscale,{dflt:[[0,&quot;white&quot;],[1,&quot;black&quot;]]})})}},&quot;calc&quot;,&quot;nested&quot;)).transforms=void 0},{&quot;../../components/color/attributes&quot;:642,&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/fx/attributes&quot;:674,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906}],1178:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plot_api/edit_types&quot;).overrideAll,i=t(&quot;../../plots/get_data&quot;).getModuleCalcData,a=t(&quot;./plot&quot;),o=t(&quot;../../components/fx/layout_attributes&quot;),s=t(&quot;../../lib/setcursor&quot;),l=t(&quot;../../components/dragelement&quot;),c=t(&quot;../../plots/cartesian/select&quot;).prepSelect,u=t(&quot;../../lib&quot;),f=t(&quot;../../registry&quot;);function h(t,e){var r=t._fullData[e],n=t._fullLayout,i=n.dragmode,a=&quot;pan&quot;===n.dragmode?&quot;move&quot;:&quot;crosshair&quot;,o=r._bgRect;if(&quot;pan&quot;!==i&amp;&amp;&quot;zoom&quot;!==i){s(o,a);var h={_id:&quot;x&quot;,c2p:u.identity,_offset:r._sankey.translateX,_length:r._sankey.width},p={_id:&quot;y&quot;,c2p:u.identity,_offset:r._sankey.translateY,_length:r._sankey.height},d={gd:t,element:o.node(),plotinfo:{id:e,xaxis:h,yaxis:p,fillRangeItems:u.noop},subplot:e,xaxes:[h],yaxes:[p],doneFnCompleted:function(r){var n,i=t._fullData[e],a=i.node.groups.slice(),o=[];function s(t){for(var e=i._sankey.graph.nodes,r=0;r&lt;e.length;r++)if(e[r].pointNumber===t)return e[r]}for(var l=0;l&lt;r.length;l++){var c=s(r[l].pointNumber);if(c)if(c.group){for(var u=0;u&lt;c.childrenNodes.length;u++)o.push(c.childrenNodes[u].pointNumber);a[c.pointNumber-i.node._count]=!1}else o.push(c.pointNumber)}n=a.filter(Boolean).concat([o]),f.call(&quot;_guiRestyle&quot;,t,{&quot;node.groups&quot;:[n]},e)},prepFn:function(t,e,r){c(t,e,r,d,i)}};l.init(d)}}r.name=&quot;sankey&quot;,r.baseLayoutAttrOverrides=n({hoverlabel:o.hoverlabel},&quot;plot&quot;,&quot;nested&quot;),r.plot=function(t){var e=i(t.calcdata,&quot;sankey&quot;)[0];a(t,e),r.updateFx(t)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;sankey&quot;),a=e._has&amp;&amp;e._has(&quot;sankey&quot;);i&amp;&amp;!a&amp;&amp;(n._paperdiv.selectAll(&quot;.sankey&quot;).remove(),n._paperdiv.selectAll(&quot;.bgsankey&quot;).remove())},r.updateFx=function(t){for(var e=0;e&lt;t._fullData.length;e++)h(t,e)}},{&quot;../../components/dragelement&quot;:662,&quot;../../components/fx/layout_attributes&quot;:684,&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/cartesian/select&quot;:847,&quot;../../plots/get_data&quot;:865,&quot;../../registry&quot;:911,&quot;./plot&quot;:1183}],1179:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;strongly-connected-components&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/gup&quot;).wrap,o=i.isArrayOrTypedArray,s=i.isIndex,l=t(&quot;../../components/colorscale&quot;);function c(t){var e,r=t.node,a=t.link,c=[],u=o(a.color),f=o(a.customdata),h={},p={},d=a.colorscales.length;for(e=0;e&lt;d;e++){var g=a.colorscales[e],m=l.extractScale(g,{cLetter:&quot;c&quot;}),v=l.makeColorScaleFunc(m);p[g.label]=v}var y=0;for(e=0;e&lt;a.value.length;e++)a.source[e]&gt;y&amp;&amp;(y=a.source[e]),a.target[e]&gt;y&amp;&amp;(y=a.target[e]);var x,b=y+1;t.node._count=b;var _=t.node.groups,w={};for(e=0;e&lt;_.length;e++){var T=_[e];for(x=0;x&lt;T.length;x++){var k=T[x],M=b+e;w.hasOwnProperty(k)?i.warn(&quot;Node &quot;+k+&quot; is already part of a group.&quot;):w[k]=M}}var A={source:[],target:[]};for(e=0;e&lt;a.value.length;e++){var S=a.value[e],E=a.source[e],C=a.target[e];if(S&gt;0&amp;&amp;s(E,b)&amp;&amp;s(C,b)&amp;&amp;(!w.hasOwnProperty(E)||!w.hasOwnProperty(C)||w[E]!==w[C])){w.hasOwnProperty(C)&amp;&amp;(C=w[C]),w.hasOwnProperty(E)&amp;&amp;(E=w[E]),C=+C,h[E=+E]=h[C]=!0;var L=&quot;&quot;;a.label&amp;&amp;a.label[e]&amp;&amp;(L=a.label[e]);var I=null;L&amp;&amp;p.hasOwnProperty(L)&amp;&amp;(I=p[L]),c.push({pointNumber:e,label:L,color:u?a.color[e]:a.color,customdata:f?a.customdata[e]:a.customdata,concentrationscale:I,source:E,target:C,value:+S}),A.source.push(E),A.target.push(C)}}var P=b+_.length,z=o(r.color),O=o(r.customdata),D=[];for(e=0;e&lt;P;e++)if(h[e]){var R=r.label[e];D.push({group:e&gt;b-1,childrenNodes:[],pointNumber:e,label:R,color:z?r.color[e]:r.color,customdata:O?r.customdata[e]:r.customdata})}var F=!1;return function(t,e,r){for(var a=i.init2dArray(t,0),o=0;o&lt;Math.min(e.length,r.length);o++)if(i.isIndex(e[o],t)&amp;&amp;i.isIndex(r[o],t)){if(e[o]===r[o])return!0;a[e[o]].push(r[o])}return n(a).components.some((function(t){return t.length&gt;1}))}(P,A.source,A.target)&amp;&amp;(F=!0),{circular:F,links:c,nodes:D,groups:_,groupLookup:w}}e.exports=function(t,e){var r=c(e);return a({circular:r.circular,_nodes:r.nodes,_links:r.links,_groups:r.groups,_groupLookup:r.groupLookup})}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;strongly-connected-components&quot;:569}],1180:[function(t,e,r){&quot;use strict&quot;;e.exports={nodeTextOffsetHorizontal:4,nodeTextOffsetVertical:3,nodePadAcross:10,sankeyIterations:50,forceIterations:5,forceTicksPerFrame:10,duration:500,ease:&quot;linear&quot;,cn:{sankey:&quot;sankey&quot;,sankeyLinks:&quot;sankey-links&quot;,sankeyLink:&quot;sankey-link&quot;,sankeyNodeSet:&quot;sankey-node-set&quot;,sankeyNode:&quot;sankey-node&quot;,nodeRect:&quot;node-rect&quot;,nodeCapture:&quot;node-capture&quot;,nodeCentered:&quot;node-entered&quot;,nodeLabelGuide:&quot;node-label-guide&quot;,nodeLabel:&quot;node-label&quot;,nodeLabelTextPath:&quot;node-label-text-path&quot;}}},{}],1181:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;tinycolor2&quot;),s=t(&quot;../../plots/domain&quot;).defaults,l=t(&quot;../../components/fx/hoverlabel_defaults&quot;),c=t(&quot;../../plot_api/plot_template&quot;),u=t(&quot;../../plots/array_container_defaults&quot;);function f(t,e){function r(r,a){return n.coerce(t,e,i.link.colorscales,r,a)}r(&quot;label&quot;),r(&quot;cmin&quot;),r(&quot;cmax&quot;),r(&quot;colorscale&quot;)}e.exports=function(t,e,r,h){function p(r,a){return n.coerce(t,e,i,r,a)}var d=n.extendDeep(h.hoverlabel,t.hoverlabel),g=t.node,m=c.newContainer(e,&quot;node&quot;);function v(t,e){return n.coerce(g,m,i.node,t,e)}v(&quot;label&quot;),v(&quot;groups&quot;),v(&quot;x&quot;),v(&quot;y&quot;),v(&quot;pad&quot;),v(&quot;thickness&quot;),v(&quot;line.color&quot;),v(&quot;line.width&quot;),v(&quot;hoverinfo&quot;,t.hoverinfo),l(g,m,v,d),v(&quot;hovertemplate&quot;);var y=h.colorway;v(&quot;color&quot;,m.label.map((function(t,e){return a.addOpacity(function(t){return y[t%y.length]}(e),.8)}))),v(&quot;customdata&quot;);var x=t.link||{},b=c.newContainer(e,&quot;link&quot;);function _(t,e){return n.coerce(x,b,i.link,t,e)}_(&quot;label&quot;),_(&quot;source&quot;),_(&quot;target&quot;),_(&quot;value&quot;),_(&quot;line.color&quot;),_(&quot;line.width&quot;),_(&quot;hoverinfo&quot;,t.hoverinfo),l(x,b,_,d),_(&quot;hovertemplate&quot;);var w,T=o(h.paper_bgcolor).getLuminance()&lt;.333?&quot;rgba(255, 255, 255, 0.6)&quot;:&quot;rgba(0, 0, 0, 0.2)&quot;;_(&quot;color&quot;,n.repeat(T,b.value.length)),_(&quot;customdata&quot;),u(x,b,{name:&quot;colorscales&quot;,handleItemDefaults:f}),s(e,h,p),p(&quot;orientation&quot;),p(&quot;valueformat&quot;),p(&quot;valuesuffix&quot;),m.x.length&amp;&amp;m.y.length&amp;&amp;(w=&quot;freeform&quot;),p(&quot;arrangement&quot;,w),n.coerceFont(p,&quot;textfont&quot;,n.extendFlat({},h.font)),e._length=null}},{&quot;../../components/color&quot;:643,&quot;../../components/fx/hoverlabel_defaults&quot;:681,&quot;../../lib&quot;:778,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/array_container_defaults&quot;:823,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1177,tinycolor2:576}],1182:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),moduleType:&quot;trace&quot;,name:&quot;sankey&quot;,basePlotModule:t(&quot;./base_plot&quot;),selectPoints:t(&quot;./select.js&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1177,&quot;./base_plot&quot;:1178,&quot;./calc&quot;:1179,&quot;./defaults&quot;:1181,&quot;./plot&quot;:1183,&quot;./select.js&quot;:1185}],1183:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;./render&quot;),a=t(&quot;../../components/fx&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;./constants&quot;).cn,c=s._;function u(t){return&quot;&quot;!==t}function f(t,e){return t.filter((function(t){return t.key===e.traceId}))}function h(t,e){n.select(t).select(&quot;path&quot;).style(&quot;fill-opacity&quot;,e),n.select(t).select(&quot;rect&quot;).style(&quot;fill-opacity&quot;,e)}function p(t){n.select(t).select(&quot;text.name&quot;).style(&quot;fill&quot;,&quot;black&quot;)}function d(t){return function(e){return-1!==t.node.sourceLinks.indexOf(e.link)||-1!==t.node.targetLinks.indexOf(e.link)}}function g(t){return function(e){return-1!==e.node.sourceLinks.indexOf(t.link)||-1!==e.node.targetLinks.indexOf(t.link)}}function m(t,e,r){e&amp;&amp;r&amp;&amp;f(r,e).selectAll(&quot;.&quot;+l.sankeyLink).filter(d(e)).call(y.bind(0,e,r,!1))}function v(t,e,r){e&amp;&amp;r&amp;&amp;f(r,e).selectAll(&quot;.&quot;+l.sankeyLink).filter(d(e)).call(x.bind(0,e,r,!1))}function y(t,e,r,n){var i=n.datum().link.label;n.style(&quot;fill-opacity&quot;,(function(t){if(!t.link.concentrationscale)return.4})),i&amp;&amp;f(e,t).selectAll(&quot;.&quot;+l.sankeyLink).filter((function(t){return t.link.label===i})).style(&quot;fill-opacity&quot;,(function(t){if(!t.link.concentrationscale)return.4})),r&amp;&amp;f(e,t).selectAll(&quot;.&quot;+l.sankeyNode).filter(g(t)).call(m)}function x(t,e,r,n){var i=n.datum().link.label;n.style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),i&amp;&amp;f(e,t).selectAll(&quot;.&quot;+l.sankeyLink).filter((function(t){return t.link.label===i})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),r&amp;&amp;f(e,t).selectAll(l.sankeyNode).filter(g(t)).call(v)}function b(t,e){var r=t.hoverlabel||{},n=s.nestedProperty(r,e).get();return!Array.isArray(n)&amp;&amp;n}e.exports=function(t,e){for(var r=t._fullLayout,s=r._paper,f=r._size,d=0;d&lt;t._fullData.length;d++)if(t._fullData[d].visible&amp;&amp;t._fullData[d].type===l.sankey&amp;&amp;!t._fullData[d]._viewInitial){var g=t._fullData[d].node;t._fullData[d]._viewInitial={node:{groups:g.groups.slice(),x:g.x.slice(),y:g.y.slice()}}}var _=c(t,&quot;source:&quot;)+&quot; &quot;,w=c(t,&quot;target:&quot;)+&quot; &quot;,T=c(t,&quot;concentration:&quot;)+&quot; &quot;,k=c(t,&quot;incoming flow count:&quot;)+&quot; &quot;,M=c(t,&quot;outgoing flow count:&quot;)+&quot; &quot;;i(t,s,e,{width:f.w,height:f.h,margin:{t:f.t,r:f.r,b:f.b,l:f.l}},{linkEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(y.bind(0,r,i,!0)),&quot;skip&quot;!==r.link.trace.link.hoverinfo&amp;&amp;(r.link.fullData=r.link.trace,t.emit(&quot;plotly_hover&quot;,{event:n.event,points:[r.link]})))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var s=i.link.trace.link;if(&quot;none&quot;!==s.hoverinfo&amp;&amp;&quot;skip&quot;!==s.hoverinfo){for(var l=[],c=0,f=0;f&lt;i.flow.links.length;f++){var d=i.flow.links[f];if(&quot;closest&quot;!==t._fullLayout.hovermode||i.link.pointNumber===d.pointNumber){i.link.pointNumber===d.pointNumber&amp;&amp;(c=f),d.fullData=d.trace,s=i.link.trace.link;var g=v(d),m={valueLabel:n.format(i.valueFormat)(d.value)+i.valueSuffix};l.push({x:g[0],y:g[1],name:m.valueLabel,text:[d.label||&quot;&quot;,_+d.source.label,w+d.target.label,d.concentrationscale?T+n.format(&quot;%0.2f&quot;)(d.flow.labelConcentration):&quot;&quot;].filter(u).join(&quot;&lt;br&gt;&quot;),color:b(s,&quot;bgcolor&quot;)||o.addOpacity(d.color,1),borderColor:b(s,&quot;bordercolor&quot;),fontFamily:b(s,&quot;font.family&quot;),fontSize:b(s,&quot;font.size&quot;),fontColor:b(s,&quot;font.color&quot;),nameLength:b(s,&quot;namelength&quot;),textAlign:b(s,&quot;align&quot;),idealAlign:n.event.x&lt;g[0]?&quot;right&quot;:&quot;left&quot;,hovertemplate:s.hovertemplate,hovertemplateLabels:m,eventData:[d]})}}a.loneHover(l,{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t,anchorIndex:c}).each((function(){i.link.concentrationscale||h(this,.65),p(this)}))}}function v(t){var e,r;t.circular?(e=(t.circularPathData.leftInnerExtent+t.circularPathData.rightInnerExtent)/2,r=t.circularPathData.verticalFullExtent):(e=(t.source.x1+t.target.x0)/2,r=(t.y0+t.y1)/2);var n=[e,r];return&quot;v&quot;===t.trace.orientation&amp;&amp;n.reverse(),n[0]+=i.parent.translateX,n[1]+=i.parent.translateY,n}},unhover:function(e,i,o){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(x.bind(0,i,o,!0)),&quot;skip&quot;!==i.link.trace.link.hoverinfo&amp;&amp;(i.link.fullData=i.link.trace,t.emit(&quot;plotly_unhover&quot;,{event:n.event,points:[i.link]})),a.loneUnhover(r._hoverlayer.node()))},select:function(e,r){var i=r.link;i.originalEvent=n.event,t._hoverdata=[i],a.click(t,{target:!0})}},nodeEvents:{hover:function(e,r,i){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(m,r,i),&quot;skip&quot;!==r.node.trace.node.hoverinfo&amp;&amp;(r.node.fullData=r.node.trace,t.emit(&quot;plotly_hover&quot;,{event:n.event,points:[r.node]})))},follow:function(e,i){if(!1!==t._fullLayout.hovermode){var o=i.node.trace.node;if(&quot;none&quot;!==o.hoverinfo&amp;&amp;&quot;skip&quot;!==o.hoverinfo){var s=n.select(e).select(&quot;.&quot;+l.nodeRect),c=t._fullLayout._paperdiv.node().getBoundingClientRect(),f=s.node().getBoundingClientRect(),d=f.left-2-c.left,g=f.right+2-c.left,m=f.top+f.height/4-c.top,v={valueLabel:n.format(i.valueFormat)(i.node.value)+i.valueSuffix};i.node.fullData=i.node.trace,t._fullLayout._calcInverseTransform(t);var y=t._fullLayout._invScaleX,x=t._fullLayout._invScaleY,_=a.loneHover({x0:y*d,x1:y*g,y:x*m,name:n.format(i.valueFormat)(i.node.value)+i.valueSuffix,text:[i.node.label,k+i.node.targetLinks.length,M+i.node.sourceLinks.length].filter(u).join(&quot;&lt;br&gt;&quot;),color:b(o,&quot;bgcolor&quot;)||i.tinyColorHue,borderColor:b(o,&quot;bordercolor&quot;),fontFamily:b(o,&quot;font.family&quot;),fontSize:b(o,&quot;font.size&quot;),fontColor:b(o,&quot;font.color&quot;),nameLength:b(o,&quot;namelength&quot;),textAlign:b(o,&quot;align&quot;),idealAlign:&quot;left&quot;,hovertemplate:o.hovertemplate,hovertemplateLabels:v,eventData:[i.node]},{container:r._hoverlayer.node(),outerContainer:r._paper.node(),gd:t});h(_,.85),p(_)}}},unhover:function(e,i,o){!1!==t._fullLayout.hovermode&amp;&amp;(n.select(e).call(v,i,o),&quot;skip&quot;!==i.node.trace.node.hoverinfo&amp;&amp;(i.node.fullData=i.node.trace,t.emit(&quot;plotly_unhover&quot;,{event:n.event,points:[i.node]})),a.loneUnhover(r._hoverlayer.node()))},select:function(e,r,i){var o=r.node;o.originalEvent=n.event,t._hoverdata=[o],n.select(e).call(v,r,i),a.click(t,{target:!0})}}})}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;./constants&quot;:1180,&quot;./render&quot;:1184,d3:169}],1184:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;d3&quot;),a=t(&quot;tinycolor2&quot;),o=t(&quot;../../components/color&quot;),s=t(&quot;../../components/drawing&quot;),l=t(&quot;@plotly/d3-sankey&quot;),c=t(&quot;@plotly/d3-sankey-circular&quot;),u=t(&quot;d3-force&quot;),f=t(&quot;../../lib&quot;),h=f.strTranslate,p=t(&quot;../../lib/gup&quot;),d=p.keyFun,g=p.repeat,m=p.unwrap,v=t(&quot;d3-interpolate&quot;).interpolateNumber,y=t(&quot;../../registry&quot;);function x(t,e,r){var i,o=m(e),s=o.trace,u=s.domain,h=&quot;h&quot;===s.orientation,p=s.node.pad,d=s.node.thickness,g=t.width*(u.x[1]-u.x[0]),v=t.height*(u.y[1]-u.y[0]),y=o._nodes,x=o._links,b=o.circular;(i=b?c.sankeyCircular().circularLinkGap(0):l.sankey()).iterations(n.sankeyIterations).size(h?[g,v]:[v,g]).nodeWidth(d).nodePadding(p).nodeId((function(t){return t.pointNumber})).nodes(y).links(x);var _,w,T,k=i();for(var M in i.nodePadding()&lt;p&amp;&amp;f.warn(&quot;node.pad was reduced to &quot;,i.nodePadding(),&quot; to fit within the figure.&quot;),o._groupLookup){var A,S=parseInt(o._groupLookup[M]);for(_=0;_&lt;k.nodes.length;_++)if(k.nodes[_].pointNumber===S){A=k.nodes[_];break}if(A){var E={pointNumber:parseInt(M),x0:A.x0,x1:A.x1,y0:A.y0,y1:A.y1,partOfGroup:!0,sourceLinks:[],targetLinks:[]};k.nodes.unshift(E),A.childrenNodes.unshift(E)}}if(function(){for(_=0;_&lt;k.nodes.length;_++){var t,e,r=k.nodes[_],n={};for(w=0;w&lt;r.targetLinks.length;w++)t=(e=r.targetLinks[w]).source.pointNumber+&quot;:&quot;+e.target.pointNumber,n.hasOwnProperty(t)||(n[t]=[]),n[t].push(e);var i=Object.keys(n);for(w=0;w&lt;i.length;w++){var o=n[t=i[w]],s=0,l={};for(T=0;T&lt;o.length;T++)l[(e=o[T]).label]||(l[e.label]=0),l[e.label]+=e.value,s+=e.value;for(T=0;T&lt;o.length;T++)(e=o[T]).flow={value:s,labelConcentration:l[e.label]/s,concentration:e.value/s,links:o},e.concentrationscale&amp;&amp;(e.color=a(e.concentrationscale(e.flow.labelConcentration)))}var c=0;for(w=0;w&lt;r.sourceLinks.length;w++)c+=r.sourceLinks[w].value;for(w=0;w&lt;r.sourceLinks.length;w++)(e=r.sourceLinks[w]).concentrationOut=e.value/c;var u=0;for(w=0;w&lt;r.targetLinks.length;w++)u+=r.targetLinks[w].value;for(w=0;w&lt;r.targetLinks.length;w++)(e=r.targetLinks[w]).concenrationIn=e.value/u}}(),s.node.x.length&amp;&amp;s.node.y.length){for(_=0;_&lt;Math.min(s.node.x.length,s.node.y.length,k.nodes.length);_++)if(s.node.x[_]&amp;&amp;s.node.y[_]){var C=[s.node.x[_]*g,s.node.y[_]*v];k.nodes[_].x0=C[0]-d/2,k.nodes[_].x1=C[0]+d/2;var L=k.nodes[_].y1-k.nodes[_].y0;k.nodes[_].y0=C[1]-L/2,k.nodes[_].y1=C[1]+L/2}if(&quot;snap&quot;===s.arrangement)!function(t){t.forEach((function(t){var e,r,n,i=0,a=t.length;for(t.sort((function(t,e){return t.y0-e.y0})),n=0;n&lt;a;++n)(e=t[n]).y0&gt;=i||(r=i-e.y0)&gt;1e-6&amp;&amp;(e.y0+=r,e.y1+=r),i=e.y1+p}))}(function(t){var e,r,n=t.map((function(t,e){return{x0:t.x0,index:e}})).sort((function(t,e){return t.x0-e.x0})),i=[],a=-1,o=-1/0;for(_=0;_&lt;n.length;_++){var s=t[n[_].index];s.x0&gt;o+d&amp;&amp;(a+=1,e=s.x0),o=s.x0,i[a]||(i[a]=[]),i[a].push(s),r=e-s.x0,s.x0+=r,s.x1+=r}return i}(y=k.nodes));i.update(k)}return{circular:b,key:r,trace:s,guid:f.randstr(),horizontal:h,width:g,height:v,nodePad:s.node.pad,nodeLineColor:s.node.line.color,nodeLineWidth:s.node.line.width,linkLineColor:s.link.line.color,linkLineWidth:s.link.line.width,valueFormat:s.valueformat,valueSuffix:s.valuesuffix,textFont:s.textfont,translateX:u.x[0]*t.width+t.margin.l,translateY:t.height-u.y[1]*t.height+t.margin.t,dragParallel:h?v:g,dragPerpendicular:h?g:v,arrangement:s.arrangement,sankey:i,graph:k,forceLayouts:{},interactionState:{dragInProgress:!1,hovered:!1}}}function b(t,e,r){var n=a(e.color),i=e.source.label+&quot;|&quot;+e.target.label+&quot;__&quot;+r;return e.trace=t.trace,e.curveNumber=t.trace.index,{circular:t.circular,key:i,traceId:t.key,pointNumber:e.pointNumber,link:e,tinyColorHue:o.tinyRGB(n),tinyColorAlpha:n.getAlpha(),linkPath:_,linkLineColor:t.linkLineColor,linkLineWidth:t.linkLineWidth,valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,parent:t,interactionState:t.interactionState,flow:e.flow}}function _(){return function(t){if(t.link.circular)return e=t.link,r=e.width/2,n=e.circularPathData,&quot;top&quot;===e.circularLinkType?&quot;M &quot;+n.targetX+&quot; &quot;+(n.targetY+r)+&quot; L&quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY+r)+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightSmallArcRadius+r)+&quot; 0 0 1 &quot;+(n.rightFullExtent-r)+&quot; &quot;+(n.targetY-n.rightSmallArcRadius)+&quot;L&quot;+(n.rightFullExtent-r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightLargeArcRadius+r)+&quot; 0 0 1 &quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftLargeArcRadius+r)+&quot; 0 0 1 &quot;+(n.leftFullExtent+r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;L&quot;+(n.leftFullExtent+r)+&quot; &quot;+(n.sourceY-n.leftSmallArcRadius)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftSmallArcRadius+r)+&quot; 0 0 1 &quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY-r)+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftSmallArcRadius-r)+&quot; 0 0 0 &quot;+(n.leftFullExtent-r)+&quot; &quot;+(n.sourceY-n.leftSmallArcRadius)+&quot;L&quot;+(n.leftFullExtent-r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftLargeArcRadius-r)+&quot; 0 0 0 &quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;L&quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightLargeArcRadius-r)+&quot; 0 0 0 &quot;+(n.rightFullExtent+r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;L&quot;+(n.rightFullExtent+r)+&quot; &quot;+(n.targetY-n.rightSmallArcRadius)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightSmallArcRadius-r)+&quot; 0 0 0 &quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY-r)+&quot;L&quot;+n.targetX+&quot; &quot;+(n.targetY-r)+&quot;Z&quot;:&quot;M &quot;+n.targetX+&quot; &quot;+(n.targetY-r)+&quot; L&quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY-r)+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightSmallArcRadius+r)+&quot; 0 0 0 &quot;+(n.rightFullExtent-r)+&quot; &quot;+(n.targetY+n.rightSmallArcRadius)+&quot;L&quot;+(n.rightFullExtent-r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;A&quot;+(n.rightLargeArcRadius+r)+&quot; &quot;+(n.rightLargeArcRadius+r)+&quot; 0 0 0 &quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent+r)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftLargeArcRadius+r)+&quot; 0 0 0 &quot;+(n.leftFullExtent+r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;L&quot;+(n.leftFullExtent+r)+&quot; &quot;+(n.sourceY+n.leftSmallArcRadius)+&quot;A&quot;+(n.leftLargeArcRadius+r)+&quot; &quot;+(n.leftSmallArcRadius+r)+&quot; 0 0 0 &quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY-r)+&quot;L&quot;+n.sourceX+&quot; &quot;+(n.sourceY+r)+&quot;L&quot;+n.leftInnerExtent+&quot; &quot;+(n.sourceY+r)+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftSmallArcRadius-r)+&quot; 0 0 1 &quot;+(n.leftFullExtent-r)+&quot; &quot;+(n.sourceY+n.leftSmallArcRadius)+&quot;L&quot;+(n.leftFullExtent-r)+&quot; &quot;+n.verticalLeftInnerExtent+&quot;A&quot;+(n.leftLargeArcRadius-r)+&quot; &quot;+(n.leftLargeArcRadius-r)+&quot; 0 0 1 &quot;+n.leftInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;L&quot;+n.rightInnerExtent+&quot; &quot;+(n.verticalFullExtent-r)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightLargeArcRadius-r)+&quot; 0 0 1 &quot;+(n.rightFullExtent+r)+&quot; &quot;+n.verticalRightInnerExtent+&quot;L&quot;+(n.rightFullExtent+r)+&quot; &quot;+(n.targetY+n.rightSmallArcRadius)+&quot;A&quot;+(n.rightLargeArcRadius-r)+&quot; &quot;+(n.rightSmallArcRadius-r)+&quot; 0 0 1 &quot;+n.rightInnerExtent+&quot; &quot;+(n.targetY+r)+&quot;L&quot;+n.targetX+&quot; &quot;+(n.targetY+r)+&quot;Z&quot;;var e,r,n,i=t.link.source.x1,a=t.link.target.x0,o=v(i,a),s=o(.5),l=o(.5),c=t.link.y0-t.link.width/2,u=t.link.y0+t.link.width/2,f=t.link.y1-t.link.width/2,h=t.link.y1+t.link.width/2;return&quot;M&quot;+i+&quot;,&quot;+c+&quot;C&quot;+s+&quot;,&quot;+c+&quot; &quot;+l+&quot;,&quot;+f+&quot; &quot;+a+&quot;,&quot;+f+&quot;L&quot;+a+&quot;,&quot;+h+&quot;C&quot;+l+&quot;,&quot;+h+&quot; &quot;+s+&quot;,&quot;+u+&quot; &quot;+i+&quot;,&quot;+u+&quot;Z&quot;}}function w(t,e){var r=a(e.color),i=n.nodePadAcross,s=t.nodePad/2;e.dx=e.x1-e.x0,e.dy=e.y1-e.y0;var l=e.dx,c=Math.max(.5,e.dy),u=&quot;node_&quot;+e.pointNumber;return e.group&amp;&amp;(u=f.randstr()),e.trace=t.trace,e.curveNumber=t.trace.index,{index:e.pointNumber,key:u,partOfGroup:e.partOfGroup||!1,group:e.group,traceId:t.key,trace:t.trace,node:e,nodePad:t.nodePad,nodeLineColor:t.nodeLineColor,nodeLineWidth:t.nodeLineWidth,textFont:t.textFont,size:t.horizontal?t.height:t.width,visibleWidth:Math.ceil(l),visibleHeight:c,zoneX:-i,zoneY:-s,zoneWidth:l+2*i,zoneHeight:c+2*s,labelY:t.horizontal?e.dy/2+1:e.dx/2+1,left:1===e.originalLayer,sizeAcross:t.width,forceLayouts:t.forceLayouts,horizontal:t.horizontal,darkBackground:r.getBrightness()&lt;=128,tinyColorHue:o.tinyRGB(r),tinyColorAlpha:r.getAlpha(),valueFormat:t.valueFormat,valueSuffix:t.valueSuffix,sankey:t.sankey,graph:t.graph,arrangement:t.arrangement,uniqueNodeLabelPathId:[t.guid,t.key,u].join(&quot;_&quot;),interactionState:t.interactionState,figure:t}}function T(t){t.attr(&quot;transform&quot;,(function(t){return h(t.node.x0.toFixed(3),t.node.y0.toFixed(3))}))}function k(t){t.call(T)}function M(t,e){t.call(k),e.attr(&quot;d&quot;,_())}function A(t){t.attr(&quot;width&quot;,(function(t){return t.node.x1-t.node.x0})).attr(&quot;height&quot;,(function(t){return t.visibleHeight}))}function S(t){return t.link.width&gt;1||t.linkLineWidth&gt;0}function E(t){return h(t.translateX,t.translateY)+(t.horizontal?&quot;matrix(1 0 0 1 0 0)&quot;:&quot;matrix(0 1 1 0 0 0)&quot;)}function C(t){return h(t.horizontal?0:t.labelY,t.horizontal?t.labelY:0)}function L(t){return i.svg.line()([[t.horizontal?t.left?-t.sizeAcross:t.visibleWidth+n.nodeTextOffsetHorizontal:n.nodeTextOffsetHorizontal,0],[t.horizontal?t.left?-n.nodeTextOffsetHorizontal:t.sizeAcross:t.visibleHeight-n.nodeTextOffsetHorizontal,0]])}function I(t){return t.horizontal?&quot;matrix(1 0 0 1 0 0)&quot;:&quot;matrix(0 1 1 0 0 0)&quot;}function P(t){return t.horizontal?&quot;scale(1 1)&quot;:&quot;scale(-1 1)&quot;}function z(t){return t.darkBackground&amp;&amp;!t.horizontal?&quot;rgb(255,255,255)&quot;:&quot;rgb(0,0,0)&quot;}function O(t){return t.horizontal&amp;&amp;t.left?&quot;100%&quot;:&quot;0%&quot;}function D(t,e,r){t.on(&quot;.basic&quot;,null).on(&quot;mouseover.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.hover(this,t,e),t.interactionState.hovered=[this,t])})).on(&quot;mousemove.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.follow(this,t),t.interactionState.hovered=[this,t])})).on(&quot;mouseout.basic&quot;,(function(t){t.interactionState.dragInProgress||t.partOfGroup||(r.unhover(this,t,e),t.interactionState.hovered=!1)})).on(&quot;click.basic&quot;,(function(t){t.interactionState.hovered&amp;&amp;(r.unhover(this,t,e),t.interactionState.hovered=!1),t.interactionState.dragInProgress||t.partOfGroup||r.select(this,t,e)}))}function R(t,e,r,a){var o=i.behavior.drag().origin((function(t){return{x:t.node.x0+t.visibleWidth/2,y:t.node.y0+t.visibleHeight/2}})).on(&quot;dragstart&quot;,(function(i){if(&quot;fixed&quot;!==i.arrangement&amp;&amp;(f.ensureSingle(a._fullLayout._infolayer,&quot;g&quot;,&quot;dragcover&quot;,(function(t){a._fullLayout._dragCover=t})),f.raiseToTop(this),i.interactionState.dragInProgress=i.node,B(i.node),i.interactionState.hovered&amp;&amp;(r.nodeEvents.unhover.apply(0,i.interactionState.hovered),i.interactionState.hovered=!1),&quot;snap&quot;===i.arrangement)){var o=i.traceId+&quot;|&quot;+i.key;i.forceLayouts[o]?i.forceLayouts[o].alpha(1):function(t,e,r,i){!function(t){for(var e=0;e&lt;t.length;e++)t[e].y=(t[e].y0+t[e].y1)/2,t[e].x=(t[e].x0+t[e].x1)/2}(r.graph.nodes);var a=r.graph.nodes.filter((function(t){return t.originalX===r.node.originalX})).filter((function(t){return!t.partOfGroup}));r.forceLayouts[e]=u.forceSimulation(a).alphaDecay(0).force(&quot;collide&quot;,u.forceCollide().radius((function(t){return t.dy/2+r.nodePad/2})).strength(1).iterations(n.forceIterations)).force(&quot;constrain&quot;,function(t,e,r,i){return function(){for(var t=0,a=0;a&lt;r.length;a++){var o=r[a];o===i.interactionState.dragInProgress?(o.x=o.lastDraggedX,o.y=o.lastDraggedY):(o.vx=(o.originalX-o.x)/n.forceTicksPerFrame,o.y=Math.min(i.size-o.dy/2,Math.max(o.dy/2,o.y))),t=Math.max(t,Math.abs(o.vx),Math.abs(o.vy))}!i.interactionState.dragInProgress&amp;&amp;t&lt;.1&amp;&amp;i.forceLayouts[e].alpha()&gt;0&amp;&amp;i.forceLayouts[e].alpha(0)}}(0,e,a,r)).stop()}(0,o,i),function(t,e,r,i,a){window.requestAnimationFrame((function o(){var s;for(s=0;s&lt;n.forceTicksPerFrame;s++)r.forceLayouts[i].tick();if(function(t){for(var e=0;e&lt;t.length;e++)t[e].y0=t[e].y-t[e].dy/2,t[e].y1=t[e].y0+t[e].dy,t[e].x0=t[e].x-t[e].dx/2,t[e].x1=t[e].x0+t[e].dx}(r.graph.nodes),r.sankey.update(r.graph),M(t.filter(N(r)),e),r.forceLayouts[i].alpha()&gt;0)window.requestAnimationFrame(o);else{var l=r.node.originalX;r.node.x0=l-r.visibleWidth/2,r.node.x1=l+r.visibleWidth/2,F(r,a)}}))}(t,e,i,o,a)}})).on(&quot;drag&quot;,(function(r){if(&quot;fixed&quot;!==r.arrangement){var n=i.event.x,a=i.event.y;&quot;snap&quot;===r.arrangement?(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2,r.node.y0=a-r.visibleHeight/2,r.node.y1=a+r.visibleHeight/2):(&quot;freeform&quot;===r.arrangement&amp;&amp;(r.node.x0=n-r.visibleWidth/2,r.node.x1=n+r.visibleWidth/2),a=Math.max(0,Math.min(r.size-r.visibleHeight/2,a)),r.node.y0=a-r.visibleHeight/2,r.node.y1=a+r.visibleHeight/2),B(r.node),&quot;snap&quot;!==r.arrangement&amp;&amp;(r.sankey.update(r.graph),M(t.filter(N(r)),e))}})).on(&quot;dragend&quot;,(function(t){if(&quot;fixed&quot;!==t.arrangement){t.interactionState.dragInProgress=!1;for(var e=0;e&lt;t.node.childrenNodes.length;e++)t.node.childrenNodes[e].x=t.node.x,t.node.childrenNodes[e].y=t.node.y;&quot;snap&quot;!==t.arrangement&amp;&amp;F(t,a)}}));t.on(&quot;.drag&quot;,null).call(o)}function F(t,e){for(var r=[],n=[],i=0;i&lt;t.graph.nodes.length;i++){var a=(t.graph.nodes[i].x0+t.graph.nodes[i].x1)/2,o=(t.graph.nodes[i].y0+t.graph.nodes[i].y1)/2;r.push(a/t.figure.width),n.push(o/t.figure.height)}y.call(&quot;_guiRestyle&quot;,e,{&quot;node.x&quot;:[r],&quot;node.y&quot;:[n]},t.trace.index).then((function(){e._fullLayout._dragCover&amp;&amp;e._fullLayout._dragCover.remove()}))}function B(t){t.lastDraggedX=t.x0+t.dx/2,t.lastDraggedY=t.y0+t.dy/2}function N(t){return function(e){return e.node.originalX===t.node.originalX}}e.exports=function(t,e,r,l,c){var u=!1;f.ensureSingle(t._fullLayout._infolayer,&quot;g&quot;,&quot;first-render&quot;,(function(){u=!0}));var h=t._fullLayout._dragCover,p=r.filter((function(t){return m(t).trace.visible})).map(x.bind(null,l)),v=e.selectAll(&quot;.&quot;+n.cn.sankey).data(p,d);v.exit().remove(),v.enter().append(&quot;g&quot;).classed(n.cn.sankey,!0).style(&quot;box-sizing&quot;,&quot;content-box&quot;).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;left&quot;,0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;).style(&quot;pointer-events&quot;,&quot;auto&quot;).attr(&quot;transform&quot;,E),v.each((function(e,r){t._fullData[r]._sankey=e;var n=&quot;bgsankey-&quot;+e.trace.uid+&quot;-&quot;+r;f.ensureSingle(t._fullLayout._draggers,&quot;rect&quot;,n),t._fullData[r]._bgRect=i.select(&quot;.&quot;+n),t._fullData[r]._bgRect.style(&quot;pointer-events&quot;,&quot;all&quot;).attr(&quot;width&quot;,e.width).attr(&quot;height&quot;,e.height).attr(&quot;x&quot;,e.translateX).attr(&quot;y&quot;,e.translateY).classed(&quot;bgsankey&quot;,!0).style({fill:&quot;transparent&quot;,&quot;stroke-width&quot;:0})})),v.transition().ease(n.ease).duration(n.duration).attr(&quot;transform&quot;,E);var y=v.selectAll(&quot;.&quot;+n.cn.sankeyLinks).data(g,d);y.enter().append(&quot;g&quot;).classed(n.cn.sankeyLinks,!0).style(&quot;fill&quot;,&quot;none&quot;);var k=y.selectAll(&quot;.&quot;+n.cn.sankeyLink).data((function(t){return t.graph.links.filter((function(t){return t.value})).map(b.bind(null,t))}),d);k.enter().append(&quot;path&quot;).classed(n.cn.sankeyLink,!0).call(D,v,c.linkEvents),k.style(&quot;stroke&quot;,(function(t){return S(t)?o.tinyRGB(a(t.linkLineColor)):t.tinyColorHue})).style(&quot;stroke-opacity&quot;,(function(t){return S(t)?o.opacity(t.linkLineColor):t.tinyColorAlpha})).style(&quot;fill&quot;,(function(t){return t.tinyColorHue})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})).style(&quot;stroke-width&quot;,(function(t){return S(t)?t.linkLineWidth:1})).attr(&quot;d&quot;,_()),k.style(&quot;opacity&quot;,(function(){return t._context.staticPlot||u||h?1:0})).transition().ease(n.ease).duration(n.duration).style(&quot;opacity&quot;,1),k.exit().transition().ease(n.ease).duration(n.duration).style(&quot;opacity&quot;,0).remove();var M=v.selectAll(&quot;.&quot;+n.cn.sankeyNodeSet).data(g,d);M.enter().append(&quot;g&quot;).classed(n.cn.sankeyNodeSet,!0),M.style(&quot;cursor&quot;,(function(t){switch(t.arrangement){case&quot;fixed&quot;:return&quot;default&quot;;case&quot;perpendicular&quot;:return&quot;ns-resize&quot;;default:return&quot;move&quot;}}));var F=M.selectAll(&quot;.&quot;+n.cn.sankeyNode).data((function(t){var e=t.graph.nodes;return function(t){var e,r=[];for(e=0;e&lt;t.length;e++)t[e].originalX=(t[e].x0+t[e].x1)/2,t[e].originalY=(t[e].y0+t[e].y1)/2,-1===r.indexOf(t[e].originalX)&amp;&amp;r.push(t[e].originalX);for(r.sort((function(t,e){return t-e})),e=0;e&lt;t.length;e++)t[e].originalLayerIndex=r.indexOf(t[e].originalX),t[e].originalLayer=t[e].originalLayerIndex/(r.length-1)}(e),e.map(w.bind(null,t))}),d);F.enter().append(&quot;g&quot;).classed(n.cn.sankeyNode,!0).call(T).style(&quot;opacity&quot;,(function(e){return!t._context.staticPlot&amp;&amp;!u||e.partOfGroup?0:1})),F.call(D,v,c.nodeEvents).call(R,k,c,t),F.transition().ease(n.ease).duration(n.duration).call(T).style(&quot;opacity&quot;,(function(t){return t.partOfGroup?0:1})),F.exit().transition().ease(n.ease).duration(n.duration).style(&quot;opacity&quot;,0).remove();var B=F.selectAll(&quot;.&quot;+n.cn.nodeRect).data(g);B.enter().append(&quot;rect&quot;).classed(n.cn.nodeRect,!0).call(A),B.style(&quot;stroke-width&quot;,(function(t){return t.nodeLineWidth})).style(&quot;stroke&quot;,(function(t){return o.tinyRGB(a(t.nodeLineColor))})).style(&quot;stroke-opacity&quot;,(function(t){return o.opacity(t.nodeLineColor)})).style(&quot;fill&quot;,(function(t){return t.tinyColorHue})).style(&quot;fill-opacity&quot;,(function(t){return t.tinyColorAlpha})),B.transition().ease(n.ease).duration(n.duration).call(A);var N=F.selectAll(&quot;.&quot;+n.cn.nodeCapture).data(g);N.enter().append(&quot;rect&quot;).classed(n.cn.nodeCapture,!0).style(&quot;fill-opacity&quot;,0),N.attr(&quot;x&quot;,(function(t){return t.zoneX})).attr(&quot;y&quot;,(function(t){return t.zoneY})).attr(&quot;width&quot;,(function(t){return t.zoneWidth})).attr(&quot;height&quot;,(function(t){return t.zoneHeight}));var j=F.selectAll(&quot;.&quot;+n.cn.nodeCentered).data(g);j.enter().append(&quot;g&quot;).classed(n.cn.nodeCentered,!0).attr(&quot;transform&quot;,C),j.transition().ease(n.ease).duration(n.duration).attr(&quot;transform&quot;,C);var U=j.selectAll(&quot;.&quot;+n.cn.nodeLabelGuide).data(g);U.enter().append(&quot;path&quot;).classed(n.cn.nodeLabelGuide,!0).attr(&quot;id&quot;,(function(t){return t.uniqueNodeLabelPathId})).attr(&quot;d&quot;,L).attr(&quot;transform&quot;,I),U.transition().ease(n.ease).duration(n.duration).attr(&quot;d&quot;,L).attr(&quot;transform&quot;,I);var V=j.selectAll(&quot;.&quot;+n.cn.nodeLabel).data(g);V.enter().append(&quot;text&quot;).classed(n.cn.nodeLabel,!0).attr(&quot;transform&quot;,P).style(&quot;cursor&quot;,&quot;default&quot;).style(&quot;fill&quot;,&quot;black&quot;),V.style(&quot;text-shadow&quot;,(function(t){return t.horizontal?&quot;-1px 1px 1px #fff, 1px 1px 1px #fff, 1px -1px 1px #fff, -1px -1px 1px #fff&quot;:&quot;none&quot;})).each((function(t){s.font(V,t.textFont)})),V.transition().ease(n.ease).duration(n.duration).attr(&quot;transform&quot;,P);var q=V.selectAll(&quot;.&quot;+n.cn.nodeLabelTextPath).data(g);q.enter().append(&quot;textPath&quot;).classed(n.cn.nodeLabelTextPath,!0).attr(&quot;alignment-baseline&quot;,&quot;middle&quot;).attr(&quot;xlink:href&quot;,(function(t){return&quot;#&quot;+t.uniqueNodeLabelPathId})).attr(&quot;startOffset&quot;,O).style(&quot;fill&quot;,z),q.text((function(t){return t.horizontal||t.node.dy&gt;5?t.node.label:&quot;&quot;})).attr(&quot;text-anchor&quot;,(function(t){return t.horizontal&amp;&amp;t.left?&quot;end&quot;:&quot;start&quot;})),q.transition().ease(n.ease).duration(n.duration).attr(&quot;startOffset&quot;,O).style(&quot;fill&quot;,z)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;../../registry&quot;:911,&quot;./constants&quot;:1180,&quot;@plotly/d3-sankey&quot;:56,&quot;@plotly/d3-sankey-circular&quot;:55,d3:169,&quot;d3-force&quot;:160,&quot;d3-interpolate&quot;:162,tinycolor2:576}],1185:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){for(var r=[],n=t.cd[0].trace,i=n._sankey.graph.nodes,a=0;a&lt;i.length;a++){var o=i[a];if(!o.partOfGroup){var s=[(o.x0+o.x1)/2,(o.y0+o.y1)/2];&quot;v&quot;===n.orientation&amp;&amp;s.reverse(),e&amp;&amp;e.contains(s,!1,a,t)&amp;&amp;r.push({pointNumber:o.pointNumber})}}return r}},{}],1186:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){for(var r=0;r&lt;t.length;r++)t[r].i=r;n.mergeArray(e.text,t,&quot;tx&quot;),n.mergeArray(e.texttemplate,t,&quot;txt&quot;),n.mergeArray(e.hovertext,t,&quot;htx&quot;),n.mergeArray(e.customdata,t,&quot;data&quot;),n.mergeArray(e.textposition,t,&quot;tp&quot;),e.textfont&amp;&amp;(n.mergeArrayCastPositive(e.textfont.size,t,&quot;ts&quot;),n.mergeArray(e.textfont.color,t,&quot;tc&quot;),n.mergeArray(e.textfont.family,t,&quot;tf&quot;));var i=e.marker;if(i){n.mergeArrayCastPositive(i.size,t,&quot;ms&quot;),n.mergeArrayCastPositive(i.opacity,t,&quot;mo&quot;),n.mergeArray(i.symbol,t,&quot;mx&quot;),n.mergeArray(i.color,t,&quot;mc&quot;);var a=i.line;i.line&amp;&amp;(n.mergeArray(a.color,t,&quot;mlc&quot;),n.mergeArrayCastPositive(a.width,t,&quot;mlw&quot;));var o=i.gradient;o&amp;&amp;&quot;none&quot;!==o.type&amp;&amp;(n.mergeArray(o.type,t,&quot;mgt&quot;),n.mergeArray(o.color,t,&quot;mgc&quot;))}}},{&quot;../../lib&quot;:778}],1187:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../components/drawing/attributes&quot;).dash,l=t(&quot;../../components/drawing&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},x0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},dx:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;,anim:!0},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},y0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;,anim:!0},dy:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;,anim:!0},xperiod:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},yperiod:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},xperiod0:{valType:&quot;any&quot;,editType:&quot;calc&quot;},yperiod0:{valType:&quot;any&quot;,editType:&quot;calc&quot;},xperiodalignment:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;middle&quot;,&quot;end&quot;],dflt:&quot;middle&quot;,editType:&quot;calc&quot;},yperiodalignment:{valType:&quot;enumerated&quot;,values:[&quot;start&quot;,&quot;middle&quot;,&quot;end&quot;],dflt:&quot;middle&quot;,editType:&quot;calc&quot;},stackgroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},orientation:{valType:&quot;enumerated&quot;,values:[&quot;v&quot;,&quot;h&quot;],editType:&quot;calc&quot;},groupnorm:{valType:&quot;enumerated&quot;,values:[&quot;&quot;,&quot;fraction&quot;,&quot;percent&quot;],dflt:&quot;&quot;,editType:&quot;calc&quot;},stackgaps:{valType:&quot;enumerated&quot;,values:[&quot;infer zero&quot;,&quot;interpolate&quot;],dflt:&quot;infer zero&quot;,editType:&quot;calc&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;calc&quot;},texttemplate:n({},{}),hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0,editType:&quot;style&quot;},mode:{valType:&quot;flaglist&quot;,flags:[&quot;lines&quot;,&quot;markers&quot;,&quot;text&quot;],extras:[&quot;none&quot;],editType:&quot;calc&quot;},hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;points&quot;,&quot;fills&quot;],editType:&quot;style&quot;},hovertemplate:i({},{keys:c.eventDataKeys}),line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;,anim:!0},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;,anim:!0},shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;spline&quot;,&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},smoothing:{valType:&quot;number&quot;,min:0,max:1.3,dflt:1,editType:&quot;plot&quot;},dash:u({},s,{editType:&quot;style&quot;}),simplify:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},connectgaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},cliponaxis:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},fill:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;tozeroy&quot;,&quot;tozerox&quot;,&quot;tonexty&quot;,&quot;tonextx&quot;,&quot;toself&quot;,&quot;tonext&quot;],editType:&quot;calc&quot;},fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;,anim:!0},marker:u({symbol:{valType:&quot;enumerated&quot;,values:l.symbolList,dflt:&quot;circle&quot;,arrayOk:!0,editType:&quot;style&quot;},opacity:{valType:&quot;number&quot;,min:0,max:1,arrayOk:!0,editType:&quot;style&quot;,anim:!0},size:{valType:&quot;number&quot;,min:0,dflt:6,arrayOk:!0,editType:&quot;calc&quot;,anim:!0},maxdisplayed:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;plot&quot;},sizeref:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},sizemin:{valType:&quot;number&quot;,min:0,dflt:0,editType:&quot;calc&quot;},sizemode:{valType:&quot;enumerated&quot;,values:[&quot;diameter&quot;,&quot;area&quot;],dflt:&quot;diameter&quot;,editType:&quot;calc&quot;},line:u({width:{valType:&quot;number&quot;,min:0,arrayOk:!0,editType:&quot;style&quot;,anim:!0},editType:&quot;calc&quot;},a(&quot;marker.line&quot;,{anim:!0})),gradient:{type:{valType:&quot;enumerated&quot;,values:[&quot;radial&quot;,&quot;horizontal&quot;,&quot;vertical&quot;,&quot;none&quot;],arrayOk:!0,dflt:&quot;none&quot;,editType:&quot;calc&quot;},color:{valType:&quot;color&quot;,arrayOk:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},a(&quot;marker&quot;,{anim:!0})),selected:{marker:{opacity:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},size:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},textfont:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;},unselected:{marker:{opacity:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;style&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},size:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},textfont:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;},textposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle left&quot;,&quot;middle center&quot;,&quot;middle right&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],dflt:&quot;middle center&quot;,arrayOk:!0,editType:&quot;calc&quot;},textfont:o({editType:&quot;calc&quot;,colorEditType:&quot;style&quot;,arrayOk:!0}),r:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},t:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;}}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing&quot;:665,&quot;../../components/drawing/attributes&quot;:664,&quot;../../lib/extend&quot;:768,&quot;../../plots/font_attributes&quot;:856,&quot;../../plots/template_attributes&quot;:906,&quot;./constants&quot;:1191}],1188:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../../plots/cartesian/align_period&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM,l=t(&quot;./subtypes&quot;),c=t(&quot;./colorscale_calc&quot;),u=t(&quot;./arrays_to_calcdata&quot;),f=t(&quot;./calc_selection&quot;);function h(t,e,r,n,i,o,s){var c=e._length,u=t._fullLayout,f=r._id,h=n._id,p=u._firstScatter[g(e)]===e.uid,d=(m(e,u,r,n)||{}).orientation,v=e.fill;r._minDtick=0,n._minDtick=0;var y={padded:!0},x={padded:!0};s&amp;&amp;(y.ppad=x.ppad=s);var b=c&lt;2||i[0]!==i[c-1]||o[0]!==o[c-1];b&amp;&amp;(&quot;tozerox&quot;===v||&quot;tonextx&quot;===v&amp;&amp;(p||&quot;h&quot;===d))?y.tozero=!0:(e.error_y||{}).visible||&quot;tonexty&quot;!==v&amp;&amp;&quot;tozeroy&quot;!==v&amp;&amp;(l.hasMarkers(e)||l.hasText(e))||(y.padded=!1,y.ppad=0),b&amp;&amp;(&quot;tozeroy&quot;===v||&quot;tonexty&quot;===v&amp;&amp;(p||&quot;v&quot;===d))?x.tozero=!0:&quot;tonextx&quot;!==v&amp;&amp;&quot;tozerox&quot;!==v||(x.padded=!1),f&amp;&amp;(e._extremes[f]=a.findExtremes(r,i,y)),h&amp;&amp;(e._extremes[h]=a.findExtremes(n,o,x))}function p(t,e){if(l.hasMarkers(t)){var r,n=t.marker,o=1.6*(t.marker.sizeref||1);if(r=&quot;area&quot;===t.marker.sizemode?function(t){return Math.max(Math.sqrt((t||0)/o),3)}:function(t){return Math.max((t||0)/o,3)},i.isArrayOrTypedArray(n.size)){var s={type:&quot;linear&quot;};a.setConvert(s);for(var c=s.makeCalcdata(t.marker,&quot;size&quot;),u=new Array(e),f=0;f&lt;e;f++)u[f]=r(c[f]);return u}return r(n.size)}}function d(t,e){var r=g(e),n=t._firstScatter;n[r]||(n[r]=e.uid)}function g(t){var e=t.stackgroup;return t.xaxis+t.yaxis+t.type+(e?&quot;-&quot;+e:&quot;&quot;)}function m(t,e,r,n){var i=t.stackgroup;if(i){var a=e._scatterStackOpts[r._id+n._id][i],o=&quot;v&quot;===a.orientation?n:r;return&quot;linear&quot;===o.type||&quot;log&quot;===o.type?a:void 0}}e.exports={calc:function(t,e){var r,l,g,v,y,x,b=t._fullLayout,_=a.getFromId(t,e.xaxis||&quot;x&quot;),w=a.getFromId(t,e.yaxis||&quot;y&quot;),T=_.makeCalcdata(e,&quot;x&quot;),k=w.makeCalcdata(e,&quot;y&quot;),M=o(e,_,&quot;x&quot;,T),A=o(e,w,&quot;y&quot;,k),S=e._length,E=new Array(S),C=e.ids,L=m(e,b,_,w),I=!1;d(b,e);var P,z=&quot;x&quot;,O=&quot;y&quot;;L?(i.pushUnique(L.traceIndices,e._expandedIndex),(r=&quot;v&quot;===L.orientation)?(O=&quot;s&quot;,P=&quot;x&quot;):(z=&quot;s&quot;,P=&quot;y&quot;),y=&quot;interpolate&quot;===L.stackgaps):h(t,e,_,w,M,A,p(e,S));var D=!!e.xperiodalignment,R=!!e.yperiodalignment;for(l=0;l&lt;S;l++){var F=E[l]={},B=n(M[l]),N=n(A[l]);B&amp;&amp;N?(F[z]=M[l],F[O]=A[l],D&amp;&amp;(F.orig_x=T[l]),R&amp;&amp;(F.orig_y=k[l])):L&amp;&amp;(r?B:N)?(F[P]=r?M[l]:A[l],F.gap=!0,y?(F.s=s,I=!0):F.s=0):F[z]=F[O]=s,C&amp;&amp;(F.id=String(C[l]))}if(u(E,e),c(t,e),f(E,e),L){for(l=0;l&lt;E.length;)E[l][P]===s?E.splice(l,1):l++;if(i.sort(E,(function(t,e){return t[P]-e[P]||t.i-e.i})),I){for(l=0;l&lt;E.length-1&amp;&amp;E[l].gap;)l++;for((x=E[l].s)||(x=E[l].s=0),g=0;g&lt;l;g++)E[g].s=x;for(v=E.length-1;v&gt;l&amp;&amp;E[v].gap;)v--;for(x=E[v].s,g=E.length-1;g&gt;v;g--)E[g].s=x;for(;l&lt;v;)if(E[++l].gap){for(g=l+1;E[g].gap;)g++;for(var j=E[l-1][P],U=E[l-1].s,V=(E[g].s-U)/(E[g][P]-j);l&lt;g;)E[l].s=U+(E[l][P]-j)*V,l++}}}return E},calcMarkerSize:p,calcAxisExpansion:h,setFirstScatter:d,getStackOpts:m}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;./arrays_to_calcdata&quot;:1186,&quot;./calc_selection&quot;:1189,&quot;./colorscale_calc&quot;:1190,&quot;./subtypes&quot;:1212,&quot;fast-isnumeric&quot;:241}],1189:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){n.isArrayOrTypedArray(e.selectedpoints)&amp;&amp;n.tagSelected(t,e)}},{&quot;../../lib&quot;:778}],1190:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,i=t(&quot;../../components/colorscale/calc&quot;),a=t(&quot;./subtypes&quot;);e.exports=function(t,e){a.hasLines(e)&amp;&amp;n(e,&quot;line&quot;)&amp;&amp;i(t,e,{vals:e.line.color,containerStr:&quot;line&quot;,cLetter:&quot;c&quot;}),a.hasMarkers(e)&amp;&amp;(n(e,&quot;marker&quot;)&amp;&amp;i(t,e,{vals:e.marker.color,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),n(e,&quot;marker.line&quot;)&amp;&amp;i(t,e,{vals:e.marker.line.color,containerStr:&quot;marker.line&quot;,cLetter:&quot;c&quot;}))}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../components/colorscale/helpers&quot;:654,&quot;./subtypes&quot;:1212}],1191:[function(t,e,r){&quot;use strict&quot;;e.exports={PTS_LINESONLY:20,minTolerance:.2,toleranceGrowth:10,maxScreensAway:20,eventDataKeys:[]}},{}],1192:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./calc&quot;);function i(t,e,r,n,i,a,o){i[n]=!0;var s={i:null,gap:!0,s:0};if(s[o]=r,t.splice(e,0,s),e&amp;&amp;r===t[e-1][o]){var l=t[e-1];s.s=l.s,s.i=l.i,s.gap=l.gap}else a&amp;&amp;(s.s=function(t,e,r,n){var i=t[e-1],a=t[e+1];return a?i?i.s+(a.s-i.s)*(r-i[n])/(a[n]-i[n]):a.s:i.s}(t,e,r,o));e||(t[0].t=t[1].t,t[0].trace=t[1].trace,delete t[1].t,delete t[1].trace)}e.exports=function(t,e){var r=e.xaxis,a=e.yaxis,o=r._id+a._id,s=t._fullLayout._scatterStackOpts[o];if(s){var l,c,u,f,h,p,d,g,m,v,y,x,b,_,w,T=t.calcdata;for(var k in s){var M=(v=s[k]).traceIndices;if(M.length){for(y=&quot;interpolate&quot;===v.stackgaps,x=v.groupnorm,&quot;v&quot;===v.orientation?(b=&quot;x&quot;,_=&quot;y&quot;):(b=&quot;y&quot;,_=&quot;x&quot;),w=new Array(M.length),l=0;l&lt;w.length;l++)w[l]=!1;p=T[M[0]];var A=new Array(p.length);for(l=0;l&lt;p.length;l++)A[l]=p[l][b];for(l=1;l&lt;M.length;l++){for(h=T[M[l]],c=u=0;c&lt;h.length;c++){for(d=h[c][b];d&gt;A[u]&amp;&amp;u&lt;A.length;u++)i(h,c,A[u],l,w,y,b),c++;if(d!==A[u]){for(f=0;f&lt;l;f++)i(T[M[f]],u,d,f,w,y,b);A.splice(u,0,d)}u++}for(;u&lt;A.length;u++)i(h,c,A[u],l,w,y,b),c++}var S=A.length;for(c=0;c&lt;p.length;c++){for(g=p[c][_]=p[c].s,l=1;l&lt;M.length;l++)(h=T[M[l]])[0].trace._rawLength=h[0].trace._length,h[0].trace._length=S,g+=h[c].s,h[c][_]=g;if(x)for(m=(&quot;fraction&quot;===x?g:g/100)||1,l=0;l&lt;M.length;l++){var E=T[M[l]][c];E[_]/=m,E.sNorm=E.s/m}}for(l=0;l&lt;M.length;l++){var C=(h=T[M[l]])[0].trace,L=n.calcMarkerSize(C,C._rawLength),I=Array.isArray(L);if(L&amp;&amp;w[l]||I){var P=L;for(L=new Array(S),c=0;c&lt;S;c++)L[c]=h[c].gap?0:I?P[h[c].i]:P}var z=new Array(S),O=new Array(S);for(c=0;c&lt;S;c++)z[c]=h[c].x,O[c]=h[c].y;n.calcAxisExpansion(t,C,r,a,z,O,L),h[0].t.orientation=v.orientation}}}}}},{&quot;./calc&quot;:1188}],1193:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t){for(var e=0;e&lt;t.length;e++){var r=t[e];if(&quot;scatter&quot;===r.type){var n=r.fill;if(&quot;none&quot;!==n&amp;&amp;&quot;toself&quot;!==n&amp;&amp;(r.opacity=void 0,&quot;tonexty&quot;===n||&quot;tonextx&quot;===n))for(var i=e-1;i&gt;=0;i--){var a=t[i];if(&quot;scatter&quot;===a.type&amp;&amp;a.xaxis===r.xaxis&amp;&amp;a.yaxis===r.yaxis){a.opacity=void 0;break}}}}}},{}],1194:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;./constants&quot;),s=t(&quot;./subtypes&quot;),l=t(&quot;./xy_defaults&quot;),c=t(&quot;./period_defaults&quot;),u=t(&quot;./stack_defaults&quot;),f=t(&quot;./marker_defaults&quot;),h=t(&quot;./line_defaults&quot;),p=t(&quot;./line_shape_defaults&quot;),d=t(&quot;./text_defaults&quot;),g=t(&quot;./fillcolor_defaults&quot;);e.exports=function(t,e,r,m){function v(r,i){return n.coerce(t,e,a,r,i)}var y=l(t,e,m,v);if(y||(e.visible=!1),e.visible){c(t,e,m,v);var x=u(t,e,m,v),b=!x&amp;&amp;y&lt;o.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;;v(&quot;text&quot;),v(&quot;hovertext&quot;),v(&quot;mode&quot;,b),s.hasLines(e)&amp;&amp;(h(t,e,r,m,v),p(t,e,v),v(&quot;connectgaps&quot;),v(&quot;line.simplify&quot;)),s.hasMarkers(e)&amp;&amp;f(t,e,r,m,v,{gradient:!0}),s.hasText(e)&amp;&amp;(v(&quot;texttemplate&quot;),d(t,e,m,v));var _=[];(s.hasMarkers(e)||s.hasText(e))&amp;&amp;(v(&quot;cliponaxis&quot;),v(&quot;marker.maxdisplayed&quot;),_.push(&quot;points&quot;)),v(&quot;fill&quot;,x?x.fillDflt:&quot;none&quot;),&quot;none&quot;!==e.fill&amp;&amp;(g(t,e,r,v),s.hasLines(e)||p(t,e,v));var w=(e.line||{}).color,T=(e.marker||{}).color;&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||_.push(&quot;fills&quot;),v(&quot;hoveron&quot;,_.join(&quot;+&quot;)||&quot;points&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;v(&quot;hovertemplate&quot;);var k=i.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);k(t,e,w||T||r,{axis:&quot;y&quot;}),k(t,e,w||T||r,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,v)}}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1187,&quot;./constants&quot;:1191,&quot;./fillcolor_defaults&quot;:1195,&quot;./line_defaults&quot;:1200,&quot;./line_shape_defaults&quot;:1202,&quot;./marker_defaults&quot;:1206,&quot;./period_defaults&quot;:1207,&quot;./stack_defaults&quot;:1210,&quot;./subtypes&quot;:1212,&quot;./text_defaults&quot;:1213,&quot;./xy_defaults&quot;:1214}],1195:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../lib&quot;).isArrayOrTypedArray;e.exports=function(t,e,r,a){var o=!1;if(e.marker){var s=e.marker.color,l=(e.marker.line||{}).color;s&amp;&amp;!i(s)?o=s:l&amp;&amp;!i(l)&amp;&amp;(o=l)}a(&quot;fillcolor&quot;,n.addOpacity((e.line||{}).color||o||r,.5))}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778}],1196:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a={_fullLayout:r},o=n.getFromTrace(a,e,&quot;x&quot;),s=n.getFromTrace(a,e,&quot;y&quot;);return i.xLabel=n.tickText(o,t.x,!0).text,i.yLabel=n.tickText(s,t.y,!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1197:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;./subtypes&quot;);e.exports=function(t,e){var r,a;if(&quot;lines&quot;===t.mode)return(r=t.line.color)&amp;&amp;n.opacity(r)?r:t.fillcolor;if(&quot;none&quot;===t.mode)return t.fill?t.fillcolor:&quot;&quot;;var o=e.mcc||(t.marker||{}).color,s=e.mlcc||((t.marker||{}).line||{}).color;return(a=o&amp;&amp;n.opacity(o)?o:s&amp;&amp;n.opacity(s)&amp;&amp;(e.mlw||((t.marker||{}).line||{}).width)?s:&quot;&quot;)?n.opacity(a)&lt;.3?n.addOpacity(a,.3):a:(r=(t.line||{}).color)&amp;&amp;n.opacity(r)&amp;&amp;i.hasLines(t)&amp;&amp;t.line.width?r:t.fillcolor}},{&quot;../../components/color&quot;:643,&quot;./subtypes&quot;:1212}],1198:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/fx&quot;),a=t(&quot;../../registry&quot;),o=t(&quot;./get_trace_color&quot;),s=t(&quot;../../components/color&quot;),l=n.fillText;e.exports=function(t,e,r,c){var u=t.cd,f=u[0].trace,h=t.xa,p=t.ya,d=h.c2p(e),g=p.c2p(r),m=[d,g],v=f.hoveron||&quot;&quot;,y=-1!==f.mode.indexOf(&quot;markers&quot;)?3:.5;if(-1!==v.indexOf(&quot;points&quot;)){var x=function(t){var e=Math.max(y,t.mrc||0),r=h.c2p(t.x)-d,n=p.c2p(t.y)-g;return Math.max(Math.sqrt(r*r+n*n)-e,1-y/e)},b=i.getDistanceFunction(c,(function(t){var e=Math.max(3,t.mrc||0),r=1-1/e,n=Math.abs(h.c2p(t.x)-d);return n&lt;e?r*n/e:n-e+r}),(function(t){var e=Math.max(3,t.mrc||0),r=1-1/e,n=Math.abs(p.c2p(t.y)-g);return n&lt;e?r*n/e:n-e+r}),x);if(i.getClosest(u,b,t),!1!==t.index){var _=u[t.index],w=h.c2p(_.x,!0),T=p.c2p(_.y,!0),k=_.mrc||1;t.index=_.i;var M=u[0].t.orientation,A=M&amp;&amp;(_.sNorm||_.s),S=&quot;h&quot;===M?A:void 0!==_.orig_x?_.orig_x:_.x,E=&quot;v&quot;===M?A:void 0!==_.orig_y?_.orig_y:_.y;return n.extendFlat(t,{color:o(f,_),x0:w-k,x1:w+k,xLabelVal:S,y0:T-k,y1:T+k,yLabelVal:E,spikeDistance:x(_),hovertemplate:f.hovertemplate}),l(_,f,t),a.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(_,f,t),[t]}}if(-1!==v.indexOf(&quot;fills&quot;)&amp;&amp;f._polygons){var C,L,I,P,z,O,D,R,F,B=f._polygons,N=[],j=!1,U=1/0,V=-1/0,q=1/0,H=-1/0;for(C=0;C&lt;B.length;C++)(I=B[C]).contains(m)&amp;&amp;(j=!j,N.push(I),q=Math.min(q,I.ymin),H=Math.max(H,I.ymax));if(j){var G=((q=Math.max(q,0))+(H=Math.min(H,p._length)))/2;for(C=0;C&lt;N.length;C++)for(P=N[C].pts,L=1;L&lt;P.length;L++)(R=P[L-1][1])&gt;G!=(F=P[L][1])&gt;=G&amp;&amp;(O=P[L-1][0],D=P[L][0],F-R&amp;&amp;(z=O+(D-O)*(G-R)/(F-R),U=Math.min(U,z),V=Math.max(V,z)));U=Math.max(U,0),V=Math.min(V,h._length);var Y=s.defaultLine;return s.opacity(f.fillcolor)?Y=f.fillcolor:s.opacity((f.line||{}).color)&amp;&amp;(Y=f.line.color),n.extendFlat(t,{distance:t.maxHoverDistance,x0:U,x1:V,y0:G,y1:G,color:Y,hovertemplate:!1}),delete t.index,f.text&amp;&amp;!Array.isArray(f.text)?t.text=String(f.text):t.text=f.name,[t]}}}},{&quot;../../components/color&quot;:643,&quot;../../components/fx&quot;:683,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./get_trace_color&quot;:1197}],1199:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./subtypes&quot;);e.exports={hasLines:n.hasLines,hasMarkers:n.hasMarkers,hasText:n.hasText,isBubble:n.isBubble,attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;./cross_trace_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./cross_trace_calc&quot;),arraysToCalcdata:t(&quot;./arrays_to_calcdata&quot;),plot:t(&quot;./plot&quot;),colorbar:t(&quot;./marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),style:t(&quot;./style&quot;).style,styleOnSelect:t(&quot;./style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;./select&quot;),animatable:!0,moduleType:&quot;trace&quot;,name:&quot;scatter&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;./arrays_to_calcdata&quot;:1186,&quot;./attributes&quot;:1187,&quot;./calc&quot;:1188,&quot;./cross_trace_calc&quot;:1192,&quot;./cross_trace_defaults&quot;:1193,&quot;./defaults&quot;:1194,&quot;./format_labels&quot;:1196,&quot;./hover&quot;:1198,&quot;./marker_colorbar&quot;:1205,&quot;./plot&quot;:1208,&quot;./select&quot;:1209,&quot;./style&quot;:1211,&quot;./subtypes&quot;:1212}],1200:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).isArrayOrTypedArray,i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;);e.exports=function(t,e,r,o,s,l){var c=(t.marker||{}).color;(s(&quot;line.color&quot;,r),i(t,&quot;line&quot;))?a(t,e,o,s,{prefix:&quot;line.&quot;,cLetter:&quot;c&quot;}):s(&quot;line.color&quot;,!n(c)&amp;&amp;c||r);s(&quot;line.width&quot;),(l||{}).noDash||s(&quot;line.dash&quot;)}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;../../lib&quot;:778}],1201:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../constants/numerical&quot;),i=n.BADNUM,a=n.LOG_CLIP,o=a+.5,s=a-.5,l=t(&quot;../../lib&quot;),c=l.segmentsIntersect,u=l.constrain,f=t(&quot;./constants&quot;);e.exports=function(t,e){var r,n,a,h,p,d,g,m,v,y,x,b,_,w,T,k,M,A,S=e.xaxis,E=e.yaxis,C=&quot;log&quot;===S.type,L=&quot;log&quot;===E.type,I=S._length,P=E._length,z=e.connectGaps,O=e.baseTolerance,D=e.shape,R=&quot;linear&quot;===D,F=e.fill&amp;&amp;&quot;none&quot;!==e.fill,B=[],N=f.minTolerance,j=t.length,U=new Array(j),V=0;function q(r){var n=t[r];if(!n)return!1;var a=e.linearized?S.l2p(n.x):S.c2p(n.x),l=e.linearized?E.l2p(n.y):E.c2p(n.y);if(a===i){if(C&amp;&amp;(a=S.c2p(n.x,!0)),a===i)return!1;L&amp;&amp;l===i&amp;&amp;(a*=Math.abs(S._m*P*(S._m&gt;0?o:s)/(E._m*I*(E._m&gt;0?o:s)))),a*=1e3}if(l===i){if(L&amp;&amp;(l=E.c2p(n.y,!0)),l===i)return!1;l*=1e3}return[a,l]}function H(t,e,r,n){var i=r-t,a=n-e,o=.5-t,s=.5-e,l=i*i+a*a,c=i*o+a*s;if(c&gt;0&amp;&amp;c&lt;l){var u=o*a-s*i;if(u*u&lt;l)return!0}}function G(t,e){var r=t[0]/I,n=t[1]/P,i=Math.max(0,-r,r-1,-n,n-1);return i&amp;&amp;void 0!==M&amp;&amp;H(r,n,M,A)&amp;&amp;(i=0),i&amp;&amp;e&amp;&amp;H(r,n,e[0]/I,e[1]/P)&amp;&amp;(i=0),(1+f.toleranceGrowth*i)*O}function Y(t,e){var r=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(r*r+n*n)}var W,X,Z,J,K,Q,$,tt=f.maxScreensAway,et=-I*tt,rt=I*(1+tt),nt=-P*tt,it=P*(1+tt),at=[[et,nt,rt,nt],[rt,nt,rt,it],[rt,it,et,it],[et,it,et,nt]];function ot(t){if(t[0]&lt;et||t[0]&gt;rt||t[1]&lt;nt||t[1]&gt;it)return[u(t[0],et,rt),u(t[1],nt,it)]}function st(t,e){return t[0]===e[0]&amp;&amp;(t[0]===et||t[0]===rt)||(t[1]===e[1]&amp;&amp;(t[1]===nt||t[1]===it)||void 0)}function lt(t,e,r){return function(n,i){var a=ot(n),o=ot(i),s=[];if(a&amp;&amp;o&amp;&amp;st(a,o))return s;a&amp;&amp;s.push(a),o&amp;&amp;s.push(o);var c=2*l.constrain((n[t]+i[t])/2,e,r)-((a||n)[t]+(o||i)[t]);c&amp;&amp;((a&amp;&amp;o?c&gt;0==a[t]&gt;o[t]?a:o:a||o)[t]+=c);return s}}function ct(t){var e=t[0],r=t[1],n=e===U[V-1][0],i=r===U[V-1][1];if(!n||!i)if(V&gt;1){var a=e===U[V-2][0],o=r===U[V-2][1];n&amp;&amp;(e===et||e===rt)&amp;&amp;a?o?V--:U[V-1]=t:i&amp;&amp;(r===nt||r===it)&amp;&amp;o?a?V--:U[V-1]=t:U[V++]=t}else U[V++]=t}function ut(t){U[V-1][0]!==t[0]&amp;&amp;U[V-1][1]!==t[1]&amp;&amp;ct([Z,J]),ct(t),K=null,Z=J=0}function ft(t){if(M=t[0]/I,A=t[1]/P,W=t[0]&lt;et?et:t[0]&gt;rt?rt:0,X=t[1]&lt;nt?nt:t[1]&gt;it?it:0,W||X){if(V)if(K){var e=$(K,t);e.length&gt;1&amp;&amp;(ut(e[0]),U[V++]=e[1])}else Q=$(U[V-1],t)[0],U[V++]=Q;else U[V++]=[W||t[0],X||t[1]];var r=U[V-1];W&amp;&amp;X&amp;&amp;(r[0]!==W||r[1]!==X)?(K&amp;&amp;(Z!==W&amp;&amp;J!==X?ct(Z&amp;&amp;J?(n=K,a=(i=t)[0]-n[0],o=(i[1]-n[1])/a,(n[1]*i[0]-i[1]*n[0])/a&gt;0?[o&gt;0?et:rt,it]:[o&gt;0?rt:et,nt]):[Z||W,J||X]):Z&amp;&amp;J&amp;&amp;ct([Z,J])),ct([W,X])):Z-W&amp;&amp;J-X&amp;&amp;ct([W||Z,X||J]),K=t,Z=W,J=X}else K&amp;&amp;ut($(K,t)[0]),U[V++]=t;var n,i,a,o}for(&quot;linear&quot;===D||&quot;spline&quot;===D?$=function(t,e){for(var r=[],n=0,i=0;i&lt;4;i++){var a=at[i],o=c(t[0],t[1],e[0],e[1],a[0],a[1],a[2],a[3]);o&amp;&amp;(!n||Math.abs(o.x-r[0][0])&gt;1||Math.abs(o.y-r[0][1])&gt;1)&amp;&amp;(o=[o.x,o.y],n&amp;&amp;Y(o,t)&lt;Y(r[0],t)?r.unshift(o):r.push(o),n++)}return r}:&quot;hv&quot;===D||&quot;vh&quot;===D?$=function(t,e){var r=[],n=ot(t),i=ot(e);return n&amp;&amp;i&amp;&amp;st(n,i)||(n&amp;&amp;r.push(n),i&amp;&amp;r.push(i)),r}:&quot;hvh&quot;===D?$=lt(0,et,rt):&quot;vhv&quot;===D&amp;&amp;($=lt(1,nt,it)),r=0;r&lt;j;r++)if(n=q(r)){for(V=0,K=null,ft(n),r++;r&lt;j;r++){if(!(h=q(r))){if(z)continue;break}if(R&amp;&amp;e.simplify){var ht=q(r+1);if(y=Y(h,n),F&amp;&amp;(0===V||V===j-1)||!(y&lt;G(h,ht)*N)){for(m=[(h[0]-n[0])/y,(h[1]-n[1])/y],p=n,x=y,b=w=T=0,g=!1,a=h,r++;r&lt;t.length;r++){if(d=ht,ht=q(r+1),!d){if(z)continue;break}if(k=(v=[d[0]-n[0],d[1]-n[1]])[0]*m[1]-v[1]*m[0],w=Math.min(w,k),(T=Math.max(T,k))-w&gt;G(d,ht))break;a=d,(_=v[0]*m[0]+v[1]*m[1])&gt;x?(x=_,h=d,g=!1):_&lt;b&amp;&amp;(b=_,p=d,g=!0)}if(g?(ft(h),a!==p&amp;&amp;ft(p)):(p!==n&amp;&amp;ft(p),a!==h&amp;&amp;ft(h)),ft(a),r&gt;=t.length||!d)break;ft(d),n=d}}else ft(h)}K&amp;&amp;ct([Z||K[0],J||K[1]]),B.push(U.slice(0,V))}return B}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;./constants&quot;:1191}],1202:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r){&quot;spline&quot;===r(&quot;line.shape&quot;)&amp;&amp;r(&quot;line.smoothing&quot;)}},{}],1203:[function(t,e,r){&quot;use strict&quot;;var n={tonextx:1,tonexty:1,tonext:1};e.exports=function(t,e,r){var i,a,o,s,l,c={},u=!1,f=-1,h=0,p=-1;for(a=0;a&lt;r.length;a++)(o=(i=r[a][0].trace).stackgroup||&quot;&quot;)?o in c?l=c[o]:(l=c[o]=h,h++):i.fill in n&amp;&amp;p&gt;=0?l=p:(l=p=h,h++),l&lt;f&amp;&amp;(u=!0),i._groupIndex=f=l;var d=r.slice();u&amp;&amp;d.sort((function(t,e){var r=t[0].trace,n=e[0].trace;return r._groupIndex-n._groupIndex||r.index-n.index}));var g={};for(a=0;a&lt;d.length;a++)o=(i=d[a][0].trace).stackgroup||&quot;&quot;,!0===i.visible?(i._nexttrace=null,i.fill in n&amp;&amp;(s=g[o],i._prevtrace=s||null,s&amp;&amp;(s._nexttrace=i)),i._ownfill=i.fill&amp;&amp;(&quot;tozero&quot;===i.fill.substr(0,6)||&quot;toself&quot;===i.fill||&quot;to&quot;===i.fill.substr(0,2)&amp;&amp;!i._prevtrace),g[o]=i):i._prevtrace=i._nexttrace=i._ownfill=null;return d}},{}],1204:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;);e.exports=function(t){var e=t.marker,r=e.sizeref||1,i=e.sizemin||0,a=&quot;area&quot;===e.sizemode?function(t){return Math.sqrt(t/r)}:function(t){return t/r};return function(t){var e=a(t/2);return n(e)&amp;&amp;e&gt;0?Math.max(e,i):0}}},{&quot;fast-isnumeric&quot;:241}],1205:[function(t,e,r){&quot;use strict&quot;;e.exports={container:&quot;marker&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;}},{}],1206:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/helpers&quot;).hasColorscale,a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./subtypes&quot;);e.exports=function(t,e,r,s,l,c){var u=o.isBubble(t),f=(t.line||{}).color;(c=c||{},f&amp;&amp;(r=f),l(&quot;marker.symbol&quot;),l(&quot;marker.opacity&quot;,u?.7:1),l(&quot;marker.size&quot;),l(&quot;marker.color&quot;,r),i(t,&quot;marker&quot;)&amp;&amp;a(t,e,s,l,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),c.noSelect||(l(&quot;selected.marker.color&quot;),l(&quot;unselected.marker.color&quot;),l(&quot;selected.marker.size&quot;),l(&quot;unselected.marker.size&quot;)),c.noLine||(l(&quot;marker.line.color&quot;,f&amp;&amp;!Array.isArray(f)&amp;&amp;e.marker.color!==f?f:u?n.background:n.defaultLine),i(t,&quot;marker.line&quot;)&amp;&amp;a(t,e,s,l,{prefix:&quot;marker.line.&quot;,cLetter:&quot;c&quot;}),l(&quot;marker.line.width&quot;,u?1:0)),u&amp;&amp;(l(&quot;marker.sizeref&quot;),l(&quot;marker.sizemin&quot;),l(&quot;marker.sizemode&quot;)),c.gradient)&amp;&amp;(&quot;none&quot;!==l(&quot;marker.gradient.type&quot;)&amp;&amp;l(&quot;marker.gradient.color&quot;))}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale/defaults&quot;:653,&quot;../../components/colorscale/helpers&quot;:654,&quot;./subtypes&quot;:1212}],1207:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;).dateTick0,i=t(&quot;../../constants/numerical&quot;).ONEWEEK;function a(t,e){return n(e,t%i==0?1:0)}e.exports=function(t,e,r,n,i){if(i||(i={x:!0,y:!0}),i.x){var o=n(&quot;xperiod&quot;);o&amp;&amp;(n(&quot;xperiod0&quot;,a(o,e.xcalendar)),n(&quot;xperiodalignment&quot;))}if(i.y){var s=n(&quot;yperiod&quot;);s&amp;&amp;(n(&quot;yperiod0&quot;,a(s,e.ycalendar)),n(&quot;yperiodalignment&quot;))}}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778}],1208:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib&quot;),o=a.ensureSingle,s=a.identity,l=t(&quot;../../components/drawing&quot;),c=t(&quot;./subtypes&quot;),u=t(&quot;./line_points&quot;),f=t(&quot;./link_traces&quot;),h=t(&quot;../../lib/polygon&quot;).tester;function p(t,e,r,f,p,d,g){var m;!function(t,e,r,i,o){var s=r.xaxis,l=r.yaxis,u=n.extent(a.simpleMap(s.range,s.r2c)),f=n.extent(a.simpleMap(l.range,l.r2c)),h=i[0].trace;if(!c.hasMarkers(h))return;var p=h.marker.maxdisplayed;if(0===p)return;var d=i.filter((function(t){return t.x&gt;=u[0]&amp;&amp;t.x&lt;=u[1]&amp;&amp;t.y&gt;=f[0]&amp;&amp;t.y&lt;=f[1]})),g=Math.ceil(d.length/p),m=0;o.forEach((function(t,r){var n=t[0].trace;c.hasMarkers(n)&amp;&amp;n.marker.maxdisplayed&gt;0&amp;&amp;r&lt;e&amp;&amp;m++}));var v=Math.round(m*g/3+Math.floor(m/3)*g/7.1);i.forEach((function(t){delete t.vis})),d.forEach((function(t,e){0===Math.round((e+v)%g)&amp;&amp;(t.vis=!0)}))}(0,e,r,f,p);var v=!!g&amp;&amp;g.duration&gt;0;function y(t){return v?t.transition():t}var x=r.xaxis,b=r.yaxis,_=f[0].trace,w=_.line,T=n.select(d),k=o(T,&quot;g&quot;,&quot;errorbars&quot;),M=o(T,&quot;g&quot;,&quot;lines&quot;),A=o(T,&quot;g&quot;,&quot;points&quot;),S=o(T,&quot;g&quot;,&quot;text&quot;);if(i.getComponentMethod(&quot;errorbars&quot;,&quot;plot&quot;)(t,k,r,g),!0===_.visible){var E,C;y(T).style(&quot;opacity&quot;,_.opacity);var L=_.fill.charAt(_.fill.length-1);&quot;x&quot;!==L&amp;&amp;&quot;y&quot;!==L&amp;&amp;(L=&quot;&quot;),f[0][r.isRangePlot?&quot;nodeRangePlot3&quot;:&quot;node3&quot;]=T;var I,P,z=&quot;&quot;,O=[],D=_._prevtrace;D&amp;&amp;(z=D._prevRevpath||&quot;&quot;,C=D._nextFill,O=D._polygons);var R,F,B,N,j,U,V,q=&quot;&quot;,H=&quot;&quot;,G=[],Y=a.noop;if(E=_._ownFill,c.hasLines(_)||&quot;none&quot;!==_.fill){for(C&amp;&amp;C.datum(f),-1!==[&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;].indexOf(w.shape)?(R=l.steps(w.shape),F=l.steps(w.shape.split(&quot;&quot;).reverse().join(&quot;&quot;))):R=F=&quot;spline&quot;===w.shape?function(t){var e=t[t.length-1];return t.length&gt;1&amp;&amp;t[0][0]===e[0]&amp;&amp;t[0][1]===e[1]?l.smoothclosed(t.slice(1),w.smoothing):l.smoothopen(t,w.smoothing)}:function(t){return&quot;M&quot;+t.join(&quot;L&quot;)},B=function(t){return F(t.reverse())},G=u(f,{xaxis:x,yaxis:b,connectGaps:_.connectgaps,baseTolerance:Math.max(w.width||1,3)/4,shape:w.shape,simplify:w.simplify,fill:_.fill}),V=_._polygons=new Array(G.length),m=0;m&lt;G.length;m++)_._polygons[m]=h(G[m]);G.length&amp;&amp;(N=G[0][0],U=(j=G[G.length-1])[j.length-1]),Y=function(t){return function(e){if(I=R(e),P=B(e),q?L?(q+=&quot;L&quot;+I.substr(1),H=P+&quot;L&quot;+H.substr(1)):(q+=&quot;Z&quot;+I,H=P+&quot;Z&quot;+H):(q=I,H=P),c.hasLines(_)&amp;&amp;e.length&gt;1){var r=n.select(this);if(r.datum(f),t)y(r.style(&quot;opacity&quot;,0).attr(&quot;d&quot;,I).call(l.lineGroupStyle)).style(&quot;opacity&quot;,1);else{var i=y(r);i.attr(&quot;d&quot;,I),l.singleLineStyle(f,i)}}}}}var W=M.selectAll(&quot;.js-line&quot;).data(G);y(W.exit()).style(&quot;opacity&quot;,0).remove(),W.each(Y(!1)),W.enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).call(l.lineGroupStyle).each(Y(!0)),l.setClipUrl(W,r.layerClipId,t),G.length?(E?(E.datum(f),N&amp;&amp;U&amp;&amp;(L?(&quot;y&quot;===L?N[1]=U[1]=b.c2p(0,!0):&quot;x&quot;===L&amp;&amp;(N[0]=U[0]=x.c2p(0,!0)),y(E).attr(&quot;d&quot;,&quot;M&quot;+U+&quot;L&quot;+N+&quot;L&quot;+q.substr(1)).call(l.singleFillStyle)):y(E).attr(&quot;d&quot;,q+&quot;Z&quot;).call(l.singleFillStyle))):C&amp;&amp;(&quot;tonext&quot;===_.fill.substr(0,6)&amp;&amp;q&amp;&amp;z?(&quot;tonext&quot;===_.fill?y(C).attr(&quot;d&quot;,q+&quot;Z&quot;+z+&quot;Z&quot;).call(l.singleFillStyle):y(C).attr(&quot;d&quot;,q+&quot;L&quot;+z.substr(1)+&quot;Z&quot;).call(l.singleFillStyle),_._polygons=_._polygons.concat(O)):(Z(C),_._polygons=null)),_._prevRevpath=H,_._prevPolygons=V):(E?Z(E):C&amp;&amp;Z(C),_._polygons=_._prevRevpath=_._prevPolygons=null),A.datum(f),S.datum(f),function(e,i,a){var o,u=a[0].trace,f=c.hasMarkers(u),h=c.hasText(u),p=tt(u),d=et,g=et;if(f||h){var m=s,_=u.stackgroup,w=_&amp;&amp;&quot;infer zero&quot;===t._fullLayout._scatterStackOpts[x._id+b._id][_].stackgaps;u.marker.maxdisplayed||u._needsCull?m=w?K:J:_&amp;&amp;!w&amp;&amp;(m=Q),f&amp;&amp;(d=m),h&amp;&amp;(g=m)}var T,k=(o=e.selectAll(&quot;path.point&quot;).data(d,p)).enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0);v&amp;&amp;k.call(l.pointStyle,u,t).call(l.translatePoints,x,b).style(&quot;opacity&quot;,0).transition().style(&quot;opacity&quot;,1),o.order(),f&amp;&amp;(T=l.makePointStyleFns(u)),o.each((function(e){var i=n.select(this),a=y(i);l.translatePoint(e,a,x,b)?(l.singlePointStyle(e,a,u,T,t),r.layerClipId&amp;&amp;l.hideOutsideRangePoint(e,a,x,b,u.xcalendar,u.ycalendar),u.customdata&amp;&amp;i.classed(&quot;plotly-customdata&quot;,null!==e.data&amp;&amp;void 0!==e.data)):a.remove()})),v?o.exit().transition().style(&quot;opacity&quot;,0).remove():o.exit().remove(),(o=i.selectAll(&quot;g&quot;).data(g,p)).enter().append(&quot;g&quot;).classed(&quot;textpoint&quot;,!0).append(&quot;text&quot;),o.order(),o.each((function(t){var e=n.select(this),i=y(e.select(&quot;text&quot;));l.translatePoint(t,i,x,b)?r.layerClipId&amp;&amp;l.hideOutsideRangePoint(t,e,x,b,u.xcalendar,u.ycalendar):e.remove()})),o.selectAll(&quot;text&quot;).call(l.textPointStyle,u,t).each((function(t){var e=x.c2p(t.x),r=b.c2p(t.y);n.select(this).selectAll(&quot;tspan.line&quot;).each((function(){y(n.select(this)).attr({x:e,y:r})}))})),o.exit().remove()}(A,S,f);var X=!1===_.cliponaxis?null:r.layerClipId;l.setClipUrl(A,X,t),l.setClipUrl(S,X,t)}function Z(t){y(t).attr(&quot;d&quot;,&quot;M0,0Z&quot;)}function J(t){return t.filter((function(t){return!t.gap&amp;&amp;t.vis}))}function K(t){return t.filter((function(t){return t.vis}))}function Q(t){return t.filter((function(t){return!t.gap}))}function $(t){return t.id}function tt(t){if(t.ids)return $}function et(){return!1}}e.exports=function(t,e,r,i,a,c){var u,h,d=!a,g=!!a&amp;&amp;a.duration&gt;0,m=f(t,e,r);((u=i.selectAll(&quot;g.trace&quot;).data(m,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).attr(&quot;class&quot;,(function(t){return&quot;trace scatter trace&quot;+t[0].trace.uid})).style(&quot;stroke-miterlimit&quot;,2),u.order(),function(t,e,r){e.each((function(e){var i=o(n.select(this),&quot;g&quot;,&quot;fills&quot;);l.setClipUrl(i,r.layerClipId,t);var a=e[0].trace,c=[];a._ownfill&amp;&amp;c.push(&quot;_ownFill&quot;),a._nexttrace&amp;&amp;c.push(&quot;_nextFill&quot;);var u=i.selectAll(&quot;g&quot;).data(c,s);u.enter().append(&quot;g&quot;),u.exit().each((function(t){a[t]=null})).remove(),u.order().each((function(t){a[t]=o(n.select(this),&quot;path&quot;,&quot;js-fill&quot;)}))}))}(t,u,e),g)?(c&amp;&amp;(h=c()),n.transition().duration(a.duration).ease(a.easing).each(&quot;end&quot;,(function(){h&amp;&amp;h()})).each(&quot;interrupt&quot;,(function(){h&amp;&amp;h()})).each((function(){i.selectAll(&quot;g.trace&quot;).each((function(r,n){p(t,n,e,r,m,this,a)}))}))):u.each((function(r,n){p(t,n,e,r,m,this,a)}));d&amp;&amp;u.exit().remove(),i.selectAll(&quot;path:not([d])&quot;).remove()}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/polygon&quot;:790,&quot;../../registry&quot;:911,&quot;./line_points&quot;:1201,&quot;./link_traces&quot;:1203,&quot;./subtypes&quot;:1212,d3:169}],1209:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./subtypes&quot;);e.exports=function(t,e){var r,i,a,o,s=t.cd,l=t.xaxis,c=t.yaxis,u=[],f=s[0].trace;if(!n.hasMarkers(f)&amp;&amp;!n.hasText(f))return[];if(!1===e)for(r=0;r&lt;s.length;r++)s[r].selected=0;else for(r=0;r&lt;s.length;r++)i=s[r],a=l.c2p(i.x),o=c.c2p(i.y),null!==i.i&amp;&amp;e.contains([a,o],!1,r,t)?(u.push({pointNumber:i.i,x:l.c2d(i.x),y:c.c2d(i.y)}),i.selected=1):i.selected=0;return u}},{&quot;./subtypes&quot;:1212}],1210:[function(t,e,r){&quot;use strict&quot;;var n=[&quot;orientation&quot;,&quot;groupnorm&quot;,&quot;stackgaps&quot;];e.exports=function(t,e,r,i){var a=r._scatterStackOpts,o=i(&quot;stackgroup&quot;);if(o){var s=e.xaxis+e.yaxis,l=a[s];l||(l=a[s]={});var c=l[o],u=!1;c?c.traces.push(e):(c=l[o]={traceIndices:[],traces:[e]},u=!0);for(var f={orientation:e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;},h=0;h&lt;n.length;h++){var p=n[h],d=p+&quot;Found&quot;;if(!c[d]){var g=void 0!==t[p],m=&quot;orientation&quot;===p;if((g||u)&amp;&amp;(c[p]=i(p,f[p]),m&amp;&amp;(c.fillDflt=&quot;h&quot;===c[p]?&quot;tonextx&quot;:&quot;tonexty&quot;),g&amp;&amp;(c[d]=!0,!u&amp;&amp;(delete c.traces[0][p],m))))for(var v=0;v&lt;c.traces.length-1;v++){var y=c.traces[v];y._input.fill!==y.fill&amp;&amp;(y.fill=c.fillDflt)}}}return c}}},{}],1211:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../registry&quot;);function o(t,e,r){i.pointStyle(t.selectAll(&quot;path.point&quot;),e,r)}function s(t,e,r){i.textPointStyle(t.selectAll(&quot;text&quot;),e,r)}e.exports={style:function(t){var e=n.select(t).selectAll(&quot;g.trace.scatter&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.selectAll(&quot;g.points&quot;).each((function(e){o(n.select(this),e.trace||e[0].trace,t)})),e.selectAll(&quot;g.text&quot;).each((function(e){s(n.select(this),e.trace||e[0].trace,t)})),e.selectAll(&quot;g.trace path.js-line&quot;).call(i.lineGroupStyle),e.selectAll(&quot;g.trace path.js-fill&quot;).call(i.fillGroupStyle),a.getComponentMethod(&quot;errorbars&quot;,&quot;style&quot;)(e)},stylePoints:o,styleText:s,styleOnSelect:function(t,e,r){var n=e[0].trace;n.selectedpoints?(i.selectedPointStyle(r.selectAll(&quot;path.point&quot;),n),i.selectedTextStyle(r.selectAll(&quot;text&quot;),n)):(o(r,n,t),s(r,n,t))}}},{&quot;../../components/drawing&quot;:665,&quot;../../registry&quot;:911,d3:169}],1212:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports={hasLines:function(t){return t.visible&amp;&amp;t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;lines&quot;)},hasMarkers:function(t){return t.visible&amp;&amp;(t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;markers&quot;)||&quot;splom&quot;===t.type)},hasText:function(t){return t.visible&amp;&amp;t.mode&amp;&amp;-1!==t.mode.indexOf(&quot;text&quot;)},isBubble:function(t){return n.isPlainObject(t.marker)&amp;&amp;n.isArrayOrTypedArray(t.marker.size)}}},{&quot;../../lib&quot;:778}],1213:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e,r,i,a){a=a||{},i(&quot;textposition&quot;),n.coerceFont(i,&quot;textfont&quot;,r.font),a.noSelect||(i(&quot;selected.textfont.color&quot;),i(&quot;unselected.textfont.color&quot;))}},{&quot;../../lib&quot;:778}],1214:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;);e.exports=function(t,e,r,a){var o,s=a(&quot;x&quot;),l=a(&quot;y&quot;);if(i.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;],r),s){var c=n.minRowLength(s);l?o=Math.min(c,n.minRowLength(l)):(o=c,a(&quot;y0&quot;),a(&quot;dy&quot;))}else{if(!l)return 0;o=n.minRowLength(l),a(&quot;x0&quot;),a(&quot;dx&quot;)}return e._length=o,o}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911}],1215:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,s=t(&quot;../../plots/attributes&quot;),l=t(&quot;../../constants/gl3d_dashes&quot;),c=t(&quot;../../constants/gl3d_markers&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat,f=t(&quot;../../plot_api/edit_types&quot;).overrideAll,h=n.line,p=n.marker,d=p.line,g=u({width:h.width,dash:{valType:&quot;enumerated&quot;,values:Object.keys(l),dflt:&quot;solid&quot;}},i(&quot;line&quot;));var m=e.exports=f({x:n.x,y:n.y,z:{valType:&quot;data_array&quot;},text:u({},n.text,{}),texttemplate:o({},{}),hovertext:u({},n.hovertext,{}),hovertemplate:a(),mode:u({},n.mode,{dflt:&quot;lines+markers&quot;}),surfaceaxis:{valType:&quot;enumerated&quot;,values:[-1,0,1,2],dflt:-1},surfacecolor:{valType:&quot;color&quot;},projection:{x:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}},y:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}},z:{show:{valType:&quot;boolean&quot;,dflt:!1},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},scale:{valType:&quot;number&quot;,min:0,max:10,dflt:2/3}}},connectgaps:n.connectgaps,line:g,marker:u({symbol:{valType:&quot;enumerated&quot;,values:Object.keys(c),dflt:&quot;circle&quot;,arrayOk:!0},size:u({},p.size,{dflt:8}),sizeref:p.sizeref,sizemin:p.sizemin,sizemode:p.sizemode,opacity:u({},p.opacity,{arrayOk:!1}),colorbar:p.colorbar,line:u({width:u({},d.width,{arrayOk:!1})},i(&quot;marker.line&quot;))},i(&quot;marker&quot;)),textposition:u({},n.textposition,{dflt:&quot;top center&quot;}),textfont:{color:n.textfont.color,size:n.textfont.size,family:u({},n.textfont.family,{arrayOk:!1})},hoverinfo:u({},s.hoverinfo)},&quot;calc&quot;,&quot;nested&quot;);m.x.editType=m.y.editType=m.z.editType=&quot;calc+clearAxisTypes&quot;},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../constants/gl3d_dashes&quot;:750,&quot;../../constants/gl3d_markers&quot;:751,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1216:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/arrays_to_calcdata&quot;),i=t(&quot;../scatter/colorscale_calc&quot;);e.exports=function(t,e){var r=[{x:!1,y:!1,trace:e,t:{}}];return n(r,e),i(t,e),r}},{&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/colorscale_calc&quot;:1190}],1217:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;);function i(t,e,r,i){if(!e||!e.visible)return null;for(var a=n.getComponentMethod(&quot;errorbars&quot;,&quot;makeComputeError&quot;)(e),o=new Array(t.length),s=0;s&lt;t.length;s++){var l=a(+t[s],s);if(&quot;log&quot;===i.type){var c=i.c2l(t[s]),u=t[s]-l[0],f=t[s]+l[1];if(o[s]=[(i.c2l(u,!0)-c)*r,(i.c2l(f,!0)-c)*r],u&gt;0){var h=i.c2l(u);i._lowerLogErrorBound||(i._lowerLogErrorBound=h),i._lowerErrorBound=Math.min(i._lowerLogErrorBound,h)}}else o[s]=[-l[0]*r,l[1]*r]}return o}e.exports=function(t,e,r){var n=[i(t.x,t.error_x,e[0],r.xaxis),i(t.y,t.error_y,e[1],r.yaxis),i(t.z,t.error_z,e[2],r.zaxis)],a=function(t){for(var e=0;e&lt;t.length;e++)if(t[e])return t[e].length;return 0}(n);if(0===a)return null;for(var o=new Array(a),s=0;s&lt;a;s++){for(var l=[[0,0,0],[0,0,0]],c=0;c&lt;3;c++)if(n[c])for(var u=0;u&lt;2;u++)l[u][c]=n[c][s][u];o[s]=l}return o}},{&quot;../../registry&quot;:911}],1218:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-line3d&quot;),i=t(&quot;gl-scatter3d&quot;),a=t(&quot;gl-error3d&quot;),o=t(&quot;gl-mesh3d&quot;),s=t(&quot;delaunay-triangulate&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;../../lib/str2rgbarray&quot;),u=t(&quot;../../lib/gl_format_color&quot;).formatColor,f=t(&quot;../scatter/make_bubble_size_func&quot;),h=t(&quot;../../constants/gl3d_dashes&quot;),p=t(&quot;../../constants/gl3d_markers&quot;),d=t(&quot;../../plots/cartesian/axes&quot;),g=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,m=t(&quot;./calc_errors&quot;);function v(t,e){this.scene=t,this.uid=e,this.linePlot=null,this.scatterPlot=null,this.errorBars=null,this.textMarkers=null,this.delaunayMesh=null,this.color=null,this.mode=&quot;&quot;,this.dataPoints=[],this.axesBounds=[[-1/0,-1/0,-1/0],[1/0,1/0,1/0]],this.textLabels=null,this.data=null}var y=v.prototype;function x(t){return null==t?0:t.indexOf(&quot;left&quot;)&gt;-1?-1:t.indexOf(&quot;right&quot;)&gt;-1?1:0}function b(t){return null==t?0:t.indexOf(&quot;top&quot;)&gt;-1?-1:t.indexOf(&quot;bottom&quot;)&gt;-1?1:0}function _(t,e){return e(4*t)}function w(t){return p[t]}function T(t,e,r,n,i){var a=null;if(l.isArrayOrTypedArray(t)){a=[];for(var o=0;o&lt;e;o++)void 0===t[o]?a[o]=n:a[o]=r(t[o],i)}else a=r(t,l.identity);return a}function k(t,e){var r,n,i,a,o,s,h=[],p=t.fullSceneLayout,v=t.dataScale,y=p.xaxis,k=p.yaxis,M=p.zaxis,A=e.marker,S=e.line,E=e.x||[],C=e.y||[],L=e.z||[],I=E.length,P=e.xcalendar,z=e.ycalendar,O=e.zcalendar;for(o=0;o&lt;I;o++)r=y.d2l(E[o],0,P)*v[0],n=k.d2l(C[o],0,z)*v[1],i=M.d2l(L[o],0,O)*v[2],h[o]=[r,n,i];if(Array.isArray(e.text))s=e.text;else if(void 0!==e.text)for(s=new Array(I),o=0;o&lt;I;o++)s[o]=e.text;function D(t,e){var r=p[t];return d.tickText(r,r.d2l(e),!0).text}var R=e.texttemplate;if(R){var F=t.fullLayout._d3locale,B=Array.isArray(R),N=B?Math.min(R.length,I):I,j=B?function(t){return R[t]}:function(){return R};for(s=new Array(N),o=0;o&lt;N;o++){var U={x:E[o],y:C[o],z:L[o]},V={xLabel:D(&quot;xaxis&quot;,E[o]),yLabel:D(&quot;yaxis&quot;,C[o]),zLabel:D(&quot;zaxis&quot;,L[o])},q={};g(q,e,o);var H=e._meta||{};s[o]=l.texttemplateString(j(o),V,F,q,U,H)}}if(a={position:h,mode:e.mode,text:s},&quot;line&quot;in e&amp;&amp;(a.lineColor=u(S,1,I),a.lineWidth=S.width,a.lineDashes=S.dash),&quot;marker&quot;in e){var G=f(e);a.scatterColor=u(A,1,I),a.scatterSize=T(A.size,I,_,20,G),a.scatterMarker=T(A.symbol,I,w,&quot;\u25cf&quot;),a.scatterLineWidth=A.line.width,a.scatterLineColor=u(A.line,1,I),a.scatterAngle=0}&quot;textposition&quot;in e&amp;&amp;(a.textOffset=function(t){var e=[0,0];if(Array.isArray(t))for(var r=0;r&lt;t.length;r++)e[r]=[0,0],t[r]&amp;&amp;(e[r][0]=x(t[r]),e[r][1]=b(t[r]));else e[0]=x(t),e[1]=b(t);return e}(e.textposition),a.textColor=u(e.textfont,1,I),a.textSize=T(e.textfont.size,I,l.identity,12),a.textFont=e.textfont.family,a.textAngle=0);var Y=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(a.project=[!1,!1,!1],a.projectScale=[1,1,1],a.projectOpacity=[1,1,1],o=0;o&lt;3;++o){var W=e.projection[Y[o]];(a.project[o]=W.show)&amp;&amp;(a.projectOpacity[o]=W.opacity,a.projectScale[o]=W.scale)}a.errorBounds=m(e,v,p);var X=function(t){for(var e=[0,0,0],r=[[0,0,0],[0,0,0],[0,0,0]],n=[1,1,1],i=0;i&lt;3;i++){var a=t[i];a&amp;&amp;!1!==a.copy_zstyle&amp;&amp;!1!==t[2].visible&amp;&amp;(a=t[2]),a&amp;&amp;a.visible&amp;&amp;(e[i]=a.width/2,r[i]=c(a.color),n[i]=a.thickness)}return{capSize:e,color:r,lineWidth:n}}([e.error_x,e.error_y,e.error_z]);return a.errorColor=X.color,a.errorLineWidth=X.lineWidth,a.errorCapSize=X.capSize,a.delaunayAxis=e.surfaceaxis,a.delaunayColor=c(e.surfacecolor),a}function M(t){if(l.isArrayOrTypedArray(t)){var e=t[0];return l.isArrayOrTypedArray(e)&amp;&amp;(t=e),&quot;rgb(&quot;+t.slice(0,3).map((function(t){return Math.round(255*t)}))+&quot;)&quot;}return null}function A(t){return l.isArrayOrTypedArray(t)?4===t.length&amp;&amp;&quot;number&quot;==typeof t[0]?M(t):t.map(M):null}y.handlePick=function(t){if(t.object&amp;&amp;(t.object===this.linePlot||t.object===this.delaunayMesh||t.object===this.textMarkers||t.object===this.scatterPlot)){var e=t.index=t.data.index;return t.object.highlight&amp;&amp;t.object.highlight(null),this.scatterPlot&amp;&amp;(t.object=this.scatterPlot,this.scatterPlot.highlight(t.data)),t.textLabel=&quot;&quot;,this.textLabels&amp;&amp;(Array.isArray(this.textLabels)?(this.textLabels[e]||0===this.textLabels[e])&amp;&amp;(t.textLabel=this.textLabels[e]):t.textLabel=this.textLabels),t.traceCoordinate=[this.data.x[e],this.data.y[e],this.data.z[e]],!0}},y.update=function(t){var e,r,l,c,u=this.scene.glplot.gl,f=h.solid;this.data=t;var p=k(this.scene,t);&quot;mode&quot;in p&amp;&amp;(this.mode=p.mode),&quot;lineDashes&quot;in p&amp;&amp;p.lineDashes in h&amp;&amp;(f=h[p.lineDashes]),this.color=A(p.scatterColor)||A(p.lineColor),this.dataPoints=p.position,e={gl:this.scene.glplot.gl,position:p.position,color:p.lineColor,lineWidth:p.lineWidth||1,dashes:f[0],dashScale:f[1],opacity:t.opacity,connectGaps:t.connectgaps},-1!==this.mode.indexOf(&quot;lines&quot;)?this.linePlot?this.linePlot.update(e):(this.linePlot=n(e),this.linePlot._trace=this,this.scene.glplot.add(this.linePlot)):this.linePlot&amp;&amp;(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose(),this.linePlot=null);var d=t.opacity;if(t.marker&amp;&amp;t.marker.opacity&amp;&amp;(d*=t.marker.opacity),r={gl:this.scene.glplot.gl,position:p.position,color:p.scatterColor,size:p.scatterSize,glyph:p.scatterMarker,opacity:d,orthographic:!0,lineWidth:p.scatterLineWidth,lineColor:p.scatterLineColor,project:p.project,projectScale:p.projectScale,projectOpacity:p.projectOpacity},-1!==this.mode.indexOf(&quot;markers&quot;)?this.scatterPlot?this.scatterPlot.update(r):(this.scatterPlot=i(r),this.scatterPlot._trace=this,this.scatterPlot.highlightScale=1,this.scene.glplot.add(this.scatterPlot)):this.scatterPlot&amp;&amp;(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose(),this.scatterPlot=null),c={gl:this.scene.glplot.gl,position:p.position,glyph:p.text,color:p.textColor,size:p.textSize,angle:p.textAngle,alignment:p.textOffset,font:p.textFont,orthographic:!0,lineWidth:0,project:!1,opacity:t.opacity},this.textLabels=t.hovertext||t.text,-1!==this.mode.indexOf(&quot;text&quot;)?this.textMarkers?this.textMarkers.update(c):(this.textMarkers=i(c),this.textMarkers._trace=this,this.textMarkers.highlightScale=1,this.scene.glplot.add(this.textMarkers)):this.textMarkers&amp;&amp;(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose(),this.textMarkers=null),l={gl:this.scene.glplot.gl,position:p.position,color:p.errorColor,error:p.errorBounds,lineWidth:p.errorLineWidth,capSize:p.errorCapSize,opacity:t.opacity},this.errorBars?p.errorBounds?this.errorBars.update(l):(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose(),this.errorBars=null):p.errorBounds&amp;&amp;(this.errorBars=a(l),this.errorBars._trace=this,this.scene.glplot.add(this.errorBars)),p.delaunayAxis&gt;=0){var g=function(t,e,r){var n,i=(r+1)%3,a=(r+2)%3,o=[],l=[];for(n=0;n&lt;t.length;++n){var c=t[n];!isNaN(c[i])&amp;&amp;isFinite(c[i])&amp;&amp;!isNaN(c[a])&amp;&amp;isFinite(c[a])&amp;&amp;(o.push([c[i],c[a]]),l.push(n))}var u=s(o);for(n=0;n&lt;u.length;++n)for(var f=u[n],h=0;h&lt;f.length;++h)f[h]=l[f[h]];return{positions:t,cells:u,meshColor:e}}(p.position,p.delaunayColor,p.delaunayAxis);g.opacity=t.opacity,this.delaunayMesh?this.delaunayMesh.update(g):(g.gl=u,this.delaunayMesh=o(g),this.delaunayMesh._trace=this,this.scene.glplot.add(this.delaunayMesh))}else this.delaunayMesh&amp;&amp;(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose(),this.delaunayMesh=null)},y.dispose=function(){this.linePlot&amp;&amp;(this.scene.glplot.remove(this.linePlot),this.linePlot.dispose()),this.scatterPlot&amp;&amp;(this.scene.glplot.remove(this.scatterPlot),this.scatterPlot.dispose()),this.errorBars&amp;&amp;(this.scene.glplot.remove(this.errorBars),this.errorBars.dispose()),this.textMarkers&amp;&amp;(this.scene.glplot.remove(this.textMarkers),this.textMarkers.dispose()),this.delaunayMesh&amp;&amp;(this.scene.glplot.remove(this.delaunayMesh),this.delaunayMesh.dispose())},e.exports=function(t,e){var r=new v(t,e.uid);return r.update(e),r}},{&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/gl3d_dashes&quot;:750,&quot;../../constants/gl3d_markers&quot;:751,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/make_bubble_size_func&quot;:1204,&quot;./calc_errors&quot;:1217,&quot;delaunay-triangulate&quot;:171,&quot;gl-error3d&quot;:266,&quot;gl-line3d&quot;:275,&quot;gl-mesh3d&quot;:309,&quot;gl-scatter3d&quot;:330}],1219:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,n){return i.coerce(t,e,c,r,n)}if(function(t,e,r,i){var a=0,o=r(&quot;x&quot;),s=r(&quot;y&quot;),l=r(&quot;z&quot;);n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],i),o&amp;&amp;s&amp;&amp;l&amp;&amp;(a=Math.min(o.length,s.length,l.length),e._length=e._xlength=e._ylength=e._zlength=a);return a}(t,e,f,u)){f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),a.hasLines(e)&amp;&amp;(f(&quot;connectgaps&quot;),s(t,e,r,u,f)),a.hasMarkers(e)&amp;&amp;o(t,e,r,u,f,{noSelect:!0}),a.hasText(e)&amp;&amp;(f(&quot;texttemplate&quot;),l(t,e,u,f,{noSelect:!0}));var h=(e.line||{}).color,p=(e.marker||{}).color;f(&quot;surfaceaxis&quot;)&gt;=0&amp;&amp;f(&quot;surfacecolor&quot;,h||p);for(var d=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],g=0;g&lt;3;++g){var m=&quot;projection.&quot;+d[g];f(m+&quot;.show&quot;)&amp;&amp;(f(m+&quot;.opacity&quot;),f(m+&quot;.scale&quot;))}var v=n.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);v(t,e,h||p||r,{axis:&quot;z&quot;}),v(t,e,h||p||r,{axis:&quot;y&quot;,inherit:&quot;z&quot;}),v(t,e,h||p||r,{axis:&quot;x&quot;,inherit:&quot;z&quot;})}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1215}],1220:[function(t,e,r){&quot;use strict&quot;;e.exports={plot:t(&quot;./convert&quot;),attributes:t(&quot;./attributes&quot;),markerSymbols:t(&quot;../../constants/gl3d_markers&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:[{container:&quot;marker&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;},{container:&quot;line&quot;,min:&quot;cmin&quot;,max:&quot;cmax&quot;}],calc:t(&quot;./calc&quot;),moduleType:&quot;trace&quot;,name:&quot;scatter3d&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../constants/gl3d_markers&quot;:751,&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1215,&quot;./calc&quot;:1216,&quot;./convert&quot;:1218,&quot;./defaults&quot;:1219}],1221:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../plots/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../lib/extend&quot;).extendFlat,c=n.marker,u=n.line,f=c.line;e.exports={carpet:{valType:&quot;string&quot;,editType:&quot;calc&quot;},a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},mode:l({},n.mode,{dflt:&quot;markers&quot;}),text:l({},n.text,{}),texttemplate:o({editType:&quot;plot&quot;},{keys:[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;]}),hovertext:l({},n.hovertext,{}),line:{color:u.color,width:u.width,dash:u.dash,shape:l({},u.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:u.smoothing,editType:&quot;calc&quot;},connectgaps:n.connectgaps,fill:l({},n.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:n.fillcolor,marker:l({symbol:c.symbol,opacity:c.opacity,maxdisplayed:c.maxdisplayed,size:c.size,sizeref:c.sizeref,sizemin:c.sizemin,sizemode:c.sizemode,line:l({width:f.width,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),gradient:c.gradient,editType:&quot;calc&quot;},s(&quot;marker&quot;)),textfont:n.textfont,textposition:n.textposition,selected:n.selected,unselected:n.unselected,hoverinfo:l({},i.hoverinfo,{flags:[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:n.hoveron,hovertemplate:a()}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1222:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scatter/arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../scatter/calc&quot;).calcMarkerSize,l=t(&quot;../carpet/lookup_carpetid&quot;);e.exports=function(t,e){var r=e._carpetTrace=l(t,e);if(r&amp;&amp;r.visible&amp;&amp;&quot;legendonly&quot;!==r.visible){var c;e.xaxis=r.xaxis,e.yaxis=r.yaxis;var u,f,h=e._length,p=new Array(h),d=!1;for(c=0;c&lt;h;c++)if(u=e.a[c],f=e.b[c],n(u)&amp;&amp;n(f)){var g=r.ab2xy(+u,+f,!0),m=r.isVisible(+u,+f);m||(d=!0),p[c]={x:g[0],y:g[1],a:u,b:f,vis:m}}else p[c]={x:!1,y:!1};return e._needsCull=d,p[0].carpet=r,p[0].trace=e,s(e,h),i(t,e),a(p,e),o(p,e),p}}},{&quot;../carpet/lookup_carpetid&quot;:981,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc&quot;:1188,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1223:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/constants&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/line_shape_defaults&quot;),c=t(&quot;../scatter/text_defaults&quot;),u=t(&quot;../scatter/fillcolor_defaults&quot;),f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}p(&quot;carpet&quot;),e.xaxis=&quot;x&quot;,e.yaxis=&quot;y&quot;;var d=p(&quot;a&quot;),g=p(&quot;b&quot;),m=Math.min(d.length,g.length);if(m){e._length=m,p(&quot;text&quot;),p(&quot;texttemplate&quot;),p(&quot;hovertext&quot;),p(&quot;mode&quot;,m&lt;i.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;),a.hasLines(e)&amp;&amp;(s(t,e,r,h,p),l(t,e,p),p(&quot;connectgaps&quot;)),a.hasMarkers(e)&amp;&amp;o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&amp;&amp;c(t,e,h,p);var v=[];(a.hasMarkers(e)||a.hasText(e))&amp;&amp;(p(&quot;marker.maxdisplayed&quot;),v.push(&quot;points&quot;)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||v.push(&quot;fills&quot;),&quot;fills&quot;!==p(&quot;hoveron&quot;,v.join(&quot;+&quot;)||&quot;points&quot;)&amp;&amp;p(&quot;hovertemplate&quot;),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/line_shape_defaults&quot;:1202,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1221}],1224:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){var a=n[i];return t.a=a.a,t.b=a.b,t.y=a.y,t}},{}],1225:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){var r={},n=e._carpet,i=n.ab2ij([t.a,t.b]),a=Math.floor(i[0]),o=i[0]-a,s=Math.floor(i[1]),l=i[1]-s,c=n.evalxy([],a,s,o,l);return r.yLabel=c[1].toFixed(3),r}},{}],1226:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;),i=t(&quot;../../lib&quot;).fillText;e.exports=function(t,e,r,a){var o=n(t,e,r,a);if(o&amp;&amp;!1!==o[0].index){var s=o[0];if(void 0===s.index){var l=1-s.y0/t.ya._length,c=t.xa._length,u=c*l/2,f=c-u;return s.x0=Math.max(Math.min(s.x0,f),u),s.x1=Math.max(Math.min(s.x1,f),u),o}var h=s.cd[s.index];s.a=h.a,s.b=h.b,s.xLabelVal=void 0,s.yLabelVal=void 0;var p=s.trace,d=p._carpet,g=p._module.formatLabels(h,p);s.yLabel=g.yLabel,delete s.text;var m=[];if(!p.hovertemplate){var v=(h.hi||p.hoverinfo).split(&quot;+&quot;);-1!==v.indexOf(&quot;all&quot;)&amp;&amp;(v=[&quot;a&quot;,&quot;b&quot;,&quot;text&quot;]),-1!==v.indexOf(&quot;a&quot;)&amp;&amp;y(d.aaxis,h.a),-1!==v.indexOf(&quot;b&quot;)&amp;&amp;y(d.baxis,h.b),m.push(&quot;y: &quot;+s.yLabel),-1!==v.indexOf(&quot;text&quot;)&amp;&amp;i(h,p,m),s.extraText=m.join(&quot;&lt;br&gt;&quot;)}return o}function y(t,e){var r;r=t.labelprefix&amp;&amp;t.labelprefix.length&gt;0?t.labelprefix.replace(/ = $/,&quot;&quot;):t._hovertitle,m.push(r+&quot;: &quot;+e.toFixed(3)+t.labelsuffix)}}},{&quot;../../lib&quot;:778,&quot;../scatter/hover&quot;:1198}],1227:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../scatter/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;scattercarpet&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;svg&quot;,&quot;carpet&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;carpetDependent&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/select&quot;:1209,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1221,&quot;./calc&quot;:1222,&quot;./defaults&quot;:1223,&quot;./event_data&quot;:1224,&quot;./format_labels&quot;:1225,&quot;./hover&quot;:1226,&quot;./plot&quot;:1228}],1228:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../../components/drawing&quot;);e.exports=function(t,e,r,o){var s,l,c,u=r[0][0].carpet,f={xaxis:i.getFromId(t,u.xaxis||&quot;x&quot;),yaxis:i.getFromId(t,u.yaxis||&quot;y&quot;),plot:e.plot};for(n(t,f,r,o),s=0;s&lt;r.length;s++)l=r[s][0].trace,c=o.selectAll(&quot;g.trace&quot;+l.uid+&quot; .js-line&quot;),a.setClipUrl(c,r[s][0].carpet._clipPathId,t)}},{&quot;../../components/drawing&quot;:665,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/plot&quot;:1208}],1229:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scatter/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../plot_api/edit_types&quot;).overrideAll,f=a.marker,h=a.line,p=f.line;e.exports=u({lon:{valType:&quot;data_array&quot;},lat:{valType:&quot;data_array&quot;},locations:{valType:&quot;data_array&quot;},locationmode:{valType:&quot;enumerated&quot;,values:[&quot;ISO-3&quot;,&quot;USA-states&quot;,&quot;country names&quot;,&quot;geojson-id&quot;],dflt:&quot;ISO-3&quot;},geojson:{valType:&quot;any&quot;,editType:&quot;calc&quot;},featureidkey:{valType:&quot;string&quot;,editType:&quot;calc&quot;,dflt:&quot;id&quot;},mode:c({},a.mode,{dflt:&quot;markers&quot;}),text:c({},a.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;lat&quot;,&quot;lon&quot;,&quot;location&quot;,&quot;text&quot;]}),hovertext:c({},a.hovertext,{}),textfont:a.textfont,textposition:a.textposition,line:{color:h.color,width:h.width,dash:l},connectgaps:a.connectgaps,marker:c({symbol:f.symbol,opacity:f.opacity,size:f.size,sizeref:f.sizeref,sizemin:f.sizemin,sizemode:f.sizemode,colorbar:f.colorbar,line:c({width:p.width},s(&quot;marker.line&quot;)),gradient:f.gradient},s(&quot;marker&quot;)),fill:{valType:&quot;enumerated&quot;,values:[&quot;none&quot;,&quot;toself&quot;],dflt:&quot;none&quot;},fillcolor:a.fillcolor,selected:a.selected,unselected:a.unselected,hoverinfo:c({},o.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;location&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n()},&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing/attributes&quot;:664,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1230:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../scatter/colorscale_calc&quot;),o=t(&quot;../scatter/arrays_to_calcdata&quot;),s=t(&quot;../scatter/calc_selection&quot;),l=t(&quot;../../lib&quot;)._;function c(t){return t&amp;&amp;&quot;string&quot;==typeof t}e.exports=function(t,e){var r,u=Array.isArray(e.locations),f=u?e.locations.length:e._length,h=new Array(f);r=e.geojson?function(t){return c(t)||n(t)}:c;for(var p=0;p&lt;f;p++){var d=h[p]={};if(u){var g=e.locations[p];d.loc=r(g)?g:null}else{var m=e.lon[p],v=e.lat[p];n(m)&amp;&amp;n(v)?d.lonlat=[+m,+v]:d.lonlat=[i,i]}}return o(h,e),a(t,e),s(h,e),f&amp;&amp;(h[0].t={labels:{lat:l(t,&quot;lat:&quot;)+&quot; &quot;,lon:l(t,&quot;lon:&quot;)+&quot; &quot;}}),h}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1231:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/text_defaults&quot;),l=t(&quot;../scatter/fillcolor_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}var h,p=f(&quot;locations&quot;);if(p&amp;&amp;p.length){var d,g=f(&quot;geojson&quot;);(&quot;string&quot;==typeof g&amp;&amp;&quot;&quot;!==g||n.isPlainObject(g))&amp;&amp;(d=&quot;geojson-id&quot;),&quot;geojson-id&quot;===f(&quot;locationmode&quot;,d)&amp;&amp;f(&quot;featureidkey&quot;),h=p.length}else{var m=f(&quot;lon&quot;)||[],v=f(&quot;lat&quot;)||[];h=Math.min(m.length,v.length)}h?(e._length=h,f(&quot;text&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,u,f),f(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;a(t,e,r,u,f,{gradient:!0}),i.hasText(e)&amp;&amp;(f(&quot;texttemplate&quot;),s(t,e,u,f)),f(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1229}],1232:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){t.lon=e.lon,t.lat=e.lat,t.location=e.loc?e.loc:null;var a=n[i];return a.fIn&amp;&amp;a.fIn.properties&amp;&amp;(t.properties=a.fIn.properties),t}},{}],1233:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.geo]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=n.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=n.tickText(a,a.c2l(o[1]),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1234:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../scatter/get_trace_color&quot;),o=t(&quot;../../lib&quot;).fillText,s=t(&quot;./attributes&quot;);e.exports=function(t,e,r){var l=t.cd,c=l[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=h.projection.isLonLatOverEdges,d=h.project;if(n.getClosest(l,(function(t){var n=t.lonlat;if(n[0]===i)return 1/0;if(p(n))return 1/0;var a=d(n),o=d([e,r]),s=Math.abs(a[0]-o[0]),l=Math.abs(a[1]-o[1]),c=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(s*s+l*l)-c,1-3/c)}),t),!1!==t.index){var g=l[t.index],m=g.lonlat,v=[u.c2p(m),f.c2p(m)],y=g.mrc||1;t.x0=v[0]-y,t.x1=v[0]+y,t.y0=v[1]-y,t.y1=v[1]+y,t.loc=g.loc,t.lon=m[0],t.lat=m[1];var x={};x[c.geo]={_subplot:h};var b=c._module.formatLabels(g,c,x);return t.lonLabel=b.lonLabel,t.latLabel=b.latLabel,t.color=a(c,g),t.extraText=function(t,e,r,n){if(t.hovertemplate)return;var i=e.hi||t.hoverinfo,a=&quot;all&quot;===i?s.hoverinfo.flags:i.split(&quot;+&quot;),l=-1!==a.indexOf(&quot;location&quot;)&amp;&amp;Array.isArray(t.locations),c=-1!==a.indexOf(&quot;lon&quot;),u=-1!==a.indexOf(&quot;lat&quot;),f=-1!==a.indexOf(&quot;text&quot;),h=[];function p(t){return t+&quot;\xb0&quot;}l?h.push(e.loc):c&amp;&amp;u?h.push(&quot;(&quot;+p(r.lonLabel)+&quot;, &quot;+p(r.latLabel)+&quot;)&quot;):c?h.push(n.lon+p(r.lonLabel)):u&amp;&amp;h.push(n.lat+p(r.latLabel));f&amp;&amp;o(e,t,h);return h.join(&quot;&lt;br&gt;&quot;)}(c,g,t,l[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}}},{&quot;../../components/fx&quot;:683,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/get_trace_color&quot;:1197,&quot;./attributes&quot;:1229}],1235:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),calcGeoJSON:t(&quot;./plot&quot;).calcGeoJSON,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;),styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),moduleType:&quot;trace&quot;,name:&quot;scattergeo&quot;,basePlotModule:t(&quot;../../plots/geo&quot;),categories:[&quot;geo&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/geo&quot;:860,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1229,&quot;./calc&quot;:1230,&quot;./defaults&quot;:1231,&quot;./event_data&quot;:1232,&quot;./format_labels&quot;:1233,&quot;./hover&quot;:1234,&quot;./plot&quot;:1236,&quot;./select&quot;:1237,&quot;./style&quot;:1238}],1236:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../lib/topojson_utils&quot;).getTopojsonFeatures,o=t(&quot;../../lib/geojson_utils&quot;),s=t(&quot;../../lib/geo_location_utils&quot;),l=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,c=t(&quot;../../constants/numerical&quot;).BADNUM,u=t(&quot;../scatter/calc&quot;).calcMarkerSize,f=t(&quot;../scatter/subtypes&quot;),h=t(&quot;./style&quot;);e.exports={calcGeoJSON:function(t,e){var r,n,i=t[0].trace,o=e[i.geo],f=o._subplot,h=i._length;if(Array.isArray(i.locations)){var p=i.locationmode,d=&quot;geojson-id&quot;===p?s.extractTraceFeature(t):a(i,f.topojson);for(r=0;r&lt;h;r++){n=t[r];var g=&quot;geojson-id&quot;===p?n.fOut:s.locationToFeature(p,n.loc,d);n.lonlat=g?g.properties.ct:[c,c]}}var m,v,y={padded:!0};if(&quot;geojson&quot;===o.fitbounds&amp;&amp;&quot;geojson-id&quot;===i.locationmode){var x=s.computeBbox(s.getTraceGeojson(i));m=[x[0],x[2]],v=[x[1],x[3]]}else{for(m=new Array(h),v=new Array(h),r=0;r&lt;h;r++)n=t[r],m[r]=n.lonlat[0],v[r]=n.lonlat[1];y.ppad=u(i,h)}i._extremes.lon=l(o.lonaxis._ax,m,y),i._extremes.lat=l(o.lataxis._ax,v,y)},plot:function(t,e,r){var a=e.layers.frontplot.select(&quot;.scatterlayer&quot;),s=i.makeTraceGroups(a,r,&quot;trace scattergeo&quot;);function l(t,e){t.lonlat[0]===c&amp;&amp;n.select(e).remove()}s.selectAll(&quot;*&quot;).remove(),s.each((function(e){var r=n.select(this),a=e[0].trace;if(f.hasLines(a)||&quot;none&quot;!==a.fill){var s=o.calcTraceToLineCoords(e),c=&quot;none&quot;!==a.fill?o.makePolygon(s):o.makeLine(s);r.selectAll(&quot;path.js-line&quot;).data([{geojson:c,trace:a}]).enter().append(&quot;path&quot;).classed(&quot;js-line&quot;,!0).style(&quot;stroke-miterlimit&quot;,2)}f.hasMarkers(a)&amp;&amp;r.selectAll(&quot;path.point&quot;).data(i.identity).enter().append(&quot;path&quot;).classed(&quot;point&quot;,!0).each((function(t){l(t,this)})),f.hasText(a)&amp;&amp;r.selectAll(&quot;g&quot;).data(i.identity).enter().append(&quot;g&quot;).append(&quot;text&quot;).each((function(t){l(t,this)})),h(t,e)}))}}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/geo_location_utils&quot;:771,&quot;../../lib/geojson_utils&quot;:772,&quot;../../lib/topojson_utils&quot;:806,&quot;../../plots/cartesian/autorange&quot;:827,&quot;../scatter/calc&quot;:1188,&quot;../scatter/subtypes&quot;:1212,&quot;./style&quot;:1238,d3:169}],1237:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/subtypes&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e){var r,a,o,s,l,c=t.cd,u=t.xaxis,f=t.yaxis,h=[],p=c[0].trace;if(!n.hasMarkers(p)&amp;&amp;!n.hasText(p))return[];if(!1===e)for(l=0;l&lt;c.length;l++)c[l].selected=0;else for(l=0;l&lt;c.length;l++)(a=(r=c[l]).lonlat)[0]!==i&amp;&amp;(o=u.c2p(a),s=f.c2p(a),e.contains([o,s],null,l,t)?(h.push({pointNumber:l,lon:a[0],lat:a[1]}),r.selected=1):r.selected=0);return h}},{&quot;../../constants/numerical&quot;:753,&quot;../scatter/subtypes&quot;:1212}],1238:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../scatter/style&quot;),s=o.stylePoints,l=o.styleText;e.exports=function(t,e){e&amp;&amp;function(t,e){var r=e[0].trace,o=e[0].node3;o.style(&quot;opacity&quot;,e[0].trace.opacity),s(o,r,t),l(o,r,t),o.selectAll(&quot;path.js-line&quot;).style(&quot;fill&quot;,&quot;none&quot;).each((function(t){var e=n.select(this),r=t.trace,o=r.line||{};e.call(a.stroke,o.color).call(i.dashLine,o.dash||&quot;&quot;,o.width||0),&quot;none&quot;!==r.fill&amp;&amp;e.call(a.fill,r.fillcolor)}))}(t,e)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../scatter/style&quot;:1211,d3:169}],1239:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../scatter/attributes&quot;),a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../lib/extend&quot;).extendFlat,s=t(&quot;../../plot_api/edit_types&quot;).overrideAll,l=t(&quot;./constants&quot;).DASHES,c=i.line,u=i.marker,f=u.line,h=e.exports=s({x:i.x,x0:i.x0,dx:i.dx,y:i.y,y0:i.y0,dy:i.dy,xperiod:i.xperiod,yperiod:i.yperiod,xperiod0:i.xperiod0,yperiod0:i.yperiod0,xperiodalignment:i.xperiodalignment,yperiodalignment:i.yperiodalignment,text:i.text,hovertext:i.hovertext,textposition:i.textposition,textfont:i.textfont,mode:{valType:&quot;flaglist&quot;,flags:[&quot;lines&quot;,&quot;markers&quot;,&quot;text&quot;],extras:[&quot;none&quot;]},line:{color:c.color,width:c.width,shape:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;hv&quot;,&quot;vh&quot;,&quot;hvh&quot;,&quot;vhv&quot;],dflt:&quot;linear&quot;,editType:&quot;plot&quot;},dash:{valType:&quot;enumerated&quot;,values:Object.keys(l),dflt:&quot;solid&quot;}},marker:o({},a(&quot;marker&quot;),{symbol:u.symbol,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,opacity:u.opacity,colorbar:u.colorbar,line:o({},a(&quot;marker.line&quot;),{width:f.width})}),connectgaps:i.connectgaps,fill:o({},i.fill,{dflt:&quot;none&quot;}),fillcolor:i.fillcolor,selected:{marker:i.selected.marker,textfont:i.selected.textfont},unselected:{marker:i.unselected.marker,textfont:i.unselected.textfont},opacity:n.opacity},&quot;calc&quot;,&quot;nested&quot;);h.x.editType=h.y.editType=h.x0.editType=h.y0.editType=&quot;calc+clearAxisTypes&quot;,h.hovertemplate=i.hovertemplate,h.texttemplate=i.texttemplate},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:1241}],1240:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/point-cluster&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../plots/cartesian/autorange&quot;).findExtremes,s=t(&quot;../../plots/cartesian/align_period&quot;),l=t(&quot;../scatter/calc&quot;),c=l.calcMarkerSize,u=l.calcAxisExpansion,f=l.setFirstScatter,h=t(&quot;../scatter/colorscale_calc&quot;),p=t(&quot;./convert&quot;),d=t(&quot;./scene_update&quot;),g=t(&quot;../../constants/numerical&quot;).BADNUM,m=t(&quot;./constants&quot;).TOO_MANY_POINTS;function v(t,e,r){var n=t._extremes[e._id],i=o(e,r._bnds,{padded:!0});n.min=n.min.concat(i.min),n.max=n.max.concat(i.max)}e.exports=function(t,e){var r,o,l,y=t._fullLayout,x=a.getFromId(t,e.xaxis),b=a.getFromId(t,e.yaxis),_=y._plots[e.xaxis+e.yaxis],w=e._length,T=w&gt;=m,k=2*w,M={},A=x.makeCalcdata(e,&quot;x&quot;),S=b.makeCalcdata(e,&quot;y&quot;),E=s(e,x,&quot;x&quot;,A),C=s(e,b,&quot;y&quot;,S);e._x=E,e._y=C,e.xperiodalignment&amp;&amp;(e._origX=A),e.yperiodalignment&amp;&amp;(e._origY=S);var L=new Array(k);for(r=0;r&lt;w;r++)o=E[r],l=C[r],L[2*r]=o===g?NaN:o,L[2*r+1]=l===g?NaN:l;if(&quot;log&quot;===x.type)for(r=0;r&lt;k;r+=2)L[r]=x.c2l(L[r]);if(&quot;log&quot;===b.type)for(r=1;r&lt;k;r+=2)L[r]=b.c2l(L[r]);if(T&amp;&amp;&quot;log&quot;!==x.type&amp;&amp;&quot;log&quot;!==b.type)M.tree=n(L);else{var I=M.ids=new Array(w);for(r=0;r&lt;w;r++)I[r]=r}h(t,e);var P,z=function(t,e,r,n,a,o){var s=p.style(t,r);s.marker&amp;&amp;(s.marker.positions=n);s.line&amp;&amp;n.length&gt;1&amp;&amp;i.extendFlat(s.line,p.linePositions(t,r,n));if(s.errorX||s.errorY){var l=p.errorBarPositions(t,r,n,a,o);s.errorX&amp;&amp;i.extendFlat(s.errorX,l.x),s.errorY&amp;&amp;i.extendFlat(s.errorY,l.y)}s.text&amp;&amp;(i.extendFlat(s.text,{positions:n},p.textPosition(t,r,s.text,s.marker)),i.extendFlat(s.textSel,{positions:n},p.textPosition(t,r,s.text,s.markerSel)),i.extendFlat(s.textUnsel,{positions:n},p.textPosition(t,r,s.text,s.markerUnsel)));return s}(t,0,e,L,E,C),O=d(t,_);return f(y,e),T?z.marker&amp;&amp;(P=2*(z.marker.sizeAvg||Math.max(z.marker.size,3))):P=c(e,w),u(t,e,x,b,E,C,P),z.errorX&amp;&amp;v(e,x,z.errorX),z.errorY&amp;&amp;v(e,b,z.errorY),z.fill&amp;&amp;!O.fill2d&amp;&amp;(O.fill2d=!0),z.marker&amp;&amp;!O.scatter2d&amp;&amp;(O.scatter2d=!0),z.line&amp;&amp;!O.line2d&amp;&amp;(O.line2d=!0),!z.errorX&amp;&amp;!z.errorY||O.error2d||(O.error2d=!0),z.text&amp;&amp;!O.glText&amp;&amp;(O.glText=!0),z.marker&amp;&amp;(z.marker.snap=w),O.lineOptions.push(z.line),O.errorXOptions.push(z.errorX),O.errorYOptions.push(z.errorY),O.fillOptions.push(z.fill),O.markerOptions.push(z.marker),O.markerSelectedOptions.push(z.markerSel),O.markerUnselectedOptions.push(z.markerUnsel),O.textOptions.push(z.text),O.textSelectedOptions.push(z.textSel),O.textUnselectedOptions.push(z.textUnsel),O.selectBatch.push([]),O.unselectBatch.push([]),M._scene=O,M.index=O.count,M.x=E,M.y=C,M.positions=L,O.count++,[{x:!1,y:!1,t:M,trace:e}]}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/autorange&quot;:827,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../scatter/calc&quot;:1188,&quot;../scatter/colorscale_calc&quot;:1190,&quot;./constants&quot;:1241,&quot;./convert&quot;:1242,&quot;./scene_update&quot;:1250,&quot;@plotly/point-cluster&quot;:57}],1241:[function(t,e,r){&quot;use strict&quot;;e.exports={TOO_MANY_POINTS:1e5,SYMBOL_SDF_SIZE:200,SYMBOL_SIZE:20,SYMBOL_STROKE:1,DOT_RE:/-dot/,OPEN_RE:/-open/,DASHES:{solid:[1],dot:[1,1],dash:[4,1],longdash:[8,1],dashdot:[4,1,1,1],longdashdot:[8,1,1,1]}}},{}],1242:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;svg-path-sdf&quot;),a=t(&quot;color-normalize&quot;),o=t(&quot;../../registry&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../../plots/cartesian/axis_ids&quot;),u=t(&quot;../../lib/gl_format_color&quot;).formatColor,f=t(&quot;../scatter/subtypes&quot;),h=t(&quot;../scatter/make_bubble_size_func&quot;),p=t(&quot;./helpers&quot;),d=t(&quot;./constants&quot;),g=t(&quot;../../constants/interactions&quot;).DESELECTDIM,m={start:1,left:1,end:-1,right:-1,middle:0,center:0,bottom:1,top:-1},v=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue;function y(t,e){var r,i=t._fullLayout,a=e._length,o=e.textfont,l=e.textposition,c=Array.isArray(l)?l:[l],u=o.color,f=o.size,h=o.family,p={},d=e.texttemplate;if(d){p.text=[];var g=i._d3locale,m=Array.isArray(d),y=m?Math.min(d.length,a):a,x=m?function(t){return d[t]}:function(){return d};for(r=0;r&lt;y;r++){var b={i:r},_=e._module.formatLabels(b,e,i),w={};v(w,e,r);var T=e._meta||{};p.text.push(s.texttemplateString(x(r),_,g,w,b,T))}}else Array.isArray(e.text)&amp;&amp;e.text.length&lt;a?p.text=e.text.slice():p.text=e.text;if(Array.isArray(p.text))for(r=p.text.length;r&lt;a;r++)p.text[r]=&quot;&quot;;for(p.opacity=e.opacity,p.font={},p.align=[],p.baseline=[],r=0;r&lt;c.length;r++){var k=c[r].split(/\s+/);switch(k[1]){case&quot;left&quot;:p.align.push(&quot;right&quot;);break;case&quot;right&quot;:p.align.push(&quot;left&quot;);break;default:p.align.push(k[1])}switch(k[0]){case&quot;top&quot;:p.baseline.push(&quot;bottom&quot;);break;case&quot;bottom&quot;:p.baseline.push(&quot;top&quot;);break;default:p.baseline.push(k[0])}}if(Array.isArray(u))for(p.color=new Array(a),r=0;r&lt;a;r++)p.color[r]=u[r];else p.color=u;if(s.isArrayOrTypedArray(f)||Array.isArray(h))for(p.font=new Array(a),r=0;r&lt;a;r++){var M=p.font[r]={};M.size=s.isTypedArray(f)?f[r]:Array.isArray(f)?n(f[r])?f[r]:0:f,M.family=Array.isArray(h)?h[r]:h}else p.font={size:f,family:h};return p}function x(t){var e,r,n=t._length,i=t.marker,o={},l=s.isArrayOrTypedArray(i.symbol),c=s.isArrayOrTypedArray(i.color),f=s.isArrayOrTypedArray(i.line.color),d=s.isArrayOrTypedArray(i.opacity),g=s.isArrayOrTypedArray(i.size),m=s.isArrayOrTypedArray(i.line.width);if(l||(r=p.isOpenSymbol(i.symbol)),l||c||f||d){o.colors=new Array(n),o.borderColors=new Array(n);var v=u(i,i.opacity,n),y=u(i.line,i.opacity,n);if(!Array.isArray(y[0])){var x=y;for(y=Array(n),e=0;e&lt;n;e++)y[e]=x}if(!Array.isArray(v[0])){var b=v;for(v=Array(n),e=0;e&lt;n;e++)v[e]=b}for(o.colors=v,o.borderColors=y,e=0;e&lt;n;e++){if(l){var _=i.symbol[e];r=p.isOpenSymbol(_)}r&amp;&amp;(y[e]=v[e].slice(),v[e]=v[e].slice(),v[e][3]=0)}o.opacity=t.opacity}else r?(o.color=a(i.color,&quot;uint8&quot;),o.color[3]=0,o.borderColor=a(i.color,&quot;uint8&quot;)):(o.color=a(i.color,&quot;uint8&quot;),o.borderColor=a(i.line.color,&quot;uint8&quot;)),o.opacity=t.opacity*i.opacity;if(l)for(o.markers=new Array(n),e=0;e&lt;n;e++)o.markers[e]=E(i.symbol[e]);else o.marker=E(i.symbol);var w,T=h(t);if(g||m){var k,M=o.sizes=new Array(n),A=o.borderSizes=new Array(n),S=0;if(g){for(e=0;e&lt;n;e++)M[e]=T(i.size[e]),S+=M[e];k=S/n}else for(w=T(i.size),e=0;e&lt;n;e++)M[e]=w;if(m)for(e=0;e&lt;n;e++)A[e]=i.line.width[e]/2;else for(w=i.line.width/2,e=0;e&lt;n;e++)A[e]=w;o.sizeAvg=k}else o.size=T(i&amp;&amp;i.size||10),o.borderSizes=T(i.line.width);return o}function b(t,e){var r=t.marker,n={};return e?(e.marker&amp;&amp;e.marker.symbol?n=x(s.extendFlat({},r,e.marker)):e.marker&amp;&amp;(e.marker.size&amp;&amp;(n.size=e.marker.size/2),e.marker.color&amp;&amp;(n.colors=e.marker.color),void 0!==e.marker.opacity&amp;&amp;(n.opacity=e.marker.opacity)),n):n}function _(t,e,r){var n={};if(!r)return n;if(r.textfont){var i={opacity:1,text:e.text,texttemplate:e.texttemplate,textposition:e.textposition,textfont:s.extendFlat({},e.textfont)};r.textfont&amp;&amp;s.extendFlat(i.textfont,r.textfont),n=y(t,i)}return n}function w(t,e){var r={capSize:2*e.width,lineWidth:e.thickness,color:e.color};return e.copy_ystyle&amp;&amp;(r=t.error_y),r}var T=d.SYMBOL_SDF_SIZE,k=d.SYMBOL_SIZE,M=d.SYMBOL_STROKE,A={},S=l.symbolFuncs[0](.05*k);function E(t){if(&quot;circle&quot;===t)return null;var e,r,n=l.symbolNumber(t),a=l.symbolFuncs[n%100],o=!!l.symbolNoDot[n%100],s=!!l.symbolNoFill[n%100],c=p.isDotSymbol(t);return A[t]?A[t]:(e=c&amp;&amp;!o?a(1.1*k)+S:a(k),r=i(e,{w:T,h:T,viewBox:[-k,-k,k,k],stroke:s?M:-M}),A[t]=r,r||null)}e.exports={style:function(t,e){var r,n={marker:void 0,markerSel:void 0,markerUnsel:void 0,line:void 0,fill:void 0,errorX:void 0,errorY:void 0,text:void 0,textSel:void 0,textUnsel:void 0};if(!0!==e.visible)return n;if(f.hasText(e)&amp;&amp;(n.text=y(t,e),n.textSel=_(t,e,e.selected),n.textUnsel=_(t,e,e.unselected)),f.hasMarkers(e)&amp;&amp;(n.marker=x(e),n.markerSel=b(e,e.selected),n.markerUnsel=b(e,e.unselected),!e.unselected&amp;&amp;s.isArrayOrTypedArray(e.marker.opacity))){var i=e.marker.opacity;for(n.markerUnsel.opacity=new Array(i.length),r=0;r&lt;i.length;r++)n.markerUnsel.opacity[r]=g*i[r]}if(f.hasLines(e)){n.line={overlay:!0,thickness:e.line.width,color:e.line.color,opacity:e.opacity};var a=(d.DASHES[e.line.dash]||[1]).slice();for(r=0;r&lt;a.length;++r)a[r]*=e.line.width;n.line.dashes=a}return e.error_x&amp;&amp;e.error_x.visible&amp;&amp;(n.errorX=w(e,e.error_x)),e.error_y&amp;&amp;e.error_y.visible&amp;&amp;(n.errorY=w(e,e.error_y)),e.fill&amp;&amp;&quot;none&quot;!==e.fill&amp;&amp;(n.fill={closed:!0,fill:e.fillcolor,thickness:0}),n},markerStyle:x,markerSelection:b,linePositions:function(t,e,r){var n,i,a=r.length,o=a/2;if(f.hasLines(e)&amp;&amp;o)if(&quot;hv&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i+2],r[2*i+1]));n.push(r[a-2],r[a-1])}else if(&quot;hvh&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var s=(r[2*i]+r[2*i+2])/2;n.push(r[2*i],r[2*i+1],s,r[2*i+1],s,r[2*i+3])}n.push(r[a-2],r[a-1])}else if(&quot;vhv&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)if(isNaN(r[2*i])||isNaN(r[2*i+1])||isNaN(r[2*i+2])||isNaN(r[2*i+3]))isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+1]),n.push(NaN,NaN);else{var l=(r[2*i+1]+r[2*i+3])/2;n.push(r[2*i],r[2*i+1],r[2*i],l,r[2*i+2],l)}n.push(r[a-2],r[a-1])}else if(&quot;vh&quot;===e.line.shape){for(n=[],i=0;i&lt;o-1;i++)isNaN(r[2*i])||isNaN(r[2*i+1])?n.push(NaN,NaN,NaN,NaN):(n.push(r[2*i],r[2*i+1]),isNaN(r[2*i+2])||isNaN(r[2*i+3])?n.push(NaN,NaN):n.push(r[2*i],r[2*i+3]));n.push(r[a-2],r[a-1])}else n=r;var c=!1;for(i=0;i&lt;n.length;i++)if(isNaN(n[i])){c=!0;break}var u=c||n.length&gt;d.TOO_MANY_POINTS||f.hasMarkers(e)?&quot;rect&quot;:&quot;round&quot;;if(c&amp;&amp;e.connectgaps){var h=n[0],p=n[1];for(i=0;i&lt;n.length;i+=2)isNaN(n[i])||isNaN(n[i+1])?(n[i]=h,n[i+1]=p):(h=n[i],p=n[i+1])}return{join:u,positions:n}},errorBarPositions:function(t,e,r,i,a){var s=o.getComponentMethod(&quot;errorbars&quot;,&quot;makeComputeError&quot;),l=c.getFromId(t,e.xaxis),u=c.getFromId(t,e.yaxis),f=r.length/2,h={};function p(t,i){var a=i._id.charAt(0),o=e[&quot;error_&quot;+a];if(o&amp;&amp;o.visible&amp;&amp;(&quot;linear&quot;===i.type||&quot;log&quot;===i.type)){for(var l=s(o),c={x:0,y:1}[a],u={x:[0,1,2,3],y:[2,3,0,1]}[a],p=new Float64Array(4*f),d=1/0,g=-1/0,m=0,v=0;m&lt;f;m++,v+=4){var y=t[m];if(n(y)){var x=r[2*m+c],b=l(y,m),_=b[0],w=b[1];if(n(_)&amp;&amp;n(w)){var T=y-_,k=y+w;p[v+u[0]]=x-i.c2l(T),p[v+u[1]]=i.c2l(k)-x,p[v+u[2]]=0,p[v+u[3]]=0,d=Math.min(d,y-_),g=Math.max(g,y+w)}}}h[a]={positions:r,errors:p,_bnds:[d,g]}}}return p(i,l),p(a,u),h},textPosition:function(t,e,r,n){var i,a=e._length,o={};if(f.hasMarkers(e)){var s=r.font,l=r.align,c=r.baseline;for(o.offset=new Array(a),i=0;i&lt;a;i++){var u=n.sizes?n.sizes[i]:n.size,h=Array.isArray(s)?s[i].size:s.size,p=Array.isArray(l)?l.length&gt;1?l[i]:l[0]:l,d=Array.isArray(c)?c.length&gt;1?c[i]:c[0]:c,g=m[p],v=m[d],y=u?u/.8+1:0,x=-v*y-.5*v;o.offset[i]=[g*y/h,x/h]}}return o}}},{&quot;../../components/drawing&quot;:665,&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/interactions&quot;:752,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../registry&quot;:911,&quot;../scatter/make_bubble_size_func&quot;:1204,&quot;../scatter/subtypes&quot;:1212,&quot;./constants&quot;:1241,&quot;./helpers&quot;:1246,&quot;color-normalize&quot;:125,&quot;fast-isnumeric&quot;:241,&quot;svg-path-sdf&quot;:574}],1243:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;./helpers&quot;),o=t(&quot;./attributes&quot;),s=t(&quot;../scatter/constants&quot;),l=t(&quot;../scatter/subtypes&quot;),c=t(&quot;../scatter/xy_defaults&quot;),u=t(&quot;../scatter/period_defaults&quot;),f=t(&quot;../scatter/marker_defaults&quot;),h=t(&quot;../scatter/line_defaults&quot;),p=t(&quot;../scatter/fillcolor_defaults&quot;),d=t(&quot;../scatter/text_defaults&quot;);e.exports=function(t,e,r,g){function m(r,i){return n.coerce(t,e,o,r,i)}var v=!!t.marker&amp;&amp;a.isOpenSymbol(t.marker.symbol),y=l.isBubble(t),x=c(t,e,g,m);if(x){u(t,e,g,m);var b=x&lt;s.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;;m(&quot;text&quot;),m(&quot;hovertext&quot;),m(&quot;hovertemplate&quot;),m(&quot;mode&quot;,b),l.hasLines(e)&amp;&amp;(m(&quot;connectgaps&quot;),h(t,e,r,g,m),m(&quot;line.shape&quot;)),l.hasMarkers(e)&amp;&amp;(f(t,e,r,g,m),m(&quot;marker.line.width&quot;,v||y?1:0)),l.hasText(e)&amp;&amp;(m(&quot;texttemplate&quot;),d(t,e,g,m));var _=(e.line||{}).color,w=(e.marker||{}).color;m(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;p(t,e,r,m);var T=i.getComponentMethod(&quot;errorbars&quot;,&quot;supplyDefaults&quot;);T(t,e,_||w||r,{axis:&quot;y&quot;}),T(t,e,_||w||r,{axis:&quot;x&quot;,inherit:&quot;y&quot;}),n.coerceSelectionMarkerOpacity(e,m)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:1239,&quot;./helpers&quot;:1246}],1244:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../constants/interactions&quot;).DESELECTDIM;e.exports={styleTextSelection:function(t){var e,r,o=t[0],s=o.trace,l=o.t,c=l._scene,u=l.index,f=c.selectBatch[u],h=c.unselectBatch[u],p=c.textOptions[u],d=c.textSelectedOptions[u]||{},g=c.textUnselectedOptions[u]||{},m=n.extendFlat({},p);if(f.length||h.length){var v=d.color,y=g.color,x=p.color,b=Array.isArray(x);for(m.color=new Array(s._length),e=0;e&lt;f.length;e++)r=f[e],m.color[r]=v||(b?x[r]:x);for(e=0;e&lt;h.length;e++){r=h[e];var _=b?x[r]:x;m.color[r]=y||(v?_:i.addOpacity(_,a))}}c.glText[u].update(m)}}},{&quot;../../components/color&quot;:643,&quot;../../constants/interactions&quot;:752,&quot;../../lib&quot;:778}],1245:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/format_labels&quot;);e.exports=function(t,e,r){var i=t.i;return&quot;x&quot;in t||(t.x=e._x[i]),&quot;y&quot;in t||(t.y=e._y[i]),n(t,e,r)}},{&quot;../scatter/format_labels&quot;:1196}],1246:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;);r.isOpenSymbol=function(t){return&quot;string&quot;==typeof t?n.OPEN_RE.test(t):t%200&gt;100},r.isDotSymbol=function(t){return&quot;string&quot;==typeof t?n.DOT_RE.test(t):t&gt;200}},{&quot;./constants&quot;:1241}],1247:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/get_trace_color&quot;);function o(t,e,r,o){var s=t.xa,l=t.ya,c=t.distance,u=t.dxy,f=t.index,h={pointNumber:f,x:e[f],y:r[f]};h.tx=Array.isArray(o.text)?o.text[f]:o.text,h.htx=Array.isArray(o.hovertext)?o.hovertext[f]:o.hovertext,h.data=Array.isArray(o.customdata)?o.customdata[f]:o.customdata,h.tp=Array.isArray(o.textposition)?o.textposition[f]:o.textposition;var p=o.textfont;p&amp;&amp;(h.ts=i.isArrayOrTypedArray(p.size)?p.size[f]:p.size,h.tc=Array.isArray(p.color)?p.color[f]:p.color,h.tf=Array.isArray(p.family)?p.family[f]:p.family);var d=o.marker;d&amp;&amp;(h.ms=i.isArrayOrTypedArray(d.size)?d.size[f]:d.size,h.mo=i.isArrayOrTypedArray(d.opacity)?d.opacity[f]:d.opacity,h.mx=i.isArrayOrTypedArray(d.symbol)?d.symbol[f]:d.symbol,h.mc=i.isArrayOrTypedArray(d.color)?d.color[f]:d.color);var g=d&amp;&amp;d.line;g&amp;&amp;(h.mlc=Array.isArray(g.color)?g.color[f]:g.color,h.mlw=i.isArrayOrTypedArray(g.width)?g.width[f]:g.width);var m=d&amp;&amp;d.gradient;m&amp;&amp;&quot;none&quot;!==m.type&amp;&amp;(h.mgt=Array.isArray(m.type)?m.type[f]:m.type,h.mgc=Array.isArray(m.color)?m.color[f]:m.color);var v=s.c2p(h.x,!0),y=l.c2p(h.y,!0),x=h.mrc||1,b=o.hoverlabel;b&amp;&amp;(h.hbg=Array.isArray(b.bgcolor)?b.bgcolor[f]:b.bgcolor,h.hbc=Array.isArray(b.bordercolor)?b.bordercolor[f]:b.bordercolor,h.hts=i.isArrayOrTypedArray(b.font.size)?b.font.size[f]:b.font.size,h.htc=Array.isArray(b.font.color)?b.font.color[f]:b.font.color,h.htf=Array.isArray(b.font.family)?b.font.family[f]:b.font.family,h.hnl=i.isArrayOrTypedArray(b.namelength)?b.namelength[f]:b.namelength);var _=o.hoverinfo;_&amp;&amp;(h.hi=Array.isArray(_)?_[f]:_);var w=o.hovertemplate;w&amp;&amp;(h.ht=Array.isArray(w)?w[f]:w);var T={};T[t.index]=h;var k=o._origX,M=o._origY,A=i.extendFlat({},t,{color:a(o,h),x0:v-x,x1:v+x,xLabelVal:k?k[f]:h.x,y0:y-x,y1:y+x,yLabelVal:M?M[f]:h.y,cd:T,distance:c,spikeDistance:u,hovertemplate:h.ht});return h.htx?A.text=h.htx:h.tx?A.text=h.tx:o.text&amp;&amp;(A.text=o.text),i.fillText(h,o,A),n.getComponentMethod(&quot;errorbars&quot;,&quot;hoverInfo&quot;)(h,o,A),A}e.exports={hoverPoints:function(t,e,r,n){var i,a,s,l,c,u,f,h,p,d=t.cd,g=d[0].t,m=d[0].trace,v=t.xa,y=t.ya,x=g.x,b=g.y,_=v.c2p(e),w=y.c2p(r),T=t.distance;if(g.tree){var k=v.p2c(_-T),M=v.p2c(_+T),A=y.p2c(w-T),S=y.p2c(w+T);i=&quot;x&quot;===n?g.tree.range(Math.min(k,M),Math.min(y._rl[0],y._rl[1]),Math.max(k,M),Math.max(y._rl[0],y._rl[1])):g.tree.range(Math.min(k,M),Math.min(A,S),Math.max(k,M),Math.max(A,S))}else i=g.ids;var E=T;if(&quot;x&quot;===n)for(c=0;c&lt;i.length;c++)s=x[i[c]],(u=Math.abs(v.c2p(s)-_))&lt;E&amp;&amp;(E=u,f=y.c2p(b[i[c]])-w,p=Math.sqrt(u*u+f*f),a=i[c]);else for(c=i.length-1;c&gt;-1;c--)s=x[i[c]],l=b[i[c]],u=v.c2p(s)-_,f=y.c2p(l)-w,(h=Math.sqrt(u*u+f*f))&lt;E&amp;&amp;(E=p=h,a=i[c]);return t.index=a,t.distance=E,t.dxy=p,void 0===a?[t]:[o(t,x,b,m)]},calcHover:o}},{&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;../scatter/get_trace_color&quot;:1197}],1248:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./hover&quot;);e.exports={moduleType:&quot;trace&quot;,name:&quot;scattergl&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;cartesian&quot;,&quot;symbols&quot;,&quot;errorBarsOK&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../scatter/cross_trace_defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:n.hoverPoints,selectPoints:t(&quot;./select&quot;),meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../scatter/cross_trace_defaults&quot;:1193,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1239,&quot;./calc&quot;:1240,&quot;./defaults&quot;:1243,&quot;./format_labels&quot;:1245,&quot;./hover&quot;:1247,&quot;./plot&quot;:1249,&quot;./select&quot;:1251}],1249:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-scatter2d&quot;),i=t(&quot;regl-line2d&quot;),a=t(&quot;regl-error2d&quot;),o=t(&quot;gl-text&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../components/dragelement/helpers&quot;).selectMode,c=t(&quot;../../lib/prepare_regl&quot;),u=t(&quot;../scatter/subtypes&quot;),f=t(&quot;../scatter/link_traces&quot;),h=t(&quot;./edit_style&quot;).styleTextSelection;function p(t,e,r){var n=t._size,i=t.width,a=t.height;return[n.l+e.domain[0]*n.w,n.b+r.domain[0]*n.h,i-n.r-(1-e.domain[1])*n.w,a-n.t-(1-r.domain[1])*n.h]}e.exports=function(t,e,r){if(r.length){var d,g,m=t._fullLayout,v=e._scene,y=e.xaxis,x=e.yaxis;if(v)if(c(t,[&quot;ANGLE_instanced_arrays&quot;,&quot;OES_element_index_uint&quot;])){var b=v.count,_=m._glcanvas.data()[0].regl;if(f(t,e,r),v.dirty){if(!0===v.error2d&amp;&amp;(v.error2d=a(_)),!0===v.line2d&amp;&amp;(v.line2d=i(_)),!0===v.scatter2d&amp;&amp;(v.scatter2d=n(_,{constPointSize:!0})),!0===v.fill2d&amp;&amp;(v.fill2d=i(_)),!0===v.glText)for(v.glText=new Array(b),d=0;d&lt;b;d++)v.glText[d]=new o(_);if(v.glText){if(b&gt;v.glText.length){var w=b-v.glText.length;for(d=0;d&lt;w;d++)v.glText.push(new o(_))}else if(b&lt;v.glText.length){var T=v.glText.length-b;v.glText.splice(b,T).forEach((function(t){t.destroy()}))}for(d=0;d&lt;b;d++)v.glText[d].update(v.textOptions[d])}if(v.line2d&amp;&amp;(v.line2d.update(v.lineOptions),v.lineOptions=v.lineOptions.map((function(t){if(t&amp;&amp;t.positions){for(var e=t.positions,r=0;r&lt;e.length&amp;&amp;(isNaN(e[r])||isNaN(e[r+1]));)r+=2;for(var n=e.length-2;n&gt;r&amp;&amp;(isNaN(e[n])||isNaN(e[n+1]));)n-=2;t.positions=e.slice(r,n+2)}return t})),v.line2d.update(v.lineOptions)),v.error2d){var k=(v.errorXOptions||[]).concat(v.errorYOptions||[]);v.error2d.update(k)}v.scatter2d&amp;&amp;v.scatter2d.update(v.markerOptions),v.fillOrder=s.repeat(null,b),v.fill2d&amp;&amp;(v.fillOptions=v.fillOptions.map((function(t,e){var n=r[e];if(t&amp;&amp;n&amp;&amp;n[0]&amp;&amp;n[0].trace){var i,a,o=n[0],s=o.trace,l=o.t,c=v.lineOptions[e],u=[];s._ownfill&amp;&amp;u.push(e),s._nexttrace&amp;&amp;u.push(e+1),u.length&amp;&amp;(v.fillOrder[e]=u);var f,h,p=[],d=c&amp;&amp;c.positions||l.positions;if(&quot;tozeroy&quot;===s.fill){for(f=0;f&lt;d.length&amp;&amp;isNaN(d[f+1]);)f+=2;for(h=d.length-2;h&gt;f&amp;&amp;isNaN(d[h+1]);)h-=2;0!==d[f+1]&amp;&amp;(p=[d[f],0]),p=p.concat(d.slice(f,h+2)),0!==d[h+1]&amp;&amp;(p=p.concat([d[h],0]))}else if(&quot;tozerox&quot;===s.fill){for(f=0;f&lt;d.length&amp;&amp;isNaN(d[f]);)f+=2;for(h=d.length-2;h&gt;f&amp;&amp;isNaN(d[h]);)h-=2;0!==d[f]&amp;&amp;(p=[0,d[f+1]]),p=p.concat(d.slice(f,h+2)),0!==d[h]&amp;&amp;(p=p.concat([0,d[h+1]]))}else if(&quot;toself&quot;===s.fill||&quot;tonext&quot;===s.fill){for(p=[],i=0,a=0;a&lt;d.length;a+=2)(isNaN(d[a])||isNaN(d[a+1]))&amp;&amp;((p=p.concat(d.slice(i,a))).push(d[i],d[i+1]),i=a+2);p=p.concat(d.slice(i)),i&amp;&amp;p.push(d[i],d[i+1])}else{var g=s._nexttrace;if(g){var m=v.lineOptions[e+1];if(m){var y=m.positions;if(&quot;tonexty&quot;===s.fill){for(p=d.slice(),e=Math.floor(y.length/2);e--;){var x=y[2*e],b=y[2*e+1];isNaN(x)||isNaN(b)||p.push(x,b)}t.fill=g.fillcolor}}}}if(s._prevtrace&amp;&amp;&quot;tonext&quot;===s._prevtrace.fill){var _=v.lineOptions[e-1].positions,w=p.length/2,T=[i=w];for(a=0;a&lt;_.length;a+=2)(isNaN(_[a])||isNaN(_[a+1]))&amp;&amp;(T.push(a/2+w+1),i=a+2);p=p.concat(_),t.hole=T}return t.fillmode=s.fill,t.opacity=s.opacity,t.positions=p,t}})),v.fill2d.update(v.fillOptions))}var M=m.dragmode,A=l(M),S=m.clickmode.indexOf(&quot;select&quot;)&gt;-1;for(d=0;d&lt;b;d++){var E=r[d][0],C=E.trace,L=E.t,I=L.index,P=C._length,z=L.x,O=L.y;if(C.selectedpoints||A||S){if(A||(A=!0),C.selectedpoints){var D=v.selectBatch[I]=s.selIndices2selPoints(C),R={};for(g=0;g&lt;D.length;g++)R[D[g]]=1;var F=[];for(g=0;g&lt;P;g++)R[g]||F.push(g);v.unselectBatch[I]=F}var B=L.xpx=new Array(P),N=L.ypx=new Array(P);for(g=0;g&lt;P;g++)B[g]=y.c2p(z[g]),N[g]=x.c2p(O[g])}else L.xpx=L.ypx=null}if(A){if(v.select2d||(v.select2d=n(m._glcanvas.data()[1].regl)),v.scatter2d){var j=new Array(b);for(d=0;d&lt;b;d++)j[d]=v.selectBatch[d].length||v.unselectBatch[d].length?v.markerUnselectedOptions[d]:{};v.scatter2d.update(j)}v.select2d&amp;&amp;(v.select2d.update(v.markerOptions),v.select2d.update(v.markerSelectedOptions)),v.glText&amp;&amp;r.forEach((function(t){var e=((t||[])[0]||{}).trace||{};u.hasText(e)&amp;&amp;h(t)}))}else v.scatter2d&amp;&amp;v.scatter2d.update(v.markerOptions);var U={viewport:p(m,y,x),range:[(y._rl||y.range)[0],(x._rl||x.range)[0],(y._rl||y.range)[1],(x._rl||x.range)[1]]},V=s.repeat(U,v.count);v.fill2d&amp;&amp;v.fill2d.update(V),v.line2d&amp;&amp;v.line2d.update(V),v.error2d&amp;&amp;v.error2d.update(V.concat(V)),v.scatter2d&amp;&amp;v.scatter2d.update(V),v.select2d&amp;&amp;v.select2d.update(V),v.glText&amp;&amp;v.glText.forEach((function(t){t.update(U)}))}else v.init()}}},{&quot;../../components/dragelement/helpers&quot;:661,&quot;../../lib&quot;:778,&quot;../../lib/prepare_regl&quot;:791,&quot;../scatter/link_traces&quot;:1203,&quot;../scatter/subtypes&quot;:1212,&quot;./edit_style&quot;:1244,&quot;gl-text&quot;:352,&quot;regl-error2d&quot;:534,&quot;regl-line2d&quot;:535,&quot;regl-scatter2d&quot;:537}],1250:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=e._scene,i={count:0,dirty:!0,lineOptions:[],fillOptions:[],markerOptions:[],markerSelectedOptions:[],markerUnselectedOptions:[],errorXOptions:[],errorYOptions:[],textOptions:[],textSelectedOptions:[],textUnselectedOptions:[],selectBatch:[],unselectBatch:[]},a={fill2d:!1,scatter2d:!1,error2d:!1,line2d:!1,glText:!1,select2d:!1};return e._scene||((r=e._scene={}).init=function(){n.extendFlat(r,a,i)},r.init(),r.update=function(t){var e=n.repeat(t,r.count);if(r.fill2d&amp;&amp;r.fill2d.update(e),r.scatter2d&amp;&amp;r.scatter2d.update(e),r.line2d&amp;&amp;r.line2d.update(e),r.error2d&amp;&amp;r.error2d.update(e.concat(e)),r.select2d&amp;&amp;r.select2d.update(e),r.glText)for(var i=0;i&lt;r.count;i++)r.glText[i].update(t)},r.draw=function(){for(var t=r.count,e=r.fill2d,i=r.error2d,a=r.line2d,o=r.scatter2d,s=r.glText,l=r.select2d,c=r.selectBatch,u=r.unselectBatch,f=0;f&lt;t;f++){if(e&amp;&amp;r.fillOrder[f]&amp;&amp;e.draw(r.fillOrder[f]),a&amp;&amp;r.lineOptions[f]&amp;&amp;a.draw(f),i&amp;&amp;(r.errorXOptions[f]&amp;&amp;i.draw(f),r.errorYOptions[f]&amp;&amp;i.draw(f+t)),o&amp;&amp;r.markerOptions[f])if(u[f].length){var h=n.repeat([],r.count);h[f]=u[f],o.draw(h)}else c[f].length||o.draw(f);s[f]&amp;&amp;r.textOptions[f]&amp;&amp;s[f].render()}l&amp;&amp;l.draw(c),r.dirty=!1},r.destroy=function(){r.fill2d&amp;&amp;r.fill2d.destroy&amp;&amp;r.fill2d.destroy(),r.scatter2d&amp;&amp;r.scatter2d.destroy&amp;&amp;r.scatter2d.destroy(),r.error2d&amp;&amp;r.error2d.destroy&amp;&amp;r.error2d.destroy(),r.line2d&amp;&amp;r.line2d.destroy&amp;&amp;r.line2d.destroy(),r.select2d&amp;&amp;r.select2d.destroy&amp;&amp;r.select2d.destroy(),r.glText&amp;&amp;r.glText.forEach((function(t){t.destroy&amp;&amp;t.destroy()})),r.lineOptions=null,r.fillOptions=null,r.markerOptions=null,r.markerSelectedOptions=null,r.markerUnselectedOptions=null,r.errorXOptions=null,r.errorYOptions=null,r.textOptions=null,r.textSelectedOptions=null,r.textUnselectedOptions=null,r.selectBatch=null,r.unselectBatch=null,e._scene=null}),r.dirty||n.extendFlat(r,i),r}},{&quot;../../lib&quot;:778}],1251:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/subtypes&quot;),i=t(&quot;./edit_style&quot;).styleTextSelection;e.exports=function(t,e){var r=t.cd,a=[],o=r[0].trace,s=r[0].t,l=o._length,c=s.x,u=s.y,f=s._scene,h=s.index;if(!f)return a;var p=n.hasText(o),d=n.hasMarkers(o),g=!d&amp;&amp;!p;if(!0!==o.visible||g)return a;var m=[],v=[];if(!1!==e&amp;&amp;!e.degenerate)for(var y=0;y&lt;l;y++)e.contains([s.xpx[y],s.ypx[y]],!1,y,t)?(m.push(y),a.push({pointNumber:y,x:c[y],y:u[y]})):v.push(y);if(d){var x=f.scatter2d;if(m.length||v.length){if(!f.selectBatch[h].length&amp;&amp;!f.unselectBatch[h].length){var b=new Array(f.count);b[h]=f.markerUnselectedOptions[h],x.update.apply(x,b)}}else{var _=new Array(f.count);_[h]=f.markerOptions[h],x.update.apply(x,_)}}return f.selectBatch[h]=m,f.unselectBatch[h]=v,p&amp;&amp;i(r),a}},{&quot;../scatter/subtypes&quot;:1212,&quot;./edit_style&quot;:1244}],1252:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scattergeo/attributes&quot;),o=t(&quot;../scatter/attributes&quot;),s=t(&quot;../../plots/mapbox/layout_attributes&quot;),l=t(&quot;../../plots/attributes&quot;),c=t(&quot;../../components/colorscale/attributes&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat,f=t(&quot;../../plot_api/edit_types&quot;).overrideAll,h=a.line,p=a.marker;e.exports=f({lon:a.lon,lat:a.lat,mode:u({},o.mode,{dflt:&quot;markers&quot;}),text:u({},o.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;lat&quot;,&quot;lon&quot;,&quot;text&quot;]}),hovertext:u({},o.hovertext,{}),line:{color:h.color,width:h.width},connectgaps:o.connectgaps,marker:u({symbol:{valType:&quot;string&quot;,dflt:&quot;circle&quot;,arrayOk:!0},angle:{valType:&quot;number&quot;,dflt:&quot;auto&quot;,arrayOk:!0},allowoverlap:{valType:&quot;boolean&quot;,dflt:!1},opacity:p.opacity,size:p.size,sizeref:p.sizeref,sizemin:p.sizemin,sizemode:p.sizemode},c(&quot;marker&quot;)),fill:a.fill,fillcolor:o.fillcolor,textfont:s.layers.symbol.textfont,textposition:s.layers.symbol.textposition,below:{valType:&quot;string&quot;},selected:{marker:o.selected.marker},unselected:{marker:o.unselected.marker},hoverinfo:u({},l.hoverinfo,{flags:[&quot;lon&quot;,&quot;lat&quot;,&quot;text&quot;,&quot;name&quot;]}),hovertemplate:n()},&quot;calc&quot;,&quot;nested&quot;)},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/mapbox/layout_attributes&quot;:887,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187,&quot;../scattergeo/attributes&quot;:1229}],1253:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM,o=t(&quot;../../lib/geojson_utils&quot;),s=t(&quot;../../components/colorscale&quot;),l=t(&quot;../../components/drawing&quot;),c=t(&quot;../scatter/make_bubble_size_func&quot;),u=t(&quot;../scatter/subtypes&quot;),f=t(&quot;../../plots/mapbox/convert_text_opts&quot;),h=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,p=t(&quot;../../lib/svg_text_utils&quot;).NEWLINES,d=t(&quot;../../lib/svg_text_utils&quot;).BR_TAG_ALL;function g(){return{geojson:o.makeBlank(),layout:{visibility:&quot;none&quot;},paint:{}}}function m(t,e){return i.isArrayOrTypedArray(t)?e?function(e){return n(t[e])?+t[e]:0}:function(e){return t[e]}:t?function(){return t}:v}function v(){return&quot;&quot;}function y(t){return t[0]===a}e.exports=function(t,e){var r,a=e[0].trace,x=!0===a.visible&amp;&amp;0!==a._length,b=&quot;none&quot;!==a.fill,_=u.hasLines(a),w=u.hasMarkers(a),T=u.hasText(a),k=w&amp;&amp;&quot;circle&quot;===a.marker.symbol,M=w&amp;&amp;&quot;circle&quot;!==a.marker.symbol,A=g(),S=g(),E=g(),C=g(),L={fill:A,line:S,circle:E,symbol:C};if(!x)return L;if((b||_)&amp;&amp;(r=o.calcTraceToLineCoords(e)),b&amp;&amp;(A.geojson=o.makePolygon(r),A.layout.visibility=&quot;visible&quot;,i.extendFlat(A.paint,{&quot;fill-color&quot;:a.fillcolor})),_&amp;&amp;(S.geojson=o.makeLine(r),S.layout.visibility=&quot;visible&quot;,i.extendFlat(S.paint,{&quot;line-width&quot;:a.line.width,&quot;line-color&quot;:a.line.color,&quot;line-opacity&quot;:a.opacity})),k){var I=function(t){var e,r,a,o,u=t[0].trace,f=u.marker,h=u.selectedpoints,p=i.isArrayOrTypedArray(f.color),d=i.isArrayOrTypedArray(f.size),g=i.isArrayOrTypedArray(f.opacity);function m(t){return u.opacity*t}p&amp;&amp;(r=s.hasColorscale(u,&quot;marker&quot;)?s.makeColorScaleFuncFromTrace(f):i.identity);d&amp;&amp;(a=c(u));g&amp;&amp;(o=function(t){return m(n(t)?+i.constrain(t,0,1):0)});var v,x=[];for(e=0;e&lt;t.length;e++){var b=t[e],_=b.lonlat;if(!y(_)){var w={};r&amp;&amp;(w.mcc=b.mcc=r(b.mc)),a&amp;&amp;(w.mrc=b.mrc=a(b.ms)),o&amp;&amp;(w.mo=o(b.mo)),h&amp;&amp;(w.selected=b.selected||0),x.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:_},properties:w})}}if(h)for(v=l.makeSelectedPointStyleFns(u),e=0;e&lt;x.length;e++){var T=x[e].properties;v.selectedOpacityFn&amp;&amp;(T.mo=m(v.selectedOpacityFn(T))),v.selectedColorFn&amp;&amp;(T.mcc=v.selectedColorFn(T)),v.selectedSizeFn&amp;&amp;(T.mrc=v.selectedSizeFn(T))}return{geojson:{type:&quot;FeatureCollection&quot;,features:x},mcc:p||v&amp;&amp;v.selectedColorFn?{type:&quot;identity&quot;,property:&quot;mcc&quot;}:f.color,mrc:d||v&amp;&amp;v.selectedSizeFn?{type:&quot;identity&quot;,property:&quot;mrc&quot;}:(k=f.size,k/2),mo:g||v&amp;&amp;v.selectedOpacityFn?{type:&quot;identity&quot;,property:&quot;mo&quot;}:m(f.opacity)};var k}(e);E.geojson=I.geojson,E.layout.visibility=&quot;visible&quot;,i.extendFlat(E.paint,{&quot;circle-color&quot;:I.mcc,&quot;circle-radius&quot;:I.mrc,&quot;circle-opacity&quot;:I.mo})}if((M||T)&amp;&amp;(C.geojson=function(t,e){for(var r=e._fullLayout,n=t[0].trace,a=n.marker||{},o=a.symbol,s=a.angle,l=&quot;circle&quot;!==o?m(o):v,c=&quot;auto&quot;!==s?m(s,!0):v,f=u.hasText(n)?m(n.text):v,g=[],x=0;x&lt;t.length;x++){var b=t[x];if(!y(b.lonlat)){var _,w=n.texttemplate;if(w){var T=Array.isArray(w)?w[x]||&quot;&quot;:w,k=n._module.formatLabels(b,n,r),M={};h(M,n,b.i);var A=n._meta||{};_=i.texttemplateString(T,k,r._d3locale,M,b,A)}else _=f(x);_&amp;&amp;(_=_.replace(p,&quot;&quot;).replace(d,&quot;\n&quot;)),g.push({type:&quot;Feature&quot;,geometry:{type:&quot;Point&quot;,coordinates:b.lonlat},properties:{symbol:l(x),angle:c(x),text:_}})}}return{type:&quot;FeatureCollection&quot;,features:g}}(e,t),i.extendFlat(C.layout,{visibility:&quot;visible&quot;,&quot;icon-image&quot;:&quot;{symbol}-15&quot;,&quot;text-field&quot;:&quot;{text}&quot;}),M&amp;&amp;(i.extendFlat(C.layout,{&quot;icon-size&quot;:a.marker.size/10}),&quot;angle&quot;in a.marker&amp;&amp;&quot;auto&quot;!==a.marker.angle&amp;&amp;i.extendFlat(C.layout,{&quot;icon-rotate&quot;:{type:&quot;identity&quot;,property:&quot;angle&quot;},&quot;icon-rotation-alignment&quot;:&quot;map&quot;}),C.layout[&quot;icon-allow-overlap&quot;]=a.marker.allowoverlap,i.extendFlat(C.paint,{&quot;icon-opacity&quot;:a.opacity*a.marker.opacity,&quot;icon-color&quot;:a.marker.color})),T)){var P=(a.marker||{}).size,z=f(a.textposition,P);i.extendFlat(C.layout,{&quot;text-size&quot;:a.textfont.size,&quot;text-anchor&quot;:z.anchor,&quot;text-offset&quot;:z.offset}),i.extendFlat(C.paint,{&quot;text-color&quot;:a.textfont.color,&quot;text-opacity&quot;:a.opacity})}return L}},{&quot;../../components/colorscale&quot;:655,&quot;../../components/drawing&quot;:665,&quot;../../components/fx/helpers&quot;:679,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../lib/geojson_utils&quot;:772,&quot;../../lib/svg_text_utils&quot;:803,&quot;../../plots/mapbox/convert_text_opts&quot;:884,&quot;../scatter/make_bubble_size_func&quot;:1204,&quot;../scatter/subtypes&quot;:1212,&quot;fast-isnumeric&quot;:241}],1254:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/text_defaults&quot;),l=t(&quot;../scatter/fillcolor_defaults&quot;),c=t(&quot;./attributes&quot;);e.exports=function(t,e,r,u){function f(r,i){return n.coerce(t,e,c,r,i)}if(function(t,e,r){var n=r(&quot;lon&quot;)||[],i=r(&quot;lat&quot;)||[],a=Math.min(n.length,i.length);return e._length=a,a}(0,e,f)){if(f(&quot;text&quot;),f(&quot;texttemplate&quot;),f(&quot;hovertext&quot;),f(&quot;hovertemplate&quot;),f(&quot;mode&quot;),f(&quot;below&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,u,f,{noDash:!0}),f(&quot;connectgaps&quot;)),i.hasMarkers(e)){a(t,e,r,u,f,{noLine:!0}),f(&quot;marker.allowoverlap&quot;),f(&quot;marker.angle&quot;);var h=e.marker;&quot;circle&quot;!==h.symbol&amp;&amp;(n.isArrayOrTypedArray(h.size)&amp;&amp;(h.size=h.size[0]),n.isArrayOrTypedArray(h.color)&amp;&amp;(h.color=h.color[0]))}i.hasText(e)&amp;&amp;s(t,e,u,f,{noSelect:!0}),f(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;l(t,e,r,f),n.coerceSelectionMarkerOpacity(e,f)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1252}],1255:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.lon=e.lon,t.lat=e.lat,t}},{}],1256:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.subplot]._subplot.mockAxis,o=t.lonlat;return i.lonLabel=n.tickText(a,a.c2l(o[0]),!0).text,i.latLabel=n.tickText(a,a.c2l(o[1]),!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1257:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/fx&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../scatter/get_trace_color&quot;),o=i.fillText,s=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r){var l=t.cd,c=l[0].trace,u=t.xa,f=t.ya,h=t.subplot,p=360*(e&gt;=0?Math.floor((e+180)/360):Math.ceil((e-180)/360)),d=e-p;if(n.getClosest(l,(function(t){var e=t.lonlat;if(e[0]===s)return 1/0;var n=i.modHalf(e[0],360),a=e[1],o=h.project([n,a]),l=o.x-u.c2p([d,a]),c=o.y-f.c2p([n,r]),p=Math.max(3,t.mrc||0);return Math.max(Math.sqrt(l*l+c*c)-p,1-3/p)}),t),!1!==t.index){var g=l[t.index],m=g.lonlat,v=[i.modHalf(m[0],360)+p,m[1]],y=u.c2p(v),x=f.c2p(v),b=g.mrc||1;t.x0=y-b,t.x1=y+b,t.y0=x-b,t.y1=x+b;var _={};_[c.subplot]={_subplot:h};var w=c._module.formatLabels(g,c,_);return t.lonLabel=w.lonLabel,t.latLabel=w.latLabel,t.color=a(c,g),t.extraText=function(t,e,r){if(t.hovertemplate)return;var n=(e.hi||t.hoverinfo).split(&quot;+&quot;),i=-1!==n.indexOf(&quot;all&quot;),a=-1!==n.indexOf(&quot;lon&quot;),s=-1!==n.indexOf(&quot;lat&quot;),l=e.lonlat,c=[];function u(t){return t+&quot;\xb0&quot;}i||a&amp;&amp;s?c.push(&quot;(&quot;+u(l[0])+&quot;, &quot;+u(l[1])+&quot;)&quot;):a?c.push(r.lon+u(l[0])):s&amp;&amp;c.push(r.lat+u(l[1]));(i||-1!==n.indexOf(&quot;text&quot;))&amp;&amp;o(e,t,c);return c.join(&quot;&lt;br&gt;&quot;)}(c,g,l[0].t.labels),t.hovertemplate=c.hovertemplate,[t]}}},{&quot;../../components/fx&quot;:683,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/get_trace_color&quot;:1197}],1258:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;../scattergeo/calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;./select&quot;),styleOnSelect:function(t,e){e&amp;&amp;e[0].trace._glTrace.update(e)},moduleType:&quot;trace&quot;,name:&quot;scattermapbox&quot;,basePlotModule:t(&quot;../../plots/mapbox&quot;),categories:[&quot;mapbox&quot;,&quot;gl&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/mapbox&quot;:885,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scattergeo/calc&quot;:1230,&quot;./attributes&quot;:1252,&quot;./defaults&quot;:1254,&quot;./event_data&quot;:1255,&quot;./format_labels&quot;:1256,&quot;./hover&quot;:1257,&quot;./plot&quot;:1259,&quot;./select&quot;:1260}],1259:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./convert&quot;),i=t(&quot;../../plots/mapbox/constants&quot;).traceLayerPrefix,a=[&quot;fill&quot;,&quot;line&quot;,&quot;circle&quot;,&quot;symbol&quot;];function o(t,e){this.type=&quot;scattermapbox&quot;,this.subplot=t,this.uid=e,this.sourceIds={fill:&quot;source-&quot;+e+&quot;-fill&quot;,line:&quot;source-&quot;+e+&quot;-line&quot;,circle:&quot;source-&quot;+e+&quot;-circle&quot;,symbol:&quot;source-&quot;+e+&quot;-symbol&quot;},this.layerIds={fill:i+e+&quot;-fill&quot;,line:i+e+&quot;-line&quot;,circle:i+e+&quot;-circle&quot;,symbol:i+e+&quot;-symbol&quot;},this.below=null}var s=o.prototype;s.addSource=function(t,e){this.subplot.map.addSource(this.sourceIds[t],{type:&quot;geojson&quot;,data:e.geojson})},s.setSourceData=function(t,e){this.subplot.map.getSource(this.sourceIds[t]).setData(e.geojson)},s.addLayer=function(t,e,r){this.subplot.addLayer({type:t,id:this.layerIds[t],source:this.sourceIds[t],layout:e.layout,paint:e.paint},r)},s.update=function(t){var e,r,i,o=this.subplot,s=o.map,l=n(o.gd,t),c=o.belowLookup[&quot;trace-&quot;+this.uid];if(c!==this.below){for(e=a.length-1;e&gt;=0;e--)r=a[e],s.removeLayer(this.layerIds[r]);for(e=0;e&lt;a.length;e++)i=l[r=a[e]],this.addLayer(r,i,c);this.below=c}for(e=0;e&lt;a.length;e++)i=l[r=a[e]],o.setOptions(this.layerIds[r],&quot;setLayoutProperty&quot;,i.layout),&quot;visible&quot;===i.layout.visibility&amp;&amp;(this.setSourceData(r,i),o.setOptions(this.layerIds[r],&quot;setPaintProperty&quot;,i.paint));t[0].trace._glTrace=this},s.dispose=function(){for(var t=this.subplot.map,e=a.length-1;e&gt;=0;e--){var r=a[e];t.removeLayer(this.layerIds[r]),t.removeSource(this.sourceIds[r])}},e.exports=function(t,e){for(var r=e[0].trace,i=new o(t,r.uid),s=n(t.gd,e),l=i.below=t.belowLookup[&quot;trace-&quot;+r.uid],c=0;c&lt;a.length;c++){var u=a[c],f=s[u];i.addSource(u,f),i.addLayer(u,f,l)}return e[0].trace._glTrace=i,i}},{&quot;../../plots/mapbox/constants&quot;:883,&quot;./convert&quot;:1253}],1260:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e){var r,o=t.cd,s=t.xaxis,l=t.yaxis,c=[],u=o[0].trace;if(!i.hasMarkers(u))return[];if(!1===e)for(r=0;r&lt;o.length;r++)o[r].selected=0;else for(r=0;r&lt;o.length;r++){var f=o[r],h=f.lonlat;if(h[0]!==a){var p=[n.modHalf(h[0],360),h[1]],d=[s.c2p(p),l.c2p(p)];e.contains(d,null,r,t)?(c.push({pointNumber:r,lon:h[0],lat:h[1]}),f.selected=1):f.selected=0}}return c}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../scatter/subtypes&quot;:1212}],1261:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../lib/extend&quot;).extendFlat,o=t(&quot;../scatter/attributes&quot;),s=t(&quot;../../plots/attributes&quot;),l=o.line;e.exports={mode:o.mode,r:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},theta:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},r0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dr:{valType:&quot;number&quot;,dflt:1,editType:&quot;calc&quot;},theta0:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc+clearAxisTypes&quot;},dtheta:{valType:&quot;number&quot;,editType:&quot;calc&quot;},thetaunit:{valType:&quot;enumerated&quot;,values:[&quot;radians&quot;,&quot;degrees&quot;,&quot;gradians&quot;],dflt:&quot;degrees&quot;,editType:&quot;calc+clearAxisTypes&quot;},text:o.text,texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]}),hovertext:o.hovertext,line:{color:l.color,width:l.width,dash:l.dash,shape:a({},l.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:l.smoothing,editType:&quot;calc&quot;},connectgaps:o.connectgaps,marker:o.marker,cliponaxis:a({},o.cliponaxis,{dflt:!1}),textposition:o.textposition,textfont:o.textfont,fill:a({},o.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:o.fillcolor,hoverinfo:a({},s.hoverinfo,{flags:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:o.hoveron,hovertemplate:n(),selected:o.selected,unselected:o.unselected}},{&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1262:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM,a=t(&quot;../../plots/cartesian/axes&quot;),o=t(&quot;../scatter/colorscale_calc&quot;),s=t(&quot;../scatter/arrays_to_calcdata&quot;),l=t(&quot;../scatter/calc_selection&quot;),c=t(&quot;../scatter/calc&quot;).calcMarkerSize;e.exports=function(t,e){for(var r=t._fullLayout,u=e.subplot,f=r[u].radialaxis,h=r[u].angularaxis,p=f.makeCalcdata(e,&quot;r&quot;),d=h.makeCalcdata(e,&quot;theta&quot;),g=e._length,m=new Array(g),v=0;v&lt;g;v++){var y=p[v],x=d[v],b=m[v]={};n(y)&amp;&amp;n(x)?(b.r=y,b.theta=x):b.r=i}var _=c(e,g);return e._extremes.x=a.findExtremes(f,p,{ppad:_}),o(t,e),s(m,e),l(m,e),m}},{&quot;../../constants/numerical&quot;:753,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc&quot;:1188,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1263:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatter/marker_defaults&quot;),o=t(&quot;../scatter/line_defaults&quot;),s=t(&quot;../scatter/line_shape_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;../scatter/fillcolor_defaults&quot;),u=t(&quot;../scatter/constants&quot;).PTS_LINESONLY,f=t(&quot;./attributes&quot;);function h(t,e,r,n){var i,a=n(&quot;r&quot;),o=n(&quot;theta&quot;);if(a)o?i=Math.min(a.length,o.length):(i=a.length,n(&quot;theta0&quot;),n(&quot;dtheta&quot;));else{if(!o)return 0;i=e.theta.length,n(&quot;r0&quot;),n(&quot;dr&quot;)}return e._length=i,i}e.exports={handleRThetaDefaults:h,supplyDefaults:function(t,e,r,p){function d(r,i){return n.coerce(t,e,f,r,i)}var g=h(t,e,p,d);if(g){d(&quot;thetaunit&quot;),d(&quot;mode&quot;,g&lt;u?&quot;lines+markers&quot;:&quot;lines&quot;),d(&quot;text&quot;),d(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;d(&quot;hovertemplate&quot;),i.hasLines(e)&amp;&amp;(o(t,e,r,p,d),s(t,e,d),d(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;a(t,e,r,p,d,{gradient:!0}),i.hasText(e)&amp;&amp;(d(&quot;texttemplate&quot;),l(t,e,p,d));var m=[];(i.hasMarkers(e)||i.hasText(e))&amp;&amp;(d(&quot;cliponaxis&quot;),d(&quot;marker.maxdisplayed&quot;),m.push(&quot;points&quot;)),d(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(c(t,e,r,d),i.hasLines(e)||s(t,e,d)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||m.push(&quot;fills&quot;),d(&quot;hoveron&quot;,m.join(&quot;+&quot;)||&quot;points&quot;),n.coerceSelectionMarkerOpacity(e,d)}else e.visible=!1}}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/line_shape_defaults&quot;:1202,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1261}],1264:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var a,o,s={},l=r[e.subplot]._subplot;l?(a=l.radialAxis,o=l.angularAxis):(a=(l=r[e.subplot]).radialaxis,o=l.angularaxis);var c=a.c2l(t.r);s.rLabel=i.tickText(a,c,!0).text;var u=&quot;degrees&quot;===o.thetaunit?n.rad2deg(t.theta):t.theta;return s.thetaLabel=i.tickText(o,u,!0).text,s}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828}],1265:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;);function i(t,e,r,n){var i=r.radialAxis,a=r.angularAxis;i._hovertitle=&quot;r&quot;,a._hovertitle=&quot;\u03b8&quot;;var o={};o[e.subplot]={_subplot:r};var s=e._module.formatLabels(t,e,o);n.rLabel=s.rLabel,n.thetaLabel=s.thetaLabel;var l=t.hi||e.hoverinfo,c=[];function u(t,e){c.push(t._hovertitle+&quot;: &quot;+e)}if(!e.hovertemplate){var f=l.split(&quot;+&quot;);-1!==f.indexOf(&quot;all&quot;)&amp;&amp;(f=[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]),-1!==f.indexOf(&quot;r&quot;)&amp;&amp;u(i,n.rLabel),-1!==f.indexOf(&quot;theta&quot;)&amp;&amp;u(a,n.thetaLabel),-1!==f.indexOf(&quot;text&quot;)&amp;&amp;n.text&amp;&amp;(c.push(n.text),delete n.text),n.extraText=c.join(&quot;&lt;br&gt;&quot;)}}e.exports={hoverPoints:function(t,e,r,a){var o=n(t,e,r,a);if(o&amp;&amp;!1!==o[0].index){var s=o[0];if(void 0===s.index)return o;var l=t.subplot,c=s.cd[s.index],u=s.trace;if(l.isPtInside(c))return s.xLabelVal=void 0,s.yLabelVal=void 0,i(c,u,l,s),s.hovertemplate=u.hovertemplate,o}},makeHoverPointText:i}},{&quot;../scatter/hover&quot;:1198}],1266:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;scatterpolar&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;polar&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;../scatter/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:894,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/select&quot;:1209,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1261,&quot;./calc&quot;:1262,&quot;./defaults&quot;:1263,&quot;./format_labels&quot;:1264,&quot;./hover&quot;:1265,&quot;./plot&quot;:1267}],1267:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;),i=t(&quot;../../constants/numerical&quot;).BADNUM;e.exports=function(t,e,r){for(var a=e.layers.frontplot.select(&quot;g.scatterlayer&quot;),o={xaxis:e.xaxis,yaxis:e.yaxis,plot:e.framework,layerClipId:e._hasClipOnAxisFalse?e.clipIds.forTraces:null},s=e.radialAxis,l=e.angularAxis,c=0;c&lt;r.length;c++)for(var u=r[c],f=0;f&lt;u.length;f++){var h=u[f],p=h.r;if(p===i)h.x=h.y=i;else{var d=s.c2g(p),g=l.c2g(h.theta);h.x=d*Math.cos(g),h.y=d*Math.sin(g)}}n(t,o,r,a)}},{&quot;../../constants/numerical&quot;:753,&quot;../scatter/plot&quot;:1208}],1268:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatterpolar/attributes&quot;),i=t(&quot;../scattergl/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs;e.exports={mode:n.mode,r:n.r,theta:n.theta,r0:n.r0,dr:n.dr,theta0:n.theta0,dtheta:n.dtheta,thetaunit:n.thetaunit,text:n.text,texttemplate:a({editType:&quot;plot&quot;},{keys:[&quot;r&quot;,&quot;theta&quot;,&quot;text&quot;]}),hovertext:n.hovertext,hovertemplate:n.hovertemplate,line:i.line,connectgaps:i.connectgaps,marker:i.marker,fill:i.fill,fillcolor:i.fillcolor,textposition:i.textposition,textfont:i.textfont,hoverinfo:n.hoverinfo,selected:n.selected,unselected:n.unselected}},{&quot;../../plots/template_attributes&quot;:906,&quot;../scattergl/attributes&quot;:1239,&quot;../scatterpolar/attributes&quot;:1261}],1269:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/colorscale_calc&quot;),i=t(&quot;../scatter/calc&quot;).calcMarkerSize,a=t(&quot;../scattergl/convert&quot;),o=t(&quot;../../plots/cartesian/axes&quot;),s=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e){var r=t._fullLayout,l=e.subplot,c=r[l].radialaxis,u=r[l].angularaxis,f=e._r=c.makeCalcdata(e,&quot;r&quot;),h=e._theta=u.makeCalcdata(e,&quot;theta&quot;),p=e._length,d={};p&lt;f.length&amp;&amp;(f=f.slice(0,p)),p&lt;h.length&amp;&amp;(h=h.slice(0,p)),d.r=f,d.theta=h,n(t,e);var g,m=d.opts=a.style(t,e);return p&lt;s?g=i(e,p):m.marker&amp;&amp;(g=2*(m.marker.sizeAvg||Math.max(m.marker.size,3))),e._extremes.x=o.findExtremes(c,f,{ppad:g}),[{x:!1,y:!1,t:d,trace:e}]}},{&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc&quot;:1188,&quot;../scatter/colorscale_calc&quot;:1190,&quot;../scattergl/constants&quot;:1241,&quot;../scattergl/convert&quot;:1242}],1270:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;../scatterpolar/defaults&quot;).handleRThetaDefaults,o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/text_defaults&quot;),c=t(&quot;../scatter/fillcolor_defaults&quot;),u=t(&quot;../scatter/constants&quot;).PTS_LINESONLY,f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d=a(t,e,h,p);d?(p(&quot;thetaunit&quot;),p(&quot;mode&quot;,d&lt;u?&quot;lines+markers&quot;:&quot;lines&quot;),p(&quot;text&quot;),p(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;p(&quot;hovertemplate&quot;),i.hasLines(e)&amp;&amp;(s(t,e,r,h,p),p(&quot;connectgaps&quot;)),i.hasMarkers(e)&amp;&amp;o(t,e,r,h,p),i.hasText(e)&amp;&amp;(p(&quot;texttemplate&quot;),l(t,e,h,p)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;c(t,e,r,p),n.coerceSelectionMarkerOpacity(e,p)):e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;../scatterpolar/defaults&quot;:1263,&quot;./attributes&quot;:1268}],1271:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatterpolar/format_labels&quot;);e.exports=function(t,e,r){var i=t.i;return&quot;r&quot;in t||(t.r=e._r[i]),&quot;theta&quot;in t||(t.theta=e._theta[i]),n(t,e,r)}},{&quot;../scatterpolar/format_labels&quot;:1264}],1272:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scattergl/hover&quot;),i=t(&quot;../scatterpolar/hover&quot;).makeHoverPointText;e.exports={hoverPoints:function(t,e,r,a){var o=t.cd[0].t,s=o.r,l=o.theta,c=n.hoverPoints(t,e,r,a);if(c&amp;&amp;!1!==c[0].index){var u=c[0];if(void 0===u.index)return c;var f=t.subplot,h=u.cd[u.index],p=u.trace;if(h.r=s[u.index],h.theta=l[u.index],f.isPtInside(h))return u.xLabelVal=void 0,u.yLabelVal=void 0,i(h,p,f,u),c}}}},{&quot;../scattergl/hover&quot;:1247,&quot;../scatterpolar/hover&quot;:1265}],1273:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;scatterpolargl&quot;,basePlotModule:t(&quot;../../plots/polar&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;polar&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;../scattergl/select&quot;),meta:{}}},{&quot;../../plots/polar&quot;:894,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scattergl/select&quot;:1251,&quot;./attributes&quot;:1268,&quot;./calc&quot;:1269,&quot;./defaults&quot;:1270,&quot;./format_labels&quot;:1271,&quot;./hover&quot;:1272,&quot;./plot&quot;:1274}],1274:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;@plotly/point-cluster&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../scattergl/plot&quot;),o=t(&quot;../scattergl/scene_update&quot;),s=t(&quot;../scattergl/convert&quot;),l=t(&quot;../../lib&quot;),c=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e,r){if(r.length){var u=e.radialAxis,f=e.angularAxis,h=o(t,e);return r.forEach((function(r){if(r&amp;&amp;r[0]&amp;&amp;r[0].trace){var a,o=r[0],p=o.trace,d=o.t,g=p._length,m=d.r,v=d.theta,y=d.opts,x=m.slice(),b=v.slice();for(a=0;a&lt;m.length;a++)e.isPtInside({r:m[a],theta:v[a]})||(x[a]=NaN,b[a]=NaN);var _=new Array(2*g),w=Array(g),T=Array(g);for(a=0;a&lt;g;a++){var k,M,A=x[a];if(i(A)){var S=u.c2g(A),E=f.c2g(b[a],p.thetaunit);k=S*Math.cos(E),M=S*Math.sin(E)}else k=M=NaN;w[a]=_[2*a]=k,T[a]=_[2*a+1]=M}d.tree=n(_),y.marker&amp;&amp;g&gt;=c&amp;&amp;(y.marker.cluster=d.tree),y.marker&amp;&amp;(y.markerSel.positions=y.markerUnsel.positions=y.marker.positions=_),y.line&amp;&amp;_.length&gt;1&amp;&amp;l.extendFlat(y.line,s.linePositions(t,p,_)),y.text&amp;&amp;(l.extendFlat(y.text,{positions:_},s.textPosition(t,p,y.text,y.marker)),l.extendFlat(y.textSel,{positions:_},s.textPosition(t,p,y.text,y.markerSel)),l.extendFlat(y.textUnsel,{positions:_},s.textPosition(t,p,y.text,y.markerUnsel))),y.fill&amp;&amp;!h.fill2d&amp;&amp;(h.fill2d=!0),y.marker&amp;&amp;!h.scatter2d&amp;&amp;(h.scatter2d=!0),y.line&amp;&amp;!h.line2d&amp;&amp;(h.line2d=!0),y.text&amp;&amp;!h.glText&amp;&amp;(h.glText=!0),h.lineOptions.push(y.line),h.fillOptions.push(y.fill),h.markerOptions.push(y.marker),h.markerSelectedOptions.push(y.markerSel),h.markerUnselectedOptions.push(y.markerUnsel),h.textOptions.push(y.text),h.textSelectedOptions.push(y.textSel),h.textUnselectedOptions.push(y.textUnsel),h.selectBatch.push([]),h.unselectBatch.push([]),d.x=w,d.y=T,d.rawx=w,d.rawy=T,d.r=m,d.theta=v,d.positions=_,d._scene=h,d.index=h.count,h.count++}})),a(t,e,r)}}},{&quot;../../lib&quot;:778,&quot;../scattergl/constants&quot;:1241,&quot;../scattergl/convert&quot;:1242,&quot;../scattergl/plot&quot;:1249,&quot;../scattergl/scene_update&quot;:1250,&quot;@plotly/point-cluster&quot;:57,&quot;fast-isnumeric&quot;:241}],1275:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../scatter/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../components/colorscale/attributes&quot;),l=t(&quot;../../components/drawing/attributes&quot;).dash,c=t(&quot;../../lib/extend&quot;).extendFlat,u=a.marker,f=a.line,h=u.line;e.exports={a:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},b:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},c:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},sum:{valType:&quot;number&quot;,dflt:0,min:0,editType:&quot;calc&quot;},mode:c({},a.mode,{dflt:&quot;markers&quot;}),text:c({},a.text,{}),texttemplate:i({editType:&quot;plot&quot;},{keys:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;text&quot;]}),hovertext:c({},a.hovertext,{}),line:{color:f.color,width:f.width,dash:l,shape:c({},f.shape,{values:[&quot;linear&quot;,&quot;spline&quot;]}),smoothing:f.smoothing,editType:&quot;calc&quot;},connectgaps:a.connectgaps,cliponaxis:a.cliponaxis,fill:c({},a.fill,{values:[&quot;none&quot;,&quot;toself&quot;,&quot;tonext&quot;],dflt:&quot;none&quot;}),fillcolor:a.fillcolor,marker:c({symbol:u.symbol,opacity:u.opacity,maxdisplayed:u.maxdisplayed,size:u.size,sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,line:c({width:h.width,editType:&quot;calc&quot;},s(&quot;marker.line&quot;)),gradient:u.gradient,editType:&quot;calc&quot;},s(&quot;marker&quot;)),textfont:a.textfont,textposition:a.textposition,selected:a.selected,unselected:a.unselected,hoverinfo:c({},o.hoverinfo,{flags:[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;,&quot;text&quot;,&quot;name&quot;]}),hoveron:a.hoveron,hovertemplate:n()}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../components/drawing/attributes&quot;:664,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187}],1276:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;fast-isnumeric&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scatter/arrays_to_calcdata&quot;),o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../scatter/calc&quot;).calcMarkerSize,l=[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;],c={a:[&quot;b&quot;,&quot;c&quot;],b:[&quot;a&quot;,&quot;c&quot;],c:[&quot;a&quot;,&quot;b&quot;]};e.exports=function(t,e){var r,u,f,h,p,d,g=t._fullLayout[e.subplot].sum,m=e.sum||g,v={a:e.a,b:e.b,c:e.c};for(r=0;r&lt;l.length;r++)if(!v[f=l[r]]){for(p=v[c[f][0]],d=v[c[f][1]],h=new Array(p.length),u=0;u&lt;p.length;u++)h[u]=m-p[u]-d[u];v[f]=h}var y,x,b,_,w,T,k=e._length,M=new Array(k);for(r=0;r&lt;k;r++)y=v.a[r],x=v.b[r],b=v.c[r],n(y)&amp;&amp;n(x)&amp;&amp;n(b)?(1!==(_=g/((y=+y)+(x=+x)+(b=+b)))&amp;&amp;(y*=_,x*=_,b*=_),T=y,w=b-x,M[r]={x:w,y:T,a:y,b:x,c:b}):M[r]={x:!1,y:!1};return s(e,k),i(t,e),a(M,e),o(M,e),M}},{&quot;../scatter/arrays_to_calcdata&quot;:1186,&quot;../scatter/calc&quot;:1188,&quot;../scatter/calc_selection&quot;:1189,&quot;../scatter/colorscale_calc&quot;:1190,&quot;fast-isnumeric&quot;:241}],1277:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/constants&quot;),a=t(&quot;../scatter/subtypes&quot;),o=t(&quot;../scatter/marker_defaults&quot;),s=t(&quot;../scatter/line_defaults&quot;),l=t(&quot;../scatter/line_shape_defaults&quot;),c=t(&quot;../scatter/text_defaults&quot;),u=t(&quot;../scatter/fillcolor_defaults&quot;),f=t(&quot;./attributes&quot;);e.exports=function(t,e,r,h){function p(r,i){return n.coerce(t,e,f,r,i)}var d,g=p(&quot;a&quot;),m=p(&quot;b&quot;),v=p(&quot;c&quot;);if(g?(d=g.length,m?(d=Math.min(d,m.length),v&amp;&amp;(d=Math.min(d,v.length))):d=v?Math.min(d,v.length):0):m&amp;&amp;v&amp;&amp;(d=Math.min(m.length,v.length)),d){e._length=d,p(&quot;sum&quot;),p(&quot;text&quot;),p(&quot;hovertext&quot;),&quot;fills&quot;!==e.hoveron&amp;&amp;p(&quot;hovertemplate&quot;),p(&quot;mode&quot;,d&lt;i.PTS_LINESONLY?&quot;lines+markers&quot;:&quot;lines&quot;),a.hasLines(e)&amp;&amp;(s(t,e,r,h,p),l(t,e,p),p(&quot;connectgaps&quot;)),a.hasMarkers(e)&amp;&amp;o(t,e,r,h,p,{gradient:!0}),a.hasText(e)&amp;&amp;(p(&quot;texttemplate&quot;),c(t,e,h,p));var y=[];(a.hasMarkers(e)||a.hasText(e))&amp;&amp;(p(&quot;cliponaxis&quot;),p(&quot;marker.maxdisplayed&quot;),y.push(&quot;points&quot;)),p(&quot;fill&quot;),&quot;none&quot;!==e.fill&amp;&amp;(u(t,e,r,p),a.hasLines(e)||l(t,e,p)),&quot;tonext&quot;!==e.fill&amp;&amp;&quot;toself&quot;!==e.fill||y.push(&quot;fills&quot;),p(&quot;hoveron&quot;,y.join(&quot;+&quot;)||&quot;points&quot;),n.coerceSelectionMarkerOpacity(e,p)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../scatter/constants&quot;:1191,&quot;../scatter/fillcolor_defaults&quot;:1195,&quot;../scatter/line_defaults&quot;:1200,&quot;../scatter/line_shape_defaults&quot;:1202,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scatter/text_defaults&quot;:1213,&quot;./attributes&quot;:1275}],1278:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e,r,n,i){if(e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),n[i]){var a=n[i];t.a=a.a,t.b=a.b,t.c=a.c}else t.a=e.a,t.b=e.b,t.c=e.c;return t}},{}],1279:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;);e.exports=function(t,e,r){var i={},a=r[e.subplot]._subplot;return i.aLabel=n.tickText(a.aaxis,t.a,!0).text,i.bLabel=n.tickText(a.baxis,t.b,!0).text,i.cLabel=n.tickText(a.caxis,t.c,!0).text,i}},{&quot;../../plots/cartesian/axes&quot;:828}],1280:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/hover&quot;);e.exports=function(t,e,r,i){var a=n(t,e,r,i);if(a&amp;&amp;!1!==a[0].index){var o=a[0];if(void 0===o.index){var s=1-o.y0/t.ya._length,l=t.xa._length,c=l*s/2,u=l-c;return o.x0=Math.max(Math.min(o.x0,u),c),o.x1=Math.max(Math.min(o.x1,u),c),a}var f=o.cd[o.index],h=o.trace,p=o.subplot;o.a=f.a,o.b=f.b,o.c=f.c,o.xLabelVal=void 0,o.yLabelVal=void 0;var d={};d[h.subplot]={_subplot:p};var g=h._module.formatLabels(f,h,d);o.aLabel=g.aLabel,o.bLabel=g.bLabel,o.cLabel=g.cLabel;var m=f.hi||h.hoverinfo,v=[];if(!h.hovertemplate){var y=m.split(&quot;+&quot;);-1!==y.indexOf(&quot;all&quot;)&amp;&amp;(y=[&quot;a&quot;,&quot;b&quot;,&quot;c&quot;]),-1!==y.indexOf(&quot;a&quot;)&amp;&amp;x(p.aaxis,o.aLabel),-1!==y.indexOf(&quot;b&quot;)&amp;&amp;x(p.baxis,o.bLabel),-1!==y.indexOf(&quot;c&quot;)&amp;&amp;x(p.caxis,o.cLabel)}return o.extraText=v.join(&quot;&lt;br&gt;&quot;),o.hovertemplate=h.hovertemplate,a}function x(t,e){v.push(t._hovertitle+&quot;: &quot;+e)}}},{&quot;../scatter/hover&quot;:1198}],1281:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),formatLabels:t(&quot;./format_labels&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;../scatter/style&quot;).style,styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../scatter/select&quot;),eventData:t(&quot;./event_data&quot;),moduleType:&quot;trace&quot;,name:&quot;scatterternary&quot;,basePlotModule:t(&quot;../../plots/ternary&quot;),categories:[&quot;ternary&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],meta:{}}},{&quot;../../plots/ternary&quot;:907,&quot;../scatter/marker_colorbar&quot;:1205,&quot;../scatter/select&quot;:1209,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1275,&quot;./calc&quot;:1276,&quot;./defaults&quot;:1277,&quot;./event_data&quot;:1278,&quot;./format_labels&quot;:1279,&quot;./hover&quot;:1280,&quot;./plot&quot;:1282}],1282:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/plot&quot;);e.exports=function(t,e,r){var i=e.plotContainer;i.select(&quot;.scatterlayer&quot;).selectAll(&quot;*&quot;).remove();var a={xaxis:e.xaxis,yaxis:e.yaxis,plot:i,layerClipId:e._hasClipOnAxisFalse?e.clipIdRelative:null},o=e.layers.frontplot.select(&quot;g.scatterlayer&quot;);n(t,a,r,o)}},{&quot;../scatter/plot&quot;:1208}],1283:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../scatter/attributes&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../scattergl/attributes&quot;),s=t(&quot;../../plots/cartesian/constants&quot;).idRegex,l=t(&quot;../../plot_api/plot_template&quot;).templatedArray,c=t(&quot;../../lib/extend&quot;).extendFlat,u=n.marker,f=u.line,h=c(i(&quot;marker.line&quot;,{editTypeOverride:&quot;calc&quot;}),{width:c({},f.width,{editType:&quot;calc&quot;}),editType:&quot;calc&quot;}),p=c(i(&quot;marker&quot;),{symbol:u.symbol,size:c({},u.size,{editType:&quot;markerSize&quot;}),sizeref:u.sizeref,sizemin:u.sizemin,sizemode:u.sizemode,opacity:u.opacity,colorbar:u.colorbar,line:h,editType:&quot;calc&quot;});function d(t){return{valType:&quot;info_array&quot;,freeLength:!0,editType:&quot;calc&quot;,items:{valType:&quot;subplotid&quot;,regex:s[t],editType:&quot;plot&quot;}}}p.color.editType=p.cmin.editType=p.cmax.editType=&quot;style&quot;,e.exports={dimensions:l(&quot;dimension&quot;,{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},label:{valType:&quot;string&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},axis:{type:{valType:&quot;enumerated&quot;,values:[&quot;linear&quot;,&quot;log&quot;,&quot;date&quot;,&quot;category&quot;],editType:&quot;calc+clearAxisTypes&quot;},matches:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},editType:&quot;calc+clearAxisTypes&quot;},editType:&quot;calc+clearAxisTypes&quot;}),text:c({},o.text,{}),hovertext:c({},o.hovertext,{}),hovertemplate:a(),marker:p,xaxes:d(&quot;x&quot;),yaxes:d(&quot;y&quot;),diagonal:{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},showupperhalf:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},showlowerhalf:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},selected:{marker:o.selected.marker,editType:&quot;calc&quot;},unselected:{marker:o.unselected.marker,editType:&quot;calc&quot;},opacity:o.opacity}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/plot_template&quot;:817,&quot;../../plots/cartesian/constants&quot;:834,&quot;../../plots/template_attributes&quot;:906,&quot;../scatter/attributes&quot;:1187,&quot;../scattergl/attributes&quot;:1239}],1284:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-line2d&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../lib/prepare_regl&quot;),o=t(&quot;../../plots/get_data&quot;).getModuleCalcData,s=t(&quot;../../plots/cartesian&quot;),l=t(&quot;../../plots/cartesian/axis_ids&quot;).getFromId,c=t(&quot;../../plots/cartesian/axes&quot;).shouldShowZeroLine;function u(t,e,r){for(var n=r.matrixOptions.data.length,i=e._visibleDims,a=r.viewOpts.ranges=new Array(n),o=0;o&lt;i.length;o++){var s=i[o],c=a[o]=new Array(4),u=l(t,e._diag[s][0]);u&amp;&amp;(c[0]=u.r2l(u.range[0]),c[2]=u.r2l(u.range[1]));var f=l(t,e._diag[s][1]);f&amp;&amp;(c[1]=f.r2l(f.range[0]),c[3]=f.r2l(f.range[1]))}r.selectBatch.length||r.unselectBatch.length?r.matrix.update({ranges:a},{ranges:a}):r.matrix.update({ranges:a})}function f(t){var e=t._fullLayout,r=e._glcanvas.data()[0].regl,i=e._splomGrid;i||(i=e._splomGrid=n(r)),i.update(function(t){var e,r=t._fullLayout,n=r._size,i=[0,0,r.width,r.height],a={};function o(t,e,r,n,o,s){var l=e[t+&quot;color&quot;],c=e[t+&quot;width&quot;],u=String(l+c);u in a?a[u].data.push(NaN,NaN,r,n,o,s):a[u]={data:[r,n,o,s],join:&quot;rect&quot;,thickness:c,color:l,viewport:i,range:i,overlay:!1}}for(e in r._splomSubplots){var s,l,u=r._plots[e],f=u.xaxis,h=u.yaxis,p=f._gridVals,d=h._gridVals,g=n.b+h.domain[0]*n.h,m=-h._m,v=-m*h.r2l(h.range[0],h.calendar);if(f.showgrid)for(e=0;e&lt;p.length;e++)s=f._offset+f.l2p(p[e].x),o(&quot;grid&quot;,f,s,g,s,g+h._length);if(h.showgrid)for(e=0;e&lt;d.length;e++)l=g+v+m*d[e].x,o(&quot;grid&quot;,h,f._offset,l,f._offset+f._length,l);c(t,f,h)&amp;&amp;(s=f._offset+f.l2p(0),o(&quot;zeroline&quot;,f,s,g,s,g+h._length)),c(t,h,f)&amp;&amp;(l=g+v+0,o(&quot;zeroline&quot;,h,f._offset,l,f._offset+f._length,l))}var y=[];for(e in a)y.push(a[e]);return y}(t))}e.exports={name:&quot;splom&quot;,attr:s.attr,attrRegex:s.attrRegex,layoutAttributes:s.layoutAttributes,supplyLayoutDefaults:s.supplyLayoutDefaults,drawFramework:s.drawFramework,plot:function(t){var e=t._fullLayout,r=i.getModule(&quot;splom&quot;),n=o(t.calcdata,r)[0];a(t,[&quot;ANGLE_instanced_arrays&quot;,&quot;OES_element_index_uint&quot;])&amp;&amp;(e._hasOnlyLargeSploms&amp;&amp;f(t),r.plot(t,{},n))},drag:function(t){var e=t.calcdata,r=t._fullLayout;r._hasOnlyLargeSploms&amp;&amp;f(t);for(var n=0;n&lt;e.length;n++){var i=e[n][0].trace,a=r._splomScenes[i.uid];&quot;splom&quot;===i.type&amp;&amp;a&amp;&amp;a.matrix&amp;&amp;u(t,i,a)}},updateGrid:f,clean:function(t,e,r,n){var i,a={};if(n._splomScenes){for(i=0;i&lt;t.length;i++){var o=t[i];&quot;splom&quot;===o.type&amp;&amp;(a[o.uid]=1)}for(i=0;i&lt;r.length;i++){var l=r[i];if(!a[l.uid]){var c=n._splomScenes[l.uid];c&amp;&amp;c.destroy&amp;&amp;c.destroy(),n._splomScenes[l.uid]=null,delete n._splomScenes[l.uid]}}}0===Object.keys(n._splomScenes||{}).length&amp;&amp;delete n._splomScenes,n._splomGrid&amp;&amp;!e._hasOnlyLargeSploms&amp;&amp;n._hasOnlyLargeSploms&amp;&amp;(n._splomGrid.destroy(),n._splomGrid=null,delete n._splomGrid),s.clean(t,e,r,n)},updateFx:s.updateFx,toSVG:s.toSVG}},{&quot;../../lib/prepare_regl&quot;:791,&quot;../../plots/cartesian&quot;:841,&quot;../../plots/cartesian/axes&quot;:828,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../../plots/get_data&quot;:865,&quot;../../registry&quot;:911,&quot;regl-line2d&quot;:535}],1285:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axis_ids&quot;),a=t(&quot;../scatter/calc&quot;).calcMarkerSize,o=t(&quot;../scatter/calc&quot;).calcAxisExpansion,s=t(&quot;../scatter/colorscale_calc&quot;),l=t(&quot;../scattergl/convert&quot;).markerSelection,c=t(&quot;../scattergl/convert&quot;).markerStyle,u=t(&quot;./scene_update&quot;),f=t(&quot;../../constants/numerical&quot;).BADNUM,h=t(&quot;../scattergl/constants&quot;).TOO_MANY_POINTS;e.exports=function(t,e){var r,p,d,g,m,v,y=e.dimensions,x=e._length,b={},_=b.cdata=[],w=b.data=[],T=e._visibleDims=[];function k(t,r){for(var i=t.makeCalcdata({v:r.values,vcalendar:e.calendar},&quot;v&quot;),a=0;a&lt;i.length;a++)i[a]=i[a]===f?NaN:i[a];_.push(i),w.push(&quot;log&quot;===t.type?n.simpleMap(i,t.c2l):i)}for(r=0;r&lt;y.length;r++)if((d=y[r]).visible){if(g=i.getFromId(t,e._diag[r][0]),m=i.getFromId(t,e._diag[r][1]),g&amp;&amp;m&amp;&amp;g.type!==m.type){n.log(&quot;Skipping splom dimension &quot;+r+&quot; with conflicting axis types&quot;);continue}g?(k(g,d),m&amp;&amp;&quot;category&quot;===m.type&amp;&amp;(m._categories=g._categories.slice())):k(m,d),T.push(r)}for(s(t,e),n.extendFlat(b,c(e)),v=_.length*x&gt;h?2*(b.sizeAvg||Math.max(b.size,3)):a(e,x),p=0;p&lt;T.length;p++)d=y[r=T[p]],g=i.getFromId(t,e._diag[r][0])||{},m=i.getFromId(t,e._diag[r][1])||{},o(t,e,g,m,_[p],_[p],v);var M=u(t,e);return M.matrix||(M.matrix=!0),M.matrixOptions=b,M.selectedOptions=l(e,e.selected),M.unselectedOptions=l(e,e.unselected),[{x:!1,y:!1,t:{},trace:e}]}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;../scatter/calc&quot;:1188,&quot;../scatter/colorscale_calc&quot;:1190,&quot;../scattergl/constants&quot;:1241,&quot;../scattergl/convert&quot;:1242,&quot;./scene_update&quot;:1292}],1286:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/array_container_defaults&quot;),a=t(&quot;./attributes&quot;),o=t(&quot;../scatter/subtypes&quot;),s=t(&quot;../scatter/marker_defaults&quot;),l=t(&quot;../parcoords/merge_length&quot;),c=t(&quot;../scattergl/helpers&quot;).isOpenSymbol;function u(t,e){function r(r,i){return n.coerce(t,e,a.dimensions,r,i)}r(&quot;label&quot;);var i=r(&quot;values&quot;);i&amp;&amp;i.length?r(&quot;visible&quot;):e.visible=!1,r(&quot;axis.type&quot;),r(&quot;axis.matches&quot;)}e.exports=function(t,e,r,f){function h(r,i){return n.coerce(t,e,a,r,i)}var p=i(t,e,{name:&quot;dimensions&quot;,handleItemDefaults:u}),d=h(&quot;diagonal.visible&quot;),g=h(&quot;showupperhalf&quot;),m=h(&quot;showlowerhalf&quot;);if(l(e,p,&quot;values&quot;)&amp;&amp;(d||g||m)){h(&quot;text&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;),s(t,e,r,f,h);var v=c(e.marker.symbol),y=o.isBubble(e);h(&quot;marker.line.width&quot;,v||y?1:0),function(t,e,r,n){var i,a,o=e.dimensions,s=o.length,l=e.showupperhalf,c=e.showlowerhalf,u=e.diagonal.visible,f=new Array(s),h=new Array(s);for(i=0;i&lt;s;i++){var p=i?i+1:&quot;&quot;;f[i]=&quot;x&quot;+p,h[i]=&quot;y&quot;+p}var d=n(&quot;xaxes&quot;,f),g=n(&quot;yaxes&quot;,h),m=e._diag=new Array(s);e._xaxes={},e._yaxes={};var v=[],y=[];function x(t,n,i,a){if(t){var o=t.charAt(0),s=r._splomAxes[o];if(e[&quot;_&quot;+o+&quot;axes&quot;][t]=1,a.push(t),!(t in s)){var l=s[t]={};i&amp;&amp;(l.label=i.label||&quot;&quot;,i.visible&amp;&amp;i.axis&amp;&amp;(i.axis.type&amp;&amp;(l.type=i.axis.type),i.axis.matches&amp;&amp;(l.matches=n)))}}}var b=!u&amp;&amp;!c,_=!u&amp;&amp;!l;for(e._axesDim={},i=0;i&lt;s;i++){var w=o[i],T=0===i,k=i===s-1,M=T&amp;&amp;b||k&amp;&amp;_?void 0:d[i],A=T&amp;&amp;_||k&amp;&amp;b?void 0:g[i];x(M,A,w,v),x(A,M,w,y),m[i]=[M,A],e._axesDim[M]=i,e._axesDim[A]=i}for(i=0;i&lt;v.length;i++)for(a=0;a&lt;y.length;a++){var S=v[i]+y[a];i&gt;a&amp;&amp;l||i&lt;a&amp;&amp;c?r._splomSubplots[S]=1:i!==a||!u&amp;&amp;c&amp;&amp;l||(r._splomSubplots[S]=1)}(!c||!u&amp;&amp;l&amp;&amp;c)&amp;&amp;(r._splomGridDflt.xside=&quot;bottom&quot;,r._splomGridDflt.yside=&quot;left&quot;)}(0,e,f,h),n.coerceSelectionMarkerOpacity(e,h)}else e.visible=!1}},{&quot;../../lib&quot;:778,&quot;../../plots/array_container_defaults&quot;:823,&quot;../parcoords/merge_length&quot;:1158,&quot;../scatter/marker_defaults&quot;:1206,&quot;../scatter/subtypes&quot;:1212,&quot;../scattergl/helpers&quot;:1246,&quot;./attributes&quot;:1283}],1287:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/colorscale_calc&quot;),a=t(&quot;../scattergl/convert&quot;).markerStyle;e.exports=function(t,e){var r=e.trace,o=t._fullLayout._splomScenes[r.uid];if(o){i(t,r),n.extendFlat(o.matrixOptions,a(r));var s=n.extendFlat({},o.matrixOptions,o.viewOpts);o.matrix.update(s,null)}}},{&quot;../../lib&quot;:778,&quot;../scatter/colorscale_calc&quot;:1190,&quot;../scattergl/convert&quot;:1242}],1288:[function(t,e,r){&quot;use strict&quot;;r.getDimIndex=function(t,e){for(var r=e._id,n={x:0,y:1}[r.charAt(0)],i=t._visibleDims,a=0;a&lt;i.length;a++){var o=i[a];if(t._diag[o][n]===r)return a}return!1}},{}],1289:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./helpers&quot;),i=t(&quot;../scattergl/hover&quot;).calcHover;e.exports={hoverPoints:function(t,e,r){var a=t.cd[0].trace,o=t.scene.matrixOptions.cdata,s=t.xa,l=t.ya,c=s.c2p(e),u=l.c2p(r),f=t.distance,h=n.getDimIndex(a,s),p=n.getDimIndex(a,l);if(!1===h||!1===p)return[t];for(var d,g,m=o[h],v=o[p],y=f,x=0;x&lt;m.length;x++){var b=m[x],_=v[x],w=s.c2p(b)-c,T=l.c2p(_)-u,k=Math.sqrt(w*w+T*T);k&lt;y&amp;&amp;(y=g=k,d=x)}return t.index=d,t.distance=y,t.dxy=g,void 0===d?[t]:[i(t,m,v,a)]}}},{&quot;../scattergl/hover&quot;:1247,&quot;./helpers&quot;:1288}],1290:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../components/grid&quot;);e.exports={moduleType:&quot;trace&quot;,name:&quot;splom&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;gl&quot;,&quot;regl&quot;,&quot;cartesian&quot;,&quot;symbols&quot;,&quot;showLegend&quot;,&quot;scatter-like&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:t(&quot;../scatter/marker_colorbar&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),hoverPoints:t(&quot;./hover&quot;).hoverPoints,selectPoints:t(&quot;./select&quot;),editStyle:t(&quot;./edit_style&quot;),meta:{}},n.register(i)},{&quot;../../components/grid&quot;:687,&quot;../../registry&quot;:911,&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1283,&quot;./base_plot&quot;:1284,&quot;./calc&quot;:1285,&quot;./defaults&quot;:1286,&quot;./edit_style&quot;:1287,&quot;./hover&quot;:1289,&quot;./plot&quot;:1291,&quot;./select&quot;:1293}],1291:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;regl-splom&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../plots/cartesian/axis_ids&quot;),o=t(&quot;../../components/dragelement/helpers&quot;).selectMode;function s(t,e){var r,s,l,c,u,f=t._fullLayout,h=f._size,p=e.trace,d=e.t,g=f._splomScenes[p.uid],m=g.matrixOptions,v=m.cdata,y=f._glcanvas.data()[0].regl,x=f.dragmode;if(0!==v.length){m.lower=p.showupperhalf,m.upper=p.showlowerhalf,m.diagonal=p.diagonal.visible;var b=p._visibleDims,_=v.length,w=g.viewOpts={};for(w.ranges=new Array(_),w.domains=new Array(_),u=0;u&lt;b.length;u++){l=b[u];var T=w.ranges[u]=new Array(4),k=w.domains[u]=new Array(4);(r=a.getFromId(t,p._diag[l][0]))&amp;&amp;(T[0]=r._rl[0],T[2]=r._rl[1],k[0]=r.domain[0],k[2]=r.domain[1]),(s=a.getFromId(t,p._diag[l][1]))&amp;&amp;(T[1]=s._rl[0],T[3]=s._rl[1],k[1]=s.domain[0],k[3]=s.domain[1])}w.viewport=[h.l,h.b,h.w+h.l,h.h+h.b],!0===g.matrix&amp;&amp;(g.matrix=n(y));var M=f.clickmode.indexOf(&quot;select&quot;)&gt;-1,A=!0;if(o(x)||!!p.selectedpoints||M){var S=p._length;if(p.selectedpoints){g.selectBatch=p.selectedpoints;var E=p.selectedpoints,C={};for(l=0;l&lt;E.length;l++)C[E[l]]=!0;var L=[];for(l=0;l&lt;S;l++)C[l]||L.push(l);g.unselectBatch=L}var I=d.xpx=new Array(_),P=d.ypx=new Array(_);for(u=0;u&lt;b.length;u++){if(l=b[u],r=a.getFromId(t,p._diag[l][0]))for(I[u]=new Array(S),c=0;c&lt;S;c++)I[u][c]=r.c2p(v[u][c]);if(s=a.getFromId(t,p._diag[l][1]))for(P[u]=new Array(S),c=0;c&lt;S;c++)P[u][c]=s.c2p(v[u][c])}if(g.selectBatch.length||g.unselectBatch.length){var z=i.extendFlat({},m,g.unselectedOptions,w),O=i.extendFlat({},m,g.selectedOptions,w);g.matrix.update(z,O),A=!1}}else d.xpx=d.ypx=null;if(A){var D=i.extendFlat({},m,w);g.matrix.update(D,null)}}}e.exports=function(t,e,r){if(r.length)for(var n=0;n&lt;r.length;n++)s(t,r[n][0])}},{&quot;../../components/dragelement/helpers&quot;:661,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axis_ids&quot;:831,&quot;regl-splom&quot;:539}],1292:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;);e.exports=function(t,e){var r=t._fullLayout,i=e.uid,a=r._splomScenes;a||(a=r._splomScenes={});var o={dirty:!0,selectBatch:[],unselectBatch:[]},s=a[e.uid];return s||((s=a[i]=n.extendFlat({},o,{matrix:!1,selectBatch:[],unselectBatch:[]})).draw=function(){s.matrix&amp;&amp;s.matrix.draw&amp;&amp;(s.selectBatch.length||s.unselectBatch.length?s.matrix.draw(s.unselectBatch,s.selectBatch):s.matrix.draw()),s.dirty=!1},s.destroy=function(){s.matrix&amp;&amp;s.matrix.destroy&amp;&amp;s.matrix.destroy(),s.matrixOptions=null,s.selectBatch=null,s.unselectBatch=null,s=null}),s.dirty||n.extendFlat(s,o),s}},{&quot;../../lib&quot;:778}],1293:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../scatter/subtypes&quot;),a=t(&quot;./helpers&quot;);e.exports=function(t,e){var r=t.cd,o=r[0].trace,s=r[0].t,l=t.scene,c=l.matrixOptions.cdata,u=t.xaxis,f=t.yaxis,h=[];if(!l)return h;var p=!i.hasMarkers(o)&amp;&amp;!i.hasText(o);if(!0!==o.visible||p)return h;var d=a.getDimIndex(o,u),g=a.getDimIndex(o,f);if(!1===d||!1===g)return h;var m=s.xpx[d],v=s.ypx[g],y=c[d],x=c[g],b=[],_=[];if(!1!==e&amp;&amp;!e.degenerate)for(var w=0;w&lt;y.length;w++)e.contains([m[w],v[w]],null,w,t)?(b.push(w),h.push({pointNumber:w,x:y[w],y:x[w]})):_.push(w);var T=l.matrixOptions;return b.length||_.length?l.selectBatch.length||l.unselectBatch.length||l.matrix.update(l.unselectedOptions,n.extendFlat({},T,l.selectedOptions,l.viewOpts)):l.matrix.update(T,null),l.selectBatch=b,l.unselectBatch=_,h}},{&quot;../../lib&quot;:778,&quot;../scatter/subtypes&quot;:1212,&quot;./helpers&quot;:1288}],1294:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../mesh3d/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l={x:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc+clearAxisTypes&quot;},u:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},v:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},w:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},starts:{x:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},y:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},z:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},maxdisplayed:{valType:&quot;integer&quot;,min:0,dflt:1e3,editType:&quot;calc&quot;},sizeref:{valType:&quot;number&quot;,editType:&quot;calc&quot;,min:0,dflt:1},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},hovertemplate:i({editType:&quot;calc&quot;},{keys:[&quot;tubex&quot;,&quot;tubey&quot;,&quot;tubez&quot;,&quot;tubeu&quot;,&quot;tubev&quot;,&quot;tubew&quot;,&quot;norm&quot;,&quot;divergence&quot;]}),showlegend:s({},o.showlegend,{dflt:!1})};s(l,n(&quot;&quot;,{colorAttr:&quot;u/v/w norm&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}));[&quot;opacity&quot;,&quot;lightposition&quot;,&quot;lighting&quot;].forEach((function(t){l[t]=a[t]})),l.hoverinfo=s({},o.hoverinfo,{editType:&quot;calc&quot;,flags:[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;,&quot;u&quot;,&quot;v&quot;,&quot;w&quot;,&quot;norm&quot;,&quot;divergence&quot;,&quot;text&quot;,&quot;name&quot;],dflt:&quot;x+y+z+norm+text+name&quot;}),l.transforms=void 0,e.exports=l},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../mesh3d/attributes&quot;:1128}],1295:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/calc&quot;);function a(t){var e,r,i,a,s,l,c,u,f,h,p,d,g=t._x,m=t._y,v=t._z,y=t._len,x=-1/0,b=1/0,_=-1/0,w=1/0,T=-1/0,k=1/0,M=&quot;&quot;;for(y&amp;&amp;(c=g[0],f=m[0],p=v[0]),y&gt;1&amp;&amp;(u=g[y-1],h=m[y-1],d=v[y-1]),e=0;e&lt;y;e++)x=Math.max(x,g[e]),b=Math.min(b,g[e]),_=Math.max(_,m[e]),w=Math.min(w,m[e]),T=Math.max(T,v[e]),k=Math.min(k,v[e]),a||g[e]===c||(a=!0,M+=&quot;x&quot;),s||m[e]===f||(s=!0,M+=&quot;y&quot;),l||v[e]===p||(l=!0,M+=&quot;z&quot;);a||(M+=&quot;x&quot;),s||(M+=&quot;y&quot;),l||(M+=&quot;z&quot;);var A=o(t._x),S=o(t._y),E=o(t._z);M=(M=(M=M.replace(&quot;x&quot;,(c&gt;u?&quot;-&quot;:&quot;+&quot;)+&quot;x&quot;)).replace(&quot;y&quot;,(f&gt;h?&quot;-&quot;:&quot;+&quot;)+&quot;y&quot;)).replace(&quot;z&quot;,(p&gt;d?&quot;-&quot;:&quot;+&quot;)+&quot;z&quot;);var C=function(){y=0,A=[],S=[],E=[]};(!y||y&lt;A.length*S.length*E.length)&amp;&amp;C();var L=function(t){return&quot;x&quot;===t?g:&quot;y&quot;===t?m:v},I=function(t){return&quot;x&quot;===t?A:&quot;y&quot;===t?S:E},P=function(t){return t[y-1]&lt;t[0]?-1:1},z=L(M[1]),O=L(M[3]),D=L(M[5]),R=I(M[1]).length,F=I(M[3]).length,B=I(M[5]).length,N=!1,j=function(t,e,r){return R*(F*t+e)+r},U=P(L(M[1])),V=P(L(M[3])),q=P(L(M[5]));for(e=0;e&lt;B-1;e++){for(r=0;r&lt;F-1;r++){for(i=0;i&lt;R-1;i++){var H=j(e,r,i),G=j(e,r,i+1),Y=j(e,r+1,i),W=j(e+1,r,i);if(z[H]*U&lt;z[G]*U&amp;&amp;O[H]*V&lt;O[Y]*V&amp;&amp;D[H]*q&lt;D[W]*q||(N=!0),N)break}if(N)break}if(N)break}return N&amp;&amp;(n.warn(&quot;Encountered arbitrary coordinates! Unable to input data grid.&quot;),C()),{xMin:b,yMin:w,zMin:k,xMax:x,yMax:_,zMax:T,Xs:A,Ys:S,Zs:E,len:y,fill:M}}function o(t){return n.distinctVals(t).vals}function s(t,e){if(void 0===e&amp;&amp;(e=t.length),n.isTypedArray(t))return t.subarray(0,e);for(var r=[],i=0;i&lt;e;i++)r[i]=+t[i];return r}e.exports={calc:function(t,e){e._len=Math.min(e.u.length,e.v.length,e.w.length,e.x.length,e.y.length,e.z.length),e._u=s(e.u,e._len),e._v=s(e.v,e._len),e._w=s(e.w,e._len),e._x=s(e.x,e._len),e._y=s(e.y,e._len),e._z=s(e.z,e._len);var r=a(e);e._gridFill=r.fill,e._Xs=r.Xs,e._Ys=r.Ys,e._Zs=r.Zs,e._len=r.len;var n,o,l,c=0;e.starts&amp;&amp;(n=s(e.starts.x||[]),o=s(e.starts.y||[]),l=s(e.starts.z||[]),c=Math.min(n.length,o.length,l.length)),e._startsX=n||[],e._startsY=o||[],e._startsZ=l||[];var u,f=0,h=1/0;for(u=0;u&lt;e._len;u++){var p=e._u[u],d=e._v[u],g=e._w[u],m=Math.sqrt(p*p+d*d+g*g);f=Math.max(f,m),h=Math.min(h,m)}for(i(t,e,{vals:[h,f],containerStr:&quot;&quot;,cLetter:&quot;c&quot;}),u=0;u&lt;c;u++){var v=n[u];r.xMax=Math.max(r.xMax,v),r.xMin=Math.min(r.xMin,v);var y=o[u];r.yMax=Math.max(r.yMax,y),r.yMin=Math.min(r.yMin,y);var x=l[u];r.zMax=Math.max(r.zMax,x),r.zMin=Math.min(r.zMin,x)}e._slen=c,e._normMax=f,e._xbnds=[r.xMin,r.xMax],e._ybnds=[r.yMin,r.yMax],e._zbnds=[r.zMin,r.zMax]},filter:s,processGrid:a}},{&quot;../../components/colorscale/calc&quot;:651,&quot;../../lib&quot;:778}],1296:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-streamtube3d&quot;),i=n.createTubeMesh,a=t(&quot;../../lib&quot;),o=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,s=t(&quot;../../components/colorscale&quot;).extractOpts,l=t(&quot;../../plots/gl3d/zip3&quot;),c={xaxis:0,yaxis:1,zaxis:2};function u(t,e){this.scene=t,this.uid=e,this.mesh=null,this.data=null}var f=u.prototype;function h(t){var e=t.length;return e&gt;2?t.slice(1,e-1):2===e?[(t[0]+t[1])/2]:t}function p(t){var e=t.length;return 1===e?[.5,.5]:[t[1]-t[0],t[e-1]-t[e-2]]}function d(t,e){var r=t.fullSceneLayout,i=t.dataScale,u=e._len,f={};function d(t,e){var n=r[e],o=i[c[e]];return a.simpleMap(t,(function(t){return n.d2l(t)*o}))}if(f.vectors=l(d(e._u,&quot;xaxis&quot;),d(e._v,&quot;yaxis&quot;),d(e._w,&quot;zaxis&quot;),u),!u)return{positions:[],cells:[]};var g=d(e._Xs,&quot;xaxis&quot;),m=d(e._Ys,&quot;yaxis&quot;),v=d(e._Zs,&quot;zaxis&quot;);if(f.meshgrid=[g,m,v],f.gridFill=e._gridFill,e._slen)f.startingPositions=l(d(e._startsX,&quot;xaxis&quot;),d(e._startsY,&quot;yaxis&quot;),d(e._startsZ,&quot;zaxis&quot;));else{for(var y=m[0],x=h(g),b=h(v),_=new Array(x.length*b.length),w=0,T=0;T&lt;x.length;T++)for(var k=0;k&lt;b.length;k++)_[w++]=[x[T],y,b[k]];f.startingPositions=_}f.colormap=o(e),f.tubeSize=e.sizeref,f.maxLength=e.maxdisplayed;var M=d(e._xbnds,&quot;xaxis&quot;),A=d(e._ybnds,&quot;yaxis&quot;),S=d(e._zbnds,&quot;zaxis&quot;),E=p(g),C=p(m),L=p(v),I=[[M[0]-E[0],A[0]-C[0],S[0]-L[0]],[M[1]+E[1],A[1]+C[1],S[1]+L[1]]],P=n(f,I),z=s(e);P.vertexIntensityBounds=[z.min/e._normMax,z.max/e._normMax];var O=e.lightposition;return P.lightPosition=[O.x,O.y,O.z],P.ambient=e.lighting.ambient,P.diffuse=e.lighting.diffuse,P.specular=e.lighting.specular,P.roughness=e.lighting.roughness,P.fresnel=e.lighting.fresnel,P.opacity=e.opacity,e._pad=P.tubeScale*e.sizeref*2,P}f.handlePick=function(t){var e=this.scene.fullSceneLayout,r=this.scene.dataScale;function n(t,n){var i=e[n],a=r[c[n]];return i.l2c(t)/a}if(t.object===this.mesh){var i=t.data.position,a=t.data.velocity;return t.traceCoordinate=[n(i[0],&quot;xaxis&quot;),n(i[1],&quot;yaxis&quot;),n(i[2],&quot;zaxis&quot;),n(a[0],&quot;xaxis&quot;),n(a[1],&quot;yaxis&quot;),n(a[2],&quot;zaxis&quot;),t.data.intensity*this.data._normMax,t.data.divergence],t.textLabel=this.data.hovertext||this.data.text,!0}},f.update=function(t){this.data=t;var e=d(this.scene,t);this.mesh.update(e)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,n=d(t,e),a=i(r,n),o=new u(t,e.uid);return o.mesh=a,o.data=e,a._trace=o,t.glplot.add(a),o}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../plots/gl3d/zip3&quot;:881,&quot;gl-streamtube3d&quot;:348}],1297:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/colorscale/defaults&quot;),a=t(&quot;./attributes&quot;);e.exports=function(t,e,r,o){function s(r,i){return n.coerce(t,e,a,r,i)}var l=s(&quot;u&quot;),c=s(&quot;v&quot;),u=s(&quot;w&quot;),f=s(&quot;x&quot;),h=s(&quot;y&quot;),p=s(&quot;z&quot;);l&amp;&amp;l.length&amp;&amp;c&amp;&amp;c.length&amp;&amp;u&amp;&amp;u.length&amp;&amp;f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length&amp;&amp;p&amp;&amp;p.length?(s(&quot;starts.x&quot;),s(&quot;starts.y&quot;),s(&quot;starts.z&quot;),s(&quot;maxdisplayed&quot;),s(&quot;sizeref&quot;),s(&quot;lighting.ambient&quot;),s(&quot;lighting.diffuse&quot;),s(&quot;lighting.specular&quot;),s(&quot;lighting.roughness&quot;),s(&quot;lighting.fresnel&quot;),s(&quot;lightposition.x&quot;),s(&quot;lightposition.y&quot;),s(&quot;lightposition.z&quot;),i(t,e,o,s,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(&quot;text&quot;),s(&quot;hovertext&quot;),s(&quot;hovertemplate&quot;),e._length=null):e.visible=!1}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;./attributes&quot;:1294}],1298:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;streamtube&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;).calc,plot:t(&quot;./convert&quot;),eventData:function(t,e){return t.tubex=t.x,t.tubey=t.y,t.tubez=t.z,t.tubeu=e.traceCoordinate[3],t.tubev=e.traceCoordinate[4],t.tubew=e.traceCoordinate[5],t.norm=e.traceCoordinate[6],t.divergence=e.traceCoordinate[7],delete t.x,delete t.y,delete t.z,t},meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1294,&quot;./calc&quot;:1295,&quot;./convert&quot;:1296,&quot;./defaults&quot;:1297}],1299:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/attributes&quot;),i=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,a=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,o=t(&quot;../../components/colorscale/attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes,l=t(&quot;../pie/attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},parents:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},values:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},branchvalues:{valType:&quot;enumerated&quot;,values:[&quot;remainder&quot;,&quot;total&quot;],dflt:&quot;remainder&quot;,editType:&quot;calc&quot;},count:{valType:&quot;flaglist&quot;,flags:[&quot;branches&quot;,&quot;leaves&quot;],dflt:&quot;leaves&quot;,editType:&quot;calc&quot;},level:{valType:&quot;any&quot;,editType:&quot;plot&quot;,anim:!0},maxdepth:{valType:&quot;integer&quot;,editType:&quot;plot&quot;,dflt:-1},marker:u({colors:{valType:&quot;data_array&quot;,editType:&quot;calc&quot;},line:{color:u({},l.marker.line.color,{dflt:null}),width:u({},l.marker.line.width,{dflt:1}),editType:&quot;calc&quot;},editType:&quot;calc&quot;},o(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),leaf:{opacity:{valType:&quot;number&quot;,editType:&quot;style&quot;,min:0,max:1},editType:&quot;plot&quot;},text:l.text,textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;current path&quot;,&quot;percent root&quot;,&quot;percent entry&quot;,&quot;percent parent&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;},texttemplate:a({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:l.hovertext,hoverinfo:u({},n.hoverinfo,{flags:[&quot;label&quot;,&quot;text&quot;,&quot;value&quot;,&quot;name&quot;,&quot;current path&quot;,&quot;percent root&quot;,&quot;percent entry&quot;,&quot;percent parent&quot;],dflt:&quot;label+text+value+name&quot;}),hovertemplate:i({},{keys:c.eventDataKeys}),textfont:l.textfont,insidetextorientation:l.insidetextorientation,insidetextfont:l.insidetextfont,outsidetextfont:u({},l.outsidetextfont,{}),rotation:{valType:&quot;angle&quot;,dflt:0,editType:&quot;plot&quot;},sort:l.sort,root:{color:{valType:&quot;color&quot;,editType:&quot;calc&quot;,dflt:&quot;rgba(0,0,0,0)&quot;},editType:&quot;calc&quot;},domain:s({name:&quot;sunburst&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/domain&quot;:855,&quot;../../plots/template_attributes&quot;:906,&quot;../pie/attributes&quot;:1161,&quot;./constants&quot;:1302}],1300:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;sunburst&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1301:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;),i=t(&quot;fast-isnumeric&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../../components/colorscale&quot;).makeColorScaleFuncFromTrace,s=t(&quot;../pie/calc&quot;).makePullColorFn,l=t(&quot;../pie/calc&quot;).generateExtendedColors,c=t(&quot;../../components/colorscale&quot;).calc,u=t(&quot;../../constants/numerical&quot;).ALMOST_EQUAL,f={},h={};r.calc=function(t,e){var r,l,f,h,p,d,g=t._fullLayout,m=e.ids,v=a.isArrayOrTypedArray(m),y=e.labels,x=e.parents,b=e.values,_=a.isArrayOrTypedArray(b),w=[],T={},k={},M=function(t){return t||&quot;number&quot;==typeof t},A=function(t){return!_||i(b[t])&amp;&amp;b[t]&gt;=0};v?(r=Math.min(m.length,x.length),l=function(t){return M(m[t])&amp;&amp;A(t)},f=function(t){return String(m[t])}):(r=Math.min(y.length,x.length),l=function(t){return M(y[t])&amp;&amp;A(t)},f=function(t){return String(y[t])}),_&amp;&amp;(r=Math.min(r,b.length));for(var S=0;S&lt;r;S++)if(l(S)){var E=f(S),C=M(x[S])?String(x[S]):&quot;&quot;,L={i:S,id:E,pid:C,label:M(y[S])?String(y[S]):&quot;&quot;};_&amp;&amp;(L.v=+b[S]),w.push(L),p=E,T[h=C]?T[h].push(p):T[h]=[p],k[p]=1}if(T[&quot;&quot;]){if(T[&quot;&quot;].length&gt;1){for(var I=a.randstr(),P=0;P&lt;w.length;P++)&quot;&quot;===w[P].pid&amp;&amp;(w[P].pid=I);w.unshift({hasMultipleRoots:!0,id:I,pid:&quot;&quot;,label:&quot;&quot;})}}else{var z,O=[];for(z in T)k[z]||O.push(z);if(1!==O.length)return a.warn([&quot;Multiple implied roots, cannot build&quot;,e.type,&quot;hierarchy of&quot;,e.name+&quot;.&quot;,&quot;These roots include:&quot;,O.join(&quot;, &quot;)].join(&quot; &quot;));z=O[0],w.unshift({hasImpliedRoot:!0,id:z,pid:&quot;&quot;,label:z})}try{d=n.stratify().id((function(t){return t.id})).parentId((function(t){return t.pid}))(w)}catch(t){return a.warn([&quot;Failed to build&quot;,e.type,&quot;hierarchy of&quot;,e.name+&quot;.&quot;,&quot;Error:&quot;,t.message].join(&quot; &quot;))}var D=n.hierarchy(d),R=!1;if(_)switch(e.branchvalues){case&quot;remainder&quot;:D.sum((function(t){return t.data.v}));break;case&quot;total&quot;:D.each((function(t){var r=t.data.data,n=r.v;if(t.children){var i=t.children.reduce((function(t,e){return t+e.data.data.v}),0);if((r.hasImpliedRoot||r.hasMultipleRoots)&amp;&amp;(n=i),n&lt;i*u)return R=!0,a.warn([&quot;Total value for node&quot;,t.data.data.id,&quot;of&quot;,e.name,&quot;is smaller than the sum of its children.&quot;,&quot;\nparent value =&quot;,n,&quot;\nchildren sum =&quot;,i].join(&quot; &quot;))}t.value=n}))}else!function t(e,r,n){var i=0,a=e.children;if(a){for(var o=a.length,s=0;s&lt;o;s++)i+=t(a[s],r,n);n.branches&amp;&amp;i++}else n.leaves&amp;&amp;i++;e.value=e.data.data.value=i,r._values||(r._values=[]);return r._values[e.data.data.i]=i,i}(D,e,{branches:-1!==e.count.indexOf(&quot;branches&quot;),leaves:-1!==e.count.indexOf(&quot;leaves&quot;)});if(!R){var F,B;e.sort&amp;&amp;D.sort((function(t,e){return e.value-t.value}));var N=e.marker.colors||[],j=!!N.length;return e._hasColorscale?(j||(N=_?e.values:e._values),c(t,e,{vals:N,containerStr:&quot;marker&quot;,cLetter:&quot;c&quot;}),B=o(e.marker)):F=s(g[&quot;_&quot;+e.type+&quot;colormap&quot;]),D.each((function(t){var r=t.data.data;r.color=e._hasColorscale?B(N[r.i]):F(N[r.i],r.id)})),w[0].hierarchy=D,w}},r._runCrossTraceCalc=function(t,e){var r=e._fullLayout,n=e.calcdata,i=r[t+&quot;colorway&quot;],a=r[&quot;_&quot;+t+&quot;colormap&quot;];r[&quot;extend&quot;+t+&quot;colors&quot;]&amp;&amp;(i=l(i,&quot;treemap&quot;===t?h:f));var o,s=0;function c(t){var e=t.data.data,r=e.id;!1===e.color&amp;&amp;(a[r]?e.color=a[r]:t.parent?t.parent.parent?e.color=t.parent.data.data.color:(a[r]=e.color=i[s%i.length],s++):e.color=o)}for(var u=0;u&lt;n.length;u++){var p=n[u][0];p.trace.type===t&amp;&amp;p.hierarchy&amp;&amp;(o=p.trace.root.color,p.hierarchy.each(c))}},r.crossTraceCalc=function(t){return r._runCrossTraceCalc(&quot;sunburst&quot;,t)}},{&quot;../../components/colorscale&quot;:655,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../pie/calc&quot;:1163,&quot;d3-hierarchy&quot;:161,&quot;fast-isnumeric&quot;:241}],1302:[function(t,e,r){&quot;use strict&quot;;e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:&quot;linear&quot;,eventDataKeys:[&quot;currentPath&quot;,&quot;root&quot;,&quot;entry&quot;,&quot;percentRoot&quot;,&quot;percentEntry&quot;,&quot;percentParent&quot;]}},{}],1303:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults,o=t(&quot;../bar/defaults&quot;).handleText,s=t(&quot;../../components/colorscale&quot;),l=s.hasColorscale,c=s.handleDefaults;e.exports=function(t,e,r,s){function u(r,a){return n.coerce(t,e,i,r,a)}var f=u(&quot;labels&quot;),h=u(&quot;parents&quot;);if(f&amp;&amp;f.length&amp;&amp;h&amp;&amp;h.length){var p=u(&quot;values&quot;);p&amp;&amp;p.length?u(&quot;branchvalues&quot;):u(&quot;count&quot;),u(&quot;level&quot;),u(&quot;maxdepth&quot;),u(&quot;marker.line.width&quot;)&amp;&amp;u(&quot;marker.line.color&quot;,s.paper_bgcolor),u(&quot;marker.colors&quot;);var d=e._hasColorscale=l(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis;d&amp;&amp;c(t,e,s,u,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),u(&quot;leaf.opacity&quot;,d?1:.7);var g=u(&quot;text&quot;);u(&quot;texttemplate&quot;),e.texttemplate||u(&quot;textinfo&quot;,Array.isArray(g)?&quot;text+label&quot;:&quot;label&quot;),u(&quot;hovertext&quot;),u(&quot;hovertemplate&quot;);o(t,e,s,u,&quot;auto&quot;,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),u(&quot;insidetextorientation&quot;),u(&quot;sort&quot;),u(&quot;rotation&quot;),u(&quot;root.color&quot;),a(e,s,u),e._length=null}else e.visible=!1}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/defaults&quot;:925,&quot;./attributes&quot;:1299}],1304:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../registry&quot;),a=t(&quot;../../components/fx/helpers&quot;).appendArrayPointValue,o=t(&quot;../../components/fx&quot;),s=t(&quot;../../lib&quot;),l=t(&quot;../../lib/events&quot;),c=t(&quot;./helpers&quot;),u=t(&quot;../pie/helpers&quot;).formatPieValue;function f(t,e,r){for(var n=t.data.data,i={curveNumber:e.index,pointNumber:n.i,data:e._input,fullData:e},o=0;o&lt;r.length;o++){var s=r[o];s in t&amp;&amp;(i[s]=t[s])}return&quot;parentString&quot;in t&amp;&amp;!c.isHierarchyRoot(t)&amp;&amp;(i.parent=t.parentString),a(i,e,n.i),i}e.exports=function(t,e,r,a,h){var p=a[0],d=p.trace,g=p.hierarchy,m=&quot;sunburst&quot;===d.type,v=&quot;treemap&quot;===d.type;&quot;_hasHoverLabel&quot;in d||(d._hasHoverLabel=!1),&quot;_hasHoverEvent&quot;in d||(d._hasHoverEvent=!1);t.on(&quot;mouseover&quot;,(function(i){var a=r._fullLayout;if(!r._dragging&amp;&amp;!1!==a.hovermode){var l=r._fullData[d.index],y=i.data.data,x=y.i,b=c.isHierarchyRoot(i),_=c.getParent(g,i),w=c.getValue(i),T=function(t){return s.castOption(l,x,t)},k=T(&quot;hovertemplate&quot;),M=o.castHoverinfo(l,a,x),A=a.separators;if(k||M&amp;&amp;&quot;none&quot;!==M&amp;&amp;&quot;skip&quot;!==M){var S,E;m&amp;&amp;(S=p.cx+i.pxmid[0]*(1-i.rInscribed),E=p.cy+i.pxmid[1]*(1-i.rInscribed)),v&amp;&amp;(S=i._hoverX,E=i._hoverY);var C,L={},I=[],P=[],z=function(t){return-1!==I.indexOf(t)};M&amp;&amp;(I=&quot;all&quot;===M?l._module.attributes.hoverinfo.flags:M.split(&quot;+&quot;)),L.label=y.label,z(&quot;label&quot;)&amp;&amp;L.label&amp;&amp;P.push(L.label),y.hasOwnProperty(&quot;v&quot;)&amp;&amp;(L.value=y.v,L.valueLabel=u(L.value,A),z(&quot;value&quot;)&amp;&amp;P.push(L.valueLabel)),L.currentPath=i.currentPath=c.getPath(i.data),z(&quot;current path&quot;)&amp;&amp;!b&amp;&amp;P.push(L.currentPath);var O=[],D=function(){-1===O.indexOf(C)&amp;&amp;(P.push(C),O.push(C))};L.percentParent=i.percentParent=w/c.getValue(_),L.parent=i.parentString=c.getPtLabel(_),z(&quot;percent parent&quot;)&amp;&amp;(C=c.formatPercent(L.percentParent,A)+&quot; of &quot;+L.parent,D()),L.percentEntry=i.percentEntry=w/c.getValue(e),L.entry=i.entry=c.getPtLabel(e),!z(&quot;percent entry&quot;)||b||i.onPathbar||(C=c.formatPercent(L.percentEntry,A)+&quot; of &quot;+L.entry,D()),L.percentRoot=i.percentRoot=w/c.getValue(g),L.root=i.root=c.getPtLabel(g),z(&quot;percent root&quot;)&amp;&amp;!b&amp;&amp;(C=c.formatPercent(L.percentRoot,A)+&quot; of &quot;+L.root,D()),L.text=T(&quot;hovertext&quot;)||T(&quot;text&quot;),z(&quot;text&quot;)&amp;&amp;(C=L.text,s.isValidTextValue(C)&amp;&amp;P.push(C));var R={trace:l,y:E,text:P.join(&quot;&lt;br&gt;&quot;),name:k||z(&quot;name&quot;)?l.name:void 0,color:T(&quot;hoverlabel.bgcolor&quot;)||y.color,borderColor:T(&quot;hoverlabel.bordercolor&quot;),fontFamily:T(&quot;hoverlabel.font.family&quot;),fontSize:T(&quot;hoverlabel.font.size&quot;),fontColor:T(&quot;hoverlabel.font.color&quot;),nameLength:T(&quot;hoverlabel.namelength&quot;),textAlign:T(&quot;hoverlabel.align&quot;),hovertemplate:k,hovertemplateLabels:L,eventData:[f(i,l,h.eventDataKeys)]};m&amp;&amp;(R.x0=S-i.rInscribed*i.rpx1,R.x1=S+i.rInscribed*i.rpx1,R.idealAlign=i.pxmid[0]&lt;0?&quot;left&quot;:&quot;right&quot;),v&amp;&amp;(R.x=S,R.idealAlign=S&lt;0?&quot;left&quot;:&quot;right&quot;),o.loneHover(R,{container:a._hoverlayer.node(),outerContainer:a._paper.node(),gd:r}),d._hasHoverLabel=!0}if(v){var F=t.select(&quot;path.surface&quot;);h.styleOne(F,i,l,{hovered:!0})}d._hasHoverEvent=!0,r.emit(&quot;plotly_hover&quot;,{points:[f(i,l,h.eventDataKeys)],event:n.event})}})),t.on(&quot;mouseout&quot;,(function(e){var i=r._fullLayout,a=r._fullData[d.index],s=n.select(this).datum();if(d._hasHoverEvent&amp;&amp;(e.originalEvent=n.event,r.emit(&quot;plotly_unhover&quot;,{points:[f(s,a,h.eventDataKeys)],event:n.event}),d._hasHoverEvent=!1),d._hasHoverLabel&amp;&amp;(o.loneUnhover(i._hoverlayer.node()),d._hasHoverLabel=!1),v){var l=t.select(&quot;path.surface&quot;);h.styleOne(l,s,a,{hovered:!1})}})),t.on(&quot;click&quot;,(function(t){var e=r._fullLayout,a=r._fullData[d.index],s=m&amp;&amp;(c.isHierarchyRoot(t)||c.isLeaf(t)),u=c.getPtId(t),p=c.isEntry(t)?c.findEntryWithChild(g,u):c.findEntryWithLevel(g,u),v=c.getPtId(p),y={points:[f(t,a,h.eventDataKeys)],event:n.event};s||(y.nextLevel=v);var x=l.triggerHandler(r,&quot;plotly_&quot;+d.type+&quot;click&quot;,y);if(!1!==x&amp;&amp;e.hovermode&amp;&amp;(r._hoverdata=[f(t,a,h.eventDataKeys)],o.click(r,n.event)),!s&amp;&amp;!1!==x&amp;&amp;!r._dragging&amp;&amp;!r._transitioning){i.call(&quot;_storeDirectGUIEdit&quot;,a,e._tracePreGUI[a.uid],{level:a.level});var b={data:[{level:v}],traces:[d.index]},_={frame:{redraw:!1,duration:h.transitionTime},transition:{duration:h.transitionTime,easing:h.transitionEasing},mode:&quot;immediate&quot;,fromcurrent:!0};o.loneUnhover(e._hoverlayer.node()),i.call(&quot;animate&quot;,r,b,_)}}))}},{&quot;../../components/fx&quot;:683,&quot;../../components/fx/helpers&quot;:679,&quot;../../lib&quot;:778,&quot;../../lib/events&quot;:767,&quot;../../registry&quot;:911,&quot;../pie/helpers&quot;:1166,&quot;./helpers&quot;:1305,d3:169}],1305:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib/setcursor&quot;),o=t(&quot;../pie/helpers&quot;);function s(t){return t.data.data.pid}r.findEntryWithLevel=function(t,e){var n;return e&amp;&amp;t.eachAfter((function(t){if(r.getPtId(t)===e)return n=t.copy()})),n||t},r.findEntryWithChild=function(t,e){var n;return t.eachAfter((function(t){for(var i=t.children||[],a=0;a&lt;i.length;a++){var o=i[a];if(r.getPtId(o)===e)return n=t.copy()}})),n||t},r.isEntry=function(t){return!t.parent},r.isLeaf=function(t){return!t.children},r.getPtId=function(t){return t.data.data.id},r.getPtLabel=function(t){return t.data.data.label},r.getValue=function(t){return t.value},r.isHierarchyRoot=function(t){return&quot;&quot;===s(t)},r.setSliceCursor=function(t,e,n){var i=n.isTransitioning;if(!i){var o=t.datum();i=n.hideOnRoot&amp;&amp;r.isHierarchyRoot(o)||n.hideOnLeaves&amp;&amp;r.isLeaf(o)}a(t,i?null:&quot;pointer&quot;)},r.getInsideTextFontKey=function(t,e,r,i,a){var o=(a||{}).onPathbar?&quot;pathbar.textfont&quot;:&quot;insidetextfont&quot;,s=r.data.data.i;return n.castOption(e,s,o+&quot;.&quot;+t)||n.castOption(e,s,&quot;textfont.&quot;+t)||i.size},r.getOutsideTextFontKey=function(t,e,r,i){var a=r.data.data.i;return n.castOption(e,a,&quot;outsidetextfont.&quot;+t)||n.castOption(e,a,&quot;textfont.&quot;+t)||i.size},r.isOutsideText=function(t,e){return!t._hasColorscale&amp;&amp;r.isHierarchyRoot(e)},r.determineTextFont=function(t,e,a,o){return r.isOutsideText(t,e)?function(t,e,n){return{color:r.getOutsideTextFontKey(&quot;color&quot;,t,e,n),family:r.getOutsideTextFontKey(&quot;family&quot;,t,e,n),size:r.getOutsideTextFontKey(&quot;size&quot;,t,e,n)}}(t,e,a):function(t,e,a,o){var s=(o||{}).onPathbar,l=e.data.data,c=l.i,u=n.castOption(t,c,(s?&quot;pathbar.textfont&quot;:&quot;insidetextfont&quot;)+&quot;.color&quot;);return!u&amp;&amp;t._input.textfont&amp;&amp;(u=n.castOption(t._input,c,&quot;textfont.color&quot;)),{color:u||i.contrast(l.color),family:r.getInsideTextFontKey(&quot;family&quot;,t,e,a,o),size:r.getInsideTextFontKey(&quot;size&quot;,t,e,a,o)}}(t,e,a,o)},r.hasTransition=function(t){return!!(t&amp;&amp;t.duration&gt;0)},r.getMaxDepth=function(t){return t.maxdepth&gt;=0?t.maxdepth:1/0},r.isHeader=function(t,e){return!(r.isLeaf(t)||t.depth===e._maxDepth-1)},r.getParent=function(t,e){return r.findEntryWithLevel(t,s(e))},r.listPath=function(t,e){var n=t.parent;if(!n)return[];var i=e?[n.data[e]]:[n];return r.listPath(n,e).concat(i)},r.getPath=function(t){return r.listPath(t,&quot;label&quot;).join(&quot;/&quot;)+&quot;/&quot;},r.formatValue=o.formatPieValue,r.formatPercent=function(t,e){var r=n.formatPercent(t,0);return&quot;0%&quot;===r&amp;&amp;(r=o.formatPiePercent(t,e)),r}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../../lib/setcursor&quot;:799,&quot;../pie/helpers&quot;:1166}],1306:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;sunburst&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;).plot,style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1299,&quot;./base_plot&quot;:1300,&quot;./calc&quot;:1301,&quot;./defaults&quot;:1303,&quot;./layout_attributes&quot;:1307,&quot;./layout_defaults&quot;:1308,&quot;./plot&quot;:1309,&quot;./style&quot;:1310}],1307:[function(t,e,r){&quot;use strict&quot;;e.exports={sunburstcolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendsunburstcolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1308:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;sunburstcolorway&quot;,e.colorway),r(&quot;extendsunburstcolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1307}],1309:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;d3-hierarchy&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../bar/uniform_text&quot;),c=l.recordMinTextSize,u=l.clearMinTextSize,f=t(&quot;../pie/plot&quot;),h=t(&quot;../pie/helpers&quot;).getRotationAngle,p=f.computeTransform,d=f.transformInsideText,g=t(&quot;./style&quot;).styleOne,m=t(&quot;../bar/style&quot;).resizeText,v=t(&quot;./fx&quot;),y=t(&quot;./constants&quot;),x=t(&quot;./helpers&quot;);function b(t,e,l,u){var f=t._fullLayout,m=!f.uniformtext.mode&amp;&amp;x.hasTransition(u),b=n.select(l).selectAll(&quot;g.slice&quot;),w=e[0],T=w.trace,k=w.hierarchy,M=x.findEntryWithLevel(k,T.level),A=x.getMaxDepth(T),S=f._size,E=T.domain,C=S.w*(E.x[1]-E.x[0]),L=S.h*(E.y[1]-E.y[0]),I=.5*Math.min(C,L),P=w.cx=S.l+S.w*(E.x[1]+E.x[0])/2,z=w.cy=S.t+S.h*(1-E.y[0])-L/2;if(!M)return b.remove();var O=null,D={};m&amp;&amp;b.each((function(t){D[x.getPtId(t)]={rpx0:t.rpx0,rpx1:t.rpx1,x0:t.x0,x1:t.x1,transform:t.transform},!O&amp;&amp;x.isEntry(t)&amp;&amp;(O=t)}));var R=function(t){return i.partition().size([2*Math.PI,t.height+1])(t)}(M).descendants(),F=M.height+1,B=0,N=A;w.hasMultipleRoots&amp;&amp;x.isHierarchyRoot(M)&amp;&amp;(R=R.slice(1),F-=1,B=1,N+=1),R=R.filter((function(t){return t.y1&lt;=N}));var j=h(T.rotation);j&amp;&amp;R.forEach((function(t){t.x0+=j,t.x1+=j}));var U=Math.min(F,A),V=function(t){return(t-B)/U*I},q=function(t,e){return[t*Math.cos(e),-t*Math.sin(e)]},H=function(t){return o.pathAnnulus(t.rpx0,t.rpx1,t.x0,t.x1,P,z)},G=function(t){return P+_(t)[0]*(t.transform.rCenter||0)+(t.transform.x||0)},Y=function(t){return z+_(t)[1]*(t.transform.rCenter||0)+(t.transform.y||0)};(b=b.data(R,x.getPtId)).enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),m?b.exit().transition().each((function(){var t=n.select(this);t.select(&quot;path.surface&quot;).transition().attrTween(&quot;d&quot;,(function(t){var e=function(t){var e,r=x.getPtId(t),i=D[r],a=D[x.getPtId(M)];if(a){var o=(t.x1&gt;a.x1?2*Math.PI:0)+j;e=t.rpx1&lt;a.rpx1?{rpx0:0,rpx1:0}:{x0:o,x1:o}}else{var s,l=x.getPtId(t.parent);b.each((function(t){if(x.getPtId(t)===l)return s=t}));var c,u=s.children;u.forEach((function(t,e){if(x.getPtId(t)===r)return c=e}));var f=u.length,h=n.interpolate(s.x0,s.x1);e={rpx0:I,rpx1:I,x0:h(c/f),x1:h((c+1)/f)}}return n.interpolate(i,e)}(t);return function(t){return H(e(t))}})),t.select(&quot;g.slicetext&quot;).attr(&quot;opacity&quot;,0)})).remove():b.exit().remove(),b.order();var W=null;if(m&amp;&amp;O){var X=x.getPtId(O);b.each((function(t){null===W&amp;&amp;x.getPtId(t)===X&amp;&amp;(W=t.x1)}))}var Z=b;function J(t){var e=t.parent,r=D[x.getPtId(e)],i={};if(r){var a=e.children,o=a.indexOf(t),s=a.length,l=n.interpolate(r.x0,r.x1);i.x0=l(o/s),i.x1=l(o/s)}else i.x0=i.x1=0;return i}m&amp;&amp;(Z=Z.transition().each(&quot;end&quot;,(function(){var e=n.select(this);x.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:!1})}))),Z.each((function(i){var l=n.select(this),u=o.ensureSingle(l,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));i.rpx0=V(i.y0),i.rpx1=V(i.y1),i.xmid=(i.x0+i.x1)/2,i.pxmid=q(i.rpx1,i.xmid),i.midangle=-(i.xmid-Math.PI/2),i.startangle=-(i.x0-Math.PI/2),i.stopangle=-(i.x1-Math.PI/2),i.halfangle=.5*Math.min(o.angleDelta(i.x0,i.x1)||Math.PI,Math.PI),i.ring=1-i.rpx0/i.rpx1,i.rInscribed=function(t){return 0===t.rpx0&amp;&amp;o.isFullCircle([t.x0,t.x1])?1:Math.max(0,Math.min(1/(1+1/Math.sin(t.halfangle)),t.ring/2))}(i),m?u.transition().attrTween(&quot;d&quot;,(function(t){var e=function(t){var e,r=D[x.getPtId(t)],i={x0:t.x0,x1:t.x1,rpx0:t.rpx0,rpx1:t.rpx1};if(r)e=r;else if(O)if(t.parent)if(W){var a=(t.x1&gt;W?2*Math.PI:0)+j;e={x0:a,x1:a}}else e={rpx0:I,rpx1:I},o.extendFlat(e,J(t));else e={rpx0:0,rpx1:0};else e={x0:j,x1:j};return n.interpolate(e,i)}(t);return function(t){return H(e(t))}})):u.attr(&quot;d&quot;,H),l.call(v,M,t,e,{eventDataKeys:y.eventDataKeys,transitionTime:y.CLICK_TRANSITION_TIME,transitionEasing:y.CLICK_TRANSITION_EASING}).call(x.setSliceCursor,t,{hideOnRoot:!0,hideOnLeaves:!0,isTransitioning:t._transitioning}),u.call(g,i,T);var h=o.ensureSingle(l,&quot;g&quot;,&quot;slicetext&quot;),b=o.ensureSingle(h,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),_=o.ensureUniformFontSize(t,x.determineTextFont(T,i,f.font));b.text(r.formatSliceLabel(i,M,T,e,f)).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,&quot;middle&quot;).call(a.font,_).call(s.convertToTspans,t);var k=a.bBox(b.node());i.transform=d(k,i,w),i.transform.targetX=G(i),i.transform.targetY=Y(i);var A=function(t,e){var r=t.transform;return p(r,e),r.fontSize=_.size,c(T.type,r,f),o.getTextTransform(r)};m?b.transition().attrTween(&quot;transform&quot;,(function(t){var e=function(t){var e,r=D[x.getPtId(t)],i=t.transform;if(r)e=r;else if(e={rpx1:t.rpx1,transform:{textPosAngle:i.textPosAngle,scale:0,rotate:i.rotate,rCenter:i.rCenter,x:i.x,y:i.y}},O)if(t.parent)if(W){var a=t.x1&gt;W?2*Math.PI:0;e.x0=e.x1=a}else o.extendFlat(e,J(t));else e.x0=e.x1=j;else e.x0=e.x1=j;var s=n.interpolate(e.transform.textPosAngle,t.transform.textPosAngle),l=n.interpolate(e.rpx1,t.rpx1),u=n.interpolate(e.x0,t.x0),h=n.interpolate(e.x1,t.x1),p=n.interpolate(e.transform.scale,i.scale),d=n.interpolate(e.transform.rotate,i.rotate),g=0===i.rCenter?3:0===e.transform.rCenter?1/3:1,m=n.interpolate(e.transform.rCenter,i.rCenter);return function(t){var e=l(t),r=u(t),n=h(t),a=function(t){return m(Math.pow(t,g))}(t),o={pxmid:q(e,(r+n)/2),rpx1:e,transform:{textPosAngle:s(t),rCenter:a,x:i.x,y:i.y}};return c(T.type,i,f),{transform:{targetX:G(o),targetY:Y(o),scale:p(t),rotate:d(t),rCenter:a}}}}(t);return function(t){return A(e(t),k)}})):b.attr(&quot;transform&quot;,A(i,k))}))}function _(t){return e=t.rpx1,r=t.transform.textPosAngle,[e*Math.sin(r),-e*Math.cos(r)];var e,r}r.plot=function(t,e,r,i){var a,o,s=t._fullLayout,l=s._sunburstlayer,c=!r,f=!s.uniformtext.mode&amp;&amp;x.hasTransition(r);(u(&quot;sunburst&quot;,s),(a=l.selectAll(&quot;g.trace.sunburst&quot;).data(e,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).classed(&quot;trace&quot;,!0).classed(&quot;sunburst&quot;,!0).attr(&quot;stroke-linejoin&quot;,&quot;round&quot;),a.order(),f)?(i&amp;&amp;(o=i()),n.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){o&amp;&amp;o()})).each(&quot;interrupt&quot;,(function(){o&amp;&amp;o()})).each((function(){l.selectAll(&quot;g.trace&quot;).each((function(e){b(t,e,this,r)}))}))):(a.each((function(e){b(t,e,this,r)})),s.uniformtext.mode&amp;&amp;m(t,s._sunburstlayer.selectAll(&quot;.trace&quot;),&quot;sunburst&quot;));c&amp;&amp;a.exit().remove()},r.formatSliceLabel=function(t,e,r,n,i){var a=r.texttemplate,s=r.textinfo;if(!(a||s&amp;&amp;&quot;none&quot;!==s))return&quot;&quot;;var l=i.separators,c=n[0],u=t.data.data,f=c.hierarchy,h=x.isHierarchyRoot(t),p=x.getParent(f,t),d=x.getValue(t);if(!a){var g,m=s.split(&quot;+&quot;),v=function(t){return-1!==m.indexOf(t)},y=[];if(v(&quot;label&quot;)&amp;&amp;u.label&amp;&amp;y.push(u.label),u.hasOwnProperty(&quot;v&quot;)&amp;&amp;v(&quot;value&quot;)&amp;&amp;y.push(x.formatValue(u.v,l)),!h){v(&quot;current path&quot;)&amp;&amp;y.push(x.getPath(t.data));var b=0;v(&quot;percent parent&quot;)&amp;&amp;b++,v(&quot;percent entry&quot;)&amp;&amp;b++,v(&quot;percent root&quot;)&amp;&amp;b++;var _=b&gt;1;if(b){var w,T=function(t){g=x.formatPercent(w,l),_&amp;&amp;(g+=&quot; of &quot;+t),y.push(g)};v(&quot;percent parent&quot;)&amp;&amp;!h&amp;&amp;(w=d/x.getValue(p),T(&quot;parent&quot;)),v(&quot;percent entry&quot;)&amp;&amp;(w=d/x.getValue(e),T(&quot;entry&quot;)),v(&quot;percent root&quot;)&amp;&amp;(w=d/x.getValue(f),T(&quot;root&quot;))}}return v(&quot;text&quot;)&amp;&amp;(g=o.castOption(r,u.i,&quot;text&quot;),o.isValidTextValue(g)&amp;&amp;y.push(g)),y.join(&quot;&lt;br&gt;&quot;)}var k=o.castOption(r,u.i,&quot;texttemplate&quot;);if(!k)return&quot;&quot;;var M={};u.label&amp;&amp;(M.label=u.label),u.hasOwnProperty(&quot;v&quot;)&amp;&amp;(M.value=u.v,M.valueLabel=x.formatValue(u.v,l)),M.currentPath=x.getPath(t.data),h||(M.percentParent=d/x.getValue(p),M.percentParentLabel=x.formatPercent(M.percentParent,l),M.parent=x.getPtLabel(p)),M.percentEntry=d/x.getValue(e),M.percentEntryLabel=x.formatPercent(M.percentEntry,l),M.entry=x.getPtLabel(e),M.percentRoot=d/x.getValue(f),M.percentRootLabel=x.formatPercent(M.percentRoot,l),M.root=x.getPtLabel(f),u.hasOwnProperty(&quot;color&quot;)&amp;&amp;(M.color=u.color);var A=o.castOption(r,u.i,&quot;text&quot;);return(o.isValidTextValue(A)||&quot;&quot;===A)&amp;&amp;(M.text=A),M.customdata=o.castOption(r,u.i,&quot;customdata&quot;),o.texttemplateString(k,M,i._d3locale,M,r._meta||{})}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,&quot;../pie/helpers&quot;:1166,&quot;../pie/plot&quot;:1170,&quot;./constants&quot;:1302,&quot;./fx&quot;:1304,&quot;./helpers&quot;:1305,&quot;./style&quot;:1310,d3:169,&quot;d3-hierarchy&quot;:161}],1310:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../bar/uniform_text&quot;).resizeText;function s(t,e,r){var n=e.data.data,o=!e.children,s=n.i,l=a.castOption(r,s,&quot;marker.line.color&quot;)||i.defaultLine,c=a.castOption(r,s,&quot;marker.line.width&quot;)||0;t.style(&quot;stroke-width&quot;,c).call(i.fill,n.color).call(i.stroke,l).style(&quot;opacity&quot;,o?r.leaf.opacity:null)}e.exports={style:function(t){var e=t._fullLayout._sunburstlayer.selectAll(&quot;.trace&quot;);o(t,e,&quot;sunburst&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(s,t,r)}))}))},styleOne:s}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/uniform_text&quot;:937,d3:169}],1311:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/color&quot;),i=t(&quot;../../components/colorscale/attributes&quot;),a=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll;function c(t){return{show:{valType:&quot;boolean&quot;,dflt:!1},start:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;},end:{valType:&quot;number&quot;,dflt:null,editType:&quot;plot&quot;},size:{valType:&quot;number&quot;,dflt:null,min:0,editType:&quot;plot&quot;},project:{x:{valType:&quot;boolean&quot;,dflt:!1},y:{valType:&quot;boolean&quot;,dflt:!1},z:{valType:&quot;boolean&quot;,dflt:!1}},color:{valType:&quot;color&quot;,dflt:n.defaultLine},usecolormap:{valType:&quot;boolean&quot;,dflt:!1},width:{valType:&quot;number&quot;,min:1,max:16,dflt:2},highlight:{valType:&quot;boolean&quot;,dflt:!0},highlightcolor:{valType:&quot;color&quot;,dflt:n.defaultLine},highlightwidth:{valType:&quot;number&quot;,min:1,max:16,dflt:2}}}var u=e.exports=l(s({z:{valType:&quot;data_array&quot;},x:{valType:&quot;data_array&quot;},y:{valType:&quot;data_array&quot;},text:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertext:{valType:&quot;string&quot;,dflt:&quot;&quot;,arrayOk:!0},hovertemplate:a(),connectgaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},surfacecolor:{valType:&quot;data_array&quot;}},i(&quot;&quot;,{colorAttr:&quot;z or surfacecolor&quot;,showScaleDflt:!0,autoColorDflt:!1,editTypeOverride:&quot;calc&quot;}),{contours:{x:c(),y:c(),z:c()},hidesurface:{valType:&quot;boolean&quot;,dflt:!1},lightposition:{x:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:10},y:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:1e4},z:{valType:&quot;number&quot;,min:-1e5,max:1e5,dflt:0}},lighting:{ambient:{valType:&quot;number&quot;,min:0,max:1,dflt:.8},diffuse:{valType:&quot;number&quot;,min:0,max:1,dflt:.8},specular:{valType:&quot;number&quot;,min:0,max:2,dflt:.05},roughness:{valType:&quot;number&quot;,min:0,max:1,dflt:.5},fresnel:{valType:&quot;number&quot;,min:0,max:5,dflt:.2}},opacity:{valType:&quot;number&quot;,min:0,max:1,dflt:1},opacityscale:{valType:&quot;any&quot;,editType:&quot;calc&quot;},_deprecated:{zauto:s({},i.zauto,{}),zmin:s({},i.zmin,{}),zmax:s({},i.zmax,{})},hoverinfo:s({},o.hoverinfo),showlegend:s({},o.showlegend,{dflt:!1})}),&quot;calc&quot;,&quot;nested&quot;);u.x.editType=u.y.editType=u.z.editType=&quot;calc+clearAxisTypes&quot;,u.transforms=void 0},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906}],1312:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/calc&quot;);e.exports=function(t,e){e.surfacecolor?n(t,e,{vals:e.surfacecolor,containerStr:&quot;&quot;,cLetter:&quot;c&quot;}):n(t,e,{vals:e.z,containerStr:&quot;&quot;,cLetter:&quot;c&quot;})}},{&quot;../../components/colorscale/calc&quot;:651}],1313:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-surface3d&quot;),i=t(&quot;ndarray&quot;),a=t(&quot;ndarray-linear-interpolate&quot;).d2,o=t(&quot;../heatmap/interp2d&quot;),s=t(&quot;../heatmap/find_empties&quot;),l=t(&quot;../../lib&quot;).isArrayOrTypedArray,c=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,u=t(&quot;../../lib/str2rgbarray&quot;),f=t(&quot;../../components/colorscale&quot;).extractOpts;function h(t,e,r){this.scene=t,this.uid=r,this.surface=e,this.data=null,this.showContour=[!1,!1,!1],this.contourStart=[null,null,null],this.contourEnd=[null,null,null],this.contourSize=[0,0,0],this.minValues=[1/0,1/0,1/0],this.maxValues=[-1/0,-1/0,-1/0],this.dataScaleX=1,this.dataScaleY=1,this.refineData=!0,this.objectOffset=[0,0,0]}var p=h.prototype;p.getXat=function(t,e,r,n){var i=l(this.data.x)?l(this.data.x[0])?this.data.x[e][t]:this.data.x[t]:t;return void 0===r?i:n.d2l(i,0,r)},p.getYat=function(t,e,r,n){var i=l(this.data.y)?l(this.data.y[0])?this.data.y[e][t]:this.data.y[e]:e;return void 0===r?i:n.d2l(i,0,r)},p.getZat=function(t,e,r,n){var i=this.data.z[e][t];return null===i&amp;&amp;this.data.connectgaps&amp;&amp;this.data._interpolatedZ&amp;&amp;(i=this.data._interpolatedZ[e][t]),void 0===r?i:n.d2l(i,0,r)},p.handlePick=function(t){if(t.object===this.surface){var e=(t.data.index[0]-1)/this.dataScaleX-1,r=(t.data.index[1]-1)/this.dataScaleY-1,n=Math.max(Math.min(Math.round(e),this.data.z[0].length-1),0),i=Math.max(Math.min(Math.round(r),this.data._ylength-1),0);t.index=[n,i],t.traceCoordinate=[this.getXat(n,i),this.getYat(n,i),this.getZat(n,i)],t.dataCoordinate=[this.getXat(n,i,this.data.xcalendar,this.scene.fullSceneLayout.xaxis),this.getYat(n,i,this.data.ycalendar,this.scene.fullSceneLayout.yaxis),this.getZat(n,i,this.data.zcalendar,this.scene.fullSceneLayout.zaxis)];for(var a=0;a&lt;3;a++){var o=t.dataCoordinate[a];null!=o&amp;&amp;(t.dataCoordinate[a]*=this.scene.dataScale[a])}var s=this.data.hovertext||this.data.text;return Array.isArray(s)&amp;&amp;s[i]&amp;&amp;void 0!==s[i][n]?t.textLabel=s[i][n]:t.textLabel=s||&quot;&quot;,t.data.dataCoordinate=t.dataCoordinate.slice(),this.surface.highlight(t.data),this.scene.glplot.spikes.position=t.dataCoordinate,!0}};var d=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997,1009,1013,1019,1021,1031,1033,1039,1049,1051,1061,1063,1069,1087,1091,1093,1097,1103,1109,1117,1123,1129,1151,1153,1163,1171,1181,1187,1193,1201,1213,1217,1223,1229,1231,1237,1249,1259,1277,1279,1283,1289,1291,1297,1301,1303,1307,1319,1321,1327,1361,1367,1373,1381,1399,1409,1423,1427,1429,1433,1439,1447,1451,1453,1459,1471,1481,1483,1487,1489,1493,1499,1511,1523,1531,1543,1549,1553,1559,1567,1571,1579,1583,1597,1601,1607,1609,1613,1619,1621,1627,1637,1657,1663,1667,1669,1693,1697,1699,1709,1721,1723,1733,1741,1747,1753,1759,1777,1783,1787,1789,1801,1811,1823,1831,1847,1861,1867,1871,1873,1877,1879,1889,1901,1907,1913,1931,1933,1949,1951,1973,1979,1987,1993,1997,1999,2003,2011,2017,2027,2029,2039,2053,2063,2069,2081,2083,2087,2089,2099,2111,2113,2129,2131,2137,2141,2143,2153,2161,2179,2203,2207,2213,2221,2237,2239,2243,2251,2267,2269,2273,2281,2287,2293,2297,2309,2311,2333,2339,2341,2347,2351,2357,2371,2377,2381,2383,2389,2393,2399,2411,2417,2423,2437,2441,2447,2459,2467,2473,2477,2503,2521,2531,2539,2543,2549,2551,2557,2579,2591,2593,2609,2617,2621,2633,2647,2657,2659,2663,2671,2677,2683,2687,2689,2693,2699,2707,2711,2713,2719,2729,2731,2741,2749,2753,2767,2777,2789,2791,2797,2801,2803,2819,2833,2837,2843,2851,2857,2861,2879,2887,2897,2903,2909,2917,2927,2939,2953,2957,2963,2969,2971,2999];function g(t,e){if(t&lt;e)return 0;for(var r=0;0===Math.floor(t%e);)t/=e,r++;return r}function m(t){for(var e=[],r=0;r&lt;d.length;r++){var n=d[r];e.push(g(t,n))}return e}function v(t){for(var e=m(t),r=t,n=0;n&lt;d.length;n++)if(e[n]&gt;0){r=d[n];break}return r}function y(t,e){if(!(t&lt;1||e&lt;1)){for(var r=m(t),n=m(e),i=1,a=0;a&lt;d.length;a++)i*=Math.pow(d[a],Math.max(r[a],n[a]));return i}}p.calcXnums=function(t){var e,r=[];for(e=1;e&lt;t;e++){var n=this.getXat(e-1,0),i=this.getXat(e,0);r[e-1]=i!==n&amp;&amp;null!=n&amp;&amp;null!=i?Math.abs(i-n):0}var a=0;for(e=1;e&lt;t;e++)a+=r[e-1];for(e=1;e&lt;t;e++)0===r[e-1]?r[e-1]=1:r[e-1]=Math.round(a/r[e-1]);return r},p.calcYnums=function(t){var e,r=[];for(e=1;e&lt;t;e++){var n=this.getYat(0,e-1),i=this.getYat(0,e);r[e-1]=i!==n&amp;&amp;null!=n&amp;&amp;null!=i?Math.abs(i-n):0}var a=0;for(e=1;e&lt;t;e++)a+=r[e-1];for(e=1;e&lt;t;e++)0===r[e-1]?r[e-1]=1:r[e-1]=Math.round(a/r[e-1]);return r};var x=[1,2,4,6,12,24,36,48,60,120,180,240,360,720,840,1260],b=x[9],_=x[13];function w(t,e,r){var n=r[8]+r[2]*e[0]+r[5]*e[1];return t[0]=(r[6]+r[0]*e[0]+r[3]*e[1])/n,t[1]=(r[7]+r[1]*e[0]+r[4]*e[1])/n,t}function T(t,e,r){return function(t,e,r,n){for(var i=[0,0],o=t.shape[0],s=t.shape[1],l=0;l&lt;o;l++)for(var c=0;c&lt;s;c++)r(i,[l,c],n),t.set(l,c,a(e,i[0],i[1]))}(t,e,w,r),t}function k(t,e){for(var r=!1,n=0;n&lt;t.length;n++)if(e===t[n]){r=!0;break}!1===r&amp;&amp;t.push(e)}p.estimateScale=function(t,e){for(var r=1+function(t){if(0!==t.length){for(var e=1,r=0;r&lt;t.length;r++)e=y(e,t[r]);return e}}(0===e?this.calcXnums(t):this.calcYnums(t));r&lt;b;)r*=2;for(;r&gt;_;)r--,r/=v(r),++r&lt;b&amp;&amp;(r=_);var n=Math.round(r/t);return n&gt;1?n:1},p.refineCoords=function(t){for(var e=this.dataScaleX,r=this.dataScaleY,n=t[0].shape[0],a=t[0].shape[1],o=0|Math.floor(t[0].shape[0]*e+1),s=0|Math.floor(t[0].shape[1]*r+1),l=1+n+1,c=1+a+1,u=i(new Float32Array(l*c),[l,c]),f=[1/e,0,0,0,1/r,0,0,0,1],h=0;h&lt;t.length;++h){this.surface.padField(u,t[h]);var p=i(new Float32Array(o*s),[o,s]);T(p,u,f),t[h]=p}},p.setContourLevels=function(){var t,e,r,n=[[],[],[]],i=[!1,!1,!1],a=!1;for(t=0;t&lt;3;++t)if(this.showContour[t]&amp;&amp;(a=!0,this.contourSize[t]&gt;0&amp;&amp;null!==this.contourStart[t]&amp;&amp;null!==this.contourEnd[t]&amp;&amp;this.contourEnd[t]&gt;this.contourStart[t]))for(i[t]=!0,e=this.contourStart[t];e&lt;this.contourEnd[t];e+=this.contourSize[t])r=e*this.scene.dataScale[t],k(n[t],r);if(a){var o=[[],[],[]];for(t=0;t&lt;3;++t)this.showContour[t]&amp;&amp;(o[t]=i[t]?n[t]:this.scene.contourLevels[t]);this.surface.update({levels:o})}},p.update=function(t){var e,r,n,a,l=this.scene,h=l.fullSceneLayout,p=this.surface,d=c(t),g=l.dataScale,m=t.z[0].length,v=t._ylength,y=l.contourLevels;this.data=t;var x=[];for(e=0;e&lt;3;e++)for(x[e]=[],r=0;r&lt;m;r++)x[e][r]=[];for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)x[0][r][n]=this.getXat(r,n,t.xcalendar,h.xaxis),x[1][r][n]=this.getYat(r,n,t.ycalendar,h.yaxis),x[2][r][n]=this.getZat(r,n,t.zcalendar,h.zaxis);if(t.connectgaps)for(t._emptypoints=s(x[2]),o(x[2],t._emptypoints),t._interpolatedZ=[],r=0;r&lt;m;r++)for(t._interpolatedZ[r]=[],n=0;n&lt;v;n++)t._interpolatedZ[r][n]=x[2][r][n];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null==(a=x[e][r][n])?x[e][r][n]=NaN:a=x[e][r][n]*=g[e];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null!=(a=x[e][r][n])&amp;&amp;(this.minValues[e]&gt;a&amp;&amp;(this.minValues[e]=a),this.maxValues[e]&lt;a&amp;&amp;(this.maxValues[e]=a));for(e=0;e&lt;3;e++)this.objectOffset[e]=.5*(this.minValues[e]+this.maxValues[e]);for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)null!=(a=x[e][r][n])&amp;&amp;(x[e][r][n]-=this.objectOffset[e]);var b=[i(new Float32Array(m*v),[m,v]),i(new Float32Array(m*v),[m,v]),i(new Float32Array(m*v),[m,v])];for(e=0;e&lt;3;e++)for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)b[e].set(r,n,x[e][r][n]);x=[];var w={colormap:d,levels:[[],[],[]],showContour:[!0,!0,!0],showSurface:!t.hidesurface,contourProject:[[!1,!1,!1],[!1,!1,!1],[!1,!1,!1]],contourWidth:[1,1,1],contourColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],contourTint:[1,1,1],dynamicColor:[[1,1,1,1],[1,1,1,1],[1,1,1,1]],dynamicWidth:[1,1,1],dynamicTint:[1,1,1],opacityscale:t.opacityscale,opacity:t.opacity},T=f(t);if(w.intensityBounds=[T.min,T.max],t.surfacecolor){var k=i(new Float32Array(m*v),[m,v]);for(r=0;r&lt;m;r++)for(n=0;n&lt;v;n++)k.set(r,n,t.surfacecolor[n][r]);b.push(k)}else w.intensityBounds[0]*=g[2],w.intensityBounds[1]*=g[2];(_&lt;b[0].shape[0]||_&lt;b[0].shape[1])&amp;&amp;(this.refineData=!1),!0===this.refineData&amp;&amp;(this.dataScaleX=this.estimateScale(b[0].shape[0],0),this.dataScaleY=this.estimateScale(b[0].shape[1],1),1===this.dataScaleX&amp;&amp;1===this.dataScaleY||this.refineCoords(b)),t.surfacecolor&amp;&amp;(w.intensity=b.pop());var M=[!0,!0,!0],A=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(e=0;e&lt;3;++e){var S=t.contours[A[e]];M[e]=S.highlight,w.showContour[e]=S.show||S.highlight,w.showContour[e]&amp;&amp;(w.contourProject[e]=[S.project.x,S.project.y,S.project.z],S.show?(this.showContour[e]=!0,w.levels[e]=y[e],p.highlightColor[e]=w.contourColor[e]=u(S.color),S.usecolormap?p.highlightTint[e]=w.contourTint[e]=0:p.highlightTint[e]=w.contourTint[e]=1,w.contourWidth[e]=S.width,this.contourStart[e]=S.start,this.contourEnd[e]=S.end,this.contourSize[e]=S.size):(this.showContour[e]=!1,this.contourStart[e]=null,this.contourEnd[e]=null,this.contourSize[e]=0),S.highlight&amp;&amp;(w.dynamicColor[e]=u(S.highlightcolor),w.dynamicWidth[e]=S.highlightwidth))}(function(t){var e=t[0].rgb,r=t[t.length-1].rgb;return e[0]===r[0]&amp;&amp;e[1]===r[1]&amp;&amp;e[2]===r[2]&amp;&amp;e[3]===r[3]})(d)&amp;&amp;(w.vertexColor=!0),w.objectOffset=this.objectOffset,w.coords=b,p.update(w),p.visible=t.visible,p.enableDynamic=M,p.enableHighlight=M,p.snapToData=!0,&quot;lighting&quot;in t&amp;&amp;(p.ambientLight=t.lighting.ambient,p.diffuseLight=t.lighting.diffuse,p.specularLight=t.lighting.specular,p.roughness=t.lighting.roughness,p.fresnel=t.lighting.fresnel),&quot;lightposition&quot;in t&amp;&amp;(p.lightPosition=[t.lightposition.x,t.lightposition.y,t.lightposition.z])},p.dispose=function(){this.scene.glplot.remove(this.surface),this.surface.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new h(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../heatmap/find_empties&quot;:1071,&quot;../heatmap/interp2d&quot;:1074,&quot;gl-surface3d&quot;:351,ndarray:495,&quot;ndarray-linear-interpolate&quot;:489}],1314:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../registry&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/colorscale/defaults&quot;),o=t(&quot;./attributes&quot;);function s(t,e,r,n){var i=n(&quot;opacityscale&quot;);&quot;max&quot;===i?e.opacityscale=[[0,.1],[1,1]]:&quot;min&quot;===i?e.opacityscale=[[0,1],[1,.1]]:&quot;extremes&quot;===i?e.opacityscale=function(t,e){for(var r=[],n=0;n&lt;32;n++){var i=n/31,a=e+(1-e)*(1-Math.pow(Math.sin(t*i*Math.PI),2));r.push([i,Math.max(0,Math.min(1,a))])}return r}(1,.1):function(t){var e=0;if(!Array.isArray(t)||t.length&lt;2)return!1;if(!t[0]||!t[t.length-1])return!1;if(0!=+t[0][0]||1!=+t[t.length-1][0])return!1;for(var r=0;r&lt;t.length;r++){var n=t[r];if(2!==n.length||+n[0]&lt;e)return!1;e=+n[0]}return!0}(i)||(e.opacityscale=void 0)}function l(t,e,r){e in t&amp;&amp;!(r in t)&amp;&amp;(t[r]=t[e])}e.exports={supplyDefaults:function(t,e,r,c){var u,f;function h(r,n){return i.coerce(t,e,o,r,n)}var p=h(&quot;x&quot;),d=h(&quot;y&quot;),g=h(&quot;z&quot;);if(!g||!g.length||p&amp;&amp;p.length&lt;1||d&amp;&amp;d.length&lt;1)e.visible=!1;else{e._xlength=Array.isArray(p)&amp;&amp;i.isArrayOrTypedArray(p[0])?g.length:g[0].length,e._ylength=g.length,n.getComponentMethod(&quot;calendars&quot;,&quot;handleTraceDefaults&quot;)(t,e,[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;],c),h(&quot;text&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;),[&quot;lighting.ambient&quot;,&quot;lighting.diffuse&quot;,&quot;lighting.specular&quot;,&quot;lighting.roughness&quot;,&quot;lighting.fresnel&quot;,&quot;lightposition.x&quot;,&quot;lightposition.y&quot;,&quot;lightposition.z&quot;,&quot;hidesurface&quot;,&quot;connectgaps&quot;,&quot;opacity&quot;].forEach((function(t){h(t)}));var m=h(&quot;surfacecolor&quot;),v=[&quot;x&quot;,&quot;y&quot;,&quot;z&quot;];for(u=0;u&lt;3;++u){var y=&quot;contours.&quot;+v[u],x=h(y+&quot;.show&quot;),b=h(y+&quot;.highlight&quot;);if(x||b)for(f=0;f&lt;3;++f)h(y+&quot;.project.&quot;+v[f]);x&amp;&amp;(h(y+&quot;.color&quot;),h(y+&quot;.width&quot;),h(y+&quot;.usecolormap&quot;)),b&amp;&amp;(h(y+&quot;.highlightcolor&quot;),h(y+&quot;.highlightwidth&quot;)),h(y+&quot;.start&quot;),h(y+&quot;.end&quot;),h(y+&quot;.size&quot;)}m||(l(t,&quot;zmin&quot;,&quot;cmin&quot;),l(t,&quot;zmax&quot;,&quot;cmax&quot;),l(t,&quot;zauto&quot;,&quot;cauto&quot;)),a(t,e,c,h,{prefix:&quot;&quot;,cLetter:&quot;c&quot;}),s(t,e,c,h),e._length=null}},opacityscaleDefaults:s}},{&quot;../../components/colorscale/defaults&quot;:653,&quot;../../lib&quot;:778,&quot;../../registry&quot;:911,&quot;./attributes&quot;:1311}],1315:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},calc:t(&quot;./calc&quot;),plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;surface&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;2dMap&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;./attributes&quot;:1311,&quot;./calc&quot;:1312,&quot;./convert&quot;:1313,&quot;./defaults&quot;:1314}],1316:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/annotations/attributes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;../../plot_api/edit_types&quot;).overrideAll,o=t(&quot;../../plots/font_attributes&quot;),s=t(&quot;../../plots/domain&quot;).attributes;t(&quot;../../constants/docs&quot;).FORMAT_LINK;(e.exports=a({domain:s({name:&quot;table&quot;,trace:!0}),columnwidth:{valType:&quot;number&quot;,arrayOk:!0,dflt:null},columnorder:{valType:&quot;data_array&quot;},header:{values:{valType:&quot;data_array&quot;,dflt:[]},format:{valType:&quot;data_array&quot;,dflt:[]},prefix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},suffix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},height:{valType:&quot;number&quot;,dflt:28},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:&quot;number&quot;,arrayOk:!0,dflt:1},color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;grey&quot;}},fill:{color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;white&quot;}},font:i({},o({arrayOk:!0}))},cells:{values:{valType:&quot;data_array&quot;,dflt:[]},format:{valType:&quot;data_array&quot;,dflt:[]},prefix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},suffix:{valType:&quot;string&quot;,arrayOk:!0,dflt:null},height:{valType:&quot;number&quot;,dflt:20},align:i({},n.align,{arrayOk:!0}),line:{width:{valType:&quot;number&quot;,arrayOk:!0,dflt:1},color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;grey&quot;}},fill:{color:{valType:&quot;color&quot;,arrayOk:!0,dflt:&quot;white&quot;}},font:i({},o({arrayOk:!0}))}},&quot;calc&quot;,&quot;from-root&quot;)).transforms=void 0},{&quot;../../components/annotations/attributes&quot;:626,&quot;../../constants/docs&quot;:748,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/domain&quot;:855,&quot;../../plots/font_attributes&quot;:856}],1317:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/get_data&quot;).getModuleCalcData,i=t(&quot;./plot&quot;);r.name=&quot;table&quot;,r.plot=function(t){var e=n(t.calcdata,&quot;table&quot;)[0];e.length&amp;&amp;i(t,e)},r.clean=function(t,e,r,n){var i=n._has&amp;&amp;n._has(&quot;table&quot;),a=e._has&amp;&amp;e._has(&quot;table&quot;);i&amp;&amp;!a&amp;&amp;n._paperdiv.selectAll(&quot;.table&quot;).remove()}},{&quot;../../plots/get_data&quot;:865,&quot;./plot&quot;:1324}],1318:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/gup&quot;).wrap;e.exports=function(){return n({})}},{&quot;../../lib/gup&quot;:775}],1319:[function(t,e,r){&quot;use strict&quot;;e.exports={cellPad:8,columnExtentOffset:10,columnTitleOffset:28,emptyHeaderHeight:16,latexCheck:/^\$.*\$$/,goldenRatio:1.618,lineBreaker:&quot;&lt;br&gt;&quot;,maxDimensionCount:60,overdrag:45,releaseTransitionDuration:120,releaseTransitionEase:&quot;cubic-out&quot;,scrollbarCaptureWidth:18,scrollbarHideDelay:1e3,scrollbarHideDuration:1e3,scrollbarOffset:5,scrollbarWidth:8,transitionDuration:100,transitionEase:&quot;cubic-out&quot;,uplift:5,wrapSpacer:&quot; &quot;,wrapSplitCharacter:&quot; &quot;,cn:{table:&quot;table&quot;,tableControlView:&quot;table-control-view&quot;,scrollBackground:&quot;scroll-background&quot;,yColumn:&quot;y-column&quot;,columnBlock:&quot;column-block&quot;,scrollAreaClip:&quot;scroll-area-clip&quot;,scrollAreaClipRect:&quot;scroll-area-clip-rect&quot;,columnBoundary:&quot;column-boundary&quot;,columnBoundaryClippath:&quot;column-boundary-clippath&quot;,columnBoundaryRect:&quot;column-boundary-rect&quot;,columnCells:&quot;column-cells&quot;,columnCell:&quot;column-cell&quot;,cellRect:&quot;cell-rect&quot;,cellText:&quot;cell-text&quot;,cellTextHolder:&quot;cell-text-holder&quot;,scrollbarKit:&quot;scrollbar-kit&quot;,scrollbar:&quot;scrollbar&quot;,scrollbarSlider:&quot;scrollbar-slider&quot;,scrollbarGlyph:&quot;scrollbar-glyph&quot;,scrollbarCaptureZone:&quot;scrollbar-capture-zone&quot;}}},{}],1320:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat,a=t(&quot;fast-isnumeric&quot;);function o(t){if(Array.isArray(t)){for(var e=0,r=0;r&lt;t.length;r++)e=Math.max(e,o(t[r]));return e}return t}function s(t,e){return t+e}function l(t){var e,r=t.slice(),n=1/0,i=0;for(e=0;e&lt;r.length;e++)Array.isArray(r[e])||(r[e]=[r[e]]),n=Math.min(n,r[e].length),i=Math.max(i,r[e].length);if(n!==i)for(e=0;e&lt;r.length;e++){var a=i-r[e].length;a&amp;&amp;(r[e]=r[e].concat(c(a)))}return r}function c(t){for(var e=new Array(t),r=0;r&lt;t;r++)e[r]=&quot;&quot;;return e}function u(t){return t.calcdata.columns.reduce((function(e,r){return r.xIndex&lt;t.xIndex?e+r.columnWidth:e}),0)}function f(t,e){return Object.keys(t).map((function(r){return i({},t[r],{auxiliaryBlocks:e})}))}function h(t,e){for(var r,n={},i=0,a=0,o={firstRowIndex:null,lastRowIndex:null,rows:[]},s=0,l=0,c=0;c&lt;t.length;c++)r=t[c],o.rows.push({rowIndex:c,rowHeight:r}),((a+=r)&gt;=e||c===t.length-1)&amp;&amp;(n[i]=o,o.key=l++,o.firstRowIndex=s,o.lastRowIndex=c,o={firstRowIndex:null,lastRowIndex:null,rows:[]},i+=a,s=c+1,a=0);return n}e.exports=function(t,e){var r=l(e.cells.values),p=function(t){return t.slice(e.header.values.length,t.length)},d=l(e.header.values);d.length&amp;&amp;!d[0].length&amp;&amp;(d[0]=[&quot;&quot;],d=l(d));var g=d.concat(p(r).map((function(){return c((d[0]||[&quot;&quot;]).length)}))),m=e.domain,v=Math.floor(t._fullLayout._size.w*(m.x[1]-m.x[0])),y=Math.floor(t._fullLayout._size.h*(m.y[1]-m.y[0])),x=e.header.values.length?g[0].map((function(){return e.header.height})):[n.emptyHeaderHeight],b=r.length?r[0].map((function(){return e.cells.height})):[],_=x.reduce(s,0),w=h(b,y-_+n.uplift),T=f(h(x,_),[]),k=f(w,T),M={},A=e._fullInput.columnorder.concat(p(r.map((function(t,e){return e})))),S=g.map((function(t,r){var n=Array.isArray(e.columnwidth)?e.columnwidth[Math.min(r,e.columnwidth.length-1)]:e.columnwidth;return a(n)?Number(n):1})),E=S.reduce(s,0);S=S.map((function(t){return t/E*v}));var C=Math.max(o(e.header.line.width),o(e.cells.line.width)),L={key:e.uid+t._context.staticPlot,translateX:m.x[0]*t._fullLayout._size.w,translateY:t._fullLayout._size.h*(1-m.y[1]),size:t._fullLayout._size,width:v,maxLineWidth:C,height:y,columnOrder:A,groupHeight:y,rowBlocks:k,headerRowBlocks:T,scrollY:0,cells:i({},e.cells,{values:r}),headerCells:i({},e.header,{values:g}),gdColumns:g.map((function(t){return t[0]})),gdColumnsOriginalOrder:g.map((function(t){return t[0]})),prevPages:[0,0],scrollbarState:{scrollbarScrollInProgress:!1},columns:g.map((function(t,e){var r=M[t];return M[t]=(r||0)+1,{key:t+&quot;__&quot;+M[t],label:t,specIndex:e,xIndex:A[e],xScale:u,x:void 0,calcdata:void 0,columnWidth:S[e]}}))};return L.columns.forEach((function(t){t.calcdata=L,t.x=u(t)})),L}},{&quot;../../lib/extend&quot;:768,&quot;./constants&quot;:1319,&quot;fast-isnumeric&quot;:241}],1321:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib/extend&quot;).extendFlat;r.splitToPanels=function(t){var e=[0,0],r=n({},t,{key:&quot;header&quot;,type:&quot;header&quot;,page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!0,values:t.calcdata.headerCells.values[t.specIndex],rowBlocks:t.calcdata.headerRowBlocks,calcdata:n({},t.calcdata,{cells:t.calcdata.headerCells})});return[n({},t,{key:&quot;cells1&quot;,type:&quot;cells&quot;,page:0,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),n({},t,{key:&quot;cells2&quot;,type:&quot;cells&quot;,page:1,prevPages:e,currentRepaint:[null,null],dragHandle:!1,values:t.calcdata.cells.values[t.specIndex],rowBlocks:t.calcdata.rowBlocks}),r]},r.splitToCells=function(t){var e=function(t){var e=t.rowBlocks[t.page],r=e?e.rows[0].rowIndex:0,n=e?r+e.rows.length:0;return[r,n]}(t);return(t.values||[]).slice(e[0],e[1]).map((function(r,n){return{keyWithinBlock:n+(&quot;string&quot;==typeof r&amp;&amp;r.match(/[&lt;$&amp;&gt; ]/)?&quot;_keybuster_&quot;+Math.random():&quot;&quot;),key:e[0]+n,column:t,calcdata:t.calcdata,page:t.page,rowBlocks:t.rowBlocks,value:r}}))}},{&quot;../../lib/extend&quot;:768}],1322:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../plots/domain&quot;).defaults;e.exports=function(t,e,r,o){function s(r,a){return n.coerce(t,e,i,r,a)}a(e,o,s),s(&quot;columnwidth&quot;),s(&quot;header.values&quot;),s(&quot;header.format&quot;),s(&quot;header.align&quot;),s(&quot;header.prefix&quot;),s(&quot;header.suffix&quot;),s(&quot;header.height&quot;),s(&quot;header.line.width&quot;),s(&quot;header.line.color&quot;),s(&quot;header.fill.color&quot;),n.coerceFont(s,&quot;header.font&quot;,n.extendFlat({},o.font)),function(t,e){for(var r=t.columnorder||[],n=t.header.values.length,i=r.slice(0,n),a=i.slice().sort((function(t,e){return t-e})),o=i.map((function(t){return a.indexOf(t)})),s=o.length;s&lt;n;s++)o.push(s);e(&quot;columnorder&quot;,o)}(e,s),s(&quot;cells.values&quot;),s(&quot;cells.format&quot;),s(&quot;cells.align&quot;),s(&quot;cells.prefix&quot;),s(&quot;cells.suffix&quot;),s(&quot;cells.height&quot;),s(&quot;cells.line.width&quot;),s(&quot;cells.line.color&quot;),s(&quot;cells.fill.color&quot;),n.coerceFont(s,&quot;cells.font&quot;,n.extendFlat({},o.font)),e._length=null}},{&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;./attributes&quot;:1316}],1323:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;./calc&quot;),plot:t(&quot;./plot&quot;),moduleType:&quot;trace&quot;,name:&quot;table&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[&quot;noOpacity&quot;],meta:{}}},{&quot;./attributes&quot;:1316,&quot;./base_plot&quot;:1317,&quot;./calc&quot;:1318,&quot;./defaults&quot;:1322,&quot;./plot&quot;:1324}],1324:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;./constants&quot;),i=t(&quot;d3&quot;),a=t(&quot;../../lib/gup&quot;),o=t(&quot;../../components/drawing&quot;),s=t(&quot;../../lib/svg_text_utils&quot;),l=t(&quot;../../lib&quot;).raiseToTop,c=t(&quot;../../lib&quot;).strTranslate,u=t(&quot;../../lib&quot;).cancelTransition,f=t(&quot;./data_preparation_helper&quot;),h=t(&quot;./data_split_helpers&quot;),p=t(&quot;../../components/color&quot;);function d(t){return Math.ceil(t.calcdata.maxLineWidth/2)}function g(t,e){return&quot;clip&quot;+t._fullLayout._uid+&quot;_scrollAreaBottomClip_&quot;+e.key}function m(t,e){return&quot;clip&quot;+t._fullLayout._uid+&quot;_columnBoundaryClippath_&quot;+e.calcdata.key+&quot;_&quot;+e.specIndex}function v(t){return[].concat.apply([],t.map((function(t){return t}))).map((function(t){return t.__data__}))}function y(t,e,r){var o=t.selectAll(&quot;.&quot;+n.cn.scrollbarKit).data(a.repeat,a.keyFun);o.enter().append(&quot;g&quot;).classed(n.cn.scrollbarKit,!0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;),o.each((function(t){var e=t.scrollbarState;e.totalHeight=function(t){var e=t.rowBlocks;return O(e,e.length-1)+(e.length?D(e[e.length-1],1/0):1)}(t),e.scrollableAreaHeight=t.groupHeight-A(t),e.currentlyVisibleHeight=Math.min(e.totalHeight,e.scrollableAreaHeight),e.ratio=e.currentlyVisibleHeight/e.totalHeight,e.barLength=Math.max(e.ratio*e.currentlyVisibleHeight,n.goldenRatio*n.scrollbarWidth),e.barWiggleRoom=e.currentlyVisibleHeight-e.barLength,e.wiggleRoom=Math.max(0,e.totalHeight-e.scrollableAreaHeight),e.topY=0===e.barWiggleRoom?0:t.scrollY/e.wiggleRoom*e.barWiggleRoom,e.bottomY=e.topY+e.barLength,e.dragMultiplier=e.wiggleRoom/e.barWiggleRoom})).attr(&quot;transform&quot;,(function(t){var e=t.width+n.scrollbarWidth/2+n.scrollbarOffset;return c(e,A(t))}));var s=o.selectAll(&quot;.&quot;+n.cn.scrollbar).data(a.repeat,a.keyFun);s.enter().append(&quot;g&quot;).classed(n.cn.scrollbar,!0);var l=s.selectAll(&quot;.&quot;+n.cn.scrollbarSlider).data(a.repeat,a.keyFun);l.enter().append(&quot;g&quot;).classed(n.cn.scrollbarSlider,!0),l.attr(&quot;transform&quot;,(function(t){return c(0,t.scrollbarState.topY||0)}));var u=l.selectAll(&quot;.&quot;+n.cn.scrollbarGlyph).data(a.repeat,a.keyFun);u.enter().append(&quot;line&quot;).classed(n.cn.scrollbarGlyph,!0).attr(&quot;stroke&quot;,&quot;black&quot;).attr(&quot;stroke-width&quot;,n.scrollbarWidth).attr(&quot;stroke-linecap&quot;,&quot;round&quot;).attr(&quot;y1&quot;,n.scrollbarWidth/2),u.attr(&quot;y2&quot;,(function(t){return t.scrollbarState.barLength-n.scrollbarWidth/2})).attr(&quot;stroke-opacity&quot;,(function(t){return t.columnDragInProgress||!t.scrollbarState.barWiggleRoom||r?0:.4})),u.transition().delay(0).duration(0),u.transition().delay(n.scrollbarHideDelay).duration(n.scrollbarHideDuration).attr(&quot;stroke-opacity&quot;,0);var f=s.selectAll(&quot;.&quot;+n.cn.scrollbarCaptureZone).data(a.repeat,a.keyFun);f.enter().append(&quot;line&quot;).classed(n.cn.scrollbarCaptureZone,!0).attr(&quot;stroke&quot;,&quot;white&quot;).attr(&quot;stroke-opacity&quot;,.01).attr(&quot;stroke-width&quot;,n.scrollbarCaptureWidth).attr(&quot;stroke-linecap&quot;,&quot;butt&quot;).attr(&quot;y1&quot;,0).on(&quot;mousedown&quot;,(function(r){var n=i.event.y,a=this.getBoundingClientRect(),o=r.scrollbarState,s=n-a.top,l=i.scale.linear().domain([0,o.scrollableAreaHeight]).range([0,o.totalHeight]).clamp(!0);o.topY&lt;=s&amp;&amp;s&lt;=o.bottomY||E(e,t,null,l(s-o.barLength/2))(r)})).call(i.behavior.drag().origin((function(t){return i.event.stopPropagation(),t.scrollbarState.scrollbarScrollInProgress=!0,t})).on(&quot;drag&quot;,E(e,t)).on(&quot;dragend&quot;,(function(){}))),f.attr(&quot;y2&quot;,(function(t){return t.scrollbarState.scrollableAreaHeight})),e._context.staticPlot&amp;&amp;(u.remove(),f.remove())}function x(t,e,r,s){var l=function(t){var e=t.selectAll(&quot;.&quot;+n.cn.columnCell).data(h.splitToCells,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;g&quot;).classed(n.cn.columnCell,!0),e.exit().remove(),e}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.columnCells).data(a.repeat,a.keyFun);return e.enter().append(&quot;g&quot;).classed(n.cn.columnCells,!0),e.exit().remove(),e}(r));!function(t){t.each((function(t,e){var r=t.calcdata.cells.font,n=t.column.specIndex,i={size:w(r.size,n,e),color:w(r.color,n,e),family:w(r.family,n,e)};t.rowNumber=t.key,t.align=w(t.calcdata.cells.align,n,e),t.cellBorderWidth=w(t.calcdata.cells.line.width,n,e),t.font=i}))}(l),function(t){t.attr(&quot;width&quot;,(function(t){return t.column.columnWidth})).attr(&quot;stroke-width&quot;,(function(t){return t.cellBorderWidth})).each((function(t){var e=i.select(this);p.stroke(e,w(t.calcdata.cells.line.color,t.column.specIndex,t.rowNumber)),p.fill(e,w(t.calcdata.cells.fill.color,t.column.specIndex,t.rowNumber))}))}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellRect).data(a.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;rect&quot;).classed(n.cn.cellRect,!0),e}(l));var c=function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellText).data(a.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;text&quot;).classed(n.cn.cellText,!0).style(&quot;cursor&quot;,(function(){return&quot;auto&quot;})).on(&quot;mousedown&quot;,(function(){i.event.stopPropagation()})),e}(function(t){var e=t.selectAll(&quot;.&quot;+n.cn.cellTextHolder).data(a.repeat,(function(t){return t.keyWithinBlock}));return e.enter().append(&quot;g&quot;).classed(n.cn.cellTextHolder,!0).style(&quot;shape-rendering&quot;,&quot;geometricPrecision&quot;),e}(l));!function(t){t.each((function(t){o.font(i.select(this),t.font)}))}(c),b(c,e,s,t),z(l)}function b(t,e,r,a){t.text((function(t){var e=t.column.specIndex,r=t.rowNumber,a=t.value,o=&quot;string&quot;==typeof a,s=o&amp;&amp;a.match(/&lt;br&gt;/i),l=!o||s;t.mayHaveMarkup=o&amp;&amp;a.match(/[&lt;&amp;&gt;]/);var c,u=&quot;string&quot;==typeof(c=a)&amp;&amp;c.match(n.latexCheck);t.latex=u;var f,h,p=u?&quot;&quot;:w(t.calcdata.cells.prefix,e,r)||&quot;&quot;,d=u?&quot;&quot;:w(t.calcdata.cells.suffix,e,r)||&quot;&quot;,g=u?null:w(t.calcdata.cells.format,e,r)||null,m=p+(g?i.format(g)(t.value):t.value)+d;if(t.wrappingNeeded=!t.wrapped&amp;&amp;!l&amp;&amp;!u&amp;&amp;(f=_(m)),t.cellHeightMayIncrease=s||u||t.mayHaveMarkup||(void 0===f?_(m):f),t.needsConvertToTspans=t.mayHaveMarkup||t.wrappingNeeded||t.latex,t.wrappingNeeded){var v=(&quot; &quot;===n.wrapSplitCharacter?m.replace(/&lt;a href=/gi,&quot;&lt;a_href=&quot;):m).split(n.wrapSplitCharacter),y=&quot; &quot;===n.wrapSplitCharacter?v.map((function(t){return t.replace(/&lt;a_href=/gi,&quot;&lt;a href=&quot;)})):v;t.fragments=y.map((function(t){return{text:t,width:null}})),t.fragments.push({fragment:n.wrapSpacer,width:null}),h=y.join(n.lineBreaker)+n.lineBreaker+n.wrapSpacer}else delete t.fragments,h=m;return h})).attr(&quot;dy&quot;,(function(t){return t.needsConvertToTspans?0:&quot;0.75em&quot;})).each((function(t){var o=i.select(this),l=t.wrappingNeeded?L:I;t.needsConvertToTspans?s.convertToTspans(o,a,l(r,this,e,a,t)):i.select(this.parentNode).attr(&quot;transform&quot;,(function(t){return c(P(t),n.cellPad)})).attr(&quot;text-anchor&quot;,(function(t){return{left:&quot;start&quot;,center:&quot;middle&quot;,right:&quot;end&quot;}[t.align]}))}))}function _(t){return-1!==t.indexOf(n.wrapSplitCharacter)}function w(t,e,r){if(Array.isArray(t)){var n=t[Math.min(e,t.length-1)];return Array.isArray(n)?n[Math.min(r,n.length-1)]:n}return t}function T(t,e,r){t.transition().ease(n.releaseTransitionEase).duration(n.releaseTransitionDuration).attr(&quot;transform&quot;,c(e.x,r))}function k(t){return&quot;cells&quot;===t.type}function M(t){return&quot;header&quot;===t.type}function A(t){return(t.rowBlocks.length?t.rowBlocks[0].auxiliaryBlocks:[]).reduce((function(t,e){return t+D(e,1/0)}),0)}function S(t,e,r){var n=v(e)[0];if(void 0!==n){var i=n.rowBlocks,a=n.calcdata,o=O(i,i.length),s=n.calcdata.groupHeight-A(n),l=a.scrollY=Math.max(0,Math.min(o-s,a.scrollY)),u=function(t,e,r){for(var n=[],i=0,a=0;a&lt;t.length;a++){for(var o=t[a],s=o.rows,l=0,c=0;c&lt;s.length;c++)l+=s[c].rowHeight;o.allRowsHeight=l;e&lt;i+l&amp;&amp;e+r&gt;i&amp;&amp;n.push(a),i+=l}return n}(i,l,s);1===u.length&amp;&amp;(u[0]===i.length-1?u.unshift(u[0]-1):u.push(u[0]+1)),u[0]%2&amp;&amp;u.reverse(),e.each((function(t,e){t.page=u[e],t.scrollY=l})),e.attr(&quot;transform&quot;,(function(t){var e=O(t.rowBlocks,t.page)-t.scrollY;return c(0,e)})),t&amp;&amp;(C(t,r,e,u,n.prevPages,n,0),C(t,r,e,u,n.prevPages,n,1),y(r,t))}}function E(t,e,r,a){return function(o){var s=o.calcdata?o.calcdata:o,l=e.filter((function(t){return s.key===t.key})),c=r||s.scrollbarState.dragMultiplier,u=s.scrollY;s.scrollY=void 0===a?s.scrollY+c*i.event.dy:a;var f=l.selectAll(&quot;.&quot;+n.cn.yColumn).selectAll(&quot;.&quot;+n.cn.columnBlock).filter(k);return S(t,f,l),s.scrollY===u}}function C(t,e,r,n,i,a,o){n[o]!==i[o]&amp;&amp;(clearTimeout(a.currentRepaint[o]),a.currentRepaint[o]=setTimeout((function(){var a=r.filter((function(t,e){return e===o&amp;&amp;n[e]!==i[e]}));x(t,e,a,r),i[o]=n[o]})))}function L(t,e,r,a){return function(){var o=i.select(e.parentNode);o.each((function(t){var e=t.fragments;o.selectAll(&quot;tspan.line&quot;).each((function(t,r){e[r].width=this.getComputedTextLength()}));var r,i,a=e[e.length-1].width,s=e.slice(0,-1),l=[],c=0,u=t.column.columnWidth-2*n.cellPad;for(t.value=&quot;&quot;;s.length;)c+(i=(r=s.shift()).width+a)&gt;u&amp;&amp;(t.value+=l.join(n.wrapSpacer)+n.lineBreaker,l=[],c=0),l.push(r.text),c+=i;c&amp;&amp;(t.value+=l.join(n.wrapSpacer)),t.wrapped=!0})),o.selectAll(&quot;tspan.line&quot;).remove(),b(o.select(&quot;.&quot;+n.cn.cellText),r,t,a),i.select(e.parentNode.parentNode).call(z)}}function I(t,e,r,a,o){return function(){if(!o.settledY){var s=i.select(e.parentNode),l=F(o),u=o.key-l.firstRowIndex,f=l.rows[u].rowHeight,h=o.cellHeightMayIncrease?e.parentNode.getBoundingClientRect().height+2*n.cellPad:f,p=Math.max(h,f);p-l.rows[u].rowHeight&amp;&amp;(l.rows[u].rowHeight=p,t.selectAll(&quot;.&quot;+n.cn.columnCell).call(z),S(null,t.filter(k),0),y(r,a,!0)),s.attr(&quot;transform&quot;,(function(){var t=this.parentNode.getBoundingClientRect(),e=i.select(this.parentNode).select(&quot;.&quot;+n.cn.cellRect).node().getBoundingClientRect(),r=this.transform.baseVal.consolidate(),a=e.top-t.top+(r?r.matrix.f:n.cellPad);return c(P(o,i.select(this.parentNode).select(&quot;.&quot;+n.cn.cellTextHolder).node().getBoundingClientRect().width),a)})),o.settledY=!0}}}function P(t,e){switch(t.align){case&quot;left&quot;:return n.cellPad;case&quot;right&quot;:return t.column.columnWidth-(e||0)-n.cellPad;case&quot;center&quot;:return(t.column.columnWidth-(e||0))/2;default:return n.cellPad}}function z(t){t.attr(&quot;transform&quot;,(function(t){var e=t.rowBlocks[0].auxiliaryBlocks.reduce((function(t,e){return t+D(e,1/0)}),0),r=D(F(t),t.key);return c(0,r+e)})).selectAll(&quot;.&quot;+n.cn.cellRect).attr(&quot;height&quot;,(function(t){return(e=F(t),r=t.key,e.rows[r-e.firstRowIndex]).rowHeight;var e,r}))}function O(t,e){for(var r=0,n=e-1;n&gt;=0;n--)r+=R(t[n]);return r}function D(t,e){for(var r=0,n=0;n&lt;t.rows.length&amp;&amp;t.rows[n].rowIndex&lt;e;n++)r+=t.rows[n].rowHeight;return r}function R(t){var e=t.allRowsHeight;if(void 0!==e)return e;for(var r=0,n=0;n&lt;t.rows.length;n++)r+=t.rows[n].rowHeight;return t.allRowsHeight=r,r}function F(t){return t.rowBlocks[t.page]}e.exports=function(t,e){var r=!t._context.staticPlot,s=t._fullLayout._paper.selectAll(&quot;.&quot;+n.cn.table).data(e.map((function(e){var r=a.unwrap(e).trace;return f(t,r)})),a.keyFun);s.exit().remove(),s.enter().append(&quot;g&quot;).classed(n.cn.table,!0).attr(&quot;overflow&quot;,&quot;visible&quot;).style(&quot;box-sizing&quot;,&quot;content-box&quot;).style(&quot;position&quot;,&quot;absolute&quot;).style(&quot;left&quot;,0).style(&quot;overflow&quot;,&quot;visible&quot;).style(&quot;shape-rendering&quot;,&quot;crispEdges&quot;).style(&quot;pointer-events&quot;,&quot;all&quot;),s.attr(&quot;width&quot;,(function(t){return t.width+t.size.l+t.size.r})).attr(&quot;height&quot;,(function(t){return t.height+t.size.t+t.size.b})).attr(&quot;transform&quot;,(function(t){return c(t.translateX,t.translateY)}));var p=s.selectAll(&quot;.&quot;+n.cn.tableControlView).data(a.repeat,a.keyFun),b=p.enter().append(&quot;g&quot;).classed(n.cn.tableControlView,!0).style(&quot;box-sizing&quot;,&quot;content-box&quot;);if(r){var _=&quot;onwheel&quot;in document?&quot;wheel&quot;:&quot;mousewheel&quot;;b.on(&quot;mousemove&quot;,(function(e){p.filter((function(t){return e===t})).call(y,t)})).on(_,(function(e){if(!e.scrollbarState.wheeling){e.scrollbarState.wheeling=!0;var r=e.scrollY+i.event.deltaY;E(t,p,null,r)(e)||(i.event.stopPropagation(),i.event.preventDefault()),e.scrollbarState.wheeling=!1}})).call(y,t,!0)}p.attr(&quot;transform&quot;,(function(t){return c(t.size.l,t.size.t)}));var w=p.selectAll(&quot;.&quot;+n.cn.scrollBackground).data(a.repeat,a.keyFun);w.enter().append(&quot;rect&quot;).classed(n.cn.scrollBackground,!0).attr(&quot;fill&quot;,&quot;none&quot;),w.attr(&quot;width&quot;,(function(t){return t.width})).attr(&quot;height&quot;,(function(t){return t.height})),p.each((function(e){o.setClipUrl(i.select(this),g(t,e),t)}));var A=p.selectAll(&quot;.&quot;+n.cn.yColumn).data((function(t){return t.columns}),a.keyFun);A.enter().append(&quot;g&quot;).classed(n.cn.yColumn,!0),A.exit().remove(),A.attr(&quot;transform&quot;,(function(t){return c(t.x,0)})),r&amp;&amp;A.call(i.behavior.drag().origin((function(e){return T(i.select(this),e,-n.uplift),l(this),e.calcdata.columnDragInProgress=!0,y(p.filter((function(t){return e.calcdata.key===t.key})),t),e})).on(&quot;drag&quot;,(function(t){var e=i.select(this),r=function(e){return(t===e?i.event.x:e.x)+e.columnWidth/2};t.x=Math.max(-n.overdrag,Math.min(t.calcdata.width+n.overdrag-t.columnWidth,i.event.x)),v(A).filter((function(e){return e.calcdata.key===t.calcdata.key})).sort((function(t,e){return r(t)-r(e)})).forEach((function(e,r){e.xIndex=r,e.x=t===e?e.x:e.xScale(e)})),A.filter((function(e){return t!==e})).transition().ease(n.transitionEase).duration(n.transitionDuration).attr(&quot;transform&quot;,(function(t){return c(t.x,0)})),e.call(u).attr(&quot;transform&quot;,c(t.x,-n.uplift))})).on(&quot;dragend&quot;,(function(e){var r=i.select(this),n=e.calcdata;e.x=e.xScale(e),e.calcdata.columnDragInProgress=!1,T(r,e,0),function(t,e,r){var n=e.gdColumnsOriginalOrder;e.gdColumns.sort((function(t,e){return r[n.indexOf(t)]-r[n.indexOf(e)]})),e.columnorder=r,t.emit(&quot;plotly_restyle&quot;)}(t,n,n.columns.map((function(t){return t.xIndex})))}))),A.each((function(e){o.setClipUrl(i.select(this),m(t,e),t)}));var C=A.selectAll(&quot;.&quot;+n.cn.columnBlock).data(h.splitToPanels,a.keyFun);C.enter().append(&quot;g&quot;).classed(n.cn.columnBlock,!0).attr(&quot;id&quot;,(function(t){return t.key})),C.style(&quot;cursor&quot;,(function(t){return t.dragHandle?&quot;ew-resize&quot;:t.calcdata.scrollbarState.barWiggleRoom?&quot;ns-resize&quot;:&quot;default&quot;}));var L=C.filter(M),I=C.filter(k);r&amp;&amp;I.call(i.behavior.drag().origin((function(t){return i.event.stopPropagation(),t})).on(&quot;drag&quot;,E(t,p,-1)).on(&quot;dragend&quot;,(function(){}))),x(t,p,L,C),x(t,p,I,C);var P=p.selectAll(&quot;.&quot;+n.cn.scrollAreaClip).data(a.repeat,a.keyFun);P.enter().append(&quot;clipPath&quot;).classed(n.cn.scrollAreaClip,!0).attr(&quot;id&quot;,(function(e){return g(t,e)}));var z=P.selectAll(&quot;.&quot;+n.cn.scrollAreaClipRect).data(a.repeat,a.keyFun);z.enter().append(&quot;rect&quot;).classed(n.cn.scrollAreaClipRect,!0).attr(&quot;x&quot;,-n.overdrag).attr(&quot;y&quot;,-n.uplift).attr(&quot;fill&quot;,&quot;none&quot;),z.attr(&quot;width&quot;,(function(t){return t.width+2*n.overdrag})).attr(&quot;height&quot;,(function(t){return t.height+n.uplift})),A.selectAll(&quot;.&quot;+n.cn.columnBoundary).data(a.repeat,a.keyFun).enter().append(&quot;g&quot;).classed(n.cn.columnBoundary,!0);var O=A.selectAll(&quot;.&quot;+n.cn.columnBoundaryClippath).data(a.repeat,a.keyFun);O.enter().append(&quot;clipPath&quot;).classed(n.cn.columnBoundaryClippath,!0),O.attr(&quot;id&quot;,(function(e){return m(t,e)}));var D=O.selectAll(&quot;.&quot;+n.cn.columnBoundaryRect).data(a.repeat,a.keyFun);D.enter().append(&quot;rect&quot;).classed(n.cn.columnBoundaryRect,!0).attr(&quot;fill&quot;,&quot;none&quot;),D.attr(&quot;width&quot;,(function(t){return t.columnWidth+2*d(t)})).attr(&quot;height&quot;,(function(t){return t.calcdata.height+2*d(t)+n.uplift})).attr(&quot;x&quot;,(function(t){return-d(t)})).attr(&quot;y&quot;,(function(t){return-d(t)})),S(null,I,p)}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/gup&quot;:775,&quot;../../lib/svg_text_utils&quot;:803,&quot;./constants&quot;:1319,&quot;./data_preparation_helper&quot;:1320,&quot;./data_split_helpers&quot;:1321,d3:169}],1325:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,i=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,a=t(&quot;../../components/colorscale/attributes&quot;),o=t(&quot;../../plots/domain&quot;).attributes,s=t(&quot;../pie/attributes&quot;),l=t(&quot;../sunburst/attributes&quot;),c=t(&quot;./constants&quot;),u=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={labels:l.labels,parents:l.parents,values:l.values,branchvalues:l.branchvalues,count:l.count,level:l.level,maxdepth:l.maxdepth,tiling:{packing:{valType:&quot;enumerated&quot;,values:[&quot;squarify&quot;,&quot;binary&quot;,&quot;dice&quot;,&quot;slice&quot;,&quot;slice-dice&quot;,&quot;dice-slice&quot;],dflt:&quot;squarify&quot;,editType:&quot;plot&quot;},squarifyratio:{valType:&quot;number&quot;,min:1,dflt:1,editType:&quot;plot&quot;},flip:{valType:&quot;flaglist&quot;,flags:[&quot;x&quot;,&quot;y&quot;],dflt:&quot;&quot;,editType:&quot;plot&quot;},pad:{valType:&quot;number&quot;,min:0,dflt:3,editType:&quot;plot&quot;},editType:&quot;calc&quot;},marker:u({pad:{t:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},l:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},r:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},b:{valType:&quot;number&quot;,min:0,editType:&quot;plot&quot;},editType:&quot;calc&quot;},colors:l.marker.colors,depthfade:{valType:&quot;enumerated&quot;,values:[!0,!1,&quot;reversed&quot;],editType:&quot;style&quot;},line:l.marker.line,editType:&quot;calc&quot;},a(&quot;marker&quot;,{colorAttr:&quot;colors&quot;,anim:!1})),pathbar:{visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;top&quot;,&quot;bottom&quot;],dflt:&quot;top&quot;,editType:&quot;plot&quot;},edgeshape:{valType:&quot;enumerated&quot;,values:[&quot;&gt;&quot;,&quot;&lt;&quot;,&quot;|&quot;,&quot;/&quot;,&quot;\\&quot;],dflt:&quot;&gt;&quot;,editType:&quot;plot&quot;},thickness:{valType:&quot;number&quot;,min:12,editType:&quot;plot&quot;},textfont:u({},s.textfont,{}),editType:&quot;calc&quot;},text:s.text,textinfo:l.textinfo,texttemplate:i({editType:&quot;plot&quot;},{keys:c.eventDataKeys.concat([&quot;label&quot;,&quot;value&quot;])}),hovertext:s.hovertext,hoverinfo:l.hoverinfo,hovertemplate:n({},{keys:c.eventDataKeys}),textfont:s.textfont,insidetextfont:s.insidetextfont,outsidetextfont:u({},s.outsidetextfont,{}),textposition:{valType:&quot;enumerated&quot;,values:[&quot;top left&quot;,&quot;top center&quot;,&quot;top right&quot;,&quot;middle left&quot;,&quot;middle center&quot;,&quot;middle right&quot;,&quot;bottom left&quot;,&quot;bottom center&quot;,&quot;bottom right&quot;],dflt:&quot;top left&quot;,editType:&quot;plot&quot;},sort:s.sort,root:l.root,domain:o({name:&quot;treemap&quot;,trace:!0,editType:&quot;calc&quot;})}},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plots/domain&quot;:855,&quot;../../plots/template_attributes&quot;:906,&quot;../pie/attributes&quot;:1161,&quot;../sunburst/attributes&quot;:1299,&quot;./constants&quot;:1328}],1326:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/plots&quot;);r.name=&quot;treemap&quot;,r.plot=function(t,e,i,a){n.plotBasePlot(r.name,t,e,i,a)},r.clean=function(t,e,i,a){n.cleanBasePlot(r.name,t,e,i,a)}},{&quot;../../plots/plots&quot;:891}],1327:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../sunburst/calc&quot;);r.calc=function(t,e){return n.calc(t,e)},r.crossTraceCalc=function(t){return n._runCrossTraceCalc(&quot;treemap&quot;,t)}},{&quot;../sunburst/calc&quot;:1301}],1328:[function(t,e,r){&quot;use strict&quot;;e.exports={CLICK_TRANSITION_TIME:750,CLICK_TRANSITION_EASING:&quot;poly&quot;,eventDataKeys:[&quot;currentPath&quot;,&quot;root&quot;,&quot;entry&quot;,&quot;percentRoot&quot;,&quot;percentEntry&quot;,&quot;percentParent&quot;],gapWithPathbar:1}},{}],1329:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../plots/domain&quot;).defaults,s=t(&quot;../bar/defaults&quot;).handleText,l=t(&quot;../bar/constants&quot;).TEXTPAD,c=t(&quot;../../components/colorscale&quot;),u=c.hasColorscale,f=c.handleDefaults;e.exports=function(t,e,r,c){function h(r,a){return n.coerce(t,e,i,r,a)}var p=h(&quot;labels&quot;),d=h(&quot;parents&quot;);if(p&amp;&amp;p.length&amp;&amp;d&amp;&amp;d.length){var g=h(&quot;values&quot;);g&amp;&amp;g.length?h(&quot;branchvalues&quot;):h(&quot;count&quot;),h(&quot;level&quot;),h(&quot;maxdepth&quot;),&quot;squarify&quot;===h(&quot;tiling.packing&quot;)&amp;&amp;h(&quot;tiling.squarifyratio&quot;),h(&quot;tiling.flip&quot;),h(&quot;tiling.pad&quot;);var m=h(&quot;text&quot;);h(&quot;texttemplate&quot;),e.texttemplate||h(&quot;textinfo&quot;,Array.isArray(m)?&quot;text+label&quot;:&quot;label&quot;),h(&quot;hovertext&quot;),h(&quot;hovertemplate&quot;);var v=h(&quot;pathbar.visible&quot;);s(t,e,c,h,&quot;auto&quot;,{hasPathbar:v,moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!1,moduleHasCliponaxis:!1,moduleHasTextangle:!1,moduleHasInsideanchor:!1}),h(&quot;textposition&quot;);var y=-1!==e.textposition.indexOf(&quot;bottom&quot;);h(&quot;marker.line.width&quot;)&amp;&amp;h(&quot;marker.line.color&quot;,c.paper_bgcolor);var x=h(&quot;marker.colors&quot;),b=e._hasColorscale=u(t,&quot;marker&quot;,&quot;colors&quot;)||(t.marker||{}).coloraxis;b?f(t,e,c,h,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}):h(&quot;marker.depthfade&quot;,!(x||[]).length);var _=2*e.textfont.size;h(&quot;marker.pad.t&quot;,y?_/4:_),h(&quot;marker.pad.l&quot;,_/4),h(&quot;marker.pad.r&quot;,_/4),h(&quot;marker.pad.b&quot;,y?_:_/4),b&amp;&amp;f(t,e,c,h,{prefix:&quot;marker.&quot;,cLetter:&quot;c&quot;}),e._hovered={marker:{line:{width:2,color:a.contrast(c.paper_bgcolor)}}},v&amp;&amp;(h(&quot;pathbar.thickness&quot;,e.pathbar.textfont.size+2*l),h(&quot;pathbar.side&quot;),h(&quot;pathbar.edgeshape&quot;)),h(&quot;sort&quot;),h(&quot;root.color&quot;),o(e,c,h),e._length=null}else e.visible=!1}},{&quot;../../components/color&quot;:643,&quot;../../components/colorscale&quot;:655,&quot;../../lib&quot;:778,&quot;../../plots/domain&quot;:855,&quot;../bar/constants&quot;:923,&quot;../bar/defaults&quot;:925,&quot;./attributes&quot;:1325}],1330:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;./constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;);e.exports=function(t,e,r,h,p){var d=p.barDifY,g=p.width,m=p.height,v=p.viewX,y=p.viewY,x=p.pathSlice,b=p.toMoveInsideSlice,_=p.strTransform,w=p.hasTransition,T=p.handleSlicesExit,k=p.makeUpdateSliceInterpolator,M=p.makeUpdateTextInterpolator,A={},S=t._fullLayout,E=e[0],C=E.trace,L=E.hierarchy,I=g/C._entryDepth,P=u.listPath(r.data,&quot;id&quot;),z=s(L.copy(),[g,m],{packing:&quot;dice&quot;,pad:{inner:0,top:0,left:0,right:0,bottom:0}}).descendants();(z=z.filter((function(t){var e=P.indexOf(t.data.id);return-1!==e&amp;&amp;(t.x0=I*e,t.x1=I*(e+1),t.y0=d,t.y1=d+m,t.onPathbar=!0,!0)}))).reverse(),(h=h.data(z,u.getPtId)).enter().append(&quot;g&quot;).classed(&quot;pathbar&quot;,!0),T(h,!0,A,[g,m],x),h.order();var O=h;w&amp;&amp;(O=O.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:!1})}))),O.each((function(s){s._hoverX=v(s.x1-Math.min(g,m)/2),s._hoverY=y(s.y1-m/2);var h=n.select(this),p=i.ensureSingle(h,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?p.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!0,A,[g,m]);return function(t){return x(e(t))}})):p.attr(&quot;d&quot;,x),h.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{hideOnRoot:!1,hideOnLeaves:!1,isTransitioning:t._transitioning}),p.call(l,s,C,{hovered:!1}),s._text=(u.getPtLabel(s)||&quot;&quot;).split(&quot;&lt;br&gt;&quot;).join(&quot; &quot;)||&quot;&quot;;var d=i.ensureSingle(h,&quot;g&quot;,&quot;slicetext&quot;),T=i.ensureSingle(d,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),E=i.ensureUniformFontSize(t,u.determineTextFont(C,s,S.font,{onPathbar:!0}));T.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,&quot;start&quot;).call(a.font,E).call(o.convertToTspans,t),s.textBB=a.bBox(T.node()),s.transform=b(s,{fontSize:E.size,onPathbar:!0}),s.transform.fontSize=E.size,w?T.transition().attrTween(&quot;transform&quot;,(function(t){var e=M(t,!0,A,[g,m]);return function(t){return _(e(t))}})):T.attr(&quot;transform&quot;,_(s))}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../sunburst/fx&quot;:1304,&quot;../sunburst/helpers&quot;:1305,&quot;./constants&quot;:1328,&quot;./partition&quot;:1335,&quot;./style&quot;:1337,d3:169}],1331:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../lib/svg_text_utils&quot;),s=t(&quot;./partition&quot;),l=t(&quot;./style&quot;).styleOne,c=t(&quot;./constants&quot;),u=t(&quot;../sunburst/helpers&quot;),f=t(&quot;../sunburst/fx&quot;),h=t(&quot;../sunburst/plot&quot;).formatSliceLabel;e.exports=function(t,e,r,p,d){var g=d.width,m=d.height,v=d.viewX,y=d.viewY,x=d.pathSlice,b=d.toMoveInsideSlice,_=d.strTransform,w=d.hasTransition,T=d.handleSlicesExit,k=d.makeUpdateSliceInterpolator,M=d.makeUpdateTextInterpolator,A=d.prevEntry,S=t._fullLayout,E=e[0].trace,C=-1!==E.textposition.indexOf(&quot;left&quot;),L=-1!==E.textposition.indexOf(&quot;right&quot;),I=-1!==E.textposition.indexOf(&quot;bottom&quot;),P=!I&amp;&amp;!E.marker.pad.t||I&amp;&amp;!E.marker.pad.b,z=s(r,[g,m],{packing:E.tiling.packing,squarifyratio:E.tiling.squarifyratio,flipX:E.tiling.flip.indexOf(&quot;x&quot;)&gt;-1,flipY:E.tiling.flip.indexOf(&quot;y&quot;)&gt;-1,pad:{inner:E.tiling.pad,top:E.marker.pad.t,left:E.marker.pad.l,right:E.marker.pad.r,bottom:E.marker.pad.b}}).descendants(),O=1/0,D=-1/0;z.forEach((function(t){var e=t.depth;e&gt;=E._maxDepth?(t.x0=t.x1=(t.x0+t.x1)/2,t.y0=t.y1=(t.y0+t.y1)/2):(O=Math.min(O,e),D=Math.max(D,e))})),p=p.data(z,u.getPtId),E._maxVisibleLayers=isFinite(D)?D-O+1:0,p.enter().append(&quot;g&quot;).classed(&quot;slice&quot;,!0),T(p,!1,{},[g,m],x),p.order();var R=null;if(w&amp;&amp;A){var F=u.getPtId(A);p.each((function(t){null===R&amp;&amp;u.getPtId(t)===F&amp;&amp;(R={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})}))}var B=function(){return R||{x0:0,x1:g,y0:0,y1:m}},N=p;return w&amp;&amp;(N=N.transition().each(&quot;end&quot;,(function(){var e=n.select(this);u.setSliceCursor(e,t,{hideOnRoot:!0,hideOnLeaves:!1,isTransitioning:!1})}))),N.each((function(s){var p=u.isHeader(s,E);s._hoverX=v(s.x1-E.marker.pad.r),s._hoverY=y(I?s.y1-E.marker.pad.b/2:s.y0+E.marker.pad.t/2);var d=n.select(this),T=i.ensureSingle(d,&quot;path&quot;,&quot;surface&quot;,(function(t){t.style(&quot;pointer-events&quot;,&quot;all&quot;)}));w?T.transition().attrTween(&quot;d&quot;,(function(t){var e=k(t,!1,B(),[g,m]);return function(t){return x(e(t))}})):T.attr(&quot;d&quot;,x),d.call(f,r,t,e,{styleOne:l,eventDataKeys:c.eventDataKeys,transitionTime:c.CLICK_TRANSITION_TIME,transitionEasing:c.CLICK_TRANSITION_EASING}).call(u.setSliceCursor,t,{isTransitioning:t._transitioning}),T.call(l,s,E,{hovered:!1}),s.x0===s.x1||s.y0===s.y1?s._text=&quot;&quot;:s._text=p?P?&quot;&quot;:u.getPtLabel(s)||&quot;&quot;:h(s,r,E,e,S)||&quot;&quot;;var A=i.ensureSingle(d,&quot;g&quot;,&quot;slicetext&quot;),z=i.ensureSingle(A,&quot;text&quot;,&quot;&quot;,(function(t){t.attr(&quot;data-notex&quot;,1)})),O=i.ensureUniformFontSize(t,u.determineTextFont(E,s,S.font));z.text(s._text||&quot; &quot;).classed(&quot;slicetext&quot;,!0).attr(&quot;text-anchor&quot;,L?&quot;end&quot;:C||p?&quot;start&quot;:&quot;middle&quot;).call(a.font,O).call(o.convertToTspans,t),s.textBB=a.bBox(z.node()),s.transform=b(s,{fontSize:O.size,isHeader:p}),s.transform.fontSize=O.size,w?z.transition().attrTween(&quot;transform&quot;,(function(t){var e=M(t,!1,B(),[g,m]);return function(t){return _(e(t))}})):z.attr(&quot;transform&quot;,_(s))})),R}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../../lib/svg_text_utils&quot;:803,&quot;../sunburst/fx&quot;:1304,&quot;../sunburst/helpers&quot;:1305,&quot;../sunburst/plot&quot;:1309,&quot;./constants&quot;:1328,&quot;./partition&quot;:1335,&quot;./style&quot;:1337,d3:169}],1332:[function(t,e,r){&quot;use strict&quot;;e.exports={moduleType:&quot;trace&quot;,name:&quot;treemap&quot;,basePlotModule:t(&quot;./base_plot&quot;),categories:[],animatable:!0,attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;).calc,crossTraceCalc:t(&quot;./calc&quot;).crossTraceCalc,plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,colorbar:t(&quot;../scatter/marker_colorbar&quot;),meta:{}}},{&quot;../scatter/marker_colorbar&quot;:1205,&quot;./attributes&quot;:1325,&quot;./base_plot&quot;:1326,&quot;./calc&quot;:1327,&quot;./defaults&quot;:1329,&quot;./layout_attributes&quot;:1333,&quot;./layout_defaults&quot;:1334,&quot;./plot&quot;:1336,&quot;./style&quot;:1337}],1333:[function(t,e,r){&quot;use strict&quot;;e.exports={treemapcolorway:{valType:&quot;colorlist&quot;,editType:&quot;calc&quot;},extendtreemapcolors:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;}}},{}],1334:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e){function r(r,a){return n.coerce(t,e,i,r,a)}r(&quot;treemapcolorway&quot;,e.colorway),r(&quot;extendtreemapcolors&quot;)}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1333}],1335:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3-hierarchy&quot;);e.exports=function(t,e,r){var i,a=r.flipX,o=r.flipY,s=&quot;dice-slice&quot;===r.packing,l=r.pad[o?&quot;bottom&quot;:&quot;top&quot;],c=r.pad[a?&quot;right&quot;:&quot;left&quot;],u=r.pad[a?&quot;left&quot;:&quot;right&quot;],f=r.pad[o?&quot;top&quot;:&quot;bottom&quot;];s&amp;&amp;(i=c,c=l,l=i,i=u,u=f,f=i);var h=n.treemap().tile(function(t,e){switch(t){case&quot;squarify&quot;:return n.treemapSquarify.ratio(e);case&quot;binary&quot;:return n.treemapBinary;case&quot;dice&quot;:return n.treemapDice;case&quot;slice&quot;:return n.treemapSlice;default:return n.treemapSliceDice}}(r.packing,r.squarifyratio)).paddingInner(r.pad.inner).paddingLeft(c).paddingRight(u).paddingTop(l).paddingBottom(f).size(s?[e[1],e[0]]:e)(t);return(s||a||o)&amp;&amp;function t(e,r,n){var i;n.swapXY&amp;&amp;(i=e.x0,e.x0=e.y0,e.y0=i,i=e.x1,e.x1=e.y1,e.y1=i);n.flipX&amp;&amp;(i=e.x0,e.x0=r[0]-e.x1,e.x1=r[0]-i);n.flipY&amp;&amp;(i=e.y0,e.y0=r[1]-e.y1,e.y1=r[1]-i);var a=e.children;if(a)for(var o=0;o&lt;a.length;o++)t(a[o],r,n)}(h,e,{swapXY:s,flipX:a,flipY:o}),h}},{&quot;d3-hierarchy&quot;:161}],1336:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../sunburst/helpers&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../bar/constants&quot;).TEXTPAD,s=t(&quot;../bar/plot&quot;).toMoveInsideBar,l=t(&quot;../bar/uniform_text&quot;),c=l.recordMinTextSize,u=l.clearMinTextSize,f=t(&quot;../bar/style&quot;).resizeText,h=t(&quot;./constants&quot;),p=t(&quot;./draw_descendants&quot;),d=t(&quot;./draw_ancestors&quot;);function g(t){return i.isHierarchyRoot(t)?&quot;&quot;:i.getPtId(t)}function m(t,e,r,l){var u=t._fullLayout,f=e[0],m=f.trace,v=f.hierarchy,y=i.findEntryWithLevel(v,m.level),x=n.select(r),b=x.selectAll(&quot;g.pathbar&quot;),_=x.selectAll(&quot;g.slice&quot;);if(!y)return b.remove(),void _.remove();var w=i.isHierarchyRoot(y),T=!u.uniformtext.mode&amp;&amp;i.hasTransition(l),k=i.getMaxDepth(m),M=u._size,A=m.domain,S=M.w*(A.x[1]-A.x[0]),E=M.h*(A.y[1]-A.y[0]),C=S,L=m.pathbar.thickness,I=m.marker.line.width+h.gapWithPathbar,P=m.pathbar.visible?m.pathbar.side.indexOf(&quot;bottom&quot;)&gt;-1?E+I:-(L+I):0,z={x0:C,x1:C,y0:P,y1:P+L},O=function(t,e,r){var n=m.tiling.pad,i=function(t){return t-n&lt;=e.x0},a=function(t){return t+n&gt;=e.x1},o=function(t){return t-n&lt;=e.y0},s=function(t){return t+n&gt;=e.y1};return{x0:i(t.x0-n)?0:a(t.x0-n)?r[0]:t.x0,x1:i(t.x1+n)?0:a(t.x1+n)?r[0]:t.x1,y0:o(t.y0-n)?0:s(t.y0-n)?r[1]:t.y0,y1:o(t.y1+n)?0:s(t.y1+n)?r[1]:t.y1}},D=null,R={},F={},B=null,N=function(t,e){return e?R[g(t)]:F[g(t)]},j=function(t,e,r,n){if(e)return R[g(v)]||z;var i=F[m.level]||r;return function(t){return t.data.depth-y.data.depth&lt;k}(t)?O(t,i,n):{}};f.hasMultipleRoots&amp;&amp;w&amp;&amp;k++,m._maxDepth=k,m._backgroundColor=u.paper_bgcolor,m._entryDepth=y.data.depth,m._atRootLevel=w;var U=-S/2+M.l+M.w*(A.x[1]+A.x[0])/2,V=-E/2+M.t+M.h*(1-(A.y[1]+A.y[0])/2),q=function(t){return U+t},H=function(t){return V+t},G=H(0),Y=q(0),W=function(t){return Y+t},X=function(t){return G+t};function Z(t,e){return t+&quot;,&quot;+e}var J=W(0),K=function(t){t.x=Math.max(J,t.x)},Q=m.pathbar.edgeshape,$=function(t,e){var r=t.x0,n=t.x1,i=t.y0,a=t.y1,l=t.textBB,f=function(t){return-1!==m.textposition.indexOf(t)},h=f(&quot;bottom&quot;),p=f(&quot;top&quot;)||e.isHeader&amp;&amp;!h?&quot;start&quot;:h?&quot;end&quot;:&quot;middle&quot;,d=f(&quot;right&quot;),g=f(&quot;left&quot;)||e.onPathbar?-1:d?1:0,v=m.marker.pad;if(e.isHeader){if((r+=v.l-o)&gt;=(n-=v.r-o)){var y=(r+n)/2;r=y,n=y}var x;h?i&lt;(x=a-v.b)&amp;&amp;x&lt;a&amp;&amp;(i=x):i&lt;(x=i+v.t)&amp;&amp;x&lt;a&amp;&amp;(a=x)}var b=s(r,n,i,a,l,{isHorizontal:!1,constrained:!0,angle:0,anchor:p,leftToRight:g});return b.fontSize=e.fontSize,b.targetX=q(b.targetX),b.targetY=H(b.targetY),isNaN(b.targetX)||isNaN(b.targetY)?{}:(r!==n&amp;&amp;i!==a&amp;&amp;c(m.type,b,u),{scale:b.scale,rotate:b.rotate,textX:b.textX,textY:b.textY,anchorX:b.anchorX,anchorY:b.anchorY,targetX:b.targetX,targetY:b.targetY})},tt=function(t,e){for(var r,n=0,i=t;!r&amp;&amp;n&lt;k;)n++,(i=i.parent)?r=N(i,e):n=k;return r||{}},et=function(t,e,r,i){var o,s=N(t,e);if(s)o=s;else if(e)o=z;else if(D)if(t.parent){var l=B||r;l&amp;&amp;!e?o=O(t,l,i):(o={},a.extendFlat(o,tt(t,e)))}else o=t;else o={};return n.interpolate(o,{x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1})},rt=function(t,e,r,o){var s=N(t,e),l={},f=j(t,e,r,o);a.extendFlat(l,{transform:$({x0:f.x0,x1:f.x1,y0:f.y0,y1:f.y1,textBB:t.textBB,_text:t._text},{isHeader:i.isHeader(t,m)})}),s?l=s:t.parent&amp;&amp;a.extendFlat(l,tt(t,e));var h=t.transform;return t.x0!==t.x1&amp;&amp;t.y0!==t.y1&amp;&amp;c(m.type,h,u),n.interpolate(l,{transform:{scale:h.scale,rotate:h.rotate,textX:h.textX,textY:h.textY,anchorX:h.anchorX,anchorY:h.anchorY,targetX:h.targetX,targetY:h.targetY}})},nt=function(t,e,r,i,a){var o=i[0],s=i[1];T?t.exit().transition().each((function(){var t=n.select(this);t.select(&quot;path.surface&quot;).transition().attrTween(&quot;d&quot;,(function(t){var r=function(t,e,r,i){var a,o=N(t,e);if(e)a=z;else{var s=N(y,e);a=s?O(t,s,i):{}}return n.interpolate(o,a)}(t,e,0,[o,s]);return function(t){return a(r(t))}})),t.select(&quot;g.slicetext&quot;).attr(&quot;opacity&quot;,0)})).remove():t.exit().remove()},it=function(t){var e=t.transform;return t.x0!==t.x1&amp;&amp;t.y0!==t.y1&amp;&amp;c(m.type,e,u),a.getTextTransform({textX:e.textX,textY:e.textY,anchorX:e.anchorX,anchorY:e.anchorY,targetX:e.targetX,targetY:e.targetY,scale:e.scale,rotate:e.rotate})};T&amp;&amp;(b.each((function(t){R[g(t)]={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1},t.transform&amp;&amp;(R[g(t)].transform={textX:t.transform.textX,textY:t.transform.textY,anchorX:t.transform.anchorX,anchorY:t.transform.anchorY,targetX:t.transform.targetX,targetY:t.transform.targetY,scale:t.transform.scale,rotate:t.transform.rotate})})),_.each((function(t){F[g(t)]={x0:t.x0,x1:t.x1,y0:t.y0,y1:t.y1},t.transform&amp;&amp;(F[g(t)].transform={textX:t.transform.textX,textY:t.transform.textY,anchorX:t.transform.anchorX,anchorY:t.transform.anchorY,targetX:t.transform.targetX,targetY:t.transform.targetY,scale:t.transform.scale,rotate:t.transform.rotate}),!D&amp;&amp;i.isEntry(t)&amp;&amp;(D=t)}))),B=p(t,e,y,_,{width:S,height:E,viewX:q,viewY:H,pathSlice:function(t){var e=q(t.x0),r=q(t.x1),n=H(t.y0),i=H(t.y1),a=r-e,o=i-n;if(!a||!o)return&quot;&quot;;return&quot;M&quot;+Z(e,n+0)+&quot;L&quot;+Z(r-0,n)+&quot;L&quot;+Z(r,i-0)+&quot;L&quot;+Z(e+0,i)+&quot;Z&quot;},toMoveInsideSlice:$,prevEntry:D,makeUpdateSliceInterpolator:et,makeUpdateTextInterpolator:rt,handleSlicesExit:nt,hasTransition:T,strTransform:it}),m.pathbar.visible?d(t,e,y,b,{barDifY:P,width:C,height:L,viewX:W,viewY:X,pathSlice:function(t){var e=W(Math.max(Math.min(t.x0,t.x0),0)),r=W(Math.min(Math.max(t.x1,t.x1),C)),n=X(t.y0),i=X(t.y1),a=L/2,o={},s={};o.x=e,s.x=r,o.y=s.y=(n+i)/2;var l={x:e,y:n},c={x:r,y:n},u={x:r,y:i},f={x:e,y:i};return&quot;&gt;&quot;===Q?(l.x-=a,c.x-=a,u.x-=a,f.x-=a):&quot;/&quot;===Q?(u.x-=a,f.x-=a,o.x-=a/2,s.x-=a/2):&quot;\\&quot;===Q?(l.x-=a,c.x-=a,o.x-=a/2,s.x-=a/2):&quot;&lt;&quot;===Q&amp;&amp;(o.x-=a,s.x-=a),K(l),K(f),K(o),K(c),K(u),K(s),&quot;M&quot;+Z(l.x,l.y)+&quot;L&quot;+Z(c.x,c.y)+&quot;L&quot;+Z(s.x,s.y)+&quot;L&quot;+Z(u.x,u.y)+&quot;L&quot;+Z(f.x,f.y)+&quot;L&quot;+Z(o.x,o.y)+&quot;Z&quot;},toMoveInsideSlice:$,makeUpdateSliceInterpolator:et,makeUpdateTextInterpolator:rt,handleSlicesExit:nt,hasTransition:T,strTransform:it}):b.remove()}e.exports=function(t,e,r,a){var o,s,l=t._fullLayout,c=l._treemaplayer,h=!r;(u(&quot;treemap&quot;,l),(o=c.selectAll(&quot;g.trace.treemap&quot;).data(e,(function(t){return t[0].trace.uid}))).enter().append(&quot;g&quot;).classed(&quot;trace&quot;,!0).classed(&quot;treemap&quot;,!0),o.order(),!l.uniformtext.mode&amp;&amp;i.hasTransition(r))?(a&amp;&amp;(s=a()),n.transition().duration(r.duration).ease(r.easing).each(&quot;end&quot;,(function(){s&amp;&amp;s()})).each(&quot;interrupt&quot;,(function(){s&amp;&amp;s()})).each((function(){c.selectAll(&quot;g.trace&quot;).each((function(e){m(t,e,this,r)}))}))):(o.each((function(e){m(t,e,this,r)})),l.uniformtext.mode&amp;&amp;f(t,l._treemaplayer.selectAll(&quot;.trace&quot;),&quot;treemap&quot;));h&amp;&amp;o.exit().remove()}},{&quot;../../lib&quot;:778,&quot;../bar/constants&quot;:923,&quot;../bar/plot&quot;:932,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,&quot;../sunburst/helpers&quot;:1305,&quot;./constants&quot;:1328,&quot;./draw_ancestors&quot;:1330,&quot;./draw_descendants&quot;:1331,d3:169}],1337:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../../lib&quot;),o=t(&quot;../sunburst/helpers&quot;),s=t(&quot;../bar/uniform_text&quot;).resizeText;function l(t,e,r,n){var s,l,c=(n||{}).hovered,u=e.data.data,f=u.i,h=u.color,p=o.isHierarchyRoot(e),d=1;if(c)s=r._hovered.marker.line.color,l=r._hovered.marker.line.width;else if(p&amp;&amp;h===r.root.color)d=100,s=&quot;rgba(0,0,0,0)&quot;,l=0;else if(s=a.castOption(r,f,&quot;marker.line.color&quot;)||i.defaultLine,l=a.castOption(r,f,&quot;marker.line.width&quot;)||0,!r._hasColorscale&amp;&amp;!e.onPathbar){var g=r.marker.depthfade;if(g){var m,v=i.combine(i.addOpacity(r._backgroundColor,.75),h);if(!0===g){var y=o.getMaxDepth(r);m=isFinite(y)?o.isLeaf(e)?0:r._maxVisibleLayers-(e.data.depth-r._entryDepth):e.data.height+1}else m=e.data.depth-r._entryDepth,r._atRootLevel||m++;if(m&gt;0)for(var x=0;x&lt;m;x++){var b=.5*x/m;h=i.combine(i.addOpacity(v,b),h)}}}t.style(&quot;stroke-width&quot;,l).call(i.fill,h).call(i.stroke,s).style(&quot;opacity&quot;,d)}e.exports={style:function(t){var e=t._fullLayout._treemaplayer.selectAll(&quot;.trace&quot;);s(t,e,&quot;treemap&quot;),e.each((function(t){var e=n.select(this),r=t[0].trace;e.style(&quot;opacity&quot;,r.opacity),e.selectAll(&quot;path.surface&quot;).each((function(t){n.select(this).call(l,t,r,{hovered:!1})}))}))},styleOne:l}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../bar/uniform_text&quot;:937,&quot;../sunburst/helpers&quot;:1305,d3:169}],1338:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/attributes&quot;),i=t(&quot;../../lib/extend&quot;).extendFlat;e.exports={y:n.y,x:n.x,x0:n.x0,y0:n.y0,name:i({},n.name,{}),orientation:i({},n.orientation,{}),bandwidth:{valType:&quot;number&quot;,min:0,editType:&quot;calc&quot;},scalegroup:{valType:&quot;string&quot;,dflt:&quot;&quot;,editType:&quot;calc&quot;},scalemode:{valType:&quot;enumerated&quot;,values:[&quot;width&quot;,&quot;count&quot;],dflt:&quot;width&quot;,editType:&quot;calc&quot;},spanmode:{valType:&quot;enumerated&quot;,values:[&quot;soft&quot;,&quot;hard&quot;,&quot;manual&quot;],dflt:&quot;soft&quot;,editType:&quot;calc&quot;},span:{valType:&quot;info_array&quot;,items:[{valType:&quot;any&quot;,editType:&quot;calc&quot;},{valType:&quot;any&quot;,editType:&quot;calc&quot;}],editType:&quot;calc&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,dflt:2,editType:&quot;style&quot;},editType:&quot;plot&quot;},fillcolor:n.fillcolor,points:i({},n.boxpoints,{}),jitter:i({},n.jitter,{}),pointpos:i({},n.pointpos,{}),width:i({},n.width,{}),marker:n.marker,text:n.text,hovertext:n.hovertext,hovertemplate:n.hovertemplate,box:{visible:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},width:{valType:&quot;number&quot;,min:0,max:1,dflt:.25,editType:&quot;plot&quot;},fillcolor:{valType:&quot;color&quot;,editType:&quot;style&quot;},line:{color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;plot&quot;},meanline:{visible:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;plot&quot;},color:{valType:&quot;color&quot;,editType:&quot;style&quot;},width:{valType:&quot;number&quot;,min:0,editType:&quot;style&quot;},editType:&quot;plot&quot;},side:{valType:&quot;enumerated&quot;,values:[&quot;both&quot;,&quot;positive&quot;,&quot;negative&quot;],dflt:&quot;both&quot;,editType:&quot;calc&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup,selected:n.selected,unselected:n.unselected,hoveron:{valType:&quot;flaglist&quot;,flags:[&quot;violins&quot;,&quot;points&quot;,&quot;kde&quot;],dflt:&quot;violins+points+kde&quot;,extras:[&quot;all&quot;],editType:&quot;style&quot;}}},{&quot;../../lib/extend&quot;:768,&quot;../box/attributes&quot;:946}],1339:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../box/calc&quot;),o=t(&quot;./helpers&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t,e,r){var i=e.max-e.min;if(!i)return t.bandwidth?t.bandwidth:0;if(t.bandwidth)return Math.max(t.bandwidth,i/1e4);var a=r.length,o=n.stdev(r,a-1,e.mean);return Math.max(function(t,e,r){return 1.059*Math.min(e,r/1.349)*Math.pow(t,-.2)}(a,o,e.q3-e.q1),i/100)}function c(t,e,r,n){var a,o=t.spanmode,l=t.span||[],c=[e.min,e.max],u=[e.min-2*n,e.max+2*n];function f(n){var i=l[n],a=&quot;multicategory&quot;===r.type?r.r2c(i):r.d2c(i,0,t[e.valLetter+&quot;calendar&quot;]);return a===s?u[n]:a}var h={type:&quot;linear&quot;,range:a=&quot;soft&quot;===o?u:&quot;hard&quot;===o?c:[f(0),f(1)]};return i.setConvert(h),h.cleanRange(),a}e.exports=function(t,e){var r=a(t,e);if(r[0].t.empty)return r;for(var s=t._fullLayout,u=i.getFromId(t,e[&quot;h&quot;===e.orientation?&quot;xaxis&quot;:&quot;yaxis&quot;]),f=1/0,h=-1/0,p=0,d=0,g=0;g&lt;r.length;g++){var m=r[g],v=m.pts.map(o.extractVal),y=m.bandwidth=l(e,m,v),x=m.span=c(e,m,u,y);if(m.min===m.max&amp;&amp;0===y)x=m.span=[m.min,m.max],m.density=[{v:1,t:x[0]}],m.bandwidth=y,p=Math.max(p,1);else{var b=x[1]-x[0],_=Math.ceil(b/(y/3)),w=b/_;if(!isFinite(w)||!isFinite(_))return n.error(&quot;Something went wrong with computing the violin span&quot;),r[0].t.empty=!0,r;var T=o.makeKDE(m,e,v);m.density=new Array(_);for(var k=0,M=x[0];M&lt;x[1]+w/2;k++,M+=w){var A=T(M);m.density[k]={v:A,t:M},p=Math.max(p,A)}}d=Math.max(d,v.length),f=Math.min(f,x[0]),h=Math.max(h,x[1])}var S=i.findExtremes(u,[f,h],{padded:!0});if(e._extremes[u._id]=S,e.width)r[0].t.maxKDE=p;else{var E=s._violinScaleGroupStats,C=e.scalegroup,L=E[C];L?(L.maxKDE=Math.max(L.maxKDE,p),L.maxCount=Math.max(L.maxCount,d)):E[C]={maxKDE:p,maxCount:d}}return r[0].t.labels.kde=n._(t,&quot;kde:&quot;),r}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../box/calc&quot;:947,&quot;./helpers&quot;:1342}],1340:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/cross_trace_calc&quot;).setPositionOffset,i=[&quot;v&quot;,&quot;h&quot;];e.exports=function(t,e){for(var r=t.calcdata,a=e.xaxis,o=e.yaxis,s=0;s&lt;i.length;s++){for(var l=i[s],c=&quot;h&quot;===l?o:a,u=[],f=0;f&lt;r.length;f++){var h=r[f],p=h[0].t,d=h[0].trace;!0!==d.visible||&quot;violin&quot;!==d.type||p.empty||d.orientation!==l||d.xaxis!==a._id||d.yaxis!==o._id||u.push(f)}n(&quot;violin&quot;,t,u,c)}}},{&quot;../box/cross_trace_calc&quot;:948}],1341:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../box/defaults&quot;),o=t(&quot;./attributes&quot;);e.exports=function(t,e,r,s){function l(r,i){return n.coerce(t,e,o,r,i)}function c(r,i){return n.coerce2(t,e,o,r,i)}if(a.handleSampleDefaults(t,e,l,s),!1!==e.visible){l(&quot;bandwidth&quot;),l(&quot;side&quot;),l(&quot;width&quot;)||(l(&quot;scalegroup&quot;,e.name),l(&quot;scalemode&quot;));var u,f=l(&quot;span&quot;);Array.isArray(f)&amp;&amp;(u=&quot;manual&quot;),l(&quot;spanmode&quot;,u);var h=l(&quot;line.color&quot;,(t.marker||{}).color||r),p=l(&quot;line.width&quot;),d=l(&quot;fillcolor&quot;,i.addOpacity(e.line.color,.5));a.handlePointsDefaults(t,e,l,{prefix:&quot;&quot;});var g=c(&quot;box.width&quot;),m=c(&quot;box.fillcolor&quot;,d),v=c(&quot;box.line.color&quot;,h),y=c(&quot;box.line.width&quot;,p);l(&quot;box.visible&quot;,Boolean(g||m||v||y))||(e.box={visible:!1});var x=c(&quot;meanline.color&quot;,h),b=c(&quot;meanline.width&quot;,p);l(&quot;meanline.visible&quot;,Boolean(x||b))||(e.meanline={visible:!1})}}},{&quot;../../components/color&quot;:643,&quot;../../lib&quot;:778,&quot;../box/defaults&quot;:949,&quot;./attributes&quot;:1338}],1342:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=function(t){return 1/Math.sqrt(2*Math.PI)*Math.exp(-.5*t*t)};r.makeKDE=function(t,e,r){var n=r.length,a=i,o=t.bandwidth,s=1/(n*o);return function(t){for(var e=0,i=0;i&lt;n;i++)e+=a((t-r[i])/o);return s*e}},r.getPositionOnKdePath=function(t,e,r){var i,a;&quot;h&quot;===e.orientation?(i=&quot;y&quot;,a=&quot;x&quot;):(i=&quot;x&quot;,a=&quot;y&quot;);var o=n.findPointOnPath(t.path,r,a,{pathLength:t.pathLength}),s=t.posCenterPx,l=o[i];return[l,&quot;both&quot;===e.side?2*s-l:s]},r.getKdeValue=function(t,e,n){var i=t.pts.map(r.extractVal);return r.makeKDE(t,e,i)(n)/t.posDensityScale},r.extractVal=function(t){return t.v}},{&quot;../../lib&quot;:778}],1343:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../../plots/cartesian/axes&quot;),a=t(&quot;../box/hover&quot;),o=t(&quot;./helpers&quot;);e.exports=function(t,e,r,s,l){var c,u,f=t.cd,h=f[0].trace,p=h.hoveron,d=-1!==p.indexOf(&quot;violins&quot;),g=-1!==p.indexOf(&quot;kde&quot;),m=[];if(d||g){var v=a.hoverOnBoxes(t,e,r,s);if(g&amp;&amp;v.length&gt;0){var y,x,b,_,w,T=t.xa,k=t.ya;&quot;h&quot;===h.orientation?(w=e,y=&quot;y&quot;,b=k,x=&quot;x&quot;,_=T):(w=r,y=&quot;x&quot;,b=T,x=&quot;y&quot;,_=k);var M=f[t.index];if(w&gt;=M.span[0]&amp;&amp;w&lt;=M.span[1]){var A=n.extendFlat({},t),S=_.c2p(w,!0),E=o.getKdeValue(M,h,w),C=o.getPositionOnKdePath(M,h,S),L=b._offset,I=b._length;A[y+&quot;0&quot;]=C[0],A[y+&quot;1&quot;]=C[1],A[x+&quot;0&quot;]=A[x+&quot;1&quot;]=S,A[x+&quot;Label&quot;]=x+&quot;: &quot;+i.hoverLabelText(_,w)+&quot;, &quot;+f[0].t.labels.kde+&quot; &quot;+E.toFixed(3),A.spikeDistance=v[0].spikeDistance;var P=y+&quot;Spike&quot;;A[P]=v[0][P],v[0].spikeDistance=void 0,v[0][P]=void 0,A.hovertemplate=!1,m.push(A),(u={stroke:t.color})[y+&quot;1&quot;]=n.constrain(L+C[0],L,L+I),u[y+&quot;2&quot;]=n.constrain(L+C[1],L,L+I),u[x+&quot;1&quot;]=u[x+&quot;2&quot;]=_._offset+S}}d&amp;&amp;(m=m.concat(v))}-1!==p.indexOf(&quot;points&quot;)&amp;&amp;(c=a.hoverOnPoints(t,e,r));var z=l.selectAll(&quot;.violinline-&quot;+h.uid).data(u?[0]:[]);return z.enter().append(&quot;line&quot;).classed(&quot;violinline-&quot;+h.uid,!0).attr(&quot;stroke-width&quot;,1.5),z.exit().remove(),z.attr(u),&quot;closest&quot;===s?c?[c]:m:c?(m.push(c),m):m}},{&quot;../../lib&quot;:778,&quot;../../plots/cartesian/axes&quot;:828,&quot;../box/hover&quot;:951,&quot;./helpers&quot;:1342}],1344:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),crossTraceDefaults:t(&quot;../box/defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;),styleOnSelect:t(&quot;../scatter/style&quot;).styleOnSelect,hoverPoints:t(&quot;./hover&quot;),selectPoints:t(&quot;../box/select&quot;),moduleType:&quot;trace&quot;,name:&quot;violin&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;cartesian&quot;,&quot;svg&quot;,&quot;symbols&quot;,&quot;oriented&quot;,&quot;box-violin&quot;,&quot;showLegend&quot;,&quot;violinLayout&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../box/defaults&quot;:949,&quot;../box/select&quot;:956,&quot;../scatter/style&quot;:1211,&quot;./attributes&quot;:1338,&quot;./calc&quot;:1339,&quot;./cross_trace_calc&quot;:1340,&quot;./defaults&quot;:1341,&quot;./hover&quot;:1343,&quot;./layout_attributes&quot;:1345,&quot;./layout_defaults&quot;:1346,&quot;./plot&quot;:1347,&quot;./style&quot;:1348}],1345:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../box/layout_attributes&quot;),i=t(&quot;../../lib&quot;).extendFlat;e.exports={violinmode:i({},n.boxmode,{}),violingap:i({},n.boxgap,{}),violingroupgap:i({},n.boxgroupgap,{})}},{&quot;../../lib&quot;:778,&quot;../box/layout_attributes&quot;:953}],1346:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;),a=t(&quot;../box/layout_defaults&quot;);e.exports=function(t,e,r){a._supply(t,e,r,(function(r,a){return n.coerce(t,e,i,r,a)}),&quot;violin&quot;)}},{&quot;../../lib&quot;:778,&quot;../box/layout_defaults&quot;:954,&quot;./layout_attributes&quot;:1345}],1347:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../box/plot&quot;),s=t(&quot;../scatter/line_points&quot;),l=t(&quot;./helpers&quot;);e.exports=function(t,e,r,c){var u=t._fullLayout,f=e.xaxis,h=e.yaxis;function p(t){var e=s(t,{xaxis:f,yaxis:h,connectGaps:!0,baseTolerance:.75,shape:&quot;spline&quot;,simplify:!0,linearized:!0});return a.smoothopen(e[0],1)}i.makeTraceGroups(c,r,&quot;trace violins&quot;).each((function(t){var r=n.select(this),a=t[0],s=a.t,c=a.trace;if(!0!==c.visible||s.empty)r.remove();else{var d=s.bPos,g=s.bdPos,m=e[s.valLetter+&quot;axis&quot;],v=e[s.posLetter+&quot;axis&quot;],y=&quot;both&quot;===c.side,x=y||&quot;positive&quot;===c.side,b=y||&quot;negative&quot;===c.side,_=r.selectAll(&quot;path.violin&quot;).data(i.identity);_.enter().append(&quot;path&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;).attr(&quot;class&quot;,&quot;violin&quot;),_.exit().remove(),_.each((function(t){var e,r,i,a,o,l,f,h,_=n.select(this),w=t.density,T=w.length,k=v.c2l(t.pos+d,!0),M=v.l2p(k);if(c.width)e=s.maxKDE/g;else{var A=u._violinScaleGroupStats[c.scalegroup];e=&quot;count&quot;===c.scalemode?A.maxKDE/g*(A.maxCount/t.pts.length):A.maxKDE/g}if(x){for(f=new Array(T),o=0;o&lt;T;o++)(h=f[o]={})[s.posLetter]=k+w[o].v/e,h[s.valLetter]=m.c2l(w[o].t,!0);r=p(f)}if(b){for(f=new Array(T),l=0,o=T-1;l&lt;T;l++,o--)(h=f[l]={})[s.posLetter]=k-w[o].v/e,h[s.valLetter]=m.c2l(w[o].t,!0);i=p(f)}if(y)a=r+&quot;L&quot;+i.substr(1)+&quot;Z&quot;;else{var S=[M,m.c2p(w[0].t)],E=[M,m.c2p(w[T-1].t)];&quot;h&quot;===c.orientation&amp;&amp;(S.reverse(),E.reverse()),a=x?&quot;M&quot;+S+&quot;L&quot;+r.substr(1)+&quot;L&quot;+E:&quot;M&quot;+E+&quot;L&quot;+i.substr(1)+&quot;L&quot;+S}_.attr(&quot;d&quot;,a),t.posCenterPx=M,t.posDensityScale=e*g,t.path=_.node(),t.pathLength=t.path.getTotalLength()/(y?2:1)}));var w,T,k,M=c.box,A=M.width,S=(M.line||{}).width;y?(w=g*A,T=0):x?(w=[0,g*A/2],T=S*{x:1,y:-1}[s.posLetter]):(w=[g*A/2,0],T=S*{x:-1,y:1}[s.posLetter]),o.plotBoxAndWhiskers(r,{pos:v,val:m},c,{bPos:d,bdPos:w,bPosPxOffset:T}),o.plotBoxMean(r,{pos:v,val:m},c,{bPos:d,bdPos:w,bPosPxOffset:T}),!c.box.visible&amp;&amp;c.meanline.visible&amp;&amp;(k=i.identity);var E=r.selectAll(&quot;path.meanline&quot;).data(k||[]);E.enter().append(&quot;path&quot;).attr(&quot;class&quot;,&quot;meanline&quot;).style(&quot;fill&quot;,&quot;none&quot;).style(&quot;vector-effect&quot;,&quot;non-scaling-stroke&quot;),E.exit().remove(),E.each((function(t){var e=m.c2p(t.mean,!0),r=l.getPositionOnKdePath(t,c,e);n.select(this).attr(&quot;d&quot;,&quot;h&quot;===c.orientation?&quot;M&quot;+e+&quot;,&quot;+r[0]+&quot;V&quot;+r[1]:&quot;M&quot;+r[0]+&quot;,&quot;+e+&quot;H&quot;+r[1])})),o.plotPoints(r,{x:f,y:h},c,s)}}))}},{&quot;../../components/drawing&quot;:665,&quot;../../lib&quot;:778,&quot;../box/plot&quot;:955,&quot;../scatter/line_points&quot;:1201,&quot;./helpers&quot;:1342,d3:169}],1348:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/color&quot;),a=t(&quot;../scatter/style&quot;).stylePoints;e.exports=function(t){var e=n.select(t).selectAll(&quot;g.trace.violins&quot;);e.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),e.each((function(e){var r=e[0].trace,o=n.select(this),s=r.box||{},l=s.line||{},c=r.meanline||{},u=c.width;o.selectAll(&quot;path.violin&quot;).style(&quot;stroke-width&quot;,r.line.width+&quot;px&quot;).call(i.stroke,r.line.color).call(i.fill,r.fillcolor),o.selectAll(&quot;path.box&quot;).style(&quot;stroke-width&quot;,l.width+&quot;px&quot;).call(i.stroke,l.color).call(i.fill,s.fillcolor);var f={&quot;stroke-width&quot;:u+&quot;px&quot;,&quot;stroke-dasharray&quot;:2*u+&quot;px,&quot;+u+&quot;px&quot;};o.selectAll(&quot;path.mean&quot;).style(f).call(i.stroke,c.color),o.selectAll(&quot;path.meanline&quot;).style(f).call(i.stroke,c.color),a(o,r,t)}))}},{&quot;../../components/color&quot;:643,&quot;../scatter/style&quot;:1211,d3:169}],1349:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../components/colorscale/attributes&quot;),i=t(&quot;../isosurface/attributes&quot;),a=t(&quot;../surface/attributes&quot;),o=t(&quot;../../plots/attributes&quot;),s=t(&quot;../../lib/extend&quot;).extendFlat,l=t(&quot;../../plot_api/edit_types&quot;).overrideAll,c=e.exports=l(s({x:i.x,y:i.y,z:i.z,value:i.value,isomin:i.isomin,isomax:i.isomax,surface:i.surface,spaceframe:{show:{valType:&quot;boolean&quot;,dflt:!1},fill:{valType:&quot;number&quot;,min:0,max:1,dflt:1}},slices:i.slices,caps:i.caps,text:i.text,hovertext:i.hovertext,hovertemplate:i.hovertemplate},n(&quot;&quot;,{colorAttr:&quot;`value`&quot;,showScaleDflt:!0,editTypeOverride:&quot;calc&quot;}),{colorbar:i.colorbar,opacity:i.opacity,opacityscale:a.opacityscale,lightposition:i.lightposition,lighting:i.lighting,flatshading:i.flatshading,contour:i.contour,hoverinfo:s({},o.hoverinfo),showlegend:s({},o.showlegend,{dflt:!1})}),&quot;calc&quot;,&quot;nested&quot;);c.x.editType=c.y.editType=c.z.editType=c.value.editType=&quot;calc+clearAxisTypes&quot;,c.transforms=void 0},{&quot;../../components/colorscale/attributes&quot;:650,&quot;../../lib/extend&quot;:768,&quot;../../plot_api/edit_types&quot;:810,&quot;../../plots/attributes&quot;:824,&quot;../isosurface/attributes&quot;:1123,&quot;../surface/attributes&quot;:1311}],1350:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;gl-mesh3d&quot;),i=t(&quot;../../lib/gl_format_color&quot;).parseColorScale,a=t(&quot;../../lib/str2rgbarray&quot;),o=t(&quot;../../components/colorscale&quot;).extractOpts,s=t(&quot;../../plots/gl3d/zip3&quot;),l=t(&quot;../isosurface/convert&quot;).findNearestOnAxis,c=t(&quot;../isosurface/convert&quot;).generateIsoMeshes;function u(t,e,r){this.scene=t,this.uid=r,this.mesh=e,this.name=&quot;&quot;,this.data=null,this.showContour=!1}var f=u.prototype;f.handlePick=function(t){if(t.object===this.mesh){var e=t.data.index,r=this.data._meshX[e],n=this.data._meshY[e],i=this.data._meshZ[e],a=this.data._Ys.length,o=this.data._Zs.length,s=l(r,this.data._Xs).id,c=l(n,this.data._Ys).id,u=l(i,this.data._Zs).id,f=t.index=u+o*c+o*a*s;t.traceCoordinate=[this.data._meshX[f],this.data._meshY[f],this.data._meshZ[f],this.data._value[f]];var h=this.data.hovertext||this.data.text;return Array.isArray(h)&amp;&amp;void 0!==h[f]?t.textLabel=h[f]:h&amp;&amp;(t.textLabel=h),!0}},f.update=function(t){var e=this.scene,r=e.fullSceneLayout;function n(t,e,r,n){return e.map((function(e){return t.d2l(e,0,n)*r}))}this.data=c(t);var l={positions:s(n(r.xaxis,t._meshX,e.dataScale[0],t.xcalendar),n(r.yaxis,t._meshY,e.dataScale[1],t.ycalendar),n(r.zaxis,t._meshZ,e.dataScale[2],t.zcalendar)),cells:s(t._meshI,t._meshJ,t._meshK),lightPosition:[t.lightposition.x,t.lightposition.y,t.lightposition.z],ambient:t.lighting.ambient,diffuse:t.lighting.diffuse,specular:t.lighting.specular,roughness:t.lighting.roughness,fresnel:t.lighting.fresnel,vertexNormalsEpsilon:t.lighting.vertexnormalsepsilon,faceNormalsEpsilon:t.lighting.facenormalsepsilon,opacity:t.opacity,opacityscale:t.opacityscale,contourEnable:t.contour.show,contourColor:a(t.contour.color).slice(0,3),contourWidth:t.contour.width,useFacetNormals:t.flatshading},u=o(t);l.vertexIntensity=t._meshIntensity,l.vertexIntensityBounds=[u.min,u.max],l.colormap=i(t),this.mesh.update(l)},f.dispose=function(){this.scene.glplot.remove(this.mesh),this.mesh.dispose()},e.exports=function(t,e){var r=t.glplot.gl,i=n({gl:r}),a=new u(t,i,e.uid);return i._trace=a,a.update(e),t.glplot.add(i),a}},{&quot;../../components/colorscale&quot;:655,&quot;../../lib/gl_format_color&quot;:774,&quot;../../lib/str2rgbarray&quot;:802,&quot;../../plots/gl3d/zip3&quot;:881,&quot;../isosurface/convert&quot;:1125,&quot;gl-mesh3d&quot;:309}],1351:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./attributes&quot;),a=t(&quot;../isosurface/defaults&quot;).supplyIsoDefaults,o=t(&quot;../surface/defaults&quot;).opacityscaleDefaults;e.exports=function(t,e,r,s){function l(r,a){return n.coerce(t,e,i,r,a)}a(t,e,r,s,l),o(t,e,s,l)}},{&quot;../../lib&quot;:778,&quot;../isosurface/defaults&quot;:1126,&quot;../surface/defaults&quot;:1314,&quot;./attributes&quot;:1349}],1352:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;),calc:t(&quot;../isosurface/calc&quot;),colorbar:{min:&quot;cmin&quot;,max:&quot;cmax&quot;},plot:t(&quot;./convert&quot;),moduleType:&quot;trace&quot;,name:&quot;volume&quot;,basePlotModule:t(&quot;../../plots/gl3d&quot;),categories:[&quot;gl3d&quot;,&quot;showLegend&quot;],meta:{}}},{&quot;../../plots/gl3d&quot;:870,&quot;../isosurface/calc&quot;:1124,&quot;./attributes&quot;:1349,&quot;./convert&quot;:1350,&quot;./defaults&quot;:1351}],1353:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/attributes&quot;),i=t(&quot;../scatter/attributes&quot;).line,a=t(&quot;../../plots/attributes&quot;),o=t(&quot;../../plots/template_attributes&quot;).hovertemplateAttrs,s=t(&quot;../../plots/template_attributes&quot;).texttemplateAttrs,l=t(&quot;./constants&quot;),c=t(&quot;../../lib/extend&quot;).extendFlat,u=t(&quot;../../components/color&quot;);function f(t){return{marker:{color:c({},n.marker.color,{arrayOk:!1,editType:&quot;style&quot;}),line:{color:c({},n.marker.line.color,{arrayOk:!1,editType:&quot;style&quot;}),width:c({},n.marker.line.width,{arrayOk:!1,editType:&quot;style&quot;}),editType:&quot;style&quot;},editType:&quot;style&quot;},editType:&quot;style&quot;}}e.exports={measure:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},base:{valType:&quot;number&quot;,dflt:null,arrayOk:!1,editType:&quot;calc&quot;},x:n.x,x0:n.x0,dx:n.dx,y:n.y,y0:n.y0,dy:n.dy,xperiod:n.xperiod,yperiod:n.yperiod,xperiod0:n.xperiod0,yperiod0:n.yperiod0,xperiodalignment:n.xperiodalignment,yperiodalignment:n.yperiodalignment,hovertext:n.hovertext,hovertemplate:o({},{keys:l.eventDataKeys}),hoverinfo:c({},a.hoverinfo,{flags:[&quot;name&quot;,&quot;x&quot;,&quot;y&quot;,&quot;text&quot;,&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;]}),textinfo:{valType:&quot;flaglist&quot;,flags:[&quot;label&quot;,&quot;text&quot;,&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;],extras:[&quot;none&quot;],editType:&quot;plot&quot;,arrayOk:!1},texttemplate:s({editType:&quot;plot&quot;},{keys:l.eventDataKeys.concat([&quot;label&quot;])}),text:n.text,textposition:n.textposition,insidetextanchor:n.insidetextanchor,textangle:n.textangle,textfont:n.textfont,insidetextfont:n.insidetextfont,outsidetextfont:n.outsidetextfont,constraintext:n.constraintext,cliponaxis:n.cliponaxis,orientation:n.orientation,offset:n.offset,width:n.width,increasing:f(),decreasing:f(),totals:f(),connector:{line:{color:c({},i.color,{dflt:u.defaultLine}),width:c({},i.width,{editType:&quot;plot&quot;}),dash:i.dash,editType:&quot;plot&quot;},mode:{valType:&quot;enumerated&quot;,values:[&quot;spanning&quot;,&quot;between&quot;],dflt:&quot;between&quot;,editType:&quot;plot&quot;},visible:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;plot&quot;},editType:&quot;plot&quot;},offsetgroup:n.offsetgroup,alignmentgroup:n.alignmentgroup}},{&quot;../../components/color&quot;:643,&quot;../../lib/extend&quot;:768,&quot;../../plots/attributes&quot;:824,&quot;../../plots/template_attributes&quot;:906,&quot;../bar/attributes&quot;:921,&quot;../scatter/attributes&quot;:1187,&quot;./constants&quot;:1355}],1354:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;),i=t(&quot;../../plots/cartesian/align_period&quot;),a=t(&quot;../../lib&quot;).mergeArray,o=t(&quot;../scatter/calc_selection&quot;),s=t(&quot;../../constants/numerical&quot;).BADNUM;function l(t){return&quot;a&quot;===t||&quot;absolute&quot;===t}function c(t){return&quot;t&quot;===t||&quot;total&quot;===t}e.exports=function(t,e){var r,u,f,h,p=n.getFromId(t,e.xaxis||&quot;x&quot;),d=n.getFromId(t,e.yaxis||&quot;y&quot;);&quot;h&quot;===e.orientation?(r=p.makeCalcdata(e,&quot;x&quot;),f=d.makeCalcdata(e,&quot;y&quot;),u=i(e,d,&quot;y&quot;,f),h=!!e.yperiodalignment):(r=d.makeCalcdata(e,&quot;y&quot;),f=p.makeCalcdata(e,&quot;x&quot;),u=i(e,p,&quot;x&quot;,f),h=!!e.xperiodalignment);for(var g,m=Math.min(u.length,r.length),v=new Array(m),y=0,x=!1,b=0;b&lt;m;b++){var _=r[b]||0,w=!1;(r[b]!==s||c(e.measure[b])||l(e.measure[b]))&amp;&amp;b+1&lt;m&amp;&amp;(r[b+1]!==s||c(e.measure[b+1])||l(e.measure[b+1]))&amp;&amp;(w=!0);var T=v[b]={i:b,p:u[b],s:_,rawS:_,cNext:w};l(e.measure[b])?(y=T.s,T.isSum=!0,T.dir=&quot;totals&quot;,T.s=y):c(e.measure[b])?(T.isSum=!0,T.dir=&quot;totals&quot;,T.s=y):(T.isSum=!1,T.dir=T.rawS&lt;0?&quot;decreasing&quot;:&quot;increasing&quot;,g=T.s,T.s=y+g,y+=g),&quot;totals&quot;===T.dir&amp;&amp;(x=!0),h&amp;&amp;(v[b].orig_p=f[b]),e.ids&amp;&amp;(T.id=String(e.ids[b])),T.v=(e.base||0)+y}return v.length&amp;&amp;(v[0].hasTotals=x),a(e.text,v,&quot;tx&quot;),a(e.hovertext,v,&quot;htx&quot;),o(v,e),v}},{&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../../plots/cartesian/align_period&quot;:825,&quot;../../plots/cartesian/axes&quot;:828,&quot;../scatter/calc_selection&quot;:1189}],1355:[function(t,e,r){&quot;use strict&quot;;e.exports={eventDataKeys:[&quot;initial&quot;,&quot;delta&quot;,&quot;final&quot;]}},{}],1356:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../bar/cross_trace_calc&quot;).setGroupPositions;e.exports=function(t,e){var r,i,a=t._fullLayout,o=t._fullData,s=t.calcdata,l=e.xaxis,c=e.yaxis,u=[],f=[],h=[];for(i=0;i&lt;o.length;i++){var p=o[i];!0===p.visible&amp;&amp;p.xaxis===l._id&amp;&amp;p.yaxis===c._id&amp;&amp;&quot;waterfall&quot;===p.type&amp;&amp;(r=s[i],&quot;h&quot;===p.orientation?h.push(r):f.push(r),u.push(r))}var d={mode:a.waterfallmode,norm:a.waterfallnorm,gap:a.waterfallgap,groupgap:a.waterfallgroupgap};for(n(t,l,c,f,d),n(t,c,l,h,d),i=0;i&lt;u.length;i++){r=u[i];for(var g=0;g&lt;r.length;g++){var m=r[g];!1===m.isSum&amp;&amp;(m.s0+=0===g?0:r[g-1].s),g+1&lt;r.length&amp;&amp;(r[g].nextP0=r[g+1].p0,r[g].nextS0=r[g+1].s0)}}}},{&quot;../bar/cross_trace_calc&quot;:924}],1357:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;../bar/defaults&quot;).handleGroupingDefaults,a=t(&quot;../bar/defaults&quot;).handleText,o=t(&quot;../scatter/xy_defaults&quot;),s=t(&quot;../scatter/period_defaults&quot;),l=t(&quot;./attributes&quot;),c=t(&quot;../../components/color&quot;),u=t(&quot;../../constants/delta.js&quot;),f=u.INCREASING.COLOR,h=u.DECREASING.COLOR;function p(t,e,r){t(e+&quot;.marker.color&quot;,r),t(e+&quot;.marker.line.color&quot;,c.defaultLine),t(e+&quot;.marker.line.width&quot;)}e.exports={supplyDefaults:function(t,e,r,i){function c(r,i){return n.coerce(t,e,l,r,i)}if(o(t,e,i,c)){s(t,e,i,c),c(&quot;measure&quot;),c(&quot;orientation&quot;,e.x&amp;&amp;!e.y?&quot;h&quot;:&quot;v&quot;),c(&quot;base&quot;),c(&quot;offset&quot;),c(&quot;width&quot;),c(&quot;text&quot;),c(&quot;hovertext&quot;),c(&quot;hovertemplate&quot;);var u=c(&quot;textposition&quot;);if(a(t,e,i,c,u,{moduleHasSelected:!1,moduleHasUnselected:!1,moduleHasConstrain:!0,moduleHasCliponaxis:!0,moduleHasTextangle:!0,moduleHasInsideanchor:!0}),&quot;none&quot;!==e.textposition&amp;&amp;(c(&quot;texttemplate&quot;),e.texttemplate||c(&quot;textinfo&quot;)),p(c,&quot;increasing&quot;,f),p(c,&quot;decreasing&quot;,h),p(c,&quot;totals&quot;,&quot;#4499FF&quot;),c(&quot;connector.visible&quot;))c(&quot;connector.mode&quot;),c(&quot;connector.line.width&quot;)&amp;&amp;(c(&quot;connector.line.color&quot;),c(&quot;connector.line.dash&quot;))}else e.visible=!1},crossTraceDefaults:function(t,e){var r,a;function o(t){return n.coerce(a._input,a,l,t)}if(&quot;group&quot;===e.waterfallmode)for(var s=0;s&lt;t.length;s++)r=(a=t[s])._input,i(r,a,e,o)}}},{&quot;../../components/color&quot;:643,&quot;../../constants/delta.js&quot;:747,&quot;../../lib&quot;:778,&quot;../bar/defaults&quot;:925,&quot;../scatter/period_defaults&quot;:1207,&quot;../scatter/xy_defaults&quot;:1214,&quot;./attributes&quot;:1353}],1358:[function(t,e,r){&quot;use strict&quot;;e.exports=function(t,e){return t.x=&quot;xVal&quot;in e?e.xVal:e.x,t.y=&quot;yVal&quot;in e?e.yVal:e.y,&quot;initial&quot;in e&amp;&amp;(t.initial=e.initial),&quot;delta&quot;in e&amp;&amp;(t.delta=e.delta),&quot;final&quot;in e&amp;&amp;(t.final=e.final),e.xa&amp;&amp;(t.xaxis=e.xa),e.ya&amp;&amp;(t.yaxis=e.ya),t}},{}],1359:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../plots/cartesian/axes&quot;).hoverLabelText,i=t(&quot;../../components/color&quot;).opacity,a=t(&quot;../bar/hover&quot;).hoverOnBars,o=t(&quot;../../constants/delta.js&quot;),s=o.INCREASING.SYMBOL,l=o.DECREASING.SYMBOL;e.exports=function(t,e,r,o){var c=a(t,e,r,o);if(c){var u=c.cd,f=u[0].trace,h=&quot;h&quot;===f.orientation,p=h?t.xa:t.ya,d=u[c.index],g=d.isSum?d.b+d.s:d.rawS;if(!d.isSum){c.initial=d.b+d.s-g,c.delta=g,c.final=c.initial+c.delta;var m=w(Math.abs(c.delta));c.deltaLabel=g&lt;0?&quot;(&quot;+m+&quot;)&quot;:m,c.finalLabel=w(c.final),c.initialLabel=w(c.initial)}var v=d.hi||f.hoverinfo,y=[];if(v&amp;&amp;&quot;none&quot;!==v&amp;&amp;&quot;skip&quot;!==v){var x=&quot;all&quot;===v,b=v.split(&quot;+&quot;),_=function(t){return x||-1!==b.indexOf(t)};d.isSum||(!_(&quot;final&quot;)||_(h?&quot;x&quot;:&quot;y&quot;)||y.push(c.finalLabel),_(&quot;delta&quot;)&amp;&amp;(g&lt;0?y.push(c.deltaLabel+&quot; &quot;+l):y.push(c.deltaLabel+&quot; &quot;+s)),_(&quot;initial&quot;)&amp;&amp;y.push(&quot;Initial: &quot;+c.initialLabel))}return y.length&amp;&amp;(c.extraText=y.join(&quot;&lt;br&gt;&quot;)),c.color=function(t,e){var r=t[e.dir].marker,n=r.color,a=r.line.color,o=r.line.width;if(i(n))return n;if(i(a)&amp;&amp;o)return a}(f,d),[c]}function w(t){return n(p,t)}}},{&quot;../../components/color&quot;:643,&quot;../../constants/delta.js&quot;:747,&quot;../../plots/cartesian/axes&quot;:828,&quot;../bar/hover&quot;:928}],1360:[function(t,e,r){&quot;use strict&quot;;e.exports={attributes:t(&quot;./attributes&quot;),layoutAttributes:t(&quot;./layout_attributes&quot;),supplyDefaults:t(&quot;./defaults&quot;).supplyDefaults,crossTraceDefaults:t(&quot;./defaults&quot;).crossTraceDefaults,supplyLayoutDefaults:t(&quot;./layout_defaults&quot;),calc:t(&quot;./calc&quot;),crossTraceCalc:t(&quot;./cross_trace_calc&quot;),plot:t(&quot;./plot&quot;),style:t(&quot;./style&quot;).style,hoverPoints:t(&quot;./hover&quot;),eventData:t(&quot;./event_data&quot;),selectPoints:t(&quot;../bar/select&quot;),moduleType:&quot;trace&quot;,name:&quot;waterfall&quot;,basePlotModule:t(&quot;../../plots/cartesian&quot;),categories:[&quot;bar-like&quot;,&quot;cartesian&quot;,&quot;svg&quot;,&quot;oriented&quot;,&quot;showLegend&quot;,&quot;zoomScale&quot;],meta:{}}},{&quot;../../plots/cartesian&quot;:841,&quot;../bar/select&quot;:933,&quot;./attributes&quot;:1353,&quot;./calc&quot;:1354,&quot;./cross_trace_calc&quot;:1356,&quot;./defaults&quot;:1357,&quot;./event_data&quot;:1358,&quot;./hover&quot;:1359,&quot;./layout_attributes&quot;:1361,&quot;./layout_defaults&quot;:1362,&quot;./plot&quot;:1363,&quot;./style&quot;:1364}],1361:[function(t,e,r){&quot;use strict&quot;;e.exports={waterfallmode:{valType:&quot;enumerated&quot;,values:[&quot;group&quot;,&quot;overlay&quot;],dflt:&quot;group&quot;,editType:&quot;calc&quot;},waterfallgap:{valType:&quot;number&quot;,min:0,max:1,editType:&quot;calc&quot;},waterfallgroupgap:{valType:&quot;number&quot;,min:0,max:1,dflt:0,editType:&quot;calc&quot;}}},{}],1362:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../../lib&quot;),i=t(&quot;./layout_attributes&quot;);e.exports=function(t,e,r){var a=!1;function o(r,a){return n.coerce(t,e,i,r,a)}for(var s=0;s&lt;r.length;s++){var l=r[s];if(l.visible&amp;&amp;&quot;waterfall&quot;===l.type){a=!0;break}}a&amp;&amp;(o(&quot;waterfallmode&quot;),o(&quot;waterfallgap&quot;,.2),o(&quot;waterfallgroupgap&quot;))}},{&quot;../../lib&quot;:778,&quot;./layout_attributes&quot;:1361}],1363:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../lib&quot;),a=t(&quot;../../components/drawing&quot;),o=t(&quot;../../constants/numerical&quot;).BADNUM,s=t(&quot;../bar/plot&quot;),l=t(&quot;../bar/uniform_text&quot;).clearMinTextSize;e.exports=function(t,e,r,c){var u=t._fullLayout;l(&quot;waterfall&quot;,u),s.plot(t,e,r,c,{mode:u.waterfallmode,norm:u.waterfallmode,gap:u.waterfallgap,groupgap:u.waterfallgroupgap}),function(t,e,r,s){var l=e.xaxis,c=e.yaxis;i.makeTraceGroups(s,r,&quot;trace bars&quot;).each((function(r){var s=n.select(this),u=r[0].trace,f=i.ensureSingle(s,&quot;g&quot;,&quot;lines&quot;);if(u.connector&amp;&amp;u.connector.visible){var h=&quot;h&quot;===u.orientation,p=u.connector.mode,d=f.selectAll(&quot;g.line&quot;).data(i.identity);d.enter().append(&quot;g&quot;).classed(&quot;line&quot;,!0),d.exit().remove();var g=d.size();d.each((function(r,s){if(s===g-1||r.cNext){var u=function(t,e,r,n){var i=[],a=[],o=n?e:r,s=n?r:e;return i[0]=o.c2p(t.s0,!0),a[0]=s.c2p(t.p0,!0),i[1]=o.c2p(t.s1,!0),a[1]=s.c2p(t.p1,!0),i[2]=o.c2p(t.nextS0,!0),a[2]=s.c2p(t.nextP0,!0),n?[i,a]:[a,i]}(r,l,c,h),f=u[0],d=u[1],m=&quot;&quot;;f[0]!==o&amp;&amp;d[0]!==o&amp;&amp;f[1]!==o&amp;&amp;d[1]!==o&amp;&amp;(&quot;spanning&quot;===p&amp;&amp;!r.isSum&amp;&amp;s&gt;0&amp;&amp;(m+=h?&quot;M&quot;+f[0]+&quot;,&quot;+d[1]+&quot;V&quot;+d[0]:&quot;M&quot;+f[1]+&quot;,&quot;+d[0]+&quot;H&quot;+f[0]),&quot;between&quot;!==p&amp;&amp;(r.isSum||s&lt;g-1)&amp;&amp;(m+=h?&quot;M&quot;+f[1]+&quot;,&quot;+d[0]+&quot;V&quot;+d[1]:&quot;M&quot;+f[0]+&quot;,&quot;+d[1]+&quot;H&quot;+f[1]),f[2]!==o&amp;&amp;d[2]!==o&amp;&amp;(m+=h?&quot;M&quot;+f[1]+&quot;,&quot;+d[1]+&quot;V&quot;+d[2]:&quot;M&quot;+f[1]+&quot;,&quot;+d[1]+&quot;H&quot;+f[2])),&quot;&quot;===m&amp;&amp;(m=&quot;M0,0Z&quot;),i.ensureSingle(n.select(this),&quot;path&quot;).attr(&quot;d&quot;,m).call(a.setClipUrl,e.layerClipId,t)}}))}else f.remove()}))}(t,e,r,c)}},{&quot;../../components/drawing&quot;:665,&quot;../../constants/numerical&quot;:753,&quot;../../lib&quot;:778,&quot;../bar/plot&quot;:932,&quot;../bar/uniform_text&quot;:937,d3:169}],1364:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;d3&quot;),i=t(&quot;../../components/drawing&quot;),a=t(&quot;../../components/color&quot;),o=t(&quot;../../constants/interactions&quot;).DESELECTDIM,s=t(&quot;../bar/style&quot;),l=t(&quot;../bar/uniform_text&quot;).resizeText,c=s.styleTextPoints;e.exports={style:function(t,e,r){var s=r||n.select(t).selectAll(&quot;g.waterfalllayer&quot;).selectAll(&quot;g.trace&quot;);l(t,s,&quot;waterfall&quot;),s.style(&quot;opacity&quot;,(function(t){return t[0].trace.opacity})),s.each((function(e){var r=n.select(this),s=e[0].trace;r.selectAll(&quot;.point &gt; path&quot;).each((function(t){if(!t.isBlank){var e=s[t.dir].marker;n.select(this).call(a.fill,e.color).call(a.stroke,e.line.color).call(i.dashLine,e.line.dash,e.line.width).style(&quot;opacity&quot;,s.selectedpoints&amp;&amp;!t.selected?o:1)}})),c(r,s,t),r.selectAll(&quot;.lines&quot;).each((function(){var t=s.connector.line;i.lineGroupStyle(n.select(this).selectAll(&quot;path&quot;),t.width,t.color,t.dash)}))}))}}},{&quot;../../components/color&quot;:643,&quot;../../components/drawing&quot;:665,&quot;../../constants/interactions&quot;:752,&quot;../bar/style&quot;:935,&quot;../bar/uniform_text&quot;:937,d3:169}],1365:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../plots/cartesian/axes&quot;),i=t(&quot;../lib&quot;),a=t(&quot;../plot_api/plot_schema&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction,s=t(&quot;../constants/numerical&quot;).BADNUM;r.moduleType=&quot;transform&quot;,r.name=&quot;aggregate&quot;;var l=r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},groups:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},aggregations:{_isLinkedToArray:&quot;aggregation&quot;,target:{valType:&quot;string&quot;,editType:&quot;calc&quot;},func:{valType:&quot;enumerated&quot;,values:[&quot;count&quot;,&quot;sum&quot;,&quot;avg&quot;,&quot;median&quot;,&quot;mode&quot;,&quot;rms&quot;,&quot;stddev&quot;,&quot;min&quot;,&quot;max&quot;,&quot;first&quot;,&quot;last&quot;,&quot;change&quot;,&quot;range&quot;],dflt:&quot;first&quot;,editType:&quot;calc&quot;},funcmode:{valType:&quot;enumerated&quot;,values:[&quot;sample&quot;,&quot;population&quot;],dflt:&quot;sample&quot;,editType:&quot;calc&quot;},enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},editType:&quot;calc&quot;},editType:&quot;calc&quot;},c=l.aggregations;function u(t,e,r,a){if(a.enabled){for(var o=a.target,l=i.nestedProperty(e,o),c=l.get(),u=function(t,e){var r=t.func,n=e.d2c,a=e.c2d;switch(r){case&quot;count&quot;:return f;case&quot;first&quot;:return h;case&quot;last&quot;:return p;case&quot;sum&quot;:return function(t,e){for(var r=0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r+=o)}return a(r)};case&quot;avg&quot;:return function(t,e){for(var r=0,i=0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r+=l,i++)}return i?a(r/i):s};case&quot;min&quot;:return function(t,e){for(var r=1/0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r=Math.min(r,o))}return r===1/0?s:a(r)};case&quot;max&quot;:return function(t,e){for(var r=-1/0,i=0;i&lt;e.length;i++){var o=n(t[e[i]]);o!==s&amp;&amp;(r=Math.max(r,o))}return r===-1/0?s:a(r)};case&quot;range&quot;:return function(t,e){for(var r=1/0,i=-1/0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r=Math.min(r,l),i=Math.max(i,l))}return i===-1/0||r===1/0?s:a(i-r)};case&quot;change&quot;:return function(t,e){var r=n(t[e[0]]),i=n(t[e[e.length-1]]);return r===s||i===s?s:a(i-r)};case&quot;median&quot;:return function(t,e){for(var r=[],o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;r.push(l)}if(!r.length)return s;r.sort(i.sorterAsc);var c=(r.length-1)/2;return a((r[Math.floor(c)]+r[Math.ceil(c)])/2)};case&quot;mode&quot;:return function(t,e){for(var r={},i=0,o=s,l=0;l&lt;e.length;l++){var c=n(t[e[l]]);if(c!==s){var u=r[c]=(r[c]||0)+1;u&gt;i&amp;&amp;(i=u,o=c)}}return i?a(o):s};case&quot;rms&quot;:return function(t,e){for(var r=0,i=0,o=0;o&lt;e.length;o++){var l=n(t[e[o]]);l!==s&amp;&amp;(r+=l*l,i++)}return i?a(Math.sqrt(r/i)):s};case&quot;stddev&quot;:return function(e,r){var i,a=0,o=0,l=1,c=s;for(i=0;i&lt;r.length&amp;&amp;c===s;i++)c=n(e[r[i]]);if(c===s)return s;for(;i&lt;r.length;i++){var u=n(e[r[i]]);if(u!==s){var f=u-c;a+=f,o+=f*f,l++}}var h=&quot;sample&quot;===t.funcmode?l-1:l;return h?Math.sqrt((o-a*a/l)/h):0}}}(a,n.getDataConversions(t,e,o,c)),d=new Array(r.length),g=0;g&lt;r.length;g++)d[g]=u(c,r[g]);l.set(d),&quot;count&quot;===a.func&amp;&amp;i.pushUnique(e._arrayAttrs,o)}}function f(t,e){return e.length}function h(t,e){return t[e[0]]}function p(t,e){return t[e[e.length-1]]}r.supplyDefaults=function(t,e){var r,n={};function o(e,r){return i.coerce(t,n,l,e,r)}if(!o(&quot;enabled&quot;))return n;var s=a.findArrayAttributes(e),u={};for(r=0;r&lt;s.length;r++)u[s[r]]=1;var f=o(&quot;groups&quot;);if(!Array.isArray(f)){if(!u[f])return n.enabled=!1,n;u[f]=0}var h,p=t.aggregations||[],d=n.aggregations=new Array(p.length);function g(t,e){return i.coerce(p[r],h,c,t,e)}for(r=0;r&lt;p.length;r++){h={_index:r};var m=g(&quot;target&quot;),v=g(&quot;func&quot;);g(&quot;enabled&quot;)&amp;&amp;m&amp;&amp;(u[m]||&quot;count&quot;===v&amp;&amp;void 0===u[m])?(&quot;stddev&quot;===v&amp;&amp;g(&quot;funcmode&quot;),u[m]=0,d[r]=h):d[r]={enabled:!1,_index:r}}for(r=0;r&lt;s.length;r++)u[s[r]]&amp;&amp;d.push({target:s[r],func:c.func.dflt,enabled:!0,_index:-1});return n},r.calcTransform=function(t,e,r){if(r.enabled){var n=r.groups,a=i.getTargetArray(e,{target:n});if(a){var s,l,c,f,h={},p={},d=[],g=o(e.transforms,r),m=a.length;for(e._length&amp;&amp;(m=Math.min(m,e._length)),s=0;s&lt;m;s++)void 0===(c=h[l=a[s]])?(h[l]=d.length,f=[s],d.push(f),p[h[l]]=g(s)):(d[c].push(s),p[h[l]]=(p[h[l]]||[]).concat(g(s)));r._indexToPoints=p;var v=r.aggregations;for(s=0;s&lt;v.length;s++)u(t,e,d,v[s]);&quot;string&quot;==typeof n&amp;&amp;u(t,e,d,{target:n,func:&quot;first&quot;,enabled:!0}),e._length=d.length}}}},{&quot;../constants/numerical&quot;:753,&quot;../lib&quot;:778,&quot;../plot_api/plot_schema&quot;:816,&quot;../plots/cartesian/axes&quot;:828,&quot;./helpers&quot;:1368}],1366:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../registry&quot;),a=t(&quot;../plots/cartesian/axes&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction,s=t(&quot;../constants/filter_ops&quot;),l=s.COMPARISON_OPS,c=s.INTERVAL_OPS,u=s.SET_OPS;r.moduleType=&quot;transform&quot;,r.name=&quot;filter&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},target:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},operation:{valType:&quot;enumerated&quot;,values:[].concat(l).concat(c).concat(u),dflt:&quot;=&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:0,editType:&quot;calc&quot;},preservegaps:{valType:&quot;boolean&quot;,dflt:!1,editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t){var e={};function a(i,a){return n.coerce(t,e,r.attributes,i,a)}if(a(&quot;enabled&quot;)){var o=a(&quot;target&quot;);if(n.isArrayOrTypedArray(o)&amp;&amp;0===o.length)return e.enabled=!1,e;a(&quot;preservegaps&quot;),a(&quot;operation&quot;),a(&quot;value&quot;);var s=i.getComponentMethod(&quot;calendars&quot;,&quot;handleDefaults&quot;);s(t,e,&quot;valuecalendar&quot;,null),s(t,e,&quot;targetcalendar&quot;,null)}return e},r.calcTransform=function(t,e,r){if(r.enabled){var i=n.getTargetArray(e,r);if(i){var s=r.target,f=i.length;e._length&amp;&amp;(f=Math.min(f,e._length));var h=r.targetcalendar,p=e._arrayAttrs,d=r.preservegaps;if(&quot;string&quot;==typeof s){var g=n.nestedProperty(e,s+&quot;calendar&quot;).get();g&amp;&amp;(h=g)}var m,v,y=function(t,e,r){var n=t.operation,i=t.value,a=Array.isArray(i);function o(t){return-1!==t.indexOf(n)}var s,f=function(r){return e(r,0,t.valuecalendar)},h=function(t){return e(t,0,r)};o(l)?s=f(a?i[0]:i):o(c)?s=a?[f(i[0]),f(i[1])]:[f(i),f(i)]:o(u)&amp;&amp;(s=a?i.map(f):[f(i)]);switch(n){case&quot;=&quot;:return function(t){return h(t)===s};case&quot;!=&quot;:return function(t){return h(t)!==s};case&quot;&lt;&quot;:return function(t){return h(t)&lt;s};case&quot;&lt;=&quot;:return function(t){return h(t)&lt;=s};case&quot;&gt;&quot;:return function(t){return h(t)&gt;s};case&quot;&gt;=&quot;:return function(t){return h(t)&gt;=s};case&quot;[]&quot;:return function(t){var e=h(t);return e&gt;=s[0]&amp;&amp;e&lt;=s[1]};case&quot;()&quot;:return function(t){var e=h(t);return e&gt;s[0]&amp;&amp;e&lt;s[1]};case&quot;[)&quot;:return function(t){var e=h(t);return e&gt;=s[0]&amp;&amp;e&lt;s[1]};case&quot;(]&quot;:return function(t){var e=h(t);return e&gt;s[0]&amp;&amp;e&lt;=s[1]};case&quot;][&quot;:return function(t){var e=h(t);return e&lt;=s[0]||e&gt;=s[1]};case&quot;)(&quot;:return function(t){var e=h(t);return e&lt;s[0]||e&gt;s[1]};case&quot;](&quot;:return function(t){var e=h(t);return e&lt;=s[0]||e&gt;s[1]};case&quot;)[&quot;:return function(t){var e=h(t);return e&lt;s[0]||e&gt;=s[1]};case&quot;{}&quot;:return function(t){return-1!==s.indexOf(h(t))};case&quot;}{&quot;:return function(t){return-1===s.indexOf(h(t))}}}(r,a.getDataToCoordFunc(t,e,s,i),h),x={},b={},_=0;d?(m=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set(new Array(f))},v=function(t,e){var r=x[t.astr][e];t.get()[e]=r}):(m=function(t){x[t.astr]=n.extendDeep([],t.get()),t.set([])},v=function(t,e){var r=x[t.astr][e];t.get().push(r)}),k(m);for(var w=o(e.transforms,r),T=0;T&lt;f;T++){y(i[T])?(k(v,T),b[_++]=w(T)):d&amp;&amp;_++}r._indexToPoints=b,e._length=_}}function k(t,r){for(var i=0;i&lt;p.length;i++){t(n.nestedProperty(e,p[i]),r)}}}},{&quot;../constants/filter_ops&quot;:749,&quot;../lib&quot;:778,&quot;../plots/cartesian/axes&quot;:828,&quot;../registry&quot;:911,&quot;./helpers&quot;:1368}],1367:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plot_api/plot_schema&quot;),a=t(&quot;../plots/plots&quot;),o=t(&quot;./helpers&quot;).pointsAccessorFunction;function s(t,e){var r,s,l,c,u,f,h,p,d,g,m=e.transform,v=e.transformIndex,y=t.transforms[v].groups,x=o(t.transforms,m);if(!n.isArrayOrTypedArray(y)||0===y.length)return[t];var b=n.filterUnique(y),_=new Array(b.length),w=y.length,T=i.findArrayAttributes(t),k=m.styles||[],M={};for(r=0;r&lt;k.length;r++)M[k[r].target]=k[r].value;m.styles&amp;&amp;(g=n.keyedContainer(m,&quot;styles&quot;,&quot;target&quot;,&quot;value.name&quot;));var A={},S={};for(r=0;r&lt;b.length;r++){A[f=b[r]]=r,S[f]=0,(h=_[r]=n.extendDeepNoArrays({},t))._group=f,h.transforms[v]._indexToPoints={};var E=null;for(g&amp;&amp;(E=g.get(f)),h.name=E||&quot;&quot;===E?E:n.templateString(m.nameformat,{trace:t.name,group:f}),p=h.transforms,h.transforms=[],s=0;s&lt;p.length;s++)h.transforms[s]=n.extendDeepNoArrays({},p[s]);for(s=0;s&lt;T.length;s++)n.nestedProperty(h,T[s]).set([])}for(l=0;l&lt;T.length;l++){for(c=T[l],s=0,d=[];s&lt;b.length;s++)d[s]=n.nestedProperty(_[s],c).get();for(u=n.nestedProperty(t,c).get(),s=0;s&lt;w;s++)d[A[y[s]]].push(u[s])}for(s=0;s&lt;w;s++){(h=_[A[y[s]]]).transforms[v]._indexToPoints[S[y[s]]]=x(s),S[y[s]]++}for(r=0;r&lt;b.length;r++)f=b[r],h=_[r],a.clearExpandedTraceDefaultColors(h),h=n.extendDeepNoArrays(h,M[f]||{});return _}r.moduleType=&quot;transform&quot;,r.name=&quot;groupby&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},groups:{valType:&quot;data_array&quot;,dflt:[],editType:&quot;calc&quot;},nameformat:{valType:&quot;string&quot;,editType:&quot;calc&quot;},styles:{_isLinkedToArray:&quot;style&quot;,target:{valType:&quot;string&quot;,editType:&quot;calc&quot;},value:{valType:&quot;any&quot;,dflt:{},editType:&quot;calc&quot;,_compareAsJSON:!0},editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t,e,i){var a,o={};function s(e,i){return n.coerce(t,o,r.attributes,e,i)}if(!s(&quot;enabled&quot;))return o;s(&quot;groups&quot;),s(&quot;nameformat&quot;,i._dataLength&gt;1?&quot;%{group} (%{trace})&quot;:&quot;%{group}&quot;);var l=t.styles,c=o.styles=[];if(l)for(a=0;a&lt;l.length;a++){var u=c[a]={};n.coerce(l[a],c[a],r.attributes.styles,&quot;target&quot;);var f=n.coerce(l[a],c[a],r.attributes.styles,&quot;value&quot;);n.isPlainObject(f)?u.value=n.extendDeep({},f):f&amp;&amp;delete u.value}return o},r.transform=function(t,e){var r,n,i,a=[];for(n=0;n&lt;t.length;n++)for(r=s(t[n],e),i=0;i&lt;r.length;i++)a.push(r[i]);return a}},{&quot;../lib&quot;:778,&quot;../plot_api/plot_schema&quot;:816,&quot;../plots/plots&quot;:891,&quot;./helpers&quot;:1368}],1368:[function(t,e,r){&quot;use strict&quot;;r.pointsAccessorFunction=function(t,e){for(var r,n,i=0;i&lt;t.length&amp;&amp;(r=t[i])!==e;i++)r._indexToPoints&amp;&amp;!1!==r.enabled&amp;&amp;(n=r._indexToPoints);return n?function(t){return n[t]}:function(t){return[t]}}},{}],1369:[function(t,e,r){&quot;use strict&quot;;var n=t(&quot;../lib&quot;),i=t(&quot;../plots/cartesian/axes&quot;),a=t(&quot;./helpers&quot;).pointsAccessorFunction,o=t(&quot;../constants/numerical&quot;).BADNUM;r.moduleType=&quot;transform&quot;,r.name=&quot;sort&quot;,r.attributes={enabled:{valType:&quot;boolean&quot;,dflt:!0,editType:&quot;calc&quot;},target:{valType:&quot;string&quot;,strict:!0,noBlank:!0,arrayOk:!0,dflt:&quot;x&quot;,editType:&quot;calc&quot;},order:{valType:&quot;enumerated&quot;,values:[&quot;ascending&quot;,&quot;descending&quot;],dflt:&quot;ascending&quot;,editType:&quot;calc&quot;},editType:&quot;calc&quot;},r.supplyDefaults=function(t){var e={};function i(i,a){return n.coerce(t,e,r.attributes,i,a)}return i(&quot;enabled&quot;)&amp;&amp;(i(&quot;target&quot;),i(&quot;order&quot;)),e},r.calcTransform=function(t,e,r){if(r.enabled){var s=n.getTargetArray(e,r);if(s){var l=r.target,c=s.length;e._length&amp;&amp;(c=Math.min(c,e._length));var u,f,h=e._arrayAttrs,p=function(t,e,r,n){var i,a=new Array(n),s=new Array(n);for(i=0;i&lt;n;i++)a[i]={v:e[i],i:i};for(a.sort(function(t,e){switch(t.order){case&quot;ascending&quot;:return function(t,r){var n=e(t.v),i=e(r.v);return n===o?1:i===o?-1:n-i};case&quot;descending&quot;:return function(t,r){var n=e(t.v),i=e(r.v);return n===o?1:i===o?-1:i-n}}}(t,r)),i=0;i&lt;n;i++)s[i]=a[i].i;return s}(r,s,i.getDataToCoordFunc(t,e,l,s),c),d=a(e.transforms,r),g={};for(u=0;u&lt;h.length;u++){var m=n.nestedProperty(e,h[u]),v=m.get(),y=new Array(c);for(f=0;f&lt;c;f++)y[f]=v[p[f]];m.set(y)}for(f=0;f&lt;c;f++)g[f]=d(p[f]);r._indexToPoints=g,e._length=c}}}},{&quot;../constants/numerical&quot;:753,&quot;../lib&quot;:778,&quot;../plots/cartesian/axes&quot;:828,&quot;./helpers&quot;:1368}],1370:[function(t,e,r){&quot;use strict&quot;;r.version=&quot;1.58.4&quot;},{}]},{},[26])(26)}));&lt;/script&gt;                &lt;div id=&quot;686c1e60-26ac-4f34-86ec-c00956d77346&quot; class=&quot;plotly-graph-div&quot; style=&quot;height:100%; width:100%;&quot;&gt;&lt;/div&gt;            &lt;script type=&quot;text/javascript&quot;&gt;                                    window.PLOTLYENV=window.PLOTLYENV || {};                                    if (document.getElementById(&quot;686c1e60-26ac-4f34-86ec-c00956d77346&quot;)) {                    Plotly.newPlot(                        &quot;686c1e60-26ac-4f34-86ec-c00956d77346&quot;,                        [{&quot;alignmentgroup&quot;: &quot;True&quot;, &quot;bingroup&quot;: &quot;x&quot;, &quot;histfunc&quot;: &quot;avg&quot;, &quot;hovertemplate&quot;: &quot;LATITUDE=%{x}&lt;br&gt;avg of ESTIMATED YEAR INCREASE (C)=%{y}&lt;extra&gt;&lt;/extra&gt;&quot;, &quot;legendgroup&quot;: &quot;&quot;, &quot;marker&quot;: {&quot;color&quot;: &quot;#636efa&quot;}, &quot;name&quot;: &quot;&quot;, &quot;nbinsx&quot;: 9, &quot;offsetgroup&quot;: &quot;&quot;, &quot;orientation&quot;: &quot;v&quot;, &quot;showlegend&quot;: false, &quot;type&quot;: &quot;histogram&quot;, &quot;x&quot;: [-22.83, -2.88, -6.973, -25.9167, -33.57, -67.8, -34.9524, -34.9211, -34.8533, -34.7833, -34.9697, -34.9254, -35.3077, -7.78, -19.533, -34.559, -25.45, -10.433, -10.6, -9.28, -19.483, -38.4583, -18.8333, -6.32, -13.28, -12.14, -35.0289, -34.9414, -36.85, -34.5638, -36.0692, -36.069, -36.0817, -29.8, -28.5667, -37.1916, -9.879, -4.193, -46.433, -23.7951, -30.8, -30.68, -21.0025, -8.217, -28.8521, -3.2, -9.867, -35.3725, -39.01, -22.96, -9.1, -7.4, -19.4569, -13.8483, -7.2, -3.35, -5.1, -27.6297, -3.7, -3.7, -8.53, -14.633, -2.32, -41.9, -27.6, -30.449, -20.233, -36.5, -13.9833, -14.83, -18.867, -18.8, -23.433, -23.5, -14.999, -12.35, -13.8149, -13.8, -5.61, -14.733, -28.6217, -8.7, -10.917, -16.83, -15.9, -37.2833, -37.2775, -19.567, -27.5717, -8.41, -34.3567, -6.58, -16.332, -16.4, -16.6381, -18.35, -18.5, -15.91, -30.311, -23.4564, -30.5273, -30.5167, -30.5264, -26.95, -2.6667, -33.393, -3.333, -15.717, -7.9, -38.0333, -4.44, -25.27, -8.5333, -9.8, -9.8, -37.0, -28.6, -8.78, -38.0287, -22.35, -13.13, -25.34, -19.6169, -36.833, -36.8, -28.38, -4.21, -33.8969, -33.8683, -30.3381, -31.333, -38.733, -0.58, -20.23, -37.8333, -37.8817, -37.8167, -31.7603, -37.75, -82.767, -31.09, -20.1417, -32.4569, -37.6, -37.5127, -27.4008, -28.8353, -45.917, -34.6398, -0.9, -33.9181, -1.38, -8.217, -30.9469, -24.1819, -7.317, -25.78, -23.5544, -0.981, -11.08, -30.3781, -5.5, -21.18, -12.15, -21.5317, -38.32, -20.8206, -20.875, -21.698, -64.88, -62.5, -74.7, -77.867, -63.317, -63.4, -62.233, -64.233, -60.733, -68.117, -32.23, -13.0545, -35.7234, -33.4289, -33.412, -33.52, -33.4167, -8.5, -22.317, -5.467, -32.35, -24.3597, -36.3702, -26.9586, -36.6722, -36.6884, -19.8, -22.217, -35.0042, -1.45, -25.65, -77.9667, -34.3691, -28.43, -30.267, -30.4519, -62.183, -32.5, -19.9333, -19.833, -2.633, -36.5483, -30.8081, -36.7395, -36.7533, -3.87, -3.9, -4.383, -29.15, -35.6577, -34.2833, -26.467, -28.248, -23.18, -35.9384, -32.1083, -1.183, -1.2, -41.8739, -32.0056, -18.6844, -24.3789, -17.617, -29.8673, -35.9825, -25.8975, -25.9003, -54.0, -32.9, -24.4303, -24.4214, -11.1538, -29.1, -18.53, -29.05, -36.8056, -6.7, -6.5, -36.2, -28.0336, -37.0016, -36.9113, -19.68, -28.66, -13.267, -9.1, -64.783, -36.1333, -34.4382, -36.116, -27.7556, -25.15, -16.4333, -16.45, -37.85, -16.0757, -27.4, -42.3883, -17.5333, -22.9117, -30.0362, -30.0917, -20.0151, -20.0167, -34.4869, -34.5, -14.9408, -1.0833, -35.4253, -35.4489, -30.47, -15.783, -15.867, -4.25, -1.68, -29.9614, -83.89, -25.655, -33.9486, -33.9575, -41.0025, -24.8353, -36.7313, -37.9252, -27.4808, -27.4178, -27.3917, -27.4778, -29.0167, -32.0012, -31.9759, -31.9333, -31.8803, -14.4, -42.1419, -35.8, -32.3725, -17.9475, -18.637, -27.1, -1.039, -6.293, -34.583, -21.017, -31.37, -25.75, -3.32, -2.5, -1.333, -20.017, -20.15, -24.5333, -28.4967, -43.0903, -13.6714, -33.3567, -33.3267, -24.8885, -24.8667, -30.1711, -37.7163, -19.5775, -31.0, -17.7483, -17.7425, -41.0661, -34.9997, -42.7097, -33.655, -33.6858, -33.6611, -24.0222, -28.77, -42.2811, -80.0, -80.0167, -28.6399, -28.6388, -26.183, -5.55, -22.53, -46.83, -35.9383, -35.9371, -8.517, -16.05, -14.05, -16.6, -16.8736, -16.9333, -7.15, -21.91, -34.6345, -26.8017, -31.467, -29.05, -27.7072, -34.0391, -2.25, -20.05, -19.9225, -42.6867, -32.7, -34.0833, -52.55, -38.2331, -23.0, -7.217, -7.13, -21.75, -22.75, -27.38, -7.0, -29.68, -20.45, -24.05, -2.55, -13.47, -15.667, -35.3049, -35.2667, -35.3, -13.12, -29.946, -33.572, -33.9057, -2.7667, -20.51, -33.9, -34.833, -77.22, -35.7549, -35.7529, -43.4886, -43.4892, -23.4833, -19.1833, -32.833, -36.0667, -11.3167, -14.9672, -40.6828, -31.633, -36.9655, -34.3728, -16.3961, -27.0314, -33.5372, -38.4306, -38.4319, -38.0573, -38.8556, -73.517, -76.717, -38.4931, -42.1986, -34.18, -34.2, -28.5, -33.93, -33.965, -35.8426, -18.71, -8.081, -34.85, -5.206, -26.933, -4.577, -19.543, -6.787, -8.378, -35.65, -35.65, -9.283, -25.8, -19.8, -17.733, -17.53, -33.6167, -18.2553, -26.33, -21.93, -29.6889, -30.97, -24.8878, -25.7964, -7.333, -26.07, -34.838, -36.773, -7.68, -66.283, -28.97, -33.0, -28.8755, -28.8775, -31.9963, -34.67, -37.583, -37.5909, -37.1, -37.0809, -24.783, -18.18, -28.596, -28.5, -28.48, -21.133, -25.596, -28.98, -4.86, -29.16, -4.52, -5.65, -29.533, -32.1297, -32.1267, -33.8959, -13.3275, -15.7426, -62.42, -62.183, -18.7569, -38.3646, -29.883, -32.95, -27.65, -10.92, -32.7886, -32.8093, -32.8272, -26.9, -6.2, -6.2, -32.98, -30.367, -27.296, -13.1672, -3.73, -27.117, -17.58, -17.58, -26.4139, -36.4335, -36.2847, -36.3, -20.0464, -20.0781, -43.95, -31.333, -25.2361, -15.683, -36.5833, -19.117, -13.55, -20.2, -39.2, -16.85, -37.1, -43.489, -10.45, -14.78, -7.733, -7.7, -11.083, -38.95, -6.75, -25.533, -32.2, -33.8226, -33.8364, -22.8239, -33.7011, -33.7081, -20.6717, -20.6664, -30.0903, -37.3049, -4.083, -31.5389, -31.484, -31.5, -11.03, -17.42, -16.09, -10.0511, -12.183, -3.833, -13.7606, -13.7642, -13.9447, -30.3107, -38.3933, -38.2333, -38.3427, -37.7239, -6.03, -29.5407, -33.36, -33.3608, -20.5534, -34.5, -45.58, -9.347, -37.3417, -31.297, -45.783, -32.4, -8.25, -8.25, -19.033, -36.83, -23.43, -16.25, -23.4, -31.38, -33.0664, -33.0682, -33.0818, -33.0833, -28.3167, -35.32, -29.004, -29.0347, -30.6143, -15.4461, -15.4486, -15.4633, -28.1681, -28.1661, -32.2, -36.2939, -36.2167, -36.2318, -31.3304, -31.2712, -30.9776, -30.9753, -37.3, -37.2906, -34.6333, -34.6299, -34.6411, -27.35, -29.95, -22.02, -31.317, -31.4, -18.053, -13.155, -25.467, -21.55, -37.433, -35.9887, -13.33, -27.446, -32.3292, -36.1828, -36.2003, -19.083, -19.0, -0.63, -34.3749, -33.8449, -33.8451, -33.9, -33.8087, -45.5833, -45.55, -41.6383, -32.16, -37.1475, -38.1348, -5.167, -41.7256, -41.7219, -37.4172, -32.83, -26.8094, -34.4578, -18.2044, -7.633, -6.43, -28.63, -12.66, -27.4233, -15.55, -15.65, -31.6494, -31.6219, -28.0706, -34.967, -25.417, -25.517, -39.9322, -17.5736, -25.3139, -6.23, -18.75, -13.6, -13.52, -16.4514, -0.479, -27.1605, -27.1839, -30.2761, -30.2772, -16.253, -16.2636, -20.7278, -36.5353, -9.083, -12.4239, -12.4227, -6.867, -6.5, -68.583, -30.667, -39.4764, -62.98, -15.7442, -26.73, -26.15, -25.9261, -35.5575, -35.3667, -35.5269, -34.9511, -8.749, -17.3706, -17.3044, -41.1833, -41.1708, -41.18, -30.65, -25.17, -18.23, -14.4, -20.535, -7.3, -12.3, -29.6694, -33.95, -8.5667, -62.183, -37.0491, -20.17, -2.7, -2.53, -6.167, -10.1, -32.517, -4.18, -36.35, -74.5, -75.117, -77.317, -80.37, -76.42, -36.3697, -36.4, -33.5719, -18.72, -15.3797, -26.62, -30.3442, -25.9319, -13.8345, -43.3167, -32.2206, -32.2385, -66.667, -12.635, -7.4, -45.9, -45.9, -32.0159, -33.35, -29.97, -37.8233, -32.7103, -12.805, -66.717, -67.4, -25.05, -33.033, -33.0, -32.7483, -38.1156, -38.1072, -36.1647, -35.1833, -40.9928, -37.0222, -34.7111, -35.1121, -37.2091, -6.66, -83.133, -26.3, -82.617, -38.2456, -31.333, -17.5521, -41.0828, -33.6501, -33.84, -4.25, -16.5, -16.513, -41.943, -50.267, -17.812, -0.5, -23.5694, -29.93, -23.5267, -23.0314, -27.3, -30.53, -50.483, -29.8183, -37.9743, -26.2925, -26.2635, -41.4506, -28.88, -33.83, -33.6825, -33.6031, -33.85, -3.9, -14.91, -42.933, -37.7276, -29.02, -30.4, -41.08, -31.6797, -34.1754, -36.7545, -34.5833, -52.4, -29.183, -32.2464, -2.883, -36.8708, -27.05, -65.4, -22.805, -13.312, -3.864, -29.77, -8.7, -12.18, -3.85, -37.8775, -62.1, -77.9, -21.45, -21.442, -28.817, -41.6428, -25.5833, -18.1814, -18.1919, -16.9267, -40.0911, -6.11, -19.88, -6.767, -27.583, -2.533, -33.3627, -33.3892, -26.213, -15.54, -14.93, -30.8453, -30.8389, -32.1756, -3.767, -41.2039, -32.783, -13.67, -71.317, -31.99, -31.0867, -25.52, -20.55, -1.63, -1.667, -21.217, -27.27, -38.1481, -31.917, -32.055, -41.9953, -34.2739, -20.03, -21.233, -8.5, -8.517, -14.317, -70.9, -24.667, -37.5679, -22.809, -12.028, -1.87, -1.9, -8.883, -8.53, -32.2433, -0.467, -25.0544, -27.5456, -25.6167, -25.6258, -38.085, -38.1167, -43.1639, -43.1589, -37.22, -38.5304, -25.75, -25.82, -25.42, -34.92, -37.4, -36.582, -22.62, -27.75, -35.696, -36.5, -7.139, -34.0, -33.359, -18.3039, -18.3, -18.2922, -34.017, -28.7953, -21.7, -25.03, -25.0341, -31.7055, -79.983, -28.1, -31.4628, -28.9, -38.65, -23.8697, -23.8553, -12.2, -27.8333, -28.95, -29.6953, -29.678, -29.646, -29.7368, -33.8167, -33.7622, -23.567, -22.5, -40.869, -48.783, -16.667, -16.633, -7.33, -15.91, -18.217, -20.3422, -27.939, -22.88, -35.5147, -31.2994, -28.5211, -28.5481, -6.07, -33.3949, -32.0486, -40.35, -34.75, -34.8085, -34.7495, -12.2741, -29.1, -32.25, -29.7583, -29.6823, -29.6224, -33.283, -5.48, -24.75, -37.295, -18.98, -33.53, -62.217, -37.2622, -37.2614, -16.7614, -33.9029, -34.2487, -34.3183, -13.9747, -19.6, -31.48, -38.2241, -42.9831, -42.9858, -54.283, -9.4333, -24.083, -33.01, -16.6, -4.28, -16.73, -22.783, -23.43, -10.817, -35.75, -32.3634, -35.0778, -35.0479, -30.9537, -30.9841, -31.0261, -34.0111, -2.2, -30.2126, -30.2204, -19.43, -19.45, -26.1831, -6.3, -75.45, -18.2292, -18.2303, -26.4008, -37.7333, -37.6486, -20.3658, -20.3531, -37.825, -19.083, -18.0631, -17.83, -17.917, -31.8714, -83.0, -43.2006, -33.0789, -29.4227, -5.062, -43.4144, -31.8846, -34.5194, -0.25, -37.6833, -53.017, -53.1, -32.82, -30.63, -9.7, -89.0, -17.39, -17.5851, -19.9, -28.2061, -23.4422, -25.322, -38.1355, -13.233, -39.38, -33.41, -33.4915, -35.5194, -9.8, -42.9, -42.8339, -42.8897, -24.37, -42.717, -33.9795, -35.5833, -9.417, -9.9, -27.83, -35.7151, -33.9306, -10.5844, -36.6697, -36.6613, -33.8511, -22.483, -36.9833, -12.8, -12.067, -9.89, -9.5, -20.8192, -20.8447, -36.1039, -36.2136, -18.633, -32.4419, -2.746, -11.01, -20.01, -28.65, -22.83, -24.7167, -6.367, -25.733, -22.25, -11.583, -46.5, -22.333, -17.05, -14.8, -15.82, -5.533, -5.32, -26.9, -18.6494, -28.5, -23.867, -18.4, -25.8428, -17.5249, -1.967, -46.417, -29.7783, -29.7796, -29.7752, -17.717, -27.6117, -20.3, -3.783, -27.183, -25.467, -11.3, -7.783, -1.83, -24.2591, -2.705, -27.167, -67.17, -43.53, -33.62, -38.37, -36.98, -7.62, -11.11, -12.51, -3.127, -4.267, -17.85, -21.2, -13.35, -13.81, -18.95, -18.41, -25.0, -32.8831, -32.8999, -22.317, -0.35, -12.6594, -30.25, -11.183, -33.8878, -4.783, -6.25, -6.183, -6.1, -1.6, -31.117, -15.783, -32.1011, -32.933, -0.353, -33.7964, -17.91, -2.367, -2.567, -0.9, -30.6167, -36.14, -32.4972, -35.083, -35.0936, -35.0936, -22.9494, -26.53, -26.6644, -19.83, -7.1, -17.73, -26.2, -26.139, -1.317, -33.97, -12.022, -33.83, -19.007, -7.169, -33.633, -33.45, -17.963, -21.8, -21.767, -24.393, -15.467, -20.6672, -20.6569, -34.8456, -34.546, -16.77, -30.3081, -1.25, -14.45, -33.9551, -33.9703, -42.417, -3.645, -17.215, -35.1, -35.1, -31.9822, -27.7119, -5.88, -30.7847, -7.05, -24.6925, -14.2964, -14.2961, -13.8, -37.1169, -5.9, -33.38, -14.8, -34.3412, -16.517, -32.44, -16.833, -9.95, -35.09, -20.7097, -10.217, -10.2, -17.817, -13.53, -33.6856, -33.6886, -14.4437, -14.4589, -14.4833, -33.7122, -26.58, -36.098, -36.1058, -41.2833, -31.6183, -6.15, -31.0711, -31.077, -4.1, -15.95, -35.7236, -2.767, -37.8167, -36.2304, -36.2254, -34.675, -35.8833, -16.1176, -1.969, -4.883, -5.036, -3.433, -28.3344, -33.1414, -28.8, -15.6547, -2.95, -26.5737, -26.5544, -35.6569, -35.7114, -39.88, -62.217, -32.87, -10.42, -33.98, -0.1, -6.083, -29.78, -75.0, -33.83, -4.717, -6.2, -17.84, -28.2, -3.4, -20.567, -15.4818, -27.63, -26.1, -35.1712, -25.8428, -33.2333, -15.7828, -15.7814, -10.167, -10.2, -15.4875, -27.47, -18.933, -32.2258, -36.335, -33.1332, -36.8803, -37.25, -34.133, -7.25, -1.617, -33.73, -33.48, -28.55, -24.1116, -30.88, -6.73, -27.81, -19.65, -28.21, -50.333, -34.456, -33.2, -18.3325, -18.233, -37.8692, -33.2833, -37.2313, -33.1006, -33.1006, -42.0097, -42.0067, -42.1, -42.1178, -34.0398, -16.417, -0.704, -21.94, -6.9, -35.3778, -35.3288, -31.0164, -32.97, -33.28, -8.267, -15.5748, -27.1, -0.833, -34.7, -36.067, -24.7, -0.9, -41.5492, -41.5397, -41.4667, -41.4194, -18.2, -28.6306, -28.6133, -37.8565, -66.733, -17.55, -34.45, -12.08, -11.52, -16.5, -30.8, -34.972, -12.07, -22.1, -29.383, -23.13, -29.917, -29.9, -4.0, -22.0172, -22.2833, -22.2406, -34.567, -30.4667, -30.5963, -27.8386, -36.3608, -12.567, -69.5, -34.9482, -28.8836, -28.8789, -28.95, -23.85, -4.1, -82.517, -23.08, -41.8997, -41.8983, -13.3, -26.133, -33.45, -29.431, -13.97, -13.789, -12.1, -75.42, -43.63, -78.467, -25.48, -19.4, -28.8343, -28.807, -37.9543, -28.7853, -33.4901, -33.3675, -33.9272, -17.817, -12.33, -28.17, -12.785, -3.5, -27.6839, -4.033, -11.32, -23.383, -23.333, -36.6722, -23.4372, -23.4372, -23.45, -38.43, -37.2822, -31.542, -38.5333, -25.4, -32.3322, -2.05, -26.0, -41.0556, -41.0567, -16.3842, -34.439, -34.4333, -8.85, -14.933, -11.591, -34.0517, -36.9731, -18.5203, -26.63, -11.7833, -15.52, -5.8, -15.033, -41.1492, -15.42, -15.3167, -3.41, -3.233, -2.62, -43.6578, -37.1, -5.49, -4.367, -5.117, -37.4155, -9.66, -9.517, -9.39, -21.667, -21.1706, -21.1172, -54.499, -33.7791, -5.2, -5.217, -37.9664, -7.917, -25.798, -13.4, -13.333, -15.7167, -23.12, -19.833, -4.6, -18.05, -34.3745, -32.7427, -2.5, -3.483, -27.4, -2.28, -0.02, -9.55, -35.494, -36.9989, -26.7528, -3.229, -3.2167, -37.5976, -33.467, -20.97, -21.2, -3.133, -29.15, -7.3, -19.7419, -32.5219, -32.5211, -32.5031, -31.82, -36.8886, -23.133, -13.7379, -33.2894, -5.811, -12.0482, -12.0569, -34.2508, -74.95, -26.533, -25.921, -41.25, -5.369, -23.15, -21.1756, -21.1756, -24.98, -77.4167, -32.684, -21.1906, -17.0672, -16.995, -30.85, -22.31, -42.6619, -37.775, -22.92, -25.5, -19.4, -79.95, -23.4, -46.883, -22.017, -27.3002, -23.15, -26.6006, -40.9089, -29.6587, -29.6481, -33.7654, -37.8, -37.056, -25.5161, -32.9131, -38.0, -37.933, -2.55, -29.82, -20.067, -5.8, -8.75, -35.8119, -33.43, -19.133, -10.25, -19.983, -15.833, -67.6, -42.7636, -42.7567, -3.42, -3.417, -0.62, -8.933, -6.167, -16.4423, -11.0468, -77.8833, -32.2208, -26.6136, -37.6655, -37.8075, -32.366, -32.35, -42.4928, -32.833, -32.883, -32.3937, -35.6902, -14.65, -29.6939, -8.467, -34.2133, -33.25, -33.3, -34.7, -29.17, -36.9077, -36.9106, -31.4756, -31.4994, -22.27, -34.5961, -53.42, -12.5781, -12.605, -2.1167, -34.2358, -26.6569, -26.6581, -44.7, -12.1239, -12.0931, -20.0464, -33.4455, -34.822, -11.1456, -34.748, -78.55, -32.8361, -32.8427, -66.55, -10.683, -14.7925, -26.4888, -70.7, -1.53, -15.08, -15.2, -30.15, -5.894, -29.2667, -67.667, -33.0866, -4.033, -4.917, -2.5833, -2.0667, -2.05, -15.25, -15.3, -36.2519, -7.88, -17.33, -16.717, -35.0, -2.0, -30.267, -10.43, -24.8642, -23.57, -28.1125, -28.0997, -38.0992, -30.6417, -37.98, -16.77, -5.11, -21.9947, -29.2103, -29.2039, -29.4914, -29.4819, -29.5, -12.4536, -38.2358, -16.664, -6.82, -20.285, -11.68, -7.85, -11.217, -38.0737, -21.8167, -35.9004, -35.9093, -38.2094, -3.35, -14.95, -34.5253, -34.5444, -1.87, -1.845, -35.0639, -34.625, -37.8383, -36.745, -33.6185, -36.722, -37.145, -37.5575, -34.7122, -34.7253, -37.8306, -16.783, -29.7, -38.2, -16.4181, -37.7473, -37.8333, -35.5293, -32.8345, -36.9767, -20.6778, -20.7361, -20.7333, -34.9784, -28.0619, -28.1156, -37.7481, -37.6924, -51.823, -41.8444, -73.2, -18.1472, -29.9167, -33.5917, -42.8967, -42.9319, -4.0, -6.03, -11.83, -28.3, -28.95, -10.267, -27.3342, -27.9695, -0.95, -32.5628, -32.5956, -8.54, -22.92, -28.5367, -33.0934, -8.333, -23.7942, -28.9786, -33.5969, -33.5547, -26.8936, -31.75, -27.3636, -35.5, -35.1234, -35.065, -31.7416, -31.7651, -28.3395, -14.7803, -1.5, -0.919, -17.417, -2.467, -11.75, -36.5667, -11.9, -11.4333, -28.5008, -3.368, -17.0, -10.333, -17.75, -6.57, -1.3, -1.317, -0.27, -0.283, -37.0667, -26.6431, -3.25, -15.1, -26.6756, -17.8, -5.667, -36.9564, -36.9813, -33.6104, -25.6875, -32.0656, -1.13, -36.2144, -30.3154, -30.3401, -34.7071, -34.7325, -32.9342, -5.767, -5.9167, -0.55, -18.043, -7.44, -31.82, -4.386, -12.98, -26.92, -31.9861, -41.3, -32.7103, -25.43, -35.3365, -35.1165, -70.667, -38.95, -27.73, -32.9185, -32.8905, -17.3833, -33.1131, -23.3683, -23.4169, -42.7833, -39.017, -11.9971, -36.3347, -36.3092, -28.18, -12.1939, -89.0, -36.5112, -22.52, -19.03, -10.75, -9.333, -35.1586, -28.3517, -32.5226, -26.52, -37.9, -37.9039, -33.2815, -33.2815, -29.042, -17.6872, -17.6706, -32.1981, -32.2147, -31.6508, -28.3008, -23.1833, -34.5993, -34.9469, -22.27, -22.267, -22.2667, -22.267, -31.183, -22.17, -14.7, -70.767, -34.9449, -34.9469, -20.72, -35.45, -0.917, -7.2333, -21.13, -9.2, -21.8861, -31.4492, -32.7244, -36.1, -34.4767, -34.4761, -0.5, -31.5495, -27.4034, -42.3006, -33.8199, -33.6774, -1.91, -22.53, -0.87, -12.3263, -29.6, -18.2519, -20.68, -32.55, -38.4861, -37.1017, -37.1011, -33.9644, -20.667, -21.6364, -21.6689, -27.5553, -23.153, -33.3211, -33.3813, -33.3815, -33.3934, -33.2833, -37.6922, -37.6917, -33.802, -42.5519, -35.6333, -18.04, -40.6, -20.7769, -12.12, -25.18, -7.9, -42.4842, -35.0694, -63.3, -33.72, -23.0967, -0.883, -30.82, -12.614, -15.78, -36.5958, -36.6539, -14.3306, -2.88, -10.19, -9.45, -64.8, -41.79, -16.0008, -64.766, -0.68, -20.1, -18.533, -2.17, -21.6392, -9.75, -17.53, -23.2028, -23.1725, -17.217, -34.7977, -25.633, -19.7, -31.783, -40.9, -35.5695, -20.1078, -2.63, -33.1281, -33.1419, -3.083, -2.917, -35.8, -33.7917, -23.05, -43.817, -29.689, -32.8, -22.38, -28.21, -7.63, -46.8, -33.77, -32.6296, -7.017, -8.132, -9.4, -29.2708, -32.333, -45.24, -26.82, -32.7235, -31.6669, -33.3102, -3.553, -23.6, -22.6, -77.95, -35.867, -15.517, -22.55, -25.8, -31.78, -12.983, -5.07, -34.4478, -34.7333, -9.02, -33.7195, -17.1, -33.93, -46.517, -32.0, -31.9275, -31.9192, -31.95, -31.95, -8.4, -63.5, -9.383, -23.98, -15.667, -30.62, -1.1, -39.65, -7.03, -34.1685, -29.6, -23.917, -27.23, -27.02, -37.6, -25.33, -26.85, -31.667, -29.3899, -29.82, -21.6667, -32.5336, -17.35, -21.983, -15.85, -4.267, -11.4022, -13.745, -13.8, -25.067, -27.7156, -5.18, -20.433, -31.08, -27.98, -34.08, -42.733, -29.13, -4.82, -37.8017, -38.2939, -27.4361, -38.0958, -33.5085, -23.867, -25.83, -19.21, -22.533, -33.3856, -38.3833, -38.3148, -1.033, -30.05, -10.7, -1.733, -9.18, -10.52, -10.717, -8.767, -38.3167, -43.1639, -32.5091, -32.5, -32.528, -49.35, -16.484, -33.985, -38.3906, -0.72, -20.3725, -14.2495, -14.2403, -34.4772, -34.7225, -34.4906, -31.4336, -31.4399, -9.383, -29.23, -33.1708, -30.733, -17.699, -27.386, -14.1, -71.883, -28.333, -26.733, -24.183, -19.58, -26.5, -37.8631, -41.6839, -15.833, -23.5, -22.7, -41.0867, -26.733, -30.975, -22.117, -25.733, -25.917, -25.75, -25.17, -34.2971, -29.67, -69.383, -10.2, -20.4925, -33.8193, -25.6, -45.4, -22.5, -22.283, -7.68, -47.735, -41.433, -10.9, -10.88, -14.8, -22.68, -15.83, -33.0, -53.0, -35.6, -41.78, -34.97, -52.4, -35.367, -29.9, -23.82, -1.5, -30.0, -30.12, -30.9252, -34.0112, -38.2714, -31.9, -42.0967, -17.883, -26.6125, -13.27, -33.433, -32.783, -31.5086, -0.1, -4.58, -5.2, -41.2083, -4.22, -20.1883, -20.1824, -5.242, -31.18, -1.817, -25.9007, -35.8974, -10.05, -34.67, -14.97, -22.55, -29.2, -29.25, -27.617, -21.203, -33.5803, -31.0119, -32.618, -8.05, -8.1255, -8.01, -29.183, -27.2169, -27.245, -37.0194, -21.9931, -40.9272, -35.1667, -32.2028, -74.017, -9.633, -8.57, -0.892, -0.43, -34.1711, -34.1983, -22.483, -27.45, -14.3, -38.4612, -11.0, -28.78, -33.6165, -20.7017, -20.7289, -33.6022, -33.6004, -28.17, -29.12, -25.85, -23.12, -23.8289, -1.67, -22.71, -9.967, -39.017, -33.085, -22.917, -22.37, -51.617, -53.778, -32.017, -17.8, -42.8333, -24.167, -30.8967, -34.083, -33.8258, -28.45, -34.15, -33.8, -37.1776, -37.1628, -18.317, -34.483, -36.3613, -23.3753, -34.5714, -19.683, -20.7767, -20.7594, -24.4619, -26.5442, -26.5719, -15.93, -26.13, -24.88, -14.7356, -32.904, -28.4833, -41.7772, -34.5519, -34.5267, -34.5106, -42.025, -10.733, -67.567, -38.12, -32.0069, -32.0089, -12.5, -30.4829, -28.68, -37.8, -37.3389, -23.5293, -17.917, -14.47, -22.5, -29.27, -36.1047, -10.5, -17.38, -16.15, -2.2, -32.9869, -24.85, -31.433, -24.033, -13.017, -14.279, -4.083, -27.3617, -22.7433, -71.7, -70.3, -2.083, -27.3233, -24.7298, -5.85, -31.37, -33.68, -30.83, -2.433, -13.72, -13.762, -17.8, -17.77, -10.7, -50.2, -21.96, -36.567, -33.5, -27.767, -21.53, -23.56, -40.783, -14.87, -14.867, -41.151, -0.917, -24.667, -14.967, -16.367, -16.267, -13.067, -34.35, -17.833, -31.571, -15.383, -31.5, -26.667, -25.8, -49.307, -33.273, -33.083, -16.333, -2.25, -24.067, -34.588, -13.3, -11.1, -2.41, -22.017, -6.6333, -0.133, -6.75, -23.217, -13.43, -22.1, -2.533, -28.4, -18.7, -23.5, -23.617, -23.433, -21.483, -20.91, -15.81, -1.833, -24.4, -31.7, -7.983, -9.67, -41.4892, -14.9, -41.4639, -12.6167, -79.9, -32.0335, -32.0458, -32.0632, -37.871, -41.15, -41.1708, -43.0425, -26.5, -6.967, -29.83, -9.1, -10.467, -2.6, -24.27, -1.268, -6.117, -15.883, -6.46, -11.63, -1.867, -36.3667, -19.467, -24.1542, -33.7704, -29.23, -4.667, -37.0277, -18.367, -34.5683, -42.05, -25.8925, -41.3831, -41.3886, -37.9075, -36.4289, -23.1, -3.68, -17.38, -60.7083, -12.38, -25.24, -32.6133, -81.65, -27.78, -8.35, -24.983, -40.8347, -40.8492, -33.7844, -33.7676, -3.7, -6.126, -13.85, -27.1147, -32.732, -34.08, -10.667, -23.48, -0.933, -0.73, -31.2319, -31.2353, -27.9832, -17.6053, -30.9225, -29.667, -24.123, -33.7065, -37.0748, -26.92, -51.7, -40.7642, -28.6617, -11.01, -37.1, -37.0717, -37.068, -35.2795, -35.0333, -35.0, -38.3833, -42.155, -42.1558, -35.256, -35.2836, -36.8472, -42.7681, -32.7963, -32.58, -33.517, -36.6189, -16.45, -20.887, -28.0489, -28.0361, -15.933, -41.3381, -41.3225, -22.3472, -22.3458, -28.18, -21.333, -19.03, -2.898, -1.638, -8.489, -0.151, -7.217, -7.38, -7.217, -27.159, -7.83, -32.38, -31.9558, -42.1236, -35.3766, -35.3406, -40.7292, -40.7314, -17.1142, -3.442, -33.9, -33.9465, -33.8414, -33.8607, -33.8521, -34.0, -69.0, -28.283, -29.2, -5.083, -28.7551, -18.0, -31.7, -14.3333, -12.4, -12.3, -17.55, -39.7, -35.2546, -14.483, -24.8819, -31.0867, -31.0742, -6.1, -19.634, -37.237, -5.083, -37.8, -2.8, -19.455, -25.033, -0.04, -34.4048, -6.5, -8.16, -44.517, -30.7111, -30.7051, -31.8896, -31.8986, -21.55, -25.6408, -42.3003, -7.33, -43.2397, -36.4378, -6.0, -23.017, -27.55, -2.92, -21.255, -3.3667, -6.85, -21.7125, -5.3, -0.485, -34.4292, -34.4061, -38.75, -13.536, -26.841, -9.15, -64.97, -45.594, -19.6423, -19.6475, -29.0479, -17.85, -38.2362, -5.083, -5.05, -22.41, -5.05, -22.27, -33.6908, -22.4518, -16.183, -26.3919, -26.3911, -41.2314, -28.8544, -29.15, -21.1642, -24.62, -24.4935, -27.9867, -27.9978, -84.6, -25.93, -21.4606, -21.8125, -36.4917, -36.5031, -25.1256, -10.5853, -29.4448, -29.4345, -35.4408, -15.6614, -14.5229, -9.133, -2.225, -18.117, -35.817, -23.383, -22.6967, -37.572, -25.9714, -38.1667, -21.0344, -27.5836, -27.5425, -29.35, -23.1, -33.35, -19.2483, -6.17, -32.0322, -31.9861, -33.217, -43.2, -21.84, -38.387, -20.783, -20.5, -37.05, -29.86, -7.85, -72.017, -35.1167, -13.7542, -8.1, -14.09, -26.05, -22.77, -24.017, -22.97, -25.18, -34.03, -14.819, -18.975, -5.683, -23.35, -26.85, -26.8, -3.786, -35.4184, -32.6309, -35.778, -35.3333, -42.4544, -21.45, -1.717, -26.467, -21.95, -28.36, -23.77, -0.08, -19.73, -18.883, -16.133, -7.58, -33.7, -5.067, -35.3635, -7.42, -31.53, -16.36, -27.5436, -72.2, -74.8, -75.867, -67.017, -28.45, -30.6437, -35.3305, -21.6119, -71.43, -29.783, -28.51, -54.843, -4.92, -27.95, -24.73, -20.3, -8.41, -18.467, -28.58, -33.02, -1.379, -26.67, -17.233, -28.367, -30.35, -26.88, -18.65, -29.4, -26.68, -65.25, -20.76, -18.1, -16.403, -35.555, -35.5544, -37.7408, -22.018, -13.3, -19.27, -17.8, -12.694, -31.85, -25.767, -31.945, -29.9, -21.27, -33.73, -28.7, -28.1, -17.645, -16.45, -20.317, -14.863, -17.15, -21.8067, -27.37, -78.45, -20.417, -31.67, -27.8, -5.48, -35.0517, -35.1583, -35.1311, -33.3075, -34.1944, -9.667, -8.641, -27.35, -11.417, -30.9853, -30.665, -22.94, -30.0372, -30.0236, -17.1347, -28.9231, -37.3807, -13.3, -35.1201, -23.6286, -23.27, -22.983, -4.067, -29.7029, -32.6722, -32.6814, -36.3667, -36.4206, -41.4372, -26.1317, -27.97, -29.5416, -24.9, -17.0156, -34.9906, -43.0609, -36.2614, -38.1731, -38.2919, -38.2867, -38.3836, -11.6502, -28.2061, -28.2247, -24.2914, -29.85, -37.7, -17.3871, -38.6357, -12.6778, -12.6267, -28.0, -33.63, -41.333, -32.5635, -32.5059, -27.47, -34.1065, -29.73, -29.9, -37.9, -37.7067, -41.75, -21.05, -17.8964, -33.9382, -3.584, -36.7, -28.5988, -30.8517, -30.8506, -33.0539, -33.0303, -7.967, -31.5631, -31.5194, -22.4703, -32.7932, -77.85, -16.288, -33.283, -31.5, -39.1297, -26.5914, -22.567, -77.7, -25.4228, -34.8361, -22.3617, -22.3908, -34.0281, -22.2425, -36.1167, -33.1336, -17.2122, -34.403, -19.8983, -30.8917, -30.8408, -38.6078, -37.5696, -30.9672, -19.4167, -31.1558, -33.617, -33.043, -33.9262, -18.283, -15.4872, -15.51, -15.4644, -40.9972, -40.9942, -25.05, -21.95, -28.3392, -38.1858, -28.1664, -29.4333, -34.6223, -31.3865, -36.0294, -16.7, -34.8313, -27.2842, -34.2502, -23.1364, -12.25, -33.0287, -31.8997, -31.8836, -32.683, -34.2493, -34.3167, -32.1232, -22.2562, -25.1896, -32.5819, -32.5707, -13.53, -6.222, -41.8833, -3.26, -69.367, -15.38, -26.3, -26.35], &quot;xaxis&quot;: &quot;x&quot;, &quot;y&quot;: [-0.051, 0.0336, -0.0017, -0.0946, 0.0211, 0.1907, 0.0189, 0.024, 0.0085, 0.0181, 0.0162, 0.0117, 0.0148, 0.0141, 0.0117, 0.0106, 0.1016, 0.0224, 0.0204, 0.02, 0.0187, 0.0361, 0.0187, -0.0419, 0.0058, 0.0364, 0.0001, 0.0083, 0.0315, 0.0671, 0.0523, 0.0898, 0.0463, 0.0242, 0.0189, 0.3116, 0.0209, 0.0249, 0.0021, 0.0093, 1.3317, -0.0494, -0.0546, -0.0259, 0.0153, 0.0089, 0.0501, 0.1213, -0.0105, 0.0833, 0.0594, 0.0195, 0.0545, -0.0116, 0.0019, -0.0124, 0.033, 0.0252, 0.0158, 0.0174, 0.1615, 0.0189, 0.0364, 0.0208, 0.0, 0.0219, 0.0145, 0.0088, 0.0597, 0.0287, 0.0289, 0.029, 0.0059, 0.0011, -0.0141, 0.0275, 0.0096, 0.0129, 0.0263, 0.0259, 0.0237, 0.0443, 0.0142, 0.0637, 0.0357, 0.1923, 0.0348, 0.0295, 0.0301, 0.0327, -0.0804, 0.0, 0.0411, 0.0375, -0.004, 0.0161, -0.0267, 0.0189, 0.0021, 0.3753, 0.0691, 0.0304, 0.0349, 0.0186, 0.0095, 0.001, 0.007, 0.0384, 0.0139, 0.0691, 0.0064, 0.0115, 0.0059, 0.0105, 0.0291, 0.008, 0.0034, 0.0273, 0.107, 0.033, 0.0185, 0.017, 0.0147, -0.0217, 0.0277, -0.0349, 0.0248, -0.1136, 0.0468, 0.0272, 0.0065, -0.0032, 0.0375, 0.0092, 0.1512, 0.0502, 0.0371, 0.0726, 0.0231, 3.9213, 0.0159, 0.0028, 0.0131, 0.1072, 0.0162, -0.23, 0.0107, -0.0087, 0.0421, 0.0025, 0.0271, -0.0065, 0.0108, -0.0597, 0.0203, 0.0288, 0.028, 0.0243, 0.0175, 0.0, 0.0298, 0.0301, -0.1571, 0.0366, 0.0458, 0.0114, 0.051, 0.0209, 0.051, 0.0236, 0.0402, -0.1161, 0.0025, 0.0268, 0.0325, 0.0179, 0.039, 0.0174, 0.0831, 0.014, 0.0343, 0.0449, 0.0307, 0.1013, 0.0246, 0.0302, 0.0, 0.0424, 0.0002, 0.0008, 0.1191, 0.0808, 0.0501, 0.0687, 0.0285, 0.0111, 0.0245, -0.0531, 0.0343, 0.0052, 0.0312, 0.0549, 0.0076, 0.0679, 0.037, 0.0276, 0.0, 0.0263, -0.031, 0.0296, 0.015, 0.0034, 0.0642, 0.0206, 0.0035, 0.011, 0.0205, 0.013, 0.1741, -0.693, 0.0242, -0.0052, 0.8567, 0.0088, 0.0097, 0.0276, 0.0115, 0.0156, 0.0078, 0.0127, 0.0336, 0.0325, 0.1241, 0.1452, -0.2171, 0.038, 0.1942, 0.0227, -0.2115, 0.0317, 0.0255, 0.0012, 0.0408, 0.0272, -0.0277, -0.0098, 0.0254, 0.0354, 0.0181, 0.045, 0.0199, 0.0361, 0.0186, 0.0381, 0.0412, -0.0887, 0.0674, -0.0419, -0.0271, -0.0138, 0.0309, 0.0127, 0.0345, 0.01, 0.031, 0.0133, 0.2162, 0.0013, 0.0354, 0.0739, 0.0194, 0.0059, 0.0348, 0.0136, 0.0, -0.0811, 0.0382, 0.0576, 0.1188, 0.0197, 0.02, 0.021, 0.0077, 0.0557, 0.0237, -0.0893, 0.024, 0.0052, 0.0106, 0.0577, 0.0258, -0.0309, 0.2018, 0.0217, 0.0195, 0.0211, 0.0201, 0.0388, 0.0158, 0.0202, 0.0168, -0.2861, 0.0322, 0.005, 1.3342, 0.0165, 0.0216, 0.0111, 0.0, 0.0206, 0.0174, 0.0111, 0.0396, 0.0182, 0.0125, 0.0255, -0.0298, 0.014, 0.0277, 0.0117, -0.032, 0.0518, 0.0476, -0.1543, -0.0279, 0.0528, 0.0248, 0.0366, 0.6241, 0.0189, -0.0418, 0.0268, -0.0295, 0.0091, 0.0209, 0.0363, 0.0191, 0.0093, -0.0418, -0.0202, 0.0195, 0.0447, 0.0086, 0.052, 0.4758, 0.0336, 0.0226, -0.0171, 0.0088, 0.0278, 0.0018, 0.0242, 0.1679, 0.045, 0.0124, 0.0471, 0.0187, 0.0111, 0.0258, 0.0126, 0.0293, 0.0243, 0.0042, 0.0118, 0.0119, 0.0583, 0.0149, 0.0249, 0.0205, 0.0126, 0.0661, 0.0, 0.2287, 0.0111, 0.021, 0.0204, 0.026, 0.1784, 0.0521, 0.0244, 0.0182, 0.0283, 0.0032, 0.0192, 0.0307, 0.0249, 0.0111, 0.0456, 0.0323, 0.0307, 0.0239, 0.1178, -0.0038, -0.0852, 0.0304, -0.0022, 0.0264, 0.0135, 0.0268, -0.0803, 0.0212, 0.0195, 0.0121, 0.0106, 0.0213, 0.0281, 0.0209, 0.3105, 0.0237, 0.0885, 0.0214, 0.0263, 0.0503, 0.009, 0.0042, 0.021, 0.0113, 0.01, 0.0083, 0.0103, 0.0108, -0.3834, -0.1953, 0.0419, 0.0029, 0.024, 0.0144, 0.0172, 0.0212, 0.0242, 0.0197, 0.0267, 0.0159, -0.0228, 0.0156, -0.0771, 0.0325, -0.0162, 0.0197, 0.0205, 0.1519, -0.2072, 0.03, 0.0373, 0.0235, 0.0311, 0.0303, -0.4549, 0.0105, 0.0221, 0.0296, 0.0124, 0.0902, 0.0104, 0.0123, 0.0471, 0.0274, 0.03, 0.0087, -0.2238, 0.0147, -0.033, 0.0, 0.0294, -0.005, -0.965, 0.0114, 0.0112, 0.0053, 2.4475, 0.0163, 0.031, 0.0336, 0.0131, 0.005, 0.0068, 0.0285, 0.0186, 0.014, 0.0128, 0.0114, 0.0252, 0.0509, 0.0155, 0.013, 0.0146, 0.1298, 0.0049, 0.0123, 0.0197, -0.0054, 0.0629, 0.0344, 0.0164, 0.3664, 0.0099, -0.1489, 0.0392, 0.0237, 0.1749, -0.0143, 0.0096, 0.0124, -0.009, -0.0003, -0.0186, -0.0144, 0.0242, 0.0239, -0.0006, 0.0106, 0.0286, 0.0026, 0.1433, -0.0739, -0.002, 0.0084, 0.0099, -0.0137, 0.0595, 0.0164, 0.1029, 0.0234, 0.058, 0.0059, 0.0, 0.0036, -2.0143, -0.0004, 0.0147, 0.0, 0.0124, 0.0016, 0.0411, 0.0144, 0.0155, 0.0215, 0.0007, 0.0847, -0.0666, 0.0296, 0.02, 0.0422, 0.0461, -0.0104, -0.4863, 0.0233, 0.0163, 0.0234, 0.0212, 0.1302, 0.0156, 0.0157, 0.0632, 0.0488, 0.0181, 0.0132, 0.0149, 0.0167, 0.015, 0.02, 0.0341, 0.0474, 0.0312, 0.0236, 0.0404, 0.0359, -0.0328, 0.3848, 0.0338, -0.011, 1.295, 0.0288, 0.0868, 0.0197, -0.0027, 0.0105, 0.0554, 0.0294, 0.0323, -0.0004, 0.013, -0.0136, 0.0049, 0.0124, 0.0391, 0.0606, 0.0035, -0.0048, -0.3752, -0.0218, 0.037, 0.0354, 0.0173, 0.0449, 0.0065, 0.011, 0.0232, 0.0344, 0.8735, 0.0581, -0.028, 0.0022, 0.041, 0.0291, 0.0068, 0.0549, 0.0139, -0.0027, 0.0296, 0.1162, 0.0262, -0.0023, 0.0169, 0.0317, 0.0022, 0.0121, -0.0166, 0.0068, 0.0316, 0.0531, 0.0314, 0.0234, 0.013, 0.0026, 0.014, 0.0359, 0.0237, 0.0234, 0.0364, -0.0127, 0.0317, 0.0168, 0.0316, 0.1175, 0.0328, -0.7372, -0.0004, 0.1339, 0.0463, -0.6147, 0.0478, 0.0302, 0.0108, 0.0182, -0.0158, 0.0426, 0.0056, -0.0474, 0.0139, 0.0012, 0.024, 0.0049, 0.0249, 0.0594, 0.0358, 0.103, 0.0203, -0.025, 0.0213, 0.0346, 0.0344, 0.0393, 0.0168, 0.0219, 0.0134, 0.0099, 0.034, 0.0432, 0.0039, 0.0055, 0.0227, 0.0524, 0.0365, -0.0043, 0.0118, 0.0422, 0.021, -0.0344, 0.0389, -0.0035, 0.0091, 0.0205, 0.0102, 0.0151, 0.0112, 0.0486, 0.0227, -0.1472, 0.0069, 0.018, -0.0502, -0.0022, 0.0917, 0.0286, 0.0141, 0.0654, 0.0237, 0.0229, 0.0065, 0.0366, 0.0386, 0.0253, 0.0263, 0.1036, 0.0237, 0.0089, -0.0113, 0.0243, 0.0237, -0.0393, 0.0494, 0.0111, 0.0527, 0.1112, -0.0117, 0.0217, 0.0127, 0.0244, -0.006, 0.0249, 0.011, 0.0163, 0.0314, 0.0464, -0.0258, -0.2467, -0.188, 0.0032, 0.0, 0.0125, 0.5714, -0.0212, -0.0812, 0.0194, 0.0135, 0.0164, 0.0024, 0.0674, 0.0103, -0.0036, 0.0568, 0.021, 0.0259, 0.0165, 0.0148, 0.0314, 0.0156, 0.0049, 0.0196, 0.011, 0.0335, 0.0041, -0.0318, 0.0209, 0.0203, 0.1822, 0.0123, 0.0156, 0.0189, 0.0413, 0.0171, 0.2237, 0.0189, 0.0163, 0.1106, -0.0304, 0.1107, 0.0108, -0.0145, 0.0051, -0.0377, -0.0259, 0.0253, 0.0291, 0.0301, 0.0557, 0.0031, 0.0105, -0.106, 0.0321, 0.0191, 0.021, 0.0174, 0.0259, 0.0306, 0.0331, 0.0084, 0.0085, 0.0162, 0.0105, 0.096, -0.0614, 0.0185, 0.0152, 0.0281, 0.0072, 0.0505, 0.0277, 0.0682, 0.0042, 0.0352, 0.0018, 0.0676, 0.0117, -0.0077, 0.0168, 0.0148, 0.0128, 0.2434, -0.8443, 0.0293, 0.0048, 0.0152, 0.017, 0.0594, 0.0096, 0.048, 0.026, 0.0217, 0.0137, -0.0273, 0.0, 0.0628, 0.046, 0.0805, 0.0549, 0.2851, 0.8392, 0.0494, -0.1062, 0.0347, 0.0675, 0.1242, 0.0185, 0.0239, 0.0103, 0.04, 0.0312, 0.0394, 0.0268, 0.017, 0.0675, 0.0207, 0.0086, 0.0393, 0.0309, 0.0234, 0.0283, 0.0727, 0.0346, 0.0201, 0.0366, -0.1111, -0.103, 0.2575, 0.026, 0.0837, 0.0275, 0.0209, 0.0066, 0.0189, 0.0155, 0.057, 0.0247, 0.0369, -0.0286, 0.0111, 0.0376, 0.0159, 0.0175, 0.0293, 0.0262, -0.0815, -0.0328, 0.0236, 0.0333, 0.0194, 0.0151, 0.0221, 0.0066, -0.0008, -0.0022, 0.0181, 0.0395, 0.0268, 0.0596, 0.0256, 0.0174, 0.0464, -0.076, 0.0743, 0.0853, 0.2037, -0.0259, 0.0422, 0.0964, 0.0107, -0.0952, 0.0946, 0.0193, 0.0264, 0.016, 0.0, 0.037, 0.0356, 0.0491, 0.3332, 0.0015, -0.0025, 0.033, 0.0131, 0.0074, 0.0156, 0.015, -0.074, 0.1496, 0.1343, -0.0054, 0.0659, 0.0225, -0.0043, 0.0241, 0.0451, 0.0394, 0.0041, 0.0128, 0.0499, 0.1809, 0.0339, 0.566, 0.0763, 0.0344, 0.7487, 0.0091, 0.0109, 0.042, 0.0302, 0.3441, 0.035, 0.0301, 0.0397, 0.0352, 0.002, 0.0342, -0.0126, 0.0331, 0.0324, -0.0453, 0.0183, 0.0593, 0.0399, 0.091, 0.0633, 0.0322, 0.0124, 0.0, -0.0004, 0.5445, 0.0234, -0.2652, 0.0189, -0.0265, 0.0819, -0.0951, -0.0106, 0.0085, 0.04, 0.1804, 0.0272, 0.0048, 0.0476, 0.0487, 0.0275, 0.0308, 0.0071, 0.0011, 0.0494, 0.0147, 0.0113, 0.0046, 0.0226, 0.0387, 0.0104, 0.0, 0.0284, 0.0143, 0.0206, 0.0346, 0.0021, 0.0552, 0.0356, 0.0151, 0.0741, -0.1631, 0.0282, 0.0238, 0.112, 0.0477, 0.0366, 0.0539, 0.0493, 0.0337, 0.0601, 0.0034, -0.038, 0.0437, 0.015, 0.0598, 0.0468, 0.0299, -0.0202, 0.0145, 0.0184, 0.1299, 0.0238, 0.0277, 0.0144, 0.042, -0.0923, 0.0005, 0.0061, -0.4395, 0.0132, 0.0236, 0.0004, 0.0165, 0.0944, 0.2376, -0.0462, 0.0002, 0.0101, 0.164, 0.0187, 0.0239, 0.0075, 0.017, 0.027, 0.0285, 0.0323, 0.0748, 0.1163, 0.0167, 0.0147, 0.0041, 0.0168, 0.0944, 0.0064, 0.0145, 0.0187, 0.0085, 0.0086, 0.005, 0.0589, 0.1039, 0.0202, -0.0127, -0.0766, 0.1282, 0.0115, 0.0317, 0.116, 0.0113, 0.0564, 0.0093, 2.1655, 0.0224, -0.0201, 0.0324, -0.0867, -0.2474, 0.0188, 0.0325, 0.1366, 0.0561, 0.0303, 0.0201, -0.0306, 0.0369, -0.006, 0.021, 0.0101, 0.0362, 0.0086, 0.8725, 0.0243, 0.0381, 0.0127, 0.0259, 0.0619, 0.0139, 0.0223, 0.0201, 0.0063, 0.0082, 0.02, 0.006, 0.0, 0.0549, 0.0185, 0.0189, 0.0084, 0.0168, 0.0416, 0.0214, 0.0392, 0.0572, 0.0082, 0.0144, 0.0158, 0.0166, 0.0354, 0.0362, 0.0277, 0.0304, 0.0059, 0.0051, -0.0126, -0.009, -0.0132, -0.0126, 0.246, -0.041, 0.0323, 0.04, 0.0275, 0.0318, 0.0233, 0.0309, 0.0279, 0.0143, 0.0341, -0.0201, 0.0223, -0.0027, 0.0148, 0.0151, 0.0284, 0.0122, -0.0023, 0.0476, 0.0166, 0.0209, 0.0014, 0.0136, 0.0175, 0.0016, 0.0449, 0.045, 0.0188, 0.0323, 0.013, 0.0074, 0.0296, 0.0821, 0.0066, 0.0148, 0.1137, 0.1643, 0.0202, 0.0087, 0.0152, 0.067, 0.0644, 0.0255, -0.0132, 0.0314, 0.0312, 0.0207, 0.0214, 0.0208, 0.0273, 0.016, 0.0068, 0.1774, 0.0008, 0.025, -0.0113, -0.0248, 0.0076, 0.0222, 0.031, 0.0223, 0.0175, -0.3074, 0.0149, 0.0502, 0.0172, 0.022, 0.0304, 0.008, 0.0436, 0.0218, -0.0465, -0.0174, 0.0146, 0.0189, 0.0075, -0.0044, 0.0, 0.0044, 0.0274, 0.0184, 0.0092, 0.0259, 0.0137, 0.0186, -0.0021, 0.2212, 0.019, -0.0126, 0.0759, -0.1131, 0.0259, 0.0223, 0.0073, 0.0386, 0.0595, -0.0116, 0.02, 0.1049, 0.0075, 0.0855, 0.0008, 0.0061, -0.002, 0.0232, -0.9982, 0.021, 0.0208, 0.0155, 0.1075, 0.0035, 0.0074, -0.0019, 0.0357, 0.0139, 0.0193, 0.0173, 0.0157, 0.1873, 0.1137, 0.0099, 0.0079, -0.0009, -0.023, 0.0665, 0.0066, 0.0268, 0.0256, 0.0165, 0.029, 0.0132, 0.0226, 0.0015, 0.013, 0.0321, 0.0221, 0.0179, 0.0744, 0.0539, 0.0257, 0.094, 0.0097, 0.0266, 0.0154, -0.0774, 0.0134, -1.5756, 0.0399, 0.0027, -0.0501, 0.0158, 0.0246, -0.0055, 0.0222, 0.0221, -0.186, 0.0169, 0.0762, 0.028, 0.225, 0.0176, -0.0147, 0.0159, 0.0143, 0.0105, 0.0155, 0.0146, 0.0156, 0.021, 0.0094, 0.0229, -0.1658, 0.0057, 0.0212, 0.0027, 0.0179, 0.1071, -0.0005, 0.0221, 0.0173, 0.0189, 0.0234, 0.0162, 0.0279, 0.0008, 0.0472, 0.0664, -0.0184, 0.0063, 0.0193, 0.0395, 0.0251, 0.0034, 0.0067, 0.0031, 0.0299, 0.0179, 0.0494, 0.0122, 0.0255, 0.0159, 0.0466, -0.628, 0.1548, 0.0285, 0.0206, 0.0237, 0.0099, 0.0062, 0.0088, 0.022, 0.0076, 0.0222, -0.0212, 0.0267, 0.025, 0.0169, 0.0186, 0.0003, 0.0192, 0.0108, -0.231, -0.0677, 0.0202, 0.2004, 0.0, 0.0144, -0.0336, -0.2253, 0.0997, 0.0, 0.0003, 0.3929, 0.0252, 0.0021, 0.0845, 0.0119, -0.0016, 0.0453, 0.0136, -0.0231, 0.0077, 0.0246, 0.0624, 0.0479, 0.092, 0.0182, 0.0497, 0.032, -0.0004, 0.0123, 0.0109, -0.0053, 0.0099, 0.026, -0.2393, 0.0285, 0.0558, -0.0091, 0.0215, 0.018, -0.0436, 0.0295, -0.004, -0.0143, 0.0364, 0.0998, 0.0048, 0.003, 0.0217, 0.0375, 0.1159, 0.0275, -0.0179, -0.0646, 0.0484, 0.2708, 0.0355, 0.033, 0.0412, 0.0018, 0.0144, 0.0019, 0.0217, 0.0225, 0.1232, 0.0297, 0.0299, 0.0241, 0.028, 0.0559, 0.067, 0.0746, 0.2081, 0.0143, 0.0287, 0.0174, 0.0071, 0.0024, 0.019, 0.0174, 0.0111, 0.0165, 0.0451, 0.0658, 0.0615, 0.0115, 0.0239, 0.0357, 0.0261, 0.0132, 0.0124, 0.0098, 0.0102, 0.0152, 0.1163, -0.0766, 0.0, 0.0103, 0.0281, 0.5408, 0.0022, 0.0161, 0.0, 0.563, 0.0246, 0.0247, 0.0349, 0.0346, 0.0451, 0.0272, 0.0309, 0.0285, 0.0155, 0.0077, -0.0531, 0.0056, 0.0117, 0.3158, 0.0977, 0.0478, 0.0109, 0.0149, 0.0258, 0.021, 0.0159, 0.0143, -0.0006, 0.0234, 0.0213, 0.0183, 0.0011, -0.032, 0.0149, 0.01, 0.014, 0.0041, 0.0161, 0.0425, 0.0228, 0.0274, 0.0704, -0.0466, 0.0, 0.0155, 0.0168, -0.0083, 0.0179, 0.036, 0.0347, 0.1522, 0.0298, 0.0267, 0.0344, 0.0204, 0.004, 0.0758, 0.0358, 0.0183, 0.037, 0.0123, -0.0216, 0.082, 0.0224, 0.002, 0.0441, 0.0049, 0.0154, 0.0231, 0.0037, 0.0015, 0.0084, 0.025, 0.0592, -0.03, -0.0901, 0.0142, 0.1448, -0.4306, 0.0276, 0.0082, 0.0223, 0.0365, 0.029, 0.019, 0.0211, 0.0938, -0.0012, 0.0247, 0.0142, 0.0192, 0.0155, -0.0407, 0.0114, 0.0195, 0.0256, 0.0311, 0.0164, 0.0101, 0.0102, 0.883, 0.0105, 0.0287, 0.0171, 0.0102, 0.0051, 0.0178, 0.0123, 0.0141, 0.0273, 0.0004, 0.154, 0.0183, 0.0158, 0.016, 0.026, 0.0247, 0.0458, 0.0202, 0.0814, 0.0844, 0.0387, 0.0182, 0.0219, 0.0254, 0.0183, 0.0095, 0.0414, 0.0112, -0.0022, 0.0249, 0.0087, -0.014, 0.0022, 0.0117, -0.0158, -0.0036, -0.0093, 0.0, 0.007, 0.0187, 0.02, 0.0177, 0.0366, 0.0225, 0.0254, 0.0132, 0.0114, 0.0126, 0.0179, 0.0201, -0.0106, 0.0391, -0.0053, 0.0328, 0.0268, 0.0243, -0.0523, 0.0196, 0.019, 0.1364, 0.0457, 0.0135, 0.0297, 0.0039, -0.0285, -0.0912, 0.0275, 0.2168, 0.0256, 0.0495, -0.0372, 0.0409, 0.0227, 0.0493, 0.013, 0.0246, 0.0247, 0.028, 0.0269, 0.01, 0.0127, 0.0197, 0.0427, 0.0281, 0.0204, 0.3905, 0.0237, 0.0013, 0.0314, 0.0163, 0.0296, 0.0255, 0.0377, 0.0538, 0.0171, -0.0619, 0.0106, 0.0209, -0.0004, 0.0183, 0.0222, 0.0248, 0.0801, 0.0305, 0.0255, 0.2157, 0.0195, 0.0112, 0.0586, 0.0204, 0.047, 0.0113, 0.025, 0.0264, 0.0518, -0.0046, 0.0802, 0.0208, 0.0422, 0.0097, 0.0, 0.0561, 0.0169, 0.0084, 0.0116, 0.0207, 0.009, 0.0558, 0.0346, 0.0286, 0.0301, 0.0743, 0.0755, -0.0778, 0.036, 0.0069, 0.0259, 0.0166, 0.0065, 0.0705, 0.0131, 0.0132, 0.8534, 0.8637, 0.0513, 0.0291, 0.0284, 0.0724, 0.0328, 0.011, 0.0389, 0.0582, 0.0572, -0.0014, 0.0565, 0.1514, -0.0578, -0.0944, 0.016, 0.0833, 0.2994, 0.0166, 0.0231, 0.0481, -0.0073, -0.0186, 0.0232, 0.0397, 0.0319, 0.0117, 0.0375, 0.0173, 0.0214, -0.003, 0.0014, 0.4451, 0.0122, 0.0065, 0.0776, 0.0026, 0.0437, -0.0297, 0.0348, 0.0586, 0.0853, 0.0205, 0.2134, -0.0149, 0.0093, 0.0181, 0.0258, 0.0243, 0.0071, 0.011, 0.0191, 0.1249, 1.0356, 0.0174, 0.0355, 0.1256, 0.0189, 0.0179, 0.1362, 0.0217, -0.3549, 0.0296, 0.0181, -0.021, 0.024, 0.1034, 0.0225, 0.0081, 0.0089, 0.0306, 0.011, 0.0032, 0.0125, -0.0115, 0.0609, 0.0176, 0.0053, 0.0111, 0.0398, -0.0344, 0.0302, 0.1135, 0.0208, 0.0242, 0.035, 0.0312, -0.0048, 0.0263, 0.0, 0.079, 0.0126, 0.0227, 0.037, 0.43, 0.0082, 0.0325, 0.0999, 0.0162, 0.0146, -0.0194, 0.0161, 0.0373, 0.0273, 0.0215, -0.0299, 0.1141, 0.0409, 0.048, 0.1103, 0.013, 0.0162, 0.0037, 0.0156, 0.0168, 0.0633, 0.0815, 0.0789, 0.0209, 0.0247, 0.009, -0.1268, 0.0256, -0.0772, 0.0292, 0.0048, 0.0216, 0.037, 0.0288, 0.0164, 0.012, -0.0247, 0.0162, 0.0077, 0.0093, 0.0171, 0.0268, -0.004, 0.0618, 0.1301, 0.0254, 0.0833, 0.0157, 0.0149, 0.1473, 0.0496, -0.0072, 0.0163, 0.0033, 0.0177, -0.0251, 0.0058, 0.0611, -0.0369, 0.0054, 0.0323, 0.0028, 0.0357, 0.0812, 0.0812, 0.0188, 0.0209, 0.0239, 0.0417, 0.0336, 0.0676, 0.0382, 0.0331, 0.0282, 0.0181, 0.0131, 0.0273, 0.0138, 4.03, 0.0336, 0.015, 0.0255, 0.0184, 0.0141, 0.0178, 0.0232, 0.0359, 0.0237, 0.0187, 0.0378, 0.0217, 0.0298, 0.0388, 0.924, -0.1426, 0.0198, 0.0166, 0.0657, 0.0077, 0.0353, 0.0967, -0.0052, 0.004, 0.0555, 0.0367, 0.0289, 0.0034, 0.0127, 0.0251, 0.0279, 0.0001, 0.0072, 0.0205, 0.0071, 0.0063, -0.0178, -0.0062, 0.0255, 0.0082, 0.0422, 0.0186, 0.0731, 0.019, 0.0125, 0.1075, 0.0071, -0.048, 0.0562, 0.0167, 0.05, 0.0352, 0.0001, 0.0507, 0.1187, 0.0414, 0.0189, 0.0, 0.0286, 0.016, -0.0004, 0.0477, 0.0097, 0.0292, 0.0897, 0.0329, 0.0096, 0.0468, 0.0246, 0.0388, 0.0031, 0.0006, 0.0184, 0.0203, 0.0297, 0.013, 0.2564, 0.0, 0.1164, 0.0275, 0.0376, 0.0275, 0.033, -0.0006, 0.0109, 0.0001, 0.0118, 0.0368, 0.0343, 0.0355, 0.0158, 0.0238, 0.0081, -0.0515, 0.0059, 0.0229, 0.074, 0.0391, 0.0149, 0.0107, 0.0955, -0.0057, 0.0417, 0.0037, -0.0453, 0.0, 0.0065, -0.0093, 0.0121, 0.0078, -0.0145, 0.0164, -0.012, 0.0254, 0.2517, 0.0458, 0.013, 0.0259, 0.0149, 0.026, 0.0165, 0.0336, 0.004, 0.0086, 0.0238, -0.039, 0.0125, 0.0041, 0.0005, 0.0262, -0.0116, 0.0012, -0.0108, 0.0235, 0.0171, 0.0311, 0.032, 0.016, 0.0208, 0.0041, 0.0188, 0.0009, -0.0102, -0.0395, 0.0076, 0.0197, -0.0688, -0.0035, 0.1134, 0.0544, 0.0282, 0.0176, 0.0272, 0.0584, 0.0936, -0.0047, 0.0066, 0.0232, 0.0438, 0.0476, 0.0117, -0.0171, 0.1606, 0.036, 0.0188, 0.0134, 0.0072, 0.0162, 0.0239, 0.0332, 0.0327, -0.0032, 0.0223, 0.0162, 0.0138, 1.3054, 0.0185, 0.0165, 0.0213, 0.0166, 0.0124, 0.0233, 0.0305, 0.0035, 0.2066, 0.035, 0.0291, 0.0471, 0.0275, 0.031, 0.0204, 0.0164, 0.0227, 0.0075, 0.0326, 0.0084, 0.043, 0.2396, 0.0777, -0.0005, 0.0187, 0.0, 0.0989, 0.0747, 0.0103, 0.0514, 0.2159, 0.0163, 0.0161, 0.021, 0.026, 0.0357, 0.0103, 0.0117, 0.0134, 0.0154, 0.0363, 0.0109, -0.0395, 0.0328, -0.0194, 0.0099, 0.2424, -0.0193, 0.0196, 0.0525, -0.2263, 0.0152, -0.007, 0.0086, 0.0, 0.0108, -0.0148, 0.0819, -0.0136, 0.0002, 0.0, 1.1448, 0.0227, 0.0064, 0.0323, 0.0, 0.0119, 0.0283, 0.0414, 0.0179, -0.0144, 0.0365, 0.0565, -0.0362, 0.0321, 0.009, 0.0192, -0.0166, 0.0106, 0.0187, 0.0297, 0.0063, -0.0977, 0.0389, 0.0495, 0.0127, 0.0121, 0.0013, 0.0095, 0.0188, 0.0076, 0.0546, -0.3952, 0.0242, -0.0053, 0.0427, 0.0625, 0.0155, 0.021, -0.0048, 0.0182, 0.0038, 0.0337, 0.6452, 0.0301, 0.0113, 0.1053, 0.0045, 0.0249, 0.0213, 0.105, 0.0366, -0.0438, 0.2526, 0.0489, -0.0214, 0.0196, 0.0196, 0.0141, 0.0052, 0.0204, 0.0699, 0.0241, 0.0108, 0.0301, 0.0554, 0.0279, 0.0539, 0.0838, -0.0503, 0.0315, 0.0205, 0.0133, 0.0052, 0.0312, -0.031, 0.007, -0.0283, 0.0472, 0.0032, 0.0176, 0.0099, 0.0039, 0.0097, -0.0467, -0.0043, -0.0041, 0.0168, 0.0241, 0.0087, 0.0064, 0.0154, -0.1654, 0.0199, 0.0191, 0.0322, -0.0027, 0.1028, 0.0066, 0.0085, 0.0166, 0.0403, 0.0245, -0.028, 0.0013, 0.0255, 0.1296, 0.0229, 0.0656, 0.0327, -0.0149, 0.0392, -0.0152, 0.0264, 0.0058, 0.2204, 0.0065, 0.0206, 0.0085, 0.0541, 0.0586, 0.0141, 0.0403, 0.0284, 0.0157, 0.0088, 0.0175, 0.0701, -0.0467, 0.0085, 0.0107, -0.0438, 0.0178, 0.0359, 0.0, 0.0222, 0.0186, 0.0488, 0.1127, 0.0527, 0.0471, 0.0202, 0.0044, 0.0113, 0.0534, 0.0242, 0.0186, 0.0067, 0.0249, -0.058, 0.1387, 0.0346, 0.0203, 0.0248, 0.0226, 0.0157, 0.0022, 0.0084, 0.0118, 0.0371, 0.0147, 0.0058, -0.005, -0.0183, -0.021, 0.0086, 0.0312, -0.0165, 0.0199, -0.0145, 0.0225, 0.044, 0.0048, 0.0254, -0.0215, -0.0017, 0.005, -0.0012, -0.0038, 0.0215, 0.0214, -0.0461, 0.0902, 0.0063, 0.0033, 0.0282, 0.0216, -0.001, -0.0098, 0.0089, -0.0039, -0.0024, -0.0671, 0.0062, 0.0803, 0.0137, -0.0043, -0.0054, -0.1099, 0.0305, -0.0024, 0.0245, 0.0289, 0.0231, -0.0051, 0.0348, 0.0473, 0.0103, 0.0371, 0.0368, 0.0287, -2.2458, 0.0302, 0.0287, -0.0243, -0.0657, -0.0129, -0.0002, 0.0113, 0.0194, 0.0391, -0.0025, 0.0158, 0.2769, 0.0046, 0.014, 0.0219, 0.0157, 0.0199, 0.0193, -0.0108, -0.0489, 0.0634, 0.003, 0.0435, -0.5234, 0.0298, 0.0203, 0.0259, 0.0138, -0.013, 0.0191, -0.0466, 0.0319, 0.0289, -0.021, 0.0296, 0.0302, 0.0229, 0.0153, 0.0197, 0.3718, 0.0466, 0.0025, 0.0093, 0.1133, 0.0134, 0.0184, 0.06, 0.0791, 0.002, 0.0113, -0.2136, -0.0124, 0.0449, 0.0136, -0.0457, -0.1429, 0.0419, 0.05, 0.0066, -0.005, 0.0184, 0.0302, 0.0849, 0.014, 0.0125, 0.0087, -0.0522, 0.0137, 0.0108, 0.0321, 0.0263, 0.0058, 0.0261, 0.0229, -0.0296, 0.039, 0.0194, 0.0179, 0.0553, 0.0387, 0.4876, 0.051, 0.0077, 0.0217, 0.0403, 0.032, 0.0549, 0.277, 0.0151, 0.0188, 0.0557, 0.2529, 0.0613, 0.0885, 0.0399, 0.0262, 0.0186, 0.0181, 0.0236, -0.0038, 0.0268, 0.0007, 0.0116, 0.0714, 0.0325, 0.0232, 0.0298, 0.024, 0.0111, 0.0744, 0.0201, 0.0206, 0.023, 0.0194, -0.0163, -0.0035, 0.0111, -0.023, 0.004, 0.0191, 0.0182, 0.0151, 0.0223, 0.022, 0.0249, 0.0021, -0.0046, 0.0134, 0.0351, 0.0078, 0.0381, 0.0337, -0.0646, 0.0064, 0.0636, 0.0257, 0.0215, 0.0125, 0.0202, 0.0213, 0.011, 0.0233, -0.8945, 0.0184, 0.0142, 0.0187, 0.0306, 0.0242, 0.0313, 0.0381, 0.0282, 0.0146, -0.013, -0.0037, 0.0157, 0.027, 0.0749, 0.0203, 0.0343, 0.016, 0.0277, 0.197, 0.0153, 0.0061, 0.0267, -0.0226, 0.02, 0.0204, 0.0093, 0.0114, 0.0164, 0.0231, 0.0615, 0.0293, 0.0404, 0.0144, 0.0019, 0.0067, 0.003, 0.0177, 0.0329, 0.0244, -0.1271, 0.0132, 0.0321, 0.0158, 0.0302, 0.0522, 0.0085, 0.0055, 0.1387, 0.0227, -0.0244, 0.0265, 0.0012, 0.0778, 0.3593, 0.0698, -0.0021, 0.0597, 0.0243, 0.0175, -0.0556, 0.0456, 0.0488, 0.0278, 0.0035, 0.0, -0.095, 0.0791, 0.01, 0.0228, -0.0, 0.0311, 0.0581, -0.0039, 0.0024, 0.0078, 0.0232, 0.032, 0.0319, -0.0303, 0.0378, 0.1042, -0.0907, 0.0182, 0.0214, -0.0109, 0.0209, 0.0242, 0.023, 0.0481, -0.0066, 0.0058, 0.0156, 0.0228, 0.0176, 0.021, 0.0074, 0.0192, -0.0237, -0.0088, 0.0102, -0.0166, 0.0285, 0.0487, 0.0095, -0.0011, 0.022, 0.0143, 0.0538, 0.0949, 0.035, 0.0105, 0.0039, -0.1031, 0.0204, 0.0237, 0.035, -0.0232, -0.0452, 0.0398, -0.3456, 0.0545, 0.0171, 0.0193, 0.1314, 0.0165, 0.0554, 0.0504, -0.0248, -0.0452, 0.0232, -0.0009, -0.0052, 0.0069, 0.0167, 0.0109, 0.0296, 0.0327, 0.0867, 0.0315, 0.046, 0.003, -0.0139, 0.7492, 0.039, 1.2831, -0.0313, 0.0343, 0.0638, 0.0157, 0.0358, -0.0724, 0.0157, 0.0153, 0.1277, -0.0134, 0.0364, 0.0411, 0.0285, 0.0514, 0.0249, 0.0943, -0.0712, 0.0932, 0.0254, 0.0014, 0.8866, 0.0708, 0.0245, 0.2745, -0.0033, 0.0212, -0.0145, 0.0, 0.0122, 0.0305, 0.0243, -0.0164, 0.0274, 0.0016, 0.0063, 0.03, 0.0494, 0.0098, -0.1092, 0.0218, 0.0433, 0.0187, 0.0, 0.0219, 0.0457, 0.0383, 0.0274, 0.0199, 0.0156, 0.0987, 0.0241, -0.0894, 0.0, 0.0, -0.0094, 0.0288, 0.0182, 0.0203, 0.0008, 0.0086, 0.0335, 0.0178, 0.1688, 0.0016, 0.0142, 0.3499, 0.0368, 0.0532, 0.0156, 1.2261, 0.0301, -0.0077, 0.0522, 0.0164, 0.0495, -0.031, 0.0986, 0.0173, 0.0225, 0.0139, 0.0569, 0.0181, 0.0122, 0.0501, 0.0061, -0.0329, -0.0143, -0.0082, 0.0532, 0.0199, 0.0081, -0.0293, 0.0533, 0.0702, 0.0184, 0.0427, -0.438, 0.0697, 0.0116, 0.0615, 0.0167, 0.0229, 0.0187, 0.0564, 0.0681, -0.0029, 0.039, 0.1436, 0.0189, -0.0082, 0.0225, -0.0283, 0.0262, -0.0257, 0.04, -0.0137, 0.0302, 0.0159, 0.0237, 0.0383, -0.0813, 0.0231, 0.0066, 0.0145, 0.019, 0.0101, 0.0123, 0.0149, 0.0443, -0.0014, 0.0191, 0.0321, 0.0548, -0.1, 0.016, 0.0018, 0.054, -0.2996, 0.0416, 0.0411, 0.0507, 0.1523, 0.0387, 0.0182, 0.0998, 0.0233, 0.0265, 0.0421, 0.0302, 0.0418, 0.0235, -0.0601, 0.175, 0.0212, -0.037, 0.0177, 0.0427, 0.0053, 0.0159, -0.002, 0.0306, 0.0312, 0.035, -0.0368, -0.3023, 0.0307, 0.0006, 0.0122, 0.1554, 0.0376, 0.0536, 0.0212, 0.0112, 0.0181, 0.0164, 0.0146, -0.0311, 0.0245, 0.0538, 0.0226, 0.0369, 0.05, 0.0324, 0.0136, 0.0036, -0.0141, -0.0765, 0.0121, 0.0239, -0.0042, 0.018, -0.0536, -0.0075, -0.0151, 0.0177, 0.0527, 0.0246, 0.1139, 0.0208, 0.0131, 0.0085, -0.0748, 0.0101, 0.0617, 0.0189, 0.0063, 0.0186, 0.0036, 0.0886, -0.063, 0.203, -0.0096, 0.0593, 0.0276, -0.0208, -0.0483, 0.0232, -0.1473, 0.03, 0.0234, 0.0, 0.0125, -0.0169], &quot;yaxis&quot;: &quot;y&quot;}],                        {&quot;barmode&quot;: &quot;relative&quot;, &quot;legend&quot;: {&quot;tracegroupgap&quot;: 0}, &quot;template&quot;: {&quot;data&quot;: {&quot;bar&quot;: [{&quot;error_x&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}, &quot;error_y&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}, &quot;marker&quot;: {&quot;line&quot;: {&quot;color&quot;: &quot;#E5ECF6&quot;, &quot;width&quot;: 0.5}}, &quot;type&quot;: &quot;bar&quot;}], &quot;barpolar&quot;: [{&quot;marker&quot;: {&quot;line&quot;: {&quot;color&quot;: &quot;#E5ECF6&quot;, &quot;width&quot;: 0.5}}, &quot;type&quot;: &quot;barpolar&quot;}], &quot;carpet&quot;: [{&quot;aaxis&quot;: {&quot;endlinecolor&quot;: &quot;#2a3f5f&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;minorgridcolor&quot;: &quot;white&quot;, &quot;startlinecolor&quot;: &quot;#2a3f5f&quot;}, &quot;baxis&quot;: {&quot;endlinecolor&quot;: &quot;#2a3f5f&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;minorgridcolor&quot;: &quot;white&quot;, &quot;startlinecolor&quot;: &quot;#2a3f5f&quot;}, &quot;type&quot;: &quot;carpet&quot;}], &quot;choropleth&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;type&quot;: &quot;choropleth&quot;}], &quot;contour&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;contour&quot;}], &quot;contourcarpet&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;type&quot;: &quot;contourcarpet&quot;}], &quot;heatmap&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;heatmap&quot;}], &quot;heatmapgl&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;heatmapgl&quot;}], &quot;histogram&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;histogram&quot;}], &quot;histogram2d&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;histogram2d&quot;}], &quot;histogram2dcontour&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;histogram2dcontour&quot;}], &quot;mesh3d&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;type&quot;: &quot;mesh3d&quot;}], &quot;parcoords&quot;: [{&quot;line&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;parcoords&quot;}], &quot;pie&quot;: [{&quot;automargin&quot;: true, &quot;type&quot;: &quot;pie&quot;}], &quot;scatter&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatter&quot;}], &quot;scatter3d&quot;: [{&quot;line&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatter3d&quot;}], &quot;scattercarpet&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattercarpet&quot;}], &quot;scattergeo&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattergeo&quot;}], &quot;scattergl&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattergl&quot;}], &quot;scattermapbox&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scattermapbox&quot;}], &quot;scatterpolar&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatterpolar&quot;}], &quot;scatterpolargl&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatterpolargl&quot;}], &quot;scatterternary&quot;: [{&quot;marker&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;type&quot;: &quot;scatterternary&quot;}], &quot;surface&quot;: [{&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}, &quot;colorscale&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;type&quot;: &quot;surface&quot;}], &quot;table&quot;: [{&quot;cells&quot;: {&quot;fill&quot;: {&quot;color&quot;: &quot;#EBF0F8&quot;}, &quot;line&quot;: {&quot;color&quot;: &quot;white&quot;}}, &quot;header&quot;: {&quot;fill&quot;: {&quot;color&quot;: &quot;#C8D4E3&quot;}, &quot;line&quot;: {&quot;color&quot;: &quot;white&quot;}}, &quot;type&quot;: &quot;table&quot;}]}, &quot;layout&quot;: {&quot;annotationdefaults&quot;: {&quot;arrowcolor&quot;: &quot;#2a3f5f&quot;, &quot;arrowhead&quot;: 0, &quot;arrowwidth&quot;: 1}, &quot;autotypenumbers&quot;: &quot;strict&quot;, &quot;coloraxis&quot;: {&quot;colorbar&quot;: {&quot;outlinewidth&quot;: 0, &quot;ticks&quot;: &quot;&quot;}}, &quot;colorscale&quot;: {&quot;diverging&quot;: [[0, &quot;#8e0152&quot;], [0.1, &quot;#c51b7d&quot;], [0.2, &quot;#de77ae&quot;], [0.3, &quot;#f1b6da&quot;], [0.4, &quot;#fde0ef&quot;], [0.5, &quot;#f7f7f7&quot;], [0.6, &quot;#e6f5d0&quot;], [0.7, &quot;#b8e186&quot;], [0.8, &quot;#7fbc41&quot;], [0.9, &quot;#4d9221&quot;], [1, &quot;#276419&quot;]], &quot;sequential&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]], &quot;sequentialminus&quot;: [[0.0, &quot;#0d0887&quot;], [0.1111111111111111, &quot;#46039f&quot;], [0.2222222222222222, &quot;#7201a8&quot;], [0.3333333333333333, &quot;#9c179e&quot;], [0.4444444444444444, &quot;#bd3786&quot;], [0.5555555555555556, &quot;#d8576b&quot;], [0.6666666666666666, &quot;#ed7953&quot;], [0.7777777777777778, &quot;#fb9f3a&quot;], [0.8888888888888888, &quot;#fdca26&quot;], [1.0, &quot;#f0f921&quot;]]}, &quot;colorway&quot;: [&quot;#636efa&quot;, &quot;#EF553B&quot;, &quot;#00cc96&quot;, &quot;#ab63fa&quot;, &quot;#FFA15A&quot;, &quot;#19d3f3&quot;, &quot;#FF6692&quot;, &quot;#B6E880&quot;, &quot;#FF97FF&quot;, &quot;#FECB52&quot;], &quot;font&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}, &quot;geo&quot;: {&quot;bgcolor&quot;: &quot;white&quot;, &quot;lakecolor&quot;: &quot;white&quot;, &quot;landcolor&quot;: &quot;#E5ECF6&quot;, &quot;showlakes&quot;: true, &quot;showland&quot;: true, &quot;subunitcolor&quot;: &quot;white&quot;}, &quot;hoverlabel&quot;: {&quot;align&quot;: &quot;left&quot;}, &quot;hovermode&quot;: &quot;closest&quot;, &quot;mapbox&quot;: {&quot;style&quot;: &quot;light&quot;}, &quot;paper_bgcolor&quot;: &quot;white&quot;, &quot;plot_bgcolor&quot;: &quot;#E5ECF6&quot;, &quot;polar&quot;: {&quot;angularaxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}, &quot;bgcolor&quot;: &quot;#E5ECF6&quot;, &quot;radialaxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}}, &quot;scene&quot;: {&quot;xaxis&quot;: {&quot;backgroundcolor&quot;: &quot;#E5ECF6&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;gridwidth&quot;: 2, &quot;linecolor&quot;: &quot;white&quot;, &quot;showbackground&quot;: true, &quot;ticks&quot;: &quot;&quot;, &quot;zerolinecolor&quot;: &quot;white&quot;}, &quot;yaxis&quot;: {&quot;backgroundcolor&quot;: &quot;#E5ECF6&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;gridwidth&quot;: 2, &quot;linecolor&quot;: &quot;white&quot;, &quot;showbackground&quot;: true, &quot;ticks&quot;: &quot;&quot;, &quot;zerolinecolor&quot;: &quot;white&quot;}, &quot;zaxis&quot;: {&quot;backgroundcolor&quot;: &quot;#E5ECF6&quot;, &quot;gridcolor&quot;: &quot;white&quot;, &quot;gridwidth&quot;: 2, &quot;linecolor&quot;: &quot;white&quot;, &quot;showbackground&quot;: true, &quot;ticks&quot;: &quot;&quot;, &quot;zerolinecolor&quot;: &quot;white&quot;}}, &quot;shapedefaults&quot;: {&quot;line&quot;: {&quot;color&quot;: &quot;#2a3f5f&quot;}}, &quot;ternary&quot;: {&quot;aaxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}, &quot;baxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}, &quot;bgcolor&quot;: &quot;#E5ECF6&quot;, &quot;caxis&quot;: {&quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;}}, &quot;title&quot;: {&quot;x&quot;: 0.05}, &quot;xaxis&quot;: {&quot;automargin&quot;: true, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;, &quot;title&quot;: {&quot;standoff&quot;: 15}, &quot;zerolinecolor&quot;: &quot;white&quot;, &quot;zerolinewidth&quot;: 2}, &quot;yaxis&quot;: {&quot;automargin&quot;: true, &quot;gridcolor&quot;: &quot;white&quot;, &quot;linecolor&quot;: &quot;white&quot;, &quot;ticks&quot;: &quot;&quot;, &quot;title&quot;: {&quot;standoff&quot;: 15}, &quot;zerolinecolor&quot;: &quot;white&quot;, &quot;zerolinewidth&quot;: 2}}}, &quot;title&quot;: {&quot;text&quot;: &quot;Estimated Yearly Temp. Change by Latitude from 1960 to 2010 between -90 and 0\u00b0&quot;}, &quot;xaxis&quot;: {&quot;anchor&quot;: &quot;y&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;LATITUDE&quot;}}, &quot;yaxis&quot;: {&quot;anchor&quot;: &quot;x&quot;, &quot;domain&quot;: [0.0, 1.0], &quot;title&quot;: {&quot;text&quot;: &quot;avg of ESTIMATED YEAR INCREASE (C)&quot;}}},                        {&quot;responsive&quot;: true}                    )                };                            &lt;/script&gt;        &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;

&lt;p&gt;So we can see, somewhat more starkly than before, that from 1960 to 2010, looking at the south hemisphere to address the worst decades in terms of change for the highest rate of change area (the Antartic), that average yearly temperature changes get &lt;strong&gt;more&lt;/strong&gt; severe the closer you get to the pole.&lt;/p&gt;

&lt;p&gt;Thanks for reading; I hope you learned a bit about plotly.&lt;/p&gt;</content><author><name></name></author><summary type="html">Databases and Plotly Visualization - Climate Data</summary></entry><entry><title type="html">HW0 - First Blog Post</title><link href="https://da-adams.github.io/hw0/" rel="alternate" type="text/html" title="HW0 - First Blog Post" /><published>2022-04-04T00:00:00+00:00</published><updated>2022-04-04T00:00:00+00:00</updated><id>https://da-adams.github.io/hw0</id><content type="html" xml:base="https://da-adams.github.io/hw0/">&lt;h2 id=&quot;a-quick-python-visualization-tutorial&quot;&gt;A Quick Python Visualization Tutorial&lt;/h2&gt;

&lt;p&gt;Hello world (read: the UCLA computing sphere)! To get my feet wet with our PIC16B blogs I’m going to walk us through a useful visualization for the—you’re probably sick of it if you took PIC16A—Palmer Penguins data set.&lt;/p&gt;

&lt;p&gt;A big part of the final PIC16A Machine Learning project was feature selection: the project spec itself limited you to two quantitative and one qualitative variable to train all three of your models on. Sure, you can automate a brute force validation of every combination (I did just to be sure), but datasets won’t always be so fortuitiously compact, so you best get smart about it.&lt;/p&gt;

&lt;p&gt;One I thing I noticed in other team’s projects was that they tended to shy away from the last introduced of our 16A visualization packages, seaborn…and I get it, it’s finicky and less customizable than the more familiar matplotlib functionality it wraps and intertwines with, but when you color within the lines and use it for something it does well, man, is it pretty. The example I’m going to walk through here is something I had to do in pyplot as per the spec of an earlier assignment using U.N. data, and it really made me appreciate seaborn. Writing loop heavy functions to integer division and modulo your way through an automated, scaleable, layout of matrix plots feels, I hate to use this word, un-pythonic. It reminds you of writing C++ code except it’s still not as fast, everything is still by ref without explicit qualification, and you don’t get to be an elitist about it. With this in mind, let’s look at a cool, easy way to plot variable pairs to get a prelimary understanding of which have the least interspecies overlap in distributions (and thus make for good variables for distinguishing between penguin species).&lt;/p&gt;

&lt;p&gt;So let’s get started with our imports:&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;numpy&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;np&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;pandas&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;from&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;matplotlib&lt;/span&gt; &lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pyplot&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;plt&lt;/span&gt;
&lt;span class=&quot;kn&quot;&gt;import&lt;/span&gt; &lt;span class=&quot;nn&quot;&gt;seaborn&lt;/span&gt; &lt;span class=&quot;k&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sns&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Import data
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;url&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'https://philchodrow.github.io/PIC16A/datasets/palmer_penguins.csv'&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;penguins&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;pd&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;read_csv&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;url&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# Take a look at the first five rows of the penguins df
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;penguins&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div&gt;
&lt;style scoped=&quot;&quot;&gt;
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }

    .dataframe tbody tr th {
        vertical-align: top;
    }

    .dataframe thead th {
        text-align: right;
    }
&lt;/style&gt;
&lt;table border=&quot;1&quot; class=&quot;dataframe&quot;&gt;
  &lt;thead&gt;
    &lt;tr style=&quot;text-align: right;&quot;&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;studyName&lt;/th&gt;
      &lt;th&gt;Sample Number&lt;/th&gt;
      &lt;th&gt;Species&lt;/th&gt;
      &lt;th&gt;Region&lt;/th&gt;
      &lt;th&gt;Island&lt;/th&gt;
      &lt;th&gt;Stage&lt;/th&gt;
      &lt;th&gt;Individual ID&lt;/th&gt;
      &lt;th&gt;Clutch Completion&lt;/th&gt;
      &lt;th&gt;Date Egg&lt;/th&gt;
      &lt;th&gt;Culmen Length (mm)&lt;/th&gt;
      &lt;th&gt;Culmen Depth (mm)&lt;/th&gt;
      &lt;th&gt;Flipper Length (mm)&lt;/th&gt;
      &lt;th&gt;Body Mass (g)&lt;/th&gt;
      &lt;th&gt;Sex&lt;/th&gt;
      &lt;th&gt;Delta 15 N (o/oo)&lt;/th&gt;
      &lt;th&gt;Delta 13 C (o/oo)&lt;/th&gt;
      &lt;th&gt;Comments&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;th&gt;0&lt;/th&gt;
      &lt;td&gt;PAL0708&lt;/td&gt;
      &lt;td&gt;1&lt;/td&gt;
      &lt;td&gt;Adelie Penguin (Pygoscelis adeliae)&lt;/td&gt;
      &lt;td&gt;Anvers&lt;/td&gt;
      &lt;td&gt;Torgersen&lt;/td&gt;
      &lt;td&gt;Adult, 1 Egg Stage&lt;/td&gt;
      &lt;td&gt;N1A1&lt;/td&gt;
      &lt;td&gt;Yes&lt;/td&gt;
      &lt;td&gt;11/11/07&lt;/td&gt;
      &lt;td&gt;39.1&lt;/td&gt;
      &lt;td&gt;18.7&lt;/td&gt;
      &lt;td&gt;181.0&lt;/td&gt;
      &lt;td&gt;3750.0&lt;/td&gt;
      &lt;td&gt;MALE&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
      &lt;td&gt;Not enough blood for isotopes.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;1&lt;/th&gt;
      &lt;td&gt;PAL0708&lt;/td&gt;
      &lt;td&gt;2&lt;/td&gt;
      &lt;td&gt;Adelie Penguin (Pygoscelis adeliae)&lt;/td&gt;
      &lt;td&gt;Anvers&lt;/td&gt;
      &lt;td&gt;Torgersen&lt;/td&gt;
      &lt;td&gt;Adult, 1 Egg Stage&lt;/td&gt;
      &lt;td&gt;N1A2&lt;/td&gt;
      &lt;td&gt;Yes&lt;/td&gt;
      &lt;td&gt;11/11/07&lt;/td&gt;
      &lt;td&gt;39.5&lt;/td&gt;
      &lt;td&gt;17.4&lt;/td&gt;
      &lt;td&gt;186.0&lt;/td&gt;
      &lt;td&gt;3800.0&lt;/td&gt;
      &lt;td&gt;FEMALE&lt;/td&gt;
      &lt;td&gt;8.94956&lt;/td&gt;
      &lt;td&gt;-24.69454&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;2&lt;/th&gt;
      &lt;td&gt;PAL0708&lt;/td&gt;
      &lt;td&gt;3&lt;/td&gt;
      &lt;td&gt;Adelie Penguin (Pygoscelis adeliae)&lt;/td&gt;
      &lt;td&gt;Anvers&lt;/td&gt;
      &lt;td&gt;Torgersen&lt;/td&gt;
      &lt;td&gt;Adult, 1 Egg Stage&lt;/td&gt;
      &lt;td&gt;N2A1&lt;/td&gt;
      &lt;td&gt;Yes&lt;/td&gt;
      &lt;td&gt;11/16/07&lt;/td&gt;
      &lt;td&gt;40.3&lt;/td&gt;
      &lt;td&gt;18.0&lt;/td&gt;
      &lt;td&gt;195.0&lt;/td&gt;
      &lt;td&gt;3250.0&lt;/td&gt;
      &lt;td&gt;FEMALE&lt;/td&gt;
      &lt;td&gt;8.36821&lt;/td&gt;
      &lt;td&gt;-25.33302&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;3&lt;/th&gt;
      &lt;td&gt;PAL0708&lt;/td&gt;
      &lt;td&gt;4&lt;/td&gt;
      &lt;td&gt;Adelie Penguin (Pygoscelis adeliae)&lt;/td&gt;
      &lt;td&gt;Anvers&lt;/td&gt;
      &lt;td&gt;Torgersen&lt;/td&gt;
      &lt;td&gt;Adult, 1 Egg Stage&lt;/td&gt;
      &lt;td&gt;N2A2&lt;/td&gt;
      &lt;td&gt;Yes&lt;/td&gt;
      &lt;td&gt;11/16/07&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
      &lt;td&gt;Adult not sampled.&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;4&lt;/th&gt;
      &lt;td&gt;PAL0708&lt;/td&gt;
      &lt;td&gt;5&lt;/td&gt;
      &lt;td&gt;Adelie Penguin (Pygoscelis adeliae)&lt;/td&gt;
      &lt;td&gt;Anvers&lt;/td&gt;
      &lt;td&gt;Torgersen&lt;/td&gt;
      &lt;td&gt;Adult, 1 Egg Stage&lt;/td&gt;
      &lt;td&gt;N3A1&lt;/td&gt;
      &lt;td&gt;Yes&lt;/td&gt;
      &lt;td&gt;11/16/07&lt;/td&gt;
      &lt;td&gt;36.7&lt;/td&gt;
      &lt;td&gt;19.3&lt;/td&gt;
      &lt;td&gt;193.0&lt;/td&gt;
      &lt;td&gt;3450.0&lt;/td&gt;
      &lt;td&gt;FEMALE&lt;/td&gt;
      &lt;td&gt;8.76651&lt;/td&gt;
      &lt;td&gt;-25.32426&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;

&lt;p&gt;Next let’s shorten the species names, and display a summary table&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Shorten Species name to first word
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;penguins&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Species&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;penguins&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Species&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;].&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;split&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;()).&lt;/span&gt;&lt;span class=&quot;nb&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;get&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# Displays statistical summary table of penguins df using groupby() and aggregate() functions
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;penguins_table&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;penguins&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;drop&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'Sample Number'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;],&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;axis&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;).&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;groupby&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Region&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Stage&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Species&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Island&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Sex&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]).&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;aggregate&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;([&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;np&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;mean&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;np&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;std&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;penguins_table&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div&gt;
&lt;style scoped=&quot;&quot;&gt;
    .dataframe tbody tr th:only-of-type {
        vertical-align: middle;
    }

    .dataframe tbody tr th {
        vertical-align: top;
    }

    .dataframe thead tr th {
        text-align: left;
    }

    .dataframe thead tr:last-of-type th {
        text-align: right;
    }
&lt;/style&gt;
&lt;table border=&quot;1&quot; class=&quot;dataframe&quot;&gt;
  &lt;thead&gt;
    &lt;tr&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th colspan=&quot;2&quot; halign=&quot;left&quot;&gt;Culmen Length (mm)&lt;/th&gt;
      &lt;th colspan=&quot;2&quot; halign=&quot;left&quot;&gt;Culmen Depth (mm)&lt;/th&gt;
      &lt;th colspan=&quot;2&quot; halign=&quot;left&quot;&gt;Flipper Length (mm)&lt;/th&gt;
      &lt;th colspan=&quot;2&quot; halign=&quot;left&quot;&gt;Body Mass (g)&lt;/th&gt;
      &lt;th colspan=&quot;2&quot; halign=&quot;left&quot;&gt;Delta 15 N (o/oo)&lt;/th&gt;
      &lt;th colspan=&quot;2&quot; halign=&quot;left&quot;&gt;Delta 13 C (o/oo)&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;mean&lt;/th&gt;
      &lt;th&gt;std&lt;/th&gt;
      &lt;th&gt;mean&lt;/th&gt;
      &lt;th&gt;std&lt;/th&gt;
      &lt;th&gt;mean&lt;/th&gt;
      &lt;th&gt;std&lt;/th&gt;
      &lt;th&gt;mean&lt;/th&gt;
      &lt;th&gt;std&lt;/th&gt;
      &lt;th&gt;mean&lt;/th&gt;
      &lt;th&gt;std&lt;/th&gt;
      &lt;th&gt;mean&lt;/th&gt;
      &lt;th&gt;std&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;Region&lt;/th&gt;
      &lt;th&gt;Stage&lt;/th&gt;
      &lt;th&gt;Species&lt;/th&gt;
      &lt;th&gt;Island&lt;/th&gt;
      &lt;th&gt;Sex&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
      &lt;th&gt;&lt;/th&gt;
    &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;th rowspan=&quot;11&quot; valign=&quot;top&quot;&gt;Anvers&lt;/th&gt;
      &lt;th rowspan=&quot;11&quot; valign=&quot;top&quot;&gt;Adult, 1 Egg Stage&lt;/th&gt;
      &lt;th rowspan=&quot;6&quot; valign=&quot;top&quot;&gt;Adelie&lt;/th&gt;
      &lt;th rowspan=&quot;2&quot; valign=&quot;top&quot;&gt;Biscoe&lt;/th&gt;
      &lt;th&gt;FEMALE&lt;/th&gt;
      &lt;td&gt;37.359091&lt;/td&gt;
      &lt;td&gt;1.762212&lt;/td&gt;
      &lt;td&gt;17.704545&lt;/td&gt;
      &lt;td&gt;1.091298&lt;/td&gt;
      &lt;td&gt;187.181818&lt;/td&gt;
      &lt;td&gt;6.744567&lt;/td&gt;
      &lt;td&gt;3369.318182&lt;/td&gt;
      &lt;td&gt;343.470715&lt;/td&gt;
      &lt;td&gt;8.774242&lt;/td&gt;
      &lt;td&gt;0.398858&lt;/td&gt;
      &lt;td&gt;-25.920176&lt;/td&gt;
      &lt;td&gt;0.604133&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;MALE&lt;/th&gt;
      &lt;td&gt;40.590909&lt;/td&gt;
      &lt;td&gt;2.006634&lt;/td&gt;
      &lt;td&gt;19.036364&lt;/td&gt;
      &lt;td&gt;0.879689&lt;/td&gt;
      &lt;td&gt;190.409091&lt;/td&gt;
      &lt;td&gt;6.463517&lt;/td&gt;
      &lt;td&gt;4050.000000&lt;/td&gt;
      &lt;td&gt;355.567956&lt;/td&gt;
      &lt;td&gt;8.872945&lt;/td&gt;
      &lt;td&gt;0.367889&lt;/td&gt;
      &lt;td&gt;-25.917227&lt;/td&gt;
      &lt;td&gt;0.496058&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th rowspan=&quot;2&quot; valign=&quot;top&quot;&gt;Dream&lt;/th&gt;
      &lt;th&gt;FEMALE&lt;/th&gt;
      &lt;td&gt;36.911111&lt;/td&gt;
      &lt;td&gt;2.089043&lt;/td&gt;
      &lt;td&gt;17.618519&lt;/td&gt;
      &lt;td&gt;0.897448&lt;/td&gt;
      &lt;td&gt;187.851852&lt;/td&gt;
      &lt;td&gt;5.510156&lt;/td&gt;
      &lt;td&gt;3344.444444&lt;/td&gt;
      &lt;td&gt;212.056475&lt;/td&gt;
      &lt;td&gt;8.914803&lt;/td&gt;
      &lt;td&gt;0.503147&lt;/td&gt;
      &lt;td&gt;-25.736636&lt;/td&gt;
      &lt;td&gt;0.579383&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;MALE&lt;/th&gt;
      &lt;td&gt;40.071429&lt;/td&gt;
      &lt;td&gt;1.748196&lt;/td&gt;
      &lt;td&gt;18.839286&lt;/td&gt;
      &lt;td&gt;1.033276&lt;/td&gt;
      &lt;td&gt;191.928571&lt;/td&gt;
      &lt;td&gt;6.803749&lt;/td&gt;
      &lt;td&gt;4045.535714&lt;/td&gt;
      &lt;td&gt;330.547636&lt;/td&gt;
      &lt;td&gt;8.984427&lt;/td&gt;
      &lt;td&gt;0.321221&lt;/td&gt;
      &lt;td&gt;-25.759120&lt;/td&gt;
      &lt;td&gt;0.628180&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th rowspan=&quot;2&quot; valign=&quot;top&quot;&gt;Torgersen&lt;/th&gt;
      &lt;th&gt;FEMALE&lt;/th&gt;
      &lt;td&gt;37.554167&lt;/td&gt;
      &lt;td&gt;2.207887&lt;/td&gt;
      &lt;td&gt;17.550000&lt;/td&gt;
      &lt;td&gt;0.879723&lt;/td&gt;
      &lt;td&gt;188.291667&lt;/td&gt;
      &lt;td&gt;4.638958&lt;/td&gt;
      &lt;td&gt;3395.833333&lt;/td&gt;
      &lt;td&gt;259.144356&lt;/td&gt;
      &lt;td&gt;8.663160&lt;/td&gt;
      &lt;td&gt;0.495336&lt;/td&gt;
      &lt;td&gt;-25.738735&lt;/td&gt;
      &lt;td&gt;0.669764&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;MALE&lt;/th&gt;
      &lt;td&gt;40.586957&lt;/td&gt;
      &lt;td&gt;3.027496&lt;/td&gt;
      &lt;td&gt;19.391304&lt;/td&gt;
      &lt;td&gt;1.082469&lt;/td&gt;
      &lt;td&gt;194.913043&lt;/td&gt;
      &lt;td&gt;5.915412&lt;/td&gt;
      &lt;td&gt;4034.782609&lt;/td&gt;
      &lt;td&gt;372.471714&lt;/td&gt;
      &lt;td&gt;8.919919&lt;/td&gt;
      &lt;td&gt;0.409291&lt;/td&gt;
      &lt;td&gt;-25.835347&lt;/td&gt;
      &lt;td&gt;0.559651&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th rowspan=&quot;2&quot; valign=&quot;top&quot;&gt;Chinstrap&lt;/th&gt;
      &lt;th rowspan=&quot;2&quot; valign=&quot;top&quot;&gt;Dream&lt;/th&gt;
      &lt;th&gt;FEMALE&lt;/th&gt;
      &lt;td&gt;46.573529&lt;/td&gt;
      &lt;td&gt;3.108669&lt;/td&gt;
      &lt;td&gt;17.588235&lt;/td&gt;
      &lt;td&gt;0.781128&lt;/td&gt;
      &lt;td&gt;191.735294&lt;/td&gt;
      &lt;td&gt;5.754096&lt;/td&gt;
      &lt;td&gt;3527.205882&lt;/td&gt;
      &lt;td&gt;285.333912&lt;/td&gt;
      &lt;td&gt;9.250962&lt;/td&gt;
      &lt;td&gt;0.322040&lt;/td&gt;
      &lt;td&gt;-24.565405&lt;/td&gt;
      &lt;td&gt;0.241078&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;MALE&lt;/th&gt;
      &lt;td&gt;51.094118&lt;/td&gt;
      &lt;td&gt;1.564558&lt;/td&gt;
      &lt;td&gt;19.252941&lt;/td&gt;
      &lt;td&gt;0.761273&lt;/td&gt;
      &lt;td&gt;199.911765&lt;/td&gt;
      &lt;td&gt;5.976558&lt;/td&gt;
      &lt;td&gt;3938.970588&lt;/td&gt;
      &lt;td&gt;362.137550&lt;/td&gt;
      &lt;td&gt;9.464535&lt;/td&gt;
      &lt;td&gt;0.386763&lt;/td&gt;
      &lt;td&gt;-24.527679&lt;/td&gt;
      &lt;td&gt;0.238612&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th rowspan=&quot;3&quot; valign=&quot;top&quot;&gt;Gentoo&lt;/th&gt;
      &lt;th rowspan=&quot;3&quot; valign=&quot;top&quot;&gt;Biscoe&lt;/th&gt;
      &lt;th&gt;.&lt;/th&gt;
      &lt;td&gt;44.500000&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
      &lt;td&gt;15.700000&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
      &lt;td&gt;217.000000&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
      &lt;td&gt;4875.000000&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
      &lt;td&gt;8.041110&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
      &lt;td&gt;-26.184440&lt;/td&gt;
      &lt;td&gt;NaN&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;FEMALE&lt;/th&gt;
      &lt;td&gt;45.563793&lt;/td&gt;
      &lt;td&gt;2.051247&lt;/td&gt;
      &lt;td&gt;14.237931&lt;/td&gt;
      &lt;td&gt;0.540249&lt;/td&gt;
      &lt;td&gt;212.706897&lt;/td&gt;
      &lt;td&gt;3.897856&lt;/td&gt;
      &lt;td&gt;4679.741379&lt;/td&gt;
      &lt;td&gt;281.578294&lt;/td&gt;
      &lt;td&gt;8.193405&lt;/td&gt;
      &lt;td&gt;0.279057&lt;/td&gt;
      &lt;td&gt;-26.197205&lt;/td&gt;
      &lt;td&gt;0.534377&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;th&gt;MALE&lt;/th&gt;
      &lt;td&gt;49.473770&lt;/td&gt;
      &lt;td&gt;2.720594&lt;/td&gt;
      &lt;td&gt;15.718033&lt;/td&gt;
      &lt;td&gt;0.741060&lt;/td&gt;
      &lt;td&gt;221.540984&lt;/td&gt;
      &lt;td&gt;5.673252&lt;/td&gt;
      &lt;td&gt;5484.836066&lt;/td&gt;
      &lt;td&gt;313.158596&lt;/td&gt;
      &lt;td&gt;8.303429&lt;/td&gt;
      &lt;td&gt;0.245151&lt;/td&gt;
      &lt;td&gt;-26.170608&lt;/td&gt;
      &lt;td&gt;0.554716&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;

&lt;h1 id=&quot;the-details&quot;&gt;The Details&lt;/h1&gt;

&lt;p&gt;If you care to read the nitty-gritty details on how I approached this, the following is the excerpt accompanying the table from my project:&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Looking at the table above, we can see that all penguins have the same Region (Anvers) and Stage (Adult, 1 Egg Stage), so we can exclude these two variables from our potential list of qualitative variables to use in our models (as done in the data cleaning function).&lt;/p&gt;

  &lt;p&gt;Additionally, we can see that there is an invalid Sex input (.), which can also be removed during the data cleaning process.&lt;/p&gt;

  &lt;p&gt;Grouping the penguins by Species, Island, and Sex, we can analyze the mean and standard deviation of the remaining quantitative variables (Culmen Length, Culmen Depth, Flipper Length, Body Mass, Delta 15 N, and Delta 13 C). From here, we can start drawing some interesting insights from the data.&lt;/p&gt;

  &lt;p&gt;First, we can see that only Adelie penguins inhabit Torgersen Island; only Adelie and Chinstrap penguins are located on Dream Island; and only Adelie and Gentoo penguins live on Biscoe Island. In other words, Adelie penguins can be found on all three islands, while Chinstrap penguins can only be found on Dream Island, and Gentoo penguins can only be found on Biscoe Island. Thus, when attempting to determine the species of a penguin, using the Island column as a predictor variable can reduces the number of Species options down from the three total Species possibilities to either two — Gentoo vs. Adelie for the Bisco Island and Chinstrap vs. Adelie for the Dream Island — or one — Adelie for the Torgersen Island (since Torgersen contains only Adelie penguins). As such, this qualitative variable has obvious and dramatic sorting power, wholly eliminating entire species from contention and simplifying any remaining comparisons.&lt;/p&gt;

  &lt;p&gt;Next, we see that female penguins have lower means for body measurement variables than their male counter parts within species. As a result, for a given measurement, the females of the averagely-larger (by that metric) species tend to overlap, in terms of distribution, with males of a smaller mean species to a degree that within-sex, interspecies comparisons do not. As we are tasked with using only one qualitative variable in our models, this problem is far more noticable without island sorting: Chinstrap and Gentoo penguins must now be compared on quantitative measurements despite them never sharing an island. In this case we now have significant overlap that can be mitigated via sex-sorting: for example, female Chinstrap (M=46.57) and male Gentoo (M=49.47) Culmen Length means fall within one standard deviation of each other using the female Chinstrap S.D. (SD = 3.108) and nearly do using the male Gentoo S.D. (SD=2.721). However, there are cases where the boundary clarification brought by sex-sorting does not simply compensate for a lack of island-sorting. For instance, on the same island (Dream), male Adelies and female Chinstraps have extremely similar distributions for flipper length (M=191.928571, SD=6.803749 and M=191.735294, SD=5.754096 respectively). Comparing female Chinstraps only to female Adelies (M=187.851852, SD=5.510156) significantly clarifies the distinction by reducing overlap. As a whole, it appears that sex is also quite an important qualitative measure for clarifying species boundaries.&lt;/p&gt;

  &lt;p&gt;With this in mind, we now need to see which combinations of our quantitative variables create clear clustering by species to narrow down our larger variable pool before returning to the more granular issue of determining which qualitative variable — Island vs. Sex — performs best in predicting a penguin’s Species type in our machine learning models.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1 id=&quot;the-short-version&quot;&gt;The Short Version&lt;/h1&gt;

&lt;p&gt;You’ll want to drop the NaN sex values, then make a dataframe consisting only of the species names and the quantitative variables, which you’ll then use to make a seaborn pair plot (in this case a matrix of such plots automatically).&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;c1&quot;&gt;# Drop the penguin with &quot;.&quot; sex that confounds seaborn cols
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;penguins&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;penguins&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;drop&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;labels&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;penguins&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;index&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;penguins&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'Sex'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'.'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;])&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# Dataframe of only quantitative variables and Species
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;df_quant&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;penguins&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;[[&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;'Species'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'Culmen Length (mm)'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'Culmen Depth (mm)'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'Body Mass (g)'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
                    &lt;span class=&quot;s&quot;&gt;'Delta 15 N (o/oo)'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 	&lt;span class=&quot;s&quot;&gt;'Delta 13 C (o/oo)'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'Flipper Length (mm)'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;]]&lt;/span&gt;

&lt;span class=&quot;c1&quot;&gt;# Pair plot - matrix of plots for quantative variable pairings
&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;sns&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;pairplot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;data&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;df_quant&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;hue&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;'Species'&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;language-plaintext highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&amp;lt;seaborn.axisgrid.PairGrid at 0x7fc6042acf40&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;/images/output_6_1.png&quot; alt=&quot;output_6_1.png&quot; /&gt;&lt;/p&gt;

&lt;h1 id=&quot;the-skippable-details&quot;&gt;The Skippable Details&lt;/h1&gt;

&lt;p&gt;The minutiae from the actual project:&lt;/p&gt;
&lt;blockquote&gt;
  &lt;p&gt;In the above plot-matrix, we see that several two quantitative variable pairings do not show clear groupings by species. On the diagonal, can see, without sorting by a qualitative variable (Island or Sex), that the by-species distributions for a given single variable are often signicantly, to nearly entirely, overlapping. So, which variables stand out as strong early contenders?&lt;/p&gt;

  &lt;p&gt;Culmen Length and Culmen Depth are interesting in that Adelie and Gentoo penguins distributions swap relative position between the diagnonals for these variables, and show little overlap. However, in both cases our Chinstrap distribution exists wholely within the other two species distributions. This is somewhat mitigated by the difference in which species most subsumes the Chinstrap distribution between variables, but as seen in the plot of Culmen Length to Culmen Depth, Gentoos still fall in an unclear border region between the other two species with quite a bit of overlap on both ends.&lt;/p&gt;

  &lt;p&gt;The carbon and nitrogen isotope ratios (Delta 13 C and Delta 15 N respectively) have clear seperate peaks for each species distribution when viewed alone on the diagonal yet share the same positional order of distributions between them with significant overlap in terms of overall area, resulting in a bit of a muddle when plotted against one another. Both carbon and nitrogen variables show moderately clear clustering when plotted against some body measurement variables, but these are far from the best plots. Is it worth dropping these columns containing a high number of NaN values, or should these missing values be replaced with the mean for their respective species, either limiting the data set or potentially causing unintended consequences in order to use one of these isotope ratio variables? At this very rough stage it’s not entirely certain if either of these action will be necessary: we don’t know if these variables are good enough to even use yet. *Note: we eventually found enough of a use case for these isotope variables in our data exploration to justify replacing their NaN values with means by species in order to use them in feature selection.&lt;/p&gt;

  &lt;p&gt;The best quantitative pairings appear to be Culmen Length/Body Mass, Culmen Length/Flipper Length, and perhaps Culmen Length/Culmen Depth if Sex or Island sorting can better distinguish Chinstrap penguins.&lt;/p&gt;

  &lt;p&gt;Looking forward, can sorting by Sex clarify the boundaries between species on these quantative plots — as seen in our table discussion — to such a degree that it is a more powerful tool than the ability to categorically eliminate entire species from contention based on Island? We will explore this question in the next comparison plot.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1 id=&quot;the-short-version-1&quot;&gt;The Short Version&lt;/h1&gt;

&lt;p&gt;Swanky, right? Every combination in the subset dataframe is plotted in the same syntactical length/complexity as a any individual plot in seaborn or pyplot. If you want to them follow this up by the introduction of a qualitative variable like sex, you can, albeit a tad more laboriously, follow up with a comparison plot function (or just copy mine):&lt;/p&gt;

&lt;div class=&quot;language-python highlighter-rouge&quot;&gt;&lt;div class=&quot;highlight&quot;&gt;&lt;pre class=&quot;highlight&quot;&gt;&lt;code&gt;&lt;span class=&quot;k&quot;&gt;def&lt;/span&gt; &lt;span class=&quot;nf&quot;&gt;comparison_plot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;cols1&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Sex&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;cols2&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Island&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;):&lt;/span&gt;
  &lt;span class=&quot;s&quot;&gt;&quot;&quot;&quot;
  Plots a pair of variables (x,y) of dataframe via seaborn, sorted by
  two different columns within that df, each forming a row of plots.
  Plots are formated such that the two sets of plots from a single function
  call will appear as a single group of plots for that x/y variable pairing,
  sharing a legend, and visually seperated from subsequent multiple calls of 
  this function.

  Parameters
  ----------
  x: string. Name of df column to plot on x axis
  y: string. Name of df column to plot on y axis
  cols1: string. Name of df column to sort 1st row (1st replot call) of plots 
         by via sns col parameter. Defaults to &quot;Sex&quot;.
  cols2: string. Name of df column to sort 2nd row (2nd replot call) of plots 
         by via sns col parameter. Defaults to &quot;Island&quot;.
  &quot;&quot;&quot;&lt;/span&gt;

  &lt;span class=&quot;c1&quot;&gt;# Plot first column (compensatory height and aspect to account for suptitle)
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;fgrid&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sns&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;relplot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;hue&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Species&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
            &lt;span class=&quot;n&quot;&gt;col&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;cols1&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;data&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;penguins&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;alpha&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;height&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
            &lt;span class=&quot;n&quot;&gt;aspect&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;87&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;s&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;15&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  
  &lt;span class=&quot;c1&quot;&gt;# Create space for supertitle
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;fgrid&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;subplots_adjust&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;top&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;75&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
  &lt;span class=&quot;c1&quot;&gt;# Add supertitle with blank new line for spacing between calls of function
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;fgrid&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;fig&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;suptitle&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;se&quot;&gt;\n&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot; vs &quot;&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;

  &lt;span class=&quot;c1&quot;&gt;# Plot second column 
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;fgrid2&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;sns&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;relplot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;x&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;x&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;y&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;hue&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Species&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; 
            &lt;span class=&quot;n&quot;&gt;col&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;cols2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;data&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;penguins&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;alpha&lt;/span&gt;&lt;span class=&quot;o&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;mi&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;height&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mf&quot;&gt;2.5&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt;
            &lt;span class=&quot;n&quot;&gt;s&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;mi&quot;&gt;15&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;n&quot;&gt;legend&lt;/span&gt; &lt;span class=&quot;o&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;bp&quot;&gt;False&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
    
  &lt;span class=&quot;c1&quot;&gt;# Set subtitles to Sex or Island name (e.g. remove &quot;Sex =&quot;)
&lt;/span&gt;  &lt;span class=&quot;n&quot;&gt;fgrid&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;set_titles&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;{col_name}&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; 
  &lt;span class=&quot;n&quot;&gt;fgrid2&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;n&quot;&gt;set_titles&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;{col_name}&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt; 

&lt;span class=&quot;n&quot;&gt;comparison_plot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Culmen Length (mm)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Culmen Depth (mm)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;comparison_plot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Culmen Length (mm)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Body Mass (g)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;comparison_plot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Culmen Length (mm)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Flipper Length (mm)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;comparison_plot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Culmen Length (mm)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Delta 13 C (o/oo)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;span class=&quot;n&quot;&gt;comparison_plot&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;s&quot;&gt;&quot;Culmen Length (mm)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;s&quot;&gt;&quot;Delta 15 N (o/oo)&quot;&lt;/span&gt;&lt;span class=&quot;p&quot;&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;img src=&quot;/images/output_8_0.png&quot; alt=&quot;output_8_0.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/output_8_1.png&quot; alt=&quot;output_8_1.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/output_8_2.png&quot; alt=&quot;output_8_2.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/output_8_3.png&quot; alt=&quot;output_8_3.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/output_8_4.png&quot; alt=&quot;output_8_4.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/output_8_5.png&quot; alt=&quot;output_8_5.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/output_8_6.png&quot; alt=&quot;output_8_6.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/output_8_7.png&quot; alt=&quot;output_8_7.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/output_8_8.png&quot; alt=&quot;output_8_8.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/images/output_8_9.png&quot; alt=&quot;output_8_9.png&quot; /&gt;&lt;/p&gt;

&lt;p&gt;In short, you now have a sleek looking foundation for any penguin related activities. If you care to hear me ramble, my analysis of this chart from the project is included below. In anycase, thanks for stoping by!&lt;/p&gt;

&lt;h1 id=&quot;the-analysis&quot;&gt;The Analysis&lt;/h1&gt;

&lt;blockquote&gt;
  &lt;p&gt;To simplify the exceptionally-thorough pair-plots we originally ran, the above comparison plots represent the most significant variable pairings with the application of Sex and Island sorting. In general, we found that Sex and Island sorting further refines the best variable pairings but do not significantly improve the ones that already performed poorly in the previous pair-plot. There were, however, a few interesting standouts:&lt;/p&gt;

  &lt;p&gt;&lt;strong&gt;Culmen Length vs Culmen Depth&lt;/strong&gt;: Sex-sorting shows that female Chinstraps made up most the messy middle of our prior chart. Once sorted by Sex, the Gentoo vs. Chinstrap border clears up for both plots, and the Adelie vs. Chinstrap overlap is reduced to a single outlier in the female plot. This is now one of our most promising combinations. However, when sorted by Island, the Dream plot is still unideal, somewhat preserving the Chinstrap vs. Adelie issue found in our unsorted plot.&lt;/p&gt;

  &lt;p&gt;&lt;strong&gt;Culmen Length vs Delta 13 C&lt;/strong&gt;: This pairing went from mediocre to surprisingly clean when Sex-sorted. Once again, the Island-sorted plots retained some of the issues found in the original plot, this time around the Chinstrap vs. Adelie border; however, as expected, Chinstrap/Gentoo overlaps were removed nicely.&lt;/p&gt;

  &lt;p&gt;&lt;strong&gt;Culmen Length vs Delta 15 N&lt;/strong&gt;: this pairing definitely took well to island-sorting, and as it has been with our quirkier pairings mentioned thus far, when one sorting method was particularly good, the other didn’t particularly shine. In this case sex-sorting, suffers from Gentoo vs.Chinstrap overlap.&lt;/p&gt;

  &lt;p&gt;Overall, body measurements variable pairs subject to island-sorting improved compared to their no-qualitative prior iterations but may be starting to be left behind the standouts above. However, the difference between heuristically obvious combinations like Island, Culmen Length, and Culmen Depth or Island, Culmen Length, and Flipper Length and the more oblique isotope ratio combinations is certainly small enough, in terms of eye-balling graphs, to warrant the inclusion of these attributes in future cross-validation testing in our coming feature selection section.&lt;/p&gt;
&lt;/blockquote&gt;</content><author><name></name></author><summary type="html">A Quick Python Visualization Tutorial</summary></entry><entry><title type="html">My First Post!</title><link href="https://da-adams.github.io/test-post/" rel="alternate" type="text/html" title="My First Post!" /><published>2022-03-31T00:00:00+00:00</published><updated>2022-03-31T00:00:00+00:00</updated><id>https://da-adams.github.io/test-post</id><content type="html" xml:base="https://da-adams.github.io/test-post/">&lt;p&gt;Testing. Testing? Testing! Cool.&lt;/p&gt;</content><author><name></name></author><summary type="html">Testing. Testing? Testing! Cool.</summary></entry></feed>